From 678f5700234f1dd73b5055e890ed46cad7053cfb Mon Sep 17 00:00:00 2001 From: Carson-Shaar Date: Thu, 21 Nov 2024 19:46:24 -0500 Subject: [PATCH] fix: Lint improvements, update on actual lint change and new debounce --- zt_backend/dist_app/assets/app-ac7025af.js | 1 - zt_backend/dist_app/assets/app-b8b5a264.js | 1 + zt_backend/dist_app/assets/index-04c19357.js | 1 - .../assets/index-6273e83e.js} | 160 +++---- zt_backend/dist_app/assets/index-82db29a9.css | 5 + zt_backend/dist_app/assets/index-b8b5a264.js | 1 + zt_backend/dist_app/assets/index-dea2b06b.css | 5 - ...-8d8301d2.js => webfontloader-e973823d.js} | 2 +- zt_backend/dist_app/index.html | 4 +- zt_backend/dist_dev/assets/app-04fe456a.js | 1 - zt_backend/dist_dev/assets/app-67a8da19.js | 1 + zt_backend/dist_dev/assets/index-1be3a95e.js | 1 - .../assets/index-1cb69988.js} | 160 +++---- zt_backend/dist_dev/assets/index-67a8da19.js | 1 + zt_backend/dist_dev/assets/index-82db29a9.css | 5 + zt_backend/dist_dev/assets/index-dea2b06b.css | 5 - ...-7255030a.js => webfontloader-df03bff5.js} | 2 +- zt_backend/dist_dev/index.html | 4 +- zt_backend/router.py | 25 +- zt_backend/utils/linting.py | 141 ++++--- zt_frontend/src/App.vue | 15 +- zt_frontend/src/components/CodeComponent.vue | 397 +++++++++++------- 22 files changed, 540 insertions(+), 398 deletions(-) delete mode 100644 zt_backend/dist_app/assets/app-ac7025af.js create mode 100644 zt_backend/dist_app/assets/app-b8b5a264.js delete mode 100644 zt_backend/dist_app/assets/index-04c19357.js rename zt_backend/{dist_dev/assets/index-b4ad4230.js => dist_app/assets/index-6273e83e.js} (89%) create mode 100644 zt_backend/dist_app/assets/index-82db29a9.css create mode 100644 zt_backend/dist_app/assets/index-b8b5a264.js delete mode 100644 zt_backend/dist_app/assets/index-dea2b06b.css rename zt_backend/dist_app/assets/{webfontloader-8d8301d2.js => webfontloader-e973823d.js} (99%) delete mode 100644 zt_backend/dist_dev/assets/app-04fe456a.js create mode 100644 zt_backend/dist_dev/assets/app-67a8da19.js delete mode 100644 zt_backend/dist_dev/assets/index-1be3a95e.js rename zt_backend/{dist_app/assets/index-a5f2e252.js => dist_dev/assets/index-1cb69988.js} (89%) create mode 100644 zt_backend/dist_dev/assets/index-67a8da19.js create mode 100644 zt_backend/dist_dev/assets/index-82db29a9.css delete mode 100644 zt_backend/dist_dev/assets/index-dea2b06b.css rename zt_backend/dist_dev/assets/{webfontloader-7255030a.js => webfontloader-df03bff5.js} (99%) diff --git a/zt_backend/dist_app/assets/app-ac7025af.js b/zt_backend/dist_app/assets/app-ac7025af.js deleted file mode 100644 index 07a0d7db..00000000 --- a/zt_backend/dist_app/assets/app-ac7025af.js +++ /dev/null @@ -1 +0,0 @@ -import{C as n,_ as r,r as l,o as c,c as a}from"./index-a5f2e252.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/app-b8b5a264.js b/zt_backend/dist_app/assets/app-b8b5a264.js new file mode 100644 index 00000000..03ef7dcf --- /dev/null +++ b/zt_backend/dist_app/assets/app-b8b5a264.js @@ -0,0 +1 @@ +import{C as o,_ as r,r as l,o as c,c as u}from"./index-6273e83e.js";const a={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,s,e,C,i,m){const n=l("code-cell-manager");return c(),u(n,{notebook:e.notebook,completions:e.completions,lintResults:e.lintResults,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","lintResults","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(a,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/index-04c19357.js b/zt_backend/dist_app/assets/index-04c19357.js deleted file mode 100644 index d3cbf7a0..00000000 --- a/zt_backend/dist_app/assets/index-04c19357.js +++ /dev/null @@ -1 +0,0 @@ -import{C as o,_ as r,r as l,o as c,c as a}from"./index-a5f2e252.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/index-b4ad4230.js b/zt_backend/dist_app/assets/index-6273e83e.js similarity index 89% rename from zt_backend/dist_dev/assets/index-b4ad4230.js rename to zt_backend/dist_app/assets/index-6273e83e.js index f72857aa..a5ecd017 100644 --- a/zt_backend/dist_dev/assets/index-b4ad4230.js +++ b/zt_backend/dist_app/assets/index-6273e83e.js @@ -1,13 +1,13 @@ -var f3e=Object.defineProperty;var d3e=(t,e,o)=>e in t?f3e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var pu=(t,e,o)=>(d3e(t,typeof e!="symbol"?e+"":e,o),o),h3e=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var uie=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var fQ=(t,e,o)=>(h3e(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))f(E);new MutationObserver(E=>{for(const d of E)if(d.type==="childList")for(const s of d.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function o(E){const d={};return E.integrity&&(d.integrity=E.integrity),E.referrerPolicy&&(d.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?d.credentials="include":E.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(E){if(E.ep)return;E.ep=!0;const d=o(E);fetch(E.href,d)}})();function l1e(t,e){return function(){return t.apply(e,arguments)}}const{toString:p3e}=Object.prototype,{getPrototypeOf:Ale}=Object,MZ=(t=>e=>{const o=p3e.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Mx=t=>(t=t.toLowerCase(),e=>MZ(e)===t),EZ=t=>e=>typeof e===t,{isArray:wM}=Array,hI=EZ("undefined");function m3e(t){return t!==null&&!hI(t)&&t.constructor!==null&&!hI(t.constructor)&&Jv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const c1e=Mx("ArrayBuffer");function g3e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&c1e(t.buffer),e}const v3e=EZ("string"),Jv=EZ("function"),u1e=EZ("number"),PZ=t=>t!==null&&typeof t=="object",y3e=t=>t===!0||t===!1,eH=t=>{if(MZ(t)!=="object")return!1;const e=Ale(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b3e=Mx("Date"),x3e=Mx("File"),_3e=Mx("Blob"),w3e=Mx("FileList"),O3e=t=>PZ(t)&&Jv(t.pipe),S3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jv(t.append)&&((e=MZ(t))==="formdata"||e==="object"&&Jv(t.toString)&&t.toString()==="[object FormData]"))},k3e=Mx("URLSearchParams"),[T3e,C3e,A3e,M3e]=["ReadableStream","Request","Response","Headers"].map(Mx),E3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,E;if(typeof t!="object"&&(t=[t]),wM(t))for(f=0,E=t.length;f0;)if(E=o[f],e===E.toLowerCase())return E;return null}const DT=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),d1e=t=>!hI(t)&&t!==DT;function Cae(){const{caseless:t}=d1e(this)&&this||{},e={},o=(f,E)=>{const d=t&&f1e(e,E)||E;eH(e[d])&&eH(f)?e[d]=Cae(e[d],f):eH(f)?e[d]=Cae({},f):wM(f)?e[d]=f.slice():e[d]=f};for(let f=0,E=arguments.length;f(nD(e,(E,d)=>{o&&Jv(E)?t[d]=l1e(E,o):t[d]=E},{allOwnKeys:f}),t),R3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),L3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},I3e=(t,e,o,f)=>{let E,d,s;const n={};if(e=e||{},t==null)return e;do{for(E=Object.getOwnPropertyNames(t),d=E.length;d-- >0;)s=E[d],(!f||f(s,t,e))&&!n[s]&&(e[s]=t[s],n[s]=!0);t=o!==!1&&Ale(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},D3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},B3e=t=>{if(!t)return null;if(wM(t))return t;let e=t.length;if(!u1e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},z3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ale(Uint8Array)),N3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let E;for(;(E=f.next())&&!E.done;){const d=E.value;e.call(t,d[0],d[1])}},F3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},$3e=Mx("HTMLFormElement"),V3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,E){return f.toUpperCase()+E}),Ade=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),U3e=Mx("RegExp"),h1e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};nD(o,(E,d)=>{let s;(s=e(E,d,t))!==!1&&(f[d]=s||E)}),Object.defineProperties(t,f)},j3e=t=>{h1e(t,(e,o)=>{if(Jv(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jv(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Q3e=(t,e)=>{const o={},f=E=>{E.forEach(d=>{o[d]=!0})};return wM(t)?f(t):f(String(t).split(e)),o},H3e=()=>{},Z3e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,fie="abcdefghijklmnopqrstuvwxyz",Mde="0123456789",p1e={DIGIT:Mde,ALPHA:fie,ALPHA_DIGIT:fie+fie.toUpperCase()+Mde},q3e=(t=16,e=p1e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function W3e(t){return!!(t&&Jv(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Y3e=t=>{const e=new Array(10),o=(f,E)=>{if(PZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[E]=f;const d=wM(f)?[]:{};return nD(f,(s,n)=>{const u=o(s,E+1);!hI(u)&&(d[n]=u)}),e[E]=void 0,d}}return f};return o(t,0)},X3e=Mx("AsyncFunction"),G3e=t=>t&&(PZ(t)||Jv(t))&&Jv(t.then)&&Jv(t.catch),m1e=((t,e)=>t?setImmediate:e?((o,f)=>(DT.addEventListener("message",({source:E,data:d})=>{E===DT&&d===o&&f.length&&f.shift()()},!1),E=>{f.push(E),DT.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Jv(DT.postMessage)),K3e=typeof queueMicrotask<"u"?queueMicrotask.bind(DT):typeof process<"u"&&process.nextTick||m1e,ci={isArray:wM,isArrayBuffer:c1e,isBuffer:m3e,isFormData:S3e,isArrayBufferView:g3e,isString:v3e,isNumber:u1e,isBoolean:y3e,isObject:PZ,isPlainObject:eH,isReadableStream:T3e,isRequest:C3e,isResponse:A3e,isHeaders:M3e,isUndefined:hI,isDate:b3e,isFile:x3e,isBlob:_3e,isRegExp:U3e,isFunction:Jv,isStream:O3e,isURLSearchParams:k3e,isTypedArray:z3e,isFileList:w3e,forEach:nD,merge:Cae,extend:P3e,trim:E3e,stripBOM:R3e,inherits:L3e,toFlatObject:I3e,kindOf:MZ,kindOfTest:Mx,endsWith:D3e,toArray:B3e,forEachEntry:N3e,matchAll:F3e,isHTMLForm:$3e,hasOwnProperty:Ade,hasOwnProp:Ade,reduceDescriptors:h1e,freezeMethods:j3e,toObjectSet:Q3e,toCamelCase:V3e,noop:H3e,toFiniteNumber:Z3e,findKey:f1e,global:DT,isContextDefined:d1e,ALPHABET:p1e,generateString:q3e,isSpecCompliantForm:W3e,toJSONObject:Y3e,isAsyncFn:X3e,isThenable:G3e,setImmediate:m1e,asap:K3e};function sc(t,e,o,f,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),E&&(this.response=E)}ci.inherits(sc,Error,{toJSON:function(){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:ci.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const g1e=sc.prototype,v1e={};["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(t=>{v1e[t]={value:t}});Object.defineProperties(sc,v1e);Object.defineProperty(g1e,"isAxiosError",{value:!0});sc.from=(t,e,o,f,E,d)=>{const s=Object.create(g1e);return ci.toFlatObject(t,s,function(u){return u!==Error.prototype},n=>n!=="isAxiosError"),sc.call(s,t.message,e,o,f,E),s.cause=t,s.name=t.name,d&&Object.assign(s,d),s};const J3e=null;function Aae(t){return ci.isPlainObject(t)||ci.isArray(t)}function y1e(t){return ci.endsWith(t,"[]")?t.slice(0,-2):t}function Ede(t,e,o){return t?t.concat(e).map(function(E,d){return E=y1e(E),!o&&d?"["+E+"]":E}).join(o?".":""):e}function eSe(t){return ci.isArray(t)&&!t.some(Aae)}const tSe=ci.toFlatObject(ci,{},null,function(e){return/^is[A-Z]/.test(e)});function RZ(t,e,o){if(!ci.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ci.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,c){return!ci.isUndefined(c[a])});const f=o.metaTokens,E=o.visitor||i,d=o.dots,s=o.indexes,u=(o.Blob||typeof Blob<"u"&&Blob)&&ci.isSpecCompliantForm(e);if(!ci.isFunction(E))throw new TypeError("visitor must be a function");function b(m){if(m===null)return"";if(ci.isDate(m))return m.toISOString();if(!u&&ci.isBlob(m))throw new sc("Blob is not supported. Use a Buffer instead.");return ci.isArrayBuffer(m)||ci.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function i(m,a,c){let h=m;if(m&&!c&&typeof m=="object"){if(ci.endsWith(a,"{}"))a=f?a:a.slice(0,-2),m=JSON.stringify(m);else if(ci.isArray(m)&&eSe(m)||(ci.isFileList(m)||ci.endsWith(a,"[]"))&&(h=ci.toArray(m)))return a=y1e(a),h.forEach(function(v,_){!(ci.isUndefined(v)||v===null)&&e.append(s===!0?Ede([a],_,d):s===null?a:a+"[]",b(v))}),!1}return Aae(m)?!0:(e.append(Ede(c,a,d),b(m)),!1)}const S=[],w=Object.assign(tSe,{defaultVisitor:i,convertValue:b,isVisitable:Aae});function y(m,a){if(!ci.isUndefined(m)){if(S.indexOf(m)!==-1)throw Error("Circular reference detected in "+a.join("."));S.push(m),ci.forEach(m,function(h,p){(!(ci.isUndefined(h)||h===null)&&E.call(e,h,ci.isString(p)?p.trim():p,a,w))===!0&&y(h,a?a.concat(p):[p])}),S.pop()}}if(!ci.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Pde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function Mle(t,e){this._pairs=[],t&&RZ(t,this,e)}const b1e=Mle.prototype;b1e.append=function(e,o){this._pairs.push([e,o])};b1e.toString=function(e){const o=e?function(f){return e.call(this,f,Pde)}:Pde;return this._pairs.map(function(E){return o(E[0])+"="+o(E[1])},"").join("&")};function nSe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x1e(t,e,o){if(!e)return t;const f=o&&o.encode||nSe,E=o&&o.serialize;let d;if(E?d=E(e,o):d=ci.isURLSearchParams(e)?e.toString():new Mle(e,o).toString(f),d){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class rSe{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ci.forEach(this.handlers,function(f){f!==null&&e(f)})}}const Rde=rSe,_1e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oSe=typeof URLSearchParams<"u"?URLSearchParams:Mle,iSe=typeof FormData<"u"?FormData:null,aSe=typeof Blob<"u"?Blob:null,sSe={isBrowser:!0,classes:{URLSearchParams:oSe,FormData:iSe,Blob:aSe},protocols:["http","https","file","blob","url","data"]},Ele=typeof window<"u"&&typeof document<"u",lSe=(t=>Ele&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),cSe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),uSe=Ele&&window.location.href||"http://localhost",fSe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ele,hasStandardBrowserEnv:lSe,hasStandardBrowserWebWorkerEnv:cSe,origin:uSe},Symbol.toStringTag,{value:"Module"})),_x={...fSe,...sSe};function dSe(t,e){return RZ(t,new _x.classes.URLSearchParams,Object.assign({visitor:function(o,f,E,d){return _x.isNode&&ci.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function hSe(t){return ci.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pSe(t){const e={},o=Object.keys(t);let f;const E=o.length;let d;for(f=0;f=o.length;return s=!s&&ci.isArray(E)?E.length:s,u?(ci.hasOwnProp(E,s)?E[s]=[E[s],f]:E[s]=f,!n):((!E[s]||!ci.isObject(E[s]))&&(E[s]=[]),e(o,f,E[s],d)&&ci.isArray(E[s])&&(E[s]=pSe(E[s])),!n)}if(ci.isFormData(t)&&ci.isFunction(t.entries)){const o={};return ci.forEachEntry(t,(f,E)=>{e(hSe(f),E,o,0)}),o}return null}function mSe(t,e,o){if(ci.isString(t))try{return(e||JSON.parse)(t),ci.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const Ple={transitional:_1e,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const f=o.getContentType()||"",E=f.indexOf("application/json")>-1,d=ci.isObject(e);if(d&&ci.isHTMLForm(e)&&(e=new FormData(e)),ci.isFormData(e))return E?JSON.stringify(w1e(e)):e;if(ci.isArrayBuffer(e)||ci.isBuffer(e)||ci.isStream(e)||ci.isFile(e)||ci.isBlob(e)||ci.isReadableStream(e))return e;if(ci.isArrayBufferView(e))return e.buffer;if(ci.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return dSe(e,this.formSerializer).toString();if((n=ci.isFileList(e))||f.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return RZ(n?{"files[]":e}:e,u&&new u,this.formSerializer)}}return d||E?(o.setContentType("application/json",!1),mSe(e)):e}],transformResponse:[function(e){const o=this.transitional||Ple.transitional,f=o&&o.forcedJSONParsing,E=this.responseType==="json";if(ci.isResponse(e)||ci.isReadableStream(e))return e;if(e&&ci.isString(e)&&(f&&!this.responseType||E)){const s=!(o&&o.silentJSONParsing)&&E;try{return JSON.parse(e)}catch(n){if(s)throw n.name==="SyntaxError"?sc.from(n,sc.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_x.classes.FormData,Blob:_x.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ci.forEach(["delete","get","head","post","put","patch"],t=>{Ple.headers[t]={}});const Rle=Ple,gSe=ci.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"]),vSe=t=>{const e={};let o,f,E;return t&&t.split(` -`).forEach(function(s){E=s.indexOf(":"),o=s.substring(0,E).trim().toLowerCase(),f=s.substring(E+1).trim(),!(!o||e[o]&&gSe[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},Lde=Symbol("internals");function TL(t){return t&&String(t).trim().toLowerCase()}function tH(t){return t===!1||t==null?t:ci.isArray(t)?t.map(tH):String(t)}function ySe(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const bSe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function die(t,e,o,f,E){if(ci.isFunction(f))return f.call(this,e,o);if(E&&(e=o),!!ci.isString(e)){if(ci.isString(f))return e.indexOf(f)!==-1;if(ci.isRegExp(f))return f.test(e)}}function xSe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function _Se(t,e){const o=ci.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(E,d,s){return this[f].call(this,e,E,d,s)},configurable:!0})})}let LZ=class{constructor(e){e&&this.set(e)}set(e,o,f){const E=this;function d(n,u,b){const i=TL(u);if(!i)throw new Error("header name must be a non-empty string");const S=ci.findKey(E,i);(!S||E[S]===void 0||b===!0||b===void 0&&E[S]!==!1)&&(E[S||u]=tH(n))}const s=(n,u)=>ci.forEach(n,(b,i)=>d(b,i,u));if(ci.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(ci.isString(e)&&(e=e.trim())&&!bSe(e))s(vSe(e),o);else if(ci.isHeaders(e))for(const[n,u]of e.entries())d(u,n,f);else e!=null&&d(o,e,f);return this}get(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);if(f){const E=this[f];if(!o)return E;if(o===!0)return ySe(E);if(ci.isFunction(o))return o.call(this,E,f);if(ci.isRegExp(o))return o.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||die(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let E=!1;function d(s){if(s=TL(s),s){const n=ci.findKey(f,s);n&&(!o||die(f,f[n],n,o))&&(delete f[n],E=!0)}}return ci.isArray(e)?e.forEach(d):d(e),E}clear(e){const o=Object.keys(this);let f=o.length,E=!1;for(;f--;){const d=o[f];(!e||die(this,this[d],d,e,!0))&&(delete this[d],E=!0)}return E}normalize(e){const o=this,f={};return ci.forEach(this,(E,d)=>{const s=ci.findKey(f,d);if(s){o[s]=tH(E),delete o[d];return}const n=e?xSe(d):String(d).trim();n!==d&&delete o[d],o[n]=tH(E),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ci.forEach(this,(f,E)=>{f!=null&&f!==!1&&(o[E]=e&&ci.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(E=>f.set(E)),f}static accessor(e){const f=(this[Lde]=this[Lde]={accessors:{}}).accessors,E=this.prototype;function d(s){const n=TL(s);f[n]||(_Se(E,s),f[n]=!0)}return ci.isArray(e)?e.forEach(d):d(e),this}};LZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ci.reduceDescriptors(LZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ci.freezeMethods(LZ);const wx=LZ;function hie(t,e){const o=this||Rle,f=e||o,E=wx.from(f.headers);let d=f.data;return ci.forEach(t,function(n){d=n.call(o,d,E.normalize(),e?e.status:void 0)}),E.normalize(),d}function O1e(t){return!!(t&&t.__CANCEL__)}function OM(t,e,o){sc.call(this,t??"canceled",sc.ERR_CANCELED,e,o),this.name="CanceledError"}ci.inherits(OM,sc,{__CANCEL__:!0});function S1e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new sc("Request failed with status code "+o.status,[sc.ERR_BAD_REQUEST,sc.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function wSe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function OSe(t,e){t=t||10;const o=new Array(t),f=new Array(t);let E=0,d=0,s;return e=e!==void 0?e:1e3,function(u){const b=Date.now(),i=f[d];s||(s=b),o[E]=u,f[E]=b;let S=d,w=0;for(;S!==E;)w+=o[S++],S=S%t;if(E=(E+1)%t,E===d&&(d=(d+1)%t),b-s{o=i,E=null,d&&(clearTimeout(d),d=null),t.apply(null,b)};return[(...b)=>{const i=Date.now(),S=i-o;S>=f?s(b,i):(E=b,d||(d=setTimeout(()=>{d=null,s(E)},f-S)))},()=>E&&s(E)]}const SH=(t,e,o=3)=>{let f=0;const E=OSe(50,250);return SSe(d=>{const s=d.loaded,n=d.lengthComputable?d.total:void 0,u=s-f,b=E(u),i=s<=n;f=s;const S={loaded:s,total:n,progress:n?s/n:void 0,bytes:u,rate:b||void 0,estimated:b&&n&&i?(n-s)/b:void 0,event:d,lengthComputable:n!=null,[e?"download":"upload"]:!0};t(S)},o)},Ide=(t,e)=>{const o=t!=null;return[f=>e[0]({lengthComputable:o,total:t,loaded:f}),e[1]]},Dde=t=>(...e)=>ci.asap(()=>t(...e)),kSe=_x.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function E(d){let s=d;return e&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=E(window.location.href),function(s){const n=ci.isString(s)?E(s):s;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}(),TSe=_x.hasStandardBrowserEnv?{write(t,e,o,f,E,d){const s=[t+"="+encodeURIComponent(e)];ci.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),ci.isString(f)&&s.push("path="+f),ci.isString(E)&&s.push("domain="+E),d===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CSe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ASe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function k1e(t,e){return t&&!CSe(e)?ASe(t,e):e}const Bde=t=>t instanceof wx?{...t}:t;function HT(t,e){e=e||{};const o={};function f(b,i,S){return ci.isPlainObject(b)&&ci.isPlainObject(i)?ci.merge.call({caseless:S},b,i):ci.isPlainObject(i)?ci.merge({},i):ci.isArray(i)?i.slice():i}function E(b,i,S){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b,S)}else return f(b,i,S)}function d(b,i){if(!ci.isUndefined(i))return f(void 0,i)}function s(b,i){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,S){if(S in e)return f(b,i);if(S in t)return f(void 0,b)}const u={url:d,method:d,data:d,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:n,headers:(b,i)=>E(Bde(b),Bde(i),!0)};return ci.forEach(Object.keys(Object.assign({},t,e)),function(i){const S=u[i]||E,w=S(t[i],e[i],i);ci.isUndefined(w)&&S!==n||(o[i]=w)}),o}const T1e=t=>{const e=HT({},t);let{data:o,withXSRFToken:f,xsrfHeaderName:E,xsrfCookieName:d,headers:s,auth:n}=e;e.headers=s=wx.from(s),e.url=x1e(k1e(e.baseURL,e.url),t.params,t.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let u;if(ci.isFormData(o)){if(_x.hasStandardBrowserEnv||_x.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[b,...i]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...i].join("; "))}}if(_x.hasStandardBrowserEnv&&(f&&ci.isFunction(f)&&(f=f(e)),f||f!==!1&&kSe(e.url))){const b=E&&d&&TSe.read(d);b&&s.set(E,b)}return e},MSe=typeof XMLHttpRequest<"u",ESe=MSe&&function(t){return new Promise(function(o,f){const E=T1e(t);let d=E.data;const s=wx.from(E.headers).normalize();let{responseType:n,onUploadProgress:u,onDownloadProgress:b}=E,i,S,w,y,m;function a(){y&&y(),m&&m(),E.cancelToken&&E.cancelToken.unsubscribe(i),E.signal&&E.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;c.open(E.method.toUpperCase(),E.url,!0),c.timeout=E.timeout;function h(){if(!c)return;const v=wx.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),O={data:!n||n==="text"||n==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};S1e(function(x){o(x),a()},function(x){f(x),a()},O),c=null}"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(f(new sc("Request aborted",sc.ECONNABORTED,t,c)),c=null)},c.onerror=function(){f(new sc("Network Error",sc.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let _=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const O=E.transitional||_1e;E.timeoutErrorMessage&&(_=E.timeoutErrorMessage),f(new sc(_,O.clarifyTimeoutError?sc.ETIMEDOUT:sc.ECONNABORTED,t,c)),c=null},d===void 0&&s.setContentType(null),"setRequestHeader"in c&&ci.forEach(s.toJSON(),function(_,O){c.setRequestHeader(O,_)}),ci.isUndefined(E.withCredentials)||(c.withCredentials=!!E.withCredentials),n&&n!=="json"&&(c.responseType=E.responseType),b&&([w,m]=SH(b,!0),c.addEventListener("progress",w)),u&&c.upload&&([S,y]=SH(u),c.upload.addEventListener("progress",S),c.upload.addEventListener("loadend",y)),(E.cancelToken||E.signal)&&(i=v=>{c&&(f(!v||v.type?new OM(null,t,c):v),c.abort(),c=null)},E.cancelToken&&E.cancelToken.subscribe(i),E.signal&&(E.signal.aborted?i():E.signal.addEventListener("abort",i)));const p=wSe(E.url);if(p&&_x.protocols.indexOf(p)===-1){f(new sc("Unsupported protocol "+p+":",sc.ERR_BAD_REQUEST,t));return}c.send(d||null)})},PSe=(t,e)=>{let o=new AbortController,f;const E=function(u){if(!f){f=!0,s();const b=u instanceof Error?u:this.reason;o.abort(b instanceof sc?b:new OM(b instanceof Error?b.message:b))}};let d=e&&setTimeout(()=>{E(new sc(`timeout ${e} of ms exceeded`,sc.ETIMEDOUT))},e);const s=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",E):u.unsubscribe(E))}),t=null)};t.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",E));const{signal:n}=o;return n.unsubscribe=s,[n,()=>{d&&clearTimeout(d),d=null}]},RSe=PSe,LSe=function*(t,e){let o=t.byteLength;if(!e||o{const d=ISe(t,e,E);let s=0,n,u=b=>{n||(n=!0,f&&f(b))};return new ReadableStream({async pull(b){try{const{done:i,value:S}=await d.next();if(i){u(),b.close();return}let w=S.byteLength;if(o){let y=s+=w;o(y)}b.enqueue(new Uint8Array(S))}catch(i){throw u(i),i}},cancel(b){return u(b),d.return()}},{highWaterMark:2})},IZ=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",C1e=IZ&&typeof ReadableStream=="function",Mae=IZ&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),A1e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DSe=C1e&&A1e(()=>{let t=!1;const e=new Request(_x.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Nde=64*1024,Eae=C1e&&A1e(()=>ci.isReadableStream(new Response("").body)),kH={stream:Eae&&(t=>t.body)};IZ&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kH[e]&&(kH[e]=ci.isFunction(t[e])?o=>o[e]():(o,f)=>{throw new sc(`Response type '${e}' is not supported`,sc.ERR_NOT_SUPPORT,f)})})})(new Response);const BSe=async t=>{if(t==null)return 0;if(ci.isBlob(t))return t.size;if(ci.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(ci.isArrayBufferView(t)||ci.isArrayBuffer(t))return t.byteLength;if(ci.isURLSearchParams(t)&&(t=t+""),ci.isString(t))return(await Mae(t)).byteLength},zSe=async(t,e)=>{const o=ci.toFiniteNumber(t.getContentLength());return o??BSe(e)},NSe=IZ&&(async t=>{let{url:e,method:o,data:f,signal:E,cancelToken:d,timeout:s,onDownloadProgress:n,onUploadProgress:u,responseType:b,headers:i,withCredentials:S="same-origin",fetchOptions:w}=T1e(t);b=b?(b+"").toLowerCase():"text";let[y,m]=E||d||s?RSe([E,d],s):[],a,c;const h=()=>{!a&&setTimeout(()=>{y&&y.unsubscribe()}),a=!0};let p;try{if(u&&DSe&&o!=="get"&&o!=="head"&&(p=await zSe(i,f))!==0){let C=new Request(e,{method:"POST",body:f,duplex:"half"}),x;if(ci.isFormData(f)&&(x=C.headers.get("content-type"))&&i.setContentType(x),C.body){const[R,M]=Ide(p,SH(Dde(u)));f=zde(C.body,Nde,R,M,Mae)}}ci.isString(S)||(S=S?"include":"omit"),c=new Request(e,{...w,signal:y,method:o.toUpperCase(),headers:i.normalize().toJSON(),body:f,duplex:"half",credentials:S});let v=await fetch(c);const _=Eae&&(b==="stream"||b==="response");if(Eae&&(n||_)){const C={};["status","statusText","headers"].forEach(T=>{C[T]=v[T]});const x=ci.toFiniteNumber(v.headers.get("content-length")),[R,M]=n&&Ide(x,SH(Dde(n),!0))||[];v=new Response(zde(v.body,Nde,R,()=>{M&&M(),_&&h()},Mae),C)}b=b||"text";let O=await kH[ci.findKey(kH,b)||"text"](v,t);return!_&&h(),m&&m(),await new Promise((C,x)=>{S1e(C,x,{data:O,headers:wx.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:c})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new sc("Network Error",sc.ERR_NETWORK,t,c),{cause:v.cause||v}):sc.from(v,v&&v.code,t,c)}}),Pae={http:J3e,xhr:ESe,fetch:NSe};ci.forEach(Pae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fde=t=>`- ${t}`,FSe=t=>ci.isFunction(t)||t===null||t===!1,M1e={getAdapter:t=>{t=ci.isArray(t)?t:[t];const{length:e}=t;let o,f;const E={};for(let d=0;d`adapter ${n} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?d.length>1?`since : -`+d.map(Fde).join(` -`):" "+Fde(d[0]):"as no adapter specified";throw new sc("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return f},adapters:Pae};function pie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new OM(null,t)}function $de(t){return pie(t),t.headers=wx.from(t.headers),t.data=hie.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),M1e.getAdapter(t.adapter||Rle.adapter)(t).then(function(f){return pie(t),f.data=hie.call(t,t.transformResponse,f),f.headers=wx.from(f.headers),f},function(f){return O1e(f)||(pie(t),f&&f.response&&(f.response.data=hie.call(t,t.transformResponse,f.response),f.response.headers=wx.from(f.response.headers))),Promise.reject(f)})}const E1e="1.7.4",Lle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Lle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const Vde={};Lle.transitional=function(e,o,f){function E(d,s){return"[Axios v"+E1e+"] Transitional option '"+d+"'"+s+(f?". "+f:"")}return(d,s,n)=>{if(e===!1)throw new sc(E(s," has been removed"+(o?" in "+o:"")),sc.ERR_DEPRECATED);return o&&!Vde[s]&&(Vde[s]=!0,console.warn(E(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,s,n):!0}};function $Se(t,e,o){if(typeof t!="object")throw new sc("options must be an object",sc.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let E=f.length;for(;E-- >0;){const d=f[E],s=e[d];if(s){const n=t[d],u=n===void 0||s(n,d,t);if(u!==!0)throw new sc("option "+d+" must be "+u,sc.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new sc("Unknown option "+d,sc.ERR_BAD_OPTION)}}const Rae={assertOptions:$Se,validators:Lle},WS=Rae.validators;let TH=class{constructor(e){this.defaults=e,this.interceptors={request:new Rde,response:new Rde}}async request(e,o){try{return await this._request(e,o)}catch(f){if(f instanceof Error){let E;Error.captureStackTrace?Error.captureStackTrace(E={}):E=new Error;const d=E.stack?E.stack.replace(/^.+\n/,""):"";try{f.stack?d&&!String(f.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(f.stack+=` -`+d):f.stack=d}catch{}}throw f}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=HT(this.defaults,o);const{transitional:f,paramsSerializer:E,headers:d}=o;f!==void 0&&Rae.assertOptions(f,{silentJSONParsing:WS.transitional(WS.boolean),forcedJSONParsing:WS.transitional(WS.boolean),clarifyTimeoutError:WS.transitional(WS.boolean)},!1),E!=null&&(ci.isFunction(E)?o.paramsSerializer={serialize:E}:Rae.assertOptions(E,{encode:WS.function,serialize:WS.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=d&&ci.merge(d.common,d[o.method]);d&&ci.forEach(["delete","get","head","post","put","patch","common"],m=>{delete d[m]}),o.headers=wx.concat(s,d);const n=[];let u=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(u=u&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,S=0,w;if(!u){const m=[$de.bind(this),void 0];for(m.unshift.apply(m,n),m.push.apply(m,b),w=m.length,i=Promise.resolve(o);S{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](E);f._listeners=null}),this.promise.then=E=>{let d;const s=new Promise(n=>{f.subscribe(n),d=n}).then(E);return s.cancel=function(){f.unsubscribe(d)},s},e(function(d,s,n){f.reason||(f.reason=new OM(d,s,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new P1e(function(E){e=E}),cancel:e}}};const USe=VSe;function jSe(t){return function(o){return t.apply(null,o)}}function QSe(t){return ci.isObject(t)&&t.isAxiosError===!0}const Lae={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(Lae).forEach(([t,e])=>{Lae[e]=t});const HSe=Lae;function R1e(t){const e=new nH(t),o=l1e(nH.prototype.request,e);return ci.extend(o,nH.prototype,e,{allOwnKeys:!0}),ci.extend(o,e,null,{allOwnKeys:!0}),o.create=function(E){return R1e(HT(t,E))},o}const Rp=R1e(Rle);Rp.Axios=nH;Rp.CanceledError=OM;Rp.CancelToken=USe;Rp.isCancel=O1e;Rp.VERSION=E1e;Rp.toFormData=RZ;Rp.AxiosError=sc;Rp.Cancel=Rp.CanceledError;Rp.all=function(e){return Promise.all(e)};Rp.spread=jSe;Rp.isAxiosError=QSe;Rp.mergeConfig=HT;Rp.AxiosHeaders=wx;Rp.formToJSON=t=>w1e(ci.isHTMLForm(t)?new FormData(t):t);Rp.getAdapter=M1e.getAdapter;Rp.HttpStatusCode=HSe;Rp.default=Rp;const ou=Rp,{Axios:tQe,AxiosError:Ude,CanceledError:nQe,isCancel:rQe,CancelToken:oQe,VERSION:iQe,all:aQe,Cancel:sQe,isAxiosError:lQe,spread:cQe,toFormData:uQe,AxiosHeaders:fQe,HttpStatusCode:dQe,formToJSON:hQe,getAdapter:pQe,mergeConfig:mQe}=ou;function Ile(t,e){const o=Object.create(null),f=t.split(",");for(let E=0;E!!o[E.toLowerCase()]:E=>!!o[E]}const Jd={},j8=[],Ox=()=>{},ZSe=()=>!1,qSe=/^on[^a-z]/,DZ=t=>qSe.test(t),Dle=t=>t.startsWith("onUpdate:"),pp=Object.assign,Ble=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},WSe=Object.prototype.hasOwnProperty,Du=(t,e)=>WSe.call(t,e),tl=Array.isArray,Q8=t=>BZ(t)==="[object Map]",L1e=t=>BZ(t)==="[object Set]",Ul=t=>typeof t=="function",Yh=t=>typeof t=="string",zle=t=>typeof t=="symbol",Fd=t=>t!==null&&typeof t=="object",I1e=t=>Fd(t)&&Ul(t.then)&&Ul(t.catch),D1e=Object.prototype.toString,BZ=t=>D1e.call(t),YSe=t=>BZ(t).slice(8,-1),B1e=t=>BZ(t)==="[object Object]",Nle=t=>Yh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,rH=Ile(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},XSe=/-(\w)/g,ib=zZ(t=>t.replace(XSe,(e,o)=>o?o.toUpperCase():"")),GSe=/\B([A-Z])/g,KT=zZ(t=>t.replace(GSe,"-$1").toLowerCase()),A_=zZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),GL=zZ(t=>t?`on${A_(t)}`:""),pI=(t,e)=>!Object.is(t,e),oH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},Iae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},z1e=t=>{const e=Yh(t)?Number(t):NaN;return isNaN(e)?t:e};let jde;const Dae=()=>jde||(jde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rD(t){if(tl(t)){const e={};for(let o=0;o{if(o){const f=o.split(JSe);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Gv(t){let e="";if(Yh(t))e=t;else if(tl(t))for(let o=0;oYh(t)?t:t==null?"":tl(t)||Fd(t)&&(t.toString===D1e||!Ul(t.toString))?JSON.stringify(t,F1e,2):String(t),F1e=(t,e)=>e&&e.__v_isRef?F1e(t,e.value):Q8(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,E])=>(o[`${f} =>`]=E,o),{})}:L1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Fd(e)&&!tl(e)&&!B1e(e)?String(e):e;let Hv;class $1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hv,!e&&Hv&&(this.index=(Hv.scopes||(Hv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Hv;try{return Hv=this,e()}finally{Hv=o}}}on(){Hv=this}off(){Hv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},U1e=t=>(t.w&v4)>0,j1e=t=>(t.n&v4)>0,i4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=u)&&n.push(b)})}else switch(o!==void 0&&n.push(s.get(o)),e){case"add":tl(t)?Nle(o)&&n.push(s.get("length")):(n.push(s.get($T)),Q8(t)&&n.push(s.get(zae)));break;case"delete":tl(t)||(n.push(s.get($T)),Q8(t)&&n.push(s.get(zae)));break;case"set":Q8(t)&&n.push(s.get($T));break}if(n.length===1)n[0]&&Nae(n[0]);else{const u=[];for(const b of n)b&&u.push(...b);Nae(Fle(u))}}function Nae(t,e){const o=tl(t)?t:[...t];for(const f of o)f.computed&&Hde(f);for(const f of o)f.computed||Hde(f)}function Hde(t,e){(t!==xx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function s4e(t,e){var o;return(o=AH.get(t))==null?void 0:o.get(e)}const l4e=Ile("__proto__,__v_isRef,__isVue"),Z1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(zle)),c4e=Vle(),u4e=Vle(!1,!0),f4e=Vle(!0),Zde=d4e();function d4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=sl(this);for(let d=0,s=this.length;d{t[e]=function(...o){SM();const f=sl(this)[e].apply(this,o);return kM(),f}}),t}function h4e(t){const e=sl(this);return V1(e,"has",t),e.hasOwnProperty(t)}function Vle(t=!1,e=!1){return function(f,E,d){if(E==="__v_isReactive")return!t;if(E==="__v_isReadonly")return t;if(E==="__v_isShallow")return e;if(E==="__v_raw"&&d===(t?e?M4e:G1e:e?X1e:Y1e).get(f))return f;const s=tl(f);if(!t){if(s&&Du(Zde,E))return Reflect.get(Zde,E,d);if(E==="hasOwnProperty")return h4e}const n=Reflect.get(f,E,d);return(zle(E)?Z1e.has(E):l4e(E))||(t||V1(f,"get",E),e)?n:ku(n)?s&&Nle(E)?n:n.value:Fd(n)?t?TM(n):Am(n):n}}const p4e=q1e(),m4e=q1e(!0);function q1e(t=!1){return function(o,f,E,d){let s=o[f];if(tM(s)&&ku(s)&&!ku(E))return!1;if(!t&&(!MH(E)&&!tM(E)&&(s=sl(s),E=sl(E)),!tl(o)&&ku(s)&&!ku(E)))return s.value=E,!0;const n=tl(o)&&Nle(f)?Number(f)t,NZ=t=>Reflect.getPrototypeOf(t);function dQ(t,e,o=!1,f=!1){t=t.__v_raw;const E=sl(t),d=sl(e);o||(e!==d&&V1(E,"get",e),V1(E,"get",d));const{has:s}=NZ(E),n=f?Ule:o?Hle:mI;if(s.call(E,e))return n(t.get(e));if(s.call(E,d))return n(t.get(d));t!==E&&t.get(e)}function hQ(t,e=!1){const o=this.__v_raw,f=sl(o),E=sl(t);return e||(t!==E&&V1(f,"has",t),V1(f,"has",E)),t===E?o.has(t):o.has(t)||o.has(E)}function pQ(t,e=!1){return t=t.__v_raw,!e&&V1(sl(t),"iterate",$T),Reflect.get(t,"size",t)}function qde(t){t=sl(t);const e=sl(this);return NZ(e).has.call(e,t)||(e.add(t),MO(e,"add",t,t)),this}function Wde(t,e){e=sl(e);const o=sl(this),{has:f,get:E}=NZ(o);let d=f.call(o,t);d||(t=sl(t),d=f.call(o,t));const s=E.call(o,t);return o.set(t,e),d?pI(e,s)&&MO(o,"set",t,e):MO(o,"add",t,e),this}function Yde(t){const e=sl(this),{has:o,get:f}=NZ(e);let E=o.call(e,t);E||(t=sl(t),E=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return E&&MO(e,"delete",t,void 0),d}function Xde(){const t=sl(this),e=t.size!==0,o=t.clear();return e&&MO(t,"clear",void 0,void 0),o}function mQ(t,e){return function(f,E){const d=this,s=d.__v_raw,n=sl(s),u=e?Ule:t?Hle:mI;return!t&&V1(n,"iterate",$T),s.forEach((b,i)=>f.call(E,u(b),u(i),d))}}function gQ(t,e,o){return function(...f){const E=this.__v_raw,d=sl(E),s=Q8(d),n=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,b=E[t](...f),i=o?Ule:e?Hle:mI;return!e&&V1(d,"iterate",u?zae:$T),{next(){const{value:S,done:w}=b.next();return w?{value:S,done:w}:{value:n?[i(S[0]),i(S[1])]:i(S),done:w}},[Symbol.iterator](){return this}}}}function YS(t){return function(...e){return t==="delete"?!1:this}}function _4e(){const t={get(d){return dQ(this,d)},get size(){return pQ(this)},has:hQ,add:qde,set:Wde,delete:Yde,clear:Xde,forEach:mQ(!1,!1)},e={get(d){return dQ(this,d,!1,!0)},get size(){return pQ(this)},has:hQ,add:qde,set:Wde,delete:Yde,clear:Xde,forEach:mQ(!1,!0)},o={get(d){return dQ(this,d,!0)},get size(){return pQ(this,!0)},has(d){return hQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:mQ(!0,!1)},f={get(d){return dQ(this,d,!0,!0)},get size(){return pQ(this,!0)},has(d){return hQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:mQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=gQ(d,!1,!1),o[d]=gQ(d,!0,!1),e[d]=gQ(d,!1,!0),f[d]=gQ(d,!0,!0)}),[t,o,e,f]}const[w4e,O4e,S4e,k4e]=_4e();function jle(t,e){const o=e?t?k4e:S4e:t?O4e:w4e;return(f,E,d)=>E==="__v_isReactive"?!t:E==="__v_isReadonly"?t:E==="__v_raw"?f:Reflect.get(Du(o,E)&&E in f?o:f,E,d)}const T4e={get:jle(!1,!1)},C4e={get:jle(!1,!0)},A4e={get:jle(!0,!1)},Y1e=new WeakMap,X1e=new WeakMap,G1e=new WeakMap,M4e=new WeakMap;function E4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function P4e(t){return t.__v_skip||!Object.isExtensible(t)?0:E4e(YSe(t))}function Am(t){return tM(t)?t:Qle(t,!1,W1e,T4e,Y1e)}function K1e(t){return Qle(t,!1,x4e,C4e,X1e)}function TM(t){return Qle(t,!0,b4e,A4e,G1e)}function Qle(t,e,o,f,E){if(!Fd(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=E.get(t);if(d)return d;const s=P4e(t);if(s===0)return t;const n=new Proxy(t,s===2?f:o);return E.set(t,n),n}function CO(t){return tM(t)?CO(t.__v_raw):!!(t&&t.__v_isReactive)}function tM(t){return!!(t&&t.__v_isReadonly)}function MH(t){return!!(t&&t.__v_isShallow)}function J1e(t){return CO(t)||tM(t)}function sl(t){const e=t&&t.__v_raw;return e?sl(e):t}function iD(t){return CH(t,"__v_skip",!0),t}const mI=t=>Fd(t)?Am(t):t,Hle=t=>Fd(t)?TM(t):t;function eve(t){d4&&xx&&(t=sl(t),H1e(t.dep||(t.dep=Fle())))}function tve(t,e){t=sl(t);const o=t.dep;o&&Nae(o)}function ku(t){return!!(t&&t.__v_isRef===!0)}function qo(t){return nve(t,!1)}function Gi(t){return nve(t,!0)}function nve(t,e){return ku(t)?t:new R4e(t,e)}class R4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:sl(e),this._value=o?e:mI(e)}get value(){return eve(this),this._value}set value(e){const o=this.__v_isShallow||MH(e)||tM(e);e=o?e:sl(e),pI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:mI(e),tve(this))}}function Va(t){return ku(t)?t.value:t}const L4e={get:(t,e,o)=>Va(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const E=t[e];return ku(E)&&!ku(o)?(E.value=o,!0):Reflect.set(t,e,o,f)}};function rve(t){return CO(t)?t:new Proxy(t,L4e)}function CM(t){const e=tl(t)?new Array(t.length):{};for(const o in t)e[o]=ove(t,o);return e}class I4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return s4e(sl(this._object),this._key)}}class D4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ji(t,e,o){return ku(t)?t:Ul(t)?new D4e(t):Fd(t)&&arguments.length>1?ove(t,e,o):qo(t)}function ove(t,e,o){const f=t[e];return ku(f)?f:new I4e(t,e,o)}class B4e{constructor(e,o,f,E){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new $le(e,()=>{this._dirty||(this._dirty=!0,tve(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!E,this.__v_isReadonly=f}get value(){const e=sl(this);return eve(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function z4e(t,e,o=!1){let f,E;const d=Ul(t);return d?(f=t,E=Ox):(f=t.get,E=t.set),new B4e(f,E,d||!E,o)}function h4(t,e,o,f){let E;try{E=f?t(...f):t()}catch(d){aD(d,e,o)}return E}function nb(t,e,o,f){if(Ul(t)){const d=h4(t,e,o,f);return d&&I1e(d)&&d.catch(s=>{aD(s,e,o)}),d}const E=[];for(let d=0;d>>1;vI(Xg[f])m_&&Xg.splice(e,1)}function sve(t){tl(t)?H8.push(...t):(!kO||!kO.includes(t,t.allowRecurse?ET+1:ET))&&H8.push(t),ave()}function Gde(t,e=gI?m_+1:0){for(;evI(o)-vI(f)),ET=0;ETt.id==null?1/0:t.id,V4e=(t,e)=>{const o=vI(t)-vI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function cve(t){Fae=!1,gI=!0,Xg.sort(V4e);const e=Ox;try{for(m_=0;m_Yh(y)?y.trim():y)),S&&(E=o.map(Iae))}let n,u=f[n=GL(e)]||f[n=GL(ib(e))];!u&&d&&(u=f[n=GL(KT(e))]),u&&nb(u,t,6,E);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,nb(b,t,6,E)}}function uve(t,e,o=!1){const f=e.emitsCache,E=f.get(t);if(E!==void 0)return E;const d=t.emits;let s={},n=!1;if(!Ul(t)){const u=b=>{const i=uve(b,e,!0);i&&(n=!0,pp(s,i))};!o&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!d&&!n?(Fd(t)&&f.set(t,null),null):(tl(d)?d.forEach(u=>s[u]=null):pp(s,d),Fd(t)&&f.set(t,s),s)}function FZ(t,e){return!t||!DZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Du(t,e[0].toLowerCase()+e.slice(1))||Du(t,KT(e))||Du(t,e))}let Mm=null,$Z=null;function EH(t){const e=Mm;return Mm=t,$Z=t&&t.type.__scopeId||null,e}function Wle(t){$Z=t}function Yle(){$Z=null}function ao(t,e=Mm,o){if(!e||t._n)return t;const f=(...E)=>{f._d&&fhe(-1);const d=EH(e);let s;try{s=t(...E)}finally{EH(d),f._d&&fhe(1)}return s};return f._n=!0,f._c=!0,f._d=!0,f}function mie(t){const{type:e,vnode:o,proxy:f,withProxy:E,props:d,propsOptions:[s],slots:n,attrs:u,emit:b,render:i,renderCache:S,data:w,setupState:y,ctx:m,inheritAttrs:a}=t;let c,h;const p=EH(t);try{if(o.shapeFlag&4){const _=E||f;c=vx(i.call(_,_,S,d,y,w,m)),h=u}else{const _=e;c=vx(_.length>1?_(d,{attrs:u,slots:n,emit:b}):_(d,null)),h=e.props?u:Q4e(u)}}catch(_){tI.length=0,aD(_,t,1),c=$t(Z0)}let v=c;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:O}=v;_.length&&O&7&&(s&&_.some(Dle)&&(h=H4e(h,s)),v=EO(v,h))}return o.dirs&&(v=EO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),c=v,EH(p),c}function j4e(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||DZ(o))&&((e||(e={}))[o]=t[o]);return e},H4e=(t,e)=>{const o={};for(const f in t)(!Dle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function Z4e(t,e,o){const{props:f,children:E,component:d}=t,{props:s,children:n,patchFlag:u}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&u>=0){if(u&1024)return!0;if(u&16)return f?Kde(f,s,b):!!s;if(u&8){const i=e.dynamicProps;for(let S=0;St.__isSuspense,W4e={name:"Suspense",__isSuspense:!0,process(t,e,o,f,E,d,s,n,u,b){t==null?X4e(e,o,f,E,d,s,n,u,b):G4e(t,e,o,f,E,s,n,u,b)},hydrate:K4e,create:Gle,normalize:J4e},Y4e=W4e;function yI(t,e){const o=t.props&&t.props[e];Ul(o)&&o()}function X4e(t,e,o,f,E,d,s,n,u){const{p:b,o:{createElement:i}}=u,S=i("div"),w=t.suspense=Gle(t,E,f,e,S,o,d,s,n,u);b(null,w.pendingBranch=t.ssContent,S,null,f,w,d,s),w.deps>0?(yI(t,"onPending"),yI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,s),Z8(w,t.ssFallback)):w.resolve(!1,!0)}function G4e(t,e,o,f,E,d,s,n,{p:u,um:b,o:{createElement:i}}){const S=e.suspense=t.suspense;S.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:m,pendingBranch:a,isInFallback:c,isHydrating:h}=S;if(a)S.pendingBranch=w,g_(w,a)?(u(a,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():c&&(u(m,y,o,f,E,null,d,s,n),Z8(S,y))):(S.pendingId++,h?(S.isHydrating=!1,S.activeBranch=a):b(a,E,S),S.deps=0,S.effects.length=0,S.hiddenContainer=i("div"),c?(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():(u(m,y,o,f,E,null,d,s,n),Z8(S,y))):m&&g_(w,m)?(u(m,w,o,f,E,S,d,s,n),S.resolve(!0)):(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0&&S.resolve()));else if(m&&g_(w,m))u(m,w,o,f,E,S,d,s,n),Z8(S,w);else if(yI(e,"onPending"),S.pendingBranch=w,S.pendingId++,u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0)S.resolve();else{const{timeout:p,pendingId:v}=S;p>0?setTimeout(()=>{S.pendingId===v&&S.fallback(y)},p):p===0&&S.fallback(y)}}function Gle(t,e,o,f,E,d,s,n,u,b,i=!1){const{p:S,m:w,um:y,n:m,o:{parentNode:a,remove:c}}=b;let h;const p=tke(t);p&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?z1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:s,container:f,hiddenContainer:E,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(O=!1,C=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:P,parentComponent:A,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!O){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=m(R),y(R,A,_,!0)),I||w(M,L,z,0)}Z8(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...P),k=!0;break}D=D.parent}k||sve(P),_.effects=[],p&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!C&&e.resolve()),yI(x,"onResolve")},fallback(O){if(!_.pendingBranch)return;const{vnode:C,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;yI(C,"onFallback");const P=m(x),A=()=>{_.isInFallback&&(S(null,O,M,P,R,null,T,n,u),Z8(_,O))},L=O.transition&&O.transition.mode==="out-in";L&&(x.transition.afterLeave=A),_.isInFallback=!0,y(x,R,null,!0),L||A()},move(O,C,x){_.activeBranch&&w(_.activeBranch,O,C,x),_.container=O},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(O,C){const x=!!_.pendingBranch;x&&_.deps++;const R=O.vnode.el;O.asyncDep.catch(M=>{aD(M,O,0)}).then(M=>{if(O.isUnmounted||_.isUnmounted||_.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:T}=O;Zae(O,M,!1),R&&(T.el=R);const P=!R&&O.subTree.el;C(O,T,a(R||O.subTree.el),R?null:m(O.subTree),_,s,u),P&&c(P),Xle(O,T.el),x&&--_.deps===0&&_.resolve()})},unmount(O,C){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,O,C),_.pendingBranch&&y(_.pendingBranch,o,O,C)}};return _}function K4e(t,e,o,f,E,d,s,n,u){const b=e.suspense=Gle(e,f,o,t.parentNode,document.createElement("div"),null,E,d,s,n,!0),i=u(t,b.pendingBranch=e.ssContent,o,b,d,s);return b.deps===0&&b.resolve(!1,!0),i}function J4e(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=Jde(f?o.default:o),t.ssFallback=f?Jde(o.fallback):$t(Z0)}function Jde(t){let e;if(Ul(t)){const o=rM&&t._c;o&&(t._d=!1,Uo()),t=t(),o&&(t._d=!0,e=Ky,Ave())}return tl(t)&&(t=j4e(t)),t=vx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function eke(t,e){e&&e.pendingBranch?tl(t)?e.effects.push(...t):e.effects.push(t):sve(t)}function Z8(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,E=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=E,Xle(f,E))}function tke(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Gp(t,e){return Kle(t,null,e)}const vQ={};function ia(t,e,o){return Kle(t,e,o)}function Kle(t,e,{immediate:o,deep:f,flush:E,onTrack:d,onTrigger:s}=Jd){var n;const u=V1e()===((n=Yp)==null?void 0:n.scope)?Yp:null;let b,i=!1,S=!1;if(ku(t)?(b=()=>t.value,i=MH(t)):CO(t)?(b=()=>t,f=!0):tl(t)?(S=!0,i=t.some(_=>CO(_)||MH(_)),b=()=>t.map(_=>{if(ku(_))return _.value;if(CO(_))return BT(_);if(Ul(_))return h4(_,u,2)})):Ul(t)?e?b=()=>h4(t,u,2):b=()=>{if(!(u&&u.isUnmounted))return w&&w(),nb(t,u,3,[y])}:b=Ox,e&&f){const _=b;b=()=>BT(_())}let w,y=_=>{w=p.onStop=()=>{h4(_,u,4)}},m;if(wI)if(y=Ox,e?o&&nb(e,u,3,[b(),S?[]:void 0,y]):b(),E==="sync"){const _=Hke();m=_.__watcherHandles||(_.__watcherHandles=[])}else return Ox;let a=S?new Array(t.length).fill(vQ):vQ;const c=()=>{if(p.active)if(e){const _=p.run();(f||i||(S?_.some((O,C)=>pI(O,a[C])):pI(_,a)))&&(w&&w(),nb(e,u,3,[_,a===vQ?void 0:S&&a[0]===vQ?[]:a,y]),a=_)}else p.run()};c.allowRecurse=!!e;let h;E==="sync"?h=c:E==="post"?h=()=>D1(c,u&&u.suspense):(c.pre=!0,u&&(c.id=u.uid),h=()=>qle(c));const p=new $le(b,h);e?o?c():a=p.run():E==="post"?D1(p.run.bind(p),u&&u.suspense):p.run();const v=()=>{p.stop(),u&&u.scope&&Ble(u.scope.effects,p)};return m&&m.push(v),v}function nke(t,e,o){const f=this.proxy,E=Yh(t)?t.includes(".")?fve(f,t):()=>f[t]:t.bind(f,f);let d;Ul(e)?d=e:(d=e.handler,o=e);const s=Yp;iM(this);const n=Kle(E,d.bind(f),o);return s?iM(s):VT(),n}function fve(t,e){const o=e.split(".");return()=>{let f=t;for(let E=0;E{BT(o,e)});else if(B1e(t))for(const o in t)BT(t[o],e);return t}function Kp(t,e){const o=Mm;if(o===null)return t;const f=QZ(o)||o.proxy,E=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),Em(()=>{t.isUnmounting=!0}),t}const Xy=[Function,Array],hve={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xy,onEnter:Xy,onAfterEnter:Xy,onEnterCancelled:Xy,onBeforeLeave:Xy,onLeave:Xy,onAfterLeave:Xy,onLeaveCancelled:Xy,onBeforeAppear:Xy,onAppear:Xy,onAfterAppear:Xy,onAppearCancelled:Xy},rke={name:"BaseTransition",props:hve,setup(t,{slots:e}){const o=fce(),f=dve();let E;return()=>{const d=e.default&&Jle(e.default(),!0);if(!d||!d.length)return;let s=d[0];if(d.length>1){for(const a of d)if(a.type!==Z0){s=a;break}}const n=sl(t),{mode:u}=n;if(f.isLeaving)return gie(s);const b=ehe(s);if(!b)return gie(s);const i=bI(b,n,f,o);xI(b,i);const S=o.subTree,w=S&&ehe(S);let y=!1;const{getTransitionKey:m}=b.type;if(m){const a=m();E===void 0?E=a:a!==E&&(E=a,y=!0)}if(w&&w.type!==Z0&&(!g_(b,w)||y)){const a=bI(w,n,f,o);if(xI(w,a),u==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},gie(s);u==="in-out"&&b.type!==Z0&&(a.delayLeave=(c,h,p)=>{const v=pve(f,w);v[String(w.key)]=w,c._leaveCb=()=>{h(),c._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=p})}return s}}},oke=rke;function pve(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function bI(t,e,o,f){const{appear:E,mode:d,persisted:s=!1,onBeforeEnter:n,onEnter:u,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:S,onLeave:w,onAfterLeave:y,onLeaveCancelled:m,onBeforeAppear:a,onAppear:c,onAfterAppear:h,onAppearCancelled:p}=e,v=String(t.key),_=pve(o,t),O=(R,M)=>{R&&nb(R,f,9,M)},C=(R,M)=>{const T=M[1];O(R,M),tl(R)?R.every(P=>P.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:s,beforeEnter(R){let M=n;if(!o.isMounted)if(E)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&g_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),O(M,[R])},enter(R){let M=u,T=b,P=i;if(!o.isMounted)if(E)M=c||u,T=h||b,P=p||i;else return;let A=!1;const L=R._enterCb=D=>{A||(A=!0,D?O(P,[R]):O(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?C(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();O(S,[R]);let P=!1;const A=R._leaveCb=L=>{P||(P=!0,M(),L?O(m,[R]):O(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?C(w,[R,A]):A()},clone(R){return bI(R,e,o,f)}};return x}function gie(t){if(VZ(t))return t=EO(t),t.children=null,t}function ehe(t){return VZ(t)?t.children?t.children[0]:void 0:t}function xI(t,e){t.shapeFlag&6&&t.component?xI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Jle(t,e=!1,o){let f=[],E=0;for(let d=0;d1)for(let d=0;dpp({name:t.name},e,{setup:t}))():t}const KL=t=>!!t.type.__asyncLoader,VZ=t=>t.type.__isKeepAlive;function ece(t,e){mve(t,"a",e)}function tce(t,e){mve(t,"da",e)}function mve(t,e,o=Yp){const f=t.__wdc||(t.__wdc=()=>{let E=o;for(;E;){if(E.isDeactivated)return;E=E.parent}return t()});if(UZ(e,f,o),o){let E=o.parent;for(;E&&E.parent;)VZ(E.parent.vnode)&&ike(f,e,o,E),E=E.parent}}function ike(t,e,o,f){const E=UZ(e,t,f,!0);oce(()=>{Ble(f[e],E)},o)}function UZ(t,e,o=Yp,f=!1){if(o){const E=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...s)=>{if(o.isUnmounted)return;SM(),iM(o);const n=nb(e,o,t,s);return VT(),kM(),n});return f?E.unshift(d):E.push(d),d}}const zO=t=>(e,o=Yp)=>(!wI||t==="sp")&&UZ(t,(...f)=>e(...f),o),nce=zO("bm"),pg=zO("m"),gve=zO("bu"),rce=zO("u"),Em=zO("bum"),oce=zO("um"),ake=zO("sp"),ske=zO("rtg"),lke=zO("rtc");function cke(t,e=Yp){UZ("ec",t,e)}const ice="components",uke="directives";function Nd(t,e){return ace(ice,t,!0,e)||t}const vve=Symbol.for("v-ndc");function nM(t){return Yh(t)?ace(ice,t,!1)||t:t||vve}function M_(t){return ace(uke,t)}function ace(t,e,o=!0,f=!1){const E=Mm||Yp;if(E){const d=E.type;if(t===ice){const n=Uke(d,!1);if(n&&(n===e||n===ib(e)||n===A_(ib(e))))return d}const s=the(E[t]||d[t],e)||the(E.appContext[t],e);return!s&&f?d:s}}function the(t,e){return t&&(t[e]||t[ib(e)]||t[A_(ib(e))])}function ey(t,e,o,f){let E;const d=o&&o[f];if(tl(t)||Yh(t)){E=new Array(t.length);for(let s=0,n=t.length;se(s,n,void 0,d&&d[n]));else{const s=Object.keys(t);E=new Array(s.length);for(let n=0,u=s.length;n{const d=f.fn(...E);return d&&(d.key=f.key),d}:f.fn)}return t}function vie(t,e,o={},f,E){if(Mm.isCE||Mm.parent&&KL(Mm.parent)&&Mm.parent.isCE)return e!=="default"&&(o.name=e),$t("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Uo();const s=d&&bve(d(o)),n=da(Ea,{key:o.key||s&&s.key||`_${e}`},s||(f?f():[]),s&&t._===1?64:-2);return!E&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function bve(t){return t.some(e=>oM(e)?!(e.type===Z0||e.type===Ea&&!bve(e.children)):!0)?t:null}function fke(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:GL(f)]=t[f];return o}const $ae=t=>t?Pve(t)?QZ(t)||t.proxy:$ae(t.parent):null,JL=pp(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>$ae(t.parent),$root:t=>$ae(t.root),$emit:t=>t.emit,$options:t=>sce(t),$forceUpdate:t=>t.f||(t.f=()=>qle(t.update)),$nextTick:t=>t.n||(t.n=Vc.bind(t.proxy)),$watch:t=>nke.bind(t)}),yie=(t,e)=>t!==Jd&&!t.__isScriptSetup&&Du(t,e),dke={get({_:t},e){const{ctx:o,setupState:f,data:E,props:d,accessCache:s,type:n,appContext:u}=t;let b;if(e[0]!=="$"){const y=s[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return E[e];case 4:return o[e];case 3:return d[e]}else{if(yie(f,e))return s[e]=1,f[e];if(E!==Jd&&Du(E,e))return s[e]=2,E[e];if((b=t.propsOptions[0])&&Du(b,e))return s[e]=3,d[e];if(o!==Jd&&Du(o,e))return s[e]=4,o[e];Vae&&(s[e]=0)}}const i=JL[e];let S,w;if(i)return e==="$attrs"&&V1(t,"get",e),i(t);if((S=n.__cssModules)&&(S=S[e]))return S;if(o!==Jd&&Du(o,e))return s[e]=4,o[e];if(w=u.config.globalProperties,Du(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:E,ctx:d}=t;return yie(E,e)?(E[e]=o,!0):f!==Jd&&Du(f,e)?(f[e]=o,!0):Du(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:E,propsOptions:d}},s){let n;return!!o[s]||t!==Jd&&Du(t,s)||yie(e,s)||(n=d[0])&&Du(n,s)||Du(f,s)||Du(JL,s)||Du(E.config.globalProperties,s)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Du(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function nhe(t){return tl(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let Vae=!0;function hke(t){const e=sce(t),o=t.proxy,f=t.ctx;Vae=!1,e.beforeCreate&&rhe(e.beforeCreate,t,"bc");const{data:E,computed:d,methods:s,watch:n,provide:u,inject:b,created:i,beforeMount:S,mounted:w,beforeUpdate:y,updated:m,activated:a,deactivated:c,beforeDestroy:h,beforeUnmount:p,destroyed:v,unmounted:_,render:O,renderTracked:C,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:P,components:A,directives:L,filters:D}=e;if(b&&pke(b,f,null),s)for(const z in s){const $=s[z];Ul($)&&(f[z]=$.bind(o))}if(E){const z=E.call(o,o);Fd(z)&&(t.data=Am(z))}if(Vae=!0,d)for(const z in d){const $=d[z],Q=Ul($)?$.bind(o,o):Ul($.get)?$.get.bind(o,o):Ox,j=!Ul($)&&Ul($.set)?$.set.bind(o):Ox,U=nr({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)xve(n[z],f,o,z);if(u){const z=Ul(u)?u.call(o):u;Reflect.ownKeys(z).forEach($=>{md($,z[$])})}i&&rhe(i,t,"c");function I(z,$){tl($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(nce,S),I(pg,w),I(gve,y),I(rce,m),I(ece,a),I(tce,c),I(cke,R),I(lke,C),I(ske,x),I(Em,p),I(oce,_),I(ake,M),tl(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});O&&t.render===Ox&&(t.render=O),P!=null&&(t.inheritAttrs=P),A&&(t.components=A),L&&(t.directives=L)}function pke(t,e,o=Ox){tl(t)&&(t=Uae(t));for(const f in t){const E=t[f];let d;Fd(E)?"default"in E?d=Kl(E.from||f,E.default,!0):d=Kl(E.from||f):d=Kl(E),ku(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):e[f]=d}}function rhe(t,e,o){nb(tl(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function xve(t,e,o,f){const E=f.includes(".")?fve(o,f):()=>o[f];if(Yh(t)){const d=e[t];Ul(d)&&ia(E,d)}else if(Ul(t))ia(E,t.bind(o));else if(Fd(t))if(tl(t))t.forEach(d=>xve(d,e,o,f));else{const d=Ul(t.handler)?t.handler.bind(o):e[t.handler];Ul(d)&&ia(E,d,t)}}function sce(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:E,optionsCache:d,config:{optionMergeStrategies:s}}=t.appContext,n=d.get(e);let u;return n?u=n:!E.length&&!o&&!f?u=e:(u={},E.length&&E.forEach(b=>PH(u,b,s,!0)),PH(u,e,s)),Fd(e)&&d.set(e,u),u}function PH(t,e,o,f=!1){const{mixins:E,extends:d}=e;d&&PH(t,d,o,!0),E&&E.forEach(s=>PH(t,s,o,!0));for(const s in e)if(!(f&&s==="expose")){const n=mke[s]||o&&o[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const mke={data:ohe,props:ihe,emits:ihe,methods:QL,computed:QL,beforeCreate:j0,created:j0,beforeMount:j0,mounted:j0,beforeUpdate:j0,updated:j0,beforeDestroy:j0,beforeUnmount:j0,destroyed:j0,unmounted:j0,activated:j0,deactivated:j0,errorCaptured:j0,serverPrefetch:j0,components:QL,directives:QL,watch:vke,provide:ohe,inject:gke};function ohe(t,e){return e?t?function(){return pp(Ul(t)?t.call(this,this):t,Ul(e)?e.call(this,this):e)}:e:t}function gke(t,e){return QL(Uae(t),Uae(e))}function Uae(t){if(tl(t)){const e={};for(let o=0;o1)return o&&Ul(e)?e.call(f&&f.proxy):e}}function xke(){return!!(Yp||Mm||_I)}function _ke(t,e,o,f=!1){const E={},d={};CH(d,jZ,1),t.propsDefaults=Object.create(null),wve(t,e,E,d);for(const s in t.propsOptions[0])s in E||(E[s]=void 0);o?t.props=f?E:K1e(E):t.type.props?t.props=E:t.props=d,t.attrs=d}function wke(t,e,o,f){const{props:E,attrs:d,vnode:{patchFlag:s}}=t,n=sl(E),[u]=t.propsOptions;let b=!1;if((f||s>0)&&!(s&16)){if(s&8){const i=t.vnode.dynamicProps;for(let S=0;S{u=!0;const[w,y]=Ove(S,e,!0);pp(s,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!u)return Fd(t)&&f.set(t,j8),j8;if(tl(d))for(let i=0;i-1,y[1]=a<0||m-1||Du(y,"default"))&&n.push(S)}}}const b=[s,n];return Fd(t)&&f.set(t,b),b}function ahe(t){return t[0]!=="$"}function she(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function lhe(t,e){return she(t)===she(e)}function che(t,e){return tl(e)?e.findIndex(o=>lhe(o,t)):Ul(e)&&lhe(e,t)?0:-1}const Sve=t=>t[0]==="_"||t==="$stable",lce=t=>tl(t)?t.map(vx):[vx(t)],Oke=(t,e,o)=>{if(e._n)return e;const f=ao((...E)=>lce(e(...E)),o);return f._c=!1,f},kve=(t,e,o)=>{const f=t._ctx;for(const E in t){if(Sve(E))continue;const d=t[E];if(Ul(d))e[E]=Oke(E,d,f);else if(d!=null){const s=lce(d);e[E]=()=>s}}},Tve=(t,e)=>{const o=lce(e);t.slots.default=()=>o},Ske=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=sl(e),CH(e,"_",o)):kve(e,t.slots={})}else t.slots={},e&&Tve(t,e);CH(t.slots,jZ,1)},kke=(t,e,o)=>{const{vnode:f,slots:E}=t;let d=!0,s=Jd;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(pp(E,e),!o&&n===1&&delete E._):(d=!e.$stable,kve(e,E)),s=e}else e&&(Tve(t,e),s={default:1});if(d)for(const n in E)!Sve(n)&&!(n in s)&&delete E[n]};function Qae(t,e,o,f,E=!1){if(tl(t)){t.forEach((w,y)=>Qae(w,e&&(tl(e)?e[y]:e),o,f,E));return}if(KL(f)&&!E)return;const d=f.shapeFlag&4?QZ(f.component)||f.component.proxy:f.el,s=E?null:d,{i:n,r:u}=t,b=e&&e.r,i=n.refs===Jd?n.refs={}:n.refs,S=n.setupState;if(b!=null&&b!==u&&(Yh(b)?(i[b]=null,Du(S,b)&&(S[b]=null)):ku(b)&&(b.value=null)),Ul(u))h4(u,n,12,[s,i]);else{const w=Yh(u),y=ku(u);if(w||y){const m=()=>{if(t.f){const a=w?Du(S,u)?S[u]:i[u]:u.value;E?tl(a)&&Ble(a,d):tl(a)?a.includes(d)||a.push(d):w?(i[u]=[d],Du(S,u)&&(S[u]=i[u])):(u.value=[d],t.k&&(i[t.k]=u.value))}else w?(i[u]=s,Du(S,u)&&(S[u]=s)):y&&(u.value=s,t.k&&(i[t.k]=s))};s?(m.id=-1,D1(m,o)):m()}}}const D1=eke;function Tke(t){return Cke(t)}function Cke(t,e){const o=Dae();o.__VUE__=!0;const{insert:f,remove:E,patchProp:d,createElement:s,createText:n,createComment:u,setText:b,setElementText:i,parentNode:S,nextSibling:w,setScopeId:y=Ox,insertStaticContent:m}=t,a=(se,ae,ce,de=null,ye=null,ve=null,_e=!1,we=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!g_(se,ae)&&(de=q(se),X(se,ye,ve,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case sD:c(se,ae,ce,de);break;case Z0:h(se,ae,ce,de);break;case bie:se==null&&p(ae,ce,de,_e);break;case Ea:A(se,ae,ce,de,ye,ve,_e,we,Te);break;default:ze&1?O(se,ae,ce,de,ye,ve,_e,we,Te):ze&6?L(se,ae,ce,de,ye,ve,_e,we,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ye,ve,_e,we,Te,ee)}Ie!=null&&ye&&Qae(Ie,se&&se.ref,ve,ae||se,!ae)},c=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ye=ae.el=se.el;ae.children!==se.children&&b(ye,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=u(ae.children||""),ce,de):ae.el=se.el},p=(se,ae,ce,de)=>{[se.el,se.anchor]=m(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ye;for(;se&&se!==ae;)ye=w(se),f(se,ce,de),se=ye;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),E(se),se=ce;E(ae)},O=(se,ae,ce,de,ye,ve,_e,we,Te)=>{_e=_e||ae.type==="svg",se==null?C(ae,ce,de,ye,ve,_e,we,Te):M(se,ae,ye,ve,_e,we,Te)},C=(se,ae,ce,de,ye,ve,_e,we)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:Qe,dirs:Ve}=se;if(Te=se.el=s(se.type,ve,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ye,ve&&Ie!=="foreignObject",_e,we),Ve&&xT(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!rH(Oe)&&d(Te,Oe,null,ze[Oe],ve,se.children,de,ye,re);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&c_(Pe,de,se)}Ve&&xT(se,null,de,"beforeMount");const $e=(!ye||ye&&!ye.pendingBranch)&&Qe&&!Qe.persisted;$e&&Qe.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&D1(()=>{Pe&&c_(Pe,de,se),$e&&Qe.enter(Te),Ve&&xT(se,null,de,"mounted")},ye)},x=(se,ae,ce,de,ye)=>{if(ce&&y(se,ce),de)for(let ve=0;ve{for(let Pe=Te;Pe{const we=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||Jd,De=ae.props||Jd;let Qe;ce&&_T(ce,!1),(Qe=De.onVnodeBeforeUpdate)&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"beforeUpdate"),ce&&_T(ce,!0);const Ve=ye&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,we,ce,de,Ve,ve):_e||$(se,ae,we,null,ce,de,Ve,ve,!1),Te>0){if(Te&16)P(we,ae,ze,De,ce,de,ye);else if(Te&2&&ze.class!==De.class&&d(we,"class",null,De.class,ye),Te&4&&d(we,"style",ze.style,De.style,ye),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Re=ze[ke],We=De[ke];(We!==Re||ke==="value")&&d(we,ke,Re,We,ye,se.children,ce,de,re)}}Te&1&&se.children!==ae.children&&i(we,ae.children)}else!_e&&Pe==null&&P(we,ae,ze,De,ce,de,ye);((Qe=De.onVnodeUpdated)||Ie)&&D1(()=>{Qe&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ye,ve,_e)=>{for(let we=0;we{if(ce!==de){if(ce!==Jd)for(const we in ce)!rH(we)&&!(we in de)&&d(se,we,ce[we],null,_e,ae.children,ye,ve,re);for(const we in de){if(rH(we))continue;const Te=de[we],Pe=ce[we];Te!==Pe&&we!=="value"&&d(se,we,Pe,Te,_e,ae.children,ye,ve,re)}"value"in de&&d(se,"value",ce.value,de.value)}},A=(se,ae,ce,de,ye,ve,_e,we,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:Qe}=ae;Qe&&(we=we?we.concat(Qe):Qe),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ye,ve,_e,we,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ye,ve,_e,we),(ae.key!=null||ye&&ae===ye.subTree)&&cce(se,ae,!0)):$(se,ae,ce,Ie,ye,ve,_e,we,Te)},L=(se,ae,ce,de,ye,ve,_e,we,Te)=>{ae.slotScopeIds=we,se==null?ae.shapeFlag&512?ye.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ye,ve,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ye,ve,_e)=>{const we=se.component=zke(se,de,ye);if(VZ(se)&&(we.ctx.renderer=ee),Nke(we),we.asyncDep){if(ye&&ye.registerDep(we,I),!se.el){const Te=we.subTree=$t(Z0);h(null,Te,ae,ce)}return}I(we,se,ae,ce,ye,ve,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(Z4e(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,$4e(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ye,ve,_e)=>{const we=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:Qe,vnode:Ve}=se,$e=Ie,Oe;_T(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&oH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&c_(Oe,Qe,Ie,Ve),_T(se,!0);const ke=mie(se),Re=se.subTree;se.subTree=ke,a(Re,ke,S(Re.el),q(Re),se,ye,ve),Ie.el=ke.el,$e===null&&Xle(se,ke.el),De&&D1(De,ye),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&D1(()=>c_(Oe,Qe,Ie,Ve),ye)}else{let Ie;const{el:ze,props:De}=ae,{bm:Qe,m:Ve,parent:$e}=se,Oe=KL(ae);if(_T(se,!1),Qe&&oH(Qe),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&c_(Ie,$e,ae),_T(se,!0),ze&&pe){const ke=()=>{se.subTree=mie(se),pe(ze,se.subTree,se,ye,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=mie(se);a(null,ke,ce,de,se,ye,ve),ae.el=ke.el}if(Ve&&D1(Ve,ye),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;D1(()=>c_(Ie,$e,ke),ye)}(ae.shapeFlag&256||$e&&KL($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&D1(se.a,ye),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new $le(we,()=>qle(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,_T(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,wke(se,ae.props,de,ce),kke(se,ae.children,ce),SM(),Gde(),kM()},$=(se,ae,ce,de,ye,ve,_e,we,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:Qe}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ye,ve,_e,we,Te);return}else if(De&256){Q(Pe,ze,ce,de,ye,ve,_e,we,Te);return}}Qe&8?(Ie&16&&re(Pe,ye,ve),ze!==Pe&&i(ce,ze)):Ie&16?Qe&16?j(Pe,ze,ce,de,ye,ve,_e,we,Te):re(Pe,ye,ve,!0):(Ie&8&&i(ce,""),Qe&16&&R(ze,ce,de,ye,ve,_e,we,Te))},Q=(se,ae,ce,de,ye,ve,_e,we,Te)=>{se=se||j8,ae=ae||j8;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?re(se,ye,ve,!0,!1,ze):R(ae,ce,de,ye,ve,_e,we,Te,ze)},j=(se,ae,ce,de,ye,ve,_e,we,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const Qe=se[Pe],Ve=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const Qe=se[ze],Ve=ae[De]=Te?t4(ae[De]):vx(ae[De]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const Qe=De+1,Ve=QeDe)for(;Pe<=ze;)X(se[Pe],ye,ve,!0),Pe++;else{const Qe=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const Je=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);Je.key!=null&&$e.set(Je.key,Pe)}let Oe,ke=0;const Re=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Re);for(Pe=0;Pe=Re){X(Je,ye,ve,!0);continue}let Me;if(Je.key!=null)Me=$e.get(Je.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&g_(Je,ae[Oe])){Me=Oe;break}Me===void 0?X(Je,ye,ve,!0):(Ze[Me-Ve]=Pe+1,Me>=Ue?Ue=Me:We=!0,a(Je,ae[Me],ce,null,ye,ve,_e,we,Te),ke++)}const Ye=We?Ake(Ze):j8;for(Oe=Ye.length-1,Pe=Re-1;Pe>=0;Pe--){const Je=Ve+Pe,Me=ae[Je],Fe=Je+1{const{el:ve,type:_e,transition:we,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===Ea){f(ve,ae,ce);for(let ze=0;zewe.enter(ve),ye);else{const{leave:ze,delayLeave:De,afterLeave:Qe}=we,Ve=()=>f(ve,ae,ce),$e=()=>{ze(ve,()=>{Ve(),Qe&&Qe()})};De?De(ve,Ve,$e):$e()}else f(ve,ae,ce)},X=(se,ae,ce,de=!1,ye=!1)=>{const{type:ve,props:_e,ref:we,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(we!=null&&Qae(we,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const Qe=Ie&1&&De,Ve=!KL(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&c_($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}Qe&&xT(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ye,ee,de):Pe&&(ve!==Ea||ze>0&&ze&64)?re(Pe,ae,ce,!1,!0):(ve===Ea&&ze&384||!ye&&Ie&16)&&re(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||Qe)&&D1(()=>{$e&&c_($e,ae,se),Qe&&xT(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ye}=se;if(ae===Ea){Z(ce,de);return}if(ae===bie){_(se);return}const ve=()=>{E(ce),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(se.shapeFlag&1&&ye&&!ye.persisted){const{leave:_e,delayLeave:we}=ye,Te=()=>_e(ce,ve);we?we(se.el,ve,Te):Te()}else ve()},Z=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),E(se),se=ce;E(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ye,update:ve,subTree:_e,um:we}=se;de&&oH(de),ye.stop(),ve&&(ve.active=!1,X(_e,se,ae,ce)),we&&D1(we,ae),D1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},re=(se,ae,ce,de=!1,ye=!1,ve=0)=>{for(let _e=ve;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Gde(),lve(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,pe;return e&&([me,pe]=e(ee)),{render:Y,hydrate:me,createApp:bke(Y,me)}}function _T({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function cce(t,e,o=!1){const f=t.children,E=e.children;if(tl(f)&&tl(E))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,s=o[d-1];d-- >0;)o[d]=s,s=e[s];return o}const Mke=t=>t.__isTeleport,eI=t=>t&&(t.disabled||t.disabled===""),uhe=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Hae=(t,e)=>{const o=t&&t.to;return Yh(o)?e?e(o):null:o},Eke={__isTeleport:!0,process(t,e,o,f,E,d,s,n,u,b){const{mc:i,pc:S,pbc:w,o:{insert:y,querySelector:m,createText:a,createComment:c}}=b,h=eI(e.props);let{shapeFlag:p,children:v,dynamicChildren:_}=e;if(t==null){const O=e.el=a(""),C=e.anchor=a("");y(O,o,f),y(C,o,f);const x=e.target=Hae(e.props,m),R=e.targetAnchor=a("");x&&(y(R,x),s=s||uhe(x));const M=(T,P)=>{p&16&&i(v,T,P,E,d,s,n,u)};h?M(o,C):x&&M(x,R)}else{e.el=t.el;const O=e.anchor=t.anchor,C=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=eI(t.props),M=R?o:C,T=R?O:x;if(s=s||uhe(C),_?(w(t.dynamicChildren,_,M,E,d,s,n),cce(t,e,!0)):u||S(t,e,M,T,E,d,s,n,!1),h)R||yQ(e,o,O,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=Hae(e.props,m);P&&yQ(e,P,null,b,0)}else R&&yQ(e,C,x,b,1)}Cve(e)},remove(t,e,o,f,{um:E,o:{remove:d}},s){const{shapeFlag:n,children:u,anchor:b,targetAnchor:i,target:S,props:w}=t;if(S&&d(i),(s||!eI(w))&&(d(b),n&16))for(let y=0;y0?Ky||j8:null,Ave(),rM>0&&Ky&&Ky.push(t),t}function Ya(t,e,o,f,E,d){return Mve(Na(t,e,o,f,E,d,!0))}function da(t,e,o,f,E){return Mve($t(t,e,o,f,E,!0))}function oM(t){return t?t.__v_isVNode===!0:!1}function g_(t,e){return t.type===e.type&&t.key===e.key}const jZ="__vInternal",Eve=({key:t})=>t??null,iH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?Yh(t)||ku(t)||Ul(t)?{i:Mm,r:t,k:e,f:!!o}:t:null);function Na(t,e=null,o=null,f=0,E=null,d=t===Ea?0:1,s=!1,n=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Eve(e),ref:e&&iH(e),scopeId:$Z,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:E,dynamicChildren:null,appContext:null,ctx:Mm};return n?(uce(u,o),d&128&&t.normalize(u)):o&&(u.shapeFlag|=Yh(o)?8:16),rM>0&&!s&&Ky&&(u.patchFlag>0||d&6)&&u.patchFlag!==32&&Ky.push(u),u}const $t=Lke;function Lke(t,e=null,o=null,f=0,E=null,d=!1){if((!t||t===vve)&&(t=Z0),oM(t)){const n=EO(t,e,!0);return o&&uce(n,o),rM>0&&!d&&Ky&&(n.shapeFlag&6?Ky[Ky.indexOf(t)]=n:Ky.push(n)),n.patchFlag|=-2,n}if(jke(t)&&(t=t.__vccOpts),e){e=Ike(e);let{class:n,style:u}=e;n&&!Yh(n)&&(e.class=Gv(n)),Fd(u)&&(J1e(u)&&!tl(u)&&(u=pp({},u)),e.style=rD(u))}const s=Yh(t)?1:q4e(t)?128:Mke(t)?64:Fd(t)?4:Ul(t)?2:0;return Na(t,e,o,f,E,s,d,!0)}function Ike(t){return t?J1e(t)||jZ in t?pp({},t):t:null}function EO(t,e,o=!1){const{props:f,ref:E,patchFlag:d,children:s}=t,n=e?qi(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&Eve(n),ref:e&&e.ref?o&&E?tl(E)?E.concat(iH(e)):[E,iH(e)]:iH(e):E,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ea?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&EO(t.ssContent),ssFallback:t.ssFallback&&EO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ua(t=" ",e=0){return $t(sD,null,t,e)}function za(t="",e=!1){return e?(Uo(),da(Z0,null,t)):$t(Z0,null,t)}function vx(t){return t==null||typeof t=="boolean"?$t(Z0):tl(t)?$t(Ea,null,t.slice()):typeof t=="object"?t4(t):$t(sD,null,String(t))}function t4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:EO(t)}function uce(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(tl(e))o=16;else if(typeof e=="object")if(f&65){const E=e.default;E&&(E._c&&(E._d=!1),uce(t,E()),E._c&&(E._d=!0));return}else{o=32;const E=e._;!E&&!(jZ in e)?e._ctx=Mm:E===3&&Mm&&(Mm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ul(e)?(e={default:e,_ctx:Mm},o=32):(e=String(e),f&64?(o=16,e=[Ua(e)]):o=8);t.children=e,t.shapeFlag|=o}function qi(...t){const e={};for(let o=0;oYp||Mm;let dce,T8,dhe="__VUE_INSTANCE_SETTERS__";(T8=Dae()[dhe])||(T8=Dae()[dhe]=[]),T8.push(t=>Yp=t),dce=t=>{T8.length>1?T8.forEach(e=>e(t)):T8[0](t)};const iM=t=>{dce(t),t.scope.on()},VT=()=>{Yp&&Yp.scope.off(),dce(null)};function Pve(t){return t.vnode.shapeFlag&4}let wI=!1;function Nke(t,e=!1){wI=e;const{props:o,children:f}=t.vnode,E=Pve(t);_ke(t,o,E,e),Ske(t,f);const d=E?Fke(t,e):void 0;return wI=!1,d}function Fke(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=iD(new Proxy(t.ctx,dke));const{setup:f}=o;if(f){const E=t.setupContext=f.length>1?Vke(t):null;iM(t),SM();const d=h4(f,t,0,[t.props,E]);if(kM(),VT(),I1e(d)){if(d.then(VT,VT),e)return d.then(s=>{Zae(t,s,e)}).catch(s=>{aD(s,t,0)});t.asyncDep=d}else Zae(t,d,e)}else Rve(t,e)}function Zae(t,e,o){Ul(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Fd(e)&&(t.setupState=rve(e)),Rve(t,o)}let hhe;function Rve(t,e,o){const f=t.type;if(!t.render){if(!e&&hhe&&!f.render){const E=f.template||sce(t).template;if(E){const{isCustomElement:d,compilerOptions:s}=t.appContext.config,{delimiters:n,compilerOptions:u}=f,b=pp(pp({isCustomElement:d,delimiters:n},s),u);f.render=hhe(E,b)}}t.render=f.render||Ox}iM(t),SM(),hke(t),kM(),VT()}function $ke(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return V1(t,"get","$attrs"),e[o]}}))}function Vke(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return $ke(t)},slots:t.slots,emit:t.emit,expose:e}}function QZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(rve(iD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in JL)return JL[o](t)},has(e,o){return o in e||o in JL}}))}function Uke(t,e=!0){return Ul(t)?t.displayName||t.name:t.name||e&&t.__name}function jke(t){return Ul(t)&&"__vccOpts"in t}const nr=(t,e)=>z4e(t,e,wI);function U1(t,e,o){const f=arguments.length;return f===2?Fd(e)&&!tl(e)?oM(e)?$t(t,null,[e]):$t(t,e):$t(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&oM(o)&&(o=[o]),$t(t,e,o))}const Qke=Symbol.for("v-scx"),Hke=()=>Kl(Qke),Zke="3.3.4",qke="http://www.w3.org/2000/svg",PT=typeof document<"u"?document:null,phe=PT&&PT.createElement("template"),Wke={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const E=e?PT.createElementNS(qke,t):PT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&E.setAttribute("multiple",f.multiple),E},createText:t=>PT.createTextNode(t),createComment:t=>PT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>PT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,E,d){const s=o?o.previousSibling:e.lastChild;if(E&&(E===d||E.nextSibling))for(;e.insertBefore(E.cloneNode(!0),o),!(E===d||!(E=E.nextSibling)););else{phe.innerHTML=f?`${t}`:t;const n=phe.content;if(f){const u=n.firstChild;for(;u.firstChild;)n.appendChild(u.firstChild);n.removeChild(u)}e.insertBefore(n,o)}return[s?s.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function Yke(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function Xke(t,e,o){const f=t.style,E=Yh(o);if(o&&!E){if(e&&!Yh(e))for(const d in e)o[d]==null&&qae(f,d,"");for(const d in o)qae(f,d,o[d])}else{const d=f.display;E?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const mhe=/\s*!important$/;function qae(t,e,o){if(tl(o))o.forEach(f=>qae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=Gke(t,e);mhe.test(o)?t.setProperty(KT(f),o.replace(mhe,""),"important"):t[f]=o}}const ghe=["Webkit","Moz","ms"],xie={};function Gke(t,e){const o=xie[e];if(o)return o;let f=ib(e);if(f!=="filter"&&f in t)return xie[e]=f;f=A_(f);for(let E=0;E_ie||(r5e.then(()=>_ie=0),_ie=Date.now());function i5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;nb(a5e(f,o.value),e,5,[f])};return o.value=t,o.attached=o5e(),o}function a5e(t,e){if(tl(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>E=>!E._stopped&&f&&f(E))}else return e}const bhe=/^on[a-z]/,s5e=(t,e,o,f,E=!1,d,s,n,u)=>{e==="class"?Yke(t,f,E):e==="style"?Xke(t,o,f):DZ(e)?Dle(e)||t5e(t,e,o,f,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):l5e(t,e,f,E))?Jke(t,e,f,d,s,n,u):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),Kke(t,e,f,E))};function l5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&bhe.test(e)&&Ul(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||bhe.test(e)&&Yh(o)?!1:e in t}const XS="transition",CL="animation",C_=(t,{slots:e})=>U1(oke,Ive(t),e);C_.displayName="Transition";const Lve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},c5e=C_.props=pp({},hve,Lve),wT=(t,e=[])=>{tl(t)?t.forEach(o=>o(...e)):t&&t(...e)},xhe=t=>t?tl(t)?t.some(e=>e.length>1):t.length>1:!1;function Ive(t){const e={};for(const A in t)A in Lve||(e[A]=t[A]);if(t.css===!1)return e;const{name:o="v",type:f,duration:E,enterFromClass:d=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:u=d,appearActiveClass:b=s,appearToClass:i=n,leaveFromClass:S=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,m=u5e(E),a=m&&m[0],c=m&&m[1],{onBeforeEnter:h,onEnter:p,onEnterCancelled:v,onLeave:_,onLeaveCancelled:O,onBeforeAppear:C=h,onAppear:x=p,onAppearCancelled:R=v}=e,M=(A,L,D)=>{JS(A,L?i:n),JS(A,L?b:s),D&&D()},T=(A,L)=>{A._isLeaving=!1,JS(A,S),JS(A,y),JS(A,w),L&&L()},P=A=>(L,D)=>{const k=A?x:p,I=()=>M(L,A,D);wT(k,[L,I]),_he(()=>{JS(L,A?u:d),SO(L,A?i:n),xhe(k)||whe(L,f,a,I)})};return pp(e,{onBeforeEnter(A){wT(h,[A]),SO(A,d),SO(A,s)},onBeforeAppear(A){wT(C,[A]),SO(A,u),SO(A,b)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){A._isLeaving=!0;const D=()=>T(A,L);SO(A,S),Bve(),SO(A,w),_he(()=>{A._isLeaving&&(JS(A,S),SO(A,y),xhe(_)||whe(A,f,c,D))}),wT(_,[A,D])},onEnterCancelled(A){M(A,!1),wT(v,[A])},onAppearCancelled(A){M(A,!0),wT(R,[A])},onLeaveCancelled(A){T(A),wT(O,[A])}})}function u5e(t){if(t==null)return null;if(Fd(t))return[wie(t.enter),wie(t.leave)];{const e=wie(t);return[e,e]}}function wie(t){return z1e(t)}function SO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function JS(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function _he(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let f5e=0;function whe(t,e,o,f){const E=t._endId=++f5e,d=()=>{E===t._endId&&f()};if(o)return setTimeout(d,o);const{type:s,timeout:n,propCount:u}=Dve(t,e);if(!s)return f();const b=s+"end";let i=0;const S=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=u&&S()};setTimeout(()=>{i(o[m]||"").split(", "),E=f(`${XS}Delay`),d=f(`${XS}Duration`),s=Ohe(E,d),n=f(`${CL}Delay`),u=f(`${CL}Duration`),b=Ohe(n,u);let i=null,S=0,w=0;e===XS?s>0&&(i=XS,S=s,w=d.length):e===CL?b>0&&(i=CL,S=b,w=u.length):(S=Math.max(s,b),i=S>0?s>b?XS:CL:null,w=i?i===XS?d.length:u.length:0);const y=i===XS&&/\b(transform|all)(,|$)/.test(f(`${XS}Property`).toString());return{type:i,timeout:S,propCount:w,hasTransform:y}}function Ohe(t,e){for(;t.lengthShe(o)+She(t[f])))}function She(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Bve(){return document.body.offsetHeight}const zve=new WeakMap,Nve=new WeakMap,Fve={name:"TransitionGroup",props:pp({},c5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=fce(),f=dve();let E,d;return rce(()=>{if(!E.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!g5e(E[0].el,o.vnode.el,s))return;E.forEach(h5e),E.forEach(p5e);const n=E.filter(m5e);Bve(),n.forEach(u=>{const b=u.el,i=b.style;SO(b,s),i.transform=i.webkitTransform=i.transitionDuration="";const S=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",S),b._moveCb=null,JS(b,s))};b.addEventListener("transitionend",S)})}),()=>{const s=sl(t),n=Ive(s);let u=s.tag||Ea;E=d,d=e.default?Jle(e.default()):[];for(let b=0;bdelete t.mode;Fve.props;const hce=Fve;function h5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function p5e(t){Nve.set(t,t.el.getBoundingClientRect())}function m5e(t){const e=zve.get(t),o=Nve.get(t),f=e.left-o.left,E=e.top-o.top;if(f||E){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${E}px)`,d.transitionDuration="0s",t}}function g5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(s=>{s.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(s=>s&&f.classList.add(s)),f.style.display="none";const E=e.nodeType===1?e:e.parentNode;E.appendChild(f);const{hasTransform:d}=Dve(f);return E.removeChild(f),d}const khe=t=>{const e=t.props["onUpdate:modelValue"]||!1;return tl(e)?o=>oH(e,o):e};function v5e(t){t.target.composing=!0}function The(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const y5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},E){t._assign=khe(E);const d=f||E.props&&E.props.type==="number";L8(t,e?"change":"input",s=>{if(s.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=Iae(n)),t._assign(n)}),o&&L8(t,"change",()=>{t.value=t.value.trim()}),e||(L8(t,"compositionstart",v5e),L8(t,"compositionend",The),L8(t,"change",The))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:E}},d){if(t._assign=khe(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(E||t.type==="number")&&Iae(t.value)===e))return;const s=e??"";t.value!==s&&(t.value=s)}},b5e=["ctrl","shift","alt","meta"],x5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>b5e.some(o=>t[`${o}Key`]&&!e.includes(o))},RH=(t,e)=>(o,...f)=>{for(let E=0;Eo=>{if(!("key"in o))return;const f=KT(o.key);if(e.some(E=>E===f||_5e[E]===f))return t(o)},A4={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):AL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),AL(t,!0),f.enter(t)):f.leave(t,()=>{AL(t,!1)}):AL(t,e))},beforeUnmount(t,{value:e}){AL(t,e)}};function AL(t,e){t.style.display=e?t._vod:"none"}const w5e=pp({patchProp:s5e},Wke);let Che;function O5e(){return Che||(Che=Tke(w5e))}const S5e=(...t)=>{const e=O5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const E=k5e(f);if(!E)return;const d=e._component;!Ul(d)&&!d.render&&!d.template&&(d.template=E.innerHTML),E.innerHTML="";const s=o(E,!1,E instanceof SVGElement);return E instanceof Element&&(E.removeAttribute("v-cloak"),E.setAttribute("data-v-app","")),s},e};function k5e(t){return Yh(t)?document.querySelector(t):t}/*! +var h3e=Object.defineProperty;var p3e=(t,e,o)=>e in t?h3e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var pu=(t,e,o)=>(p3e(t,typeof e!="symbol"?e+"":e,o),o),m3e=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var fie=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var dQ=(t,e,o)=>(m3e(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))f(E);new MutationObserver(E=>{for(const d of E)if(d.type==="childList")for(const s of d.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function o(E){const d={};return E.integrity&&(d.integrity=E.integrity),E.referrerPolicy&&(d.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?d.credentials="include":E.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(E){if(E.ep)return;E.ep=!0;const d=o(E);fetch(E.href,d)}})();function u1e(t,e){return function(){return t.apply(e,arguments)}}const{toString:g3e}=Object.prototype,{getPrototypeOf:Mle}=Object,EZ=(t=>e=>{const o=g3e.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Mx=t=>(t=t.toLowerCase(),e=>EZ(e)===t),PZ=t=>e=>typeof e===t,{isArray:wM}=Array,hI=PZ("undefined");function v3e(t){return t!==null&&!hI(t)&&t.constructor!==null&&!hI(t.constructor)&&Jv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f1e=Mx("ArrayBuffer");function y3e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&f1e(t.buffer),e}const b3e=PZ("string"),Jv=PZ("function"),d1e=PZ("number"),RZ=t=>t!==null&&typeof t=="object",x3e=t=>t===!0||t===!1,tH=t=>{if(EZ(t)!=="object")return!1;const e=Mle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_3e=Mx("Date"),w3e=Mx("File"),O3e=Mx("Blob"),S3e=Mx("FileList"),k3e=t=>RZ(t)&&Jv(t.pipe),T3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jv(t.append)&&((e=EZ(t))==="formdata"||e==="object"&&Jv(t.toString)&&t.toString()==="[object FormData]"))},C3e=Mx("URLSearchParams"),[A3e,M3e,E3e,P3e]=["ReadableStream","Request","Response","Headers"].map(Mx),R3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,E;if(typeof t!="object"&&(t=[t]),wM(t))for(f=0,E=t.length;f0;)if(E=o[f],e===E.toLowerCase())return E;return null}const DT=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),p1e=t=>!hI(t)&&t!==DT;function Aae(){const{caseless:t}=p1e(this)&&this||{},e={},o=(f,E)=>{const d=t&&h1e(e,E)||E;tH(e[d])&&tH(f)?e[d]=Aae(e[d],f):tH(f)?e[d]=Aae({},f):wM(f)?e[d]=f.slice():e[d]=f};for(let f=0,E=arguments.length;f(rD(e,(E,d)=>{o&&Jv(E)?t[d]=u1e(E,o):t[d]=E},{allOwnKeys:f}),t),I3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),D3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},B3e=(t,e,o,f)=>{let E,d,s;const n={};if(e=e||{},t==null)return e;do{for(E=Object.getOwnPropertyNames(t),d=E.length;d-- >0;)s=E[d],(!f||f(s,t,e))&&!n[s]&&(e[s]=t[s],n[s]=!0);t=o!==!1&&Mle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},z3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},N3e=t=>{if(!t)return null;if(wM(t))return t;let e=t.length;if(!d1e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},F3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mle(Uint8Array)),$3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let E;for(;(E=f.next())&&!E.done;){const d=E.value;e.call(t,d[0],d[1])}},V3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},U3e=Mx("HTMLFormElement"),j3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,E){return f.toUpperCase()+E}),Ede=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Q3e=Mx("RegExp"),m1e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};rD(o,(E,d)=>{let s;(s=e(E,d,t))!==!1&&(f[d]=s||E)}),Object.defineProperties(t,f)},H3e=t=>{m1e(t,(e,o)=>{if(Jv(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jv(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Z3e=(t,e)=>{const o={},f=E=>{E.forEach(d=>{o[d]=!0})};return wM(t)?f(t):f(String(t).split(e)),o},q3e=()=>{},W3e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,die="abcdefghijklmnopqrstuvwxyz",Pde="0123456789",g1e={DIGIT:Pde,ALPHA:die,ALPHA_DIGIT:die+die.toUpperCase()+Pde},Y3e=(t=16,e=g1e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function X3e(t){return!!(t&&Jv(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const G3e=t=>{const e=new Array(10),o=(f,E)=>{if(RZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[E]=f;const d=wM(f)?[]:{};return rD(f,(s,n)=>{const u=o(s,E+1);!hI(u)&&(d[n]=u)}),e[E]=void 0,d}}return f};return o(t,0)},K3e=Mx("AsyncFunction"),J3e=t=>t&&(RZ(t)||Jv(t))&&Jv(t.then)&&Jv(t.catch),v1e=((t,e)=>t?setImmediate:e?((o,f)=>(DT.addEventListener("message",({source:E,data:d})=>{E===DT&&d===o&&f.length&&f.shift()()},!1),E=>{f.push(E),DT.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Jv(DT.postMessage)),eSe=typeof queueMicrotask<"u"?queueMicrotask.bind(DT):typeof process<"u"&&process.nextTick||v1e,ci={isArray:wM,isArrayBuffer:f1e,isBuffer:v3e,isFormData:T3e,isArrayBufferView:y3e,isString:b3e,isNumber:d1e,isBoolean:x3e,isObject:RZ,isPlainObject:tH,isReadableStream:A3e,isRequest:M3e,isResponse:E3e,isHeaders:P3e,isUndefined:hI,isDate:_3e,isFile:w3e,isBlob:O3e,isRegExp:Q3e,isFunction:Jv,isStream:k3e,isURLSearchParams:C3e,isTypedArray:F3e,isFileList:S3e,forEach:rD,merge:Aae,extend:L3e,trim:R3e,stripBOM:I3e,inherits:D3e,toFlatObject:B3e,kindOf:EZ,kindOfTest:Mx,endsWith:z3e,toArray:N3e,forEachEntry:$3e,matchAll:V3e,isHTMLForm:U3e,hasOwnProperty:Ede,hasOwnProp:Ede,reduceDescriptors:m1e,freezeMethods:H3e,toObjectSet:Z3e,toCamelCase:j3e,noop:q3e,toFiniteNumber:W3e,findKey:h1e,global:DT,isContextDefined:p1e,ALPHABET:g1e,generateString:Y3e,isSpecCompliantForm:X3e,toJSONObject:G3e,isAsyncFn:K3e,isThenable:J3e,setImmediate:v1e,asap:eSe};function sc(t,e,o,f,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),E&&(this.response=E)}ci.inherits(sc,Error,{toJSON:function(){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:ci.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y1e=sc.prototype,b1e={};["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(t=>{b1e[t]={value:t}});Object.defineProperties(sc,b1e);Object.defineProperty(y1e,"isAxiosError",{value:!0});sc.from=(t,e,o,f,E,d)=>{const s=Object.create(y1e);return ci.toFlatObject(t,s,function(u){return u!==Error.prototype},n=>n!=="isAxiosError"),sc.call(s,t.message,e,o,f,E),s.cause=t,s.name=t.name,d&&Object.assign(s,d),s};const tSe=null;function Mae(t){return ci.isPlainObject(t)||ci.isArray(t)}function x1e(t){return ci.endsWith(t,"[]")?t.slice(0,-2):t}function Rde(t,e,o){return t?t.concat(e).map(function(E,d){return E=x1e(E),!o&&d?"["+E+"]":E}).join(o?".":""):e}function nSe(t){return ci.isArray(t)&&!t.some(Mae)}const rSe=ci.toFlatObject(ci,{},null,function(e){return/^is[A-Z]/.test(e)});function LZ(t,e,o){if(!ci.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ci.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,c){return!ci.isUndefined(c[a])});const f=o.metaTokens,E=o.visitor||i,d=o.dots,s=o.indexes,u=(o.Blob||typeof Blob<"u"&&Blob)&&ci.isSpecCompliantForm(e);if(!ci.isFunction(E))throw new TypeError("visitor must be a function");function b(m){if(m===null)return"";if(ci.isDate(m))return m.toISOString();if(!u&&ci.isBlob(m))throw new sc("Blob is not supported. Use a Buffer instead.");return ci.isArrayBuffer(m)||ci.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function i(m,a,c){let h=m;if(m&&!c&&typeof m=="object"){if(ci.endsWith(a,"{}"))a=f?a:a.slice(0,-2),m=JSON.stringify(m);else if(ci.isArray(m)&&nSe(m)||(ci.isFileList(m)||ci.endsWith(a,"[]"))&&(h=ci.toArray(m)))return a=x1e(a),h.forEach(function(v,_){!(ci.isUndefined(v)||v===null)&&e.append(s===!0?Rde([a],_,d):s===null?a:a+"[]",b(v))}),!1}return Mae(m)?!0:(e.append(Rde(c,a,d),b(m)),!1)}const S=[],w=Object.assign(rSe,{defaultVisitor:i,convertValue:b,isVisitable:Mae});function y(m,a){if(!ci.isUndefined(m)){if(S.indexOf(m)!==-1)throw Error("Circular reference detected in "+a.join("."));S.push(m),ci.forEach(m,function(h,p){(!(ci.isUndefined(h)||h===null)&&E.call(e,h,ci.isString(p)?p.trim():p,a,w))===!0&&y(h,a?a.concat(p):[p])}),S.pop()}}if(!ci.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Lde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function Ele(t,e){this._pairs=[],t&&LZ(t,this,e)}const _1e=Ele.prototype;_1e.append=function(e,o){this._pairs.push([e,o])};_1e.toString=function(e){const o=e?function(f){return e.call(this,f,Lde)}:Lde;return this._pairs.map(function(E){return o(E[0])+"="+o(E[1])},"").join("&")};function oSe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w1e(t,e,o){if(!e)return t;const f=o&&o.encode||oSe,E=o&&o.serialize;let d;if(E?d=E(e,o):d=ci.isURLSearchParams(e)?e.toString():new Ele(e,o).toString(f),d){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class iSe{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ci.forEach(this.handlers,function(f){f!==null&&e(f)})}}const Ide=iSe,O1e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aSe=typeof URLSearchParams<"u"?URLSearchParams:Ele,sSe=typeof FormData<"u"?FormData:null,lSe=typeof Blob<"u"?Blob:null,cSe={isBrowser:!0,classes:{URLSearchParams:aSe,FormData:sSe,Blob:lSe},protocols:["http","https","file","blob","url","data"]},Ple=typeof window<"u"&&typeof document<"u",uSe=(t=>Ple&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),fSe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dSe=Ple&&window.location.href||"http://localhost",hSe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ple,hasStandardBrowserEnv:uSe,hasStandardBrowserWebWorkerEnv:fSe,origin:dSe},Symbol.toStringTag,{value:"Module"})),_x={...hSe,...cSe};function pSe(t,e){return LZ(t,new _x.classes.URLSearchParams,Object.assign({visitor:function(o,f,E,d){return _x.isNode&&ci.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function mSe(t){return ci.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gSe(t){const e={},o=Object.keys(t);let f;const E=o.length;let d;for(f=0;f=o.length;return s=!s&&ci.isArray(E)?E.length:s,u?(ci.hasOwnProp(E,s)?E[s]=[E[s],f]:E[s]=f,!n):((!E[s]||!ci.isObject(E[s]))&&(E[s]=[]),e(o,f,E[s],d)&&ci.isArray(E[s])&&(E[s]=gSe(E[s])),!n)}if(ci.isFormData(t)&&ci.isFunction(t.entries)){const o={};return ci.forEachEntry(t,(f,E)=>{e(mSe(f),E,o,0)}),o}return null}function vSe(t,e,o){if(ci.isString(t))try{return(e||JSON.parse)(t),ci.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const Rle={transitional:O1e,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const f=o.getContentType()||"",E=f.indexOf("application/json")>-1,d=ci.isObject(e);if(d&&ci.isHTMLForm(e)&&(e=new FormData(e)),ci.isFormData(e))return E?JSON.stringify(S1e(e)):e;if(ci.isArrayBuffer(e)||ci.isBuffer(e)||ci.isStream(e)||ci.isFile(e)||ci.isBlob(e)||ci.isReadableStream(e))return e;if(ci.isArrayBufferView(e))return e.buffer;if(ci.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return pSe(e,this.formSerializer).toString();if((n=ci.isFileList(e))||f.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return LZ(n?{"files[]":e}:e,u&&new u,this.formSerializer)}}return d||E?(o.setContentType("application/json",!1),vSe(e)):e}],transformResponse:[function(e){const o=this.transitional||Rle.transitional,f=o&&o.forcedJSONParsing,E=this.responseType==="json";if(ci.isResponse(e)||ci.isReadableStream(e))return e;if(e&&ci.isString(e)&&(f&&!this.responseType||E)){const s=!(o&&o.silentJSONParsing)&&E;try{return JSON.parse(e)}catch(n){if(s)throw n.name==="SyntaxError"?sc.from(n,sc.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_x.classes.FormData,Blob:_x.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ci.forEach(["delete","get","head","post","put","patch"],t=>{Rle.headers[t]={}});const Lle=Rle,ySe=ci.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"]),bSe=t=>{const e={};let o,f,E;return t&&t.split(` +`).forEach(function(s){E=s.indexOf(":"),o=s.substring(0,E).trim().toLowerCase(),f=s.substring(E+1).trim(),!(!o||e[o]&&ySe[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},Dde=Symbol("internals");function TL(t){return t&&String(t).trim().toLowerCase()}function nH(t){return t===!1||t==null?t:ci.isArray(t)?t.map(nH):String(t)}function xSe(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const _Se=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hie(t,e,o,f,E){if(ci.isFunction(f))return f.call(this,e,o);if(E&&(e=o),!!ci.isString(e)){if(ci.isString(f))return e.indexOf(f)!==-1;if(ci.isRegExp(f))return f.test(e)}}function wSe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function OSe(t,e){const o=ci.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(E,d,s){return this[f].call(this,e,E,d,s)},configurable:!0})})}let IZ=class{constructor(e){e&&this.set(e)}set(e,o,f){const E=this;function d(n,u,b){const i=TL(u);if(!i)throw new Error("header name must be a non-empty string");const S=ci.findKey(E,i);(!S||E[S]===void 0||b===!0||b===void 0&&E[S]!==!1)&&(E[S||u]=nH(n))}const s=(n,u)=>ci.forEach(n,(b,i)=>d(b,i,u));if(ci.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(ci.isString(e)&&(e=e.trim())&&!_Se(e))s(bSe(e),o);else if(ci.isHeaders(e))for(const[n,u]of e.entries())d(u,n,f);else e!=null&&d(o,e,f);return this}get(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);if(f){const E=this[f];if(!o)return E;if(o===!0)return xSe(E);if(ci.isFunction(o))return o.call(this,E,f);if(ci.isRegExp(o))return o.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||hie(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let E=!1;function d(s){if(s=TL(s),s){const n=ci.findKey(f,s);n&&(!o||hie(f,f[n],n,o))&&(delete f[n],E=!0)}}return ci.isArray(e)?e.forEach(d):d(e),E}clear(e){const o=Object.keys(this);let f=o.length,E=!1;for(;f--;){const d=o[f];(!e||hie(this,this[d],d,e,!0))&&(delete this[d],E=!0)}return E}normalize(e){const o=this,f={};return ci.forEach(this,(E,d)=>{const s=ci.findKey(f,d);if(s){o[s]=nH(E),delete o[d];return}const n=e?wSe(d):String(d).trim();n!==d&&delete o[d],o[n]=nH(E),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ci.forEach(this,(f,E)=>{f!=null&&f!==!1&&(o[E]=e&&ci.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(E=>f.set(E)),f}static accessor(e){const f=(this[Dde]=this[Dde]={accessors:{}}).accessors,E=this.prototype;function d(s){const n=TL(s);f[n]||(OSe(E,s),f[n]=!0)}return ci.isArray(e)?e.forEach(d):d(e),this}};IZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ci.reduceDescriptors(IZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ci.freezeMethods(IZ);const wx=IZ;function pie(t,e){const o=this||Lle,f=e||o,E=wx.from(f.headers);let d=f.data;return ci.forEach(t,function(n){d=n.call(o,d,E.normalize(),e?e.status:void 0)}),E.normalize(),d}function k1e(t){return!!(t&&t.__CANCEL__)}function OM(t,e,o){sc.call(this,t??"canceled",sc.ERR_CANCELED,e,o),this.name="CanceledError"}ci.inherits(OM,sc,{__CANCEL__:!0});function T1e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new sc("Request failed with status code "+o.status,[sc.ERR_BAD_REQUEST,sc.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function SSe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function kSe(t,e){t=t||10;const o=new Array(t),f=new Array(t);let E=0,d=0,s;return e=e!==void 0?e:1e3,function(u){const b=Date.now(),i=f[d];s||(s=b),o[E]=u,f[E]=b;let S=d,w=0;for(;S!==E;)w+=o[S++],S=S%t;if(E=(E+1)%t,E===d&&(d=(d+1)%t),b-s{o=i,E=null,d&&(clearTimeout(d),d=null),t.apply(null,b)};return[(...b)=>{const i=Date.now(),S=i-o;S>=f?s(b,i):(E=b,d||(d=setTimeout(()=>{d=null,s(E)},f-S)))},()=>E&&s(E)]}const kH=(t,e,o=3)=>{let f=0;const E=kSe(50,250);return TSe(d=>{const s=d.loaded,n=d.lengthComputable?d.total:void 0,u=s-f,b=E(u),i=s<=n;f=s;const S={loaded:s,total:n,progress:n?s/n:void 0,bytes:u,rate:b||void 0,estimated:b&&n&&i?(n-s)/b:void 0,event:d,lengthComputable:n!=null,[e?"download":"upload"]:!0};t(S)},o)},Bde=(t,e)=>{const o=t!=null;return[f=>e[0]({lengthComputable:o,total:t,loaded:f}),e[1]]},zde=t=>(...e)=>ci.asap(()=>t(...e)),CSe=_x.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function E(d){let s=d;return e&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=E(window.location.href),function(s){const n=ci.isString(s)?E(s):s;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}(),ASe=_x.hasStandardBrowserEnv?{write(t,e,o,f,E,d){const s=[t+"="+encodeURIComponent(e)];ci.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),ci.isString(f)&&s.push("path="+f),ci.isString(E)&&s.push("domain="+E),d===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MSe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ESe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function C1e(t,e){return t&&!MSe(e)?ESe(t,e):e}const Nde=t=>t instanceof wx?{...t}:t;function ZT(t,e){e=e||{};const o={};function f(b,i,S){return ci.isPlainObject(b)&&ci.isPlainObject(i)?ci.merge.call({caseless:S},b,i):ci.isPlainObject(i)?ci.merge({},i):ci.isArray(i)?i.slice():i}function E(b,i,S){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b,S)}else return f(b,i,S)}function d(b,i){if(!ci.isUndefined(i))return f(void 0,i)}function s(b,i){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,S){if(S in e)return f(b,i);if(S in t)return f(void 0,b)}const u={url:d,method:d,data:d,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:n,headers:(b,i)=>E(Nde(b),Nde(i),!0)};return ci.forEach(Object.keys(Object.assign({},t,e)),function(i){const S=u[i]||E,w=S(t[i],e[i],i);ci.isUndefined(w)&&S!==n||(o[i]=w)}),o}const A1e=t=>{const e=ZT({},t);let{data:o,withXSRFToken:f,xsrfHeaderName:E,xsrfCookieName:d,headers:s,auth:n}=e;e.headers=s=wx.from(s),e.url=w1e(C1e(e.baseURL,e.url),t.params,t.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let u;if(ci.isFormData(o)){if(_x.hasStandardBrowserEnv||_x.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[b,...i]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...i].join("; "))}}if(_x.hasStandardBrowserEnv&&(f&&ci.isFunction(f)&&(f=f(e)),f||f!==!1&&CSe(e.url))){const b=E&&d&&ASe.read(d);b&&s.set(E,b)}return e},PSe=typeof XMLHttpRequest<"u",RSe=PSe&&function(t){return new Promise(function(o,f){const E=A1e(t);let d=E.data;const s=wx.from(E.headers).normalize();let{responseType:n,onUploadProgress:u,onDownloadProgress:b}=E,i,S,w,y,m;function a(){y&&y(),m&&m(),E.cancelToken&&E.cancelToken.unsubscribe(i),E.signal&&E.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;c.open(E.method.toUpperCase(),E.url,!0),c.timeout=E.timeout;function h(){if(!c)return;const v=wx.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),O={data:!n||n==="text"||n==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};T1e(function(x){o(x),a()},function(x){f(x),a()},O),c=null}"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(f(new sc("Request aborted",sc.ECONNABORTED,t,c)),c=null)},c.onerror=function(){f(new sc("Network Error",sc.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let _=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const O=E.transitional||O1e;E.timeoutErrorMessage&&(_=E.timeoutErrorMessage),f(new sc(_,O.clarifyTimeoutError?sc.ETIMEDOUT:sc.ECONNABORTED,t,c)),c=null},d===void 0&&s.setContentType(null),"setRequestHeader"in c&&ci.forEach(s.toJSON(),function(_,O){c.setRequestHeader(O,_)}),ci.isUndefined(E.withCredentials)||(c.withCredentials=!!E.withCredentials),n&&n!=="json"&&(c.responseType=E.responseType),b&&([w,m]=kH(b,!0),c.addEventListener("progress",w)),u&&c.upload&&([S,y]=kH(u),c.upload.addEventListener("progress",S),c.upload.addEventListener("loadend",y)),(E.cancelToken||E.signal)&&(i=v=>{c&&(f(!v||v.type?new OM(null,t,c):v),c.abort(),c=null)},E.cancelToken&&E.cancelToken.subscribe(i),E.signal&&(E.signal.aborted?i():E.signal.addEventListener("abort",i)));const p=SSe(E.url);if(p&&_x.protocols.indexOf(p)===-1){f(new sc("Unsupported protocol "+p+":",sc.ERR_BAD_REQUEST,t));return}c.send(d||null)})},LSe=(t,e)=>{let o=new AbortController,f;const E=function(u){if(!f){f=!0,s();const b=u instanceof Error?u:this.reason;o.abort(b instanceof sc?b:new OM(b instanceof Error?b.message:b))}};let d=e&&setTimeout(()=>{E(new sc(`timeout ${e} of ms exceeded`,sc.ETIMEDOUT))},e);const s=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",E):u.unsubscribe(E))}),t=null)};t.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",E));const{signal:n}=o;return n.unsubscribe=s,[n,()=>{d&&clearTimeout(d),d=null}]},ISe=LSe,DSe=function*(t,e){let o=t.byteLength;if(!e||o{const d=BSe(t,e,E);let s=0,n,u=b=>{n||(n=!0,f&&f(b))};return new ReadableStream({async pull(b){try{const{done:i,value:S}=await d.next();if(i){u(),b.close();return}let w=S.byteLength;if(o){let y=s+=w;o(y)}b.enqueue(new Uint8Array(S))}catch(i){throw u(i),i}},cancel(b){return u(b),d.return()}},{highWaterMark:2})},DZ=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",M1e=DZ&&typeof ReadableStream=="function",Eae=DZ&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),E1e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},zSe=M1e&&E1e(()=>{let t=!1;const e=new Request(_x.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),$de=64*1024,Pae=M1e&&E1e(()=>ci.isReadableStream(new Response("").body)),TH={stream:Pae&&(t=>t.body)};DZ&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!TH[e]&&(TH[e]=ci.isFunction(t[e])?o=>o[e]():(o,f)=>{throw new sc(`Response type '${e}' is not supported`,sc.ERR_NOT_SUPPORT,f)})})})(new Response);const NSe=async t=>{if(t==null)return 0;if(ci.isBlob(t))return t.size;if(ci.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(ci.isArrayBufferView(t)||ci.isArrayBuffer(t))return t.byteLength;if(ci.isURLSearchParams(t)&&(t=t+""),ci.isString(t))return(await Eae(t)).byteLength},FSe=async(t,e)=>{const o=ci.toFiniteNumber(t.getContentLength());return o??NSe(e)},$Se=DZ&&(async t=>{let{url:e,method:o,data:f,signal:E,cancelToken:d,timeout:s,onDownloadProgress:n,onUploadProgress:u,responseType:b,headers:i,withCredentials:S="same-origin",fetchOptions:w}=A1e(t);b=b?(b+"").toLowerCase():"text";let[y,m]=E||d||s?ISe([E,d],s):[],a,c;const h=()=>{!a&&setTimeout(()=>{y&&y.unsubscribe()}),a=!0};let p;try{if(u&&zSe&&o!=="get"&&o!=="head"&&(p=await FSe(i,f))!==0){let C=new Request(e,{method:"POST",body:f,duplex:"half"}),x;if(ci.isFormData(f)&&(x=C.headers.get("content-type"))&&i.setContentType(x),C.body){const[R,M]=Bde(p,kH(zde(u)));f=Fde(C.body,$de,R,M,Eae)}}ci.isString(S)||(S=S?"include":"omit"),c=new Request(e,{...w,signal:y,method:o.toUpperCase(),headers:i.normalize().toJSON(),body:f,duplex:"half",credentials:S});let v=await fetch(c);const _=Pae&&(b==="stream"||b==="response");if(Pae&&(n||_)){const C={};["status","statusText","headers"].forEach(T=>{C[T]=v[T]});const x=ci.toFiniteNumber(v.headers.get("content-length")),[R,M]=n&&Bde(x,kH(zde(n),!0))||[];v=new Response(Fde(v.body,$de,R,()=>{M&&M(),_&&h()},Eae),C)}b=b||"text";let O=await TH[ci.findKey(TH,b)||"text"](v,t);return!_&&h(),m&&m(),await new Promise((C,x)=>{T1e(C,x,{data:O,headers:wx.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:c})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new sc("Network Error",sc.ERR_NETWORK,t,c),{cause:v.cause||v}):sc.from(v,v&&v.code,t,c)}}),Rae={http:tSe,xhr:RSe,fetch:$Se};ci.forEach(Rae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Vde=t=>`- ${t}`,VSe=t=>ci.isFunction(t)||t===null||t===!1,P1e={getAdapter:t=>{t=ci.isArray(t)?t:[t];const{length:e}=t;let o,f;const E={};for(let d=0;d`adapter ${n} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?d.length>1?`since : +`+d.map(Vde).join(` +`):" "+Vde(d[0]):"as no adapter specified";throw new sc("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return f},adapters:Rae};function mie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new OM(null,t)}function Ude(t){return mie(t),t.headers=wx.from(t.headers),t.data=pie.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),P1e.getAdapter(t.adapter||Lle.adapter)(t).then(function(f){return mie(t),f.data=pie.call(t,t.transformResponse,f),f.headers=wx.from(f.headers),f},function(f){return k1e(f)||(mie(t),f&&f.response&&(f.response.data=pie.call(t,t.transformResponse,f.response),f.response.headers=wx.from(f.response.headers))),Promise.reject(f)})}const R1e="1.7.4",Ile={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ile[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const jde={};Ile.transitional=function(e,o,f){function E(d,s){return"[Axios v"+R1e+"] Transitional option '"+d+"'"+s+(f?". "+f:"")}return(d,s,n)=>{if(e===!1)throw new sc(E(s," has been removed"+(o?" in "+o:"")),sc.ERR_DEPRECATED);return o&&!jde[s]&&(jde[s]=!0,console.warn(E(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,s,n):!0}};function USe(t,e,o){if(typeof t!="object")throw new sc("options must be an object",sc.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let E=f.length;for(;E-- >0;){const d=f[E],s=e[d];if(s){const n=t[d],u=n===void 0||s(n,d,t);if(u!==!0)throw new sc("option "+d+" must be "+u,sc.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new sc("Unknown option "+d,sc.ERR_BAD_OPTION)}}const Lae={assertOptions:USe,validators:Ile},WS=Lae.validators;let CH=class{constructor(e){this.defaults=e,this.interceptors={request:new Ide,response:new Ide}}async request(e,o){try{return await this._request(e,o)}catch(f){if(f instanceof Error){let E;Error.captureStackTrace?Error.captureStackTrace(E={}):E=new Error;const d=E.stack?E.stack.replace(/^.+\n/,""):"";try{f.stack?d&&!String(f.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(f.stack+=` +`+d):f.stack=d}catch{}}throw f}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=ZT(this.defaults,o);const{transitional:f,paramsSerializer:E,headers:d}=o;f!==void 0&&Lae.assertOptions(f,{silentJSONParsing:WS.transitional(WS.boolean),forcedJSONParsing:WS.transitional(WS.boolean),clarifyTimeoutError:WS.transitional(WS.boolean)},!1),E!=null&&(ci.isFunction(E)?o.paramsSerializer={serialize:E}:Lae.assertOptions(E,{encode:WS.function,serialize:WS.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=d&&ci.merge(d.common,d[o.method]);d&&ci.forEach(["delete","get","head","post","put","patch","common"],m=>{delete d[m]}),o.headers=wx.concat(s,d);const n=[];let u=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(u=u&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,S=0,w;if(!u){const m=[Ude.bind(this),void 0];for(m.unshift.apply(m,n),m.push.apply(m,b),w=m.length,i=Promise.resolve(o);S{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](E);f._listeners=null}),this.promise.then=E=>{let d;const s=new Promise(n=>{f.subscribe(n),d=n}).then(E);return s.cancel=function(){f.unsubscribe(d)},s},e(function(d,s,n){f.reason||(f.reason=new OM(d,s,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new L1e(function(E){e=E}),cancel:e}}};const QSe=jSe;function HSe(t){return function(o){return t.apply(null,o)}}function ZSe(t){return ci.isObject(t)&&t.isAxiosError===!0}const Iae={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(Iae).forEach(([t,e])=>{Iae[e]=t});const qSe=Iae;function I1e(t){const e=new rH(t),o=u1e(rH.prototype.request,e);return ci.extend(o,rH.prototype,e,{allOwnKeys:!0}),ci.extend(o,e,null,{allOwnKeys:!0}),o.create=function(E){return I1e(ZT(t,E))},o}const Rp=I1e(Lle);Rp.Axios=rH;Rp.CanceledError=OM;Rp.CancelToken=QSe;Rp.isCancel=k1e;Rp.VERSION=R1e;Rp.toFormData=LZ;Rp.AxiosError=sc;Rp.Cancel=Rp.CanceledError;Rp.all=function(e){return Promise.all(e)};Rp.spread=HSe;Rp.isAxiosError=ZSe;Rp.mergeConfig=ZT;Rp.AxiosHeaders=wx;Rp.formToJSON=t=>S1e(ci.isHTMLForm(t)?new FormData(t):t);Rp.getAdapter=P1e.getAdapter;Rp.HttpStatusCode=qSe;Rp.default=Rp;const ou=Rp,{Axios:oQe,AxiosError:Qde,CanceledError:iQe,isCancel:aQe,CancelToken:sQe,VERSION:lQe,all:cQe,Cancel:uQe,isAxiosError:fQe,spread:dQe,toFormData:hQe,AxiosHeaders:pQe,HttpStatusCode:mQe,formToJSON:gQe,getAdapter:vQe,mergeConfig:yQe}=ou;function Dle(t,e){const o=Object.create(null),f=t.split(",");for(let E=0;E!!o[E.toLowerCase()]:E=>!!o[E]}const Jd={},Q8=[],Ox=()=>{},WSe=()=>!1,YSe=/^on[^a-z]/,BZ=t=>YSe.test(t),Ble=t=>t.startsWith("onUpdate:"),pp=Object.assign,zle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},XSe=Object.prototype.hasOwnProperty,Du=(t,e)=>XSe.call(t,e),tl=Array.isArray,H8=t=>zZ(t)==="[object Map]",D1e=t=>zZ(t)==="[object Set]",Ul=t=>typeof t=="function",Yh=t=>typeof t=="string",Nle=t=>typeof t=="symbol",Fd=t=>t!==null&&typeof t=="object",B1e=t=>Fd(t)&&Ul(t.then)&&Ul(t.catch),z1e=Object.prototype.toString,zZ=t=>z1e.call(t),GSe=t=>zZ(t).slice(8,-1),N1e=t=>zZ(t)==="[object Object]",Fle=t=>Yh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,oH=Dle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},KSe=/-(\w)/g,ib=NZ(t=>t.replace(KSe,(e,o)=>o?o.toUpperCase():"")),JSe=/\B([A-Z])/g,JT=NZ(t=>t.replace(JSe,"-$1").toLowerCase()),A_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),GL=NZ(t=>t?`on${A_(t)}`:""),pI=(t,e)=>!Object.is(t,e),iH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},Dae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},F1e=t=>{const e=Yh(t)?Number(t):NaN;return isNaN(e)?t:e};let Hde;const Bae=()=>Hde||(Hde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oD(t){if(tl(t)){const e={};for(let o=0;o{if(o){const f=o.split(t4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Gv(t){let e="";if(Yh(t))e=t;else if(tl(t))for(let o=0;oYh(t)?t:t==null?"":tl(t)||Fd(t)&&(t.toString===z1e||!Ul(t.toString))?JSON.stringify(t,V1e,2):String(t),V1e=(t,e)=>e&&e.__v_isRef?V1e(t,e.value):H8(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,E])=>(o[`${f} =>`]=E,o),{})}:D1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Fd(e)&&!tl(e)&&!N1e(e)?String(e):e;let Hv;class U1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hv,!e&&Hv&&(this.index=(Hv.scopes||(Hv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Hv;try{return Hv=this,e()}finally{Hv=o}}}on(){Hv=this}off(){Hv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},Q1e=t=>(t.w&v4)>0,H1e=t=>(t.n&v4)>0,s4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=u)&&n.push(b)})}else switch(o!==void 0&&n.push(s.get(o)),e){case"add":tl(t)?Fle(o)&&n.push(s.get("length")):(n.push(s.get(VT)),H8(t)&&n.push(s.get(Nae)));break;case"delete":tl(t)||(n.push(s.get(VT)),H8(t)&&n.push(s.get(Nae)));break;case"set":H8(t)&&n.push(s.get(VT));break}if(n.length===1)n[0]&&Fae(n[0]);else{const u=[];for(const b of n)b&&u.push(...b);Fae($le(u))}}function Fae(t,e){const o=tl(t)?t:[...t];for(const f of o)f.computed&&qde(f);for(const f of o)f.computed||qde(f)}function qde(t,e){(t!==xx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function c4e(t,e){var o;return(o=MH.get(t))==null?void 0:o.get(e)}const u4e=Dle("__proto__,__v_isRef,__isVue"),W1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Nle)),f4e=Ule(),d4e=Ule(!1,!0),h4e=Ule(!0),Wde=p4e();function p4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=sl(this);for(let d=0,s=this.length;d{t[e]=function(...o){SM();const f=sl(this)[e].apply(this,o);return kM(),f}}),t}function m4e(t){const e=sl(this);return V1(e,"has",t),e.hasOwnProperty(t)}function Ule(t=!1,e=!1){return function(f,E,d){if(E==="__v_isReactive")return!t;if(E==="__v_isReadonly")return t;if(E==="__v_isShallow")return e;if(E==="__v_raw"&&d===(t?e?P4e:J1e:e?K1e:G1e).get(f))return f;const s=tl(f);if(!t){if(s&&Du(Wde,E))return Reflect.get(Wde,E,d);if(E==="hasOwnProperty")return m4e}const n=Reflect.get(f,E,d);return(Nle(E)?W1e.has(E):u4e(E))||(t||V1(f,"get",E),e)?n:ku(n)?s&&Fle(E)?n:n.value:Fd(n)?t?TM(n):Am(n):n}}const g4e=Y1e(),v4e=Y1e(!0);function Y1e(t=!1){return function(o,f,E,d){let s=o[f];if(nM(s)&&ku(s)&&!ku(E))return!1;if(!t&&(!EH(E)&&!nM(E)&&(s=sl(s),E=sl(E)),!tl(o)&&ku(s)&&!ku(E)))return s.value=E,!0;const n=tl(o)&&Fle(f)?Number(f)t,FZ=t=>Reflect.getPrototypeOf(t);function hQ(t,e,o=!1,f=!1){t=t.__v_raw;const E=sl(t),d=sl(e);o||(e!==d&&V1(E,"get",e),V1(E,"get",d));const{has:s}=FZ(E),n=f?jle:o?Zle:mI;if(s.call(E,e))return n(t.get(e));if(s.call(E,d))return n(t.get(d));t!==E&&t.get(e)}function pQ(t,e=!1){const o=this.__v_raw,f=sl(o),E=sl(t);return e||(t!==E&&V1(f,"has",t),V1(f,"has",E)),t===E?o.has(t):o.has(t)||o.has(E)}function mQ(t,e=!1){return t=t.__v_raw,!e&&V1(sl(t),"iterate",VT),Reflect.get(t,"size",t)}function Yde(t){t=sl(t);const e=sl(this);return FZ(e).has.call(e,t)||(e.add(t),MO(e,"add",t,t)),this}function Xde(t,e){e=sl(e);const o=sl(this),{has:f,get:E}=FZ(o);let d=f.call(o,t);d||(t=sl(t),d=f.call(o,t));const s=E.call(o,t);return o.set(t,e),d?pI(e,s)&&MO(o,"set",t,e):MO(o,"add",t,e),this}function Gde(t){const e=sl(this),{has:o,get:f}=FZ(e);let E=o.call(e,t);E||(t=sl(t),E=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return E&&MO(e,"delete",t,void 0),d}function Kde(){const t=sl(this),e=t.size!==0,o=t.clear();return e&&MO(t,"clear",void 0,void 0),o}function gQ(t,e){return function(f,E){const d=this,s=d.__v_raw,n=sl(s),u=e?jle:t?Zle:mI;return!t&&V1(n,"iterate",VT),s.forEach((b,i)=>f.call(E,u(b),u(i),d))}}function vQ(t,e,o){return function(...f){const E=this.__v_raw,d=sl(E),s=H8(d),n=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,b=E[t](...f),i=o?jle:e?Zle:mI;return!e&&V1(d,"iterate",u?Nae:VT),{next(){const{value:S,done:w}=b.next();return w?{value:S,done:w}:{value:n?[i(S[0]),i(S[1])]:i(S),done:w}},[Symbol.iterator](){return this}}}}function YS(t){return function(...e){return t==="delete"?!1:this}}function O4e(){const t={get(d){return hQ(this,d)},get size(){return mQ(this)},has:pQ,add:Yde,set:Xde,delete:Gde,clear:Kde,forEach:gQ(!1,!1)},e={get(d){return hQ(this,d,!1,!0)},get size(){return mQ(this)},has:pQ,add:Yde,set:Xde,delete:Gde,clear:Kde,forEach:gQ(!1,!0)},o={get(d){return hQ(this,d,!0)},get size(){return mQ(this,!0)},has(d){return pQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:gQ(!0,!1)},f={get(d){return hQ(this,d,!0,!0)},get size(){return mQ(this,!0)},has(d){return pQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:gQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=vQ(d,!1,!1),o[d]=vQ(d,!0,!1),e[d]=vQ(d,!1,!0),f[d]=vQ(d,!0,!0)}),[t,o,e,f]}const[S4e,k4e,T4e,C4e]=O4e();function Qle(t,e){const o=e?t?C4e:T4e:t?k4e:S4e;return(f,E,d)=>E==="__v_isReactive"?!t:E==="__v_isReadonly"?t:E==="__v_raw"?f:Reflect.get(Du(o,E)&&E in f?o:f,E,d)}const A4e={get:Qle(!1,!1)},M4e={get:Qle(!1,!0)},E4e={get:Qle(!0,!1)},G1e=new WeakMap,K1e=new WeakMap,J1e=new WeakMap,P4e=new WeakMap;function R4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L4e(t){return t.__v_skip||!Object.isExtensible(t)?0:R4e(GSe(t))}function Am(t){return nM(t)?t:Hle(t,!1,X1e,A4e,G1e)}function eve(t){return Hle(t,!1,w4e,M4e,K1e)}function TM(t){return Hle(t,!0,_4e,E4e,J1e)}function Hle(t,e,o,f,E){if(!Fd(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=E.get(t);if(d)return d;const s=L4e(t);if(s===0)return t;const n=new Proxy(t,s===2?f:o);return E.set(t,n),n}function CO(t){return nM(t)?CO(t.__v_raw):!!(t&&t.__v_isReactive)}function nM(t){return!!(t&&t.__v_isReadonly)}function EH(t){return!!(t&&t.__v_isShallow)}function tve(t){return CO(t)||nM(t)}function sl(t){const e=t&&t.__v_raw;return e?sl(e):t}function aD(t){return AH(t,"__v_skip",!0),t}const mI=t=>Fd(t)?Am(t):t,Zle=t=>Fd(t)?TM(t):t;function nve(t){d4&&xx&&(t=sl(t),q1e(t.dep||(t.dep=$le())))}function rve(t,e){t=sl(t);const o=t.dep;o&&Fae(o)}function ku(t){return!!(t&&t.__v_isRef===!0)}function qo(t){return ove(t,!1)}function Gi(t){return ove(t,!0)}function ove(t,e){return ku(t)?t:new I4e(t,e)}class I4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:sl(e),this._value=o?e:mI(e)}get value(){return nve(this),this._value}set value(e){const o=this.__v_isShallow||EH(e)||nM(e);e=o?e:sl(e),pI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:mI(e),rve(this))}}function Va(t){return ku(t)?t.value:t}const D4e={get:(t,e,o)=>Va(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const E=t[e];return ku(E)&&!ku(o)?(E.value=o,!0):Reflect.set(t,e,o,f)}};function ive(t){return CO(t)?t:new Proxy(t,D4e)}function CM(t){const e=tl(t)?new Array(t.length):{};for(const o in t)e[o]=ave(t,o);return e}class B4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return c4e(sl(this._object),this._key)}}class z4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ji(t,e,o){return ku(t)?t:Ul(t)?new z4e(t):Fd(t)&&arguments.length>1?ave(t,e,o):qo(t)}function ave(t,e,o){const f=t[e];return ku(f)?f:new B4e(t,e,o)}class N4e{constructor(e,o,f,E){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Vle(e,()=>{this._dirty||(this._dirty=!0,rve(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!E,this.__v_isReadonly=f}get value(){const e=sl(this);return nve(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function F4e(t,e,o=!1){let f,E;const d=Ul(t);return d?(f=t,E=Ox):(f=t.get,E=t.set),new N4e(f,E,d||!E,o)}function h4(t,e,o,f){let E;try{E=f?t(...f):t()}catch(d){sD(d,e,o)}return E}function rb(t,e,o,f){if(Ul(t)){const d=h4(t,e,o,f);return d&&B1e(d)&&d.catch(s=>{sD(s,e,o)}),d}const E=[];for(let d=0;d>>1;vI(Xg[f])m_&&Xg.splice(e,1)}function cve(t){tl(t)?Z8.push(...t):(!kO||!kO.includes(t,t.allowRecurse?ET+1:ET))&&Z8.push(t),lve()}function Jde(t,e=gI?m_+1:0){for(;evI(o)-vI(f)),ET=0;ETt.id==null?1/0:t.id,j4e=(t,e)=>{const o=vI(t)-vI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function fve(t){$ae=!1,gI=!0,Xg.sort(j4e);const e=Ox;try{for(m_=0;m_Yh(y)?y.trim():y)),S&&(E=o.map(Dae))}let n,u=f[n=GL(e)]||f[n=GL(ib(e))];!u&&d&&(u=f[n=GL(JT(e))]),u&&rb(u,t,6,E);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,rb(b,t,6,E)}}function dve(t,e,o=!1){const f=e.emitsCache,E=f.get(t);if(E!==void 0)return E;const d=t.emits;let s={},n=!1;if(!Ul(t)){const u=b=>{const i=dve(b,e,!0);i&&(n=!0,pp(s,i))};!o&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!d&&!n?(Fd(t)&&f.set(t,null),null):(tl(d)?d.forEach(u=>s[u]=null):pp(s,d),Fd(t)&&f.set(t,s),s)}function $Z(t,e){return!t||!BZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Du(t,e[0].toLowerCase()+e.slice(1))||Du(t,JT(e))||Du(t,e))}let Mm=null,VZ=null;function PH(t){const e=Mm;return Mm=t,VZ=t&&t.type.__scopeId||null,e}function Yle(t){VZ=t}function Xle(){VZ=null}function ao(t,e=Mm,o){if(!e||t._n)return t;const f=(...E)=>{f._d&&hhe(-1);const d=PH(e);let s;try{s=t(...E)}finally{PH(d),f._d&&hhe(1)}return s};return f._n=!0,f._c=!0,f._d=!0,f}function gie(t){const{type:e,vnode:o,proxy:f,withProxy:E,props:d,propsOptions:[s],slots:n,attrs:u,emit:b,render:i,renderCache:S,data:w,setupState:y,ctx:m,inheritAttrs:a}=t;let c,h;const p=PH(t);try{if(o.shapeFlag&4){const _=E||f;c=vx(i.call(_,_,S,d,y,w,m)),h=u}else{const _=e;c=vx(_.length>1?_(d,{attrs:u,slots:n,emit:b}):_(d,null)),h=e.props?u:Z4e(u)}}catch(_){tI.length=0,sD(_,t,1),c=$t(Z0)}let v=c;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:O}=v;_.length&&O&7&&(s&&_.some(Ble)&&(h=q4e(h,s)),v=EO(v,h))}return o.dirs&&(v=EO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),c=v,PH(p),c}function H4e(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||BZ(o))&&((e||(e={}))[o]=t[o]);return e},q4e=(t,e)=>{const o={};for(const f in t)(!Ble(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function W4e(t,e,o){const{props:f,children:E,component:d}=t,{props:s,children:n,patchFlag:u}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&u>=0){if(u&1024)return!0;if(u&16)return f?ehe(f,s,b):!!s;if(u&8){const i=e.dynamicProps;for(let S=0;St.__isSuspense,X4e={name:"Suspense",__isSuspense:!0,process(t,e,o,f,E,d,s,n,u,b){t==null?K4e(e,o,f,E,d,s,n,u,b):J4e(t,e,o,f,E,s,n,u,b)},hydrate:eke,create:Kle,normalize:tke},G4e=X4e;function yI(t,e){const o=t.props&&t.props[e];Ul(o)&&o()}function K4e(t,e,o,f,E,d,s,n,u){const{p:b,o:{createElement:i}}=u,S=i("div"),w=t.suspense=Kle(t,E,f,e,S,o,d,s,n,u);b(null,w.pendingBranch=t.ssContent,S,null,f,w,d,s),w.deps>0?(yI(t,"onPending"),yI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,s),q8(w,t.ssFallback)):w.resolve(!1,!0)}function J4e(t,e,o,f,E,d,s,n,{p:u,um:b,o:{createElement:i}}){const S=e.suspense=t.suspense;S.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:m,pendingBranch:a,isInFallback:c,isHydrating:h}=S;if(a)S.pendingBranch=w,g_(w,a)?(u(a,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():c&&(u(m,y,o,f,E,null,d,s,n),q8(S,y))):(S.pendingId++,h?(S.isHydrating=!1,S.activeBranch=a):b(a,E,S),S.deps=0,S.effects.length=0,S.hiddenContainer=i("div"),c?(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():(u(m,y,o,f,E,null,d,s,n),q8(S,y))):m&&g_(w,m)?(u(m,w,o,f,E,S,d,s,n),S.resolve(!0)):(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0&&S.resolve()));else if(m&&g_(w,m))u(m,w,o,f,E,S,d,s,n),q8(S,w);else if(yI(e,"onPending"),S.pendingBranch=w,S.pendingId++,u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0)S.resolve();else{const{timeout:p,pendingId:v}=S;p>0?setTimeout(()=>{S.pendingId===v&&S.fallback(y)},p):p===0&&S.fallback(y)}}function Kle(t,e,o,f,E,d,s,n,u,b,i=!1){const{p:S,m:w,um:y,n:m,o:{parentNode:a,remove:c}}=b;let h;const p=rke(t);p&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?F1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:s,container:f,hiddenContainer:E,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(O=!1,C=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:P,parentComponent:A,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!O){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=m(R),y(R,A,_,!0)),I||w(M,L,z,0)}q8(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...P),k=!0;break}D=D.parent}k||cve(P),_.effects=[],p&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!C&&e.resolve()),yI(x,"onResolve")},fallback(O){if(!_.pendingBranch)return;const{vnode:C,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;yI(C,"onFallback");const P=m(x),A=()=>{_.isInFallback&&(S(null,O,M,P,R,null,T,n,u),q8(_,O))},L=O.transition&&O.transition.mode==="out-in";L&&(x.transition.afterLeave=A),_.isInFallback=!0,y(x,R,null,!0),L||A()},move(O,C,x){_.activeBranch&&w(_.activeBranch,O,C,x),_.container=O},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(O,C){const x=!!_.pendingBranch;x&&_.deps++;const R=O.vnode.el;O.asyncDep.catch(M=>{sD(M,O,0)}).then(M=>{if(O.isUnmounted||_.isUnmounted||_.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:T}=O;qae(O,M,!1),R&&(T.el=R);const P=!R&&O.subTree.el;C(O,T,a(R||O.subTree.el),R?null:m(O.subTree),_,s,u),P&&c(P),Gle(O,T.el),x&&--_.deps===0&&_.resolve()})},unmount(O,C){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,O,C),_.pendingBranch&&y(_.pendingBranch,o,O,C)}};return _}function eke(t,e,o,f,E,d,s,n,u){const b=e.suspense=Kle(e,f,o,t.parentNode,document.createElement("div"),null,E,d,s,n,!0),i=u(t,b.pendingBranch=e.ssContent,o,b,d,s);return b.deps===0&&b.resolve(!1,!0),i}function tke(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=the(f?o.default:o),t.ssFallback=f?the(o.fallback):$t(Z0)}function the(t){let e;if(Ul(t)){const o=oM&&t._c;o&&(t._d=!1,Uo()),t=t(),o&&(t._d=!0,e=Jy,Eve())}return tl(t)&&(t=H4e(t)),t=vx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function nke(t,e){e&&e.pendingBranch?tl(t)?e.effects.push(...t):e.effects.push(t):cve(t)}function q8(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,E=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=E,Gle(f,E))}function rke(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Gp(t,e){return Jle(t,null,e)}const yQ={};function ia(t,e,o){return Jle(t,e,o)}function Jle(t,e,{immediate:o,deep:f,flush:E,onTrack:d,onTrigger:s}=Jd){var n;const u=j1e()===((n=Yp)==null?void 0:n.scope)?Yp:null;let b,i=!1,S=!1;if(ku(t)?(b=()=>t.value,i=EH(t)):CO(t)?(b=()=>t,f=!0):tl(t)?(S=!0,i=t.some(_=>CO(_)||EH(_)),b=()=>t.map(_=>{if(ku(_))return _.value;if(CO(_))return BT(_);if(Ul(_))return h4(_,u,2)})):Ul(t)?e?b=()=>h4(t,u,2):b=()=>{if(!(u&&u.isUnmounted))return w&&w(),rb(t,u,3,[y])}:b=Ox,e&&f){const _=b;b=()=>BT(_())}let w,y=_=>{w=p.onStop=()=>{h4(_,u,4)}},m;if(wI)if(y=Ox,e?o&&rb(e,u,3,[b(),S?[]:void 0,y]):b(),E==="sync"){const _=qke();m=_.__watcherHandles||(_.__watcherHandles=[])}else return Ox;let a=S?new Array(t.length).fill(yQ):yQ;const c=()=>{if(p.active)if(e){const _=p.run();(f||i||(S?_.some((O,C)=>pI(O,a[C])):pI(_,a)))&&(w&&w(),rb(e,u,3,[_,a===yQ?void 0:S&&a[0]===yQ?[]:a,y]),a=_)}else p.run()};c.allowRecurse=!!e;let h;E==="sync"?h=c:E==="post"?h=()=>D1(c,u&&u.suspense):(c.pre=!0,u&&(c.id=u.uid),h=()=>Wle(c));const p=new Vle(b,h);e?o?c():a=p.run():E==="post"?D1(p.run.bind(p),u&&u.suspense):p.run();const v=()=>{p.stop(),u&&u.scope&&zle(u.scope.effects,p)};return m&&m.push(v),v}function oke(t,e,o){const f=this.proxy,E=Yh(t)?t.includes(".")?hve(f,t):()=>f[t]:t.bind(f,f);let d;Ul(e)?d=e:(d=e.handler,o=e);const s=Yp;aM(this);const n=Jle(E,d.bind(f),o);return s?aM(s):UT(),n}function hve(t,e){const o=e.split(".");return()=>{let f=t;for(let E=0;E{BT(o,e)});else if(N1e(t))for(const o in t)BT(t[o],e);return t}function Kp(t,e){const o=Mm;if(o===null)return t;const f=HZ(o)||o.proxy,E=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),Em(()=>{t.isUnmounting=!0}),t}const Gy=[Function,Array],mve={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gy,onEnter:Gy,onAfterEnter:Gy,onEnterCancelled:Gy,onBeforeLeave:Gy,onLeave:Gy,onAfterLeave:Gy,onLeaveCancelled:Gy,onBeforeAppear:Gy,onAppear:Gy,onAfterAppear:Gy,onAppearCancelled:Gy},ike={name:"BaseTransition",props:mve,setup(t,{slots:e}){const o=dce(),f=pve();let E;return()=>{const d=e.default&&ece(e.default(),!0);if(!d||!d.length)return;let s=d[0];if(d.length>1){for(const a of d)if(a.type!==Z0){s=a;break}}const n=sl(t),{mode:u}=n;if(f.isLeaving)return vie(s);const b=nhe(s);if(!b)return vie(s);const i=bI(b,n,f,o);xI(b,i);const S=o.subTree,w=S&&nhe(S);let y=!1;const{getTransitionKey:m}=b.type;if(m){const a=m();E===void 0?E=a:a!==E&&(E=a,y=!0)}if(w&&w.type!==Z0&&(!g_(b,w)||y)){const a=bI(w,n,f,o);if(xI(w,a),u==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},vie(s);u==="in-out"&&b.type!==Z0&&(a.delayLeave=(c,h,p)=>{const v=gve(f,w);v[String(w.key)]=w,c._leaveCb=()=>{h(),c._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=p})}return s}}},ake=ike;function gve(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function bI(t,e,o,f){const{appear:E,mode:d,persisted:s=!1,onBeforeEnter:n,onEnter:u,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:S,onLeave:w,onAfterLeave:y,onLeaveCancelled:m,onBeforeAppear:a,onAppear:c,onAfterAppear:h,onAppearCancelled:p}=e,v=String(t.key),_=gve(o,t),O=(R,M)=>{R&&rb(R,f,9,M)},C=(R,M)=>{const T=M[1];O(R,M),tl(R)?R.every(P=>P.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:s,beforeEnter(R){let M=n;if(!o.isMounted)if(E)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&g_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),O(M,[R])},enter(R){let M=u,T=b,P=i;if(!o.isMounted)if(E)M=c||u,T=h||b,P=p||i;else return;let A=!1;const L=R._enterCb=D=>{A||(A=!0,D?O(P,[R]):O(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?C(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();O(S,[R]);let P=!1;const A=R._leaveCb=L=>{P||(P=!0,M(),L?O(m,[R]):O(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?C(w,[R,A]):A()},clone(R){return bI(R,e,o,f)}};return x}function vie(t){if(UZ(t))return t=EO(t),t.children=null,t}function nhe(t){return UZ(t)?t.children?t.children[0]:void 0:t}function xI(t,e){t.shapeFlag&6&&t.component?xI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ece(t,e=!1,o){let f=[],E=0;for(let d=0;d1)for(let d=0;dpp({name:t.name},e,{setup:t}))():t}const KL=t=>!!t.type.__asyncLoader,UZ=t=>t.type.__isKeepAlive;function tce(t,e){vve(t,"a",e)}function nce(t,e){vve(t,"da",e)}function vve(t,e,o=Yp){const f=t.__wdc||(t.__wdc=()=>{let E=o;for(;E;){if(E.isDeactivated)return;E=E.parent}return t()});if(jZ(e,f,o),o){let E=o.parent;for(;E&&E.parent;)UZ(E.parent.vnode)&&ske(f,e,o,E),E=E.parent}}function ske(t,e,o,f){const E=jZ(e,t,f,!0);ice(()=>{zle(f[e],E)},o)}function jZ(t,e,o=Yp,f=!1){if(o){const E=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...s)=>{if(o.isUnmounted)return;SM(),aM(o);const n=rb(e,o,t,s);return UT(),kM(),n});return f?E.unshift(d):E.push(d),d}}const zO=t=>(e,o=Yp)=>(!wI||t==="sp")&&jZ(t,(...f)=>e(...f),o),rce=zO("bm"),pg=zO("m"),yve=zO("bu"),oce=zO("u"),Em=zO("bum"),ice=zO("um"),lke=zO("sp"),cke=zO("rtg"),uke=zO("rtc");function fke(t,e=Yp){jZ("ec",t,e)}const ace="components",dke="directives";function Nd(t,e){return sce(ace,t,!0,e)||t}const bve=Symbol.for("v-ndc");function rM(t){return Yh(t)?sce(ace,t,!1)||t:t||bve}function M_(t){return sce(dke,t)}function sce(t,e,o=!0,f=!1){const E=Mm||Yp;if(E){const d=E.type;if(t===ace){const n=Qke(d,!1);if(n&&(n===e||n===ib(e)||n===A_(ib(e))))return d}const s=rhe(E[t]||d[t],e)||rhe(E.appContext[t],e);return!s&&f?d:s}}function rhe(t,e){return t&&(t[e]||t[ib(e)]||t[A_(ib(e))])}function ty(t,e,o,f){let E;const d=o&&o[f];if(tl(t)||Yh(t)){E=new Array(t.length);for(let s=0,n=t.length;se(s,n,void 0,d&&d[n]));else{const s=Object.keys(t);E=new Array(s.length);for(let n=0,u=s.length;n{const d=f.fn(...E);return d&&(d.key=f.key),d}:f.fn)}return t}function yie(t,e,o={},f,E){if(Mm.isCE||Mm.parent&&KL(Mm.parent)&&Mm.parent.isCE)return e!=="default"&&(o.name=e),$t("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Uo();const s=d&&_ve(d(o)),n=da(Ea,{key:o.key||s&&s.key||`_${e}`},s||(f?f():[]),s&&t._===1?64:-2);return!E&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function _ve(t){return t.some(e=>iM(e)?!(e.type===Z0||e.type===Ea&&!_ve(e.children)):!0)?t:null}function hke(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:GL(f)]=t[f];return o}const Vae=t=>t?Lve(t)?HZ(t)||t.proxy:Vae(t.parent):null,JL=pp(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Vae(t.parent),$root:t=>Vae(t.root),$emit:t=>t.emit,$options:t=>lce(t),$forceUpdate:t=>t.f||(t.f=()=>Wle(t.update)),$nextTick:t=>t.n||(t.n=Vc.bind(t.proxy)),$watch:t=>oke.bind(t)}),bie=(t,e)=>t!==Jd&&!t.__isScriptSetup&&Du(t,e),pke={get({_:t},e){const{ctx:o,setupState:f,data:E,props:d,accessCache:s,type:n,appContext:u}=t;let b;if(e[0]!=="$"){const y=s[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return E[e];case 4:return o[e];case 3:return d[e]}else{if(bie(f,e))return s[e]=1,f[e];if(E!==Jd&&Du(E,e))return s[e]=2,E[e];if((b=t.propsOptions[0])&&Du(b,e))return s[e]=3,d[e];if(o!==Jd&&Du(o,e))return s[e]=4,o[e];Uae&&(s[e]=0)}}const i=JL[e];let S,w;if(i)return e==="$attrs"&&V1(t,"get",e),i(t);if((S=n.__cssModules)&&(S=S[e]))return S;if(o!==Jd&&Du(o,e))return s[e]=4,o[e];if(w=u.config.globalProperties,Du(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:E,ctx:d}=t;return bie(E,e)?(E[e]=o,!0):f!==Jd&&Du(f,e)?(f[e]=o,!0):Du(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:E,propsOptions:d}},s){let n;return!!o[s]||t!==Jd&&Du(t,s)||bie(e,s)||(n=d[0])&&Du(n,s)||Du(f,s)||Du(JL,s)||Du(E.config.globalProperties,s)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Du(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function ohe(t){return tl(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let Uae=!0;function mke(t){const e=lce(t),o=t.proxy,f=t.ctx;Uae=!1,e.beforeCreate&&ihe(e.beforeCreate,t,"bc");const{data:E,computed:d,methods:s,watch:n,provide:u,inject:b,created:i,beforeMount:S,mounted:w,beforeUpdate:y,updated:m,activated:a,deactivated:c,beforeDestroy:h,beforeUnmount:p,destroyed:v,unmounted:_,render:O,renderTracked:C,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:P,components:A,directives:L,filters:D}=e;if(b&&gke(b,f,null),s)for(const z in s){const $=s[z];Ul($)&&(f[z]=$.bind(o))}if(E){const z=E.call(o,o);Fd(z)&&(t.data=Am(z))}if(Uae=!0,d)for(const z in d){const $=d[z],Q=Ul($)?$.bind(o,o):Ul($.get)?$.get.bind(o,o):Ox,j=!Ul($)&&Ul($.set)?$.set.bind(o):Ox,U=nr({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)wve(n[z],f,o,z);if(u){const z=Ul(u)?u.call(o):u;Reflect.ownKeys(z).forEach($=>{md($,z[$])})}i&&ihe(i,t,"c");function I(z,$){tl($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(rce,S),I(pg,w),I(yve,y),I(oce,m),I(tce,a),I(nce,c),I(fke,R),I(uke,C),I(cke,x),I(Em,p),I(ice,_),I(lke,M),tl(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});O&&t.render===Ox&&(t.render=O),P!=null&&(t.inheritAttrs=P),A&&(t.components=A),L&&(t.directives=L)}function gke(t,e,o=Ox){tl(t)&&(t=jae(t));for(const f in t){const E=t[f];let d;Fd(E)?"default"in E?d=Kl(E.from||f,E.default,!0):d=Kl(E.from||f):d=Kl(E),ku(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):e[f]=d}}function ihe(t,e,o){rb(tl(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function wve(t,e,o,f){const E=f.includes(".")?hve(o,f):()=>o[f];if(Yh(t)){const d=e[t];Ul(d)&&ia(E,d)}else if(Ul(t))ia(E,t.bind(o));else if(Fd(t))if(tl(t))t.forEach(d=>wve(d,e,o,f));else{const d=Ul(t.handler)?t.handler.bind(o):e[t.handler];Ul(d)&&ia(E,d,t)}}function lce(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:E,optionsCache:d,config:{optionMergeStrategies:s}}=t.appContext,n=d.get(e);let u;return n?u=n:!E.length&&!o&&!f?u=e:(u={},E.length&&E.forEach(b=>RH(u,b,s,!0)),RH(u,e,s)),Fd(e)&&d.set(e,u),u}function RH(t,e,o,f=!1){const{mixins:E,extends:d}=e;d&&RH(t,d,o,!0),E&&E.forEach(s=>RH(t,s,o,!0));for(const s in e)if(!(f&&s==="expose")){const n=vke[s]||o&&o[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const vke={data:ahe,props:she,emits:she,methods:QL,computed:QL,beforeCreate:j0,created:j0,beforeMount:j0,mounted:j0,beforeUpdate:j0,updated:j0,beforeDestroy:j0,beforeUnmount:j0,destroyed:j0,unmounted:j0,activated:j0,deactivated:j0,errorCaptured:j0,serverPrefetch:j0,components:QL,directives:QL,watch:bke,provide:ahe,inject:yke};function ahe(t,e){return e?t?function(){return pp(Ul(t)?t.call(this,this):t,Ul(e)?e.call(this,this):e)}:e:t}function yke(t,e){return QL(jae(t),jae(e))}function jae(t){if(tl(t)){const e={};for(let o=0;o1)return o&&Ul(e)?e.call(f&&f.proxy):e}}function wke(){return!!(Yp||Mm||_I)}function Oke(t,e,o,f=!1){const E={},d={};AH(d,QZ,1),t.propsDefaults=Object.create(null),Sve(t,e,E,d);for(const s in t.propsOptions[0])s in E||(E[s]=void 0);o?t.props=f?E:eve(E):t.type.props?t.props=E:t.props=d,t.attrs=d}function Ske(t,e,o,f){const{props:E,attrs:d,vnode:{patchFlag:s}}=t,n=sl(E),[u]=t.propsOptions;let b=!1;if((f||s>0)&&!(s&16)){if(s&8){const i=t.vnode.dynamicProps;for(let S=0;S{u=!0;const[w,y]=kve(S,e,!0);pp(s,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!u)return Fd(t)&&f.set(t,Q8),Q8;if(tl(d))for(let i=0;i-1,y[1]=a<0||m-1||Du(y,"default"))&&n.push(S)}}}const b=[s,n];return Fd(t)&&f.set(t,b),b}function lhe(t){return t[0]!=="$"}function che(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function uhe(t,e){return che(t)===che(e)}function fhe(t,e){return tl(e)?e.findIndex(o=>uhe(o,t)):Ul(e)&&uhe(e,t)?0:-1}const Tve=t=>t[0]==="_"||t==="$stable",cce=t=>tl(t)?t.map(vx):[vx(t)],kke=(t,e,o)=>{if(e._n)return e;const f=ao((...E)=>cce(e(...E)),o);return f._c=!1,f},Cve=(t,e,o)=>{const f=t._ctx;for(const E in t){if(Tve(E))continue;const d=t[E];if(Ul(d))e[E]=kke(E,d,f);else if(d!=null){const s=cce(d);e[E]=()=>s}}},Ave=(t,e)=>{const o=cce(e);t.slots.default=()=>o},Tke=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=sl(e),AH(e,"_",o)):Cve(e,t.slots={})}else t.slots={},e&&Ave(t,e);AH(t.slots,QZ,1)},Cke=(t,e,o)=>{const{vnode:f,slots:E}=t;let d=!0,s=Jd;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(pp(E,e),!o&&n===1&&delete E._):(d=!e.$stable,Cve(e,E)),s=e}else e&&(Ave(t,e),s={default:1});if(d)for(const n in E)!Tve(n)&&!(n in s)&&delete E[n]};function Hae(t,e,o,f,E=!1){if(tl(t)){t.forEach((w,y)=>Hae(w,e&&(tl(e)?e[y]:e),o,f,E));return}if(KL(f)&&!E)return;const d=f.shapeFlag&4?HZ(f.component)||f.component.proxy:f.el,s=E?null:d,{i:n,r:u}=t,b=e&&e.r,i=n.refs===Jd?n.refs={}:n.refs,S=n.setupState;if(b!=null&&b!==u&&(Yh(b)?(i[b]=null,Du(S,b)&&(S[b]=null)):ku(b)&&(b.value=null)),Ul(u))h4(u,n,12,[s,i]);else{const w=Yh(u),y=ku(u);if(w||y){const m=()=>{if(t.f){const a=w?Du(S,u)?S[u]:i[u]:u.value;E?tl(a)&&zle(a,d):tl(a)?a.includes(d)||a.push(d):w?(i[u]=[d],Du(S,u)&&(S[u]=i[u])):(u.value=[d],t.k&&(i[t.k]=u.value))}else w?(i[u]=s,Du(S,u)&&(S[u]=s)):y&&(u.value=s,t.k&&(i[t.k]=s))};s?(m.id=-1,D1(m,o)):m()}}}const D1=nke;function Ake(t){return Mke(t)}function Mke(t,e){const o=Bae();o.__VUE__=!0;const{insert:f,remove:E,patchProp:d,createElement:s,createText:n,createComment:u,setText:b,setElementText:i,parentNode:S,nextSibling:w,setScopeId:y=Ox,insertStaticContent:m}=t,a=(se,ae,ce,de=null,ye=null,ve=null,_e=!1,we=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!g_(se,ae)&&(de=q(se),X(se,ye,ve,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case lD:c(se,ae,ce,de);break;case Z0:h(se,ae,ce,de);break;case xie:se==null&&p(ae,ce,de,_e);break;case Ea:A(se,ae,ce,de,ye,ve,_e,we,Te);break;default:ze&1?O(se,ae,ce,de,ye,ve,_e,we,Te):ze&6?L(se,ae,ce,de,ye,ve,_e,we,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ye,ve,_e,we,Te,ee)}Ie!=null&&ye&&Hae(Ie,se&&se.ref,ve,ae||se,!ae)},c=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ye=ae.el=se.el;ae.children!==se.children&&b(ye,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=u(ae.children||""),ce,de):ae.el=se.el},p=(se,ae,ce,de)=>{[se.el,se.anchor]=m(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ye;for(;se&&se!==ae;)ye=w(se),f(se,ce,de),se=ye;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),E(se),se=ce;E(ae)},O=(se,ae,ce,de,ye,ve,_e,we,Te)=>{_e=_e||ae.type==="svg",se==null?C(ae,ce,de,ye,ve,_e,we,Te):M(se,ae,ye,ve,_e,we,Te)},C=(se,ae,ce,de,ye,ve,_e,we)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:Qe,dirs:Ve}=se;if(Te=se.el=s(se.type,ve,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ye,ve&&Ie!=="foreignObject",_e,we),Ve&&xT(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!oH(Oe)&&d(Te,Oe,null,ze[Oe],ve,se.children,de,ye,re);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&c_(Pe,de,se)}Ve&&xT(se,null,de,"beforeMount");const $e=(!ye||ye&&!ye.pendingBranch)&&Qe&&!Qe.persisted;$e&&Qe.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&D1(()=>{Pe&&c_(Pe,de,se),$e&&Qe.enter(Te),Ve&&xT(se,null,de,"mounted")},ye)},x=(se,ae,ce,de,ye)=>{if(ce&&y(se,ce),de)for(let ve=0;ve{for(let Pe=Te;Pe{const we=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||Jd,De=ae.props||Jd;let Qe;ce&&_T(ce,!1),(Qe=De.onVnodeBeforeUpdate)&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"beforeUpdate"),ce&&_T(ce,!0);const Ve=ye&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,we,ce,de,Ve,ve):_e||$(se,ae,we,null,ce,de,Ve,ve,!1),Te>0){if(Te&16)P(we,ae,ze,De,ce,de,ye);else if(Te&2&&ze.class!==De.class&&d(we,"class",null,De.class,ye),Te&4&&d(we,"style",ze.style,De.style,ye),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Re=ze[ke],We=De[ke];(We!==Re||ke==="value")&&d(we,ke,Re,We,ye,se.children,ce,de,re)}}Te&1&&se.children!==ae.children&&i(we,ae.children)}else!_e&&Pe==null&&P(we,ae,ze,De,ce,de,ye);((Qe=De.onVnodeUpdated)||Ie)&&D1(()=>{Qe&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ye,ve,_e)=>{for(let we=0;we{if(ce!==de){if(ce!==Jd)for(const we in ce)!oH(we)&&!(we in de)&&d(se,we,ce[we],null,_e,ae.children,ye,ve,re);for(const we in de){if(oH(we))continue;const Te=de[we],Pe=ce[we];Te!==Pe&&we!=="value"&&d(se,we,Pe,Te,_e,ae.children,ye,ve,re)}"value"in de&&d(se,"value",ce.value,de.value)}},A=(se,ae,ce,de,ye,ve,_e,we,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:Qe}=ae;Qe&&(we=we?we.concat(Qe):Qe),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ye,ve,_e,we,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ye,ve,_e,we),(ae.key!=null||ye&&ae===ye.subTree)&&uce(se,ae,!0)):$(se,ae,ce,Ie,ye,ve,_e,we,Te)},L=(se,ae,ce,de,ye,ve,_e,we,Te)=>{ae.slotScopeIds=we,se==null?ae.shapeFlag&512?ye.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ye,ve,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ye,ve,_e)=>{const we=se.component=Fke(se,de,ye);if(UZ(se)&&(we.ctx.renderer=ee),$ke(we),we.asyncDep){if(ye&&ye.registerDep(we,I),!se.el){const Te=we.subTree=$t(Z0);h(null,Te,ae,ce)}return}I(we,se,ae,ce,ye,ve,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(W4e(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,U4e(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ye,ve,_e)=>{const we=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:Qe,vnode:Ve}=se,$e=Ie,Oe;_T(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&iH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&c_(Oe,Qe,Ie,Ve),_T(se,!0);const ke=gie(se),Re=se.subTree;se.subTree=ke,a(Re,ke,S(Re.el),q(Re),se,ye,ve),Ie.el=ke.el,$e===null&&Gle(se,ke.el),De&&D1(De,ye),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&D1(()=>c_(Oe,Qe,Ie,Ve),ye)}else{let Ie;const{el:ze,props:De}=ae,{bm:Qe,m:Ve,parent:$e}=se,Oe=KL(ae);if(_T(se,!1),Qe&&iH(Qe),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&c_(Ie,$e,ae),_T(se,!0),ze&&pe){const ke=()=>{se.subTree=gie(se),pe(ze,se.subTree,se,ye,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=gie(se);a(null,ke,ce,de,se,ye,ve),ae.el=ke.el}if(Ve&&D1(Ve,ye),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;D1(()=>c_(Ie,$e,ke),ye)}(ae.shapeFlag&256||$e&&KL($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&D1(se.a,ye),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new Vle(we,()=>Wle(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,_T(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,Ske(se,ae.props,de,ce),Cke(se,ae.children,ce),SM(),Jde(),kM()},$=(se,ae,ce,de,ye,ve,_e,we,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:Qe}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ye,ve,_e,we,Te);return}else if(De&256){Q(Pe,ze,ce,de,ye,ve,_e,we,Te);return}}Qe&8?(Ie&16&&re(Pe,ye,ve),ze!==Pe&&i(ce,ze)):Ie&16?Qe&16?j(Pe,ze,ce,de,ye,ve,_e,we,Te):re(Pe,ye,ve,!0):(Ie&8&&i(ce,""),Qe&16&&R(ze,ce,de,ye,ve,_e,we,Te))},Q=(se,ae,ce,de,ye,ve,_e,we,Te)=>{se=se||Q8,ae=ae||Q8;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?re(se,ye,ve,!0,!1,ze):R(ae,ce,de,ye,ve,_e,we,Te,ze)},j=(se,ae,ce,de,ye,ve,_e,we,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const Qe=se[Pe],Ve=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const Qe=se[ze],Ve=ae[De]=Te?t4(ae[De]):vx(ae[De]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const Qe=De+1,Ve=QeDe)for(;Pe<=ze;)X(se[Pe],ye,ve,!0),Pe++;else{const Qe=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const Je=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);Je.key!=null&&$e.set(Je.key,Pe)}let Oe,ke=0;const Re=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Re);for(Pe=0;Pe=Re){X(Je,ye,ve,!0);continue}let Me;if(Je.key!=null)Me=$e.get(Je.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&g_(Je,ae[Oe])){Me=Oe;break}Me===void 0?X(Je,ye,ve,!0):(Ze[Me-Ve]=Pe+1,Me>=Ue?Ue=Me:We=!0,a(Je,ae[Me],ce,null,ye,ve,_e,we,Te),ke++)}const Ye=We?Eke(Ze):Q8;for(Oe=Ye.length-1,Pe=Re-1;Pe>=0;Pe--){const Je=Ve+Pe,Me=ae[Je],Fe=Je+1{const{el:ve,type:_e,transition:we,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===Ea){f(ve,ae,ce);for(let ze=0;zewe.enter(ve),ye);else{const{leave:ze,delayLeave:De,afterLeave:Qe}=we,Ve=()=>f(ve,ae,ce),$e=()=>{ze(ve,()=>{Ve(),Qe&&Qe()})};De?De(ve,Ve,$e):$e()}else f(ve,ae,ce)},X=(se,ae,ce,de=!1,ye=!1)=>{const{type:ve,props:_e,ref:we,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(we!=null&&Hae(we,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const Qe=Ie&1&&De,Ve=!KL(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&c_($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}Qe&&xT(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ye,ee,de):Pe&&(ve!==Ea||ze>0&&ze&64)?re(Pe,ae,ce,!1,!0):(ve===Ea&&ze&384||!ye&&Ie&16)&&re(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||Qe)&&D1(()=>{$e&&c_($e,ae,se),Qe&&xT(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ye}=se;if(ae===Ea){Z(ce,de);return}if(ae===xie){_(se);return}const ve=()=>{E(ce),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(se.shapeFlag&1&&ye&&!ye.persisted){const{leave:_e,delayLeave:we}=ye,Te=()=>_e(ce,ve);we?we(se.el,ve,Te):Te()}else ve()},Z=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),E(se),se=ce;E(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ye,update:ve,subTree:_e,um:we}=se;de&&iH(de),ye.stop(),ve&&(ve.active=!1,X(_e,se,ae,ce)),we&&D1(we,ae),D1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},re=(se,ae,ce,de=!1,ye=!1,ve=0)=>{for(let _e=ve;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Jde(),uve(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,pe;return e&&([me,pe]=e(ee)),{render:Y,hydrate:me,createApp:_ke(Y,me)}}function _T({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function uce(t,e,o=!1){const f=t.children,E=e.children;if(tl(f)&&tl(E))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,s=o[d-1];d-- >0;)o[d]=s,s=e[s];return o}const Pke=t=>t.__isTeleport,eI=t=>t&&(t.disabled||t.disabled===""),dhe=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Zae=(t,e)=>{const o=t&&t.to;return Yh(o)?e?e(o):null:o},Rke={__isTeleport:!0,process(t,e,o,f,E,d,s,n,u,b){const{mc:i,pc:S,pbc:w,o:{insert:y,querySelector:m,createText:a,createComment:c}}=b,h=eI(e.props);let{shapeFlag:p,children:v,dynamicChildren:_}=e;if(t==null){const O=e.el=a(""),C=e.anchor=a("");y(O,o,f),y(C,o,f);const x=e.target=Zae(e.props,m),R=e.targetAnchor=a("");x&&(y(R,x),s=s||dhe(x));const M=(T,P)=>{p&16&&i(v,T,P,E,d,s,n,u)};h?M(o,C):x&&M(x,R)}else{e.el=t.el;const O=e.anchor=t.anchor,C=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=eI(t.props),M=R?o:C,T=R?O:x;if(s=s||dhe(C),_?(w(t.dynamicChildren,_,M,E,d,s,n),uce(t,e,!0)):u||S(t,e,M,T,E,d,s,n,!1),h)R||bQ(e,o,O,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=Zae(e.props,m);P&&bQ(e,P,null,b,0)}else R&&bQ(e,C,x,b,1)}Mve(e)},remove(t,e,o,f,{um:E,o:{remove:d}},s){const{shapeFlag:n,children:u,anchor:b,targetAnchor:i,target:S,props:w}=t;if(S&&d(i),(s||!eI(w))&&(d(b),n&16))for(let y=0;y0?Jy||Q8:null,Eve(),oM>0&&Jy&&Jy.push(t),t}function Ya(t,e,o,f,E,d){return Pve(Na(t,e,o,f,E,d,!0))}function da(t,e,o,f,E){return Pve($t(t,e,o,f,E,!0))}function iM(t){return t?t.__v_isVNode===!0:!1}function g_(t,e){return t.type===e.type&&t.key===e.key}const QZ="__vInternal",Rve=({key:t})=>t??null,aH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?Yh(t)||ku(t)||Ul(t)?{i:Mm,r:t,k:e,f:!!o}:t:null);function Na(t,e=null,o=null,f=0,E=null,d=t===Ea?0:1,s=!1,n=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Rve(e),ref:e&&aH(e),scopeId:VZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:E,dynamicChildren:null,appContext:null,ctx:Mm};return n?(fce(u,o),d&128&&t.normalize(u)):o&&(u.shapeFlag|=Yh(o)?8:16),oM>0&&!s&&Jy&&(u.patchFlag>0||d&6)&&u.patchFlag!==32&&Jy.push(u),u}const $t=Dke;function Dke(t,e=null,o=null,f=0,E=null,d=!1){if((!t||t===bve)&&(t=Z0),iM(t)){const n=EO(t,e,!0);return o&&fce(n,o),oM>0&&!d&&Jy&&(n.shapeFlag&6?Jy[Jy.indexOf(t)]=n:Jy.push(n)),n.patchFlag|=-2,n}if(Hke(t)&&(t=t.__vccOpts),e){e=Bke(e);let{class:n,style:u}=e;n&&!Yh(n)&&(e.class=Gv(n)),Fd(u)&&(tve(u)&&!tl(u)&&(u=pp({},u)),e.style=oD(u))}const s=Yh(t)?1:Y4e(t)?128:Pke(t)?64:Fd(t)?4:Ul(t)?2:0;return Na(t,e,o,f,E,s,d,!0)}function Bke(t){return t?tve(t)||QZ in t?pp({},t):t:null}function EO(t,e,o=!1){const{props:f,ref:E,patchFlag:d,children:s}=t,n=e?qi(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&Rve(n),ref:e&&e.ref?o&&E?tl(E)?E.concat(aH(e)):[E,aH(e)]:aH(e):E,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ea?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&EO(t.ssContent),ssFallback:t.ssFallback&&EO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ua(t=" ",e=0){return $t(lD,null,t,e)}function za(t="",e=!1){return e?(Uo(),da(Z0,null,t)):$t(Z0,null,t)}function vx(t){return t==null||typeof t=="boolean"?$t(Z0):tl(t)?$t(Ea,null,t.slice()):typeof t=="object"?t4(t):$t(lD,null,String(t))}function t4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:EO(t)}function fce(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(tl(e))o=16;else if(typeof e=="object")if(f&65){const E=e.default;E&&(E._c&&(E._d=!1),fce(t,E()),E._c&&(E._d=!0));return}else{o=32;const E=e._;!E&&!(QZ in e)?e._ctx=Mm:E===3&&Mm&&(Mm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ul(e)?(e={default:e,_ctx:Mm},o=32):(e=String(e),f&64?(o=16,e=[Ua(e)]):o=8);t.children=e,t.shapeFlag|=o}function qi(...t){const e={};for(let o=0;oYp||Mm;let hce,C8,phe="__VUE_INSTANCE_SETTERS__";(C8=Bae()[phe])||(C8=Bae()[phe]=[]),C8.push(t=>Yp=t),hce=t=>{C8.length>1?C8.forEach(e=>e(t)):C8[0](t)};const aM=t=>{hce(t),t.scope.on()},UT=()=>{Yp&&Yp.scope.off(),hce(null)};function Lve(t){return t.vnode.shapeFlag&4}let wI=!1;function $ke(t,e=!1){wI=e;const{props:o,children:f}=t.vnode,E=Lve(t);Oke(t,o,E,e),Tke(t,f);const d=E?Vke(t,e):void 0;return wI=!1,d}function Vke(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=aD(new Proxy(t.ctx,pke));const{setup:f}=o;if(f){const E=t.setupContext=f.length>1?jke(t):null;aM(t),SM();const d=h4(f,t,0,[t.props,E]);if(kM(),UT(),B1e(d)){if(d.then(UT,UT),e)return d.then(s=>{qae(t,s,e)}).catch(s=>{sD(s,t,0)});t.asyncDep=d}else qae(t,d,e)}else Ive(t,e)}function qae(t,e,o){Ul(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Fd(e)&&(t.setupState=ive(e)),Ive(t,o)}let mhe;function Ive(t,e,o){const f=t.type;if(!t.render){if(!e&&mhe&&!f.render){const E=f.template||lce(t).template;if(E){const{isCustomElement:d,compilerOptions:s}=t.appContext.config,{delimiters:n,compilerOptions:u}=f,b=pp(pp({isCustomElement:d,delimiters:n},s),u);f.render=mhe(E,b)}}t.render=f.render||Ox}aM(t),SM(),mke(t),kM(),UT()}function Uke(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return V1(t,"get","$attrs"),e[o]}}))}function jke(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return Uke(t)},slots:t.slots,emit:t.emit,expose:e}}function HZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ive(aD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in JL)return JL[o](t)},has(e,o){return o in e||o in JL}}))}function Qke(t,e=!0){return Ul(t)?t.displayName||t.name:t.name||e&&t.__name}function Hke(t){return Ul(t)&&"__vccOpts"in t}const nr=(t,e)=>F4e(t,e,wI);function U1(t,e,o){const f=arguments.length;return f===2?Fd(e)&&!tl(e)?iM(e)?$t(t,null,[e]):$t(t,e):$t(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&iM(o)&&(o=[o]),$t(t,e,o))}const Zke=Symbol.for("v-scx"),qke=()=>Kl(Zke),Wke="3.3.4",Yke="http://www.w3.org/2000/svg",PT=typeof document<"u"?document:null,ghe=PT&&PT.createElement("template"),Xke={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const E=e?PT.createElementNS(Yke,t):PT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&E.setAttribute("multiple",f.multiple),E},createText:t=>PT.createTextNode(t),createComment:t=>PT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>PT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,E,d){const s=o?o.previousSibling:e.lastChild;if(E&&(E===d||E.nextSibling))for(;e.insertBefore(E.cloneNode(!0),o),!(E===d||!(E=E.nextSibling)););else{ghe.innerHTML=f?`${t}`:t;const n=ghe.content;if(f){const u=n.firstChild;for(;u.firstChild;)n.appendChild(u.firstChild);n.removeChild(u)}e.insertBefore(n,o)}return[s?s.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function Gke(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function Kke(t,e,o){const f=t.style,E=Yh(o);if(o&&!E){if(e&&!Yh(e))for(const d in e)o[d]==null&&Wae(f,d,"");for(const d in o)Wae(f,d,o[d])}else{const d=f.display;E?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const vhe=/\s*!important$/;function Wae(t,e,o){if(tl(o))o.forEach(f=>Wae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=Jke(t,e);vhe.test(o)?t.setProperty(JT(f),o.replace(vhe,""),"important"):t[f]=o}}const yhe=["Webkit","Moz","ms"],_ie={};function Jke(t,e){const o=_ie[e];if(o)return o;let f=ib(e);if(f!=="filter"&&f in t)return _ie[e]=f;f=A_(f);for(let E=0;Ewie||(i5e.then(()=>wie=0),wie=Date.now());function s5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;rb(l5e(f,o.value),e,5,[f])};return o.value=t,o.attached=a5e(),o}function l5e(t,e){if(tl(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>E=>!E._stopped&&f&&f(E))}else return e}const _he=/^on[a-z]/,c5e=(t,e,o,f,E=!1,d,s,n,u)=>{e==="class"?Gke(t,f,E):e==="style"?Kke(t,o,f):BZ(e)?Ble(e)||r5e(t,e,o,f,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):u5e(t,e,f,E))?t5e(t,e,f,d,s,n,u):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),e5e(t,e,f,E))};function u5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&_he.test(e)&&Ul(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||_he.test(e)&&Yh(o)?!1:e in t}const XS="transition",CL="animation",C_=(t,{slots:e})=>U1(ake,Bve(t),e);C_.displayName="Transition";const Dve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},f5e=C_.props=pp({},mve,Dve),wT=(t,e=[])=>{tl(t)?t.forEach(o=>o(...e)):t&&t(...e)},whe=t=>t?tl(t)?t.some(e=>e.length>1):t.length>1:!1;function Bve(t){const e={};for(const A in t)A in Dve||(e[A]=t[A]);if(t.css===!1)return e;const{name:o="v",type:f,duration:E,enterFromClass:d=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:u=d,appearActiveClass:b=s,appearToClass:i=n,leaveFromClass:S=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,m=d5e(E),a=m&&m[0],c=m&&m[1],{onBeforeEnter:h,onEnter:p,onEnterCancelled:v,onLeave:_,onLeaveCancelled:O,onBeforeAppear:C=h,onAppear:x=p,onAppearCancelled:R=v}=e,M=(A,L,D)=>{JS(A,L?i:n),JS(A,L?b:s),D&&D()},T=(A,L)=>{A._isLeaving=!1,JS(A,S),JS(A,y),JS(A,w),L&&L()},P=A=>(L,D)=>{const k=A?x:p,I=()=>M(L,A,D);wT(k,[L,I]),Ohe(()=>{JS(L,A?u:d),SO(L,A?i:n),whe(k)||She(L,f,a,I)})};return pp(e,{onBeforeEnter(A){wT(h,[A]),SO(A,d),SO(A,s)},onBeforeAppear(A){wT(C,[A]),SO(A,u),SO(A,b)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){A._isLeaving=!0;const D=()=>T(A,L);SO(A,S),Nve(),SO(A,w),Ohe(()=>{A._isLeaving&&(JS(A,S),SO(A,y),whe(_)||She(A,f,c,D))}),wT(_,[A,D])},onEnterCancelled(A){M(A,!1),wT(v,[A])},onAppearCancelled(A){M(A,!0),wT(R,[A])},onLeaveCancelled(A){T(A),wT(O,[A])}})}function d5e(t){if(t==null)return null;if(Fd(t))return[Oie(t.enter),Oie(t.leave)];{const e=Oie(t);return[e,e]}}function Oie(t){return F1e(t)}function SO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function JS(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Ohe(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let h5e=0;function She(t,e,o,f){const E=t._endId=++h5e,d=()=>{E===t._endId&&f()};if(o)return setTimeout(d,o);const{type:s,timeout:n,propCount:u}=zve(t,e);if(!s)return f();const b=s+"end";let i=0;const S=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=u&&S()};setTimeout(()=>{i(o[m]||"").split(", "),E=f(`${XS}Delay`),d=f(`${XS}Duration`),s=khe(E,d),n=f(`${CL}Delay`),u=f(`${CL}Duration`),b=khe(n,u);let i=null,S=0,w=0;e===XS?s>0&&(i=XS,S=s,w=d.length):e===CL?b>0&&(i=CL,S=b,w=u.length):(S=Math.max(s,b),i=S>0?s>b?XS:CL:null,w=i?i===XS?d.length:u.length:0);const y=i===XS&&/\b(transform|all)(,|$)/.test(f(`${XS}Property`).toString());return{type:i,timeout:S,propCount:w,hasTransform:y}}function khe(t,e){for(;t.lengthThe(o)+The(t[f])))}function The(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Nve(){return document.body.offsetHeight}const Fve=new WeakMap,$ve=new WeakMap,Vve={name:"TransitionGroup",props:pp({},f5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=dce(),f=pve();let E,d;return oce(()=>{if(!E.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!y5e(E[0].el,o.vnode.el,s))return;E.forEach(m5e),E.forEach(g5e);const n=E.filter(v5e);Nve(),n.forEach(u=>{const b=u.el,i=b.style;SO(b,s),i.transform=i.webkitTransform=i.transitionDuration="";const S=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",S),b._moveCb=null,JS(b,s))};b.addEventListener("transitionend",S)})}),()=>{const s=sl(t),n=Bve(s);let u=s.tag||Ea;E=d,d=e.default?ece(e.default()):[];for(let b=0;bdelete t.mode;Vve.props;const pce=Vve;function m5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function g5e(t){$ve.set(t,t.el.getBoundingClientRect())}function v5e(t){const e=Fve.get(t),o=$ve.get(t),f=e.left-o.left,E=e.top-o.top;if(f||E){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${E}px)`,d.transitionDuration="0s",t}}function y5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(s=>{s.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(s=>s&&f.classList.add(s)),f.style.display="none";const E=e.nodeType===1?e:e.parentNode;E.appendChild(f);const{hasTransform:d}=zve(f);return E.removeChild(f),d}const Che=t=>{const e=t.props["onUpdate:modelValue"]||!1;return tl(e)?o=>iH(e,o):e};function b5e(t){t.target.composing=!0}function Ahe(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const x5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},E){t._assign=Che(E);const d=f||E.props&&E.props.type==="number";I8(t,e?"change":"input",s=>{if(s.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=Dae(n)),t._assign(n)}),o&&I8(t,"change",()=>{t.value=t.value.trim()}),e||(I8(t,"compositionstart",b5e),I8(t,"compositionend",Ahe),I8(t,"change",Ahe))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:E}},d){if(t._assign=Che(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(E||t.type==="number")&&Dae(t.value)===e))return;const s=e??"";t.value!==s&&(t.value=s)}},_5e=["ctrl","shift","alt","meta"],w5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>_5e.some(o=>t[`${o}Key`]&&!e.includes(o))},LH=(t,e)=>(o,...f)=>{for(let E=0;Eo=>{if(!("key"in o))return;const f=JT(o.key);if(e.some(E=>E===f||O5e[E]===f))return t(o)},A4={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):AL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),AL(t,!0),f.enter(t)):f.leave(t,()=>{AL(t,!1)}):AL(t,e))},beforeUnmount(t,{value:e}){AL(t,e)}};function AL(t,e){t.style.display=e?t._vod:"none"}const S5e=pp({patchProp:c5e},Xke);let Mhe;function k5e(){return Mhe||(Mhe=Ake(S5e))}const T5e=(...t)=>{const e=k5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const E=C5e(f);if(!E)return;const d=e._component;!Ul(d)&&!d.render&&!d.template&&(d.template=E.innerHTML),E.innerHTML="";const s=o(E,!1,E instanceof SVGElement);return E instanceof Element&&(E.removeAttribute("v-cloak"),E.setAttribute("data-v-app","")),s},e};function C5e(t){return Yh(t)?document.querySelector(t):t}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const I8=typeof window<"u";function T5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const If=Object.assign;function Oie(t,e){const o={};for(const f in e){const E=e[f];o[f]=Sx(E)?E.map(t):t(E)}return o}const nI=()=>{},Sx=Array.isArray,C5e=/\/$/,A5e=t=>t.replace(C5e,"");function Sie(t,e,o="/"){let f,E={},d="",s="";const n=e.indexOf("#");let u=e.indexOf("?");return n=0&&(u=-1),u>-1&&(f=e.slice(0,u),d=e.slice(u+1,n>-1?n:e.length),E=t(d)),n>-1&&(f=f||e.slice(0,n),s=e.slice(n,e.length)),f=R5e(f??e,o),{fullPath:f+(d&&"?")+d+s,path:f,query:E,hash:s}}function M5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function Ahe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function E5e(t,e,o){const f=e.matched.length-1,E=o.matched.length-1;return f>-1&&f===E&&aM(e.matched[f],o.matched[E])&&$ve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function aM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function $ve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!P5e(t[o],e[o]))return!1;return!0}function P5e(t,e){return Sx(t)?Mhe(t,e):Sx(e)?Mhe(e,t):t===e}function Mhe(t,e){return Sx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function R5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),E=f[f.length-1];(E===".."||E===".")&&f.push("");let d=o.length-1,s,n;for(s=0;s1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(s-(s===f.length?1:0)).join("/")}var OI;(function(t){t.pop="pop",t.push="push"})(OI||(OI={}));var rI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(rI||(rI={}));function L5e(t){if(!t)if(I8){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),A5e(t)}const I5e=/^[^#]+#/;function D5e(t,e){return t.replace(I5e,"#")+e}function B5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const HZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function z5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),E=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!E)return;e=B5e(E,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Ehe(t,e){return(history.state?history.state.position-e:-1)+t}const Wae=new Map;function N5e(t,e){Wae.set(t,e)}function F5e(t){const e=Wae.get(t);return Wae.delete(t),e}let $5e=()=>location.protocol+"//"+location.host;function Vve(t,e){const{pathname:o,search:f,hash:E}=e,d=t.indexOf("#");if(d>-1){let n=E.includes(t.slice(d))?t.slice(d).length:1,u=E.slice(n);return u[0]!=="/"&&(u="/"+u),Ahe(u,"")}return Ahe(o,t)+f+E}function V5e(t,e,o,f){let E=[],d=[],s=null;const n=({state:w})=>{const y=Vve(t,location),m=o.value,a=e.value;let c=0;if(w){if(o.value=y,e.value=w,s&&s===m){s=null;return}c=a?w.position-a.position:0}else f(y);E.forEach(h=>{h(o.value,m,{delta:c,type:OI.pop,direction:c?c>0?rI.forward:rI.back:rI.unknown})})};function u(){s=o.value}function b(w){E.push(w);const y=()=>{const m=E.indexOf(w);m>-1&&E.splice(m,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState(If({},w.state,{scroll:HZ()}),"")}function S(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:u,listen:b,destroy:S}}function Phe(t,e,o,f=!1,E=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:E?HZ():null}}function U5e(t){const{history:e,location:o}=window,f={value:Vve(t,o)},E={value:e.state};E.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(u,b,i){const S=t.indexOf("#"),w=S>-1?(o.host&&document.querySelector("base")?t:t.slice(S))+u:$5e()+t+u;try{e[i?"replaceState":"pushState"](b,"",w),E.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function s(u,b){const i=If({},e.state,Phe(E.value.back,u,E.value.forward,!0),b,{position:E.value.position});d(u,i,!0),f.value=u}function n(u,b){const i=If({},E.value,e.state,{forward:u,scroll:HZ()});d(i.current,i,!0);const S=If({},Phe(f.value,u,null),{position:i.position+1},b);d(u,S,!1),f.value=u}return{location:f,state:E,push:n,replace:s}}function j5e(t){t=L5e(t);const e=U5e(t),o=V5e(t,e.state,e.location,e.replace);function f(d,s=!0){s||o.pauseListeners(),history.go(d)}const E=If({location:"",base:t,go:f,createHref:D5e.bind(null,t)},e,o);return Object.defineProperty(E,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(E,"state",{enumerable:!0,get:()=>e.state.value}),E}function Q5e(t){return typeof t=="string"||t&&typeof t=="object"}function Uve(t){return typeof t=="string"||typeof t=="symbol"}const GS={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jve=Symbol("");var Rhe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Rhe||(Rhe={}));function sM(t,e){return If(new Error,{type:t,[jve]:!0},e)}function OO(t,e){return t instanceof Error&&jve in t&&(e==null||!!(t.type&e))}const Lhe="[^/]+?",H5e={sensitive:!1,strict:!1,start:!0,end:!0},Z5e=/[.+*?^${}()[\]/\\]/g;function q5e(t,e){const o=If({},H5e,e),f=[];let E=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(E+="/");for(let S=0;Se.length?e.length===1&&e[0]===40+40?1:-1:0}function Y5e(t,e){let o=0;const f=t.score,E=e.score;for(;o0&&e[e.length-1]<0}const X5e={type:0,value:""},G5e=/[a-zA-Z0-9_]/;function K5e(t){if(!t)return[[]];if(t==="/")return[[X5e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const E=[];let d;function s(){d&&E.push(d),d=[]}let n=0,u,b="",i="";function S(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=u}for(;n{s(p)}:nI}function s(i){if(Uve(i)){const S=f.get(i);S&&(f.delete(i),o.splice(o.indexOf(S),1),S.children.forEach(s),S.alias.forEach(s))}else{const S=o.indexOf(i);S>-1&&(o.splice(S,1),i.record.name&&f.delete(i.record.name),i.children.forEach(s),i.alias.forEach(s))}}function n(){return o}function u(i){let S=0;for(;S=0&&(i.record.path!==o[S].record.path||!Qve(i,o[S]));)S++;o.splice(S,0,i),i.record.name&&!Bhe(i)&&f.set(i.record.name,i)}function b(i,S){let w,y={},m,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw sM(1,{location:i});a=w.record.name,y=If(Dhe(S.params,w.keys.filter(p=>!p.optional).map(p=>p.name)),i.params&&Dhe(i.params,w.keys.map(p=>p.name))),m=w.stringify(y)}else if("path"in i)m=i.path,w=o.find(p=>p.re.test(m)),w&&(y=w.parse(m),a=w.record.name);else{if(w=S.name?f.get(S.name):o.find(p=>p.re.test(S.path)),!w)throw sM(1,{location:i,currentLocation:S});a=w.record.name,y=If({},S.params,i.params),m=w.stringify(y)}const c=[];let h=w;for(;h;)c.unshift(h.record),h=h.parent;return{name:a,path:m,params:y,matched:c,meta:rTe(c)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:s,getRoutes:n,getRecordMatcher:E}}function Dhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function tTe(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:nTe(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function nTe(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function Bhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function rTe(t){return t.reduce((e,o)=>If(e,o.meta),{})}function zhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function Qve(t,e){return e.children.some(o=>o===t||Qve(t,o))}const Hve=/#/g,oTe=/&/g,iTe=/\//g,aTe=/=/g,sTe=/\?/g,Zve=/\+/g,lTe=/%5B/g,cTe=/%5D/g,qve=/%5E/g,uTe=/%60/g,Wve=/%7B/g,fTe=/%7C/g,Yve=/%7D/g,dTe=/%20/g;function mce(t){return encodeURI(""+t).replace(fTe,"|").replace(lTe,"[").replace(cTe,"]")}function hTe(t){return mce(t).replace(Wve,"{").replace(Yve,"}").replace(qve,"^")}function Yae(t){return mce(t).replace(Zve,"%2B").replace(dTe,"+").replace(Hve,"%23").replace(oTe,"%26").replace(uTe,"`").replace(Wve,"{").replace(Yve,"}").replace(qve,"^")}function pTe(t){return Yae(t).replace(aTe,"%3D")}function mTe(t){return mce(t).replace(Hve,"%23").replace(sTe,"%3F")}function gTe(t){return t==null?"":mTe(t).replace(iTe,"%2F")}function LH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function vTe(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let E=0;Ed&&Yae(d)):[f&&Yae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function yTe(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=Sx(f)?f.map(E=>E==null?null:""+E):f==null?f:""+f)}return e}const bTe=Symbol(""),Fhe=Symbol(""),gce=Symbol(""),vce=Symbol(""),Xae=Symbol("");function ML(){let t=[];function e(f){return t.push(f),()=>{const E=t.indexOf(f);E>-1&&t.splice(E,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function n4(t,e,o,f,E){const d=f&&(f.enterCallbacks[E]=f.enterCallbacks[E]||[]);return()=>new Promise((s,n)=>{const u=S=>{S===!1?n(sM(4,{from:o,to:e})):S instanceof Error?n(S):Q5e(S)?n(sM(2,{from:e,to:S})):(d&&f.enterCallbacks[E]===d&&typeof S=="function"&&d.push(S),s())},b=t.call(f&&f.instances[E],e,o,u);let i=Promise.resolve(b);t.length<3&&(i=i.then(u)),i.catch(S=>n(S))})}function kie(t,e,o,f){const E=[];for(const d of t)for(const s in d.components){let n=d.components[s];if(!(e!=="beforeRouteEnter"&&!d.instances[s]))if(xTe(n)){const b=(n.__vccOpts||n)[e];b&&E.push(n4(b,o,f,d,s))}else{let u=n();E.push(()=>u.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${d.path}"`));const i=T5e(b)?b.default:b;d.components[s]=i;const w=(i.__vccOpts||i)[e];return w&&n4(w,o,f,d,s)()}))}}return E}function xTe(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function $he(t){const e=Kl(gce),o=Kl(vce),f=nr(()=>e.resolve(Va(t.to))),E=nr(()=>{const{matched:u}=f.value,{length:b}=u,i=u[b-1],S=o.matched;if(!i||!S.length)return-1;const w=S.findIndex(aM.bind(null,i));if(w>-1)return w;const y=Vhe(u[b-2]);return b>1&&Vhe(i)===y&&S[S.length-1].path!==y?S.findIndex(aM.bind(null,u[b-2])):w}),d=nr(()=>E.value>-1&&STe(o.params,f.value.params)),s=nr(()=>E.value>-1&&E.value===o.matched.length-1&&$ve(o.params,f.value.params));function n(u={}){return OTe(u)?e[Va(t.replace)?"replace":"push"](Va(t.to)).catch(nI):Promise.resolve()}return{route:f,href:nr(()=>f.value.href),isActive:d,isExactActive:s,navigate:n}}const _Te=em({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$he,setup(t,{slots:e}){const o=Am($he(t)),{options:f}=Kl(gce),E=nr(()=>({[Uhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[Uhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:U1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:E.value},d)}}}),wTe=_Te;function OTe(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function STe(t,e){for(const o in e){const f=e[o],E=t[o];if(typeof f=="string"){if(f!==E)return!1}else if(!Sx(E)||E.length!==f.length||f.some((d,s)=>d!==E[s]))return!1}return!0}function Vhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Uhe=(t,e,o)=>t??e??o,kTe=em({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=Kl(Xae),E=nr(()=>t.route||f.value),d=Kl(Fhe,0),s=nr(()=>{let b=Va(d);const{matched:i}=E.value;let S;for(;(S=i[b])&&!S.components;)b++;return b}),n=nr(()=>E.value.matched[s.value]);md(Fhe,nr(()=>s.value+1)),md(bTe,n),md(Xae,E);const u=qo();return ia(()=>[u.value,n.value,t.name],([b,i,S],[w,y,m])=>{i&&(i.instances[S]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!aM(i,y)||!w)&&(i.enterCallbacks[S]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=E.value,i=t.name,S=n.value,w=S&&S.components[i];if(!w)return jhe(o.default,{Component:w,route:b});const y=S.props[i],m=y?y===!0?b.params:typeof y=="function"?y(b):y:null,c=U1(w,If({},m,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(S.instances[i]=null)},ref:u}));return jhe(o.default,{Component:c,route:b})||c}}});function jhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const TTe=kTe;function CTe(t){const e=eTe(t.routes,t),o=t.parseQuery||vTe,f=t.stringifyQuery||Nhe,E=t.history,d=ML(),s=ML(),n=ML(),u=Gi(GS);let b=GS;I8&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Oie.bind(null,q=>""+q),S=Oie.bind(null,gTe),w=Oie.bind(null,LH);function y(q,Y){let ee,me;return Uve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function m(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function c(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=If({},Y||u.value),typeof q=="string"){const ce=Sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ye=E.createHref(ce.fullPath);return If(ce,de,{params:w(de.params),hash:LH(ce.hash),redirectedFrom:void 0,href:ye})}let ee;if("path"in q)ee=If({},q,{path:Sie(o,q.path,Y.path).path});else{const ce=If({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=If({},q,{params:S(ce)}),Y.params=S(Y.params)}const me=e.resolve(ee,Y),pe=q.hash||"";me.params=i(w(me.params));const se=M5e(f,If({},q,{hash:hTe(pe),path:me.path})),ae=E.createHref(se);return If({fullPath:se,hash:pe,query:f===Nhe?yTe(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function p(q){return typeof q=="string"?Sie(o,q,u.value.path):If({},q)}function v(q,Y){if(b!==q)return sM(8,{from:Y,to:q})}function _(q){return x(q)}function O(q){return _(If(p(q),{replace:!0}))}function C(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=p(me):{path:me},me.params={}),If({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=u.value,pe=q.state,se=q.force,ae=q.replace===!0,ce=C(ee);if(ce)return x(If(p(ce),{state:typeof ce=="object"?If({},pe,ce.state):pe,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ye;return!se&&E5e(f,me,ee)&&(ye=sM(16,{to:de,from:me}),U(me,me,!0,!1)),(ye?Promise.resolve(ye):T(de,me)).catch(ve=>OO(ve)?OO(ve,2)?ve:j(ve):$(ve,de,me)).then(ve=>{if(ve){if(OO(ve,2))return x(If({replace:ae},p(ve.to),{state:typeof ve.to=="object"?If({},pe,ve.to.state):pe,force:se}),Y||de)}else ve=A(de,me,!0,ae,pe);return P(de,me,ve),ve})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=Z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,pe,se]=ATe(q,Y);ee=kie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(n4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),re(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).then(()=>{ee=kie(pe,"beforeRouteUpdate",q,Y);for(const ce of pe)ce.updateGuards.forEach(de=>{ee.push(n4(de,q,Y))});return ee.push(ae),re(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(Sx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(n4(de,q,Y));else ee.push(n4(ce.beforeEnter,q,Y));return ee.push(ae),re(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=kie(se,"beforeRouteEnter",q,Y),ee.push(ae),re(ee))).then(()=>{ee=[];for(const ce of s.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).catch(ce=>OO(ce,8)?ce:Promise.reject(ce))}function P(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function A(q,Y,ee,me,pe){const se=v(q,Y);if(se)return se;const ae=Y===GS,ce=I8?history.state:{};ee&&(me||ae?E.replace(q.fullPath,If({scroll:ae&&ce&&ce.scroll},pe)):E.push(q.fullPath,pe)),u.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=E.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),pe=C(me);if(pe){x(If(pe,{replace:!0}),me).catch(nI);return}b=me;const se=u.value;I8&&N5e(Ehe(se.fullPath,ee.delta),HZ()),T(me,se).catch(ae=>OO(ae,12)?ae:OO(ae,2)?(x(ae.to,me).then(ce=>{OO(ce,20)&&!ee.delta&&ee.type===OI.pop&&E.go(-1,!1)}).catch(nI),Promise.reject()):(ee.delta&&E.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||A(me,se,!1),ae&&(ee.delta&&!OO(ae,8)?E.go(-ee.delta,!1):ee.type===OI.pop&&OO(ae,20)&&E.go(-1,!1)),P(me,se,ae)}).catch(nI)}))}let k=ML(),I=ML(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(pe=>pe(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&u.value!==GS?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:pe}=t;if(!I8||!pe)return Promise.resolve();const se=!ee&&F5e(Ehe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return Vc().then(()=>pe(q,Y,se)).then(ae=>ae&&z5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>E.go(q);let te;const Z=new Set,K={currentRoute:u,listening:!0,addRoute:y,removeRoute:m,hasRoute:c,getRoutes:a,resolve:h,options:t,push:_,replace:O,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:s.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",wTe),q.component("RouterView",TTe),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>Va(u)}),I8&&!te&&u.value===GS&&(te=!0,_(E.location).catch(pe=>{}));const ee={};for(const pe in GS)Object.defineProperty(ee,pe,{get:()=>u.value[pe],enumerable:!0});q.provide(gce,Y),q.provide(vce,K1e(ee)),q.provide(Xae,u);const me=q.unmount;Z.add(q),q.unmount=function(){Z.delete(q),Z.size<1&&(b=GS,L&&L(),L=null,u.value=GS,te=!1,z=!1),me()}}};function re(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function ATe(t,e){const o=[],f=[],E=[],d=Math.max(e.matched.length,t.matched.length);for(let s=0;saM(b,n))?f.push(n):o.push(n));const u=t.matched[s];u&&(e.matched.find(b=>aM(b,u))||E.push(u))}return[o,f,E]}function JT(){return Kl(vce)}function MTe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,s,n){var u=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var S=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");u.addStyleRule(S,b[i])}},86712:function(d,s,n){d.exports=n(84224)},37240:function(d,s,n){d.exports=n(51132)},29744:function(d,s,n){d.exports=n(94456)},29352:function(d,s,n){d.exports=n(67244)},96144:function(d,s,n){d.exports=n(97776)},53219:function(d,s,n){d.exports=n(61712)},4624:function(d,s,n){d.exports=n(95856)},54543:function(d,s,n){d.exports=n(54272)},45e3:function(d,s,n){d.exports=n(85404)},62300:function(d,s,n){d.exports=n(26048)},6920:function(d,s,n){d.exports=n(66240)},10264:function(d,s,n){d.exports=n(40448)},32016:function(d,s,n){d.exports=n(64884)},27528:function(d,s,n){d.exports=n(15088)},75556:function(d,s,n){d.exports=n(76744)},39204:function(d,s,n){d.exports=n(94704)},73996:function(d,s,n){d.exports=n(62396)},16489:function(d,s,n){d.exports=n(32028)},5e3:function(d,s,n){d.exports=n(81932)},77280:function(d,s,n){d.exports=n(45536)},33992:function(d,s,n){d.exports=n(42600)},17600:function(d,s,n){d.exports=n(21536)},49116:function(d,s,n){d.exports=n(65664)},46808:function(d,s,n){d.exports=n(29044)},36168:function(d,s,n){d.exports=n(48928)},13792:function(d,s,n){var u=n(32016);u.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=u},3920:function(d,s,n){d.exports=n(43480)},25120:function(d,s,n){d.exports=n(6296)},4340:function(d,s,n){d.exports=n(7404)},86152:function(d,s,n){d.exports=n(65456)},56816:function(d,s,n){d.exports=n(22020)},89296:function(d,s,n){d.exports=n(29928)},20260:function(d,s,n){d.exports=n(75792)},32140:function(d,s,n){d.exports=n(156)},84764:function(d,s,n){d.exports=n(45499)},48824:function(d,s,n){d.exports=n(3296)},69967:function(d,s,n){d.exports=n(4184)},8363:function(d,s,n){d.exports=n(36952)},86636:function(d,s,n){d.exports=n(38983)},70192:function(d,s,n){d.exports=n(11572)},81604:function(d,s,n){d.exports=n(76924)},63796:function(d,s,n){d.exports=n(62944)},89336:function(d,s,n){d.exports=n(95443)},67484:function(d,s,n){d.exports=n(34864)},97312:function(d,s,n){d.exports=n(76272)},42192:function(d,s,n){d.exports=n(97924)},29800:function(d,s,n){d.exports=n(15436)},63560:function(d,s,n){d.exports=n(5621)},89904:function(d,s,n){d.exports=n(91304)},50248:function(d,s,n){d.exports=n(41724)},65832:function(d,s,n){d.exports=n(31991)},79440:function(d,s,n){d.exports=n(22869)},13752:function(d,s,n){d.exports=n(67776)},83096:function(d,s,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,s,n){var u=n(72196),b=n(25376),i=n(33816),S=n(31780).templatedArray;n(36208),d.exports=S("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,s,n){var u=n(3400),b=n(54460),i=n(23816).draw;function S(y){var m=y._fullLayout;u.filterVisible(m.annotations).forEach(function(a){var c=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),p=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},p==="range"&&w(a,c),v==="range"&&w(a,h)})}function w(y,m){var a,c=m._id,h=c.charAt(0),p=y[h],v=y["a"+h],_=y[h+"ref"],O=y["a"+h+"ref"],C=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,P=M-R,A=3*y.startarrowsize*y.arrowwidth||0,L=A+R,D=A-R;if(O===_){var k=b.findExtremes(m,[m.r2c(p)],{ppadplus:T,ppadminus:P}),I=b.findExtremes(m,[m.r2c(v)],{ppadplus:Math.max(C,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(m,[m.r2c(p)],{ppadplus:Math.max(C,T,L),ppadminus:Math.max(x,P,D)});y._extremes[c]=a}d.exports=function(y){var m=y._fullLayout;if(u.filterVisible(m.annotations).length&&y._fullData.length)return u.syncOrAsync([i,S],y)}},42300:function(d,s,n){var u=n(3400),b=n(24040),i=n(31780).arrayEditor;function S(y,m){var a,c,h,p,v,_,O,C=y._fullLayout.annotations,x=[],R=[],M=[],T=(m||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,m){var a,c,h=S(y,m),p=h.on,v=h.off.concat(h.explicitOff),_={},O=y._fullLayout.annotations;if(p.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Zt]}for(var Je=!1,Me=["x","y"],Fe=0;Fe1)&&(Ft===St?((Sn=zt.r2fraction(T["a"+pt]))<0||Sn>1)&&(Je=!0):Je=!0),je=zt._offset+zt.r2p(T[pt]),Ge=.5}else{var vt=Pn==="domain";pt==="x"?(ot=T[pt],je=vt?zt._offset+zt._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?zt._offset+zt._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){Cn.head=je;var xt=T["a"+pt];if(ht=ln*Ye(.5,T.xanchor)-tn*Ye(.5,T.yanchor),Ft===St){var st=y.getRefType(Ft);st==="domain"?(pt==="y"&&(xt=1-xt),Cn.tail=zt._offset+zt._length*xt):st==="paper"?pt==="y"?(xt=1-xt,Cn.tail=$.t+$.h*xt):Cn.tail=$.l+$.w*xt:Cn.tail=zt._offset+zt.r2p(xt),tt=ht}else Cn.tail=je+xt,tt=ht+xt;Cn.text=Cn.tail+ht;var bt=z[pt==="x"?"width":"height"];if(St==="paper"&&(Cn.head=S.constrain(Cn.head,1,bt-1)),Ft==="pixel"){var Vt=-Math.max(Cn.tail-3,Cn.text),Dt=Math.min(Cn.tail+3,Cn.text)-bt;Vt>0?(Cn.tail+=Vt,Cn.text+=Vt):Dt>0&&(Cn.tail-=Dt,Cn.text-=Dt)}Cn.tail+=cn,Cn.head+=cn}else tt=ht=Et*Ye(Ge,Ot),Cn.text=je+ht;Cn.text+=cn,ht+=cn,tt+=cn,T["_"+pt+"padplus"]=Et/2+tt,T["_"+pt+"padminus"]=Et/2-tt,T["_"+pt+"size"]=Et,T["_"+pt+"shift"]=ht}if(Je)pe.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Re-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)Qe.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ye?Z:null,M);else{var Bt=ce+at-$e.top,_t=ce+it-$e.left;Te.call(h.positionText,_t,Bt).call(a.setClipUrl,ye?Z:null,M)}ve.select("rect").call(a.setRect,ce,ce,Re,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),pe.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+re+","+K.x.text+","+K.y.text+")"});var qt,en=function(Jt,Zt){q.selectAll(".annotation-arrow-g").remove();var Nt=K.x.head,sn=K.y.head,rn=K.x.tail+Jt,_n=K.y.tail+Zt,wn=K.x.text+Jt,An=K.y.text+Zt,Kn=S.rotationXYMatrix(re,wn,An),fr=S.apply2DTransform(Kn),Un=S.apply2DTransform2(Kn),Zn=+de.attr("width"),tr=+de.attr("height"),Br=wn-.5*Zn,$r=Br+Zn,vr=An-.5*tr,qn=vr+tr,gr=[[Br,vr,Br,qn],[Br,qn,$r,qn],[$r,qn,$r,vr],[$r,vr,Br,vr]].map(Un);if(!gr.reduce(function($o,Mo){return $o^!!S.segmentsIntersect(Nt,sn,Nt+1e6,sn+1e6,Mo[0],Mo[1],Mo[2],Mo[3])},!1)){gr.forEach(function($o){var Mo=S.segmentsIntersect(rn,_n,Nt,sn,$o[0],$o[1],$o[2],$o[3]);Mo&&(rn=Mo.x,_n=Mo.y)});var sr=T.arrowwidth,lr=T.arrowcolor,zr=T.arrowside,Vr=q.append("g").style({opacity:m.opacity(lr)}).classed("annotation-arrow-g",!0),eo=Vr.append("path").attr("d","M"+rn+","+_n+"L"+Nt+","+sn).style("stroke-width",sr+"px").call(m.stroke,m.rgb(lr));if(O(eo,zr,T),Q.annotationPosition&&eo.node().parentNode&&!A){var Jr=Nt,Yr=sn;if(T.standoff){var to=Math.sqrt(Math.pow(Nt-rn,2)+Math.pow(sn-_n,2));Jr+=T.standoff*(rn-Nt)/to,Yr+=T.standoff*(_n-sn)/to}var co,Fo,_o=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rn-Jr)+","+(_n-Yr),transform:w(Jr,Yr)}).style("stroke-width",sr+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");v.init({element:_o.node(),gd:M,prepFn:function(){var $o=a.getTranslate(pe);co=$o.x,Fo=$o.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function($o,Mo){var pi=fr(co,Fo),Hn=pi[0]+$o,ar=pi[1]+Mo;pe.call(a.setTranslate,Hn,ar),X("x",x(L,$o,"x",$,T)),X("y",x(D,Mo,"y",$,T)),T.axref===T.xref&&X("ax",x(L,$o,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,Mo,"ay",$,T)),Vr.attr("transform",w($o,Mo)),Y.attr({transform:"rotate("+re+","+Hn+","+ar+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var $o=document.querySelector(".js-notes-box-panel");$o&&$o.redraw($o.selectedObj)}})}}};T.showarrow&&en(0,0),ee&&v.init({element:pe.node(),gd:M,prepFn:function(){qt=Y.attr("transform")},moveFn:function(Jt,Zt){var Nt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Jt,"ax",$,T)):X("ax",T.ax+Jt),T.ayref===T.yref?X("ay",x(D,Zt,"ay",$.w,T)):X("ay",T.ay+Zt),en(Jt,Zt);else{if(A)return;var sn,rn;if(L)sn=x(L,Jt,"x",$,T);else{var _n=T._xsize/$.w,wn=T.x+(T._xshift-T.xshift)/$.w-_n/2;sn=v.align(wn+Jt/$.w,_n,0,1,T.xanchor)}if(D)rn=x(D,Zt,"y",$,T);else{var An=T._ysize/$.h,Kn=T.y-(T._yshift+T.yshift)/$.h-An/2;rn=v.align(Kn-Zt/$.h,An,0,1,T.yanchor)}X("x",sn),X("y",rn),L&&D||(Nt=v.getCursor(L?.5:sn,D?.5:rn,T.xanchor,T.yanchor))}Y.attr({transform:w(Jt,Zt)+qt}),p(pe,Nt)},clickFn:function(Jt,Zt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Zt))},doneFn:function(){p(pe),b.call("_guiRelayout",M,te());var Jt=document.querySelector(".js-notes-box-panel");Jt&&Jt.redraw(Jt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var P=0;P=0,A=c.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(C.nodeName==="line"){p={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=p.x-v.x,I=p.y-v.y;if(O=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);p.x-=Q,p.y-=j,a.attr({x1:p.x,y1:p.y})}}else if(C.nodeName==="path"){var U=C.getTotalLength(),X="";if(U1){h=!0;break}}h?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+a+'"]').remove():(c._pdata=b(S.glplot.cameraParams,[w.xaxis.r2l(c.x)*y[0],w.yaxis.r2l(c.y)*y[1],w.zaxis.r2l(c.z)*y[2]]),u(S.graphDiv,c,a,S.id,c._xa,c._ya))}}},56864:function(d,s,n){var u=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,S){var w=u.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,m=Object.keys(i),a=0;a=0)))return c;if(O===3)v[O]>1&&(v[O]=1);else if(v[O]>=1)return c}var C=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+C+", "+v[3]+")":"rgb("+C+")"}S.tinyRGB=function(c){var h=c.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},S.rgb=function(c){return S.tinyRGB(u(c))},S.opacity=function(c){return c?u(c).getAlpha():0},S.addOpacity=function(c,h){var p=u(c).toRgb();return"rgba("+Math.round(p.r)+", "+Math.round(p.g)+", "+Math.round(p.b)+", "+h+")"},S.combine=function(c,h){var p=u(c).toRgb();if(p.a===1)return u(c).toRgbString();var v=u(h||m).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},O={r:_.r*(1-p.a)+p.r*p.a,g:_.g*(1-p.a)+p.g*p.a,b:_.b*(1-p.a)+p.b*p.a};return u(O).toRgbString()},S.contrast=function(c,h,p){var v=u(c);return v.getAlpha()!==1&&(v=u(S.combine(c,m))),(v.isDark()?h?v.lighten(h):m:p?v.darken(p):y).toString()},S.stroke=function(c,h){var p=u(h);c.style({stroke:S.tinyRGB(p),"stroke-opacity":p.getAlpha()})},S.fill=function(c,h){var p=u(h);c.style({fill:S.tinyRGB(p),"fill-opacity":p.getAlpha()})},S.clean=function(c){if(c&&typeof c=="object"){var h,p,v,_,O=Object.keys(c);for(h=0;h0?Dt>=qt:Dt<=qt));it++)Dt>Jt&&Dt0?Dt>=qt:Dt<=qt));it++)Dt>Vt[0]&&Dt1){var tn=Math.pow(10,Math.floor(Math.log(ln)/Math.LN10));zt*=tn*m.roundUp(ln/tn,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(St.tick0=0)}St.dtick=zt}St.domain=te?[ht+ce/Te.h,ht+Je-ce/Te.h]:[ht+ae/Te.w,ht+Je-ae/Te.w],St.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Et,Ot=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),cn=St.ticklabelposition,Cn=St.title.font.size,Pn=j.select("."+D.cbaxis),Sn=0,vt=0;function xt(st,bt){var Vt={propContainer:St,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:we._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Dt=st.charAt(0)==="h"?st.substr(1):"h"+st;j.selectAll("."+Dt+",."+Dt+"-math-group").remove(),_.draw(X,st,c(Vt,bt||{}))}return m.syncOrAsync([i.previousPromises,function(){var st,bt;(te&&Ft||!te&&!Ft)&&(De==="top"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht-Je)+3+.75*Cn),De==="bottom"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht)-3-.25*Cn),De==="right"&&(bt=ce+Te.t+Fe*ye+3+.75*Cn,st=ae+Te.l+Me*ht),xt(St._id+"title",{attributes:{x:st,y:bt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Ft||te&&Ft){var st,bt=j.select("."+D.cbtitle),Vt=bt.select("text"),Dt=[-Y/2,Y/2],it=bt.select(".h"+St._id+"title-math-group").node(),at=15.6;if(Vt.node()&&(at=parseInt(Vt.node().style.fontSize,10)*P),it?(st=p.bBox(it),vt=st.width,(Sn=st.height)>at&&(Dt[1]-=(Sn-at)/2)):Vt.node()&&!Vt.classed(D.jsPlaceholder)&&(st=p.bBox(Vt.node()),vt=st.width,Sn=st.height),te){if(Sn){if(Sn+=5,De==="top")St.domain[1]-=Sn/Te.h,Dt[1]*=-1;else{St.domain[0]+=Sn/Te.h;var Bt=O.lineCount(Vt);Dt[1]+=(1-Bt)*at}bt.attr("transform",a(Dt[0],Dt[1])),St.setScale()}}else vt&&(De==="right"&&(St.domain[0]+=(vt+Cn/2)/Te.w),bt.attr("transform",a(Dt[0],Dt[1])),St.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-St.domain[1]))):a(Math.round(Te.w*St.domain[0]),0)),Pn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var _t=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Re);_t.enter().append("rect").classed(D.cbfill,!0).attr("style",""),_t.exit().remove();var qt=Qe.map(St.c2p).map(Math.round).sort(function(sn,rn){return sn-rn});_t.each(function(sn,rn){var _n=[rn===0?Qe[0]:(Re[rn]+Re[rn-1])/2,rn===Re.length-1?Qe[1]:(Re[rn]+Re[rn+1])/2].map(St.c2p).map(Math.round);te&&(_n[1]=m.constrain(_n[1]+(_n[1]>_n[0])?1:-1,qt[0],qt[1]));var wn=u.select(this).attr(te?"x":"y",je).attr(te?"y":"x",u.min(_n)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(u.max(_n)-u.min(_n),2));if(U._fillgradient)p.gradient(wn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var An=$e(sn).replace("e-","");wn.attr("fill",b(An).toHexString())}});var en=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);en.enter().append("path").classed(D.cbline,!0),en.exit().remove(),en.each(function(sn){var rn=je,_n=Math.round(St.c2p(sn))+Ie.width/2%1;u.select(this).attr("d","M"+(te?rn+","+_n:_n+","+rn)+(te?"h":"v")+Ue).call(p.lineGroupStyle,Ie.width,Ve(sn),Ie.dash)}),Pn.selectAll("g."+St._id+"tick,path").remove();var Jt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Zt=w.calcTicks(St),Nt=w.getTickSigns(St)[2];return w.drawTicks(X,St,{vals:St.ticks==="inside"?w.clipEnds(St,Zt):Zt,layer:Pn,path:w.makeTickPath(St,Jt,Nt),transFn:w.makeTransTickFn(St)}),w.drawLabels(X,St,{vals:Zt,layer:Pn,transFn:w.makeTransTickLabelFn(St),labelFns:w.makeLabelFns(St,Jt)})},function(){if(te&&!Ft||!te&&Ft){var st,bt,Vt=St.position||0,Dt=St._offset+St._length/2;if(De==="right")bt=Dt,st=Te.l+Me*Vt+10+Cn*(St.showticklabels?1:.5);else if(st=Dt,De==="bottom"&&(bt=Te.t+Fe*Vt+10+(cn.indexOf("inside")===-1?St.tickfont.size:0)+(St.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
").length;bt=Te.t+Fe*Vt+10-Ue-P*Cn*it}xt((te?"h":"v")+St._id+"title",{avoid:{selection:u.select(X).selectAll("g."+St._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?we.width:we.height},attributes:{x:st,y:bt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var st,bt=Ue+Y/2;cn.indexOf("inside")===-1&&(st=p.bBox(Pn.node()),bt+=te?st.width:st.height),Et=Ot.select("text");var Vt=0,Dt=te&&De==="top",it=!te&&De==="right",at=0;if(Et.node()&&!Et.classed(D.jsPlaceholder)){var Bt,_t=Ot.select(".h"+St._id+"title-math-group").node();_t&&(te&&Ft||!te&&!Ft)?(Vt=(st=p.bBox(_t)).width,Bt=st.height):(Vt=(st=p.bBox(Ot.node())).right-Te.l-(te?je:pt),Bt=st.bottom-Te.t-(te?pt:je),te||De!=="top"||(bt+=st.height,at=st.height)),it&&(Et.attr("transform",a(Vt/2+Cn/2,0)),Vt*=2),bt=Math.max(bt,te?Vt:Bt)}var qt=2*(te?ae:ce)+bt+ee+Y/2,en=0;!te&&ze.text&&se==="bottom"&&ye<=0&&(qt+=en=qt/2,at+=en),we._hColorbarMoveTitle=en,we._hColorbarMoveCBTitle=at;var Jt=ee+Y,Zt=(te?je:pt)-Jt/2-(te?ae:0),Nt=(te?pt:je)-(te?Ye:ce+at-en);j.select("."+D.cbbg).attr("x",Zt).attr("y",Nt).attr(te?"width":"height",Math.max(qt-en,2)).attr(te?"height":"width",Math.max(Ye+Jt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var sn=it?Math.max(Vt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+sn).attr("y",(te?pt+ce-Ye:je)+(Dt?Sn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Ye-(te?2*ce+Sn:2*ae+sn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var rn=te?tt*qt:0,_n=te?0:(1-ot)*qt-at;if(rn=_e?Te.l-rn:-rn,_n=ve?Te.t-_n:-_n,j.attr("transform",a(rn,_n)),!te&&(ee||b(me).getAlpha()&&!b.equals(we.paper_bgcolor,me))){var wn=Pn.selectAll("text"),An=wn[0].length,Kn=j.select("."+D.cbbg).node(),fr=p.bBox(Kn),Un=p.getTranslate(j);wn.each(function(zr,Vr){var eo=An-1;if(Vr===0||Vr===eo){var Jr,Yr=p.bBox(this),to=p.getTranslate(this);if(Vr===eo){var co=Yr.right+to.x;(Jr=fr.right+Un.x+pt-ee-2+de-co)>0&&(Jr=0)}else if(Vr===0){var Fo=Yr.left+to.x;(Jr=fr.left+Un.x+pt+ee+2-Fo)<0&&(Jr=0)}Jr&&(An<3?this.setAttribute("transform","translate("+Jr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Zn={},tr=A[pe],Br=L[pe],$r=A[se],vr=L[se],qn=qt-Ue;te?(K==="pixels"?(Zn.y=ye,Zn.t=Ye*$r,Zn.b=Ye*vr):(Zn.t=Zn.b=0,Zn.yt=ye+Z*$r,Zn.yb=ye-Z*vr),q==="pixels"?(Zn.x=de,Zn.l=qt*tr,Zn.r=qt*Br):(Zn.l=qn*tr,Zn.r=qn*Br,Zn.xl=de-re*tr,Zn.xr=de+re*Br)):(K==="pixels"?(Zn.x=de,Zn.l=Ye*tr,Zn.r=Ye*Br):(Zn.l=Zn.r=0,Zn.xl=de+Z*tr,Zn.xr=de-Z*Br),q==="pixels"?(Zn.y=1-ye,Zn.t=qt*$r,Zn.b=qt*vr):(Zn.t=qn*$r,Zn.b=qn*vr,Zn.yt=ye-re*$r,Zn.yb=ye+re*vr));var gr=U.y<.5?"b":"t",sr=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var lr={r:we.width-Zt-rn,l:Zt+Zn.r,b:we.height-Nt-_n,t:Nt+Zn.b};_e&&ve?i.autoMargin(X,U._id,Zn):_e?X._fullLayout._reservedMargin[U._id][gr]=lr[gr]:ve||te?X._fullLayout._reservedMargin[U._id][sr]=lr[sr]:X._fullLayout._reservedMargin[U._id][gr]=lr[gr]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,Z,K,re=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),Z=y.align((re?U._uFrac:U._vFrac)+Y/q.w,re?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((re?U._vFrac:1-U._uFrac)-ee/q.h,re?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(Z,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),Z!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=Z,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?S.call("_guiRestyle",X,Y,U._traceIndex):S.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,s,n){var u=n(3400);d.exports=function(b){return u.isPlainObject(b.colorbar)}},55080:function(d,s,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,s,n){var u=n(42996),b=n(53756).counter,i=n(95376),S=n(88304).scales;function w(y){return"`"+y+"`"}i(S),d.exports=function(y,m){y=y||"";var a,c=(m=m||{}).cLetter||"c",h=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:y==="marker.line"),p="showScaleDflt"in m?m.showScaleDflt:c==="z",v=typeof m.colorscaleDflt=="string"?S[m.colorscaleDflt]:null,_=m.editTypeOverride||"",O=y?y+".":"";"colorAttr"in m?(a=m.colorAttr,m.colorAttr):w(O+(a={z:"z",c:"color"}[c]));var C=c+"auto",x=c+"min",R=c+"max",M=c+"mid",T={};T[x]=T[R]=void 0;var P={};P[C]=!1;var A={};return a==="color"&&(A.color={valType:"color",arrayOk:!0,editType:_||"style"},m.anim&&(A.color.anim=!0)),A[C]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(A.showscale={valType:"boolean",dflt:p,editType:"calc"},A.colorbar=u),m.noColorAxis||(A.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),A}},47128:function(d,s,n){var u=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(S,w,y){var m,a=S._fullLayout,c=y.vals,h=y.containerStr,p=h?b.nestedProperty(w,h).get():w,v=i(p),_=v.auto!==!1,O=v.min,C=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,c)},M=function(){return b.aggNums(Math.max,null,c)};O===void 0?O=R():_&&(O=p._colorAx&&u(O)?Math.min(O,R()):R()),C===void 0?C=M():_&&(C=p._colorAx&&u(C)?Math.max(C,M()):M()),_&&x!==void 0&&(C-x>x-O?O=x-(C-x):C-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",m))}},95504:function(d,s,n){var u=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(S,w){function y(_,O){var C=_["_"+O];C!==void 0&&(_[O]=C)}function m(_,O){var C=O.container?u.nestedProperty(_,O.container).get():_;if(C)if(C.coloraxis)C._colorAx=w[C.coloraxis];else{var x=i(C),R=x.auto;(R||x.min===void 0)&&y(C,O.min),(R||x.max===void 0)&&y(C,O.max),x.autocolorscale&&y(C,"colorscale")}}for(var a=0;a=0;R--,M++){var T=O[R];x[M]=[1-T[0],T[1]]}return x}function v(O,C){C=C||{};for(var x=O.domain,R=O.range,M=R.length,T=new Array(M),P=0;P1.3333333333333333-y?w:y}},67416:function(d,s,n){var u=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,S,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:u.constrain(Math.floor(3*i),0,2),S=y==="bottom"?0:y==="middle"?1:y==="top"?2:u.constrain(Math.floor(3*S),0,2),b[S][i]}},72760:function(d,s){s.selectMode=function(n){return n==="lasso"||n==="select"},s.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.openMode=function(n){return n==="drawline"||n==="drawopenpath"},s.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},s.selectingOrDrawing=function(n){return s.freeMode(n)||s.rectMode(n)}},86476:function(d,s,n){var u=n(29128),b=n(52264),i=n(89184),S=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var m=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var p=h.style;return p.position="fixed",p.left=0,p.right=0,p.top=0,p.bottom=0,p.zIndex=999999999,p.background="none",document.body.appendChild(h),h}function c(h){return u(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=m.wrapped,y.unhoverRaw=m.raw,y.init=function(h){var p,v,_,O,C,x,R,M,T=h.gd,P=1,A=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)A&&(P=Math.max(P-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(P,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=c($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,s,n){var u=n(95924),b=n(91200),i=n(52200).getGraphDiv,S=n(92456),w=d.exports={};w.wrapped=function(y,m,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+S.HOVERID),w.raw(y,m,a)},w.raw=function(y,m){var a=y._fullLayout,c=y._hoverdata;m||(m={}),m.target&&!y._dragged&&u.triggerHandler(y,"plotly_beforehover",m)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,m.target&&c&&y.emit("plotly_unhover",{event:m,points:c}))}},98192:function(d,s){s.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},s.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,s,n){var u=n(33428),b=n(3400),i=b.numberFormat,S=n(38248),w=n(49760),y=n(24040),m=n(76308),a=n(8932),c=b.strTranslate,h=n(72736),p=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,O=n(43028),C=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Re=ke&&R.getPatternAttr(ke.shape,0,"");if(Re){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Ye=R.getPatternAttr(ke.size,0,8),Je=R.getPatternAttr(ke.solidity,0,.3),Me=$e.uid;R.pattern(Ve,"point",Oe,Me,Re,Ye,Je,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(m.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(m.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Re){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Re)},R.translatePoint=function(Ve,$e,Oe,ke){var Re=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(S(Re)&&S(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Re).attr("y",We):$e.attr("transform",c(Re,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Re=u.select(this);R.translatePoint(ke,Re,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Re,We){$e.attr("display",Oe.isPtWithinRange(Ve,Re)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Re){var We=Re[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Ye=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Ye).each(function(Je){R.hideOutsideRangePoint(Je,u.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&S($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Re){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Re||We.dash||"";m.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Re){var We=(((Re||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";u.select(this).call(m.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=u.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=u.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var P=R.symbolNames.length;function A(Ve,$e,Oe,ke){var Re=Ve%100;return R.symbolFuncs[Re]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(S(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=P||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Re,We){for(var Ue=Re.length,Ze=I[ke],Ye=new Array(Ue),Je=0;Je=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Ye;Ye=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Ye,ke.selectedSizeFn&&(Ye=Ve.mrc=ke.selectedSizeFn(Ve));var Je=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=Je%200>=100;var Me=Qe(Ve,Oe),Fe=ce(Ve,Oe);$e.attr("d",A(Je,Ye,Me,Fe))}var je,tt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,tt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,tt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?m.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=m.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(m.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,St=Ve.mgt;St?Ge=!0:St=pt&&pt.type,b.isArrayOrTypedArray(St)&&(St=St[0],I[St]||(St=0));var Ft=Ue.pattern,zt=Ft&&R.getPatternAttr(Ft.shape,Ve.i,"");if(St&&St!=="none"){var Yt=Ve.mgc;Yt?Ge=!0:Yt=pt.color;var ln=Oe.uid;Ge&&(ln+="-"+Ve.i),R.gradient($e,Re,ln,St,[[0,Yt],[1,je]],"fill")}else if(zt){var tn=!1,Et=Ft.fgcolor;!Et&&We&&We.color&&(Et=We.color,tn=!0);var Ot=R.getPatternAttr(Et,Ve.i,We&&We.color||null),cn=R.getPatternAttr(Ft.bgcolor,Ve.i,null),Cn=Ft.fgopacity,Pn=R.getPatternAttr(Ft.size,Ve.i,8),Sn=R.getPatternAttr(Ft.solidity,Ve.i,.3);tn=tn||Ve.mcc||b.isArrayOrTypedArray(Ft.shape)||b.isArrayOrTypedArray(Ft.bgcolor)||b.isArrayOrTypedArray(Ft.fgcolor)||b.isArrayOrTypedArray(Ft.size)||b.isArrayOrTypedArray(Ft.solidity);var vt=Oe.uid;tn&&(vt+="-"+Ve.i),R.pattern($e,"point",Re,vt,zt,Pn,Sn,Ve.mcc,Ft.fillmode,cn,Ot,Cn)}else b.isArrayOrTypedArray(je)?m.fill($e,je[Ve.i]):m.fill($e,je);ot&&m.stroke($e,tt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=O.isBubble(Ve)?C(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Re.opacity,Ye=We.opacity,Je=Ue.opacity,Me=Ye!==void 0,Fe=Je!==void 0;(b.isArrayOrTypedArray(Ze)||Me||Fe)&&($e.selectedOpacityFn=function(zt){var Yt=zt.mo===void 0?Re.opacity:zt.mo;return zt.selected?Me?Ye:Yt:Fe?Je:_*Yt});var je=Re.color,tt=We.color,ot=Ue.color;(tt||ot)&&($e.selectedColorFn=function(zt){var Yt=zt.mcc||je;return zt.selected?tt||Yt:ot||Yt});var Ge=Re.size,ht=We.size,pt=Ue.size,St=ht!==void 0,Ft=pt!==void 0;return y.traceIs(Ve,"symbols")&&(St||Ft)&&($e.selectedSizeFn=function(zt){var Yt=zt.mrc||Ge/2;return zt.selected?St?ht/2:Yt:Ft?pt/2:Yt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Re.color,Ye=We.color,Je=Ue.color;return $e.selectedTextColorFn=function(Me){var Fe=Me.tc||Ze;return Me.selected?Ye||Fe:Je||(Ye?Fe:m.addOpacity(Fe,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Re=[];Oe.selectedOpacityFn&&Re.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Re.push(function(We,Ue){m.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Re.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Ye=Oe.selectedSizeFn(Ue);We.attr("d",A(R.symbolNumber(Ze),Ye,Qe(Ue,$e),ce(Ue,$e))),Ue.mrc2=Ye}),Re.length&&Ve.each(function(We){for(var Ue=u.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?Z(Ve[1]):te(Ve[0])}function te(Ve){var $e=u.round(Ve,2);return z=$e,$e}function Z(Ve){var $e=u.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Re=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Ye=Math.pow(Re*Re+We*We,.25),Je=Math.pow(Ue*Ue+Ze*Ze,.25),Me=(Je*Je*Re-Ye*Ye*Ue)*ke,Fe=(Je*Je*We-Ye*Ye*Ze)*ke,je=3*Je*(Ye+Je),tt=3*Ye*(Ye+Je);return[[te($e[0]+(je&&Me/je)),Z($e[1]+(je&&Fe/je))],[te($e[0]-(tt&&Me/tt)),Z($e[1]-(tt&&Fe/tt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Re=R.makeSelectedTextStyleFns($e);ke=Re.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Ye=u.select(this),Je=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(Je||Je===0){if(We){var Me=$e._module.formatLabels,Fe=Me?Me(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var tt=$e._meta||{};Je=b.texttemplateString(Je,Fe,Ue._d3locale,je,Ze,tt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Ye.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(Je).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Ye.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Re=u.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);m.fill(Re,We);var Ye=y.traceIs($e,"bar-like");j(Re,Ue,Ze,ke.mrc2||ke.mrc,Ye)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Re=[];for(Oe=1;Oe=Ye||zt>=Me&&zt<=Ye)&&(Yt<=Fe&&Yt>=Je||Yt>=Fe&&Yt<=Je)&&(Ve=[zt,Yt])}return Ve}R.steps=function(Ve){var $e=re[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+Z(Oe[0][1]),Re=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=tt),ee++,b.extendFlat({},tt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",pe($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=c($e,Oe)).trim(),Ve[Re]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Re]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Re=(this.getAttribute("transform")||"").replace(se,"");Re=(Re+=ke).trim(),this.setAttribute("transform",Re)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Re=u.select(this),We=Re.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Ye=(Re.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[c(Ue,Ze),"scale("+$e+","+Oe+")",c(-Ue,-Ze)],Ye&&ke.push(Ye),Re.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ye,ve,_e,we,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function Qe(Ve,$e){var Oe,ke,Re=Ve.ma;Re===void 0&&((Re=$e.marker.angle)&&!b.isArrayOrTypedArray(Re)||(Re=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Ye=$e._yA;if(!Ze||!Ye)return 90;Oe=Ze.c2p(Ve.x),ke=Ye.c2p(Ve.y)}if($e._geo){var Je,Me=Ve.lonlat[0],Fe=Ve.lonlat[1],je=$e._geo.project([Me,Fe+1e-5]),tt=$e._geo.project([Me+1e-5,Fe]),ot=Pe(tt[1]-ke,tt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")Je=Re/180*Math.PI;else if(We==="previous"){var ht=Me/180*Math.PI,pt=Fe/180*Math.PI,St=de/180*Math.PI,Ft=ye/180*Math.PI,zt=St-ht,Yt=Ie(Ft)*ze(zt),ln=ze(Ft)*Ie(pt)-Ie(Ft)*ze(pt)*Ie(zt);Je=-Pe(Yt,ln)-Math.PI,de=Me,ye=Fe}var tn=De(ot,[Ie(Je),0]),Et=De(Ge,[ze(Je),0]);Re=Pe(tn[1]+Et[1],tn[0]+Et[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===we+1||(Re=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===we+1&&S(Oe)&&S(ke)){var Ot=Oe-ve,cn=ke-_e,Cn=$e.line&&$e.line.shape||"",Pn=Cn.slice(Cn.length-1);Pn==="h"&&(cn=0),Pn==="v"&&(Ot=0),Re+=Pe(cn,Ot)/Math.PI*180+90}else Re=null}return ve=Oe,_e=ke,we=Ve.i,Te=$e.uid,Re}R.getMarkerAngle=Qe},71984:function(d,s,n){var u,b,i,S,w=n(21984),y=n(33428).round,m="M0,0Z",a=Math.sqrt(2),c=Math.sqrt(3),h=Math.PI,p=Math.cos,v=Math.sin;function _(C){return C===null}function O(C,x,R){if(!(C&&C%360!=0||x))return R;if(i===C&&S===x&&u===R)return b;function M(X,te){var Z=p(X),K=v(X),re=te[0],q=te[1]+(x||0);return[re*Z-q*K,re*K+q*Z]}i=C,S=x,u=R;for(var T=C/180*h,P=0,A=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var O,C=_[0].trace,x=C.error_x||{},R=C.error_y||{};C.ids&&(O=function(A){return A.id});var M=S.hasMarkers(C)&&C.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=u.select(this).selectAll("g.errorbar").data(_,O);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var P=T.enter().append("g").classed("errorbar",!0);p&&P.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,m.layerClipId,w),T.each(function(A){var L=u.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(A,c,h);if(!M||A.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?p&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?p&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,s,n){var u=n(33428),b=n(76308);d.exports=function(i){i.each(function(S){var w=S[0].trace,y=w.error_y||{},m=w.error_x||{},a=u.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),m.copy_ystyle&&(m=y),a.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(b.stroke,m.color)})}},55756:function(d,s,n){var u=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:u({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,s,n){var u=n(3400),b=n(24040);function i(S,w,y,m){m=m||u.identity,Array.isArray(S)&&(w[0][y]=m(S))}d.exports=function(S){var w=S.calcdata,y=S._fullLayout;function m(v){return function(_){return u.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&c.indexRe[0]._length||xt<0||xt>We[0]._length)return v.unhoverRaw(_e,we)}else vt="xpx"in we?we.xpx:Re[0]._length/2,xt="ypx"in we?we.ypx:We[0]._length/2;if(we.pointerX=vt+Re[0]._offset,we.pointerY=xt+We[0]._offset,tt="xval"in we?C.flat(ze,we.xval):C.p2c(Re,vt),ot="yval"in we?C.flat(ze,we.yval):C.p2c(We,xt),!b(tt[0])||!b(ot[0]))return S.warn("Fx.hover failed",we,_e),v.unhoverRaw(_e,we)}var Vt=1/0;function Dt(Hn,ar){for(ht=0;htOt&&(cn.splice(0,Ot),Vt=cn[0].distance),$e&&je!==0&&cn.length===0){Et.distance=je,Et.index=!1;var oo=St._module.hoverPoints(Et,ln,tn,"closest",{hoverLayer:De._hoverlayer});if(oo&&(oo=oo.filter(function(Yn){return Yn.spikeDistance<=je})),oo&&oo.length){var io,Do=oo.filter(function(Yn){return Yn.xa.showspikes&&Yn.xa.spikesnap!=="hovered data"});if(Do.length){var jn=Do[0];b(jn.x0)&&b(jn.y0)&&(io=at(jn),(!Pn.vLinePoint||Pn.vLinePoint.spikeDistance>io.spikeDistance)&&(Pn.vLinePoint=io))}var Rr=oo.filter(function(Yn){return Yn.ya.showspikes&&Yn.ya.spikesnap!=="hovered data"});if(Rr.length){var On=Rr[0];b(On.x0)&&b(On.y0)&&(io=at(On),(!Pn.hLinePoint||Pn.hLinePoint.spikeDistance>io.spikeDistance)&&(Pn.hLinePoint=io))}}}}}function it(Hn,ar,Dr){for(var Sr,Zr=null,go=1/0,oo=0;oo0&&Math.abs(Hn.distance)wn-1;An--)Zn(cn[An]);cn=Kn,en()}var tr=_e._hoverdata,Br=[],$r=me(_e),vr=pe(_e);for(Ge=0;Ge1||cn.length>1)||Me==="closest"&&Sn&&cn.length>1,_o=p.combine(De.plot_bgcolor||p.background,De.paper_bgcolor),$o=U(cn,{gd:_e,hovermode:Me,rotateLabels:Fo,bgColor:_o,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),Mo=$o.hoverLabels;if(C.isUnifiedHover(Me)||(function(Hn,ar,Dr,Sr){var Zr,go,oo,io,Do,jn,Rr,On=ar?"xa":"ya",Yn=ar?"ya":"xa",ir=0,kr=1,Er=Hn.size(),Gt=new Array(Er),on=0,an=Sr.minX,Tn=Sr.maxX,zn=Sr.minY,Gn=Sr.maxY,Lr=function(Fn){return Fn*Dr._invScaleX},Ur=function(Fn){return Fn*Dr._invScaleY};function qr(Fn){var dr=Fn[0],xr=Fn[Fn.length-1];if(go=dr.pmin-dr.pos-dr.dp+dr.size,oo=xr.pos+xr.dp+xr.size-dr.pmax,go>.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp+=go;Zr=!1}if(!(oo<.01)){if(go<-.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp-=oo;Zr=!1}if(Zr){var Oo=0;for(io=0;iodr.pmax&&Oo++;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos>dr.pmax-1&&(jn.del=!0,Oo--);for(io=0;io=0;Do--)Fn[Do].dp-=oo;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos+jn.dp+jn.size>dr.pmax&&(jn.del=!0,Oo--)}}}for(Hn.each(function(Fn){var dr=Fn[On],xr=Fn[Yn],Oo=dr._id.charAt(0)==="x",mi=dr.range;on===0&&mi&&mi[0]>mi[1]!==Oo&&(kr=-1);var Di=0,To=Oo?Dr.width:Dr.height;if(Dr.hovermode==="x"||Dr.hovermode==="y"){var Ia,Ds,fs=te(Fn,ar),zi=Fn.anchor,yl=zi==="end"?-1:1;if(zi==="middle")Ds=(Ia=Fn.crossPos+(Oo?Ur(fs.y-Fn.by/2):Lr(Fn.bx/2+Fn.tx2width/2)))+(Oo?Ur(Fn.by):Lr(Fn.bx));else if(Oo)Ds=(Ia=Fn.crossPos+Ur(k+fs.y)-Ur(Fn.by/2-k))+Ur(Fn.by);else{var Bs=Lr(yl*k+fs.x),yf=Bs+Lr(yl*Fn.bx);Ia=Fn.crossPos+Math.min(Bs,yf),Ds=Fn.crossPos+Math.max(Bs,yf)}Oo?zn!==void 0&&Gn!==void 0&&Math.min(Ds,Gn)-Math.max(Ia,zn)>1&&(xr.side==="left"?(Di=xr._mainLinePosition,To=Dr.width):To=xr._mainLinePosition):an!==void 0&&Tn!==void 0&&Math.min(Ds,Tn)-Math.max(Ia,an)>1&&(xr.side==="top"?(Di=xr._mainLinePosition,To=Dr.height):To=xr._mainLinePosition)}Gt[on++]=[{datum:Fn,traceIndex:Fn.trace.index,dp:0,pos:Fn.pos,posref:Fn.posref,size:Fn.by*(Oo?A:1)/2,pmin:Di,pmax:To}]}),Gt.sort(function(Fn,dr){return Fn[0].posref-dr[0].posref||kr*(dr[0].traceIndex-Fn[0].traceIndex)});!Zr&&ir<=Er;){for(ir++,Zr=!0,io=0;io.01&&Nr.pmin===Eo.pmin&&Nr.pmax===Eo.pmax){for(Do=wo.length-1;Do>=0;Do--)wo[Do].dp+=go;for(Cr.push.apply(Cr,wo),Gt.splice(io+1,1),Rr=0,Do=Cr.length-1;Do>=0;Do--)Rr+=Cr[Do].dp;for(oo=Rr/Cr.length,Do=Cr.length-1;Do>=0;Do--)Cr[Do].dp-=oo;Zr=!1}else io++}Gt.forEach(qr)}for(io=Gt.length-1;io>=0;io--){var zo=Gt[io];for(Do=zo.length-1;Do>=0;Do--){var Qt=zo[Do],Mn=Qt.datum;Mn.offset=Qt.dp,Mn.del=Qt.del}}}(Mo,Fo,De,$o.commonLabelBoundingBox),Z(Mo,Fo,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var pi=O.getComponentMethod("annotations","hasClickToShow")(_e,Br);c(u.select(Ie),pi?"pointer":"")}Ie&&!Pe&&function(Hn,ar,Dr){if(!Dr||Dr.length!==Hn._hoverdata.length)return!0;for(var Sr=Dr.length-1;Sr>=0;Sr--){var Zr=Dr[Sr],go=Hn._hoverdata[Sr];if(Zr.curveNumber!==go.curveNumber||String(Zr.pointNumber)!==String(go.pointNumber)||String(Zr.pointNumbers)!==String(go.pointNumbers))return!0}return!1}(_e,0,tr)&&(tr&&_e.emit("plotly_unhover",{event:we,points:tr}),_e.emit("plotly_hover",{event:we,points:_e._hoverdata,xaxes:Re,yaxes:We,xvals:tt,yvals:ot}))})(ae,ce,de,ye,ve)})},s.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ye=ce.gd,ve=me(ye),_e=pe(ye),we=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,Qe=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Re=Math.min(Qe,Ve),We=Math.max(Qe,Ve),Ue=Ie.trace;if(O.traceIs(Ue,"gl3d")){var Ze=ye._fullLayout[Ue.scene]._scene.container,Ye=Ze.offsetLeft,Je=Ze.offsetTop;Oe+=Ye,ke+=Ye,Re+=Je,We+=Je}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Re+ve,y1:We+ve},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||p.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ye,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||p.background,container:u.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return we.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ye=de._fullLayout,ve=ce.hovermode,_e=ce.rotateLabels,we=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,Qe=ae[0],Ve=Qe.xa,$e=Qe.ya,Oe=ve.charAt(0),ke=Oe+"Label",Re=Qe[ke];if(Re===void 0&&Ve.type==="multicategory")for(var We=0;Weye.width-vr?(Zn=ye.width-vr,_n.attr("d","M"+(vr-k)+",0L"+vr+","+$r+k+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H"+(vr-2*k)+"Z")):_n.attr("d","M0,0L"+k+","+$r+k+"H"+vr+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H-"+k+"Z"),ht.minX=Zn-vr,ht.maxX=Zn+vr,Ve.side==="top"?(ht.minY=tr-(2*I+Br.height),ht.maxY=tr-I):(ht.minY=tr+I,ht.maxY=tr+(2*I+Br.height))}else{var qn,gr,sr;$e.side==="right"?(qn="start",gr=1,sr="",Zn=Ve._offset+Ve._length):(qn="end",gr=-1,sr="-",Zn=Ve._offset),tr=$e._offset+(Qe.y0+Qe.y1)/2,wn.attr("text-anchor",qn),_n.attr("d","M0,0L"+sr+k+","+k+"V"+(I+Br.height/2)+"h"+sr+(2*I+Br.width)+"V-"+(I+Br.height/2)+"H"+sr+k+"V-"+k+"Z"),ht.minY=tr-(I+Br.height/2),ht.maxY=tr+(I+Br.height/2),$e.side==="right"?(ht.minX=Zn+k,ht.maxX=Zn+k+(2*I+Br.width)):(ht.minX=Zn-k-(2*I+Br.width),ht.maxX=Zn-k);var lr,zr=Br.height/2,Vr=Ze-Br.top-zr,eo="clip"+ye._uid+"commonlabel"+$e._id;if(Zn=0?xt:st+Dt=0?st:Zt+Dt=0?Sn:vt+it=0?vt:Nt+it=0,rn.idealAlign!=="top"&&co||!Fo?co?(zr+=eo/2,rn.anchor="start"):rn.anchor="middle":(zr-=eo/2,rn.anchor="end"),rn.crossPos=zr;else{if(rn.pos=zr,co=lr+Vr/2+_o<=Ye,Fo=lr-Vr/2-_o>=0,rn.idealAlign!=="left"&&co||!Fo)if(co)lr+=Vr/2,rn.anchor="start";else{rn.anchor="middle";var $o=_o/2,Mo=lr+$o-Ye,pi=lr-$o;Mo>0&&(lr-=Mo),pi<0&&(lr+=-pi)}else lr-=Vr/2,rn.anchor="end";rn.crossPos=lr}$r.attr("text-anchor",rn.anchor),qn&&vr.attr("text-anchor",rn.anchor),_n.attr("transform",w(lr,zr)+(_e?y(T):""))}),{hoverLabels:sn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ye,ve,_e){var we="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=S.templateString(ae.name,ae.trace._meta)),we=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
"),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
"),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ve?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(we===""&&_e.remove(),Te=we);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ve&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=S.hovertemplateString(ze,De,ye._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(Qe,Ve){return we=Y(Ve,ae.nameLength),""})}return[Te,we]}function te(ae,ce){var de=0,ye=ae.offset;return ce&&(ye*=-D,de=ae.offset*L),{x:de,y:ye}}function Z(ae,ce,de,ye){var ve=function(we){return we*de},_e=function(we){return we*ye};ae.each(function(we){var Te=u.select(this);if(we.del)return Te.remove();var Pe,Ie,ze,De,Qe=Te.select("text.nums"),Ve=we.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=we).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(we,ce),Re=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ve(we.bx/2+we.tx2width/2)+","+_e(We-we.by/2)+"h"+ve(we.bx)+"v"+_e(we.by)+"h-"+ve(we.bx)+"Z":"M0,0L"+ve($e*k+Re)+","+_e(k+We)+"v"+_e(we.by/2-k)+"h"+ve($e*we.bx)+"v-"+_e(we.by)+"H"+ve($e*k+Re)+"V"+_e(We-k)+"Z");var Ze=Re+Oe.textShiftX,Ye=We+we.ty0-we.by/2+I,Je=we.textAlign||"auto";Je!=="auto"&&(Je==="left"&&Ve!=="start"?(Qe.attr("text-anchor","start"),Ze=Ue?-we.bx/2-we.tx2width/2+I:-we.bx-I):Je==="right"&&Ve!=="end"&&(Qe.attr("text-anchor","end"),Ze=Ue?we.bx/2-we.tx2width/2-I:we.bx+I)),Qe.call(a.positionText,ve(Ze),_e(Ye)),we.tx2width&&(Te.select("text.name").call(a.positionText,ve(Oe.text2ShiftX+Oe.alignShift*I+Re),_e(We+we.ty0-we.by/2+I)),Te.select("rect").call(h.setRect,ve(Oe.text2ShiftX+(Oe.alignShift-1)*we.tx2width/2+Re),_e(We-we.by/2-1),ve(we.tx2width),_e(we.by+2)))})}function K(ae,ce){var de=ae.index,ye=ae.trace||{},ve=ae.cd[0],_e=ae.cd[de]||{};function we(Qe){return Qe||b(Qe)&&Qe===0}var Te=Array.isArray(de)?function(Qe,Ve){var $e=S.castOption(ve,de,Qe);return we($e)?$e:S.extractOption({},ye,"",Ve)}:function(Qe,Ve){return S.extractOption(_e,ye,Qe,Ve)};function Pe(Qe,Ve,$e){var Oe=Te(Ve,$e);we(Oe)&&(ae[Qe]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ye.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=S.constrain(ae.x0,0,ae.xa._length),ae.x1=S.constrain(ae.x1,0,ae.xa._length),ae.y0=S.constrain(ae.y0,0,ae.ya._length),ae.y1=S.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ye.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ye.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function re(ae,ce,de){var ye,ve,_e=de.container,we=de.fullLayout,Te=we._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=p.combine(we.plot_bgcolor,we.paper_bgcolor);if(Ie){var Qe,Ve,$e=ce.hLinePoint;ye=$e&&$e.xa,(ve=$e&&$e.ya).spikesnap==="cursor"?(Qe=Pe.pointerX,Ve=Pe.pointerY):(Qe=ye._offset+$e.x,Ve=ve._offset+$e.y);var Oe,ke,Re=i.readability($e.color,De)<1.5?p.contrast(De):$e.color,We=ve.spikemode,Ue=ve.spikethickness,Ze=ve.spikecolor||Re,Ye=_.getPxPosition(ae,ve);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Ye,ke=Qe),We.indexOf("across")!==-1){var Je=ve._counterDomainMin,Me=ve._counterDomainMax;ve.anchor==="free"&&(Je=Math.min(Je,ve.position),Me=Math.max(Me,ve.position)),Oe=Te.l+Je*Te.w,ke=Te.l+Me*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ve.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ye+(ve.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Fe,je,tt=ce.vLinePoint;ye=tt&&tt.xa,ve=tt&&tt.ya,ye.spikesnap==="cursor"?(Fe=Pe.pointerX,je=Pe.pointerY):(Fe=ye._offset+tt.x,je=ve._offset+tt.y);var ot,Ge,ht=i.readability(tt.color,De)<1.5?p.contrast(De):tt.color,pt=ye.spikemode,St=ye.spikethickness,Ft=ye.spikecolor||ht,zt=_.getPxPosition(ae,ye);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=zt,Ge=je),pt.indexOf("across")!==-1){var Yt=ye._counterDomainMin,ln=ye._counterDomainMax;ye.anchor==="free"&&(Yt=Math.min(Yt,ye.position),ln=Math.max(ln,ye.position)),ot=Te.t+(1-ln)*Te.h,Ge=Te.t+(1-Yt)*Te.h}_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St,stroke:Ft,"stroke-dasharray":h.dashStyle(ye.spikedash,St)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Fe,cy:zt-(ye.side!=="top"?St:-St),r:St,fill:Ft}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ye=ce[ae+"a"],ve=ce[ae+"Val"],_e=ce.cd[0];if(ye.type==="category"||ye.type==="multicategory")ve=ye._categoriesMap[ve];else if(ye.type==="date"){var we=ce.trace[ae+"periodalignment"];if(we){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;we==="end"?ve+=ze:we==="middle"&&(ve+=ze/2)}ve=ye.d2c(ve)}return _e&&_e.t&&_e.t.posLetter===ye._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ve+=_e.t.dPos)),ve}function me(ae){return ae.offsetTop+ae.clientTop}function pe(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ye=ce.getBoundingClientRect(),ve=ye.left,_e=ye.top,we=ve+ye.width,Te=_e+ye.height,Pe=S.apply3DTransform(de._invTransform)(ve,_e),Ie=S.apply3DTransform(de._invTransform)(we,Te),ze=Pe[0],De=Pe[1],Qe=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:Qe-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,Qe),right:Math.max(ze,Qe),bottom:Math.max(De,Ve)}}},16132:function(d,s,n){var u=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(S,w,y,m){m=m||{};var a=w.legend;function c(h){m.font[h]||(m.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(m.font||(m.font={}),c("size"),c("family"),c("color"),a?(m.bgcolor||(m.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),m.bordercolor||(m.bordercolor=w.legend.bordercolor)):m.bgcolor||(m.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",m.bgcolor),y("hoverlabel.bordercolor",m.bordercolor),y("hoverlabel.namelength",m.namelength),u.coerceFont(y,"hoverlabel.font",m.font),y("hoverlabel.align",m.align)}},41008:function(d,s,n){var u=n(3400),b=n(65460);d.exports=function(i,S){function w(y,m){return S[y]!==void 0?S[y]:u.coerce(i,S,b,y,m)}return w("clickmode"),w("hovermode")}},93024:function(d,s,n){var u=n(33428),b=n(3400),i=n(86476),S=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:S.getDistanceFunction,getClosest:S.getClosest,inbox:S.inbox,quadrature:S.quadrature,appendArrayPointValue:S.appendArrayPointValue,castHoverOption:function(m,a,c){return b.castOption(m,a,"hoverlabel."+c)},castHoverinfo:function(m,a,c){return b.castOption(m,c,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:m._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(m){var a=b.isD3Selection(m)?m:u.select(m);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,s,n){var u=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=u.HOVERFONT,i.size.dflt=u.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,s,n){var u=n(3400),b=n(65460),i=n(41008),S=n(16132);d.exports=function(w,y){function m(p,v){return u.coerce(w,y,b,p,v)}i(w,y)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var a=y._has("mapbox"),c=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||c)&&h===1||a&&c&&h===2)&&(y.dragmode="pan"),S(w,y,m),u.coerceFont(m,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,s,n){var u=n(3400),b=n(16132),i=n(65460);d.exports=function(S,w){b(S,w,function(y,m){return u.coerce(S,w,i,y,m)})}},12704:function(d,s,n){var u=n(3400),b=n(53756).counter,i=n(86968).u,S=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(h,p,v){var _=p[v+"axes"],O=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:O.length?O:void 0}function a(h,p,v,_,O,C){var x=p(h+"gap",v),R=p("domain."+h);p(h+"side",_);for(var M=new Array(O),T=R[0],P=(R[1]-T)/(O-x),A=P*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),A._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;P&&p._splomGridDflt&&(k=p._splomGridDflt.xside,I=p._splomGridDflt.yside),A._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete p.grid}function j(U,X){return u.coerce(v,A,y,U,X)}},contentDefaults:function(h,p){var v=p.grid;if(v&&v._domains){var _,O,C,x,R,M,T,P=h.grid||{},A=p._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=P.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(c==="legend"?1:0));if(Q===!1&&(p[c]=void 0),(Q!==!1||_.uirevision)&&(C("uirevision",p.uirevision),Q!==!1)){C("borderwidth");var j,U,X,te=C("orientation")==="h",Z=C("yref")==="paper",K=C("xref")==="paper",re="left";if(te?(j=0,u.getComponentMethod("rangeslider","isVisible")(h.xaxis)?Z?(U=1.1,X="bottom"):(U=1,X="top"):Z?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,re="right")),b.coerce(_,O,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,O,{y:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:U}},"y"),C("traceorder",D),m.isGrouped(p[c])&&C("tracegroupgap"),C("entrywidth"),C("entrywidthmode"),C("itemsizing"),C("itemwidth"),C("itemclick"),C("itemdoubleclick"),C("groupclick"),C("xanchor",re),C("yanchor",X),C("valign"),b.noneOrAll(_,O,["x","y"]),C("title.text")){C("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(C,"title.font",q)}}}}d.exports=function(c,h,p){var v,_=p.slice(),O=h.shapes;if(O)for(v=0;v1)}var ye=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+Z).remove(),i.autoMargin(X,Y);var ve=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",Z,function(Ve){Ve.append("rect")}),we=b.ensureSingle(ve,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});we.call(a.stroke,re.bordercolor).call(a.fill,re.bgcolor).style("stroke-width",re.borderwidth+"px");var Te,Pe=b.ensureSingle(ve,"g","scrollbox"),Ie=re.title;re._titleWidth=0,re._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(m.font,Ie.font).text(Ie.text),$(Te,Pe,X,re,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ve,"rect","scrollbar",function(Ve){Ve.attr(p.scrollBarEnterAttrs).call(a.fill,p.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var Qe=De.selectAll("g.traces").data(b.identity);Qe.enter().append("g").attr("class","traces"),Qe.exit().remove(),Qe.style("opacity",function(Ve){var $e=Ve[0].trace;return S.traceIs($e,"pie-like")?ye.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){u.select(this).call(k,X,re)}).call(R,X,re).each(function(){ee||u.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Re=Ve._fullLayout,We=U(ke);ke||(ke=Re[We]);var Ue=Re._size,Ze=M.isVertical(ke),Ye=M.isGrouped(ke),Je=ke.entrywidthmode==="fraction",Me=ke.borderwidth,Fe=2*Me,je=p.itemGap,tt=ke.itemwidth+2*je,ot=2*(Me+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",St=ke.tracegroupgap,Ft={};ke._maxHeight=Math.max(ht||pt?Re.height/2:Ue.h,30);var zt=0;ke._width=0,ke._height=0;var Yt=function(en){var Jt=0,Zt=0,Nt=en.title.side;return Nt&&(Nt.indexOf("left")!==-1&&(Jt=en._titleWidth),Nt.indexOf("top")!==-1&&(Zt=en._titleHeight)),[Jt,Zt]}(ke);if(Ze)Oe.each(function(en){var Jt=en[0].height;m.setTranslate(this,Me+Yt[0],Me+Yt[1]+ke._height+Jt/2+je),ke._height+=Jt,ke._width=Math.max(ke._width,en[0].width)}),zt=tt+ke._width,ke._width+=je+tt+Fe,ke._height+=ot,Ye&&($e.each(function(en,Jt){m.setTranslate(this,0,Jt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var ln=Q(ke),tn=ke.x<0||ke.x===0&&ln==="right",Et=ke.x>1||ke.x===1&&ln==="left",Ot=pt||ht,cn=Re.width/2;ke._maxWidth=Math.max(tn?Ot&&ln==="left"?Ue.l+Ue.w:cn:Et?Ot&&ln==="right"?Ue.r+Ue.w:cn:Ue.w,2*tt);var Cn=0,Pn=0;Oe.each(function(en){var Jt=L(en,ke,tt);Cn=Math.max(Cn,Jt),Pn+=Jt}),zt=null;var Sn=0;if(Ye){var vt=0,xt=0,st=0;$e.each(function(){var en=0,Jt=0;u.select(this).selectAll("g.traces").each(function(Nt){var sn=L(Nt,ke,tt),rn=Nt[0].height;m.setTranslate(this,Yt[0],Yt[1]+Me+je+rn/2+Jt),Jt+=rn,en=Math.max(en,sn),Ft[Nt[0].trace.legendgroup]=en});var Zt=en+je;xt>0&&Zt+Me+xt>ke._maxWidth?(Sn=Math.max(Sn,xt),xt=0,st+=vt+St,vt=Jt):vt=Math.max(vt,Jt),m.setTranslate(this,xt,st),xt+=Zt}),ke._width=Math.max(Sn,xt)+Me,ke._height=st+vt+ot}else{var bt=Oe.size(),Vt=Pn+Fe+(bt-1)*je=ke._maxWidth&&(Sn=Math.max(Sn,Bt),it=0,at+=Dt,ke._height+=Dt,Dt=0),m.setTranslate(this,Yt[0]+Me+it,Yt[1]+Me+at+Jt/2+je),Bt=it+Zt+je,it+=Nt,Dt=Math.max(Dt,Jt)}),Vt?(ke._width=it+Fe,ke._height=Dt+ot):(ke._width=Math.max(Sn,Bt)+Fe,ke._height+=Dt+ot)}}ke._width=Math.ceil(Math.max(ke._width+Yt[0],ke._titleWidth+2*(Me+p.titlePad))),ke._height=Math.ceil(Math.max(ke._height+Yt[1],ke._titleHeight+2*(Me+p.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var _t=Ve._context.edits,qt=_t.legendText||_t.legendPosition;Oe.each(function(en){var Jt=u.select(this).select("."+We+"toggle"),Zt=en[0].height,Nt=en[0].trace.legendgroup,sn=L(en,ke,tt);Ye&&Nt!==""&&(sn=Ft[Nt]);var rn=qt?tt:zt||sn;Ze||Je||(rn+=je/2),m.setRect(Jt,0,-Zt/2,rn,Zt)})}(X,De,Qe,re)},function(){var Ve,$e,Oe,ke,Re=q._size,We=re.borderwidth,Ue=re.xref==="paper",Ze=re.yref==="paper";if(Ie.text&&function(Ot,cn,Cn){if(cn.title.side==="top center"||cn.title.side==="top right"){var Pn=cn.title.font.size*_,Sn=0,vt=Ot.node(),xt=m.bBox(vt).width;cn.title.side==="top center"?Sn=.5*(cn._width-2*Cn-2*p.titlePad-xt):cn.title.side==="top right"&&(Sn=cn._width-2*Cn-2*p.titlePad-xt),c.positionText(Ot,Cn+p.titlePad+Sn,Cn+Pn)}}(Te,re,We),!ee){var Ye,Je;Ye=Ue?Re.l+Re.w*re.x-O[Q(re)]*re._width:q.width*re.x-O[Q(re)]*re._width,Je=Ze?Re.t+Re.h*(1-re.y)-O[j(re)]*re._effHeight:q.height*(1-re.y)-O[j(re)]*re._effHeight;var Me=function(Ot,cn,Cn,Pn){var Sn=Ot._fullLayout,vt=Sn[cn],xt=Q(vt),st=j(vt),bt=vt.xref==="paper",Vt=vt.yref==="paper";Ot._fullLayout._reservedMargin[cn]={};var Dt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:Sn.width-Cn,l:Cn+vt._width,b:Sn.height-Pn,t:Pn+vt._effHeight};if(bt&&Vt)return i.autoMargin(Ot,cn,{x:vt.x,y:vt.y,l:vt._width*O[xt],r:vt._width*C[xt],b:vt._effHeight*C[st],t:vt._effHeight*O[st]});bt?Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]:Vt||vt.orientation==="v"?Ot._fullLayout._reservedMargin[cn][it]=at[it]:Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]}(X,Y,Ye,Je);if(Me)return;if(q.margin.autoexpand){var Fe=Ye,je=Je;Ye=Ue?b.constrain(Ye,0,q.width-re._width):Fe,Je=Ze?b.constrain(Je,0,q.height-re._effHeight):je,Ye!==Fe&&b.log("Constrain "+Y+".x to make legend fit inside graph"),Je!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}m.setTranslate(ve,Ye,Je)}if(ze.on(".drag",null),ve.on("wheel",null),ee||re._height<=re._maxHeight||X._context.staticPlot){var tt=re._effHeight;ee&&(tt=re._height),we.attr({width:re._width-We,height:tt-We,x:We/2,y:We/2}),m.setTranslate(Pe,0,0),_e.select("rect").attr({width:re._width-2*We,height:tt-2*We,x:We,y:We}),m.setClipUrl(Pe,Z,X),m.setRect(ze,0,0,0,0),delete re._scrollY}else{var ot,Ge,ht,pt=Math.max(p.scrollBarMinHeight,re._effHeight*re._effHeight/re._height),St=re._effHeight-pt-2*p.scrollBarMargin,Ft=re._height-re._effHeight,zt=St/Ft,Yt=Math.min(re._scrollY||0,Ft);we.attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-2*We,x:We,y:We+Yt}),m.setClipUrl(Pe,Z,X),Et(Yt,pt,zt),ve.on("wheel",function(){Et(Yt=b.constrain(re._scrollY+u.event.deltaY/St*Ft,0,Ft),pt,zt),Yt!==0&&Yt!==Ft&&u.event.preventDefault()});var ln=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;ot=Ot.type==="touchstart"?Ot.changedTouches[0].clientY:Ot.clientY,ht=Yt}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.buttons===2||Ot.ctrlKey||(Ge=Ot.type==="touchmove"?Ot.changedTouches[0].clientY:Ot.clientY,Yt=function(cn,Cn,Pn){var Sn=(Pn-Cn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});ze.call(ln);var tn=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;Ot.type==="touchstart"&&(ot=Ot.changedTouches[0].clientY,ht=Yt)}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.type==="touchmove"&&(Ge=Ot.changedTouches[0].clientY,Yt=function(cn,Cn,Pn){var Sn=(Cn-Pn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});Pe.call(tn)}function Et(Ot,cn,Cn){re._scrollY=X._fullLayout[Y]._scrollY=Ot,m.setTranslate(Pe,0,-Ot),m.setRect(ze,re._width,p.scrollBarMargin+Ot*Cn,p.scrollBarWidth,cn),_e.select("rect").attr("y",We+Ot)}X._context.edits.legendPosition&&(ve.classed("cursor-move",!0),y.init({element:ve.node(),gd:X,prepFn:function(){var Ot=m.getTranslate(ve);Oe=Ot.x,ke=Ot.y},moveFn:function(Ot,cn){var Cn=Oe+Ot,Pn=ke+cn;m.setTranslate(ve,Cn,Pn),Ve=y.align(Cn,re._width,Re.l,Re.l+Re.w,re.xanchor),$e=y.align(Pn+re._height,-re._height,Re.t+Re.h,Re.t,re.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var Ot={};Ot[Y+".x"]=Ve,Ot[Y+".y"]=$e,S.call("_guiRelayout",X,Ot)}},clickFn:function(Ot,cn){var Cn=K.selectAll("g.traces").filter(function(){var Pn=this.getBoundingClientRect();return cn.clientX>=Pn.left&&cn.clientX<=Pn.right&&cn.clientY>=Pn.top&&cn.clientY<=Pn.bottom});Cn.size()>0&&D(X,ve,Cn,Ot,cn)}}))}],X)}}function L(X,te,Z){var K=X[0],re=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:Z+(Y||re)}function D(X,te,Z,K,re){var q=Z.data()[0][0].trace,Y={event:re,node:Z.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),S.traceIs(q,"pie-like")&&(Y.label=Z.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(Z,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(Z,X,K))}function k(X,te,Z){var K,re,q=U(Z),Y=X.data()[0][0],ee=Y.trace,me=S.traceIs(ee,"pie-like"),pe=!Z._inHover&&te._context.edits.legendText&&!me,se=Z._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,re=Y.groupTitle.font):(re=Z.font,Z.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(m.font,re).text(pe?I(K,se):K);var ce=Z.itemwidth+2*p.itemGap;c.positionText(ae,ce,0),pe?ae.call(c.makeEditable,{gd:te,text:K}).call($,X,te,Z).on("edit",function(de){this.text(I(de,se)).call($,X,te,Z);var ye=Y.trace._fullInput||{},ve={};if(S.hasTransform(ye,"groupby")){var _e=S.getTransformIndices(ye,"groupby"),we=_e[_e.length-1],Te=b.keyedContainer(ye,"transforms["+we+"].styles","target","value.name");Te.set(Y.trace._group,de),ve=Te.constructUpdate()}else ve.name=de;return ye._isShape?S.call("_guiRelayout",te,"shapes["+ee.index+"].name",ve.name):S.call("_guiRestyle",te,ve,ee.index)}):$(ae,X,te,Z)}function I(X,te){var Z=Math.max(4,te);if(X&&X.trim().length>=Z/2)return X;for(var K=Z-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,Z){var K,re=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",Z+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimere&&(q=Math.max(q-1,1)),D(te,ee,X,q,u.event)}}))}function $(X,te,Z,K,re){K._inHover&&X.attr("data-notex",!0),c.convertToTspans(X,Z,function(){(function(q,Y,ee,me){var pe=q.data()[0][0];if(ee._inHover||!pe||pe.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ye,ve=ee.borderwidth,_e=(me===T?ee.title.font:pe.groupTitle?pe.groupTitle.font:ee.font).size*_;if(ae){var we=m.bBox(ae);de=we.height,ye=we.width,me===T?m.setTranslate(se,ve,ve+.75*de):m.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=c.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ye=ze?m.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ye+=2*p.itemGap),c.positionText(Pe,ve+p.titlePad,ve+_e);else{var De=2*p.itemGap+ee.itemwidth;pe.groupTitle&&(De=p.itemGap,ye-=ee.itemwidth),c.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ye,ee._titleHeight=de):(pe.lineHeight=_e,pe.height=Math.max(de,16)+3,pe.width=ye)}else q.remove()})(te,Z,K,re)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)A(X,te);else{var Z=X._fullLayout,K=Z._legends;Z._infolayer.selectAll('[class^="legend"]').each(function(){var Y=u.select(this),ee=Y.attr("class").split(" ")[0];ee.match(P)&&K.indexOf(ee)===-1&&Y.remove()});for(var re=0;reQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,re){return K.trace.legendrank-re.trace.legendrank||K._preSort-re._preSort};for(I.forEach(function(K,re){K[0]._preGroupSort=re}),I.sort(function(K,re){return K[0]._groupMinRank-re[0]._groupMinRank||K[0]._preGroupSort-re[0]._preGroupSort}),y=0;yR?R:C}d.exports=function(C,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",P=R.itemwidth,A=(P+2*p.itemGap)/2,L=S(A,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(Z?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(re){var q=u.select(this),Y=re[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var pe=m(U),se=pe.mid;se===void 0&&(se=(pe.max+pe.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ye=w.getPatternAttr(ce.bgcolor,0,null),ve=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,we=O(ce.size,8,10),Te=O(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,we,Te,me,ce.fillmode,ye,ve,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var Z=U.marker||{},K=D(h(Z.line.width,j.pts),Z.line,5,2),re="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},re),Y=i.minExtend(j,{trace:q},re);c(te,Y,q,x)}}C.each(function(z){var $=u.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",S(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Z=Q.selectAll("g.legendsymbols").data([z]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=u.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var Z,K=u.select(this),re=m(Q),q=re.colorscale,Y=re.reversescale;if(q){if(!$){var ee=q.length;Z=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;Z=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),Z?K.call(y.fill,Z):K.call(function(pe){if(pe.size()){var se="legendfill-"+Q.uid;w.gradient(pe,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=u.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var Z=u.select(this),K=$[te[0]].marker,re=D(void 0,K.line,5,2);Z.attr("d",te[1]).style("stroke-width",re+"px").call(y.fill,K.color),re&&Z.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=u.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,Z=j.showGradientFill,K=j.anyFill,re=j.anyLine,q=z[0],Y=q.trace,ee=m(Y),me=ee.colorscale,pe=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":re?"M5,-2":"M5,-3",ae=u.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||Z?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+P+"v6h-"+P+"z").call(function(ve){if(ve.size())if(U)w.fillGroupStyle(ve,x);else{var _e="legendfill-"+Y.uid;w.gradient(ve,x,_e,v(pe),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ye=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ye.enter().append("path").classed("js-line",!0),ye.exit().remove(),ye.attr("d",se+(te?"l"+P+",0.0001":"h"+P)).call(X?w.lineGroupStyle:function(ve){if(ve.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ve),w.gradient(ve,x,_e,v(pe),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,Z=j.showMarker,K=z[0],re=K.trace,q=!Z&&!X&&!U&&a.hasText(re);function Y(ye,ve,_e,we){var Te=i.nestedProperty(re,ye).get(),Pe=i.isArrayOrTypedArray(Te)&&ve?ve(Te):Te;if(T&&Pe&&we!==void 0&&(Pe=we),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ye){return K._distinct&&K.index&&ye[K.index]?ye[K.index]:ye[0]}if(Z||q||te){var me={},pe={};if(Z){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),pe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,pe.marker.size=se}te&&(pe.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(re,pe)).selectedpoints=null,Q.texttemplate=null}var ae=u.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(Z?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),Z&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("stroke-width",Z+"px").call(y.fill,te.fillcolor),Z&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,Z),Z&&y.stroke(X,te.line.color)})})}},66540:function(d,s,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,s,n){var u=n(24040),b=n(7316),i=n(79811),S=n(9224),w=n(4016).eraseActiveShape,y=n(3400),m=y._,a=d.exports={};function c(M,T){var P,A,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(A=0;A<$.length;A++)if(!(P=$[A]).fixedrange)if(j=P._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")P._rangeInitial0===void 0&&P._rangeInitial1===void 0?z[j+".autorange"]=!0:P._rangeInitial0===void 0?(z[j+".autorange"]=P._autorangeInitial,z[j+".range"]=[null,P._rangeInitial1]):P._rangeInitial1===void 0?(z[j+".range"]=[P._rangeInitial0,null],z[j+".autorange"]=P._autorangeInitial):z[j+".range"]=[P._rangeInitial0,P._rangeInitial1],P._showSpikeInitial!==void 0&&(z[j+".showspikes"]=P._showSpikeInitial,Q!=="on"||P._showSpikeInitial||(Q="off"));else{var Z=[P.r2l(P.range[0]),P.r2l(P.range[1])],K=[X*Z[0]+te*Z[1],X*Z[1]+te*Z[0]];z[j+".range[0]"]=P.l2r(K[0]),z[j+".range[1]"]=P.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,u.call("_guiRelayout",M,z)}function h(M,T){for(var P=T.currentTarget,A=P.getAttribute("data-attr"),L=P.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=A.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(pe=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(pe=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,P){for(var A=P.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?A.touches[0].clientX:0}function C(A,L,D,k){var I=S.ensureSingle(A,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(m.stroke,k.bordercolor).call(m.fill,k.bgcolor)}function x(A,L,D,k){var I=L._fullLayout;S.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(A,L,D,k){var I,z=L.calcdata,$=A.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,S.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=u.select(this),X=j===0,te=h.getFromId(L,Q,"y"),Z=te._name,K=k[Z],re={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(re.layout.xaxis.rangebreaks=D.rangebreaks),re.layout[Z]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(re.layout[Z].rangebreaks=te.rangebreaks),i.supplyDefaults(re);var q=re._fullLayout.xaxis,Y=re._fullLayout[Z];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),c.rangePlot(L,ee,function(me,pe){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Ye+ht<0)return;tt=Ze+ht,ot=Ye+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;tt=Ze+ht,ot=Ye;break;case $e:if(Ge="col-resize",Ye+ht<0)return;tt=Ze,ot=Ye+ht;break;default:Ge="ew-resize",tt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(A).style("opacity",j?.1:L).call(S.stroke,k).call(S.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,O,R),$){var X=y(O.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:O,editHelpers:X,isActiveSelection:!0},Z=u(P,O);b(Z,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(re,q){if(h(re)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===re._fullLayout._activeSelectionIndex)return void _(re);re._fullLayout._activeSelectionIndex=Y,re._fullLayout._deactivateSelection=_,c(re)}}}(O,K)})}(O._fullLayout._selectionLayer)}function v(O,C,x){var R=x.xref+x.yref;w.setClipUrl(O,"clip"+C._fullLayout._uid+R,C)}function _(O){h(O)&&O._fullLayout._activeSelectionIndex>=0&&(i(O),delete O._fullLayout._activeSelectionIndex,c(O))}d.exports={draw:c,drawOne:p,activateLastSelection:function(O){if(h(O)){var C=O._fullLayout.selections.length-1;O._fullLayout._activeSelectionIndex=C,O._fullLayout._deactivateSelection=_,c(O)}}}},34200:function(d,s,n){var u=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},u,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(s,n,u){u("newselection.mode"),u("newselection.line.width")&&(u("newselection.line.color"),u("newselection.line.dash")),u("activeselection.fillcolor"),u("activeselection.opacity")}},5968:function(d,s,n){var u=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),S=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(m,a){if(m.length){var c=m[0][0];if(c){var h=c.getAttribute("d"),p=a.gd,v=p._fullLayout.newselection,_=a.plotinfo,O=_.xaxis,C=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(p.layout||{}).selections||[];if(!u(R)&&x!==void 0){var T=p._fullLayout._activeSelectionIndex;if(T-1,Pn=[];if(function(bt){return bt&&Array.isArray(bt)&&bt[0].hoverOnBox!==!0}(cn)){de(Me,Fe,Ge);var Sn=function(bt,Vt){var Dt,it,at=bt[0],Bt=-1,_t=[];for(it=0;it0?function(bt,Vt){var Dt,it,at,Bt=[];for(at=0;at0&&Bt.push(Dt);if(Bt.length===1&&Bt[0]===Vt.searchInfo&&(it=Vt.searchInfo.cd[0].trace).selectedpoints.length===Vt.pointNumbers.length){for(at=0;at1||(it+=Vt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(ln=Te(Sn))){for(ht&&ht.remove(),Ot=0;Ot=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(Yt){return Yt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=p(je),pt=_(je);if(ht||pt){var St,Ft,zt=Ge.selectAll(".select-outline-"+tt.id);zt&&ot._fullLayout._outlining&&(ht&&(St=A(zt,Me)),St&&i.call("_guiRelayout",ot,{shapes:St}),pt&&!me(Me)&&(Ft=L(zt,Me)),Ft&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Ft}).then(function(){Fe&&D(ot)})),ot._fullLayout._outlining=!1)}tt.selection={},tt.selection.selectionDefs=Me.selectionDefs=[],tt.selection.mergedPolygons=Me.mergedPolygons=[]}function ve(Me){return Me._id}function _e(Me,Fe,je,tt){if(!Me.calcdata)return[];var ot,Ge,ht,pt=[],St=Fe.map(ve),Ft=je.map(ve);for(ht=0;ht0?tt[0]:je;return!!Fe.selectedpoints&&Fe.selectedpoints.indexOf(ot)>-1}function Pe(Me,Fe,je){var tt,ot;for(tt=0;tt-1&&Fe;if(!Ge&&Fe){var gr=ke(Me,!0);if(gr.length){var sr=gr[0].xref,lr=gr[0].yref;if(sr&&lr){var zr=Ue(gr);Ze([Q(Me,sr,"x"),Q(Me,lr,"y")])(vr,zr)}}Me._fullLayout._noEmitSelectedAtStart?Me._fullLayout._noEmitSelectedAtStart=!1:qn&&Ye(Me,vr),ln._reselect=!1}if(!Ge&&ln._deselect){var Vr=ln._deselect;(function(eo,Jr,Yr){for(var to=0;to=0)tn._fullLayout._deactivateShape(tn);else if(!Ft){var zr=Et.clickmode;$.done($r).then(function(){if($.clear($r),sr===2){for(Kn.remove(),at=0;at-1&&pe(lr,tn,tt.xaxes,tt.yaxes,tt.subplot,tt,Kn),zr==="event"&&Ye(tn,void 0);y.click(tn,lr,Pn.id)}).catch(k.error)}},tt.doneFn=function(){tr.remove(),$.done($r).then(function(){$.clear($r),!Ot&&it&&tt.selectionDefs&&(it.subtract=An,tt.selectionDefs.push(it),tt.mergedPolygons.length=0,[].push.apply(tt.mergedPolygons,Dt)),(Ot||Ft)&&ye(tt,Ot),tt.doneFnCompleted&&tt.doneFnCompleted(vr),zt&&Ye(tn,_t)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ye,selectOnClick:pe}},46056:function(d,s,n){var u=n(13916),b=n(25376),i=n(52904).line,S=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,m=(n(36208),n(45464)),a=n(21776).ye,c=n(97728);d.exports=y("shape",{visible:w({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},m.legend,{editType:"calc+arraydraw"}),legendgroup:w({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},u.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},u.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},S,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(c)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,s,n){var u=n(3400),b=n(54460),i=n(85448),S=n(65152);function w(c){return m(c.line.width,c.xsizemode,c.x0,c.x1,c.path,!1)}function y(c){return m(c.line.width,c.ysizemode,c.y0,c.y1,c.path,!0)}function m(c,h,p,v,_,O){var C=c/2,x=O;if(h==="pixel"){var R=_?S.extractPathCoords(_,O?i.paramIsY:i.paramIsX):[p,v],M=u.aggNums(Math.max,null,R),T=u.aggNums(Math.min,null,R),P=T<0?Math.abs(T)+C:C,A=M>0?M+C:C;return{ppad:C,ppadplus:x?P:A,ppadminus:x?A:P}}return{ppad:C}}function a(c,h,p,v,_){var O=c.type==="category"||c.type==="multicategory"?c.r2c:c.d2c;if(h!==void 0)return[O(h),O(p)];if(v){var C,x,R,M,T=1/0,P=-1/0,A=v.match(i.segmentRE);for(c.type==="date"&&(O=S.decodeDate(O)),C=0;CP&&(P=M)));return P>=T?[T,P]:void 0}}d.exports=function(c){var h=c._fullLayout,p=u.filterVisible(h.shapes);if(p.length&&c._fullData.length)for(var v=0;v=ve?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(P,L,A,D):0),z.call(function(ve){return ve.call(S.font,I).attr({}),i.convertToTspans(ve,h),ve});var ae=function(ve,_e,we,Te,Pe,Ie,ze){var De,Qe,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Re=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Ye=Math.cos(Ue),Je=Pe.label.xanchor,Me=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ve,Qe=_e):Oe==="end"?(De=we,Qe=Te):(De=(ve+we)/2,Qe=(_e+Te)/2),Je==="auto"&&(Je=Oe==="start"?ke==="auto"?we>ve?"left":weve?"right":weve?"right":weve?"left":we1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[Z]=De,j(),U())}}()}}function ve(Pe,Ie){(function(ze,De){if(k.length)for(var Qe=0;QeQe?(Oe=ze,Ue="y0",ke=Qe,Ze="y1"):(Oe=Qe,Ue="y1",ke=ze,Ze="y0"),vt(Dt),bt(Te,_e),function(it,at,Bt){var _t=at.xref,qt=at.yref,en=S.getFromId(Bt,_t),Jt=S.getFromId(Bt,qt),Zt="";_t==="paper"||en.autorange||(Zt+=_t),qt==="paper"||Jt.autorange||(Zt+=qt),h.setClipUrl(it,Zt?"clip"+Bt._fullLayout._uid+Zt:null,Bt)}(ve,_e,ye),Sn.moveFn=Fe==="move"?xt:st,Sn.altKey=Dt.altKey)},doneFn:function(){M(ye)||(_(ve),Vt(Te),A(ve,ye,_e),b.call("_guiRelayout",ye,Pe.getUpdateObj()))},clickFn:function(){M(ye)||Vt(Te)}};function vt(Dt){if(M(ye))Fe=null;else if(ht)Fe=Dt.target.tagName==="path"?"move":Dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=Sn.element.getBoundingClientRect(),at=it.right-it.left,Bt=it.bottom-it.top,_t=Dt.clientX-it.left,qt=Dt.clientY-it.top,en=!pt&&at>je&&Bt>tt&&!Dt.shiftKey?v.getCursor(_t/at,1-qt/Bt):"move";_(ve,en),Fe=en.split("-")[0]}}function xt(Dt,it){if(_e.type==="path"){var at=function(qt){return qt},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(qt){return cn(Et(qt)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(qt){return Cn(Ot(qt)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(St("x0",_e.x0=cn(Ie+Dt)),St("x1",_e.x1=cn(De+Dt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(St("y0",_e.y0=Cn(ze+it)),St("y1",_e.y1=Cn(Qe+it)));ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function st(Dt,it){if(pt){var at=function(Zn){return Zn},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(Zn){return cn(Et(Zn)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(Zn){return Cn(Ot(Zn)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else if(ht){if(Fe==="resize-over-start-point"){var qt=Ie+Dt,en=Ge?ze-it:ze+it;St("x0",_e.x0=ot?qt:cn(qt)),St("y0",_e.y0=Ge?en:Cn(en))}else if(Fe==="resize-over-end-point"){var Jt=De+Dt,Zt=Ge?Qe-it:Qe+it;St("x1",_e.x1=ot?Jt:cn(Jt)),St("y1",_e.y1=Ge?Zt:Cn(Zt))}}else{var Nt=function(Zn){return Fe.indexOf(Zn)!==-1},sn=Nt("n"),rn=Nt("s"),_n=Nt("w"),wn=Nt("e"),An=sn?Oe+it:Oe,Kn=rn?ke+it:ke,fr=_n?Re+Dt:Re,Un=wn?We+Dt:We;Ge&&(sn&&(An=Oe-it),rn&&(Kn=ke-it)),(!Ge&&Kn-An>tt||Ge&&An-Kn>tt)&&(St(Ue,_e[Ue]=Ge?An:Cn(An)),St(Ze,_e[Ze]=Ge?Kn:Cn(Kn))),Un-fr>je&&(St(Ye,_e[Ye]=ot?fr:cn(fr)),St(Je,_e[Je]=ot?Un:cn(Un)))}ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function bt(Dt,it){(ot||Ge)&&function(){var at=it.type!=="path",Bt=Dt.selectAll(".visual-cue").data([0]);Bt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var _t=Et(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:C.extractPathCoords(it.path,O.paramIsX))),qt=Ot(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:C.extractPathCoords(it.path,O.paramIsY)));if(_t=C.roundPositionForSharpStrokeRendering(_t,1),qt=C.roundPositionForSharpStrokeRendering(qt,1),ot&&Ge){var en="M"+(_t-1-1)+","+(qt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Bt.attr("d",en)}else if(ot){var Jt="M"+(_t-1-1)+","+(qt-9-1)+"v18 h2 v-18 Z";Bt.attr("d",Jt)}else{var Zt="M"+(_t-9-1)+","+(qt-1-1)+"h18 v2 h-18 Z";Bt.attr("d",Zt)}}()}function Vt(Dt){Dt.selectAll(".visual-cue").remove()}v.init(Sn),Pn.node().onmousemove=vt}(k,ae,$,I,U,pe):$.editable===!0&&ae.style("pointer-events",ee||c.opacity(K)*Z<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ye,ve){if(T(ye)){var _e=+ve.node().getAttribute("data-index");if(_e>=0){if(_e===ye._fullLayout._activeShapeIndex)return void D(ye);ye._fullLayout._activeShapeIndex=_e,ye._fullLayout._deactivateShape=D,R(ye)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function A(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(O.segmentRE,function($){var Q=0,j=$.charAt(0),U=O.paramIsX[j],X=O.paramIsY[j],te=O.numParams[j];return j+$.substr(1).replace(O.paramRE,function(Z){return Q>=te||(U[Q]?Z=I(Z):X[Q]&&(Z=z(Z)),Q++),Z})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:P,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Pse&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,m,c);if(w.xsizemode==="pixel"){var P=m(w.xanchor);h=P+w.x0,p=P+w.x1}else h=m(w.x0),p=m(w.x1);if(w.ysizemode==="pixel"){var A=c(w.yanchor);v=A-w.y0,_=A-w.y1}else v=c(w.y0),_=c(w.y1);if(O==="line")return"M"+h+","+v+"L"+p+","+_;if(O==="rect")return"M"+h+","+v+"H"+p+"V"+_+"H"+h+"Z";var L=(h+p)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,s,n){var u=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:u.draw,drawOne:u.drawOne}},97728:function(d){function s(i,S){return S?S.d2l(i):i}function n(i,S){return S?S.l2d(i):i}function u(i,S){return s(i.x1,S)-s(i.x0,S)}function b(i,S,w){return s(i.y1,w)-s(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,S,w){return i.type!=="line"?void 0:b(i,0,w)/u(i,S)},dx:u,dy:b,width:function(i,S){return Math.abs(u(i,S))},height:function(i,S,w){return Math.abs(b(i,0,w))},length:function(i,S,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(u(i,S),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,S){return n((s(i.x1,S)+s(i.x0,S))/2,S)},ycenter:function(i,S,w){return n((s(i.y1,w)+s(i.y0,w))/2,w)}}},89861:function(d,s,n){var u=n(25376),b=n(66741),i=n(92880).extendDeepAll,S=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,m=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:u({})},font:u({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,s,n){var u=n(3400),b=n(51272),i=n(89861),S=n(60876).name,w=i.steps;function y(a,c,h){function p(x,R){return u.coerce(a,c,i,x,R)}for(var v=b(a,c,{name:"steps",handleItemDefaults:m}),_=0,O=0;O0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*c.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+c.stepInset+(te.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-c.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*c.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var Z=te._dims,K=w.ensureSingle(U,"rect",c.railTouchRectClass,function(re){re.call(D,X,U,te).style("pointer-events","all")});K.attr({width:Z.inputAreaLength,height:Math.max(Z.inputAreaWidth,c.tickOffset+te.ticklen+Z.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),S.setTranslate(K,0,Z.currentValueTotalHeight)}function j(U,X){var te=X._dims,Z=te.inputAreaLength-2*c.railInset,K=w.ensureSingle(U,"rect",c.railRectClass);K.attr({width:Z,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),S.setTranslate(K,c.railInset,.5*(te.inputAreaWidth-c.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,Z=function(me,pe){for(var se=me[c.name],ae=[],ce=0;ce0?[0]:[]);function re(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,O(me))}if(K.enter().append("g").classed(c.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){u.select(this).selectAll("g."+c.groupClassName).each(re)}).remove(),Z.length!==0){var q=K.selectAll("g."+c.groupClassName).data(Z,C);q.enter().append("g").classed(c.groupClassName,!0),q.exit().each(re).remove();for(var Y=0;Y0||De<0){var Oe={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[A.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){u.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){u.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(c.makeEditable,{gd:_}).on("edit",function(se){P!==void 0?S.call("_guiRestyle",_,M,se,P):S.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(c.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,s,n){var u=n(25376),b=n(22548),i=n(92880).extendFlat,S=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,m=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:u({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,s,n){var u=n(3400),b=n(51272),i=n(88444),S=n(73712).name,w=i.buttons;function y(a,c,h){function p(v,_){return u.coerce(a,c,i,v,_)}p("visible",b(a,c,{name:"buttons",handleItemDefaults:m}).length>0)&&(p("active"),p("direction"),p("type"),p("showactive"),p("x"),p("y"),u.noneOrAll(a,c,["x","y"]),p("xanchor"),p("yanchor"),p("pad.t"),p("pad.r"),p("pad.b"),p("pad.l"),u.coerceFont(p,"font",h.font),p("bgcolor",h.paper_bgcolor),p("bordercolor"),p("borderwidth"))}function m(a,c){function h(p,v){return u.coerce(a,c,w,p,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,c){b(a,c,{name:S,handleItemDefaults:y})}},14420:function(d,s,n){var u=n(33428),b=n(7316),i=n(76308),S=n(43616),w=n(3400),y=n(72736),m=n(31780).arrayEditor,a=n(84284).LINE_SPACING,c=n(73712),h=n(37400);function p(z){return z._index}function v(z,$){return+z.attr(c.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,Z){$.active=te,m(z.layout,c.name,$).applyUpdate("active",te),$.type==="buttons"?C(z,j,null,null,$):$.type==="dropdown"&&(U.attr(c.menuIndexAttrName,"-1"),O(z,j,U,X,$),Z||C(z,j,U,X,$))}function O(z,$,Q,j,U){var X=w.ensureSingle($,"g",c.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,Z=U.active,K=U.buttons[Z]||c.blankHeaderOpts,re={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,re,q),w.ensureSingle($,"text",c.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(S.font,U.font).text(c.arrowSymbol[U.direction])}).attr({x:te.headerWidth-c.arrowOffsetX+U.pad.l,y:te.headerHeight/2+c.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),C(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(P)}),X.on("mouseout",function(){X.call(A,U)}),S.setTranslate($,te.lx,te.ly)}function C(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(c.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?c.dropdownButtonClassName:c.buttonClassName,Z=Q.selectAll("g."+te).data(w.filterVisible(X)),K=Z.enter().append("g").classed(te,!0),re=Z.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),re.transition().attr("opacity","0").remove()):re.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+c.gapButtonHeader:q=ee.headerWidth+c.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-c.gapButtonHeader+c.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-c.gapButtonHeader+c.gapButton-ee.openWidth);var pe={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},se={l:pe.x+U.borderwidth,t:pe.y+U.borderwidth};Z.each(function(ae,ce){var de=u.select(this);de.call(x,U,ae,z).call(k,U,pe),de.on("click",function(){u.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(P)}),de.on("mouseout",function(){de.call(A,U),Z.call(T,U)})}),Z.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=pe.y-se.t):(se.w=pe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(Z.size()?function(ae,ce,de,ye,ve,_e){var we,Te,Pe,Ie=ve.direction,ze=Ie==="up"||Ie==="down",De=ve._dims,Qe=ve.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){u.select(this).selectAll("g."+c.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+c.headerGroupClassName).data(Q,p);X.enter().append("g").classed(c.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",c.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),Z=0;Zk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>p&&(U=p-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,Z=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,re=x+R,q=M;re+Z>h&&(re=h-Z);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:re,y:q,width:Z,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,pe=te?_+Z+.5:_+.5,se=O-.5,ae=z?C+Q+.5:C+.5,ce=c._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(pe)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ye=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault(),u.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ye),te&&this.vbar.on(".drag",null).call(ye)}this.setTranslate(m,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y-=u.event.dx),this.vbar&&(m-=u.event.dy),this.setTranslate(y,m)},w.prototype._onBoxWheel=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y+=u.event.deltaY),this.vbar&&(m+=u.event.deltaY),this.setTranslate(y,m)},w.prototype._onBarDrag=function(){var y=this.translateX,m=this.translateY;if(this.hbar){var a=y+this._hbarXMin,c=a+this._hbarTranslateMax;y=(S.constrain(u.event.x,a,c)-a)/(c-a)*(this.position.w-this._box.w)}if(this.vbar){var h=m+this._vbarYMin,p=h+this._vbarTranslateMax;m=(S.constrain(u.event.y,h,p)-h)/(p-h)*(this.position.h-this._box.h)}this.setTranslate(y,m)},w.prototype.setTranslate=function(y,m){var a=this.position.w-this._box.w,c=this.position.h-this._box.h;if(y=S.constrain(y||0,0,a),m=S.constrain(m||0,0,c),this.translateX=y,this.translateY=m,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,m)}if(this.vbar){var p=m/c;this.vbar.call(i.setTranslate,y,m+p*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(s,n,u){return["If set to a",s,"axis id (e.g. *"+s+"* or","*"+s+"2*), the `"+s+"` position refers to a",s,"coordinate. If set to *paper*, the `"+s+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+u+"). If set to a",s,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+s+"2 domain* refers to the domain of the second",s," axis and a",s,"position of 0.5 refers to the","point between the",n,"and the",u,"of the domain of the","second",s,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,s){s.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],s.STYLE=s.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,s){s.xmlns="http://www.w3.org/2000/xmlns/",s.svg="http://www.w3.org/2000/svg",s.xlink="http://www.w3.org/1999/xlink",s.svgAttrs={xmlns:s.svg,"xmlns:xlink":s.xlink}},64884:function(d,s,n){s.version=n(25788).version,n(88324),n(79288);for(var u=n(24040),b=s.register=u.register,i=n(22448),S=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,s){s.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},s.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},s.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},s.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},s.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},s.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,s,n){var u=n(20435),b=u.mod,i=u.modHalf,S=Math.PI,w=2*S;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function m(h,p){return i(p-h,w)}function a(h,p){if(y(p))return!0;var v,_;p[0](_=b(_,w))&&(_+=w);var O=b(h,w),C=O+w;return O>=v&&O<=_||C>=v&&C<=_}function c(h,p,v,_,O,C,x){O=O||0,C=C||0;var R,M,T,P,A,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+O,C-$*Math.sin(Q)]}L?(R=0,M=S,T=w):v<_?(R=v,T=_):(R=_,T=v),h=O&&h<=C);var O,C},pathArc:function(h,p,v,_,O){return c(null,h,p,v,_,O,0)},pathSector:function(h,p,v,_,O){return c(null,h,p,v,_,O,1)},pathAnnulus:function(h,p,v,_,O,C){return c(h,p,v,_,O,C,1)}}},38116:function(d,s,n){var u=n(83160).decode,b=n(63620),i=Array.isArray,S=ArrayBuffer,w=DataView;function y(p){return S.isView(p)&&!(p instanceof w)}function m(p){return i(p)||y(p)}s.isTypedArray=y,s.isArrayOrTypedArray=m,s.isArray1D=function(p){return!m(p[0])},s.ensureArray=function(p,v){return i(p)||(p=[]),p.length=v,p};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function c(p){return p.constructor===ArrayBuffer}function h(p,v,_){if(m(p)){if(m(p[0])){for(var O=_,C=0;CR.max?C.set(x):C.set(+O)}},integer:{coerceFunction:function(O,C,x,R){O%1||!u(O)||R.min!==void 0&&OR.max?C.set(x):C.set(+O)}},string:{coerceFunction:function(O,C,x,R){if(typeof O!="string"){var M=typeof O=="number";R.strict!==!0&&M?C.set(String(O)):C.set(x)}else R.noBlank&&!O?C.set(x):C.set(O)}},color:{coerceFunction:function(O,C,x){b(O).isValid()?C.set(O):C.set(x)}},colorlist:{coerceFunction:function(O,C,x){Array.isArray(O)&&O.length&&O.every(function(R){return b(R).isValid()})?C.set(O):C.set(x)}},colorscale:{coerceFunction:function(O,C,x){C.set(S.get(O,x))}},angle:{coerceFunction:function(O,C,x){O==="auto"?C.set("auto"):u(O)?C.set(c(+O,360)):C.set(x)}},subplotid:{coerceFunction:function(O,C,x,R){var M=R.regex||a(x);typeof O=="string"&&M.test(O)?C.set(O):C.set(x)},validateFunction:function(O,C){var x=C.dflt;return O===x||typeof O=="string"&&!!a(x).test(O)}},flaglist:{coerceFunction:function(O,C,x,R){if((R.extras||[]).indexOf(O)===-1)if(typeof O=="string"){for(var M=O.split("+"),T=0;T=u&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var pe=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ye=Number(me[11]||0);if(q){if(pe.length===2)return a;var ve;pe=Number(pe);try{var _e=O.getComponentMethod("calendars","getCal")(te);if(ee){var we=se.charAt(se.length-1)==="i";se=parseInt(se,10),ve=_e.newDate(pe,_e.toMonthIndex(pe,se,we),ae)}else ve=_e.newDate(pe,Number(se),ae)}catch{return a}return ve?(ve.toJD()-_)*c+ce*h+de*p+ye*v:a}pe=pe.length===2?(Number(pe)+2e3-M)%100+M:Number(pe),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(pe),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ye*v},u=s.MIN_MS=s.dateTime2ms("-9999"),b=s.MAX_MS=s.dateTime2ms("9999-12-31 23:59:59.9999"),s.isDateTime=function(X,te){return s.dateTime2ms(X,te)!==a};var A=90*c,L=3*h,D=5*p;function k(X,te,Z,K,re){if((te||Z||K||re)&&(X+=" "+P(te,2)+":"+P(Z,2),(K||re)&&(X+=":"+P(K,2),re))){for(var q=4;re%10==0;)q-=1,re/=10;X+="."+P(re,q)}return X}s.ms2DateTime=function(X,te,Z){if(typeof X!="number"||!(X>=u&&X<=b))return a;te||(te=0);var K,re,q,Y,ee,me,pe=Math.floor(10*y(X+.05,1)),se=Math.round(X-pe/10);if(T(Z)){var ae=Math.floor(se/c)+_,ce=Math.floor(y(X,c));try{K=O.getComponentMethod("calendars","getCal")(Z).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=C("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;re=te=u+c&&X<=b-c))return a;var te=Math.floor(10*y(X+.05,1)),Z=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(Z),Z.getHours(),Z.getMinutes(),Z.getSeconds(),10*Z.getUTCMilliseconds()+te)},s.cleanDate=function(X,te,Z){if(X===a)return te;if(s.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(Z))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=s.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!s.isDateTime(X,Z))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,Z,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var re=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[Z("%q")(re)]}),T(K))try{X=O.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return Z(X)(re)}var j=[59,59.9,59.99,59.999,59.9999];s.formatDate=function(X,te,Z,K,re,q){if(re=T(re)&&re,!te)if(Z==="y")te=q.year;else if(Z==="m")te=q.month;else{if(Z!=="d")return function(Y,ee){var me=y(Y+.05,c),pe=P(Math.floor(me/h),2)+":"+P(y(Math.floor(me/p),60),2);if(ee!=="M"){S(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),pe+=":"+se}return pe}(X,Z)+` + */const D8=typeof window<"u";function A5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const If=Object.assign;function Sie(t,e){const o={};for(const f in e){const E=e[f];o[f]=Sx(E)?E.map(t):t(E)}return o}const nI=()=>{},Sx=Array.isArray,M5e=/\/$/,E5e=t=>t.replace(M5e,"");function kie(t,e,o="/"){let f,E={},d="",s="";const n=e.indexOf("#");let u=e.indexOf("?");return n=0&&(u=-1),u>-1&&(f=e.slice(0,u),d=e.slice(u+1,n>-1?n:e.length),E=t(d)),n>-1&&(f=f||e.slice(0,n),s=e.slice(n,e.length)),f=I5e(f??e,o),{fullPath:f+(d&&"?")+d+s,path:f,query:E,hash:s}}function P5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function Ehe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function R5e(t,e,o){const f=e.matched.length-1,E=o.matched.length-1;return f>-1&&f===E&&sM(e.matched[f],o.matched[E])&&Uve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function sM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Uve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!L5e(t[o],e[o]))return!1;return!0}function L5e(t,e){return Sx(t)?Phe(t,e):Sx(e)?Phe(e,t):t===e}function Phe(t,e){return Sx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function I5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),E=f[f.length-1];(E===".."||E===".")&&f.push("");let d=o.length-1,s,n;for(s=0;s1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(s-(s===f.length?1:0)).join("/")}var OI;(function(t){t.pop="pop",t.push="push"})(OI||(OI={}));var rI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(rI||(rI={}));function D5e(t){if(!t)if(D8){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),E5e(t)}const B5e=/^[^#]+#/;function z5e(t,e){return t.replace(B5e,"#")+e}function N5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const ZZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function F5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),E=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!E)return;e=N5e(E,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Rhe(t,e){return(history.state?history.state.position-e:-1)+t}const Yae=new Map;function $5e(t,e){Yae.set(t,e)}function V5e(t){const e=Yae.get(t);return Yae.delete(t),e}let U5e=()=>location.protocol+"//"+location.host;function jve(t,e){const{pathname:o,search:f,hash:E}=e,d=t.indexOf("#");if(d>-1){let n=E.includes(t.slice(d))?t.slice(d).length:1,u=E.slice(n);return u[0]!=="/"&&(u="/"+u),Ehe(u,"")}return Ehe(o,t)+f+E}function j5e(t,e,o,f){let E=[],d=[],s=null;const n=({state:w})=>{const y=jve(t,location),m=o.value,a=e.value;let c=0;if(w){if(o.value=y,e.value=w,s&&s===m){s=null;return}c=a?w.position-a.position:0}else f(y);E.forEach(h=>{h(o.value,m,{delta:c,type:OI.pop,direction:c?c>0?rI.forward:rI.back:rI.unknown})})};function u(){s=o.value}function b(w){E.push(w);const y=()=>{const m=E.indexOf(w);m>-1&&E.splice(m,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState(If({},w.state,{scroll:ZZ()}),"")}function S(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:u,listen:b,destroy:S}}function Lhe(t,e,o,f=!1,E=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:E?ZZ():null}}function Q5e(t){const{history:e,location:o}=window,f={value:jve(t,o)},E={value:e.state};E.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(u,b,i){const S=t.indexOf("#"),w=S>-1?(o.host&&document.querySelector("base")?t:t.slice(S))+u:U5e()+t+u;try{e[i?"replaceState":"pushState"](b,"",w),E.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function s(u,b){const i=If({},e.state,Lhe(E.value.back,u,E.value.forward,!0),b,{position:E.value.position});d(u,i,!0),f.value=u}function n(u,b){const i=If({},E.value,e.state,{forward:u,scroll:ZZ()});d(i.current,i,!0);const S=If({},Lhe(f.value,u,null),{position:i.position+1},b);d(u,S,!1),f.value=u}return{location:f,state:E,push:n,replace:s}}function H5e(t){t=D5e(t);const e=Q5e(t),o=j5e(t,e.state,e.location,e.replace);function f(d,s=!0){s||o.pauseListeners(),history.go(d)}const E=If({location:"",base:t,go:f,createHref:z5e.bind(null,t)},e,o);return Object.defineProperty(E,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(E,"state",{enumerable:!0,get:()=>e.state.value}),E}function Z5e(t){return typeof t=="string"||t&&typeof t=="object"}function Qve(t){return typeof t=="string"||typeof t=="symbol"}const GS={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hve=Symbol("");var Ihe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Ihe||(Ihe={}));function lM(t,e){return If(new Error,{type:t,[Hve]:!0},e)}function OO(t,e){return t instanceof Error&&Hve in t&&(e==null||!!(t.type&e))}const Dhe="[^/]+?",q5e={sensitive:!1,strict:!1,start:!0,end:!0},W5e=/[.+*?^${}()[\]/\\]/g;function Y5e(t,e){const o=If({},q5e,e),f=[];let E=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(E+="/");for(let S=0;Se.length?e.length===1&&e[0]===40+40?1:-1:0}function G5e(t,e){let o=0;const f=t.score,E=e.score;for(;o0&&e[e.length-1]<0}const K5e={type:0,value:""},J5e=/[a-zA-Z0-9_]/;function eTe(t){if(!t)return[[]];if(t==="/")return[[K5e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const E=[];let d;function s(){d&&E.push(d),d=[]}let n=0,u,b="",i="";function S(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=u}for(;n{s(p)}:nI}function s(i){if(Qve(i)){const S=f.get(i);S&&(f.delete(i),o.splice(o.indexOf(S),1),S.children.forEach(s),S.alias.forEach(s))}else{const S=o.indexOf(i);S>-1&&(o.splice(S,1),i.record.name&&f.delete(i.record.name),i.children.forEach(s),i.alias.forEach(s))}}function n(){return o}function u(i){let S=0;for(;S=0&&(i.record.path!==o[S].record.path||!Zve(i,o[S]));)S++;o.splice(S,0,i),i.record.name&&!Nhe(i)&&f.set(i.record.name,i)}function b(i,S){let w,y={},m,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw lM(1,{location:i});a=w.record.name,y=If(zhe(S.params,w.keys.filter(p=>!p.optional).map(p=>p.name)),i.params&&zhe(i.params,w.keys.map(p=>p.name))),m=w.stringify(y)}else if("path"in i)m=i.path,w=o.find(p=>p.re.test(m)),w&&(y=w.parse(m),a=w.record.name);else{if(w=S.name?f.get(S.name):o.find(p=>p.re.test(S.path)),!w)throw lM(1,{location:i,currentLocation:S});a=w.record.name,y=If({},S.params,i.params),m=w.stringify(y)}const c=[];let h=w;for(;h;)c.unshift(h.record),h=h.parent;return{name:a,path:m,params:y,matched:c,meta:iTe(c)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:s,getRoutes:n,getRecordMatcher:E}}function zhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function rTe(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:oTe(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function oTe(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function Nhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function iTe(t){return t.reduce((e,o)=>If(e,o.meta),{})}function Fhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function Zve(t,e){return e.children.some(o=>o===t||Zve(t,o))}const qve=/#/g,aTe=/&/g,sTe=/\//g,lTe=/=/g,cTe=/\?/g,Wve=/\+/g,uTe=/%5B/g,fTe=/%5D/g,Yve=/%5E/g,dTe=/%60/g,Xve=/%7B/g,hTe=/%7C/g,Gve=/%7D/g,pTe=/%20/g;function gce(t){return encodeURI(""+t).replace(hTe,"|").replace(uTe,"[").replace(fTe,"]")}function mTe(t){return gce(t).replace(Xve,"{").replace(Gve,"}").replace(Yve,"^")}function Xae(t){return gce(t).replace(Wve,"%2B").replace(pTe,"+").replace(qve,"%23").replace(aTe,"%26").replace(dTe,"`").replace(Xve,"{").replace(Gve,"}").replace(Yve,"^")}function gTe(t){return Xae(t).replace(lTe,"%3D")}function vTe(t){return gce(t).replace(qve,"%23").replace(cTe,"%3F")}function yTe(t){return t==null?"":vTe(t).replace(sTe,"%2F")}function IH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function bTe(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let E=0;Ed&&Xae(d)):[f&&Xae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function xTe(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=Sx(f)?f.map(E=>E==null?null:""+E):f==null?f:""+f)}return e}const _Te=Symbol(""),Vhe=Symbol(""),vce=Symbol(""),yce=Symbol(""),Gae=Symbol("");function ML(){let t=[];function e(f){return t.push(f),()=>{const E=t.indexOf(f);E>-1&&t.splice(E,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function n4(t,e,o,f,E){const d=f&&(f.enterCallbacks[E]=f.enterCallbacks[E]||[]);return()=>new Promise((s,n)=>{const u=S=>{S===!1?n(lM(4,{from:o,to:e})):S instanceof Error?n(S):Z5e(S)?n(lM(2,{from:e,to:S})):(d&&f.enterCallbacks[E]===d&&typeof S=="function"&&d.push(S),s())},b=t.call(f&&f.instances[E],e,o,u);let i=Promise.resolve(b);t.length<3&&(i=i.then(u)),i.catch(S=>n(S))})}function Tie(t,e,o,f){const E=[];for(const d of t)for(const s in d.components){let n=d.components[s];if(!(e!=="beforeRouteEnter"&&!d.instances[s]))if(wTe(n)){const b=(n.__vccOpts||n)[e];b&&E.push(n4(b,o,f,d,s))}else{let u=n();E.push(()=>u.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${d.path}"`));const i=A5e(b)?b.default:b;d.components[s]=i;const w=(i.__vccOpts||i)[e];return w&&n4(w,o,f,d,s)()}))}}return E}function wTe(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Uhe(t){const e=Kl(vce),o=Kl(yce),f=nr(()=>e.resolve(Va(t.to))),E=nr(()=>{const{matched:u}=f.value,{length:b}=u,i=u[b-1],S=o.matched;if(!i||!S.length)return-1;const w=S.findIndex(sM.bind(null,i));if(w>-1)return w;const y=jhe(u[b-2]);return b>1&&jhe(i)===y&&S[S.length-1].path!==y?S.findIndex(sM.bind(null,u[b-2])):w}),d=nr(()=>E.value>-1&&TTe(o.params,f.value.params)),s=nr(()=>E.value>-1&&E.value===o.matched.length-1&&Uve(o.params,f.value.params));function n(u={}){return kTe(u)?e[Va(t.replace)?"replace":"push"](Va(t.to)).catch(nI):Promise.resolve()}return{route:f,href:nr(()=>f.value.href),isActive:d,isExactActive:s,navigate:n}}const OTe=em({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uhe,setup(t,{slots:e}){const o=Am(Uhe(t)),{options:f}=Kl(vce),E=nr(()=>({[Qhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[Qhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:U1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:E.value},d)}}}),STe=OTe;function kTe(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function TTe(t,e){for(const o in e){const f=e[o],E=t[o];if(typeof f=="string"){if(f!==E)return!1}else if(!Sx(E)||E.length!==f.length||f.some((d,s)=>d!==E[s]))return!1}return!0}function jhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Qhe=(t,e,o)=>t??e??o,CTe=em({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=Kl(Gae),E=nr(()=>t.route||f.value),d=Kl(Vhe,0),s=nr(()=>{let b=Va(d);const{matched:i}=E.value;let S;for(;(S=i[b])&&!S.components;)b++;return b}),n=nr(()=>E.value.matched[s.value]);md(Vhe,nr(()=>s.value+1)),md(_Te,n),md(Gae,E);const u=qo();return ia(()=>[u.value,n.value,t.name],([b,i,S],[w,y,m])=>{i&&(i.instances[S]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!sM(i,y)||!w)&&(i.enterCallbacks[S]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=E.value,i=t.name,S=n.value,w=S&&S.components[i];if(!w)return Hhe(o.default,{Component:w,route:b});const y=S.props[i],m=y?y===!0?b.params:typeof y=="function"?y(b):y:null,c=U1(w,If({},m,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(S.instances[i]=null)},ref:u}));return Hhe(o.default,{Component:c,route:b})||c}}});function Hhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const ATe=CTe;function MTe(t){const e=nTe(t.routes,t),o=t.parseQuery||bTe,f=t.stringifyQuery||$he,E=t.history,d=ML(),s=ML(),n=ML(),u=Gi(GS);let b=GS;D8&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Sie.bind(null,q=>""+q),S=Sie.bind(null,yTe),w=Sie.bind(null,IH);function y(q,Y){let ee,me;return Qve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function m(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function c(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=If({},Y||u.value),typeof q=="string"){const ce=kie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ye=E.createHref(ce.fullPath);return If(ce,de,{params:w(de.params),hash:IH(ce.hash),redirectedFrom:void 0,href:ye})}let ee;if("path"in q)ee=If({},q,{path:kie(o,q.path,Y.path).path});else{const ce=If({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=If({},q,{params:S(ce)}),Y.params=S(Y.params)}const me=e.resolve(ee,Y),pe=q.hash||"";me.params=i(w(me.params));const se=P5e(f,If({},q,{hash:mTe(pe),path:me.path})),ae=E.createHref(se);return If({fullPath:se,hash:pe,query:f===$he?xTe(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function p(q){return typeof q=="string"?kie(o,q,u.value.path):If({},q)}function v(q,Y){if(b!==q)return lM(8,{from:Y,to:q})}function _(q){return x(q)}function O(q){return _(If(p(q),{replace:!0}))}function C(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=p(me):{path:me},me.params={}),If({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=u.value,pe=q.state,se=q.force,ae=q.replace===!0,ce=C(ee);if(ce)return x(If(p(ce),{state:typeof ce=="object"?If({},pe,ce.state):pe,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ye;return!se&&R5e(f,me,ee)&&(ye=lM(16,{to:de,from:me}),U(me,me,!0,!1)),(ye?Promise.resolve(ye):T(de,me)).catch(ve=>OO(ve)?OO(ve,2)?ve:j(ve):$(ve,de,me)).then(ve=>{if(ve){if(OO(ve,2))return x(If({replace:ae},p(ve.to),{state:typeof ve.to=="object"?If({},pe,ve.to.state):pe,force:se}),Y||de)}else ve=A(de,me,!0,ae,pe);return P(de,me,ve),ve})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=Z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,pe,se]=ETe(q,Y);ee=Tie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(n4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),re(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).then(()=>{ee=Tie(pe,"beforeRouteUpdate",q,Y);for(const ce of pe)ce.updateGuards.forEach(de=>{ee.push(n4(de,q,Y))});return ee.push(ae),re(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(Sx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(n4(de,q,Y));else ee.push(n4(ce.beforeEnter,q,Y));return ee.push(ae),re(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=Tie(se,"beforeRouteEnter",q,Y),ee.push(ae),re(ee))).then(()=>{ee=[];for(const ce of s.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).catch(ce=>OO(ce,8)?ce:Promise.reject(ce))}function P(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function A(q,Y,ee,me,pe){const se=v(q,Y);if(se)return se;const ae=Y===GS,ce=D8?history.state:{};ee&&(me||ae?E.replace(q.fullPath,If({scroll:ae&&ce&&ce.scroll},pe)):E.push(q.fullPath,pe)),u.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=E.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),pe=C(me);if(pe){x(If(pe,{replace:!0}),me).catch(nI);return}b=me;const se=u.value;D8&&$5e(Rhe(se.fullPath,ee.delta),ZZ()),T(me,se).catch(ae=>OO(ae,12)?ae:OO(ae,2)?(x(ae.to,me).then(ce=>{OO(ce,20)&&!ee.delta&&ee.type===OI.pop&&E.go(-1,!1)}).catch(nI),Promise.reject()):(ee.delta&&E.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||A(me,se,!1),ae&&(ee.delta&&!OO(ae,8)?E.go(-ee.delta,!1):ee.type===OI.pop&&OO(ae,20)&&E.go(-1,!1)),P(me,se,ae)}).catch(nI)}))}let k=ML(),I=ML(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(pe=>pe(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&u.value!==GS?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:pe}=t;if(!D8||!pe)return Promise.resolve();const se=!ee&&V5e(Rhe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return Vc().then(()=>pe(q,Y,se)).then(ae=>ae&&F5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>E.go(q);let te;const Z=new Set,K={currentRoute:u,listening:!0,addRoute:y,removeRoute:m,hasRoute:c,getRoutes:a,resolve:h,options:t,push:_,replace:O,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:s.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",STe),q.component("RouterView",ATe),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>Va(u)}),D8&&!te&&u.value===GS&&(te=!0,_(E.location).catch(pe=>{}));const ee={};for(const pe in GS)Object.defineProperty(ee,pe,{get:()=>u.value[pe],enumerable:!0});q.provide(vce,Y),q.provide(yce,eve(ee)),q.provide(Gae,u);const me=q.unmount;Z.add(q),q.unmount=function(){Z.delete(q),Z.size<1&&(b=GS,L&&L(),L=null,u.value=GS,te=!1,z=!1),me()}}};function re(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function ETe(t,e){const o=[],f=[],E=[],d=Math.max(e.matched.length,t.matched.length);for(let s=0;ssM(b,n))?f.push(n):o.push(n));const u=t.matched[s];u&&(e.matched.find(b=>sM(b,u))||E.push(u))}return[o,f,E]}function eC(){return Kl(yce)}function PTe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,s,n){var u=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var S=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");u.addStyleRule(S,b[i])}},86712:function(d,s,n){d.exports=n(84224)},37240:function(d,s,n){d.exports=n(51132)},29744:function(d,s,n){d.exports=n(94456)},29352:function(d,s,n){d.exports=n(67244)},96144:function(d,s,n){d.exports=n(97776)},53219:function(d,s,n){d.exports=n(61712)},4624:function(d,s,n){d.exports=n(95856)},54543:function(d,s,n){d.exports=n(54272)},45e3:function(d,s,n){d.exports=n(85404)},62300:function(d,s,n){d.exports=n(26048)},6920:function(d,s,n){d.exports=n(66240)},10264:function(d,s,n){d.exports=n(40448)},32016:function(d,s,n){d.exports=n(64884)},27528:function(d,s,n){d.exports=n(15088)},75556:function(d,s,n){d.exports=n(76744)},39204:function(d,s,n){d.exports=n(94704)},73996:function(d,s,n){d.exports=n(62396)},16489:function(d,s,n){d.exports=n(32028)},5e3:function(d,s,n){d.exports=n(81932)},77280:function(d,s,n){d.exports=n(45536)},33992:function(d,s,n){d.exports=n(42600)},17600:function(d,s,n){d.exports=n(21536)},49116:function(d,s,n){d.exports=n(65664)},46808:function(d,s,n){d.exports=n(29044)},36168:function(d,s,n){d.exports=n(48928)},13792:function(d,s,n){var u=n(32016);u.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=u},3920:function(d,s,n){d.exports=n(43480)},25120:function(d,s,n){d.exports=n(6296)},4340:function(d,s,n){d.exports=n(7404)},86152:function(d,s,n){d.exports=n(65456)},56816:function(d,s,n){d.exports=n(22020)},89296:function(d,s,n){d.exports=n(29928)},20260:function(d,s,n){d.exports=n(75792)},32140:function(d,s,n){d.exports=n(156)},84764:function(d,s,n){d.exports=n(45499)},48824:function(d,s,n){d.exports=n(3296)},69967:function(d,s,n){d.exports=n(4184)},8363:function(d,s,n){d.exports=n(36952)},86636:function(d,s,n){d.exports=n(38983)},70192:function(d,s,n){d.exports=n(11572)},81604:function(d,s,n){d.exports=n(76924)},63796:function(d,s,n){d.exports=n(62944)},89336:function(d,s,n){d.exports=n(95443)},67484:function(d,s,n){d.exports=n(34864)},97312:function(d,s,n){d.exports=n(76272)},42192:function(d,s,n){d.exports=n(97924)},29800:function(d,s,n){d.exports=n(15436)},63560:function(d,s,n){d.exports=n(5621)},89904:function(d,s,n){d.exports=n(91304)},50248:function(d,s,n){d.exports=n(41724)},65832:function(d,s,n){d.exports=n(31991)},79440:function(d,s,n){d.exports=n(22869)},13752:function(d,s,n){d.exports=n(67776)},83096:function(d,s,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,s,n){var u=n(72196),b=n(25376),i=n(33816),S=n(31780).templatedArray;n(36208),d.exports=S("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,s,n){var u=n(3400),b=n(54460),i=n(23816).draw;function S(y){var m=y._fullLayout;u.filterVisible(m.annotations).forEach(function(a){var c=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),p=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},p==="range"&&w(a,c),v==="range"&&w(a,h)})}function w(y,m){var a,c=m._id,h=c.charAt(0),p=y[h],v=y["a"+h],_=y[h+"ref"],O=y["a"+h+"ref"],C=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,P=M-R,A=3*y.startarrowsize*y.arrowwidth||0,L=A+R,D=A-R;if(O===_){var k=b.findExtremes(m,[m.r2c(p)],{ppadplus:T,ppadminus:P}),I=b.findExtremes(m,[m.r2c(v)],{ppadplus:Math.max(C,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(m,[m.r2c(p)],{ppadplus:Math.max(C,T,L),ppadminus:Math.max(x,P,D)});y._extremes[c]=a}d.exports=function(y){var m=y._fullLayout;if(u.filterVisible(m.annotations).length&&y._fullData.length)return u.syncOrAsync([i,S],y)}},42300:function(d,s,n){var u=n(3400),b=n(24040),i=n(31780).arrayEditor;function S(y,m){var a,c,h,p,v,_,O,C=y._fullLayout.annotations,x=[],R=[],M=[],T=(m||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,m){var a,c,h=S(y,m),p=h.on,v=h.off.concat(h.explicitOff),_={},O=y._fullLayout.annotations;if(p.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Zt]}for(var Je=!1,Me=["x","y"],Fe=0;Fe1)&&(Ft===St?((Sn=zt.r2fraction(T["a"+pt]))<0||Sn>1)&&(Je=!0):Je=!0),je=zt._offset+zt.r2p(T[pt]),Ge=.5}else{var vt=Pn==="domain";pt==="x"?(ot=T[pt],je=vt?zt._offset+zt._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?zt._offset+zt._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){Cn.head=je;var xt=T["a"+pt];if(ht=ln*Ye(.5,T.xanchor)-tn*Ye(.5,T.yanchor),Ft===St){var st=y.getRefType(Ft);st==="domain"?(pt==="y"&&(xt=1-xt),Cn.tail=zt._offset+zt._length*xt):st==="paper"?pt==="y"?(xt=1-xt,Cn.tail=$.t+$.h*xt):Cn.tail=$.l+$.w*xt:Cn.tail=zt._offset+zt.r2p(xt),tt=ht}else Cn.tail=je+xt,tt=ht+xt;Cn.text=Cn.tail+ht;var bt=z[pt==="x"?"width":"height"];if(St==="paper"&&(Cn.head=S.constrain(Cn.head,1,bt-1)),Ft==="pixel"){var Vt=-Math.max(Cn.tail-3,Cn.text),Dt=Math.min(Cn.tail+3,Cn.text)-bt;Vt>0?(Cn.tail+=Vt,Cn.text+=Vt):Dt>0&&(Cn.tail-=Dt,Cn.text-=Dt)}Cn.tail+=cn,Cn.head+=cn}else tt=ht=Et*Ye(Ge,Ot),Cn.text=je+ht;Cn.text+=cn,ht+=cn,tt+=cn,T["_"+pt+"padplus"]=Et/2+tt,T["_"+pt+"padminus"]=Et/2-tt,T["_"+pt+"size"]=Et,T["_"+pt+"shift"]=ht}if(Je)pe.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Re-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)Qe.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ye?Z:null,M);else{var Bt=ce+at-$e.top,_t=ce+it-$e.left;Te.call(h.positionText,_t,Bt).call(a.setClipUrl,ye?Z:null,M)}ve.select("rect").call(a.setRect,ce,ce,Re,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),pe.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+re+","+K.x.text+","+K.y.text+")"});var qt,en=function(Jt,Zt){q.selectAll(".annotation-arrow-g").remove();var Nt=K.x.head,sn=K.y.head,rn=K.x.tail+Jt,_n=K.y.tail+Zt,wn=K.x.text+Jt,An=K.y.text+Zt,Kn=S.rotationXYMatrix(re,wn,An),fr=S.apply2DTransform(Kn),Un=S.apply2DTransform2(Kn),Zn=+de.attr("width"),tr=+de.attr("height"),Br=wn-.5*Zn,$r=Br+Zn,vr=An-.5*tr,qn=vr+tr,gr=[[Br,vr,Br,qn],[Br,qn,$r,qn],[$r,qn,$r,vr],[$r,vr,Br,vr]].map(Un);if(!gr.reduce(function($o,Mo){return $o^!!S.segmentsIntersect(Nt,sn,Nt+1e6,sn+1e6,Mo[0],Mo[1],Mo[2],Mo[3])},!1)){gr.forEach(function($o){var Mo=S.segmentsIntersect(rn,_n,Nt,sn,$o[0],$o[1],$o[2],$o[3]);Mo&&(rn=Mo.x,_n=Mo.y)});var sr=T.arrowwidth,lr=T.arrowcolor,zr=T.arrowside,Vr=q.append("g").style({opacity:m.opacity(lr)}).classed("annotation-arrow-g",!0),eo=Vr.append("path").attr("d","M"+rn+","+_n+"L"+Nt+","+sn).style("stroke-width",sr+"px").call(m.stroke,m.rgb(lr));if(O(eo,zr,T),Q.annotationPosition&&eo.node().parentNode&&!A){var Jr=Nt,Yr=sn;if(T.standoff){var to=Math.sqrt(Math.pow(Nt-rn,2)+Math.pow(sn-_n,2));Jr+=T.standoff*(rn-Nt)/to,Yr+=T.standoff*(_n-sn)/to}var co,Fo,_o=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rn-Jr)+","+(_n-Yr),transform:w(Jr,Yr)}).style("stroke-width",sr+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");v.init({element:_o.node(),gd:M,prepFn:function(){var $o=a.getTranslate(pe);co=$o.x,Fo=$o.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function($o,Mo){var pi=fr(co,Fo),Hn=pi[0]+$o,ar=pi[1]+Mo;pe.call(a.setTranslate,Hn,ar),X("x",x(L,$o,"x",$,T)),X("y",x(D,Mo,"y",$,T)),T.axref===T.xref&&X("ax",x(L,$o,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,Mo,"ay",$,T)),Vr.attr("transform",w($o,Mo)),Y.attr({transform:"rotate("+re+","+Hn+","+ar+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var $o=document.querySelector(".js-notes-box-panel");$o&&$o.redraw($o.selectedObj)}})}}};T.showarrow&&en(0,0),ee&&v.init({element:pe.node(),gd:M,prepFn:function(){qt=Y.attr("transform")},moveFn:function(Jt,Zt){var Nt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Jt,"ax",$,T)):X("ax",T.ax+Jt),T.ayref===T.yref?X("ay",x(D,Zt,"ay",$.w,T)):X("ay",T.ay+Zt),en(Jt,Zt);else{if(A)return;var sn,rn;if(L)sn=x(L,Jt,"x",$,T);else{var _n=T._xsize/$.w,wn=T.x+(T._xshift-T.xshift)/$.w-_n/2;sn=v.align(wn+Jt/$.w,_n,0,1,T.xanchor)}if(D)rn=x(D,Zt,"y",$,T);else{var An=T._ysize/$.h,Kn=T.y-(T._yshift+T.yshift)/$.h-An/2;rn=v.align(Kn-Zt/$.h,An,0,1,T.yanchor)}X("x",sn),X("y",rn),L&&D||(Nt=v.getCursor(L?.5:sn,D?.5:rn,T.xanchor,T.yanchor))}Y.attr({transform:w(Jt,Zt)+qt}),p(pe,Nt)},clickFn:function(Jt,Zt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Zt))},doneFn:function(){p(pe),b.call("_guiRelayout",M,te());var Jt=document.querySelector(".js-notes-box-panel");Jt&&Jt.redraw(Jt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var P=0;P=0,A=c.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(C.nodeName==="line"){p={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=p.x-v.x,I=p.y-v.y;if(O=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);p.x-=Q,p.y-=j,a.attr({x1:p.x,y1:p.y})}}else if(C.nodeName==="path"){var U=C.getTotalLength(),X="";if(U1){h=!0;break}}h?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+a+'"]').remove():(c._pdata=b(S.glplot.cameraParams,[w.xaxis.r2l(c.x)*y[0],w.yaxis.r2l(c.y)*y[1],w.zaxis.r2l(c.z)*y[2]]),u(S.graphDiv,c,a,S.id,c._xa,c._ya))}}},56864:function(d,s,n){var u=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,S){var w=u.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,m=Object.keys(i),a=0;a=0)))return c;if(O===3)v[O]>1&&(v[O]=1);else if(v[O]>=1)return c}var C=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+C+", "+v[3]+")":"rgb("+C+")"}S.tinyRGB=function(c){var h=c.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},S.rgb=function(c){return S.tinyRGB(u(c))},S.opacity=function(c){return c?u(c).getAlpha():0},S.addOpacity=function(c,h){var p=u(c).toRgb();return"rgba("+Math.round(p.r)+", "+Math.round(p.g)+", "+Math.round(p.b)+", "+h+")"},S.combine=function(c,h){var p=u(c).toRgb();if(p.a===1)return u(c).toRgbString();var v=u(h||m).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},O={r:_.r*(1-p.a)+p.r*p.a,g:_.g*(1-p.a)+p.g*p.a,b:_.b*(1-p.a)+p.b*p.a};return u(O).toRgbString()},S.contrast=function(c,h,p){var v=u(c);return v.getAlpha()!==1&&(v=u(S.combine(c,m))),(v.isDark()?h?v.lighten(h):m:p?v.darken(p):y).toString()},S.stroke=function(c,h){var p=u(h);c.style({stroke:S.tinyRGB(p),"stroke-opacity":p.getAlpha()})},S.fill=function(c,h){var p=u(h);c.style({fill:S.tinyRGB(p),"fill-opacity":p.getAlpha()})},S.clean=function(c){if(c&&typeof c=="object"){var h,p,v,_,O=Object.keys(c);for(h=0;h0?Dt>=qt:Dt<=qt));it++)Dt>Jt&&Dt0?Dt>=qt:Dt<=qt));it++)Dt>Vt[0]&&Dt1){var tn=Math.pow(10,Math.floor(Math.log(ln)/Math.LN10));zt*=tn*m.roundUp(ln/tn,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(St.tick0=0)}St.dtick=zt}St.domain=te?[ht+ce/Te.h,ht+Je-ce/Te.h]:[ht+ae/Te.w,ht+Je-ae/Te.w],St.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Et,Ot=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),cn=St.ticklabelposition,Cn=St.title.font.size,Pn=j.select("."+D.cbaxis),Sn=0,vt=0;function xt(st,bt){var Vt={propContainer:St,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:we._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Dt=st.charAt(0)==="h"?st.substr(1):"h"+st;j.selectAll("."+Dt+",."+Dt+"-math-group").remove(),_.draw(X,st,c(Vt,bt||{}))}return m.syncOrAsync([i.previousPromises,function(){var st,bt;(te&&Ft||!te&&!Ft)&&(De==="top"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht-Je)+3+.75*Cn),De==="bottom"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht)-3-.25*Cn),De==="right"&&(bt=ce+Te.t+Fe*ye+3+.75*Cn,st=ae+Te.l+Me*ht),xt(St._id+"title",{attributes:{x:st,y:bt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Ft||te&&Ft){var st,bt=j.select("."+D.cbtitle),Vt=bt.select("text"),Dt=[-Y/2,Y/2],it=bt.select(".h"+St._id+"title-math-group").node(),at=15.6;if(Vt.node()&&(at=parseInt(Vt.node().style.fontSize,10)*P),it?(st=p.bBox(it),vt=st.width,(Sn=st.height)>at&&(Dt[1]-=(Sn-at)/2)):Vt.node()&&!Vt.classed(D.jsPlaceholder)&&(st=p.bBox(Vt.node()),vt=st.width,Sn=st.height),te){if(Sn){if(Sn+=5,De==="top")St.domain[1]-=Sn/Te.h,Dt[1]*=-1;else{St.domain[0]+=Sn/Te.h;var Bt=O.lineCount(Vt);Dt[1]+=(1-Bt)*at}bt.attr("transform",a(Dt[0],Dt[1])),St.setScale()}}else vt&&(De==="right"&&(St.domain[0]+=(vt+Cn/2)/Te.w),bt.attr("transform",a(Dt[0],Dt[1])),St.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-St.domain[1]))):a(Math.round(Te.w*St.domain[0]),0)),Pn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var _t=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Re);_t.enter().append("rect").classed(D.cbfill,!0).attr("style",""),_t.exit().remove();var qt=Qe.map(St.c2p).map(Math.round).sort(function(sn,rn){return sn-rn});_t.each(function(sn,rn){var _n=[rn===0?Qe[0]:(Re[rn]+Re[rn-1])/2,rn===Re.length-1?Qe[1]:(Re[rn]+Re[rn+1])/2].map(St.c2p).map(Math.round);te&&(_n[1]=m.constrain(_n[1]+(_n[1]>_n[0])?1:-1,qt[0],qt[1]));var wn=u.select(this).attr(te?"x":"y",je).attr(te?"y":"x",u.min(_n)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(u.max(_n)-u.min(_n),2));if(U._fillgradient)p.gradient(wn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var An=$e(sn).replace("e-","");wn.attr("fill",b(An).toHexString())}});var en=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);en.enter().append("path").classed(D.cbline,!0),en.exit().remove(),en.each(function(sn){var rn=je,_n=Math.round(St.c2p(sn))+Ie.width/2%1;u.select(this).attr("d","M"+(te?rn+","+_n:_n+","+rn)+(te?"h":"v")+Ue).call(p.lineGroupStyle,Ie.width,Ve(sn),Ie.dash)}),Pn.selectAll("g."+St._id+"tick,path").remove();var Jt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Zt=w.calcTicks(St),Nt=w.getTickSigns(St)[2];return w.drawTicks(X,St,{vals:St.ticks==="inside"?w.clipEnds(St,Zt):Zt,layer:Pn,path:w.makeTickPath(St,Jt,Nt),transFn:w.makeTransTickFn(St)}),w.drawLabels(X,St,{vals:Zt,layer:Pn,transFn:w.makeTransTickLabelFn(St),labelFns:w.makeLabelFns(St,Jt)})},function(){if(te&&!Ft||!te&&Ft){var st,bt,Vt=St.position||0,Dt=St._offset+St._length/2;if(De==="right")bt=Dt,st=Te.l+Me*Vt+10+Cn*(St.showticklabels?1:.5);else if(st=Dt,De==="bottom"&&(bt=Te.t+Fe*Vt+10+(cn.indexOf("inside")===-1?St.tickfont.size:0)+(St.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
").length;bt=Te.t+Fe*Vt+10-Ue-P*Cn*it}xt((te?"h":"v")+St._id+"title",{avoid:{selection:u.select(X).selectAll("g."+St._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?we.width:we.height},attributes:{x:st,y:bt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var st,bt=Ue+Y/2;cn.indexOf("inside")===-1&&(st=p.bBox(Pn.node()),bt+=te?st.width:st.height),Et=Ot.select("text");var Vt=0,Dt=te&&De==="top",it=!te&&De==="right",at=0;if(Et.node()&&!Et.classed(D.jsPlaceholder)){var Bt,_t=Ot.select(".h"+St._id+"title-math-group").node();_t&&(te&&Ft||!te&&!Ft)?(Vt=(st=p.bBox(_t)).width,Bt=st.height):(Vt=(st=p.bBox(Ot.node())).right-Te.l-(te?je:pt),Bt=st.bottom-Te.t-(te?pt:je),te||De!=="top"||(bt+=st.height,at=st.height)),it&&(Et.attr("transform",a(Vt/2+Cn/2,0)),Vt*=2),bt=Math.max(bt,te?Vt:Bt)}var qt=2*(te?ae:ce)+bt+ee+Y/2,en=0;!te&&ze.text&&se==="bottom"&&ye<=0&&(qt+=en=qt/2,at+=en),we._hColorbarMoveTitle=en,we._hColorbarMoveCBTitle=at;var Jt=ee+Y,Zt=(te?je:pt)-Jt/2-(te?ae:0),Nt=(te?pt:je)-(te?Ye:ce+at-en);j.select("."+D.cbbg).attr("x",Zt).attr("y",Nt).attr(te?"width":"height",Math.max(qt-en,2)).attr(te?"height":"width",Math.max(Ye+Jt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var sn=it?Math.max(Vt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+sn).attr("y",(te?pt+ce-Ye:je)+(Dt?Sn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Ye-(te?2*ce+Sn:2*ae+sn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var rn=te?tt*qt:0,_n=te?0:(1-ot)*qt-at;if(rn=_e?Te.l-rn:-rn,_n=ve?Te.t-_n:-_n,j.attr("transform",a(rn,_n)),!te&&(ee||b(me).getAlpha()&&!b.equals(we.paper_bgcolor,me))){var wn=Pn.selectAll("text"),An=wn[0].length,Kn=j.select("."+D.cbbg).node(),fr=p.bBox(Kn),Un=p.getTranslate(j);wn.each(function(zr,Vr){var eo=An-1;if(Vr===0||Vr===eo){var Jr,Yr=p.bBox(this),to=p.getTranslate(this);if(Vr===eo){var co=Yr.right+to.x;(Jr=fr.right+Un.x+pt-ee-2+de-co)>0&&(Jr=0)}else if(Vr===0){var Fo=Yr.left+to.x;(Jr=fr.left+Un.x+pt+ee+2-Fo)<0&&(Jr=0)}Jr&&(An<3?this.setAttribute("transform","translate("+Jr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Zn={},tr=A[pe],Br=L[pe],$r=A[se],vr=L[se],qn=qt-Ue;te?(K==="pixels"?(Zn.y=ye,Zn.t=Ye*$r,Zn.b=Ye*vr):(Zn.t=Zn.b=0,Zn.yt=ye+Z*$r,Zn.yb=ye-Z*vr),q==="pixels"?(Zn.x=de,Zn.l=qt*tr,Zn.r=qt*Br):(Zn.l=qn*tr,Zn.r=qn*Br,Zn.xl=de-re*tr,Zn.xr=de+re*Br)):(K==="pixels"?(Zn.x=de,Zn.l=Ye*tr,Zn.r=Ye*Br):(Zn.l=Zn.r=0,Zn.xl=de+Z*tr,Zn.xr=de-Z*Br),q==="pixels"?(Zn.y=1-ye,Zn.t=qt*$r,Zn.b=qt*vr):(Zn.t=qn*$r,Zn.b=qn*vr,Zn.yt=ye-re*$r,Zn.yb=ye+re*vr));var gr=U.y<.5?"b":"t",sr=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var lr={r:we.width-Zt-rn,l:Zt+Zn.r,b:we.height-Nt-_n,t:Nt+Zn.b};_e&&ve?i.autoMargin(X,U._id,Zn):_e?X._fullLayout._reservedMargin[U._id][gr]=lr[gr]:ve||te?X._fullLayout._reservedMargin[U._id][sr]=lr[sr]:X._fullLayout._reservedMargin[U._id][gr]=lr[gr]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,Z,K,re=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),Z=y.align((re?U._uFrac:U._vFrac)+Y/q.w,re?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((re?U._vFrac:1-U._uFrac)-ee/q.h,re?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(Z,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),Z!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=Z,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?S.call("_guiRestyle",X,Y,U._traceIndex):S.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,s,n){var u=n(3400);d.exports=function(b){return u.isPlainObject(b.colorbar)}},55080:function(d,s,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,s,n){var u=n(42996),b=n(53756).counter,i=n(95376),S=n(88304).scales;function w(y){return"`"+y+"`"}i(S),d.exports=function(y,m){y=y||"";var a,c=(m=m||{}).cLetter||"c",h=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:y==="marker.line"),p="showScaleDflt"in m?m.showScaleDflt:c==="z",v=typeof m.colorscaleDflt=="string"?S[m.colorscaleDflt]:null,_=m.editTypeOverride||"",O=y?y+".":"";"colorAttr"in m?(a=m.colorAttr,m.colorAttr):w(O+(a={z:"z",c:"color"}[c]));var C=c+"auto",x=c+"min",R=c+"max",M=c+"mid",T={};T[x]=T[R]=void 0;var P={};P[C]=!1;var A={};return a==="color"&&(A.color={valType:"color",arrayOk:!0,editType:_||"style"},m.anim&&(A.color.anim=!0)),A[C]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(A.showscale={valType:"boolean",dflt:p,editType:"calc"},A.colorbar=u),m.noColorAxis||(A.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),A}},47128:function(d,s,n){var u=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(S,w,y){var m,a=S._fullLayout,c=y.vals,h=y.containerStr,p=h?b.nestedProperty(w,h).get():w,v=i(p),_=v.auto!==!1,O=v.min,C=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,c)},M=function(){return b.aggNums(Math.max,null,c)};O===void 0?O=R():_&&(O=p._colorAx&&u(O)?Math.min(O,R()):R()),C===void 0?C=M():_&&(C=p._colorAx&&u(C)?Math.max(C,M()):M()),_&&x!==void 0&&(C-x>x-O?O=x-(C-x):C-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",m))}},95504:function(d,s,n){var u=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(S,w){function y(_,O){var C=_["_"+O];C!==void 0&&(_[O]=C)}function m(_,O){var C=O.container?u.nestedProperty(_,O.container).get():_;if(C)if(C.coloraxis)C._colorAx=w[C.coloraxis];else{var x=i(C),R=x.auto;(R||x.min===void 0)&&y(C,O.min),(R||x.max===void 0)&&y(C,O.max),x.autocolorscale&&y(C,"colorscale")}}for(var a=0;a=0;R--,M++){var T=O[R];x[M]=[1-T[0],T[1]]}return x}function v(O,C){C=C||{};for(var x=O.domain,R=O.range,M=R.length,T=new Array(M),P=0;P1.3333333333333333-y?w:y}},67416:function(d,s,n){var u=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,S,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:u.constrain(Math.floor(3*i),0,2),S=y==="bottom"?0:y==="middle"?1:y==="top"?2:u.constrain(Math.floor(3*S),0,2),b[S][i]}},72760:function(d,s){s.selectMode=function(n){return n==="lasso"||n==="select"},s.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.openMode=function(n){return n==="drawline"||n==="drawopenpath"},s.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},s.selectingOrDrawing=function(n){return s.freeMode(n)||s.rectMode(n)}},86476:function(d,s,n){var u=n(29128),b=n(52264),i=n(89184),S=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var m=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var p=h.style;return p.position="fixed",p.left=0,p.right=0,p.top=0,p.bottom=0,p.zIndex=999999999,p.background="none",document.body.appendChild(h),h}function c(h){return u(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=m.wrapped,y.unhoverRaw=m.raw,y.init=function(h){var p,v,_,O,C,x,R,M,T=h.gd,P=1,A=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)A&&(P=Math.max(P-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(P,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=c($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,s,n){var u=n(95924),b=n(91200),i=n(52200).getGraphDiv,S=n(92456),w=d.exports={};w.wrapped=function(y,m,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+S.HOVERID),w.raw(y,m,a)},w.raw=function(y,m){var a=y._fullLayout,c=y._hoverdata;m||(m={}),m.target&&!y._dragged&&u.triggerHandler(y,"plotly_beforehover",m)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,m.target&&c&&y.emit("plotly_unhover",{event:m,points:c}))}},98192:function(d,s){s.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},s.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,s,n){var u=n(33428),b=n(3400),i=b.numberFormat,S=n(38248),w=n(49760),y=n(24040),m=n(76308),a=n(8932),c=b.strTranslate,h=n(72736),p=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,O=n(43028),C=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Re=ke&&R.getPatternAttr(ke.shape,0,"");if(Re){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Ye=R.getPatternAttr(ke.size,0,8),Je=R.getPatternAttr(ke.solidity,0,.3),Me=$e.uid;R.pattern(Ve,"point",Oe,Me,Re,Ye,Je,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(m.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(m.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Re){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Re)},R.translatePoint=function(Ve,$e,Oe,ke){var Re=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(S(Re)&&S(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Re).attr("y",We):$e.attr("transform",c(Re,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Re=u.select(this);R.translatePoint(ke,Re,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Re,We){$e.attr("display",Oe.isPtWithinRange(Ve,Re)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Re){var We=Re[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Ye=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Ye).each(function(Je){R.hideOutsideRangePoint(Je,u.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&S($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Re){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Re||We.dash||"";m.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Re){var We=(((Re||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";u.select(this).call(m.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=u.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=u.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var P=R.symbolNames.length;function A(Ve,$e,Oe,ke){var Re=Ve%100;return R.symbolFuncs[Re]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(S(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=P||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Re,We){for(var Ue=Re.length,Ze=I[ke],Ye=new Array(Ue),Je=0;Je=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Ye;Ye=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Ye,ke.selectedSizeFn&&(Ye=Ve.mrc=ke.selectedSizeFn(Ve));var Je=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=Je%200>=100;var Me=Qe(Ve,Oe),Fe=ce(Ve,Oe);$e.attr("d",A(Je,Ye,Me,Fe))}var je,tt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,tt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,tt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?m.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=m.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(m.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,St=Ve.mgt;St?Ge=!0:St=pt&&pt.type,b.isArrayOrTypedArray(St)&&(St=St[0],I[St]||(St=0));var Ft=Ue.pattern,zt=Ft&&R.getPatternAttr(Ft.shape,Ve.i,"");if(St&&St!=="none"){var Yt=Ve.mgc;Yt?Ge=!0:Yt=pt.color;var ln=Oe.uid;Ge&&(ln+="-"+Ve.i),R.gradient($e,Re,ln,St,[[0,Yt],[1,je]],"fill")}else if(zt){var tn=!1,Et=Ft.fgcolor;!Et&&We&&We.color&&(Et=We.color,tn=!0);var Ot=R.getPatternAttr(Et,Ve.i,We&&We.color||null),cn=R.getPatternAttr(Ft.bgcolor,Ve.i,null),Cn=Ft.fgopacity,Pn=R.getPatternAttr(Ft.size,Ve.i,8),Sn=R.getPatternAttr(Ft.solidity,Ve.i,.3);tn=tn||Ve.mcc||b.isArrayOrTypedArray(Ft.shape)||b.isArrayOrTypedArray(Ft.bgcolor)||b.isArrayOrTypedArray(Ft.fgcolor)||b.isArrayOrTypedArray(Ft.size)||b.isArrayOrTypedArray(Ft.solidity);var vt=Oe.uid;tn&&(vt+="-"+Ve.i),R.pattern($e,"point",Re,vt,zt,Pn,Sn,Ve.mcc,Ft.fillmode,cn,Ot,Cn)}else b.isArrayOrTypedArray(je)?m.fill($e,je[Ve.i]):m.fill($e,je);ot&&m.stroke($e,tt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=O.isBubble(Ve)?C(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Re.opacity,Ye=We.opacity,Je=Ue.opacity,Me=Ye!==void 0,Fe=Je!==void 0;(b.isArrayOrTypedArray(Ze)||Me||Fe)&&($e.selectedOpacityFn=function(zt){var Yt=zt.mo===void 0?Re.opacity:zt.mo;return zt.selected?Me?Ye:Yt:Fe?Je:_*Yt});var je=Re.color,tt=We.color,ot=Ue.color;(tt||ot)&&($e.selectedColorFn=function(zt){var Yt=zt.mcc||je;return zt.selected?tt||Yt:ot||Yt});var Ge=Re.size,ht=We.size,pt=Ue.size,St=ht!==void 0,Ft=pt!==void 0;return y.traceIs(Ve,"symbols")&&(St||Ft)&&($e.selectedSizeFn=function(zt){var Yt=zt.mrc||Ge/2;return zt.selected?St?ht/2:Yt:Ft?pt/2:Yt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Re.color,Ye=We.color,Je=Ue.color;return $e.selectedTextColorFn=function(Me){var Fe=Me.tc||Ze;return Me.selected?Ye||Fe:Je||(Ye?Fe:m.addOpacity(Fe,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Re=[];Oe.selectedOpacityFn&&Re.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Re.push(function(We,Ue){m.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Re.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Ye=Oe.selectedSizeFn(Ue);We.attr("d",A(R.symbolNumber(Ze),Ye,Qe(Ue,$e),ce(Ue,$e))),Ue.mrc2=Ye}),Re.length&&Ve.each(function(We){for(var Ue=u.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?Z(Ve[1]):te(Ve[0])}function te(Ve){var $e=u.round(Ve,2);return z=$e,$e}function Z(Ve){var $e=u.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Re=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Ye=Math.pow(Re*Re+We*We,.25),Je=Math.pow(Ue*Ue+Ze*Ze,.25),Me=(Je*Je*Re-Ye*Ye*Ue)*ke,Fe=(Je*Je*We-Ye*Ye*Ze)*ke,je=3*Je*(Ye+Je),tt=3*Ye*(Ye+Je);return[[te($e[0]+(je&&Me/je)),Z($e[1]+(je&&Fe/je))],[te($e[0]-(tt&&Me/tt)),Z($e[1]-(tt&&Fe/tt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Re=R.makeSelectedTextStyleFns($e);ke=Re.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Ye=u.select(this),Je=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(Je||Je===0){if(We){var Me=$e._module.formatLabels,Fe=Me?Me(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var tt=$e._meta||{};Je=b.texttemplateString(Je,Fe,Ue._d3locale,je,Ze,tt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Ye.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(Je).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Ye.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Re=u.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);m.fill(Re,We);var Ye=y.traceIs($e,"bar-like");j(Re,Ue,Ze,ke.mrc2||ke.mrc,Ye)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Re=[];for(Oe=1;Oe=Ye||zt>=Me&&zt<=Ye)&&(Yt<=Fe&&Yt>=Je||Yt>=Fe&&Yt<=Je)&&(Ve=[zt,Yt])}return Ve}R.steps=function(Ve){var $e=re[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+Z(Oe[0][1]),Re=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=tt),ee++,b.extendFlat({},tt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",pe($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=c($e,Oe)).trim(),Ve[Re]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Re]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Re=(this.getAttribute("transform")||"").replace(se,"");Re=(Re+=ke).trim(),this.setAttribute("transform",Re)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Re=u.select(this),We=Re.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Ye=(Re.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[c(Ue,Ze),"scale("+$e+","+Oe+")",c(-Ue,-Ze)],Ye&&ke.push(Ye),Re.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ye,ve,_e,we,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function Qe(Ve,$e){var Oe,ke,Re=Ve.ma;Re===void 0&&((Re=$e.marker.angle)&&!b.isArrayOrTypedArray(Re)||(Re=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Ye=$e._yA;if(!Ze||!Ye)return 90;Oe=Ze.c2p(Ve.x),ke=Ye.c2p(Ve.y)}if($e._geo){var Je,Me=Ve.lonlat[0],Fe=Ve.lonlat[1],je=$e._geo.project([Me,Fe+1e-5]),tt=$e._geo.project([Me+1e-5,Fe]),ot=Pe(tt[1]-ke,tt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")Je=Re/180*Math.PI;else if(We==="previous"){var ht=Me/180*Math.PI,pt=Fe/180*Math.PI,St=de/180*Math.PI,Ft=ye/180*Math.PI,zt=St-ht,Yt=Ie(Ft)*ze(zt),ln=ze(Ft)*Ie(pt)-Ie(Ft)*ze(pt)*Ie(zt);Je=-Pe(Yt,ln)-Math.PI,de=Me,ye=Fe}var tn=De(ot,[Ie(Je),0]),Et=De(Ge,[ze(Je),0]);Re=Pe(tn[1]+Et[1],tn[0]+Et[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===we+1||(Re=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===we+1&&S(Oe)&&S(ke)){var Ot=Oe-ve,cn=ke-_e,Cn=$e.line&&$e.line.shape||"",Pn=Cn.slice(Cn.length-1);Pn==="h"&&(cn=0),Pn==="v"&&(Ot=0),Re+=Pe(cn,Ot)/Math.PI*180+90}else Re=null}return ve=Oe,_e=ke,we=Ve.i,Te=$e.uid,Re}R.getMarkerAngle=Qe},71984:function(d,s,n){var u,b,i,S,w=n(21984),y=n(33428).round,m="M0,0Z",a=Math.sqrt(2),c=Math.sqrt(3),h=Math.PI,p=Math.cos,v=Math.sin;function _(C){return C===null}function O(C,x,R){if(!(C&&C%360!=0||x))return R;if(i===C&&S===x&&u===R)return b;function M(X,te){var Z=p(X),K=v(X),re=te[0],q=te[1]+(x||0);return[re*Z-q*K,re*K+q*Z]}i=C,S=x,u=R;for(var T=C/180*h,P=0,A=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var O,C=_[0].trace,x=C.error_x||{},R=C.error_y||{};C.ids&&(O=function(A){return A.id});var M=S.hasMarkers(C)&&C.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=u.select(this).selectAll("g.errorbar").data(_,O);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var P=T.enter().append("g").classed("errorbar",!0);p&&P.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,m.layerClipId,w),T.each(function(A){var L=u.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(A,c,h);if(!M||A.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?p&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?p&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,s,n){var u=n(33428),b=n(76308);d.exports=function(i){i.each(function(S){var w=S[0].trace,y=w.error_y||{},m=w.error_x||{},a=u.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),m.copy_ystyle&&(m=y),a.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(b.stroke,m.color)})}},55756:function(d,s,n){var u=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:u({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,s,n){var u=n(3400),b=n(24040);function i(S,w,y,m){m=m||u.identity,Array.isArray(S)&&(w[0][y]=m(S))}d.exports=function(S){var w=S.calcdata,y=S._fullLayout;function m(v){return function(_){return u.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&c.indexRe[0]._length||xt<0||xt>We[0]._length)return v.unhoverRaw(_e,we)}else vt="xpx"in we?we.xpx:Re[0]._length/2,xt="ypx"in we?we.ypx:We[0]._length/2;if(we.pointerX=vt+Re[0]._offset,we.pointerY=xt+We[0]._offset,tt="xval"in we?C.flat(ze,we.xval):C.p2c(Re,vt),ot="yval"in we?C.flat(ze,we.yval):C.p2c(We,xt),!b(tt[0])||!b(ot[0]))return S.warn("Fx.hover failed",we,_e),v.unhoverRaw(_e,we)}var Vt=1/0;function Dt(Hn,ar){for(ht=0;htOt&&(cn.splice(0,Ot),Vt=cn[0].distance),$e&&je!==0&&cn.length===0){Et.distance=je,Et.index=!1;var oo=St._module.hoverPoints(Et,ln,tn,"closest",{hoverLayer:De._hoverlayer});if(oo&&(oo=oo.filter(function(Yn){return Yn.spikeDistance<=je})),oo&&oo.length){var io,Do=oo.filter(function(Yn){return Yn.xa.showspikes&&Yn.xa.spikesnap!=="hovered data"});if(Do.length){var jn=Do[0];b(jn.x0)&&b(jn.y0)&&(io=at(jn),(!Pn.vLinePoint||Pn.vLinePoint.spikeDistance>io.spikeDistance)&&(Pn.vLinePoint=io))}var Rr=oo.filter(function(Yn){return Yn.ya.showspikes&&Yn.ya.spikesnap!=="hovered data"});if(Rr.length){var On=Rr[0];b(On.x0)&&b(On.y0)&&(io=at(On),(!Pn.hLinePoint||Pn.hLinePoint.spikeDistance>io.spikeDistance)&&(Pn.hLinePoint=io))}}}}}function it(Hn,ar,Dr){for(var Sr,Zr=null,go=1/0,oo=0;oo0&&Math.abs(Hn.distance)wn-1;An--)Zn(cn[An]);cn=Kn,en()}var tr=_e._hoverdata,Br=[],$r=me(_e),vr=pe(_e);for(Ge=0;Ge1||cn.length>1)||Me==="closest"&&Sn&&cn.length>1,_o=p.combine(De.plot_bgcolor||p.background,De.paper_bgcolor),$o=U(cn,{gd:_e,hovermode:Me,rotateLabels:Fo,bgColor:_o,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),Mo=$o.hoverLabels;if(C.isUnifiedHover(Me)||(function(Hn,ar,Dr,Sr){var Zr,go,oo,io,Do,jn,Rr,On=ar?"xa":"ya",Yn=ar?"ya":"xa",ir=0,kr=1,Er=Hn.size(),Gt=new Array(Er),on=0,an=Sr.minX,Tn=Sr.maxX,zn=Sr.minY,Gn=Sr.maxY,Lr=function(Fn){return Fn*Dr._invScaleX},Ur=function(Fn){return Fn*Dr._invScaleY};function qr(Fn){var dr=Fn[0],xr=Fn[Fn.length-1];if(go=dr.pmin-dr.pos-dr.dp+dr.size,oo=xr.pos+xr.dp+xr.size-dr.pmax,go>.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp+=go;Zr=!1}if(!(oo<.01)){if(go<-.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp-=oo;Zr=!1}if(Zr){var Oo=0;for(io=0;iodr.pmax&&Oo++;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos>dr.pmax-1&&(jn.del=!0,Oo--);for(io=0;io=0;Do--)Fn[Do].dp-=oo;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos+jn.dp+jn.size>dr.pmax&&(jn.del=!0,Oo--)}}}for(Hn.each(function(Fn){var dr=Fn[On],xr=Fn[Yn],Oo=dr._id.charAt(0)==="x",mi=dr.range;on===0&&mi&&mi[0]>mi[1]!==Oo&&(kr=-1);var Di=0,To=Oo?Dr.width:Dr.height;if(Dr.hovermode==="x"||Dr.hovermode==="y"){var Ia,Ds,fs=te(Fn,ar),zi=Fn.anchor,yl=zi==="end"?-1:1;if(zi==="middle")Ds=(Ia=Fn.crossPos+(Oo?Ur(fs.y-Fn.by/2):Lr(Fn.bx/2+Fn.tx2width/2)))+(Oo?Ur(Fn.by):Lr(Fn.bx));else if(Oo)Ds=(Ia=Fn.crossPos+Ur(k+fs.y)-Ur(Fn.by/2-k))+Ur(Fn.by);else{var Bs=Lr(yl*k+fs.x),yf=Bs+Lr(yl*Fn.bx);Ia=Fn.crossPos+Math.min(Bs,yf),Ds=Fn.crossPos+Math.max(Bs,yf)}Oo?zn!==void 0&&Gn!==void 0&&Math.min(Ds,Gn)-Math.max(Ia,zn)>1&&(xr.side==="left"?(Di=xr._mainLinePosition,To=Dr.width):To=xr._mainLinePosition):an!==void 0&&Tn!==void 0&&Math.min(Ds,Tn)-Math.max(Ia,an)>1&&(xr.side==="top"?(Di=xr._mainLinePosition,To=Dr.height):To=xr._mainLinePosition)}Gt[on++]=[{datum:Fn,traceIndex:Fn.trace.index,dp:0,pos:Fn.pos,posref:Fn.posref,size:Fn.by*(Oo?A:1)/2,pmin:Di,pmax:To}]}),Gt.sort(function(Fn,dr){return Fn[0].posref-dr[0].posref||kr*(dr[0].traceIndex-Fn[0].traceIndex)});!Zr&&ir<=Er;){for(ir++,Zr=!0,io=0;io.01&&Nr.pmin===Eo.pmin&&Nr.pmax===Eo.pmax){for(Do=wo.length-1;Do>=0;Do--)wo[Do].dp+=go;for(Cr.push.apply(Cr,wo),Gt.splice(io+1,1),Rr=0,Do=Cr.length-1;Do>=0;Do--)Rr+=Cr[Do].dp;for(oo=Rr/Cr.length,Do=Cr.length-1;Do>=0;Do--)Cr[Do].dp-=oo;Zr=!1}else io++}Gt.forEach(qr)}for(io=Gt.length-1;io>=0;io--){var zo=Gt[io];for(Do=zo.length-1;Do>=0;Do--){var Qt=zo[Do],Mn=Qt.datum;Mn.offset=Qt.dp,Mn.del=Qt.del}}}(Mo,Fo,De,$o.commonLabelBoundingBox),Z(Mo,Fo,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var pi=O.getComponentMethod("annotations","hasClickToShow")(_e,Br);c(u.select(Ie),pi?"pointer":"")}Ie&&!Pe&&function(Hn,ar,Dr){if(!Dr||Dr.length!==Hn._hoverdata.length)return!0;for(var Sr=Dr.length-1;Sr>=0;Sr--){var Zr=Dr[Sr],go=Hn._hoverdata[Sr];if(Zr.curveNumber!==go.curveNumber||String(Zr.pointNumber)!==String(go.pointNumber)||String(Zr.pointNumbers)!==String(go.pointNumbers))return!0}return!1}(_e,0,tr)&&(tr&&_e.emit("plotly_unhover",{event:we,points:tr}),_e.emit("plotly_hover",{event:we,points:_e._hoverdata,xaxes:Re,yaxes:We,xvals:tt,yvals:ot}))})(ae,ce,de,ye,ve)})},s.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ye=ce.gd,ve=me(ye),_e=pe(ye),we=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,Qe=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Re=Math.min(Qe,Ve),We=Math.max(Qe,Ve),Ue=Ie.trace;if(O.traceIs(Ue,"gl3d")){var Ze=ye._fullLayout[Ue.scene]._scene.container,Ye=Ze.offsetLeft,Je=Ze.offsetTop;Oe+=Ye,ke+=Ye,Re+=Je,We+=Je}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Re+ve,y1:We+ve},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||p.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ye,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||p.background,container:u.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return we.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ye=de._fullLayout,ve=ce.hovermode,_e=ce.rotateLabels,we=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,Qe=ae[0],Ve=Qe.xa,$e=Qe.ya,Oe=ve.charAt(0),ke=Oe+"Label",Re=Qe[ke];if(Re===void 0&&Ve.type==="multicategory")for(var We=0;Weye.width-vr?(Zn=ye.width-vr,_n.attr("d","M"+(vr-k)+",0L"+vr+","+$r+k+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H"+(vr-2*k)+"Z")):_n.attr("d","M0,0L"+k+","+$r+k+"H"+vr+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H-"+k+"Z"),ht.minX=Zn-vr,ht.maxX=Zn+vr,Ve.side==="top"?(ht.minY=tr-(2*I+Br.height),ht.maxY=tr-I):(ht.minY=tr+I,ht.maxY=tr+(2*I+Br.height))}else{var qn,gr,sr;$e.side==="right"?(qn="start",gr=1,sr="",Zn=Ve._offset+Ve._length):(qn="end",gr=-1,sr="-",Zn=Ve._offset),tr=$e._offset+(Qe.y0+Qe.y1)/2,wn.attr("text-anchor",qn),_n.attr("d","M0,0L"+sr+k+","+k+"V"+(I+Br.height/2)+"h"+sr+(2*I+Br.width)+"V-"+(I+Br.height/2)+"H"+sr+k+"V-"+k+"Z"),ht.minY=tr-(I+Br.height/2),ht.maxY=tr+(I+Br.height/2),$e.side==="right"?(ht.minX=Zn+k,ht.maxX=Zn+k+(2*I+Br.width)):(ht.minX=Zn-k-(2*I+Br.width),ht.maxX=Zn-k);var lr,zr=Br.height/2,Vr=Ze-Br.top-zr,eo="clip"+ye._uid+"commonlabel"+$e._id;if(Zn=0?xt:st+Dt=0?st:Zt+Dt=0?Sn:vt+it=0?vt:Nt+it=0,rn.idealAlign!=="top"&&co||!Fo?co?(zr+=eo/2,rn.anchor="start"):rn.anchor="middle":(zr-=eo/2,rn.anchor="end"),rn.crossPos=zr;else{if(rn.pos=zr,co=lr+Vr/2+_o<=Ye,Fo=lr-Vr/2-_o>=0,rn.idealAlign!=="left"&&co||!Fo)if(co)lr+=Vr/2,rn.anchor="start";else{rn.anchor="middle";var $o=_o/2,Mo=lr+$o-Ye,pi=lr-$o;Mo>0&&(lr-=Mo),pi<0&&(lr+=-pi)}else lr-=Vr/2,rn.anchor="end";rn.crossPos=lr}$r.attr("text-anchor",rn.anchor),qn&&vr.attr("text-anchor",rn.anchor),_n.attr("transform",w(lr,zr)+(_e?y(T):""))}),{hoverLabels:sn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ye,ve,_e){var we="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=S.templateString(ae.name,ae.trace._meta)),we=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
"),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
"),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ve?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(we===""&&_e.remove(),Te=we);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ve&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=S.hovertemplateString(ze,De,ye._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(Qe,Ve){return we=Y(Ve,ae.nameLength),""})}return[Te,we]}function te(ae,ce){var de=0,ye=ae.offset;return ce&&(ye*=-D,de=ae.offset*L),{x:de,y:ye}}function Z(ae,ce,de,ye){var ve=function(we){return we*de},_e=function(we){return we*ye};ae.each(function(we){var Te=u.select(this);if(we.del)return Te.remove();var Pe,Ie,ze,De,Qe=Te.select("text.nums"),Ve=we.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=we).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(we,ce),Re=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ve(we.bx/2+we.tx2width/2)+","+_e(We-we.by/2)+"h"+ve(we.bx)+"v"+_e(we.by)+"h-"+ve(we.bx)+"Z":"M0,0L"+ve($e*k+Re)+","+_e(k+We)+"v"+_e(we.by/2-k)+"h"+ve($e*we.bx)+"v-"+_e(we.by)+"H"+ve($e*k+Re)+"V"+_e(We-k)+"Z");var Ze=Re+Oe.textShiftX,Ye=We+we.ty0-we.by/2+I,Je=we.textAlign||"auto";Je!=="auto"&&(Je==="left"&&Ve!=="start"?(Qe.attr("text-anchor","start"),Ze=Ue?-we.bx/2-we.tx2width/2+I:-we.bx-I):Je==="right"&&Ve!=="end"&&(Qe.attr("text-anchor","end"),Ze=Ue?we.bx/2-we.tx2width/2-I:we.bx+I)),Qe.call(a.positionText,ve(Ze),_e(Ye)),we.tx2width&&(Te.select("text.name").call(a.positionText,ve(Oe.text2ShiftX+Oe.alignShift*I+Re),_e(We+we.ty0-we.by/2+I)),Te.select("rect").call(h.setRect,ve(Oe.text2ShiftX+(Oe.alignShift-1)*we.tx2width/2+Re),_e(We-we.by/2-1),ve(we.tx2width),_e(we.by+2)))})}function K(ae,ce){var de=ae.index,ye=ae.trace||{},ve=ae.cd[0],_e=ae.cd[de]||{};function we(Qe){return Qe||b(Qe)&&Qe===0}var Te=Array.isArray(de)?function(Qe,Ve){var $e=S.castOption(ve,de,Qe);return we($e)?$e:S.extractOption({},ye,"",Ve)}:function(Qe,Ve){return S.extractOption(_e,ye,Qe,Ve)};function Pe(Qe,Ve,$e){var Oe=Te(Ve,$e);we(Oe)&&(ae[Qe]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ye.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=S.constrain(ae.x0,0,ae.xa._length),ae.x1=S.constrain(ae.x1,0,ae.xa._length),ae.y0=S.constrain(ae.y0,0,ae.ya._length),ae.y1=S.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ye.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ye.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function re(ae,ce,de){var ye,ve,_e=de.container,we=de.fullLayout,Te=we._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=p.combine(we.plot_bgcolor,we.paper_bgcolor);if(Ie){var Qe,Ve,$e=ce.hLinePoint;ye=$e&&$e.xa,(ve=$e&&$e.ya).spikesnap==="cursor"?(Qe=Pe.pointerX,Ve=Pe.pointerY):(Qe=ye._offset+$e.x,Ve=ve._offset+$e.y);var Oe,ke,Re=i.readability($e.color,De)<1.5?p.contrast(De):$e.color,We=ve.spikemode,Ue=ve.spikethickness,Ze=ve.spikecolor||Re,Ye=_.getPxPosition(ae,ve);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Ye,ke=Qe),We.indexOf("across")!==-1){var Je=ve._counterDomainMin,Me=ve._counterDomainMax;ve.anchor==="free"&&(Je=Math.min(Je,ve.position),Me=Math.max(Me,ve.position)),Oe=Te.l+Je*Te.w,ke=Te.l+Me*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ve.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ye+(ve.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Fe,je,tt=ce.vLinePoint;ye=tt&&tt.xa,ve=tt&&tt.ya,ye.spikesnap==="cursor"?(Fe=Pe.pointerX,je=Pe.pointerY):(Fe=ye._offset+tt.x,je=ve._offset+tt.y);var ot,Ge,ht=i.readability(tt.color,De)<1.5?p.contrast(De):tt.color,pt=ye.spikemode,St=ye.spikethickness,Ft=ye.spikecolor||ht,zt=_.getPxPosition(ae,ye);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=zt,Ge=je),pt.indexOf("across")!==-1){var Yt=ye._counterDomainMin,ln=ye._counterDomainMax;ye.anchor==="free"&&(Yt=Math.min(Yt,ye.position),ln=Math.max(ln,ye.position)),ot=Te.t+(1-ln)*Te.h,Ge=Te.t+(1-Yt)*Te.h}_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St,stroke:Ft,"stroke-dasharray":h.dashStyle(ye.spikedash,St)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Fe,cy:zt-(ye.side!=="top"?St:-St),r:St,fill:Ft}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ye=ce[ae+"a"],ve=ce[ae+"Val"],_e=ce.cd[0];if(ye.type==="category"||ye.type==="multicategory")ve=ye._categoriesMap[ve];else if(ye.type==="date"){var we=ce.trace[ae+"periodalignment"];if(we){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;we==="end"?ve+=ze:we==="middle"&&(ve+=ze/2)}ve=ye.d2c(ve)}return _e&&_e.t&&_e.t.posLetter===ye._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ve+=_e.t.dPos)),ve}function me(ae){return ae.offsetTop+ae.clientTop}function pe(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ye=ce.getBoundingClientRect(),ve=ye.left,_e=ye.top,we=ve+ye.width,Te=_e+ye.height,Pe=S.apply3DTransform(de._invTransform)(ve,_e),Ie=S.apply3DTransform(de._invTransform)(we,Te),ze=Pe[0],De=Pe[1],Qe=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:Qe-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,Qe),right:Math.max(ze,Qe),bottom:Math.max(De,Ve)}}},16132:function(d,s,n){var u=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(S,w,y,m){m=m||{};var a=w.legend;function c(h){m.font[h]||(m.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(m.font||(m.font={}),c("size"),c("family"),c("color"),a?(m.bgcolor||(m.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),m.bordercolor||(m.bordercolor=w.legend.bordercolor)):m.bgcolor||(m.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",m.bgcolor),y("hoverlabel.bordercolor",m.bordercolor),y("hoverlabel.namelength",m.namelength),u.coerceFont(y,"hoverlabel.font",m.font),y("hoverlabel.align",m.align)}},41008:function(d,s,n){var u=n(3400),b=n(65460);d.exports=function(i,S){function w(y,m){return S[y]!==void 0?S[y]:u.coerce(i,S,b,y,m)}return w("clickmode"),w("hovermode")}},93024:function(d,s,n){var u=n(33428),b=n(3400),i=n(86476),S=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:S.getDistanceFunction,getClosest:S.getClosest,inbox:S.inbox,quadrature:S.quadrature,appendArrayPointValue:S.appendArrayPointValue,castHoverOption:function(m,a,c){return b.castOption(m,a,"hoverlabel."+c)},castHoverinfo:function(m,a,c){return b.castOption(m,c,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:m._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(m){var a=b.isD3Selection(m)?m:u.select(m);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,s,n){var u=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=u.HOVERFONT,i.size.dflt=u.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,s,n){var u=n(3400),b=n(65460),i=n(41008),S=n(16132);d.exports=function(w,y){function m(p,v){return u.coerce(w,y,b,p,v)}i(w,y)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var a=y._has("mapbox"),c=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||c)&&h===1||a&&c&&h===2)&&(y.dragmode="pan"),S(w,y,m),u.coerceFont(m,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,s,n){var u=n(3400),b=n(16132),i=n(65460);d.exports=function(S,w){b(S,w,function(y,m){return u.coerce(S,w,i,y,m)})}},12704:function(d,s,n){var u=n(3400),b=n(53756).counter,i=n(86968).u,S=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(h,p,v){var _=p[v+"axes"],O=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:O.length?O:void 0}function a(h,p,v,_,O,C){var x=p(h+"gap",v),R=p("domain."+h);p(h+"side",_);for(var M=new Array(O),T=R[0],P=(R[1]-T)/(O-x),A=P*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),A._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;P&&p._splomGridDflt&&(k=p._splomGridDflt.xside,I=p._splomGridDflt.yside),A._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete p.grid}function j(U,X){return u.coerce(v,A,y,U,X)}},contentDefaults:function(h,p){var v=p.grid;if(v&&v._domains){var _,O,C,x,R,M,T,P=h.grid||{},A=p._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=P.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(c==="legend"?1:0));if(Q===!1&&(p[c]=void 0),(Q!==!1||_.uirevision)&&(C("uirevision",p.uirevision),Q!==!1)){C("borderwidth");var j,U,X,te=C("orientation")==="h",Z=C("yref")==="paper",K=C("xref")==="paper",re="left";if(te?(j=0,u.getComponentMethod("rangeslider","isVisible")(h.xaxis)?Z?(U=1.1,X="bottom"):(U=1,X="top"):Z?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,re="right")),b.coerce(_,O,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,O,{y:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:U}},"y"),C("traceorder",D),m.isGrouped(p[c])&&C("tracegroupgap"),C("entrywidth"),C("entrywidthmode"),C("itemsizing"),C("itemwidth"),C("itemclick"),C("itemdoubleclick"),C("groupclick"),C("xanchor",re),C("yanchor",X),C("valign"),b.noneOrAll(_,O,["x","y"]),C("title.text")){C("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(C,"title.font",q)}}}}d.exports=function(c,h,p){var v,_=p.slice(),O=h.shapes;if(O)for(v=0;v1)}var ye=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+Z).remove(),i.autoMargin(X,Y);var ve=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",Z,function(Ve){Ve.append("rect")}),we=b.ensureSingle(ve,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});we.call(a.stroke,re.bordercolor).call(a.fill,re.bgcolor).style("stroke-width",re.borderwidth+"px");var Te,Pe=b.ensureSingle(ve,"g","scrollbox"),Ie=re.title;re._titleWidth=0,re._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(m.font,Ie.font).text(Ie.text),$(Te,Pe,X,re,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ve,"rect","scrollbar",function(Ve){Ve.attr(p.scrollBarEnterAttrs).call(a.fill,p.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var Qe=De.selectAll("g.traces").data(b.identity);Qe.enter().append("g").attr("class","traces"),Qe.exit().remove(),Qe.style("opacity",function(Ve){var $e=Ve[0].trace;return S.traceIs($e,"pie-like")?ye.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){u.select(this).call(k,X,re)}).call(R,X,re).each(function(){ee||u.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Re=Ve._fullLayout,We=U(ke);ke||(ke=Re[We]);var Ue=Re._size,Ze=M.isVertical(ke),Ye=M.isGrouped(ke),Je=ke.entrywidthmode==="fraction",Me=ke.borderwidth,Fe=2*Me,je=p.itemGap,tt=ke.itemwidth+2*je,ot=2*(Me+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",St=ke.tracegroupgap,Ft={};ke._maxHeight=Math.max(ht||pt?Re.height/2:Ue.h,30);var zt=0;ke._width=0,ke._height=0;var Yt=function(en){var Jt=0,Zt=0,Nt=en.title.side;return Nt&&(Nt.indexOf("left")!==-1&&(Jt=en._titleWidth),Nt.indexOf("top")!==-1&&(Zt=en._titleHeight)),[Jt,Zt]}(ke);if(Ze)Oe.each(function(en){var Jt=en[0].height;m.setTranslate(this,Me+Yt[0],Me+Yt[1]+ke._height+Jt/2+je),ke._height+=Jt,ke._width=Math.max(ke._width,en[0].width)}),zt=tt+ke._width,ke._width+=je+tt+Fe,ke._height+=ot,Ye&&($e.each(function(en,Jt){m.setTranslate(this,0,Jt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var ln=Q(ke),tn=ke.x<0||ke.x===0&&ln==="right",Et=ke.x>1||ke.x===1&&ln==="left",Ot=pt||ht,cn=Re.width/2;ke._maxWidth=Math.max(tn?Ot&&ln==="left"?Ue.l+Ue.w:cn:Et?Ot&&ln==="right"?Ue.r+Ue.w:cn:Ue.w,2*tt);var Cn=0,Pn=0;Oe.each(function(en){var Jt=L(en,ke,tt);Cn=Math.max(Cn,Jt),Pn+=Jt}),zt=null;var Sn=0;if(Ye){var vt=0,xt=0,st=0;$e.each(function(){var en=0,Jt=0;u.select(this).selectAll("g.traces").each(function(Nt){var sn=L(Nt,ke,tt),rn=Nt[0].height;m.setTranslate(this,Yt[0],Yt[1]+Me+je+rn/2+Jt),Jt+=rn,en=Math.max(en,sn),Ft[Nt[0].trace.legendgroup]=en});var Zt=en+je;xt>0&&Zt+Me+xt>ke._maxWidth?(Sn=Math.max(Sn,xt),xt=0,st+=vt+St,vt=Jt):vt=Math.max(vt,Jt),m.setTranslate(this,xt,st),xt+=Zt}),ke._width=Math.max(Sn,xt)+Me,ke._height=st+vt+ot}else{var bt=Oe.size(),Vt=Pn+Fe+(bt-1)*je=ke._maxWidth&&(Sn=Math.max(Sn,Bt),it=0,at+=Dt,ke._height+=Dt,Dt=0),m.setTranslate(this,Yt[0]+Me+it,Yt[1]+Me+at+Jt/2+je),Bt=it+Zt+je,it+=Nt,Dt=Math.max(Dt,Jt)}),Vt?(ke._width=it+Fe,ke._height=Dt+ot):(ke._width=Math.max(Sn,Bt)+Fe,ke._height+=Dt+ot)}}ke._width=Math.ceil(Math.max(ke._width+Yt[0],ke._titleWidth+2*(Me+p.titlePad))),ke._height=Math.ceil(Math.max(ke._height+Yt[1],ke._titleHeight+2*(Me+p.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var _t=Ve._context.edits,qt=_t.legendText||_t.legendPosition;Oe.each(function(en){var Jt=u.select(this).select("."+We+"toggle"),Zt=en[0].height,Nt=en[0].trace.legendgroup,sn=L(en,ke,tt);Ye&&Nt!==""&&(sn=Ft[Nt]);var rn=qt?tt:zt||sn;Ze||Je||(rn+=je/2),m.setRect(Jt,0,-Zt/2,rn,Zt)})}(X,De,Qe,re)},function(){var Ve,$e,Oe,ke,Re=q._size,We=re.borderwidth,Ue=re.xref==="paper",Ze=re.yref==="paper";if(Ie.text&&function(Ot,cn,Cn){if(cn.title.side==="top center"||cn.title.side==="top right"){var Pn=cn.title.font.size*_,Sn=0,vt=Ot.node(),xt=m.bBox(vt).width;cn.title.side==="top center"?Sn=.5*(cn._width-2*Cn-2*p.titlePad-xt):cn.title.side==="top right"&&(Sn=cn._width-2*Cn-2*p.titlePad-xt),c.positionText(Ot,Cn+p.titlePad+Sn,Cn+Pn)}}(Te,re,We),!ee){var Ye,Je;Ye=Ue?Re.l+Re.w*re.x-O[Q(re)]*re._width:q.width*re.x-O[Q(re)]*re._width,Je=Ze?Re.t+Re.h*(1-re.y)-O[j(re)]*re._effHeight:q.height*(1-re.y)-O[j(re)]*re._effHeight;var Me=function(Ot,cn,Cn,Pn){var Sn=Ot._fullLayout,vt=Sn[cn],xt=Q(vt),st=j(vt),bt=vt.xref==="paper",Vt=vt.yref==="paper";Ot._fullLayout._reservedMargin[cn]={};var Dt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:Sn.width-Cn,l:Cn+vt._width,b:Sn.height-Pn,t:Pn+vt._effHeight};if(bt&&Vt)return i.autoMargin(Ot,cn,{x:vt.x,y:vt.y,l:vt._width*O[xt],r:vt._width*C[xt],b:vt._effHeight*C[st],t:vt._effHeight*O[st]});bt?Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]:Vt||vt.orientation==="v"?Ot._fullLayout._reservedMargin[cn][it]=at[it]:Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]}(X,Y,Ye,Je);if(Me)return;if(q.margin.autoexpand){var Fe=Ye,je=Je;Ye=Ue?b.constrain(Ye,0,q.width-re._width):Fe,Je=Ze?b.constrain(Je,0,q.height-re._effHeight):je,Ye!==Fe&&b.log("Constrain "+Y+".x to make legend fit inside graph"),Je!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}m.setTranslate(ve,Ye,Je)}if(ze.on(".drag",null),ve.on("wheel",null),ee||re._height<=re._maxHeight||X._context.staticPlot){var tt=re._effHeight;ee&&(tt=re._height),we.attr({width:re._width-We,height:tt-We,x:We/2,y:We/2}),m.setTranslate(Pe,0,0),_e.select("rect").attr({width:re._width-2*We,height:tt-2*We,x:We,y:We}),m.setClipUrl(Pe,Z,X),m.setRect(ze,0,0,0,0),delete re._scrollY}else{var ot,Ge,ht,pt=Math.max(p.scrollBarMinHeight,re._effHeight*re._effHeight/re._height),St=re._effHeight-pt-2*p.scrollBarMargin,Ft=re._height-re._effHeight,zt=St/Ft,Yt=Math.min(re._scrollY||0,Ft);we.attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-2*We,x:We,y:We+Yt}),m.setClipUrl(Pe,Z,X),Et(Yt,pt,zt),ve.on("wheel",function(){Et(Yt=b.constrain(re._scrollY+u.event.deltaY/St*Ft,0,Ft),pt,zt),Yt!==0&&Yt!==Ft&&u.event.preventDefault()});var ln=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;ot=Ot.type==="touchstart"?Ot.changedTouches[0].clientY:Ot.clientY,ht=Yt}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.buttons===2||Ot.ctrlKey||(Ge=Ot.type==="touchmove"?Ot.changedTouches[0].clientY:Ot.clientY,Yt=function(cn,Cn,Pn){var Sn=(Pn-Cn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});ze.call(ln);var tn=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;Ot.type==="touchstart"&&(ot=Ot.changedTouches[0].clientY,ht=Yt)}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.type==="touchmove"&&(Ge=Ot.changedTouches[0].clientY,Yt=function(cn,Cn,Pn){var Sn=(Cn-Pn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});Pe.call(tn)}function Et(Ot,cn,Cn){re._scrollY=X._fullLayout[Y]._scrollY=Ot,m.setTranslate(Pe,0,-Ot),m.setRect(ze,re._width,p.scrollBarMargin+Ot*Cn,p.scrollBarWidth,cn),_e.select("rect").attr("y",We+Ot)}X._context.edits.legendPosition&&(ve.classed("cursor-move",!0),y.init({element:ve.node(),gd:X,prepFn:function(){var Ot=m.getTranslate(ve);Oe=Ot.x,ke=Ot.y},moveFn:function(Ot,cn){var Cn=Oe+Ot,Pn=ke+cn;m.setTranslate(ve,Cn,Pn),Ve=y.align(Cn,re._width,Re.l,Re.l+Re.w,re.xanchor),$e=y.align(Pn+re._height,-re._height,Re.t+Re.h,Re.t,re.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var Ot={};Ot[Y+".x"]=Ve,Ot[Y+".y"]=$e,S.call("_guiRelayout",X,Ot)}},clickFn:function(Ot,cn){var Cn=K.selectAll("g.traces").filter(function(){var Pn=this.getBoundingClientRect();return cn.clientX>=Pn.left&&cn.clientX<=Pn.right&&cn.clientY>=Pn.top&&cn.clientY<=Pn.bottom});Cn.size()>0&&D(X,ve,Cn,Ot,cn)}}))}],X)}}function L(X,te,Z){var K=X[0],re=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:Z+(Y||re)}function D(X,te,Z,K,re){var q=Z.data()[0][0].trace,Y={event:re,node:Z.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),S.traceIs(q,"pie-like")&&(Y.label=Z.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(Z,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(Z,X,K))}function k(X,te,Z){var K,re,q=U(Z),Y=X.data()[0][0],ee=Y.trace,me=S.traceIs(ee,"pie-like"),pe=!Z._inHover&&te._context.edits.legendText&&!me,se=Z._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,re=Y.groupTitle.font):(re=Z.font,Z.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(m.font,re).text(pe?I(K,se):K);var ce=Z.itemwidth+2*p.itemGap;c.positionText(ae,ce,0),pe?ae.call(c.makeEditable,{gd:te,text:K}).call($,X,te,Z).on("edit",function(de){this.text(I(de,se)).call($,X,te,Z);var ye=Y.trace._fullInput||{},ve={};if(S.hasTransform(ye,"groupby")){var _e=S.getTransformIndices(ye,"groupby"),we=_e[_e.length-1],Te=b.keyedContainer(ye,"transforms["+we+"].styles","target","value.name");Te.set(Y.trace._group,de),ve=Te.constructUpdate()}else ve.name=de;return ye._isShape?S.call("_guiRelayout",te,"shapes["+ee.index+"].name",ve.name):S.call("_guiRestyle",te,ve,ee.index)}):$(ae,X,te,Z)}function I(X,te){var Z=Math.max(4,te);if(X&&X.trim().length>=Z/2)return X;for(var K=Z-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,Z){var K,re=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",Z+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimere&&(q=Math.max(q-1,1)),D(te,ee,X,q,u.event)}}))}function $(X,te,Z,K,re){K._inHover&&X.attr("data-notex",!0),c.convertToTspans(X,Z,function(){(function(q,Y,ee,me){var pe=q.data()[0][0];if(ee._inHover||!pe||pe.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ye,ve=ee.borderwidth,_e=(me===T?ee.title.font:pe.groupTitle?pe.groupTitle.font:ee.font).size*_;if(ae){var we=m.bBox(ae);de=we.height,ye=we.width,me===T?m.setTranslate(se,ve,ve+.75*de):m.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=c.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ye=ze?m.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ye+=2*p.itemGap),c.positionText(Pe,ve+p.titlePad,ve+_e);else{var De=2*p.itemGap+ee.itemwidth;pe.groupTitle&&(De=p.itemGap,ye-=ee.itemwidth),c.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ye,ee._titleHeight=de):(pe.lineHeight=_e,pe.height=Math.max(de,16)+3,pe.width=ye)}else q.remove()})(te,Z,K,re)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)A(X,te);else{var Z=X._fullLayout,K=Z._legends;Z._infolayer.selectAll('[class^="legend"]').each(function(){var Y=u.select(this),ee=Y.attr("class").split(" ")[0];ee.match(P)&&K.indexOf(ee)===-1&&Y.remove()});for(var re=0;reQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,re){return K.trace.legendrank-re.trace.legendrank||K._preSort-re._preSort};for(I.forEach(function(K,re){K[0]._preGroupSort=re}),I.sort(function(K,re){return K[0]._groupMinRank-re[0]._groupMinRank||K[0]._preGroupSort-re[0]._preGroupSort}),y=0;yR?R:C}d.exports=function(C,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",P=R.itemwidth,A=(P+2*p.itemGap)/2,L=S(A,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(Z?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(re){var q=u.select(this),Y=re[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var pe=m(U),se=pe.mid;se===void 0&&(se=(pe.max+pe.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ye=w.getPatternAttr(ce.bgcolor,0,null),ve=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,we=O(ce.size,8,10),Te=O(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,we,Te,me,ce.fillmode,ye,ve,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var Z=U.marker||{},K=D(h(Z.line.width,j.pts),Z.line,5,2),re="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},re),Y=i.minExtend(j,{trace:q},re);c(te,Y,q,x)}}C.each(function(z){var $=u.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",S(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Z=Q.selectAll("g.legendsymbols").data([z]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=u.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var Z,K=u.select(this),re=m(Q),q=re.colorscale,Y=re.reversescale;if(q){if(!$){var ee=q.length;Z=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;Z=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),Z?K.call(y.fill,Z):K.call(function(pe){if(pe.size()){var se="legendfill-"+Q.uid;w.gradient(pe,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=u.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var Z=u.select(this),K=$[te[0]].marker,re=D(void 0,K.line,5,2);Z.attr("d",te[1]).style("stroke-width",re+"px").call(y.fill,K.color),re&&Z.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=u.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,Z=j.showGradientFill,K=j.anyFill,re=j.anyLine,q=z[0],Y=q.trace,ee=m(Y),me=ee.colorscale,pe=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":re?"M5,-2":"M5,-3",ae=u.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||Z?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+P+"v6h-"+P+"z").call(function(ve){if(ve.size())if(U)w.fillGroupStyle(ve,x);else{var _e="legendfill-"+Y.uid;w.gradient(ve,x,_e,v(pe),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ye=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ye.enter().append("path").classed("js-line",!0),ye.exit().remove(),ye.attr("d",se+(te?"l"+P+",0.0001":"h"+P)).call(X?w.lineGroupStyle:function(ve){if(ve.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ve),w.gradient(ve,x,_e,v(pe),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,Z=j.showMarker,K=z[0],re=K.trace,q=!Z&&!X&&!U&&a.hasText(re);function Y(ye,ve,_e,we){var Te=i.nestedProperty(re,ye).get(),Pe=i.isArrayOrTypedArray(Te)&&ve?ve(Te):Te;if(T&&Pe&&we!==void 0&&(Pe=we),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ye){return K._distinct&&K.index&&ye[K.index]?ye[K.index]:ye[0]}if(Z||q||te){var me={},pe={};if(Z){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),pe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,pe.marker.size=se}te&&(pe.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(re,pe)).selectedpoints=null,Q.texttemplate=null}var ae=u.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(Z?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),Z&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("stroke-width",Z+"px").call(y.fill,te.fillcolor),Z&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,Z),Z&&y.stroke(X,te.line.color)})})}},66540:function(d,s,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,s,n){var u=n(24040),b=n(7316),i=n(79811),S=n(9224),w=n(4016).eraseActiveShape,y=n(3400),m=y._,a=d.exports={};function c(M,T){var P,A,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(A=0;A<$.length;A++)if(!(P=$[A]).fixedrange)if(j=P._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")P._rangeInitial0===void 0&&P._rangeInitial1===void 0?z[j+".autorange"]=!0:P._rangeInitial0===void 0?(z[j+".autorange"]=P._autorangeInitial,z[j+".range"]=[null,P._rangeInitial1]):P._rangeInitial1===void 0?(z[j+".range"]=[P._rangeInitial0,null],z[j+".autorange"]=P._autorangeInitial):z[j+".range"]=[P._rangeInitial0,P._rangeInitial1],P._showSpikeInitial!==void 0&&(z[j+".showspikes"]=P._showSpikeInitial,Q!=="on"||P._showSpikeInitial||(Q="off"));else{var Z=[P.r2l(P.range[0]),P.r2l(P.range[1])],K=[X*Z[0]+te*Z[1],X*Z[1]+te*Z[0]];z[j+".range[0]"]=P.l2r(K[0]),z[j+".range[1]"]=P.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,u.call("_guiRelayout",M,z)}function h(M,T){for(var P=T.currentTarget,A=P.getAttribute("data-attr"),L=P.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=A.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(pe=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(pe=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,P){for(var A=P.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?A.touches[0].clientX:0}function C(A,L,D,k){var I=S.ensureSingle(A,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(m.stroke,k.bordercolor).call(m.fill,k.bgcolor)}function x(A,L,D,k){var I=L._fullLayout;S.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(A,L,D,k){var I,z=L.calcdata,$=A.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,S.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=u.select(this),X=j===0,te=h.getFromId(L,Q,"y"),Z=te._name,K=k[Z],re={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(re.layout.xaxis.rangebreaks=D.rangebreaks),re.layout[Z]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(re.layout[Z].rangebreaks=te.rangebreaks),i.supplyDefaults(re);var q=re._fullLayout.xaxis,Y=re._fullLayout[Z];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),c.rangePlot(L,ee,function(me,pe){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Ye+ht<0)return;tt=Ze+ht,ot=Ye+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;tt=Ze+ht,ot=Ye;break;case $e:if(Ge="col-resize",Ye+ht<0)return;tt=Ze,ot=Ye+ht;break;default:Ge="ew-resize",tt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(A).style("opacity",j?.1:L).call(S.stroke,k).call(S.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,O,R),$){var X=y(O.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:O,editHelpers:X,isActiveSelection:!0},Z=u(P,O);b(Z,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(re,q){if(h(re)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===re._fullLayout._activeSelectionIndex)return void _(re);re._fullLayout._activeSelectionIndex=Y,re._fullLayout._deactivateSelection=_,c(re)}}}(O,K)})}(O._fullLayout._selectionLayer)}function v(O,C,x){var R=x.xref+x.yref;w.setClipUrl(O,"clip"+C._fullLayout._uid+R,C)}function _(O){h(O)&&O._fullLayout._activeSelectionIndex>=0&&(i(O),delete O._fullLayout._activeSelectionIndex,c(O))}d.exports={draw:c,drawOne:p,activateLastSelection:function(O){if(h(O)){var C=O._fullLayout.selections.length-1;O._fullLayout._activeSelectionIndex=C,O._fullLayout._deactivateSelection=_,c(O)}}}},34200:function(d,s,n){var u=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},u,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(s,n,u){u("newselection.mode"),u("newselection.line.width")&&(u("newselection.line.color"),u("newselection.line.dash")),u("activeselection.fillcolor"),u("activeselection.opacity")}},5968:function(d,s,n){var u=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),S=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(m,a){if(m.length){var c=m[0][0];if(c){var h=c.getAttribute("d"),p=a.gd,v=p._fullLayout.newselection,_=a.plotinfo,O=_.xaxis,C=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(p.layout||{}).selections||[];if(!u(R)&&x!==void 0){var T=p._fullLayout._activeSelectionIndex;if(T-1,Pn=[];if(function(bt){return bt&&Array.isArray(bt)&&bt[0].hoverOnBox!==!0}(cn)){de(Me,Fe,Ge);var Sn=function(bt,Vt){var Dt,it,at=bt[0],Bt=-1,_t=[];for(it=0;it0?function(bt,Vt){var Dt,it,at,Bt=[];for(at=0;at0&&Bt.push(Dt);if(Bt.length===1&&Bt[0]===Vt.searchInfo&&(it=Vt.searchInfo.cd[0].trace).selectedpoints.length===Vt.pointNumbers.length){for(at=0;at1||(it+=Vt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(ln=Te(Sn))){for(ht&&ht.remove(),Ot=0;Ot=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(Yt){return Yt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=p(je),pt=_(je);if(ht||pt){var St,Ft,zt=Ge.selectAll(".select-outline-"+tt.id);zt&&ot._fullLayout._outlining&&(ht&&(St=A(zt,Me)),St&&i.call("_guiRelayout",ot,{shapes:St}),pt&&!me(Me)&&(Ft=L(zt,Me)),Ft&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Ft}).then(function(){Fe&&D(ot)})),ot._fullLayout._outlining=!1)}tt.selection={},tt.selection.selectionDefs=Me.selectionDefs=[],tt.selection.mergedPolygons=Me.mergedPolygons=[]}function ve(Me){return Me._id}function _e(Me,Fe,je,tt){if(!Me.calcdata)return[];var ot,Ge,ht,pt=[],St=Fe.map(ve),Ft=je.map(ve);for(ht=0;ht0?tt[0]:je;return!!Fe.selectedpoints&&Fe.selectedpoints.indexOf(ot)>-1}function Pe(Me,Fe,je){var tt,ot;for(tt=0;tt-1&&Fe;if(!Ge&&Fe){var gr=ke(Me,!0);if(gr.length){var sr=gr[0].xref,lr=gr[0].yref;if(sr&&lr){var zr=Ue(gr);Ze([Q(Me,sr,"x"),Q(Me,lr,"y")])(vr,zr)}}Me._fullLayout._noEmitSelectedAtStart?Me._fullLayout._noEmitSelectedAtStart=!1:qn&&Ye(Me,vr),ln._reselect=!1}if(!Ge&&ln._deselect){var Vr=ln._deselect;(function(eo,Jr,Yr){for(var to=0;to=0)tn._fullLayout._deactivateShape(tn);else if(!Ft){var zr=Et.clickmode;$.done($r).then(function(){if($.clear($r),sr===2){for(Kn.remove(),at=0;at-1&&pe(lr,tn,tt.xaxes,tt.yaxes,tt.subplot,tt,Kn),zr==="event"&&Ye(tn,void 0);y.click(tn,lr,Pn.id)}).catch(k.error)}},tt.doneFn=function(){tr.remove(),$.done($r).then(function(){$.clear($r),!Ot&&it&&tt.selectionDefs&&(it.subtract=An,tt.selectionDefs.push(it),tt.mergedPolygons.length=0,[].push.apply(tt.mergedPolygons,Dt)),(Ot||Ft)&&ye(tt,Ot),tt.doneFnCompleted&&tt.doneFnCompleted(vr),zt&&Ye(tn,_t)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ye,selectOnClick:pe}},46056:function(d,s,n){var u=n(13916),b=n(25376),i=n(52904).line,S=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,m=(n(36208),n(45464)),a=n(21776).ye,c=n(97728);d.exports=y("shape",{visible:w({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},m.legend,{editType:"calc+arraydraw"}),legendgroup:w({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},u.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},u.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},S,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(c)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,s,n){var u=n(3400),b=n(54460),i=n(85448),S=n(65152);function w(c){return m(c.line.width,c.xsizemode,c.x0,c.x1,c.path,!1)}function y(c){return m(c.line.width,c.ysizemode,c.y0,c.y1,c.path,!0)}function m(c,h,p,v,_,O){var C=c/2,x=O;if(h==="pixel"){var R=_?S.extractPathCoords(_,O?i.paramIsY:i.paramIsX):[p,v],M=u.aggNums(Math.max,null,R),T=u.aggNums(Math.min,null,R),P=T<0?Math.abs(T)+C:C,A=M>0?M+C:C;return{ppad:C,ppadplus:x?P:A,ppadminus:x?A:P}}return{ppad:C}}function a(c,h,p,v,_){var O=c.type==="category"||c.type==="multicategory"?c.r2c:c.d2c;if(h!==void 0)return[O(h),O(p)];if(v){var C,x,R,M,T=1/0,P=-1/0,A=v.match(i.segmentRE);for(c.type==="date"&&(O=S.decodeDate(O)),C=0;CP&&(P=M)));return P>=T?[T,P]:void 0}}d.exports=function(c){var h=c._fullLayout,p=u.filterVisible(h.shapes);if(p.length&&c._fullData.length)for(var v=0;v=ve?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(P,L,A,D):0),z.call(function(ve){return ve.call(S.font,I).attr({}),i.convertToTspans(ve,h),ve});var ae=function(ve,_e,we,Te,Pe,Ie,ze){var De,Qe,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Re=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Ye=Math.cos(Ue),Je=Pe.label.xanchor,Me=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ve,Qe=_e):Oe==="end"?(De=we,Qe=Te):(De=(ve+we)/2,Qe=(_e+Te)/2),Je==="auto"&&(Je=Oe==="start"?ke==="auto"?we>ve?"left":weve?"right":weve?"right":weve?"left":we1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[Z]=De,j(),U())}}()}}function ve(Pe,Ie){(function(ze,De){if(k.length)for(var Qe=0;QeQe?(Oe=ze,Ue="y0",ke=Qe,Ze="y1"):(Oe=Qe,Ue="y1",ke=ze,Ze="y0"),vt(Dt),bt(Te,_e),function(it,at,Bt){var _t=at.xref,qt=at.yref,en=S.getFromId(Bt,_t),Jt=S.getFromId(Bt,qt),Zt="";_t==="paper"||en.autorange||(Zt+=_t),qt==="paper"||Jt.autorange||(Zt+=qt),h.setClipUrl(it,Zt?"clip"+Bt._fullLayout._uid+Zt:null,Bt)}(ve,_e,ye),Sn.moveFn=Fe==="move"?xt:st,Sn.altKey=Dt.altKey)},doneFn:function(){M(ye)||(_(ve),Vt(Te),A(ve,ye,_e),b.call("_guiRelayout",ye,Pe.getUpdateObj()))},clickFn:function(){M(ye)||Vt(Te)}};function vt(Dt){if(M(ye))Fe=null;else if(ht)Fe=Dt.target.tagName==="path"?"move":Dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=Sn.element.getBoundingClientRect(),at=it.right-it.left,Bt=it.bottom-it.top,_t=Dt.clientX-it.left,qt=Dt.clientY-it.top,en=!pt&&at>je&&Bt>tt&&!Dt.shiftKey?v.getCursor(_t/at,1-qt/Bt):"move";_(ve,en),Fe=en.split("-")[0]}}function xt(Dt,it){if(_e.type==="path"){var at=function(qt){return qt},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(qt){return cn(Et(qt)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(qt){return Cn(Ot(qt)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(St("x0",_e.x0=cn(Ie+Dt)),St("x1",_e.x1=cn(De+Dt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(St("y0",_e.y0=Cn(ze+it)),St("y1",_e.y1=Cn(Qe+it)));ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function st(Dt,it){if(pt){var at=function(Zn){return Zn},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(Zn){return cn(Et(Zn)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(Zn){return Cn(Ot(Zn)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else if(ht){if(Fe==="resize-over-start-point"){var qt=Ie+Dt,en=Ge?ze-it:ze+it;St("x0",_e.x0=ot?qt:cn(qt)),St("y0",_e.y0=Ge?en:Cn(en))}else if(Fe==="resize-over-end-point"){var Jt=De+Dt,Zt=Ge?Qe-it:Qe+it;St("x1",_e.x1=ot?Jt:cn(Jt)),St("y1",_e.y1=Ge?Zt:Cn(Zt))}}else{var Nt=function(Zn){return Fe.indexOf(Zn)!==-1},sn=Nt("n"),rn=Nt("s"),_n=Nt("w"),wn=Nt("e"),An=sn?Oe+it:Oe,Kn=rn?ke+it:ke,fr=_n?Re+Dt:Re,Un=wn?We+Dt:We;Ge&&(sn&&(An=Oe-it),rn&&(Kn=ke-it)),(!Ge&&Kn-An>tt||Ge&&An-Kn>tt)&&(St(Ue,_e[Ue]=Ge?An:Cn(An)),St(Ze,_e[Ze]=Ge?Kn:Cn(Kn))),Un-fr>je&&(St(Ye,_e[Ye]=ot?fr:cn(fr)),St(Je,_e[Je]=ot?Un:cn(Un)))}ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function bt(Dt,it){(ot||Ge)&&function(){var at=it.type!=="path",Bt=Dt.selectAll(".visual-cue").data([0]);Bt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var _t=Et(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:C.extractPathCoords(it.path,O.paramIsX))),qt=Ot(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:C.extractPathCoords(it.path,O.paramIsY)));if(_t=C.roundPositionForSharpStrokeRendering(_t,1),qt=C.roundPositionForSharpStrokeRendering(qt,1),ot&&Ge){var en="M"+(_t-1-1)+","+(qt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Bt.attr("d",en)}else if(ot){var Jt="M"+(_t-1-1)+","+(qt-9-1)+"v18 h2 v-18 Z";Bt.attr("d",Jt)}else{var Zt="M"+(_t-9-1)+","+(qt-1-1)+"h18 v2 h-18 Z";Bt.attr("d",Zt)}}()}function Vt(Dt){Dt.selectAll(".visual-cue").remove()}v.init(Sn),Pn.node().onmousemove=vt}(k,ae,$,I,U,pe):$.editable===!0&&ae.style("pointer-events",ee||c.opacity(K)*Z<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ye,ve){if(T(ye)){var _e=+ve.node().getAttribute("data-index");if(_e>=0){if(_e===ye._fullLayout._activeShapeIndex)return void D(ye);ye._fullLayout._activeShapeIndex=_e,ye._fullLayout._deactivateShape=D,R(ye)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function A(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(O.segmentRE,function($){var Q=0,j=$.charAt(0),U=O.paramIsX[j],X=O.paramIsY[j],te=O.numParams[j];return j+$.substr(1).replace(O.paramRE,function(Z){return Q>=te||(U[Q]?Z=I(Z):X[Q]&&(Z=z(Z)),Q++),Z})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:P,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Pse&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,m,c);if(w.xsizemode==="pixel"){var P=m(w.xanchor);h=P+w.x0,p=P+w.x1}else h=m(w.x0),p=m(w.x1);if(w.ysizemode==="pixel"){var A=c(w.yanchor);v=A-w.y0,_=A-w.y1}else v=c(w.y0),_=c(w.y1);if(O==="line")return"M"+h+","+v+"L"+p+","+_;if(O==="rect")return"M"+h+","+v+"H"+p+"V"+_+"H"+h+"Z";var L=(h+p)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,s,n){var u=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:u.draw,drawOne:u.drawOne}},97728:function(d){function s(i,S){return S?S.d2l(i):i}function n(i,S){return S?S.l2d(i):i}function u(i,S){return s(i.x1,S)-s(i.x0,S)}function b(i,S,w){return s(i.y1,w)-s(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,S,w){return i.type!=="line"?void 0:b(i,0,w)/u(i,S)},dx:u,dy:b,width:function(i,S){return Math.abs(u(i,S))},height:function(i,S,w){return Math.abs(b(i,0,w))},length:function(i,S,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(u(i,S),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,S){return n((s(i.x1,S)+s(i.x0,S))/2,S)},ycenter:function(i,S,w){return n((s(i.y1,w)+s(i.y0,w))/2,w)}}},89861:function(d,s,n){var u=n(25376),b=n(66741),i=n(92880).extendDeepAll,S=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,m=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:u({})},font:u({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,s,n){var u=n(3400),b=n(51272),i=n(89861),S=n(60876).name,w=i.steps;function y(a,c,h){function p(x,R){return u.coerce(a,c,i,x,R)}for(var v=b(a,c,{name:"steps",handleItemDefaults:m}),_=0,O=0;O0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*c.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+c.stepInset+(te.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-c.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*c.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var Z=te._dims,K=w.ensureSingle(U,"rect",c.railTouchRectClass,function(re){re.call(D,X,U,te).style("pointer-events","all")});K.attr({width:Z.inputAreaLength,height:Math.max(Z.inputAreaWidth,c.tickOffset+te.ticklen+Z.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),S.setTranslate(K,0,Z.currentValueTotalHeight)}function j(U,X){var te=X._dims,Z=te.inputAreaLength-2*c.railInset,K=w.ensureSingle(U,"rect",c.railRectClass);K.attr({width:Z,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),S.setTranslate(K,c.railInset,.5*(te.inputAreaWidth-c.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,Z=function(me,pe){for(var se=me[c.name],ae=[],ce=0;ce0?[0]:[]);function re(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,O(me))}if(K.enter().append("g").classed(c.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){u.select(this).selectAll("g."+c.groupClassName).each(re)}).remove(),Z.length!==0){var q=K.selectAll("g."+c.groupClassName).data(Z,C);q.enter().append("g").classed(c.groupClassName,!0),q.exit().each(re).remove();for(var Y=0;Y0||De<0){var Oe={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[A.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){u.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){u.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(c.makeEditable,{gd:_}).on("edit",function(se){P!==void 0?S.call("_guiRestyle",_,M,se,P):S.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(c.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,s,n){var u=n(25376),b=n(22548),i=n(92880).extendFlat,S=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,m=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:u({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,s,n){var u=n(3400),b=n(51272),i=n(88444),S=n(73712).name,w=i.buttons;function y(a,c,h){function p(v,_){return u.coerce(a,c,i,v,_)}p("visible",b(a,c,{name:"buttons",handleItemDefaults:m}).length>0)&&(p("active"),p("direction"),p("type"),p("showactive"),p("x"),p("y"),u.noneOrAll(a,c,["x","y"]),p("xanchor"),p("yanchor"),p("pad.t"),p("pad.r"),p("pad.b"),p("pad.l"),u.coerceFont(p,"font",h.font),p("bgcolor",h.paper_bgcolor),p("bordercolor"),p("borderwidth"))}function m(a,c){function h(p,v){return u.coerce(a,c,w,p,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,c){b(a,c,{name:S,handleItemDefaults:y})}},14420:function(d,s,n){var u=n(33428),b=n(7316),i=n(76308),S=n(43616),w=n(3400),y=n(72736),m=n(31780).arrayEditor,a=n(84284).LINE_SPACING,c=n(73712),h=n(37400);function p(z){return z._index}function v(z,$){return+z.attr(c.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,Z){$.active=te,m(z.layout,c.name,$).applyUpdate("active",te),$.type==="buttons"?C(z,j,null,null,$):$.type==="dropdown"&&(U.attr(c.menuIndexAttrName,"-1"),O(z,j,U,X,$),Z||C(z,j,U,X,$))}function O(z,$,Q,j,U){var X=w.ensureSingle($,"g",c.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,Z=U.active,K=U.buttons[Z]||c.blankHeaderOpts,re={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,re,q),w.ensureSingle($,"text",c.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(S.font,U.font).text(c.arrowSymbol[U.direction])}).attr({x:te.headerWidth-c.arrowOffsetX+U.pad.l,y:te.headerHeight/2+c.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),C(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(P)}),X.on("mouseout",function(){X.call(A,U)}),S.setTranslate($,te.lx,te.ly)}function C(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(c.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?c.dropdownButtonClassName:c.buttonClassName,Z=Q.selectAll("g."+te).data(w.filterVisible(X)),K=Z.enter().append("g").classed(te,!0),re=Z.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),re.transition().attr("opacity","0").remove()):re.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+c.gapButtonHeader:q=ee.headerWidth+c.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-c.gapButtonHeader+c.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-c.gapButtonHeader+c.gapButton-ee.openWidth);var pe={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},se={l:pe.x+U.borderwidth,t:pe.y+U.borderwidth};Z.each(function(ae,ce){var de=u.select(this);de.call(x,U,ae,z).call(k,U,pe),de.on("click",function(){u.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(P)}),de.on("mouseout",function(){de.call(A,U),Z.call(T,U)})}),Z.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=pe.y-se.t):(se.w=pe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(Z.size()?function(ae,ce,de,ye,ve,_e){var we,Te,Pe,Ie=ve.direction,ze=Ie==="up"||Ie==="down",De=ve._dims,Qe=ve.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){u.select(this).selectAll("g."+c.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+c.headerGroupClassName).data(Q,p);X.enter().append("g").classed(c.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",c.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),Z=0;Zk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>p&&(U=p-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,Z=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,re=x+R,q=M;re+Z>h&&(re=h-Z);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:re,y:q,width:Z,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,pe=te?_+Z+.5:_+.5,se=O-.5,ae=z?C+Q+.5:C+.5,ce=c._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(pe)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ye=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault(),u.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ye),te&&this.vbar.on(".drag",null).call(ye)}this.setTranslate(m,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y-=u.event.dx),this.vbar&&(m-=u.event.dy),this.setTranslate(y,m)},w.prototype._onBoxWheel=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y+=u.event.deltaY),this.vbar&&(m+=u.event.deltaY),this.setTranslate(y,m)},w.prototype._onBarDrag=function(){var y=this.translateX,m=this.translateY;if(this.hbar){var a=y+this._hbarXMin,c=a+this._hbarTranslateMax;y=(S.constrain(u.event.x,a,c)-a)/(c-a)*(this.position.w-this._box.w)}if(this.vbar){var h=m+this._vbarYMin,p=h+this._vbarTranslateMax;m=(S.constrain(u.event.y,h,p)-h)/(p-h)*(this.position.h-this._box.h)}this.setTranslate(y,m)},w.prototype.setTranslate=function(y,m){var a=this.position.w-this._box.w,c=this.position.h-this._box.h;if(y=S.constrain(y||0,0,a),m=S.constrain(m||0,0,c),this.translateX=y,this.translateY=m,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,m)}if(this.vbar){var p=m/c;this.vbar.call(i.setTranslate,y,m+p*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(s,n,u){return["If set to a",s,"axis id (e.g. *"+s+"* or","*"+s+"2*), the `"+s+"` position refers to a",s,"coordinate. If set to *paper*, the `"+s+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+u+"). If set to a",s,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+s+"2 domain* refers to the domain of the second",s," axis and a",s,"position of 0.5 refers to the","point between the",n,"and the",u,"of the domain of the","second",s,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,s){s.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],s.STYLE=s.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,s){s.xmlns="http://www.w3.org/2000/xmlns/",s.svg="http://www.w3.org/2000/svg",s.xlink="http://www.w3.org/1999/xlink",s.svgAttrs={xmlns:s.svg,"xmlns:xlink":s.xlink}},64884:function(d,s,n){s.version=n(25788).version,n(88324),n(79288);for(var u=n(24040),b=s.register=u.register,i=n(22448),S=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,s){s.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},s.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},s.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},s.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},s.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},s.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,s,n){var u=n(20435),b=u.mod,i=u.modHalf,S=Math.PI,w=2*S;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function m(h,p){return i(p-h,w)}function a(h,p){if(y(p))return!0;var v,_;p[0](_=b(_,w))&&(_+=w);var O=b(h,w),C=O+w;return O>=v&&O<=_||C>=v&&C<=_}function c(h,p,v,_,O,C,x){O=O||0,C=C||0;var R,M,T,P,A,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+O,C-$*Math.sin(Q)]}L?(R=0,M=S,T=w):v<_?(R=v,T=_):(R=_,T=v),h=O&&h<=C);var O,C},pathArc:function(h,p,v,_,O){return c(null,h,p,v,_,O,0)},pathSector:function(h,p,v,_,O){return c(null,h,p,v,_,O,1)},pathAnnulus:function(h,p,v,_,O,C){return c(h,p,v,_,O,C,1)}}},38116:function(d,s,n){var u=n(83160).decode,b=n(63620),i=Array.isArray,S=ArrayBuffer,w=DataView;function y(p){return S.isView(p)&&!(p instanceof w)}function m(p){return i(p)||y(p)}s.isTypedArray=y,s.isArrayOrTypedArray=m,s.isArray1D=function(p){return!m(p[0])},s.ensureArray=function(p,v){return i(p)||(p=[]),p.length=v,p};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function c(p){return p.constructor===ArrayBuffer}function h(p,v,_){if(m(p)){if(m(p[0])){for(var O=_,C=0;CR.max?C.set(x):C.set(+O)}},integer:{coerceFunction:function(O,C,x,R){O%1||!u(O)||R.min!==void 0&&OR.max?C.set(x):C.set(+O)}},string:{coerceFunction:function(O,C,x,R){if(typeof O!="string"){var M=typeof O=="number";R.strict!==!0&&M?C.set(String(O)):C.set(x)}else R.noBlank&&!O?C.set(x):C.set(O)}},color:{coerceFunction:function(O,C,x){b(O).isValid()?C.set(O):C.set(x)}},colorlist:{coerceFunction:function(O,C,x){Array.isArray(O)&&O.length&&O.every(function(R){return b(R).isValid()})?C.set(O):C.set(x)}},colorscale:{coerceFunction:function(O,C,x){C.set(S.get(O,x))}},angle:{coerceFunction:function(O,C,x){O==="auto"?C.set("auto"):u(O)?C.set(c(+O,360)):C.set(x)}},subplotid:{coerceFunction:function(O,C,x,R){var M=R.regex||a(x);typeof O=="string"&&M.test(O)?C.set(O):C.set(x)},validateFunction:function(O,C){var x=C.dflt;return O===x||typeof O=="string"&&!!a(x).test(O)}},flaglist:{coerceFunction:function(O,C,x,R){if((R.extras||[]).indexOf(O)===-1)if(typeof O=="string"){for(var M=O.split("+"),T=0;T=u&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var pe=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ye=Number(me[11]||0);if(q){if(pe.length===2)return a;var ve;pe=Number(pe);try{var _e=O.getComponentMethod("calendars","getCal")(te);if(ee){var we=se.charAt(se.length-1)==="i";se=parseInt(se,10),ve=_e.newDate(pe,_e.toMonthIndex(pe,se,we),ae)}else ve=_e.newDate(pe,Number(se),ae)}catch{return a}return ve?(ve.toJD()-_)*c+ce*h+de*p+ye*v:a}pe=pe.length===2?(Number(pe)+2e3-M)%100+M:Number(pe),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(pe),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ye*v},u=s.MIN_MS=s.dateTime2ms("-9999"),b=s.MAX_MS=s.dateTime2ms("9999-12-31 23:59:59.9999"),s.isDateTime=function(X,te){return s.dateTime2ms(X,te)!==a};var A=90*c,L=3*h,D=5*p;function k(X,te,Z,K,re){if((te||Z||K||re)&&(X+=" "+P(te,2)+":"+P(Z,2),(K||re)&&(X+=":"+P(K,2),re))){for(var q=4;re%10==0;)q-=1,re/=10;X+="."+P(re,q)}return X}s.ms2DateTime=function(X,te,Z){if(typeof X!="number"||!(X>=u&&X<=b))return a;te||(te=0);var K,re,q,Y,ee,me,pe=Math.floor(10*y(X+.05,1)),se=Math.round(X-pe/10);if(T(Z)){var ae=Math.floor(se/c)+_,ce=Math.floor(y(X,c));try{K=O.getComponentMethod("calendars","getCal")(Z).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=C("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;re=te=u+c&&X<=b-c))return a;var te=Math.floor(10*y(X+.05,1)),Z=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(Z),Z.getHours(),Z.getMinutes(),Z.getSeconds(),10*Z.getUTCMilliseconds()+te)},s.cleanDate=function(X,te,Z){if(X===a)return te;if(s.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(Z))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=s.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!s.isDateTime(X,Z))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,Z,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var re=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[Z("%q")(re)]}),T(K))try{X=O.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return Z(X)(re)}var j=[59,59.9,59.99,59.999,59.9999];s.formatDate=function(X,te,Z,K,re,q){if(re=T(re)&&re,!te)if(Z==="y")te=q.year;else if(Z==="m")te=q.month;else{if(Z!=="d")return function(Y,ee){var me=y(Y+.05,c),pe=P(Math.floor(me/h),2)+":"+P(y(Math.floor(me/p),60),2);if(ee!=="M"){S(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),pe+=":"+se}return pe}(X,Z)+` `+Q(q.dayMonthYear,X,K,re);te=q.dayMonth+` `+q.year}return Q(te,X,K,re)};var U=3*c;s.incrementMonth=function(X,te,Z){Z=T(Z)&&Z;var K=y(X,c);if(X=Math.round(X-K),Z)try{var re=Math.round(X/c)+_,q=O.getComponentMethod("calendars","getCal")(Z),Y=q.fromJD(re);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*c+K}catch{w.error("invalid ms "+X+" in calendar "+Z)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},s.findExactDates=function(X,te){for(var Z,K,re=0,q=0,Y=0,ee=0,me=T(te)&&O.getComponentMethod("calendars","getCal")(te),pe=0;pe0&&k[I+1][0]<0)return I;return null}switch(C=A==="RUS"||A==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xZ&&(Z=q,U=re)}else U=X;return S.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else m.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+A)):void k++},50)})}for(var T=0;T0&&(S.push(w),w=[])}return w.length>0&&S.push(w),S},s.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},s.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),S=0;S1||L<0||L>1?null:{x:m+C*L,y:a+M*L}}function y(m,a,c,h,p){var v=h*m+p*a;if(v<0)return h*h+p*p;if(v>c){var _=h-m,O=p-a;return _*_+O*O}var C=h*a-p*m;return C*C/c}s.segmentsIntersect=w,s.segmentDistance=function(m,a,c,h,p,v,_,O){if(w(m,a,c,h,p,v,_,O))return 0;var C=c-m,x=h-a,R=_-p,M=O-v,T=C*C+x*x,P=R*R+M*M,A=Math.min(y(C,x,T,p-m,v-a),y(C,x,T,_-m,O-a),y(R,M,P,m-p,a-v),y(R,M,P,c-p,h-v));return Math.sqrt(A)},s.getTextLocation=function(m,a,c,h){if(m===b&&h===i||(u={},b=m,i=h),u[c])return u[c];var p=m.getPointAtLength(S(c-h/2,a)),v=m.getPointAtLength(S(c+h/2,a)),_=Math.atan((v.y-p.y)/(v.x-p.x)),O=m.getPointAtLength(S(c,a)),C={x:(4*O.x+p.x+v.x)/6,y:(4*O.y+p.y+v.y)/6,theta:_};return u[c]=C,C},s.clearLocationCache=function(){b=null},s.getVisibleSegment=function(m,a,c){var h,p,v=a.left,_=a.right,O=a.top,C=a.bottom,x=0,R=m.getTotalLength(),M=R;function T(A){var L=m.getPointAtLength(A);A===0?h=L:A===R&&(p=L);var D=L.x_?L.x-_:0,k=L.yC?L.y-C:0;return Math.sqrt(D*D+k*k)}for(var P=T(x);P;){if((x+=P+c)>M)return;P=T(x)}for(P=T(M);P;){if(x>(M-=P+c))return;P=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-p.x)<.1&&Math.abs(h.y-p.y)<.1}},s.findPointOnPath=function(m,a,c,h){for(var p,v,_,O=(h=h||{}).pathLength||m.getTotalLength(),C=h.tolerance||.001,x=h.iterationLimit||30,R=m.getPointAtLength(0)[c]>m.getPointAtLength(O)[c]?-1:1,M=0,T=0,P=O;M0?P=p:T=p,M++}return v}},33040:function(d,s,n){var u=n(38248),b=n(49760),i=n(72160),S=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,m=i(w);function a(p,v){var _=p;return _[3]*=v,_}function c(p){if(u(p))return m;var v=i(p);return v.length?v:m}function h(p){return u(p)?p:1}d.exports={formatColor:function(p,v,_){var O=p.color;O&&O._inputArray&&(O=O._inputArray);var C,x,R,M,T,P=y(O),A=y(v),L=S.extractOpts(p),D=[];if(C=L.colorscale!==void 0?S.makeColorScaleFuncFromTrace(p):c,x=P?function(I,z){return I[z]===void 0?m:i(C(I[z]))}:c,R=A?function(I,z){return I[z]===void 0?1:h(I[z])}:h,P||A)for(var k=0;k<_;k++)M=x(O,k),T=R(v,k),D[k]=a(M,T);else D=a(i(O),v);return D},parseColorScale:function(p){var v=S.extractOpts(p),_=v.colorscale;return v.reversescale&&(_=S.flipScale(v.colorscale)),_.map(function(O){var C=O[0],x=b(O[1]).toRgb();return{index:C,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,s,n){var u=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:u,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(s){return s}},1396:function(d){d.exports=function(s,n){if(!n)return s;var u=1/Math.abs(n),b=u>1?(u*s+u*n)/u:s+n,i=String(b).length;if(i>16){var S=String(n).length;if(i>=String(s).length+S){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,s,n){var u=n(33428),b=n(94336).E9,i=n(57624).E9,S=n(38248),w=n(39032),y=w.FP_SAFE,m=-y,a=w.BADNUM,c=d.exports={};c.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};c.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,c.warn('encountered bad format: "'+de+'"'))},c.noFormat=function(ce){return String(ce)},c.numberFormat=function(ce){var de;try{de=i(c.adjustFormat(ce))}catch{return c.warnBadFormat(ce),c.noFormat}return de},c.nestedProperty=n(22296),c.keyedContainer=n(37804),c.relativeAttr=n(23193),c.isPlainObject=n(63620),c.toLogRange=n(36896),c.relinkPrivateKeys=n(51528);var p=n(38116);c.isArrayBuffer=p.isArrayBuffer,c.isTypedArray=p.isTypedArray,c.isArrayOrTypedArray=p.isArrayOrTypedArray,c.isArray1D=p.isArray1D,c.ensureArray=p.ensureArray,c.concat=p.concat,c.maxRowLength=p.maxRowLength,c.minRowLength=p.minRowLength;var v=n(20435);c.mod=v.mod,c.modHalf=v.modHalf;var _=n(63064);c.valObjectMeta=_.valObjectMeta,c.coerce=_.coerce,c.coerce2=_.coerce2,c.coerceFont=_.coerceFont,c.coercePattern=_.coercePattern,c.coerceHoverinfo=_.coerceHoverinfo,c.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,c.validate=_.validate;var O=n(67555);c.dateTime2ms=O.dateTime2ms,c.isDateTime=O.isDateTime,c.ms2DateTime=O.ms2DateTime,c.ms2DateTimeLocal=O.ms2DateTimeLocal,c.cleanDate=O.cleanDate,c.isJSDate=O.isJSDate,c.formatDate=O.formatDate,c.incrementMonth=O.incrementMonth,c.dateTick0=O.dateTick0,c.dfltRange=O.dfltRange,c.findExactDates=O.findExactDates,c.MIN_MS=O.MIN_MS,c.MAX_MS=O.MAX_MS;var C=n(14952);c.findBin=C.findBin,c.sorterAsc=C.sorterAsc,c.sorterDes=C.sorterDes,c.distinctVals=C.distinctVals,c.roundUp=C.roundUp,c.sort=C.sort,c.findIndexOfMin=C.findIndexOfMin,c.sortObjectKeys=n(95376);var x=n(63084);c.aggNums=x.aggNums,c.len=x.len,c.mean=x.mean,c.median=x.median,c.midRange=x.midRange,c.variance=x.variance,c.stdev=x.stdev,c.interp=x.interp;var R=n(52248);c.init2dArray=R.init2dArray,c.transposeRagged=R.transposeRagged,c.dot=R.dot,c.translationMatrix=R.translationMatrix,c.rotationMatrix=R.rotationMatrix,c.rotationXYMatrix=R.rotationXYMatrix,c.apply3DTransform=R.apply3DTransform,c.apply2DTransform=R.apply2DTransform,c.apply2DTransform2=R.apply2DTransform2,c.convertCssMatrix=R.convertCssMatrix,c.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);c.deg2rad=M.deg2rad,c.rad2deg=M.rad2deg,c.angleDelta=M.angleDelta,c.angleDist=M.angleDist,c.isFullCircle=M.isFullCircle,c.isAngleInsideSector=M.isAngleInsideSector,c.isPtInsideSector=M.isPtInsideSector,c.pathArc=M.pathArc,c.pathSector=M.pathSector,c.pathAnnulus=M.pathAnnulus;var T=n(98308);c.isLeftAnchor=T.isLeftAnchor,c.isCenterAnchor=T.isCenterAnchor,c.isRightAnchor=T.isRightAnchor,c.isTopAnchor=T.isTopAnchor,c.isMiddleAnchor=T.isMiddleAnchor,c.isBottomAnchor=T.isBottomAnchor;var P=n(92348);c.segmentsIntersect=P.segmentsIntersect,c.segmentDistance=P.segmentDistance,c.getTextLocation=P.getTextLocation,c.clearLocationCache=P.clearLocationCache,c.getVisibleSegment=P.getVisibleSegment,c.findPointOnPath=P.findPointOnPath;var A=n(92880);c.extendFlat=A.extendFlat,c.extendDeep=A.extendDeep,c.extendDeepAll=A.extendDeepAll,c.extendDeepNoArrays=A.extendDeepNoArrays;var L=n(24248);c.log=L.log,c.warn=L.warn,c.error=L.error;var D=n(53756);c.counterRegex=D.counter;var k=n(91200);c.throttle=k.throttle,c.throttleDone=k.done,c.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ye in ce)for(var ve=ce[ye],_e=0;_ey||ce=de)&&S(ce)&&ce>=0&&ce%1==0},c.noop=n(16628),c.identity=n(35536),c.repeat=function(ce,de){for(var ye=new Array(de),ve=0;veye?Math.max(ye,Math.min(de,ce)):Math.max(de,Math.min(ye,ce))},c.bBoxIntersect=function(ce,de,ye){return ye=ye||0,ce.left<=de.right+ye&&de.left<=ce.right+ye&&ce.top<=de.bottom+ye&&de.top<=ce.bottom+ye},c.simpleMap=function(ce,de,ye,ve,_e){for(var we=ce.length,Te=new Array(we),Pe=0;Pe=Math.pow(2,ye)?_e>10?(c.warn("randstr failed uniqueness"),Ie):ce(de,ye,ve,(_e||0)+1):Ie},c.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ye={optionList:[],_newoption:function(ve){ve[de]=ce,ye[ve.name]=ve,ye.optionList.push(ve)}};return ye["_"+de]=ce,ye},c.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ye,ve,_e,we,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ye=0;ye=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),we+=ce[_e]*ze[ve];De[ye]=we}return De},c.syncOrAsync=function(ce,de,ye){var ve;function _e(){return c.syncOrAsync(ce,de,ye)}for(;ce.length;)if((ve=(0,ce.splice(0,1)[0])(de))&&ve.then)return ve.then(_e);return ye&&ye(de)},c.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},c.noneOrAll=function(ce,de,ye){if(ce){var ve,_e=!1,we=!0;for(ve=0;ve0?_e:0})},c.fillArray=function(ce,de,ye,ve){if(ve=ve||c.identity,c.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(we&&(Te.length>1||Pe.length>4||ye))for(;ve.test(Pe);)Pe=Pe.replace(ve,"$1"+we+"$2");return Pe+Ie},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Z=/^\w*$/;c.templateString=function(ce,de){var ye={};return ce.replace(c.TEMPLATE_STRING_REGEX,function(ve,_e){var we;return Z.test(_e)?we=de[_e]:(ye[_e]=ye[_e]||c.nestedProperty(de,_e).get,we=ye[_e]()),c.isValidTextValue(we)?we:""})};var K={max:10,count:0,name:"hovertemplate"};c.hovertemplateString=function(){return me.apply(K,arguments)};var re={max:10,count:0,name:"texttemplate"};c.texttemplateString=function(){return me.apply(re,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};c.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ye){var ve=this,_e=arguments;de||(de={});var we={};return ce.replace(c.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",Qe=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||Qe||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(Qe||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Re,We=null,Ue=null;if(ve.parseMultDiv){var Ze=function(Fe){var je=Fe.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Fe,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Re=3;Re<_e.length;Re++)if(ke=_e[Re]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(Z.test($e)||(Oe=c.nestedProperty(ke,$e).get(),(Oe=we[$e]||c.nestedProperty(ke,$e).get())&&(we[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ve)return ve.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ve=10*ve+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ve!==_e)return ve-_e;if(Te!==Pe)return Te-Pe}}return _e-ve};var pe=2e9;c.seedPseudoRandom=function(){pe=2e9},c.pseudoRandom=function(){var ce=pe;return pe=(69069*pe+1)%4294967296,Math.abs(pe-ce)<429496729?c.pseudoRandom():pe/4294967296},c.fillText=function(ce,de,ye){var ve=Array.isArray(ye)?function(Te){ye.push(Te)}:function(Te){ye.text=Te},_e=c.extractOption(ce,de,"htx","hovertext");if(c.isValidTextValue(_e))return ve(_e);var we=c.extractOption(ce,de,"tx","text");return c.isValidTextValue(we)?ve(we):void 0},c.isValidTextValue=function(ce){return ce||ce===0},c.formatPercent=function(ce,de){de=de||0;for(var ye=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ve=0;ve1&&(ze=1):ze=0,c.strTranslate(_e-ze*(ye+Te),we-ze*(ve+Pe))+c.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ye+" "+ve)+")":"")},c.setTransormAndDisplay=function(ce,de){ce.attr("transform",c.getTextTransform(de)),ce.style("display",de.scale?null:"none")},c.ensureUniformFontSize=function(ce,de){var ye=c.extendFlat({},de);return ye.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ye},c.join2=function(ce,de,ye){var ve=ce.length;return ve>1?ce.slice(0,-1).join(de)+ye+ce[ve-1]:ce.join(de)},c.bigFont=function(ce){return Math.round(1.2*ce)};var se=c.getFirefoxVersion(),ae=se!==null&&se<86;c.getPositionFromD3Event=function(){return ae?[u.event.layerX,u.event.layerY]:[u.event.offsetX,u.event.offsetY]}},63620:function(d){d.exports=function(s){return window&&window.process&&window.process.versions?Object.prototype.toString.call(s)==="[object Object]":Object.prototype.toString.call(s)==="[object Object]"&&Object.getPrototypeOf(s).hasOwnProperty("hasOwnProperty")}},37804:function(d,s,n){var u=n(22296),b=/^\w*$/;d.exports=function(i,S,w,y){var m,a,c;w=w||"name",y=y||"value";var h={};S&&S.length?(c=u(i,S),a=c.get()):a=i,S=S||"";var p={};if(a)for(m=0;m2)return h[C]=2|h[C],_.set(O,null);if(v){for(m=C;m1){var w=["LOG:"];for(S=0;S1){var y=[];for(S=0;S"),"long")}},i.warn=function(){var S;if(u.logging>0){var w=["WARN:"];for(S=0;S0){var y=[];for(S=0;S"),"stick")}},i.error=function(){var S;if(u.logging>0){var w=["ERROR:"];for(S=0;S0){var y=[];for(S=0;S"),"stick")}}},30988:function(d,s,n){var u=n(33428);d.exports=function(b,i,S){var w=b.selectAll("g."+S.replace(/\s/g,".")).data(i,function(m){return m[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",S),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(m){m[0][y]=u.select(this)}),w}},52248:function(d,s,n){var u=n(36524);s.init2dArray=function(b,i){for(var S=new Array(b),w=0;wn/2?s-Math.round(s/n)*n:s}}},22296:function(d,s,n){var u=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,p){return function(){var v,_,O,C,x,R=h;for(C=0;C/g),_=0;_a||M===b||Mh||x&&p(C))}:function(C,x){var R=C[0],M=C[1];if(R===b||Ra||M===b||Mh)return!1;var T,P,A,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(P,I)||M>Math.max(A,z)))if(M_||Math.abs(u(c,C))>m)return!0;return!1},i.filter=function(S,w){var y=[S[0]],m=0,a=0;function c(h){S.push(h);var p=y.length,v=m;y.splice(a+1);for(var _=v+1;_1&&c(S.pop()),{addPt:c,raw:S,filtered:y}}},5048:function(d,s,n){var u=n(16576),b=n(28624);d.exports=function(i,S,w){var y=i._fullLayout,m=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:S||[],cachedCode:w||{}})}catch{m=!1}a.regl||(m=!1),m&&this.addEventListener("webglcontextlost",function(c){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:c,layer:a.key})},!1)}}),m||u({container:y._glcontainer.node()}),m}},34296:function(d,s,n){var u=n(38248),b=n(25928);d.exports=function(i){var S;if(typeof(S=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var p;return typeof navigator<"u"&&(p=navigator.userAgent),p&&p.headers&&typeof p.headers["user-agent"]=="string"&&(p=p.headers["user-agent"]),p}())!="string")return!0;var w=b({ua:{headers:{"user-agent":S}},tablet:!0,featureDetect:!1});if(!w){for(var y=S.split(" "),m=1;m-1;a--){var c=y[a];if(c.substr(0,8)==="Version/"){var h=c.substr(8).split(".")[0];if(u(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(s,n){if(n instanceof RegExp){for(var u=n.toString(),b=0;bb.queueLength&&(S.undoQueue.queue.shift(),S.undoQueue.index--))},startSequence:function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!0,S.undoQueue.beginSequence=!0},stopSequence:function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!1,S.undoQueue.beginSequence=!1},undo:function(S){var w,y;if(!(S.undoQueue===void 0||isNaN(S.undoQueue.index)||S.undoQueue.index<=0)){for(S.undoQueue.index--,w=S.undoQueue.queue[S.undoQueue.index],S.undoQueue.inSequence=!0,y=0;y=S.undoQueue.queue.length)){for(w=S.undoQueue.queue[S.undoQueue.index],S.undoQueue.inSequence=!0,y=0;yp}function c(h,p){return h>=p}s.findBin=function(h,p,v){if(u(p.start))return v?Math.ceil((h-p.start)/p.size-w)-1:Math.floor((h-p.start)/p.size+w);var _,O,C=0,x=p.length,R=0,M=x>1?(p[x-1]-p[0])/(x-1):1;for(O=M>=0?v?y:m:v?c:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);C90&&b.log("Long binary search..."),C-1},s.sorterAsc=function(h,p){return h-p},s.sorterDes=function(h,p){return p-h},s.distinctVals=function(h){var p,v=h.slice();for(v.sort(s.sorterAsc),p=v.length-1;p>-1&&v[p]===S;p--);for(var _,O=v[p]-v[0]||1,C=O/(p||1)/1e4,x=[],R=0;R<=p;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>C&&(O=Math.min(O,T),x.push(M),_=M)}return{vals:x,minDiff:O}},s.roundUp=function(h,p,v){for(var _,O=0,C=p.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;O0&&(_=1),v&&_)return h.sort(p)}return _?h:h.reverse()},s.findIndexOfMin=function(h,p){p=p||i;for(var v,_=1/0,O=0;Ow.length)&&(y=w.length),u(S)||(S=!1),b(w[0])){for(a=new Array(y),m=0;mi.length-1)return i[i.length-1];var w=S%1;return w*i[Math.ceil(S)]+(1-w)*i[Math.floor(S)]}},43080:function(d,s,n){var u=n(72160);d.exports=function(b){return b?u(b):[0,0,0,1]}},9188:function(d,s,n){var u=n(2264),b=n(43616),i=n(3400),S=null;d.exports=function(){if(S!==null)return S;S=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(u.CSS_DECLARATIONS).reverse(),m=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof m=="function")S=y.some(function(h){return m.apply(null,h)});else{var a=b.tester.append("image").attr("style",u.STYLE),c=window.getComputedStyle(a.node()).imageRendering;S=y.some(function(h){var p=h[1];return c===p||c===p.toLowerCase()}),a.remove()}}return S}},72736:function(d,s,n){var u=n(33428),b=n(3400),i=b.strTranslate,S=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;s.convertToTspans=function(X,te,Z){var K=X.text(),re=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=u.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),re?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var pe=parseInt(X.node().style.fontSize,10),se={fontSize:pe};(function(ae,ce,de){var ye,ve,_e,we,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(we=u.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(m,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=we.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&we.select("svg").node();if(De){var Qe,Ve=De.getBoundingClientRect();Qe=Te===2?u.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,Qe,Ve)}else b.log("There was an error in the tex syntax.",ae),de();we.remove()};Te===2?MathJax.Hub.Queue(function(){return ve=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:c},displayAlign:"left"})},function(){if((ye=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ye!=="SVG")return MathJax.Hub.setRenderer(ye)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ve)}):Te===3&&(ve=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=c,(ye=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ye!=="svg"&&(MathJax.config.startup.output=ye),MathJax.config=ve}))}else b.warn("No MathJax version:",MathJax.version)})(re[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ye=ae&&ae.select("svg");if(!ye||!ye.node())return ee(),void me();var ve=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ve.node().appendChild(ye.node()),ce&&ce.node()&&ye.node().insertBefore(ce.node().cloneNode(!0),ye.node().firstChild);var _e=de.width,we=de.height;ye.attr({class:Y,height:we,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ye.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>we)&&(ye.style("overflow","hidden"),ze=(Ie=ye.node().getBoundingClientRect()).width,De=Ie.height);var Qe=+X.attr("x"),Ve=+X.attr("y"),$e=-(pe||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ve.attr({transform:"rotate("+[-90,Qe,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)Qe=0,Ve=$e;else{var Oe=X.attr("text-anchor");Qe-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ye.attr({x:Qe,y:Ve}),Z&&Z.call(X,ve),me(ve)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(pe,se){se=se.replace(C," ");var ae,ce=!1,de=[],ye=-1;function ve(){ye++;var Ue=document.createElementNS(S.svg,"tspan");u.select(Ue).attr({class:"line",dy:ye*w+"em"}),pe.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Ye=1;Ye doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ve():(ae=pe,de=[{node:pe}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,c=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",O=["http:","https:","mailto:","",void 0,":"],C=s.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;s.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,P=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var Z=X.match(te),K=Z&&(Z[3]||Z[4]);return K&&$(K)}var k=/(^|;)\s*color:/;s.plainText=function(X,te){for(var Z=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],re=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(pe.substr(0,de-3)+"..."):q.push(pe.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,Z){return(Z.charAt(0)==="#"?function(K){if(!(K>1114111)){var re=String.fromCodePoint;if(re)return re(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(Z.charAt(1)==="x"?parseInt(Z.substr(2),16):parseInt(Z.substr(1),10)):I[Z])||te})}function Q(X){var te=encodeURI(decodeURI(X)),Z=document.createElement("a"),K=document.createElement("a");Z.href=X,K.href=te;var re=Z.protocol,q=K.protocol;return O.indexOf(re)!==-1&&O.indexOf(q)!==-1?te:""}function j(X,te,Z){var K,re,q,Y=Z.horizontalAlign,ee=Z.verticalAlign||"top",me=X.node().getBoundingClientRect(),pe=te.node().getBoundingClientRect();return re=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-pe.left,ae=re()-pe.top,ce=Z.gd||{};if(Z.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}s.convertEntities=$,s.sanitizeHTML=function(X){X=X.replace(C," ");for(var te=document.createElement("p"),Z=te,K=[],re=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},s.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(S){var w=i.onDone;i.onDone=function(){w&&w(),S(),i.onDone=null}}):Promise.resolve()},s.clear=function(b){if(b)u(n[b]),delete n[b];else for(var i in n)s.clear(i)}},36896:function(d,s,n){var u=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var S=Math.log(Math.min(i[0],i[1]))/Math.LN10;return u(S)||(S=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),S}},59972:function(d,s,n){var u=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;u.getTopojsonName=function(S){return[S.scope.replace(/ /g,"-"),"_",S.resolution.toString(),"m"].join("")},u.getTopojsonPath=function(S,w){return S+w+".json"},u.getTopojsonFeatures=function(S,w){var y=b[S.locationmode],m=w.objects[y];return i(w,m).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,s,n){var u=n(24040);d.exports=function(b){for(var i,S,w=u.layoutArrayContainers,y=u.layoutArrayRegexes,m=b.split("[")[0],a=0;a0&&S.log("Clearing previous rejected promises from queue."),P._promises=[]},s.cleanLayout=function(P){var A,L;P||(P={}),P.xaxis1&&(P.xaxis||(P.xaxis=P.xaxis1),delete P.xaxis1),P.yaxis1&&(P.yaxis||(P.yaxis=P.yaxis1),delete P.yaxis1),P.scene1&&(P.scene||(P.scene=P.scene1),delete P.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(P);for(A=0;A<$.length;A++){var Q=$[A];if(D&&D.test(Q)){var j=P[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(P[Q].radialaxis);else if(I&&I.test(Q)){var U=P[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=P[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var Z=te[0],K=te[1],re=te[2],q=b([],Z),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+re*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(P.annotations)?P.annotations.length:0;for(A=0;A3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(P),P.dragmode==="rotate"&&(P.dragmode="orbit"),m.clean(P),P.template&&P.template.layout&&s.cleanLayout(P.template.layout),P},s.cleanData=function(P){for(var A=0;A0)return P.substr(0,A)}s.hasParent=function(P,A){for(var L=M(A);L;){if(L in P)return!0;L=M(L)}return!1};var T=["x","y","z"];s.clearAxisTypes=function(P,A,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var P=h[""][""];if(m(P))c.set(null);else{if(!Array.isArray(P))return i.warn("Unrecognized full array edit value",_,P),!0;c.set(P)}return!R&&(O(M,T),C(a),!0)}var A,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(S),U=c.get(),X=U||[],te=v(T,_).get(),Z=[],K=-1,re=X.length;for(A=0;AX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),m(z)?Z.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;A--)X.splice(Z[A],1),te&&te.splice(Z[A],1);if(X.length?U||c.set(X):c.set(null),R)return!1;if(O(M,T),x!==b){var q;if(K===-1)q=j;else{for(re=Math.max(X.length,re),q=[],A=0;A=K);A++)q.push(D);for(A=K;A=Ue.data.length||Me<-Ue.data.length)throw new Error(Ye+" must be valid indices for gd.data.");if(Ze.indexOf(Me,Je+1)>-1||Me>=0&&Ze.indexOf(-Ue.data.length+Me)>-1||Me<0&&Ze.indexOf(Ue.data.length+Me)>-1)throw new Error("each index in "+Ye+" must be unique.")}}function te(Ue,Ze,Ye){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Ye===void 0||Array.isArray(Ye)||(Ye=[Ye]),Ye!==void 0&&X(Ue,Ye,"newIndices"),Ye!==void 0&&Ze.length!==Ye.length)throw new Error("current and new indices must be of equal length.")}function Z(Ue,Ze,Ye,Je,Me){(function(St,Ft,zt,Yt){var ln=S.isPlainObject(Yt);if(!Array.isArray(St.data))throw new Error("gd.data must be an array");if(!S.isPlainObject(Ft))throw new Error("update must be a key:value object");if(zt===void 0)throw new Error("indices must be an integer or array of integers");for(var tn in X(St,zt,"indices"),Ft){if(!Array.isArray(Ft[tn])||Ft[tn].length!==zt.length)throw new Error("attribute "+tn+" must be an array of length equal to indices array length");if(ln&&(!(tn in Yt)||!Array.isArray(Yt[tn])||Yt[tn].length!==Ft[tn].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Ye,Je);for(var Fe=function(St,Ft,zt,Yt){var ln,tn,Et,Ot,cn,Cn=S.isPlainObject(Yt),Pn=[];for(var Sn in Array.isArray(zt)||(zt=[zt]),zt=U(zt,St.data.length-1),Ft)for(var vt=0;vt-1&&Ye.indexOf("grouptitlefont")===-1?tt(Ye,Ye.replace("titlefont","title.font")):Ye.indexOf("titleposition")>-1?tt(Ye,Ye.replace("titleposition","title.position")):Ye.indexOf("titleside")>-1?tt(Ye,Ye.replace("titleside","title.side")):Ye.indexOf("titleoffset")>-1&&tt(Ye,Ye.replace("titleoffset","title.offset")):tt(Ye,Ye.replace("title","title.text"));function tt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Ye){Ue=S.getGraphDiv(Ue),A.clearPromiseQueue(Ue);var Je={};if(typeof Ze=="string")Je[Ze]=Ye;else{if(!S.isPlainObject(Ze))return S.warn("Relayout fail.",Ze,Ye),Promise.reject();Je=S.extendFlat({},Ze)}Object.keys(Je).length&&(Ue.changed=!0);var Me=_e(Ue,Je),Fe=Me.flags;Fe.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Fe.layoutReplot?je.push(L.layoutReplot):Object.keys(Je).length&&(ae(Ue,Fe,Me)||h.supplyDefaults(Ue),Fe.legend&&je.push(L.doLegend),Fe.layoutstyle&&je.push(L.layoutStyles),Fe.axrange&&ce(je,Me.rangesAltered),Fe.ticks&&je.push(L.doTicksRelayout),Fe.modebar&&je.push(L.doModeBar),Fe.camera&&je.push(L.doCamera),Fe.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),m.add(Ue,se,[Ue,Me.undoit],se,[Ue,Me.redoit]);var tt=S.syncOrAsync(je,Ue);return tt&&tt.then||(tt=Promise.resolve(Ue)),tt.then(function(){return Ue.emit("plotly_relayout",Me.eventData),Ue})}function ae(Ue,Ze,Ye){var Je,Me,Fe=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var tt=function(Ft,zt){return S.coerce(Je,Me,_,Ft,zt)},ot={};for(var Ge in Ye.rangesAltered){var ht=p.id2name(Ge);if(Je=Ue.layout[ht],Me=Fe[ht],v(Je,Me,tt,ot),Me._matchGroup){for(var pt in Me._matchGroup)if(pt!==Ge){var St=Fe[p.id2name(pt)];St.autorange=Me.autorange,St.range=Me.range.slice(),St._input.range=Me.range.slice()}}}return!0}function ce(Ue,Ze){var Ye=Ze?function(Je){var Me=[];for(var Fe in Ze){var je=p.getFromId(Je,Fe);if(Me.push(Fe),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Me.push(je._anchorAxis._id),je._matchGroup)for(var tt in je._matchGroup)Ze[tt]||Me.push(tt)}return p.draw(Je,Me,{skipTitle:!0})}:function(Je){return p.draw(Je,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Ye,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ye=/^[xyz]axis[0-9]*\.autorange$/,ve=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Ye,Je,Me,Fe=Ue.layout,je=Ue._fullLayout,tt=je._guiEditing,ot=Y(je._preGUI,tt),Ge=Object.keys(Ze),ht=p.list(Ue),pt=S.extendDeepAll({},Ze),St={};for(pe(Ze),Ge=Object.keys(Ze),Je=0;Je0&&typeof vt.parts[st]!="string";)st--;var bt=vt.parts[st],Vt=vt.parts[st-1]+"."+bt,Dt=vt.parts.slice(0,st).join("."),it=w(Ue.layout,Dt).get(),at=w(je,Dt).get(),Bt=vt.get();if(xt!==void 0){tn[Sn]=xt,Et[Sn]=bt==="reverse"?xt:q(Bt);var _t=c.getLayoutValObject(je,vt.parts);if(_t&&_t.impliedEdits&&xt!==null)for(var qt in _t.impliedEdits)Ot(S.relativeAttr(Sn,qt),_t.impliedEdits[qt]);if(["width","height"].indexOf(Sn)!==-1)if(xt){Ot("autosize",null);var en=Sn==="height"?"width":"height";Ot(en,je[en])}else je[Sn]=Ue._initialAutoSize[Sn];else if(Sn==="autosize")Ot("width",xt?null:je.width),Ot("height",xt?null:je.height);else if(Vt.match(de))Pn(Vt),w(je,Dt+"._inputRange").set(null);else if(Vt.match(ye)){Pn(Vt),w(je,Dt+"._inputRange").set(null);var Jt=w(je,Dt).get();Jt._inputDomain&&(Jt._input.domain=Jt._inputDomain.slice())}else Vt.match(ve)&&w(je,Dt+"._inputDomain").set(null);if(bt==="type"){cn=it;var Zt=at.type==="linear"&&xt==="log",Nt=at.type==="log"&&xt==="linear";if(Zt||Nt){if(cn&&cn.range)if(at.autorange)Zt&&(cn.range=cn.range[1]>cn.range[0]?[1,2]:[2,1]);else{var sn=cn.range[0],rn=cn.range[1];Zt?(sn<=0&&rn<=0&&Ot(Dt+".autorange",!0),sn<=0?sn=rn/1e6:rn<=0&&(rn=sn/1e6),Ot(Dt+".range[0]",Math.log(sn)/Math.LN10),Ot(Dt+".range[1]",Math.log(rn)/Math.LN10)):(Ot(Dt+".range[0]",Math.pow(10,sn)),Ot(Dt+".range[1]",Math.pow(10,rn)))}else Ot(Dt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,xt,Ot),a.getComponentMethod("images","convertCoords")(Ue,at,xt,Ot)}else Ot(Dt+".autorange",!0),Ot(Dt+".range",null);w(je,Dt+"._inputRange").set(null)}else if(bt.match(k)){var _n=w(je,Sn).get(),wn=(xt||{}).type;wn&&wn!=="-"||(wn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,_n,wn,Ot),a.getComponentMethod("images","convertCoords")(Ue,_n,wn,Ot)}var An=P.containerArrayMatch(Sn);if(An){Ye=An.array,Je=An.index;var Kn=An.property,fr=_t||{editType:"calc"};Je!==""&&Kn===""&&(P.isAddVal(xt)?Et[Sn]=null:P.isRemoveVal(xt)?Et[Sn]=(w(Fe,Ye).get()||[])[Je]:S.warn("unrecognized full object value",Ze)),D.update(ln,fr),St[Ye]||(St[Ye]={});var Un=St[Ye][Je];Un||(Un=St[Ye][Je]={}),Un[Kn]=xt,delete Ze[Sn]}else bt==="reverse"?(it.range?it.range.reverse():(Ot(Dt+".autorange",!0),it.range=[1,0]),at.autorange?ln.calc=!0:ln.plot=!0):(Sn==="dragmode"&&(xt===!1&&Bt!==!1||xt!==!1&&Bt===!1)||je._has("scatter-like")&&je._has("regl")&&Sn==="dragmode"&&(xt==="lasso"||xt==="select")&&Bt!=="lasso"&&Bt!=="select"||je._has("gl2d")?ln.plot=!0:_t?D.update(ln,_t):ln.calc=!0,vt.set(xt))}}for(Ye in St)P.applyContainerArrayChanges(Ue,ot(Fe,Ye),St[Ye],ln,ot)||(ln.plot=!0);for(var Zn in Cn){var tr=(cn=p.getFromId(Ue,Zn))&&cn._constraintGroup;if(tr)for(var Br in ln.calc=!0,tr)Cn[Br]||(p.getFromId(Ue,Br)._constraintShrinkable=!0)}(we(Ue)||Ze.height||Ze.width)&&(ln.plot=!0);var $r=je.shapes;for(Je=0;Je<$r.length;Je++)if($r[Je].showlegend){ln.calc=!0;break}return(ln.plot||ln.calc)&&(ln.layoutReplot=!0),{flags:ln,rangesAltered:Cn,undoit:Et,redoit:tn,eventData:pt}}function we(Ue){var Ze=Ue._fullLayout,Ye=Ze.width,Je=Ze.height;return Ue.layout.autosize&&h.plotAutoSize(Ue,Ue.layout,Ze),Ze.width!==Ye||Ze.height!==Je}function Te(Ue,Ze,Ye,Je){Ue=S.getGraphDiv(Ue),A.clearPromiseQueue(Ue),S.isPlainObject(Ze)||(Ze={}),S.isPlainObject(Ye)||(Ye={}),Object.keys(Ze).length&&(Ue.changed=!0),Object.keys(Ye).length&&(Ue.changed=!0);var Me=A.coerceTraceIndices(Ue,Je),Fe=me(Ue,S.extendFlat({},Ze),Me),je=Fe.flags,tt=_e(Ue,S.extendFlat({},Ye)),ot=tt.flags;(je.calc||ot.calc)&&(Ue.calcdata=void 0),je.clearAxisTypes&&A.clearAxisTypes(Ue,Me,Ye);var Ge=[];ot.layoutReplot?Ge.push(L.layoutReplot):je.fullReplot?Ge.push(s._doPlot):(Ge.push(h.previousPromises),ae(Ue,ot,tt)||h.supplyDefaults(Ue),je.style&&Ge.push(L.doTraceStyle),(je.colorbars||ot.colorbars)&&Ge.push(L.doColorBars),ot.legend&&Ge.push(L.doLegend),ot.layoutstyle&&Ge.push(L.layoutStyles),ot.axrange&&ce(Ge,tt.rangesAltered),ot.ticks&&Ge.push(L.doTicksRelayout),ot.modebar&&Ge.push(L.doModeBar),ot.camera&&Ge.push(L.doCamera),Ge.push(z)),Ge.push(h.rehover,h.redrag,h.reselect),m.add(Ue,Te,[Ue,Fe.undoit,tt.undoit,Fe.traces],Te,[Ue,Fe.redoit,tt.redoit,Fe.traces]);var ht=S.syncOrAsync(Ge,Ue);return ht&&ht.then||(ht=Promise.resolve(Ue)),ht.then(function(){return Ue.emit("plotly_update",{data:Fe.eventData,layout:tt.eventData}),Ue})}function Pe(Ue){return function(Ze){Ze._fullLayout._guiEditing=!0;var Ye=Ue.apply(null,arguments);return Ze._fullLayout._guiEditing=!1,Ye}}var Ie=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ze=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function De(Ue,Ze){for(var Ye=0;Ye1;)if(Je.pop(),(Ye=w(Ze,Je.join(".")+".uirevision").get())!==void 0)return Ye;return Ze.uirevision}function Ve(Ue,Ze){for(var Ye=0;Ye=Me.length?Me[0]:Me[Ge]:Me}function tt(Ge){return Array.isArray(Fe)?Ge>=Fe.length?Fe[0]:Fe[Ge]:Fe}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return Je._frameWaitingCnt===void 0&&(Je._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),Je._lastFrameAt=-1/0,Je._timeToNext=0,Je._runningTransitions=0,Je._currentFrame=null;var Sn=function(){Je._animationRaf=window.requestAnimationFrame(Sn),Date.now()-Je._lastFrameAt>Je._timeToNext&&function(){Je._currentFrame&&Je._currentFrame.onComplete&&Je._currentFrame.onComplete();var vt=Je._currentFrame=Je._frameQueue.shift();if(vt){var xt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=xt,Je._lastFrameAt=Date.now(),Je._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,A.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:xt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(Je._animationRaf),Je._animationRaf=null}()};Sn()}var St,Ft,zt=0;function Yt(Sn){return Array.isArray(Me)?zt>=Me.length?Sn.transitionOpts=Me[zt]:Sn.transitionOpts=Me[0]:Sn.transitionOpts=Me,zt++,Sn}var ln=[],tn=Ze==null,Et=Array.isArray(Ze);if(tn||Et||!S.isPlainObject(Ze)){if(tn||["string","number"].indexOf(typeof Ze)!==-1)for(St=0;St0&&CnCn)&&Pn.push(Ft);ln=Pn}}ln.length>0?function(Sn){if(Sn.length!==0){for(var vt=0;vt=0;Je--)if(S.isPlainObject(Ze[Je])){var St=Ze[Je].name,Ft=(ot[St]||pt[St]||{}).name,zt=Ze[Je].name,Yt=ot[Ft]||pt[Ft];Ft&&zt&&typeof zt=="number"&&Yt&&I<5&&(I++,S.warn('addFrames: overwriting frame "'+(ot[Ft]||pt[Ft]).name+'" with a frame whose name of type "number" also equates to "'+Ft+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&S.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[St]={name:St},ht.push({frame:h.supplyFrameDefaults(Ze[Je]),index:Ye&&Ye[Je]!==void 0&&Ye[Je]!==null?Ye[Je]:Ge+Je})}ht.sort(function(Sn,vt){return Sn.index>vt.index?-1:Sn.index=0;Je--){if(typeof(Me=ht[Je].frame).name=="number"&&S.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Me.name)for(;ot[Me.name="frame "+Ue._transitionData._counter++];);if(ot[Me.name]){for(Fe=0;Fe=0;Ye--)Je=Ze[Ye],Fe.push({type:"delete",index:Je}),je.unshift({type:"insert",index:Je,value:Me[Je]});var tt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Fe];return m&&m.add(Ue,tt,Ge,ot,ht),h.modifyFrames(Ue,Fe)},s.addTraces=function Ue(Ze,Ye,Je){Ze=S.getGraphDiv(Ze);var Me,Fe,je=[],tt=s.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Ye];for(function(pt,St,Ft){var zt,Yt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(St===void 0)throw new Error("traces must be defined.");for(Array.isArray(St)||(St=[St]),zt=0;zt=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function P(){var k,I,z={};for(k in c(z,S),u.subplotsRegistry)if((I=u.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(u.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(u.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var Z=te.basePlotModule;Z&&Z.attributes&&($=Z.attributes[Q])}$||($=i[Q])}return M($,I,j)},s.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,Z=$._basePlotModules;if(Z){var K;for(j=0;j=h&&(c._input||{})._templateitemname;v&&(p=h);var _,O=a+"["+p+"]";function C(){_={},v&&(_[O]={},_[O][i]=v)}function x(M,T){v?u.nestedProperty(_[O],M).set(T):_[O+"."+M]=T}function R(){var M=_;return C(),M}return C(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var P=R();for(var A in P)u.nestedProperty(m,A).set(P[A])}}}},39172:function(d,s,n){var u=n(33428),b=n(24040),i=n(7316),S=n(3400),w=n(72736),y=n(73696),m=n(76308),a=n(43616),c=n(81668),h=n(45460),p=n(54460),v=n(84284),_=n(71888),O=_.enforce,C=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,Z=p.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),s.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var St=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-St:ht._offset+ht._length+te+St:X.t+X.h*(1-(Ge.position||0))+St%1:ht?pt==="right"?ht._offset+ht._length+te+St:ht._offset-te-St:X.l+X.w*(Ge.position||0)+St%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ye,ve,_e,we){var Te=0;return ve==="middle"&&(Te+=we/2),de==="t"?(ve==="top"&&(Te+=we),Te+=_e-ye*_e):(ve==="bottom"&&(Te+=we),Te+=ye*_e),Te}(se,me,pe,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(Z>0){(function(q,Y,ee,me){var pe="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ye,ve,_e,we,Te){var Pe=ve.yref==="paper"?ye._fullLayout._size.h:ye._fullLayout.height,Ie=S.isTopAnchor(ve)?we:we-Te,ze=_e==="b"?Pe-Ie:Ie;return!(S.isTopAnchor(ve)&&_e==="t"||S.isBottomAnchor(ve)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(Z,K){for(var re in Z)if(re.charAt(0)!=="_"){var q=Z[re],Y=_(Z,re,K);b(q)?(Array.isArray(Z)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&O(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(C)}},67024:function(d,s,n){var u=n(38248),b=n(36424),i=n(7316),S=n(3400),w=n(81792),y=n(37164),m=n(63268),a=n(25788).version,c={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,p){var v,_,O,C;function x(X){return!(X in p)||S.validate(p[X],c[X])}if(p=p||{},S.isPlainObject(h)?(v=h.data||[],_=h.layout||{},O=h.config||{},C={}):(h=S.getGraphDiv(h),v=S.extendDeep([],h.data),_=S.extendDeep({},h.layout),O=h._context,C=h._fullLayout||{}),!x("width")&&p.width!==null||!x("height")&&p.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+S.join2(c.format.values,", "," or ")+".");var R={};function M(X,te){return S.coerce(p,R,c,X,te)}var T=M("format"),P=M("width"),A=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=S.extendFlat({},_);P?z.width=P:p.width===null&&u(C.width)&&(z.width=C.width),A?z.height=A:p.height===null&&u(C.height)&&(z.height=C.height);var $=S.extendFlat({},O,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var Z=y(I,T,L),K=I._fullLayout.width,re=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?Z:w.encodeSVG(Z));var ee=document.createElement("canvas");ee.id=S.randstr(),m({format:T,width:K,height:re,scale:L,canvas:ee,svg:Z,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(Z){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(Z))}).catch(function(Z){te(Z)})})}},21480:function(d,s,n){var u=n(3400),b=n(7316),i=n(73060),S=n(20556).dfltConfig,w=u.isPlainObject,y=Array.isArray,m=u.isArrayOrTypedArray;function a(x,R,M,T,P,A){A=A||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(p("unused",P,I.concat($.length)));var Z,K,re,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(p("unused",P,I.concat(K,$[K].length)));var pe=$[K].length;for(Z=0;Z<(me?Math.min(pe,te[K].length):pe);Z++)re=me?te[K][Z]:te,q=z[K][Z],Y=$[K][Z],u.validate(q,re)?Y!==q&&Y!==+q&&T.push(p("dynamic",P,I.concat(K,Z),q,Y)):T.push(p("value",P,I.concat(K,Z),q))}else T.push(p("array",P,I.concat(K),z[K]));else for(K=0;K1&&A.push(p("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:c};p=_}for(var O=m.calendar,C=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,O)||0,T=[],P=[],A=[],L=c.length,D=0;D$;)z=S(z,-p,O);for(;z<=$;)z=S(z,p,O);I=S(z,-p,O)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=C?I:x?z:(I+z)/2,P[D]=I,A[D]=z}return{vals:T,starts:P,ends:A}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,s,n){var u=n(33428),b=n(38248),i=n(3400),S=n(39032).FP_SAFE,w=n(24040),y=n(43616),m=n(79811),a=m.getFromId,c=m.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=O(D,k),te=X.min,Z=X.max;if(te.length===0||Z.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,re=Z[0].val;for(I=1;I0&&((ce=we-j(me)-U(pe))>Te?de/ce>Pe&&(se=me,ae=pe,Pe=de/ce):de/we>Pe&&(se={val:me.val,nopad:1},ae={val:pe.val,nopad:1},Pe=de/we));if(K===re){var Ie=K-1,ze=K+1;if(ve)if(K===0)$=[0,1];else{var De=(K>0?Z:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),Qe=K/(1-Math.min(.5,De/we));$=K>0?[0,Qe]:[Qe,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ve?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-p(k,me.val,pe.val))/(we-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function p(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ye=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ve=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(Z=1/0,K=-1/0,pe)for(z=0;z0&&(Z=$),$>K&&$-S&&(Z=$),$>K&&$=Pe;z--)Te(z);return{min:re,max:q,opts:I}},concatExtremes:O};var _=3;function O(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],Z=[];function K(me,pe){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var Z=Q&&k===0;D.push({val:k,pad:Z?0:I,extrapad:!Z&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function A(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,Z){var K=Z.autorangeoptions;return K&&K.minallowed!==void 0&&A(Z,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&A(Z,K.clipmin,K.clipmax)?Math.max(te,Z.d2l(K.clipmin)):te}(I,k),z=function(te,Z){var K=Z.autorangeoptions;return K&&K.maxallowed!==void 0&&A(Z,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&A(Z,K.clipmin,K.clipmax)?Math.min(te,Z.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(s,n,u){var b,i;if(u){var S=n==="reversed"||n==="min reversed"||n==="max reversed";b=u[S?1:0],i=u[S?0:1]}var w=s("autorangeoptions.minallowed",i===null?b:void 0),y=s("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&s("autorangeoptions.clipmin"),y===void 0&&s("autorangeoptions.clipmax"),s("autorangeoptions.include")}},54460:function(d,s,n){var u=n(33428),b=n(38248),i=n(7316),S=n(24040),w=n(3400),y=w.strTranslate,m=n(72736),a=n(81668),c=n(76308),h=n(43616),p=n(94724),v=n(98728),_=n(39032),O=_.ONEMAXYEAR,C=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,P=_.ONEMAXMONTH,A=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},Z={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},re={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,pe=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ye=de.idSort,ve=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var we=1e-4;function Te(it){var at=(it[1]-it[0])*we;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Bt,_t,qt,en){var Jt=_t.charAt(_t.length-1),Zt=Bt._fullLayout._subplots[Jt+"axis"],Nt=_t+"ref",sn={};return qt||(qt=Zt[0]||(typeof en=="string"?en:en[0])),en||(en=qt),Zt=Zt.concat(Zt.map(function(rn){return rn+" domain"})),sn[Nt]={valType:"enumerated",values:Zt.concat(en?typeof en=="string"?[en]:en:[]),dflt:qt},w.coerce(it,at,sn,Nt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Bt,_t,qt,en){var Jt,Zt;if(ae.getRefType(_t)!=="range")Jt=w.ensureNumber,Zt=Bt(qt,en);else{var Nt=ae.getFromId(at,_t);Zt=Bt(qt,en=Nt.fraction2r(en)),Jt=Nt.cleanPos}it[qt]=Jt(Zt)},ae.cleanPosition=function(it,at,Bt){return(Bt==="paper"||Bt==="pixel"?w.ensureNumber:ae.getFromId(at,Bt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Bt=it._fullLayout;function _t(qt,en,Jt,Zt){for(var Nt=S.getComponentMethod(qt,en),sn={},rn=0;rn_t&&_n2e-6||((Bt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Bt=ae.list(it,"",!0),_t=!1,qt=0;qt.3*Vr||lr(Br)||lr($r))){var eo=tr.dtick/2;Un+=Un+eo.8){var qn=Number(tr.substr(1));vr.exactYears>.8&&qn%12==0?Un=ae.tickIncrement(Un,"M6","reverse")+1.5*k:vr.exactMonths>.8?Un=ae.tickIncrement(Un,"M1","reverse")+15.5*k:Un-=I;var gr=ae.tickIncrement(Un,tr);if(gr<=Br)return gr}return Un}(fr,it,Kn,Zt,qt)),An=fr;An<=Nt;)An=ae.tickIncrement(An,Kn,!1,qt);return{start:at.c2r(fr,0,qt),end:at.c2r(An,0,qt),size:Kn,_dataSpan:Nt-Zt}},ae.prepMinorTicks=function(it,at,Bt){if(!at.minor.dtick){delete it.dtick;var _t,qt=at.dtick&&b(at._tmin);if(qt){var en=ae.tickIncrement(at._tmin,at.dtick,!0);_t=[at._tmin,.99*en+.01*at._tmin]}else{var Jt=w.simpleMap(at.range,at.r2l);_t=[Jt[0],.8*Jt[0]+.2*Jt[1]]}if(it.range=w.simpleMap(_t,at.l2r),it._isMinor=!0,ae.prepTicks(it,Bt),qt){var Zt=b(at.dtick),Nt=b(it.dtick),sn=Zt?at.dtick:+at.dtick.substring(1),rn=Nt?it.dtick:+it.dtick.substring(1);Zt&&Nt?De(sn,rn)?sn===2*D&&rn===2*k&&(it.dtick=D):sn===2*D&&rn===3*k?it.dtick=D:sn!==D||(at._input.minor||{}).nticks?Qe(sn/rn,2.5)?it.dtick=sn/2:it.dtick=sn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Nt?it.dtick="M1":De(sn,rn)?sn>=12&&rn===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(sn,rn)||(it.dtick=Qe(sn/rn,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Bt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var _t,qt=it.nticks;qt||(it.type==="category"||it.type==="multicategory"?(_t=it.tickfont?w.bigFont(it.tickfont.size||12):15,qt=it._length/_t):(_t=it._id.charAt(0)==="y"?40:80,qt=w.constrain(it._length/_t,4,9)+1),it._name==="radialaxis"&&(qt*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(qt*=100),it._roughDTick=Math.abs(Bt[1]-Bt[0])/qt,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(en){var Jt;function Zt(){return!(b(en.dtick)||en.dtick.charAt(0)!=="M")}var Nt=Zt(),sn=ae.getTickFormat(en);if(sn){var rn=en._dtickInit!==en.dtick;/%[fLQsSMX]/.test(sn)||(/%[HI]/.test(sn)?(Jt=z,rn&&!Nt&&en.dtick=(Zn?0:1);tr--){var Br=!tr;tr?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var $r=tr?it:w.extendFlat({},it,it.minor);if(Br?ae.prepMinorTicks($r,it,at):ae.prepTicks($r,at),$r.tickmode!=="array")if($r.tickmode!=="sync"){var vr=Te(Nt),qn=vr[0],gr=vr[1],sr=b($r.dtick),lr=qt==="log"&&!(sr||$r.dtick.charAt(0)==="L"),zr=ae.tickFirst($r,at);if(tr){if(it._tmin=zr,zr=gr:Yr<=gr;Yr=ae.tickIncrement(Yr,to,sn,en)){if(tr&&Vr++,$r.rangebreaks&&!sn){if(Yr=_n)break}if(fr.length>wn||Yr===Jr)break;Jr=Yr;var co={value:Yr};tr?(lr&&Yr!==(0|Yr)&&(co.simpleLabel=!0),Jt>1&&Vr%Jt&&(co.skipLabel=!0),fr.push(co)):(co.minor=!0,Un.push(co))}}else fr=[],An=Oe(it);else tr?(fr=[],An=ke(it,!Br)):(Un=[],Kn=ke(it,!Br))}if(Zn&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Fo=fr.map(function(On){return On.value}),_o=[],$o=0;$o0?(Gt=kr-1,on=kr):(Gt=kr,on=kr);var an,Tn=On[Gt].value,zn=On[on].value,Gn=Math.abs(zn-Tn),Lr=ir||Gn,Ur=0;Lr>=x?Ur=Gn>=x&&Gn<=O?Gn:C:ir===M&&Lr>=T?Ur=Gn>=T&&Gn<=R?Gn:M:Lr>=L?Ur=Gn>=L&&Gn<=P?Gn:A:ir===D&&Lr>=D?Ur=D:Lr>=k?Ur=k:ir===I&&Lr>=I?Ur=I:ir===z&&Lr>=z&&(Ur=z),Ur>=Gn&&(Ur=Gn,an=!0);var qr=Er+Ur;if(Yn.rangebreaks&&Ur>0){for(var Cr=0,wo=0;wo<84;wo++){var Nr=(wo+.5)/84;Yn.maskBreaks(Er*(1-Nr)+Nr*qr)!==U&&Cr++}(Ur*=Cr/84)||(On[kr].drop=!0),an&&Gn>D&&(Ur=Gn)}(Ur>0||kr===0)&&(On[kr].periodX=Er+Ur/2)}}(fr,it,it._definedDelta),it.rangebreaks){var Dr=it._id.charAt(0)==="y",Sr=1;it.tickmode==="auto"&&(Sr=it.tickfont?it.tickfont.size:12);var Zr=NaN;for(Bt=fr.length-1;Bt>-1;Bt--)if(fr[Bt].drop)fr.splice(Bt,1);else{fr[Bt].value=st(fr[Bt].value,it);var go=it.c2p(fr[Bt].value);(Dr?Zr>go-Sr:Zr_n||io_n&&(oo.periodX=_n),io10||_t.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&qt<=10||at>=15*k)it._tickround="d";else if(at>=$&&qt<=16||at>=z)it._tickround="M";else if(at>=Q&&qt<=19||at>=$)it._tickround="S";else{var en=it.l2r(Bt+at).replace(/^-/,"").length;it._tickround=Math.max(qt,en)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Jt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Zt=Math.max(Math.abs(Jt[0]),Math.abs(Jt[1])),Nt=Math.floor(Math.log(Zt)/Math.LN10+.01),sn=it.minexponent===void 0?3:it.minexponent;Math.abs(Nt)>sn&&(Ge(it.exponentformat)&&!ht(Nt)?it._tickexponent=3*Math.round((Nt-1)/3):it._tickexponent=Nt)}else it._tickround=null}function tt(it,at,Bt){var _t=it.tickfont||{};return{x:at,dx:0,dy:0,text:Bt||"",fontSize:_t.size,font:_t.family,fontColor:_t.color}}ae.autoTicks=function(it,at,Bt){var _t;function qt(_n){return Math.pow(_n,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var en=2*at;if(en>C)at/=C,_t=qt(10),it.dtick="M"+12*Fe(at,_t,Re);else if(en>A)at/=A,it.dtick="M"+Fe(at,1,We);else if(en>k){if(it.dtick=Fe(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Bt){var Jt=ae.getTickFormat(it),Zt=it.ticklabelmode==="period";Zt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Jt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Zt&&(it._dowTick0=it.tick0)}}else en>z?it.dtick=Fe(at,z,We):en>$?it.dtick=Fe(at,$,Ue):en>Q?it.dtick=Fe(at,Q,Ue):(_t=qt(10),it.dtick=Fe(at,_t,Re))}else if(it.type==="log"){it.tick0=0;var Nt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Nt[1]-Nt[0])<1){var sn=1.5*Math.abs((Nt[1]-Nt[0])/at);at=Math.abs(Math.pow(10,Nt[1])-Math.pow(10,Nt[0]))/sn,_t=qt(10),it.dtick="L"+Fe(at,_t,Re)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):xt(it)?(it.tick0=0,_t=1,it.dtick=Fe(at,_t,Me)):(it.tick0=0,_t=qt(10),it.dtick=Fe(at,_t,Re));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var rn=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(rn)}},ae.tickIncrement=function(it,at,Bt,_t){var qt=Bt?-1:1;if(b(at))return w.increment(it,qt*at);var en=at.charAt(0),Jt=qt*Number(at.substr(1));if(en==="M")return w.incrementMonth(it,Jt,_t);if(en==="L")return Math.log(Math.pow(10,it)+Jt)/Math.LN10;if(en==="D"){var Zt=at==="D2"?Je:Ye,Nt=it+.01*qt,sn=w.roundUp(w.mod(Nt,1),Zt,Bt);return Math.floor(Nt)+Math.log(u.round(Math.pow(10,sn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Bt=it.r2l||Number,_t=w.simpleMap(it.range,Bt,void 0,void 0,at),qt=_t[1]<_t[0],en=qt?Math.floor:Math.ceil,Jt=Te(_t)[0],Zt=it.dtick,Nt=Bt(it.tick0);if(b(Zt)){var sn=en((Jt-Nt)/Zt)*Zt+Nt;return it.type!=="category"&&it.type!=="multicategory"||(sn=w.constrain(sn,0,it._categories.length-1)),sn}var rn=Zt.charAt(0),_n=Number(Zt.substr(1));if(rn==="M"){for(var wn,An,Kn,fr=0,Un=Nt;fr<10;){if(((wn=ae.tickIncrement(Un,Zt,qt,it.calendar))-Jt)*(Un-Jt)<=0)return qt?Math.min(Un,wn):Math.max(Un,wn);An=(Jt-(Un+wn)/2)/(wn-Un),Kn=rn+(Math.abs(Math.round(An))||1)*_n,Un=ae.tickIncrement(Un,Kn,An<0?!qt:qt,it.calendar),fr++}return w.error("tickFirst did not converge",it),Un}if(rn==="L")return Math.log(en((Math.pow(10,Jt)-Nt)/_n)*_n+Nt)/Math.LN10;if(rn==="D"){var Zn=Zt==="D2"?Je:Ye,tr=w.roundUp(w.mod(Jt,1),Zn,qt);return Math.floor(Jt)+Math.log(u.round(Math.pow(10,tr),1))/Math.LN10}throw"unrecognized dtick "+String(Zt)},ae.tickText=function(it,at,Bt,_t){var qt,en=tt(it,at),Jt=it.tickmode==="array",Zt=Bt||Jt,Nt=it.type,sn=Nt==="category"?it.d2l_noadd:it.d2l;if(Jt&&w.isArrayOrTypedArray(it.ticktext)){var rn=w.simpleMap(it.range,it.r2l),_n=(Math.abs(rn[1]-rn[0])-(it._lBreaks||0))/1e4;for(qt=0;qt ")}else Un._prevDateHead=qn,gr+="
"+qn;Zn.text=gr}(it,en,Bt,Zt):Nt==="log"?function(Un,Zn,tr,Br,$r){var vr=Un.dtick,qn=Zn.x,gr=Un.tickformat,sr=typeof vr=="string"&&vr.charAt(0);if($r==="never"&&($r=""),Br&&sr!=="L"&&(vr="L3",sr="L"),gr||sr==="L")Zn.text=pt(Math.pow(10,qn),Un,$r,Br);else if(b(vr)||sr==="D"&&w.mod(qn+.01,1)<.1){var lr=Math.round(qn),zr=Math.abs(lr),Vr=Un.exponentformat;Vr==="power"||Ge(Vr)&&ht(lr)?(Zn.text=lr===0?1:lr===1?"10":"10"+(lr>1?"":j)+zr+"",Zn.fontSize*=1.25):(Vr==="e"||Vr==="E")&&zr>2?Zn.text="1"+Vr+(lr>0?"+":j)+zr:(Zn.text=pt(Math.pow(10,qn),Un,"","fakehover"),vr==="D1"&&Un._id.charAt(0)==="y"&&(Zn.dy-=Zn.fontSize/6))}else{if(sr!=="D")throw"unrecognized dtick "+String(vr);Zn.text=String(Math.round(Math.pow(10,w.mod(qn,1)))),Zn.fontSize*=.75}if(Un.dtick==="D1"){var eo=String(Zn.text).charAt(0);eo!=="0"&&eo!=="1"||(Un._id.charAt(0)==="y"?Zn.dx-=Zn.fontSize/4:(Zn.dy+=Zn.fontSize/2,Zn.dx+=(Un.range[1]>Un.range[0]?1:-1)*Zn.fontSize*(qn<0?.5:.25)))}}(it,en,0,Zt,An):Nt==="category"?function(Un,Zn){var tr=Un._categories[Math.round(Zn.x)];tr===void 0&&(tr=""),Zn.text=String(tr)}(it,en):Nt==="multicategory"?function(Un,Zn,tr){var Br=Math.round(Zn.x),$r=Un._categories[Br]||[],vr=$r[1]===void 0?"":String($r[1]),qn=$r[0]===void 0?"":String($r[0]);tr?Zn.text=qn+" - "+vr:(Zn.text=vr,Zn.text2=qn)}(it,en,Bt):xt(it)?function(Un,Zn,tr,Br,$r){if(Un.thetaunit!=="radians"||tr)Zn.text=pt(Zn.x,Un,$r,Br);else{var vr=Zn.x/180;if(vr===0)Zn.text="0";else{var qn=function(sr){function lr(Jr,Yr){return Math.abs(Jr-Yr)<=1e-6}var zr=function(Jr){for(var Yr=1;!lr(Math.round(Jr*Yr)/Yr,Jr);)Yr*=10;return Yr}(sr),Vr=sr*zr,eo=Math.abs(function Jr(Yr,to){return lr(to,0)?Yr:Jr(to,Yr%to)}(Vr,zr));return[Math.round(Vr/eo),Math.round(zr/eo)]}(vr);if(qn[1]>=100)Zn.text=pt(w.deg2rad(Zn.x),Un,$r,Br);else{var gr=Zn.x<0;qn[1]===1?qn[0]===1?Zn.text="π":Zn.text=qn[0]+"π":Zn.text=["",qn[0],"","⁄","",qn[1],"","π"].join(""),gr&&(Zn.text=j+Zn.text)}}}}(it,en,Bt,Zt,An):function(Un,Zn,tr,Br,$r){$r==="never"?$r="":Un.showexponent==="all"&&Math.abs(Zn.x/Un.dtick)<1e-6&&($r="hide"),Zn.text=pt(Zn.x,Un,$r,Br)}(it,en,0,Zt,An),_t||(it.tickprefix&&!wn(it.showtickprefix)&&(en.text=it.tickprefix+en.text),it.ticksuffix&&!wn(it.showticksuffix)&&(en.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(en.text)){var Kn=it.labelalias[en.text];typeof Kn=="string"&&(en.text=Kn)}if(it.tickson==="boundaries"||it.showdividers){var fr=function(Un){var Zn=it.l2p(Un);return Zn>=0&&Zn<=it._length?Un:null};en.xbnd=[fr(en.x-.5),fr(en.x+it.dtick-.5)]}return en},ae.hoverLabelText=function(it,at,Bt){Bt&&(it=w.extendFlat({},it,{hoverformat:Bt}));var _t=w.isArrayOrTypedArray(at)?at[0]:at,qt=w.isArrayOrTypedArray(at)?at[1]:void 0;if(qt!==void 0&&qt!==_t)return ae.hoverLabelText(it,_t,Bt)+" - "+ae.hoverLabelText(it,qt,Bt);var en=it.type==="log"&&_t<=0,Jt=ae.tickText(it,it.c2l(en?-_t:_t),"hover").text;return en?_t===0?"0":j+Jt:Jt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Bt,_t){var qt=it<0,en=at._tickround,Jt=Bt||at.exponentformat||"B",Zt=at._tickexponent,Nt=ae.getTickFormat(at),sn=at.separatethousands;if(_t){var rn={exponentformat:Jt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(rn),en=(Number(rn._tickround)||0)+4,Zt=rn._tickexponent,at.hoverformat&&(Nt=at.hoverformat)}if(Nt)return at._numFormat(Nt)(it).replace(/-/g,j);var _n,wn=Math.pow(10,-en)/2;if(Jt==="none"&&(Zt=0),(it=Math.abs(it))"+_n+"":Jt==="B"&&Zt===9?it+="B":Ge(Jt)&&(it+=ot[Zt/3+5])),qt?j+it:it}function St(it,at){if(it){var Bt=Object.keys(q).reduce(function(_t,qt){return at.indexOf(qt)!==-1&&q[qt].forEach(function(en){_t[en]=1}),_t},{});Object.keys(it).forEach(function(_t){Bt[_t]||(_t.length===1?it[_t]=0:delete it[_t])})}}function Ft(it,at){for(var Bt=[],_t={},qt=0;qt1&&Bt=qt.min&&it=0,Zn=rn(wn,An[1])<=0;return(Kn||Un)&&(fr||Zn)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Jt(qt)))){Bt=_t;break}break;case"log":for(at=0;at=0&&qt.unshift(qt.splice(sn,1).shift())}});var Jt={false:{left:0,right:0}};return w.syncOrAsync(qt.map(function(Zt){return function(){if(Zt){var Nt=ae.getFromId(it,Zt);Bt||(Bt={}),Bt.axShifts=Jt,Bt.overlayingShiftedAx=en;var sn=ae.drawOne(it,Nt,Bt);return Nt._shiftPusher&&Dt(Nt,Nt._fullDepth||0,Jt,!0),Nt._r=Nt.range.slice(),Nt._rl=w.simpleMap(Nt._r,Nt.r2l),sn}}}))},ae.drawOne=function(it,at,Bt){var _t,qt,en,Jt=(Bt=Bt||{}).axShifts||{},Zt=Bt.overlayingShiftedAx||[];at.setScale();var Nt=it._fullLayout,sn=at._id,rn=sn.charAt(0),_n=ae.counterLetter(sn),wn=Nt._plots[at._mainSubplot];if(wn){if(at._shiftPusher=at.autoshift||Zt.indexOf(at._id)!==-1||Zt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var An=at.linewidth/2||0;at.ticks==="inside"&&(An+=at.ticklen),Dt(at,An,Jt,!0),Dt(at,at.shift||0,Jt,!1)}Bt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(on,an){return on.autoshift?an[on.overlaying][on.side]:on.shift||0}(at,Jt));var Kn=wn[rn+"axislayer"],fr=at._mainLinePosition,Un=fr+=at._shift,Zn=at._mainMirrorPosition,tr=at._vals=ae.calcTicks(at),Br=[at.mirror,Un,Zn].join("_");for(_t=0;_t0?on.bottom-Ur:0,qr))));var Cr=0,wo=0;if(at._shiftPusher&&(Cr=Math.max(qr,on.height>0?Gn==="l"?Ur-on.left:on.right-Ur:0),at.title.text!==Nt._dfltTitle[rn]&&(wo=(at._titleStandoff||0)+(at._titleScoot||0),Gn==="l"&&(wo+=ln(at))),at._fullDepth=Math.max(Cr,wo)),at.automargin){an={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(rn==="x"){if(Gn==="b"?an[Gn]=at._depth:(an[Gn]=at._depth=Math.max(on.width>0?Ur-on.top:0,qr),Nr.reverse()),on.width>0){var zo=on.right-(at._offset+at._length);zo>0&&(an.xr=1,an.r=zo);var Qt=at._offset-on.left;Qt>0&&(an.xl=0,an.l=Qt)}}else if(Gn==="l"?(at._depth=Math.max(on.height>0?Ur-on.left:0,qr),an[Gn]=at._depth-Eo):(at._depth=Math.max(on.height>0?on.right-Ur:0,qr),an[Gn]=at._depth+Eo,Nr.reverse()),on.height>0){var Mn=on.bottom-(at._offset+at._length);Mn>0&&(an.yb=0,an.b=Mn);var Fn=at._offset-on.top;Fn>0&&(an.yt=1,an.t=Fn)}an[_n]=at.anchor==="free"?at.position:at._anchorAxis.domain[Nr[0]],at.title.text!==Nt._dfltTitle[rn]&&(an[Gn]+=ln(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Tn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Tn[Lr]+=qr),at.mirror===!0||at.mirror==="ticks"?Tn[_n]=at._anchorAxis.domain[Nr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Tn[_n]=[at._counterDomainMin,at._counterDomainMax][Nr[1]]))}Er&&(zn=S.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(St(an,at.automargin),St(Tn,at.automargin)),i.autoMargin(it,Ot(at),an),i.autoMargin(it,cn(at),Tn),i.autoMargin(it,Cn(at),zn)}),w.syncOrAsync(ir)}}function Gt(on){var an=sn+(on||"tick");return $r[an]||($r[an]=function(Tn,zn){var Gn,Lr,Ur,qr;return Tn._selections[zn].size()?(Gn=1/0,Lr=-1/0,Ur=1/0,qr=-1/0,Tn._selections[zn].each(function(){var Cr=Et(this),wo=h.bBox(Cr.node().parentNode);Gn=Math.min(Gn,wo.top),Lr=Math.max(Lr,wo.bottom),Ur=Math.min(Ur,wo.left),qr=Math.max(qr,wo.right)})):(Gn=0,Lr=0,Ur=0,qr=0),{top:Gn,bottom:Lr,left:Ur,right:qr,height:Lr-Gn,width:qr-Ur}}(at,an)),$r[an]}},ae.getTickSigns=function(it,at){var Bt=it._id.charAt(0),_t={x:"top",y:"right"}[Bt],qt=it.side===_t?1:-1,en=[-1,1,qt,-qt];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Bt==="x")&&(en=en.map(function(Jt){return-Jt})),it.side&&en.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),en},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(qt){var en=qt.ticklabelposition||"",Jt=function(Zn){return en.indexOf(Zn)!==-1},Zt=Jt("top"),Nt=Jt("left"),sn=Jt("right"),rn=Jt("bottom"),_n=Jt("inside"),wn=rn||Nt||Zt||sn;if(!wn&&!_n)return[0,0];var An=qt.side,Kn=wn?(qt.tickwidth||0)/2:0,fr=3,Un=qt.tickfont?qt.tickfont.size:12;return(rn||Zt)&&(Kn+=Un*me,fr+=(qt.linewidth||0)/2),(Nt||sn)&&(Kn+=(qt.linewidth||0)/2,fr+=3),_n&&An==="top"&&(fr-=Un*(1-me)),(Nt||Zt)&&(Kn=-Kn),An!=="bottom"&&An!=="right"||(fr=-fr),[wn?Kn:0,_n?fr:0]}(it),Bt=at[0],_t=at[1];return it._id.charAt(0)==="x"?function(qt){return y(Bt+it._offset+it.l2p(zt(qt)),_t)}:function(qt){return y(_t,Bt+it._offset+it.l2p(zt(qt)))}},ae.makeTickPath=function(it,at,Bt,_t){_t||(_t={});var qt=_t.minor;if(qt&&!it.minor)return"";var en=_t.len!==void 0?_t.len:qt?it.minor.ticklen:it.ticklen,Jt=it._id.charAt(0),Zt=(it.linewidth||1)/2;return Jt==="x"?"M0,"+(at+Zt*Bt)+"v"+en*Bt:"M"+(at+Zt*Bt)+",0h"+en*Bt},ae.makeLabelFns=function(it,at,Bt){var _t=it.ticklabelposition||"",qt=function(Vr){return _t.indexOf(Vr)!==-1},en=qt("top"),Jt=qt("left"),Zt=qt("right"),Nt=qt("bottom")||Jt||en||Zt,sn=qt("inside"),rn=_t==="inside"&&it.ticks==="inside"||!sn&&it.ticks==="outside"&&it.tickson!=="boundaries",_n=0,wn=0,An=rn?it.ticklen:0;if(sn?An*=-1:Nt&&(An=0),rn&&(_n+=An,Bt)){var Kn=w.deg2rad(Bt);_n=An*Math.cos(Kn)+1,wn=An*Math.sin(Kn)}it.showticklabels&&(rn||it.showline)&&(_n+=.2*it.tickfont.size);var fr,Un,Zn,tr,Br,$r={labelStandoff:_n+=(it.linewidth||1)/2*(sn?-1:1),labelShift:wn},vr=0,qn=it.side,gr=it._id.charAt(0),sr=it.tickangle;if(gr==="x")tr=(Br=!sn&&qn==="bottom"||sn&&qn==="top")?1:-1,sn&&(tr*=-1),fr=wn*tr,Un=at+_n*tr,Zn=Br?1:-.2,Math.abs(sr)===90&&(sn?Zn+=ee:Zn=sr===-90&&qn==="bottom"?me:sr===90&&qn==="top"?ee:.5,vr=ee/2*(sr/90)),$r.xFn=function(Vr){return Vr.dx+fr+vr*Vr.fontSize},$r.yFn=function(Vr){return Vr.dy+Un+Vr.fontSize*Zn},$r.anchorFn=function(Vr,eo){if(Nt){if(Jt)return"end";if(Zt)return"start"}return b(eo)&&eo!==0&&eo!==180?eo*tr<0!==sn?"end":"start":"middle"},$r.heightFn=function(Vr,eo,Jr){return eo<-60||eo>60?-.5*Jr:it.side==="top"!==sn?-Jr:0};else if(gr==="y"){if(tr=(Br=!sn&&qn==="left"||sn&&qn==="right")?1:-1,sn&&(tr*=-1),fr=_n,Un=wn*tr,Zn=0,sn||Math.abs(sr)!==90||(Zn=sr===-90&&qn==="left"||sr===90&&qn==="right"?me:.5),sn){var lr=b(sr)?+sr:0;if(lr!==0){var zr=w.deg2rad(lr);vr=Math.abs(Math.sin(zr))*me*tr,Zn=0}}$r.xFn=function(Vr){return Vr.dx+at-(fr+Vr.fontSize*Zn)*tr+vr*Vr.fontSize},$r.yFn=function(Vr){return Vr.dy+Un+Vr.fontSize*ee},$r.anchorFn=function(Vr,eo){return b(eo)&&Math.abs(eo)===90?"middle":Br?"end":"start"},$r.heightFn=function(Vr,eo,Jr){return it.side==="right"&&(eo*=-1),eo<-30?-Jr:eo<30?-.5*Jr:0}}return $r},ae.drawTicks=function(it,at,Bt){Bt=Bt||{};var _t=at._id+"tick",qt=[].concat(at.minor&&at.minor.ticks?Bt.vals.filter(function(Jt){return Jt.minor&&!Jt.noTick}):[]).concat(at.ticks?Bt.vals.filter(function(Jt){return!Jt.minor&&!Jt.noTick}):[]),en=Bt.layer.selectAll("path."+_t).data(qt,Yt);en.exit().remove(),en.enter().append("path").classed(_t,1).classed("ticks",1).classed("crisp",Bt.crisp!==!1).each(function(Jt){return c.stroke(u.select(this),Jt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Jt){return h.crispRound(it,Jt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Bt.path).style("display",null),Vt(at,[K]),en.attr("transform",Bt.transFn)},ae.drawGrid=function(it,at,Bt){if(Bt=Bt||{},at.tickmode!=="sync"){var _t=at._id+"grid",qt=at.minor&&at.minor.showgrid,en=qt?Bt.vals.filter(function(Zn){return Zn.minor}):[],Jt=at.showgrid?Bt.vals.filter(function(Zn){return!Zn.minor}):[],Zt=Bt.counterAxis;if(Zt&&ae.shouldShowZeroLine(it,at,Zt))for(var Nt=at.tickmode==="array",sn=0;sn=0;Kn--){var fr=Kn?wn:An;if(fr){var Un=fr.selectAll("path."+_t).data(Kn?Jt:en,Yt);Un.exit().remove(),Un.enter().append("path").classed(_t,1).classed("crisp",Bt.crisp!==!1),Un.attr("transform",Bt.transFn).attr("d",Bt.path).each(function(Zn){return c.stroke(u.select(this),Zn.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(Zn){return h.dashStyle(Zn.minor?at.minor.griddash:at.griddash,Zn.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(Zn){return(Zn.minor?_n:at._gw)+"px"}).style("display",null),typeof Bt.path=="function"&&Un.attr("d",Bt.path)}}Vt(at,[te,Z])}},ae.drawZeroLine=function(it,at,Bt){Bt=Bt||Bt;var _t=at._id+"zl",qt=ae.shouldShowZeroLine(it,at,Bt.counterAxis),en=Bt.layer.selectAll("path."+_t).data(qt?[{x:0,id:at._id}]:[]);en.exit().remove(),en.enter().append("path").classed(_t,1).classed("zl",1).classed("crisp",Bt.crisp!==!1).each(function(){Bt.layer.selectAll("path").sort(function(Jt,Zt){return ye(Jt.id,Zt.id)})}),en.attr("transform",Bt.transFn).attr("d",Bt.path).call(c.stroke,at.zerolinecolor||c.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),Vt(at,[X])},ae.drawLabels=function(it,at,Bt){Bt=Bt||{};var _t=it._fullLayout,qt=at._id,en=Bt.cls||qt+"tick",Jt=Bt.vals.filter(function(co){return co.text}),Zt=Bt.labelFns,Nt=Bt.secondary?0:at.tickangle,sn=(at._prevTickAngles||{})[en],rn=Bt.layer.selectAll("g."+en).data(at.showticklabels?Jt:[],Yt),_n=[];function wn(co,Fo){co.each(function(_o){var $o=u.select(this),Mo=$o.select(".text-math-group"),pi=Zt.anchorFn(_o,Fo),Hn=Bt.transFn.call($o.node(),_o)+(b(Fo)&&+Fo!=0?" rotate("+Fo+","+Zt.xFn(_o)+","+(Zt.yFn(_o)-_o.fontSize/2)+")":""),ar=m.lineCount($o),Dr=pe*_o.fontSize,Sr=Zt.heightFn(_o,b(Fo)?+Fo:0,(ar-1)*Dr);if(Sr&&(Hn+=y(0,Sr)),Mo.empty()){var Zr=$o.select("text");Zr.attr({transform:Hn,"text-anchor":pi}),Zr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var go=h.bBox(Mo.node()).width*{end:-.5,start:.5}[pi];Mo.attr("transform",Hn+y(go,0))}})}rn.enter().append("g").classed(en,1).append("text").attr("text-anchor","middle").each(function(co){var Fo=u.select(this),_o=it._promises.length;Fo.call(m.positionText,Zt.xFn(co),Zt.yFn(co)).call(h.font,co.font,co.fontSize,co.fontColor).text(co.text).call(m.convertToTspans,it),it._promises[_o]?_n.push(it._promises.pop().then(function(){wn(Fo,Nt)})):wn(Fo,Nt)}),Vt(at,[re]),rn.exit().remove(),Bt.repositionOnUpdate&&rn.each(function(co){u.select(this).select("text").call(m.positionText,Zt.xFn(co),Zt.yFn(co))}),at._adjustTickLabelsOverflow=function(){var co=at.ticklabeloverflow;if(co&&co!=="allow"){var Fo=co.indexOf("hide")!==-1,_o=at._id.charAt(0)==="x",$o=0,Mo=_o?it._fullLayout.width:it._fullLayout.height;if(co.indexOf("domain")!==-1){var pi=w.simpleMap(at.range,at.r2l);$o=at.l2p(pi[0])+at._offset,Mo=at.l2p(pi[1])+at._offset}var Hn=Math.min($o,Mo),ar=Math.max($o,Mo),Dr=at.side,Sr=1/0,Zr=-1/0;for(var go in rn.each(function(Do){var jn=u.select(this);if(jn.select(".text-math-group").empty()){var Rr=h.bBox(jn.node()),On=0;_o?(Rr.right>ar||Rr.leftar||Rr.top+(at.tickangle?0:Do.fontSize/4)at["_visibleLabelMin_"+pi._id]?io.style("display","none"):ar.K!=="tick"||Hn||io.style("display",null)})})})})},wn(rn,sn+1?sn:Nt);var An=null;at._selections&&(at._selections[en]=rn);var Kn=[function(){return _n.length&&Promise.all(_n)}];at.automargin&&_t._redrawFromAutoMarginCount&&sn===90?(An=sn,Kn.push(function(){wn(rn,sn)})):Kn.push(function(){if(wn(rn,Nt),Jt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){An=at.autotickangles[0];var co,Fo=0,_o=[],$o=1;if(rn.each(function(Er){Fo=Math.max(Fo,Er.fontSize);var Gt=at.l2p(Er.x),on=Et(this),an=h.bBox(on.node());$o=Math.max($o,m.lineCount(on)),_o.push({top:0,bottom:10,height:10,left:Gt-an.width/2,right:Gt+an.width/2+2,width:an.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Bt.secondary){var Mo=Jt.length,pi=Math.abs((Jt[Mo-1].x-Jt[0].x)*at._m)/(Mo-1),Hn=at.ticklabelposition||"",ar=function(Er){return Hn.indexOf(Er)!==-1},Dr=ar("top"),Sr=ar("left"),Zr=ar("right"),go=ar("bottom")||Sr||Dr||Zr?(at.tickwidth||0)+6:0,oo=pi,io=1.25*Fo*$o,Do=oo/Math.sqrt(Math.pow(oo,2)+Math.pow(io,2)),jn=at.autotickangles.map(function(Er){return Er*Math.PI/180}),Rr=jn.find(function(Er){return Math.abs(Math.cos(Er))<=Do});Rr===void 0&&(Rr=jn.reduce(function(Er,Gt){return Math.abs(Math.cos(Er))Jr*eo&&(lr=eo,qn[vr]=gr[vr]=zr[vr])}var Yr=Math.abs(lr-sr);Yr-tr>0?tr*=1+tr/(Yr-=tr):tr=0,at._id.charAt(0)!=="y"&&(tr=-tr),qn[$r]=Un.p2d(Un.d2p(gr[$r])+Br*tr),Un.autorange==="min"||Un.autorange==="max reversed"?(qn[0]=null,Un._rangeInitial0=void 0,Un._rangeInitial1=void 0):Un.autorange!=="max"&&Un.autorange!=="min reversed"||(qn[1]=null,Un._rangeInitial0=void 0,Un._rangeInitial1=void 0),_t._insideTickLabelsUpdaterange[Un._name+".range"]=qn}var to=w.syncOrAsync(Kn);return to&&to.then&&it._promises.push(to),to},ae.getPxPosition=function(it,at){var Bt,_t=it._fullLayout._size,qt=at._id.charAt(0),en=at.side;return at.anchor!=="free"?Bt=at._anchorAxis:qt==="x"?Bt={_offset:_t.t+(1-(at.position||0))*_t.h,_length:0}:qt==="y"&&(Bt={_offset:_t.l+(at.position||0)*_t.w+at._shift,_length:0}),en==="top"||en==="left"?Bt._offset:en==="bottom"||en==="right"?Bt._offset+Bt._length:void 0},ae.shouldShowZeroLine=function(it,at,Bt){var _t=w.simpleMap(at.range,at.r2l);return _t[0]*_t[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(tn(at,0)||!function(qt,en,Jt,Zt){var Nt=Jt._mainAxis;if(Nt){var sn=qt._fullLayout,rn=en._id.charAt(0),_n=ae.counterLetter(en._id),wn=en._offset+(Math.abs(Zt[0])1)for(Zt=1;Zt2*k}(_,p))return"date";var M=v.autotypenumbers!=="strict";return function(T,P){for(var A=T.length,L=c(A),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,P){for(var A=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=C;break}}var Q=D("pattern",$);if(Q===C)for(I=0;I<2;I++)(z=T(k[I]))&&(A.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case C:if(!u(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(A.enabled=!1);A.bounds[I]=k[I]=z;break;case x:if(!u(z)||(z=+z)<0||z>24)return void(A.enabled=!1);A.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(A.enabled=!1)}else if(k[0]>j[0]&&k[1]m?1:-1:+(S.substr(1)||1)-+(w.substr(1)||1)},s.ref2id=function(S){return!!/^[xyz]/.test(S)&&S.split(" ")[0]},s.isLinked=function(S,w){return i(w,S._axisMatchGroups)||i(w,S._axisConstraintGroups)}},22416:function(d,s,n){var u=n(38116).isTypedArraySpec;d.exports=function(b,i,S,w){if(i.type==="category"){var y,m=b.categoryarray,a=Array.isArray(m)&&m.length>0||u(m);a&&(y="array");var c,h=S("categoryorder",y);h==="array"&&(c=S("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=c.slice():(c=function(p,v){var _,O,C,x=v.dataAttr||p._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],O=0;OT?P.substr(T):A.substr(M))+L:P+A+x*R:L}function O(x,R){for(var M=R._size,T=M.h/M.w,P={},A=Object.keys(x),L=0;Lm*j)||Z){for(M=0;M<$.length;M++)if(L=X[P=$[M]],D=(A=te[P]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(A,k);else{var K=A._inputDomain,re=(A.domain[1]-A.domain[0])/(K[1]-K[0]),q=(A.r2l(A.range[1])-A.r2l(A.range[0]))/(A.r2l(A._inputRange[1])-A.r2l(A._inputRange[0]));if((k/=re)*q<1){A.domain=A._input.domain=K.slice(),w(A,k);continue}if(q<1&&(A.range=A._input.range=A._inputRange.slice(),k*=q),A.autorange){var Y=A.r2l(A.range[0]),ee=A.r2l(A.range[1]),me=(Y+ee)/2,pe=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ye=b.makePadFn(I,A,0),ve=b.makePadFn(I,A,1);C(A,k);var _e,we,Te=Math.abs(A._m),Pe=b.concatExtremes(x,A),Ie=Pe.min,ze=Pe.max;for(we=0;wece&&_ese&&(se=_e);k/=(se-pe)/(2*ae),pe=A.l2r(pe),se=A.l2r(se),A.range=A._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,we,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:we>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,we,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(we,Te)).attr("d","M0,0Z")}function me(_e,we,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),pe(_e,we,Ie,ze)}function pe(_e,we,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),we.transition().style("opacity",1).duration(200))}function se(_e){u.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var we=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+we)+"h3v"+-we+"h"+we+"v-3h-"+(we+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+we)+"h-3v"+-we+"h"+-we+"v-3h"+(we+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-we)+"h-3v"+we+"h"+-we+"v3h"+(we+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-we)+"h3v"+we+"h"+we+"v3h-"+(we+3)+"Z"}function de(_e,we,Te,Pe,Ie){for(var ze,De,Qe,Ve,$e=!1,Oe={},ke={},Re=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)sr._fullLayout._deactivateShape(sr);else{var lr=sr._fullLayout.clickmode;if(se(sr),qn!==2||Ot||Un(),Et)lr.indexOf("select")>-1&&I(gr,sr,Re,We,we.id,_t),lr.indexOf("event")>-1&&p.click(sr,gr,we.id);else if(qn===1&&Ot){var zr=De?$e:Ve,Vr=De==="s"||Qe==="w"?0:1,eo=zr._name+".range["+Vr+"]",Jr=function(co,Fo){var _o,$o=co.range[Fo],Mo=Math.abs($o-co.range[1-Fo]);return co.type==="date"?$o:co.type==="log"?(_o=Math.ceil(Math.max(0,-Math.log(Mo)/Math.LN10))+3,i("."+_o+"g")(Math.pow(10,$o))):(_o=Math.floor(Math.log(Math.abs($o))/Math.LN10)-Math.floor(Math.log(Mo)/Math.LN10)+4,i("."+String(_o)+"g")($o))}(zr,Vr),Yr="left",to="middle";if(zr.fixedrange)return;De?(to=De==="n"?"top":"bottom",zr.side==="right"&&(Yr="right")):Qe==="e"&&(Yr="right"),sr._context.showAxisRangeEntryBoxes&&u.select(Pn).call(a.makeEditable,{gd:sr,immediate:!0,background:sr._fullLayout.paper_bgcolor,text:String(Jr),fill:zr.tickfont?zr.tickfont.color:"#444",horizontalAlign:Yr,verticalAlign:to}).on("edit",function(co){var Fo=zr.d2r(co);Fo!==void 0&&y.call("_guiRelayout",sr,eo,Fo)})}}}function Jt(qn,gr){if(_e._transitioningWithDuration)return!1;var sr=Math.max(0,Math.min(Ye,Yt*qn+Sn)),lr=Math.max(0,Math.min(Je,ln*gr+vt)),zr=Math.abs(sr-Sn),Vr=Math.abs(lr-vt);function eo(){Dt="",xt.r=xt.l,xt.t=xt.b,at.attr("d","M0,0Z")}if(xt.l=Math.min(Sn,sr),xt.r=Math.max(Sn,sr),xt.t=Math.min(vt,lr),xt.b=Math.max(vt,lr),Me.isSubplotConstrained)zr>j||Vr>j?(Dt="xy",zr/Ye>Vr/Je?(Vr=zr*Je/Ye,vt>lr?xt.t=vt-Vr:xt.b=vt+Vr):(zr=Vr*Ye/Je,Sn>sr?xt.l=Sn-zr:xt.r=Sn+zr),at.attr("d",ce(xt))):eo();else if(Fe.isSubplotConstrained)if(zr>j||Vr>j){Dt="xy";var Jr=Math.min(xt.l/Ye,(Je-xt.b)/Je),Yr=Math.max(xt.r/Ye,(Je-xt.t)/Je);xt.l=Jr*Ye,xt.r=Yr*Ye,xt.b=(1-Jr)*Je,xt.t=(1-Yr)*Je,at.attr("d",ce(xt))}else eo();else!tt||Vr0){var to;if(Fe.isSubplotConstrained||!je&&tt.length===1){for(to=0;to1&&(lr.maxallowed!==void 0&&Ge===(lr.range[0]1&&(zr.maxallowed!==void 0&&ht===(zr.range[0]A[1]-.000244140625&&(S.domain=a),b.noneOrAll(i.domain,S.domain,a),S.tickmode==="sync"&&(S.tickmode="auto")}return w("layer"),S}},42568:function(d,s,n){var u=n(85024);d.exports=function(b,i,S,w,y){y||(y={});var m=y.tickSuffixDflt,a=u(b);S("tickprefix")&&S("showtickprefix",a),S("ticksuffix",m)&&S("showticksuffix",a)}},96312:function(d,s,n){var u=n(76808);d.exports=function(b,i,S,w){var y=i._template||{},m=i.type||y.type||"-";S("minallowed"),S("maxallowed");var a,c=S("range");c||w.noInsiderange||m==="log"||(!(a=S("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(c=S("range",a)));var h,p=i.getAutorangeDflt(c,w),v=S("autorange",p);!c||(c[0]!==null||c[1]!==null)&&(c[0]!==null&&c[1]!==null||v!=="reversed"&&v!==!0)&&(c[0]===null||v!=="min"&&v!=="max reversed")&&(c[1]===null||v!=="max"&&v!=="min reversed")||(c=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=S("autorange",p=i.getAutorangeDflt(c,w))),v&&(u(S,v,c),m!=="linear"&&m!=="-"||S("rangemode")),i.cleanRange()}},21160:function(d,s,n){var u=n(84284).FROM_BL;d.exports=function(b,i,S){S===void 0&&(S=u[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*S;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,s,n){var u=n(33428),b=n(94336).E9,i=n(3400),S=i.numberFormat,w=n(38248),y=i.cleanNumber,m=i.ms2DateTime,a=i.dateTime2ms,c=i.ensureNumber,h=i.isArrayOrTypedArray,p=n(39032),v=p.FP_SAFE,_=p.BADNUM,O=p.LOG_CLIP,C=p.ONEWEEK,x=p.ONEDAY,R=p.ONEHOUR,M=p.ONEMIN,T=p.ONESEC,P=n(79811),A=n(33816),L=A.HOUR_PATTERN,D=A.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ye){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ye&&z.range&&z.range.length===2){var ve=z.range[0],_e=z.range[1];return .5*(ve+_e-2*O*Math.abs(ve-_e))}return _}function X(de,ye,ve,_e){if((_e||{}).msUTC&&w(de))return+de;var we=a(de,ve||z.calendar);if(we===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);we=a(new Date(Pe))+Te/10}return we}function te(de,ye,ve){return m(de,ye,ve||z.calendar)}function Z(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ye=z._categories.length-1;return z._categoriesMap[de]=ye,ye}return _}function re(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ye=re(de);return ye!==void 0?ye:w(de)?+de:void 0}function Y(de){return w(de)?+de:re(de)}function ee(de,ye,ve){return u.round(ve+ye*de,2)}function me(de,ye,ve){return(de-ve)/ye}var pe=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";pe=function(de){if(!w(de))return _;var ye=z._rangebreaks.length;if(!ye)return ee(de,z._m,z._b);var ve=ae;z.range[0]>z.range[1]&&(ve=!ve);for(var _e=ve?-1:1,we=_e*de,Te=0,Pe=0;Peze)){Te=we<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ye=z._rangebreaks.length;if(!ye)return me(de,z._m,z._b);for(var ve=0,_e=0;_ez._rangebreaks[_e].pmax&&(ve=_e+1);return me(de,z._m2,z._B[ve])}}z.c2l=z.type==="log"?U:c,z.l2c=z.type==="log"?k:c,z.l2p=pe,z.p2l=se,z.c2p=z.type==="log"?function(de,ye){return pe(U(de,ye))}:pe,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=c,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=c):z.type==="log"?(z.d2r=z.d2l=function(de,ye){return U(y(de),ye)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=c,z.c2r=U,z.l2d=k,z.d2p=function(de,ye){return z.l2p(z.d2r(de,ye))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=c):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ye,ve){return z.l2p(X(de,0,ve))},z.p2d=z.p2r=function(de,ye,ve){return te(se(de),ye,ve)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=Z,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ye=Y(de);return ye!==void 0?ye:z.fraction2r(.5)},z.l2r=z.c2r=c,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return Z(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:c(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=Z,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ye=q(de);return ye!==void 0?ye:z.fraction2r(.5)},z.r2c_just_indices=re,z.l2r=z.c2r=c,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return Z(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:c(de)},z.setupMultiCategory=function(de){var ye,ve,_e=z._traceIndices,we=z._matchGroup;if(we&&z._categories.length===0){for(var Te in we)if(Te!==Q){var Pe=$[P.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ye=0;ye<_e.length;ye++){var De=de[_e[ye]];if(j in De){var Qe=De[j],Ve=De._length||i.minRowLength(Qe);if(h(Qe[0])&&h(Qe[1]))for(ve=0;vePe[1]&&(_e[Te?0:1]=ve),_e[0]===_e[1]){var Ie=z.l2r(ye),ze=z.l2r(ve);if(ye!==void 0){var De=Ie+1;ve!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ve!==void 0){var Qe=ze+1;ye!==void 0&&(Qe=Math.max(Qe,Ie)),_e[Te?0:1]=Qe}}}},z.cleanRange=function(de,ye){z._cleanRange(de,ye),z.limitRange(de)},z._cleanRange=function(de,ye){ye||(ye={}),de||(de="range");var ve,_e,we=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?A.DFLTRANGEY:z._name==="realaxis"?[0,1]:ye.dfltRange||A.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),we&&we.length===2){var Te=we[0]===null,Pe=we[1]===null;for(z.type!=="date"||z.autorange||(we[0]=i.cleanDate(we[0],_,z.calendar),we[1]=i.cleanDate(we[1],_,z.calendar)),ve=0;ve<2;ve++)if(z.type==="date"){if(!i.isDateTime(we[ve],z.calendar)){z[de]=_e;break}if(z.r2l(we[0])===z.r2l(we[1])){var Ie=i.constrain(z.r2l(we[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);we[0]=z.l2r(Ie-1e3),we[1]=z.l2r(Ie+1e3);break}}else{if(!w(we[ve])){if(Te||Pe||!w(we[1-ve])){z[de]=_e;break}we[ve]=we[1-ve]*(ve?10:.1)}if(we[ve]<-v?we[ve]=-v:we[ve]>v&&(we[ve]=v),we[0]===we[1]){var ze=Math.max(1,Math.abs(1e-6*we[0]));we[0]-=ze,we[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ye=$._size;if(z.overlaying){var ve=P.getFromId({_fullLayout:$},z.overlaying);z.domain=ve.domain}var _e=de&&z._r?"_r":"range",we=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],we),ze=z.r2l(z[_e][1],we),De=j==="y";if(De?(z._offset=ye.t+(1-z.domain[1])*ye.h,z._length=ye.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ye.l+z.domain[0]*ye.w,z._length=ye.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(Qe=!Qe),Qe&&z._rangebreaks.reverse();var Ve=Qe?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,we_e&&(_e+=24,we=ve&&we<_e)return _}else for(var Qe=Pe._cachedValues[Ie],Ve=0;Ve=ve&&de<_e)return _}}return de},z.locateBreaks=function(de,ye){var ve,_e,we,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Ye){return Ze.pattern===D&&Ye.pattern===L?-1:Ye.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Ye){if((Ze=i.constrain(Ze,de,ye))!==(Ye=i.constrain(Ye,de,ye))){for(var Je=!0,Me=0;Me=Fe.min&&(ZeFe.max&&(Fe.max=Ye),Je=!1)}Je&&Pe.push({min:Ze,max:Ye})}};for(ve=0;vea.duration?(function(){for(var L={},D=0;D rect").call(S.setTranslate,0,0).call(S.setScale,1,1),M.plot.call(S.setTranslate,T._offset,P._offset).call(S.setScale,1,1);var A=M.plot.selectAll(".scatterlayer .trace");A.selectAll(".point").call(S.setPointGroupScale,1,1),A.selectAll(".textpoint").call(S.setTextPointsScale,1,1),A.call(S.hideOutsideRangePoints,M)}function R(M,T){var P=M.plotinfo,A=P.xaxis,L=P.yaxis,D=A._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,A.r2l),j=i.simpleMap(M.xr1,A.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),A.range[0]=A.l2r(Q[0]*(1-T)+T*j[0]),A.range[1]=A.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),Z=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],re=Z[1]-Z[0];$[1]=(te[1]*(1-T)+T*Z[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*re/K),L.range[0]=A.l2r(te[0]*(1-T)+T*Z[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*Z[1])}else $[1]=0,$[3]=k;w.drawOne(y,A,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[A._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,pe=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=A._offset-pe,ce=L._offset-se;P.clipRect.call(S.setTranslate,ee,me).call(S.setScale,1/q,1/Y),P.plot.call(S.setTranslate,ae,ce).call(S.setScale,q,Y),S.setPointGroupScale(P.zoomScalePts,1/q,1/Y),S.setTextPointsScale(P.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,s,n){var u=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function S(w,y){var m=i(w),a=u(w,"box-violin"),c=u(w._fullInput||{},"candlestick");return a&&!c&&y===m&&w[m]===void 0&&w[m+"0"]===void 0}d.exports=function(w,y,m,a){m("autotypenumbers",a.autotypenumbersDflt),m("type",(a.splomStash||{}).type)==="-"&&(function(c,h){if(c.type==="-"){var p,v=c._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var O=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(S(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(O)if(O.type!=="histogram"||_!=={v:"y",h:"x"}[O.orientation||"v"]){var C=_+"calendar",x=O[C],R={noMultiCategory:!u(O,"cartesian")||u(O,"noMultiCategory")};if(O.type==="box"&&O._hasPreCompStats&&_==={h:"x",v:"y"}[O.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=c.autotypenumbers,S(O,_)){var M=i(O),T=[];for(p=0;p0?".":"")+p;b.isPlainObject(v)?y(v,a,_,h+1):a(_,p,v)}})}s.manageCommandObserver=function(m,a,c,h){var p={},v=!0;a&&a._commandObserver&&(p=a._commandObserver),p.cache||(p.cache={}),p.lookupTable={};var _=s.hasSimpleAPICommandBindings(m,c,p.lookupTable);if(a&&a._commandObserver){if(_)return p;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,p}if(_){i(m,_,p.cache),p.check=function(){if(v){var x=i(m,_,p.cache);return x.changed&&h&&p.lookupTable[x.value]!==void 0&&(p.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:p.lookupTable[x.value]})).then(p.enable,p.enable)),x.changed}};for(var O=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],C=0;C0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,Z],[U+K,Z],[U+2*K,Z],[U+3*K,Z],[X,Z],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],Z=[],K=!1;for(var re in P.layerNameToAdjective)if(re!=="frame"&&te["show"+re]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var pe=me.angle,se=me.angleref;(pe||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&Z.push(X.fetchTopojson()))}Z=Z.concat(A.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(Z).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){u.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],Z=te[0].trace;Z.type==="choropleth"&&(this.hasChoropleth=!0),Z.visible===!0&&Z._length>0&&Z._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var re=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=re.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,Z=U.projection,K=U.lonaxis,re=U.lataxis,q=K._ax,Y=re._ax,ee=this.projection=function(ke){var Re=ke.projection,We=Re.type,Ue=P.projNames[We];Ue="geo"+m.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Ye=ke._isSatellite?180*Math.acos(1/Re.distance)/Math.PI:ke._isClipped?P.lonaxisSpan[We]/2:null,Je=["center","rotate","parallels","clipExtent"],Me=function(tt){return tt?Ze:[]},Fe=0;FeYe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(tt){return Ze.getPath().bounds(tt)},Ze.precision(P.precision),ke._isSatellite&&Ze.tilt(Re.tilt).distance(Re.distance),Ye&&Ze.clipAngle(Ye-P.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],pe=U.center||{},se=Z.rotation||{},ae=K.range||[],ce=re.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=O(j,q),Y.range=O(j,Y);var de=(q.range[0]+q.range[1])/2,ye=(Y.range[0]+Y.range[1])/2;if(U._isScoped)pe={lon:de,lat:ye};else if(U._isClipped){pe={lon:de,lat:ye},se={lon:de,lat:ye,roll:se.roll};var ve=Z.type,_e=P.lonaxisSpan[ve]/2||180,we=P.lataxisSpan[ve]/2||90;ae=[de-_e,de+_e],ce=[ye-we,ye+we]}else pe={lon:de,lat:ye},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([pe.lon-se.lon,pe.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(Z.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),Qe=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(Qe)?ee.scale(Qe*Ie):m.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(Z.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([pe.lon,pe.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function Z(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!P.lineLayers[ee]}function re(ee){return!!P.fillLayers[ee]}var q=(this.hasChoropleth?P.layersForChoropleth:P.layers).filter(function(ee){return K(ee)||re(ee)?Q["show"+ee]:!Z(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],u.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=u.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):Z(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):re(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],pe=P.layerNameToAdjective[ee];ee==="frame"?me.datum(P.sphereSVG):K(ee)||re(ee)?me.datum(D(U,U.objects[ee])):Z(ee)&&me.datum(function(se,ae,ce){var de,ye,ve,_e=ae[se],we=P.scopeDefaults[ae.scope];se==="lonaxis"?(de=we.lonaxisRange,ye=we.lataxisRange,ve=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=we.lataxisRange,ye=we.lonaxisRange,ve=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(u.event,U,[j.xaxis],[j.yaxis],j.id,K),Z.indexOf("event")>-1&&p.click(U,u.event))})}function re(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=u.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},m.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var Z=Q(te.lonlat);return Z?a(Z[0],Z[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,s,n){var u=n(84888).KY,b=n(3400).counterRegex,i=n(43520),S="geo",w=b(S),y={};y[S]={valType:"subplotid",dflt:S,editType:"calc"},d.exports={attr:S,name:S,idRoot:S,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(m){for(var a=m._fullLayout,c=m.calcdata,h=a._subplots[S],p=0;p0&&re<0&&(re+=360);var q,Y,ee,me=(K+re)/2;if(!R){var pe=M?C.projRotate:[me,0,0];q=h("projection.rotation.lon",pe[0]),h("projection.rotation.lat",pe[1]),h("projection.rotation.roll",pe[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(Z[0]+Z[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),P&&h("projection.parallels",C.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&O!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(O==="usa"||O==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete c.projection.scale,M?(delete c.center.lon,delete c.center.lat):A?(delete c.center.lon,delete c.center.lat,delete c.projection.rotation.lon,delete c.projection.rotation.lat,delete c.lonaxis.range,delete c.lataxis.range):(delete c.center.lon,delete c.center.lat,delete c.projection.rotation.lon))}d.exports=function(a,c,h){b(a,c,h,{type:"geo",attributes:w,handleDefaults:m,fullData:h,partition:"y"})}},79248:function(d,s,n){var u=n(33428),b=n(3400),i=n(24040),S=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},m={cursor:"auto"};function a(M,T){return u.behavior.zoom().translate(T.translate()).scale(T.scale())}function c(M,T,P){var A=M.id,L=M.graphDiv,D=L.layout,k=D[A],I=L._fullLayout,z=I[A],$={},Q={};function j(U,X){$[A+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[A+"."+U]=X)}P(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var P=a(0,T);function A(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return P.on("zoomstart",function(){u.select(this).style(y)}).on("zoom",function(){T.scale(u.event.scale).translate(u.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){u.select(this).style(m),c(M,T,A)}),P}function p(M,T){var P,A,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var Z=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-Z[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){u.select(this).style(y),P=u.mouse(this),A=T.rotate(),L=T.translate(),D=A,k=U(P)}).on("zoom",function(){if(I=u.mouse(this),function(K){var re=U(K);if(!re)return!0;var q=T(re);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(P))return j.scale(T.scale()),void j.translate(T.translate());T.scale(u.event.scale),T.translate([L[0],u.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),A[1],A[2]],T.rotate(z),D=z):k=U(P=I),Q=!0,M.render(!0);var te=T.rotate(),Z=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":Z[0],"geo.center.lat":Z[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){u.select(this).style(m),Q&&c(M,T,X)}),j}function v(M,T){var P;T.rotate(),T.scale();var A=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(tt,Fe)-Math.atan2(Me,Ue))*w,St=(Math.atan2(tt,Fe)-Math.atan2(Me,-Ue))*w;return O(Re[0],Re[1],Ze,pt)<=O(Re[0],Re[1],ht,St)?[Ze,pt,Re[2]]:[ht,St,Re[2]]}(Ve,P,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else P=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;u.select(this).style(m),k.call(A,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),c(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),u.rebind(A,L,"on")}function _(M,T){var P=M.invert(T);return P&&isFinite(P[0])&&isFinite(P[1])&&function(A){var L=A[0]*S,D=A[1]*S,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(P)}function O(M,T,P,A){var L=C(P-M),D=C(A-T);return Math.sqrt(L*L+D*D)}function C(M){return(M%360+540)%360-180}function x(M,T,P){var A=P*S,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(A),z=Math.sin(A);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var P=0,A=0,L=M.length;AMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),m.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),m.yaxis.autorange=!1),m.relayoutCallback()):m.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=O,h.dragStart[1]=C),Math.abs(h.dragStart[0]-O).999&&(A="turntable"):A="turntable")}else A="turntable";v("dragmode",A),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,p,v){var _=p._basePlotModules.length>1;S(h,p,v,{type:a,attributes:y,handleDefaults:c,fullLayout:p,font:p.font,fullData:v,getDfltFromLayout:function(O){if(!_)return u.validate(h[O],y[O])?h[O]:void 0},autotypenumbersDflt:p.autotypenumbers,paper_bgcolor:p.paper_bgcolor,calendar:p.calendar})}},346:function(d,s,n){var u=n(86140),b=n(86968).u,i=n(92880).extendFlat,S=n(3400).counterRegex;function w(y,m,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:m,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[S("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:u,yaxis:u,zaxis:u,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,s,n){var u=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(S){for(var w=0;w<3;++w){var y=S[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=u(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(S){var w=new i;return w.merge(S),w}},87152:function(d,s,n){d.exports=function(w){for(var y=w.axesOptions,m=w.glplot.axesPixels,a=w.fullSceneLayout,c=[[],[],[]],h=0;h<3;++h){var p=a[i[h]];if(p._length=(m[h].hi-m[h].lo)*m[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(p._length)===1/0||isNaN(p._length))c[h]=[];else{p._input_range=p.range.slice(),p.range[0]=m[h].lo/w.dataScale[h],p.range[1]=m[h].hi/w.dataScale[h],p._m=1/(w.dataScale[h]*m[h].pixelsPerDataUnit),p.range[0]===p.range[1]&&(p.range[0]-=1,p.range[1]+=1);var v=p.tickmode;if(p.tickmode==="auto"){p.tickmode="linear";var _=p.nticks||b.constrain(p._length/40,4,9);u.autoTicks(p,Math.abs(p.range[1]-p.range[0])/_)}for(var O=u.calcTicks(p,{msUTC:!0}),C=0;C/g," "));c[h]=O,p.tickmode=v}}for(y.ticks=c,h=0;h<3;++h)for(S[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),C=0;C<2;++C)y.bounds[C][h]=w.glplot.bounds[C][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],P=new Array(T.length),A=0;AX.deltaY?1.1:.9090909090909091,Z=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*Z.x,y:te*Z.y,z:te*Z.z})}U(z)}},!!m&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,Z=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+Z+" "+K),j.setAttributeNS(null,"width",Z),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var re=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=p.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),we.push("value: "+de.valueLabel),Y.textLabel&&we.push(Y.textLabel),se=we.join("
")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*pe[0]/pe[3])*Z,y:(.5-.5*pe[1]/pe[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:c.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:c.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||P)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):c.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),Z=j[X],K=$[te],re=$[te+"calendar"],q=$["_"+te+"length"];if(c.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(c.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var Qe=ae[1][te]-ae[0][te];ae[0][te]-=Qe/32,ae[1][te]+=Qe/32}if(ye=[ae[0][te],ae[1][te]],ye=T(ye,K),ae[0][te]=ye[0],ae[1][te]=ye[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ye=K.range,ae[0][te]=K.r2l(ye[0]),ae[1][te]=K.r2l(ye[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Re=de[re=(K=q[k[te]]).type];ke[te]=Math.pow(Re.acc,1/Re.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=c.nestedProperty(z,this.id+".camera").get();function j(Z,K,re,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[re]]&&Z[Y[re]][ee[q]]===K[Y[re]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=c.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,Z=this,K=Z.fullLayout,re=Z.isCameraChanged(z),q=Z.isAspectChanged(z),Y=re||q;if(Y){var ee={};re&&($=Z.getCamera(),j=(Q=c.nestedProperty(z,Z.id+".camera")).get(),ee[Z.id+".camera"]=j),q&&(U=Z.glplot.getAspectratio(),te=(X=c.nestedProperty(z,Z.id+".aspectratio")).get(),ee[Z.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),re&&(Q.set($),c.nestedProperty(K,Z.id+".camera").set($)),q&&(X.set(U),c.nestedProperty(K,Z.id+".aspectratio").set(U),Z.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,Z=te.up.x,K=te.up.y,re=te.up.z;if(re/Math.sqrt(Z*Z+K*K+re*re)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,c.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(u),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,pe=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var Z,K=te.getContext("2d",{willReadFrequently:!0}),re=K.createImageData(j,U);switch(re.data.set(X),K.putImageData(re,0,0),z){case"jpeg":Z=te.toDataURL("image/jpeg");break;case"webp":Z=te.toDataURL("image/webp");break;default:Z=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(u),Z},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];p.setConvert($,this.fullLayout),$.setScale=c.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},p.setConvert(z._mockAxis,$)},d.exports=A},52094:function(d){d.exports=function(s,n,u,b){b=b||s.length;for(var i=new Array(b),S=0;SOpenStreetMap contributors',S=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},m=u(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:m,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` @@ -2317,10 +2317,10 @@ void main() { `||X==="\\"?(q.push(U),X=U,Z+1):(we(q.join("")),re=O,Z)}function ze(){return U==="/"&&X==="*"?(q.push(U),we(q.join("")),re=O,Z+1):(q.push(U),X=U,Z+1)}function De(){if(X==="."&&/\d/.test(U))return re=A,Z;if(X==="/"&&U==="*")return re=x,Z;if(X==="/"&&U==="/")return re=R,Z;if(U==="."&&q.length){for(;Qe(q););return re=A,Z}if(U===";"||U===")"||U==="("){if(q.length)for(;Qe(q););return we(U),re=O,Z+1}var Re=q.length===2&&U!=="=";if(/[\w_\d\s]/.test(U)||Re){for(;Qe(q););return re=O,Z}return q.push(U),X=U,Z+1}function Qe(Re){for(var We,Ue,Ze=0;;){if(We=h.indexOf(Re.slice(0,Re.length+Ze).join("")),Ue=h[We],We===-1){if(Ze--+Re.length>0)continue;Ue=Re.slice(0,1).join("")}return we(Ue),pe+=Ue.length,(q=q.slice(Ue.length)).length}}function Ve(){return/[^a-fA-F0-9]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function $e(){return U==="."||/[eE]/.test(U)?(q.push(U),re=A,X=U,Z+1):U==="x"&&q.length===1&&q[0]==="0"?(re=$,q.push(U),X=U,Z+1):/[^\d]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function Oe(){return U==="f"&&(q.push(U),X=U,Z+=1),/[eE]/.test(U)?(q.push(U),X=U,Z+1):(U!=="-"&&U!=="+"||!/[eE]/.test(X))&&/[^\d]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function ke(){if(/[^\d\w_]/.test(U)){var Re=q.join("");return re=_e[Re]?k:ve[Re]?D:L,we(q.join("")),re=O,Z}return q.push(U),X=U,Z+1}};var c=a(399),h=a(9746),p=a(9525),v=a(9458),_=a(3585),O=999,C=9999,x=0,R=1,M=2,T=3,P=4,A=5,L=6,D=7,k=8,I=9,z=10,$=11,Q=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3585:function(y,m,a){var c=a(9525);c=c.slice().filter(function(h){return!/^(gl\_|texture)/.test(h)}),y.exports=c.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(y){y.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(y,m,a){var c=a(399);y.exports=c.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(y){y.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(y){y.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(y,m,a){var c=a(3193);y.exports=function(h,p){var v=c(p),_=[];return(_=_.concat(v(h))).concat(v(null))}},6832:function(y){y.exports=function(m){typeof m=="string"&&(m=[m]);for(var a=[].slice.call(arguments,1),c=[],h=0;h0;)for(var k=(R=D.pop()).adjacent,I=0;I<=T;++I){var z=k[I];if(z.boundary&&!(z.lastVisited<=-P)){for(var $=z.vertices,Q=0;Q<=T;++Q){var j=$[Q];A[Q]=j<0?M:L[j]}var U=this.orient();if(U>0)return z;z.lastVisited=-P,U===0&&D.push(z)}}return null},x.walk=function(R,M){var T=this.vertices.length-1,P=this.dimension,A=this.vertices,L=this.tuple,D=M?this.interior.length*Math.random()|0:this.interior.length-1,k=this.interior[D];e:for(;!k.boundary;){for(var I=k.vertices,z=k.adjacent,$=0;$<=P;++$)L[$]=A[I[$]];for(k.lastVisited=T,$=0;$<=P;++$){var Q=z[$];if(!(Q.lastVisited>=T)){var j=L[$];L[$]=R;var U=this.orient();if(L[$]=j,U<0){k=Q;continue e}Q.boundary?Q.lastVisited=-T:Q.lastVisited=T}}return}return k},x.addPeaks=function(R,M){var T=this.vertices.length-1,P=this.dimension,A=this.vertices,L=this.tuple,D=this.interior,k=this.simplices,I=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,D.push(M);for(var z=[];I.length>0;){var $=(M=I.pop()).vertices,Q=M.adjacent,j=$.indexOf(T);if(!(j<0)){for(var U=0;U<=P;++U)if(U!==j){var X=Q[U];if(X.boundary&&!(X.lastVisited>=T)){var te=X.vertices;if(X.lastVisited!==-T){for(var Z=0,K=0;K<=P;++K)te[K]<0?(Z=K,L[K]=R):L[K]=A[te[K]];if(this.orient()>0){te[Z]=T,X.boundary=!1,D.push(X),I.push(X),X.lastVisited=T;continue}X.lastVisited=-T}var re=X.adjacent,q=$.slice(),Y=Q.slice(),ee=new p(q,Y,!0);k.push(ee);var me=re.indexOf(M);if(!(me<0))for(re[me]=ee,Y[j]=X,q[U]=-1,Y[U]=M,Q[U]=ee,ee.flip(),K=0;K<=P;++K){var pe=q[K];if(!(pe<0||pe===T)){for(var se=new Array(P-1),ae=0,ce=0;ce<=P;++ce){var de=q[ce];de<0||ce===K||(se[ae++]=de)}z.push(new v(se,ee,K))}}}}}}for(z.sort(_),U=0;U+1=0?D[I++]=k[$]:z=1&$;if(z===(1&R)){var Q=D[0];D[0]=D[1],D[1]=Q}M.push(D)}}return M}},9014:function(y,m,a){var c=a(5070);function h(I,z,$,Q,j){this.mid=I,this.left=z,this.right=$,this.leftPoints=Q,this.rightPoints=j,this.count=(z?z.count:0)+($?$.count:0)+Q.length}y.exports=function(I){return I&&I.length!==0?new D(L(I)):new D(null)};var p=h.prototype;function v(I,z){I.mid=z.mid,I.left=z.left,I.right=z.right,I.leftPoints=z.leftPoints,I.rightPoints=z.rightPoints,I.count=z.count}function _(I,z){var $=L(z);I.mid=$.mid,I.left=$.left,I.right=$.right,I.leftPoints=$.leftPoints,I.rightPoints=$.rightPoints,I.count=$.count}function O(I,z){var $=I.intervals([]);$.push(z),_(I,$)}function C(I,z){var $=I.intervals([]),Q=$.indexOf(z);return Q<0?0:($.splice(Q,1),_(I,$),1)}function x(I,z,$){for(var Q=0;Q=0&&I[Q][1]>=z;--Q){var j=$(I[Q]);if(j)return j}}function M(I,z){for(var $=0;$>1],j=[],U=[],X=[];for($=0;$3*(z+1)?O(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?O(this,I):this.right.insert(I):this.right=L([I]);else{var $=c.ge(this.leftPoints,I,P),Q=c.ge(this.rightPoints,I,A);this.leftPoints.splice($,0,I),this.rightPoints.splice(Q,0,I)}},p.remove=function(I){var z=this.count-this.leftPoints;if(I[1]3*(z-1)?C(this,I):(U=this.left.remove(I))===2?(this.left=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(I[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(z-1)?C(this,I):(U=this.right.remove(I))===2?(this.right=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(this.count===1)return this.leftPoints[0]===I?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var $=this,Q=this.left;Q.right;)$=Q,Q=Q.right;if($===this)Q.right=this.right;else{var j=this.left,U=this.right;$.count-=Q.count,$.right=Q.left,Q.left=j,Q.right=U}v(this,Q),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?v(this,this.left):v(this,this.right);return 1}for(j=c.ge(this.leftPoints,I,P);jthis.mid?this.right&&($=this.right.queryPoint(I,z))?$:R(this.rightPoints,I,z):M(this.leftPoints,z);var $},p.queryInterval=function(I,z,$){var Q;return Ithis.mid&&this.right&&(Q=this.right.queryInterval(I,z,$))?Q:zthis.mid?R(this.rightPoints,I,$):M(this.leftPoints,$)};var k=D.prototype;k.insert=function(I){this.root?this.root.insert(I):this.root=new h(I[0],null,null,[I],[I])},k.remove=function(I){if(this.root){var z=this.root.remove(I);return z===2&&(this.root=null),z!==0}return!1},k.queryPoint=function(I,z){if(this.root)return this.root.queryPoint(I,z)},k.queryInterval=function(I,z,$){if(I<=z&&this.root)return this.root.queryInterval(I,z,$)},Object.defineProperty(k,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(k,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9560:function(y){y.exports=function(m){for(var a=new Array(m),c=0;c13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},3578:function(y){y.exports=function(m,a,c){return m*(1-c)+a*c}},7191:function(y,m,a){var c=a(4690),h=a(9823),p=a(7332),v=a(7787),_=a(7437),O=a(2142),C={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},x=h(),R=h(),M=[0,0,0,0],T=[[0,0,0],[0,0,0],[0,0,0]],P=[0,0,0];function A(L,D,k,I,z){L[0]=D[0]*I+k[0]*z,L[1]=D[1]*I+k[1]*z,L[2]=D[2]*I+k[2]*z}y.exports=function(L,D,k,I,z,$){if(D||(D=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0]),z||(z=[0,0,0,1]),$||($=[0,0,0,1]),!c(x,L)||(p(R,x),R[3]=0,R[7]=0,R[11]=0,R[15]=1,Math.abs(v(R)<1e-8)))return!1;var Q,j,U,X,te,Z,K,re=x[3],q=x[7],Y=x[11],ee=x[12],me=x[13],pe=x[14],se=x[15];if(re!==0||q!==0||Y!==0){if(M[0]=re,M[1]=q,M[2]=Y,M[3]=se,!_(R,R))return!1;O(R,R),Q=z,U=R,X=(j=M)[0],te=j[1],Z=j[2],K=j[3],Q[0]=U[0]*X+U[4]*te+U[8]*Z+U[12]*K,Q[1]=U[1]*X+U[5]*te+U[9]*Z+U[13]*K,Q[2]=U[2]*X+U[6]*te+U[10]*Z+U[14]*K,Q[3]=U[3]*X+U[7]*te+U[11]*Z+U[15]*K}else z[0]=z[1]=z[2]=0,z[3]=1;if(D[0]=ee,D[1]=me,D[2]=pe,function(ce,de){ce[0][0]=de[0],ce[0][1]=de[1],ce[0][2]=de[2],ce[1][0]=de[4],ce[1][1]=de[5],ce[1][2]=de[6],ce[2][0]=de[8],ce[2][1]=de[9],ce[2][2]=de[10]}(T,x),k[0]=C.length(T[0]),C.normalize(T[0],T[0]),I[0]=C.dot(T[0],T[1]),A(T[1],T[1],T[0],1,-I[0]),k[1]=C.length(T[1]),C.normalize(T[1],T[1]),I[0]/=k[1],I[1]=C.dot(T[0],T[2]),A(T[2],T[2],T[0],1,-I[1]),I[2]=C.dot(T[1],T[2]),A(T[2],T[2],T[1],1,-I[2]),k[2]=C.length(T[2]),C.normalize(T[2],T[2]),I[1]/=k[2],I[2]/=k[2],C.cross(P,T[1],T[2]),C.dot(T[0],P)<0)for(var ae=0;ae<3;ae++)k[ae]*=-1,T[ae][0]*=-1,T[ae][1]*=-1,T[ae][2]*=-1;return $[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),$[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),$[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),$[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&($[0]=-$[0]),T[0][2]>T[2][0]&&($[1]=-$[1]),T[1][0]>T[0][1]&&($[2]=-$[2]),!0}},4690:function(y){y.exports=function(m,a){var c=a[15];if(c===0)return!1;for(var h=1/c,p=0;p<16;p++)m[p]=a[p]*h;return!0}},7649:function(y,m,a){var c=a(1868),h=a(1102),p=a(7191),v=a(7787),_=a(1116),O=R(),C=R(),x=R();function R(){return{translate:M(),scale:M(1),skew:M(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function M(T){return[T||0,T||0,T||0]}y.exports=function(T,P,A,L){if(v(P)===0||v(A)===0)return!1;var D=p(P,O.translate,O.scale,O.skew,O.perspective,O.quaternion),k=p(A,C.translate,C.scale,C.skew,C.perspective,C.quaternion);return!(!D||!k||(c(x.translate,O.translate,C.translate,L),c(x.skew,O.skew,C.skew,L),c(x.scale,O.scale,C.scale,L),c(x.perspective,O.perspective,C.perspective,L),_(x.quaternion,O.quaternion,C.quaternion,L),h(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion),0))}},1102:function(y,m,a){var c={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)},h=(c.create(),c.create());y.exports=function(p,v,_,O,C,x){return c.identity(p),c.fromRotationTranslation(p,x,v),p[3]=C[0],p[7]=C[1],p[11]=C[2],p[15]=C[3],c.identity(h),O[2]!==0&&(h[9]=O[2],c.multiply(p,p,h)),O[1]!==0&&(h[9]=0,h[8]=O[1],c.multiply(p,p,h)),O[0]!==0&&(h[8]=0,h[4]=O[0],c.multiply(p,p,h)),c.scale(p,p,_),p}},9298:function(y,m,a){var c=a(5070),h=a(7649),p=a(7437),v=a(6109),_=a(7115),O=a(5240),C=a(3012),x=a(998),R=(a(3668),a(899)),M=[0,0,0];function T(L){this._components=L.slice(),this._time=[0],this.prevMatrix=L.slice(),this.nextMatrix=L.slice(),this.computedMatrix=L.slice(),this.computedInverse=L.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}y.exports=function(L){return new T((L=L||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var P=T.prototype;P.recalcMatrix=function(L){var D=this._time,k=c.le(D,L),I=this.computedMatrix;if(!(k<0)){var z=this._components;if(k===D.length-1)for(var $=16*k,Q=0;Q<16;++Q)I[Q]=z[$++];else{var j=D[k+1]-D[k],U=($=16*k,this.prevMatrix),X=!0;for(Q=0;Q<16;++Q)U[Q]=z[$++];var te=this.nextMatrix;for(Q=0;Q<16;++Q)te[Q]=z[$++],X=X&&U[Q]===te[Q];if(j<1e-6||X)for(Q=0;Q<16;++Q)I[Q]=U[Q];else h(I,U,te,(L-D[k])/j)}var Z=this.computedUp;Z[0]=I[1],Z[1]=I[5],Z[2]=I[9],R(Z,Z);var K=this.computedInverse;p(K,I);var re=this.computedEye,q=K[15];re[0]=K[12]/q,re[1]=K[13]/q,re[2]=K[14]/q;var Y=this.computedCenter,ee=Math.exp(this.computedRadius[0]);for(Q=0;Q<3;++Q)Y[Q]=re[Q]-I[2+4*Q]*ee}},P.idle=function(L){if(!(L1&&c(h[C[T-2]],h[C[T-1]],M)<=0;)T-=1,C.pop();for(C.push(R),T=x.length;T>1&&c(h[x[T-2]],h[x[T-1]],M)>=0;)T-=1,x.pop();x.push(R)}v=new Array(x.length+C.length-2);for(var P=0,A=(_=0,C.length);_0;--L)v[P++]=x[L];return v};var c=a(417)[3]},6145:function(y,m,a){y.exports=function(h,p){p||(p=h,h=window);var v=0,_=0,O=0,C={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function R($){var Q=!1;return"altKey"in $&&(Q=Q||$.altKey!==C.alt,C.alt=!!$.altKey),"shiftKey"in $&&(Q=Q||$.shiftKey!==C.shift,C.shift=!!$.shiftKey),"ctrlKey"in $&&(Q=Q||$.ctrlKey!==C.control,C.control=!!$.ctrlKey),"metaKey"in $&&(Q=Q||$.metaKey!==C.meta,C.meta=!!$.metaKey),Q}function M($,Q){var j=c.x(Q),U=c.y(Q);"buttons"in Q&&($=0|Q.buttons),($!==v||j!==_||U!==O||R(Q))&&(v=0|$,_=j||0,O=U||0,p&&p(v,_,O,C))}function T($){M(0,$)}function P(){(v||_||O||C.shift||C.alt||C.meta||C.control)&&(_=O=0,v=0,C.shift=C.alt=C.control=C.meta=!1,p&&p(0,0,0,C))}function A($){R($)&&p&&p(v,_,O,C)}function L($){c.buttons($)===0?M(0,$):M(v,$)}function D($){M(v|c.buttons($),$)}function k($){M(v&~c.buttons($),$)}function I(){x||(x=!0,h.addEventListener("mousemove",L),h.addEventListener("mousedown",D),h.addEventListener("mouseup",k),h.addEventListener("mouseleave",T),h.addEventListener("mouseenter",T),h.addEventListener("mouseout",T),h.addEventListener("mouseover",T),h.addEventListener("blur",P),h.addEventListener("keyup",A),h.addEventListener("keydown",A),h.addEventListener("keypress",A),h!==window&&(window.addEventListener("blur",P),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}I();var z={element:h};return Object.defineProperties(z,{enabled:{get:function(){return x},set:function($){$?I():x&&(x=!1,h.removeEventListener("mousemove",L),h.removeEventListener("mousedown",D),h.removeEventListener("mouseup",k),h.removeEventListener("mouseleave",T),h.removeEventListener("mouseenter",T),h.removeEventListener("mouseout",T),h.removeEventListener("mouseover",T),h.removeEventListener("blur",P),h.removeEventListener("keyup",A),h.removeEventListener("keydown",A),h.removeEventListener("keypress",A),h!==window&&(window.removeEventListener("blur",P),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return _},enumerable:!0},y:{get:function(){return O},enumerable:!0},mods:{get:function(){return C},enumerable:!0}}),z};var c=a(4110)},2565:function(y){var m={left:0,top:0};y.exports=function(a,c,h){c=c||a.currentTarget||a.srcElement,Array.isArray(h)||(h=[0,0]);var p,v=a.clientX||0,_=a.clientY||0,O=(p=c)===window||p===document||p===document.body?m:p.getBoundingClientRect();return h[0]=v-O.left,h[1]=_-O.top,h}},4110:function(y,m){function a(c){return c.target||c.srcElement||window}m.buttons=function(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){if((h=c.which)===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1< 0"),typeof p.vertex!="function"&&v("Must specify vertex creation function"),typeof p.cell!="function"&&v("Must specify cell creation function"),typeof p.phase!="function"&&v("Must specify phase function");for(var C=p.getters||[],x=new Array(O),R=0;R=0?x[R]=!0:x[R]=!1;return function(M,T,P,A,L,D){var k=[D,L].join(",");return(0,h[k])(M,T,P,c.mallocUint32,c.freeUint32)}(p.vertex,p.cell,p.phase,0,_,x)};var h={"false,0,1":function(p,v,_,O,C){return function(x,R,M,T){var P,A=0|x.shape[0],L=0|x.shape[1],D=x.data,k=0|x.offset,I=0|x.stride[0],z=0|x.stride[1],$=k,Q=0|-I,j=0,U=0|-z,X=0,te=-I-z|0,Z=0,K=0|I,re=z-I*A|0,q=0,Y=0,ee=0,me=2*A|0,pe=O(me),se=O(me),ae=0,ce=0,de=-1,ye=-1,ve=0,_e=0|-A,we=0|A,Te=0,Pe=-A-1|0,Ie=A-1|0,ze=0,De=0,Qe=0;for(q=0;q0){if(Y=1,pe[ae++]=_(D[$],R,M,T),$+=K,A>0)for(q=1,P=D[$],ce=pe[ae]=_(P,R,M,T),ve=pe[ae+de],Te=pe[ae+_e],ze=pe[ae+Pe],ce===ve&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,ve,Te,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,q=2;q0)for(q=1,P=D[$],ce=pe[ae]=_(P,R,M,T),ve=pe[ae+de],Te=pe[ae+_e],ze=pe[ae+Pe],ce===ve&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,ve,Te,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,X,Z,Te,ze,R,M,T)),ae+=1,$+=K,q=2;q0){if(q=1,pe[ae++]=_(D[$],R,M,T),$+=K,L>0)for(Y=1,P=D[$],ce=pe[ae]=_(P,R,M,T),Te=pe[ae+_e],ve=pe[ae+de],ze=pe[ae+Pe],ce===Te&&ce===ve&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,Te,ve,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,Y=2;Y0)for(Y=1,P=D[$],ce=pe[ae]=_(P,R,M,T),Te=pe[ae+_e],ve=pe[ae+de],ze=pe[ae+Pe],ce===Te&&ce===ve&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,Te,ve,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,Z,j,ze,Te,R,M,T)),ae+=1,$+=K,Y=2;Y2&&$[1]>2&&k(z.pick(-1,-1).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,0).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,1).lo(1,1).hi($[0]-2,$[1]-2)),$[1]>2&&(D(z.pick(0,-1).lo(1).hi($[1]-2),I.pick(0,-1,1).lo(1).hi($[1]-2)),L(I.pick(0,-1,0).lo(1).hi($[1]-2))),$[1]>2&&(D(z.pick($[0]-1,-1).lo(1).hi($[1]-2),I.pick($[0]-1,-1,1).lo(1).hi($[1]-2)),L(I.pick($[0]-1,-1,0).lo(1).hi($[1]-2))),$[0]>2&&(D(z.pick(-1,0).lo(1).hi($[0]-2),I.pick(-1,0,0).lo(1).hi($[0]-2)),L(I.pick(-1,0,1).lo(1).hi($[0]-2))),$[0]>2&&(D(z.pick(-1,$[1]-1).lo(1).hi($[0]-2),I.pick(-1,$[1]-1,0).lo(1).hi($[0]-2)),L(I.pick(-1,$[1]-1,1).lo(1).hi($[0]-2))),I.set(0,0,0,0),I.set(0,0,1,0),I.set($[0]-1,0,0,0),I.set($[0]-1,0,1,0),I.set(0,$[1]-1,0,0),I.set(0,$[1]-1,1,0),I.set($[0]-1,$[1]-1,0,0),I.set($[0]-1,$[1]-1,1,0),I}}y.exports=function(A,L,D){return Array.isArray(D)||(D=c(L.dimension,typeof D=="string"?D:"clamp")),L.size===0?A:L.dimension===0?(A.set(0),A):function(k){var I=k.join();if(j=x[I])return j;for(var z=k.length,$=[R,M],Q=1;Q<=z;++Q)$.push(T(Q));var j=P.apply(void 0,$);return x[I]=j,j}(D)(A,L)}},3581:function(y){function m(p,v){var _=Math.floor(v),O=v-_,C=0<=_&&_0;){te<64?(A=te,te=0):(A=64,te-=64);for(var Z=0|_[1];Z>0;){Z<64?(L=Z,Z=0):(L=64,Z-=64),x=U+te*k+Z*I,T=X+te*$+Z*Q;var K=0,re=0,q=0,Y=z,ee=k-D*z,me=I-A*k,pe=j,se=$-D*j,ae=Q-A*$;for(q=0;q0;){Q<64?(A=Q,Q=0):(A=64,Q-=64);for(var j=0|_[0];j>0;){j<64?(P=j,j=0):(P=64,j-=64),x=z+Q*D+j*L,T=$+Q*I+j*k;var U=0,X=0,te=D,Z=L-A*D,K=I,re=k-A*I;for(X=0;X0;){X<64?(L=X,X=0):(L=64,X-=64);for(var te=0|_[0];te>0;){te<64?(P=te,te=0):(P=64,te-=64);for(var Z=0|_[1];Z>0;){Z<64?(A=Z,Z=0):(A=64,Z-=64),x=j+X*I+te*D+Z*k,T=U+X*Q+te*z+Z*$;var K=0,re=0,q=0,Y=I,ee=D-L*I,me=k-P*D,pe=Q,se=z-L*Q,ae=$-P*z;for(q=0;qx;){X=0,te=j-P;t:for(U=0;UK)break t;te+=I,X+=z}for(X=j,te=j-P,U=0;U>1,ke=Oe-Qe,Re=Oe+Qe,We=Ve,Ue=ke,Ze=Oe,Ye=Re,Je=$e,Me=M+1,Fe=T-1,je=!0,tt=0,ot=0,Ge=0,ht=I,pt=C(ht),St=C(ht);me=L*We,pe=L*Ue,De=A;e:for(ee=0;ee0){U=We,We=Ue,Ue=U;break e}if(Ge<0)break e;De+=$}me=L*Ye,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ye,Ye=Je,Je=U;break e}if(Ge<0)break e;De+=$}me=L*We,pe=L*Ze,De=A;e:for(ee=0;ee0){U=We,We=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Ze,De=A;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*We,pe=L*Ye,De=A;e:for(ee=0;ee0){U=We,We=Ye,Ye=U;break e}if(Ge<0)break e;De+=$}me=L*Ze,pe=L*Ye,De=A;e:for(ee=0;ee0){U=Ze,Ze=Ye,Ye=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ue,Ue=Je,Je=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Ze,De=A;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ye,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ye,Ye=Je,Je=U;break e}if(Ge<0)break e;De+=$}for(me=L*We,pe=L*Ue,se=L*Ze,ae=L*Ye,ce=L*Je,de=L*Ve,ye=L*Oe,ve=L*$e,ze=0,De=A,ee=0;ee0)){if(Ge<0){for(me=L*K,pe=L*Me,se=L*Fe,De=A,ee=0;ee0)for(;;){for(re=A+Fe*L,ze=0,ee=0;ee0)){for(re=A+Fe*L,ze=0,ee=0;ee$e){e:for(;;){for(re=A+Me*L,ze=0,De=A,ee=0;ee1&&D?I(L,D[0],D[1]):I(L)}(O,C,M);return R(M,T)}},8729:function(y,m,a){var c=a(8139),h={};y.exports=function(p){var v=p.order,_=p.dtype,O=[v,_].join(":"),C=h[O];return C||(h[O]=C=c(v,_)),C(p),p}},5050:function(y,m,a){var c=a(4780),h=typeof Float64Array<"u";function p(x,R){return x[0]-R[0]}function v(){var x,R=this.stride,M=new Array(R.length);for(x=0;x=0&&(L+=I*(D=0|A),k-=D),new T(this.data,k,I,L)},P.step=function(A){var L=this.shape[0],D=this.stride[0],k=this.offset,I=0,z=Math.ceil;return typeof A=="number"&&((I=0|A)<0?(k+=D*(L-1),L=z(-L/I)):L=z(L/I),D*=I),new T(this.data,L,D,k)},P.transpose=function(A){A=A===void 0?0:0|A;var L=this.shape,D=this.stride;return new T(this.data,L[A],D[A],this.offset)},P.pick=function(A){var L=[],D=[],k=this.offset;return typeof A=="number"&&A>=0?k=k+this.stride[0]*A|0:(L.push(this.shape[0]),D.push(this.stride[0])),(0,R[L.length+1])(this.data,L,D,k)},function(A,L,D,k){return new T(A,L[0],D[0],k)}},2:function(x,R,M){function T(A,L,D,k,I,z){this.data=A,this.shape=[L,D],this.stride=[k,I],this.offset=0|z}var P=T.prototype;return P.dtype=x,P.dimension=2,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(P,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),P.set=function(A,L,D){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L,D):this.data[this.offset+this.stride[0]*A+this.stride[1]*L]=D},P.get=function(A,L){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L):this.data[this.offset+this.stride[0]*A+this.stride[1]*L]},P.index=function(A,L){return this.offset+this.stride[0]*A+this.stride[1]*L},P.hi=function(A,L){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,this.stride[0],this.stride[1],this.offset)},P.lo=function(A,L){var D=this.offset,k=0,I=this.shape[0],z=this.shape[1],$=this.stride[0],Q=this.stride[1];return typeof A=="number"&&A>=0&&(D+=$*(k=0|A),I-=k),typeof L=="number"&&L>=0&&(D+=Q*(k=0|L),z-=k),new T(this.data,I,z,$,Q,D)},P.step=function(A,L){var D=this.shape[0],k=this.shape[1],I=this.stride[0],z=this.stride[1],$=this.offset,Q=0,j=Math.ceil;return typeof A=="number"&&((Q=0|A)<0?($+=I*(D-1),D=j(-D/Q)):D=j(D/Q),I*=Q),typeof L=="number"&&((Q=0|L)<0?($+=z*(k-1),k=j(-k/Q)):k=j(k/Q),z*=Q),new T(this.data,D,k,I,z,$)},P.transpose=function(A,L){A=A===void 0?0:0|A,L=L===void 0?1:0|L;var D=this.shape,k=this.stride;return new T(this.data,D[A],D[L],k[A],k[L],this.offset)},P.pick=function(A,L){var D=[],k=[],I=this.offset;return typeof A=="number"&&A>=0?I=I+this.stride[0]*A|0:(D.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(D.push(this.shape[1]),k.push(this.stride[1])),(0,R[D.length+1])(this.data,D,k,I)},function(A,L,D,k){return new T(A,L[0],L[1],D[0],D[1],k)}},3:function(x,R,M){function T(A,L,D,k,I,z,$,Q){this.data=A,this.shape=[L,D,k],this.stride=[I,z,$],this.offset=0|Q}var P=T.prototype;return P.dtype=x,P.dimension=3,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(P,"order",{get:function(){var A=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),D=Math.abs(this.stride[2]);return A>L?L>D?[2,1,0]:A>D?[1,2,0]:[1,0,2]:A>D?[2,0,1]:D>L?[0,1,2]:[0,2,1]}}),P.set=function(A,L,D,k){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D,k):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D]=k},P.get=function(A,L,D){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D]},P.index=function(A,L,D){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D},P.hi=function(A,L,D){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,this.stride[0],this.stride[1],this.stride[2],this.offset)},P.lo=function(A,L,D){var k=this.offset,I=0,z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.stride[0],U=this.stride[1],X=this.stride[2];return typeof A=="number"&&A>=0&&(k+=j*(I=0|A),z-=I),typeof L=="number"&&L>=0&&(k+=U*(I=0|L),$-=I),typeof D=="number"&&D>=0&&(k+=X*(I=0|D),Q-=I),new T(this.data,z,$,Q,j,U,X,k)},P.step=function(A,L,D){var k=this.shape[0],I=this.shape[1],z=this.shape[2],$=this.stride[0],Q=this.stride[1],j=this.stride[2],U=this.offset,X=0,te=Math.ceil;return typeof A=="number"&&((X=0|A)<0?(U+=$*(k-1),k=te(-k/X)):k=te(k/X),$*=X),typeof L=="number"&&((X=0|L)<0?(U+=Q*(I-1),I=te(-I/X)):I=te(I/X),Q*=X),typeof D=="number"&&((X=0|D)<0?(U+=j*(z-1),z=te(-z/X)):z=te(z/X),j*=X),new T(this.data,k,I,z,$,Q,j,U)},P.transpose=function(A,L,D){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D;var k=this.shape,I=this.stride;return new T(this.data,k[A],k[L],k[D],I[A],I[L],I[D],this.offset)},P.pick=function(A,L,D){var k=[],I=[],z=this.offset;return typeof A=="number"&&A>=0?z=z+this.stride[0]*A|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?z=z+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof D=="number"&&D>=0?z=z+this.stride[2]*D|0:(k.push(this.shape[2]),I.push(this.stride[2])),(0,R[k.length+1])(this.data,k,I,z)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],D[0],D[1],D[2],k)}},4:function(x,R,M){function T(A,L,D,k,I,z,$,Q,j,U){this.data=A,this.shape=[L,D,k,I],this.stride=[z,$,Q,j],this.offset=0|U}var P=T.prototype;return P.dtype=x,P.dimension=4,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(P,"order",{get:M}),P.set=function(A,L,D,k,I){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k,I):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]=I},P.get=function(A,L,D,k){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]},P.index=function(A,L,D,k){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k},P.hi=function(A,L,D,k){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},P.lo=function(A,L,D,k){var I=this.offset,z=0,$=this.shape[0],Q=this.shape[1],j=this.shape[2],U=this.shape[3],X=this.stride[0],te=this.stride[1],Z=this.stride[2],K=this.stride[3];return typeof A=="number"&&A>=0&&(I+=X*(z=0|A),$-=z),typeof L=="number"&&L>=0&&(I+=te*(z=0|L),Q-=z),typeof D=="number"&&D>=0&&(I+=Z*(z=0|D),j-=z),typeof k=="number"&&k>=0&&(I+=K*(z=0|k),U-=z),new T(this.data,$,Q,j,U,X,te,Z,K,I)},P.step=function(A,L,D,k){var I=this.shape[0],z=this.shape[1],$=this.shape[2],Q=this.shape[3],j=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],Z=this.offset,K=0,re=Math.ceil;return typeof A=="number"&&((K=0|A)<0?(Z+=j*(I-1),I=re(-I/K)):I=re(I/K),j*=K),typeof L=="number"&&((K=0|L)<0?(Z+=U*(z-1),z=re(-z/K)):z=re(z/K),U*=K),typeof D=="number"&&((K=0|D)<0?(Z+=X*($-1),$=re(-$/K)):$=re($/K),X*=K),typeof k=="number"&&((K=0|k)<0?(Z+=te*(Q-1),Q=re(-Q/K)):Q=re(Q/K),te*=K),new T(this.data,I,z,$,Q,j,U,X,te,Z)},P.transpose=function(A,L,D,k){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k;var I=this.shape,z=this.stride;return new T(this.data,I[A],I[L],I[D],I[k],z[A],z[L],z[D],z[k],this.offset)},P.pick=function(A,L,D,k){var I=[],z=[],$=this.offset;return typeof A=="number"&&A>=0?$=$+this.stride[0]*A|0:(I.push(this.shape[0]),z.push(this.stride[0])),typeof L=="number"&&L>=0?$=$+this.stride[1]*L|0:(I.push(this.shape[1]),z.push(this.stride[1])),typeof D=="number"&&D>=0?$=$+this.stride[2]*D|0:(I.push(this.shape[2]),z.push(this.stride[2])),typeof k=="number"&&k>=0?$=$+this.stride[3]*k|0:(I.push(this.shape[3]),z.push(this.stride[3])),(0,R[I.length+1])(this.data,I,z,$)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],L[3],D[0],D[1],D[2],D[3],k)}},5:function(x,R,M){function T(A,L,D,k,I,z,$,Q,j,U,X,te){this.data=A,this.shape=[L,D,k,I,z],this.stride=[$,Q,j,U,X],this.offset=0|te}var P=T.prototype;return P.dtype=x,P.dimension=5,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(P,"order",{get:M}),P.set=function(A,L,D,k,I,z){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I,z):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]=z},P.get=function(A,L,D,k,I){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]},P.index=function(A,L,D,k,I){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I},P.hi=function(A,L,D,k,I){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,typeof I!="number"||I<0?this.shape[4]:0|I,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},P.lo=function(A,L,D,k,I){var z=this.offset,$=0,Q=this.shape[0],j=this.shape[1],U=this.shape[2],X=this.shape[3],te=this.shape[4],Z=this.stride[0],K=this.stride[1],re=this.stride[2],q=this.stride[3],Y=this.stride[4];return typeof A=="number"&&A>=0&&(z+=Z*($=0|A),Q-=$),typeof L=="number"&&L>=0&&(z+=K*($=0|L),j-=$),typeof D=="number"&&D>=0&&(z+=re*($=0|D),U-=$),typeof k=="number"&&k>=0&&(z+=q*($=0|k),X-=$),typeof I=="number"&&I>=0&&(z+=Y*($=0|I),te-=$),new T(this.data,Q,j,U,X,te,Z,K,re,q,Y,z)},P.step=function(A,L,D,k,I){var z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.shape[3],U=this.shape[4],X=this.stride[0],te=this.stride[1],Z=this.stride[2],K=this.stride[3],re=this.stride[4],q=this.offset,Y=0,ee=Math.ceil;return typeof A=="number"&&((Y=0|A)<0?(q+=X*(z-1),z=ee(-z/Y)):z=ee(z/Y),X*=Y),typeof L=="number"&&((Y=0|L)<0?(q+=te*($-1),$=ee(-$/Y)):$=ee($/Y),te*=Y),typeof D=="number"&&((Y=0|D)<0?(q+=Z*(Q-1),Q=ee(-Q/Y)):Q=ee(Q/Y),Z*=Y),typeof k=="number"&&((Y=0|k)<0?(q+=K*(j-1),j=ee(-j/Y)):j=ee(j/Y),K*=Y),typeof I=="number"&&((Y=0|I)<0?(q+=re*(U-1),U=ee(-U/Y)):U=ee(U/Y),re*=Y),new T(this.data,z,$,Q,j,U,X,te,Z,K,re,q)},P.transpose=function(A,L,D,k,I){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k,I=I===void 0?4:0|I;var z=this.shape,$=this.stride;return new T(this.data,z[A],z[L],z[D],z[k],z[I],$[A],$[L],$[D],$[k],$[I],this.offset)},P.pick=function(A,L,D,k,I){var z=[],$=[],Q=this.offset;return typeof A=="number"&&A>=0?Q=Q+this.stride[0]*A|0:(z.push(this.shape[0]),$.push(this.stride[0])),typeof L=="number"&&L>=0?Q=Q+this.stride[1]*L|0:(z.push(this.shape[1]),$.push(this.stride[1])),typeof D=="number"&&D>=0?Q=Q+this.stride[2]*D|0:(z.push(this.shape[2]),$.push(this.stride[2])),typeof k=="number"&&k>=0?Q=Q+this.stride[3]*k|0:(z.push(this.shape[3]),$.push(this.stride[3])),typeof I=="number"&&I>=0?Q=Q+this.stride[4]*I|0:(z.push(this.shape[4]),$.push(this.stride[4])),(0,R[z.length+1])(this.data,z,$,Q)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],L[3],L[4],D[0],D[1],D[2],D[3],D[4],k)}}};function O(x,R){var M=R===-1?"T":String(R),T=_[M];return R===-1?T(x):R===0?T(x,C[x][0]):T(x,C[x],v)}var C={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};y.exports=function(x,R,M,T){if(x===void 0)return(0,C.array[0])([]);typeof x=="number"&&(x=[x]),R===void 0&&(R=[x.length]);var P=R.length;if(M===void 0){M=new Array(P);for(var A=P-1,L=1;A>=0;--A)M[A]=L,L*=R[A]}if(T===void 0)for(T=0,A=0;A>>0;y.exports=function(v,_){if(isNaN(v)||isNaN(_))return NaN;if(v===_)return v;if(v===0)return _<0?-h:h;var O=c.hi(v),C=c.lo(v);return _>v==v>0?C===p?(O+=1,C=0):C+=1:C===0?(C=p,O-=1):C-=1,c.pack(C,O)}},115:function(y,m){m.vertexNormals=function(a,c,h){for(var p=c.length,v=new Array(p),_=h===void 0?1e-6:h,O=0;O_){var Q=v[R],j=1/Math.sqrt(k*z);for($=0;$<3;++$){var U=($+1)%3,X=($+2)%3;Q[$]+=j*(I[U]*D[X]-I[X]*D[U])}}}for(O=0;O_)for(j=1/Math.sqrt(te),$=0;$<3;++$)Q[$]*=j;else for($=0;$<3;++$)Q[$]=0}return v},m.faceNormals=function(a,c,h){for(var p=a.length,v=new Array(p),_=h===void 0?1e-6:h,O=0;O_?1/Math.sqrt(A):0,R=0;R<3;++R)P[R]*=A;v[O]=P}return v}},567:function(y){y.exports=function(m,a,c,h,p,v,_,O,C,x){var R=a+v+x;if(M>0){var M=Math.sqrt(R+1);m[0]=.5*(_-C)/M,m[1]=.5*(O-h)/M,m[2]=.5*(c-v)/M,m[3]=.5*M}else{var T=Math.max(a,v,x);M=Math.sqrt(2*T-R+1),a>=T?(m[0]=.5*M,m[1]=.5*(p+c)/M,m[2]=.5*(O+h)/M,m[3]=.5*(_-C)/M):v>=T?(m[0]=.5*(c+p)/M,m[1]=.5*M,m[2]=.5*(C+_)/M,m[3]=.5*(O-h)/M):(m[0]=.5*(h+O)/M,m[1]=.5*(_+C)/M,m[2]=.5*M,m[3]=.5*(c-p)/M)}return m}},7774:function(y,m,a){y.exports=function(T){var P=(T=T||{}).center||[0,0,0],A=T.rotation||[0,0,0,1],L=T.radius||1;P=[].slice.call(P,0,3),x(A=[].slice.call(A,0,4),A);var D=new R(A,P,Math.log(L));return D.setDistanceLimits(T.zoomMin,T.zoomMax),("eye"in T||"up"in T)&&D.lookAt(0,T.eye,T.center,T.up),D};var c=a(8444),h=a(3012),p=a(5950),v=a(7437),_=a(567);function O(T,P,A){return Math.sqrt(Math.pow(T,2)+Math.pow(P,2)+Math.pow(A,2))}function C(T,P,A,L){return Math.sqrt(Math.pow(T,2)+Math.pow(P,2)+Math.pow(A,2)+Math.pow(L,2))}function x(T,P){var A=P[0],L=P[1],D=P[2],k=P[3],I=C(A,L,D,k);I>1e-6?(T[0]=A/I,T[1]=L/I,T[2]=D/I,T[3]=k/I):(T[0]=T[1]=T[2]=0,T[3]=1)}function R(T,P,A){this.radius=c([A]),this.center=c(P),this.rotation=c(T),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=R.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(T){this.radius.curve(T),this.center.curve(T),this.rotation.curve(T);var P=this.computedRotation;x(P,P);var A=this.computedMatrix;p(A,P);var L=this.computedCenter,D=this.computedEye,k=this.computedUp,I=Math.exp(this.computedRadius[0]);D[0]=L[0]+I*A[2],D[1]=L[1]+I*A[6],D[2]=L[2]+I*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var z=0;z<3;++z){for(var $=0,Q=0;Q<3;++Q)$+=A[z+4*Q]*D[Q];A[12+z]=-$}},M.getMatrix=function(T,P){this.recalcMatrix(T);var A=this.computedMatrix;if(P){for(var L=0;L<16;++L)P[L]=A[L];return P}return A},M.idle=function(T){this.center.idle(T),this.radius.idle(T),this.rotation.idle(T)},M.flush=function(T){this.center.flush(T),this.radius.flush(T),this.rotation.flush(T)},M.pan=function(T,P,A,L){P=P||0,A=A||0,L=L||0,this.recalcMatrix(T);var D=this.computedMatrix,k=D[1],I=D[5],z=D[9],$=O(k,I,z);k/=$,I/=$,z/=$;var Q=D[0],j=D[4],U=D[8],X=Q*k+j*I+U*z,te=O(Q-=k*X,j-=I*X,U-=z*X);Q/=te,j/=te,U/=te,D[2],D[6],D[10];var Z=Q*P+k*A,K=j*P+I*A,re=U*P+z*A;this.center.move(T,Z,K,re);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(T,Math.log(q))},M.rotate=function(T,P,A,L){this.recalcMatrix(T),P=P||0,A=A||0;var D=this.computedMatrix,k=D[0],I=D[4],z=D[8],$=D[1],Q=D[5],j=D[9],U=D[2],X=D[6],te=D[10],Z=P*k+A*$,K=P*I+A*Q,re=P*z+A*j,q=-(X*re-te*K),Y=-(te*Z-U*re),ee=-(U*K-X*Z),me=Math.sqrt(Math.max(0,1-Math.pow(q,2)-Math.pow(Y,2)-Math.pow(ee,2))),pe=C(q,Y,ee,me);pe>1e-6?(q/=pe,Y/=pe,ee/=pe,me/=pe):(q=Y=ee=0,me=1);var se=this.computedRotation,ae=se[0],ce=se[1],de=se[2],ye=se[3],ve=ae*me+ye*q+ce*ee-de*Y,_e=ce*me+ye*Y+de*q-ae*ee,we=de*me+ye*ee+ae*Y-ce*q,Te=ye*me-ae*q-ce*Y-de*ee;if(L){q=U,Y=X,ee=te;var Pe=Math.sin(L)/O(q,Y,ee);q*=Pe,Y*=Pe,ee*=Pe,Te=Te*(me=Math.cos(P))-(ve=ve*me+Te*q+_e*ee-we*Y)*q-(_e=_e*me+Te*Y+we*q-ve*ee)*Y-(we=we*me+Te*ee+ve*Y-_e*q)*ee}var Ie=C(ve,_e,we,Te);Ie>1e-6?(ve/=Ie,_e/=Ie,we/=Ie,Te/=Ie):(ve=_e=we=0,Te=1),this.rotation.set(T,ve,_e,we,Te)},M.lookAt=function(T,P,A,L){this.recalcMatrix(T),A=A||this.computedCenter,P=P||this.computedEye,L=L||this.computedUp;var D=this.computedMatrix;h(D,P,A,L);var k=this.computedRotation;_(k,D[0],D[1],D[2],D[4],D[5],D[6],D[8],D[9],D[10]),x(k,k),this.rotation.set(T,k[0],k[1],k[2],k[3]);for(var I=0,z=0;z<3;++z)I+=Math.pow(A[z]-P[z],2);this.radius.set(T,.5*Math.log(Math.max(I,1e-6))),this.center.set(T,A[0],A[1],A[2])},M.translate=function(T,P,A,L){this.center.move(T,P||0,A||0,L||0)},M.setMatrix=function(T,P){var A=this.computedRotation;_(A,P[0],P[1],P[2],P[4],P[5],P[6],P[8],P[9],P[10]),x(A,A),this.rotation.set(T,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;v(L,P);var D=L[15];if(Math.abs(D)>1e-6){var k=L[12]/D,I=L[13]/D,z=L[14]/D;this.recalcMatrix(T);var $=Math.exp(this.computedRadius[0]);this.center.set(T,k-L[2]*$,I-L[6]*$,z-L[10]*$),this.radius.idle(T)}else this.center.idle(T),this.radius.idle(T)},M.setDistance=function(T,P){P>0&&this.radius.set(T,Math.log(P))},M.setDistanceLimits=function(T,P){T=T>0?Math.log(T):-1/0,P=P>0?Math.log(P):1/0,P=Math.max(P,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=P},M.getDistanceLimits=function(T){var P=this.radius.bounds;return T?(T[0]=Math.exp(P[0][0]),T[1]=Math.exp(P[1][0]),T):[Math.exp(P[0][0]),Math.exp(P[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(T){var P=this.lastT(),A=T.center;A&&this.center.set(P,A[0],A[1],A[2]);var L=T.rotation;L&&this.rotation.set(P,L[0],L[1],L[2],L[3]);var D=T.distance;D&&D>0&&this.radius.set(P,Math.log(D)),this.setDistanceLimits(T.zoomMin,T.zoomMax)}},4930:function(y,m,a){var c=a(6184);y.exports=function(h,p,v){return c(v=v!==void 0?v+"":" ",p)+h}},4405:function(y){y.exports=function(m,a){a||(a=[0,""]),m=String(m);var c=parseFloat(m,10);return a[0]=c,a[1]=m.match(/[\d.\-\+]*\s*(.*)/)[1]||"",a}},4166:function(y,m,a){y.exports=function(h,p){for(var v=0|p.length,_=h.length,O=[new Array(v),new Array(v)],C=0;C0){Q=O[X][z][0],U=X;break}j=Q[1^U];for(var te=0;te<2;++te)for(var Z=O[te][z],K=0;K0&&(Q=re,j=q,U=te)}return $||Q&&M(Q,U),j}function P(I,z){var $=O[z][I][0],Q=[I];M($,z);for(var j=$[1^z];;){for(;j!==I;)Q.push(j),j=T(Q[Q.length-2],j,!1);if(O[0][I].length+O[1][I].length===0)break;var U=Q[Q.length-1],X=I,te=Q[1],Z=T(U,X,!0);if(c(p[U],p[X],p[te],p[Z])<0)break;Q.push(I),j=T(U,X)}return Q}function A(I,z){return z[1]===z[z.length-1]}for(C=0;C0;){O[0][C].length;var k=P(C,L);A(0,k)?D.push.apply(D,k):(D.length>0&&R.push(D),D=k)}D.length>0&&R.push(D)}return R};var c=a(9398)},3959:function(y,m,a){y.exports=function(h,p){for(var v=c(h,p.length),_=new Array(p.length),O=new Array(p.length),C=[],x=0;x0;){_[L=C.pop()]=!1;var M=v[L];for(x=0;x0})).length,I=new Array(k),z=new Array(k);for(L=0;L0;){var _e=ye.pop(),we=Y[_e];O(we,function(Qe,Ve){return Qe-Ve});var Te,Pe=we.length,Ie=ve[_e];for(Ie===0&&(Te=[ze=D[_e]]),L=0;L=0||(ve[De]=1^Ie,ye.push(De),Ie===0&&(de(ze=D[De])||(ze.reverse(),Te.push(ze))))}Ie===0&&T.push(Te)}return T};var c=a(8348),h=a(4166),p=a(211),v=a(9660),_=a(9662),O=a(1215),C=a(3959);function x(R,M){for(var T=new Array(R),P=0;P0&&X[Z]===te[0]))return 1;K=U[Z-1]}for(var re=1;K;){var q=K.key,Y=c(te,q[0],q[1]);if(q[0][0]0))return 0;re=-1,K=K.right}else if(Y>0)K=K.left;else{if(!(Y<0))return 0;re=1,K=K.right}}return re}}(Q.slabs,Q.coordinates);return T.length===0?j:function(U,X){return function(te){return U(te[0],te[1])?0:X(te)}}(O(T),j)};var c=a(417)[3],h=a(4385),p=a(9014),v=a(5070);function _(){return!0}function O(x){for(var R={},M=0;M=x?(X=1,I=x+2*T+A):I=T*(X=-T/x)+A):(X=0,P>=0?(te=0,I=A):-P>=M?(te=1,I=M+2*P+A):I=P*(te=-P/M)+A);else if(te<0)te=0,T>=0?(X=0,I=A):-T>=x?(X=1,I=x+2*T+A):I=T*(X=-T/x)+A;else{var Z=1/U;I=(X*=Z)*(x*X+R*(te*=Z)+2*T)+te*(R*X+M*te+2*P)+A}else X<0?($=M+P)>(z=R+T)?(Q=$-z)>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+A):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*P)+A:(X=0,$<=0?(te=1,I=M+2*P+A):P>=0?(te=0,I=A):I=P*(te=-P/M)+A):te<0?($=x+T)>(z=R+P)?(Q=$-z)>=(j=x-2*R+M)?(te=1,X=0,I=M+2*P+A):I=(X=1-(te=Q/j))*(x*X+R*te+2*T)+te*(R*X+M*te+2*P)+A:(te=0,$<=0?(X=1,I=x+2*T+A):T>=0?(X=0,I=A):I=T*(X=-T/x)+A):(Q=M+P-R-T)<=0?(X=0,te=1,I=M+2*P+A):Q>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+A):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*P)+A;var K=1-X-te;for(C=0;C<_.length;++C)O[C]=K*h[C]+X*p[C]+te*v[C];return I<0?0:I}},1116:function(y,m,a){y.exports=a(6093)},7584:function(y,m,a){var c=a(1539);y.exports=function(h,p){for(var v=h.length,_=new Array(v),O=0;O0){var M=v[O-1];if(c(x,M)===0&&p(M)!==R){O-=1;continue}}v[O++]=x}}return v.length=O,v}},6184:function(y){var m,a="";y.exports=function(c,h){if(typeof c!="string")throw new TypeError("expected a string");if(h===1)return c;if(h===2)return c+c;var p=c.length*h;if(m!==c||m===void 0)m=c,a="";else if(a.length>=p)return a.substr(0,p);for(;p>a.length&&h>1;)1&h&&(a+=c),h>>=1,c+=c;return a=(a+=c).substr(0,p)}},8161:function(y,m,a){y.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(y){y.exports=function(m){for(var a=m.length,c=m[m.length-1],h=a,p=a-2;p>=0;--p){var v=c;(C=(O=m[p])-((c=v+O)-v))&&(m[--h]=c,c=C)}var _=0;for(p=h;p0){if($<=0)return Q;I=z+$}else{if(!(z<0)||$>=0)return Q;I=-(z+$)}var j=33306690738754716e-32*I;return Q>=j||Q<=-j?Q:R(L,D,k)},function(L,D,k,I){var z=L[0]-I[0],$=D[0]-I[0],Q=k[0]-I[0],j=L[1]-I[1],U=D[1]-I[1],X=k[1]-I[1],te=L[2]-I[2],Z=D[2]-I[2],K=k[2]-I[2],re=$*X,q=Q*U,Y=Q*j,ee=z*X,me=z*U,pe=$*j,se=te*(re-q)+Z*(Y-ee)+K*(me-pe),ae=7771561172376103e-31*((Math.abs(re)+Math.abs(q))*Math.abs(te)+(Math.abs(Y)+Math.abs(ee))*Math.abs(Z)+(Math.abs(me)+Math.abs(pe))*Math.abs(K));return se>ae||-se>ae?se:M(L,D,k,I)}];function P(L){var D=T[L.length];return D||(D=T[L.length]=x(L.length)),D.apply(void 0,L)}function A(L,D,k,I,z,$,Q){return function(j,U,X,te,Z){switch(arguments.length){case 0:case 1:return 0;case 2:return I(j,U);case 3:return z(j,U,X);case 4:return $(j,U,X,te);case 5:return Q(j,U,X,te,Z)}for(var K=new Array(arguments.length),re=0;re0&&C>0||O<0&&C<0)return!1;var x=c(v,h,p),R=c(_,h,p);return!(x>0&&R>0||x<0&&R<0)&&(O!==0||C!==0||x!==0||R!==0||function(M,T,P,A){for(var L=0;L<2;++L){var D=M[L],k=T[L],I=Math.min(D,k),z=Math.max(D,k),$=P[L],Q=A[L],j=Math.min($,Q);if(Math.max($,Q)=h?(p=M,(C+=1)=h?(p=M,(C+=1)>1,M=h[2*R+1];if(M===O)return R;O>1,M=h[2*R+1];if(M===O)return R;O>1,M=h[2*R+1];if(M===O)return R;O0)-(h<0)},m.abs=function(h){var p=h>>31;return(h^p)-p},m.min=function(h,p){return p^(h^p)&-(h65535)<<4,p|=v=((h>>>=p)>255)<<3,p|=v=((h>>>=v)>15)<<2,(p|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},m.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},m.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},m.countTrailingZeros=a,m.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},m.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},m.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var c=new Array(256);(function(h){for(var p=0;p<256;++p){var v=p,_=p,O=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--O;h[p]=_<>>8&255]<<16|c[h>>>16&255]<<8|c[h>>>24&255]},m.interleave2=function(h,p){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(p=1431655765&((p=858993459&((p=252645135&((p=16711935&((p&=65535)|p<<8))|p<<4))|p<<2))|p<<1))<<1},m.deinterleave2=function(h,p){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>p&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},m.interleave3=function(h,p,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(p=1227133513&((p=3272356035&((p=251719695&((p=4278190335&((p&=1023)|p<<16))|p<<8))|p<<4))|p<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},m.deinterleave3=function(h,p){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>p&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},m.nextCombination=function(h){var p=h|h-1;return p+1|(~p&-~p)-1>>>a(h)+1}},6656:function(y,m,a){var c=a(9392),h=a(9521);function p(M,T){var P=M.length,A=M.length-T.length,L=Math.min;if(A)return A;switch(P){case 0:return 0;case 1:return M[0]-T[0];case 2:return(I=M[0]+M[1]-T[0]-T[1])||L(M[0],M[1])-L(T[0],T[1]);case 3:var D=M[0]+M[1],k=T[0]+T[1];if(I=D+M[2]-(k+T[2]))return I;var I,z=L(M[0],M[1]),$=L(T[0],T[1]);return(I=L(z,M[2])-L($,T[2]))||L(z+M[2],D)-L($+T[2],k);default:var Q=M.slice(0);Q.sort();var j=T.slice(0);j.sort();for(var U=0;U>1,k=p(M[D],T);k<=0?(k===0&&(L=D),P=D+1):k>0&&(A=D-1)}return L}function x(M,T){for(var P=new Array(M.length),A=0,L=P.length;A=M.length||p(M[X],D)!==0););}return P}function R(M,T){if(T<0)return[];for(var P=[],A=(1<>>$&1&&z.push(L[$]);T.push(z)}return _(T)},m.skeleton=R,m.boundary=function(M){for(var T=[],P=0,A=M.length;P>1:(pe>>1)-1}function Q(pe){for(var se=z(pe);;){var ae=se,ce=2*pe+1,de=2*(pe+1),ye=pe;if(ce0;){var ae=$(pe);if(!(ae>=0&&se0){var pe=Z[0];return I(0,re-1),re-=1,Q(0),pe}return-1}function X(pe,se){var ae=Z[pe];return M[ae]===se?pe:(M[ae]=-1/0,j(pe),U(),M[ae]=se,j((re+=1)-1))}function te(pe){if(!T[pe]){T[pe]=!0;var se=x[pe],ae=R[pe];x[ae]>=0&&(x[ae]=se),R[se]>=0&&(R[se]=ae),K[se]>=0&&X(K[se],k(se)),K[ae]>=0&&X(K[ae],k(ae))}}var Z=[],K=new Array(O);for(P=0;P>1;P>=0;--P)Q(P);for(;;){var q=U();if(q<0||M[q]>_)break;te(q)}var Y=[];for(P=0;P=0&&ae>=0&&se!==ae){var ce=K[se],de=K[ae];ce!==de&&me.push([ce,de])}}),h.unique(h.normalize(me)),{positions:Y,edges:me}};var c=a(417),h=a(6656)},6638:function(y,m,a){y.exports=function(p,v){var _,O,C,x;if(v[0][0]v[1][0]))return h(v,p);_=v[1],O=v[0]}if(p[0][0]p[1][0]))return-h(p,v);C=p[1],x=p[0]}var R=c(_,O,x),M=c(_,O,C);if(R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;if(R=c(x,C,O),M=c(x,C,_),R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;return O[0]-x[0]};var c=a(417);function h(p,v){var _,O,C,x;if(v[0][0]v[1][0])){var R=Math.min(p[0][1],p[1][1]),M=Math.max(p[0][1],p[1][1]),T=Math.min(v[0][1],v[1][1]),P=Math.max(v[0][1],v[1][1]);return MP?R-P:M-P}_=v[1],O=v[0]}p[0][1]0)if(T[0]!==D[1][0])P=M,M=M.right;else{if(I=C(M.right,T))return I;M=M.left}else{if(T[0]!==D[1][0])return M;var I;if(I=C(M.right,T))return I;M=M.left}}return P}function x(M,T,P,A){this.y=M,this.index=T,this.start=P,this.closed=A}function R(M,T,P,A){this.x=M,this.segment=T,this.create=P,this.index=A}_.prototype.castUp=function(M){var T=c.le(this.coordinates,M[0]);if(T<0)return-1;this.slabs[T];var P=C(this.slabs[T],M),A=-1;if(P&&(A=P.value),this.coordinates[T]===M[0]){var L=null;if(P&&(L=P.key),T>0){var D=C(this.slabs[T-1],M);D&&(L?v(D.key,L)>0&&(L=D.key,A=D.value):(A=D.value,L=D.key))}var k=this.horizontal[T];if(k.length>0){var I=c.ge(k,M[1],O);if(I=k.length)return A;z=k[I]}}if(z.start)if(L){var $=p(L[0],L[1],[M[0],z.y]);L[0][0]>L[1][0]&&($=-$),$>0&&(A=z.index)}else A=z.index;else z.y!==M[1]&&(A=z.index)}}}return A}},4670:function(y,m,a){var c=a(9130),h=a(9662);function p(_,O){var C=h(c(_,O),[O[O.length-1]]);return C[C.length-1]}function v(_,O,C,x){var R=-O/(x-O);R<0?R=0:R>1&&(R=1);for(var M=1-R,T=_.length,P=new Array(T),A=0;A0||R>0&&A<0){var L=v(M,A,T,R);C.push(L),x.push(L.slice())}A<0?x.push(T.slice()):A>0?C.push(T.slice()):(C.push(T.slice()),x.push(T.slice())),R=A}return{positive:C,negative:x}},y.exports.positive=function(_,O){for(var C=[],x=p(_[_.length-1],O),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var P=p(M=_[T],O);(x<0&&P>0||x>0&&P<0)&&C.push(v(R,P,M,x)),P>=0&&C.push(M.slice()),x=P}return C},y.exports.negative=function(_,O){for(var C=[],x=p(_[_.length-1],O),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var P=p(M=_[T],O);(x<0&&P>0||x>0&&P<0)&&C.push(v(R,P,M,x)),P<=0&&C.push(M.slice()),x=P}return C}},8974:function(y,m,a){var c;(function(){var h={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(O){return function(C,x){var R,M,T,P,A,L,D,k,I,z=1,$=C.length,Q="";for(M=0;M<$;M++)if(typeof C[M]=="string")Q+=C[M];else if(typeof C[M]=="object"){if((P=C[M]).keys)for(R=x[z],T=0;T=0),P.type){case"b":R=parseInt(R,10).toString(2);break;case"c":R=String.fromCharCode(parseInt(R,10));break;case"d":case"i":R=parseInt(R,10);break;case"j":R=JSON.stringify(R,null,P.width?parseInt(P.width):0);break;case"e":R=P.precision?parseFloat(R).toExponential(P.precision):parseFloat(R).toExponential();break;case"f":R=P.precision?parseFloat(R).toFixed(P.precision):parseFloat(R);break;case"g":R=P.precision?String(Number(R.toPrecision(P.precision))):parseFloat(R);break;case"o":R=(parseInt(R,10)>>>0).toString(8);break;case"s":R=String(R),R=P.precision?R.substring(0,P.precision):R;break;case"t":R=String(!!R),R=P.precision?R.substring(0,P.precision):R;break;case"T":R=Object.prototype.toString.call(R).slice(8,-1).toLowerCase(),R=P.precision?R.substring(0,P.precision):R;break;case"u":R=parseInt(R,10)>>>0;break;case"v":R=R.valueOf(),R=P.precision?R.substring(0,P.precision):R;break;case"x":R=(parseInt(R,10)>>>0).toString(16);break;case"X":R=(parseInt(R,10)>>>0).toString(16).toUpperCase()}h.json.test(P.type)?Q+=R:(!h.number.test(P.type)||k&&!P.sign?I="":(I=k?"+":"-",R=R.toString().replace(h.sign,"")),L=P.pad_char?P.pad_char==="0"?"0":P.pad_char.charAt(1):" ",D=P.width-(I+R).length,A=P.width&&D>0?L.repeat(D):"",Q+=P.align?I+R+A:L==="0"?I+A+R:A+I+R)}return Q}(function(C){if(_[C])return _[C];for(var x,R=C,M=[],T=0;R;){if((x=h.text.exec(R))!==null)M.push(x[0]);else if((x=h.modulo.exec(R))!==null)M.push("%");else{if((x=h.placeholder.exec(R))===null)throw new SyntaxError("[sprintf] unexpected placeholder");if(x[2]){T|=1;var P=[],A=x[2],L=[];if((L=h.key.exec(A))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");for(P.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=h.key_access.exec(A))!==null)P.push(L[1]);else{if((L=h.index_access.exec(A))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");P.push(L[1])}x[2]=P}else T|=2;if(T===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");M.push({placeholder:x[0],param_no:x[1],keys:x[2],sign:x[3],pad_char:x[4],align:x[5],width:x[6],precision:x[7],type:x[8]})}R=R.substring(x[0].length)}return _[C]=M}(O),arguments)}function v(O,C){return p.apply(null,[O].concat(C||[]))}var _=Object.create(null);m.sprintf=p,m.vsprintf=v,typeof window<"u"&&(window.sprintf=p,window.vsprintf=v,(c=(function(){return{sprintf:p,vsprintf:v}}).call(m,a,m,y))===void 0||(y.exports=c))})()},4162:function(y,m,a){y.exports=function(_,O){if(_.dimension<=0)return{positions:[],cells:[]};if(_.dimension===1)return function(R,M){for(var T=h(R,M),P=T.length,A=new Array(P),L=new Array(P),D=0;DP|0},vertex:function(R,M,T,P,A,L,D,k,I,z,$,Q,j){var U=(D<<0)+(k<<1)+(I<<2)+(z<<3)|0;if(U!==0&&U!==15)switch(U){case 0:case 15:$.push([R-.5,M-.5]);break;case 1:$.push([R-.25-.25*(P+T-2*j)/(T-P),M-.25-.25*(A+T-2*j)/(T-A)]);break;case 2:$.push([R-.75-.25*(-P-T+2*j)/(P-T),M-.25-.25*(L+P-2*j)/(P-L)]);break;case 3:$.push([R-.5,M-.5-.5*(A+T+L+P-4*j)/(T-A+P-L)]);break;case 4:$.push([R-.25-.25*(L+A-2*j)/(A-L),M-.75-.25*(-A-T+2*j)/(A-T)]);break;case 5:$.push([R-.5-.5*(P+T+L+A-4*j)/(T-P+A-L),M-.5]);break;case 6:$.push([R-.5-.25*(-P-T+L+A)/(P-T+A-L),M-.5-.25*(-A-T+L+P)/(A-T+P-L)]);break;case 7:$.push([R-.75-.25*(L+A-2*j)/(A-L),M-.75-.25*(L+P-2*j)/(P-L)]);break;case 8:$.push([R-.75-.25*(-L-A+2*j)/(L-A),M-.75-.25*(-L-P+2*j)/(L-P)]);break;case 9:$.push([R-.5-.25*(P+T+-L-A)/(T-P+L-A),M-.5-.25*(A+T+-L-P)/(T-A+L-P)]);break;case 10:$.push([R-.5-.5*(-P-T-L-A+4*j)/(P-T+L-A),M-.5]);break;case 11:$.push([R-.25-.25*(-L-A+2*j)/(L-A),M-.75-.25*(A+T-2*j)/(T-A)]);break;case 12:$.push([R-.5,M-.5-.5*(-A-T-L-P+4*j)/(A-T+L-P)]);break;case 13:$.push([R-.75-.25*(P+T-2*j)/(T-P),M-.25-.25*(-L-P+2*j)/(L-P)]);break;case 14:$.push([R-.25-.25*(-P-T+2*j)/(P-T),M-.25-.25*(-A-T+2*j)/(A-T)])}},cell:function(R,M,T,P,A,L,D,k,I){A?k.push([R,M]):k.push([M,R])}});return function(R,M){var T=[],P=[];return x(R,T,P,M),{positions:T,cells:P}}}},v={}},6946:function(y,m,a){y.exports=function v(_,O,C){C=C||{};var x=p[_];x||(x=p[_]={" ":{data:new Float32Array(0),shape:.2}});var R=x[O];if(!R)if(O.length<=1||!/\d/.test(O))R=x[O]=function(Q){for(var j=Q.cells,U=Q.positions,X=new Float32Array(6*j.length),te=0,Z=0,K=0;K0&&(A+=.02);var D=new Float32Array(P),k=0,I=-.5*A;for(L=0;LMath.max(D,k)?I[2]=1:D>Math.max(L,k)?I[0]=1:I[1]=1;for(var z=0,$=0,Q=0;Q<3;++Q)z+=A[Q]*A[Q],$+=I[Q]*A[Q];for(Q=0;Q<3;++Q)I[Q]-=$/z*A[Q];return _(I,I),I}function M(A,L,D,k,I,z,$,Q){this.center=c(D),this.up=c(k),this.right=c(I),this.radius=c([z]),this.angle=c([$,Q]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var j=0;j<16;++j)this.computedMatrix[j]=.5;this.recalcMatrix(0)}var T=M.prototype;T.setDistanceLimits=function(A,L){A=A>0?Math.log(A):-1/0,L=L>0?Math.log(L):1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},T.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},T.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,D=this.computedRight,k=0,I=0,z=0;z<3;++z)I+=L[z]*D[z],k+=L[z]*L[z];var $=Math.sqrt(k),Q=0;for(z=0;z<3;++z)D[z]-=L[z]*I/k,Q+=D[z]*D[z],L[z]/=$;var j=Math.sqrt(Q);for(z=0;z<3;++z)D[z]/=j;var U=this.computedToward;v(U,L,D),_(U,U);var X=Math.exp(this.computedRadius[0]),te=this.computedAngle[0],Z=this.computedAngle[1],K=Math.cos(te),re=Math.sin(te),q=Math.cos(Z),Y=Math.sin(Z),ee=this.computedCenter,me=K*q,pe=re*q,se=Y,ae=-K*Y,ce=-re*Y,de=q,ye=this.computedEye,ve=this.computedMatrix;for(z=0;z<3;++z){var _e=me*D[z]+pe*U[z]+se*L[z];ve[4*z+1]=ae*D[z]+ce*U[z]+de*L[z],ve[4*z+2]=_e,ve[4*z+3]=0}var we=ve[1],Te=ve[5],Pe=ve[9],Ie=ve[2],ze=ve[6],De=ve[10],Qe=Te*De-Pe*ze,Ve=Pe*Ie-we*De,$e=we*ze-Te*Ie,Oe=C(Qe,Ve,$e);for(Qe/=Oe,Ve/=Oe,$e/=Oe,ve[0]=Qe,ve[4]=Ve,ve[8]=$e,z=0;z<3;++z)ye[z]=ee[z]+ve[2+4*z]*X;for(z=0;z<3;++z){Q=0;for(var ke=0;ke<3;++ke)Q+=ve[z+4*ke]*ye[ke];ve[12+z]=-Q}ve[15]=1},T.getMatrix=function(A,L){this.recalcMatrix(A);var D=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=D[k];return L}return D};var P=[0,0,0];T.rotate=function(A,L,D,k){if(this.angle.move(A,L,D),k){this.recalcMatrix(A);var I=this.computedMatrix;P[0]=I[2],P[1]=I[6],P[2]=I[10];for(var z=this.computedUp,$=this.computedRight,Q=this.computedToward,j=0;j<3;++j)I[4*j]=z[j],I[4*j+1]=$[j],I[4*j+2]=Q[j];for(p(I,I,k,P),j=0;j<3;++j)z[j]=I[4*j],$[j]=I[4*j+1];this.up.set(A,z[0],z[1],z[2]),this.right.set(A,$[0],$[1],$[2])}},T.pan=function(A,L,D,k){L=L||0,D=D||0,k=k||0,this.recalcMatrix(A);var I=this.computedMatrix,z=(Math.exp(this.computedRadius[0]),I[1]),$=I[5],Q=I[9],j=C(z,$,Q);z/=j,$/=j,Q/=j;var U=I[0],X=I[4],te=I[8],Z=U*z+X*$+te*Q,K=C(U-=z*Z,X-=$*Z,te-=Q*Z),re=(U/=K)*L+z*D,q=(X/=K)*L+$*D,Y=(te/=K)*L+Q*D;this.center.move(A,re,q,Y);var ee=Math.exp(this.computedRadius[0]);ee=Math.max(1e-4,ee+k),this.radius.set(A,Math.log(ee))},T.translate=function(A,L,D,k){this.center.move(A,L||0,D||0,k||0)},T.setMatrix=function(A,L,D,k){var I=1;typeof D=="number"&&(I=0|D),(I<0||I>3)&&(I=1);var z=(I+2)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var $=L[I],Q=L[I+4],j=L[I+8];if(k){var U=Math.abs($),X=Math.abs(Q),te=Math.abs(j),Z=Math.max(U,X,te);U===Z?($=$<0?-1:1,Q=j=0):te===Z?(j=j<0?-1:1,$=Q=0):(Q=Q<0?-1:1,$=j=0)}else{var K=C($,Q,j);$/=K,Q/=K,j/=K}var re,q,Y=L[z],ee=L[z+4],me=L[z+8],pe=Y*$+ee*Q+me*j,se=C(Y-=$*pe,ee-=Q*pe,me-=j*pe),ae=Q*(me/=se)-j*(ee/=se),ce=j*(Y/=se)-$*me,de=$*ee-Q*Y,ye=C(ae,ce,de);if(ae/=ye,ce/=ye,de/=ye,this.center.jump(A,Ze,Ye,Je),this.radius.idle(A),this.up.jump(A,$,Q,j),this.right.jump(A,Y,ee,me),I===2){var ve=L[1],_e=L[5],we=L[9],Te=ve*Y+_e*ee+we*me,Pe=ve*ae+_e*ce+we*de;re=Qe<0?-Math.PI/2:Math.PI/2,q=Math.atan2(Pe,Te)}else{var Ie=L[2],ze=L[6],De=L[10],Qe=Ie*$+ze*Q+De*j,Ve=Ie*Y+ze*ee+De*me,$e=Ie*ae+ze*ce+De*de;re=Math.asin(x(Qe)),q=Math.atan2($e,Ve)}this.angle.jump(A,q,re),this.recalcMatrix(A);var Oe=L[2],ke=L[6],Re=L[10],We=this.computedMatrix;h(We,L);var Ue=We[15],Ze=We[12]/Ue,Ye=We[13]/Ue,Je=We[14]/Ue,Me=Math.exp(this.computedRadius[0]);this.center.jump(A,Ze-Oe*Me,Ye-ke*Me,Je-Re*Me)},T.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},T.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},T.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},T.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},T.lookAt=function(A,L,D,k){this.recalcMatrix(A),L=L||this.computedEye,D=D||this.computedCenter;var I=(k=k||this.computedUp)[0],z=k[1],$=k[2],Q=C(I,z,$);if(!(Q<1e-6)){I/=Q,z/=Q,$/=Q;var j=L[0]-D[0],U=L[1]-D[1],X=L[2]-D[2],te=C(j,U,X);if(!(te<1e-6)){j/=te,U/=te,X/=te;var Z=this.computedRight,K=Z[0],re=Z[1],q=Z[2],Y=I*K+z*re+$*q,ee=C(K-=Y*I,re-=Y*z,q-=Y*$);if(!(ee<.01&&(ee=C(K=z*X-$*U,re=$*j-I*X,q=I*U-z*j))<1e-6)){K/=ee,re/=ee,q/=ee,this.up.set(A,I,z,$),this.right.set(A,K,re,q),this.center.set(A,D[0],D[1],D[2]),this.radius.set(A,Math.log(te));var me=z*q-$*re,pe=$*K-I*q,se=I*re-z*K,ae=C(me,pe,se),ce=I*j+z*U+$*X,de=K*j+re*U+q*X,ye=(me/=ae)*j+(pe/=ae)*U+(se/=ae)*X,ve=Math.asin(x(ce)),_e=Math.atan2(ye,de),we=this.angle._state,Te=we[we.length-1],Pe=we[we.length-2];Te%=2*Math.PI;var Ie=Math.abs(Te+2*Math.PI-_e),ze=Math.abs(Te-_e),De=Math.abs(Te-2*Math.PI-_e);Ie0?re.pop():new ArrayBuffer(Z)}function P(Z){return new Uint8Array(T(Z),0,Z)}function A(Z){return new Uint16Array(T(2*Z),0,Z)}function L(Z){return new Uint32Array(T(4*Z),0,Z)}function D(Z){return new Int8Array(T(Z),0,Z)}function k(Z){return new Int16Array(T(2*Z),0,Z)}function I(Z){return new Int32Array(T(4*Z),0,Z)}function z(Z){return new Float32Array(T(4*Z),0,Z)}function $(Z){return new Float64Array(T(8*Z),0,Z)}function Q(Z){return v?new Uint8ClampedArray(T(Z),0,Z):P(Z)}function j(Z){return _?new BigUint64Array(T(8*Z),0,Z):null}function U(Z){return O?new BigInt64Array(T(8*Z),0,Z):null}function X(Z){return new DataView(T(Z),0,Z)}function te(Z){Z=c.nextPow2(Z);var K=c.log2(Z),re=R[K];return re.length>0?re.pop():new p(Z)}m.free=function(Z){if(p.isBuffer(Z))R[c.log2(Z.length)].push(Z);else{if(Object.prototype.toString.call(Z)!=="[object ArrayBuffer]"&&(Z=Z.buffer),!Z)return;var K=Z.length||Z.byteLength,re=0|c.log2(K);x[re].push(Z)}},m.freeUint8=m.freeUint16=m.freeUint32=m.freeBigUint64=m.freeInt8=m.freeInt16=m.freeInt32=m.freeBigInt64=m.freeFloat32=m.freeFloat=m.freeFloat64=m.freeDouble=m.freeUint8Clamped=m.freeDataView=function(Z){M(Z.buffer)},m.freeArrayBuffer=M,m.freeBuffer=function(Z){R[c.log2(Z.length)].push(Z)},m.malloc=function(Z,K){if(K===void 0||K==="arraybuffer")return T(Z);switch(K){case"uint8":return P(Z);case"uint16":return A(Z);case"uint32":return L(Z);case"int8":return D(Z);case"int16":return k(Z);case"int32":return I(Z);case"float":case"float32":return z(Z);case"double":case"float64":return $(Z);case"uint8_clamped":return Q(Z);case"bigint64":return U(Z);case"biguint64":return j(Z);case"buffer":return te(Z);case"data":case"dataview":return X(Z);default:return null}return null},m.mallocArrayBuffer=T,m.mallocUint8=P,m.mallocUint16=A,m.mallocUint32=L,m.mallocInt8=D,m.mallocInt16=k,m.mallocInt32=I,m.mallocFloat32=m.mallocFloat=z,m.mallocFloat64=m.mallocDouble=$,m.mallocUint8Clamped=Q,m.mallocBigUint64=j,m.mallocBigInt64=U,m.mallocDataView=X,m.mallocBuffer=te,m.clearCache=function(){for(var Z=0;Z<32;++Z)C.UINT8[Z].length=0,C.UINT16[Z].length=0,C.UINT32[Z].length=0,C.INT8[Z].length=0,C.INT16[Z].length=0,C.INT32[Z].length=0,C.FLOAT[Z].length=0,C.DOUBLE[Z].length=0,C.BIGUINT64[Z].length=0,C.BIGINT64[Z].length=0,C.UINT8C[Z].length=0,x[Z].length=0,R[Z].length=0}},1731:function(y){function m(c){this.roots=new Array(c),this.ranks=new Array(c);for(var h=0;h0&&(Z=te.size),te.lineSpacing&&te.lineSpacing>0&&(K=te.lineSpacing),te.styletags&&te.styletags.breaklines&&(re.breaklines=!!te.styletags.breaklines),te.styletags&&te.styletags.bolds&&(re.bolds=!!te.styletags.bolds),te.styletags&&te.styletags.italics&&(re.italics=!!te.styletags.italics),te.styletags&&te.styletags.subscripts&&(re.subscripts=!!te.styletags.subscripts),te.styletags&&te.styletags.superscripts&&(re.superscripts=!!te.styletags.superscripts)),X.font=[te.fontStyle,te.fontVariant,te.fontWeight,Z+"px",te.font].filter(function(q){return q}).join(" "),X.textAlign="start",X.textBaseline="alphabetic",X.direction="ltr",Q(function(q,Y,ee,me,pe,se){ee=ee.replace(/\n/g,""),ee=se.breaklines===!0?ee.replace(/\/g,` `):ee.replace(/\/g," ");var ae="",ce=[];for(_e=0;_e-1?parseInt(tt[1+ht]):0,Ft=pt>-1?parseInt(ot[1+pt]):0;St!==Ft&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Ft-St),Ge=Ge.replace("?px ",Ue())),Te+=.25*De*(Ft-St)}if(se.superscripts===!0){var zt=tt.indexOf(P),Yt=ot.indexOf(P),ln=zt>-1?parseInt(tt[1+zt]):0,tn=Yt>-1?parseInt(ot[1+Yt]):0;ln!==tn&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,tn-ln),Ge=Ge.replace("?px ",Ue())),Te-=.25*De*(tn-ln)}if(se.bolds===!0){var Et=tt.indexOf(x)>-1,Ot=ot.indexOf(x)>-1;!Et&&Ot&&(Ge=cn?Ge.replace("italic ","italic bold "):"bold "+Ge),Et&&!Ot&&(Ge=Ge.replace("bold ",""))}if(se.italics===!0){var cn=tt.indexOf(M)>-1,Cn=ot.indexOf(M)>-1;!cn&&Cn&&(Ge="italic "+Ge),cn&&!Cn&&(Ge=Ge.replace("italic ",""))}Y.font=Ge}for(ve=0;ve",K="",re=Z.length,q=K.length,Y=U[0]===P||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(Z,ee))!==-1&&(me=X.indexOf(K,ee+re))!==-1&&!(me<=ee);){for(var pe=ee;pe=me)te[pe]=null,X=X.substr(0,pe)+" "+X.substr(pe+1);else if(te[pe]!==null){var se=te[pe].indexOf(U[0]);se===-1?te[pe]+=U:Y&&(te[pe]=te[pe].substr(0,se+1)+(1+parseInt(te[pe][se+1]))+te[pe].substr(se+2))}var ae=ee+re,ce=X.substr(ae,me-ae).indexOf(Z);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=c(j,128);return U?p(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var Z=z(j,te),K=function(ve,_e,we){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ve.length,Qe=0;Qe"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var m=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var c=new a,h=Object.freeze({});if(c.set(h,1),c.get(h)===1)return void(y.exports=WeakMap);m=!0}}var p=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,O="weakmap:",C=O+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),C=O+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return p($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,P=0,A=function(){this instanceof A||z();var $=[],Q=[],j=P++;return Object.create(A.prototype,{get___:{value:I(function(U,X){var te,Z=k(U);return Z?j in Z?Z[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,Z=k(U);return Z?Z[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,Z=k(U);return Z?j in Z&&delete Z[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};A.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof A||z();var Q,j=new a,U=void 0,X=!1;return Q=m?function(te,Z){return j.set(te,Z),j.has(te)||(U||(U=new A),U.set(te,Z)),this}:function(te,Z){if(X)try{j.set(te,Z)}catch{U||(U=new A),U.set___(te,Z)}else j.set(te,Z);return this},Object.create(A.prototype,{get___:{value:I(function(te,Z){return U?j.has(te)?j.get(te):U.get___(te,Z):j.get(te,Z)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var Z=!!j.delete(te);return U&&U.delete___(te)||Z})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}m&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=A.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=A)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==O&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[C];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,C,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,m,a){var c=a(7178);y.exports=function(){var h={};return function(p){if((typeof p!="object"||p===null)&&typeof p!="function")throw new Error("Weakmap-shim: Key must be object");var v=p.valueOf(h);return v&&v.identity===h?v:c(p,h)}}},7178:function(y){y.exports=function(m,a){var c={identity:a},h=m.valueOf;return Object.defineProperty(m,"valueOf",{value:function(p){return p!==a?h.apply(this,arguments):c},writable:!0}),c}},4037:function(y,m,a){var c=a(9222);y.exports=function(){var h=c();return{get:function(p,v){var _=h(p);return _.hasOwnProperty("value")?_.value:v},set:function(p,v){return h(p).value=v,this},has:function(p){return"value"in h(p)},delete:function(p){return delete h(p).value}}}},6183:function(y){y.exports=function(m){var a={};return function(c,h,p){var v=c.dtype,_=c.order,O=[v,_.join()].join(),C=a[O];return C||(a[O]=C=m([v,_])),C(c.shape.slice(0),c.data,c.stride,0|c.offset,h,p)}}((function(){return function(m,a,c,h,p,v){var _=m[0],O=c[0],C=[0],x=O;h|=0;var R=0,M=O;for(R=0;R<_;++R){var T=a[h]-v,P=a[h+x]-v;T>=0!=P>=0&&p.push(C[0]+.5+.5*(T+P)/(T-P)),h+=M,++C[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,m,a){y.exports=function(h,p){var v=[];return p=+p||0,c(h.hi(h.shape[0]-1),v,p),v};var c=a(6183)},6601:function(){}},S={};function w(y){var m=S[y];if(m!==void 0)return m.exports;var a=S[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=u()},33576:function(d,s,n){function u(Oe,ke){for(var Re=0;Rec)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,p.prototype),ke}function p(Oe,ke,Re){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Oe)}return v(Oe,ke,Re)}function v(Oe,ke,Re){if(typeof Oe=="string")return function(Ze,Ye){if(typeof Ye=="string"&&Ye!==""||(Ye="utf8"),!p.isEncoding(Ye))throw new TypeError("Unknown encoding: "+Ye);var Je=0|M(Ze,Ye),Me=h(Je),Fe=Me.write(Ze,Ye);return Fe!==Je&&(Me=Me.slice(0,Fe)),Me}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Ye=new Uint8Array(Ze);return x(Ye.buffer,Ye.byteOffset,Ye.byteLength)}return C(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Re);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return p.from(We,ke,Re);var Ue=function(Ze){if(p.isBuffer(Ze)){var Ye=0|R(Ze.length),Je=h(Ye);return Je.length===0||Ze.copy(Je,0,0,Ye),Je}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):C(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?C(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return p.from(Oe[Symbol.toPrimitive]("string"),ke,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function O(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function C(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Re=h(ke),We=0;We=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(p.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Re=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Re===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Re;case"hex":return Re>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Re){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Z(this,ke,Re);case"utf8":case"utf-8":return j(this,ke,Re);case"ascii":return X(this,ke,Re);case"latin1":case"binary":return te(this,ke,Re);case"base64":return Q(this,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Re);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function P(Oe,ke,Re){var We=Oe[ke];Oe[ke]=Oe[Re],Oe[Re]=We}function A(Oe,ke,Re,We,Ue){if(Oe.length===0)return-1;if(typeof Re=="string"?(We=Re,Re=0):Re>2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),De(Re=+Re)&&(Re=Ue?0:Oe.length-1),Re<0&&(Re=Oe.length+Re),Re>=Oe.length){if(Ue)return-1;Re=Oe.length-1}else if(Re<0){if(!Ue)return-1;Re=0}if(typeof ke=="string"&&(ke=p.from(ke,We)),p.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Re,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Re):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Re):L(Oe,[ke],Re,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Re,We,Ue){var Ze,Ye=1,Je=Oe.length,Me=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Ye=2,Je/=2,Me/=2,Re/=2}function Fe(Ge,ht){return Ye===1?Ge[ht]:Ge.readUInt16BE(ht*Ye)}if(Ue){var je=-1;for(Ze=Re;ZeJe&&(Re=Je-Me),Ze=Re;Ze>=0;Ze--){for(var tt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Ye=ke.length;for(We>Ye/2&&(We=Ye/2),Ze=0;Ze>8,Me=Ye%256,Fe.push(Me),Fe.push(Je);return Fe}(ke,Oe.length-Re),Oe,Re,We)}function Q(Oe,ke,Re){return ke===0&&Re===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Re))}function j(Oe,ke,Re){Re=Math.min(Oe.length,Re);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+Je<=Re){var Me=void 0,Fe=void 0,je=void 0,tt=void 0;switch(Je){case 1:Ze<128&&(Ye=Ze);break;case 2:(192&(Me=Oe[Ue+1]))==128&&(tt=(31&Ze)<<6|63&Me)>127&&(Ye=tt);break;case 3:Me=Oe[Ue+1],Fe=Oe[Ue+2],(192&Me)==128&&(192&Fe)==128&&(tt=(15&Ze)<<12|(63&Me)<<6|63&Fe)>2047&&(tt<55296||tt>57343)&&(Ye=tt);break;case 4:Me=Oe[Ue+1],Fe=Oe[Ue+2],je=Oe[Ue+3],(192&Me)==128&&(192&Fe)==128&&(192&je)==128&&(tt=(15&Ze)<<18|(63&Me)<<12|(63&Fe)<<6|63&je)>65535&&tt<1114112&&(Ye=tt)}}Ye===null?(Ye=65533,Je=1):Ye>65535&&(Ye-=65536,We.push(Ye>>>10&1023|55296),Ye=56320|1023&Ye),We.push(Ye),Ue+=Je}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(Oe,ke,Re){return v(Oe,ke,Re)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(Oe,ke,Re){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Re)},p.allocUnsafe=function(Oe){return O(Oe)},p.allocUnsafeSlow=function(Oe){return O(Oe)},p.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==p.prototype},p.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=p.from(ke,ke.offset,ke.byteLength)),!p.isBuffer(Oe)||!p.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Re=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Re,We);UeWe.length?(p.isBuffer(Ze)||(Ze=p.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!p.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},p.byteLength=M,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(p.prototype[a]=p.prototype.inspect),p.prototype.compare=function(Oe,ke,Re,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),!p.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Re===void 0&&(Re=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Re>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Re)return 0;if(We>=Ue)return-1;if(ke>=Re)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Ye=(Re>>>=0)-(ke>>>=0),Je=Math.min(Ze,Ye),Me=this.slice(We,Ue),Fe=Oe.slice(ke,Re),je=0;je>>=0,isFinite(Re)?(Re>>>=0,We===void 0&&(We="utf8")):(We=Re,Re=void 0)}var Ue=this.length-ke;if((Re===void 0||Re>Ue)&&(Re=Ue),Oe.length>0&&(Re<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Re);case"utf8":case"utf-8":return k(this,Oe,ke,Re);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Re);case"base64":return z(this,Oe,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Re);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Re){var We="";Re=Math.min(Oe.length,Re);for(var Ue=ke;UeWe)&&(Re=We);for(var Ue="",Ze=ke;ZeRe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Re,We,Ue,Ze){if(!p.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Re}function ee(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re+7]=Ze,Ze>>=8,Oe[Re+6]=Ze,Ze>>=8,Oe[Re+5]=Ze,Ze>>=8,Oe[Re+4]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re+3]=Ye,Ye>>=8,Oe[Re+2]=Ye,Ye>>=8,Oe[Re+1]=Ye,Ye>>=8,Oe[Re]=Ye,Re+8}function me(Oe,ke,Re,We,Ue,Ze){if(Re+We>Oe.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function pe(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,4),m.write(Oe,ke,Re,We,23,4),Re+4}function se(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,8),m.write(Oe,ke,Re,We,52,8),Re+8}p.prototype.slice=function(Oe,ke){var Re=this.length;(Oe=~~Oe)<0?(Oe+=Re)<0&&(Oe=0):Oe>Re&&(Oe=Re),(ke=ke===void 0?Re:~~ke)<0?(ke+=Re)<0&&(ke=0):ke>Re&&(ke=Re),ke>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},p.prototype.readUint8=p.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),this[Oe]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},p.prototype.readBigUInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Re*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Re;return(BigInt(We)<>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},p.prototype.readIntBE=function(Oe,ke,Re){Oe>>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},p.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},p.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe]|this[Oe+1]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe+1]|this[Oe]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},p.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},p.prototype.readBigInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Re<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!0,23,4)},p.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!1,23,4)},p.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!0,52,8)},p.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Oe,ke,Re,We){Oe=+Oe,ke>>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=Re-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Re},p.prototype.writeUint8=p.prototype.writeUInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=0,Ye=1,Je=0;for(this[ke]=255&Oe;++Ze>0)-Je&255;return ke+Re},p.prototype.writeIntBE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=Re-1,Ye=1,Je=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Ye*=256);)Oe<0&&Je===0&&this[ke+Ze+1]!==0&&(Je=1),this[ke+Ze]=(Oe/Ye>>0)-Je&255;return ke+Re},p.prototype.writeInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},p.prototype.writeInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},p.prototype.writeInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(Oe,ke,Re){return pe(this,Oe,ke,!0,Re)},p.prototype.writeFloatBE=function(Oe,ke,Re){return pe(this,Oe,ke,!1,Re)},p.prototype.writeDoubleLE=function(Oe,ke,Re){return se(this,Oe,ke,!0,Re)},p.prototype.writeDoubleBE=function(Oe,ke,Re){return se(this,Oe,ke,!1,Re)},p.prototype.copy=function(Oe,ke,Re,We){if(!p.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Re=Re===void 0?this.length:Re>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Fe,je||[],b(Me).constructor):Fe.apply(Me,je))}(this,Ue),Object.defineProperty(i(Je),"message",{value:ke.apply(i(Je),arguments),writable:!0,configurable:!0}),Je.name="".concat(Je.name," [").concat(Oe,"]"),Je.stack,delete Je.name,Je}var Ze,Ye;return function(Je,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");Je.prototype=Object.create(Me&&Me.prototype,{constructor:{value:Je,writable:!0,configurable:!0}}),Object.defineProperty(Je,"prototype",{writable:!1}),Me&&S(Je,Me)}(Ue,We),Ze=Ue,(Ye=[{key:"code",get:function(){return Oe},set:function(Je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Je,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&u(Ze.prototype,Ye),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Re)}function de(Oe){for(var ke="",Re=Oe.length,We=Oe[0]==="-"?1:0;Re>=We+4;Re-=3)ke="_".concat(Oe.slice(Re-3,Re)).concat(ke);return"".concat(Oe.slice(0,Re)).concat(ke)}function ye(Oe,ke,Re,We,Ue,Ze){if(Oe>Re||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(Je," and < 2").concat(Je," ** ").concat(8*(Ze+1)).concat(Je):">= -(2".concat(Je," ** ").concat(8*(Ze+1)-1).concat(Je,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(Je):">= ".concat(ke).concat(Je," and <= ").concat(Re).concat(Je),new ae.ERR_OUT_OF_RANGE("value",Ye,Oe)}(function(Me,Fe,je){ve(Fe,"offset"),Me[Fe]!==void 0&&Me[Fe+je]!==void 0||_e(Fe,Me.length-(je+1))})(We,Ue,Ze)}function ve(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Re){throw Math.floor(Oe)!==Oe?(ve(Oe,Re),new ae.ERR_OUT_OF_RANGE(Re||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Re||"offset",">= ".concat(Re?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Re){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Re;return Number.isInteger(Re)&&Math.abs(Re)>Math.pow(2,32)?Ue=de(String(Re)):typeof Re=="bigint"&&(Ue=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var we=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Re;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Ye=0;Ye55295&&Re<57344){if(!Ue){if(Re>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Ye+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Re;continue}if(Re<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Re;continue}Re=65536+(Ue-55296<<10|Re-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Re<128){if((ke-=1)<0)break;Ze.push(Re)}else if(Re<2048){if((ke-=2)<0)break;Ze.push(Re>>6|192,63&Re|128)}else if(Re<65536){if((ke-=3)<0)break;Ze.push(Re>>12|224,Re>>6&63|128,63&Re|128)}else{if(!(Re<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,63&Re|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(we,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Re,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Re]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var Qe=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Re=0;Re<16;++Re)for(var We=16*Re,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Re]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var s=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,u=/android|ipad|playbook|silk/i;function b(i){i||(i={});var S=i.ua;if(S||typeof navigator>"u"||(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),typeof S!="string")return!1;var w=s.test(S)&&!n.test(S)||!!i.tablet&&u.test(S);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&S.indexOf("Macintosh")!==-1&&S.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,s,n){n.r(s),n.d(s,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return c},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var u=n(84706),b=n(34712),i=n(10132),S=n(6688),w=n.n(S);function y(Ie){return Ie.target.depth}function m(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function c(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,u.SY)(Ie.sourceLinks,y)-1:0}function p(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return C(Ie.source,ze.source)||Ie.index-ze.index}function O(Ie,ze){return C(Ie.target,ze.target)||Ie.index-ze.index}function C(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function P(Ie){return Ie.index}function A(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,Qe=0,Ve=1,$e=1,Oe=24,ke=P,Re=c,We=A,Ue=L,Ze=32,Ye=2,Je=null;function Me(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var St=ht.source,Ft=ht.target;(St===void 0?"undefined":v(St))!=="object"&&(St=ht.source=D(Ge,St)),(Ft===void 0?"undefined":v(Ft))!=="object"&&(Ft=ht.target=D(Ge,Ft)),St.sourceLinks.push(ht),Ft.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var St=[],Ft=0;Ft0?Pn+I+z:Pn,bottom:Sn=Sn>0?Sn+I+z:Sn,left:xt=xt>0?xt+I+z:xt,right:vt=vt>0?vt+I+z:vt}}(ot),cn=function(Cn,Pn){var Sn=(0,u.kv)(Cn.nodes,function(Vt){return Vt.column}),vt=Ve-De,xt=$e-Qe,st=vt/(vt+Pn.right+Pn.left),bt=xt/(xt+Pn.top+Pn.bottom);return De=De*st+Pn.left,Ve=Pn.right==0?Ve:Ve*st,Qe=Qe*bt+Pn.top,$e*=bt,Cn.nodes.forEach(function(Vt){Vt.x0=De+Vt.column*((Ve-De-Oe)/Sn),Vt.x1=Vt.x0+Oe}),bt}(ot,Ot);Et*=cn,ot.links.forEach(function(Cn){Cn.width=Cn.value*Et}),pt.forEach(function(Cn){var Pn=Cn.length;Cn.forEach(function(Sn,vt){Sn.depth==pt.length-1&&Pn==1||Sn.depth==0&&Pn==1?(Sn.y0=$e/2-Sn.value*Et,Sn.y1=Sn.y0+Sn.value*Et):Sn.partOfCycle?X(Sn,ln)==0?(Sn.y0=$e/2+vt,Sn.y1=Sn.y0+Sn.value*Et):Sn.circularLinkType=="top"?(Sn.y0=Qe+vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=$e-Sn.value*Et-vt,Sn.y1=Sn.y0+Sn.value*Et):Ot.top==0||Ot.bottom==0?(Sn.y0=($e-Qe)/Pn*vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=($e-Qe)/2-Pn/2+vt,Sn.y1=Sn.y0+Sn.value*Et)})})})(ht),Yt();for(var St=1,Ft=Ge;Ft>0;--Ft)zt(St*=.99,ht),Yt();function zt(ln,tn){var Et=pt.length;pt.forEach(function(Ot){var cn=Ot.length,Cn=Ot[0].depth;Ot.forEach(function(Pn){var Sn;if((Pn.sourceLinks.length||Pn.targetLinks.length)&&!(Pn.partOfCycle&&X(Pn,tn)>0))if(Cn==0&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else if(Cn==Et-1&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else{var vt=(0,u.mo)(Pn.sourceLinks,T),xt=(0,u.mo)(Pn.targetLinks,M),st=((vt&&xt?(vt+xt)/2:vt||xt)-R(Pn))*ln;Pn.y0+=st,Pn.y1+=st}})})}function Yt(){pt.forEach(function(ln){var tn,Et,Ot,cn=Qe,Cn=ln.length;for(ln.sort(C),Ot=0;Ot0&&(tn.y0+=Et,tn.y1+=Et),cn=tn.y1+Ie;if((Et=cn-Ie-$e)>0)for(cn=tn.y0-=Et,tn.y1-=Et,Ot=Cn-2;Ot>=0;--Ot)(Et=(tn=ln[Ot]).y1+Ie-cn)>0&&(tn.y0-=Et,tn.y1-=Et),cn=tn.y0})}}(je,Ze,ke),Fe(je);for(var tt=0;tt<4;tt++)ve(je,$e,ke),_e(je,0,ke),de(je,Qe,$e,ke),ve(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,St=ot.links,Ft=!1,zt=!1;if(St.forEach(function(tn){tn.circularLinkType=="top"?Ft=!0:tn.circularLinkType=="bottom"&&(zt=!0)}),Ft==0||zt==0){var Yt=(0,u.SY)(pt,function(tn){return tn.y0}),ln=(ht-Ge)/((0,u.kv)(pt,function(tn){return tn.y1})-Yt);pt.forEach(function(tn){var Et=(tn.y1-tn.y0)*ln;tn.y0=(tn.y0-Yt)*ln,tn.y1=tn.y0+Et}),St.forEach(function(tn){tn.y0=(tn.y0-Yt)*ln,tn.y1=(tn.y1-Yt)*ln,tn.width=tn.width*ln})}}(je,Qe,$e),K(je,Ye,$e,ke),je}function Fe(je){je.nodes.forEach(function(tt){tt.sourceLinks.sort(O),tt.targetLinks.sort(_)}),je.nodes.forEach(function(tt){var ot=tt.y0,Ge=ot,ht=tt.y1,pt=ht;tt.sourceLinks.forEach(function(St){St.circular?(St.y0=ht-St.width/2,ht-=St.width):(St.y0=ot+St.width/2,ot+=St.width)}),tt.targetLinks.forEach(function(St){St.circular?(St.y1=pt-St.width/2,pt-=St.width):(St.y1=Ge+St.width/2,Ge+=St.width)})})}return Me.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:p(je),Me):ke},Me.nodeAlign=function(je){return arguments.length?(Re=typeof je=="function"?je:p(je),Me):Re},Me.nodeWidth=function(je){return arguments.length?(Oe=+je,Me):Oe},Me.nodePadding=function(je){return arguments.length?(Ie=+je,Me):Ie},Me.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:p(je),Me):We},Me.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:p(je),Me):Ue},Me.size=function(je){return arguments.length?(De=Qe=0,Ve=+je[0],$e=+je[1],Me):[Ve-De,$e-Qe]},Me.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],Qe=+je[0][1],$e=+je[1][1],Me):[[De,Qe],[Ve,$e]]},Me.iterations=function(je){return arguments.length?(Ze=+je,Me):Ze},Me.circularLinkGap=function(je){return arguments.length?(Ye=+je,Me):Ye},Me.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Me):ze},Me.sortNodes=function(je){return arguments.length?(Je=je,Me):Je},Me.update=function(je){return j(je,ke),Fe(je),je.links.forEach(function(tt){tt.circular&&(tt.circularLinkType=tt.y0+tt.y1<$e?"top":"bottom",tt.source.circularLinkType=tt.circularLinkType,tt.target.circularLinkType=tt.circularLinkType)}),ve(je,$e,ke,!1),_e(je,0,ke),K(je,Ye,$e,ke),je},Me}function j(Ie,ze){var De=0,Qe=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function Z(Ie,ze,De){return Ie.sort(re),Ie.forEach(function(Qe,Ve){var $e,Oe,ke=0;if(Pe(Qe,De)&&te(Qe))Qe.circularPathData.verticalBuffer=ke+Qe.width/2;else{for(var Re=0;ReOe.source.column)){var We=Ie[Re].circularPathData.verticalBuffer+Ie[Re].width/2+ze;ke=We>ke?We:ke}Qe.circularPathData.verticalBuffer=ke+Qe.width/2}}),Ie}function K(Ie,ze,De,Qe){var Ve=(0,u.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),Z(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,Qe),Z(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,Qe),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,Qe)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Re=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Re.sort(Y):Re.sort(q);var We=0;Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),Oe=$e.target.column,Re=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Re.sort(me):Re.sort(ee),We=0,Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function re(Ie,ze){return pe(Ie)==pe(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):pe(ze)-pe(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function pe(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+Qe:Ie.y1-Qe}function ce(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-Qe:Ie.y1+Qe}function de(Ie,ze,De,Qe){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Re=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Re+1),Ye=Math.pow(1-Ze,3),Je=3*Ze*Math.pow(1-Ze,2),Me=3*Math.pow(Ze,2)*(1-Ze),Fe=Math.pow(Ze,3),je=Ye*Ve.y0+Je*Ve.y0+Me*Ve.y1+Fe*Ve.y1,tt=je-Ve.width/2,ot=je+Ve.width/2;tt>We.y0&&ttpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ye(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ye(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,Qe)!=k(We,Qe)&&Ge.column==We.column&&Ge.y0We.y1&&ye(Ge,Ue,ze,De)}))}})}})}function ye(Ie,ze,De,Qe){return Ie.y0+ze>=De&&Ie.y1+ze<=Qe&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ve(Ie,ze,De,Qe){Ie.nodes.forEach(function(Ve){Qe&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Re){return k(Re.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Re,We){if(!Re.circular&&!We.circular){if(Re.target.column==We.target.column||!we(Re,We))return Re.y1-We.y1;if(Re.target.column>We.target.column){var Ue=ce(We,Re);return Re.y1-Ue}if(We.target.column>Re.target.column)return ce(Re,We)-We.y1}return Re.circular&&!We.circular?Re.circularLinkType=="top"?-1:1:We.circular&&!Re.circular?We.circularLinkType=="top"?1:-1:Re.circular&&We.circular?Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="top"?Re.target.column===We.target.column?Re.target.y1-We.target.y1:We.target.column-Re.target.column:Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="bottom"?Re.target.column===We.target.column?We.target.y1-Re.target.y1:Re.target.column-We.target.column:Re.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Re){Re.y0=ke+Re.width/2,ke+=Re.width}),$e.forEach(function(Re,We){if(Re.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Re){if(!ke.circular&&!Re.circular){if(ke.source.column==Re.source.column||!we(ke,Re))return ke.y0-Re.y0;if(Re.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,s,n){n.r(s),n.d(s,{sankey:function(){return P},sankeyCenter:function(){return m},sankeyJustify:function(){return y},sankeyLeft:function(){return S},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var u=n(84706),b=n(34712);function i(I){return I.target.depth}function S(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function m(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,u.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function c(I,z){return p(I.source,z.source)||I.index-z.index}function h(I,z){return p(I.target,z.target)||I.index-z.index}function p(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function O(I){return _(I.source)*I.value}function C(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function P(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,Z=R,K=M,re=32;function q(){var ee={nodes:Z.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var pe=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(pe,ce)),typeof de!="object"&&(de=se.target=T(pe,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(pe){pe.value=Math.max((0,u.oh)(pe.sourceLinks,v),(0,u.oh)(pe.targetLinks,v))})}(ee),function(me){var pe,se,ae;for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ye){se.indexOf(ye.target)<0&&se.push(ye.target)})});for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ye){se.indexOf(ye.source)<0&&se.push(ye.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var pe=(0,b.UJ)().key(function(ve){return ve.x0}).sortKeys(u.XE).entries(me.nodes).map(function(ve){return ve.values});(function(){var ve=(0,u.kv)(pe,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ve-1);U>_e&&(U=_e);var we=(0,u.SY)(pe,function(Te){return(Q-z-(Te.length-1)*U)/(0,u.oh)(Te,v)});pe.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*we})}),me.links.forEach(function(Te){Te.width=Te.value*we})})(),ye();for(var se=1,ae=re;ae>0;--ae)de(se*=.99),ye(),ce(se),ye();function ce(ve){pe.forEach(function(_e){_e.forEach(function(we){if(we.targetLinks.length){var Te=((0,u.oh)(we.targetLinks,O)/(0,u.oh)(we.targetLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function de(ve){pe.slice().reverse().forEach(function(_e){_e.forEach(function(we){if(we.sourceLinks.length){var Te=((0,u.oh)(we.sourceLinks,C)/(0,u.oh)(we.sourceLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function ye(){pe.forEach(function(ve){var _e,we,Te,Pe=z,Ie=ve.length;for(ve.sort(p),Te=0;Te0&&(_e.y0+=we,_e.y1+=we),Pe=_e.y1+U;if((we=Pe-U-Q)>0)for(Pe=_e.y0-=we,_e.y1-=we,Te=Ie-2;Te>=0;--Te)(we=(_e=ve[Te]).y1+U-Pe)>0&&(_e.y0-=we,_e.y1-=we),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(c)}),ee.nodes.forEach(function(me){var pe=me.y0,se=pe;me.sourceLinks.forEach(function(ae){ae.y0=pe+ae.width/2,pe+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(Z=typeof ee=="function"?ee:a(ee),q):Z},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(re=+ee,q):re},q}var A=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,A.ak)().source(L).target(D)}},33428:function(d,s,n){var u,b;(function(){var i={version:"3.8.0"},S=[].slice,w=function(V){return S.call(V)},y=self.document;function m(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=ie[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var c=this.Element.prototype,h=c.setAttribute,p=c.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;c.setAttribute=function(ie,ge){h.call(this,ie,ge+"")},c.setAttributeNS=function(ie,ge,xe){p.call(this,ie,ge,xe+"")},v.setProperty=function(ie,ge,xe){_.call(this,ie,ge+"",xe)}}function O(V,ie){return Vie?1:V>=ie?0:NaN}function C(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)<0?xe=Ne+1:Ee=Ne}return xe},right:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)>0?Ee=Ne:xe=Ne+1}return xe}}}i.ascending=O,i.descending=function(V,ie){return ieV?1:ie>=V?0:NaN},i.min=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}return ge},i.max=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}return ge},i.extent=function(V,ie){var ge,xe,Ee,Ne=-1,et=V.length;if(arguments.length===1){for(;++Ne=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee1)return et/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(O);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ie,ge){return O(V(ie),ge)}:V)},i.shuffle=function(V,ie,ge){(Ne=arguments.length)<3&&(ge=V.length,Ne<2&&(ie=0));for(var xe,Ee,Ne=ge-ie;Ne;)Ee=Math.random()*Ne--|0,xe=V[Ne+ie],V[Ne+ie]=V[Ee+ie],V[Ee+ie]=xe;return V},i.permute=function(V,ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=V[ie[ge]];return xe},i.pairs=function(V){for(var ie=0,ge=V.length-1,xe=V[0],Ee=new Array(ge<0?0:ge);ie=0;)for(ie=(xe=V[Ee]).length;--ie>=0;)ge[--et]=xe[ie];return ge};var P=Math.abs;function A(V,ie){for(var ge in ie)Object.defineProperty(V.prototype,ge,{value:ie[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ie,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ie=V,V=0)),(ie-V)/ge==1/0)throw new Error("infinite range");var xe,Ee=[],Ne=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(P(ge)),et=-1;if(V*=Ne,ie*=Ne,(ge*=Ne)<0)for(;(xe=V+ge*++et)>ie;)Ee.push(xe/Ne);else for(;(xe=V+ge*++et)=xe.length)return ie?ie.call(ge,dt):V?dt.sort(V):dt;for(var Rt,Mt,Xt,dn,bn=-1,vn=dt.length,Ln=xe[gt++],gn=new L;++bn=xe.length)return rt;var gt=[],Rt=Ee[dt++];return rt.forEach(function(Mt,Xt){gt.push({key:Mt,values:et(Xt,dt)})}),Rt?gt.sort(function(Mt,Xt){return Rt(Mt.key,Xt.key)}):gt}return ge.map=function(rt,dt){return Ne(dt,rt,0)},ge.entries=function(rt){return et(Ne(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Ee[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ie=rt,ge},ge},i.set=function(V){var ie=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ie);if(arguments.length===2){if(ie==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ie){V.__proto__=ie}:function(V,ie){for(var ge in ie)V[ge]=ie[ge]};function ye(V){return de(V,Te),V}var ve=function(V,ie){return ie.querySelector(V)},_e=function(V,ie){return ie.querySelectorAll(V)},we=function(V,ie){var ge=V.matches||V[re(V,"matchesSelector")];return we=function(xe,Ee){return ge.call(xe,Ee)},we(V,ie)};typeof Sizzle=="function"&&(ve=function(V,ie){return Sizzle(V,ie)[0]||null},_e=Sizzle,we=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ve(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ie,ge,xe,Ee,Ne=[];V=Pe(V);for(var et=-1,rt=this.length;++et=0&&(ge=V.slice(0,ie))!=="xmlns"&&(V=V.slice(ie+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ie in V)this.each(Qe(ie,V[ie]));return this}return this.each(Qe(V,ie))},Te.classed=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Ee=-1;if(ie=ge.classList){for(;++Ee=0;)(ge=xe[Ee])&&(Ne&&Ne!==ge.nextSibling&&Ne.parentNode.insertBefore(ge,Ne),Ne=ge);return this},Te.sort=function(V){V=Fe.apply(this,arguments);for(var ie=-1,ge=this.length;++ie0&&(V=V.slice(0,Ee));var et=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return et&&(V=et,Ne=St),Ee?ie?function(){var dt=Ne(ie,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ie}:rt:ie?Y:function(){var dt,gt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Rt in this)if(dt=Rt.match(gt)){var Mt=this[Rt];this.removeEventListener(dt[1],Mt,Mt.$),delete this[Rt]}}}i.selection.enter=tt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ie,ge,xe,Ee,Ne,et=[],rt=-1,dt=this.length;++rt=xe&&(xe=et+1);!(dt=gt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function Vt(V){return((V=Math.exp(V))+1/V)/2}var Dt=Math.SQRT2;i.interpolateZoom=function(V,ie){var ge,xe,Ee=V[0],Ne=V[1],et=V[2],rt=ie[0],dt=ie[1],gt=ie[2],Rt=rt-Ee,Mt=dt-Ne,Xt=Rt*Rt+Mt*Mt;if(Xt0&&(Ho=Ho.transition().duration(Xt)),Ho.call(pn.event)}function ro(){et&&et.domain(Ne.range().map(function(Ho){return(Ho-gt.x)/gt.k}).map(Ne.invert)),dt&&dt.domain(rt.range().map(function(Ho){return(Ho-gt.y)/gt.k}).map(rt.invert))}function po(Ho){dn++||Ho({type:"zoomstart"})}function Wo(Ho){ro(),Ho({type:"zoom",scale:gt.k,translate:[gt.x,gt.y]})}function si(Ho){--dn||(Ho({type:"zoomend"}),ie=null)}function Bo(){var Ho=this,jo=Jn.of(Ho,arguments),Yi=0,ai=i.select(a(Ho)).on(vn,function(){Yi=1,Pr(i.mouse(Ho),Hi),Wo(jo)}).on(Ln,function(){ai.on(vn,null).on(Ln,null),Ai(Yi),si(jo)}),Hi=In(i.mouse(Ho)),Ai=Yt(Ho);Pl.call(Ho),po(jo)}function Go(){var Ho,jo=this,Yi=Jn.of(jo,arguments),ai={},Hi=0,Ai=".zoom-"+i.event.changedTouches[0].identifier,Ja="touchmove"+Ai,Ar="touchend"+Ai,ns=[],$s=i.select(jo),Ts=Yt(jo);function rl(){var mt=i.touches(jo);return Ho=gt.k,mt.forEach(function(Tt){Tt.identifier in ai&&(ai[Tt.identifier]=In(Tt))}),mt}function Hs(){var mt=i.event.target;i.select(mt).on(Ja,ys).on(Ar,Yu),ns.push(mt);for(var Tt=i.event.changedTouches,xn=0,Nn=Tt.length;xn1){No=yr[0];var ui=yr[1],ga=No[0]-ui[0],Sa=No[1]-ui[1];Hi=ga*ga+Sa*Sa}}function ys(){var mt,Tt,xn,Nn,yr=i.touches(jo);Pl.call(jo);for(var so=0,No=yr.length;so360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Ee-xe)*rt/60:rt<180?Ee:rt<240?xe+(Ee-xe)*(240-rt)/60:xe}(et))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ie=isNaN(ie)||ie<0?0:ie>1?1:ie,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Ee=ge<=.5?ge*(1+ie):ge+ie-ge*ie),new $r(Ne(V+120),Ne(V),Ne(V-120))}function Zt(V,ie,ge){return this instanceof Zt?(this.h=+V,this.c=+ie,void(this.l=+ge)):arguments.length<2?V instanceof Zt?new Zt(V.h,V.c,V.l):function(xe,Ee,Ne){return xe>0?new Zt(Math.atan2(Ne,Ee)*st,Math.sqrt(Ee*Ee+Ne*Ne),xe):new Zt(NaN,NaN,xe)}(V instanceof rn?V.l:(V=Vr((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Zt(V,ie,ge)}en.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,this.l/V)},en.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,V*this.l)},en.rgb=function(){return Jt(this.h,this.s,this.l)},i.hcl=Zt;var Nt=Zt.prototype=new _t;function sn(V,ie,ge){return isNaN(V)&&(V=0),isNaN(ie)&&(ie=0),new rn(ge,Math.cos(V*=xt)*ie,Math.sin(V)*ie)}function rn(V,ie,ge){return this instanceof rn?(this.l=+V,this.a=+ie,void(this.b=+ge)):arguments.length<2?V instanceof rn?new rn(V.l,V.a,V.b):V instanceof Zt?sn(V.h,V.c,V.l):Vr((V=$r(V)).r,V.g,V.b):new rn(V,ie,ge)}Nt.brighter=function(V){return new Zt(this.h,this.c,Math.min(100,this.l+_n*(arguments.length?V:1)))},Nt.darker=function(V){return new Zt(this.h,this.c,Math.max(0,this.l-_n*(arguments.length?V:1)))},Nt.rgb=function(){return sn(this.h,this.c,this.l).rgb()},i.lab=rn;var _n=18,wn=.95047,An=1,Kn=1.08883,fr=rn.prototype=new _t;function Un(V,ie,ge){var xe=(V+16)/116,Ee=xe+ie/500,Ne=xe-ge/200;return new $r(Br(3.2404542*(Ee=Zn(Ee)*wn)-1.5371385*(xe=Zn(xe)*An)-.4985314*(Ne=Zn(Ne)*Kn)),Br(-.969266*Ee+1.8760108*xe+.041556*Ne),Br(.0556434*Ee-.2040259*xe+1.0572252*Ne))}function Zn(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function tr(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function Br(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function $r(V,ie,ge){return this instanceof $r?(this.r=~~V,this.g=~~ie,void(this.b=~~ge)):arguments.length<2?V instanceof $r?new $r(V.r,V.g,V.b):lr(""+V,$r,Jt):new $r(V,ie,ge)}function vr(V){return new $r(V>>16,V>>8&255,255&V)}function qn(V){return vr(V)+""}fr.brighter=function(V){return new rn(Math.min(100,this.l+_n*(arguments.length?V:1)),this.a,this.b)},fr.darker=function(V){return new rn(Math.max(0,this.l-_n*(arguments.length?V:1)),this.a,this.b)},fr.rgb=function(){return Un(this.l,this.a,this.b)},i.rgb=$r;var gr=$r.prototype=new _t;function sr(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function lr(V,ie,ge){var xe,Ee,Ne,et=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Ee=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Ee[0]),parseFloat(Ee[1])/100,parseFloat(Ee[2])/100);case"rgb":return ie(Jr(Ee[0]),Jr(Ee[1]),Jr(Ee[2]))}return(Ne=Yr.get(V))?ie(Ne.r,Ne.g,Ne.b):(V==null||V.charAt(0)!=="#"||isNaN(Ne=parseInt(V.slice(1),16))||(V.length===4?(et=(3840&Ne)>>4,et|=et>>4,rt=240&Ne,rt|=rt>>4,dt=15&Ne,dt|=dt<<4):V.length===7&&(et=(16711680&Ne)>>16,rt=(65280&Ne)>>8,dt=255&Ne)),ie(et,rt,dt))}function zr(V,ie,ge){var xe,Ee,Ne=Math.min(V/=255,ie/=255,ge/=255),et=Math.max(V,ie,ge),rt=et-Ne,dt=(et+Ne)/2;return rt?(Ee=dt<.5?rt/(et+Ne):rt/(2-et-Ne),xe=V==et?(ie-ge)/rt+(ie0&&dt<1?0:xe),new qt(xe,Ee,dt)}function Vr(V,ie,ge){var xe=tr((.4124564*(V=eo(V))+.3575761*(ie=eo(ie))+.1804375*(ge=eo(ge)))/wn),Ee=tr((.2126729*V+.7151522*ie+.072175*ge)/An);return rn(116*Ee-16,500*(xe-Ee),200*(Ee-tr((.0193339*V+.119192*ie+.9503041*ge)/Kn)))}function eo(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Jr(V){var ie=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ie):ie}gr.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ie=this.r,ge=this.g,xe=this.b,Ee=30;return ie||ge||xe?(ie&&ie=200&&Mt<300||Mt===304){try{Rt=ge.call(Ee,rt)}catch(Xt){return void Ne.error.call(Ee,Xt)}Ne.load.call(Ee,Rt)}else Ne.error.call(Ee,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=gt:rt.onreadystatechange=function(){rt.readyState>3&>()},rt.onprogress=function(Rt){var Mt=i.event;i.event=Rt;try{Ne.progress.call(Ee,rt)}finally{i.event=Mt}},Ee.header=function(Rt,Mt){return Rt=(Rt+"").toLowerCase(),arguments.length<2?et[Rt]:(Mt==null?delete et[Rt]:et[Rt]=Mt+"",Ee)},Ee.mimeType=function(Rt){return arguments.length?(ie=Rt==null?null:Rt+"",Ee):ie},Ee.responseType=function(Rt){return arguments.length?(dt=Rt,Ee):dt},Ee.response=function(Rt){return ge=Rt,Ee},["get","post"].forEach(function(Rt){Ee[Rt]=function(){return Ee.send.apply(Ee,[Rt].concat(w(arguments)))}}),Ee.send=function(Rt,Mt,Xt){if(arguments.length===2&&typeof Mt=="function"&&(Xt=Mt,Mt=null),rt.open(Rt,V,!0),ie==null||"accept"in et||(et.accept=ie+",*/*"),rt.setRequestHeader)for(var dn in et)rt.setRequestHeader(dn,et[dn]);return ie!=null&&rt.overrideMimeType&&rt.overrideMimeType(ie),dt!=null&&(rt.responseType=dt),Xt!=null&&Ee.on("error",Xt).on("load",function(bn){Xt(null,bn)}),Ne.beforesend.call(Ee,rt),rt.send(Mt??null),Ee},Ee.abort=function(){return rt.abort(),Ee},i.rebind(Ee,Ne,"on"),xe==null?Ee:Ee.get(function(Rt){return Rt.length===1?function(Mt,Xt){Rt(Mt==null?Xt:null)}:Rt}(xe))}Yr.forEach(function(V,ie){Yr.set(V,vr(ie))}),i.functor=to,i.xhr=co(Z),i.dsv=function(V,ie){var ge=new RegExp('["'+V+` +`;for(we=0,Te=ve*De,Pe=me,Re="",_e=0;_e",K="",re=Z.length,q=K.length,Y=U[0]===P||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(Z,ee))!==-1&&(me=X.indexOf(K,ee+re))!==-1&&!(me<=ee);){for(var pe=ee;pe=me)te[pe]=null,X=X.substr(0,pe)+" "+X.substr(pe+1);else if(te[pe]!==null){var se=te[pe].indexOf(U[0]);se===-1?te[pe]+=U:Y&&(te[pe]=te[pe].substr(0,se+1)+(1+parseInt(te[pe][se+1]))+te[pe].substr(se+2))}var ae=ee+re,ce=X.substr(ae,me-ae).indexOf(Z);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=c(j,128);return U?p(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var Z=z(j,te),K=function(ve,_e,we){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ve.length,Qe=0;Qe"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var m=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var c=new a,h=Object.freeze({});if(c.set(h,1),c.get(h)===1)return void(y.exports=WeakMap);m=!0}}var p=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,O="weakmap:",C=O+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),C=O+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return p($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,P=0,A=function(){this instanceof A||z();var $=[],Q=[],j=P++;return Object.create(A.prototype,{get___:{value:I(function(U,X){var te,Z=k(U);return Z?j in Z?Z[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,Z=k(U);return Z?Z[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,Z=k(U);return Z?j in Z&&delete Z[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};A.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof A||z();var Q,j=new a,U=void 0,X=!1;return Q=m?function(te,Z){return j.set(te,Z),j.has(te)||(U||(U=new A),U.set(te,Z)),this}:function(te,Z){if(X)try{j.set(te,Z)}catch{U||(U=new A),U.set___(te,Z)}else j.set(te,Z);return this},Object.create(A.prototype,{get___:{value:I(function(te,Z){return U?j.has(te)?j.get(te):U.get___(te,Z):j.get(te,Z)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var Z=!!j.delete(te);return U&&U.delete___(te)||Z})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}m&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=A.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=A)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==O&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[C];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,C,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,m,a){var c=a(7178);y.exports=function(){var h={};return function(p){if((typeof p!="object"||p===null)&&typeof p!="function")throw new Error("Weakmap-shim: Key must be object");var v=p.valueOf(h);return v&&v.identity===h?v:c(p,h)}}},7178:function(y){y.exports=function(m,a){var c={identity:a},h=m.valueOf;return Object.defineProperty(m,"valueOf",{value:function(p){return p!==a?h.apply(this,arguments):c},writable:!0}),c}},4037:function(y,m,a){var c=a(9222);y.exports=function(){var h=c();return{get:function(p,v){var _=h(p);return _.hasOwnProperty("value")?_.value:v},set:function(p,v){return h(p).value=v,this},has:function(p){return"value"in h(p)},delete:function(p){return delete h(p).value}}}},6183:function(y){y.exports=function(m){var a={};return function(c,h,p){var v=c.dtype,_=c.order,O=[v,_.join()].join(),C=a[O];return C||(a[O]=C=m([v,_])),C(c.shape.slice(0),c.data,c.stride,0|c.offset,h,p)}}((function(){return function(m,a,c,h,p,v){var _=m[0],O=c[0],C=[0],x=O;h|=0;var R=0,M=O;for(R=0;R<_;++R){var T=a[h]-v,P=a[h+x]-v;T>=0!=P>=0&&p.push(C[0]+.5+.5*(T+P)/(T-P)),h+=M,++C[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,m,a){y.exports=function(h,p){var v=[];return p=+p||0,c(h.hi(h.shape[0]-1),v,p),v};var c=a(6183)},6601:function(){}},S={};function w(y){var m=S[y];if(m!==void 0)return m.exports;var a=S[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=u()},33576:function(d,s,n){function u(Oe,ke){for(var Re=0;Rec)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,p.prototype),ke}function p(Oe,ke,Re){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Oe)}return v(Oe,ke,Re)}function v(Oe,ke,Re){if(typeof Oe=="string")return function(Ze,Ye){if(typeof Ye=="string"&&Ye!==""||(Ye="utf8"),!p.isEncoding(Ye))throw new TypeError("Unknown encoding: "+Ye);var Je=0|M(Ze,Ye),Me=h(Je),Fe=Me.write(Ze,Ye);return Fe!==Je&&(Me=Me.slice(0,Fe)),Me}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Ye=new Uint8Array(Ze);return x(Ye.buffer,Ye.byteOffset,Ye.byteLength)}return C(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Re);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return p.from(We,ke,Re);var Ue=function(Ze){if(p.isBuffer(Ze)){var Ye=0|R(Ze.length),Je=h(Ye);return Je.length===0||Ze.copy(Je,0,0,Ye),Je}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):C(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?C(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return p.from(Oe[Symbol.toPrimitive]("string"),ke,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function O(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function C(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Re=h(ke),We=0;We=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(p.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Re=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Re===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Re;case"hex":return Re>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Re){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Z(this,ke,Re);case"utf8":case"utf-8":return j(this,ke,Re);case"ascii":return X(this,ke,Re);case"latin1":case"binary":return te(this,ke,Re);case"base64":return Q(this,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Re);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function P(Oe,ke,Re){var We=Oe[ke];Oe[ke]=Oe[Re],Oe[Re]=We}function A(Oe,ke,Re,We,Ue){if(Oe.length===0)return-1;if(typeof Re=="string"?(We=Re,Re=0):Re>2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),De(Re=+Re)&&(Re=Ue?0:Oe.length-1),Re<0&&(Re=Oe.length+Re),Re>=Oe.length){if(Ue)return-1;Re=Oe.length-1}else if(Re<0){if(!Ue)return-1;Re=0}if(typeof ke=="string"&&(ke=p.from(ke,We)),p.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Re,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Re):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Re):L(Oe,[ke],Re,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Re,We,Ue){var Ze,Ye=1,Je=Oe.length,Me=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Ye=2,Je/=2,Me/=2,Re/=2}function Fe(Ge,ht){return Ye===1?Ge[ht]:Ge.readUInt16BE(ht*Ye)}if(Ue){var je=-1;for(Ze=Re;ZeJe&&(Re=Je-Me),Ze=Re;Ze>=0;Ze--){for(var tt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Ye=ke.length;for(We>Ye/2&&(We=Ye/2),Ze=0;Ze>8,Me=Ye%256,Fe.push(Me),Fe.push(Je);return Fe}(ke,Oe.length-Re),Oe,Re,We)}function Q(Oe,ke,Re){return ke===0&&Re===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Re))}function j(Oe,ke,Re){Re=Math.min(Oe.length,Re);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+Je<=Re){var Me=void 0,Fe=void 0,je=void 0,tt=void 0;switch(Je){case 1:Ze<128&&(Ye=Ze);break;case 2:(192&(Me=Oe[Ue+1]))==128&&(tt=(31&Ze)<<6|63&Me)>127&&(Ye=tt);break;case 3:Me=Oe[Ue+1],Fe=Oe[Ue+2],(192&Me)==128&&(192&Fe)==128&&(tt=(15&Ze)<<12|(63&Me)<<6|63&Fe)>2047&&(tt<55296||tt>57343)&&(Ye=tt);break;case 4:Me=Oe[Ue+1],Fe=Oe[Ue+2],je=Oe[Ue+3],(192&Me)==128&&(192&Fe)==128&&(192&je)==128&&(tt=(15&Ze)<<18|(63&Me)<<12|(63&Fe)<<6|63&je)>65535&&tt<1114112&&(Ye=tt)}}Ye===null?(Ye=65533,Je=1):Ye>65535&&(Ye-=65536,We.push(Ye>>>10&1023|55296),Ye=56320|1023&Ye),We.push(Ye),Ue+=Je}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(Oe,ke,Re){return v(Oe,ke,Re)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(Oe,ke,Re){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Re)},p.allocUnsafe=function(Oe){return O(Oe)},p.allocUnsafeSlow=function(Oe){return O(Oe)},p.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==p.prototype},p.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=p.from(ke,ke.offset,ke.byteLength)),!p.isBuffer(Oe)||!p.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Re=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Re,We);UeWe.length?(p.isBuffer(Ze)||(Ze=p.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!p.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},p.byteLength=M,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(p.prototype[a]=p.prototype.inspect),p.prototype.compare=function(Oe,ke,Re,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),!p.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Re===void 0&&(Re=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Re>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Re)return 0;if(We>=Ue)return-1;if(ke>=Re)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Ye=(Re>>>=0)-(ke>>>=0),Je=Math.min(Ze,Ye),Me=this.slice(We,Ue),Fe=Oe.slice(ke,Re),je=0;je>>=0,isFinite(Re)?(Re>>>=0,We===void 0&&(We="utf8")):(We=Re,Re=void 0)}var Ue=this.length-ke;if((Re===void 0||Re>Ue)&&(Re=Ue),Oe.length>0&&(Re<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Re);case"utf8":case"utf-8":return k(this,Oe,ke,Re);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Re);case"base64":return z(this,Oe,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Re);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Re){var We="";Re=Math.min(Oe.length,Re);for(var Ue=ke;UeWe)&&(Re=We);for(var Ue="",Ze=ke;ZeRe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Re,We,Ue,Ze){if(!p.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Re}function ee(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re+7]=Ze,Ze>>=8,Oe[Re+6]=Ze,Ze>>=8,Oe[Re+5]=Ze,Ze>>=8,Oe[Re+4]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re+3]=Ye,Ye>>=8,Oe[Re+2]=Ye,Ye>>=8,Oe[Re+1]=Ye,Ye>>=8,Oe[Re]=Ye,Re+8}function me(Oe,ke,Re,We,Ue,Ze){if(Re+We>Oe.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function pe(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,4),m.write(Oe,ke,Re,We,23,4),Re+4}function se(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,8),m.write(Oe,ke,Re,We,52,8),Re+8}p.prototype.slice=function(Oe,ke){var Re=this.length;(Oe=~~Oe)<0?(Oe+=Re)<0&&(Oe=0):Oe>Re&&(Oe=Re),(ke=ke===void 0?Re:~~ke)<0?(ke+=Re)<0&&(ke=0):ke>Re&&(ke=Re),ke>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},p.prototype.readUint8=p.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),this[Oe]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},p.prototype.readBigUInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Re*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Re;return(BigInt(We)<>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},p.prototype.readIntBE=function(Oe,ke,Re){Oe>>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},p.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},p.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe]|this[Oe+1]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe+1]|this[Oe]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},p.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},p.prototype.readBigInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Re<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!0,23,4)},p.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!1,23,4)},p.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!0,52,8)},p.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Oe,ke,Re,We){Oe=+Oe,ke>>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=Re-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Re},p.prototype.writeUint8=p.prototype.writeUInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=0,Ye=1,Je=0;for(this[ke]=255&Oe;++Ze>0)-Je&255;return ke+Re},p.prototype.writeIntBE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=Re-1,Ye=1,Je=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Ye*=256);)Oe<0&&Je===0&&this[ke+Ze+1]!==0&&(Je=1),this[ke+Ze]=(Oe/Ye>>0)-Je&255;return ke+Re},p.prototype.writeInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},p.prototype.writeInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},p.prototype.writeInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(Oe,ke,Re){return pe(this,Oe,ke,!0,Re)},p.prototype.writeFloatBE=function(Oe,ke,Re){return pe(this,Oe,ke,!1,Re)},p.prototype.writeDoubleLE=function(Oe,ke,Re){return se(this,Oe,ke,!0,Re)},p.prototype.writeDoubleBE=function(Oe,ke,Re){return se(this,Oe,ke,!1,Re)},p.prototype.copy=function(Oe,ke,Re,We){if(!p.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Re=Re===void 0?this.length:Re>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Fe,je||[],b(Me).constructor):Fe.apply(Me,je))}(this,Ue),Object.defineProperty(i(Je),"message",{value:ke.apply(i(Je),arguments),writable:!0,configurable:!0}),Je.name="".concat(Je.name," [").concat(Oe,"]"),Je.stack,delete Je.name,Je}var Ze,Ye;return function(Je,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");Je.prototype=Object.create(Me&&Me.prototype,{constructor:{value:Je,writable:!0,configurable:!0}}),Object.defineProperty(Je,"prototype",{writable:!1}),Me&&S(Je,Me)}(Ue,We),Ze=Ue,(Ye=[{key:"code",get:function(){return Oe},set:function(Je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Je,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&u(Ze.prototype,Ye),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Re)}function de(Oe){for(var ke="",Re=Oe.length,We=Oe[0]==="-"?1:0;Re>=We+4;Re-=3)ke="_".concat(Oe.slice(Re-3,Re)).concat(ke);return"".concat(Oe.slice(0,Re)).concat(ke)}function ye(Oe,ke,Re,We,Ue,Ze){if(Oe>Re||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(Je," and < 2").concat(Je," ** ").concat(8*(Ze+1)).concat(Je):">= -(2".concat(Je," ** ").concat(8*(Ze+1)-1).concat(Je,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(Je):">= ".concat(ke).concat(Je," and <= ").concat(Re).concat(Je),new ae.ERR_OUT_OF_RANGE("value",Ye,Oe)}(function(Me,Fe,je){ve(Fe,"offset"),Me[Fe]!==void 0&&Me[Fe+je]!==void 0||_e(Fe,Me.length-(je+1))})(We,Ue,Ze)}function ve(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Re){throw Math.floor(Oe)!==Oe?(ve(Oe,Re),new ae.ERR_OUT_OF_RANGE(Re||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Re||"offset",">= ".concat(Re?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Re){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Re;return Number.isInteger(Re)&&Math.abs(Re)>Math.pow(2,32)?Ue=de(String(Re)):typeof Re=="bigint"&&(Ue=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var we=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Re;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Ye=0;Ye55295&&Re<57344){if(!Ue){if(Re>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Ye+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Re;continue}if(Re<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Re;continue}Re=65536+(Ue-55296<<10|Re-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Re<128){if((ke-=1)<0)break;Ze.push(Re)}else if(Re<2048){if((ke-=2)<0)break;Ze.push(Re>>6|192,63&Re|128)}else if(Re<65536){if((ke-=3)<0)break;Ze.push(Re>>12|224,Re>>6&63|128,63&Re|128)}else{if(!(Re<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,63&Re|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(we,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Re,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Re]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var Qe=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Re=0;Re<16;++Re)for(var We=16*Re,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Re]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var s=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,u=/android|ipad|playbook|silk/i;function b(i){i||(i={});var S=i.ua;if(S||typeof navigator>"u"||(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),typeof S!="string")return!1;var w=s.test(S)&&!n.test(S)||!!i.tablet&&u.test(S);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&S.indexOf("Macintosh")!==-1&&S.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,s,n){n.r(s),n.d(s,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return c},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var u=n(84706),b=n(34712),i=n(10132),S=n(6688),w=n.n(S);function y(Ie){return Ie.target.depth}function m(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function c(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,u.SY)(Ie.sourceLinks,y)-1:0}function p(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return C(Ie.source,ze.source)||Ie.index-ze.index}function O(Ie,ze){return C(Ie.target,ze.target)||Ie.index-ze.index}function C(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function P(Ie){return Ie.index}function A(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,Qe=0,Ve=1,$e=1,Oe=24,ke=P,Re=c,We=A,Ue=L,Ze=32,Ye=2,Je=null;function Me(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var St=ht.source,Ft=ht.target;(St===void 0?"undefined":v(St))!=="object"&&(St=ht.source=D(Ge,St)),(Ft===void 0?"undefined":v(Ft))!=="object"&&(Ft=ht.target=D(Ge,Ft)),St.sourceLinks.push(ht),Ft.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var St=[],Ft=0;Ft0?Pn+I+z:Pn,bottom:Sn=Sn>0?Sn+I+z:Sn,left:xt=xt>0?xt+I+z:xt,right:vt=vt>0?vt+I+z:vt}}(ot),cn=function(Cn,Pn){var Sn=(0,u.kv)(Cn.nodes,function(Vt){return Vt.column}),vt=Ve-De,xt=$e-Qe,st=vt/(vt+Pn.right+Pn.left),bt=xt/(xt+Pn.top+Pn.bottom);return De=De*st+Pn.left,Ve=Pn.right==0?Ve:Ve*st,Qe=Qe*bt+Pn.top,$e*=bt,Cn.nodes.forEach(function(Vt){Vt.x0=De+Vt.column*((Ve-De-Oe)/Sn),Vt.x1=Vt.x0+Oe}),bt}(ot,Ot);Et*=cn,ot.links.forEach(function(Cn){Cn.width=Cn.value*Et}),pt.forEach(function(Cn){var Pn=Cn.length;Cn.forEach(function(Sn,vt){Sn.depth==pt.length-1&&Pn==1||Sn.depth==0&&Pn==1?(Sn.y0=$e/2-Sn.value*Et,Sn.y1=Sn.y0+Sn.value*Et):Sn.partOfCycle?X(Sn,ln)==0?(Sn.y0=$e/2+vt,Sn.y1=Sn.y0+Sn.value*Et):Sn.circularLinkType=="top"?(Sn.y0=Qe+vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=$e-Sn.value*Et-vt,Sn.y1=Sn.y0+Sn.value*Et):Ot.top==0||Ot.bottom==0?(Sn.y0=($e-Qe)/Pn*vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=($e-Qe)/2-Pn/2+vt,Sn.y1=Sn.y0+Sn.value*Et)})})})(ht),Yt();for(var St=1,Ft=Ge;Ft>0;--Ft)zt(St*=.99,ht),Yt();function zt(ln,tn){var Et=pt.length;pt.forEach(function(Ot){var cn=Ot.length,Cn=Ot[0].depth;Ot.forEach(function(Pn){var Sn;if((Pn.sourceLinks.length||Pn.targetLinks.length)&&!(Pn.partOfCycle&&X(Pn,tn)>0))if(Cn==0&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else if(Cn==Et-1&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else{var vt=(0,u.mo)(Pn.sourceLinks,T),xt=(0,u.mo)(Pn.targetLinks,M),st=((vt&&xt?(vt+xt)/2:vt||xt)-R(Pn))*ln;Pn.y0+=st,Pn.y1+=st}})})}function Yt(){pt.forEach(function(ln){var tn,Et,Ot,cn=Qe,Cn=ln.length;for(ln.sort(C),Ot=0;Ot0&&(tn.y0+=Et,tn.y1+=Et),cn=tn.y1+Ie;if((Et=cn-Ie-$e)>0)for(cn=tn.y0-=Et,tn.y1-=Et,Ot=Cn-2;Ot>=0;--Ot)(Et=(tn=ln[Ot]).y1+Ie-cn)>0&&(tn.y0-=Et,tn.y1-=Et),cn=tn.y0})}}(je,Ze,ke),Fe(je);for(var tt=0;tt<4;tt++)ve(je,$e,ke),_e(je,0,ke),de(je,Qe,$e,ke),ve(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,St=ot.links,Ft=!1,zt=!1;if(St.forEach(function(tn){tn.circularLinkType=="top"?Ft=!0:tn.circularLinkType=="bottom"&&(zt=!0)}),Ft==0||zt==0){var Yt=(0,u.SY)(pt,function(tn){return tn.y0}),ln=(ht-Ge)/((0,u.kv)(pt,function(tn){return tn.y1})-Yt);pt.forEach(function(tn){var Et=(tn.y1-tn.y0)*ln;tn.y0=(tn.y0-Yt)*ln,tn.y1=tn.y0+Et}),St.forEach(function(tn){tn.y0=(tn.y0-Yt)*ln,tn.y1=(tn.y1-Yt)*ln,tn.width=tn.width*ln})}}(je,Qe,$e),K(je,Ye,$e,ke),je}function Fe(je){je.nodes.forEach(function(tt){tt.sourceLinks.sort(O),tt.targetLinks.sort(_)}),je.nodes.forEach(function(tt){var ot=tt.y0,Ge=ot,ht=tt.y1,pt=ht;tt.sourceLinks.forEach(function(St){St.circular?(St.y0=ht-St.width/2,ht-=St.width):(St.y0=ot+St.width/2,ot+=St.width)}),tt.targetLinks.forEach(function(St){St.circular?(St.y1=pt-St.width/2,pt-=St.width):(St.y1=Ge+St.width/2,Ge+=St.width)})})}return Me.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:p(je),Me):ke},Me.nodeAlign=function(je){return arguments.length?(Re=typeof je=="function"?je:p(je),Me):Re},Me.nodeWidth=function(je){return arguments.length?(Oe=+je,Me):Oe},Me.nodePadding=function(je){return arguments.length?(Ie=+je,Me):Ie},Me.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:p(je),Me):We},Me.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:p(je),Me):Ue},Me.size=function(je){return arguments.length?(De=Qe=0,Ve=+je[0],$e=+je[1],Me):[Ve-De,$e-Qe]},Me.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],Qe=+je[0][1],$e=+je[1][1],Me):[[De,Qe],[Ve,$e]]},Me.iterations=function(je){return arguments.length?(Ze=+je,Me):Ze},Me.circularLinkGap=function(je){return arguments.length?(Ye=+je,Me):Ye},Me.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Me):ze},Me.sortNodes=function(je){return arguments.length?(Je=je,Me):Je},Me.update=function(je){return j(je,ke),Fe(je),je.links.forEach(function(tt){tt.circular&&(tt.circularLinkType=tt.y0+tt.y1<$e?"top":"bottom",tt.source.circularLinkType=tt.circularLinkType,tt.target.circularLinkType=tt.circularLinkType)}),ve(je,$e,ke,!1),_e(je,0,ke),K(je,Ye,$e,ke),je},Me}function j(Ie,ze){var De=0,Qe=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function Z(Ie,ze,De){return Ie.sort(re),Ie.forEach(function(Qe,Ve){var $e,Oe,ke=0;if(Pe(Qe,De)&&te(Qe))Qe.circularPathData.verticalBuffer=ke+Qe.width/2;else{for(var Re=0;ReOe.source.column)){var We=Ie[Re].circularPathData.verticalBuffer+Ie[Re].width/2+ze;ke=We>ke?We:ke}Qe.circularPathData.verticalBuffer=ke+Qe.width/2}}),Ie}function K(Ie,ze,De,Qe){var Ve=(0,u.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),Z(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,Qe),Z(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,Qe),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,Qe)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Re=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Re.sort(Y):Re.sort(q);var We=0;Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),Oe=$e.target.column,Re=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Re.sort(me):Re.sort(ee),We=0,Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function re(Ie,ze){return pe(Ie)==pe(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):pe(ze)-pe(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function pe(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+Qe:Ie.y1-Qe}function ce(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-Qe:Ie.y1+Qe}function de(Ie,ze,De,Qe){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Re=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Re+1),Ye=Math.pow(1-Ze,3),Je=3*Ze*Math.pow(1-Ze,2),Me=3*Math.pow(Ze,2)*(1-Ze),Fe=Math.pow(Ze,3),je=Ye*Ve.y0+Je*Ve.y0+Me*Ve.y1+Fe*Ve.y1,tt=je-Ve.width/2,ot=je+Ve.width/2;tt>We.y0&&ttpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ye(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ye(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,Qe)!=k(We,Qe)&&Ge.column==We.column&&Ge.y0We.y1&&ye(Ge,Ue,ze,De)}))}})}})}function ye(Ie,ze,De,Qe){return Ie.y0+ze>=De&&Ie.y1+ze<=Qe&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ve(Ie,ze,De,Qe){Ie.nodes.forEach(function(Ve){Qe&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Re){return k(Re.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Re,We){if(!Re.circular&&!We.circular){if(Re.target.column==We.target.column||!we(Re,We))return Re.y1-We.y1;if(Re.target.column>We.target.column){var Ue=ce(We,Re);return Re.y1-Ue}if(We.target.column>Re.target.column)return ce(Re,We)-We.y1}return Re.circular&&!We.circular?Re.circularLinkType=="top"?-1:1:We.circular&&!Re.circular?We.circularLinkType=="top"?1:-1:Re.circular&&We.circular?Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="top"?Re.target.column===We.target.column?Re.target.y1-We.target.y1:We.target.column-Re.target.column:Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="bottom"?Re.target.column===We.target.column?We.target.y1-Re.target.y1:Re.target.column-We.target.column:Re.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Re){Re.y0=ke+Re.width/2,ke+=Re.width}),$e.forEach(function(Re,We){if(Re.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Re){if(!ke.circular&&!Re.circular){if(ke.source.column==Re.source.column||!we(ke,Re))return ke.y0-Re.y0;if(Re.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,s,n){n.r(s),n.d(s,{sankey:function(){return P},sankeyCenter:function(){return m},sankeyJustify:function(){return y},sankeyLeft:function(){return S},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var u=n(84706),b=n(34712);function i(I){return I.target.depth}function S(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function m(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,u.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function c(I,z){return p(I.source,z.source)||I.index-z.index}function h(I,z){return p(I.target,z.target)||I.index-z.index}function p(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function O(I){return _(I.source)*I.value}function C(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function P(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,Z=R,K=M,re=32;function q(){var ee={nodes:Z.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var pe=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(pe,ce)),typeof de!="object"&&(de=se.target=T(pe,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(pe){pe.value=Math.max((0,u.oh)(pe.sourceLinks,v),(0,u.oh)(pe.targetLinks,v))})}(ee),function(me){var pe,se,ae;for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ye){se.indexOf(ye.target)<0&&se.push(ye.target)})});for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ye){se.indexOf(ye.source)<0&&se.push(ye.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var pe=(0,b.UJ)().key(function(ve){return ve.x0}).sortKeys(u.XE).entries(me.nodes).map(function(ve){return ve.values});(function(){var ve=(0,u.kv)(pe,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ve-1);U>_e&&(U=_e);var we=(0,u.SY)(pe,function(Te){return(Q-z-(Te.length-1)*U)/(0,u.oh)(Te,v)});pe.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*we})}),me.links.forEach(function(Te){Te.width=Te.value*we})})(),ye();for(var se=1,ae=re;ae>0;--ae)de(se*=.99),ye(),ce(se),ye();function ce(ve){pe.forEach(function(_e){_e.forEach(function(we){if(we.targetLinks.length){var Te=((0,u.oh)(we.targetLinks,O)/(0,u.oh)(we.targetLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function de(ve){pe.slice().reverse().forEach(function(_e){_e.forEach(function(we){if(we.sourceLinks.length){var Te=((0,u.oh)(we.sourceLinks,C)/(0,u.oh)(we.sourceLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function ye(){pe.forEach(function(ve){var _e,we,Te,Pe=z,Ie=ve.length;for(ve.sort(p),Te=0;Te0&&(_e.y0+=we,_e.y1+=we),Pe=_e.y1+U;if((we=Pe-U-Q)>0)for(Pe=_e.y0-=we,_e.y1-=we,Te=Ie-2;Te>=0;--Te)(we=(_e=ve[Te]).y1+U-Pe)>0&&(_e.y0-=we,_e.y1-=we),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(c)}),ee.nodes.forEach(function(me){var pe=me.y0,se=pe;me.sourceLinks.forEach(function(ae){ae.y0=pe+ae.width/2,pe+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(Z=typeof ee=="function"?ee:a(ee),q):Z},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(re=+ee,q):re},q}var A=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,A.ak)().source(L).target(D)}},33428:function(d,s,n){var u,b;(function(){var i={version:"3.8.0"},S=[].slice,w=function(V){return S.call(V)},y=self.document;function m(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=ie[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var c=this.Element.prototype,h=c.setAttribute,p=c.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;c.setAttribute=function(ie,ge){h.call(this,ie,ge+"")},c.setAttributeNS=function(ie,ge,xe){p.call(this,ie,ge,xe+"")},v.setProperty=function(ie,ge,xe){_.call(this,ie,ge+"",xe)}}function O(V,ie){return Vie?1:V>=ie?0:NaN}function C(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)<0?xe=Ne+1:Ee=Ne}return xe},right:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)>0?Ee=Ne:xe=Ne+1}return xe}}}i.ascending=O,i.descending=function(V,ie){return ieV?1:ie>=V?0:NaN},i.min=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}return ge},i.max=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}return ge},i.extent=function(V,ie){var ge,xe,Ee,Ne=-1,et=V.length;if(arguments.length===1){for(;++Ne=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee1)return et/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(O);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ie,ge){return O(V(ie),ge)}:V)},i.shuffle=function(V,ie,ge){(Ne=arguments.length)<3&&(ge=V.length,Ne<2&&(ie=0));for(var xe,Ee,Ne=ge-ie;Ne;)Ee=Math.random()*Ne--|0,xe=V[Ne+ie],V[Ne+ie]=V[Ee+ie],V[Ee+ie]=xe;return V},i.permute=function(V,ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=V[ie[ge]];return xe},i.pairs=function(V){for(var ie=0,ge=V.length-1,xe=V[0],Ee=new Array(ge<0?0:ge);ie=0;)for(ie=(xe=V[Ee]).length;--ie>=0;)ge[--et]=xe[ie];return ge};var P=Math.abs;function A(V,ie){for(var ge in ie)Object.defineProperty(V.prototype,ge,{value:ie[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ie,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ie=V,V=0)),(ie-V)/ge==1/0)throw new Error("infinite range");var xe,Ee=[],Ne=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(P(ge)),et=-1;if(V*=Ne,ie*=Ne,(ge*=Ne)<0)for(;(xe=V+ge*++et)>ie;)Ee.push(xe/Ne);else for(;(xe=V+ge*++et)=xe.length)return ie?ie.call(ge,dt):V?dt.sort(V):dt;for(var Rt,Mt,Xt,dn,bn=-1,vn=dt.length,Ln=xe[gt++],gn=new L;++bn=xe.length)return rt;var gt=[],Rt=Ee[dt++];return rt.forEach(function(Mt,Xt){gt.push({key:Mt,values:et(Xt,dt)})}),Rt?gt.sort(function(Mt,Xt){return Rt(Mt.key,Xt.key)}):gt}return ge.map=function(rt,dt){return Ne(dt,rt,0)},ge.entries=function(rt){return et(Ne(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Ee[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ie=rt,ge},ge},i.set=function(V){var ie=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ie);if(arguments.length===2){if(ie==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ie){V.__proto__=ie}:function(V,ie){for(var ge in ie)V[ge]=ie[ge]};function ye(V){return de(V,Te),V}var ve=function(V,ie){return ie.querySelector(V)},_e=function(V,ie){return ie.querySelectorAll(V)},we=function(V,ie){var ge=V.matches||V[re(V,"matchesSelector")];return we=function(xe,Ee){return ge.call(xe,Ee)},we(V,ie)};typeof Sizzle=="function"&&(ve=function(V,ie){return Sizzle(V,ie)[0]||null},_e=Sizzle,we=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ve(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ie,ge,xe,Ee,Ne=[];V=Pe(V);for(var et=-1,rt=this.length;++et=0&&(ge=V.slice(0,ie))!=="xmlns"&&(V=V.slice(ie+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ie in V)this.each(Qe(ie,V[ie]));return this}return this.each(Qe(V,ie))},Te.classed=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Ee=-1;if(ie=ge.classList){for(;++Ee=0;)(ge=xe[Ee])&&(Ne&&Ne!==ge.nextSibling&&Ne.parentNode.insertBefore(ge,Ne),Ne=ge);return this},Te.sort=function(V){V=Fe.apply(this,arguments);for(var ie=-1,ge=this.length;++ie0&&(V=V.slice(0,Ee));var et=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return et&&(V=et,Ne=St),Ee?ie?function(){var dt=Ne(ie,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ie}:rt:ie?Y:function(){var dt,gt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Rt in this)if(dt=Rt.match(gt)){var Mt=this[Rt];this.removeEventListener(dt[1],Mt,Mt.$),delete this[Rt]}}}i.selection.enter=tt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ie,ge,xe,Ee,Ne,et=[],rt=-1,dt=this.length;++rt=xe&&(xe=et+1);!(dt=gt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function Vt(V){return((V=Math.exp(V))+1/V)/2}var Dt=Math.SQRT2;i.interpolateZoom=function(V,ie){var ge,xe,Ee=V[0],Ne=V[1],et=V[2],rt=ie[0],dt=ie[1],gt=ie[2],Rt=rt-Ee,Mt=dt-Ne,Xt=Rt*Rt+Mt*Mt;if(Xt0&&(Ho=Ho.transition().duration(Xt)),Ho.call(pn.event)}function ro(){et&&et.domain(Ne.range().map(function(Ho){return(Ho-gt.x)/gt.k}).map(Ne.invert)),dt&&dt.domain(rt.range().map(function(Ho){return(Ho-gt.y)/gt.k}).map(rt.invert))}function po(Ho){dn++||Ho({type:"zoomstart"})}function Wo(Ho){ro(),Ho({type:"zoom",scale:gt.k,translate:[gt.x,gt.y]})}function si(Ho){--dn||(Ho({type:"zoomend"}),ie=null)}function Bo(){var Ho=this,jo=Jn.of(Ho,arguments),Yi=0,ai=i.select(a(Ho)).on(vn,function(){Yi=1,Pr(i.mouse(Ho),Hi),Wo(jo)}).on(Ln,function(){ai.on(vn,null).on(Ln,null),Ai(Yi),si(jo)}),Hi=In(i.mouse(Ho)),Ai=Yt(Ho);Pl.call(Ho),po(jo)}function Go(){var Ho,jo=this,Yi=Jn.of(jo,arguments),ai={},Hi=0,Ai=".zoom-"+i.event.changedTouches[0].identifier,es="touchmove"+Ai,Ar="touchend"+Ai,ns=[],$s=i.select(jo),Ts=Yt(jo);function rl(){var mt=i.touches(jo);return Ho=gt.k,mt.forEach(function(Tt){Tt.identifier in ai&&(ai[Tt.identifier]=In(Tt))}),mt}function Hs(){var mt=i.event.target;i.select(mt).on(es,ys).on(Ar,Yu),ns.push(mt);for(var Tt=i.event.changedTouches,xn=0,Nn=Tt.length;xn1){No=yr[0];var ui=yr[1],ga=No[0]-ui[0],Sa=No[1]-ui[1];Hi=ga*ga+Sa*Sa}}function ys(){var mt,Tt,xn,Nn,yr=i.touches(jo);Pl.call(jo);for(var so=0,No=yr.length;so360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Ee-xe)*rt/60:rt<180?Ee:rt<240?xe+(Ee-xe)*(240-rt)/60:xe}(et))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ie=isNaN(ie)||ie<0?0:ie>1?1:ie,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Ee=ge<=.5?ge*(1+ie):ge+ie-ge*ie),new $r(Ne(V+120),Ne(V),Ne(V-120))}function Zt(V,ie,ge){return this instanceof Zt?(this.h=+V,this.c=+ie,void(this.l=+ge)):arguments.length<2?V instanceof Zt?new Zt(V.h,V.c,V.l):function(xe,Ee,Ne){return xe>0?new Zt(Math.atan2(Ne,Ee)*st,Math.sqrt(Ee*Ee+Ne*Ne),xe):new Zt(NaN,NaN,xe)}(V instanceof rn?V.l:(V=Vr((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Zt(V,ie,ge)}en.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,this.l/V)},en.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,V*this.l)},en.rgb=function(){return Jt(this.h,this.s,this.l)},i.hcl=Zt;var Nt=Zt.prototype=new _t;function sn(V,ie,ge){return isNaN(V)&&(V=0),isNaN(ie)&&(ie=0),new rn(ge,Math.cos(V*=xt)*ie,Math.sin(V)*ie)}function rn(V,ie,ge){return this instanceof rn?(this.l=+V,this.a=+ie,void(this.b=+ge)):arguments.length<2?V instanceof rn?new rn(V.l,V.a,V.b):V instanceof Zt?sn(V.h,V.c,V.l):Vr((V=$r(V)).r,V.g,V.b):new rn(V,ie,ge)}Nt.brighter=function(V){return new Zt(this.h,this.c,Math.min(100,this.l+_n*(arguments.length?V:1)))},Nt.darker=function(V){return new Zt(this.h,this.c,Math.max(0,this.l-_n*(arguments.length?V:1)))},Nt.rgb=function(){return sn(this.h,this.c,this.l).rgb()},i.lab=rn;var _n=18,wn=.95047,An=1,Kn=1.08883,fr=rn.prototype=new _t;function Un(V,ie,ge){var xe=(V+16)/116,Ee=xe+ie/500,Ne=xe-ge/200;return new $r(Br(3.2404542*(Ee=Zn(Ee)*wn)-1.5371385*(xe=Zn(xe)*An)-.4985314*(Ne=Zn(Ne)*Kn)),Br(-.969266*Ee+1.8760108*xe+.041556*Ne),Br(.0556434*Ee-.2040259*xe+1.0572252*Ne))}function Zn(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function tr(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function Br(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function $r(V,ie,ge){return this instanceof $r?(this.r=~~V,this.g=~~ie,void(this.b=~~ge)):arguments.length<2?V instanceof $r?new $r(V.r,V.g,V.b):lr(""+V,$r,Jt):new $r(V,ie,ge)}function vr(V){return new $r(V>>16,V>>8&255,255&V)}function qn(V){return vr(V)+""}fr.brighter=function(V){return new rn(Math.min(100,this.l+_n*(arguments.length?V:1)),this.a,this.b)},fr.darker=function(V){return new rn(Math.max(0,this.l-_n*(arguments.length?V:1)),this.a,this.b)},fr.rgb=function(){return Un(this.l,this.a,this.b)},i.rgb=$r;var gr=$r.prototype=new _t;function sr(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function lr(V,ie,ge){var xe,Ee,Ne,et=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Ee=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Ee[0]),parseFloat(Ee[1])/100,parseFloat(Ee[2])/100);case"rgb":return ie(Jr(Ee[0]),Jr(Ee[1]),Jr(Ee[2]))}return(Ne=Yr.get(V))?ie(Ne.r,Ne.g,Ne.b):(V==null||V.charAt(0)!=="#"||isNaN(Ne=parseInt(V.slice(1),16))||(V.length===4?(et=(3840&Ne)>>4,et|=et>>4,rt=240&Ne,rt|=rt>>4,dt=15&Ne,dt|=dt<<4):V.length===7&&(et=(16711680&Ne)>>16,rt=(65280&Ne)>>8,dt=255&Ne)),ie(et,rt,dt))}function zr(V,ie,ge){var xe,Ee,Ne=Math.min(V/=255,ie/=255,ge/=255),et=Math.max(V,ie,ge),rt=et-Ne,dt=(et+Ne)/2;return rt?(Ee=dt<.5?rt/(et+Ne):rt/(2-et-Ne),xe=V==et?(ie-ge)/rt+(ie0&&dt<1?0:xe),new qt(xe,Ee,dt)}function Vr(V,ie,ge){var xe=tr((.4124564*(V=eo(V))+.3575761*(ie=eo(ie))+.1804375*(ge=eo(ge)))/wn),Ee=tr((.2126729*V+.7151522*ie+.072175*ge)/An);return rn(116*Ee-16,500*(xe-Ee),200*(Ee-tr((.0193339*V+.119192*ie+.9503041*ge)/Kn)))}function eo(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Jr(V){var ie=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ie):ie}gr.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ie=this.r,ge=this.g,xe=this.b,Ee=30;return ie||ge||xe?(ie&&ie=200&&Mt<300||Mt===304){try{Rt=ge.call(Ee,rt)}catch(Xt){return void Ne.error.call(Ee,Xt)}Ne.load.call(Ee,Rt)}else Ne.error.call(Ee,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=gt:rt.onreadystatechange=function(){rt.readyState>3&>()},rt.onprogress=function(Rt){var Mt=i.event;i.event=Rt;try{Ne.progress.call(Ee,rt)}finally{i.event=Mt}},Ee.header=function(Rt,Mt){return Rt=(Rt+"").toLowerCase(),arguments.length<2?et[Rt]:(Mt==null?delete et[Rt]:et[Rt]=Mt+"",Ee)},Ee.mimeType=function(Rt){return arguments.length?(ie=Rt==null?null:Rt+"",Ee):ie},Ee.responseType=function(Rt){return arguments.length?(dt=Rt,Ee):dt},Ee.response=function(Rt){return ge=Rt,Ee},["get","post"].forEach(function(Rt){Ee[Rt]=function(){return Ee.send.apply(Ee,[Rt].concat(w(arguments)))}}),Ee.send=function(Rt,Mt,Xt){if(arguments.length===2&&typeof Mt=="function"&&(Xt=Mt,Mt=null),rt.open(Rt,V,!0),ie==null||"accept"in et||(et.accept=ie+",*/*"),rt.setRequestHeader)for(var dn in et)rt.setRequestHeader(dn,et[dn]);return ie!=null&&rt.overrideMimeType&&rt.overrideMimeType(ie),dt!=null&&(rt.responseType=dt),Xt!=null&&Ee.on("error",Xt).on("load",function(bn){Xt(null,bn)}),Ne.beforesend.call(Ee,rt),rt.send(Mt??null),Ee},Ee.abort=function(){return rt.abort(),Ee},i.rebind(Ee,Ne,"on"),xe==null?Ee:Ee.get(function(Rt){return Rt.length===1?function(Mt,Xt){Rt(Mt==null?Xt:null)}:Rt}(xe))}Yr.forEach(function(V,ie){Yr.set(V,vr(ie))}),i.functor=to,i.xhr=co(Z),i.dsv=function(V,ie){var ge=new RegExp('["'+V+` ]`),xe=V.charCodeAt(0);function Ee(gt,Rt,Mt){arguments.length<3&&(Mt=Rt,Rt=null);var Xt=Fo(gt,ie,Rt==null?Ne:et(Rt),Mt);return Xt.row=function(dn){return arguments.length?Xt.response((Rt=dn)==null?Ne:et(dn)):Rt},Xt}function Ne(gt){return Ee.parse(gt.responseText)}function et(gt){return function(Rt){return Ee.parse(Rt.responseText,gt)}}function rt(gt){return gt.map(dt).join(V)}function dt(gt){return ge.test(gt)?'"'+gt.replace(/\"/g,'""')+'"':gt}return Ee.parse=function(gt,Rt){var Mt;return Ee.parseRows(gt,function(Xt,dn){if(Mt)return Mt(Xt,dn-1);var bn=function(vn){for(var Ln={},gn=Xt.length,Jn=0;Jn=Ln)return bn;if(Xt)return Xt=!1,dn;var Ir=gn;if(gt.charCodeAt(Ir)===34){for(var Pr=Ir;Pr++24?(isFinite(ie)&&(clearTimeout(pi),pi=setTimeout(Dr,ie)),Mo=0):(Mo=1,Hn(Dr))}function Sr(){for(var V=Date.now(),ie=_o;ie;)V>=ie.t&&ie.c(V-ie.t)&&(ie.c=null),ie=ie.n;return V}function Zr(){for(var V,ie=_o,ge=1/0;ie;)ie.c?(ie.t1&&(ie=V[Ne[et-2]],ge=V[Ne[et-1]],xe=V[rt],(ge[0]-ie[0])*(xe[1]-ie[1])-(ge[1]-ie[1])*(xe[0]-ie[0])<=0);)--et;Ne[et++]=rt}return Ne.slice(0,et)}function Do(V,ie){return V[0]-ie[0]||V[1]-ie[1]}i.timer=function(){ar.apply(this,arguments)},i.timer.flush=function(){Sr(),Zr()},i.round=function(V,ie){return ie?Math.round(V*(ie=Math.pow(10,ie)))/ie:Math.round(V)},i.geom={},i.geom.hull=function(V){var ie=go,ge=oo;if(arguments.length)return xe(V);function xe(Ee){if(Ee.length<3)return[];var Ne,et=to(ie),rt=to(ge),dt=Ee.length,gt=[],Rt=[];for(Ne=0;Ne=0;--Ne)vn.push(Ee[gt[Mt[Ne]][2]]);for(Ne=+dn;NeOt)rt=rt.L;else{if(!((Ee=Ne-wo(rt,et))>Ot)){xe>-Ot?(ie=rt.P,ge=rt):Ee>-Ot?(ie=rt,ge=rt.N):ie=ge=rt;break}if(!rt.R){ie=rt;break}rt=rt.R}var dt=Gn(V);if(Er.insert(ie,dt),ie||ge){if(ie===ge)return Mn(ie),ge=Gn(ie.site),Er.insert(dt,ge),dt.edge=ge.edge=xr(ie.site,dt.site),Qt(ie),void Qt(ge);if(ge){Mn(ie),Mn(ge);var gt=ie.site,Rt=gt.x,Mt=gt.y,Xt=V.x-Rt,dn=V.y-Mt,bn=ge.site,vn=bn.x-Rt,Ln=bn.y-Mt,gn=2*(Xt*Ln-dn*vn),Jn=Xt*Xt+dn*dn,pn=vn*vn+Ln*Ln,In={x:(Ln*Jn-dn*pn)/gn+Rt,y:(Xt*pn-vn*Jn)/gn+Mt};Oo(ge.edge,gt,bn,In),dt.edge=xr(gt,V,null,In),ge.edge=xr(V,bn,null,In),Qt(ie),Qt(ge)}else dt.edge=xr(ie.site,dt.site)}}function Cr(V,ie){var ge=V.site,xe=ge.x,Ee=ge.y,Ne=Ee-ie;if(!Ne)return xe;var et=V.P;if(!et)return-1/0;var rt=(ge=et.site).x,dt=ge.y,gt=dt-ie;if(!gt)return rt;var Rt=rt-xe,Mt=1/Ne-1/gt,Xt=Rt/gt;return Mt?(-Xt+Math.sqrt(Xt*Xt-2*Mt*(Rt*Rt/(-2*gt)-dt+gt/2+Ee-Ne/2)))/Mt+xe:(xe+rt)/2}function wo(V,ie){var ge=V.N;if(ge)return Cr(ge,ie);var xe=V.site;return xe.y===ie?xe.x:1/0}function Nr(V){this.site=V,this.edges=[]}function Eo(V,ie){return ie.angle-V.angle}function zo(){To(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(V){var ie=V.P,ge=V.N;if(ie&&ge){var xe=ie.site,Ee=V.site,Ne=ge.site;if(xe!==Ne){var et=Ee.x,rt=Ee.y,dt=xe.x-et,gt=xe.y-rt,Rt=Ne.x-et,Mt=2*(dt*(Ln=Ne.y-rt)-gt*Rt);if(!(Mt>=-cn)){var Xt=dt*dt+gt*gt,dn=Rt*Rt+Ln*Ln,bn=(Ln*Xt-gt*dn)/Mt,vn=(dt*dn-Rt*Xt)/Mt,Ln=vn+rt,gn=Tn.pop()||new zo;gn.arc=V,gn.site=Ee,gn.x=bn+et,gn.y=Ln+Math.sqrt(bn*bn+vn*vn),gn.cy=Ln,V.circle=gn;for(var Jn=null,pn=on._;pn;)if(gn.y=rt)return;if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:Ln,y:dt};ge={x:Ln,y:gt}}else{if(Ne){if(Ne.y1)if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:(dt-Ee)/xe,y:dt};ge={x:(gt-Ee)/xe,y:gt}}else{if(Ne){if(Ne.y=rt)return}else Ne={x:et,y:xe*et+Ee};ge={x:rt,y:xe*rt+Ee}}else{if(Ne){if(Ne.x0)){if(gn/=ro,ro<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Mt-In,ro||!(gn<0)){if(gn/=ro,ro<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(ro>0){if(gn0)){if(gn/=po,po<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Xt-Ir,po||!(gn<0)){if(gn/=po,po<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(po>0){if(gn0&&(Ln.a={x:In+Pr*ro,y:Ir+Pr*po}),Gr<1&&(Ln.b={x:In+Gr*ro,y:Ir+Gr*po}),Ln}}}}}),vn=dn.length;vn--;)(!Fn(dt=dn[vn],rt)||!bn(dt)||P(dt.a.x-dt.b.x)Ot||P(Mt-gt)>Ot)&&(bn.splice(dn,0,new mi((ro=Xt.site,po=gn,Wo=P(Rt-Jn)Ot?{x:Jn,y:P(dt-Jn)Ot?{x:P(gt-Ir)Ot?{x:pn,y:P(dt-pn)Ot?{x:P(gt-In)=Rt&&gn.x<=Xt&&gn.y>=Mt&&gn.y<=dn?[[Rt,dn],[Xt,dn],[Xt,Mt],[Rt,Mt]]:[]).point=dt[vn]}),gt}function rt(dt){return dt.map(function(gt,Rt){return{x:Math.round(xe(gt,Rt)/Ot)*Ot,y:Math.round(Ee(gt,Rt)/Ot)*Ot,i:Rt}})}return et.links=function(dt){return zi(rt(dt)).edges.filter(function(gt){return gt.l&>.r}).map(function(gt){return{source:dt[gt.l.i],target:dt[gt.r.i]}})},et.triangles=function(dt){var gt=[];return zi(rt(dt)).cells.forEach(function(Rt,Mt){for(var Xt,dn,bn,vn,Ln=Rt.site,gn=Rt.edges.sort(Eo),Jn=-1,pn=gn.length,In=gn[pn-1].edge,Ir=In.l===Ln?In.r:In.l;++JnNe&&(Ee=ie.slice(Ne,Ee),rt[et]?rt[et]+=Ee:rt[++et]=Ee),(ge=ge[0])===(xe=xe[0])?rt[et]?rt[et]+=xe:rt[++et]=xe:(rt[++et]=null,dt.push({i:et,x:Qs(ge,xe)})),Ne=Tc.lastIndex;return Negn&&(gn=Rt.x),Rt.y>Jn&&(Jn=Rt.y),Mt.push(Rt.x),Xt.push(Rt.y);else for(dn=0;dngn&&(gn=Ir),Pr>Jn&&(Jn=Pr),Mt.push(Ir),Xt.push(Pr)}var Gr=gn-vn,ro=Jn-Ln;function po(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){if(!isNaN(Yo)&&!isNaN(Wi))if(Bo.leaf){var Hi=Bo.x,Ai=Bo.y;if(Hi!=null)if(P(Hi-Yo)+P(Ai-Wi)<.01)Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai);else{var Ja=Bo.point;Bo.x=Bo.y=Bo.point=null,Wo(Bo,Ja,Hi,Ai,Ho,jo,Yi,ai),Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}else Bo.x=Yo,Bo.y=Wi,Bo.point=Go}else Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}function Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){var Hi=.5*(Ho+Yi),Ai=.5*(jo+ai),Ja=Yo>=Hi,Ar=Wi>=Ai,ns=Ar<<1|Ja;Bo.leaf=!1,Ja?Ho=Hi:Yi=Hi,Ar?jo=Ai:ai=Ai,po(Bo=Bo.nodes[ns]||(Bo.nodes[ns]={leaf:!0,nodes:[],point:null,x:null,y:null}),Go,Yo,Wi,Ho,jo,Yi,ai)}Gr>ro?Jn=Ln+Gr:gn=vn+ro;var si={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Bo){po(si,Bo,+pn(Bo,++dn),+In(Bo,dn),vn,Ln,gn,Jn)}};if(si.visit=function(Bo){nf(Bo,si,vn,Ln,gn,Jn)},si.find=function(Bo){return function(Go,Yo,Wi,Ho,jo,Yi,ai){var Hi,Ai=1/0;return function Ja(Ar,ns,$s,Ts,rl){if(!(ns>Yi||$s>ai||Ts=yr)<<1|Yo>=Nn,No=so+4;so=0&&!(ge=i.interpolators[xe](V,ie)););return ge}function au(V,ie){var ge,xe=[],Ee=[],Ne=V.length,et=ie.length,rt=Math.min(V.length,ie.length);for(ge=0;ge=1)return 1;var ie=V*V,ge=ie*V;return 4*(V<.5?ge:3*(V-ie)+ge-.75)}function Ml(V){return 1-Math.cos(V*vt)}function Jf(V){return Math.pow(2,10*(V-1))}function Nf(V){return 1-Math.sqrt(1-V*V)}function Jl(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function Gh(V,ie){return ie-=V,function(ge){return Math.round(V+ie*ge)}}function ll(V){var ie,ge,xe,Ee=[V.a,V.b],Ne=[V.c,V.d],et=gu(Ee),rt=Tu(Ee,Ne),dt=gu(((ie=Ne)[0]+=(xe=-rt)*(ge=Ee)[0],ie[1]+=xe*ge[1],ie))||0;Ee[0]*Ne[1]=0?V.slice(0,ge):V,Ee=ge>=0?V.slice(ge+1):"in";return xe=_s.get(xe)||zf,Ee=ma.get(Ee)||Z,ie=Ee(xe.apply(null,S.call(arguments,1))),function(Ne){return Ne<=0?0:Ne>=1?1:ie(Ne)}},i.interpolateHcl=function(V,ie){V=i.hcl(V),ie=i.hcl(ie);var ge=V.h,xe=V.c,Ee=V.l,Ne=ie.h-ge,et=ie.c-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.c:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return sn(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateHsl=function(V,ie){V=i.hsl(V),ie=i.hsl(ie);var ge=V.h,xe=V.s,Ee=V.l,Ne=ie.h-ge,et=ie.s-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.s:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return Jt(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateLab=function(V,ie){V=i.lab(V),ie=i.lab(ie);var ge=V.l,xe=V.a,Ee=V.b,Ne=ie.l-ge,et=ie.a-xe,rt=ie.b-Ee;return function(dt){return Un(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateRound=Gh,i.transform=function(V){var ie=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ie.setAttribute("transform",ge);var xe=ie.transform.baseVal.consolidate()}return new ll(xe?xe.matrix:ec)})(V)},ll.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ec={a:1,b:0,c:0,d:1,e:0,f:0};function Dc(V){return V.length?V.pop()+",":""}function tc(V,ie){var ge=[],xe=[];return V=i.transform(V),ie=i.transform(ie),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else(Ne[0]||Ne[1])&&et.push("translate("+Ne+")")}(V.translate,ie.translate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?(Ee-Ne>180?Ne+=360:Ne-Ee>180&&(Ee+=360),rt.push({i:et.push(Dc(et)+"rotate(",null,")")-2,x:Qs(Ee,Ne)})):Ne&&et.push(Dc(et)+"rotate("+Ne+")")}(V.rotate,ie.rotate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?rt.push({i:et.push(Dc(et)+"skewX(",null,")")-2,x:Qs(Ee,Ne)}):Ne&&et.push(Dc(et)+"skewX("+Ne+")")}(V.skew,ie.skew,ge,xe),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push(Dc(et)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else Ne[0]===1&&Ne[1]===1||et.push(Dc(et)+"scale("+Ne+")")}(V.scale,ie.scale,ge,xe),V=ie=null,function(Ee){for(var Ne,et=-1,rt=xe.length;++et0?ge=In:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):In>0&&(rt.start({type:"start",alpha:ge=In}),V=ar(et.tick)),et):ge},et.start=function(){var In,Ir,Pr,Gr=Ln.length,ro=gn.length,po=dt[0],Wo=dt[1];for(In=0;In=0;)ge.push(Ee[xe])}function cs(V,ie){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Ne=V.children)&&(Ee=Ne.length))for(var Ee,Ne,et=-1;++et=0;)et.push(Rt=gt[dt]),Rt.parent=Ne,Rt.depth=Ne.depth+1;ge&&(Ne.value=0),Ne.children=gt}else ge&&(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),delete Ne.children;return cs(Ee,function(Mt){var Xt,dn;V&&(Xt=Mt.children)&&Xt.sort(V),ge&&(dn=Mt.parent)&&(dn.value+=Mt.value)}),rt}return xe.sort=function(Ee){return arguments.length?(V=Ee,xe):V},xe.children=function(Ee){return arguments.length?(ie=Ee,xe):ie},xe.value=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe.revalue=function(Ee){return ge&&(vd(Ee,function(Ne){Ne.children&&(Ne.value=0)}),cs(Ee,function(Ne){var et;Ne.children||(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),(et=Ne.parent)&&(et.value+=Ne.value)})),Ee},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ie=[1,1];function ge(Ne,et,rt,dt){var gt=Ne.children;if(Ne.x=et,Ne.y=Ne.depth*dt,Ne.dx=rt,Ne.dy=dt,gt&&(Rt=gt.length)){var Rt,Mt,Xt,dn=-1;for(rt=Ne.value?rt/Ne.value:0;++dnrt&&(rt=xe),et.push(xe)}for(ge=0;geEe&&(xe=ge,Ee=ie);return xe}function _f(V){return V.reduce($f,0)}function $f(V,ie){return V+ie[1]}function ih(V,ie){return yu(V,Math.ceil(Math.log(ie.length)/Math.LN2+1))}function yu(V,ie){for(var ge=-1,xe=+V[0],Ee=(V[1]-xe)/ie,Ne=[];++ge<=ie;)Ne[ge]=Ee*ge+xe;return Ne}function jc(V){return[i.min(V),i.max(V)]}function Nh(V,ie){return V.value-ie.value}function af(V,ie){var ge=V._pack_next;V._pack_next=ie,ie._pack_prev=V,ie._pack_next=ge,ge._pack_prev=ie}function td(V,ie){V._pack_next=ie,ie._pack_prev=V}function sf(V,ie){var ge=ie.x-V.x,xe=ie.y-V.y,Ee=V.r+ie.r;return .999*Ee*Ee>ge*ge+xe*xe}function Bc(V){if((ie=V.children)&&(dt=ie.length)){var ie,ge,xe,Ee,Ne,et,rt,dt,gt=1/0,Rt=-1/0,Mt=1/0,Xt=-1/0;if(ie.forEach(Vd),(ge=ie[0]).x=-ge.r,ge.y=0,pn(ge),dt>1&&((xe=ie[1]).x=xe.r,xe.y=0,pn(xe),dt>2))for(gs(ge,xe,Ee=ie[2]),pn(Ee),af(ge,Ee),ge._pack_prev=Ee,af(Ee,xe),xe=ge._pack_next,Ne=3;Ne0)for(et=-1;++et=Mt[0]&&dt<=Mt[1]&&((rt=gt[i.bisect(Xt,dt,1,bn)-1]).y+=vn,rt.push(Ne[et]));return gt}return Ee.value=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.range=function(Ne){return arguments.length?(ge=to(Ne),Ee):ge},Ee.bins=function(Ne){return arguments.length?(xe=typeof Ne=="number"?function(et){return yu(et,Ne)}:to(Ne),Ee):xe},Ee.frequency=function(Ne){return arguments.length?(V=!!Ne,Ee):V},Ee},i.layout.pack=function(){var V,ie=i.layout.hierarchy().sort(Nh),ge=0,xe=[1,1];function Ee(Ne,et){var rt=ie.call(this,Ne,et),dt=rt[0],gt=xe[0],Rt=xe[1],Mt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,cs(dt,function(dn){dn.r=+Mt(dn.value)}),cs(dt,Bc),ge){var Xt=ge*(V?1:Math.max(2*dt.r/gt,2*dt.r/Rt))/2;cs(dt,function(dn){dn.r+=Xt}),cs(dt,Bc),cs(dt,function(dn){dn.r-=Xt})}return vc(dt,gt/2,Rt/2,V?1:1/Math.max(2*dt.r/gt,2*dt.r/Rt)),rt}return Ee.size=function(Ne){return arguments.length?(xe=Ne,Ee):xe},Ee.radius=function(Ne){return arguments.length?(V=Ne==null||typeof Ne=="function"?Ne:+Ne,Ee):V},Ee.padding=function(Ne){return arguments.length?(ge=+Ne,Ee):ge},Bu(Ee,ie)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=null;function Ee(dt,gt){var Rt=V.call(this,dt,gt),Mt=Rt[0],Xt=function(pn){for(var In,Ir={A:null,children:[pn]},Pr=[Ir];(In=Pr.pop())!=null;)for(var Gr,ro=In.children,po=0,Wo=ro.length;pobn.x&&(bn=pn),pn.depth>vn.depth&&(vn=pn)});var Ln=ie(dn,bn)/2-dn.x,gn=ge[0]/(bn.x+ie(bn,dn)/2+Ln),Jn=ge[1]/(vn.depth||1);vd(Mt,function(pn){pn.x=(pn.x+Ln)*gn,pn.y=pn.depth*Jn})}return Rt}function Ne(dt){var gt=dt.children,Rt=dt.parent.children,Mt=dt.i?Rt[dt.i-1]:null;if(gt.length){(function(dn){for(var bn,vn=0,Ln=0,gn=dn.children,Jn=gn.length;--Jn>=0;)(bn=gn[Jn]).z+=vn,bn.m+=vn,vn+=bn.s+(Ln+=bn.c)})(dt);var Xt=(gt[0].z+gt[gt.length-1].z)/2;Mt?(dt.z=Mt.z+ie(dt._,Mt._),dt.m=dt.z-Xt):dt.z=Xt}else Mt&&(dt.z=Mt.z+ie(dt._,Mt._));dt.parent.A=function(dn,bn,vn){if(bn){for(var Ln,gn=dn,Jn=dn,pn=bn,In=gn.parent.children[0],Ir=gn.m,Pr=Jn.m,Gr=pn.m,ro=In.m;pn=Nu(pn),gn=Cc(gn),pn&&gn;)In=Cc(In),(Jn=Nu(Jn)).a=dn,(Ln=pn.z+Gr-gn.z-Ir+ie(pn._,gn._))>0&&(Gs(Ks(pn,dn,vn),dn,Ln),Ir+=Ln,Pr+=Ln),Gr+=pn.m,Ir+=gn.m,ro+=In.m,Pr+=Jn.m;pn&&!Nu(Jn)&&(Jn.t=pn,Jn.m+=Gr-Pr),gn&&!Cc(In)&&(In.t=gn,In.m+=Ir-ro,vn=dn)}return vn}(dt,Mt,dt.parent.A||Rt[0])}function et(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Ee.separation=function(dt){return arguments.length?(ie=dt,Ee):ie},Ee.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Ee):xe?null:ge},Ee.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Ee):xe?ge:null},Bu(Ee,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=!1;function Ee(Ne,et){var rt,dt=V.call(this,Ne,et),gt=dt[0],Rt=0;cs(gt,function(vn){var Ln=vn.children;Ln&&Ln.length?(vn.x=function(gn){return gn.reduce(function(Jn,pn){return Jn+pn.x},0)/gn.length}(Ln),vn.y=function(gn){return 1+i.max(gn,function(Jn){return Jn.y})}(Ln)):(vn.x=rt?Rt+=ie(vn,rt):0,vn.y=0,rt=vn)});var Mt=Ac(gt),Xt=_d(gt),dn=Mt.x-ie(Mt,Xt)/2,bn=Xt.x+ie(Xt,Mt)/2;return cs(gt,xe?function(vn){vn.x=(vn.x-gt.x)*ge[0],vn.y=(gt.y-vn.y)*ge[1]}:function(vn){vn.x=(vn.x-dn)/(bn-dn)*ge[0],vn.y=(1-(gt.y?vn.y/gt.y:1))*ge[1]}),dt}return Ee.separation=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.size=function(Ne){return arguments.length?(xe=(ge=Ne)==null,Ee):xe?null:ge},Ee.nodeSize=function(Ne){return arguments.length?(xe=(ge=Ne)!=null,Ee):xe?ge:null},Bu(Ee,V)},i.layout.treemap=function(){var V,ie=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Ee=null,Ne=Fh,et=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function gt(vn,Ln){for(var gn,Jn,pn=-1,In=vn.length;++pn0;)Ir.push(gn=Pr[pn-1]),Ir.area+=gn.area,rt!=="squarify"||(Jn=Xt(Ir,ro))<=Gr?(Pr.pop(),Gr=Jn):(Ir.area-=Ir.pop().area,dn(Ir,ro,In,!1),ro=Math.min(In.dx,In.dy),Ir.length=Ir.area=0,Gr=1/0);Ir.length&&(dn(Ir,ro,In,!0),Ir.length=Ir.area=0),Ln.forEach(Rt)}}function Mt(vn){var Ln=vn.children;if(Ln&&Ln.length){var gn,Jn=Ne(vn),pn=Ln.slice(),In=[];for(gt(pn,Jn.dx*Jn.dy/vn.value),In.area=0;gn=pn.pop();)In.push(gn),In.area+=gn.area,gn.z!=null&&(dn(In,gn.z?Jn.dx:Jn.dy,Jn,!pn.length),In.length=In.area=0);Ln.forEach(Mt)}}function Xt(vn,Ln){for(var gn,Jn=vn.area,pn=0,In=1/0,Ir=-1,Pr=vn.length;++Irpn&&(pn=gn));return Ln*=Ln,(Jn*=Jn)?Math.max(Ln*pn*dt/Jn,Jn/(Ln*In*dt)):1/0}function dn(vn,Ln,gn,Jn){var pn,In=-1,Ir=vn.length,Pr=gn.x,Gr=gn.y,ro=Ln?ge(vn.area/Ln):0;if(Ln==gn.dx){for((Jn||ro>gn.dy)&&(ro=gn.dy);++Ingn.dx)&&(ro=gn.dx);++In1);return V+ie*xe*Math.sqrt(-2*Math.log(Ne)/Ne)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ie=i.random.irwinHall(V);return function(){return ie()/V}},irwinHall:function(V){return function(){for(var ie=0,ge=0;ge2?cl:Au,gt=xe?rh:Lp;return Ee=dt(V,ie,gt,ge),Ne=dt(ie,V,gt,iu),rt}function rt(dt){return Ee(dt)}return rt.invert=function(dt){return Ne(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),et()):V},rt.range=function(dt){return arguments.length?(ie=dt,et()):ie},rt.rangeRound=function(dt){return rt.range(dt).interpolate(Gh)},rt.clamp=function(dt){return arguments.length?(xe=dt,et()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,et()):ge},rt.ticks=function(dt){return wi(V,dt)},rt.tickFormat=function(dt,gt){return d3_scale_linearTickFormat(V,dt,gt)},rt.nice=function(dt){return Qc(V,dt),et()},rt.copy=function(){return bc(V,ie,ge,xe)},et()}function nc(V,ie){return i.rebind(V,ie,"range","rangeRound","interpolate","clamp")}function Qc(V,ie){return lf(V,wf(ts(V,ie)[2])),lf(V,wf(ts(V,ie)[2])),V}function ts(V,ie){ie==null&&(ie=10);var ge=vp(V),xe=ge[1]-ge[0],Ee=Math.pow(10,Math.floor(Math.log(xe/ie)/Math.LN10)),Ne=ie/xe*Ee;return Ne<=.15?Ee*=10:Ne<=.35?Ee*=5:Ne<=.75&&(Ee*=2),ge[0]=Math.ceil(ge[0]/Ee)*Ee,ge[1]=Math.floor(ge[1]/Ee)*Ee+.5*Ee,ge[2]=Ee,ge}function wi(V,ie){return i.range.apply(i,ts(V,ie))}function bu(V,ie,ge,xe){function Ee(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ie)}function Ne(rt){return ge?Math.pow(ie,rt):-Math.pow(ie,-rt)}function et(rt){return V(Ee(rt))}return et.invert=function(rt){return Ne(V.invert(rt))},et.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Ee)),et):xe},et.base=function(rt){return arguments.length?(ie=+rt,V.domain(xe.map(Ee)),et):ie},et.nice=function(){var rt=lf(xe.map(Ee),ge?Math:wd);return V.domain(rt),xe=rt.map(Ne),et},et.ticks=function(){var rt=vp(xe),dt=[],gt=rt[0],Rt=rt[1],Mt=Math.floor(Ee(gt)),Xt=Math.ceil(Ee(Rt)),dn=ie%1?2:ie;if(isFinite(Xt-Mt)){if(ge){for(;Mt0;bn--)dt.push(Ne(Mt)*bn);for(Mt=0;dt[Mt]Rt;Xt--);dt=dt.slice(Mt,Xt)}return dt},et.copy=function(){return bu(V.copy(),ie,ge,xe)},nc(et,V)}i.scale.linear=function(){return bc([0,1],[0,1],iu,!1)},i.scale.log=function(){return bu(i.scale.linear().domain([0,1]),10,!0,[1,10])};var wd={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function Ol(V,ie,ge){var xe=ds(ie),Ee=ds(1/ie);function Ne(et){return V(xe(et))}return Ne.invert=function(et){return Ee(V.invert(et))},Ne.domain=function(et){return arguments.length?(V.domain((ge=et.map(Number)).map(xe)),Ne):ge},Ne.ticks=function(et){return wi(ge,et)},Ne.tickFormat=function(et,rt){return d3_scale_linearTickFormat(ge,et,rt)},Ne.nice=function(et){return Ne.domain(Qc(ge,et))},Ne.exponent=function(et){return arguments.length?(xe=ds(ie=et),Ee=ds(1/ie),V.domain(ge.map(xe)),Ne):ie},Ne.copy=function(){return Ol(V.copy(),ie,ge)},nc(Ne,V)}function ds(V){return function(ie){return ie<0?-Math.pow(-ie,V):Math.pow(ie,V)}}function zc(V,ie){var ge,xe,Ee;function Ne(rt){return xe[((ge.get(rt)||(ie.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function et(rt,dt){return i.range(V.length).map(function(gt){return rt+dt*gt})}return Ne.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,gt=-1,Rt=rt.length;++gt0?ge[Ne-1]:V[0],NeXt?0:1;if(Rt=Sn)return dt(Rt,bn)+(gt?dt(gt,1-bn):"")+"Z";var vn,Ln,gn,Jn,pn,In,Ir,Pr,Gr,ro,po,Wo,si=0,Bo=0,Go=[];if((Jn=(+et.apply(this,arguments)||0)/2)&&(gn=xe===zl?Math.sqrt(gt*gt+Rt*Rt):+xe.apply(this,arguments),bn||(Bo*=-1),Rt&&(Bo=bt(gn/Rt*Math.sin(Jn))),gt&&(si=bt(gn/gt*Math.sin(Jn)))),Rt){pn=Rt*Math.cos(Mt+Bo),In=Rt*Math.sin(Mt+Bo),Ir=Rt*Math.cos(Xt-Bo),Pr=Rt*Math.sin(Xt-Bo);var Yo=Math.abs(Xt-Mt-2*Bo)<=Cn?0:1;if(Bo&&al(pn,In,Ir,Pr)===bn^Yo){var Wi=(Mt+Xt)/2;pn=Rt*Math.cos(Wi),In=Rt*Math.sin(Wi),Ir=Pr=null}}else pn=In=0;if(gt){Gr=gt*Math.cos(Xt-si),ro=gt*Math.sin(Xt-si),po=gt*Math.cos(Mt+si),Wo=gt*Math.sin(Mt+si);var Ho=Math.abs(Mt-Xt+2*si)<=Cn?0:1;if(si&&al(Gr,ro,po,Wo)===1-bn^Ho){var jo=(Mt+Xt)/2;Gr=gt*Math.cos(jo),ro=gt*Math.sin(jo),po=Wo=null}}else Gr=ro=0;if(dn>Ot&&(vn=Math.min(Math.abs(Rt-gt)/2,+ge.apply(this,arguments)))>.001){Ln=gt0?0:1}function Yl(V,ie,ge,xe,Ee){var Ne=V[0]-ie[0],et=V[1]-ie[1],rt=(Ee?xe:-xe)/Math.sqrt(Ne*Ne+et*et),dt=rt*et,gt=-rt*Ne,Rt=V[0]+dt,Mt=V[1]+gt,Xt=ie[0]+dt,dn=ie[1]+gt,bn=(Rt+Xt)/2,vn=(Mt+dn)/2,Ln=Xt-Rt,gn=dn-Mt,Jn=Ln*Ln+gn*gn,pn=ge-xe,In=Rt*dn-Xt*Mt,Ir=(gn<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*Jn-In*In)),Pr=(In*gn-Ln*Ir)/Jn,Gr=(-In*Ln-gn*Ir)/Jn,ro=(In*gn+Ln*Ir)/Jn,po=(-In*Ln+gn*Ir)/Jn,Wo=Pr-bn,si=Gr-vn,Bo=ro-bn,Go=po-vn;return Wo*Wo+si*si>Bo*Bo+Go*Go&&(Pr=ro,Gr=po),[[Pr-dt,Gr-gt],[Pr*ge/pn,Gr*ge/pn]]}function uf(){return!0}function hs(V){var ie=go,ge=oo,xe=uf,Ee=Eu,Ne=Ee.key,et=.7;function rt(dt){var gt,Rt=[],Mt=[],Xt=-1,dn=dt.length,bn=to(ie),vn=to(ge);function Ln(){Rt.push("M",Ee(V(Mt),et))}for(;++Xt1&&Ee.push("H",xe[0]),Ee.join("")},"step-before":ws,"step-after":Fu,basis:Ls,"basis-open":function(V){if(V.length<4)return Eu(V);for(var ie,ge=[],xe=-1,Ee=V.length,Ne=[0],et=[0];++xe<3;)ie=V[xe],Ne.push(ie[0]),et.push(ie[1]);for(ge.push(Ec(Kt,Ne)+","+Ec(Kt,et)),--xe;++xe9&&(Ne=3*ge/Math.sqrt(Ne),rt[dt]=Ne*xe,rt[dt+1]=Ne*Ee);for(dt=-1;++dt<=gt;)Ne=(ie[Math.min(gt,dt+1)][0]-ie[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),et.push([Ne||0,rt[dt]*Ne||0]);return et}(V))}});function Eu(V){return V.length>1?V.join("L"):V+"Z"}function xu(V){return V.join("L")+"Z"}function ws(V){for(var ie=0,ge=V.length,xe=V[0],Ee=[xe[0],",",xe[1]];++ie1){rt=ie[1],Ne=V[dt],dt++,xe+="C"+(Ee[0]+et[0])+","+(Ee[1]+et[1])+","+(Ne[0]-rt[0])+","+(Ne[1]-rt[1])+","+Ne[0]+","+Ne[1];for(var gt=2;gtCn)+",1 "+Rt}function dt(gt,Rt,Mt,Xt){return"Q 0,0 "+Xt}return Ne.radius=function(gt){return arguments.length?(ge=to(gt),Ne):ge},Ne.source=function(gt){return arguments.length?(V=to(gt),Ne):V},Ne.target=function(gt){return arguments.length?(ie=to(gt),Ne):ie},Ne.startAngle=function(gt){return arguments.length?(xe=to(gt),Ne):xe},Ne.endAngle=function(gt){return arguments.length?(Ee=to(gt),Ne):Ee},Ne},i.svg.diagonal=function(){var V=Bi,ie=ya,ge=Qi;function xe(Ee,Ne){var et=V.call(this,Ee,Ne),rt=ie.call(this,Ee,Ne),dt=(et.y+rt.y)/2,gt=[et,{x:et.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(gt=gt.map(ge))[0]+"C"+gt[1]+" "+gt[2]+" "+gt[3]}return xe.source=function(Ee){return arguments.length?(V=to(Ee),xe):V},xe.target=function(Ee){return arguments.length?(ie=to(Ee),xe):ie},xe.projection=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ie=Qi,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Ee){return function(){var Ne=Ee.apply(this,arguments),et=Ne[0],rt=Ne[1]-vt;return[et*Math.cos(rt),et*Math.sin(rt)]}}(ie=xe)):ie},V},i.svg.symbol=function(){var V=nl,ie=Ws;function ge(xe,Ee){return(Wu.get(V.call(this,xe,Ee))||Fs)(ie.call(this,xe,Ee))}return ge.type=function(xe){return arguments.length?(V=to(xe),ge):V},ge.size=function(xe){return arguments.length?(ie=to(xe),ge):ie},ge};var Wu=i.map({circle:Fs,cross:function(V){var ie=Math.sqrt(V/5)/2;return"M"+-3*ie+","+-ie+"H"+-ie+"V"+-3*ie+"H"+ie+"V"+-ie+"H"+3*ie+"V"+ie+"H"+ie+"V"+3*ie+"H"+-ie+"V"+ie+"H"+-3*ie+"Z"},diamond:function(V){var ie=Math.sqrt(V/(2*Aa)),ge=ie*Aa;return"M0,"+-ie+"L"+ge+",0 0,"+ie+" "+-ge+",0Z"},square:function(V){var ie=Math.sqrt(V)/2;return"M"+-ie+","+-ie+"L"+ie+","+-ie+" "+ie+","+ie+" "+-ie+","+ie+"Z"},"triangle-down":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+ge+"L"+ie+","+-ge+" "+-ie+","+-ge+"Z"},"triangle-up":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+-ge+"L"+ie+","+ge+" "+-ie+","+ge+"Z"}});i.svg.symbolTypes=Wu.keys();var Ki=Math.sqrt(3),Aa=Math.tan(30*xt);Te.transition=function(V){for(var ie,ge,xe=_c||++Pc,Ee=Si(V),Ne=[],et=Xl||{time:Date.now(),ease:Wl,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)gt[--gn].call(V,Ln);if(vn>=1)return Mt.event&&Mt.event.end.call(V,V.__data__,ie),--Rt.count?delete Rt[xe]:delete V[ge],1}Mt||(Ne=Ee.time,et=ar(function(bn){var vn=Mt.delay;if(et.t=vn+Ne,vn<=bn)return Xt(bn-vn);et.c=Xt},0,Ne),Mt=Rt[xe]={tween:new L,time:Ne,timer:et,delay:Ee.delay,duration:Ee.duration,ease:Ee.ease,index:ie},Ee=null,++Rt.count)}pl.call=Te.call,pl.empty=Te.empty,pl.node=Te.node,pl.size=Te.size,i.transition=function(V,ie){return V&&V.transition?_c?V.transition(ie):V:i.selection().transition(V)},i.transition.prototype=pl,pl.select=function(V){var ie,ge,xe,Ee=this.id,Ne=this.namespace,et=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Ne[1]-Ne[0])}function dn(vn){vn.select(".extent").attr("y",et[0]),vn.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function bn(){var vn,Ln,gn=this,Jn=i.select(i.event.target),pn=ge.of(gn,arguments),In=i.select(gn),Ir=Jn.datum(),Pr=!/^(n|s)$/.test(Ir)&&xe,Gr=!/^(e|w)$/.test(Ir)&&Ee,ro=Jn.classed("extent"),po=Yt(gn),Wo=i.mouse(gn),si=i.select(a(gn)).on("keydown.brush",function(){i.event.keyCode==32&&(ro||(vn=null,Wo[0]-=Ne[1],Wo[1]-=et[1],ro=2),pe())}).on("keyup.brush",function(){i.event.keyCode==32&&ro==2&&(Wo[0]+=Ne[1],Wo[1]+=et[1],ro=0,pe())});if(i.event.changedTouches?si.on("touchmove.brush",Yo).on("touchend.brush",Ho):si.on("mousemove.brush",Yo).on("mouseup.brush",Ho),In.interrupt().selectAll("*").interrupt(),ro)Wo[0]=Ne[0]-Wo[0],Wo[1]=et[0]-Wo[1];else if(Ir){var Bo=+/w$/.test(Ir),Go=+/^n/.test(Ir);Ln=[Ne[1-Bo]-Wo[0],et[1-Go]-Wo[1]],Wo[0]=Ne[Bo],Wo[1]=et[Go]}else i.event.altKey&&(vn=Wo.slice());function Yo(){var jo=i.mouse(gn),Yi=!1;Ln&&(jo[0]+=Ln[0],jo[1]+=Ln[1]),ro||(i.event.altKey?(vn||(vn=[(Ne[0]+Ne[1])/2,(et[0]+et[1])/2]),Wo[0]=Ne[+(jo[0](Ae=1))return Ae;for(;uent?ue=He:Ae=He,He=.5*(Ae-ue)+ue}return He},m.prototype.solve=function(F,G){return this.sampleCurveY(this.solveCurveX(F,G))};var a=c;function c(F,G){this.x=F,this.y=G}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(F){return this.clone()._add(F)},sub:function(F){return this.clone()._sub(F)},multByPoint:function(F){return this.clone()._multByPoint(F)},divByPoint:function(F){return this.clone()._divByPoint(F)},mult:function(F){return this.clone()._mult(F)},div:function(F){return this.clone()._div(F)},rotate:function(F){return this.clone()._rotate(F)},rotateAround:function(F,G){return this.clone()._rotateAround(F,G)},matMult:function(F){return this.clone()._matMult(F)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(F){return this.x===F.x&&this.y===F.y},dist:function(F){return Math.sqrt(this.distSqr(F))},distSqr:function(F){var G=F.x-this.x,ue=F.y-this.y;return G*G+ue*ue},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(F){return Math.atan2(this.y-F.y,this.x-F.x)},angleWith:function(F){return this.angleWithSep(F.x,F.y)},angleWithSep:function(F,G){return Math.atan2(this.x*G-this.y*F,this.x*F+this.y*G)},_matMult:function(F){var G=F[0]*this.x+F[1]*this.y,ue=F[2]*this.x+F[3]*this.y;return this.x=G,this.y=ue,this},_add:function(F){return this.x+=F.x,this.y+=F.y,this},_sub:function(F){return this.x-=F.x,this.y-=F.y,this},_mult:function(F){return this.x*=F,this.y*=F,this},_div:function(F){return this.x/=F,this.y/=F,this},_multByPoint:function(F){return this.x*=F.x,this.y*=F.y,this},_divByPoint:function(F){return this.x/=F.x,this.y/=F.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var F=this.y;return this.y=this.x,this.x=-F,this},_rotate:function(F){var G=Math.cos(F),ue=Math.sin(F),Ae=G*this.x-ue*this.y,He=ue*this.x+G*this.y;return this.x=Ae,this.y=He,this},_rotateAround:function(F,G){var ue=Math.cos(F),Ae=Math.sin(F),He=G.x+ue*(this.x-G.x)-Ae*(this.y-G.y),nt=G.y+Ae*(this.x-G.x)+ue*(this.y-G.y);return this.x=He,this.y=nt,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(F){return F instanceof c?F:Array.isArray(F)?new c(F[0],F[1]):F};var h=typeof self<"u"?self:{},p=Math.pow(2,53)-1;function v(F,G,ue,Ae){var He=new y(F,G,ue,Ae);return function(nt){return He.solve(nt)}}var _=v(.25,.1,.25,1);function O(F,G,ue){return Math.min(ue,Math.max(G,F))}function C(F,G,ue){var Ae=ue-G,He=((F-G)%Ae+Ae)%Ae+G;return He===G?ue:He}function x(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,F)}()}function P(F){return!!F&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(F)}function A(F,G){F.forEach(function(ue){G[ue]&&(G[ue]=G[ue].bind(G))})}function L(F,G){return F.indexOf(G,F.length-G.length)!==-1}function D(F,G,ue){var Ae={};for(var He in F)Ae[He]=G.call(ue||this,F[He],He,F);return Ae}function k(F,G,ue){var Ae={};for(var He in F)G.call(ue||this,F[He],He,F)&&(Ae[He]=F[He]);return Ae}function I(F){return Array.isArray(F)?F.map(I):typeof F=="object"&&F?D(F,I):F}var z={};function $(F){z[F]||(typeof console<"u"&&console.warn(F),z[F]=!0)}function Q(F,G,ue){return(ue.y-F.y)*(G.x-F.x)>(G.y-F.y)*(ue.x-F.x)}function j(F){for(var G=0,ue=0,Ae=F.length,He=Ae-1,nt=void 0,ct=void 0;ue@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,He,nt,ct){var Pt=nt||ct;return G[He]=!Pt||Pt.toLowerCase(),""}),G["max-age"]){var ue=parseInt(G["max-age"],10);isNaN(ue)?delete G["max-age"]:G["max-age"]=ue}return G}var te=null;function Z(F){if(te==null){var G=F.navigator?F.navigator.userAgent:null;te=!!F.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(F){try{var G=h[F];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var re,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),pe=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(F){var G=pe(F);return{cancel:function(){return se(G)}}},getImageData:function(F,G){G===void 0&&(G=0);var ue=h.document.createElement("canvas"),Ae=ue.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return ue.width=F.width,ue.height=F.height,Ae.drawImage(F,0,0,F.width,F.height),Ae.getImageData(-G,-G,F.width+2*G,F.height+2*G)},resolveURL:function(F){return re||(re=h.document.createElement("a")),re.href=F,re.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(F){!ye&&ee&&(ve?_e(F):Y=F)}},ye=!1,ve=!1;function _e(F){var G=F.createTexture();F.bindTexture(F.TEXTURE_2D,G);try{if(F.texImage2D(F.TEXTURE_2D,0,F.RGBA,F.RGBA,F.UNSIGNED_BYTE,ee),F.isContextLost())return;de.supported=!0}catch{}F.deleteTexture(G),ye=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ve=!0},ee.onerror=function(){ye=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var we="01",Te=function(F,G){this._transformRequestFn=F,this._customAccessToken=G,this._createSkuToken()};function Pe(F){return F.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var F=function(){for(var G="",ue=0;ue<10;ue++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",we,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=F.token,this._skuTokenExpiresAt=F.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(F,G){return this._transformRequestFn&&this._transformRequestFn(F,G)||{url:F}},Te.prototype.normalizeStyleURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(F,G,ue,Ae){var He=Qe(F);return Pe(F)?(He.path="/styles/v1"+He.path+"/sprite"+G+ue,this._makeAPIURL(He,this._customAccessToken||Ae)):(He.path+=""+G+ue,Ve(He))},Te.prototype.normalizeTileURL=function(F,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),F&&!Pe(F))return F;var ue=Qe(F),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",He=de.supported?".webp":"$1";ue.path=ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+He),ue.path=ue.path.replace(/^.+\/v4\//,"/"),ue.path="/v4"+ue.path;var nt=this._customAccessToken||function(ct){for(var Pt=0,jt=ct;Pt=0&&F.params.splice(He,1)}if(Ae.path!=="/"&&(F.path=""+Ae.path+F.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(F);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+ue);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return F.params=F.params.filter(function(nt){return nt.indexOf("access_token")===-1}),F.params.push("access_token="+G),Ve(F)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(F){return Ie.test(F)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Qe(F){var G=F.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(F){var G=F.params.length?"?"+F.params.join("&"):"";return F.protocol+"://"+F.authority+F.path+G}var $e="mapbox.eventData";function Oe(F){if(!F)return null;var G,ue=F.split(".");if(!ue||ue.length!==3)return null;try{return JSON.parse((G=ue[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(F){this.type=F,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(F){var G,ue,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(ue=Ae.u,h.btoa(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(He,nt){return String.fromCharCode(+("0x"+nt))}))):ce.ACCESS_TOKEN||"",F?$e+"."+F+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var He=h.localStorage.getItem(ue);He&&(this.anonId=He)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{h.localStorage.setItem(ue,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(F){},ke.prototype.postEvent=function(F,G,ue,Ae){var He=this;if(ce.EVENTS_URL){var nt=Qe(ce.EVENTS_URL);nt.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(F).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:we,userId:this.anonId},Pt=G?x(ct,G):ct,jt={url:Ve(nt),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Sn(jt,function(hn){He.pendingRequest=null,ue(hn),He.saveEventData(),He.processRequests(Ae)})}},ke.prototype.queueRequest=function(F,G){this.queue.push(F),this.processRequests(G)};var Re,We,Ue=function(F){function G(){F.call(this,"map.load"),this.success={},this.skuToken=""}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(ue,Ae,He,nt){this.skuToken=He,(ce.EVENTS_URL&&nt||ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(ct){return Pe(ct)||ze(ct)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},nt)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var He=this.queue.shift(),nt=He.id,ct=He.timestamp;nt&&this.success[nt]||(this.anonId||this.fetchEventData(),P(this.anonId)||(this.anonId=T()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||nt&&(Ae.success[nt]=!0)},ue))}},G}(ke),Ze=function(F){function G(ue){F.call(this,"appUserTurnstile"),this._customAccessToken=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(ue,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(He){return Pe(He)||ze(He)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var He=Oe(ce.ACCESS_TOKEN),nt=He?He.u:ce.ACCESS_TOKEN,ct=nt!==this.eventData.tokenU;P(this.anonId)||(this.anonId=T(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var jt=new Date(this.eventData.lastSuccess),hn=new Date(Pt),mn=(Pt-this.eventData.lastSuccess)/864e5;ct=ct||mn>=1||mn<-1||jt.getDate()!==hn.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Dn){Dn||(Ae.eventData.lastSuccess=Pt,Ae.eventData.tokenU=nt)},ue)}},G}(ke),Ye=new Ze,Je=Ye.postTurnstileEvent.bind(Ye),Me=new Ue,Fe=Me.postMapLoadEvent.bind(Me),je="mapbox-tiles",tt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Re&&(Re=h.caches.open(je))}function pt(F,G,ue){if(ht(),Re){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(nt,ct){return Ae.headers.set(ct,nt)});var He=X(G.headers.get("Cache-Control")||"");He["no-store"]||(He["max-age"]&&Ae.headers.set("Expires",new Date(ue+1e3*He["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-ueDate.now()&&!jt["no-cache"]}(He);Ae.delete(ue),nt&&Ae.put(ue,He.clone()),G(null,He,nt)}).catch(G)}).catch(G)}var zt,Yt=1/0;function ln(){return zt==null&&(zt=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),zt}var tn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(tn);var Et=function(F){function G(ue,Ae,He){Ae===401&&ze(He)&&(ue+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),F.call(this,ue),this.status=Ae,this.url=He,this.name=this.constructor.name,this.message=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),Ot=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function cn(F,G){var ue,Ae=new h.AbortController,He=new h.Request(F.url,{method:F.method||"GET",body:F.body,credentials:F.credentials,headers:F.headers,referrer:Ot(),signal:Ae.signal}),nt=!1,ct=!1,Pt=(ue=He.url).indexOf("sku=")>0&&ze(ue);F.type==="json"&&He.headers.set("Accept","application/json");var jt=function(mn,Dn,Xn){if(!ct){if(mn&&mn.message!=="SecurityError"&&$(mn),Dn&&Xn)return hn(Dn);var $n=Date.now();h.fetch(He).then(function(mr){if(mr.ok){var Or=Pt?mr.clone():null;return hn(mr,Or,$n)}return G(new Et(mr.statusText,mr.status,F.url))}).catch(function(mr){mr.code!==20&&G(new Error(mr.message))})}},hn=function(mn,Dn,Xn){(F.type==="arrayBuffer"?mn.arrayBuffer():F.type==="json"?mn.json():mn.text()).then(function($n){ct||(Dn&&Xn&&pt(He,Dn,Xn),nt=!0,G(null,$n,mn.headers.get("Cache-Control"),mn.headers.get("Expires")))}).catch(function($n){ct||G(new Error($n.message))})};return Pt?Ft(He,jt):jt(null,null),{cancel:function(){ct=!0,nt||Ae.abort()}}}var Cn=function(F,G){if(ue=F.url,!(/^file:/.test(ue)||/^file:/.test(Ot())&&!/^\w+:/.test(ue))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return cn(F,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",F,G,void 0,!0)}var ue;return function(Ae,He){var nt=new h.XMLHttpRequest;for(var ct in nt.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(nt.responseType="arraybuffer"),Ae.headers)nt.setRequestHeader(ct,Ae.headers[ct]);return Ae.type==="json"&&(nt.responseType="text",nt.setRequestHeader("Accept","application/json")),nt.withCredentials=Ae.credentials==="include",nt.onerror=function(){He(new Error(nt.statusText))},nt.onload=function(){if((nt.status>=200&&nt.status<300||nt.status===0)&&nt.response!==null){var Pt=nt.response;if(Ae.type==="json")try{Pt=JSON.parse(nt.response)}catch(jt){return He(jt)}He(null,Pt,nt.getResponseHeader("Cache-Control"),nt.getResponseHeader("Expires"))}else He(new Et(nt.statusText,nt.status,Ae.url))},nt.send(Ae.body),{cancel:function(){return nt.abort()}}}(F,G)},Pn=function(F,G){return Cn(x(F,{type:"arrayBuffer"}),G)},Sn=function(F,G){return Cn(x(F,{method:"POST"}),G)},vt,xt,st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],xt=0;var bt=function(F,G){if(de.supported&&(F.headers||(F.headers={}),F.headers.accept="image/webp,*/*"),xt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var ue={requestParameters:F,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(ue),ue}xt++;var Ae=!1,He=function(){if(!Ae)for(Ae=!0,xt--;vt.length&&xt0||this._oneTimeListeners&&this._oneTimeListeners[F]&&this._oneTimeListeners[F].length>0||this._eventedParent&&this._eventedParent.listens(F)},Bt.prototype.setEventedParent=function(F,G){return this._eventedParent=F,this._eventedParentData=G,this};var _t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},qt=function(F,G,ue,Ae){this.message=(F?F+": ":"")+ue,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function en(F){var G=F.key,ue=F.value;return ue?[new qt(G,ue,"constants have been deprecated as of v8")]:[]}function Jt(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae":F.itemType.kind==="value"?"array":"array<"+G+">"}return F.kind}var gr=[_n,wn,An,Kn,fr,Br,Un,vr(Zn),$r];function sr(F,G){if(G.kind==="error")return null;if(F.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!sr(F.itemType,G.itemType))&&(typeof F.N!="number"||F.N===G.N))return null}else{if(F.kind===G.kind)return null;if(F.kind==="value"){for(var ue=0,Ae=gr;ue255?255:jt}function He(jt){return jt<0?0:jt>1?1:jt}function nt(jt){return jt[jt.length-1]==="%"?Ae(parseFloat(jt)/100*255):Ae(parseInt(jt))}function ct(jt){return jt[jt.length-1]==="%"?He(parseFloat(jt)/100):He(parseFloat(jt))}function Pt(jt,hn,mn){return mn<0?mn+=1:mn>1&&(mn-=1),6*mn<1?jt+(hn-jt)*mn*6:2*mn<1?hn:3*mn<2?jt+(hn-jt)*(2/3-mn)*6:jt}try{G.parseCSSColor=function(jt){var hn,mn=jt.replace(/ /g,"").toLowerCase();if(mn in ue)return ue[mn].slice();if(mn[0]==="#")return mn.length===4?(hn=parseInt(mn.substr(1),16))>=0&&hn<=4095?[(3840&hn)>>4|(3840&hn)>>8,240&hn|(240&hn)>>4,15&hn|(15&hn)<<4,1]:null:mn.length===7&&(hn=parseInt(mn.substr(1),16))>=0&&hn<=16777215?[(16711680&hn)>>16,(65280&hn)>>8,255&hn,1]:null;var Dn=mn.indexOf("("),Xn=mn.indexOf(")");if(Dn!==-1&&Xn+1===mn.length){var $n=mn.substr(0,Dn),mr=mn.substr(Dn+1,Xn-(Dn+1)).split(","),Or=1;switch($n){case"rgba":if(mr.length!==4)return null;Or=ct(mr.pop());case"rgb":return mr.length!==3?null:[nt(mr[0]),nt(mr[1]),nt(mr[2]),Or];case"hsla":if(mr.length!==4)return null;Or=ct(mr.pop());case"hsl":if(mr.length!==3)return null;var Kr=(parseFloat(mr[0])%360+360)%360/360,Hr=ct(mr[1]),fo=ct(mr[2]),mo=fo<=.5?fo*(Hr+1):fo+Hr-fo*Hr,Io=2*fo-mo;return[Ae(255*Pt(Io,mo,Kr+1/3)),Ae(255*Pt(Io,mo,Kr)),Ae(255*Pt(Io,mo,Kr-1/3)),Or];default:return null}}return null}}catch{}}),eo=Vr.parseCSSColor,Jr=function(F,G,ue,Ae){Ae===void 0&&(Ae=1),this.r=F,this.g=G,this.b=ue,this.a=Ae};Jr.parse=function(F){if(F){if(F instanceof Jr)return F;if(typeof F=="string"){var G=eo(F);if(G)return new Jr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Jr.prototype.toString=function(){var F=this.toArray(),G=F[0],ue=F[1],Ae=F[2],He=F[3];return"rgba("+Math.round(G)+","+Math.round(ue)+","+Math.round(Ae)+","+He+")"},Jr.prototype.toArray=function(){var F=this,G=F.r,ue=F.g,Ae=F.b,He=F.a;return He===0?[0,0,0,0]:[255*G/He,255*ue/He,255*Ae/He,He]},Jr.black=new Jr(0,0,0,1),Jr.white=new Jr(1,1,1,1),Jr.transparent=new Jr(0,0,0,0),Jr.red=new Jr(1,0,0,1);var Yr=function(F,G,ue){this.sensitivity=F?G?"variant":"case":G?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yr.prototype.compare=function(F,G){return this.collator.compare(F,G)},Yr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var to=function(F,G,ue,Ae,He){this.text=F,this.image=G,this.scale=ue,this.fontStack=Ae,this.textColor=He},co=function(F){this.sections=F};co.fromString=function(F){return new co([new to(F,null,null,null,null)])},co.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(F){return F.text.length!==0||F.image&&F.image.name.length!==0})},co.factory=function(F){return F instanceof co?F:co.fromString(F)},co.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(F){return F.text}).join("")},co.prototype.serialize=function(){for(var F=["format"],G=0,ue=this.sections;G=0&&F<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof ue=="number"&&ue>=0&&ue<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[F,G,ue,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[F,G,ue,Ae]:[F,G,ue]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function $o(F){if(F===null||typeof F=="string"||typeof F=="boolean"||typeof F=="number"||F instanceof Jr||F instanceof Yr||F instanceof co||F instanceof Fo)return!0;if(Array.isArray(F)){for(var G=0,ue=F;G2){var Pt=F[1];if(typeof Pt!="string"||!(Pt in Dr)||Pt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);nt=Dr[Pt],Ae++}else nt=Zn;if(F.length>3){if(F[2]!==null&&(typeof F[2]!="number"||F[2]<0||F[2]!==Math.floor(F[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ct=F[2],Ae++}ue=vr(nt,ct)}else ue=Dr[He];for(var jt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(He){return He.serialize()}))};var Zr=function(F){this.type=Br,this.sections=F};Zr.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[1];if(!Array.isArray(ue)&&typeof ue=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],He=!1,nt=1;nt<=F.length-1;++nt){var ct=F[nt];if(He&&typeof ct=="object"&&!Array.isArray(ct)){He=!1;var Pt=null;if(ct["font-scale"]&&!(Pt=G.parse(ct["font-scale"],1,wn)))return null;var jt=null;if(ct["text-font"]&&!(jt=G.parse(ct["text-font"],1,vr(An))))return null;var hn=null;if(ct["text-color"]&&!(hn=G.parse(ct["text-color"],1,fr)))return null;var mn=Ae[Ae.length-1];mn.scale=Pt,mn.font=jt,mn.textColor=hn}else{var Dn=G.parse(F[nt],1,Zn);if(!Dn)return null;var Xn=Dn.type.kind;if(Xn!=="string"&&Xn!=="value"&&Xn!=="null"&&Xn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");He=!0,Ae.push({content:Dn,scale:null,font:null,textColor:null})}}return new Zr(Ae)},Zr.prototype.evaluate=function(F){return new co(this.sections.map(function(G){var ue=G.content.evaluate(F);return Mo(ue)===$r?new to("",ue,null,null,null):new to(pi(ue),null,G.scale?G.scale.evaluate(F):null,G.font?G.font.evaluate(F).join(","):null,G.textColor?G.textColor.evaluate(F):null)}))},Zr.prototype.eachChild=function(F){for(var G=0,ue=this.sections;G-1),ue},go.prototype.eachChild=function(F){F(this.input)},go.prototype.outputDefined=function(){return!1},go.prototype.serialize=function(){return["image",this.input.serialize()]};var oo={"to-boolean":Kn,"to-color":fr,"to-number":wn,"to-string":An},io=function(F,G){this.type=F,this.args=G};io.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[0];if((ue==="to-boolean"||ue==="to-string")&&F.length!==2)return G.error("Expected one argument.");for(var Ae=oo[ue],He=[],nt=1;nt4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":_o(G[0],G[1],G[2],G[3])))return new Jr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new ar(ue||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ct=null,Pt=0,jt=this.args;Pt=G[2]||F[1]<=G[1]||F[3]>=G[3])}function Er(F,G){var ue,Ae=(180+F[0])/360,He=(ue=F[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ue*Math.PI/360)))/360),nt=Math.pow(2,G.z);return[Math.round(Ae*nt*Yn),Math.round(He*nt*Yn)]}function Gt(F,G,ue){return G[1]>F[1]!=ue[1]>F[1]&&F[0]<(ue[0]-G[0])*(F[1]-G[1])/(ue[1]-G[1])+G[0]}function on(F,G){for(var ue=!1,Ae=0,He=G.length;Ae0&&Dn<0||mn<0&&Dn>0}function zn(F,G,ue){for(var Ae=0,He=ue;Aeue[2]){var He=.5*Ae,nt=F[0]-ue[0]>He?-Ae:ue[0]-F[0]>He?Ae:0;nt===0&&(nt=F[0]-ue[2]>He?-Ae:ue[2]-F[0]>He?Ae:0),F[0]+=nt}ir(G,F)}function wo(F,G,ue,Ae){for(var He=Math.pow(2,Ae.z)*Yn,nt=[Ae.x*Yn,Ae.y*Yn],ct=[],Pt=0,jt=F;Pt=0)return!1;var ue=!0;return F.eachChild(function(Ae){ue&&!Mn(Ae,G)&&(ue=!1)}),ue}Eo.parse=function(F,G){if(F.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(F.length-1)+" instead.");if($o(F[1])){var ue=F[1];if(ue.type==="FeatureCollection")for(var Ae=0;AeG))throw new ar("Input is not a number.");ct=Pt-1}return 0}dr.prototype.parse=function(F,G,ue,Ae,He){return He===void 0&&(He={}),G?this.concat(G,ue,Ae)._parse(F,He):this._parse(F,He)},dr.prototype._parse=function(F,G){function ue(hn,mn,Dn){return Dn==="assert"?new Sr(mn,[hn]):Dn==="coerce"?new io(mn,[hn]):hn}if(F!==null&&typeof F!="string"&&typeof F!="boolean"&&typeof F!="number"||(F=["literal",F]),Array.isArray(F)){if(F.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=F[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var He=this.registry[Ae];if(He){var nt=He.parse(F,this);if(!nt)return null;if(this.expectedType){var ct=this.expectedType,Pt=nt.type;if(ct.kind!=="string"&&ct.kind!=="number"&&ct.kind!=="boolean"&&ct.kind!=="object"&&ct.kind!=="array"||Pt.kind!=="value")if(ct.kind!=="color"&&ct.kind!=="formatted"&&ct.kind!=="resolvedImage"||Pt.kind!=="value"&&Pt.kind!=="string"){if(this.checkSubtype(ct,Pt))return null}else nt=ue(nt,ct,G.typeAnnotation||"coerce");else nt=ue(nt,ct,G.typeAnnotation||"assert")}if(!(nt instanceof Hn)&&nt.type.kind!=="resolvedImage"&&xr(nt)){var jt=new jn;try{nt=new Hn(nt.type,nt.evaluate(jt))}catch(hn){return this.error(hn.message),null}}return nt}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return F===void 0?this.error("'undefined' value invalid. Use null instead."):typeof F=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof F+" instead.")},dr.prototype.concat=function(F,G,ue){var Ae=typeof F=="number"?this.path.concat(F):this.path,He=ue?this.scope.concat(ue):this.scope;return new dr(this.registry,Ae,G||null,He,this.errors)},dr.prototype.error=function(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];var Ae=""+this.key+G.map(function(He){return"["+He+"]"}).join("");this.errors.push(new sn(Ae,F))},dr.prototype.checkSubtype=function(F,G){var ue=sr(F,G);return ue&&this.error(ue),ue};var mi=function(F,G,ue){this.type=F,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,He=ue;Ae=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',jt);var mn=G.parse(Pt,hn,He);if(!mn)return null;He=He||mn.type,Ae.push([ct,mn])}return new mi(He,ue,Ae)},mi.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;return Ae>=G[He-1]?ue[He-1].evaluate(F):ue[Oo(G,Ae)].evaluate(F)},mi.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G0&&F.push(this.labels[G]),F.push(this.outputs[G].serialize());return F};var To=Object.freeze({__proto__:null,number:Di,color:function(F,G,ue){return new Jr(Di(F.r,G.r,ue),Di(F.g,G.g,ue),Di(F.b,G.b,ue),Di(F.a,G.a,ue))},array:function(F,G,ue){return F.map(function(Ae,He){return Di(Ae,G[He],ue)})}}),Ia=.95047,Ds=1,fs=1.08883,zi=4/29,yl=6/29,Bs=3*yl*yl,yf=yl*yl*yl,il=Math.PI/180,nf=180/Math.PI;function nh(F){return F>yf?Math.pow(F,.3333333333333333):F/Bs+zi}function gp(F){return F>yl?F*F*F:Bs*(F-zi)}function Qs(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,.4166666666666667)-.055)}function bh(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}function Bl(F){var G=bh(F.r),ue=bh(F.g),Ae=bh(F.b),He=nh((.4124564*G+.3575761*ue+.1804375*Ae)/Ia),nt=nh((.2126729*G+.7151522*ue+.072175*Ae)/Ds);return{l:116*nt-16,a:500*(He-nt),b:200*(nt-nh((.0193339*G+.119192*ue+.9503041*Ae)/fs)),alpha:F.a}}function Tc(F){var G=(F.l+16)/116,ue=isNaN(F.a)?G:G+F.a/500,Ae=isNaN(F.b)?G:G-F.b/200;return G=Ds*gp(G),ue=Ia*gp(ue),Ae=fs*gp(Ae),new Jr(Qs(3.2404542*ue-1.5371385*G-.4985314*Ae),Qs(-.969266*ue+1.8760108*G+.041556*Ae),Qs(.0556434*ue-.2040259*G+1.0572252*Ae),F.alpha)}function iu(F,G,ue){var Ae=G-F;return F+ue*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var au={forward:Bl,reverse:Tc,interpolate:function(F,G,ue){return{l:Di(F.l,G.l,ue),a:Di(F.a,G.a,ue),b:Di(F.b,G.b,ue),alpha:Di(F.alpha,G.alpha,ue)}}},zf={forward:function(F){var G=Bl(F),ue=G.l,Ae=G.a,He=G.b,nt=Math.atan2(He,Ae)*nf;return{h:nt<0?nt+360:nt,c:Math.sqrt(Ae*Ae+He*He),l:ue,alpha:F.a}},reverse:function(F){var G=F.h*il,ue=F.c;return Tc({l:F.l,a:Math.cos(G)*ue,b:Math.sin(G)*ue,alpha:F.alpha})},interpolate:function(F,G,ue){return{h:iu(F.h,G.h,ue),c:Di(F.c,G.c,ue),l:Di(F.l,G.l,ue),alpha:Di(F.alpha,G.alpha,ue)}}},_s=Object.freeze({__proto__:null,lab:au,hcl:zf}),ma=function(F,G,ue,Ae,He){this.type=F,this.operator=G,this.interpolation=ue,this.input=Ae,this.labels=[],this.outputs=[];for(var nt=0,ct=He;nt1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Pt}}if(F.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if((F.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(He=G.parse(He,2,wn)))return null;var jt=[],hn=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?hn=fr:G.expectedType&&G.expectedType.kind!=="value"&&(hn=G.expectedType);for(var mn=0;mn=Dn)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',$n);var Or=G.parse(Xn,mr,hn);if(!Or)return null;hn=hn||Or.type,jt.push([Dn,Or])}return hn.kind==="number"||hn.kind==="color"||hn.kind==="array"&&hn.itemType.kind==="number"&&typeof hn.N=="number"?new ma(hn,ue,Ae,He,jt):G.error("Type "+qn(hn)+" is not interpolatable.")},ma.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;if(Ae>=G[He-1])return ue[He-1].evaluate(F);var nt=Oo(G,Ae),ct=G[nt],Pt=G[nt+1],jt=ma.interpolationFactor(this.interpolation,Ae,ct,Pt),hn=ue[nt].evaluate(F),mn=ue[nt+1].evaluate(F);return this.operator==="interpolate"?To[this.type.kind.toLowerCase()](hn,mn,jt):this.operator==="interpolate-hcl"?zf.reverse(zf.interpolate(zf.forward(hn),zf.forward(mn),jt)):au.reverse(au.interpolate(au.forward(hn),au.forward(mn),jt))},ma.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G=ue.length)throw new ar("Array index out of bounds: "+G+" > "+(ue.length-1)+".");if(G!==Math.floor(G))throw new ar("Array index must be an integer, but found "+G+" instead.");return ue[G]},Al.prototype.eachChild=function(F){F(this.index),F(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Wl=function(F,G){this.type=Kn,this.needle=F,this.haystack=G};Wl.parse=function(F,G){if(F.length!==3)return G.error("Expected 2 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);return ue&&Ae?lr(ue.type,[Kn,An,wn,_n,Zn])?new Wl(ue,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead"):null},Wl.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!ue)return!1;if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");return ue.indexOf(G)>=0},Wl.prototype.eachChild=function(F){F(this.needle),F(this.haystack)},Wl.prototype.outputDefined=function(){return!0},Wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ml=function(F,G,ue){this.type=wn,this.needle=F,this.haystack=G,this.fromIndex=ue};Ml.parse=function(F,G){if(F.length<=2||F.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);if(!ue||!Ae)return null;if(!lr(ue.type,[Kn,An,wn,_n,Zn]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Ml(ue,Ae,He):null}return new Ml(ue,Ae)},Ml.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(F);return ue.indexOf(G,Ae)}return ue.indexOf(G)},Ml.prototype.eachChild=function(F){F(this.needle),F(this.haystack),this.fromIndex&&F(this.fromIndex)},Ml.prototype.outputDefined=function(){return!1},Ml.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var F=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),F]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Jf=function(F,G,ue,Ae,He,nt){this.inputType=F,this.type=G,this.input=ue,this.cases=Ae,this.outputs=He,this.otherwise=nt};Jf.parse=function(F,G){if(F.length<5)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if(F.length%2!=1)return G.error("Expected an even number of arguments.");var ue,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var He={},nt=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return hn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Xn=="number"&&Math.floor(Xn)!==Xn)return hn.error("Numeric branch labels must be integer values.");if(ue){if(hn.checkSubtype(ue,Mo(Xn)))return null}else ue=Mo(Xn);if(He[String(Xn)]!==void 0)return hn.error("Branch labels must be unique.");He[String(Xn)]=nt.length}var $n=G.parse(jt,ct,Ae);if(!$n)return null;Ae=Ae||$n.type,nt.push($n)}var mr=G.parse(F[1],1,Zn);if(!mr)return null;var Or=G.parse(F[F.length-1],F.length-1,Ae);return Or?mr.type.kind!=="value"&&G.concat(1).checkSubtype(ue,mr.type)?null:new Jf(ue,Ae,mr,He,nt,Or):null},Jf.prototype.evaluate=function(F){var G=this.input.evaluate(F);return(Mo(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(F)},Jf.prototype.eachChild=function(F){F(this.input),this.outputs.forEach(F),F(this.otherwise)},Jf.prototype.outputDefined=function(){return this.outputs.every(function(F){return F.outputDefined()})&&this.otherwise.outputDefined()},Jf.prototype.serialize=function(){for(var F=this,G=["match",this.input.serialize()],ue=[],Ae={},He=0,nt=Object.keys(this.cases).sort();He=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,wn);if(!ue||!Ae)return null;if(!lr(ue.type,[vr(Zn),An,Zn]))return G.error("Expected first argument to be of type array or string, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Jl(ue.type,ue,Ae,He):null}return new Jl(ue.type,ue,Ae)},Jl.prototype.evaluate=function(F){var G=this.input.evaluate(F),ue=this.beginIndex.evaluate(F);if(!zr(G,["string","array"]))throw new ar("Expected first argument to be of type array or string, but found "+qn(Mo(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(F);return G.slice(ue,Ae)}return G.slice(ue)},Jl.prototype.eachChild=function(F){F(this.input),F(this.beginIndex),this.endIndex&&F(this.endIndex)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var F=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),F]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var gu=Tu("==",function(F,G,ue){return G===ue},ll),ec=Tu("!=",function(F,G,ue){return G!==ue},function(F,G,ue,Ae){return!ll(0,G,ue,Ae)}),Dc=Tu("<",function(F,G,ue){return G",function(F,G,ue){return G>ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>0}),Lp=Tu("<=",function(F,G,ue){return G<=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)<=0}),rh=Tu(">=",function(F,G,ue){return G>=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>=0}),rf=function(F,G,ue,Ae,He){this.type=An,this.number=F,this.locale=G,this.currency=ue,this.minFractionDigits=Ae,this.maxFractionDigits=He};rf.parse=function(F,G){if(F.length!==3)return G.error("Expected two arguments.");var ue=G.parse(F[1],1,wn);if(!ue)return null;var Ae=F[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var He=null;if(Ae.locale&&!(He=G.parse(Ae.locale,1,An)))return null;var nt=null;if(Ae.currency&&!(nt=G.parse(Ae.currency,1,An)))return null;var ct=null;if(Ae["min-fraction-digits"]&&!(ct=G.parse(Ae["min-fraction-digits"],1,wn)))return null;var Pt=null;return Ae["max-fraction-digits"]&&!(Pt=G.parse(Ae["max-fraction-digits"],1,wn))?null:new rf(ue,He,nt,ct,Pt)},rf.prototype.evaluate=function(F){return new Intl.NumberFormat(this.locale?this.locale.evaluate(F):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(F):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(F):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(F):void 0}).format(this.number.evaluate(F))},rf.prototype.eachChild=function(F){F(this.number),this.locale&&F(this.locale),this.currency&&F(this.currency),this.minFractionDigits&&F(this.minFractionDigits),this.maxFractionDigits&&F(this.maxFractionDigits)},rf.prototype.outputDefined=function(){return!1},rf.prototype.serialize=function(){var F={};return this.locale&&(F.locale=this.locale.serialize()),this.currency&&(F.currency=this.currency.serialize()),this.minFractionDigits&&(F["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(F["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),F]};var of=function(F){this.type=wn,this.input=F};of.parse=function(F,G){if(F.length!==2)return G.error("Expected 1 argument, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+qn(ue.type)+" instead."):new of(ue):null},of.prototype.evaluate=function(F){var G=this.input.evaluate(F);if(typeof G=="string"||Array.isArray(G))return G.length;throw new ar("Expected value to be of type string or array, but found "+qn(Mo(G))+" instead.")},of.prototype.eachChild=function(F){F(this.input)},of.prototype.outputDefined=function(){return!1},of.prototype.serialize=function(){var F=["length"];return this.eachChild(function(G){F.push(G.serialize())}),F};var bf={"==":gu,"!=":ec,">":tc,"<":Dc,">=":rh,"<=":Lp,array:Sr,at:Al,boolean:Sr,case:Nf,coalesce:Uc,collator:On,format:Zr,image:go,in:Wl,"index-of":Ml,interpolate:ma,"interpolate-hcl":ma,"interpolate-lab":ma,length:of,let:Kf,literal:Hn,match:Jf,number:Sr,"number-format":rf,object:Sr,slice:Jl,step:mi,string:Sr,"to-boolean":io,"to-color":io,"to-number":io,"to-string":io,var:Fn,within:Eo};function vu(F,G){var ue=G[0],Ae=G[1],He=G[2],nt=G[3];ue=ue.evaluate(F),Ae=Ae.evaluate(F),He=He.evaluate(F);var ct=nt?nt.evaluate(F):1,Pt=_o(ue,Ae,He,ct);if(Pt)throw new ar(Pt);return new Jr(ue/255*ct,Ae/255*ct,He/255*ct,ct)}function $d(F,G){return F in G}function bl(F,G){var ue=G[F];return ue===void 0?null:ue}function Zu(F){return{type:F}}function Kh(F){return{result:"success",value:F}}function Cu(F){return{result:"error",value:F}}function ed(F){return F["property-type"]==="data-driven"||F["property-type"]==="cross-faded-data-driven"}function Bu(F){return!!F.expression&&F.expression.parameters.indexOf("zoom")>-1}function vd(F){return!!F.expression&&F.expression.interpolated}function cs(F){return F instanceof Number?"number":F instanceof String?"string":F instanceof Boolean?"boolean":Array.isArray(F)?"array":F===null?"null":typeof F}function oh(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)}function Jh(F){return F}function xh(F,G){var ue,Ae,He,nt=G.type==="color",ct=F.stops&&typeof F.stops[0][0]=="object",Pt=ct||F.property!==void 0,jt=ct||!Pt,hn=F.type||(vd(G)?"exponential":"interval");if(nt&&((F=Jt({},F)).stops&&(F.stops=F.stops.map(function(bi){return[bi[0],Jr.parse(bi[1])]})),F.default?F.default=Jr.parse(F.default):F.default=Jr.parse(G.default)),F.colorSpace&&F.colorSpace!=="rgb"&&!_s[F.colorSpace])throw new Error("Unknown color space: "+F.colorSpace);if(hn==="exponential")ue=Ff;else if(hn==="interval")ue=_r;else if(hn==="categorical"){ue=ep,Ae=Object.create(null);for(var mn=0,Dn=F.stops;mn=F.stops[Ae-1][0])return F.stops[Ae-1][1];var He=Oo(F.stops.map(function(nt){return nt[0]}),ue);return F.stops[He][1]}function Ff(F,G,ue){var Ae=F.base!==void 0?F.base:1;if(cs(ue)!=="number")return xf(F.default,G.default);var He=F.stops.length;if(He===1||ue<=F.stops[0][0])return F.stops[0][1];if(ue>=F.stops[He-1][0])return F.stops[He-1][1];var nt=Oo(F.stops.map(function(Dn){return Dn[0]}),ue),ct=function(Dn,Xn,$n,mr){var Or=mr-$n,Kr=Dn-$n;return Or===0?0:Xn===1?Kr/Or:(Math.pow(Xn,Kr)-1)/(Math.pow(Xn,Or)-1)}(ue,Ae,F.stops[nt][0],F.stops[nt+1][0]),Pt=F.stops[nt][1],jt=F.stops[nt+1][1],hn=To[G.type]||Jh;if(F.colorSpace&&F.colorSpace!=="rgb"){var mn=_s[F.colorSpace];hn=function(Dn,Xn){return mn.reverse(mn.interpolate(mn.forward(Dn),mn.forward(Xn),ct))}}return typeof Pt.evaluate=="function"?{evaluate:function(){for(var Dn=[],Xn=arguments.length;Xn--;)Dn[Xn]=arguments[Xn];var $n=Pt.evaluate.apply(void 0,Dn),mr=jt.evaluate.apply(void 0,Dn);if($n!==void 0&&mr!==void 0)return hn($n,mr,ct)}}:hn(Pt,jt,ct)}function yd(F,G,ue){return G.type==="color"?ue=Jr.parse(ue):G.type==="formatted"?ue=co.fromString(ue.toString()):G.type==="resolvedImage"?ue=Fo.fromString(ue.toString()):cs(ue)===G.type||G.type==="enum"&&G.values[ue]||(ue=void 0),xf(ue,F.default,G.default)}Rr.register(bf,{error:[{kind:"error"},[An],function(F,G){var ue=G[0];throw new ar(ue.evaluate(F))}],typeof:[An,[Zn],function(F,G){return qn(Mo(G[0].evaluate(F)))}],"to-rgba":[vr(wn,4),[fr],function(F,G){return G[0].evaluate(F).toArray()}],rgb:[fr,[wn,wn,wn],vu],rgba:[fr,[wn,wn,wn,wn],vu],has:{type:Kn,overloads:[[[An],function(F,G){return $d(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return $d(ue.evaluate(F),Ae.evaluate(F))}]]},get:{type:Zn,overloads:[[[An],function(F,G){return bl(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return bl(ue.evaluate(F),Ae.evaluate(F))}]]},"feature-state":[Zn,[An],function(F,G){return bl(G[0].evaluate(F),F.featureState||{})}],properties:[Un,[],function(F){return F.properties()}],"geometry-type":[An,[],function(F){return F.geometryType()}],id:[Zn,[],function(F){return F.id()}],zoom:[wn,[],function(F){return F.globals.zoom}],"heatmap-density":[wn,[],function(F){return F.globals.heatmapDensity||0}],"line-progress":[wn,[],function(F){return F.globals.lineProgress||0}],accumulated:[Zn,[],function(F){return F.globals.accumulated===void 0?null:F.globals.accumulated}],"+":[wn,Zu(wn),function(F,G){for(var ue=0,Ae=0,He=G;Ae":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>nt}],"filter-id->":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>He}],"filter-<=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He<=nt}],"filter-id-<=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae<=He}],"filter->=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>=nt}],"filter-id->=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>=He}],"filter-has":[Kn,[Zn],function(F,G){return G[0].value in F.properties()}],"filter-has-id":[Kn,[],function(F){return F.id()!==null&&F.id()!==void 0}],"filter-type-in":[Kn,[vr(An)],function(F,G){return G[0].value.indexOf(F.geometryType())>=0}],"filter-id-in":[Kn,[vr(Zn)],function(F,G){return G[0].value.indexOf(F.id())>=0}],"filter-in-small":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0];return G[1].value.indexOf(F.properties()[ue.value])>=0}],"filter-in-large":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0],Ae=G[1];return function(He,nt,ct,Pt){for(;ct<=Pt;){var jt=ct+Pt>>1;if(nt[jt]===He)return!0;nt[jt]>He?Pt=jt-1:ct=jt+1}return!1}(F.properties()[ue.value],Ae.value,0,Ae.value.length-1)}],all:{type:Kn,overloads:[[[Kn,Kn],function(F,G){var ue=G[0],Ae=G[1];return ue.evaluate(F)&&Ae.evaluate(F)}],[Zu(Kn),function(F,G){for(var ue=0,Ae=G;ue0&&typeof F[0]=="string"&&F[0]in bf}function zu(F,G){var ue=new dr(bf,[],G?function(He){var nt={color:fr,string:An,number:wn,enum:An,boolean:Kn,formatted:Br,resolvedImage:$r};return He.type==="array"?vr(nt[He.value]||Zn,He.length):nt[He.type]}(G):void 0),Ae=ue.parse(F,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Kh(new bd(Ae,G)):Cu(ue.errors)}bd.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._evaluator.globals=F,this._evaluator.feature=G,this._evaluator.featureState=ue,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt,this.expression.evaluate(this._evaluator)},bd.prototype.evaluate=function(F,G,ue,Ae,He,nt){this._evaluator.globals=F,this._evaluator.feature=G||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!=ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new ar("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};var va=function(F,G){this.kind=F,this._styleExpression=G,this.isStateDependent=F!=="constant"&&!Qt(G.expression)};va.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},va.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)};var El=function(F,G,ue,Ae){this.kind=F,this.zoomStops=ue,this._styleExpression=G,this.isStateDependent=F!=="camera"&&!Qt(G.expression),this.interpolationType=Ae};function _f(F,G){if((F=zu(F,G)).result==="error")return F;var ue=F.value.expression,Ae=zo(ue);if(!Ae&&!ed(G))return Cu([new sn("","data expressions not supported")]);var He=Mn(ue,["zoom"]);if(!He&&!Bu(G))return Cu([new sn("","zoom expressions not supported")]);var nt=ih(ue);if(!nt&&!He)return Cu([new sn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(nt instanceof sn)return Cu([nt]);if(nt instanceof ma&&!vd(G))return Cu([new sn("",'"interpolate" expressions cannot be used with this property')]);if(!nt)return Kh(new va(Ae?"constant":"source",F.value));var ct=nt instanceof ma?nt.interpolation:void 0;return Kh(new El(Ae?"camera":"composite",F.value,nt.labels,ct))}El.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},El.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)},El.prototype.interpolationFactor=function(F,G,ue){return this.interpolationType?ma.interpolationFactor(this.interpolationType,F,G,ue):0};var $f=function(F,G){this._parameters=F,this._specification=G,Jt(this,xh(this._parameters,this._specification))};function ih(F){var G=null;if(F instanceof Kf)G=ih(F.result);else if(F instanceof Uc)for(var ue=0,Ae=F.args;ueAe.maximum?[new qt(G,ue,ue+" is greater than the maximum value "+Ae.maximum)]:[]}function af(F){var G,ue,Ae,He=F.valueSpec,nt=Zt(F.value.type),ct={},Pt=nt!=="categorical"&&F.value.property===void 0,jt=!Pt,hn=cs(F.value.stops)==="array"&&cs(F.value.stops[0])==="array"&&cs(F.value.stops[0][0])==="object",mn=yu({key:F.key,value:F.value,valueSpec:F.styleSpec.function,style:F.style,styleSpec:F.styleSpec,objectElementValidators:{stops:function($n){if(nt==="identity")return[new qt($n.key,$n.value,'identity function may not have a "stops" property')];var mr=[],Or=$n.value;return mr=mr.concat(jc({key:$n.key,value:Or,valueSpec:$n.valueSpec,style:$n.style,styleSpec:$n.styleSpec,arrayElementValidator:Dn})),cs(Or)==="array"&&Or.length===0&&mr.push(new qt($n.key,Or,"array must have at least one stop")),mr},default:function($n){return bc({key:$n.key,value:$n.value,valueSpec:He,style:$n.style,styleSpec:$n.styleSpec})}}});return nt==="identity"&&Pt&&mn.push(new qt(F.key,F.value,'missing required property "property"')),nt==="identity"||F.value.stops||mn.push(new qt(F.key,F.value,'missing required property "stops"')),nt==="exponential"&&F.valueSpec.expression&&!vd(F.valueSpec)&&mn.push(new qt(F.key,F.value,"exponential functions not supported")),F.styleSpec.$version>=8&&(jt&&!ed(F.valueSpec)?mn.push(new qt(F.key,F.value,"property functions not supported")):Pt&&!Bu(F.valueSpec)&&mn.push(new qt(F.key,F.value,"zoom functions not supported"))),nt!=="categorical"&&!hn||F.value.property!==void 0||mn.push(new qt(F.key,F.value,'"property" property is required')),mn;function Dn($n){var mr=[],Or=$n.value,Kr=$n.key;if(cs(Or)!=="array")return[new qt(Kr,Or,"array expected, "+cs(Or)+" found")];if(Or.length!==2)return[new qt(Kr,Or,"array length 2 expected, length "+Or.length+" found")];if(hn){if(cs(Or[0])!=="object")return[new qt(Kr,Or,"object expected, "+cs(Or[0])+" found")];if(Or[0].zoom===void 0)return[new qt(Kr,Or,"object stop key must have zoom")];if(Or[0].value===void 0)return[new qt(Kr,Or,"object stop key must have value")];if(Ae&&Ae>Zt(Or[0].zoom))return[new qt(Kr,Or[0].zoom,"stop zoom values must appear in ascending order")];Zt(Or[0].zoom)!==Ae&&(Ae=Zt(Or[0].zoom),ue=void 0,ct={}),mr=mr.concat(yu({key:Kr+"[0]",value:Or[0],valueSpec:{zoom:{}},style:$n.style,styleSpec:$n.styleSpec,objectElementValidators:{zoom:Nh,value:Xn}}))}else mr=mr.concat(Xn({key:Kr+"[0]",value:Or[0],valueSpec:{},style:$n.style,styleSpec:$n.styleSpec},Or));return _h(Nt(Or[1]))?mr.concat([new qt(Kr+"[1]",Or[1],"expressions are not allowed in function stops.")]):mr.concat(bc({key:Kr+"[1]",value:Or[1],valueSpec:He,style:$n.style,styleSpec:$n.styleSpec}))}function Xn($n,mr){var Or=cs($n.value),Kr=Zt($n.value),Hr=$n.value!==null?$n.value:mr;if(G){if(Or!==G)return[new qt($n.key,Hr,Or+" stop domain type must match previous stop domain type "+G)]}else G=Or;if(Or!=="number"&&Or!=="string"&&Or!=="boolean")return[new qt($n.key,Hr,"stop domain value must be a number, string, or boolean")];if(Or!=="number"&&nt!=="categorical"){var fo="number expected, "+Or+" found";return ed(He)&&nt===void 0&&(fo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new qt($n.key,Hr,fo)]}return nt!=="categorical"||Or!=="number"||isFinite(Kr)&&Math.floor(Kr)===Kr?nt!=="categorical"&&Or==="number"&&ue!==void 0&&Kr=2&&F[1]!=="$id"&&F[1]!=="$type";case"in":return F.length>=3&&(typeof F[1]!="string"||Array.isArray(F[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return F.length!==3||Array.isArray(F[1])||Array.isArray(F[2]);case"any":case"all":for(var G=0,ue=F.slice(1);GG?1:0}function gs(F){if(!Array.isArray(F))return!1;if(F[0]==="within")return!0;for(var G=1;G"||ue==="<="||ue===">="?Cc(F[1],F[2],ue):ue==="any"?(G=F.slice(1),["any"].concat(G.map(yc))):ue==="all"?["all"].concat(F.slice(1).map(yc)):ue==="none"?["all"].concat(F.slice(1).map(yc).map(Ks)):ue==="in"?Nu(F[1],F.slice(2)):ue==="!in"?Ks(Nu(F[1],F.slice(2))):ue==="has"?Gs(F[1]):ue==="!has"?Ks(Gs(F[1])):ue!=="within"||F}function Cc(F,G,ue){switch(F){case"$type":return["filter-type-"+ue,G];case"$id":return["filter-id-"+ue,G];default:return["filter-"+ue,F,G]}}function Nu(F,G){if(G.length===0)return!1;switch(F){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(ue){return typeof ue!=typeof G[0]})?["filter-in-large",F,["literal",G.sort(vc)]]:["filter-in-small",F,["literal",G]]}}function Gs(F){switch(F){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",F]}}function Ks(F){return["!",F]}function Ac(F){return Bc(Nt(F.value))?td(Jt({},F,{expressionContext:"filter",valueSpec:{value:"boolean"}})):_d(F)}function _d(F){var G=F.value,ue=F.key;if(cs(G)!=="array")return[new qt(ue,G,"array expected, "+cs(G)+" found")];var Ae,He=F.styleSpec,nt=[];if(G.length<1)return[new qt(ue,G,"filter array must have at least 1 element")];switch(nt=nt.concat(sf({key:ue+"[0]",value:G[0],valueSpec:He.filter_operator,style:F.style,styleSpec:F.styleSpec})),Zt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Zt(G[1])==="$type"&&nt.push(new qt(ue,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&nt.push(new qt(ue,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=cs(G[1]))!=="string"&&nt.push(new qt(ue+"[1]",G[1],"string expected, "+Ae+" found"));for(var ct=2;ct=mn[$n+0]&&Ae>=mn[$n+1])?(ct[Xn]=!0,nt.push(hn[Xn])):ct[Xn]=!1}}},Of.prototype._forEachCell=function(F,G,ue,Ae,He,nt,ct,Pt){for(var jt=this._convertToCellCoord(F),hn=this._convertToCellCoord(G),mn=this._convertToCellCoord(ue),Dn=this._convertToCellCoord(Ae),Xn=jt;Xn<=mn;Xn++)for(var $n=hn;$n<=Dn;$n++){var mr=this.d*$n+Xn;if((!Pt||Pt(this._convertFromCellCoord(Xn),this._convertFromCellCoord($n),this._convertFromCellCoord(Xn+1),this._convertFromCellCoord($n+1)))&&He.call(this,F,G,ue,Ae,mr,nt,ct,Pt))return}},Of.prototype._convertFromCellCoord=function(F){return(F-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(F){return Math.max(0,Math.min(this.d-1,Math.floor(F*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var F=this.cells,G=cf+this.cells.length+1+1,ue=0,Ae=0;Ae=0)){var Dn=F[mn];hn[mn]=Mu[jt].shallow.indexOf(mn)>=0?Dn:xc(Dn,G)}F instanceof Error&&(hn.message=F.message)}if(hn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(hn.$name=jt),hn}throw new Error("can't serialize object of type "+typeof F)}function Kc(F){if(F==null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||F instanceof Boolean||F instanceof Number||F instanceof String||F instanceof Date||F instanceof RegExp||qu(F)||zl(F)||ArrayBuffer.isView(F)||F instanceof aa)return F;if(Array.isArray(F))return F.map(Kc);if(typeof F=="object"){var G=F.$name||"Object",ue=Mu[G].klass;if(!ue)throw new Error("can't deserialize unregistered class "+G);if(ue.deserialize)return ue.deserialize(F);for(var Ae=Object.create(ue.prototype),He=0,nt=Object.keys(F);He=0?Pt:Kc(Pt)}}return Ae}throw new Error("can't deserialize object of type "+typeof F)}var jd=function(){this.first=!0};jd.prototype.update=function(F,G){var ue=Math.floor(F);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=F,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&F<=255},Arabic:function(F){return F>=1536&&F<=1791},"Arabic Supplement":function(F){return F>=1872&&F<=1919},"Arabic Extended-A":function(F){return F>=2208&&F<=2303},"Hangul Jamo":function(F){return F>=4352&&F<=4607},"Unified Canadian Aboriginal Syllabics":function(F){return F>=5120&&F<=5759},Khmer:function(F){return F>=6016&&F<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(F){return F>=6320&&F<=6399},"General Punctuation":function(F){return F>=8192&&F<=8303},"Letterlike Symbols":function(F){return F>=8448&&F<=8527},"Number Forms":function(F){return F>=8528&&F<=8591},"Miscellaneous Technical":function(F){return F>=8960&&F<=9215},"Control Pictures":function(F){return F>=9216&&F<=9279},"Optical Character Recognition":function(F){return F>=9280&&F<=9311},"Enclosed Alphanumerics":function(F){return F>=9312&&F<=9471},"Geometric Shapes":function(F){return F>=9632&&F<=9727},"Miscellaneous Symbols":function(F){return F>=9728&&F<=9983},"Miscellaneous Symbols and Arrows":function(F){return F>=11008&&F<=11263},"CJK Radicals Supplement":function(F){return F>=11904&&F<=12031},"Kangxi Radicals":function(F){return F>=12032&&F<=12255},"Ideographic Description Characters":function(F){return F>=12272&&F<=12287},"CJK Symbols and Punctuation":function(F){return F>=12288&&F<=12351},Hiragana:function(F){return F>=12352&&F<=12447},Katakana:function(F){return F>=12448&&F<=12543},Bopomofo:function(F){return F>=12544&&F<=12591},"Hangul Compatibility Jamo":function(F){return F>=12592&&F<=12687},Kanbun:function(F){return F>=12688&&F<=12703},"Bopomofo Extended":function(F){return F>=12704&&F<=12735},"CJK Strokes":function(F){return F>=12736&&F<=12783},"Katakana Phonetic Extensions":function(F){return F>=12784&&F<=12799},"Enclosed CJK Letters and Months":function(F){return F>=12800&&F<=13055},"CJK Compatibility":function(F){return F>=13056&&F<=13311},"CJK Unified Ideographs Extension A":function(F){return F>=13312&&F<=19903},"Yijing Hexagram Symbols":function(F){return F>=19904&&F<=19967},"CJK Unified Ideographs":function(F){return F>=19968&&F<=40959},"Yi Syllables":function(F){return F>=40960&&F<=42127},"Yi Radicals":function(F){return F>=42128&&F<=42191},"Hangul Jamo Extended-A":function(F){return F>=43360&&F<=43391},"Hangul Syllables":function(F){return F>=44032&&F<=55215},"Hangul Jamo Extended-B":function(F){return F>=55216&&F<=55295},"Private Use Area":function(F){return F>=57344&&F<=63743},"CJK Compatibility Ideographs":function(F){return F>=63744&&F<=64255},"Arabic Presentation Forms-A":function(F){return F>=64336&&F<=65023},"Vertical Forms":function(F){return F>=65040&&F<=65055},"CJK Compatibility Forms":function(F){return F>=65072&&F<=65103},"Small Form Variants":function(F){return F>=65104&&F<=65135},"Arabic Presentation Forms-B":function(F){return F>=65136&&F<=65279},"Halfwidth and Fullwidth Forms":function(F){return F>=65280&&F<=65519}};function nd(F){for(var G=0,ue=F;G=65097&&F<=65103)||ii["CJK Compatibility Ideographs"](F)||ii["CJK Compatibility"](F)||ii["CJK Radicals Supplement"](F)||ii["CJK Strokes"](F)||!(!ii["CJK Symbols and Punctuation"](F)||F>=12296&&F<=12305||F>=12308&&F<=12319||F===12336)||ii["CJK Unified Ideographs Extension A"](F)||ii["CJK Unified Ideographs"](F)||ii["Enclosed CJK Letters and Months"](F)||ii["Hangul Compatibility Jamo"](F)||ii["Hangul Jamo Extended-A"](F)||ii["Hangul Jamo Extended-B"](F)||ii["Hangul Jamo"](F)||ii["Hangul Syllables"](F)||ii.Hiragana(F)||ii["Ideographic Description Characters"](F)||ii.Kanbun(F)||ii["Kangxi Radicals"](F)||ii["Katakana Phonetic Extensions"](F)||ii.Katakana(F)&&F!==12540||!(!ii["Halfwidth and Fullwidth Forms"](F)||F===65288||F===65289||F===65293||F>=65306&&F<=65310||F===65339||F===65341||F===65343||F>=65371&&F<=65503||F===65507||F>=65512&&F<=65519)||!(!ii["Small Form Variants"](F)||F>=65112&&F<=65118||F>=65123&&F<=65126)||ii["Unified Canadian Aboriginal Syllabics"](F)||ii["Unified Canadian Aboriginal Syllabics Extended"](F)||ii["Vertical Forms"](F)||ii["Yijing Hexagram Symbols"](F)||ii["Yi Syllables"](F)||ii["Yi Radicals"](F))))}function Yl(F){return!(al(F)||function(G){return!!(ii["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||ii["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||ii["Letterlike Symbols"](G)||ii["Number Forms"](G)||ii["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||ii["Control Pictures"](G)&&G!==9251||ii["Optical Character Recognition"](G)||ii["Enclosed Alphanumerics"](G)||ii["Geometric Shapes"](G)||ii["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||ii["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||ii["CJK Symbols and Punctuation"](G)||ii.Katakana(G)||ii["Private Use Area"](G)||ii["CJK Compatibility Forms"](G)||ii["Small Form Variants"](G)||ii["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(F))}function uf(F){return ii.Arabic(F)||ii["Arabic Supplement"](F)||ii["Arabic Extended-A"](F)||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function hs(F){return F>=1424&&F<=2303||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function Mc(F,G){return!(!G&&hs(F)||F>=2304&&F<=3583||F>=3840&&F<=4255||ii.Khmer(F))}function Eu(F){for(var G=0,ue=F;G-1&&(Ls=su),Ca&&Ca(F)};function wt(){Kt.fire(new it("pluginStateChange",{pluginStatus:Ls,pluginURL:Ec}))}var Kt=new Bt,En=function(){return Ls},pr=function(){if(Ls!==xu||!Ec)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ls=ws,wt(),Ec&&Pn({url:Ec},function(F){F?_u(F):(Ls=Fu,wt())})},wr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ls===Fu||wr.applyArabicShaping!=null},isLoading:function(){return Ls===ws},setState:function(F){Ls=F.pluginStatus,Ec=F.pluginURL},isParsed:function(){return wr.applyArabicShaping!=null&&wr.processBidirectionalText!=null&&wr.processStyledBidirectionalText!=null},getPluginURL:function(){return Ec}},uo=function(F,G){this.zoom=F,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jd,this.transition={})};uo.prototype.isSupportedScript=function(F){return function(G,ue){for(var Ae=0,He=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*G}};var Bi=function(F,G){this.property=F,this.value=G,this.expression=function(ue,Ae){if(oh(ue))return new $f(ue,Ae);if(_h(ue)){var He=_f(ue,Ae);if(He.result==="error")throw new Error(He.value.map(function(ct){return ct.key+": "+ct.message}).join(", "));return He.value}var nt=ue;return typeof ue=="string"&&Ae.type==="color"&&(nt=Jr.parse(ue)),{kind:"constant",evaluate:function(){return nt}}}(G===void 0?F.specification.default:G,F.specification)};Bi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Bi.prototype.possiblyEvaluate=function(F,G,ue){return this.property.possiblyEvaluate(this,F,G,ue)};var ya=function(F){this.property=F,this.value=new Bi(F,void 0)};ya.prototype.transitioned=function(F,G){return new Qi(this.property,this.value,G,x({},F.transition,this.transition),F.now)},ya.prototype.untransitioned=function(){return new Qi(this.property,this.value,null,{},0)};var Ni=function(F){this._properties=F,this._values=Object.create(F.defaultTransitionablePropertyValues)};Ni.prototype.getValue=function(F){return I(this._values[F].value.value)},Ni.prototype.setValue=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].value=new Bi(this._values[F].property,G===null?void 0:I(G))},Ni.prototype.getTransition=function(F){return I(this._values[F].transition)},Ni.prototype.setTransition=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].transition=I(G)||void 0},Ni.prototype.serialize=function(){for(var F={},G=0,ue=Object.keys(this._values);Gthis.end)return this.prior=null,He;if(this.value.isDataDriven())return this.prior=null,He;if(Ae=1)return 1;var jt=Pt*Pt,hn=jt*Pt;return 4*(Pt<.5?hn:3*(Pt-jt)+hn-.75)}(ct))}return He};var Ws=function(F){this._properties=F,this._values=Object.create(F.defaultTransitioningPropertyValues)};Ws.prototype.possiblyEvaluate=function(F,G,ue){for(var Ae=new Wu(this._properties),He=0,nt=Object.keys(this._values);Hent.zoomHistory.lastIntegerZoom?{from:ue,to:Ae}:{from:He,to:Ae}},G.prototype.interpolate=function(ue){return ue},G}(Aa),Vf=function(F){this.specification=F};Vf.prototype.possiblyEvaluate=function(F,G,ue,Ae){if(F.value!==void 0){if(F.expression.kind==="constant"){var He=F.expression.evaluate(G,null,{},ue,Ae);return this._calculate(He,He,He,G)}return this._calculate(F.expression.evaluate(new uo(Math.floor(G.zoom-1),G)),F.expression.evaluate(new uo(Math.floor(G.zoom),G)),F.expression.evaluate(new uo(Math.floor(G.zoom+1),G)),G)}},Vf.prototype._calculate=function(F,G,ue,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:F,to:G}:{from:ue,to:G}},Vf.prototype.interpolate=function(F){return F};var sh=function(F){this.specification=F};sh.prototype.possiblyEvaluate=function(F,G,ue,Ae){return!!F.expression.evaluate(G,null,{},ue,Ae)},sh.prototype.interpolate=function(){return!1};var _c=function(F){for(var G in this.properties=F,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],F){var ue=F[G];ue.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Bi(ue,void 0),He=this.defaultTransitionablePropertyValues[G]=new ya(ue);this.defaultTransitioningPropertyValues[G]=He.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};Ri("DataDrivenProperty",Aa),Ri("DataConstantProperty",Ki),Ri("CrossFadedDataDrivenProperty",Pl),Ri("CrossFadedProperty",Vf),Ri("ColorRampProperty",sh);var Xl="-transition",pl=function(F){function G(ue,Ae){if(F.call(this),this.id=ue.id,this.type=ue.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},ue.type!=="custom"&&(this.metadata=ue.metadata,this.minzoom=ue.minzoom,this.maxzoom=ue.maxzoom,ue.type!=="background"&&(this.source=ue.source,this.sourceLayer=ue["source-layer"],this.filter=ue.filter),Ae.layout&&(this._unevaluatedLayout=new nl(Ae.layout)),Ae.paint)){for(var He in this._transitionablePaint=new Ni(Ae.paint),ue.paint)this.setPaintProperty(He,ue.paint[He],{validate:!1});for(var nt in ue.layout)this.setLayoutProperty(nt,ue.layout[nt],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wu(Ae.paint)}}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},G.prototype.setLayoutProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".layout."+ue;if(this._validate(ds,nt,ue,Ae,He))return}ue!=="visibility"?this._unevaluatedLayout.setValue(ue,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(ue){return L(ue,Xl)?this._transitionablePaint.getTransition(ue.slice(0,-11)):this._transitionablePaint.getValue(ue)},G.prototype.setPaintProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".paint."+ue;if(this._validate(Ol,nt,ue,Ae,He))return!1}if(L(ue,Xl))return this._transitionablePaint.setTransition(ue.slice(0,-11),Ae||void 0),!1;var ct=this._transitionablePaint._values[ue],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",jt=ct.value.isDataDriven(),hn=ct.value;this._transitionablePaint.setValue(ue,Ae),this._handleSpecialPaintPropertyUpdate(ue);var mn=this._transitionablePaint._values[ue].value;return mn.isDataDriven()||jt||Pt||this._handleOverridablePaintPropertyUpdate(ue,hn,mn)},G.prototype._handleSpecialPaintPropertyUpdate=function(ue){},G.prototype._handleOverridablePaintPropertyUpdate=function(ue,Ae,He){return!1},G.prototype.isHidden=function(ue){return!!(this.minzoom&&ue=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(ue,Ae){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,Ae)},G.prototype.serialize=function(){var ue={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),k(ue,function(Ae,He){return!(Ae===void 0||He==="layout"&&!Object.keys(Ae).length||He==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(ue,Ae,He,nt,ct){return ct===void 0&&(ct={}),(!ct||ct.validate!==!1)&&zc(this,ue.call(bu,{key:Ae,layerType:this.type,objectKey:He,value:nt,styleSpec:_t,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var ue in this.paint._values){var Ae=this.paint.get(ue);if(Ae instanceof Fs&&ed(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Bt),Pc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Uf=function(F,G){this._structArray=F,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Os=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Si(F,G){G===void 0&&(G=1);var ue=0,Ae=0;return{members:F.map(function(He){var nt,ct=(nt=He.type,Pc[nt].BYTES_PER_ELEMENT),Pt=ue=lc(ue,Math.max(G,ct)),jt=He.components||1;return Ae=Math.max(Ae,ct),ue+=ct*jt,{name:He.name,type:He.type,components:jt,offset:Pt}}),size:lc(ue,Math.max(Ae,G)),alignment:G}}function lc(F,G){return Math.ceil(F/G)*G}Os.serialize=function(F,G){return F._trim(),G&&(F.isTransferred=!0,G.push(F.arrayBuffer)),{length:F.length,arrayBuffer:F.arrayBuffer}},Os.deserialize=function(F){var G=Object.create(this.prototype);return G.arrayBuffer=F.arrayBuffer,G.length=F.length,G.capacity=F.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Os.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Os.prototype.clear=function(){this.length=0},Os.prototype.resize=function(F){this.reserve(F),this.length=F},Os.prototype.reserve=function(F){if(F>this.capacity){this.capacity=Math.max(F,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Os.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var rd=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.int16[nt+0]=Ae,this.int16[nt+1]=He,ue},G}(Os);rd.prototype.bytesPerElement=4,Ri("StructArrayLayout2i4",rd);var tp=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.int16[Pt+0]=Ae,this.int16[Pt+1]=He,this.int16[Pt+2]=nt,this.int16[Pt+3]=ct,ue},G}(Os);tp.prototype.bytesPerElement=8,Ri("StructArrayLayout4i8",tp);var kt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);kt.prototype.bytesPerElement=12,Ri("StructArrayLayout2i4i12",kt);var It=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=4*ue,mn=8*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.uint8[mn+4]=nt,this.uint8[mn+5]=ct,this.uint8[mn+6]=Pt,this.uint8[mn+7]=jt,ue},G}(Os);It.prototype.bytesPerElement=8,Ri("StructArrayLayout2i4ub8",It);var Ut=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.float32[nt+0]=Ae,this.float32[nt+1]=He,ue},G}(Os);Ut.prototype.bytesPerElement=8,Ri("StructArrayLayout2f8",Ut);var J=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=this.length;return this.resize(Xn+1),this.emplace(Xn,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn){var $n=10*ue;return this.uint16[$n+0]=Ae,this.uint16[$n+1]=He,this.uint16[$n+2]=nt,this.uint16[$n+3]=ct,this.uint16[$n+4]=Pt,this.uint16[$n+5]=jt,this.uint16[$n+6]=hn,this.uint16[$n+7]=mn,this.uint16[$n+8]=Dn,this.uint16[$n+9]=Xn,ue},G}(Os);J.prototype.bytesPerElement=20,Ri("StructArrayLayout10ui20",J);var le=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=12*ue;return this.int16[Or+0]=Ae,this.int16[Or+1]=He,this.int16[Or+2]=nt,this.int16[Or+3]=ct,this.uint16[Or+4]=Pt,this.uint16[Or+5]=jt,this.uint16[Or+6]=hn,this.uint16[Or+7]=mn,this.int16[Or+8]=Dn,this.int16[Or+9]=Xn,this.int16[Or+10]=$n,this.int16[Or+11]=mr,ue},G}(Os);le.prototype.bytesPerElement=24,Ri("StructArrayLayout4i4ui4i24",le);var ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.float32[ct+0]=Ae,this.float32[ct+1]=He,this.float32[ct+2]=nt,ue},G}(Os);ne.prototype.bytesPerElement=12,Ri("StructArrayLayout3f12",ne);var V=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint32[He+0]=Ae,ue},G}(Os);V.prototype.bytesPerElement=4,Ri("StructArrayLayout1ul4",V);var ie=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,ue,Ae,He,nt,ct,Pt,jt,hn,mn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=10*ue,$n=5*ue;return this.int16[Xn+0]=Ae,this.int16[Xn+1]=He,this.int16[Xn+2]=nt,this.int16[Xn+3]=ct,this.int16[Xn+4]=Pt,this.int16[Xn+5]=jt,this.uint32[$n+3]=hn,this.uint16[Xn+8]=mn,this.uint16[Xn+9]=Dn,ue},G}(Os);ie.prototype.bytesPerElement=20,Ri("StructArrayLayout6i1ul2ui20",ie);var ge=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);ge.prototype.bytesPerElement=12,Ri("StructArrayLayout2i2i2i12",ge);var xe=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,Ae,He,nt,ct)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt){var jt=4*ue,hn=8*ue;return this.float32[jt+0]=Ae,this.float32[jt+1]=He,this.float32[jt+2]=nt,this.int16[hn+6]=ct,this.int16[hn+7]=Pt,ue},G}(Os);xe.prototype.bytesPerElement=16,Ri("StructArrayLayout2f1f2i16",xe);var Ee=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=12*ue,jt=3*ue;return this.uint8[Pt+0]=Ae,this.uint8[Pt+1]=He,this.float32[jt+1]=nt,this.float32[jt+2]=ct,ue},G}(Os);Ee.prototype.bytesPerElement=12,Ri("StructArrayLayout2ub2f12",Ee);var Ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.uint16[ct+0]=Ae,this.uint16[ct+1]=He,this.uint16[ct+2]=nt,ue},G}(Os);Ne.prototype.bytesPerElement=6,Ri("StructArrayLayout3ui6",Ne);var et=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo){var mo=this.length;return this.resize(mo+1),this.emplace(mo,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo){var Io=24*ue,Qo=12*ue,Po=48*ue;return this.int16[Io+0]=Ae,this.int16[Io+1]=He,this.uint16[Io+2]=nt,this.uint16[Io+3]=ct,this.uint32[Qo+2]=Pt,this.uint32[Qo+3]=jt,this.uint32[Qo+4]=hn,this.uint16[Io+10]=mn,this.uint16[Io+11]=Dn,this.uint16[Io+12]=Xn,this.float32[Qo+7]=$n,this.float32[Qo+8]=mr,this.uint8[Po+36]=Or,this.uint8[Po+37]=Kr,this.uint8[Po+38]=Hr,this.uint32[Qo+10]=fo,this.int16[Io+22]=mo,ue},G}(Os);et.prototype.bytesPerElement=48,Ri("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",et);var rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as){var Da=this.length;return this.resize(Da+1),this.emplace(Da,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as,Da){var ba=34*ue,fl=17*ue;return this.int16[ba+0]=Ae,this.int16[ba+1]=He,this.int16[ba+2]=nt,this.int16[ba+3]=ct,this.int16[ba+4]=Pt,this.int16[ba+5]=jt,this.int16[ba+6]=hn,this.int16[ba+7]=mn,this.uint16[ba+8]=Dn,this.uint16[ba+9]=Xn,this.uint16[ba+10]=$n,this.uint16[ba+11]=mr,this.uint16[ba+12]=Or,this.uint16[ba+13]=Kr,this.uint16[ba+14]=Hr,this.uint16[ba+15]=fo,this.uint16[ba+16]=mo,this.uint16[ba+17]=Io,this.uint16[ba+18]=Qo,this.uint16[ba+19]=Po,this.uint16[ba+20]=Ii,this.uint16[ba+21]=bi,this.uint16[ba+22]=Zi,this.uint32[fl+12]=ra,this.float32[fl+13]=ka,this.float32[fl+14]=ea,this.float32[fl+15]=as,this.float32[fl+16]=Da,ue},G}(Os);rt.prototype.bytesPerElement=68,Ri("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.float32[He+0]=Ae,ue},G}(Os);dt.prototype.bytesPerElement=4,Ri("StructArrayLayout1f4",dt);var gt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.int16[ct+0]=Ae,this.int16[ct+1]=He,this.int16[ct+2]=nt,ue},G}(Os);gt.prototype.bytesPerElement=6,Ri("StructArrayLayout3i6",gt);var Rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=2*ue,Pt=4*ue;return this.uint32[ct+0]=Ae,this.uint16[Pt+2]=He,this.uint16[Pt+3]=nt,ue},G}(Os);Rt.prototype.bytesPerElement=8,Ri("StructArrayLayout1ul2ui8",Rt);var Mt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.uint16[nt+0]=Ae,this.uint16[nt+1]=He,ue},G}(Os);Mt.prototype.bytesPerElement=4,Ri("StructArrayLayout2ui4",Mt);var Xt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint16[He+0]=Ae,ue},G}(Os);Xt.prototype.bytesPerElement=2,Ri("StructArrayLayout1ui2",Xt);var dn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.float32[Pt+0]=Ae,this.float32[Pt+1]=He,this.float32[Pt+2]=nt,this.float32[Pt+3]=ct,ue},G}(Os);dn.prototype.bytesPerElement=16,Ri("StructArrayLayout4f16",dn);var bn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return ue.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ue.x1.get=function(){return this._structArray.int16[this._pos2+2]},ue.y1.get=function(){return this._structArray.int16[this._pos2+3]},ue.x2.get=function(){return this._structArray.int16[this._pos2+4]},ue.y2.get=function(){return this._structArray.int16[this._pos2+5]},ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,ue),G}(Uf);bn.prototype.size=20;var vn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new bn(this,ue)},G}(ie);Ri("CollisionBoxArray",vn);var Ln=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ue.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ue.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ue.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ue.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ue.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ue.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ue.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ue.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ue.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ue.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},ue.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ue.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},ue.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,ue),G}(Uf);Ln.prototype.size=48;var gn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Ln(this,ue)},G}(et);Ri("PlacedSymbolArray",gn);var Jn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ue.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ue.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ue.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ue.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},ue.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},ue.key.get=function(){return this._structArray.uint16[this._pos2+8]},ue.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ue.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ue.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ue.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ue.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},ue.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},ue.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},ue.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},ue.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},ue.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},ue.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},ue.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},ue.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},ue.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},ue.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},ue.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},ue.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,ue),G}(Uf);Jn.prototype.size=68;var pn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Jn(this,ue)},G}(rt);Ri("SymbolInstanceArray",pn);var In=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(ue){return this.float32[1*ue+0]},G}(dt);Ri("GlyphOffsetArray",In);var Ir=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getx=function(ue){return this.int16[3*ue+0]},G.prototype.gety=function(ue){return this.int16[3*ue+1]},G.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[3*ue+2]},G}(gt);Ri("SymbolLineVertexArray",Ir);var Pr=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,ue),G}(Uf);Pr.prototype.size=8;var Gr=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Pr(this,ue)},G}(Rt);Ri("FeatureIndexArray",Gr);var ro=Si([{name:"a_pos",components:2,type:"Int16"}],4).members,po=function(F){F===void 0&&(F=[]),this.segments=F};function Wo(F,G){return 256*(F=O(Math.floor(F),0,255))+O(Math.floor(G),0,255)}po.prototype.prepareSegment=function(F,G,ue,Ae){var He=this.segments[this.segments.length-1];return F>po.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+po.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+F),(!He||He.vertexLength+F>po.MAX_VERTEX_ARRAY_LENGTH||He.sortKey!==Ae)&&(He={vertexOffset:G.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(He.sortKey=Ae),this.segments.push(He)),He},po.prototype.get=function(){return this.segments},po.prototype.destroy=function(){for(var F=0,G=this.segments;F>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295)<<13|nt>>>19))+((5*(nt>>>16)&65535)<<16)&4294967295))+((58964+(ct>>>16)&65535)<<16);switch(hn=0,Ae){case 3:hn^=(255&G.charCodeAt(mn+2))<<16;case 2:hn^=(255&G.charCodeAt(mn+1))<<8;case 1:nt^=hn=(65535&(hn=(hn=(65535&(hn^=255&G.charCodeAt(mn)))*Pt+(((hn>>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295}return nt^=G.length,nt=2246822507*(65535&(nt^=nt>>>16))+((2246822507*(nt>>>16)&65535)<<16)&4294967295,nt=3266489909*(65535&(nt^=nt>>>13))+((3266489909*(nt>>>16)&65535)<<16)&4294967295,(nt^=nt>>>16)>>>0}}),Go=S(function(F){F.exports=function(G,ue){for(var Ae,He=G.length,nt=ue^He,ct=0;He>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ct)|(255&G.charCodeAt(++ct))<<8|(255&G.charCodeAt(++ct))<<16|(255&G.charCodeAt(++ct))<<24))+((1540483477*(Ae>>>16)&65535)<<16),nt=1540483477*(65535&nt)+((1540483477*(nt>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),He-=4,++ct;switch(He){case 3:nt^=(255&G.charCodeAt(ct+2))<<16;case 2:nt^=(255&G.charCodeAt(ct+1))<<8;case 1:nt=1540483477*(65535&(nt^=255&G.charCodeAt(ct)))+((1540483477*(nt>>>16)&65535)<<16)}return nt=1540483477*(65535&(nt^=nt>>>13))+((1540483477*(nt>>>16)&65535)<<16),(nt^=nt>>>15)>>>0}}),Yo=Bo,Wi=Bo,Ho=Go;Yo.murmur3=Wi,Yo.murmur2=Ho;var jo=function(){this.ids=[],this.positions=[],this.indexed=!1};jo.prototype.add=function(F,G,ue,Ae){this.ids.push(ai(F)),this.positions.push(G,ue,Ae)},jo.prototype.getPositions=function(F){for(var G=ai(F),ue=0,Ae=this.ids.length-1;ue>1;this.ids[He]>=G?Ae=He:ue=He+1}for(var nt=[];this.ids[ue]===G;){var ct=this.positions[3*ue],Pt=this.positions[3*ue+1],jt=this.positions[3*ue+2];nt.push({index:ct,start:Pt,end:jt}),ue++}return nt},jo.serialize=function(F,G){var ue=new Float64Array(F.ids),Ae=new Uint32Array(F.positions);return Hi(ue,Ae,0,ue.length-1),G&&G.push(ue.buffer,Ae.buffer),{ids:ue,positions:Ae}},jo.deserialize=function(F){var G=new jo;return G.ids=F.ids,G.positions=F.positions,G.indexed=!0,G};var Yi=Math.pow(2,53)-1;function ai(F){var G=+F;return!isNaN(G)&&G<=Yi?G:Yo(String(F))}function Hi(F,G,ue,Ae){for(;ue>1],nt=ue-1,ct=Ae+1;;){do nt++;while(F[nt]He);if(nt>=ct)break;Ai(F,nt,ct),Ai(G,3*nt,3*ct),Ai(G,3*nt+1,3*ct+1),Ai(G,3*nt+2,3*ct+2)}ct-uect.x+1||jtct.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return ue}function Is(F,G){return{type:F.type,id:F.id,properties:F.properties,geometry:G?Jc(F):[]}}function Hc(F,G,ue,Ae,He){F.emplaceBack(2*G+(Ae+1)/2,2*ue+(He+1)/2)}var Nl=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new rd,this.indexArray=new Ne,this.segments=new po,this.programConfigurations=new ui(F.layers,F.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lh(F,G){for(var ue=0;ue1){if(Ip(F,G))return!0;for(var Ae=0;Ae1?F.distSqr(ue):F.distSqr(ue.sub(G)._mult(He)._add(G))}function Uh(F,G){for(var ue,Ae,He,nt=!1,ct=0;ctG.y!=He.y>G.y&&G.x<(He.x-Ae.x)*(G.y-Ae.y)/(He.y-Ae.y)+Ae.x&&(nt=!nt);return nt}function ss(F,G){for(var ue=!1,Ae=0,He=F.length-1;AeG.y!=ct.y>G.y&&G.x<(ct.x-nt.x)*(G.y-nt.y)/(ct.y-nt.y)+nt.x&&(ue=!ue)}return ue}function Gl(F,G,ue){var Ae=ue[0],He=ue[2];if(F.xHe.x&&G.x>He.x||F.yHe.y&&G.y>He.y)return!1;var nt=Q(F,G,ue[0]);return nt!==Q(F,G,ue[1])||nt!==Q(F,G,ue[2])||nt!==Q(F,G,ue[3])}function Sf(F,G,ue){var Ae=G.paint.get(F).value;return Ae.kind==="constant"?Ae.value:ue.programConfigurations.get(G.id).getMaxValue(F)}function Nc(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1])}function o0(F,G,ue,Ae,He){if(!G[0]&&!G[1])return F;var nt=a.convert(G)._mult(He);ue==="viewport"&&nt._rotate(-Ae);for(var ct=[],Pt=0;Pt=ua||mn<0||mn>=ua)){var Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,F.sortKey),Xn=Dn.vertexLength;Hc(this.layoutVertexArray,hn,mn,-1,-1),Hc(this.layoutVertexArray,hn,mn,1,-1),Hc(this.layoutVertexArray,hn,mn,1,1),Hc(this.layoutVertexArray,hn,mn,-1,1),this.indexArray.emplaceBack(Xn,Xn+1,Xn+2),this.indexArray.emplaceBack(Xn,Xn+3,Xn+2),Dn.vertexLength+=4,Dn.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,F,ue,{},Ae)},Ri("CircleBucket",Nl,{omit:["layers"]});var i0=new _c({"circle-sort-key":new Aa(_t.layout_circle["circle-sort-key"])}),a0={paint:new _c({"circle-radius":new Aa(_t.paint_circle["circle-radius"]),"circle-color":new Aa(_t.paint_circle["circle-color"]),"circle-blur":new Aa(_t.paint_circle["circle-blur"]),"circle-opacity":new Aa(_t.paint_circle["circle-opacity"]),"circle-translate":new Ki(_t.paint_circle["circle-translate"]),"circle-translate-anchor":new Ki(_t.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ki(_t.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ki(_t.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Aa(_t.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Aa(_t.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Aa(_t.paint_circle["circle-stroke-opacity"])}),layout:i0},wu=typeof Float32Array<"u"?Float32Array:Array;function Dp(F){return F[0]=1,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=1,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=1,F[11]=0,F[12]=0,F[13]=0,F[14]=0,F[15]=1,F}function Rm(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3],Pt=G[4],jt=G[5],hn=G[6],mn=G[7],Dn=G[8],Xn=G[9],$n=G[10],mr=G[11],Or=G[12],Kr=G[13],Hr=G[14],fo=G[15],mo=ue[0],Io=ue[1],Qo=ue[2],Po=ue[3];return F[0]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[1]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[2]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[3]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[4],Io=ue[5],Qo=ue[6],Po=ue[7],F[4]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[5]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[6]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[7]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[8],Io=ue[9],Qo=ue[10],Po=ue[11],F[8]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[9]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[10]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[11]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[12],Io=ue[13],Qo=ue[14],Po=ue[15],F[12]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[13]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[14]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[15]=mo*ct+Io*mn+Qo*mr+Po*fo,F}Math.hypot||(Math.hypot=function(){for(var F=arguments,G=0,ue=arguments.length;ue--;)G+=F[ue]*F[ue];return Math.sqrt(G)});var nm=Rm,G0,vg=function(F,G,ue){return F[0]=G[0]-ue[0],F[1]=G[1]-ue[1],F[2]=G[2]-ue[2],F};function s0(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3];return F[0]=ue[0]*Ae+ue[4]*He+ue[8]*nt+ue[12]*ct,F[1]=ue[1]*Ae+ue[5]*He+ue[9]*nt+ue[13]*ct,F[2]=ue[2]*Ae+ue[6]*He+ue[10]*nt+ue[14]*ct,F[3]=ue[3]*Ae+ue[7]*He+ue[11]*nt+ue[15]*ct,F}G0=new wu(3),wu!=Float32Array&&(G0[0]=0,G0[1]=0,G0[2]=0),function(){var F=new wu(4);wu!=Float32Array&&(F[0]=0,F[1]=0,F[2]=0,F[3]=0)}();var H1=function(F){var G=F[0],ue=F[1];return G*G+ue*ue},VO=(function(){var F=new wu(2);wu!=Float32Array&&(F[0]=0,F[1]=0)}(),function(F){function G(ue){F.call(this,ue,a0)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(ue){return new Nl(ue)},G.prototype.queryRadius=function(ue){var Ae=ue;return Sf("circle-radius",this,Ae)+Sf("circle-stroke-width",this,Ae)+Nc(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt,hn){for(var mn=o0(ue,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Pt.angle,jt),Dn=this.paint.get("circle-radius").evaluate(Ae,He)+this.paint.get("circle-stroke-width").evaluate(Ae,He),Xn=this.paint.get("circle-pitch-alignment")==="map",$n=Xn?mn:function(Ii,bi){return Ii.map(function(Zi){return rm(Zi,bi)})}(mn,hn),mr=Xn?Dn*jt:Dn,Or=0,Kr=nt;OrF.width||He.height>F.height||ue.x>F.width-He.width||ue.y>F.height-He.height)throw new RangeError("out of range source coordinates for image copy");if(He.width>G.width||He.height>G.height||Ae.x>G.width-He.width||Ae.y>G.height-He.height)throw new RangeError("out of range destination coordinates for image copy");for(var ct=F.data,Pt=G.data,jt=0;jt80*ue){Ae=nt=F[0],He=ct=F[1];for(var mr=ue;mrnt&&(nt=Pt),jt>ct&&(ct=jt);hn=(hn=Math.max(nt-Ae,ct-He))!==0?1/hn:0}return Im(Xn,$n,ue,Ae,He,hn),$n}function sy(F,G,ue,Ae,He){var nt,ct;if(He===pb(F,G,ue,Ae)>0)for(nt=G;nt=G;nt-=Ae)ct=zm(nt,F[nt],F[nt+1],ct);return ct&&Za(ct,ct.next)&&(Rl(ct),ct=ct.next),ct}function yg(F,G){if(!F)return F;G||(G=F);var ue,Ae=F;do if(ue=!1,Ae.steiner||!Za(Ae,Ae.next)&&cu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(Rl(Ae),(Ae=G=Ae.prev)===Ae.next)break;ue=!0}while(ue||Ae!==G);return G}function Im(F,G,ue,Ae,He,nt,ct){if(F){!ct&&nt&&function(mn,Dn,Xn,$n){var mr=mn;do mr.z===null&&(mr.z=Dx(mr.x,mr.y,Dn,Xn,$n)),mr.prevZ=mr.prev,mr.nextZ=mr.next,mr=mr.next;while(mr!==mn);mr.prevZ.nextZ=null,mr.prevZ=null,function(Or){var Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi=1;do{for(Hr=Or,Or=null,Io=null,Qo=0;Hr;){for(Qo++,fo=Hr,Po=0,Kr=0;Kr0||Ii>0&&fo;)Po!==0&&(Ii===0||!fo||Hr.z<=fo.z)?(mo=Hr,Hr=Hr.nextZ,Po--):(mo=fo,fo=fo.nextZ,Ii--),Io?Io.nextZ=mo:Or=mo,mo.prevZ=Io,Io=mo;Hr=fo}Io.nextZ=null,bi*=2}while(Qo>1)}(mr)}(F,Ae,He,nt);for(var Pt,jt,hn=F;F.prev!==F.next;)if(Pt=F.prev,jt=F.next,nt?Oh(F,Ae,He,nt):Dm(F))G.push(Pt.i/ue),G.push(F.i/ue),G.push(jt.i/ue),Rl(F),F=jt.next,hn=jt.next;else if((F=jt)===hn){ct?ct===1?Im(F=zp(yg(F),G,ue),G,ue,Ae,He,nt,2):ct===2&&J0(F,G,ue,Ae,He,nt):Im(yg(F),G,ue,Ae,He,nt,1);break}}}function Dm(F){var G=F.prev,ue=F,Ae=F.next;if(cu(G,ue,Ae)>=0)return!1;for(var He=F.next.next;He!==F.prev;){if(W1(G.x,G.y,ue.x,ue.y,Ae.x,Ae.y,He.x,He.y)&&cu(He.prev,He,He.next)>=0)return!1;He=He.next}return!0}function Oh(F,G,ue,Ae){var He=F.prev,nt=F,ct=F.next;if(cu(He,nt,ct)>=0)return!1;for(var Pt=He.xnt.x?He.x>ct.x?He.x:ct.x:nt.x>ct.x?nt.x:ct.x,mn=He.y>nt.y?He.y>ct.y?He.y:ct.y:nt.y>ct.y?nt.y:ct.y,Dn=Dx(Pt,jt,G,ue,Ae),Xn=Dx(hn,mn,G,ue,Ae),$n=F.prevZ,mr=F.nextZ;$n&&$n.z>=Dn&&mr&&mr.z<=Xn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0||($n=$n.prevZ,mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0))return!1;mr=mr.nextZ}for(;$n&&$n.z>=Dn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0)return!1;$n=$n.prevZ}for(;mr&&mr.z<=Xn;){if(mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0)return!1;mr=mr.nextZ}return!0}function zp(F,G,ue){var Ae=F;do{var He=Ae.prev,nt=Ae.next.next;!Za(He,nt)&&sa(He,Ae,Ae.next,nt)&&n1(He,nt)&&n1(nt,He)&&(G.push(He.i/ue),G.push(Ae.i/ue),G.push(nt.i/ue),Rl(Ae),Rl(Ae.next),Ae=F=nt),Ae=Ae.next}while(Ae!==F);return yg(Ae)}function J0(F,G,ue,Ae,He,nt){var ct=F;do{for(var Pt=ct.next.next;Pt!==ct.prev;){if(ct.i!==Pt.i&&e1(ct,Pt)){var jt=Bx(ct,Pt);return ct=yg(ct,ct.next),jt=yg(jt,jt.next),Im(ct,G,ue,Ae,He,nt),void Im(jt,G,ue,Ae,He,nt)}Pt=Pt.next}ct=ct.next}while(ct!==F)}function F_(F,G){return F.x-G.x}function q1(F,G){if(G=function(Ae,He){var nt,ct=He,Pt=Ae.x,jt=Ae.y,hn=-1/0;do{if(jt<=ct.y&&jt>=ct.next.y&&ct.next.y!==ct.y){var mn=ct.x+(jt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(mn<=Pt&&mn>hn){if(hn=mn,mn===Pt){if(jt===ct.y)return ct;if(jt===ct.next.y)return ct.next}nt=ct.x=ct.x&&ct.x>=$n&&Pt!==ct.x&&W1(jtnt.x||ct.x===nt.x&&$_(nt,ct)))&&(nt=ct,Or=Dn)),ct=ct.next;while(ct!==Xn);return nt}(F,G)){var ue=Bx(G,F);yg(G,G.next),yg(ue,ue.next)}}function $_(F,G){return cu(F.prev,F,G.prev)<0&&cu(G.next,F,F.next)<0}function Dx(F,G,ue,Ae,He){return(F=1431655765&((F=858993459&((F=252645135&((F=16711935&((F=32767*(F-ue)*He)|F<<8))|F<<4))|F<<2))|F<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*He)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function UO(F){var G=F,ue=F;do(G.x=0&&(F-ct)*(Ae-Pt)-(ue-ct)*(G-Pt)>=0&&(ue-ct)*(nt-Pt)-(He-ct)*(Ae-Pt)>=0}function e1(F,G){return F.next.i!==G.i&&F.prev.i!==G.i&&!function(ue,Ae){var He=ue;do{if(He.i!==ue.i&&He.next.i!==ue.i&&He.i!==Ae.i&&He.next.i!==Ae.i&&sa(He,He.next,ue,Ae))return!0;He=He.next}while(He!==ue);return!1}(F,G)&&(n1(F,G)&&n1(G,F)&&function(ue,Ae){var He=ue,nt=!1,ct=(ue.x+Ae.x)/2,Pt=(ue.y+Ae.y)/2;do He.y>Pt!=He.next.y>Pt&&He.next.y!==He.y&&ct<(He.next.x-He.x)*(Pt-He.y)/(He.next.y-He.y)+He.x&&(nt=!nt),He=He.next;while(He!==ue);return nt}(F,G)&&(cu(F.prev,F,G.prev)||cu(F,G.prev,G))||Za(F,G)&&cu(F.prev,F,F.next)>0&&cu(G.prev,G,G.next)>0)}function cu(F,G,ue){return(G.y-F.y)*(ue.x-G.x)-(G.x-F.x)*(ue.y-G.y)}function Za(F,G){return F.x===G.x&&F.y===G.y}function sa(F,G,ue,Ae){var He=t1(cu(F,G,ue)),nt=t1(cu(F,G,Ae)),ct=t1(cu(ue,Ae,F)),Pt=t1(cu(ue,Ae,G));return He!==nt&&ct!==Pt||!(He!==0||!Bm(F,ue,G))||!(nt!==0||!Bm(F,Ae,G))||!(ct!==0||!Bm(ue,F,Ae))||!(Pt!==0||!Bm(ue,G,Ae))}function Bm(F,G,ue){return G.x<=Math.max(F.x,ue.x)&&G.x>=Math.min(F.x,ue.x)&&G.y<=Math.max(F.y,ue.y)&&G.y>=Math.min(F.y,ue.y)}function t1(F){return F>0?1:F<0?-1:0}function n1(F,G){return cu(F.prev,F,F.next)<0?cu(F,G,F.next)>=0&&cu(F,F.prev,G)>=0:cu(F,G,F.prev)<0||cu(F,F.next,G)<0}function Bx(F,G){var ue=new zx(F.i,F.x,F.y),Ae=new zx(G.i,G.x,G.y),He=F.next,nt=G.prev;return F.next=G,G.prev=F,ue.next=He,He.prev=ue,Ae.next=ue,ue.prev=Ae,nt.next=Ae,Ae.prev=nt,Ae}function zm(F,G,ue,Ae){var He=new zx(F,G,ue);return Ae?(He.next=Ae.next,He.prev=Ae,Ae.next.prev=He,Ae.next=He):(He.prev=He,He.next=He),He}function Rl(F){F.next.prev=F.prev,F.prev.next=F.next,F.prevZ&&(F.prevZ.nextZ=F.nextZ),F.nextZ&&(F.nextZ.prevZ=F.prevZ)}function zx(F,G,ue){this.i=F,this.x=G,this.y=ue,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pb(F,G,ue,Ae){for(var He=0,nt=G,ct=ue-Ae;ntue;){if(Ae-ue>600){var nt=Ae-ue+1,ct=G-ue+1,Pt=Math.log(nt),jt=.5*Math.exp(2*Pt/3),hn=.5*Math.sqrt(Pt*jt*(nt-jt)/nt)*(ct-nt/2<0?-1:1);Lo(F,G,Math.max(ue,Math.floor(G-ct*jt/nt+hn)),Math.min(Ae,Math.floor(G+(nt-ct)*jt/nt+hn)),He)}var mn=F[G],Dn=ue,Xn=Ae;for(Nm(F,ue,G),He(F[Ae],mn)>0&&Nm(F,ue,Ae);Dn0;)Xn--}He(F[ue],mn)===0?Nm(F,ue,Xn):Nm(F,++Xn,Ae),Xn<=G&&(ue=Xn+1),G<=Xn&&(Ae=Xn-1)}}function Nm(F,G,ue){var Ae=F[G];F[G]=F[ue],F[ue]=Ae}function D4(F,G){return FG?1:0}function bg(F,G){var ue=F.length;if(ue<=1)return[F];for(var Ae,He,nt=[],ct=0;ct1)for(var jt=0;jt0&&(Ae+=F[He-1].length,ue.holes.push(Ae))}return ue},Z1.default=N_;var od=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rd,this.indexArray=new Ne,this.indexArray2=new Mt,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.segments2=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};od.prototype.populate=function(F,G,ue){this.hasPattern=c0("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),He=[],nt=0,ct=F;nt>3}if(He--,Ae===1||Ae===2)nt+=F.readSVarint(),ct+=F.readSVarint(),Ae===1&&(G&&Pt.push(G),G=[]),G.push(new a(nt,ct));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Pt.push(G),Pt},Sh.prototype.bbox=function(){var F=this._pbf;F.pos=this._geometry;for(var G=F.readVarint()+F.pos,ue=1,Ae=0,He=0,nt=0,ct=1/0,Pt=-1/0,jt=1/0,hn=-1/0;F.pos>3}if(Ae--,ue===1||ue===2)(He+=F.readSVarint())Pt&&(Pt=He),(nt+=F.readSVarint())hn&&(hn=nt);else if(ue!==7)throw new Error("unknown command "+ue)}return[ct,jt,Pt,hn]},Sh.prototype.toGeoJSON=function(F,G,ue){var Ae,He,nt=this.extent*Math.pow(2,ue),ct=this.extent*F,Pt=this.extent*G,jt=this.loadGeometry(),hn=Sh.types[this.type];function mn($n){for(var mr=0;mr<$n.length;mr++){var Or=$n[mr],Kr=180-360*(Or.y+Pt)/nt;$n[mr]=[360*(Or.x+ct)/nt-180,360/Math.PI*Math.atan(Math.exp(Kr*Math.PI/180))-90]}}switch(this.type){case 1:var Dn=[];for(Ae=0;Ae>3;He=ct===1?Ae.readString():ct===2?Ae.readFloat():ct===3?Ae.readDouble():ct===4?Ae.readVarint64():ct===5?Ae.readVarint():ct===6?Ae.readSVarint():ct===7?Ae.readBoolean():null}return He}(ue))}function jO(F,G,ue){if(F===3){var Ae=new Y1(ue,ue.readVarint()+ue.pos);Ae.length&&(G[Ae.name]=Ae)}}cy.prototype.feature=function(F){if(F<0||F>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[F];var G=this._pbf.readVarint()+this._pbf.pos;return new Nx(this._pbf,G,this.extent,this._keys,this._values)};var _g={VectorTile:function(F,G){this.layers=F.readFields(jO,{},G)},VectorTileFeature:Nx,VectorTileLayer:Y1},Q_=_g.VectorTileFeature.types,wg=Math.pow(2,13);function X1(F,G,ue,Ae,He,nt,ct,Pt){F.emplaceBack(G,ue,2*Math.floor(Ae*wg)+ct,He*wg*2,nt*wg*2,Math.round(Pt))}var om=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new kt,this.indexArray=new Ne,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function H_(F,G){return F.x===G.x&&(F.x<0||F.x>ua)||F.y===G.y&&(F.y<0||F.y>ua)}om.prototype.populate=function(F,G,ue){this.features=[],this.hasPattern=c0("fill-extrusion",this.layers,G);for(var Ae=0,He=F;Aeua})||fl.every(function(As){return As.y<0})||fl.every(function(As){return As.y>ua})))for(var Or=0,Kr=0;Kr=1){var fo=mr[Kr-1];if(!H_(Hr,fo)){Dn.vertexLength+4>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var mo=Hr.sub(fo)._perp()._unit(),Io=fo.dist(Hr);Or+Io>32768&&(Or=0),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,1,Or),Or+=Io,X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,1,Or);var Qo=Dn.vertexLength;this.indexArray.emplaceBack(Qo,Qo+2,Qo+1),this.indexArray.emplaceBack(Qo+1,Qo+2,Qo+3),Dn.vertexLength+=4,Dn.primitiveLength+=2}}}}if(Dn.vertexLength+jt>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(jt,this.layoutVertexArray,this.indexArray)),Q_[F.type]==="Polygon"){for(var Po=[],Ii=[],bi=Dn.vertexLength,Zi=0,ra=Pt;Zi=2&&F[jt-1].equals(F[jt-2]);)jt--;for(var hn=0;hn0;if(Ii&&Hr>hn){var Zi=mn.dist($n);if(Zi>2*Dn){var ra=mn.sub(mn.sub($n)._mult(Dn/Zi)._round());this.updateDistance($n,ra),this.addCurrentVertex(ra,Or,0,0,Xn),$n=ra}}var ka=$n&&mr,ea=ka?ue:Pt?"butt":Ae;if(ka&&ea==="round"&&(QoHe&&(ea="bevel"),ea==="bevel"&&(Qo>2&&(ea="flipbevel"),Qo100)fo=Kr.mult(-1);else{var as=Qo*Or.add(Kr).mag()/Or.sub(Kr).mag();fo._perp()._mult(as*(bi?-1:1))}this.addCurrentVertex(mn,fo,0,0,Xn),this.addCurrentVertex(mn,fo.mult(-1),0,0,Xn)}else if(ea==="bevel"||ea==="fakeround"){var Da=-Math.sqrt(Qo*Qo-1),ba=bi?Da:0,fl=bi?0:Da;if($n&&this.addCurrentVertex(mn,Or,ba,fl,Xn),ea==="fakeround")for(var As=Math.round(180*Po/Math.PI/20),hc=1;hc2*Dn){var qa=mn.add(mr.sub(mn)._mult(Dn/Fc)._round());this.updateDistance(mn,qa),this.addCurrentVertex(qa,Kr,0,0,Xn),mn=qa}}}}},Xu.prototype.addCurrentVertex=function(F,G,ue,Ae,He,nt){nt===void 0&&(nt=!1);var ct=G.x+G.y*ue,Pt=G.y-G.x*ue,jt=-G.x+G.y*Ae,hn=-G.y-G.x*Ae;this.addHalfVertex(F,ct,Pt,nt,!1,ue,He),this.addHalfVertex(F,jt,hn,nt,!0,-Ae,He),this.distance>cc/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(F,G,ue,Ae,He,nt))},Xu.prototype.addHalfVertex=function(F,G,ue,Ae,He,nt,ct){var Pt=F.x,jt=F.y,hn=.5*(this.lineClips?this.scaledDistance*(cc-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Pt<<1)+(Ae?1:0),(jt<<1)+(He?1:0),Math.round(63*G)+128,Math.round(63*ue)+128,1+(nt===0?0:nt<0?-1:1)|(63&hn)<<2,hn>>6),this.lineClips){var mn=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(mn,this.lineClipsArray.length)}var Dn=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Dn),ct.primitiveLength++),He?this.e2=Dn:this.e1=Dn},Xu.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Xu.prototype.updateDistance=function(F,G){this.distance+=F.dist(G),this.updateScaledDistance()},Ri("LineBucket",Xu,{omit:["layers","patternFeatures"]});var Vx=new _c({"line-cap":new Ki(_t.layout_line["line-cap"]),"line-join":new Aa(_t.layout_line["line-join"]),"line-miter-limit":new Ki(_t.layout_line["line-miter-limit"]),"line-round-limit":new Ki(_t.layout_line["line-round-limit"]),"line-sort-key":new Aa(_t.layout_line["line-sort-key"])}),ZO={paint:new _c({"line-opacity":new Aa(_t.paint_line["line-opacity"]),"line-color":new Aa(_t.paint_line["line-color"]),"line-translate":new Ki(_t.paint_line["line-translate"]),"line-translate-anchor":new Ki(_t.paint_line["line-translate-anchor"]),"line-width":new Aa(_t.paint_line["line-width"]),"line-gap-width":new Aa(_t.paint_line["line-gap-width"]),"line-offset":new Aa(_t.paint_line["line-offset"]),"line-blur":new Aa(_t.paint_line["line-blur"]),"line-dasharray":new Vf(_t.paint_line["line-dasharray"]),"line-pattern":new Pl(_t.paint_line["line-pattern"]),"line-gradient":new sh(_t.paint_line["line-gradient"])}),layout:Vx},u0=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(ue,Ae){return Ae=new uo(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),F.prototype.possiblyEvaluate.call(this,ue,Ae)},G.prototype.evaluate=function(ue,Ae,He,nt){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),F.prototype.evaluate.call(this,ue,Ae,He,nt)},G}(Aa),vb=new u0(ZO.paint.properties["line-width"].specification);vb.useIntegerZoom=!0;var Fm=function(F){function G(ue){F.call(this,ue,ZO),this.gradientVersion=0}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof mi,this.gradientVersion=(this.gradientVersion+1)%p}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(ue,Ae){F.prototype.recalculate.call(this,ue,Ae),this.paint._values["line-floorwidth"]=vb.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},G.prototype.createBucket=function(ue){return new Xu(ue)},G.prototype.queryRadius=function(ue){var Ae=ue,He=Z_(Sf("line-width",this,Ae),Sf("line-gap-width",this,Ae)),nt=Sf("line-offset",this,Ae);return He/2+Math.abs(nt)+Nc(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt){var hn=o0(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,jt),mn=jt/2*Z_(this.paint.get("line-width").evaluate(Ae,He),this.paint.get("line-gap-width").evaluate(Ae,He)),Dn=this.paint.get("line-offset").evaluate(Ae,He);return Dn&&(nt=function(Xn,$n){for(var mr=[],Or=new a(0,0),Kr=0;Kr=3){for(var Hr=0;Hr0?G+2*F:F}var q_=Si([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),uc=Si([{name:"a_projected_pos",components:3,type:"Float32"}],4),uy=(Si([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Si([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zc=(Si([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Si([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qO=Si([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function rp(F,G,ue){return F.sections.forEach(function(Ae){Ae.text=function(He,nt,ct){var Pt=nt.layout.get("text-transform").evaluate(ct,{});return Pt==="uppercase"?He=He.toLocaleUpperCase():Pt==="lowercase"&&(He=He.toLocaleLowerCase()),wr.applyArabicShaping&&(He=wr.applyArabicShaping(He)),He}(Ae.text,G,ue)}),F}Si([{name:"triangle",components:3,type:"Uint16"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Si([{type:"Float32",name:"offsetX"}]),Si([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Og={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Oc=24,WO=function(F,G,ue,Ae,He){var nt,ct,Pt=8*He-Ae-1,jt=(1<>1,mn=-7,Dn=ue?He-1:0,Xn=ue?-1:1,$n=F[G+Dn];for(Dn+=Xn,nt=$n&(1<<-mn)-1,$n>>=-mn,mn+=Pt;mn>0;nt=256*nt+F[G+Dn],Dn+=Xn,mn-=8);for(ct=nt&(1<<-mn)-1,nt>>=-mn,mn+=Ae;mn>0;ct=256*ct+F[G+Dn],Dn+=Xn,mn-=8);if(nt===0)nt=1-hn;else{if(nt===jt)return ct?NaN:1/0*($n?-1:1);ct+=Math.pow(2,Ae),nt-=hn}return($n?-1:1)*ct*Math.pow(2,nt-Ae)},YO=function(F,G,ue,Ae,He,nt){var ct,Pt,jt,hn=8*nt-He-1,mn=(1<>1,Xn=He===23?Math.pow(2,-24)-Math.pow(2,-77):0,$n=Ae?0:nt-1,mr=Ae?1:-1,Or=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Pt=isNaN(G)?1:0,ct=mn):(ct=Math.floor(Math.log(G)/Math.LN2),G*(jt=Math.pow(2,-ct))<1&&(ct--,jt*=2),(G+=ct+Dn>=1?Xn/jt:Xn*Math.pow(2,1-Dn))*jt>=2&&(ct++,jt/=2),ct+Dn>=mn?(Pt=0,ct=mn):ct+Dn>=1?(Pt=(G*jt-1)*Math.pow(2,He),ct+=Dn):(Pt=G*Math.pow(2,Dn-1)*Math.pow(2,He),ct=0));He>=8;F[ue+$n]=255&Pt,$n+=mr,Pt/=256,He-=8);for(ct=ct<0;F[ue+$n]=255&ct,$n+=mr,ct/=256,hn-=8);F[ue+$n-mr]|=128*Or},Ux=qc;function qc(F){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(F)?F:new Uint8Array(F||0),this.pos=0,this.type=0,this.length=this.buf.length}qc.Varint=0,qc.Fixed64=1,qc.Bytes=2,qc.Fixed32=5;var ff=4294967296,fh=1/ff,fy=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function jh(F){return F.type===qc.Bytes?F.readVarint()+F.pos:F.pos+1}function r1(F,G,ue){return ue?4294967296*G+(F>>>0):4294967296*(G>>>0)+(F>>>0)}function G1(F,G,ue){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));ue.realloc(Ae);for(var He=ue.pos-1;He>=F;He--)ue.buf[He+Ae]=ue.buf[He]}function Sg(F,G){for(var ue=0;ue>>8,F[ue+2]=G>>>16,F[ue+3]=G>>>24}function jx(F,G){return(F[G]|F[G+1]<<8|F[G+2]<<16)+(F[G+3]<<24)}qc.prototype={destroy:function(){this.buf=null},readFields:function(F,G,ue){for(ue=ue||this.length;this.pos>3,nt=this.pos;this.type=7&Ae,F(He,G,this),this.pos===nt&&this.skip(Ae)}return G},readMessage:function(F,G){return this.readFields(F,G,this.readVarint()+this.pos)},readFixed32:function(){var F=tv(this.buf,this.pos);return this.pos+=4,F},readSFixed32:function(){var F=jx(this.buf,this.pos);return this.pos+=4,F},readFixed64:function(){var F=tv(this.buf,this.pos)+tv(this.buf,this.pos+4)*ff;return this.pos+=8,F},readSFixed64:function(){var F=tv(this.buf,this.pos)+jx(this.buf,this.pos+4)*ff;return this.pos+=8,F},readFloat:function(){var F=WO(this.buf,this.pos,!0,23,4);return this.pos+=4,F},readDouble:function(){var F=WO(this.buf,this.pos,!0,52,8);return this.pos+=8,F},readVarint:function(F){var G,ue,Ae=this.buf;return G=127&(ue=Ae[this.pos++]),ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<7,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<14,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<21,ue<128?G:function(He,nt,ct){var Pt,jt,hn=ct.buf;if(Pt=(112&(jt=hn[ct.pos++]))>>4,jt<128||(Pt|=(127&(jt=hn[ct.pos++]))<<3,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<10,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<17,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<24,jt<128)||(Pt|=(1&(jt=hn[ct.pos++]))<<31,jt<128))return r1(He,Pt,nt);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(ue=Ae[this.pos]))<<28,F,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var F=this.readVarint();return F%2==1?(F+1)/-2:F/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var F=this.readVarint()+this.pos,G=this.pos;return this.pos=F,F-G>=12&&fy?function(ue,Ae,He){return fy.decode(ue.subarray(Ae,He))}(this.buf,G,F):function(ue,Ae,He){for(var nt="",ct=Ae;ct239?4:mn>223?3:mn>191?2:1;if(ct+Xn>He)break;Xn===1?mn<128&&(Dn=mn):Xn===2?(192&(Pt=ue[ct+1]))==128&&(Dn=(31&mn)<<6|63&Pt)<=127&&(Dn=null):Xn===3?(Pt=ue[ct+1],jt=ue[ct+2],(192&Pt)==128&&(192&jt)==128&&((Dn=(15&mn)<<12|(63&Pt)<<6|63&jt)<=2047||Dn>=55296&&Dn<=57343)&&(Dn=null)):Xn===4&&(Pt=ue[ct+1],jt=ue[ct+2],hn=ue[ct+3],(192&Pt)==128&&(192&jt)==128&&(192&hn)==128&&((Dn=(15&mn)<<18|(63&Pt)<<12|(63&jt)<<6|63&hn)<=65535||Dn>=1114112)&&(Dn=null)),Dn===null?(Dn=65533,Xn=1):Dn>65535&&(Dn-=65536,nt+=String.fromCharCode(Dn>>>10&1023|55296),Dn=56320|1023&Dn),nt+=String.fromCharCode(Dn),ct+=Xn}return nt}(this.buf,G,F)},readBytes:function(){var F=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,F);return this.pos=F,G},readPackedVarint:function(F,G){if(this.type!==qc.Bytes)return F.push(this.readVarint(G));var ue=jh(this);for(F=F||[];this.pos127;);else if(G===qc.Bytes)this.pos=this.readVarint()+this.pos;else if(G===qc.Fixed32)this.pos+=4;else{if(G!==qc.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(F,G){this.writeVarint(F<<3|G)},realloc:function(F){for(var G=this.length||16;G268435455||F<0?function(G,ue){var Ae,He;if(G>=0?(Ae=G%4294967296|0,He=G/4294967296|0):(He=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,He=He+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");ue.realloc(10),function(nt,ct,Pt){Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos]=127&nt}(Ae,0,ue),function(nt,ct){var Pt=(7&nt)<<4;ct.buf[ct.pos++]|=Pt|((nt>>>=3)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt)))))}(He,ue)}(F,this):(this.realloc(4),this.buf[this.pos++]=127&F|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=F>>>7&127))))},writeSVarint:function(F){this.writeVarint(F<0?2*-F-1:2*F)},writeBoolean:function(F){this.writeVarint(!!F)},writeString:function(F){F=String(F),this.realloc(4*F.length),this.pos++;var G=this.pos;this.pos=function(Ae,He,nt){for(var ct,Pt,jt=0;jt55295&&ct<57344){if(!Pt){ct>56319||jt+1===He.length?(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189):Pt=ct;continue}if(ct<56320){Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=ct;continue}ct=Pt-55296<<10|ct-56320|65536,Pt=null}else Pt&&(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=null);ct<128?Ae[nt++]=ct:(ct<2048?Ae[nt++]=ct>>6|192:(ct<65536?Ae[nt++]=ct>>12|224:(Ae[nt++]=ct>>18|240,Ae[nt++]=ct>>12&63|128),Ae[nt++]=ct>>6&63|128),Ae[nt++]=63&ct|128)}return nt}(this.buf,F,this.pos);var ue=this.pos-G;ue>=128&&G1(G,ue,this),this.pos=G-1,this.writeVarint(ue),this.pos+=ue},writeFloat:function(F){this.realloc(4),YO(this.buf,F,this.pos,!0,23,4),this.pos+=4},writeDouble:function(F){this.realloc(8),YO(this.buf,F,this.pos,!0,52,8),this.pos+=8},writeBytes:function(F){var G=F.length;this.writeVarint(G),this.realloc(G);for(var ue=0;ue=128&&G1(ue,Ae,this),this.pos=ue-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(F,G,ue){this.writeTag(F,qc.Bytes),this.writeRawMessage(G,ue)},writePackedVarint:function(F,G){G.length&&this.writeMessage(F,Sg,G)},writePackedSVarint:function(F,G){G.length&&this.writeMessage(F,dy,G)},writePackedBoolean:function(F,G){G.length&&this.writeMessage(F,kg,G)},writePackedFloat:function(F,G){G.length&&this.writeMessage(F,K1,G)},writePackedDouble:function(F,G){G.length&&this.writeMessage(F,o1,G)},writePackedFixed32:function(F,G){G.length&&this.writeMessage(F,J1,G)},writePackedSFixed32:function(F,G){G.length&&this.writeMessage(F,ev,G)},writePackedFixed64:function(F,G){G.length&&this.writeMessage(F,z4,G)},writePackedSFixed64:function(F,G){G.length&&this.writeMessage(F,W_,G)},writeBytesField:function(F,G){this.writeTag(F,qc.Bytes),this.writeBytes(G)},writeFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeSFixed64(G)},writeVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeVarint(G)},writeSVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeSVarint(G)},writeStringField:function(F,G){this.writeTag(F,qc.Bytes),this.writeString(G)},writeFloatField:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFloat(G)},writeDoubleField:function(F,G){this.writeTag(F,qc.Fixed64),this.writeDouble(G)},writeBooleanField:function(F,G){this.writeVarintField(F,!!G)}};var hy=3;function Y_(F,G,ue){F===1&&ue.readMessage(X_,G)}function X_(F,G,ue){if(F===3){var Ae=ue.readMessage(G_,{}),He=Ae.id,nt=Ae.bitmap,ct=Ae.width,Pt=Ae.height,jt=Ae.left,hn=Ae.top,mn=Ae.advance;G.push({id:He,bitmap:new wh({width:ct+2*hy,height:Pt+2*hy},nt),metrics:{width:ct,height:Pt,left:jt,top:hn,advance:mn}})}}function G_(F,G,ue){F===1?G.id=ue.readVarint():F===2?G.bitmap=ue.readBytes():F===3?G.width=ue.readVarint():F===4?G.height=ue.readVarint():F===5?G.left=ue.readSVarint():F===6?G.top=ue.readSVarint():F===7&&(G.advance=ue.readVarint())}var py=hy;function yb(F){for(var G=0,ue=0,Ae=0,He=F;Ae=0;Xn--){var $n=ct[Xn];if(!(Dn.w>$n.w||Dn.h>$n.h)){if(Dn.x=$n.x,Dn.y=$n.y,jt=Math.max(jt,Dn.y+Dn.h),Pt=Math.max(Pt,Dn.x+Dn.w),Dn.w===$n.w&&Dn.h===$n.h){var mr=ct.pop();Xn0&&d1>Wc&&(Wc=d1)}else{var t2=As[$l.fontStack],gv=t2&&t2[Mh];if(gv&&gv.rect)hh=gv.rect,dh=gv.metrics;else{var Lu=fl[$l.fontStack],$c=Lu&&Lu[Mh];if(!$c)continue;dh=$c.metrics}mc=(Us-$l.scale)*Oc}tu?(ba.verticalizable=!0,ni.push({glyph:Mh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=Qf*$l.scale+qa):(ni.push({glyph:Mh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=dh.advance*$l.scale+qa)}if(ni.length!==0){var dl=sd-qa;cd=Math.max(dl,cd),pC(ni,0,ni.length-1,xl,Wc)}sd=0;var Mf=Vs*Us+Wc;fu.lineOffset=Math.max(Wc,_l),ld+=Mf,Cf=Math.max(Mf,Cf),++eu}else ld+=Vs,++eu}var du=ld-rv,Iu=ad(Fl),vv=Iu.horizontalAlign,h1=Iu.verticalAlign;(function(n2,yy,p1,b0,Hm,yv,by,x0,r2){var Mb=(yy-p1)*Hm,Ad=0;Ad=yv!==by?-x0*b0-rv:(-b0*r2+.5)*by;for(var xy=0,_y=n2;xy<_y.length;xy+=1)for(var Md=0,m1=_y[xy].positionedGlyphs;Md=0&&Ae>=F&&Qx[this.text.charCodeAt(Ae)];Ae--)ue--;this.text=this.text.substring(F,ue),this.sectionIndex=this.sectionIndex.slice(F,ue)},Od.prototype.substring=function(F,G){var ue=new Od;return ue.text=this.text.substring(F,G),ue.sectionIndex=this.sectionIndex.slice(F,G),ue.sections=this.sections,ue},Od.prototype.toString=function(){return this.text},Od.prototype.getMaxScale=function(){var F=this;return this.sectionIndex.reduce(function(G,ue){return Math.max(G,F.sections[ue].scale)},0)},Od.prototype.addTextSection=function(F,G){this.text+=F.text,this.sections.push(ov.forText(F.scale,F.fontStack||G));for(var ue=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Qx={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},kh={};function f0(F,G,ue,Ae,He,nt){if(G.imageName){var ct=Ae[G.imageName];return ct?ct.displaySize[0]*G.scale*Oc/nt+He:0}var Pt=ue[G.fontStack],jt=Pt&&Pt[F];return jt?jt.metrics.advance*G.scale+He:0}function iv(F,G,ue,Ae){var He=Math.pow(F-G,2);return Ae?F=0,mn=0,Dn=0;Dn-ue/2;){if(--ct<0)return!1;Pt-=F[ct].dist(nt),nt=F[ct]}Pt+=F[ct].dist(F[ct+1]),ct++;for(var jt=[],hn=0;PtAe;)hn-=jt.shift().angleDelta;if(hn>He)return!1;ct++,Pt+=Dn.dist(Xn)}return!0}function my(F){for(var G=0,ue=0;uehn){var mr=(hn-jt)/$n,Or=Di(Dn.x,Xn.x,mr),Kr=Di(Dn.y,Xn.y,mr),Hr=new Ag(Or,Kr,Xn.angleTo(Dn),mn);return Hr._round(),!ct||J_(F,Hr,Pt,ct,G)?Hr:void 0}jt+=$n}}function sv(F,G,ue,Ae,He,nt,ct,Pt,jt){var hn=xb(Ae,nt,ct),mn=ew(Ae,He),Dn=mn*ct,Xn=F[0].x===0||F[0].x===jt||F[0].y===0||F[0].y===jt;return G-Dn=0&&Io=0&&Qo=0&&Xn+hn<=mn){var Po=new Ag(Io,Qo,fo,mr);Po._round(),Ae&&!J_(F,Po,nt,Ae,He)||$n.push(Po)}}Dn+=Hr}return Pt||$n.length||ct||($n=xp(F,Dn/2,ue,Ae,He,nt,ct,!0,jt)),$n}function _b(F,G,ue,Ae,He){for(var nt=[],ct=0;ct=Ae&&Dn.x>=Ae||(mn.x>=Ae?mn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round():Dn.x>=Ae&&(Dn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round()),mn.y>=He&&Dn.y>=He||(mn.y>=He?mn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round():Dn.y>=He&&(Dn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round()),jt&&mn.equals(jt[jt.length-1])||(jt=[mn],nt.push(jt)),jt.push(Dn)))))}return nt}var Ou=bp;function Wx(F,G,ue,Ae){var He=[],nt=F.image,ct=nt.pixelRatio,Pt=nt.paddedRect.w-2*Ou,jt=nt.paddedRect.h-2*Ou,hn=F.right-F.left,mn=F.bottom-F.top,Dn=nt.stretchX||[[0,Pt]],Xn=nt.stretchY||[[0,jt]],$n=function(Vs,Fl){return Vs+Fl[1]-Fl[0]},mr=Dn.reduce($n,0),Or=Xn.reduce($n,0),Kr=Pt-mr,Hr=jt-Or,fo=0,mo=mr,Io=0,Qo=Or,Po=0,Ii=Kr,bi=0,Zi=Hr;if(nt.content&&Ae){var ra=nt.content;fo=Sd(Dn,0,ra[0]),Io=Sd(Xn,0,ra[1]),mo=Sd(Dn,ra[0],ra[2]),Qo=Sd(Xn,ra[1],ra[3]),Po=ra[0]-fo,bi=ra[1]-Io,Ii=ra[2]-ra[0]-mo,Zi=ra[3]-ra[1]-Qo}var ka=function(Vs,Fl,kl,Fc){var qa=wb(Vs.stretch-fo,mo,hn,F.left),Sc=am(Vs.fixed-Po,Ii,Vs.stretch,mr),pc=wb(Fl.stretch-Io,Qo,mn,F.top),sd=am(Fl.fixed-bi,Zi,Fl.stretch,Or),ld=wb(kl.stretch-fo,mo,hn,F.left),cd=am(kl.fixed-Po,Ii,kl.stretch,mr),Cf=wb(Fc.stretch-Io,Qo,mn,F.top),xl=am(Fc.fixed-bi,Zi,Fc.stretch,Or),eu=new a(qa,pc),Td=new a(ld,pc),Af=new a(ld,Cf),jf=new a(qa,Cf),Us=new a(Sc/ct,sd/ct),_l=new a(cd/ct,xl/ct),fu=G*Math.PI/180;if(fu){var ni=Math.sin(fu),Wc=Math.cos(fu),Yc=[Wc,-ni,ni,Wc];eu._matMult(Yc),Td._matMult(Yc),jf._matMult(Yc),Af._matMult(Yc)}var $l=Vs.stretch+Vs.fixed,Ru=kl.stretch+kl.fixed,Mh=Fl.stretch+Fl.fixed,mc=Fc.stretch+Fc.fixed;return{tl:eu,tr:Td,bl:jf,br:Af,tex:{x:nt.paddedRect.x+Ou+$l,y:nt.paddedRect.y+Ou+Mh,w:Ru-$l,h:mc-Mh},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Us,pixelOffsetBR:_l,minFontScaleX:Ii/ct/hn,minFontScaleY:Zi/ct/mn,isSDF:ue}};if(Ae&&(nt.stretchX||nt.stretchY))for(var ea=XO(Dn,Kr,mr),as=XO(Xn,Hr,Or),Da=0;Da0&&($n=Math.max(10,$n),this.circleDiameter=$n)}else{var mr=nt.top*ct-Pt,Or=nt.bottom*ct+Pt,Kr=nt.left*ct-Pt,Hr=nt.right*ct+Pt,fo=nt.collisionPadding;if(fo&&(Kr-=fo[0]*ct,mr-=fo[1]*ct,Hr+=fo[2]*ct,Or+=fo[3]*ct),hn){var mo=new a(Kr,mr),Io=new a(Hr,mr),Qo=new a(Kr,Or),Po=new a(Hr,Or),Ii=hn*Math.PI/180;mo._rotate(Ii),Io._rotate(Ii),Qo._rotate(Ii),Po._rotate(Ii),Kr=Math.min(mo.x,Io.x,Qo.x,Po.x),Hr=Math.max(mo.x,Io.x,Qo.x,Po.x),mr=Math.min(mo.y,Io.y,Qo.y,Po.y),Or=Math.max(mo.y,Io.y,Qo.y,Po.y)}F.emplaceBack(G.x,G.y,Kr,mr,Hr,Or,ue,Ae,He)}this.boxEndIndex=F.length},_p=function(F,G){if(F===void 0&&(F=[]),G===void 0&&(G=op),this.data=F,this.length=this.data.length,this.compare=G,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};function op(F,G){return FG?1:0}function GO(F,G,ue){G===void 0&&(G=1),ue===void 0&&(ue=!1);for(var Ae=1/0,He=1/0,nt=-1/0,ct=-1/0,Pt=F[0],jt=0;jtnt)&&(nt=hn.x),(!jt||hn.y>ct)&&(ct=hn.y)}var mn=nt-Ae,Dn=ct-He,Xn=Math.min(mn,Dn),$n=Xn/2,mr=new _p([],Ob);if(Xn===0)return new a(Ae,He);for(var Or=Ae;OrHr.d||!Hr.d)&&(Hr=mo,ue&&console.log("found best %d after %d probes",Math.round(1e4*mo.d)/1e4,fo)),mo.max-Hr.d<=G||($n=mo.h/2,mr.push(new s1(mo.p.x-$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x-$n,mo.p.y+$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y+$n,$n,F)),fo+=4)}return ue&&(console.log("num probes: "+fo),console.log("best distance: "+Hr.d)),Hr.p}function Ob(F,G){return G.max-F.max}function s1(F,G,ue,Ae){this.p=new a(F,G),this.h=ue,this.d=function(He,nt){for(var ct=!1,Pt=1/0,jt=0;jtHe.y!=mr.y>He.y&&He.x<(mr.x-$n.x)*(He.y-$n.y)/(mr.y-$n.y)+$n.x&&(ct=!ct),Pt=Math.min(Pt,Pu(He,$n,mr))}return(ct?1:-1)*Math.sqrt(Pt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}_p.prototype.push=function(F){this.data.push(F),this.length++,this._up(this.length-1)},_p.prototype.pop=function(){if(this.length!==0){var F=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),F}},_p.prototype.peek=function(){return this.data[0]},_p.prototype._up=function(F){for(var G=this.data,ue=this.compare,Ae=G[F];F>0;){var He=F-1>>1,nt=G[He];if(ue(Ae,nt)>=0)break;G[F]=nt,F=He}G[F]=Ae},_p.prototype._down=function(F){for(var G=this.data,ue=this.compare,Ae=this.length>>1,He=G[F];F=0)break;G[F]=ct,F=nt}G[F]=He};var Um=7,h0=Number.POSITIVE_INFINITY;function p0(F,G){return G[1]!==h0?function(ue,Ae,He){var nt=0,ct=0;switch(Ae=Math.abs(Ae),He=Math.abs(He),ue){case"top-right":case"top-left":case"top":ct=He-Um;break;case"bottom-right":case"bottom-left":case"bottom":ct=-He+Um}switch(ue){case"top-right":case"bottom-right":case"right":nt=-Ae;break;case"top-left":case"bottom-left":case"left":nt=Ae}return[nt,ct]}(F,G[0],G[1]):function(ue,Ae){var He=0,nt=0;Ae<0&&(Ae=0);var ct=Ae/Math.sqrt(2);switch(ue){case"top-right":case"top-left":nt=ct-Um;break;case"bottom-right":case"bottom-left":nt=-ct+Um;break;case"bottom":nt=-Ae+Um;break;case"top":nt=Ae-Um}switch(ue){case"top-right":case"bottom-right":He=-ct;break;case"top-left":case"bottom-left":He=ct;break;case"left":He=Ae;break;case"right":He=-Ae}return[He,nt]}(F,G[0])}function Ss(F){switch(F){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var kd=255,Ch=kd*$m;function Sb(F,G,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=function(Io,Qo,Po,Ii,bi,Zi,ra,ka){for(var ea=Ii.layout.get("text-rotate").evaluate(Zi,{})*Math.PI/180,as=[],Da=0,ba=Qo.positionedLines;DaCh&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'):Kr.kind==="composite"&&((Hr=[$m*$n.compositeTextSizes[0].evaluate(ct,{},mr),$m*$n.compositeTextSizes[1].evaluate(ct,{},mr)])[0]>Ch||Hr[1]>Ch)&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'),F.addSymbols(F.text,Or,Hr,Pt,nt,ct,hn,G,jt.lineStartIndex,jt.lineLength,Xn,mr);for(var fo=0,mo=mn;fo=0;ct--)if(Ae.dist(nt[ct])0)&&(nt.value.kind!=="constant"||nt.value.value.length>0),hn=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,mn=He.get("symbol-sort-key");if(this.features=[],jt||hn){for(var Dn=G.iconDependencies,Xn=G.glyphDependencies,$n=G.availableImages,mr=new uo(this.zoom),Or=0,Kr=F;Or=0;for(var As=0,hc=bi.sections;As=0;Pt--)nt[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:He},Pt>0&&(He+=G[Pt-1].dist(G[Pt]));for(var jt=0;jt0},dc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},dc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},dc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},dc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},dc.prototype.addIndicesForPlacedSymbol=function(F,G){for(var ue=F.placedSymbolArray.get(G),Ae=ue.vertexStartIndex+4*ue.numGlyphs,He=ue.vertexStartIndex;He1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(F),this.sortedAngle=F,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,Ae=this.symbolInstanceIndexes;ue=0&&jt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),nt.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,nt.verticalPlacedTextSymbolIndex),nt.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.placedIconSymbolIndex),nt.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Ri("SymbolBucket",dc,{omit:["layers","collisionBoxArray","features","compareText"]}),dc.MAX_GLYPHS=65535,dc.addDynamicAttributes=lv;var uv=new _c({"symbol-placement":new Ki(_t.layout_symbol["symbol-placement"]),"symbol-spacing":new Ki(_t.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ki(_t.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Aa(_t.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ki(_t.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ki(_t.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ki(_t.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ki(_t.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ki(_t.layout_symbol["icon-rotation-alignment"]),"icon-size":new Aa(_t.layout_symbol["icon-size"]),"icon-text-fit":new Ki(_t.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ki(_t.layout_symbol["icon-text-fit-padding"]),"icon-image":new Aa(_t.layout_symbol["icon-image"]),"icon-rotate":new Aa(_t.layout_symbol["icon-rotate"]),"icon-padding":new Ki(_t.layout_symbol["icon-padding"]),"icon-keep-upright":new Ki(_t.layout_symbol["icon-keep-upright"]),"icon-offset":new Aa(_t.layout_symbol["icon-offset"]),"icon-anchor":new Aa(_t.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ki(_t.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ki(_t.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ki(_t.layout_symbol["text-rotation-alignment"]),"text-field":new Aa(_t.layout_symbol["text-field"]),"text-font":new Aa(_t.layout_symbol["text-font"]),"text-size":new Aa(_t.layout_symbol["text-size"]),"text-max-width":new Aa(_t.layout_symbol["text-max-width"]),"text-line-height":new Ki(_t.layout_symbol["text-line-height"]),"text-letter-spacing":new Aa(_t.layout_symbol["text-letter-spacing"]),"text-justify":new Aa(_t.layout_symbol["text-justify"]),"text-radial-offset":new Aa(_t.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ki(_t.layout_symbol["text-variable-anchor"]),"text-anchor":new Aa(_t.layout_symbol["text-anchor"]),"text-max-angle":new Ki(_t.layout_symbol["text-max-angle"]),"text-writing-mode":new Ki(_t.layout_symbol["text-writing-mode"]),"text-rotate":new Aa(_t.layout_symbol["text-rotate"]),"text-padding":new Ki(_t.layout_symbol["text-padding"]),"text-keep-upright":new Ki(_t.layout_symbol["text-keep-upright"]),"text-transform":new Aa(_t.layout_symbol["text-transform"]),"text-offset":new Aa(_t.layout_symbol["text-offset"]),"text-allow-overlap":new Ki(_t.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ki(_t.layout_symbol["text-ignore-placement"]),"text-optional":new Ki(_t.layout_symbol["text-optional"])}),Ah={paint:new _c({"icon-opacity":new Aa(_t.paint_symbol["icon-opacity"]),"icon-color":new Aa(_t.paint_symbol["icon-color"]),"icon-halo-color":new Aa(_t.paint_symbol["icon-halo-color"]),"icon-halo-width":new Aa(_t.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Aa(_t.paint_symbol["icon-halo-blur"]),"icon-translate":new Ki(_t.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ki(_t.paint_symbol["icon-translate-anchor"]),"text-opacity":new Aa(_t.paint_symbol["text-opacity"]),"text-color":new Aa(_t.paint_symbol["text-color"],{runtimeType:fr,getOverride:function(F){return F.textColor},hasOverride:function(F){return!!F.textColor}}),"text-halo-color":new Aa(_t.paint_symbol["text-halo-color"]),"text-halo-width":new Aa(_t.paint_symbol["text-halo-width"]),"text-halo-blur":new Aa(_t.paint_symbol["text-halo-blur"]),"text-translate":new Ki(_t.paint_symbol["text-translate"]),"text-translate-anchor":new Ki(_t.paint_symbol["text-translate-anchor"])}),layout:uv},Fp=function(F){this.type=F.property.overrides?F.property.overrides.runtimeType:_n,this.defaultValue=F};Fp.prototype.evaluate=function(F){if(F.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(F.formattedSection))return G.getOverride(F.formattedSection)}return F.feature&&F.featureState?this.defaultValue.evaluate(F.feature,F.featureState):this.defaultValue.property.specification.default},Fp.prototype.eachChild=function(F){this.defaultValue.isConstant()||F(this.defaultValue.value._styleExpression.expression)},Fp.prototype.outputDefined=function(){return!1},Fp.prototype.serialize=function(){return null},Ri("FormatSectionOverride",Fp,{omit:["defaultValue"]});var tw=function(F){function G(ue){F.call(this,ue,Ah)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(ue,Ae){if(F.prototype.recalculate.call(this,ue,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var He=this.layout.get("text-writing-mode");if(He){for(var nt=[],ct=0,Pt=He;ct",targetMapId:Ae,sourceMapId:nt.mapId})}}},hv.prototype.receive=function(F){var G=F.data,ue=G.id;if(ue&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[ue];var Ae=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[ue]=G,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,G)},hv.prototype.process=function(){if(this.taskQueue.length){var F=this.taskQueue.shift(),G=this.tasks[F];delete this.tasks[F],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(F,G)}},hv.prototype.processTask=function(F,G){var ue=this;if(G.type===""){var Ae=this.callbacks[F];delete this.callbacks[F],Ae&&(G.error?Ae(Kc(G.error)):Ae(null,Kc(G.data)))}else{var He=!1,nt=Z(this.globalScope)?void 0:[],ct=G.hasCallback?function(mn,Dn){He=!0,delete ue.cancelCallbacks[F],ue.target.postMessage({id:F,type:"",sourceMapId:ue.mapId,error:mn?xc(mn):null,data:xc(Dn,nt)},nt)}:function(mn){He=!0},Pt=null,jt=Kc(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,jt,ct);else if(this.parent.getWorkerSource){var hn=G.type.split(".");Pt=this.parent.getWorkerSource(G.sourceMapId,hn[0],jt.source)[hn[1]](jt,ct)}else ct(new Error("Could not find function "+G.type));!He&&Pt&&Pt.cancel&&(this.cancelCallbacks[F]=Pt.cancel)}},hv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var df=function(F,G){F&&(G?this.setSouthWest(F).setNorthEast(G):F.length===4?this.setSouthWest([F[0],F[1]]).setNorthEast([F[2],F[3]]):this.setSouthWest(F[0]).setNorthEast(F[1]))};df.prototype.setNorthEast=function(F){return this._ne=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.setSouthWest=function(F){return this._sw=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.extend=function(F){var G,ue,Ae=this._sw,He=this._ne;if(F instanceof uu)G=F,ue=F;else{if(!(F instanceof df)){if(Array.isArray(F)){if(F.length===4||F.every(Array.isArray)){var nt=F;return this.extend(df.convert(nt))}var ct=F;return this.extend(uu.convert(ct))}return this}if(G=F._sw,ue=F._ne,!G||!ue)return this}return Ae||He?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),He.lng=Math.max(ue.lng,He.lng),He.lat=Math.max(ue.lat,He.lat)):(this._sw=new uu(G.lng,G.lat),this._ne=new uu(ue.lng,ue.lat)),this},df.prototype.getCenter=function(){return new uu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},df.prototype.getSouthWest=function(){return this._sw},df.prototype.getNorthEast=function(){return this._ne},df.prototype.getNorthWest=function(){return new uu(this.getWest(),this.getNorth())},df.prototype.getSouthEast=function(){return new uu(this.getEast(),this.getSouth())},df.prototype.getWest=function(){return this._sw.lng},df.prototype.getSouth=function(){return this._sw.lat},df.prototype.getEast=function(){return this._ne.lng},df.prototype.getNorth=function(){return this._ne.lat},df.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},df.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},df.prototype.isEmpty=function(){return!(this._sw&&this._ne)},df.prototype.contains=function(F){var G=uu.convert(F),ue=G.lng,Ae=G.lat,He=this._sw.lat<=Ae&&Ae<=this._ne.lat,nt=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(nt=this._sw.lng>=ue&&ue>=this._ne.lng),He&&nt},df.convert=function(F){return!F||F instanceof df?F:new df(F)};var Tb=63710088e-1,uu=function(F,G){if(isNaN(F)||isNaN(G))throw new Error("Invalid LngLat object: ("+F+", "+G+")");if(this.lng=+F,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};uu.prototype.wrap=function(){return new uu(C(this.lng,-180,180),this.lat)},uu.prototype.toArray=function(){return[this.lng,this.lat]},uu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},uu.prototype.distanceTo=function(F){var G=Math.PI/180,ue=this.lat*G,Ae=F.lat*G,He=Math.sin(ue)*Math.sin(Ae)+Math.cos(ue)*Math.cos(Ae)*Math.cos((F.lng-this.lng)*G);return Tb*Math.acos(Math.min(He,1))},uu.prototype.toBounds=function(F){F===void 0&&(F=0);var G=360*F/40075017,ue=G/Math.cos(Math.PI/180*this.lat);return new df(new uu(this.lng-ue,this.lat-G),new uu(this.lng+ue,this.lat+G))},uu.convert=function(F){if(F instanceof uu)return F;if(Array.isArray(F)&&(F.length===2||F.length===3))return new uu(Number(F[0]),Number(F[1]));if(!Array.isArray(F)&&typeof F=="object"&&F!==null)return new uu(Number("lng"in F?F.lng:F.lon),Number(F.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Cb=2*Math.PI*Tb;function Kx(F){return Cb*Math.cos(F*Math.PI/180)}function Jx(F){return(180+F)/360}function iw(F){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+F*Math.PI/360)))/360}function e3(F,G){return F/Kx(G)}function lm(F){var G=180-360*F;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var u1=function(F,G,ue){ue===void 0&&(ue=0),this.x=+F,this.y=+G,this.z=+ue};u1.fromLngLat=function(F,G){G===void 0&&(G=0);var ue=uu.convert(F);return new u1(Jx(ue.lng),iw(ue.lat),e3(G,ue.lat))},u1.prototype.toLngLat=function(){return new uu(360*this.x-180,lm(this.y))},u1.prototype.toAltitude=function(){return F=this.z,G=this.y,F*Kx(lm(G));var F,G},u1.prototype.meterInMercatorCoordinateUnits=function(){return 1/Cb*(F=lm(this.y),1/Math.cos(F*Math.PI/180));var F};var cm=function(F,G,ue){this.z=F,this.x=G,this.y=ue,this.key=f1(0,F,F,G,ue)};cm.prototype.equals=function(F){return this.z===F.z&&this.x===F.x&&this.y===F.y},cm.prototype.url=function(F,G){var ue,Ae,He,nt,ct,Pt=(ue=this.x,Ae=this.y,He=this.z,nt=Gx(256*ue,256*(Ae=Math.pow(2,He)-Ae-1),He),ct=Gx(256*(ue+1),256*(Ae+1),He),nt[0]+","+nt[1]+","+ct[0]+","+ct[1]),jt=function(hn,mn,Dn){for(var Xn,$n="",mr=hn;mr>0;mr--)$n+=(mn&(Xn=1<this.canonical.z?new hf(F,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hf(F,this.wrap,F,this.canonical.x>>G,this.canonical.y>>G)},hf.prototype.calculateScaledKey=function(F,G){var ue=this.canonical.z-F;return F>this.canonical.z?f1(this.wrap*+G,F,this.canonical.z,this.canonical.x,this.canonical.y):f1(this.wrap*+G,F,F,this.canonical.x>>ue,this.canonical.y>>ue)},hf.prototype.isChildOf=function(F){if(F.wrap!==this.wrap)return!1;var G=this.canonical.z-F.canonical.z;return F.overscaledZ===0||F.overscaledZ>G&&F.canonical.y===this.canonical.y>>G},hf.prototype.children=function(F){if(this.overscaledZ>=F)return[new hf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,ue=2*this.canonical.x,Ae=2*this.canonical.y;return[new hf(G,this.wrap,G,ue,Ae),new hf(G,this.wrap,G,ue+1,Ae),new hf(G,this.wrap,G,ue,Ae+1),new hf(G,this.wrap,G,ue+1,Ae+1)]},hf.prototype.isLessThan=function(F){return this.wrapF.wrap)&&(this.overscaledZF.overscaledZ)&&(this.canonical.xF.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(F+1)},jm.prototype._unpackMapbox=function(F,G,ue){return(256*F*256+256*G+ue)/10-1e4},jm.prototype._unpackTerrarium=function(F,G,ue){return 256*F+G+ue/256-32768},jm.prototype.getPixels=function(){return new kf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jm.prototype.backfillBorder=function(F,G,ue){if(this.dim!==F.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,He=G*this.dim+this.dim,nt=ue*this.dim,ct=ue*this.dim+this.dim;switch(G){case-1:Ae=He-1;break;case 1:He=Ae+1}switch(ue){case-1:nt=ct-1;break;case 1:ct=nt+1}for(var Pt=-G*this.dim,jt=-ue*this.dim,hn=nt;hn=0&&mn[3]>=0&&Pt.insert(ct,mn[0],mn[1],mn[2],mn[3])}},m0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _g.VectorTile(new Ux(this.rawTileData)).layers,this.sourceLayerCoder=new mv(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},m0.prototype.query=function(F,G,ue,Ae){var He=this;this.loadVTLayers();for(var nt=F.params||{},ct=ua/F.tileSize/F.scale,Pt=xd(nt.filter),jt=F.queryGeometry,hn=F.queryPadding*ct,mn=v0(jt),Dn=this.grid.query(mn.minX-hn,mn.minY-hn,mn.maxX+hn,mn.maxY+hn),Xn=v0(F.cameraQueryGeometry),$n=0,mr=this.grid3D.query(Xn.minX-hn,Xn.minY-hn,Xn.maxX+hn,Xn.maxY+hn,function(Io,Qo,Po,Ii){return function(bi,Zi,ra,ka,ea){for(var as=0,Da=bi;as=ba.x&&ea>=ba.y)return!0}var fl=[new a(Zi,ra),new a(Zi,ea),new a(ka,ea),new a(ka,ra)];if(bi.length>2){for(var As=0,hc=fl;As=0)return!0;return!1}(nt,Dn)){var Xn=this.sourceLayerCoder.decode(ue),$n=this.vtLayers[Xn].feature(Ae);if(He.needGeometry){var mr=Is($n,!0);if(!He.filter(new uo(this.tileID.overscaledZ),mr,this.tileID.canonical))return}else if(!He.filter(new uo(this.tileID.overscaledZ),$n))return;for(var Or=this.getId($n,Xn),Kr=0;KrAe)He=!1;else if(G)if(this.expirationTimeot&&(F.getActor().send("enforceCacheSizeLimit",tt),Yt=0)},i.clamp=O,i.clearTileCache=function(F){var G=h.caches.delete(je);F&&G.catch(F).then(function(){return F()})},i.clipLine=_b,i.clone=function(F){var G=new wu(16);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G[3]=F[3],G[4]=F[4],G[5]=F[5],G[6]=F[6],G[7]=F[7],G[8]=F[8],G[9]=F[9],G[10]=F[10],G[11]=F[11],G[12]=F[12],G[13]=F[13],G[14]=F[14],G[15]=F[15],G},i.clone$1=I,i.clone$2=function(F){var G=new wu(3);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G},i.collisionCircleLayout=qO,i.config=ce,i.create=function(){var F=new wu(16);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[11]=0,F[12]=0,F[13]=0,F[14]=0),F[0]=1,F[5]=1,F[10]=1,F[15]=1,F},i.create$1=function(){var F=new wu(9);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[5]=0,F[6]=0,F[7]=0),F[0]=1,F[4]=1,F[8]=1,F},i.create$2=function(){var F=new wu(4);return wu!=Float32Array&&(F[1]=0,F[2]=0),F[0]=1,F[3]=1,F},i.createCommonjsModule=S,i.createExpression=zu,i.createLayout=Si,i.createStyleLayer=function(F){return F.type==="custom"?new rw(F):new JO[F.type](F)},i.cross=function(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=ue[0],Pt=ue[1],jt=ue[2];return F[0]=He*jt-nt*Pt,F[1]=nt*ct-Ae*jt,F[2]=Ae*Pt-He*ct,F},i.deepEqual=function F(G,ue){if(Array.isArray(G)){if(!Array.isArray(ue)||G.length!==ue.length)return!1;for(var Ae=0;Ae0&&(nt=1/Math.sqrt(nt)),F[0]=G[0]*nt,F[1]=G[1]*nt,F[2]=G[2]*nt,F},i.number=Di,i.offscreenCanvasSupported=ln,i.ortho=function(F,G,ue,Ae,He,nt,ct){var Pt=1/(G-ue),jt=1/(Ae-He),hn=1/(nt-ct);return F[0]=-2*Pt,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=-2*jt,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=2*hn,F[11]=0,F[12]=(G+ue)*Pt,F[13]=(He+Ae)*jt,F[14]=(ct+nt)*hn,F[15]=1,F},i.parseGlyphPBF=function(F){return new Ux(F).readFields(Y_,[])},i.pbf=Ux,i.performSymbolLayout=function(F,G,ue,Ae,He,nt,ct){F.createArrays();var Pt=512*F.overscaling;F.tilePixelRatio=ua/Pt,F.compareText={},F.iconsNeedLinear=!1;var jt=F.layers[0].layout,hn=F.layers[0]._unevaluatedLayout._values,mn={};if(F.textSizeData.kind==="composite"){var Dn=F.textSizeData,Xn=Dn.minZoom,$n=Dn.maxZoom;mn.compositeTextSizes=[hn["text-size"].possiblyEvaluate(new uo(Xn),ct),hn["text-size"].possiblyEvaluate(new uo($n),ct)]}if(F.iconSizeData.kind==="composite"){var mr=F.iconSizeData,Or=mr.minZoom,Kr=mr.maxZoom;mn.compositeIconSizes=[hn["icon-size"].possiblyEvaluate(new uo(Or),ct),hn["icon-size"].possiblyEvaluate(new uo(Kr),ct)]}mn.layoutTextSize=hn["text-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.layoutIconSize=hn["icon-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.textMaxSize=hn["text-size"].possiblyEvaluate(new uo(18));for(var Hr=jt.get("text-line-height")*Oc,fo=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",mo=jt.get("text-keep-upright"),Io=jt.get("text-size"),Qo=function(){var bi=Ii[Po],Zi=jt.get("text-font").evaluate(bi,{},ct).join(","),ra=Io.evaluate(bi,{},ct),ka=mn.layoutTextSize.evaluate(bi,{},ct),ea=mn.layoutIconSize.evaluate(bi,{},ct),as={horizontal:{},vertical:void 0},Da=bi.text,ba=[0,0];if(Da){var fl=Da.toString(),As=jt.get("text-letter-spacing").evaluate(bi,{},ct)*Oc,hc=function(Us){for(var _l=0,fu=Us;_l=ua||O0.y<0||O0.y>=ua||function(hu,ip,$4,qm,lw,cw,o2,$p,Rb,Lb,Oy,bv,uw,fw,ud,i2,a2,s2,Ib,n3,Eh,Db,l2,fm,r3){var xv,g1,_v,wv,Sy,Ov=hu.addToLineVertexArray(ip,$4),dw=0,o3=0,Bb=0,hw=0,v1=-1,c2=-1,Wm={},pw=Yo(""),mw=0,wp=0;if($p._unevaluatedLayout.getValue("text-radial-offset")===void 0?(mw=(xv=$p.layout.get("text-offset").evaluate(Eh,{},fm).map(function(y1){return y1*Oc}))[0],wp=xv[1]):(mw=$p.layout.get("text-radial-offset").evaluate(Eh,{},fm)*Oc,wp=h0),hu.allowVerticalPlacement&&qm.vertical){var zb=$p.layout.get("text-rotate").evaluate(Eh,{},fm)+90,u2=qm.vertical;wv=new Vm(Rb,ip,Lb,Oy,bv,u2,uw,fw,ud,zb),o2&&(Sy=new Vm(Rb,ip,Lb,Oy,bv,o2,a2,s2,ud,zb))}if(lw){var Hf=$p.layout.get("icon-rotate").evaluate(Eh,{}),V4=$p.layout.get("icon-text-fit")!=="none",ap=Wx(lw,Hf,l2,V4),Nb=o2?Wx(o2,Hf,l2,V4):void 0;_v=new Vm(Rb,ip,Lb,Oy,bv,lw,a2,s2,!1,Hf),dw=4*ap.length;var i3=hu.iconSizeData,dm=null;i3.kind==="source"?(dm=[$m*$p.layout.get("icon-size").evaluate(Eh,{})])[0]>Ch&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'):i3.kind==="composite"&&((dm=[$m*Db.compositeIconSizes[0].evaluate(Eh,{},fm),$m*Db.compositeIconSizes[1].evaluate(Eh,{},fm)])[0]>Ch||dm[1]>Ch)&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'),hu.addSymbols(hu.icon,ap,dm,n3,Ib,Eh,!1,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),v1=hu.icon.placedSymbolArray.length-1,Nb&&(o3=4*Nb.length,hu.addSymbols(hu.icon,Nb,dm,n3,Ib,Eh,Qh.vertical,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),c2=hu.icon.placedSymbolArray.length-1)}for(var ky in qm.horizontal){var f2=qm.horizontal[ky];if(!g1){pw=Yo(f2.text);var a3=$p.layout.get("text-rotate").evaluate(Eh,{},fm);g1=new Vm(Rb,ip,Lb,Oy,bv,f2,uw,fw,ud,a3)}var d2=f2.positionedLines.length===1;if(Bb+=Sb(hu,ip,f2,cw,$p,ud,Eh,i2,Ov,qm.vertical?Qh.horizontal:Qh.horizontalOnly,d2?Object.keys(qm.horizontal):[ky],Wm,v1,Db,fm),d2)break}qm.vertical&&(hw+=Sb(hu,ip,qm.vertical,cw,$p,ud,Eh,i2,Ov,Qh.vertical,["vertical"],Wm,c2,Db,fm));var s3=g1?g1.boxStartIndex:hu.collisionBoxArray.length,h2=g1?g1.boxEndIndex:hu.collisionBoxArray.length,Fb=wv?wv.boxStartIndex:hu.collisionBoxArray.length,l3=wv?wv.boxEndIndex:hu.collisionBoxArray.length,c3=_v?_v.boxStartIndex:hu.collisionBoxArray.length,U4=_v?_v.boxEndIndex:hu.collisionBoxArray.length,p2=Sy?Sy.boxStartIndex:hu.collisionBoxArray.length,m2=Sy?Sy.boxEndIndex:hu.collisionBoxArray.length,Mg=-1,S0=function(y1,g2){return y1&&y1.circleDiameter?Math.max(y1.circleDiameter,g2):g2};Mg=S0(g1,Mg),Mg=S0(wv,Mg),Mg=S0(_v,Mg);var gw=(Mg=S0(Sy,Mg))>-1?1:0;gw&&(Mg*=r3/Oc),hu.glyphOffsetArray.length>=dc.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Eh.sortKey!==void 0&&hu.addToSortKeyRanges(hu.symbolInstances.length,Eh.sortKey),hu.symbolInstances.emplaceBack(ip.x,ip.y,Wm.right>=0?Wm.right:-1,Wm.center>=0?Wm.center:-1,Wm.left>=0?Wm.left:-1,Wm.vertical||-1,v1,c2,pw,s3,h2,Fb,l3,c3,U4,p2,m2,Lb,Bb,hw,dw,o3,gw,0,uw,mw,wp,Mg)}(Us,O0,t3,fu,ni,Wc,Qm,Us.layers[0],Us.collisionBoxArray,_l.index,_l.sourceLayerIndex,Us.index,t2,dl,Iu,Mh,Lu,Mf,vv,tu,_l,Yc,mc,dh,$l)};if(h1==="line")for(var b0=0,Hm=_b(_l.geometry,0,0,ua,ua);b01){var _y=a1(xy,du,fu.vertical||qd,ni,Cd,gv);_y&&p1(xy,_y)}}else if(_l.type==="Polygon")for(var Md=0,m1=bg(_l.geometry,0);Md=Br.maxzoom||Br.visibility!=="none"&&(c(tr,this.zoom,st),(Jt[Br.id]=Br.createBucket({index:at.bucketLayerIDs.length,layers:tr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_n,sourceID:this.source})).populate(wn,Zt,this.tileID.canonical),at.bucketLayerIDs.push(tr.map(function(sr){return sr.id})))}}}var $r=i.mapObject(Zt.glyphDependencies,function(sr){return Object.keys(sr).map(Number)});Object.keys($r).length?bt.send("getGlyphs",{uid:this.uid,stacks:$r},function(sr,lr){Bt||(Bt=sr,_t=lr,gr.call(Dt))}):_t={};var vr=Object.keys(Zt.iconDependencies);vr.length?bt.send("getImages",{icons:vr,source:this.source,tileID:this.tileID,type:"icons"},function(sr,lr){Bt||(Bt=sr,qt=lr,gr.call(Dt))}):qt={};var qn=Object.keys(Zt.patternDependencies);function gr(){if(Bt)return Vt(Bt);if(_t&&qt&&en){var sr=new m(_t),lr=new i.ImageAtlas(qt,en);for(var zr in Jt){var Vr=Jt[zr];Vr instanceof i.SymbolBucket?(c(Vr.layers,this.zoom,st),i.performSymbolLayout(Vr,_t,sr.positions,qt,lr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vr.hasPattern&&(Vr instanceof i.LineBucket||Vr instanceof i.FillBucket||Vr instanceof i.FillExtrusionBucket)&&(c(Vr.layers,this.zoom,st),Vr.addFeatures(Zt,this.tileID.canonical,lr.patternPositions))}this.status="done",Vt(null,{buckets:i.values(Jt).filter(function(eo){return!eo.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:sr.image,imageAtlas:lr,glyphMap:this.returnDependencies?_t:null,iconMap:this.returnDependencies?qt:null,glyphPositions:this.returnDependencies?sr.positions:null})}}qn.length?bt.send("getImages",{icons:qn,source:this.source,tileID:this.tileID,type:"patterns"},function(sr,lr){Bt||(Bt=sr,en=lr,gr.call(Dt))}):en={},gr.call(this)};var p=function(vt,xt,st,bt){this.actor=vt,this.layerIndex=xt,this.availableImages=st,this.loadVectorData=bt||h,this.loading={},this.loaded={}};p.prototype.loadTile=function(vt,xt){var st=this,bt=vt.uid;this.loading||(this.loading={});var Vt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Dt=this.loading[bt]=new a(vt);Dt.abort=this.loadVectorData(vt,function(it,at){if(delete st.loading[bt],it||!at)return Dt.status="done",st.loaded[bt]=Dt,xt(it);var Bt=at.rawData,_t={};at.expires&&(_t.expires=at.expires),at.cacheControl&&(_t.cacheControl=at.cacheControl);var qt={};if(Vt){var en=Vt.finish();en&&(qt.resourceTiming=JSON.parse(JSON.stringify(en)))}Dt.vectorTile=at.vectorTile,Dt.parse(at.vectorTile,st.layerIndex,st.availableImages,st.actor,function(Jt,Zt){if(Jt||!Zt)return xt(Jt);xt(null,i.extend({rawTileData:Bt.slice(0)},Zt,_t,qt))}),st.loaded=st.loaded||{},st.loaded[bt]=Dt})},p.prototype.reloadTile=function(vt,xt){var st=this,bt=this.loaded,Vt=vt.uid,Dt=this;if(bt&&bt[Vt]){var it=bt[Vt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Bt,_t){var qt=it.reloadCallback;qt&&(delete it.reloadCallback,it.parse(it.vectorTile,Dt.layerIndex,st.availableImages,Dt.actor,qt)),xt(Bt,_t)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},p.prototype.abortTile=function(vt,xt){var st=this.loading,bt=vt.uid;st&&st[bt]&&st[bt].abort&&(st[bt].abort(),delete st[bt]),xt()},p.prototype.removeTile=function(vt,xt){var st=this.loaded,bt=vt.uid;st&&st[bt]&&delete st[bt],xt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,xt){var st=vt.uid,bt=vt.encoding,Vt=vt.rawImageData,Dt=v&&Vt instanceof v?this.getImageData(Vt):Vt,it=new i.DEMData(st,Dt,bt);this.loaded=this.loaded||{},this.loaded[st]=it,xt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var xt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:xt.width,height:xt.height},xt.data)},_.prototype.removeTile=function(vt){var xt=this.loaded,st=vt.uid;xt&&xt[st]&&delete xt[st]};var O=function vt(xt,st){var bt,Vt=xt&&xt.type;if(Vt==="FeatureCollection")for(bt=0;bt=0!=!!xt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],xt=0,st=this._feature.geometry;xt>31}function K(vt,xt){for(var st=vt.loadGeometry(),bt=vt.type,Vt=0,Dt=0,it=st.length,at=0;at>1;Y(vt,xt,it,bt,Vt,Dt%2),q(vt,xt,st,bt,it-1,Dt+1),q(vt,xt,st,it+1,Vt,Dt+1)}}function Y(vt,xt,st,bt,Vt,Dt){for(;Vt>bt;){if(Vt-bt>600){var it=Vt-bt+1,at=st-bt+1,Bt=Math.log(it),_t=.5*Math.exp(2*Bt/3),qt=.5*Math.sqrt(Bt*_t*(it-_t)/it)*(at-it/2<0?-1:1);Y(vt,xt,st,Math.max(bt,Math.floor(st-at*_t/it+qt)),Math.min(Vt,Math.floor(st+(it-at)*_t/it+qt)),Dt)}var en=xt[2*st+Dt],Jt=bt,Zt=Vt;for(ee(vt,xt,bt,st),xt[2*Vt+Dt]>en&&ee(vt,xt,bt,Vt);Jten;)Zt--}xt[2*bt+Dt]===en?ee(vt,xt,bt,Zt):ee(vt,xt,++Zt,Vt),Zt<=st&&(bt=Zt+1),st<=Zt&&(Vt=Zt-1)}}function ee(vt,xt,st,bt){me(vt,st,bt),me(xt,2*st,2*bt),me(xt,2*st+1,2*bt+1)}function me(vt,xt,st){var bt=vt[xt];vt[xt]=vt[st],vt[st]=bt}function pe(vt,xt,st,bt){var Vt=vt-st,Dt=xt-bt;return Vt*Vt+Dt*Dt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,xt,st,bt,Vt){xt===void 0&&(xt=se),st===void 0&&(st=ae),bt===void 0&&(bt=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=bt,this.points=vt;for(var Dt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Dt(vt.length),at=this.coords=new Vt(2*vt.length),Bt=0;Bt=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[wn]);else{var An=Math.floor((_n+rn)/2);en=Dt[2*An],Jt=Dt[2*An+1],en>=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[An]);var Kn=(sn+1)%2;(sn===0?it<=en:at<=Jt)&&(Zt.push(_n),Zt.push(An-1),Zt.push(Kn)),(sn===0?Bt>=en:_t>=Jt)&&(Zt.push(An+1),Zt.push(rn),Zt.push(Kn))}}return Nt}(this.ids,this.coords,vt,xt,st,bt,this.nodeSize)},ce.prototype.within=function(vt,xt,st){return function(bt,Vt,Dt,it,at,Bt){for(var _t=[0,bt.length-1,0],qt=[],en=at*at;_t.length;){var Jt=_t.pop(),Zt=_t.pop(),Nt=_t.pop();if(Zt-Nt<=Bt)for(var sn=Nt;sn<=Zt;sn++)pe(Vt[2*sn],Vt[2*sn+1],Dt,it)<=en&&qt.push(bt[sn]);else{var rn=Math.floor((Nt+Zt)/2),_n=Vt[2*rn],wn=Vt[2*rn+1];pe(_n,wn,Dt,it)<=en&&qt.push(bt[rn]);var An=(Jt+1)%2;(Jt===0?Dt-at<=_n:it-at<=wn)&&(_t.push(Nt),_t.push(rn-1),_t.push(An)),(Jt===0?Dt+at>=_n:it+at>=wn)&&(_t.push(rn+1),_t.push(Zt),_t.push(An))}}return qt}(this.ids,this.coords,vt,xt,st,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ye=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ve(vt,xt,st,bt,Vt){return{x:vt,y:xt,zoom:1/0,id:st,parentId:-1,numPoints:bt,properties:Vt}}function _e(vt,xt){var st=vt.geometry.coordinates,bt=st[0],Vt=st[1];return{x:Pe(bt),y:Ie(Vt),zoom:1/0,index:xt,parentId:-1}}function we(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(bt=vt.x,360*(bt-.5)),(xt=vt.y,st=(180-360*xt)*Math.PI/180,360*Math.atan(Math.exp(st))/Math.PI-90)]}};var xt,st,bt}function Te(vt){var xt=vt.numPoints,st=xt>=1e4?Math.round(xt/1e3)+"k":xt>=1e3?Math.round(xt/100)/10+"k":xt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:xt,point_count_abbreviated:st})}function Pe(vt){return vt/360+.5}function Ie(vt){var xt=Math.sin(vt*Math.PI/180),st=.5-.25*Math.log((1+xt)/(1-xt))/Math.PI;return st<0?0:st>1?1:st}function ze(vt,xt){for(var st in xt)vt[st]=xt[st];return vt}function De(vt){return vt.x}function Qe(vt){return vt.y}function Ve(vt,xt,st,bt){for(var Vt,Dt=bt,it=st-xt>>1,at=st-xt,Bt=vt[xt],_t=vt[xt+1],qt=vt[st],en=vt[st+1],Jt=xt+3;JtDt)Vt=Jt,Dt=Zt;else if(Zt===Dt){var Nt=Math.abs(Jt-it);Ntbt&&(Vt-xt>3&&Ve(vt,xt,Vt,bt),vt[Vt+2]=Dt,st-Vt>3&&Ve(vt,Vt,st,bt))}function $e(vt,xt,st,bt,Vt,Dt){var it=Vt-st,at=Dt-bt;if(it!==0||at!==0){var Bt=((vt-st)*it+(xt-bt)*at)/(it*it+at*at);Bt>1?(st=Vt,bt=Dt):Bt>0&&(st+=it*Bt,bt+=at*Bt)}return(it=vt-st)*it+(at=xt-bt)*at}function Oe(vt,xt,st,bt){var Vt={id:vt===void 0?null:vt,type:xt,geometry:st,tags:bt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dt){var it=Dt.geometry,at=Dt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Dt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Bt=0;Bt0&&(it+=bt?(Vt*_t-Bt*Dt)/2:Math.sqrt(Math.pow(Bt-Vt,2)+Math.pow(_t-Dt,2))),Vt=Bt,Dt=_t}var qt=xt.length-3;xt[2]=1,Ve(xt,0,qt,st),xt[qt+2]=1,xt.size=Math.abs(it),xt.start=0,xt.end=xt.size}function Ze(vt,xt,st,bt){for(var Vt=0;Vt1?1:st}function Me(vt,xt,st,bt,Vt,Dt,it,at){if(bt/=xt,Dt>=(st/=xt)&&it=bt)return null;for(var Bt=[],_t=0;_t=st&&Nt=bt)){var sn=[];if(Jt==="Point"||Jt==="MultiPoint")Fe(en,sn,st,bt,Vt);else if(Jt==="LineString")je(en,sn,st,bt,Vt,!1,at.lineMetrics);else if(Jt==="MultiLineString")ot(en,sn,st,bt,Vt,!1);else if(Jt==="Polygon")ot(en,sn,st,bt,Vt,!0);else if(Jt==="MultiPolygon")for(var rn=0;rn=st&&it<=bt&&(xt.push(vt[Dt]),xt.push(vt[Dt+1]),xt.push(vt[Dt+2]))}}function je(vt,xt,st,bt,Vt,Dt,it){for(var at,Bt,_t=tt(vt),qt=Vt===0?ht:pt,en=vt.start,Jt=0;Jtst&&(Bt=qt(_t,Zt,Nt,rn,_n,st),it&&(_t.start=en+at*Bt)):wn>bt?An=st&&(Bt=qt(_t,Zt,Nt,rn,_n,st),Kn=!0),An>bt&&wn<=bt&&(Bt=qt(_t,Zt,Nt,rn,_n,bt),Kn=!0),!Dt&&Kn&&(it&&(_t.end=en+at*Bt),xt.push(_t),_t=tt(vt)),it&&(en+=at)}var fr=vt.length-3;Zt=vt[fr],Nt=vt[fr+1],sn=vt[fr+2],(wn=Vt===0?Zt:Nt)>=st&&wn<=bt&&Ge(_t,Zt,Nt,sn),fr=_t.length-3,Dt&&fr>=3&&(_t[fr]!==_t[0]||_t[fr+1]!==_t[1])&&Ge(_t,_t[0],_t[1],_t[2]),_t.length&&xt.push(_t)}function tt(vt){var xt=[];return xt.size=vt.size,xt.start=vt.start,xt.end=vt.end,xt}function ot(vt,xt,st,bt,Vt,Dt){for(var it=0;itit.maxX&&(it.maxX=qt),en>it.maxY&&(it.maxY=en)}return it}function tn(vt,xt,st,bt){var Vt=xt.geometry,Dt=xt.type,it=[];if(Dt==="Point"||Dt==="MultiPoint")for(var at=0;at0&&xt.size<(Vt?it:bt))st.numPoints+=xt.length/3;else{for(var at=[],Bt=0;Btit)&&(st.numSimplified++,at.push(xt[Bt]),at.push(xt[Bt+1])),st.numPoints++;Vt&&function(_t,qt){for(var en=0,Jt=0,Zt=_t.length,Nt=Zt-2;Jt0===qt)for(Jt=0,Zt=_t.length;Jt24)throw new Error("maxZoom should be in the 0-24 range");if(xt.promoteId&&xt.generateId)throw new Error("promoteId and generateId cannot be used together.");var bt=function(Vt,Dt){var it=[];if(Vt.type==="FeatureCollection")for(var at=0;at=bt;_t--){var qt=+Date.now();at=this._cluster(at,_t),this.trees[_t]=new ce(at,De,Qe,Dt,Float32Array),st&&console.log("z%d: %d clusters in %dms",_t,at.length,+Date.now()-qt)}return st&&console.timeEnd("total time"),this},ye.prototype.getClusters=function(vt,xt){var st=((vt[0]+180)%360+360)%360-180,bt=Math.max(-90,Math.min(90,vt[1])),Vt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Dt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)st=-180,Vt=180;else if(st>Vt){var it=this.getClusters([st,bt,180,Dt],xt),at=this.getClusters([-180,bt,Vt,Dt],xt);return it.concat(at)}for(var Bt=this.trees[this._limitZoom(xt)],_t=[],qt=0,en=Bt.range(Pe(st),Ie(Dt),Pe(Vt),Ie(bt));qtxt&&(Nt+=wn.numPoints||1)}if(Nt>=at){for(var An=qt.x*Zt,Kn=qt.y*Zt,fr=it&&Zt>1?this._map(qt,!0):null,Un=(_t<<5)+(xt+1)+this.points.length,Zn=0,tr=Jt;Zn1)for(var qn=0,gr=Jt;qn>5},ye.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ye.prototype._map=function(vt,xt){if(vt.numPoints)return xt?ze({},vt.properties):vt.properties;var st=this.points[vt.index].properties,bt=this.options.map(st);return xt&&bt===st?ze({},bt):bt},Ot.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ot.prototype.splitTile=function(vt,xt,st,bt,Vt,Dt,it){for(var at=[vt,xt,st,bt],Bt=this.options,_t=Bt.debug;at.length;){bt=at.pop(),st=at.pop(),xt=at.pop(),vt=at.pop();var qt=1<1&&console.time("creation"),Jt=this.tiles[en]=ln(vt,xt,st,bt,Bt),this.tileCoords.push({z:xt,x:st,y:bt}),_t)){_t>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",xt,st,bt,Jt.numFeatures,Jt.numPoints,Jt.numSimplified),console.timeEnd("creation"));var Zt="z"+xt;this.stats[Zt]=(this.stats[Zt]||0)+1,this.total++}if(Jt.source=vt,Vt){if(xt===Bt.maxZoom||xt===Vt)continue;var Nt=1<1&&console.time("clipping");var sn,rn,_n,wn,An,Kn,fr=.5*Bt.buffer/Bt.extent,Un=.5-fr,Zn=.5+fr,tr=1+fr;sn=rn=_n=wn=null,An=Me(vt,qt,st-fr,st+Zn,0,Jt.minX,Jt.maxX,Bt),Kn=Me(vt,qt,st+Un,st+tr,0,Jt.minX,Jt.maxX,Bt),vt=null,An&&(sn=Me(An,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),rn=Me(An,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),An=null),Kn&&(_n=Me(Kn,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),wn=Me(Kn,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),Kn=null),_t>1&&console.timeEnd("clipping"),at.push(sn||[],xt+1,2*st,2*bt),at.push(rn||[],xt+1,2*st,2*bt+1),at.push(_n||[],xt+1,2*st+1,2*bt),at.push(wn||[],xt+1,2*st+1,2*bt+1)}}},Ot.prototype.getTile=function(vt,xt,st){var bt=this.options,Vt=bt.extent,Dt=bt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,xt,st);for(var Bt,_t=vt,qt=xt,en=st;!Bt&&_t>0;)_t--,qt=Math.floor(qt/2),en=Math.floor(en/2),Bt=this.tiles[cn(_t,qt,en)];return Bt&&Bt.source?(Dt>1&&console.log("found parent tile z%d-%d-%d",_t,qt,en),Dt>1&&console.time("drilling down"),this.splitTile(Bt.source,_t,qt,en,vt,xt,st),Dt>1&&console.timeEnd("drilling down"),this.tiles[at]?zt(this.tiles[at],Vt):null):null};var Pn=function(vt){function xt(st,bt,Vt,Dt){vt.call(this,st,bt,Vt,Cn),Dt&&(this.loadGeoJSON=Dt)}return vt&&(xt.__proto__=vt),xt.prototype=Object.create(vt&&vt.prototype),xt.prototype.constructor=xt,xt.prototype.loadData=function(st,bt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=bt,this._pendingLoadDataParams=st,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},xt.prototype._loadData=function(){var st=this;if(this._pendingCallback&&this._pendingLoadDataParams){var bt=this._pendingCallback,Vt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dt=!!(Vt&&Vt.request&&Vt.request.collectResourceTiming)&&new i.RequestPerformance(Vt.request);this.loadGeoJSON(Vt,function(it,at){if(it||!at)return bt(it);if(typeof at!="object")return bt(new Error("Input data given to '"+Vt.source+"' is not a valid GeoJSON object."));O(at,!0);try{if(Vt.filter){var Bt=i.createExpression(Vt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Bt.result==="error")throw new Error(Bt.value.map(function(Jt){return Jt.key+": "+Jt.message}).join(", "));var _t=at.features.filter(function(Jt){return Bt.value.evaluate({zoom:0},Jt)});at={type:"FeatureCollection",features:_t}}st._geoJSONIndex=Vt.cluster?new ye(function(Jt){var Zt=Jt.superclusterOptions,Nt=Jt.clusterProperties;if(!Nt||!Zt)return Zt;for(var sn={},rn={},_n={accumulated:null,zoom:0},wn={properties:null},An=Object.keys(Nt),Kn=0,fr=An;Kn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var C=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ne){if(this.loaded!==ne&&(this.loaded=ne,ne)){for(var V=0,ie=this.requestors;V=0?1.2:1))}function P(J,le,ne,V,ie,ge,xe){for(var Ee=0;Ee65535)et(new Error("glyphs > 65535 not supported"));else if(gt.ranges[Mt])et(null,{stack:rt,id:dt,glyph:Rt});else{var Xt=gt.requests[Mt];Xt||(Xt=gt.requests[Mt]=[],L.loadGlyphRange(rt,Mt,ne.url,ne.requestManager,function(dn,bn){if(bn){for(var vn in bn)ne._doesCharSupportLocalGlyph(+vn)||(gt.glyphs[+vn]=bn[+vn]);gt.ranges[Mt]=!0}for(var Ln=0,gn=Xt;Ln1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=void 0,Mt=ie/ne*(V+1);if(Ne.isDash){var Xt=V-Math.abs(Mt);Rt=Math.sqrt(gt*gt+Xt*Xt)}else Rt=V-Math.sqrt(gt*gt+Mt*Mt);this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ne=J[le],V=J[le+1];ne.zeroLength?J.splice(le,1):V&&V.isDash===ne.isDash&&(V.left=ne.left,J.splice(le,1))}var ie=J[0],ge=J[J.length-1];ie.isDash===ge.isDash&&(ie.left=ge.left-this.width,ge.right=ie.right+this.width);for(var xe=this.width*this.nextRow,Ee=0,Ne=J[Ee],et=0;et1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=Ne.isDash?gt:-gt;this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addDash=function(J,le){var ne=le?7:0,V=2*ne+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ie=0,ge=0;ge=ne&&J.x=V&&J.y0&&(et[new i.OverscaledTileID(ne.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,ne.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,Ne,V.z,Ee,V.y-1).key]={backfilled:!1}),V.y+10&&(ie.resourceTiming=ne._resourceTiming,ne._resourceTiming=[]),ne.fire(new i.Event("data",ie))}})},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setData=function(ne){var V=this;return this._data=ne,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ie){if(ie)V.fire(new i.ErrorEvent(ie));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ne,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterChildren=function(ne,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterLeaves=function(ne,V,ie,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ne,limit:V,offset:ie},ge),this},le.prototype._updateWorkerData=function(ne){var V=this;this._loaded=!1;var ie=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ie.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ie.request.collectResourceTiming=this._collectResourceTiming):ie.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ie,function(xe,Ee){V._removed||Ee&&Ee.abandoned||(V._loaded=!0,Ee&&Ee.resourceTiming&&Ee.resourceTiming[V.id]&&(V._resourceTiming=Ee.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ie.source},null),ne(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ne,V){var ie=this,ge=ne.actor?"reloadTile":"loadTile";ne.actor=this.actor;var xe={type:this.type,uid:ne.uid,tileID:ne.tileID,zoom:ne.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ne.request=this.actor.send(ge,xe,function(Ee,Ne){return delete ne.request,ne.unloadVectorData(),ne.aborted?V(null):Ee?V(Ee):(ne.loadVectorData(Ne,ie.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ne){ne.request&&(ne.request.cancel(),delete ne.request),ne.aborted=!0},le.prototype.unloadTile=function(ne){ne.unloadVectorData(),this.actor.send("removeTile",{uid:ne.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),re=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ne,V,ie,ge){J.call(this),this.id=ne,this.dispatcher=ie,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ne,V){var ie=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ie._loaded=!0,ge?ie.fire(new i.ErrorEvent(ge)):xe&&(ie.image=xe,ne&&(ie.coordinates=ne),V&&V(),ie._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ne){var V=this;return this.image&&ne.url?(this.options.url=ne.url,this.load(ne.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setCoordinates=function(ne){var V=this;this.coordinates=ne;var ie=ne.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Ee=1/0,Ne=1/0,et=-1/0,rt=-1/0,dt=0,gt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ne}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ne){this.map||(this.map=ne,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ne=this.map.painter.context,V=ne.gl;for(var ie in this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ne,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ie];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ne,V,ie,ge){J.call(this,ne,V,ie,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Ee){return typeof Ee!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ne){this.map=ne,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ne=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ne=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ne=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ie=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ne||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ie.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ne=0,V=[this.canvas.width,this.canvas.height];nethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ne=J.wrapped().key,V=le===void 0?0:this.data[ne].indexOf(le),ie=this.data[ne][V];return this.data[ne].splice(V,1),ie.timeout&&clearTimeout(ie.timeout),this.data[ne].length===0&&delete this.data[ne],this.onRemove(ie.value),this.order.splice(this.order.indexOf(ne),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ne in this.data)for(var V=0,ie=this.data[ne];V1||(Math.abs(rt)>1&&(Math.abs(rt+gt)===1?rt+=gt:Math.abs(rt-gt)===1&&(rt-=gt)),et.dem&&Ne.dem&&(Ne.dem.backfillBorder(et.dem,rt,dt),Ne.neighboringTiles&&Ne.neighboringTiles[Rt]&&(Ne.neighboringTiles[Rt].backfilled=!0)))}},le.prototype.getTile=function(ne){return this.getTileByID(ne.key)},le.prototype.getTileByID=function(ne){return this._tiles[ne]},le.prototype._retainLoadedChildren=function(ne,V,ie,ge){for(var xe in this._tiles){var Ee=this._tiles[xe];if(!(ge[xe]||!Ee.hasData()||Ee.tileID.overscaledZ<=V||Ee.tileID.overscaledZ>ie)){for(var Ne=Ee.tileID;Ee&&Ee.tileID.overscaledZ>V+1;){var et=Ee.tileID.scaledTo(Ee.tileID.overscaledZ-1);(Ee=this._tiles[et.key])&&Ee.hasData()&&(Ne=et)}for(var rt=Ne;rt.overscaledZ>V;)if(ne[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Ne.key]=Ne;break}}}},le.prototype.findLoadedParent=function(ne,V){if(ne.key in this._loadedParentTiles){var ie=this._loadedParentTiles[ne.key];return ie&&ie.tileID.overscaledZ>=V?ie:null}for(var ge=ne.overscaledZ-1;ge>=V;ge--){var xe=ne.scaledTo(ge),Ee=this._getLoadedTile(xe);if(Ee)return Ee}},le.prototype._getLoadedTile=function(ne){var V=this._tiles[ne.key];return V&&V.hasData()?V:this._cache.getByKey(ne.wrapped().key)},le.prototype.updateCacheSize=function(ne){var V=(Math.ceil(ne.width/this._source.tileSize)+1)*(Math.ceil(ne.height/this._source.tileSize)+1),ie=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ie):ie;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ne){var V=(ne-(this._prevLng===void 0?ne:this._prevLng))/360,ie=Math.round(V);if(this._prevLng=ne,ie){var ge={};for(var xe in this._tiles){var Ee=this._tiles[xe];Ee.tileID=Ee.tileID.unwrapTo(Ee.tileID.wrap+ie),ge[Ee.tileID.key]=Ee}for(var Ne in this._tiles=ge,this._timers)clearTimeout(this._timers[Ne]),delete this._timers[Ne];for(var et in this._tiles){var rt=this._tiles[et];this._setTileReloadTimer(et,rt)}}},le.prototype.update=function(ne){var V=this;if(this.transform=ne,this._sourceLoaded&&!this._paused){var ie;this.updateCacheSize(ne),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ie=ne.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(In){return new i.OverscaledTileID(In.canonical.z,In.wrap,In.canonical.z,In.canonical.x,In.canonical.y)}):(ie=ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ie=ie.filter(function(In){return V._source.hasTile(In)}))):ie=[];var ge=ne.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Ee=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Ne=this._updateRetainedTiles(ie,ge);if(it(this._source.type)){for(var et={},rt={},dt=0,gt=Object.keys(Ne);dtthis._source.maxzoom){var bn=Xt.children(this._source.maxzoom)[0],vn=this.getTile(bn);if(vn&&vn.hasData()){ie[bn.key]=bn;continue}}else{var Ln=Xt.children(this._source.maxzoom);if(ie[Ln[0].key]&&ie[Ln[1].key]&&ie[Ln[2].key]&&ie[Ln[3].key])continue}for(var gn=dn.wasRequested(),Jn=Xt.overscaledZ-1;Jn>=xe;--Jn){var pn=Xt.scaledTo(Jn);if(ge[pn.key]||(ge[pn.key]=!0,!(dn=this.getTile(pn))&&gn&&(dn=this._addTile(pn)),dn&&(ie[pn.key]=pn,gn=dn.wasRequested(),dn.hasData())))break}}}return ie},le.prototype._updateLoadedParentTileCache=function(){for(var ne in this._loadedParentTiles={},this._tiles){for(var V=[],ie=void 0,ge=this._tiles[ne].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ie=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ie=this._getLoadedTile(xe))break;ge=xe}for(var Ee=0,Ne=V;Ee0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ne in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ne);this._cache.reset()},le.prototype.tilesIn=function(ne,V,ie){var ge=this,xe=[],Ee=this.transform;if(!Ee)return xe;for(var Ne=ie?Ee.getCameraQueryGeometry(ne):ne,et=ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),rt=Ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),dt=this.getIds(),gt=1/0,Rt=1/0,Mt=-1/0,Xt=-1/0,dn=0,bn=rt;dn=0&&Gr[1].y+Pr>=0){var ro=et.map(function(Wo){return In.getTilePoint(Wo)}),po=rt.map(function(Wo){return In.getTilePoint(Wo)});xe.push({tile:pn,tileID:In,queryGeometry:ro,cameraQueryGeometry:po,scale:Ir})}}},gn=0;gn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.updateState(ne,V,ie)},le.prototype.removeFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.removeFeatureState(ne,V,ie)},le.prototype.getFeatureState=function(ne,V){return ne=ne||"_geojsonTileLayer",this._state.getState(ne,V)},le.prototype.setDependencies=function(ne,V,ie){var ge=this._tiles[ne];ge&&ge.setDependencies(V,ie)},le.prototype.reloadTilesForDependencies=function(ne,V){for(var ie in this._tiles)this._tiles[ie].hasDependency(ne,V)&&this._reloadTile(ie,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ne,V)})},le}(i.Evented);function Dt(J,le){var ne=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ne||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ut.workerUrl)}Vt.maxOverzooming=10,Vt.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",_t=function(){this.active={}};_t.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length<_t.workerCount;)this.workers.push(new at);return this.active[J]=!0,this.workers.slice()},_t.prototype.release=function(J){delete this.active[J],this.numActive()===0&&(this.workers.forEach(function(le){le.terminate()}),this.workers=null)},_t.prototype.isPreloaded=function(){return!!this.active[Bt]},_t.prototype.numActive=function(){return Object.keys(this.active).length};var qt,en=Math.floor(i.browser.hardwareConcurrency/2);function Jt(){return qt||(qt=new _t),qt}function Zt(J,le){var ne={};for(var V in J)V!=="ref"&&(ne[V]=J[V]);return i.refProperties.forEach(function(ie){ie in le&&(ne[ie]=le[ie])}),ne}function Nt(J){J=J.slice();for(var le=Object.create(null),ne=0;ne0?(V-ge)/xe:0;return this.points[ie].mult(1-Ee).add(this.points[le].mult(Ee))};var Br=function(J,le,ne){var V=this.boxCells=[],ie=this.circleCells=[];this.xCellCount=Math.ceil(J/ne),this.yCellCount=Math.ceil(le/ne);for(var ge=0;ge=-le[0]&&ne<=le[0]&&V>=-le[1]&&V<=le[1]}function lr(J,le,ne,V,ie,ge,xe,Ee){var Ne=V?J.textSizeData:J.iconSizeData,et=i.evaluateSizeForZoom(Ne,ne.transform.zoom),rt=[256/ne.width*2+1,256/ne.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var gt=J.lineVertexArray,Rt=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Mt=ne.transform.width/ne.transform.height,Xt=!1,dn=0;dnMath.abs(ne.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yne.x)?{needsFlipping:!0}:null}function eo(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt){var Mt,Xt=le/24,dn=J.lineOffsetX*Xt,bn=J.lineOffsetY*Xt;if(J.numGlyphs>1){var vn=J.glyphStartIndex+J.numGlyphs,Ln=J.lineStartIndex,gn=J.lineStartIndex+J.lineLength,Jn=zr(Xt,Ee,dn,bn,ne,rt,dt,J,Ne,ge,gt);if(!Jn)return{notEnoughRoom:!0};var pn=qn(Jn.first.point,xe).point,In=qn(Jn.last.point,xe).point;if(V&&!ne){var Ir=Vr(J.writingMode,pn,In,Rt);if(Ir)return Ir}Mt=[Jn.first];for(var Pr=J.glyphStartIndex+1;Pr0?Wo.point:Jr(dt,po,Gr,1,ie),Bo=Vr(J.writingMode,Gr,si,Rt);if(Bo)return Bo}var Go=Yr(Xt*Ee.getoffsetX(J.glyphStartIndex),dn,bn,ne,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Ne,ge,gt);if(!Go)return{notEnoughRoom:!0};Mt=[Go]}for(var Yo=0,Wi=Mt;Yo0?1:-1,Mt=0;V&&(Rt*=-1,Mt=Math.PI),Rt<0&&(Mt+=Math.PI);for(var Xt=Rt>0?Ee+xe:Ee+xe+1,dn=ie,bn=ie,vn=0,Ln=0,gn=Math.abs(gt),Jn=[];vn+Ln<=gn;){if((Xt+=Rt)=Ne)return null;if(bn=dn,Jn.push(dn),(dn=dt[Xt])===void 0){var pn=new i.Point(et.getx(Xt),et.gety(Xt)),In=qn(pn,rt);if(In.signedDistanceFromCamera>0)dn=dt[Xt]=In.point;else{var Ir=Xt-Rt;dn=Jr(vn===0?ge:new i.Point(et.getx(Ir),et.gety(Ir)),pn,bn,gn-vn+1,rt)}}vn+=Ln,Ln=bn.dist(dn)}var Pr=(gn-vn)/Ln,Gr=dn.sub(bn),ro=Gr.mult(Pr)._add(bn);ro._add(Gr._unit()._perp()._mult(ne*Rt));var po=Mt+Math.atan2(dn.y-bn.y,dn.x-bn.x);return Jn.push(ro),{point:ro,angle:po,path:Jn}}Br.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Br.prototype.insert=function(J,le,ne,V,ie){this._forEachCell(le,ne,V,ie,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ne),this.bboxes.push(V),this.bboxes.push(ie)},Br.prototype.insertCircle=function(J,le,ne,V){this._forEachCell(le-V,ne-V,le+V,ne+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ne),this.circles.push(V)},Br.prototype._insertBoxCell=function(J,le,ne,V,ie,ge){this.boxCells[ie].push(ge)},Br.prototype._insertCircleCell=function(J,le,ne,V,ie,ge){this.circleCells[ie].push(ge)},Br.prototype._query=function(J,le,ne,V,ie,ge){if(ne<0||J>this.width||V<0||le>this.height)return!ie&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ne&&this.height<=V){if(ie)return!0;for(var Ee=0;Ee0:xe},Br.prototype._queryCircle=function(J,le,ne,V,ie){var ge=J-ne,xe=J+ne,Ee=le-ne,Ne=le+ne;if(xe<0||ge>this.width||Ne<0||Ee>this.height)return!V&&[];var et=[],rt={hitTest:V,circle:{x:J,y:le,radius:ne},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Ee,xe,Ne,this._queryCellCircle,et,rt,ie),V?et.length>0:et},Br.prototype.query=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!1,ie)},Br.prototype.hitTest=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!0,ie)},Br.prototype.hitTestCircle=function(J,le,ne,V){return this._queryCircle(J,le,ne,!0,V)},Br.prototype._queryCell=function(J,le,ne,V,ie,ge,xe,Ee){var Ne=xe.seenUids,et=this.boxCells[ie];if(et!==null)for(var rt=this.bboxes,dt=0,gt=et;dt=rt[Mt+0]&&V>=rt[Mt+1]&&(!Ee||Ee(this.boxKeys[Rt]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Rt],x1:rt[Mt],y1:rt[Mt+1],x2:rt[Mt+2],y2:rt[Mt+3]})}}}var Xt=this.circleCells[ie];if(Xt!==null)for(var dn=this.circles,bn=0,vn=Xt;bnxe*xe+Ee*Ee},Br.prototype._circleAndRectCollide=function(J,le,ne,V,ie,ge,xe){var Ee=(ge-V)/2,Ne=Math.abs(J-(V+Ee));if(Ne>Ee+ne)return!1;var et=(xe-ie)/2,rt=Math.abs(le-(ie+et));if(rt>et+ne)return!1;if(Ne<=Ee||rt<=et)return!0;var dt=Ne-Ee,gt=rt-et;return dt*dt+gt*gt<=ne*ne};var to=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function co(J,le){for(var ne=0;ne=1;si--)Wo.push(ro.path[si]);for(var Bo=1;Bo0){for(var Ho=Wo[0].clone(),jo=Wo[0].clone(),Yi=1;Yi=Ir.x&&jo.x<=Pr.x&&Ho.y>=Ir.y&&jo.y<=Pr.y?[Wo]:jo.xPr.x||jo.yPr.y?[]:i.clipLine([Wo],Ir.x,Ir.y,Pr.x,Pr.y)}for(var ai=0,Hi=Wi;ai=this.screenRightBoundary||V<_o||le>this.screenBottomBoundary},$o.prototype.isInsideGrid=function(J,le,ne,V){return ne>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(Xt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:dn,width:ne,height:V,anchor:J,textBoxScale:ie,prevAnchor:Xt},this.markUsedJustification(gt,J,dt,Rt),gt.allowVerticalPlacement&&(this.markUsedOrientation(gt,Rt,dt),this.placedOrientations[dt.crossTileID]=Rt),{shift:bn,placedGlyphBoxes:vn}):void 0},io.prototype.placeLayerBucketPart=function(J,le,ne){var V=this,ie=J.parameters,ge=ie.bucket,xe=ie.layout,Ee=ie.posMatrix,Ne=ie.textLabelPlaneMatrix,et=ie.labelToScreenMatrix,rt=ie.textPixelRatio,dt=ie.holdingForFade,gt=ie.collisionBoxArray,Rt=ie.partiallyEvaluatedTextSize,Mt=ie.collisionGroup,Xt=xe.get("text-optional"),dn=xe.get("icon-optional"),bn=xe.get("text-allow-overlap"),vn=xe.get("icon-allow-overlap"),Ln=xe.get("text-rotation-alignment")==="map",gn=xe.get("text-pitch-alignment")==="map",Jn=xe.get("icon-text-fit")!=="none",pn=xe.get("symbol-z-order")==="viewport-y",In=bn&&(vn||!ge.hasIconData()||dn),Ir=vn&&(bn||!ge.hasTextData()||Xt);!ge.collisionArrays&>&&ge.deserializeCollisionBoxes(gt);var Pr=function(Bo,Go){if(!le[Bo.crossTileID])if(dt)V.placements[Bo.crossTileID]=new ar(!1,!1,!1);else{var Yo,Wi=!1,Ho=!1,jo=!0,Yi=null,ai={box:null,offscreen:null},Hi={box:null,offscreen:null},Ai=null,Ja=null,Ar=0,ns=0,$s=0;Go.textFeatureIndex?Ar=Go.textFeatureIndex:Bo.useRuntimeCollisionCircles&&(Ar=Bo.featureIndex),Go.verticalTextFeatureIndex&&(ns=Go.verticalTextFeatureIndex);var Ts=Go.textBox;if(Ts){var rl=function(Is){var Hc=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!Is&&V.prevPlacement){var Nl=V.prevPlacement.placedOrientations[Bo.crossTileID];Nl&&(V.placedOrientations[Bo.crossTileID]=Nl,Hc=Nl,V.markUsedOrientation(ge,Hc,Bo))}return Hc},Hs=function(Is,Hc){if(ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Go.verticalTextBox)for(var Nl=0,lh=ge.writingModes;Nl0&&(ys=ys.filter(function(Is){return Is!==Yu.anchor})).unshift(Yu.anchor)}var mt=function(Is,Hc,Nl){for(var lh=Is.x2-Is.x1,r0=Is.y2-Is.y1,ch=Bo.textBoxScale,gg=Jn&&!vn?Hc:null,Ip={box:[],offscreen:!1},X0=bn?2*ys.length:ys.length,Vh=0;Vh=ys.length,ss=V.attemptAnchorPlacement(Pu,Is,lh,r0,ch,Ln,gn,rt,Ee,Mt,Uh,Bo,ge,Nl,gg);if(ss&&(Ip=ss.placedGlyphBoxes)&&Ip.box&&Ip.box.length){Wi=!0,Yi=ss.shift;break}}return Ip};Hs(function(){return mt(Ts,Go.iconBox,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox,Hc=ai&&ai.box&&ai.box.length;return ge.allowVerticalPlacement&&!Hc&&Bo.numVerticalGlyphVertices>0&&Is?mt(Is,Go.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),ai&&(Wi=ai.box,jo=ai.offscreen);var Tt=rl(ai&&ai.box);if(!Wi&&V.prevPlacement){var xn=V.prevPlacement.variableOffsets[Bo.crossTileID];xn&&(V.variableOffsets[Bo.crossTileID]=xn,V.markUsedJustification(ge,xn.anchor,Bo,Tt))}}else{var Nn=function(Is,Hc){var Nl=V.collisionIndex.placeCollisionBox(Is,bn,rt,Ee,Mt.predicate);return Nl&&Nl.box&&Nl.box.length&&(V.markUsedOrientation(ge,Hc,Bo),V.placedOrientations[Bo.crossTileID]=Hc),Nl};Hs(function(){return Nn(Ts,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox;return ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Is?Nn(Is,i.WritingMode.vertical):{box:null,offscreen:null}}),rl(ai&&ai.box&&ai.box.length)}}if(Wi=(Yo=ai)&&Yo.box&&Yo.box.length>0,jo=Yo&&Yo.offscreen,Bo.useRuntimeCollisionCircles){var yr=ge.text.placedSymbolArray.get(Bo.centerJustifiedTextSymbolIndex),so=i.evaluateSizeForFeature(ge.textSizeData,Rt,yr),No=xe.get("text-padding"),ui=Bo.collisionCircleDiameter;Ai=V.collisionIndex.placeCollisionCircles(bn,yr,ge.lineVertexArray,ge.glyphOffsetArray,so,Ee,Ne,et,ne,gn,Mt.predicate,ui,No),Wi=bn||Ai.circles.length>0&&!Ai.collisionDetected,jo=jo&&Ai.offscreen}if(Go.iconFeatureIndex&&($s=Go.iconFeatureIndex),Go.iconBox){var ga=function(Is){var Hc=Jn&&Yi?oo(Is,Yi.x,Yi.y,Ln,gn,V.transform.angle):Is;return V.collisionIndex.placeCollisionBox(Hc,vn,rt,Ee,Mt.predicate)};Ho=Hi&&Hi.box&&Hi.box.length&&Go.verticalIconBox?(Ja=ga(Go.verticalIconBox)).box.length>0:(Ja=ga(Go.iconBox)).box.length>0,jo=jo&&Ja.offscreen}var Sa=Xt||Bo.numHorizontalGlyphVertices===0&&Bo.numVerticalGlyphVertices===0,ua=dn||Bo.numIconVertices===0;if(Sa||ua?ua?Sa||(Ho=Ho&&Wi):Wi=Ho&&Wi:Ho=Wi=Ho&&Wi,Wi&&Yo&&Yo.box&&(Hi&&Hi.box&&ns?V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ns,Mt.ID):V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID)),Ho&&Ja&&V.collisionIndex.insertCollisionBox(Ja.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,$s,Mt.ID),Ai&&(Wi&&V.collisionIndex.insertCollisionCircles(Ai.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID),ne)){var Cs=ge.bucketInstanceId,ul=V.collisionCircleArrays[Cs];ul===void 0&&(ul=V.collisionCircleArrays[Cs]=new Dr);for(var Jc=0;Jc=0;--ro){var po=Gr[ro];Pr(ge.symbolInstances.get(po),ge.collisionArrays[po])}else for(var Wo=J.symbolInstanceStart;Wo=0&&(J.text.placedSymbolArray.get(Ne).crossTileID=ie>=0&&Ne!==ie?0:ne.crossTileID)}},io.prototype.markUsedOrientation=function(J,le,ne){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ie=le===i.WritingMode.vertical?le:0,ge=0,xe=[ne.leftJustifiedTextSymbolIndex,ne.centerJustifiedTextSymbolIndex,ne.rightJustifiedTextSymbolIndex];ge0||gn>0,Pr=vn.numIconVertices>0,Gr=V.placedOrientations[vn.crossTileID],ro=Gr===i.WritingMode.vertical,po=Gr===i.WritingMode.horizontal||Gr===i.WritingMode.horizontalOnly;if(Ir){var Wo=Gt(In.text),si=ro?on:Wo;Rt(J.text,Ln,si);var Bo=po?on:Wo;Rt(J.text,gn,Bo);var Go=In.text.isHidden();[vn.rightJustifiedTextSymbolIndex,vn.centerJustifiedTextSymbolIndex,vn.leftJustifiedTextSymbolIndex].forEach(function($s){$s>=0&&(J.text.placedSymbolArray.get($s).hidden=Go||ro?1:0)}),vn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(vn.verticalPlacedTextSymbolIndex).hidden=Go||po?1:0);var Yo=V.variableOffsets[vn.crossTileID];Yo&&V.markUsedJustification(J,Yo.anchor,vn,Gr);var Wi=V.placedOrientations[vn.crossTileID];Wi&&(V.markUsedJustification(J,"left",vn,Wi),V.markUsedOrientation(J,Wi,vn))}if(Pr){var Ho=Gt(In.icon),jo=!(dt&&vn.verticalPlacedIconSymbolIndex&&ro);if(vn.placedIconSymbolIndex>=0){var Yi=jo?Ho:on;Rt(J.icon,vn.numIconVertices,Yi),J.icon.placedSymbolArray.get(vn.placedIconSymbolIndex).hidden=In.icon.isHidden()}if(vn.verticalPlacedIconSymbolIndex>=0){var ai=jo?on:Ho;Rt(J.icon,vn.numVerticalIconVertices,ai),J.icon.placedSymbolArray.get(vn.verticalPlacedIconSymbolIndex).hidden=In.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var Hi=J.collisionArrays[bn];if(Hi){var Ai=new i.Point(0,0);if(Hi.textBox||Hi.verticalTextBox){var Ja=!0;if(Ne){var Ar=V.variableOffsets[Jn];Ar?(Ai=go(Ar.anchor,Ar.width,Ar.height,Ar.textOffset,Ar.textBoxScale),et&&Ai._rotate(rt?V.transform.angle:-V.transform.angle)):Ja=!1}Hi.textBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!Ja||ro,Ai.x,Ai.y),Hi.verticalTextBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!Ja||po,Ai.x,Ai.y)}var ns=!!(!po&&Hi.verticalIconBox);Hi.iconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,ns,dt?Ai.x:0,dt?Ai.y:0),Hi.verticalIconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,!ns,dt?Ai.x:0,dt?Ai.y:0)}}},Xt=0;XtJ},io.prototype.setStale=function(){this.stale=!0};var jn=Math.pow(2,25),Rr=Math.pow(2,24),On=Math.pow(2,17),Yn=Math.pow(2,16),ir=Math.pow(2,9),kr=Math.pow(2,8),Er=Math.pow(2,1);function Gt(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ne=Math.floor(127*J.opacity);return ne*jn+le*Rr+ne*On+le*Yn+ne*ir+le*kr+ne*Er+le}var on=0,an=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};an.prototype.continuePlacement=function(J,le,ne,V,ie){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Ee=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Ee)&&(!xe.maxzoom||xe.maxzoom>Ee)){if(this._inProgressLayer||(this._inProgressLayer=new an(xe)),this._inProgressLayer.continuePlacement(ne[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Tn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var zn=512/i.EXTENT/2,Gn=function(J,le,ne){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ne;for(var V=0;VJ.overscaledZ)for(var Ee in xe){var Ne=xe[Ee];Ne.tileID.isChildOf(J)&&Ne.findMatches(le.symbolInstances,J,ie)}else{var et=xe[J.scaledTo(Number(ge)).key];et&&et.findMatches(le.symbolInstances,J,ie)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".json"),i.ResourceType.SpriteJSON),function(Mt,Xt){dt=null,et||(et=Mt,Ee=Xt,Rt())}),gt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".png"),i.ResourceType.SpriteImage),function(Mt,Xt){gt=null,et||(et=Mt,Ne=Xt,Rt())});function Rt(){if(et)xe(et);else if(Ee&&Ne){var Mt=i.browser.getImageData(Ne),Xt={};for(var dn in Ee){var bn=Ee[dn],vn=bn.width,Ln=bn.height,gn=bn.x,Jn=bn.y,pn=bn.sdf,In=bn.pixelRatio,Ir=bn.stretchX,Pr=bn.stretchY,Gr=bn.content,ro=new i.RGBAImage({width:vn,height:Ln});i.RGBAImage.copy(Mt,ro,{x:gn,y:Jn},{x:0,y:0},{width:vn,height:Ln}),Xt[dn]={data:ro,pixelRatio:In,sdf:pn,stretchX:Ir,stretchY:Pr,content:Gr}}xe(null,Xt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),gt&&(gt.cancel(),gt=null)}}}(ne,this.map._requestManager,function(ie,ge){if(V._spriteRequest=null,ie)V.fire(new i.ErrorEvent(ie));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ne){var V=this.sourceCaches[ne.source];if(V){var ie=ne.sourceLayer;if(ie){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ie)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ie+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ne.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ne in this.sourceCaches)if(!this.sourceCaches[ne].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ne){for(var V=[],ie=0,ge=ne;ie0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ie.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ne,!0},le.prototype.addImage=function(ne,V){if(this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ne,V),this._afterImageUpdated(ne)},le.prototype.updateImage=function(ne,V){this.imageManager.updateImage(ne,V)},le.prototype.getImage=function(ne){return this.imageManager.getImage(ne)},le.prototype.removeImage=function(ne){if(!this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ne),this._afterImageUpdated(ne)},le.prototype._afterImageUpdated=function(ne){this._availableImages=this.imageManager.listImages(),this._changedImages[ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ne,V,ie){var ge=this;if(ie===void 0&&(ie={}),this._checkLoaded(),this.sourceCaches[ne]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ne,V,null,ie))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ne]=new Vt(ne,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ne}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ne){if(this._checkLoaded(),this.sourceCaches[ne]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ne)return this.fire(new i.ErrorEvent(new Error('Source "'+ne+'" cannot be removed while layer "'+V+'" is using it.')));var ie=this.sourceCaches[ne];delete this.sourceCaches[ne],delete this._updatedSources[ne],ie.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ne})),ie.setEventedParent(null),ie.clearTiles(),ie.onRemove&&ie.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ne,V){this._checkLoaded(),this.sourceCaches[ne].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ne){return this.sourceCaches[ne]&&this.sourceCaches[ne].getSource()},le.prototype.addLayer=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=ne.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ne.type==="custom"){if(Cr(this,i.validateCustomStyleLayer(ne)))return;xe=i.createStyleLayer(ne)}else{if(typeof ne.source=="object"&&(this.addSource(ge,ne.source),ne=i.clone$1(ne),ne=i.extend(ne,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ne,{arrayIndex:-1},ie))return;xe=i.createStyleLayer(ne),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Ee=V?this._order.indexOf(V):this._order.length;if(V&&Ee===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Ee,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Ne=this._removedLayers[ge];delete this._removedLayers[ge],Ne.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ne,V){if(this._checkLoaded(),this._changed=!0,this._layers[ne]){if(ne!==V){var ie=this._order.indexOf(ne);this._order.splice(ie,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ne),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ne){this._checkLoaded();var V=this._layers[ne];if(V){V.setEventedParent(null);var ie=this._order.indexOf(ne);this._order.splice(ie,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ne]=V,delete this._layers[ne],delete this._serializedLayers[ne],delete this._updatedLayers[ne],delete this._updatedPaintProps[ne],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ne){return this._layers[ne]},le.prototype.hasLayer=function(ne){return ne in this._layers},le.prototype.setLayerZoomRange=function(ne,V,ie){this._checkLoaded();var ge=this.getLayer(ne);ge?ge.minzoom===V&&ge.maxzoom===ie||(V!=null&&(ge.minzoom=V),ie!=null&&(ge.maxzoom=ie),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=this.getLayer(ne);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ie)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ne){return i.clone$1(this.getLayer(ne).filter)},le.prototype.setLayoutProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getLayoutProperty(V),ie)||(xe.setLayoutProperty(V,ie,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ne,V){var ie=this.getLayer(ne);if(ie)return ie.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getPaintProperty(V),ie)||(xe.setPaintProperty(V,ie,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ne]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ne,V){return this.getLayer(ne).getPaintProperty(V)},le.prototype.setFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=ne.sourceLayer,xe=this.sourceCaches[ie];if(xe!==void 0){var Ee=xe.getSource().type;Ee==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ee!=="vector"||ge?(ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ne.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=this.sourceCaches[ie];if(ge!==void 0){var xe=ge.getSource().type,Ee=xe==="vector"?ne.sourceLayer:void 0;xe!=="vector"||Ee?V&&typeof ne.id!="string"&&typeof ne.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Ee,ne.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ne){this._checkLoaded();var V=ne.source,ie=ne.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ie)return ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ie,ne.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ne){return ne.serialize()}),layers:this._serializeLayers(this._order)},function(ne){return ne!==void 0})},le.prototype._updateLayer=function(ne){this._updatedLayers[ne.id]=!0,ne.source&&!this._updatedSources[ne.source]&&this.sourceCaches[ne.source].getSource().type!=="raster"&&(this._updatedSources[ne.source]="reload",this.sourceCaches[ne.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ne){for(var V=this,ie=function(Gr){return V._layers[Gr].type==="fill-extrusion"},ge={},xe=[],Ee=this._order.length-1;Ee>=0;Ee--){var Ne=this._order[Ee];if(ie(Ne)){ge[Ne]=Ee;for(var et=0,rt=ne;et=0;dn--){var bn=this._order[dn];if(ie(bn))for(var vn=xe.length-1;vn>=0;vn--){var Ln=xe[vn].feature;if(ge[Ln.layer.id]24?(isFinite(ie)&&(clearTimeout(pi),pi=setTimeout(Dr,ie)),Mo=0):(Mo=1,Hn(Dr))}function Sr(){for(var V=Date.now(),ie=_o;ie;)V>=ie.t&&ie.c(V-ie.t)&&(ie.c=null),ie=ie.n;return V}function Zr(){for(var V,ie=_o,ge=1/0;ie;)ie.c?(ie.t1&&(ie=V[Ne[et-2]],ge=V[Ne[et-1]],xe=V[rt],(ge[0]-ie[0])*(xe[1]-ie[1])-(ge[1]-ie[1])*(xe[0]-ie[0])<=0);)--et;Ne[et++]=rt}return Ne.slice(0,et)}function Do(V,ie){return V[0]-ie[0]||V[1]-ie[1]}i.timer=function(){ar.apply(this,arguments)},i.timer.flush=function(){Sr(),Zr()},i.round=function(V,ie){return ie?Math.round(V*(ie=Math.pow(10,ie)))/ie:Math.round(V)},i.geom={},i.geom.hull=function(V){var ie=go,ge=oo;if(arguments.length)return xe(V);function xe(Ee){if(Ee.length<3)return[];var Ne,et=to(ie),rt=to(ge),dt=Ee.length,gt=[],Rt=[];for(Ne=0;Ne=0;--Ne)vn.push(Ee[gt[Mt[Ne]][2]]);for(Ne=+dn;NeOt)rt=rt.L;else{if(!((Ee=Ne-wo(rt,et))>Ot)){xe>-Ot?(ie=rt.P,ge=rt):Ee>-Ot?(ie=rt,ge=rt.N):ie=ge=rt;break}if(!rt.R){ie=rt;break}rt=rt.R}var dt=Gn(V);if(Er.insert(ie,dt),ie||ge){if(ie===ge)return Mn(ie),ge=Gn(ie.site),Er.insert(dt,ge),dt.edge=ge.edge=xr(ie.site,dt.site),Qt(ie),void Qt(ge);if(ge){Mn(ie),Mn(ge);var gt=ie.site,Rt=gt.x,Mt=gt.y,Xt=V.x-Rt,dn=V.y-Mt,bn=ge.site,vn=bn.x-Rt,Ln=bn.y-Mt,gn=2*(Xt*Ln-dn*vn),Jn=Xt*Xt+dn*dn,pn=vn*vn+Ln*Ln,In={x:(Ln*Jn-dn*pn)/gn+Rt,y:(Xt*pn-vn*Jn)/gn+Mt};Oo(ge.edge,gt,bn,In),dt.edge=xr(gt,V,null,In),ge.edge=xr(V,bn,null,In),Qt(ie),Qt(ge)}else dt.edge=xr(ie.site,dt.site)}}function Cr(V,ie){var ge=V.site,xe=ge.x,Ee=ge.y,Ne=Ee-ie;if(!Ne)return xe;var et=V.P;if(!et)return-1/0;var rt=(ge=et.site).x,dt=ge.y,gt=dt-ie;if(!gt)return rt;var Rt=rt-xe,Mt=1/Ne-1/gt,Xt=Rt/gt;return Mt?(-Xt+Math.sqrt(Xt*Xt-2*Mt*(Rt*Rt/(-2*gt)-dt+gt/2+Ee-Ne/2)))/Mt+xe:(xe+rt)/2}function wo(V,ie){var ge=V.N;if(ge)return Cr(ge,ie);var xe=V.site;return xe.y===ie?xe.x:1/0}function Nr(V){this.site=V,this.edges=[]}function Eo(V,ie){return ie.angle-V.angle}function zo(){To(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(V){var ie=V.P,ge=V.N;if(ie&&ge){var xe=ie.site,Ee=V.site,Ne=ge.site;if(xe!==Ne){var et=Ee.x,rt=Ee.y,dt=xe.x-et,gt=xe.y-rt,Rt=Ne.x-et,Mt=2*(dt*(Ln=Ne.y-rt)-gt*Rt);if(!(Mt>=-cn)){var Xt=dt*dt+gt*gt,dn=Rt*Rt+Ln*Ln,bn=(Ln*Xt-gt*dn)/Mt,vn=(dt*dn-Rt*Xt)/Mt,Ln=vn+rt,gn=Tn.pop()||new zo;gn.arc=V,gn.site=Ee,gn.x=bn+et,gn.y=Ln+Math.sqrt(bn*bn+vn*vn),gn.cy=Ln,V.circle=gn;for(var Jn=null,pn=on._;pn;)if(gn.y=rt)return;if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:Ln,y:dt};ge={x:Ln,y:gt}}else{if(Ne){if(Ne.y1)if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:(dt-Ee)/xe,y:dt};ge={x:(gt-Ee)/xe,y:gt}}else{if(Ne){if(Ne.y=rt)return}else Ne={x:et,y:xe*et+Ee};ge={x:rt,y:xe*rt+Ee}}else{if(Ne){if(Ne.x0)){if(gn/=ro,ro<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Mt-In,ro||!(gn<0)){if(gn/=ro,ro<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(ro>0){if(gn0)){if(gn/=po,po<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Xt-Ir,po||!(gn<0)){if(gn/=po,po<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(po>0){if(gn0&&(Ln.a={x:In+Pr*ro,y:Ir+Pr*po}),Gr<1&&(Ln.b={x:In+Gr*ro,y:Ir+Gr*po}),Ln}}}}}),vn=dn.length;vn--;)(!Fn(dt=dn[vn],rt)||!bn(dt)||P(dt.a.x-dt.b.x)Ot||P(Mt-gt)>Ot)&&(bn.splice(dn,0,new mi((ro=Xt.site,po=gn,Wo=P(Rt-Jn)Ot?{x:Jn,y:P(dt-Jn)Ot?{x:P(gt-Ir)Ot?{x:pn,y:P(dt-pn)Ot?{x:P(gt-In)=Rt&&gn.x<=Xt&&gn.y>=Mt&&gn.y<=dn?[[Rt,dn],[Xt,dn],[Xt,Mt],[Rt,Mt]]:[]).point=dt[vn]}),gt}function rt(dt){return dt.map(function(gt,Rt){return{x:Math.round(xe(gt,Rt)/Ot)*Ot,y:Math.round(Ee(gt,Rt)/Ot)*Ot,i:Rt}})}return et.links=function(dt){return zi(rt(dt)).edges.filter(function(gt){return gt.l&>.r}).map(function(gt){return{source:dt[gt.l.i],target:dt[gt.r.i]}})},et.triangles=function(dt){var gt=[];return zi(rt(dt)).cells.forEach(function(Rt,Mt){for(var Xt,dn,bn,vn,Ln=Rt.site,gn=Rt.edges.sort(Eo),Jn=-1,pn=gn.length,In=gn[pn-1].edge,Ir=In.l===Ln?In.r:In.l;++JnNe&&(Ee=ie.slice(Ne,Ee),rt[et]?rt[et]+=Ee:rt[++et]=Ee),(ge=ge[0])===(xe=xe[0])?rt[et]?rt[et]+=xe:rt[++et]=xe:(rt[++et]=null,dt.push({i:et,x:Qs(ge,xe)})),Ne=Tc.lastIndex;return Negn&&(gn=Rt.x),Rt.y>Jn&&(Jn=Rt.y),Mt.push(Rt.x),Xt.push(Rt.y);else for(dn=0;dngn&&(gn=Ir),Pr>Jn&&(Jn=Pr),Mt.push(Ir),Xt.push(Pr)}var Gr=gn-vn,ro=Jn-Ln;function po(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){if(!isNaN(Yo)&&!isNaN(Wi))if(Bo.leaf){var Hi=Bo.x,Ai=Bo.y;if(Hi!=null)if(P(Hi-Yo)+P(Ai-Wi)<.01)Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai);else{var es=Bo.point;Bo.x=Bo.y=Bo.point=null,Wo(Bo,es,Hi,Ai,Ho,jo,Yi,ai),Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}else Bo.x=Yo,Bo.y=Wi,Bo.point=Go}else Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}function Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){var Hi=.5*(Ho+Yi),Ai=.5*(jo+ai),es=Yo>=Hi,Ar=Wi>=Ai,ns=Ar<<1|es;Bo.leaf=!1,es?Ho=Hi:Yi=Hi,Ar?jo=Ai:ai=Ai,po(Bo=Bo.nodes[ns]||(Bo.nodes[ns]={leaf:!0,nodes:[],point:null,x:null,y:null}),Go,Yo,Wi,Ho,jo,Yi,ai)}Gr>ro?Jn=Ln+Gr:gn=vn+ro;var si={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Bo){po(si,Bo,+pn(Bo,++dn),+In(Bo,dn),vn,Ln,gn,Jn)}};if(si.visit=function(Bo){nf(Bo,si,vn,Ln,gn,Jn)},si.find=function(Bo){return function(Go,Yo,Wi,Ho,jo,Yi,ai){var Hi,Ai=1/0;return function es(Ar,ns,$s,Ts,rl){if(!(ns>Yi||$s>ai||Ts=yr)<<1|Yo>=Nn,No=so+4;so=0&&!(ge=i.interpolators[xe](V,ie)););return ge}function au(V,ie){var ge,xe=[],Ee=[],Ne=V.length,et=ie.length,rt=Math.min(V.length,ie.length);for(ge=0;ge=1)return 1;var ie=V*V,ge=ie*V;return 4*(V<.5?ge:3*(V-ie)+ge-.75)}function Ml(V){return 1-Math.cos(V*vt)}function Jf(V){return Math.pow(2,10*(V-1))}function Nf(V){return 1-Math.sqrt(1-V*V)}function Jl(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function Gh(V,ie){return ie-=V,function(ge){return Math.round(V+ie*ge)}}function ll(V){var ie,ge,xe,Ee=[V.a,V.b],Ne=[V.c,V.d],et=gu(Ee),rt=Tu(Ee,Ne),dt=gu(((ie=Ne)[0]+=(xe=-rt)*(ge=Ee)[0],ie[1]+=xe*ge[1],ie))||0;Ee[0]*Ne[1]=0?V.slice(0,ge):V,Ee=ge>=0?V.slice(ge+1):"in";return xe=_s.get(xe)||zf,Ee=ma.get(Ee)||Z,ie=Ee(xe.apply(null,S.call(arguments,1))),function(Ne){return Ne<=0?0:Ne>=1?1:ie(Ne)}},i.interpolateHcl=function(V,ie){V=i.hcl(V),ie=i.hcl(ie);var ge=V.h,xe=V.c,Ee=V.l,Ne=ie.h-ge,et=ie.c-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.c:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return sn(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateHsl=function(V,ie){V=i.hsl(V),ie=i.hsl(ie);var ge=V.h,xe=V.s,Ee=V.l,Ne=ie.h-ge,et=ie.s-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.s:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return Jt(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateLab=function(V,ie){V=i.lab(V),ie=i.lab(ie);var ge=V.l,xe=V.a,Ee=V.b,Ne=ie.l-ge,et=ie.a-xe,rt=ie.b-Ee;return function(dt){return Un(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateRound=Gh,i.transform=function(V){var ie=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ie.setAttribute("transform",ge);var xe=ie.transform.baseVal.consolidate()}return new ll(xe?xe.matrix:ec)})(V)},ll.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ec={a:1,b:0,c:0,d:1,e:0,f:0};function Dc(V){return V.length?V.pop()+",":""}function tc(V,ie){var ge=[],xe=[];return V=i.transform(V),ie=i.transform(ie),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else(Ne[0]||Ne[1])&&et.push("translate("+Ne+")")}(V.translate,ie.translate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?(Ee-Ne>180?Ne+=360:Ne-Ee>180&&(Ee+=360),rt.push({i:et.push(Dc(et)+"rotate(",null,")")-2,x:Qs(Ee,Ne)})):Ne&&et.push(Dc(et)+"rotate("+Ne+")")}(V.rotate,ie.rotate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?rt.push({i:et.push(Dc(et)+"skewX(",null,")")-2,x:Qs(Ee,Ne)}):Ne&&et.push(Dc(et)+"skewX("+Ne+")")}(V.skew,ie.skew,ge,xe),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push(Dc(et)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else Ne[0]===1&&Ne[1]===1||et.push(Dc(et)+"scale("+Ne+")")}(V.scale,ie.scale,ge,xe),V=ie=null,function(Ee){for(var Ne,et=-1,rt=xe.length;++et0?ge=In:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):In>0&&(rt.start({type:"start",alpha:ge=In}),V=ar(et.tick)),et):ge},et.start=function(){var In,Ir,Pr,Gr=Ln.length,ro=gn.length,po=dt[0],Wo=dt[1];for(In=0;In=0;)ge.push(Ee[xe])}function cs(V,ie){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Ne=V.children)&&(Ee=Ne.length))for(var Ee,Ne,et=-1;++et=0;)et.push(Rt=gt[dt]),Rt.parent=Ne,Rt.depth=Ne.depth+1;ge&&(Ne.value=0),Ne.children=gt}else ge&&(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),delete Ne.children;return cs(Ee,function(Mt){var Xt,dn;V&&(Xt=Mt.children)&&Xt.sort(V),ge&&(dn=Mt.parent)&&(dn.value+=Mt.value)}),rt}return xe.sort=function(Ee){return arguments.length?(V=Ee,xe):V},xe.children=function(Ee){return arguments.length?(ie=Ee,xe):ie},xe.value=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe.revalue=function(Ee){return ge&&(vd(Ee,function(Ne){Ne.children&&(Ne.value=0)}),cs(Ee,function(Ne){var et;Ne.children||(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),(et=Ne.parent)&&(et.value+=Ne.value)})),Ee},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ie=[1,1];function ge(Ne,et,rt,dt){var gt=Ne.children;if(Ne.x=et,Ne.y=Ne.depth*dt,Ne.dx=rt,Ne.dy=dt,gt&&(Rt=gt.length)){var Rt,Mt,Xt,dn=-1;for(rt=Ne.value?rt/Ne.value:0;++dnrt&&(rt=xe),et.push(xe)}for(ge=0;geEe&&(xe=ge,Ee=ie);return xe}function _f(V){return V.reduce($f,0)}function $f(V,ie){return V+ie[1]}function ih(V,ie){return yu(V,Math.ceil(Math.log(ie.length)/Math.LN2+1))}function yu(V,ie){for(var ge=-1,xe=+V[0],Ee=(V[1]-xe)/ie,Ne=[];++ge<=ie;)Ne[ge]=Ee*ge+xe;return Ne}function jc(V){return[i.min(V),i.max(V)]}function Nh(V,ie){return V.value-ie.value}function af(V,ie){var ge=V._pack_next;V._pack_next=ie,ie._pack_prev=V,ie._pack_next=ge,ge._pack_prev=ie}function td(V,ie){V._pack_next=ie,ie._pack_prev=V}function sf(V,ie){var ge=ie.x-V.x,xe=ie.y-V.y,Ee=V.r+ie.r;return .999*Ee*Ee>ge*ge+xe*xe}function Bc(V){if((ie=V.children)&&(dt=ie.length)){var ie,ge,xe,Ee,Ne,et,rt,dt,gt=1/0,Rt=-1/0,Mt=1/0,Xt=-1/0;if(ie.forEach(Vd),(ge=ie[0]).x=-ge.r,ge.y=0,pn(ge),dt>1&&((xe=ie[1]).x=xe.r,xe.y=0,pn(xe),dt>2))for(gs(ge,xe,Ee=ie[2]),pn(Ee),af(ge,Ee),ge._pack_prev=Ee,af(Ee,xe),xe=ge._pack_next,Ne=3;Ne0)for(et=-1;++et=Mt[0]&&dt<=Mt[1]&&((rt=gt[i.bisect(Xt,dt,1,bn)-1]).y+=vn,rt.push(Ne[et]));return gt}return Ee.value=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.range=function(Ne){return arguments.length?(ge=to(Ne),Ee):ge},Ee.bins=function(Ne){return arguments.length?(xe=typeof Ne=="number"?function(et){return yu(et,Ne)}:to(Ne),Ee):xe},Ee.frequency=function(Ne){return arguments.length?(V=!!Ne,Ee):V},Ee},i.layout.pack=function(){var V,ie=i.layout.hierarchy().sort(Nh),ge=0,xe=[1,1];function Ee(Ne,et){var rt=ie.call(this,Ne,et),dt=rt[0],gt=xe[0],Rt=xe[1],Mt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,cs(dt,function(dn){dn.r=+Mt(dn.value)}),cs(dt,Bc),ge){var Xt=ge*(V?1:Math.max(2*dt.r/gt,2*dt.r/Rt))/2;cs(dt,function(dn){dn.r+=Xt}),cs(dt,Bc),cs(dt,function(dn){dn.r-=Xt})}return vc(dt,gt/2,Rt/2,V?1:1/Math.max(2*dt.r/gt,2*dt.r/Rt)),rt}return Ee.size=function(Ne){return arguments.length?(xe=Ne,Ee):xe},Ee.radius=function(Ne){return arguments.length?(V=Ne==null||typeof Ne=="function"?Ne:+Ne,Ee):V},Ee.padding=function(Ne){return arguments.length?(ge=+Ne,Ee):ge},Bu(Ee,ie)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=null;function Ee(dt,gt){var Rt=V.call(this,dt,gt),Mt=Rt[0],Xt=function(pn){for(var In,Ir={A:null,children:[pn]},Pr=[Ir];(In=Pr.pop())!=null;)for(var Gr,ro=In.children,po=0,Wo=ro.length;pobn.x&&(bn=pn),pn.depth>vn.depth&&(vn=pn)});var Ln=ie(dn,bn)/2-dn.x,gn=ge[0]/(bn.x+ie(bn,dn)/2+Ln),Jn=ge[1]/(vn.depth||1);vd(Mt,function(pn){pn.x=(pn.x+Ln)*gn,pn.y=pn.depth*Jn})}return Rt}function Ne(dt){var gt=dt.children,Rt=dt.parent.children,Mt=dt.i?Rt[dt.i-1]:null;if(gt.length){(function(dn){for(var bn,vn=0,Ln=0,gn=dn.children,Jn=gn.length;--Jn>=0;)(bn=gn[Jn]).z+=vn,bn.m+=vn,vn+=bn.s+(Ln+=bn.c)})(dt);var Xt=(gt[0].z+gt[gt.length-1].z)/2;Mt?(dt.z=Mt.z+ie(dt._,Mt._),dt.m=dt.z-Xt):dt.z=Xt}else Mt&&(dt.z=Mt.z+ie(dt._,Mt._));dt.parent.A=function(dn,bn,vn){if(bn){for(var Ln,gn=dn,Jn=dn,pn=bn,In=gn.parent.children[0],Ir=gn.m,Pr=Jn.m,Gr=pn.m,ro=In.m;pn=Nu(pn),gn=Cc(gn),pn&&gn;)In=Cc(In),(Jn=Nu(Jn)).a=dn,(Ln=pn.z+Gr-gn.z-Ir+ie(pn._,gn._))>0&&(Gs(Ks(pn,dn,vn),dn,Ln),Ir+=Ln,Pr+=Ln),Gr+=pn.m,Ir+=gn.m,ro+=In.m,Pr+=Jn.m;pn&&!Nu(Jn)&&(Jn.t=pn,Jn.m+=Gr-Pr),gn&&!Cc(In)&&(In.t=gn,In.m+=Ir-ro,vn=dn)}return vn}(dt,Mt,dt.parent.A||Rt[0])}function et(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Ee.separation=function(dt){return arguments.length?(ie=dt,Ee):ie},Ee.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Ee):xe?null:ge},Ee.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Ee):xe?ge:null},Bu(Ee,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=!1;function Ee(Ne,et){var rt,dt=V.call(this,Ne,et),gt=dt[0],Rt=0;cs(gt,function(vn){var Ln=vn.children;Ln&&Ln.length?(vn.x=function(gn){return gn.reduce(function(Jn,pn){return Jn+pn.x},0)/gn.length}(Ln),vn.y=function(gn){return 1+i.max(gn,function(Jn){return Jn.y})}(Ln)):(vn.x=rt?Rt+=ie(vn,rt):0,vn.y=0,rt=vn)});var Mt=Ac(gt),Xt=_d(gt),dn=Mt.x-ie(Mt,Xt)/2,bn=Xt.x+ie(Xt,Mt)/2;return cs(gt,xe?function(vn){vn.x=(vn.x-gt.x)*ge[0],vn.y=(gt.y-vn.y)*ge[1]}:function(vn){vn.x=(vn.x-dn)/(bn-dn)*ge[0],vn.y=(1-(gt.y?vn.y/gt.y:1))*ge[1]}),dt}return Ee.separation=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.size=function(Ne){return arguments.length?(xe=(ge=Ne)==null,Ee):xe?null:ge},Ee.nodeSize=function(Ne){return arguments.length?(xe=(ge=Ne)!=null,Ee):xe?ge:null},Bu(Ee,V)},i.layout.treemap=function(){var V,ie=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Ee=null,Ne=Fh,et=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function gt(vn,Ln){for(var gn,Jn,pn=-1,In=vn.length;++pn0;)Ir.push(gn=Pr[pn-1]),Ir.area+=gn.area,rt!=="squarify"||(Jn=Xt(Ir,ro))<=Gr?(Pr.pop(),Gr=Jn):(Ir.area-=Ir.pop().area,dn(Ir,ro,In,!1),ro=Math.min(In.dx,In.dy),Ir.length=Ir.area=0,Gr=1/0);Ir.length&&(dn(Ir,ro,In,!0),Ir.length=Ir.area=0),Ln.forEach(Rt)}}function Mt(vn){var Ln=vn.children;if(Ln&&Ln.length){var gn,Jn=Ne(vn),pn=Ln.slice(),In=[];for(gt(pn,Jn.dx*Jn.dy/vn.value),In.area=0;gn=pn.pop();)In.push(gn),In.area+=gn.area,gn.z!=null&&(dn(In,gn.z?Jn.dx:Jn.dy,Jn,!pn.length),In.length=In.area=0);Ln.forEach(Mt)}}function Xt(vn,Ln){for(var gn,Jn=vn.area,pn=0,In=1/0,Ir=-1,Pr=vn.length;++Irpn&&(pn=gn));return Ln*=Ln,(Jn*=Jn)?Math.max(Ln*pn*dt/Jn,Jn/(Ln*In*dt)):1/0}function dn(vn,Ln,gn,Jn){var pn,In=-1,Ir=vn.length,Pr=gn.x,Gr=gn.y,ro=Ln?ge(vn.area/Ln):0;if(Ln==gn.dx){for((Jn||ro>gn.dy)&&(ro=gn.dy);++Ingn.dx)&&(ro=gn.dx);++In1);return V+ie*xe*Math.sqrt(-2*Math.log(Ne)/Ne)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ie=i.random.irwinHall(V);return function(){return ie()/V}},irwinHall:function(V){return function(){for(var ie=0,ge=0;ge2?cl:Au,gt=xe?rh:Lp;return Ee=dt(V,ie,gt,ge),Ne=dt(ie,V,gt,iu),rt}function rt(dt){return Ee(dt)}return rt.invert=function(dt){return Ne(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),et()):V},rt.range=function(dt){return arguments.length?(ie=dt,et()):ie},rt.rangeRound=function(dt){return rt.range(dt).interpolate(Gh)},rt.clamp=function(dt){return arguments.length?(xe=dt,et()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,et()):ge},rt.ticks=function(dt){return wi(V,dt)},rt.tickFormat=function(dt,gt){return d3_scale_linearTickFormat(V,dt,gt)},rt.nice=function(dt){return Qc(V,dt),et()},rt.copy=function(){return bc(V,ie,ge,xe)},et()}function nc(V,ie){return i.rebind(V,ie,"range","rangeRound","interpolate","clamp")}function Qc(V,ie){return lf(V,wf(ts(V,ie)[2])),lf(V,wf(ts(V,ie)[2])),V}function ts(V,ie){ie==null&&(ie=10);var ge=vp(V),xe=ge[1]-ge[0],Ee=Math.pow(10,Math.floor(Math.log(xe/ie)/Math.LN10)),Ne=ie/xe*Ee;return Ne<=.15?Ee*=10:Ne<=.35?Ee*=5:Ne<=.75&&(Ee*=2),ge[0]=Math.ceil(ge[0]/Ee)*Ee,ge[1]=Math.floor(ge[1]/Ee)*Ee+.5*Ee,ge[2]=Ee,ge}function wi(V,ie){return i.range.apply(i,ts(V,ie))}function bu(V,ie,ge,xe){function Ee(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ie)}function Ne(rt){return ge?Math.pow(ie,rt):-Math.pow(ie,-rt)}function et(rt){return V(Ee(rt))}return et.invert=function(rt){return Ne(V.invert(rt))},et.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Ee)),et):xe},et.base=function(rt){return arguments.length?(ie=+rt,V.domain(xe.map(Ee)),et):ie},et.nice=function(){var rt=lf(xe.map(Ee),ge?Math:wd);return V.domain(rt),xe=rt.map(Ne),et},et.ticks=function(){var rt=vp(xe),dt=[],gt=rt[0],Rt=rt[1],Mt=Math.floor(Ee(gt)),Xt=Math.ceil(Ee(Rt)),dn=ie%1?2:ie;if(isFinite(Xt-Mt)){if(ge){for(;Mt0;bn--)dt.push(Ne(Mt)*bn);for(Mt=0;dt[Mt]Rt;Xt--);dt=dt.slice(Mt,Xt)}return dt},et.copy=function(){return bu(V.copy(),ie,ge,xe)},nc(et,V)}i.scale.linear=function(){return bc([0,1],[0,1],iu,!1)},i.scale.log=function(){return bu(i.scale.linear().domain([0,1]),10,!0,[1,10])};var wd={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function Ol(V,ie,ge){var xe=ds(ie),Ee=ds(1/ie);function Ne(et){return V(xe(et))}return Ne.invert=function(et){return Ee(V.invert(et))},Ne.domain=function(et){return arguments.length?(V.domain((ge=et.map(Number)).map(xe)),Ne):ge},Ne.ticks=function(et){return wi(ge,et)},Ne.tickFormat=function(et,rt){return d3_scale_linearTickFormat(ge,et,rt)},Ne.nice=function(et){return Ne.domain(Qc(ge,et))},Ne.exponent=function(et){return arguments.length?(xe=ds(ie=et),Ee=ds(1/ie),V.domain(ge.map(xe)),Ne):ie},Ne.copy=function(){return Ol(V.copy(),ie,ge)},nc(Ne,V)}function ds(V){return function(ie){return ie<0?-Math.pow(-ie,V):Math.pow(ie,V)}}function zc(V,ie){var ge,xe,Ee;function Ne(rt){return xe[((ge.get(rt)||(ie.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function et(rt,dt){return i.range(V.length).map(function(gt){return rt+dt*gt})}return Ne.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,gt=-1,Rt=rt.length;++gt0?ge[Ne-1]:V[0],NeXt?0:1;if(Rt=Sn)return dt(Rt,bn)+(gt?dt(gt,1-bn):"")+"Z";var vn,Ln,gn,Jn,pn,In,Ir,Pr,Gr,ro,po,Wo,si=0,Bo=0,Go=[];if((Jn=(+et.apply(this,arguments)||0)/2)&&(gn=xe===zl?Math.sqrt(gt*gt+Rt*Rt):+xe.apply(this,arguments),bn||(Bo*=-1),Rt&&(Bo=bt(gn/Rt*Math.sin(Jn))),gt&&(si=bt(gn/gt*Math.sin(Jn)))),Rt){pn=Rt*Math.cos(Mt+Bo),In=Rt*Math.sin(Mt+Bo),Ir=Rt*Math.cos(Xt-Bo),Pr=Rt*Math.sin(Xt-Bo);var Yo=Math.abs(Xt-Mt-2*Bo)<=Cn?0:1;if(Bo&&al(pn,In,Ir,Pr)===bn^Yo){var Wi=(Mt+Xt)/2;pn=Rt*Math.cos(Wi),In=Rt*Math.sin(Wi),Ir=Pr=null}}else pn=In=0;if(gt){Gr=gt*Math.cos(Xt-si),ro=gt*Math.sin(Xt-si),po=gt*Math.cos(Mt+si),Wo=gt*Math.sin(Mt+si);var Ho=Math.abs(Mt-Xt+2*si)<=Cn?0:1;if(si&&al(Gr,ro,po,Wo)===1-bn^Ho){var jo=(Mt+Xt)/2;Gr=gt*Math.cos(jo),ro=gt*Math.sin(jo),po=Wo=null}}else Gr=ro=0;if(dn>Ot&&(vn=Math.min(Math.abs(Rt-gt)/2,+ge.apply(this,arguments)))>.001){Ln=gt0?0:1}function Yl(V,ie,ge,xe,Ee){var Ne=V[0]-ie[0],et=V[1]-ie[1],rt=(Ee?xe:-xe)/Math.sqrt(Ne*Ne+et*et),dt=rt*et,gt=-rt*Ne,Rt=V[0]+dt,Mt=V[1]+gt,Xt=ie[0]+dt,dn=ie[1]+gt,bn=(Rt+Xt)/2,vn=(Mt+dn)/2,Ln=Xt-Rt,gn=dn-Mt,Jn=Ln*Ln+gn*gn,pn=ge-xe,In=Rt*dn-Xt*Mt,Ir=(gn<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*Jn-In*In)),Pr=(In*gn-Ln*Ir)/Jn,Gr=(-In*Ln-gn*Ir)/Jn,ro=(In*gn+Ln*Ir)/Jn,po=(-In*Ln+gn*Ir)/Jn,Wo=Pr-bn,si=Gr-vn,Bo=ro-bn,Go=po-vn;return Wo*Wo+si*si>Bo*Bo+Go*Go&&(Pr=ro,Gr=po),[[Pr-dt,Gr-gt],[Pr*ge/pn,Gr*ge/pn]]}function uf(){return!0}function hs(V){var ie=go,ge=oo,xe=uf,Ee=Eu,Ne=Ee.key,et=.7;function rt(dt){var gt,Rt=[],Mt=[],Xt=-1,dn=dt.length,bn=to(ie),vn=to(ge);function Ln(){Rt.push("M",Ee(V(Mt),et))}for(;++Xt1&&Ee.push("H",xe[0]),Ee.join("")},"step-before":ws,"step-after":Fu,basis:Ls,"basis-open":function(V){if(V.length<4)return Eu(V);for(var ie,ge=[],xe=-1,Ee=V.length,Ne=[0],et=[0];++xe<3;)ie=V[xe],Ne.push(ie[0]),et.push(ie[1]);for(ge.push(Ec(Kt,Ne)+","+Ec(Kt,et)),--xe;++xe9&&(Ne=3*ge/Math.sqrt(Ne),rt[dt]=Ne*xe,rt[dt+1]=Ne*Ee);for(dt=-1;++dt<=gt;)Ne=(ie[Math.min(gt,dt+1)][0]-ie[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),et.push([Ne||0,rt[dt]*Ne||0]);return et}(V))}});function Eu(V){return V.length>1?V.join("L"):V+"Z"}function xu(V){return V.join("L")+"Z"}function ws(V){for(var ie=0,ge=V.length,xe=V[0],Ee=[xe[0],",",xe[1]];++ie1){rt=ie[1],Ne=V[dt],dt++,xe+="C"+(Ee[0]+et[0])+","+(Ee[1]+et[1])+","+(Ne[0]-rt[0])+","+(Ne[1]-rt[1])+","+Ne[0]+","+Ne[1];for(var gt=2;gtCn)+",1 "+Rt}function dt(gt,Rt,Mt,Xt){return"Q 0,0 "+Xt}return Ne.radius=function(gt){return arguments.length?(ge=to(gt),Ne):ge},Ne.source=function(gt){return arguments.length?(V=to(gt),Ne):V},Ne.target=function(gt){return arguments.length?(ie=to(gt),Ne):ie},Ne.startAngle=function(gt){return arguments.length?(xe=to(gt),Ne):xe},Ne.endAngle=function(gt){return arguments.length?(Ee=to(gt),Ne):Ee},Ne},i.svg.diagonal=function(){var V=Bi,ie=ya,ge=Qi;function xe(Ee,Ne){var et=V.call(this,Ee,Ne),rt=ie.call(this,Ee,Ne),dt=(et.y+rt.y)/2,gt=[et,{x:et.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(gt=gt.map(ge))[0]+"C"+gt[1]+" "+gt[2]+" "+gt[3]}return xe.source=function(Ee){return arguments.length?(V=to(Ee),xe):V},xe.target=function(Ee){return arguments.length?(ie=to(Ee),xe):ie},xe.projection=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ie=Qi,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Ee){return function(){var Ne=Ee.apply(this,arguments),et=Ne[0],rt=Ne[1]-vt;return[et*Math.cos(rt),et*Math.sin(rt)]}}(ie=xe)):ie},V},i.svg.symbol=function(){var V=nl,ie=Ws;function ge(xe,Ee){return(Wu.get(V.call(this,xe,Ee))||Fs)(ie.call(this,xe,Ee))}return ge.type=function(xe){return arguments.length?(V=to(xe),ge):V},ge.size=function(xe){return arguments.length?(ie=to(xe),ge):ie},ge};var Wu=i.map({circle:Fs,cross:function(V){var ie=Math.sqrt(V/5)/2;return"M"+-3*ie+","+-ie+"H"+-ie+"V"+-3*ie+"H"+ie+"V"+-ie+"H"+3*ie+"V"+ie+"H"+ie+"V"+3*ie+"H"+-ie+"V"+ie+"H"+-3*ie+"Z"},diamond:function(V){var ie=Math.sqrt(V/(2*Aa)),ge=ie*Aa;return"M0,"+-ie+"L"+ge+",0 0,"+ie+" "+-ge+",0Z"},square:function(V){var ie=Math.sqrt(V)/2;return"M"+-ie+","+-ie+"L"+ie+","+-ie+" "+ie+","+ie+" "+-ie+","+ie+"Z"},"triangle-down":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+ge+"L"+ie+","+-ge+" "+-ie+","+-ge+"Z"},"triangle-up":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+-ge+"L"+ie+","+ge+" "+-ie+","+ge+"Z"}});i.svg.symbolTypes=Wu.keys();var Ki=Math.sqrt(3),Aa=Math.tan(30*xt);Te.transition=function(V){for(var ie,ge,xe=_c||++Pc,Ee=Si(V),Ne=[],et=Xl||{time:Date.now(),ease:Wl,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)gt[--gn].call(V,Ln);if(vn>=1)return Mt.event&&Mt.event.end.call(V,V.__data__,ie),--Rt.count?delete Rt[xe]:delete V[ge],1}Mt||(Ne=Ee.time,et=ar(function(bn){var vn=Mt.delay;if(et.t=vn+Ne,vn<=bn)return Xt(bn-vn);et.c=Xt},0,Ne),Mt=Rt[xe]={tween:new L,time:Ne,timer:et,delay:Ee.delay,duration:Ee.duration,ease:Ee.ease,index:ie},Ee=null,++Rt.count)}pl.call=Te.call,pl.empty=Te.empty,pl.node=Te.node,pl.size=Te.size,i.transition=function(V,ie){return V&&V.transition?_c?V.transition(ie):V:i.selection().transition(V)},i.transition.prototype=pl,pl.select=function(V){var ie,ge,xe,Ee=this.id,Ne=this.namespace,et=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Ne[1]-Ne[0])}function dn(vn){vn.select(".extent").attr("y",et[0]),vn.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function bn(){var vn,Ln,gn=this,Jn=i.select(i.event.target),pn=ge.of(gn,arguments),In=i.select(gn),Ir=Jn.datum(),Pr=!/^(n|s)$/.test(Ir)&&xe,Gr=!/^(e|w)$/.test(Ir)&&Ee,ro=Jn.classed("extent"),po=Yt(gn),Wo=i.mouse(gn),si=i.select(a(gn)).on("keydown.brush",function(){i.event.keyCode==32&&(ro||(vn=null,Wo[0]-=Ne[1],Wo[1]-=et[1],ro=2),pe())}).on("keyup.brush",function(){i.event.keyCode==32&&ro==2&&(Wo[0]+=Ne[1],Wo[1]+=et[1],ro=0,pe())});if(i.event.changedTouches?si.on("touchmove.brush",Yo).on("touchend.brush",Ho):si.on("mousemove.brush",Yo).on("mouseup.brush",Ho),In.interrupt().selectAll("*").interrupt(),ro)Wo[0]=Ne[0]-Wo[0],Wo[1]=et[0]-Wo[1];else if(Ir){var Bo=+/w$/.test(Ir),Go=+/^n/.test(Ir);Ln=[Ne[1-Bo]-Wo[0],et[1-Go]-Wo[1]],Wo[0]=Ne[Bo],Wo[1]=et[Go]}else i.event.altKey&&(vn=Wo.slice());function Yo(){var jo=i.mouse(gn),Yi=!1;Ln&&(jo[0]+=Ln[0],jo[1]+=Ln[1]),ro||(i.event.altKey?(vn||(vn=[(Ne[0]+Ne[1])/2,(et[0]+et[1])/2]),Wo[0]=Ne[+(jo[0](Ae=1))return Ae;for(;uent?ue=He:Ae=He,He=.5*(Ae-ue)+ue}return He},m.prototype.solve=function(F,G){return this.sampleCurveY(this.solveCurveX(F,G))};var a=c;function c(F,G){this.x=F,this.y=G}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(F){return this.clone()._add(F)},sub:function(F){return this.clone()._sub(F)},multByPoint:function(F){return this.clone()._multByPoint(F)},divByPoint:function(F){return this.clone()._divByPoint(F)},mult:function(F){return this.clone()._mult(F)},div:function(F){return this.clone()._div(F)},rotate:function(F){return this.clone()._rotate(F)},rotateAround:function(F,G){return this.clone()._rotateAround(F,G)},matMult:function(F){return this.clone()._matMult(F)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(F){return this.x===F.x&&this.y===F.y},dist:function(F){return Math.sqrt(this.distSqr(F))},distSqr:function(F){var G=F.x-this.x,ue=F.y-this.y;return G*G+ue*ue},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(F){return Math.atan2(this.y-F.y,this.x-F.x)},angleWith:function(F){return this.angleWithSep(F.x,F.y)},angleWithSep:function(F,G){return Math.atan2(this.x*G-this.y*F,this.x*F+this.y*G)},_matMult:function(F){var G=F[0]*this.x+F[1]*this.y,ue=F[2]*this.x+F[3]*this.y;return this.x=G,this.y=ue,this},_add:function(F){return this.x+=F.x,this.y+=F.y,this},_sub:function(F){return this.x-=F.x,this.y-=F.y,this},_mult:function(F){return this.x*=F,this.y*=F,this},_div:function(F){return this.x/=F,this.y/=F,this},_multByPoint:function(F){return this.x*=F.x,this.y*=F.y,this},_divByPoint:function(F){return this.x/=F.x,this.y/=F.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var F=this.y;return this.y=this.x,this.x=-F,this},_rotate:function(F){var G=Math.cos(F),ue=Math.sin(F),Ae=G*this.x-ue*this.y,He=ue*this.x+G*this.y;return this.x=Ae,this.y=He,this},_rotateAround:function(F,G){var ue=Math.cos(F),Ae=Math.sin(F),He=G.x+ue*(this.x-G.x)-Ae*(this.y-G.y),nt=G.y+Ae*(this.x-G.x)+ue*(this.y-G.y);return this.x=He,this.y=nt,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(F){return F instanceof c?F:Array.isArray(F)?new c(F[0],F[1]):F};var h=typeof self<"u"?self:{},p=Math.pow(2,53)-1;function v(F,G,ue,Ae){var He=new y(F,G,ue,Ae);return function(nt){return He.solve(nt)}}var _=v(.25,.1,.25,1);function O(F,G,ue){return Math.min(ue,Math.max(G,F))}function C(F,G,ue){var Ae=ue-G,He=((F-G)%Ae+Ae)%Ae+G;return He===G?ue:He}function x(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,F)}()}function P(F){return!!F&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(F)}function A(F,G){F.forEach(function(ue){G[ue]&&(G[ue]=G[ue].bind(G))})}function L(F,G){return F.indexOf(G,F.length-G.length)!==-1}function D(F,G,ue){var Ae={};for(var He in F)Ae[He]=G.call(ue||this,F[He],He,F);return Ae}function k(F,G,ue){var Ae={};for(var He in F)G.call(ue||this,F[He],He,F)&&(Ae[He]=F[He]);return Ae}function I(F){return Array.isArray(F)?F.map(I):typeof F=="object"&&F?D(F,I):F}var z={};function $(F){z[F]||(typeof console<"u"&&console.warn(F),z[F]=!0)}function Q(F,G,ue){return(ue.y-F.y)*(G.x-F.x)>(G.y-F.y)*(ue.x-F.x)}function j(F){for(var G=0,ue=0,Ae=F.length,He=Ae-1,nt=void 0,ct=void 0;ue@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,He,nt,ct){var Pt=nt||ct;return G[He]=!Pt||Pt.toLowerCase(),""}),G["max-age"]){var ue=parseInt(G["max-age"],10);isNaN(ue)?delete G["max-age"]:G["max-age"]=ue}return G}var te=null;function Z(F){if(te==null){var G=F.navigator?F.navigator.userAgent:null;te=!!F.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(F){try{var G=h[F];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var re,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),pe=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(F){var G=pe(F);return{cancel:function(){return se(G)}}},getImageData:function(F,G){G===void 0&&(G=0);var ue=h.document.createElement("canvas"),Ae=ue.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return ue.width=F.width,ue.height=F.height,Ae.drawImage(F,0,0,F.width,F.height),Ae.getImageData(-G,-G,F.width+2*G,F.height+2*G)},resolveURL:function(F){return re||(re=h.document.createElement("a")),re.href=F,re.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(F){!ye&&ee&&(ve?_e(F):Y=F)}},ye=!1,ve=!1;function _e(F){var G=F.createTexture();F.bindTexture(F.TEXTURE_2D,G);try{if(F.texImage2D(F.TEXTURE_2D,0,F.RGBA,F.RGBA,F.UNSIGNED_BYTE,ee),F.isContextLost())return;de.supported=!0}catch{}F.deleteTexture(G),ye=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ve=!0},ee.onerror=function(){ye=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var we="01",Te=function(F,G){this._transformRequestFn=F,this._customAccessToken=G,this._createSkuToken()};function Pe(F){return F.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var F=function(){for(var G="",ue=0;ue<10;ue++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",we,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=F.token,this._skuTokenExpiresAt=F.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(F,G){return this._transformRequestFn&&this._transformRequestFn(F,G)||{url:F}},Te.prototype.normalizeStyleURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(F,G,ue,Ae){var He=Qe(F);return Pe(F)?(He.path="/styles/v1"+He.path+"/sprite"+G+ue,this._makeAPIURL(He,this._customAccessToken||Ae)):(He.path+=""+G+ue,Ve(He))},Te.prototype.normalizeTileURL=function(F,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),F&&!Pe(F))return F;var ue=Qe(F),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",He=de.supported?".webp":"$1";ue.path=ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+He),ue.path=ue.path.replace(/^.+\/v4\//,"/"),ue.path="/v4"+ue.path;var nt=this._customAccessToken||function(ct){for(var Pt=0,jt=ct;Pt=0&&F.params.splice(He,1)}if(Ae.path!=="/"&&(F.path=""+Ae.path+F.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(F);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+ue);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return F.params=F.params.filter(function(nt){return nt.indexOf("access_token")===-1}),F.params.push("access_token="+G),Ve(F)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(F){return Ie.test(F)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Qe(F){var G=F.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(F){var G=F.params.length?"?"+F.params.join("&"):"";return F.protocol+"://"+F.authority+F.path+G}var $e="mapbox.eventData";function Oe(F){if(!F)return null;var G,ue=F.split(".");if(!ue||ue.length!==3)return null;try{return JSON.parse((G=ue[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(F){this.type=F,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(F){var G,ue,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(ue=Ae.u,h.btoa(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(He,nt){return String.fromCharCode(+("0x"+nt))}))):ce.ACCESS_TOKEN||"",F?$e+"."+F+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var He=h.localStorage.getItem(ue);He&&(this.anonId=He)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{h.localStorage.setItem(ue,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(F){},ke.prototype.postEvent=function(F,G,ue,Ae){var He=this;if(ce.EVENTS_URL){var nt=Qe(ce.EVENTS_URL);nt.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(F).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:we,userId:this.anonId},Pt=G?x(ct,G):ct,jt={url:Ve(nt),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Sn(jt,function(hn){He.pendingRequest=null,ue(hn),He.saveEventData(),He.processRequests(Ae)})}},ke.prototype.queueRequest=function(F,G){this.queue.push(F),this.processRequests(G)};var Re,We,Ue=function(F){function G(){F.call(this,"map.load"),this.success={},this.skuToken=""}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(ue,Ae,He,nt){this.skuToken=He,(ce.EVENTS_URL&&nt||ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(ct){return Pe(ct)||ze(ct)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},nt)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var He=this.queue.shift(),nt=He.id,ct=He.timestamp;nt&&this.success[nt]||(this.anonId||this.fetchEventData(),P(this.anonId)||(this.anonId=T()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||nt&&(Ae.success[nt]=!0)},ue))}},G}(ke),Ze=function(F){function G(ue){F.call(this,"appUserTurnstile"),this._customAccessToken=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(ue,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(He){return Pe(He)||ze(He)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var He=Oe(ce.ACCESS_TOKEN),nt=He?He.u:ce.ACCESS_TOKEN,ct=nt!==this.eventData.tokenU;P(this.anonId)||(this.anonId=T(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var jt=new Date(this.eventData.lastSuccess),hn=new Date(Pt),mn=(Pt-this.eventData.lastSuccess)/864e5;ct=ct||mn>=1||mn<-1||jt.getDate()!==hn.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Dn){Dn||(Ae.eventData.lastSuccess=Pt,Ae.eventData.tokenU=nt)},ue)}},G}(ke),Ye=new Ze,Je=Ye.postTurnstileEvent.bind(Ye),Me=new Ue,Fe=Me.postMapLoadEvent.bind(Me),je="mapbox-tiles",tt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Re&&(Re=h.caches.open(je))}function pt(F,G,ue){if(ht(),Re){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(nt,ct){return Ae.headers.set(ct,nt)});var He=X(G.headers.get("Cache-Control")||"");He["no-store"]||(He["max-age"]&&Ae.headers.set("Expires",new Date(ue+1e3*He["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-ueDate.now()&&!jt["no-cache"]}(He);Ae.delete(ue),nt&&Ae.put(ue,He.clone()),G(null,He,nt)}).catch(G)}).catch(G)}var zt,Yt=1/0;function ln(){return zt==null&&(zt=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),zt}var tn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(tn);var Et=function(F){function G(ue,Ae,He){Ae===401&&ze(He)&&(ue+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),F.call(this,ue),this.status=Ae,this.url=He,this.name=this.constructor.name,this.message=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),Ot=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function cn(F,G){var ue,Ae=new h.AbortController,He=new h.Request(F.url,{method:F.method||"GET",body:F.body,credentials:F.credentials,headers:F.headers,referrer:Ot(),signal:Ae.signal}),nt=!1,ct=!1,Pt=(ue=He.url).indexOf("sku=")>0&&ze(ue);F.type==="json"&&He.headers.set("Accept","application/json");var jt=function(mn,Dn,Xn){if(!ct){if(mn&&mn.message!=="SecurityError"&&$(mn),Dn&&Xn)return hn(Dn);var $n=Date.now();h.fetch(He).then(function(mr){if(mr.ok){var Or=Pt?mr.clone():null;return hn(mr,Or,$n)}return G(new Et(mr.statusText,mr.status,F.url))}).catch(function(mr){mr.code!==20&&G(new Error(mr.message))})}},hn=function(mn,Dn,Xn){(F.type==="arrayBuffer"?mn.arrayBuffer():F.type==="json"?mn.json():mn.text()).then(function($n){ct||(Dn&&Xn&&pt(He,Dn,Xn),nt=!0,G(null,$n,mn.headers.get("Cache-Control"),mn.headers.get("Expires")))}).catch(function($n){ct||G(new Error($n.message))})};return Pt?Ft(He,jt):jt(null,null),{cancel:function(){ct=!0,nt||Ae.abort()}}}var Cn=function(F,G){if(ue=F.url,!(/^file:/.test(ue)||/^file:/.test(Ot())&&!/^\w+:/.test(ue))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return cn(F,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",F,G,void 0,!0)}var ue;return function(Ae,He){var nt=new h.XMLHttpRequest;for(var ct in nt.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(nt.responseType="arraybuffer"),Ae.headers)nt.setRequestHeader(ct,Ae.headers[ct]);return Ae.type==="json"&&(nt.responseType="text",nt.setRequestHeader("Accept","application/json")),nt.withCredentials=Ae.credentials==="include",nt.onerror=function(){He(new Error(nt.statusText))},nt.onload=function(){if((nt.status>=200&&nt.status<300||nt.status===0)&&nt.response!==null){var Pt=nt.response;if(Ae.type==="json")try{Pt=JSON.parse(nt.response)}catch(jt){return He(jt)}He(null,Pt,nt.getResponseHeader("Cache-Control"),nt.getResponseHeader("Expires"))}else He(new Et(nt.statusText,nt.status,Ae.url))},nt.send(Ae.body),{cancel:function(){return nt.abort()}}}(F,G)},Pn=function(F,G){return Cn(x(F,{type:"arrayBuffer"}),G)},Sn=function(F,G){return Cn(x(F,{method:"POST"}),G)},vt,xt,st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],xt=0;var bt=function(F,G){if(de.supported&&(F.headers||(F.headers={}),F.headers.accept="image/webp,*/*"),xt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var ue={requestParameters:F,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(ue),ue}xt++;var Ae=!1,He=function(){if(!Ae)for(Ae=!0,xt--;vt.length&&xt0||this._oneTimeListeners&&this._oneTimeListeners[F]&&this._oneTimeListeners[F].length>0||this._eventedParent&&this._eventedParent.listens(F)},Bt.prototype.setEventedParent=function(F,G){return this._eventedParent=F,this._eventedParentData=G,this};var _t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},qt=function(F,G,ue,Ae){this.message=(F?F+": ":"")+ue,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function en(F){var G=F.key,ue=F.value;return ue?[new qt(G,ue,"constants have been deprecated as of v8")]:[]}function Jt(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae":F.itemType.kind==="value"?"array":"array<"+G+">"}return F.kind}var gr=[_n,wn,An,Kn,fr,Br,Un,vr(Zn),$r];function sr(F,G){if(G.kind==="error")return null;if(F.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!sr(F.itemType,G.itemType))&&(typeof F.N!="number"||F.N===G.N))return null}else{if(F.kind===G.kind)return null;if(F.kind==="value"){for(var ue=0,Ae=gr;ue255?255:jt}function He(jt){return jt<0?0:jt>1?1:jt}function nt(jt){return jt[jt.length-1]==="%"?Ae(parseFloat(jt)/100*255):Ae(parseInt(jt))}function ct(jt){return jt[jt.length-1]==="%"?He(parseFloat(jt)/100):He(parseFloat(jt))}function Pt(jt,hn,mn){return mn<0?mn+=1:mn>1&&(mn-=1),6*mn<1?jt+(hn-jt)*mn*6:2*mn<1?hn:3*mn<2?jt+(hn-jt)*(2/3-mn)*6:jt}try{G.parseCSSColor=function(jt){var hn,mn=jt.replace(/ /g,"").toLowerCase();if(mn in ue)return ue[mn].slice();if(mn[0]==="#")return mn.length===4?(hn=parseInt(mn.substr(1),16))>=0&&hn<=4095?[(3840&hn)>>4|(3840&hn)>>8,240&hn|(240&hn)>>4,15&hn|(15&hn)<<4,1]:null:mn.length===7&&(hn=parseInt(mn.substr(1),16))>=0&&hn<=16777215?[(16711680&hn)>>16,(65280&hn)>>8,255&hn,1]:null;var Dn=mn.indexOf("("),Xn=mn.indexOf(")");if(Dn!==-1&&Xn+1===mn.length){var $n=mn.substr(0,Dn),mr=mn.substr(Dn+1,Xn-(Dn+1)).split(","),Or=1;switch($n){case"rgba":if(mr.length!==4)return null;Or=ct(mr.pop());case"rgb":return mr.length!==3?null:[nt(mr[0]),nt(mr[1]),nt(mr[2]),Or];case"hsla":if(mr.length!==4)return null;Or=ct(mr.pop());case"hsl":if(mr.length!==3)return null;var Kr=(parseFloat(mr[0])%360+360)%360/360,Hr=ct(mr[1]),fo=ct(mr[2]),mo=fo<=.5?fo*(Hr+1):fo+Hr-fo*Hr,Io=2*fo-mo;return[Ae(255*Pt(Io,mo,Kr+1/3)),Ae(255*Pt(Io,mo,Kr)),Ae(255*Pt(Io,mo,Kr-1/3)),Or];default:return null}}return null}}catch{}}),eo=Vr.parseCSSColor,Jr=function(F,G,ue,Ae){Ae===void 0&&(Ae=1),this.r=F,this.g=G,this.b=ue,this.a=Ae};Jr.parse=function(F){if(F){if(F instanceof Jr)return F;if(typeof F=="string"){var G=eo(F);if(G)return new Jr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Jr.prototype.toString=function(){var F=this.toArray(),G=F[0],ue=F[1],Ae=F[2],He=F[3];return"rgba("+Math.round(G)+","+Math.round(ue)+","+Math.round(Ae)+","+He+")"},Jr.prototype.toArray=function(){var F=this,G=F.r,ue=F.g,Ae=F.b,He=F.a;return He===0?[0,0,0,0]:[255*G/He,255*ue/He,255*Ae/He,He]},Jr.black=new Jr(0,0,0,1),Jr.white=new Jr(1,1,1,1),Jr.transparent=new Jr(0,0,0,0),Jr.red=new Jr(1,0,0,1);var Yr=function(F,G,ue){this.sensitivity=F?G?"variant":"case":G?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yr.prototype.compare=function(F,G){return this.collator.compare(F,G)},Yr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var to=function(F,G,ue,Ae,He){this.text=F,this.image=G,this.scale=ue,this.fontStack=Ae,this.textColor=He},co=function(F){this.sections=F};co.fromString=function(F){return new co([new to(F,null,null,null,null)])},co.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(F){return F.text.length!==0||F.image&&F.image.name.length!==0})},co.factory=function(F){return F instanceof co?F:co.fromString(F)},co.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(F){return F.text}).join("")},co.prototype.serialize=function(){for(var F=["format"],G=0,ue=this.sections;G=0&&F<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof ue=="number"&&ue>=0&&ue<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[F,G,ue,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[F,G,ue,Ae]:[F,G,ue]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function $o(F){if(F===null||typeof F=="string"||typeof F=="boolean"||typeof F=="number"||F instanceof Jr||F instanceof Yr||F instanceof co||F instanceof Fo)return!0;if(Array.isArray(F)){for(var G=0,ue=F;G2){var Pt=F[1];if(typeof Pt!="string"||!(Pt in Dr)||Pt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);nt=Dr[Pt],Ae++}else nt=Zn;if(F.length>3){if(F[2]!==null&&(typeof F[2]!="number"||F[2]<0||F[2]!==Math.floor(F[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ct=F[2],Ae++}ue=vr(nt,ct)}else ue=Dr[He];for(var jt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(He){return He.serialize()}))};var Zr=function(F){this.type=Br,this.sections=F};Zr.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[1];if(!Array.isArray(ue)&&typeof ue=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],He=!1,nt=1;nt<=F.length-1;++nt){var ct=F[nt];if(He&&typeof ct=="object"&&!Array.isArray(ct)){He=!1;var Pt=null;if(ct["font-scale"]&&!(Pt=G.parse(ct["font-scale"],1,wn)))return null;var jt=null;if(ct["text-font"]&&!(jt=G.parse(ct["text-font"],1,vr(An))))return null;var hn=null;if(ct["text-color"]&&!(hn=G.parse(ct["text-color"],1,fr)))return null;var mn=Ae[Ae.length-1];mn.scale=Pt,mn.font=jt,mn.textColor=hn}else{var Dn=G.parse(F[nt],1,Zn);if(!Dn)return null;var Xn=Dn.type.kind;if(Xn!=="string"&&Xn!=="value"&&Xn!=="null"&&Xn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");He=!0,Ae.push({content:Dn,scale:null,font:null,textColor:null})}}return new Zr(Ae)},Zr.prototype.evaluate=function(F){return new co(this.sections.map(function(G){var ue=G.content.evaluate(F);return Mo(ue)===$r?new to("",ue,null,null,null):new to(pi(ue),null,G.scale?G.scale.evaluate(F):null,G.font?G.font.evaluate(F).join(","):null,G.textColor?G.textColor.evaluate(F):null)}))},Zr.prototype.eachChild=function(F){for(var G=0,ue=this.sections;G-1),ue},go.prototype.eachChild=function(F){F(this.input)},go.prototype.outputDefined=function(){return!1},go.prototype.serialize=function(){return["image",this.input.serialize()]};var oo={"to-boolean":Kn,"to-color":fr,"to-number":wn,"to-string":An},io=function(F,G){this.type=F,this.args=G};io.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[0];if((ue==="to-boolean"||ue==="to-string")&&F.length!==2)return G.error("Expected one argument.");for(var Ae=oo[ue],He=[],nt=1;nt4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":_o(G[0],G[1],G[2],G[3])))return new Jr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new ar(ue||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ct=null,Pt=0,jt=this.args;Pt=G[2]||F[1]<=G[1]||F[3]>=G[3])}function Er(F,G){var ue,Ae=(180+F[0])/360,He=(ue=F[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ue*Math.PI/360)))/360),nt=Math.pow(2,G.z);return[Math.round(Ae*nt*Yn),Math.round(He*nt*Yn)]}function Gt(F,G,ue){return G[1]>F[1]!=ue[1]>F[1]&&F[0]<(ue[0]-G[0])*(F[1]-G[1])/(ue[1]-G[1])+G[0]}function on(F,G){for(var ue=!1,Ae=0,He=G.length;Ae0&&Dn<0||mn<0&&Dn>0}function zn(F,G,ue){for(var Ae=0,He=ue;Aeue[2]){var He=.5*Ae,nt=F[0]-ue[0]>He?-Ae:ue[0]-F[0]>He?Ae:0;nt===0&&(nt=F[0]-ue[2]>He?-Ae:ue[2]-F[0]>He?Ae:0),F[0]+=nt}ir(G,F)}function wo(F,G,ue,Ae){for(var He=Math.pow(2,Ae.z)*Yn,nt=[Ae.x*Yn,Ae.y*Yn],ct=[],Pt=0,jt=F;Pt=0)return!1;var ue=!0;return F.eachChild(function(Ae){ue&&!Mn(Ae,G)&&(ue=!1)}),ue}Eo.parse=function(F,G){if(F.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(F.length-1)+" instead.");if($o(F[1])){var ue=F[1];if(ue.type==="FeatureCollection")for(var Ae=0;AeG))throw new ar("Input is not a number.");ct=Pt-1}return 0}dr.prototype.parse=function(F,G,ue,Ae,He){return He===void 0&&(He={}),G?this.concat(G,ue,Ae)._parse(F,He):this._parse(F,He)},dr.prototype._parse=function(F,G){function ue(hn,mn,Dn){return Dn==="assert"?new Sr(mn,[hn]):Dn==="coerce"?new io(mn,[hn]):hn}if(F!==null&&typeof F!="string"&&typeof F!="boolean"&&typeof F!="number"||(F=["literal",F]),Array.isArray(F)){if(F.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=F[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var He=this.registry[Ae];if(He){var nt=He.parse(F,this);if(!nt)return null;if(this.expectedType){var ct=this.expectedType,Pt=nt.type;if(ct.kind!=="string"&&ct.kind!=="number"&&ct.kind!=="boolean"&&ct.kind!=="object"&&ct.kind!=="array"||Pt.kind!=="value")if(ct.kind!=="color"&&ct.kind!=="formatted"&&ct.kind!=="resolvedImage"||Pt.kind!=="value"&&Pt.kind!=="string"){if(this.checkSubtype(ct,Pt))return null}else nt=ue(nt,ct,G.typeAnnotation||"coerce");else nt=ue(nt,ct,G.typeAnnotation||"assert")}if(!(nt instanceof Hn)&&nt.type.kind!=="resolvedImage"&&xr(nt)){var jt=new jn;try{nt=new Hn(nt.type,nt.evaluate(jt))}catch(hn){return this.error(hn.message),null}}return nt}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return F===void 0?this.error("'undefined' value invalid. Use null instead."):typeof F=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof F+" instead.")},dr.prototype.concat=function(F,G,ue){var Ae=typeof F=="number"?this.path.concat(F):this.path,He=ue?this.scope.concat(ue):this.scope;return new dr(this.registry,Ae,G||null,He,this.errors)},dr.prototype.error=function(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];var Ae=""+this.key+G.map(function(He){return"["+He+"]"}).join("");this.errors.push(new sn(Ae,F))},dr.prototype.checkSubtype=function(F,G){var ue=sr(F,G);return ue&&this.error(ue),ue};var mi=function(F,G,ue){this.type=F,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,He=ue;Ae=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',jt);var mn=G.parse(Pt,hn,He);if(!mn)return null;He=He||mn.type,Ae.push([ct,mn])}return new mi(He,ue,Ae)},mi.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;return Ae>=G[He-1]?ue[He-1].evaluate(F):ue[Oo(G,Ae)].evaluate(F)},mi.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G0&&F.push(this.labels[G]),F.push(this.outputs[G].serialize());return F};var To=Object.freeze({__proto__:null,number:Di,color:function(F,G,ue){return new Jr(Di(F.r,G.r,ue),Di(F.g,G.g,ue),Di(F.b,G.b,ue),Di(F.a,G.a,ue))},array:function(F,G,ue){return F.map(function(Ae,He){return Di(Ae,G[He],ue)})}}),Ia=.95047,Ds=1,fs=1.08883,zi=4/29,yl=6/29,Bs=3*yl*yl,yf=yl*yl*yl,il=Math.PI/180,nf=180/Math.PI;function nh(F){return F>yf?Math.pow(F,.3333333333333333):F/Bs+zi}function gp(F){return F>yl?F*F*F:Bs*(F-zi)}function Qs(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,.4166666666666667)-.055)}function xh(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}function Bl(F){var G=xh(F.r),ue=xh(F.g),Ae=xh(F.b),He=nh((.4124564*G+.3575761*ue+.1804375*Ae)/Ia),nt=nh((.2126729*G+.7151522*ue+.072175*Ae)/Ds);return{l:116*nt-16,a:500*(He-nt),b:200*(nt-nh((.0193339*G+.119192*ue+.9503041*Ae)/fs)),alpha:F.a}}function Tc(F){var G=(F.l+16)/116,ue=isNaN(F.a)?G:G+F.a/500,Ae=isNaN(F.b)?G:G-F.b/200;return G=Ds*gp(G),ue=Ia*gp(ue),Ae=fs*gp(Ae),new Jr(Qs(3.2404542*ue-1.5371385*G-.4985314*Ae),Qs(-.969266*ue+1.8760108*G+.041556*Ae),Qs(.0556434*ue-.2040259*G+1.0572252*Ae),F.alpha)}function iu(F,G,ue){var Ae=G-F;return F+ue*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var au={forward:Bl,reverse:Tc,interpolate:function(F,G,ue){return{l:Di(F.l,G.l,ue),a:Di(F.a,G.a,ue),b:Di(F.b,G.b,ue),alpha:Di(F.alpha,G.alpha,ue)}}},zf={forward:function(F){var G=Bl(F),ue=G.l,Ae=G.a,He=G.b,nt=Math.atan2(He,Ae)*nf;return{h:nt<0?nt+360:nt,c:Math.sqrt(Ae*Ae+He*He),l:ue,alpha:F.a}},reverse:function(F){var G=F.h*il,ue=F.c;return Tc({l:F.l,a:Math.cos(G)*ue,b:Math.sin(G)*ue,alpha:F.alpha})},interpolate:function(F,G,ue){return{h:iu(F.h,G.h,ue),c:Di(F.c,G.c,ue),l:Di(F.l,G.l,ue),alpha:Di(F.alpha,G.alpha,ue)}}},_s=Object.freeze({__proto__:null,lab:au,hcl:zf}),ma=function(F,G,ue,Ae,He){this.type=F,this.operator=G,this.interpolation=ue,this.input=Ae,this.labels=[],this.outputs=[];for(var nt=0,ct=He;nt1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Pt}}if(F.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if((F.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(He=G.parse(He,2,wn)))return null;var jt=[],hn=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?hn=fr:G.expectedType&&G.expectedType.kind!=="value"&&(hn=G.expectedType);for(var mn=0;mn=Dn)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',$n);var Or=G.parse(Xn,mr,hn);if(!Or)return null;hn=hn||Or.type,jt.push([Dn,Or])}return hn.kind==="number"||hn.kind==="color"||hn.kind==="array"&&hn.itemType.kind==="number"&&typeof hn.N=="number"?new ma(hn,ue,Ae,He,jt):G.error("Type "+qn(hn)+" is not interpolatable.")},ma.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;if(Ae>=G[He-1])return ue[He-1].evaluate(F);var nt=Oo(G,Ae),ct=G[nt],Pt=G[nt+1],jt=ma.interpolationFactor(this.interpolation,Ae,ct,Pt),hn=ue[nt].evaluate(F),mn=ue[nt+1].evaluate(F);return this.operator==="interpolate"?To[this.type.kind.toLowerCase()](hn,mn,jt):this.operator==="interpolate-hcl"?zf.reverse(zf.interpolate(zf.forward(hn),zf.forward(mn),jt)):au.reverse(au.interpolate(au.forward(hn),au.forward(mn),jt))},ma.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G=ue.length)throw new ar("Array index out of bounds: "+G+" > "+(ue.length-1)+".");if(G!==Math.floor(G))throw new ar("Array index must be an integer, but found "+G+" instead.");return ue[G]},Al.prototype.eachChild=function(F){F(this.index),F(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Wl=function(F,G){this.type=Kn,this.needle=F,this.haystack=G};Wl.parse=function(F,G){if(F.length!==3)return G.error("Expected 2 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);return ue&&Ae?lr(ue.type,[Kn,An,wn,_n,Zn])?new Wl(ue,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead"):null},Wl.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!ue)return!1;if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");return ue.indexOf(G)>=0},Wl.prototype.eachChild=function(F){F(this.needle),F(this.haystack)},Wl.prototype.outputDefined=function(){return!0},Wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ml=function(F,G,ue){this.type=wn,this.needle=F,this.haystack=G,this.fromIndex=ue};Ml.parse=function(F,G){if(F.length<=2||F.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);if(!ue||!Ae)return null;if(!lr(ue.type,[Kn,An,wn,_n,Zn]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Ml(ue,Ae,He):null}return new Ml(ue,Ae)},Ml.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(F);return ue.indexOf(G,Ae)}return ue.indexOf(G)},Ml.prototype.eachChild=function(F){F(this.needle),F(this.haystack),this.fromIndex&&F(this.fromIndex)},Ml.prototype.outputDefined=function(){return!1},Ml.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var F=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),F]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Jf=function(F,G,ue,Ae,He,nt){this.inputType=F,this.type=G,this.input=ue,this.cases=Ae,this.outputs=He,this.otherwise=nt};Jf.parse=function(F,G){if(F.length<5)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if(F.length%2!=1)return G.error("Expected an even number of arguments.");var ue,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var He={},nt=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return hn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Xn=="number"&&Math.floor(Xn)!==Xn)return hn.error("Numeric branch labels must be integer values.");if(ue){if(hn.checkSubtype(ue,Mo(Xn)))return null}else ue=Mo(Xn);if(He[String(Xn)]!==void 0)return hn.error("Branch labels must be unique.");He[String(Xn)]=nt.length}var $n=G.parse(jt,ct,Ae);if(!$n)return null;Ae=Ae||$n.type,nt.push($n)}var mr=G.parse(F[1],1,Zn);if(!mr)return null;var Or=G.parse(F[F.length-1],F.length-1,Ae);return Or?mr.type.kind!=="value"&&G.concat(1).checkSubtype(ue,mr.type)?null:new Jf(ue,Ae,mr,He,nt,Or):null},Jf.prototype.evaluate=function(F){var G=this.input.evaluate(F);return(Mo(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(F)},Jf.prototype.eachChild=function(F){F(this.input),this.outputs.forEach(F),F(this.otherwise)},Jf.prototype.outputDefined=function(){return this.outputs.every(function(F){return F.outputDefined()})&&this.otherwise.outputDefined()},Jf.prototype.serialize=function(){for(var F=this,G=["match",this.input.serialize()],ue=[],Ae={},He=0,nt=Object.keys(this.cases).sort();He=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,wn);if(!ue||!Ae)return null;if(!lr(ue.type,[vr(Zn),An,Zn]))return G.error("Expected first argument to be of type array or string, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Jl(ue.type,ue,Ae,He):null}return new Jl(ue.type,ue,Ae)},Jl.prototype.evaluate=function(F){var G=this.input.evaluate(F),ue=this.beginIndex.evaluate(F);if(!zr(G,["string","array"]))throw new ar("Expected first argument to be of type array or string, but found "+qn(Mo(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(F);return G.slice(ue,Ae)}return G.slice(ue)},Jl.prototype.eachChild=function(F){F(this.input),F(this.beginIndex),this.endIndex&&F(this.endIndex)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var F=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),F]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var gu=Tu("==",function(F,G,ue){return G===ue},ll),ec=Tu("!=",function(F,G,ue){return G!==ue},function(F,G,ue,Ae){return!ll(0,G,ue,Ae)}),Dc=Tu("<",function(F,G,ue){return G",function(F,G,ue){return G>ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>0}),Lp=Tu("<=",function(F,G,ue){return G<=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)<=0}),rh=Tu(">=",function(F,G,ue){return G>=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>=0}),rf=function(F,G,ue,Ae,He){this.type=An,this.number=F,this.locale=G,this.currency=ue,this.minFractionDigits=Ae,this.maxFractionDigits=He};rf.parse=function(F,G){if(F.length!==3)return G.error("Expected two arguments.");var ue=G.parse(F[1],1,wn);if(!ue)return null;var Ae=F[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var He=null;if(Ae.locale&&!(He=G.parse(Ae.locale,1,An)))return null;var nt=null;if(Ae.currency&&!(nt=G.parse(Ae.currency,1,An)))return null;var ct=null;if(Ae["min-fraction-digits"]&&!(ct=G.parse(Ae["min-fraction-digits"],1,wn)))return null;var Pt=null;return Ae["max-fraction-digits"]&&!(Pt=G.parse(Ae["max-fraction-digits"],1,wn))?null:new rf(ue,He,nt,ct,Pt)},rf.prototype.evaluate=function(F){return new Intl.NumberFormat(this.locale?this.locale.evaluate(F):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(F):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(F):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(F):void 0}).format(this.number.evaluate(F))},rf.prototype.eachChild=function(F){F(this.number),this.locale&&F(this.locale),this.currency&&F(this.currency),this.minFractionDigits&&F(this.minFractionDigits),this.maxFractionDigits&&F(this.maxFractionDigits)},rf.prototype.outputDefined=function(){return!1},rf.prototype.serialize=function(){var F={};return this.locale&&(F.locale=this.locale.serialize()),this.currency&&(F.currency=this.currency.serialize()),this.minFractionDigits&&(F["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(F["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),F]};var of=function(F){this.type=wn,this.input=F};of.parse=function(F,G){if(F.length!==2)return G.error("Expected 1 argument, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+qn(ue.type)+" instead."):new of(ue):null},of.prototype.evaluate=function(F){var G=this.input.evaluate(F);if(typeof G=="string"||Array.isArray(G))return G.length;throw new ar("Expected value to be of type string or array, but found "+qn(Mo(G))+" instead.")},of.prototype.eachChild=function(F){F(this.input)},of.prototype.outputDefined=function(){return!1},of.prototype.serialize=function(){var F=["length"];return this.eachChild(function(G){F.push(G.serialize())}),F};var bf={"==":gu,"!=":ec,">":tc,"<":Dc,">=":rh,"<=":Lp,array:Sr,at:Al,boolean:Sr,case:Nf,coalesce:Uc,collator:On,format:Zr,image:go,in:Wl,"index-of":Ml,interpolate:ma,"interpolate-hcl":ma,"interpolate-lab":ma,length:of,let:Kf,literal:Hn,match:Jf,number:Sr,"number-format":rf,object:Sr,slice:Jl,step:mi,string:Sr,"to-boolean":io,"to-color":io,"to-number":io,"to-string":io,var:Fn,within:Eo};function vu(F,G){var ue=G[0],Ae=G[1],He=G[2],nt=G[3];ue=ue.evaluate(F),Ae=Ae.evaluate(F),He=He.evaluate(F);var ct=nt?nt.evaluate(F):1,Pt=_o(ue,Ae,He,ct);if(Pt)throw new ar(Pt);return new Jr(ue/255*ct,Ae/255*ct,He/255*ct,ct)}function $d(F,G){return F in G}function bl(F,G){var ue=G[F];return ue===void 0?null:ue}function Zu(F){return{type:F}}function Kh(F){return{result:"success",value:F}}function Cu(F){return{result:"error",value:F}}function ed(F){return F["property-type"]==="data-driven"||F["property-type"]==="cross-faded-data-driven"}function Bu(F){return!!F.expression&&F.expression.parameters.indexOf("zoom")>-1}function vd(F){return!!F.expression&&F.expression.interpolated}function cs(F){return F instanceof Number?"number":F instanceof String?"string":F instanceof Boolean?"boolean":Array.isArray(F)?"array":F===null?"null":typeof F}function oh(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)}function Jh(F){return F}function _h(F,G){var ue,Ae,He,nt=G.type==="color",ct=F.stops&&typeof F.stops[0][0]=="object",Pt=ct||F.property!==void 0,jt=ct||!Pt,hn=F.type||(vd(G)?"exponential":"interval");if(nt&&((F=Jt({},F)).stops&&(F.stops=F.stops.map(function(bi){return[bi[0],Jr.parse(bi[1])]})),F.default?F.default=Jr.parse(F.default):F.default=Jr.parse(G.default)),F.colorSpace&&F.colorSpace!=="rgb"&&!_s[F.colorSpace])throw new Error("Unknown color space: "+F.colorSpace);if(hn==="exponential")ue=Ff;else if(hn==="interval")ue=_r;else if(hn==="categorical"){ue=ep,Ae=Object.create(null);for(var mn=0,Dn=F.stops;mn=F.stops[Ae-1][0])return F.stops[Ae-1][1];var He=Oo(F.stops.map(function(nt){return nt[0]}),ue);return F.stops[He][1]}function Ff(F,G,ue){var Ae=F.base!==void 0?F.base:1;if(cs(ue)!=="number")return xf(F.default,G.default);var He=F.stops.length;if(He===1||ue<=F.stops[0][0])return F.stops[0][1];if(ue>=F.stops[He-1][0])return F.stops[He-1][1];var nt=Oo(F.stops.map(function(Dn){return Dn[0]}),ue),ct=function(Dn,Xn,$n,mr){var Or=mr-$n,Kr=Dn-$n;return Or===0?0:Xn===1?Kr/Or:(Math.pow(Xn,Kr)-1)/(Math.pow(Xn,Or)-1)}(ue,Ae,F.stops[nt][0],F.stops[nt+1][0]),Pt=F.stops[nt][1],jt=F.stops[nt+1][1],hn=To[G.type]||Jh;if(F.colorSpace&&F.colorSpace!=="rgb"){var mn=_s[F.colorSpace];hn=function(Dn,Xn){return mn.reverse(mn.interpolate(mn.forward(Dn),mn.forward(Xn),ct))}}return typeof Pt.evaluate=="function"?{evaluate:function(){for(var Dn=[],Xn=arguments.length;Xn--;)Dn[Xn]=arguments[Xn];var $n=Pt.evaluate.apply(void 0,Dn),mr=jt.evaluate.apply(void 0,Dn);if($n!==void 0&&mr!==void 0)return hn($n,mr,ct)}}:hn(Pt,jt,ct)}function yd(F,G,ue){return G.type==="color"?ue=Jr.parse(ue):G.type==="formatted"?ue=co.fromString(ue.toString()):G.type==="resolvedImage"?ue=Fo.fromString(ue.toString()):cs(ue)===G.type||G.type==="enum"&&G.values[ue]||(ue=void 0),xf(ue,F.default,G.default)}Rr.register(bf,{error:[{kind:"error"},[An],function(F,G){var ue=G[0];throw new ar(ue.evaluate(F))}],typeof:[An,[Zn],function(F,G){return qn(Mo(G[0].evaluate(F)))}],"to-rgba":[vr(wn,4),[fr],function(F,G){return G[0].evaluate(F).toArray()}],rgb:[fr,[wn,wn,wn],vu],rgba:[fr,[wn,wn,wn,wn],vu],has:{type:Kn,overloads:[[[An],function(F,G){return $d(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return $d(ue.evaluate(F),Ae.evaluate(F))}]]},get:{type:Zn,overloads:[[[An],function(F,G){return bl(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return bl(ue.evaluate(F),Ae.evaluate(F))}]]},"feature-state":[Zn,[An],function(F,G){return bl(G[0].evaluate(F),F.featureState||{})}],properties:[Un,[],function(F){return F.properties()}],"geometry-type":[An,[],function(F){return F.geometryType()}],id:[Zn,[],function(F){return F.id()}],zoom:[wn,[],function(F){return F.globals.zoom}],"heatmap-density":[wn,[],function(F){return F.globals.heatmapDensity||0}],"line-progress":[wn,[],function(F){return F.globals.lineProgress||0}],accumulated:[Zn,[],function(F){return F.globals.accumulated===void 0?null:F.globals.accumulated}],"+":[wn,Zu(wn),function(F,G){for(var ue=0,Ae=0,He=G;Ae":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>nt}],"filter-id->":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>He}],"filter-<=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He<=nt}],"filter-id-<=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae<=He}],"filter->=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>=nt}],"filter-id->=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>=He}],"filter-has":[Kn,[Zn],function(F,G){return G[0].value in F.properties()}],"filter-has-id":[Kn,[],function(F){return F.id()!==null&&F.id()!==void 0}],"filter-type-in":[Kn,[vr(An)],function(F,G){return G[0].value.indexOf(F.geometryType())>=0}],"filter-id-in":[Kn,[vr(Zn)],function(F,G){return G[0].value.indexOf(F.id())>=0}],"filter-in-small":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0];return G[1].value.indexOf(F.properties()[ue.value])>=0}],"filter-in-large":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0],Ae=G[1];return function(He,nt,ct,Pt){for(;ct<=Pt;){var jt=ct+Pt>>1;if(nt[jt]===He)return!0;nt[jt]>He?Pt=jt-1:ct=jt+1}return!1}(F.properties()[ue.value],Ae.value,0,Ae.value.length-1)}],all:{type:Kn,overloads:[[[Kn,Kn],function(F,G){var ue=G[0],Ae=G[1];return ue.evaluate(F)&&Ae.evaluate(F)}],[Zu(Kn),function(F,G){for(var ue=0,Ae=G;ue0&&typeof F[0]=="string"&&F[0]in bf}function zu(F,G){var ue=new dr(bf,[],G?function(He){var nt={color:fr,string:An,number:wn,enum:An,boolean:Kn,formatted:Br,resolvedImage:$r};return He.type==="array"?vr(nt[He.value]||Zn,He.length):nt[He.type]}(G):void 0),Ae=ue.parse(F,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Kh(new bd(Ae,G)):Cu(ue.errors)}bd.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._evaluator.globals=F,this._evaluator.feature=G,this._evaluator.featureState=ue,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt,this.expression.evaluate(this._evaluator)},bd.prototype.evaluate=function(F,G,ue,Ae,He,nt){this._evaluator.globals=F,this._evaluator.feature=G||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!=ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new ar("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};var va=function(F,G){this.kind=F,this._styleExpression=G,this.isStateDependent=F!=="constant"&&!Qt(G.expression)};va.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},va.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)};var El=function(F,G,ue,Ae){this.kind=F,this.zoomStops=ue,this._styleExpression=G,this.isStateDependent=F!=="camera"&&!Qt(G.expression),this.interpolationType=Ae};function _f(F,G){if((F=zu(F,G)).result==="error")return F;var ue=F.value.expression,Ae=zo(ue);if(!Ae&&!ed(G))return Cu([new sn("","data expressions not supported")]);var He=Mn(ue,["zoom"]);if(!He&&!Bu(G))return Cu([new sn("","zoom expressions not supported")]);var nt=ih(ue);if(!nt&&!He)return Cu([new sn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(nt instanceof sn)return Cu([nt]);if(nt instanceof ma&&!vd(G))return Cu([new sn("",'"interpolate" expressions cannot be used with this property')]);if(!nt)return Kh(new va(Ae?"constant":"source",F.value));var ct=nt instanceof ma?nt.interpolation:void 0;return Kh(new El(Ae?"camera":"composite",F.value,nt.labels,ct))}El.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},El.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)},El.prototype.interpolationFactor=function(F,G,ue){return this.interpolationType?ma.interpolationFactor(this.interpolationType,F,G,ue):0};var $f=function(F,G){this._parameters=F,this._specification=G,Jt(this,_h(this._parameters,this._specification))};function ih(F){var G=null;if(F instanceof Kf)G=ih(F.result);else if(F instanceof Uc)for(var ue=0,Ae=F.args;ueAe.maximum?[new qt(G,ue,ue+" is greater than the maximum value "+Ae.maximum)]:[]}function af(F){var G,ue,Ae,He=F.valueSpec,nt=Zt(F.value.type),ct={},Pt=nt!=="categorical"&&F.value.property===void 0,jt=!Pt,hn=cs(F.value.stops)==="array"&&cs(F.value.stops[0])==="array"&&cs(F.value.stops[0][0])==="object",mn=yu({key:F.key,value:F.value,valueSpec:F.styleSpec.function,style:F.style,styleSpec:F.styleSpec,objectElementValidators:{stops:function($n){if(nt==="identity")return[new qt($n.key,$n.value,'identity function may not have a "stops" property')];var mr=[],Or=$n.value;return mr=mr.concat(jc({key:$n.key,value:Or,valueSpec:$n.valueSpec,style:$n.style,styleSpec:$n.styleSpec,arrayElementValidator:Dn})),cs(Or)==="array"&&Or.length===0&&mr.push(new qt($n.key,Or,"array must have at least one stop")),mr},default:function($n){return bc({key:$n.key,value:$n.value,valueSpec:He,style:$n.style,styleSpec:$n.styleSpec})}}});return nt==="identity"&&Pt&&mn.push(new qt(F.key,F.value,'missing required property "property"')),nt==="identity"||F.value.stops||mn.push(new qt(F.key,F.value,'missing required property "stops"')),nt==="exponential"&&F.valueSpec.expression&&!vd(F.valueSpec)&&mn.push(new qt(F.key,F.value,"exponential functions not supported")),F.styleSpec.$version>=8&&(jt&&!ed(F.valueSpec)?mn.push(new qt(F.key,F.value,"property functions not supported")):Pt&&!Bu(F.valueSpec)&&mn.push(new qt(F.key,F.value,"zoom functions not supported"))),nt!=="categorical"&&!hn||F.value.property!==void 0||mn.push(new qt(F.key,F.value,'"property" property is required')),mn;function Dn($n){var mr=[],Or=$n.value,Kr=$n.key;if(cs(Or)!=="array")return[new qt(Kr,Or,"array expected, "+cs(Or)+" found")];if(Or.length!==2)return[new qt(Kr,Or,"array length 2 expected, length "+Or.length+" found")];if(hn){if(cs(Or[0])!=="object")return[new qt(Kr,Or,"object expected, "+cs(Or[0])+" found")];if(Or[0].zoom===void 0)return[new qt(Kr,Or,"object stop key must have zoom")];if(Or[0].value===void 0)return[new qt(Kr,Or,"object stop key must have value")];if(Ae&&Ae>Zt(Or[0].zoom))return[new qt(Kr,Or[0].zoom,"stop zoom values must appear in ascending order")];Zt(Or[0].zoom)!==Ae&&(Ae=Zt(Or[0].zoom),ue=void 0,ct={}),mr=mr.concat(yu({key:Kr+"[0]",value:Or[0],valueSpec:{zoom:{}},style:$n.style,styleSpec:$n.styleSpec,objectElementValidators:{zoom:Nh,value:Xn}}))}else mr=mr.concat(Xn({key:Kr+"[0]",value:Or[0],valueSpec:{},style:$n.style,styleSpec:$n.styleSpec},Or));return wh(Nt(Or[1]))?mr.concat([new qt(Kr+"[1]",Or[1],"expressions are not allowed in function stops.")]):mr.concat(bc({key:Kr+"[1]",value:Or[1],valueSpec:He,style:$n.style,styleSpec:$n.styleSpec}))}function Xn($n,mr){var Or=cs($n.value),Kr=Zt($n.value),Hr=$n.value!==null?$n.value:mr;if(G){if(Or!==G)return[new qt($n.key,Hr,Or+" stop domain type must match previous stop domain type "+G)]}else G=Or;if(Or!=="number"&&Or!=="string"&&Or!=="boolean")return[new qt($n.key,Hr,"stop domain value must be a number, string, or boolean")];if(Or!=="number"&&nt!=="categorical"){var fo="number expected, "+Or+" found";return ed(He)&&nt===void 0&&(fo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new qt($n.key,Hr,fo)]}return nt!=="categorical"||Or!=="number"||isFinite(Kr)&&Math.floor(Kr)===Kr?nt!=="categorical"&&Or==="number"&&ue!==void 0&&Kr=2&&F[1]!=="$id"&&F[1]!=="$type";case"in":return F.length>=3&&(typeof F[1]!="string"||Array.isArray(F[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return F.length!==3||Array.isArray(F[1])||Array.isArray(F[2]);case"any":case"all":for(var G=0,ue=F.slice(1);GG?1:0}function gs(F){if(!Array.isArray(F))return!1;if(F[0]==="within")return!0;for(var G=1;G"||ue==="<="||ue===">="?Cc(F[1],F[2],ue):ue==="any"?(G=F.slice(1),["any"].concat(G.map(yc))):ue==="all"?["all"].concat(F.slice(1).map(yc)):ue==="none"?["all"].concat(F.slice(1).map(yc).map(Ks)):ue==="in"?Nu(F[1],F.slice(2)):ue==="!in"?Ks(Nu(F[1],F.slice(2))):ue==="has"?Gs(F[1]):ue==="!has"?Ks(Gs(F[1])):ue!=="within"||F}function Cc(F,G,ue){switch(F){case"$type":return["filter-type-"+ue,G];case"$id":return["filter-id-"+ue,G];default:return["filter-"+ue,F,G]}}function Nu(F,G){if(G.length===0)return!1;switch(F){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(ue){return typeof ue!=typeof G[0]})?["filter-in-large",F,["literal",G.sort(vc)]]:["filter-in-small",F,["literal",G]]}}function Gs(F){switch(F){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",F]}}function Ks(F){return["!",F]}function Ac(F){return Bc(Nt(F.value))?td(Jt({},F,{expressionContext:"filter",valueSpec:{value:"boolean"}})):_d(F)}function _d(F){var G=F.value,ue=F.key;if(cs(G)!=="array")return[new qt(ue,G,"array expected, "+cs(G)+" found")];var Ae,He=F.styleSpec,nt=[];if(G.length<1)return[new qt(ue,G,"filter array must have at least 1 element")];switch(nt=nt.concat(sf({key:ue+"[0]",value:G[0],valueSpec:He.filter_operator,style:F.style,styleSpec:F.styleSpec})),Zt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Zt(G[1])==="$type"&&nt.push(new qt(ue,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&nt.push(new qt(ue,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=cs(G[1]))!=="string"&&nt.push(new qt(ue+"[1]",G[1],"string expected, "+Ae+" found"));for(var ct=2;ct=mn[$n+0]&&Ae>=mn[$n+1])?(ct[Xn]=!0,nt.push(hn[Xn])):ct[Xn]=!1}}},Of.prototype._forEachCell=function(F,G,ue,Ae,He,nt,ct,Pt){for(var jt=this._convertToCellCoord(F),hn=this._convertToCellCoord(G),mn=this._convertToCellCoord(ue),Dn=this._convertToCellCoord(Ae),Xn=jt;Xn<=mn;Xn++)for(var $n=hn;$n<=Dn;$n++){var mr=this.d*$n+Xn;if((!Pt||Pt(this._convertFromCellCoord(Xn),this._convertFromCellCoord($n),this._convertFromCellCoord(Xn+1),this._convertFromCellCoord($n+1)))&&He.call(this,F,G,ue,Ae,mr,nt,ct,Pt))return}},Of.prototype._convertFromCellCoord=function(F){return(F-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(F){return Math.max(0,Math.min(this.d-1,Math.floor(F*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var F=this.cells,G=cf+this.cells.length+1+1,ue=0,Ae=0;Ae=0)){var Dn=F[mn];hn[mn]=Mu[jt].shallow.indexOf(mn)>=0?Dn:xc(Dn,G)}F instanceof Error&&(hn.message=F.message)}if(hn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(hn.$name=jt),hn}throw new Error("can't serialize object of type "+typeof F)}function Kc(F){if(F==null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||F instanceof Boolean||F instanceof Number||F instanceof String||F instanceof Date||F instanceof RegExp||qu(F)||zl(F)||ArrayBuffer.isView(F)||F instanceof aa)return F;if(Array.isArray(F))return F.map(Kc);if(typeof F=="object"){var G=F.$name||"Object",ue=Mu[G].klass;if(!ue)throw new Error("can't deserialize unregistered class "+G);if(ue.deserialize)return ue.deserialize(F);for(var Ae=Object.create(ue.prototype),He=0,nt=Object.keys(F);He=0?Pt:Kc(Pt)}}return Ae}throw new Error("can't deserialize object of type "+typeof F)}var jd=function(){this.first=!0};jd.prototype.update=function(F,G){var ue=Math.floor(F);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=F,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&F<=255},Arabic:function(F){return F>=1536&&F<=1791},"Arabic Supplement":function(F){return F>=1872&&F<=1919},"Arabic Extended-A":function(F){return F>=2208&&F<=2303},"Hangul Jamo":function(F){return F>=4352&&F<=4607},"Unified Canadian Aboriginal Syllabics":function(F){return F>=5120&&F<=5759},Khmer:function(F){return F>=6016&&F<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(F){return F>=6320&&F<=6399},"General Punctuation":function(F){return F>=8192&&F<=8303},"Letterlike Symbols":function(F){return F>=8448&&F<=8527},"Number Forms":function(F){return F>=8528&&F<=8591},"Miscellaneous Technical":function(F){return F>=8960&&F<=9215},"Control Pictures":function(F){return F>=9216&&F<=9279},"Optical Character Recognition":function(F){return F>=9280&&F<=9311},"Enclosed Alphanumerics":function(F){return F>=9312&&F<=9471},"Geometric Shapes":function(F){return F>=9632&&F<=9727},"Miscellaneous Symbols":function(F){return F>=9728&&F<=9983},"Miscellaneous Symbols and Arrows":function(F){return F>=11008&&F<=11263},"CJK Radicals Supplement":function(F){return F>=11904&&F<=12031},"Kangxi Radicals":function(F){return F>=12032&&F<=12255},"Ideographic Description Characters":function(F){return F>=12272&&F<=12287},"CJK Symbols and Punctuation":function(F){return F>=12288&&F<=12351},Hiragana:function(F){return F>=12352&&F<=12447},Katakana:function(F){return F>=12448&&F<=12543},Bopomofo:function(F){return F>=12544&&F<=12591},"Hangul Compatibility Jamo":function(F){return F>=12592&&F<=12687},Kanbun:function(F){return F>=12688&&F<=12703},"Bopomofo Extended":function(F){return F>=12704&&F<=12735},"CJK Strokes":function(F){return F>=12736&&F<=12783},"Katakana Phonetic Extensions":function(F){return F>=12784&&F<=12799},"Enclosed CJK Letters and Months":function(F){return F>=12800&&F<=13055},"CJK Compatibility":function(F){return F>=13056&&F<=13311},"CJK Unified Ideographs Extension A":function(F){return F>=13312&&F<=19903},"Yijing Hexagram Symbols":function(F){return F>=19904&&F<=19967},"CJK Unified Ideographs":function(F){return F>=19968&&F<=40959},"Yi Syllables":function(F){return F>=40960&&F<=42127},"Yi Radicals":function(F){return F>=42128&&F<=42191},"Hangul Jamo Extended-A":function(F){return F>=43360&&F<=43391},"Hangul Syllables":function(F){return F>=44032&&F<=55215},"Hangul Jamo Extended-B":function(F){return F>=55216&&F<=55295},"Private Use Area":function(F){return F>=57344&&F<=63743},"CJK Compatibility Ideographs":function(F){return F>=63744&&F<=64255},"Arabic Presentation Forms-A":function(F){return F>=64336&&F<=65023},"Vertical Forms":function(F){return F>=65040&&F<=65055},"CJK Compatibility Forms":function(F){return F>=65072&&F<=65103},"Small Form Variants":function(F){return F>=65104&&F<=65135},"Arabic Presentation Forms-B":function(F){return F>=65136&&F<=65279},"Halfwidth and Fullwidth Forms":function(F){return F>=65280&&F<=65519}};function nd(F){for(var G=0,ue=F;G=65097&&F<=65103)||ii["CJK Compatibility Ideographs"](F)||ii["CJK Compatibility"](F)||ii["CJK Radicals Supplement"](F)||ii["CJK Strokes"](F)||!(!ii["CJK Symbols and Punctuation"](F)||F>=12296&&F<=12305||F>=12308&&F<=12319||F===12336)||ii["CJK Unified Ideographs Extension A"](F)||ii["CJK Unified Ideographs"](F)||ii["Enclosed CJK Letters and Months"](F)||ii["Hangul Compatibility Jamo"](F)||ii["Hangul Jamo Extended-A"](F)||ii["Hangul Jamo Extended-B"](F)||ii["Hangul Jamo"](F)||ii["Hangul Syllables"](F)||ii.Hiragana(F)||ii["Ideographic Description Characters"](F)||ii.Kanbun(F)||ii["Kangxi Radicals"](F)||ii["Katakana Phonetic Extensions"](F)||ii.Katakana(F)&&F!==12540||!(!ii["Halfwidth and Fullwidth Forms"](F)||F===65288||F===65289||F===65293||F>=65306&&F<=65310||F===65339||F===65341||F===65343||F>=65371&&F<=65503||F===65507||F>=65512&&F<=65519)||!(!ii["Small Form Variants"](F)||F>=65112&&F<=65118||F>=65123&&F<=65126)||ii["Unified Canadian Aboriginal Syllabics"](F)||ii["Unified Canadian Aboriginal Syllabics Extended"](F)||ii["Vertical Forms"](F)||ii["Yijing Hexagram Symbols"](F)||ii["Yi Syllables"](F)||ii["Yi Radicals"](F))))}function Yl(F){return!(al(F)||function(G){return!!(ii["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||ii["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||ii["Letterlike Symbols"](G)||ii["Number Forms"](G)||ii["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||ii["Control Pictures"](G)&&G!==9251||ii["Optical Character Recognition"](G)||ii["Enclosed Alphanumerics"](G)||ii["Geometric Shapes"](G)||ii["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||ii["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||ii["CJK Symbols and Punctuation"](G)||ii.Katakana(G)||ii["Private Use Area"](G)||ii["CJK Compatibility Forms"](G)||ii["Small Form Variants"](G)||ii["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(F))}function uf(F){return ii.Arabic(F)||ii["Arabic Supplement"](F)||ii["Arabic Extended-A"](F)||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function hs(F){return F>=1424&&F<=2303||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function Mc(F,G){return!(!G&&hs(F)||F>=2304&&F<=3583||F>=3840&&F<=4255||ii.Khmer(F))}function Eu(F){for(var G=0,ue=F;G-1&&(Ls=su),Ca&&Ca(F)};function wt(){Kt.fire(new it("pluginStateChange",{pluginStatus:Ls,pluginURL:Ec}))}var Kt=new Bt,En=function(){return Ls},pr=function(){if(Ls!==xu||!Ec)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ls=ws,wt(),Ec&&Pn({url:Ec},function(F){F?_u(F):(Ls=Fu,wt())})},wr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ls===Fu||wr.applyArabicShaping!=null},isLoading:function(){return Ls===ws},setState:function(F){Ls=F.pluginStatus,Ec=F.pluginURL},isParsed:function(){return wr.applyArabicShaping!=null&&wr.processBidirectionalText!=null&&wr.processStyledBidirectionalText!=null},getPluginURL:function(){return Ec}},uo=function(F,G){this.zoom=F,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jd,this.transition={})};uo.prototype.isSupportedScript=function(F){return function(G,ue){for(var Ae=0,He=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*G}};var Bi=function(F,G){this.property=F,this.value=G,this.expression=function(ue,Ae){if(oh(ue))return new $f(ue,Ae);if(wh(ue)){var He=_f(ue,Ae);if(He.result==="error")throw new Error(He.value.map(function(ct){return ct.key+": "+ct.message}).join(", "));return He.value}var nt=ue;return typeof ue=="string"&&Ae.type==="color"&&(nt=Jr.parse(ue)),{kind:"constant",evaluate:function(){return nt}}}(G===void 0?F.specification.default:G,F.specification)};Bi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Bi.prototype.possiblyEvaluate=function(F,G,ue){return this.property.possiblyEvaluate(this,F,G,ue)};var ya=function(F){this.property=F,this.value=new Bi(F,void 0)};ya.prototype.transitioned=function(F,G){return new Qi(this.property,this.value,G,x({},F.transition,this.transition),F.now)},ya.prototype.untransitioned=function(){return new Qi(this.property,this.value,null,{},0)};var Ni=function(F){this._properties=F,this._values=Object.create(F.defaultTransitionablePropertyValues)};Ni.prototype.getValue=function(F){return I(this._values[F].value.value)},Ni.prototype.setValue=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].value=new Bi(this._values[F].property,G===null?void 0:I(G))},Ni.prototype.getTransition=function(F){return I(this._values[F].transition)},Ni.prototype.setTransition=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].transition=I(G)||void 0},Ni.prototype.serialize=function(){for(var F={},G=0,ue=Object.keys(this._values);Gthis.end)return this.prior=null,He;if(this.value.isDataDriven())return this.prior=null,He;if(Ae=1)return 1;var jt=Pt*Pt,hn=jt*Pt;return 4*(Pt<.5?hn:3*(Pt-jt)+hn-.75)}(ct))}return He};var Ws=function(F){this._properties=F,this._values=Object.create(F.defaultTransitioningPropertyValues)};Ws.prototype.possiblyEvaluate=function(F,G,ue){for(var Ae=new Wu(this._properties),He=0,nt=Object.keys(this._values);Hent.zoomHistory.lastIntegerZoom?{from:ue,to:Ae}:{from:He,to:Ae}},G.prototype.interpolate=function(ue){return ue},G}(Aa),Vf=function(F){this.specification=F};Vf.prototype.possiblyEvaluate=function(F,G,ue,Ae){if(F.value!==void 0){if(F.expression.kind==="constant"){var He=F.expression.evaluate(G,null,{},ue,Ae);return this._calculate(He,He,He,G)}return this._calculate(F.expression.evaluate(new uo(Math.floor(G.zoom-1),G)),F.expression.evaluate(new uo(Math.floor(G.zoom),G)),F.expression.evaluate(new uo(Math.floor(G.zoom+1),G)),G)}},Vf.prototype._calculate=function(F,G,ue,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:F,to:G}:{from:ue,to:G}},Vf.prototype.interpolate=function(F){return F};var sh=function(F){this.specification=F};sh.prototype.possiblyEvaluate=function(F,G,ue,Ae){return!!F.expression.evaluate(G,null,{},ue,Ae)},sh.prototype.interpolate=function(){return!1};var _c=function(F){for(var G in this.properties=F,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],F){var ue=F[G];ue.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Bi(ue,void 0),He=this.defaultTransitionablePropertyValues[G]=new ya(ue);this.defaultTransitioningPropertyValues[G]=He.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};Ri("DataDrivenProperty",Aa),Ri("DataConstantProperty",Ki),Ri("CrossFadedDataDrivenProperty",Pl),Ri("CrossFadedProperty",Vf),Ri("ColorRampProperty",sh);var Xl="-transition",pl=function(F){function G(ue,Ae){if(F.call(this),this.id=ue.id,this.type=ue.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},ue.type!=="custom"&&(this.metadata=ue.metadata,this.minzoom=ue.minzoom,this.maxzoom=ue.maxzoom,ue.type!=="background"&&(this.source=ue.source,this.sourceLayer=ue["source-layer"],this.filter=ue.filter),Ae.layout&&(this._unevaluatedLayout=new nl(Ae.layout)),Ae.paint)){for(var He in this._transitionablePaint=new Ni(Ae.paint),ue.paint)this.setPaintProperty(He,ue.paint[He],{validate:!1});for(var nt in ue.layout)this.setLayoutProperty(nt,ue.layout[nt],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wu(Ae.paint)}}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},G.prototype.setLayoutProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".layout."+ue;if(this._validate(ds,nt,ue,Ae,He))return}ue!=="visibility"?this._unevaluatedLayout.setValue(ue,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(ue){return L(ue,Xl)?this._transitionablePaint.getTransition(ue.slice(0,-11)):this._transitionablePaint.getValue(ue)},G.prototype.setPaintProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".paint."+ue;if(this._validate(Ol,nt,ue,Ae,He))return!1}if(L(ue,Xl))return this._transitionablePaint.setTransition(ue.slice(0,-11),Ae||void 0),!1;var ct=this._transitionablePaint._values[ue],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",jt=ct.value.isDataDriven(),hn=ct.value;this._transitionablePaint.setValue(ue,Ae),this._handleSpecialPaintPropertyUpdate(ue);var mn=this._transitionablePaint._values[ue].value;return mn.isDataDriven()||jt||Pt||this._handleOverridablePaintPropertyUpdate(ue,hn,mn)},G.prototype._handleSpecialPaintPropertyUpdate=function(ue){},G.prototype._handleOverridablePaintPropertyUpdate=function(ue,Ae,He){return!1},G.prototype.isHidden=function(ue){return!!(this.minzoom&&ue=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(ue,Ae){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,Ae)},G.prototype.serialize=function(){var ue={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),k(ue,function(Ae,He){return!(Ae===void 0||He==="layout"&&!Object.keys(Ae).length||He==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(ue,Ae,He,nt,ct){return ct===void 0&&(ct={}),(!ct||ct.validate!==!1)&&zc(this,ue.call(bu,{key:Ae,layerType:this.type,objectKey:He,value:nt,styleSpec:_t,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var ue in this.paint._values){var Ae=this.paint.get(ue);if(Ae instanceof Fs&&ed(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Bt),Pc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Uf=function(F,G){this._structArray=F,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Os=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Si(F,G){G===void 0&&(G=1);var ue=0,Ae=0;return{members:F.map(function(He){var nt,ct=(nt=He.type,Pc[nt].BYTES_PER_ELEMENT),Pt=ue=lc(ue,Math.max(G,ct)),jt=He.components||1;return Ae=Math.max(Ae,ct),ue+=ct*jt,{name:He.name,type:He.type,components:jt,offset:Pt}}),size:lc(ue,Math.max(Ae,G)),alignment:G}}function lc(F,G){return Math.ceil(F/G)*G}Os.serialize=function(F,G){return F._trim(),G&&(F.isTransferred=!0,G.push(F.arrayBuffer)),{length:F.length,arrayBuffer:F.arrayBuffer}},Os.deserialize=function(F){var G=Object.create(this.prototype);return G.arrayBuffer=F.arrayBuffer,G.length=F.length,G.capacity=F.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Os.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Os.prototype.clear=function(){this.length=0},Os.prototype.resize=function(F){this.reserve(F),this.length=F},Os.prototype.reserve=function(F){if(F>this.capacity){this.capacity=Math.max(F,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Os.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var rd=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.int16[nt+0]=Ae,this.int16[nt+1]=He,ue},G}(Os);rd.prototype.bytesPerElement=4,Ri("StructArrayLayout2i4",rd);var tp=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.int16[Pt+0]=Ae,this.int16[Pt+1]=He,this.int16[Pt+2]=nt,this.int16[Pt+3]=ct,ue},G}(Os);tp.prototype.bytesPerElement=8,Ri("StructArrayLayout4i8",tp);var kt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);kt.prototype.bytesPerElement=12,Ri("StructArrayLayout2i4i12",kt);var It=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=4*ue,mn=8*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.uint8[mn+4]=nt,this.uint8[mn+5]=ct,this.uint8[mn+6]=Pt,this.uint8[mn+7]=jt,ue},G}(Os);It.prototype.bytesPerElement=8,Ri("StructArrayLayout2i4ub8",It);var Ut=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.float32[nt+0]=Ae,this.float32[nt+1]=He,ue},G}(Os);Ut.prototype.bytesPerElement=8,Ri("StructArrayLayout2f8",Ut);var J=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=this.length;return this.resize(Xn+1),this.emplace(Xn,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn){var $n=10*ue;return this.uint16[$n+0]=Ae,this.uint16[$n+1]=He,this.uint16[$n+2]=nt,this.uint16[$n+3]=ct,this.uint16[$n+4]=Pt,this.uint16[$n+5]=jt,this.uint16[$n+6]=hn,this.uint16[$n+7]=mn,this.uint16[$n+8]=Dn,this.uint16[$n+9]=Xn,ue},G}(Os);J.prototype.bytesPerElement=20,Ri("StructArrayLayout10ui20",J);var le=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=12*ue;return this.int16[Or+0]=Ae,this.int16[Or+1]=He,this.int16[Or+2]=nt,this.int16[Or+3]=ct,this.uint16[Or+4]=Pt,this.uint16[Or+5]=jt,this.uint16[Or+6]=hn,this.uint16[Or+7]=mn,this.int16[Or+8]=Dn,this.int16[Or+9]=Xn,this.int16[Or+10]=$n,this.int16[Or+11]=mr,ue},G}(Os);le.prototype.bytesPerElement=24,Ri("StructArrayLayout4i4ui4i24",le);var ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.float32[ct+0]=Ae,this.float32[ct+1]=He,this.float32[ct+2]=nt,ue},G}(Os);ne.prototype.bytesPerElement=12,Ri("StructArrayLayout3f12",ne);var V=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint32[He+0]=Ae,ue},G}(Os);V.prototype.bytesPerElement=4,Ri("StructArrayLayout1ul4",V);var ie=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,ue,Ae,He,nt,ct,Pt,jt,hn,mn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=10*ue,$n=5*ue;return this.int16[Xn+0]=Ae,this.int16[Xn+1]=He,this.int16[Xn+2]=nt,this.int16[Xn+3]=ct,this.int16[Xn+4]=Pt,this.int16[Xn+5]=jt,this.uint32[$n+3]=hn,this.uint16[Xn+8]=mn,this.uint16[Xn+9]=Dn,ue},G}(Os);ie.prototype.bytesPerElement=20,Ri("StructArrayLayout6i1ul2ui20",ie);var ge=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);ge.prototype.bytesPerElement=12,Ri("StructArrayLayout2i2i2i12",ge);var xe=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,Ae,He,nt,ct)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt){var jt=4*ue,hn=8*ue;return this.float32[jt+0]=Ae,this.float32[jt+1]=He,this.float32[jt+2]=nt,this.int16[hn+6]=ct,this.int16[hn+7]=Pt,ue},G}(Os);xe.prototype.bytesPerElement=16,Ri("StructArrayLayout2f1f2i16",xe);var Ee=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=12*ue,jt=3*ue;return this.uint8[Pt+0]=Ae,this.uint8[Pt+1]=He,this.float32[jt+1]=nt,this.float32[jt+2]=ct,ue},G}(Os);Ee.prototype.bytesPerElement=12,Ri("StructArrayLayout2ub2f12",Ee);var Ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.uint16[ct+0]=Ae,this.uint16[ct+1]=He,this.uint16[ct+2]=nt,ue},G}(Os);Ne.prototype.bytesPerElement=6,Ri("StructArrayLayout3ui6",Ne);var et=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo){var mo=this.length;return this.resize(mo+1),this.emplace(mo,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo){var Io=24*ue,Qo=12*ue,Po=48*ue;return this.int16[Io+0]=Ae,this.int16[Io+1]=He,this.uint16[Io+2]=nt,this.uint16[Io+3]=ct,this.uint32[Qo+2]=Pt,this.uint32[Qo+3]=jt,this.uint32[Qo+4]=hn,this.uint16[Io+10]=mn,this.uint16[Io+11]=Dn,this.uint16[Io+12]=Xn,this.float32[Qo+7]=$n,this.float32[Qo+8]=mr,this.uint8[Po+36]=Or,this.uint8[Po+37]=Kr,this.uint8[Po+38]=Hr,this.uint32[Qo+10]=fo,this.int16[Io+22]=mo,ue},G}(Os);et.prototype.bytesPerElement=48,Ri("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",et);var rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as){var Da=this.length;return this.resize(Da+1),this.emplace(Da,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as,Da){var ba=34*ue,fl=17*ue;return this.int16[ba+0]=Ae,this.int16[ba+1]=He,this.int16[ba+2]=nt,this.int16[ba+3]=ct,this.int16[ba+4]=Pt,this.int16[ba+5]=jt,this.int16[ba+6]=hn,this.int16[ba+7]=mn,this.uint16[ba+8]=Dn,this.uint16[ba+9]=Xn,this.uint16[ba+10]=$n,this.uint16[ba+11]=mr,this.uint16[ba+12]=Or,this.uint16[ba+13]=Kr,this.uint16[ba+14]=Hr,this.uint16[ba+15]=fo,this.uint16[ba+16]=mo,this.uint16[ba+17]=Io,this.uint16[ba+18]=Qo,this.uint16[ba+19]=Po,this.uint16[ba+20]=Ii,this.uint16[ba+21]=bi,this.uint16[ba+22]=Zi,this.uint32[fl+12]=ra,this.float32[fl+13]=ka,this.float32[fl+14]=ea,this.float32[fl+15]=as,this.float32[fl+16]=Da,ue},G}(Os);rt.prototype.bytesPerElement=68,Ri("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.float32[He+0]=Ae,ue},G}(Os);dt.prototype.bytesPerElement=4,Ri("StructArrayLayout1f4",dt);var gt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.int16[ct+0]=Ae,this.int16[ct+1]=He,this.int16[ct+2]=nt,ue},G}(Os);gt.prototype.bytesPerElement=6,Ri("StructArrayLayout3i6",gt);var Rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=2*ue,Pt=4*ue;return this.uint32[ct+0]=Ae,this.uint16[Pt+2]=He,this.uint16[Pt+3]=nt,ue},G}(Os);Rt.prototype.bytesPerElement=8,Ri("StructArrayLayout1ul2ui8",Rt);var Mt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.uint16[nt+0]=Ae,this.uint16[nt+1]=He,ue},G}(Os);Mt.prototype.bytesPerElement=4,Ri("StructArrayLayout2ui4",Mt);var Xt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint16[He+0]=Ae,ue},G}(Os);Xt.prototype.bytesPerElement=2,Ri("StructArrayLayout1ui2",Xt);var dn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.float32[Pt+0]=Ae,this.float32[Pt+1]=He,this.float32[Pt+2]=nt,this.float32[Pt+3]=ct,ue},G}(Os);dn.prototype.bytesPerElement=16,Ri("StructArrayLayout4f16",dn);var bn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return ue.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ue.x1.get=function(){return this._structArray.int16[this._pos2+2]},ue.y1.get=function(){return this._structArray.int16[this._pos2+3]},ue.x2.get=function(){return this._structArray.int16[this._pos2+4]},ue.y2.get=function(){return this._structArray.int16[this._pos2+5]},ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,ue),G}(Uf);bn.prototype.size=20;var vn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new bn(this,ue)},G}(ie);Ri("CollisionBoxArray",vn);var Ln=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ue.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ue.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ue.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ue.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ue.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ue.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ue.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ue.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ue.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ue.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},ue.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ue.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},ue.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,ue),G}(Uf);Ln.prototype.size=48;var gn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Ln(this,ue)},G}(et);Ri("PlacedSymbolArray",gn);var Jn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ue.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ue.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ue.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ue.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},ue.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},ue.key.get=function(){return this._structArray.uint16[this._pos2+8]},ue.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ue.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ue.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ue.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ue.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},ue.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},ue.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},ue.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},ue.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},ue.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},ue.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},ue.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},ue.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},ue.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},ue.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},ue.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},ue.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,ue),G}(Uf);Jn.prototype.size=68;var pn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Jn(this,ue)},G}(rt);Ri("SymbolInstanceArray",pn);var In=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(ue){return this.float32[1*ue+0]},G}(dt);Ri("GlyphOffsetArray",In);var Ir=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getx=function(ue){return this.int16[3*ue+0]},G.prototype.gety=function(ue){return this.int16[3*ue+1]},G.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[3*ue+2]},G}(gt);Ri("SymbolLineVertexArray",Ir);var Pr=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,ue),G}(Uf);Pr.prototype.size=8;var Gr=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Pr(this,ue)},G}(Rt);Ri("FeatureIndexArray",Gr);var ro=Si([{name:"a_pos",components:2,type:"Int16"}],4).members,po=function(F){F===void 0&&(F=[]),this.segments=F};function Wo(F,G){return 256*(F=O(Math.floor(F),0,255))+O(Math.floor(G),0,255)}po.prototype.prepareSegment=function(F,G,ue,Ae){var He=this.segments[this.segments.length-1];return F>po.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+po.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+F),(!He||He.vertexLength+F>po.MAX_VERTEX_ARRAY_LENGTH||He.sortKey!==Ae)&&(He={vertexOffset:G.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(He.sortKey=Ae),this.segments.push(He)),He},po.prototype.get=function(){return this.segments},po.prototype.destroy=function(){for(var F=0,G=this.segments;F>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295)<<13|nt>>>19))+((5*(nt>>>16)&65535)<<16)&4294967295))+((58964+(ct>>>16)&65535)<<16);switch(hn=0,Ae){case 3:hn^=(255&G.charCodeAt(mn+2))<<16;case 2:hn^=(255&G.charCodeAt(mn+1))<<8;case 1:nt^=hn=(65535&(hn=(hn=(65535&(hn^=255&G.charCodeAt(mn)))*Pt+(((hn>>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295}return nt^=G.length,nt=2246822507*(65535&(nt^=nt>>>16))+((2246822507*(nt>>>16)&65535)<<16)&4294967295,nt=3266489909*(65535&(nt^=nt>>>13))+((3266489909*(nt>>>16)&65535)<<16)&4294967295,(nt^=nt>>>16)>>>0}}),Go=S(function(F){F.exports=function(G,ue){for(var Ae,He=G.length,nt=ue^He,ct=0;He>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ct)|(255&G.charCodeAt(++ct))<<8|(255&G.charCodeAt(++ct))<<16|(255&G.charCodeAt(++ct))<<24))+((1540483477*(Ae>>>16)&65535)<<16),nt=1540483477*(65535&nt)+((1540483477*(nt>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),He-=4,++ct;switch(He){case 3:nt^=(255&G.charCodeAt(ct+2))<<16;case 2:nt^=(255&G.charCodeAt(ct+1))<<8;case 1:nt=1540483477*(65535&(nt^=255&G.charCodeAt(ct)))+((1540483477*(nt>>>16)&65535)<<16)}return nt=1540483477*(65535&(nt^=nt>>>13))+((1540483477*(nt>>>16)&65535)<<16),(nt^=nt>>>15)>>>0}}),Yo=Bo,Wi=Bo,Ho=Go;Yo.murmur3=Wi,Yo.murmur2=Ho;var jo=function(){this.ids=[],this.positions=[],this.indexed=!1};jo.prototype.add=function(F,G,ue,Ae){this.ids.push(ai(F)),this.positions.push(G,ue,Ae)},jo.prototype.getPositions=function(F){for(var G=ai(F),ue=0,Ae=this.ids.length-1;ue>1;this.ids[He]>=G?Ae=He:ue=He+1}for(var nt=[];this.ids[ue]===G;){var ct=this.positions[3*ue],Pt=this.positions[3*ue+1],jt=this.positions[3*ue+2];nt.push({index:ct,start:Pt,end:jt}),ue++}return nt},jo.serialize=function(F,G){var ue=new Float64Array(F.ids),Ae=new Uint32Array(F.positions);return Hi(ue,Ae,0,ue.length-1),G&&G.push(ue.buffer,Ae.buffer),{ids:ue,positions:Ae}},jo.deserialize=function(F){var G=new jo;return G.ids=F.ids,G.positions=F.positions,G.indexed=!0,G};var Yi=Math.pow(2,53)-1;function ai(F){var G=+F;return!isNaN(G)&&G<=Yi?G:Yo(String(F))}function Hi(F,G,ue,Ae){for(;ue>1],nt=ue-1,ct=Ae+1;;){do nt++;while(F[nt]He);if(nt>=ct)break;Ai(F,nt,ct),Ai(G,3*nt,3*ct),Ai(G,3*nt+1,3*ct+1),Ai(G,3*nt+2,3*ct+2)}ct-uect.x+1||jtct.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return ue}function Is(F,G){return{type:F.type,id:F.id,properties:F.properties,geometry:G?Jc(F):[]}}function Hc(F,G,ue,Ae,He){F.emplaceBack(2*G+(Ae+1)/2,2*ue+(He+1)/2)}var Nl=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new rd,this.indexArray=new Ne,this.segments=new po,this.programConfigurations=new ui(F.layers,F.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lh(F,G){for(var ue=0;ue1){if(Ip(F,G))return!0;for(var Ae=0;Ae1?F.distSqr(ue):F.distSqr(ue.sub(G)._mult(He)._add(G))}function Uh(F,G){for(var ue,Ae,He,nt=!1,ct=0;ctG.y!=He.y>G.y&&G.x<(He.x-Ae.x)*(G.y-Ae.y)/(He.y-Ae.y)+Ae.x&&(nt=!nt);return nt}function ss(F,G){for(var ue=!1,Ae=0,He=F.length-1;AeG.y!=ct.y>G.y&&G.x<(ct.x-nt.x)*(G.y-nt.y)/(ct.y-nt.y)+nt.x&&(ue=!ue)}return ue}function Gl(F,G,ue){var Ae=ue[0],He=ue[2];if(F.xHe.x&&G.x>He.x||F.yHe.y&&G.y>He.y)return!1;var nt=Q(F,G,ue[0]);return nt!==Q(F,G,ue[1])||nt!==Q(F,G,ue[2])||nt!==Q(F,G,ue[3])}function Sf(F,G,ue){var Ae=G.paint.get(F).value;return Ae.kind==="constant"?Ae.value:ue.programConfigurations.get(G.id).getMaxValue(F)}function Nc(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1])}function o0(F,G,ue,Ae,He){if(!G[0]&&!G[1])return F;var nt=a.convert(G)._mult(He);ue==="viewport"&&nt._rotate(-Ae);for(var ct=[],Pt=0;Pt=ua||mn<0||mn>=ua)){var Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,F.sortKey),Xn=Dn.vertexLength;Hc(this.layoutVertexArray,hn,mn,-1,-1),Hc(this.layoutVertexArray,hn,mn,1,-1),Hc(this.layoutVertexArray,hn,mn,1,1),Hc(this.layoutVertexArray,hn,mn,-1,1),this.indexArray.emplaceBack(Xn,Xn+1,Xn+2),this.indexArray.emplaceBack(Xn,Xn+3,Xn+2),Dn.vertexLength+=4,Dn.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,F,ue,{},Ae)},Ri("CircleBucket",Nl,{omit:["layers"]});var i0=new _c({"circle-sort-key":new Aa(_t.layout_circle["circle-sort-key"])}),a0={paint:new _c({"circle-radius":new Aa(_t.paint_circle["circle-radius"]),"circle-color":new Aa(_t.paint_circle["circle-color"]),"circle-blur":new Aa(_t.paint_circle["circle-blur"]),"circle-opacity":new Aa(_t.paint_circle["circle-opacity"]),"circle-translate":new Ki(_t.paint_circle["circle-translate"]),"circle-translate-anchor":new Ki(_t.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ki(_t.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ki(_t.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Aa(_t.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Aa(_t.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Aa(_t.paint_circle["circle-stroke-opacity"])}),layout:i0},wu=typeof Float32Array<"u"?Float32Array:Array;function Dp(F){return F[0]=1,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=1,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=1,F[11]=0,F[12]=0,F[13]=0,F[14]=0,F[15]=1,F}function Rm(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3],Pt=G[4],jt=G[5],hn=G[6],mn=G[7],Dn=G[8],Xn=G[9],$n=G[10],mr=G[11],Or=G[12],Kr=G[13],Hr=G[14],fo=G[15],mo=ue[0],Io=ue[1],Qo=ue[2],Po=ue[3];return F[0]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[1]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[2]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[3]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[4],Io=ue[5],Qo=ue[6],Po=ue[7],F[4]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[5]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[6]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[7]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[8],Io=ue[9],Qo=ue[10],Po=ue[11],F[8]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[9]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[10]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[11]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[12],Io=ue[13],Qo=ue[14],Po=ue[15],F[12]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[13]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[14]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[15]=mo*ct+Io*mn+Qo*mr+Po*fo,F}Math.hypot||(Math.hypot=function(){for(var F=arguments,G=0,ue=arguments.length;ue--;)G+=F[ue]*F[ue];return Math.sqrt(G)});var nm=Rm,G0,vg=function(F,G,ue){return F[0]=G[0]-ue[0],F[1]=G[1]-ue[1],F[2]=G[2]-ue[2],F};function s0(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3];return F[0]=ue[0]*Ae+ue[4]*He+ue[8]*nt+ue[12]*ct,F[1]=ue[1]*Ae+ue[5]*He+ue[9]*nt+ue[13]*ct,F[2]=ue[2]*Ae+ue[6]*He+ue[10]*nt+ue[14]*ct,F[3]=ue[3]*Ae+ue[7]*He+ue[11]*nt+ue[15]*ct,F}G0=new wu(3),wu!=Float32Array&&(G0[0]=0,G0[1]=0,G0[2]=0),function(){var F=new wu(4);wu!=Float32Array&&(F[0]=0,F[1]=0,F[2]=0,F[3]=0)}();var H1=function(F){var G=F[0],ue=F[1];return G*G+ue*ue},VO=(function(){var F=new wu(2);wu!=Float32Array&&(F[0]=0,F[1]=0)}(),function(F){function G(ue){F.call(this,ue,a0)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(ue){return new Nl(ue)},G.prototype.queryRadius=function(ue){var Ae=ue;return Sf("circle-radius",this,Ae)+Sf("circle-stroke-width",this,Ae)+Nc(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt,hn){for(var mn=o0(ue,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Pt.angle,jt),Dn=this.paint.get("circle-radius").evaluate(Ae,He)+this.paint.get("circle-stroke-width").evaluate(Ae,He),Xn=this.paint.get("circle-pitch-alignment")==="map",$n=Xn?mn:function(Ii,bi){return Ii.map(function(Zi){return rm(Zi,bi)})}(mn,hn),mr=Xn?Dn*jt:Dn,Or=0,Kr=nt;OrF.width||He.height>F.height||ue.x>F.width-He.width||ue.y>F.height-He.height)throw new RangeError("out of range source coordinates for image copy");if(He.width>G.width||He.height>G.height||Ae.x>G.width-He.width||Ae.y>G.height-He.height)throw new RangeError("out of range destination coordinates for image copy");for(var ct=F.data,Pt=G.data,jt=0;jt80*ue){Ae=nt=F[0],He=ct=F[1];for(var mr=ue;mrnt&&(nt=Pt),jt>ct&&(ct=jt);hn=(hn=Math.max(nt-Ae,ct-He))!==0?1/hn:0}return Im(Xn,$n,ue,Ae,He,hn),$n}function ly(F,G,ue,Ae,He){var nt,ct;if(He===pb(F,G,ue,Ae)>0)for(nt=G;nt=G;nt-=Ae)ct=zm(nt,F[nt],F[nt+1],ct);return ct&&Za(ct,ct.next)&&(Rl(ct),ct=ct.next),ct}function yg(F,G){if(!F)return F;G||(G=F);var ue,Ae=F;do if(ue=!1,Ae.steiner||!Za(Ae,Ae.next)&&cu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(Rl(Ae),(Ae=G=Ae.prev)===Ae.next)break;ue=!0}while(ue||Ae!==G);return G}function Im(F,G,ue,Ae,He,nt,ct){if(F){!ct&&nt&&function(mn,Dn,Xn,$n){var mr=mn;do mr.z===null&&(mr.z=Dx(mr.x,mr.y,Dn,Xn,$n)),mr.prevZ=mr.prev,mr.nextZ=mr.next,mr=mr.next;while(mr!==mn);mr.prevZ.nextZ=null,mr.prevZ=null,function(Or){var Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi=1;do{for(Hr=Or,Or=null,Io=null,Qo=0;Hr;){for(Qo++,fo=Hr,Po=0,Kr=0;Kr0||Ii>0&&fo;)Po!==0&&(Ii===0||!fo||Hr.z<=fo.z)?(mo=Hr,Hr=Hr.nextZ,Po--):(mo=fo,fo=fo.nextZ,Ii--),Io?Io.nextZ=mo:Or=mo,mo.prevZ=Io,Io=mo;Hr=fo}Io.nextZ=null,bi*=2}while(Qo>1)}(mr)}(F,Ae,He,nt);for(var Pt,jt,hn=F;F.prev!==F.next;)if(Pt=F.prev,jt=F.next,nt?Sh(F,Ae,He,nt):Dm(F))G.push(Pt.i/ue),G.push(F.i/ue),G.push(jt.i/ue),Rl(F),F=jt.next,hn=jt.next;else if((F=jt)===hn){ct?ct===1?Im(F=zp(yg(F),G,ue),G,ue,Ae,He,nt,2):ct===2&&J0(F,G,ue,Ae,He,nt):Im(yg(F),G,ue,Ae,He,nt,1);break}}}function Dm(F){var G=F.prev,ue=F,Ae=F.next;if(cu(G,ue,Ae)>=0)return!1;for(var He=F.next.next;He!==F.prev;){if(W1(G.x,G.y,ue.x,ue.y,Ae.x,Ae.y,He.x,He.y)&&cu(He.prev,He,He.next)>=0)return!1;He=He.next}return!0}function Sh(F,G,ue,Ae){var He=F.prev,nt=F,ct=F.next;if(cu(He,nt,ct)>=0)return!1;for(var Pt=He.xnt.x?He.x>ct.x?He.x:ct.x:nt.x>ct.x?nt.x:ct.x,mn=He.y>nt.y?He.y>ct.y?He.y:ct.y:nt.y>ct.y?nt.y:ct.y,Dn=Dx(Pt,jt,G,ue,Ae),Xn=Dx(hn,mn,G,ue,Ae),$n=F.prevZ,mr=F.nextZ;$n&&$n.z>=Dn&&mr&&mr.z<=Xn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0||($n=$n.prevZ,mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0))return!1;mr=mr.nextZ}for(;$n&&$n.z>=Dn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0)return!1;$n=$n.prevZ}for(;mr&&mr.z<=Xn;){if(mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0)return!1;mr=mr.nextZ}return!0}function zp(F,G,ue){var Ae=F;do{var He=Ae.prev,nt=Ae.next.next;!Za(He,nt)&&sa(He,Ae,Ae.next,nt)&&n1(He,nt)&&n1(nt,He)&&(G.push(He.i/ue),G.push(Ae.i/ue),G.push(nt.i/ue),Rl(Ae),Rl(Ae.next),Ae=F=nt),Ae=Ae.next}while(Ae!==F);return yg(Ae)}function J0(F,G,ue,Ae,He,nt){var ct=F;do{for(var Pt=ct.next.next;Pt!==ct.prev;){if(ct.i!==Pt.i&&e1(ct,Pt)){var jt=Bx(ct,Pt);return ct=yg(ct,ct.next),jt=yg(jt,jt.next),Im(ct,G,ue,Ae,He,nt),void Im(jt,G,ue,Ae,He,nt)}Pt=Pt.next}ct=ct.next}while(ct!==F)}function F_(F,G){return F.x-G.x}function q1(F,G){if(G=function(Ae,He){var nt,ct=He,Pt=Ae.x,jt=Ae.y,hn=-1/0;do{if(jt<=ct.y&&jt>=ct.next.y&&ct.next.y!==ct.y){var mn=ct.x+(jt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(mn<=Pt&&mn>hn){if(hn=mn,mn===Pt){if(jt===ct.y)return ct;if(jt===ct.next.y)return ct.next}nt=ct.x=ct.x&&ct.x>=$n&&Pt!==ct.x&&W1(jtnt.x||ct.x===nt.x&&$_(nt,ct)))&&(nt=ct,Or=Dn)),ct=ct.next;while(ct!==Xn);return nt}(F,G)){var ue=Bx(G,F);yg(G,G.next),yg(ue,ue.next)}}function $_(F,G){return cu(F.prev,F,G.prev)<0&&cu(G.next,F,F.next)<0}function Dx(F,G,ue,Ae,He){return(F=1431655765&((F=858993459&((F=252645135&((F=16711935&((F=32767*(F-ue)*He)|F<<8))|F<<4))|F<<2))|F<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*He)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function UO(F){var G=F,ue=F;do(G.x=0&&(F-ct)*(Ae-Pt)-(ue-ct)*(G-Pt)>=0&&(ue-ct)*(nt-Pt)-(He-ct)*(Ae-Pt)>=0}function e1(F,G){return F.next.i!==G.i&&F.prev.i!==G.i&&!function(ue,Ae){var He=ue;do{if(He.i!==ue.i&&He.next.i!==ue.i&&He.i!==Ae.i&&He.next.i!==Ae.i&&sa(He,He.next,ue,Ae))return!0;He=He.next}while(He!==ue);return!1}(F,G)&&(n1(F,G)&&n1(G,F)&&function(ue,Ae){var He=ue,nt=!1,ct=(ue.x+Ae.x)/2,Pt=(ue.y+Ae.y)/2;do He.y>Pt!=He.next.y>Pt&&He.next.y!==He.y&&ct<(He.next.x-He.x)*(Pt-He.y)/(He.next.y-He.y)+He.x&&(nt=!nt),He=He.next;while(He!==ue);return nt}(F,G)&&(cu(F.prev,F,G.prev)||cu(F,G.prev,G))||Za(F,G)&&cu(F.prev,F,F.next)>0&&cu(G.prev,G,G.next)>0)}function cu(F,G,ue){return(G.y-F.y)*(ue.x-G.x)-(G.x-F.x)*(ue.y-G.y)}function Za(F,G){return F.x===G.x&&F.y===G.y}function sa(F,G,ue,Ae){var He=t1(cu(F,G,ue)),nt=t1(cu(F,G,Ae)),ct=t1(cu(ue,Ae,F)),Pt=t1(cu(ue,Ae,G));return He!==nt&&ct!==Pt||!(He!==0||!Bm(F,ue,G))||!(nt!==0||!Bm(F,Ae,G))||!(ct!==0||!Bm(ue,F,Ae))||!(Pt!==0||!Bm(ue,G,Ae))}function Bm(F,G,ue){return G.x<=Math.max(F.x,ue.x)&&G.x>=Math.min(F.x,ue.x)&&G.y<=Math.max(F.y,ue.y)&&G.y>=Math.min(F.y,ue.y)}function t1(F){return F>0?1:F<0?-1:0}function n1(F,G){return cu(F.prev,F,F.next)<0?cu(F,G,F.next)>=0&&cu(F,F.prev,G)>=0:cu(F,G,F.prev)<0||cu(F,F.next,G)<0}function Bx(F,G){var ue=new zx(F.i,F.x,F.y),Ae=new zx(G.i,G.x,G.y),He=F.next,nt=G.prev;return F.next=G,G.prev=F,ue.next=He,He.prev=ue,Ae.next=ue,ue.prev=Ae,nt.next=Ae,Ae.prev=nt,Ae}function zm(F,G,ue,Ae){var He=new zx(F,G,ue);return Ae?(He.next=Ae.next,He.prev=Ae,Ae.next.prev=He,Ae.next=He):(He.prev=He,He.next=He),He}function Rl(F){F.next.prev=F.prev,F.prev.next=F.next,F.prevZ&&(F.prevZ.nextZ=F.nextZ),F.nextZ&&(F.nextZ.prevZ=F.prevZ)}function zx(F,G,ue){this.i=F,this.x=G,this.y=ue,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pb(F,G,ue,Ae){for(var He=0,nt=G,ct=ue-Ae;ntue;){if(Ae-ue>600){var nt=Ae-ue+1,ct=G-ue+1,Pt=Math.log(nt),jt=.5*Math.exp(2*Pt/3),hn=.5*Math.sqrt(Pt*jt*(nt-jt)/nt)*(ct-nt/2<0?-1:1);Lo(F,G,Math.max(ue,Math.floor(G-ct*jt/nt+hn)),Math.min(Ae,Math.floor(G+(nt-ct)*jt/nt+hn)),He)}var mn=F[G],Dn=ue,Xn=Ae;for(Nm(F,ue,G),He(F[Ae],mn)>0&&Nm(F,ue,Ae);Dn0;)Xn--}He(F[ue],mn)===0?Nm(F,ue,Xn):Nm(F,++Xn,Ae),Xn<=G&&(ue=Xn+1),G<=Xn&&(Ae=Xn-1)}}function Nm(F,G,ue){var Ae=F[G];F[G]=F[ue],F[ue]=Ae}function D4(F,G){return FG?1:0}function bg(F,G){var ue=F.length;if(ue<=1)return[F];for(var Ae,He,nt=[],ct=0;ct1)for(var jt=0;jt0&&(Ae+=F[He-1].length,ue.holes.push(Ae))}return ue},Z1.default=N_;var od=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rd,this.indexArray=new Ne,this.indexArray2=new Mt,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.segments2=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};od.prototype.populate=function(F,G,ue){this.hasPattern=c0("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),He=[],nt=0,ct=F;nt>3}if(He--,Ae===1||Ae===2)nt+=F.readSVarint(),ct+=F.readSVarint(),Ae===1&&(G&&Pt.push(G),G=[]),G.push(new a(nt,ct));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Pt.push(G),Pt},kh.prototype.bbox=function(){var F=this._pbf;F.pos=this._geometry;for(var G=F.readVarint()+F.pos,ue=1,Ae=0,He=0,nt=0,ct=1/0,Pt=-1/0,jt=1/0,hn=-1/0;F.pos>3}if(Ae--,ue===1||ue===2)(He+=F.readSVarint())Pt&&(Pt=He),(nt+=F.readSVarint())hn&&(hn=nt);else if(ue!==7)throw new Error("unknown command "+ue)}return[ct,jt,Pt,hn]},kh.prototype.toGeoJSON=function(F,G,ue){var Ae,He,nt=this.extent*Math.pow(2,ue),ct=this.extent*F,Pt=this.extent*G,jt=this.loadGeometry(),hn=kh.types[this.type];function mn($n){for(var mr=0;mr<$n.length;mr++){var Or=$n[mr],Kr=180-360*(Or.y+Pt)/nt;$n[mr]=[360*(Or.x+ct)/nt-180,360/Math.PI*Math.atan(Math.exp(Kr*Math.PI/180))-90]}}switch(this.type){case 1:var Dn=[];for(Ae=0;Ae>3;He=ct===1?Ae.readString():ct===2?Ae.readFloat():ct===3?Ae.readDouble():ct===4?Ae.readVarint64():ct===5?Ae.readVarint():ct===6?Ae.readSVarint():ct===7?Ae.readBoolean():null}return He}(ue))}function jO(F,G,ue){if(F===3){var Ae=new Y1(ue,ue.readVarint()+ue.pos);Ae.length&&(G[Ae.name]=Ae)}}uy.prototype.feature=function(F){if(F<0||F>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[F];var G=this._pbf.readVarint()+this._pbf.pos;return new Nx(this._pbf,G,this.extent,this._keys,this._values)};var _g={VectorTile:function(F,G){this.layers=F.readFields(jO,{},G)},VectorTileFeature:Nx,VectorTileLayer:Y1},Q_=_g.VectorTileFeature.types,wg=Math.pow(2,13);function X1(F,G,ue,Ae,He,nt,ct,Pt){F.emplaceBack(G,ue,2*Math.floor(Ae*wg)+ct,He*wg*2,nt*wg*2,Math.round(Pt))}var om=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new kt,this.indexArray=new Ne,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function H_(F,G){return F.x===G.x&&(F.x<0||F.x>ua)||F.y===G.y&&(F.y<0||F.y>ua)}om.prototype.populate=function(F,G,ue){this.features=[],this.hasPattern=c0("fill-extrusion",this.layers,G);for(var Ae=0,He=F;Aeua})||fl.every(function(As){return As.y<0})||fl.every(function(As){return As.y>ua})))for(var Or=0,Kr=0;Kr=1){var fo=mr[Kr-1];if(!H_(Hr,fo)){Dn.vertexLength+4>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var mo=Hr.sub(fo)._perp()._unit(),Io=fo.dist(Hr);Or+Io>32768&&(Or=0),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,1,Or),Or+=Io,X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,1,Or);var Qo=Dn.vertexLength;this.indexArray.emplaceBack(Qo,Qo+2,Qo+1),this.indexArray.emplaceBack(Qo+1,Qo+2,Qo+3),Dn.vertexLength+=4,Dn.primitiveLength+=2}}}}if(Dn.vertexLength+jt>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(jt,this.layoutVertexArray,this.indexArray)),Q_[F.type]==="Polygon"){for(var Po=[],Ii=[],bi=Dn.vertexLength,Zi=0,ra=Pt;Zi=2&&F[jt-1].equals(F[jt-2]);)jt--;for(var hn=0;hn0;if(Ii&&Hr>hn){var Zi=mn.dist($n);if(Zi>2*Dn){var ra=mn.sub(mn.sub($n)._mult(Dn/Zi)._round());this.updateDistance($n,ra),this.addCurrentVertex(ra,Or,0,0,Xn),$n=ra}}var ka=$n&&mr,ea=ka?ue:Pt?"butt":Ae;if(ka&&ea==="round"&&(QoHe&&(ea="bevel"),ea==="bevel"&&(Qo>2&&(ea="flipbevel"),Qo100)fo=Kr.mult(-1);else{var as=Qo*Or.add(Kr).mag()/Or.sub(Kr).mag();fo._perp()._mult(as*(bi?-1:1))}this.addCurrentVertex(mn,fo,0,0,Xn),this.addCurrentVertex(mn,fo.mult(-1),0,0,Xn)}else if(ea==="bevel"||ea==="fakeround"){var Da=-Math.sqrt(Qo*Qo-1),ba=bi?Da:0,fl=bi?0:Da;if($n&&this.addCurrentVertex(mn,Or,ba,fl,Xn),ea==="fakeround")for(var As=Math.round(180*Po/Math.PI/20),hc=1;hc2*Dn){var qa=mn.add(mr.sub(mn)._mult(Dn/Fc)._round());this.updateDistance(mn,qa),this.addCurrentVertex(qa,Kr,0,0,Xn),mn=qa}}}}},Xu.prototype.addCurrentVertex=function(F,G,ue,Ae,He,nt){nt===void 0&&(nt=!1);var ct=G.x+G.y*ue,Pt=G.y-G.x*ue,jt=-G.x+G.y*Ae,hn=-G.y-G.x*Ae;this.addHalfVertex(F,ct,Pt,nt,!1,ue,He),this.addHalfVertex(F,jt,hn,nt,!0,-Ae,He),this.distance>cc/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(F,G,ue,Ae,He,nt))},Xu.prototype.addHalfVertex=function(F,G,ue,Ae,He,nt,ct){var Pt=F.x,jt=F.y,hn=.5*(this.lineClips?this.scaledDistance*(cc-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Pt<<1)+(Ae?1:0),(jt<<1)+(He?1:0),Math.round(63*G)+128,Math.round(63*ue)+128,1+(nt===0?0:nt<0?-1:1)|(63&hn)<<2,hn>>6),this.lineClips){var mn=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(mn,this.lineClipsArray.length)}var Dn=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Dn),ct.primitiveLength++),He?this.e2=Dn:this.e1=Dn},Xu.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Xu.prototype.updateDistance=function(F,G){this.distance+=F.dist(G),this.updateScaledDistance()},Ri("LineBucket",Xu,{omit:["layers","patternFeatures"]});var Vx=new _c({"line-cap":new Ki(_t.layout_line["line-cap"]),"line-join":new Aa(_t.layout_line["line-join"]),"line-miter-limit":new Ki(_t.layout_line["line-miter-limit"]),"line-round-limit":new Ki(_t.layout_line["line-round-limit"]),"line-sort-key":new Aa(_t.layout_line["line-sort-key"])}),ZO={paint:new _c({"line-opacity":new Aa(_t.paint_line["line-opacity"]),"line-color":new Aa(_t.paint_line["line-color"]),"line-translate":new Ki(_t.paint_line["line-translate"]),"line-translate-anchor":new Ki(_t.paint_line["line-translate-anchor"]),"line-width":new Aa(_t.paint_line["line-width"]),"line-gap-width":new Aa(_t.paint_line["line-gap-width"]),"line-offset":new Aa(_t.paint_line["line-offset"]),"line-blur":new Aa(_t.paint_line["line-blur"]),"line-dasharray":new Vf(_t.paint_line["line-dasharray"]),"line-pattern":new Pl(_t.paint_line["line-pattern"]),"line-gradient":new sh(_t.paint_line["line-gradient"])}),layout:Vx},u0=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(ue,Ae){return Ae=new uo(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),F.prototype.possiblyEvaluate.call(this,ue,Ae)},G.prototype.evaluate=function(ue,Ae,He,nt){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),F.prototype.evaluate.call(this,ue,Ae,He,nt)},G}(Aa),vb=new u0(ZO.paint.properties["line-width"].specification);vb.useIntegerZoom=!0;var Fm=function(F){function G(ue){F.call(this,ue,ZO),this.gradientVersion=0}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof mi,this.gradientVersion=(this.gradientVersion+1)%p}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(ue,Ae){F.prototype.recalculate.call(this,ue,Ae),this.paint._values["line-floorwidth"]=vb.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},G.prototype.createBucket=function(ue){return new Xu(ue)},G.prototype.queryRadius=function(ue){var Ae=ue,He=Z_(Sf("line-width",this,Ae),Sf("line-gap-width",this,Ae)),nt=Sf("line-offset",this,Ae);return He/2+Math.abs(nt)+Nc(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt){var hn=o0(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,jt),mn=jt/2*Z_(this.paint.get("line-width").evaluate(Ae,He),this.paint.get("line-gap-width").evaluate(Ae,He)),Dn=this.paint.get("line-offset").evaluate(Ae,He);return Dn&&(nt=function(Xn,$n){for(var mr=[],Or=new a(0,0),Kr=0;Kr=3){for(var Hr=0;Hr0?G+2*F:F}var q_=Si([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),uc=Si([{name:"a_projected_pos",components:3,type:"Float32"}],4),fy=(Si([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Si([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zc=(Si([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Si([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qO=Si([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function rp(F,G,ue){return F.sections.forEach(function(Ae){Ae.text=function(He,nt,ct){var Pt=nt.layout.get("text-transform").evaluate(ct,{});return Pt==="uppercase"?He=He.toLocaleUpperCase():Pt==="lowercase"&&(He=He.toLocaleLowerCase()),wr.applyArabicShaping&&(He=wr.applyArabicShaping(He)),He}(Ae.text,G,ue)}),F}Si([{name:"triangle",components:3,type:"Uint16"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Si([{type:"Float32",name:"offsetX"}]),Si([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Og={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Oc=24,WO=function(F,G,ue,Ae,He){var nt,ct,Pt=8*He-Ae-1,jt=(1<>1,mn=-7,Dn=ue?He-1:0,Xn=ue?-1:1,$n=F[G+Dn];for(Dn+=Xn,nt=$n&(1<<-mn)-1,$n>>=-mn,mn+=Pt;mn>0;nt=256*nt+F[G+Dn],Dn+=Xn,mn-=8);for(ct=nt&(1<<-mn)-1,nt>>=-mn,mn+=Ae;mn>0;ct=256*ct+F[G+Dn],Dn+=Xn,mn-=8);if(nt===0)nt=1-hn;else{if(nt===jt)return ct?NaN:1/0*($n?-1:1);ct+=Math.pow(2,Ae),nt-=hn}return($n?-1:1)*ct*Math.pow(2,nt-Ae)},YO=function(F,G,ue,Ae,He,nt){var ct,Pt,jt,hn=8*nt-He-1,mn=(1<>1,Xn=He===23?Math.pow(2,-24)-Math.pow(2,-77):0,$n=Ae?0:nt-1,mr=Ae?1:-1,Or=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Pt=isNaN(G)?1:0,ct=mn):(ct=Math.floor(Math.log(G)/Math.LN2),G*(jt=Math.pow(2,-ct))<1&&(ct--,jt*=2),(G+=ct+Dn>=1?Xn/jt:Xn*Math.pow(2,1-Dn))*jt>=2&&(ct++,jt/=2),ct+Dn>=mn?(Pt=0,ct=mn):ct+Dn>=1?(Pt=(G*jt-1)*Math.pow(2,He),ct+=Dn):(Pt=G*Math.pow(2,Dn-1)*Math.pow(2,He),ct=0));He>=8;F[ue+$n]=255&Pt,$n+=mr,Pt/=256,He-=8);for(ct=ct<0;F[ue+$n]=255&ct,$n+=mr,ct/=256,hn-=8);F[ue+$n-mr]|=128*Or},Ux=qc;function qc(F){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(F)?F:new Uint8Array(F||0),this.pos=0,this.type=0,this.length=this.buf.length}qc.Varint=0,qc.Fixed64=1,qc.Bytes=2,qc.Fixed32=5;var ff=4294967296,fh=1/ff,dy=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function jh(F){return F.type===qc.Bytes?F.readVarint()+F.pos:F.pos+1}function r1(F,G,ue){return ue?4294967296*G+(F>>>0):4294967296*(G>>>0)+(F>>>0)}function G1(F,G,ue){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));ue.realloc(Ae);for(var He=ue.pos-1;He>=F;He--)ue.buf[He+Ae]=ue.buf[He]}function Sg(F,G){for(var ue=0;ue>>8,F[ue+2]=G>>>16,F[ue+3]=G>>>24}function jx(F,G){return(F[G]|F[G+1]<<8|F[G+2]<<16)+(F[G+3]<<24)}qc.prototype={destroy:function(){this.buf=null},readFields:function(F,G,ue){for(ue=ue||this.length;this.pos>3,nt=this.pos;this.type=7&Ae,F(He,G,this),this.pos===nt&&this.skip(Ae)}return G},readMessage:function(F,G){return this.readFields(F,G,this.readVarint()+this.pos)},readFixed32:function(){var F=tv(this.buf,this.pos);return this.pos+=4,F},readSFixed32:function(){var F=jx(this.buf,this.pos);return this.pos+=4,F},readFixed64:function(){var F=tv(this.buf,this.pos)+tv(this.buf,this.pos+4)*ff;return this.pos+=8,F},readSFixed64:function(){var F=tv(this.buf,this.pos)+jx(this.buf,this.pos+4)*ff;return this.pos+=8,F},readFloat:function(){var F=WO(this.buf,this.pos,!0,23,4);return this.pos+=4,F},readDouble:function(){var F=WO(this.buf,this.pos,!0,52,8);return this.pos+=8,F},readVarint:function(F){var G,ue,Ae=this.buf;return G=127&(ue=Ae[this.pos++]),ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<7,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<14,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<21,ue<128?G:function(He,nt,ct){var Pt,jt,hn=ct.buf;if(Pt=(112&(jt=hn[ct.pos++]))>>4,jt<128||(Pt|=(127&(jt=hn[ct.pos++]))<<3,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<10,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<17,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<24,jt<128)||(Pt|=(1&(jt=hn[ct.pos++]))<<31,jt<128))return r1(He,Pt,nt);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(ue=Ae[this.pos]))<<28,F,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var F=this.readVarint();return F%2==1?(F+1)/-2:F/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var F=this.readVarint()+this.pos,G=this.pos;return this.pos=F,F-G>=12&&dy?function(ue,Ae,He){return dy.decode(ue.subarray(Ae,He))}(this.buf,G,F):function(ue,Ae,He){for(var nt="",ct=Ae;ct239?4:mn>223?3:mn>191?2:1;if(ct+Xn>He)break;Xn===1?mn<128&&(Dn=mn):Xn===2?(192&(Pt=ue[ct+1]))==128&&(Dn=(31&mn)<<6|63&Pt)<=127&&(Dn=null):Xn===3?(Pt=ue[ct+1],jt=ue[ct+2],(192&Pt)==128&&(192&jt)==128&&((Dn=(15&mn)<<12|(63&Pt)<<6|63&jt)<=2047||Dn>=55296&&Dn<=57343)&&(Dn=null)):Xn===4&&(Pt=ue[ct+1],jt=ue[ct+2],hn=ue[ct+3],(192&Pt)==128&&(192&jt)==128&&(192&hn)==128&&((Dn=(15&mn)<<18|(63&Pt)<<12|(63&jt)<<6|63&hn)<=65535||Dn>=1114112)&&(Dn=null)),Dn===null?(Dn=65533,Xn=1):Dn>65535&&(Dn-=65536,nt+=String.fromCharCode(Dn>>>10&1023|55296),Dn=56320|1023&Dn),nt+=String.fromCharCode(Dn),ct+=Xn}return nt}(this.buf,G,F)},readBytes:function(){var F=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,F);return this.pos=F,G},readPackedVarint:function(F,G){if(this.type!==qc.Bytes)return F.push(this.readVarint(G));var ue=jh(this);for(F=F||[];this.pos127;);else if(G===qc.Bytes)this.pos=this.readVarint()+this.pos;else if(G===qc.Fixed32)this.pos+=4;else{if(G!==qc.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(F,G){this.writeVarint(F<<3|G)},realloc:function(F){for(var G=this.length||16;G268435455||F<0?function(G,ue){var Ae,He;if(G>=0?(Ae=G%4294967296|0,He=G/4294967296|0):(He=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,He=He+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");ue.realloc(10),function(nt,ct,Pt){Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos]=127&nt}(Ae,0,ue),function(nt,ct){var Pt=(7&nt)<<4;ct.buf[ct.pos++]|=Pt|((nt>>>=3)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt)))))}(He,ue)}(F,this):(this.realloc(4),this.buf[this.pos++]=127&F|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=F>>>7&127))))},writeSVarint:function(F){this.writeVarint(F<0?2*-F-1:2*F)},writeBoolean:function(F){this.writeVarint(!!F)},writeString:function(F){F=String(F),this.realloc(4*F.length),this.pos++;var G=this.pos;this.pos=function(Ae,He,nt){for(var ct,Pt,jt=0;jt55295&&ct<57344){if(!Pt){ct>56319||jt+1===He.length?(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189):Pt=ct;continue}if(ct<56320){Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=ct;continue}ct=Pt-55296<<10|ct-56320|65536,Pt=null}else Pt&&(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=null);ct<128?Ae[nt++]=ct:(ct<2048?Ae[nt++]=ct>>6|192:(ct<65536?Ae[nt++]=ct>>12|224:(Ae[nt++]=ct>>18|240,Ae[nt++]=ct>>12&63|128),Ae[nt++]=ct>>6&63|128),Ae[nt++]=63&ct|128)}return nt}(this.buf,F,this.pos);var ue=this.pos-G;ue>=128&&G1(G,ue,this),this.pos=G-1,this.writeVarint(ue),this.pos+=ue},writeFloat:function(F){this.realloc(4),YO(this.buf,F,this.pos,!0,23,4),this.pos+=4},writeDouble:function(F){this.realloc(8),YO(this.buf,F,this.pos,!0,52,8),this.pos+=8},writeBytes:function(F){var G=F.length;this.writeVarint(G),this.realloc(G);for(var ue=0;ue=128&&G1(ue,Ae,this),this.pos=ue-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(F,G,ue){this.writeTag(F,qc.Bytes),this.writeRawMessage(G,ue)},writePackedVarint:function(F,G){G.length&&this.writeMessage(F,Sg,G)},writePackedSVarint:function(F,G){G.length&&this.writeMessage(F,hy,G)},writePackedBoolean:function(F,G){G.length&&this.writeMessage(F,kg,G)},writePackedFloat:function(F,G){G.length&&this.writeMessage(F,K1,G)},writePackedDouble:function(F,G){G.length&&this.writeMessage(F,o1,G)},writePackedFixed32:function(F,G){G.length&&this.writeMessage(F,J1,G)},writePackedSFixed32:function(F,G){G.length&&this.writeMessage(F,ev,G)},writePackedFixed64:function(F,G){G.length&&this.writeMessage(F,z4,G)},writePackedSFixed64:function(F,G){G.length&&this.writeMessage(F,W_,G)},writeBytesField:function(F,G){this.writeTag(F,qc.Bytes),this.writeBytes(G)},writeFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeSFixed64(G)},writeVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeVarint(G)},writeSVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeSVarint(G)},writeStringField:function(F,G){this.writeTag(F,qc.Bytes),this.writeString(G)},writeFloatField:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFloat(G)},writeDoubleField:function(F,G){this.writeTag(F,qc.Fixed64),this.writeDouble(G)},writeBooleanField:function(F,G){this.writeVarintField(F,!!G)}};var py=3;function Y_(F,G,ue){F===1&&ue.readMessage(X_,G)}function X_(F,G,ue){if(F===3){var Ae=ue.readMessage(G_,{}),He=Ae.id,nt=Ae.bitmap,ct=Ae.width,Pt=Ae.height,jt=Ae.left,hn=Ae.top,mn=Ae.advance;G.push({id:He,bitmap:new Oh({width:ct+2*py,height:Pt+2*py},nt),metrics:{width:ct,height:Pt,left:jt,top:hn,advance:mn}})}}function G_(F,G,ue){F===1?G.id=ue.readVarint():F===2?G.bitmap=ue.readBytes():F===3?G.width=ue.readVarint():F===4?G.height=ue.readVarint():F===5?G.left=ue.readSVarint():F===6?G.top=ue.readSVarint():F===7&&(G.advance=ue.readVarint())}var my=py;function yb(F){for(var G=0,ue=0,Ae=0,He=F;Ae=0;Xn--){var $n=ct[Xn];if(!(Dn.w>$n.w||Dn.h>$n.h)){if(Dn.x=$n.x,Dn.y=$n.y,jt=Math.max(jt,Dn.y+Dn.h),Pt=Math.max(Pt,Dn.x+Dn.w),Dn.w===$n.w&&Dn.h===$n.h){var mr=ct.pop();Xn0&&d1>Wc&&(Wc=d1)}else{var t2=As[$l.fontStack],gv=t2&&t2[Eh];if(gv&&gv.rect)hh=gv.rect,dh=gv.metrics;else{var Lu=fl[$l.fontStack],$c=Lu&&Lu[Eh];if(!$c)continue;dh=$c.metrics}mc=(Us-$l.scale)*Oc}tu?(ba.verticalizable=!0,ni.push({glyph:Eh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=Qf*$l.scale+qa):(ni.push({glyph:Eh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=dh.advance*$l.scale+qa)}if(ni.length!==0){var dl=sd-qa;cd=Math.max(dl,cd),mC(ni,0,ni.length-1,xl,Wc)}sd=0;var Mf=Vs*Us+Wc;fu.lineOffset=Math.max(Wc,_l),ld+=Mf,Cf=Math.max(Mf,Cf),++eu}else ld+=Vs,++eu}var du=ld-rv,Iu=ad(Fl),vv=Iu.horizontalAlign,h1=Iu.verticalAlign;(function(n2,by,p1,b0,Hm,yv,xy,x0,r2){var Mb=(by-p1)*Hm,Ad=0;Ad=yv!==xy?-x0*b0-rv:(-b0*r2+.5)*xy;for(var _y=0,wy=n2;_y=0&&Ae>=F&&Qx[this.text.charCodeAt(Ae)];Ae--)ue--;this.text=this.text.substring(F,ue),this.sectionIndex=this.sectionIndex.slice(F,ue)},Od.prototype.substring=function(F,G){var ue=new Od;return ue.text=this.text.substring(F,G),ue.sectionIndex=this.sectionIndex.slice(F,G),ue.sections=this.sections,ue},Od.prototype.toString=function(){return this.text},Od.prototype.getMaxScale=function(){var F=this;return this.sectionIndex.reduce(function(G,ue){return Math.max(G,F.sections[ue].scale)},0)},Od.prototype.addTextSection=function(F,G){this.text+=F.text,this.sections.push(ov.forText(F.scale,F.fontStack||G));for(var ue=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Qx={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Th={};function f0(F,G,ue,Ae,He,nt){if(G.imageName){var ct=Ae[G.imageName];return ct?ct.displaySize[0]*G.scale*Oc/nt+He:0}var Pt=ue[G.fontStack],jt=Pt&&Pt[F];return jt?jt.metrics.advance*G.scale+He:0}function iv(F,G,ue,Ae){var He=Math.pow(F-G,2);return Ae?F=0,mn=0,Dn=0;Dn-ue/2;){if(--ct<0)return!1;Pt-=F[ct].dist(nt),nt=F[ct]}Pt+=F[ct].dist(F[ct+1]),ct++;for(var jt=[],hn=0;PtAe;)hn-=jt.shift().angleDelta;if(hn>He)return!1;ct++,Pt+=Dn.dist(Xn)}return!0}function gy(F){for(var G=0,ue=0;uehn){var mr=(hn-jt)/$n,Or=Di(Dn.x,Xn.x,mr),Kr=Di(Dn.y,Xn.y,mr),Hr=new Ag(Or,Kr,Xn.angleTo(Dn),mn);return Hr._round(),!ct||J_(F,Hr,Pt,ct,G)?Hr:void 0}jt+=$n}}function sv(F,G,ue,Ae,He,nt,ct,Pt,jt){var hn=xb(Ae,nt,ct),mn=ew(Ae,He),Dn=mn*ct,Xn=F[0].x===0||F[0].x===jt||F[0].y===0||F[0].y===jt;return G-Dn=0&&Io=0&&Qo=0&&Xn+hn<=mn){var Po=new Ag(Io,Qo,fo,mr);Po._round(),Ae&&!J_(F,Po,nt,Ae,He)||$n.push(Po)}}Dn+=Hr}return Pt||$n.length||ct||($n=xp(F,Dn/2,ue,Ae,He,nt,ct,!0,jt)),$n}function _b(F,G,ue,Ae,He){for(var nt=[],ct=0;ct=Ae&&Dn.x>=Ae||(mn.x>=Ae?mn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round():Dn.x>=Ae&&(Dn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round()),mn.y>=He&&Dn.y>=He||(mn.y>=He?mn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round():Dn.y>=He&&(Dn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round()),jt&&mn.equals(jt[jt.length-1])||(jt=[mn],nt.push(jt)),jt.push(Dn)))))}return nt}var Ou=bp;function Wx(F,G,ue,Ae){var He=[],nt=F.image,ct=nt.pixelRatio,Pt=nt.paddedRect.w-2*Ou,jt=nt.paddedRect.h-2*Ou,hn=F.right-F.left,mn=F.bottom-F.top,Dn=nt.stretchX||[[0,Pt]],Xn=nt.stretchY||[[0,jt]],$n=function(Vs,Fl){return Vs+Fl[1]-Fl[0]},mr=Dn.reduce($n,0),Or=Xn.reduce($n,0),Kr=Pt-mr,Hr=jt-Or,fo=0,mo=mr,Io=0,Qo=Or,Po=0,Ii=Kr,bi=0,Zi=Hr;if(nt.content&&Ae){var ra=nt.content;fo=Sd(Dn,0,ra[0]),Io=Sd(Xn,0,ra[1]),mo=Sd(Dn,ra[0],ra[2]),Qo=Sd(Xn,ra[1],ra[3]),Po=ra[0]-fo,bi=ra[1]-Io,Ii=ra[2]-ra[0]-mo,Zi=ra[3]-ra[1]-Qo}var ka=function(Vs,Fl,kl,Fc){var qa=wb(Vs.stretch-fo,mo,hn,F.left),Sc=am(Vs.fixed-Po,Ii,Vs.stretch,mr),pc=wb(Fl.stretch-Io,Qo,mn,F.top),sd=am(Fl.fixed-bi,Zi,Fl.stretch,Or),ld=wb(kl.stretch-fo,mo,hn,F.left),cd=am(kl.fixed-Po,Ii,kl.stretch,mr),Cf=wb(Fc.stretch-Io,Qo,mn,F.top),xl=am(Fc.fixed-bi,Zi,Fc.stretch,Or),eu=new a(qa,pc),Td=new a(ld,pc),Af=new a(ld,Cf),jf=new a(qa,Cf),Us=new a(Sc/ct,sd/ct),_l=new a(cd/ct,xl/ct),fu=G*Math.PI/180;if(fu){var ni=Math.sin(fu),Wc=Math.cos(fu),Yc=[Wc,-ni,ni,Wc];eu._matMult(Yc),Td._matMult(Yc),jf._matMult(Yc),Af._matMult(Yc)}var $l=Vs.stretch+Vs.fixed,Ru=kl.stretch+kl.fixed,Eh=Fl.stretch+Fl.fixed,mc=Fc.stretch+Fc.fixed;return{tl:eu,tr:Td,bl:jf,br:Af,tex:{x:nt.paddedRect.x+Ou+$l,y:nt.paddedRect.y+Ou+Eh,w:Ru-$l,h:mc-Eh},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Us,pixelOffsetBR:_l,minFontScaleX:Ii/ct/hn,minFontScaleY:Zi/ct/mn,isSDF:ue}};if(Ae&&(nt.stretchX||nt.stretchY))for(var ea=XO(Dn,Kr,mr),as=XO(Xn,Hr,Or),Da=0;Da0&&($n=Math.max(10,$n),this.circleDiameter=$n)}else{var mr=nt.top*ct-Pt,Or=nt.bottom*ct+Pt,Kr=nt.left*ct-Pt,Hr=nt.right*ct+Pt,fo=nt.collisionPadding;if(fo&&(Kr-=fo[0]*ct,mr-=fo[1]*ct,Hr+=fo[2]*ct,Or+=fo[3]*ct),hn){var mo=new a(Kr,mr),Io=new a(Hr,mr),Qo=new a(Kr,Or),Po=new a(Hr,Or),Ii=hn*Math.PI/180;mo._rotate(Ii),Io._rotate(Ii),Qo._rotate(Ii),Po._rotate(Ii),Kr=Math.min(mo.x,Io.x,Qo.x,Po.x),Hr=Math.max(mo.x,Io.x,Qo.x,Po.x),mr=Math.min(mo.y,Io.y,Qo.y,Po.y),Or=Math.max(mo.y,Io.y,Qo.y,Po.y)}F.emplaceBack(G.x,G.y,Kr,mr,Hr,Or,ue,Ae,He)}this.boxEndIndex=F.length},_p=function(F,G){if(F===void 0&&(F=[]),G===void 0&&(G=op),this.data=F,this.length=this.data.length,this.compare=G,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};function op(F,G){return FG?1:0}function GO(F,G,ue){G===void 0&&(G=1),ue===void 0&&(ue=!1);for(var Ae=1/0,He=1/0,nt=-1/0,ct=-1/0,Pt=F[0],jt=0;jtnt)&&(nt=hn.x),(!jt||hn.y>ct)&&(ct=hn.y)}var mn=nt-Ae,Dn=ct-He,Xn=Math.min(mn,Dn),$n=Xn/2,mr=new _p([],Ob);if(Xn===0)return new a(Ae,He);for(var Or=Ae;OrHr.d||!Hr.d)&&(Hr=mo,ue&&console.log("found best %d after %d probes",Math.round(1e4*mo.d)/1e4,fo)),mo.max-Hr.d<=G||($n=mo.h/2,mr.push(new s1(mo.p.x-$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x-$n,mo.p.y+$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y+$n,$n,F)),fo+=4)}return ue&&(console.log("num probes: "+fo),console.log("best distance: "+Hr.d)),Hr.p}function Ob(F,G){return G.max-F.max}function s1(F,G,ue,Ae){this.p=new a(F,G),this.h=ue,this.d=function(He,nt){for(var ct=!1,Pt=1/0,jt=0;jtHe.y!=mr.y>He.y&&He.x<(mr.x-$n.x)*(He.y-$n.y)/(mr.y-$n.y)+$n.x&&(ct=!ct),Pt=Math.min(Pt,Pu(He,$n,mr))}return(ct?1:-1)*Math.sqrt(Pt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}_p.prototype.push=function(F){this.data.push(F),this.length++,this._up(this.length-1)},_p.prototype.pop=function(){if(this.length!==0){var F=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),F}},_p.prototype.peek=function(){return this.data[0]},_p.prototype._up=function(F){for(var G=this.data,ue=this.compare,Ae=G[F];F>0;){var He=F-1>>1,nt=G[He];if(ue(Ae,nt)>=0)break;G[F]=nt,F=He}G[F]=Ae},_p.prototype._down=function(F){for(var G=this.data,ue=this.compare,Ae=this.length>>1,He=G[F];F=0)break;G[F]=ct,F=nt}G[F]=He};var Um=7,h0=Number.POSITIVE_INFINITY;function p0(F,G){return G[1]!==h0?function(ue,Ae,He){var nt=0,ct=0;switch(Ae=Math.abs(Ae),He=Math.abs(He),ue){case"top-right":case"top-left":case"top":ct=He-Um;break;case"bottom-right":case"bottom-left":case"bottom":ct=-He+Um}switch(ue){case"top-right":case"bottom-right":case"right":nt=-Ae;break;case"top-left":case"bottom-left":case"left":nt=Ae}return[nt,ct]}(F,G[0],G[1]):function(ue,Ae){var He=0,nt=0;Ae<0&&(Ae=0);var ct=Ae/Math.sqrt(2);switch(ue){case"top-right":case"top-left":nt=ct-Um;break;case"bottom-right":case"bottom-left":nt=-ct+Um;break;case"bottom":nt=-Ae+Um;break;case"top":nt=Ae-Um}switch(ue){case"top-right":case"bottom-right":He=-ct;break;case"top-left":case"bottom-left":He=ct;break;case"left":He=Ae;break;case"right":He=-Ae}return[He,nt]}(F,G[0])}function Ss(F){switch(F){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var kd=255,Ah=kd*$m;function Sb(F,G,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=function(Io,Qo,Po,Ii,bi,Zi,ra,ka){for(var ea=Ii.layout.get("text-rotate").evaluate(Zi,{})*Math.PI/180,as=[],Da=0,ba=Qo.positionedLines;DaAh&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'):Kr.kind==="composite"&&((Hr=[$m*$n.compositeTextSizes[0].evaluate(ct,{},mr),$m*$n.compositeTextSizes[1].evaluate(ct,{},mr)])[0]>Ah||Hr[1]>Ah)&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'),F.addSymbols(F.text,Or,Hr,Pt,nt,ct,hn,G,jt.lineStartIndex,jt.lineLength,Xn,mr);for(var fo=0,mo=mn;fo=0;ct--)if(Ae.dist(nt[ct])0)&&(nt.value.kind!=="constant"||nt.value.value.length>0),hn=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,mn=He.get("symbol-sort-key");if(this.features=[],jt||hn){for(var Dn=G.iconDependencies,Xn=G.glyphDependencies,$n=G.availableImages,mr=new uo(this.zoom),Or=0,Kr=F;Or=0;for(var As=0,hc=bi.sections;As=0;Pt--)nt[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:He},Pt>0&&(He+=G[Pt-1].dist(G[Pt]));for(var jt=0;jt0},dc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},dc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},dc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},dc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},dc.prototype.addIndicesForPlacedSymbol=function(F,G){for(var ue=F.placedSymbolArray.get(G),Ae=ue.vertexStartIndex+4*ue.numGlyphs,He=ue.vertexStartIndex;He1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(F),this.sortedAngle=F,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,Ae=this.symbolInstanceIndexes;ue=0&&jt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),nt.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,nt.verticalPlacedTextSymbolIndex),nt.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.placedIconSymbolIndex),nt.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Ri("SymbolBucket",dc,{omit:["layers","collisionBoxArray","features","compareText"]}),dc.MAX_GLYPHS=65535,dc.addDynamicAttributes=lv;var uv=new _c({"symbol-placement":new Ki(_t.layout_symbol["symbol-placement"]),"symbol-spacing":new Ki(_t.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ki(_t.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Aa(_t.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ki(_t.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ki(_t.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ki(_t.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ki(_t.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ki(_t.layout_symbol["icon-rotation-alignment"]),"icon-size":new Aa(_t.layout_symbol["icon-size"]),"icon-text-fit":new Ki(_t.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ki(_t.layout_symbol["icon-text-fit-padding"]),"icon-image":new Aa(_t.layout_symbol["icon-image"]),"icon-rotate":new Aa(_t.layout_symbol["icon-rotate"]),"icon-padding":new Ki(_t.layout_symbol["icon-padding"]),"icon-keep-upright":new Ki(_t.layout_symbol["icon-keep-upright"]),"icon-offset":new Aa(_t.layout_symbol["icon-offset"]),"icon-anchor":new Aa(_t.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ki(_t.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ki(_t.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ki(_t.layout_symbol["text-rotation-alignment"]),"text-field":new Aa(_t.layout_symbol["text-field"]),"text-font":new Aa(_t.layout_symbol["text-font"]),"text-size":new Aa(_t.layout_symbol["text-size"]),"text-max-width":new Aa(_t.layout_symbol["text-max-width"]),"text-line-height":new Ki(_t.layout_symbol["text-line-height"]),"text-letter-spacing":new Aa(_t.layout_symbol["text-letter-spacing"]),"text-justify":new Aa(_t.layout_symbol["text-justify"]),"text-radial-offset":new Aa(_t.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ki(_t.layout_symbol["text-variable-anchor"]),"text-anchor":new Aa(_t.layout_symbol["text-anchor"]),"text-max-angle":new Ki(_t.layout_symbol["text-max-angle"]),"text-writing-mode":new Ki(_t.layout_symbol["text-writing-mode"]),"text-rotate":new Aa(_t.layout_symbol["text-rotate"]),"text-padding":new Ki(_t.layout_symbol["text-padding"]),"text-keep-upright":new Ki(_t.layout_symbol["text-keep-upright"]),"text-transform":new Aa(_t.layout_symbol["text-transform"]),"text-offset":new Aa(_t.layout_symbol["text-offset"]),"text-allow-overlap":new Ki(_t.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ki(_t.layout_symbol["text-ignore-placement"]),"text-optional":new Ki(_t.layout_symbol["text-optional"])}),Mh={paint:new _c({"icon-opacity":new Aa(_t.paint_symbol["icon-opacity"]),"icon-color":new Aa(_t.paint_symbol["icon-color"]),"icon-halo-color":new Aa(_t.paint_symbol["icon-halo-color"]),"icon-halo-width":new Aa(_t.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Aa(_t.paint_symbol["icon-halo-blur"]),"icon-translate":new Ki(_t.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ki(_t.paint_symbol["icon-translate-anchor"]),"text-opacity":new Aa(_t.paint_symbol["text-opacity"]),"text-color":new Aa(_t.paint_symbol["text-color"],{runtimeType:fr,getOverride:function(F){return F.textColor},hasOverride:function(F){return!!F.textColor}}),"text-halo-color":new Aa(_t.paint_symbol["text-halo-color"]),"text-halo-width":new Aa(_t.paint_symbol["text-halo-width"]),"text-halo-blur":new Aa(_t.paint_symbol["text-halo-blur"]),"text-translate":new Ki(_t.paint_symbol["text-translate"]),"text-translate-anchor":new Ki(_t.paint_symbol["text-translate-anchor"])}),layout:uv},Fp=function(F){this.type=F.property.overrides?F.property.overrides.runtimeType:_n,this.defaultValue=F};Fp.prototype.evaluate=function(F){if(F.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(F.formattedSection))return G.getOverride(F.formattedSection)}return F.feature&&F.featureState?this.defaultValue.evaluate(F.feature,F.featureState):this.defaultValue.property.specification.default},Fp.prototype.eachChild=function(F){this.defaultValue.isConstant()||F(this.defaultValue.value._styleExpression.expression)},Fp.prototype.outputDefined=function(){return!1},Fp.prototype.serialize=function(){return null},Ri("FormatSectionOverride",Fp,{omit:["defaultValue"]});var tw=function(F){function G(ue){F.call(this,ue,Mh)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(ue,Ae){if(F.prototype.recalculate.call(this,ue,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var He=this.layout.get("text-writing-mode");if(He){for(var nt=[],ct=0,Pt=He;ct",targetMapId:Ae,sourceMapId:nt.mapId})}}},hv.prototype.receive=function(F){var G=F.data,ue=G.id;if(ue&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[ue];var Ae=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[ue]=G,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,G)},hv.prototype.process=function(){if(this.taskQueue.length){var F=this.taskQueue.shift(),G=this.tasks[F];delete this.tasks[F],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(F,G)}},hv.prototype.processTask=function(F,G){var ue=this;if(G.type===""){var Ae=this.callbacks[F];delete this.callbacks[F],Ae&&(G.error?Ae(Kc(G.error)):Ae(null,Kc(G.data)))}else{var He=!1,nt=Z(this.globalScope)?void 0:[],ct=G.hasCallback?function(mn,Dn){He=!0,delete ue.cancelCallbacks[F],ue.target.postMessage({id:F,type:"",sourceMapId:ue.mapId,error:mn?xc(mn):null,data:xc(Dn,nt)},nt)}:function(mn){He=!0},Pt=null,jt=Kc(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,jt,ct);else if(this.parent.getWorkerSource){var hn=G.type.split(".");Pt=this.parent.getWorkerSource(G.sourceMapId,hn[0],jt.source)[hn[1]](jt,ct)}else ct(new Error("Could not find function "+G.type));!He&&Pt&&Pt.cancel&&(this.cancelCallbacks[F]=Pt.cancel)}},hv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var df=function(F,G){F&&(G?this.setSouthWest(F).setNorthEast(G):F.length===4?this.setSouthWest([F[0],F[1]]).setNorthEast([F[2],F[3]]):this.setSouthWest(F[0]).setNorthEast(F[1]))};df.prototype.setNorthEast=function(F){return this._ne=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.setSouthWest=function(F){return this._sw=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.extend=function(F){var G,ue,Ae=this._sw,He=this._ne;if(F instanceof uu)G=F,ue=F;else{if(!(F instanceof df)){if(Array.isArray(F)){if(F.length===4||F.every(Array.isArray)){var nt=F;return this.extend(df.convert(nt))}var ct=F;return this.extend(uu.convert(ct))}return this}if(G=F._sw,ue=F._ne,!G||!ue)return this}return Ae||He?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),He.lng=Math.max(ue.lng,He.lng),He.lat=Math.max(ue.lat,He.lat)):(this._sw=new uu(G.lng,G.lat),this._ne=new uu(ue.lng,ue.lat)),this},df.prototype.getCenter=function(){return new uu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},df.prototype.getSouthWest=function(){return this._sw},df.prototype.getNorthEast=function(){return this._ne},df.prototype.getNorthWest=function(){return new uu(this.getWest(),this.getNorth())},df.prototype.getSouthEast=function(){return new uu(this.getEast(),this.getSouth())},df.prototype.getWest=function(){return this._sw.lng},df.prototype.getSouth=function(){return this._sw.lat},df.prototype.getEast=function(){return this._ne.lng},df.prototype.getNorth=function(){return this._ne.lat},df.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},df.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},df.prototype.isEmpty=function(){return!(this._sw&&this._ne)},df.prototype.contains=function(F){var G=uu.convert(F),ue=G.lng,Ae=G.lat,He=this._sw.lat<=Ae&&Ae<=this._ne.lat,nt=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(nt=this._sw.lng>=ue&&ue>=this._ne.lng),He&&nt},df.convert=function(F){return!F||F instanceof df?F:new df(F)};var Tb=63710088e-1,uu=function(F,G){if(isNaN(F)||isNaN(G))throw new Error("Invalid LngLat object: ("+F+", "+G+")");if(this.lng=+F,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};uu.prototype.wrap=function(){return new uu(C(this.lng,-180,180),this.lat)},uu.prototype.toArray=function(){return[this.lng,this.lat]},uu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},uu.prototype.distanceTo=function(F){var G=Math.PI/180,ue=this.lat*G,Ae=F.lat*G,He=Math.sin(ue)*Math.sin(Ae)+Math.cos(ue)*Math.cos(Ae)*Math.cos((F.lng-this.lng)*G);return Tb*Math.acos(Math.min(He,1))},uu.prototype.toBounds=function(F){F===void 0&&(F=0);var G=360*F/40075017,ue=G/Math.cos(Math.PI/180*this.lat);return new df(new uu(this.lng-ue,this.lat-G),new uu(this.lng+ue,this.lat+G))},uu.convert=function(F){if(F instanceof uu)return F;if(Array.isArray(F)&&(F.length===2||F.length===3))return new uu(Number(F[0]),Number(F[1]));if(!Array.isArray(F)&&typeof F=="object"&&F!==null)return new uu(Number("lng"in F?F.lng:F.lon),Number(F.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Cb=2*Math.PI*Tb;function Kx(F){return Cb*Math.cos(F*Math.PI/180)}function Jx(F){return(180+F)/360}function iw(F){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+F*Math.PI/360)))/360}function e3(F,G){return F/Kx(G)}function lm(F){var G=180-360*F;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var u1=function(F,G,ue){ue===void 0&&(ue=0),this.x=+F,this.y=+G,this.z=+ue};u1.fromLngLat=function(F,G){G===void 0&&(G=0);var ue=uu.convert(F);return new u1(Jx(ue.lng),iw(ue.lat),e3(G,ue.lat))},u1.prototype.toLngLat=function(){return new uu(360*this.x-180,lm(this.y))},u1.prototype.toAltitude=function(){return F=this.z,G=this.y,F*Kx(lm(G));var F,G},u1.prototype.meterInMercatorCoordinateUnits=function(){return 1/Cb*(F=lm(this.y),1/Math.cos(F*Math.PI/180));var F};var cm=function(F,G,ue){this.z=F,this.x=G,this.y=ue,this.key=f1(0,F,F,G,ue)};cm.prototype.equals=function(F){return this.z===F.z&&this.x===F.x&&this.y===F.y},cm.prototype.url=function(F,G){var ue,Ae,He,nt,ct,Pt=(ue=this.x,Ae=this.y,He=this.z,nt=Gx(256*ue,256*(Ae=Math.pow(2,He)-Ae-1),He),ct=Gx(256*(ue+1),256*(Ae+1),He),nt[0]+","+nt[1]+","+ct[0]+","+ct[1]),jt=function(hn,mn,Dn){for(var Xn,$n="",mr=hn;mr>0;mr--)$n+=(mn&(Xn=1<this.canonical.z?new hf(F,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hf(F,this.wrap,F,this.canonical.x>>G,this.canonical.y>>G)},hf.prototype.calculateScaledKey=function(F,G){var ue=this.canonical.z-F;return F>this.canonical.z?f1(this.wrap*+G,F,this.canonical.z,this.canonical.x,this.canonical.y):f1(this.wrap*+G,F,F,this.canonical.x>>ue,this.canonical.y>>ue)},hf.prototype.isChildOf=function(F){if(F.wrap!==this.wrap)return!1;var G=this.canonical.z-F.canonical.z;return F.overscaledZ===0||F.overscaledZ>G&&F.canonical.y===this.canonical.y>>G},hf.prototype.children=function(F){if(this.overscaledZ>=F)return[new hf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,ue=2*this.canonical.x,Ae=2*this.canonical.y;return[new hf(G,this.wrap,G,ue,Ae),new hf(G,this.wrap,G,ue+1,Ae),new hf(G,this.wrap,G,ue,Ae+1),new hf(G,this.wrap,G,ue+1,Ae+1)]},hf.prototype.isLessThan=function(F){return this.wrapF.wrap)&&(this.overscaledZF.overscaledZ)&&(this.canonical.xF.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(F+1)},jm.prototype._unpackMapbox=function(F,G,ue){return(256*F*256+256*G+ue)/10-1e4},jm.prototype._unpackTerrarium=function(F,G,ue){return 256*F+G+ue/256-32768},jm.prototype.getPixels=function(){return new kf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jm.prototype.backfillBorder=function(F,G,ue){if(this.dim!==F.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,He=G*this.dim+this.dim,nt=ue*this.dim,ct=ue*this.dim+this.dim;switch(G){case-1:Ae=He-1;break;case 1:He=Ae+1}switch(ue){case-1:nt=ct-1;break;case 1:ct=nt+1}for(var Pt=-G*this.dim,jt=-ue*this.dim,hn=nt;hn=0&&mn[3]>=0&&Pt.insert(ct,mn[0],mn[1],mn[2],mn[3])}},m0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _g.VectorTile(new Ux(this.rawTileData)).layers,this.sourceLayerCoder=new mv(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},m0.prototype.query=function(F,G,ue,Ae){var He=this;this.loadVTLayers();for(var nt=F.params||{},ct=ua/F.tileSize/F.scale,Pt=xd(nt.filter),jt=F.queryGeometry,hn=F.queryPadding*ct,mn=v0(jt),Dn=this.grid.query(mn.minX-hn,mn.minY-hn,mn.maxX+hn,mn.maxY+hn),Xn=v0(F.cameraQueryGeometry),$n=0,mr=this.grid3D.query(Xn.minX-hn,Xn.minY-hn,Xn.maxX+hn,Xn.maxY+hn,function(Io,Qo,Po,Ii){return function(bi,Zi,ra,ka,ea){for(var as=0,Da=bi;as=ba.x&&ea>=ba.y)return!0}var fl=[new a(Zi,ra),new a(Zi,ea),new a(ka,ea),new a(ka,ra)];if(bi.length>2){for(var As=0,hc=fl;As=0)return!0;return!1}(nt,Dn)){var Xn=this.sourceLayerCoder.decode(ue),$n=this.vtLayers[Xn].feature(Ae);if(He.needGeometry){var mr=Is($n,!0);if(!He.filter(new uo(this.tileID.overscaledZ),mr,this.tileID.canonical))return}else if(!He.filter(new uo(this.tileID.overscaledZ),$n))return;for(var Or=this.getId($n,Xn),Kr=0;KrAe)He=!1;else if(G)if(this.expirationTimeot&&(F.getActor().send("enforceCacheSizeLimit",tt),Yt=0)},i.clamp=O,i.clearTileCache=function(F){var G=h.caches.delete(je);F&&G.catch(F).then(function(){return F()})},i.clipLine=_b,i.clone=function(F){var G=new wu(16);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G[3]=F[3],G[4]=F[4],G[5]=F[5],G[6]=F[6],G[7]=F[7],G[8]=F[8],G[9]=F[9],G[10]=F[10],G[11]=F[11],G[12]=F[12],G[13]=F[13],G[14]=F[14],G[15]=F[15],G},i.clone$1=I,i.clone$2=function(F){var G=new wu(3);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G},i.collisionCircleLayout=qO,i.config=ce,i.create=function(){var F=new wu(16);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[11]=0,F[12]=0,F[13]=0,F[14]=0),F[0]=1,F[5]=1,F[10]=1,F[15]=1,F},i.create$1=function(){var F=new wu(9);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[5]=0,F[6]=0,F[7]=0),F[0]=1,F[4]=1,F[8]=1,F},i.create$2=function(){var F=new wu(4);return wu!=Float32Array&&(F[1]=0,F[2]=0),F[0]=1,F[3]=1,F},i.createCommonjsModule=S,i.createExpression=zu,i.createLayout=Si,i.createStyleLayer=function(F){return F.type==="custom"?new rw(F):new JO[F.type](F)},i.cross=function(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=ue[0],Pt=ue[1],jt=ue[2];return F[0]=He*jt-nt*Pt,F[1]=nt*ct-Ae*jt,F[2]=Ae*Pt-He*ct,F},i.deepEqual=function F(G,ue){if(Array.isArray(G)){if(!Array.isArray(ue)||G.length!==ue.length)return!1;for(var Ae=0;Ae0&&(nt=1/Math.sqrt(nt)),F[0]=G[0]*nt,F[1]=G[1]*nt,F[2]=G[2]*nt,F},i.number=Di,i.offscreenCanvasSupported=ln,i.ortho=function(F,G,ue,Ae,He,nt,ct){var Pt=1/(G-ue),jt=1/(Ae-He),hn=1/(nt-ct);return F[0]=-2*Pt,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=-2*jt,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=2*hn,F[11]=0,F[12]=(G+ue)*Pt,F[13]=(He+Ae)*jt,F[14]=(ct+nt)*hn,F[15]=1,F},i.parseGlyphPBF=function(F){return new Ux(F).readFields(Y_,[])},i.pbf=Ux,i.performSymbolLayout=function(F,G,ue,Ae,He,nt,ct){F.createArrays();var Pt=512*F.overscaling;F.tilePixelRatio=ua/Pt,F.compareText={},F.iconsNeedLinear=!1;var jt=F.layers[0].layout,hn=F.layers[0]._unevaluatedLayout._values,mn={};if(F.textSizeData.kind==="composite"){var Dn=F.textSizeData,Xn=Dn.minZoom,$n=Dn.maxZoom;mn.compositeTextSizes=[hn["text-size"].possiblyEvaluate(new uo(Xn),ct),hn["text-size"].possiblyEvaluate(new uo($n),ct)]}if(F.iconSizeData.kind==="composite"){var mr=F.iconSizeData,Or=mr.minZoom,Kr=mr.maxZoom;mn.compositeIconSizes=[hn["icon-size"].possiblyEvaluate(new uo(Or),ct),hn["icon-size"].possiblyEvaluate(new uo(Kr),ct)]}mn.layoutTextSize=hn["text-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.layoutIconSize=hn["icon-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.textMaxSize=hn["text-size"].possiblyEvaluate(new uo(18));for(var Hr=jt.get("text-line-height")*Oc,fo=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",mo=jt.get("text-keep-upright"),Io=jt.get("text-size"),Qo=function(){var bi=Ii[Po],Zi=jt.get("text-font").evaluate(bi,{},ct).join(","),ra=Io.evaluate(bi,{},ct),ka=mn.layoutTextSize.evaluate(bi,{},ct),ea=mn.layoutIconSize.evaluate(bi,{},ct),as={horizontal:{},vertical:void 0},Da=bi.text,ba=[0,0];if(Da){var fl=Da.toString(),As=jt.get("text-letter-spacing").evaluate(bi,{},ct)*Oc,hc=function(Us){for(var _l=0,fu=Us;_l=ua||O0.y<0||O0.y>=ua||function(hu,ip,$4,qm,lw,cw,o2,$p,Rb,Lb,Sy,bv,uw,fw,ud,i2,a2,s2,Ib,n3,Ph,Db,l2,fm,r3){var xv,g1,_v,wv,ky,Ov=hu.addToLineVertexArray(ip,$4),dw=0,o3=0,Bb=0,hw=0,v1=-1,c2=-1,Wm={},pw=Yo(""),mw=0,wp=0;if($p._unevaluatedLayout.getValue("text-radial-offset")===void 0?(mw=(xv=$p.layout.get("text-offset").evaluate(Ph,{},fm).map(function(y1){return y1*Oc}))[0],wp=xv[1]):(mw=$p.layout.get("text-radial-offset").evaluate(Ph,{},fm)*Oc,wp=h0),hu.allowVerticalPlacement&&qm.vertical){var zb=$p.layout.get("text-rotate").evaluate(Ph,{},fm)+90,u2=qm.vertical;wv=new Vm(Rb,ip,Lb,Sy,bv,u2,uw,fw,ud,zb),o2&&(ky=new Vm(Rb,ip,Lb,Sy,bv,o2,a2,s2,ud,zb))}if(lw){var Hf=$p.layout.get("icon-rotate").evaluate(Ph,{}),V4=$p.layout.get("icon-text-fit")!=="none",ap=Wx(lw,Hf,l2,V4),Nb=o2?Wx(o2,Hf,l2,V4):void 0;_v=new Vm(Rb,ip,Lb,Sy,bv,lw,a2,s2,!1,Hf),dw=4*ap.length;var i3=hu.iconSizeData,dm=null;i3.kind==="source"?(dm=[$m*$p.layout.get("icon-size").evaluate(Ph,{})])[0]>Ah&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'):i3.kind==="composite"&&((dm=[$m*Db.compositeIconSizes[0].evaluate(Ph,{},fm),$m*Db.compositeIconSizes[1].evaluate(Ph,{},fm)])[0]>Ah||dm[1]>Ah)&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'),hu.addSymbols(hu.icon,ap,dm,n3,Ib,Ph,!1,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),v1=hu.icon.placedSymbolArray.length-1,Nb&&(o3=4*Nb.length,hu.addSymbols(hu.icon,Nb,dm,n3,Ib,Ph,Qh.vertical,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),c2=hu.icon.placedSymbolArray.length-1)}for(var Ty in qm.horizontal){var f2=qm.horizontal[Ty];if(!g1){pw=Yo(f2.text);var a3=$p.layout.get("text-rotate").evaluate(Ph,{},fm);g1=new Vm(Rb,ip,Lb,Sy,bv,f2,uw,fw,ud,a3)}var d2=f2.positionedLines.length===1;if(Bb+=Sb(hu,ip,f2,cw,$p,ud,Ph,i2,Ov,qm.vertical?Qh.horizontal:Qh.horizontalOnly,d2?Object.keys(qm.horizontal):[Ty],Wm,v1,Db,fm),d2)break}qm.vertical&&(hw+=Sb(hu,ip,qm.vertical,cw,$p,ud,Ph,i2,Ov,Qh.vertical,["vertical"],Wm,c2,Db,fm));var s3=g1?g1.boxStartIndex:hu.collisionBoxArray.length,h2=g1?g1.boxEndIndex:hu.collisionBoxArray.length,Fb=wv?wv.boxStartIndex:hu.collisionBoxArray.length,l3=wv?wv.boxEndIndex:hu.collisionBoxArray.length,c3=_v?_v.boxStartIndex:hu.collisionBoxArray.length,U4=_v?_v.boxEndIndex:hu.collisionBoxArray.length,p2=ky?ky.boxStartIndex:hu.collisionBoxArray.length,m2=ky?ky.boxEndIndex:hu.collisionBoxArray.length,Mg=-1,S0=function(y1,g2){return y1&&y1.circleDiameter?Math.max(y1.circleDiameter,g2):g2};Mg=S0(g1,Mg),Mg=S0(wv,Mg),Mg=S0(_v,Mg);var gw=(Mg=S0(ky,Mg))>-1?1:0;gw&&(Mg*=r3/Oc),hu.glyphOffsetArray.length>=dc.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ph.sortKey!==void 0&&hu.addToSortKeyRanges(hu.symbolInstances.length,Ph.sortKey),hu.symbolInstances.emplaceBack(ip.x,ip.y,Wm.right>=0?Wm.right:-1,Wm.center>=0?Wm.center:-1,Wm.left>=0?Wm.left:-1,Wm.vertical||-1,v1,c2,pw,s3,h2,Fb,l3,c3,U4,p2,m2,Lb,Bb,hw,dw,o3,gw,0,uw,mw,wp,Mg)}(Us,O0,t3,fu,ni,Wc,Qm,Us.layers[0],Us.collisionBoxArray,_l.index,_l.sourceLayerIndex,Us.index,t2,dl,Iu,Eh,Lu,Mf,vv,tu,_l,Yc,mc,dh,$l)};if(h1==="line")for(var b0=0,Hm=_b(_l.geometry,0,0,ua,ua);b01){var wy=a1(_y,du,fu.vertical||qd,ni,Cd,gv);wy&&p1(_y,wy)}}else if(_l.type==="Polygon")for(var Md=0,m1=bg(_l.geometry,0);Md=Br.maxzoom||Br.visibility!=="none"&&(c(tr,this.zoom,st),(Jt[Br.id]=Br.createBucket({index:at.bucketLayerIDs.length,layers:tr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_n,sourceID:this.source})).populate(wn,Zt,this.tileID.canonical),at.bucketLayerIDs.push(tr.map(function(sr){return sr.id})))}}}var $r=i.mapObject(Zt.glyphDependencies,function(sr){return Object.keys(sr).map(Number)});Object.keys($r).length?bt.send("getGlyphs",{uid:this.uid,stacks:$r},function(sr,lr){Bt||(Bt=sr,_t=lr,gr.call(Dt))}):_t={};var vr=Object.keys(Zt.iconDependencies);vr.length?bt.send("getImages",{icons:vr,source:this.source,tileID:this.tileID,type:"icons"},function(sr,lr){Bt||(Bt=sr,qt=lr,gr.call(Dt))}):qt={};var qn=Object.keys(Zt.patternDependencies);function gr(){if(Bt)return Vt(Bt);if(_t&&qt&&en){var sr=new m(_t),lr=new i.ImageAtlas(qt,en);for(var zr in Jt){var Vr=Jt[zr];Vr instanceof i.SymbolBucket?(c(Vr.layers,this.zoom,st),i.performSymbolLayout(Vr,_t,sr.positions,qt,lr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vr.hasPattern&&(Vr instanceof i.LineBucket||Vr instanceof i.FillBucket||Vr instanceof i.FillExtrusionBucket)&&(c(Vr.layers,this.zoom,st),Vr.addFeatures(Zt,this.tileID.canonical,lr.patternPositions))}this.status="done",Vt(null,{buckets:i.values(Jt).filter(function(eo){return!eo.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:sr.image,imageAtlas:lr,glyphMap:this.returnDependencies?_t:null,iconMap:this.returnDependencies?qt:null,glyphPositions:this.returnDependencies?sr.positions:null})}}qn.length?bt.send("getImages",{icons:qn,source:this.source,tileID:this.tileID,type:"patterns"},function(sr,lr){Bt||(Bt=sr,en=lr,gr.call(Dt))}):en={},gr.call(this)};var p=function(vt,xt,st,bt){this.actor=vt,this.layerIndex=xt,this.availableImages=st,this.loadVectorData=bt||h,this.loading={},this.loaded={}};p.prototype.loadTile=function(vt,xt){var st=this,bt=vt.uid;this.loading||(this.loading={});var Vt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Dt=this.loading[bt]=new a(vt);Dt.abort=this.loadVectorData(vt,function(it,at){if(delete st.loading[bt],it||!at)return Dt.status="done",st.loaded[bt]=Dt,xt(it);var Bt=at.rawData,_t={};at.expires&&(_t.expires=at.expires),at.cacheControl&&(_t.cacheControl=at.cacheControl);var qt={};if(Vt){var en=Vt.finish();en&&(qt.resourceTiming=JSON.parse(JSON.stringify(en)))}Dt.vectorTile=at.vectorTile,Dt.parse(at.vectorTile,st.layerIndex,st.availableImages,st.actor,function(Jt,Zt){if(Jt||!Zt)return xt(Jt);xt(null,i.extend({rawTileData:Bt.slice(0)},Zt,_t,qt))}),st.loaded=st.loaded||{},st.loaded[bt]=Dt})},p.prototype.reloadTile=function(vt,xt){var st=this,bt=this.loaded,Vt=vt.uid,Dt=this;if(bt&&bt[Vt]){var it=bt[Vt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Bt,_t){var qt=it.reloadCallback;qt&&(delete it.reloadCallback,it.parse(it.vectorTile,Dt.layerIndex,st.availableImages,Dt.actor,qt)),xt(Bt,_t)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},p.prototype.abortTile=function(vt,xt){var st=this.loading,bt=vt.uid;st&&st[bt]&&st[bt].abort&&(st[bt].abort(),delete st[bt]),xt()},p.prototype.removeTile=function(vt,xt){var st=this.loaded,bt=vt.uid;st&&st[bt]&&delete st[bt],xt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,xt){var st=vt.uid,bt=vt.encoding,Vt=vt.rawImageData,Dt=v&&Vt instanceof v?this.getImageData(Vt):Vt,it=new i.DEMData(st,Dt,bt);this.loaded=this.loaded||{},this.loaded[st]=it,xt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var xt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:xt.width,height:xt.height},xt.data)},_.prototype.removeTile=function(vt){var xt=this.loaded,st=vt.uid;xt&&xt[st]&&delete xt[st]};var O=function vt(xt,st){var bt,Vt=xt&&xt.type;if(Vt==="FeatureCollection")for(bt=0;bt=0!=!!xt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],xt=0,st=this._feature.geometry;xt>31}function K(vt,xt){for(var st=vt.loadGeometry(),bt=vt.type,Vt=0,Dt=0,it=st.length,at=0;at>1;Y(vt,xt,it,bt,Vt,Dt%2),q(vt,xt,st,bt,it-1,Dt+1),q(vt,xt,st,it+1,Vt,Dt+1)}}function Y(vt,xt,st,bt,Vt,Dt){for(;Vt>bt;){if(Vt-bt>600){var it=Vt-bt+1,at=st-bt+1,Bt=Math.log(it),_t=.5*Math.exp(2*Bt/3),qt=.5*Math.sqrt(Bt*_t*(it-_t)/it)*(at-it/2<0?-1:1);Y(vt,xt,st,Math.max(bt,Math.floor(st-at*_t/it+qt)),Math.min(Vt,Math.floor(st+(it-at)*_t/it+qt)),Dt)}var en=xt[2*st+Dt],Jt=bt,Zt=Vt;for(ee(vt,xt,bt,st),xt[2*Vt+Dt]>en&&ee(vt,xt,bt,Vt);Jten;)Zt--}xt[2*bt+Dt]===en?ee(vt,xt,bt,Zt):ee(vt,xt,++Zt,Vt),Zt<=st&&(bt=Zt+1),st<=Zt&&(Vt=Zt-1)}}function ee(vt,xt,st,bt){me(vt,st,bt),me(xt,2*st,2*bt),me(xt,2*st+1,2*bt+1)}function me(vt,xt,st){var bt=vt[xt];vt[xt]=vt[st],vt[st]=bt}function pe(vt,xt,st,bt){var Vt=vt-st,Dt=xt-bt;return Vt*Vt+Dt*Dt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,xt,st,bt,Vt){xt===void 0&&(xt=se),st===void 0&&(st=ae),bt===void 0&&(bt=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=bt,this.points=vt;for(var Dt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Dt(vt.length),at=this.coords=new Vt(2*vt.length),Bt=0;Bt=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[wn]);else{var An=Math.floor((_n+rn)/2);en=Dt[2*An],Jt=Dt[2*An+1],en>=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[An]);var Kn=(sn+1)%2;(sn===0?it<=en:at<=Jt)&&(Zt.push(_n),Zt.push(An-1),Zt.push(Kn)),(sn===0?Bt>=en:_t>=Jt)&&(Zt.push(An+1),Zt.push(rn),Zt.push(Kn))}}return Nt}(this.ids,this.coords,vt,xt,st,bt,this.nodeSize)},ce.prototype.within=function(vt,xt,st){return function(bt,Vt,Dt,it,at,Bt){for(var _t=[0,bt.length-1,0],qt=[],en=at*at;_t.length;){var Jt=_t.pop(),Zt=_t.pop(),Nt=_t.pop();if(Zt-Nt<=Bt)for(var sn=Nt;sn<=Zt;sn++)pe(Vt[2*sn],Vt[2*sn+1],Dt,it)<=en&&qt.push(bt[sn]);else{var rn=Math.floor((Nt+Zt)/2),_n=Vt[2*rn],wn=Vt[2*rn+1];pe(_n,wn,Dt,it)<=en&&qt.push(bt[rn]);var An=(Jt+1)%2;(Jt===0?Dt-at<=_n:it-at<=wn)&&(_t.push(Nt),_t.push(rn-1),_t.push(An)),(Jt===0?Dt+at>=_n:it+at>=wn)&&(_t.push(rn+1),_t.push(Zt),_t.push(An))}}return qt}(this.ids,this.coords,vt,xt,st,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ye=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ve(vt,xt,st,bt,Vt){return{x:vt,y:xt,zoom:1/0,id:st,parentId:-1,numPoints:bt,properties:Vt}}function _e(vt,xt){var st=vt.geometry.coordinates,bt=st[0],Vt=st[1];return{x:Pe(bt),y:Ie(Vt),zoom:1/0,index:xt,parentId:-1}}function we(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(bt=vt.x,360*(bt-.5)),(xt=vt.y,st=(180-360*xt)*Math.PI/180,360*Math.atan(Math.exp(st))/Math.PI-90)]}};var xt,st,bt}function Te(vt){var xt=vt.numPoints,st=xt>=1e4?Math.round(xt/1e3)+"k":xt>=1e3?Math.round(xt/100)/10+"k":xt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:xt,point_count_abbreviated:st})}function Pe(vt){return vt/360+.5}function Ie(vt){var xt=Math.sin(vt*Math.PI/180),st=.5-.25*Math.log((1+xt)/(1-xt))/Math.PI;return st<0?0:st>1?1:st}function ze(vt,xt){for(var st in xt)vt[st]=xt[st];return vt}function De(vt){return vt.x}function Qe(vt){return vt.y}function Ve(vt,xt,st,bt){for(var Vt,Dt=bt,it=st-xt>>1,at=st-xt,Bt=vt[xt],_t=vt[xt+1],qt=vt[st],en=vt[st+1],Jt=xt+3;JtDt)Vt=Jt,Dt=Zt;else if(Zt===Dt){var Nt=Math.abs(Jt-it);Ntbt&&(Vt-xt>3&&Ve(vt,xt,Vt,bt),vt[Vt+2]=Dt,st-Vt>3&&Ve(vt,Vt,st,bt))}function $e(vt,xt,st,bt,Vt,Dt){var it=Vt-st,at=Dt-bt;if(it!==0||at!==0){var Bt=((vt-st)*it+(xt-bt)*at)/(it*it+at*at);Bt>1?(st=Vt,bt=Dt):Bt>0&&(st+=it*Bt,bt+=at*Bt)}return(it=vt-st)*it+(at=xt-bt)*at}function Oe(vt,xt,st,bt){var Vt={id:vt===void 0?null:vt,type:xt,geometry:st,tags:bt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dt){var it=Dt.geometry,at=Dt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Dt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Bt=0;Bt0&&(it+=bt?(Vt*_t-Bt*Dt)/2:Math.sqrt(Math.pow(Bt-Vt,2)+Math.pow(_t-Dt,2))),Vt=Bt,Dt=_t}var qt=xt.length-3;xt[2]=1,Ve(xt,0,qt,st),xt[qt+2]=1,xt.size=Math.abs(it),xt.start=0,xt.end=xt.size}function Ze(vt,xt,st,bt){for(var Vt=0;Vt1?1:st}function Me(vt,xt,st,bt,Vt,Dt,it,at){if(bt/=xt,Dt>=(st/=xt)&&it=bt)return null;for(var Bt=[],_t=0;_t=st&&Nt=bt)){var sn=[];if(Jt==="Point"||Jt==="MultiPoint")Fe(en,sn,st,bt,Vt);else if(Jt==="LineString")je(en,sn,st,bt,Vt,!1,at.lineMetrics);else if(Jt==="MultiLineString")ot(en,sn,st,bt,Vt,!1);else if(Jt==="Polygon")ot(en,sn,st,bt,Vt,!0);else if(Jt==="MultiPolygon")for(var rn=0;rn=st&&it<=bt&&(xt.push(vt[Dt]),xt.push(vt[Dt+1]),xt.push(vt[Dt+2]))}}function je(vt,xt,st,bt,Vt,Dt,it){for(var at,Bt,_t=tt(vt),qt=Vt===0?ht:pt,en=vt.start,Jt=0;Jtst&&(Bt=qt(_t,Zt,Nt,rn,_n,st),it&&(_t.start=en+at*Bt)):wn>bt?An=st&&(Bt=qt(_t,Zt,Nt,rn,_n,st),Kn=!0),An>bt&&wn<=bt&&(Bt=qt(_t,Zt,Nt,rn,_n,bt),Kn=!0),!Dt&&Kn&&(it&&(_t.end=en+at*Bt),xt.push(_t),_t=tt(vt)),it&&(en+=at)}var fr=vt.length-3;Zt=vt[fr],Nt=vt[fr+1],sn=vt[fr+2],(wn=Vt===0?Zt:Nt)>=st&&wn<=bt&&Ge(_t,Zt,Nt,sn),fr=_t.length-3,Dt&&fr>=3&&(_t[fr]!==_t[0]||_t[fr+1]!==_t[1])&&Ge(_t,_t[0],_t[1],_t[2]),_t.length&&xt.push(_t)}function tt(vt){var xt=[];return xt.size=vt.size,xt.start=vt.start,xt.end=vt.end,xt}function ot(vt,xt,st,bt,Vt,Dt){for(var it=0;itit.maxX&&(it.maxX=qt),en>it.maxY&&(it.maxY=en)}return it}function tn(vt,xt,st,bt){var Vt=xt.geometry,Dt=xt.type,it=[];if(Dt==="Point"||Dt==="MultiPoint")for(var at=0;at0&&xt.size<(Vt?it:bt))st.numPoints+=xt.length/3;else{for(var at=[],Bt=0;Btit)&&(st.numSimplified++,at.push(xt[Bt]),at.push(xt[Bt+1])),st.numPoints++;Vt&&function(_t,qt){for(var en=0,Jt=0,Zt=_t.length,Nt=Zt-2;Jt0===qt)for(Jt=0,Zt=_t.length;Jt24)throw new Error("maxZoom should be in the 0-24 range");if(xt.promoteId&&xt.generateId)throw new Error("promoteId and generateId cannot be used together.");var bt=function(Vt,Dt){var it=[];if(Vt.type==="FeatureCollection")for(var at=0;at=bt;_t--){var qt=+Date.now();at=this._cluster(at,_t),this.trees[_t]=new ce(at,De,Qe,Dt,Float32Array),st&&console.log("z%d: %d clusters in %dms",_t,at.length,+Date.now()-qt)}return st&&console.timeEnd("total time"),this},ye.prototype.getClusters=function(vt,xt){var st=((vt[0]+180)%360+360)%360-180,bt=Math.max(-90,Math.min(90,vt[1])),Vt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Dt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)st=-180,Vt=180;else if(st>Vt){var it=this.getClusters([st,bt,180,Dt],xt),at=this.getClusters([-180,bt,Vt,Dt],xt);return it.concat(at)}for(var Bt=this.trees[this._limitZoom(xt)],_t=[],qt=0,en=Bt.range(Pe(st),Ie(Dt),Pe(Vt),Ie(bt));qtxt&&(Nt+=wn.numPoints||1)}if(Nt>=at){for(var An=qt.x*Zt,Kn=qt.y*Zt,fr=it&&Zt>1?this._map(qt,!0):null,Un=(_t<<5)+(xt+1)+this.points.length,Zn=0,tr=Jt;Zn1)for(var qn=0,gr=Jt;qn>5},ye.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ye.prototype._map=function(vt,xt){if(vt.numPoints)return xt?ze({},vt.properties):vt.properties;var st=this.points[vt.index].properties,bt=this.options.map(st);return xt&&bt===st?ze({},bt):bt},Ot.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ot.prototype.splitTile=function(vt,xt,st,bt,Vt,Dt,it){for(var at=[vt,xt,st,bt],Bt=this.options,_t=Bt.debug;at.length;){bt=at.pop(),st=at.pop(),xt=at.pop(),vt=at.pop();var qt=1<1&&console.time("creation"),Jt=this.tiles[en]=ln(vt,xt,st,bt,Bt),this.tileCoords.push({z:xt,x:st,y:bt}),_t)){_t>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",xt,st,bt,Jt.numFeatures,Jt.numPoints,Jt.numSimplified),console.timeEnd("creation"));var Zt="z"+xt;this.stats[Zt]=(this.stats[Zt]||0)+1,this.total++}if(Jt.source=vt,Vt){if(xt===Bt.maxZoom||xt===Vt)continue;var Nt=1<1&&console.time("clipping");var sn,rn,_n,wn,An,Kn,fr=.5*Bt.buffer/Bt.extent,Un=.5-fr,Zn=.5+fr,tr=1+fr;sn=rn=_n=wn=null,An=Me(vt,qt,st-fr,st+Zn,0,Jt.minX,Jt.maxX,Bt),Kn=Me(vt,qt,st+Un,st+tr,0,Jt.minX,Jt.maxX,Bt),vt=null,An&&(sn=Me(An,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),rn=Me(An,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),An=null),Kn&&(_n=Me(Kn,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),wn=Me(Kn,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),Kn=null),_t>1&&console.timeEnd("clipping"),at.push(sn||[],xt+1,2*st,2*bt),at.push(rn||[],xt+1,2*st,2*bt+1),at.push(_n||[],xt+1,2*st+1,2*bt),at.push(wn||[],xt+1,2*st+1,2*bt+1)}}},Ot.prototype.getTile=function(vt,xt,st){var bt=this.options,Vt=bt.extent,Dt=bt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,xt,st);for(var Bt,_t=vt,qt=xt,en=st;!Bt&&_t>0;)_t--,qt=Math.floor(qt/2),en=Math.floor(en/2),Bt=this.tiles[cn(_t,qt,en)];return Bt&&Bt.source?(Dt>1&&console.log("found parent tile z%d-%d-%d",_t,qt,en),Dt>1&&console.time("drilling down"),this.splitTile(Bt.source,_t,qt,en,vt,xt,st),Dt>1&&console.timeEnd("drilling down"),this.tiles[at]?zt(this.tiles[at],Vt):null):null};var Pn=function(vt){function xt(st,bt,Vt,Dt){vt.call(this,st,bt,Vt,Cn),Dt&&(this.loadGeoJSON=Dt)}return vt&&(xt.__proto__=vt),xt.prototype=Object.create(vt&&vt.prototype),xt.prototype.constructor=xt,xt.prototype.loadData=function(st,bt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=bt,this._pendingLoadDataParams=st,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},xt.prototype._loadData=function(){var st=this;if(this._pendingCallback&&this._pendingLoadDataParams){var bt=this._pendingCallback,Vt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dt=!!(Vt&&Vt.request&&Vt.request.collectResourceTiming)&&new i.RequestPerformance(Vt.request);this.loadGeoJSON(Vt,function(it,at){if(it||!at)return bt(it);if(typeof at!="object")return bt(new Error("Input data given to '"+Vt.source+"' is not a valid GeoJSON object."));O(at,!0);try{if(Vt.filter){var Bt=i.createExpression(Vt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Bt.result==="error")throw new Error(Bt.value.map(function(Jt){return Jt.key+": "+Jt.message}).join(", "));var _t=at.features.filter(function(Jt){return Bt.value.evaluate({zoom:0},Jt)});at={type:"FeatureCollection",features:_t}}st._geoJSONIndex=Vt.cluster?new ye(function(Jt){var Zt=Jt.superclusterOptions,Nt=Jt.clusterProperties;if(!Nt||!Zt)return Zt;for(var sn={},rn={},_n={accumulated:null,zoom:0},wn={properties:null},An=Object.keys(Nt),Kn=0,fr=An;Kn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var C=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ne){if(this.loaded!==ne&&(this.loaded=ne,ne)){for(var V=0,ie=this.requestors;V=0?1.2:1))}function P(J,le,ne,V,ie,ge,xe){for(var Ee=0;Ee65535)et(new Error("glyphs > 65535 not supported"));else if(gt.ranges[Mt])et(null,{stack:rt,id:dt,glyph:Rt});else{var Xt=gt.requests[Mt];Xt||(Xt=gt.requests[Mt]=[],L.loadGlyphRange(rt,Mt,ne.url,ne.requestManager,function(dn,bn){if(bn){for(var vn in bn)ne._doesCharSupportLocalGlyph(+vn)||(gt.glyphs[+vn]=bn[+vn]);gt.ranges[Mt]=!0}for(var Ln=0,gn=Xt;Ln1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=void 0,Mt=ie/ne*(V+1);if(Ne.isDash){var Xt=V-Math.abs(Mt);Rt=Math.sqrt(gt*gt+Xt*Xt)}else Rt=V-Math.sqrt(gt*gt+Mt*Mt);this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ne=J[le],V=J[le+1];ne.zeroLength?J.splice(le,1):V&&V.isDash===ne.isDash&&(V.left=ne.left,J.splice(le,1))}var ie=J[0],ge=J[J.length-1];ie.isDash===ge.isDash&&(ie.left=ge.left-this.width,ge.right=ie.right+this.width);for(var xe=this.width*this.nextRow,Ee=0,Ne=J[Ee],et=0;et1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=Ne.isDash?gt:-gt;this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addDash=function(J,le){var ne=le?7:0,V=2*ne+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ie=0,ge=0;ge=ne&&J.x=V&&J.y0&&(et[new i.OverscaledTileID(ne.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,ne.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,Ne,V.z,Ee,V.y-1).key]={backfilled:!1}),V.y+10&&(ie.resourceTiming=ne._resourceTiming,ne._resourceTiming=[]),ne.fire(new i.Event("data",ie))}})},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setData=function(ne){var V=this;return this._data=ne,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ie){if(ie)V.fire(new i.ErrorEvent(ie));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ne,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterChildren=function(ne,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterLeaves=function(ne,V,ie,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ne,limit:V,offset:ie},ge),this},le.prototype._updateWorkerData=function(ne){var V=this;this._loaded=!1;var ie=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ie.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ie.request.collectResourceTiming=this._collectResourceTiming):ie.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ie,function(xe,Ee){V._removed||Ee&&Ee.abandoned||(V._loaded=!0,Ee&&Ee.resourceTiming&&Ee.resourceTiming[V.id]&&(V._resourceTiming=Ee.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ie.source},null),ne(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ne,V){var ie=this,ge=ne.actor?"reloadTile":"loadTile";ne.actor=this.actor;var xe={type:this.type,uid:ne.uid,tileID:ne.tileID,zoom:ne.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ne.request=this.actor.send(ge,xe,function(Ee,Ne){return delete ne.request,ne.unloadVectorData(),ne.aborted?V(null):Ee?V(Ee):(ne.loadVectorData(Ne,ie.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ne){ne.request&&(ne.request.cancel(),delete ne.request),ne.aborted=!0},le.prototype.unloadTile=function(ne){ne.unloadVectorData(),this.actor.send("removeTile",{uid:ne.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),re=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ne,V,ie,ge){J.call(this),this.id=ne,this.dispatcher=ie,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ne,V){var ie=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ie._loaded=!0,ge?ie.fire(new i.ErrorEvent(ge)):xe&&(ie.image=xe,ne&&(ie.coordinates=ne),V&&V(),ie._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ne){var V=this;return this.image&&ne.url?(this.options.url=ne.url,this.load(ne.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setCoordinates=function(ne){var V=this;this.coordinates=ne;var ie=ne.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Ee=1/0,Ne=1/0,et=-1/0,rt=-1/0,dt=0,gt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ne}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ne){this.map||(this.map=ne,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ne=this.map.painter.context,V=ne.gl;for(var ie in this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ne,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ie];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ne,V,ie,ge){J.call(this,ne,V,ie,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Ee){return typeof Ee!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ne){this.map=ne,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ne=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ne=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ne=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ie=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ne||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ie.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ne=0,V=[this.canvas.width,this.canvas.height];nethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ne=J.wrapped().key,V=le===void 0?0:this.data[ne].indexOf(le),ie=this.data[ne][V];return this.data[ne].splice(V,1),ie.timeout&&clearTimeout(ie.timeout),this.data[ne].length===0&&delete this.data[ne],this.onRemove(ie.value),this.order.splice(this.order.indexOf(ne),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ne in this.data)for(var V=0,ie=this.data[ne];V1||(Math.abs(rt)>1&&(Math.abs(rt+gt)===1?rt+=gt:Math.abs(rt-gt)===1&&(rt-=gt)),et.dem&&Ne.dem&&(Ne.dem.backfillBorder(et.dem,rt,dt),Ne.neighboringTiles&&Ne.neighboringTiles[Rt]&&(Ne.neighboringTiles[Rt].backfilled=!0)))}},le.prototype.getTile=function(ne){return this.getTileByID(ne.key)},le.prototype.getTileByID=function(ne){return this._tiles[ne]},le.prototype._retainLoadedChildren=function(ne,V,ie,ge){for(var xe in this._tiles){var Ee=this._tiles[xe];if(!(ge[xe]||!Ee.hasData()||Ee.tileID.overscaledZ<=V||Ee.tileID.overscaledZ>ie)){for(var Ne=Ee.tileID;Ee&&Ee.tileID.overscaledZ>V+1;){var et=Ee.tileID.scaledTo(Ee.tileID.overscaledZ-1);(Ee=this._tiles[et.key])&&Ee.hasData()&&(Ne=et)}for(var rt=Ne;rt.overscaledZ>V;)if(ne[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Ne.key]=Ne;break}}}},le.prototype.findLoadedParent=function(ne,V){if(ne.key in this._loadedParentTiles){var ie=this._loadedParentTiles[ne.key];return ie&&ie.tileID.overscaledZ>=V?ie:null}for(var ge=ne.overscaledZ-1;ge>=V;ge--){var xe=ne.scaledTo(ge),Ee=this._getLoadedTile(xe);if(Ee)return Ee}},le.prototype._getLoadedTile=function(ne){var V=this._tiles[ne.key];return V&&V.hasData()?V:this._cache.getByKey(ne.wrapped().key)},le.prototype.updateCacheSize=function(ne){var V=(Math.ceil(ne.width/this._source.tileSize)+1)*(Math.ceil(ne.height/this._source.tileSize)+1),ie=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ie):ie;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ne){var V=(ne-(this._prevLng===void 0?ne:this._prevLng))/360,ie=Math.round(V);if(this._prevLng=ne,ie){var ge={};for(var xe in this._tiles){var Ee=this._tiles[xe];Ee.tileID=Ee.tileID.unwrapTo(Ee.tileID.wrap+ie),ge[Ee.tileID.key]=Ee}for(var Ne in this._tiles=ge,this._timers)clearTimeout(this._timers[Ne]),delete this._timers[Ne];for(var et in this._tiles){var rt=this._tiles[et];this._setTileReloadTimer(et,rt)}}},le.prototype.update=function(ne){var V=this;if(this.transform=ne,this._sourceLoaded&&!this._paused){var ie;this.updateCacheSize(ne),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ie=ne.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(In){return new i.OverscaledTileID(In.canonical.z,In.wrap,In.canonical.z,In.canonical.x,In.canonical.y)}):(ie=ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ie=ie.filter(function(In){return V._source.hasTile(In)}))):ie=[];var ge=ne.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Ee=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Ne=this._updateRetainedTiles(ie,ge);if(it(this._source.type)){for(var et={},rt={},dt=0,gt=Object.keys(Ne);dtthis._source.maxzoom){var bn=Xt.children(this._source.maxzoom)[0],vn=this.getTile(bn);if(vn&&vn.hasData()){ie[bn.key]=bn;continue}}else{var Ln=Xt.children(this._source.maxzoom);if(ie[Ln[0].key]&&ie[Ln[1].key]&&ie[Ln[2].key]&&ie[Ln[3].key])continue}for(var gn=dn.wasRequested(),Jn=Xt.overscaledZ-1;Jn>=xe;--Jn){var pn=Xt.scaledTo(Jn);if(ge[pn.key]||(ge[pn.key]=!0,!(dn=this.getTile(pn))&&gn&&(dn=this._addTile(pn)),dn&&(ie[pn.key]=pn,gn=dn.wasRequested(),dn.hasData())))break}}}return ie},le.prototype._updateLoadedParentTileCache=function(){for(var ne in this._loadedParentTiles={},this._tiles){for(var V=[],ie=void 0,ge=this._tiles[ne].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ie=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ie=this._getLoadedTile(xe))break;ge=xe}for(var Ee=0,Ne=V;Ee0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ne in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ne);this._cache.reset()},le.prototype.tilesIn=function(ne,V,ie){var ge=this,xe=[],Ee=this.transform;if(!Ee)return xe;for(var Ne=ie?Ee.getCameraQueryGeometry(ne):ne,et=ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),rt=Ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),dt=this.getIds(),gt=1/0,Rt=1/0,Mt=-1/0,Xt=-1/0,dn=0,bn=rt;dn=0&&Gr[1].y+Pr>=0){var ro=et.map(function(Wo){return In.getTilePoint(Wo)}),po=rt.map(function(Wo){return In.getTilePoint(Wo)});xe.push({tile:pn,tileID:In,queryGeometry:ro,cameraQueryGeometry:po,scale:Ir})}}},gn=0;gn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.updateState(ne,V,ie)},le.prototype.removeFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.removeFeatureState(ne,V,ie)},le.prototype.getFeatureState=function(ne,V){return ne=ne||"_geojsonTileLayer",this._state.getState(ne,V)},le.prototype.setDependencies=function(ne,V,ie){var ge=this._tiles[ne];ge&&ge.setDependencies(V,ie)},le.prototype.reloadTilesForDependencies=function(ne,V){for(var ie in this._tiles)this._tiles[ie].hasDependency(ne,V)&&this._reloadTile(ie,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ne,V)})},le}(i.Evented);function Dt(J,le){var ne=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ne||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ut.workerUrl)}Vt.maxOverzooming=10,Vt.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",_t=function(){this.active={}};_t.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length<_t.workerCount;)this.workers.push(new at);return this.active[J]=!0,this.workers.slice()},_t.prototype.release=function(J){delete this.active[J],this.numActive()===0&&(this.workers.forEach(function(le){le.terminate()}),this.workers=null)},_t.prototype.isPreloaded=function(){return!!this.active[Bt]},_t.prototype.numActive=function(){return Object.keys(this.active).length};var qt,en=Math.floor(i.browser.hardwareConcurrency/2);function Jt(){return qt||(qt=new _t),qt}function Zt(J,le){var ne={};for(var V in J)V!=="ref"&&(ne[V]=J[V]);return i.refProperties.forEach(function(ie){ie in le&&(ne[ie]=le[ie])}),ne}function Nt(J){J=J.slice();for(var le=Object.create(null),ne=0;ne0?(V-ge)/xe:0;return this.points[ie].mult(1-Ee).add(this.points[le].mult(Ee))};var Br=function(J,le,ne){var V=this.boxCells=[],ie=this.circleCells=[];this.xCellCount=Math.ceil(J/ne),this.yCellCount=Math.ceil(le/ne);for(var ge=0;ge=-le[0]&&ne<=le[0]&&V>=-le[1]&&V<=le[1]}function lr(J,le,ne,V,ie,ge,xe,Ee){var Ne=V?J.textSizeData:J.iconSizeData,et=i.evaluateSizeForZoom(Ne,ne.transform.zoom),rt=[256/ne.width*2+1,256/ne.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var gt=J.lineVertexArray,Rt=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Mt=ne.transform.width/ne.transform.height,Xt=!1,dn=0;dnMath.abs(ne.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yne.x)?{needsFlipping:!0}:null}function eo(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt){var Mt,Xt=le/24,dn=J.lineOffsetX*Xt,bn=J.lineOffsetY*Xt;if(J.numGlyphs>1){var vn=J.glyphStartIndex+J.numGlyphs,Ln=J.lineStartIndex,gn=J.lineStartIndex+J.lineLength,Jn=zr(Xt,Ee,dn,bn,ne,rt,dt,J,Ne,ge,gt);if(!Jn)return{notEnoughRoom:!0};var pn=qn(Jn.first.point,xe).point,In=qn(Jn.last.point,xe).point;if(V&&!ne){var Ir=Vr(J.writingMode,pn,In,Rt);if(Ir)return Ir}Mt=[Jn.first];for(var Pr=J.glyphStartIndex+1;Pr0?Wo.point:Jr(dt,po,Gr,1,ie),Bo=Vr(J.writingMode,Gr,si,Rt);if(Bo)return Bo}var Go=Yr(Xt*Ee.getoffsetX(J.glyphStartIndex),dn,bn,ne,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Ne,ge,gt);if(!Go)return{notEnoughRoom:!0};Mt=[Go]}for(var Yo=0,Wi=Mt;Yo0?1:-1,Mt=0;V&&(Rt*=-1,Mt=Math.PI),Rt<0&&(Mt+=Math.PI);for(var Xt=Rt>0?Ee+xe:Ee+xe+1,dn=ie,bn=ie,vn=0,Ln=0,gn=Math.abs(gt),Jn=[];vn+Ln<=gn;){if((Xt+=Rt)=Ne)return null;if(bn=dn,Jn.push(dn),(dn=dt[Xt])===void 0){var pn=new i.Point(et.getx(Xt),et.gety(Xt)),In=qn(pn,rt);if(In.signedDistanceFromCamera>0)dn=dt[Xt]=In.point;else{var Ir=Xt-Rt;dn=Jr(vn===0?ge:new i.Point(et.getx(Ir),et.gety(Ir)),pn,bn,gn-vn+1,rt)}}vn+=Ln,Ln=bn.dist(dn)}var Pr=(gn-vn)/Ln,Gr=dn.sub(bn),ro=Gr.mult(Pr)._add(bn);ro._add(Gr._unit()._perp()._mult(ne*Rt));var po=Mt+Math.atan2(dn.y-bn.y,dn.x-bn.x);return Jn.push(ro),{point:ro,angle:po,path:Jn}}Br.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Br.prototype.insert=function(J,le,ne,V,ie){this._forEachCell(le,ne,V,ie,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ne),this.bboxes.push(V),this.bboxes.push(ie)},Br.prototype.insertCircle=function(J,le,ne,V){this._forEachCell(le-V,ne-V,le+V,ne+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ne),this.circles.push(V)},Br.prototype._insertBoxCell=function(J,le,ne,V,ie,ge){this.boxCells[ie].push(ge)},Br.prototype._insertCircleCell=function(J,le,ne,V,ie,ge){this.circleCells[ie].push(ge)},Br.prototype._query=function(J,le,ne,V,ie,ge){if(ne<0||J>this.width||V<0||le>this.height)return!ie&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ne&&this.height<=V){if(ie)return!0;for(var Ee=0;Ee0:xe},Br.prototype._queryCircle=function(J,le,ne,V,ie){var ge=J-ne,xe=J+ne,Ee=le-ne,Ne=le+ne;if(xe<0||ge>this.width||Ne<0||Ee>this.height)return!V&&[];var et=[],rt={hitTest:V,circle:{x:J,y:le,radius:ne},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Ee,xe,Ne,this._queryCellCircle,et,rt,ie),V?et.length>0:et},Br.prototype.query=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!1,ie)},Br.prototype.hitTest=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!0,ie)},Br.prototype.hitTestCircle=function(J,le,ne,V){return this._queryCircle(J,le,ne,!0,V)},Br.prototype._queryCell=function(J,le,ne,V,ie,ge,xe,Ee){var Ne=xe.seenUids,et=this.boxCells[ie];if(et!==null)for(var rt=this.bboxes,dt=0,gt=et;dt=rt[Mt+0]&&V>=rt[Mt+1]&&(!Ee||Ee(this.boxKeys[Rt]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Rt],x1:rt[Mt],y1:rt[Mt+1],x2:rt[Mt+2],y2:rt[Mt+3]})}}}var Xt=this.circleCells[ie];if(Xt!==null)for(var dn=this.circles,bn=0,vn=Xt;bnxe*xe+Ee*Ee},Br.prototype._circleAndRectCollide=function(J,le,ne,V,ie,ge,xe){var Ee=(ge-V)/2,Ne=Math.abs(J-(V+Ee));if(Ne>Ee+ne)return!1;var et=(xe-ie)/2,rt=Math.abs(le-(ie+et));if(rt>et+ne)return!1;if(Ne<=Ee||rt<=et)return!0;var dt=Ne-Ee,gt=rt-et;return dt*dt+gt*gt<=ne*ne};var to=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function co(J,le){for(var ne=0;ne=1;si--)Wo.push(ro.path[si]);for(var Bo=1;Bo0){for(var Ho=Wo[0].clone(),jo=Wo[0].clone(),Yi=1;Yi=Ir.x&&jo.x<=Pr.x&&Ho.y>=Ir.y&&jo.y<=Pr.y?[Wo]:jo.xPr.x||jo.yPr.y?[]:i.clipLine([Wo],Ir.x,Ir.y,Pr.x,Pr.y)}for(var ai=0,Hi=Wi;ai=this.screenRightBoundary||V<_o||le>this.screenBottomBoundary},$o.prototype.isInsideGrid=function(J,le,ne,V){return ne>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(Xt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:dn,width:ne,height:V,anchor:J,textBoxScale:ie,prevAnchor:Xt},this.markUsedJustification(gt,J,dt,Rt),gt.allowVerticalPlacement&&(this.markUsedOrientation(gt,Rt,dt),this.placedOrientations[dt.crossTileID]=Rt),{shift:bn,placedGlyphBoxes:vn}):void 0},io.prototype.placeLayerBucketPart=function(J,le,ne){var V=this,ie=J.parameters,ge=ie.bucket,xe=ie.layout,Ee=ie.posMatrix,Ne=ie.textLabelPlaneMatrix,et=ie.labelToScreenMatrix,rt=ie.textPixelRatio,dt=ie.holdingForFade,gt=ie.collisionBoxArray,Rt=ie.partiallyEvaluatedTextSize,Mt=ie.collisionGroup,Xt=xe.get("text-optional"),dn=xe.get("icon-optional"),bn=xe.get("text-allow-overlap"),vn=xe.get("icon-allow-overlap"),Ln=xe.get("text-rotation-alignment")==="map",gn=xe.get("text-pitch-alignment")==="map",Jn=xe.get("icon-text-fit")!=="none",pn=xe.get("symbol-z-order")==="viewport-y",In=bn&&(vn||!ge.hasIconData()||dn),Ir=vn&&(bn||!ge.hasTextData()||Xt);!ge.collisionArrays&>&&ge.deserializeCollisionBoxes(gt);var Pr=function(Bo,Go){if(!le[Bo.crossTileID])if(dt)V.placements[Bo.crossTileID]=new ar(!1,!1,!1);else{var Yo,Wi=!1,Ho=!1,jo=!0,Yi=null,ai={box:null,offscreen:null},Hi={box:null,offscreen:null},Ai=null,es=null,Ar=0,ns=0,$s=0;Go.textFeatureIndex?Ar=Go.textFeatureIndex:Bo.useRuntimeCollisionCircles&&(Ar=Bo.featureIndex),Go.verticalTextFeatureIndex&&(ns=Go.verticalTextFeatureIndex);var Ts=Go.textBox;if(Ts){var rl=function(Is){var Hc=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!Is&&V.prevPlacement){var Nl=V.prevPlacement.placedOrientations[Bo.crossTileID];Nl&&(V.placedOrientations[Bo.crossTileID]=Nl,Hc=Nl,V.markUsedOrientation(ge,Hc,Bo))}return Hc},Hs=function(Is,Hc){if(ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Go.verticalTextBox)for(var Nl=0,lh=ge.writingModes;Nl0&&(ys=ys.filter(function(Is){return Is!==Yu.anchor})).unshift(Yu.anchor)}var mt=function(Is,Hc,Nl){for(var lh=Is.x2-Is.x1,r0=Is.y2-Is.y1,ch=Bo.textBoxScale,gg=Jn&&!vn?Hc:null,Ip={box:[],offscreen:!1},X0=bn?2*ys.length:ys.length,Vh=0;Vh=ys.length,ss=V.attemptAnchorPlacement(Pu,Is,lh,r0,ch,Ln,gn,rt,Ee,Mt,Uh,Bo,ge,Nl,gg);if(ss&&(Ip=ss.placedGlyphBoxes)&&Ip.box&&Ip.box.length){Wi=!0,Yi=ss.shift;break}}return Ip};Hs(function(){return mt(Ts,Go.iconBox,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox,Hc=ai&&ai.box&&ai.box.length;return ge.allowVerticalPlacement&&!Hc&&Bo.numVerticalGlyphVertices>0&&Is?mt(Is,Go.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),ai&&(Wi=ai.box,jo=ai.offscreen);var Tt=rl(ai&&ai.box);if(!Wi&&V.prevPlacement){var xn=V.prevPlacement.variableOffsets[Bo.crossTileID];xn&&(V.variableOffsets[Bo.crossTileID]=xn,V.markUsedJustification(ge,xn.anchor,Bo,Tt))}}else{var Nn=function(Is,Hc){var Nl=V.collisionIndex.placeCollisionBox(Is,bn,rt,Ee,Mt.predicate);return Nl&&Nl.box&&Nl.box.length&&(V.markUsedOrientation(ge,Hc,Bo),V.placedOrientations[Bo.crossTileID]=Hc),Nl};Hs(function(){return Nn(Ts,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox;return ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Is?Nn(Is,i.WritingMode.vertical):{box:null,offscreen:null}}),rl(ai&&ai.box&&ai.box.length)}}if(Wi=(Yo=ai)&&Yo.box&&Yo.box.length>0,jo=Yo&&Yo.offscreen,Bo.useRuntimeCollisionCircles){var yr=ge.text.placedSymbolArray.get(Bo.centerJustifiedTextSymbolIndex),so=i.evaluateSizeForFeature(ge.textSizeData,Rt,yr),No=xe.get("text-padding"),ui=Bo.collisionCircleDiameter;Ai=V.collisionIndex.placeCollisionCircles(bn,yr,ge.lineVertexArray,ge.glyphOffsetArray,so,Ee,Ne,et,ne,gn,Mt.predicate,ui,No),Wi=bn||Ai.circles.length>0&&!Ai.collisionDetected,jo=jo&&Ai.offscreen}if(Go.iconFeatureIndex&&($s=Go.iconFeatureIndex),Go.iconBox){var ga=function(Is){var Hc=Jn&&Yi?oo(Is,Yi.x,Yi.y,Ln,gn,V.transform.angle):Is;return V.collisionIndex.placeCollisionBox(Hc,vn,rt,Ee,Mt.predicate)};Ho=Hi&&Hi.box&&Hi.box.length&&Go.verticalIconBox?(es=ga(Go.verticalIconBox)).box.length>0:(es=ga(Go.iconBox)).box.length>0,jo=jo&&es.offscreen}var Sa=Xt||Bo.numHorizontalGlyphVertices===0&&Bo.numVerticalGlyphVertices===0,ua=dn||Bo.numIconVertices===0;if(Sa||ua?ua?Sa||(Ho=Ho&&Wi):Wi=Ho&&Wi:Ho=Wi=Ho&&Wi,Wi&&Yo&&Yo.box&&(Hi&&Hi.box&&ns?V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ns,Mt.ID):V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID)),Ho&&es&&V.collisionIndex.insertCollisionBox(es.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,$s,Mt.ID),Ai&&(Wi&&V.collisionIndex.insertCollisionCircles(Ai.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID),ne)){var Cs=ge.bucketInstanceId,ul=V.collisionCircleArrays[Cs];ul===void 0&&(ul=V.collisionCircleArrays[Cs]=new Dr);for(var Jc=0;Jc=0;--ro){var po=Gr[ro];Pr(ge.symbolInstances.get(po),ge.collisionArrays[po])}else for(var Wo=J.symbolInstanceStart;Wo=0&&(J.text.placedSymbolArray.get(Ne).crossTileID=ie>=0&&Ne!==ie?0:ne.crossTileID)}},io.prototype.markUsedOrientation=function(J,le,ne){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ie=le===i.WritingMode.vertical?le:0,ge=0,xe=[ne.leftJustifiedTextSymbolIndex,ne.centerJustifiedTextSymbolIndex,ne.rightJustifiedTextSymbolIndex];ge0||gn>0,Pr=vn.numIconVertices>0,Gr=V.placedOrientations[vn.crossTileID],ro=Gr===i.WritingMode.vertical,po=Gr===i.WritingMode.horizontal||Gr===i.WritingMode.horizontalOnly;if(Ir){var Wo=Gt(In.text),si=ro?on:Wo;Rt(J.text,Ln,si);var Bo=po?on:Wo;Rt(J.text,gn,Bo);var Go=In.text.isHidden();[vn.rightJustifiedTextSymbolIndex,vn.centerJustifiedTextSymbolIndex,vn.leftJustifiedTextSymbolIndex].forEach(function($s){$s>=0&&(J.text.placedSymbolArray.get($s).hidden=Go||ro?1:0)}),vn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(vn.verticalPlacedTextSymbolIndex).hidden=Go||po?1:0);var Yo=V.variableOffsets[vn.crossTileID];Yo&&V.markUsedJustification(J,Yo.anchor,vn,Gr);var Wi=V.placedOrientations[vn.crossTileID];Wi&&(V.markUsedJustification(J,"left",vn,Wi),V.markUsedOrientation(J,Wi,vn))}if(Pr){var Ho=Gt(In.icon),jo=!(dt&&vn.verticalPlacedIconSymbolIndex&&ro);if(vn.placedIconSymbolIndex>=0){var Yi=jo?Ho:on;Rt(J.icon,vn.numIconVertices,Yi),J.icon.placedSymbolArray.get(vn.placedIconSymbolIndex).hidden=In.icon.isHidden()}if(vn.verticalPlacedIconSymbolIndex>=0){var ai=jo?on:Ho;Rt(J.icon,vn.numVerticalIconVertices,ai),J.icon.placedSymbolArray.get(vn.verticalPlacedIconSymbolIndex).hidden=In.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var Hi=J.collisionArrays[bn];if(Hi){var Ai=new i.Point(0,0);if(Hi.textBox||Hi.verticalTextBox){var es=!0;if(Ne){var Ar=V.variableOffsets[Jn];Ar?(Ai=go(Ar.anchor,Ar.width,Ar.height,Ar.textOffset,Ar.textBoxScale),et&&Ai._rotate(rt?V.transform.angle:-V.transform.angle)):es=!1}Hi.textBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!es||ro,Ai.x,Ai.y),Hi.verticalTextBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!es||po,Ai.x,Ai.y)}var ns=!!(!po&&Hi.verticalIconBox);Hi.iconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,ns,dt?Ai.x:0,dt?Ai.y:0),Hi.verticalIconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,!ns,dt?Ai.x:0,dt?Ai.y:0)}}},Xt=0;XtJ},io.prototype.setStale=function(){this.stale=!0};var jn=Math.pow(2,25),Rr=Math.pow(2,24),On=Math.pow(2,17),Yn=Math.pow(2,16),ir=Math.pow(2,9),kr=Math.pow(2,8),Er=Math.pow(2,1);function Gt(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ne=Math.floor(127*J.opacity);return ne*jn+le*Rr+ne*On+le*Yn+ne*ir+le*kr+ne*Er+le}var on=0,an=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};an.prototype.continuePlacement=function(J,le,ne,V,ie){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Ee=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Ee)&&(!xe.maxzoom||xe.maxzoom>Ee)){if(this._inProgressLayer||(this._inProgressLayer=new an(xe)),this._inProgressLayer.continuePlacement(ne[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Tn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var zn=512/i.EXTENT/2,Gn=function(J,le,ne){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ne;for(var V=0;VJ.overscaledZ)for(var Ee in xe){var Ne=xe[Ee];Ne.tileID.isChildOf(J)&&Ne.findMatches(le.symbolInstances,J,ie)}else{var et=xe[J.scaledTo(Number(ge)).key];et&&et.findMatches(le.symbolInstances,J,ie)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".json"),i.ResourceType.SpriteJSON),function(Mt,Xt){dt=null,et||(et=Mt,Ee=Xt,Rt())}),gt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".png"),i.ResourceType.SpriteImage),function(Mt,Xt){gt=null,et||(et=Mt,Ne=Xt,Rt())});function Rt(){if(et)xe(et);else if(Ee&&Ne){var Mt=i.browser.getImageData(Ne),Xt={};for(var dn in Ee){var bn=Ee[dn],vn=bn.width,Ln=bn.height,gn=bn.x,Jn=bn.y,pn=bn.sdf,In=bn.pixelRatio,Ir=bn.stretchX,Pr=bn.stretchY,Gr=bn.content,ro=new i.RGBAImage({width:vn,height:Ln});i.RGBAImage.copy(Mt,ro,{x:gn,y:Jn},{x:0,y:0},{width:vn,height:Ln}),Xt[dn]={data:ro,pixelRatio:In,sdf:pn,stretchX:Ir,stretchY:Pr,content:Gr}}xe(null,Xt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),gt&&(gt.cancel(),gt=null)}}}(ne,this.map._requestManager,function(ie,ge){if(V._spriteRequest=null,ie)V.fire(new i.ErrorEvent(ie));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ne){var V=this.sourceCaches[ne.source];if(V){var ie=ne.sourceLayer;if(ie){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ie)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ie+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ne.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ne in this.sourceCaches)if(!this.sourceCaches[ne].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ne){for(var V=[],ie=0,ge=ne;ie0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ie.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ne,!0},le.prototype.addImage=function(ne,V){if(this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ne,V),this._afterImageUpdated(ne)},le.prototype.updateImage=function(ne,V){this.imageManager.updateImage(ne,V)},le.prototype.getImage=function(ne){return this.imageManager.getImage(ne)},le.prototype.removeImage=function(ne){if(!this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ne),this._afterImageUpdated(ne)},le.prototype._afterImageUpdated=function(ne){this._availableImages=this.imageManager.listImages(),this._changedImages[ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ne,V,ie){var ge=this;if(ie===void 0&&(ie={}),this._checkLoaded(),this.sourceCaches[ne]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ne,V,null,ie))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ne]=new Vt(ne,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ne}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ne){if(this._checkLoaded(),this.sourceCaches[ne]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ne)return this.fire(new i.ErrorEvent(new Error('Source "'+ne+'" cannot be removed while layer "'+V+'" is using it.')));var ie=this.sourceCaches[ne];delete this.sourceCaches[ne],delete this._updatedSources[ne],ie.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ne})),ie.setEventedParent(null),ie.clearTiles(),ie.onRemove&&ie.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ne,V){this._checkLoaded(),this.sourceCaches[ne].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ne){return this.sourceCaches[ne]&&this.sourceCaches[ne].getSource()},le.prototype.addLayer=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=ne.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ne.type==="custom"){if(Cr(this,i.validateCustomStyleLayer(ne)))return;xe=i.createStyleLayer(ne)}else{if(typeof ne.source=="object"&&(this.addSource(ge,ne.source),ne=i.clone$1(ne),ne=i.extend(ne,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ne,{arrayIndex:-1},ie))return;xe=i.createStyleLayer(ne),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Ee=V?this._order.indexOf(V):this._order.length;if(V&&Ee===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Ee,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Ne=this._removedLayers[ge];delete this._removedLayers[ge],Ne.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ne,V){if(this._checkLoaded(),this._changed=!0,this._layers[ne]){if(ne!==V){var ie=this._order.indexOf(ne);this._order.splice(ie,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ne),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ne){this._checkLoaded();var V=this._layers[ne];if(V){V.setEventedParent(null);var ie=this._order.indexOf(ne);this._order.splice(ie,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ne]=V,delete this._layers[ne],delete this._serializedLayers[ne],delete this._updatedLayers[ne],delete this._updatedPaintProps[ne],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ne){return this._layers[ne]},le.prototype.hasLayer=function(ne){return ne in this._layers},le.prototype.setLayerZoomRange=function(ne,V,ie){this._checkLoaded();var ge=this.getLayer(ne);ge?ge.minzoom===V&&ge.maxzoom===ie||(V!=null&&(ge.minzoom=V),ie!=null&&(ge.maxzoom=ie),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=this.getLayer(ne);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ie)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ne){return i.clone$1(this.getLayer(ne).filter)},le.prototype.setLayoutProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getLayoutProperty(V),ie)||(xe.setLayoutProperty(V,ie,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ne,V){var ie=this.getLayer(ne);if(ie)return ie.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getPaintProperty(V),ie)||(xe.setPaintProperty(V,ie,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ne]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ne,V){return this.getLayer(ne).getPaintProperty(V)},le.prototype.setFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=ne.sourceLayer,xe=this.sourceCaches[ie];if(xe!==void 0){var Ee=xe.getSource().type;Ee==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ee!=="vector"||ge?(ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ne.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=this.sourceCaches[ie];if(ge!==void 0){var xe=ge.getSource().type,Ee=xe==="vector"?ne.sourceLayer:void 0;xe!=="vector"||Ee?V&&typeof ne.id!="string"&&typeof ne.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Ee,ne.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ne){this._checkLoaded();var V=ne.source,ie=ne.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ie)return ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ie,ne.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ne){return ne.serialize()}),layers:this._serializeLayers(this._order)},function(ne){return ne!==void 0})},le.prototype._updateLayer=function(ne){this._updatedLayers[ne.id]=!0,ne.source&&!this._updatedSources[ne.source]&&this.sourceCaches[ne.source].getSource().type!=="raster"&&(this._updatedSources[ne.source]="reload",this.sourceCaches[ne.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ne){for(var V=this,ie=function(Gr){return V._layers[Gr].type==="fill-extrusion"},ge={},xe=[],Ee=this._order.length-1;Ee>=0;Ee--){var Ne=this._order[Ee];if(ie(Ne)){ge[Ne]=Ee;for(var et=0,rt=ne;et=0;dn--){var bn=this._order[dn];if(ie(bn))for(var vn=xe.length-1;vn>=0;vn--){var Ln=xe[vn].feature;if(ge[Ln.layer.id] 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),bh=_s(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),xh=_s(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -2814,9 +2814,9 @@ uniform `+rt+" "+dt+" u_"+gt+`; #else `+rt+" "+dt+" "+gt+" = u_"+gt+`; #endif -`}),staticAttributes:V,staticUniforms:xe}}var ma=Object.freeze({__proto__:null,prelude:Mn,background:Fn,backgroundPattern:dr,circle:xr,clippingMask:Oo,heatmap:mi,heatmapTexture:Di,collisionBox:To,collisionCircle:Ia,debug:Ds,fill:fs,fillOutline:zi,fillOutlinePattern:yl,fillPattern:Bs,fillExtrusion:yf,fillExtrusionPattern:il,hillshadePrepare:nf,hillshade:nh,line:gp,lineGradient:Qs,linePattern:bh,lineSDF:Bl,raster:Tc,symbolIcon:iu,symbolSDF:au,symbolTextAndIcon:zf}),mu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Uc(J){for(var le=[],ne=0;ne>16,Ee>>16],u_pixel_coord_lower:[65535&xe,65535&Ee]}}Kf.prototype.draw=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt,Mt,Xt){var dn,bn=J.gl;if(!this.failedToCreate){for(var vn in J.program.set(this.program),J.setDepthMode(ne),J.setStencilMode(V),J.setColorMode(ie),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[vn].set(xe[vn]);Rt&&Rt.setUniforms(J,this.binderUniforms,dt,{zoom:gt});for(var Ln=(dn={},dn[bn.LINES]=2,dn[bn.TRIANGLES]=3,dn[bn.LINE_STRIP]=1,dn)[le],gn=0,Jn=rt.get();gn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ie.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:Cu(ie.paint.get("raster-hue-rotate"))};var ge,xe};function Cu(J){J*=Math.PI/180;var le=Math.sin(J),ne=Math.cos(J);return[(2*ne+1)/3,(-Math.sqrt(3)*le-ne+1)/3,(Math.sqrt(3)*le-ne+1)/3]}var ed,Bu=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){var rt=ie.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:rt.width/rt.height,u_fade_change:ie.options.fadeDuration?ie.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Ee,u_is_text:+Ne,u_pitch_with_map:+V,u_texsize:et,u_texture:0}},vd=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt){var dt=ie.transform;return i.extend(Bu(J,le,ne,V,ie,ge,xe,Ee,Ne,et),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},cs=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){return i.extend(vd(J,le,ne,V,ie,ge,xe,Ee,!0,Ne,!0),{u_texsize_icon:et,u_texture_icon:1})},oh=function(J,le,ne){return{u_matrix:J,u_opacity:le,u_color:ne}},Jh=function(J,le,ne,V,ie,ge){return i.extend(function(xe,Ee,Ne,et){var rt=Ne.imageManager.getPattern(xe.from.toString()),dt=Ne.imageManager.getPattern(xe.to.toString()),gt=Ne.imageManager.getPixelSize(),Rt=gt.width,Mt=gt.height,Xt=Math.pow(2,et.tileID.overscaledZ),dn=et.tileSize*Math.pow(2,Ne.transform.tileZoom)/Xt,bn=dn*(et.tileID.canonical.x+et.tileID.wrap*Xt),vn=dn*et.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Rt,Mt],u_mix:Ee.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Ee.fromScale,u_scale_b:Ee.toScale,u_tile_units_to_pixels:1/Mo(et,1,Ne.transform.tileZoom),u_pixel_coord_upper:[bn>>16,vn>>16],u_pixel_coord_lower:[65535&bn,65535&vn]}}(V,ge,ne,ie),{u_matrix:J,u_opacity:le})},xh={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function xf(J,le,ne,V,ie,ge,xe){for(var Ee=J.context,Ne=Ee.gl,et=J.useProgram("collisionBox"),rt=[],dt=0,gt=0,Rt=0;Rt0){var gn=i.create(),Jn=bn;i.mul(gn,dn.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(gn,gn,dn.placementViewportMatrix),rt.push({circleArray:Ln,circleOffset:gt,transform:Jn,invTransform:gn}),gt=dt+=Ln.length/4}vn&&et.draw(Ee,Ne.LINES,Pn.disabled,vt.disabled,J.colorModeForRenderPass(),st.disabled,Tu(bn,J.transform,Xt),ne.id,vn.layoutVertexBuffer,vn.indexBuffer,vn.segments,null,J.transform.zoom,null,null,vn.collisionVertexBuffer)}}if(xe&&rt.length){var pn=J.useProgram("collisionCircle"),In=new i.StructArrayLayout2f1f2i16;In.resize(4*dt),In._trim();for(var Ir=0,Pr=0,Gr=rt;Pr=0&&(Mt[dn.associatedIconIndex]={shiftedAnchor:Gr,angle:ro})}else co(dn.numGlyphs,gt)}if(rt){Rt.clear();for(var Wo=J.icon.placedSymbolArray,si=0;si0){var xe=i.browser.now(),Ee=(xe-J.timeAdded)/ge,Ne=le?(xe-le.timeAdded)/ge:-1,et=ne.getSource(),rt=ie.coveringZoomLevel({tileSize:et.tileSize,roundZoom:et.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),gt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Ee:1-Ne,0,1);return J.refreshedUponExpiration&&Ee>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-gt}:{opacity:gt,mix:0}}return{opacity:1,mix:0}}var ih=new i.Color(1,0,0,1),yu=new i.Color(0,1,0,1),jc=new i.Color(0,0,1,1),Nh=new i.Color(1,0,1,1),af=new i.Color(0,1,1,1);function td(J){var le=J.transform.padding;sf(J,J.transform.height-(le.top||0),3,ih),sf(J,le.bottom||0,3,yu),Bc(J,le.left||0,3,jc),Bc(J,J.transform.width-(le.right||0),3,Nh);var ne=J.transform.centerPoint;(function(V,ie,ge,xe){var Ee=20,Ne=2;Vd(V,ie-Ne/2,ge-Ee/2,Ne,Ee,xe),Vd(V,ie-Ee/2,ge-Ne/2,Ee,Ne,xe)})(J,ne.x,J.transform.height-ne.y,af)}function sf(J,le,ne,V){Vd(J,0,le+ne/2,J.transform.width,ne,V)}function Bc(J,le,ne,V){Vd(J,le-ne/2,0,ne,J.transform.height,V)}function Vd(J,le,ne,V,ie,ge){var xe=J.context,Ee=xe.gl;Ee.enable(Ee.SCISSOR_TEST),Ee.scissor(le*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio),xe.clear({color:ge}),Ee.disable(Ee.SCISSOR_TEST)}function xd(J,le,ne){var V=J.context,ie=V.gl,ge=ne.posMatrix,xe=J.useProgram("debug"),Ee=Pn.disabled,Ne=vt.disabled,et=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ie.TEXTURE0),J.emptyTexture.bind(ie.LINEAR,ie.CLAMP_TO_EDGE),xe.draw(V,ie.LINE_STRIP,Ee,Ne,et,st.disabled,ec(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ne.key).latestRawTileData,gt=dt&&dt.byteLength||0,Rt=Math.floor(gt/1024),Mt=le.getTile(ne).tileSize,Xt=512/Math.min(Mt,512)*(ne.overscaledZ/J.transform.zoom)*.5,dn=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(dn+=" => "+ne.overscaledZ),function(bn,vn){bn.initDebugOverlayCanvas();var Ln=bn.debugOverlayCanvas,gn=bn.context.gl,Jn=bn.debugOverlayCanvas.getContext("2d");Jn.clearRect(0,0,Ln.width,Ln.height),Jn.shadowColor="white",Jn.shadowBlur=2,Jn.lineWidth=1.5,Jn.strokeStyle="white",Jn.textBaseline="top",Jn.font="bold 36px Open Sans, sans-serif",Jn.fillText(vn,5,5),Jn.strokeText(vn,5,5),bn.debugOverlayTexture.update(Ln),bn.debugOverlayTexture.bind(gn.LINEAR,gn.CLAMP_TO_EDGE)}(J,dn+" "+Rt+"kb"),xe.draw(V,ie.TRIANGLES,Ee,Ne,xt.alphaBlended,st.disabled,ec(ge,i.Color.transparent,Xt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var vc={symbol:function(J,le,ne,V,ie){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ne.layout.get("text-variable-anchor")&&function(Ee,Ne,et,rt,dt,gt,Rt){for(var Mt=Ne.transform,Xt=dt==="map",dn=gt==="map",bn=0,vn=Ee;bn256&&this.clearStencil(),ne.setColorMode(xt.disabled),ne.setDepthMode(Pn.disabled);var ie=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilConfigForOverlap=function(J){var le,ne=this.context.gl,V=J.sort(function(Ne,et){return et.overscaledZ-Ne.overscaledZ}),ie=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ie+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Ee=0;Ee=0;this.currentLayer--){var Jn=this.style._layers[V[this.currentLayer]],pn=ie[Jn.source],In=et[Jn.source];this._renderTileClippingMasks(Jn,In),this.renderLayer(this,pn,Jn,In)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},gs.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ne=this.imageManager.getPattern(J.to.toString());return!le||!ne},gs.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ne=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ne]||(this.cache[ne]=new Kf(this.context,J,ma[J],le,xh[J],this._showOverdrawInspector)),this.cache[ne]},gs.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gs.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},gs.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},gs.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var yc=function(J,le){this.points=J,this.planes=le};yc.fromInvProjectionMatrix=function(J,le,ne){var V=Math.pow(2,ne),ie=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Ee=i.sub([],ie[xe[0]],ie[xe[1]]),Ne=i.sub([],ie[xe[2]],ie[xe[1]]),et=i.normalize([],i.cross([],Ee,Ne)),rt=-i.dot(et,ie[xe[1]]);return et.concat(rt)});return new yc(ie,ge)};var Cc=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Cc.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ne=i.clone$2(this.min),V=i.clone$2(this.max),ie=0;ie=0;if(ge===0)return 0;ge!==le.length&&(ne=!1)}if(ne)return 2;for(var Ee=0;Ee<3;Ee++){for(var Ne=Number.MAX_VALUE,et=-Number.MAX_VALUE,rt=0;rtthis.max[Ee]-this.min[Ee])return 0}return 1};var Nu=function(J,le,ne,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ne===void 0&&(ne=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ne)||ne<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ne,this.right=V};Nu.prototype.interpolate=function(J,le,ne){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ne)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ne)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ne)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ne)),this},Nu.prototype.getCenter=function(J,le){var ne=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ne,V)},Nu.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Nu.prototype.clone=function(){return new Nu(this.top,this.bottom,this.left,this.right)},Nu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Gs=function(J,le,ne,V,ie){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ie===void 0||ie,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ne??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Nu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ks={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Gs.prototype.clone=function(){var J=new Gs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},Ks.minZoom.get=function(){return this._minZoom},Ks.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},Ks.maxZoom.get=function(){return this._maxZoom},Ks.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},Ks.minPitch.get=function(){return this._minPitch},Ks.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},Ks.maxPitch.get=function(){return this._maxPitch},Ks.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},Ks.renderWorldCopies.get=function(){return this._renderWorldCopies},Ks.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},Ks.worldSize.get=function(){return this.tileSize*this.scale},Ks.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ks.size.get=function(){return new i.Point(this.width,this.height)},Ks.bearing.get=function(){return-this.angle/Math.PI*180},Ks.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ks.pitch.get=function(){return this._pitch/Math.PI*180},Ks.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},Ks.fov.get=function(){return this._fov/Math.PI*180},Ks.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},Ks.zoom.get=function(){return this._zoom},Ks.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},Ks.center.get=function(){return this._center},Ks.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},Ks.padding.get=function(){return this._edgeInsets.toJSON()},Ks.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},Ks.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Gs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Gs.prototype.interpolatePadding=function(J,le,ne){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ne),this._constrain(),this._calcMatrices()},Gs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Gs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ne=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ie=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ne.x,V.x,ie.x,ge.x)),Ee=Math.floor(Math.max(ne.x,V.x,ie.x,ge.x)),Ne=xe-1;Ne<=Ee+1;Ne++)Ne!==0&&le.push(new i.UnwrappedTileID(Ne,J));return le},Gs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ne=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ie=Math.pow(2,le),ge=[ie*V.x,ie*V.y,0],xe=yc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Ee=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ee=le);var Ne=function(Gr){return{aabb:new Cc([Gr*ie,0,0],[(Gr+1)*ie,ie,0]),zoom:0,x:0,y:0,wrap:Gr,fullyVisible:!1}},et=[],rt=[],dt=le,gt=J.reparseOverscaled?ne:le;if(this._renderWorldCopies)for(var Rt=1;Rt<=3;Rt++)et.push(Ne(-Rt)),et.push(Ne(Rt));for(et.push(Ne(0));et.length>0;){var Mt=et.pop(),Xt=Mt.x,dn=Mt.y,bn=Mt.fullyVisible;if(!bn){var vn=Mt.aabb.intersects(xe);if(vn===0)continue;bn=vn===2}var Ln=Mt.aabb.distanceX(ge),gn=Mt.aabb.distanceY(ge),Jn=Math.max(Math.abs(Ln),Math.abs(gn)),pn=3+(1<pn&&Mt.zoom>=Ee)rt.push({tileID:new i.OverscaledTileID(Mt.zoom===dt?gt:Mt.zoom,Mt.wrap,Mt.zoom,Xt,dn),distanceSq:i.sqrLen([ge[0]-.5-Xt,ge[1]-.5-dn])});else for(var In=0;In<4;In++){var Ir=(Xt<<1)+In%2,Pr=(dn<<1)+(In>>1);et.push({aabb:Mt.aabb.quadrant(In),zoom:Mt.zoom+1,x:Ir,y:Pr,wrap:Mt.wrap,fullyVisible:bn})}}return rt.sort(function(Gr,ro){return Gr.distanceSq-ro.distanceSq}).map(function(Gr){return Gr.tileID})},Gs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},Ks.unmodified.get=function(){return this._unmodified},Gs.prototype.zoomScale=function(J){return Math.pow(2,J)},Gs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Gs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Gs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},Ks.point.get=function(){return this.project(this.center)},Gs.prototype.setLocationAtPoint=function(J,le){var ne=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ie=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ie.x-(ne.x-V.x),ie.y-(ne.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Gs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Gs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Gs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Gs.prototype.coordinateLocation=function(J){return J.toLngLat()},Gs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ne=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ne,ne,this.pixelMatrixInverse);var V=le[3],ie=ne[3],ge=le[0]/V,xe=ne[0]/ie,Ee=le[1]/V,Ne=ne[1]/ie,et=le[2]/V,rt=ne[2]/ie,dt=et===rt?0:(0-et)/(rt-et);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Ee,Ne,dt)/this.worldSize)},Gs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Gs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Gs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Gs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Gs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ne=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ne])return V[ne];var ie=J.canonical,ge=this.worldSize/this.zoomScale(ie.z),xe=ie.x+Math.pow(2,ie.z)*J.wrap,Ee=i.identity(new Float64Array(16));return i.translate(Ee,Ee,[xe*ge,ie.y*ge,0]),i.scale(Ee,Ee,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Ee,le?this.alignedProjMatrix:this.projMatrix,Ee),V[ne]=new Float32Array(Ee),V[ne]},Gs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Gs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ne,V,ie=-90,ge=90,xe=-180,Ee=180,Ne=this.size,et=this._unmodified;if(this.latRange){var rt=this.latRange;ie=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-iege&&(V=ge-Xt)}if(this.lngRange){var dn=gt.x,bn=Ne.x/2;dn-bnEe&&(ne=Ee-bn)}ne===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ne!==void 0?ne:gt.x,V!==void 0?V:gt.y))),this._unmodified=et,this._constraining=!1}},Gs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ne=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ie=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ne-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Ee=ge.y,Ne=1.01*(Math.cos(Math.PI/2-this._pitch)*ie+this.cameraToCenterDistance),et=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,et,Ne),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Ee,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,gt=this.height%2/2,Rt=Math.cos(this.angle),Mt=Math.sin(this.angle),Xt=xe-Math.round(xe)+Rt*dt+Mt*gt,dn=Ee-Math.round(Ee)+Rt*gt+Mt*dt,bn=new Float64Array(rt);if(i.translate(bn,bn,[Xt>.5?Xt-1:Xt,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=bn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Gs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Gs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Gs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ne=le.x,V=le.y,ie=le.x,ge=le.y,xe=0,Ee=J;xe=3&&!J.some(function(ne){return isNaN(ne)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Ac.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var _d={linearity:.3,easing:i.bezier(0,0,.3,1)},Fh=i.extend({deceleration:2500,maxSpeed:1400},_d),$h=i.extend({deceleration:20,maxSpeed:1400},_d),vp=i.extend({deceleration:1e3,maxSpeed:360},_d),ah=i.extend({deceleration:1e3,maxSpeed:90},_d),Au=function(J){this._map=J,this.clear()};function lf(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Au.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ne=0,V=this._inertiaBuffer;ne=this._clickTolerance||this._map.fire(new vs(J.type,this._map,J))},nc.prototype.dblclick=function(J){return this._firePreventable(new vs(J.type,this._map,J))},nc.prototype.mouseover=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.mouseout=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.touchstart=function(J){return this._firePreventable(new cl(J.type,this._map,J))},nc.prototype.touchmove=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchend=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchcancel=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},nc.prototype.isEnabled=function(){return!0},nc.prototype.isActive=function(){return!1},nc.prototype.enable=function(){},nc.prototype.disable=function(){};var Qc=function(J){this._map=J};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(J){this._map.fire(new vs(J.type,this._map,J))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new vs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new vs(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var ts=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function wi(J,le){for(var ne={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ne.length===this.numTouches&&(this.centroid=function(V){for(var ie=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},bu.prototype.touchend=function(J,le,ne){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ne.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var wd=function(J){this.singleTap=new bu(J),this.numTaps=J.numTaps,this.reset()};wd.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},wd.prototype.touchstart=function(J,le,ne){this.singleTap.touchstart(J,le,ne)},wd.prototype.touchmove=function(J,le,ne){this.singleTap.touchmove(J,le,ne)},wd.prototype.touchend=function(J,le,ne){var V=this.singleTap.touchend(J,le,ne);if(V){var ie=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ie&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var Ol=function(){this._zoomIn=new wd({numTouches:1,numTaps:2}),this._zoomOut=new wd({numTouches:2,numTaps:1}),this.reset()};Ol.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Ol.prototype.touchstart=function(J,le,ne){this._zoomIn.touchstart(J,le,ne),this._zoomOut.touchstart(J,le,ne)},Ol.prototype.touchmove=function(J,le,ne){this._zoomIn.touchmove(J,le,ne),this._zoomOut.touchmove(J,le,ne)},Ol.prototype.touchend=function(J,le,ne){var V=this,ie=this._zoomIn.touchend(J,le,ne),ge=this._zoomOut.touchend(J,le,ne);return ie?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ie)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},Ol.prototype.touchcancel=function(){this.reset()},Ol.prototype.enable=function(){this._enabled=!0},Ol.prototype.disable=function(){this._enabled=!1,this.reset()},Ol.prototype.isEnabled=function(){return this._enabled},Ol.prototype.isActive=function(){return this._active};var ds={};ds[0]=1,ds[2]=2;var zc=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};zc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},zc.prototype._correctButton=function(J,le){return!1},zc.prototype._move=function(J,le){return{}},zc.prototype.mousedown=function(J,le){if(!this._lastPoint){var ne=w.mouseButton(J);this._correctButton(J,ne)&&(this._lastPoint=le,this._eventButton=ne)}},zc.prototype.mousemoveWindow=function(J,le){var ne=this._lastPoint;if(ne){if(J.preventDefault(),function(V,ie){var ge=ds[ie];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ne)0&&(this._active=!0);var V=wi(ne,le),ie=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Ee in V){var Ne=V[Ee],et=this._touches[Ee];et&&(ie._add(Ne),ge._add(Ne.sub(et)),xe++,V[Ee]=Ne)}if(this._touches=V,!(xeMath.abs(J.x)}var Kc=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ne){this._lastPoints=ne,xc(ne[0].sub(ne[1]))&&(this._valid=!1)},le.prototype._move=function(ne,V,ie){var ge=ne[0].sub(this._lastPoints[0]),xe=ne[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ie.timeStamp),this._valid)return this._lastPoints=ne,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ne,V,ie){if(this._valid!==void 0)return this._valid;var ge=ne.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ie),ie-this._firstMove<100&&void 0;var Ee=ne.y>0==V.y>0;return xc(ne)&&xc(V)&&Ee}},le}(rs),jd={panStep:100,bearingStep:15,pitchStep:10},ii=function(){var J=jd;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function nd(J){return J*(2-J)}ii.prototype.reset=function(){this._active=!1},ii.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ne=0,V=0,ie=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ie=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ie=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ie=0),{cameraAnimation:function(Ee){var Ne=Ee.getZoom();Ee.easeTo({duration:300,easeId:"keyboardHandler",easing:nd,zoom:ne?Math.round(Ne)+ne*(J.shiftKey?2:1):Ne,bearing:Ee.getBearing()+V*le._bearingStep,pitch:Ee.getPitch()+ie*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Ee.getCenter()},{originalEvent:J})}}}},ii.prototype.enable=function(){this._enabled=!0},ii.prototype.disable=function(){this._enabled=!1,this.reset()},ii.prototype.isEnabled=function(){return this._enabled},ii.prototype.isActive=function(){return this._active},ii.prototype.disableRotation=function(){this._rotationDisabled=!0},ii.prototype.enableRotation=function(){this._rotationDisabled=!1};var al=4.000244140625,Yl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Yl.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Yl.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Yl.prototype.isEnabled=function(){return!!this._enabled},Yl.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Yl.prototype.isZooming=function(){return!!this._zooming},Yl.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Yl.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yl.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ne=i.browser.now(),V=ne-(this._lastWheelEventTime||0);this._lastWheelEventTime=ne,le!==0&&le%al==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Yl.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Yl.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Yl.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ne=this._type==="wheel"&&Math.abs(this._delta)>al?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ne)));this._delta<0&&V!==0&&(V=1/V);var ie=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ie*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Ee=this._startZoom,Ne=this._easing,et=!1;if(this._type==="wheel"&&Ee&&Ne){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Ne(rt);ge=i.number(Ee,xe,dt),rt<1?this._frameId||(this._frameId=!0):et=!0}else ge=xe,et=!0;return this._active=!0,et&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!et,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Yl.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ne=this._prevEase,V=(i.browser.now()-ne.start)/ne.duration,ie=ne.easing(V+.01)-ne.easing(V),ge=.27/Math.sqrt(ie*ie+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Yl.prototype.reset=function(){this._active=!1};var uf=function(J,le){this._clickZoom=J,this._tapZoom=le};uf.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},uf.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},uf.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},uf.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var hs=function(){this.reset()};hs.prototype.reset=function(){this._active=!1},hs.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ne){ne.easeTo({duration:300,zoom:ne.getZoom()+(J.shiftKey?-1:1),around:ne.unproject(le)},{originalEvent:J})}}},hs.prototype.enable=function(){this._enabled=!0},hs.prototype.disable=function(){this._enabled=!1,this.reset()},hs.prototype.isEnabled=function(){return this._enabled},hs.prototype.isActive=function(){return this._active};var Mc=function(){this._tap=new wd({numTouches:1,numTaps:1}),this.reset()};Mc.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mc.prototype.touchstart=function(J,le,ne){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ne.length>0&&(this._swipePoint=le[0],this._swipeTouch=ne[0].identifier):this._tap.touchstart(J,le,ne))},Mc.prototype.touchmove=function(J,le,ne){if(this._tapTime){if(this._swipePoint){if(ne[0].identifier!==this._swipeTouch)return;var V=le[0],ie=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ie/128}}}else this._tap.touchmove(J,le,ne)},Mc.prototype.touchend=function(J,le,ne){this._tapTime?this._swipePoint&&ne.length===0&&this.reset():this._tap.touchend(J,le,ne)&&(this._tapTime=J.timeStamp)},Mc.prototype.touchcancel=function(){this.reset()},Mc.prototype.enable=function(){this._enabled=!0},Mc.prototype.disable=function(){this._enabled=!1,this.reset()},Mc.prototype.isEnabled=function(){return this._enabled},Mc.prototype.isActive=function(){return this._active};var Eu=function(J,le,ne){this._el=J,this._mousePan=le,this._touchPan=ne};Eu.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Eu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Eu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Eu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xu=function(J,le,ne){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ne};xu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ws=function(J,le,ne,V){this._el=J,this._touchZoom=le,this._touchRotate=ne,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};ws.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ws.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ws.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ws.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ws.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ws.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Fu=function(J){return J.zoom||J.drag||J.pitch||J.rotate},su=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Ca(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ls=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Au(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ne=this._el;this._listeners=[[ne,"touchstart",{passive:!0}],[ne,"touchmove",{passive:!1}],[ne,"touchend",void 0],[ne,"touchcancel",void 0],[ne,"mousedown",void 0],[ne,"mousemove",void 0],[ne,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ne,"mouseover",void 0],[ne,"mouseout",void 0],[ne,"dblclick",void 0],[ne,"click",void 0],[ne,"keydown",{capture:!1}],[ne,"keyup",void 0],[ne,"wheel",{passive:!1}],[ne,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ie=this._listeners;Vxe?Math.min(2,pn):Math.max(.5,pn),ro=Math.pow(Gr,1-Ir),po=ge.unproject(gn.add(Jn.mult(Ir*ro)).mult(Pr));ge.setLocationAtPoint(ge.renderWorldCopies?po.wrap():po,Xt)}ie._fireMoveEvents(V)},function(Ir){ie._afterEase(V,Ir)},ne),this},le.prototype._prepareEase=function(ne,V,ie){ie===void 0&&(ie={}),this._moving=!0,V||ie.moving||this.fire(new i.Event("movestart",ne)),this._zooming&&!ie.zooming&&this.fire(new i.Event("zoomstart",ne)),this._rotating&&!ie.rotating&&this.fire(new i.Event("rotatestart",ne)),this._pitching&&!ie.pitching&&this.fire(new i.Event("pitchstart",ne))},le.prototype._fireMoveEvents=function(ne){this.fire(new i.Event("move",ne)),this._zooming&&this.fire(new i.Event("zoom",ne)),this._rotating&&this.fire(new i.Event("rotate",ne)),this._pitching&&this.fire(new i.Event("pitch",ne))},le.prototype._afterEase=function(ne,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ie=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ie&&this.fire(new i.Event("zoomend",ne)),ge&&this.fire(new i.Event("rotateend",ne)),xe&&this.fire(new i.Event("pitchend",ne)),this.fire(new i.Event("moveend",ne))}},le.prototype.flyTo=function(ne,V){var ie=this;if(!ne.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ne=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ne);var xe=this.transform,Ee=this.getZoom(),Ne=this.getBearing(),et=this.getPitch(),rt=this.getPadding(),dt="zoom"in ne?i.clamp(+ne.zoom,xe.minZoom,xe.maxZoom):Ee,gt="bearing"in ne?this._normalizeBearing(ne.bearing,Ne):Ne,Rt="pitch"in ne?+ne.pitch:et,Mt="padding"in ne?ne.padding:xe.padding,Xt=xe.zoomScale(dt-Ee),dn=i.Point.convert(ne.offset),bn=xe.centerPoint.add(dn),vn=xe.pointLocation(bn),Ln=i.LngLat.convert(ne.center||vn);this._normalizeCenter(Ln);var gn=xe.project(vn),Jn=xe.project(Ln).sub(gn),pn=ne.curve,In=Math.max(xe.width,xe.height),Ir=In/Xt,Pr=Jn.mag();if("minZoom"in ne){var Gr=i.clamp(Math.min(ne.minZoom,Ee,dt),xe.minZoom,xe.maxZoom),ro=In/xe.zoomScale(Gr-Ee);pn=Math.sqrt(ro/Pr*2)}var po=pn*pn;function Wo(ai){var Hi=(Ir*Ir-In*In+(ai?-1:1)*po*po*Pr*Pr)/(2*(ai?Ir:In)*po*Pr);return Math.log(Math.sqrt(Hi*Hi+1)-Hi)}function si(ai){return(Math.exp(ai)-Math.exp(-ai))/2}function Bo(ai){return(Math.exp(ai)+Math.exp(-ai))/2}var Go=Wo(0),Yo=function(ai){return Bo(Go)/Bo(Go+pn*ai)},Wi=function(ai){return In*((Bo(Go)*(si(Hi=Go+pn*ai)/Bo(Hi))-si(Go))/po)/Pr;var Hi},Ho=(Wo(1)-Go)/pn;if(Math.abs(Pr)<1e-6||!isFinite(Ho)){if(Math.abs(In-Ir)<1e-6)return this.easeTo(ne,V);var jo=Irne.maxDuration&&(ne.duration=0),this._zooming=!0,this._rotating=Ne!==gt,this._pitching=Rt!==et,this._padding=!xe.isPaddingEqual(Mt),this._prepareEase(V,!1),this._ease(function(ai){var Hi=ai*Ho,Ai=1/Yo(Hi);xe.zoom=ai===1?dt:Ee+xe.scaleZoom(Ai),ie._rotating&&(xe.bearing=i.number(Ne,gt,ai)),ie._pitching&&(xe.pitch=i.number(et,Rt,ai)),ie._padding&&(xe.interpolatePadding(rt,Mt,ai),bn=xe.centerPoint.add(dn));var Ja=ai===1?Ln:xe.unproject(gn.add(Jn.mult(Wi(Hi))).mult(Ai));xe.setLocationAtPoint(xe.renderWorldCopies?Ja.wrap():Ja,bn),ie._fireMoveEvents(V)},function(){return ie._afterEase(V)},ne),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ne,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ie=this._onEaseEnd;delete this._onEaseEnd,ie.call(this,V)}if(!ne){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ne,V,ie){ie.animate===!1||ie.duration===0?(ne(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ie,this._onEaseFrame=ne,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ne=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ne)),ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ne,V){ne=i.wrap(ne,-180,180);var ie=Math.abs(ne-V);return Math.abs(ne-360-V)180?-360:ie<-180?360:0}},le}(i.Evented),_u=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_u.prototype.getDefaultPosition=function(){return"bottom-right"},_u.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_u.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_u.prototype._setElementTitle=function(J,le){var ne=this._map._getUIString("AttributionControl."+le);J.title=ne,J.setAttribute("aria-label",ne)},_u.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_u.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ne=le.reduce(function(V,ie,ge){return ie.value&&(V+=ie.key+"="+ie.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_u.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wt=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wt.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wt.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wt.prototype.getDefaultPosition=function(){return"bottom-left"},wt.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},wt.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},wt.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var Kt=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Kt.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},Kt.prototype.remove=function(J){for(var le=this._currentlyRunning,ne=0,V=le?this._queue.concat(le):this._queue;neV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Bi)throw new Error("maxPitch must be less than or equal to 60");var ge=new Gs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new Kt,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},En,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof wr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ie._update(!1)}),this.on("moveend",function(){return ie._update(!1)}),this.on("zoom",function(){return ie._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ls(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Ac(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new _u({customAttribution:V.customAttribution})),this.addControl(new wt,V.logoPosition),this.on("style.load",function(){ie.transform.unmodified&&ie.jumpTo(ie.style.stylesheet)}),this.on("data",function(Ee){ie._update(Ee.dataType==="style"),ie.fire(new i.Event(Ee.dataType+"data",Ee))}),this.on("dataloading",function(Ee){ie.fire(new i.Event(Ee.dataType+"dataloading",Ee))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ne={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ie){if(ie===void 0&&(ie=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ie];return ie.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ie=this._controls.indexOf(V);return ie>-1&&this._controls.splice(ie,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ie=this._containerDimensions(),ge=ie[0],xe=ie[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Ee=!this._moving;return Ee&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Ee&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Bi)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ie,ge){var xe,Ee=this;if(V==="mouseenter"||V==="mouseover"){var Ne=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length?Ne||(Ne=!0,ge.call(Ee,new vs(V,Ee,rt.originalEvent,{features:dt}))):Ne=!1},mouseout:function(){Ne=!1}}}}if(V==="mouseleave"||V==="mouseout"){var et=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){(Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[]).length?et=!0:et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))},mouseout:function(rt){et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))}}}}return{layer:ie,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length&&(rt.features=dt,ge.call(Ee,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ie,ge){if(ge===void 0)return J.prototype.on.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Ee,xe.delegates[Ee]);return this},le.prototype.once=function(V,ie,ge){if(ge===void 0)return J.prototype.once.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in xe.delegates)this.once(Ee,xe.delegates[Ee]);return this},le.prototype.off=function(V,ie,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ie):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Ee){for(var Ne=Ee[V],et=0;et180;){var xe=ne.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ne.width&&xe.y<=ne.height)break;J.lng>ne.center.lng?J.lng-=360:J.lng+=360}return J}Fs.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},Fs.prototype.move=function(J,le){var ne=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ne.setBearing(ne.getBearing()+V.bearingDelta),this.mousePitch){var ie=this.mousePitch.mousemoveWindow(J,le);ie&&ie.pitchDelta&&ne.setPitch(ne.getPitch()+ie.pitchDelta)}},Fs.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},Fs.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},Fs.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},Fs.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},Fs.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},Fs.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ne.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ne){this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ne){return this._draggable=!!ne,this._map&&(ne?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ne){return this._rotation=ne||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ne){return this._rotationAlignment=ne||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ne){return this._pitchAlignment=ne&&ne!=="auto"?ne:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),sh={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},_c=0,Xl=!1,pl=function(J){function le(ne){J.call(this),this.options=i.extend({},sh,ne),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ne){return this._map=ne,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,Pl!==void 0?V(Pl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ie){Pl=ie.state!=="denied",V(Pl)}):(Pl=!!i.window.navigator.geolocation,V(Pl)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,_c=0,Xl=!1},le.prototype._isOutOfMapMaxBounds=function(ne){var V=this._map.getMaxBounds(),ie=ne.coords;return V&&(ie.longitudeV.getEast()||ie.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ne){if(this._map){if(this._isOutOfMapMaxBounds(ne))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ne)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ne,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ne),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ne),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ne)),this._finish()}},le.prototype._updateCamera=function(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude),ie=ne.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ie),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ne){if(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ne.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ne=this._map._container.clientHeight/2,V=this._map.unproject([0,ne]),ie=this._map.unproject([1,ne]),ge=V.distanceTo(ie),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ne){if(this._map){if(this.options.trackUserLocation)if(ne.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ne.code===3&&Xl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ne)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ne){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ne===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ie=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ie,this._geolocateButton.setAttribute("aria-label",ie)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Ee=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Ee||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":_c--,Xl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ne;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++_c>1?(ne={maximumAge:6e5,timeout:0},Xl=!0):(ne=this.options.positionOptions,Xl=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ne)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),Pc={maxWidth:100,unit:"metric"},Uf=function(J){this.options=i.extend({},Pc,J),i.bindAll(["_onMove","setUnit"],this)};function Os(J,le,ne){var V=ne&&ne.maxWidth||100,ie=J._container.clientHeight/2,ge=J.unproject([0,ie]),xe=J.unproject([V,ie]),Ee=ge.distanceTo(xe);if(ne&&ne.unit==="imperial"){var Ne=3.2808*Ee;Ne>5280?Si(le,V,Ne/5280,J._getUIString("ScaleControl.Miles")):Si(le,V,Ne,J._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Si(le,V,Ee/1852,J._getUIString("ScaleControl.NauticalMiles")):Ee>=1e3?Si(le,V,Ee/1e3,J._getUIString("ScaleControl.Kilometers")):Si(le,V,Ee,J._getUIString("ScaleControl.Meters"))}function Si(J,le,ne,V){var ie,ge,xe,Ee=(ie=ne,(ge=Math.pow(10,(""+Math.floor(ie)).length-1))*((xe=ie/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(et){var rt=Math.pow(10,Math.ceil(-Math.log(et)/Math.LN10));return Math.round(et*rt)/rt}(xe))),Ne=Ee/ne;J.style.width=le*Ne+"px",J.innerHTML=Ee+" "+V}Uf.prototype.getDefaultPosition=function(){return"bottom-left"},Uf.prototype._onMove=function(){Os(this._map,this._container,this.options)},Uf.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Uf.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Uf.prototype.setUnit=function(J){this.options.unit=J,Os(this._map,this._container,this.options)};var lc=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};lc.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},lc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},lc.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},lc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},lc.prototype._isFullscreen=function(){return this._fullscreen},lc.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},lc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var rd={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),kt=function(J){function le(ne){J.call(this),this.options=i.extend(Object.create(rd),ne),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ne){return this._map&&this.remove(),this._map=ne,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ne){return this._lngLat=i.LngLat.convert(ne),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ne){return this.setDOMContent(i.window.document.createTextNode(ne))},le.prototype.setHTML=function(ne){var V,ie=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ne;V=ge.firstChild;)ie.appendChild(V);return this.setDOMContent(ie)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ne){return this.options.maxWidth=ne,this._update(),this},le.prototype.setDOMContent=function(ne){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ne),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ne){this._container&&this._container.classList.add(ne)},le.prototype.removeClassName=function(ne){this._container&&this._container.classList.remove(ne)},le.prototype.setOffset=function(ne){return this.options.offset=ne,this._update(),this},le.prototype.toggleClassName=function(ne){if(this._container)return this._container.classList.toggle(ne)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ne){this._update(ne.point)},le.prototype._onMouseMove=function(ne){this._update(ne.point)},le.prototype._onDrag=function(ne){this._update(ne.point)},le.prototype._update=function(ne){var V=this,ie=this._lngLat||this._trackPointer;if(this._map&&ie&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(gt){return V._container.classList.add(gt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Wu(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ne)){var ge=this._pos=this._trackPointer&&ne?ne:this._map.project(this._lngLat),xe=this.options.anchor,Ee=It(this.options.offset);if(!xe){var Ne,et=this._container.offsetWidth,rt=this._container.offsetHeight;Ne=ge.y+Ee.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-et/2&&Ne.push("right"),xe=Ne.length===0?"bottom":Ne.join("-")}var dt=ge.add(Ee[xe]).round();w.setTransform(this._container,Ki[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),Aa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ne=this._container.querySelector(tp);ne&&ne.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function It(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ne=i.Point.convert(J);return{center:ne,top:ne,"top-left":ne,"top-right":ne,bottom:ne,"bottom-left":ne,"bottom-right":ne,left:ne,right:ne}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return It(new i.Point(0,0))}var Ut={version:i.version,supported:S,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ni,NavigationControl:nl,GeolocateControl:pl,AttributionControl:_u,ScaleControl:Uf,FullscreenControl:lc,Popup:kt,Marker:Vf,Style:zo,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Jt().acquire(Bt)},clearPrewarmedResources:function(){var J=qt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Bt),qt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return _t.workerCount},set workerCount(J){_t.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ut}),u}()},3108:function(d,s,n){d.exports=n(26099)},26099:function(d,s,n){var u=n(64928),b=n(32420),i=n(51160),S=n(76752),w=n(55616),y=n(31264),m=n(47520),a=n(18400),c=n(72512),h=n(76244);function p(v,_){for(var O=_[0],C=_[1],x=1/(_[2]-O),R=1/(_[3]-C),M=new Array(v.length),T=0,P=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(c(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TO||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ye=_e||Qe===Ve)){var $e=P[De];Ve===void 0&&(Ve=$e.length);for(var Oe=Qe;Oe=ee&&Re<=pe&&We>=me&&We<=se&&we.push(ke)}var Ue=A[De],Ze=Ue[4*Qe+0],Ye=Ue[4*Qe+1],Je=Ue[4*Qe+2],Me=Ue[4*Qe+3],Fe=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,Qe+1),je=.5*ze,tt=De+1;Te(Pe,Ie,je,tt,Ze,Ye||Je||Me||Fe),Te(Pe,Ie+je,je,tt,Ye,Je||Me||Fe),Te(Pe+je,Ie,je,tt,Je,Me||Fe),Te(Pe+je,Ie+je,je,tt,Me,Fe)}}(0,0,1,0,0,1),we},x;function U(X,te,Z){for(var K=1,re=.5,q=.5,Y=.5,ee=0;ee0){m+=Math.abs(S(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(46284);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(S[0]=w[0]),S[1]>w[1]&&(S[1]=w[1]),S[2]=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(76796);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},s.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},s.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},s.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},s.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},s.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},s.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},s.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(49840);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=s[w]),s[w]>16,Ee>>16],u_pixel_coord_lower:[65535&xe,65535&Ee]}}Kf.prototype.draw=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt,Mt,Xt){var dn,bn=J.gl;if(!this.failedToCreate){for(var vn in J.program.set(this.program),J.setDepthMode(ne),J.setStencilMode(V),J.setColorMode(ie),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[vn].set(xe[vn]);Rt&&Rt.setUniforms(J,this.binderUniforms,dt,{zoom:gt});for(var Ln=(dn={},dn[bn.LINES]=2,dn[bn.TRIANGLES]=3,dn[bn.LINE_STRIP]=1,dn)[le],gn=0,Jn=rt.get();gn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ie.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:Cu(ie.paint.get("raster-hue-rotate"))};var ge,xe};function Cu(J){J*=Math.PI/180;var le=Math.sin(J),ne=Math.cos(J);return[(2*ne+1)/3,(-Math.sqrt(3)*le-ne+1)/3,(Math.sqrt(3)*le-ne+1)/3]}var ed,Bu=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){var rt=ie.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:rt.width/rt.height,u_fade_change:ie.options.fadeDuration?ie.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Ee,u_is_text:+Ne,u_pitch_with_map:+V,u_texsize:et,u_texture:0}},vd=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt){var dt=ie.transform;return i.extend(Bu(J,le,ne,V,ie,ge,xe,Ee,Ne,et),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},cs=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){return i.extend(vd(J,le,ne,V,ie,ge,xe,Ee,!0,Ne,!0),{u_texsize_icon:et,u_texture_icon:1})},oh=function(J,le,ne){return{u_matrix:J,u_opacity:le,u_color:ne}},Jh=function(J,le,ne,V,ie,ge){return i.extend(function(xe,Ee,Ne,et){var rt=Ne.imageManager.getPattern(xe.from.toString()),dt=Ne.imageManager.getPattern(xe.to.toString()),gt=Ne.imageManager.getPixelSize(),Rt=gt.width,Mt=gt.height,Xt=Math.pow(2,et.tileID.overscaledZ),dn=et.tileSize*Math.pow(2,Ne.transform.tileZoom)/Xt,bn=dn*(et.tileID.canonical.x+et.tileID.wrap*Xt),vn=dn*et.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Rt,Mt],u_mix:Ee.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Ee.fromScale,u_scale_b:Ee.toScale,u_tile_units_to_pixels:1/Mo(et,1,Ne.transform.tileZoom),u_pixel_coord_upper:[bn>>16,vn>>16],u_pixel_coord_lower:[65535&bn,65535&vn]}}(V,ge,ne,ie),{u_matrix:J,u_opacity:le})},_h={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function xf(J,le,ne,V,ie,ge,xe){for(var Ee=J.context,Ne=Ee.gl,et=J.useProgram("collisionBox"),rt=[],dt=0,gt=0,Rt=0;Rt0){var gn=i.create(),Jn=bn;i.mul(gn,dn.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(gn,gn,dn.placementViewportMatrix),rt.push({circleArray:Ln,circleOffset:gt,transform:Jn,invTransform:gn}),gt=dt+=Ln.length/4}vn&&et.draw(Ee,Ne.LINES,Pn.disabled,vt.disabled,J.colorModeForRenderPass(),st.disabled,Tu(bn,J.transform,Xt),ne.id,vn.layoutVertexBuffer,vn.indexBuffer,vn.segments,null,J.transform.zoom,null,null,vn.collisionVertexBuffer)}}if(xe&&rt.length){var pn=J.useProgram("collisionCircle"),In=new i.StructArrayLayout2f1f2i16;In.resize(4*dt),In._trim();for(var Ir=0,Pr=0,Gr=rt;Pr=0&&(Mt[dn.associatedIconIndex]={shiftedAnchor:Gr,angle:ro})}else co(dn.numGlyphs,gt)}if(rt){Rt.clear();for(var Wo=J.icon.placedSymbolArray,si=0;si0){var xe=i.browser.now(),Ee=(xe-J.timeAdded)/ge,Ne=le?(xe-le.timeAdded)/ge:-1,et=ne.getSource(),rt=ie.coveringZoomLevel({tileSize:et.tileSize,roundZoom:et.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),gt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Ee:1-Ne,0,1);return J.refreshedUponExpiration&&Ee>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-gt}:{opacity:gt,mix:0}}return{opacity:1,mix:0}}var ih=new i.Color(1,0,0,1),yu=new i.Color(0,1,0,1),jc=new i.Color(0,0,1,1),Nh=new i.Color(1,0,1,1),af=new i.Color(0,1,1,1);function td(J){var le=J.transform.padding;sf(J,J.transform.height-(le.top||0),3,ih),sf(J,le.bottom||0,3,yu),Bc(J,le.left||0,3,jc),Bc(J,J.transform.width-(le.right||0),3,Nh);var ne=J.transform.centerPoint;(function(V,ie,ge,xe){var Ee=20,Ne=2;Vd(V,ie-Ne/2,ge-Ee/2,Ne,Ee,xe),Vd(V,ie-Ee/2,ge-Ne/2,Ee,Ne,xe)})(J,ne.x,J.transform.height-ne.y,af)}function sf(J,le,ne,V){Vd(J,0,le+ne/2,J.transform.width,ne,V)}function Bc(J,le,ne,V){Vd(J,le-ne/2,0,ne,J.transform.height,V)}function Vd(J,le,ne,V,ie,ge){var xe=J.context,Ee=xe.gl;Ee.enable(Ee.SCISSOR_TEST),Ee.scissor(le*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio),xe.clear({color:ge}),Ee.disable(Ee.SCISSOR_TEST)}function xd(J,le,ne){var V=J.context,ie=V.gl,ge=ne.posMatrix,xe=J.useProgram("debug"),Ee=Pn.disabled,Ne=vt.disabled,et=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ie.TEXTURE0),J.emptyTexture.bind(ie.LINEAR,ie.CLAMP_TO_EDGE),xe.draw(V,ie.LINE_STRIP,Ee,Ne,et,st.disabled,ec(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ne.key).latestRawTileData,gt=dt&&dt.byteLength||0,Rt=Math.floor(gt/1024),Mt=le.getTile(ne).tileSize,Xt=512/Math.min(Mt,512)*(ne.overscaledZ/J.transform.zoom)*.5,dn=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(dn+=" => "+ne.overscaledZ),function(bn,vn){bn.initDebugOverlayCanvas();var Ln=bn.debugOverlayCanvas,gn=bn.context.gl,Jn=bn.debugOverlayCanvas.getContext("2d");Jn.clearRect(0,0,Ln.width,Ln.height),Jn.shadowColor="white",Jn.shadowBlur=2,Jn.lineWidth=1.5,Jn.strokeStyle="white",Jn.textBaseline="top",Jn.font="bold 36px Open Sans, sans-serif",Jn.fillText(vn,5,5),Jn.strokeText(vn,5,5),bn.debugOverlayTexture.update(Ln),bn.debugOverlayTexture.bind(gn.LINEAR,gn.CLAMP_TO_EDGE)}(J,dn+" "+Rt+"kb"),xe.draw(V,ie.TRIANGLES,Ee,Ne,xt.alphaBlended,st.disabled,ec(ge,i.Color.transparent,Xt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var vc={symbol:function(J,le,ne,V,ie){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ne.layout.get("text-variable-anchor")&&function(Ee,Ne,et,rt,dt,gt,Rt){for(var Mt=Ne.transform,Xt=dt==="map",dn=gt==="map",bn=0,vn=Ee;bn256&&this.clearStencil(),ne.setColorMode(xt.disabled),ne.setDepthMode(Pn.disabled);var ie=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilConfigForOverlap=function(J){var le,ne=this.context.gl,V=J.sort(function(Ne,et){return et.overscaledZ-Ne.overscaledZ}),ie=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ie+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Ee=0;Ee=0;this.currentLayer--){var Jn=this.style._layers[V[this.currentLayer]],pn=ie[Jn.source],In=et[Jn.source];this._renderTileClippingMasks(Jn,In),this.renderLayer(this,pn,Jn,In)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},gs.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ne=this.imageManager.getPattern(J.to.toString());return!le||!ne},gs.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ne=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ne]||(this.cache[ne]=new Kf(this.context,J,ma[J],le,_h[J],this._showOverdrawInspector)),this.cache[ne]},gs.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gs.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},gs.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},gs.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var yc=function(J,le){this.points=J,this.planes=le};yc.fromInvProjectionMatrix=function(J,le,ne){var V=Math.pow(2,ne),ie=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Ee=i.sub([],ie[xe[0]],ie[xe[1]]),Ne=i.sub([],ie[xe[2]],ie[xe[1]]),et=i.normalize([],i.cross([],Ee,Ne)),rt=-i.dot(et,ie[xe[1]]);return et.concat(rt)});return new yc(ie,ge)};var Cc=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Cc.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ne=i.clone$2(this.min),V=i.clone$2(this.max),ie=0;ie=0;if(ge===0)return 0;ge!==le.length&&(ne=!1)}if(ne)return 2;for(var Ee=0;Ee<3;Ee++){for(var Ne=Number.MAX_VALUE,et=-Number.MAX_VALUE,rt=0;rtthis.max[Ee]-this.min[Ee])return 0}return 1};var Nu=function(J,le,ne,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ne===void 0&&(ne=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ne)||ne<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ne,this.right=V};Nu.prototype.interpolate=function(J,le,ne){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ne)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ne)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ne)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ne)),this},Nu.prototype.getCenter=function(J,le){var ne=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ne,V)},Nu.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Nu.prototype.clone=function(){return new Nu(this.top,this.bottom,this.left,this.right)},Nu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Gs=function(J,le,ne,V,ie){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ie===void 0||ie,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ne??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Nu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ks={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Gs.prototype.clone=function(){var J=new Gs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},Ks.minZoom.get=function(){return this._minZoom},Ks.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},Ks.maxZoom.get=function(){return this._maxZoom},Ks.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},Ks.minPitch.get=function(){return this._minPitch},Ks.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},Ks.maxPitch.get=function(){return this._maxPitch},Ks.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},Ks.renderWorldCopies.get=function(){return this._renderWorldCopies},Ks.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},Ks.worldSize.get=function(){return this.tileSize*this.scale},Ks.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ks.size.get=function(){return new i.Point(this.width,this.height)},Ks.bearing.get=function(){return-this.angle/Math.PI*180},Ks.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ks.pitch.get=function(){return this._pitch/Math.PI*180},Ks.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},Ks.fov.get=function(){return this._fov/Math.PI*180},Ks.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},Ks.zoom.get=function(){return this._zoom},Ks.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},Ks.center.get=function(){return this._center},Ks.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},Ks.padding.get=function(){return this._edgeInsets.toJSON()},Ks.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},Ks.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Gs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Gs.prototype.interpolatePadding=function(J,le,ne){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ne),this._constrain(),this._calcMatrices()},Gs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Gs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ne=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ie=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ne.x,V.x,ie.x,ge.x)),Ee=Math.floor(Math.max(ne.x,V.x,ie.x,ge.x)),Ne=xe-1;Ne<=Ee+1;Ne++)Ne!==0&&le.push(new i.UnwrappedTileID(Ne,J));return le},Gs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ne=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ie=Math.pow(2,le),ge=[ie*V.x,ie*V.y,0],xe=yc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Ee=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ee=le);var Ne=function(Gr){return{aabb:new Cc([Gr*ie,0,0],[(Gr+1)*ie,ie,0]),zoom:0,x:0,y:0,wrap:Gr,fullyVisible:!1}},et=[],rt=[],dt=le,gt=J.reparseOverscaled?ne:le;if(this._renderWorldCopies)for(var Rt=1;Rt<=3;Rt++)et.push(Ne(-Rt)),et.push(Ne(Rt));for(et.push(Ne(0));et.length>0;){var Mt=et.pop(),Xt=Mt.x,dn=Mt.y,bn=Mt.fullyVisible;if(!bn){var vn=Mt.aabb.intersects(xe);if(vn===0)continue;bn=vn===2}var Ln=Mt.aabb.distanceX(ge),gn=Mt.aabb.distanceY(ge),Jn=Math.max(Math.abs(Ln),Math.abs(gn)),pn=3+(1<pn&&Mt.zoom>=Ee)rt.push({tileID:new i.OverscaledTileID(Mt.zoom===dt?gt:Mt.zoom,Mt.wrap,Mt.zoom,Xt,dn),distanceSq:i.sqrLen([ge[0]-.5-Xt,ge[1]-.5-dn])});else for(var In=0;In<4;In++){var Ir=(Xt<<1)+In%2,Pr=(dn<<1)+(In>>1);et.push({aabb:Mt.aabb.quadrant(In),zoom:Mt.zoom+1,x:Ir,y:Pr,wrap:Mt.wrap,fullyVisible:bn})}}return rt.sort(function(Gr,ro){return Gr.distanceSq-ro.distanceSq}).map(function(Gr){return Gr.tileID})},Gs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},Ks.unmodified.get=function(){return this._unmodified},Gs.prototype.zoomScale=function(J){return Math.pow(2,J)},Gs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Gs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Gs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},Ks.point.get=function(){return this.project(this.center)},Gs.prototype.setLocationAtPoint=function(J,le){var ne=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ie=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ie.x-(ne.x-V.x),ie.y-(ne.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Gs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Gs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Gs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Gs.prototype.coordinateLocation=function(J){return J.toLngLat()},Gs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ne=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ne,ne,this.pixelMatrixInverse);var V=le[3],ie=ne[3],ge=le[0]/V,xe=ne[0]/ie,Ee=le[1]/V,Ne=ne[1]/ie,et=le[2]/V,rt=ne[2]/ie,dt=et===rt?0:(0-et)/(rt-et);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Ee,Ne,dt)/this.worldSize)},Gs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Gs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Gs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Gs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Gs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ne=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ne])return V[ne];var ie=J.canonical,ge=this.worldSize/this.zoomScale(ie.z),xe=ie.x+Math.pow(2,ie.z)*J.wrap,Ee=i.identity(new Float64Array(16));return i.translate(Ee,Ee,[xe*ge,ie.y*ge,0]),i.scale(Ee,Ee,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Ee,le?this.alignedProjMatrix:this.projMatrix,Ee),V[ne]=new Float32Array(Ee),V[ne]},Gs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Gs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ne,V,ie=-90,ge=90,xe=-180,Ee=180,Ne=this.size,et=this._unmodified;if(this.latRange){var rt=this.latRange;ie=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-iege&&(V=ge-Xt)}if(this.lngRange){var dn=gt.x,bn=Ne.x/2;dn-bnEe&&(ne=Ee-bn)}ne===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ne!==void 0?ne:gt.x,V!==void 0?V:gt.y))),this._unmodified=et,this._constraining=!1}},Gs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ne=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ie=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ne-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Ee=ge.y,Ne=1.01*(Math.cos(Math.PI/2-this._pitch)*ie+this.cameraToCenterDistance),et=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,et,Ne),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Ee,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,gt=this.height%2/2,Rt=Math.cos(this.angle),Mt=Math.sin(this.angle),Xt=xe-Math.round(xe)+Rt*dt+Mt*gt,dn=Ee-Math.round(Ee)+Rt*gt+Mt*dt,bn=new Float64Array(rt);if(i.translate(bn,bn,[Xt>.5?Xt-1:Xt,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=bn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Gs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Gs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Gs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ne=le.x,V=le.y,ie=le.x,ge=le.y,xe=0,Ee=J;xe=3&&!J.some(function(ne){return isNaN(ne)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Ac.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var _d={linearity:.3,easing:i.bezier(0,0,.3,1)},Fh=i.extend({deceleration:2500,maxSpeed:1400},_d),$h=i.extend({deceleration:20,maxSpeed:1400},_d),vp=i.extend({deceleration:1e3,maxSpeed:360},_d),ah=i.extend({deceleration:1e3,maxSpeed:90},_d),Au=function(J){this._map=J,this.clear()};function lf(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Au.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ne=0,V=this._inertiaBuffer;ne=this._clickTolerance||this._map.fire(new vs(J.type,this._map,J))},nc.prototype.dblclick=function(J){return this._firePreventable(new vs(J.type,this._map,J))},nc.prototype.mouseover=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.mouseout=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.touchstart=function(J){return this._firePreventable(new cl(J.type,this._map,J))},nc.prototype.touchmove=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchend=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchcancel=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},nc.prototype.isEnabled=function(){return!0},nc.prototype.isActive=function(){return!1},nc.prototype.enable=function(){},nc.prototype.disable=function(){};var Qc=function(J){this._map=J};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(J){this._map.fire(new vs(J.type,this._map,J))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new vs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new vs(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var ts=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function wi(J,le){for(var ne={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ne.length===this.numTouches&&(this.centroid=function(V){for(var ie=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},bu.prototype.touchend=function(J,le,ne){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ne.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var wd=function(J){this.singleTap=new bu(J),this.numTaps=J.numTaps,this.reset()};wd.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},wd.prototype.touchstart=function(J,le,ne){this.singleTap.touchstart(J,le,ne)},wd.prototype.touchmove=function(J,le,ne){this.singleTap.touchmove(J,le,ne)},wd.prototype.touchend=function(J,le,ne){var V=this.singleTap.touchend(J,le,ne);if(V){var ie=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ie&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var Ol=function(){this._zoomIn=new wd({numTouches:1,numTaps:2}),this._zoomOut=new wd({numTouches:2,numTaps:1}),this.reset()};Ol.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Ol.prototype.touchstart=function(J,le,ne){this._zoomIn.touchstart(J,le,ne),this._zoomOut.touchstart(J,le,ne)},Ol.prototype.touchmove=function(J,le,ne){this._zoomIn.touchmove(J,le,ne),this._zoomOut.touchmove(J,le,ne)},Ol.prototype.touchend=function(J,le,ne){var V=this,ie=this._zoomIn.touchend(J,le,ne),ge=this._zoomOut.touchend(J,le,ne);return ie?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ie)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},Ol.prototype.touchcancel=function(){this.reset()},Ol.prototype.enable=function(){this._enabled=!0},Ol.prototype.disable=function(){this._enabled=!1,this.reset()},Ol.prototype.isEnabled=function(){return this._enabled},Ol.prototype.isActive=function(){return this._active};var ds={};ds[0]=1,ds[2]=2;var zc=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};zc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},zc.prototype._correctButton=function(J,le){return!1},zc.prototype._move=function(J,le){return{}},zc.prototype.mousedown=function(J,le){if(!this._lastPoint){var ne=w.mouseButton(J);this._correctButton(J,ne)&&(this._lastPoint=le,this._eventButton=ne)}},zc.prototype.mousemoveWindow=function(J,le){var ne=this._lastPoint;if(ne){if(J.preventDefault(),function(V,ie){var ge=ds[ie];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ne)0&&(this._active=!0);var V=wi(ne,le),ie=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Ee in V){var Ne=V[Ee],et=this._touches[Ee];et&&(ie._add(Ne),ge._add(Ne.sub(et)),xe++,V[Ee]=Ne)}if(this._touches=V,!(xeMath.abs(J.x)}var Kc=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ne){this._lastPoints=ne,xc(ne[0].sub(ne[1]))&&(this._valid=!1)},le.prototype._move=function(ne,V,ie){var ge=ne[0].sub(this._lastPoints[0]),xe=ne[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ie.timeStamp),this._valid)return this._lastPoints=ne,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ne,V,ie){if(this._valid!==void 0)return this._valid;var ge=ne.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ie),ie-this._firstMove<100&&void 0;var Ee=ne.y>0==V.y>0;return xc(ne)&&xc(V)&&Ee}},le}(rs),jd={panStep:100,bearingStep:15,pitchStep:10},ii=function(){var J=jd;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function nd(J){return J*(2-J)}ii.prototype.reset=function(){this._active=!1},ii.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ne=0,V=0,ie=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ie=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ie=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ie=0),{cameraAnimation:function(Ee){var Ne=Ee.getZoom();Ee.easeTo({duration:300,easeId:"keyboardHandler",easing:nd,zoom:ne?Math.round(Ne)+ne*(J.shiftKey?2:1):Ne,bearing:Ee.getBearing()+V*le._bearingStep,pitch:Ee.getPitch()+ie*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Ee.getCenter()},{originalEvent:J})}}}},ii.prototype.enable=function(){this._enabled=!0},ii.prototype.disable=function(){this._enabled=!1,this.reset()},ii.prototype.isEnabled=function(){return this._enabled},ii.prototype.isActive=function(){return this._active},ii.prototype.disableRotation=function(){this._rotationDisabled=!0},ii.prototype.enableRotation=function(){this._rotationDisabled=!1};var al=4.000244140625,Yl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Yl.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Yl.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Yl.prototype.isEnabled=function(){return!!this._enabled},Yl.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Yl.prototype.isZooming=function(){return!!this._zooming},Yl.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Yl.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yl.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ne=i.browser.now(),V=ne-(this._lastWheelEventTime||0);this._lastWheelEventTime=ne,le!==0&&le%al==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Yl.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Yl.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Yl.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ne=this._type==="wheel"&&Math.abs(this._delta)>al?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ne)));this._delta<0&&V!==0&&(V=1/V);var ie=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ie*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Ee=this._startZoom,Ne=this._easing,et=!1;if(this._type==="wheel"&&Ee&&Ne){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Ne(rt);ge=i.number(Ee,xe,dt),rt<1?this._frameId||(this._frameId=!0):et=!0}else ge=xe,et=!0;return this._active=!0,et&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!et,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Yl.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ne=this._prevEase,V=(i.browser.now()-ne.start)/ne.duration,ie=ne.easing(V+.01)-ne.easing(V),ge=.27/Math.sqrt(ie*ie+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Yl.prototype.reset=function(){this._active=!1};var uf=function(J,le){this._clickZoom=J,this._tapZoom=le};uf.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},uf.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},uf.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},uf.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var hs=function(){this.reset()};hs.prototype.reset=function(){this._active=!1},hs.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ne){ne.easeTo({duration:300,zoom:ne.getZoom()+(J.shiftKey?-1:1),around:ne.unproject(le)},{originalEvent:J})}}},hs.prototype.enable=function(){this._enabled=!0},hs.prototype.disable=function(){this._enabled=!1,this.reset()},hs.prototype.isEnabled=function(){return this._enabled},hs.prototype.isActive=function(){return this._active};var Mc=function(){this._tap=new wd({numTouches:1,numTaps:1}),this.reset()};Mc.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mc.prototype.touchstart=function(J,le,ne){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ne.length>0&&(this._swipePoint=le[0],this._swipeTouch=ne[0].identifier):this._tap.touchstart(J,le,ne))},Mc.prototype.touchmove=function(J,le,ne){if(this._tapTime){if(this._swipePoint){if(ne[0].identifier!==this._swipeTouch)return;var V=le[0],ie=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ie/128}}}else this._tap.touchmove(J,le,ne)},Mc.prototype.touchend=function(J,le,ne){this._tapTime?this._swipePoint&&ne.length===0&&this.reset():this._tap.touchend(J,le,ne)&&(this._tapTime=J.timeStamp)},Mc.prototype.touchcancel=function(){this.reset()},Mc.prototype.enable=function(){this._enabled=!0},Mc.prototype.disable=function(){this._enabled=!1,this.reset()},Mc.prototype.isEnabled=function(){return this._enabled},Mc.prototype.isActive=function(){return this._active};var Eu=function(J,le,ne){this._el=J,this._mousePan=le,this._touchPan=ne};Eu.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Eu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Eu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Eu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xu=function(J,le,ne){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ne};xu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ws=function(J,le,ne,V){this._el=J,this._touchZoom=le,this._touchRotate=ne,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};ws.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ws.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ws.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ws.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ws.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ws.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Fu=function(J){return J.zoom||J.drag||J.pitch||J.rotate},su=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Ca(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ls=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Au(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ne=this._el;this._listeners=[[ne,"touchstart",{passive:!0}],[ne,"touchmove",{passive:!1}],[ne,"touchend",void 0],[ne,"touchcancel",void 0],[ne,"mousedown",void 0],[ne,"mousemove",void 0],[ne,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ne,"mouseover",void 0],[ne,"mouseout",void 0],[ne,"dblclick",void 0],[ne,"click",void 0],[ne,"keydown",{capture:!1}],[ne,"keyup",void 0],[ne,"wheel",{passive:!1}],[ne,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ie=this._listeners;Vxe?Math.min(2,pn):Math.max(.5,pn),ro=Math.pow(Gr,1-Ir),po=ge.unproject(gn.add(Jn.mult(Ir*ro)).mult(Pr));ge.setLocationAtPoint(ge.renderWorldCopies?po.wrap():po,Xt)}ie._fireMoveEvents(V)},function(Ir){ie._afterEase(V,Ir)},ne),this},le.prototype._prepareEase=function(ne,V,ie){ie===void 0&&(ie={}),this._moving=!0,V||ie.moving||this.fire(new i.Event("movestart",ne)),this._zooming&&!ie.zooming&&this.fire(new i.Event("zoomstart",ne)),this._rotating&&!ie.rotating&&this.fire(new i.Event("rotatestart",ne)),this._pitching&&!ie.pitching&&this.fire(new i.Event("pitchstart",ne))},le.prototype._fireMoveEvents=function(ne){this.fire(new i.Event("move",ne)),this._zooming&&this.fire(new i.Event("zoom",ne)),this._rotating&&this.fire(new i.Event("rotate",ne)),this._pitching&&this.fire(new i.Event("pitch",ne))},le.prototype._afterEase=function(ne,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ie=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ie&&this.fire(new i.Event("zoomend",ne)),ge&&this.fire(new i.Event("rotateend",ne)),xe&&this.fire(new i.Event("pitchend",ne)),this.fire(new i.Event("moveend",ne))}},le.prototype.flyTo=function(ne,V){var ie=this;if(!ne.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ne=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ne);var xe=this.transform,Ee=this.getZoom(),Ne=this.getBearing(),et=this.getPitch(),rt=this.getPadding(),dt="zoom"in ne?i.clamp(+ne.zoom,xe.minZoom,xe.maxZoom):Ee,gt="bearing"in ne?this._normalizeBearing(ne.bearing,Ne):Ne,Rt="pitch"in ne?+ne.pitch:et,Mt="padding"in ne?ne.padding:xe.padding,Xt=xe.zoomScale(dt-Ee),dn=i.Point.convert(ne.offset),bn=xe.centerPoint.add(dn),vn=xe.pointLocation(bn),Ln=i.LngLat.convert(ne.center||vn);this._normalizeCenter(Ln);var gn=xe.project(vn),Jn=xe.project(Ln).sub(gn),pn=ne.curve,In=Math.max(xe.width,xe.height),Ir=In/Xt,Pr=Jn.mag();if("minZoom"in ne){var Gr=i.clamp(Math.min(ne.minZoom,Ee,dt),xe.minZoom,xe.maxZoom),ro=In/xe.zoomScale(Gr-Ee);pn=Math.sqrt(ro/Pr*2)}var po=pn*pn;function Wo(ai){var Hi=(Ir*Ir-In*In+(ai?-1:1)*po*po*Pr*Pr)/(2*(ai?Ir:In)*po*Pr);return Math.log(Math.sqrt(Hi*Hi+1)-Hi)}function si(ai){return(Math.exp(ai)-Math.exp(-ai))/2}function Bo(ai){return(Math.exp(ai)+Math.exp(-ai))/2}var Go=Wo(0),Yo=function(ai){return Bo(Go)/Bo(Go+pn*ai)},Wi=function(ai){return In*((Bo(Go)*(si(Hi=Go+pn*ai)/Bo(Hi))-si(Go))/po)/Pr;var Hi},Ho=(Wo(1)-Go)/pn;if(Math.abs(Pr)<1e-6||!isFinite(Ho)){if(Math.abs(In-Ir)<1e-6)return this.easeTo(ne,V);var jo=Irne.maxDuration&&(ne.duration=0),this._zooming=!0,this._rotating=Ne!==gt,this._pitching=Rt!==et,this._padding=!xe.isPaddingEqual(Mt),this._prepareEase(V,!1),this._ease(function(ai){var Hi=ai*Ho,Ai=1/Yo(Hi);xe.zoom=ai===1?dt:Ee+xe.scaleZoom(Ai),ie._rotating&&(xe.bearing=i.number(Ne,gt,ai)),ie._pitching&&(xe.pitch=i.number(et,Rt,ai)),ie._padding&&(xe.interpolatePadding(rt,Mt,ai),bn=xe.centerPoint.add(dn));var es=ai===1?Ln:xe.unproject(gn.add(Jn.mult(Wi(Hi))).mult(Ai));xe.setLocationAtPoint(xe.renderWorldCopies?es.wrap():es,bn),ie._fireMoveEvents(V)},function(){return ie._afterEase(V)},ne),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ne,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ie=this._onEaseEnd;delete this._onEaseEnd,ie.call(this,V)}if(!ne){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ne,V,ie){ie.animate===!1||ie.duration===0?(ne(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ie,this._onEaseFrame=ne,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ne=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ne)),ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ne,V){ne=i.wrap(ne,-180,180);var ie=Math.abs(ne-V);return Math.abs(ne-360-V)180?-360:ie<-180?360:0}},le}(i.Evented),_u=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_u.prototype.getDefaultPosition=function(){return"bottom-right"},_u.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_u.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_u.prototype._setElementTitle=function(J,le){var ne=this._map._getUIString("AttributionControl."+le);J.title=ne,J.setAttribute("aria-label",ne)},_u.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_u.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ne=le.reduce(function(V,ie,ge){return ie.value&&(V+=ie.key+"="+ie.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_u.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wt=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wt.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wt.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wt.prototype.getDefaultPosition=function(){return"bottom-left"},wt.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},wt.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},wt.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var Kt=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Kt.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},Kt.prototype.remove=function(J){for(var le=this._currentlyRunning,ne=0,V=le?this._queue.concat(le):this._queue;neV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Bi)throw new Error("maxPitch must be less than or equal to 60");var ge=new Gs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new Kt,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},En,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof wr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ie._update(!1)}),this.on("moveend",function(){return ie._update(!1)}),this.on("zoom",function(){return ie._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ls(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Ac(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new _u({customAttribution:V.customAttribution})),this.addControl(new wt,V.logoPosition),this.on("style.load",function(){ie.transform.unmodified&&ie.jumpTo(ie.style.stylesheet)}),this.on("data",function(Ee){ie._update(Ee.dataType==="style"),ie.fire(new i.Event(Ee.dataType+"data",Ee))}),this.on("dataloading",function(Ee){ie.fire(new i.Event(Ee.dataType+"dataloading",Ee))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ne={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ie){if(ie===void 0&&(ie=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ie];return ie.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ie=this._controls.indexOf(V);return ie>-1&&this._controls.splice(ie,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ie=this._containerDimensions(),ge=ie[0],xe=ie[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Ee=!this._moving;return Ee&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Ee&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Bi)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ie,ge){var xe,Ee=this;if(V==="mouseenter"||V==="mouseover"){var Ne=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length?Ne||(Ne=!0,ge.call(Ee,new vs(V,Ee,rt.originalEvent,{features:dt}))):Ne=!1},mouseout:function(){Ne=!1}}}}if(V==="mouseleave"||V==="mouseout"){var et=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){(Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[]).length?et=!0:et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))},mouseout:function(rt){et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))}}}}return{layer:ie,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length&&(rt.features=dt,ge.call(Ee,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ie,ge){if(ge===void 0)return J.prototype.on.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Ee,xe.delegates[Ee]);return this},le.prototype.once=function(V,ie,ge){if(ge===void 0)return J.prototype.once.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in xe.delegates)this.once(Ee,xe.delegates[Ee]);return this},le.prototype.off=function(V,ie,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ie):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Ee){for(var Ne=Ee[V],et=0;et180;){var xe=ne.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ne.width&&xe.y<=ne.height)break;J.lng>ne.center.lng?J.lng-=360:J.lng+=360}return J}Fs.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},Fs.prototype.move=function(J,le){var ne=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ne.setBearing(ne.getBearing()+V.bearingDelta),this.mousePitch){var ie=this.mousePitch.mousemoveWindow(J,le);ie&&ie.pitchDelta&&ne.setPitch(ne.getPitch()+ie.pitchDelta)}},Fs.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},Fs.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},Fs.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},Fs.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},Fs.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},Fs.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ne.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ne){this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ne){return this._draggable=!!ne,this._map&&(ne?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ne){return this._rotation=ne||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ne){return this._rotationAlignment=ne||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ne){return this._pitchAlignment=ne&&ne!=="auto"?ne:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),sh={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},_c=0,Xl=!1,pl=function(J){function le(ne){J.call(this),this.options=i.extend({},sh,ne),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ne){return this._map=ne,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,Pl!==void 0?V(Pl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ie){Pl=ie.state!=="denied",V(Pl)}):(Pl=!!i.window.navigator.geolocation,V(Pl)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,_c=0,Xl=!1},le.prototype._isOutOfMapMaxBounds=function(ne){var V=this._map.getMaxBounds(),ie=ne.coords;return V&&(ie.longitudeV.getEast()||ie.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ne){if(this._map){if(this._isOutOfMapMaxBounds(ne))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ne)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ne,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ne),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ne),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ne)),this._finish()}},le.prototype._updateCamera=function(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude),ie=ne.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ie),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ne){if(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ne.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ne=this._map._container.clientHeight/2,V=this._map.unproject([0,ne]),ie=this._map.unproject([1,ne]),ge=V.distanceTo(ie),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ne){if(this._map){if(this.options.trackUserLocation)if(ne.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ne.code===3&&Xl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ne)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ne){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ne===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ie=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ie,this._geolocateButton.setAttribute("aria-label",ie)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Ee=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Ee||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":_c--,Xl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ne;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++_c>1?(ne={maximumAge:6e5,timeout:0},Xl=!0):(ne=this.options.positionOptions,Xl=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ne)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),Pc={maxWidth:100,unit:"metric"},Uf=function(J){this.options=i.extend({},Pc,J),i.bindAll(["_onMove","setUnit"],this)};function Os(J,le,ne){var V=ne&&ne.maxWidth||100,ie=J._container.clientHeight/2,ge=J.unproject([0,ie]),xe=J.unproject([V,ie]),Ee=ge.distanceTo(xe);if(ne&&ne.unit==="imperial"){var Ne=3.2808*Ee;Ne>5280?Si(le,V,Ne/5280,J._getUIString("ScaleControl.Miles")):Si(le,V,Ne,J._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Si(le,V,Ee/1852,J._getUIString("ScaleControl.NauticalMiles")):Ee>=1e3?Si(le,V,Ee/1e3,J._getUIString("ScaleControl.Kilometers")):Si(le,V,Ee,J._getUIString("ScaleControl.Meters"))}function Si(J,le,ne,V){var ie,ge,xe,Ee=(ie=ne,(ge=Math.pow(10,(""+Math.floor(ie)).length-1))*((xe=ie/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(et){var rt=Math.pow(10,Math.ceil(-Math.log(et)/Math.LN10));return Math.round(et*rt)/rt}(xe))),Ne=Ee/ne;J.style.width=le*Ne+"px",J.innerHTML=Ee+" "+V}Uf.prototype.getDefaultPosition=function(){return"bottom-left"},Uf.prototype._onMove=function(){Os(this._map,this._container,this.options)},Uf.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Uf.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Uf.prototype.setUnit=function(J){this.options.unit=J,Os(this._map,this._container,this.options)};var lc=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};lc.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},lc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},lc.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},lc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},lc.prototype._isFullscreen=function(){return this._fullscreen},lc.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},lc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var rd={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),kt=function(J){function le(ne){J.call(this),this.options=i.extend(Object.create(rd),ne),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ne){return this._map&&this.remove(),this._map=ne,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ne){return this._lngLat=i.LngLat.convert(ne),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ne){return this.setDOMContent(i.window.document.createTextNode(ne))},le.prototype.setHTML=function(ne){var V,ie=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ne;V=ge.firstChild;)ie.appendChild(V);return this.setDOMContent(ie)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ne){return this.options.maxWidth=ne,this._update(),this},le.prototype.setDOMContent=function(ne){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ne),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ne){this._container&&this._container.classList.add(ne)},le.prototype.removeClassName=function(ne){this._container&&this._container.classList.remove(ne)},le.prototype.setOffset=function(ne){return this.options.offset=ne,this._update(),this},le.prototype.toggleClassName=function(ne){if(this._container)return this._container.classList.toggle(ne)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ne){this._update(ne.point)},le.prototype._onMouseMove=function(ne){this._update(ne.point)},le.prototype._onDrag=function(ne){this._update(ne.point)},le.prototype._update=function(ne){var V=this,ie=this._lngLat||this._trackPointer;if(this._map&&ie&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(gt){return V._container.classList.add(gt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Wu(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ne)){var ge=this._pos=this._trackPointer&&ne?ne:this._map.project(this._lngLat),xe=this.options.anchor,Ee=It(this.options.offset);if(!xe){var Ne,et=this._container.offsetWidth,rt=this._container.offsetHeight;Ne=ge.y+Ee.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-et/2&&Ne.push("right"),xe=Ne.length===0?"bottom":Ne.join("-")}var dt=ge.add(Ee[xe]).round();w.setTransform(this._container,Ki[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),Aa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ne=this._container.querySelector(tp);ne&&ne.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function It(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ne=i.Point.convert(J);return{center:ne,top:ne,"top-left":ne,"top-right":ne,bottom:ne,"bottom-left":ne,"bottom-right":ne,left:ne,right:ne}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return It(new i.Point(0,0))}var Ut={version:i.version,supported:S,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ni,NavigationControl:nl,GeolocateControl:pl,AttributionControl:_u,ScaleControl:Uf,FullscreenControl:lc,Popup:kt,Marker:Vf,Style:zo,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Jt().acquire(Bt)},clearPrewarmedResources:function(){var J=qt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Bt),qt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return _t.workerCount},set workerCount(J){_t.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ut}),u}()},3108:function(d,s,n){d.exports=n(26099)},26099:function(d,s,n){var u=n(64928),b=n(32420),i=n(51160),S=n(76752),w=n(55616),y=n(31264),m=n(47520),a=n(18400),c=n(72512),h=n(76244);function p(v,_){for(var O=_[0],C=_[1],x=1/(_[2]-O),R=1/(_[3]-C),M=new Array(v.length),T=0,P=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(c(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TO||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ye=_e||Qe===Ve)){var $e=P[De];Ve===void 0&&(Ve=$e.length);for(var Oe=Qe;Oe=ee&&Re<=pe&&We>=me&&We<=se&&we.push(ke)}var Ue=A[De],Ze=Ue[4*Qe+0],Ye=Ue[4*Qe+1],Je=Ue[4*Qe+2],Me=Ue[4*Qe+3],Fe=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,Qe+1),je=.5*ze,tt=De+1;Te(Pe,Ie,je,tt,Ze,Ye||Je||Me||Fe),Te(Pe,Ie+je,je,tt,Ye,Je||Me||Fe),Te(Pe+je,Ie,je,tt,Je,Me||Fe),Te(Pe+je,Ie+je,je,tt,Me,Fe)}}(0,0,1,0,0,1),we},x;function U(X,te,Z){for(var K=1,re=.5,q=.5,Y=.5,ee=0;ee0){m+=Math.abs(S(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(46284);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(S[0]=w[0]),S[1]>w[1]&&(S[1]=w[1]),S[2]=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(76796);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},s.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},s.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},s.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},s.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},s.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},s.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},s.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(49840);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=s[w]),s[w]1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y2?"one of ".concat(h," ").concat(c.slice(0,p-1).join(", "),", or ")+c[p-1]:p===2?"one of ".concat(h," ").concat(c[0]," or ").concat(c[1]):"of ".concat(h," ").concat(c[0])}return"of ".concat(h," ").concat(String(c))}m("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),m("ERR_INVALID_ARG_TYPE",function(c,h,p){var v,_,O,C,x;if(S===void 0&&(S=n(45408)),S(typeof c=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,P){return(P===void 0||P>M.length)&&(P=M.length),M.substring(P-9,P)===T}(c," argument"))O="The ".concat(c," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(C=c).length||C.indexOf(".",x)===-1?"argument":"property");O='The "'.concat(c,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return O+". Received type ".concat(u(p))},TypeError),m("ERR_INVALID_ARG_VALUE",function(c,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(p,". Received ").concat(v)},TypeError),m("ERR_INVALID_RETURN_VALUE",function(c,h,p){var v;return v=p&&p.constructor&&p.constructor.name?"instance of ".concat(p.constructor.name):"type ".concat(u(p)),"Expected ".concat(c,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),m("ERR_MISSING_ARGS",function(){for(var c=arguments.length,h=new Array(c),p=0;p0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(O){return'"'.concat(O,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,s,n){function u(de,ye){return function(ve){if(Array.isArray(ve))return ve}(de)||function(ve,_e){var we=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ve[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(we.push(ze.value),!_e||we.length!==_e);Te=!0);}catch(Qe){Pe=!0,Ie=Qe}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return we}(de,ye)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},b(de)}var i=/a/g.flags!==void 0,S=function(de){var ye=[];return de.forEach(function(ve){return ye.push(ve)}),ye},w=function(de){var ye=[];return de.forEach(function(ve,_e){return ye.push([_e,ve])}),ye},y=Object.is?Object.is:n(39896),m=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function c(de){return de.call.bind(de)}var h=c(Object.prototype.hasOwnProperty),p=c(Object.prototype.propertyIsEnumerable),v=c(Object.prototype.toString),_=n(35840).types,O=_.isAnyArrayBuffer,C=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,P=_.isNativeError,A=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ye=0;ye57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(m(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ye){if(de===ye)return 0;for(var ve=de.length,_e=ye.length,we=0,Te=Math.min(ve,_e);we"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[u.charCodeAt(i)]=i;var S=function(y){var m,a=new Uint8Array(y),c=a.length,h="";for(m=0;m>2],h+=u[(3&a[m])<<4|a[m+1]>>4],h+=u[(15&a[m+1])<<2|a[m+2]>>6],h+=u[63&a[m+2]];return c%3==2?h=h.substring(0,h.length-1)+"=":c%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var m,a,c,h,p,v=.75*y.length,_=y.length,O=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var C=new ArrayBuffer(v),x=new Uint8Array(C);for(m=0;m<_;m+=4)a=b[y.charCodeAt(m)],c=b[y.charCodeAt(m+1)],h=b[y.charCodeAt(m+2)],p=b[y.charCodeAt(m+3)],x[O++]=a<<2|c>>4,x[O++]=(15&c)<<4|h>>2,x[O++]=(3&h)<<6|63&p;return C}},59968:function(d,s){s.byteLength=function(m){var a=w(m),c=a[0],h=a[1];return 3*(c+h)/4-h},s.toByteArray=function(m){var a,c,h=w(m),p=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,p,v)),O=0,C=v>0?p-4:p;for(c=0;c>16&255,_[O++]=a>>8&255,_[O++]=255&a;return v===2&&(a=u[m.charCodeAt(c)]<<2|u[m.charCodeAt(c+1)]>>4,_[O++]=255&a),v===1&&(a=u[m.charCodeAt(c)]<<10|u[m.charCodeAt(c+1)]<<4|u[m.charCodeAt(c+2)]>>2,_[O++]=a>>8&255,_[O++]=255&a),_},s.fromByteArray=function(m){for(var a,c=m.length,h=c%3,p=[],v=16383,_=0,O=c-h;_O?O:_+v));return h===1?(a=m[c-1],p.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(m[c-2]<<8)+m[c-1],p.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),p.join("")};for(var n=[],u=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)n[S]=i[S],u[i.charCodeAt(S)]=S;function w(m){var a=m.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=m.indexOf("=");return c===-1&&(c=a),[c,c===a?0:4-c%4]}function y(m,a,c){for(var h,p,v=[],_=a;_>18&63]+n[p>>12&63]+n[p>>6&63]+n[63&p]);return v.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},64928:function(d){function s(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>=0?(h=p,c=p-1):a=p+1}return h}function n(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>0?(h=p,c=p-1):a=p+1}return h}function u(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<0?(h=p,a=p+1):c=p-1}return h}function b(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<=0?(h=p,a=p+1):c=p-1}return h}function i(w,y,m,a,c){for(;a<=c;){var h=a+c>>>1,p=w[h],v=m!==void 0?m(p,y):p-y;if(v===0)return h;v<=0?a=h+1:c=h-1}return-1}function S(w,y,m,a,c,h){return typeof m=="function"?h(w,y,m,a===void 0?0:0|a,c===void 0?w.length-1:0|c):h(w,y,void 0,m===void 0?0:0|m,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,m,a,c){return S(w,y,m,a,c,s)},gt:function(w,y,m,a,c){return S(w,y,m,a,c,n)},lt:function(w,y,m,a,c){return S(w,y,m,a,c,u)},le:function(w,y,m,a,c){return S(w,y,m,a,c,b)},eq:function(w,y,m,a,c){return S(w,y,m,a,c,i)}}},308:function(d,s){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}s.INT_BITS=32,s.INT_MAX=2147483647,s.INT_MIN=-2147483648,s.sign=function(b){return(b>0)-(b<0)},s.abs=function(b){var i=b>>31;return(b^i)-i},s.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=S=((b>>>=i)>255)<<3,i|=S=((b>>>=S)>15)<<2,(i|=S=((b>>>=S)>3)<<1)|(b>>>=S)>>1},s.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},s.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},s.countTrailingZeros=n,s.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},s.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},s.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var u=new Array(256);(function(b){for(var i=0;i<256;++i){var S=i,w=i,y=7;for(S>>>=1;S;S>>>=1)w<<=1,w|=1&S,--y;b[i]=w<>>8&255]<<16|u[b>>>16&255]<<8|u[b>>>24&255]},s.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},s.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},s.interleave3=function(b,i,S){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(S=1227133513&((S=3272356035&((S=251719695&((S=4278190335&((S&=1023)|S<<16))|S<<8))|S<<4))|S<<2))<<2},s.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},s.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,s,n){var u=n(32420);d.exports=function(w,y){y||(y={});var m,a,c,h,p,v,_,O,C,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,P=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");m=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/m/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(O=w).getContext("2d"),m=O.width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,m=(O=w.canvas).width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(C=w,m=w.width,a=w.height,h=C.data,v=4);if(c=Math.max(m,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(p=h,h=Array(m*a),x=0,R=p.length;x-1?b(y):y}},57916:function(d,s,n){var u=n(8844),b=n(53664),i=n(14500),S=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),m=b("%Reflect.apply%",!0)||u.call(y,w),a=b("%Object.defineProperty%",!0),c=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(p){if(typeof p!="function")throw new S("a function is required");var v=m(u,y,arguments);return i(v,1+c(0,p.length-(arguments.length-1)),!0)};var h=function(){return m(u,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(s,n,u){return nu?u:s:sn?n:s}},3808:function(d,s,n){var u=n(32420);function b(i,S){S==null&&(S=!0);var w=i[0],y=i[1],m=i[2],a=i[3];return a==null&&(a=S?1:255),S&&(w*=255,y*=255,m*=255,a*=255),16777216*(w=255&u(w,0,255))+((y=255&u(y,0,255))<<16)+((m=255&u(m,0,255))<<8)+(255&u(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,S){var w=(i=+i)>>>24,y=(16711680&i)>>>16,m=(65280&i)>>>8,a=255&i;return S===!1?[w,y,m,a]:[w/255,y/255,m/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,s,n){var u=n(96824),b=n(32420),i=n(72512);d.exports=function(S,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),m=w!=="uint8"&&w!=="uint8_clamped";return S.length&&typeof S!="string"||((S=u(S))[0]/=255,S[1]/=255,S[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(S)?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:255,m&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(m?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:1):(y[0]=b(Math.floor(255*S[0]),0,255),y[1]=b(Math.floor(255*S[1]),0,255),y[2]=b(Math.floor(255*S[2]),0,255),y[3]=S[3]==null?255:b(Math.floor(255*S[3]),0,255)),y)}},81704:function(d,s,n){var u=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,m,a=[],c=1;if(typeof w=="string")if(u[w])a=u[w].slice(),m="rgb";else if(w==="transparent")c=0,m="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);c=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(c=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(c=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),m="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var p=y[1],v=p==="rgb";m=h=p.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(C,x){if(/%$/.test(C))return x===_?parseFloat(C)/100:h==="rgb"?255*parseFloat(C)/100:parseFloat(C);if(h[x]==="h"){if(/deg$/.test(C))return parseFloat(C);if(S[C]!==void 0)return S[C]}return parseFloat(C)}),p===h&&a.push(1),c=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(C){return parseFloat(C)}),m=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var O=i(w.r,w.red,w.R,null);O!==null?(m="rgb",a=[O,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(m="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),c=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(c/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],m="rgb",c=w.length===4?w[3]:1);else m="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:m,values:a,alpha:c}};var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,s,n){var u=n(81704),b=n(53576),i=n(32420);d.exports=function(S){var w,y=u(S);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,s,n){var u=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,S,w,y,m,a=b[0]/360,c=b[1]/100,h=b[2]/100;if(c===0)return[m=255*h,m,m];i=2*h-(S=h<.5?h*(1+c):h+c-h*c),y=[0,0,0];for(var p=0;p<3;p++)(w=a+.3333333333333333*-(p-1))<0?w++:w>1&&w--,m=6*w<1?i+6*(S-i)*w:2*w<1?S:3*w<2?i+(S-i)*(.6666666666666666-w)*6:i,y[p]=255*m;return y}},u.hsl=function(b){var i,S,w=b[0]/255,y=b[1]/255,m=b[2]/255,a=Math.min(w,y,m),c=Math.max(w,y,m),h=c-a;return c===a?i=0:w===c?i=(y-m)/h:y===c?i=2+(m-w)/h:m===c&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),S=(a+c)/2,[i,100*(c===a?0:S<=.5?h/(c+a):h/(2-c-a)),100*S]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,s,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,s,n){var u=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||u.indexOf(b)!==-1}}},46416:function(d,s,n){var u=n(92384),b=n(68194),i=n(3748),S=n(2904),w=n(47916),y=n(7294),m=n(39956),a=n(8744).isSize;d.exports=h;var c=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(c[v])return c[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return c[v]={system:v};for(var _,O={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},C=m(v,/\s+/);_=C.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){O[R]=_}),c[v]=O;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(S.indexOf(_)===-1){if(a(_)){var x=m(_,"/");if(O.size=x[0],x[1]!=null?O.lineHeight=p(x[1]):C[0]==="/"&&(C.shift(),O.lineHeight=p(C.shift())),!C.length)throw new Error("Missing required font-family.");return O.family=m(C.join(" "),/\s*,\s*/).map(u),c[v]=O}throw new Error("Unknown or unsupported font token: "+_)}O.weight=_}else O.stretch=_;else O.variant=_;else O.style=_}throw new Error("Missing required font-size.")}function p(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,s,n){var u=n(55616),b=n(8744).isSize,i=v(n(68194)),S=v(n(3748)),w=v(n(2904)),y=v(n(47916)),m=v(n(7294)),a={normal:1,"small-caps":1},c={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function p(_,O){if(_&&!O[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var O={},C=0;C<_.length;C++)O[_[C]]=1;return O}d.exports=function(_){if((_=u(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&p(_.system,S),_.system;if(p(_.style,y),p(_.variant,a),p(_.weight,w),p(_.stretch,m),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(C){return c[C]?C:'"'+C+'"'}).join(", "));var O=[];return O.push(_.style),_.variant!==_.style&&O.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&O.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&O.push(_.stretch),O.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),O.push(_.family),O.filter(Boolean).join(" ")}},27940:function(d,s,n){var u,b=n(81680),i=n(18496),S=n(87396),w=n(95920),y=n(50868),m=n(84323),a=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;u=function(p,v,_){var O,C=i(v)&&S(v.value);return delete(O=w(v)).writable,delete O.value,O.get=function(){return!_.overwriteDefinition&&h.call(this,p)?C:(v.value=a.call(C,_.resolveContext?_.resolveContext(this):this),c(this,p,v),this[p])},O},d.exports=function(p){var v=y(arguments[1]);return b(v.resolveContext)&&S(v.resolveContext),m(p,function(_,O){return u(O,_,v)})}},21092:function(d,s,n){var u=n(81680),b=n(85488),i=n(38452),S=n(50868),w=n(71056),y=d.exports=function(m,a){var c,h,p,v,_;return arguments.length<2||typeof m!="string"?(v=a,a=m,m=null):v=arguments[2],u(m)?(c=w.call(m,"c"),h=w.call(m,"e"),p=w.call(m,"w")):(c=p=!0,h=!1),_={value:a,configurable:c,enumerable:h,writable:p},v?i(S(v),_):_};y.gs=function(m,a,c){var h,p,v,_;return typeof m!="string"?(v=c,c=a,a=m,m=null):v=arguments[3],u(a)?b(a)?u(c)?b(c)||(v=c,c=void 0):c=void 0:(v=a,a=c=void 0):a=void 0,u(m)?(h=w.call(m,"c"),p=w.call(m,"e")):(h=!0,p=!1),_={get:a,set:c,configurable:h,enumerable:p},v?i(S(v),_):_}},84706:function(d,s,n){function u(p,v){return pv?1:p>=v?0:NaN}n.d(s,{XE:function(){return u},kv:function(){return S},mo:function(){return y},Uf:function(){return m},SY:function(){return a},ik:function(){return c},oh:function(){return h}}),(b=u).length===1&&(i=b,b=function(p,v){return u(i(p),v)});var b,i;function S(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++xO&&(O=_)}else for(;++x=_)for(O=_;++xO&&(O=_);return O}function w(p){return p===null?NaN:+p}function y(p,v){var _,O=p.length,C=O,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(O=p[C]).length;--v>=0;)_[--R]=O[v];return _}function a(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++x_&&(O=_)}else for(;++x=_)for(O=_;++x_&&(O=_);return O}function c(p,v,_){p=+p,v=+v,_=(C=arguments.length)<2?(v=p,p=0,1):C<3?1:+_;for(var O=-1,C=0|Math.max(0,Math.ceil((v-p)/_)),x=new Array(C);++O=C.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=C[P++],j=S(),U=A();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,P,A,L))}),U}function M(T,P){if(++P>C.length)return T;var A,L=x[P-1];return _!=null&&P>=C.length?A=T.entries():(A=[],T.each(function(D,k){A.push({key:k,values:M(D,P)})})),L!=null?A.sort(function(D,k){return L(D.key,k.key)}):A}return O={object:function(T){return R(T,0,y,m)},map:function(T){return R(T,0,a,c)},entries:function(T){return M(R(T,0,a,c),0)},key:function(T){return C.push(T),O},sortKeys:function(T){return x[C.length-1]=T,O},sortValues:function(T){return v=T,O},rollup:function(T){return _=T,O}}}function y(){return{}}function m(v,_,O){v[_]=O}function a(){return S()}function c(v,_,O){v.set(_,O)}function h(){}var p=S.prototype;h.prototype={constructor:h,has:p.has,add:function(v){return this[u+(v+="")]=v,this},remove:p.remove,clear:p.clear,values:p.keys,size:p.size,empty:p.empty,each:p.each}},49812:function(d,s,n){function u(ze,De){var Qe;function Ve(){var $e,Oe,ke=Qe.length,Re=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke,$e=Me,!(Me=Me[Ye=Ze<<1|Ue]))return $e[Ye]=Fe,ze;if(Re=+ze._x.call(null,Me.data),We=+ze._y.call(null,Me.data),De===Re&&Qe===We)return Fe.next=Me,$e?$e[Ye]=Fe:ze._root=Fe,ze;do $e=$e?$e[Ye]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke;while((Ye=Ze<<1|Ue)==(Je=(We>=ke)<<1|Re>=Oe));return $e[Je]=Me,$e[Ye]=Fe,ze}function w(ze,De,Qe,Ve,$e){this.node=ze,this.x0=De,this.y0=Qe,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function m(ze){return ze[1]}function a(ze,De,Qe){var Ve=new c(De??y,Qe??m,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function c(ze,De,Qe,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=Qe,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},Qe=De;ze=ze.next;)Qe=Qe.next={data:ze.data};return De}n.r(s),n.d(s,{forceCenter:function(){return u},forceCollide:function(){return O},forceLink:function(){return M},forceManyBody:function(){return we},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var p=a.prototype=c.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function O(ze){var De,Qe,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Ye,Je,Me,Fe,je=De.length,tt=0;tt<$e;++tt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeYe+ln||StJe+ln||FtZe.index){var tn=Ye-zt.x-zt.vx,Et=Je-zt.y-zt.vy,Ot=tn*tn+Et*Et;OtWe.r&&(We.r=We[Ue].r)}function Re(){if(De){var We,Ue,Ze=De.length;for(Qe=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eYe&&(Ye=$e));if(We>Ze||Ue>Ye)return this;for(this.cover(We,Ue).cover(Ze,Ye),Qe=0;Qeze||ze>=$e||Ve>De||De>=Oe;)switch(Re=(DeJe||(Oe=We.y0)>Me||(ke=We.x1)=ot)<<1|ze>=tt)&&(We=Fe[Fe.length-1],Fe[Fe.length-1]=Fe[Fe.length-1-Ue],Fe[Fe.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Re=(Fe+tt)/2))?Fe=Re:tt=Re,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Me,!(Me=Me[Ye=Ze<<1|Ue]))return this;if(!Me.length)break;(De[Ye+1&3]||De[Ye+2&3]||De[Ye+3&3])&&(Qe=De,Je=Ye)}for(;Me.data!==ze;)if(Ve=Me,!(Me=Me.next))return this;return($e=Me.next)&&delete Me.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Ye]=$e:delete De[Ye],(Me=De[0]||De[1]||De[2]||De[3])&&Me===(De[3]||De[2]||De[1]||De[0])&&!Me.length&&(Qe?Qe[Je]=Me:this._root=Me),this):(this._root=$e,this)},p.removeAll=function(ze){for(var De=0,Qe=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Re=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var Qe,Ve,$e=new Array(Qe),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,Qe=k,Ve=1/0;Qe;)Qe._call?(Ve>Qe._time&&(Ve=Qe._time),ze=Qe,Qe=Qe._next):(De=Qe._next,Qe._next=null,Qe=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(Z-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(pe,ze-K.now()-Z)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,re(pe)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,Qe){if(typeof ze!="function")throw new TypeError("callback is not a function");Qe=(Qe==null?q():+Qe)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=Qe,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ye=10,ve=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,Qe=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Re=(0,C.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Ye(),Ue.call("tick",De),Qe1?(je==null?Re.remove(Fe):Re.set(Fe,Me(je)),De):Re.get(Fe)},find:function(Fe,je,tt){var ot,Ge,ht,pt,St,Ft=0,zt=ze.length;for(tt==null?tt=1/0:tt*=tt,Ft=0;Ft1?(Ue.on(Fe,je),De):Ue.on(Fe)}}}function we(){var ze,De,Qe,Ve,$e=b(-30),Oe=1,ke=1/0,Re=.81;function We(Je){var Me,Fe=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(Qe=Je,Me=0;Me=ke)){(Je.data!==De||Je.next)&&(tt===0&&(ht+=(tt=i())*tt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+O.slice(x+1)]}n.d(s,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(O){if(!(C=i.exec(O)))throw new Error("invalid format: "+O);var C;return new w({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}function w(O){this.fill=O.fill===void 0?" ":O.fill+"",this.align=O.align===void 0?">":O.align+"",this.sign=O.sign===void 0?"-":O.sign+"",this.symbol=O.symbol===void 0?"":O.symbol+"",this.zero=!!O.zero,this.width=O.width===void 0?void 0:+O.width,this.comma=!!O.comma,this.precision=O.precision===void 0?void 0:+O.precision,this.trim=!!O.trim,this.type=O.type===void 0?"":O.type+""}function y(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}S.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var m={"%":function(O,C){return(100*O).toFixed(C)},b:function(O){return Math.round(O).toString(2)},c:function(O){return O+""},d:function(O){return Math.abs(O=Math.round(O))>=1e21?O.toLocaleString("en").replace(/,/g,""):O.toString(10)},e:function(O,C){return O.toExponential(C)},f:function(O,C){return O.toFixed(C)},g:function(O,C){return O.toPrecision(C)},o:function(O){return Math.round(O).toString(8)},p:function(O,C){return y(100*O,C)},r:y,s:function(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,P=R.length;return T===P?R:T>P?R+new Array(T-P+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+u(O,Math.max(0,C+T-1))[0]},X:function(O){return Math.round(O).toString(16).toUpperCase()},x:function(O){return Math.round(O).toString(16)}};function a(O){return O}var c,h,p=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(O){var C,x,R=O.grouping===void 0||O.thousands===void 0?a:(C=p.call(O.grouping,Number),x=O.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=C[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=C[U=(U+1)%C.length];return j.reverse().join(x)}),M=O.currency===void 0?"":O.currency[0]+"",T=O.currency===void 0?"":O.currency[1]+"",P=O.decimal===void 0?".":O.decimal+"",A=O.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(p.call(O.numerals,String)),L=O.percent===void 0?"%":O.percent+"",D=O.minus===void 0?"-":O.minus+"",k=O.nan===void 0?"NaN":O.nan+"";function I(z){var $=(z=S(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,Z=z.comma,K=z.precision,re=z.trim,q=z.type;q==="n"?(Z=!0,q="g"):m[q]||(K===void 0&&(K=12),re=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=m[q],pe=/[defgprs%]/.test(q);function se(ae){var ce,de,ye,ve=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var we=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),re&&(ae=function(Ie){e:for(var ze,De=Ie.length,Qe=1,Ve=-1;Qe0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),we&&+ae==0&&j!=="+"&&(we=!1),ve=(we?j==="("?j:D:j==="-"||j==="("?"":j)+ve,_e=(q==="s"?v[8+b/3]:"")+_e+(we&&j==="("?")":""),pe){for(ce=-1,de=ae.length;++ce(ye=ae.charCodeAt(ce))||ye>57){_e=(ye===46?P+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}Z&&!X&&(ae=R(ae,1/0));var Te=ve.length+ae.length+_e.length,Pe=Te>1)+ve+ae+_e+Pe.slice(Te);break;default:ae=Pe+ve+ae+_e}return A(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=S(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=u(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(Z){return j(X*Z)+te}}}}c=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=c.format,c.formatPrefix},87108:function(d,s,n){n.r(s),n.d(s,{geoAiry:function(){return Z},geoAiryRaw:function(){return te},geoAitoff:function(){return re},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ve},geoBerghausRaw:function(){return ye},geoBertin1953:function(){return Qe},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Fe},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return tt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return Ot},geoChamberlinAfrica:function(){return Et},geoChamberlinRaw:function(){return ln},geoCollignon:function(){return Cn},geoCollignonRaw:function(){return cn},geoCraig:function(){return Sn},geoCraigRaw:function(){return Pn},geoCraster:function(){return st},geoCrasterRaw:function(){return xt},geoCylindricalEqualArea:function(){return Vt},geoCylindricalEqualAreaRaw:function(){return bt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Dt},geoEckert1:function(){return Bt},geoEckert1Raw:function(){return at},geoEckert2:function(){return qt},geoEckert2Raw:function(){return _t},geoEckert3:function(){return Jt},geoEckert3Raw:function(){return en},geoEckert4:function(){return Nt},geoEckert4Raw:function(){return Zt},geoEckert5:function(){return rn},geoEckert5Raw:function(){return sn},geoEckert6:function(){return wn},geoEckert6Raw:function(){return _n},geoEisenlohr:function(){return fr},geoEisenlohrRaw:function(){return Kn},geoFahey:function(){return tr},geoFaheyRaw:function(){return Zn},geoFoucaut:function(){return $r},geoFoucautRaw:function(){return Br},geoFoucautSinusoidal:function(){return qn},geoFoucautSinusoidalRaw:function(){return vr},geoGilbert:function(){return Vr},geoGingery:function(){return to},geoGingeryRaw:function(){return eo},geoGinzburg4:function(){return _o},geoGinzburg4Raw:function(){return Fo},geoGinzburg5:function(){return Mo},geoGinzburg5Raw:function(){return $o},geoGinzburg6:function(){return Hn},geoGinzburg6Raw:function(){return pi},geoGinzburg8:function(){return Dr},geoGinzburg8Raw:function(){return ar},geoGinzburg9:function(){return Zr},geoGinzburg9Raw:function(){return Sr},geoGringorten:function(){return io},geoGringortenQuincuncial:function(){return zc},geoGringortenRaw:function(){return oo},geoGuyou:function(){return On},geoGuyouRaw:function(){return Rr},geoHammer:function(){return Pe},geoHammerRaw:function(){return we},geoHammerRetroazimuthal:function(){return Er},geoHammerRetroazimuthalRaw:function(){return ir},geoHealpix:function(){return qr},geoHealpixRaw:function(){return zn},geoHill:function(){return wo},geoHillRaw:function(){return Cr},geoHomolosine:function(){return Fn},geoHomolosineRaw:function(){return Mn},geoHufnagel:function(){return xr},geoHufnagelRaw:function(){return dr},geoHyperelliptical:function(){return To},geoHyperellipticalRaw:function(){return Di},geoInterrupt:function(){return fs},geoInterruptedBoggs:function(){return yl},geoInterruptedHomolosine:function(){return yf},geoInterruptedMollweide:function(){return nf},geoInterruptedMollweideHemispheres:function(){return gp},geoInterruptedQuarticAuthalic:function(){return _r},geoInterruptedSinuMollweide:function(){return bh},geoInterruptedSinusoidal:function(){return Tc},geoKavrayskiy7:function(){return au},geoKavrayskiy7Raw:function(){return iu},geoLagrange:function(){return _s},geoLagrangeRaw:function(){return zf},geoLarrivee:function(){return Uc},geoLarriveeRaw:function(){return mu},geoLaskowski:function(){return Al},geoLaskowskiRaw:function(){return Kf},geoLittrow:function(){return Ml},geoLittrowRaw:function(){return Wl},geoLoximuthal:function(){return Nf},geoLoximuthalRaw:function(){return Jf},geoMiller:function(){return Gh},geoMillerRaw:function(){return Jl},geoModifiedStereographic:function(){return vu},geoModifiedStereographicAlaska:function(){return Lp},geoModifiedStereographicGs48:function(){return rh},geoModifiedStereographicGs50:function(){return rf},geoModifiedStereographicLee:function(){return bf},geoModifiedStereographicMiller:function(){return of},geoModifiedStereographicRaw:function(){return ll},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Kh},geoMtFlatPolarParabolicRaw:function(){return Zu},geoMtFlatPolarQuartic:function(){return ed},geoMtFlatPolarQuarticRaw:function(){return Cu},geoMtFlatPolarSinusoidal:function(){return vd},geoMtFlatPolarSinusoidalRaw:function(){return Bu},geoNaturalEarth:function(){return cs.c},geoNaturalEarth2:function(){return Jh},geoNaturalEarth2Raw:function(){return oh},geoNaturalEarthRaw:function(){return cs.g},geoNellHammer:function(){return xf},geoNellHammerRaw:function(){return xh},geoNicolosi:function(){return yd},geoNicolosiRaw:function(){return Ff},geoPatterson:function(){return Nh},geoPattersonRaw:function(){return jc},geoPeirceQuincuncial:function(){return Ud},geoPierceQuincuncial:function(){return Ud},geoPolyconic:function(){return td},geoPolyconicRaw:function(){return af},geoPolyhedral:function(){return gs},geoPolyhedralButterfly:function(){return _d},geoPolyhedralCollignon:function(){return vp},geoPolyhedralWaterman:function(){return ah},geoProject:function(){return cl},geoQuantize:function(){return cf},geoQuincuncial:function(){return ds},geoRectangularPolyconic:function(){return aa},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return Ri},geoRobinsonRaw:function(){return Mu},geoSatellite:function(){return qu},geoSatelliteRaw:function(){return Gc},geoSinuMollweide:function(){return Qt},geoSinuMollweideRaw:function(){return zo},geoSinusoidal:function(){return Me},geoSinusoidalRaw:function(){return Je},geoStitch:function(){return Ec},geoTimes:function(){return wt},geoTimesRaw:function(){return _u},geoTwoPointAzimuthal:function(){return wr},geoTwoPointAzimuthalRaw:function(){return En},geoTwoPointAzimuthalUsa:function(){return pr},geoTwoPointEquidistant:function(){return ya},geoTwoPointEquidistantRaw:function(){return uo},geoTwoPointEquidistantUsa:function(){return Bi},geoVanDerGrinten:function(){return Qi},geoVanDerGrinten2:function(){return nl},geoVanDerGrinten2Raw:function(){return Ws},geoVanDerGrinten3:function(){return Wu},geoVanDerGrinten3Raw:function(){return Fs},geoVanDerGrinten4:function(){return Aa},geoVanDerGrinten4Raw:function(){return Ki},geoVanDerGrintenRaw:function(){return Ni},geoWagner:function(){return Vf},geoWagner4:function(){return Pc},geoWagner4Raw:function(){return pl},geoWagner6:function(){return Os},geoWagner6Raw:function(){return Uf},geoWagner7:function(){return sh},geoWagnerRaw:function(){return Pl},geoWiechel:function(){return lc},geoWiechelRaw:function(){return Si},geoWinkel3:function(){return tp},geoWinkel3Raw:function(){return rd}});var u=n(87952),b=Math.abs,i=Math.atan,S=Math.atan2,w=Math.cos,y=Math.exp,m=Math.floor,a=Math.log,c=Math.max,h=Math.min,p=Math.pow,v=Math.round,_=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},O=Math.sin,C=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,P=M/4,A=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(kt){return kt>1?T:kt<-1?-T:Math.asin(kt)}function Q(kt){return kt>1?0:kt<-1?M:Math.acos(kt)}function j(kt){return kt>0?Math.sqrt(kt):0}function U(kt){return(y(kt)-y(-kt))/2}function X(kt){return(y(kt)+y(-kt))/2}function te(kt){var It=C(kt/2),Ut=2*a(w(kt/2))/(It*It);function J(le,ne){var V=w(le),ie=w(ne),ge=O(ne),xe=ie*V,Ee=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ut/(1+xe));return[Ee*ie*O(le),Ee*ge]}return J.invert=function(le,ne){var V,ie=j(le*le+ne*ne),ge=-kt/2,xe=50;if(!ie)return[0,0];do{var Ee=ge/2,Ne=w(Ee),et=O(Ee),rt=et/Ne,dt=-a(b(Ne));ge-=V=(2/rt*dt-Ut*rt-ie)/(-dt/(et*et)+1-Ut/(2*Ne*Ne))*(Ne<0?.7:1)}while(b(V)>x&&--xe>0);var gt=O(ge);return[S(le*gt,ie*w(ge)),$(ne*gt/ie)]},J}function Z(){var kt=T,It=(0,u.U)(te),Ut=It(kt);return Ut.radius=function(J){return arguments.length?It(kt=J*z):kt*I},Ut.scale(179.976).clipAngle(147)}function K(kt,It){var Ut=w(It),J=function(le){return le?le/Math.sin(le):1}(Q(Ut*w(kt/=2)));return[2*Ut*O(kt)*J,O(It)*J]}function re(){return(0,u.c)(K).scale(152.63)}function q(kt){var It=O(kt),Ut=w(kt),J=kt>=0?1:-1,le=C(J*kt),ne=(1+It-Ut)/2;function V(ie,ge){var xe=w(ge),Ee=w(ie/=2);return[(1+xe)*O(ie),(J*ge>-S(Ee,le)-.001?0:10*-J)+ne+O(ge)*Ut-(1+xe)*It*Ee]}return V.invert=function(ie,ge){var xe=0,Ee=0,Ne=50;do{var et=w(xe),rt=O(xe),dt=w(Ee),gt=O(Ee),Rt=1+dt,Mt=Rt*rt-ie,Xt=ne+gt*Ut-Rt*It*et-ge,dn=Rt*et/2,bn=-rt*gt,vn=It*Rt*rt/2,Ln=Ut*dt+It*et*gt,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn/2,pn=(Mt*vn-Xt*dn)/gn;b(pn)>2&&(pn/=2),xe-=Jn,Ee-=pn}while((b(Jn)>x||b(pn)>x)&&--Ne>0);return J*Ee>-S(w(xe),le)-.001?[2*xe,Ee]:null},V}function Y(){var kt=20*z,It=kt>=0?1:-1,Ut=C(It*kt),J=(0,u.U)(q),le=J(kt),ne=le.stream;return le.parallel=function(V){return arguments.length?(Ut=C((It=(kt=V*z)>=0?1:-1)*kt),J(kt)):kt*I},le.stream=function(V){var ie=le.rotate(),ge=ne(V),xe=(le.rotate([0,0]),ne(V)),Ee=le.precision();return le.rotate(ie),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Ne=-180*It;It*Ne<180;Ne+=90*It)xe.point(Ne,90*It);if(kt)for(;It*(Ne-=3*It*Ee)>=-180;)xe.point(Ne,It*-S(w(Ne*z/2),Ut)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(kt,It){var Ut=C(It/2),J=j(1-Ut*Ut),le=1+J*w(kt/=2),ne=O(kt)*J/le,V=Ut/le,ie=ne*ne,ge=V*V;return[1.3333333333333333*ne*(3+ie-3*ge),1.3333333333333333*V*(3+3*ie-ge)]}function me(){return(0,u.c)(ee).scale(66.1603)}K.invert=function(kt,It){if(!(kt*kt+4*It*It>M*M+x)){var Ut=kt,J=It,le=25;do{var ne,V=O(Ut),ie=O(Ut/2),ge=w(Ut/2),xe=O(J),Ee=w(J),Ne=O(2*J),et=xe*xe,rt=Ee*Ee,dt=ie*ie,gt=1-rt*ge*ge,Rt=gt?Q(Ee*ge)*j(ne=1/gt):ne=0,Mt=2*Rt*Ee*ie-kt,Xt=Rt*xe-It,dn=ne*(rt*dt+Rt*Ee*ge*et),bn=ne*(.5*V*Ne-2*Rt*xe*ie),vn=.25*ne*(Ne*ie-Rt*xe*rt*V),Ln=ne*(et*ge+Rt*dt*Ee),gn=bn*vn-Ln*dn;if(!gn)break;var Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},ee.invert=function(kt,It){if(It*=.375,!(kt*=.375)&&b(It)>1)return null;var Ut=1+kt*kt+It*It,J=j((Ut-j(Ut*Ut-4*It*It))/2),le=$(J)/3,ne=J?function(xe){return a(xe+j(xe*xe-1))}(b(It/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(kt))/3,V=w(le),ie=X(ne),ge=ie*ie-V*V;return[2*_(kt)*S(U(ne)*V,.25-ge),2*_(It)*S(ie*O(le),.25+ge)]};var pe=j(8),se=a(1+L);function ae(kt,It){var Ut=b(It);return UtR&&--ne>0);return[kt/(w(le)*(pe-1/O(le))),_(It)*le]};var de=n(69020);function ye(kt){var It=2*M/kt;function Ut(J,le){var ne=(0,de.O)(J,le);if(b(J)>T){var V=S(ne[1],ne[0]),ie=j(ne[0]*ne[0]+ne[1]*ne[1]),ge=It*v((V-T)/It)+T,xe=S(O(V-=ge),2-w(V));V=ge+$(M/ie*O(xe))-xe,ne[0]=ie*w(V),ne[1]=ie*O(V)}return ne}return Ut.invert=function(J,le){var ne=j(J*J+le*le);if(ne>T){var V=S(le,J),ie=It*v((V-T)/It)+T,ge=V>ie?-1:1,xe=ne*w(ie-V),Ee=1/C(ge*Q((xe-M)/j(M*(M-2*xe)+ne*ne)));V=ie+2*i((Ee+ge*j(Ee*Ee-3))/3),J=ne*w(V),le=ne*O(V)}return de.O.invert(J,le)},Ut}function ve(){var kt=5,It=(0,u.U)(ye),Ut=It(kt),J=Ut.stream,le=.01,ne=-w(le*z),V=O(le*z);return Ut.lobes=function(ie){return arguments.length?It(kt=+ie):kt},Ut.stream=function(ie){var ge=Ut.rotate(),xe=J(ie),Ee=(Ut.rotate([0,0]),J(ie));return Ut.rotate(ge),xe.sphere=function(){Ee.polygonStart(),Ee.lineStart();for(var Ne=0,et=360/kt,rt=2*M/kt,dt=90-180/kt,gt=T;Ne0&&b(J)>x);return V<0?NaN:Ut}function ze(kt,It,Ut){return It===void 0&&(It=40),Ut===void 0&&(Ut=R),function(J,le,ne,V){var ie,ge,xe;ne=ne===void 0?0:+ne,V=V===void 0?0:+V;for(var Ee=0;Eeie)ne-=ge/=2,V-=xe/=2;else{ie=dt;var gt=(ne>0?-1:1)*Ut,Rt=(V>0?-1:1)*Ut,Mt=kt(ne+gt,V),Xt=kt(ne,V+Rt),dn=(Mt[0]-Ne[0])/gt,bn=(Mt[1]-Ne[1])/gt,vn=(Xt[0]-Ne[0])/Rt,Ln=(Xt[1]-Ne[1])/Rt,gn=Ln*dn-bn*vn,Jn=(b(gn)<.5?.5:1)/gn;if(ne+=ge=(rt*vn-et*Ln)*Jn,V+=xe=(et*bn-rt*dn)*Jn,b(ge)0&&(ne[1]*=1+V/1.5*ne[0]*ne[0]),ne}return It.invert=ze(It),It}function Qe(){return(0,u.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(kt,It){var Ut,J=kt*O(It),le=30;do It-=Ut=(It+O(It)-J)/(1+w(It));while(b(Ut)>x&&--le>0);return It/2}function $e(kt,It,Ut){function J(le,ne){return[kt*le*w(ne=Ve(Ut,ne)),It*O(ne)]}return J.invert=function(le,ne){return ne=$(ne/It),[le/(kt*w(ne)),$((2*ne+O(2*ne))/Ut)]},J}Te.invert=function(kt,It){var Ut=2*$(It/2);return[kt*w(Ut/2)/w(Ut),Ut]};var Oe=$e(L/T,L,M);function ke(){return(0,u.c)(Oe).scale(169.529)}var Re=2.00276,We=1.11072;function Ue(kt,It){var Ut=Ve(M,It);return[Re*kt/(1/w(It)+We/w(Ut)),(It+L*O(Ut))/Re]}function Ze(){return(0,u.c)(Ue).scale(160.857)}function Ye(kt){var It=0,Ut=(0,u.U)(kt),J=Ut(It);return J.parallel=function(le){return arguments.length?Ut(It=le*z):It*I},J}function Je(kt,It){return[kt*w(It),It]}function Me(){return(0,u.c)(Je).scale(152.63)}function Fe(kt){if(!kt)return Je;var It=1/C(kt);function Ut(J,le){var ne=It+kt-le,V=ne&&J*w(le)/ne;return[ne*O(V),It-ne*w(V)]}return Ut.invert=function(J,le){var ne=j(J*J+(le=It-le)*le),V=It+kt-ne;return[ne/w(V)*S(J,le),V]},Ut}function je(){return Ye(Fe).scale(123.082).center([0,26.1441]).parallel(45)}function tt(kt){function It(Ut,J){var le=T-J,ne=le&&Ut*kt*O(le)/le;return[le*O(ne)/kt,T-le*w(ne)]}return It.invert=function(Ut,J){var le=Ut*kt,ne=T-J,V=j(le*le+ne*ne),ie=S(le,ne);return[(V?V/O(V):1)*ie/kt,T-V]},It}function ot(){var kt=.5,It=(0,u.U)(tt),Ut=It(kt);return Ut.fraction=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(158.837)}Ue.invert=function(kt,It){var Ut,J,le=Re*It,ne=It<0?-P:P,V=25;do J=le-L*O(ne),ne-=Ut=(O(2*ne)+2*ne-M*O(J))/(2*w(2*ne)+2+M*w(J)*L*w(ne));while(b(Ut)>x&&--V>0);return J=le-L*O(ne),[kt*(1/w(J)+We/w(ne))/Re,J]},Je.invert=function(kt,It){return[kt/w(It),It]};var Ge=$e(1,4/M,M);function ht(){return(0,u.c)(Ge).scale(152.63)}var pt=n(24052),St=n(92992);function Ft(kt,It,Ut,J,le,ne){var V,ie=w(ne);if(b(kt)>1||b(ne)>1)V=Q(Ut*le+It*J*ie);else{var ge=O(kt/2),xe=O(ne/2);V=2*$(j(ge*ge+It*J*xe*xe))}return b(V)>x?[V,S(J*O(ne),It*le-Ut*J*ie)]:[0,0]}function zt(kt,It,Ut){return Q((kt*kt+It*It-Ut*Ut)/(2*kt*It))}function Yt(kt){return kt-2*M*m((kt+M)/(2*M))}function ln(kt,It,Ut){for(var J,le=[[kt[0],kt[1],O(kt[1]),w(kt[1])],[It[0],It[1],O(It[1]),w(It[1])],[Ut[0],Ut[1],O(Ut[1]),w(Ut[1])]],ne=le[2],V=0;V<3;++V,ne=J)J=le[V],ne.v=Ft(J[1]-ne[1],ne[3],ne[2],J[3],J[2],J[0]-ne[0]),ne.point=[0,0];var ie=zt(le[0].v[0],le[2].v[0],le[1].v[0]),ge=zt(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ie;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Ee=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ie),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*O(ie))];return function(Ne,et){var rt,dt=O(et),gt=w(et),Rt=new Array(3);for(rt=0;rt<3;++rt){var Mt=le[rt];if(Rt[rt]=Ft(et-Mt[1],Mt[3],Mt[2],gt,dt,Ne-Mt[0]),!Rt[rt][0])return Mt.point;Rt[rt][1]=Yt(Rt[rt][1]-Mt.v[1])}var Xt=Ee.slice();for(rt=0;rt<3;++rt){var dn=rt==2?0:rt+1,bn=zt(le[rt].v[0],Rt[rt][0],Rt[dn][0]);Rt[rt][1]<0&&(bn=-bn),rt?rt==1?(bn=ge-bn,Xt[0]-=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn)):(bn=xe-bn,Xt[0]+=Rt[rt][0]*w(bn),Xt[1]+=Rt[rt][0]*O(bn)):(Xt[0]+=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn))}return Xt[0]/=3,Xt[1]/=3,Xt}}function tn(kt){return kt[0]*=z,kt[1]*=z,kt}function Et(){return Ot([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ot(kt,It,Ut){var J=(0,pt.c)({type:"MultiPoint",coordinates:[kt,It,Ut]}),le=[-J[0],-J[1]],ne=(0,St.c)(le),V=ln(tn(ne(kt)),tn(ne(It)),tn(ne(Ut)));V.invert=ze(V);var ie=(0,u.c)(V).rotate(le),ge=ie.center;return delete ie.rotate,ie.center=function(xe){return arguments.length?ge(ne(xe)):ne.invert(ge())},ie.clipAngle(90)}function cn(kt,It){var Ut=j(1-O(It));return[2/D*kt*Ut,D*(1-Ut)]}function Cn(){return(0,u.c)(cn).scale(95.6464).center([0,30])}function Pn(kt){var It=C(kt);function Ut(J,le){return[J,(J?J/O(J):1)*(O(le)*w(J)-It*w(le))]}return Ut.invert=It?function(J,le){J&&(le*=O(J)/J);var ne=w(J);return[J,2*S(j(ne*ne+It*It-le*le)-ne,It-le)]}:function(J,le){return[J,$(J?le*C(J)/J:le)]},Ut}function Sn(){return Ye(Pn).scale(249.828).clipAngle(90)}cn.invert=function(kt,It){var Ut=(Ut=It/D-1)*Ut;return[Ut>0?kt*j(M/Ut)/2:0,$(1-Ut)]};var vt=j(3);function xt(kt,It){return[vt*kt*(2*w(2*It/3)-1)/D,vt*D*O(It/3)]}function st(){return(0,u.c)(xt).scale(156.19)}function bt(kt){var It=w(kt);function Ut(J,le){return[J*It,O(le)/It]}return Ut.invert=function(J,le){return[J/It,$(le*It)]},Ut}function Vt(){return Ye(bt).parallel(38.58).scale(195.044)}function Dt(kt){var It=w(kt);function Ut(J,le){return[J*It,(1+It)*C(le/2)]}return Ut.invert=function(J,le){return[J/It,2*i(le/(1+It))]},Ut}function it(){return Ye(Dt).scale(124.75)}function at(kt,It){var Ut=j(8/(3*M));return[Ut*kt*(1-b(It)/M),Ut*It]}function Bt(){return(0,u.c)(at).scale(165.664)}function _t(kt,It){var Ut=j(4-3*O(b(It)));return[2/j(6*M)*kt*Ut,_(It)*j(2*M/3)*(2-Ut)]}function qt(){return(0,u.c)(_t).scale(165.664)}function en(kt,It){var Ut=j(M*(4+M));return[2/Ut*kt*(1+j(1-4*It*It/(M*M))),4/Ut*It]}function Jt(){return(0,u.c)(en).scale(180.739)}function Zt(kt,It){var Ut=(2+T)*O(It);It/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ne=w(It);It-=le=(It+O(It)*(ne+2)-Ut)/(2*ne*(1+ne))}return[2/j(M*(4+M))*kt*(1+w(It)),2*j(M/(4+M))*O(It)]}function Nt(){return(0,u.c)(Zt).scale(180.739)}function sn(kt,It){return[kt*(1+w(It))/j(2+M),2*It/j(2+M)]}function rn(){return(0,u.c)(sn).scale(173.044)}function _n(kt,It){for(var Ut=(1+T)*O(It),J=0,le=1/0;J<10&&b(le)>x;J++)It-=le=(It+O(It)-Ut)/(1+w(It));return Ut=j(2+M),[kt*(1+w(It))/Ut,2*It/Ut]}function wn(){return(0,u.c)(_n).scale(173.044)}xt.invert=function(kt,It){var Ut=3*$(It/(vt*D));return[D*kt/(vt*(2*w(2*Ut/3)-1)),Ut]},at.invert=function(kt,It){var Ut=j(8/(3*M)),J=It/Ut;return[kt/(Ut*(1-b(J)/M)),J]},_t.invert=function(kt,It){var Ut=2-b(It)/j(2*M/3);return[kt*j(6*M)/(2*Ut),_(It)*$((4-Ut*Ut)/3)]},en.invert=function(kt,It){var Ut=j(M*(4+M))/2;return[kt*Ut/(1+j(1-It*It*(4+M)/(4*M))),It*Ut/2]},Zt.invert=function(kt,It){var Ut=It*j((4+M)/M)/2,J=$(Ut),le=w(J);return[kt/(2/j(M*(4+M))*(1+le)),$((J+Ut*(le+2))/(2+T))]},sn.invert=function(kt,It){var Ut=j(2+M),J=It*Ut/2;return[Ut*kt/(1+w(J)),J]},_n.invert=function(kt,It){var Ut=1+T,J=j(Ut/2);return[2*kt*J/(1+w(It*=J)),$((It+O(It))/Ut)]};var An=3+2*L;function Kn(kt,It){var Ut=O(kt/=2),J=w(kt),le=j(w(It)),ne=w(It/=2),V=O(It)/(ne+L*J*le),ie=j(2/(1+V*V)),ge=j((L*ne+(J+Ut)*le)/(L*ne+(J-Ut)*le));return[An*(ie*(ge-1/ge)-2*a(ge)),An*(ie*V*(ge+1/ge)-2*i(V))]}function fr(){return(0,u.c)(Kn).scale(62.5271)}Kn.invert=function(kt,It){if(!(Ut=ee.invert(kt/1.2,1.065*It)))return null;var Ut,J=Ut[0],le=Ut[1],ne=20;kt/=An,It/=An;do{var V=J/2,ie=le/2,ge=O(V),xe=w(V),Ee=O(ie),Ne=w(ie),et=w(le),rt=j(et),dt=Ee/(Ne+L*xe*rt),gt=dt*dt,Rt=j(2/(1+gt)),Mt=(L*Ne+(xe+ge)*rt)/(L*Ne+(xe-ge)*rt),Xt=j(Mt),dn=Xt-1/Xt,bn=Xt+1/Xt,vn=Rt*dn-2*a(Xt)-kt,Ln=Rt*dt*bn-2*i(dt)-It,gn=Ee&&A*rt*ge*gt/Ee,Jn=(L*xe*Ne+rt)/(2*(Ne+L*xe*rt)*(Ne+L*xe*rt)*rt),pn=-.5*dt*Rt*Rt*Rt,In=pn*gn,Ir=pn*Jn,Pr=(Pr=2*Ne+L*rt*(xe-ge))*Pr*Xt,Gr=(L*xe*Ne*rt+et)/Pr,ro=-L*ge*Ee/(rt*Pr),po=dn*In-2*Gr/Xt+Rt*(Gr+Gr/Mt),Wo=dn*Ir-2*ro/Xt+Rt*(ro+ro/Mt),si=dt*bn*In-2*gn/(1+gt)+Rt*bn*gn+Rt*dt*(Gr-Gr/Mt),Bo=dt*bn*Ir-2*Jn/(1+gt)+Rt*bn*Jn+Rt*dt*(ro-ro/Mt),Go=Wo*si-Bo*po;if(!Go)break;var Yo=(Ln*Wo-vn*Bo)/Go,Wi=(vn*si-Ln*po)/Go;J-=Yo,le=c(-T,h(T,le-Wi))}while((b(Yo)>x||b(Wi)>x)&&--ne>0);return b(b(le)-T)J){var Ne=j(Ee),et=S(xe,ge),rt=Ut*v(et/Ut),dt=et-rt,gt=kt*w(dt),Rt=(kt*O(dt)-dt*O(gt))/(T-gt),Mt=Jr(dt,Rt),Xt=(M-kt)/Yr(Mt,gt,M);ge=Ne;var dn,bn=50;do ge-=dn=(kt+Yr(Mt,gt,ge)*Xt-Ne)/(Mt(ge)*Xt);while(b(dn)>x&&--bn>0);xe=dt*O(ge),geJ){var ge=j(ie),xe=S(V,ne),Ee=Ut*v(xe/Ut),Ne=xe-Ee;ne=ge*w(Ne),V=ge*O(Ne);for(var et=ne-T,rt=O(ne),dt=V/rt,gt=nex||b(et)>x)&&--gt>0);return[rt,dt]},ge}var Fo=co(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function _o(){return(0,u.c)(Fo).scale(149.995)}var $o=co(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Mo(){return(0,u.c)($o).scale(153.93)}var pi=co(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Hn(){return(0,u.c)(pi).scale(130.945)}function ar(kt,It){var Ut=kt*kt,J=It*It;return[kt*(1-.162388*J)*(.87-952426e-9*Ut*Ut),It*(1+J/12)]}function Dr(){return(0,u.c)(ar).scale(131.747)}ar.invert=function(kt,It){var Ut,J=kt,le=It,ne=50;do{var V=le*le;le-=Ut=(le*(1+V/12)-It)/(1+V/4)}while(b(Ut)>x&&--ne>0);ne=50,kt/=1-.162388*V;do{var ie=(ie=J*J)*ie;J-=Ut=(J*(.87-952426e-9*ie)-kt)/(.87-.00476213*ie)}while(b(Ut)>x&&--ne>0);return[J,le]};var Sr=co(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Zr(){return(0,u.c)(Sr).scale(131.087)}function go(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=J>0?-.5:.5,V=kt(J+ne*M,le);return V[0]-=ne*It,V}return kt.invert&&(Ut.invert=function(J,le){var ne=J>0?-.5:.5,V=kt.invert(J+ne*It,le),ie=V[0]-ne*M;return ie<-M?ie+=2*M:ie>M&&(ie-=2*M),V[0]=ie,V}),Ut}function oo(kt,It){var Ut=_(kt),J=_(It),le=w(It),ne=w(kt)*le,V=O(kt)*le,ie=O(J*It);kt=b(S(V,ie)),It=$(ne),b(kt-T)>x&&(kt%=T);var ge=function(xe,Ee){if(Ee===T)return[0,0];var Ne,et,rt=O(Ee),dt=rt*rt,gt=dt*dt,Rt=1+gt,Mt=1+3*gt,Xt=1-gt,dn=$(1/j(Rt)),bn=Xt+dt*Rt*dn,vn=(1-rt)/bn,Ln=j(vn),gn=vn*Rt,Jn=j(gn),pn=Ln*Xt;if(xe===0)return[0,-(pn+dt*Jn)];var In,Ir=w(Ee),Pr=1/Ir,Gr=2*rt*Ir,ro=(-bn*Ir-(1-rt)*((-3*dt+dn*Mt)*Gr))/(bn*bn),po=-Pr*Gr,Wo=-Pr*(dt*Rt*ro+vn*Mt*Gr),si=-2*Pr*(Xt*(.5*ro/Ln)-2*dt*Ln*Gr),Bo=4*xe/M;if(xe>.222*M||Ee.175*M){if(Ne=(pn+dt*j(gn*(1+gt)-pn*pn))/(1+gt),xe>M/4)return[Ne,Ne];var Go=Ne,Yo=.5*Ne;Ne=.5*(Yo+Go),et=50;do{var Wi=Ne*(si+po*j(gn-Ne*Ne))+Wo*$(Ne/Jn)-Bo;if(!Wi)break;Wi<0?Yo=Ne:Go=Ne,Ne=.5*(Yo+Go)}while(b(Go-Yo)>x&&--et>0)}else{Ne=x,et=25;do{var Ho=Ne*Ne,jo=j(gn-Ho),Yi=si+po*jo,ai=Ne*Yi+Wo*$(Ne/Jn)-Bo;Ne-=In=jo?ai/(Yi+(Wo-po*Ho)/jo):0}while(b(In)>x&&--et>0)}return[Ne,-pn-dt*j(gn-Ne*Ne)]}(kt>M/4?T-kt:kt,It);return kt>M/4&&(ie=ge[0],ge[0]=-ge[1],ge[1]=-ie),ge[0]*=Ut,ge[1]*=-J,ge}function io(){return(0,u.c)(go(oo)).scale(239.75)}function Do(kt,It){var Ut,J,le,ne,V,ie;if(It=1-x)return Ut=(1-It)/4,le=1/(J=X(kt)),[(ne=((ie=y(2*(ie=kt)))-1)/(ie+1))+Ut*((V=J*U(kt))-kt)/(J*J),le-Ut*ne*le*(V-kt),le+Ut*ne*le*(V+kt),2*i(y(kt))-T+Ut*(V-kt)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(It),0,0,0,0,0,0,0,0],Ee=0;for(J=j(1-It),V=1;b(xe[Ee]/ge[Ee])>x&&Ee<8;)Ut=ge[Ee++],xe[Ee]=(Ut-J)/2,ge[Ee]=(Ut+J)/2,J=j(Ut*J),V*=2;le=V*ge[Ee]*kt;do le=($(ne=xe[Ee]*O(J=le)/ge[Ee])+le)/2;while(--Ee);return[O(le),ne=w(le),ne/w(le-J),le]}function jn(kt,It){if(!It)return kt;if(It===1)return a(C(kt/2+P));for(var Ut=1,J=j(1-It),le=j(It),ne=0;b(le)>x;ne++){if(kt%M){var V=i(J*C(kt)/Ut);V<0&&(V+=M),kt+=V+~~(kt/M)*M}else kt+=kt;le=(Ut+J)/2,J=j(Ut*J),le=((Ut=le)-J)/2}return kt/(p(2,ne)*Ut)}function Rr(kt,It){var Ut=(L-1)/(L+1),J=j(1-Ut*Ut),le=jn(T,J*J),ne=a(C(M/4+b(It)/2)),V=y(-1*ne)/j(Ut),ie=function(xe,Ee){var Ne=xe*xe,et=Ee+1,rt=1-Ne-Ee*Ee;return[.5*((xe>=0?T:-T)-S(rt,2*xe)),-.25*a(rt*rt+4*Ne)+.5*a(et*et+Ne)]}(V*w(-1*kt),V*O(-1*kt)),ge=function(xe,Ee,Ne){var et=b(xe),rt=U(b(Ee));if(et){var dt=1/O(et),gt=1/(C(et)*C(et)),Rt=-(gt+Ne*(rt*rt*dt*dt)-1+Ne),Mt=(-Rt+j(Rt*Rt-(Ne-1)*gt*4))/2;return[jn(i(1/j(Mt)),Ne)*_(xe),jn(i(j((Mt/gt-1)/Ne)),1-Ne)*_(Ee)]}return[0,jn(i(rt),1-Ne)*_(Ee)]}(ie[0],ie[1],J*J);return[-ge[1],(It>=0?1:-1)*(.5*le-ge[0])]}function On(){return(0,u.c)(go(Rr)).scale(151.496)}oo.invert=function(kt,It){b(kt)>1&&(kt=2*_(kt)-kt),b(It)>1&&(It=2*_(It)-It);var Ut=_(kt),J=_(It),le=-Ut*kt,ne=-J*It,V=ne/le<1,ie=function(Ne,et){for(var rt=0,dt=1,gt=.5,Rt=50;;){var Mt=gt*gt,Xt=j(gt),dn=$(1/j(1+Mt)),bn=1-Mt+gt*(1+Mt)*dn,vn=(1-Xt)/bn,Ln=j(vn),gn=vn*(1+Mt),Jn=Ln*(1-Mt),pn=j(gn-Ne*Ne),In=et+Jn+gt*pn;if(b(dt-rt)0?rt=gt:dt=gt,gt=.5*(rt+dt)}if(!Rt)return null;var Ir=$(Xt),Pr=w(Ir),Gr=1/Pr,ro=2*Xt*Pr,po=(-bn*Pr-(-3*gt+dn*(1+3*Mt))*ro*(1-Xt))/(bn*bn);return[M/4*(Ne*(-2*Gr*((1-Mt)*(.5*po/Ln)-2*gt*Ln*ro)+-Gr*ro*pn)+-Gr*(gt*(1+Mt)*po+vn*(1+3*Mt)*ro)*$(Ne/j(gn))),Ir]}(V?ne:le,V?le:ne),ge=ie[0],xe=ie[1],Ee=w(xe);return V&&(ge=-T-ge),[Ut*(S(O(ge)*Ee,-O(xe))+M),J*$(w(ge)*Ee)]},Rr.invert=function(kt,It){var Ut,J,le,ne,V,ie,ge=(L-1)/(L+1),xe=j(1-ge*ge),Ee=(J=-kt,le=xe*xe,(Ut=.5*jn(T,xe*xe)-It)?(ne=Do(Ut,le),J?(ie=(V=Do(J,1-le))[1]*V[1]+le*ne[0]*ne[0]*V[0]*V[0],[[ne[0]*V[2]/ie,ne[1]*ne[2]*V[0]*V[1]/ie],[ne[1]*V[1]/ie,-ne[0]*ne[2]*V[0]*V[2]/ie],[ne[2]*V[1]*V[2]/ie,-le*ne[0]*ne[1]*V[0]/ie]]):[[ne[0],0],[ne[1],0],[ne[2],0]]):[[0,(V=Do(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Ne=function(et,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(et[0]*rt[0]+et[1]*rt[1])/dt,(et[1]*rt[0]-et[0]*rt[1])/dt]}(Ee[0],Ee[1]);return[S(Ne[1],Ne[0])/-1,2*i(y(-.5*a(ge*Ne[0]*Ne[0]+ge*Ne[1]*Ne[1])))-T]};var Yn=n(61780);function ir(kt){var It=O(kt),Ut=w(kt),J=kr(kt);function le(ne,V){var ie=J(ne,V);ne=ie[0],V=ie[1];var ge=O(V),xe=w(V),Ee=w(ne),Ne=Q(It*ge+Ut*xe*Ee),et=O(Ne),rt=b(et)>x?Ne/et:1;return[rt*Ut*O(ne),(b(ne)>T?rt:-rt)*(It*xe-Ut*ge*Ee)]}return J.invert=kr(-kt),le.invert=function(ne,V){var ie=j(ne*ne+V*V),ge=-O(ie),xe=w(ie),Ee=ie*xe,Ne=-V*ge,et=ie*It,rt=j(Ee*Ee+Ne*Ne-et*et),dt=S(Ee*et+Ne*rt,Ne*et-Ee*rt),gt=(ie>T?-1:1)*S(ne*ge,ie*w(dt)*xe+V*O(dt)*ge);return J.invert(gt,dt)},le}function kr(kt){var It=O(kt),Ut=w(kt);return function(J,le){var ne=w(le),V=w(J)*ne,ie=O(J)*ne,ge=O(le);return[S(ie,V*Ut-ge*It),$(ge*Ut+V*It)]}}function Er(){var kt=0,It=(0,u.U)(ir),Ut=It(kt),J=Ut.rotate,le=Ut.stream,ne=(0,Yn.c)();return Ut.parallel=function(V){if(!arguments.length)return kt*I;var ie=Ut.rotate();return It(kt=V*z).rotate(ie)},Ut.rotate=function(V){return arguments.length?(J.call(Ut,[V[0],V[1]-kt*I]),ne.center([-V[0],-V[1]]),Ut):((V=J.call(Ut))[1]+=kt*I,V)},Ut.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ie,ge=ne.radius(89.99)().coordinates[0],xe=ge.length-1,Ee=-1;for(V.lineStart();++Ee=0;)V.point((ie=ge[Ee])[0],ie[1]);V.lineEnd(),V.polygonEnd()},V},Ut.scale(79.4187).parallel(45).clipAngle(179.999)}var Gt=n(84706),on=n(16016),an=$(1-1/3)*I,Tn=bt(0);function zn(kt){var It=an*z,Ut=cn(M,It)[0]-cn(-M,It)[0],J=Tn(0,It)[1],le=cn(0,It)[1],ne=D-le,V=k/kt,ie=4/k,ge=J+ne*ne*4/k;function xe(Ee,Ne){var et,rt=b(Ne);if(rt>It){var dt=h(kt-1,c(0,m((Ee+M)/V)));(et=cn(Ee+=M*(kt-1)/kt-dt*V,rt))[0]=et[0]*k/Ut-k*(kt-1)/(2*kt)+dt*k/kt,et[1]=J+4*(et[1]-le)*ne/k,Ne<0&&(et[1]=-et[1])}else et=Tn(Ee,Ne);return et[0]*=ie,et[1]/=ge,et}return xe.invert=function(Ee,Ne){Ee/=ie;var et=b(Ne*=ge);if(et>J){var rt=h(kt-1,c(0,m((Ee+M)/V)));Ee=(Ee+M*(kt-1)/kt-rt*V)*Ut/k;var dt=cn.invert(Ee,.25*(et-J)*k/ne+le);return dt[0]-=M*(kt-1)/kt-rt*V,Ne<0&&(dt[1]=-dt[1]),dt}return Tn.invert(Ee,Ne)},xe}function Gn(kt,It){return[kt,1&It?90-x:an]}function Lr(kt,It){return[kt,1&It?-90+x:-an]}function Ur(kt){return[kt[0]*(1-x),kt[1]]}function qr(){var kt=4,It=(0,u.U)(zn),Ut=It(kt),J=Ut.stream;return Ut.lobes=function(le){return arguments.length?It(kt=+le):kt},Ut.stream=function(le){var ne=Ut.rotate(),V=J(le),ie=(Ut.rotate([0,0]),J(le));return Ut.rotate(ne),V.sphere=function(){var ge,xe;(0,on.c)((ge=180/kt,xe=[].concat((0,Gt.ik)(-180,180+ge/2,ge).map(Gn),(0,Gt.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Ur):xe]}),ie)},V},Ut.scale(239.75)}function Cr(kt){var It,Ut=1+kt,J=$(O(1/Ut)),le=2*j(M/(It=M+4*J*Ut)),ne=.5*le*(Ut+j(kt*(2+kt))),V=kt*kt,ie=Ut*Ut;function ge(xe,Ee){var Ne,et,rt=1-O(Ee);if(rt&&rt<2){var dt,gt=T-Ee,Rt=25;do{var Mt=O(gt),Xt=w(gt),dn=J+S(Mt,Ut-Xt),bn=1+ie-2*Ut*Xt;gt-=dt=(gt-V*J-Ut*Mt+bn*dn-.5*rt*It)/(2*Ut*Mt*dn)}while(b(dt)>R&&--Rt>0);Ne=le*j(bn),et=xe*dn/M}else Ne=le*(kt+rt),et=xe*J/M;return[Ne*O(et),ne-Ne*w(et)]}return ge.invert=function(xe,Ee){var Ne=xe*xe+(Ee-=ne)*Ee,et=(1+ie-Ne/(le*le))/(2*Ut),rt=Q(et),dt=O(rt),gt=J+S(dt,Ut-et);return[$(xe/j(Ne))*M/gt,$(1-2*(rt-V*J-Ut*dt+(1+ie-2*Ut*et)*gt)/It)]},ge}function wo(){var kt=1,It=(0,u.U)(Cr),Ut=It(kt);return Ut.ratio=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(167.774).center([0,18.67])}var Nr=.7109889596207567,Eo=.0528035274542;function zo(kt,It){return It>-Nr?((kt=Oe(kt,It))[1]+=Eo,kt):Je(kt,It)}function Qt(){return(0,u.c)(zo).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Mn(kt,It){return b(It)>Nr?((kt=Oe(kt,It))[1]-=It>0?Eo:-Eo,kt):Je(kt,It)}function Fn(){return(0,u.c)(Mn).scale(152.63)}function dr(kt,It,Ut,J){var le=j(4*M/(2*Ut+(1+kt-It/2)*O(2*Ut)+(kt+It)/2*O(4*Ut)+It/2*O(6*Ut))),ne=j(J*O(Ut)*j((1+kt*w(2*Ut)+It*w(4*Ut))/(1+kt+It))),V=Ut*ge(1);function ie(Ne){return j(1+kt*w(2*Ne)+It*w(4*Ne))}function ge(Ne){var et=Ne*Ut;return(2*et+(1+kt-It/2)*O(2*et)+(kt+It)/2*O(4*et)+It/2*O(6*et))/Ut}function xe(Ne){return ie(Ne)*O(Ne)}var Ee=function(Ne,et){var rt=Ut*Ie(ge,V*O(et)/Ut,et/M);isNaN(rt)&&(rt=Ut*_(et));var dt=le*ie(rt);return[dt*ne*Ne/M*w(rt),dt/ne*O(rt)]};return Ee.invert=function(Ne,et){var rt=Ie(xe,et*ne/le);return[Ne*M/(w(rt)*le*ne*ie(rt)),$(Ut*ge(rt/Ut)/V)]},Ut===0&&(le=j(J/M),(Ee=function(Ne,et){return[Ne*le,O(et)/le]}).invert=function(Ne,et){return[Ne/le,$(et*le)]}),Ee}function xr(){var kt=1,It=0,Ut=45*z,J=2,le=(0,u.U)(dr),ne=le(kt,It,Ut,J);return ne.a=function(V){return arguments.length?le(kt=+V,It,Ut,J):kt},ne.b=function(V){return arguments.length?le(kt,It=+V,Ut,J):It},ne.psiMax=function(V){return arguments.length?le(kt,It,Ut=+V*z,J):Ut*I},ne.ratio=function(V){return arguments.length?le(kt,It,Ut,J=+V):J},ne.scale(180.739)}function Oo(kt,It,Ut,J,le,ne,V,ie,ge,xe,Ee){if(Ee.nanEncountered)return NaN;var Ne,et,rt,dt,gt,Rt,Mt,Xt,dn,bn;if(et=kt(It+.25*(Ne=Ut-It)),rt=kt(Ut-.25*Ne),isNaN(et))Ee.nanEncountered=!0;else{if(!isNaN(rt))return bn=((Rt=(dt=Ne*(J+4*et+le)/12)+(gt=Ne*(le+4*rt+ne)/12))-V)/15,xe>ge?(Ee.maxDepthCount++,Rt+bn):Math.abs(bn)rt?gt=Rt:dt=Rt,Rt=dt+gt>>1;while(Rt>dt);var Mt=ge[Rt+1]-ge[Rt];return Mt&&(Mt=(rt-ge[Rt+1])/Mt),(Rt+1+Mt)/V}var Ne=2*Ee(1)/M*ne/Ut,et=function(rt,dt){var gt=Ee(b(O(dt))),Rt=J(gt)*rt;return gt/=Ne,[Rt,dt>=0?gt:-gt]};return et.invert=function(rt,dt){var gt;return b(dt*=Ne)<1&&(gt=_(dt)*$(le(b(dt))*ne)),[rt/J(b(dt)),gt]},et}function To(){var kt=0,It=2.5,Ut=1.183136,J=(0,u.U)(Di),le=J(kt,It,Ut);return le.alpha=function(ne){return arguments.length?J(kt=+ne,It,Ut):kt},le.k=function(ne){return arguments.length?J(kt,It=+ne,Ut):It},le.gamma=function(ne){return arguments.length?J(kt,It,Ut=+ne):Ut},le.scale(152.63)}function Ia(kt,It){return b(kt[0]-It[0])Ne[et][2][0];++et);var dt=kt(ge-Ne[et][1][0],xe);return dt[0]+=kt(Ne[et][1][0],Ee*xe>Ee*Ne[et][0][1]?Ne[et][0][1]:xe)[0],dt}Ut?ne.invert=Ut(ne):kt.invert&&(ne.invert=function(ge,xe){for(var Ee=le[+(xe<0)],Ne=It[+(xe<0)],et=0,rt=Ee.length;et=0;--Rt)Ne=(Ee=xe[1][Rt])[0][0],et=Ee[0][1],rt=Ee[1][1],dt=Ee[2][0],gt=Ee[2][1],Mt.push(Ds([[dt-x,gt-x],[dt-x,rt+x],[Ne+x,rt+x],[Ne+x,et-x]],30));return{type:"Polygon",coordinates:[(0,Gt.Uf)(Mt)]}}(ge),It=ge.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*z,Ee[0][1]*z],[Ee[1][0]*z,Ee[1][1]*z],[Ee[2][0]*z,Ee[2][1]*z]]})}),le=It.map(function(xe){return xe.map(function(Ee){var Ne,et=kt(Ee[0][0],Ee[0][1])[0],rt=kt(Ee[2][0],Ee[2][1])[0],dt=kt(Ee[1][0],Ee[0][1])[1],gt=kt(Ee[1][0],Ee[1][1])[1];return dt>gt&&(Ne=dt,dt=gt,gt=Ne),[[et,dt],[rt,gt]]})}),V):It.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*I,Ee[0][1]*I],[Ee[1][0]*I,Ee[1][1]*I],[Ee[2][0]*I,Ee[2][1]*I]]})})},It!=null&&V.lobes(It),V}zo.invert=function(kt,It){return It>-Nr?Oe.invert(kt,It-Eo):Je.invert(kt,It)},Mn.invert=function(kt,It){return b(It)>Nr?Oe.invert(kt,It+(It>0?Eo:-Eo)):Je.invert(kt,It)};var zi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yl(){return fs(Ue,zi).scale(160.857)}var Bs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yf(){return fs(Mn,Bs).scale(152.63)}var il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function nf(){return fs(Oe,il).scale(169.529)}var nh=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gp(){return fs(Oe,nh).scale(169.529).rotate([20,0])}var Qs=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function bh(){return fs(zo,Qs,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Bl=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tc(){return fs(Je,Bl).scale(152.63).rotate([-20,0])}function iu(kt,It){return[3/k*kt*j(M*M/3-It*It),It]}function au(){return(0,u.c)(iu).scale(158.837)}function zf(kt){function It(Ut,J){if(b(b(J)-T)2)return null;var ne=(Ut/=2)*Ut,V=(J/=2)*J,ie=2*J/(1+ne+V);return ie=p((1+ie)/(1-ie),1/kt),[S(2*Ut,1-ne-V)/kt,$((ie-1)/(ie+1))]},It}function _s(){var kt=.5,It=(0,u.U)(zf),Ut=It(kt);return Ut.spacing=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(124.75)}iu.invert=function(kt,It){return[k/3*kt/j(M*M/3-It*It),It]};var ma=M/L;function mu(kt,It){return[kt*(1+j(w(It)))/2,It/(w(It/2)*w(kt/6))]}function Uc(){return(0,u.c)(mu).scale(97.2672)}function Kf(kt,It){var Ut=kt*kt,J=It*It;return[kt*(.975534+J*(-.0143059*Ut-.119161+-.0547009*J)),It*(1.00384+Ut*(.0802894+-.02855*J+199025e-9*Ut)+J*(.0998909+-.0491032*J))]}function Al(){return(0,u.c)(Kf).scale(139.98)}function Wl(kt,It){return[O(kt)/w(It),C(It)*w(kt)]}function Ml(){return(0,u.c)(Wl).scale(144.049).clipAngle(89.999)}function Jf(kt){var It=w(kt),Ut=C(P+kt/2);function J(le,ne){var V=ne-kt,ie=b(V)=0;)et=(Ne=kt[Ee])[0]+ge*(ne=et)-xe*rt,rt=Ne[1]+ge*rt+xe*ne;return[et=ge*(ne=et)-xe*rt,rt=ge*rt+xe*ne]}return Ut.invert=function(J,le){var ne=20,V=J,ie=le;do{for(var ge,xe=It,Ee=kt[xe],Ne=Ee[0],et=Ee[1],rt=0,dt=0;--xe>=0;)rt=Ne+V*(ge=rt)-ie*dt,dt=et+V*dt+ie*ge,Ne=(Ee=kt[xe])[0]+V*(ge=Ne)-ie*et,et=Ee[1]+V*et+ie*ge;var gt,Rt,Mt=(rt=Ne+V*(ge=rt)-ie*dt)*rt+(dt=et+V*dt+ie*ge)*dt;V-=gt=((Ne=V*(ge=Ne)-ie*et-J)*rt+(et=V*et+ie*ge-le)*dt)/Mt,ie-=Rt=(et*rt-Ne*dt)/Mt}while(b(gt)+b(Rt)>x*x&&--ne>0);if(ne){var Xt=j(V*V+ie*ie),dn=2*i(.5*Xt),bn=O(dn);return[S(V*bn,Xt*w(dn)),Xt?$(ie*bn/Xt):0]}},Ut}mu.invert=function(kt,It){var Ut=b(kt),J=b(It),le=x,ne=T;Jx||b(Rt)>x)&&--le>0);return le&&[Ut,J]},Wl.invert=function(kt,It){var Ut=kt*kt,J=It*It+1,le=Ut+J,ne=kt?A*j((le-j(le*le-4*Ut))/Ut):1/j(J);return[$(kt*ne),_(It)*Q(ne)]},Jl.invert=function(kt,It){return[kt,2.5*i(y(.8*It))-.625*M]};var Tu=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],gu=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ec=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Dc=[[.9245,0],[0,0],[.01943,0]],tc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Lp(){return vu(Tu,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function rh(){return vu(gu,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function rf(){return vu(ec,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function of(){return vu(Dc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function bf(){return vu(tc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function vu(kt,It){var Ut=(0,u.c)(ll(kt)).rotate(It).clipAngle(90),J=(0,St.c)(It),le=Ut.center;return delete Ut.rotate,Ut.center=function(ne){return arguments.length?le(J(ne)):J.invert(le())},Ut}var $d=j(6),bl=j(7);function Zu(kt,It){var Ut=$(7*O(It)/(3*$d));return[$d*kt*(2*w(2*Ut/3)-1)/bl,9*O(Ut/3)/bl]}function Kh(){return(0,u.c)(Zu).scale(164.859)}function Cu(kt,It){for(var Ut,J=(1+A)*O(It),le=It,ne=0;ne<25&&(le-=Ut=(O(le/2)+O(le)-J)/(.5*w(le/2)+w(le)),!(b(Ut)R&&--ie>0);return[kt/(.84719-.13063*(J=V*V)+(ne=J*(le=J*J))*ne*(.05494*J-.04515-.02326*le+.00331*ne)),V]},xh.invert=function(kt,It){for(var Ut=It/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ne=w(It/2);It-=le=(It-C(It/2)-Ut)/(1-.5/(ne*ne))}return[2*kt/(1+w(It)),It]};var ep=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function _r(){return fs(we(1/0),ep).rotate([20,0]).scale(152.63)}function Ff(kt,It){var Ut=O(It),J=w(It),le=_(kt);if(kt===0||b(It)===T)return[0,It];if(It===0)return[kt,0];if(b(kt)===T)return[kt*J,T*Ut];var ne=M/(2*kt)-2*kt/M,V=2*It/M,ie=(1-V*V)/(Ut-V),ge=ne*ne,xe=ie*ie,Ee=1+ge/xe,Ne=1+xe/ge,et=(ne*Ut/ie-ne/2)/Ee,rt=(xe*Ut/ge+ie/2)/Ne,dt=rt*rt-(xe*Ut*Ut/ge+ie*Ut-1)/Ne;return[T*(et+j(et*et+J*J/Ee)*le),T*(rt+j(dt<0?0:dt)*_(-It*ne)*le)]}function yd(){return(0,u.c)(Ff).scale(127.267)}Ff.invert=function(kt,It){var Ut=(kt/=T)*kt,J=Ut+(It/=T)*It,le=M*M;return[kt?(J-1+j((1-J)*(1-J)+4*Ut))/(2*kt)*T:0,Ie(function(ne){return J*(M*O(ne)-2*ne)*M+4*ne*ne*(It-O(ne))+2*M*ne-le*It},0)]};var bd=1.0148,_h=.23185,zu=-.14499,va=.02406,El=bd,_f=5*_h,$f=7*zu,ih=9*va,yu=1.790857183;function jc(kt,It){var Ut=It*It;return[kt,It*(bd+Ut*Ut*(_h+Ut*(zu+va*Ut)))]}function Nh(){return(0,u.c)(jc).scale(139.319)}function af(kt,It){if(b(It)yu?It=yu:It<-1.790857183&&(It=-1.790857183);var Ut,J=It;do{var le=J*J;J-=Ut=(J*(bd+le*le*(_h+le*(zu+va*le)))-It)/(El+le*le*(_f+le*($f+ih*le)))}while(b(Ut)>x);return[kt,J]},af.invert=function(kt,It){if(b(It)x&&--ne>0);return V=C(le),[(b(It)=0;)if(Jn=Ln[Pr],gn[0]===Jn[0]&&gn[1]===Jn[1]){if(In)return[In,gn];In=gn}}}(ge.face,xe.face),Ne=(gt=Ee.map(xe.project),Rt=Ee.map(ge.project),Mt=xd(gt[1],gt[0]),Xt=xd(Rt[1],Rt[0]),dn=function(vn,Ln){return S(vn[0]*Ln[1]-vn[1]*Ln[0],vn[0]*Ln[0]+vn[1]*Ln[1])}(Mt,Xt),bn=vc(Mt)/vc(Xt),Vd([1,0,gt[0][0],0,1,gt[0][1]],Vd([bn,0,0,0,bn,0],Vd([w(dn),O(dn),0,-O(dn),w(dn),0],[1,0,-Rt[0][0],0,1,-Rt[0][1]]))));ge.transform=xe.transform?Vd(xe.transform,Ne):Ne;for(var et=xe.edges,rt=0,dt=et.length;rt0?[-J[0],0]:[180-J[0],180])};var It=Ac.map(function(Ut){return{face:Ut,project:kt(Ut)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ut,J){var le=It[Ut];le&&(le.children||(le.children=[])).push(It[J])}),gs(It[0],function(Ut,J){return It[Ut<-M/2?J<0?6:4:Ut<0?J<0?2:0:Utge^Xt>ge&&ie<(Mt-dt)*(ge-gt)/(Xt-gt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ut),!0})||kt.push([Ut])}),wi=[],kt.length?kt.length>1?{type:"MultiPolygon",coordinates:kt}:{type:"Polygon",coordinates:kt[0]}:null}};function ds(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=b(J)0?J-M:J+M,le),ie=(V[0]-V[1])*A,ge=(V[0]+V[1])*A;if(ne)return[ie,ge];var xe=It*A,Ee=ie>0^ge>0?-1:1;return[Ee*ie-_(ge)*xe,Ee*ge-_(ie)*xe]}return kt.invert&&(Ut.invert=function(J,le){var ne=(J+le)*A,V=(le-J)*A,ie=b(ne)<.5*It&&b(V)<.5*It;if(!ie){var ge=It*A,xe=ne>0^V>0?-1:1,Ee=-xe*J+(V>0?1:-1)*ge,Ne=-xe*le+(ne>0?1:-1)*ge;ne=(-Ee-Ne)*A,V=(Ee-Ne)*A}var et=kt.invert(ne,V);return ie||(et[0]+=ne>0?M:-M),et}),(0,u.c)(Ut).rotate([-90,-90,45]).clipAngle(179.999)}function zc(){return ds(oo).scale(176.423)}function Ud(){return ds(Rr).scale(111.48)}function cf(kt,It){if(!(0<=(It=+It)&&It<=20))throw new Error("invalid digits");function Ut(xe){var Ee=xe.length,Ne=2,et=new Array(Ee);for(et[0]=+xe[0].toFixed(It),et[1]=+xe[1].toFixed(It);Ne2||rt[0]!=Ee[0]||rt[1]!=Ee[1])&&(Ne.push(rt),Ee=rt)}return Ne.length===1&&xe.length>1&&Ne.push(Ut(xe[xe.length-1])),Ne}function ne(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Ee;switch(xe.type){case"GeometryCollection":Ee={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Ee={type:"Point",coordinates:Ut(xe.coordinates)};break;case"MultiPoint":Ee={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Ee={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Ee={type:xe.type,coordinates:ne(xe.coordinates)};break;case"MultiPolygon":Ee={type:"MultiPolygon",coordinates:xe.coordinates.map(ne)};break;default:return xe}return xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}function ie(xe){var Ee={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Ee.id=xe.id),xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}if(kt!=null)switch(kt.type){case"Feature":return ie(kt);case"FeatureCollection":var ge={type:"FeatureCollection",features:kt.features.map(ie)};return kt.bbox!=null&&(ge.bbox=kt.bbox),ge;default:return V(kt)}return kt}function Of(kt){var It=O(kt);function Ut(J,le){var ne=It?C(J*It/2)/It:J/2;if(!le)return[2*ne,-kt];var V=2*i(ne*O(le)),ie=1/C(le);return[O(V)*ie,le+(1-w(V))*ie-kt]}return Ut.invert=function(J,le){if(b(le+=kt)x&&--ge>0);var et=J*(xe=C(ie)),rt=C(b(le)0?T:-T)*(xe+ne*(Ne-ie)/2+ne*ne*(Ne-2*xe+ie)/2)]}function Ri(){return(0,u.c)(Mu).scale(152.63)}function Gc(kt,It){var Ut=function(V){function ie(ge,xe){var Ee=w(xe),Ne=(V-1)/(V-Ee*w(ge));return[Ne*Ee*O(ge),Ne*O(xe)]}return ie.invert=function(ge,xe){var Ee=ge*ge+xe*xe,Ne=j(Ee),et=(V-j(1-Ee*(V+1)/(V-1)))/((V-1)/Ne+Ne/(V-1));return[S(ge*et,Ne*j(1-et*et)),Ne?$(xe*et/Ne):0]},ie}(kt);if(!It)return Ut;var J=w(It),le=O(It);function ne(V,ie){var ge=Ut(V,ie),xe=ge[1],Ee=xe*le/(kt-1)+J;return[ge[0]*J/Ee,xe/Ee]}return ne.invert=function(V,ie){var ge=(kt-1)/(kt-1-ie*le);return Ut.invert(ge*V,ge*ie*J)},ne}function qu(){var kt=2,It=0,Ut=(0,u.U)(Gc),J=Ut(kt,It);return J.distance=function(le){return arguments.length?Ut(kt=+le,It):kt},J.tilt=function(le){return arguments.length?Ut(kt,It=le*z):It*I},J.scale(432.147).clipAngle(Q(1/kt)*I-1e-6)}rs.forEach(function(kt){kt[1]*=1.0144}),Mu.invert=function(kt,It){var Ut=It/T,J=90*Ut,le=h(18,b(J/5)),ne=c(0,m(le));do{var V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],xe=ge-V,Ee=ge-2*ie+V,Ne=2*(b(Ut)-ie)/xe,et=Ee/xe,rt=Ne*(1-et*Ne*(1-2*et*Ne));if(rt>=0||ne===1){J=(It>=0?5:-5)*(rt+le);var dt,gt=50;do rt=(le=h(18,b(J)/5))-(ne=m(le)),V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],J-=(dt=(It>=0?T:-T)*(ie+rt*(ge-V)/2+rt*rt*(ge-2*ie+V)/2)-It)*I;while(b(dt)>R&&--gt>0);break}}while(--ne>=0);var Rt=rs[ne][0],Mt=rs[ne+1][0],Xt=rs[h(19,ne+2)][0];return[kt/(Mt+rt*(Xt-Rt)/2+rt*rt*(Xt-2*Mt+Rt)/2),J*z]};var zl=1e-4,xc=1e4,Kc=-180,jd=Kc+zl,ii=180,nd=ii-zl,al=-90,Yl=al+zl,uf=90,hs=uf-zl;function Mc(kt){return kt.length>0}function Eu(kt){return kt===al||kt===uf?[0,kt]:[Kc,(It=kt,Math.floor(It*xc)/xc)];var It}function xu(kt){var It=kt[0],Ut=kt[1],J=!1;return It<=jd?(It=Kc,J=!0):It>=nd&&(It=ii,J=!0),Ut<=Yl?(Ut=al,J=!0):Ut>=hs&&(Ut=uf,J=!0),J?[It,Ut]:kt}function ws(kt){return kt.map(xu)}function Fu(kt,It,Ut){for(var J=0,le=kt.length;J=nd||Ee<=Yl||Ee>=hs){ne[V]=xu(ge);for(var Ne=V+1;Nejd&&rtYl&&dt=ie)break;Ut.push({index:-1,polygon:It,ring:ne=ne.slice(Ne-1)}),ne[0]=Eu(ne[0][1]),V=-1,ie=ne.length}}}}function su(kt){var It,Ut,J,le,ne,V,ie=kt.length,ge={},xe={};for(It=0;It0?M-ie:ie)*I],xe=(0,u.c)(kt(V)).rotate(ge),Ee=(0,St.c)(ge),Ne=xe.center;return delete xe.rotate,xe.center=function(et){return arguments.length?Ne(Ee(et)):Ee.invert(Ne())},xe.clipAngle(90)}function En(kt){var It=w(kt);function Ut(J,le){var ne=(0,Gs.Y)(J,le);return ne[0]*=It,ne}return Ut.invert=function(J,le){return Gs.Y.invert(J/It,le)},Ut}function pr(){return wr([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function wr(kt,It){return Kt(En,kt,It)}function uo(kt){if(!(kt*=2))return de.O;var It=-kt/2,Ut=-It,J=kt*kt,le=C(Ut),ne=.5/O(Ut);function V(ie,ge){var xe=Q(w(ge)*w(ie-It)),Ee=Q(w(ge)*w(ie-Ut));return[((xe*=xe)-(Ee*=Ee))/(2*kt),(ge<0?-1:1)*j(4*J*Ee-(J-xe+Ee)*(J-xe+Ee))/(2*kt)]}return V.invert=function(ie,ge){var xe,Ee,Ne=ge*ge,et=w(j(Ne+(xe=ie+It)*xe)),rt=w(j(Ne+(xe=ie+Ut)*xe));return[S(Ee=et-rt,xe=(et+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Ee*Ee)*ne)]},V}function Bi(){return ya([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ya(kt,It){return Kt(uo,kt,It)}function Ni(kt,It){if(b(It)x&&--ie>0);return[_(kt)*(j(le*le+4)+le)*M/4,T*V]};var _c=4*M+3*j(3),Xl=2*j(2*M*j(3)/_c),pl=$e(Xl*j(3)/M,Xl,_c/6);function Pc(){return(0,u.c)(pl).scale(176.84)}function Uf(kt,It){return[kt*j(1-3*It*It/(M*M)),It]}function Os(){return(0,u.c)(Uf).scale(152.63)}function Si(kt,It){var Ut=w(It),J=w(kt)*Ut,le=1-J,ne=w(kt=S(O(kt)*Ut,-O(It))),V=O(kt);return[V*(Ut=j(1-J*J))-ne*le,-ne*Ut-V*le]}function lc(){return(0,u.c)(Si).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function rd(kt,It){var Ut=K(kt,It);return[(Ut[0]+kt/T)/2,(Ut[1]+It)/2]}function tp(){return(0,u.c)(rd).scale(158.837)}Uf.invert=function(kt,It){return[kt/j(1-3*It*It/(M*M)),It]},Si.invert=function(kt,It){var Ut=(kt*kt+It*It)/-2,J=j(-Ut*(2+Ut)),le=It*Ut+kt*J,ne=kt*Ut-It*J,V=j(ne*ne+le*le);return[S(J*le,V*(1+Ut)),V?-$(J*ne/V):0]},rd.invert=function(kt,It){var Ut=kt,J=It,le=25;do{var ne,V=w(J),ie=O(J),ge=O(2*J),xe=ie*ie,Ee=V*V,Ne=O(Ut),et=w(Ut/2),rt=O(Ut/2),dt=rt*rt,gt=1-Ee*et*et,Rt=gt?Q(V*et)*j(ne=1/gt):ne=0,Mt=.5*(2*Rt*V*rt+Ut/T)-kt,Xt=.5*(Rt*ie+J)-It,dn=.5*ne*(Ee*dt+Rt*V*et*xe)+.5/T,bn=ne*(Ne*ge/4-Rt*ie*rt),vn=.125*ne*(ge*rt-Rt*ie*Ee*Ne),Ln=.5*ne*(xe*et+Rt*dt*V)+.5,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},88728:function(d,s,n){function u(){return new b}function b(){this.reset()}n.d(s,{c:function(){return u}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){S(i,w,this.t),S(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function S(w,y,m){var a=w.s=y+m,c=a-y,h=a-c;w.t=y-h+(m-c)}},95384:function(d,s,n){n.d(s,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var u,b,i,S,w,y=n(88728),m=n(64528),a=n(70932),c=n(16016),h=(0,y.c)(),p=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=O},polygonEnd:function(){var M=+h;p.add(M<0?m.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){p.add(m.kD)}};function _(){v.point=C}function O(){x(u,b)}function C(M,T){v.point=x,u=M,b=T,M*=m.qw,T*=m.qw,i=M,S=(0,m.W8)(T=T/2+m.wL),w=(0,m.g$)(T)}function x(M,T){M*=m.qw,T=(T*=m.qw)/2+m.wL;var P=M-i,A=P>=0?1:-1,L=A*P,D=(0,m.W8)(T),k=(0,m.g$)(T),I=w*k,z=S*D+I*(0,m.W8)(L),$=I*A*(0,m.g$)(L);h.add((0,m.WE)($,z)),i=M,S=D,w=k}function R(M){return p.reset(),(0,c.c)(M,v),2*p}},13696:function(d,s,n){n.d(s,{c:function(){return Q}});var u,b,i,S,w,y,m,a,c,h,p=n(88728),v=n(95384),_=n(84220),O=n(64528),C=n(16016),x=(0,p.c)(),R={point:M,lineStart:P,lineEnd:A,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=P,R.lineEnd=A,v.mQ<0?(u=-(i=180),b=-(S=90)):x>O.Gg?S=90:x<-O.Gg&&(b=-90),h[0]=u,h[1]=i},sphere:function(){u=-(i=180),b=-(S=90)}};function M(j,U){c.push(h=[u=j,i=j]),US&&(S=U)}function T(j,U){var X=(0,_.ux)([j*O.qw,U*O.qw]);if(a){var te=(0,_.CW)(a,X),Z=[te[1],-te[0],0],K=(0,_.CW)(Z,te);(0,_.cJ)(K),K=(0,_.G)(K);var re,q=j-w,Y=q>0?1:-1,ee=K[0]*O.oh*Y,me=(0,O.a2)(q)>180;me^(Y*wS&&(S=re):me^(Y*w<(ee=(ee+360)%360-180)&&eeS&&(S=U)),me?jI(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j):i>=u?(ji&&(i=j)):j>w?I(u,j)>I(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j)}else c.push(h=[u=j,i=j]);US&&(S=U),a=X,w=j}function P(){R.point=T}function A(){h[0]=u,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,O.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,m=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,m),v.oB.lineEnd(),(0,O.a2)(x)>O.Gg&&(u=-(i=180)),h[0]=u,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=Z[1]),I(Z[0],te[1])>I(te[0],te[1])&&(te[0]=Z[0])):K.push(te=Z);for(re=-1/0,U=0,te=K[X=K.length-1];U<=X;te=Z,++U)Z=K[U],(q=I(te[1],Z[0]))>re&&(re=q,u=Z[0],i=te[1])}return c=h=null,u===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,b],[i,S]]}},84220:function(d,s,n){n.d(s,{CW:function(){return w},Ez:function(){return S},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return m}});var u=n(64528);function b(c){return[(0,u.WE)(c[1],c[0]),(0,u.qR)(c[2])]}function i(c){var h=c[0],p=c[1],v=(0,u.W8)(p);return[v*(0,u.W8)(h),v*(0,u.g$)(h),(0,u.g$)(p)]}function S(c,h){return c[0]*h[0]+c[1]*h[1]+c[2]*h[2]}function w(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function y(c,h){c[0]+=h[0],c[1]+=h[1],c[2]+=h[2]}function m(c,h){return[c[0]*h,c[1]*h,c[2]*h]}function a(c){var h=(0,u._I)(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]);c[0]/=h,c[1]/=h,c[2]/=h}},24052:function(d,s,n){n.d(s,{c:function(){return X}});var u,b,i,S,w,y,m,a,c,h,p,v,_,O,C,x,R=n(64528),M=n(70932),T=n(16016),P={sphere:M.c,point:A,lineStart:D,lineEnd:z,polygonStart:function(){P.lineStart=$,P.lineEnd=Q},polygonEnd:function(){P.lineStart=D,P.lineEnd=z}};function A(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(Z))}function L(te,Z,K){++u,i+=(te-i)/u,S+=(Z-S)/u,w+=(K-w)/u}function D(){P.point=k}function k(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),P.point=I,L(O,C,x)}function I(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=(0,R.WE)((0,R._I)((ee=C*Y-x*q)*ee+(ee=x*re-O*Y)*ee+(ee=O*q-C*re)*ee),O*re+C*q+x*Y);b+=ee,y+=ee*(O+(O=re)),m+=ee*(C+(C=q)),a+=ee*(x+(x=Y)),L(O,C,x)}function z(){P.point=A}function $(){P.point=j}function Q(){U(v,_),P.point=A}function j(te,Z){v=te,_=Z,te*=R.qw,Z*=R.qw,P.point=U;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),L(O,C,x)}function U(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=C*Y-x*q,me=x*re-O*Y,pe=O*q-C*re,se=(0,R._I)(ee*ee+me*me+pe*pe),ae=(0,R.qR)(se),ce=se&&-ae/se;c+=ce*ee,h+=ce*me,p+=ce*pe,b+=ae,y+=ae*(O+(O=re)),m+=ae*(C+(C=q)),a+=ae*(x+(x=Y)),L(O,C,x)}function X(te){u=b=i=S=w=y=m=a=c=h=p=0,(0,T.c)(te,P);var Z=c,K=h,re=p,q=Z*Z+K*K+re*re;return q0?v<_:v>_)&&(v+=p*i.kD));for(var R,M=v;p>0?M>_:M<_;M-=x)R=(0,u.G)([O,-C*(0,i.W8)(M),-C*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,c){(c=(0,u.ux)(c))[0]-=a,(0,u.cJ)(c);var h=(0,i.mE)(-c[1]);return((-c[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function m(){var a,c,h=b([0,0]),p=b(90),v=b(6),_={point:function(C,x){a.push(C=c(C,x)),C[0]*=i.oh,C[1]*=i.oh}};function O(){var C=h.apply(this,arguments),x=p.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],c=(0,S.O)(-C[0]*i.qw,-C[1]*i.qw,0).invert,w(_,x,R,1),C={type:"Polygon",coordinates:[a]},a=c=null,C}return O.center=function(C){return arguments.length?(h=typeof C=="function"?C:b([+C[0],+C[1]]),O):h},O.radius=function(C){return arguments.length?(p=typeof C=="function"?C:b(+C),O):p},O.precision=function(C){return arguments.length?(v=typeof C=="function"?C:b(+C),O):v},O}},78284:function(d,s,n){var u=n(14229),b=n(64528);s.c=(0,u.c)(function(){return!0},function(i){var S,w=NaN,y=NaN,m=NaN;return{lineStart:function(){i.lineStart(),S=1},point:function(a,c){var h=a>0?b.pi:-b.pi,p=(0,b.a2)(a-w);(0,b.a2)(p-b.pi)0?b.or:-b.or),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),S=0):m!==h&&p>=b.pi&&((0,b.a2)(w-m)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(C))*(0,b.g$)(O)-(0,b.g$)(C)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+C)/2}(w,y,a,c),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),S=0),i.point(w=a,y=c),m=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-S}}},function(i,S,w,y){var m;if(i==null)m=w*b.or,y.point(-b.pi,m),y.point(0,m),y.point(b.pi,m),y.point(b.pi,0),y.point(b.pi,-m),y.point(0,-m),y.point(-b.pi,-m),y.point(-b.pi,0),y.point(-b.pi,m);else if((0,b.a2)(i[0]-S[0])>b.Gg){var a=i[0]1&&S.push(S.pop().concat(S.shift()))},result:function(){var w=S;return S=[],i=null,w}}}},2728:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(84220),b=n(61780),i=n(64528),S=n(41860),w=n(14229);function y(m){var a=(0,i.W8)(m),c=6*i.qw,h=a>0,p=(0,i.a2)(a)>i.Gg;function v(C,x){return(0,i.W8)(C)*(0,i.W8)(x)>a}function _(C,x,R){var M=(0,u.ux)(C),T=(0,u.ux)(x),P=[1,0,0],A=(0,u.CW)(M,T),L=(0,u.Ez)(A,A),D=A[0],k=L-D*D;if(!k)return!R&&C;var I=a*L/k,z=-a*D/k,$=(0,u.CW)(P,A),Q=(0,u.wx)(P,I),j=(0,u.wx)(A,z);(0,u.mg)(Q,j);var U=$,X=(0,u.Ez)(Q,U),te=(0,u.Ez)(U,U),Z=X*X-te*((0,u.Ez)(Q,Q)-1);if(!(Z<0)){var K=(0,i._I)(Z),re=(0,u.wx)(U,(-X-K)/te);if((0,u.mg)(re,Q),re=(0,u.G)(re),!R)return re;var q,Y=C[0],ee=x[0],me=C[1],pe=x[1];ee0^re[1]<((0,i.a2)(re[0]-Y)i.pi^(Y<=re[0]&&re[0]<=ee)){var ce=(0,u.wx)(U,(-X+K)/te);return(0,u.mg)(ce,Q),[re,(0,u.G)(ce)]}}}function O(C,x){var R=h?m:i.pi-m,M=0;return C<-R?M|=1:C>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(C){var x,R,M,T,P;return{lineStart:function(){T=M=!1,P=1},point:function(A,L){var D,k=[A,L],I=v(A,L),z=h?I?0:O(A,L):I?O(A+(A<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&C.lineStart(),I!==M&&(!(D=_(x,k))||(0,S.c)(x,D)||(0,S.c)(k,D))&&(k[2]=1),I!==M)P=0,I?(C.lineStart(),D=_(k,x),C.point(D[0],D[1])):(D=_(x,k),C.point(D[0],D[1],2),C.lineEnd()),x=D;else if(p&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(P=0,h?(C.lineStart(),C.point($[0][0],$[0][1]),C.point($[1][0],$[1][1]),C.lineEnd()):(C.point($[1][0],$[1][1]),C.lineEnd(),C.lineStart(),C.point($[0][0],$[0][1],3)))}!I||x&&(0,S.c)(x,k)||C.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&C.lineEnd(),x=null},clean:function(){return P|(T&&M)<<1}}},function(C,x,R,M){(0,b.Q)(M,m,c,R,C,x)},h?[0,-m]:[-i.pi,m-i.pi])}},14229:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(97208),b=n(32232),i=n(64528),S=n(58196),w=n(84706);function y(c,h,p,v){return function(_){var O,C,x,R=h(_),M=(0,u.c)(),T=h(M),P=!1,A={point:L,lineStart:k,lineEnd:I,polygonStart:function(){A.point=z,A.lineStart=$,A.lineEnd=Q,C=[],O=[]},polygonEnd:function(){A.point=L,A.lineStart=k,A.lineEnd=I,C=(0,w.Uf)(C);var j=(0,S.c)(O,v);C.length?(P||(_.polygonStart(),P=!0),(0,b.c)(C,a,j,p,_)):j&&(P||(_.polygonStart(),P=!0),_.lineStart(),p(null,null,1,_),_.lineEnd()),P&&(_.polygonEnd(),P=!1),C=O=null},sphere:function(){_.polygonStart(),_.lineStart(),p(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){c(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){A.point=D,R.lineStart()}function I(){A.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,Z=T.clean(),K=M.result(),re=K.length;if(x.pop(),O.push(x),x=null,re)if(1&Z){if((U=(X=K[0]).length-1)>0){for(P||(_.polygonStart(),P=!0),_.lineStart(),j=0;j1&&2&Z&&K.push(K.pop().concat(K.shift())),C.push(K.filter(m))}return A}}function m(c){return c.length>1}function a(c,h){return((c=c.x)[0]<0?c[1]-i.or-i.Gg:i.or-c[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,s,n){n.d(s,{c:function(){return m}});var u=n(64528),b=n(97208),i=n(32232),S=n(84706),w=1e9,y=-w;function m(a,c,h,p){function v(R,M){return a<=R&&R<=h&&c<=M&&M<=p}function _(R,M,T,P){var A=0,L=0;if(R==null||(A=O(R,T))!==(L=O(M,T))||x(R,M)<0^T>0)do P.point(A===0||A===3?a:h,A>1?p:c);while((A=(A+T+4)%4)!==L);else P.point(M[0],M[1])}function O(R,M){return(0,u.a2)(R[0]-a)0?0:3:(0,u.a2)(R[0]-h)0?2:1:(0,u.a2)(R[1]-c)0?1:0:M>0?3:2}function C(R,M){return x(R.x,M.x)}function x(R,M){var T=O(R,1),P=O(M,1);return T!==P?T-P:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,P,A,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=Z,T&&T.push(P=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(Z(A,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eep&&(ve-pe)*(p-se)>(_e-se)*(a-pe)&&++Y:_e<=p&&(ve-pe)*(p-se)<(_e-se)*(a-pe)&&--Y;return Y}(),re=Q&&K,q=(M=(0,S.Uf)(M)).length;(re||q)&&(R.polygonStart(),re&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,C,K,_,R),R.polygonEnd()),j=R,M=T=P=null}};function te(K,re){v(K,re)&&j.point(K,re)}function Z(K,re){var q=v(K,re);if(T&&P.push([K,re]),$)A=K,L=re,D=q,$=!1,q&&(j.lineStart(),j.point(K,re));else if(q&&z)j.point(K,re);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),re=Math.max(y,Math.min(w,re))];(function(me,pe,se,ae,ce,de){var ye,ve=me[0],_e=me[1],we=0,Te=1,Pe=pe[0]-ve,Ie=pe[1]-_e;if(ye=se-ve,Pe||!(ye>0)){if(ye/=Pe,Pe<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=ce-ve,Pe||!(ye<0)){if(ye/=Pe,Pe<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Pe>0){if(ye0)){if(ye/=Ie,Ie<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=de-_e,Ie||!(ye<0)){if(ye/=Ie,Ie<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Ie>0){if(ye0&&(me[0]=ve+we*Pe,me[1]=_e+we*Ie),Te<1&&(pe[0]=ve+Te*Pe,pe[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,c,h,p)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,re),Q=!1)}k=K,I=re,z=q}return X}}},32232:function(d,s,n){n.d(s,{c:function(){return S}});var u=n(41860),b=n(64528);function i(y,m,a,c){this.x=y,this.z=m,this.o=a,this.e=c,this.v=!1,this.n=this.p=null}function S(y,m,a,c,h){var p,v,_=[],O=[];if(y.forEach(function(P){if(!((A=P.length-1)<=0)){var A,L,D=P[0],k=P[A];if((0,u.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),p=0;p=0;--p)h.point((x=C[p])[0],x[1]);else c(M.x,M.p.x,-1,h);M=M.p}C=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(m=y.length){for(var m,a,c=0,h=y[0];++c0&&(Zr=I(Hn[go],Hn[go-1]))>0&&Dr<=Zr&&Sr<=Zr&&(Dr+Sr-Zr)*(1-Math.pow((Dr-Sr)/Zr,2))O.Gg}).map(Do)).concat((0,re.ik)((0,O.Km)(go/ir)*ir,Zr,ir).filter(function(Tn){return(0,O.a2)(Tn%Er)>O.Gg}).map(jn))}return on.lines=function(){return an().map(function(Tn){return{type:"LineString",coordinates:Tn}})},on.outline=function(){return{type:"Polygon",coordinates:[Rr(Sr).concat(On(oo).slice(1),Rr(Dr).reverse().slice(1),On(io).reverse().slice(1))]}},on.extent=function(Tn){return arguments.length?on.extentMajor(Tn).extentMinor(Tn):on.extentMinor()},on.extentMajor=function(Tn){return arguments.length?(Sr=+Tn[0][0],Dr=+Tn[1][0],io=+Tn[0][1],oo=+Tn[1][1],Sr>Dr&&(Tn=Sr,Sr=Dr,Dr=Tn),io>oo&&(Tn=io,io=oo,oo=Tn),on.precision(Gt)):[[Sr,io],[Dr,oo]]},on.extentMinor=function(Tn){return arguments.length?(ar=+Tn[0][0],Hn=+Tn[1][0],go=+Tn[0][1],Zr=+Tn[1][1],ar>Hn&&(Tn=ar,ar=Hn,Hn=Tn),go>Zr&&(Tn=go,go=Zr,Zr=Tn),on.precision(Gt)):[[ar,go],[Hn,Zr]]},on.step=function(Tn){return arguments.length?on.stepMajor(Tn).stepMinor(Tn):on.stepMinor()},on.stepMajor=function(Tn){return arguments.length?(kr=+Tn[0],Er=+Tn[1],on):[kr,Er]},on.stepMinor=function(Tn){return arguments.length?(Yn=+Tn[0],ir=+Tn[1],on):[Yn,ir]},on.precision=function(Tn){return arguments.length?(Gt=+Tn,Do=q(go,Zr,90),jn=Y(ar,Hn,Gt),Rr=q(io,oo,90),On=Y(Sr,Dr,Gt),on):Gt},on.extentMajor([[-180,-90+O.Gg],[180,90-O.Gg]]).extentMinor([[-180,-80-O.Gg],[180,80+O.Gg]])}function me(){return ee()()}var pe,se,ae,ce,de=n(27284),ye=n(7376),ve=(0,_.c)(),_e=(0,_.c)(),we={point:C.c,lineStart:C.c,lineEnd:C.c,polygonStart:function(){we.lineStart=Te,we.lineEnd=ze},polygonEnd:function(){we.lineStart=we.lineEnd=we.point=C.c,ve.add((0,O.a2)(_e)),_e.reset()},result:function(){var Hn=ve/2;return ve.reset(),Hn}};function Te(){we.point=Pe}function Pe(Hn,ar){we.point=Ie,pe=ae=Hn,se=ce=ar}function Ie(Hn,ar){_e.add(ce*Hn-ae*ar),ae=Hn,ce=ar}function ze(){Ie(pe,se)}var De,Qe,Ve,$e,Oe=we,ke=n(73784),Re=0,We=0,Ue=0,Ze=0,Ye=0,Je=0,Me=0,Fe=0,je=0,tt={point:ot,lineStart:Ge,lineEnd:St,polygonStart:function(){tt.lineStart=Ft,tt.lineEnd=zt},polygonEnd:function(){tt.point=ot,tt.lineStart=Ge,tt.lineEnd=St},result:function(){var Hn=je?[Me/je,Fe/je]:Je?[Ze/Je,Ye/Je]:Ue?[Re/Ue,We/Ue]:[NaN,NaN];return Re=We=Ue=Ze=Ye=Je=Me=Fe=je=0,Hn}};function ot(Hn,ar){Re+=Hn,We+=ar,++Ue}function Ge(){tt.point=ht}function ht(Hn,ar){tt.point=pt,ot(Ve=Hn,$e=ar)}function pt(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,ot(Ve=Hn,$e=ar)}function St(){tt.point=ot}function Ft(){tt.point=Yt}function zt(){ln(De,Qe)}function Yt(Hn,ar){tt.point=ln,ot(De=Ve=Hn,Qe=$e=ar)}function ln(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,Me+=(Zr=$e*Hn-Ve*ar)*(Ve+Hn),Fe+=Zr*($e+ar),je+=3*Zr,ot(Ve=Hn,$e=ar)}var tn=tt;function Et(Hn){this._context=Hn}Et.prototype={_radius:4.5,pointRadius:function(Hn){return this._radius=Hn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._context.moveTo(Hn,ar),this._point=1;break;case 1:this._context.lineTo(Hn,ar);break;default:this._context.moveTo(Hn+this._radius,ar),this._context.arc(Hn,ar,this._radius,0,O.kD)}},result:C.c};var Ot,cn,Cn,Pn,Sn,vt=(0,_.c)(),xt={point:C.c,lineStart:function(){xt.point=st},lineEnd:function(){Ot&&bt(cn,Cn),xt.point=C.c},polygonStart:function(){Ot=!0},polygonEnd:function(){Ot=null},result:function(){var Hn=+vt;return vt.reset(),Hn}};function st(Hn,ar){xt.point=bt,cn=Pn=Hn,Cn=Sn=ar}function bt(Hn,ar){Pn-=Hn,Sn-=ar,vt.add((0,O._I)(Pn*Pn+Sn*Sn)),Pn=Hn,Sn=ar}var Vt=xt;function Dt(){this._string=[]}function it(Hn){return"m0,"+Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+-2*Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+2*Hn+"z"}function at(Hn,ar){var Dr,Sr,Zr=4.5;function go(oo){return oo&&(typeof Zr=="function"&&Sr.pointRadius(+Zr.apply(this,arguments)),(0,x.c)(oo,Dr(Sr))),Sr.result()}return go.area=function(oo){return(0,x.c)(oo,Dr(Oe)),Oe.result()},go.measure=function(oo){return(0,x.c)(oo,Dr(Vt)),Vt.result()},go.bounds=function(oo){return(0,x.c)(oo,Dr(ke.c)),ke.c.result()},go.centroid=function(oo){return(0,x.c)(oo,Dr(tn)),tn.result()},go.projection=function(oo){return arguments.length?(Dr=oo==null?(Hn=null,ye.c):(Hn=oo).stream,go):Hn},go.context=function(oo){return arguments.length?(Sr=oo==null?(ar=null,new Dt):new Et(ar=oo),typeof Zr!="function"&&Sr.pointRadius(Zr),go):ar},go.pointRadius=function(oo){return arguments.length?(Zr=typeof oo=="function"?oo:(Sr.pointRadius(+oo),+oo),go):Zr},go.projection(Hn).context(ar)}Dt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Hn){return(Hn=+Hn)!==this._radius&&(this._radius=Hn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._string.push("M",Hn,",",ar),this._point=1;break;case 1:this._string.push("L",Hn,",",ar);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Hn,",",ar,this._circle)}},result:function(){if(this._string.length){var Hn=this._string.join("");return this._string=[],Hn}return null}};var Bt=n(87952);function _t(Hn){var ar=0,Dr=O.pi/3,Sr=(0,Bt.U)(Hn),Zr=Sr(ar,Dr);return Zr.parallels=function(go){return arguments.length?Sr(ar=go[0]*O.qw,Dr=go[1]*O.qw):[ar*O.oh,Dr*O.oh]},Zr}function qt(Hn,ar){var Dr=(0,O.g$)(Hn),Sr=(Dr+(0,O.g$)(ar))/2;if((0,O.a2)(Sr)=.12&&Gt<.234&&Er>=-.425&&Er<-.214?io:Gt>=.166&&Gt<.234&&Er>=-.214&&Er<-.115?Do:oo).invert(Yn)},Rr.stream=function(Yn){return Hn&&ar===Yn?Hn:(ir=[oo.stream(ar=Yn),io.stream(Yn),Do.stream(Yn)],kr=ir.length,Hn={point:function(Er,Gt){for(var on=-1;++on0?io<-O.or+O.Gg&&(io=-O.or+O.Gg):io>O.or-O.Gg&&(io=O.or-O.Gg);var Do=Zr/(0,O.g3)(fr(io),Sr);return[Do*(0,O.g$)(Sr*oo),Zr-Do*(0,O.W8)(Sr*oo)]}return go.invert=function(oo,io){var Do=Zr-io,jn=(0,O.kq)(Sr)*(0,O._I)(oo*oo+Do*Do),Rr=(0,O.WE)(oo,(0,O.a2)(Do))*(0,O.kq)(Do);return Do*Sr<0&&(Rr-=O.pi*(0,O.kq)(oo)*(0,O.kq)(Do)),[Rr/Sr,2*(0,O.MQ)((0,O.g3)(Zr/jn,1/Sr))-O.or]},go}function Zn(){return _t(Un).scale(109.5).parallels([30,30])}wn.invert=function(Hn,ar){return[Hn,2*(0,O.MQ)((0,O.oN)(ar))-O.or]};var tr=n(69604);function Br(Hn,ar){var Dr=(0,O.W8)(Hn),Sr=Hn===ar?(0,O.g$)(Hn):(Dr-(0,O.W8)(ar))/(ar-Hn),Zr=Dr/Sr+Hn;if((0,O.a2)(Sr)2?Sr[2]+90:90]):[(Sr=Dr())[0],Sr[1],Sr[2]-90]},Dr([0,0,90]).scale(159.155)}_o.invert=(0,Fo.g)(function(Hn){return 2*(0,O.MQ)(Hn)}),Mo.invert=function(Hn,ar){return[-ar,2*(0,O.MQ)((0,O.oN)(Hn))-O.or]}},27284:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){var w=i[0]*u.qw,y=i[1]*u.qw,m=S[0]*u.qw,a=S[1]*u.qw,c=(0,u.W8)(y),h=(0,u.g$)(y),p=(0,u.W8)(a),v=(0,u.g$)(a),_=c*(0,u.W8)(w),O=c*(0,u.g$)(w),C=p*(0,u.W8)(m),x=p*(0,u.g$)(m),R=2*(0,u.qR)((0,u._I)((0,u.SD)(a-y)+c*p*(0,u.SD)(m-w))),M=(0,u.g$)(R),T=R?function(P){var A=(0,u.g$)(P*=R)/M,L=(0,u.g$)(R-P)/M,D=L*_+A*C,k=L*O+A*x,I=L*h+A*v;return[(0,u.WE)(k,D)*u.oh,(0,u.WE)(I,(0,u._I)(D*D+k*k))*u.oh]}:function(){return[w*u.oh,y*u.oh]};return T.distance=R,T}},64528:function(d,s,n){n.d(s,{Gg:function(){return u},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return p},Yz:function(){return C},_I:function(){return T},a2:function(){return c},a6:function(){return P},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return A},oN:function(){return O},oh:function(){return m},or:function(){return S},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var u=1e-6,b=1e-12,i=Math.PI,S=i/2,w=i/4,y=2*i,m=180/i,a=i/180,c=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,_=Math.ceil,O=Math.exp,C=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,P=Math.tan;function A(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?S:k<-1?-S:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,s,n){function u(){}n.d(s,{c:function(){return u}})},73784:function(d,s,n){var u=n(70932),b=1/0,i=b,S=-b,w=S,y={point:function(m,a){mS&&(S=m),aw&&(w=a)},lineStart:u.c,lineEnd:u.c,polygonStart:u.c,polygonEnd:u.c,result:function(){var m=[[b,i],[S,w]];return S=w=-(i=b=1/0),m}};s.c=y},41860:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){return(0,u.a2)(i[0]-S[0])=0?1:-1,te=X*U,Z=te>i.pi,K=L*Q;if(S.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=Z?U+X*i.kD:U,Z^P>=c^z>=c){var re=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(re);var q=(0,b.CW)(v,re);(0,b.cJ)(q);var Y=(Z^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(re[0]||re[1]))&&(O+=Z^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+Z,ae=Q+K,ce=j+re,de=(0,y._I)(se*se+ae*ae+ce*ce),ye=(0,y.qR)(ce/=de),ve=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/pe-.5)>.3||$*Z+Q*K+j*re2?Pe[2]%360*y.qw:0,we()):[re*y.oh,q*y.oh,Y*y.oh]},ve.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,we()):ee*y.oh},ve.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,we()):me<0},ve.reflectY=function(Pe){return arguments.length?(pe=Pe?-1:1,we()):pe<0},ve.precision=function(Pe){return arguments.length?(I=_(z,ye=Pe*Pe),Te()):(0,y._I)(ye)},ve.fitExtent=function(Pe,Ie){return(0,c.QX)(ve,Pe,Ie)},ve.fitSize=function(Pe,Ie){return(0,c.UV)(ve,Pe,Ie)},ve.fitWidth=function(Pe,Ie){return(0,c.Qx)(ve,Pe,Ie)},ve.fitHeight=function(Pe,Ie){return(0,c.OW)(ve,Pe,Ie)},function(){return P=T.apply(this,arguments),ve.invert=P.invert&&_e,we()}}},47984:function(d,s,n){n.d(s,{c:function(){return S},g:function(){return i}});var u=n(87952),b=n(64528);function i(w,y){var m=y*y,a=m*m;return[w*(.8707-.131979*m+a*(a*(.003971*m-.001529*a)-.013791)),y*(1.007226+m*(.015085+a*(.028874*m-.044475-.005916*a)))]}function S(){return(0,u.c)(i).scale(175.295)}i.invert=function(w,y){var m,a=y,c=25;do{var h=a*a,p=h*h;a-=m=(a*(1.007226+h*(.015085+p*(.028874*h-.044475-.005916*p)))-y)/(1.007226+h*(.045255+p*(.259866*h-.311325-.06507600000000001*p)))}while((0,b.a2)(m)>b.Gg&&--c>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,s,n){n.d(s,{c:function(){return w},t:function(){return S}});var u=n(64528),b=n(62280),i=n(87952);function S(y,m){return[(0,u.W8)(m)*(0,u.g$)(y),(0,u.g$)(m)]}function w(){return(0,i.c)(S).scale(249.5).clipAngle(90+u.Gg)}S.invert=(0,b.g)(u.qR)},92992:function(d,s,n){n.d(s,{O:function(){return S},c:function(){return a}});var u=n(68120),b=n(64528);function i(c,h){return[(0,b.a2)(c)>b.pi?c+Math.round(-c/b.kD)*b.kD:c,h]}function S(c,h,p){return(c%=b.kD)?h||p?(0,u.c)(y(c),m(h,p)):y(c):h||p?m(h,p):i}function w(c){return function(h,p){return[(h+=c)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,p]}}function y(c){var h=w(c);return h.invert=w(-c),h}function m(c,h){var p=(0,b.W8)(c),v=(0,b.g$)(c),_=(0,b.W8)(h),O=(0,b.g$)(h);function C(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*p+T*v;return[(0,b.WE)(P*_-L*O,T*p-A*v),(0,b.qR)(L*_+P*O)]}return C.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*_-P*O;return[(0,b.WE)(P*_+A*O,T*p+L*v),(0,b.qR)(L*p-T*v)]},C}function a(c){function h(p){return(p=c(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p}return c=S(c[0]*b.qw,c[1]*b.qw,c.length>2?c[2]*b.qw:0),h.invert=function(p){return(p=c.invert(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p},h}i.invert=i},16016:function(d,s,n){function u(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}n.d(s,{c:function(){return y}});var b={Feature:function(m,a){u(m.geometry,a)},FeatureCollection:function(m,a){for(var c=m.features,h=-1,p=c.length;++h=0;)Re+=We[Ue].value;else Re=1;ke.value=Re}function y(ke,Re){var We,Ue,Ze,Ye,Je,Me=new h(ke),Fe=+ke.value&&(Me.value=ke.value),je=[Me];for(Re==null&&(Re=m);We=je.pop();)if(Fe&&(We.value=+We.data.value),(Ze=Re(We.data))&&(Je=Ze.length))for(We.children=new Array(Je),Ye=Je-1;Ye>=0;--Ye)je.push(Ue=We.children[Ye]=new h(Ze[Ye])),Ue.parent=We,Ue.depth=We.depth+1;return Me.eachBefore(c)}function m(ke){return ke.children}function a(ke){ke.data=ke.data.data}function c(ke){var Re=0;do ke.height=Re;while((ke=ke.parent)&&ke.height<++Re)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(s),n.d(s,{cluster:function(){return S},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return Qe},treemapBinary:function(){return Ve},treemapDice:function(){return re},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Re,We,Ue,Ze,Ye=this,Je=[Ye];do for(Re=Je.reverse(),Je=[];Ye=Re.pop();)if(ke(Ye),We=Ye.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Re[We]);return this},sum:function(ke){return this.eachAfter(function(Re){for(var We=+ke(Re.data)||0,Ue=Re.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Re.value=We})},sort:function(ke){return this.eachBefore(function(Re){Re.children&&Re.children.sort(ke)})},path:function(ke){for(var Re=this,We=function(Ye,Je){if(Ye===Je)return Ye;var Me=Ye.ancestors(),Fe=Je.ancestors(),je=null;for(Ye=Me.pop(),Je=Fe.pop();Ye===Je;)je=Ye,Ye=Me.pop(),Je=Fe.pop();return je}(Re,ke),Ue=[Re];Re!==We;)Re=Re.parent,Ue.push(Re);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Re=[ke];ke=ke.parent;)Re.push(ke);return Re},descendants:function(){var ke=[];return this.each(function(Re){ke.push(Re)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Re){Re.children||ke.push(Re)}),ke},links:function(){var ke=this,Re=[];return ke.each(function(We){We!==ke&&Re.push({source:We.parent,target:We})}),Re},copy:function(){return y(this).eachBefore(a)}};var p=Array.prototype.slice;function v(ke){for(var Re,We,Ue=0,Ze=(ke=function(Je){for(var Me,Fe,je=Je.length;je;)Fe=Math.random()*je--|0,Me=Je[je],Je[je]=Je[Fe],Je[Fe]=Me;return Je}(p.call(ke))).length,Ye=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Re){for(var We=0;We(Je*=Je)?(Ue=(je+Je-Ze)/(2*je),Ye=Math.sqrt(Math.max(0,Je/je-Ue*Ue)),We.x=ke.x-Ue*Me-Ye*Fe,We.y=ke.y-Ue*Fe+Ye*Me):(Ue=(je+Ze-Je)/(2*je),Ye=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Re.x+Ue*Me-Ye*Fe,We.y=Re.y+Ue*Fe+Ye*Me)):(We.x=Re.x+We.r,We.y=Re.y)}function A(ke,Re){var We=ke.r+Re.r-1e-6,Ue=Re.x-ke.x,Ze=Re.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Re=ke._,We=ke.next._,Ue=Re.r+We.r,Ze=(Re.x*We.r+We.x*Re.r)/Ue,Ye=(Re.y*We.r+We.y*Re.r)/Ue;return Ze*Ze+Ye*Ye}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Re,We,Ue,Ze,Ye,Je,Me,Fe,je,tt,ot;if((Re=ke[0]).x=0,Re.y=0,!(Ze>1))return Re.r;if(We=ke[1],Re.x=-We.r,We.x=Re.r,We.y=0,!(Ze>2))return Re.r+We.r;P(We,Re,Ue=ke[2]),Re=new D(Re),We=new D(We),Ue=new D(Ue),Re.next=Ue.previous=We,We.next=Re.previous=Ue,Ue.next=We.previous=Re;e:for(Me=3;Me0)throw new Error("cycle");return Je}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Re=z(Ue),We):Re},We}function ce(ke,Re){return ke.parent===Re.parent?1:2}function de(ke){var Re=ke.children;return Re?Re[0]:ke.t}function ye(ke){var Re=ke.children;return Re?Re[Re.length-1]:ke.t}function ve(ke,Re,We){var Ue=We/(Re.i-ke.i);Re.c-=Ue,Re.s+=We,ke.c+=Ue,Re.z+=We,Re.m+=We}function _e(ke,Re,We){return ke.a.parent===Re.parent?ke.a:We}function we(ke,Re){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Re}function Te(){var ke=ce,Re=1,We=1,Ue=null;function Ze(Fe){var je=function(zt){for(var Yt,ln,tn,Et,Ot,cn=new we(zt,0),Cn=[cn];Yt=Cn.pop();)if(tn=Yt._.children)for(Yt.children=new Array(Ot=tn.length),Et=Ot-1;Et>=0;--Et)Cn.push(ln=Yt.children[Et]=new we(tn[Et],Et)),ln.parent=Yt;return(cn.parent=new we(null,0)).children=[cn],cn}(Fe);if(je.eachAfter(Ye),je.parent.m=-je.z,je.eachBefore(Je),Ue)Fe.eachBefore(Me);else{var tt=Fe,ot=Fe,Ge=Fe;Fe.eachBefore(function(zt){zt.xot.x&&(ot=zt),zt.depth>Ge.depth&&(Ge=zt)});var ht=tt===ot?1:ke(tt,ot)/2,pt=ht-tt.x,St=Re/(ot.x+ht+pt),Ft=We/(Ge.depth||1);Fe.eachBefore(function(zt){zt.x=(zt.x+pt)*St,zt.y=zt.depth*Ft})}return Fe}function Ye(Fe){var je=Fe.children,tt=Fe.parent.children,ot=Fe.i?tt[Fe.i-1]:null;if(je){(function(ht){for(var pt,St=0,Ft=0,zt=ht.children,Yt=zt.length;--Yt>=0;)(pt=zt[Yt]).z+=St,pt.m+=St,St+=pt.s+(Ft+=pt.c)})(Fe);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Fe.z=ot.z+ke(Fe._,ot._),Fe.m=Fe.z-Ge):Fe.z=Ge}else ot&&(Fe.z=ot.z+ke(Fe._,ot._));Fe.parent.A=function(ht,pt,St){if(pt){for(var Ft,zt=ht,Yt=ht,ln=pt,tn=zt.parent.children[0],Et=zt.m,Ot=Yt.m,cn=ln.m,Cn=tn.m;ln=ye(ln),zt=de(zt),ln&&zt;)tn=de(tn),(Yt=ye(Yt)).a=ht,(Ft=ln.z+cn-zt.z-Et+ke(ln._,zt._))>0&&(ve(_e(ln,ht,St),ht,Ft),Et+=Ft,Ot+=Ft),cn+=ln.m,Et+=zt.m,Cn+=tn.m,Ot+=Yt.m;ln&&!ye(Yt)&&(Yt.t=ln,Yt.m+=cn-Ot),zt&&!de(tn)&&(tn.t=zt,tn.m+=Et-Cn,St=ht)}return St}(Fe,ot,Fe.parent.A||tt[0])}function Je(Fe){Fe._.x=Fe.z+Fe.parent.m,Fe.m+=Fe.parent.m}function Me(Fe){Fe.x*=Re,Fe.y=Fe.depth*We}return Ze.separation=function(Fe){return arguments.length?(ke=Fe,Ze):ke},Ze.size=function(Fe){return arguments.length?(Ue=!1,Re=+Fe[0],We=+Fe[1],Ze):Ue?null:[Re,We]},Ze.nodeSize=function(Fe){return arguments.length?(Ue=!0,Re=+Fe[0],We=+Fe[1],Ze):Ue?[Re,We]:null},Ze}function Pe(ke,Re,We,Ue,Ze){for(var Ye,Je=ke.children,Me=-1,Fe=Je.length,je=ke.value&&(Ze-We)/ke.value;++MeGe&&(Ge=Me),Ft=tt*tt*St,(ht=Math.max(Ge/Ft,Ft/ot))>pt){tt-=Me;break}pt=ht}zt.push(Je={value:tt,dice:Fe1?Ue:1)},We}(Ie);function Qe(){var ke=De,Re=!1,We=1,Ue=1,Ze=[0],Ye=$,Je=$,Me=$,Fe=$,je=$;function tt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Re&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,St=Ge.y0+ht,Ft=Ge.x1-ht,zt=Ge.y1-ht;Ft=Ge-1){var Yt=Me[ot];return Yt.x0=pt,Yt.y0=St,Yt.x1=Ft,void(Yt.y1=zt)}for(var ln=je[ot],tn=ht/2+ln,Et=ot+1,Ot=Ge-1;Et>>1;je[cn]zt-St){var Sn=(pt*Pn+Ft*Cn)/ht;tt(ot,Et,Cn,pt,St,Sn,zt),tt(Et,Ge,Pn,Sn,St,Ft,zt)}else{var vt=(St*Pn+zt*Cn)/ht;tt(ot,Et,Cn,pt,St,Ft,vt),tt(Et,Ge,Pn,pt,vt,Ft,zt)}})(0,Fe,ke.value,Re,We,Ue,Ze)}function $e(ke,Re,We,Ue,Ze){(1&ke.depth?Pe:re)(ke,Re,We,Ue,Ze)}var Oe=function ke(Re){function We(Ue,Ze,Ye,Je,Me){if((Fe=Ue._squarify)&&Fe.ratio===Re)for(var Fe,je,tt,ot,Ge,ht=-1,pt=Fe.length,St=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,s,n){n.d(s,{ak:function(){return C}});var u=Math.PI,b=2*u,i=1e-6,S=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,P,A){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+P)+","+(this._y1=+A)},arcTo:function(x,R,M,T,P){x=+x,R=+R,M=+M,T=+T,P=+P;var A=this._x1,L=this._y1,D=M-x,k=T-R,I=A-x,z=L-R,$=I*I+z*z;if(P<0)throw new Error("negative radius: "+P);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&P){var Q=M-A,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),Z=Math.sqrt($),K=P*Math.tan((u-Math.acos((U+$-X)/(2*te*Z)))/2),re=K/Z,q=K/te;Math.abs(re-1)>i&&(this._+="L"+(x+re*I)+","+(R+re*z)),this._+="A"+P+","+P+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,P,A){x=+x,R=+R,A=!!A;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^A,$=A?T-P:P-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>S?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=u)+","+z+","+(this._x1=x+M*Math.cos(P))+","+(this._y1=R+M*Math.sin(P))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var m=y,a=Array.prototype.slice;function c(x){return function(){return x}}function h(x){return x[0]}function p(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function O(x,R,M,T,P){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,P,T,P)}function C(){return function(x){var R=v,M=_,T=h,P=p,A=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(A||(A=D=m()),x(A,+T.apply(this,(k[0]=I,k)),+P.apply(this,k),+T.apply(this,(k[0]=z,k)),+P.apply(this,k)),D)return A=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:c(+D),L):T},L.y=function(D){return arguments.length?(P=typeof D=="function"?D:c(+D),L):P},L.context=function(D){return arguments.length?(A=D??null,L):A},L}(O)}},94336:function(d,s,n){n.d(s,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var u=n(8208),b=n(58931),i=n(46192),S=n(68936),w=n(32171),y=n(53528);function m(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L);return Ot.setFullYear(Et.y),Ot}return new Date(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L)}function a(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(Date.UTC(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L));return Ot.setUTCFullYear(Et.y),Ot}return new Date(Date.UTC(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L))}function c(Et,Ot,cn){return{y:Et,m:Ot,d:cn,H:0,M:0,S:0,L:0}}function h(Et){var Ot=Et.dateTime,cn=Et.date,Cn=Et.time,Pn=Et.periods,Sn=Et.days,vt=Et.shortDays,xt=Et.months,st=Et.shortMonths,bt=P(Pn),Vt=A(Pn),Dt=P(Sn),it=A(Sn),at=P(vt),Bt=A(vt),_t=P(xt),qt=A(xt),en=P(st),Jt=A(st),Zt={a:function(An){return vt[An.getDay()]},A:function(An){return Sn[An.getDay()]},b:function(An){return st[An.getMonth()]},B:function(An){return xt[An.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ye,L:ve,m:we,M:Te,p:function(An){return Pn[+(An.getHours()>=12)]},q:function(An){return 1+~~(An.getMonth()/3)},Q:ln,s:tn,S:Pe,u:Ie,U:ze,V:De,w:Qe,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":Yt},Nt={a:function(An){return vt[An.getUTCDay()]},A:function(An){return Sn[An.getUTCDay()]},b:function(An){return st[An.getUTCMonth()]},B:function(An){return xt[An.getUTCMonth()]},c:null,d:Re,e:Re,f:Je,H:We,I:Ue,j:Ze,L:Ye,m:Me,M:Fe,p:function(An){return Pn[+(An.getUTCHours()>=12)]},q:function(An){return 1+~~(An.getUTCMonth()/3)},Q:ln,s:tn,S:je,u:tt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:St,Y:Ft,Z:zt,"%":Yt},sn={a:function(An,Kn,fr){var Un=at.exec(Kn.slice(fr));return Un?(An.w=Bt[Un[0].toLowerCase()],fr+Un[0].length):-1},A:function(An,Kn,fr){var Un=Dt.exec(Kn.slice(fr));return Un?(An.w=it[Un[0].toLowerCase()],fr+Un[0].length):-1},b:function(An,Kn,fr){var Un=en.exec(Kn.slice(fr));return Un?(An.m=Jt[Un[0].toLowerCase()],fr+Un[0].length):-1},B:function(An,Kn,fr){var Un=_t.exec(Kn.slice(fr));return Un?(An.m=qt[Un[0].toLowerCase()],fr+Un[0].length):-1},c:function(An,Kn,fr){return wn(An,Ot,Kn,fr)},d:te,e:te,f:ee,H:K,I:K,j:Z,L:Y,m:X,M:re,p:function(An,Kn,fr){var Un=bt.exec(Kn.slice(fr));return Un?(An.p=Vt[Un[0].toLowerCase()],fr+Un[0].length):-1},q:U,Q:pe,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(An,Kn,fr){return wn(An,cn,Kn,fr)},X:function(An,Kn,fr){return wn(An,Cn,Kn,fr)},y:Q,Y:$,Z:j,"%":me};function rn(An,Kn){return function(fr){var Un,Zn,tr,Br=[],$r=-1,vr=0,qn=An.length;for(fr instanceof Date||(fr=new Date(+fr));++$r53)return null;"w"in tr||(tr.w=1),"Z"in tr?(Zn=(Un=a(c(tr.y,0,1))).getUTCDay(),Un=Zn>4||Zn===0?u.ot.ceil(Un):(0,u.ot)(Un),Un=b.c.offset(Un,7*(tr.V-1)),tr.y=Un.getUTCFullYear(),tr.m=Un.getUTCMonth(),tr.d=Un.getUTCDate()+(tr.w+6)%7):(Zn=(Un=m(c(tr.y,0,1))).getDay(),Un=Zn>4||Zn===0?i.qT.ceil(Un):(0,i.qT)(Un),Un=S.c.offset(Un,7*(tr.V-1)),tr.y=Un.getFullYear(),tr.m=Un.getMonth(),tr.d=Un.getDate()+(tr.w+6)%7)}else("W"in tr||"U"in tr)&&("w"in tr||(tr.w="u"in tr?tr.u%7:"W"in tr?1:0),Zn="Z"in tr?a(c(tr.y,0,1)).getUTCDay():m(c(tr.y,0,1)).getDay(),tr.m=0,tr.d="W"in tr?(tr.w+6)%7+7*tr.W-(Zn+5)%7:tr.w+7*tr.U-(Zn+6)%7);return"Z"in tr?(tr.H+=tr.Z/100|0,tr.M+=tr.Z%100,a(tr)):m(tr)}}function wn(An,Kn,fr,Un){for(var Zn,tr,Br=0,$r=Kn.length,vr=fr.length;Br<$r;){if(Un>=vr)return-1;if((Zn=Kn.charCodeAt(Br++))===37){if(Zn=Kn.charAt(Br++),!(tr=sn[Zn in O?Kn.charAt(Br++):Zn])||(Un=tr(An,fr,Un))<0)return-1}else if(Zn!=fr.charCodeAt(Un++))return-1}return Un}return Zt.x=rn(cn,Zt),Zt.X=rn(Cn,Zt),Zt.c=rn(Ot,Zt),Nt.x=rn(cn,Nt),Nt.X=rn(Cn,Nt),Nt.c=rn(Ot,Nt),{format:function(An){var Kn=rn(An+="",Zt);return Kn.toString=function(){return An},Kn},parse:function(An){var Kn=_n(An+="",!1);return Kn.toString=function(){return An},Kn},utcFormat:function(An){var Kn=rn(An+="",Nt);return Kn.toString=function(){return An},Kn},utcParse:function(An){var Kn=_n(An+="",!0);return Kn.toString=function(){return An},Kn}}}var p,v,_,O={"-":"",_:" ",0:"0"},C=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Et,Ot,cn){var Cn=Et<0?"-":"",Pn=(Cn?-Et:Et)+"",Sn=Pn.length;return Cn+(Sn68?1900:2e3),cn+Cn[0].length):-1}function j(Et,Ot,cn){var Cn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ot.slice(cn,cn+6));return Cn?(Et.Z=Cn[1]?0:-(Cn[2]+(Cn[3]||"00")),cn+Cn[0].length):-1}function U(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+1));return Cn?(Et.q=3*Cn[0]-3,cn+Cn[0].length):-1}function X(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.m=Cn[0]-1,cn+Cn[0].length):-1}function te(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.d=+Cn[0],cn+Cn[0].length):-1}function Z(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.m=0,Et.d=+Cn[0],cn+Cn[0].length):-1}function K(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.H=+Cn[0],cn+Cn[0].length):-1}function re(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.M=+Cn[0],cn+Cn[0].length):-1}function q(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.S=+Cn[0],cn+Cn[0].length):-1}function Y(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.L=+Cn[0],cn+Cn[0].length):-1}function ee(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+6));return Cn?(Et.L=Math.floor(Cn[0]/1e3),cn+Cn[0].length):-1}function me(Et,Ot,cn){var Cn=x.exec(Ot.slice(cn,cn+1));return Cn?cn+Cn[0].length:-1}function pe(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.Q=+Cn[0],cn+Cn[0].length):-1}function se(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.s=+Cn[0],cn+Cn[0].length):-1}function ae(Et,Ot){return M(Et.getDate(),Ot,2)}function ce(Et,Ot){return M(Et.getHours(),Ot,2)}function de(Et,Ot){return M(Et.getHours()%12||12,Ot,2)}function ye(Et,Ot){return M(1+S.c.count((0,w.c)(Et),Et),Ot,3)}function ve(Et,Ot){return M(Et.getMilliseconds(),Ot,3)}function _e(Et,Ot){return ve(Et,Ot)+"000"}function we(Et,Ot){return M(Et.getMonth()+1,Ot,2)}function Te(Et,Ot){return M(Et.getMinutes(),Ot,2)}function Pe(Et,Ot){return M(Et.getSeconds(),Ot,2)}function Ie(Et){var Ot=Et.getDay();return Ot===0?7:Ot}function ze(Et,Ot){return M(i.uU.count((0,w.c)(Et)-1,Et),Ot,2)}function De(Et,Ot){var cn=Et.getDay();return Et=cn>=4||cn===0?(0,i.kD)(Et):i.kD.ceil(Et),M(i.kD.count((0,w.c)(Et),Et)+((0,w.c)(Et).getDay()===4),Ot,2)}function Qe(Et){return Et.getDay()}function Ve(Et,Ot){return M(i.qT.count((0,w.c)(Et)-1,Et),Ot,2)}function $e(Et,Ot){return M(Et.getFullYear()%100,Ot,2)}function Oe(Et,Ot){return M(Et.getFullYear()%1e4,Ot,4)}function ke(Et){var Ot=Et.getTimezoneOffset();return(Ot>0?"-":(Ot*=-1,"+"))+M(Ot/60|0,"0",2)+M(Ot%60,"0",2)}function Re(Et,Ot){return M(Et.getUTCDate(),Ot,2)}function We(Et,Ot){return M(Et.getUTCHours(),Ot,2)}function Ue(Et,Ot){return M(Et.getUTCHours()%12||12,Ot,2)}function Ze(Et,Ot){return M(1+b.c.count((0,y.c)(Et),Et),Ot,3)}function Ye(Et,Ot){return M(Et.getUTCMilliseconds(),Ot,3)}function Je(Et,Ot){return Ye(Et,Ot)+"000"}function Me(Et,Ot){return M(Et.getUTCMonth()+1,Ot,2)}function Fe(Et,Ot){return M(Et.getUTCMinutes(),Ot,2)}function je(Et,Ot){return M(Et.getUTCSeconds(),Ot,2)}function tt(Et){var Ot=Et.getUTCDay();return Ot===0?7:Ot}function ot(Et,Ot){return M(u.EV.count((0,y.c)(Et)-1,Et),Ot,2)}function Ge(Et,Ot){var cn=Et.getUTCDay();return Et=cn>=4||cn===0?(0,u.yA)(Et):u.yA.ceil(Et),M(u.yA.count((0,y.c)(Et),Et)+((0,y.c)(Et).getUTCDay()===4),Ot,2)}function ht(Et){return Et.getUTCDay()}function pt(Et,Ot){return M(u.ot.count((0,y.c)(Et)-1,Et),Ot,2)}function St(Et,Ot){return M(Et.getUTCFullYear()%100,Ot,2)}function Ft(Et,Ot){return M(Et.getUTCFullYear()%1e4,Ot,4)}function zt(){return"+0000"}function Yt(){return"%"}function ln(Et){return+Et}function tn(Et){return Math.floor(+Et/1e3)}p=h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),v=p.format,p.parse,_=p.utcFormat,p.utcParse},68936:function(d,s,n){n.d(s,{m:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});s.c=i;var S=i.range},69792:function(d,s,n){n.d(s,{KK:function(){return w},SK:function(){return S},cg:function(){return i},iy:function(){return b},yc:function(){return u}});var u=1e3,b=6e4,i=36e5,S=864e5,w=6048e5},73220:function(d,s,n){n.r(s),n.d(s,{timeDay:function(){return C.c},timeDays:function(){return C.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return O},timeInterval:function(){return u.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return S},timeMinute:function(){return h},timeMinutes:function(){return p},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return P.c},timeYears:function(){return P.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return S},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var u=n(81628),b=(0,u.c)(function(){},function(Z,K){Z.setTime(+Z+K)},function(Z,K){return K-Z});b.every=function(Z){return Z=Math.floor(Z),isFinite(Z)&&Z>0?Z>1?(0,u.c)(function(K){K.setTime(Math.floor(K/Z)*Z)},function(K,re){K.setTime(+K+re*Z)},function(K,re){return(re-K)/Z}):b:null};var i=b,S=b.range,w=n(69792),y=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds())},function(Z,K){Z.setTime(+Z+K*w.yc)},function(Z,K){return(K-Z)/w.yc},function(Z){return Z.getUTCSeconds()}),m=y,a=y.range,c=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getMinutes()}),h=c,p=c.range,v=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc-Z.getMinutes()*w.iy)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getHours()}),_=v,O=v.range,C=n(68936),x=n(46192),R=(0,u.c)(function(Z){Z.setDate(1),Z.setHours(0,0,0,0)},function(Z,K){Z.setMonth(Z.getMonth()+K)},function(Z,K){return K.getMonth()-Z.getMonth()+12*(K.getFullYear()-Z.getFullYear())},function(Z){return Z.getMonth()}),M=R,T=R.range,P=n(32171),A=(0,u.c)(function(Z){Z.setUTCSeconds(0,0)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getUTCMinutes()}),L=A,D=A.range,k=(0,u.c)(function(Z){Z.setUTCMinutes(0,0,0)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,u.c)(function(Z){Z.setUTCDate(1),Z.setUTCHours(0,0,0,0)},function(Z,K){Z.setUTCMonth(Z.getUTCMonth()+K)},function(Z,K){return K.getUTCMonth()-Z.getUTCMonth()+12*(K.getUTCFullYear()-Z.getUTCFullYear())},function(Z){return Z.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,s,n){n.d(s,{c:function(){return i}});var u=new Date,b=new Date;function i(S,w,y,m){function a(c){return S(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=function(c){return S(c=new Date(+c)),c},a.ceil=function(c){return S(c=new Date(c-1)),w(c,1),S(c),c},a.round=function(c){var h=a(c),p=a.ceil(c);return c-h0))return _;do _.push(v=new Date(+c)),w(c,p),S(c);while(v=h)for(;S(h),!c(h);)h.setTime(h-1)},function(h,p){if(h>=h)if(p<0)for(;++p<=0;)for(;w(h,-1),!c(h););else for(;--p>=0;)for(;w(h,1),!c(h););})},y&&(a.count=function(c,h){return u.setTime(+c),b.setTime(+h),S(u),S(b),Math.floor(y(u,b))},a.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?a.filter(m?function(h){return m(h)%c==0}:function(h){return a.count(0,h)%c==0}):a:null}),a}},58931:function(d,s,n){n.d(s,{o:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});s.c=i;var S=i.range},8208:function(d,s,n){n.d(s,{Ad:function(){return h},EV:function(){return S},K8:function(){return R},W_:function(){return O},Wq:function(){return p},_6:function(){return m},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return C},od:function(){return c},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,P){T.setUTCDate(T.getUTCDate()+7*P)},function(T,P){return(P-T)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},53528:function(d,s,n){n.d(s,{i:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,w){S.setUTCFullYear(S.getUTCFullYear()+w)},function(S,w){return w.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/S)*S),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*S)}):null},s.c=b;var i=b.range},46192:function(d,s,n){n.d(s,{Ab:function(){return p},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return C},eg:function(){return m},iB:function(){return c},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return O},uU:function(){return S}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,P){T.setDate(T.getDate()+7*P)},function(T,P){return(P-T-(P.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},32171:function(d,s,n){n.d(s,{Q:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,w){S.setFullYear(S.getFullYear()+w)},function(S,w){return w.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/S)*S),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*S)}):null},s.c=b;var i=b.range},64348:function(d,s,n){var u=n(39640)(),b=n(53664),i=u&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var S=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(m,a,c){if(!m||typeof m!="object"&&typeof m!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],O=!!y&&y(m,a);if(i)i(m,a,{configurable:v===null&&O?O.configurable:!v,enumerable:h===null&&O?O.enumerable:!h,value:c,writable:p===null&&O?O.writable:!p});else{if(!_&&(h||p||v))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");m[a]=c}}},81288:function(d,s,n){var u=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,S=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),m=w&&y,a=function(h,p,v,_){if(p in h){if(_===!0){if(h[p]===v)return}else if(typeof(O=_)!="function"||i.call(O)!=="[object Function]"||!_())return}var O;m?w(h,p,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[p]=v},c=function(h,p){var v=arguments.length>2?arguments[2]:{},_=u(p);b&&(_=S.call(_,Object.getOwnPropertySymbols(p)));for(var O=0;O<_.length;O+=1)a(h,_[O],p[_[O]],v[_[O]])};c.supportsDescriptors=!!m,d.exports=c},31264:function(d){d.exports=function(){for(var s=0;sm*a){var _=(v-p)/m;y[h]=1e3*_}}return y}function b(i){for(var S=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),m=i[0];m0)return function(b,i){var S,w;for(S=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),Z>X&&(X=Z);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=A(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=A(U,I[U],I[U+1],X);return X&&C(X,X.next)&&(L(X),X=X.next),X}function u(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!C(Q,Q.next)&&O(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(re,q,Y,ee){var me=re;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==re);me.prevZ.nextZ=null,me.prevZ=null,function(pe){var se,ae,ce,de,ye,ve,_e,we,Te=1;do{for(ae=pe,pe=null,ye=null,ve=0;ae;){for(ve++,ce=ae,_e=0,se=0;se0||we>0&&ce;)_e!==0&&(we===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,we--),ye?ye.nextZ=de:pe=de,de.prevZ=ye,ye=de;ae=ce}ye.nextZ=null,Te*=2}while(ve>1)}(me)}(I,Q,j,U);for(var te,Z,K=I;I.prev!==I.next;)if(te=I.prev,Z=I.next,U?S(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(Z.i/$),L(I),I=Z.next,K=Z.next;else if((I=Z)===K){X?X===1?b(I=w(u(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(u(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(O(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&O(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function S(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(O(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,re=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,Z,z,$,Q),Y=h(K,re,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!C(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return u(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var Z=P(X,te);return X=u(X,X.next),Z=u(Z,Z.next),b(X,z,$,Q,j,U),void b(Z,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function m(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,Z=Q.y,K=-1/0;do{if(Z<=X.y&&Z>=X.next.y&&X.next.y!==X.y){var re=X.x+(Z-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(re<=te&&re>K){if(K=re,re===te){if(Z===X.y)return X;if(Z===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(ZU.x||X.x===U.x&&c(U,X)))&&(U=X,pe=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=P(z,I);u(z,z.next),u($,$.next)}}function c(I,z){return O(I.prev,I,z.prev)<0&&O(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function p(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(O(I.prev,I,z.prev)||O(I,z.prev,z))||C(I,z)&&O(I.prev,I,I.next)>0&&O(z.prev,z,z.next)>0)}function O(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function C(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(O(I,z,$)),U=M(O(I,z,Q)),X=M(O($,Q,I)),te=M(O($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return O(I.prev,I,I.next)<0?O(I,z,I.next)>=0&&O(I,I.prev,z)>=0:O(I,z,I.prev)<0||O(I,I.next,z)<0}function P(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function A(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=s,d.exports.default=s,s.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,Z=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,s,n){var u=n(78484);d.exports=function(b,i){var S,w=[],y=[],m=[],a={},c=[];function h(T){m[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(P){delete a[T][P],m[P]&&h(P)})}function p(T){var P,A,L=!1;for(y.push(T),m[T]=!0,P=0;P=$})})(T);for(var P,A=u(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++C]),D=k?h.call(k,I,D,x):D,O?(p.value=D,v(R,x,p)):R[x]=D,++x;M=x}}if(M===void 0)for(M=S(_.length),O&&(R=new O(M)),C=0;C0?1:-1}},96936:function(d,s,n){var u=n(85608),b=Math.abs,i=Math.floor;d.exports=function(S){return isNaN(S)?0:(S=Number(S))!==0&&isFinite(S)?u(S)*i(b(S)):S}},81304:function(d,s,n){var u=n(96936),b=Math.max;d.exports=function(i){return b(0,u(i))}},14428:function(d,s,n){var u=n(34044),b=n(9252),i=Function.prototype.bind,S=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(m,a){return function(c,h){var p,v=arguments[2],_=arguments[3];return c=Object(b(c)),u(h),p=w(c),_&&p.sort(typeof _=="function"?i.call(_,c):void 0),typeof m!="function"&&(m=p[m]),S.call(m,p,function(O,C){return y.call(c,O)?S.call(h,v,c[O],O,c,C):a})}}},38452:function(d,s,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var s,n=Object.assign;return typeof n=="function"&&(n(s={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),s.foo+s.bar+s.trzy==="razdwatrzy")}},81892:function(d,s,n){var u=n(54768),b=n(9252),i=Math.max;d.exports=function(S,w){var y,m,a,c=i(arguments.length,2);for(S=Object(b(S)),a=function(h){try{S[h]=w[h]}catch(p){y||(y=p)}},m=1;m-1}},29768:function(d){var s=Object.prototype.toString,n=s.call("");d.exports=function(u){return typeof u=="string"||u&&typeof u=="object"&&(u instanceof String||s.call(u)===n)||!1}},82252:function(d){var s=Object.create(null),n=Math.random;d.exports=function(){var u;do u=n().toString(36).slice(2);while(s[u]);return u}},52104:function(d,s,n){var u,b=n(69932),i=n(71056),S=n(21092),w=n(92664),y=n(85512),m=Object.defineProperty;u=d.exports=function(a,c){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");y.call(this,a),c=c?i.call(c,"key+value")?"key+value":i.call(c,"key")?"key":"value":"value",m(this,"__kind__",S("",c))},b&&b(u,y),delete u.prototype.constructor,u.prototype=Object.create(y.prototype,{_resolve:S(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),m(u.prototype,w.toStringTag,S("c","Array Iterator"))},76024:function(d,s,n){var u=n(60948),b=n(34044),i=n(29768),S=n(76252),w=Array.isArray,y=Function.prototype.call,m=Array.prototype.some;d.exports=function(a,c){var h,p,v,_,O,C,x,R,M=arguments[2];if(w(a)||u(a)?h="array":i(a)?h="string":a=S(a),b(c),v=function(){_=!0},h!=="array")if(h!=="string")for(p=a.next();!p.done;){if(y.call(c,M,p.value,v),_)return;p=a.next()}else for(C=a.length,O=0;O=55296&&R<=56319&&(x+=a[++O]),y.call(c,M,x,v),!_);++O);else m.call(a,function(T){return y.call(c,M,T,v),_})}},76252:function(d,s,n){var u=n(60948),b=n(29768),i=n(52104),S=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(m){return typeof w(m)[y]=="function"?m[y]():u(m)?new i(m):b(m)?new S(m):new i(m)}},85512:function(d,s,n){var u,b=n(41476),i=n(38452),S=n(34044),w=n(9252),y=n(21092),m=n(27940),a=n(92664),c=Object.defineProperty,h=Object.defineProperties;d.exports=u=function(p,v){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(p)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(S(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete u.prototype.constructor,h(u.prototype,i({_next:y(function(){var p;if(this.__list__)return this.__redo__&&(p=this.__redo__.shift())!==void 0?p:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=p&&(this.__redo__[_]=++v)},this),this.__redo__.push(p)):c(this,"__redo__",y("c",[p])))}),_onDelete:y(function(p){var v;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(p))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,O){_>p&&(this.__redo__[O]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),c(u.prototype,a.iterator,y(function(){return this}))},76368:function(d,s,n){var u=n(60948),b=n(42584),i=n(29768),S=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!u(y)&&typeof y[S]!="function")}},80940:function(d,s,n){var u,b=n(69932),i=n(21092),S=n(92664),w=n(85512),y=Object.defineProperty;u=d.exports=function(m){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");m=String(m),w.call(this,m),y(this,"__length__",i("",m.length))},b&&b(u,w),delete u.prototype.constructor,u.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?c+this.__list__[this.__nextIndex__++]:c})}),y(u.prototype,S.toStringTag,i("c","String Iterator"))},52891:function(d,s,n){var u=n(76368);d.exports=function(b){if(!u(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function s(n,u){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&P.length>M&&!P.warned){P.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=O,L.type=C,L.count=P.length,A=L,console&&console.warn&&console.warn(A)}return O}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(O,C,x){var R={fired:!1,wrapFn:void 0,target:O,type:C,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(O,C,x){var R=O._events;if(R===void 0)return[];var M=R[C];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var P=new Array(T.length),A=0;A0&&(T=C[0]),T instanceof Error)throw T;var P=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw P.context=T,P}var A=M[O];if(A===void 0)return!1;if(typeof A=="function")u(A,this,C);else{var L=A.length,D=v(A,L);for(x=0;x=0;T--)if(x[T]===C||x[T].listener===C){P=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(A,L){for(;L+1=0;R--)this.removeListener(O,C[R]);return this},i.prototype.listeners=function(O){return h(this,O,!0)},i.prototype.rawListeners=function(O){return h(this,O,!1)},i.listenerCount=function(O,C){return typeof O.listenerCount=="function"?O.listenerCount(C):p.call(O,C)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},39072:function(d){var s=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return s()}try{return __global__||s()}finally{delete Object.prototype.__global__}}()},12296:function(d,s,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,s,n){var u=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var S=b;if((b=+b)==0&&u(S))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,s,n){var u=n(72512);d.exports=function(b,i,S){if(!b)throw new TypeError("must specify data as first parameter");if(S=0|+(S||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,m,a,c=b[0].length,h=b.length*c;i&&typeof i!="string"||(i=new(u(i||"float32"))(h+S));var p=i.length-S;if(h!==p)throw new Error("source length "+h+" ("+c+"x"+b.length+") does not match destination length "+p);for(w=0,m=S;wS[0]-m[0]/2&&(_=m[0]/2,O+=m[1]);return w}},71920:function(d){function s(i,S){S||(S={}),(typeof i=="string"||Array.isArray(i))&&(S.family=i);var w=Array.isArray(S.family)?S.family.join(", "):S.family;if(!w)throw Error("`family` must be defined");var y=S.size||S.fontSize||S.em||48,m=S.weight||S.fontWeight||"",a=(i=[S.style||S.fontStyle||"",m,y].join(" ")+"px "+w,S.origin||"top");if(s.cache[w]&&y<=s.cache[w].em)return n(s.cache[w],a);var c=S.canvas||s.canvas,h=c.getContext("2d"),p={upper:S.upper!==void 0?S.upper:"H",lower:S.lower!==void 0?S.lower:"x",descent:S.descent!==void 0?S.descent:"p",ascent:S.ascent!==void 0?S.ascent:"h",tittle:S.tittle!==void 0?S.tittle:"i",overshoot:S.overshoot!==void 0?S.overshoot:"O"},v=Math.ceil(1.5*y);c.height=v,c.width=.5*v,h.font=i;var _="H",O={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var C=u(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=u(h.getImageData(0,0,v,v));O.lineHeight=O.bottom=v-x+C,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-u(h.getImageData(0,0,v,v))-1+C;O.baseline=O.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=u(h.getImageData(0,0,v,v));O.median=O.middle=v-M-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=u(h.getImageData(0,0,v,v));O.hanging=v-T-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var P=u(h.getImageData(0,0,v,v));if(O.ideographic=v-P-1+C,p.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.upper,0,0),O.upper=u(h.getImageData(0,0,v,v)),O.capHeight=O.baseline-O.upper),p.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.lower,0,0),O.lower=u(h.getImageData(0,0,v,v)),O.xHeight=O.baseline-O.lower),p.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.tittle,0,0),O.tittle=u(h.getImageData(0,0,v,v))),p.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.ascent,0,0),O.ascent=u(h.getImageData(0,0,v,v))),p.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.descent,0,0),O.descent=b(h.getImageData(0,0,v,v))),p.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.overshoot,0,0);var A=b(h.getImageData(0,0,v,v));O.overshoot=A-R}for(var L in O)O[L]/=y;return O.em=y,s.cache[w]=O,n(O,a)}function n(i,S){var w={};for(var y in typeof S=="string"&&(S=i[S]),i)y!=="em"&&(w[y]=i[y]-S);return w}function u(i){for(var S=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/S)}d.exports=s,s.canvas=document.createElement("canvas"),s.cache={}},46492:function(d,s,n){var u=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(S,w,y){if(!u(w))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=y),b.call(S)==="[object Array]"?function(a,c,h){for(var p=0,v=a.length;p"u"&&!n.canvas)return null;var u=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(u.width=n.width),typeof n.height=="number"&&(u.height=n.height);var b,i=n;try{var S=[s];s.indexOf("webgl")===0&&S.push("experimental-"+s);for(var w=0;w"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":c&&p?p([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&p?p(p([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map<"u"&&c&&p?p(new Map()[Symbol.iterator]()):u,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set<"u"&&c&&p?p(new Set()[Symbol.iterator]()):u,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&p?p(""[Symbol.iterator]()):u,"%Symbol%":c?Symbol:u,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet};if(p)try{null.error}catch(Q){var C=p(p(Q));O["%Error.prototype%"]=C}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&p&&(U=p(te.prototype))}return O[j]=U,U},R={"%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"]},M=n(8844),T=n(92064),P=M.call(Function.call,Array.prototype.concat),A=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(O,X)){var te=O[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new S("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new S('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ye=D(ce,-1);if(de==="%"&&ye!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ve=[];return L(ce,I,function(_e,we,Te,Pe){ve[ve.length]=Te?L(Pe,z,"$1"):we||_e}),ve}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),Z=te.name,K=te.value,re=!1,q=te.alias;q&&(X=q[0],A(U,P([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!re&&(O[Z]=K)}}return K}},12408:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15];return s[0]=y*(p*x-v*C)-h*(m*x-a*C)+O*(m*v-a*p),s[1]=-(b*(p*x-v*C)-h*(i*x-S*C)+O*(i*v-S*p)),s[2]=b*(m*x-a*C)-y*(i*x-S*C)+O*(i*a-S*m),s[3]=-(b*(m*v-a*p)-y*(i*v-S*p)+h*(i*a-S*m)),s[4]=-(w*(p*x-v*C)-c*(m*x-a*C)+_*(m*v-a*p)),s[5]=u*(p*x-v*C)-c*(i*x-S*C)+_*(i*v-S*p),s[6]=-(u*(m*x-a*C)-w*(i*x-S*C)+_*(i*a-S*m)),s[7]=u*(m*v-a*p)-w*(i*v-S*p)+c*(i*a-S*m),s[8]=w*(h*x-v*O)-c*(y*x-a*O)+_*(y*v-a*h),s[9]=-(u*(h*x-v*O)-c*(b*x-S*O)+_*(b*v-S*h)),s[10]=u*(y*x-a*O)-w*(b*x-S*O)+_*(b*a-S*y),s[11]=-(u*(y*v-a*h)-w*(b*v-S*h)+c*(b*a-S*y)),s[12]=-(w*(h*C-p*O)-c*(y*C-m*O)+_*(y*p-m*h)),s[13]=u*(h*C-p*O)-c*(b*C-i*O)+_*(b*p-i*h),s[14]=-(u*(y*C-m*O)-w*(b*C-i*O)+_*(b*m-i*y)),s[15]=u*(y*p-m*h)-w*(b*p-i*h)+c*(b*m-i*y),s}},76860:function(d){d.exports=function(s){var n=new Float32Array(16);return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],n}},64492:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},54212:function(d){d.exports=function(){var s=new Float32Array(16);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},70800:function(d){d.exports=function(s){var n=s[0],u=s[1],b=s[2],i=s[3],S=s[4],w=s[5],y=s[6],m=s[7],a=s[8],c=s[9],h=s[10],p=s[11],v=s[12],_=s[13],O=s[14],C=s[15];return(n*w-u*S)*(h*C-p*O)-(n*y-b*S)*(c*C-p*_)+(n*m-i*S)*(c*O-h*_)+(u*y-b*w)*(a*C-p*v)-(u*m-i*w)*(a*O-h*v)+(b*m-i*y)*(a*_-c*v)}},61784:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=u+u,y=b+b,m=i+i,a=u*w,c=b*w,h=b*y,p=i*w,v=i*y,_=i*m,O=S*w,C=S*y,x=S*m;return s[0]=1-h-_,s[1]=c+x,s[2]=p-C,s[3]=0,s[4]=c-x,s[5]=1-a-_,s[6]=v+O,s[7]=0,s[8]=p+C,s[9]=v-O,s[10]=1-a-h,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},91616:function(d){d.exports=function(s,n,u){var b,i,S,w=u[0],y=u[1],m=u[2],a=Math.sqrt(w*w+y*y+m*m);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,m*=a,b=Math.sin(n),S=1-(i=Math.cos(n)),s[0]=w*w*S+i,s[1]=y*w*S+m*b,s[2]=m*w*S-y*b,s[3]=0,s[4]=w*y*S-m*b,s[5]=y*y*S+i,s[6]=m*y*S+w*b,s[7]=0,s[8]=w*m*S+y*b,s[9]=y*m*S-w*b,s[10]=m*m*S+i,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s)}},51944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=b+b,m=i+i,a=S+S,c=b*y,h=b*m,p=b*a,v=i*m,_=i*a,O=S*a,C=w*y,x=w*m,R=w*a;return s[0]=1-(v+O),s[1]=h+R,s[2]=p-x,s[3]=0,s[4]=h-R,s[5]=1-(c+O),s[6]=_+C,s[7]=0,s[8]=p+x,s[9]=_-C,s[10]=1-(c+v),s[11]=0,s[12]=u[0],s[13]=u[1],s[14]=u[2],s[15]=1,s}},69444:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=n[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=n[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},48268:function(d){d.exports=function(s,n){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=n[0],s[13]=n[1],s[14]=n[2],s[15]=1,s}},21856:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=b,s[6]=u,s[7]=0,s[8]=0,s[9]=-u,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},79216:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=0,s[2]=-u,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=u,s[9]=0,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},57736:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=u,s[2]=0,s[3]=0,s[4]=-u,s[5]=b,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},38848:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(u-n),m=1/(i-b),a=1/(S-w);return s[0]=2*S*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*S*m,s[6]=0,s[7]=0,s[8]=(u+n)*y,s[9]=(i+b)*m,s[10]=(w+S)*a,s[11]=-1,s[12]=0,s[13]=0,s[14]=w*S*2*a,s[15]=0,s}},36635:function(d){d.exports=function(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},36524:function(d,s,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15],R=u*y-b*w,M=u*m-i*w,T=u*a-S*w,P=b*m-i*y,A=b*a-S*y,L=i*a-S*m,D=c*O-h*_,k=c*C-p*_,I=c*x-v*_,z=h*C-p*O,$=h*x-v*O,Q=p*x-v*C,j=R*Q-M*$+T*z+P*I-A*k+L*D;return j?(j=1/j,s[0]=(y*Q-m*$+a*z)*j,s[1]=(i*$-b*Q-S*z)*j,s[2]=(O*L-C*A+x*P)*j,s[3]=(p*A-h*L-v*P)*j,s[4]=(m*I-w*Q-a*k)*j,s[5]=(u*Q-i*I+S*k)*j,s[6]=(C*T-_*L-x*M)*j,s[7]=(c*L-p*T+v*M)*j,s[8]=(w*$-y*I+a*D)*j,s[9]=(b*I-u*$-S*D)*j,s[10]=(_*A-O*T+x*R)*j,s[11]=(h*T-c*A-v*R)*j,s[12]=(y*k-w*z-m*D)*j,s[13]=(u*z-b*k+i*D)*j,s[14]=(O*M-_*P-C*R)*j,s[15]=(c*P-h*M+p*R)*j,s):null}},56508:function(d,s,n){var u=n(36635);d.exports=function(b,i,S,w){var y,m,a,c,h,p,v,_,O,C,x=i[0],R=i[1],M=i[2],T=w[0],P=w[1],A=w[2],L=S[0],D=S[1],k=S[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?u(b):(v=x-L,_=R-D,O=M-k,y=P*(O*=C=1/Math.sqrt(v*v+_*_+O*O))-A*(_*=C),m=A*(v*=C)-T*O,a=T*_-P*v,(C=Math.sqrt(y*y+m*m+a*a))?(y*=C=1/C,m*=C,a*=C):(y=0,m=0,a=0),c=_*a-O*m,h=O*y-v*a,p=v*m-_*y,(C=Math.sqrt(c*c+h*h+p*p))?(c*=C=1/C,h*=C,p*=C):(c=0,h=0,p=0),b[0]=y,b[1]=c,b[2]=v,b[3]=0,b[4]=m,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=p,b[10]=O,b[11]=0,b[12]=-(y*x+m*R+a*M),b[13]=-(c*x+h*R+p*M),b[14]=-(v*x+_*R+O*M),b[15]=1,b)}},80944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],O=n[12],C=n[13],x=n[14],R=n[15],M=u[0],T=u[1],P=u[2],A=u[3];return s[0]=M*b+T*y+P*h+A*O,s[1]=M*i+T*m+P*p+A*C,s[2]=M*S+T*a+P*v+A*x,s[3]=M*w+T*c+P*_+A*R,M=u[4],T=u[5],P=u[6],A=u[7],s[4]=M*b+T*y+P*h+A*O,s[5]=M*i+T*m+P*p+A*C,s[6]=M*S+T*a+P*v+A*x,s[7]=M*w+T*c+P*_+A*R,M=u[8],T=u[9],P=u[10],A=u[11],s[8]=M*b+T*y+P*h+A*O,s[9]=M*i+T*m+P*p+A*C,s[10]=M*S+T*a+P*v+A*x,s[11]=M*w+T*c+P*_+A*R,M=u[12],T=u[13],P=u[14],A=u[15],s[12]=M*b+T*y+P*h+A*O,s[13]=M*i+T*m+P*p+A*C,s[14]=M*S+T*a+P*v+A*x,s[15]=M*w+T*c+P*_+A*R,s}},97688:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(n-u),m=1/(b-i),a=1/(S-w);return s[0]=-2*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*m,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*a,s[11]=0,s[12]=(n+u)*y,s[13]=(i+b)*m,s[14]=(w+S)*a,s[15]=1,s}},51296:function(d){d.exports=function(s,n,u,b,i){var S=1/Math.tan(n/2),w=1/(b-i);return s[0]=S/u,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=S,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(i+b)*w,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*i*b*w,s[15]=0,s}},63688:function(d){d.exports=function(s,n,u,b){var i=Math.tan(n.upDegrees*Math.PI/180),S=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),m=2/(w+y),a=2/(i+S);return s[0]=m,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=a,s[6]=0,s[7]=0,s[8]=-(w-y)*m*.5,s[9]=(i-S)*a*.5,s[10]=b/(u-b),s[11]=-1,s[12]=0,s[13]=0,s[14]=b*u/(u-b),s[15]=0,s}},30016:function(d){d.exports=function(s,n,u,b){var i,S,w,y,m,a,c,h,p,v,_,O,C,x,R,M,T,P,A,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(u),w=1-(S=Math.cos(u)),y=n[0],m=n[1],a=n[2],c=n[3],h=n[4],p=n[5],v=n[6],_=n[7],O=n[8],C=n[9],x=n[10],R=n[11],M=$*$*w+S,T=Q*$*w+j*i,P=j*$*w-Q*i,A=$*Q*w-j*i,L=Q*Q*w+S,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+S,s[0]=y*M+h*T+O*P,s[1]=m*M+p*T+C*P,s[2]=a*M+v*T+x*P,s[3]=c*M+_*T+R*P,s[4]=y*A+h*L+O*D,s[5]=m*A+p*L+C*D,s[6]=a*A+v*L+x*D,s[7]=c*A+_*L+R*D,s[8]=y*k+h*I+O*z,s[9]=m*k+p*I+C*z,s[10]=a*k+v*I+x*z,s[11]=c*k+_*I+R*z,n!==s&&(s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s)}},15456:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[4],w=n[5],y=n[6],m=n[7],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[4]=S*i+a*b,s[5]=w*i+c*b,s[6]=y*i+h*b,s[7]=m*i+p*b,s[8]=a*i-S*b,s[9]=c*i-w*b,s[10]=h*i-y*b,s[11]=p*i-m*b,s}},64840:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i-a*b,s[1]=w*i-c*b,s[2]=y*i-h*b,s[3]=m*i-p*b,s[8]=S*b+a*i,s[9]=w*b+c*i,s[10]=y*b+h*i,s[11]=m*b+p*i,s}},4192:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[4],c=n[5],h=n[6],p=n[7];return n!==s&&(s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i+a*b,s[1]=w*i+c*b,s[2]=y*i+h*b,s[3]=m*i+p*b,s[4]=a*i-S*b,s[5]=c*i-w*b,s[6]=h*i-y*b,s[7]=p*i-m*b,s}},68152:function(d){d.exports=function(s,n,u){var b=u[0],i=u[1],S=u[2];return s[0]=n[0]*b,s[1]=n[1]*b,s[2]=n[2]*b,s[3]=n[3]*b,s[4]=n[4]*i,s[5]=n[5]*i,s[6]=n[6]*i,s[7]=n[7]*i,s[8]=n[8]*S,s[9]=n[9]*S,s[10]=n[10]*S,s[11]=n[11]*S,s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},89412:function(d){d.exports=function(s){return"mat4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+", "+s[8]+", "+s[9]+", "+s[10]+", "+s[11]+", "+s[12]+", "+s[13]+", "+s[14]+", "+s[15]+")"}},35176:function(d){d.exports=function(s,n,u){var b,i,S,w,y,m,a,c,h,p,v,_,O=u[0],C=u[1],x=u[2];return n===s?(s[12]=n[0]*O+n[4]*C+n[8]*x+n[12],s[13]=n[1]*O+n[5]*C+n[9]*x+n[13],s[14]=n[2]*O+n[6]*C+n[10]*x+n[14],s[15]=n[3]*O+n[7]*C+n[11]*x+n[15]):(b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],s[0]=b,s[1]=i,s[2]=S,s[3]=w,s[4]=y,s[5]=m,s[6]=a,s[7]=c,s[8]=h,s[9]=p,s[10]=v,s[11]=_,s[12]=b*O+y*C+h*x+n[12],s[13]=i*O+m*C+p*x+n[13],s[14]=S*O+a*C+v*x+n[14],s[15]=w*O+c*C+_*x+n[15]),s}},86520:function(d){d.exports=function(s,n){if(s===n){var u=n[1],b=n[2],i=n[3],S=n[6],w=n[7],y=n[11];s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=u,s[6]=n[9],s[7]=n[13],s[8]=b,s[9]=S,s[11]=n[14],s[12]=i,s[13]=w,s[14]=y}else s[0]=n[0],s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=n[1],s[5]=n[5],s[6]=n[9],s[7]=n[13],s[8]=n[2],s[9]=n[6],s[10]=n[10],s[11]=n[14],s[12]=n[3],s[13]=n[7],s[14]=n[11],s[15]=n[15];return s}},23352:function(d,s,n){var u=n(42771),b=n(55616),i=n(28624),S=n(55212),w=n(60463),y=n(72160),m=n(33888),a=n(14144),c=n(51160),h=n(58908),p=n(65819),v=n(23464),_=n(63768),O=n(50896),C=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var P=document.body.appendChild(document.createElement("div"));P.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(P).fontStretch&&(T=!0),document.body.removeChild(P)}var A=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=S(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};A.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` +`):Y=" ".concat(j," ").concat(Y)),$=S(this,c(D).call(this,"".concat(q).concat(Y)))}return Error.stackTraceLimit=Z,$.generatedMessage=!Q,Object.defineProperty(w($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=X,$.expected=te,$.operator=j,Error.captureStackTrace&&Error.captureStackTrace(w($),U),$.stack,$.name="AssertionError",S($)}var k,I;return function(z,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create($&&$.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),$&&a(z,$)}(D,L),k=D,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(z,$){return p(this,function(Q){for(var j=1;j2?"one of ".concat(h," ").concat(c.slice(0,p-1).join(", "),", or ")+c[p-1]:p===2?"one of ".concat(h," ").concat(c[0]," or ").concat(c[1]):"of ".concat(h," ").concat(c[0])}return"of ".concat(h," ").concat(String(c))}m("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),m("ERR_INVALID_ARG_TYPE",function(c,h,p){var v,_,O,C,x;if(S===void 0&&(S=n(45408)),S(typeof c=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,P){return(P===void 0||P>M.length)&&(P=M.length),M.substring(P-9,P)===T}(c," argument"))O="The ".concat(c," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(C=c).length||C.indexOf(".",x)===-1?"argument":"property");O='The "'.concat(c,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return O+". Received type ".concat(u(p))},TypeError),m("ERR_INVALID_ARG_VALUE",function(c,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(p,". Received ").concat(v)},TypeError),m("ERR_INVALID_RETURN_VALUE",function(c,h,p){var v;return v=p&&p.constructor&&p.constructor.name?"instance of ".concat(p.constructor.name):"type ".concat(u(p)),"Expected ".concat(c,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),m("ERR_MISSING_ARGS",function(){for(var c=arguments.length,h=new Array(c),p=0;p0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(O){return'"'.concat(O,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,s,n){function u(de,ye){return function(ve){if(Array.isArray(ve))return ve}(de)||function(ve,_e){var we=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ve[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(we.push(ze.value),!_e||we.length!==_e);Te=!0);}catch(Qe){Pe=!0,Ie=Qe}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return we}(de,ye)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},b(de)}var i=/a/g.flags!==void 0,S=function(de){var ye=[];return de.forEach(function(ve){return ye.push(ve)}),ye},w=function(de){var ye=[];return de.forEach(function(ve,_e){return ye.push([_e,ve])}),ye},y=Object.is?Object.is:n(39896),m=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function c(de){return de.call.bind(de)}var h=c(Object.prototype.hasOwnProperty),p=c(Object.prototype.propertyIsEnumerable),v=c(Object.prototype.toString),_=n(35840).types,O=_.isAnyArrayBuffer,C=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,P=_.isNativeError,A=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ye=0;ye57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(m(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ye){if(de===ye)return 0;for(var ve=de.length,_e=ye.length,we=0,Te=Math.min(ve,_e);we"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[u.charCodeAt(i)]=i;var S=function(y){var m,a=new Uint8Array(y),c=a.length,h="";for(m=0;m>2],h+=u[(3&a[m])<<4|a[m+1]>>4],h+=u[(15&a[m+1])<<2|a[m+2]>>6],h+=u[63&a[m+2]];return c%3==2?h=h.substring(0,h.length-1)+"=":c%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var m,a,c,h,p,v=.75*y.length,_=y.length,O=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var C=new ArrayBuffer(v),x=new Uint8Array(C);for(m=0;m<_;m+=4)a=b[y.charCodeAt(m)],c=b[y.charCodeAt(m+1)],h=b[y.charCodeAt(m+2)],p=b[y.charCodeAt(m+3)],x[O++]=a<<2|c>>4,x[O++]=(15&c)<<4|h>>2,x[O++]=(3&h)<<6|63&p;return C}},59968:function(d,s){s.byteLength=function(m){var a=w(m),c=a[0],h=a[1];return 3*(c+h)/4-h},s.toByteArray=function(m){var a,c,h=w(m),p=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,p,v)),O=0,C=v>0?p-4:p;for(c=0;c>16&255,_[O++]=a>>8&255,_[O++]=255&a;return v===2&&(a=u[m.charCodeAt(c)]<<2|u[m.charCodeAt(c+1)]>>4,_[O++]=255&a),v===1&&(a=u[m.charCodeAt(c)]<<10|u[m.charCodeAt(c+1)]<<4|u[m.charCodeAt(c+2)]>>2,_[O++]=a>>8&255,_[O++]=255&a),_},s.fromByteArray=function(m){for(var a,c=m.length,h=c%3,p=[],v=16383,_=0,O=c-h;_O?O:_+v));return h===1?(a=m[c-1],p.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(m[c-2]<<8)+m[c-1],p.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),p.join("")};for(var n=[],u=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)n[S]=i[S],u[i.charCodeAt(S)]=S;function w(m){var a=m.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=m.indexOf("=");return c===-1&&(c=a),[c,c===a?0:4-c%4]}function y(m,a,c){for(var h,p,v=[],_=a;_>18&63]+n[p>>12&63]+n[p>>6&63]+n[63&p]);return v.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},64928:function(d){function s(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>=0?(h=p,c=p-1):a=p+1}return h}function n(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>0?(h=p,c=p-1):a=p+1}return h}function u(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<0?(h=p,a=p+1):c=p-1}return h}function b(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<=0?(h=p,a=p+1):c=p-1}return h}function i(w,y,m,a,c){for(;a<=c;){var h=a+c>>>1,p=w[h],v=m!==void 0?m(p,y):p-y;if(v===0)return h;v<=0?a=h+1:c=h-1}return-1}function S(w,y,m,a,c,h){return typeof m=="function"?h(w,y,m,a===void 0?0:0|a,c===void 0?w.length-1:0|c):h(w,y,void 0,m===void 0?0:0|m,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,m,a,c){return S(w,y,m,a,c,s)},gt:function(w,y,m,a,c){return S(w,y,m,a,c,n)},lt:function(w,y,m,a,c){return S(w,y,m,a,c,u)},le:function(w,y,m,a,c){return S(w,y,m,a,c,b)},eq:function(w,y,m,a,c){return S(w,y,m,a,c,i)}}},308:function(d,s){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}s.INT_BITS=32,s.INT_MAX=2147483647,s.INT_MIN=-2147483648,s.sign=function(b){return(b>0)-(b<0)},s.abs=function(b){var i=b>>31;return(b^i)-i},s.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=S=((b>>>=i)>255)<<3,i|=S=((b>>>=S)>15)<<2,(i|=S=((b>>>=S)>3)<<1)|(b>>>=S)>>1},s.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},s.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},s.countTrailingZeros=n,s.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},s.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},s.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var u=new Array(256);(function(b){for(var i=0;i<256;++i){var S=i,w=i,y=7;for(S>>>=1;S;S>>>=1)w<<=1,w|=1&S,--y;b[i]=w<>>8&255]<<16|u[b>>>16&255]<<8|u[b>>>24&255]},s.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},s.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},s.interleave3=function(b,i,S){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(S=1227133513&((S=3272356035&((S=251719695&((S=4278190335&((S&=1023)|S<<16))|S<<8))|S<<4))|S<<2))<<2},s.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},s.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,s,n){var u=n(32420);d.exports=function(w,y){y||(y={});var m,a,c,h,p,v,_,O,C,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,P=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");m=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/m/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(O=w).getContext("2d"),m=O.width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,m=(O=w.canvas).width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(C=w,m=w.width,a=w.height,h=C.data,v=4);if(c=Math.max(m,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(p=h,h=Array(m*a),x=0,R=p.length;x-1?b(y):y}},57916:function(d,s,n){var u=n(8844),b=n(53664),i=n(14500),S=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),m=b("%Reflect.apply%",!0)||u.call(y,w),a=b("%Object.defineProperty%",!0),c=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(p){if(typeof p!="function")throw new S("a function is required");var v=m(u,y,arguments);return i(v,1+c(0,p.length-(arguments.length-1)),!0)};var h=function(){return m(u,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(s,n,u){return nu?u:s:sn?n:s}},3808:function(d,s,n){var u=n(32420);function b(i,S){S==null&&(S=!0);var w=i[0],y=i[1],m=i[2],a=i[3];return a==null&&(a=S?1:255),S&&(w*=255,y*=255,m*=255,a*=255),16777216*(w=255&u(w,0,255))+((y=255&u(y,0,255))<<16)+((m=255&u(m,0,255))<<8)+(255&u(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,S){var w=(i=+i)>>>24,y=(16711680&i)>>>16,m=(65280&i)>>>8,a=255&i;return S===!1?[w,y,m,a]:[w/255,y/255,m/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,s,n){var u=n(96824),b=n(32420),i=n(72512);d.exports=function(S,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),m=w!=="uint8"&&w!=="uint8_clamped";return S.length&&typeof S!="string"||((S=u(S))[0]/=255,S[1]/=255,S[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(S)?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:255,m&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(m?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:1):(y[0]=b(Math.floor(255*S[0]),0,255),y[1]=b(Math.floor(255*S[1]),0,255),y[2]=b(Math.floor(255*S[2]),0,255),y[3]=S[3]==null?255:b(Math.floor(255*S[3]),0,255)),y)}},81704:function(d,s,n){var u=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,m,a=[],c=1;if(typeof w=="string")if(u[w])a=u[w].slice(),m="rgb";else if(w==="transparent")c=0,m="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);c=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(c=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(c=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),m="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var p=y[1],v=p==="rgb";m=h=p.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(C,x){if(/%$/.test(C))return x===_?parseFloat(C)/100:h==="rgb"?255*parseFloat(C)/100:parseFloat(C);if(h[x]==="h"){if(/deg$/.test(C))return parseFloat(C);if(S[C]!==void 0)return S[C]}return parseFloat(C)}),p===h&&a.push(1),c=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(C){return parseFloat(C)}),m=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var O=i(w.r,w.red,w.R,null);O!==null?(m="rgb",a=[O,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(m="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),c=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(c/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],m="rgb",c=w.length===4?w[3]:1);else m="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:m,values:a,alpha:c}};var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,s,n){var u=n(81704),b=n(53576),i=n(32420);d.exports=function(S){var w,y=u(S);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,s,n){var u=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,S,w,y,m,a=b[0]/360,c=b[1]/100,h=b[2]/100;if(c===0)return[m=255*h,m,m];i=2*h-(S=h<.5?h*(1+c):h+c-h*c),y=[0,0,0];for(var p=0;p<3;p++)(w=a+.3333333333333333*-(p-1))<0?w++:w>1&&w--,m=6*w<1?i+6*(S-i)*w:2*w<1?S:3*w<2?i+(S-i)*(.6666666666666666-w)*6:i,y[p]=255*m;return y}},u.hsl=function(b){var i,S,w=b[0]/255,y=b[1]/255,m=b[2]/255,a=Math.min(w,y,m),c=Math.max(w,y,m),h=c-a;return c===a?i=0:w===c?i=(y-m)/h:y===c?i=2+(m-w)/h:m===c&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),S=(a+c)/2,[i,100*(c===a?0:S<=.5?h/(c+a):h/(2-c-a)),100*S]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,s,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,s,n){var u=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||u.indexOf(b)!==-1}}},46416:function(d,s,n){var u=n(92384),b=n(68194),i=n(3748),S=n(2904),w=n(47916),y=n(7294),m=n(39956),a=n(8744).isSize;d.exports=h;var c=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(c[v])return c[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return c[v]={system:v};for(var _,O={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},C=m(v,/\s+/);_=C.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){O[R]=_}),c[v]=O;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(S.indexOf(_)===-1){if(a(_)){var x=m(_,"/");if(O.size=x[0],x[1]!=null?O.lineHeight=p(x[1]):C[0]==="/"&&(C.shift(),O.lineHeight=p(C.shift())),!C.length)throw new Error("Missing required font-family.");return O.family=m(C.join(" "),/\s*,\s*/).map(u),c[v]=O}throw new Error("Unknown or unsupported font token: "+_)}O.weight=_}else O.stretch=_;else O.variant=_;else O.style=_}throw new Error("Missing required font-size.")}function p(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,s,n){var u=n(55616),b=n(8744).isSize,i=v(n(68194)),S=v(n(3748)),w=v(n(2904)),y=v(n(47916)),m=v(n(7294)),a={normal:1,"small-caps":1},c={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function p(_,O){if(_&&!O[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var O={},C=0;C<_.length;C++)O[_[C]]=1;return O}d.exports=function(_){if((_=u(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&p(_.system,S),_.system;if(p(_.style,y),p(_.variant,a),p(_.weight,w),p(_.stretch,m),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(C){return c[C]?C:'"'+C+'"'}).join(", "));var O=[];return O.push(_.style),_.variant!==_.style&&O.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&O.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&O.push(_.stretch),O.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),O.push(_.family),O.filter(Boolean).join(" ")}},27940:function(d,s,n){var u,b=n(81680),i=n(18496),S=n(87396),w=n(95920),y=n(50868),m=n(84323),a=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;u=function(p,v,_){var O,C=i(v)&&S(v.value);return delete(O=w(v)).writable,delete O.value,O.get=function(){return!_.overwriteDefinition&&h.call(this,p)?C:(v.value=a.call(C,_.resolveContext?_.resolveContext(this):this),c(this,p,v),this[p])},O},d.exports=function(p){var v=y(arguments[1]);return b(v.resolveContext)&&S(v.resolveContext),m(p,function(_,O){return u(O,_,v)})}},21092:function(d,s,n){var u=n(81680),b=n(85488),i=n(38452),S=n(50868),w=n(71056),y=d.exports=function(m,a){var c,h,p,v,_;return arguments.length<2||typeof m!="string"?(v=a,a=m,m=null):v=arguments[2],u(m)?(c=w.call(m,"c"),h=w.call(m,"e"),p=w.call(m,"w")):(c=p=!0,h=!1),_={value:a,configurable:c,enumerable:h,writable:p},v?i(S(v),_):_};y.gs=function(m,a,c){var h,p,v,_;return typeof m!="string"?(v=c,c=a,a=m,m=null):v=arguments[3],u(a)?b(a)?u(c)?b(c)||(v=c,c=void 0):c=void 0:(v=a,a=c=void 0):a=void 0,u(m)?(h=w.call(m,"c"),p=w.call(m,"e")):(h=!0,p=!1),_={get:a,set:c,configurable:h,enumerable:p},v?i(S(v),_):_}},84706:function(d,s,n){function u(p,v){return pv?1:p>=v?0:NaN}n.d(s,{XE:function(){return u},kv:function(){return S},mo:function(){return y},Uf:function(){return m},SY:function(){return a},ik:function(){return c},oh:function(){return h}}),(b=u).length===1&&(i=b,b=function(p,v){return u(i(p),v)});var b,i;function S(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++xO&&(O=_)}else for(;++x=_)for(O=_;++xO&&(O=_);return O}function w(p){return p===null?NaN:+p}function y(p,v){var _,O=p.length,C=O,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(O=p[C]).length;--v>=0;)_[--R]=O[v];return _}function a(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++x_&&(O=_)}else for(;++x=_)for(O=_;++x_&&(O=_);return O}function c(p,v,_){p=+p,v=+v,_=(C=arguments.length)<2?(v=p,p=0,1):C<3?1:+_;for(var O=-1,C=0|Math.max(0,Math.ceil((v-p)/_)),x=new Array(C);++O=C.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=C[P++],j=S(),U=A();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,P,A,L))}),U}function M(T,P){if(++P>C.length)return T;var A,L=x[P-1];return _!=null&&P>=C.length?A=T.entries():(A=[],T.each(function(D,k){A.push({key:k,values:M(D,P)})})),L!=null?A.sort(function(D,k){return L(D.key,k.key)}):A}return O={object:function(T){return R(T,0,y,m)},map:function(T){return R(T,0,a,c)},entries:function(T){return M(R(T,0,a,c),0)},key:function(T){return C.push(T),O},sortKeys:function(T){return x[C.length-1]=T,O},sortValues:function(T){return v=T,O},rollup:function(T){return _=T,O}}}function y(){return{}}function m(v,_,O){v[_]=O}function a(){return S()}function c(v,_,O){v.set(_,O)}function h(){}var p=S.prototype;h.prototype={constructor:h,has:p.has,add:function(v){return this[u+(v+="")]=v,this},remove:p.remove,clear:p.clear,values:p.keys,size:p.size,empty:p.empty,each:p.each}},49812:function(d,s,n){function u(ze,De){var Qe;function Ve(){var $e,Oe,ke=Qe.length,Re=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke,$e=Me,!(Me=Me[Ye=Ze<<1|Ue]))return $e[Ye]=Fe,ze;if(Re=+ze._x.call(null,Me.data),We=+ze._y.call(null,Me.data),De===Re&&Qe===We)return Fe.next=Me,$e?$e[Ye]=Fe:ze._root=Fe,ze;do $e=$e?$e[Ye]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke;while((Ye=Ze<<1|Ue)==(Je=(We>=ke)<<1|Re>=Oe));return $e[Je]=Me,$e[Ye]=Fe,ze}function w(ze,De,Qe,Ve,$e){this.node=ze,this.x0=De,this.y0=Qe,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function m(ze){return ze[1]}function a(ze,De,Qe){var Ve=new c(De??y,Qe??m,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function c(ze,De,Qe,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=Qe,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},Qe=De;ze=ze.next;)Qe=Qe.next={data:ze.data};return De}n.r(s),n.d(s,{forceCenter:function(){return u},forceCollide:function(){return O},forceLink:function(){return M},forceManyBody:function(){return we},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var p=a.prototype=c.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function O(ze){var De,Qe,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Ye,Je,Me,Fe,je=De.length,tt=0;tt<$e;++tt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeYe+ln||StJe+ln||FtZe.index){var tn=Ye-zt.x-zt.vx,Et=Je-zt.y-zt.vy,Ot=tn*tn+Et*Et;OtWe.r&&(We.r=We[Ue].r)}function Re(){if(De){var We,Ue,Ze=De.length;for(Qe=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eYe&&(Ye=$e));if(We>Ze||Ue>Ye)return this;for(this.cover(We,Ue).cover(Ze,Ye),Qe=0;Qeze||ze>=$e||Ve>De||De>=Oe;)switch(Re=(DeJe||(Oe=We.y0)>Me||(ke=We.x1)=ot)<<1|ze>=tt)&&(We=Fe[Fe.length-1],Fe[Fe.length-1]=Fe[Fe.length-1-Ue],Fe[Fe.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Re=(Fe+tt)/2))?Fe=Re:tt=Re,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Me,!(Me=Me[Ye=Ze<<1|Ue]))return this;if(!Me.length)break;(De[Ye+1&3]||De[Ye+2&3]||De[Ye+3&3])&&(Qe=De,Je=Ye)}for(;Me.data!==ze;)if(Ve=Me,!(Me=Me.next))return this;return($e=Me.next)&&delete Me.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Ye]=$e:delete De[Ye],(Me=De[0]||De[1]||De[2]||De[3])&&Me===(De[3]||De[2]||De[1]||De[0])&&!Me.length&&(Qe?Qe[Je]=Me:this._root=Me),this):(this._root=$e,this)},p.removeAll=function(ze){for(var De=0,Qe=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Re=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var Qe,Ve,$e=new Array(Qe),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,Qe=k,Ve=1/0;Qe;)Qe._call?(Ve>Qe._time&&(Ve=Qe._time),ze=Qe,Qe=Qe._next):(De=Qe._next,Qe._next=null,Qe=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(Z-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(pe,ze-K.now()-Z)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,re(pe)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,Qe){if(typeof ze!="function")throw new TypeError("callback is not a function");Qe=(Qe==null?q():+Qe)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=Qe,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ye=10,ve=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,Qe=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Re=(0,C.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Ye(),Ue.call("tick",De),Qe1?(je==null?Re.remove(Fe):Re.set(Fe,Me(je)),De):Re.get(Fe)},find:function(Fe,je,tt){var ot,Ge,ht,pt,St,Ft=0,zt=ze.length;for(tt==null?tt=1/0:tt*=tt,Ft=0;Ft1?(Ue.on(Fe,je),De):Ue.on(Fe)}}}function we(){var ze,De,Qe,Ve,$e=b(-30),Oe=1,ke=1/0,Re=.81;function We(Je){var Me,Fe=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(Qe=Je,Me=0;Me=ke)){(Je.data!==De||Je.next)&&(tt===0&&(ht+=(tt=i())*tt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+O.slice(x+1)]}n.d(s,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(O){if(!(C=i.exec(O)))throw new Error("invalid format: "+O);var C;return new w({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}function w(O){this.fill=O.fill===void 0?" ":O.fill+"",this.align=O.align===void 0?">":O.align+"",this.sign=O.sign===void 0?"-":O.sign+"",this.symbol=O.symbol===void 0?"":O.symbol+"",this.zero=!!O.zero,this.width=O.width===void 0?void 0:+O.width,this.comma=!!O.comma,this.precision=O.precision===void 0?void 0:+O.precision,this.trim=!!O.trim,this.type=O.type===void 0?"":O.type+""}function y(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}S.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var m={"%":function(O,C){return(100*O).toFixed(C)},b:function(O){return Math.round(O).toString(2)},c:function(O){return O+""},d:function(O){return Math.abs(O=Math.round(O))>=1e21?O.toLocaleString("en").replace(/,/g,""):O.toString(10)},e:function(O,C){return O.toExponential(C)},f:function(O,C){return O.toFixed(C)},g:function(O,C){return O.toPrecision(C)},o:function(O){return Math.round(O).toString(8)},p:function(O,C){return y(100*O,C)},r:y,s:function(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,P=R.length;return T===P?R:T>P?R+new Array(T-P+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+u(O,Math.max(0,C+T-1))[0]},X:function(O){return Math.round(O).toString(16).toUpperCase()},x:function(O){return Math.round(O).toString(16)}};function a(O){return O}var c,h,p=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(O){var C,x,R=O.grouping===void 0||O.thousands===void 0?a:(C=p.call(O.grouping,Number),x=O.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=C[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=C[U=(U+1)%C.length];return j.reverse().join(x)}),M=O.currency===void 0?"":O.currency[0]+"",T=O.currency===void 0?"":O.currency[1]+"",P=O.decimal===void 0?".":O.decimal+"",A=O.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(p.call(O.numerals,String)),L=O.percent===void 0?"%":O.percent+"",D=O.minus===void 0?"-":O.minus+"",k=O.nan===void 0?"NaN":O.nan+"";function I(z){var $=(z=S(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,Z=z.comma,K=z.precision,re=z.trim,q=z.type;q==="n"?(Z=!0,q="g"):m[q]||(K===void 0&&(K=12),re=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=m[q],pe=/[defgprs%]/.test(q);function se(ae){var ce,de,ye,ve=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var we=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),re&&(ae=function(Ie){e:for(var ze,De=Ie.length,Qe=1,Ve=-1;Qe0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),we&&+ae==0&&j!=="+"&&(we=!1),ve=(we?j==="("?j:D:j==="-"||j==="("?"":j)+ve,_e=(q==="s"?v[8+b/3]:"")+_e+(we&&j==="("?")":""),pe){for(ce=-1,de=ae.length;++ce(ye=ae.charCodeAt(ce))||ye>57){_e=(ye===46?P+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}Z&&!X&&(ae=R(ae,1/0));var Te=ve.length+ae.length+_e.length,Pe=Te>1)+ve+ae+_e+Pe.slice(Te);break;default:ae=Pe+ve+ae+_e}return A(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=S(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=u(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(Z){return j(X*Z)+te}}}}c=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=c.format,c.formatPrefix},87108:function(d,s,n){n.r(s),n.d(s,{geoAiry:function(){return Z},geoAiryRaw:function(){return te},geoAitoff:function(){return re},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ve},geoBerghausRaw:function(){return ye},geoBertin1953:function(){return Qe},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Fe},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return tt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return Ot},geoChamberlinAfrica:function(){return Et},geoChamberlinRaw:function(){return ln},geoCollignon:function(){return Cn},geoCollignonRaw:function(){return cn},geoCraig:function(){return Sn},geoCraigRaw:function(){return Pn},geoCraster:function(){return st},geoCrasterRaw:function(){return xt},geoCylindricalEqualArea:function(){return Vt},geoCylindricalEqualAreaRaw:function(){return bt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Dt},geoEckert1:function(){return Bt},geoEckert1Raw:function(){return at},geoEckert2:function(){return qt},geoEckert2Raw:function(){return _t},geoEckert3:function(){return Jt},geoEckert3Raw:function(){return en},geoEckert4:function(){return Nt},geoEckert4Raw:function(){return Zt},geoEckert5:function(){return rn},geoEckert5Raw:function(){return sn},geoEckert6:function(){return wn},geoEckert6Raw:function(){return _n},geoEisenlohr:function(){return fr},geoEisenlohrRaw:function(){return Kn},geoFahey:function(){return tr},geoFaheyRaw:function(){return Zn},geoFoucaut:function(){return $r},geoFoucautRaw:function(){return Br},geoFoucautSinusoidal:function(){return qn},geoFoucautSinusoidalRaw:function(){return vr},geoGilbert:function(){return Vr},geoGingery:function(){return to},geoGingeryRaw:function(){return eo},geoGinzburg4:function(){return _o},geoGinzburg4Raw:function(){return Fo},geoGinzburg5:function(){return Mo},geoGinzburg5Raw:function(){return $o},geoGinzburg6:function(){return Hn},geoGinzburg6Raw:function(){return pi},geoGinzburg8:function(){return Dr},geoGinzburg8Raw:function(){return ar},geoGinzburg9:function(){return Zr},geoGinzburg9Raw:function(){return Sr},geoGringorten:function(){return io},geoGringortenQuincuncial:function(){return zc},geoGringortenRaw:function(){return oo},geoGuyou:function(){return On},geoGuyouRaw:function(){return Rr},geoHammer:function(){return Pe},geoHammerRaw:function(){return we},geoHammerRetroazimuthal:function(){return Er},geoHammerRetroazimuthalRaw:function(){return ir},geoHealpix:function(){return qr},geoHealpixRaw:function(){return zn},geoHill:function(){return wo},geoHillRaw:function(){return Cr},geoHomolosine:function(){return Fn},geoHomolosineRaw:function(){return Mn},geoHufnagel:function(){return xr},geoHufnagelRaw:function(){return dr},geoHyperelliptical:function(){return To},geoHyperellipticalRaw:function(){return Di},geoInterrupt:function(){return fs},geoInterruptedBoggs:function(){return yl},geoInterruptedHomolosine:function(){return yf},geoInterruptedMollweide:function(){return nf},geoInterruptedMollweideHemispheres:function(){return gp},geoInterruptedQuarticAuthalic:function(){return _r},geoInterruptedSinuMollweide:function(){return xh},geoInterruptedSinusoidal:function(){return Tc},geoKavrayskiy7:function(){return au},geoKavrayskiy7Raw:function(){return iu},geoLagrange:function(){return _s},geoLagrangeRaw:function(){return zf},geoLarrivee:function(){return Uc},geoLarriveeRaw:function(){return mu},geoLaskowski:function(){return Al},geoLaskowskiRaw:function(){return Kf},geoLittrow:function(){return Ml},geoLittrowRaw:function(){return Wl},geoLoximuthal:function(){return Nf},geoLoximuthalRaw:function(){return Jf},geoMiller:function(){return Gh},geoMillerRaw:function(){return Jl},geoModifiedStereographic:function(){return vu},geoModifiedStereographicAlaska:function(){return Lp},geoModifiedStereographicGs48:function(){return rh},geoModifiedStereographicGs50:function(){return rf},geoModifiedStereographicLee:function(){return bf},geoModifiedStereographicMiller:function(){return of},geoModifiedStereographicRaw:function(){return ll},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Kh},geoMtFlatPolarParabolicRaw:function(){return Zu},geoMtFlatPolarQuartic:function(){return ed},geoMtFlatPolarQuarticRaw:function(){return Cu},geoMtFlatPolarSinusoidal:function(){return vd},geoMtFlatPolarSinusoidalRaw:function(){return Bu},geoNaturalEarth:function(){return cs.c},geoNaturalEarth2:function(){return Jh},geoNaturalEarth2Raw:function(){return oh},geoNaturalEarthRaw:function(){return cs.g},geoNellHammer:function(){return xf},geoNellHammerRaw:function(){return _h},geoNicolosi:function(){return yd},geoNicolosiRaw:function(){return Ff},geoPatterson:function(){return Nh},geoPattersonRaw:function(){return jc},geoPeirceQuincuncial:function(){return Ud},geoPierceQuincuncial:function(){return Ud},geoPolyconic:function(){return td},geoPolyconicRaw:function(){return af},geoPolyhedral:function(){return gs},geoPolyhedralButterfly:function(){return _d},geoPolyhedralCollignon:function(){return vp},geoPolyhedralWaterman:function(){return ah},geoProject:function(){return cl},geoQuantize:function(){return cf},geoQuincuncial:function(){return ds},geoRectangularPolyconic:function(){return aa},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return Ri},geoRobinsonRaw:function(){return Mu},geoSatellite:function(){return qu},geoSatelliteRaw:function(){return Gc},geoSinuMollweide:function(){return Qt},geoSinuMollweideRaw:function(){return zo},geoSinusoidal:function(){return Me},geoSinusoidalRaw:function(){return Je},geoStitch:function(){return Ec},geoTimes:function(){return wt},geoTimesRaw:function(){return _u},geoTwoPointAzimuthal:function(){return wr},geoTwoPointAzimuthalRaw:function(){return En},geoTwoPointAzimuthalUsa:function(){return pr},geoTwoPointEquidistant:function(){return ya},geoTwoPointEquidistantRaw:function(){return uo},geoTwoPointEquidistantUsa:function(){return Bi},geoVanDerGrinten:function(){return Qi},geoVanDerGrinten2:function(){return nl},geoVanDerGrinten2Raw:function(){return Ws},geoVanDerGrinten3:function(){return Wu},geoVanDerGrinten3Raw:function(){return Fs},geoVanDerGrinten4:function(){return Aa},geoVanDerGrinten4Raw:function(){return Ki},geoVanDerGrintenRaw:function(){return Ni},geoWagner:function(){return Vf},geoWagner4:function(){return Pc},geoWagner4Raw:function(){return pl},geoWagner6:function(){return Os},geoWagner6Raw:function(){return Uf},geoWagner7:function(){return sh},geoWagnerRaw:function(){return Pl},geoWiechel:function(){return lc},geoWiechelRaw:function(){return Si},geoWinkel3:function(){return tp},geoWinkel3Raw:function(){return rd}});var u=n(87952),b=Math.abs,i=Math.atan,S=Math.atan2,w=Math.cos,y=Math.exp,m=Math.floor,a=Math.log,c=Math.max,h=Math.min,p=Math.pow,v=Math.round,_=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},O=Math.sin,C=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,P=M/4,A=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(kt){return kt>1?T:kt<-1?-T:Math.asin(kt)}function Q(kt){return kt>1?0:kt<-1?M:Math.acos(kt)}function j(kt){return kt>0?Math.sqrt(kt):0}function U(kt){return(y(kt)-y(-kt))/2}function X(kt){return(y(kt)+y(-kt))/2}function te(kt){var It=C(kt/2),Ut=2*a(w(kt/2))/(It*It);function J(le,ne){var V=w(le),ie=w(ne),ge=O(ne),xe=ie*V,Ee=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ut/(1+xe));return[Ee*ie*O(le),Ee*ge]}return J.invert=function(le,ne){var V,ie=j(le*le+ne*ne),ge=-kt/2,xe=50;if(!ie)return[0,0];do{var Ee=ge/2,Ne=w(Ee),et=O(Ee),rt=et/Ne,dt=-a(b(Ne));ge-=V=(2/rt*dt-Ut*rt-ie)/(-dt/(et*et)+1-Ut/(2*Ne*Ne))*(Ne<0?.7:1)}while(b(V)>x&&--xe>0);var gt=O(ge);return[S(le*gt,ie*w(ge)),$(ne*gt/ie)]},J}function Z(){var kt=T,It=(0,u.U)(te),Ut=It(kt);return Ut.radius=function(J){return arguments.length?It(kt=J*z):kt*I},Ut.scale(179.976).clipAngle(147)}function K(kt,It){var Ut=w(It),J=function(le){return le?le/Math.sin(le):1}(Q(Ut*w(kt/=2)));return[2*Ut*O(kt)*J,O(It)*J]}function re(){return(0,u.c)(K).scale(152.63)}function q(kt){var It=O(kt),Ut=w(kt),J=kt>=0?1:-1,le=C(J*kt),ne=(1+It-Ut)/2;function V(ie,ge){var xe=w(ge),Ee=w(ie/=2);return[(1+xe)*O(ie),(J*ge>-S(Ee,le)-.001?0:10*-J)+ne+O(ge)*Ut-(1+xe)*It*Ee]}return V.invert=function(ie,ge){var xe=0,Ee=0,Ne=50;do{var et=w(xe),rt=O(xe),dt=w(Ee),gt=O(Ee),Rt=1+dt,Mt=Rt*rt-ie,Xt=ne+gt*Ut-Rt*It*et-ge,dn=Rt*et/2,bn=-rt*gt,vn=It*Rt*rt/2,Ln=Ut*dt+It*et*gt,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn/2,pn=(Mt*vn-Xt*dn)/gn;b(pn)>2&&(pn/=2),xe-=Jn,Ee-=pn}while((b(Jn)>x||b(pn)>x)&&--Ne>0);return J*Ee>-S(w(xe),le)-.001?[2*xe,Ee]:null},V}function Y(){var kt=20*z,It=kt>=0?1:-1,Ut=C(It*kt),J=(0,u.U)(q),le=J(kt),ne=le.stream;return le.parallel=function(V){return arguments.length?(Ut=C((It=(kt=V*z)>=0?1:-1)*kt),J(kt)):kt*I},le.stream=function(V){var ie=le.rotate(),ge=ne(V),xe=(le.rotate([0,0]),ne(V)),Ee=le.precision();return le.rotate(ie),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Ne=-180*It;It*Ne<180;Ne+=90*It)xe.point(Ne,90*It);if(kt)for(;It*(Ne-=3*It*Ee)>=-180;)xe.point(Ne,It*-S(w(Ne*z/2),Ut)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(kt,It){var Ut=C(It/2),J=j(1-Ut*Ut),le=1+J*w(kt/=2),ne=O(kt)*J/le,V=Ut/le,ie=ne*ne,ge=V*V;return[1.3333333333333333*ne*(3+ie-3*ge),1.3333333333333333*V*(3+3*ie-ge)]}function me(){return(0,u.c)(ee).scale(66.1603)}K.invert=function(kt,It){if(!(kt*kt+4*It*It>M*M+x)){var Ut=kt,J=It,le=25;do{var ne,V=O(Ut),ie=O(Ut/2),ge=w(Ut/2),xe=O(J),Ee=w(J),Ne=O(2*J),et=xe*xe,rt=Ee*Ee,dt=ie*ie,gt=1-rt*ge*ge,Rt=gt?Q(Ee*ge)*j(ne=1/gt):ne=0,Mt=2*Rt*Ee*ie-kt,Xt=Rt*xe-It,dn=ne*(rt*dt+Rt*Ee*ge*et),bn=ne*(.5*V*Ne-2*Rt*xe*ie),vn=.25*ne*(Ne*ie-Rt*xe*rt*V),Ln=ne*(et*ge+Rt*dt*Ee),gn=bn*vn-Ln*dn;if(!gn)break;var Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},ee.invert=function(kt,It){if(It*=.375,!(kt*=.375)&&b(It)>1)return null;var Ut=1+kt*kt+It*It,J=j((Ut-j(Ut*Ut-4*It*It))/2),le=$(J)/3,ne=J?function(xe){return a(xe+j(xe*xe-1))}(b(It/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(kt))/3,V=w(le),ie=X(ne),ge=ie*ie-V*V;return[2*_(kt)*S(U(ne)*V,.25-ge),2*_(It)*S(ie*O(le),.25+ge)]};var pe=j(8),se=a(1+L);function ae(kt,It){var Ut=b(It);return UtR&&--ne>0);return[kt/(w(le)*(pe-1/O(le))),_(It)*le]};var de=n(69020);function ye(kt){var It=2*M/kt;function Ut(J,le){var ne=(0,de.O)(J,le);if(b(J)>T){var V=S(ne[1],ne[0]),ie=j(ne[0]*ne[0]+ne[1]*ne[1]),ge=It*v((V-T)/It)+T,xe=S(O(V-=ge),2-w(V));V=ge+$(M/ie*O(xe))-xe,ne[0]=ie*w(V),ne[1]=ie*O(V)}return ne}return Ut.invert=function(J,le){var ne=j(J*J+le*le);if(ne>T){var V=S(le,J),ie=It*v((V-T)/It)+T,ge=V>ie?-1:1,xe=ne*w(ie-V),Ee=1/C(ge*Q((xe-M)/j(M*(M-2*xe)+ne*ne)));V=ie+2*i((Ee+ge*j(Ee*Ee-3))/3),J=ne*w(V),le=ne*O(V)}return de.O.invert(J,le)},Ut}function ve(){var kt=5,It=(0,u.U)(ye),Ut=It(kt),J=Ut.stream,le=.01,ne=-w(le*z),V=O(le*z);return Ut.lobes=function(ie){return arguments.length?It(kt=+ie):kt},Ut.stream=function(ie){var ge=Ut.rotate(),xe=J(ie),Ee=(Ut.rotate([0,0]),J(ie));return Ut.rotate(ge),xe.sphere=function(){Ee.polygonStart(),Ee.lineStart();for(var Ne=0,et=360/kt,rt=2*M/kt,dt=90-180/kt,gt=T;Ne0&&b(J)>x);return V<0?NaN:Ut}function ze(kt,It,Ut){return It===void 0&&(It=40),Ut===void 0&&(Ut=R),function(J,le,ne,V){var ie,ge,xe;ne=ne===void 0?0:+ne,V=V===void 0?0:+V;for(var Ee=0;Eeie)ne-=ge/=2,V-=xe/=2;else{ie=dt;var gt=(ne>0?-1:1)*Ut,Rt=(V>0?-1:1)*Ut,Mt=kt(ne+gt,V),Xt=kt(ne,V+Rt),dn=(Mt[0]-Ne[0])/gt,bn=(Mt[1]-Ne[1])/gt,vn=(Xt[0]-Ne[0])/Rt,Ln=(Xt[1]-Ne[1])/Rt,gn=Ln*dn-bn*vn,Jn=(b(gn)<.5?.5:1)/gn;if(ne+=ge=(rt*vn-et*Ln)*Jn,V+=xe=(et*bn-rt*dn)*Jn,b(ge)0&&(ne[1]*=1+V/1.5*ne[0]*ne[0]),ne}return It.invert=ze(It),It}function Qe(){return(0,u.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(kt,It){var Ut,J=kt*O(It),le=30;do It-=Ut=(It+O(It)-J)/(1+w(It));while(b(Ut)>x&&--le>0);return It/2}function $e(kt,It,Ut){function J(le,ne){return[kt*le*w(ne=Ve(Ut,ne)),It*O(ne)]}return J.invert=function(le,ne){return ne=$(ne/It),[le/(kt*w(ne)),$((2*ne+O(2*ne))/Ut)]},J}Te.invert=function(kt,It){var Ut=2*$(It/2);return[kt*w(Ut/2)/w(Ut),Ut]};var Oe=$e(L/T,L,M);function ke(){return(0,u.c)(Oe).scale(169.529)}var Re=2.00276,We=1.11072;function Ue(kt,It){var Ut=Ve(M,It);return[Re*kt/(1/w(It)+We/w(Ut)),(It+L*O(Ut))/Re]}function Ze(){return(0,u.c)(Ue).scale(160.857)}function Ye(kt){var It=0,Ut=(0,u.U)(kt),J=Ut(It);return J.parallel=function(le){return arguments.length?Ut(It=le*z):It*I},J}function Je(kt,It){return[kt*w(It),It]}function Me(){return(0,u.c)(Je).scale(152.63)}function Fe(kt){if(!kt)return Je;var It=1/C(kt);function Ut(J,le){var ne=It+kt-le,V=ne&&J*w(le)/ne;return[ne*O(V),It-ne*w(V)]}return Ut.invert=function(J,le){var ne=j(J*J+(le=It-le)*le),V=It+kt-ne;return[ne/w(V)*S(J,le),V]},Ut}function je(){return Ye(Fe).scale(123.082).center([0,26.1441]).parallel(45)}function tt(kt){function It(Ut,J){var le=T-J,ne=le&&Ut*kt*O(le)/le;return[le*O(ne)/kt,T-le*w(ne)]}return It.invert=function(Ut,J){var le=Ut*kt,ne=T-J,V=j(le*le+ne*ne),ie=S(le,ne);return[(V?V/O(V):1)*ie/kt,T-V]},It}function ot(){var kt=.5,It=(0,u.U)(tt),Ut=It(kt);return Ut.fraction=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(158.837)}Ue.invert=function(kt,It){var Ut,J,le=Re*It,ne=It<0?-P:P,V=25;do J=le-L*O(ne),ne-=Ut=(O(2*ne)+2*ne-M*O(J))/(2*w(2*ne)+2+M*w(J)*L*w(ne));while(b(Ut)>x&&--V>0);return J=le-L*O(ne),[kt*(1/w(J)+We/w(ne))/Re,J]},Je.invert=function(kt,It){return[kt/w(It),It]};var Ge=$e(1,4/M,M);function ht(){return(0,u.c)(Ge).scale(152.63)}var pt=n(24052),St=n(92992);function Ft(kt,It,Ut,J,le,ne){var V,ie=w(ne);if(b(kt)>1||b(ne)>1)V=Q(Ut*le+It*J*ie);else{var ge=O(kt/2),xe=O(ne/2);V=2*$(j(ge*ge+It*J*xe*xe))}return b(V)>x?[V,S(J*O(ne),It*le-Ut*J*ie)]:[0,0]}function zt(kt,It,Ut){return Q((kt*kt+It*It-Ut*Ut)/(2*kt*It))}function Yt(kt){return kt-2*M*m((kt+M)/(2*M))}function ln(kt,It,Ut){for(var J,le=[[kt[0],kt[1],O(kt[1]),w(kt[1])],[It[0],It[1],O(It[1]),w(It[1])],[Ut[0],Ut[1],O(Ut[1]),w(Ut[1])]],ne=le[2],V=0;V<3;++V,ne=J)J=le[V],ne.v=Ft(J[1]-ne[1],ne[3],ne[2],J[3],J[2],J[0]-ne[0]),ne.point=[0,0];var ie=zt(le[0].v[0],le[2].v[0],le[1].v[0]),ge=zt(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ie;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Ee=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ie),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*O(ie))];return function(Ne,et){var rt,dt=O(et),gt=w(et),Rt=new Array(3);for(rt=0;rt<3;++rt){var Mt=le[rt];if(Rt[rt]=Ft(et-Mt[1],Mt[3],Mt[2],gt,dt,Ne-Mt[0]),!Rt[rt][0])return Mt.point;Rt[rt][1]=Yt(Rt[rt][1]-Mt.v[1])}var Xt=Ee.slice();for(rt=0;rt<3;++rt){var dn=rt==2?0:rt+1,bn=zt(le[rt].v[0],Rt[rt][0],Rt[dn][0]);Rt[rt][1]<0&&(bn=-bn),rt?rt==1?(bn=ge-bn,Xt[0]-=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn)):(bn=xe-bn,Xt[0]+=Rt[rt][0]*w(bn),Xt[1]+=Rt[rt][0]*O(bn)):(Xt[0]+=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn))}return Xt[0]/=3,Xt[1]/=3,Xt}}function tn(kt){return kt[0]*=z,kt[1]*=z,kt}function Et(){return Ot([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ot(kt,It,Ut){var J=(0,pt.c)({type:"MultiPoint",coordinates:[kt,It,Ut]}),le=[-J[0],-J[1]],ne=(0,St.c)(le),V=ln(tn(ne(kt)),tn(ne(It)),tn(ne(Ut)));V.invert=ze(V);var ie=(0,u.c)(V).rotate(le),ge=ie.center;return delete ie.rotate,ie.center=function(xe){return arguments.length?ge(ne(xe)):ne.invert(ge())},ie.clipAngle(90)}function cn(kt,It){var Ut=j(1-O(It));return[2/D*kt*Ut,D*(1-Ut)]}function Cn(){return(0,u.c)(cn).scale(95.6464).center([0,30])}function Pn(kt){var It=C(kt);function Ut(J,le){return[J,(J?J/O(J):1)*(O(le)*w(J)-It*w(le))]}return Ut.invert=It?function(J,le){J&&(le*=O(J)/J);var ne=w(J);return[J,2*S(j(ne*ne+It*It-le*le)-ne,It-le)]}:function(J,le){return[J,$(J?le*C(J)/J:le)]},Ut}function Sn(){return Ye(Pn).scale(249.828).clipAngle(90)}cn.invert=function(kt,It){var Ut=(Ut=It/D-1)*Ut;return[Ut>0?kt*j(M/Ut)/2:0,$(1-Ut)]};var vt=j(3);function xt(kt,It){return[vt*kt*(2*w(2*It/3)-1)/D,vt*D*O(It/3)]}function st(){return(0,u.c)(xt).scale(156.19)}function bt(kt){var It=w(kt);function Ut(J,le){return[J*It,O(le)/It]}return Ut.invert=function(J,le){return[J/It,$(le*It)]},Ut}function Vt(){return Ye(bt).parallel(38.58).scale(195.044)}function Dt(kt){var It=w(kt);function Ut(J,le){return[J*It,(1+It)*C(le/2)]}return Ut.invert=function(J,le){return[J/It,2*i(le/(1+It))]},Ut}function it(){return Ye(Dt).scale(124.75)}function at(kt,It){var Ut=j(8/(3*M));return[Ut*kt*(1-b(It)/M),Ut*It]}function Bt(){return(0,u.c)(at).scale(165.664)}function _t(kt,It){var Ut=j(4-3*O(b(It)));return[2/j(6*M)*kt*Ut,_(It)*j(2*M/3)*(2-Ut)]}function qt(){return(0,u.c)(_t).scale(165.664)}function en(kt,It){var Ut=j(M*(4+M));return[2/Ut*kt*(1+j(1-4*It*It/(M*M))),4/Ut*It]}function Jt(){return(0,u.c)(en).scale(180.739)}function Zt(kt,It){var Ut=(2+T)*O(It);It/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ne=w(It);It-=le=(It+O(It)*(ne+2)-Ut)/(2*ne*(1+ne))}return[2/j(M*(4+M))*kt*(1+w(It)),2*j(M/(4+M))*O(It)]}function Nt(){return(0,u.c)(Zt).scale(180.739)}function sn(kt,It){return[kt*(1+w(It))/j(2+M),2*It/j(2+M)]}function rn(){return(0,u.c)(sn).scale(173.044)}function _n(kt,It){for(var Ut=(1+T)*O(It),J=0,le=1/0;J<10&&b(le)>x;J++)It-=le=(It+O(It)-Ut)/(1+w(It));return Ut=j(2+M),[kt*(1+w(It))/Ut,2*It/Ut]}function wn(){return(0,u.c)(_n).scale(173.044)}xt.invert=function(kt,It){var Ut=3*$(It/(vt*D));return[D*kt/(vt*(2*w(2*Ut/3)-1)),Ut]},at.invert=function(kt,It){var Ut=j(8/(3*M)),J=It/Ut;return[kt/(Ut*(1-b(J)/M)),J]},_t.invert=function(kt,It){var Ut=2-b(It)/j(2*M/3);return[kt*j(6*M)/(2*Ut),_(It)*$((4-Ut*Ut)/3)]},en.invert=function(kt,It){var Ut=j(M*(4+M))/2;return[kt*Ut/(1+j(1-It*It*(4+M)/(4*M))),It*Ut/2]},Zt.invert=function(kt,It){var Ut=It*j((4+M)/M)/2,J=$(Ut),le=w(J);return[kt/(2/j(M*(4+M))*(1+le)),$((J+Ut*(le+2))/(2+T))]},sn.invert=function(kt,It){var Ut=j(2+M),J=It*Ut/2;return[Ut*kt/(1+w(J)),J]},_n.invert=function(kt,It){var Ut=1+T,J=j(Ut/2);return[2*kt*J/(1+w(It*=J)),$((It+O(It))/Ut)]};var An=3+2*L;function Kn(kt,It){var Ut=O(kt/=2),J=w(kt),le=j(w(It)),ne=w(It/=2),V=O(It)/(ne+L*J*le),ie=j(2/(1+V*V)),ge=j((L*ne+(J+Ut)*le)/(L*ne+(J-Ut)*le));return[An*(ie*(ge-1/ge)-2*a(ge)),An*(ie*V*(ge+1/ge)-2*i(V))]}function fr(){return(0,u.c)(Kn).scale(62.5271)}Kn.invert=function(kt,It){if(!(Ut=ee.invert(kt/1.2,1.065*It)))return null;var Ut,J=Ut[0],le=Ut[1],ne=20;kt/=An,It/=An;do{var V=J/2,ie=le/2,ge=O(V),xe=w(V),Ee=O(ie),Ne=w(ie),et=w(le),rt=j(et),dt=Ee/(Ne+L*xe*rt),gt=dt*dt,Rt=j(2/(1+gt)),Mt=(L*Ne+(xe+ge)*rt)/(L*Ne+(xe-ge)*rt),Xt=j(Mt),dn=Xt-1/Xt,bn=Xt+1/Xt,vn=Rt*dn-2*a(Xt)-kt,Ln=Rt*dt*bn-2*i(dt)-It,gn=Ee&&A*rt*ge*gt/Ee,Jn=(L*xe*Ne+rt)/(2*(Ne+L*xe*rt)*(Ne+L*xe*rt)*rt),pn=-.5*dt*Rt*Rt*Rt,In=pn*gn,Ir=pn*Jn,Pr=(Pr=2*Ne+L*rt*(xe-ge))*Pr*Xt,Gr=(L*xe*Ne*rt+et)/Pr,ro=-L*ge*Ee/(rt*Pr),po=dn*In-2*Gr/Xt+Rt*(Gr+Gr/Mt),Wo=dn*Ir-2*ro/Xt+Rt*(ro+ro/Mt),si=dt*bn*In-2*gn/(1+gt)+Rt*bn*gn+Rt*dt*(Gr-Gr/Mt),Bo=dt*bn*Ir-2*Jn/(1+gt)+Rt*bn*Jn+Rt*dt*(ro-ro/Mt),Go=Wo*si-Bo*po;if(!Go)break;var Yo=(Ln*Wo-vn*Bo)/Go,Wi=(vn*si-Ln*po)/Go;J-=Yo,le=c(-T,h(T,le-Wi))}while((b(Yo)>x||b(Wi)>x)&&--ne>0);return b(b(le)-T)J){var Ne=j(Ee),et=S(xe,ge),rt=Ut*v(et/Ut),dt=et-rt,gt=kt*w(dt),Rt=(kt*O(dt)-dt*O(gt))/(T-gt),Mt=Jr(dt,Rt),Xt=(M-kt)/Yr(Mt,gt,M);ge=Ne;var dn,bn=50;do ge-=dn=(kt+Yr(Mt,gt,ge)*Xt-Ne)/(Mt(ge)*Xt);while(b(dn)>x&&--bn>0);xe=dt*O(ge),geJ){var ge=j(ie),xe=S(V,ne),Ee=Ut*v(xe/Ut),Ne=xe-Ee;ne=ge*w(Ne),V=ge*O(Ne);for(var et=ne-T,rt=O(ne),dt=V/rt,gt=nex||b(et)>x)&&--gt>0);return[rt,dt]},ge}var Fo=co(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function _o(){return(0,u.c)(Fo).scale(149.995)}var $o=co(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Mo(){return(0,u.c)($o).scale(153.93)}var pi=co(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Hn(){return(0,u.c)(pi).scale(130.945)}function ar(kt,It){var Ut=kt*kt,J=It*It;return[kt*(1-.162388*J)*(.87-952426e-9*Ut*Ut),It*(1+J/12)]}function Dr(){return(0,u.c)(ar).scale(131.747)}ar.invert=function(kt,It){var Ut,J=kt,le=It,ne=50;do{var V=le*le;le-=Ut=(le*(1+V/12)-It)/(1+V/4)}while(b(Ut)>x&&--ne>0);ne=50,kt/=1-.162388*V;do{var ie=(ie=J*J)*ie;J-=Ut=(J*(.87-952426e-9*ie)-kt)/(.87-.00476213*ie)}while(b(Ut)>x&&--ne>0);return[J,le]};var Sr=co(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Zr(){return(0,u.c)(Sr).scale(131.087)}function go(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=J>0?-.5:.5,V=kt(J+ne*M,le);return V[0]-=ne*It,V}return kt.invert&&(Ut.invert=function(J,le){var ne=J>0?-.5:.5,V=kt.invert(J+ne*It,le),ie=V[0]-ne*M;return ie<-M?ie+=2*M:ie>M&&(ie-=2*M),V[0]=ie,V}),Ut}function oo(kt,It){var Ut=_(kt),J=_(It),le=w(It),ne=w(kt)*le,V=O(kt)*le,ie=O(J*It);kt=b(S(V,ie)),It=$(ne),b(kt-T)>x&&(kt%=T);var ge=function(xe,Ee){if(Ee===T)return[0,0];var Ne,et,rt=O(Ee),dt=rt*rt,gt=dt*dt,Rt=1+gt,Mt=1+3*gt,Xt=1-gt,dn=$(1/j(Rt)),bn=Xt+dt*Rt*dn,vn=(1-rt)/bn,Ln=j(vn),gn=vn*Rt,Jn=j(gn),pn=Ln*Xt;if(xe===0)return[0,-(pn+dt*Jn)];var In,Ir=w(Ee),Pr=1/Ir,Gr=2*rt*Ir,ro=(-bn*Ir-(1-rt)*((-3*dt+dn*Mt)*Gr))/(bn*bn),po=-Pr*Gr,Wo=-Pr*(dt*Rt*ro+vn*Mt*Gr),si=-2*Pr*(Xt*(.5*ro/Ln)-2*dt*Ln*Gr),Bo=4*xe/M;if(xe>.222*M||Ee.175*M){if(Ne=(pn+dt*j(gn*(1+gt)-pn*pn))/(1+gt),xe>M/4)return[Ne,Ne];var Go=Ne,Yo=.5*Ne;Ne=.5*(Yo+Go),et=50;do{var Wi=Ne*(si+po*j(gn-Ne*Ne))+Wo*$(Ne/Jn)-Bo;if(!Wi)break;Wi<0?Yo=Ne:Go=Ne,Ne=.5*(Yo+Go)}while(b(Go-Yo)>x&&--et>0)}else{Ne=x,et=25;do{var Ho=Ne*Ne,jo=j(gn-Ho),Yi=si+po*jo,ai=Ne*Yi+Wo*$(Ne/Jn)-Bo;Ne-=In=jo?ai/(Yi+(Wo-po*Ho)/jo):0}while(b(In)>x&&--et>0)}return[Ne,-pn-dt*j(gn-Ne*Ne)]}(kt>M/4?T-kt:kt,It);return kt>M/4&&(ie=ge[0],ge[0]=-ge[1],ge[1]=-ie),ge[0]*=Ut,ge[1]*=-J,ge}function io(){return(0,u.c)(go(oo)).scale(239.75)}function Do(kt,It){var Ut,J,le,ne,V,ie;if(It=1-x)return Ut=(1-It)/4,le=1/(J=X(kt)),[(ne=((ie=y(2*(ie=kt)))-1)/(ie+1))+Ut*((V=J*U(kt))-kt)/(J*J),le-Ut*ne*le*(V-kt),le+Ut*ne*le*(V+kt),2*i(y(kt))-T+Ut*(V-kt)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(It),0,0,0,0,0,0,0,0],Ee=0;for(J=j(1-It),V=1;b(xe[Ee]/ge[Ee])>x&&Ee<8;)Ut=ge[Ee++],xe[Ee]=(Ut-J)/2,ge[Ee]=(Ut+J)/2,J=j(Ut*J),V*=2;le=V*ge[Ee]*kt;do le=($(ne=xe[Ee]*O(J=le)/ge[Ee])+le)/2;while(--Ee);return[O(le),ne=w(le),ne/w(le-J),le]}function jn(kt,It){if(!It)return kt;if(It===1)return a(C(kt/2+P));for(var Ut=1,J=j(1-It),le=j(It),ne=0;b(le)>x;ne++){if(kt%M){var V=i(J*C(kt)/Ut);V<0&&(V+=M),kt+=V+~~(kt/M)*M}else kt+=kt;le=(Ut+J)/2,J=j(Ut*J),le=((Ut=le)-J)/2}return kt/(p(2,ne)*Ut)}function Rr(kt,It){var Ut=(L-1)/(L+1),J=j(1-Ut*Ut),le=jn(T,J*J),ne=a(C(M/4+b(It)/2)),V=y(-1*ne)/j(Ut),ie=function(xe,Ee){var Ne=xe*xe,et=Ee+1,rt=1-Ne-Ee*Ee;return[.5*((xe>=0?T:-T)-S(rt,2*xe)),-.25*a(rt*rt+4*Ne)+.5*a(et*et+Ne)]}(V*w(-1*kt),V*O(-1*kt)),ge=function(xe,Ee,Ne){var et=b(xe),rt=U(b(Ee));if(et){var dt=1/O(et),gt=1/(C(et)*C(et)),Rt=-(gt+Ne*(rt*rt*dt*dt)-1+Ne),Mt=(-Rt+j(Rt*Rt-(Ne-1)*gt*4))/2;return[jn(i(1/j(Mt)),Ne)*_(xe),jn(i(j((Mt/gt-1)/Ne)),1-Ne)*_(Ee)]}return[0,jn(i(rt),1-Ne)*_(Ee)]}(ie[0],ie[1],J*J);return[-ge[1],(It>=0?1:-1)*(.5*le-ge[0])]}function On(){return(0,u.c)(go(Rr)).scale(151.496)}oo.invert=function(kt,It){b(kt)>1&&(kt=2*_(kt)-kt),b(It)>1&&(It=2*_(It)-It);var Ut=_(kt),J=_(It),le=-Ut*kt,ne=-J*It,V=ne/le<1,ie=function(Ne,et){for(var rt=0,dt=1,gt=.5,Rt=50;;){var Mt=gt*gt,Xt=j(gt),dn=$(1/j(1+Mt)),bn=1-Mt+gt*(1+Mt)*dn,vn=(1-Xt)/bn,Ln=j(vn),gn=vn*(1+Mt),Jn=Ln*(1-Mt),pn=j(gn-Ne*Ne),In=et+Jn+gt*pn;if(b(dt-rt)0?rt=gt:dt=gt,gt=.5*(rt+dt)}if(!Rt)return null;var Ir=$(Xt),Pr=w(Ir),Gr=1/Pr,ro=2*Xt*Pr,po=(-bn*Pr-(-3*gt+dn*(1+3*Mt))*ro*(1-Xt))/(bn*bn);return[M/4*(Ne*(-2*Gr*((1-Mt)*(.5*po/Ln)-2*gt*Ln*ro)+-Gr*ro*pn)+-Gr*(gt*(1+Mt)*po+vn*(1+3*Mt)*ro)*$(Ne/j(gn))),Ir]}(V?ne:le,V?le:ne),ge=ie[0],xe=ie[1],Ee=w(xe);return V&&(ge=-T-ge),[Ut*(S(O(ge)*Ee,-O(xe))+M),J*$(w(ge)*Ee)]},Rr.invert=function(kt,It){var Ut,J,le,ne,V,ie,ge=(L-1)/(L+1),xe=j(1-ge*ge),Ee=(J=-kt,le=xe*xe,(Ut=.5*jn(T,xe*xe)-It)?(ne=Do(Ut,le),J?(ie=(V=Do(J,1-le))[1]*V[1]+le*ne[0]*ne[0]*V[0]*V[0],[[ne[0]*V[2]/ie,ne[1]*ne[2]*V[0]*V[1]/ie],[ne[1]*V[1]/ie,-ne[0]*ne[2]*V[0]*V[2]/ie],[ne[2]*V[1]*V[2]/ie,-le*ne[0]*ne[1]*V[0]/ie]]):[[ne[0],0],[ne[1],0],[ne[2],0]]):[[0,(V=Do(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Ne=function(et,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(et[0]*rt[0]+et[1]*rt[1])/dt,(et[1]*rt[0]-et[0]*rt[1])/dt]}(Ee[0],Ee[1]);return[S(Ne[1],Ne[0])/-1,2*i(y(-.5*a(ge*Ne[0]*Ne[0]+ge*Ne[1]*Ne[1])))-T]};var Yn=n(61780);function ir(kt){var It=O(kt),Ut=w(kt),J=kr(kt);function le(ne,V){var ie=J(ne,V);ne=ie[0],V=ie[1];var ge=O(V),xe=w(V),Ee=w(ne),Ne=Q(It*ge+Ut*xe*Ee),et=O(Ne),rt=b(et)>x?Ne/et:1;return[rt*Ut*O(ne),(b(ne)>T?rt:-rt)*(It*xe-Ut*ge*Ee)]}return J.invert=kr(-kt),le.invert=function(ne,V){var ie=j(ne*ne+V*V),ge=-O(ie),xe=w(ie),Ee=ie*xe,Ne=-V*ge,et=ie*It,rt=j(Ee*Ee+Ne*Ne-et*et),dt=S(Ee*et+Ne*rt,Ne*et-Ee*rt),gt=(ie>T?-1:1)*S(ne*ge,ie*w(dt)*xe+V*O(dt)*ge);return J.invert(gt,dt)},le}function kr(kt){var It=O(kt),Ut=w(kt);return function(J,le){var ne=w(le),V=w(J)*ne,ie=O(J)*ne,ge=O(le);return[S(ie,V*Ut-ge*It),$(ge*Ut+V*It)]}}function Er(){var kt=0,It=(0,u.U)(ir),Ut=It(kt),J=Ut.rotate,le=Ut.stream,ne=(0,Yn.c)();return Ut.parallel=function(V){if(!arguments.length)return kt*I;var ie=Ut.rotate();return It(kt=V*z).rotate(ie)},Ut.rotate=function(V){return arguments.length?(J.call(Ut,[V[0],V[1]-kt*I]),ne.center([-V[0],-V[1]]),Ut):((V=J.call(Ut))[1]+=kt*I,V)},Ut.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ie,ge=ne.radius(89.99)().coordinates[0],xe=ge.length-1,Ee=-1;for(V.lineStart();++Ee=0;)V.point((ie=ge[Ee])[0],ie[1]);V.lineEnd(),V.polygonEnd()},V},Ut.scale(79.4187).parallel(45).clipAngle(179.999)}var Gt=n(84706),on=n(16016),an=$(1-1/3)*I,Tn=bt(0);function zn(kt){var It=an*z,Ut=cn(M,It)[0]-cn(-M,It)[0],J=Tn(0,It)[1],le=cn(0,It)[1],ne=D-le,V=k/kt,ie=4/k,ge=J+ne*ne*4/k;function xe(Ee,Ne){var et,rt=b(Ne);if(rt>It){var dt=h(kt-1,c(0,m((Ee+M)/V)));(et=cn(Ee+=M*(kt-1)/kt-dt*V,rt))[0]=et[0]*k/Ut-k*(kt-1)/(2*kt)+dt*k/kt,et[1]=J+4*(et[1]-le)*ne/k,Ne<0&&(et[1]=-et[1])}else et=Tn(Ee,Ne);return et[0]*=ie,et[1]/=ge,et}return xe.invert=function(Ee,Ne){Ee/=ie;var et=b(Ne*=ge);if(et>J){var rt=h(kt-1,c(0,m((Ee+M)/V)));Ee=(Ee+M*(kt-1)/kt-rt*V)*Ut/k;var dt=cn.invert(Ee,.25*(et-J)*k/ne+le);return dt[0]-=M*(kt-1)/kt-rt*V,Ne<0&&(dt[1]=-dt[1]),dt}return Tn.invert(Ee,Ne)},xe}function Gn(kt,It){return[kt,1&It?90-x:an]}function Lr(kt,It){return[kt,1&It?-90+x:-an]}function Ur(kt){return[kt[0]*(1-x),kt[1]]}function qr(){var kt=4,It=(0,u.U)(zn),Ut=It(kt),J=Ut.stream;return Ut.lobes=function(le){return arguments.length?It(kt=+le):kt},Ut.stream=function(le){var ne=Ut.rotate(),V=J(le),ie=(Ut.rotate([0,0]),J(le));return Ut.rotate(ne),V.sphere=function(){var ge,xe;(0,on.c)((ge=180/kt,xe=[].concat((0,Gt.ik)(-180,180+ge/2,ge).map(Gn),(0,Gt.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Ur):xe]}),ie)},V},Ut.scale(239.75)}function Cr(kt){var It,Ut=1+kt,J=$(O(1/Ut)),le=2*j(M/(It=M+4*J*Ut)),ne=.5*le*(Ut+j(kt*(2+kt))),V=kt*kt,ie=Ut*Ut;function ge(xe,Ee){var Ne,et,rt=1-O(Ee);if(rt&&rt<2){var dt,gt=T-Ee,Rt=25;do{var Mt=O(gt),Xt=w(gt),dn=J+S(Mt,Ut-Xt),bn=1+ie-2*Ut*Xt;gt-=dt=(gt-V*J-Ut*Mt+bn*dn-.5*rt*It)/(2*Ut*Mt*dn)}while(b(dt)>R&&--Rt>0);Ne=le*j(bn),et=xe*dn/M}else Ne=le*(kt+rt),et=xe*J/M;return[Ne*O(et),ne-Ne*w(et)]}return ge.invert=function(xe,Ee){var Ne=xe*xe+(Ee-=ne)*Ee,et=(1+ie-Ne/(le*le))/(2*Ut),rt=Q(et),dt=O(rt),gt=J+S(dt,Ut-et);return[$(xe/j(Ne))*M/gt,$(1-2*(rt-V*J-Ut*dt+(1+ie-2*Ut*et)*gt)/It)]},ge}function wo(){var kt=1,It=(0,u.U)(Cr),Ut=It(kt);return Ut.ratio=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(167.774).center([0,18.67])}var Nr=.7109889596207567,Eo=.0528035274542;function zo(kt,It){return It>-Nr?((kt=Oe(kt,It))[1]+=Eo,kt):Je(kt,It)}function Qt(){return(0,u.c)(zo).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Mn(kt,It){return b(It)>Nr?((kt=Oe(kt,It))[1]-=It>0?Eo:-Eo,kt):Je(kt,It)}function Fn(){return(0,u.c)(Mn).scale(152.63)}function dr(kt,It,Ut,J){var le=j(4*M/(2*Ut+(1+kt-It/2)*O(2*Ut)+(kt+It)/2*O(4*Ut)+It/2*O(6*Ut))),ne=j(J*O(Ut)*j((1+kt*w(2*Ut)+It*w(4*Ut))/(1+kt+It))),V=Ut*ge(1);function ie(Ne){return j(1+kt*w(2*Ne)+It*w(4*Ne))}function ge(Ne){var et=Ne*Ut;return(2*et+(1+kt-It/2)*O(2*et)+(kt+It)/2*O(4*et)+It/2*O(6*et))/Ut}function xe(Ne){return ie(Ne)*O(Ne)}var Ee=function(Ne,et){var rt=Ut*Ie(ge,V*O(et)/Ut,et/M);isNaN(rt)&&(rt=Ut*_(et));var dt=le*ie(rt);return[dt*ne*Ne/M*w(rt),dt/ne*O(rt)]};return Ee.invert=function(Ne,et){var rt=Ie(xe,et*ne/le);return[Ne*M/(w(rt)*le*ne*ie(rt)),$(Ut*ge(rt/Ut)/V)]},Ut===0&&(le=j(J/M),(Ee=function(Ne,et){return[Ne*le,O(et)/le]}).invert=function(Ne,et){return[Ne/le,$(et*le)]}),Ee}function xr(){var kt=1,It=0,Ut=45*z,J=2,le=(0,u.U)(dr),ne=le(kt,It,Ut,J);return ne.a=function(V){return arguments.length?le(kt=+V,It,Ut,J):kt},ne.b=function(V){return arguments.length?le(kt,It=+V,Ut,J):It},ne.psiMax=function(V){return arguments.length?le(kt,It,Ut=+V*z,J):Ut*I},ne.ratio=function(V){return arguments.length?le(kt,It,Ut,J=+V):J},ne.scale(180.739)}function Oo(kt,It,Ut,J,le,ne,V,ie,ge,xe,Ee){if(Ee.nanEncountered)return NaN;var Ne,et,rt,dt,gt,Rt,Mt,Xt,dn,bn;if(et=kt(It+.25*(Ne=Ut-It)),rt=kt(Ut-.25*Ne),isNaN(et))Ee.nanEncountered=!0;else{if(!isNaN(rt))return bn=((Rt=(dt=Ne*(J+4*et+le)/12)+(gt=Ne*(le+4*rt+ne)/12))-V)/15,xe>ge?(Ee.maxDepthCount++,Rt+bn):Math.abs(bn)rt?gt=Rt:dt=Rt,Rt=dt+gt>>1;while(Rt>dt);var Mt=ge[Rt+1]-ge[Rt];return Mt&&(Mt=(rt-ge[Rt+1])/Mt),(Rt+1+Mt)/V}var Ne=2*Ee(1)/M*ne/Ut,et=function(rt,dt){var gt=Ee(b(O(dt))),Rt=J(gt)*rt;return gt/=Ne,[Rt,dt>=0?gt:-gt]};return et.invert=function(rt,dt){var gt;return b(dt*=Ne)<1&&(gt=_(dt)*$(le(b(dt))*ne)),[rt/J(b(dt)),gt]},et}function To(){var kt=0,It=2.5,Ut=1.183136,J=(0,u.U)(Di),le=J(kt,It,Ut);return le.alpha=function(ne){return arguments.length?J(kt=+ne,It,Ut):kt},le.k=function(ne){return arguments.length?J(kt,It=+ne,Ut):It},le.gamma=function(ne){return arguments.length?J(kt,It,Ut=+ne):Ut},le.scale(152.63)}function Ia(kt,It){return b(kt[0]-It[0])Ne[et][2][0];++et);var dt=kt(ge-Ne[et][1][0],xe);return dt[0]+=kt(Ne[et][1][0],Ee*xe>Ee*Ne[et][0][1]?Ne[et][0][1]:xe)[0],dt}Ut?ne.invert=Ut(ne):kt.invert&&(ne.invert=function(ge,xe){for(var Ee=le[+(xe<0)],Ne=It[+(xe<0)],et=0,rt=Ee.length;et=0;--Rt)Ne=(Ee=xe[1][Rt])[0][0],et=Ee[0][1],rt=Ee[1][1],dt=Ee[2][0],gt=Ee[2][1],Mt.push(Ds([[dt-x,gt-x],[dt-x,rt+x],[Ne+x,rt+x],[Ne+x,et-x]],30));return{type:"Polygon",coordinates:[(0,Gt.Uf)(Mt)]}}(ge),It=ge.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*z,Ee[0][1]*z],[Ee[1][0]*z,Ee[1][1]*z],[Ee[2][0]*z,Ee[2][1]*z]]})}),le=It.map(function(xe){return xe.map(function(Ee){var Ne,et=kt(Ee[0][0],Ee[0][1])[0],rt=kt(Ee[2][0],Ee[2][1])[0],dt=kt(Ee[1][0],Ee[0][1])[1],gt=kt(Ee[1][0],Ee[1][1])[1];return dt>gt&&(Ne=dt,dt=gt,gt=Ne),[[et,dt],[rt,gt]]})}),V):It.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*I,Ee[0][1]*I],[Ee[1][0]*I,Ee[1][1]*I],[Ee[2][0]*I,Ee[2][1]*I]]})})},It!=null&&V.lobes(It),V}zo.invert=function(kt,It){return It>-Nr?Oe.invert(kt,It-Eo):Je.invert(kt,It)},Mn.invert=function(kt,It){return b(It)>Nr?Oe.invert(kt,It+(It>0?Eo:-Eo)):Je.invert(kt,It)};var zi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yl(){return fs(Ue,zi).scale(160.857)}var Bs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yf(){return fs(Mn,Bs).scale(152.63)}var il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function nf(){return fs(Oe,il).scale(169.529)}var nh=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gp(){return fs(Oe,nh).scale(169.529).rotate([20,0])}var Qs=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function xh(){return fs(zo,Qs,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Bl=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tc(){return fs(Je,Bl).scale(152.63).rotate([-20,0])}function iu(kt,It){return[3/k*kt*j(M*M/3-It*It),It]}function au(){return(0,u.c)(iu).scale(158.837)}function zf(kt){function It(Ut,J){if(b(b(J)-T)2)return null;var ne=(Ut/=2)*Ut,V=(J/=2)*J,ie=2*J/(1+ne+V);return ie=p((1+ie)/(1-ie),1/kt),[S(2*Ut,1-ne-V)/kt,$((ie-1)/(ie+1))]},It}function _s(){var kt=.5,It=(0,u.U)(zf),Ut=It(kt);return Ut.spacing=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(124.75)}iu.invert=function(kt,It){return[k/3*kt/j(M*M/3-It*It),It]};var ma=M/L;function mu(kt,It){return[kt*(1+j(w(It)))/2,It/(w(It/2)*w(kt/6))]}function Uc(){return(0,u.c)(mu).scale(97.2672)}function Kf(kt,It){var Ut=kt*kt,J=It*It;return[kt*(.975534+J*(-.0143059*Ut-.119161+-.0547009*J)),It*(1.00384+Ut*(.0802894+-.02855*J+199025e-9*Ut)+J*(.0998909+-.0491032*J))]}function Al(){return(0,u.c)(Kf).scale(139.98)}function Wl(kt,It){return[O(kt)/w(It),C(It)*w(kt)]}function Ml(){return(0,u.c)(Wl).scale(144.049).clipAngle(89.999)}function Jf(kt){var It=w(kt),Ut=C(P+kt/2);function J(le,ne){var V=ne-kt,ie=b(V)=0;)et=(Ne=kt[Ee])[0]+ge*(ne=et)-xe*rt,rt=Ne[1]+ge*rt+xe*ne;return[et=ge*(ne=et)-xe*rt,rt=ge*rt+xe*ne]}return Ut.invert=function(J,le){var ne=20,V=J,ie=le;do{for(var ge,xe=It,Ee=kt[xe],Ne=Ee[0],et=Ee[1],rt=0,dt=0;--xe>=0;)rt=Ne+V*(ge=rt)-ie*dt,dt=et+V*dt+ie*ge,Ne=(Ee=kt[xe])[0]+V*(ge=Ne)-ie*et,et=Ee[1]+V*et+ie*ge;var gt,Rt,Mt=(rt=Ne+V*(ge=rt)-ie*dt)*rt+(dt=et+V*dt+ie*ge)*dt;V-=gt=((Ne=V*(ge=Ne)-ie*et-J)*rt+(et=V*et+ie*ge-le)*dt)/Mt,ie-=Rt=(et*rt-Ne*dt)/Mt}while(b(gt)+b(Rt)>x*x&&--ne>0);if(ne){var Xt=j(V*V+ie*ie),dn=2*i(.5*Xt),bn=O(dn);return[S(V*bn,Xt*w(dn)),Xt?$(ie*bn/Xt):0]}},Ut}mu.invert=function(kt,It){var Ut=b(kt),J=b(It),le=x,ne=T;Jx||b(Rt)>x)&&--le>0);return le&&[Ut,J]},Wl.invert=function(kt,It){var Ut=kt*kt,J=It*It+1,le=Ut+J,ne=kt?A*j((le-j(le*le-4*Ut))/Ut):1/j(J);return[$(kt*ne),_(It)*Q(ne)]},Jl.invert=function(kt,It){return[kt,2.5*i(y(.8*It))-.625*M]};var Tu=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],gu=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ec=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Dc=[[.9245,0],[0,0],[.01943,0]],tc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Lp(){return vu(Tu,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function rh(){return vu(gu,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function rf(){return vu(ec,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function of(){return vu(Dc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function bf(){return vu(tc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function vu(kt,It){var Ut=(0,u.c)(ll(kt)).rotate(It).clipAngle(90),J=(0,St.c)(It),le=Ut.center;return delete Ut.rotate,Ut.center=function(ne){return arguments.length?le(J(ne)):J.invert(le())},Ut}var $d=j(6),bl=j(7);function Zu(kt,It){var Ut=$(7*O(It)/(3*$d));return[$d*kt*(2*w(2*Ut/3)-1)/bl,9*O(Ut/3)/bl]}function Kh(){return(0,u.c)(Zu).scale(164.859)}function Cu(kt,It){for(var Ut,J=(1+A)*O(It),le=It,ne=0;ne<25&&(le-=Ut=(O(le/2)+O(le)-J)/(.5*w(le/2)+w(le)),!(b(Ut)R&&--ie>0);return[kt/(.84719-.13063*(J=V*V)+(ne=J*(le=J*J))*ne*(.05494*J-.04515-.02326*le+.00331*ne)),V]},_h.invert=function(kt,It){for(var Ut=It/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ne=w(It/2);It-=le=(It-C(It/2)-Ut)/(1-.5/(ne*ne))}return[2*kt/(1+w(It)),It]};var ep=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function _r(){return fs(we(1/0),ep).rotate([20,0]).scale(152.63)}function Ff(kt,It){var Ut=O(It),J=w(It),le=_(kt);if(kt===0||b(It)===T)return[0,It];if(It===0)return[kt,0];if(b(kt)===T)return[kt*J,T*Ut];var ne=M/(2*kt)-2*kt/M,V=2*It/M,ie=(1-V*V)/(Ut-V),ge=ne*ne,xe=ie*ie,Ee=1+ge/xe,Ne=1+xe/ge,et=(ne*Ut/ie-ne/2)/Ee,rt=(xe*Ut/ge+ie/2)/Ne,dt=rt*rt-(xe*Ut*Ut/ge+ie*Ut-1)/Ne;return[T*(et+j(et*et+J*J/Ee)*le),T*(rt+j(dt<0?0:dt)*_(-It*ne)*le)]}function yd(){return(0,u.c)(Ff).scale(127.267)}Ff.invert=function(kt,It){var Ut=(kt/=T)*kt,J=Ut+(It/=T)*It,le=M*M;return[kt?(J-1+j((1-J)*(1-J)+4*Ut))/(2*kt)*T:0,Ie(function(ne){return J*(M*O(ne)-2*ne)*M+4*ne*ne*(It-O(ne))+2*M*ne-le*It},0)]};var bd=1.0148,wh=.23185,zu=-.14499,va=.02406,El=bd,_f=5*wh,$f=7*zu,ih=9*va,yu=1.790857183;function jc(kt,It){var Ut=It*It;return[kt,It*(bd+Ut*Ut*(wh+Ut*(zu+va*Ut)))]}function Nh(){return(0,u.c)(jc).scale(139.319)}function af(kt,It){if(b(It)yu?It=yu:It<-1.790857183&&(It=-1.790857183);var Ut,J=It;do{var le=J*J;J-=Ut=(J*(bd+le*le*(wh+le*(zu+va*le)))-It)/(El+le*le*(_f+le*($f+ih*le)))}while(b(Ut)>x);return[kt,J]},af.invert=function(kt,It){if(b(It)x&&--ne>0);return V=C(le),[(b(It)=0;)if(Jn=Ln[Pr],gn[0]===Jn[0]&&gn[1]===Jn[1]){if(In)return[In,gn];In=gn}}}(ge.face,xe.face),Ne=(gt=Ee.map(xe.project),Rt=Ee.map(ge.project),Mt=xd(gt[1],gt[0]),Xt=xd(Rt[1],Rt[0]),dn=function(vn,Ln){return S(vn[0]*Ln[1]-vn[1]*Ln[0],vn[0]*Ln[0]+vn[1]*Ln[1])}(Mt,Xt),bn=vc(Mt)/vc(Xt),Vd([1,0,gt[0][0],0,1,gt[0][1]],Vd([bn,0,0,0,bn,0],Vd([w(dn),O(dn),0,-O(dn),w(dn),0],[1,0,-Rt[0][0],0,1,-Rt[0][1]]))));ge.transform=xe.transform?Vd(xe.transform,Ne):Ne;for(var et=xe.edges,rt=0,dt=et.length;rt0?[-J[0],0]:[180-J[0],180])};var It=Ac.map(function(Ut){return{face:Ut,project:kt(Ut)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ut,J){var le=It[Ut];le&&(le.children||(le.children=[])).push(It[J])}),gs(It[0],function(Ut,J){return It[Ut<-M/2?J<0?6:4:Ut<0?J<0?2:0:Utge^Xt>ge&&ie<(Mt-dt)*(ge-gt)/(Xt-gt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ut),!0})||kt.push([Ut])}),wi=[],kt.length?kt.length>1?{type:"MultiPolygon",coordinates:kt}:{type:"Polygon",coordinates:kt[0]}:null}};function ds(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=b(J)0?J-M:J+M,le),ie=(V[0]-V[1])*A,ge=(V[0]+V[1])*A;if(ne)return[ie,ge];var xe=It*A,Ee=ie>0^ge>0?-1:1;return[Ee*ie-_(ge)*xe,Ee*ge-_(ie)*xe]}return kt.invert&&(Ut.invert=function(J,le){var ne=(J+le)*A,V=(le-J)*A,ie=b(ne)<.5*It&&b(V)<.5*It;if(!ie){var ge=It*A,xe=ne>0^V>0?-1:1,Ee=-xe*J+(V>0?1:-1)*ge,Ne=-xe*le+(ne>0?1:-1)*ge;ne=(-Ee-Ne)*A,V=(Ee-Ne)*A}var et=kt.invert(ne,V);return ie||(et[0]+=ne>0?M:-M),et}),(0,u.c)(Ut).rotate([-90,-90,45]).clipAngle(179.999)}function zc(){return ds(oo).scale(176.423)}function Ud(){return ds(Rr).scale(111.48)}function cf(kt,It){if(!(0<=(It=+It)&&It<=20))throw new Error("invalid digits");function Ut(xe){var Ee=xe.length,Ne=2,et=new Array(Ee);for(et[0]=+xe[0].toFixed(It),et[1]=+xe[1].toFixed(It);Ne2||rt[0]!=Ee[0]||rt[1]!=Ee[1])&&(Ne.push(rt),Ee=rt)}return Ne.length===1&&xe.length>1&&Ne.push(Ut(xe[xe.length-1])),Ne}function ne(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Ee;switch(xe.type){case"GeometryCollection":Ee={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Ee={type:"Point",coordinates:Ut(xe.coordinates)};break;case"MultiPoint":Ee={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Ee={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Ee={type:xe.type,coordinates:ne(xe.coordinates)};break;case"MultiPolygon":Ee={type:"MultiPolygon",coordinates:xe.coordinates.map(ne)};break;default:return xe}return xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}function ie(xe){var Ee={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Ee.id=xe.id),xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}if(kt!=null)switch(kt.type){case"Feature":return ie(kt);case"FeatureCollection":var ge={type:"FeatureCollection",features:kt.features.map(ie)};return kt.bbox!=null&&(ge.bbox=kt.bbox),ge;default:return V(kt)}return kt}function Of(kt){var It=O(kt);function Ut(J,le){var ne=It?C(J*It/2)/It:J/2;if(!le)return[2*ne,-kt];var V=2*i(ne*O(le)),ie=1/C(le);return[O(V)*ie,le+(1-w(V))*ie-kt]}return Ut.invert=function(J,le){if(b(le+=kt)x&&--ge>0);var et=J*(xe=C(ie)),rt=C(b(le)0?T:-T)*(xe+ne*(Ne-ie)/2+ne*ne*(Ne-2*xe+ie)/2)]}function Ri(){return(0,u.c)(Mu).scale(152.63)}function Gc(kt,It){var Ut=function(V){function ie(ge,xe){var Ee=w(xe),Ne=(V-1)/(V-Ee*w(ge));return[Ne*Ee*O(ge),Ne*O(xe)]}return ie.invert=function(ge,xe){var Ee=ge*ge+xe*xe,Ne=j(Ee),et=(V-j(1-Ee*(V+1)/(V-1)))/((V-1)/Ne+Ne/(V-1));return[S(ge*et,Ne*j(1-et*et)),Ne?$(xe*et/Ne):0]},ie}(kt);if(!It)return Ut;var J=w(It),le=O(It);function ne(V,ie){var ge=Ut(V,ie),xe=ge[1],Ee=xe*le/(kt-1)+J;return[ge[0]*J/Ee,xe/Ee]}return ne.invert=function(V,ie){var ge=(kt-1)/(kt-1-ie*le);return Ut.invert(ge*V,ge*ie*J)},ne}function qu(){var kt=2,It=0,Ut=(0,u.U)(Gc),J=Ut(kt,It);return J.distance=function(le){return arguments.length?Ut(kt=+le,It):kt},J.tilt=function(le){return arguments.length?Ut(kt,It=le*z):It*I},J.scale(432.147).clipAngle(Q(1/kt)*I-1e-6)}rs.forEach(function(kt){kt[1]*=1.0144}),Mu.invert=function(kt,It){var Ut=It/T,J=90*Ut,le=h(18,b(J/5)),ne=c(0,m(le));do{var V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],xe=ge-V,Ee=ge-2*ie+V,Ne=2*(b(Ut)-ie)/xe,et=Ee/xe,rt=Ne*(1-et*Ne*(1-2*et*Ne));if(rt>=0||ne===1){J=(It>=0?5:-5)*(rt+le);var dt,gt=50;do rt=(le=h(18,b(J)/5))-(ne=m(le)),V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],J-=(dt=(It>=0?T:-T)*(ie+rt*(ge-V)/2+rt*rt*(ge-2*ie+V)/2)-It)*I;while(b(dt)>R&&--gt>0);break}}while(--ne>=0);var Rt=rs[ne][0],Mt=rs[ne+1][0],Xt=rs[h(19,ne+2)][0];return[kt/(Mt+rt*(Xt-Rt)/2+rt*rt*(Xt-2*Mt+Rt)/2),J*z]};var zl=1e-4,xc=1e4,Kc=-180,jd=Kc+zl,ii=180,nd=ii-zl,al=-90,Yl=al+zl,uf=90,hs=uf-zl;function Mc(kt){return kt.length>0}function Eu(kt){return kt===al||kt===uf?[0,kt]:[Kc,(It=kt,Math.floor(It*xc)/xc)];var It}function xu(kt){var It=kt[0],Ut=kt[1],J=!1;return It<=jd?(It=Kc,J=!0):It>=nd&&(It=ii,J=!0),Ut<=Yl?(Ut=al,J=!0):Ut>=hs&&(Ut=uf,J=!0),J?[It,Ut]:kt}function ws(kt){return kt.map(xu)}function Fu(kt,It,Ut){for(var J=0,le=kt.length;J=nd||Ee<=Yl||Ee>=hs){ne[V]=xu(ge);for(var Ne=V+1;Nejd&&rtYl&&dt=ie)break;Ut.push({index:-1,polygon:It,ring:ne=ne.slice(Ne-1)}),ne[0]=Eu(ne[0][1]),V=-1,ie=ne.length}}}}function su(kt){var It,Ut,J,le,ne,V,ie=kt.length,ge={},xe={};for(It=0;It0?M-ie:ie)*I],xe=(0,u.c)(kt(V)).rotate(ge),Ee=(0,St.c)(ge),Ne=xe.center;return delete xe.rotate,xe.center=function(et){return arguments.length?Ne(Ee(et)):Ee.invert(Ne())},xe.clipAngle(90)}function En(kt){var It=w(kt);function Ut(J,le){var ne=(0,Gs.Y)(J,le);return ne[0]*=It,ne}return Ut.invert=function(J,le){return Gs.Y.invert(J/It,le)},Ut}function pr(){return wr([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function wr(kt,It){return Kt(En,kt,It)}function uo(kt){if(!(kt*=2))return de.O;var It=-kt/2,Ut=-It,J=kt*kt,le=C(Ut),ne=.5/O(Ut);function V(ie,ge){var xe=Q(w(ge)*w(ie-It)),Ee=Q(w(ge)*w(ie-Ut));return[((xe*=xe)-(Ee*=Ee))/(2*kt),(ge<0?-1:1)*j(4*J*Ee-(J-xe+Ee)*(J-xe+Ee))/(2*kt)]}return V.invert=function(ie,ge){var xe,Ee,Ne=ge*ge,et=w(j(Ne+(xe=ie+It)*xe)),rt=w(j(Ne+(xe=ie+Ut)*xe));return[S(Ee=et-rt,xe=(et+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Ee*Ee)*ne)]},V}function Bi(){return ya([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ya(kt,It){return Kt(uo,kt,It)}function Ni(kt,It){if(b(It)x&&--ie>0);return[_(kt)*(j(le*le+4)+le)*M/4,T*V]};var _c=4*M+3*j(3),Xl=2*j(2*M*j(3)/_c),pl=$e(Xl*j(3)/M,Xl,_c/6);function Pc(){return(0,u.c)(pl).scale(176.84)}function Uf(kt,It){return[kt*j(1-3*It*It/(M*M)),It]}function Os(){return(0,u.c)(Uf).scale(152.63)}function Si(kt,It){var Ut=w(It),J=w(kt)*Ut,le=1-J,ne=w(kt=S(O(kt)*Ut,-O(It))),V=O(kt);return[V*(Ut=j(1-J*J))-ne*le,-ne*Ut-V*le]}function lc(){return(0,u.c)(Si).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function rd(kt,It){var Ut=K(kt,It);return[(Ut[0]+kt/T)/2,(Ut[1]+It)/2]}function tp(){return(0,u.c)(rd).scale(158.837)}Uf.invert=function(kt,It){return[kt/j(1-3*It*It/(M*M)),It]},Si.invert=function(kt,It){var Ut=(kt*kt+It*It)/-2,J=j(-Ut*(2+Ut)),le=It*Ut+kt*J,ne=kt*Ut-It*J,V=j(ne*ne+le*le);return[S(J*le,V*(1+Ut)),V?-$(J*ne/V):0]},rd.invert=function(kt,It){var Ut=kt,J=It,le=25;do{var ne,V=w(J),ie=O(J),ge=O(2*J),xe=ie*ie,Ee=V*V,Ne=O(Ut),et=w(Ut/2),rt=O(Ut/2),dt=rt*rt,gt=1-Ee*et*et,Rt=gt?Q(V*et)*j(ne=1/gt):ne=0,Mt=.5*(2*Rt*V*rt+Ut/T)-kt,Xt=.5*(Rt*ie+J)-It,dn=.5*ne*(Ee*dt+Rt*V*et*xe)+.5/T,bn=ne*(Ne*ge/4-Rt*ie*rt),vn=.125*ne*(ge*rt-Rt*ie*Ee*Ne),Ln=.5*ne*(xe*et+Rt*dt*V)+.5,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},88728:function(d,s,n){function u(){return new b}function b(){this.reset()}n.d(s,{c:function(){return u}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){S(i,w,this.t),S(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function S(w,y,m){var a=w.s=y+m,c=a-y,h=a-c;w.t=y-h+(m-c)}},95384:function(d,s,n){n.d(s,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var u,b,i,S,w,y=n(88728),m=n(64528),a=n(70932),c=n(16016),h=(0,y.c)(),p=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=O},polygonEnd:function(){var M=+h;p.add(M<0?m.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){p.add(m.kD)}};function _(){v.point=C}function O(){x(u,b)}function C(M,T){v.point=x,u=M,b=T,M*=m.qw,T*=m.qw,i=M,S=(0,m.W8)(T=T/2+m.wL),w=(0,m.g$)(T)}function x(M,T){M*=m.qw,T=(T*=m.qw)/2+m.wL;var P=M-i,A=P>=0?1:-1,L=A*P,D=(0,m.W8)(T),k=(0,m.g$)(T),I=w*k,z=S*D+I*(0,m.W8)(L),$=I*A*(0,m.g$)(L);h.add((0,m.WE)($,z)),i=M,S=D,w=k}function R(M){return p.reset(),(0,c.c)(M,v),2*p}},13696:function(d,s,n){n.d(s,{c:function(){return Q}});var u,b,i,S,w,y,m,a,c,h,p=n(88728),v=n(95384),_=n(84220),O=n(64528),C=n(16016),x=(0,p.c)(),R={point:M,lineStart:P,lineEnd:A,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=P,R.lineEnd=A,v.mQ<0?(u=-(i=180),b=-(S=90)):x>O.Gg?S=90:x<-O.Gg&&(b=-90),h[0]=u,h[1]=i},sphere:function(){u=-(i=180),b=-(S=90)}};function M(j,U){c.push(h=[u=j,i=j]),US&&(S=U)}function T(j,U){var X=(0,_.ux)([j*O.qw,U*O.qw]);if(a){var te=(0,_.CW)(a,X),Z=[te[1],-te[0],0],K=(0,_.CW)(Z,te);(0,_.cJ)(K),K=(0,_.G)(K);var re,q=j-w,Y=q>0?1:-1,ee=K[0]*O.oh*Y,me=(0,O.a2)(q)>180;me^(Y*wS&&(S=re):me^(Y*w<(ee=(ee+360)%360-180)&&eeS&&(S=U)),me?jI(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j):i>=u?(ji&&(i=j)):j>w?I(u,j)>I(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j)}else c.push(h=[u=j,i=j]);US&&(S=U),a=X,w=j}function P(){R.point=T}function A(){h[0]=u,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,O.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,m=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,m),v.oB.lineEnd(),(0,O.a2)(x)>O.Gg&&(u=-(i=180)),h[0]=u,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=Z[1]),I(Z[0],te[1])>I(te[0],te[1])&&(te[0]=Z[0])):K.push(te=Z);for(re=-1/0,U=0,te=K[X=K.length-1];U<=X;te=Z,++U)Z=K[U],(q=I(te[1],Z[0]))>re&&(re=q,u=Z[0],i=te[1])}return c=h=null,u===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,b],[i,S]]}},84220:function(d,s,n){n.d(s,{CW:function(){return w},Ez:function(){return S},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return m}});var u=n(64528);function b(c){return[(0,u.WE)(c[1],c[0]),(0,u.qR)(c[2])]}function i(c){var h=c[0],p=c[1],v=(0,u.W8)(p);return[v*(0,u.W8)(h),v*(0,u.g$)(h),(0,u.g$)(p)]}function S(c,h){return c[0]*h[0]+c[1]*h[1]+c[2]*h[2]}function w(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function y(c,h){c[0]+=h[0],c[1]+=h[1],c[2]+=h[2]}function m(c,h){return[c[0]*h,c[1]*h,c[2]*h]}function a(c){var h=(0,u._I)(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]);c[0]/=h,c[1]/=h,c[2]/=h}},24052:function(d,s,n){n.d(s,{c:function(){return X}});var u,b,i,S,w,y,m,a,c,h,p,v,_,O,C,x,R=n(64528),M=n(70932),T=n(16016),P={sphere:M.c,point:A,lineStart:D,lineEnd:z,polygonStart:function(){P.lineStart=$,P.lineEnd=Q},polygonEnd:function(){P.lineStart=D,P.lineEnd=z}};function A(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(Z))}function L(te,Z,K){++u,i+=(te-i)/u,S+=(Z-S)/u,w+=(K-w)/u}function D(){P.point=k}function k(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),P.point=I,L(O,C,x)}function I(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=(0,R.WE)((0,R._I)((ee=C*Y-x*q)*ee+(ee=x*re-O*Y)*ee+(ee=O*q-C*re)*ee),O*re+C*q+x*Y);b+=ee,y+=ee*(O+(O=re)),m+=ee*(C+(C=q)),a+=ee*(x+(x=Y)),L(O,C,x)}function z(){P.point=A}function $(){P.point=j}function Q(){U(v,_),P.point=A}function j(te,Z){v=te,_=Z,te*=R.qw,Z*=R.qw,P.point=U;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),L(O,C,x)}function U(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=C*Y-x*q,me=x*re-O*Y,pe=O*q-C*re,se=(0,R._I)(ee*ee+me*me+pe*pe),ae=(0,R.qR)(se),ce=se&&-ae/se;c+=ce*ee,h+=ce*me,p+=ce*pe,b+=ae,y+=ae*(O+(O=re)),m+=ae*(C+(C=q)),a+=ae*(x+(x=Y)),L(O,C,x)}function X(te){u=b=i=S=w=y=m=a=c=h=p=0,(0,T.c)(te,P);var Z=c,K=h,re=p,q=Z*Z+K*K+re*re;return q0?v<_:v>_)&&(v+=p*i.kD));for(var R,M=v;p>0?M>_:M<_;M-=x)R=(0,u.G)([O,-C*(0,i.W8)(M),-C*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,c){(c=(0,u.ux)(c))[0]-=a,(0,u.cJ)(c);var h=(0,i.mE)(-c[1]);return((-c[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function m(){var a,c,h=b([0,0]),p=b(90),v=b(6),_={point:function(C,x){a.push(C=c(C,x)),C[0]*=i.oh,C[1]*=i.oh}};function O(){var C=h.apply(this,arguments),x=p.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],c=(0,S.O)(-C[0]*i.qw,-C[1]*i.qw,0).invert,w(_,x,R,1),C={type:"Polygon",coordinates:[a]},a=c=null,C}return O.center=function(C){return arguments.length?(h=typeof C=="function"?C:b([+C[0],+C[1]]),O):h},O.radius=function(C){return arguments.length?(p=typeof C=="function"?C:b(+C),O):p},O.precision=function(C){return arguments.length?(v=typeof C=="function"?C:b(+C),O):v},O}},78284:function(d,s,n){var u=n(14229),b=n(64528);s.c=(0,u.c)(function(){return!0},function(i){var S,w=NaN,y=NaN,m=NaN;return{lineStart:function(){i.lineStart(),S=1},point:function(a,c){var h=a>0?b.pi:-b.pi,p=(0,b.a2)(a-w);(0,b.a2)(p-b.pi)0?b.or:-b.or),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),S=0):m!==h&&p>=b.pi&&((0,b.a2)(w-m)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(C))*(0,b.g$)(O)-(0,b.g$)(C)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+C)/2}(w,y,a,c),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),S=0),i.point(w=a,y=c),m=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-S}}},function(i,S,w,y){var m;if(i==null)m=w*b.or,y.point(-b.pi,m),y.point(0,m),y.point(b.pi,m),y.point(b.pi,0),y.point(b.pi,-m),y.point(0,-m),y.point(-b.pi,-m),y.point(-b.pi,0),y.point(-b.pi,m);else if((0,b.a2)(i[0]-S[0])>b.Gg){var a=i[0]1&&S.push(S.pop().concat(S.shift()))},result:function(){var w=S;return S=[],i=null,w}}}},2728:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(84220),b=n(61780),i=n(64528),S=n(41860),w=n(14229);function y(m){var a=(0,i.W8)(m),c=6*i.qw,h=a>0,p=(0,i.a2)(a)>i.Gg;function v(C,x){return(0,i.W8)(C)*(0,i.W8)(x)>a}function _(C,x,R){var M=(0,u.ux)(C),T=(0,u.ux)(x),P=[1,0,0],A=(0,u.CW)(M,T),L=(0,u.Ez)(A,A),D=A[0],k=L-D*D;if(!k)return!R&&C;var I=a*L/k,z=-a*D/k,$=(0,u.CW)(P,A),Q=(0,u.wx)(P,I),j=(0,u.wx)(A,z);(0,u.mg)(Q,j);var U=$,X=(0,u.Ez)(Q,U),te=(0,u.Ez)(U,U),Z=X*X-te*((0,u.Ez)(Q,Q)-1);if(!(Z<0)){var K=(0,i._I)(Z),re=(0,u.wx)(U,(-X-K)/te);if((0,u.mg)(re,Q),re=(0,u.G)(re),!R)return re;var q,Y=C[0],ee=x[0],me=C[1],pe=x[1];ee0^re[1]<((0,i.a2)(re[0]-Y)i.pi^(Y<=re[0]&&re[0]<=ee)){var ce=(0,u.wx)(U,(-X+K)/te);return(0,u.mg)(ce,Q),[re,(0,u.G)(ce)]}}}function O(C,x){var R=h?m:i.pi-m,M=0;return C<-R?M|=1:C>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(C){var x,R,M,T,P;return{lineStart:function(){T=M=!1,P=1},point:function(A,L){var D,k=[A,L],I=v(A,L),z=h?I?0:O(A,L):I?O(A+(A<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&C.lineStart(),I!==M&&(!(D=_(x,k))||(0,S.c)(x,D)||(0,S.c)(k,D))&&(k[2]=1),I!==M)P=0,I?(C.lineStart(),D=_(k,x),C.point(D[0],D[1])):(D=_(x,k),C.point(D[0],D[1],2),C.lineEnd()),x=D;else if(p&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(P=0,h?(C.lineStart(),C.point($[0][0],$[0][1]),C.point($[1][0],$[1][1]),C.lineEnd()):(C.point($[1][0],$[1][1]),C.lineEnd(),C.lineStart(),C.point($[0][0],$[0][1],3)))}!I||x&&(0,S.c)(x,k)||C.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&C.lineEnd(),x=null},clean:function(){return P|(T&&M)<<1}}},function(C,x,R,M){(0,b.Q)(M,m,c,R,C,x)},h?[0,-m]:[-i.pi,m-i.pi])}},14229:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(97208),b=n(32232),i=n(64528),S=n(58196),w=n(84706);function y(c,h,p,v){return function(_){var O,C,x,R=h(_),M=(0,u.c)(),T=h(M),P=!1,A={point:L,lineStart:k,lineEnd:I,polygonStart:function(){A.point=z,A.lineStart=$,A.lineEnd=Q,C=[],O=[]},polygonEnd:function(){A.point=L,A.lineStart=k,A.lineEnd=I,C=(0,w.Uf)(C);var j=(0,S.c)(O,v);C.length?(P||(_.polygonStart(),P=!0),(0,b.c)(C,a,j,p,_)):j&&(P||(_.polygonStart(),P=!0),_.lineStart(),p(null,null,1,_),_.lineEnd()),P&&(_.polygonEnd(),P=!1),C=O=null},sphere:function(){_.polygonStart(),_.lineStart(),p(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){c(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){A.point=D,R.lineStart()}function I(){A.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,Z=T.clean(),K=M.result(),re=K.length;if(x.pop(),O.push(x),x=null,re)if(1&Z){if((U=(X=K[0]).length-1)>0){for(P||(_.polygonStart(),P=!0),_.lineStart(),j=0;j1&&2&Z&&K.push(K.pop().concat(K.shift())),C.push(K.filter(m))}return A}}function m(c){return c.length>1}function a(c,h){return((c=c.x)[0]<0?c[1]-i.or-i.Gg:i.or-c[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,s,n){n.d(s,{c:function(){return m}});var u=n(64528),b=n(97208),i=n(32232),S=n(84706),w=1e9,y=-w;function m(a,c,h,p){function v(R,M){return a<=R&&R<=h&&c<=M&&M<=p}function _(R,M,T,P){var A=0,L=0;if(R==null||(A=O(R,T))!==(L=O(M,T))||x(R,M)<0^T>0)do P.point(A===0||A===3?a:h,A>1?p:c);while((A=(A+T+4)%4)!==L);else P.point(M[0],M[1])}function O(R,M){return(0,u.a2)(R[0]-a)0?0:3:(0,u.a2)(R[0]-h)0?2:1:(0,u.a2)(R[1]-c)0?1:0:M>0?3:2}function C(R,M){return x(R.x,M.x)}function x(R,M){var T=O(R,1),P=O(M,1);return T!==P?T-P:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,P,A,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=Z,T&&T.push(P=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(Z(A,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eep&&(ve-pe)*(p-se)>(_e-se)*(a-pe)&&++Y:_e<=p&&(ve-pe)*(p-se)<(_e-se)*(a-pe)&&--Y;return Y}(),re=Q&&K,q=(M=(0,S.Uf)(M)).length;(re||q)&&(R.polygonStart(),re&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,C,K,_,R),R.polygonEnd()),j=R,M=T=P=null}};function te(K,re){v(K,re)&&j.point(K,re)}function Z(K,re){var q=v(K,re);if(T&&P.push([K,re]),$)A=K,L=re,D=q,$=!1,q&&(j.lineStart(),j.point(K,re));else if(q&&z)j.point(K,re);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),re=Math.max(y,Math.min(w,re))];(function(me,pe,se,ae,ce,de){var ye,ve=me[0],_e=me[1],we=0,Te=1,Pe=pe[0]-ve,Ie=pe[1]-_e;if(ye=se-ve,Pe||!(ye>0)){if(ye/=Pe,Pe<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=ce-ve,Pe||!(ye<0)){if(ye/=Pe,Pe<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Pe>0){if(ye0)){if(ye/=Ie,Ie<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=de-_e,Ie||!(ye<0)){if(ye/=Ie,Ie<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Ie>0){if(ye0&&(me[0]=ve+we*Pe,me[1]=_e+we*Ie),Te<1&&(pe[0]=ve+Te*Pe,pe[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,c,h,p)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,re),Q=!1)}k=K,I=re,z=q}return X}}},32232:function(d,s,n){n.d(s,{c:function(){return S}});var u=n(41860),b=n(64528);function i(y,m,a,c){this.x=y,this.z=m,this.o=a,this.e=c,this.v=!1,this.n=this.p=null}function S(y,m,a,c,h){var p,v,_=[],O=[];if(y.forEach(function(P){if(!((A=P.length-1)<=0)){var A,L,D=P[0],k=P[A];if((0,u.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),p=0;p=0;--p)h.point((x=C[p])[0],x[1]);else c(M.x,M.p.x,-1,h);M=M.p}C=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(m=y.length){for(var m,a,c=0,h=y[0];++c0&&(Zr=I(Hn[go],Hn[go-1]))>0&&Dr<=Zr&&Sr<=Zr&&(Dr+Sr-Zr)*(1-Math.pow((Dr-Sr)/Zr,2))O.Gg}).map(Do)).concat((0,re.ik)((0,O.Km)(go/ir)*ir,Zr,ir).filter(function(Tn){return(0,O.a2)(Tn%Er)>O.Gg}).map(jn))}return on.lines=function(){return an().map(function(Tn){return{type:"LineString",coordinates:Tn}})},on.outline=function(){return{type:"Polygon",coordinates:[Rr(Sr).concat(On(oo).slice(1),Rr(Dr).reverse().slice(1),On(io).reverse().slice(1))]}},on.extent=function(Tn){return arguments.length?on.extentMajor(Tn).extentMinor(Tn):on.extentMinor()},on.extentMajor=function(Tn){return arguments.length?(Sr=+Tn[0][0],Dr=+Tn[1][0],io=+Tn[0][1],oo=+Tn[1][1],Sr>Dr&&(Tn=Sr,Sr=Dr,Dr=Tn),io>oo&&(Tn=io,io=oo,oo=Tn),on.precision(Gt)):[[Sr,io],[Dr,oo]]},on.extentMinor=function(Tn){return arguments.length?(ar=+Tn[0][0],Hn=+Tn[1][0],go=+Tn[0][1],Zr=+Tn[1][1],ar>Hn&&(Tn=ar,ar=Hn,Hn=Tn),go>Zr&&(Tn=go,go=Zr,Zr=Tn),on.precision(Gt)):[[ar,go],[Hn,Zr]]},on.step=function(Tn){return arguments.length?on.stepMajor(Tn).stepMinor(Tn):on.stepMinor()},on.stepMajor=function(Tn){return arguments.length?(kr=+Tn[0],Er=+Tn[1],on):[kr,Er]},on.stepMinor=function(Tn){return arguments.length?(Yn=+Tn[0],ir=+Tn[1],on):[Yn,ir]},on.precision=function(Tn){return arguments.length?(Gt=+Tn,Do=q(go,Zr,90),jn=Y(ar,Hn,Gt),Rr=q(io,oo,90),On=Y(Sr,Dr,Gt),on):Gt},on.extentMajor([[-180,-90+O.Gg],[180,90-O.Gg]]).extentMinor([[-180,-80-O.Gg],[180,80+O.Gg]])}function me(){return ee()()}var pe,se,ae,ce,de=n(27284),ye=n(7376),ve=(0,_.c)(),_e=(0,_.c)(),we={point:C.c,lineStart:C.c,lineEnd:C.c,polygonStart:function(){we.lineStart=Te,we.lineEnd=ze},polygonEnd:function(){we.lineStart=we.lineEnd=we.point=C.c,ve.add((0,O.a2)(_e)),_e.reset()},result:function(){var Hn=ve/2;return ve.reset(),Hn}};function Te(){we.point=Pe}function Pe(Hn,ar){we.point=Ie,pe=ae=Hn,se=ce=ar}function Ie(Hn,ar){_e.add(ce*Hn-ae*ar),ae=Hn,ce=ar}function ze(){Ie(pe,se)}var De,Qe,Ve,$e,Oe=we,ke=n(73784),Re=0,We=0,Ue=0,Ze=0,Ye=0,Je=0,Me=0,Fe=0,je=0,tt={point:ot,lineStart:Ge,lineEnd:St,polygonStart:function(){tt.lineStart=Ft,tt.lineEnd=zt},polygonEnd:function(){tt.point=ot,tt.lineStart=Ge,tt.lineEnd=St},result:function(){var Hn=je?[Me/je,Fe/je]:Je?[Ze/Je,Ye/Je]:Ue?[Re/Ue,We/Ue]:[NaN,NaN];return Re=We=Ue=Ze=Ye=Je=Me=Fe=je=0,Hn}};function ot(Hn,ar){Re+=Hn,We+=ar,++Ue}function Ge(){tt.point=ht}function ht(Hn,ar){tt.point=pt,ot(Ve=Hn,$e=ar)}function pt(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,ot(Ve=Hn,$e=ar)}function St(){tt.point=ot}function Ft(){tt.point=Yt}function zt(){ln(De,Qe)}function Yt(Hn,ar){tt.point=ln,ot(De=Ve=Hn,Qe=$e=ar)}function ln(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,Me+=(Zr=$e*Hn-Ve*ar)*(Ve+Hn),Fe+=Zr*($e+ar),je+=3*Zr,ot(Ve=Hn,$e=ar)}var tn=tt;function Et(Hn){this._context=Hn}Et.prototype={_radius:4.5,pointRadius:function(Hn){return this._radius=Hn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._context.moveTo(Hn,ar),this._point=1;break;case 1:this._context.lineTo(Hn,ar);break;default:this._context.moveTo(Hn+this._radius,ar),this._context.arc(Hn,ar,this._radius,0,O.kD)}},result:C.c};var Ot,cn,Cn,Pn,Sn,vt=(0,_.c)(),xt={point:C.c,lineStart:function(){xt.point=st},lineEnd:function(){Ot&&bt(cn,Cn),xt.point=C.c},polygonStart:function(){Ot=!0},polygonEnd:function(){Ot=null},result:function(){var Hn=+vt;return vt.reset(),Hn}};function st(Hn,ar){xt.point=bt,cn=Pn=Hn,Cn=Sn=ar}function bt(Hn,ar){Pn-=Hn,Sn-=ar,vt.add((0,O._I)(Pn*Pn+Sn*Sn)),Pn=Hn,Sn=ar}var Vt=xt;function Dt(){this._string=[]}function it(Hn){return"m0,"+Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+-2*Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+2*Hn+"z"}function at(Hn,ar){var Dr,Sr,Zr=4.5;function go(oo){return oo&&(typeof Zr=="function"&&Sr.pointRadius(+Zr.apply(this,arguments)),(0,x.c)(oo,Dr(Sr))),Sr.result()}return go.area=function(oo){return(0,x.c)(oo,Dr(Oe)),Oe.result()},go.measure=function(oo){return(0,x.c)(oo,Dr(Vt)),Vt.result()},go.bounds=function(oo){return(0,x.c)(oo,Dr(ke.c)),ke.c.result()},go.centroid=function(oo){return(0,x.c)(oo,Dr(tn)),tn.result()},go.projection=function(oo){return arguments.length?(Dr=oo==null?(Hn=null,ye.c):(Hn=oo).stream,go):Hn},go.context=function(oo){return arguments.length?(Sr=oo==null?(ar=null,new Dt):new Et(ar=oo),typeof Zr!="function"&&Sr.pointRadius(Zr),go):ar},go.pointRadius=function(oo){return arguments.length?(Zr=typeof oo=="function"?oo:(Sr.pointRadius(+oo),+oo),go):Zr},go.projection(Hn).context(ar)}Dt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Hn){return(Hn=+Hn)!==this._radius&&(this._radius=Hn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._string.push("M",Hn,",",ar),this._point=1;break;case 1:this._string.push("L",Hn,",",ar);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Hn,",",ar,this._circle)}},result:function(){if(this._string.length){var Hn=this._string.join("");return this._string=[],Hn}return null}};var Bt=n(87952);function _t(Hn){var ar=0,Dr=O.pi/3,Sr=(0,Bt.U)(Hn),Zr=Sr(ar,Dr);return Zr.parallels=function(go){return arguments.length?Sr(ar=go[0]*O.qw,Dr=go[1]*O.qw):[ar*O.oh,Dr*O.oh]},Zr}function qt(Hn,ar){var Dr=(0,O.g$)(Hn),Sr=(Dr+(0,O.g$)(ar))/2;if((0,O.a2)(Sr)=.12&&Gt<.234&&Er>=-.425&&Er<-.214?io:Gt>=.166&&Gt<.234&&Er>=-.214&&Er<-.115?Do:oo).invert(Yn)},Rr.stream=function(Yn){return Hn&&ar===Yn?Hn:(ir=[oo.stream(ar=Yn),io.stream(Yn),Do.stream(Yn)],kr=ir.length,Hn={point:function(Er,Gt){for(var on=-1;++on0?io<-O.or+O.Gg&&(io=-O.or+O.Gg):io>O.or-O.Gg&&(io=O.or-O.Gg);var Do=Zr/(0,O.g3)(fr(io),Sr);return[Do*(0,O.g$)(Sr*oo),Zr-Do*(0,O.W8)(Sr*oo)]}return go.invert=function(oo,io){var Do=Zr-io,jn=(0,O.kq)(Sr)*(0,O._I)(oo*oo+Do*Do),Rr=(0,O.WE)(oo,(0,O.a2)(Do))*(0,O.kq)(Do);return Do*Sr<0&&(Rr-=O.pi*(0,O.kq)(oo)*(0,O.kq)(Do)),[Rr/Sr,2*(0,O.MQ)((0,O.g3)(Zr/jn,1/Sr))-O.or]},go}function Zn(){return _t(Un).scale(109.5).parallels([30,30])}wn.invert=function(Hn,ar){return[Hn,2*(0,O.MQ)((0,O.oN)(ar))-O.or]};var tr=n(69604);function Br(Hn,ar){var Dr=(0,O.W8)(Hn),Sr=Hn===ar?(0,O.g$)(Hn):(Dr-(0,O.W8)(ar))/(ar-Hn),Zr=Dr/Sr+Hn;if((0,O.a2)(Sr)2?Sr[2]+90:90]):[(Sr=Dr())[0],Sr[1],Sr[2]-90]},Dr([0,0,90]).scale(159.155)}_o.invert=(0,Fo.g)(function(Hn){return 2*(0,O.MQ)(Hn)}),Mo.invert=function(Hn,ar){return[-ar,2*(0,O.MQ)((0,O.oN)(Hn))-O.or]}},27284:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){var w=i[0]*u.qw,y=i[1]*u.qw,m=S[0]*u.qw,a=S[1]*u.qw,c=(0,u.W8)(y),h=(0,u.g$)(y),p=(0,u.W8)(a),v=(0,u.g$)(a),_=c*(0,u.W8)(w),O=c*(0,u.g$)(w),C=p*(0,u.W8)(m),x=p*(0,u.g$)(m),R=2*(0,u.qR)((0,u._I)((0,u.SD)(a-y)+c*p*(0,u.SD)(m-w))),M=(0,u.g$)(R),T=R?function(P){var A=(0,u.g$)(P*=R)/M,L=(0,u.g$)(R-P)/M,D=L*_+A*C,k=L*O+A*x,I=L*h+A*v;return[(0,u.WE)(k,D)*u.oh,(0,u.WE)(I,(0,u._I)(D*D+k*k))*u.oh]}:function(){return[w*u.oh,y*u.oh]};return T.distance=R,T}},64528:function(d,s,n){n.d(s,{Gg:function(){return u},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return p},Yz:function(){return C},_I:function(){return T},a2:function(){return c},a6:function(){return P},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return A},oN:function(){return O},oh:function(){return m},or:function(){return S},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var u=1e-6,b=1e-12,i=Math.PI,S=i/2,w=i/4,y=2*i,m=180/i,a=i/180,c=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,_=Math.ceil,O=Math.exp,C=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,P=Math.tan;function A(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?S:k<-1?-S:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,s,n){function u(){}n.d(s,{c:function(){return u}})},73784:function(d,s,n){var u=n(70932),b=1/0,i=b,S=-b,w=S,y={point:function(m,a){mS&&(S=m),aw&&(w=a)},lineStart:u.c,lineEnd:u.c,polygonStart:u.c,polygonEnd:u.c,result:function(){var m=[[b,i],[S,w]];return S=w=-(i=b=1/0),m}};s.c=y},41860:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){return(0,u.a2)(i[0]-S[0])=0?1:-1,te=X*U,Z=te>i.pi,K=L*Q;if(S.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=Z?U+X*i.kD:U,Z^P>=c^z>=c){var re=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(re);var q=(0,b.CW)(v,re);(0,b.cJ)(q);var Y=(Z^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(re[0]||re[1]))&&(O+=Z^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+Z,ae=Q+K,ce=j+re,de=(0,y._I)(se*se+ae*ae+ce*ce),ye=(0,y.qR)(ce/=de),ve=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/pe-.5)>.3||$*Z+Q*K+j*re2?Pe[2]%360*y.qw:0,we()):[re*y.oh,q*y.oh,Y*y.oh]},ve.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,we()):ee*y.oh},ve.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,we()):me<0},ve.reflectY=function(Pe){return arguments.length?(pe=Pe?-1:1,we()):pe<0},ve.precision=function(Pe){return arguments.length?(I=_(z,ye=Pe*Pe),Te()):(0,y._I)(ye)},ve.fitExtent=function(Pe,Ie){return(0,c.QX)(ve,Pe,Ie)},ve.fitSize=function(Pe,Ie){return(0,c.UV)(ve,Pe,Ie)},ve.fitWidth=function(Pe,Ie){return(0,c.Qx)(ve,Pe,Ie)},ve.fitHeight=function(Pe,Ie){return(0,c.OW)(ve,Pe,Ie)},function(){return P=T.apply(this,arguments),ve.invert=P.invert&&_e,we()}}},47984:function(d,s,n){n.d(s,{c:function(){return S},g:function(){return i}});var u=n(87952),b=n(64528);function i(w,y){var m=y*y,a=m*m;return[w*(.8707-.131979*m+a*(a*(.003971*m-.001529*a)-.013791)),y*(1.007226+m*(.015085+a*(.028874*m-.044475-.005916*a)))]}function S(){return(0,u.c)(i).scale(175.295)}i.invert=function(w,y){var m,a=y,c=25;do{var h=a*a,p=h*h;a-=m=(a*(1.007226+h*(.015085+p*(.028874*h-.044475-.005916*p)))-y)/(1.007226+h*(.045255+p*(.259866*h-.311325-.06507600000000001*p)))}while((0,b.a2)(m)>b.Gg&&--c>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,s,n){n.d(s,{c:function(){return w},t:function(){return S}});var u=n(64528),b=n(62280),i=n(87952);function S(y,m){return[(0,u.W8)(m)*(0,u.g$)(y),(0,u.g$)(m)]}function w(){return(0,i.c)(S).scale(249.5).clipAngle(90+u.Gg)}S.invert=(0,b.g)(u.qR)},92992:function(d,s,n){n.d(s,{O:function(){return S},c:function(){return a}});var u=n(68120),b=n(64528);function i(c,h){return[(0,b.a2)(c)>b.pi?c+Math.round(-c/b.kD)*b.kD:c,h]}function S(c,h,p){return(c%=b.kD)?h||p?(0,u.c)(y(c),m(h,p)):y(c):h||p?m(h,p):i}function w(c){return function(h,p){return[(h+=c)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,p]}}function y(c){var h=w(c);return h.invert=w(-c),h}function m(c,h){var p=(0,b.W8)(c),v=(0,b.g$)(c),_=(0,b.W8)(h),O=(0,b.g$)(h);function C(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*p+T*v;return[(0,b.WE)(P*_-L*O,T*p-A*v),(0,b.qR)(L*_+P*O)]}return C.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*_-P*O;return[(0,b.WE)(P*_+A*O,T*p+L*v),(0,b.qR)(L*p-T*v)]},C}function a(c){function h(p){return(p=c(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p}return c=S(c[0]*b.qw,c[1]*b.qw,c.length>2?c[2]*b.qw:0),h.invert=function(p){return(p=c.invert(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p},h}i.invert=i},16016:function(d,s,n){function u(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}n.d(s,{c:function(){return y}});var b={Feature:function(m,a){u(m.geometry,a)},FeatureCollection:function(m,a){for(var c=m.features,h=-1,p=c.length;++h=0;)Re+=We[Ue].value;else Re=1;ke.value=Re}function y(ke,Re){var We,Ue,Ze,Ye,Je,Me=new h(ke),Fe=+ke.value&&(Me.value=ke.value),je=[Me];for(Re==null&&(Re=m);We=je.pop();)if(Fe&&(We.value=+We.data.value),(Ze=Re(We.data))&&(Je=Ze.length))for(We.children=new Array(Je),Ye=Je-1;Ye>=0;--Ye)je.push(Ue=We.children[Ye]=new h(Ze[Ye])),Ue.parent=We,Ue.depth=We.depth+1;return Me.eachBefore(c)}function m(ke){return ke.children}function a(ke){ke.data=ke.data.data}function c(ke){var Re=0;do ke.height=Re;while((ke=ke.parent)&&ke.height<++Re)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(s),n.d(s,{cluster:function(){return S},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return Qe},treemapBinary:function(){return Ve},treemapDice:function(){return re},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Re,We,Ue,Ze,Ye=this,Je=[Ye];do for(Re=Je.reverse(),Je=[];Ye=Re.pop();)if(ke(Ye),We=Ye.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Re[We]);return this},sum:function(ke){return this.eachAfter(function(Re){for(var We=+ke(Re.data)||0,Ue=Re.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Re.value=We})},sort:function(ke){return this.eachBefore(function(Re){Re.children&&Re.children.sort(ke)})},path:function(ke){for(var Re=this,We=function(Ye,Je){if(Ye===Je)return Ye;var Me=Ye.ancestors(),Fe=Je.ancestors(),je=null;for(Ye=Me.pop(),Je=Fe.pop();Ye===Je;)je=Ye,Ye=Me.pop(),Je=Fe.pop();return je}(Re,ke),Ue=[Re];Re!==We;)Re=Re.parent,Ue.push(Re);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Re=[ke];ke=ke.parent;)Re.push(ke);return Re},descendants:function(){var ke=[];return this.each(function(Re){ke.push(Re)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Re){Re.children||ke.push(Re)}),ke},links:function(){var ke=this,Re=[];return ke.each(function(We){We!==ke&&Re.push({source:We.parent,target:We})}),Re},copy:function(){return y(this).eachBefore(a)}};var p=Array.prototype.slice;function v(ke){for(var Re,We,Ue=0,Ze=(ke=function(Je){for(var Me,Fe,je=Je.length;je;)Fe=Math.random()*je--|0,Me=Je[je],Je[je]=Je[Fe],Je[Fe]=Me;return Je}(p.call(ke))).length,Ye=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Re){for(var We=0;We(Je*=Je)?(Ue=(je+Je-Ze)/(2*je),Ye=Math.sqrt(Math.max(0,Je/je-Ue*Ue)),We.x=ke.x-Ue*Me-Ye*Fe,We.y=ke.y-Ue*Fe+Ye*Me):(Ue=(je+Ze-Je)/(2*je),Ye=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Re.x+Ue*Me-Ye*Fe,We.y=Re.y+Ue*Fe+Ye*Me)):(We.x=Re.x+We.r,We.y=Re.y)}function A(ke,Re){var We=ke.r+Re.r-1e-6,Ue=Re.x-ke.x,Ze=Re.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Re=ke._,We=ke.next._,Ue=Re.r+We.r,Ze=(Re.x*We.r+We.x*Re.r)/Ue,Ye=(Re.y*We.r+We.y*Re.r)/Ue;return Ze*Ze+Ye*Ye}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Re,We,Ue,Ze,Ye,Je,Me,Fe,je,tt,ot;if((Re=ke[0]).x=0,Re.y=0,!(Ze>1))return Re.r;if(We=ke[1],Re.x=-We.r,We.x=Re.r,We.y=0,!(Ze>2))return Re.r+We.r;P(We,Re,Ue=ke[2]),Re=new D(Re),We=new D(We),Ue=new D(Ue),Re.next=Ue.previous=We,We.next=Re.previous=Ue,Ue.next=We.previous=Re;e:for(Me=3;Me0)throw new Error("cycle");return Je}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Re=z(Ue),We):Re},We}function ce(ke,Re){return ke.parent===Re.parent?1:2}function de(ke){var Re=ke.children;return Re?Re[0]:ke.t}function ye(ke){var Re=ke.children;return Re?Re[Re.length-1]:ke.t}function ve(ke,Re,We){var Ue=We/(Re.i-ke.i);Re.c-=Ue,Re.s+=We,ke.c+=Ue,Re.z+=We,Re.m+=We}function _e(ke,Re,We){return ke.a.parent===Re.parent?ke.a:We}function we(ke,Re){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Re}function Te(){var ke=ce,Re=1,We=1,Ue=null;function Ze(Fe){var je=function(zt){for(var Yt,ln,tn,Et,Ot,cn=new we(zt,0),Cn=[cn];Yt=Cn.pop();)if(tn=Yt._.children)for(Yt.children=new Array(Ot=tn.length),Et=Ot-1;Et>=0;--Et)Cn.push(ln=Yt.children[Et]=new we(tn[Et],Et)),ln.parent=Yt;return(cn.parent=new we(null,0)).children=[cn],cn}(Fe);if(je.eachAfter(Ye),je.parent.m=-je.z,je.eachBefore(Je),Ue)Fe.eachBefore(Me);else{var tt=Fe,ot=Fe,Ge=Fe;Fe.eachBefore(function(zt){zt.xot.x&&(ot=zt),zt.depth>Ge.depth&&(Ge=zt)});var ht=tt===ot?1:ke(tt,ot)/2,pt=ht-tt.x,St=Re/(ot.x+ht+pt),Ft=We/(Ge.depth||1);Fe.eachBefore(function(zt){zt.x=(zt.x+pt)*St,zt.y=zt.depth*Ft})}return Fe}function Ye(Fe){var je=Fe.children,tt=Fe.parent.children,ot=Fe.i?tt[Fe.i-1]:null;if(je){(function(ht){for(var pt,St=0,Ft=0,zt=ht.children,Yt=zt.length;--Yt>=0;)(pt=zt[Yt]).z+=St,pt.m+=St,St+=pt.s+(Ft+=pt.c)})(Fe);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Fe.z=ot.z+ke(Fe._,ot._),Fe.m=Fe.z-Ge):Fe.z=Ge}else ot&&(Fe.z=ot.z+ke(Fe._,ot._));Fe.parent.A=function(ht,pt,St){if(pt){for(var Ft,zt=ht,Yt=ht,ln=pt,tn=zt.parent.children[0],Et=zt.m,Ot=Yt.m,cn=ln.m,Cn=tn.m;ln=ye(ln),zt=de(zt),ln&&zt;)tn=de(tn),(Yt=ye(Yt)).a=ht,(Ft=ln.z+cn-zt.z-Et+ke(ln._,zt._))>0&&(ve(_e(ln,ht,St),ht,Ft),Et+=Ft,Ot+=Ft),cn+=ln.m,Et+=zt.m,Cn+=tn.m,Ot+=Yt.m;ln&&!ye(Yt)&&(Yt.t=ln,Yt.m+=cn-Ot),zt&&!de(tn)&&(tn.t=zt,tn.m+=Et-Cn,St=ht)}return St}(Fe,ot,Fe.parent.A||tt[0])}function Je(Fe){Fe._.x=Fe.z+Fe.parent.m,Fe.m+=Fe.parent.m}function Me(Fe){Fe.x*=Re,Fe.y=Fe.depth*We}return Ze.separation=function(Fe){return arguments.length?(ke=Fe,Ze):ke},Ze.size=function(Fe){return arguments.length?(Ue=!1,Re=+Fe[0],We=+Fe[1],Ze):Ue?null:[Re,We]},Ze.nodeSize=function(Fe){return arguments.length?(Ue=!0,Re=+Fe[0],We=+Fe[1],Ze):Ue?[Re,We]:null},Ze}function Pe(ke,Re,We,Ue,Ze){for(var Ye,Je=ke.children,Me=-1,Fe=Je.length,je=ke.value&&(Ze-We)/ke.value;++MeGe&&(Ge=Me),Ft=tt*tt*St,(ht=Math.max(Ge/Ft,Ft/ot))>pt){tt-=Me;break}pt=ht}zt.push(Je={value:tt,dice:Fe1?Ue:1)},We}(Ie);function Qe(){var ke=De,Re=!1,We=1,Ue=1,Ze=[0],Ye=$,Je=$,Me=$,Fe=$,je=$;function tt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Re&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,St=Ge.y0+ht,Ft=Ge.x1-ht,zt=Ge.y1-ht;Ft=Ge-1){var Yt=Me[ot];return Yt.x0=pt,Yt.y0=St,Yt.x1=Ft,void(Yt.y1=zt)}for(var ln=je[ot],tn=ht/2+ln,Et=ot+1,Ot=Ge-1;Et>>1;je[cn]zt-St){var Sn=(pt*Pn+Ft*Cn)/ht;tt(ot,Et,Cn,pt,St,Sn,zt),tt(Et,Ge,Pn,Sn,St,Ft,zt)}else{var vt=(St*Pn+zt*Cn)/ht;tt(ot,Et,Cn,pt,St,Ft,vt),tt(Et,Ge,Pn,pt,vt,Ft,zt)}})(0,Fe,ke.value,Re,We,Ue,Ze)}function $e(ke,Re,We,Ue,Ze){(1&ke.depth?Pe:re)(ke,Re,We,Ue,Ze)}var Oe=function ke(Re){function We(Ue,Ze,Ye,Je,Me){if((Fe=Ue._squarify)&&Fe.ratio===Re)for(var Fe,je,tt,ot,Ge,ht=-1,pt=Fe.length,St=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,s,n){n.d(s,{ak:function(){return C}});var u=Math.PI,b=2*u,i=1e-6,S=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,P,A){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+P)+","+(this._y1=+A)},arcTo:function(x,R,M,T,P){x=+x,R=+R,M=+M,T=+T,P=+P;var A=this._x1,L=this._y1,D=M-x,k=T-R,I=A-x,z=L-R,$=I*I+z*z;if(P<0)throw new Error("negative radius: "+P);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&P){var Q=M-A,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),Z=Math.sqrt($),K=P*Math.tan((u-Math.acos((U+$-X)/(2*te*Z)))/2),re=K/Z,q=K/te;Math.abs(re-1)>i&&(this._+="L"+(x+re*I)+","+(R+re*z)),this._+="A"+P+","+P+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,P,A){x=+x,R=+R,A=!!A;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^A,$=A?T-P:P-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>S?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=u)+","+z+","+(this._x1=x+M*Math.cos(P))+","+(this._y1=R+M*Math.sin(P))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var m=y,a=Array.prototype.slice;function c(x){return function(){return x}}function h(x){return x[0]}function p(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function O(x,R,M,T,P){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,P,T,P)}function C(){return function(x){var R=v,M=_,T=h,P=p,A=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(A||(A=D=m()),x(A,+T.apply(this,(k[0]=I,k)),+P.apply(this,k),+T.apply(this,(k[0]=z,k)),+P.apply(this,k)),D)return A=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:c(+D),L):T},L.y=function(D){return arguments.length?(P=typeof D=="function"?D:c(+D),L):P},L.context=function(D){return arguments.length?(A=D??null,L):A},L}(O)}},94336:function(d,s,n){n.d(s,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var u=n(8208),b=n(58931),i=n(46192),S=n(68936),w=n(32171),y=n(53528);function m(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L);return Ot.setFullYear(Et.y),Ot}return new Date(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L)}function a(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(Date.UTC(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L));return Ot.setUTCFullYear(Et.y),Ot}return new Date(Date.UTC(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L))}function c(Et,Ot,cn){return{y:Et,m:Ot,d:cn,H:0,M:0,S:0,L:0}}function h(Et){var Ot=Et.dateTime,cn=Et.date,Cn=Et.time,Pn=Et.periods,Sn=Et.days,vt=Et.shortDays,xt=Et.months,st=Et.shortMonths,bt=P(Pn),Vt=A(Pn),Dt=P(Sn),it=A(Sn),at=P(vt),Bt=A(vt),_t=P(xt),qt=A(xt),en=P(st),Jt=A(st),Zt={a:function(An){return vt[An.getDay()]},A:function(An){return Sn[An.getDay()]},b:function(An){return st[An.getMonth()]},B:function(An){return xt[An.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ye,L:ve,m:we,M:Te,p:function(An){return Pn[+(An.getHours()>=12)]},q:function(An){return 1+~~(An.getMonth()/3)},Q:ln,s:tn,S:Pe,u:Ie,U:ze,V:De,w:Qe,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":Yt},Nt={a:function(An){return vt[An.getUTCDay()]},A:function(An){return Sn[An.getUTCDay()]},b:function(An){return st[An.getUTCMonth()]},B:function(An){return xt[An.getUTCMonth()]},c:null,d:Re,e:Re,f:Je,H:We,I:Ue,j:Ze,L:Ye,m:Me,M:Fe,p:function(An){return Pn[+(An.getUTCHours()>=12)]},q:function(An){return 1+~~(An.getUTCMonth()/3)},Q:ln,s:tn,S:je,u:tt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:St,Y:Ft,Z:zt,"%":Yt},sn={a:function(An,Kn,fr){var Un=at.exec(Kn.slice(fr));return Un?(An.w=Bt[Un[0].toLowerCase()],fr+Un[0].length):-1},A:function(An,Kn,fr){var Un=Dt.exec(Kn.slice(fr));return Un?(An.w=it[Un[0].toLowerCase()],fr+Un[0].length):-1},b:function(An,Kn,fr){var Un=en.exec(Kn.slice(fr));return Un?(An.m=Jt[Un[0].toLowerCase()],fr+Un[0].length):-1},B:function(An,Kn,fr){var Un=_t.exec(Kn.slice(fr));return Un?(An.m=qt[Un[0].toLowerCase()],fr+Un[0].length):-1},c:function(An,Kn,fr){return wn(An,Ot,Kn,fr)},d:te,e:te,f:ee,H:K,I:K,j:Z,L:Y,m:X,M:re,p:function(An,Kn,fr){var Un=bt.exec(Kn.slice(fr));return Un?(An.p=Vt[Un[0].toLowerCase()],fr+Un[0].length):-1},q:U,Q:pe,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(An,Kn,fr){return wn(An,cn,Kn,fr)},X:function(An,Kn,fr){return wn(An,Cn,Kn,fr)},y:Q,Y:$,Z:j,"%":me};function rn(An,Kn){return function(fr){var Un,Zn,tr,Br=[],$r=-1,vr=0,qn=An.length;for(fr instanceof Date||(fr=new Date(+fr));++$r53)return null;"w"in tr||(tr.w=1),"Z"in tr?(Zn=(Un=a(c(tr.y,0,1))).getUTCDay(),Un=Zn>4||Zn===0?u.ot.ceil(Un):(0,u.ot)(Un),Un=b.c.offset(Un,7*(tr.V-1)),tr.y=Un.getUTCFullYear(),tr.m=Un.getUTCMonth(),tr.d=Un.getUTCDate()+(tr.w+6)%7):(Zn=(Un=m(c(tr.y,0,1))).getDay(),Un=Zn>4||Zn===0?i.qT.ceil(Un):(0,i.qT)(Un),Un=S.c.offset(Un,7*(tr.V-1)),tr.y=Un.getFullYear(),tr.m=Un.getMonth(),tr.d=Un.getDate()+(tr.w+6)%7)}else("W"in tr||"U"in tr)&&("w"in tr||(tr.w="u"in tr?tr.u%7:"W"in tr?1:0),Zn="Z"in tr?a(c(tr.y,0,1)).getUTCDay():m(c(tr.y,0,1)).getDay(),tr.m=0,tr.d="W"in tr?(tr.w+6)%7+7*tr.W-(Zn+5)%7:tr.w+7*tr.U-(Zn+6)%7);return"Z"in tr?(tr.H+=tr.Z/100|0,tr.M+=tr.Z%100,a(tr)):m(tr)}}function wn(An,Kn,fr,Un){for(var Zn,tr,Br=0,$r=Kn.length,vr=fr.length;Br<$r;){if(Un>=vr)return-1;if((Zn=Kn.charCodeAt(Br++))===37){if(Zn=Kn.charAt(Br++),!(tr=sn[Zn in O?Kn.charAt(Br++):Zn])||(Un=tr(An,fr,Un))<0)return-1}else if(Zn!=fr.charCodeAt(Un++))return-1}return Un}return Zt.x=rn(cn,Zt),Zt.X=rn(Cn,Zt),Zt.c=rn(Ot,Zt),Nt.x=rn(cn,Nt),Nt.X=rn(Cn,Nt),Nt.c=rn(Ot,Nt),{format:function(An){var Kn=rn(An+="",Zt);return Kn.toString=function(){return An},Kn},parse:function(An){var Kn=_n(An+="",!1);return Kn.toString=function(){return An},Kn},utcFormat:function(An){var Kn=rn(An+="",Nt);return Kn.toString=function(){return An},Kn},utcParse:function(An){var Kn=_n(An+="",!0);return Kn.toString=function(){return An},Kn}}}var p,v,_,O={"-":"",_:" ",0:"0"},C=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Et,Ot,cn){var Cn=Et<0?"-":"",Pn=(Cn?-Et:Et)+"",Sn=Pn.length;return Cn+(Sn68?1900:2e3),cn+Cn[0].length):-1}function j(Et,Ot,cn){var Cn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ot.slice(cn,cn+6));return Cn?(Et.Z=Cn[1]?0:-(Cn[2]+(Cn[3]||"00")),cn+Cn[0].length):-1}function U(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+1));return Cn?(Et.q=3*Cn[0]-3,cn+Cn[0].length):-1}function X(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.m=Cn[0]-1,cn+Cn[0].length):-1}function te(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.d=+Cn[0],cn+Cn[0].length):-1}function Z(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.m=0,Et.d=+Cn[0],cn+Cn[0].length):-1}function K(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.H=+Cn[0],cn+Cn[0].length):-1}function re(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.M=+Cn[0],cn+Cn[0].length):-1}function q(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.S=+Cn[0],cn+Cn[0].length):-1}function Y(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.L=+Cn[0],cn+Cn[0].length):-1}function ee(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+6));return Cn?(Et.L=Math.floor(Cn[0]/1e3),cn+Cn[0].length):-1}function me(Et,Ot,cn){var Cn=x.exec(Ot.slice(cn,cn+1));return Cn?cn+Cn[0].length:-1}function pe(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.Q=+Cn[0],cn+Cn[0].length):-1}function se(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.s=+Cn[0],cn+Cn[0].length):-1}function ae(Et,Ot){return M(Et.getDate(),Ot,2)}function ce(Et,Ot){return M(Et.getHours(),Ot,2)}function de(Et,Ot){return M(Et.getHours()%12||12,Ot,2)}function ye(Et,Ot){return M(1+S.c.count((0,w.c)(Et),Et),Ot,3)}function ve(Et,Ot){return M(Et.getMilliseconds(),Ot,3)}function _e(Et,Ot){return ve(Et,Ot)+"000"}function we(Et,Ot){return M(Et.getMonth()+1,Ot,2)}function Te(Et,Ot){return M(Et.getMinutes(),Ot,2)}function Pe(Et,Ot){return M(Et.getSeconds(),Ot,2)}function Ie(Et){var Ot=Et.getDay();return Ot===0?7:Ot}function ze(Et,Ot){return M(i.uU.count((0,w.c)(Et)-1,Et),Ot,2)}function De(Et,Ot){var cn=Et.getDay();return Et=cn>=4||cn===0?(0,i.kD)(Et):i.kD.ceil(Et),M(i.kD.count((0,w.c)(Et),Et)+((0,w.c)(Et).getDay()===4),Ot,2)}function Qe(Et){return Et.getDay()}function Ve(Et,Ot){return M(i.qT.count((0,w.c)(Et)-1,Et),Ot,2)}function $e(Et,Ot){return M(Et.getFullYear()%100,Ot,2)}function Oe(Et,Ot){return M(Et.getFullYear()%1e4,Ot,4)}function ke(Et){var Ot=Et.getTimezoneOffset();return(Ot>0?"-":(Ot*=-1,"+"))+M(Ot/60|0,"0",2)+M(Ot%60,"0",2)}function Re(Et,Ot){return M(Et.getUTCDate(),Ot,2)}function We(Et,Ot){return M(Et.getUTCHours(),Ot,2)}function Ue(Et,Ot){return M(Et.getUTCHours()%12||12,Ot,2)}function Ze(Et,Ot){return M(1+b.c.count((0,y.c)(Et),Et),Ot,3)}function Ye(Et,Ot){return M(Et.getUTCMilliseconds(),Ot,3)}function Je(Et,Ot){return Ye(Et,Ot)+"000"}function Me(Et,Ot){return M(Et.getUTCMonth()+1,Ot,2)}function Fe(Et,Ot){return M(Et.getUTCMinutes(),Ot,2)}function je(Et,Ot){return M(Et.getUTCSeconds(),Ot,2)}function tt(Et){var Ot=Et.getUTCDay();return Ot===0?7:Ot}function ot(Et,Ot){return M(u.EV.count((0,y.c)(Et)-1,Et),Ot,2)}function Ge(Et,Ot){var cn=Et.getUTCDay();return Et=cn>=4||cn===0?(0,u.yA)(Et):u.yA.ceil(Et),M(u.yA.count((0,y.c)(Et),Et)+((0,y.c)(Et).getUTCDay()===4),Ot,2)}function ht(Et){return Et.getUTCDay()}function pt(Et,Ot){return M(u.ot.count((0,y.c)(Et)-1,Et),Ot,2)}function St(Et,Ot){return M(Et.getUTCFullYear()%100,Ot,2)}function Ft(Et,Ot){return M(Et.getUTCFullYear()%1e4,Ot,4)}function zt(){return"+0000"}function Yt(){return"%"}function ln(Et){return+Et}function tn(Et){return Math.floor(+Et/1e3)}p=h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),v=p.format,p.parse,_=p.utcFormat,p.utcParse},68936:function(d,s,n){n.d(s,{m:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});s.c=i;var S=i.range},69792:function(d,s,n){n.d(s,{KK:function(){return w},SK:function(){return S},cg:function(){return i},iy:function(){return b},yc:function(){return u}});var u=1e3,b=6e4,i=36e5,S=864e5,w=6048e5},73220:function(d,s,n){n.r(s),n.d(s,{timeDay:function(){return C.c},timeDays:function(){return C.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return O},timeInterval:function(){return u.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return S},timeMinute:function(){return h},timeMinutes:function(){return p},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return P.c},timeYears:function(){return P.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return S},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var u=n(81628),b=(0,u.c)(function(){},function(Z,K){Z.setTime(+Z+K)},function(Z,K){return K-Z});b.every=function(Z){return Z=Math.floor(Z),isFinite(Z)&&Z>0?Z>1?(0,u.c)(function(K){K.setTime(Math.floor(K/Z)*Z)},function(K,re){K.setTime(+K+re*Z)},function(K,re){return(re-K)/Z}):b:null};var i=b,S=b.range,w=n(69792),y=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds())},function(Z,K){Z.setTime(+Z+K*w.yc)},function(Z,K){return(K-Z)/w.yc},function(Z){return Z.getUTCSeconds()}),m=y,a=y.range,c=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getMinutes()}),h=c,p=c.range,v=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc-Z.getMinutes()*w.iy)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getHours()}),_=v,O=v.range,C=n(68936),x=n(46192),R=(0,u.c)(function(Z){Z.setDate(1),Z.setHours(0,0,0,0)},function(Z,K){Z.setMonth(Z.getMonth()+K)},function(Z,K){return K.getMonth()-Z.getMonth()+12*(K.getFullYear()-Z.getFullYear())},function(Z){return Z.getMonth()}),M=R,T=R.range,P=n(32171),A=(0,u.c)(function(Z){Z.setUTCSeconds(0,0)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getUTCMinutes()}),L=A,D=A.range,k=(0,u.c)(function(Z){Z.setUTCMinutes(0,0,0)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,u.c)(function(Z){Z.setUTCDate(1),Z.setUTCHours(0,0,0,0)},function(Z,K){Z.setUTCMonth(Z.getUTCMonth()+K)},function(Z,K){return K.getUTCMonth()-Z.getUTCMonth()+12*(K.getUTCFullYear()-Z.getUTCFullYear())},function(Z){return Z.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,s,n){n.d(s,{c:function(){return i}});var u=new Date,b=new Date;function i(S,w,y,m){function a(c){return S(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=function(c){return S(c=new Date(+c)),c},a.ceil=function(c){return S(c=new Date(c-1)),w(c,1),S(c),c},a.round=function(c){var h=a(c),p=a.ceil(c);return c-h0))return _;do _.push(v=new Date(+c)),w(c,p),S(c);while(v=h)for(;S(h),!c(h);)h.setTime(h-1)},function(h,p){if(h>=h)if(p<0)for(;++p<=0;)for(;w(h,-1),!c(h););else for(;--p>=0;)for(;w(h,1),!c(h););})},y&&(a.count=function(c,h){return u.setTime(+c),b.setTime(+h),S(u),S(b),Math.floor(y(u,b))},a.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?a.filter(m?function(h){return m(h)%c==0}:function(h){return a.count(0,h)%c==0}):a:null}),a}},58931:function(d,s,n){n.d(s,{o:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});s.c=i;var S=i.range},8208:function(d,s,n){n.d(s,{Ad:function(){return h},EV:function(){return S},K8:function(){return R},W_:function(){return O},Wq:function(){return p},_6:function(){return m},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return C},od:function(){return c},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,P){T.setUTCDate(T.getUTCDate()+7*P)},function(T,P){return(P-T)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},53528:function(d,s,n){n.d(s,{i:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,w){S.setUTCFullYear(S.getUTCFullYear()+w)},function(S,w){return w.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/S)*S),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*S)}):null},s.c=b;var i=b.range},46192:function(d,s,n){n.d(s,{Ab:function(){return p},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return C},eg:function(){return m},iB:function(){return c},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return O},uU:function(){return S}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,P){T.setDate(T.getDate()+7*P)},function(T,P){return(P-T-(P.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},32171:function(d,s,n){n.d(s,{Q:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,w){S.setFullYear(S.getFullYear()+w)},function(S,w){return w.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/S)*S),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*S)}):null},s.c=b;var i=b.range},64348:function(d,s,n){var u=n(39640)(),b=n(53664),i=u&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var S=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(m,a,c){if(!m||typeof m!="object"&&typeof m!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],O=!!y&&y(m,a);if(i)i(m,a,{configurable:v===null&&O?O.configurable:!v,enumerable:h===null&&O?O.enumerable:!h,value:c,writable:p===null&&O?O.writable:!p});else{if(!_&&(h||p||v))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");m[a]=c}}},81288:function(d,s,n){var u=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,S=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),m=w&&y,a=function(h,p,v,_){if(p in h){if(_===!0){if(h[p]===v)return}else if(typeof(O=_)!="function"||i.call(O)!=="[object Function]"||!_())return}var O;m?w(h,p,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[p]=v},c=function(h,p){var v=arguments.length>2?arguments[2]:{},_=u(p);b&&(_=S.call(_,Object.getOwnPropertySymbols(p)));for(var O=0;O<_.length;O+=1)a(h,_[O],p[_[O]],v[_[O]])};c.supportsDescriptors=!!m,d.exports=c},31264:function(d){d.exports=function(){for(var s=0;sm*a){var _=(v-p)/m;y[h]=1e3*_}}return y}function b(i){for(var S=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),m=i[0];m0)return function(b,i){var S,w;for(S=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),Z>X&&(X=Z);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=A(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=A(U,I[U],I[U+1],X);return X&&C(X,X.next)&&(L(X),X=X.next),X}function u(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!C(Q,Q.next)&&O(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(re,q,Y,ee){var me=re;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==re);me.prevZ.nextZ=null,me.prevZ=null,function(pe){var se,ae,ce,de,ye,ve,_e,we,Te=1;do{for(ae=pe,pe=null,ye=null,ve=0;ae;){for(ve++,ce=ae,_e=0,se=0;se0||we>0&&ce;)_e!==0&&(we===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,we--),ye?ye.nextZ=de:pe=de,de.prevZ=ye,ye=de;ae=ce}ye.nextZ=null,Te*=2}while(ve>1)}(me)}(I,Q,j,U);for(var te,Z,K=I;I.prev!==I.next;)if(te=I.prev,Z=I.next,U?S(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(Z.i/$),L(I),I=Z.next,K=Z.next;else if((I=Z)===K){X?X===1?b(I=w(u(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(u(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(O(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&O(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function S(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(O(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,re=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,Z,z,$,Q),Y=h(K,re,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!C(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return u(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var Z=P(X,te);return X=u(X,X.next),Z=u(Z,Z.next),b(X,z,$,Q,j,U),void b(Z,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function m(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,Z=Q.y,K=-1/0;do{if(Z<=X.y&&Z>=X.next.y&&X.next.y!==X.y){var re=X.x+(Z-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(re<=te&&re>K){if(K=re,re===te){if(Z===X.y)return X;if(Z===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(ZU.x||X.x===U.x&&c(U,X)))&&(U=X,pe=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=P(z,I);u(z,z.next),u($,$.next)}}function c(I,z){return O(I.prev,I,z.prev)<0&&O(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function p(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(O(I.prev,I,z.prev)||O(I,z.prev,z))||C(I,z)&&O(I.prev,I,I.next)>0&&O(z.prev,z,z.next)>0)}function O(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function C(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(O(I,z,$)),U=M(O(I,z,Q)),X=M(O($,Q,I)),te=M(O($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return O(I.prev,I,I.next)<0?O(I,z,I.next)>=0&&O(I,I.prev,z)>=0:O(I,z,I.prev)<0||O(I,I.next,z)<0}function P(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function A(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=s,d.exports.default=s,s.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,Z=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,s,n){var u=n(78484);d.exports=function(b,i){var S,w=[],y=[],m=[],a={},c=[];function h(T){m[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(P){delete a[T][P],m[P]&&h(P)})}function p(T){var P,A,L=!1;for(y.push(T),m[T]=!0,P=0;P=$})})(T);for(var P,A=u(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++C]),D=k?h.call(k,I,D,x):D,O?(p.value=D,v(R,x,p)):R[x]=D,++x;M=x}}if(M===void 0)for(M=S(_.length),O&&(R=new O(M)),C=0;C0?1:-1}},96936:function(d,s,n){var u=n(85608),b=Math.abs,i=Math.floor;d.exports=function(S){return isNaN(S)?0:(S=Number(S))!==0&&isFinite(S)?u(S)*i(b(S)):S}},81304:function(d,s,n){var u=n(96936),b=Math.max;d.exports=function(i){return b(0,u(i))}},14428:function(d,s,n){var u=n(34044),b=n(9252),i=Function.prototype.bind,S=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(m,a){return function(c,h){var p,v=arguments[2],_=arguments[3];return c=Object(b(c)),u(h),p=w(c),_&&p.sort(typeof _=="function"?i.call(_,c):void 0),typeof m!="function"&&(m=p[m]),S.call(m,p,function(O,C){return y.call(c,O)?S.call(h,v,c[O],O,c,C):a})}}},38452:function(d,s,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var s,n=Object.assign;return typeof n=="function"&&(n(s={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),s.foo+s.bar+s.trzy==="razdwatrzy")}},81892:function(d,s,n){var u=n(54768),b=n(9252),i=Math.max;d.exports=function(S,w){var y,m,a,c=i(arguments.length,2);for(S=Object(b(S)),a=function(h){try{S[h]=w[h]}catch(p){y||(y=p)}},m=1;m-1}},29768:function(d){var s=Object.prototype.toString,n=s.call("");d.exports=function(u){return typeof u=="string"||u&&typeof u=="object"&&(u instanceof String||s.call(u)===n)||!1}},82252:function(d){var s=Object.create(null),n=Math.random;d.exports=function(){var u;do u=n().toString(36).slice(2);while(s[u]);return u}},52104:function(d,s,n){var u,b=n(69932),i=n(71056),S=n(21092),w=n(92664),y=n(85512),m=Object.defineProperty;u=d.exports=function(a,c){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");y.call(this,a),c=c?i.call(c,"key+value")?"key+value":i.call(c,"key")?"key":"value":"value",m(this,"__kind__",S("",c))},b&&b(u,y),delete u.prototype.constructor,u.prototype=Object.create(y.prototype,{_resolve:S(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),m(u.prototype,w.toStringTag,S("c","Array Iterator"))},76024:function(d,s,n){var u=n(60948),b=n(34044),i=n(29768),S=n(76252),w=Array.isArray,y=Function.prototype.call,m=Array.prototype.some;d.exports=function(a,c){var h,p,v,_,O,C,x,R,M=arguments[2];if(w(a)||u(a)?h="array":i(a)?h="string":a=S(a),b(c),v=function(){_=!0},h!=="array")if(h!=="string")for(p=a.next();!p.done;){if(y.call(c,M,p.value,v),_)return;p=a.next()}else for(C=a.length,O=0;O=55296&&R<=56319&&(x+=a[++O]),y.call(c,M,x,v),!_);++O);else m.call(a,function(T){return y.call(c,M,T,v),_})}},76252:function(d,s,n){var u=n(60948),b=n(29768),i=n(52104),S=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(m){return typeof w(m)[y]=="function"?m[y]():u(m)?new i(m):b(m)?new S(m):new i(m)}},85512:function(d,s,n){var u,b=n(41476),i=n(38452),S=n(34044),w=n(9252),y=n(21092),m=n(27940),a=n(92664),c=Object.defineProperty,h=Object.defineProperties;d.exports=u=function(p,v){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(p)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(S(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete u.prototype.constructor,h(u.prototype,i({_next:y(function(){var p;if(this.__list__)return this.__redo__&&(p=this.__redo__.shift())!==void 0?p:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=p&&(this.__redo__[_]=++v)},this),this.__redo__.push(p)):c(this,"__redo__",y("c",[p])))}),_onDelete:y(function(p){var v;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(p))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,O){_>p&&(this.__redo__[O]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),c(u.prototype,a.iterator,y(function(){return this}))},76368:function(d,s,n){var u=n(60948),b=n(42584),i=n(29768),S=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!u(y)&&typeof y[S]!="function")}},80940:function(d,s,n){var u,b=n(69932),i=n(21092),S=n(92664),w=n(85512),y=Object.defineProperty;u=d.exports=function(m){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");m=String(m),w.call(this,m),y(this,"__length__",i("",m.length))},b&&b(u,w),delete u.prototype.constructor,u.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?c+this.__list__[this.__nextIndex__++]:c})}),y(u.prototype,S.toStringTag,i("c","String Iterator"))},52891:function(d,s,n){var u=n(76368);d.exports=function(b){if(!u(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function s(n,u){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&P.length>M&&!P.warned){P.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=O,L.type=C,L.count=P.length,A=L,console&&console.warn&&console.warn(A)}return O}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(O,C,x){var R={fired:!1,wrapFn:void 0,target:O,type:C,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(O,C,x){var R=O._events;if(R===void 0)return[];var M=R[C];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var P=new Array(T.length),A=0;A0&&(T=C[0]),T instanceof Error)throw T;var P=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw P.context=T,P}var A=M[O];if(A===void 0)return!1;if(typeof A=="function")u(A,this,C);else{var L=A.length,D=v(A,L);for(x=0;x=0;T--)if(x[T]===C||x[T].listener===C){P=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(A,L){for(;L+1=0;R--)this.removeListener(O,C[R]);return this},i.prototype.listeners=function(O){return h(this,O,!0)},i.prototype.rawListeners=function(O){return h(this,O,!1)},i.listenerCount=function(O,C){return typeof O.listenerCount=="function"?O.listenerCount(C):p.call(O,C)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},39072:function(d){var s=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return s()}try{return __global__||s()}finally{delete Object.prototype.__global__}}()},12296:function(d,s,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,s,n){var u=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var S=b;if((b=+b)==0&&u(S))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,s,n){var u=n(72512);d.exports=function(b,i,S){if(!b)throw new TypeError("must specify data as first parameter");if(S=0|+(S||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,m,a,c=b[0].length,h=b.length*c;i&&typeof i!="string"||(i=new(u(i||"float32"))(h+S));var p=i.length-S;if(h!==p)throw new Error("source length "+h+" ("+c+"x"+b.length+") does not match destination length "+p);for(w=0,m=S;wS[0]-m[0]/2&&(_=m[0]/2,O+=m[1]);return w}},71920:function(d){function s(i,S){S||(S={}),(typeof i=="string"||Array.isArray(i))&&(S.family=i);var w=Array.isArray(S.family)?S.family.join(", "):S.family;if(!w)throw Error("`family` must be defined");var y=S.size||S.fontSize||S.em||48,m=S.weight||S.fontWeight||"",a=(i=[S.style||S.fontStyle||"",m,y].join(" ")+"px "+w,S.origin||"top");if(s.cache[w]&&y<=s.cache[w].em)return n(s.cache[w],a);var c=S.canvas||s.canvas,h=c.getContext("2d"),p={upper:S.upper!==void 0?S.upper:"H",lower:S.lower!==void 0?S.lower:"x",descent:S.descent!==void 0?S.descent:"p",ascent:S.ascent!==void 0?S.ascent:"h",tittle:S.tittle!==void 0?S.tittle:"i",overshoot:S.overshoot!==void 0?S.overshoot:"O"},v=Math.ceil(1.5*y);c.height=v,c.width=.5*v,h.font=i;var _="H",O={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var C=u(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=u(h.getImageData(0,0,v,v));O.lineHeight=O.bottom=v-x+C,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-u(h.getImageData(0,0,v,v))-1+C;O.baseline=O.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=u(h.getImageData(0,0,v,v));O.median=O.middle=v-M-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=u(h.getImageData(0,0,v,v));O.hanging=v-T-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var P=u(h.getImageData(0,0,v,v));if(O.ideographic=v-P-1+C,p.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.upper,0,0),O.upper=u(h.getImageData(0,0,v,v)),O.capHeight=O.baseline-O.upper),p.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.lower,0,0),O.lower=u(h.getImageData(0,0,v,v)),O.xHeight=O.baseline-O.lower),p.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.tittle,0,0),O.tittle=u(h.getImageData(0,0,v,v))),p.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.ascent,0,0),O.ascent=u(h.getImageData(0,0,v,v))),p.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.descent,0,0),O.descent=b(h.getImageData(0,0,v,v))),p.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.overshoot,0,0);var A=b(h.getImageData(0,0,v,v));O.overshoot=A-R}for(var L in O)O[L]/=y;return O.em=y,s.cache[w]=O,n(O,a)}function n(i,S){var w={};for(var y in typeof S=="string"&&(S=i[S]),i)y!=="em"&&(w[y]=i[y]-S);return w}function u(i){for(var S=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/S)}d.exports=s,s.canvas=document.createElement("canvas"),s.cache={}},46492:function(d,s,n){var u=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(S,w,y){if(!u(w))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=y),b.call(S)==="[object Array]"?function(a,c,h){for(var p=0,v=a.length;p"u"&&!n.canvas)return null;var u=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(u.width=n.width),typeof n.height=="number"&&(u.height=n.height);var b,i=n;try{var S=[s];s.indexOf("webgl")===0&&S.push("experimental-"+s);for(var w=0;w"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":c&&p?p([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&p?p(p([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map<"u"&&c&&p?p(new Map()[Symbol.iterator]()):u,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set<"u"&&c&&p?p(new Set()[Symbol.iterator]()):u,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&p?p(""[Symbol.iterator]()):u,"%Symbol%":c?Symbol:u,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet};if(p)try{null.error}catch(Q){var C=p(p(Q));O["%Error.prototype%"]=C}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&p&&(U=p(te.prototype))}return O[j]=U,U},R={"%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"]},M=n(8844),T=n(92064),P=M.call(Function.call,Array.prototype.concat),A=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(O,X)){var te=O[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new S("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new S('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ye=D(ce,-1);if(de==="%"&&ye!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ve=[];return L(ce,I,function(_e,we,Te,Pe){ve[ve.length]=Te?L(Pe,z,"$1"):we||_e}),ve}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),Z=te.name,K=te.value,re=!1,q=te.alias;q&&(X=q[0],A(U,P([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!re&&(O[Z]=K)}}return K}},12408:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15];return s[0]=y*(p*x-v*C)-h*(m*x-a*C)+O*(m*v-a*p),s[1]=-(b*(p*x-v*C)-h*(i*x-S*C)+O*(i*v-S*p)),s[2]=b*(m*x-a*C)-y*(i*x-S*C)+O*(i*a-S*m),s[3]=-(b*(m*v-a*p)-y*(i*v-S*p)+h*(i*a-S*m)),s[4]=-(w*(p*x-v*C)-c*(m*x-a*C)+_*(m*v-a*p)),s[5]=u*(p*x-v*C)-c*(i*x-S*C)+_*(i*v-S*p),s[6]=-(u*(m*x-a*C)-w*(i*x-S*C)+_*(i*a-S*m)),s[7]=u*(m*v-a*p)-w*(i*v-S*p)+c*(i*a-S*m),s[8]=w*(h*x-v*O)-c*(y*x-a*O)+_*(y*v-a*h),s[9]=-(u*(h*x-v*O)-c*(b*x-S*O)+_*(b*v-S*h)),s[10]=u*(y*x-a*O)-w*(b*x-S*O)+_*(b*a-S*y),s[11]=-(u*(y*v-a*h)-w*(b*v-S*h)+c*(b*a-S*y)),s[12]=-(w*(h*C-p*O)-c*(y*C-m*O)+_*(y*p-m*h)),s[13]=u*(h*C-p*O)-c*(b*C-i*O)+_*(b*p-i*h),s[14]=-(u*(y*C-m*O)-w*(b*C-i*O)+_*(b*m-i*y)),s[15]=u*(y*p-m*h)-w*(b*p-i*h)+c*(b*m-i*y),s}},76860:function(d){d.exports=function(s){var n=new Float32Array(16);return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],n}},64492:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},54212:function(d){d.exports=function(){var s=new Float32Array(16);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},70800:function(d){d.exports=function(s){var n=s[0],u=s[1],b=s[2],i=s[3],S=s[4],w=s[5],y=s[6],m=s[7],a=s[8],c=s[9],h=s[10],p=s[11],v=s[12],_=s[13],O=s[14],C=s[15];return(n*w-u*S)*(h*C-p*O)-(n*y-b*S)*(c*C-p*_)+(n*m-i*S)*(c*O-h*_)+(u*y-b*w)*(a*C-p*v)-(u*m-i*w)*(a*O-h*v)+(b*m-i*y)*(a*_-c*v)}},61784:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=u+u,y=b+b,m=i+i,a=u*w,c=b*w,h=b*y,p=i*w,v=i*y,_=i*m,O=S*w,C=S*y,x=S*m;return s[0]=1-h-_,s[1]=c+x,s[2]=p-C,s[3]=0,s[4]=c-x,s[5]=1-a-_,s[6]=v+O,s[7]=0,s[8]=p+C,s[9]=v-O,s[10]=1-a-h,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},91616:function(d){d.exports=function(s,n,u){var b,i,S,w=u[0],y=u[1],m=u[2],a=Math.sqrt(w*w+y*y+m*m);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,m*=a,b=Math.sin(n),S=1-(i=Math.cos(n)),s[0]=w*w*S+i,s[1]=y*w*S+m*b,s[2]=m*w*S-y*b,s[3]=0,s[4]=w*y*S-m*b,s[5]=y*y*S+i,s[6]=m*y*S+w*b,s[7]=0,s[8]=w*m*S+y*b,s[9]=y*m*S-w*b,s[10]=m*m*S+i,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s)}},51944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=b+b,m=i+i,a=S+S,c=b*y,h=b*m,p=b*a,v=i*m,_=i*a,O=S*a,C=w*y,x=w*m,R=w*a;return s[0]=1-(v+O),s[1]=h+R,s[2]=p-x,s[3]=0,s[4]=h-R,s[5]=1-(c+O),s[6]=_+C,s[7]=0,s[8]=p+x,s[9]=_-C,s[10]=1-(c+v),s[11]=0,s[12]=u[0],s[13]=u[1],s[14]=u[2],s[15]=1,s}},69444:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=n[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=n[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},48268:function(d){d.exports=function(s,n){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=n[0],s[13]=n[1],s[14]=n[2],s[15]=1,s}},21856:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=b,s[6]=u,s[7]=0,s[8]=0,s[9]=-u,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},79216:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=0,s[2]=-u,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=u,s[9]=0,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},57736:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=u,s[2]=0,s[3]=0,s[4]=-u,s[5]=b,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},38848:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(u-n),m=1/(i-b),a=1/(S-w);return s[0]=2*S*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*S*m,s[6]=0,s[7]=0,s[8]=(u+n)*y,s[9]=(i+b)*m,s[10]=(w+S)*a,s[11]=-1,s[12]=0,s[13]=0,s[14]=w*S*2*a,s[15]=0,s}},36635:function(d){d.exports=function(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},36524:function(d,s,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15],R=u*y-b*w,M=u*m-i*w,T=u*a-S*w,P=b*m-i*y,A=b*a-S*y,L=i*a-S*m,D=c*O-h*_,k=c*C-p*_,I=c*x-v*_,z=h*C-p*O,$=h*x-v*O,Q=p*x-v*C,j=R*Q-M*$+T*z+P*I-A*k+L*D;return j?(j=1/j,s[0]=(y*Q-m*$+a*z)*j,s[1]=(i*$-b*Q-S*z)*j,s[2]=(O*L-C*A+x*P)*j,s[3]=(p*A-h*L-v*P)*j,s[4]=(m*I-w*Q-a*k)*j,s[5]=(u*Q-i*I+S*k)*j,s[6]=(C*T-_*L-x*M)*j,s[7]=(c*L-p*T+v*M)*j,s[8]=(w*$-y*I+a*D)*j,s[9]=(b*I-u*$-S*D)*j,s[10]=(_*A-O*T+x*R)*j,s[11]=(h*T-c*A-v*R)*j,s[12]=(y*k-w*z-m*D)*j,s[13]=(u*z-b*k+i*D)*j,s[14]=(O*M-_*P-C*R)*j,s[15]=(c*P-h*M+p*R)*j,s):null}},56508:function(d,s,n){var u=n(36635);d.exports=function(b,i,S,w){var y,m,a,c,h,p,v,_,O,C,x=i[0],R=i[1],M=i[2],T=w[0],P=w[1],A=w[2],L=S[0],D=S[1],k=S[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?u(b):(v=x-L,_=R-D,O=M-k,y=P*(O*=C=1/Math.sqrt(v*v+_*_+O*O))-A*(_*=C),m=A*(v*=C)-T*O,a=T*_-P*v,(C=Math.sqrt(y*y+m*m+a*a))?(y*=C=1/C,m*=C,a*=C):(y=0,m=0,a=0),c=_*a-O*m,h=O*y-v*a,p=v*m-_*y,(C=Math.sqrt(c*c+h*h+p*p))?(c*=C=1/C,h*=C,p*=C):(c=0,h=0,p=0),b[0]=y,b[1]=c,b[2]=v,b[3]=0,b[4]=m,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=p,b[10]=O,b[11]=0,b[12]=-(y*x+m*R+a*M),b[13]=-(c*x+h*R+p*M),b[14]=-(v*x+_*R+O*M),b[15]=1,b)}},80944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],O=n[12],C=n[13],x=n[14],R=n[15],M=u[0],T=u[1],P=u[2],A=u[3];return s[0]=M*b+T*y+P*h+A*O,s[1]=M*i+T*m+P*p+A*C,s[2]=M*S+T*a+P*v+A*x,s[3]=M*w+T*c+P*_+A*R,M=u[4],T=u[5],P=u[6],A=u[7],s[4]=M*b+T*y+P*h+A*O,s[5]=M*i+T*m+P*p+A*C,s[6]=M*S+T*a+P*v+A*x,s[7]=M*w+T*c+P*_+A*R,M=u[8],T=u[9],P=u[10],A=u[11],s[8]=M*b+T*y+P*h+A*O,s[9]=M*i+T*m+P*p+A*C,s[10]=M*S+T*a+P*v+A*x,s[11]=M*w+T*c+P*_+A*R,M=u[12],T=u[13],P=u[14],A=u[15],s[12]=M*b+T*y+P*h+A*O,s[13]=M*i+T*m+P*p+A*C,s[14]=M*S+T*a+P*v+A*x,s[15]=M*w+T*c+P*_+A*R,s}},97688:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(n-u),m=1/(b-i),a=1/(S-w);return s[0]=-2*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*m,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*a,s[11]=0,s[12]=(n+u)*y,s[13]=(i+b)*m,s[14]=(w+S)*a,s[15]=1,s}},51296:function(d){d.exports=function(s,n,u,b,i){var S=1/Math.tan(n/2),w=1/(b-i);return s[0]=S/u,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=S,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(i+b)*w,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*i*b*w,s[15]=0,s}},63688:function(d){d.exports=function(s,n,u,b){var i=Math.tan(n.upDegrees*Math.PI/180),S=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),m=2/(w+y),a=2/(i+S);return s[0]=m,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=a,s[6]=0,s[7]=0,s[8]=-(w-y)*m*.5,s[9]=(i-S)*a*.5,s[10]=b/(u-b),s[11]=-1,s[12]=0,s[13]=0,s[14]=b*u/(u-b),s[15]=0,s}},30016:function(d){d.exports=function(s,n,u,b){var i,S,w,y,m,a,c,h,p,v,_,O,C,x,R,M,T,P,A,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(u),w=1-(S=Math.cos(u)),y=n[0],m=n[1],a=n[2],c=n[3],h=n[4],p=n[5],v=n[6],_=n[7],O=n[8],C=n[9],x=n[10],R=n[11],M=$*$*w+S,T=Q*$*w+j*i,P=j*$*w-Q*i,A=$*Q*w-j*i,L=Q*Q*w+S,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+S,s[0]=y*M+h*T+O*P,s[1]=m*M+p*T+C*P,s[2]=a*M+v*T+x*P,s[3]=c*M+_*T+R*P,s[4]=y*A+h*L+O*D,s[5]=m*A+p*L+C*D,s[6]=a*A+v*L+x*D,s[7]=c*A+_*L+R*D,s[8]=y*k+h*I+O*z,s[9]=m*k+p*I+C*z,s[10]=a*k+v*I+x*z,s[11]=c*k+_*I+R*z,n!==s&&(s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s)}},15456:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[4],w=n[5],y=n[6],m=n[7],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[4]=S*i+a*b,s[5]=w*i+c*b,s[6]=y*i+h*b,s[7]=m*i+p*b,s[8]=a*i-S*b,s[9]=c*i-w*b,s[10]=h*i-y*b,s[11]=p*i-m*b,s}},64840:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i-a*b,s[1]=w*i-c*b,s[2]=y*i-h*b,s[3]=m*i-p*b,s[8]=S*b+a*i,s[9]=w*b+c*i,s[10]=y*b+h*i,s[11]=m*b+p*i,s}},4192:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[4],c=n[5],h=n[6],p=n[7];return n!==s&&(s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i+a*b,s[1]=w*i+c*b,s[2]=y*i+h*b,s[3]=m*i+p*b,s[4]=a*i-S*b,s[5]=c*i-w*b,s[6]=h*i-y*b,s[7]=p*i-m*b,s}},68152:function(d){d.exports=function(s,n,u){var b=u[0],i=u[1],S=u[2];return s[0]=n[0]*b,s[1]=n[1]*b,s[2]=n[2]*b,s[3]=n[3]*b,s[4]=n[4]*i,s[5]=n[5]*i,s[6]=n[6]*i,s[7]=n[7]*i,s[8]=n[8]*S,s[9]=n[9]*S,s[10]=n[10]*S,s[11]=n[11]*S,s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},89412:function(d){d.exports=function(s){return"mat4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+", "+s[8]+", "+s[9]+", "+s[10]+", "+s[11]+", "+s[12]+", "+s[13]+", "+s[14]+", "+s[15]+")"}},35176:function(d){d.exports=function(s,n,u){var b,i,S,w,y,m,a,c,h,p,v,_,O=u[0],C=u[1],x=u[2];return n===s?(s[12]=n[0]*O+n[4]*C+n[8]*x+n[12],s[13]=n[1]*O+n[5]*C+n[9]*x+n[13],s[14]=n[2]*O+n[6]*C+n[10]*x+n[14],s[15]=n[3]*O+n[7]*C+n[11]*x+n[15]):(b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],s[0]=b,s[1]=i,s[2]=S,s[3]=w,s[4]=y,s[5]=m,s[6]=a,s[7]=c,s[8]=h,s[9]=p,s[10]=v,s[11]=_,s[12]=b*O+y*C+h*x+n[12],s[13]=i*O+m*C+p*x+n[13],s[14]=S*O+a*C+v*x+n[14],s[15]=w*O+c*C+_*x+n[15]),s}},86520:function(d){d.exports=function(s,n){if(s===n){var u=n[1],b=n[2],i=n[3],S=n[6],w=n[7],y=n[11];s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=u,s[6]=n[9],s[7]=n[13],s[8]=b,s[9]=S,s[11]=n[14],s[12]=i,s[13]=w,s[14]=y}else s[0]=n[0],s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=n[1],s[5]=n[5],s[6]=n[9],s[7]=n[13],s[8]=n[2],s[9]=n[6],s[10]=n[10],s[11]=n[14],s[12]=n[3],s[13]=n[7],s[14]=n[11],s[15]=n[15];return s}},23352:function(d,s,n){var u=n(42771),b=n(55616),i=n(28624),S=n(55212),w=n(60463),y=n(72160),m=n(33888),a=n(14144),c=n(51160),h=n(58908),p=n(65819),v=n(23464),_=n(63768),O=n(50896),C=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var P=document.body.appendChild(document.createElement("div"));P.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(P).fontStretch&&(T=!0),document.body.removeChild(P)}var A=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=S(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};A.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3579,35 +3579,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).slice(2):` `+Y.split(` `).map(function(me){return" "+me}).join(` -`)):Y=U.stylize("[Circular]","special")),M(q)){if(re&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function O(U){return typeof U=="boolean"}function C(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return P(U)&&k(U)==="[object RegExp]"}function P(U){return typeof U=="object"&&U!==null}function A(U){return P(U)&&k(U)==="[object Date]"}function L(U){return P(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}s.debuglog=function(U){if(U=U.toUpperCase(),!S[U])if(w.test(U)){var X=u.pid;S[U]=function(){var te=s.format.apply(s,arguments);console.error("%s %d: %s",U,X,te)}}else S[U]=function(){};return S[U]},s.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=_,s.isBoolean=O,s.isNull=C,s.isNullOrUndefined=function(U){return U==null},s.isNumber=x,s.isString=R,s.isSymbol=function(U){return typeof U=="symbol"},s.isUndefined=M,s.isRegExp=T,s.types.isRegExp=T,s.isObject=P,s.isDate=A,s.types.isDate=A,s.isError=L,s.types.isNativeError=L,s.isFunction=D,s.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},s.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}s.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(U,X){if(!X||!P(X))return U;for(var te=Object.keys(X),Z=te.length;Z--;)U[te[Z]]=X[te[Z]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}s.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,Z,K=new Promise(function(Y,ee){te=Y,Z=ee}),re=[],q=0;q"u"?n.g:globalThis,c=b(),h=S("String.prototype.slice"),p=Object.getPrototypeOf,v=S("Array.prototype.indexOf",!0)||function(O,C){for(var x=0;x-1?C:C==="Object"&&function(x){var R=!1;return u(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(O)}return w?function(x){var R=!1;return u(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(O):null}},67020:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(p,v){if(typeof p=="string"){var _=p.match(y);return _?_[0]:""}var O=this._validateYear(p),C=p.month(),x=""+this.toChineseMonth(O,C);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(O,C)&&(x+="i"),x},monthNames:function(p){if(typeof p=="string"){var v=p.match(m);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},monthNamesShort:function(p){if(typeof p=="string"){var v=p.match(a);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},parseMonth:function(p,v){p=this._validateYear(p);var _,O=parseInt(v);if(isNaN(O))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var C=v[v.length-1];_=C==="i"||C==="I"}return this.toMonthIndex(p,O,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(p,v){if(p.year&&(p=p.year()),typeof p!="number"||p<1888||p>2111)throw v.replace(/\{0\}/,this.local.name);return p},toMonthIndex:function(p,v,_){var O=this.intercalaryMonth(p);if(_&&v!==O||v<1||v>12)throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return O?!_&&v<=O?v-1:v:v-1},toChineseMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);if(v<0||v>(_?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(p){return p=this._validateYear(p),c[p-c[0]]>>13},isIntercalaryMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);return!!_&&_===v},leapYear:function(p){return this.intercalaryMonth(p)!==0},weekOfYear:function(p,v,_){var O,C=this._validateYear(p,u.local.invalidyear),x=h[C-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(O=i.newDate(R,M,T)).add(4-(O.dayOfWeek()||7),"d");var P=this.toJD(p,v,_)-O.toJD();return 1+Math.floor(P/7)},monthsInYear:function(p){return this.leapYear(p)?13:12},daysInMonth:function(p,v){p.year&&(v=p.month(),p=p.year()),p=this._validateYear(p);var _=c[p-c[0]];if(v>(_>>13?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(p,v,_){return(this.dayOfWeek(p,v,_)||7)<6},toJD:function(p,v,_){var O=this._validate(p,x,_,u.local.invalidDate);p=this._validateYear(O.year()),v=O.month(),_=O.day();var C=this.isIntercalaryMonth(p,v),x=this.toChineseMonth(p,v),R=function(M,T,P,A,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof P=="number"&&P>=1&&P<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(z=!1,D=A):(z=!!A,D={}),k={year:M,month:T,day:P,isIntercalary:z}}I=k.day-1;var $,Q=c[k.year-c[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(p,x,_,C);return i.toJD(R.year,R.month,R.day)},fromJD:function(p){var v=i.fromJD(p),_=function(C,x,R,M){var T,P;if(typeof C=="object")T=C,P=x||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:x,day:R},P={}}var A=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;P.year=L>=A?T.year:T.year-1,A=h[P.year-h[0]];var D,k=new Date(A>>9&4095,(A>>5&15)-1,31&A),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=c[P.year-c[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{century:S[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(m=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-32*(m-1)+1;return this.newDate(y<=0?y-1:y,m,a)}});var S={20:"Fruitbat",21:"Anchovy"};u.calendars.discworld=i},65168:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()+(w.year()<0?1:0))%4==3||S%4==-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),13},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return(S=m.year())<0&&S++,m.day()+30*(m.month()-1)+365*(S-1)+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var w=Math.floor(S)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(S)+.5-this.newDate(y,1,1).toJD();var m=Math.floor(w/30)+1,a=w-30*(m-1)+1;return this.newDate(y,m,a)}}),u.calendars.ethiopian=i},2084:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function S(w,y){return w-y*Math.floor(w/y)}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return S(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,u.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,u.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&S(this.daysInYear(w),10)===5?30:y===9&&S(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w<=0?w+1:w,h=this.jdEpoch+this._delay1(c)+this._delay2(c)+m+1;if(y<7){for(var p=7;p<=this.monthsInYear(w);p++)h+=this.daysInMonth(w,p);for(p=1;p=this.toJD(y===-1?1:y+1,7,1);)y++;for(var m=wthis.toJD(y,m,this.daysInMonth(y,m));)m++;var a=w-this.toJD(y,m,1)+1;return this.newDate(y,m,a)}}),u.calendars.hebrew=i},26368:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){return(11*this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year()+14)%30<11},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){return this.leapYear(S)?355:354},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==5},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),S=S<=0?S+1:S,(y=m.day())+Math.ceil(29.5*(w-1))+354*(S-1)+Math.floor((3+11*S)/30)+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var w=Math.floor((30*(S-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((S-29-this.toJD(w,1,1))/29.5)+1),m=S-this.toJD(w,y,1)+1;return this.newDate(w,y,m)}}),u.calendars.islamic=i},24747:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),y=m.day(),S<0&&S++,w<=2&&(S--,w+=12),Math.floor(365.25*(S+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(S){var w=Math.floor(S+.5)+1524,y=Math.floor((w-122.1)/365.25),m=Math.floor(365.25*y),a=Math.floor((w-m)/30.6001),c=a-Math.floor(a<14?1:13),h=y-Math.floor(c>2?4716:4715),p=w-m-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,c,p)}}),u.calendars.julian=i},65616:function(d,s,n){var u=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function S(y,m){return y-m*Math.floor(y/m)}function w(y,m){return S(y-1,m)+1}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,u.local.invalidYear).year();var m=Math.floor(y/400);return y%=400,y+=y<0?400:0,m+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&c<0)throw"Invalid Mayan year";m=20*m+c}return m},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),18},weekOfYear:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),360},daysInMonth:function(y,m){return this._validate(y,m,this.minDay,u.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate).day()},weekDay:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),!0},extraInfo:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate).toJD(),h=this._toHaab(c),p=this._toTzolkin(c);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[p[0]-1],tzolkinDay:p[0],tzolkinTrecena:p[1]}},_toHaab:function(y){var m=S(8+(y-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,S(m,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate);return c.day()+20*c.month()+360*c.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var m=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),c=y%20;return this.newDate(m,a,c)}}),u.calendars.mayan=i},30632:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar;var S=u.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return S.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidMonth);(w=a.year())<0&&w++;for(var c=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var m=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;m>this.daysInMonth(y,a);)m-=this.daysInMonth(y,a),a++;return this.newDate(y,a,m)}}),u.calendars.nanakshahi=i},73040:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(S){return this.daysInYear(S)!==this.daysPerYear},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){if(S=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[S]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[S][y];return w},daysInMonth:function(S,w){return S.year&&(w=S.month(),S=S.year()),this._validate(S,w,this.minDay,u.local.invalidMonth),this.NEPALI_CALENDAR_DATA[S]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[S][w]},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);S=m.year(),w=m.month(),y=m.day();var a=u.instance(),c=0,h=w,p=S;this._createMissingCalendarData(S);var v=S-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[p][0]?56:57);for(w!==9&&(c=y,h--);h!==9;)h<=0&&(h=12,p--),c+=this.NEPALI_CALENDAR_DATA[p][h],h--;return w===9?(c+=y-this.NEPALI_CALENDAR_DATA[p][0])<0&&(c+=a.daysInYear(v)):c+=this.NEPALI_CALENDAR_DATA[p][9]-this.NEPALI_CALENDAR_DATA[p][0],a.newDate(v,1,1).add(c,"d").toJD()},fromJD:function(S){var w=u.instance().fromJD(S),y=w.year(),m=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var c=9,h=this.NEPALI_CALENDAR_DATA[a][0],p=this.NEPALI_CALENDAR_DATA[a][c]-h+1;m>p;)++c>12&&(c=1,a++),p+=this.NEPALI_CALENDAR_DATA[a][c];var v=this.NEPALI_CALENDAR_DATA[a][c]-(p-m);return this.newDate(a,c,v)},_createMissingCalendarData:function(S){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=S-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w-(w>=0?474:473),h=474+S(c,2820);return m+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(c/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),m=Math.floor(y/1029983),a=S(y,1029983),c=2820;if(a!==1029982){var h=Math.floor(a/366),p=S(a,366);c=Math.floor((2134*h+2816*p+2815)/1028522)+h+1}var v=c+2820*m+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,O=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),C=w-this.toJD(v,O,1)+1;return this.newDate(v,O,C)}}),u.calendars.persian=i,u.calendars.jalali=i},51456:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),u.calendars.taiwan=S},4592:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),u.calendars.thai=S},45348:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,m=1;m<=12;m++)y+=this.daysInMonth(w,m);return y},daysInMonth:function(w,y){for(var m=this._validate(w,y,this.minDay,u.local.invalidMonth).toJD()-24e5+.5,a=0,c=0;cm)return S[a]-S[a-1];a++}return 30},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate),c=12*(a.year()-1)+a.month()-15292;return a.day()+S[c-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,m=0,a=0;ay);a++)m++;var c=m+15292,h=Math.floor((c-1)/12),p=h+1,v=c-12*h,_=y-S[m-1]+1;return this.newDate(p,v,_)},isValid:function(w,y,m){var a=u.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,m,a){var c=u.baseCalendar.prototype._validate.apply(this,arguments);if(c.year<1276||c.year>1500)throw a.replace(/\{0\}/,this.local.name);return c}}),u.calendars.ummalqura=i;var S=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,s,n){var u=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,c,h,p){if(this._calendar=a,this._year=c,this._month=h,this._day=p,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S(a,c){return"000000".substring(0,c-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}u(b.prototype,{instance:function(a,c){a=(a||"gregorian").toLowerCase(),c=c||"";var h=this._localCals[a+"-"+c];if(!h&&this.calendars[a]&&(h=new this.calendars[a](c),this._localCals[a+"-"+c]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,c,h,p,v){return(p=(a!=null&&a.year?a.calendar():typeof p=="string"?this.instance(p,v):p)||this.instance()).newDate(a,c,h)},substituteDigits:function(a){return function(c){return(c+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,c){return function(h){for(var p="",v=0;h>0;){var _=h%10;p=(_===0?"":a[_]+c[v])+p,v++,h=Math.floor(h/10)}return p.indexOf(a[1]+c[1])===0&&(p=p.substr(1)),p||a[0]}}}),u(i.prototype,{newDate:function(a,c,h){return this._calendar.newDate(a??this,c,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,c,h){if(!this._calendar.isValid(a,c,h))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=c,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,c){return this._calendar.add(this,a,c)},set:function(a,c){return this._calendar.set(this,a,c)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var c=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return c===0?0:c<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+S(Math.abs(this.year()),4)+"-"+S(this.month(),2)+"-"+S(this.day(),2)}}),u(w.prototype,{_validateLevel:0,newDate:function(a,c,h){return a==null?this.today():(a.year&&(this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=a.day(),c=a.month(),a=a.year()),new i(this,a,c,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(c.year()<0?"-":"")+S(Math.abs(c.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,c){var h=this._validate(a,c,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,c){var h=(c+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(c)?366:365},dayOfYear:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return p.toJD()-this.newDate(p.year(),this.fromMonthOfYear(p.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(p))+2)%this.daysInWeek()},extraInfo:function(a,c,h){return this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,c,h){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,c,h),c,h)},_add:function(a,c,h){if(this._validateLevel++,h==="d"||h==="w"){var p=a.toJD()+c*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(p);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?c:0),O=a.monthOfYear()+(h==="m"?c:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,O)&&(O=this.newDate(_,a.month(),this.minDay).monthOfYear()),O=Math.min(O,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O)))):h==="m"&&(function(x){for(;OR-1+x.minMonth;)_++,O-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O))));var C=[_,this.fromMonthOfYear(_,O),v];return this._validateLevel--,C}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,c,h,p){if(!(this.hasYearZero||p!=="y"&&p!=="m"||c[0]!==0&&a.year()>0==c[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[p],_=h<0?-1:1;c=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(c[0],c[1],c[2])},set:function(a,c,h){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var p=h==="y"?c:a.year(),v=h==="m"?c:a.month(),_=h==="d"?c:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(p,v))),a.date(p,v,_)},isValid:function(a,c,h){this._validateLevel++;var p=this.hasYearZero||a!==0;if(p){var v=this.newDate(a,c,this.minDay);p=c>=this.minMonth&&c-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,C)},toJSDate:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=new Date(p.year(),p.month()-1,p.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=d.exports=new b;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=y},15168:function(d,s,n){var u=n(50896),b=n(38700);u(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],u(b.cdate.prototype,{formatDate:function(i,S){return typeof i!="string"&&(S=i,i=""),this._calendar.formatDate(i||"",this,S)}}),u(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,S,w){if(typeof i!="string"&&(w=S,S=i,i=""),!S)return"";if(S.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,m,a,c=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,p=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,O=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),C=function(k,I,z,$){var Q=""+I;if(O(k,$))for(;Q.length1},A=function(X,te){var Z=P(X,te),K=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],re=new RegExp("^-?\\d{1,"+K+"}"),q=S.substring($).match(re);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){P("m");var X=h.call(L,S.substring($));return $+=X.length,X}return A("m")},k=function(X,te,Z,K){for(var re=P(X,K)?Z:te,q=0;q-1){C=1,x=R;for(var U=this.daysInMonth(O,C);x>U;U=this.daysInMonth(O,C))C++,x-=U}return _>-1?this.fromJD(_):this.newDate(O,C,x)},determineDate:function(i,S,w,y,m){w&&typeof w!="object"&&(m=y,y=w,w=null),typeof y!="string"&&(m=y,y="");var a=this;return S=S?S.newDate():null,i==null?S:typeof i=="string"?function(c){try{return a.parseDate(y,c,m)}catch{}for(var h=((c=c.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),p=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=p.exec(c);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=p.exec(c);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?S:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,s,n){var u=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],S=0;S>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?A(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?A(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=p.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?A(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?A(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=O.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=C.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?P(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function P(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function A(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),Qe=Math.max(Pe,Ie,ze),Ve=NaN,$e=Qe-De,Oe=(Qe+De)/2;return $e?(Ve=Pe===Qe?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function Z(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}u(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),u(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),u(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),Z(this.s),Z(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*Z(this.s),"%, ").concat(100*Z(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var re=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(Qe){return ze+Qe*De}}(Te,Ie):re(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(Qe,Ve){return Ve-Qe?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Re){return Math.pow($e+Re*Oe,ke)}}(Qe,Ve,De):re(isNaN(Qe)?Ve:Qe)}}(Pe);function ze(De,Qe){var Ve=Ie((De=L(De)).r,(Qe=L(Qe)).r),$e=Ie(De.g,Qe.g),Oe=Ie(De.b,Qe.b),ke=q(De.opacity,Qe.opacity);return function(Re){return De.r=Ve(Re),De.g=$e(Re),De.b=Oe(Re),De.opacity=ke(Re),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,Qe=new Array(De),Ve=new Array(ze);for(Ie=0;IeQe&&(De=Pe.slice(Qe,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:pe(Ie,ze)})),Qe=de.lastIndex;return Qe{const f=document.getElementById(t.id);f&&Qhe.Plots.resize(f)},o=f=>{const E=JSON.parse(f);Qhe.react(t.id,E.data,E.layout)};pg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),oce(()=>{window.removeEventListener("resize",e)}),ia(()=>t.figureJson,f=>{o(f)})}}),mp=(t,e)=>{const o=t.__vccOpts||t;for(const[f,E]of e)o[f]=E;return o},RTe=["id"];function LTe(t,e,o,f,E,d){return Uo(),Ya("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,RTe)}const yce=mp(PTe,[["render",LTe]]);class Qu{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let E=[];return this.decompose(0,e,E,2),f.length&&f.decompose(0,f.length,E,3),this.decompose(o,this.length,E,1),v_.from(E,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),v_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),E=new oI(this),d=new oI(e);for(let s=o,n=o;;){if(E.next(s),d.next(s),s=0,E.lineBreak!=d.lineBreak||E.done!=d.done||E.value!=d.value)return!1;if(n+=E.value.length,E.done||n>=f)return!0}}iter(e=1){return new oI(this,e)}iterRange(e,o=this.length){return new Gve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let E=this.line(e).from;f=this.iterRange(E,Math.max(E,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new Kve(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Qu.empty:e.length<=32?new hp(e):v_.from(hp.split(e,[]))}}class hp extends Qu{constructor(e,o=ITe(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.text[d],n=E+s.length;if((o?f:n)>=e)return new DTe(E,n,f,s);E=n+1,f++}}decompose(e,o,f,E){let d=e<=0&&o>=this.length?this:new hp(Hhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(E&1){let s=f.pop(),n=aH(d.text,s.text.slice(),0,d.length);if(n.length<=32)f.push(new hp(n,s.length+d.length));else{let u=n.length>>1;f.push(new hp(n.slice(0,u)),new hp(n.slice(u)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof hp))return super.replace(e,o,f);let E=aH(this.text,aH(f.text,Hhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return E.length<=32?new hp(E,d):v_.from(hp.split(E,[]),d)}sliceString(e,o=this.length,f=` +`)):Y=U.stylize("[Circular]","special")),M(q)){if(re&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function O(U){return typeof U=="boolean"}function C(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return P(U)&&k(U)==="[object RegExp]"}function P(U){return typeof U=="object"&&U!==null}function A(U){return P(U)&&k(U)==="[object Date]"}function L(U){return P(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}s.debuglog=function(U){if(U=U.toUpperCase(),!S[U])if(w.test(U)){var X=u.pid;S[U]=function(){var te=s.format.apply(s,arguments);console.error("%s %d: %s",U,X,te)}}else S[U]=function(){};return S[U]},s.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=_,s.isBoolean=O,s.isNull=C,s.isNullOrUndefined=function(U){return U==null},s.isNumber=x,s.isString=R,s.isSymbol=function(U){return typeof U=="symbol"},s.isUndefined=M,s.isRegExp=T,s.types.isRegExp=T,s.isObject=P,s.isDate=A,s.types.isDate=A,s.isError=L,s.types.isNativeError=L,s.isFunction=D,s.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},s.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}s.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(U,X){if(!X||!P(X))return U;for(var te=Object.keys(X),Z=te.length;Z--;)U[te[Z]]=X[te[Z]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}s.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,Z,K=new Promise(function(Y,ee){te=Y,Z=ee}),re=[],q=0;q"u"?n.g:globalThis,c=b(),h=S("String.prototype.slice"),p=Object.getPrototypeOf,v=S("Array.prototype.indexOf",!0)||function(O,C){for(var x=0;x-1?C:C==="Object"&&function(x){var R=!1;return u(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(O)}return w?function(x){var R=!1;return u(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(O):null}},67020:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(p,v){if(typeof p=="string"){var _=p.match(y);return _?_[0]:""}var O=this._validateYear(p),C=p.month(),x=""+this.toChineseMonth(O,C);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(O,C)&&(x+="i"),x},monthNames:function(p){if(typeof p=="string"){var v=p.match(m);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},monthNamesShort:function(p){if(typeof p=="string"){var v=p.match(a);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},parseMonth:function(p,v){p=this._validateYear(p);var _,O=parseInt(v);if(isNaN(O))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var C=v[v.length-1];_=C==="i"||C==="I"}return this.toMonthIndex(p,O,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(p,v){if(p.year&&(p=p.year()),typeof p!="number"||p<1888||p>2111)throw v.replace(/\{0\}/,this.local.name);return p},toMonthIndex:function(p,v,_){var O=this.intercalaryMonth(p);if(_&&v!==O||v<1||v>12)throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return O?!_&&v<=O?v-1:v:v-1},toChineseMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);if(v<0||v>(_?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(p){return p=this._validateYear(p),c[p-c[0]]>>13},isIntercalaryMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);return!!_&&_===v},leapYear:function(p){return this.intercalaryMonth(p)!==0},weekOfYear:function(p,v,_){var O,C=this._validateYear(p,u.local.invalidyear),x=h[C-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(O=i.newDate(R,M,T)).add(4-(O.dayOfWeek()||7),"d");var P=this.toJD(p,v,_)-O.toJD();return 1+Math.floor(P/7)},monthsInYear:function(p){return this.leapYear(p)?13:12},daysInMonth:function(p,v){p.year&&(v=p.month(),p=p.year()),p=this._validateYear(p);var _=c[p-c[0]];if(v>(_>>13?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(p,v,_){return(this.dayOfWeek(p,v,_)||7)<6},toJD:function(p,v,_){var O=this._validate(p,x,_,u.local.invalidDate);p=this._validateYear(O.year()),v=O.month(),_=O.day();var C=this.isIntercalaryMonth(p,v),x=this.toChineseMonth(p,v),R=function(M,T,P,A,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof P=="number"&&P>=1&&P<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(z=!1,D=A):(z=!!A,D={}),k={year:M,month:T,day:P,isIntercalary:z}}I=k.day-1;var $,Q=c[k.year-c[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(p,x,_,C);return i.toJD(R.year,R.month,R.day)},fromJD:function(p){var v=i.fromJD(p),_=function(C,x,R,M){var T,P;if(typeof C=="object")T=C,P=x||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:x,day:R},P={}}var A=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;P.year=L>=A?T.year:T.year-1,A=h[P.year-h[0]];var D,k=new Date(A>>9&4095,(A>>5&15)-1,31&A),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=c[P.year-c[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{century:S[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(m=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-32*(m-1)+1;return this.newDate(y<=0?y-1:y,m,a)}});var S={20:"Fruitbat",21:"Anchovy"};u.calendars.discworld=i},65168:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()+(w.year()<0?1:0))%4==3||S%4==-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),13},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return(S=m.year())<0&&S++,m.day()+30*(m.month()-1)+365*(S-1)+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var w=Math.floor(S)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(S)+.5-this.newDate(y,1,1).toJD();var m=Math.floor(w/30)+1,a=w-30*(m-1)+1;return this.newDate(y,m,a)}}),u.calendars.ethiopian=i},2084:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function S(w,y){return w-y*Math.floor(w/y)}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return S(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,u.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,u.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&S(this.daysInYear(w),10)===5?30:y===9&&S(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w<=0?w+1:w,h=this.jdEpoch+this._delay1(c)+this._delay2(c)+m+1;if(y<7){for(var p=7;p<=this.monthsInYear(w);p++)h+=this.daysInMonth(w,p);for(p=1;p=this.toJD(y===-1?1:y+1,7,1);)y++;for(var m=wthis.toJD(y,m,this.daysInMonth(y,m));)m++;var a=w-this.toJD(y,m,1)+1;return this.newDate(y,m,a)}}),u.calendars.hebrew=i},26368:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){return(11*this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year()+14)%30<11},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){return this.leapYear(S)?355:354},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==5},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),S=S<=0?S+1:S,(y=m.day())+Math.ceil(29.5*(w-1))+354*(S-1)+Math.floor((3+11*S)/30)+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var w=Math.floor((30*(S-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((S-29-this.toJD(w,1,1))/29.5)+1),m=S-this.toJD(w,y,1)+1;return this.newDate(w,y,m)}}),u.calendars.islamic=i},24747:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),y=m.day(),S<0&&S++,w<=2&&(S--,w+=12),Math.floor(365.25*(S+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(S){var w=Math.floor(S+.5)+1524,y=Math.floor((w-122.1)/365.25),m=Math.floor(365.25*y),a=Math.floor((w-m)/30.6001),c=a-Math.floor(a<14?1:13),h=y-Math.floor(c>2?4716:4715),p=w-m-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,c,p)}}),u.calendars.julian=i},65616:function(d,s,n){var u=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function S(y,m){return y-m*Math.floor(y/m)}function w(y,m){return S(y-1,m)+1}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,u.local.invalidYear).year();var m=Math.floor(y/400);return y%=400,y+=y<0?400:0,m+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&c<0)throw"Invalid Mayan year";m=20*m+c}return m},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),18},weekOfYear:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),360},daysInMonth:function(y,m){return this._validate(y,m,this.minDay,u.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate).day()},weekDay:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),!0},extraInfo:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate).toJD(),h=this._toHaab(c),p=this._toTzolkin(c);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[p[0]-1],tzolkinDay:p[0],tzolkinTrecena:p[1]}},_toHaab:function(y){var m=S(8+(y-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,S(m,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate);return c.day()+20*c.month()+360*c.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var m=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),c=y%20;return this.newDate(m,a,c)}}),u.calendars.mayan=i},30632:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar;var S=u.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return S.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidMonth);(w=a.year())<0&&w++;for(var c=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var m=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;m>this.daysInMonth(y,a);)m-=this.daysInMonth(y,a),a++;return this.newDate(y,a,m)}}),u.calendars.nanakshahi=i},73040:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(S){return this.daysInYear(S)!==this.daysPerYear},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){if(S=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[S]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[S][y];return w},daysInMonth:function(S,w){return S.year&&(w=S.month(),S=S.year()),this._validate(S,w,this.minDay,u.local.invalidMonth),this.NEPALI_CALENDAR_DATA[S]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[S][w]},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);S=m.year(),w=m.month(),y=m.day();var a=u.instance(),c=0,h=w,p=S;this._createMissingCalendarData(S);var v=S-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[p][0]?56:57);for(w!==9&&(c=y,h--);h!==9;)h<=0&&(h=12,p--),c+=this.NEPALI_CALENDAR_DATA[p][h],h--;return w===9?(c+=y-this.NEPALI_CALENDAR_DATA[p][0])<0&&(c+=a.daysInYear(v)):c+=this.NEPALI_CALENDAR_DATA[p][9]-this.NEPALI_CALENDAR_DATA[p][0],a.newDate(v,1,1).add(c,"d").toJD()},fromJD:function(S){var w=u.instance().fromJD(S),y=w.year(),m=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var c=9,h=this.NEPALI_CALENDAR_DATA[a][0],p=this.NEPALI_CALENDAR_DATA[a][c]-h+1;m>p;)++c>12&&(c=1,a++),p+=this.NEPALI_CALENDAR_DATA[a][c];var v=this.NEPALI_CALENDAR_DATA[a][c]-(p-m);return this.newDate(a,c,v)},_createMissingCalendarData:function(S){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=S-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w-(w>=0?474:473),h=474+S(c,2820);return m+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(c/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),m=Math.floor(y/1029983),a=S(y,1029983),c=2820;if(a!==1029982){var h=Math.floor(a/366),p=S(a,366);c=Math.floor((2134*h+2816*p+2815)/1028522)+h+1}var v=c+2820*m+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,O=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),C=w-this.toJD(v,O,1)+1;return this.newDate(v,O,C)}}),u.calendars.persian=i,u.calendars.jalali=i},51456:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),u.calendars.taiwan=S},4592:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),u.calendars.thai=S},45348:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,m=1;m<=12;m++)y+=this.daysInMonth(w,m);return y},daysInMonth:function(w,y){for(var m=this._validate(w,y,this.minDay,u.local.invalidMonth).toJD()-24e5+.5,a=0,c=0;cm)return S[a]-S[a-1];a++}return 30},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate),c=12*(a.year()-1)+a.month()-15292;return a.day()+S[c-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,m=0,a=0;ay);a++)m++;var c=m+15292,h=Math.floor((c-1)/12),p=h+1,v=c-12*h,_=y-S[m-1]+1;return this.newDate(p,v,_)},isValid:function(w,y,m){var a=u.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,m,a){var c=u.baseCalendar.prototype._validate.apply(this,arguments);if(c.year<1276||c.year>1500)throw a.replace(/\{0\}/,this.local.name);return c}}),u.calendars.ummalqura=i;var S=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,s,n){var u=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,c,h,p){if(this._calendar=a,this._year=c,this._month=h,this._day=p,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S(a,c){return"000000".substring(0,c-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}u(b.prototype,{instance:function(a,c){a=(a||"gregorian").toLowerCase(),c=c||"";var h=this._localCals[a+"-"+c];if(!h&&this.calendars[a]&&(h=new this.calendars[a](c),this._localCals[a+"-"+c]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,c,h,p,v){return(p=(a!=null&&a.year?a.calendar():typeof p=="string"?this.instance(p,v):p)||this.instance()).newDate(a,c,h)},substituteDigits:function(a){return function(c){return(c+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,c){return function(h){for(var p="",v=0;h>0;){var _=h%10;p=(_===0?"":a[_]+c[v])+p,v++,h=Math.floor(h/10)}return p.indexOf(a[1]+c[1])===0&&(p=p.substr(1)),p||a[0]}}}),u(i.prototype,{newDate:function(a,c,h){return this._calendar.newDate(a??this,c,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,c,h){if(!this._calendar.isValid(a,c,h))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=c,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,c){return this._calendar.add(this,a,c)},set:function(a,c){return this._calendar.set(this,a,c)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var c=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return c===0?0:c<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+S(Math.abs(this.year()),4)+"-"+S(this.month(),2)+"-"+S(this.day(),2)}}),u(w.prototype,{_validateLevel:0,newDate:function(a,c,h){return a==null?this.today():(a.year&&(this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=a.day(),c=a.month(),a=a.year()),new i(this,a,c,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(c.year()<0?"-":"")+S(Math.abs(c.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,c){var h=this._validate(a,c,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,c){var h=(c+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(c)?366:365},dayOfYear:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return p.toJD()-this.newDate(p.year(),this.fromMonthOfYear(p.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(p))+2)%this.daysInWeek()},extraInfo:function(a,c,h){return this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,c,h){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,c,h),c,h)},_add:function(a,c,h){if(this._validateLevel++,h==="d"||h==="w"){var p=a.toJD()+c*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(p);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?c:0),O=a.monthOfYear()+(h==="m"?c:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,O)&&(O=this.newDate(_,a.month(),this.minDay).monthOfYear()),O=Math.min(O,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O)))):h==="m"&&(function(x){for(;OR-1+x.minMonth;)_++,O-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O))));var C=[_,this.fromMonthOfYear(_,O),v];return this._validateLevel--,C}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,c,h,p){if(!(this.hasYearZero||p!=="y"&&p!=="m"||c[0]!==0&&a.year()>0==c[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[p],_=h<0?-1:1;c=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(c[0],c[1],c[2])},set:function(a,c,h){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var p=h==="y"?c:a.year(),v=h==="m"?c:a.month(),_=h==="d"?c:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(p,v))),a.date(p,v,_)},isValid:function(a,c,h){this._validateLevel++;var p=this.hasYearZero||a!==0;if(p){var v=this.newDate(a,c,this.minDay);p=c>=this.minMonth&&c-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,C)},toJSDate:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=new Date(p.year(),p.month()-1,p.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=d.exports=new b;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=y},15168:function(d,s,n){var u=n(50896),b=n(38700);u(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],u(b.cdate.prototype,{formatDate:function(i,S){return typeof i!="string"&&(S=i,i=""),this._calendar.formatDate(i||"",this,S)}}),u(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,S,w){if(typeof i!="string"&&(w=S,S=i,i=""),!S)return"";if(S.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,m,a,c=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,p=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,O=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),C=function(k,I,z,$){var Q=""+I;if(O(k,$))for(;Q.length1},A=function(X,te){var Z=P(X,te),K=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],re=new RegExp("^-?\\d{1,"+K+"}"),q=S.substring($).match(re);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){P("m");var X=h.call(L,S.substring($));return $+=X.length,X}return A("m")},k=function(X,te,Z,K){for(var re=P(X,K)?Z:te,q=0;q-1){C=1,x=R;for(var U=this.daysInMonth(O,C);x>U;U=this.daysInMonth(O,C))C++,x-=U}return _>-1?this.fromJD(_):this.newDate(O,C,x)},determineDate:function(i,S,w,y,m){w&&typeof w!="object"&&(m=y,y=w,w=null),typeof y!="string"&&(m=y,y="");var a=this;return S=S?S.newDate():null,i==null?S:typeof i=="string"?function(c){try{return a.parseDate(y,c,m)}catch{}for(var h=((c=c.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),p=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=p.exec(c);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=p.exec(c);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?S:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,s,n){var u=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],S=0;S>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?A(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?A(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=p.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?A(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?A(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=O.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=C.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?P(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function P(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function A(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),Qe=Math.max(Pe,Ie,ze),Ve=NaN,$e=Qe-De,Oe=(Qe+De)/2;return $e?(Ve=Pe===Qe?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function Z(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}u(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),u(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),u(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),Z(this.s),Z(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*Z(this.s),"%, ").concat(100*Z(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var re=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(Qe){return ze+Qe*De}}(Te,Ie):re(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(Qe,Ve){return Ve-Qe?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Re){return Math.pow($e+Re*Oe,ke)}}(Qe,Ve,De):re(isNaN(Qe)?Ve:Qe)}}(Pe);function ze(De,Qe){var Ve=Ie((De=L(De)).r,(Qe=L(Qe)).r),$e=Ie(De.g,Qe.g),Oe=Ie(De.b,Qe.b),ke=q(De.opacity,Qe.opacity);return function(Re){return De.r=Ve(Re),De.g=$e(Re),De.b=Oe(Re),De.opacity=ke(Re),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,Qe=new Array(De),Ve=new Array(ze);for(Ie=0;IeQe&&(De=Pe.slice(Qe,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:pe(Ie,ze)})),Qe=de.lastIndex;return Qe{const f=document.getElementById(t.id);f&&Zhe.Plots.resize(f)},o=f=>{const E=JSON.parse(f);Zhe.react(t.id,E.data,E.layout)};pg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),ice(()=>{window.removeEventListener("resize",e)}),ia(()=>t.figureJson,f=>{o(f)})}}),mp=(t,e)=>{const o=t.__vccOpts||t;for(const[f,E]of e)o[f]=E;return o},ITe=["id"];function DTe(t,e,o,f,E,d){return Uo(),Ya("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,ITe)}const bce=mp(LTe,[["render",DTe]]);class Qu{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let E=[];return this.decompose(0,e,E,2),f.length&&f.decompose(0,f.length,E,3),this.decompose(o,this.length,E,1),v_.from(E,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),v_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),E=new oI(this),d=new oI(e);for(let s=o,n=o;;){if(E.next(s),d.next(s),s=0,E.lineBreak!=d.lineBreak||E.done!=d.done||E.value!=d.value)return!1;if(n+=E.value.length,E.done||n>=f)return!0}}iter(e=1){return new oI(this,e)}iterRange(e,o=this.length){return new Jve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let E=this.line(e).from;f=this.iterRange(E,Math.max(E,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new eye(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Qu.empty:e.length<=32?new hp(e):v_.from(hp.split(e,[]))}}class hp extends Qu{constructor(e,o=BTe(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.text[d],n=E+s.length;if((o?f:n)>=e)return new zTe(E,n,f,s);E=n+1,f++}}decompose(e,o,f,E){let d=e<=0&&o>=this.length?this:new hp(qhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(E&1){let s=f.pop(),n=sH(d.text,s.text.slice(),0,d.length);if(n.length<=32)f.push(new hp(n,s.length+d.length));else{let u=n.length>>1;f.push(new hp(n.slice(0,u)),new hp(n.slice(u)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof hp))return super.replace(e,o,f);let E=sH(this.text,sH(f.text,qhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return E.length<=32?new hp(E,d):v_.from(hp.split(E,[]),d)}sliceString(e,o=this.length,f=` `){let E="";for(let d=0,s=0;d<=o&&se&&s&&(E+=f),ed&&(E+=n.slice(Math.max(0,e-d),o-d)),d=u+1}return E}flatten(e){for(let o of this.text)e.push(o)}scanIdentical(){return 0}static split(e,o){let f=[],E=-1;for(let d of e)f.push(d),E+=d.length+1,f.length==32&&(o.push(new hp(f,E)),f=[],E=-1);return E>-1&&o.push(new hp(f,E)),o}}class v_ extends Qu{constructor(e,o){super(),this.children=e,this.length=o,this.lines=0;for(let f of e)this.lines+=f.lines}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.children[d],n=E+s.length,u=f+s.lines-1;if((o?u:n)>=e)return s.lineInner(e,o,f,E);E=n+1,f=u+1}}decompose(e,o,f,E){for(let d=0,s=0;s<=o&&d=s){let b=E&((s<=e?1:0)|(u>=o?2:0));s>=e&&u<=o&&!b?f.push(n):n.decompose(e-s,o-s,f,b)}s=u+1}}replace(e,o,f){if(f.lines=d&&o<=n){let u=s.replace(e-d,o-d,f),b=this.lines-s.lines+u.lines;if(u.lines>5-1&&u.lines>b>>5+1){let i=this.children.slice();return i[E]=u,new v_(i,this.length-(o-e)+f.length)}return super.replace(d,n,u)}d=n+1}return super.replace(e,o,f)}sliceString(e,o=this.length,f=` -`){let E="";for(let d=0,s=0;de&&d&&(E+=f),es&&(E+=n.sliceString(e-s,o-s,f)),s=u+1}return E}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof v_))return 0;let f=0,[E,d,s,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;E+=o,d+=o){if(E==s||d==n)return f;let u=this.children[E],b=e.children[d];if(u!=b)return f+u.scanIdentical(b,o);f+=u.length+1}}static from(e,o=e.reduce((f,E)=>f+E.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let m of e)m.flatten(y);return new hp(y,o)}let E=Math.max(32,f>>5),d=E<<1,s=E>>1,n=[],u=0,b=-1,i=[];function S(y){let m;if(y.lines>d&&y instanceof v_)for(let a of y.children)S(a);else y.lines>s&&(u>s||!u)?(w(),n.push(y)):y instanceof hp&&u&&(m=i[i.length-1])instanceof hp&&y.lines+m.lines<=32?(u+=y.lines,b+=y.length+1,i[i.length-1]=new hp(m.text.concat(y.text),m.length+1+y.length)):(u+y.lines>E&&w(),u+=y.lines,b+=y.length+1,i.push(y))}function w(){u!=0&&(n.push(i.length==1?i[0]:v_.from(i,b)),b=-1,u=i.length=0)}for(let y of e)S(y);return w(),n.length==1?n[0]:new v_(n,o)}}Qu.empty=new hp([""],0);function ITe(t){let e=-1;for(let o of t)e+=o.length+1;return e}function aH(t,e,o=0,f=1e9){for(let E=0,d=0,s=!0;d=o&&(u>f&&(n=n.slice(0,f-E)),E0?1:(e instanceof hp?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,E=this.nodes[f],d=this.offsets[f],s=d>>1,n=E instanceof hp?E.text.length:E.children.length;if(s==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(E instanceof hp){let u=E.text[s+(o<0?-1:0)];if(this.offsets[f]+=o,u.length>Math.max(0,e))return this.value=e==0?u:o>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=E.children[s+(o<0?-1:0)];e>u.length?(e-=u.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(u),this.offsets.push(o>0?1:(u instanceof hp?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Gve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new oI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:E}=this.cursor.next(e);return this.pos+=(E.length+e)*o,this.value=E.length<=f?E:o<0?E.slice(E.length-f):E.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Kve{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:E}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=E,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Qu.prototype[Symbol.iterator]=function(){return this.iter()},oI.prototype[Symbol.iterator]=Gve.prototype[Symbol.iterator]=Kve.prototype[Symbol.iterator]=function(){return this});let DTe=class{constructor(e,o,f,E){this.from=e,this.to=o,this.number=f,this.text=E}get length(){return this.to-this.from}},q8="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return q8[e-1]<=t;return!1}function Zhe(t){return t>=127462&&t<=127487}const qhe=8205;function cg(t,e,o=!0,f=!0){return(o?Jve:zTe)(t,e,f)}function Jve(t,e,o){if(e==t.length)return e;e&&eye(t.charCodeAt(e))&&tye(t.charCodeAt(e-1))&&e--;let f=ag(t,e);for(e+=Gy(f);e=0&&Zhe(ag(t,s));)d++,s-=2;if(d%2==0)break;e+=2}else break}return e}function zTe(t,e,o){for(;e>0;){let f=Jve(t,e-2,o);if(f=56320&&t<57344}function tye(t){return t>=55296&&t<56320}function ag(t,e){let o=t.charCodeAt(e);if(!tye(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return eye(f)?(o-55296<<10)+(f-56320)+65536:o}function bce(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Gy(t){return t<65536?1:2}const Gae=/\r\n?|\n/;var lg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(lg||(lg={}));class k_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-E);d+=n}else{if(f!=lg.Simple&&b>=e&&(f==lg.TrackDel&&Ee||f==lg.TrackBefore&&Ee))return null;if(b>e||b==e&&o<0&&!n)return e==E||o<0?d:d+u;d+=u}E=b}if(e>E)throw new RangeError(`Position ${e} is out of range for changeset of length ${E}`);return d}touchesRange(e,o=e){for(let f=0,E=0;f=0&&E<=o&&n>=e)return Eo?"cover":!0;E=n}return!1}toString(){let e="";for(let o=0;o=0?":"+E:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k_(e)}static create(e){return new k_(e)}}class Wp extends k_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Kae(this,(o,f,E,d,s)=>e=e.replace(E,E+(f-o),s),!1),e}mapDesc(e,o=!1){return Jae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let E=0,d=0;E=0){o[E]=n,o[E+1]=s;let u=E>>1;for(;f.length0&&s4(f,o,d.text),d.forward(i),n+=i}let b=e[s++];for(;n>1].toJSON()))}return e}static of(e,o,f){let E=[],d=[],s=0,n=null;function u(i=!1){if(!i&&!E.length)return;sw||S<0||w>o)throw new RangeError(`Invalid change range ${S} to ${w} (in doc of length ${o})`);let m=y?typeof y=="string"?Qu.of(y.split(f||Gae)):y:Qu.empty,a=m.length;if(S==w&&a==0)return;Ss&&Yg(E,S-s,-1),Yg(E,w-S,a),s4(d,E,m),s=w}}return b(e),u(!n),n}static empty(e){return new Wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let E=0;En&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[E+1]?t[E]+=e:e==0&&t[E]==0?t[E+1]+=o:f?(t[E]+=e,t[E+1]+=o):t.push(e,o)}function s4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||s==t.sections.length||t.sections[s+1]<0);)n=t.sections[s++],u=t.sections[s++];e(E,b,d,i,S),E=b,d=i}}}function Jae(t,e,o,f=!1){let E=[],d=f?[]:null,s=new SI(t),n=new SI(e);for(let u=-1;;)if(s.ins==-1&&n.ins==-1){let b=Math.min(s.len,n.len);Yg(E,b,-1),s.forward(b),n.forward(b)}else if(n.ins>=0&&(s.ins<0||u==s.i||s.off==0&&(n.len=0&&u=0){let b=0,i=s.len;for(;i;)if(n.ins==-1){let S=Math.min(i,n.len);b+=S,i-=S,n.forward(S)}else if(n.ins==0&&n.lenu||s.ins>=0&&s.len>u)&&(n||f.length>b),d.forward2(u),s.forward(u)}}}}class SI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?Qu.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?Qu.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class zT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,E;return this.empty?f=E=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),E=e.mapPos(this.to,-1)),f==this.from&&E==this.to?this:new zT(f,E,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return hi.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return hi.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return hi.range(e.anchor,e.head)}static create(e,o,f){return new zT(e,o,f)}}class hi{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:hi.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new hi(e.ranges.map(o=>zT.fromJSON(o)),e.main)}static single(e,o=e){return new hi([hi.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,E=0;Ee?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((E,d)=>E.from-d.from),o=e.indexOf(f);for(let E=1;Ed.head?hi.range(u,n):hi.range(n,u))}}return new hi(e,o)}}function rye(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let xce=0;class ls{constructor(e,o,f,E,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=E,this.id=xce++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new ls(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:_ce),!!e.static,e.enables)}of(e){return new sH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new sH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new sH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function _ce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class sH{constructor(e,o,f,E){this.dependencies=e,this.facet=o,this.type=f,this.value=E,this.id=xce++}dynamicSlot(e){var o;let f=this.value,E=this.facet.compareInput,d=this.id,s=e[d]>>1,n=this.type==2,u=!1,b=!1,i=[];for(let S of this.dependencies)S=="doc"?u=!0:S=="selection"?b=!0:((o=e[S.id])!==null&&o!==void 0?o:1)&1||i.push(e[S.id]);return{create(S){return S.values[s]=f(S),1},update(S,w){if(u&&w.docChanged||b&&(w.docChanged||w.selection)||ese(S,i)){let y=f(S);if(n?!Whe(y,S.values[s],E):!E(y,S.values[s]))return S.values[s]=y,1}return 0},reconfigure:(S,w)=>{let y,m=w.config.address[d];if(m!=null){let a=DH(w,m);if(this.dependencies.every(c=>c instanceof ls?w.facet(c)===S.facet(c):c instanceof tm?w.field(c,!1)==S.field(c,!1):!0)||(n?Whe(y=f(S),a,E):E(y=f(S),a)))return S.values[s]=a,0}else y=f(S);return S.values[s]=y,1}}}}function Whe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[u.id]),E=o.map(u=>u.type),d=f.filter(u=>!(u&1)),s=t[e.id]>>1;function n(u){let b=[];for(let i=0;if===E),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Yhe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,E)=>{let d=f.values[o],s=this.updateF(d,E);return this.compareF(d,s)?0:(f.values[o]=s,1)},reconfigure:(f,E)=>E.config.address[this.id]!=null?(f.values[o]=E.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Yhe.of({field:this,create:e})]}get extension(){return this}}const RT={lowest:4,low:3,default:2,high:1,highest:0};function EL(t){return e=>new oye(e,t)}const ty={highest:EL(RT.highest),high:EL(RT.high),default:EL(RT.default),low:EL(RT.low),lowest:EL(RT.lowest)};class oye{constructor(e,o){this.inner=e,this.prec=o}}class lD{of(e){return new tse(this,e)}reconfigure(e){return lD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class tse{constructor(e,o){this.compartment=e,this.inner=o}}class IH{constructor(e,o,f,E,d,s){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=E,this.staticValues=d,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let E=[],d=Object.create(null),s=new Map;for(let w of FTe(e,o,s))w instanceof tm?E.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),u=[],b=[];for(let w of E)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],m=y[0].facet,a=i&&i[w]||[];if(y.every(c=>c.type==0))if(n[m.id]=u.length<<1|1,_ce(a,y))u.push(f.facet(m));else{let c=m.combine(y.map(h=>h.value));u.push(f&&m.compare(c,f.facet(m))?f.facet(m):c)}else{for(let c of y)c.type==0?(n[c.id]=u.length<<1|1,u.push(c.value)):(n[c.id]=b.length<<1,b.push(h=>c.dynamicSlot(h)));n[m.id]=b.length<<1,b.push(c=>NTe(c,m,y))}}let S=b.map(w=>w(n));return new IH(e,s,S,n,u,d)}}function FTe(t,e,o){let f=[[],[],[],[],[]],E=new Map;function d(s,n){let u=E.get(s);if(u!=null){if(u<=n)return;let b=f[u].indexOf(s);b>-1&&f[u].splice(b,1),s instanceof tse&&o.delete(s.compartment)}if(E.set(s,n),Array.isArray(s))for(let b of s)d(b,n);else if(s instanceof tse){if(o.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(s.compartment)||s.inner;o.set(s.compartment,b),d(b,n)}else if(s instanceof oye)d(s.inner,s.prec);else if(s instanceof tm)f[n].push(s),s.provides&&d(s.provides,n);else if(s instanceof sH)f[n].push(s),s.facet.extensions&&d(s.facet.extensions,RT.default);else{let b=s.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,RT.default),f.reduce((s,n)=>s.concat(n))}function iI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let E=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|E}function DH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const iye=ls.define(),nse=ls.define({combine:t=>t.some(e=>e),static:!0}),aye=ls.define({combine:t=>t.length?t[0]:void 0,static:!0}),sye=ls.define(),lye=ls.define(),cye=ls.define(),uye=ls.define({combine:t=>t.length?t[0]:!1});class NO{constructor(e,o){this.type=e,this.value=o}static define(){return new $Te}}class $Te{of(e){return new NO(this,e)}}class VTe{constructor(e){this.map=e}of(e){return new Ql(this,e)}}class Ql{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new Ql(this.type,o)}is(e){return this.type==e}static define(e={}){return new VTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let E of e){let d=E.map(o);d&&f.push(d)}return f}}Ql.reconfigure=Ql.define();Ql.appendConfig=Ql.define();class Xp{constructor(e,o,f,E,d,s){this.startState=e,this.changes=o,this.selection=f,this.effects=E,this.annotations=d,this.scrollIntoView=s,this._doc=null,this._state=null,f&&rye(f,o.newLength),d.some(n=>n.type==Xp.time)||(this.annotations=d.concat(Xp.time.of(Date.now())))}static create(e,o,f,E,d,s){return new Xp(e,o,f,E,d,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Xp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Xp.time=NO.define();Xp.userEvent=NO.define();Xp.addToHistory=NO.define();Xp.remote=NO.define();function UTe(t,e){let o=[];for(let f=0,E=0;;){let d,s;if(f=t[f]))d=t[f++],s=t[f++];else if(E=0;E--){let d=f[E](t);d instanceof Xp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Xp?t=d[0]:t=dye(e,W8(d),!1)}return t}function QTe(t){let e=t.startState,o=e.facet(cye),f=t;for(let E=o.length-1;E>=0;E--){let d=o[E](t);d&&Object.keys(d).length&&(f=fye(f,rse(e,d,t.changes.newLength),!0))}return f==t?t:Xp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const HTe=[];function W8(t){return t==null?HTe:Array.isArray(t)?t:[t]}var yh=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(yh||(yh={}));const ZTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ose;try{ose=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function qTe(t){if(ose)return ose.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||ZTe.test(o)))return!0}return!1}function WTe(t){return e=>{if(!/\S/.test(e))return yh.Space;if(qTe(e))return yh.Word;for(let o=0;o-1)return yh.Word;return yh.Other}}class kc{constructor(e,o,f,E,d,s){this.config=e,this.doc=o,this.selection=f,this.values=E,this.status=e.statusTemplate.slice(),this.computeSlot=d,s&&(s._state=this);for(let n=0;nE.set(b,u)),o=null),E.set(n.value.compartment,n.value.extension)):n.is(Ql.reconfigure)?(o=null,f=n.value):n.is(Ql.appendConfig)&&(o=null,f=W8(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=IH.resolve(f,E,this),d=new kc(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(u,b)=>b.reconfigure(u,this),null).values);let s=e.startState.facet(nse)?e.newSelection:e.newSelection.asSingle();new kc(o,e.newDoc,s,d,(n,u)=>u.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:hi.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),E=this.changes(f.changes),d=[f.range],s=W8(f.effects);for(let n=1;ns.spec.fromJSON(n,u)))}}return kc.create({doc:e.doc,selection:hi.fromJSON(e.selection),extensions:o.extensions?E.concat([o.extensions]):E})}static create(e={}){let o=IH.resolve(e.extensions||[],new Map),f=e.doc instanceof Qu?e.doc:Qu.of((e.doc||"").split(o.staticFacet(kc.lineSeparator)||Gae)),E=e.selection?e.selection instanceof hi?e.selection:hi.single(e.selection.anchor,e.selection.head):hi.single(0);return rye(E,f.length),o.staticFacet(nse)||(E=E.asSingle()),new kc(o,f,E,o.dynamicSlots.map(()=>null),(d,s)=>s.create(d),null)}get tabSize(){return this.facet(kc.tabSize)}get lineBreak(){return this.facet(kc.lineSeparator)||` -`}get readOnly(){return this.facet(uye)}phrase(e,...o){for(let f of this.facet(kc.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,E)=>{if(E=="$")return"$";let d=+(E||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let E=[];for(let d of this.facet(iye))for(let s of d(this,o,f))Object.prototype.hasOwnProperty.call(s,e)&&E.push(s[e]);return E}charCategorizer(e){return WTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:E}=this.doc.lineAt(e),d=this.charCategorizer(e),s=e-f,n=e-f;for(;s>0;){let u=cg(o,s,!1);if(d(o.slice(u,s))!=yh.Word)break;s=u}for(;nt.length?t[0]:4});kc.lineSeparator=aye;kc.readOnly=uye;kc.phrases=ls.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(E=>t[E]==e[E])}});kc.languageData=iye;kc.changeFilter=sye;kc.transactionFilter=lye;kc.transactionExtender=cye;lD.reconfigure=Ql.define();function E_(t,e,o={}){let f={};for(let E of t)for(let d of Object.keys(E)){let s=E[d],n=f[d];if(n===void 0)f[d]=s;else if(!(n===s||s===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,s);else throw new Error("Config merge conflict for field "+d)}for(let E in e)f[E]===void 0&&(f[E]=e[E]);return f}class ZT{eq(e){return this==e}range(e,o=e){return ise.create(e,o,this)}}ZT.prototype.startSide=ZT.prototype.endSide=0;ZT.prototype.point=!1;ZT.prototype.mapMode=lg.TrackDel;let ise=class hye{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new hye(e,o,f)}};function ase(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class wce{constructor(e,o,f,E){this.from=e,this.to=o,this.value=f,this.maxPoint=E}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,E=0){let d=f?this.to:this.from;for(let s=E,n=d.length;;){if(s==n)return s;let u=s+n>>1,b=d[u]-e||(f?this.value[u].endSide:this.value[u].startSide)-o;if(u==s)return b>=0?s:n;b>=0?n=u:s=u+1}}between(e,o,f,E){for(let d=this.findIndex(o,-1e9,!0),s=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(s<0&&(s=w),b.point&&(n=Math.max(n,y-w)),f.push(b),E.push(w-s),d.push(y-s))}return{mapped:f.length?new wce(E,d,f,n):null,pos:s}}}class Df{constructor(e,o,f,E){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=E}static create(e,o,f,E){return new Df(e,o,f,E)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:E=0,filterTo:d=this.length}=e,s=e.filter;if(o.length==0&&!s)return this;if(f&&(o=o.slice().sort(ase)),this.isEmpty)return o.length?Df.of(o):this;let n=new pye(this,null,-1).goto(0),u=0,b=[],i=new y4;for(;n.value||u=0){let S=o[u++];i.addInner(S.from,S.to,S.value)||b.push(S)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+s.length&&s.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return kI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return kI.from(e).goto(o)}static compare(e,o,f,E,d=-1){let s=e.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),n=o.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),u=Xhe(s,n,f),b=new PL(s,u,d),i=new PL(n,u,d);f.iterGaps((S,w,y)=>Ghe(b,S,i,w,y,E)),f.empty&&f.length==0&&Ghe(b,0,i,0,0,E)}static eq(e,o,f=0,E){E==null&&(E=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),s=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=s.length)return!1;if(!d.length)return!0;let n=Xhe(d,s),u=new PL(d,n,0).goto(f),b=new PL(s,n,0).goto(f);for(;;){if(u.to!=b.to||!sse(u.active,b.active)||u.point&&(!b.point||!u.point.eq(b.point)))return!1;if(u.to>E)return!0;u.next(),b.next()}}static spans(e,o,f,E,d=-1){let s=new PL(e,null,d).goto(o),n=o,u=s.openStart;for(;;){let b=Math.min(s.to,f);if(s.point){let i=s.activeForPoint(s.to),S=s.pointFromn&&(E.span(n,b,s.active,u),u=s.openEnd(b));if(s.to>f)return u+(s.point&&s.to>f?1:0);n=s.to,s.next()}}static of(e,o=!1){let f=new y4;for(let E of e instanceof ise?[e]:o?YTe(e):e)f.add(E.from,E.to,E.value);return f.finish()}}Df.empty=new Df([],[],null,-1);function YTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(ase);e=f}return t}Df.empty.nextLayer=Df.empty;class y4{finishChunk(e){this.chunks.push(new wce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new y4)).add(e,o,f)}addInner(e,o,f){let E=e-this.lastTo||f.startSide-this.last.endSide;if(E<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return E<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Df.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Df.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Xhe(t,e,o){let f=new Map;for(let d of t)for(let s=0;s=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&E.push(new pye(s,o,f,d));return E.length==1?E[0]:new kI(E)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)Tie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)Tie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Tie(this.heap,0)}}}function Tie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let E=t[f];if(f+1=0&&(E=t[f+1],f++),o.compare(E)<0)break;t[f]=o,t[e]=E,e=f}}class PL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=kI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){bQ(this.active,e),bQ(this.activeTo,e),bQ(this.activeRank,e),this.minActive=Khe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:E,rank:d}=this.cursor;for(;o-1&&(this.activeTo[E]-this.cursor.from||this.active[E].endSide-this.cursor.startSide)<0){if(this.activeTo[E]>e){this.to=this.activeTo[E],this.endSide=this.active[E].endSide;break}this.removeActive(E),f&&bQ(f,E)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[E]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function Ghe(t,e,o,f,E,d){t.goto(e),o.goto(f);let s=f+E,n=f,u=f-e;for(;;){let b=t.to+u-o.to||t.endSide-o.endSide,i=b<0?t.to+u:o.to,S=Math.min(i,s);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&sse(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,S,t.point,o.point):S>n&&!sse(t.active,o.active)&&d.compareRange(n,S,t.active,o.active),i>s)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function sse(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function Khe(t,e){let o=-1,f=1e9;for(let E=0;E=e)return E;if(E==t.length)break;d+=t.charCodeAt(E)==9?o-d%o:1,E=cg(t,E)}return f===!0?-1:t.length}const cse="ͼ",Jhe=typeof Symbol>"u"?"__"+cse:Symbol.for(cse),use=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),epe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class b4{constructor(e,o){this.rules=[];let{finish:f}=o||{};function E(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function d(s,n,u,b){let i=[],S=/^@(\w+)\b/.exec(s[0]),w=S&&S[1]=="keyframes";if(S&&n==null)return u.push(s[0]+";");for(let y in n){let m=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>s.map(c=>a.replace(/&/,c))).reduce((a,c)=>a.concat(c)),m,u);else if(m&&typeof m=="object"){if(!S)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(E(y),m,i,w)}else m!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+m+";")}(i.length||w)&&u.push((f&&!S&&!b?s.map(f):s).join(", ")+" {"+i.join(" ")+"}")}for(let s in e)d(E(s),e[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=epe[Jhe]||1;return epe[Jhe]=e+1,cse+e.toString(36)}static mount(e,o,f){let E=e[use],d=f&&f.nonce;E?d&&E.setNonce(d):E=new XTe(e,d),E.mount(Array.isArray(o)?o:[o])}}let tpe=new Map;class XTe{constructor(e,o){let f=e.ownerDocument||e,E=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&E.CSSStyleSheet){let d=tpe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[use]=d;this.sheet=new E.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],tpe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[use]=this}mount(e){let o=this.sheet,f=0,E=0;for(let d=0;d-1&&(this.modules.splice(n,1),E--,n=-1),n==-1){if(this.modules.splice(E++,0,s),o)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},GTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),KTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var sg=0;sg<10;sg++)x4[48+sg]=x4[96+sg]=String(sg);for(var sg=1;sg<=24;sg++)x4[sg+111]="F"+sg;for(var sg=65;sg<=90;sg++)x4[sg]=String.fromCharCode(sg+32),TI[sg]=String.fromCharCode(sg);for(var Cie in x4)TI.hasOwnProperty(Cie)||(TI[Cie]=x4[Cie]);function JTe(t){var e=GTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||KTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?TI:x4)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function BH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function fse(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function eCe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function lH(t,e){if(!e.anchorNode)return!1;try{return fse(t,e.anchorNode)}catch{return!1}}function lM(t){return t.nodeType==3?qT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function zH(t,e,o,f){return o?npe(t,e,o,f,-1)||npe(t,e,o,f,1):!1}function CI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function npe(t,e,o,f,E){for(;;){if(t==o&&e==f)return!0;if(e==(E<0?0:PO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=CI(t)+(E<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(E<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=E<0?PO(t):0}else return!1}}function PO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ZZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function tCe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function nCe(t,e,o,f,E,d,s,n){let u=t.ownerDocument,b=u.defaultView||window;for(let i=t,S=!1;i&&!S;)if(i.nodeType==1){let w,y=i==u.body,m=1,a=1;if(y)w=tCe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(S=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let p=i.getBoundingClientRect();m=p.width/i.offsetWidth,a=p.height/i.offsetHeight,w={left:p.left,right:p.left+i.clientWidth*m,top:p.top,bottom:p.top+i.clientHeight*a}}let c=0,h=0;if(E=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+s)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+s,o<0&&e.top-h0&&e.right>w.right+c&&(c=e.right-w.right+c+d)):e.right>w.right&&(c=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class oCe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?PO(o):0),f,Math.min(e.focusOffset,f?PO(f):0))}set(e,o,f,E){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=E}}let C8=null;function mye(t){if(t.setActive)return t.setActive();if(C8)return t.focus(C8);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(C8==null?{get preventScroll(){return C8={preventScroll:!0},!0}}:void 0),!C8){C8=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Gg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Gg(e.parentNode,CI(e),o)}static after(e,o){return new Gg(e.parentNode,CI(e)+1,o)}}const Oce=[];class eh{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,E=null,d;for(let s of this.children){if(s.flags&7){if(!s.dom&&(d=E?E.nextSibling:f.firstChild)){let n=eh.get(d);(!n||!n.parent&&n.canReuseDOM(s))&&s.reuseDOM(d)}s.sync(e,o),s.flags&=-8}if(d=E?E.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=s.dom&&(o.written=!0),s.dom.parentNode==f)for(;d&&d!=s.dom;)d=ope(d);else f.insertBefore(s.dom,d);E=s.dom}for(d=E?E.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=ope(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let E=PO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;E==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?E=-1:E=1),e=d}E<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!eh.get(f);)f=f.nextSibling;if(!f)return this.length;for(let E=0,d=0;;E++){let s=this.children[E];if(s.dom==f)return d;d+=s.length+s.breakAfter}}domBoundsAround(e,o,f=0){let E=-1,d=-1,s=-1,n=-1;for(let u=0,b=f,i=f;uo)return S.domBoundsAround(e,o,b);if(w>=e&&E==-1&&(E=u,d=b),b>o&&S.dom.parentNode==this.dom){s=u,n=i;break}i=w,b=w+S.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(E?this.children[E-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=Oce){this.markDirty();for(let E=e;Ethis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function bye(t,e,o,f,E,d,s,n,u){let{children:b}=t,i=b.length?b[e]:null,S=d.length?d[d.length-1]:null,w=S?S.breakAfter:s;if(!(e==f&&i&&!s&&!w&&d.length<2&&i.merge(o,E,d.length?S:null,o==0,n,u))){if(f0&&(!s&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var xs={mac:spe||/Mac/.test(Yv.platform),windows:/Win/.test(Yv.platform),linux:/Linux|X11/.test(Yv.platform),ie:qZ,ie_version:_ye?dse.documentMode||6:pse?+pse[1]:hse?+hse[1]:0,gecko:ipe,gecko_version:ipe?+(/Firefox\/(\d+)/.exec(Yv.userAgent)||[0,0])[1]:0,chrome:!!Aie,chrome_version:Aie?+Aie[1]:0,ios:spe,android:/Android\b/.test(Yv.userAgent),webkit:ape,safari:wye,webkit_version:ape?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:dse.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const sCe=256;class RO extends eh{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof RO)||this.length-(o-e)+f.length>sCe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new RO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Gg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return lCe(this.dom,e,o)}}class LO extends eh{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let E of o)E.setParent(this)}setAttrs(e){if(gye(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,E,d,s){return f&&(!(f instanceof LO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(E=d),f=u,d++}let s=this.length-e;return this.length=e,E>-1&&(this.children.length=E,this.markDirty()),new LO(this.mark,o,s)}domAtPos(e){return Oye(this,e)}coordsAt(e,o){return kye(this,e,o)}}function lCe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let E=e,d=e,s=0;e==0&&o<0||e==f&&o>=0?xs.chrome||xs.gecko||(e?(E--,s=1):d=0)?0:n.length-1];return xs.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(n,b=>b.width)||u),s?ZZ(u,s<0):u||null}class l4 extends eh{static create(e,o,f){return new l4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=l4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,E,d,s){return f&&(!(f instanceof l4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Gg.before(this.dom):Gg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let E=this.dom.getClientRects(),d=null;if(!E.length)return null;let s=this.side?this.side<0:e>0;for(let n=s?E.length-1:0;d=E[n],!(e>0?n==0:n==E.length-1||d.top0?Gg.before(this.dom):Gg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Qu.empty}get isHidden(){return!0}}RO.prototype.children=l4.prototype.children=cM.prototype.children=Oce;function Oye(t,e){let o=t.dom,{children:f}=t,E=0;for(let d=0;Ed&&e0;d--){let s=f[d-1];if(s.dom.parentNode==o)return s.domAtPos(s.length)}for(let d=E;d0&&e instanceof LO&&E.length&&(f=E[E.length-1])instanceof LO&&f.mark.eq(e.mark)?Sye(f,e.children[0],o-1):(E.push(e),e.setParent(t)),t.length+=e.length}function kye(t,e,o){let f=null,E=-1,d=null,s=-1;function n(b,i){for(let S=0,w=0;S=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(m>i||w==m&&y.getSide()>0)?(d=y,s=i-w):(w-1?1:0)!=E.length-(o&&E.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(E.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function gse(t,e,o){let f=!1;if(e)for(let E in e)o&&E in o||(f=!0,E=="style"?t.style.cssText="":t.removeAttribute(E));if(o)for(let E in o)e&&e[E]==o[E]||(f=!0,E=="style"?t.style.cssText=o[E]:t.setAttribute(E,o[E]));return f}function uCe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Sce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Sye(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=mse(o,this.attrs||{})),f&&(this.attrs=mse({class:f},this.attrs||{}))}domAtPos(e){return Oye(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(gye(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(gse(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let E=this.dom.lastChild;for(;E&&eh.get(E)instanceof LO;)E=E.lastChild;if(!E||!this.length||E.nodeName!="BR"&&((f=eh.get(E))===null||f===void 0?void 0:f.isEditable)==!1&&(!xs.ios||!this.children.some(d=>d instanceof RO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof RO)||/[^ -~]/.test(f.text))return null;let E=lM(f.dom);if(E.length!=1)return null;e+=E[0].width,o=E[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=kye(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:E}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-E.lineHeight)<2&&E.textHeight=o){if(d instanceof qp)return d;if(s>o)break}E=s+d.breakAfter}return null}}class p4 extends eh{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,E,d,s){return f&&(!(f instanceof p4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ex{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var q0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(q0||(q0={}));class Ns extends ZT{constructor(e,o,f,E){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=E}get heightRelevant(){return!1}static mark(e){return new cD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new _4(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,E;if(e.isBlockGap)f=-5e8,E=4e8;else{let{start:d,end:s}=Tye(e,o);f=(d?o?-3e8:-1:5e8)-1,E=(s?o?2e8:1:-6e8)+1}return new _4(e,f,E,o,e.widget||null,!0)}static line(e){return new uD(e)}static set(e,o=!1){return Df.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ns.none=Df.empty;class cD extends Ns{constructor(e){let{start:o,end:f}=Tye(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof cD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&Sce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}cD.prototype.point=!1;class uD extends Ns{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof uD&&this.spec.class==e.spec.class&&Sce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}uD.prototype.mapMode=lg.TrackBefore;uD.prototype.point=!0;class _4 extends Ns{constructor(e,o,f,E,d,s){super(o,f,d,e),this.block=E,this.isReplace=s,this.mapMode=E?o<=0?lg.TrackBefore:lg.TrackAfter:lg.TrackDel}get type(){return this.startSide!=this.endSide?q0.WidgetRange:this.startSide<=0?q0.WidgetBefore:q0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _4&&fCe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}_4.prototype.point=!0;function Tye(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function fCe(t,e){return t==e||!!(t&&e&&t.compare(e))}function vse(t,e,o,f=0){let E=o.length-1;E>=0&&o[E]+f>=t?o[E]=Math.max(o[E],e):o.push(t,e)}class aI{constructor(e,o,f,E){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=E,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof p4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new qp),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(_Q(new cM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof p4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:s,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let E=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(_Q(new RO(this.text.slice(this.textOff,this.textOff+E)),o),f),this.atCursorPos=!0,this.textOff+=E,e-=E,f=0}}span(e,o,f,E){this.buildText(o-e,f,E),this.pos=o,this.openStart<0&&(this.openStart=E)}point(e,o,f,E,d,s){if(this.disallowBlockEffectsFor[s]&&f instanceof _4){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof _4)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new p4(f.widget||new cpe("div"),n,f));else{let u=l4.create(f.widget||new cpe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!u.isEditable&&d<=E.length&&(e0),i=!u.isEditable&&(eE.length||f.startSide<=0),S=this.getLine();this.pendingBuffer==2&&!b&&!u.isEditable&&(this.pendingBuffer=0),this.flushBuffer(E),b&&(S.append(_Q(new cM(1),E),d),d=E.length+Math.max(0,d-E.length)),S.append(_Q(u,E),d),this.atCursorPos=i,this.pendingBuffer=i?eE.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=E.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,E,d){let s=new aI(e,o,f,d);return s.openEnd=Df.spans(E,o,f,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function _Q(t,e){for(let o of e)t=new LO(o,[t],t.length);return t}class cpe extends Ex{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Cye=ls.define(),Aye=ls.define(),Mye=ls.define(),Eye=ls.define(),yse=ls.define(),Pye=ls.define(),Rye=ls.define(),Lye=ls.define({combine:t=>t.some(e=>e)}),Iye=ls.define({combine:t=>t.some(e=>e)});class X8{constructor(e,o="nearest",f="nearest",E=5,d=5,s=!1){this.range=e,this.y=o,this.x=f,this.yMargin=E,this.xMargin=d,this.isSnapshot=s}map(e){return e.empty?this:new X8(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new X8(hi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const wQ=Ql.define({map:(t,e)=>t.map(e)});function rb(t,e,o){let f=t.facet(Eye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const WZ=ls.define({combine:t=>t.length?t[0]:!0});let dCe=0;const HL=ls.define();class zh{constructor(e,o,f,E,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=E,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:E,provide:d,decorations:s}=o||{};return new zh(dCe++,e,f,E,n=>{let u=[HL.of(n)];return s&&u.push(AI.of(b=>{let i=b.plugin(n);return i?s(i):Ns.none})),d&&u.push(d(n)),u})}static fromClass(e,o){return zh.define(f=>new e(f),o)}}class Mie{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(rb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){rb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){rb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Dye=ls.define(),kce=ls.define(),AI=ls.define(),Tce=ls.define(),Bye=ls.define();function upe(t,e,o){let f=t.state.facet(Bye);if(!f.length)return f;let E=f.map(s=>s instanceof Function?s(t):s),d=[];return Df.spans(E,e,o,{point(){},span(s,n,u,b){let i=d;for(let S=u.length-1;S>=0;S--,b--){let w=u[S].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==s&&y.direction==w)y.to=n,i=y.inner;else{let m={from:s,to:n,direction:w,inner:[]};i.push(m),i=m.inner}}}}),d}const zye=ls.define();function Nye(t){let e=0,o=0,f=0,E=0;for(let d of t.state.facet(zye)){let s=d(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(o=Math.max(o,s.right)),s.top!=null&&(f=Math.max(f,s.top)),s.bottom!=null&&(E=Math.max(E,s.bottom)))}return{left:e,right:o,top:f,bottom:E}}const ZL=ls.define();class ob{constructor(e,o,f,E){this.fromA=e,this.toA=o,this.fromB=f,this.toB=E}join(e){return new ob(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let E=e[o-1];if(!(E.fromA>f.toA)){if(E.toAi)break;d+=2}if(!u)return f;new ob(u.fromA,u.toA,u.fromB,u.toB).addToSet(f),s=u.toA,n=u.toB}}}class NH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=Wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let E=[];this.changes.iterChangedRanges((d,s,n,u)=>E.push(new ob(d,s,n,u))),this.changedRanges=E}static create(e,o,f){return new NH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var Bh=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Bh||(Bh={}));const MI=Bh.LTR,Fye=Bh.RTL;function $ye(t){let e=[];for(let o=0;o=o){if(n.level==f)return s;(d<0||(E!=0?E<0?n.fromo:e[d].level>n.level))&&(d=s)}}if(d<0)throw new RangeError("Index out of range");return d}}function Vye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(u_[a+1]==-y){let c=u_[a+2],h=c&2?E:c&4?c&1?d:E:0;h&&(hd[S]=hd[u_[a]]=h),n=a;break}}else{if(u_.length==189)break;u_[n++]=S,u_[n++]=w,u_[n++]=u}else if((m=hd[S])==2||m==1){let a=m==E;u=a?0:1;for(let c=n-3;c>=0;c-=3){let h=u_[c+2];if(h&2)break;if(a)u_[c+2]|=2;else{if(h&4)break;u_[c+2]|=4}}}}}function bCe(t,e,o,f){for(let E=0,d=f;E<=o.length;E++){let s=E?o[E-1].to:t,n=Eu;)m==c&&(m=o[--a].from,c=a?o[a-1].to:t),hd[--m]=y;u=i}else d=b,u++}}}function xse(t,e,o,f,E,d,s){let n=f%2?2:1;if(f%2==E%2)for(let u=e,b=0;uu&&s.push(new c4(u,a.from,y));let c=a.direction==MI!=!(y%2);_se(t,c?f+1:f,E,a.inner,a.from,a.to,s),u=a.to}m=a.to}else{if(m==o||(i?hd[m]!=n:hd[m]==n))break;m++}w?xse(t,u,m,f+1,E,w,s):ue;){let i=!0,S=!1;if(!b||u>d[b-1].to){let a=hd[u-1];a!=n&&(i=!1,S=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,m=u;e:for(;;)if(b&&m==d[b-1].to){if(S)break e;let a=d[--b];if(!i)for(let c=a.from,h=b;;){if(c==e)break e;if(h&&d[h-1].to==c)c=d[--h].from;else{if(hd[c-1]==n)break e;break}}if(w)w.push(a);else{a.tohd.length;)hd[hd.length]=256;let f=[],E=e==MI?0:1;return _se(t,E,E,o,0,t.length,f),f}function Uye(t){return[new c4(0,t,0)]}let jye="";function _Ce(t,e,o,f,E){var d;let s=f.head-t.from,n=-1;if(s==0){if(!E||!t.length)return null;e[0].level!=o&&(s=e[0].side(!1,o),n=0)}else if(s==t.length){if(E)return null;let w=e[e.length-1];w.level!=o&&(s=w.side(!0,o),n=e.length-1)}n<0&&(n=c4.find(e,s,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let u=e[n];s==u.side(E,o)&&(u=e[n+=E?1:-1],s=u.side(!E,o));let b=E==(u.dir==o),i=cg(t.text,s,b);if(jye=t.text.slice(Math.min(s,i),Math.max(s,i)),i!=u.side(E,o))return hi.cursor(i+t.from,b?-1:1,u.level);let S=n==(E?e.length-1:0)?null:e[n+(E?1:-1)];return!S&&u.level!=o?hi.cursor(E?t.to:t.from,E?-1:1,o):S&&S.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let E=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?E=this.domChanged.newSel.head:!ACe(e.changes,this.hasComposition)&&!e.selectionSet&&(E=e.state.selection.main.head));let d=E>-1?OCe(this.view,e.changes,E):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new ob(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(xs.ie||xs.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,n=this.updateDeco(),u=TCe(s,n,e.changes);return f=ob.extendWithRanges(f,u),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:E}=this.view;E.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=xs.chrome||xs.ios?{node:E.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||E.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?E[s]:null;if(!n)break;let{fromA:u,toA:b,fromB:i,toB:S}=n,w,y,m,a;if(f&&f.range.fromBi){let _=aI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),O=aI.build(this.view.state.doc,f.range.toB,S,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,m=_.openStart,a=O.openEnd;let C=this.compositionView(f);O.breakAtStart?C.breakAfter=1:O.content.length&&C.merge(C.length,C.length,O.content[0],!1,O.openStart,0)&&(C.breakAfter=O.content[0].breakAfter,O.content.shift()),_.content.length&&C.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(C).concat(O.content)}else({content:w,breakAtStart:y,openStart:m,openEnd:a}=aI.build(this.view.state.doc,i,S,this.decorations,this.dynamicDecorationMap));let{i:c,off:h}=d.findPos(b,1),{i:p,off:v}=d.findPos(u,-1);bye(this,p,v,c,h,w,y,m,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new RO(e.text.nodeValue);o.flags|=8;for(let{deco:E}of e.marks)o=new LO(E,[o],o.length);let f=new qp;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,s)=>{s.flags|=8|(s.children.some(u=>u.flags&7)?1:0),this.markedForComposition.add(s);let n=eh.get(d);n&&n!=s&&(n.dom=null),s.setDOM(d)},f=this.childPos(e.range.fromB,1),E=this.children[f.i];o(e.line,E);for(let d=e.marks.length-1;d>=-1;d--)f=E.childPos(f.off,1),E=E.children[f.i],o(d>=0?e.marks[d].node:e.text,E)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,E=f==this.dom,d=!E&&lH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(E||o||d))return;let s=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?u:this.moveToLine(this.domAtPos(n.head));if(xs.gecko&&n.empty&&!this.hasComposition&&wCe(u)){let S=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(S,u.node.childNodes[u.offset]||null)),u=b=new Gg(S,0),s=!0}let i=this.view.observer.selectionRange;(s||!i.focusNode||!zH(u.node,u.offset,i.anchorNode,i.anchorOffset)||!zH(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{xs.android&&xs.chrome&&this.dom.contains(i.focusNode)&&CCe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let S=BH(this.view.root);if(S)if(n.empty){if(xs.gecko){let w=SCe(u.node,u.offset);if(w&&w!=3){let y=Hye(u.node,u.offset,w==1?1:-1);y&&(u=new Gg(y.node,y.offset))}}S.collapse(u.node,u.offset),n.bidiLevel!=null&&S.caretBidiLevel!==void 0&&(S.caretBidiLevel=n.bidiLevel)}else if(S.extend){S.collapse(u.node,u.offset);try{S.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([u,b]=[b,u]),w.setEnd(b.node,b.offset),w.setStart(u.node,u.offset),S.removeAllRanges(),S.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(u,b)),this.impreciseAnchor=u.precise?null:new Gg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Gg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=BH(e.root),{anchorNode:E,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let s=qp.find(this,o.head);if(!s)return;let n=s.posAtStart;if(o.head==n||o.head==n+s.length)return;let u=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!u||!b||u.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let S=e.observer.selectionRange;e.docView.posFromDOM(S.anchorNode,S.anchorOffset)!=o.from&&f.collapse(E,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let E=e.offset;!f&&E=0;E--){let d=eh.get(o.childNodes[E]);d instanceof qp&&(f=d.domAtPos(d.length))}return f?new Gg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=eh.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;s--){let n=this.children[s],u=d-n.breakAfter,b=u-n.length;if(ue||n.covers(1))&&(!f||n instanceof qp&&!(f instanceof qp&&o>=0))&&(f=n,E=b),d=b}return f?f.coordsAt(e-E,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),E=this.children[o];if(!(E instanceof qp))return null;for(;E.children.length;){let{i:n,off:u}=E.childPos(f,1);for(;;n++){if(n==E.children.length)return null;if((E=E.children[n]).length)break}f=u}if(!(E instanceof RO))return null;let d=cg(E.text,f);if(d==f)return null;let s=qT(E.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,u=this.view.textDirection==Bh.LTR;for(let b=0,i=0;iE)break;if(b>=f){let y=S.dom.getBoundingClientRect();if(o.push(y.height),s){let m=S.dom.lastChild,a=m?lM(m):[];if(a.length){let c=a[a.length-1],h=u?c.right-y.left:y.right-c.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+S.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?Bh.RTL:Bh.LTR}measureTextSize(){for(let d of this.children)if(d instanceof qp){let s=d.measureTextSize();if(s)return s}let e=document.createElement("div"),o,f,E;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=lM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,E=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:E}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new yye(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,E=0;;E++){let d=E==o.viewports.length?null:o.viewports[E],s=d?d.from-1:this.length;if(s>f){let n=(o.lineBlockAt(s).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(Ns.replace({widget:new dpe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,s))}if(!d)break;f=d.to+1}return Ns.set(e)}updateDeco(){let e=this.view.state.facet(AI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),E;if(!f)return;!o.empty&&(E=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,E.left),top:Math.min(f.top,E.top),right:Math.max(f.right,E.right),bottom:Math.max(f.bottom,E.bottom)});let d=Nye(this.view),s={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:u}=this.view.scrollDOM;nCe(this.view.scrollDOM,s,o.head0)f=f.childNodes[E-1],E=PO(f);else break}if(o>=0)for(let f=t,E=e;;){if(f.nodeType==3)return{node:f,offset:E};if(f.nodeType==1&&E=0)f=f.childNodes[E],E=0;else break}return null}function SCe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function MCe(t,e,o=1){let f=t.charCategorizer(e),E=t.doc.lineAt(e),d=e-E.from;if(E.length==0)return hi.cursor(e);d==0?o=1:d==E.length&&(o=-1);let s=d,n=d;o<0?s=cg(E.text,d,!1):n=cg(E.text,d);let u=f(E.text.slice(s,n));for(;s>0;){let b=cg(E.text,s,!1);if(f(E.text.slice(b,s))!=u)break;s=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function PCe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Eie(t,e){return t.tope.top+1}function hpe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function wse(t,e,o){let f,E,d,s,n=!1,u,b,i,S;for(let m=t.firstChild;m;m=m.nextSibling){let a=lM(m);for(let c=0;cv||s==v&&d>p){f=m,E=h,d=p,s=v;let _=v?o0?c0)}p==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=m,S=h):i&&Eie(i,h)?i=ppe(i,h.bottom):S&&Eie(S,h)&&(S=hpe(S,h.top))}}if(i&&i.bottom>=o?(f=u,E=i):S&&S.top<=o&&(f=b,E=S),!f)return{node:t,offset:0};let w=Math.max(E.left,Math.min(E.right,e));if(f.nodeType==3)return mpe(f,w,o);if(n&&f.contentEditable!="false")return wse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(E.left+E.right)/2?1:0);return{node:t,offset:y}}function mpe(t,e,o){let f=t.nodeValue.length,E=-1,d=1e9,s=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&S=(i.left+i.right)/2,y=w;if((xs.chrome||xs.gecko)&&qT(t,n).getBoundingClientRect().left==i.right&&(y=!w),S<=0)return{node:t,offset:n+(y?1:0)};E=n+(y?1:0),d=S}}}return{node:t,offset:E>-1?E:s>0?t.nodeValue.length:0}}function Zye(t,e,o,f=-1){var E,d;let s=t.contentDOM.getBoundingClientRect(),n=s.top+t.viewState.paddingTop,u,{docHeight:b}=t.viewState,{x:i,y:S}=e,w=S-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,O=!1;u=t.elementAtHeight(w),u.type!=q0.Text;)for(;w=f>0?u.bottom+_:u.top-_,!(w>=0&&w<=b);){if(O)return o?null:0;O=!0,f=-f}S=n+w;let y=u.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:gpe(t,s,u,i,S);let m=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:m,c=a.elementFromPoint(i,S);c&&!t.contentDOM.contains(c)&&(c=null),c||(i=Math.max(s.left+1,Math.min(s.right-1,i)),c=a.elementFromPoint(i,S),c&&!t.contentDOM.contains(c)&&(c=null));let h,p=-1;if(c&&((E=t.docView.nearest(c))===null||E===void 0?void 0:E.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(i,S);_&&({offsetNode:h,offset:p}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(i,S);_&&({startContainer:h,startOffset:p}=_,(!t.contentDOM.contains(h)||xs.safari&&RCe(h,p,i)||xs.chrome&&LCe(h,p,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=qp.find(t.docView,y);if(!_)return w>u.top+u.height/2?u.to:u.from;({node:h,offset:p}=wse(_.dom,i,S))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,p)+v.posAtStart}function gpe(t,e,o,f,E){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,u=Math.floor((E-o.top-(t.defaultLineHeight-n)*.5)/n);d+=u*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(o.from,o.to);return o.from+lse(s,d,t.state.tabSize)}function RCe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let E=t.nextSibling;E;E=E.nextSibling)if(E.nodeType!=1||E.nodeName!="BR")return!1;return qT(t,f-1,f).getBoundingClientRect().left>o}function LCe(t,e,o){if(e!=0)return!1;for(let E=t;;){let d=E.parentNode;if(!d||d.nodeType!=1||d.firstChild!=E)return!1;if(d.classList.contains("cm-line"))break;E=d}let f=t.nodeType==1?t.getBoundingClientRect():qT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function Ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==q0.Text))return f}return o}function ICe(t,e,o,f){let E=Ose(t,e.head),d=!f||E.type!=q0.Text||!(t.lineWrapping||E.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>E.from?e.head-1:e.head);if(d){let s=t.dom.getBoundingClientRect(),n=t.textDirectionAt(E.from),u=t.posAtCoords({x:o==(n==Bh.LTR)?s.right-1:s.left+1,y:(d.top+d.bottom)/2});if(u!=null)return hi.cursor(u,o?-1:1)}return hi.cursor(o?E.to:E.from,o?-1:1)}function vpe(t,e,o,f){let E=t.state.doc.lineAt(e.head),d=t.bidiSpans(E),s=t.textDirectionAt(E.from);for(let n=e,u=null;;){let b=_Ce(E,d,s,n,o),i=jye;if(!b){if(E.number==(o?t.state.doc.lines:1))return n;i=` -`,E=t.state.doc.line(E.number+(o?1:-1)),d=t.bidiSpans(E),b=hi.cursor(o?E.from:E.to)}if(u){if(!u(i))return n}else{if(!f)return b;u=f(i)}n=b}}function DCe(t,e,o){let f=t.state.charCategorizer(e),E=f(o);return d=>{let s=f(d);return E==yh.Space&&(E=s),E==s}}function BCe(t,e,o,f){let E=e.head,d=o?1:-1;if(E==(o?t.state.doc.length:0))return hi.cursor(E,e.assoc);let s=e.goalColumn,n,u=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(E,e.assoc||-1),i=t.documentTop;if(b)s==null&&(s=b.left-u.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(E);s==null&&(s=Math.min(u.right-u.left,t.defaultCharacterWidth*(E-y.from))),n=(d<0?y.top:y.bottom)+i}let S=u.left+s,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let m=n+(w+y)*d,a=Zye(t,{x:S,y:m},!1,d);if(mu.bottom||(d<0?aE)){let c=t.docView.coordsForChar(a),h=!c||m{if(e>d&&eE(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:hi.cursor(f,fnull),xs.gecko&&JCe(e.contentDOM.ownerDocument)}handleEvent(e){!HCe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let E of f.observers)E(this.view,o);for(let E of f.handlers){if(o.defaultPrevented)break;if(E(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=NCe(e),f=this.handlers,E=this.view.contentDOM;for(let d in o)if(d!="scroll"){let s=!o[d].handlers.length,n=f[d];n&&s!=!n.handlers.length&&(E.removeEventListener(d,this.handleEvent),n=null),n||E.addEventListener(d,this.handleEvent,{passive:s})}for(let d in f)d!="scroll"&&!o[d]&&E.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||FCe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Y8(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:xs.safari&&!xs.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function ype(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(E){rb(o.state,E)}}}function NCe(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let E=f.spec;if(E&&E.domEventHandlers)for(let d in E.domEventHandlers){let s=E.domEventHandlers[d];s&&o(d).handlers.push(ype(f.value,s))}if(E&&E.domEventObservers)for(let d in E.domEventObservers){let s=E.domEventObservers[d];s&&o(d).observers.push(ype(f.value,s))}}for(let f in Tx)o(f).handlers.push(Tx[f]);for(let f in Cx)o(f).observers.push(Cx[f]);return e}const qye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],FCe="dthko",Wye=[16,17,18,20,91,92,224,225],OQ=6;function SQ(t){return Math.max(0,t)*.7+8}function $Ce(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class VCe{constructor(e,o,f,E){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=E,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=rCe(e.contentDOM),this.atoms=e.state.facet(Tce).map(s=>s(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(kc.allowMultipleSelections)&&UCe(e,o),this.dragging=QCe(e,o)&&Kye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&$Ce(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,E=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Nye(this.view);e.clientX-s.left<=d.left+OQ?f=-SQ(d.left-e.clientX):e.clientX+s.right>=d.right-OQ&&(f=SQ(e.clientX-d.right)),e.clientY-s.top<=d.top+OQ?E=-SQ(d.top-e.clientY):e.clientY+s.bottom>=d.bottom-OQ&&(E=SQ(e.clientY-d.bottom)),this.setScrollSpeed(f,E)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function UCe(t,e){let o=t.state.facet(Cye);return o.length?o[0](e):xs.mac?e.metaKey:e.ctrlKey}function jCe(t,e){let o=t.state.facet(Aye);return o.length?o[0](e):xs.mac?!e.altKey:!e.ctrlKey}function QCe(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=BH(t.root);if(!f||f.rangeCount==0)return!0;let E=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function HCe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=eh.get(o))&&f.ignoreEvent(e))return!1;return!0}const Tx=Object.create(null),Cx=Object.create(null),Yye=xs.ie&&xs.ie_version<15||xs.ios&&xs.webkit_version<604;function ZCe(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),Xye(t,o.value)},50)}function Xye(t,e){let{state:o}=t,f,E=1,d=o.toText(e),s=d.lines==o.selection.ranges.length;if(Sse!=null&&o.selection.ranges.every(u=>u.empty)&&Sse==d.toString()){let u=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==u)return{range:b};u=i.from;let S=o.toText((s?d.line(E++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:S},range:hi.cursor(b.from+S.length)}})}else s?f=o.changeByRange(u=>{let b=d.line(E++);return{changes:{from:u.from,to:u.to,insert:b.text},range:hi.cursor(u.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}Cx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Tx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);Cx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Cx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Tx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Mye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=YCe(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new VCe(t,e,o,f)),f&&t.observer.ignore(()=>mye(t.contentDOM));let E=t.inputState.mouseSelection;if(E)return E.start(e),E.dragging===!1}return!1};function bpe(t,e,o,f){if(f==1)return hi.cursor(e,o);if(f==2)return MCe(t.state,e,o);{let E=qp.find(t.docView,e),d=t.state.doc.lineAt(E?E.posAtEnd:e),s=E?E.posAtStart:d.from,n=E?E.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,xpe=(t,e,o)=>Gye(e,o)&&t>=o.left&&t<=o.right;function qCe(t,e,o,f){let E=qp.find(t.docView,e);if(!E)return 1;let d=e-E.posAtStart;if(d==0)return 1;if(d==E.length)return-1;let s=E.coordsAt(d,-1);if(s&&xpe(o,f,s))return-1;let n=E.coordsAt(d,1);return n&&xpe(o,f,n)?1:s&&Gye(f,s)?-1:1}function _pe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:qCe(t,o,e.clientX,e.clientY)}}const WCe=xs.ie&&xs.ie_version<=11;let wpe=null,Ope=0,Spe=0;function Kye(t){if(!WCe)return t.detail;let e=wpe,o=Spe;return wpe=t,Spe=Date.now(),Ope=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ope+1)%3:1}function YCe(t,e){let o=_pe(t,e),f=Kye(e),E=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),E=E.map(d.changes))},get(d,s,n){let u=_pe(t,d),b,i=bpe(t,u.pos,u.bias,f);if(o.pos!=u.pos&&!s){let S=bpe(t,o.pos,o.bias,f),w=Math.min(S.from,i.from),y=Math.max(S.to,i.to);i=w1&&(b=XCe(E,u.pos))?b:n?E.addRange(i):hi.create([i])}}}function XCe(t,e){for(let o=0;o=e)return hi.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}Tx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let E=t.docView.nearest(e.target);if(E&&E.isWidget){let d=E.posAtStart,s=d+E.length;(d>=o.to||s<=o.from)&&(o=hi.range(d,s))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Tx.dragend=t=>(t.inputState.draggedContent=null,!1);function kpe(t,e,o,f){if(!o)return;let E=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,s=f&&d&&jCe(t,e)?{from:d.from,to:d.to}:null,n={from:E,insert:o},u=t.state.changes(s?[s,n]:n);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(E,-1),head:u.mapPos(E,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Tx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),E=0,d=()=>{++E==o.length&&kpe(t,e,f.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[s]=n.result),d()},n.readAsText(o[s])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return kpe(t,e,f,!0),!0}return!1};Tx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=Yye?null:e.clipboardData;return o?(Xye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(ZCe(t),!1)};function GCe(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function KCe(t){let e=[],o=[],f=!1;for(let E of t.selection.ranges)E.empty||(e.push(t.sliceDoc(E.from,E.to)),o.push(E));if(!e.length){let E=-1;for(let{from:d}of t.selection.ranges){let s=t.doc.lineAt(d);s.number>E&&(e.push(s.text),o.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),E=s.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let Sse=null;Tx.copy=Tx.cut=(t,e)=>{let{text:o,ranges:f,linewise:E}=KCe(t.state);if(!o&&!E)return!1;Sse=E?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=Yye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(GCe(t,o),!1)};const Jye=NO.define();function ebe(t,e){let o=[];for(let f of t.facet(Rye)){let E=f(t,e);E&&o.push(E)}return o?t.update({effects:o,annotations:Jye.of(!0)}):null}function tbe(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=ebe(t.state,e);o?t.dispatch(o):t.update([])}},10)}Cx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),tbe(t)};Cx.blur=t=>{t.observer.clearSelectionRange(),tbe(t)};Cx.compositionstart=Cx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};Cx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,xs.chrome&&xs.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};Cx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Tx.beforeinput=(t,e)=>{var o;let f;if(xs.chrome&&xs.android&&(f=qye.find(E=>E.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let E=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>E+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Tpe=new Set;function JCe(t){Tpe.has(t)||(Tpe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Cpe=["pre-wrap","normal","pre-line","break-spaces"];class e6e{constructor(e){this.lineWrapping=e,this.doc=Qu.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Cpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,u=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=E,this.lineLength=d,u){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>uH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return W0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,E){let d=this,s=f.doc;for(let n=E.length-1;n>=0;n--){let{fromA:u,toA:b,fromB:i,toB:S}=E[n],w=d.lineAt(u,Kd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,Kd.ByPosNoHeight,f,0,0);for(S+=y.to-b,b=y.to;n>0&&w.from<=E[n-1].toA;)u=E[n-1].fromA,i=E[n-1].fromB,n--,ud*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,E-=n.size}else if(d>E*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(E=d&&s(this.blockAt(0,f,E,d))}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more&&this.setHeight(e,E.heights[E.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zv extends nbe{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,E){return new y_(E,this.length,f,this.height,this.breaks)}replace(e,o,f){let E=f[0];return f.length==1&&(E instanceof Zv||E instanceof ig&&E.flags&4)&&Math.abs(this.length-E.length)<10?(E instanceof ig?E=new Zv(E.length,this.height):E.height=this.height,this.outdated||(E.outdated=!1),E):W0.of(f)}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more?this.setHeight(e,E.heights[E.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ig extends W0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,E=e.doc.lineAt(o+this.length).number,d=E-f+1,s,n=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*d);s=u/d,this.length>d+1&&(n=(this.height-u)/(this.length-d-1))}else s=this.height/d;return{firstLine:f,lastLine:E,perLine:s,perChar:n}}blockAt(e,o,f,E){let{firstLine:d,lastLine:s,perLine:n,perChar:u}=this.heightMetrics(o,E);if(o.lineWrapping){let b=E+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),S=n+i.length*u,w=Math.max(f,e-S/2);return new y_(i.from,i.length,w,S,0)}else{let b=Math.max(0,Math.min(s-d,Math.floor((e-f)/n))),{from:i,length:S}=o.doc.line(d+b);return new y_(i,S,f+n*b,n,0)}}lineAt(e,o,f,E,d){if(o==Kd.ByHeight)return this.blockAt(e,f,E,d);if(o==Kd.ByPosNoHeight){let{from:y,to:m}=f.doc.lineAt(e);return new y_(y,m-y,0,0,0)}let{firstLine:s,perLine:n,perChar:u}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*u,S=b.number-s,w=E+n*S+u*(b.from-d-S);return new y_(b.from,b.length,Math.max(E,Math.min(w,E+this.height-i)),i,0)}forEachLine(e,o,f,E,d,s){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:u,perChar:b}=this.heightMetrics(f,d);for(let i=e,S=E;i<=o;){let w=f.doc.lineAt(i);if(i==e){let m=w.number-n;S+=u*m+b*(e-d-m)}let y=u+b*w.length;s(new y_(w.from,w.length,S,y,0)),S+=y,i=w.to+1}}replace(e,o,f){let E=this.length-o;if(E>0){let d=f[f.length-1];d instanceof ig?f[f.length-1]=new ig(d.length+E):f.push(null,new ig(E-1))}if(e>0){let d=f[0];d instanceof ig?f[0]=new ig(e+d.length):f.unshift(new ig(e-1),null)}return W0.of(f)}decomposeLeft(e,o){o.push(new ig(e-1),null)}decomposeRight(e,o){o.push(null,new ig(this.length-e-1))}updateHeight(e,o=0,f=!1,E){let d=o+this.length;if(E&&E.from<=o+this.length&&E.more){let s=[],n=Math.max(o,E.from),u=-1;for(E.from>o&&s.push(new ig(E.from-o-1).updateHeight(e,o));n<=d&&E.more;){let i=e.doc.lineAt(n).length;s.length&&s.push(null);let S=E.heights[E.index++];u==-1?u=S:Math.abs(S-u)>=uH&&(u=-2);let w=new Zv(i,S);w.outdated=!1,s.push(w),n+=i+1}n<=d&&s.push(null,new ig(d-n).updateHeight(e,n));let b=W0.of(s);return(u<0||Math.abs(b.height-this.height)>=uH||Math.abs(u-this.heightMetrics(e,o).perLine)>=uH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class n6e extends W0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,E){let d=f+this.left.height;return en))return b;let i=o==Kd.ByPosNoHeight?Kd.ByPosNoHeight:Kd.ByPos;return u?b.join(this.right.lineAt(n,i,f,s,n)):this.left.lineAt(n,i,f,E,d).join(b)}forEachLine(e,o,f,E,d,s){let n=E+this.left.height,u=d+this.left.length+this.break;if(this.break)e=u&&this.right.forEachLine(e,o,f,n,u,s);else{let b=this.lineAt(u,Kd.ByPos,f,E,d);e=e&&b.from<=o&&s(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,u,s)}}replace(e,o,f){let E=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-E,o-E,f));let d=[];e>0&&this.decomposeLeft(e,d);let s=d.length;for(let n of f)d.push(n);if(e>0&&Ape(d,s-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,E=f+this.break;if(e>=E)return this.right.decomposeRight(e-E,o);e2*o.size||o.size>2*e.size?W0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,E){let{left:d,right:s}=this,n=o+d.length+this.break,u=null;return E&&E.from<=o+d.length&&E.more?u=d=d.updateHeight(e,o,f,E):d.updateHeight(e,o,f),E&&E.from<=n+s.length&&E.more?u=s=s.updateHeight(e,n,f,E):s.updateHeight(e,n,f),u?this.balanced(d,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Ape(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof ig&&(f=t[e+1])instanceof ig&&t.splice(e-1,3,new ig(o.length+1+f.length))}const r6e=5;class Cce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),E=this.nodes[this.nodes.length-1];E instanceof Zv?E.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Zv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=r6e)&&this.addLineDeco(E,d,s)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Zv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new ig(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zv)return e;let o=new Zv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let E=this.ensureLine();E.length+=f,E.collapsed+=f,E.widgetHeight=Math.max(E.widgetHeight,e),E.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Zv)&&!this.isCovered?this.nodes.push(new Zv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&S.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),s=Math.min(s,w.right),n=Math.max(n,w.top),u=b==t.parentNode?w.bottom:Math.min(u,w.bottom)}b=S.position=="absolute"||S.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,s)-o.left,top:n-(o.top+e),bottom:Math.max(n,u)-(o.top+e)}}function s6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class Rie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new e6e(o),this.stateDeco=e.facet(AI).filter(f=>typeof f!="function"),this.heightMap=W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle.setDoc(e.doc),[new ob(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ns.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let E=f?o.head:o.anchor;if(!e.some(({from:d,to:s})=>E>=d&&E<=s)){let{from:d,to:s}=this.lineBlockAt(E);e.push(new kQ(d,s))}}this.viewports=e.sort((f,E)=>f.from-E.from),this.scaler=this.heightMap.height<=7e6?Epe:new f6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:qL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(AI).filter(i=>typeof i!="function");let E=e.changedRanges,d=ob.extendWithRanges(E,o6e(f,this.stateDeco,e?e.changes:Wp.empty(this.state.doc.length))),s=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=s&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let u=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Iye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),E=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?Bh.RTL:Bh.LTR;let s=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),u=s||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,O=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(O>.995&&O<1.005||!isFinite(O)||Math.abs(n.height-o.offsetHeight)<1)&&(O=1),(this.scaleX!=_||this.scaleY!=O)&&(this.scaleX=_,this.scaleY=O,b|=8,s=u=!0)}let S=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=S||this.paddingBottom!=w)&&(this.paddingTop=S,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(E.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=vye(e.scrollDOM);let m=(this.printing?s6e:a6e)(o,this.paddingTop),a=m.top-this.pixelViewport.top,c=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let p=n.width;if((this.contentDOMWidth!=p||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),u){let _=e.docView.measureVisibleLineHeights(this.viewport);if(E.mustRefreshForHeights(_)&&(s=!0),s||E.lineWrapping&&Math.abs(p-this.contentDOMWidth)>E.charWidth){let{lineHeight:O,charWidth:C,textHeight:x}=e.docView.measureTextSize();s=O>0&&E.refresh(d,O,C,x,p/C,_),s&&(e.docView.minWidth=0,b|=8)}a>0&&c>0?i=Math.max(a,c):a<0&&c<0&&(i=Math.min(a,c)),E.heightChanged=!1;for(let O of this.viewports){let C=O.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(O);this.heightMap=(s?W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle,[new ob(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(E,0,s,new t6e(O.from,C))}E.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),E=this.heightMap,d=this.heightOracle,{visibleTop:s,visibleBottom:n}=this,u=new kQ(E.lineAt(s-f*1e3,Kd.ByHeight,d,0,0).from,E.lineAt(n+(1-f)*1e3,Kd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bu.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),S=E.lineAt(b,Kd.ByPos,d,0,0),w;o.y=="center"?w=(S.top+S.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&E>s-2*1e3&&d>1,s=E<<1;if(this.defaultTextDirection!=Bh.LTR&&!f)return[];let n=[],u=(b,i,S,w)=>{if(i-bb&&cc.from>=S.from&&c.to<=S.to&&Math.abs(c.from-b)c.fromh));if(!a){if(ic.from<=i&&c.to>=i)){let c=o.moveToLineBoundary(hi.cursor(i),!1,!0).head;c>b&&(i=c)}a=new Rie(b,i,this.gapSize(S,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&u(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Df.spans(e,this.viewport.from,this.viewport.to,{span(E,d){o.push({from:E,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((E,d)=>E.from!=o[d].from||E.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||qL(this.heightMap.lineAt(e,Kd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return qL(this.heightMap.lineAt(this.scaler.fromDOM(e),Kd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return qL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kQ{constructor(e,o){this.from=e,this.to=o}}function c6e(t,e,o){let f=[],E=t,d=0;return Df.spans(o,t,e,{span(){},point(s,n){s>E&&(f.push({from:E,to:s}),d+=s-E),E=n}},20),E=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let E=0;;E++){let{from:d,to:s}=e[E],n=s-d;if(f<=n)return d+f;f-=n}}function CQ(t,e){let o=0;for(let{from:f,to:E}of t.ranges){if(e<=E){o+=e-f;break}o+=E-f}return o/t.total}function u6e(t,e){for(let o of t)if(e(o))return o}const Epe={toDOM(t){return t},fromDOM(t){return t},scale:1};class f6e{constructor(e,o,f){let E=0,d=0,s=0;this.viewports=f.map(({from:n,to:u})=>{let b=o.lineAt(n,Kd.ByPos,e,0,0).top,i=o.lineAt(u,Kd.ByPos,e,0,0).bottom;return E+=i-b,{from:n,to:u,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-E)/(o.height-E);for(let n of this.viewports)n.domTop=s+(n.top-d)*this.scale,s=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,E=0;;o++){let d=oqL(E,e)):t._content)}const AQ=ls.define({combine:t=>t.join(" ")}),kse=ls.define({combine:t=>t.indexOf(!0)>-1}),Tse=b4.newName(),rbe=b4.newName(),obe=b4.newName(),ibe={"&light":"."+rbe,"&dark":"."+obe};function Cse(t,e,o){return new b4(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,E=>{if(E=="&")return t;if(!o||!o[E])throw new RangeError(`Unsupported selector: ${E}`);return o[E]}):t+" "+f}})}const d6e=Cse("."+Tse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ibe),WL="￿";class h6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(kc.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=WL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let E=e;;){this.findPointBefore(f,E);let d=this.text.length;this.readNode(E);let s=E.nextSibling;if(s==o)break;let n=eh.get(E),u=eh.get(s);(n&&u?n.breakAfter:(n?n.breakAfter:Ppe(E))||Ppe(s)&&(E.nodeName!="BR"||E.cmIgnore)&&this.text.length>d)&&this.lineBreak(),E=s}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,E=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,s=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),s=this.lineSeparator.length):(n=E.exec(o))&&(d=n.index,s=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),s>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=s-1);f=d+s}}readNode(e){if(e.cmIgnore)return;let o=eh.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let E=f.iter();!E.next().done;)E.lineBreak?this.lineBreak():this.append(E.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(p6e(e,f.node,f.offset)?o:0))}}function p6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||s?[]:y6e(e),u=new h6e(n,e.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=b6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,u=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!fse(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=s&&s.node==n.anchorNode&&s.offset==n.anchorOffset||!fse(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=hi.single(b,u)}}}function abe(t,e){let o,{newSel:f}=e,E=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:n}=e.bounds,u=E.from,b=null;(d===8||xs.android&&e.text.length=E.from&&o.to<=E.to&&(o.from!=E.from||o.to!=E.to)&&E.to-E.from-(o.to-o.from)<=4?o={from:E.from,to:E.to,insert:t.state.doc.slice(E.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,E.to))}:(xs.mac||xs.android)&&o&&o.from==o.to&&o.from==E.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}):xs.chrome&&o&&o.from==o.to&&o.from==E.head&&o.insert.toString()==` - `&&t.lineWrapping&&(f&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}),o){if(xs.ios&&t.inputState.flushIOSKey()||xs.android&&(o.from==E.from&&o.to==E.to&&o.insert.length==1&&o.insert.lines==2&&Y8(t.contentDOM,"Enter",13)||(o.from==E.from-1&&o.to==E.to&&o.insert.length==0||d==8&&o.insert.lengthE.head)&&Y8(t.contentDOM,"Backspace",8)||o.from==E.from&&o.to==E.to+1&&o.insert.length==0&&Y8(t.contentDOM,"Delete",46)))return!0;let s=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,u=()=>n||(n=g6e(t,o,f));return t.state.facet(Pye).some(b=>b(t,o.from,o.to,s,u))||t.dispatch(u()),!0}else if(f&&!f.main.eq(E)){let s=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:s,userEvent:n}),!0}else return!1}function g6e(t,e,o){let f,E=t.state,d=E.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?E.sliceDoc(e.to,d.to):"";f=E.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let n=E.changes(e),u=o&&o.main.to<=n.newLength?o.main:void 0;if(E.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,S=o&&Qye(t,o.main.head);if(S){let m=e.insert.length-(e.to-e.from);i={from:S.from,to:S.to-m}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=E.changeByRange(m=>{if(m.from==d.from&&m.to==d.to)return{changes:n,range:u||m.map(n)};let a=m.to-w,c=a-b.length;if(m.to-m.from!=y||t.state.sliceDoc(c,a)!=b||m.to>=i.from&&m.from<=i.to)return{range:m};let h=E.changes({from:c,to:a,insert:e.insert}),p=m.to-d.to;return{changes:h,range:u?hi.range(Math.max(0,u.anchor+p),Math.max(0,u.head+p)):m.map(h)}})}else f={changes:n,selection:u&&E.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),E.update(f,{userEvent:s,scrollIntoView:!0})}function v6e(t,e,o,f){let E=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(s-1)==e.charCodeAt(n-1);)s--,n--;if(f=="end"){let u=Math.max(0,d-Math.min(s,n));o-=s+u-d}if(s=s?d-o:0;d-=u,n=d+(n-s),s=d}else if(n=n?d-o:0;d-=u,s=d+(s-n),n=d}return{from:d,toA:s,toB:n}}function y6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:E,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new Rpe(o,f)),(E!=o||d!=f)&&e.push(new Rpe(E,d))),e}function b6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?hi.single(o+e,f+e):null}const x6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Lie=xs.ie&&xs.ie_version<=11;class _6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new oCe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(xs.ie&&xs.ie_version<=11||xs.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),Lie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,E=this.selectionRange;if(f.state.facet(WZ)?f.root.activeElement!=this.dom:!lH(f.dom,E))return;let d=E.anchorNode&&f.docView.nearest(E.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(xs.ie&&xs.ie_version<=11||xs.android&&xs.chrome)&&!f.state.selection.main.empty&&E.focusNode&&zH(E.focusNode,E.focusOffset,E.anchorNode,E.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=xs.safari&&e.root.nodeType==11&&eCe(this.dom.ownerDocument)==this.dom&&w6e(this.view)||BH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=lH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&Y8(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(E)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,E=!1;for(let d of e){let s=this.readMutation(d);s&&(s.typeOver&&(E=!0),o==-1?{from:o,to:f}=s:(o=Math.min(s.from,o),f=Math.max(s.to,f)))}return{from:o,to:f,typeOver:E}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),E=this.selectionChanged&&lH(this.dom,this.selectionRange);if(e<0&&!E)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new m6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,E=abe(this.view,o);return this.view.state==f&&this.view.update([]),E}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=Lpe(o,e.previousSibling||e.target.previousSibling,-1),E=Lpe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:E?o.posBefore(E):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let E of this.scrollTargets)E.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Lpe(t,e,o){for(;e;){let f=eh.get(e);if(f&&f.parent==t)return f;let E=e.parentNode;e=E!=t.dom?E:o>0?e.nextSibling:e.previousSibling}return null}function w6e(t){let e=null;function o(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,E=e.startOffset,d=e.endContainer,s=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return zH(n.node,n.offset,d,s)&&([f,E,d,s]=[d,s,f,E]),{anchorNode:f,anchorOffset:E,focusNode:d,focusOffset:s}}class Xa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(E=>o(E,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||iCe(e.parent)||document,this.viewState=new Mpe(e.state||kc.create(e)),e.scrollTo&&e.scrollTo.is(wQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(HL).map(f=>new Mie(f));for(let f of this.plugins)f.update(this);this.observer=new _6e(this),this.inputState=new zCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new fpe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Xp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,E,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let s=this.hasFocus,n=0,u=null;e.some(w=>w.annotation(Jye))?(this.inputState.notifiedFocused=s,n=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,u=ebe(d,s),u||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(kc.phrases)!=this.state.facet(kc.phrases))return this.setState(d);E=NH.create(this,d,e),E.flags|=n;let S=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(S&&(S=S.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;S=new X8(y.empty?y:hi.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(wQ)&&(S=y.value.clip(this.state))}this.viewState.update(E,S),this.bidiCache=FH.update(this.bidiCache,E.changes),E.empty||(this.updatePlugins(E),this.inputState.update(E)),o=this.docView.update(E),this.state.facet(ZL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(E.startState.facet(AQ)!=E.state.facet(AQ)&&(this.viewState.mustMeasureContent=!0),(o||f||S||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!E.empty)for(let w of this.state.facet(yse))try{w(E)}catch(y){rb(this.state,y,"update listener")}(u||i)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),i&&!abe(this,i)&&b.force&&Y8(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new Mpe(e),this.plugins=e.facet(HL).map(f=>new Mie(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new fpe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(HL),f=e.state.facet(HL);if(o!=f){let E=[];for(let d of f){let s=o.indexOf(d);if(s<0)E.push(new Mie(d));else{let n=this.plugins[s];n.mustUpdate=e,E.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=E,this.pluginMap.clear()}else for(let E of this.plugins)E.mustUpdate=e;for(let E=0;E-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,E=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:s}=this.viewState;Math.abs(E-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(s<0)if(vye(f))d=-1,s=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(E);d=y.from,s=y.top}this.updateState=1;let u=this.viewState.measure(this);if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];u&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(m){return rb(this.state,m),Ipe}}),S=NH.create(this,this.state,[]),w=!1;S.flags|=u,o?o.flags|=u:o=S,this.updateState=2,S.empty||(this.updatePlugins(S),this.inputState.update(S),this.updateAttrs(),w=this.docView.update(S));for(let y=0;y1||m<-1){E=E+m,f.scrollTop=E/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(yse))n(o)}get themeClasses(){return Tse+" "+(this.state.facet(kse)?obe:rbe)+" "+this.state.facet(AQ)}updateAttrs(){let e=Dpe(this,Dye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(WZ)?"true":"false",class:"cm-content",style:`${xs.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),Dpe(this,kce,o);let f=this.observer.ignore(()=>{let E=gse(this.contentDOM,this.contentAttrs,o),d=gse(this.dom,this.editorAttrs,e);return E||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let E of f.effects)if(E.is(Xa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=E.value}}mountStyles(){this.styleModules=this.state.facet(ZL);let e=this.state.facet(Xa.cspNonce);b4.mount(this.root,this.styleModules.concat(d6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return Pie(this,e,vpe(this,e,o,f))}moveByGroup(e,o){return Pie(this,e,vpe(this,e,o,f=>DCe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return ICe(this,e,o,f)}moveVertically(e,o,f){return Pie(this,e,BCe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),Zye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let E=this.state.doc.lineAt(e),d=this.bidiSpans(E),s=d[c4.find(d,e-E.from,-1,o)];return ZZ(f,s.dir==Bh.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Lye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>O6e)return Uye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||Vye(d.isolates,f=upe(this,e.from,e.to))))return d.order;f||(f=upe(this,e.from,e.to));let E=xCe(e.text,o,f);return this.bidiCache.push(new FH(e.from,e.to,o,f,!0,E)),E}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||xs.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{mye(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return wQ.of(new X8(typeof e=="number"?hi.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return wQ.of(new X8(hi.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return zh.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return zh.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=b4.newName(),E=[AQ.of(f),ZL.of(Cse(`.${f}`,e))];return o&&o.dark&&E.push(kse.of(!0)),E}static baseTheme(e){return ty.lowest(ZL.of(Cse("."+Tse,e,ibe)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),E=f&&eh.get(f)||eh.get(e);return((o=E==null?void 0:E.rootView)===null||o===void 0?void 0:o.view)||null}}Xa.styleModule=ZL;Xa.inputHandler=Pye;Xa.focusChangeEffect=Rye;Xa.perLineTextDirection=Lye;Xa.exceptionSink=Eye;Xa.updateListener=yse;Xa.editable=WZ;Xa.mouseSelectionStyle=Mye;Xa.dragMovesSelection=Aye;Xa.clickAddsSelectionRange=Cye;Xa.decorations=AI;Xa.atomicRanges=Tce;Xa.bidiIsolatedRanges=Bye;Xa.scrollMargins=zye;Xa.darkTheme=kse;Xa.cspNonce=ls.define({combine:t=>t.length?t[0]:""});Xa.contentAttributes=kce;Xa.editorAttributes=Dye;Xa.lineWrapping=Xa.contentAttributes.of({class:"cm-lineWrapping"});Xa.announce=Ql.define();const O6e=4096,Ipe={};class FH{constructor(e,o,f,E,d,s){this.from=e,this.to=o,this.dir=f,this.isolates=E,this.fresh=d,this.order=s}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],E=e.length?e[e.length-1].dir:Bh.LTR;for(let d=Math.max(0,e.length-10);d=0;E--){let d=f[E],s=typeof d=="function"?d(t):d;s&&mse(s,o)}return o}const S6e=xs.mac?"mac":xs.windows?"win":xs.linux?"linux":"key";function k6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let E,d,s,n;for(let u=0;uf.concat(E),[]))),o}function C6e(t,e,o){return lbe(sbe(t.state),e,t,o)}let i4=null;const A6e=4e3;function M6e(t,e=S6e){let o=Object.create(null),f=Object.create(null),E=(s,n)=>{let u=f[s];if(u==null)f[s]=n;else if(u!=n)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},d=(s,n,u,b,i)=>{var S,w;let y=o[s]||(o[s]=Object.create(null)),m=n.split(/ (?!$)/).map(h=>k6e(h,e));for(let h=1;h{let _=i4={view:v,prefix:p,scope:s};return setTimeout(()=>{i4==_&&(i4=null)},A6e),!0}]})}let a=m.join(" ");E(a,!1);let c=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(S=y._any)===null||S===void 0?void 0:S.run)===null||w===void 0?void 0:w.slice())||[]});u&&c.run.push(u),b&&(c.preventDefault=!0),i&&(c.stopPropagation=!0)};for(let s of t){let n=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let S in i)i[S].run.push(s.any)}let u=s[e]||s.key;if(u)for(let b of n)d(b,u,s.run,s.preventDefault,s.stopPropagation),s.shift&&d(b,"Shift-"+u,s.shift,s.preventDefault,s.stopPropagation)}return o}function lbe(t,e,o,f){let E=JTe(e),d=ag(E,0),s=Gy(d)==E.length&&E!=" ",n="",u=!1,b=!1,i=!1;i4&&i4.view==o&&i4.scope==f&&(n=i4.prefix+" ",Wye.indexOf(e.keyCode)<0&&(b=!0,i4=null));let S=new Set,w=c=>{if(c){for(let h of c.run)if(!S.has(h)&&(S.add(h),h(o,e)))return c.stopPropagation&&(i=!0),!0;c.preventDefault&&(c.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],m,a;return y&&(w(y[n+MQ(E,e,!s)])?u=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(xs.windows&&e.ctrlKey&&e.altKey)&&(m=x4[e.keyCode])&&m!=E?(w(y[n+MQ(m,e,!0)])||e.shiftKey&&(a=TI[e.keyCode])!=E&&a!=m&&w(y[n+MQ(a,e,!1)]))&&(u=!0):s&&e.shiftKey&&w(y[n+MQ(E,e,!0)])&&(u=!0),!u&&w(y._any)&&(u=!0)),b&&(u=!0),u&&i&&e.stopPropagation(),u}class fD{constructor(e,o,f,E,d){this.className=e,this.left=o,this.top=f,this.width=E,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let E=e.coordsAtPos(f.head,f.assoc||1);if(!E)return[];let d=cbe(e);return[new fD(o,E.left-d.left,E.top-d.top,null,E.bottom-E.top)]}else return E6e(e,o,f)}}function cbe(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Bh.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function zpe(t,e,o){let f=hi.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:q0.Text}}function E6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),E=Math.min(o.to,t.viewport.to),d=t.textDirection==Bh.LTR,s=t.contentDOM,n=s.getBoundingClientRect(),u=cbe(t),b=s.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),S=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=Ose(t,f),m=Ose(t,E),a=y.type==q0.Text?y:null,c=m.type==q0.Text?m:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=zpe(t,f,a)),c&&(t.lineWrapping||m.widgetLineBreaks)&&(c=zpe(t,E,c)),a&&c&&a.from==c.from)return p(v(o.from,o.to,a));{let O=a?v(o.from,null,a):_(y,!1),C=c?v(null,o.to,c):_(m,!0),x=[];return(a||y).to<(c||m).from-(a&&c?1:0)||y.widgetLineBreaks>1&&O.bottom+t.defaultLineHeight/2A&&D.from=I)break;j>k&&P(Math.max(Q,k),O==null&&Q<=A,Math.min(j,I),C==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&P(A,O==null,L,C==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(O,C){let x=n.top+(C?O.top:O.bottom);return{top:x,bottom:x,horizontal:[]}}}function P6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class R6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(fH)!=e.state.facet(fH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(fH);for(;o!P6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let E of e)E.update&&o&&E.constructor&&this.drawn[f].constructor&&E.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(E.draw(),o);for(;o;){let E=o.nextSibling;o.remove(),o=E}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const fH=ls.define();function ube(t){return[zh.define(e=>new R6e(e,t)),fH.of(t)]}const fbe=!xs.ios,EI=ls.define({combine(t){return E_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function L6e(t={}){return[EI.of(t),I6e,D6e,B6e,Iye.of(!0)]}function dbe(t){return t.startState.facet(EI)!=t.state.facet(EI)}const I6e=ube({above:!0,markers(t){let{state:e}=t,o=e.facet(EI),f=[];for(let E of e.selection.ranges){let d=E==e.selection.main;if(E.empty?!d||fbe:o.drawRangeCursor){let s=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=E.empty?E:hi.cursor(E.head,E.head>E.anchor?-1:1);for(let u of fD.forRange(t,s,n))f.push(u)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=dbe(t);return o&&Npe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){Npe(e.state,t)},class:"cm-cursorLayer"});function Npe(t,e){e.style.animationDuration=t.facet(EI).cursorBlinkRate+"ms"}const D6e=ube({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:fD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||dbe(t)},class:"cm-selectionLayer"}),Ase={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};fbe&&(Ase[".cm-line"].caretColor="transparent !important",Ase[".cm-content"]={caretColor:"transparent !important"});const B6e=ty.highest(Xa.theme(Ase)),hbe=Ql.define({map(t,e){return t==null?null:e.mapPos(t)}}),YL=tm.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(hbe)?f.value:o,t)}}),z6e=zh.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(YL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(YL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(YL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(YL)!=t&&this.view.dispatch({effects:hbe.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function N6e(){return[YL,z6e]}function Fpe(t,e,o,f,E){e.lastIndex=0;for(let d=t.iterRange(o,f),s=o,n;!d.next().done;s+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)E(s+n.index,n)}function F6e(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:E,to:d}of o)E=Math.max(t.state.doc.lineAt(E).from,E-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=E?f[f.length-1].to=d:f.push({from:E,to:d});return f}class $6e{constructor(e){const{regexp:o,decoration:f,decorate:E,boundary:d,maxLength:s=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,E)this.addMatch=(n,u,b,i)=>E(i,b,b+n[0].length,n,u);else if(typeof f=="function")this.addMatch=(n,u,b,i)=>{let S=f(n,u,b);S&&i(b,b+n[0].length,S)};else if(f)this.addMatch=(n,u,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=s}createDeco(e){let o=new y4,f=o.add.bind(o);for(let{from:E,to:d}of F6e(e,this.maxLength))Fpe(e.state.doc,this.regexp,E,d,(s,n)=>this.addMatch(n,e,s,f));return o.finish()}updateDeco(e,o){let f=1e9,E=-1;return e.docChanged&&e.changes.iterChanges((d,s,n,u)=>{u>e.view.viewport.from&&n1e3?this.createDeco(e.view):E>-1?this.updateRange(e.view,o.map(e.changes),f,E):o}updateRange(e,o,f,E){for(let d of e.visibleRanges){let s=Math.max(d.from,f),n=Math.min(d.to,E);if(n>s){let u=e.state.doc.lineAt(s),b=u.tou.from;s--)if(this.boundary.test(u.text[s-1-u.from])){i=s;break}for(;nw.push(h.range(a,c));if(u==b)for(this.regexp.lastIndex=i-u.from;(y=this.regexp.exec(u.text))&&y.indexthis.addMatch(c,e,a,m));o=o.update({filterFrom:i,filterTo:S,filter:(a,c)=>aS,add:w})}}return o}}const Mse=/x/.unicode!=null?"gu":"g",V6e=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Mse),U6e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Iie=null;function j6e(){var t;if(Iie==null&&typeof document<"u"&&document.body){let e=document.body.style;Iie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Iie||!1}const dH=ls.define({combine(t){let e=E_(t,{render:null,specialChars:V6e,addSpecialChars:null});return(e.replaceTabs=!j6e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Mse)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Mse)),e}});function Q6e(t={}){return[dH.of(t),H6e()]}let $pe=null;function H6e(){return $pe||($pe=zh.fromClass(class{constructor(t){this.view=t,this.decorations=Ns.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(dH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new $6e({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:E}=o.state,d=ag(e[0],0);if(d==9){let s=E.lineAt(f),n=o.state.tabSize,u=kx(s.text,n,f-s.from);return Ns.replace({widget:new Y6e((n-u%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=Ns.replace({widget:new W6e(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(dH);t.startState.facet(dH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Z6e="•";function q6e(t){return t>=32?Z6e:t==10?"␤":String.fromCharCode(9216+t)}class W6e extends Ex{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=q6e(this.code),f=e.state.phrase("Control character")+" "+(U6e[this.code]||"0x"+this.code.toString(16)),E=this.options.render&&this.options.render(this.code,f,o);if(E)return E;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class Y6e extends Ex{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function X6e(){return K6e}const G6e=Ns.line({class:"cm-activeLine"}),K6e=zh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let E=t.lineBlockAt(f.head);E.from>e&&(o.push(G6e.range(E.from)),e=E.from)}return Ns.set(o)}},{decorations:t=>t.decorations});class J6e extends Ex{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?lM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),E=ZZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return E.bottom-E.top>d*1.5?{left:E.left,right:E.right,top:E.top,bottom:E.top+d}:E}ignoreEvent(){return!1}}function eAe(t){return zh.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ns.set([Ns.widget({widget:new J6e(t),side:1}).range(0)]):Ns.none}get decorations(){return this.view.state.doc.length?Ns.none:this.placeholder}},{decorations:e=>e.decorations})}const Ese=2e3;function tAe(t,e,o){let f=Math.min(e.line,o.line),E=Math.max(e.line,o.line),d=[];if(e.off>Ese||o.off>Ese||e.col<0||o.col<0){let s=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let u=f;u<=E;u++){let b=t.doc.line(u);b.length<=n&&d.push(hi.range(b.from+s,b.to+n))}}else{let s=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let u=f;u<=E;u++){let b=t.doc.line(u),i=lse(b.text,s,t.tabSize,!0);if(i<0)d.push(hi.cursor(b.to));else{let S=lse(b.text,n,t.tabSize);d.push(hi.range(b.from+i,b.from+S))}}}return d}function nAe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function Vpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),E=o-f.from,d=E>Ese?-1:E==f.length?nAe(t,e.clientX):kx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:E}}function rAe(t,e){let o=Vpe(t,e),f=t.state.selection;return o?{update(E){if(E.docChanged){let d=E.changes.mapPos(E.startState.doc.line(o.line).from),s=E.state.doc.lineAt(d);o={line:s.number,col:o.col,off:Math.min(o.off,s.length)},f=f.map(E.changes)}},get(E,d,s){let n=Vpe(t,E);if(!n)return f;let u=tAe(t.state,o,n);return u.length?s?hi.create(u.concat(f.ranges)):hi.create(u):f}}:null}function oAe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Xa.mouseSelectionStyle.of((o,f)=>e(f)?rAe(o,f):null)}const iAe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},aAe={style:"cursor: crosshair"};function sAe(t={}){let[e,o]=iAe[t.key||"Alt"],f=zh.fromClass(class{constructor(E){this.view=E,this.isDown=!1}set(E){this.isDown!=E&&(this.isDown=E,this.view.update([]))}},{eventObservers:{keydown(E){this.set(E.keyCode==e||o(E))},keyup(E){(E.keyCode==e||!o(E))&&this.set(!1)},mousemove(E){this.set(o(E))}}});return[f,Xa.contentAttributes.of(E=>{var d;return!((d=E.plugin(f))===null||d===void 0)&&d.isDown?aAe:null})]}const RL="-10000px";class pbe{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(E=>E),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let E=e.state.facet(this.facet),d=E.filter(u=>u);if(E===this.input){for(let u of this.tooltipViews)u.update&&u.update(e);return!1}let s=[],n=o?[]:null;for(let u=0;uo[b]=u),o.length=n.length),this.input=E,this.tooltips=d,this.tooltipViews=s,!0}}function lAe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Die=ls.define({combine:t=>{var e,o,f;return{position:xs.ios?"absolute":((e=t.find(E=>E.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(E=>E.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(E=>E.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||lAe}}}),Upe=new WeakMap,Ace=zh.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Die);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new pbe(t,Mce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(Die);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let E of this.manager.tooltipViews)E.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let E of this.manager.tooltipViews)this.container.appendChild(E.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=RL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:E}=this.manager.tooltipViews[0];if(xs.gecko)f=E.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(E.style.top==RL&&E.style.left=="0px"){let d=E.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let E=this.parent.getBoundingClientRect();E.width&&E.height&&(e=E.width/this.parent.offsetWidth,o=E.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((E,d)=>{let s=this.manager.tooltipViews[d];return s.getCoords?s.getCoords(E.pos):this.view.coordsAtPos(E.pos)}),size:this.manager.tooltipViews.map(({dom:E})=>E.getBoundingClientRect()),space:this.view.state.facet(Die).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:E,scaleY:d}=t,s=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||S.rightMath.min(o.right,f.right)+.1){i.style.top=RL;continue}let y=u.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,m=y?7:0,a=w.right-w.left,c=(e=Upe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||uAe,p=this.view.textDirection==Bh.LTR,v=w.width>f.right-f.left?p?f.left:f.right-w.width:p?Math.min(S.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,S.left-a+(y?14:0)-h.x),_=this.above[n];!u.strictSide&&(_?S.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-S.bottom>S.top-f.top&&(_=this.above[n]=!_);let O=(_?S.top-f.top:f.bottom-S.bottom)-m;if(Ov&&R.topC&&(C=_?R.top-c-2-m:R.bottom+m+2);if(this.position=="absolute"?(i.style.top=(C-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/E+"px"):(i.style.top=C/d+"px",i.style.left=v/E+"px"),y){let R=S.left+(p?h.x:-h.x)-(v+14-7);y.style.left=R/E+"px"}b.overlap!==!0&&s.push({left:v,top:C,right:x,bottom:C+c}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=RL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),cAe=Xa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),uAe={x:0,y:0},Mce=ls.define({enables:[Ace,cAe]}),$H=ls.define();class YZ{static create(e){return new YZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pbe(e,$H,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let E=f[e];if(E!==void 0){if(o===void 0)o=E;else if(o!==E)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const fAe=Mce.compute([$H],t=>{let e=t.facet($H).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:YZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class dAe{constructor(e,o,f,E,d){this.view=e,this.source=o,this.field=f,this.setHover=E,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let u=e.bidiSpans(e.state.doc.lineAt(E)).find(i=>i.from<=E&&i.to>=E),b=u&&u.dir==Bh.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,u&&e.dispatch({effects:this.setHover.of(u)}))},u=>rb(e.state,u,"hover tooltip"))}else s&&e.dispatch({effects:this.setHover.of(s)})}get tooltip(){let e=this.view.plugin(Ace),o=e?e.manager.tooltips.findIndex(f=>f.create==YZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:E}=this;if(f&&E&&!hAe(E.dom,e)||this.pending){let{pos:d}=f||this.pending,s=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==s?this.view.posAtCoords(this.lastMove)!=d:!pAe(this.view,d,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const EQ=4;function hAe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-EQ&&e.clientX<=o.right+EQ&&e.clientY>=o.top-EQ&&e.clientY<=o.bottom+EQ}function pAe(t,e,o,f,E,d){let s=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>f||s.rightE||Math.min(s.bottom,n)=e&&u<=o}function mAe(t,e={}){let o=Ql.define(),f=tm.define({create(){return null},update(E,d){if(E&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,E)))return null;if(E&&d.docChanged){let s=d.changes.mapPos(E.pos,-1,lg.TrackDel);if(s==null)return null;let n=Object.assign(Object.create(null),E);n.pos=s,E.end!=null&&(n.end=d.changes.mapPos(E.end)),E=n}for(let s of d.effects)s.is(o)&&(E=s.value),s.is(gAe)&&(E=null);return E},provide:E=>$H.from(E)});return[f,zh.define(E=>new dAe(E,t,f,o,e.hoverTime||300)),fAe]}function mbe(t,e){let o=t.plugin(Ace);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const gAe=Ql.define(),jpe=ls.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function PI(t,e){let o=t.plugin(gbe),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const gbe=zh.fromClass(class{constructor(t){this.input=t.state.facet(RI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(jpe);this.top=new PQ(t,!0,e.topContainer),this.bottom=new PQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(jpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new PQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new PQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(RI);if(o!=this.input){let f=o.filter(u=>u),E=[],d=[],s=[],n=[];for(let u of f){let b=this.specs.indexOf(u),i;b<0?(i=u(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),E.push(i),(i.top?d:s).push(i)}this.specs=f,this.panels=E,this.top.sync(d),this.bottom.sync(s);for(let u of n)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class PQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=Qpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=Qpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Qpe(t){let e=t.nextSibling;return t.remove(),e}const RI=ls.define({enables:gbe});class IO extends ZT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}IO.prototype.elementClass="";IO.prototype.toDOM=void 0;IO.prototype.mapMode=lg.TrackBefore;IO.prototype.startSide=IO.prototype.endSide=-1;IO.prototype.point=!0;const hH=ls.define(),vAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Df.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sI=ls.define();function yAe(t){return[vbe(),sI.of(Object.assign(Object.assign({},vAe),t))]}const Pse=ls.define({combine:t=>t.some(e=>e)});function vbe(t){let e=[bAe];return t&&t.fixed===!1&&e.push(Pse.of(!0)),e}const bAe=zh.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(sI).map(e=>new Zpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Pse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Pse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Df.iter(this.view.state.facet(hH),this.view.viewport.from),f=[],E=this.gutters.map(d=>new xAe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let s=!0;for(let n of d.type)if(n.type==q0.Text&&s){Rse(o,f,n.from);for(let u of E)u.line(this.view,n,f);s=!1}else if(n.widget)for(let u of E)u.widget(this.view,n)}else if(d.type==q0.Text){Rse(o,f,d.from);for(let s of E)s.line(this.view,d,f)}else if(d.widget)for(let s of E)s.widget(this.view,d);for(let d of E)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sI),o=t.state.facet(sI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Df.eq(t.startState.facet(hH),t.state.facet(hH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let E of this.gutters)E.update(t)&&(f=!0);else{f=!0;let E=[];for(let d of o){let s=e.indexOf(d);s<0?E.push(new Zpe(this.view,d)):(this.gutters[s].update(t),E.push(this.gutters[s]))}for(let d of this.gutters)d.dom.remove(),E.indexOf(d)<0&&d.destroy();for(let d of E)this.dom.appendChild(d.dom);this.gutters=E}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==Bh.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function Hpe(t){return Array.isArray(t)?t:[t]}function Rse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class xAe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Df.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:E}=this,d=(o.top-this.height)/e.scaleY,s=o.height/e.scaleY;if(this.i==E.elements.length){let n=new ybe(e,s,d,f);E.elements.push(n),E.dom.appendChild(n.dom)}else E.elements[this.i].update(e,s,d,f);this.height=o.bottom,this.i++}line(e,o,f){let E=[];Rse(this.cursor,E,o.from),f.length&&(E=E.concat(f));let d=this.gutter.config.lineMarker(e,o,E);d&&E.unshift(d);let s=this.gutter;E.length==0&&!s.config.renderEmptyElements||this.addElement(e,o,E)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class Zpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,E=>{let d=E.target,s;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let u=d.getBoundingClientRect();s=(u.top+u.bottom)/2}else s=E.clientY;let n=e.lineBlockAtHeight(s-e.documentTop);o.domEventHandlers[f](e,n,E)&&E.preventDefault()});this.markers=Hpe(o.markers(e)),o.initialSpacer&&(this.spacer=new ybe(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=Hpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let E=this.config.updateSpacer(this.spacer.markers[0],e);E!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[E])}let f=e.view.viewport;return!Df.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class ybe{constructor(e,o,f,E){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,E)}update(e,o,f,E){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),_Ae(this.markers,E)||this.setMarkers(e,E)}setMarkers(e,o){let f="cm-gutterElement",E=this.dom.firstChild;for(let d=0,s=0;;){let n=s,u=dd(n,u,b)||s(n,u,b):s}return f}})}});class Bie extends IO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function zie(t,e){return t.state.facet(F8).formatNumber(e,t.state)}const OAe=sI.compute([F8],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(wAe)},lineMarker(e,o,f){return f.some(E=>E.toDOM)?null:new Bie(zie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(F8)!=e.state.facet(F8),initialSpacer(e){return new Bie(zie(e,qpe(e.state.doc.lines)))},updateSpacer(e,o){let f=zie(o.view,qpe(o.view.state.doc.lines));return f==e.number?e:new Bie(f)},domEventHandlers:t.facet(F8).domEventHandlers}));function SAe(t={}){return[F8.of(t),vbe(),OAe]}function qpe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.head).from;E>o&&(o=E,e.push(kAe.range(E)))}return Df.of(e)});function CAe(){return TAe}const bbe=1024;let AAe=0,Jy=class{constructor(e,o){this.from=e,this.to=o}};class Zl{constructor(e={}){this.id=AAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Jp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}Zl.closedBy=new Zl({deserialize:t=>t.split(" ")});Zl.openedBy=new Zl({deserialize:t=>t.split(" ")});Zl.group=new Zl({deserialize:t=>t.split(" ")});Zl.contextHash=new Zl({perNode:!0});Zl.lookAhead=new Zl({perNode:!0});Zl.mounted=new Zl({perNode:!0});class LI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[Zl.mounted.id]}}const MAe=Object.create(null);class Jp{constructor(e,o,f,E=0){this.name=e,this.props=o,this.id=f,this.flags=E}static define(e){let o=e.props&&e.props.length?Object.create(null):MAe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),E=new Jp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(E)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return E}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(Zl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let E of f.split(" "))o[E]=e[f];return f=>{for(let E=f.prop(Zl.group),d=-1;d<(E?E.length:0);d++){let s=o[d<0?f.name:E[d]];if(s)return s}}}}Jp.none=new Jp("",Object.create(null),0,8);class dD{constructor(e){this.types=e;for(let o=0;o0;for(let u=this.cursor(s|pd.IncludeAnonymous);;){let b=!1;if(u.from<=d&&u.to>=E&&(!n&&u.type.isAnonymous||o(u)!==!1)){if(u.firstChild())continue;b=!0}for(;b&&f&&(n||!u.type.isAnonymous)&&f(u),!u.nextSibling();){if(!u.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:Rce(Jp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,E)=>new gf(this.type,o,f,E,this.propValues),e.makeTree||((o,f,E)=>new gf(Jp.none,o,f,E)))}static build(e){return LAe(e)}}gf.empty=new gf(Jp.none,[],[],0);class Ece{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Ece(this.buffer,this.index)}}class w4{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Jp.none}toString(){let e=[];for(let o=0;o0));u=s[u+3]);return n}slice(e,o,f){let E=this.buffer,d=new Uint16Array(o-e),s=0;for(let n=e,u=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function II(t,e,o,f){for(var E;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],S=u[e]+s.from;if(xbe(E,f,S,S+i.length)){if(i instanceof w4){if(d&pd.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-S,E);if(w>-1)return new b_(new EAe(s,i,e,S),null,w)}else if(d&pd.IncludeAnonymous||!i.type.isAnonymous||Pce(i)){let w;if(!(d&pd.IgnoreMounts)&&(w=LI.get(i))&&!w.overlay)return new e0(w.tree,S,e,s);let y=new e0(i,S,e,s);return d&pd.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,E)}}}if(d&pd.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+o:e=o<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let E;if(!(f&pd.IgnoreOverlays)&&(E=LI.get(this._tree))&&E.overlay){let d=e-this.from;for(let{from:s,to:n}of E.overlay)if((o>0?s<=d:s=d:n>d))return new e0(E.tree,E.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ype(t,e,o,f){let E=t.cursor(),d=[];if(!E.firstChild())return d;if(o!=null){for(;!E.type.is(o);)if(!E.nextSibling())return d}for(;;){if(f!=null&&E.type.is(f))return d;if(E.type.is(e)&&d.push(E.node),!E.nextSibling())return f==null?d:[]}}function Lse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class EAe{constructor(e,o,f,E){this.parent=e,this.buffer=o,this.index=f,this.start=E}}class b_ extends _be{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new b_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&pd.ExcludeBuffers)return null;let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new b_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new b_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new b_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,E=this.index+4,d=f.buffer[this.index+3];if(d>E){let s=f.buffer[this.index+1];e.push(f.slice(E,d,s)),o.push(0)}return new gf(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function wbe(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||s.to=e){let n=new e0(s.tree,s.overlay[0].from+d.from,-1,d);(E||(E=[f])).push(II(n,e,o,!1))}}return E?wbe(E):f}class VH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof e0)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:E}=this.buffer;return this.type=o||E.set.types[E.buffer[e]],this.from=f+E.buffer[e+1],this.to=f+E.buffer[e+2],!0}yield(e){return e?e instanceof e0?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:E}=this.buffer,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&pd.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pd.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pd.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let E=f<0?0:this.stack[f]+4;if(this.index!=E)return this.yieldBuf(o.findChild(E,this.index,-1,0,4))}else{let E=o.buffer[this.index+3];if(E<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(E)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:E}=this;if(E){if(e>0){if(this.index-1)for(let d=o+e,s=e<0?-1:f._tree.children.length;d!=s;d+=e){let n=f._tree.children[d];if(this.mode&pd.IncludeAnonymous||n instanceof w4||!n.type.isAnonymous||Pce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==E){if(E==this.index)return s;o=s,f=d+1;break e}E=this.stack[--d]}for(let E=f;E=0;d--){if(d<0)return Lse(this.node,e,E);let s=f[o.buffer[this.stack[d]]];if(!s.isAnonymous){if(e[E]&&e[E]!=s.name)return!1;E--}}return!0}}function Pce(t){return t.children.some(e=>e instanceof w4||!e.type.isAnonymous||Pce(e))}function LAe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:E=bbe,reused:d=[],minRepeatType:s=f.types.length}=t,n=Array.isArray(o)?new Ece(o,o.length):o,u=f.types,b=0,i=0;function S(O,C,x,R,M,T){let{id:P,start:A,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[P];x.push(j),R.push(A-O);return}else if(D==-3){b=P;return}else if(D==-4){i=P;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=u[P],z,$,Q=A-O;if(L-A<=E&&($=c(n.pos-C,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new w4(j,L-$.start,f),Q=$.start-O}else{let j=n.pos-D;n.next();let U=[],X=[],te=P>=s?P:-1,Z=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-E&&(m(U,X,A,Z,n.end,K,te,k),Z=U.length,K=n.end),n.next()):T>2500?w(A,j,U,X):S(A,j,U,X,te,T+1);if(te>=0&&Z>0&&Z-1&&Z>0){let re=y(I);z=Rce(I,U,X,0,U.length,0,L-A,re,re)}else z=a(I,U,X,L-A,k-L)}x.push(z),R.push(Q)}function w(O,C,x,R){let M=[],T=0,P=-1;for(;n.pos>C;){let{id:A,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(P>-1&&L=0;D-=3)A[k++]=M[D],A[k++]=M[D+1]-L,A[k++]=M[D+2]-L,A[k++]=k;x.push(new w4(A,M[2]-L,f)),R.push(L-O)}}function y(O){return(C,x,R)=>{let M=0,T=C.length-1,P,A;if(T>=0&&(P=C[T])instanceof gf){if(!T&&P.type==O&&P.length==R)return P;(A=P.prop(Zl.lookAhead))&&(M=x[T]+P.length+A)}return a(O,C,x,R,M)}}function m(O,C,x,R,M,T,P,A){let L=[],D=[];for(;O.length>R;)L.push(O.pop()),D.push(C.pop()+x-M);O.push(a(f.types[P],L,D,T-M,A-T)),C.push(M-x)}function a(O,C,x,R,M=0,T){if(b){let P=[Zl.contextHash,b];T=T?[P].concat(T):[P]}if(M>25){let P=[Zl.lookAhead,M];T=T?[P].concat(T):[P]}return new gf(O,C,x,R,T)}function c(O,C){let x=n.fork(),R=0,M=0,T=0,P=x.end-E,A={size:0,start:0,skip:0};e:for(let L=x.pos-O;x.pos>L;){let D=x.size;if(x.id==C&&D>=0){A.size=R,A.start=M,A.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=s?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=s&&(I+=4);x.next()}M=z,R+=D,T+=I}return(C<0||R==O)&&(A.size=R,A.start=M,A.skip=T),A.size>4?A:void 0}function h(O,C,x){let{id:R,start:M,end:T,size:P}=n;if(n.next(),P>=0&&R4){let L=n.pos-(P-4);for(;n.pos>L;)x=h(O,C,x)}C[--x]=A,C[--x]=T-O,C[--x]=M-O,C[--x]=R}else P==-3?b=R:P==-4&&(i=R);return x}let p=[],v=[];for(;n.pos>0;)S(t.start||0,t.bufferStart||0,p,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:p.length?v[0]+p[0].length:0;return new gf(u[t.topID],p.reverse(),v.reverse(),_)}const Xpe=new WeakMap;function pH(t,e){if(!t.isAnonymous||e instanceof w4||e.type!=t)return 1;let o=Xpe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof gf)){o=1;break}o+=pH(t,f)}Xpe.set(e,o)}return o}function Rce(t,e,o,f,E,d,s,n,u){let b=0;for(let m=f;m=i)break;C+=x}if(v==_+1){if(C>i){let x=m[_];y(x.children,x.positions,0,x.children.length,a[_]+p);continue}S.push(m[_])}else{let x=a[v-1]+m[v-1].length-O;S.push(Rce(t,m,a,_,v,O,x,null,u))}w.push(O+p-d)}}return y(e,o,f,E,0),(n||u)(S,w,s)}class Lce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let E=this.map.get(e);E||this.map.set(e,E=new Map),E.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof b_?this.setBuffer(e.context.buffer,e.index,o):e instanceof e0&&this.map.set(e.tree,o)}get(e){return e instanceof b_?this.getBuffer(e.context.buffer,e.index):e instanceof e0?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class AO{constructor(e,o,f,E,d=!1,s=!1){this.from=e,this.to=o,this.tree=f,this.offset=E,this.open=(d?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let E=[new AO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&E.push(d);return E}static applyChanges(e,o,f=128){if(!o.length)return e;let E=[],d=1,s=e.length?e[0]:null;for(let n=0,u=0,b=0;;n++){let i=n=f)for(;s&&s.from=w.from||S<=w.to||b){let y=Math.max(w.from,u)-b,m=Math.min(w.to,S)-b;w=y>=m?null:new AO(y,m,w.tree,w.offset+b,n>0,!!i)}if(w&&E.push(w),s.to>S)break;s=dnew Jy(E.from,E.to)):[new Jy(0,0)]:[new Jy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let E=this.startParse(e,o,f);for(;;){let d=E.advance();if(d)return d}}}class IAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function Obe(t){return(e,o,f,E)=>new BAe(e,t,o,f,E)}class Gpe{constructor(e,o,f,E,d){this.parser=e,this.parse=o,this.overlay=f,this.target=E,this.from=d}}function Kpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class DAe{constructor(e,o,f,E,d,s,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=E,this.start=d,this.target=s,this.prev=n,this.depth=0,this.ranges=[]}}const Ise=new Zl({perNode:!0});class BAe{constructor(e,o,f,E,d){this.nest=o,this.input=f,this.fragments=E,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let E of this.inner)E.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new gf(f.type,f.children,f.positions,f.length,f.propValues.concat([[Ise,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[Zl.mounted.id]=new LI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(E)){if(o){let b=o.mounts.find(i=>i.frag.from<=E.from&&i.frag.to>=E.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let S=i.from+b.pos,w=i.to+b.pos;S>=E.from&&w<=E.to&&!o.ranges.some(y=>y.fromS)&&o.ranges.push({from:S,to:w})}}n=!1}else if(f&&(s=zAe(f.ranges,E.from,E.to)))n=s!=2;else if(!E.type.isAnonymous&&(d=this.nest(E,this.input))&&(E.fromnew Jy(S.from-E.from,S.to-E.from)):null,E.tree,i.length?i[0].from:E.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(u=o.predicate(E))&&(u===!0&&(u=new Jy(E.from,E.to)),u.fromnew Jy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function zAe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Jpe(t,e,o,f,E,d){if(e=e.to);f++);let s=E.children[f],n=s.buffer,u=[f];function b(i,S,w,y,m,a){let c=o[a],h=[],p=[];Jpe(s,i,c,h,p,y);let v=n[c+1],_=n[c+2];u.push(h.length);let O=a?b(c+4,n[c+3],s.set.types[n[c]],v,_-v,a-1):e.toTree();return h.push(O),p.push(v-y),Jpe(s,n[c+3],S,h,p,y),new gf(w,h,p,m)}E.children[f]=b(0,n.length,Jp.none,0,s.length,o.length-1);for(let i of u){let S=t.tree.children[i],w=t.tree.positions[i];t.yield(new e0(S,w+t.from,i,t._tree))}}class eme{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(pd.IncludeAnonymous|pd.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,pd.IgnoreOverlays|pd.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof gf)o=o.children[0];else break}return!1}}let FAe=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(Ise))!==null&&o!==void 0?o:f.to,this.inner=new eme(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(Ise))!==null&&e!==void 0?e:o.to,this.inner=new eme(o.tree,-o.offset)}}findMounts(e,o){var f;let E=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let s=(f=d.tree)===null||f===void 0?void 0:f.prop(Zl.mounted);if(s&&s.parser==o)for(let n=this.fragI;n=d.to)break;u.tree==this.curFrag.tree&&E.push({frag:u,pos:d.from-u.offset,mount:s})}}}return E}};function tme(t,e){let o=null,f=e;for(let E=1,d=0;E=n)break;u.to<=s||(o||(f=o=e.slice()),u.fromn&&o.splice(d+1,0,new Jy(n,u.to))):u.to>n?o[d--]=new Jy(n,u.to):o.splice(d--,1))}}return f}function $Ae(t,e,o,f){let E=0,d=0,s=!1,n=!1,u=-1e9,b=[];for(;;){let i=E==t.length?1e9:s?t[E].to:t[E].from,S=d==e.length?1e9:n?e[d].to:e[d].from;if(s!=n){let w=Math.max(u,o),y=Math.min(i,S,f);wnew Jy(w.from+f,w.to+f)),S=$Ae(e,i,u,b);for(let w=0,y=u;;w++){let m=w==S.length,a=m?b:S[w].from;if(a>y&&o.push(new AO(y,a,E.tree,-s,d.from>=y||d.openStart,d.to<=a||d.openEnd)),m)break;y=S[w].to}}else o.push(new AO(u,b,E.tree,-s,d.from>=s||d.openStart,d.to<=n||d.openEnd))}return o}let VAe=0;class yx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=VAe++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new yx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new UH;return o=>o.modified.indexOf(e)>-1?o:UH.get(o.base||o,o.modified.concat(e).sort((f,E)=>f.id-E.id))}}let UAe=0;class UH{constructor(){this.instances=[],this.id=UAe++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&jAe(o,n.modified));if(f)return f;let E=[],d=new yx(E,e,o);for(let n of o)n.instances.push(d);let s=QAe(o);for(let n of e.set)if(!n.modified.length)for(let u of s)E.push(UH.get(n,u));return d}}function jAe(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function QAe(t){let e=[[]];for(let o=0;of.length-o.length)}function M4(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let E of o.split(" "))if(E){let d=[],s=2,n=E;for(let S=0;;){if(n=="..."&&S>0&&S+3==E.length){s=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+E);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),S+=w[0].length,S==E.length)break;let y=E[S++];if(S==E.length&&y=="!"){s=0;break}if(y!="/")throw new RangeError("Invalid path: "+E);n=E.slice(S)}let u=d.length-1,b=d[u];if(!b)throw new RangeError("Invalid path: "+E);let i=new jH(f,s,u>0?d.slice(0,u):null);e[b]=i.sort(e[b])}}return Sbe.add(e)}const Sbe=new Zl;class jH{constructor(e,o,f,E){this.tags=e,this.mode=o,this.context=f,this.next=E}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let s=E;for(let n of d)for(let u of n.set){let b=o[u.id];if(b){s=s?s+" "+b:b;break}}return s},scope:f}}function HAe(t,e){let o=null;for(let f of t){let E=f.style(e);E&&(o=o?o+" "+E:E)}return o}function ZAe(t,e,o,f=0,E=t.length){let d=new qAe(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,E,"",d.highlighters),d.flush(E)}class qAe{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,E,d){let{type:s,from:n,to:u}=e;if(n>=f||u<=o)return;s.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(s)));let b=E,i=WAe(e)||jH.empty,S=HAe(d,i.tags);if(S&&(b&&(b+=" "),b+=S,i.mode==1&&(E+=(E?" ":"")+S)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(Zl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),m=this.highlighters.filter(c=>!c.scope||c.scope(w.tree.type)),a=e.firstChild();for(let c=0,h=n;;c++){let p=c=v||!e.nextSibling())););if(!p||v>f)break;h=p.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,p.from+n),Math.min(f,h),"",m),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(E="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,E,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function WAe(t){let e=t.type.prop(Sbe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ma=yx.define,LQ=Ma(),r4=Ma(),rme=Ma(r4),ome=Ma(r4),o4=Ma(),IQ=Ma(o4),Nie=Ma(o4),h_=Ma(),OT=Ma(h_),f_=Ma(),d_=Ma(),Dse=Ma(),LL=Ma(Dse),DQ=Ma(),hr={comment:LQ,lineComment:Ma(LQ),blockComment:Ma(LQ),docComment:Ma(LQ),name:r4,variableName:Ma(r4),typeName:rme,tagName:Ma(rme),propertyName:ome,attributeName:Ma(ome),className:Ma(r4),labelName:Ma(r4),namespace:Ma(r4),macroName:Ma(r4),literal:o4,string:IQ,docString:Ma(IQ),character:Ma(IQ),attributeValue:Ma(IQ),number:Nie,integer:Ma(Nie),float:Ma(Nie),bool:Ma(o4),regexp:Ma(o4),escape:Ma(o4),color:Ma(o4),url:Ma(o4),keyword:f_,self:Ma(f_),null:Ma(f_),atom:Ma(f_),unit:Ma(f_),modifier:Ma(f_),operatorKeyword:Ma(f_),controlKeyword:Ma(f_),definitionKeyword:Ma(f_),moduleKeyword:Ma(f_),operator:d_,derefOperator:Ma(d_),arithmeticOperator:Ma(d_),logicOperator:Ma(d_),bitwiseOperator:Ma(d_),compareOperator:Ma(d_),updateOperator:Ma(d_),definitionOperator:Ma(d_),typeOperator:Ma(d_),controlOperator:Ma(d_),punctuation:Dse,separator:Ma(Dse),bracket:LL,angleBracket:Ma(LL),squareBracket:Ma(LL),paren:Ma(LL),brace:Ma(LL),content:h_,heading:OT,heading1:Ma(OT),heading2:Ma(OT),heading3:Ma(OT),heading4:Ma(OT),heading5:Ma(OT),heading6:Ma(OT),contentSeparator:Ma(h_),list:Ma(h_),quote:Ma(h_),emphasis:Ma(h_),strong:Ma(h_),link:Ma(h_),monospace:Ma(h_),strikethrough:Ma(h_),inserted:Ma(),deleted:Ma(),changed:Ma(),invalid:Ma(),meta:DQ,documentMeta:Ma(DQ),annotation:Ma(DQ),processingInstruction:Ma(DQ),definition:yx.defineModifier(),constant:yx.defineModifier(),function:yx.defineModifier(),standard:yx.defineModifier(),local:yx.defineModifier(),special:yx.defineModifier()};kbe([{tag:hr.link,class:"tok-link"},{tag:hr.heading,class:"tok-heading"},{tag:hr.emphasis,class:"tok-emphasis"},{tag:hr.strong,class:"tok-strong"},{tag:hr.keyword,class:"tok-keyword"},{tag:hr.atom,class:"tok-atom"},{tag:hr.bool,class:"tok-bool"},{tag:hr.url,class:"tok-url"},{tag:hr.labelName,class:"tok-labelName"},{tag:hr.inserted,class:"tok-inserted"},{tag:hr.deleted,class:"tok-deleted"},{tag:hr.literal,class:"tok-literal"},{tag:hr.string,class:"tok-string"},{tag:hr.number,class:"tok-number"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],class:"tok-string2"},{tag:hr.variableName,class:"tok-variableName"},{tag:hr.local(hr.variableName),class:"tok-variableName tok-local"},{tag:hr.definition(hr.variableName),class:"tok-variableName tok-definition"},{tag:hr.special(hr.variableName),class:"tok-variableName2"},{tag:hr.definition(hr.propertyName),class:"tok-propertyName tok-definition"},{tag:hr.typeName,class:"tok-typeName"},{tag:hr.namespace,class:"tok-namespace"},{tag:hr.className,class:"tok-className"},{tag:hr.macroName,class:"tok-macroName"},{tag:hr.propertyName,class:"tok-propertyName"},{tag:hr.operator,class:"tok-operator"},{tag:hr.comment,class:"tok-comment"},{tag:hr.meta,class:"tok-meta"},{tag:hr.invalid,class:"tok-invalid"},{tag:hr.punctuation,class:"tok-punctuation"}]);var Fie;const NT=new Zl;function Dce(t){return ls.define({combine:t?e=>e.concat(t):void 0})}const Bce=new Zl;class eb{constructor(e,o,f=[],E=""){this.data=e,this.name=E,kc.prototype.hasOwnProperty("tree")||Object.defineProperty(kc.prototype,"tree",{get(){return Gf(this)}}),this.parser=o,this.extension=[S4.of(this),kc.languageData.of((d,s,n)=>{let u=ime(d,s,n),b=u.type.prop(NT);if(!b)return[];let i=d.facet(b),S=u.type.prop(Bce);if(S){let w=u.resolve(s-u.from,n);for(let y of S)if(y.test(w,d)){let m=d.facet(y.facet);return y.type=="replace"?m:m.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return ime(e,o,f).type.prop(NT)==this.data}findRegions(e){let o=e.facet(S4);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],E=(d,s)=>{if(d.prop(NT)==this.data){f.push({from:s,to:s+d.length});return}let n=d.prop(Zl.mounted);if(n){if(n.tree.prop(NT)==this.data){if(n.overlay)for(let u of n.overlay)f.push({from:u.from+s,to:u.to+s});else f.push({from:s,to:s+d.length});return}else if(n.overlay){let u=f.length;if(E(n.tree,n.overlay[0].from+s),f.length>u)return}}for(let u=0;uf.isTop?o:void 0)]}),e.name)}configure(e,o){return new O4(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gf(t){let e=t.field(eb.state,!1);return e?e.tree:gf.empty}class YAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let IL=null;class DI{constructor(e,o,f=[],E,d,s,n,u){this.parser=e,this.state=o,this.fragments=f,this.tree=E,this.treeLen=d,this.viewport=s,this.skipped=n,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new DI(e,o,[],gf.empty,0,f,[],null)}startParse(){return this.parser.startParse(new YAe(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=gf.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let E=Date.now()+e;e=()=>Date.now()>E}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(AO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=IL;IL=this;try{return e()}finally{IL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=ame(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:E,treeLen:d,viewport:s,skipped:n}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((b,i,S,w)=>u.push({fromA:b,toA:i,fromB:S,toB:w})),f=AO.applyChanges(f,u),E=gf.empty,d=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),S=e.mapPos(b.to,-1);ie.from&&(this.fragments=ame(this.fragments,E,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends Ice{createParse(o,f,E){let d=E[0].from,s=E[E.length-1].to;return{parsedPos:d,advance(){let u=IL;if(u){for(let b of E)u.tempSkipped.push(b);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=s,new gf(Jp.none,[],[],s-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return IL}}function ame(t,e,o){return AO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class uM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new uM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=DI.create(e.facet(S4).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new uM(f)}}eb.state=tm.define({create:uM.init,update(t,e){for(let o of e.effects)if(o.is(eb.setState))return o.value;return e.startState.facet(S4)!=e.state.facet(S4)?uM.init(e.state):t.apply(e)}});let Tbe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Tbe=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const $ie=typeof navigator<"u"&&(!((Fie=navigator.scheduling)===null||Fie===void 0)&&Fie.isInputPending)?()=>navigator.scheduling.isInputPending():null,XAe=zh.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(eb.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(eb.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Tbe(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndE+1e3,u=d.context.work(()=>$ie&&$ie()||Date.now()>s,E+(n?0:1e5));this.chunkBudget-=Date.now()-o,(u||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:eb.setState.of(new uM(d.context))})),this.chunkBudget>0&&!(u&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>rb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S4=ls.define({combine(t){return t.length?t[0]:null},enables:t=>[eb.state,XAe,Xa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class WT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class QH{constructor(e,o,f,E,d,s=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=E,this.loadFunc=d,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new QH(e.name,(e.alias||[]).concat(e.name).map(E=>E.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let E of e)if(E.filename&&E.filename.test(o))return E;let f=/\.([^.]+)$/.exec(o);if(f){for(let E of e)if(E.extensions.indexOf(f[1])>-1)return E}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let E of e)if(E.alias.some(d=>d==o))return E;if(f)for(let E of e)for(let d of E.alias){let s=o.indexOf(d);if(s>-1&&(d.length>2||!/\w/.test(o[s-1])&&!/\w/.test(o[s+d.length])))return E}return null}}const GAe=ls.define(),eC=ls.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function HH(t){let e=t.facet(eC);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function BI(t,e){let o="",f=t.tabSize,E=t.facet(eC)[0];if(E==" "){for(;e>=f;)o+=" ",e-=f;E=" "}for(let d=0;d=e?KAe(t,o,e):null}class XZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=HH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:E,simulateDoubleBreak:d}=this.options;return E!=null&&E>=f.from&&E<=f.to?d&&E==e?{text:"",from:e}:(o<0?E-1&&(d+=s-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return kx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:E}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let s=d(E);if(s>-1)return s}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const tC=new Zl;function KAe(t,e,o){let f=e.resolveStack(o),E=f.node.enterUnfinishedNodesBefore(o);if(E!=f.node){let d=[];for(let s=E;s!=f.node;s=s.parent)d.push(s);for(let s=d.length-1;s>=0;s--)f={node:d[s],next:f}}return Cbe(f,t,o)}function Cbe(t,e,o){for(let f=t;f;f=f.next){let E=e8e(f.node);if(E)return E(Nce.create(e,o,f))}return 0}function JAe(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function e8e(t){let e=t.type.prop(tC);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(Zl.closedBy))){let E=t.lastChild,d=E&&f.indexOf(E.name)>-1;return s=>Abe(s,!0,1,void 0,d&&!JAe(s)?E.from:void 0)}return t.parent==null?t8e:null}function t8e(){return 0}class Nce extends XZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new Nce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(n8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Cbe(this.context.next,this.base,this.pos)}}function n8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function r8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let E=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),s=E==null||E<=d.from?d.to:Math.min(d.to,E);for(let n=o.to;;){let u=e.childAfter(n);if(!u||u==f)return null;if(!u.type.isSkipped)return u.fromAbe(f,e,o,t)}function Abe(t,e,o,f,E){let d=t.textAfter,s=d.match(/^\s*/)[0].length,n=f&&d.slice(s,s+f.length)==f||E==t.pos+s,u=e?r8e(t):null;return u?n?t.column(u.from):t.column(u.to):t.baseIndent+(n?0:t.unit*o)}const o8e=t=>t.baseIndent;function lI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const i8e=200;function a8e(){return kc.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,E=o.lineAt(f);if(f>E.from+i8e)return t;let d=o.sliceString(E.from,f);if(!e.some(b=>b.test(d)))return t;let{state:s}=t,n=-1,u=[];for(let{head:b}of s.selection.ranges){let i=s.doc.lineAt(b);if(i.from==n)continue;n=i.from;let S=zce(s,i.from);if(S==null)continue;let w=/^\s*/.exec(i.text)[0],y=BI(s,S);w!=y&&u.push({from:i.from,to:i.from+w.length,insert:y})}return u.length?[t,{changes:u,sequential:!0}]:t})}const Mbe=ls.define(),E4=new Zl;function Fce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function l8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function ZH(t,e,o){for(let f of t.facet(Mbe)){let E=f(t,e,o);if(E)return E}return s8e(t,e,o)}function Ebe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const GZ=Ql.define({map:Ebe}),hD=Ql.define({map:Ebe});function Pbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const YT=tm.define({create(){return Ns.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(GZ)&&!c8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet($ce),E=f?Ns.replace({widget:new g8e(f(e.state,o.value))}):sme;t=t.update({add:[E.range(o.value.from,o.value.to)]})}else o.is(hD)&&(t=t.update({filter:(f,E)=>o.value.from!=f||o.value.to!=E,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(E,d)=>{Ef&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(E,d)=>d<=f||E>=f}))}return t},provide:t=>Xa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,E)=>{o.push(f,E)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!E||E.from>d)&&(E={from:d,to:s})}),E}function c8e(t,e,o){let f=!1;return t.between(e,e,(E,d)=>{E==e&&d==o&&(f=!0)}),f}function Rbe(t,e){return t.field(YT,!1)?e:e.concat(Ql.appendConfig.of(Ibe()))}const u8e=t=>{for(let e of Pbe(t)){let o=ZH(t.state,e.from,e.to);if(o)return t.dispatch({effects:Rbe(t.state,[GZ.of(o),Lbe(t,o)])}),!0}return!1},f8e=t=>{if(!t.state.field(YT,!1))return!1;let e=[];for(let o of Pbe(t)){let f=qH(t.state,o.from,o.to);f&&e.push(hD.of(f),Lbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Lbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,E=t.state.doc.lineAt(e.to).number;return Xa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${E}.`)}const d8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(YT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,E)=>{o.push(hD.of({from:f,to:E}))}),t.dispatch({effects:o}),!0},p8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:u8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:f8e},{key:"Ctrl-Alt-[",run:d8e},{key:"Ctrl-Alt-]",run:h8e}],m8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},$ce=ls.define({combine(t){return E_(t,m8e)}});function Ibe(t){let e=[YT,b8e];return t&&e.push($ce.of(t)),e}function Dbe(t,e){let{state:o}=t,f=o.facet($ce),E=s=>{let n=t.lineBlockAt(t.posAtDOM(s.target)),u=qH(t.state,n.from,n.to);u&&t.dispatch({effects:hD.of(u)}),s.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,E,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=E,d}const sme=Ns.replace({widget:new class extends Ex{toDOM(t){return Dbe(t,null)}}});class g8e extends Ex{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Dbe(e,this.value)}}const v8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Vie extends IO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function y8e(t={}){let e=Object.assign(Object.assign({},v8e),t),o=new Vie(e,!0),f=new Vie(e,!1),E=zh.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(S4)!=s.state.facet(S4)||s.startState.field(YT,!1)!=s.state.field(YT,!1)||Gf(s.startState)!=Gf(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let n=new y4;for(let u of s.viewportLineBlocks){let b=qH(s.state,u.from,u.to)?f:ZH(s.state,u.from,u.to)?o:null;b&&n.add(u.from,u.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[E,yAe({class:"cm-foldGutter",markers(s){var n;return((n=s.plugin(E))===null||n===void 0?void 0:n.markers)||Df.empty},initialSpacer(){return new Vie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(s,n,u)=>{if(d.click&&d.click(s,n,u))return!0;let b=qH(s.state,n.from,n.to);if(b)return s.dispatch({effects:hD.of(b)}),!0;let i=ZH(s.state,n.from,n.to);return i?(s.dispatch({effects:GZ.of(i)}),!0):!1}})}),Ibe()]}const b8e=Xa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class pD{constructor(e,o){this.specs=e;let f;function E(n){let u=b4.newName();return(f||(f=Object.create(null)))["."+u]=n,u}const d=typeof o.all=="string"?o.all:o.all?E(o.all):void 0,s=o.scope;this.scope=s instanceof eb?n=>n.prop(NT)==s.data:s?n=>n==s:void 0,this.style=kbe(e.map(n=>({tag:n.tag,class:n.class||E(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new b4(f):null,this.themeType=o.themeType}static define(e,o){return new pD(e,o||{})}}const Bse=ls.define(),Bbe=ls.define({combine(t){return t.length?[t[0]]:null}});function Uie(t){let e=t.facet(Bse);return e.length?e:t.facet(Bbe)}function zbe(t,e){let o=[_8e],f;return t instanceof pD&&(t.module&&o.push(Xa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(Bbe.of(t)):f?o.push(Bse.computeN([Xa.darkTheme],E=>E.facet(Xa.darkTheme)==(f=="dark")?[t]:[])):o.push(Bse.of(t)),o}class x8e{constructor(e){this.markCache=Object.create(null),this.tree=Gf(e.state),this.decorations=this.buildDeco(e,Uie(e.state))}update(e){let o=Gf(e.state),f=Uie(e.state),E=f!=Uie(e.startState);o.length{f.add(s,n,this.markCache[u]||(this.markCache[u]=Ns.mark({class:u})))},E,d);return f.finish()}}const _8e=ty.high(zh.fromClass(x8e,{decorations:t=>t.decorations})),w8e=pD.define([{tag:hr.meta,color:"#404740"},{tag:hr.link,textDecoration:"underline"},{tag:hr.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strong,fontWeight:"bold"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.keyword,color:"#708"},{tag:[hr.atom,hr.bool,hr.url,hr.contentSeparator,hr.labelName],color:"#219"},{tag:[hr.literal,hr.inserted],color:"#164"},{tag:[hr.string,hr.deleted],color:"#a11"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],color:"#e40"},{tag:hr.definition(hr.variableName),color:"#00f"},{tag:hr.local(hr.variableName),color:"#30a"},{tag:[hr.typeName,hr.namespace],color:"#085"},{tag:hr.className,color:"#167"},{tag:[hr.special(hr.variableName),hr.macroName],color:"#256"},{tag:hr.definition(hr.propertyName),color:"#00c"},{tag:hr.comment,color:"#940"},{tag:hr.invalid,color:"#f00"}]),O8e=Xa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Nbe=1e4,Fbe="()[]{}",$be=ls.define({combine(t){return E_(t,{afterCursor:!0,brackets:Fbe,maxScanDistance:Nbe,renderMatch:T8e})}}),S8e=Ns.mark({class:"cm-matchingBracket"}),k8e=Ns.mark({class:"cm-nonmatchingBracket"});function T8e(t){let e=[],o=t.matched?S8e:k8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const C8e=tm.define({create(){return Ns.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet($be);for(let E of e.state.selection.ranges){if(!E.empty)continue;let d=x_(e.state,E.head,-1,f)||E.head>0&&x_(e.state,E.head-1,1,f)||f.afterCursor&&(x_(e.state,E.head,1,f)||E.headXa.decorations.from(t)}),A8e=[C8e,O8e];function M8e(t={}){return[$be.of(t),A8e]}const Vbe=new Zl;function zse(t,e,o){let f=t.prop(e<0?Zl.openedBy:Zl.closedBy);if(f)return f;if(t.name.length==1){let E=o.indexOf(t.name);if(E>-1&&E%2==(e<0?1:0))return[o[E+e]]}return null}function Nse(t){let e=t.type.prop(Vbe);return e?e(t.node):t}function x_(t,e,o,f={}){let E=f.maxScanDistance||Nbe,d=f.brackets||Fbe,s=Gf(t),n=s.resolveInner(e,o);for(let u=n;u;u=u.parent){let b=zse(u.type,o,d);if(b&&u.from0?e>=i.from&&ei.from&&e<=i.to))return E8e(t,e,o,u,i,b,d)}}return P8e(t,e,o,s,n.type,E,d)}function E8e(t,e,o,f,E,d,s){let n=f.parent,u={from:E.from,to:E.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),S=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let m=e+w*o;for(let a=o>0?0:y.length-1,c=o>0?y.length:-1;a!=c;a+=o){let h=s.indexOf(y[a]);if(!(h<0||f.resolveInner(m+a,1).type!=E))if(h%2==0==o>0)S++;else{if(S==1)return{start:b,end:{from:m+a,to:m+a+1},matched:h>>1==u>>1};S--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const R8e=Object.create(null),lme=[Jp.none],cme=[],ume=Object.create(null),L8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])L8e[t]=I8e(R8e,e);function jie(t,e){cme.indexOf(t)>-1||(cme.push(t),console.warn(e))}function I8e(t,e){let o=[];for(let n of e.split(" ")){let u=[];for(let b of n.split(".")){let i=t[b]||hr[b];i?typeof i=="function"?u.length?u=u.map(i):jie(b,`Modifier ${b} used at start of tag`):u.length?jie(b,`Tag ${b} used as modifier`):u=Array.isArray(i)?i:[i]:jie(b,`Unknown highlighting tag ${b}`)}for(let b of u)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),E=f+" "+o.map(n=>n.id),d=ume[E];if(d)return d.id;let s=ume[E]=Jp.define({id:lme.length,name:f,props:[M4({[f]:o})]});return lme.push(s),s.id}const D8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=Uce(t.state,o.from);return f.line?B8e(t):f.block?N8e(t):!1};function Vce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let E=t(e,o);return E?(f(o.update(E)),!0):!1}}const B8e=Vce(V8e,0),z8e=Vce(Ube,0),N8e=Vce((t,e)=>Ube(t,e,$8e(e)),0);function Uce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const DL=50;function F8e(t,{open:e,close:o},f,E){let d=t.sliceDoc(f-DL,f),s=t.sliceDoc(E,E+DL),n=/\s*$/.exec(d)[0].length,u=/^\s*/.exec(s)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&s.slice(u,u+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:E+u,margin:u&&1}};let i,S;E-f<=2*DL?i=S=t.sliceDoc(f,E):(i=t.sliceDoc(f,f+DL),S=t.sliceDoc(E-DL,E));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(S)[0].length,m=S.length-y-o.length;return i.slice(w,w+e.length)==e&&S.slice(m,m+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:E-y-o.length,margin:/\s/.test(S.charAt(m-1))?1:0}}:null}function $8e(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),E=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=E.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:E.to})}return e}function Ube(t,e,o=e.selection.ranges){let f=o.map(d=>Uce(e,d.from).block);if(!f.every(d=>d))return null;let E=o.map((d,s)=>F8e(e,f[s],d.from,d.to));if(t!=2&&!E.every(d=>d))return{changes:e.changes(o.map((d,s)=>E[s]?[]:[{from:d.from,insert:f[s].open+" "},{from:d.to,insert:" "+f[s].close}]))};if(t!=1&&E.some(d=>d)){let d=[];for(let s=0,n;sE&&(d==s||s>S.from)){E=S.from;let w=/^\s*/.exec(S.text)[0].length,y=w==S.length,m=S.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:u,indent:b,empty:i,single:S}of f)(S||!i)&&d.push({from:n.from+b,insert:u+" "});let s=e.changes(d);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:s,comment:n,token:u}of f)if(n>=0){let b=s.from+n,i=b+u.length;s.text[i-s.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const Fse=NO.define(),U8e=NO.define(),j8e=ls.define(),jbe=ls.define({combine(t){return E_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,E)=>e(f,E)||o(f,E)})}}),Qbe=tm.define({create(){return __.empty},update(t,e){let o=e.state.facet(jbe),f=e.annotation(Fse);if(f){let u=F1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return u?i=WH(i,i.length,o.minDepth,u):i=qbe(i,e.startState.selection),new __(b==0?f.rest:i,b==0?i:f.rest)}let E=e.annotation(U8e);if((E=="full"||E=="before")&&(t=t.isolate()),e.annotation(Xp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=F1.fromTransaction(e),s=e.annotation(Xp.time),n=e.annotation(Xp.userEvent);return d?t=t.addChanges(d,s,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,s,n,o.newGroupDelay)),(E=="full"||E=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new __(t.done.map(F1.fromJSON),t.undone.map(F1.fromJSON))}});function Q8e(t={}){return[Qbe,jbe.of(t),Xa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?Hbe:e.inputType=="historyRedo"?$se:null;return f?(e.preventDefault(),f(o)):!1}})]}function KZ(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let E=o.field(Qbe,!1);if(!E)return!1;let d=E.pop(t,o,e);return d?(f(d),!0):!1}}const Hbe=KZ(0,!1),$se=KZ(1,!1),H8e=KZ(0,!0),Z8e=KZ(1,!0);class F1{constructor(e,o,f,E,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=E,this.selectionsAfter=d}setSelAfter(e){return new F1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(E=>E.toJSON())}}static fromJSON(e){return new F1(e.changes&&Wp.fromJSON(e.changes),[],e.mapped&&k_.fromJSON(e.mapped),e.startSelection&&hi.fromJSON(e.startSelection),e.selectionsAfter.map(hi.fromJSON))}static fromTransaction(e,o){let f=tb;for(let E of e.startState.facet(j8e)){let d=E(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new F1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,tb)}static selection(e){return new F1(void 0,tb,void 0,void 0,e)}}function WH(t,e,o,f){let E=e+1>o+20?e-o-1:0,d=t.slice(E,e);return d.push(f),d}function q8e(t,e){let o=[],f=!1;return t.iterChangedRanges((E,d)=>o.push(E,d)),e.iterChangedRanges((E,d,s,n)=>{for(let u=0;u=b&&s<=i&&(f=!0)}}),f}function W8e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function Zbe(t,e){return t.length?e.length?t.concat(e):t:e}const tb=[],Y8e=200;function qbe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-Y8e));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),WH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[F1.selection([e])]}function X8e(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Qie(t,e){if(!t.length)return t;let o=t.length,f=tb;for(;o;){let E=G8e(t[o-1],e,f);if(E.changes&&!E.changes.empty||E.effects.length){let d=t.slice(0,o);return d[o-1]=E,d}else e=E.mapped,o--,f=E.selectionsAfter}return f.length?[F1.selection(f)]:tb}function G8e(t,e,o){let f=Zbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):tb,o);if(!t.changes)return F1.selection(f);let E=t.changes.map(e),d=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(d):d;return new F1(E,Ql.mapEffects(t.effects,e),s,t.startSelection.map(d),f)}const K8e=/^(input\.type|delete)($|\.)/;class __{constructor(e,o,f=0,E=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=E}isolate(){return this.prevTime?new __(this.done,this.undone):this}addChanges(e,o,f,E,d){let s=this.done,n=s[s.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||K8e.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):JZ(o,e))}function t0(t){return t.textDirectionAt(t.state.selection.main.head)==Bh.LTR}const Ybe=t=>Wbe(t,!t0(t)),Xbe=t=>Wbe(t,t0(t));function Gbe(t,e){return Px(t,o=>o.empty?t.moveByGroup(o,e):JZ(o,e))}const eMe=t=>Gbe(t,!t0(t)),tMe=t=>Gbe(t,t0(t));function nMe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function eq(t,e,o){let f=Gf(t).resolveInner(e.head),E=o?Zl.closedBy:Zl.openedBy;for(let u=e.head;;){let b=o?f.childAfter(u):f.childBefore(u);if(!b)break;nMe(t,b,E)?f=b:u=o?b.to:b.from}let d=f.type.prop(E),s,n;return d&&(s=o?x_(t,f.from,1):x_(t,f.to,-1))&&s.matched?n=o?s.end.to:s.end.from:n=o?f.to:f.from,hi.cursor(n,o?-1:1)}const rMe=t=>Px(t,e=>eq(t.state,e,!t0(t))),oMe=t=>Px(t,e=>eq(t.state,e,t0(t)));function Kbe(t,e){return Px(t,o=>{if(!o.empty)return JZ(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Jbe=t=>Kbe(t,!1),exe=t=>Kbe(t,!0);function txe(t){let e=t.scrollDOM.clientHeights.empty?t.moveVertically(s,e,o.height):JZ(s,e));if(E.eq(f.selection))return!1;let d;if(o.selfScroll){let s=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),u=n.top+o.marginTop,b=n.bottom-o.marginBottom;s&&s.top>u&&s.bottomnxe(t,!1),Vse=t=>nxe(t,!0);function P4(t,e,o){let f=t.lineBlockAt(e.head),E=t.moveToLineBoundary(e,o);if(E.head==e.head&&E.head!=(o?f.to:f.from)&&(E=t.moveToLineBoundary(e,o,!1)),!o&&E.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(E=hi.cursor(f.from+d))}return E}const iMe=t=>Px(t,e=>P4(t,e,!0)),aMe=t=>Px(t,e=>P4(t,e,!1)),sMe=t=>Px(t,e=>P4(t,e,!t0(t))),lMe=t=>Px(t,e=>P4(t,e,t0(t))),cMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).from,1)),uMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).to,-1));function fMe(t,e,o){let f=!1,E=AM(t.selection,d=>{let s=x_(t,d.head,-1)||x_(t,d.head,1)||d.head>0&&x_(t,d.head-1,1)||d.headfMe(t,e,!1);function lb(t,e){let o=AM(t.state.selection,f=>{let E=e(f);return hi.range(f.anchor,E.head,E.goalColumn,E.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(P_(t.state,o)),!0)}function rxe(t,e){return lb(t,o=>t.moveByChar(o,e))}const oxe=t=>rxe(t,!t0(t)),ixe=t=>rxe(t,t0(t));function axe(t,e){return lb(t,o=>t.moveByGroup(o,e))}const hMe=t=>axe(t,!t0(t)),pMe=t=>axe(t,t0(t)),mMe=t=>lb(t,e=>eq(t.state,e,!t0(t))),gMe=t=>lb(t,e=>eq(t.state,e,t0(t)));function sxe(t,e){return lb(t,o=>t.moveVertically(o,e))}const lxe=t=>sxe(t,!1),cxe=t=>sxe(t,!0);function uxe(t,e){return lb(t,o=>t.moveVertically(o,e,txe(t).height))}const dme=t=>uxe(t,!1),hme=t=>uxe(t,!0),vMe=t=>lb(t,e=>P4(t,e,!0)),yMe=t=>lb(t,e=>P4(t,e,!1)),bMe=t=>lb(t,e=>P4(t,e,!t0(t))),xMe=t=>lb(t,e=>P4(t,e,t0(t))),_Me=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).from)),wMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).to)),pme=({state:t,dispatch:e})=>(e(P_(t,{anchor:0})),!0),mme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.doc.length})),!0),gme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:0})),!0),vme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),OMe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),SMe=({state:t,dispatch:e})=>{let o=tq(t).map(({from:f,to:E})=>hi.range(f,Math.min(E+1,t.doc.length)));return e(t.update({selection:hi.create(o),userEvent:"select"})),!0},kMe=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var E;let d=Gf(t).resolveStack(f.from,1);for(let s=d;s;s=s.next){let{node:n}=s;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((E=n.parent)===null||E===void 0)&&E.parent))return hi.range(n.to,n.from)}return f});return e(P_(t,o)),!0},TMe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=hi.create([o.main]):o.main.empty||(f=hi.create([hi.cursor(o.main.head)])),f?(e(P_(t,f)),!0):!1};function mD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,E=f.changeByRange(d=>{let{from:s,to:n}=d;if(s==n){let u=e(d);us&&(o="delete.forward",u=BQ(t,u,!0)),s=Math.min(s,u),n=Math.max(n,u)}else s=BQ(t,s,!1),n=BQ(t,n,!0);return s==n?{range:d}:{changes:{from:s,to:n},range:hi.cursor(s,sE(t)))f.between(e,e,(E,d)=>{Ee&&(e=o?d:E)});return e}const fxe=(t,e)=>mD(t,o=>{let f=o.from,{state:E}=t,d=E.doc.lineAt(f),s,n;if(!e&&f>d.from&&ffxe(t,!1),dxe=t=>fxe(t,!0),hxe=(t,e)=>mD(t,o=>{let f=o.head,{state:E}=t,d=E.doc.lineAt(f),s=E.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?E.doc.lines:1)&&(f+=e?1:-1);break}let u=cg(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,u)-d.from,Math.max(f,u)-d.from),i=s(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=u}return f}),pxe=t=>hxe(t,!1),CMe=t=>hxe(t,!0),AMe=t=>mD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headmD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),EMe=t=>mD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:Qu.of(["",""])},range:hi.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},RMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let E=f.from,d=t.doc.lineAt(E),s=E==d.from?E-1:cg(d.text,E-d.from,!1)+d.from,n=E==d.to?E+1:cg(d.text,E-d.from,!0)+d.from;return{changes:{from:s,to:n,insert:t.doc.slice(E,n).append(t.doc.slice(s,E))},range:hi.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function tq(t){let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=E.number){let s=e[e.length-1];s.to=d.to,s.ranges.push(f)}else e.push({from:E.from,to:d.to,ranges:[f]});o=d.number+1}return e}function mxe(t,e,o){if(t.readOnly)return!1;let f=[],E=[];for(let d of tq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let s=t.doc.lineAt(o?d.to+1:d.from-1),n=s.length+1;if(o){f.push({from:d.to,to:s.to},{from:d.from,insert:s.text+t.lineBreak});for(let u of d.ranges)E.push(hi.range(Math.min(t.doc.length,u.anchor+n),Math.min(t.doc.length,u.head+n)))}else{f.push({from:s.from,to:d.from},{from:d.to,insert:t.lineBreak+s.text});for(let u of d.ranges)E.push(hi.range(u.anchor-n,u.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:hi.create(E,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const LMe=({state:t,dispatch:e})=>mxe(t,e,!1),IMe=({state:t,dispatch:e})=>mxe(t,e,!0);function gxe(t,e,o){if(t.readOnly)return!1;let f=[];for(let E of tq(t))o?f.push({from:E.from,insert:t.doc.slice(E.from,E.to)+t.lineBreak}):f.push({from:E.to,insert:t.lineBreak+t.doc.slice(E.from,E.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const DMe=({state:t,dispatch:e})=>gxe(t,e,!1),BMe=({state:t,dispatch:e})=>gxe(t,e,!0),zMe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(tq(e).map(({from:E,to:d})=>(E>0?E--:dt.moveVertically(E,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function NMe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gf(t).resolveInner(e),f=o.childBefore(e),E=o.childAfter(e),d;return f&&E&&f.to<=e&&E.from>=e&&(d=f.type.prop(Zl.closedBy))&&d.indexOf(E.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(E.from).from&&!/\S/.test(t.sliceDoc(f.to,E.from))?{from:f.to,to:E.from}:null}const FMe=vxe(!1),$Me=vxe(!0);function vxe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(E=>{let{from:d,to:s}=E,n=e.doc.lineAt(d),u=!t&&d==s&&NMe(e,d);t&&(d=s=(s<=n.to?n:e.doc.lineAt(s)).to);let b=new XZ(e,{simulateBreak:d,simulateDoubleBreak:!!u}),i=zce(b,d);for(i==null&&(i=kx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));sn.from&&d{let E=[];for(let s=f.from;s<=f.to;){let n=t.doc.lineAt(s);n.number>o&&(f.empty||f.to>n.from)&&(e(n,E,f),o=n.number),s=n.to+1}let d=t.changes(E);return{changes:E,range:hi.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const VMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new XZ(t,{overrideIndentation:d=>{let s=o[d];return s??-1}}),E=jce(t,(d,s,n)=>{let u=zce(f,d.from);if(u==null)return;/\S/.test(d.text)||(u=0);let b=/^\s*/.exec(d.text)[0],i=BI(t,u);(b!=i||n.fromt.readOnly?!1:(e(t.update(jce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(eC)})}),{userEvent:"input.indent"})),!0),bxe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(jce(t,(o,f)=>{let E=/^\s*/.exec(o.text)[0];if(!E)return;let d=kx(E,t.tabSize),s=0,n=BI(t,Math.max(0,d-HH(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),QMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:rMe,shift:mMe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:oMe,shift:gMe},{key:"Alt-ArrowUp",run:LMe},{key:"Shift-Alt-ArrowUp",run:DMe},{key:"Alt-ArrowDown",run:IMe},{key:"Shift-Alt-ArrowDown",run:BMe},{key:"Escape",run:TMe},{key:"Mod-Enter",run:$Me},{key:"Alt-l",mac:"Ctrl-l",run:SMe},{key:"Mod-i",run:kMe,preventDefault:!0},{key:"Mod-[",run:bxe},{key:"Mod-]",run:yxe},{key:"Mod-Alt-\\",run:VMe},{key:"Shift-Mod-k",run:zMe},{key:"Shift-Mod-\\",run:dMe},{key:"Mod-/",run:D8e},{key:"Alt-A",run:z8e}].concat(jMe),HMe={key:"Tab",run:yxe,shift:bxe};function zd(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var E=o[f];typeof E=="string"?t.setAttribute(f,E):E!=null&&(t[f]=E)}e++}for(;et.normalize("NFKD"):t=>t;class fM{constructor(e,o,f=0,E=e.length,d,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,E),this.bufferStart=f,this.normalize=d?n=>d(yme(n)):yme,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ag(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=bce(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Gy(e);let E=this.normalize(o);for(let d=0,s=f;;d++){let n=E.charCodeAt(d),u=this.match(n,s);if(d==E.length-1){if(u)return this.value=u,this;break}s==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,E=f+o[0].length;if(this.matchPos=YH(this.text,E+(f==E?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||E.to<=o){let n=new G8(o,e.sliceString(o,f));return Hie.set(e,n),n}if(E.from==o&&E.to==f)return E;let{text:d,from:s}=E;return s>o&&(d=e.sliceString(o,s)+d,s=o),E.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,E=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this.matchPos=YH(this.text,E+(f==E?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=G8.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(wxe.prototype[Symbol.iterator]=Oxe.prototype[Symbol.iterator]=function(){return this});function ZMe(t){try{return new RegExp(t,Qce),!0}catch{return!1}}function YH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function jse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=zd("input",{class:"cm-textfield",name:"line",value:e}),f=zd("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:XH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),E())},onsubmit:d=>{d.preventDefault(),E()}},zd("label",t.state.phrase("Go to line"),": ",o)," ",zd("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function E(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:s}=t,n=s.doc.lineAt(s.selection.main.head),[,u,b,i,S]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&S){let c=y/100;u&&(c=c*(u=="-"?-1:1)+n.number/s.doc.lines),y=Math.round(s.doc.lines*c)}else b&&u&&(y=y*(u=="-"?-1:1)+n.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,y))),a=hi.cursor(m.from+Math.max(0,Math.min(w,m.length)));t.dispatch({effects:[XH.of(!1),Xa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const XH=Ql.define(),bme=tm.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(XH)&&(t=o.value);return t},provide:t=>RI.from(t,e=>e?jse:null)}),qMe=t=>{let e=PI(t,jse);if(!e){let o=[XH.of(!0)];t.state.field(bme,!1)==null&&o.push(Ql.appendConfig.of([bme,WMe])),t.dispatch({effects:o}),e=PI(t,jse)}return e&&e.dom.querySelector("input").select(),!0},WMe=Xa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),YMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Sxe=ls.define({combine(t){return E_(t,YMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function XMe(t){let e=[tEe,eEe];return t&&e.push(Sxe.of(t)),e}const GMe=Ns.mark({class:"cm-selectionMatch"}),KMe=Ns.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function xme(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=yh.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=yh.Word)}function JMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==yh.Word&&t(e.sliceDoc(f-1,f))==yh.Word}const eEe=zh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Sxe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return Ns.none;let E=f.main,d,s=null;if(E.empty){if(!e.highlightWordAroundCursor)return Ns.none;let u=o.wordAt(E.head);if(!u)return Ns.none;s=o.charCategorizer(E.head),d=o.sliceDoc(u.from,u.to)}else{let u=E.to-E.from;if(u200)return Ns.none;if(e.wholeWords){if(d=o.sliceDoc(E.from,E.to),s=o.charCategorizer(E.head),!(xme(s,o,E.from,E.to)&&JMe(s,o,E.from,E.to)))return Ns.none}else if(d=o.sliceDoc(E.from,E.to).trim(),!d)return Ns.none}let n=[];for(let u of t.visibleRanges){let b=new fM(o.doc,d,u.from,u.to);for(;!b.next().done;){let{from:i,to:S}=b.value;if((!s||xme(s,o,i,S))&&(E.empty&&i<=E.from&&S>=E.to?n.push(KMe.range(i,S)):(i>=E.to||S<=E.from)&&n.push(GMe.range(i,S)),n.length>e.maxMatches))return Ns.none}}return Ns.set(n)}},{decorations:t=>t.decorations}),tEe=Xa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),nEe=({state:t,dispatch:e})=>{let{selection:o}=t,f=hi.create(o.ranges.map(E=>t.wordAt(E.head)||hi.cursor(E.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function rEe(t,e){let{main:o,ranges:f}=t.selection,E=t.wordAt(o.head),d=E&&E.from==o.from&&E.to==o.to;for(let s=!1,n=new fM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(s)return null;n=new fM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),s=!0}else{if(s&&f.some(u=>u.from==n.value.from))continue;if(d){let u=t.wordAt(n.value.from);if(!u||u.from!=n.value.from||u.to!=n.value.to)continue}return n.value}}const oEe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return nEe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let E=rEe(t,f);return E?(e(t.update({selection:t.selection.addRange(hi.range(E.from,E.to),!1),effects:Xa.scrollIntoView(E.to)})),!0):!1},MM=ls.define({combine(t){return E_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new gEe(e),scrollToMatch:e=>Xa.scrollIntoView(e)})}});class kxe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||ZMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` -`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lEe(this):new aEe(this)}getCursor(e,o=0,f){let E=e.doc?e:kc.create({doc:e});return f==null&&(f=E.doc.length),this.regexp?B8(this,E,o,f):D8(this,E,o,f)}}class Txe{constructor(e){this.spec=e}}function D8(t,e,o,f){return new fM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:E=>E.toLowerCase(),t.wholeWord?iEe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function iEe(t,e){return(o,f,E,d)=>((d>o||d+E.length=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=D8(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}function B8(t,e,o,f){return new wxe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?sEe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function GH(t,e){return t.slice(cg(t,e,!1),e)}function KH(t,e){return t.slice(e,cg(t,e))}function sEe(t){return(e,o,f)=>!f[0].length||(t(GH(f.input,f.index))!=yh.Word||t(KH(f.input,f.index))!=yh.Word)&&(t(KH(f.input,f.index+f[0].length))!=yh.Word||t(GH(f.input,f.index+f[0].length))!=yh.Word)}class lEe extends Txe{nextMatch(e,o,f){let E=B8(this.spec,e,f,e.doc.length).next();return E.done&&(E=B8(this.spec,e,0,o).next()),E.done?null:E.value}prevMatchInRange(e,o,f){for(let E=1;;E++){let d=Math.max(o,f-E*1e4),s=B8(this.spec,e,d,f),n=null;for(;!s.next().done;)n=s.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=B8(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}const zI=Ql.define(),Hce=Ql.define(),m4=tm.define({create(t){return new Zie(Qse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(zI)?t=new Zie(o.value.create(),t.panel):o.is(Hce)&&(t=new Zie(t.query,o.value?Zce:null));return t},provide:t=>RI.from(t,e=>e.panel)});class Zie{constructor(e,o){this.query=e,this.panel=o}}const cEe=Ns.mark({class:"cm-searchMatch"}),uEe=Ns.mark({class:"cm-searchMatch cm-searchMatch-selected"}),fEe=zh.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(m4))}update(t){let e=t.state.field(m4);(e!=t.startState.field(m4)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ns.none;let{view:o}=this,f=new y4;for(let E=0,d=o.visibleRanges,s=d.length;Ed[E+1].from-2*250;)u=d[++E].to;t.highlight(o.state,n,u,(b,i)=>{let S=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,S?uEe:cEe)})}return f.finish()}},{decorations:t=>t.decorations});function gD(t){return e=>{let o=e.state.field(m4,!1);return o&&o.query.spec.valid?t(e,o):Mxe(e)}}const JH=gD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let E=hi.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:E,effects:[qce(t,f),d.scrollToMatch(E.main,t)],userEvent:"select.search"}),Axe(t),!0}),eZ=gD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,E=e.prevMatch(o,f,f);if(!E)return!1;let d=hi.single(E.from,E.to),s=t.state.facet(MM);return t.dispatch({selection:d,effects:[qce(t,E),s.scrollToMatch(d.main,t)],userEvent:"select.search"}),Axe(t),!0}),dEe=gD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:hi.create(o.map(f=>hi.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),hEe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:E}=o.main,d=[],s=0;for(let n=new fM(t.doc,t.sliceDoc(f,E));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(s=d.length),d.push(hi.range(n.value.from,n.value.to))}return e(t.update({selection:hi.create(d,s),userEvent:"select.search.matches"})),!0},_me=gD((t,{query:e})=>{let{state:o}=t,{from:f,to:E}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let s=[],n,u,b=[];if(d.from==f&&d.to==E&&(u=o.toText(e.getReplacement(d)),s.push({from:d.from,to:d.to,insert:u}),d=e.nextMatch(o,d.from,d.to),b.push(Xa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=s.length==0||s[0].from>=d.to?0:d.to-d.from-u.length;n=hi.single(d.from-i,d.to-i),b.push(qce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:s,selection:n,effects:b,userEvent:"input.replace"}),!0}),pEe=gD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(E=>{let{from:d,to:s}=E;return{from:d,to:s,insert:e.getReplacement(E)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Xa.announce.of(f),userEvent:"input.replace.all"}),!0});function Zce(t){return t.state.facet(MM).createPanel(t)}function Qse(t,e){var o,f,E,d,s;let n=t.selection.main,u=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!u)return e;let b=t.facet(MM);return new kxe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(E=e==null?void 0:e.literal)!==null&&E!==void 0?E:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:b.wholeWord})}function Cxe(t){let e=PI(t,Zce);return e&&e.dom.querySelector("[main-field]")}function Axe(t){let e=Cxe(t);e&&e==t.root.activeElement&&e.select()}const Mxe=t=>{let e=t.state.field(m4,!1);if(e&&e.panel){let o=Cxe(t);if(o&&o!=t.root.activeElement){let f=Qse(t.state,e.query.spec);f.valid&&t.dispatch({effects:zI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[Hce.of(!0),e?zI.of(Qse(t.state,e.query.spec)):Ql.appendConfig.of(yEe)]});return!0},Exe=t=>{let e=t.state.field(m4,!1);if(!e||!e.panel)return!1;let o=PI(t,Zce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Hce.of(!1)}),!0},mEe=[{key:"Mod-f",run:Mxe,scope:"editor search-panel"},{key:"F3",run:JH,shift:eZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:JH,shift:eZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Exe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:hEe},{key:"Mod-Alt-g",run:qMe},{key:"Mod-d",run:oEe,preventDefault:!0}];class gEe{constructor(e){this.view=e;let o=this.query=e.state.field(m4).query.spec;this.commit=this.commit.bind(this),this.searchField=zd("input",{value:o.search,placeholder:Uv(e,"Find"),"aria-label":Uv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=zd("input",{value:o.replace,placeholder:Uv(e,"Replace"),"aria-label":Uv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=zd("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=zd("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=zd("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(E,d,s){return zd("button",{class:"cm-button",name:E,onclick:d,type:"button"},s)}this.dom=zd("div",{onkeydown:E=>this.keydown(E),class:"cm-search"},[this.searchField,f("next",()=>JH(e),[Uv(e,"next")]),f("prev",()=>eZ(e),[Uv(e,"previous")]),f("select",()=>dEe(e),[Uv(e,"all")]),zd("label",null,[this.caseField,Uv(e,"match case")]),zd("label",null,[this.reField,Uv(e,"regexp")]),zd("label",null,[this.wordField,Uv(e,"by word")]),...e.state.readOnly?[]:[zd("br"),this.replaceField,f("replace",()=>_me(e),[Uv(e,"replace")]),f("replaceAll",()=>pEe(e),[Uv(e,"replace all")])],zd("button",{name:"close",onclick:()=>Exe(e),"aria-label":Uv(e,"close"),type:"button"},["×"])])}commit(){let e=new kxe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:zI.of(e)}))}keydown(e){C6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?eZ:JH)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),_me(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(zI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Uv(t,e){return t.state.phrase(e)}const zQ=30,NQ=/[\s\.,:;?!]/;function qce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),E=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-zQ),s=Math.min(E,o+zQ),n=t.state.sliceDoc(d,s);if(d!=f.from){for(let u=0;un.length-zQ;u--)if(!NQ.test(n[u-1])&&NQ.test(n[u])){n=n.slice(0,u);break}}return Xa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const vEe=Xa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),yEe=[m4,ty.low(fEe),vEe];class Wce{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gf(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),E=o.text.slice(f-o.from,this.pos-o.from),d=E.search(Pxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:E.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function wme(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function bEe(t){let e=Object.create(null),o=Object.create(null);for(let{label:E}of t){e[E[0]]=!0;for(let d=1;dtypeof E=="string"?{label:E}:E),[o,f]=e.every(E=>/^\w+$/.test(E.label))?[/\w*$/,/\w+$/]:bEe(e);return E=>{let d=E.matchBefore(f);return d||E.explicit?{from:d?d.from:E.pos,options:e,validFor:o}:null}}function Yce(t,e){return o=>{for(let f=Gf(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Ome{constructor(e,o,f,E){this.completion=e,this.source=o,this.match=f,this.score=E}}function g4(t){return t.selection.main.from}function Pxe(t,e){var o;let{source:f}=t,E=e&&f[0]!="^",d=f[f.length-1]!="$";return!E&&!d?t:new RegExp(`${E?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const Rxe=NO.define();function xEe(t,e,o,f){let{main:E}=t.selection,d=o-E.from,s=f-E.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=E&&o!=f&&t.sliceDoc(n.from+d,n.from+s)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==E.from?n.to:n.from+s,insert:e},range:hi.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Sme=new WeakMap;function _Ee(t){if(!Array.isArray(t))return t;let e=Sme.get(t);return e||Sme.set(t,e=nq(t)),e}const Xce=Ql.define(),NI=Ql.define();class wEe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&O<=57||O>=97&&O<=122?2:O>=65&&O<=90?1:0:(C=bce(O))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!p||x==1&&c||_==0&&x!=0)&&(o[S]==O||f[S]==O&&(w=!0)?s[S++]=p:s.length&&(h=!1)),_=x,p+=Gy(O)}return S==u&&s[0]==0&&h?this.result(-100+(w?-200:0),s,e):y==u&&m==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==u?this.ret(-200+-700-e.length,[m,a]):S==u?this.result(-100+(w?-200:0)+-700+(h?0:-1100),s,e):o.length==2?!1:this.result((E[0]?-700:0)+-200+-1100,E,e)}result(e,o,f){let E=[],d=0;for(let s of o){let n=s+(this.astral?Gy(ag(f,s)):1);d&&E[d-1]==s?E[d-1]=n:(E[d++]=s,E[d++]=n)}return this.ret(e-f.length,E)}}const Kg=ls.define({combine(t){return E_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:OEe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>kme(e(f),o(f)),optionClass:(e,o)=>f=>kme(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function kme(t,e){return t?e?t+" "+e:t:e}function OEe(t,e,o,f,E,d){let s=t.textDirection==Bh.RTL,n=s,u=!1,b="top",i,S,w=e.left-E.left,y=E.right-e.right,m=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||p>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let c=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/c}px; max-width: ${S/h}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":n?"left":"right")}}function SEe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(E=>"cm-completionIcon-"+E)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,E,d){let s=document.createElement("span");s.className="cm-completionLabel";let n=o.displayLabel||o.label,u=0;for(let b=0;bu&&s.appendChild(document.createTextNode(n.slice(u,i)));let w=s.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,S))),w.className="cm-completionMatchedText",u=S}return uo.position-f.position).map(o=>o.render)}function qie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let E=Math.floor(e/o);return{from:E*o,to:(E+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class kEe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:u=>this.placeInfo(u),key:this},this.space=null,this.currentClass="";let E=e.state.field(o),{options:d,selected:s}=E.open,n=e.state.facet(Kg);this.optionContent=SEe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=qie(d.length,s,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",u=>{let{options:b}=e.state.field(o).open;for(let i=u.target,S;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(S=/-(\d+)$/.exec(i.id))&&+S[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Kg).closeOnBlur&&u.relatedTarget!=e.contentDOM&&e.dispatch({effects:NI.of(null)})}),this.showOptions(d,E.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),E=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=E){let{options:d,selected:s,disabled:n}=f.open;(!E.open||E.open.options!=d)&&(this.range=qie(d.length,s,e.state.facet(Kg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=E.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=qie(o.options.length,o.selected,this.view.state.facet(Kg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:E}=f;if(!E)return;let d=typeof E=="string"?document.createTextNode(E):E(f);if(!d)return;"then"in d?d.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,f)}).catch(s=>rb(this.view.state,s,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:E,destroy:d}=e;f.appendChild(E),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,E=this.range.from;f;f=f.nextSibling,E++)f.nodeName!="LI"||!f.id?E--:E==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&CEe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),E=e.getBoundingClientRect(),d=this.space;if(!d){let s=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return E.top>Math.min(d.bottom,o.bottom)-10||E.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)E.appendChild(b.header(b));else{let y=E.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=E.appendChild(document.createElement("li"));i.id=o+"-"+s,i.setAttribute("role","option");let S=this.optionClass(n);S&&(i.className=S);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,u);y&&i.appendChild(y)}}return f.from&&E.classList.add("cm-completionListIncompleteTop"),f.tonew kEe(o,t,e)}function CEe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),E=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/E)}function Tme(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function AEe(t,e){let o=[],f=null,E=u=>{o.push(u);let{section:b}=u.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(S=>S.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let u of t)if(u.hasResult()){let b=u.result.getMatch;if(u.result.filter===!1)for(let i of u.result.options)E(new Ome(i,u.source,b?b(i):[],1e9-o.length));else{let i=new wEe(e.sliceDoc(u.from,u.to));for(let S of u.result.options)if(i.match(S.label)){let w=S.displayLabel?b?b(S,i.matched):[]:i.matched;E(new Ome(S,u.source,w,i.score+(S.boost||0)))}}}if(f){let u=Object.create(null),b=0,i=(S,w)=>{var y,m;return((y=S.rank)!==null&&y!==void 0?y:1e9)-((m=w.rank)!==null&&m!==void 0?m:1e9)||(S.namei.score-b.score||n(b.completion,i.completion))){let b=u.completion;!s||s.label!=b.label||s.detail!=b.detail||s.type!=null&&b.type!=null&&s.type!=b.type||s.apply!=b.apply||s.boost!=b.boost?d.push(u):Tme(u.completion)>Tme(s)&&(d[d.length-1]=u),s=u.completion}return d}class $8{constructor(e,o,f,E,d,s){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=E,this.selected=d,this.disabled=s}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new $8(this.options,Cme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,E,d){let s=AEe(e,o);if(!s.length)return E&&e.some(u=>u.state==1)?new $8(E.options,E.attrs,E.tooltip,E.timestamp,E.selected,!0):null;let n=o.facet(Kg).selectOnOpen?0:-1;if(E&&E.selected!=n&&E.selected!=-1){let u=E.options[E.selected].completion;for(let b=0;bb.hasResult()?Math.min(u,b.from):u,1e8),create:LEe,above:d.aboveCursor},E?E.timestamp:Date.now(),n,!1)}map(e){return new $8(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class tZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new tZ(PEe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Kg),d=(f.override||o.languageDataAt("autocomplete",g4(o)).map(_Ee)).map(n=>(this.active.find(b=>b.source==n)||new B1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,u)=>n==this.active[u])&&(d=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!MEe(d,this.active)?s=$8.build(d,o,this.id,s,f):s&&s.disabled&&!d.some(n=>n.state==1)&&(s=null),!s&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new B1(n.source,0):n));for(let n of e.effects)n.is(Ixe)&&(s=s&&s.setSelected(n.value,this.id));return d==this.active&&s==this.open?this:new tZ(d,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:EEe}}function MEe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const PEe=[];function Hse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class B1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Hse(e),E=this;f?E=E.handleUserEvent(e,f,o):e.docChanged?E=E.handleChange(e):e.selection&&E.state!=0&&(E=new B1(E.source,0));for(let d of e.effects)if(d.is(Xce))E=new B1(E.source,1,d.value?g4(e.state):-1);else if(d.is(NI))E=new B1(E.source,0);else if(d.is(Lxe))for(let s of d.value)s.source==E.source&&(E=s);return E}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new B1(this.source,1)}handleChange(e){return e.changes.touchesRange(g4(e.startState))?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new B1(this.source,this.state,e.mapPos(this.explicitPos))}}class K8 extends B1{constructor(e,o,f,E,d){super(e,2,o),this.result=f,this.from=E,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var E;let d=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),n=g4(e.state);if((this.explicitPos<0?n<=d:ns||o=="delete"&&g4(e.startState)==this.from)return new B1(this.source,o=="input"&&f.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return REe(this.result.validFor,e.state,d,s)?new K8(this.source,u,this.result,d,s):this.result.update&&(b=this.result.update(this.result,d,s,new Wce(e.state,n,u>=0)))?new K8(this.source,u,b,b.from,(E=b.to)!==null&&E!==void 0?E:g4(e.state)):new B1(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new K8(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function REe(t,e,o,f){if(!t)return!1;let E=e.sliceDoc(o,f);return typeof t=="function"?t(E,o,f,e):Pxe(t,!0).test(E)}const Lxe=Ql.define({map(t,e){return t.map(o=>o.map(e))}}),Ixe=Ql.define(),Wv=tm.define({create(){return tZ.start()},update(t,e){return t.update(e)},provide:t=>[Mce.from(t,e=>e.tooltip),Xa.contentAttributes.from(t,e=>e.attrs)]});function Dxe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Wv).active.find(E=>E.source==e.source);return f instanceof K8?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},xEe(t.state,o,f.from,f.to)),{annotations:Rxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const LEe=TEe(Wv,Dxe);function FQ(t,e="option"){return o=>{let f=o.state.field(Wv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+E*(t?1:-1):t?0:s-1;return n<0?n=e=="page"?0:s-1:n>=s&&(n=e=="page"?s-1:0),o.dispatch({effects:Ixe.of(n)}),!0}}const IEe=t=>{let e=t.state.field(Wv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Wv,!1)?(t.dispatch({effects:Xce.of(!0)}),!0):!1,BEe=t=>{let e=t.state.field(Wv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:NI.of(null)}),!0)};class zEe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const NEe=50,FEe=1e3,$Ee=zh.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Wv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Wv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Hse(f));for(let f=0;fNEe&&Date.now()-E.time>FEe){for(let d of E.context.abortListeners)try{d()}catch(s){rb(this.view.state,s)}E.context.abortListeners=null,this.running.splice(f--,1)}else E.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(E=>E.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Hse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Wv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=g4(e),f=new Wce(e,o,t.explicitPos==o),E=new zEe(t,f);this.running.push(E),Promise.resolve(t.source(f)).then(d=>{E.context.aborted||(E.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:NI.of(null)}),rb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Kg);for(let f=0;fs.source==E.active.source);if(d&&d.state==1)if(E.done==null){let s=new B1(E.active.source,0);for(let n of E.updates)s=s.update(n,o);s.state!=1&&e.push(s)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:Lxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Wv,!1);if(e&&e.tooltip&&this.view.state.facet(Kg).closeOnBlur){let o=e.open&&mbe(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:NI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Xce.of(!1)}),20),this.composing=0}}}),Bxe=Xa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class VEe{constructor(e,o,f,E){this.field=e,this.line=o,this.from=f,this.to=E}}class Gce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,lg.TrackDel),f=e.mapPos(this.to,1,lg.TrackDel);return o==null||f==null?null:new Gce(this.field,o,f)}}class Kce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],E=[o],d=e.doc.lineAt(o),s=/^\s*/.exec(d.text)[0];for(let u of this.lines){if(f.length){let b=s,i=/^\t*/.exec(u)[0].length;for(let S=0;Snew Gce(u.field,E[u.line]+u.from,E[u.line]+u.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],E=[],d;for(let s of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let n=d[1]?+d[1]:null,u=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&S.field++}E.push(new VEe(b,f.length,d.index,d.index+u.length)),s=s.slice(0,d.index)+u+s.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(s);){s=s.slice(0,n.index)+n[1]+s.slice(n.index+n[0].length);for(let u of E)u.line==f.length&&u.from>n.index&&(u.from--,u.to--)}f.push(s)}return new Kce(f,E)}}let UEe=Ns.widget({widget:new class extends Ex{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),jEe=Ns.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=Ns.set(e.map(f=>(f.from==f.to?UEe:jEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let E=f.map(e);if(!E)return null;o.push(E)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const vD=Ql.define({map(t,e){return t&&t.map(e)}}),QEe=Ql.define(),FI=tm.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(vD))return o.value;if(o.is(QEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Xa.decorations.from(t,e=>e?e.deco:Ns.none)});function Jce(t,e){return hi.create(t.filter(o=>o.field==e).map(o=>hi.range(o.from,o.to)))}function HEe(t){let e=Kce.parse(t);return(o,f,E,d)=>{let{text:s,ranges:n}=e.instantiate(o.state,E),u={changes:{from:E,to:d,insert:Qu.of(s)},scrollIntoView:!0,annotations:f?Rxe.of(f):void 0};if(n.length&&(u.selection=Jce(n,0)),n.length>1){let b=new EM(n,0),i=u.effects=[vD.of(b)];o.state.field(FI,!1)===void 0&&i.push(Ql.appendConfig.of([FI,XEe,GEe,Bxe]))}o.dispatch(o.state.update(u))}}function zxe(t){return({state:e,dispatch:o})=>{let f=e.field(FI,!1);if(!f||t<0&&f.active==0)return!1;let E=f.active+t,d=t>0&&!f.ranges.some(s=>s.field==E+t);return o(e.update({selection:Jce(f.ranges,E),effects:vD.of(d?null:new EM(f.ranges,E)),scrollIntoView:!0})),!0}}const ZEe=({state:t,dispatch:e})=>t.field(FI,!1)?(e(t.update({effects:vD.of(null)})),!0):!1,qEe=zxe(1),WEe=zxe(-1),YEe=[{key:"Tab",run:qEe,shift:WEe},{key:"Escape",run:ZEe}],Ame=ls.define({combine(t){return t.length?t[0]:YEe}}),XEe=ty.highest(FO.compute([Ame],t=>t.facet(Ame)));function Dh(t,e){return Object.assign(Object.assign({},e),{apply:HEe(t)})}const GEe=Xa.domEventHandlers({mousedown(t,e){let o=e.state.field(FI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let E=o.ranges.find(d=>d.from<=f&&d.to>=f);return!E||E.field==o.active?!1:(e.dispatch({selection:Jce(o.ranges,E.field),effects:vD.of(o.ranges.some(d=>d.field>E.field)?new EM(o.ranges,E.field):null),scrollIntoView:!0}),!0)}}),$I={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},FT=Ql.define({map(t,e){let o=e.mapPos(t,-1,lg.TrackAfter);return o??void 0}}),eue=new class extends ZT{};eue.startSide=1;eue.endSide=-1;const Nxe=tm.define({create(){return Df.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(FT)&&(t=t.update({add:[eue.range(o.value,o.value+1)]}));return t}});function KEe(){return[ePe,Nxe]}const Wie="()[]{}<>";function Fxe(t){for(let e=0;e{if((JEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let E=t.state.selection.main;if(f.length>2||f.length==2&&Gy(ag(f,0))==1||e!=E.from||o!=E.to)return!1;let d=rPe(t.state,f);return d?(t.dispatch(d),!0):!1}),tPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=$xe(t,t.selection.main.head).brackets||$I.brackets,E=null,d=t.changeByRange(s=>{if(s.empty){let n=oPe(t.doc,s.head);for(let u of f)if(u==n&&rq(t.doc,s.head)==Fxe(ag(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:hi.cursor(s.head-u.length)}}return{range:E=s}});return E||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!E},nPe=[{key:"Backspace",run:tPe}];function rPe(t,e){let o=$xe(t,t.selection.main.head),f=o.brackets||$I.brackets;for(let E of f){let d=Fxe(ag(E,0));if(e==E)return d==E?sPe(t,E,f.indexOf(E+E+E)>-1,o):iPe(t,E,d,o.before||$I.before);if(e==d&&Vxe(t,t.selection.main.from))return aPe(t,E,d)}return null}function Vxe(t,e){let o=!1;return t.field(Nxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function rq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Gy(ag(o,0)))}function oPe(t,e){let o=t.sliceString(e-2,e);return Gy(ag(o,0))==o.length?o:o.slice(1)}function iPe(t,e,o,f){let E=null,d=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:o,from:s.to}],effects:FT.of(s.to+e.length),range:hi.range(s.anchor+e.length,s.head+e.length)};let n=rq(t.doc,s.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:s.head},effects:FT.of(s.head+e.length),range:hi.cursor(s.head+e.length)}:{range:E=s}});return E?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function aPe(t,e,o){let f=null,E=t.changeByRange(d=>d.empty&&rq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:hi.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(E,{scrollIntoView:!0,userEvent:"input.type"})}function sPe(t,e,o,f){let E=f.stringPrefixes||$I.stringPrefixes,d=null,s=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:FT.of(n.to+e.length),range:hi.range(n.anchor+e.length,n.head+e.length)};let u=n.head,b=rq(t.doc,u),i;if(b==e){if(Mme(t,u))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(Vxe(t,u)){let w=o&&t.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+w.length,insert:w},range:hi.cursor(u+w.length)}}}else{if(o&&t.sliceDoc(u-2*e.length,u)==e+e&&(i=Eme(t,u-2*e.length,E))>-1&&Mme(t,i))return{changes:{insert:e+e+e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(t.charCategorizer(u)(b)!=yh.Word&&Eme(t,u,E)>-1&&!lPe(t,u,e,E))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)}}return{range:d=n}});return d?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Mme(t,e){let o=Gf(t).resolveInner(e+1);return o.parent&&o.from==e}function lPe(t,e,o,f){let E=Gf(t).resolveInner(e,-1),d=f.reduce((s,n)=>Math.max(s,n.length),0);for(let s=0;s<5;s++){let n=t.sliceDoc(E.from,Math.min(E.to,E.from+o.length+d)),u=n.indexOf(o);if(!u||u>-1&&f.indexOf(n.slice(0,u))>-1){let i=E.firstChild;for(;i&&i.from==E.from&&i.to-i.from>o.length+u;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=E.to==e&&E.parent;if(!b)break;E=b}return!1}function Eme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=yh.Word)return e;for(let E of o){let d=e-E.length;if(t.sliceDoc(d,e)==E&&f(t.sliceDoc(d-1,d))!=yh.Word)return d}return-1}function dM(t={}){return[Wv,Kg.of(t),$Ee,cPe,Bxe]}const Uxe=[{key:"Ctrl-Space",run:DEe},{key:"Escape",run:BEe},{key:"ArrowDown",run:FQ(!0)},{key:"ArrowUp",run:FQ(!1)},{key:"PageDown",run:FQ(!0,"page")},{key:"PageUp",run:FQ(!1,"page")},{key:"Enter",run:IEe}],cPe=ty.highest(FO.computeN([Kg],t=>t.facet(Kg).defaultKeymap?[Uxe]:[]));class uPe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class LT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let E=e,d=f.facet(Hxe).markerFilter;d&&(E=d(E));let s=Ns.set(E.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?Ns.widget({widget:new bPe(n),diagnostic:n}).range(n.from):Ns.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new LT(s,o,hM(s))}}function hM(t,e=null,o=0){let f=null;return t.between(o,1e9,(E,d,{spec:s})=>{if(!(e&&s.diagnostic!=e))return f=new uPe(E,d,s.diagnostic),!1}),f}function fPe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(jxe))||t.changes.touchesRange(o.from,o.to))}function dPe(t,e){return t.field(Kv,!1)?e:e.concat(Ql.appendConfig.of(wPe))}const jxe=Ql.define(),tue=Ql.define(),Qxe=Ql.define(),Kv=tm.define({create(){return new LT(Ns.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let E=e.changes.mapPos(t.selected.from,1);f=hM(o,t.selected.diagnostic,E)||hM(o,null,E)}t=new LT(o,t.panel,f)}for(let o of e.effects)o.is(jxe)?t=LT.init(o.value,t.panel,e.state):o.is(tue)?t=new LT(t.diagnostics,o.value?oq.open:null,t.selected):o.is(Qxe)&&(t=new LT(t.diagnostics,t.panel,o.value));return t},provide:t=>[RI.from(t,e=>e.panel),Xa.decorations.from(t,e=>e.diagnostics)]}),hPe=Ns.mark({class:"cm-lintRange cm-lintRange-active"});function pPe(t,e,o){let{diagnostics:f}=t.state.field(Kv),E=[],d=2e8,s=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(u,b,{spec:i})=>{e>=u&&e<=b&&(u==b||(e>u||o>0)&&(eqxe(t,o,!1)))}const gPe=t=>{let e=t.state.field(Kv,!1);(!e||!e.panel)&&t.dispatch({effects:dPe(t.state,[tue.of(!0)])});let o=PI(t,oq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},Pme=t=>{let e=t.state.field(Kv,!1);return!e||!e.panel?!1:(t.dispatch({effects:tue.of(!1)}),!0)},vPe=t=>{let e=t.state.field(Kv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},yPe=[{key:"Mod-Shift-m",run:gPe,preventDefault:!0},{key:"F8",run:vPe}],Hxe=ls.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},E_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function Zxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==E.toLowerCase())){e.push(E);continue e}}e.push("")}return e}function qxe(t,e,o){var f;let E=o?Zxe(e.actions):[];return zd("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},zd("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,s)=>{let n=!1,u=w=>{if(w.preventDefault(),n)return;n=!0;let y=hM(t.state.field(Kv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=E[s]?b.indexOf(E[s]):-1,S=i<0?b:[b.slice(0,i),zd("u",b.slice(i,i+1)),b.slice(i+1)];return zd("button",{type:"button",class:"cm-diagnosticAction",onclick:u,onmousedown:u,"aria-label":` Action: ${b}${i<0?"":` (access key "${E[s]})"`}.`},S)}),e.source&&zd("div",{class:"cm-diagnosticSource"},e.source))}class bPe extends Ex{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return zd("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Rme{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=qxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class oq{constructor(e){this.view=e,this.items=[];let o=E=>{if(E.keyCode==27)Pme(this.view),this.view.focus();else if(E.keyCode==38||E.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(E.keyCode==40||E.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(E.keyCode==36)this.moveSelection(0);else if(E.keyCode==35)this.moveSelection(this.items.length-1);else if(E.keyCode==13)this.view.focus();else if(E.keyCode>=65&&E.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],s=Zxe(d.actions);for(let n=0;n{for(let d=0;dPme(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Kv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let S=f;Sf&&(this.items.splice(f,b-f),E=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:n})=>{let u=n.height/this.list.offsetHeight;s.topn.bottom&&(this.list.scrollTop+=(s.bottom-n.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),E&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Kv),f=hM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:Qxe.of(f)})}static open(e){return new oq(e)}}function xPe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function $Q(t){return xPe(``,'width="6" height="3"')}const _Pe=Xa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:$Q("#d11")},".cm-lintRange-warning":{backgroundImage:$Q("orange")},".cm-lintRange-info":{backgroundImage:$Q("#999")},".cm-lintRange-hint":{backgroundImage:$Q("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),wPe=[Kv,Xa.decorations.compute([Kv],t=>{let{selected:e,panel:o}=t.field(Kv);return!e||!o||e.from==e.to?Ns.none:Ns.set([hPe.range(e.from,e.to)])}),mAe(pPe,{hideOn:fPe}),_Pe],OPe=(()=>[SAe(),CAe(),Q6e(),Q8e(),y8e(),L6e(),N6e(),kc.allowMultipleSelections.of(!0),a8e(),zbe(w8e,{fallback:!0}),M8e(),KEe(),dM(),oAe(),sAe(),X6e(),XMe(),FO.of([...nPe,...QMe,...mEe,...J8e,...p8e,...Uxe,...yPe])])();/*! +`){let E="";for(let d=0,s=0;de&&d&&(E+=f),es&&(E+=n.sliceString(e-s,o-s,f)),s=u+1}return E}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof v_))return 0;let f=0,[E,d,s,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;E+=o,d+=o){if(E==s||d==n)return f;let u=this.children[E],b=e.children[d];if(u!=b)return f+u.scanIdentical(b,o);f+=u.length+1}}static from(e,o=e.reduce((f,E)=>f+E.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let m of e)m.flatten(y);return new hp(y,o)}let E=Math.max(32,f>>5),d=E<<1,s=E>>1,n=[],u=0,b=-1,i=[];function S(y){let m;if(y.lines>d&&y instanceof v_)for(let a of y.children)S(a);else y.lines>s&&(u>s||!u)?(w(),n.push(y)):y instanceof hp&&u&&(m=i[i.length-1])instanceof hp&&y.lines+m.lines<=32?(u+=y.lines,b+=y.length+1,i[i.length-1]=new hp(m.text.concat(y.text),m.length+1+y.length)):(u+y.lines>E&&w(),u+=y.lines,b+=y.length+1,i.push(y))}function w(){u!=0&&(n.push(i.length==1?i[0]:v_.from(i,b)),b=-1,u=i.length=0)}for(let y of e)S(y);return w(),n.length==1?n[0]:new v_(n,o)}}Qu.empty=new hp([""],0);function BTe(t){let e=-1;for(let o of t)e+=o.length+1;return e}function sH(t,e,o=0,f=1e9){for(let E=0,d=0,s=!0;d=o&&(u>f&&(n=n.slice(0,f-E)),E0?1:(e instanceof hp?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,E=this.nodes[f],d=this.offsets[f],s=d>>1,n=E instanceof hp?E.text.length:E.children.length;if(s==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(E instanceof hp){let u=E.text[s+(o<0?-1:0)];if(this.offsets[f]+=o,u.length>Math.max(0,e))return this.value=e==0?u:o>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=E.children[s+(o<0?-1:0)];e>u.length?(e-=u.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(u),this.offsets.push(o>0?1:(u instanceof hp?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Jve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new oI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:E}=this.cursor.next(e);return this.pos+=(E.length+e)*o,this.value=E.length<=f?E:o<0?E.slice(E.length-f):E.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class eye{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:E}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=E,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Qu.prototype[Symbol.iterator]=function(){return this.iter()},oI.prototype[Symbol.iterator]=Jve.prototype[Symbol.iterator]=eye.prototype[Symbol.iterator]=function(){return this});let zTe=class{constructor(e,o,f,E){this.from=e,this.to=o,this.number=f,this.text=E}get length(){return this.to-this.from}},W8="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return W8[e-1]<=t;return!1}function Whe(t){return t>=127462&&t<=127487}const Yhe=8205;function cg(t,e,o=!0,f=!0){return(o?tye:FTe)(t,e,f)}function tye(t,e,o){if(e==t.length)return e;e&&nye(t.charCodeAt(e))&&rye(t.charCodeAt(e-1))&&e--;let f=ag(t,e);for(e+=Ky(f);e=0&&Whe(ag(t,s));)d++,s-=2;if(d%2==0)break;e+=2}else break}return e}function FTe(t,e,o){for(;e>0;){let f=tye(t,e-2,o);if(f=56320&&t<57344}function rye(t){return t>=55296&&t<56320}function ag(t,e){let o=t.charCodeAt(e);if(!rye(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return nye(f)?(o-55296<<10)+(f-56320)+65536:o}function xce(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Ky(t){return t<65536?1:2}const Kae=/\r\n?|\n/;var lg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(lg||(lg={}));class k_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-E);d+=n}else{if(f!=lg.Simple&&b>=e&&(f==lg.TrackDel&&Ee||f==lg.TrackBefore&&Ee))return null;if(b>e||b==e&&o<0&&!n)return e==E||o<0?d:d+u;d+=u}E=b}if(e>E)throw new RangeError(`Position ${e} is out of range for changeset of length ${E}`);return d}touchesRange(e,o=e){for(let f=0,E=0;f=0&&E<=o&&n>=e)return Eo?"cover":!0;E=n}return!1}toString(){let e="";for(let o=0;o=0?":"+E:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k_(e)}static create(e){return new k_(e)}}class Wp extends k_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Jae(this,(o,f,E,d,s)=>e=e.replace(E,E+(f-o),s),!1),e}mapDesc(e,o=!1){return ese(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let E=0,d=0;E=0){o[E]=n,o[E+1]=s;let u=E>>1;for(;f.length0&&s4(f,o,d.text),d.forward(i),n+=i}let b=e[s++];for(;n>1].toJSON()))}return e}static of(e,o,f){let E=[],d=[],s=0,n=null;function u(i=!1){if(!i&&!E.length)return;sw||S<0||w>o)throw new RangeError(`Invalid change range ${S} to ${w} (in doc of length ${o})`);let m=y?typeof y=="string"?Qu.of(y.split(f||Kae)):y:Qu.empty,a=m.length;if(S==w&&a==0)return;Ss&&Yg(E,S-s,-1),Yg(E,w-S,a),s4(d,E,m),s=w}}return b(e),u(!n),n}static empty(e){return new Wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let E=0;En&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[E+1]?t[E]+=e:e==0&&t[E]==0?t[E+1]+=o:f?(t[E]+=e,t[E+1]+=o):t.push(e,o)}function s4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||s==t.sections.length||t.sections[s+1]<0);)n=t.sections[s++],u=t.sections[s++];e(E,b,d,i,S),E=b,d=i}}}function ese(t,e,o,f=!1){let E=[],d=f?[]:null,s=new SI(t),n=new SI(e);for(let u=-1;;)if(s.ins==-1&&n.ins==-1){let b=Math.min(s.len,n.len);Yg(E,b,-1),s.forward(b),n.forward(b)}else if(n.ins>=0&&(s.ins<0||u==s.i||s.off==0&&(n.len=0&&u=0){let b=0,i=s.len;for(;i;)if(n.ins==-1){let S=Math.min(i,n.len);b+=S,i-=S,n.forward(S)}else if(n.ins==0&&n.lenu||s.ins>=0&&s.len>u)&&(n||f.length>b),d.forward2(u),s.forward(u)}}}}class SI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?Qu.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?Qu.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class zT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,E;return this.empty?f=E=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),E=e.mapPos(this.to,-1)),f==this.from&&E==this.to?this:new zT(f,E,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return hi.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return hi.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return hi.range(e.anchor,e.head)}static create(e,o,f){return new zT(e,o,f)}}class hi{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:hi.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new hi(e.ranges.map(o=>zT.fromJSON(o)),e.main)}static single(e,o=e){return new hi([hi.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,E=0;Ee?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((E,d)=>E.from-d.from),o=e.indexOf(f);for(let E=1;Ed.head?hi.range(u,n):hi.range(n,u))}}return new hi(e,o)}}function iye(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let _ce=0;class ls{constructor(e,o,f,E,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=E,this.id=_ce++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new ls(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:wce),!!e.static,e.enables)}of(e){return new lH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new lH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new lH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function wce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class lH{constructor(e,o,f,E){this.dependencies=e,this.facet=o,this.type=f,this.value=E,this.id=_ce++}dynamicSlot(e){var o;let f=this.value,E=this.facet.compareInput,d=this.id,s=e[d]>>1,n=this.type==2,u=!1,b=!1,i=[];for(let S of this.dependencies)S=="doc"?u=!0:S=="selection"?b=!0:((o=e[S.id])!==null&&o!==void 0?o:1)&1||i.push(e[S.id]);return{create(S){return S.values[s]=f(S),1},update(S,w){if(u&&w.docChanged||b&&(w.docChanged||w.selection)||tse(S,i)){let y=f(S);if(n?!Xhe(y,S.values[s],E):!E(y,S.values[s]))return S.values[s]=y,1}return 0},reconfigure:(S,w)=>{let y,m=w.config.address[d];if(m!=null){let a=BH(w,m);if(this.dependencies.every(c=>c instanceof ls?w.facet(c)===S.facet(c):c instanceof tm?w.field(c,!1)==S.field(c,!1):!0)||(n?Xhe(y=f(S),a,E):E(y=f(S),a)))return S.values[s]=a,0}else y=f(S);return S.values[s]=y,1}}}}function Xhe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[u.id]),E=o.map(u=>u.type),d=f.filter(u=>!(u&1)),s=t[e.id]>>1;function n(u){let b=[];for(let i=0;if===E),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Ghe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,E)=>{let d=f.values[o],s=this.updateF(d,E);return this.compareF(d,s)?0:(f.values[o]=s,1)},reconfigure:(f,E)=>E.config.address[this.id]!=null?(f.values[o]=E.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Ghe.of({field:this,create:e})]}get extension(){return this}}const RT={lowest:4,low:3,default:2,high:1,highest:0};function EL(t){return e=>new aye(e,t)}const ny={highest:EL(RT.highest),high:EL(RT.high),default:EL(RT.default),low:EL(RT.low),lowest:EL(RT.lowest)};class aye{constructor(e,o){this.inner=e,this.prec=o}}class cD{of(e){return new nse(this,e)}reconfigure(e){return cD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class nse{constructor(e,o){this.compartment=e,this.inner=o}}class DH{constructor(e,o,f,E,d,s){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=E,this.staticValues=d,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let E=[],d=Object.create(null),s=new Map;for(let w of VTe(e,o,s))w instanceof tm?E.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),u=[],b=[];for(let w of E)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],m=y[0].facet,a=i&&i[w]||[];if(y.every(c=>c.type==0))if(n[m.id]=u.length<<1|1,wce(a,y))u.push(f.facet(m));else{let c=m.combine(y.map(h=>h.value));u.push(f&&m.compare(c,f.facet(m))?f.facet(m):c)}else{for(let c of y)c.type==0?(n[c.id]=u.length<<1|1,u.push(c.value)):(n[c.id]=b.length<<1,b.push(h=>c.dynamicSlot(h)));n[m.id]=b.length<<1,b.push(c=>$Te(c,m,y))}}let S=b.map(w=>w(n));return new DH(e,s,S,n,u,d)}}function VTe(t,e,o){let f=[[],[],[],[],[]],E=new Map;function d(s,n){let u=E.get(s);if(u!=null){if(u<=n)return;let b=f[u].indexOf(s);b>-1&&f[u].splice(b,1),s instanceof nse&&o.delete(s.compartment)}if(E.set(s,n),Array.isArray(s))for(let b of s)d(b,n);else if(s instanceof nse){if(o.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(s.compartment)||s.inner;o.set(s.compartment,b),d(b,n)}else if(s instanceof aye)d(s.inner,s.prec);else if(s instanceof tm)f[n].push(s),s.provides&&d(s.provides,n);else if(s instanceof lH)f[n].push(s),s.facet.extensions&&d(s.facet.extensions,RT.default);else{let b=s.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,RT.default),f.reduce((s,n)=>s.concat(n))}function iI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let E=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|E}function BH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const sye=ls.define(),rse=ls.define({combine:t=>t.some(e=>e),static:!0}),lye=ls.define({combine:t=>t.length?t[0]:void 0,static:!0}),cye=ls.define(),uye=ls.define(),fye=ls.define(),dye=ls.define({combine:t=>t.length?t[0]:!1});class NO{constructor(e,o){this.type=e,this.value=o}static define(){return new UTe}}class UTe{of(e){return new NO(this,e)}}class jTe{constructor(e){this.map=e}of(e){return new Ql(this,e)}}class Ql{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new Ql(this.type,o)}is(e){return this.type==e}static define(e={}){return new jTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let E of e){let d=E.map(o);d&&f.push(d)}return f}}Ql.reconfigure=Ql.define();Ql.appendConfig=Ql.define();class Xp{constructor(e,o,f,E,d,s){this.startState=e,this.changes=o,this.selection=f,this.effects=E,this.annotations=d,this.scrollIntoView=s,this._doc=null,this._state=null,f&&iye(f,o.newLength),d.some(n=>n.type==Xp.time)||(this.annotations=d.concat(Xp.time.of(Date.now())))}static create(e,o,f,E,d,s){return new Xp(e,o,f,E,d,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Xp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Xp.time=NO.define();Xp.userEvent=NO.define();Xp.addToHistory=NO.define();Xp.remote=NO.define();function QTe(t,e){let o=[];for(let f=0,E=0;;){let d,s;if(f=t[f]))d=t[f++],s=t[f++];else if(E=0;E--){let d=f[E](t);d instanceof Xp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Xp?t=d[0]:t=pye(e,Y8(d),!1)}return t}function ZTe(t){let e=t.startState,o=e.facet(fye),f=t;for(let E=o.length-1;E>=0;E--){let d=o[E](t);d&&Object.keys(d).length&&(f=hye(f,ose(e,d,t.changes.newLength),!0))}return f==t?t:Xp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const qTe=[];function Y8(t){return t==null?qTe:Array.isArray(t)?t:[t]}var yh=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(yh||(yh={}));const WTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ise;try{ise=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function YTe(t){if(ise)return ise.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||WTe.test(o)))return!0}return!1}function XTe(t){return e=>{if(!/\S/.test(e))return yh.Space;if(YTe(e))return yh.Word;for(let o=0;o-1)return yh.Word;return yh.Other}}class kc{constructor(e,o,f,E,d,s){this.config=e,this.doc=o,this.selection=f,this.values=E,this.status=e.statusTemplate.slice(),this.computeSlot=d,s&&(s._state=this);for(let n=0;nE.set(b,u)),o=null),E.set(n.value.compartment,n.value.extension)):n.is(Ql.reconfigure)?(o=null,f=n.value):n.is(Ql.appendConfig)&&(o=null,f=Y8(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=DH.resolve(f,E,this),d=new kc(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(u,b)=>b.reconfigure(u,this),null).values);let s=e.startState.facet(rse)?e.newSelection:e.newSelection.asSingle();new kc(o,e.newDoc,s,d,(n,u)=>u.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:hi.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),E=this.changes(f.changes),d=[f.range],s=Y8(f.effects);for(let n=1;ns.spec.fromJSON(n,u)))}}return kc.create({doc:e.doc,selection:hi.fromJSON(e.selection),extensions:o.extensions?E.concat([o.extensions]):E})}static create(e={}){let o=DH.resolve(e.extensions||[],new Map),f=e.doc instanceof Qu?e.doc:Qu.of((e.doc||"").split(o.staticFacet(kc.lineSeparator)||Kae)),E=e.selection?e.selection instanceof hi?e.selection:hi.single(e.selection.anchor,e.selection.head):hi.single(0);return iye(E,f.length),o.staticFacet(rse)||(E=E.asSingle()),new kc(o,f,E,o.dynamicSlots.map(()=>null),(d,s)=>s.create(d),null)}get tabSize(){return this.facet(kc.tabSize)}get lineBreak(){return this.facet(kc.lineSeparator)||` +`}get readOnly(){return this.facet(dye)}phrase(e,...o){for(let f of this.facet(kc.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,E)=>{if(E=="$")return"$";let d=+(E||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let E=[];for(let d of this.facet(sye))for(let s of d(this,o,f))Object.prototype.hasOwnProperty.call(s,e)&&E.push(s[e]);return E}charCategorizer(e){return XTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:E}=this.doc.lineAt(e),d=this.charCategorizer(e),s=e-f,n=e-f;for(;s>0;){let u=cg(o,s,!1);if(d(o.slice(u,s))!=yh.Word)break;s=u}for(;nt.length?t[0]:4});kc.lineSeparator=lye;kc.readOnly=dye;kc.phrases=ls.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(E=>t[E]==e[E])}});kc.languageData=sye;kc.changeFilter=cye;kc.transactionFilter=uye;kc.transactionExtender=fye;cD.reconfigure=Ql.define();function E_(t,e,o={}){let f={};for(let E of t)for(let d of Object.keys(E)){let s=E[d],n=f[d];if(n===void 0)f[d]=s;else if(!(n===s||s===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,s);else throw new Error("Config merge conflict for field "+d)}for(let E in e)f[E]===void 0&&(f[E]=e[E]);return f}class qT{eq(e){return this==e}range(e,o=e){return ase.create(e,o,this)}}qT.prototype.startSide=qT.prototype.endSide=0;qT.prototype.point=!1;qT.prototype.mapMode=lg.TrackDel;let ase=class mye{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new mye(e,o,f)}};function sse(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Oce{constructor(e,o,f,E){this.from=e,this.to=o,this.value=f,this.maxPoint=E}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,E=0){let d=f?this.to:this.from;for(let s=E,n=d.length;;){if(s==n)return s;let u=s+n>>1,b=d[u]-e||(f?this.value[u].endSide:this.value[u].startSide)-o;if(u==s)return b>=0?s:n;b>=0?n=u:s=u+1}}between(e,o,f,E){for(let d=this.findIndex(o,-1e9,!0),s=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(s<0&&(s=w),b.point&&(n=Math.max(n,y-w)),f.push(b),E.push(w-s),d.push(y-s))}return{mapped:f.length?new Oce(E,d,f,n):null,pos:s}}}class Df{constructor(e,o,f,E){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=E}static create(e,o,f,E){return new Df(e,o,f,E)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:E=0,filterTo:d=this.length}=e,s=e.filter;if(o.length==0&&!s)return this;if(f&&(o=o.slice().sort(sse)),this.isEmpty)return o.length?Df.of(o):this;let n=new gye(this,null,-1).goto(0),u=0,b=[],i=new y4;for(;n.value||u=0){let S=o[u++];i.addInner(S.from,S.to,S.value)||b.push(S)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+s.length&&s.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return kI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return kI.from(e).goto(o)}static compare(e,o,f,E,d=-1){let s=e.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),n=o.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),u=Khe(s,n,f),b=new PL(s,u,d),i=new PL(n,u,d);f.iterGaps((S,w,y)=>Jhe(b,S,i,w,y,E)),f.empty&&f.length==0&&Jhe(b,0,i,0,0,E)}static eq(e,o,f=0,E){E==null&&(E=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),s=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=s.length)return!1;if(!d.length)return!0;let n=Khe(d,s),u=new PL(d,n,0).goto(f),b=new PL(s,n,0).goto(f);for(;;){if(u.to!=b.to||!lse(u.active,b.active)||u.point&&(!b.point||!u.point.eq(b.point)))return!1;if(u.to>E)return!0;u.next(),b.next()}}static spans(e,o,f,E,d=-1){let s=new PL(e,null,d).goto(o),n=o,u=s.openStart;for(;;){let b=Math.min(s.to,f);if(s.point){let i=s.activeForPoint(s.to),S=s.pointFromn&&(E.span(n,b,s.active,u),u=s.openEnd(b));if(s.to>f)return u+(s.point&&s.to>f?1:0);n=s.to,s.next()}}static of(e,o=!1){let f=new y4;for(let E of e instanceof ase?[e]:o?GTe(e):e)f.add(E.from,E.to,E.value);return f.finish()}}Df.empty=new Df([],[],null,-1);function GTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(sse);e=f}return t}Df.empty.nextLayer=Df.empty;class y4{finishChunk(e){this.chunks.push(new Oce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new y4)).add(e,o,f)}addInner(e,o,f){let E=e-this.lastTo||f.startSide-this.last.endSide;if(E<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return E<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Df.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Df.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Khe(t,e,o){let f=new Map;for(let d of t)for(let s=0;s=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&E.push(new gye(s,o,f,d));return E.length==1?E[0]:new kI(E)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)Cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)Cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Cie(this.heap,0)}}}function Cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let E=t[f];if(f+1=0&&(E=t[f+1],f++),o.compare(E)<0)break;t[f]=o,t[e]=E,e=f}}class PL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=kI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){xQ(this.active,e),xQ(this.activeTo,e),xQ(this.activeRank,e),this.minActive=epe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:E,rank:d}=this.cursor;for(;o-1&&(this.activeTo[E]-this.cursor.from||this.active[E].endSide-this.cursor.startSide)<0){if(this.activeTo[E]>e){this.to=this.activeTo[E],this.endSide=this.active[E].endSide;break}this.removeActive(E),f&&xQ(f,E)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[E]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function Jhe(t,e,o,f,E,d){t.goto(e),o.goto(f);let s=f+E,n=f,u=f-e;for(;;){let b=t.to+u-o.to||t.endSide-o.endSide,i=b<0?t.to+u:o.to,S=Math.min(i,s);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&lse(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,S,t.point,o.point):S>n&&!lse(t.active,o.active)&&d.compareRange(n,S,t.active,o.active),i>s)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function lse(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function epe(t,e){let o=-1,f=1e9;for(let E=0;E=e)return E;if(E==t.length)break;d+=t.charCodeAt(E)==9?o-d%o:1,E=cg(t,E)}return f===!0?-1:t.length}const use="ͼ",tpe=typeof Symbol>"u"?"__"+use:Symbol.for(use),fse=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),npe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class b4{constructor(e,o){this.rules=[];let{finish:f}=o||{};function E(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function d(s,n,u,b){let i=[],S=/^@(\w+)\b/.exec(s[0]),w=S&&S[1]=="keyframes";if(S&&n==null)return u.push(s[0]+";");for(let y in n){let m=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>s.map(c=>a.replace(/&/,c))).reduce((a,c)=>a.concat(c)),m,u);else if(m&&typeof m=="object"){if(!S)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(E(y),m,i,w)}else m!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+m+";")}(i.length||w)&&u.push((f&&!S&&!b?s.map(f):s).join(", ")+" {"+i.join(" ")+"}")}for(let s in e)d(E(s),e[s],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=npe[tpe]||1;return npe[tpe]=e+1,use+e.toString(36)}static mount(e,o,f){let E=e[fse],d=f&&f.nonce;E?d&&E.setNonce(d):E=new KTe(e,d),E.mount(Array.isArray(o)?o:[o])}}let rpe=new Map;class KTe{constructor(e,o){let f=e.ownerDocument||e,E=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&E.CSSStyleSheet){let d=rpe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[fse]=d;this.sheet=new E.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],rpe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[fse]=this}mount(e){let o=this.sheet,f=0,E=0;for(let d=0;d-1&&(this.modules.splice(n,1),E--,n=-1),n==-1){if(this.modules.splice(E++,0,s),o)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},JTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),eCe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var sg=0;sg<10;sg++)x4[48+sg]=x4[96+sg]=String(sg);for(var sg=1;sg<=24;sg++)x4[sg+111]="F"+sg;for(var sg=65;sg<=90;sg++)x4[sg]=String.fromCharCode(sg+32),TI[sg]=String.fromCharCode(sg);for(var Aie in x4)TI.hasOwnProperty(Aie)||(TI[Aie]=x4[Aie]);function tCe(t){var e=JTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||eCe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?TI:x4)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function zH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function dse(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function nCe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function cH(t,e){if(!e.anchorNode)return!1;try{return dse(t,e.anchorNode)}catch{return!1}}function cM(t){return t.nodeType==3?WT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function NH(t,e,o,f){return o?ope(t,e,o,f,-1)||ope(t,e,o,f,1):!1}function CI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function ope(t,e,o,f,E){for(;;){if(t==o&&e==f)return!0;if(e==(E<0?0:PO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=CI(t)+(E<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(E<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=E<0?PO(t):0}else return!1}}function PO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function qZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function rCe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function oCe(t,e,o,f,E,d,s,n){let u=t.ownerDocument,b=u.defaultView||window;for(let i=t,S=!1;i&&!S;)if(i.nodeType==1){let w,y=i==u.body,m=1,a=1;if(y)w=rCe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(S=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let p=i.getBoundingClientRect();m=p.width/i.offsetWidth,a=p.height/i.offsetHeight,w={left:p.left,right:p.left+i.clientWidth*m,top:p.top,bottom:p.top+i.clientHeight*a}}let c=0,h=0;if(E=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+s)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+s,o<0&&e.top-h0&&e.right>w.right+c&&(c=e.right-w.right+c+d)):e.right>w.right&&(c=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class aCe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?PO(o):0),f,Math.min(e.focusOffset,f?PO(f):0))}set(e,o,f,E){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=E}}let A8=null;function vye(t){if(t.setActive)return t.setActive();if(A8)return t.focus(A8);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(A8==null?{get preventScroll(){return A8={preventScroll:!0},!0}}:void 0),!A8){A8=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Gg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Gg(e.parentNode,CI(e),o)}static after(e,o){return new Gg(e.parentNode,CI(e)+1,o)}}const Sce=[];class eh{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,E=null,d;for(let s of this.children){if(s.flags&7){if(!s.dom&&(d=E?E.nextSibling:f.firstChild)){let n=eh.get(d);(!n||!n.parent&&n.canReuseDOM(s))&&s.reuseDOM(d)}s.sync(e,o),s.flags&=-8}if(d=E?E.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=s.dom&&(o.written=!0),s.dom.parentNode==f)for(;d&&d!=s.dom;)d=ape(d);else f.insertBefore(s.dom,d);E=s.dom}for(d=E?E.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=ape(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let E=PO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;E==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?E=-1:E=1),e=d}E<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!eh.get(f);)f=f.nextSibling;if(!f)return this.length;for(let E=0,d=0;;E++){let s=this.children[E];if(s.dom==f)return d;d+=s.length+s.breakAfter}}domBoundsAround(e,o,f=0){let E=-1,d=-1,s=-1,n=-1;for(let u=0,b=f,i=f;uo)return S.domBoundsAround(e,o,b);if(w>=e&&E==-1&&(E=u,d=b),b>o&&S.dom.parentNode==this.dom){s=u,n=i;break}i=w,b=w+S.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(E?this.children[E-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=Sce){this.markDirty();for(let E=e;Ethis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function _ye(t,e,o,f,E,d,s,n,u){let{children:b}=t,i=b.length?b[e]:null,S=d.length?d[d.length-1]:null,w=S?S.breakAfter:s;if(!(e==f&&i&&!s&&!w&&d.length<2&&i.merge(o,E,d.length?S:null,o==0,n,u))){if(f0&&(!s&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var xs={mac:cpe||/Mac/.test(Yv.platform),windows:/Win/.test(Yv.platform),linux:/Linux|X11/.test(Yv.platform),ie:WZ,ie_version:Oye?hse.documentMode||6:mse?+mse[1]:pse?+pse[1]:0,gecko:spe,gecko_version:spe?+(/Firefox\/(\d+)/.exec(Yv.userAgent)||[0,0])[1]:0,chrome:!!Mie,chrome_version:Mie?+Mie[1]:0,ios:cpe,android:/Android\b/.test(Yv.userAgent),webkit:lpe,safari:Sye,webkit_version:lpe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:hse.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const cCe=256;class RO extends eh{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof RO)||this.length-(o-e)+f.length>cCe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new RO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Gg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return uCe(this.dom,e,o)}}class LO extends eh{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let E of o)E.setParent(this)}setAttrs(e){if(yye(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,E,d,s){return f&&(!(f instanceof LO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(E=d),f=u,d++}let s=this.length-e;return this.length=e,E>-1&&(this.children.length=E,this.markDirty()),new LO(this.mark,o,s)}domAtPos(e){return kye(this,e)}coordsAt(e,o){return Cye(this,e,o)}}function uCe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let E=e,d=e,s=0;e==0&&o<0||e==f&&o>=0?xs.chrome||xs.gecko||(e?(E--,s=1):d=0)?0:n.length-1];return xs.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(n,b=>b.width)||u),s?qZ(u,s<0):u||null}class l4 extends eh{static create(e,o,f){return new l4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=l4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,E,d,s){return f&&(!(f instanceof l4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Gg.before(this.dom):Gg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let E=this.dom.getClientRects(),d=null;if(!E.length)return null;let s=this.side?this.side<0:e>0;for(let n=s?E.length-1:0;d=E[n],!(e>0?n==0:n==E.length-1||d.top0?Gg.before(this.dom):Gg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Qu.empty}get isHidden(){return!0}}RO.prototype.children=l4.prototype.children=uM.prototype.children=Sce;function kye(t,e){let o=t.dom,{children:f}=t,E=0;for(let d=0;Ed&&e0;d--){let s=f[d-1];if(s.dom.parentNode==o)return s.domAtPos(s.length)}for(let d=E;d0&&e instanceof LO&&E.length&&(f=E[E.length-1])instanceof LO&&f.mark.eq(e.mark)?Tye(f,e.children[0],o-1):(E.push(e),e.setParent(t)),t.length+=e.length}function Cye(t,e,o){let f=null,E=-1,d=null,s=-1;function n(b,i){for(let S=0,w=0;S=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(m>i||w==m&&y.getSide()>0)?(d=y,s=i-w):(w-1?1:0)!=E.length-(o&&E.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(E.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function vse(t,e,o){let f=!1;if(e)for(let E in e)o&&E in o||(f=!0,E=="style"?t.style.cssText="":t.removeAttribute(E));if(o)for(let E in o)e&&e[E]==o[E]||(f=!0,E=="style"?t.style.cssText=o[E]:t.setAttribute(E,o[E]));return f}function dCe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){kce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Tye(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=gse(o,this.attrs||{})),f&&(this.attrs=gse({class:f},this.attrs||{}))}domAtPos(e){return kye(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(yye(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(vse(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let E=this.dom.lastChild;for(;E&&eh.get(E)instanceof LO;)E=E.lastChild;if(!E||!this.length||E.nodeName!="BR"&&((f=eh.get(E))===null||f===void 0?void 0:f.isEditable)==!1&&(!xs.ios||!this.children.some(d=>d instanceof RO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof RO)||/[^ -~]/.test(f.text))return null;let E=cM(f.dom);if(E.length!=1)return null;e+=E[0].width,o=E[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Cye(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:E}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-E.lineHeight)<2&&E.textHeight=o){if(d instanceof qp)return d;if(s>o)break}E=s+d.breakAfter}return null}}class p4 extends eh{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,E,d,s){return f&&(!(f instanceof p4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ex{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var q0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(q0||(q0={}));class Ns extends qT{constructor(e,o,f,E){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=E}get heightRelevant(){return!1}static mark(e){return new uD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new _4(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,E;if(e.isBlockGap)f=-5e8,E=4e8;else{let{start:d,end:s}=Aye(e,o);f=(d?o?-3e8:-1:5e8)-1,E=(s?o?2e8:1:-6e8)+1}return new _4(e,f,E,o,e.widget||null,!0)}static line(e){return new fD(e)}static set(e,o=!1){return Df.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ns.none=Df.empty;class uD extends Ns{constructor(e){let{start:o,end:f}=Aye(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof uD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&kce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}uD.prototype.point=!1;class fD extends Ns{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof fD&&this.spec.class==e.spec.class&&kce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}fD.prototype.mapMode=lg.TrackBefore;fD.prototype.point=!0;class _4 extends Ns{constructor(e,o,f,E,d,s){super(o,f,d,e),this.block=E,this.isReplace=s,this.mapMode=E?o<=0?lg.TrackBefore:lg.TrackAfter:lg.TrackDel}get type(){return this.startSide!=this.endSide?q0.WidgetRange:this.startSide<=0?q0.WidgetBefore:q0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _4&&hCe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}_4.prototype.point=!0;function Aye(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function hCe(t,e){return t==e||!!(t&&e&&t.compare(e))}function yse(t,e,o,f=0){let E=o.length-1;E>=0&&o[E]+f>=t?o[E]=Math.max(o[E],e):o.push(t,e)}class aI{constructor(e,o,f,E){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=E,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof p4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new qp),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wQ(new uM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof p4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:s,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let E=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(wQ(new RO(this.text.slice(this.textOff,this.textOff+E)),o),f),this.atCursorPos=!0,this.textOff+=E,e-=E,f=0}}span(e,o,f,E){this.buildText(o-e,f,E),this.pos=o,this.openStart<0&&(this.openStart=E)}point(e,o,f,E,d,s){if(this.disallowBlockEffectsFor[s]&&f instanceof _4){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof _4)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new p4(f.widget||new fpe("div"),n,f));else{let u=l4.create(f.widget||new fpe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!u.isEditable&&d<=E.length&&(e0),i=!u.isEditable&&(eE.length||f.startSide<=0),S=this.getLine();this.pendingBuffer==2&&!b&&!u.isEditable&&(this.pendingBuffer=0),this.flushBuffer(E),b&&(S.append(wQ(new uM(1),E),d),d=E.length+Math.max(0,d-E.length)),S.append(wQ(u,E),d),this.atCursorPos=i,this.pendingBuffer=i?eE.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=E.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,E,d){let s=new aI(e,o,f,d);return s.openEnd=Df.spans(E,o,f,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function wQ(t,e){for(let o of e)t=new LO(o,[t],t.length);return t}class fpe extends Ex{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Mye=ls.define(),Eye=ls.define(),Pye=ls.define(),Rye=ls.define(),bse=ls.define(),Lye=ls.define(),Iye=ls.define(),Dye=ls.define({combine:t=>t.some(e=>e)}),Bye=ls.define({combine:t=>t.some(e=>e)});class G8{constructor(e,o="nearest",f="nearest",E=5,d=5,s=!1){this.range=e,this.y=o,this.x=f,this.yMargin=E,this.xMargin=d,this.isSnapshot=s}map(e){return e.empty?this:new G8(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new G8(hi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const OQ=Ql.define({map:(t,e)=>t.map(e)});function ey(t,e,o){let f=t.facet(Rye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const YZ=ls.define({combine:t=>t.length?t[0]:!0});let pCe=0;const HL=ls.define();class bh{constructor(e,o,f,E,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=E,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:E,provide:d,decorations:s}=o||{};return new bh(pCe++,e,f,E,n=>{let u=[HL.of(n)];return s&&u.push(AI.of(b=>{let i=b.plugin(n);return i?s(i):Ns.none})),d&&u.push(d(n)),u})}static fromClass(e,o){return bh.define(f=>new e(f),o)}}class Eie{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(ey(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){ey(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){ey(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const zye=ls.define(),Tce=ls.define(),AI=ls.define(),Cce=ls.define(),Nye=ls.define();function dpe(t,e,o){let f=t.state.facet(Nye);if(!f.length)return f;let E=f.map(s=>s instanceof Function?s(t):s),d=[];return Df.spans(E,e,o,{point(){},span(s,n,u,b){let i=d;for(let S=u.length-1;S>=0;S--,b--){let w=u[S].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==s&&y.direction==w)y.to=n,i=y.inner;else{let m={from:s,to:n,direction:w,inner:[]};i.push(m),i=m.inner}}}}),d}const Fye=ls.define();function $ye(t){let e=0,o=0,f=0,E=0;for(let d of t.state.facet(Fye)){let s=d(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(o=Math.max(o,s.right)),s.top!=null&&(f=Math.max(f,s.top)),s.bottom!=null&&(E=Math.max(E,s.bottom)))}return{left:e,right:o,top:f,bottom:E}}const ZL=ls.define();class ob{constructor(e,o,f,E){this.fromA=e,this.toA=o,this.fromB=f,this.toB=E}join(e){return new ob(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let E=e[o-1];if(!(E.fromA>f.toA)){if(E.toAi)break;d+=2}if(!u)return f;new ob(u.fromA,u.toA,u.fromB,u.toB).addToSet(f),s=u.toA,n=u.toB}}}class FH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=Wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let E=[];this.changes.iterChangedRanges((d,s,n,u)=>E.push(new ob(d,s,n,u))),this.changedRanges=E}static create(e,o,f){return new FH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var zh=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(zh||(zh={}));const MI=zh.LTR,Vye=zh.RTL;function Uye(t){let e=[];for(let o=0;o=o){if(n.level==f)return s;(d<0||(E!=0?E<0?n.fromo:e[d].level>n.level))&&(d=s)}}if(d<0)throw new RangeError("Index out of range");return d}}function jye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(u_[a+1]==-y){let c=u_[a+2],h=c&2?E:c&4?c&1?d:E:0;h&&(hd[S]=hd[u_[a]]=h),n=a;break}}else{if(u_.length==189)break;u_[n++]=S,u_[n++]=w,u_[n++]=u}else if((m=hd[S])==2||m==1){let a=m==E;u=a?0:1;for(let c=n-3;c>=0;c-=3){let h=u_[c+2];if(h&2)break;if(a)u_[c+2]|=2;else{if(h&4)break;u_[c+2]|=4}}}}}function _Ce(t,e,o,f){for(let E=0,d=f;E<=o.length;E++){let s=E?o[E-1].to:t,n=Eu;)m==c&&(m=o[--a].from,c=a?o[a-1].to:t),hd[--m]=y;u=i}else d=b,u++}}}function _se(t,e,o,f,E,d,s){let n=f%2?2:1;if(f%2==E%2)for(let u=e,b=0;uu&&s.push(new c4(u,a.from,y));let c=a.direction==MI!=!(y%2);wse(t,c?f+1:f,E,a.inner,a.from,a.to,s),u=a.to}m=a.to}else{if(m==o||(i?hd[m]!=n:hd[m]==n))break;m++}w?_se(t,u,m,f+1,E,w,s):ue;){let i=!0,S=!1;if(!b||u>d[b-1].to){let a=hd[u-1];a!=n&&(i=!1,S=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,m=u;e:for(;;)if(b&&m==d[b-1].to){if(S)break e;let a=d[--b];if(!i)for(let c=a.from,h=b;;){if(c==e)break e;if(h&&d[h-1].to==c)c=d[--h].from;else{if(hd[c-1]==n)break e;break}}if(w)w.push(a);else{a.tohd.length;)hd[hd.length]=256;let f=[],E=e==MI?0:1;return wse(t,E,E,o,0,t.length,f),f}function Qye(t){return[new c4(0,t,0)]}let Hye="";function OCe(t,e,o,f,E){var d;let s=f.head-t.from,n=-1;if(s==0){if(!E||!t.length)return null;e[0].level!=o&&(s=e[0].side(!1,o),n=0)}else if(s==t.length){if(E)return null;let w=e[e.length-1];w.level!=o&&(s=w.side(!0,o),n=e.length-1)}n<0&&(n=c4.find(e,s,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let u=e[n];s==u.side(E,o)&&(u=e[n+=E?1:-1],s=u.side(!E,o));let b=E==(u.dir==o),i=cg(t.text,s,b);if(Hye=t.text.slice(Math.min(s,i),Math.max(s,i)),i!=u.side(E,o))return hi.cursor(i+t.from,b?-1:1,u.level);let S=n==(E?e.length-1:0)?null:e[n+(E?1:-1)];return!S&&u.level!=o?hi.cursor(E?t.to:t.from,E?-1:1,o):S&&S.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let E=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?E=this.domChanged.newSel.head:!ECe(e.changes,this.hasComposition)&&!e.selectionSet&&(E=e.state.selection.main.head));let d=E>-1?kCe(this.view,e.changes,E):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new ob(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(xs.ie||xs.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,n=this.updateDeco(),u=ACe(s,n,e.changes);return f=ob.extendWithRanges(f,u),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:E}=this.view;E.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=xs.chrome||xs.ios?{node:E.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||E.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?E[s]:null;if(!n)break;let{fromA:u,toA:b,fromB:i,toB:S}=n,w,y,m,a;if(f&&f.range.fromBi){let _=aI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),O=aI.build(this.view.state.doc,f.range.toB,S,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,m=_.openStart,a=O.openEnd;let C=this.compositionView(f);O.breakAtStart?C.breakAfter=1:O.content.length&&C.merge(C.length,C.length,O.content[0],!1,O.openStart,0)&&(C.breakAfter=O.content[0].breakAfter,O.content.shift()),_.content.length&&C.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(C).concat(O.content)}else({content:w,breakAtStart:y,openStart:m,openEnd:a}=aI.build(this.view.state.doc,i,S,this.decorations,this.dynamicDecorationMap));let{i:c,off:h}=d.findPos(b,1),{i:p,off:v}=d.findPos(u,-1);_ye(this,p,v,c,h,w,y,m,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new RO(e.text.nodeValue);o.flags|=8;for(let{deco:E}of e.marks)o=new LO(E,[o],o.length);let f=new qp;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,s)=>{s.flags|=8|(s.children.some(u=>u.flags&7)?1:0),this.markedForComposition.add(s);let n=eh.get(d);n&&n!=s&&(n.dom=null),s.setDOM(d)},f=this.childPos(e.range.fromB,1),E=this.children[f.i];o(e.line,E);for(let d=e.marks.length-1;d>=-1;d--)f=E.childPos(f.off,1),E=E.children[f.i],o(d>=0?e.marks[d].node:e.text,E)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,E=f==this.dom,d=!E&&cH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(E||o||d))return;let s=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?u:this.moveToLine(this.domAtPos(n.head));if(xs.gecko&&n.empty&&!this.hasComposition&&SCe(u)){let S=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(S,u.node.childNodes[u.offset]||null)),u=b=new Gg(S,0),s=!0}let i=this.view.observer.selectionRange;(s||!i.focusNode||!NH(u.node,u.offset,i.anchorNode,i.anchorOffset)||!NH(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{xs.android&&xs.chrome&&this.dom.contains(i.focusNode)&&MCe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let S=zH(this.view.root);if(S)if(n.empty){if(xs.gecko){let w=TCe(u.node,u.offset);if(w&&w!=3){let y=qye(u.node,u.offset,w==1?1:-1);y&&(u=new Gg(y.node,y.offset))}}S.collapse(u.node,u.offset),n.bidiLevel!=null&&S.caretBidiLevel!==void 0&&(S.caretBidiLevel=n.bidiLevel)}else if(S.extend){S.collapse(u.node,u.offset);try{S.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([u,b]=[b,u]),w.setEnd(b.node,b.offset),w.setStart(u.node,u.offset),S.removeAllRanges(),S.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(u,b)),this.impreciseAnchor=u.precise?null:new Gg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Gg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=zH(e.root),{anchorNode:E,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let s=qp.find(this,o.head);if(!s)return;let n=s.posAtStart;if(o.head==n||o.head==n+s.length)return;let u=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!u||!b||u.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let S=e.observer.selectionRange;e.docView.posFromDOM(S.anchorNode,S.anchorOffset)!=o.from&&f.collapse(E,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let E=e.offset;!f&&E=0;E--){let d=eh.get(o.childNodes[E]);d instanceof qp&&(f=d.domAtPos(d.length))}return f?new Gg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=eh.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;s--){let n=this.children[s],u=d-n.breakAfter,b=u-n.length;if(ue||n.covers(1))&&(!f||n instanceof qp&&!(f instanceof qp&&o>=0))&&(f=n,E=b),d=b}return f?f.coordsAt(e-E,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),E=this.children[o];if(!(E instanceof qp))return null;for(;E.children.length;){let{i:n,off:u}=E.childPos(f,1);for(;;n++){if(n==E.children.length)return null;if((E=E.children[n]).length)break}f=u}if(!(E instanceof RO))return null;let d=cg(E.text,f);if(d==f)return null;let s=WT(E.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,u=this.view.textDirection==zh.LTR;for(let b=0,i=0;iE)break;if(b>=f){let y=S.dom.getBoundingClientRect();if(o.push(y.height),s){let m=S.dom.lastChild,a=m?cM(m):[];if(a.length){let c=a[a.length-1],h=u?c.right-y.left:y.right-c.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+S.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?zh.RTL:zh.LTR}measureTextSize(){for(let d of this.children)if(d instanceof qp){let s=d.measureTextSize();if(s)return s}let e=document.createElement("div"),o,f,E;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=cM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,E=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:E}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new xye(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,E=0;;E++){let d=E==o.viewports.length?null:o.viewports[E],s=d?d.from-1:this.length;if(s>f){let n=(o.lineBlockAt(s).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(Ns.replace({widget:new ppe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,s))}if(!d)break;f=d.to+1}return Ns.set(e)}updateDeco(){let e=this.view.state.facet(AI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),E;if(!f)return;!o.empty&&(E=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,E.left),top:Math.min(f.top,E.top),right:Math.max(f.right,E.right),bottom:Math.max(f.bottom,E.bottom)});let d=$ye(this.view),s={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:u}=this.view.scrollDOM;oCe(this.view.scrollDOM,s,o.head0)f=f.childNodes[E-1],E=PO(f);else break}if(o>=0)for(let f=t,E=e;;){if(f.nodeType==3)return{node:f,offset:E};if(f.nodeType==1&&E=0)f=f.childNodes[E],E=0;else break}return null}function TCe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function PCe(t,e,o=1){let f=t.charCategorizer(e),E=t.doc.lineAt(e),d=e-E.from;if(E.length==0)return hi.cursor(e);d==0?o=1:d==E.length&&(o=-1);let s=d,n=d;o<0?s=cg(E.text,d,!1):n=cg(E.text,d);let u=f(E.text.slice(s,n));for(;s>0;){let b=cg(E.text,s,!1);if(f(E.text.slice(b,s))!=u)break;s=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function LCe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Pie(t,e){return t.tope.top+1}function mpe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ose(t,e,o){let f,E,d,s,n=!1,u,b,i,S;for(let m=t.firstChild;m;m=m.nextSibling){let a=cM(m);for(let c=0;cv||s==v&&d>p){f=m,E=h,d=p,s=v;let _=v?o0?c0)}p==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=m,S=h):i&&Pie(i,h)?i=gpe(i,h.bottom):S&&Pie(S,h)&&(S=mpe(S,h.top))}}if(i&&i.bottom>=o?(f=u,E=i):S&&S.top<=o&&(f=b,E=S),!f)return{node:t,offset:0};let w=Math.max(E.left,Math.min(E.right,e));if(f.nodeType==3)return vpe(f,w,o);if(n&&f.contentEditable!="false")return Ose(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(E.left+E.right)/2?1:0);return{node:t,offset:y}}function vpe(t,e,o){let f=t.nodeValue.length,E=-1,d=1e9,s=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&S=(i.left+i.right)/2,y=w;if((xs.chrome||xs.gecko)&&WT(t,n).getBoundingClientRect().left==i.right&&(y=!w),S<=0)return{node:t,offset:n+(y?1:0)};E=n+(y?1:0),d=S}}}return{node:t,offset:E>-1?E:s>0?t.nodeValue.length:0}}function Wye(t,e,o,f=-1){var E,d;let s=t.contentDOM.getBoundingClientRect(),n=s.top+t.viewState.paddingTop,u,{docHeight:b}=t.viewState,{x:i,y:S}=e,w=S-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,O=!1;u=t.elementAtHeight(w),u.type!=q0.Text;)for(;w=f>0?u.bottom+_:u.top-_,!(w>=0&&w<=b);){if(O)return o?null:0;O=!0,f=-f}S=n+w;let y=u.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:ype(t,s,u,i,S);let m=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:m,c=a.elementFromPoint(i,S);c&&!t.contentDOM.contains(c)&&(c=null),c||(i=Math.max(s.left+1,Math.min(s.right-1,i)),c=a.elementFromPoint(i,S),c&&!t.contentDOM.contains(c)&&(c=null));let h,p=-1;if(c&&((E=t.docView.nearest(c))===null||E===void 0?void 0:E.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(i,S);_&&({offsetNode:h,offset:p}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(i,S);_&&({startContainer:h,startOffset:p}=_,(!t.contentDOM.contains(h)||xs.safari&&ICe(h,p,i)||xs.chrome&&DCe(h,p,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=qp.find(t.docView,y);if(!_)return w>u.top+u.height/2?u.to:u.from;({node:h,offset:p}=Ose(_.dom,i,S))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,p)+v.posAtStart}function ype(t,e,o,f,E){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,u=Math.floor((E-o.top-(t.defaultLineHeight-n)*.5)/n);d+=u*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(o.from,o.to);return o.from+cse(s,d,t.state.tabSize)}function ICe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let E=t.nextSibling;E;E=E.nextSibling)if(E.nodeType!=1||E.nodeName!="BR")return!1;return WT(t,f-1,f).getBoundingClientRect().left>o}function DCe(t,e,o){if(e!=0)return!1;for(let E=t;;){let d=E.parentNode;if(!d||d.nodeType!=1||d.firstChild!=E)return!1;if(d.classList.contains("cm-line"))break;E=d}let f=t.nodeType==1?t.getBoundingClientRect():WT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function Sse(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==q0.Text))return f}return o}function BCe(t,e,o,f){let E=Sse(t,e.head),d=!f||E.type!=q0.Text||!(t.lineWrapping||E.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>E.from?e.head-1:e.head);if(d){let s=t.dom.getBoundingClientRect(),n=t.textDirectionAt(E.from),u=t.posAtCoords({x:o==(n==zh.LTR)?s.right-1:s.left+1,y:(d.top+d.bottom)/2});if(u!=null)return hi.cursor(u,o?-1:1)}return hi.cursor(o?E.to:E.from,o?-1:1)}function bpe(t,e,o,f){let E=t.state.doc.lineAt(e.head),d=t.bidiSpans(E),s=t.textDirectionAt(E.from);for(let n=e,u=null;;){let b=OCe(E,d,s,n,o),i=Hye;if(!b){if(E.number==(o?t.state.doc.lines:1))return n;i=` +`,E=t.state.doc.line(E.number+(o?1:-1)),d=t.bidiSpans(E),b=hi.cursor(o?E.from:E.to)}if(u){if(!u(i))return n}else{if(!f)return b;u=f(i)}n=b}}function zCe(t,e,o){let f=t.state.charCategorizer(e),E=f(o);return d=>{let s=f(d);return E==yh.Space&&(E=s),E==s}}function NCe(t,e,o,f){let E=e.head,d=o?1:-1;if(E==(o?t.state.doc.length:0))return hi.cursor(E,e.assoc);let s=e.goalColumn,n,u=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(E,e.assoc||-1),i=t.documentTop;if(b)s==null&&(s=b.left-u.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(E);s==null&&(s=Math.min(u.right-u.left,t.defaultCharacterWidth*(E-y.from))),n=(d<0?y.top:y.bottom)+i}let S=u.left+s,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let m=n+(w+y)*d,a=Wye(t,{x:S,y:m},!1,d);if(mu.bottom||(d<0?aE)){let c=t.docView.coordsForChar(a),h=!c||m{if(e>d&&eE(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:hi.cursor(f,fnull),xs.gecko&&t6e(e.contentDOM.ownerDocument)}handleEvent(e){!qCe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let E of f.observers)E(this.view,o);for(let E of f.handlers){if(o.defaultPrevented)break;if(E(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=$Ce(e),f=this.handlers,E=this.view.contentDOM;for(let d in o)if(d!="scroll"){let s=!o[d].handlers.length,n=f[d];n&&s!=!n.handlers.length&&(E.removeEventListener(d,this.handleEvent),n=null),n||E.addEventListener(d,this.handleEvent,{passive:s})}for(let d in f)d!="scroll"&&!o[d]&&E.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||VCe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,X8(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:xs.safari&&!xs.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function xpe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(E){ey(o.state,E)}}}function $Ce(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let E=f.spec;if(E&&E.domEventHandlers)for(let d in E.domEventHandlers){let s=E.domEventHandlers[d];s&&o(d).handlers.push(xpe(f.value,s))}if(E&&E.domEventObservers)for(let d in E.domEventObservers){let s=E.domEventObservers[d];s&&o(d).observers.push(xpe(f.value,s))}}for(let f in Tx)o(f).handlers.push(Tx[f]);for(let f in Cx)o(f).observers.push(Cx[f]);return e}const Yye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],VCe="dthko",Xye=[16,17,18,20,91,92,224,225],SQ=6;function kQ(t){return Math.max(0,t)*.7+8}function UCe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class jCe{constructor(e,o,f,E){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=E,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=iCe(e.contentDOM),this.atoms=e.state.facet(Cce).map(s=>s(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(kc.allowMultipleSelections)&&QCe(e,o),this.dragging=ZCe(e,o)&&ebe(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&UCe(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,E=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=$ye(this.view);e.clientX-s.left<=d.left+SQ?f=-kQ(d.left-e.clientX):e.clientX+s.right>=d.right-SQ&&(f=kQ(e.clientX-d.right)),e.clientY-s.top<=d.top+SQ?E=-kQ(d.top-e.clientY):e.clientY+s.bottom>=d.bottom-SQ&&(E=kQ(e.clientY-d.bottom)),this.setScrollSpeed(f,E)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function QCe(t,e){let o=t.state.facet(Mye);return o.length?o[0](e):xs.mac?e.metaKey:e.ctrlKey}function HCe(t,e){let o=t.state.facet(Eye);return o.length?o[0](e):xs.mac?!e.altKey:!e.ctrlKey}function ZCe(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=zH(t.root);if(!f||f.rangeCount==0)return!0;let E=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function qCe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=eh.get(o))&&f.ignoreEvent(e))return!1;return!0}const Tx=Object.create(null),Cx=Object.create(null),Gye=xs.ie&&xs.ie_version<15||xs.ios&&xs.webkit_version<604;function WCe(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),Kye(t,o.value)},50)}function Kye(t,e){let{state:o}=t,f,E=1,d=o.toText(e),s=d.lines==o.selection.ranges.length;if(kse!=null&&o.selection.ranges.every(u=>u.empty)&&kse==d.toString()){let u=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==u)return{range:b};u=i.from;let S=o.toText((s?d.line(E++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:S},range:hi.cursor(b.from+S.length)}})}else s?f=o.changeByRange(u=>{let b=d.line(E++);return{changes:{from:u.from,to:u.to,insert:b.text},range:hi.cursor(u.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}Cx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Tx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);Cx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Cx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Tx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Pye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=GCe(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new jCe(t,e,o,f)),f&&t.observer.ignore(()=>vye(t.contentDOM));let E=t.inputState.mouseSelection;if(E)return E.start(e),E.dragging===!1}return!1};function _pe(t,e,o,f){if(f==1)return hi.cursor(e,o);if(f==2)return PCe(t.state,e,o);{let E=qp.find(t.docView,e),d=t.state.doc.lineAt(E?E.posAtEnd:e),s=E?E.posAtStart:d.from,n=E?E.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,wpe=(t,e,o)=>Jye(e,o)&&t>=o.left&&t<=o.right;function YCe(t,e,o,f){let E=qp.find(t.docView,e);if(!E)return 1;let d=e-E.posAtStart;if(d==0)return 1;if(d==E.length)return-1;let s=E.coordsAt(d,-1);if(s&&wpe(o,f,s))return-1;let n=E.coordsAt(d,1);return n&&wpe(o,f,n)?1:s&&Jye(f,s)?-1:1}function Ope(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:YCe(t,o,e.clientX,e.clientY)}}const XCe=xs.ie&&xs.ie_version<=11;let Spe=null,kpe=0,Tpe=0;function ebe(t){if(!XCe)return t.detail;let e=Spe,o=Tpe;return Spe=t,Tpe=Date.now(),kpe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(kpe+1)%3:1}function GCe(t,e){let o=Ope(t,e),f=ebe(e),E=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),E=E.map(d.changes))},get(d,s,n){let u=Ope(t,d),b,i=_pe(t,u.pos,u.bias,f);if(o.pos!=u.pos&&!s){let S=_pe(t,o.pos,o.bias,f),w=Math.min(S.from,i.from),y=Math.max(S.to,i.to);i=w1&&(b=KCe(E,u.pos))?b:n?E.addRange(i):hi.create([i])}}}function KCe(t,e){for(let o=0;o=e)return hi.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}Tx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let E=t.docView.nearest(e.target);if(E&&E.isWidget){let d=E.posAtStart,s=d+E.length;(d>=o.to||s<=o.from)&&(o=hi.range(d,s))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Tx.dragend=t=>(t.inputState.draggedContent=null,!1);function Cpe(t,e,o,f){if(!o)return;let E=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,s=f&&d&&HCe(t,e)?{from:d.from,to:d.to}:null,n={from:E,insert:o},u=t.state.changes(s?[s,n]:n);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(E,-1),head:u.mapPos(E,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Tx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),E=0,d=()=>{++E==o.length&&Cpe(t,e,f.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[s]=n.result),d()},n.readAsText(o[s])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Cpe(t,e,f,!0),!0}return!1};Tx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=Gye?null:e.clipboardData;return o?(Kye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(WCe(t),!1)};function JCe(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function e6e(t){let e=[],o=[],f=!1;for(let E of t.selection.ranges)E.empty||(e.push(t.sliceDoc(E.from,E.to)),o.push(E));if(!e.length){let E=-1;for(let{from:d}of t.selection.ranges){let s=t.doc.lineAt(d);s.number>E&&(e.push(s.text),o.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),E=s.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let kse=null;Tx.copy=Tx.cut=(t,e)=>{let{text:o,ranges:f,linewise:E}=e6e(t.state);if(!o&&!E)return!1;kse=E?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=Gye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(JCe(t,o),!1)};const tbe=NO.define();function nbe(t,e){let o=[];for(let f of t.facet(Iye)){let E=f(t,e);E&&o.push(E)}return o?t.update({effects:o,annotations:tbe.of(!0)}):null}function rbe(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=nbe(t.state,e);o?t.dispatch(o):t.update([])}},10)}Cx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),rbe(t)};Cx.blur=t=>{t.observer.clearSelectionRange(),rbe(t)};Cx.compositionstart=Cx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};Cx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,xs.chrome&&xs.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};Cx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Tx.beforeinput=(t,e)=>{var o;let f;if(xs.chrome&&xs.android&&(f=Yye.find(E=>E.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let E=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>E+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Ape=new Set;function t6e(t){Ape.has(t)||(Ape.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Mpe=["pre-wrap","normal","pre-line","break-spaces"];class n6e{constructor(e){this.lineWrapping=e,this.doc=Qu.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Mpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,u=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=E,this.lineLength=d,u){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>fH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return W0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,E){let d=this,s=f.doc;for(let n=E.length-1;n>=0;n--){let{fromA:u,toA:b,fromB:i,toB:S}=E[n],w=d.lineAt(u,Kd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,Kd.ByPosNoHeight,f,0,0);for(S+=y.to-b,b=y.to;n>0&&w.from<=E[n-1].toA;)u=E[n-1].fromA,i=E[n-1].fromB,n--,ud*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,E-=n.size}else if(d>E*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(E=d&&s(this.blockAt(0,f,E,d))}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more&&this.setHeight(e,E.heights[E.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zv extends obe{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,E){return new y_(E,this.length,f,this.height,this.breaks)}replace(e,o,f){let E=f[0];return f.length==1&&(E instanceof Zv||E instanceof ig&&E.flags&4)&&Math.abs(this.length-E.length)<10?(E instanceof ig?E=new Zv(E.length,this.height):E.height=this.height,this.outdated||(E.outdated=!1),E):W0.of(f)}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more?this.setHeight(e,E.heights[E.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ig extends W0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,E=e.doc.lineAt(o+this.length).number,d=E-f+1,s,n=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*d);s=u/d,this.length>d+1&&(n=(this.height-u)/(this.length-d-1))}else s=this.height/d;return{firstLine:f,lastLine:E,perLine:s,perChar:n}}blockAt(e,o,f,E){let{firstLine:d,lastLine:s,perLine:n,perChar:u}=this.heightMetrics(o,E);if(o.lineWrapping){let b=E+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),S=n+i.length*u,w=Math.max(f,e-S/2);return new y_(i.from,i.length,w,S,0)}else{let b=Math.max(0,Math.min(s-d,Math.floor((e-f)/n))),{from:i,length:S}=o.doc.line(d+b);return new y_(i,S,f+n*b,n,0)}}lineAt(e,o,f,E,d){if(o==Kd.ByHeight)return this.blockAt(e,f,E,d);if(o==Kd.ByPosNoHeight){let{from:y,to:m}=f.doc.lineAt(e);return new y_(y,m-y,0,0,0)}let{firstLine:s,perLine:n,perChar:u}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*u,S=b.number-s,w=E+n*S+u*(b.from-d-S);return new y_(b.from,b.length,Math.max(E,Math.min(w,E+this.height-i)),i,0)}forEachLine(e,o,f,E,d,s){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:u,perChar:b}=this.heightMetrics(f,d);for(let i=e,S=E;i<=o;){let w=f.doc.lineAt(i);if(i==e){let m=w.number-n;S+=u*m+b*(e-d-m)}let y=u+b*w.length;s(new y_(w.from,w.length,S,y,0)),S+=y,i=w.to+1}}replace(e,o,f){let E=this.length-o;if(E>0){let d=f[f.length-1];d instanceof ig?f[f.length-1]=new ig(d.length+E):f.push(null,new ig(E-1))}if(e>0){let d=f[0];d instanceof ig?f[0]=new ig(e+d.length):f.unshift(new ig(e-1),null)}return W0.of(f)}decomposeLeft(e,o){o.push(new ig(e-1),null)}decomposeRight(e,o){o.push(null,new ig(this.length-e-1))}updateHeight(e,o=0,f=!1,E){let d=o+this.length;if(E&&E.from<=o+this.length&&E.more){let s=[],n=Math.max(o,E.from),u=-1;for(E.from>o&&s.push(new ig(E.from-o-1).updateHeight(e,o));n<=d&&E.more;){let i=e.doc.lineAt(n).length;s.length&&s.push(null);let S=E.heights[E.index++];u==-1?u=S:Math.abs(S-u)>=fH&&(u=-2);let w=new Zv(i,S);w.outdated=!1,s.push(w),n+=i+1}n<=d&&s.push(null,new ig(d-n).updateHeight(e,n));let b=W0.of(s);return(u<0||Math.abs(b.height-this.height)>=fH||Math.abs(u-this.heightMetrics(e,o).perLine)>=fH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class o6e extends W0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,E){let d=f+this.left.height;return en))return b;let i=o==Kd.ByPosNoHeight?Kd.ByPosNoHeight:Kd.ByPos;return u?b.join(this.right.lineAt(n,i,f,s,n)):this.left.lineAt(n,i,f,E,d).join(b)}forEachLine(e,o,f,E,d,s){let n=E+this.left.height,u=d+this.left.length+this.break;if(this.break)e=u&&this.right.forEachLine(e,o,f,n,u,s);else{let b=this.lineAt(u,Kd.ByPos,f,E,d);e=e&&b.from<=o&&s(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,u,s)}}replace(e,o,f){let E=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-E,o-E,f));let d=[];e>0&&this.decomposeLeft(e,d);let s=d.length;for(let n of f)d.push(n);if(e>0&&Epe(d,s-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,E=f+this.break;if(e>=E)return this.right.decomposeRight(e-E,o);e2*o.size||o.size>2*e.size?W0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,E){let{left:d,right:s}=this,n=o+d.length+this.break,u=null;return E&&E.from<=o+d.length&&E.more?u=d=d.updateHeight(e,o,f,E):d.updateHeight(e,o,f),E&&E.from<=n+s.length&&E.more?u=s=s.updateHeight(e,n,f,E):s.updateHeight(e,n,f),u?this.balanced(d,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Epe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof ig&&(f=t[e+1])instanceof ig&&t.splice(e-1,3,new ig(o.length+1+f.length))}const i6e=5;class Ace{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),E=this.nodes[this.nodes.length-1];E instanceof Zv?E.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Zv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=i6e)&&this.addLineDeco(E,d,s)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Zv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new ig(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zv)return e;let o=new Zv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let E=this.ensureLine();E.length+=f,E.collapsed+=f,E.widgetHeight=Math.max(E.widgetHeight,e),E.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Zv)&&!this.isCovered?this.nodes.push(new Zv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&S.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),s=Math.min(s,w.right),n=Math.max(n,w.top),u=b==t.parentNode?w.bottom:Math.min(u,w.bottom)}b=S.position=="absolute"||S.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,s)-o.left,top:n-(o.top+e),bottom:Math.max(n,u)-(o.top+e)}}function c6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class Lie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new n6e(o),this.stateDeco=e.facet(AI).filter(f=>typeof f!="function"),this.heightMap=W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle.setDoc(e.doc),[new ob(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ns.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let E=f?o.head:o.anchor;if(!e.some(({from:d,to:s})=>E>=d&&E<=s)){let{from:d,to:s}=this.lineBlockAt(E);e.push(new TQ(d,s))}}this.viewports=e.sort((f,E)=>f.from-E.from),this.scaler=this.heightMap.height<=7e6?Rpe:new h6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:qL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(AI).filter(i=>typeof i!="function");let E=e.changedRanges,d=ob.extendWithRanges(E,a6e(f,this.stateDeco,e?e.changes:Wp.empty(this.state.doc.length))),s=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=s&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let u=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Bye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),E=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?zh.RTL:zh.LTR;let s=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),u=s||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,O=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(O>.995&&O<1.005||!isFinite(O)||Math.abs(n.height-o.offsetHeight)<1)&&(O=1),(this.scaleX!=_||this.scaleY!=O)&&(this.scaleX=_,this.scaleY=O,b|=8,s=u=!0)}let S=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=S||this.paddingBottom!=w)&&(this.paddingTop=S,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(E.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=bye(e.scrollDOM);let m=(this.printing?c6e:l6e)(o,this.paddingTop),a=m.top-this.pixelViewport.top,c=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let p=n.width;if((this.contentDOMWidth!=p||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),u){let _=e.docView.measureVisibleLineHeights(this.viewport);if(E.mustRefreshForHeights(_)&&(s=!0),s||E.lineWrapping&&Math.abs(p-this.contentDOMWidth)>E.charWidth){let{lineHeight:O,charWidth:C,textHeight:x}=e.docView.measureTextSize();s=O>0&&E.refresh(d,O,C,x,p/C,_),s&&(e.docView.minWidth=0,b|=8)}a>0&&c>0?i=Math.max(a,c):a<0&&c<0&&(i=Math.min(a,c)),E.heightChanged=!1;for(let O of this.viewports){let C=O.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(O);this.heightMap=(s?W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle,[new ob(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(E,0,s,new r6e(O.from,C))}E.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),E=this.heightMap,d=this.heightOracle,{visibleTop:s,visibleBottom:n}=this,u=new TQ(E.lineAt(s-f*1e3,Kd.ByHeight,d,0,0).from,E.lineAt(n+(1-f)*1e3,Kd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bu.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),S=E.lineAt(b,Kd.ByPos,d,0,0),w;o.y=="center"?w=(S.top+S.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&E>s-2*1e3&&d>1,s=E<<1;if(this.defaultTextDirection!=zh.LTR&&!f)return[];let n=[],u=(b,i,S,w)=>{if(i-bb&&cc.from>=S.from&&c.to<=S.to&&Math.abs(c.from-b)c.fromh));if(!a){if(ic.from<=i&&c.to>=i)){let c=o.moveToLineBoundary(hi.cursor(i),!1,!0).head;c>b&&(i=c)}a=new Lie(b,i,this.gapSize(S,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&u(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Df.spans(e,this.viewport.from,this.viewport.to,{span(E,d){o.push({from:E,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((E,d)=>E.from!=o[d].from||E.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||qL(this.heightMap.lineAt(e,Kd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return qL(this.heightMap.lineAt(this.scaler.fromDOM(e),Kd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return qL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class TQ{constructor(e,o){this.from=e,this.to=o}}function f6e(t,e,o){let f=[],E=t,d=0;return Df.spans(o,t,e,{span(){},point(s,n){s>E&&(f.push({from:E,to:s}),d+=s-E),E=n}},20),E=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let E=0;;E++){let{from:d,to:s}=e[E],n=s-d;if(f<=n)return d+f;f-=n}}function AQ(t,e){let o=0;for(let{from:f,to:E}of t.ranges){if(e<=E){o+=e-f;break}o+=E-f}return o/t.total}function d6e(t,e){for(let o of t)if(e(o))return o}const Rpe={toDOM(t){return t},fromDOM(t){return t},scale:1};class h6e{constructor(e,o,f){let E=0,d=0,s=0;this.viewports=f.map(({from:n,to:u})=>{let b=o.lineAt(n,Kd.ByPos,e,0,0).top,i=o.lineAt(u,Kd.ByPos,e,0,0).bottom;return E+=i-b,{from:n,to:u,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-E)/(o.height-E);for(let n of this.viewports)n.domTop=s+(n.top-d)*this.scale,s=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,E=0;;o++){let d=oqL(E,e)):t._content)}const MQ=ls.define({combine:t=>t.join(" ")}),Tse=ls.define({combine:t=>t.indexOf(!0)>-1}),Cse=b4.newName(),ibe=b4.newName(),abe=b4.newName(),sbe={"&light":"."+ibe,"&dark":"."+abe};function Ase(t,e,o){return new b4(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,E=>{if(E=="&")return t;if(!o||!o[E])throw new RangeError(`Unsupported selector: ${E}`);return o[E]}):t+" "+f}})}const p6e=Ase("."+Cse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},sbe),WL="￿";class m6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(kc.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=WL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let E=e;;){this.findPointBefore(f,E);let d=this.text.length;this.readNode(E);let s=E.nextSibling;if(s==o)break;let n=eh.get(E),u=eh.get(s);(n&&u?n.breakAfter:(n?n.breakAfter:Lpe(E))||Lpe(s)&&(E.nodeName!="BR"||E.cmIgnore)&&this.text.length>d)&&this.lineBreak(),E=s}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,E=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,s=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),s=this.lineSeparator.length):(n=E.exec(o))&&(d=n.index,s=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),s>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=s-1);f=d+s}}readNode(e){if(e.cmIgnore)return;let o=eh.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let E=f.iter();!E.next().done;)E.lineBreak?this.lineBreak():this.append(E.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(g6e(e,f.node,f.offset)?o:0))}}function g6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||s?[]:x6e(e),u=new m6e(n,e.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=_6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,u=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!dse(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=s&&s.node==n.anchorNode&&s.offset==n.anchorOffset||!dse(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=hi.single(b,u)}}}function lbe(t,e){let o,{newSel:f}=e,E=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:n}=e.bounds,u=E.from,b=null;(d===8||xs.android&&e.text.length=E.from&&o.to<=E.to&&(o.from!=E.from||o.to!=E.to)&&E.to-E.from-(o.to-o.from)<=4?o={from:E.from,to:E.to,insert:t.state.doc.slice(E.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,E.to))}:(xs.mac||xs.android)&&o&&o.from==o.to&&o.from==E.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}):xs.chrome&&o&&o.from==o.to&&o.from==E.head&&o.insert.toString()==` + `&&t.lineWrapping&&(f&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}),o){if(xs.ios&&t.inputState.flushIOSKey()||xs.android&&(o.from==E.from&&o.to==E.to&&o.insert.length==1&&o.insert.lines==2&&X8(t.contentDOM,"Enter",13)||(o.from==E.from-1&&o.to==E.to&&o.insert.length==0||d==8&&o.insert.lengthE.head)&&X8(t.contentDOM,"Backspace",8)||o.from==E.from&&o.to==E.to+1&&o.insert.length==0&&X8(t.contentDOM,"Delete",46)))return!0;let s=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,u=()=>n||(n=y6e(t,o,f));return t.state.facet(Lye).some(b=>b(t,o.from,o.to,s,u))||t.dispatch(u()),!0}else if(f&&!f.main.eq(E)){let s=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:s,userEvent:n}),!0}else return!1}function y6e(t,e,o){let f,E=t.state,d=E.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?E.sliceDoc(e.to,d.to):"";f=E.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let n=E.changes(e),u=o&&o.main.to<=n.newLength?o.main:void 0;if(E.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,S=o&&Zye(t,o.main.head);if(S){let m=e.insert.length-(e.to-e.from);i={from:S.from,to:S.to-m}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=E.changeByRange(m=>{if(m.from==d.from&&m.to==d.to)return{changes:n,range:u||m.map(n)};let a=m.to-w,c=a-b.length;if(m.to-m.from!=y||t.state.sliceDoc(c,a)!=b||m.to>=i.from&&m.from<=i.to)return{range:m};let h=E.changes({from:c,to:a,insert:e.insert}),p=m.to-d.to;return{changes:h,range:u?hi.range(Math.max(0,u.anchor+p),Math.max(0,u.head+p)):m.map(h)}})}else f={changes:n,selection:u&&E.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),E.update(f,{userEvent:s,scrollIntoView:!0})}function b6e(t,e,o,f){let E=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(s-1)==e.charCodeAt(n-1);)s--,n--;if(f=="end"){let u=Math.max(0,d-Math.min(s,n));o-=s+u-d}if(s=s?d-o:0;d-=u,n=d+(n-s),s=d}else if(n=n?d-o:0;d-=u,s=d+(s-n),n=d}return{from:d,toA:s,toB:n}}function x6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:E,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new Ipe(o,f)),(E!=o||d!=f)&&e.push(new Ipe(E,d))),e}function _6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?hi.single(o+e,f+e):null}const w6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Iie=xs.ie&&xs.ie_version<=11;class O6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new aCe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(xs.ie&&xs.ie_version<=11||xs.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),Iie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,E=this.selectionRange;if(f.state.facet(YZ)?f.root.activeElement!=this.dom:!cH(f.dom,E))return;let d=E.anchorNode&&f.docView.nearest(E.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(xs.ie&&xs.ie_version<=11||xs.android&&xs.chrome)&&!f.state.selection.main.empty&&E.focusNode&&NH(E.focusNode,E.focusOffset,E.anchorNode,E.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=xs.safari&&e.root.nodeType==11&&nCe(this.dom.ownerDocument)==this.dom&&S6e(this.view)||zH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=cH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&X8(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(E)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,E=!1;for(let d of e){let s=this.readMutation(d);s&&(s.typeOver&&(E=!0),o==-1?{from:o,to:f}=s:(o=Math.min(s.from,o),f=Math.max(s.to,f)))}return{from:o,to:f,typeOver:E}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),E=this.selectionChanged&&cH(this.dom,this.selectionRange);if(e<0&&!E)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new v6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,E=lbe(this.view,o);return this.view.state==f&&this.view.update([]),E}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=Dpe(o,e.previousSibling||e.target.previousSibling,-1),E=Dpe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:E?o.posBefore(E):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let E of this.scrollTargets)E.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Dpe(t,e,o){for(;e;){let f=eh.get(e);if(f&&f.parent==t)return f;let E=e.parentNode;e=E!=t.dom?E:o>0?e.nextSibling:e.previousSibling}return null}function S6e(t){let e=null;function o(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,E=e.startOffset,d=e.endContainer,s=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return NH(n.node,n.offset,d,s)&&([f,E,d,s]=[d,s,f,E]),{anchorNode:f,anchorOffset:E,focusNode:d,focusOffset:s}}class Xa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(E=>o(E,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||sCe(e.parent)||document,this.viewState=new Ppe(e.state||kc.create(e)),e.scrollTo&&e.scrollTo.is(OQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(HL).map(f=>new Eie(f));for(let f of this.plugins)f.update(this);this.observer=new O6e(this),this.inputState=new FCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new hpe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Xp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,E,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let s=this.hasFocus,n=0,u=null;e.some(w=>w.annotation(tbe))?(this.inputState.notifiedFocused=s,n=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,u=nbe(d,s),u||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(kc.phrases)!=this.state.facet(kc.phrases))return this.setState(d);E=FH.create(this,d,e),E.flags|=n;let S=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(S&&(S=S.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;S=new G8(y.empty?y:hi.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(OQ)&&(S=y.value.clip(this.state))}this.viewState.update(E,S),this.bidiCache=$H.update(this.bidiCache,E.changes),E.empty||(this.updatePlugins(E),this.inputState.update(E)),o=this.docView.update(E),this.state.facet(ZL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(E.startState.facet(MQ)!=E.state.facet(MQ)&&(this.viewState.mustMeasureContent=!0),(o||f||S||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!E.empty)for(let w of this.state.facet(bse))try{w(E)}catch(y){ey(this.state,y,"update listener")}(u||i)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),i&&!lbe(this,i)&&b.force&&X8(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new Ppe(e),this.plugins=e.facet(HL).map(f=>new Eie(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new hpe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(HL),f=e.state.facet(HL);if(o!=f){let E=[];for(let d of f){let s=o.indexOf(d);if(s<0)E.push(new Eie(d));else{let n=this.plugins[s];n.mustUpdate=e,E.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=E,this.pluginMap.clear()}else for(let E of this.plugins)E.mustUpdate=e;for(let E=0;E-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,E=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:s}=this.viewState;Math.abs(E-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(s<0)if(bye(f))d=-1,s=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(E);d=y.from,s=y.top}this.updateState=1;let u=this.viewState.measure(this);if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];u&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(m){return ey(this.state,m),Bpe}}),S=FH.create(this,this.state,[]),w=!1;S.flags|=u,o?o.flags|=u:o=S,this.updateState=2,S.empty||(this.updatePlugins(S),this.inputState.update(S),this.updateAttrs(),w=this.docView.update(S));for(let y=0;y1||m<-1){E=E+m,f.scrollTop=E/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(bse))n(o)}get themeClasses(){return Cse+" "+(this.state.facet(Tse)?abe:ibe)+" "+this.state.facet(MQ)}updateAttrs(){let e=zpe(this,zye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(YZ)?"true":"false",class:"cm-content",style:`${xs.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),zpe(this,Tce,o);let f=this.observer.ignore(()=>{let E=vse(this.contentDOM,this.contentAttrs,o),d=vse(this.dom,this.editorAttrs,e);return E||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let E of f.effects)if(E.is(Xa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=E.value}}mountStyles(){this.styleModules=this.state.facet(ZL);let e=this.state.facet(Xa.cspNonce);b4.mount(this.root,this.styleModules.concat(p6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return Rie(this,e,bpe(this,e,o,f))}moveByGroup(e,o){return Rie(this,e,bpe(this,e,o,f=>zCe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return BCe(this,e,o,f)}moveVertically(e,o,f){return Rie(this,e,NCe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),Wye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let E=this.state.doc.lineAt(e),d=this.bidiSpans(E),s=d[c4.find(d,e-E.from,-1,o)];return qZ(f,s.dir==zh.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Dye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>k6e)return Qye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||jye(d.isolates,f=dpe(this,e.from,e.to))))return d.order;f||(f=dpe(this,e.from,e.to));let E=wCe(e.text,o,f);return this.bidiCache.push(new $H(e.from,e.to,o,f,!0,E)),E}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||xs.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{vye(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return OQ.of(new G8(typeof e=="number"?hi.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return OQ.of(new G8(hi.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return bh.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return bh.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=b4.newName(),E=[MQ.of(f),ZL.of(Ase(`.${f}`,e))];return o&&o.dark&&E.push(Tse.of(!0)),E}static baseTheme(e){return ny.lowest(ZL.of(Ase("."+Cse,e,sbe)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),E=f&&eh.get(f)||eh.get(e);return((o=E==null?void 0:E.rootView)===null||o===void 0?void 0:o.view)||null}}Xa.styleModule=ZL;Xa.inputHandler=Lye;Xa.focusChangeEffect=Iye;Xa.perLineTextDirection=Dye;Xa.exceptionSink=Rye;Xa.updateListener=bse;Xa.editable=YZ;Xa.mouseSelectionStyle=Pye;Xa.dragMovesSelection=Eye;Xa.clickAddsSelectionRange=Mye;Xa.decorations=AI;Xa.atomicRanges=Cce;Xa.bidiIsolatedRanges=Nye;Xa.scrollMargins=Fye;Xa.darkTheme=Tse;Xa.cspNonce=ls.define({combine:t=>t.length?t[0]:""});Xa.contentAttributes=Tce;Xa.editorAttributes=zye;Xa.lineWrapping=Xa.contentAttributes.of({class:"cm-lineWrapping"});Xa.announce=Ql.define();const k6e=4096,Bpe={};class $H{constructor(e,o,f,E,d,s){this.from=e,this.to=o,this.dir=f,this.isolates=E,this.fresh=d,this.order=s}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],E=e.length?e[e.length-1].dir:zh.LTR;for(let d=Math.max(0,e.length-10);d=0;E--){let d=f[E],s=typeof d=="function"?d(t):d;s&&gse(s,o)}return o}const T6e=xs.mac?"mac":xs.windows?"win":xs.linux?"linux":"key";function C6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let E,d,s,n;for(let u=0;uf.concat(E),[]))),o}function M6e(t,e,o){return ube(cbe(t.state),e,t,o)}let i4=null;const E6e=4e3;function P6e(t,e=T6e){let o=Object.create(null),f=Object.create(null),E=(s,n)=>{let u=f[s];if(u==null)f[s]=n;else if(u!=n)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},d=(s,n,u,b,i)=>{var S,w;let y=o[s]||(o[s]=Object.create(null)),m=n.split(/ (?!$)/).map(h=>C6e(h,e));for(let h=1;h{let _=i4={view:v,prefix:p,scope:s};return setTimeout(()=>{i4==_&&(i4=null)},E6e),!0}]})}let a=m.join(" ");E(a,!1);let c=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(S=y._any)===null||S===void 0?void 0:S.run)===null||w===void 0?void 0:w.slice())||[]});u&&c.run.push(u),b&&(c.preventDefault=!0),i&&(c.stopPropagation=!0)};for(let s of t){let n=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let S in i)i[S].run.push(s.any)}let u=s[e]||s.key;if(u)for(let b of n)d(b,u,s.run,s.preventDefault,s.stopPropagation),s.shift&&d(b,"Shift-"+u,s.shift,s.preventDefault,s.stopPropagation)}return o}function ube(t,e,o,f){let E=tCe(e),d=ag(E,0),s=Ky(d)==E.length&&E!=" ",n="",u=!1,b=!1,i=!1;i4&&i4.view==o&&i4.scope==f&&(n=i4.prefix+" ",Xye.indexOf(e.keyCode)<0&&(b=!0,i4=null));let S=new Set,w=c=>{if(c){for(let h of c.run)if(!S.has(h)&&(S.add(h),h(o,e)))return c.stopPropagation&&(i=!0),!0;c.preventDefault&&(c.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],m,a;return y&&(w(y[n+EQ(E,e,!s)])?u=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(xs.windows&&e.ctrlKey&&e.altKey)&&(m=x4[e.keyCode])&&m!=E?(w(y[n+EQ(m,e,!0)])||e.shiftKey&&(a=TI[e.keyCode])!=E&&a!=m&&w(y[n+EQ(a,e,!1)]))&&(u=!0):s&&e.shiftKey&&w(y[n+EQ(E,e,!0)])&&(u=!0),!u&&w(y._any)&&(u=!0)),b&&(u=!0),u&&i&&e.stopPropagation(),u}class dD{constructor(e,o,f,E,d){this.className=e,this.left=o,this.top=f,this.width=E,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let E=e.coordsAtPos(f.head,f.assoc||1);if(!E)return[];let d=fbe(e);return[new dD(o,E.left-d.left,E.top-d.top,null,E.bottom-E.top)]}else return R6e(e,o,f)}}function fbe(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==zh.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Fpe(t,e,o){let f=hi.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:q0.Text}}function R6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),E=Math.min(o.to,t.viewport.to),d=t.textDirection==zh.LTR,s=t.contentDOM,n=s.getBoundingClientRect(),u=fbe(t),b=s.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),S=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=Sse(t,f),m=Sse(t,E),a=y.type==q0.Text?y:null,c=m.type==q0.Text?m:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=Fpe(t,f,a)),c&&(t.lineWrapping||m.widgetLineBreaks)&&(c=Fpe(t,E,c)),a&&c&&a.from==c.from)return p(v(o.from,o.to,a));{let O=a?v(o.from,null,a):_(y,!1),C=c?v(null,o.to,c):_(m,!0),x=[];return(a||y).to<(c||m).from-(a&&c?1:0)||y.widgetLineBreaks>1&&O.bottom+t.defaultLineHeight/2A&&D.from=I)break;j>k&&P(Math.max(Q,k),O==null&&Q<=A,Math.min(j,I),C==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&P(A,O==null,L,C==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(O,C){let x=n.top+(C?O.top:O.bottom);return{top:x,bottom:x,horizontal:[]}}}function L6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class I6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(dH)!=e.state.facet(dH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(dH);for(;o!L6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let E of e)E.update&&o&&E.constructor&&this.drawn[f].constructor&&E.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(E.draw(),o);for(;o;){let E=o.nextSibling;o.remove(),o=E}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const dH=ls.define();function dbe(t){return[bh.define(e=>new I6e(e,t)),dH.of(t)]}const hbe=!xs.ios,EI=ls.define({combine(t){return E_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function D6e(t={}){return[EI.of(t),B6e,z6e,N6e,Bye.of(!0)]}function pbe(t){return t.startState.facet(EI)!=t.state.facet(EI)}const B6e=dbe({above:!0,markers(t){let{state:e}=t,o=e.facet(EI),f=[];for(let E of e.selection.ranges){let d=E==e.selection.main;if(E.empty?!d||hbe:o.drawRangeCursor){let s=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=E.empty?E:hi.cursor(E.head,E.head>E.anchor?-1:1);for(let u of dD.forRange(t,s,n))f.push(u)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=pbe(t);return o&&$pe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){$pe(e.state,t)},class:"cm-cursorLayer"});function $pe(t,e){e.style.animationDuration=t.facet(EI).cursorBlinkRate+"ms"}const z6e=dbe({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:dD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||pbe(t)},class:"cm-selectionLayer"}),Mse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};hbe&&(Mse[".cm-line"].caretColor="transparent !important",Mse[".cm-content"]={caretColor:"transparent !important"});const N6e=ny.highest(Xa.theme(Mse)),mbe=Ql.define({map(t,e){return t==null?null:e.mapPos(t)}}),YL=tm.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(mbe)?f.value:o,t)}}),F6e=bh.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(YL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(YL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(YL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(YL)!=t&&this.view.dispatch({effects:mbe.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function $6e(){return[YL,F6e]}function Vpe(t,e,o,f,E){e.lastIndex=0;for(let d=t.iterRange(o,f),s=o,n;!d.next().done;s+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)E(s+n.index,n)}function V6e(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:E,to:d}of o)E=Math.max(t.state.doc.lineAt(E).from,E-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=E?f[f.length-1].to=d:f.push({from:E,to:d});return f}class U6e{constructor(e){const{regexp:o,decoration:f,decorate:E,boundary:d,maxLength:s=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,E)this.addMatch=(n,u,b,i)=>E(i,b,b+n[0].length,n,u);else if(typeof f=="function")this.addMatch=(n,u,b,i)=>{let S=f(n,u,b);S&&i(b,b+n[0].length,S)};else if(f)this.addMatch=(n,u,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=s}createDeco(e){let o=new y4,f=o.add.bind(o);for(let{from:E,to:d}of V6e(e,this.maxLength))Vpe(e.state.doc,this.regexp,E,d,(s,n)=>this.addMatch(n,e,s,f));return o.finish()}updateDeco(e,o){let f=1e9,E=-1;return e.docChanged&&e.changes.iterChanges((d,s,n,u)=>{u>e.view.viewport.from&&n1e3?this.createDeco(e.view):E>-1?this.updateRange(e.view,o.map(e.changes),f,E):o}updateRange(e,o,f,E){for(let d of e.visibleRanges){let s=Math.max(d.from,f),n=Math.min(d.to,E);if(n>s){let u=e.state.doc.lineAt(s),b=u.tou.from;s--)if(this.boundary.test(u.text[s-1-u.from])){i=s;break}for(;nw.push(h.range(a,c));if(u==b)for(this.regexp.lastIndex=i-u.from;(y=this.regexp.exec(u.text))&&y.indexthis.addMatch(c,e,a,m));o=o.update({filterFrom:i,filterTo:S,filter:(a,c)=>aS,add:w})}}return o}}const Ese=/x/.unicode!=null?"gu":"g",j6e=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Ese),Q6e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Die=null;function H6e(){var t;if(Die==null&&typeof document<"u"&&document.body){let e=document.body.style;Die=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Die||!1}const hH=ls.define({combine(t){let e=E_(t,{render:null,specialChars:j6e,addSpecialChars:null});return(e.replaceTabs=!H6e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Ese)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Ese)),e}});function Z6e(t={}){return[hH.of(t),q6e()]}let Upe=null;function q6e(){return Upe||(Upe=bh.fromClass(class{constructor(t){this.view=t,this.decorations=Ns.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(hH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new U6e({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:E}=o.state,d=ag(e[0],0);if(d==9){let s=E.lineAt(f),n=o.state.tabSize,u=kx(s.text,n,f-s.from);return Ns.replace({widget:new G6e((n-u%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=Ns.replace({widget:new X6e(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(hH);t.startState.facet(hH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const W6e="•";function Y6e(t){return t>=32?W6e:t==10?"␤":String.fromCharCode(9216+t)}class X6e extends Ex{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=Y6e(this.code),f=e.state.phrase("Control character")+" "+(Q6e[this.code]||"0x"+this.code.toString(16)),E=this.options.render&&this.options.render(this.code,f,o);if(E)return E;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class G6e extends Ex{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function K6e(){return eAe}const J6e=Ns.line({class:"cm-activeLine"}),eAe=bh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let E=t.lineBlockAt(f.head);E.from>e&&(o.push(J6e.range(E.from)),e=E.from)}return Ns.set(o)}},{decorations:t=>t.decorations});class tAe extends Ex{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?cM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),E=qZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return E.bottom-E.top>d*1.5?{left:E.left,right:E.right,top:E.top,bottom:E.top+d}:E}ignoreEvent(){return!1}}function nAe(t){return bh.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ns.set([Ns.widget({widget:new tAe(t),side:1}).range(0)]):Ns.none}get decorations(){return this.view.state.doc.length?Ns.none:this.placeholder}},{decorations:e=>e.decorations})}const Pse=2e3;function rAe(t,e,o){let f=Math.min(e.line,o.line),E=Math.max(e.line,o.line),d=[];if(e.off>Pse||o.off>Pse||e.col<0||o.col<0){let s=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let u=f;u<=E;u++){let b=t.doc.line(u);b.length<=n&&d.push(hi.range(b.from+s,b.to+n))}}else{let s=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let u=f;u<=E;u++){let b=t.doc.line(u),i=cse(b.text,s,t.tabSize,!0);if(i<0)d.push(hi.cursor(b.to));else{let S=cse(b.text,n,t.tabSize);d.push(hi.range(b.from+i,b.from+S))}}}return d}function oAe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function jpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),E=o-f.from,d=E>Pse?-1:E==f.length?oAe(t,e.clientX):kx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:E}}function iAe(t,e){let o=jpe(t,e),f=t.state.selection;return o?{update(E){if(E.docChanged){let d=E.changes.mapPos(E.startState.doc.line(o.line).from),s=E.state.doc.lineAt(d);o={line:s.number,col:o.col,off:Math.min(o.off,s.length)},f=f.map(E.changes)}},get(E,d,s){let n=jpe(t,E);if(!n)return f;let u=rAe(t.state,o,n);return u.length?s?hi.create(u.concat(f.ranges)):hi.create(u):f}}:null}function aAe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Xa.mouseSelectionStyle.of((o,f)=>e(f)?iAe(o,f):null)}const sAe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},lAe={style:"cursor: crosshair"};function cAe(t={}){let[e,o]=sAe[t.key||"Alt"],f=bh.fromClass(class{constructor(E){this.view=E,this.isDown=!1}set(E){this.isDown!=E&&(this.isDown=E,this.view.update([]))}},{eventObservers:{keydown(E){this.set(E.keyCode==e||o(E))},keyup(E){(E.keyCode==e||!o(E))&&this.set(!1)},mousemove(E){this.set(o(E))}}});return[f,Xa.contentAttributes.of(E=>{var d;return!((d=E.plugin(f))===null||d===void 0)&&d.isDown?lAe:null})]}const RL="-10000px";class gbe{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(E=>E),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let E=e.state.facet(this.facet),d=E.filter(u=>u);if(E===this.input){for(let u of this.tooltipViews)u.update&&u.update(e);return!1}let s=[],n=o?[]:null;for(let u=0;uo[b]=u),o.length=n.length),this.input=E,this.tooltips=d,this.tooltipViews=s,!0}}function uAe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Bie=ls.define({combine:t=>{var e,o,f;return{position:xs.ios?"absolute":((e=t.find(E=>E.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(E=>E.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(E=>E.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||uAe}}}),Qpe=new WeakMap,Mce=bh.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Bie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new gbe(t,Ece,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(Bie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let E of this.manager.tooltipViews)E.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let E of this.manager.tooltipViews)this.container.appendChild(E.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=RL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:E}=this.manager.tooltipViews[0];if(xs.gecko)f=E.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(E.style.top==RL&&E.style.left=="0px"){let d=E.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let E=this.parent.getBoundingClientRect();E.width&&E.height&&(e=E.width/this.parent.offsetWidth,o=E.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((E,d)=>{let s=this.manager.tooltipViews[d];return s.getCoords?s.getCoords(E.pos):this.view.coordsAtPos(E.pos)}),size:this.manager.tooltipViews.map(({dom:E})=>E.getBoundingClientRect()),space:this.view.state.facet(Bie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:E,scaleY:d}=t,s=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||S.rightMath.min(o.right,f.right)+.1){i.style.top=RL;continue}let y=u.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,m=y?7:0,a=w.right-w.left,c=(e=Qpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||dAe,p=this.view.textDirection==zh.LTR,v=w.width>f.right-f.left?p?f.left:f.right-w.width:p?Math.min(S.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,S.left-a+(y?14:0)-h.x),_=this.above[n];!u.strictSide&&(_?S.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-S.bottom>S.top-f.top&&(_=this.above[n]=!_);let O=(_?S.top-f.top:f.bottom-S.bottom)-m;if(Ov&&R.topC&&(C=_?R.top-c-2-m:R.bottom+m+2);if(this.position=="absolute"?(i.style.top=(C-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/E+"px"):(i.style.top=C/d+"px",i.style.left=v/E+"px"),y){let R=S.left+(p?h.x:-h.x)-(v+14-7);y.style.left=R/E+"px"}b.overlap!==!0&&s.push({left:v,top:C,right:x,bottom:C+c}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=RL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),fAe=Xa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),dAe={x:0,y:0},Ece=ls.define({enables:[Mce,fAe]}),VH=ls.define();class XZ{static create(e){return new XZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new gbe(e,VH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let E=f[e];if(E!==void 0){if(o===void 0)o=E;else if(o!==E)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const hAe=Ece.compute([VH],t=>{let e=t.facet(VH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:XZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class pAe{constructor(e,o,f,E,d){this.view=e,this.source=o,this.field=f,this.setHover=E,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let u=e.bidiSpans(e.state.doc.lineAt(E)).find(i=>i.from<=E&&i.to>=E),b=u&&u.dir==zh.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,u&&e.dispatch({effects:this.setHover.of(u)}))},u=>ey(e.state,u,"hover tooltip"))}else s&&e.dispatch({effects:this.setHover.of(s)})}get tooltip(){let e=this.view.plugin(Mce),o=e?e.manager.tooltips.findIndex(f=>f.create==XZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:E}=this;if(f&&E&&!mAe(E.dom,e)||this.pending){let{pos:d}=f||this.pending,s=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==s?this.view.posAtCoords(this.lastMove)!=d:!gAe(this.view,d,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const PQ=4;function mAe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-PQ&&e.clientX<=o.right+PQ&&e.clientY>=o.top-PQ&&e.clientY<=o.bottom+PQ}function gAe(t,e,o,f,E,d){let s=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>f||s.rightE||Math.min(s.bottom,n)=e&&u<=o}function vAe(t,e={}){let o=Ql.define(),f=tm.define({create(){return null},update(E,d){if(E&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,E)))return null;if(E&&d.docChanged){let s=d.changes.mapPos(E.pos,-1,lg.TrackDel);if(s==null)return null;let n=Object.assign(Object.create(null),E);n.pos=s,E.end!=null&&(n.end=d.changes.mapPos(E.end)),E=n}for(let s of d.effects)s.is(o)&&(E=s.value),s.is(yAe)&&(E=null);return E},provide:E=>VH.from(E)});return[f,bh.define(E=>new pAe(E,t,f,o,e.hoverTime||300)),hAe]}function vbe(t,e){let o=t.plugin(Mce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const yAe=Ql.define(),Hpe=ls.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function PI(t,e){let o=t.plugin(ybe),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const ybe=bh.fromClass(class{constructor(t){this.input=t.state.facet(RI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(Hpe);this.top=new RQ(t,!0,e.topContainer),this.bottom=new RQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(Hpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new RQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new RQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(RI);if(o!=this.input){let f=o.filter(u=>u),E=[],d=[],s=[],n=[];for(let u of f){let b=this.specs.indexOf(u),i;b<0?(i=u(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),E.push(i),(i.top?d:s).push(i)}this.specs=f,this.panels=E,this.top.sync(d),this.bottom.sync(s);for(let u of n)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class RQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=Zpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=Zpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Zpe(t){let e=t.nextSibling;return t.remove(),e}const RI=ls.define({enables:ybe});class IO extends qT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}IO.prototype.elementClass="";IO.prototype.toDOM=void 0;IO.prototype.mapMode=lg.TrackBefore;IO.prototype.startSide=IO.prototype.endSide=-1;IO.prototype.point=!0;const pH=ls.define(),bAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Df.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sI=ls.define();function xAe(t){return[bbe(),sI.of(Object.assign(Object.assign({},bAe),t))]}const Rse=ls.define({combine:t=>t.some(e=>e)});function bbe(t){let e=[_Ae];return t&&t.fixed===!1&&e.push(Rse.of(!0)),e}const _Ae=bh.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(sI).map(e=>new Wpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Rse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Rse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Df.iter(this.view.state.facet(pH),this.view.viewport.from),f=[],E=this.gutters.map(d=>new wAe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let s=!0;for(let n of d.type)if(n.type==q0.Text&&s){Lse(o,f,n.from);for(let u of E)u.line(this.view,n,f);s=!1}else if(n.widget)for(let u of E)u.widget(this.view,n)}else if(d.type==q0.Text){Lse(o,f,d.from);for(let s of E)s.line(this.view,d,f)}else if(d.widget)for(let s of E)s.widget(this.view,d);for(let d of E)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sI),o=t.state.facet(sI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Df.eq(t.startState.facet(pH),t.state.facet(pH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let E of this.gutters)E.update(t)&&(f=!0);else{f=!0;let E=[];for(let d of o){let s=e.indexOf(d);s<0?E.push(new Wpe(this.view,d)):(this.gutters[s].update(t),E.push(this.gutters[s]))}for(let d of this.gutters)d.dom.remove(),E.indexOf(d)<0&&d.destroy();for(let d of E)this.dom.appendChild(d.dom);this.gutters=E}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==zh.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function qpe(t){return Array.isArray(t)?t:[t]}function Lse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class wAe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Df.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:E}=this,d=(o.top-this.height)/e.scaleY,s=o.height/e.scaleY;if(this.i==E.elements.length){let n=new xbe(e,s,d,f);E.elements.push(n),E.dom.appendChild(n.dom)}else E.elements[this.i].update(e,s,d,f);this.height=o.bottom,this.i++}line(e,o,f){let E=[];Lse(this.cursor,E,o.from),f.length&&(E=E.concat(f));let d=this.gutter.config.lineMarker(e,o,E);d&&E.unshift(d);let s=this.gutter;E.length==0&&!s.config.renderEmptyElements||this.addElement(e,o,E)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class Wpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,E=>{let d=E.target,s;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let u=d.getBoundingClientRect();s=(u.top+u.bottom)/2}else s=E.clientY;let n=e.lineBlockAtHeight(s-e.documentTop);o.domEventHandlers[f](e,n,E)&&E.preventDefault()});this.markers=qpe(o.markers(e)),o.initialSpacer&&(this.spacer=new xbe(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=qpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let E=this.config.updateSpacer(this.spacer.markers[0],e);E!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[E])}let f=e.view.viewport;return!Df.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class xbe{constructor(e,o,f,E){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,E)}update(e,o,f,E){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),OAe(this.markers,E)||this.setMarkers(e,E)}setMarkers(e,o){let f="cm-gutterElement",E=this.dom.firstChild;for(let d=0,s=0;;){let n=s,u=dd(n,u,b)||s(n,u,b):s}return f}})}});class zie extends IO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Nie(t,e){return t.state.facet($8).formatNumber(e,t.state)}const kAe=sI.compute([$8],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(SAe)},lineMarker(e,o,f){return f.some(E=>E.toDOM)?null:new zie(Nie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet($8)!=e.state.facet($8),initialSpacer(e){return new zie(Nie(e,Ype(e.state.doc.lines)))},updateSpacer(e,o){let f=Nie(o.view,Ype(o.view.state.doc.lines));return f==e.number?e:new zie(f)},domEventHandlers:t.facet($8).domEventHandlers}));function TAe(t={}){return[$8.of(t),bbe(),kAe]}function Ype(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.head).from;E>o&&(o=E,e.push(CAe.range(E)))}return Df.of(e)});function MAe(){return AAe}const _be=1024;let EAe=0,eb=class{constructor(e,o){this.from=e,this.to=o}};class Zl{constructor(e={}){this.id=EAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Jp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}Zl.closedBy=new Zl({deserialize:t=>t.split(" ")});Zl.openedBy=new Zl({deserialize:t=>t.split(" ")});Zl.group=new Zl({deserialize:t=>t.split(" ")});Zl.contextHash=new Zl({perNode:!0});Zl.lookAhead=new Zl({perNode:!0});Zl.mounted=new Zl({perNode:!0});class LI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[Zl.mounted.id]}}const PAe=Object.create(null);class Jp{constructor(e,o,f,E=0){this.name=e,this.props=o,this.id=f,this.flags=E}static define(e){let o=e.props&&e.props.length?Object.create(null):PAe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),E=new Jp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(E)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return E}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(Zl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let E of f.split(" "))o[E]=e[f];return f=>{for(let E=f.prop(Zl.group),d=-1;d<(E?E.length:0);d++){let s=o[d<0?f.name:E[d]];if(s)return s}}}}Jp.none=new Jp("",Object.create(null),0,8);class hD{constructor(e){this.types=e;for(let o=0;o0;for(let u=this.cursor(s|pd.IncludeAnonymous);;){let b=!1;if(u.from<=d&&u.to>=E&&(!n&&u.type.isAnonymous||o(u)!==!1)){if(u.firstChild())continue;b=!0}for(;b&&f&&(n||!u.type.isAnonymous)&&f(u),!u.nextSibling();){if(!u.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:Lce(Jp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,E)=>new gf(this.type,o,f,E,this.propValues),e.makeTree||((o,f,E)=>new gf(Jp.none,o,f,E)))}static build(e){return DAe(e)}}gf.empty=new gf(Jp.none,[],[],0);class Pce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Pce(this.buffer,this.index)}}class w4{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Jp.none}toString(){let e=[];for(let o=0;o0));u=s[u+3]);return n}slice(e,o,f){let E=this.buffer,d=new Uint16Array(o-e),s=0;for(let n=e,u=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function II(t,e,o,f){for(var E;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],S=u[e]+s.from;if(wbe(E,f,S,S+i.length)){if(i instanceof w4){if(d&pd.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-S,E);if(w>-1)return new b_(new RAe(s,i,e,S),null,w)}else if(d&pd.IncludeAnonymous||!i.type.isAnonymous||Rce(i)){let w;if(!(d&pd.IgnoreMounts)&&(w=LI.get(i))&&!w.overlay)return new e0(w.tree,S,e,s);let y=new e0(i,S,e,s);return d&pd.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,E)}}}if(d&pd.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+o:e=o<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let E;if(!(f&pd.IgnoreOverlays)&&(E=LI.get(this._tree))&&E.overlay){let d=e-this.from;for(let{from:s,to:n}of E.overlay)if((o>0?s<=d:s=d:n>d))return new e0(E.tree,E.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Gpe(t,e,o,f){let E=t.cursor(),d=[];if(!E.firstChild())return d;if(o!=null){for(;!E.type.is(o);)if(!E.nextSibling())return d}for(;;){if(f!=null&&E.type.is(f))return d;if(E.type.is(e)&&d.push(E.node),!E.nextSibling())return f==null?d:[]}}function Ise(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class RAe{constructor(e,o,f,E){this.parent=e,this.buffer=o,this.index=f,this.start=E}}class b_ extends Obe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new b_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&pd.ExcludeBuffers)return null;let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new b_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new b_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new b_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,E=this.index+4,d=f.buffer[this.index+3];if(d>E){let s=f.buffer[this.index+1];e.push(f.slice(E,d,s)),o.push(0)}return new gf(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Sbe(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||s.to=e){let n=new e0(s.tree,s.overlay[0].from+d.from,-1,d);(E||(E=[f])).push(II(n,e,o,!1))}}return E?Sbe(E):f}class UH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof e0)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:E}=this.buffer;return this.type=o||E.set.types[E.buffer[e]],this.from=f+E.buffer[e+1],this.to=f+E.buffer[e+2],!0}yield(e){return e?e instanceof e0?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:E}=this.buffer,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&pd.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pd.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pd.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let E=f<0?0:this.stack[f]+4;if(this.index!=E)return this.yieldBuf(o.findChild(E,this.index,-1,0,4))}else{let E=o.buffer[this.index+3];if(E<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(E)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:E}=this;if(E){if(e>0){if(this.index-1)for(let d=o+e,s=e<0?-1:f._tree.children.length;d!=s;d+=e){let n=f._tree.children[d];if(this.mode&pd.IncludeAnonymous||n instanceof w4||!n.type.isAnonymous||Rce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==E){if(E==this.index)return s;o=s,f=d+1;break e}E=this.stack[--d]}for(let E=f;E=0;d--){if(d<0)return Ise(this.node,e,E);let s=f[o.buffer[this.stack[d]]];if(!s.isAnonymous){if(e[E]&&e[E]!=s.name)return!1;E--}}return!0}}function Rce(t){return t.children.some(e=>e instanceof w4||!e.type.isAnonymous||Rce(e))}function DAe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:E=_be,reused:d=[],minRepeatType:s=f.types.length}=t,n=Array.isArray(o)?new Pce(o,o.length):o,u=f.types,b=0,i=0;function S(O,C,x,R,M,T){let{id:P,start:A,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[P];x.push(j),R.push(A-O);return}else if(D==-3){b=P;return}else if(D==-4){i=P;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=u[P],z,$,Q=A-O;if(L-A<=E&&($=c(n.pos-C,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new w4(j,L-$.start,f),Q=$.start-O}else{let j=n.pos-D;n.next();let U=[],X=[],te=P>=s?P:-1,Z=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-E&&(m(U,X,A,Z,n.end,K,te,k),Z=U.length,K=n.end),n.next()):T>2500?w(A,j,U,X):S(A,j,U,X,te,T+1);if(te>=0&&Z>0&&Z-1&&Z>0){let re=y(I);z=Lce(I,U,X,0,U.length,0,L-A,re,re)}else z=a(I,U,X,L-A,k-L)}x.push(z),R.push(Q)}function w(O,C,x,R){let M=[],T=0,P=-1;for(;n.pos>C;){let{id:A,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(P>-1&&L=0;D-=3)A[k++]=M[D],A[k++]=M[D+1]-L,A[k++]=M[D+2]-L,A[k++]=k;x.push(new w4(A,M[2]-L,f)),R.push(L-O)}}function y(O){return(C,x,R)=>{let M=0,T=C.length-1,P,A;if(T>=0&&(P=C[T])instanceof gf){if(!T&&P.type==O&&P.length==R)return P;(A=P.prop(Zl.lookAhead))&&(M=x[T]+P.length+A)}return a(O,C,x,R,M)}}function m(O,C,x,R,M,T,P,A){let L=[],D=[];for(;O.length>R;)L.push(O.pop()),D.push(C.pop()+x-M);O.push(a(f.types[P],L,D,T-M,A-T)),C.push(M-x)}function a(O,C,x,R,M=0,T){if(b){let P=[Zl.contextHash,b];T=T?[P].concat(T):[P]}if(M>25){let P=[Zl.lookAhead,M];T=T?[P].concat(T):[P]}return new gf(O,C,x,R,T)}function c(O,C){let x=n.fork(),R=0,M=0,T=0,P=x.end-E,A={size:0,start:0,skip:0};e:for(let L=x.pos-O;x.pos>L;){let D=x.size;if(x.id==C&&D>=0){A.size=R,A.start=M,A.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=s?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=s&&(I+=4);x.next()}M=z,R+=D,T+=I}return(C<0||R==O)&&(A.size=R,A.start=M,A.skip=T),A.size>4?A:void 0}function h(O,C,x){let{id:R,start:M,end:T,size:P}=n;if(n.next(),P>=0&&R4){let L=n.pos-(P-4);for(;n.pos>L;)x=h(O,C,x)}C[--x]=A,C[--x]=T-O,C[--x]=M-O,C[--x]=R}else P==-3?b=R:P==-4&&(i=R);return x}let p=[],v=[];for(;n.pos>0;)S(t.start||0,t.bufferStart||0,p,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:p.length?v[0]+p[0].length:0;return new gf(u[t.topID],p.reverse(),v.reverse(),_)}const Kpe=new WeakMap;function mH(t,e){if(!t.isAnonymous||e instanceof w4||e.type!=t)return 1;let o=Kpe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof gf)){o=1;break}o+=mH(t,f)}Kpe.set(e,o)}return o}function Lce(t,e,o,f,E,d,s,n,u){let b=0;for(let m=f;m=i)break;C+=x}if(v==_+1){if(C>i){let x=m[_];y(x.children,x.positions,0,x.children.length,a[_]+p);continue}S.push(m[_])}else{let x=a[v-1]+m[v-1].length-O;S.push(Lce(t,m,a,_,v,O,x,null,u))}w.push(O+p-d)}}return y(e,o,f,E,0),(n||u)(S,w,s)}class Ice{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let E=this.map.get(e);E||this.map.set(e,E=new Map),E.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof b_?this.setBuffer(e.context.buffer,e.index,o):e instanceof e0&&this.map.set(e.tree,o)}get(e){return e instanceof b_?this.getBuffer(e.context.buffer,e.index):e instanceof e0?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class AO{constructor(e,o,f,E,d=!1,s=!1){this.from=e,this.to=o,this.tree=f,this.offset=E,this.open=(d?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let E=[new AO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&E.push(d);return E}static applyChanges(e,o,f=128){if(!o.length)return e;let E=[],d=1,s=e.length?e[0]:null;for(let n=0,u=0,b=0;;n++){let i=n=f)for(;s&&s.from=w.from||S<=w.to||b){let y=Math.max(w.from,u)-b,m=Math.min(w.to,S)-b;w=y>=m?null:new AO(y,m,w.tree,w.offset+b,n>0,!!i)}if(w&&E.push(w),s.to>S)break;s=dnew eb(E.from,E.to)):[new eb(0,0)]:[new eb(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let E=this.startParse(e,o,f);for(;;){let d=E.advance();if(d)return d}}}class BAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function kbe(t){return(e,o,f,E)=>new NAe(e,t,o,f,E)}class Jpe{constructor(e,o,f,E,d){this.parser=e,this.parse=o,this.overlay=f,this.target=E,this.from=d}}function eme(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class zAe{constructor(e,o,f,E,d,s,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=E,this.start=d,this.target=s,this.prev=n,this.depth=0,this.ranges=[]}}const Dse=new Zl({perNode:!0});class NAe{constructor(e,o,f,E,d){this.nest=o,this.input=f,this.fragments=E,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let E of this.inner)E.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new gf(f.type,f.children,f.positions,f.length,f.propValues.concat([[Dse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[Zl.mounted.id]=new LI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(E)){if(o){let b=o.mounts.find(i=>i.frag.from<=E.from&&i.frag.to>=E.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let S=i.from+b.pos,w=i.to+b.pos;S>=E.from&&w<=E.to&&!o.ranges.some(y=>y.fromS)&&o.ranges.push({from:S,to:w})}}n=!1}else if(f&&(s=FAe(f.ranges,E.from,E.to)))n=s!=2;else if(!E.type.isAnonymous&&(d=this.nest(E,this.input))&&(E.fromnew eb(S.from-E.from,S.to-E.from)):null,E.tree,i.length?i[0].from:E.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(u=o.predicate(E))&&(u===!0&&(u=new eb(E.from,E.to)),u.fromnew eb(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function FAe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function tme(t,e,o,f,E,d){if(e=e.to);f++);let s=E.children[f],n=s.buffer,u=[f];function b(i,S,w,y,m,a){let c=o[a],h=[],p=[];tme(s,i,c,h,p,y);let v=n[c+1],_=n[c+2];u.push(h.length);let O=a?b(c+4,n[c+3],s.set.types[n[c]],v,_-v,a-1):e.toTree();return h.push(O),p.push(v-y),tme(s,n[c+3],S,h,p,y),new gf(w,h,p,m)}E.children[f]=b(0,n.length,Jp.none,0,s.length,o.length-1);for(let i of u){let S=t.tree.children[i],w=t.tree.positions[i];t.yield(new e0(S,w+t.from,i,t._tree))}}class nme{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(pd.IncludeAnonymous|pd.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,pd.IgnoreOverlays|pd.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof gf)o=o.children[0];else break}return!1}}let VAe=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(Dse))!==null&&o!==void 0?o:f.to,this.inner=new nme(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(Dse))!==null&&e!==void 0?e:o.to,this.inner=new nme(o.tree,-o.offset)}}findMounts(e,o){var f;let E=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let s=(f=d.tree)===null||f===void 0?void 0:f.prop(Zl.mounted);if(s&&s.parser==o)for(let n=this.fragI;n=d.to)break;u.tree==this.curFrag.tree&&E.push({frag:u,pos:d.from-u.offset,mount:s})}}}return E}};function rme(t,e){let o=null,f=e;for(let E=1,d=0;E=n)break;u.to<=s||(o||(f=o=e.slice()),u.fromn&&o.splice(d+1,0,new eb(n,u.to))):u.to>n?o[d--]=new eb(n,u.to):o.splice(d--,1))}}return f}function UAe(t,e,o,f){let E=0,d=0,s=!1,n=!1,u=-1e9,b=[];for(;;){let i=E==t.length?1e9:s?t[E].to:t[E].from,S=d==e.length?1e9:n?e[d].to:e[d].from;if(s!=n){let w=Math.max(u,o),y=Math.min(i,S,f);wnew eb(w.from+f,w.to+f)),S=UAe(e,i,u,b);for(let w=0,y=u;;w++){let m=w==S.length,a=m?b:S[w].from;if(a>y&&o.push(new AO(y,a,E.tree,-s,d.from>=y||d.openStart,d.to<=a||d.openEnd)),m)break;y=S[w].to}}else o.push(new AO(u,b,E.tree,-s,d.from>=s||d.openStart,d.to<=n||d.openEnd))}return o}let jAe=0;class yx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=jAe++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new yx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new jH;return o=>o.modified.indexOf(e)>-1?o:jH.get(o.base||o,o.modified.concat(e).sort((f,E)=>f.id-E.id))}}let QAe=0;class jH{constructor(){this.instances=[],this.id=QAe++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&HAe(o,n.modified));if(f)return f;let E=[],d=new yx(E,e,o);for(let n of o)n.instances.push(d);let s=ZAe(o);for(let n of e.set)if(!n.modified.length)for(let u of s)E.push(jH.get(n,u));return d}}function HAe(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function ZAe(t){let e=[[]];for(let o=0;of.length-o.length)}function M4(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let E of o.split(" "))if(E){let d=[],s=2,n=E;for(let S=0;;){if(n=="..."&&S>0&&S+3==E.length){s=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+E);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),S+=w[0].length,S==E.length)break;let y=E[S++];if(S==E.length&&y=="!"){s=0;break}if(y!="/")throw new RangeError("Invalid path: "+E);n=E.slice(S)}let u=d.length-1,b=d[u];if(!b)throw new RangeError("Invalid path: "+E);let i=new QH(f,s,u>0?d.slice(0,u):null);e[b]=i.sort(e[b])}}return Tbe.add(e)}const Tbe=new Zl;class QH{constructor(e,o,f,E){this.tags=e,this.mode=o,this.context=f,this.next=E}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let s=E;for(let n of d)for(let u of n.set){let b=o[u.id];if(b){s=s?s+" "+b:b;break}}return s},scope:f}}function qAe(t,e){let o=null;for(let f of t){let E=f.style(e);E&&(o=o?o+" "+E:E)}return o}function WAe(t,e,o,f=0,E=t.length){let d=new YAe(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,E,"",d.highlighters),d.flush(E)}class YAe{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,E,d){let{type:s,from:n,to:u}=e;if(n>=f||u<=o)return;s.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(s)));let b=E,i=XAe(e)||QH.empty,S=qAe(d,i.tags);if(S&&(b&&(b+=" "),b+=S,i.mode==1&&(E+=(E?" ":"")+S)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(Zl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),m=this.highlighters.filter(c=>!c.scope||c.scope(w.tree.type)),a=e.firstChild();for(let c=0,h=n;;c++){let p=c=v||!e.nextSibling())););if(!p||v>f)break;h=p.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,p.from+n),Math.min(f,h),"",m),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(E="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,E,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function XAe(t){let e=t.type.prop(Tbe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ma=yx.define,IQ=Ma(),r4=Ma(),ime=Ma(r4),ame=Ma(r4),o4=Ma(),DQ=Ma(o4),Fie=Ma(o4),h_=Ma(),OT=Ma(h_),f_=Ma(),d_=Ma(),Bse=Ma(),LL=Ma(Bse),BQ=Ma(),hr={comment:IQ,lineComment:Ma(IQ),blockComment:Ma(IQ),docComment:Ma(IQ),name:r4,variableName:Ma(r4),typeName:ime,tagName:Ma(ime),propertyName:ame,attributeName:Ma(ame),className:Ma(r4),labelName:Ma(r4),namespace:Ma(r4),macroName:Ma(r4),literal:o4,string:DQ,docString:Ma(DQ),character:Ma(DQ),attributeValue:Ma(DQ),number:Fie,integer:Ma(Fie),float:Ma(Fie),bool:Ma(o4),regexp:Ma(o4),escape:Ma(o4),color:Ma(o4),url:Ma(o4),keyword:f_,self:Ma(f_),null:Ma(f_),atom:Ma(f_),unit:Ma(f_),modifier:Ma(f_),operatorKeyword:Ma(f_),controlKeyword:Ma(f_),definitionKeyword:Ma(f_),moduleKeyword:Ma(f_),operator:d_,derefOperator:Ma(d_),arithmeticOperator:Ma(d_),logicOperator:Ma(d_),bitwiseOperator:Ma(d_),compareOperator:Ma(d_),updateOperator:Ma(d_),definitionOperator:Ma(d_),typeOperator:Ma(d_),controlOperator:Ma(d_),punctuation:Bse,separator:Ma(Bse),bracket:LL,angleBracket:Ma(LL),squareBracket:Ma(LL),paren:Ma(LL),brace:Ma(LL),content:h_,heading:OT,heading1:Ma(OT),heading2:Ma(OT),heading3:Ma(OT),heading4:Ma(OT),heading5:Ma(OT),heading6:Ma(OT),contentSeparator:Ma(h_),list:Ma(h_),quote:Ma(h_),emphasis:Ma(h_),strong:Ma(h_),link:Ma(h_),monospace:Ma(h_),strikethrough:Ma(h_),inserted:Ma(),deleted:Ma(),changed:Ma(),invalid:Ma(),meta:BQ,documentMeta:Ma(BQ),annotation:Ma(BQ),processingInstruction:Ma(BQ),definition:yx.defineModifier(),constant:yx.defineModifier(),function:yx.defineModifier(),standard:yx.defineModifier(),local:yx.defineModifier(),special:yx.defineModifier()};Cbe([{tag:hr.link,class:"tok-link"},{tag:hr.heading,class:"tok-heading"},{tag:hr.emphasis,class:"tok-emphasis"},{tag:hr.strong,class:"tok-strong"},{tag:hr.keyword,class:"tok-keyword"},{tag:hr.atom,class:"tok-atom"},{tag:hr.bool,class:"tok-bool"},{tag:hr.url,class:"tok-url"},{tag:hr.labelName,class:"tok-labelName"},{tag:hr.inserted,class:"tok-inserted"},{tag:hr.deleted,class:"tok-deleted"},{tag:hr.literal,class:"tok-literal"},{tag:hr.string,class:"tok-string"},{tag:hr.number,class:"tok-number"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],class:"tok-string2"},{tag:hr.variableName,class:"tok-variableName"},{tag:hr.local(hr.variableName),class:"tok-variableName tok-local"},{tag:hr.definition(hr.variableName),class:"tok-variableName tok-definition"},{tag:hr.special(hr.variableName),class:"tok-variableName2"},{tag:hr.definition(hr.propertyName),class:"tok-propertyName tok-definition"},{tag:hr.typeName,class:"tok-typeName"},{tag:hr.namespace,class:"tok-namespace"},{tag:hr.className,class:"tok-className"},{tag:hr.macroName,class:"tok-macroName"},{tag:hr.propertyName,class:"tok-propertyName"},{tag:hr.operator,class:"tok-operator"},{tag:hr.comment,class:"tok-comment"},{tag:hr.meta,class:"tok-meta"},{tag:hr.invalid,class:"tok-invalid"},{tag:hr.punctuation,class:"tok-punctuation"}]);var $ie;const NT=new Zl;function Bce(t){return ls.define({combine:t?e=>e.concat(t):void 0})}const zce=new Zl;class tb{constructor(e,o,f=[],E=""){this.data=e,this.name=E,kc.prototype.hasOwnProperty("tree")||Object.defineProperty(kc.prototype,"tree",{get(){return Gf(this)}}),this.parser=o,this.extension=[S4.of(this),kc.languageData.of((d,s,n)=>{let u=sme(d,s,n),b=u.type.prop(NT);if(!b)return[];let i=d.facet(b),S=u.type.prop(zce);if(S){let w=u.resolve(s-u.from,n);for(let y of S)if(y.test(w,d)){let m=d.facet(y.facet);return y.type=="replace"?m:m.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return sme(e,o,f).type.prop(NT)==this.data}findRegions(e){let o=e.facet(S4);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],E=(d,s)=>{if(d.prop(NT)==this.data){f.push({from:s,to:s+d.length});return}let n=d.prop(Zl.mounted);if(n){if(n.tree.prop(NT)==this.data){if(n.overlay)for(let u of n.overlay)f.push({from:u.from+s,to:u.to+s});else f.push({from:s,to:s+d.length});return}else if(n.overlay){let u=f.length;if(E(n.tree,n.overlay[0].from+s),f.length>u)return}}for(let u=0;uf.isTop?o:void 0)]}),e.name)}configure(e,o){return new O4(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gf(t){let e=t.field(tb.state,!1);return e?e.tree:gf.empty}class GAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let IL=null;class DI{constructor(e,o,f=[],E,d,s,n,u){this.parser=e,this.state=o,this.fragments=f,this.tree=E,this.treeLen=d,this.viewport=s,this.skipped=n,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new DI(e,o,[],gf.empty,0,f,[],null)}startParse(){return this.parser.startParse(new GAe(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=gf.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let E=Date.now()+e;e=()=>Date.now()>E}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(AO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=IL;IL=this;try{return e()}finally{IL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=lme(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:E,treeLen:d,viewport:s,skipped:n}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((b,i,S,w)=>u.push({fromA:b,toA:i,fromB:S,toB:w})),f=AO.applyChanges(f,u),E=gf.empty,d=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),S=e.mapPos(b.to,-1);ie.from&&(this.fragments=lme(this.fragments,E,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends Dce{createParse(o,f,E){let d=E[0].from,s=E[E.length-1].to;return{parsedPos:d,advance(){let u=IL;if(u){for(let b of E)u.tempSkipped.push(b);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=s,new gf(Jp.none,[],[],s-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return IL}}function lme(t,e,o){return AO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class fM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new fM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=DI.create(e.facet(S4).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new fM(f)}}tb.state=tm.define({create:fM.init,update(t,e){for(let o of e.effects)if(o.is(tb.setState))return o.value;return e.startState.facet(S4)!=e.state.facet(S4)?fM.init(e.state):t.apply(e)}});let Abe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Abe=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Vie=typeof navigator<"u"&&(!(($ie=navigator.scheduling)===null||$ie===void 0)&&$ie.isInputPending)?()=>navigator.scheduling.isInputPending():null,KAe=bh.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(tb.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(tb.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Abe(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndE+1e3,u=d.context.work(()=>Vie&&Vie()||Date.now()>s,E+(n?0:1e5));this.chunkBudget-=Date.now()-o,(u||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:tb.setState.of(new fM(d.context))})),this.chunkBudget>0&&!(u&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>ey(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S4=ls.define({combine(t){return t.length?t[0]:null},enables:t=>[tb.state,KAe,Xa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class YT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class HH{constructor(e,o,f,E,d,s=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=E,this.loadFunc=d,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new HH(e.name,(e.alias||[]).concat(e.name).map(E=>E.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let E of e)if(E.filename&&E.filename.test(o))return E;let f=/\.([^.]+)$/.exec(o);if(f){for(let E of e)if(E.extensions.indexOf(f[1])>-1)return E}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let E of e)if(E.alias.some(d=>d==o))return E;if(f)for(let E of e)for(let d of E.alias){let s=o.indexOf(d);if(s>-1&&(d.length>2||!/\w/.test(o[s-1])&&!/\w/.test(o[s+d.length])))return E}return null}}const JAe=ls.define(),tC=ls.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function ZH(t){let e=t.facet(tC);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function BI(t,e){let o="",f=t.tabSize,E=t.facet(tC)[0];if(E==" "){for(;e>=f;)o+=" ",e-=f;E=" "}for(let d=0;d=e?e8e(t,o,e):null}class GZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=ZH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:E,simulateDoubleBreak:d}=this.options;return E!=null&&E>=f.from&&E<=f.to?d&&E==e?{text:"",from:e}:(o<0?E-1&&(d+=s-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return kx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:E}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let s=d(E);if(s>-1)return s}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const nC=new Zl;function e8e(t,e,o){let f=e.resolveStack(o),E=f.node.enterUnfinishedNodesBefore(o);if(E!=f.node){let d=[];for(let s=E;s!=f.node;s=s.parent)d.push(s);for(let s=d.length-1;s>=0;s--)f={node:d[s],next:f}}return Mbe(f,t,o)}function Mbe(t,e,o){for(let f=t;f;f=f.next){let E=n8e(f.node);if(E)return E(Fce.create(e,o,f))}return 0}function t8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function n8e(t){let e=t.type.prop(nC);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(Zl.closedBy))){let E=t.lastChild,d=E&&f.indexOf(E.name)>-1;return s=>Ebe(s,!0,1,void 0,d&&!t8e(s)?E.from:void 0)}return t.parent==null?r8e:null}function r8e(){return 0}class Fce extends GZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new Fce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(o8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Mbe(this.context.next,this.base,this.pos)}}function o8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function i8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let E=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),s=E==null||E<=d.from?d.to:Math.min(d.to,E);for(let n=o.to;;){let u=e.childAfter(n);if(!u||u==f)return null;if(!u.type.isSkipped)return u.fromEbe(f,e,o,t)}function Ebe(t,e,o,f,E){let d=t.textAfter,s=d.match(/^\s*/)[0].length,n=f&&d.slice(s,s+f.length)==f||E==t.pos+s,u=e?i8e(t):null;return u?n?t.column(u.from):t.column(u.to):t.baseIndent+(n?0:t.unit*o)}const a8e=t=>t.baseIndent;function lI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const s8e=200;function l8e(){return kc.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,E=o.lineAt(f);if(f>E.from+s8e)return t;let d=o.sliceString(E.from,f);if(!e.some(b=>b.test(d)))return t;let{state:s}=t,n=-1,u=[];for(let{head:b}of s.selection.ranges){let i=s.doc.lineAt(b);if(i.from==n)continue;n=i.from;let S=Nce(s,i.from);if(S==null)continue;let w=/^\s*/.exec(i.text)[0],y=BI(s,S);w!=y&&u.push({from:i.from,to:i.from+w.length,insert:y})}return u.length?[t,{changes:u,sequential:!0}]:t})}const Pbe=ls.define(),E4=new Zl;function $ce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function u8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function qH(t,e,o){for(let f of t.facet(Pbe)){let E=f(t,e,o);if(E)return E}return c8e(t,e,o)}function Rbe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const KZ=Ql.define({map:Rbe}),pD=Ql.define({map:Rbe});function Lbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const XT=tm.define({create(){return Ns.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(KZ)&&!f8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(Vce),E=f?Ns.replace({widget:new y8e(f(e.state,o.value))}):cme;t=t.update({add:[E.range(o.value.from,o.value.to)]})}else o.is(pD)&&(t=t.update({filter:(f,E)=>o.value.from!=f||o.value.to!=E,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(E,d)=>{Ef&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(E,d)=>d<=f||E>=f}))}return t},provide:t=>Xa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,E)=>{o.push(f,E)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!E||E.from>d)&&(E={from:d,to:s})}),E}function f8e(t,e,o){let f=!1;return t.between(e,e,(E,d)=>{E==e&&d==o&&(f=!0)}),f}function Ibe(t,e){return t.field(XT,!1)?e:e.concat(Ql.appendConfig.of(Bbe()))}const d8e=t=>{for(let e of Lbe(t)){let o=qH(t.state,e.from,e.to);if(o)return t.dispatch({effects:Ibe(t.state,[KZ.of(o),Dbe(t,o)])}),!0}return!1},h8e=t=>{if(!t.state.field(XT,!1))return!1;let e=[];for(let o of Lbe(t)){let f=WH(t.state,o.from,o.to);f&&e.push(pD.of(f),Dbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Dbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,E=t.state.doc.lineAt(e.to).number;return Xa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${E}.`)}const p8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(XT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,E)=>{o.push(pD.of({from:f,to:E}))}),t.dispatch({effects:o}),!0},g8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:d8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:h8e},{key:"Ctrl-Alt-[",run:p8e},{key:"Ctrl-Alt-]",run:m8e}],v8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Vce=ls.define({combine(t){return E_(t,v8e)}});function Bbe(t){let e=[XT,_8e];return t&&e.push(Vce.of(t)),e}function zbe(t,e){let{state:o}=t,f=o.facet(Vce),E=s=>{let n=t.lineBlockAt(t.posAtDOM(s.target)),u=WH(t.state,n.from,n.to);u&&t.dispatch({effects:pD.of(u)}),s.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,E,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=E,d}const cme=Ns.replace({widget:new class extends Ex{toDOM(t){return zbe(t,null)}}});class y8e extends Ex{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return zbe(e,this.value)}}const b8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Uie extends IO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function x8e(t={}){let e=Object.assign(Object.assign({},b8e),t),o=new Uie(e,!0),f=new Uie(e,!1),E=bh.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(S4)!=s.state.facet(S4)||s.startState.field(XT,!1)!=s.state.field(XT,!1)||Gf(s.startState)!=Gf(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let n=new y4;for(let u of s.viewportLineBlocks){let b=WH(s.state,u.from,u.to)?f:qH(s.state,u.from,u.to)?o:null;b&&n.add(u.from,u.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[E,xAe({class:"cm-foldGutter",markers(s){var n;return((n=s.plugin(E))===null||n===void 0?void 0:n.markers)||Df.empty},initialSpacer(){return new Uie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(s,n,u)=>{if(d.click&&d.click(s,n,u))return!0;let b=WH(s.state,n.from,n.to);if(b)return s.dispatch({effects:pD.of(b)}),!0;let i=qH(s.state,n.from,n.to);return i?(s.dispatch({effects:KZ.of(i)}),!0):!1}})}),Bbe()]}const _8e=Xa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class mD{constructor(e,o){this.specs=e;let f;function E(n){let u=b4.newName();return(f||(f=Object.create(null)))["."+u]=n,u}const d=typeof o.all=="string"?o.all:o.all?E(o.all):void 0,s=o.scope;this.scope=s instanceof tb?n=>n.prop(NT)==s.data:s?n=>n==s:void 0,this.style=Cbe(e.map(n=>({tag:n.tag,class:n.class||E(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new b4(f):null,this.themeType=o.themeType}static define(e,o){return new mD(e,o||{})}}const zse=ls.define(),Nbe=ls.define({combine(t){return t.length?[t[0]]:null}});function jie(t){let e=t.facet(zse);return e.length?e:t.facet(Nbe)}function Fbe(t,e){let o=[O8e],f;return t instanceof mD&&(t.module&&o.push(Xa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(Nbe.of(t)):f?o.push(zse.computeN([Xa.darkTheme],E=>E.facet(Xa.darkTheme)==(f=="dark")?[t]:[])):o.push(zse.of(t)),o}class w8e{constructor(e){this.markCache=Object.create(null),this.tree=Gf(e.state),this.decorations=this.buildDeco(e,jie(e.state))}update(e){let o=Gf(e.state),f=jie(e.state),E=f!=jie(e.startState);o.length{f.add(s,n,this.markCache[u]||(this.markCache[u]=Ns.mark({class:u})))},E,d);return f.finish()}}const O8e=ny.high(bh.fromClass(w8e,{decorations:t=>t.decorations})),S8e=mD.define([{tag:hr.meta,color:"#404740"},{tag:hr.link,textDecoration:"underline"},{tag:hr.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strong,fontWeight:"bold"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.keyword,color:"#708"},{tag:[hr.atom,hr.bool,hr.url,hr.contentSeparator,hr.labelName],color:"#219"},{tag:[hr.literal,hr.inserted],color:"#164"},{tag:[hr.string,hr.deleted],color:"#a11"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],color:"#e40"},{tag:hr.definition(hr.variableName),color:"#00f"},{tag:hr.local(hr.variableName),color:"#30a"},{tag:[hr.typeName,hr.namespace],color:"#085"},{tag:hr.className,color:"#167"},{tag:[hr.special(hr.variableName),hr.macroName],color:"#256"},{tag:hr.definition(hr.propertyName),color:"#00c"},{tag:hr.comment,color:"#940"},{tag:hr.invalid,color:"#f00"}]),k8e=Xa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),$be=1e4,Vbe="()[]{}",Ube=ls.define({combine(t){return E_(t,{afterCursor:!0,brackets:Vbe,maxScanDistance:$be,renderMatch:A8e})}}),T8e=Ns.mark({class:"cm-matchingBracket"}),C8e=Ns.mark({class:"cm-nonmatchingBracket"});function A8e(t){let e=[],o=t.matched?T8e:C8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const M8e=tm.define({create(){return Ns.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(Ube);for(let E of e.state.selection.ranges){if(!E.empty)continue;let d=x_(e.state,E.head,-1,f)||E.head>0&&x_(e.state,E.head-1,1,f)||f.afterCursor&&(x_(e.state,E.head,1,f)||E.headXa.decorations.from(t)}),E8e=[M8e,k8e];function P8e(t={}){return[Ube.of(t),E8e]}const jbe=new Zl;function Nse(t,e,o){let f=t.prop(e<0?Zl.openedBy:Zl.closedBy);if(f)return f;if(t.name.length==1){let E=o.indexOf(t.name);if(E>-1&&E%2==(e<0?1:0))return[o[E+e]]}return null}function Fse(t){let e=t.type.prop(jbe);return e?e(t.node):t}function x_(t,e,o,f={}){let E=f.maxScanDistance||$be,d=f.brackets||Vbe,s=Gf(t),n=s.resolveInner(e,o);for(let u=n;u;u=u.parent){let b=Nse(u.type,o,d);if(b&&u.from0?e>=i.from&&ei.from&&e<=i.to))return R8e(t,e,o,u,i,b,d)}}return L8e(t,e,o,s,n.type,E,d)}function R8e(t,e,o,f,E,d,s){let n=f.parent,u={from:E.from,to:E.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),S=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let m=e+w*o;for(let a=o>0?0:y.length-1,c=o>0?y.length:-1;a!=c;a+=o){let h=s.indexOf(y[a]);if(!(h<0||f.resolveInner(m+a,1).type!=E))if(h%2==0==o>0)S++;else{if(S==1)return{start:b,end:{from:m+a,to:m+a+1},matched:h>>1==u>>1};S--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const I8e=Object.create(null),ume=[Jp.none],fme=[],dme=Object.create(null),D8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])D8e[t]=B8e(I8e,e);function Qie(t,e){fme.indexOf(t)>-1||(fme.push(t),console.warn(e))}function B8e(t,e){let o=[];for(let n of e.split(" ")){let u=[];for(let b of n.split(".")){let i=t[b]||hr[b];i?typeof i=="function"?u.length?u=u.map(i):Qie(b,`Modifier ${b} used at start of tag`):u.length?Qie(b,`Tag ${b} used as modifier`):u=Array.isArray(i)?i:[i]:Qie(b,`Unknown highlighting tag ${b}`)}for(let b of u)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),E=f+" "+o.map(n=>n.id),d=dme[E];if(d)return d.id;let s=dme[E]=Jp.define({id:ume.length,name:f,props:[M4({[f]:o})]});return ume.push(s),s.id}const z8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=jce(t.state,o.from);return f.line?N8e(t):f.block?$8e(t):!1};function Uce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let E=t(e,o);return E?(f(o.update(E)),!0):!1}}const N8e=Uce(j8e,0),F8e=Uce(Qbe,0),$8e=Uce((t,e)=>Qbe(t,e,U8e(e)),0);function jce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const DL=50;function V8e(t,{open:e,close:o},f,E){let d=t.sliceDoc(f-DL,f),s=t.sliceDoc(E,E+DL),n=/\s*$/.exec(d)[0].length,u=/^\s*/.exec(s)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&s.slice(u,u+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:E+u,margin:u&&1}};let i,S;E-f<=2*DL?i=S=t.sliceDoc(f,E):(i=t.sliceDoc(f,f+DL),S=t.sliceDoc(E-DL,E));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(S)[0].length,m=S.length-y-o.length;return i.slice(w,w+e.length)==e&&S.slice(m,m+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:E-y-o.length,margin:/\s/.test(S.charAt(m-1))?1:0}}:null}function U8e(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),E=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=E.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:E.to})}return e}function Qbe(t,e,o=e.selection.ranges){let f=o.map(d=>jce(e,d.from).block);if(!f.every(d=>d))return null;let E=o.map((d,s)=>V8e(e,f[s],d.from,d.to));if(t!=2&&!E.every(d=>d))return{changes:e.changes(o.map((d,s)=>E[s]?[]:[{from:d.from,insert:f[s].open+" "},{from:d.to,insert:" "+f[s].close}]))};if(t!=1&&E.some(d=>d)){let d=[];for(let s=0,n;sE&&(d==s||s>S.from)){E=S.from;let w=/^\s*/.exec(S.text)[0].length,y=w==S.length,m=S.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:u,indent:b,empty:i,single:S}of f)(S||!i)&&d.push({from:n.from+b,insert:u+" "});let s=e.changes(d);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:s,comment:n,token:u}of f)if(n>=0){let b=s.from+n,i=b+u.length;s.text[i-s.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const $se=NO.define(),Q8e=NO.define(),H8e=ls.define(),Hbe=ls.define({combine(t){return E_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,E)=>e(f,E)||o(f,E)})}}),Zbe=tm.define({create(){return __.empty},update(t,e){let o=e.state.facet(Hbe),f=e.annotation($se);if(f){let u=F1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return u?i=YH(i,i.length,o.minDepth,u):i=Ybe(i,e.startState.selection),new __(b==0?f.rest:i,b==0?i:f.rest)}let E=e.annotation(Q8e);if((E=="full"||E=="before")&&(t=t.isolate()),e.annotation(Xp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=F1.fromTransaction(e),s=e.annotation(Xp.time),n=e.annotation(Xp.userEvent);return d?t=t.addChanges(d,s,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,s,n,o.newGroupDelay)),(E=="full"||E=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new __(t.done.map(F1.fromJSON),t.undone.map(F1.fromJSON))}});function Z8e(t={}){return[Zbe,Hbe.of(t),Xa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?qbe:e.inputType=="historyRedo"?Vse:null;return f?(e.preventDefault(),f(o)):!1}})]}function JZ(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let E=o.field(Zbe,!1);if(!E)return!1;let d=E.pop(t,o,e);return d?(f(d),!0):!1}}const qbe=JZ(0,!1),Vse=JZ(1,!1),q8e=JZ(0,!0),W8e=JZ(1,!0);class F1{constructor(e,o,f,E,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=E,this.selectionsAfter=d}setSelAfter(e){return new F1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(E=>E.toJSON())}}static fromJSON(e){return new F1(e.changes&&Wp.fromJSON(e.changes),[],e.mapped&&k_.fromJSON(e.mapped),e.startSelection&&hi.fromJSON(e.startSelection),e.selectionsAfter.map(hi.fromJSON))}static fromTransaction(e,o){let f=nb;for(let E of e.startState.facet(H8e)){let d=E(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new F1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,nb)}static selection(e){return new F1(void 0,nb,void 0,void 0,e)}}function YH(t,e,o,f){let E=e+1>o+20?e-o-1:0,d=t.slice(E,e);return d.push(f),d}function Y8e(t,e){let o=[],f=!1;return t.iterChangedRanges((E,d)=>o.push(E,d)),e.iterChangedRanges((E,d,s,n)=>{for(let u=0;u=b&&s<=i&&(f=!0)}}),f}function X8e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function Wbe(t,e){return t.length?e.length?t.concat(e):t:e}const nb=[],G8e=200;function Ybe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-G8e));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),YH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[F1.selection([e])]}function K8e(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Hie(t,e){if(!t.length)return t;let o=t.length,f=nb;for(;o;){let E=J8e(t[o-1],e,f);if(E.changes&&!E.changes.empty||E.effects.length){let d=t.slice(0,o);return d[o-1]=E,d}else e=E.mapped,o--,f=E.selectionsAfter}return f.length?[F1.selection(f)]:nb}function J8e(t,e,o){let f=Wbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):nb,o);if(!t.changes)return F1.selection(f);let E=t.changes.map(e),d=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(d):d;return new F1(E,Ql.mapEffects(t.effects,e),s,t.startSelection.map(d),f)}const eMe=/^(input\.type|delete)($|\.)/;class __{constructor(e,o,f=0,E=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=E}isolate(){return this.prevTime?new __(this.done,this.undone):this}addChanges(e,o,f,E,d){let s=this.done,n=s[s.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||eMe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):eq(o,e))}function t0(t){return t.textDirectionAt(t.state.selection.main.head)==zh.LTR}const Gbe=t=>Xbe(t,!t0(t)),Kbe=t=>Xbe(t,t0(t));function Jbe(t,e){return Px(t,o=>o.empty?t.moveByGroup(o,e):eq(o,e))}const nMe=t=>Jbe(t,!t0(t)),rMe=t=>Jbe(t,t0(t));function oMe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function tq(t,e,o){let f=Gf(t).resolveInner(e.head),E=o?Zl.closedBy:Zl.openedBy;for(let u=e.head;;){let b=o?f.childAfter(u):f.childBefore(u);if(!b)break;oMe(t,b,E)?f=b:u=o?b.to:b.from}let d=f.type.prop(E),s,n;return d&&(s=o?x_(t,f.from,1):x_(t,f.to,-1))&&s.matched?n=o?s.end.to:s.end.from:n=o?f.to:f.from,hi.cursor(n,o?-1:1)}const iMe=t=>Px(t,e=>tq(t.state,e,!t0(t))),aMe=t=>Px(t,e=>tq(t.state,e,t0(t)));function exe(t,e){return Px(t,o=>{if(!o.empty)return eq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const txe=t=>exe(t,!1),nxe=t=>exe(t,!0);function rxe(t){let e=t.scrollDOM.clientHeights.empty?t.moveVertically(s,e,o.height):eq(s,e));if(E.eq(f.selection))return!1;let d;if(o.selfScroll){let s=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),u=n.top+o.marginTop,b=n.bottom-o.marginBottom;s&&s.top>u&&s.bottomoxe(t,!1),Use=t=>oxe(t,!0);function P4(t,e,o){let f=t.lineBlockAt(e.head),E=t.moveToLineBoundary(e,o);if(E.head==e.head&&E.head!=(o?f.to:f.from)&&(E=t.moveToLineBoundary(e,o,!1)),!o&&E.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(E=hi.cursor(f.from+d))}return E}const sMe=t=>Px(t,e=>P4(t,e,!0)),lMe=t=>Px(t,e=>P4(t,e,!1)),cMe=t=>Px(t,e=>P4(t,e,!t0(t))),uMe=t=>Px(t,e=>P4(t,e,t0(t))),fMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).from,1)),dMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).to,-1));function hMe(t,e,o){let f=!1,E=AM(t.selection,d=>{let s=x_(t,d.head,-1)||x_(t,d.head,1)||d.head>0&&x_(t,d.head-1,1)||d.headhMe(t,e,!1);function lb(t,e){let o=AM(t.state.selection,f=>{let E=e(f);return hi.range(f.anchor,E.head,E.goalColumn,E.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(P_(t.state,o)),!0)}function ixe(t,e){return lb(t,o=>t.moveByChar(o,e))}const axe=t=>ixe(t,!t0(t)),sxe=t=>ixe(t,t0(t));function lxe(t,e){return lb(t,o=>t.moveByGroup(o,e))}const mMe=t=>lxe(t,!t0(t)),gMe=t=>lxe(t,t0(t)),vMe=t=>lb(t,e=>tq(t.state,e,!t0(t))),yMe=t=>lb(t,e=>tq(t.state,e,t0(t)));function cxe(t,e){return lb(t,o=>t.moveVertically(o,e))}const uxe=t=>cxe(t,!1),fxe=t=>cxe(t,!0);function dxe(t,e){return lb(t,o=>t.moveVertically(o,e,rxe(t).height))}const pme=t=>dxe(t,!1),mme=t=>dxe(t,!0),bMe=t=>lb(t,e=>P4(t,e,!0)),xMe=t=>lb(t,e=>P4(t,e,!1)),_Me=t=>lb(t,e=>P4(t,e,!t0(t))),wMe=t=>lb(t,e=>P4(t,e,t0(t))),OMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).from)),SMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).to)),gme=({state:t,dispatch:e})=>(e(P_(t,{anchor:0})),!0),vme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.doc.length})),!0),yme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:0})),!0),bme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),kMe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),TMe=({state:t,dispatch:e})=>{let o=nq(t).map(({from:f,to:E})=>hi.range(f,Math.min(E+1,t.doc.length)));return e(t.update({selection:hi.create(o),userEvent:"select"})),!0},CMe=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var E;let d=Gf(t).resolveStack(f.from,1);for(let s=d;s;s=s.next){let{node:n}=s;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((E=n.parent)===null||E===void 0)&&E.parent))return hi.range(n.to,n.from)}return f});return e(P_(t,o)),!0},AMe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=hi.create([o.main]):o.main.empty||(f=hi.create([hi.cursor(o.main.head)])),f?(e(P_(t,f)),!0):!1};function gD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,E=f.changeByRange(d=>{let{from:s,to:n}=d;if(s==n){let u=e(d);us&&(o="delete.forward",u=zQ(t,u,!0)),s=Math.min(s,u),n=Math.max(n,u)}else s=zQ(t,s,!1),n=zQ(t,n,!0);return s==n?{range:d}:{changes:{from:s,to:n},range:hi.cursor(s,sE(t)))f.between(e,e,(E,d)=>{Ee&&(e=o?d:E)});return e}const hxe=(t,e)=>gD(t,o=>{let f=o.from,{state:E}=t,d=E.doc.lineAt(f),s,n;if(!e&&f>d.from&&fhxe(t,!1),pxe=t=>hxe(t,!0),mxe=(t,e)=>gD(t,o=>{let f=o.head,{state:E}=t,d=E.doc.lineAt(f),s=E.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?E.doc.lines:1)&&(f+=e?1:-1);break}let u=cg(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,u)-d.from,Math.max(f,u)-d.from),i=s(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=u}return f}),gxe=t=>mxe(t,!1),MMe=t=>mxe(t,!0),EMe=t=>gD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headgD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),RMe=t=>gD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:Qu.of(["",""])},range:hi.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},IMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let E=f.from,d=t.doc.lineAt(E),s=E==d.from?E-1:cg(d.text,E-d.from,!1)+d.from,n=E==d.to?E+1:cg(d.text,E-d.from,!0)+d.from;return{changes:{from:s,to:n,insert:t.doc.slice(E,n).append(t.doc.slice(s,E))},range:hi.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function nq(t){let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=E.number){let s=e[e.length-1];s.to=d.to,s.ranges.push(f)}else e.push({from:E.from,to:d.to,ranges:[f]});o=d.number+1}return e}function vxe(t,e,o){if(t.readOnly)return!1;let f=[],E=[];for(let d of nq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let s=t.doc.lineAt(o?d.to+1:d.from-1),n=s.length+1;if(o){f.push({from:d.to,to:s.to},{from:d.from,insert:s.text+t.lineBreak});for(let u of d.ranges)E.push(hi.range(Math.min(t.doc.length,u.anchor+n),Math.min(t.doc.length,u.head+n)))}else{f.push({from:s.from,to:d.from},{from:d.to,insert:t.lineBreak+s.text});for(let u of d.ranges)E.push(hi.range(u.anchor-n,u.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:hi.create(E,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const DMe=({state:t,dispatch:e})=>vxe(t,e,!1),BMe=({state:t,dispatch:e})=>vxe(t,e,!0);function yxe(t,e,o){if(t.readOnly)return!1;let f=[];for(let E of nq(t))o?f.push({from:E.from,insert:t.doc.slice(E.from,E.to)+t.lineBreak}):f.push({from:E.to,insert:t.lineBreak+t.doc.slice(E.from,E.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const zMe=({state:t,dispatch:e})=>yxe(t,e,!1),NMe=({state:t,dispatch:e})=>yxe(t,e,!0),FMe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(nq(e).map(({from:E,to:d})=>(E>0?E--:dt.moveVertically(E,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function $Me(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gf(t).resolveInner(e),f=o.childBefore(e),E=o.childAfter(e),d;return f&&E&&f.to<=e&&E.from>=e&&(d=f.type.prop(Zl.closedBy))&&d.indexOf(E.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(E.from).from&&!/\S/.test(t.sliceDoc(f.to,E.from))?{from:f.to,to:E.from}:null}const VMe=bxe(!1),UMe=bxe(!0);function bxe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(E=>{let{from:d,to:s}=E,n=e.doc.lineAt(d),u=!t&&d==s&&$Me(e,d);t&&(d=s=(s<=n.to?n:e.doc.lineAt(s)).to);let b=new GZ(e,{simulateBreak:d,simulateDoubleBreak:!!u}),i=Nce(b,d);for(i==null&&(i=kx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));sn.from&&d{let E=[];for(let s=f.from;s<=f.to;){let n=t.doc.lineAt(s);n.number>o&&(f.empty||f.to>n.from)&&(e(n,E,f),o=n.number),s=n.to+1}let d=t.changes(E);return{changes:E,range:hi.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const jMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new GZ(t,{overrideIndentation:d=>{let s=o[d];return s??-1}}),E=Qce(t,(d,s,n)=>{let u=Nce(f,d.from);if(u==null)return;/\S/.test(d.text)||(u=0);let b=/^\s*/.exec(d.text)[0],i=BI(t,u);(b!=i||n.fromt.readOnly?!1:(e(t.update(Qce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(tC)})}),{userEvent:"input.indent"})),!0),_xe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Qce(t,(o,f)=>{let E=/^\s*/.exec(o.text)[0];if(!E)return;let d=kx(E,t.tabSize),s=0,n=BI(t,Math.max(0,d-ZH(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),ZMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:iMe,shift:vMe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:aMe,shift:yMe},{key:"Alt-ArrowUp",run:DMe},{key:"Shift-Alt-ArrowUp",run:zMe},{key:"Alt-ArrowDown",run:BMe},{key:"Shift-Alt-ArrowDown",run:NMe},{key:"Escape",run:AMe},{key:"Mod-Enter",run:UMe},{key:"Alt-l",mac:"Ctrl-l",run:TMe},{key:"Mod-i",run:CMe,preventDefault:!0},{key:"Mod-[",run:_xe},{key:"Mod-]",run:xxe},{key:"Mod-Alt-\\",run:jMe},{key:"Shift-Mod-k",run:FMe},{key:"Shift-Mod-\\",run:pMe},{key:"Mod-/",run:z8e},{key:"Alt-A",run:F8e}].concat(HMe),qMe={key:"Tab",run:xxe,shift:_xe};function zd(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var E=o[f];typeof E=="string"?t.setAttribute(f,E):E!=null&&(t[f]=E)}e++}for(;et.normalize("NFKD"):t=>t;class dM{constructor(e,o,f=0,E=e.length,d,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,E),this.bufferStart=f,this.normalize=d?n=>d(xme(n)):xme,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ag(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=xce(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Ky(e);let E=this.normalize(o);for(let d=0,s=f;;d++){let n=E.charCodeAt(d),u=this.match(n,s);if(d==E.length-1){if(u)return this.value=u,this;break}s==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,E=f+o[0].length;if(this.matchPos=XH(this.text,E+(f==E?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||E.to<=o){let n=new K8(o,e.sliceString(o,f));return Zie.set(e,n),n}if(E.from==o&&E.to==f)return E;let{text:d,from:s}=E;return s>o&&(d=e.sliceString(o,s)+d,s=o),E.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,E=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this.matchPos=XH(this.text,E+(f==E?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=K8.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Sxe.prototype[Symbol.iterator]=kxe.prototype[Symbol.iterator]=function(){return this});function WMe(t){try{return new RegExp(t,Hce),!0}catch{return!1}}function XH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Qse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=zd("input",{class:"cm-textfield",name:"line",value:e}),f=zd("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:GH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),E())},onsubmit:d=>{d.preventDefault(),E()}},zd("label",t.state.phrase("Go to line"),": ",o)," ",zd("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function E(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:s}=t,n=s.doc.lineAt(s.selection.main.head),[,u,b,i,S]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&S){let c=y/100;u&&(c=c*(u=="-"?-1:1)+n.number/s.doc.lines),y=Math.round(s.doc.lines*c)}else b&&u&&(y=y*(u=="-"?-1:1)+n.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,y))),a=hi.cursor(m.from+Math.max(0,Math.min(w,m.length)));t.dispatch({effects:[GH.of(!1),Xa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const GH=Ql.define(),_me=tm.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(GH)&&(t=o.value);return t},provide:t=>RI.from(t,e=>e?Qse:null)}),YMe=t=>{let e=PI(t,Qse);if(!e){let o=[GH.of(!0)];t.state.field(_me,!1)==null&&o.push(Ql.appendConfig.of([_me,XMe])),t.dispatch({effects:o}),e=PI(t,Qse)}return e&&e.dom.querySelector("input").select(),!0},XMe=Xa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),GMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Txe=ls.define({combine(t){return E_(t,GMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function KMe(t){let e=[rEe,nEe];return t&&e.push(Txe.of(t)),e}const JMe=Ns.mark({class:"cm-selectionMatch"}),eEe=Ns.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function wme(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=yh.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=yh.Word)}function tEe(t,e,o,f){return t(e.sliceDoc(o,o+1))==yh.Word&&t(e.sliceDoc(f-1,f))==yh.Word}const nEe=bh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Txe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return Ns.none;let E=f.main,d,s=null;if(E.empty){if(!e.highlightWordAroundCursor)return Ns.none;let u=o.wordAt(E.head);if(!u)return Ns.none;s=o.charCategorizer(E.head),d=o.sliceDoc(u.from,u.to)}else{let u=E.to-E.from;if(u200)return Ns.none;if(e.wholeWords){if(d=o.sliceDoc(E.from,E.to),s=o.charCategorizer(E.head),!(wme(s,o,E.from,E.to)&&tEe(s,o,E.from,E.to)))return Ns.none}else if(d=o.sliceDoc(E.from,E.to).trim(),!d)return Ns.none}let n=[];for(let u of t.visibleRanges){let b=new dM(o.doc,d,u.from,u.to);for(;!b.next().done;){let{from:i,to:S}=b.value;if((!s||wme(s,o,i,S))&&(E.empty&&i<=E.from&&S>=E.to?n.push(eEe.range(i,S)):(i>=E.to||S<=E.from)&&n.push(JMe.range(i,S)),n.length>e.maxMatches))return Ns.none}}return Ns.set(n)}},{decorations:t=>t.decorations}),rEe=Xa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),oEe=({state:t,dispatch:e})=>{let{selection:o}=t,f=hi.create(o.ranges.map(E=>t.wordAt(E.head)||hi.cursor(E.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function iEe(t,e){let{main:o,ranges:f}=t.selection,E=t.wordAt(o.head),d=E&&E.from==o.from&&E.to==o.to;for(let s=!1,n=new dM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(s)return null;n=new dM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),s=!0}else{if(s&&f.some(u=>u.from==n.value.from))continue;if(d){let u=t.wordAt(n.value.from);if(!u||u.from!=n.value.from||u.to!=n.value.to)continue}return n.value}}const aEe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return oEe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let E=iEe(t,f);return E?(e(t.update({selection:t.selection.addRange(hi.range(E.from,E.to),!1),effects:Xa.scrollIntoView(E.to)})),!0):!1},MM=ls.define({combine(t){return E_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new yEe(e),scrollToMatch:e=>Xa.scrollIntoView(e)})}});class Cxe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||WMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` +`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new uEe(this):new lEe(this)}getCursor(e,o=0,f){let E=e.doc?e:kc.create({doc:e});return f==null&&(f=E.doc.length),this.regexp?z8(this,E,o,f):B8(this,E,o,f)}}class Axe{constructor(e){this.spec=e}}function B8(t,e,o,f){return new dM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:E=>E.toLowerCase(),t.wholeWord?sEe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function sEe(t,e){return(o,f,E,d)=>((d>o||d+E.length=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=B8(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}function z8(t,e,o,f){return new Sxe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?cEe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function KH(t,e){return t.slice(cg(t,e,!1),e)}function JH(t,e){return t.slice(e,cg(t,e))}function cEe(t){return(e,o,f)=>!f[0].length||(t(KH(f.input,f.index))!=yh.Word||t(JH(f.input,f.index))!=yh.Word)&&(t(JH(f.input,f.index+f[0].length))!=yh.Word||t(KH(f.input,f.index+f[0].length))!=yh.Word)}class uEe extends Axe{nextMatch(e,o,f){let E=z8(this.spec,e,f,e.doc.length).next();return E.done&&(E=z8(this.spec,e,0,o).next()),E.done?null:E.value}prevMatchInRange(e,o,f){for(let E=1;;E++){let d=Math.max(o,f-E*1e4),s=z8(this.spec,e,d,f),n=null;for(;!s.next().done;)n=s.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=z8(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}const zI=Ql.define(),Zce=Ql.define(),m4=tm.define({create(t){return new qie(Hse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(zI)?t=new qie(o.value.create(),t.panel):o.is(Zce)&&(t=new qie(t.query,o.value?qce:null));return t},provide:t=>RI.from(t,e=>e.panel)});class qie{constructor(e,o){this.query=e,this.panel=o}}const fEe=Ns.mark({class:"cm-searchMatch"}),dEe=Ns.mark({class:"cm-searchMatch cm-searchMatch-selected"}),hEe=bh.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(m4))}update(t){let e=t.state.field(m4);(e!=t.startState.field(m4)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ns.none;let{view:o}=this,f=new y4;for(let E=0,d=o.visibleRanges,s=d.length;Ed[E+1].from-2*250;)u=d[++E].to;t.highlight(o.state,n,u,(b,i)=>{let S=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,S?dEe:fEe)})}return f.finish()}},{decorations:t=>t.decorations});function vD(t){return e=>{let o=e.state.field(m4,!1);return o&&o.query.spec.valid?t(e,o):Pxe(e)}}const eZ=vD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let E=hi.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:E,effects:[Wce(t,f),d.scrollToMatch(E.main,t)],userEvent:"select.search"}),Exe(t),!0}),tZ=vD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,E=e.prevMatch(o,f,f);if(!E)return!1;let d=hi.single(E.from,E.to),s=t.state.facet(MM);return t.dispatch({selection:d,effects:[Wce(t,E),s.scrollToMatch(d.main,t)],userEvent:"select.search"}),Exe(t),!0}),pEe=vD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:hi.create(o.map(f=>hi.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),mEe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:E}=o.main,d=[],s=0;for(let n=new dM(t.doc,t.sliceDoc(f,E));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(s=d.length),d.push(hi.range(n.value.from,n.value.to))}return e(t.update({selection:hi.create(d,s),userEvent:"select.search.matches"})),!0},Ome=vD((t,{query:e})=>{let{state:o}=t,{from:f,to:E}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let s=[],n,u,b=[];if(d.from==f&&d.to==E&&(u=o.toText(e.getReplacement(d)),s.push({from:d.from,to:d.to,insert:u}),d=e.nextMatch(o,d.from,d.to),b.push(Xa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=s.length==0||s[0].from>=d.to?0:d.to-d.from-u.length;n=hi.single(d.from-i,d.to-i),b.push(Wce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:s,selection:n,effects:b,userEvent:"input.replace"}),!0}),gEe=vD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(E=>{let{from:d,to:s}=E;return{from:d,to:s,insert:e.getReplacement(E)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Xa.announce.of(f),userEvent:"input.replace.all"}),!0});function qce(t){return t.state.facet(MM).createPanel(t)}function Hse(t,e){var o,f,E,d,s;let n=t.selection.main,u=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!u)return e;let b=t.facet(MM);return new Cxe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(E=e==null?void 0:e.literal)!==null&&E!==void 0?E:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:b.wholeWord})}function Mxe(t){let e=PI(t,qce);return e&&e.dom.querySelector("[main-field]")}function Exe(t){let e=Mxe(t);e&&e==t.root.activeElement&&e.select()}const Pxe=t=>{let e=t.state.field(m4,!1);if(e&&e.panel){let o=Mxe(t);if(o&&o!=t.root.activeElement){let f=Hse(t.state,e.query.spec);f.valid&&t.dispatch({effects:zI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[Zce.of(!0),e?zI.of(Hse(t.state,e.query.spec)):Ql.appendConfig.of(xEe)]});return!0},Rxe=t=>{let e=t.state.field(m4,!1);if(!e||!e.panel)return!1;let o=PI(t,qce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Zce.of(!1)}),!0},vEe=[{key:"Mod-f",run:Pxe,scope:"editor search-panel"},{key:"F3",run:eZ,shift:tZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:eZ,shift:tZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Rxe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:mEe},{key:"Mod-Alt-g",run:YMe},{key:"Mod-d",run:aEe,preventDefault:!0}];class yEe{constructor(e){this.view=e;let o=this.query=e.state.field(m4).query.spec;this.commit=this.commit.bind(this),this.searchField=zd("input",{value:o.search,placeholder:Uv(e,"Find"),"aria-label":Uv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=zd("input",{value:o.replace,placeholder:Uv(e,"Replace"),"aria-label":Uv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=zd("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=zd("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=zd("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(E,d,s){return zd("button",{class:"cm-button",name:E,onclick:d,type:"button"},s)}this.dom=zd("div",{onkeydown:E=>this.keydown(E),class:"cm-search"},[this.searchField,f("next",()=>eZ(e),[Uv(e,"next")]),f("prev",()=>tZ(e),[Uv(e,"previous")]),f("select",()=>pEe(e),[Uv(e,"all")]),zd("label",null,[this.caseField,Uv(e,"match case")]),zd("label",null,[this.reField,Uv(e,"regexp")]),zd("label",null,[this.wordField,Uv(e,"by word")]),...e.state.readOnly?[]:[zd("br"),this.replaceField,f("replace",()=>Ome(e),[Uv(e,"replace")]),f("replaceAll",()=>gEe(e),[Uv(e,"replace all")])],zd("button",{name:"close",onclick:()=>Rxe(e),"aria-label":Uv(e,"close"),type:"button"},["×"])])}commit(){let e=new Cxe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:zI.of(e)}))}keydown(e){M6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?tZ:eZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Ome(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(zI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Uv(t,e){return t.state.phrase(e)}const NQ=30,FQ=/[\s\.,:;?!]/;function Wce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),E=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-NQ),s=Math.min(E,o+NQ),n=t.state.sliceDoc(d,s);if(d!=f.from){for(let u=0;un.length-NQ;u--)if(!FQ.test(n[u-1])&&FQ.test(n[u])){n=n.slice(0,u);break}}return Xa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const bEe=Xa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),xEe=[m4,ny.low(hEe),bEe];class Yce{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gf(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),E=o.text.slice(f-o.from,this.pos-o.from),d=E.search(Lxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:E.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Sme(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function _Ee(t){let e=Object.create(null),o=Object.create(null);for(let{label:E}of t){e[E[0]]=!0;for(let d=1;dtypeof E=="string"?{label:E}:E),[o,f]=e.every(E=>/^\w+$/.test(E.label))?[/\w*$/,/\w+$/]:_Ee(e);return E=>{let d=E.matchBefore(f);return d||E.explicit?{from:d?d.from:E.pos,options:e,validFor:o}:null}}function Xce(t,e){return o=>{for(let f=Gf(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class kme{constructor(e,o,f,E){this.completion=e,this.source=o,this.match=f,this.score=E}}function g4(t){return t.selection.main.from}function Lxe(t,e){var o;let{source:f}=t,E=e&&f[0]!="^",d=f[f.length-1]!="$";return!E&&!d?t:new RegExp(`${E?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const Ixe=NO.define();function wEe(t,e,o,f){let{main:E}=t.selection,d=o-E.from,s=f-E.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=E&&o!=f&&t.sliceDoc(n.from+d,n.from+s)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==E.from?n.to:n.from+s,insert:e},range:hi.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Tme=new WeakMap;function OEe(t){if(!Array.isArray(t))return t;let e=Tme.get(t);return e||Tme.set(t,e=rq(t)),e}const Gce=Ql.define(),NI=Ql.define();class SEe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&O<=57||O>=97&&O<=122?2:O>=65&&O<=90?1:0:(C=xce(O))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!p||x==1&&c||_==0&&x!=0)&&(o[S]==O||f[S]==O&&(w=!0)?s[S++]=p:s.length&&(h=!1)),_=x,p+=Ky(O)}return S==u&&s[0]==0&&h?this.result(-100+(w?-200:0),s,e):y==u&&m==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==u?this.ret(-200+-700-e.length,[m,a]):S==u?this.result(-100+(w?-200:0)+-700+(h?0:-1100),s,e):o.length==2?!1:this.result((E[0]?-700:0)+-200+-1100,E,e)}result(e,o,f){let E=[],d=0;for(let s of o){let n=s+(this.astral?Ky(ag(f,s)):1);d&&E[d-1]==s?E[d-1]=n:(E[d++]=s,E[d++]=n)}return this.ret(e-f.length,E)}}const Kg=ls.define({combine(t){return E_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:kEe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Cme(e(f),o(f)),optionClass:(e,o)=>f=>Cme(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Cme(t,e){return t?e?t+" "+e:t:e}function kEe(t,e,o,f,E,d){let s=t.textDirection==zh.RTL,n=s,u=!1,b="top",i,S,w=e.left-E.left,y=E.right-e.right,m=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||p>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let c=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/c}px; max-width: ${S/h}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":n?"left":"right")}}function TEe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(E=>"cm-completionIcon-"+E)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,E,d){let s=document.createElement("span");s.className="cm-completionLabel";let n=o.displayLabel||o.label,u=0;for(let b=0;bu&&s.appendChild(document.createTextNode(n.slice(u,i)));let w=s.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,S))),w.className="cm-completionMatchedText",u=S}return uo.position-f.position).map(o=>o.render)}function Wie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let E=Math.floor(e/o);return{from:E*o,to:(E+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class CEe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:u=>this.placeInfo(u),key:this},this.space=null,this.currentClass="";let E=e.state.field(o),{options:d,selected:s}=E.open,n=e.state.facet(Kg);this.optionContent=TEe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Wie(d.length,s,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",u=>{let{options:b}=e.state.field(o).open;for(let i=u.target,S;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(S=/-(\d+)$/.exec(i.id))&&+S[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Kg).closeOnBlur&&u.relatedTarget!=e.contentDOM&&e.dispatch({effects:NI.of(null)})}),this.showOptions(d,E.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),E=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=E){let{options:d,selected:s,disabled:n}=f.open;(!E.open||E.open.options!=d)&&(this.range=Wie(d.length,s,e.state.facet(Kg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=E.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Wie(o.options.length,o.selected,this.view.state.facet(Kg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:E}=f;if(!E)return;let d=typeof E=="string"?document.createTextNode(E):E(f);if(!d)return;"then"in d?d.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,f)}).catch(s=>ey(this.view.state,s,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:E,destroy:d}=e;f.appendChild(E),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,E=this.range.from;f;f=f.nextSibling,E++)f.nodeName!="LI"||!f.id?E--:E==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&MEe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),E=e.getBoundingClientRect(),d=this.space;if(!d){let s=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return E.top>Math.min(d.bottom,o.bottom)-10||E.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)E.appendChild(b.header(b));else{let y=E.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=E.appendChild(document.createElement("li"));i.id=o+"-"+s,i.setAttribute("role","option");let S=this.optionClass(n);S&&(i.className=S);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,u);y&&i.appendChild(y)}}return f.from&&E.classList.add("cm-completionListIncompleteTop"),f.tonew CEe(o,t,e)}function MEe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),E=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/E)}function Ame(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function EEe(t,e){let o=[],f=null,E=u=>{o.push(u);let{section:b}=u.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(S=>S.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let u of t)if(u.hasResult()){let b=u.result.getMatch;if(u.result.filter===!1)for(let i of u.result.options)E(new kme(i,u.source,b?b(i):[],1e9-o.length));else{let i=new SEe(e.sliceDoc(u.from,u.to));for(let S of u.result.options)if(i.match(S.label)){let w=S.displayLabel?b?b(S,i.matched):[]:i.matched;E(new kme(S,u.source,w,i.score+(S.boost||0)))}}}if(f){let u=Object.create(null),b=0,i=(S,w)=>{var y,m;return((y=S.rank)!==null&&y!==void 0?y:1e9)-((m=w.rank)!==null&&m!==void 0?m:1e9)||(S.namei.score-b.score||n(b.completion,i.completion))){let b=u.completion;!s||s.label!=b.label||s.detail!=b.detail||s.type!=null&&b.type!=null&&s.type!=b.type||s.apply!=b.apply||s.boost!=b.boost?d.push(u):Ame(u.completion)>Ame(s)&&(d[d.length-1]=u),s=u.completion}return d}class V8{constructor(e,o,f,E,d,s){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=E,this.selected=d,this.disabled=s}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new V8(this.options,Mme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,E,d){let s=EEe(e,o);if(!s.length)return E&&e.some(u=>u.state==1)?new V8(E.options,E.attrs,E.tooltip,E.timestamp,E.selected,!0):null;let n=o.facet(Kg).selectOnOpen?0:-1;if(E&&E.selected!=n&&E.selected!=-1){let u=E.options[E.selected].completion;for(let b=0;bb.hasResult()?Math.min(u,b.from):u,1e8),create:DEe,above:d.aboveCursor},E?E.timestamp:Date.now(),n,!1)}map(e){return new V8(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class nZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new nZ(LEe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Kg),d=(f.override||o.languageDataAt("autocomplete",g4(o)).map(OEe)).map(n=>(this.active.find(b=>b.source==n)||new B1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,u)=>n==this.active[u])&&(d=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!PEe(d,this.active)?s=V8.build(d,o,this.id,s,f):s&&s.disabled&&!d.some(n=>n.state==1)&&(s=null),!s&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new B1(n.source,0):n));for(let n of e.effects)n.is(Bxe)&&(s=s&&s.setSelected(n.value,this.id));return d==this.active&&s==this.open?this:new nZ(d,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:REe}}function PEe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const LEe=[];function Zse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class B1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Zse(e),E=this;f?E=E.handleUserEvent(e,f,o):e.docChanged?E=E.handleChange(e):e.selection&&E.state!=0&&(E=new B1(E.source,0));for(let d of e.effects)if(d.is(Gce))E=new B1(E.source,1,d.value?g4(e.state):-1);else if(d.is(NI))E=new B1(E.source,0);else if(d.is(Dxe))for(let s of d.value)s.source==E.source&&(E=s);return E}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new B1(this.source,1)}handleChange(e){return e.changes.touchesRange(g4(e.startState))?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new B1(this.source,this.state,e.mapPos(this.explicitPos))}}class J8 extends B1{constructor(e,o,f,E,d){super(e,2,o),this.result=f,this.from=E,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var E;let d=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),n=g4(e.state);if((this.explicitPos<0?n<=d:ns||o=="delete"&&g4(e.startState)==this.from)return new B1(this.source,o=="input"&&f.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return IEe(this.result.validFor,e.state,d,s)?new J8(this.source,u,this.result,d,s):this.result.update&&(b=this.result.update(this.result,d,s,new Yce(e.state,n,u>=0)))?new J8(this.source,u,b,b.from,(E=b.to)!==null&&E!==void 0?E:g4(e.state)):new B1(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new J8(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function IEe(t,e,o,f){if(!t)return!1;let E=e.sliceDoc(o,f);return typeof t=="function"?t(E,o,f,e):Lxe(t,!0).test(E)}const Dxe=Ql.define({map(t,e){return t.map(o=>o.map(e))}}),Bxe=Ql.define(),Wv=tm.define({create(){return nZ.start()},update(t,e){return t.update(e)},provide:t=>[Ece.from(t,e=>e.tooltip),Xa.contentAttributes.from(t,e=>e.attrs)]});function zxe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Wv).active.find(E=>E.source==e.source);return f instanceof J8?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},wEe(t.state,o,f.from,f.to)),{annotations:Ixe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const DEe=AEe(Wv,zxe);function $Q(t,e="option"){return o=>{let f=o.state.field(Wv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+E*(t?1:-1):t?0:s-1;return n<0?n=e=="page"?0:s-1:n>=s&&(n=e=="page"?s-1:0),o.dispatch({effects:Bxe.of(n)}),!0}}const BEe=t=>{let e=t.state.field(Wv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Wv,!1)?(t.dispatch({effects:Gce.of(!0)}),!0):!1,NEe=t=>{let e=t.state.field(Wv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:NI.of(null)}),!0)};class FEe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const $Ee=50,VEe=1e3,UEe=bh.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Wv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Wv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Zse(f));for(let f=0;f$Ee&&Date.now()-E.time>VEe){for(let d of E.context.abortListeners)try{d()}catch(s){ey(this.view.state,s)}E.context.abortListeners=null,this.running.splice(f--,1)}else E.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(E=>E.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Zse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Wv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=g4(e),f=new Yce(e,o,t.explicitPos==o),E=new FEe(t,f);this.running.push(E),Promise.resolve(t.source(f)).then(d=>{E.context.aborted||(E.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:NI.of(null)}),ey(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Kg);for(let f=0;fs.source==E.active.source);if(d&&d.state==1)if(E.done==null){let s=new B1(E.active.source,0);for(let n of E.updates)s=s.update(n,o);s.state!=1&&e.push(s)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:Dxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Wv,!1);if(e&&e.tooltip&&this.view.state.facet(Kg).closeOnBlur){let o=e.open&&vbe(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:NI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Gce.of(!1)}),20),this.composing=0}}}),Nxe=Xa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class jEe{constructor(e,o,f,E){this.field=e,this.line=o,this.from=f,this.to=E}}class Kce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,lg.TrackDel),f=e.mapPos(this.to,1,lg.TrackDel);return o==null||f==null?null:new Kce(this.field,o,f)}}class Jce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],E=[o],d=e.doc.lineAt(o),s=/^\s*/.exec(d.text)[0];for(let u of this.lines){if(f.length){let b=s,i=/^\t*/.exec(u)[0].length;for(let S=0;Snew Kce(u.field,E[u.line]+u.from,E[u.line]+u.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],E=[],d;for(let s of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let n=d[1]?+d[1]:null,u=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&S.field++}E.push(new jEe(b,f.length,d.index,d.index+u.length)),s=s.slice(0,d.index)+u+s.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(s);){s=s.slice(0,n.index)+n[1]+s.slice(n.index+n[0].length);for(let u of E)u.line==f.length&&u.from>n.index&&(u.from--,u.to--)}f.push(s)}return new Jce(f,E)}}let QEe=Ns.widget({widget:new class extends Ex{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),HEe=Ns.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=Ns.set(e.map(f=>(f.from==f.to?QEe:HEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let E=f.map(e);if(!E)return null;o.push(E)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const yD=Ql.define({map(t,e){return t&&t.map(e)}}),ZEe=Ql.define(),FI=tm.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(yD))return o.value;if(o.is(ZEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Xa.decorations.from(t,e=>e?e.deco:Ns.none)});function eue(t,e){return hi.create(t.filter(o=>o.field==e).map(o=>hi.range(o.from,o.to)))}function qEe(t){let e=Jce.parse(t);return(o,f,E,d)=>{let{text:s,ranges:n}=e.instantiate(o.state,E),u={changes:{from:E,to:d,insert:Qu.of(s)},scrollIntoView:!0,annotations:f?Ixe.of(f):void 0};if(n.length&&(u.selection=eue(n,0)),n.length>1){let b=new EM(n,0),i=u.effects=[yD.of(b)];o.state.field(FI,!1)===void 0&&i.push(Ql.appendConfig.of([FI,KEe,JEe,Nxe]))}o.dispatch(o.state.update(u))}}function Fxe(t){return({state:e,dispatch:o})=>{let f=e.field(FI,!1);if(!f||t<0&&f.active==0)return!1;let E=f.active+t,d=t>0&&!f.ranges.some(s=>s.field==E+t);return o(e.update({selection:eue(f.ranges,E),effects:yD.of(d?null:new EM(f.ranges,E)),scrollIntoView:!0})),!0}}const WEe=({state:t,dispatch:e})=>t.field(FI,!1)?(e(t.update({effects:yD.of(null)})),!0):!1,YEe=Fxe(1),XEe=Fxe(-1),GEe=[{key:"Tab",run:YEe,shift:XEe},{key:"Escape",run:WEe}],Eme=ls.define({combine(t){return t.length?t[0]:GEe}}),KEe=ny.highest(FO.compute([Eme],t=>t.facet(Eme)));function Bh(t,e){return Object.assign(Object.assign({},e),{apply:qEe(t)})}const JEe=Xa.domEventHandlers({mousedown(t,e){let o=e.state.field(FI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let E=o.ranges.find(d=>d.from<=f&&d.to>=f);return!E||E.field==o.active?!1:(e.dispatch({selection:eue(o.ranges,E.field),effects:yD.of(o.ranges.some(d=>d.field>E.field)?new EM(o.ranges,E.field):null),scrollIntoView:!0}),!0)}}),$I={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},FT=Ql.define({map(t,e){let o=e.mapPos(t,-1,lg.TrackAfter);return o??void 0}}),tue=new class extends qT{};tue.startSide=1;tue.endSide=-1;const $xe=tm.define({create(){return Df.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(FT)&&(t=t.update({add:[tue.range(o.value,o.value+1)]}));return t}});function ePe(){return[nPe,$xe]}const Yie="()[]{}<>";function Vxe(t){for(let e=0;e{if((tPe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let E=t.state.selection.main;if(f.length>2||f.length==2&&Ky(ag(f,0))==1||e!=E.from||o!=E.to)return!1;let d=iPe(t.state,f);return d?(t.dispatch(d),!0):!1}),rPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=Uxe(t,t.selection.main.head).brackets||$I.brackets,E=null,d=t.changeByRange(s=>{if(s.empty){let n=aPe(t.doc,s.head);for(let u of f)if(u==n&&oq(t.doc,s.head)==Vxe(ag(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:hi.cursor(s.head-u.length)}}return{range:E=s}});return E||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!E},oPe=[{key:"Backspace",run:rPe}];function iPe(t,e){let o=Uxe(t,t.selection.main.head),f=o.brackets||$I.brackets;for(let E of f){let d=Vxe(ag(E,0));if(e==E)return d==E?cPe(t,E,f.indexOf(E+E+E)>-1,o):sPe(t,E,d,o.before||$I.before);if(e==d&&jxe(t,t.selection.main.from))return lPe(t,E,d)}return null}function jxe(t,e){let o=!1;return t.field($xe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function oq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Ky(ag(o,0)))}function aPe(t,e){let o=t.sliceString(e-2,e);return Ky(ag(o,0))==o.length?o:o.slice(1)}function sPe(t,e,o,f){let E=null,d=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:o,from:s.to}],effects:FT.of(s.to+e.length),range:hi.range(s.anchor+e.length,s.head+e.length)};let n=oq(t.doc,s.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:s.head},effects:FT.of(s.head+e.length),range:hi.cursor(s.head+e.length)}:{range:E=s}});return E?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function lPe(t,e,o){let f=null,E=t.changeByRange(d=>d.empty&&oq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:hi.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(E,{scrollIntoView:!0,userEvent:"input.type"})}function cPe(t,e,o,f){let E=f.stringPrefixes||$I.stringPrefixes,d=null,s=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:FT.of(n.to+e.length),range:hi.range(n.anchor+e.length,n.head+e.length)};let u=n.head,b=oq(t.doc,u),i;if(b==e){if(Pme(t,u))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(jxe(t,u)){let w=o&&t.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+w.length,insert:w},range:hi.cursor(u+w.length)}}}else{if(o&&t.sliceDoc(u-2*e.length,u)==e+e&&(i=Rme(t,u-2*e.length,E))>-1&&Pme(t,i))return{changes:{insert:e+e+e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(t.charCategorizer(u)(b)!=yh.Word&&Rme(t,u,E)>-1&&!uPe(t,u,e,E))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)}}return{range:d=n}});return d?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Pme(t,e){let o=Gf(t).resolveInner(e+1);return o.parent&&o.from==e}function uPe(t,e,o,f){let E=Gf(t).resolveInner(e,-1),d=f.reduce((s,n)=>Math.max(s,n.length),0);for(let s=0;s<5;s++){let n=t.sliceDoc(E.from,Math.min(E.to,E.from+o.length+d)),u=n.indexOf(o);if(!u||u>-1&&f.indexOf(n.slice(0,u))>-1){let i=E.firstChild;for(;i&&i.from==E.from&&i.to-i.from>o.length+u;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=E.to==e&&E.parent;if(!b)break;E=b}return!1}function Rme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=yh.Word)return e;for(let E of o){let d=e-E.length;if(t.sliceDoc(d,e)==E&&f(t.sliceDoc(d-1,d))!=yh.Word)return d}return-1}function VI(t={}){return[Wv,Kg.of(t),UEe,fPe,Nxe]}const Qxe=[{key:"Ctrl-Space",run:zEe},{key:"Escape",run:NEe},{key:"ArrowDown",run:$Q(!0)},{key:"ArrowUp",run:$Q(!1)},{key:"PageDown",run:$Q(!0,"page")},{key:"PageUp",run:$Q(!1,"page")},{key:"Enter",run:BEe}],fPe=ny.highest(FO.computeN([Kg],t=>t.facet(Kg).defaultKeymap?[Qxe]:[]));class dPe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class LT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let E=e,d=f.facet($T).markerFilter;d&&(E=d(E));let s=Ns.set(E.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?Ns.widget({widget:new OPe(n),diagnostic:n}).range(n.from):Ns.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new LT(s,o,hM(s))}}function hM(t,e=null,o=0){let f=null;return t.between(o,1e9,(E,d,{spec:s})=>{if(!(e&&s.diagnostic!=e))return f=new dPe(E,d,s.diagnostic),!1}),f}function hPe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(nue))||t.changes.touchesRange(o.from,o.to))}function Hxe(t,e){return t.field(Kv,!1)?e:e.concat(Ql.appendConfig.of(Yxe))}function pPe(t,e){return{effects:Hxe(t,[nue.of(e)])}}const nue=Ql.define(),rue=Ql.define(),Zxe=Ql.define(),Kv=tm.define({create(){return new LT(Ns.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let E=e.changes.mapPos(t.selected.from,1);f=hM(o,t.selected.diagnostic,E)||hM(o,null,E)}t=new LT(o,t.panel,f)}for(let o of e.effects)o.is(nue)?t=LT.init(o.value,t.panel,e.state):o.is(rue)?t=new LT(t.diagnostics,o.value?iq.open:null,t.selected):o.is(Zxe)&&(t=new LT(t.diagnostics,t.panel,o.value));return t},provide:t=>[RI.from(t,e=>e.panel),Xa.decorations.from(t,e=>e.diagnostics)]}),mPe=Ns.mark({class:"cm-lintRange cm-lintRange-active"});function gPe(t,e,o){let{diagnostics:f}=t.state.field(Kv),E=[],d=2e8,s=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(u,b,{spec:i})=>{e>=u&&e<=b&&(u==b||(e>u||o>0)&&(eWxe(t,o,!1)))}const yPe=t=>{let e=t.state.field(Kv,!1);(!e||!e.panel)&&t.dispatch({effects:Hxe(t.state,[rue.of(!0)])});let o=PI(t,iq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},Lme=t=>{let e=t.state.field(Kv,!1);return!e||!e.panel?!1:(t.dispatch({effects:rue.of(!1)}),!0)},bPe=t=>{let e=t.state.field(Kv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},xPe=[{key:"Mod-Shift-m",run:yPe,preventDefault:!0},{key:"F8",run:bPe}],_Pe=bh.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet($T);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(f(this.view)))).then(f=>{let E=f.reduce((d,s)=>d.concat(s));this.view.state.doc==e.doc&&this.view.dispatch(pPe(this.view.state,E))},f=>{ey(this.view.state,f)})}}update(t){let e=t.state.facet($T);(t.docChanged||e!=t.startState.facet($T)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),$T=ls.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},E_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function wPe(t,e={}){return[$T.of({source:t,config:e}),_Pe,Yxe]}function qxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==E.toLowerCase())){e.push(E);continue e}}e.push("")}return e}function Wxe(t,e,o){var f;let E=o?qxe(e.actions):[];return zd("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},zd("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,s)=>{let n=!1,u=w=>{if(w.preventDefault(),n)return;n=!0;let y=hM(t.state.field(Kv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=E[s]?b.indexOf(E[s]):-1,S=i<0?b:[b.slice(0,i),zd("u",b.slice(i,i+1)),b.slice(i+1)];return zd("button",{type:"button",class:"cm-diagnosticAction",onclick:u,onmousedown:u,"aria-label":` Action: ${b}${i<0?"":` (access key "${E[s]})"`}.`},S)}),e.source&&zd("div",{class:"cm-diagnosticSource"},e.source))}class OPe extends Ex{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return zd("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Ime{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Wxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class iq{constructor(e){this.view=e,this.items=[];let o=E=>{if(E.keyCode==27)Lme(this.view),this.view.focus();else if(E.keyCode==38||E.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(E.keyCode==40||E.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(E.keyCode==36)this.moveSelection(0);else if(E.keyCode==35)this.moveSelection(this.items.length-1);else if(E.keyCode==13)this.view.focus();else if(E.keyCode>=65&&E.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],s=qxe(d.actions);for(let n=0;n{for(let d=0;dLme(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Kv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let S=f;Sf&&(this.items.splice(f,b-f),E=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:n})=>{let u=n.height/this.list.offsetHeight;s.topn.bottom&&(this.list.scrollTop+=(s.bottom-n.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),E&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Kv),f=hM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:Zxe.of(f)})}static open(e){return new iq(e)}}function SPe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function VQ(t){return SPe(``,'width="6" height="3"')}const kPe=Xa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:VQ("#d11")},".cm-lintRange-warning":{backgroundImage:VQ("orange")},".cm-lintRange-info":{backgroundImage:VQ("#999")},".cm-lintRange-hint":{backgroundImage:VQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Yxe=[Kv,Xa.decorations.compute([Kv],t=>{let{selected:e,panel:o}=t.field(Kv);return!e||!o||e.from==e.to?Ns.none:Ns.set([mPe.range(e.from,e.to)])}),vAe(gPe,{hideOn:hPe}),kPe],TPe=(()=>[TAe(),MAe(),Z6e(),Z8e(),x8e(),D6e(),$6e(),kc.allowMultipleSelections.of(!0),l8e(),Fbe(S8e,{fallback:!0}),P8e(),ePe(),VI(),aAe(),cAe(),K6e(),KMe(),FO.of([...oPe,...ZMe,...vEe,...tMe,...g8e,...Qxe,...xPe])])();/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon -*/var SPe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[OPe]}),kPe=Symbol("vue-codemirror-global-config"),H0,TPe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,E=t.onBlur,d=function(s,n){var u={};for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&n.indexOf(b)<0&&(u[b]=s[b]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(s);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let E=e.parser.context;return new nZ(e,[],o,f,f,0,[],0,E?new Ime(E,E.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,E=e&65535,{parser:d}=this.p,s=d.dynamicPrecedence(E);if(s&&(this.score+=s),f==0){this.pushState(d.getGoto(this.state,E,!0),this.reducePos),E=2e3&&!(!((o=this.p.parser.nodeSet.types[E])===null||o===void 0)&&o.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(E,u)}storeNode(e,o,f,E=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(o==f)return;if(s.buffer[n-2]>=o){s.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,E);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>f;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,E>4&&(E-=4);this.buffer[s]=e,this.buffer[s+1]=o,this.buffer[s+2]=f,this.buffer[s+3]=E}}shift(e,o,f,E){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=E,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,E,4);else{let d=e,{parser:s}=this.p;(E>this.pos||o<=s.maxNode)&&(this.pos=E,s.stateFlag(d,1)||(this.reducePos=E)),this.pushState(d,f),this.shiftContext(o,f),o<=s.maxNode&&this.buffer.push(o,f,E,4)}}apply(e,o,f,E){e&65536?this.reduce(e):this.shift(e,o,f,E)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let E=this.pos;this.reducePos=this.pos=E+e.length,this.pushState(o,E),this.buffer.push(f,E,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),E=e.bufferBase+o;for(;e&&E==e.bufferBase;)e=e.parent;return new nZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,E,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new RPe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let E=[];for(let d=0,s;du&1&&n==s)||E.push(o[d],s)}o=E}let f=[];for(let E=0;E>19,E=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],E,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;o=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(E,d)=>{if(!o.includes(E))return o.push(E),e.allActions(E,s=>{if(!(s&393216))if(s&65536){let n=(s>>19)-d;if(n>1){let u=s&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],u,!1)>=0)return n<<19|65536|u}}else{let n=f(s,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ime{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class RPe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let E=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=E}}class rZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new rZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new rZ(this.stack,this.pos,this.index)}}function XL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,E=0;f=92&&s--,s>=34&&s--;let u=s-32;if(u>=46&&(u-=46,n=!0),d+=u,n)break;d*=46}o?o[E++]=d:o=new e(d)}return o}class gH{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Dme=new gH;class LPe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Dme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,E=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(E==this.ranges.length-1)return null;let s=this.ranges[++E];d+=s.from-f.to,f=s}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,E;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),E=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),E}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=Dme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let E of this.ranges){if(E.from>=o)break;E.to>e&&(f+=this.input.read(Math.max(E.from,e),Math.min(E.to,o)))}return f}}class J8{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;Yxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}J8.prototype.contextual=J8.prototype.fallback=J8.prototype.extend=!1;class oZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?XL(e):e}token(e,o){let f=e.pos,E=0;for(;;){let d=e.next<0,s=e.resolveOffset(1,1);if(Yxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||E++,s==null)break;e.reset(s,e.token)}E&&(e.reset(f,e.token),e.acceptToken(this.elseToken,E))}}oZ.prototype.contextual=J8.prototype.fallback=J8.prototype.extend=!1;class Y0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function Yxe(t,e,o,f,E,d){let s=0,n=1<0){let m=t[y];if(u.allows(m)&&(e.token.value==-1||e.token.value==m||IPe(m,e.token.value,E,d))){e.acceptToken(m);break}}let i=e.next,S=0,w=t[s+2];if(e.next<0&&w>S&&t[b+w*3-3]==65535){s=t[b+w*3-1];continue e}for(;S>1,m=b+y+(y<<1),a=t[m],c=t[m+1]||65536;if(i=c)S=y+1;else{s=t[m+2],e.advance();continue e}}break}}function Bme(t,e,o){for(let f=e,E;(E=t[f])!=65535;f++)if(E==o)return f-e;return-1}function IPe(t,e,o,f){let E=Bme(o,f,e);return E<0||Bme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let DPe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?zme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?zme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(d instanceof gf){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(s),this.index.push(0))}else this.index[o]++,this.nextStart=s+d.length}}};class BPe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new gH)}getActions(e){let o=0,f=null,{parser:E}=e.p,{tokenizers:d}=E,s=E.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,u=0;for(let b=0;bS.end+25&&(u=Math.max(S.lookAhead,u)),S.value!=0)){let w=o;if(S.extended>-1&&(o=this.addActions(e,S.extended,S.end,o)),o=this.addActions(e,S.value,S.end,o),!i.extend&&(f=S,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return u&&e.setLookAhead(u),!f&&e.pos==this.stream.end&&(f=new gH,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new gH,{pos:f,p:E}=e;return o.start=f,o.end=Math.min(f+1,E.stream.end),o.value=f==E.stream.end?E.parser.eofTerm:0,o}updateCachedToken(e,o,f){let E=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(E,e),f),e.value>-1){let{parser:d}=f.p;for(let s=0;s=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(E+1)}putAction(e,o,f,E){for(let d=0;de.bufferLength*4?new DPe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],E,d;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;so)f.push(n);else{if(this.advanceStack(n,f,e))continue;{E||(E=[],d=[]),E.push(n);let u=this.tokens.getMainToken(n);d.push(u.value,u.end)}}break}}if(!f.length){let s=E&&FPe(E);if(s)return jv&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw jv&&E&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&E){let s=this.stoppedAt!=null&&E[0].pos>this.stoppedAt?E[0]:this.runRecovery(E,d,f);if(s)return jv&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(f.length>s)for(f.sort((n,u)=>u.score-n.score);f.length>s;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let s=0;s500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(u--,1);else{f.splice(s--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&E>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let S=this.fragments.nodeAt(E);S;){let w=this.parser.nodeSet.types[S.type.id]==S.type?d.getGoto(e.state,S.type.id):-1;if(w>-1&&S.length&&(!b||(S.prop(Zl.contextHash)||0)==i))return e.useNode(S,w),jv&&console.log(s+this.stackID(e)+` (via reuse of ${d.getName(S.type.id)})`),!0;if(!(S instanceof gf)||S.children.length==0||S.positions[0]>0)break;let y=S.children[0];if(y instanceof gf&&S.positions[0]==0)S=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),jv&&console.log(s+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let b=0;bE?o.push(m):f.push(m)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return Nme(e,o),!0}}runRecovery(e,o,f){let E=null,d=!1;for(let s=0;s ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),jv&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let S=n.split(),w=i;for(let y=0;S.forceReduce()&&y<10&&(jv&&console.log(w+this.stackID(S)+" (via force-reduce)"),!this.advanceFully(S,f));y++)jv&&(w=this.stackID(S)+" -> ");for(let y of n.recoverByInsert(u))jv&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,u=0),n.recoverByDelete(u,b),jv&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(u)})`),Nme(n,f)):(!E||E.scoret;class nue{constructor(e){this.start=e.start,this.shift=e.shift||Xie,this.reduce=e.reduce||Xie,this.reuse=e.reuse||Xie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class k4 extends Ice{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),E=[];for(let n=0;n=0)d(i,u,n[b++]);else{let S=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],u,S);b++}}}this.nodeSet=new dD(o.map((n,u)=>Jp.define({name:u>=this.minRepeatTerm?void 0:n,id:u,props:E[u],top:f.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=bbe;let s=XL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new J8(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let E=new zPe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}getGoto(e,o,f=!1){let E=this.goto;if(o>=E[0])return-1;for(let d=E[o+1];;){let s=E[d++],n=s&1,u=E[d++];if(n&&f)return u;for(let b=d+(s>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),E=f?o(f):void 0;for(let d=this.stateSlot(e,1);E==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=TO(this.data,d+2);else break;E=o(TO(this.data,d+1))}return E}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=TO(this.data,f+2);else break;if(!(this.data[f+2]&1)){let E=this.data[f+1];o.some((d,s)=>s&1&&d==E)||o.push(this.data[f],E)}}return o}configure(e){let o=Object.assign(Object.create(k4.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let E=e.tokenizers.find(d=>d.from==f);return E?E.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,E)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let s=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[E]=Fme(s),s})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let s=o.indexOf(d);s>=0&&(f[s]=!0)}let E=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const $Pe=1,Xxe=201,Gxe=202,VPe=203,$me=204,UPe=205,jPe=206,QPe=207,HPe=2,ZPe=208,qPe=209,WPe=3,YPe=210,XPe=211,GPe=4,KPe=212,JPe=213,e7e=5,t7e=214,n7e=26,r7e=27,o7e=51,i7e=52,a7e=57,s7e=58,l7e=59,c7e=61,u7e=62,f7e=63,d7e=64,h7e=65,p7e=67,m7e=251,g7e=74,v7e=270,y7e=115,b7e=133,x7e=154,_7e=155,w7e=158,VI=10,UI=13,rue=32,aq=9,oue=35,O7e=40,S7e=46,Vme=123,Kxe=39,Jxe=34,k7e=92,T7e=new Set([r7e,o7e,i7e,v7e,p7e,b7e,s7e,l7e,m7e,d7e,h7e,g7e,u7e,f7e,x7e,_7e,w7e,y7e]);function Gie(t){return t==VI||t==UI}const C7e=new Y0((t,e)=>{let o;if(t.next<0)t.acceptToken(jPe);else if(e.context.depth<0)Gie(t.next)&&t.acceptToken(UPe,1);else if(((o=t.peek(-1))<0||Gie(o))&&e.canShift($me)){let f=0;for(;t.next==rue||t.next==aq;)t.advance(),f++;(t.next==VI||t.next==UI||t.next==oue)&&t.acceptToken($me,-f)}else Gie(t.next)&&t.acceptToken(VPe,1)},{contextual:!0}),A7e=new Y0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==VI||f==UI){let E=0,d=0;for(;;){if(t.next==rue)E++;else if(t.next==aq)E+=8-E%8;else break;t.advance(),d++}E!=o&&t.next!=VI&&t.next!=UI&&t.next!=oue&&(E{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==rue||o==aq)){o!=O7e&&o!=S7e&&o!=VI&&o!=UI&&o!=oue&&t.acceptToken($Pe);return}}});function sq(t,e,o,f,E){return new Y0(d=>{let s=d.pos;for(;!(d.next<0);)if(d.next==Vme)if(d.peek(1)==Vme)d.advance(2);else{if(d.pos==s){d.acceptToken(f,1);return}break}else if(d.next==k7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==s){d.acceptToken(E,e);return}break}else d.advance();d.pos>s&&d.acceptToken(o)})}const L7e=sq(Kxe,1,QPe,HPe,ZPe),I7e=sq(Jxe,1,qPe,WPe,YPe),D7e=sq(Kxe,3,XPe,GPe,KPe),B7e=sq(Jxe,3,JPe,e7e,t7e),z7e=M4({'async "*" "**" FormatConversion FormatSpec':hr.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":hr.controlKeyword,"in not and or is del":hr.operatorKeyword,"from def class global nonlocal lambda":hr.definitionKeyword,import:hr.moduleKeyword,"with as print":hr.keyword,Boolean:hr.bool,None:hr.null,VariableName:hr.variableName,"CallExpression/VariableName":hr.function(hr.variableName),"FunctionDefinition/VariableName":hr.function(hr.definition(hr.variableName)),"ClassDefinition/VariableName":hr.definition(hr.className),PropertyName:hr.propertyName,"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),Comment:hr.lineComment,Number:hr.number,String:hr.string,FormatString:hr.special(hr.string),UpdateOp:hr.updateOperator,"ArithOp!":hr.arithmeticOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,AssignOp:hr.definitionOperator,Ellipsis:hr.punctuation,At:hr.meta,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,".":hr.derefOperator,", ;":hr.separator}),N7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},F7e=k4.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:P7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[z7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$N7e[t]||-1}],tokenPrec:7372}),Ume=new Lce,e2e=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function UQ(t){return(e,o,f)=>{if(f)return!1;let E=e.node.getChild("VariableName");return E&&o(E,t),!0}}const $7e={FunctionDefinition:UQ("function"),ClassDefinition:UQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:E}=t,d=((o=E.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let s=E.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((f=s.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(s,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:UQ("variable"),AsPattern:UQ("variable"),__proto__:null};function t2e(t,e){let o=Ume.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(s.name){let n=$7e[s.name];if(n&&n(s,d,E)||!E&&e2e.has(s.name))return!1;E=!1}else if(s.to-s.from>8192){for(let n of t2e(t,s.node))f.push(n);return!1}}),Ume.set(e,f),f}const jme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,n2e=["String","FormatString","Comment","PropertyName"];function V7e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(n2e.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&jme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)e2e.has(E.name)&&(f=f.concat(t2e(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:jme}}const U7e=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),j7e=[Dh("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Dh("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Dh("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Dh("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Dh(`if \${}: +*/var CPe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[TPe]}),APe=Symbol("vue-codemirror-global-config"),H0,MPe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,E=t.onBlur,d=function(s,n){var u={};for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&n.indexOf(b)<0&&(u[b]=s[b]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(s);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let E=e.parser.context;return new rZ(e,[],o,f,f,0,[],0,E?new Bme(E,E.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,E=e&65535,{parser:d}=this.p,s=d.dynamicPrecedence(E);if(s&&(this.score+=s),f==0){this.pushState(d.getGoto(this.state,E,!0),this.reducePos),E=2e3&&!(!((o=this.p.parser.nodeSet.types[E])===null||o===void 0)&&o.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(E,u)}storeNode(e,o,f,E=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(o==f)return;if(s.buffer[n-2]>=o){s.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,E);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>f;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,E>4&&(E-=4);this.buffer[s]=e,this.buffer[s+1]=o,this.buffer[s+2]=f,this.buffer[s+3]=E}}shift(e,o,f,E){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=E,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,E,4);else{let d=e,{parser:s}=this.p;(E>this.pos||o<=s.maxNode)&&(this.pos=E,s.stateFlag(d,1)||(this.reducePos=E)),this.pushState(d,f),this.shiftContext(o,f),o<=s.maxNode&&this.buffer.push(o,f,E,4)}}apply(e,o,f,E){e&65536?this.reduce(e):this.shift(e,o,f,E)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let E=this.pos;this.reducePos=this.pos=E+e.length,this.pushState(o,E),this.buffer.push(f,E,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),E=e.bufferBase+o;for(;e&&E==e.bufferBase;)e=e.parent;return new rZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,E,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new DPe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let E=[];for(let d=0,s;du&1&&n==s)||E.push(o[d],s)}o=E}let f=[];for(let E=0;E>19,E=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],E,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;o=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(E,d)=>{if(!o.includes(E))return o.push(E),e.allActions(E,s=>{if(!(s&393216))if(s&65536){let n=(s>>19)-d;if(n>1){let u=s&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],u,!1)>=0)return n<<19|65536|u}}else{let n=f(s,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Bme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class DPe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let E=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=E}}class oZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new oZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new oZ(this.stack,this.pos,this.index)}}function XL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,E=0;f=92&&s--,s>=34&&s--;let u=s-32;if(u>=46&&(u-=46,n=!0),d+=u,n)break;d*=46}o?o[E++]=d:o=new e(d)}return o}class vH{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const zme=new vH;class BPe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=zme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,E=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(E==this.ranges.length-1)return null;let s=this.ranges[++E];d+=s.from-f.to,f=s}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,E;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),E=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),E}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=zme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let E of this.ranges){if(E.from>=o)break;E.to>e&&(f+=this.input.read(Math.max(E.from,e),Math.min(E.to,o)))}return f}}class eM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;Gxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}eM.prototype.contextual=eM.prototype.fallback=eM.prototype.extend=!1;class iZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?XL(e):e}token(e,o){let f=e.pos,E=0;for(;;){let d=e.next<0,s=e.resolveOffset(1,1);if(Gxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||E++,s==null)break;e.reset(s,e.token)}E&&(e.reset(f,e.token),e.acceptToken(this.elseToken,E))}}iZ.prototype.contextual=eM.prototype.fallback=eM.prototype.extend=!1;class Y0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function Gxe(t,e,o,f,E,d){let s=0,n=1<0){let m=t[y];if(u.allows(m)&&(e.token.value==-1||e.token.value==m||zPe(m,e.token.value,E,d))){e.acceptToken(m);break}}let i=e.next,S=0,w=t[s+2];if(e.next<0&&w>S&&t[b+w*3-3]==65535){s=t[b+w*3-1];continue e}for(;S>1,m=b+y+(y<<1),a=t[m],c=t[m+1]||65536;if(i=c)S=y+1;else{s=t[m+2],e.advance();continue e}}break}}function Nme(t,e,o){for(let f=e,E;(E=t[f])!=65535;f++)if(E==o)return f-e;return-1}function zPe(t,e,o,f){let E=Nme(o,f,e);return E<0||Nme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let NPe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Fme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Fme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(d instanceof gf){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(s),this.index.push(0))}else this.index[o]++,this.nextStart=s+d.length}}};class FPe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new vH)}getActions(e){let o=0,f=null,{parser:E}=e.p,{tokenizers:d}=E,s=E.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,u=0;for(let b=0;bS.end+25&&(u=Math.max(S.lookAhead,u)),S.value!=0)){let w=o;if(S.extended>-1&&(o=this.addActions(e,S.extended,S.end,o)),o=this.addActions(e,S.value,S.end,o),!i.extend&&(f=S,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return u&&e.setLookAhead(u),!f&&e.pos==this.stream.end&&(f=new vH,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new vH,{pos:f,p:E}=e;return o.start=f,o.end=Math.min(f+1,E.stream.end),o.value=f==E.stream.end?E.parser.eofTerm:0,o}updateCachedToken(e,o,f){let E=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(E,e),f),e.value>-1){let{parser:d}=f.p;for(let s=0;s=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(E+1)}putAction(e,o,f,E){for(let d=0;de.bufferLength*4?new NPe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],E,d;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;so)f.push(n);else{if(this.advanceStack(n,f,e))continue;{E||(E=[],d=[]),E.push(n);let u=this.tokens.getMainToken(n);d.push(u.value,u.end)}}break}}if(!f.length){let s=E&&UPe(E);if(s)return jv&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw jv&&E&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&E){let s=this.stoppedAt!=null&&E[0].pos>this.stoppedAt?E[0]:this.runRecovery(E,d,f);if(s)return jv&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(f.length>s)for(f.sort((n,u)=>u.score-n.score);f.length>s;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let s=0;s500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(u--,1);else{f.splice(s--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&E>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let S=this.fragments.nodeAt(E);S;){let w=this.parser.nodeSet.types[S.type.id]==S.type?d.getGoto(e.state,S.type.id):-1;if(w>-1&&S.length&&(!b||(S.prop(Zl.contextHash)||0)==i))return e.useNode(S,w),jv&&console.log(s+this.stackID(e)+` (via reuse of ${d.getName(S.type.id)})`),!0;if(!(S instanceof gf)||S.children.length==0||S.positions[0]>0)break;let y=S.children[0];if(y instanceof gf&&S.positions[0]==0)S=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),jv&&console.log(s+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let b=0;bE?o.push(m):f.push(m)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return $me(e,o),!0}}runRecovery(e,o,f){let E=null,d=!1;for(let s=0;s ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),jv&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let S=n.split(),w=i;for(let y=0;S.forceReduce()&&y<10&&(jv&&console.log(w+this.stackID(S)+" (via force-reduce)"),!this.advanceFully(S,f));y++)jv&&(w=this.stackID(S)+" -> ");for(let y of n.recoverByInsert(u))jv&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,u=0),n.recoverByDelete(u,b),jv&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(u)})`),$me(n,f)):(!E||E.scoret;class oue{constructor(e){this.start=e.start,this.shift=e.shift||Gie,this.reduce=e.reduce||Gie,this.reuse=e.reuse||Gie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class k4 extends Dce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),E=[];for(let n=0;n=0)d(i,u,n[b++]);else{let S=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],u,S);b++}}}this.nodeSet=new hD(o.map((n,u)=>Jp.define({name:u>=this.minRepeatTerm?void 0:n,id:u,props:E[u],top:f.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=_be;let s=XL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new eM(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let E=new $Pe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}getGoto(e,o,f=!1){let E=this.goto;if(o>=E[0])return-1;for(let d=E[o+1];;){let s=E[d++],n=s&1,u=E[d++];if(n&&f)return u;for(let b=d+(s>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),E=f?o(f):void 0;for(let d=this.stateSlot(e,1);E==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=TO(this.data,d+2);else break;E=o(TO(this.data,d+1))}return E}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=TO(this.data,f+2);else break;if(!(this.data[f+2]&1)){let E=this.data[f+1];o.some((d,s)=>s&1&&d==E)||o.push(this.data[f],E)}}return o}configure(e){let o=Object.assign(Object.create(k4.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let E=e.tokenizers.find(d=>d.from==f);return E?E.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,E)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let s=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[E]=Vme(s),s})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let s=o.indexOf(d);s>=0&&(f[s]=!0)}let E=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const jPe=1,Kxe=201,Jxe=202,QPe=203,Ume=204,HPe=205,ZPe=206,qPe=207,WPe=2,YPe=208,XPe=209,GPe=3,KPe=210,JPe=211,e7e=4,t7e=212,n7e=213,r7e=5,o7e=214,i7e=26,a7e=27,s7e=51,l7e=52,c7e=57,u7e=58,f7e=59,d7e=61,h7e=62,p7e=63,m7e=64,g7e=65,v7e=67,y7e=251,b7e=74,x7e=270,_7e=115,w7e=133,O7e=154,S7e=155,k7e=158,UI=10,jI=13,iue=32,sq=9,aue=35,T7e=40,C7e=46,jme=123,e2e=39,t2e=34,A7e=92,M7e=new Set([a7e,s7e,l7e,x7e,v7e,w7e,u7e,f7e,y7e,m7e,g7e,b7e,h7e,p7e,O7e,S7e,k7e,_7e]);function Kie(t){return t==UI||t==jI}const E7e=new Y0((t,e)=>{let o;if(t.next<0)t.acceptToken(ZPe);else if(e.context.depth<0)Kie(t.next)&&t.acceptToken(HPe,1);else if(((o=t.peek(-1))<0||Kie(o))&&e.canShift(Ume)){let f=0;for(;t.next==iue||t.next==sq;)t.advance(),f++;(t.next==UI||t.next==jI||t.next==aue)&&t.acceptToken(Ume,-f)}else Kie(t.next)&&t.acceptToken(QPe,1)},{contextual:!0}),P7e=new Y0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==UI||f==jI){let E=0,d=0;for(;;){if(t.next==iue)E++;else if(t.next==sq)E+=8-E%8;else break;t.advance(),d++}E!=o&&t.next!=UI&&t.next!=jI&&t.next!=aue&&(E{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==iue||o==sq)){o!=T7e&&o!=C7e&&o!=UI&&o!=jI&&o!=aue&&t.acceptToken(jPe);return}}});function lq(t,e,o,f,E){return new Y0(d=>{let s=d.pos;for(;!(d.next<0);)if(d.next==jme)if(d.peek(1)==jme)d.advance(2);else{if(d.pos==s){d.acceptToken(f,1);return}break}else if(d.next==A7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==s){d.acceptToken(E,e);return}break}else d.advance();d.pos>s&&d.acceptToken(o)})}const B7e=lq(e2e,1,qPe,WPe,YPe),z7e=lq(t2e,1,XPe,GPe,KPe),N7e=lq(e2e,3,JPe,e7e,t7e),F7e=lq(t2e,3,n7e,r7e,o7e),$7e=M4({'async "*" "**" FormatConversion FormatSpec':hr.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":hr.controlKeyword,"in not and or is del":hr.operatorKeyword,"from def class global nonlocal lambda":hr.definitionKeyword,import:hr.moduleKeyword,"with as print":hr.keyword,Boolean:hr.bool,None:hr.null,VariableName:hr.variableName,"CallExpression/VariableName":hr.function(hr.variableName),"FunctionDefinition/VariableName":hr.function(hr.definition(hr.variableName)),"ClassDefinition/VariableName":hr.definition(hr.className),PropertyName:hr.propertyName,"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),Comment:hr.lineComment,Number:hr.number,String:hr.string,FormatString:hr.special(hr.string),UpdateOp:hr.updateOperator,"ArithOp!":hr.arithmeticOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,AssignOp:hr.definitionOperator,Ellipsis:hr.punctuation,At:hr.meta,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,".":hr.derefOperator,", ;":hr.separator}),V7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},U7e=k4.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:I7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[$7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$V7e[t]||-1}],tokenPrec:7372}),Qme=new Ice,n2e=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function jQ(t){return(e,o,f)=>{if(f)return!1;let E=e.node.getChild("VariableName");return E&&o(E,t),!0}}const j7e={FunctionDefinition:jQ("function"),ClassDefinition:jQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:E}=t,d=((o=E.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let s=E.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((f=s.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(s,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:jQ("variable"),AsPattern:jQ("variable"),__proto__:null};function r2e(t,e){let o=Qme.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(s.name){let n=j7e[s.name];if(n&&n(s,d,E)||!E&&n2e.has(s.name))return!1;E=!1}else if(s.to-s.from>8192){for(let n of r2e(t,s.node))f.push(n);return!1}}),Qme.set(e,f),f}const Hme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,o2e=["String","FormatString","Comment","PropertyName"];function Q7e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(o2e.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&Hme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)n2e.has(E.name)&&(f=f.concat(r2e(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:Hme}}const H7e=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),Z7e=[Bh("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Bh("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Bh("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Bh("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Bh(`if \${}: -`,{label:"if",detail:"block",type:"keyword"}),Dh("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Dh("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Dh("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Dh("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Q7e=Yce(n2e,nq(U7e.concat(j7e)));function Qme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),E=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Kie=O4.define({name:"python",parser:F7e.configure({props:[tC.add({Body:t=>{var e;return(e=Qme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":mH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":mH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":mH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=Qme(t,e);if(o!=null)return o}}return t.continue()}}),E4.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Fce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function Hme(){return new WT(Kie,[Kie.data.of({autocomplete:V7e}),Kie.data.of({autocomplete:Q7e})])}const H7e="#e5c07b",Zme="#e06c75",Z7e="#56b6c2",q7e="#ffffff",vH="#abb2bf",qse="#7d8799",W7e="#61afef",Y7e="#98c379",qme="#d19a66",X7e="#c678dd",G7e="#21252b",Wme="#2c313a",Yme="#282c34",Jie="#353a42",K7e="#3E4451",Xme="#528bff",J7e=Xa.theme({"&":{color:vH,backgroundColor:Yme},".cm-content":{caretColor:Xme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:K7e},".cm-panels":{backgroundColor:G7e,color:vH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Yme,color:qse,border:"none"},".cm-activeLineGutter":{backgroundColor:Wme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Jie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Jie,borderBottomColor:Jie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Wme,color:vH}}},{dark:!0}),e9e=pD.define([{tag:hr.keyword,color:X7e},{tag:[hr.name,hr.deleted,hr.character,hr.propertyName,hr.macroName],color:Zme},{tag:[hr.function(hr.variableName),hr.labelName],color:W7e},{tag:[hr.color,hr.constant(hr.name),hr.standard(hr.name)],color:qme},{tag:[hr.definition(hr.name),hr.separator],color:vH},{tag:[hr.typeName,hr.className,hr.number,hr.changed,hr.annotation,hr.modifier,hr.self,hr.namespace],color:H7e},{tag:[hr.operator,hr.operatorKeyword,hr.url,hr.escape,hr.regexp,hr.link,hr.special(hr.string)],color:Z7e},{tag:[hr.meta,hr.comment],color:qse},{tag:hr.strong,fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.link,color:qse,textDecoration:"underline"},{tag:hr.heading,fontWeight:"bold",color:Zme},{tag:[hr.atom,hr.bool,hr.special(hr.variableName)],color:qme},{tag:[hr.processingInstruction,hr.string,hr.inserted],color:Y7e},{tag:hr.invalid,color:q7e}]),pM=[J7e,zbe(e9e)];function gi(t,e){return o=>Object.keys(t).reduce((f,E)=>{const s=typeof t[E]=="object"&&t[E]!=null&&!Array.isArray(t[E])?t[E]:{type:t[E]};return o&&E in o?f[E]={...s,default:o[E]}:f[E]=s,e&&!f[E].source&&(f[E].source=e),f},{})}const Js=gi({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),Hu=typeof window<"u",iue=Hu&&"IntersectionObserver"in window,t9e=Hu&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Gme(t,e,o){n9e(t,e),e.set(t,o)}function n9e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r9e(t,e,o){return t.set(r2e(t,e),o),o}function ST(t,e){return t.get(r2e(t,e))}function r2e(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function o2e(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let E=0;ER4(t[f],e[f]))}function XT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),o2e(t,e.split("."),o))}function N1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const E=e(t,o);return typeof E>"u"?o:E}if(typeof e=="string")return XT(t,e,o);if(Array.isArray(e))return o2e(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function u4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function is(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Wse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function aue(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const Kme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Yse=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function eae(t,e){return e.every(o=>t.hasOwnProperty(o))}function sue(t,e){const o={},f=new Set(Object.keys(t));for(const E of e)f.has(E)&&(o[E]=t[E]);return o}function Jme(t,e,o){const f=Object.create(null),E=Object.create(null);for(const d in t)e.some(s=>s instanceof RegExp?s.test(d):s===d)&&!(o!=null&&o.some(s=>s===d))?f[d]=t[d]:E[d]=t[d];return[f,E]}function R_(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function o9e(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const i2e=/^on[^a-z]/,lq=t=>i2e.test(t),i9e=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],a9e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function s9e(t){return t.isComposing&&a9e.includes(t.key)}function yD(t){const[e,o]=Jme(t,[i2e]),f=R_(e,i9e),[E,d]=Jme(o,["class","style","id",/^data-/]);return Object.assign(E,e),Object.assign(d,f),[E,d]}function Pp(t){return t==null?[]:Array.isArray(t)?t:[t]}function l9e(t,e){let o=0;const f=function(){for(var E=arguments.length,d=new Array(E),s=0;st(...d),Va(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function ug(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function ege(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function tge(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function nge(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function c9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f1&&arguments[1]!==void 0?arguments[1]:1e3;if(t=e&&f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const E in t)f[E]=t[E];for(const E in e){const d=t[E],s=e[E];if(Wse(d)&&Wse(s)){f[E]=Jg(d,s,o);continue}if(Array.isArray(d)&&Array.isArray(s)&&o){f[E]=o(d,s);continue}f[E]=s}return f}function a2e(t){return t.map(e=>e.type===Ea?a2e(e.children):e).flat()}function UT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(UT.cache.has(t))return UT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return UT.cache.set(t,e),e}UT.cache=new Map;function V8(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>V8(t,o)).flat(1);if(e.suspense)return V8(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>V8(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return V8(t,e.component.subTree).flat(1)}return[]}var jQ=new WeakMap,A8=new WeakMap;class u9e{constructor(e){Gme(this,jQ,[]),Gme(this,A8,0),this.size=e}push(e){ST(jQ,this)[ST(A8,this)]=e,r9e(A8,this,(ST(A8,this)+1)%this.size)}values(){return ST(jQ,this).slice(ST(A8,this)).concat(ST(jQ,this).slice(0,ST(A8,this)))}}function lue(t){const e=Am({}),o=nr(t);return Gp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function iZ(t,e){return t.includes(e)}function s2e(t){return t[2].toLowerCase()+t.slice(3)}const fg=()=>[Function,Array];function oge(t,e){return e="on"+A_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function cue(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function l2e(t,e,o){let f,E=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do E+=d,f=t[E];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&E=0);return f}function aZ(t,e){var f,E,d,s;const o=jI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(E=o[0])==null||E.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(s=o[e])==null||s.focus();else{const n=l2e(o,e);n?n.focus():aZ(t,e==="next"?"first":"last")}}function QQ(t){return t==null||typeof t=="string"&&t.trim()===""}function c2e(){}function mM(t,e){if(!(Hu&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function cq(t){return t.some(e=>oM(e)?e.type===Z0?!1:e.type!==Ea||cq(e.children):!0)?t:null}function f9e(t,e){if(!Hu||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function ige(t,e){const o=Gi();return Gp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function d9e(t,e){const o=t.clientX,f=t.clientY,E=e.getBoundingClientRect(),d=E.left,s=E.top,n=E.right,u=E.bottom;return o>=d&&o<=n&&f>=s&&f<=u}function Xse(){const t=Gi(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>aue(t.value)}),e}const u2e=["top","bottom"],h9e=["start","end","left","right"];function Gse(t,e){let[o,f]=t.split(" ");return f||(f=iZ(u2e,o)?"start":iZ(h9e,o)?"top":"center"),{side:Kse(o,e),align:Kse(f,e)}}function Kse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function tae(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function nae(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function age(t){return{side:t.align,align:t.side}}function sge(t){return iZ(u2e,t.side)?"y":"x"}class jT{constructor(e){let{x:o,y:f,width:E,height:d}=e;this.x=o,this.y=f,this.width=E,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function lge(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function f2e(t){return Array.isArray(t)?new jT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function uue(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let E,d,s,n,u;if(f.startsWith("matrix3d("))E=f.slice(9,-1).split(/, /),d=+E[0],s=+E[5],n=+E[12],u=+E[13];else if(f.startsWith("matrix("))E=f.slice(7,-1).split(/, /),d=+E[0],s=+E[3],n=+E[4],u=+E[5];else return new jT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),S=e.y-u-(1-s)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=s?e.height/s:t.offsetHeight+1;return new jT({x:i,y:S,width:w,height:y})}else return new jT(e)}function U8(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(E=>{f.onfinish=()=>{E(f)}})),f}const yH=new WeakMap;function p9e(t,e){Object.keys(e).forEach(o=>{if(lq(o)){const f=s2e(o),E=yH.get(t);if(e[o]==null)E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))});else if(!E||![...E].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=E||new Set;d.add([f,e[o]]),yH.has(t)||yH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function m9e(t,e){Object.keys(e).forEach(o=>{if(lq(o)){const f=s2e(o),E=yH.get(t);E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))})}else t.removeAttribute(o)})}const M8=2.4,cge=.2126729,uge=.7151522,fge=.072175,g9e=.55,v9e=.58,y9e=.57,b9e=.62,HQ=.03,dge=1.45,x9e=5e-4,_9e=1.25,w9e=1.25,hge=.078,pge=12.82051282051282,ZQ=.06,mge=.001;function gge(t,e){const o=(t.r/255)**M8,f=(t.g/255)**M8,E=(t.b/255)**M8,d=(e.r/255)**M8,s=(e.g/255)**M8,n=(e.b/255)**M8;let u=o*cge+f*uge+E*fge,b=d*cge+s*uge+n*fge;if(u<=HQ&&(u+=(HQ-u)**dge),b<=HQ&&(b+=(HQ-b)**dge),Math.abs(b-u)u){const S=(b**g9e-u**v9e)*_9e;i=S-mge?0:S>-hge?S-S*pge*ZQ:S+ZQ}return i*100}function O9e(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const sZ=.20689655172413793,S9e=t=>t>sZ**3?Math.cbrt(t):t/(3*sZ**2)+4/29,k9e=t=>t>sZ?t**3:3*sZ**2*(t-4/29);function d2e(t){const e=S9e,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function h2e(t){const e=k9e,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const T9e=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],C9e=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,A9e=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],M9e=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function p2e(t){const e=Array(3),o=C9e,f=T9e;for(let E=0;E<3;++E)e[E]=Math.round(ug(o(f[E][0]*t[0]+f[E][1]*t[1]+f[E][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function fue(t){let{r:e,g:o,b:f}=t;const E=[0,0,0],d=M9e,s=A9e;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)E[n]=s[n][0]*e+s[n][1]*o+s[n][2]*f;return E}function Jse(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function E9e(t){return Jse(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const vge=/^(?(?:rgb|hsl)a?)\((?.+)\)/,P9e={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>yge({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>yge({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>QI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>QI({h:t,s:e,v:o,a:f})};function w_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&vge.test(t)){const{groups:e}=t.match(vge),{fn:o,values:f}=e,E=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return P9e[o](...E)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),L9e(e)}else if(typeof t=="object"){if(eae(t,["r","g","b"]))return t;if(eae(t,["h","s","l"]))return QI(m2e(t));if(eae(t,["h","s","v"]))return QI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function QI(t){const{h:e,s:o,v:f,a:E}=t,d=n=>{const u=(n+e/60)%6;return f-f*o*Math.max(Math.min(u,4-u,1),0)},s=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:s[0],g:s[1],b:s[2],a:E}}function yge(t){return QI(m2e(t))}function m2e(t){const{h:e,s:o,l:f,a:E}=t,d=f+o*Math.min(f,1-f),s=d===0?0:2-2*f/d;return{h:e,s,v:d,a:E}}function qQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function R9e(t){let{r:e,g:o,b:f,a:E}=t;return`#${[qQ(e),qQ(o),qQ(f),E!==void 0?qQ(Math.round(E*255)):""].join("")}`}function L9e(t){t=I9e(t);let[e,o,f,E]=c9e(t,2).map(d=>parseInt(d,16));return E=E===void 0?E:E/255,{r:e,g:o,b:f,a:E}}function I9e(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=tge(tge(t,6),8,"F")),t}function D9e(t,e){const o=d2e(fue(t));return o[0]=o[0]+e*10,p2e(h2e(o))}function B9e(t,e){const o=d2e(fue(t));return o[0]=o[0]-e*10,p2e(h2e(o))}function z9e(t){const e=w_(t);return fue(e)[1]}function g2e(t){const e=Math.abs(gge(w_(0),w_(t)));return Math.abs(gge(w_(16777215),w_(t)))>Math.min(e,50)?"#fff":"#000"}function Xh(t,e){const o=fce();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function L_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Xh(t).type;return UT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let v2e=0,bH=new WeakMap;function j1(){const t=Xh("getUid");if(bH.has(t))return bH.get(t);{const e=v2e++;return bH.set(t,e),e}}j1.reset=()=>{v2e=0,bH=new WeakMap};function N9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xh("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const gM=Symbol.for("vuetify:defaults");function F9e(t){return qo(t)}function due(){const t=Kl(gM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ab(t,e){const o=due(),f=qo(t),E=nr(()=>{if(Va(e==null?void 0:e.disabled))return o.value;const s=Va(e==null?void 0:e.scoped),n=Va(e==null?void 0:e.reset),u=Va(e==null?void 0:e.root);if(f.value==null&&!(s||n||u))return o.value;let b=Jg(f.value,{prev:o.value});if(s)return b;if(n||u){const i=Number(n||1/0);for(let S=0;S<=i&&!(!b||!("prev"in b));S++)b=b.prev;return b&&typeof u=="string"&&u in b&&(b=Jg(Jg(b,{prev:b}),b[u])),b}return b.prev?Jg(b.prev,b):b});return md(gM,E),E}function $9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[UT(e)])<"u"}function V9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:due();const f=Xh("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const E=nr(()=>{var u;return(u=o.value)==null?void 0:u[t._as??e]}),d=new Proxy(t,{get(u,b){var S,w,y,m,a,c,h;const i=Reflect.get(u,b);return b==="class"||b==="style"?[(S=E.value)==null?void 0:S[b],i].filter(p=>p!=null):typeof b=="string"&&!$9e(f.vnode,b)?((w=E.value)==null?void 0:w[b])!==void 0?(y=E.value)==null?void 0:y[b]:((a=(m=o.value)==null?void 0:m.global)==null?void 0:a[b])!==void 0?(h=(c=o.value)==null?void 0:c.global)==null?void 0:h[b]:i:i}}),s=Gi();Gp(()=>{if(E.value){const u=Object.entries(E.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});s.value=u.length?Object.fromEntries(u):void 0}else s.value=void 0});function n(){const u=N9e(gM,f);md(gM,nr(()=>s.value?Jg((u==null?void 0:u.value)??{},s.value):u==null?void 0:u.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=gi(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return sue(f,e)},t.props._as=String,t.setup=function(f,E){const d=due();if(!d.value)return t._setup(f,E);const{props:s,provideSubDefaults:n}=V9e(f,f._as??t.name,d),u=t._setup(s,E);return n(),u}}return t}function Oa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:em)(e)}function U9e(t,e){return e.props=t,e}function uq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Oa()({name:o??A_(ib(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...Js()},setup(f,E){let{slots:d}=E;return()=>{var s;return U1(f.tag,{class:[t,f.class],style:f.style},(s=d.default)==null?void 0:s.call(d))}}})}function y2e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const lZ="cubic-bezier(0.4, 0, 0.2, 1)",j9e="cubic-bezier(0.0, 0, 0.2, 1)",Q9e="cubic-bezier(0.4, 0, 1, 1)";function bge(t,e,o){return Object.keys(t).filter(f=>lq(f)&&f.endsWith(e)).reduce((f,E)=>(f[E.slice(0,-e.length)]=d=>t[E](d,o(d)),f),{})}function b2e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?H9e(t):hue(t))return t;t=t.parentElement}return document.scrollingElement}function cZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(hue(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function hue(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function H9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function Z9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ga(t){const e=Xh("useRender");e.render=t}function T4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Xse(),f=qo();if(Hu){const E=new ResizeObserver(d=>{t==null||t(d,E),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});Em(()=>{E.disconnect()}),ia(()=>o.el,(d,s)=>{s&&(E.unobserve(s),f.value=void 0),d&&E.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const HI=Symbol.for("vuetify:layout"),x2e=Symbol.for("vuetify:layout-item"),xge=1e3,q9e=gi({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),pue=gi({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function _2e(){const t=Kl(HI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Vc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function mue(t){const e=Kl(HI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${j1()}`,f=Xh("useLayoutItem");md(x2e,{id:o});const E=Gi(!1);tce(()=>E.value=!0),ece(()=>E.value=!1);const d=Vc(),{layoutItemStyles:s,layoutItemScrimStyles:n}=e.register(f,{...t,active:nr(()=>E.value?!1:t.active.value),id:o});return Em(()=>e.unregister(o)),{layoutItemStyles:s,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const W9e=(t,e,o,f)=>{let E={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...E}}];for(const s of t){const n=e.get(s),u=o.get(s),b=f.get(s);if(!n||!u||!b)continue;const i={...E,[n.value]:parseInt(E[n.value],10)+(b.value?parseInt(u.value,10):0)};d.push({id:s,layer:i}),E=i}return d};function Y9e(t){const e=Kl(HI,null),o=nr(()=>e?e.rootZIndex.value-100:xge),f=qo([]),E=Am(new Map),d=Am(new Map),s=Am(new Map),n=Am(new Map),u=Am(new Map),{resizeRef:b,contentRect:i}=T4(),S=ige(()=>{const O=[...new Set([...s.values()].map(x=>x.value))].sort((x,R)=>x-R),C=[];for(const x of O){const R=f.value.filter(M=>{var T;return((T=s.get(M))==null?void 0:T.value)===x});C.push(...R)}return W9e(C,E,d,n)}),w=nr(()=>!Array.from(u.values()).some(O=>O.value)),y=nr(()=>S.value[S.value.length-1].layer),m=nr(()=>({"--v-layout-left":is(y.value.left),"--v-layout-right":is(y.value.right),"--v-layout-top":is(y.value.top),"--v-layout-bottom":is(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=ige(()=>S.value.slice(1).map((O,C)=>{let{id:x}=O;const{layer:R}=S.value[C],M=d.get(x),T=E.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),c=O=>a.value.find(C=>C.id===O),h=Xh("createLayout"),p=Vc();md(HI,{register:(O,C)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:P,active:A,disableTransitions:L,absolute:D}=C;s.set(x,R),E.set(x,M),d.set(x,T),n.set(x,A),L&&u.set(x,L);const I=V8(x2e,h==null?void 0:h.vnode).indexOf(O);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=nr(()=>a.value.findIndex(U=>U.id===x)),$=nr(()=>o.value+S.value.length*2-z.value*2),Q=nr(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",Z=P.value??T.value,K=Z===0?"%":"px",re={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(A.value?0:-(Z===0?100:Z))*(X||te?-1:1)}${K})`,position:D.value||o.value!==xge?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...re,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:P.value?`${P.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?P.value?`${P.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=nr(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:O=>{s.delete(O),E.delete(O),d.delete(O),n.delete(O),u.delete(O),f.value=f.value.filter(C=>C!==O)},mainRect:y,mainStyles:m,getLayoutItem:c,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:p});const v=nr(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=nr(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:c,items:a,layoutRect:i,layoutIsReady:p,layoutRef:b}}function $1(t,e){let o;function f(){o=oD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}ia(t,E=>{E&&!o?f():E||(o==null||o.stop(),o=void 0)},{immediate:!0}),hg(()=>{o==null||o.stop()})}function ql(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S=>S,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:S=>S;const d=Xh("useProxiedModel"),s=qo(t[e]!==void 0?t[e]:o),n=UT(e),b=nr(n!==e?()=>{var S,w,y,m;return t[e],!!(((S=d.vnode.props)!=null&&S.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(m=d.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var S,w;return t[e],!!((S=d.vnode.props)!=null&&S.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});$1(()=>!b.value,()=>{ia(()=>t[e],S=>{s.value=S})});const i=nr({get(){const S=t[e];return f(b.value?S:s.value)},set(S){const w=E(S),y=sl(b.value?t[e]:s.value);y===w||f(y)===S||(s.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:s.value}),i}const X9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},_ge="$vuetify.",wge=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),w2e=(t,e,o)=>function(f){for(var E=arguments.length,d=new Array(E>1?E-1:0),s=1;snew Intl.NumberFormat([t.value,e.value],f).format(o)}function rae(t,e,o){const f=ql(t,e,t[e]??o.value);return f.value=t[e]??o.value,ia(o,E=>{t[e]==null&&(f.value=o.value)}),f}function S2e(t){return e=>{const o=rae(e,"locale",t.current),f=rae(e,"fallback",t.fallback),E=rae(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:E,t:w2e(o,f,E),n:O2e(o,f),provide:S2e({current:o,fallback:f,messages:E})}}}function G9e(t){const e=Gi((t==null?void 0:t.locale)??"en"),o=Gi((t==null?void 0:t.fallback)??"en"),f=qo({en:X9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:w2e(e,o,f),n:O2e(e,o),provide:S2e({current:e,fallback:o,messages:f})}}const uZ=Symbol.for("vuetify:locale");function K9e(t){return t.name!=null}function J9e(t){const e=t!=null&&t.adapter&&K9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:G9e(t),o=tRe(e,t);return{...e,...o}}function ry(){const t=Kl(uZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function eRe(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function tRe(t,e){const o=qo((e==null?void 0:e.rtl)??eRe()),f=nr(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:nr(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function n0(){const t=Kl(uZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const fZ=Symbol.for("vuetify:theme"),gd=gi({theme:String},"theme");function Oge(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function nRe(){var f,E;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oge();const e=Oge();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,s]of Object.entries(t.themes??{})){const n=s.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(E=e.themes)==null?void 0:E.light;o[d]=Jg(n,s)}return Jg(e,{...t,themes:o})}function rRe(t){const e=nRe(t),o=qo(e.defaultTheme),f=qo(e.themes),E=nr(()=>{const i={};for(const[S,w]of Object.entries(f.value)){const y=i[S]={...w,colors:{...w.colors}};if(e.variations)for(const m of e.variations.colors){const a=y.colors[m];if(a)for(const c of["lighten","darken"]){const h=c==="lighten"?D9e:B9e;for(const p of u4(e.variations[c],1))y.colors[`${m}-${c}-${p}`]=R9e(h(w_(a),p))}}for(const m of Object.keys(y.colors)){if(/^on-[a-z]/.test(m)||y.colors[`on-${m}`])continue;const a=`on-${m}`,c=w_(y.colors[m]);y.colors[a]=g2e(c)}}return i}),d=nr(()=>E.value[o.value]),s=nr(()=>{var m;const i=[];(m=d.value)!=null&&m.dark&&kT(i,":root",["color-scheme: dark"]),kT(i,":root",Sge(d.value));for(const[a,c]of Object.entries(E.value))kT(i,`.v-theme--${a}`,[`color-scheme: ${c.dark?"dark":"normal"}`,...Sge(c)]);const S=[],w=[],y=new Set(Object.values(E.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?kT(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(kT(S,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),kT(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),kT(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...S,...w),i.map((a,c)=>c===0?a:` ${a}`).join("")});function n(){return{style:[{children:s.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function u(i){if(e.isDisabled)return;const S=i._context.provides.usehead;if(S)if(S.push){const w=S.push(n);Hu&&ia(s,()=>{w.patch(n)})}else Hu?(S.addHeadObjs(nr(n)),Gp(()=>S.updateDOM())):S.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",e.cspNonce&&m.setAttribute("nonce",e.cspNonce),w=m,document.head.appendChild(w)}w&&(w.innerHTML=s.value)},w=Hu?document.getElementById("vuetify-theme-stylesheet"):null;Hu?ia(s,y,{immediate:!0}):y()}}const b=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:u,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:E,themeClasses:b,styles:s,global:{name:o,current:d}}}function th(t){Xh("provideTheme");const e=Kl(fZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=nr(()=>t.theme??e.name.value),f=nr(()=>e.themes.value[o.value]),E=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:E};return md(fZ,d),d}function kT(t,e,o){t.push(`${e} { +`,{label:"if",detail:"block",type:"keyword"}),Bh("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Bh("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Bh("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Bh("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],q7e=Xce(o2e,rq(H7e.concat(Z7e)));function Zme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),E=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Jie=O4.define({name:"python",parser:U7e.configure({props:[nC.add({Body:t=>{var e;return(e=Zme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":gH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":gH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":gH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=Zme(t,e);if(o!=null)return o}}return t.continue()}}),E4.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":$ce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function qme(){return new YT(Jie,[Jie.data.of({autocomplete:Q7e}),Jie.data.of({autocomplete:q7e})])}const W7e="#e5c07b",Wme="#e06c75",Y7e="#56b6c2",X7e="#ffffff",yH="#abb2bf",Wse="#7d8799",G7e="#61afef",K7e="#98c379",Yme="#d19a66",J7e="#c678dd",e9e="#21252b",Xme="#2c313a",Gme="#282c34",eae="#353a42",t9e="#3E4451",Kme="#528bff",n9e=Xa.theme({"&":{color:yH,backgroundColor:Gme},".cm-content":{caretColor:Kme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Kme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t9e},".cm-panels":{backgroundColor:e9e,color:yH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Gme,color:Wse,border:"none"},".cm-activeLineGutter":{backgroundColor:Xme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eae},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eae,borderBottomColor:eae},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Xme,color:yH}}},{dark:!0}),r9e=mD.define([{tag:hr.keyword,color:J7e},{tag:[hr.name,hr.deleted,hr.character,hr.propertyName,hr.macroName],color:Wme},{tag:[hr.function(hr.variableName),hr.labelName],color:G7e},{tag:[hr.color,hr.constant(hr.name),hr.standard(hr.name)],color:Yme},{tag:[hr.definition(hr.name),hr.separator],color:yH},{tag:[hr.typeName,hr.className,hr.number,hr.changed,hr.annotation,hr.modifier,hr.self,hr.namespace],color:W7e},{tag:[hr.operator,hr.operatorKeyword,hr.url,hr.escape,hr.regexp,hr.link,hr.special(hr.string)],color:Y7e},{tag:[hr.meta,hr.comment],color:Wse},{tag:hr.strong,fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.link,color:Wse,textDecoration:"underline"},{tag:hr.heading,fontWeight:"bold",color:Wme},{tag:[hr.atom,hr.bool,hr.special(hr.variableName)],color:Yme},{tag:[hr.processingInstruction,hr.string,hr.inserted],color:K7e},{tag:hr.invalid,color:X7e}]),pM=[n9e,Fbe(r9e)];function gi(t,e){return o=>Object.keys(t).reduce((f,E)=>{const s=typeof t[E]=="object"&&t[E]!=null&&!Array.isArray(t[E])?t[E]:{type:t[E]};return o&&E in o?f[E]={...s,default:o[E]}:f[E]=s,e&&!f[E].source&&(f[E].source=e),f},{})}const Js=gi({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),Hu=typeof window<"u",sue=Hu&&"IntersectionObserver"in window,o9e=Hu&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Jme(t,e,o){i9e(t,e),e.set(t,o)}function i9e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a9e(t,e,o){return t.set(i2e(t,e),o),o}function ST(t,e){return t.get(i2e(t,e))}function i2e(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function a2e(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let E=0;ER4(t[f],e[f]))}function GT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),a2e(t,e.split("."),o))}function N1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const E=e(t,o);return typeof E>"u"?o:E}if(typeof e=="string")return GT(t,e,o);if(Array.isArray(e))return a2e(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function u4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function is(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Yse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function lue(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const ege=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Xse=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function tae(t,e){return e.every(o=>t.hasOwnProperty(o))}function cue(t,e){const o={},f=new Set(Object.keys(t));for(const E of e)f.has(E)&&(o[E]=t[E]);return o}function tge(t,e,o){const f=Object.create(null),E=Object.create(null);for(const d in t)e.some(s=>s instanceof RegExp?s.test(d):s===d)&&!(o!=null&&o.some(s=>s===d))?f[d]=t[d]:E[d]=t[d];return[f,E]}function R_(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function s9e(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const s2e=/^on[^a-z]/,cq=t=>s2e.test(t),l9e=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],c9e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function u9e(t){return t.isComposing&&c9e.includes(t.key)}function bD(t){const[e,o]=tge(t,[s2e]),f=R_(e,l9e),[E,d]=tge(o,["class","style","id",/^data-/]);return Object.assign(E,e),Object.assign(d,f),[E,d]}function Pp(t){return t==null?[]:Array.isArray(t)?t:[t]}function f9e(t,e){let o=0;const f=function(){for(var E=arguments.length,d=new Array(E),s=0;st(...d),Va(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function ug(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function nge(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function rge(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function oge(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function d9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f1&&arguments[1]!==void 0?arguments[1]:1e3;if(t=e&&f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const E in t)f[E]=t[E];for(const E in e){const d=t[E],s=e[E];if(Yse(d)&&Yse(s)){f[E]=Jg(d,s,o);continue}if(Array.isArray(d)&&Array.isArray(s)&&o){f[E]=o(d,s);continue}f[E]=s}return f}function l2e(t){return t.map(e=>e.type===Ea?l2e(e.children):e).flat()}function jT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(jT.cache.has(t))return jT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return jT.cache.set(t,e),e}jT.cache=new Map;function U8(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>U8(t,o)).flat(1);if(e.suspense)return U8(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>U8(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return U8(t,e.component.subTree).flat(1)}return[]}var QQ=new WeakMap,M8=new WeakMap;class h9e{constructor(e){Jme(this,QQ,[]),Jme(this,M8,0),this.size=e}push(e){ST(QQ,this)[ST(M8,this)]=e,a9e(M8,this,(ST(M8,this)+1)%this.size)}values(){return ST(QQ,this).slice(ST(M8,this)).concat(ST(QQ,this).slice(0,ST(M8,this)))}}function uue(t){const e=Am({}),o=nr(t);return Gp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function aZ(t,e){return t.includes(e)}function c2e(t){return t[2].toLowerCase()+t.slice(3)}const fg=()=>[Function,Array];function age(t,e){return e="on"+A_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function fue(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function u2e(t,e,o){let f,E=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do E+=d,f=t[E];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&E=0);return f}function sZ(t,e){var f,E,d,s;const o=QI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(E=o[0])==null||E.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(s=o[e])==null||s.focus();else{const n=u2e(o,e);n?n.focus():sZ(t,e==="next"?"first":"last")}}function HQ(t){return t==null||typeof t=="string"&&t.trim()===""}function f2e(){}function mM(t,e){if(!(Hu&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function uq(t){return t.some(e=>iM(e)?e.type===Z0?!1:e.type!==Ea||uq(e.children):!0)?t:null}function p9e(t,e){if(!Hu||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function sge(t,e){const o=Gi();return Gp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function m9e(t,e){const o=t.clientX,f=t.clientY,E=e.getBoundingClientRect(),d=E.left,s=E.top,n=E.right,u=E.bottom;return o>=d&&o<=n&&f>=s&&f<=u}function Gse(){const t=Gi(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>lue(t.value)}),e}const d2e=["top","bottom"],g9e=["start","end","left","right"];function Kse(t,e){let[o,f]=t.split(" ");return f||(f=aZ(d2e,o)?"start":aZ(g9e,o)?"top":"center"),{side:Jse(o,e),align:Jse(f,e)}}function Jse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function nae(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function rae(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function lge(t){return{side:t.align,align:t.side}}function cge(t){return aZ(d2e,t.side)?"y":"x"}class QT{constructor(e){let{x:o,y:f,width:E,height:d}=e;this.x=o,this.y=f,this.width=E,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function uge(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function h2e(t){return Array.isArray(t)?new QT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function due(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let E,d,s,n,u;if(f.startsWith("matrix3d("))E=f.slice(9,-1).split(/, /),d=+E[0],s=+E[5],n=+E[12],u=+E[13];else if(f.startsWith("matrix("))E=f.slice(7,-1).split(/, /),d=+E[0],s=+E[3],n=+E[4],u=+E[5];else return new QT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),S=e.y-u-(1-s)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=s?e.height/s:t.offsetHeight+1;return new QT({x:i,y:S,width:w,height:y})}else return new QT(e)}function j8(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(E=>{f.onfinish=()=>{E(f)}})),f}const bH=new WeakMap;function v9e(t,e){Object.keys(e).forEach(o=>{if(cq(o)){const f=c2e(o),E=bH.get(t);if(e[o]==null)E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))});else if(!E||![...E].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=E||new Set;d.add([f,e[o]]),bH.has(t)||bH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function y9e(t,e){Object.keys(e).forEach(o=>{if(cq(o)){const f=c2e(o),E=bH.get(t);E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))})}else t.removeAttribute(o)})}const E8=2.4,fge=.2126729,dge=.7151522,hge=.072175,b9e=.55,x9e=.58,_9e=.57,w9e=.62,ZQ=.03,pge=1.45,O9e=5e-4,S9e=1.25,k9e=1.25,mge=.078,gge=12.82051282051282,qQ=.06,vge=.001;function yge(t,e){const o=(t.r/255)**E8,f=(t.g/255)**E8,E=(t.b/255)**E8,d=(e.r/255)**E8,s=(e.g/255)**E8,n=(e.b/255)**E8;let u=o*fge+f*dge+E*hge,b=d*fge+s*dge+n*hge;if(u<=ZQ&&(u+=(ZQ-u)**pge),b<=ZQ&&(b+=(ZQ-b)**pge),Math.abs(b-u)u){const S=(b**b9e-u**x9e)*S9e;i=S-vge?0:S>-mge?S-S*gge*qQ:S+qQ}return i*100}function T9e(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const lZ=.20689655172413793,C9e=t=>t>lZ**3?Math.cbrt(t):t/(3*lZ**2)+4/29,A9e=t=>t>lZ?t**3:3*lZ**2*(t-4/29);function p2e(t){const e=C9e,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function m2e(t){const e=A9e,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const M9e=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],E9e=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,P9e=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],R9e=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function g2e(t){const e=Array(3),o=E9e,f=M9e;for(let E=0;E<3;++E)e[E]=Math.round(ug(o(f[E][0]*t[0]+f[E][1]*t[1]+f[E][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function hue(t){let{r:e,g:o,b:f}=t;const E=[0,0,0],d=R9e,s=P9e;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)E[n]=s[n][0]*e+s[n][1]*o+s[n][2]*f;return E}function ele(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function L9e(t){return ele(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const bge=/^(?(?:rgb|hsl)a?)\((?.+)\)/,I9e={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>xge({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>xge({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>HI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>HI({h:t,s:e,v:o,a:f})};function w_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&bge.test(t)){const{groups:e}=t.match(bge),{fn:o,values:f}=e,E=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return I9e[o](...E)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),B9e(e)}else if(typeof t=="object"){if(tae(t,["r","g","b"]))return t;if(tae(t,["h","s","l"]))return HI(v2e(t));if(tae(t,["h","s","v"]))return HI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function HI(t){const{h:e,s:o,v:f,a:E}=t,d=n=>{const u=(n+e/60)%6;return f-f*o*Math.max(Math.min(u,4-u,1),0)},s=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:s[0],g:s[1],b:s[2],a:E}}function xge(t){return HI(v2e(t))}function v2e(t){const{h:e,s:o,l:f,a:E}=t,d=f+o*Math.min(f,1-f),s=d===0?0:2-2*f/d;return{h:e,s,v:d,a:E}}function WQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function D9e(t){let{r:e,g:o,b:f,a:E}=t;return`#${[WQ(e),WQ(o),WQ(f),E!==void 0?WQ(Math.round(E*255)):""].join("")}`}function B9e(t){t=z9e(t);let[e,o,f,E]=d9e(t,2).map(d=>parseInt(d,16));return E=E===void 0?E:E/255,{r:e,g:o,b:f,a:E}}function z9e(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=rge(rge(t,6),8,"F")),t}function N9e(t,e){const o=p2e(hue(t));return o[0]=o[0]+e*10,g2e(m2e(o))}function F9e(t,e){const o=p2e(hue(t));return o[0]=o[0]-e*10,g2e(m2e(o))}function $9e(t){const e=w_(t);return hue(e)[1]}function y2e(t){const e=Math.abs(yge(w_(0),w_(t)));return Math.abs(yge(w_(16777215),w_(t)))>Math.min(e,50)?"#fff":"#000"}function Xh(t,e){const o=dce();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function L_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Xh(t).type;return jT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let b2e=0,xH=new WeakMap;function j1(){const t=Xh("getUid");if(xH.has(t))return xH.get(t);{const e=b2e++;return xH.set(t,e),e}}j1.reset=()=>{b2e=0,xH=new WeakMap};function V9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xh("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const gM=Symbol.for("vuetify:defaults");function U9e(t){return qo(t)}function pue(){const t=Kl(gM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ab(t,e){const o=pue(),f=qo(t),E=nr(()=>{if(Va(e==null?void 0:e.disabled))return o.value;const s=Va(e==null?void 0:e.scoped),n=Va(e==null?void 0:e.reset),u=Va(e==null?void 0:e.root);if(f.value==null&&!(s||n||u))return o.value;let b=Jg(f.value,{prev:o.value});if(s)return b;if(n||u){const i=Number(n||1/0);for(let S=0;S<=i&&!(!b||!("prev"in b));S++)b=b.prev;return b&&typeof u=="string"&&u in b&&(b=Jg(Jg(b,{prev:b}),b[u])),b}return b.prev?Jg(b.prev,b):b});return md(gM,E),E}function j9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[jT(e)])<"u"}function Q9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pue();const f=Xh("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const E=nr(()=>{var u;return(u=o.value)==null?void 0:u[t._as??e]}),d=new Proxy(t,{get(u,b){var S,w,y,m,a,c,h;const i=Reflect.get(u,b);return b==="class"||b==="style"?[(S=E.value)==null?void 0:S[b],i].filter(p=>p!=null):typeof b=="string"&&!j9e(f.vnode,b)?((w=E.value)==null?void 0:w[b])!==void 0?(y=E.value)==null?void 0:y[b]:((a=(m=o.value)==null?void 0:m.global)==null?void 0:a[b])!==void 0?(h=(c=o.value)==null?void 0:c.global)==null?void 0:h[b]:i:i}}),s=Gi();Gp(()=>{if(E.value){const u=Object.entries(E.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});s.value=u.length?Object.fromEntries(u):void 0}else s.value=void 0});function n(){const u=V9e(gM,f);md(gM,nr(()=>s.value?Jg((u==null?void 0:u.value)??{},s.value):u==null?void 0:u.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=gi(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return cue(f,e)},t.props._as=String,t.setup=function(f,E){const d=pue();if(!d.value)return t._setup(f,E);const{props:s,provideSubDefaults:n}=Q9e(f,f._as??t.name,d),u=t._setup(s,E);return n(),u}}return t}function Oa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:em)(e)}function H9e(t,e){return e.props=t,e}function fq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Oa()({name:o??A_(ib(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...Js()},setup(f,E){let{slots:d}=E;return()=>{var s;return U1(f.tag,{class:[t,f.class],style:f.style},(s=d.default)==null?void 0:s.call(d))}}})}function x2e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const cZ="cubic-bezier(0.4, 0, 0.2, 1)",Z9e="cubic-bezier(0.0, 0, 0.2, 1)",q9e="cubic-bezier(0.4, 0, 1, 1)";function _ge(t,e,o){return Object.keys(t).filter(f=>cq(f)&&f.endsWith(e)).reduce((f,E)=>(f[E.slice(0,-e.length)]=d=>t[E](d,o(d)),f),{})}function _2e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?W9e(t):mue(t))return t;t=t.parentElement}return document.scrollingElement}function uZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(mue(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function mue(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function W9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function Y9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ga(t){const e=Xh("useRender");e.render=t}function T4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Gse(),f=qo();if(Hu){const E=new ResizeObserver(d=>{t==null||t(d,E),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});Em(()=>{E.disconnect()}),ia(()=>o.el,(d,s)=>{s&&(E.unobserve(s),f.value=void 0),d&&E.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const ZI=Symbol.for("vuetify:layout"),w2e=Symbol.for("vuetify:layout-item"),wge=1e3,X9e=gi({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),gue=gi({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function O2e(){const t=Kl(ZI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Vc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function vue(t){const e=Kl(ZI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${j1()}`,f=Xh("useLayoutItem");md(w2e,{id:o});const E=Gi(!1);nce(()=>E.value=!0),tce(()=>E.value=!1);const d=Vc(),{layoutItemStyles:s,layoutItemScrimStyles:n}=e.register(f,{...t,active:nr(()=>E.value?!1:t.active.value),id:o});return Em(()=>e.unregister(o)),{layoutItemStyles:s,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const G9e=(t,e,o,f)=>{let E={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...E}}];for(const s of t){const n=e.get(s),u=o.get(s),b=f.get(s);if(!n||!u||!b)continue;const i={...E,[n.value]:parseInt(E[n.value],10)+(b.value?parseInt(u.value,10):0)};d.push({id:s,layer:i}),E=i}return d};function K9e(t){const e=Kl(ZI,null),o=nr(()=>e?e.rootZIndex.value-100:wge),f=qo([]),E=Am(new Map),d=Am(new Map),s=Am(new Map),n=Am(new Map),u=Am(new Map),{resizeRef:b,contentRect:i}=T4(),S=sge(()=>{const O=[...new Set([...s.values()].map(x=>x.value))].sort((x,R)=>x-R),C=[];for(const x of O){const R=f.value.filter(M=>{var T;return((T=s.get(M))==null?void 0:T.value)===x});C.push(...R)}return G9e(C,E,d,n)}),w=nr(()=>!Array.from(u.values()).some(O=>O.value)),y=nr(()=>S.value[S.value.length-1].layer),m=nr(()=>({"--v-layout-left":is(y.value.left),"--v-layout-right":is(y.value.right),"--v-layout-top":is(y.value.top),"--v-layout-bottom":is(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=sge(()=>S.value.slice(1).map((O,C)=>{let{id:x}=O;const{layer:R}=S.value[C],M=d.get(x),T=E.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),c=O=>a.value.find(C=>C.id===O),h=Xh("createLayout"),p=Vc();md(ZI,{register:(O,C)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:P,active:A,disableTransitions:L,absolute:D}=C;s.set(x,R),E.set(x,M),d.set(x,T),n.set(x,A),L&&u.set(x,L);const I=U8(w2e,h==null?void 0:h.vnode).indexOf(O);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=nr(()=>a.value.findIndex(U=>U.id===x)),$=nr(()=>o.value+S.value.length*2-z.value*2),Q=nr(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",Z=P.value??T.value,K=Z===0?"%":"px",re={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(A.value?0:-(Z===0?100:Z))*(X||te?-1:1)}${K})`,position:D.value||o.value!==wge?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...re,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:P.value?`${P.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?P.value?`${P.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=nr(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:O=>{s.delete(O),E.delete(O),d.delete(O),n.delete(O),u.delete(O),f.value=f.value.filter(C=>C!==O)},mainRect:y,mainStyles:m,getLayoutItem:c,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:p});const v=nr(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=nr(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:c,items:a,layoutRect:i,layoutIsReady:p,layoutRef:b}}function $1(t,e){let o;function f(){o=iD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}ia(t,E=>{E&&!o?f():E||(o==null||o.stop(),o=void 0)},{immediate:!0}),hg(()=>{o==null||o.stop()})}function ql(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S=>S,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:S=>S;const d=Xh("useProxiedModel"),s=qo(t[e]!==void 0?t[e]:o),n=jT(e),b=nr(n!==e?()=>{var S,w,y,m;return t[e],!!(((S=d.vnode.props)!=null&&S.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(m=d.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var S,w;return t[e],!!((S=d.vnode.props)!=null&&S.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});$1(()=>!b.value,()=>{ia(()=>t[e],S=>{s.value=S})});const i=nr({get(){const S=t[e];return f(b.value?S:s.value)},set(S){const w=E(S),y=sl(b.value?t[e]:s.value);y===w||f(y)===S||(s.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:s.value}),i}const J9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Oge="$vuetify.",Sge=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),S2e=(t,e,o)=>function(f){for(var E=arguments.length,d=new Array(E>1?E-1:0),s=1;snew Intl.NumberFormat([t.value,e.value],f).format(o)}function oae(t,e,o){const f=ql(t,e,t[e]??o.value);return f.value=t[e]??o.value,ia(o,E=>{t[e]==null&&(f.value=o.value)}),f}function T2e(t){return e=>{const o=oae(e,"locale",t.current),f=oae(e,"fallback",t.fallback),E=oae(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:E,t:S2e(o,f,E),n:k2e(o,f),provide:T2e({current:o,fallback:f,messages:E})}}}function eRe(t){const e=Gi((t==null?void 0:t.locale)??"en"),o=Gi((t==null?void 0:t.fallback)??"en"),f=qo({en:J9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:S2e(e,o,f),n:k2e(e,o),provide:T2e({current:e,fallback:o,messages:f})}}const fZ=Symbol.for("vuetify:locale");function tRe(t){return t.name!=null}function nRe(t){const e=t!=null&&t.adapter&&tRe(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:eRe(t),o=oRe(e,t);return{...e,...o}}function oy(){const t=Kl(fZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function rRe(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function oRe(t,e){const o=qo((e==null?void 0:e.rtl)??rRe()),f=nr(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:nr(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function n0(){const t=Kl(fZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const dZ=Symbol.for("vuetify:theme"),gd=gi({theme:String},"theme");function kge(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function iRe(){var f,E;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kge();const e=kge();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,s]of Object.entries(t.themes??{})){const n=s.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(E=e.themes)==null?void 0:E.light;o[d]=Jg(n,s)}return Jg(e,{...t,themes:o})}function aRe(t){const e=iRe(t),o=qo(e.defaultTheme),f=qo(e.themes),E=nr(()=>{const i={};for(const[S,w]of Object.entries(f.value)){const y=i[S]={...w,colors:{...w.colors}};if(e.variations)for(const m of e.variations.colors){const a=y.colors[m];if(a)for(const c of["lighten","darken"]){const h=c==="lighten"?N9e:F9e;for(const p of u4(e.variations[c],1))y.colors[`${m}-${c}-${p}`]=D9e(h(w_(a),p))}}for(const m of Object.keys(y.colors)){if(/^on-[a-z]/.test(m)||y.colors[`on-${m}`])continue;const a=`on-${m}`,c=w_(y.colors[m]);y.colors[a]=y2e(c)}}return i}),d=nr(()=>E.value[o.value]),s=nr(()=>{var m;const i=[];(m=d.value)!=null&&m.dark&&kT(i,":root",["color-scheme: dark"]),kT(i,":root",Tge(d.value));for(const[a,c]of Object.entries(E.value))kT(i,`.v-theme--${a}`,[`color-scheme: ${c.dark?"dark":"normal"}`,...Tge(c)]);const S=[],w=[],y=new Set(Object.values(E.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?kT(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(kT(S,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),kT(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),kT(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...S,...w),i.map((a,c)=>c===0?a:` ${a}`).join("")});function n(){return{style:[{children:s.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function u(i){if(e.isDisabled)return;const S=i._context.provides.usehead;if(S)if(S.push){const w=S.push(n);Hu&&ia(s,()=>{w.patch(n)})}else Hu?(S.addHeadObjs(nr(n)),Gp(()=>S.updateDOM())):S.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",e.cspNonce&&m.setAttribute("nonce",e.cspNonce),w=m,document.head.appendChild(w)}w&&(w.innerHTML=s.value)},w=Hu?document.getElementById("vuetify-theme-stylesheet"):null;Hu?ia(s,y,{immediate:!0}):y()}}const b=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:u,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:E,themeClasses:b,styles:s,global:{name:o,current:d}}}function th(t){Xh("provideTheme");const e=Kl(dZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=nr(()=>t.theme??e.name.value),f=nr(()=>e.themes.value[o.value]),E=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:E};return md(dZ,d),d}function kT(t,e,o){t.push(`${e} { `,...o.map(f=>` ${f}; `),`} -`)}function Sge(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[E,d]of Object.entries(t.colors)){const s=w_(d);f.push(`--v-theme-${E}: ${s.r},${s.g},${s.b}`),E.startsWith("on-")||f.push(`--v-theme-${E}-overlay-multiplier: ${z9e(d)>.18?e:o}`)}for(const[E,d]of Object.entries(t.variables)){const s=typeof d=="string"&&d.startsWith("#")?w_(d):void 0,n=s?`${s.r}, ${s.g}, ${s.b}`:void 0;f.push(`--v-${E}: ${n??d}`)}return f}const oRe=gi({...Js(),...q9e({fullHeight:!0}),...gd()},"VApp"),iRe=Oa()({name:"VApp",props:oRe(),setup(t,e){let{slots:o}=e;const f=th(t),{layoutClasses:E,getLayoutItem:d,items:s,layoutRef:n}=Y9e(t),{rtlClasses:u}=n0();return Ga(()=>$t("div",{ref:n,class:["v-application",f.themeClasses.value,E.value,u.value,t.class],style:[t.style]},[$t("div",{class:"v-application__wrap"},[$t(Y4e,null,{default:()=>{var b;return[$t(Ea,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:s,theme:f}}});const tf=gi({tag:{type:String,default:"div"}},"tag"),aRe=gi({text:String,...Js(),...tf()},"VToolbarTitle"),sRe=Oa()({name:"VToolbarTitle",props:aRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{const f=!!(o.default||o.text||t.text);return $t(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var E;return[f&&$t("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(E=o.default)==null?void 0:E.call(o)])]}})}),{}}}),lRe=gi({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function oy(t,e,o){return Oa()({name:t,props:lRe({mode:o,origin:e}),setup(f,E){let{slots:d}=E;const s={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:u,offsetLeft:b,offsetWidth:i,offsetHeight:S}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${u}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${S}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:u,top:b,left:i,width:S,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=u||"",n.style.top=b||"",n.style.left=i||"",n.style.width=S||"",n.style.height=w||""}}};return()=>{const n=f.group?hce:C_;return U1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:s},d.default)}}})}function k2e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Oa()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,E){let{slots:d}=E;const s=f.group?hce:C_;return()=>U1(s,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function T2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=ib(`offset-${o}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[o]:s.style[o]}},onEnter(s){const n=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const u=`${s[f]}px`;s.style[o]="0",s.offsetHeight,s.style.transition=n.transition,t&&s._parent&&s._parent.classList.add(t),requestAnimationFrame(()=>{s.style[o]=u})},onAfterEnter:d,onEnterCancelled:d,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[o]:s.style[o]},s.style.overflow="hidden",s.style[o]=`${s[f]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[o]="0")},onAfterLeave:E,onLeaveCancelled:E};function E(s){t&&s._parent&&s._parent.classList.remove(t),d(s)}function d(s){const n=s._initialStyle[o];s.style.overflow=s._initialStyle.overflow,n!=null&&(s.style[o]=n),delete s._initialStyle}}const cRe=gi({target:[Object,Array]},"v-dialog-transition"),gue=Oa()({name:"VDialogTransition",props:cRe(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(E){E.style.pointerEvents="none",E.style.visibility="hidden"},async onEnter(E,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),E.style.visibility="";const{x:s,y:n,sx:u,sy:b,speed:i}=Tge(t.target,E),S=U8(E,[{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0},{}],{duration:225*i,easing:j9e});(w=kge(E))==null||w.forEach(y=>{U8(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:lZ})}),S.finished.then(()=>d())},onAfterEnter(E){E.style.removeProperty("pointer-events")},onBeforeLeave(E){E.style.pointerEvents="none"},async onLeave(E,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:s,y:n,sx:u,sy:b,speed:i}=Tge(t.target,E);U8(E,[{},{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0}],{duration:125*i,easing:Q9e}).finished.then(()=>d()),(w=kge(E))==null||w.forEach(y=>{U8(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:lZ})})},onAfterLeave(E){E.style.removeProperty("pointer-events")}};return()=>t.target?$t(C_,qi({name:"dialog-transition"},f,{css:!1}),o):$t(C_,{name:"dialog-transition"},o)}});function kge(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Tge(t,e){const o=f2e(t),f=uue(e),[E,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[s,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=o.left+o.width/2;s==="left"||n==="left"?u-=o.width/2:(s==="right"||n==="right")&&(u+=o.width/2);let b=o.top+o.height/2;s==="top"||n==="top"?b-=o.height/2:(s==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,S=o.height/f.height,w=Math.max(1,i,S),y=i/w||0,m=S/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),c=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:u-(E+f.left),y:b-(d+f.top),sx:y,sy:m,speed:c}}oy("fab-transition","center center","out-in");oy("dialog-bottom-transition");oy("dialog-top-transition");const Cge=oy("fade-transition"),C2e=oy("scale-transition");oy("scroll-x-transition");oy("scroll-x-reverse-transition");oy("scroll-y-transition");oy("scroll-y-reverse-transition");oy("slide-x-transition");oy("slide-x-reverse-transition");const A2e=oy("slide-y-transition");oy("slide-y-reverse-transition");const vue=k2e("expand-transition",T2e()),M2e=k2e("expand-x-transition",T2e("",!0)),uRe=gi({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ef=Oa(!1)({name:"VDefaultsProvider",props:uRe(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:E,reset:d,root:s,scoped:n}=CM(t);return ab(f,{reset:d,root:s,scoped:n,disabled:E}),()=>{var u;return(u=o.default)==null?void 0:u.call(o)}}});const I_=gi({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function D_(t){return{dimensionStyles:nr(()=>{const o={},f=is(t.height),E=is(t.maxHeight),d=is(t.maxWidth),s=is(t.minHeight),n=is(t.minWidth),u=is(t.width);return f!=null&&(o.height=f),E!=null&&(o.maxHeight=E),d!=null&&(o.maxWidth=d),s!=null&&(o.minHeight=s),n!=null&&(o.minWidth=n),u!=null&&(o.width=u),o})}}function fRe(t){return{aspectStyles:nr(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const E2e=gi({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Js(),...I_()},"VResponsive"),Age=Oa()({name:"VResponsive",props:E2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=fRe(t),{dimensionStyles:E}=D_(t);return Ga(()=>{var d;return $t("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[E.value,t.style]},[$t("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&$t("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function yue(t){return lue(()=>{const e=[],o={};if(t.value.background)if(Jse(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&E9e(t.value.background)){const f=w_(t.value.background);if(f.a==null||f.a===1){const E=g2e(f);o.color=E,o.caretColor=E}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Jse(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function ny(t,e){const o=nr(()=>({text:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=yue(o);return{textColorClasses:f,textColorStyles:E}}function dg(t,e){const o=nr(()=>({background:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=yue(o);return{backgroundColorClasses:f,backgroundColorStyles:E}}const Pm=gi({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function mg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{roundedClasses:nr(()=>{const f=ku(t)?t.value:t.rounded,E=ku(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const s of String(f).split(" "))d.push(`rounded-${s}`);else(E||f===!1)&&d.push("rounded-0");return d})}}const nC=gi({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),f4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:E,group:d,...s}=t,{component:n=d?hce:C_,...u}=typeof f=="object"?f:{};return U1(n,qi(typeof f=="string"?{name:E?"":f}:u,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:E,group:d}).filter(b=>{let[i,S]=b;return S!==void 0})),s),o)};function dRe(t,e){if(!iue)return;const o=e.modifiers||{},f=e.value,{handler:E,options:d}=typeof f=="object"?f:{handler:f,options:{}},s=new IntersectionObserver(function(){var S;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;const b=(S=t._observe)==null?void 0:S[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);E&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&E(i,n,u),i&&o.once?P2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:s},s.observe(t)}function P2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const hRe={mounted:dRe,unmounted:P2e},bue=hRe,pRe=gi({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...E2e(),...Js(),...Pm(),...nC()},"VImg"),rC=Oa()({name:"VImg",directives:{intersect:bue},props:pRe(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(ji(t,"color")),{roundedClasses:s}=mg(t),n=Xh("VImg"),u=Gi(""),b=qo(),i=Gi(t.eager?"loading":"idle"),S=Gi(),w=Gi(),y=nr(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),m=nr(()=>y.value.aspect||S.value/w.value||0);ia(()=>t.src,()=>{a(i.value!=="idle")}),ia(m,(A,L)=>{!A&&L&&b.value&&_(b.value)}),nce(()=>a());function a(A){if(!(t.eager&&A)&&!(iue&&!A&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&Vc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;m.value||_(b.value,null),i.value==="loading"&&c()}else m.value||_(b.value),p()})})}}function c(){var A;n.isUnmounted||(p(),_(b.value),i.value="loaded",o("load",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function h(){var A;n.isUnmounted||(i.value="error",o("error",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function p(){const A=b.value;A&&(u.value=A.currentSrc||A.src)}let v=-1;Em(()=>{clearTimeout(v)});function _(A){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=A;k||I?(S.value=I,w.value=k):!A.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(S.value=1,w.value=1)};D()}const O=nr(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),C=()=>{var D;if(!y.value.src||i.value==="idle")return null;const A=$t("img",{class:["v-img__img",O.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:c,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return $t(f4,{transition:t.transition,appear:!0},{default:()=>[Kp(L?$t("picture",{class:"v-img__picture"},[L,A]):A,[[A4,i.value==="loaded"]])]})},x=()=>$t(f4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&$t("img",{class:["v-img__img","v-img__img--preload",O.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?$t(f4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&$t("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?$t(f4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&$t("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?$t("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,P=Gi(!1);{const A=ia(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.value=!0})}),A())})}return Ga(()=>{const A=Age.filterProps(t);return Kp($t(Age,qi({class:["v-img",{"v-img--booting":!P.value},E.value,s.value,t.class],style:[{width:is(t.width==="auto"?S.value:t.width)},d.value,t.style]},A,{aspectRatio:m.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>$t(Ea,null,[$t(C,null,null),$t(x,null,null),$t(T,null,null),$t(R,null,null),$t(M,null,null)]),default:f.default}),[[M_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:u,image:b,state:i,naturalWidth:S,naturalHeight:w}}}),B_=gi({border:[Boolean,Number,String]},"border");function $O(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{borderClasses:nr(()=>{const f=ku(t)?t.value:t.border,E=[];if(f===!0||f==="")E.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))E.push(`border-${d}`);return E})}}const iy=gi({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function cb(t){return{elevationClasses:nr(()=>{const o=ku(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const mRe=[null,"prominent","default","comfortable","compact"],R2e=gi({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>mRe.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...B_(),...Js(),...iy(),...Pm(),...tf({tag:"header"}),...gd()},"VToolbar"),Mge=Oa()({name:"VToolbar",props:R2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:E}=dg(ji(t,"color")),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),{themeClasses:u}=th(t),{rtlClasses:b}=n0(),i=Gi(!!(t.extended||(y=o.extension)!=null&&y.call(o))),S=nr(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=nr(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ab({VBtn:{variant:"text"}}),Ga(()=>{var h;const m=!!(t.title||o.title),a=!!(o.image||t.image),c=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||c),$t(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,s.value,n.value,u.value,b.value,t.class],style:[E.value,t.style]},{default:()=>[a&&$t("div",{key:"image",class:"v-toolbar__image"},[o.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):$t(rC,{key:"image-img",cover:!0,src:t.image},null)]),$t(ef,{defaults:{VTabs:{height:is(S.value)}}},{default:()=>{var p,v,_;return[$t("div",{class:"v-toolbar__content",style:{height:is(S.value)}},[o.prepend&&$t("div",{class:"v-toolbar__prepend"},[(p=o.prepend)==null?void 0:p.call(o)]),m&&$t(sRe,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&$t("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),$t(ef,{defaults:{VTabs:{height:is(w.value)}}},{default:()=>[$t(vue,null,{default:()=>[i.value&&$t("div",{class:"v-toolbar__extension",style:{height:is(w.value)}},[c])]})]})]})}),{contentHeight:S,extensionHeight:w}}}),gRe=gi({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function vRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,E=0;const d=qo(null),s=Gi(0),n=Gi(0),u=Gi(0),b=Gi(!1),i=Gi(!1),S=nr(()=>Number(t.scrollThreshold)),w=nr(()=>ug((S.value-s.value)/S.value||0)),y=()=>{const m=d.value;if(!m||o&&!o.value)return;f=s.value,s.value="window"in m?m.pageYOffset:m.scrollTop;const a=m instanceof Window?document.documentElement.scrollHeight:m.scrollHeight;if(E!==a){E=a;return}i.value=s.value{n.value=n.value||s.value}),ia(b,()=>{n.value=0}),pg(()=>{ia(()=>t.scrollTarget,m=>{var c;const a=m?document.querySelector(m):window;a&&a!==d.value&&((c=d.value)==null||c.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),Em(()=>{var m;(m=d.value)==null||m.removeEventListener("scroll",y)}),o&&ia(o,y,{immediate:!0}),{scrollThreshold:S,currentScroll:s,currentThreshold:u,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function fq(){const t=Gi(!1);return pg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:nr(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const yRe=gi({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...R2e(),...pue(),...gRe(),height:{type:[Number,String],default:64}},"VAppBar"),bRe=Oa()({name:"VAppBar",props:yRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=qo(),E=ql(t,"modelValue"),d=nr(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),s=nr(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!E.value}),{currentScroll:n,scrollThreshold:u,isScrollingUp:b,scrollRatio:i}=vRe(t,{canScroll:s}),S=nr(()=>d.value.hide||d.value.fullyHide),w=nr(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=nr(()=>t.flat||d.value.fullyHide&&!E.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),m=nr(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=nr(()=>{var O,C;const v=Number(((O=f.value)==null?void 0:O.contentHeight)??t.height),_=Number(((C=f.value)==null?void 0:C.extensionHeight)??0);return S.value?n.value!!t.scrollBehavior),()=>{Gp(()=>{S.value?d.value.inverted?E.value=n.value>u.value:E.value=b.value||n.valueparseInt(t.order,10)),position:ji(t,"location"),layoutSize:a,elementSize:Gi(void 0),active:E,absolute:ji(t,"absolute")});return Ga(()=>{const v=Mge.filterProps(t);return $t(Mge,qi({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":m.value,height:void 0,...c.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),p}});const xRe=[null,"default","comfortable","compact"],Q1=gi({density:{type:String,default:"default",validator:t=>xRe.includes(t)}},"density");function Rx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{densityClasses:nr(()=>`${e}--density-${t.density}`)}}const _Re=["elevated","flat","tonal","outlined","text","plain"];function oC(t,e){return $t(Ea,null,[t&&$t("span",{key:"overlay",class:`${e}__overlay`},null),$t("span",{key:"underlay",class:`${e}__underlay`},null)])}const Lx=gi({color:String,variant:{type:String,default:"elevated",validator:t=>_Re.includes(t)}},"variant");function iC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=nr(()=>{const{variant:d}=Va(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:E}=yue(nr(()=>{const{variant:d,color:s}=Va(t);return{[["elevated","flat"].includes(d)?"background":"text"]:s}}));return{colorClasses:f,colorStyles:E,variantClasses:o}}const L2e=gi({baseColor:String,divided:Boolean,...B_(),...Js(),...Q1(),...iy(),...Pm(),...tf(),...gd(),...Lx()},"VBtnGroup"),Ege=Oa()({name:"VBtnGroup",props:L2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{densityClasses:E}=Rx(t),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t);ab({VBtn:{height:"auto",baseColor:ji(t,"baseColor"),color:ji(t,"color"),density:ji(t,"density"),flat:!0,variant:ji(t,"variant")}}),Ga(()=>$t(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,E.value,s.value,n.value,t.class],style:t.style},o))}}),dq=gi({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),xue=gi({value:null,disabled:Boolean,selectedClass:String},"group-item");function _ue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=Xh("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const E=j1();md(Symbol.for(`${e.description}:id`),E);const d=Kl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const s=ji(t,"value"),n=nr(()=>!!(d.disabled.value||t.disabled));d.register({id:E,value:s,disabled:n},f),Em(()=>{d.unregister(E)});const u=nr(()=>d.isSelected(E)),b=nr(()=>d.items.value[0].id===E),i=nr(()=>d.items.value[d.items.value.length-1].id===E),S=nr(()=>u.value&&[d.selectedClass.value,t.selectedClass]);return ia(u,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:E,isSelected:u,isFirst:b,isLast:i,toggle:()=>d.select(E,!u.value),select:w=>d.select(E,w),selectedClass:S,value:s,disabled:n,group:d}}function hq(t,e){let o=!1;const f=Am([]),E=ql(t,"modelValue",[],w=>w==null?[]:I2e(f,Pp(w)),w=>{const y=ORe(f,w);return t.multiple?y:y[0]}),d=Xh("useGroup");function s(w,y){const m=w,a=Symbol.for(`${e.description}:id`),h=V8(a,d==null?void 0:d.vnode).indexOf(y);Va(m.value)==null&&(m.value=h,m.useIndexAsValue=!0),h>-1?f.splice(h,0,m):f.push(m)}function n(w){if(o)return;u();const y=f.findIndex(m=>m.id===w);f.splice(y,1)}function u(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!E.value.length&&(E.value=[w.id])}pg(()=>{u()}),Em(()=>{o=!0}),rce(()=>{for(let w=0;wa.id===w);if(!(y&&(m!=null&&m.disabled)))if(t.multiple){const a=E.value.slice(),c=a.findIndex(p=>p===w),h=~c;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;c<0&&y?a.push(w):c>=0&&!y&&a.splice(c,1),E.value=a}else{const a=E.value.includes(w);if(t.mandatory&&a)return;E.value=y??!a?[w]:[]}}function i(w){if(t.multiple,E.value.length){const y=E.value[0],m=f.findIndex(h=>h.id===y);let a=(m+w)%f.length,c=f[a];for(;c.disabled&&a!==m;)a=(a+w)%f.length,c=f[a];if(c.disabled)return;E.value=[f[a].id]}else{const y=f.find(m=>!m.disabled);y&&(E.value=[y.id])}}const S={register:s,unregister:n,selected:E,select:b,disabled:ji(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>E.value.includes(w),selectedClass:nr(()=>t.selectedClass),items:nr(()=>f),getItemIndex:w=>wRe(f,w)};return md(e,S),S}function wRe(t,e){const o=I2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function I2e(t,e){const o=[];return e.forEach(f=>{const E=t.find(s=>R4(f,s.value)),d=t[f];(E==null?void 0:E.value)!=null?o.push(E.id):d!=null&&o.push(d.id)}),o}function ORe(t,e){const o=[];return e.forEach(f=>{const E=t.findIndex(d=>d.id===f);if(~E){const d=t[E];o.push(d.value!=null?d.value:E)}}),o}const D2e=Symbol.for("vuetify:v-btn-toggle"),SRe=gi({...L2e(),...dq()},"VBtnToggle"),B2e=Oa()({name:"VBtnToggle",props:SRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:E,prev:d,select:s,selected:n}=hq(t,D2e);return Ga(()=>{const u=Ege.filterProps(t);return $t(Ege,qi({class:["v-btn-toggle",t.class]},u,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:E,prev:d,select:s,selected:n})]}})}),{next:E,prev:d,select:s}}});const z2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},N2e={component:t=>U1($2e,{...t,class:"mdi"})},Hl=[String,Function,Object,Array],ele=Symbol.for("vuetify:icons"),pq=gi({icon:{type:Hl},tag:{type:String,required:!0}},"icon"),Pge=Oa()({name:"VComponentIcon",props:pq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return $t(t.tag,null,{default:()=>{var E;return[t.icon?$t(f,null,null):(E=o.default)==null?void 0:E.call(o)]}})}}}),F2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:pq(),setup(t,e){let{attrs:o}=e;return()=>$t(t.tag,qi(o,{style:null}),{default:()=>[$t("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?$t("path",{d:f[0],"fill-opacity":f[1]},null):$t("path",{d:f},null)):$t("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:pq(),setup(t){return()=>$t(t.tag,null,{default:()=>[t.icon]})}});const $2e=PM({name:"VClassIcon",props:pq(),setup(t){return()=>$t(t.tag,{class:t.icon},null)}});function kRe(){return{svg:{component:F2e},class:{component:$2e}}}function TRe(t){const e=kRe(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=N2e),Jg({defaultSet:o,sets:e,aliases:{...z2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const CRe=t=>{const e=Kl(ele);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:nr(()=>{var u;const f=Va(t);if(!f)return{component:Pge};let E=f;if(typeof E=="string"&&(E=E.trim(),E.startsWith("$")&&(E=(u=e.aliases)==null?void 0:u[E.slice(1)])),Array.isArray(E))return{component:F2e,icon:E};if(typeof E!="string")return{component:Pge,icon:E};const d=Object.keys(e.sets).find(b=>typeof E=="string"&&E.startsWith(`${b}:`)),s=d?E.slice(d.length+1):E;return{component:e.sets[d??e.defaultSet].component,icon:s}})}},ARe=["x-small","small","default","large","x-large"],aC=gi({size:{type:[String,Number],default:"default"}},"size");function bD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return lue(()=>{let o,f;return iZ(ARe,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:is(t.size),height:is(t.size)}),{sizeClasses:o,sizeStyles:f}})}const MRe=gi({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Hl,...Js(),...aC(),...tf({tag:"i"}),...gd()},"VIcon"),jl=Oa()({name:"VIcon",props:MRe(),setup(t,e){let{attrs:o,slots:f}=e;const E=qo(),{themeClasses:d}=th(t),{iconData:s}=CRe(nr(()=>E.value||t.icon)),{sizeClasses:n}=bD(t),{textColorClasses:u,textColorStyles:b}=ny(ji(t,"color"));return Ga(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(E.value=(y=a2e(i).filter(m=>m.type===sD&&m.children&&typeof m.children=="string")[0])==null?void 0:y.children);const S=!!(o.onClick||o.onClickOnce);return $t(s.value.component,{tag:t.tag,icon:s.value.icon,class:["v-icon","notranslate",d.value,n.value,u.value,{"v-icon--clickable":S,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:is(t.size),height:is(t.size),width:is(t.size)},b.value,t.style],role:S?"button":void 0,"aria-hidden":!S,tabindex:S?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function V2e(t,e){const o=qo(),f=Gi(!1);if(iue){const E=new IntersectionObserver(d=>{t==null||t(d,E),f.value=!!d.find(s=>s.isIntersecting)},e);Em(()=>{E.disconnect()}),ia(o,(d,s)=>{s&&(E.unobserve(s),f.value=!1),d&&E.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const ERe=gi({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Js(),...aC(),...tf({tag:"div"}),...gd()},"VProgressCircular"),sC=Oa()({name:"VProgressCircular",props:ERe(),setup(t,e){let{slots:o}=e;const f=20,E=2*Math.PI*f,d=qo(),{themeClasses:s}=th(t),{sizeClasses:n,sizeStyles:u}=bD(t),{textColorClasses:b,textColorStyles:i}=ny(ji(t,"color")),{textColorClasses:S,textColorStyles:w}=ny(ji(t,"bgColor")),{intersectionRef:y,isIntersecting:m}=V2e(),{resizeRef:a,contentRect:c}=T4(),h=nr(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),p=nr(()=>Number(t.width)),v=nr(()=>u.value?Number(t.size):c.value?c.value.width:Math.max(p.value,32)),_=nr(()=>f/(1-p.value/v.value)*2),O=nr(()=>p.value/v.value*_.value),C=nr(()=>is((100-h.value)/100*E));return Gp(()=>{y.value=d.value,a.value=d.value}),Ga(()=>$t(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},s.value,n.value,b.value,t.class],style:[u.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[$t("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[$t("circle",{class:["v-progress-circular__underlay",S.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":0},null),$t("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":C.value},null)]),o.default&&$t("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const Rge={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},xD=gi({location:String},"location");function mq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=n0();return{locationStyles:nr(()=>{if(!t.location)return{};const{side:d,align:s}=Gse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const u={};return d!=="center"&&(e?u[Rge[d]]=`calc(100% - ${n(d)}px)`:u[d]=0),s!=="center"?e?u[Rge[s]]=`calc(100% - ${n(s)}px)`:u[s]=0:(d==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),u})}}const PRe=gi({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Js(),...xD({location:"top"}),...Pm(),...tf(),...gd()},"VProgressLinear"),U2e=Oa()({name:"VProgressLinear",props:PRe(),emits:{"update:modelValue":t=>!0},setup(t,e){var P;let{slots:o}=e;const f=ql(t,"modelValue"),{isRtl:E,rtlClasses:d}=n0(),{themeClasses:s}=th(t),{locationStyles:n}=mq(t),{textColorClasses:u,textColorStyles:b}=ny(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=dg(nr(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:m,backgroundColorStyles:a}=dg(t,"color"),{roundedClasses:c}=mg(t),{intersectionRef:h,isIntersecting:p}=V2e(),v=nr(()=>parseFloat(t.max)),_=nr(()=>parseFloat(t.height)),O=nr(()=>ug(parseFloat(t.bufferValue)/v.value*100,0,100)),C=nr(()=>ug(parseFloat(f.value)/v.value*100,0,100)),x=nr(()=>E.value!==t.reverse),R=nr(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=Hu&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function T(A){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-A.clientX+(D-k):A.clientX-L;f.value=Math.round(I/k*v.value)}return Ga(()=>$t(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},c.value,s.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?is(_.value):0,"--v-progress-linear-height":is(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:C.value,onClick:t.clickable&&T},{default:()=>[t.stream&&$t("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...b.value,[x.value?"left":"right"]:is(-_.value),borderTop:`${is(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${is(_.value/4)})`,width:is(100-O.value,"%"),"--v-progress-linear-stream-to":is(_.value*(x.value?1:-1))}},null),$t("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[S.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),$t("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:is(O.value,"%")}]},null),$t(C_,{name:R.value},{default:()=>[t.indeterminate?$t("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(A=>$t("div",{key:A,class:["v-progress-linear__indeterminate",A,M?void 0:m.value],style:a.value},null))]):$t("div",{class:["v-progress-linear__determinate",M?void 0:m.value],style:[a.value,{width:is(C.value,"%")}]},null)]}),o.default&&$t("div",{class:"v-progress-linear__content"},[o.default({value:C.value,buffer:O.value})])]})),{}}}),gq=gi({loading:[Boolean,String]},"loader");function _D(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{loaderClasses:nr(()=>({[`${e}--loading`]:t.loading}))}}function vq(t,e){var f;let{slots:o}=e;return $t("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||$t(U2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const RRe=["static","relative","fixed","absolute","sticky"],yq=gi({position:{type:String,validator:t=>RRe.includes(t)}},"position");function bq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{positionClasses:nr(()=>t.position?`${e}--${t.position}`:void 0)}}function LRe(){const t=Xh("useRoute");return nr(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function j2e(){var t,e;return(e=(t=Xh("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function xq(t,e){var b,i;const o=nM("RouterLink"),f=nr(()=>!!(t.href||t.to)),E=nr(()=>(f==null?void 0:f.value)||oge(e,"click")||oge(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:E,href:ji(t,"href")};const d=nr(()=>({...t,to:ji(()=>t.to||"")})),s=o.useLink(d.value),n=nr(()=>t.to?s:void 0),u=LRe();return{isLink:f,isClickable:E,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:nr(()=>{var S,w,y;return n.value?t.exact?u.value?((y=n.value.isExactActive)==null?void 0:y.value)&&R4(n.value.route.value.query,u.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((S=n.value.isActive)==null?void 0:S.value)??!1:!1}),href:nr(()=>{var S;return t.to?(S=n.value)==null?void 0:S.route.value.href:t.href})}}const _q=gi({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let oae=!1;function IRe(t,e){let o=!1,f,E;Hu&&(Vc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((s,n,u)=>{oae?o?e(u):u():setTimeout(()=>o?e(u):u()),oae=!0}),E=t==null?void 0:t.afterEach(()=>{oae=!1})}),hg(()=>{window.removeEventListener("popstate",d),f==null||f(),E==null||E()}));function d(s){var n;(n=s.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function DRe(t,e){ia(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&Vc(()=>{e(!0)})},{immediate:!0})}const tle=Symbol("rippleStop"),BRe=80;function Lge(t,e){t.style.transform=e,t.style.webkitTransform=e}function nle(t){return t.constructor.name==="TouchEvent"}function Q2e(t){return t.constructor.name==="KeyboardEvent"}const zRe=function(t,e){var S;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,E=0;if(!Q2e(t)){const w=e.getBoundingClientRect(),y=nle(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,E=y.clientY-w.top}let d=0,s=.3;(S=e._ripple)!=null&&S.circle?(s=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(E-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,u=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?u:`${E-d}px`;return{radius:d,scale:s,x:b,y:i,centerX:n,centerY:u}},dZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),E=document.createElement("span");f.appendChild(E),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:s,x:n,y:u,centerX:b,centerY:i}=zRe(t,e,o),S=`${d*2}px`;E.className="v-ripple__animation",E.style.width=S,E.style.height=S,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),E.classList.add("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--visible"),Lge(E,`translate(${n}, ${u}) scale3d(${s},${s},${s})`),E.dataset.activated=String(performance.now()),setTimeout(()=>{E.classList.remove("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--in"),Lge(E,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),E=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},E)}};function H2e(t){return typeof t>"u"||!!t}function ZI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[tle])){if(t[tle]=!0,nle(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||Q2e(t),o._ripple.class&&(e.class=o._ripple.class),nle(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{dZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},BRe)}else dZ.show(t,o,e)}}function Ige(t){t[tle]=!0}function Xv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Xv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),dZ.hide(e)}}function Z2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let qI=!1;function q2e(t){!qI&&(t.keyCode===Kme.enter||t.keyCode===Kme.space)&&(qI=!0,ZI(t))}function W2e(t){qI=!1,Xv(t)}function Y2e(t){qI&&(qI=!1,Xv(t))}function X2e(t,e,o){const{value:f,modifiers:E}=e,d=H2e(f);if(d||dZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=E.center,t._ripple.circle=E.circle,Wse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(E.stop){t.addEventListener("touchstart",Ige,{passive:!0}),t.addEventListener("mousedown",Ige);return}t.addEventListener("touchstart",ZI,{passive:!0}),t.addEventListener("touchend",Xv,{passive:!0}),t.addEventListener("touchmove",Z2e,{passive:!0}),t.addEventListener("touchcancel",Xv),t.addEventListener("mousedown",ZI),t.addEventListener("mouseup",Xv),t.addEventListener("mouseleave",Xv),t.addEventListener("keydown",q2e),t.addEventListener("keyup",W2e),t.addEventListener("blur",Y2e),t.addEventListener("dragstart",Xv,{passive:!0})}else!d&&o&&G2e(t)}function G2e(t){t.removeEventListener("mousedown",ZI),t.removeEventListener("touchstart",ZI),t.removeEventListener("touchend",Xv),t.removeEventListener("touchmove",Z2e),t.removeEventListener("touchcancel",Xv),t.removeEventListener("mouseup",Xv),t.removeEventListener("mouseleave",Xv),t.removeEventListener("keydown",q2e),t.removeEventListener("keyup",W2e),t.removeEventListener("dragstart",Xv),t.removeEventListener("blur",Y2e)}function NRe(t,e){X2e(t,e,!1)}function FRe(t){delete t._ripple,G2e(t)}function $Re(t,e){if(e.value===e.oldValue)return;const o=H2e(e.oldValue);X2e(t,e,o)}const lC={mounted:NRe,unmounted:FRe,updated:$Re},VRe=gi({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:D2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Hl,appendIcon:Hl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...B_(),...Js(),...Q1(),...I_(),...iy(),...xue(),...gq(),...xD(),...yq(),...Pm(),..._q(),...aC(),...tf({tag:"button"}),...gd(),...Lx({variant:"elevated"})},"VBtn"),es=Oa()({name:"VBtn",props:VRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{densityClasses:s}=Rx(t),{dimensionStyles:n}=D_(t),{elevationClasses:u}=cb(t),{loaderClasses:b}=_D(t),{locationStyles:i}=mq(t),{positionClasses:S}=bq(t),{roundedClasses:w}=mg(t),{sizeClasses:y,sizeStyles:m}=bD(t),a=_ue(t,t.symbol,!1),c=xq(t,o),h=nr(()=>{var T;return t.active!==void 0?t.active:c.isLink.value?(T=c.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),p=nr(()=>{var P,A;return{color:(a==null?void 0:a.isSelected.value)&&(!c.isLink.value||((P=c.isActive)==null?void 0:P.value))||!a||((A=c.isActive)==null?void 0:A.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:O}=iC(p),C=nr(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=nr(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=nr(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var P;C.value||c.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((P=c.navigate)==null||P.call(c,T),a==null||a.toggle())}return DRe(c,a==null?void 0:a.select),Ga(()=>{const T=c.isLink.value?"a":t.tag,P=!!(t.prependIcon||f.prepend),A=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Kp($t(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":C.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},E.value,d.value,v.value,s.value,u.value,b.value,S.value,w.value,y.value,O.value,t.class],style:[_.value,n.value,i.value,m.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:C.value||void 0,href:c.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[oC(!0,"v-btn"),!t.icon&&P&&$t("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):$t(jl,{key:"prepend-icon",icon:t.prependIcon},null)]),$t("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?$t(jl,{key:"content-icon",icon:t.icon},null):$t(ef,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&A&&$t("span",{key:"append",class:"v-btn__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):$t(jl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&$t("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??$t(sC,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[lC,!C.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const URe=uq("v-alert-title"),jRe=["success","info","warning","error"],QRe=gi({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Hl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>jRe.includes(t)},...Js(),...Q1(),...I_(),...iy(),...xD(),...yq(),...Pm(),...tf(),...gd(),...Lx({variant:"flat"})},"VAlert"),eM=Oa()({name:"VAlert",props:QRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),d=nr(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),s=nr(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=th(t),{colorClasses:u,colorStyles:b,variantClasses:i}=iC(s),{densityClasses:S}=Rx(t),{dimensionStyles:w}=D_(t),{elevationClasses:y}=cb(t),{locationStyles:m}=mq(t),{positionClasses:a}=bq(t),{roundedClasses:c}=mg(t),{textColorClasses:h,textColorStyles:p}=ny(ji(t,"borderColor")),{t:v}=ry(),_=nr(()=>({"aria-label":v(t.closeLabel),onClick(O){E.value=!1,o("click:close",O)}}));return()=>{const O=!!(f.prepend||d.value),C=!!(f.title||t.title),x=!!(f.close||t.closable);return E.value&&$t(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,u.value,S.value,y.value,a.value,c.value,i.value,t.class],style:[b.value,w.value,m.value,t.style],role:"alert"},{default:()=>{var R,M;return[oC(!1,"v-alert"),t.border&&$t("div",{key:"border",class:["v-alert__border",h.value],style:p.value},null),O&&$t("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):$t(jl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),$t("div",{class:"v-alert__content"},[C&&$t(URe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&$t("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&$t("div",{key:"close",class:"v-alert__close"},[f.close?$t(ef,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):$t(es,qi({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const HRe=gi({start:Boolean,end:Boolean,icon:Hl,image:String,text:String,...Js(),...Q1(),...Pm(),...aC(),...tf(),...gd(),...Lx({variant:"flat"})},"VAvatar"),DO=Oa()({name:"VAvatar",props:HRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{colorClasses:E,colorStyles:d,variantClasses:s}=iC(t),{densityClasses:n}=Rx(t),{roundedClasses:u}=mg(t),{sizeClasses:b,sizeStyles:i}=bD(t);return Ga(()=>$t(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,E.value,n.value,u.value,b.value,s.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?$t(ef,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?$t(rC,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?$t(jl,{key:"icon",icon:t.icon},null):t.text,oC(!1,"v-avatar")]})),{}}});const ZRe=gi({text:String,onClick:fg(),...Js(),...gd()},"VLabel"),wq=Oa()({name:"VLabel",props:ZRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var f;return $t("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const K2e=Symbol.for("vuetify:selection-control-group"),J2e=gi({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Hl,trueIcon:Hl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:R4},...Js(),...Q1(),...gd()},"SelectionControlGroup"),qRe=gi({...J2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Oa()({name:"VSelectionControlGroup",props:qRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),E=j1(),d=nr(()=>t.id||`v-selection-control-group-${E}`),s=nr(()=>t.name||d.value),n=new Set;return md(K2e,{modelValue:f,forceUpdate:()=>{n.forEach(u=>u())},onForceUpdate:u=>{n.add(u),hg(()=>{n.delete(u)})}}),ab({[t.defaultsTarget]:{color:ji(t,"color"),disabled:ji(t,"disabled"),density:ji(t,"density"),error:ji(t,"error"),inline:ji(t,"inline"),modelValue:f,multiple:nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:s,falseIcon:ji(t,"falseIcon"),trueIcon:ji(t,"trueIcon"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),type:ji(t,"type"),valueComparator:ji(t,"valueComparator")}}),Ga(()=>{var u;return $t("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(u=o.default)==null?void 0:u.call(o)])}),{}}});const wue=gi({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Js(),...J2e()},"VSelectionControl");function WRe(t){const e=Kl(K2e,void 0),{densityClasses:o}=Rx(t),f=ql(t,"modelValue"),E=nr(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=nr(()=>t.falseValue!==void 0?t.falseValue:!1),s=nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=nr({get(){const y=e?e.modelValue.value:f.value;return s.value?Pp(y).some(m=>t.valueComparator(m,E.value)):t.valueComparator(y,E.value)},set(y){if(t.readonly)return;const m=y?E.value:d.value;let a=m;s.value&&(a=y?[...Pp(f.value),m]:Pp(f.value).filter(c=>!t.valueComparator(c,E.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:u,textColorStyles:b}=ny(nr(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=nr(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:E,falseValue:d,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,icon:w}}const hZ=Oa()({name:"VSelectionControl",directives:{Ripple:lC},inheritAttrs:!1,props:wue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:E,densityClasses:d,icon:s,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,trueValue:w}=WRe(t),y=j1(),m=Gi(!1),a=Gi(!1),c=qo(),h=nr(()=>t.id||`input-${y}`),p=nr(()=>!t.disabled&&!t.readonly);E==null||E.onForceUpdate(()=>{c.value&&(c.value.checked=n.value)});function v(x){p.value&&(m.value=!0,mM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){m.value=!1,a.value=!1}function O(x){x.stopPropagation()}function C(x){if(!p.value){c.value&&(c.value.checked=n.value);return}t.readonly&&E&&Vc(()=>E.forceUpdate()),n.value=x.target.checked}return Ga(()=>{var P,A;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=yD(o),T=$t("input",qi({ref:c,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:C,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return $t("div",qi({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[$t("div",{class:["v-selection-control__wrapper",u.value],style:b.value},[(P=f.default)==null?void 0:P.call(f,{backgroundColorClasses:i,backgroundColorStyles:S}),Kp($t("div",{class:["v-selection-control__input"]},[((A=f.input)==null?void 0:A.call(f,{model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,inputNode:T,icon:s.value,props:{onFocus:v,onBlur:_,id:h.value}}))??$t(Ea,null,[s.value&&$t(jl,{key:"icon",icon:s.value},null),T])]),[[M_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&$t(wq,{for:h.value,onClick:O},{default:()=>[x]})])}),{isFocused:m,input:c}}}),YRe=gi({indeterminate:Boolean,indeterminateIcon:{type:Hl,default:"$checkboxIndeterminate"},...wue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),RM=Oa()({name:"VCheckboxBtn",props:YRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"indeterminate"),E=ql(t,"modelValue");function d(u){f.value&&(f.value=!1)}const s=nr(()=>f.value?t.indeterminateIcon:t.falseIcon),n=nr(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ga(()=>{const u=R_(hZ.filterProps(t),["modelValue"]);return $t(hZ,qi(u,{modelValue:E.value,"onUpdate:modelValue":[b=>E.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:s.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function e_e(t){const{t:e}=ry();function o(f){let{name:E}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[E],s=t[`onClick:${E}`],n=s&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return $t(jl,{icon:t[`${E}Icon`],"aria-label":n,onClick:s},null)}return{InputIcon:o}}const XRe=gi({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Js(),...nC({transition:{component:A2e,leaveAbsolute:!0,group:!0}})},"VMessages"),GRe=Oa()({name:"VMessages",props:XRe(),setup(t,e){let{slots:o}=e;const f=nr(()=>Pp(t.messages)),{textColorClasses:E,textColorStyles:d}=ny(nr(()=>t.color));return Ga(()=>$t(f4,{transition:t.transition,tag:"div",class:["v-messages",E.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((s,n)=>$t("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:s}):s]))]})),{}}}),Oq=gi({focused:Boolean,"onUpdate:focused":fg()},"focus");function cC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=ql(t,"focused"),f=nr(()=>({[`${e}--focused`]:o.value}));function E(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:E,blur:d}}const t_e=Symbol.for("vuetify:form"),KRe=gi({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function JRe(t){const e=ql(t,"modelValue"),o=nr(()=>t.disabled),f=nr(()=>t.readonly),E=Gi(!1),d=qo([]),s=qo([]);async function n(){const i=[];let S=!0;s.value=[],E.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(S=!1,i.push({id:w.id,errorMessages:y})),!S&&t.fastFail)break}return s.value=i,E.value=!1,{valid:S,errors:s.value}}function u(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return ia(d,()=>{let i=0,S=0;const w=[];for(const y of d.value)y.isValid===!1?(S++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;s.value=w,e.value=S>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),md(t_e,{register:i=>{let{id:S,vm:w,validate:y,reset:m,resetValidation:a}=i;d.value.some(c=>c.id===S),d.value.push({id:S,validate:y,reset:m,resetValidation:a,vm:iD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(S=>S.id!==i)},update:(i,S,w)=>{const y=d.value.find(m=>m.id===i);y&&(y.isValid=S,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validateOn:ji(t,"validateOn")}),{errors:s,isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validate:n,reset:u,resetValidation:b}}function Sq(){return Kl(t_e,null)}const eLe=gi({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Oq()},"validation");function tLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j1();const f=ql(t,"modelValue"),E=nr(()=>t.validationValue===void 0?f.value:t.validationValue),d=Sq(),s=qo([]),n=Gi(!0),u=nr(()=>!!(Pp(f.value===""?null:f.value).length||Pp(E.value===""?null:E.value).length)),b=nr(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=nr(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),S=nr(()=>{var O;return(O=t.errorMessages)!=null&&O.length?Pp(t.errorMessages).concat(s.value).slice(0,Math.max(0,+t.maxErrors)):s.value}),w=nr(()=>{let O=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";O==="lazy"&&(O="input lazy");const C=new Set((O==null?void 0:O.split(" "))??[]);return{blur:C.has("blur")||C.has("input"),input:C.has("input"),submit:C.has("submit"),lazy:C.has("lazy")}}),y=nr(()=>{var O;return t.error||(O=t.errorMessages)!=null&&O.length?!1:t.rules.length?n.value?s.value.length||w.value.lazy?null:!0:!s.value.length:!0}),m=Gi(!1),a=nr(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:u.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),c=Xh("validation"),h=nr(()=>t.name??Va(o));nce(()=>{d==null||d.register({id:h.value,vm:c,validate:_,reset:p,resetValidation:v})}),Em(()=>{d==null||d.unregister(h.value)}),pg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,S.value)}),$1(()=>w.value.input,()=>{ia(E,()=>{if(E.value!=null)_();else if(t.focused){const O=ia(()=>t.focused,C=>{C||_(),O()})}})}),$1(()=>w.value.blur,()=>{ia(()=>t.focused,O=>{O||_()})}),ia([y,S],()=>{d==null||d.update(h.value,y.value,S.value)});async function p(){f.value=null,await Vc(),await v()}async function v(){n.value=!0,w.value.lazy?s.value=[]:await _(!0)}async function _(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=[];m.value=!0;for(const x of t.rules){if(C.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(E.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}C.push(M||"")}}return s.value=C,m.value=!1,n.value=O,s.value}return{errorMessages:S,isDirty:u,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:m,reset:p,resetValidation:v,validate:_,validationClasses:a}}const uC=gi({id:String,appendIcon:Hl,centerAffix:{type:Boolean,default:!0},prependIcon:Hl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":fg(),"onClick:append":fg(),...Js(),...Q1(),...o9e(I_(),["maxWidth","minWidth","width"]),...gd(),...eLe()},"VInput"),sb=Oa()({name:"VInput",props:{...uC()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const{densityClasses:d}=Rx(t),{dimensionStyles:s}=D_(t),{themeClasses:n}=th(t),{rtlClasses:u}=n0(),{InputIcon:b}=e_e(t),i=j1(),S=nr(()=>t.id||`input-${i}`),w=nr(()=>`${S.value}-messages`),{errorMessages:y,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C,validationClasses:x}=tLe(t,"v-input",S),R=nr(()=>({id:S,messagesId:w,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C})),M=nr(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ga(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),P=!!(f.append||t.appendIcon),A=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(A||!!f.details);return $t("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,u.value,x.value,t.class],style:[s.value,t.style]},[T&&$t("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&$t(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&$t("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),P&&$t("div",{key:"append",class:"v-input__append"},[t.appendIcon&&$t(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&$t("div",{class:"v-input__details"},[$t(GRe,{id:w.value,active:A,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:O,validate:C,isValid:p,errorMessages:y}}});const kq=["sm","md","lg","xl","xxl"],rle=Symbol.for("vuetify:display"),Dge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},nLe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dge;return Jg(Dge,t)};function Bge(t){return Hu&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function zge(t){return Hu&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function Nge(t){const e=Hu&&!t?window.navigator.userAgent:"ssr";function o(m){return!!e.match(m)}const f=o(/android/i),E=o(/iphone|ipad|ipod/i),d=o(/cordova/i),s=o(/electron/i),n=o(/chrome/i),u=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),S=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:E,cordova:d,electron:s,chrome:n,edge:u,firefox:b,opera:i,win:S,mac:w,linux:y,touch:t9e,ssr:e==="ssr"}}function rLe(t,e){const{thresholds:o,mobileBreakpoint:f}=nLe(t),E=Gi(zge(e)),d=Gi(Nge(e)),s=Am({}),n=Gi(Bge(e));function u(){E.value=zge(),n.value=Bge()}function b(){u(),d.value=Nge()}return Gp(()=>{const i=n.value=o.xxl,c=i?"xs":S?"sm":w?"md":y?"lg":m?"xl":"xxl",h=typeof f=="number"?f:o[f],p=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=Kl(rle);if(!o)throw new Error("Could not find Vuetify display injection");const f=nr(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:E,mobile:f}}const n_e=Symbol.for("vuetify:goto");function r_e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function oLe(t){return Oue(t)??(document.scrollingElement||document.body)}function Oue(t){return typeof t=="string"?document.querySelector(t):aue(t)}function iae(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=Oue(t),E=0;for(;f;)E+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return E}function iLe(t,e){return{rtl:e.isRtl,options:Jg(r_e(),t)}}async function Fge(t,e,o,f){const E=o?"scrollLeft":"scrollTop",d=Jg((f==null?void 0:f.options)??r_e(),e),s=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:Oue(t))??0,u=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:oLe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=iae(n,o,s);else if(i=iae(n,o,s)-iae(u,o,s),d.layout){const m=window.getComputedStyle(n).getPropertyValue("--v-layout-top");m&&(i-=parseInt(m,10))}i+=d.offset,i=sLe(u,i,!!s,!!o);const S=u[E]??0;if(i===S)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function m(a){const h=(a-w)/d.duration,p=Math.floor(S+(i-S)*b(ug(h,0,1)));if(u[E]=p,h>=1&&Math.abs(p-u[E])<10)return y(i);if(h>2)return y(u[E]);requestAnimationFrame(m)}))}function aLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=Kl(n_e),{isRtl:o}=n0();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:nr(()=>e.rtl.value||o.value)};async function E(d,s){return Fge(d,Jg(t,s),!1,f)}return E.horizontal=async(d,s)=>Fge(d,Jg(t,s),!0,f),E}function sLe(t,e,o,f){const{scrollWidth:E,scrollHeight:d}=t,[s,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let u,b;return f?o?(u=-(E-s),b=0):(u=0,b=E-s):(u=0,b=d+-n),Math.max(Math.min(e,b),u)}function lLe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:E}=t;const d=WI(E,o),s=o_e(E,f,o),n=WI(E,e),u=i_e(E,e),b=n*.4;return s>u?u-b:s+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Js(),...wD({mobile:null}),...tf(),...dq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Vge=Oa()({name:"VSlideGroup",props:a_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=n0(),{displayClasses:E,mobile:d}=L4(t),s=hq(t,t.symbol),n=Gi(!1),u=Gi(0),b=Gi(0),i=Gi(0),S=nr(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=T4(),{resizeRef:m,contentRect:a}=T4(),c=aLe(),h=nr(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),p=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[0]):-1),v=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[s.selected.value.length-1]):-1);if(Hu){let j=-1;ia(()=>[s.selected.value,y.value,a.value,S.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=S.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&m.el){const U=m.el.children[v.value];O(U,t.centerActive)}})})}const _=Gi(!1);function O(j,U){let X=0;U?X=cLe({containerElement:w.el,isHorizontal:S.value,selectedElement:j}):X=lLe({containerElement:w.el,isHorizontal:S.value,isRtl:f.value,selectedElement:j}),C(X)}function C(j){if(!Hu||!w.el)return;const U=WI(S.value,w.el),X=o_e(S.value,f.value,w.el);if(!($ge(S.value,w.el)<=U||Math.abs(j-X)<16)){if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;j=Z-K-j}S.value?c.horizontal(j,h.value):c(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;u.value=S.value?X:U}function R(j){if(_.value=!0,!(!n.value||!m.el)){for(const U of j.composedPath())for(const X of m.el.children)if(X===U){O(X);return}}}function M(j){_.value=!1}let T=!1;function P(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=m.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function A(){T=!0}function L(j){if(!m.el)return;function U(X){j.preventDefault(),D(X)}S.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!m.el)return;let U;if(!j)U=jI(m.el)[0];else if(j==="next"){if(U=(X=m.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=m.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=m.el.firstElementChild:j==="last"&&(U=m.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=S.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=u.value+X;if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;te+=Z-K}C(te)}const I=nr(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),z=nr(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(u.value)>0;case"mobile":return d.value||n.value||Math.abs(u.value)>0;default:return!d.value&&(n.value||Math.abs(u.value)>0)}}),$=nr(()=>Math.abs(u.value)>1),Q=nr(()=>{if(!w.value)return!1;const j=$ge(S.value,w.el),U=uLe(S.value,w.el);return j-U-Math.abs(u.value)>1});return Ga(()=>$t(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!S.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},E.value,t.class],style:t.style,tabindex:_.value||s.selected.value.length?-1:0,onFocus:P},{default:()=>{var j,U,X;return[z.value&&$t("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:A,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??$t(Cge,null,{default:()=>[$t(jl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),$t("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[$t("div",{ref:m,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&$t("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:A,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??$t(Cge,null,{default:()=>[$t(jl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:k,scrollOffset:u,focus:D}}}),s_e=Symbol.for("vuetify:v-chip-group"),dLe=gi({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:R4},...a_e(),...Js(),...dq({selectedClass:"v-chip--selected"}),...tf(),...gd(),...Lx({variant:"tonal"})},"VChipGroup");Oa()({name:"VChipGroup",props:dLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{isSelected:E,select:d,next:s,prev:n,selected:u}=hq(t,s_e);return ab({VChip:{color:ji(t,"color"),disabled:ji(t,"disabled"),filter:ji(t,"filter"),variant:ji(t,"variant")}}),Ga(()=>{const b=Vge.filterProps(t);return $t(Vge,qi(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:E,select:d,next:s,prev:n,selected:u.value})]}})}),{}}});const hLe=gi({activeClass:String,appendAvatar:String,appendIcon:Hl,closable:Boolean,closeIcon:{type:Hl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...iy(),...xue(),...Pm(),..._q(),...aC(),...tf({tag:"span"}),...gd(),...Lx({variant:"tonal"})},"VChip"),LM=Oa()({name:"VChip",directives:{Ripple:lC},props:hLe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=ry(),{borderClasses:s}=$O(t),{colorClasses:n,colorStyles:u,variantClasses:b}=iC(t),{densityClasses:i}=Rx(t),{elevationClasses:S}=cb(t),{roundedClasses:w}=mg(t),{sizeClasses:y}=bD(t),{themeClasses:m}=th(t),a=ql(t,"modelValue"),c=_ue(t,s_e,!1),h=xq(t,o),p=nr(()=>t.link!==!1&&h.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(!!c||t.link||h.isClickable.value)),_=nr(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function O(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),c==null||c.toggle())}function C(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),O(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||E.append),T=!!(E.close||t.closable),P=!!(E.filter||t.filter)&&c,A=!!(t.prependIcon||t.prependAvatar),L=!!(A||E.prepend),D=!c||c.isSelected.value;return a.value&&Kp($t(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":P,"v-chip--pill":t.pill},m.value,s.value,D?n.value:void 0,i.value,S.value,w.value,y.value,b.value,c==null?void 0:c.selectedClass.value,t.class],style:[D?u.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:O,onKeydown:v.value&&!p.value&&C},{default:()=>{var k;return[oC(v.value,"v-chip"),P&&$t(M2e,{key:"filter"},{default:()=>[Kp($t("div",{class:"v-chip__filter"},[E.filter?$t(ef,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},E.filter):$t(jl,{key:"filter-icon",icon:t.filterIcon},null)]),[[A4,c.isSelected.value]])]}),L&&$t("div",{key:"prepend",class:"v-chip__prepend"},[E.prepend?$t(ef,{key:"prepend-defaults",disabled:!A,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},E.prepend):$t(Ea,null,[t.prependIcon&&$t(jl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&$t(DO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),$t("div",{class:"v-chip__content","data-no-activator":""},[((k=E.default)==null?void 0:k.call(E,{isSelected:c==null?void 0:c.isSelected.value,selectedClass:c==null?void 0:c.selectedClass.value,select:c==null?void 0:c.select,toggle:c==null?void 0:c.toggle,value:c==null?void 0:c.value.value,disabled:t.disabled}))??t.text]),M&&$t("div",{key:"append",class:"v-chip__append"},[E.append?$t(ef,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},E.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&$t("button",qi({key:"close",class:"v-chip__close",type:"button"},_.value),[E.close?$t(ef,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},E.close):$t(jl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[M_("ripple"),v.value&&t.ripple,null]])}}});const ole=Symbol.for("vuetify:list");function l_e(){const t=Kl(ole,{hasPrepend:Gi(!1),updateHasPrepend:()=>null}),e={hasPrepend:Gi(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return md(ole,e),t}function c_e(){return Kl(ole,null)}const Sue=t=>{const e={activate:o=>{let{id:f,value:E,activated:d}=o;return f=sl(f),t&&!E&&d.size===1&&d.has(f)||(E?d.add(f):d.delete(f)),d},in:(o,f,E)=>{let d=new Set;if(o!=null)for(const s of Pp(o))d=e.activate({id:s,value:!0,activated:new Set(d),children:f,parents:E});return d},out:o=>Array.from(o)};return e},u_e=t=>{const e=Sue(t);return{activate:f=>{let{activated:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Set([d]):new Set;return e.activate({...s,id:d,activated:n})},in:(f,E,d)=>{let s=new Set;if(f!=null){const n=Pp(f);n.length&&(s=e.in(n.slice(0,1),E,d))}return s},out:(f,E,d)=>e.out(f,E,d)}},pLe=t=>{const e=Sue(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},mLe=t=>{const e=u_e(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},gLe={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){const d=new Set;d.add(e);let s=E.get(e);for(;s!=null;)d.add(s),s=E.get(s);return d}else return f.delete(e),f},select:()=>null},f_e={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){let d=E.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=E.get(d);return f}else f.delete(e);return f},select:()=>null},vLe={open:f_e.open,select:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(!o)return f;const d=[];let s=E.get(e);for(;s!=null;)d.push(s),s=E.get(s);return new Set(d)}},kue=t=>{const e={select:o=>{let{id:f,value:E,selected:d}=o;if(f=sl(f),t&&!E){const s=Array.from(d.entries()).reduce((n,u)=>{let[b,i]=u;return i==="on"&&n.push(b),n},[]);if(s.length===1&&s[0]===f)return d}return d.set(f,E?"on":"off"),d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:o=>{const f=[];for(const[E,d]of o.entries())d==="on"&&f.push(E);return f}};return e},d_e=t=>{const e=kue(t);return{select:f=>{let{selected:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Map([[d,E.get(d)]]):new Map;return e.select({...s,id:d,selected:n})},in:(f,E,d)=>{let s=new Map;return f!=null&&f.length&&(s=e.in(f.slice(0,1),E,d)),s},out:(f,E,d)=>e.out(f,E,d)}},yLe=t=>{const e=kue(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},bLe=t=>{const e=d_e(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},xLe=t=>{const e={select:o=>{let{id:f,value:E,selected:d,children:s,parents:n}=o;f=sl(f);const u=new Map(d),b=[f];for(;b.length;){const S=b.shift();d.set(S,E?"on":"off"),s.has(S)&&b.push(...s.get(S))}let i=n.get(f);for(;i;){const S=s.get(i),w=S.every(m=>d.get(m)==="on"),y=S.every(m=>!d.has(m)||d.get(m)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!E&&Array.from(d.entries()).reduce((w,y)=>{let[m,a]=y;return a==="on"&&w.push(m),w},[]).length===0?u:d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:(o,f)=>{const E=[];for(const[d,s]of o.entries())s==="on"&&!f.has(d)&&E.push(d);return E}};return e},YI=Symbol.for("vuetify:nested"),h_e={id:Gi(),root:{register:()=>null,unregister:()=>null,parents:qo(new Map),children:qo(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:qo(!1),selectable:qo(!1),opened:qo(new Set),activated:qo(new Set),selected:qo(new Map),selectedValues:qo([])}},_Le=gi({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),wLe=t=>{let e=!1;const o=qo(new Map),f=qo(new Map),E=ql(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=nr(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return pLe(t.mandatory);case"single-leaf":return mLe(t.mandatory);case"independent":return Sue(t.mandatory);case"single-independent":default:return u_e(t.mandatory)}}),s=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return bLe(t.mandatory);case"leaf":return yLe(t.mandatory);case"independent":return kue(t.mandatory);case"single-independent":return d_e(t.mandatory);case"classic":default:return xLe(t.mandatory)}}),n=nr(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return vLe;case"single":return gLe;case"multiple":default:return f_e}}),u=ql(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=ql(t,"selected",t.selected,y=>s.value.in(y,o.value,f.value),y=>s.value.out(y,o.value,f.value));Em(()=>{e=!0});function i(y){const m=[];let a=y;for(;a!=null;)m.unshift(a),a=f.value.get(a);return m}const S=Xh("nested"),w={id:Gi(),root:{opened:E,activatable:ji(t,"activatable"),selectable:ji(t,"selectable"),activated:u,selected:b,selectedValues:nr(()=>{const y=[];for(const[m,a]of b.value.entries())a==="on"&&y.push(m);return y}),register:(y,m,a)=>{m&&y!==m&&f.value.set(y,m),a&&o.value.set(y,[]),m!=null&&o.value.set(m,[...o.value.get(m)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const m=f.value.get(y);if(m){const a=o.value.get(m)??[];o.value.set(m,a.filter(c=>c!==y))}f.value.delete(y)},open:(y,m,a)=>{S.emit("click:open",{id:y,value:m,path:i(y),event:a});const c=n.value.open({id:y,value:m,opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},openOnSelect:(y,m,a)=>{const c=n.value.select({id:y,value:m,selected:new Map(b.value),opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},select:(y,m,a)=>{S.emit("click:select",{id:y,value:m,path:i(y),event:a});const c=s.value.select({id:y,value:m,selected:new Map(b.value),children:o.value,parents:f.value,event:a});c&&(b.value=c),w.root.openOnSelect(y,m,a)},activate:(y,m,a)=>{if(!t.activatable)return w.root.select(y,!0,a);S.emit("click:activate",{id:y,value:m,path:i(y),event:a});const c=d.value.activate({id:y,value:m,activated:new Set(u.value),children:o.value,parents:f.value,event:a});c&&(u.value=c)},children:o,parents:f}};return md(YI,w),w.root},p_e=(t,e)=>{const o=Kl(YI,h_e),f=Symbol(j1()),E=nr(()=>t.value!==void 0?t.value:f),d={...o,id:E,open:(s,n)=>o.root.open(E.value,s,n),openOnSelect:(s,n)=>o.root.openOnSelect(E.value,s,n),isOpen:nr(()=>o.root.opened.value.has(E.value)),parent:nr(()=>o.root.parents.value.get(E.value)),activate:(s,n)=>o.root.activate(E.value,s,n),isActivated:nr(()=>o.root.activated.value.has(sl(E.value))),select:(s,n)=>o.root.select(E.value,s,n),isSelected:nr(()=>o.root.selected.value.get(sl(E.value))==="on"),isIndeterminate:nr(()=>o.root.selected.value.get(E.value)==="indeterminate"),isLeaf:nr(()=>!o.root.children.value.get(E.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(E.value,o.id.value,e),Em(()=>{!o.isGroupActivator&&o.root.unregister(E.value)}),e&&md(YI,d),d},OLe=()=>{const t=Kl(YI,h_e);md(YI,{...t,isGroupActivator:!0})},SLe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return OLe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),kLe=gi({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Hl,default:"$collapse"},expandIcon:{type:Hl,default:"$expand"},prependIcon:Hl,appendIcon:Hl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Js(),...tf()},"VListGroup"),Uge=Oa()({name:"VListGroup",props:kLe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:E,id:d}=p_e(ji(t,"value"),!0),s=nr(()=>`v-list-group--id-${String(d.value)}`),n=c_e(),{isBooted:u}=fq();function b(y){y.stopPropagation(),E(!f.value,y)}const i=nr(()=>({onClick:b,class:"v-list-group__header",id:s.value})),S=nr(()=>f.value?t.collapseIcon:t.expandIcon),w=nr(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&S.value,appendIcon:t.appendIcon||!t.subgroup&&S.value,title:t.title,value:t.value}}));return Ga(()=>$t(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&$t(ef,{defaults:w.value},{default:()=>[$t(SLe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),$t(f4,{transition:{component:vue},disabled:!u.value},{default:()=>{var y;return[Kp($t("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(y=o.default)==null?void 0:y.call(o)]),[[A4,f.value]])]}})]})),{isOpen:f}}});const TLe=gi({opacity:[Number,String],...Js(),...tf()},"VListItemSubtitle"),CLe=Oa()({name:"VListItemSubtitle",props:TLe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),z1=uq("v-list-item-title"),ALe=gi({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Hl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...I_(),...iy(),...Pm(),..._q(),...tf(),...gd(),...Lx({variant:"text"})},"VListItem"),Xf=Oa()({name:"VListItem",directives:{Ripple:lC},props:ALe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const d=xq(t,o),s=nr(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:u,select:b,isSelected:i,isIndeterminate:S,isGroupActivator:w,root:y,parent:m,openOnSelect:a}=p_e(s,!1),c=c_e(),h=nr(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?u.value:i.value))}),p=nr(()=>t.link!==!1&&d.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!c&&(y.selectable.value||y.activatable.value||t.value!=null))),_=nr(()=>t.rounded||t.nav),O=nr(()=>t.color??t.activeColor),C=nr(()=>({color:h.value?O.value??t.baseColor:t.baseColor,variant:t.variant}));ia(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&m.value!=null&&y.open(m.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=th(t),{borderClasses:R}=$O(t),{colorClasses:M,colorStyles:T,variantClasses:P}=iC(C),{densityClasses:A}=Rx(t),{dimensionStyles:L}=D_(t),{elevationClasses:D}=cb(t),{roundedClasses:k}=mg(_),I=nr(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=nr(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:S.value}));function $(j){var U;E("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!u.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ga(()=>{const j=p.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),Z=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),re=!!(K||f.prepend);return c==null||c.updateHasPrepend(re),t.activeColor&&O9e("active-color",["color","base-color"]),Kp($t(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!re&&(c==null?void 0:c.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,A.value,D.value,I.value,k.value,P.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?c?-2:0:void 0,onClick:$,onKeydown:v.value&&!p.value&&Q},{default:()=>{var q;return[oC(v.value||h.value,"v-list-item"),re&&$t("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),$t("div",{class:"v-list-item__spacer"},null)]),$t("div",{class:"v-list-item__content","data-no-activator":""},[U&&$t(z1,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&$t(CLe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),Z&&$t("div",{key:"append",class:"v-list-item__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),$t("div",{class:"v-list-item__spacer"},null)])]}}),[[M_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:u,isGroupActivator:w,isSelected:i,list:c,select:b}}}),MLe=gi({color:String,inset:Boolean,sticky:Boolean,title:String,...Js(),...tf()},"VListSubheader"),ELe=Oa()({name:"VListSubheader",props:MLe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:E}=ny(ji(t,"color"));return Ga(()=>{const d=!!(o.default||t.title);return $t(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:E},t.style]},{default:()=>{var s;return[d&&$t("div",{class:"v-list-subheader__text"},[((s=o.default)==null?void 0:s.call(o))??t.title])]}})}),{}}});const PLe=gi({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Js(),...gd()},"VDivider"),vM=Oa()({name:"VDivider",props:PLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{textColorClasses:d,textColorStyles:s}=ny(ji(t,"color")),n=nr(()=>{const u={};return t.length&&(u[t.vertical?"height":"width"]=is(t.length)),t.thickness&&(u[t.vertical?"borderRightWidth":"borderTopWidth"]=is(t.thickness)),u});return Ga(()=>{const u=$t("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},E.value,d.value,t.class],style:[n.value,s.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?$t("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[u,$t("div",{class:"v-divider__content"},[f.default()]),u]):u}),{}}}),RLe=gi({items:Array,returnObject:Boolean},"VListChildren"),m_e=Oa()({name:"VListChildren",props:RLe(),setup(t,e){let{slots:o}=e;return l_e(),()=>{var f,E;return((f=o.default)==null?void 0:f.call(o))??((E=t.items)==null?void 0:E.map(d=>{var w,y;let{children:s,props:n,type:u,raw:b}=d;if(u==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??$t(vM,n,null);if(u==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??$t(ELe,n,null);const i={subtitle:o.subtitle?m=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...m,item:b})}:void 0,prepend:o.prepend?m=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...m,item:b})}:void 0,append:o.append?m=>{var a;return(a=o.append)==null?void 0:a.call(o,{...m,item:b})}:void 0,title:o.title?m=>{var a;return(a=o.title)==null?void 0:a.call(o,{...m,item:b})}:void 0},S=Uge.filterProps(n);return s?$t(Uge,qi({value:n==null?void 0:n.value},S),{activator:m=>{let{props:a}=m;const c={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:c}):$t(Xf,c,i)},default:()=>$t(m_e,{items:s,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):$t(Xf,qi(n,{value:t.returnObject?b:n.value}),i)}))}}}),g_e=gi({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:R4}},"list-items");function a4(t,e){const o=N1(e,t.itemTitle,e),f=N1(e,t.itemValue,o),E=N1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?R_(e,["children"]):e:void 0:N1(e,t.itemProps),s={title:o,value:f,...d};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(E)?v_e(t,E):void 0,raw:e}}function v_e(t,e){const o=[];for(const f of e)o.push(a4(t,f));return o}function Tue(t){const e=nr(()=>v_e(t,t.items)),o=nr(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(s=>s!==null)),d.map(s=>t.returnObject&&typeof s=="string"?a4(t,s):e.value.find(n=>t.valueComparator(s,n.value))||a4(t,s))}function E(d){return t.returnObject?d.map(s=>{let{raw:n}=s;return n}):d.map(s=>{let{value:n}=s;return n})}return{items:e,transformIn:f,transformOut:E}}function LLe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function ILe(t,e){const o=N1(e,t.itemType,"item"),f=LLe(e)?e:N1(e,t.itemTitle),E=N1(e,t.itemValue,void 0),d=N1(e,t.itemChildren),s=t.itemProps===!0?R_(e,["children"]):N1(e,t.itemProps),n={title:f,value:E,...s};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?y_e(t,d):void 0,raw:e}}function y_e(t,e){const o=[];for(const f of e)o.push(ILe(t,f));return o}function DLe(t){return{items:nr(()=>y_e(t,t.items))}}const BLe=gi({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":fg(),"onClick:select":fg(),"onUpdate:opened":fg(),..._Le({selectStrategy:"single-leaf",openStrategy:"list"}),...B_(),...Js(),...Q1(),...I_(),...iy(),itemType:{type:String,default:"type"},...g_e(),...Pm(),...tf(),...gd(),...Lx({variant:"text"})},"VList"),Ax=Oa()({name:"VList",props:BLe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=DLe(t),{themeClasses:E}=th(t),{backgroundColorClasses:d,backgroundColorStyles:s}=dg(ji(t,"bgColor")),{borderClasses:n}=$O(t),{densityClasses:u}=Rx(t),{dimensionStyles:b}=D_(t),{elevationClasses:i}=cb(t),{roundedClasses:S}=mg(t),{children:w,open:y,parents:m,select:a}=wLe(t),c=nr(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=ji(t,"activeColor"),p=ji(t,"baseColor"),v=ji(t,"color");l_e(),ab({VListGroup:{activeColor:h,baseColor:p,color:v,expandIcon:ji(t,"expandIcon"),collapseIcon:ji(t,"collapseIcon")},VListItem:{activeClass:ji(t,"activeClass"),activeColor:h,baseColor:p,color:v,density:ji(t,"density"),disabled:ji(t,"disabled"),lines:ji(t,"lines"),nav:ji(t,"nav"),slim:ji(t,"slim"),variant:ji(t,"variant")}});const _=Gi(!1),O=qo();function C(A){_.value=!0}function x(A){_.value=!1}function R(A){var L;!_.value&&!(A.relatedTarget&&((L=O.value)!=null&&L.contains(A.relatedTarget)))&&P()}function M(A){const L=A.target;if(!(!O.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(A.key==="ArrowDown")P("next");else if(A.key==="ArrowUp")P("prev");else if(A.key==="Home")P("first");else if(A.key==="End")P("last");else return;A.preventDefault()}}function T(A){_.value=!0}function P(A){if(O.value)return aZ(O.value,A)}return Ga(()=>$t(t.tag,{ref:O,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},E.value,d.value,n.value,u.value,i.value,c.value,S.value,t.class],style:[s.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[$t(m_e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:P,children:w,parents:m}}});function aae(t,e){return{x:t.x+e.x,y:t.y+e.y}}function zLe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,E=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return aae({x:E,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,E=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return aae({x:E,y:d},e)}return aae({x:e.width/2,y:e.height/2},e)}const b_e={static:$Le,connected:ULe},NLe=gi({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in b_e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function FLe(t,e){const o=qo({}),f=qo();Hu&&$1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var s,n;ia(()=>t.locationStrategy,d),hg(()=>{window.removeEventListener("resize",E),f.value=void 0}),window.addEventListener("resize",E,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(s=t.locationStrategy(e,t,o))==null?void 0:s.updateLocation:f.value=(n=b_e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function E(d){var s;(s=f.value)==null||s.call(f,d)}return{contentStyles:o,updateLocation:f}}function $Le(){}function VLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=uue(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function ULe(t,e,o){(Array.isArray(t.target.value)||Z9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:E,preferredOrigin:d}=lue(()=>{const m=Gse(e.location,t.isRtl.value),a=e.origin==="overlap"?m:e.origin==="auto"?tae(m):Gse(e.origin,t.isRtl.value);return m.side===a.side&&m.align===nae(a).align?{preferredAnchor:age(m),preferredOrigin:age(a)}:{preferredAnchor:m,preferredOrigin:a}}),[s,n,u,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>nr(()=>{const a=parseFloat(e[m]);return isNaN(a)?1/0:a})),i=nr(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const m=e.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let S=!1;const w=new ResizeObserver(()=>{S&&y()});ia([t.target,t.contentEl],(m,a)=>{let[c,h]=m,[p,v]=a;p&&!Array.isArray(p)&&w.unobserve(p),c&&!Array.isArray(c)&&w.observe(c),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),hg(()=>{w.disconnect()});function y(){if(S=!1,requestAnimationFrame(()=>S=!0),!t.target.value||!t.contentEl.value)return;const m=f2e(t.target.value),a=VLe(t.contentEl.value,t.isRtl.value),c=cZ(t.contentEl.value),h=12;c.length||(c.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=c.reduce((P,A)=>{const L=A.getBoundingClientRect(),D=new jT({x:A===document.documentElement?0:L.x,y:A===document.documentElement?0:L.y,width:A.clientWidth,height:A.clientHeight});return P?new jT({x:Math.max(P.left,D.left),y:Math.max(P.top,D.top),width:Math.min(P.right,D.right)-Math.max(P.left,D.left),height:Math.min(P.bottom,D.bottom)-Math.max(P.top,D.top)}):D},void 0);p.x+=h,p.y+=h,p.width-=h*2,p.height-=h*2;let v={anchor:E.value,origin:d.value};function _(P){const A=new jT(a),L=jge(P.anchor,m),D=jge(P.origin,A);let{x:k,y:I}=zLe(L,D);switch(P.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(P.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return A.x+=k,A.y+=I,A.width=Math.min(A.width,u.value),A.height=Math.min(A.height,b.value),{overflows:lge(A,p),x:k,y:I}}let O=0,C=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:P,y:A,overflows:L}=_(v);O+=P,C+=A,a.x+=P,a.y+=A;{const D=sge(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?nae:tae:D==="y"?tae:nae;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(O+=L.x.before,a.x+=L.x.before),L.x.after&&(O-=L.x.after,a.x-=L.x.after),L.y.before&&(C+=L.y.before,a.y+=L.y.before),L.y.after&&(C-=L.y.after,a.y-=L.y.after);{const D=lge(a,p);x.x=p.width-D.x.before-D.x.after,x.y=p.height-D.y.before-D.y.after,O+=D.x.before,a.x+=D.x.before,C+=D.y.before,a.y+=D.y.before}break}const T=sge(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:is(sae(C)),left:t.isRtl.value?void 0:is(sae(O)),right:t.isRtl.value?is(sae(-O)):void 0,minWidth:is(T==="y"?Math.min(s.value,m.width):s.value),maxWidth:is(Qge(ug(x.x,s.value===1/0?0:s.value,u.value))),maxHeight:is(Qge(ug(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return ia(()=>[E.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),Vc(()=>{const m=y();if(!m)return;const{available:a,contentBox:c}=m;c.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function sae(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Qge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let ile=!0;const pZ=[];function jLe(t){!ile||pZ.length?(pZ.push(t),ale()):(ile=!1,t(),ale())}let Hge=-1;function ale(){cancelAnimationFrame(Hge),Hge=requestAnimationFrame(()=>{const t=pZ.shift();t&&t(),pZ.length?ale():ile=!0})}const xH={none:null,close:ZLe,block:qLe,reposition:WLe},QLe=gi({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in xH}},"VOverlay-scroll-strategies");function HLe(t,e){if(!Hu)return;let o;Gp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=oD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=xH[t.scrollStrategy])==null||f.call(xH,e,t,o)}))}),hg(()=>{o==null||o.stop()})}function ZLe(t){function e(o){t.isActive.value=!1}x_e(t.targetEl.value??t.contentEl.value,e)}function qLe(t,e){var s;const o=(s=t.root.value)==null?void 0:s.offsetParent,f=[...new Set([...cZ(t.targetEl.value,e.contained?o:void 0),...cZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),E=window.innerWidth-document.documentElement.offsetWidth,d=(n=>hue(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,u)=>{n.style.setProperty("--v-body-scroll-x",is(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",is(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",is(E)),n.classList.add("v-overlay-scroll-blocked")}),hg(()=>{f.forEach((n,u)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),S=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=S}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function WLe(t,e,o){let f=!1,E=-1,d=-1;function s(n){jLe(()=>{var i,S;const u=performance.now();(S=(i=t.updateLocation).value)==null||S.call(i,n),f=(performance.now()-u)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{x_e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(E),E=requestAnimationFrame(()=>{E=requestAnimationFrame(()=>{s(n)})})):s(n)})})}),hg(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(E)})}function x_e(t,e){const o=[document,...cZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),hg(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const sle=Symbol.for("vuetify:v-menu"),__e=gi({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function w_e(t,e){let o=()=>{};function f(s){o==null||o();const n=Number(s?t.openDelay:t.closeDelay);return new Promise(u=>{o=f9e(n,()=>{e==null||e(s),u(s)})})}function E(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:E,runCloseDelay:d}}const YLe=gi({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...__e()},"VOverlay-activator");function XLe(t,e){let{isActive:o,isTop:f}=e;const E=Xh("useActivator"),d=qo();let s=!1,n=!1,u=!0;const b=nr(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=nr(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:S,runCloseDelay:w}=w_e(t,x=>{x===(t.openOnHover&&s||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(u=!0),o.value=x)}),y=qo(),m={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(s=!0,d.value=x.currentTarget||x.target,S())},onMouseleave:x=>{s=!1,w()},onFocus:x=>{mM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,S())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=nr(()=>{const x={};return i.value&&(x.onClick=m.onClick),t.openOnHover&&(x.onMouseenter=m.onMouseenter,x.onMouseleave=m.onMouseleave),b.value&&(x.onFocus=m.onFocus,x.onBlur=m.onBlur),x}),c=nr(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{s=!0,S()},x.onMouseleave=()=>{s=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,S()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=Kl(sle,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=nr(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{u&&(s=!0,u=!1,S())},x.onMouseleave=()=>{s=!1,w()}),x});ia(f,x=>{x&&(t.openOnHover&&!s&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!s))&&(o.value=!1)}),ia(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const p=Xse();Gp(()=>{p.value&&Vc(()=>{d.value=p.el})});const v=Xse(),_=nr(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:O_e(t.target,E)||d.value),O=nr(()=>Array.isArray(_.value)?void 0:_.value);let C;return ia(()=>!!t.activator,x=>{x&&Hu?(C=oD(),C.run(()=>{GLe(t,E,{activatorEl:d,activatorEvents:a})})):C&&C.stop()},{flush:"post",immediate:!0}),hg(()=>{C==null||C.stop()}),{activatorEl:d,activatorRef:p,target:_,targetEl:O,targetRef:v,activatorEvents:a,contentEvents:c,scrimEvents:h}}function GLe(t,e,o){let{activatorEl:f,activatorEvents:E}=o;ia(()=>t.activator,(u,b)=>{if(b&&u!==b){const i=n(b);i&&s(i)}u&&Vc(()=>d())},{immediate:!0}),ia(()=>t.activatorProps,()=>{d()}),hg(()=>{s()});function d(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&p9e(u,qi(E.value,b))}function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&m9e(u,qi(E.value,b))}function n(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=O_e(u,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function O_e(t,e){var f,E;if(!t)return;let o;if(t==="parent"){let d=(E=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:E.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function KLe(){if(!Hu)return Gi(!1);const{ssr:t}=L4();if(t){const e=Gi(!1);return pg(()=>{e.value=!0}),e}else return Gi(!0)}const S_e=gi({eager:Boolean},"lazy");function k_e(t,e){const o=Gi(!1),f=nr(()=>o.value||t.eager||e.value);ia(e,()=>o.value=!0);function E(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:E}}function IM(){const e=Xh("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const Zge=Symbol.for("vuetify:stack"),BL=Am([]);function JLe(t,e,o){const f=Xh("useStack"),E=!o,d=Kl(Zge,void 0),s=Am({activeChildren:new Set});md(Zge,s);const n=Gi(+e.value);$1(t,()=>{var S;const i=(S=BL.at(-1))==null?void 0:S[1];n.value=i?i+10:+e.value,E&&BL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),hg(()=>{if(E){const w=sl(BL).findIndex(y=>y[0]===f.uid);BL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const u=Gi(!0);E&&Gp(()=>{var S;const i=((S=BL.at(-1))==null?void 0:S[0])===f.uid;setTimeout(()=>u.value=i)});const b=nr(()=>!s.activeChildren.size);return{globalTop:TM(u),localTop:b,stackStyles:nr(()=>({zIndex:n.value}))}}function eIe(t){return{teleportTarget:nr(()=>{const o=t();if(o===!0||!Hu)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let E=f.querySelector(":scope > .v-overlay-container");return E||(E=document.createElement("div"),E.className="v-overlay-container",f.appendChild(E)),E})}}function tIe(){return!0}function T_e(t,e,o){if(!t||C_e(t,o)===!1)return!1;const f=y2e(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const E=(typeof o.value=="object"&&o.value.include||(()=>[]))();return E.push(e),!E.some(d=>d==null?void 0:d.contains(t.target))}function C_e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||tIe)(t)}function nIe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&T_e(t,e,o)&&setTimeout(()=>{C_e(t,o)&&f&&f(t)},0)}function qge(t,e){const o=y2e(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const rIe={mounted(t,e){const o=E=>nIe(E,t,e),f=E=>{t._clickOutside.lastMousedownWasOutside=T_e(E,t,e)};qge(t,E=>{E.addEventListener("click",o,!0),E.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(qge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:E}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",E,!0)}),delete t._clickOutside[e.instance.$.uid])}};function oIe(t){const{modelValue:e,color:o,...f}=t;return $t(C_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&$t("div",qi({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const OD=gi({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...YLe(),...Js(),...I_(),...S_e(),...NLe(),...QLe(),...gd(),...nC()},"VOverlay"),C4=Oa()({name:"VOverlay",directives:{ClickOutside:rIe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...OD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:E}=e;const d=ql(t,"modelValue"),s=nr({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=th(t),{rtlClasses:u,isRtl:b}=n0(),{hasContent:i,onAfterLeave:S}=k_e(t,s),w=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:m,stackStyles:a}=JLe(s,ji(t,"zIndex"),t._disableGlobalStack),{activatorEl:c,activatorRef:h,target:p,targetEl:v,targetRef:_,activatorEvents:O,contentEvents:C,scrimEvents:x}=XLe(t,{isActive:s,isTop:m}),{teleportTarget:R}=eIe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const re=(q=c==null?void 0:c.value)==null?void 0:q.getRootNode();return re instanceof ShadowRoot?re:!1}),{dimensionStyles:M}=D_(t),T=KLe(),{scopeId:P}=IM();ia(()=>t.disabled,K=>{K&&(s.value=!1)});const A=qo(),L=qo(),D=qo(),{contentStyles:k,updateLocation:I}=FLe(t,{isRtl:b,contentEl:D,target:p,isActive:s});HLe(t,{root:A,contentEl:D,targetEl:v,isActive:s,updateLocation:I});function z(K){E("click:outside",K),t.persistent?X():s.value=!1}function $(K){return s.value&&y.value&&(!t.scrim||K.target===L.value)}Hu&&ia(s,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),Em(()=>{Hu&&window.removeEventListener("keydown",Q)});function Q(K){var re,q;K.key==="Escape"&&y.value&&(t.persistent?X():(s.value=!1,(re=D.value)!=null&&re.contains(document.activeElement)&&((q=c.value)==null||q.focus())))}const j=j2e();$1(()=>t.closeOnBack,()=>{IRe(j,K=>{y.value&&s.value?(K(!1),t.persistent?X():s.value=!1):K()})});const U=qo();ia(()=>s.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const re=b2e(A.value);re&&re!==document.scrollingElement&&(U.value=re.scrollTop)}});function X(){t.noClickAnimation||D.value&&U8(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:lZ})}function te(){E("afterEnter")}function Z(){S(),E("afterLeave")}return Ga(()=>{var K;return $t(Ea,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:s.value,targetRef:_,props:qi({ref:h},O.value,t.activatorProps)}),T.value&&i.value&&$t(Rke,{disabled:!R.value,to:R.value},{default:()=>[$t("div",qi({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":s.value,"v-overlay--contained":t.contained},n.value,u.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:is(U.value)},t.style],ref:A},P,f),[$t(oIe,qi({color:w,modelValue:s.value&&!!t.scrim,ref:L},x.value),null),$t(f4,{appear:!0,persisted:!0,transition:t.transition,target:p.value,onAfterEnter:te,onAfterLeave:Z},{default:()=>{var re;return[Kp($t("div",qi({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},C.value,t.contentProps),[(re=o.default)==null?void 0:re.call(o,{isActive:s})]),[[A4,s.value],[M_("click-outside"),{handler:z,closeConditional:$,include:()=>[c.value]}]])]}})])]})])}),{activatorEl:c,scrimEl:L,target:p,animateClick:X,contentEl:D,globalTop:y,localTop:m,updateLocation:I}}}),lae=Symbol("Forwarded refs");function cae(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function Ix(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-menu-${d}`),n=qo(),u=Kl(sle,null),b=Gi(0);md(sle,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var c;!b.value&&!t.persistent&&(a==null||(c=n.value)!=null&&c.contentEl&&!d9e(a,n.value.contentEl))&&(f.value=!1,u==null||u.closeParents())},40)}});async function i(a){var p,v,_;const c=a.relatedTarget,h=a.target;await Vc(),f.value&&c!==h&&((p=n.value)!=null&&p.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=jI(n.value.contentEl)[0])==null||_.focus())}ia(f,a=>{a?(u==null||u.register(),document.addEventListener("focusin",i,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",i))});function S(a){u==null||u.closeParents(a)}function w(a){var c,h,p;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),l2e(jI((c=n.value)==null?void 0:c.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(p=(h=n.value)==null?void 0:h.activatorEl)==null||p.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,u==null||u.closeParents())}function y(a){var h;if(t.disabled)return;const c=(h=n.value)==null?void 0:h.contentEl;c&&f.value?a.key==="ArrowDown"?(a.preventDefault(),aZ(c,"next")):a.key==="ArrowUp"&&(a.preventDefault(),aZ(c,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const m=nr(()=>qi({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":s.value,onKeydown:y},t.activatorProps));return Ga(()=>{const a=C4.filterProps(t);return $t(C4,qi({ref:n,id:s.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":c=>f.value=c,absolute:!0,activatorProps:m.value,"onClick:outside":S,onKeydown:w},E),{activator:o.activator,default:function(){for(var c=arguments.length,h=new Array(c),p=0;p{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),Ix({id:s,ΨopenChildren:b},n)}});const aIe=gi({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Js(),...nC({transition:{component:A2e}})},"VCounter"),Cue=Oa()({name:"VCounter",functional:!0,props:aIe(),setup(t,e){let{slots:o}=e;const f=nr(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ga(()=>$t(f4,{transition:t.transition},{default:()=>[Kp($t("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[A4,t.active]])]})),{}}});const sIe=gi({floating:Boolean,...Js()},"VFieldLabel"),WQ=Oa()({name:"VFieldLabel",props:sIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(wq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),lIe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Tq=gi({appendInnerIcon:Hl,bgColor:String,clearable:Boolean,clearIcon:{type:Hl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Hl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>lIe.includes(t)},"onClick:clear":fg(),"onClick:appendInner":fg(),"onClick:prependInner":fg(),...Js(),...gq(),...Pm(),...gd()},"VField"),Cq=Oa()({name:"VField",inheritAttrs:!1,props:{id:String,...Oq(),...Tq()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{themeClasses:d}=th(t),{loaderClasses:s}=_D(t),{focusClasses:n,isFocused:u,focus:b,blur:i}=cC(t),{InputIcon:S}=e_e(t),{roundedClasses:w}=mg(t),{rtlClasses:y}=n0(),m=nr(()=>t.dirty||t.active),a=nr(()=>!t.singleLine&&!!(t.label||E.label)),c=j1(),h=nr(()=>t.id||`input-${c}`),p=nr(()=>`${h.value}-messages`),v=qo(),_=qo(),O=qo(),C=nr(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=dg(ji(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=ny(nr(()=>t.error||t.disabled?void 0:m.value&&u.value?t.color:t.baseColor));ia(m,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=uue(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:is(U)}:void 0,te=getComputedStyle(k),Z=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,re=parseFloat(Z.getPropertyValue("--v-field-label-scale")),q=Z.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",U8(k,{transform:`translate(${Q}px, ${j}px) scale(${re})`,color:q,...X},{duration:K,easing:lZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const P=nr(()=>({isActive:m,isFocused:u,controlRef:O,blur:i,focus:b}));function A(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ga(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(E["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||E.clear),z=!!(E["append-inner"]||t.appendInnerIcon||I),$=()=>E.label?E.label({...P.value,label:t.label,props:{for:h.value}}):t.label;return $t("div",qi({class:["v-field",{"v-field--active":m.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!C.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,s.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:A},o),[$t("div",{class:"v-field__overlay"},null),$t(vq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:E.loader}),k&&$t("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&$t(S,{key:"prepend-icon",name:"prependInner"},null),(Q=E["prepend-inner"])==null?void 0:Q.call(E,P.value)]),$t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&$t(WQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),$t(WQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=E.default)==null?void 0:j.call(E,{...P.value,props:{id:h.value,class:"v-field__input","aria-describedby":p.value},focus:b,blur:i})]),I&&$t(M2e,{key:"clear"},{default:()=>[Kp($t("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[$t(ef,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[E.clear?E.clear({...P.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):$t(S,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[A4,t.dirty]])]}),z&&$t("div",{key:"append",class:"v-field__append-inner"},[(U=E["append-inner"])==null?void 0:U.call(E,P.value),t.appendInnerIcon&&$t(S,{key:"append-icon",name:"appendInner"},null)]),$t("div",{class:["v-field__outline",M.value],style:T.value},[D&&$t(Ea,null,[$t("div",{class:"v-field__outline__start"},null),a.value&&$t("div",{class:"v-field__outline__notch"},[$t(WQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),$t("div",{class:"v-field__outline__end"},null)]),C.value&&a.value&&$t(WQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:O}}});function Aue(t){const e=Object.keys(Cq.props).filter(o=>!lq(o)&&o!=="class"&&o!=="style");return sue(t,e)}const cIe=["color","file","time","date","datetime-local","week","month"],Aq=gi({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...uC(),...Tq()},"VTextField"),Ep=Oa()({name:"VTextField",directives:{Intersect:bue},inheritAttrs:!1,props:Aq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=cC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),S=nr(()=>["plain","underlined"].includes(t.variant));function w(C,x){var R,M;!t.autofocus||!C||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=qo(),m=qo(),a=qo(),c=nr(()=>cIe.includes(t.type)||t.persistentPlaceholder||s.value||t.active);function h(){var C;a.value!==document.activeElement&&((C=a.value)==null||C.focus()),s.value||n()}function p(C){f("mousedown:control",C),C.target!==a.value&&(h(),C.preventDefault())}function v(C){h(),f("click:control",C)}function _(C){C.stopPropagation(),h(),Vc(()=>{d.value=null,cue(t["onClick:clear"],C)})}function O(C){var R;const x=C.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];Vc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ga(()=>{const C=!!(E.counter||t.counter!==!1&&t.counter!=null),x=!!(C||E.details),[R,M]=yD(o),{modelValue:T,...P}=sb.filterProps(t),A=Aue(t);return $t(sb,qi({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":S.value},t.class],style:t.style},R,P,{centerAffix:!S.value,focused:s.value}),{...E,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return $t(Cq,qi({ref:m,onMousedown:p,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},A,{id:D.value,active:c.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:s.value,error:$.value===!1}),{...E,default:Q=>{let{props:{class:j,...U}}=Q;const X=Kp($t("input",qi({ref:a,value:d.value,onInput:O,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:u},U,M),null),[[M_("intersect"),{handler:w},null,{once:!0}]]);return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[$t("span",{class:"v-text-field__prefix__text"},[t.prefix])]),E.default?$t("div",{class:j,"data-no-activator":""},[E.default(),X]):EO(X,{class:j}),t.suffix&&$t("span",{class:"v-text-field__suffix"},[$t("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return $t(Ea,null,[(D=E.details)==null?void 0:D.call(E,L),C&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},y,m,a)}});const uIe=gi({renderless:Boolean,...Js()},"VVirtualScrollItem"),fIe=Oa()({name:"VVirtualScrollItem",inheritAttrs:!1,props:uIe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{resizeRef:d,contentRect:s}=T4(void 0,"border");ia(()=>{var n;return(n=s.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ga(()=>{var n,u;return t.renderless?$t(Ea,null,[(n=E.default)==null?void 0:n.call(E,{itemRef:d})]):$t("div",qi({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(u=E.default)==null?void 0:u.call(E)])})}}),dIe=-1,hIe=1,uae=100,pIe=gi({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function mIe(t,e){const o=L4(),f=Gi(0);Gp(()=>{f.value=parseFloat(t.itemHeight||0)});const E=Gi(0),d=Gi(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),s=Gi(0),n=Gi(0),u=qo(),b=qo();let i=0;const{resizeRef:S,contentRect:w}=T4();Gp(()=>{S.value=u.value});const y=nr(()=>{var Q;return u.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),m=nr(()=>!!(u.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length});const h=Gi(0);let p=-1;function v(Q){return a[Q]||f.value}const _=l9e(()=>{const Q=performance.now();c[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)c[U]=(c[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),O=ia(m,Q=>{Q&&(O(),i=b.value.offsetTop,_.immediate(),k(),~p&&Vc(()=>{Hu&&window.requestAnimationFrame(()=>{z(p),p=-1})}))});hg(()=>{_.clear()});function C(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=ug(Q,0,e.value.length-1),c[Q]||0}function R(Q){return gIe(c,Q)}let M=0,T=0,P=0;ia(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function A(){if(!u.value||!b.value)return;const Q=u.value.scrollTop,j=performance.now();j-P>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,P=j,k()}function L(){!u.value||!b.value||(T=0,P=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!u.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-uae),X=ug(R(U),0,e.value.length),te=Q+y.value+uae,Z=ug(R(te)+1,X+1,e.value.length);if((j!==dIe||Xd.value)){const K=x(E.value)-x(X),re=x(Z)-x(d.value);Math.max(K,re)>uae?(E.value=X,d.value=Z):(X<=0&&(E.value=X),Z>=e.value.length&&(d.value=Z))}s.value=x(E.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!u.value||Q&&!j?p=Q:u.value.scrollTop=j}const $=nr(()=>e.value.slice(E.value,d.value).map((Q,j)=>({raw:Q,index:j+E.value})));return ia(e,()=>{a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:u,markerRef:b,computedItems:$,paddingTop:s,paddingBottom:n,scrollToIndex:z,handleScroll:A,handleScrollend:L,handleItemResize:C}}function gIe(t,e){let o=t.length-1,f=0,E=0,d=null,s=-1;if(t[o]>1,d=t[E],d>e)o=E-1;else if(d[]},renderless:Boolean,...pIe(),...Js(),...I_()},"VVirtualScroll"),Mue=Oa()({name:"VVirtualScroll",props:vIe(),setup(t,e){let{slots:o}=e;const f=Xh("VVirtualScroll"),{dimensionStyles:E}=D_(t),{containerRef:d,markerRef:s,handleScroll:n,handleScrollend:u,handleItemResize:b,scrollToIndex:i,paddingTop:S,paddingBottom:w,computedItems:y}=mIe(t,ji(t,"items"));return $1(()=>t.renderless,()=>{function m(){var h,p;const c=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[c]("scroll",n,{passive:!0}),document[c]("scrollend",u)):((h=d.value)==null||h[c]("scroll",n,{passive:!0}),(p=d.value)==null||p[c]("scrollend",u))}pg(()=>{d.value=b2e(f.vnode.el,!0),m(!0)}),hg(m)}),Ga(()=>{const m=y.value.map(a=>$t(fIe,{key:a.index,renderless:t.renderless,"onUpdate:height":c=>b(a.index,c)},{default:c=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...c})}}));return t.renderless?$t(Ea,null,[$t("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:is(S.value)}},null),m,$t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:is(w.value)}},null)]):$t("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:u,style:[E.value,t.style]},[$t("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:is(S.value),paddingBottom:is(w.value)}},[m])])}),{scrollToIndex:i}}});function Eue(t,e){const o=Gi(!1);let f;function E(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const u=ia(o,()=>{u(),n()})}else n()})}async function s(n){var i,S;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const u=(S=t.value)==null?void 0:S.$el;if(!u)return;(n.key==="Home"||n.key==="End")&&u.scrollTo({top:n.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await d();const b=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=u.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=u.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:E,onListKeydown:s}}const Pue=gi({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Hl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...g_e({itemChildren:!1})},"Select"),yIe=gi({...Pue(),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:{component:gue}})},"VSelect"),DM=Oa()({name:"VSelect",props:yIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),E=qo(),d=qo(),s=qo(),n=ql(t,"menu"),u=nr({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:S}=Tue(t),w=ql(t,"modelValue",[],$=>i($===null?[null]:Pp($)),$=>{const Q=S($);return t.multiple?Q:Q[0]??null}),y=nr(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),m=Sq(),a=nr(()=>w.value.map($=>$.value)),c=Gi(!1),h=nr(()=>u.value?t.closeText:t.openText);let p="",v;const _=nr(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),O=nr(()=>t.hideNoData&&!_.value.length||t.readonly||(m==null?void 0:m.isReadonly.value)),C=nr(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=qo(),{onListScroll:R,onListKeydown:M}=Eue(x,E);function T($){t.openOnClear&&(u.value=!0)}function P(){O.value||(u.value=!u.value)}function A($){var te,Z;if(!$.key||t.readonly||m!=null&&m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(u.value=!0),["Escape","Tab"].includes($.key)&&(u.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((Z=x.value)==null||Z.focus("last"));const Q=1e3;function j(K){const re=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return re&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(p=""),p+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(p));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);Hu&&window.requestAnimationFrame(()=>{var re;K>=0&&((re=s.value)==null||re.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],Vc(()=>{u.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(u.value=!1)}function k(){var $;c.value&&(($=E.value)==null||$.focus())}function I($){c.value=!0}function z($){if($==null)w.value=[];else if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else E.value&&(E.value.value="")}return ia(u,()=>{if(!t.hideSelected&&u.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));Hu&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=s.value)==null||Q.scrollToIndex($))})}}),ia(()=>t.items,($,Q)=>{u.value||c.value&&!Q.length&&$.length&&(u.value=!0)}),Ga(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=Ep.filterProps(t),X=j||!c.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return $t(Ep,qi({ref:E},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:c.value,"onUpdate:focused":te=>c.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":P,onBlur:D,onKeydown:A,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:d,modelValue:u.value,"onUpdate:modelValue":te=>u.value=te,activator:"parent",contentClass:"v-select__content",disabled:O.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},C.value),{default:()=>[Q&&$t(Ax,qi({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,Z,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((Z=o["no-data"])==null?void 0:Z.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Mue,{ref:s,renderless:!0,items:_.value},{default:re=>{var pe;let{item:q,index:Y,itemRef:ee}=re;const me=qi(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((pe=o.item)==null?void 0:pe.call(o,{item:q,index:Y,props:me}))??$t(Xf,qi(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&$t(DO,{image:q.props.prependAvatar},null),q.props.prependIcon&&$t(jl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,Z)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const re={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?cq($?o.chip({item:te,index:Z,props:re}):o.selection({item:te,index:Z})):void 0;if(!(q&&!Y))return $t("div",{key:te.value,class:"v-select__selection"},[$?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},re),null):Y??$t("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Zt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),Rue=gi({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function xIe(t,e,o){var n;const f=[],E=(o==null?void 0:o.default)??bIe,d=o!=null&&o.filterKeys?Pp(o.filterKeys):!1,s=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let u=0;u0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const c=d||Object.keys(i);for(const h of c){const p=N1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(p,e,b):E(p,e,b),y!==-1&&y!==!1)v?S[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=E(b,e,b),y!==-1&&y!==!1&&(w.title=y);const m=Object.keys(w).length,a=Object.keys(S).length;if(!m&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==s&&!m||(o==null?void 0:o.filterMode)==="intersection"&&(a!==s||!m))continue}f.push({index:u,matches:{...w,...S}})}return f}function Lue(t,e,o,f){const E=qo([]),d=qo(new Map),s=nr(()=>f!=null&&f.transform?Va(e).map(u=>[u,f.transform(u)]):Va(e));Gp(()=>{const u=typeof o=="function"?o():Va(o),b=typeof u!="string"&&typeof u!="number"?"":String(u),i=xIe(s.value,b,{customKeyFilter:{...t.customKeyFilter,...Va(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),S=Va(e),w=[],y=new Map;i.forEach(m=>{let{index:a,matches:c}=m;const h=S[a];w.push(h),y.set(h.value,c)}),E.value=w,d.value=y});function n(u){return d.value.get(u.value)}return{filteredItems:E,filteredMatches:d,getMatches:n}}function _Ie(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),$t("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),$t("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const wIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Rue({filterKeys:["title"]}),...Pue(),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:!1})},"VAutocomplete"),Mq=Oa()({name:"VAutocomplete",props:wIe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),E=qo(),d=Gi(!1),s=Gi(!0),n=Gi(!1),u=qo(),b=qo(),i=ql(t,"menu"),S=nr({get:()=>i.value,set:me=>{var pe;i.value&&!me&&((pe=u.value)!=null&&pe.ΨopenChildren)||(i.value=me)}}),w=Gi(-1),y=nr(()=>{var me;return(me=E.value)==null?void 0:me.color}),m=nr(()=>S.value?t.closeText:t.openText),{items:a,transformIn:c,transformOut:h}=Tue(t),{textColorClasses:p,textColorStyles:v}=ny(y),_=ql(t,"search",""),O=ql(t,"modelValue",[],me=>c(me===null?[null]:Pp(me)),me=>{const pe=h(me);return t.multiple?pe:pe[0]??null}),C=nr(()=>typeof t.counterValue=="function"?t.counterValue(O.value):typeof t.counterValue=="number"?t.counterValue:O.value.length),x=Sq(),{filteredItems:R,getMatches:M}=Lue(t,a,()=>s.value?"":_.value),T=nr(()=>t.hideSelected?R.value.filter(me=>!O.value.some(pe=>pe.value===me.value)):R.value),P=nr(()=>!!(t.chips||o.chip)),A=nr(()=>P.value||!!o.selection),L=nr(()=>O.value.map(me=>me.props.value)),D=nr(()=>{var pe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((pe=T.value[0])==null?void 0:pe.title))&&T.value.length>0&&!s.value&&!n.value}),k=nr(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=qo(),{onListScroll:z,onListKeydown:$}=Eue(I,E);function Q(me){t.openOnClear&&(S.value=!0),_.value=""}function j(){k.value||(S.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),S.value=!S.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const pe=E.value.selectionStart,se=O.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(S.value=!0),["Escape"].includes(me.key)&&(S.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!O.value.some(ye=>{let{value:ve}=ye;return ve===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&A.value&&O.value.length>0&&!_.value)return ee(O.value[0],!1);if(~w.value){const ye=w.value;ee(O.value[w.value],!1),w.value=ye>=se-1?se-2:ye}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&pe>0)return;const ye=w.value>-1?w.value-1:se-1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ye=w.value+1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange(0,0))}}}function te(me){if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const pe=a.value.find(se=>se.title===me.target.value);pe&&ee(pe)}}function Z(){var me;d.value&&(s.value=!0,(me=E.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function re(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!A.value)&&(O.value=[])}const Y=Gi(!1);function ee(me){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=O.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=pe??!~se;if(~se){const ce=ae?[...O.value,me]:[...O.value];ce.splice(se,1),O.value=ce}else ae&&(O.value=[...O.value,me]);t.clearOnSelect&&(_.value="")}else{const se=pe!==!1;O.value=se?[me]:[],_.value=se&&!A.value?me.title:"",Vc(()=>{S.value=!1,s.value=!0})}}return ia(d,(me,pe)=>{var se;me!==pe&&(me?(Y.value=!0,_.value=t.multiple||A.value?"":String(((se=O.value.at(-1))==null?void 0:se.props.title)??""),s.value=!0,Vc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(O.value=[]),S.value=!1,O.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),ia(_,me=>{!d.value||Y.value||(me&&(S.value=!0),s.value=!me)}),ia(S,()=>{if(!t.hideSelected&&S.value&&O.value.length){const me=T.value.findIndex(pe=>O.value.some(se=>pe.value===se.value));Hu&&window.requestAnimationFrame(()=>{var pe;me>=0&&((pe=b.value)==null||pe.scrollToIndex(me))})}}),ia(()=>t.items,(me,pe)=>{S.value||d.value&&!pe.length&&me.length&&(S.value=!0)}),Ga(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),pe=O.value.length>0,se=Ep.filterProps(t);return $t(Ep,qi({ref:E},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:O.externalValue,counterValue:C.value,dirty:pe,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":S.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!A.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:pe?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:u,modelValue:S.value,"onUpdate:modelValue":ae=>S.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:Z},t.menuProps),{default:()=>[me&&$t(Ax,qi({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:re,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Mue,{ref:b,renderless:!0,items:T.value},{default:ye=>{var Pe;let{item:ve,index:_e,itemRef:we}=ye;const Te=qi(ve.props,{ref:we,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ve,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ve,index:_e,props:Te}))??$t(Xf,qi(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:ve.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ve.props.prependAvatar&&$t(DO,{image:ve.props.prependAvatar},null),ve.props.prependIcon&&$t(jl,{icon:ve.props.prependIcon},null)])},title:()=>{var Ie,ze;return s.value?ve.title:_Ie(ve.title,(Ie=M(ve))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),O.value.map((ae,ce)=>{function de(we){we.stopPropagation(),we.preventDefault(),ee(ae,!1)}const ye={"onClick:close":de,onKeydown(we){we.key!=="Enter"&&we.key!==" "||(we.preventDefault(),we.stopPropagation(),de(we))},onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ve=P.value?!!o.chip:!!o.selection,_e=ve?cq(P.value?o.chip({item:ae,index:ce,props:ye}):o.selection({item:ae,index:ce})):void 0;if(!(ve&&!_e))return $t("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",p.value]],style:ce===w.value?v.value:{}},[P.value?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ye),null):_e??$t("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),{scopeId:d}=IM(),s=qo();function n(i){var y,m;const S=i.relatedTarget,w=i.target;if(S!==w&&((y=s.value)!=null&&y.contentEl)&&((m=s.value)!=null&&m.globalTop)&&![document,s.value.contentEl].includes(w)&&!s.value.contentEl.contains(w)){const a=jI(s.value.contentEl);if(!a.length)return;const c=a[0],h=a[a.length-1];S===c?h.focus():c.focus()}}Hu&&ia(()=>E.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function u(){var i;(i=s.value)!=null&&i.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return ia(E,async i=>{var S;i||(await Vc(),(S=s.value.activatorEl)==null||S.focus({preventScroll:!0}))}),Ga(()=>{const i=C4.filterProps(t),S=qi({"aria-haspopup":"dialog","aria-expanded":String(E.value)},t.activatorProps),w=qi({tabindex:-1},t.contentProps);return $t(C4,qi({ref:s,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:E.value,"onUpdate:modelValue":y=>E.value=y,"aria-modal":"true",activatorProps:S,contentProps:w,role:"dialog",onAfterEnter:u,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,m=new Array(y),a=0;a{var c;return[(c=f.default)==null?void 0:c.call(f,...m)]}})}})}),Ix({},s)}});const SD=Oa()({name:"VCardActions",props:Js(),setup(t,e){let{slots:o}=e;return ab({VBtn:{slim:!0,variant:"text"}}),Ga(()=>{var f;return $t("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),SIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardSubtitle"),A_e=Oa()({name:"VCardSubtitle",props:SIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),I4=uq("v-card-title"),kIe=gi({appendAvatar:String,appendIcon:Hl,prependAvatar:String,prependIcon:Hl,subtitle:[String,Number],title:[String,Number],...Js(),...Q1()},"VCardItem"),TIe=Oa()({name:"VCardItem",props:kIe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),E=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),s=!!(d||o.append),n=!!(t.title!=null||o.title),u=!!(t.subtitle!=null||o.subtitle);return $t("div",{class:["v-card-item",t.class],style:t.style},[E&&$t("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?$t(ef,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),$t("div",{class:"v-card-item__content"},[n&&$t(I4,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),u&&$t(A_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),s&&$t("div",{key:"append",class:"v-card-item__append"},[o.append?$t(ef,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),CIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardText"),dC=Oa()({name:"VCardText",props:CIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),AIe=gi({appendAvatar:String,appendIcon:Hl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...B_(),...Js(),...Q1(),...I_(),...iy(),...gq(),...xD(),...yq(),...Pm(),..._q(),...tf(),...gd(),...Lx({variant:"elevated"})},"VCard"),ub=Oa()({name:"VCard",directives:{Ripple:lC},props:AIe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{colorClasses:s,colorStyles:n,variantClasses:u}=iC(t),{densityClasses:b}=Rx(t),{dimensionStyles:i}=D_(t),{elevationClasses:S}=cb(t),{loaderClasses:w}=_D(t),{locationStyles:y}=mq(t),{positionClasses:m}=bq(t),{roundedClasses:a}=mg(t),c=xq(t,o),h=nr(()=>t.link!==!1&&c.isLink.value),p=nr(()=>!t.disabled&&t.link!==!1&&(t.link||c.isClickable.value));return Ga(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),O=!!(f.subtitle||t.subtitle!=null),C=_||O,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=C||R||x,P=!!(f.text||t.text!=null);return Kp($t(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":p.value},E.value,d.value,s.value,b.value,S.value,w.value,m.value,a.value,u.value,t.class],style:[n.value,i.value,y.value,t.style],href:c.href.value,onClick:p.value&&c.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var A;return[M&&$t("div",{key:"image",class:"v-card__image"},[f.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):$t(rC,{key:"image-img",cover:!0,src:t.image},null)]),$t(vq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&$t(TIe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),P&&$t(dC,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(A=f.default)==null?void 0:A.call(f),f.actions&&$t(SD,null,{default:f.actions}),oC(p.value,"v-card")]}}),[[M_("ripple"),p.value&&t.ripple]])}),{}}});const Iue=Symbol.for("vuetify:v-slider");function lle(t,e,o){const f=o==="vertical",E=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(E.top+E.height/2):d.clientX-(E.left+E.width/2)}function MIe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const M_e=gi({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...Pm(),...iy({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),E_e=t=>{const e=nr(()=>parseFloat(t.min)),o=nr(()=>parseFloat(t.max)),f=nr(()=>+t.step>0?parseFloat(t.step):0),E=nr(()=>Math.max(ege(f.value),ege(e.value)));function d(s){if(s=parseFloat(s),f.value<=0)return s;const n=ug(s,e.value,o.value),u=e.value%f.value,b=Math.round((n-u)/f.value)*f.value+u;return parseFloat(Math.min(b,o.value).toFixed(E.value))}return{min:e,max:o,step:f,decimals:E,roundValue:d}},P_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:E,onSliderEnd:d,getActiveThumb:s}=t;const{isRtl:n}=n0(),u=ji(e,"reverse"),b=nr(()=>e.direction==="vertical"),i=nr(()=>b.value!==u.value),{min:S,max:w,step:y,decimals:m,roundValue:a}=o,c=nr(()=>parseInt(e.thumbSize,10)),h=nr(()=>parseInt(e.tickSize,10)),p=nr(()=>parseInt(e.trackSize,10)),v=nr(()=>(w.value-S.value)/y.value),_=ji(e,"disabled"),O=nr(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),C=nr(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=nr(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Gi(!1),M=Gi(0),T=qo(),P=qo();function A(re){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:pe,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=MIe(re,me);let ce=Math.min(Math.max((ae-pe-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(S.value+ce*(w.value-S.value))}const L=re=>{d({value:A(re)}),R.value=!1,M.value=0},D=re=>{P.value=s(re),P.value&&(P.value.focus(),R.value=!0,P.value.contains(re.target)?M.value=lle(re,P.value,e.direction):(M.value=0,E({value:A(re)})),f({value:A(re)}))},k={passive:!0,capture:!0};function I(re){E({value:A(re)})}function z(re){re.stopPropagation(),re.preventDefault(),L(re),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(re){var q;L(re),window.removeEventListener("touchmove",I,k),(q=re.target)==null||q.removeEventListener("touchend",$)}function Q(re){var q;D(re),window.addEventListener("touchmove",I,k),(q=re.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(re){re.preventDefault(),D(re),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=re=>{const q=(re-S.value)/(w.value-S.value)*100;return ug(isNaN(q)?0:q,0,100)},X=ji(e,"showTicks"),te=nr(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(re=>({value:re,position:U(re),label:re.toString()})):Object.keys(e.ticks).map(re=>({value:parseFloat(re),position:U(parseFloat(re)),label:e.ticks[re]})):v.value!==1/0?u4(v.value+1).map(re=>{const q=S.value+re*y.value;return{value:q,position:U(q)}}):[]:[]),Z=nr(()=>te.value.some(re=>{let{label:q}=re;return!!q})),K={activeThumbRef:P,color:ji(e,"color"),decimals:m,disabled:_,direction:ji(e,"direction"),elevation:ji(e,"elevation"),hasLabels:Z,isReversed:u,indexFromEnd:i,min:S,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:A,position:U,readonly:ji(e,"readonly"),rounded:ji(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:c,thumbColor:O,thumbLabel:ji(e,"thumbLabel"),ticks:ji(e,"ticks"),tickSize:h,trackColor:C,trackContainerRef:T,trackFillColor:x,trackSize:p,vertical:b};return md(Iue,K),K},EIe=gi({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Js()},"VSliderThumb"),cle=Oa()({name:"VSliderThumb",directives:{Ripple:lC},props:EIe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=Kl(Iue),{isRtl:d,rtlClasses:s}=n0();if(!E)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:u,disabled:b,thumbSize:i,thumbLabel:S,direction:w,isReversed:y,vertical:m,readonly:a,elevation:c,mousePressed:h,decimals:p,indexFromEnd:v}=E,_=nr(()=>b.value?void 0:c.value),{elevationClasses:O}=cb(_),{textColorClasses:C,textColorStyles:x}=ny(n),{pageup:R,pagedown:M,end:T,home:P,left:A,right:L,down:D,up:k}=Yse,I=[R,M,T,P,A,L,D,k],z=nr(()=>u.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=u.value||.1,te=(t.max-t.min)/X;if([A,L,D,k].includes(j.key)){const K=(m.value?[d.value?A:L,y.value?D:k]:v.value!==d.value?[A,k]:[L,k]).includes(j.key)?1:-1,re=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[re]}else if(j.key===P)U=t.min;else if(j.key===T)U=t.max;else{const Z=j.key===M?1:-1;U=U-Z*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ga(()=>{const j=is(v.value?100-t.position:t.position,"%");return $t("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,s.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":is(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[$t("div",{class:["v-slider-thumb__surface",C.value,O.value],style:{...x.value}},null),Kp($t("div",{class:["v-slider-thumb__ripple",C.value],style:x.value},null),[[M_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),$t(C2e,{origin:"bottom center"},{default:()=>{var U;return[Kp($t("div",{class:"v-slider-thumb__label-container"},[$t("div",{class:["v-slider-thumb__label"]},[$t("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(u.value?p.value:1)])])]),[[A4,S.value&&t.focused||S.value==="always"]])]}})])}),{}}});const PIe=gi({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Js()},"VSliderTrack"),R_e=Oa()({name:"VSliderTrack",props:PIe(),emits:{},setup(t,e){let{slots:o}=e;const f=Kl(Iue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:E,parsedTicks:d,rounded:s,showTicks:n,tickSize:u,trackColor:b,trackFillColor:i,trackSize:S,vertical:w,min:y,max:m,indexFromEnd:a}=f,{roundedClasses:c}=mg(s),{backgroundColorClasses:h,backgroundColorStyles:p}=dg(i),{backgroundColorClasses:v,backgroundColorStyles:_}=dg(b),O=nr(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),C=nr(()=>w.value?"height":"width"),x=nr(()=>({[O.value]:"0%",[C.value]:"100%"})),R=nr(()=>t.stop-t.start),M=nr(()=>({[O.value]:is(t.start,"%"),[C.value]:is(R.value,"%")})),T=nr(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((A,L)=>{var k;const D=A.value!==y.value&&A.value!==m.value?is(A.position,"%"):void 0;return $t("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=t.start&&A.position<=t.stop,"v-slider-track__tick--first":A.value===y.value,"v-slider-track__tick--last":A.value===m.value}],style:{[O.value]:D}},[(A.label||o["tick-label"])&&$t("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:A,index:L}))??A.label])])}):[]);return Ga(()=>$t("div",{class:["v-slider-track",c.value,t.class],style:[{"--v-slider-track-size":is(S.value),"--v-slider-tick-size":is(u.value)},t.style]},[$t("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!E.value||!i.value}],style:{...x.value,..._.value}},null),$t("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...p.value}},null),n.value&&$t("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),RIe=gi({...Oq(),...M_e(),...uC(),modelValue:{type:[Number,String],default:0}},"VSlider"),Due=Oa()({name:"VSlider",props:RIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),{rtlClasses:d}=n0(),s=E_e(t),n=ql(t,"modelValue",void 0,C=>s.roundValue(C??s.min.value)),{min:u,max:b,mousePressed:i,roundValue:S,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:m,position:a,hasLabels:c,readonly:h}=P_e({props:t,steps:s,onSliderStart:()=>{f("start",n.value)},onSliderEnd:C=>{let{value:x}=C;const R=S(x);n.value=R,f("end",R)},onSliderMove:C=>{let{value:x}=C;return n.value=S(x)},getActiveThumb:()=>{var C;return(C=E.value)==null?void 0:C.$el}}),{isFocused:p,focus:v,blur:_}=cC(t),O=nr(()=>a(n.value));return Ga(()=>{const C=sb.filterProps(t),x=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||c.value,"v-slider--focused":p.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},C,{focused:p.value}),{...o,prepend:x?R=>{var M,T;return $t(Ea,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?$t(wq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return $t("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[$t("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),$t(R_e,{ref:m,start:0,stop:O.value},{"tick-label":o["tick-label"]}),$t(cle,{ref:E,"aria-describedby":T.value,focused:p.value,min:u.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":P=>n.value=P,position:O.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function LIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),$t("span",{class:"v-combobox__mask"},[t.substr(e,o)]),$t("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const IIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Rue({filterKeys:["title"]}),...Pue({hideNoData:!0,returnObject:!0}),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:!1})},"VCombobox"),Bue=Oa()({name:"VCombobox",props:IIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var pe;let{emit:o,slots:f}=e;const{t:E}=ry(),d=qo(),s=Gi(!1),n=Gi(!0),u=Gi(!1),b=qo(),i=qo(),S=ql(t,"menu"),w=nr({get:()=>S.value,set:se=>{var ae;S.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(S.value=se)}}),y=Gi(-1);let m=!1;const a=nr(()=>{var se;return(se=d.value)==null?void 0:se.color}),c=nr(()=>w.value?t.closeText:t.openText),{items:h,transformIn:p,transformOut:v}=Tue(t),{textColorClasses:_,textColorStyles:O}=ny(a),C=ql(t,"modelValue",[],se=>p(Pp(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Sq(),R=nr(()=>!!(t.chips||f.chip)),M=nr(()=>R.value||!!f.selection),T=Gi(!t.multiple&&!M.value?((pe=C.value[0])==null?void 0:pe.title)??"":""),P=nr({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(C.value=[a4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(a4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),A=nr(()=>typeof t.counterValue=="function"?t.counterValue(C.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?C.value.length:P.value.length);ia(T,se=>{m?Vc(()=>m=!1):s.value&&!w.value&&(w.value=!0),o("update:search",se)}),ia(C,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=Lue(t,h,()=>n.value?"":P.value),k=nr(()=>t.hideSelected?L.value.filter(se=>!C.value.some(ae=>ae.value===se.value)):L.value),I=nr(()=>C.value.map(se=>se.value)),z=nr(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&P.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!u.value}),$=nr(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=qo(),{onListScroll:j,onListKeydown:U}=Eue(Q,d);function X(se){m=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function Z(se){$.value||(s.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(s9e(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=C.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!C.value.some(ye=>{let{value:ve}=ye;return ve===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&P.value&&(q(a4(t,P.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&C.value.length>0&&!P.value)return q(C.value[0],!1);if(~y.value){const ye=y.value;q(C.value[y.value],!1),y.value=ye>=ce-1?ce-2:ye}else se.key==="Backspace"&&!P.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ye=y.value>-1?y.value-1:ce-1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(P.value.length,P.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ye=y.value+1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(0,0))}}}function re(){var se;s.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=C.value.findIndex(ye=>t.valueComparator(ye.value,se.value)),de=ae??!~ce;if(~ce){const ye=de?[...C.value,se]:[...C.value];ye.splice(ce,1),C.value=ye}else de&&(C.value=[...C.value,se]);t.clearOnSelect&&(P.value="")}else{const ce=ae!==!1;C.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",Vc(()=>{w.value=!1,n.value=!0})}}function Y(se){s.value=!0,setTimeout(()=>{u.value=!0})}function ee(se){u.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(C.value=[])}return ia(s,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,P.value)){if(t.multiple){q(a4(t,P.value));return}if(!M.value)return;C.value.some(ce=>{let{title:de}=ce;return de===P.value})?T.value="":q(a4(t,P.value))}}),ia(w,()=>{if(!t.hideSelected&&w.value&&C.value.length){const se=k.value.findIndex(ae=>C.value.some(ce=>t.valueComparator(ce.value,ae.value)));Hu&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),ia(()=>t.items,(se,ae)=>{w.value||s.value&&!ae.length&&se.length&&(w.value=!0)}),Ga(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=C.value.length>0,ce=Ep.filterProps(t);return $t(Ep,qi({ref:d},ce,{modelValue:P.value,"onUpdate:modelValue":[de=>P.value=de,me],focused:s.value,"onUpdate:focused":de=>s.value=de,validationValue:C.externalValue,counterValue:A.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>$t(Ea,null,[$t(BO,qi({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:re},t.menuProps),{default:()=>[se&&$t(Ax,qi({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ye,ve;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ye=f["no-data"])==null?void 0:ye.call(f))??$t(Xf,{title:E(t.noDataText)},null)),$t(Mue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:we,index:Te,itemRef:Pe}=_e;const Ie=qi(we.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(we,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:we,index:Te,props:Ie}))??$t(Xf,qi(Ie,{role:"option"}),{prepend:De=>{let{isSelected:Qe}=De;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:we.value,modelValue:Qe,ripple:!1,tabindex:"-1"},null):void 0,we.props.prependAvatar&&$t(DO,{image:we.props.prependAvatar},null),we.props.prependIcon&&$t(jl,{icon:we.props.prependIcon},null)])},title:()=>{var De,Qe;return n.value?we.title:LIe(we.title,(De=D(we))==null?void 0:De.title,((Qe=P.value)==null?void 0:Qe.length)??0)}})}}),(ve=f["append-item"])==null?void 0:ve.call(f)]}})]}),C.value.map((de,ye)=>{function ve(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ve,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ve(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},we=R.value?!!f.chip:!!f.selection,Te=we?cq(R.value?f.chip({item:de,index:ye,props:_e}):f.selection({item:de,index:ye})):void 0;if(!(we&&!Te))return $t("div",{key:de.value,class:["v-combobox__selection",ye===y.value&&["v-combobox__selection--selected",_.value]],style:ye===y.value?O.value:{}},[R.value?f.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??$t("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ye0&&f.push(E),f}function BIe(t,e,o){const f=o??Eq[e.slice(-2).toUpperCase()]??0,E=new Date(t);for(;E.getDay()!==f;)E.setDate(E.getDate()-1);return E}function zIe(t,e){const o=new Date(t),f=((Eq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function L_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function I_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function NIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const FIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function D_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(FIe.test(t))return NIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const Wge=new Date(2e3,0,2);function $Ie(t,e){const o=e??Eq[t.slice(-2).toUpperCase()]??0;return u4(7).map(f=>{const E=new Date(Wge);return E.setDate(Wge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(E)})}function VIe(t,e,o,f){const E=D_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(E,e,o);let s={};switch(e){case"fullDate":s={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=E.getDate(),u=new Intl.DateTimeFormat(o,{month:"long"}).format(E);return`${n} ${u}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(E.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:s=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,s).format(E)}function UIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),E=nge(String(o.getMonth()+1),2,"0"),d=nge(String(o.getDate()),2,"0");return`${f}-${E}-${d}`}function jIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function QIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function HIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function ZIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function qIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function WIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function YIe(t){return t.getFullYear()}function XIe(t){return t.getMonth()}function GIe(t){return t.getDate()}function KIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function JIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function eDe(t){return t.getHours()}function tDe(t){return t.getMinutes()}function nDe(t){return new Date(t.getFullYear(),0,1)}function rDe(t){return new Date(t.getFullYear(),11,31)}function oDe(t,e){return mZ(t,e[0])&&sDe(t,e[1])}function iDe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function mZ(t,e){return t.getTime()>e.getTime()}function aDe(t,e){return mZ(ule(t),ule(e))}function sDe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const wDe=gi({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),B_e=Symbol.for("vuetify:datatable:expanded");function ODe(t){const e=ji(t,"expandOnClick"),o=ql(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,u){const b=new Set(o.value);u?b.add(n.value):b.delete(n.value),o.value=b}function E(n){return o.value.has(n.value)}function d(n){f(n,!E(n))}const s={expand:f,expanded:o,expandOnClick:e,isExpanded:E,toggleExpand:d};return md(B_e,s),s}function z_e(){const t=Kl(B_e);if(!t)throw new Error("foo");return t}const SDe=gi({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),N_e=Symbol.for("vuetify:data-table-group");function kDe(t){return{groupBy:ql(t,"groupBy")}}function TDe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,E=qo(new Set),d=nr(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function s(i){return E.value.has(i.id)}function n(i){const S=new Set(E.value);s(i)?S.delete(i.id):S.add(i.id),E.value=S}function u(i){function S(w){const y=[];for(const m of w.items)"type"in m&&m.type==="group"?y.push(...S(m)):y.push(m);return y}return S({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:E,groupBy:o,extractRows:u,isGroupOpen:s};return md(N_e,b),b}function F_e(){const t=Kl(N_e);if(!t)throw new Error("Missing group!");return t}function CDe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const E=XT(f.raw,e);o.has(E)||o.set(E,[]),o.get(E).push(f)}return o}function $_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const E=CDe(t,e[0]),d=[],s=e.slice(1);return E.forEach((n,u)=>{const b=e[0],i=`${f}_${b}_${u}`;d.push({depth:o,id:i,key:b,value:u,items:s.length?$_e(n,s,o+1,i):n,type:"group"})}),d}function V_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...V_e(f.items,e))):o.push(f);return o}function ADe(t,e,o){return{flatItems:nr(()=>{if(!e.value.length)return t.value;const E=$_e(t.value,e.value.map(d=>d.key));return V_e(E,o.value)})}}function MDe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:E,search:d}=t;const s=Xh("VDataTable"),n=nr(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:E.value,search:d.value}));let u=null;ia(n,()=>{R4(u,n.value)||(u&&u.search!==n.value.search&&(e.value=1),s.emit("update:options",n.value),u=n.value)},{deep:!0,immediate:!0})}const EDe=gi({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),U_e=Symbol.for("vuetify:data-table-pagination");function PDe(t){const e=ql(t,"page",void 0,f=>+(f??1)),o=ql(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function RDe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,E=nr(()=>o.value===-1?0:o.value*(e.value-1)),d=nr(()=>o.value===-1?f.value:Math.min(f.value,E.value+o.value)),s=nr(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));Gp(()=>{e.value>s.value&&(e.value=s.value)});function n(w){o.value=w,e.value=1}function u(){e.value=ug(e.value+1,1,s.value)}function b(){e.value=ug(e.value-1,1,s.value)}function i(w){e.value=ug(w,1,s.value)}const S={page:e,itemsPerPage:o,startIndex:E,stopIndex:d,pageCount:s,itemsLength:f,nextPage:u,prevPage:b,setPage:i,setItemsPerPage:n};return md(U_e,S),S}function LDe(){const t=Kl(U_e);if(!t)throw new Error("Missing pagination!");return t}function IDe(t){const e=Xh("usePaginatedItems"),{items:o,startIndex:f,stopIndex:E,itemsPerPage:d}=t,s=nr(()=>d.value<=0?o.value:o.value.slice(f.value,E.value));return ia(s,n=>{e.emit("update:currentItems",n)}),{paginatedItems:s}}const DDe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},j_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return j_e.select({items:o,value:e,selected:f})}},Q_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return Q_e.select({items:o,value:e,selected:f})}},BDe=gi({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:R4}},"DataTable-select"),H_e=Symbol.for("vuetify:data-table-selection");function zDe(t,e){let{allItems:o,currentPage:f}=e;const E=ql(t,"modelValue",t.modelValue,h=>new Set(Pp(h).map(p=>{var v;return((v=o.value.find(_=>t.valueComparator(p,_.value)))==null?void 0:v.value)??p})),h=>[...h.values()]),d=nr(()=>o.value.filter(h=>h.selectable)),s=nr(()=>f.value.filter(h=>h.selectable)),n=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return DDe;case"all":return Q_e;case"page":default:return j_e}});function u(h){return Pp(h).every(p=>E.value.has(p.value))}function b(h){return Pp(h).some(p=>E.value.has(p.value))}function i(h,p){const v=n.value.select({items:h,value:p,selected:new Set(E.value)});E.value=v}function S(h){i([h],!u([h]))}function w(h){const p=n.value.selectAll({value:h,allItems:d.value,currentPage:s.value,selected:new Set(E.value)});E.value=p}const y=nr(()=>E.value.size>0),m=nr(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:s.value});return!!h.length&&u(h)}),a=nr(()=>n.value.showSelectAll),c={toggleSelect:S,select:i,selectAll:w,isSelected:u,isSomeSelected:b,someSelected:y,allSelected:m,showSelectAll:a};return md(H_e,c),c}function Pq(){const t=Kl(H_e);if(!t)throw new Error("Missing selection!");return t}const NDe=gi({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Z_e=Symbol.for("vuetify:data-table-sort");function FDe(t){const e=ql(t,"sortBy"),o=ji(t,"mustSort"),f=ji(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function $De(t){const{sortBy:e,mustSort:o,multiSort:f,page:E}=t,d=u=>{if(u.key==null)return;let b=e.value.map(S=>({...S}))??[];const i=b.find(S=>S.key===u.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(S=>S.key!==u.key):i.order="desc":f.value?b=[...b,{key:u.key,order:"asc"}]:b=[{key:u.key,order:"asc"}],e.value=b,E&&(E.value=1)};function s(u){return!!e.value.find(b=>b.key===u.key)}const n={sortBy:e,toggleSort:d,isSorted:s};return md(Z_e,n),n}function q_e(){const t=Kl(Z_e);if(!t)throw new Error("Missing sort!");return t}function VDe(t,e,o,f){const E=ry();return{sortedItems:nr(()=>{var s,n;return o.value.length?UDe(e.value,o.value,E.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(s=f==null?void 0:f.sortFunctions)==null?void 0:s.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function UDe(t,e,o,f){const E=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(s=>[s,f!=null&&f.transform?f.transform(s):s]).sort((s,n)=>{var u,b;for(let i=0;ip!=null?p.toString().toLocaleLowerCase():p),m!==a)return QQ(m)&&QQ(a)?0:QQ(m)?-1:QQ(a)?1:!isNaN(m)&&!isNaN(a)?Number(m)-Number(a):E.compare(m,a)}}return 0}).map(s=>{let[n]=s;return n})}function jDe(){const t=qo([]);gve(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const QDe=gi({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Hl,default:"$first"},prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},lastIcon:{type:Hl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...B_(),...Js(),...Q1(),...iy(),...Pm(),...aC(),...tf({tag:"nav"}),...gd(),...Lx({variant:"text"})},"VPagination"),Gge=Oa()({name:"VPagination",props:QDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=ql(t,"modelValue"),{t:d,n:s}=ry(),{isRtl:n}=n0(),{themeClasses:u}=th(t),{width:b}=L4(),i=Gi(-1);ab(void 0,{scoped:!0});const{resizeRef:S}=T4(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],P=M.querySelector(".v-pagination__list > *");if(!P)return;const A=T.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;i.value=a(A,L)}),w=nr(()=>parseInt(t.length,10)),y=nr(()=>parseInt(t.start,10)),m=nr(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const c=nr(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[E.value];if(w.value<=m.value)return u4(w.value,y.value);const R=m.value%2===0,M=R?m.value/2:Math.floor(m.value/2),T=R?M:M+1,P=w.value-M;if(T-E.value>=0)return[...u4(Math.max(1,m.value-1),y.value),t.ellipsis,w.value];if(E.value-P>=(R?1:0)){const A=m.value-1,L=w.value-A+y.value;return[y.value,t.ellipsis,...u4(A,L)]}else{const A=Math.max(1,m.value-3),L=A===1?E.value:E.value-Math.ceil(A/2)+y.value;return[y.value,t.ellipsis,...u4(A,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),E.value=M,T&&f(T,M)}const{refs:p,updateRef:v}=jDe();ab({VPaginationBtn:{color:ji(t,"color"),border:ji(t,"border"),density:ji(t,"density"),size:ji(t,"size"),variant:ji(t,"variant"),rounded:ji(t,"rounded"),elevation:ji(t,"elevation")}});const _=nr(()=>c.value.map((R,M)=>{const T=P=>v(P,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const P=R===E.value;return{isActive:P,key:R,page:s(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:P?t.activeColor:t.color,"aria-current":P,"aria-label":d(P?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:A=>h(A,R)}}}})),O=nr(()=>{const R=!!t.disabled||E.value<=y.value,M=!!t.disabled||E.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,E.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,E.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function C(){var M;const R=E.value-y.value;(M=p.value[R])==null||M.$el.focus()}function x(R){R.key===Yse.left&&!t.disabled&&E.value>+t.start?(E.value=E.value-1,Vc(C)):R.key===Yse.right&&!t.disabled&&E.value$t(t.tag,{ref:S,class:["v-pagination",u.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[$t("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&$t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(O.value.first):$t(es,qi({_as:"VPaginationBtn"},O.value.first),null)]),$t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(O.value.prev):$t(es,qi({_as:"VPaginationBtn"},O.value.prev),null)]),_.value.map((R,M)=>$t("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):$t(es,qi({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),$t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(O.value.next):$t(es,qi({_as:"VPaginationBtn"},O.value.next),null)]),t.showFirstLastPage&&$t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(O.value.last):$t(es,qi({_as:"VPaginationBtn"},O.value.last),null)])])]})),{}}}),W_e=gi({prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},firstIcon:{type:Hl,default:"$first"},lastIcon:{type:Hl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Kge=Oa()({name:"VDataTableFooter",props:W_e(),setup(t,e){let{slots:o}=e;const{t:f}=ry(),{page:E,pageCount:d,startIndex:s,stopIndex:n,itemsLength:u,itemsPerPage:b,setItemsPerPage:i}=LDe(),S=nr(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ga(()=>{var y;const w=Gge.filterProps(t);return $t("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),$t("div",{class:"v-data-table-footer__items-per-page"},[$t("span",null,[f(t.itemsPerPageText)]),$t(DM,{items:S.value,modelValue:b.value,"onUpdate:modelValue":m=>i(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),$t("div",{class:"v-data-table-footer__info"},[$t("div",null,[f(t.pageText,u.value?s.value+1:0,n.value,u.value)])]),$t("div",{class:"v-data-table-footer__pagination"},[$t(Gge,qi({modelValue:E.value,"onUpdate:modelValue":m=>E.value=m,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),gZ=U9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return $t(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:is(t.height),width:is(t.width),maxWidth:is(t.maxWidth),left:is(t.fixedOffset||null)}},{default:()=>{var E;return[(E=o.default)==null?void 0:E.call(o)]}})}),HDe=gi({headers:Array},"DataTable-header"),Y_e=Symbol.for("vuetify:data-table-headers"),X_e={title:"",sortable:!1},ZDe={...X_e,width:48};function qDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let E=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),E=!0;break}E||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let E=0;Ee.shift()}}function fle(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)fle(o,e);return e}function G_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&G_e(o.children,e);return e}function WDe(t){if(t.key){if(t.key==="data-table-group")return X_e;if(["data-table-expand","data-table-select"].includes(t.key))return ZDe}}function zue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>zue(o,e+1))):e}function YDe(t){let e=!1;function o(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(s&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return s;if(d.children){d.fixedOffset=s;for(const n of d.children)s=f(n,s)}else d.fixed&&(d.fixedOffset=s,s+=parseFloat(d.width||"0")||0);return s}let E=0;for(const d of t)E=f(d,E)}function XDe(t,e){const o=[];let f=0;const E=qDe(t);for(;E.size()>0;){let s=E.count();const n=[];let u=1;for(;s>0;){const{element:b,priority:i}=E.dequeue(),S=e-f-zue(b);if(n.push({...b,rowspan:S??1,colspan:b.children?fle(b).length:1}),b.children)for(const w of b.children){const y=i%1+u/Math.pow(10,f+2);E.enqueue(w,f+S+y)}u+=1,s-=1}f+=1,o.push(n)}return{columns:t.map(s=>fle(s)).flat(),headers:o}}function K_e(t){const e=[];for(const o of t){const f={...WDe(o),...o},E=f.key??(typeof f.value=="string"?f.value:null),d=f.value??E??null,s={...f,key:E,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?K_e(f.children):void 0};e.push(s)}return e}function GDe(t,e){const o=qo([]),f=qo([]),E=qo({}),d=qo({}),s=qo({});Gp(()=>{var a,c,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(p=>({key:p,title:A_(p)}))).slice(),i=G_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(c=e==null?void 0:e.showSelect)!=null&&c.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const S=K_e(b);YDe(S);const w=Math.max(...S.map(p=>zue(p)))+1,y=XDe(S,w);o.value=y.headers,f.value=y.columns;const m=y.headers.flat(1);for(const p of m)p.key&&(p.sortable&&(p.sort&&(E.value[p.key]=p.sort),p.sortRaw&&(d.value[p.key]=p.sortRaw)),p.filter&&(s.value[p.key]=p.filter))});const n={headers:o,columns:f,sortFunctions:E,sortRawFunctions:d,filterFunctions:s};return md(Y_e,n),n}function Rq(){const t=Kl(Y_e);if(!t)throw new Error("Missing headers!");return t}const J_e=gi({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Hl,default:"$sortAsc"},sortDescIcon:{type:Hl,default:"$sortDesc"},headerProps:{type:Object},...wD(),...gq()},"VDataTableHeaders"),Jge=Oa()({name:"VDataTableHeaders",props:J_e(),setup(t,e){let{slots:o}=e;const{t:f}=ry(),{toggleSort:E,sortBy:d,isSorted:s}=q_e(),{someSelected:n,allSelected:u,selectAll:b,showSelectAll:i}=Pq(),{columns:S,headers:w}=Rq(),{loaderClasses:y}=_D(t);function m(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?is(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:c,backgroundColorStyles:h}=dg(t,"color"),{displayClasses:p,mobile:v}=L4(t),_=nr(()=>({headers:w.value,columns:S.value,toggleSort:E,isSorted:s,sortBy:d.value,someSelected:n.value,allSelected:u.value,selectAll:b,getSortIcon:a})),O=nr(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},p.value,y.value]),C=R=>{let{column:M,x:T,y:P}=R;const A=M.key==="data-table-select"||M.key==="data-table-expand",L=qi(t.headerProps??{},M.headerProps??{});return $t(gZ,qi({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":s(M),"v-data-table__th--fixed":M.fixed},...O.value],style:{width:is(M.width),minWidth:is(M.minWidth),maxWidth:is(M.maxWidth),...m(M,P)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>E(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:A},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:s,toggleSort:E,sortBy:d.value,someSelected:n.value,allSelected:u.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&$t(RM,{modelValue:u.value,indeterminate:n.value&&!u.value,"onUpdate:modelValue":b},null)):$t("div",{class:"v-data-table-header__content"},[$t("span",null,[M.title]),M.sortable&&!t.disableSort&&$t(jl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&s(M)&&$t("div",{key:"badge",class:["v-data-table-header__sort-badge",...c.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=qi(t.headerProps??{}??{}),M=nr(()=>S.value.filter(P=>(P==null?void 0:P.sortable)&&!t.disableSort)),T=nr(()=>{if(S.value.find(A=>A.key==="data-table-select")!=null)return u.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return $t(gZ,qi({tag:"th",class:[...O.value],colspan:w.value.length+1},R),{default:()=>[$t("div",{class:"v-data-table-header__content"},[$t(DM,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!u.value)},{...o,chip:P=>{var A;return $t(LM,{onClick:(A=P.item.raw)!=null&&A.sortable?()=>E(P.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[P.item.title,$t(jl,{class:["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(P.item.raw),size:"small"},null)]})}})])]})};Ga(()=>v.value?$t("tr",null,[$t(x,null,null)]):$t(Ea,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>$t("tr",null,[R.map((T,P)=>$t(C,{column:T,x:P,y:M},null))])),t.loading&&$t("tr",{class:"v-data-table-progress"},[$t("th",{colspan:S.value.length},[$t(vq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),KDe=gi({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),JDe=Oa()({name:"VDataTableGroupHeaderRow",props:KDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:E,extractRows:d}=F_e(),{isSelected:s,isSomeSelected:n,select:u}=Pq(),{columns:b}=Rq(),i=nr(()=>d([t.item]));return()=>$t("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(S=>{var w,y;if(S.key==="data-table-group"){const m=f(t.item)?"$expand":"$next",a=()=>E(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:m,onClick:a}}))??$t(gZ,{class:"v-data-table-group-header-row__column"},{default:()=>[$t(es,{size:"small",variant:"text",icon:m,onClick:a},null),$t("span",null,[t.item.value]),$t("span",null,[Ua("("),i.value.length,Ua(")")])]})}if(S.key==="data-table-select"){const m=s(i.value),a=n(i.value)&&!m,c=h=>u(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:m,indeterminate:a,"onUpdate:modelValue":c}}))??$t("td",null,[$t(RM,{modelValue:m,indeterminate:a,"onUpdate:modelValue":c},null)])}return $t("td",null,null)})])}}),eBe=gi({index:Number,item:Object,cellProps:[Object,Function],onClick:fg(),onContextmenu:fg(),onDblclick:fg(),...wD()},"VDataTableRow"),tBe=Oa()({name:"VDataTableRow",props:eBe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:E}=L4(t,"v-data-table__tr"),{isSelected:d,toggleSelect:s,someSelected:n,allSelected:u,selectAll:b}=Pq(),{isExpanded:i,toggleExpand:S}=z_e(),{toggleSort:w,sortBy:y,isSorted:m}=q_e(),{columns:a}=Rq();Ga(()=>$t("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((c,h)=>{const p=t.item,v=`item.${c.key}`,_=`header.${c.key}`,O={index:t.index,item:p.raw,internalItem:p,value:XT(p.columns,c.key),column:c,isSelected:d,toggleSelect:s,isExpanded:i,toggleExpand:S},C={column:c,selectAll:b,isSorted:m,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:u.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value,column:c}):t.cellProps,R=typeof c.cellProps=="function"?c.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value}):c.cellProps;return $t(gZ,qi({align:c.align,class:{"v-data-table__td--expanded-row":c.key==="data-table-expand","v-data-table__td--select-row":c.key==="data-table-select"},fixed:c.fixed,fixedOffset:c.fixedOffset,lastFixed:c.lastFixed,maxWidth:E.value?void 0:c.maxWidth,noPadding:c.key==="data-table-select"||c.key==="data-table-expand",nowrap:c.nowrap,width:E.value?void 0:c.width},x,R),{default:()=>{var T,P,A,L,D;if(o[v]&&!E.value)return(T=o[v])==null?void 0:T.call(o,O);if(c.key==="data-table-select")return((P=o["item.data-table-select"])==null?void 0:P.call(o,O))??$t(RM,{disabled:!p.selectable,modelValue:d([p]),onClick:RH(()=>s(p),["stop"])},null);if(c.key==="data-table-expand")return((A=o["item.data-table-expand"])==null?void 0:A.call(o,O))??$t(es,{icon:i(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:RH(()=>S(p),["stop"])},null);const M=Dl(O.value);return E.value?$t(Ea,null,[$t("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,C))??c.title]),$t("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,O))??M])]):M}})})]))}}),ewe=gi({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...wD()},"VDataTableRows"),e0e=Oa()({name:"VDataTableRows",inheritAttrs:!1,props:ewe(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:E}=Rq(),{expandOnClick:d,toggleExpand:s,isExpanded:n}=z_e(),{isSelected:u,toggleSelect:b}=Pq(),{toggleGroup:i,isGroupOpen:S}=F_e(),{t:w}=ry(),{mobile:y}=L4(t);return Ga(()=>{var m,a;return t.loading&&(!t.items.length||f.loading)?$t("tr",{class:"v-data-table-rows-loading",key:"loading"},[$t("td",{colspan:E.value.length},[((m=f.loading)==null?void 0:m.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?$t("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[$t("td",{colspan:E.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):$t(Ea,null,[t.items.map((c,h)=>{var _;if(c.type==="group"){const O={index:h,item:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b,toggleGroup:i,isGroupOpen:S};return f["group-header"]?f["group-header"](O):$t(JDe,qi({key:`group-header_${c.id}`,item:c},bge(o,":group-header",()=>O)),f)}const p={index:h,item:c.raw,internalItem:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b},v={...p,props:qi({key:`item_${c.key??c.index}`,onClick:d.value?()=>{s(c)}:void 0,index:h,item:c,cellProps:t.cellProps,mobile:y.value},bge(o,":row",()=>p),typeof t.rowProps=="function"?t.rowProps({item:p.item,index:p.index,internalItem:p.internalItem}):t.rowProps)};return $t(Ea,{key:v.props.key},[f.item?f.item(v):$t(tBe,v.props,f),n(c)&&((_=f["expanded-row"])==null?void 0:_.call(f,p))])})])}),{}}});const twe=gi({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Js(),...Q1(),...tf(),...gd()},"VTable"),t0e=Oa()({name:"VTable",props:twe(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:E}=th(t),{densityClasses:d}=Rx(t);return Ga(()=>$t(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},E.value,d.value,t.class],style:t.style},{default:()=>{var s,n,u;return[(s=o.top)==null?void 0:s.call(o),o.default?$t("div",{class:"v-table__wrapper",style:{height:is(t.height)}},[$t("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(u=o.bottom)==null?void 0:u.call(o)]}})),{}}}),nBe=gi({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function rBe(t,e,o,f){const E=t.returnObject?e:N1(e,t.itemValue),d=N1(e,t.itemSelectable,!0),s=f.reduce((n,u)=>(u.key!=null&&(n[u.key]=N1(e,u.value)),n),{});return{type:"item",key:t.returnObject?N1(e,t.itemValue):E,index:o,value:E,selectable:d,columns:s,raw:e}}function oBe(t,e,o){return e.map((f,E)=>rBe(t,f,E,o))}function iBe(t,e){return{items:nr(()=>oBe(t,t.items,e.value))}}const aBe=gi({...ewe(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...wDe(),...SDe(),...HDe(),...nBe(),...BDe(),...NDe(),...J_e(),...twe()},"DataTable"),sBe=gi({...EDe(),...aBe(),...Rue(),...W_e()},"VDataTable"),Lq=Oa()({name:"VDataTable",props:sBe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:E}=kDe(t),{sortBy:d,multiSort:s,mustSort:n}=FDe(t),{page:u,itemsPerPage:b}=PDe(t),{disableSort:i}=CM(t),{columns:S,headers:w,sortFunctions:y,sortRawFunctions:m,filterFunctions:a}=GDe(t,{groupBy:E,showSelect:ji(t,"showSelect"),showExpand:ji(t,"showExpand")}),{items:c}=iBe(t,S),h=ji(t,"search"),{filteredItems:p}=Lue(t,c,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=$De({sortBy:d,multiSort:s,mustSort:n,page:u}),{sortByWithGroups:_,opened:O,extractRows:C,isGroupOpen:x,toggleGroup:R}=TDe({groupBy:E,sortBy:d,disableSort:i}),{sortedItems:M}=VDe(t,p,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:m}),{flatItems:T}=ADe(M,E,O),P=nr(()=>T.value.length),{startIndex:A,stopIndex:L,pageCount:D,setItemsPerPage:k}=RDe({page:u,itemsPerPage:b,itemsLength:P}),{paginatedItems:I}=IDe({items:T,startIndex:A,stopIndex:L,itemsPerPage:b}),z=nr(()=>C(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=zDe(t,{allItems:c,currentPage:z}),{isExpanded:Z,toggleExpand:K}=ODe(t);MDe({page:u,itemsPerPage:b,sortBy:d,groupBy:E,search:h}),ab({VDataTableRows:{hideNoData:ji(t,"hideNoData"),noDataText:ji(t,"noDataText"),loading:ji(t,"loading"),loadingText:ji(t,"loadingText")}});const re=nr(()=>({page:u.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:Z,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:S.value,headers:w.value}));return Ga(()=>{const q=Kge.filterProps(t),Y=Jge.filterProps(t),ee=e0e.filterProps(t),me=t0e.filterProps(t);return $t(t0e,qi({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var pe;return(pe=f.top)==null?void 0:pe.call(f,re.value)},default:()=>{var pe,se,ae,ce,de,ye;return f.default?f.default(re.value):$t(Ea,null,[(pe=f.colgroup)==null?void 0:pe.call(f,re.value),!t.hideDefaultHeader&&$t("thead",{key:"thead"},[$t(Jge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,re.value),!t.hideDefaultBody&&$t("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,re.value),f.body?f.body(re.value):$t(e0e,qi(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,re.value)]),(de=f.tbody)==null?void 0:de.call(f,re.value),(ye=f.tfoot)==null?void 0:ye.call(f,re.value)])},bottom:()=>f.bottom?f.bottom(re.value):!t.hideDefaultFooter&&$t(Ea,null,[$t(vM,null,null),$t(Kge,q,{prepend:f["footer.prepend"]})])})}),{}}});const lBe=gi({fluid:{type:Boolean,default:!1},...Js(),...tf()},"VContainer"),yM=Oa()({name:"VContainer",props:lBe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=n0();return Ga(()=>$t(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),nwe=(()=>kq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),rwe=(()=>kq.reduce((t,e)=>{const o="offset"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),owe=(()=>kq.reduce((t,e)=>{const o="order"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),n0e={col:Object.keys(nwe),offset:Object.keys(rwe),order:Object.keys(owe)};function cBe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const E=e.replace(t,"");f+=`-${E}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const uBe=["auto","start","end","center","baseline","stretch"],fBe=gi({cols:{type:[Boolean,String,Number],default:!1},...nwe,offset:{type:[String,Number],default:null},...rwe,order:{type:[String,Number],default:null},...owe,alignSelf:{type:String,default:null,validator:t=>uBe.includes(t)},...Js(),...tf()},"VCol"),QT=Oa()({name:"VCol",props:fBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in n0e)n0e[d].forEach(n=>{const u=t[n],b=cBe(d,n,u);b&&E.push(b)});const s=E.some(n=>n.startsWith("v-col-"));return E.push({"v-col":!s||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),E});return()=>{var E;return U1(t.tag,{class:[f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),Nue=["start","end","center"],iwe=["space-between","space-around","space-evenly"];function Fue(t,e){return kq.reduce((o,f)=>{const E=t+A_(f);return o[E]=e(),o},{})}const dBe=[...Nue,"baseline","stretch"],awe=t=>dBe.includes(t),swe=Fue("align",()=>({type:String,default:null,validator:awe})),hBe=[...Nue,...iwe],lwe=t=>hBe.includes(t),cwe=Fue("justify",()=>({type:String,default:null,validator:lwe})),pBe=[...Nue,...iwe,"stretch"],uwe=t=>pBe.includes(t),fwe=Fue("alignContent",()=>({type:String,default:null,validator:uwe})),r0e={align:Object.keys(swe),justify:Object.keys(cwe),alignContent:Object.keys(fwe)},mBe={align:"align",justify:"justify",alignContent:"align-content"};function gBe(t,e,o){let f=mBe[t];if(o!=null){if(e){const E=e.replace(t,"");f+=`-${E}`}return f+=`-${o}`,f.toLowerCase()}}const vBe=gi({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:awe},...swe,justify:{type:String,default:null,validator:lwe},...cwe,alignContent:{type:String,default:null,validator:uwe},...fwe,...Js(),...tf()},"VRow"),Iq=Oa()({name:"VRow",props:vBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in r0e)r0e[d].forEach(s=>{const n=t[s],u=gBe(d,s,n);u&&E.push(u)});return E.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),E});return()=>{var E;return U1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),BM=uq("v-spacer","div","VSpacer");const XI=Symbol.for("vuetify:v-expansion-panel"),dwe=gi({...Js(),...S_e()},"VExpansionPanelText"),vZ=Oa()({name:"VExpansionPanelText",props:dwe(),setup(t,e){let{slots:o}=e;const f=Kl(XI);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:E,onAfterLeave:d}=k_e(t,f.isSelected);return Ga(()=>$t(vue,{onAfterLeave:d},{default:()=>{var s;return[Kp($t("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&E.value&&$t("div",{class:"v-expansion-panel-text__wrapper"},[(s=o.default)==null?void 0:s.call(o)])]),[[A4,f.isSelected.value]])]}})),{}}}),hwe=gi({color:String,expandIcon:{type:Hl,default:"$expand"},collapseIcon:{type:Hl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Js()},"VExpansionPanelTitle"),yZ=Oa()({name:"VExpansionPanelTitle",directives:{Ripple:lC},props:hwe(),setup(t,e){let{slots:o}=e;const f=Kl(XI);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"color"),s=nr(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=nr(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ga(()=>{var u;return Kp($t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},E.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[$t("span",{class:"v-expansion-panel-title__overlay"},null),(u=o.default)==null?void 0:u.call(o,s.value),!t.hideActions&&$t(ef,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[$t("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,s.value))??$t(jl,null,null)])]}})]),[[M_("ripple"),t.ripple]])}),{}}}),pwe=gi({title:String,text:String,bgColor:String,...iy(),...xue(),...Pm(),...tf(),...hwe(),...dwe()},"VExpansionPanel"),mwe=Oa()({name:"VExpansionPanel",props:pwe(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=_ue(t,XI),{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"bgColor"),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),u=nr(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=nr(()=>f.group.items.value.reduce((w,y,m)=>(f.group.selected.value.includes(y.id)&&w.push(m),w),[])),i=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),S=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return md(XI,f),Ga(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),m=yZ.filterProps(t),a=vZ.filterProps(t);return $t(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":S.value,"v-expansion-panel--disabled":u.value},n.value,E.value,t.class],style:[d.value,t.style]},{default:()=>[$t("div",{class:["v-expansion-panel__shadow",...s.value]},null),$t(ef,{defaults:{VExpansionPanelTitle:{...m},VExpansionPanelText:{...a}}},{default:()=>{var c;return[y&&$t(yZ,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&$t(vZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(c=o.default)==null?void 0:c.call(o)]}})]})}),{groupItem:f}}}),yBe=["default","accordion","inset","popout"],bBe=gi({flat:Boolean,...dq(),...sue(pwe(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gd(),...Js(),...tf(),variant:{type:String,default:"default",validator:t=>yBe.includes(t)}},"VExpansionPanels"),gwe=Oa()({name:"VExpansionPanels",props:bBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:E}=hq(t,XI),{themeClasses:d}=th(t),s=nr(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ab({VExpansionPanel:{bgColor:ji(t,"bgColor"),collapseIcon:ji(t,"collapseIcon"),color:ji(t,"color"),eager:ji(t,"eager"),elevation:ji(t,"elevation"),expandIcon:ji(t,"expandIcon"),focusable:ji(t,"focusable"),hideActions:ji(t,"hideActions"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),rounded:ji(t,"rounded"),static:ji(t,"static")}}),Ga(()=>$t(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,s.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:E,next:f})]}})),{next:f,prev:E}}});const xBe=gi({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},...uC({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Pp(t).every(e=>e!=null&&typeof e=="object")},...Tq({clearable:!0})},"VFileInput"),$ue=Oa()({name:"VFileInput",inheritAttrs:!1,props:xBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=ry(),s=ql(t,"modelValue",t.modelValue,M=>Pp(M),M=>t.multiple||Array.isArray(t.modelValue)?M:M[0]??null),{isFocused:n,focus:u,blur:b}=cC(t),i=nr(()=>typeof t.showSize!="boolean"?t.showSize:void 0),S=nr(()=>(s.value??[]).reduce((M,T)=>{let{size:P=0}=T;return M+P},0)),w=nr(()=>rge(S.value,i.value)),y=nr(()=>(s.value??[]).map(M=>{const{name:T="",size:P=0}=M;return t.showSize?`${T} (${rge(P,i.value)})`:T})),m=nr(()=>{var T;const M=((T=s.value)==null?void 0:T.length)??0;return t.showSize?d(t.counterSizeString,M,w.value):d(t.counterString,M)}),a=qo(),c=qo(),h=qo(),p=nr(()=>n.value||t.active),v=nr(()=>["plain","underlined"].includes(t.variant));function _(){var M;h.value!==document.activeElement&&((M=h.value)==null||M.focus()),n.value||u()}function O(M){var T;(T=h.value)==null||T.click()}function C(M){f("mousedown:control",M)}function x(M){var T;(T=h.value)==null||T.click(),f("click:control",M)}function R(M){M.stopPropagation(),_(),Vc(()=>{s.value=[],cue(t["onClick:clear"],M)})}return ia(s,M=>{(!Array.isArray(M)||!M.length)&&h.value&&(h.value.value="")}),Ga(()=>{const M=!!(E.counter||t.counter),T=!!(M||E.details),[P,A]=yD(o),{modelValue:L,...D}=sb.filterProps(t),k=Aue(t);return $t(sb,qi({ref:a,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":v.value},t.class],style:t.style,"onClick:prepend":O},P,D,{centerAffix:!v.value,focused:n.value}),{...E,default:I=>{let{id:z,isDisabled:$,isDirty:Q,isReadonly:j,isValid:U}=I;return $t(Cq,qi({ref:c,"prepend-icon":t.prependIcon,onMousedown:C,onClick:x,"onClick:clear":R,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},k,{id:z.value,active:p.value||Q.value,dirty:Q.value||t.dirty,disabled:$.value,focused:n.value,error:U.value===!1}),{...E,default:X=>{var K;let{props:{class:te,...Z}}=X;return $t(Ea,null,[$t("input",qi({ref:h,type:"file",readonly:j.value,disabled:$.value,multiple:t.multiple,name:t.name,onClick:re=>{re.stopPropagation(),j.value&&re.preventDefault(),_()},onChange:re=>{if(!re.target)return;const q=re.target;s.value=[...q.files??[]]},onFocus:_,onBlur:b},Z,A),null),$t("div",{class:te},[!!((K=s.value)!=null&&K.length)&&!t.hideInput&&(E.selection?E.selection({fileNames:y.value,totalBytes:S.value,totalBytesReadable:w.value}):t.chips?y.value.map(re=>$t(LM,{key:re,size:"small",text:re},null)):y.value.join(", "))])])}})},details:T?I=>{var z,$;return $t(Ea,null,[(z=E.details)==null?void 0:z.call(E,I),M&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:!!(($=s.value)!=null&&$.length),value:m.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},a,c,h)}});const _Be=gi({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...B_(),...Js(),...iy(),...pue(),...Pm(),...tf({tag:"footer"}),...gd()},"VFooter"),wBe=Oa()({name:"VFooter",props:_Be(),setup(t,e){let{slots:o}=e;const f=qo(),E=Gi(),{themeClasses:d}=th(t),{backgroundColorClasses:s,backgroundColorStyles:n}=dg(ji(t,"color")),{borderClasses:u}=$O(t),{elevationClasses:b}=cb(t),{roundedClasses:i}=mg(t),S=Gi(32),{resizeRef:w}=T4(m=>{m.length&&(S.value=m[0].target.clientHeight)}),y=nr(()=>t.height==="auto"?S.value:parseInt(t.height,10));return $1(()=>t.app,()=>{const m=mue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:nr(()=>"bottom"),layoutSize:y,elementSize:nr(()=>t.height==="auto"?void 0:y.value),active:nr(()=>t.app),absolute:ji(t,"absolute")});Gp(()=>{f.value=m.layoutItemStyles.value,E.value=m.layoutIsReady})}),Ga(()=>$t(t.tag,{ref:w,class:["v-footer",d.value,s.value,u.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:is(t.height)},t.style]},o)),t.app?E.value:{}}}),OBe=gi({...Js(),...KRe()},"VForm"),SBe=Oa()({name:"VForm",props:OBe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=JRe(t),d=qo();function s(u){u.preventDefault(),E.reset()}function n(u){const b=u,i=E.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(S=>{var y;let{valid:w}=S;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ga(()=>{var u;return $t("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:s,onSubmit:n},[(u=o.default)==null?void 0:u.call(o,E)])}),Ix(E,d)}});const kBe=gi({scrollable:Boolean,...Js(),...I_(),...tf({tag:"main"})},"VMain"),TBe=Oa()({name:"VMain",props:kBe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=D_(t),{mainStyles:E,layoutIsReady:d}=_2e(),{ssrBootStyles:s}=fq();return Ga(()=>$t(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[E.value,s.value,f.value,t.style]},{default:()=>{var n,u;return[t.scrollable?$t("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(u=o.default)==null?void 0:u.call(o)]}})),d}});function CBe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const E=Gi(!1),d=Gi(0),s=nr(()=>{const b=typeof E.value=="boolean"?"top":E.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,E.value?{[b]:is(d.value)}:{top:f.value.top}]});pg(()=>{ia(o,b=>{b?window.addEventListener("scroll",u,{passive:!0}):window.removeEventListener("scroll",u)},{immediate:!0})}),Em(()=>{window.removeEventListener("scroll",u)});let n=0;function u(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),S=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-S),y=i.height+Math.max(d.value,S)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=o0e(e),E=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(E-f)*Math.abs(E),o===t.length-1&&(e*=.5)}return o0e(e)*1e3}function EBe(){const t={};function e(E){Array.from(E.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new u9e(MBe))).push([E.timeStamp,d])})}function o(E){Array.from(E.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(E){var b;const d=(b=t[E])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${E}`);const s=d[0],n=[],u=[];for(const i of d){if(s[0]-i[0]>ABe)break;n.push({t:i[0],d:i[1].clientX}),u.push({t:i[0],d:i[1].clientY})}return{x:i0e(n),y:i0e(u),get direction(){const{x:i,y:S}=this,[w,y]=[Math.abs(i),Math.abs(S)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&S>=0?"down":y>w&&S<=0?"up":PBe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function PBe(){throw new Error}function RBe(t){let{el:e,isActive:o,isTemporary:f,width:E,touchless:d,position:s}=t;pg(()=>{window.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),Em(()=>{window.removeEventListener("touchstart",p),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=nr(()=>["left","right"].includes(s.value)),{addMovement:u,endTouch:b,getVelocity:i}=EBe();let S=!1;const w=Gi(!1),y=Gi(0),m=Gi(0);let a;function c(C,x){return(s.value==="left"?C:s.value==="right"?document.documentElement.clientWidth-C:s.value==="top"?C:s.value==="bottom"?document.documentElement.clientHeight-C:E8())-(x?E.value:0)}function h(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=s.value==="left"?(C-m.value)/E.value:s.value==="right"?(document.documentElement.clientWidth-C-m.value)/E.value:s.value==="top"?(C-m.value)/E.value:s.value==="bottom"?(document.documentElement.clientHeight-C-m.value)/E.value:E8();return x?Math.max(0,Math.min(1,R)):R}function p(C){if(d.value)return;const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY,M=25,T=s.value==="left"?xdocument.documentElement.clientWidth-M:s.value==="top"?Rdocument.documentElement.clientHeight-M:E8(),P=o.value&&(s.value==="left"?xdocument.documentElement.clientWidth-E.value:s.value==="top"?Rdocument.documentElement.clientHeight-E.value:E8());(T||P||o.value&&f.value)&&(a=[x,R],m.value=c(n.value?x:R,o.value),y.value=h(n.value?x:R),S=m.value>-20&&m.value<80,b(C),u(C))}function v(C){const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY;if(S){if(!C.cancelable){S=!1;return}const T=Math.abs(x-a[0]),P=Math.abs(R-a[1]);(n.value?T>P&&T>3:P>T&&P>3)?(w.value=!0,S=!1):(n.value?P:T)>3&&(S=!1)}if(!w.value)return;C.preventDefault(),u(C);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?m.value=c(n.value?x:R,!0):M<0&&(m.value=c(n.value?x:R,!1))}function _(C){if(S=!1,!w.value)return;u(C),w.value=!1;const x=i(C.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||E8()):o.value=y.value>.5}const O=nr(()=>w.value?{transform:s.value==="left"?`translateX(calc(-100% + ${y.value*E.value}px))`:s.value==="right"?`translateX(calc(100% - ${y.value*E.value}px))`:s.value==="top"?`translateY(calc(-100% + ${y.value*E.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${y.value*E.value}px))`:E8(),transition:"none"}:void 0);return $1(w,()=>{var R,M;const C=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;Gp(()=>{var T,P,A,L;(P=e.value)==null||P.style.setProperty("transform",((T=O.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((A=O.value)==null?void 0:A.transition)||null)}),hg(()=>{var T,P;(T=e.value)==null||T.style.setProperty("transform",C),(P=e.value)==null||P.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:O}}function E8(){throw new Error}const LBe=["start","end","left","right","top","bottom"],IBe=gi({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>LBe.includes(t)},sticky:Boolean,...B_(),...Js(),...__e(),...wD({mobile:null}),...iy(),...pue(),...Pm(),...tf({tag:"nav"}),...gd()},"VNavigationDrawer"),vwe=Oa()({name:"VNavigationDrawer",props:IBe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{isRtl:d}=n0(),{themeClasses:s}=th(t),{borderClasses:n}=$O(t),{backgroundColorClasses:u,backgroundColorStyles:b}=dg(ji(t,"color")),{elevationClasses:i}=cb(t),{displayClasses:S,mobile:w}=L4(t),{roundedClasses:y}=mg(t),m=j2e(),a=ql(t,"modelValue",null,X=>!!X),{ssrBootStyles:c}=fq(),{scopeId:h}=IM(),p=qo(),v=Gi(!1),{runOpenDelay:_,runCloseDelay:O}=w_e(t,X=>{v.value=X}),C=nr(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=nr(()=>Kse(t.location,d.value)),R=nr(()=>t.persistent),M=nr(()=>!t.permanent&&(w.value||t.temporary)),T=nr(()=>t.sticky&&!M.value&&x.value!=="bottom");$1(()=>t.expandOnHover&&t.rail!=null,()=>{ia(v,X=>f("update:rail",!X))}),$1(()=>!t.disableResizeWatcher,()=>{ia(M,X=>!t.permanent&&Vc(()=>a.value=!X))}),$1(()=>!t.disableRouteWatcher&&!!m,()=>{ia(m.currentRoute,()=>M.value&&(a.value=!1))}),ia(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:P,dragProgress:A}=RBe({el:p,isActive:a,isTemporary:M,width:C,touchless:ji(t,"touchless"),position:x}),L=nr(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):C.value;return P.value?X*A.value:X}),D=nr(()=>["top","bottom"].includes(t.location)?0:C.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=mue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:nr(()=>a.value||P.value),disableTransitions:nr(()=>P.value),absolute:nr(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=CBe({rootEl:p,isSticky:T,layoutItemStyles:k}),j=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),U=nr(()=>({...P.value?{opacity:A.value*.2,transition:"none"}:void 0,...I.value}));return ab({VList:{bgColor:"transparent"}}),Ga(()=>{const X=E.image||t.image;return $t(Ea,null,[$t(t.tag,qi({ref:p,onMouseenter:_,onMouseleave:O,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},s.value,u.value,n.value,S.value,i.value,y.value,t.class],style:[b.value,k.value,c.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,Z,K;return[X&&$t("div",{key:"image",class:"v-navigation-drawer__img"},[E.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},E.image):$t(rC,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),E.prepend&&$t("div",{class:"v-navigation-drawer__prepend"},[(te=E.prepend)==null?void 0:te.call(E)]),$t("div",{class:"v-navigation-drawer__content"},[(Z=E.default)==null?void 0:Z.call(E)]),E.append&&$t("div",{class:"v-navigation-drawer__append"},[(K=E.append)==null?void 0:K.call(E)])]}}),$t(C_,{name:"fade-transition"},{default:()=>[M.value&&(P.value||a.value)&&!!t.scrim&&$t("div",qi({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),DBe=gi({...Oq(),...uC(),...M_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),Vue=Oa()({name:"VRangeSlider",props:DBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),d=qo(),s=qo(),{rtlClasses:n}=n0();function u(T){if(!E.value||!d.value)return;const P=lle(T,E.value.$el,t.direction),A=lle(T,d.value.$el,t.direction),L=Math.abs(P),D=Math.abs(A);return LT!=null&&T.length?T.map(P=>b.roundValue(P)):[0,0]),{activeThumbRef:S,hasLabels:w,max:y,min:m,mousePressed:a,onSliderMousedown:c,onSliderTouchstart:h,position:p,trackContainerRef:v,readonly:_}=P_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:P}=T;const A=S.value===((L=E.value)==null?void 0:L.$el)?[P,i.value[1]]:[i.value[0],P];!t.strict&&A[0]{var D,k,I,z;let{value:P}=T;const[A,L]=i.value;!t.strict&&A===L&&A!==m.value&&(S.value=P>A?(D=d.value)==null?void 0:D.$el:(k=E.value)==null?void 0:k.$el,(I=S.value)==null||I.focus()),S.value===((z=E.value)==null?void 0:z.$el)?i.value=[Math.min(P,L),L]:i.value=[A,Math.max(A,P)]},getActiveThumb:u}),{isFocused:O,focus:C,blur:x}=cC(t),R=nr(()=>p(i.value[0])),M=nr(()=>p(i.value[1]));return Ga(()=>{const T=sb.filterProps(t),P=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":O.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:s},T,{focused:O.value}),{...o,prepend:P?A=>{var L,D;return $t(Ea,null,[((L=o.label)==null?void 0:L.call(o,A))??(t.label?$t(wq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,A)])}:void 0,default:A=>{var k,I;let{id:L,messagesId:D}=A;return $t("div",{class:"v-slider__container",onMousedown:_.value?void 0:c,onTouchstartPassive:_.value?void 0:h},[$t("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),$t("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),$t(R_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),$t(cle,{ref:E,"aria-describedby":D.value,focused:O&&S.value===((k=E.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;C(),S.value=($=E.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===m.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=E.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:m.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),$t(cle,{ref:d,"aria-describedby":D.value,focused:O&&S.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;C(),S.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=E.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=E.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const BBe=gi({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Hl,default:"$ratingEmpty"},fullIcon:{type:Hl,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...Js(),...Q1(),...aC(),...tf(),...gd()},"VRating"),Uue=Oa()({name:"VRating",props:BBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),{themeClasses:E}=th(t),d=ql(t,"modelValue"),s=nr(()=>ug(parseFloat(d.value),0,+t.length)),n=nr(()=>u4(Number(t.length),1)),u=nr(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Gi(-1),i=nr(()=>u.value.map(a=>{const c=t.hover&&b.value>-1,h=s.value>=a,p=b.value>=a,_=(c?p:h)?t.fullIcon:t.emptyIcon,O=t.activeColor??t.color,C=h||p?O:t.color;return{isFilled:h,isHovered:p,icon:_,color:C}})),S=nr(()=>[0,...u.value].map(a=>{function c(){b.value=a}function h(){b.value=-1}function p(){t.disabled||t.readonly||(d.value=s.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?c:void 0,onMouseleave:t.hover?h:void 0,onClick:p}})),w=nr(()=>t.name??`v-rating-${j1()}`);function y(a){var R,M;let{value:c,index:h,showStar:p=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:O}=S.value[h+1],C=`${w.value}-${String(c).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return $t(Ea,null,[$t("label",{for:C,class:{"v-rating__item--half":t.halfIncrements&&c%1>0,"v-rating__item--full":t.halfIncrements&&c%1===0},onMouseenter:v,onMouseleave:_,onClick:O},[$t("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,c,t.length)]),p?o.item?o.item({...i.value[h],props:x,value:c,index:h,rating:s.value}):$t(es,qi({"aria-label":f(t.itemAriaLabel,c,t.length)},x),null):void 0]),$t("input",{class:"v-rating__hidden",name:w.value,id:C,type:"radio",value:c,checked:s.value===c,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function m(a){return o["item-label"]?o["item-label"](a):a.label?$t("span",null,[a.label]):$t("span",null,[Ua(" ")])}return Ga(()=>{var c;const a=!!((c=t.itemLabels)!=null&&c.length)||o["item-label"];return $t(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},E.value,t.class],style:t.style},{default:()=>[$t(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,p)=>{var v,_;return $t("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?m({value:h,index:p,label:(v=t.itemLabels)==null?void 0:v[p]}):void 0,$t("div",{class:"v-rating__item"},[t.halfIncrements?$t(Ea,null,[$t(y,{value:h-.5,index:p*2},null),$t(y,{value:h,index:p*2+1},null)]):$t(y,{value:h,index:p},null)]),a&&t.itemLabelPosition==="bottom"?m({value:h,index:p,label:(_=t.itemLabels)==null?void 0:_[p]}):void 0])})]})}),{}}});function zBe(t){const e=Gi(t());let o=-1;function f(){clearInterval(o)}function E(){f(),Vc(()=>e.value=t())}function d(s){const n=s?getComputedStyle(s):{transitionDuration:.2},u=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+u;e.value=Math.max(t()-i,0),e.value<=0&&f()},u)}return hg(f),{clear:f,time:e,start:d,reset:E}}const NBe=gi({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...xD({location:"bottom"}),...yq(),...Pm(),...Lx(),...gd(),...R_(OD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Dq=Oa()({name:"VSnackbar",props:NBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{positionClasses:E}=bq(t),{scopeId:d}=IM(),{themeClasses:s}=th(t),{colorClasses:n,colorStyles:u,variantClasses:b}=iC(t),{roundedClasses:i}=mg(t),S=zBe(()=>Number(t.timeout)),w=qo(),y=qo(),m=Gi(!1),a=Gi(0),c=qo(),h=Kl(HI,void 0);$1(()=>!!h,()=>{const T=_2e();Gp(()=>{c.value=T.mainStyles.value})}),ia(f,v),ia(()=>t.timeout,v),pg(()=>{f.value&&v()});let p=-1;function v(){S.reset(),window.clearTimeout(p);const T=Number(t.timeout);if(!f.value||T===-1)return;const P=aue(y.value);S.start(P),p=window.setTimeout(()=>{f.value=!1},T)}function _(){S.reset(),window.clearTimeout(p)}function O(){m.value=!0,_()}function C(){m.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=nr(()=>t.location.split(" ").reduce((T,P)=>(T[`v-snackbar--${P}`]=!0,T),{}));return Ga(()=>{const T=C4.filterProps(t),P=!!(o.default||o.text||t.text);return $t(C4,qi({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,E.value,t.class],style:[c.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":A=>f.value=A,contentProps:qi({class:["v-snackbar__wrapper",s.value,n.value,i.value,b.value],style:[u.value],onPointerenter:O,onPointerleave:C},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var A,L;return[oC(!1,"v-snackbar"),t.timer&&!m.value&&$t("div",{key:"timer",class:"v-snackbar__timer"},[$t(U2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":S.time.value},null)]),P&&$t("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((A=o.text)==null?void 0:A.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&$t(ef,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[$t("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),Ix({},w)}});const FBe=gi({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...uC(),...wue()},"VSwitch"),N8=Oa()({name:"VSwitch",inheritAttrs:!1,props:FBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const E=ql(t,"indeterminate"),d=ql(t,"modelValue"),{loaderClasses:s}=_D(t),{isFocused:n,focus:u,blur:b}=cC(t),i=qo(),S=Hu&&window.matchMedia("(forced-colors: active)").matches,w=nr(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=j1(),m=nr(()=>t.id||`switch-${y}`);function a(){E.value&&(E.value=!1)}function c(h){var p,v;h.stopPropagation(),h.preventDefault(),(v=(p=i.value)==null?void 0:p.input)==null||v.click()}return Ga(()=>{const[h,p]=yD(o),v=sb.filterProps(t),_=hZ.filterProps(t);return $t(sb,qi({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":E.value},s.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":O=>d.value=O,id:m.value,focused:n.value,style:t.style}),{...f,default:O=>{let{id:C,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=O;const P={model:d,isValid:T};return $t(hZ,qi({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[A=>d.value=A,a],id:C.value,"aria-describedby":x.value,type:"checkbox","aria-checked":E.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:u,onBlur:b},p),{...f,default:A=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=A;return $t("div",{class:["v-switch__track",S?void 0:L.value],style:D.value,onClick:c},[f["track-true"]&&$t("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](P)]),f["track-false"]&&$t("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](P)])])},input:A=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=A;return $t(Ea,null,[L,$t("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||S?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?$t(ef,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...P,icon:D})]}):$t(C2e,null,{default:()=>[t.loading?$t(vq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):$t(sC,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&$t(jl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const $Be=gi({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...uC(),...Tq()},"VTextarea"),kD=Oa()({name:"VTextarea",directives:{Intersect:bue},inheritAttrs:!1,props:$Be(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=cC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function S(P,A){var L,D;!t.autofocus||!P||(D=(L=A[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=qo(),y=qo(),m=Gi(""),a=qo(),c=nr(()=>t.persistentPlaceholder||s.value||t.active);function h(){var P;a.value!==document.activeElement&&((P=a.value)==null||P.focus()),s.value||n()}function p(P){h(),f("click:control",P)}function v(P){f("mousedown:control",P)}function _(P){P.stopPropagation(),h(),Vc(()=>{d.value="",cue(t["onClick:clear"],P)})}function O(P){var L;const A=P.target;if(d.value=A.value,(L=t.modelModifiers)!=null&&L.trim){const D=[A.selectionStart,A.selectionEnd];Vc(()=>{A.selectionStart=D[0],A.selectionEnd=D[1]})}}const C=qo(),x=qo(+t.rows),R=nr(()=>["plain","underlined"].includes(t.variant));Gp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&Vc(()=>{if(!C.value||!y.value)return;const P=getComputedStyle(C.value),A=getComputedStyle(y.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),D=C.value.scrollHeight,k=parseFloat(P.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(A.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=ug(D??0,I,z);x.value=Math.floor(($-L)/k),m.value=is($)})}pg(M),ia(d,M),ia(()=>t.rows,M),ia(()=>t.maxRows,M),ia(()=>t.density,M);let T;return ia(C,P=>{P?(T=new ResizeObserver(M),T.observe(C.value)):T==null||T.disconnect()}),Em(()=>{T==null||T.disconnect()}),Ga(()=>{const P=!!(E.counter||t.counter||t.counterValue),A=!!(P||E.details),[L,D]=yD(o),{modelValue:k,...I}=sb.filterProps(t),z=Aue(t);return $t(sb,qi({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:s.value}),{...E,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return $t(Cq,qi({ref:y,style:{"--v-textarea-control-height":m.value},onClick:p,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:c.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:s.value,error:te.value===!1}),{...E,default:Z=>{let{props:{class:K,...re}}=Z;return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[t.prefix]),Kp($t("textarea",qi({ref:a,class:K,value:d.value,onInput:O,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:u},re,D),null),[[M_("intersect"),{handler:S},null,{once:!0}]]),t.autoGrow&&Kp($t("textarea",{class:[K,"v-textarea__sizer"],id:`${re.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:C,readonly:!0,"aria-hidden":"true"},null),[[y5e,d.value]]),t.suffix&&$t("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:A?$=>{var Q;return $t(Ea,null,[(Q=E.details)==null?void 0:Q.call(E,$),P&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},w,y,a)}});const VBe=gi({id:String,text:String,...R_(OD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),ywe=Oa()({name:"VTooltip",props:VBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-tooltip-${d}`),n=qo(),u=nr(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=nr(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=nr(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),S=nr(()=>qi({"aria-describedby":s.value},t.activatorProps));return Ga(()=>{const w=C4.filterProps(t);return $t(C4,qi({ref:n,class:["v-tooltip",t.class],style:t.style,id:s.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:u.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:S.value,_disableGlobalStack:!0},E),{activator:o.activator,default:function(){var c;for(var y=arguments.length,m=new Array(y),a=0;a{const E=o.replace(/_/g,"-");return e[E]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&!t.shiftKey&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)},async fileToBase64(t){const e=new FileReader;return e.readAsDataURL(t),new Promise(o=>{e.onload=()=>{let f=e.result.split(",")[1];f=f.padEnd(f.length+(4-f.length%4)%4,"="),o(f)}})},async createFormData(t){const e={};for(const o of t){const f=await this.fileToBase64(o);e[o.name]=f}return e}}},HBe={key:0},ZBe={key:1};function qBe(t,e,o,f,E,d){const s=Nd("plotly-plot"),n=Nd("component-wrapper",!0);return Uo(!0),Ya(Ea,null,ey(o.renderComponents,u=>(Uo(),Ya("div",{key:u.id},[$t(Iq,{class:"pa-5"},{default:ao(()=>[u.component==="plotly-plot"?(Uo(),da(s,{key:0,id:u.id,figureJson:u.figure_json},null,8,["id","figureJson"])):u.component==="zt-html"?(Uo(),da(yM,{key:1,innerHTML:u.v_html},null,8,["innerHTML"])):u.component==="v-file-input"?(Uo(),da(nM(u.component),qi({key:2},d.componentBind(u),{"onUpdate:modelValue":async b=>{u.value=await d.createFormData(b),d.runCode(!0,u.id,u.value)}}),null,16,["onUpdate:modelValue"])):(Uo(),da(nM(u.component),qi({key:3},d.componentBind(u),{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},fke(d.getEventBindings(u))),yve({_:2},[u.component!=="v-data-table"?{name:"default",fn:ao(()=>[u.childComponents?(Uo(),Ya("div",HBe,[$t(n,{renderComponents:d.getChildren(u.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):u.component==="v-btn"?(Uo(),Ya("div",ZBe,Dl(u.text),1)):za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const bwe=mp(QBe,[["render",qBe]]),WBe={emits:["runCode"],components:{"v-slider":Due,"v-rating":Uue,"v-text-field":Ep,"v-file-input":$ue,"v-textarea":kD,"v-range-slider":Vue,"v-select":DM,"v-combobox":Bue,"v-btn":es,"v-img":rC,"v-data-table":Lq,"v-autocomplete":Mq,"v-card":ub,"v-text":jue,"plotly-plot":yce,"component-wrapper":bwe},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},YBe={key:0},XBe={key:1},GBe={key:1},KBe={key:0},JBe={key:1};function eze(t,e,o,f,E,d){const s=Nd("component-wrapper"),n=Nd("layout-component",!0);return Uo(),Ya(Ea,null,[o.rowData?(Uo(),da(Iq,{key:0},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(o.rowData.components,(u,b)=>(Uo(),da(QT,{key:b,cols:d.componentWidth(u)},{default:ao(()=>[typeof u=="string"?(Uo(),Ya("div",YBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",XBe,[$t(n,{"column-data":u,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):za("",!0),o.columnData?(Uo(),Ya("div",GBe,[(Uo(!0),Ya(Ea,null,ey(o.columnData.components,(u,b)=>(Uo(),Ya("div",{key:b},[typeof u=="string"?(Uo(),Ya("div",KBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",JBe,[$t(n,{"row-data":u,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):za("",!0)],64)}const tze=mp(WBe,[["render",eze]]),Q0=Am({copilot_active:!1,connection_lost:!1,timers:{},comments_enabled:!1}),Mp={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},nze={component:t=>U1(t.tag,{...t,innerHTML:t.icon})},rze={class:"divider"},oze=em({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=qo([{title:"Code",cellType:"code",icon:`ztIcon:${Mp.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Mp.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Mp.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Mp.text}`}]);return(o,f)=>(Uo(),da(BO,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:ao(({props:E})=>[Na("div",qi(t.cellId?{...E,id:"addCell"+t.cellId}:E,{class:"activator-area"}),[Na("div",rze,[$t(vM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),$t(es,{"prepend-icon":`ztIcon:${Va(Mp).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:ao(()=>[Ua("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(e.value,(E,d)=>(Uo(),da(Xf,qi({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+E.title+"_"+t.cellId}:{},{onClick:s=>o.$emit("createCodeCell",E.cellType)}),{prepend:ao(()=>[$t(jl,{icon:E.icon},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua(Dl(E.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Que=mp(oze,[["__scopeId","data-v-c00c2563"]]);function ize(t,e){const o=nr(()=>t.value);return{cellTypeColor:nr(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var aze=!1;/*! +`)}function Tge(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[E,d]of Object.entries(t.colors)){const s=w_(d);f.push(`--v-theme-${E}: ${s.r},${s.g},${s.b}`),E.startsWith("on-")||f.push(`--v-theme-${E}-overlay-multiplier: ${$9e(d)>.18?e:o}`)}for(const[E,d]of Object.entries(t.variables)){const s=typeof d=="string"&&d.startsWith("#")?w_(d):void 0,n=s?`${s.r}, ${s.g}, ${s.b}`:void 0;f.push(`--v-${E}: ${n??d}`)}return f}const sRe=gi({...Js(),...X9e({fullHeight:!0}),...gd()},"VApp"),lRe=Oa()({name:"VApp",props:sRe(),setup(t,e){let{slots:o}=e;const f=th(t),{layoutClasses:E,getLayoutItem:d,items:s,layoutRef:n}=K9e(t),{rtlClasses:u}=n0();return Ga(()=>$t("div",{ref:n,class:["v-application",f.themeClasses.value,E.value,u.value,t.class],style:[t.style]},[$t("div",{class:"v-application__wrap"},[$t(G4e,null,{default:()=>{var b;return[$t(Ea,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:s,theme:f}}});const tf=gi({tag:{type:String,default:"div"}},"tag"),cRe=gi({text:String,...Js(),...tf()},"VToolbarTitle"),uRe=Oa()({name:"VToolbarTitle",props:cRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{const f=!!(o.default||o.text||t.text);return $t(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var E;return[f&&$t("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(E=o.default)==null?void 0:E.call(o)])]}})}),{}}}),fRe=gi({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function iy(t,e,o){return Oa()({name:t,props:fRe({mode:o,origin:e}),setup(f,E){let{slots:d}=E;const s={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:u,offsetLeft:b,offsetWidth:i,offsetHeight:S}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${u}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${S}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:u,top:b,left:i,width:S,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=u||"",n.style.top=b||"",n.style.left=i||"",n.style.width=S||"",n.style.height=w||""}}};return()=>{const n=f.group?pce:C_;return U1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:s},d.default)}}})}function C2e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Oa()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,E){let{slots:d}=E;const s=f.group?pce:C_;return()=>U1(s,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function A2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=ib(`offset-${o}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[o]:s.style[o]}},onEnter(s){const n=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const u=`${s[f]}px`;s.style[o]="0",s.offsetHeight,s.style.transition=n.transition,t&&s._parent&&s._parent.classList.add(t),requestAnimationFrame(()=>{s.style[o]=u})},onAfterEnter:d,onEnterCancelled:d,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[o]:s.style[o]},s.style.overflow="hidden",s.style[o]=`${s[f]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[o]="0")},onAfterLeave:E,onLeaveCancelled:E};function E(s){t&&s._parent&&s._parent.classList.remove(t),d(s)}function d(s){const n=s._initialStyle[o];s.style.overflow=s._initialStyle.overflow,n!=null&&(s.style[o]=n),delete s._initialStyle}}const dRe=gi({target:[Object,Array]},"v-dialog-transition"),yue=Oa()({name:"VDialogTransition",props:dRe(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(E){E.style.pointerEvents="none",E.style.visibility="hidden"},async onEnter(E,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),E.style.visibility="";const{x:s,y:n,sx:u,sy:b,speed:i}=Age(t.target,E),S=j8(E,[{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0},{}],{duration:225*i,easing:Z9e});(w=Cge(E))==null||w.forEach(y=>{j8(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:cZ})}),S.finished.then(()=>d())},onAfterEnter(E){E.style.removeProperty("pointer-events")},onBeforeLeave(E){E.style.pointerEvents="none"},async onLeave(E,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:s,y:n,sx:u,sy:b,speed:i}=Age(t.target,E);j8(E,[{},{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0}],{duration:125*i,easing:q9e}).finished.then(()=>d()),(w=Cge(E))==null||w.forEach(y=>{j8(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:cZ})})},onAfterLeave(E){E.style.removeProperty("pointer-events")}};return()=>t.target?$t(C_,qi({name:"dialog-transition"},f,{css:!1}),o):$t(C_,{name:"dialog-transition"},o)}});function Cge(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Age(t,e){const o=h2e(t),f=due(e),[E,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[s,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=o.left+o.width/2;s==="left"||n==="left"?u-=o.width/2:(s==="right"||n==="right")&&(u+=o.width/2);let b=o.top+o.height/2;s==="top"||n==="top"?b-=o.height/2:(s==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,S=o.height/f.height,w=Math.max(1,i,S),y=i/w||0,m=S/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),c=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:u-(E+f.left),y:b-(d+f.top),sx:y,sy:m,speed:c}}iy("fab-transition","center center","out-in");iy("dialog-bottom-transition");iy("dialog-top-transition");const Mge=iy("fade-transition"),M2e=iy("scale-transition");iy("scroll-x-transition");iy("scroll-x-reverse-transition");iy("scroll-y-transition");iy("scroll-y-reverse-transition");iy("slide-x-transition");iy("slide-x-reverse-transition");const E2e=iy("slide-y-transition");iy("slide-y-reverse-transition");const bue=C2e("expand-transition",A2e()),P2e=C2e("expand-x-transition",A2e("",!0)),hRe=gi({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ef=Oa(!1)({name:"VDefaultsProvider",props:hRe(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:E,reset:d,root:s,scoped:n}=CM(t);return ab(f,{reset:d,root:s,scoped:n,disabled:E}),()=>{var u;return(u=o.default)==null?void 0:u.call(o)}}});const I_=gi({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function D_(t){return{dimensionStyles:nr(()=>{const o={},f=is(t.height),E=is(t.maxHeight),d=is(t.maxWidth),s=is(t.minHeight),n=is(t.minWidth),u=is(t.width);return f!=null&&(o.height=f),E!=null&&(o.maxHeight=E),d!=null&&(o.maxWidth=d),s!=null&&(o.minHeight=s),n!=null&&(o.minWidth=n),u!=null&&(o.width=u),o})}}function pRe(t){return{aspectStyles:nr(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const R2e=gi({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Js(),...I_()},"VResponsive"),Ege=Oa()({name:"VResponsive",props:R2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=pRe(t),{dimensionStyles:E}=D_(t);return Ga(()=>{var d;return $t("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[E.value,t.style]},[$t("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&$t("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function xue(t){return uue(()=>{const e=[],o={};if(t.value.background)if(ele(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&L9e(t.value.background)){const f=w_(t.value.background);if(f.a==null||f.a===1){const E=y2e(f);o.color=E,o.caretColor=E}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(ele(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function ry(t,e){const o=nr(()=>({text:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=xue(o);return{textColorClasses:f,textColorStyles:E}}function dg(t,e){const o=nr(()=>({background:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=xue(o);return{backgroundColorClasses:f,backgroundColorStyles:E}}const Pm=gi({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function mg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{roundedClasses:nr(()=>{const f=ku(t)?t.value:t.rounded,E=ku(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const s of String(f).split(" "))d.push(`rounded-${s}`);else(E||f===!1)&&d.push("rounded-0");return d})}}const rC=gi({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),f4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:E,group:d,...s}=t,{component:n=d?pce:C_,...u}=typeof f=="object"?f:{};return U1(n,qi(typeof f=="string"?{name:E?"":f}:u,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:E,group:d}).filter(b=>{let[i,S]=b;return S!==void 0})),s),o)};function mRe(t,e){if(!sue)return;const o=e.modifiers||{},f=e.value,{handler:E,options:d}=typeof f=="object"?f:{handler:f,options:{}},s=new IntersectionObserver(function(){var S;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;const b=(S=t._observe)==null?void 0:S[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);E&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&E(i,n,u),i&&o.once?L2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:s},s.observe(t)}function L2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const gRe={mounted:mRe,unmounted:L2e},_ue=gRe,vRe=gi({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...R2e(),...Js(),...Pm(),...rC()},"VImg"),oC=Oa()({name:"VImg",directives:{intersect:_ue},props:vRe(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(ji(t,"color")),{roundedClasses:s}=mg(t),n=Xh("VImg"),u=Gi(""),b=qo(),i=Gi(t.eager?"loading":"idle"),S=Gi(),w=Gi(),y=nr(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),m=nr(()=>y.value.aspect||S.value/w.value||0);ia(()=>t.src,()=>{a(i.value!=="idle")}),ia(m,(A,L)=>{!A&&L&&b.value&&_(b.value)}),rce(()=>a());function a(A){if(!(t.eager&&A)&&!(sue&&!A&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&Vc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;m.value||_(b.value,null),i.value==="loading"&&c()}else m.value||_(b.value),p()})})}}function c(){var A;n.isUnmounted||(p(),_(b.value),i.value="loaded",o("load",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function h(){var A;n.isUnmounted||(i.value="error",o("error",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function p(){const A=b.value;A&&(u.value=A.currentSrc||A.src)}let v=-1;Em(()=>{clearTimeout(v)});function _(A){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=A;k||I?(S.value=I,w.value=k):!A.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(S.value=1,w.value=1)};D()}const O=nr(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),C=()=>{var D;if(!y.value.src||i.value==="idle")return null;const A=$t("img",{class:["v-img__img",O.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:c,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return $t(f4,{transition:t.transition,appear:!0},{default:()=>[Kp(L?$t("picture",{class:"v-img__picture"},[L,A]):A,[[A4,i.value==="loaded"]])]})},x=()=>$t(f4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&$t("img",{class:["v-img__img","v-img__img--preload",O.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?$t(f4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&$t("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?$t(f4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&$t("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?$t("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,P=Gi(!1);{const A=ia(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.value=!0})}),A())})}return Ga(()=>{const A=Ege.filterProps(t);return Kp($t(Ege,qi({class:["v-img",{"v-img--booting":!P.value},E.value,s.value,t.class],style:[{width:is(t.width==="auto"?S.value:t.width)},d.value,t.style]},A,{aspectRatio:m.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>$t(Ea,null,[$t(C,null,null),$t(x,null,null),$t(T,null,null),$t(R,null,null),$t(M,null,null)]),default:f.default}),[[M_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:u,image:b,state:i,naturalWidth:S,naturalHeight:w}}}),B_=gi({border:[Boolean,Number,String]},"border");function $O(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{borderClasses:nr(()=>{const f=ku(t)?t.value:t.border,E=[];if(f===!0||f==="")E.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))E.push(`border-${d}`);return E})}}const ay=gi({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function cb(t){return{elevationClasses:nr(()=>{const o=ku(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const yRe=[null,"prominent","default","comfortable","compact"],I2e=gi({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>yRe.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...B_(),...Js(),...ay(),...Pm(),...tf({tag:"header"}),...gd()},"VToolbar"),Pge=Oa()({name:"VToolbar",props:I2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:E}=dg(ji(t,"color")),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),{themeClasses:u}=th(t),{rtlClasses:b}=n0(),i=Gi(!!(t.extended||(y=o.extension)!=null&&y.call(o))),S=nr(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=nr(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ab({VBtn:{variant:"text"}}),Ga(()=>{var h;const m=!!(t.title||o.title),a=!!(o.image||t.image),c=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||c),$t(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,s.value,n.value,u.value,b.value,t.class],style:[E.value,t.style]},{default:()=>[a&&$t("div",{key:"image",class:"v-toolbar__image"},[o.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):$t(oC,{key:"image-img",cover:!0,src:t.image},null)]),$t(ef,{defaults:{VTabs:{height:is(S.value)}}},{default:()=>{var p,v,_;return[$t("div",{class:"v-toolbar__content",style:{height:is(S.value)}},[o.prepend&&$t("div",{class:"v-toolbar__prepend"},[(p=o.prepend)==null?void 0:p.call(o)]),m&&$t(uRe,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&$t("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),$t(ef,{defaults:{VTabs:{height:is(w.value)}}},{default:()=>[$t(bue,null,{default:()=>[i.value&&$t("div",{class:"v-toolbar__extension",style:{height:is(w.value)}},[c])]})]})]})}),{contentHeight:S,extensionHeight:w}}}),bRe=gi({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function xRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,E=0;const d=qo(null),s=Gi(0),n=Gi(0),u=Gi(0),b=Gi(!1),i=Gi(!1),S=nr(()=>Number(t.scrollThreshold)),w=nr(()=>ug((S.value-s.value)/S.value||0)),y=()=>{const m=d.value;if(!m||o&&!o.value)return;f=s.value,s.value="window"in m?m.pageYOffset:m.scrollTop;const a=m instanceof Window?document.documentElement.scrollHeight:m.scrollHeight;if(E!==a){E=a;return}i.value=s.value{n.value=n.value||s.value}),ia(b,()=>{n.value=0}),pg(()=>{ia(()=>t.scrollTarget,m=>{var c;const a=m?document.querySelector(m):window;a&&a!==d.value&&((c=d.value)==null||c.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),Em(()=>{var m;(m=d.value)==null||m.removeEventListener("scroll",y)}),o&&ia(o,y,{immediate:!0}),{scrollThreshold:S,currentScroll:s,currentThreshold:u,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function dq(){const t=Gi(!1);return pg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:nr(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const _Re=gi({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...I2e(),...gue(),...bRe(),height:{type:[Number,String],default:64}},"VAppBar"),wRe=Oa()({name:"VAppBar",props:_Re(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=qo(),E=ql(t,"modelValue"),d=nr(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),s=nr(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!E.value}),{currentScroll:n,scrollThreshold:u,isScrollingUp:b,scrollRatio:i}=xRe(t,{canScroll:s}),S=nr(()=>d.value.hide||d.value.fullyHide),w=nr(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=nr(()=>t.flat||d.value.fullyHide&&!E.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),m=nr(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=nr(()=>{var O,C;const v=Number(((O=f.value)==null?void 0:O.contentHeight)??t.height),_=Number(((C=f.value)==null?void 0:C.extensionHeight)??0);return S.value?n.value!!t.scrollBehavior),()=>{Gp(()=>{S.value?d.value.inverted?E.value=n.value>u.value:E.value=b.value||n.valueparseInt(t.order,10)),position:ji(t,"location"),layoutSize:a,elementSize:Gi(void 0),active:E,absolute:ji(t,"absolute")});return Ga(()=>{const v=Pge.filterProps(t);return $t(Pge,qi({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":m.value,height:void 0,...c.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),p}});const ORe=[null,"default","comfortable","compact"],Q1=gi({density:{type:String,default:"default",validator:t=>ORe.includes(t)}},"density");function Rx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{densityClasses:nr(()=>`${e}--density-${t.density}`)}}const SRe=["elevated","flat","tonal","outlined","text","plain"];function iC(t,e){return $t(Ea,null,[t&&$t("span",{key:"overlay",class:`${e}__overlay`},null),$t("span",{key:"underlay",class:`${e}__underlay`},null)])}const Lx=gi({color:String,variant:{type:String,default:"elevated",validator:t=>SRe.includes(t)}},"variant");function aC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=nr(()=>{const{variant:d}=Va(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:E}=xue(nr(()=>{const{variant:d,color:s}=Va(t);return{[["elevated","flat"].includes(d)?"background":"text"]:s}}));return{colorClasses:f,colorStyles:E,variantClasses:o}}const D2e=gi({baseColor:String,divided:Boolean,...B_(),...Js(),...Q1(),...ay(),...Pm(),...tf(),...gd(),...Lx()},"VBtnGroup"),Rge=Oa()({name:"VBtnGroup",props:D2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{densityClasses:E}=Rx(t),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t);ab({VBtn:{height:"auto",baseColor:ji(t,"baseColor"),color:ji(t,"color"),density:ji(t,"density"),flat:!0,variant:ji(t,"variant")}}),Ga(()=>$t(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,E.value,s.value,n.value,t.class],style:t.style},o))}}),hq=gi({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),wue=gi({value:null,disabled:Boolean,selectedClass:String},"group-item");function Oue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=Xh("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const E=j1();md(Symbol.for(`${e.description}:id`),E);const d=Kl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const s=ji(t,"value"),n=nr(()=>!!(d.disabled.value||t.disabled));d.register({id:E,value:s,disabled:n},f),Em(()=>{d.unregister(E)});const u=nr(()=>d.isSelected(E)),b=nr(()=>d.items.value[0].id===E),i=nr(()=>d.items.value[d.items.value.length-1].id===E),S=nr(()=>u.value&&[d.selectedClass.value,t.selectedClass]);return ia(u,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:E,isSelected:u,isFirst:b,isLast:i,toggle:()=>d.select(E,!u.value),select:w=>d.select(E,w),selectedClass:S,value:s,disabled:n,group:d}}function pq(t,e){let o=!1;const f=Am([]),E=ql(t,"modelValue",[],w=>w==null?[]:B2e(f,Pp(w)),w=>{const y=TRe(f,w);return t.multiple?y:y[0]}),d=Xh("useGroup");function s(w,y){const m=w,a=Symbol.for(`${e.description}:id`),h=U8(a,d==null?void 0:d.vnode).indexOf(y);Va(m.value)==null&&(m.value=h,m.useIndexAsValue=!0),h>-1?f.splice(h,0,m):f.push(m)}function n(w){if(o)return;u();const y=f.findIndex(m=>m.id===w);f.splice(y,1)}function u(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!E.value.length&&(E.value=[w.id])}pg(()=>{u()}),Em(()=>{o=!0}),oce(()=>{for(let w=0;wa.id===w);if(!(y&&(m!=null&&m.disabled)))if(t.multiple){const a=E.value.slice(),c=a.findIndex(p=>p===w),h=~c;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;c<0&&y?a.push(w):c>=0&&!y&&a.splice(c,1),E.value=a}else{const a=E.value.includes(w);if(t.mandatory&&a)return;E.value=y??!a?[w]:[]}}function i(w){if(t.multiple,E.value.length){const y=E.value[0],m=f.findIndex(h=>h.id===y);let a=(m+w)%f.length,c=f[a];for(;c.disabled&&a!==m;)a=(a+w)%f.length,c=f[a];if(c.disabled)return;E.value=[f[a].id]}else{const y=f.find(m=>!m.disabled);y&&(E.value=[y.id])}}const S={register:s,unregister:n,selected:E,select:b,disabled:ji(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>E.value.includes(w),selectedClass:nr(()=>t.selectedClass),items:nr(()=>f),getItemIndex:w=>kRe(f,w)};return md(e,S),S}function kRe(t,e){const o=B2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function B2e(t,e){const o=[];return e.forEach(f=>{const E=t.find(s=>R4(f,s.value)),d=t[f];(E==null?void 0:E.value)!=null?o.push(E.id):d!=null&&o.push(d.id)}),o}function TRe(t,e){const o=[];return e.forEach(f=>{const E=t.findIndex(d=>d.id===f);if(~E){const d=t[E];o.push(d.value!=null?d.value:E)}}),o}const z2e=Symbol.for("vuetify:v-btn-toggle"),CRe=gi({...D2e(),...hq()},"VBtnToggle"),N2e=Oa()({name:"VBtnToggle",props:CRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:E,prev:d,select:s,selected:n}=pq(t,z2e);return Ga(()=>{const u=Rge.filterProps(t);return $t(Rge,qi({class:["v-btn-toggle",t.class]},u,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:E,prev:d,select:s,selected:n})]}})}),{next:E,prev:d,select:s}}});const F2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},$2e={component:t=>U1(U2e,{...t,class:"mdi"})},Hl=[String,Function,Object,Array],tle=Symbol.for("vuetify:icons"),mq=gi({icon:{type:Hl},tag:{type:String,required:!0}},"icon"),Lge=Oa()({name:"VComponentIcon",props:mq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return $t(t.tag,null,{default:()=>{var E;return[t.icon?$t(f,null,null):(E=o.default)==null?void 0:E.call(o)]}})}}}),V2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:mq(),setup(t,e){let{attrs:o}=e;return()=>$t(t.tag,qi(o,{style:null}),{default:()=>[$t("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?$t("path",{d:f[0],"fill-opacity":f[1]},null):$t("path",{d:f},null)):$t("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:mq(),setup(t){return()=>$t(t.tag,null,{default:()=>[t.icon]})}});const U2e=PM({name:"VClassIcon",props:mq(),setup(t){return()=>$t(t.tag,{class:t.icon},null)}});function ARe(){return{svg:{component:V2e},class:{component:U2e}}}function MRe(t){const e=ARe(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=$2e),Jg({defaultSet:o,sets:e,aliases:{...F2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const ERe=t=>{const e=Kl(tle);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:nr(()=>{var u;const f=Va(t);if(!f)return{component:Lge};let E=f;if(typeof E=="string"&&(E=E.trim(),E.startsWith("$")&&(E=(u=e.aliases)==null?void 0:u[E.slice(1)])),Array.isArray(E))return{component:V2e,icon:E};if(typeof E!="string")return{component:Lge,icon:E};const d=Object.keys(e.sets).find(b=>typeof E=="string"&&E.startsWith(`${b}:`)),s=d?E.slice(d.length+1):E;return{component:e.sets[d??e.defaultSet].component,icon:s}})}},PRe=["x-small","small","default","large","x-large"],sC=gi({size:{type:[String,Number],default:"default"}},"size");function xD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return uue(()=>{let o,f;return aZ(PRe,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:is(t.size),height:is(t.size)}),{sizeClasses:o,sizeStyles:f}})}const RRe=gi({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Hl,...Js(),...sC(),...tf({tag:"i"}),...gd()},"VIcon"),jl=Oa()({name:"VIcon",props:RRe(),setup(t,e){let{attrs:o,slots:f}=e;const E=qo(),{themeClasses:d}=th(t),{iconData:s}=ERe(nr(()=>E.value||t.icon)),{sizeClasses:n}=xD(t),{textColorClasses:u,textColorStyles:b}=ry(ji(t,"color"));return Ga(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(E.value=(y=l2e(i).filter(m=>m.type===lD&&m.children&&typeof m.children=="string")[0])==null?void 0:y.children);const S=!!(o.onClick||o.onClickOnce);return $t(s.value.component,{tag:t.tag,icon:s.value.icon,class:["v-icon","notranslate",d.value,n.value,u.value,{"v-icon--clickable":S,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:is(t.size),height:is(t.size),width:is(t.size)},b.value,t.style],role:S?"button":void 0,"aria-hidden":!S,tabindex:S?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function j2e(t,e){const o=qo(),f=Gi(!1);if(sue){const E=new IntersectionObserver(d=>{t==null||t(d,E),f.value=!!d.find(s=>s.isIntersecting)},e);Em(()=>{E.disconnect()}),ia(o,(d,s)=>{s&&(E.unobserve(s),f.value=!1),d&&E.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const LRe=gi({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Js(),...sC(),...tf({tag:"div"}),...gd()},"VProgressCircular"),lC=Oa()({name:"VProgressCircular",props:LRe(),setup(t,e){let{slots:o}=e;const f=20,E=2*Math.PI*f,d=qo(),{themeClasses:s}=th(t),{sizeClasses:n,sizeStyles:u}=xD(t),{textColorClasses:b,textColorStyles:i}=ry(ji(t,"color")),{textColorClasses:S,textColorStyles:w}=ry(ji(t,"bgColor")),{intersectionRef:y,isIntersecting:m}=j2e(),{resizeRef:a,contentRect:c}=T4(),h=nr(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),p=nr(()=>Number(t.width)),v=nr(()=>u.value?Number(t.size):c.value?c.value.width:Math.max(p.value,32)),_=nr(()=>f/(1-p.value/v.value)*2),O=nr(()=>p.value/v.value*_.value),C=nr(()=>is((100-h.value)/100*E));return Gp(()=>{y.value=d.value,a.value=d.value}),Ga(()=>$t(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},s.value,n.value,b.value,t.class],style:[u.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[$t("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[$t("circle",{class:["v-progress-circular__underlay",S.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":0},null),$t("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":C.value},null)]),o.default&&$t("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const Ige={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},_D=gi({location:String},"location");function gq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=n0();return{locationStyles:nr(()=>{if(!t.location)return{};const{side:d,align:s}=Kse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const u={};return d!=="center"&&(e?u[Ige[d]]=`calc(100% - ${n(d)}px)`:u[d]=0),s!=="center"?e?u[Ige[s]]=`calc(100% - ${n(s)}px)`:u[s]=0:(d==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),u})}}const IRe=gi({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Js(),..._D({location:"top"}),...Pm(),...tf(),...gd()},"VProgressLinear"),Q2e=Oa()({name:"VProgressLinear",props:IRe(),emits:{"update:modelValue":t=>!0},setup(t,e){var P;let{slots:o}=e;const f=ql(t,"modelValue"),{isRtl:E,rtlClasses:d}=n0(),{themeClasses:s}=th(t),{locationStyles:n}=gq(t),{textColorClasses:u,textColorStyles:b}=ry(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=dg(nr(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:m,backgroundColorStyles:a}=dg(t,"color"),{roundedClasses:c}=mg(t),{intersectionRef:h,isIntersecting:p}=j2e(),v=nr(()=>parseFloat(t.max)),_=nr(()=>parseFloat(t.height)),O=nr(()=>ug(parseFloat(t.bufferValue)/v.value*100,0,100)),C=nr(()=>ug(parseFloat(f.value)/v.value*100,0,100)),x=nr(()=>E.value!==t.reverse),R=nr(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=Hu&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function T(A){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-A.clientX+(D-k):A.clientX-L;f.value=Math.round(I/k*v.value)}return Ga(()=>$t(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},c.value,s.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?is(_.value):0,"--v-progress-linear-height":is(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:C.value,onClick:t.clickable&&T},{default:()=>[t.stream&&$t("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...b.value,[x.value?"left":"right"]:is(-_.value),borderTop:`${is(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${is(_.value/4)})`,width:is(100-O.value,"%"),"--v-progress-linear-stream-to":is(_.value*(x.value?1:-1))}},null),$t("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[S.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),$t("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:is(O.value,"%")}]},null),$t(C_,{name:R.value},{default:()=>[t.indeterminate?$t("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(A=>$t("div",{key:A,class:["v-progress-linear__indeterminate",A,M?void 0:m.value],style:a.value},null))]):$t("div",{class:["v-progress-linear__determinate",M?void 0:m.value],style:[a.value,{width:is(C.value,"%")}]},null)]}),o.default&&$t("div",{class:"v-progress-linear__content"},[o.default({value:C.value,buffer:O.value})])]})),{}}}),vq=gi({loading:[Boolean,String]},"loader");function wD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{loaderClasses:nr(()=>({[`${e}--loading`]:t.loading}))}}function yq(t,e){var f;let{slots:o}=e;return $t("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||$t(Q2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const DRe=["static","relative","fixed","absolute","sticky"],bq=gi({position:{type:String,validator:t=>DRe.includes(t)}},"position");function xq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{positionClasses:nr(()=>t.position?`${e}--${t.position}`:void 0)}}function BRe(){const t=Xh("useRoute");return nr(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function H2e(){var t,e;return(e=(t=Xh("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function _q(t,e){var b,i;const o=rM("RouterLink"),f=nr(()=>!!(t.href||t.to)),E=nr(()=>(f==null?void 0:f.value)||age(e,"click")||age(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:E,href:ji(t,"href")};const d=nr(()=>({...t,to:ji(()=>t.to||"")})),s=o.useLink(d.value),n=nr(()=>t.to?s:void 0),u=BRe();return{isLink:f,isClickable:E,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:nr(()=>{var S,w,y;return n.value?t.exact?u.value?((y=n.value.isExactActive)==null?void 0:y.value)&&R4(n.value.route.value.query,u.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((S=n.value.isActive)==null?void 0:S.value)??!1:!1}),href:nr(()=>{var S;return t.to?(S=n.value)==null?void 0:S.route.value.href:t.href})}}const wq=gi({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let iae=!1;function zRe(t,e){let o=!1,f,E;Hu&&(Vc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((s,n,u)=>{iae?o?e(u):u():setTimeout(()=>o?e(u):u()),iae=!0}),E=t==null?void 0:t.afterEach(()=>{iae=!1})}),hg(()=>{window.removeEventListener("popstate",d),f==null||f(),E==null||E()}));function d(s){var n;(n=s.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function NRe(t,e){ia(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&Vc(()=>{e(!0)})},{immediate:!0})}const nle=Symbol("rippleStop"),FRe=80;function Dge(t,e){t.style.transform=e,t.style.webkitTransform=e}function rle(t){return t.constructor.name==="TouchEvent"}function Z2e(t){return t.constructor.name==="KeyboardEvent"}const $Re=function(t,e){var S;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,E=0;if(!Z2e(t)){const w=e.getBoundingClientRect(),y=rle(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,E=y.clientY-w.top}let d=0,s=.3;(S=e._ripple)!=null&&S.circle?(s=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(E-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,u=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?u:`${E-d}px`;return{radius:d,scale:s,x:b,y:i,centerX:n,centerY:u}},hZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),E=document.createElement("span");f.appendChild(E),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:s,x:n,y:u,centerX:b,centerY:i}=$Re(t,e,o),S=`${d*2}px`;E.className="v-ripple__animation",E.style.width=S,E.style.height=S,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),E.classList.add("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--visible"),Dge(E,`translate(${n}, ${u}) scale3d(${s},${s},${s})`),E.dataset.activated=String(performance.now()),setTimeout(()=>{E.classList.remove("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--in"),Dge(E,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),E=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},E)}};function q2e(t){return typeof t>"u"||!!t}function qI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[nle])){if(t[nle]=!0,rle(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||Z2e(t),o._ripple.class&&(e.class=o._ripple.class),rle(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{hZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},FRe)}else hZ.show(t,o,e)}}function Bge(t){t[nle]=!0}function Xv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Xv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),hZ.hide(e)}}function W2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let WI=!1;function Y2e(t){!WI&&(t.keyCode===ege.enter||t.keyCode===ege.space)&&(WI=!0,qI(t))}function X2e(t){WI=!1,Xv(t)}function G2e(t){WI&&(WI=!1,Xv(t))}function K2e(t,e,o){const{value:f,modifiers:E}=e,d=q2e(f);if(d||hZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=E.center,t._ripple.circle=E.circle,Yse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(E.stop){t.addEventListener("touchstart",Bge,{passive:!0}),t.addEventListener("mousedown",Bge);return}t.addEventListener("touchstart",qI,{passive:!0}),t.addEventListener("touchend",Xv,{passive:!0}),t.addEventListener("touchmove",W2e,{passive:!0}),t.addEventListener("touchcancel",Xv),t.addEventListener("mousedown",qI),t.addEventListener("mouseup",Xv),t.addEventListener("mouseleave",Xv),t.addEventListener("keydown",Y2e),t.addEventListener("keyup",X2e),t.addEventListener("blur",G2e),t.addEventListener("dragstart",Xv,{passive:!0})}else!d&&o&&J2e(t)}function J2e(t){t.removeEventListener("mousedown",qI),t.removeEventListener("touchstart",qI),t.removeEventListener("touchend",Xv),t.removeEventListener("touchmove",W2e),t.removeEventListener("touchcancel",Xv),t.removeEventListener("mouseup",Xv),t.removeEventListener("mouseleave",Xv),t.removeEventListener("keydown",Y2e),t.removeEventListener("keyup",X2e),t.removeEventListener("dragstart",Xv),t.removeEventListener("blur",G2e)}function VRe(t,e){K2e(t,e,!1)}function URe(t){delete t._ripple,J2e(t)}function jRe(t,e){if(e.value===e.oldValue)return;const o=q2e(e.oldValue);K2e(t,e,o)}const cC={mounted:VRe,unmounted:URe,updated:jRe},QRe=gi({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:z2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Hl,appendIcon:Hl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...B_(),...Js(),...Q1(),...I_(),...ay(),...wue(),...vq(),..._D(),...bq(),...Pm(),...wq(),...sC(),...tf({tag:"button"}),...gd(),...Lx({variant:"elevated"})},"VBtn"),Ja=Oa()({name:"VBtn",props:QRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{densityClasses:s}=Rx(t),{dimensionStyles:n}=D_(t),{elevationClasses:u}=cb(t),{loaderClasses:b}=wD(t),{locationStyles:i}=gq(t),{positionClasses:S}=xq(t),{roundedClasses:w}=mg(t),{sizeClasses:y,sizeStyles:m}=xD(t),a=Oue(t,t.symbol,!1),c=_q(t,o),h=nr(()=>{var T;return t.active!==void 0?t.active:c.isLink.value?(T=c.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),p=nr(()=>{var P,A;return{color:(a==null?void 0:a.isSelected.value)&&(!c.isLink.value||((P=c.isActive)==null?void 0:P.value))||!a||((A=c.isActive)==null?void 0:A.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:O}=aC(p),C=nr(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=nr(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=nr(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var P;C.value||c.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((P=c.navigate)==null||P.call(c,T),a==null||a.toggle())}return NRe(c,a==null?void 0:a.select),Ga(()=>{const T=c.isLink.value?"a":t.tag,P=!!(t.prependIcon||f.prepend),A=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Kp($t(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":C.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},E.value,d.value,v.value,s.value,u.value,b.value,S.value,w.value,y.value,O.value,t.class],style:[_.value,n.value,i.value,m.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:C.value||void 0,href:c.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[iC(!0,"v-btn"),!t.icon&&P&&$t("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):$t(jl,{key:"prepend-icon",icon:t.prependIcon},null)]),$t("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?$t(jl,{key:"content-icon",icon:t.icon},null):$t(ef,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&A&&$t("span",{key:"append",class:"v-btn__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):$t(jl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&$t("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??$t(lC,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[cC,!C.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const HRe=fq("v-alert-title"),ZRe=["success","info","warning","error"],qRe=gi({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Hl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>ZRe.includes(t)},...Js(),...Q1(),...I_(),...ay(),..._D(),...bq(),...Pm(),...tf(),...gd(),...Lx({variant:"flat"})},"VAlert"),tM=Oa()({name:"VAlert",props:qRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),d=nr(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),s=nr(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=th(t),{colorClasses:u,colorStyles:b,variantClasses:i}=aC(s),{densityClasses:S}=Rx(t),{dimensionStyles:w}=D_(t),{elevationClasses:y}=cb(t),{locationStyles:m}=gq(t),{positionClasses:a}=xq(t),{roundedClasses:c}=mg(t),{textColorClasses:h,textColorStyles:p}=ry(ji(t,"borderColor")),{t:v}=oy(),_=nr(()=>({"aria-label":v(t.closeLabel),onClick(O){E.value=!1,o("click:close",O)}}));return()=>{const O=!!(f.prepend||d.value),C=!!(f.title||t.title),x=!!(f.close||t.closable);return E.value&&$t(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,u.value,S.value,y.value,a.value,c.value,i.value,t.class],style:[b.value,w.value,m.value,t.style],role:"alert"},{default:()=>{var R,M;return[iC(!1,"v-alert"),t.border&&$t("div",{key:"border",class:["v-alert__border",h.value],style:p.value},null),O&&$t("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):$t(jl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),$t("div",{class:"v-alert__content"},[C&&$t(HRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&$t("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&$t("div",{key:"close",class:"v-alert__close"},[f.close?$t(ef,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):$t(Ja,qi({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const WRe=gi({start:Boolean,end:Boolean,icon:Hl,image:String,text:String,...Js(),...Q1(),...Pm(),...sC(),...tf(),...gd(),...Lx({variant:"flat"})},"VAvatar"),DO=Oa()({name:"VAvatar",props:WRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{colorClasses:E,colorStyles:d,variantClasses:s}=aC(t),{densityClasses:n}=Rx(t),{roundedClasses:u}=mg(t),{sizeClasses:b,sizeStyles:i}=xD(t);return Ga(()=>$t(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,E.value,n.value,u.value,b.value,s.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?$t(ef,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?$t(oC,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?$t(jl,{key:"icon",icon:t.icon},null):t.text,iC(!1,"v-avatar")]})),{}}});const YRe=gi({text:String,onClick:fg(),...Js(),...gd()},"VLabel"),Oq=Oa()({name:"VLabel",props:YRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var f;return $t("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const e_e=Symbol.for("vuetify:selection-control-group"),t_e=gi({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Hl,trueIcon:Hl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:R4},...Js(),...Q1(),...gd()},"SelectionControlGroup"),XRe=gi({...t_e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Oa()({name:"VSelectionControlGroup",props:XRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),E=j1(),d=nr(()=>t.id||`v-selection-control-group-${E}`),s=nr(()=>t.name||d.value),n=new Set;return md(e_e,{modelValue:f,forceUpdate:()=>{n.forEach(u=>u())},onForceUpdate:u=>{n.add(u),hg(()=>{n.delete(u)})}}),ab({[t.defaultsTarget]:{color:ji(t,"color"),disabled:ji(t,"disabled"),density:ji(t,"density"),error:ji(t,"error"),inline:ji(t,"inline"),modelValue:f,multiple:nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:s,falseIcon:ji(t,"falseIcon"),trueIcon:ji(t,"trueIcon"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),type:ji(t,"type"),valueComparator:ji(t,"valueComparator")}}),Ga(()=>{var u;return $t("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(u=o.default)==null?void 0:u.call(o)])}),{}}});const Sue=gi({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Js(),...t_e()},"VSelectionControl");function GRe(t){const e=Kl(e_e,void 0),{densityClasses:o}=Rx(t),f=ql(t,"modelValue"),E=nr(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=nr(()=>t.falseValue!==void 0?t.falseValue:!1),s=nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=nr({get(){const y=e?e.modelValue.value:f.value;return s.value?Pp(y).some(m=>t.valueComparator(m,E.value)):t.valueComparator(y,E.value)},set(y){if(t.readonly)return;const m=y?E.value:d.value;let a=m;s.value&&(a=y?[...Pp(f.value),m]:Pp(f.value).filter(c=>!t.valueComparator(c,E.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:u,textColorStyles:b}=ry(nr(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=nr(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:E,falseValue:d,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,icon:w}}const pZ=Oa()({name:"VSelectionControl",directives:{Ripple:cC},inheritAttrs:!1,props:Sue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:E,densityClasses:d,icon:s,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,trueValue:w}=GRe(t),y=j1(),m=Gi(!1),a=Gi(!1),c=qo(),h=nr(()=>t.id||`input-${y}`),p=nr(()=>!t.disabled&&!t.readonly);E==null||E.onForceUpdate(()=>{c.value&&(c.value.checked=n.value)});function v(x){p.value&&(m.value=!0,mM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){m.value=!1,a.value=!1}function O(x){x.stopPropagation()}function C(x){if(!p.value){c.value&&(c.value.checked=n.value);return}t.readonly&&E&&Vc(()=>E.forceUpdate()),n.value=x.target.checked}return Ga(()=>{var P,A;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=bD(o),T=$t("input",qi({ref:c,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:C,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return $t("div",qi({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[$t("div",{class:["v-selection-control__wrapper",u.value],style:b.value},[(P=f.default)==null?void 0:P.call(f,{backgroundColorClasses:i,backgroundColorStyles:S}),Kp($t("div",{class:["v-selection-control__input"]},[((A=f.input)==null?void 0:A.call(f,{model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,inputNode:T,icon:s.value,props:{onFocus:v,onBlur:_,id:h.value}}))??$t(Ea,null,[s.value&&$t(jl,{key:"icon",icon:s.value},null),T])]),[[M_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&$t(Oq,{for:h.value,onClick:O},{default:()=>[x]})])}),{isFocused:m,input:c}}}),KRe=gi({indeterminate:Boolean,indeterminateIcon:{type:Hl,default:"$checkboxIndeterminate"},...Sue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),RM=Oa()({name:"VCheckboxBtn",props:KRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"indeterminate"),E=ql(t,"modelValue");function d(u){f.value&&(f.value=!1)}const s=nr(()=>f.value?t.indeterminateIcon:t.falseIcon),n=nr(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ga(()=>{const u=R_(pZ.filterProps(t),["modelValue"]);return $t(pZ,qi(u,{modelValue:E.value,"onUpdate:modelValue":[b=>E.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:s.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function n_e(t){const{t:e}=oy();function o(f){let{name:E}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[E],s=t[`onClick:${E}`],n=s&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return $t(jl,{icon:t[`${E}Icon`],"aria-label":n,onClick:s},null)}return{InputIcon:o}}const JRe=gi({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Js(),...rC({transition:{component:E2e,leaveAbsolute:!0,group:!0}})},"VMessages"),eLe=Oa()({name:"VMessages",props:JRe(),setup(t,e){let{slots:o}=e;const f=nr(()=>Pp(t.messages)),{textColorClasses:E,textColorStyles:d}=ry(nr(()=>t.color));return Ga(()=>$t(f4,{transition:t.transition,tag:"div",class:["v-messages",E.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((s,n)=>$t("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:s}):s]))]})),{}}}),Sq=gi({focused:Boolean,"onUpdate:focused":fg()},"focus");function uC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=ql(t,"focused"),f=nr(()=>({[`${e}--focused`]:o.value}));function E(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:E,blur:d}}const r_e=Symbol.for("vuetify:form"),tLe=gi({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function nLe(t){const e=ql(t,"modelValue"),o=nr(()=>t.disabled),f=nr(()=>t.readonly),E=Gi(!1),d=qo([]),s=qo([]);async function n(){const i=[];let S=!0;s.value=[],E.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(S=!1,i.push({id:w.id,errorMessages:y})),!S&&t.fastFail)break}return s.value=i,E.value=!1,{valid:S,errors:s.value}}function u(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return ia(d,()=>{let i=0,S=0;const w=[];for(const y of d.value)y.isValid===!1?(S++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;s.value=w,e.value=S>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),md(r_e,{register:i=>{let{id:S,vm:w,validate:y,reset:m,resetValidation:a}=i;d.value.some(c=>c.id===S),d.value.push({id:S,validate:y,reset:m,resetValidation:a,vm:aD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(S=>S.id!==i)},update:(i,S,w)=>{const y=d.value.find(m=>m.id===i);y&&(y.isValid=S,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validateOn:ji(t,"validateOn")}),{errors:s,isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validate:n,reset:u,resetValidation:b}}function kq(){return Kl(r_e,null)}const rLe=gi({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Sq()},"validation");function oLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j1();const f=ql(t,"modelValue"),E=nr(()=>t.validationValue===void 0?f.value:t.validationValue),d=kq(),s=qo([]),n=Gi(!0),u=nr(()=>!!(Pp(f.value===""?null:f.value).length||Pp(E.value===""?null:E.value).length)),b=nr(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=nr(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),S=nr(()=>{var O;return(O=t.errorMessages)!=null&&O.length?Pp(t.errorMessages).concat(s.value).slice(0,Math.max(0,+t.maxErrors)):s.value}),w=nr(()=>{let O=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";O==="lazy"&&(O="input lazy");const C=new Set((O==null?void 0:O.split(" "))??[]);return{blur:C.has("blur")||C.has("input"),input:C.has("input"),submit:C.has("submit"),lazy:C.has("lazy")}}),y=nr(()=>{var O;return t.error||(O=t.errorMessages)!=null&&O.length?!1:t.rules.length?n.value?s.value.length||w.value.lazy?null:!0:!s.value.length:!0}),m=Gi(!1),a=nr(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:u.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),c=Xh("validation"),h=nr(()=>t.name??Va(o));rce(()=>{d==null||d.register({id:h.value,vm:c,validate:_,reset:p,resetValidation:v})}),Em(()=>{d==null||d.unregister(h.value)}),pg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,S.value)}),$1(()=>w.value.input,()=>{ia(E,()=>{if(E.value!=null)_();else if(t.focused){const O=ia(()=>t.focused,C=>{C||_(),O()})}})}),$1(()=>w.value.blur,()=>{ia(()=>t.focused,O=>{O||_()})}),ia([y,S],()=>{d==null||d.update(h.value,y.value,S.value)});async function p(){f.value=null,await Vc(),await v()}async function v(){n.value=!0,w.value.lazy?s.value=[]:await _(!0)}async function _(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=[];m.value=!0;for(const x of t.rules){if(C.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(E.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}C.push(M||"")}}return s.value=C,m.value=!1,n.value=O,s.value}return{errorMessages:S,isDirty:u,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:m,reset:p,resetValidation:v,validate:_,validationClasses:a}}const fC=gi({id:String,appendIcon:Hl,centerAffix:{type:Boolean,default:!0},prependIcon:Hl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":fg(),"onClick:append":fg(),...Js(),...Q1(),...s9e(I_(),["maxWidth","minWidth","width"]),...gd(),...rLe()},"VInput"),sb=Oa()({name:"VInput",props:{...fC()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const{densityClasses:d}=Rx(t),{dimensionStyles:s}=D_(t),{themeClasses:n}=th(t),{rtlClasses:u}=n0(),{InputIcon:b}=n_e(t),i=j1(),S=nr(()=>t.id||`input-${i}`),w=nr(()=>`${S.value}-messages`),{errorMessages:y,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C,validationClasses:x}=oLe(t,"v-input",S),R=nr(()=>({id:S,messagesId:w,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C})),M=nr(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ga(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),P=!!(f.append||t.appendIcon),A=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(A||!!f.details);return $t("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,u.value,x.value,t.class],style:[s.value,t.style]},[T&&$t("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&$t(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&$t("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),P&&$t("div",{key:"append",class:"v-input__append"},[t.appendIcon&&$t(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&$t("div",{class:"v-input__details"},[$t(eLe,{id:w.value,active:A,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:O,validate:C,isValid:p,errorMessages:y}}});const Tq=["sm","md","lg","xl","xxl"],ole=Symbol.for("vuetify:display"),zge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},iLe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zge;return Jg(zge,t)};function Nge(t){return Hu&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function Fge(t){return Hu&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function $ge(t){const e=Hu&&!t?window.navigator.userAgent:"ssr";function o(m){return!!e.match(m)}const f=o(/android/i),E=o(/iphone|ipad|ipod/i),d=o(/cordova/i),s=o(/electron/i),n=o(/chrome/i),u=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),S=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:E,cordova:d,electron:s,chrome:n,edge:u,firefox:b,opera:i,win:S,mac:w,linux:y,touch:o9e,ssr:e==="ssr"}}function aLe(t,e){const{thresholds:o,mobileBreakpoint:f}=iLe(t),E=Gi(Fge(e)),d=Gi($ge(e)),s=Am({}),n=Gi(Nge(e));function u(){E.value=Fge(),n.value=Nge()}function b(){u(),d.value=$ge()}return Gp(()=>{const i=n.value=o.xxl,c=i?"xs":S?"sm":w?"md":y?"lg":m?"xl":"xxl",h=typeof f=="number"?f:o[f],p=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=Kl(ole);if(!o)throw new Error("Could not find Vuetify display injection");const f=nr(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:E,mobile:f}}const o_e=Symbol.for("vuetify:goto");function i_e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function sLe(t){return kue(t)??(document.scrollingElement||document.body)}function kue(t){return typeof t=="string"?document.querySelector(t):lue(t)}function aae(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=kue(t),E=0;for(;f;)E+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return E}function lLe(t,e){return{rtl:e.isRtl,options:Jg(i_e(),t)}}async function Vge(t,e,o,f){const E=o?"scrollLeft":"scrollTop",d=Jg((f==null?void 0:f.options)??i_e(),e),s=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:kue(t))??0,u=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:sLe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=aae(n,o,s);else if(i=aae(n,o,s)-aae(u,o,s),d.layout){const m=window.getComputedStyle(n).getPropertyValue("--v-layout-top");m&&(i-=parseInt(m,10))}i+=d.offset,i=uLe(u,i,!!s,!!o);const S=u[E]??0;if(i===S)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function m(a){const h=(a-w)/d.duration,p=Math.floor(S+(i-S)*b(ug(h,0,1)));if(u[E]=p,h>=1&&Math.abs(p-u[E])<10)return y(i);if(h>2)return y(u[E]);requestAnimationFrame(m)}))}function cLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=Kl(o_e),{isRtl:o}=n0();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:nr(()=>e.rtl.value||o.value)};async function E(d,s){return Vge(d,Jg(t,s),!1,f)}return E.horizontal=async(d,s)=>Vge(d,Jg(t,s),!0,f),E}function uLe(t,e,o,f){const{scrollWidth:E,scrollHeight:d}=t,[s,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let u,b;return f?o?(u=-(E-s),b=0):(u=0,b=E-s):(u=0,b=d+-n),Math.max(Math.min(e,b),u)}function fLe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:E}=t;const d=YI(E,o),s=a_e(E,f,o),n=YI(E,e),u=s_e(E,e),b=n*.4;return s>u?u-b:s+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Js(),...OD({mobile:null}),...tf(),...hq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),jge=Oa()({name:"VSlideGroup",props:l_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=n0(),{displayClasses:E,mobile:d}=L4(t),s=pq(t,t.symbol),n=Gi(!1),u=Gi(0),b=Gi(0),i=Gi(0),S=nr(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=T4(),{resizeRef:m,contentRect:a}=T4(),c=cLe(),h=nr(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),p=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[0]):-1),v=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[s.selected.value.length-1]):-1);if(Hu){let j=-1;ia(()=>[s.selected.value,y.value,a.value,S.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=S.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&m.el){const U=m.el.children[v.value];O(U,t.centerActive)}})})}const _=Gi(!1);function O(j,U){let X=0;U?X=dLe({containerElement:w.el,isHorizontal:S.value,selectedElement:j}):X=fLe({containerElement:w.el,isHorizontal:S.value,isRtl:f.value,selectedElement:j}),C(X)}function C(j){if(!Hu||!w.el)return;const U=YI(S.value,w.el),X=a_e(S.value,f.value,w.el);if(!(Uge(S.value,w.el)<=U||Math.abs(j-X)<16)){if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;j=Z-K-j}S.value?c.horizontal(j,h.value):c(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;u.value=S.value?X:U}function R(j){if(_.value=!0,!(!n.value||!m.el)){for(const U of j.composedPath())for(const X of m.el.children)if(X===U){O(X);return}}}function M(j){_.value=!1}let T=!1;function P(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=m.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function A(){T=!0}function L(j){if(!m.el)return;function U(X){j.preventDefault(),D(X)}S.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!m.el)return;let U;if(!j)U=QI(m.el)[0];else if(j==="next"){if(U=(X=m.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=m.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=m.el.firstElementChild:j==="last"&&(U=m.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=S.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=u.value+X;if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;te+=Z-K}C(te)}const I=nr(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),z=nr(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(u.value)>0;case"mobile":return d.value||n.value||Math.abs(u.value)>0;default:return!d.value&&(n.value||Math.abs(u.value)>0)}}),$=nr(()=>Math.abs(u.value)>1),Q=nr(()=>{if(!w.value)return!1;const j=Uge(S.value,w.el),U=hLe(S.value,w.el);return j-U-Math.abs(u.value)>1});return Ga(()=>$t(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!S.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},E.value,t.class],style:t.style,tabindex:_.value||s.selected.value.length?-1:0,onFocus:P},{default:()=>{var j,U,X;return[z.value&&$t("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:A,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??$t(Mge,null,{default:()=>[$t(jl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),$t("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[$t("div",{ref:m,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&$t("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:A,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??$t(Mge,null,{default:()=>[$t(jl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:k,scrollOffset:u,focus:D}}}),c_e=Symbol.for("vuetify:v-chip-group"),mLe=gi({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:R4},...l_e(),...Js(),...hq({selectedClass:"v-chip--selected"}),...tf(),...gd(),...Lx({variant:"tonal"})},"VChipGroup");Oa()({name:"VChipGroup",props:mLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{isSelected:E,select:d,next:s,prev:n,selected:u}=pq(t,c_e);return ab({VChip:{color:ji(t,"color"),disabled:ji(t,"disabled"),filter:ji(t,"filter"),variant:ji(t,"variant")}}),Ga(()=>{const b=jge.filterProps(t);return $t(jge,qi(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:E,select:d,next:s,prev:n,selected:u.value})]}})}),{}}});const gLe=gi({activeClass:String,appendAvatar:String,appendIcon:Hl,closable:Boolean,closeIcon:{type:Hl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...ay(),...wue(),...Pm(),...wq(),...sC(),...tf({tag:"span"}),...gd(),...Lx({variant:"tonal"})},"VChip"),LM=Oa()({name:"VChip",directives:{Ripple:cC},props:gLe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=oy(),{borderClasses:s}=$O(t),{colorClasses:n,colorStyles:u,variantClasses:b}=aC(t),{densityClasses:i}=Rx(t),{elevationClasses:S}=cb(t),{roundedClasses:w}=mg(t),{sizeClasses:y}=xD(t),{themeClasses:m}=th(t),a=ql(t,"modelValue"),c=Oue(t,c_e,!1),h=_q(t,o),p=nr(()=>t.link!==!1&&h.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(!!c||t.link||h.isClickable.value)),_=nr(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function O(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),c==null||c.toggle())}function C(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),O(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||E.append),T=!!(E.close||t.closable),P=!!(E.filter||t.filter)&&c,A=!!(t.prependIcon||t.prependAvatar),L=!!(A||E.prepend),D=!c||c.isSelected.value;return a.value&&Kp($t(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":P,"v-chip--pill":t.pill},m.value,s.value,D?n.value:void 0,i.value,S.value,w.value,y.value,b.value,c==null?void 0:c.selectedClass.value,t.class],style:[D?u.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:O,onKeydown:v.value&&!p.value&&C},{default:()=>{var k;return[iC(v.value,"v-chip"),P&&$t(P2e,{key:"filter"},{default:()=>[Kp($t("div",{class:"v-chip__filter"},[E.filter?$t(ef,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},E.filter):$t(jl,{key:"filter-icon",icon:t.filterIcon},null)]),[[A4,c.isSelected.value]])]}),L&&$t("div",{key:"prepend",class:"v-chip__prepend"},[E.prepend?$t(ef,{key:"prepend-defaults",disabled:!A,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},E.prepend):$t(Ea,null,[t.prependIcon&&$t(jl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&$t(DO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),$t("div",{class:"v-chip__content","data-no-activator":""},[((k=E.default)==null?void 0:k.call(E,{isSelected:c==null?void 0:c.isSelected.value,selectedClass:c==null?void 0:c.selectedClass.value,select:c==null?void 0:c.select,toggle:c==null?void 0:c.toggle,value:c==null?void 0:c.value.value,disabled:t.disabled}))??t.text]),M&&$t("div",{key:"append",class:"v-chip__append"},[E.append?$t(ef,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},E.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&$t("button",qi({key:"close",class:"v-chip__close",type:"button"},_.value),[E.close?$t(ef,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},E.close):$t(jl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[M_("ripple"),v.value&&t.ripple,null]])}}});const ile=Symbol.for("vuetify:list");function u_e(){const t=Kl(ile,{hasPrepend:Gi(!1),updateHasPrepend:()=>null}),e={hasPrepend:Gi(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return md(ile,e),t}function f_e(){return Kl(ile,null)}const Tue=t=>{const e={activate:o=>{let{id:f,value:E,activated:d}=o;return f=sl(f),t&&!E&&d.size===1&&d.has(f)||(E?d.add(f):d.delete(f)),d},in:(o,f,E)=>{let d=new Set;if(o!=null)for(const s of Pp(o))d=e.activate({id:s,value:!0,activated:new Set(d),children:f,parents:E});return d},out:o=>Array.from(o)};return e},d_e=t=>{const e=Tue(t);return{activate:f=>{let{activated:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Set([d]):new Set;return e.activate({...s,id:d,activated:n})},in:(f,E,d)=>{let s=new Set;if(f!=null){const n=Pp(f);n.length&&(s=e.in(n.slice(0,1),E,d))}return s},out:(f,E,d)=>e.out(f,E,d)}},vLe=t=>{const e=Tue(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},yLe=t=>{const e=d_e(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},bLe={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){const d=new Set;d.add(e);let s=E.get(e);for(;s!=null;)d.add(s),s=E.get(s);return d}else return f.delete(e),f},select:()=>null},h_e={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){let d=E.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=E.get(d);return f}else f.delete(e);return f},select:()=>null},xLe={open:h_e.open,select:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(!o)return f;const d=[];let s=E.get(e);for(;s!=null;)d.push(s),s=E.get(s);return new Set(d)}},Cue=t=>{const e={select:o=>{let{id:f,value:E,selected:d}=o;if(f=sl(f),t&&!E){const s=Array.from(d.entries()).reduce((n,u)=>{let[b,i]=u;return i==="on"&&n.push(b),n},[]);if(s.length===1&&s[0]===f)return d}return d.set(f,E?"on":"off"),d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:o=>{const f=[];for(const[E,d]of o.entries())d==="on"&&f.push(E);return f}};return e},p_e=t=>{const e=Cue(t);return{select:f=>{let{selected:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Map([[d,E.get(d)]]):new Map;return e.select({...s,id:d,selected:n})},in:(f,E,d)=>{let s=new Map;return f!=null&&f.length&&(s=e.in(f.slice(0,1),E,d)),s},out:(f,E,d)=>e.out(f,E,d)}},_Le=t=>{const e=Cue(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},wLe=t=>{const e=p_e(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},OLe=t=>{const e={select:o=>{let{id:f,value:E,selected:d,children:s,parents:n}=o;f=sl(f);const u=new Map(d),b=[f];for(;b.length;){const S=b.shift();d.set(S,E?"on":"off"),s.has(S)&&b.push(...s.get(S))}let i=n.get(f);for(;i;){const S=s.get(i),w=S.every(m=>d.get(m)==="on"),y=S.every(m=>!d.has(m)||d.get(m)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!E&&Array.from(d.entries()).reduce((w,y)=>{let[m,a]=y;return a==="on"&&w.push(m),w},[]).length===0?u:d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:(o,f)=>{const E=[];for(const[d,s]of o.entries())s==="on"&&!f.has(d)&&E.push(d);return E}};return e},XI=Symbol.for("vuetify:nested"),m_e={id:Gi(),root:{register:()=>null,unregister:()=>null,parents:qo(new Map),children:qo(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:qo(!1),selectable:qo(!1),opened:qo(new Set),activated:qo(new Set),selected:qo(new Map),selectedValues:qo([])}},SLe=gi({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),kLe=t=>{let e=!1;const o=qo(new Map),f=qo(new Map),E=ql(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=nr(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return vLe(t.mandatory);case"single-leaf":return yLe(t.mandatory);case"independent":return Tue(t.mandatory);case"single-independent":default:return d_e(t.mandatory)}}),s=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return wLe(t.mandatory);case"leaf":return _Le(t.mandatory);case"independent":return Cue(t.mandatory);case"single-independent":return p_e(t.mandatory);case"classic":default:return OLe(t.mandatory)}}),n=nr(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return xLe;case"single":return bLe;case"multiple":default:return h_e}}),u=ql(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=ql(t,"selected",t.selected,y=>s.value.in(y,o.value,f.value),y=>s.value.out(y,o.value,f.value));Em(()=>{e=!0});function i(y){const m=[];let a=y;for(;a!=null;)m.unshift(a),a=f.value.get(a);return m}const S=Xh("nested"),w={id:Gi(),root:{opened:E,activatable:ji(t,"activatable"),selectable:ji(t,"selectable"),activated:u,selected:b,selectedValues:nr(()=>{const y=[];for(const[m,a]of b.value.entries())a==="on"&&y.push(m);return y}),register:(y,m,a)=>{m&&y!==m&&f.value.set(y,m),a&&o.value.set(y,[]),m!=null&&o.value.set(m,[...o.value.get(m)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const m=f.value.get(y);if(m){const a=o.value.get(m)??[];o.value.set(m,a.filter(c=>c!==y))}f.value.delete(y)},open:(y,m,a)=>{S.emit("click:open",{id:y,value:m,path:i(y),event:a});const c=n.value.open({id:y,value:m,opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},openOnSelect:(y,m,a)=>{const c=n.value.select({id:y,value:m,selected:new Map(b.value),opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},select:(y,m,a)=>{S.emit("click:select",{id:y,value:m,path:i(y),event:a});const c=s.value.select({id:y,value:m,selected:new Map(b.value),children:o.value,parents:f.value,event:a});c&&(b.value=c),w.root.openOnSelect(y,m,a)},activate:(y,m,a)=>{if(!t.activatable)return w.root.select(y,!0,a);S.emit("click:activate",{id:y,value:m,path:i(y),event:a});const c=d.value.activate({id:y,value:m,activated:new Set(u.value),children:o.value,parents:f.value,event:a});c&&(u.value=c)},children:o,parents:f}};return md(XI,w),w.root},g_e=(t,e)=>{const o=Kl(XI,m_e),f=Symbol(j1()),E=nr(()=>t.value!==void 0?t.value:f),d={...o,id:E,open:(s,n)=>o.root.open(E.value,s,n),openOnSelect:(s,n)=>o.root.openOnSelect(E.value,s,n),isOpen:nr(()=>o.root.opened.value.has(E.value)),parent:nr(()=>o.root.parents.value.get(E.value)),activate:(s,n)=>o.root.activate(E.value,s,n),isActivated:nr(()=>o.root.activated.value.has(sl(E.value))),select:(s,n)=>o.root.select(E.value,s,n),isSelected:nr(()=>o.root.selected.value.get(sl(E.value))==="on"),isIndeterminate:nr(()=>o.root.selected.value.get(E.value)==="indeterminate"),isLeaf:nr(()=>!o.root.children.value.get(E.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(E.value,o.id.value,e),Em(()=>{!o.isGroupActivator&&o.root.unregister(E.value)}),e&&md(XI,d),d},TLe=()=>{const t=Kl(XI,m_e);md(XI,{...t,isGroupActivator:!0})},CLe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return TLe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),ALe=gi({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Hl,default:"$collapse"},expandIcon:{type:Hl,default:"$expand"},prependIcon:Hl,appendIcon:Hl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Js(),...tf()},"VListGroup"),Qge=Oa()({name:"VListGroup",props:ALe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:E,id:d}=g_e(ji(t,"value"),!0),s=nr(()=>`v-list-group--id-${String(d.value)}`),n=f_e(),{isBooted:u}=dq();function b(y){y.stopPropagation(),E(!f.value,y)}const i=nr(()=>({onClick:b,class:"v-list-group__header",id:s.value})),S=nr(()=>f.value?t.collapseIcon:t.expandIcon),w=nr(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&S.value,appendIcon:t.appendIcon||!t.subgroup&&S.value,title:t.title,value:t.value}}));return Ga(()=>$t(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&$t(ef,{defaults:w.value},{default:()=>[$t(CLe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),$t(f4,{transition:{component:bue},disabled:!u.value},{default:()=>{var y;return[Kp($t("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(y=o.default)==null?void 0:y.call(o)]),[[A4,f.value]])]}})]})),{isOpen:f}}});const MLe=gi({opacity:[Number,String],...Js(),...tf()},"VListItemSubtitle"),ELe=Oa()({name:"VListItemSubtitle",props:MLe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),z1=fq("v-list-item-title"),PLe=gi({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Hl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...I_(),...ay(),...Pm(),...wq(),...tf(),...gd(),...Lx({variant:"text"})},"VListItem"),Xf=Oa()({name:"VListItem",directives:{Ripple:cC},props:PLe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const d=_q(t,o),s=nr(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:u,select:b,isSelected:i,isIndeterminate:S,isGroupActivator:w,root:y,parent:m,openOnSelect:a}=g_e(s,!1),c=f_e(),h=nr(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?u.value:i.value))}),p=nr(()=>t.link!==!1&&d.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!c&&(y.selectable.value||y.activatable.value||t.value!=null))),_=nr(()=>t.rounded||t.nav),O=nr(()=>t.color??t.activeColor),C=nr(()=>({color:h.value?O.value??t.baseColor:t.baseColor,variant:t.variant}));ia(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&m.value!=null&&y.open(m.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=th(t),{borderClasses:R}=$O(t),{colorClasses:M,colorStyles:T,variantClasses:P}=aC(C),{densityClasses:A}=Rx(t),{dimensionStyles:L}=D_(t),{elevationClasses:D}=cb(t),{roundedClasses:k}=mg(_),I=nr(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=nr(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:S.value}));function $(j){var U;E("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!u.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ga(()=>{const j=p.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),Z=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),re=!!(K||f.prepend);return c==null||c.updateHasPrepend(re),t.activeColor&&T9e("active-color",["color","base-color"]),Kp($t(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!re&&(c==null?void 0:c.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,A.value,D.value,I.value,k.value,P.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?c?-2:0:void 0,onClick:$,onKeydown:v.value&&!p.value&&Q},{default:()=>{var q;return[iC(v.value||h.value,"v-list-item"),re&&$t("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),$t("div",{class:"v-list-item__spacer"},null)]),$t("div",{class:"v-list-item__content","data-no-activator":""},[U&&$t(z1,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&$t(ELe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),Z&&$t("div",{key:"append",class:"v-list-item__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),$t("div",{class:"v-list-item__spacer"},null)])]}}),[[M_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:u,isGroupActivator:w,isSelected:i,list:c,select:b}}}),RLe=gi({color:String,inset:Boolean,sticky:Boolean,title:String,...Js(),...tf()},"VListSubheader"),LLe=Oa()({name:"VListSubheader",props:RLe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:E}=ry(ji(t,"color"));return Ga(()=>{const d=!!(o.default||t.title);return $t(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:E},t.style]},{default:()=>{var s;return[d&&$t("div",{class:"v-list-subheader__text"},[((s=o.default)==null?void 0:s.call(o))??t.title])]}})}),{}}});const ILe=gi({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Js(),...gd()},"VDivider"),vM=Oa()({name:"VDivider",props:ILe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{textColorClasses:d,textColorStyles:s}=ry(ji(t,"color")),n=nr(()=>{const u={};return t.length&&(u[t.vertical?"height":"width"]=is(t.length)),t.thickness&&(u[t.vertical?"borderRightWidth":"borderTopWidth"]=is(t.thickness)),u});return Ga(()=>{const u=$t("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},E.value,d.value,t.class],style:[n.value,s.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?$t("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[u,$t("div",{class:"v-divider__content"},[f.default()]),u]):u}),{}}}),DLe=gi({items:Array,returnObject:Boolean},"VListChildren"),v_e=Oa()({name:"VListChildren",props:DLe(),setup(t,e){let{slots:o}=e;return u_e(),()=>{var f,E;return((f=o.default)==null?void 0:f.call(o))??((E=t.items)==null?void 0:E.map(d=>{var w,y;let{children:s,props:n,type:u,raw:b}=d;if(u==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??$t(vM,n,null);if(u==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??$t(LLe,n,null);const i={subtitle:o.subtitle?m=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...m,item:b})}:void 0,prepend:o.prepend?m=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...m,item:b})}:void 0,append:o.append?m=>{var a;return(a=o.append)==null?void 0:a.call(o,{...m,item:b})}:void 0,title:o.title?m=>{var a;return(a=o.title)==null?void 0:a.call(o,{...m,item:b})}:void 0},S=Qge.filterProps(n);return s?$t(Qge,qi({value:n==null?void 0:n.value},S),{activator:m=>{let{props:a}=m;const c={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:c}):$t(Xf,c,i)},default:()=>$t(v_e,{items:s,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):$t(Xf,qi(n,{value:t.returnObject?b:n.value}),i)}))}}}),y_e=gi({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:R4}},"list-items");function a4(t,e){const o=N1(e,t.itemTitle,e),f=N1(e,t.itemValue,o),E=N1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?R_(e,["children"]):e:void 0:N1(e,t.itemProps),s={title:o,value:f,...d};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(E)?b_e(t,E):void 0,raw:e}}function b_e(t,e){const o=[];for(const f of e)o.push(a4(t,f));return o}function Aue(t){const e=nr(()=>b_e(t,t.items)),o=nr(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(s=>s!==null)),d.map(s=>t.returnObject&&typeof s=="string"?a4(t,s):e.value.find(n=>t.valueComparator(s,n.value))||a4(t,s))}function E(d){return t.returnObject?d.map(s=>{let{raw:n}=s;return n}):d.map(s=>{let{value:n}=s;return n})}return{items:e,transformIn:f,transformOut:E}}function BLe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function zLe(t,e){const o=N1(e,t.itemType,"item"),f=BLe(e)?e:N1(e,t.itemTitle),E=N1(e,t.itemValue,void 0),d=N1(e,t.itemChildren),s=t.itemProps===!0?R_(e,["children"]):N1(e,t.itemProps),n={title:f,value:E,...s};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?x_e(t,d):void 0,raw:e}}function x_e(t,e){const o=[];for(const f of e)o.push(zLe(t,f));return o}function NLe(t){return{items:nr(()=>x_e(t,t.items))}}const FLe=gi({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":fg(),"onClick:select":fg(),"onUpdate:opened":fg(),...SLe({selectStrategy:"single-leaf",openStrategy:"list"}),...B_(),...Js(),...Q1(),...I_(),...ay(),itemType:{type:String,default:"type"},...y_e(),...Pm(),...tf(),...gd(),...Lx({variant:"text"})},"VList"),Ax=Oa()({name:"VList",props:FLe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=NLe(t),{themeClasses:E}=th(t),{backgroundColorClasses:d,backgroundColorStyles:s}=dg(ji(t,"bgColor")),{borderClasses:n}=$O(t),{densityClasses:u}=Rx(t),{dimensionStyles:b}=D_(t),{elevationClasses:i}=cb(t),{roundedClasses:S}=mg(t),{children:w,open:y,parents:m,select:a}=kLe(t),c=nr(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=ji(t,"activeColor"),p=ji(t,"baseColor"),v=ji(t,"color");u_e(),ab({VListGroup:{activeColor:h,baseColor:p,color:v,expandIcon:ji(t,"expandIcon"),collapseIcon:ji(t,"collapseIcon")},VListItem:{activeClass:ji(t,"activeClass"),activeColor:h,baseColor:p,color:v,density:ji(t,"density"),disabled:ji(t,"disabled"),lines:ji(t,"lines"),nav:ji(t,"nav"),slim:ji(t,"slim"),variant:ji(t,"variant")}});const _=Gi(!1),O=qo();function C(A){_.value=!0}function x(A){_.value=!1}function R(A){var L;!_.value&&!(A.relatedTarget&&((L=O.value)!=null&&L.contains(A.relatedTarget)))&&P()}function M(A){const L=A.target;if(!(!O.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(A.key==="ArrowDown")P("next");else if(A.key==="ArrowUp")P("prev");else if(A.key==="Home")P("first");else if(A.key==="End")P("last");else return;A.preventDefault()}}function T(A){_.value=!0}function P(A){if(O.value)return sZ(O.value,A)}return Ga(()=>$t(t.tag,{ref:O,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},E.value,d.value,n.value,u.value,i.value,c.value,S.value,t.class],style:[s.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[$t(v_e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:P,children:w,parents:m}}});function sae(t,e){return{x:t.x+e.x,y:t.y+e.y}}function $Le(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,E=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return sae({x:E,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,E=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return sae({x:E,y:d},e)}return sae({x:e.width/2,y:e.height/2},e)}const __e={static:jLe,connected:HLe},VLe=gi({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in __e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function ULe(t,e){const o=qo({}),f=qo();Hu&&$1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var s,n;ia(()=>t.locationStrategy,d),hg(()=>{window.removeEventListener("resize",E),f.value=void 0}),window.addEventListener("resize",E,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(s=t.locationStrategy(e,t,o))==null?void 0:s.updateLocation:f.value=(n=__e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function E(d){var s;(s=f.value)==null||s.call(f,d)}return{contentStyles:o,updateLocation:f}}function jLe(){}function QLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=due(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function HLe(t,e,o){(Array.isArray(t.target.value)||Y9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:E,preferredOrigin:d}=uue(()=>{const m=Kse(e.location,t.isRtl.value),a=e.origin==="overlap"?m:e.origin==="auto"?nae(m):Kse(e.origin,t.isRtl.value);return m.side===a.side&&m.align===rae(a).align?{preferredAnchor:lge(m),preferredOrigin:lge(a)}:{preferredAnchor:m,preferredOrigin:a}}),[s,n,u,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>nr(()=>{const a=parseFloat(e[m]);return isNaN(a)?1/0:a})),i=nr(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const m=e.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let S=!1;const w=new ResizeObserver(()=>{S&&y()});ia([t.target,t.contentEl],(m,a)=>{let[c,h]=m,[p,v]=a;p&&!Array.isArray(p)&&w.unobserve(p),c&&!Array.isArray(c)&&w.observe(c),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),hg(()=>{w.disconnect()});function y(){if(S=!1,requestAnimationFrame(()=>S=!0),!t.target.value||!t.contentEl.value)return;const m=h2e(t.target.value),a=QLe(t.contentEl.value,t.isRtl.value),c=uZ(t.contentEl.value),h=12;c.length||(c.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=c.reduce((P,A)=>{const L=A.getBoundingClientRect(),D=new QT({x:A===document.documentElement?0:L.x,y:A===document.documentElement?0:L.y,width:A.clientWidth,height:A.clientHeight});return P?new QT({x:Math.max(P.left,D.left),y:Math.max(P.top,D.top),width:Math.min(P.right,D.right)-Math.max(P.left,D.left),height:Math.min(P.bottom,D.bottom)-Math.max(P.top,D.top)}):D},void 0);p.x+=h,p.y+=h,p.width-=h*2,p.height-=h*2;let v={anchor:E.value,origin:d.value};function _(P){const A=new QT(a),L=Hge(P.anchor,m),D=Hge(P.origin,A);let{x:k,y:I}=$Le(L,D);switch(P.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(P.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return A.x+=k,A.y+=I,A.width=Math.min(A.width,u.value),A.height=Math.min(A.height,b.value),{overflows:uge(A,p),x:k,y:I}}let O=0,C=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:P,y:A,overflows:L}=_(v);O+=P,C+=A,a.x+=P,a.y+=A;{const D=cge(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?rae:nae:D==="y"?nae:rae;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(O+=L.x.before,a.x+=L.x.before),L.x.after&&(O-=L.x.after,a.x-=L.x.after),L.y.before&&(C+=L.y.before,a.y+=L.y.before),L.y.after&&(C-=L.y.after,a.y-=L.y.after);{const D=uge(a,p);x.x=p.width-D.x.before-D.x.after,x.y=p.height-D.y.before-D.y.after,O+=D.x.before,a.x+=D.x.before,C+=D.y.before,a.y+=D.y.before}break}const T=cge(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:is(lae(C)),left:t.isRtl.value?void 0:is(lae(O)),right:t.isRtl.value?is(lae(-O)):void 0,minWidth:is(T==="y"?Math.min(s.value,m.width):s.value),maxWidth:is(Zge(ug(x.x,s.value===1/0?0:s.value,u.value))),maxHeight:is(Zge(ug(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return ia(()=>[E.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),Vc(()=>{const m=y();if(!m)return;const{available:a,contentBox:c}=m;c.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function lae(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Zge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let ale=!0;const mZ=[];function ZLe(t){!ale||mZ.length?(mZ.push(t),sle()):(ale=!1,t(),sle())}let qge=-1;function sle(){cancelAnimationFrame(qge),qge=requestAnimationFrame(()=>{const t=mZ.shift();t&&t(),mZ.length?sle():ale=!0})}const _H={none:null,close:YLe,block:XLe,reposition:GLe},qLe=gi({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in _H}},"VOverlay-scroll-strategies");function WLe(t,e){if(!Hu)return;let o;Gp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=iD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=_H[t.scrollStrategy])==null||f.call(_H,e,t,o)}))}),hg(()=>{o==null||o.stop()})}function YLe(t){function e(o){t.isActive.value=!1}w_e(t.targetEl.value??t.contentEl.value,e)}function XLe(t,e){var s;const o=(s=t.root.value)==null?void 0:s.offsetParent,f=[...new Set([...uZ(t.targetEl.value,e.contained?o:void 0),...uZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),E=window.innerWidth-document.documentElement.offsetWidth,d=(n=>mue(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,u)=>{n.style.setProperty("--v-body-scroll-x",is(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",is(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",is(E)),n.classList.add("v-overlay-scroll-blocked")}),hg(()=>{f.forEach((n,u)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),S=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=S}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function GLe(t,e,o){let f=!1,E=-1,d=-1;function s(n){ZLe(()=>{var i,S;const u=performance.now();(S=(i=t.updateLocation).value)==null||S.call(i,n),f=(performance.now()-u)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{w_e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(E),E=requestAnimationFrame(()=>{E=requestAnimationFrame(()=>{s(n)})})):s(n)})})}),hg(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(E)})}function w_e(t,e){const o=[document,...uZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),hg(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const lle=Symbol.for("vuetify:v-menu"),O_e=gi({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function S_e(t,e){let o=()=>{};function f(s){o==null||o();const n=Number(s?t.openDelay:t.closeDelay);return new Promise(u=>{o=p9e(n,()=>{e==null||e(s),u(s)})})}function E(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:E,runCloseDelay:d}}const KLe=gi({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...O_e()},"VOverlay-activator");function JLe(t,e){let{isActive:o,isTop:f}=e;const E=Xh("useActivator"),d=qo();let s=!1,n=!1,u=!0;const b=nr(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=nr(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:S,runCloseDelay:w}=S_e(t,x=>{x===(t.openOnHover&&s||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(u=!0),o.value=x)}),y=qo(),m={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(s=!0,d.value=x.currentTarget||x.target,S())},onMouseleave:x=>{s=!1,w()},onFocus:x=>{mM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,S())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=nr(()=>{const x={};return i.value&&(x.onClick=m.onClick),t.openOnHover&&(x.onMouseenter=m.onMouseenter,x.onMouseleave=m.onMouseleave),b.value&&(x.onFocus=m.onFocus,x.onBlur=m.onBlur),x}),c=nr(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{s=!0,S()},x.onMouseleave=()=>{s=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,S()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=Kl(lle,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=nr(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{u&&(s=!0,u=!1,S())},x.onMouseleave=()=>{s=!1,w()}),x});ia(f,x=>{x&&(t.openOnHover&&!s&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!s))&&(o.value=!1)}),ia(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const p=Gse();Gp(()=>{p.value&&Vc(()=>{d.value=p.el})});const v=Gse(),_=nr(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:k_e(t.target,E)||d.value),O=nr(()=>Array.isArray(_.value)?void 0:_.value);let C;return ia(()=>!!t.activator,x=>{x&&Hu?(C=iD(),C.run(()=>{eIe(t,E,{activatorEl:d,activatorEvents:a})})):C&&C.stop()},{flush:"post",immediate:!0}),hg(()=>{C==null||C.stop()}),{activatorEl:d,activatorRef:p,target:_,targetEl:O,targetRef:v,activatorEvents:a,contentEvents:c,scrimEvents:h}}function eIe(t,e,o){let{activatorEl:f,activatorEvents:E}=o;ia(()=>t.activator,(u,b)=>{if(b&&u!==b){const i=n(b);i&&s(i)}u&&Vc(()=>d())},{immediate:!0}),ia(()=>t.activatorProps,()=>{d()}),hg(()=>{s()});function d(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&v9e(u,qi(E.value,b))}function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&y9e(u,qi(E.value,b))}function n(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=k_e(u,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function k_e(t,e){var f,E;if(!t)return;let o;if(t==="parent"){let d=(E=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:E.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function tIe(){if(!Hu)return Gi(!1);const{ssr:t}=L4();if(t){const e=Gi(!1);return pg(()=>{e.value=!0}),e}else return Gi(!0)}const T_e=gi({eager:Boolean},"lazy");function C_e(t,e){const o=Gi(!1),f=nr(()=>o.value||t.eager||e.value);ia(e,()=>o.value=!0);function E(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:E}}function IM(){const e=Xh("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const Wge=Symbol.for("vuetify:stack"),BL=Am([]);function nIe(t,e,o){const f=Xh("useStack"),E=!o,d=Kl(Wge,void 0),s=Am({activeChildren:new Set});md(Wge,s);const n=Gi(+e.value);$1(t,()=>{var S;const i=(S=BL.at(-1))==null?void 0:S[1];n.value=i?i+10:+e.value,E&&BL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),hg(()=>{if(E){const w=sl(BL).findIndex(y=>y[0]===f.uid);BL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const u=Gi(!0);E&&Gp(()=>{var S;const i=((S=BL.at(-1))==null?void 0:S[0])===f.uid;setTimeout(()=>u.value=i)});const b=nr(()=>!s.activeChildren.size);return{globalTop:TM(u),localTop:b,stackStyles:nr(()=>({zIndex:n.value}))}}function rIe(t){return{teleportTarget:nr(()=>{const o=t();if(o===!0||!Hu)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let E=f.querySelector(":scope > .v-overlay-container");return E||(E=document.createElement("div"),E.className="v-overlay-container",f.appendChild(E)),E})}}function oIe(){return!0}function A_e(t,e,o){if(!t||M_e(t,o)===!1)return!1;const f=x2e(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const E=(typeof o.value=="object"&&o.value.include||(()=>[]))();return E.push(e),!E.some(d=>d==null?void 0:d.contains(t.target))}function M_e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||oIe)(t)}function iIe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&A_e(t,e,o)&&setTimeout(()=>{M_e(t,o)&&f&&f(t)},0)}function Yge(t,e){const o=x2e(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const aIe={mounted(t,e){const o=E=>iIe(E,t,e),f=E=>{t._clickOutside.lastMousedownWasOutside=A_e(E,t,e)};Yge(t,E=>{E.addEventListener("click",o,!0),E.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(Yge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:E}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",E,!0)}),delete t._clickOutside[e.instance.$.uid])}};function sIe(t){const{modelValue:e,color:o,...f}=t;return $t(C_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&$t("div",qi({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const SD=gi({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...KLe(),...Js(),...I_(),...T_e(),...VLe(),...qLe(),...gd(),...rC()},"VOverlay"),C4=Oa()({name:"VOverlay",directives:{ClickOutside:aIe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...SD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:E}=e;const d=ql(t,"modelValue"),s=nr({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=th(t),{rtlClasses:u,isRtl:b}=n0(),{hasContent:i,onAfterLeave:S}=C_e(t,s),w=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:m,stackStyles:a}=nIe(s,ji(t,"zIndex"),t._disableGlobalStack),{activatorEl:c,activatorRef:h,target:p,targetEl:v,targetRef:_,activatorEvents:O,contentEvents:C,scrimEvents:x}=JLe(t,{isActive:s,isTop:m}),{teleportTarget:R}=rIe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const re=(q=c==null?void 0:c.value)==null?void 0:q.getRootNode();return re instanceof ShadowRoot?re:!1}),{dimensionStyles:M}=D_(t),T=tIe(),{scopeId:P}=IM();ia(()=>t.disabled,K=>{K&&(s.value=!1)});const A=qo(),L=qo(),D=qo(),{contentStyles:k,updateLocation:I}=ULe(t,{isRtl:b,contentEl:D,target:p,isActive:s});WLe(t,{root:A,contentEl:D,targetEl:v,isActive:s,updateLocation:I});function z(K){E("click:outside",K),t.persistent?X():s.value=!1}function $(K){return s.value&&y.value&&(!t.scrim||K.target===L.value)}Hu&&ia(s,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),Em(()=>{Hu&&window.removeEventListener("keydown",Q)});function Q(K){var re,q;K.key==="Escape"&&y.value&&(t.persistent?X():(s.value=!1,(re=D.value)!=null&&re.contains(document.activeElement)&&((q=c.value)==null||q.focus())))}const j=H2e();$1(()=>t.closeOnBack,()=>{zRe(j,K=>{y.value&&s.value?(K(!1),t.persistent?X():s.value=!1):K()})});const U=qo();ia(()=>s.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const re=_2e(A.value);re&&re!==document.scrollingElement&&(U.value=re.scrollTop)}});function X(){t.noClickAnimation||D.value&&j8(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:cZ})}function te(){E("afterEnter")}function Z(){S(),E("afterLeave")}return Ga(()=>{var K;return $t(Ea,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:s.value,targetRef:_,props:qi({ref:h},O.value,t.activatorProps)}),T.value&&i.value&&$t(Ike,{disabled:!R.value,to:R.value},{default:()=>[$t("div",qi({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":s.value,"v-overlay--contained":t.contained},n.value,u.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:is(U.value)},t.style],ref:A},P,f),[$t(sIe,qi({color:w,modelValue:s.value&&!!t.scrim,ref:L},x.value),null),$t(f4,{appear:!0,persisted:!0,transition:t.transition,target:p.value,onAfterEnter:te,onAfterLeave:Z},{default:()=>{var re;return[Kp($t("div",qi({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},C.value,t.contentProps),[(re=o.default)==null?void 0:re.call(o,{isActive:s})]),[[A4,s.value],[M_("click-outside"),{handler:z,closeConditional:$,include:()=>[c.value]}]])]}})])]})])}),{activatorEl:c,scrimEl:L,target:p,animateClick:X,contentEl:D,globalTop:y,localTop:m,updateLocation:I}}}),cae=Symbol("Forwarded refs");function uae(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function Ix(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-menu-${d}`),n=qo(),u=Kl(lle,null),b=Gi(0);md(lle,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var c;!b.value&&!t.persistent&&(a==null||(c=n.value)!=null&&c.contentEl&&!m9e(a,n.value.contentEl))&&(f.value=!1,u==null||u.closeParents())},40)}});async function i(a){var p,v,_;const c=a.relatedTarget,h=a.target;await Vc(),f.value&&c!==h&&((p=n.value)!=null&&p.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=QI(n.value.contentEl)[0])==null||_.focus())}ia(f,a=>{a?(u==null||u.register(),document.addEventListener("focusin",i,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",i))});function S(a){u==null||u.closeParents(a)}function w(a){var c,h,p;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),u2e(QI((c=n.value)==null?void 0:c.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(p=(h=n.value)==null?void 0:h.activatorEl)==null||p.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,u==null||u.closeParents())}function y(a){var h;if(t.disabled)return;const c=(h=n.value)==null?void 0:h.contentEl;c&&f.value?a.key==="ArrowDown"?(a.preventDefault(),sZ(c,"next")):a.key==="ArrowUp"&&(a.preventDefault(),sZ(c,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const m=nr(()=>qi({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":s.value,onKeydown:y},t.activatorProps));return Ga(()=>{const a=C4.filterProps(t);return $t(C4,qi({ref:n,id:s.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":c=>f.value=c,absolute:!0,activatorProps:m.value,"onClick:outside":S,onKeydown:w},E),{activator:o.activator,default:function(){for(var c=arguments.length,h=new Array(c),p=0;p{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),Ix({id:s,ΨopenChildren:b},n)}});const cIe=gi({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Js(),...rC({transition:{component:E2e}})},"VCounter"),Mue=Oa()({name:"VCounter",functional:!0,props:cIe(),setup(t,e){let{slots:o}=e;const f=nr(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ga(()=>$t(f4,{transition:t.transition},{default:()=>[Kp($t("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[A4,t.active]])]})),{}}});const uIe=gi({floating:Boolean,...Js()},"VFieldLabel"),YQ=Oa()({name:"VFieldLabel",props:uIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(Oq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),fIe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Cq=gi({appendInnerIcon:Hl,bgColor:String,clearable:Boolean,clearIcon:{type:Hl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Hl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>fIe.includes(t)},"onClick:clear":fg(),"onClick:appendInner":fg(),"onClick:prependInner":fg(),...Js(),...vq(),...Pm(),...gd()},"VField"),Aq=Oa()({name:"VField",inheritAttrs:!1,props:{id:String,...Sq(),...Cq()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{themeClasses:d}=th(t),{loaderClasses:s}=wD(t),{focusClasses:n,isFocused:u,focus:b,blur:i}=uC(t),{InputIcon:S}=n_e(t),{roundedClasses:w}=mg(t),{rtlClasses:y}=n0(),m=nr(()=>t.dirty||t.active),a=nr(()=>!t.singleLine&&!!(t.label||E.label)),c=j1(),h=nr(()=>t.id||`input-${c}`),p=nr(()=>`${h.value}-messages`),v=qo(),_=qo(),O=qo(),C=nr(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=dg(ji(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=ry(nr(()=>t.error||t.disabled?void 0:m.value&&u.value?t.color:t.baseColor));ia(m,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=due(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:is(U)}:void 0,te=getComputedStyle(k),Z=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,re=parseFloat(Z.getPropertyValue("--v-field-label-scale")),q=Z.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",j8(k,{transform:`translate(${Q}px, ${j}px) scale(${re})`,color:q,...X},{duration:K,easing:cZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const P=nr(()=>({isActive:m,isFocused:u,controlRef:O,blur:i,focus:b}));function A(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ga(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(E["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||E.clear),z=!!(E["append-inner"]||t.appendInnerIcon||I),$=()=>E.label?E.label({...P.value,label:t.label,props:{for:h.value}}):t.label;return $t("div",qi({class:["v-field",{"v-field--active":m.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!C.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,s.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:A},o),[$t("div",{class:"v-field__overlay"},null),$t(yq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:E.loader}),k&&$t("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&$t(S,{key:"prepend-icon",name:"prependInner"},null),(Q=E["prepend-inner"])==null?void 0:Q.call(E,P.value)]),$t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&$t(YQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),$t(YQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=E.default)==null?void 0:j.call(E,{...P.value,props:{id:h.value,class:"v-field__input","aria-describedby":p.value},focus:b,blur:i})]),I&&$t(P2e,{key:"clear"},{default:()=>[Kp($t("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[$t(ef,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[E.clear?E.clear({...P.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):$t(S,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[A4,t.dirty]])]}),z&&$t("div",{key:"append",class:"v-field__append-inner"},[(U=E["append-inner"])==null?void 0:U.call(E,P.value),t.appendInnerIcon&&$t(S,{key:"append-icon",name:"appendInner"},null)]),$t("div",{class:["v-field__outline",M.value],style:T.value},[D&&$t(Ea,null,[$t("div",{class:"v-field__outline__start"},null),a.value&&$t("div",{class:"v-field__outline__notch"},[$t(YQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),$t("div",{class:"v-field__outline__end"},null)]),C.value&&a.value&&$t(YQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:O}}});function Eue(t){const e=Object.keys(Aq.props).filter(o=>!cq(o)&&o!=="class"&&o!=="style");return cue(t,e)}const dIe=["color","file","time","date","datetime-local","week","month"],Mq=gi({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...fC(),...Cq()},"VTextField"),Ep=Oa()({name:"VTextField",directives:{Intersect:_ue},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=uC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),S=nr(()=>["plain","underlined"].includes(t.variant));function w(C,x){var R,M;!t.autofocus||!C||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=qo(),m=qo(),a=qo(),c=nr(()=>dIe.includes(t.type)||t.persistentPlaceholder||s.value||t.active);function h(){var C;a.value!==document.activeElement&&((C=a.value)==null||C.focus()),s.value||n()}function p(C){f("mousedown:control",C),C.target!==a.value&&(h(),C.preventDefault())}function v(C){h(),f("click:control",C)}function _(C){C.stopPropagation(),h(),Vc(()=>{d.value=null,fue(t["onClick:clear"],C)})}function O(C){var R;const x=C.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];Vc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ga(()=>{const C=!!(E.counter||t.counter!==!1&&t.counter!=null),x=!!(C||E.details),[R,M]=bD(o),{modelValue:T,...P}=sb.filterProps(t),A=Eue(t);return $t(sb,qi({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":S.value},t.class],style:t.style},R,P,{centerAffix:!S.value,focused:s.value}),{...E,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return $t(Aq,qi({ref:m,onMousedown:p,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},A,{id:D.value,active:c.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:s.value,error:$.value===!1}),{...E,default:Q=>{let{props:{class:j,...U}}=Q;const X=Kp($t("input",qi({ref:a,value:d.value,onInput:O,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:u},U,M),null),[[M_("intersect"),{handler:w},null,{once:!0}]]);return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[$t("span",{class:"v-text-field__prefix__text"},[t.prefix])]),E.default?$t("div",{class:j,"data-no-activator":""},[E.default(),X]):EO(X,{class:j}),t.suffix&&$t("span",{class:"v-text-field__suffix"},[$t("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return $t(Ea,null,[(D=E.details)==null?void 0:D.call(E,L),C&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},y,m,a)}});const hIe=gi({renderless:Boolean,...Js()},"VVirtualScrollItem"),pIe=Oa()({name:"VVirtualScrollItem",inheritAttrs:!1,props:hIe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{resizeRef:d,contentRect:s}=T4(void 0,"border");ia(()=>{var n;return(n=s.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ga(()=>{var n,u;return t.renderless?$t(Ea,null,[(n=E.default)==null?void 0:n.call(E,{itemRef:d})]):$t("div",qi({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(u=E.default)==null?void 0:u.call(E)])})}}),mIe=-1,gIe=1,fae=100,vIe=gi({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function yIe(t,e){const o=L4(),f=Gi(0);Gp(()=>{f.value=parseFloat(t.itemHeight||0)});const E=Gi(0),d=Gi(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),s=Gi(0),n=Gi(0),u=qo(),b=qo();let i=0;const{resizeRef:S,contentRect:w}=T4();Gp(()=>{S.value=u.value});const y=nr(()=>{var Q;return u.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),m=nr(()=>!!(u.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length});const h=Gi(0);let p=-1;function v(Q){return a[Q]||f.value}const _=f9e(()=>{const Q=performance.now();c[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)c[U]=(c[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),O=ia(m,Q=>{Q&&(O(),i=b.value.offsetTop,_.immediate(),k(),~p&&Vc(()=>{Hu&&window.requestAnimationFrame(()=>{z(p),p=-1})}))});hg(()=>{_.clear()});function C(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=ug(Q,0,e.value.length-1),c[Q]||0}function R(Q){return bIe(c,Q)}let M=0,T=0,P=0;ia(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function A(){if(!u.value||!b.value)return;const Q=u.value.scrollTop,j=performance.now();j-P>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,P=j,k()}function L(){!u.value||!b.value||(T=0,P=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!u.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-fae),X=ug(R(U),0,e.value.length),te=Q+y.value+fae,Z=ug(R(te)+1,X+1,e.value.length);if((j!==mIe||Xd.value)){const K=x(E.value)-x(X),re=x(Z)-x(d.value);Math.max(K,re)>fae?(E.value=X,d.value=Z):(X<=0&&(E.value=X),Z>=e.value.length&&(d.value=Z))}s.value=x(E.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!u.value||Q&&!j?p=Q:u.value.scrollTop=j}const $=nr(()=>e.value.slice(E.value,d.value).map((Q,j)=>({raw:Q,index:j+E.value})));return ia(e,()=>{a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:u,markerRef:b,computedItems:$,paddingTop:s,paddingBottom:n,scrollToIndex:z,handleScroll:A,handleScrollend:L,handleItemResize:C}}function bIe(t,e){let o=t.length-1,f=0,E=0,d=null,s=-1;if(t[o]>1,d=t[E],d>e)o=E-1;else if(d[]},renderless:Boolean,...vIe(),...Js(),...I_()},"VVirtualScroll"),Pue=Oa()({name:"VVirtualScroll",props:xIe(),setup(t,e){let{slots:o}=e;const f=Xh("VVirtualScroll"),{dimensionStyles:E}=D_(t),{containerRef:d,markerRef:s,handleScroll:n,handleScrollend:u,handleItemResize:b,scrollToIndex:i,paddingTop:S,paddingBottom:w,computedItems:y}=yIe(t,ji(t,"items"));return $1(()=>t.renderless,()=>{function m(){var h,p;const c=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[c]("scroll",n,{passive:!0}),document[c]("scrollend",u)):((h=d.value)==null||h[c]("scroll",n,{passive:!0}),(p=d.value)==null||p[c]("scrollend",u))}pg(()=>{d.value=_2e(f.vnode.el,!0),m(!0)}),hg(m)}),Ga(()=>{const m=y.value.map(a=>$t(pIe,{key:a.index,renderless:t.renderless,"onUpdate:height":c=>b(a.index,c)},{default:c=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...c})}}));return t.renderless?$t(Ea,null,[$t("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:is(S.value)}},null),m,$t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:is(w.value)}},null)]):$t("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:u,style:[E.value,t.style]},[$t("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:is(S.value),paddingBottom:is(w.value)}},[m])])}),{scrollToIndex:i}}});function Rue(t,e){const o=Gi(!1);let f;function E(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const u=ia(o,()=>{u(),n()})}else n()})}async function s(n){var i,S;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const u=(S=t.value)==null?void 0:S.$el;if(!u)return;(n.key==="Home"||n.key==="End")&&u.scrollTo({top:n.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await d();const b=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=u.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=u.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:E,onListKeydown:s}}const Lue=gi({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Hl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...y_e({itemChildren:!1})},"Select"),_Ie=gi({...Lue(),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:{component:yue}})},"VSelect"),DM=Oa()({name:"VSelect",props:_Ie(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),E=qo(),d=qo(),s=qo(),n=ql(t,"menu"),u=nr({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:S}=Aue(t),w=ql(t,"modelValue",[],$=>i($===null?[null]:Pp($)),$=>{const Q=S($);return t.multiple?Q:Q[0]??null}),y=nr(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),m=kq(),a=nr(()=>w.value.map($=>$.value)),c=Gi(!1),h=nr(()=>u.value?t.closeText:t.openText);let p="",v;const _=nr(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),O=nr(()=>t.hideNoData&&!_.value.length||t.readonly||(m==null?void 0:m.isReadonly.value)),C=nr(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=qo(),{onListScroll:R,onListKeydown:M}=Rue(x,E);function T($){t.openOnClear&&(u.value=!0)}function P(){O.value||(u.value=!u.value)}function A($){var te,Z;if(!$.key||t.readonly||m!=null&&m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(u.value=!0),["Escape","Tab"].includes($.key)&&(u.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((Z=x.value)==null||Z.focus("last"));const Q=1e3;function j(K){const re=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return re&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(p=""),p+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(p));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);Hu&&window.requestAnimationFrame(()=>{var re;K>=0&&((re=s.value)==null||re.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],Vc(()=>{u.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(u.value=!1)}function k(){var $;c.value&&(($=E.value)==null||$.focus())}function I($){c.value=!0}function z($){if($==null)w.value=[];else if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else E.value&&(E.value.value="")}return ia(u,()=>{if(!t.hideSelected&&u.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));Hu&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=s.value)==null||Q.scrollToIndex($))})}}),ia(()=>t.items,($,Q)=>{u.value||c.value&&!Q.length&&$.length&&(u.value=!0)}),Ga(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=Ep.filterProps(t),X=j||!c.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return $t(Ep,qi({ref:E},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:c.value,"onUpdate:focused":te=>c.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":P,onBlur:D,onKeydown:A,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:d,modelValue:u.value,"onUpdate:modelValue":te=>u.value=te,activator:"parent",contentClass:"v-select__content",disabled:O.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},C.value),{default:()=>[Q&&$t(Ax,qi({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,Z,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((Z=o["no-data"])==null?void 0:Z.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Pue,{ref:s,renderless:!0,items:_.value},{default:re=>{var pe;let{item:q,index:Y,itemRef:ee}=re;const me=qi(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((pe=o.item)==null?void 0:pe.call(o,{item:q,index:Y,props:me}))??$t(Xf,qi(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&$t(DO,{image:q.props.prependAvatar},null),q.props.prependIcon&&$t(jl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,Z)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const re={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?uq($?o.chip({item:te,index:Z,props:re}):o.selection({item:te,index:Z})):void 0;if(!(q&&!Y))return $t("div",{key:te.value,class:"v-select__selection"},[$?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},re),null):Y??$t("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Zt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),Iue=gi({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function OIe(t,e,o){var n;const f=[],E=(o==null?void 0:o.default)??wIe,d=o!=null&&o.filterKeys?Pp(o.filterKeys):!1,s=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let u=0;u0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const c=d||Object.keys(i);for(const h of c){const p=N1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(p,e,b):E(p,e,b),y!==-1&&y!==!1)v?S[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=E(b,e,b),y!==-1&&y!==!1&&(w.title=y);const m=Object.keys(w).length,a=Object.keys(S).length;if(!m&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==s&&!m||(o==null?void 0:o.filterMode)==="intersection"&&(a!==s||!m))continue}f.push({index:u,matches:{...w,...S}})}return f}function Due(t,e,o,f){const E=qo([]),d=qo(new Map),s=nr(()=>f!=null&&f.transform?Va(e).map(u=>[u,f.transform(u)]):Va(e));Gp(()=>{const u=typeof o=="function"?o():Va(o),b=typeof u!="string"&&typeof u!="number"?"":String(u),i=OIe(s.value,b,{customKeyFilter:{...t.customKeyFilter,...Va(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),S=Va(e),w=[],y=new Map;i.forEach(m=>{let{index:a,matches:c}=m;const h=S[a];w.push(h),y.set(h.value,c)}),E.value=w,d.value=y});function n(u){return d.value.get(u.value)}return{filteredItems:E,filteredMatches:d,getMatches:n}}function SIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),$t("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),$t("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const kIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Iue({filterKeys:["title"]}),...Lue(),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:!1})},"VAutocomplete"),Eq=Oa()({name:"VAutocomplete",props:kIe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),E=qo(),d=Gi(!1),s=Gi(!0),n=Gi(!1),u=qo(),b=qo(),i=ql(t,"menu"),S=nr({get:()=>i.value,set:me=>{var pe;i.value&&!me&&((pe=u.value)!=null&&pe.ΨopenChildren)||(i.value=me)}}),w=Gi(-1),y=nr(()=>{var me;return(me=E.value)==null?void 0:me.color}),m=nr(()=>S.value?t.closeText:t.openText),{items:a,transformIn:c,transformOut:h}=Aue(t),{textColorClasses:p,textColorStyles:v}=ry(y),_=ql(t,"search",""),O=ql(t,"modelValue",[],me=>c(me===null?[null]:Pp(me)),me=>{const pe=h(me);return t.multiple?pe:pe[0]??null}),C=nr(()=>typeof t.counterValue=="function"?t.counterValue(O.value):typeof t.counterValue=="number"?t.counterValue:O.value.length),x=kq(),{filteredItems:R,getMatches:M}=Due(t,a,()=>s.value?"":_.value),T=nr(()=>t.hideSelected?R.value.filter(me=>!O.value.some(pe=>pe.value===me.value)):R.value),P=nr(()=>!!(t.chips||o.chip)),A=nr(()=>P.value||!!o.selection),L=nr(()=>O.value.map(me=>me.props.value)),D=nr(()=>{var pe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((pe=T.value[0])==null?void 0:pe.title))&&T.value.length>0&&!s.value&&!n.value}),k=nr(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=qo(),{onListScroll:z,onListKeydown:$}=Rue(I,E);function Q(me){t.openOnClear&&(S.value=!0),_.value=""}function j(){k.value||(S.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),S.value=!S.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const pe=E.value.selectionStart,se=O.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(S.value=!0),["Escape"].includes(me.key)&&(S.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!O.value.some(ye=>{let{value:ve}=ye;return ve===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&A.value&&O.value.length>0&&!_.value)return ee(O.value[0],!1);if(~w.value){const ye=w.value;ee(O.value[w.value],!1),w.value=ye>=se-1?se-2:ye}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&pe>0)return;const ye=w.value>-1?w.value-1:se-1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ye=w.value+1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange(0,0))}}}function te(me){if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const pe=a.value.find(se=>se.title===me.target.value);pe&&ee(pe)}}function Z(){var me;d.value&&(s.value=!0,(me=E.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function re(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!A.value)&&(O.value=[])}const Y=Gi(!1);function ee(me){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=O.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=pe??!~se;if(~se){const ce=ae?[...O.value,me]:[...O.value];ce.splice(se,1),O.value=ce}else ae&&(O.value=[...O.value,me]);t.clearOnSelect&&(_.value="")}else{const se=pe!==!1;O.value=se?[me]:[],_.value=se&&!A.value?me.title:"",Vc(()=>{S.value=!1,s.value=!0})}}return ia(d,(me,pe)=>{var se;me!==pe&&(me?(Y.value=!0,_.value=t.multiple||A.value?"":String(((se=O.value.at(-1))==null?void 0:se.props.title)??""),s.value=!0,Vc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(O.value=[]),S.value=!1,O.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),ia(_,me=>{!d.value||Y.value||(me&&(S.value=!0),s.value=!me)}),ia(S,()=>{if(!t.hideSelected&&S.value&&O.value.length){const me=T.value.findIndex(pe=>O.value.some(se=>pe.value===se.value));Hu&&window.requestAnimationFrame(()=>{var pe;me>=0&&((pe=b.value)==null||pe.scrollToIndex(me))})}}),ia(()=>t.items,(me,pe)=>{S.value||d.value&&!pe.length&&me.length&&(S.value=!0)}),Ga(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),pe=O.value.length>0,se=Ep.filterProps(t);return $t(Ep,qi({ref:E},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:O.externalValue,counterValue:C.value,dirty:pe,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":S.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!A.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:pe?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:u,modelValue:S.value,"onUpdate:modelValue":ae=>S.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:Z},t.menuProps),{default:()=>[me&&$t(Ax,qi({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:re,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Pue,{ref:b,renderless:!0,items:T.value},{default:ye=>{var Pe;let{item:ve,index:_e,itemRef:we}=ye;const Te=qi(ve.props,{ref:we,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ve,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ve,index:_e,props:Te}))??$t(Xf,qi(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:ve.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ve.props.prependAvatar&&$t(DO,{image:ve.props.prependAvatar},null),ve.props.prependIcon&&$t(jl,{icon:ve.props.prependIcon},null)])},title:()=>{var Ie,ze;return s.value?ve.title:SIe(ve.title,(Ie=M(ve))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),O.value.map((ae,ce)=>{function de(we){we.stopPropagation(),we.preventDefault(),ee(ae,!1)}const ye={"onClick:close":de,onKeydown(we){we.key!=="Enter"&&we.key!==" "||(we.preventDefault(),we.stopPropagation(),de(we))},onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ve=P.value?!!o.chip:!!o.selection,_e=ve?uq(P.value?o.chip({item:ae,index:ce,props:ye}):o.selection({item:ae,index:ce})):void 0;if(!(ve&&!_e))return $t("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",p.value]],style:ce===w.value?v.value:{}},[P.value?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ye),null):_e??$t("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),{scopeId:d}=IM(),s=qo();function n(i){var y,m;const S=i.relatedTarget,w=i.target;if(S!==w&&((y=s.value)!=null&&y.contentEl)&&((m=s.value)!=null&&m.globalTop)&&![document,s.value.contentEl].includes(w)&&!s.value.contentEl.contains(w)){const a=QI(s.value.contentEl);if(!a.length)return;const c=a[0],h=a[a.length-1];S===c?h.focus():c.focus()}}Hu&&ia(()=>E.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function u(){var i;(i=s.value)!=null&&i.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return ia(E,async i=>{var S;i||(await Vc(),(S=s.value.activatorEl)==null||S.focus({preventScroll:!0}))}),Ga(()=>{const i=C4.filterProps(t),S=qi({"aria-haspopup":"dialog","aria-expanded":String(E.value)},t.activatorProps),w=qi({tabindex:-1},t.contentProps);return $t(C4,qi({ref:s,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:E.value,"onUpdate:modelValue":y=>E.value=y,"aria-modal":"true",activatorProps:S,contentProps:w,role:"dialog",onAfterEnter:u,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,m=new Array(y),a=0;a{var c;return[(c=f.default)==null?void 0:c.call(f,...m)]}})}})}),Ix({},s)}});const kD=Oa()({name:"VCardActions",props:Js(),setup(t,e){let{slots:o}=e;return ab({VBtn:{slim:!0,variant:"text"}}),Ga(()=>{var f;return $t("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),CIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardSubtitle"),E_e=Oa()({name:"VCardSubtitle",props:CIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),I4=fq("v-card-title"),AIe=gi({appendAvatar:String,appendIcon:Hl,prependAvatar:String,prependIcon:Hl,subtitle:[String,Number],title:[String,Number],...Js(),...Q1()},"VCardItem"),MIe=Oa()({name:"VCardItem",props:AIe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),E=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),s=!!(d||o.append),n=!!(t.title!=null||o.title),u=!!(t.subtitle!=null||o.subtitle);return $t("div",{class:["v-card-item",t.class],style:t.style},[E&&$t("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?$t(ef,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),$t("div",{class:"v-card-item__content"},[n&&$t(I4,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),u&&$t(E_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),s&&$t("div",{key:"append",class:"v-card-item__append"},[o.append?$t(ef,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),EIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardText"),hC=Oa()({name:"VCardText",props:EIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),PIe=gi({appendAvatar:String,appendIcon:Hl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...B_(),...Js(),...Q1(),...I_(),...ay(),...vq(),..._D(),...bq(),...Pm(),...wq(),...tf(),...gd(),...Lx({variant:"elevated"})},"VCard"),ub=Oa()({name:"VCard",directives:{Ripple:cC},props:PIe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{colorClasses:s,colorStyles:n,variantClasses:u}=aC(t),{densityClasses:b}=Rx(t),{dimensionStyles:i}=D_(t),{elevationClasses:S}=cb(t),{loaderClasses:w}=wD(t),{locationStyles:y}=gq(t),{positionClasses:m}=xq(t),{roundedClasses:a}=mg(t),c=_q(t,o),h=nr(()=>t.link!==!1&&c.isLink.value),p=nr(()=>!t.disabled&&t.link!==!1&&(t.link||c.isClickable.value));return Ga(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),O=!!(f.subtitle||t.subtitle!=null),C=_||O,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=C||R||x,P=!!(f.text||t.text!=null);return Kp($t(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":p.value},E.value,d.value,s.value,b.value,S.value,w.value,m.value,a.value,u.value,t.class],style:[n.value,i.value,y.value,t.style],href:c.href.value,onClick:p.value&&c.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var A;return[M&&$t("div",{key:"image",class:"v-card__image"},[f.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):$t(oC,{key:"image-img",cover:!0,src:t.image},null)]),$t(yq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&$t(MIe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),P&&$t(hC,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(A=f.default)==null?void 0:A.call(f),f.actions&&$t(kD,null,{default:f.actions}),iC(p.value,"v-card")]}}),[[M_("ripple"),p.value&&t.ripple]])}),{}}});const Bue=Symbol.for("vuetify:v-slider");function cle(t,e,o){const f=o==="vertical",E=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(E.top+E.height/2):d.clientX-(E.left+E.width/2)}function RIe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const P_e=gi({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...Pm(),...ay({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),R_e=t=>{const e=nr(()=>parseFloat(t.min)),o=nr(()=>parseFloat(t.max)),f=nr(()=>+t.step>0?parseFloat(t.step):0),E=nr(()=>Math.max(nge(f.value),nge(e.value)));function d(s){if(s=parseFloat(s),f.value<=0)return s;const n=ug(s,e.value,o.value),u=e.value%f.value,b=Math.round((n-u)/f.value)*f.value+u;return parseFloat(Math.min(b,o.value).toFixed(E.value))}return{min:e,max:o,step:f,decimals:E,roundValue:d}},L_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:E,onSliderEnd:d,getActiveThumb:s}=t;const{isRtl:n}=n0(),u=ji(e,"reverse"),b=nr(()=>e.direction==="vertical"),i=nr(()=>b.value!==u.value),{min:S,max:w,step:y,decimals:m,roundValue:a}=o,c=nr(()=>parseInt(e.thumbSize,10)),h=nr(()=>parseInt(e.tickSize,10)),p=nr(()=>parseInt(e.trackSize,10)),v=nr(()=>(w.value-S.value)/y.value),_=ji(e,"disabled"),O=nr(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),C=nr(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=nr(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Gi(!1),M=Gi(0),T=qo(),P=qo();function A(re){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:pe,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=RIe(re,me);let ce=Math.min(Math.max((ae-pe-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(S.value+ce*(w.value-S.value))}const L=re=>{d({value:A(re)}),R.value=!1,M.value=0},D=re=>{P.value=s(re),P.value&&(P.value.focus(),R.value=!0,P.value.contains(re.target)?M.value=cle(re,P.value,e.direction):(M.value=0,E({value:A(re)})),f({value:A(re)}))},k={passive:!0,capture:!0};function I(re){E({value:A(re)})}function z(re){re.stopPropagation(),re.preventDefault(),L(re),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(re){var q;L(re),window.removeEventListener("touchmove",I,k),(q=re.target)==null||q.removeEventListener("touchend",$)}function Q(re){var q;D(re),window.addEventListener("touchmove",I,k),(q=re.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(re){re.preventDefault(),D(re),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=re=>{const q=(re-S.value)/(w.value-S.value)*100;return ug(isNaN(q)?0:q,0,100)},X=ji(e,"showTicks"),te=nr(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(re=>({value:re,position:U(re),label:re.toString()})):Object.keys(e.ticks).map(re=>({value:parseFloat(re),position:U(parseFloat(re)),label:e.ticks[re]})):v.value!==1/0?u4(v.value+1).map(re=>{const q=S.value+re*y.value;return{value:q,position:U(q)}}):[]:[]),Z=nr(()=>te.value.some(re=>{let{label:q}=re;return!!q})),K={activeThumbRef:P,color:ji(e,"color"),decimals:m,disabled:_,direction:ji(e,"direction"),elevation:ji(e,"elevation"),hasLabels:Z,isReversed:u,indexFromEnd:i,min:S,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:A,position:U,readonly:ji(e,"readonly"),rounded:ji(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:c,thumbColor:O,thumbLabel:ji(e,"thumbLabel"),ticks:ji(e,"ticks"),tickSize:h,trackColor:C,trackContainerRef:T,trackFillColor:x,trackSize:p,vertical:b};return md(Bue,K),K},LIe=gi({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Js()},"VSliderThumb"),ule=Oa()({name:"VSliderThumb",directives:{Ripple:cC},props:LIe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=Kl(Bue),{isRtl:d,rtlClasses:s}=n0();if(!E)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:u,disabled:b,thumbSize:i,thumbLabel:S,direction:w,isReversed:y,vertical:m,readonly:a,elevation:c,mousePressed:h,decimals:p,indexFromEnd:v}=E,_=nr(()=>b.value?void 0:c.value),{elevationClasses:O}=cb(_),{textColorClasses:C,textColorStyles:x}=ry(n),{pageup:R,pagedown:M,end:T,home:P,left:A,right:L,down:D,up:k}=Xse,I=[R,M,T,P,A,L,D,k],z=nr(()=>u.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=u.value||.1,te=(t.max-t.min)/X;if([A,L,D,k].includes(j.key)){const K=(m.value?[d.value?A:L,y.value?D:k]:v.value!==d.value?[A,k]:[L,k]).includes(j.key)?1:-1,re=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[re]}else if(j.key===P)U=t.min;else if(j.key===T)U=t.max;else{const Z=j.key===M?1:-1;U=U-Z*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ga(()=>{const j=is(v.value?100-t.position:t.position,"%");return $t("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,s.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":is(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[$t("div",{class:["v-slider-thumb__surface",C.value,O.value],style:{...x.value}},null),Kp($t("div",{class:["v-slider-thumb__ripple",C.value],style:x.value},null),[[M_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),$t(M2e,{origin:"bottom center"},{default:()=>{var U;return[Kp($t("div",{class:"v-slider-thumb__label-container"},[$t("div",{class:["v-slider-thumb__label"]},[$t("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(u.value?p.value:1)])])]),[[A4,S.value&&t.focused||S.value==="always"]])]}})])}),{}}});const IIe=gi({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Js()},"VSliderTrack"),I_e=Oa()({name:"VSliderTrack",props:IIe(),emits:{},setup(t,e){let{slots:o}=e;const f=Kl(Bue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:E,parsedTicks:d,rounded:s,showTicks:n,tickSize:u,trackColor:b,trackFillColor:i,trackSize:S,vertical:w,min:y,max:m,indexFromEnd:a}=f,{roundedClasses:c}=mg(s),{backgroundColorClasses:h,backgroundColorStyles:p}=dg(i),{backgroundColorClasses:v,backgroundColorStyles:_}=dg(b),O=nr(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),C=nr(()=>w.value?"height":"width"),x=nr(()=>({[O.value]:"0%",[C.value]:"100%"})),R=nr(()=>t.stop-t.start),M=nr(()=>({[O.value]:is(t.start,"%"),[C.value]:is(R.value,"%")})),T=nr(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((A,L)=>{var k;const D=A.value!==y.value&&A.value!==m.value?is(A.position,"%"):void 0;return $t("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=t.start&&A.position<=t.stop,"v-slider-track__tick--first":A.value===y.value,"v-slider-track__tick--last":A.value===m.value}],style:{[O.value]:D}},[(A.label||o["tick-label"])&&$t("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:A,index:L}))??A.label])])}):[]);return Ga(()=>$t("div",{class:["v-slider-track",c.value,t.class],style:[{"--v-slider-track-size":is(S.value),"--v-slider-tick-size":is(u.value)},t.style]},[$t("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!E.value||!i.value}],style:{...x.value,..._.value}},null),$t("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...p.value}},null),n.value&&$t("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),DIe=gi({...Sq(),...P_e(),...fC(),modelValue:{type:[Number,String],default:0}},"VSlider"),zue=Oa()({name:"VSlider",props:DIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),{rtlClasses:d}=n0(),s=R_e(t),n=ql(t,"modelValue",void 0,C=>s.roundValue(C??s.min.value)),{min:u,max:b,mousePressed:i,roundValue:S,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:m,position:a,hasLabels:c,readonly:h}=L_e({props:t,steps:s,onSliderStart:()=>{f("start",n.value)},onSliderEnd:C=>{let{value:x}=C;const R=S(x);n.value=R,f("end",R)},onSliderMove:C=>{let{value:x}=C;return n.value=S(x)},getActiveThumb:()=>{var C;return(C=E.value)==null?void 0:C.$el}}),{isFocused:p,focus:v,blur:_}=uC(t),O=nr(()=>a(n.value));return Ga(()=>{const C=sb.filterProps(t),x=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||c.value,"v-slider--focused":p.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},C,{focused:p.value}),{...o,prepend:x?R=>{var M,T;return $t(Ea,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?$t(Oq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return $t("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[$t("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),$t(I_e,{ref:m,start:0,stop:O.value},{"tick-label":o["tick-label"]}),$t(ule,{ref:E,"aria-describedby":T.value,focused:p.value,min:u.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":P=>n.value=P,position:O.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function BIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),$t("span",{class:"v-combobox__mask"},[t.substr(e,o)]),$t("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const zIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Iue({filterKeys:["title"]}),...Lue({hideNoData:!0,returnObject:!0}),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:!1})},"VCombobox"),Nue=Oa()({name:"VCombobox",props:zIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var pe;let{emit:o,slots:f}=e;const{t:E}=oy(),d=qo(),s=Gi(!1),n=Gi(!0),u=Gi(!1),b=qo(),i=qo(),S=ql(t,"menu"),w=nr({get:()=>S.value,set:se=>{var ae;S.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(S.value=se)}}),y=Gi(-1);let m=!1;const a=nr(()=>{var se;return(se=d.value)==null?void 0:se.color}),c=nr(()=>w.value?t.closeText:t.openText),{items:h,transformIn:p,transformOut:v}=Aue(t),{textColorClasses:_,textColorStyles:O}=ry(a),C=ql(t,"modelValue",[],se=>p(Pp(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=kq(),R=nr(()=>!!(t.chips||f.chip)),M=nr(()=>R.value||!!f.selection),T=Gi(!t.multiple&&!M.value?((pe=C.value[0])==null?void 0:pe.title)??"":""),P=nr({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(C.value=[a4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(a4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),A=nr(()=>typeof t.counterValue=="function"?t.counterValue(C.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?C.value.length:P.value.length);ia(T,se=>{m?Vc(()=>m=!1):s.value&&!w.value&&(w.value=!0),o("update:search",se)}),ia(C,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=Due(t,h,()=>n.value?"":P.value),k=nr(()=>t.hideSelected?L.value.filter(se=>!C.value.some(ae=>ae.value===se.value)):L.value),I=nr(()=>C.value.map(se=>se.value)),z=nr(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&P.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!u.value}),$=nr(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=qo(),{onListScroll:j,onListKeydown:U}=Rue(Q,d);function X(se){m=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function Z(se){$.value||(s.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(u9e(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=C.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!C.value.some(ye=>{let{value:ve}=ye;return ve===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&P.value&&(q(a4(t,P.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&C.value.length>0&&!P.value)return q(C.value[0],!1);if(~y.value){const ye=y.value;q(C.value[y.value],!1),y.value=ye>=ce-1?ce-2:ye}else se.key==="Backspace"&&!P.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ye=y.value>-1?y.value-1:ce-1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(P.value.length,P.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ye=y.value+1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(0,0))}}}function re(){var se;s.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=C.value.findIndex(ye=>t.valueComparator(ye.value,se.value)),de=ae??!~ce;if(~ce){const ye=de?[...C.value,se]:[...C.value];ye.splice(ce,1),C.value=ye}else de&&(C.value=[...C.value,se]);t.clearOnSelect&&(P.value="")}else{const ce=ae!==!1;C.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",Vc(()=>{w.value=!1,n.value=!0})}}function Y(se){s.value=!0,setTimeout(()=>{u.value=!0})}function ee(se){u.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(C.value=[])}return ia(s,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,P.value)){if(t.multiple){q(a4(t,P.value));return}if(!M.value)return;C.value.some(ce=>{let{title:de}=ce;return de===P.value})?T.value="":q(a4(t,P.value))}}),ia(w,()=>{if(!t.hideSelected&&w.value&&C.value.length){const se=k.value.findIndex(ae=>C.value.some(ce=>t.valueComparator(ce.value,ae.value)));Hu&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),ia(()=>t.items,(se,ae)=>{w.value||s.value&&!ae.length&&se.length&&(w.value=!0)}),Ga(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=C.value.length>0,ce=Ep.filterProps(t);return $t(Ep,qi({ref:d},ce,{modelValue:P.value,"onUpdate:modelValue":[de=>P.value=de,me],focused:s.value,"onUpdate:focused":de=>s.value=de,validationValue:C.externalValue,counterValue:A.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>$t(Ea,null,[$t(BO,qi({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:re},t.menuProps),{default:()=>[se&&$t(Ax,qi({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ye,ve;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ye=f["no-data"])==null?void 0:ye.call(f))??$t(Xf,{title:E(t.noDataText)},null)),$t(Pue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:we,index:Te,itemRef:Pe}=_e;const Ie=qi(we.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(we,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:we,index:Te,props:Ie}))??$t(Xf,qi(Ie,{role:"option"}),{prepend:De=>{let{isSelected:Qe}=De;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:we.value,modelValue:Qe,ripple:!1,tabindex:"-1"},null):void 0,we.props.prependAvatar&&$t(DO,{image:we.props.prependAvatar},null),we.props.prependIcon&&$t(jl,{icon:we.props.prependIcon},null)])},title:()=>{var De,Qe;return n.value?we.title:BIe(we.title,(De=D(we))==null?void 0:De.title,((Qe=P.value)==null?void 0:Qe.length)??0)}})}}),(ve=f["append-item"])==null?void 0:ve.call(f)]}})]}),C.value.map((de,ye)=>{function ve(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ve,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ve(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},we=R.value?!!f.chip:!!f.selection,Te=we?uq(R.value?f.chip({item:de,index:ye,props:_e}):f.selection({item:de,index:ye})):void 0;if(!(we&&!Te))return $t("div",{key:de.value,class:["v-combobox__selection",ye===y.value&&["v-combobox__selection--selected",_.value]],style:ye===y.value?O.value:{}},[R.value?f.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??$t("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ye0&&f.push(E),f}function FIe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,E=new Date(t);for(;E.getDay()!==f;)E.setDate(E.getDate()-1);return E}function $Ie(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function D_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function B_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function VIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const UIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function z_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(UIe.test(t))return VIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const Xge=new Date(2e3,0,2);function jIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return u4(7).map(f=>{const E=new Date(Xge);return E.setDate(Xge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(E)})}function QIe(t,e,o,f){const E=z_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(E,e,o);let s={};switch(e){case"fullDate":s={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=E.getDate(),u=new Intl.DateTimeFormat(o,{month:"long"}).format(E);return`${n} ${u}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(E.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:s=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,s).format(E)}function HIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),E=oge(String(o.getMonth()+1),2,"0"),d=oge(String(o.getDate()),2,"0");return`${f}-${E}-${d}`}function ZIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function qIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function WIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function YIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function XIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function GIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function KIe(t){return t.getFullYear()}function JIe(t){return t.getMonth()}function eDe(t){return t.getDate()}function tDe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function nDe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function rDe(t){return t.getHours()}function oDe(t){return t.getMinutes()}function iDe(t){return new Date(t.getFullYear(),0,1)}function aDe(t){return new Date(t.getFullYear(),11,31)}function sDe(t,e){return gZ(t,e[0])&&uDe(t,e[1])}function lDe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function gZ(t,e){return t.getTime()>e.getTime()}function cDe(t,e){return gZ(fle(t),fle(e))}function uDe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const kDe=gi({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),N_e=Symbol.for("vuetify:datatable:expanded");function TDe(t){const e=ji(t,"expandOnClick"),o=ql(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,u){const b=new Set(o.value);u?b.add(n.value):b.delete(n.value),o.value=b}function E(n){return o.value.has(n.value)}function d(n){f(n,!E(n))}const s={expand:f,expanded:o,expandOnClick:e,isExpanded:E,toggleExpand:d};return md(N_e,s),s}function F_e(){const t=Kl(N_e);if(!t)throw new Error("foo");return t}const CDe=gi({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),$_e=Symbol.for("vuetify:data-table-group");function ADe(t){return{groupBy:ql(t,"groupBy")}}function MDe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,E=qo(new Set),d=nr(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function s(i){return E.value.has(i.id)}function n(i){const S=new Set(E.value);s(i)?S.delete(i.id):S.add(i.id),E.value=S}function u(i){function S(w){const y=[];for(const m of w.items)"type"in m&&m.type==="group"?y.push(...S(m)):y.push(m);return y}return S({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:E,groupBy:o,extractRows:u,isGroupOpen:s};return md($_e,b),b}function V_e(){const t=Kl($_e);if(!t)throw new Error("Missing group!");return t}function EDe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const E=GT(f.raw,e);o.has(E)||o.set(E,[]),o.get(E).push(f)}return o}function U_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const E=EDe(t,e[0]),d=[],s=e.slice(1);return E.forEach((n,u)=>{const b=e[0],i=`${f}_${b}_${u}`;d.push({depth:o,id:i,key:b,value:u,items:s.length?U_e(n,s,o+1,i):n,type:"group"})}),d}function j_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...j_e(f.items,e))):o.push(f);return o}function PDe(t,e,o){return{flatItems:nr(()=>{if(!e.value.length)return t.value;const E=U_e(t.value,e.value.map(d=>d.key));return j_e(E,o.value)})}}function RDe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:E,search:d}=t;const s=Xh("VDataTable"),n=nr(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:E.value,search:d.value}));let u=null;ia(n,()=>{R4(u,n.value)||(u&&u.search!==n.value.search&&(e.value=1),s.emit("update:options",n.value),u=n.value)},{deep:!0,immediate:!0})}const LDe=gi({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Q_e=Symbol.for("vuetify:data-table-pagination");function IDe(t){const e=ql(t,"page",void 0,f=>+(f??1)),o=ql(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function DDe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,E=nr(()=>o.value===-1?0:o.value*(e.value-1)),d=nr(()=>o.value===-1?f.value:Math.min(f.value,E.value+o.value)),s=nr(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));Gp(()=>{e.value>s.value&&(e.value=s.value)});function n(w){o.value=w,e.value=1}function u(){e.value=ug(e.value+1,1,s.value)}function b(){e.value=ug(e.value-1,1,s.value)}function i(w){e.value=ug(w,1,s.value)}const S={page:e,itemsPerPage:o,startIndex:E,stopIndex:d,pageCount:s,itemsLength:f,nextPage:u,prevPage:b,setPage:i,setItemsPerPage:n};return md(Q_e,S),S}function BDe(){const t=Kl(Q_e);if(!t)throw new Error("Missing pagination!");return t}function zDe(t){const e=Xh("usePaginatedItems"),{items:o,startIndex:f,stopIndex:E,itemsPerPage:d}=t,s=nr(()=>d.value<=0?o.value:o.value.slice(f.value,E.value));return ia(s,n=>{e.emit("update:currentItems",n)}),{paginatedItems:s}}const NDe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},H_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return H_e.select({items:o,value:e,selected:f})}},Z_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return Z_e.select({items:o,value:e,selected:f})}},FDe=gi({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:R4}},"DataTable-select"),q_e=Symbol.for("vuetify:data-table-selection");function $De(t,e){let{allItems:o,currentPage:f}=e;const E=ql(t,"modelValue",t.modelValue,h=>new Set(Pp(h).map(p=>{var v;return((v=o.value.find(_=>t.valueComparator(p,_.value)))==null?void 0:v.value)??p})),h=>[...h.values()]),d=nr(()=>o.value.filter(h=>h.selectable)),s=nr(()=>f.value.filter(h=>h.selectable)),n=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return NDe;case"all":return Z_e;case"page":default:return H_e}});function u(h){return Pp(h).every(p=>E.value.has(p.value))}function b(h){return Pp(h).some(p=>E.value.has(p.value))}function i(h,p){const v=n.value.select({items:h,value:p,selected:new Set(E.value)});E.value=v}function S(h){i([h],!u([h]))}function w(h){const p=n.value.selectAll({value:h,allItems:d.value,currentPage:s.value,selected:new Set(E.value)});E.value=p}const y=nr(()=>E.value.size>0),m=nr(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:s.value});return!!h.length&&u(h)}),a=nr(()=>n.value.showSelectAll),c={toggleSelect:S,select:i,selectAll:w,isSelected:u,isSomeSelected:b,someSelected:y,allSelected:m,showSelectAll:a};return md(q_e,c),c}function Rq(){const t=Kl(q_e);if(!t)throw new Error("Missing selection!");return t}const VDe=gi({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),W_e=Symbol.for("vuetify:data-table-sort");function UDe(t){const e=ql(t,"sortBy"),o=ji(t,"mustSort"),f=ji(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function jDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:E}=t,d=u=>{if(u.key==null)return;let b=e.value.map(S=>({...S}))??[];const i=b.find(S=>S.key===u.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(S=>S.key!==u.key):i.order="desc":f.value?b=[...b,{key:u.key,order:"asc"}]:b=[{key:u.key,order:"asc"}],e.value=b,E&&(E.value=1)};function s(u){return!!e.value.find(b=>b.key===u.key)}const n={sortBy:e,toggleSort:d,isSorted:s};return md(W_e,n),n}function Y_e(){const t=Kl(W_e);if(!t)throw new Error("Missing sort!");return t}function QDe(t,e,o,f){const E=oy();return{sortedItems:nr(()=>{var s,n;return o.value.length?HDe(e.value,o.value,E.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(s=f==null?void 0:f.sortFunctions)==null?void 0:s.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function HDe(t,e,o,f){const E=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(s=>[s,f!=null&&f.transform?f.transform(s):s]).sort((s,n)=>{var u,b;for(let i=0;ip!=null?p.toString().toLocaleLowerCase():p),m!==a)return HQ(m)&&HQ(a)?0:HQ(m)?-1:HQ(a)?1:!isNaN(m)&&!isNaN(a)?Number(m)-Number(a):E.compare(m,a)}}return 0}).map(s=>{let[n]=s;return n})}function ZDe(){const t=qo([]);yve(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const qDe=gi({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Hl,default:"$first"},prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},lastIcon:{type:Hl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...B_(),...Js(),...Q1(),...ay(),...Pm(),...sC(),...tf({tag:"nav"}),...gd(),...Lx({variant:"text"})},"VPagination"),Jge=Oa()({name:"VPagination",props:qDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=ql(t,"modelValue"),{t:d,n:s}=oy(),{isRtl:n}=n0(),{themeClasses:u}=th(t),{width:b}=L4(),i=Gi(-1);ab(void 0,{scoped:!0});const{resizeRef:S}=T4(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],P=M.querySelector(".v-pagination__list > *");if(!P)return;const A=T.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;i.value=a(A,L)}),w=nr(()=>parseInt(t.length,10)),y=nr(()=>parseInt(t.start,10)),m=nr(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const c=nr(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[E.value];if(w.value<=m.value)return u4(w.value,y.value);const R=m.value%2===0,M=R?m.value/2:Math.floor(m.value/2),T=R?M:M+1,P=w.value-M;if(T-E.value>=0)return[...u4(Math.max(1,m.value-1),y.value),t.ellipsis,w.value];if(E.value-P>=(R?1:0)){const A=m.value-1,L=w.value-A+y.value;return[y.value,t.ellipsis,...u4(A,L)]}else{const A=Math.max(1,m.value-3),L=A===1?E.value:E.value-Math.ceil(A/2)+y.value;return[y.value,t.ellipsis,...u4(A,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),E.value=M,T&&f(T,M)}const{refs:p,updateRef:v}=ZDe();ab({VPaginationBtn:{color:ji(t,"color"),border:ji(t,"border"),density:ji(t,"density"),size:ji(t,"size"),variant:ji(t,"variant"),rounded:ji(t,"rounded"),elevation:ji(t,"elevation")}});const _=nr(()=>c.value.map((R,M)=>{const T=P=>v(P,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const P=R===E.value;return{isActive:P,key:R,page:s(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:P?t.activeColor:t.color,"aria-current":P,"aria-label":d(P?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:A=>h(A,R)}}}})),O=nr(()=>{const R=!!t.disabled||E.value<=y.value,M=!!t.disabled||E.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,E.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,E.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function C(){var M;const R=E.value-y.value;(M=p.value[R])==null||M.$el.focus()}function x(R){R.key===Xse.left&&!t.disabled&&E.value>+t.start?(E.value=E.value-1,Vc(C)):R.key===Xse.right&&!t.disabled&&E.value$t(t.tag,{ref:S,class:["v-pagination",u.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[$t("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&$t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(O.value.first):$t(Ja,qi({_as:"VPaginationBtn"},O.value.first),null)]),$t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(O.value.prev):$t(Ja,qi({_as:"VPaginationBtn"},O.value.prev),null)]),_.value.map((R,M)=>$t("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):$t(Ja,qi({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),$t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(O.value.next):$t(Ja,qi({_as:"VPaginationBtn"},O.value.next),null)]),t.showFirstLastPage&&$t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(O.value.last):$t(Ja,qi({_as:"VPaginationBtn"},O.value.last),null)])])]})),{}}}),X_e=gi({prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},firstIcon:{type:Hl,default:"$first"},lastIcon:{type:Hl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),e0e=Oa()({name:"VDataTableFooter",props:X_e(),setup(t,e){let{slots:o}=e;const{t:f}=oy(),{page:E,pageCount:d,startIndex:s,stopIndex:n,itemsLength:u,itemsPerPage:b,setItemsPerPage:i}=BDe(),S=nr(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ga(()=>{var y;const w=Jge.filterProps(t);return $t("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),$t("div",{class:"v-data-table-footer__items-per-page"},[$t("span",null,[f(t.itemsPerPageText)]),$t(DM,{items:S.value,modelValue:b.value,"onUpdate:modelValue":m=>i(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),$t("div",{class:"v-data-table-footer__info"},[$t("div",null,[f(t.pageText,u.value?s.value+1:0,n.value,u.value)])]),$t("div",{class:"v-data-table-footer__pagination"},[$t(Jge,qi({modelValue:E.value,"onUpdate:modelValue":m=>E.value=m,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),vZ=H9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return $t(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:is(t.height),width:is(t.width),maxWidth:is(t.maxWidth),left:is(t.fixedOffset||null)}},{default:()=>{var E;return[(E=o.default)==null?void 0:E.call(o)]}})}),WDe=gi({headers:Array},"DataTable-header"),G_e=Symbol.for("vuetify:data-table-headers"),K_e={title:"",sortable:!1},YDe={...K_e,width:48};function XDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let E=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),E=!0;break}E||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let E=0;Ee.shift()}}function dle(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)dle(o,e);return e}function J_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&J_e(o.children,e);return e}function GDe(t){if(t.key){if(t.key==="data-table-group")return K_e;if(["data-table-expand","data-table-select"].includes(t.key))return YDe}}function Fue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>Fue(o,e+1))):e}function KDe(t){let e=!1;function o(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(s&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return s;if(d.children){d.fixedOffset=s;for(const n of d.children)s=f(n,s)}else d.fixed&&(d.fixedOffset=s,s+=parseFloat(d.width||"0")||0);return s}let E=0;for(const d of t)E=f(d,E)}function JDe(t,e){const o=[];let f=0;const E=XDe(t);for(;E.size()>0;){let s=E.count();const n=[];let u=1;for(;s>0;){const{element:b,priority:i}=E.dequeue(),S=e-f-Fue(b);if(n.push({...b,rowspan:S??1,colspan:b.children?dle(b).length:1}),b.children)for(const w of b.children){const y=i%1+u/Math.pow(10,f+2);E.enqueue(w,f+S+y)}u+=1,s-=1}f+=1,o.push(n)}return{columns:t.map(s=>dle(s)).flat(),headers:o}}function ewe(t){const e=[];for(const o of t){const f={...GDe(o),...o},E=f.key??(typeof f.value=="string"?f.value:null),d=f.value??E??null,s={...f,key:E,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?ewe(f.children):void 0};e.push(s)}return e}function eBe(t,e){const o=qo([]),f=qo([]),E=qo({}),d=qo({}),s=qo({});Gp(()=>{var a,c,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(p=>({key:p,title:A_(p)}))).slice(),i=J_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(c=e==null?void 0:e.showSelect)!=null&&c.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const S=ewe(b);KDe(S);const w=Math.max(...S.map(p=>Fue(p)))+1,y=JDe(S,w);o.value=y.headers,f.value=y.columns;const m=y.headers.flat(1);for(const p of m)p.key&&(p.sortable&&(p.sort&&(E.value[p.key]=p.sort),p.sortRaw&&(d.value[p.key]=p.sortRaw)),p.filter&&(s.value[p.key]=p.filter))});const n={headers:o,columns:f,sortFunctions:E,sortRawFunctions:d,filterFunctions:s};return md(G_e,n),n}function Lq(){const t=Kl(G_e);if(!t)throw new Error("Missing headers!");return t}const twe=gi({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Hl,default:"$sortAsc"},sortDescIcon:{type:Hl,default:"$sortDesc"},headerProps:{type:Object},...OD(),...vq()},"VDataTableHeaders"),t0e=Oa()({name:"VDataTableHeaders",props:twe(),setup(t,e){let{slots:o}=e;const{t:f}=oy(),{toggleSort:E,sortBy:d,isSorted:s}=Y_e(),{someSelected:n,allSelected:u,selectAll:b,showSelectAll:i}=Rq(),{columns:S,headers:w}=Lq(),{loaderClasses:y}=wD(t);function m(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?is(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:c,backgroundColorStyles:h}=dg(t,"color"),{displayClasses:p,mobile:v}=L4(t),_=nr(()=>({headers:w.value,columns:S.value,toggleSort:E,isSorted:s,sortBy:d.value,someSelected:n.value,allSelected:u.value,selectAll:b,getSortIcon:a})),O=nr(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},p.value,y.value]),C=R=>{let{column:M,x:T,y:P}=R;const A=M.key==="data-table-select"||M.key==="data-table-expand",L=qi(t.headerProps??{},M.headerProps??{});return $t(vZ,qi({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":s(M),"v-data-table__th--fixed":M.fixed},...O.value],style:{width:is(M.width),minWidth:is(M.minWidth),maxWidth:is(M.maxWidth),...m(M,P)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>E(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:A},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:s,toggleSort:E,sortBy:d.value,someSelected:n.value,allSelected:u.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&$t(RM,{modelValue:u.value,indeterminate:n.value&&!u.value,"onUpdate:modelValue":b},null)):$t("div",{class:"v-data-table-header__content"},[$t("span",null,[M.title]),M.sortable&&!t.disableSort&&$t(jl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&s(M)&&$t("div",{key:"badge",class:["v-data-table-header__sort-badge",...c.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=qi(t.headerProps??{}??{}),M=nr(()=>S.value.filter(P=>(P==null?void 0:P.sortable)&&!t.disableSort)),T=nr(()=>{if(S.value.find(A=>A.key==="data-table-select")!=null)return u.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return $t(vZ,qi({tag:"th",class:[...O.value],colspan:w.value.length+1},R),{default:()=>[$t("div",{class:"v-data-table-header__content"},[$t(DM,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!u.value)},{...o,chip:P=>{var A;return $t(LM,{onClick:(A=P.item.raw)!=null&&A.sortable?()=>E(P.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[P.item.title,$t(jl,{class:["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(P.item.raw),size:"small"},null)]})}})])]})};Ga(()=>v.value?$t("tr",null,[$t(x,null,null)]):$t(Ea,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>$t("tr",null,[R.map((T,P)=>$t(C,{column:T,x:P,y:M},null))])),t.loading&&$t("tr",{class:"v-data-table-progress"},[$t("th",{colspan:S.value.length},[$t(yq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),tBe=gi({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),nBe=Oa()({name:"VDataTableGroupHeaderRow",props:tBe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:E,extractRows:d}=V_e(),{isSelected:s,isSomeSelected:n,select:u}=Rq(),{columns:b}=Lq(),i=nr(()=>d([t.item]));return()=>$t("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(S=>{var w,y;if(S.key==="data-table-group"){const m=f(t.item)?"$expand":"$next",a=()=>E(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:m,onClick:a}}))??$t(vZ,{class:"v-data-table-group-header-row__column"},{default:()=>[$t(Ja,{size:"small",variant:"text",icon:m,onClick:a},null),$t("span",null,[t.item.value]),$t("span",null,[Ua("("),i.value.length,Ua(")")])]})}if(S.key==="data-table-select"){const m=s(i.value),a=n(i.value)&&!m,c=h=>u(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:m,indeterminate:a,"onUpdate:modelValue":c}}))??$t("td",null,[$t(RM,{modelValue:m,indeterminate:a,"onUpdate:modelValue":c},null)])}return $t("td",null,null)})])}}),rBe=gi({index:Number,item:Object,cellProps:[Object,Function],onClick:fg(),onContextmenu:fg(),onDblclick:fg(),...OD()},"VDataTableRow"),oBe=Oa()({name:"VDataTableRow",props:rBe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:E}=L4(t,"v-data-table__tr"),{isSelected:d,toggleSelect:s,someSelected:n,allSelected:u,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:S}=F_e(),{toggleSort:w,sortBy:y,isSorted:m}=Y_e(),{columns:a}=Lq();Ga(()=>$t("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((c,h)=>{const p=t.item,v=`item.${c.key}`,_=`header.${c.key}`,O={index:t.index,item:p.raw,internalItem:p,value:GT(p.columns,c.key),column:c,isSelected:d,toggleSelect:s,isExpanded:i,toggleExpand:S},C={column:c,selectAll:b,isSorted:m,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:u.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value,column:c}):t.cellProps,R=typeof c.cellProps=="function"?c.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value}):c.cellProps;return $t(vZ,qi({align:c.align,class:{"v-data-table__td--expanded-row":c.key==="data-table-expand","v-data-table__td--select-row":c.key==="data-table-select"},fixed:c.fixed,fixedOffset:c.fixedOffset,lastFixed:c.lastFixed,maxWidth:E.value?void 0:c.maxWidth,noPadding:c.key==="data-table-select"||c.key==="data-table-expand",nowrap:c.nowrap,width:E.value?void 0:c.width},x,R),{default:()=>{var T,P,A,L,D;if(o[v]&&!E.value)return(T=o[v])==null?void 0:T.call(o,O);if(c.key==="data-table-select")return((P=o["item.data-table-select"])==null?void 0:P.call(o,O))??$t(RM,{disabled:!p.selectable,modelValue:d([p]),onClick:LH(()=>s(p),["stop"])},null);if(c.key==="data-table-expand")return((A=o["item.data-table-expand"])==null?void 0:A.call(o,O))??$t(Ja,{icon:i(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:LH(()=>S(p),["stop"])},null);const M=Dl(O.value);return E.value?$t(Ea,null,[$t("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,C))??c.title]),$t("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,O))??M])]):M}})})]))}}),nwe=gi({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...OD()},"VDataTableRows"),n0e=Oa()({name:"VDataTableRows",inheritAttrs:!1,props:nwe(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:E}=Lq(),{expandOnClick:d,toggleExpand:s,isExpanded:n}=F_e(),{isSelected:u,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:S}=V_e(),{t:w}=oy(),{mobile:y}=L4(t);return Ga(()=>{var m,a;return t.loading&&(!t.items.length||f.loading)?$t("tr",{class:"v-data-table-rows-loading",key:"loading"},[$t("td",{colspan:E.value.length},[((m=f.loading)==null?void 0:m.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?$t("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[$t("td",{colspan:E.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):$t(Ea,null,[t.items.map((c,h)=>{var _;if(c.type==="group"){const O={index:h,item:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b,toggleGroup:i,isGroupOpen:S};return f["group-header"]?f["group-header"](O):$t(nBe,qi({key:`group-header_${c.id}`,item:c},_ge(o,":group-header",()=>O)),f)}const p={index:h,item:c.raw,internalItem:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b},v={...p,props:qi({key:`item_${c.key??c.index}`,onClick:d.value?()=>{s(c)}:void 0,index:h,item:c,cellProps:t.cellProps,mobile:y.value},_ge(o,":row",()=>p),typeof t.rowProps=="function"?t.rowProps({item:p.item,index:p.index,internalItem:p.internalItem}):t.rowProps)};return $t(Ea,{key:v.props.key},[f.item?f.item(v):$t(oBe,v.props,f),n(c)&&((_=f["expanded-row"])==null?void 0:_.call(f,p))])})])}),{}}});const rwe=gi({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Js(),...Q1(),...tf(),...gd()},"VTable"),r0e=Oa()({name:"VTable",props:rwe(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:E}=th(t),{densityClasses:d}=Rx(t);return Ga(()=>$t(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},E.value,d.value,t.class],style:t.style},{default:()=>{var s,n,u;return[(s=o.top)==null?void 0:s.call(o),o.default?$t("div",{class:"v-table__wrapper",style:{height:is(t.height)}},[$t("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(u=o.bottom)==null?void 0:u.call(o)]}})),{}}}),iBe=gi({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function aBe(t,e,o,f){const E=t.returnObject?e:N1(e,t.itemValue),d=N1(e,t.itemSelectable,!0),s=f.reduce((n,u)=>(u.key!=null&&(n[u.key]=N1(e,u.value)),n),{});return{type:"item",key:t.returnObject?N1(e,t.itemValue):E,index:o,value:E,selectable:d,columns:s,raw:e}}function sBe(t,e,o){return e.map((f,E)=>aBe(t,f,E,o))}function lBe(t,e){return{items:nr(()=>sBe(t,t.items,e.value))}}const cBe=gi({...nwe(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...kDe(),...CDe(),...WDe(),...iBe(),...FDe(),...VDe(),...twe(),...rwe()},"DataTable"),uBe=gi({...LDe(),...cBe(),...Iue(),...X_e()},"VDataTable"),Iq=Oa()({name:"VDataTable",props:uBe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:E}=ADe(t),{sortBy:d,multiSort:s,mustSort:n}=UDe(t),{page:u,itemsPerPage:b}=IDe(t),{disableSort:i}=CM(t),{columns:S,headers:w,sortFunctions:y,sortRawFunctions:m,filterFunctions:a}=eBe(t,{groupBy:E,showSelect:ji(t,"showSelect"),showExpand:ji(t,"showExpand")}),{items:c}=lBe(t,S),h=ji(t,"search"),{filteredItems:p}=Due(t,c,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=jDe({sortBy:d,multiSort:s,mustSort:n,page:u}),{sortByWithGroups:_,opened:O,extractRows:C,isGroupOpen:x,toggleGroup:R}=MDe({groupBy:E,sortBy:d,disableSort:i}),{sortedItems:M}=QDe(t,p,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:m}),{flatItems:T}=PDe(M,E,O),P=nr(()=>T.value.length),{startIndex:A,stopIndex:L,pageCount:D,setItemsPerPage:k}=DDe({page:u,itemsPerPage:b,itemsLength:P}),{paginatedItems:I}=zDe({items:T,startIndex:A,stopIndex:L,itemsPerPage:b}),z=nr(()=>C(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=$De(t,{allItems:c,currentPage:z}),{isExpanded:Z,toggleExpand:K}=TDe(t);RDe({page:u,itemsPerPage:b,sortBy:d,groupBy:E,search:h}),ab({VDataTableRows:{hideNoData:ji(t,"hideNoData"),noDataText:ji(t,"noDataText"),loading:ji(t,"loading"),loadingText:ji(t,"loadingText")}});const re=nr(()=>({page:u.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:Z,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:S.value,headers:w.value}));return Ga(()=>{const q=e0e.filterProps(t),Y=t0e.filterProps(t),ee=n0e.filterProps(t),me=r0e.filterProps(t);return $t(r0e,qi({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var pe;return(pe=f.top)==null?void 0:pe.call(f,re.value)},default:()=>{var pe,se,ae,ce,de,ye;return f.default?f.default(re.value):$t(Ea,null,[(pe=f.colgroup)==null?void 0:pe.call(f,re.value),!t.hideDefaultHeader&&$t("thead",{key:"thead"},[$t(t0e,Y,f)]),(se=f.thead)==null?void 0:se.call(f,re.value),!t.hideDefaultBody&&$t("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,re.value),f.body?f.body(re.value):$t(n0e,qi(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,re.value)]),(de=f.tbody)==null?void 0:de.call(f,re.value),(ye=f.tfoot)==null?void 0:ye.call(f,re.value)])},bottom:()=>f.bottom?f.bottom(re.value):!t.hideDefaultFooter&&$t(Ea,null,[$t(vM,null,null),$t(e0e,q,{prepend:f["footer.prepend"]})])})}),{}}});const fBe=gi({fluid:{type:Boolean,default:!1},...Js(),...tf()},"VContainer"),yM=Oa()({name:"VContainer",props:fBe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=n0();return Ga(()=>$t(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),owe=(()=>Tq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),iwe=(()=>Tq.reduce((t,e)=>{const o="offset"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),awe=(()=>Tq.reduce((t,e)=>{const o="order"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),o0e={col:Object.keys(owe),offset:Object.keys(iwe),order:Object.keys(awe)};function dBe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const E=e.replace(t,"");f+=`-${E}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const hBe=["auto","start","end","center","baseline","stretch"],pBe=gi({cols:{type:[Boolean,String,Number],default:!1},...owe,offset:{type:[String,Number],default:null},...iwe,order:{type:[String,Number],default:null},...awe,alignSelf:{type:String,default:null,validator:t=>hBe.includes(t)},...Js(),...tf()},"VCol"),HT=Oa()({name:"VCol",props:pBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in o0e)o0e[d].forEach(n=>{const u=t[n],b=dBe(d,n,u);b&&E.push(b)});const s=E.some(n=>n.startsWith("v-col-"));return E.push({"v-col":!s||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),E});return()=>{var E;return U1(t.tag,{class:[f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),$ue=["start","end","center"],swe=["space-between","space-around","space-evenly"];function Vue(t,e){return Tq.reduce((o,f)=>{const E=t+A_(f);return o[E]=e(),o},{})}const mBe=[...$ue,"baseline","stretch"],lwe=t=>mBe.includes(t),cwe=Vue("align",()=>({type:String,default:null,validator:lwe})),gBe=[...$ue,...swe],uwe=t=>gBe.includes(t),fwe=Vue("justify",()=>({type:String,default:null,validator:uwe})),vBe=[...$ue,...swe,"stretch"],dwe=t=>vBe.includes(t),hwe=Vue("alignContent",()=>({type:String,default:null,validator:dwe})),i0e={align:Object.keys(cwe),justify:Object.keys(fwe),alignContent:Object.keys(hwe)},yBe={align:"align",justify:"justify",alignContent:"align-content"};function bBe(t,e,o){let f=yBe[t];if(o!=null){if(e){const E=e.replace(t,"");f+=`-${E}`}return f+=`-${o}`,f.toLowerCase()}}const xBe=gi({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:lwe},...cwe,justify:{type:String,default:null,validator:uwe},...fwe,alignContent:{type:String,default:null,validator:dwe},...hwe,...Js(),...tf()},"VRow"),Dq=Oa()({name:"VRow",props:xBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in i0e)i0e[d].forEach(s=>{const n=t[s],u=bBe(d,s,n);u&&E.push(u)});return E.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),E});return()=>{var E;return U1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),BM=fq("v-spacer","div","VSpacer");const GI=Symbol.for("vuetify:v-expansion-panel"),pwe=gi({...Js(),...T_e()},"VExpansionPanelText"),yZ=Oa()({name:"VExpansionPanelText",props:pwe(),setup(t,e){let{slots:o}=e;const f=Kl(GI);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:E,onAfterLeave:d}=C_e(t,f.isSelected);return Ga(()=>$t(bue,{onAfterLeave:d},{default:()=>{var s;return[Kp($t("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&E.value&&$t("div",{class:"v-expansion-panel-text__wrapper"},[(s=o.default)==null?void 0:s.call(o)])]),[[A4,f.isSelected.value]])]}})),{}}}),mwe=gi({color:String,expandIcon:{type:Hl,default:"$expand"},collapseIcon:{type:Hl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Js()},"VExpansionPanelTitle"),bZ=Oa()({name:"VExpansionPanelTitle",directives:{Ripple:cC},props:mwe(),setup(t,e){let{slots:o}=e;const f=Kl(GI);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"color"),s=nr(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=nr(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ga(()=>{var u;return Kp($t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},E.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[$t("span",{class:"v-expansion-panel-title__overlay"},null),(u=o.default)==null?void 0:u.call(o,s.value),!t.hideActions&&$t(ef,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[$t("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,s.value))??$t(jl,null,null)])]}})]),[[M_("ripple"),t.ripple]])}),{}}}),gwe=gi({title:String,text:String,bgColor:String,...ay(),...wue(),...Pm(),...tf(),...mwe(),...pwe()},"VExpansionPanel"),vwe=Oa()({name:"VExpansionPanel",props:gwe(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=Oue(t,GI),{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"bgColor"),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),u=nr(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=nr(()=>f.group.items.value.reduce((w,y,m)=>(f.group.selected.value.includes(y.id)&&w.push(m),w),[])),i=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),S=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return md(GI,f),Ga(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),m=bZ.filterProps(t),a=yZ.filterProps(t);return $t(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":S.value,"v-expansion-panel--disabled":u.value},n.value,E.value,t.class],style:[d.value,t.style]},{default:()=>[$t("div",{class:["v-expansion-panel__shadow",...s.value]},null),$t(ef,{defaults:{VExpansionPanelTitle:{...m},VExpansionPanelText:{...a}}},{default:()=>{var c;return[y&&$t(bZ,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&$t(yZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(c=o.default)==null?void 0:c.call(o)]}})]})}),{groupItem:f}}}),_Be=["default","accordion","inset","popout"],wBe=gi({flat:Boolean,...hq(),...cue(gwe(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gd(),...Js(),...tf(),variant:{type:String,default:"default",validator:t=>_Be.includes(t)}},"VExpansionPanels"),ywe=Oa()({name:"VExpansionPanels",props:wBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:E}=pq(t,GI),{themeClasses:d}=th(t),s=nr(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ab({VExpansionPanel:{bgColor:ji(t,"bgColor"),collapseIcon:ji(t,"collapseIcon"),color:ji(t,"color"),eager:ji(t,"eager"),elevation:ji(t,"elevation"),expandIcon:ji(t,"expandIcon"),focusable:ji(t,"focusable"),hideActions:ji(t,"hideActions"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),rounded:ji(t,"rounded"),static:ji(t,"static")}}),Ga(()=>$t(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,s.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:E,next:f})]}})),{next:f,prev:E}}});const OBe=gi({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},...fC({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Pp(t).every(e=>e!=null&&typeof e=="object")},...Cq({clearable:!0})},"VFileInput"),Uue=Oa()({name:"VFileInput",inheritAttrs:!1,props:OBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=oy(),s=ql(t,"modelValue",t.modelValue,M=>Pp(M),M=>t.multiple||Array.isArray(t.modelValue)?M:M[0]??null),{isFocused:n,focus:u,blur:b}=uC(t),i=nr(()=>typeof t.showSize!="boolean"?t.showSize:void 0),S=nr(()=>(s.value??[]).reduce((M,T)=>{let{size:P=0}=T;return M+P},0)),w=nr(()=>ige(S.value,i.value)),y=nr(()=>(s.value??[]).map(M=>{const{name:T="",size:P=0}=M;return t.showSize?`${T} (${ige(P,i.value)})`:T})),m=nr(()=>{var T;const M=((T=s.value)==null?void 0:T.length)??0;return t.showSize?d(t.counterSizeString,M,w.value):d(t.counterString,M)}),a=qo(),c=qo(),h=qo(),p=nr(()=>n.value||t.active),v=nr(()=>["plain","underlined"].includes(t.variant));function _(){var M;h.value!==document.activeElement&&((M=h.value)==null||M.focus()),n.value||u()}function O(M){var T;(T=h.value)==null||T.click()}function C(M){f("mousedown:control",M)}function x(M){var T;(T=h.value)==null||T.click(),f("click:control",M)}function R(M){M.stopPropagation(),_(),Vc(()=>{s.value=[],fue(t["onClick:clear"],M)})}return ia(s,M=>{(!Array.isArray(M)||!M.length)&&h.value&&(h.value.value="")}),Ga(()=>{const M=!!(E.counter||t.counter),T=!!(M||E.details),[P,A]=bD(o),{modelValue:L,...D}=sb.filterProps(t),k=Eue(t);return $t(sb,qi({ref:a,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":v.value},t.class],style:t.style,"onClick:prepend":O},P,D,{centerAffix:!v.value,focused:n.value}),{...E,default:I=>{let{id:z,isDisabled:$,isDirty:Q,isReadonly:j,isValid:U}=I;return $t(Aq,qi({ref:c,"prepend-icon":t.prependIcon,onMousedown:C,onClick:x,"onClick:clear":R,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},k,{id:z.value,active:p.value||Q.value,dirty:Q.value||t.dirty,disabled:$.value,focused:n.value,error:U.value===!1}),{...E,default:X=>{var K;let{props:{class:te,...Z}}=X;return $t(Ea,null,[$t("input",qi({ref:h,type:"file",readonly:j.value,disabled:$.value,multiple:t.multiple,name:t.name,onClick:re=>{re.stopPropagation(),j.value&&re.preventDefault(),_()},onChange:re=>{if(!re.target)return;const q=re.target;s.value=[...q.files??[]]},onFocus:_,onBlur:b},Z,A),null),$t("div",{class:te},[!!((K=s.value)!=null&&K.length)&&!t.hideInput&&(E.selection?E.selection({fileNames:y.value,totalBytes:S.value,totalBytesReadable:w.value}):t.chips?y.value.map(re=>$t(LM,{key:re,size:"small",text:re},null)):y.value.join(", "))])])}})},details:T?I=>{var z,$;return $t(Ea,null,[(z=E.details)==null?void 0:z.call(E,I),M&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:!!(($=s.value)!=null&&$.length),value:m.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},a,c,h)}});const SBe=gi({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...B_(),...Js(),...ay(),...gue(),...Pm(),...tf({tag:"footer"}),...gd()},"VFooter"),kBe=Oa()({name:"VFooter",props:SBe(),setup(t,e){let{slots:o}=e;const f=qo(),E=Gi(),{themeClasses:d}=th(t),{backgroundColorClasses:s,backgroundColorStyles:n}=dg(ji(t,"color")),{borderClasses:u}=$O(t),{elevationClasses:b}=cb(t),{roundedClasses:i}=mg(t),S=Gi(32),{resizeRef:w}=T4(m=>{m.length&&(S.value=m[0].target.clientHeight)}),y=nr(()=>t.height==="auto"?S.value:parseInt(t.height,10));return $1(()=>t.app,()=>{const m=vue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:nr(()=>"bottom"),layoutSize:y,elementSize:nr(()=>t.height==="auto"?void 0:y.value),active:nr(()=>t.app),absolute:ji(t,"absolute")});Gp(()=>{f.value=m.layoutItemStyles.value,E.value=m.layoutIsReady})}),Ga(()=>$t(t.tag,{ref:w,class:["v-footer",d.value,s.value,u.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:is(t.height)},t.style]},o)),t.app?E.value:{}}}),TBe=gi({...Js(),...tLe()},"VForm"),CBe=Oa()({name:"VForm",props:TBe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=nLe(t),d=qo();function s(u){u.preventDefault(),E.reset()}function n(u){const b=u,i=E.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(S=>{var y;let{valid:w}=S;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ga(()=>{var u;return $t("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:s,onSubmit:n},[(u=o.default)==null?void 0:u.call(o,E)])}),Ix(E,d)}});const ABe=gi({scrollable:Boolean,...Js(),...I_(),...tf({tag:"main"})},"VMain"),MBe=Oa()({name:"VMain",props:ABe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=D_(t),{mainStyles:E,layoutIsReady:d}=O2e(),{ssrBootStyles:s}=dq();return Ga(()=>$t(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[E.value,s.value,f.value,t.style]},{default:()=>{var n,u;return[t.scrollable?$t("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(u=o.default)==null?void 0:u.call(o)]}})),d}});function EBe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const E=Gi(!1),d=Gi(0),s=nr(()=>{const b=typeof E.value=="boolean"?"top":E.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,E.value?{[b]:is(d.value)}:{top:f.value.top}]});pg(()=>{ia(o,b=>{b?window.addEventListener("scroll",u,{passive:!0}):window.removeEventListener("scroll",u)},{immediate:!0})}),Em(()=>{window.removeEventListener("scroll",u)});let n=0;function u(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),S=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-S),y=i.height+Math.max(d.value,S)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=a0e(e),E=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(E-f)*Math.abs(E),o===t.length-1&&(e*=.5)}return a0e(e)*1e3}function LBe(){const t={};function e(E){Array.from(E.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new h9e(RBe))).push([E.timeStamp,d])})}function o(E){Array.from(E.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(E){var b;const d=(b=t[E])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${E}`);const s=d[0],n=[],u=[];for(const i of d){if(s[0]-i[0]>PBe)break;n.push({t:i[0],d:i[1].clientX}),u.push({t:i[0],d:i[1].clientY})}return{x:s0e(n),y:s0e(u),get direction(){const{x:i,y:S}=this,[w,y]=[Math.abs(i),Math.abs(S)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&S>=0?"down":y>w&&S<=0?"up":IBe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function IBe(){throw new Error}function DBe(t){let{el:e,isActive:o,isTemporary:f,width:E,touchless:d,position:s}=t;pg(()=>{window.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),Em(()=>{window.removeEventListener("touchstart",p),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=nr(()=>["left","right"].includes(s.value)),{addMovement:u,endTouch:b,getVelocity:i}=LBe();let S=!1;const w=Gi(!1),y=Gi(0),m=Gi(0);let a;function c(C,x){return(s.value==="left"?C:s.value==="right"?document.documentElement.clientWidth-C:s.value==="top"?C:s.value==="bottom"?document.documentElement.clientHeight-C:P8())-(x?E.value:0)}function h(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=s.value==="left"?(C-m.value)/E.value:s.value==="right"?(document.documentElement.clientWidth-C-m.value)/E.value:s.value==="top"?(C-m.value)/E.value:s.value==="bottom"?(document.documentElement.clientHeight-C-m.value)/E.value:P8();return x?Math.max(0,Math.min(1,R)):R}function p(C){if(d.value)return;const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY,M=25,T=s.value==="left"?xdocument.documentElement.clientWidth-M:s.value==="top"?Rdocument.documentElement.clientHeight-M:P8(),P=o.value&&(s.value==="left"?xdocument.documentElement.clientWidth-E.value:s.value==="top"?Rdocument.documentElement.clientHeight-E.value:P8());(T||P||o.value&&f.value)&&(a=[x,R],m.value=c(n.value?x:R,o.value),y.value=h(n.value?x:R),S=m.value>-20&&m.value<80,b(C),u(C))}function v(C){const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY;if(S){if(!C.cancelable){S=!1;return}const T=Math.abs(x-a[0]),P=Math.abs(R-a[1]);(n.value?T>P&&T>3:P>T&&P>3)?(w.value=!0,S=!1):(n.value?P:T)>3&&(S=!1)}if(!w.value)return;C.preventDefault(),u(C);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?m.value=c(n.value?x:R,!0):M<0&&(m.value=c(n.value?x:R,!1))}function _(C){if(S=!1,!w.value)return;u(C),w.value=!1;const x=i(C.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||P8()):o.value=y.value>.5}const O=nr(()=>w.value?{transform:s.value==="left"?`translateX(calc(-100% + ${y.value*E.value}px))`:s.value==="right"?`translateX(calc(100% - ${y.value*E.value}px))`:s.value==="top"?`translateY(calc(-100% + ${y.value*E.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${y.value*E.value}px))`:P8(),transition:"none"}:void 0);return $1(w,()=>{var R,M;const C=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;Gp(()=>{var T,P,A,L;(P=e.value)==null||P.style.setProperty("transform",((T=O.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((A=O.value)==null?void 0:A.transition)||null)}),hg(()=>{var T,P;(T=e.value)==null||T.style.setProperty("transform",C),(P=e.value)==null||P.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:O}}function P8(){throw new Error}const BBe=["start","end","left","right","top","bottom"],zBe=gi({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>BBe.includes(t)},sticky:Boolean,...B_(),...Js(),...O_e(),...OD({mobile:null}),...ay(),...gue(),...Pm(),...tf({tag:"nav"}),...gd()},"VNavigationDrawer"),bwe=Oa()({name:"VNavigationDrawer",props:zBe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{isRtl:d}=n0(),{themeClasses:s}=th(t),{borderClasses:n}=$O(t),{backgroundColorClasses:u,backgroundColorStyles:b}=dg(ji(t,"color")),{elevationClasses:i}=cb(t),{displayClasses:S,mobile:w}=L4(t),{roundedClasses:y}=mg(t),m=H2e(),a=ql(t,"modelValue",null,X=>!!X),{ssrBootStyles:c}=dq(),{scopeId:h}=IM(),p=qo(),v=Gi(!1),{runOpenDelay:_,runCloseDelay:O}=S_e(t,X=>{v.value=X}),C=nr(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=nr(()=>Jse(t.location,d.value)),R=nr(()=>t.persistent),M=nr(()=>!t.permanent&&(w.value||t.temporary)),T=nr(()=>t.sticky&&!M.value&&x.value!=="bottom");$1(()=>t.expandOnHover&&t.rail!=null,()=>{ia(v,X=>f("update:rail",!X))}),$1(()=>!t.disableResizeWatcher,()=>{ia(M,X=>!t.permanent&&Vc(()=>a.value=!X))}),$1(()=>!t.disableRouteWatcher&&!!m,()=>{ia(m.currentRoute,()=>M.value&&(a.value=!1))}),ia(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:P,dragProgress:A}=DBe({el:p,isActive:a,isTemporary:M,width:C,touchless:ji(t,"touchless"),position:x}),L=nr(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):C.value;return P.value?X*A.value:X}),D=nr(()=>["top","bottom"].includes(t.location)?0:C.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=vue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:nr(()=>a.value||P.value),disableTransitions:nr(()=>P.value),absolute:nr(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=EBe({rootEl:p,isSticky:T,layoutItemStyles:k}),j=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),U=nr(()=>({...P.value?{opacity:A.value*.2,transition:"none"}:void 0,...I.value}));return ab({VList:{bgColor:"transparent"}}),Ga(()=>{const X=E.image||t.image;return $t(Ea,null,[$t(t.tag,qi({ref:p,onMouseenter:_,onMouseleave:O,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},s.value,u.value,n.value,S.value,i.value,y.value,t.class],style:[b.value,k.value,c.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,Z,K;return[X&&$t("div",{key:"image",class:"v-navigation-drawer__img"},[E.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},E.image):$t(oC,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),E.prepend&&$t("div",{class:"v-navigation-drawer__prepend"},[(te=E.prepend)==null?void 0:te.call(E)]),$t("div",{class:"v-navigation-drawer__content"},[(Z=E.default)==null?void 0:Z.call(E)]),E.append&&$t("div",{class:"v-navigation-drawer__append"},[(K=E.append)==null?void 0:K.call(E)])]}}),$t(C_,{name:"fade-transition"},{default:()=>[M.value&&(P.value||a.value)&&!!t.scrim&&$t("div",qi({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),NBe=gi({...Sq(),...fC(),...P_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),jue=Oa()({name:"VRangeSlider",props:NBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),d=qo(),s=qo(),{rtlClasses:n}=n0();function u(T){if(!E.value||!d.value)return;const P=cle(T,E.value.$el,t.direction),A=cle(T,d.value.$el,t.direction),L=Math.abs(P),D=Math.abs(A);return LT!=null&&T.length?T.map(P=>b.roundValue(P)):[0,0]),{activeThumbRef:S,hasLabels:w,max:y,min:m,mousePressed:a,onSliderMousedown:c,onSliderTouchstart:h,position:p,trackContainerRef:v,readonly:_}=L_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:P}=T;const A=S.value===((L=E.value)==null?void 0:L.$el)?[P,i.value[1]]:[i.value[0],P];!t.strict&&A[0]{var D,k,I,z;let{value:P}=T;const[A,L]=i.value;!t.strict&&A===L&&A!==m.value&&(S.value=P>A?(D=d.value)==null?void 0:D.$el:(k=E.value)==null?void 0:k.$el,(I=S.value)==null||I.focus()),S.value===((z=E.value)==null?void 0:z.$el)?i.value=[Math.min(P,L),L]:i.value=[A,Math.max(A,P)]},getActiveThumb:u}),{isFocused:O,focus:C,blur:x}=uC(t),R=nr(()=>p(i.value[0])),M=nr(()=>p(i.value[1]));return Ga(()=>{const T=sb.filterProps(t),P=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":O.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:s},T,{focused:O.value}),{...o,prepend:P?A=>{var L,D;return $t(Ea,null,[((L=o.label)==null?void 0:L.call(o,A))??(t.label?$t(Oq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,A)])}:void 0,default:A=>{var k,I;let{id:L,messagesId:D}=A;return $t("div",{class:"v-slider__container",onMousedown:_.value?void 0:c,onTouchstartPassive:_.value?void 0:h},[$t("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),$t("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),$t(I_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),$t(ule,{ref:E,"aria-describedby":D.value,focused:O&&S.value===((k=E.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;C(),S.value=($=E.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===m.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=E.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:m.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),$t(ule,{ref:d,"aria-describedby":D.value,focused:O&&S.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;C(),S.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=E.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=E.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const FBe=gi({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Hl,default:"$ratingEmpty"},fullIcon:{type:Hl,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...Js(),...Q1(),...sC(),...tf(),...gd()},"VRating"),Que=Oa()({name:"VRating",props:FBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),{themeClasses:E}=th(t),d=ql(t,"modelValue"),s=nr(()=>ug(parseFloat(d.value),0,+t.length)),n=nr(()=>u4(Number(t.length),1)),u=nr(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Gi(-1),i=nr(()=>u.value.map(a=>{const c=t.hover&&b.value>-1,h=s.value>=a,p=b.value>=a,_=(c?p:h)?t.fullIcon:t.emptyIcon,O=t.activeColor??t.color,C=h||p?O:t.color;return{isFilled:h,isHovered:p,icon:_,color:C}})),S=nr(()=>[0,...u.value].map(a=>{function c(){b.value=a}function h(){b.value=-1}function p(){t.disabled||t.readonly||(d.value=s.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?c:void 0,onMouseleave:t.hover?h:void 0,onClick:p}})),w=nr(()=>t.name??`v-rating-${j1()}`);function y(a){var R,M;let{value:c,index:h,showStar:p=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:O}=S.value[h+1],C=`${w.value}-${String(c).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return $t(Ea,null,[$t("label",{for:C,class:{"v-rating__item--half":t.halfIncrements&&c%1>0,"v-rating__item--full":t.halfIncrements&&c%1===0},onMouseenter:v,onMouseleave:_,onClick:O},[$t("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,c,t.length)]),p?o.item?o.item({...i.value[h],props:x,value:c,index:h,rating:s.value}):$t(Ja,qi({"aria-label":f(t.itemAriaLabel,c,t.length)},x),null):void 0]),$t("input",{class:"v-rating__hidden",name:w.value,id:C,type:"radio",value:c,checked:s.value===c,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function m(a){return o["item-label"]?o["item-label"](a):a.label?$t("span",null,[a.label]):$t("span",null,[Ua(" ")])}return Ga(()=>{var c;const a=!!((c=t.itemLabels)!=null&&c.length)||o["item-label"];return $t(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},E.value,t.class],style:t.style},{default:()=>[$t(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,p)=>{var v,_;return $t("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?m({value:h,index:p,label:(v=t.itemLabels)==null?void 0:v[p]}):void 0,$t("div",{class:"v-rating__item"},[t.halfIncrements?$t(Ea,null,[$t(y,{value:h-.5,index:p*2},null),$t(y,{value:h,index:p*2+1},null)]):$t(y,{value:h,index:p},null)]),a&&t.itemLabelPosition==="bottom"?m({value:h,index:p,label:(_=t.itemLabels)==null?void 0:_[p]}):void 0])})]})}),{}}});function $Be(t){const e=Gi(t());let o=-1;function f(){clearInterval(o)}function E(){f(),Vc(()=>e.value=t())}function d(s){const n=s?getComputedStyle(s):{transitionDuration:.2},u=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+u;e.value=Math.max(t()-i,0),e.value<=0&&f()},u)}return hg(f),{clear:f,time:e,start:d,reset:E}}const VBe=gi({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,..._D({location:"bottom"}),...bq(),...Pm(),...Lx(),...gd(),...R_(SD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Bq=Oa()({name:"VSnackbar",props:VBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{positionClasses:E}=xq(t),{scopeId:d}=IM(),{themeClasses:s}=th(t),{colorClasses:n,colorStyles:u,variantClasses:b}=aC(t),{roundedClasses:i}=mg(t),S=$Be(()=>Number(t.timeout)),w=qo(),y=qo(),m=Gi(!1),a=Gi(0),c=qo(),h=Kl(ZI,void 0);$1(()=>!!h,()=>{const T=O2e();Gp(()=>{c.value=T.mainStyles.value})}),ia(f,v),ia(()=>t.timeout,v),pg(()=>{f.value&&v()});let p=-1;function v(){S.reset(),window.clearTimeout(p);const T=Number(t.timeout);if(!f.value||T===-1)return;const P=lue(y.value);S.start(P),p=window.setTimeout(()=>{f.value=!1},T)}function _(){S.reset(),window.clearTimeout(p)}function O(){m.value=!0,_()}function C(){m.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=nr(()=>t.location.split(" ").reduce((T,P)=>(T[`v-snackbar--${P}`]=!0,T),{}));return Ga(()=>{const T=C4.filterProps(t),P=!!(o.default||o.text||t.text);return $t(C4,qi({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,E.value,t.class],style:[c.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":A=>f.value=A,contentProps:qi({class:["v-snackbar__wrapper",s.value,n.value,i.value,b.value],style:[u.value],onPointerenter:O,onPointerleave:C},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var A,L;return[iC(!1,"v-snackbar"),t.timer&&!m.value&&$t("div",{key:"timer",class:"v-snackbar__timer"},[$t(Q2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":S.time.value},null)]),P&&$t("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((A=o.text)==null?void 0:A.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&$t(ef,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[$t("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),Ix({},w)}});const UBe=gi({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...fC(),...Sue()},"VSwitch"),F8=Oa()({name:"VSwitch",inheritAttrs:!1,props:UBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const E=ql(t,"indeterminate"),d=ql(t,"modelValue"),{loaderClasses:s}=wD(t),{isFocused:n,focus:u,blur:b}=uC(t),i=qo(),S=Hu&&window.matchMedia("(forced-colors: active)").matches,w=nr(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=j1(),m=nr(()=>t.id||`switch-${y}`);function a(){E.value&&(E.value=!1)}function c(h){var p,v;h.stopPropagation(),h.preventDefault(),(v=(p=i.value)==null?void 0:p.input)==null||v.click()}return Ga(()=>{const[h,p]=bD(o),v=sb.filterProps(t),_=pZ.filterProps(t);return $t(sb,qi({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":E.value},s.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":O=>d.value=O,id:m.value,focused:n.value,style:t.style}),{...f,default:O=>{let{id:C,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=O;const P={model:d,isValid:T};return $t(pZ,qi({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[A=>d.value=A,a],id:C.value,"aria-describedby":x.value,type:"checkbox","aria-checked":E.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:u,onBlur:b},p),{...f,default:A=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=A;return $t("div",{class:["v-switch__track",S?void 0:L.value],style:D.value,onClick:c},[f["track-true"]&&$t("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](P)]),f["track-false"]&&$t("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](P)])])},input:A=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=A;return $t(Ea,null,[L,$t("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||S?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?$t(ef,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...P,icon:D})]}):$t(M2e,null,{default:()=>[t.loading?$t(yq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):$t(lC,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&$t(jl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const jBe=gi({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...fC(),...Cq()},"VTextarea"),TD=Oa()({name:"VTextarea",directives:{Intersect:_ue},inheritAttrs:!1,props:jBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=uC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function S(P,A){var L,D;!t.autofocus||!P||(D=(L=A[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=qo(),y=qo(),m=Gi(""),a=qo(),c=nr(()=>t.persistentPlaceholder||s.value||t.active);function h(){var P;a.value!==document.activeElement&&((P=a.value)==null||P.focus()),s.value||n()}function p(P){h(),f("click:control",P)}function v(P){f("mousedown:control",P)}function _(P){P.stopPropagation(),h(),Vc(()=>{d.value="",fue(t["onClick:clear"],P)})}function O(P){var L;const A=P.target;if(d.value=A.value,(L=t.modelModifiers)!=null&&L.trim){const D=[A.selectionStart,A.selectionEnd];Vc(()=>{A.selectionStart=D[0],A.selectionEnd=D[1]})}}const C=qo(),x=qo(+t.rows),R=nr(()=>["plain","underlined"].includes(t.variant));Gp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&Vc(()=>{if(!C.value||!y.value)return;const P=getComputedStyle(C.value),A=getComputedStyle(y.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),D=C.value.scrollHeight,k=parseFloat(P.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(A.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=ug(D??0,I,z);x.value=Math.floor(($-L)/k),m.value=is($)})}pg(M),ia(d,M),ia(()=>t.rows,M),ia(()=>t.maxRows,M),ia(()=>t.density,M);let T;return ia(C,P=>{P?(T=new ResizeObserver(M),T.observe(C.value)):T==null||T.disconnect()}),Em(()=>{T==null||T.disconnect()}),Ga(()=>{const P=!!(E.counter||t.counter||t.counterValue),A=!!(P||E.details),[L,D]=bD(o),{modelValue:k,...I}=sb.filterProps(t),z=Eue(t);return $t(sb,qi({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:s.value}),{...E,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return $t(Aq,qi({ref:y,style:{"--v-textarea-control-height":m.value},onClick:p,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:c.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:s.value,error:te.value===!1}),{...E,default:Z=>{let{props:{class:K,...re}}=Z;return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[t.prefix]),Kp($t("textarea",qi({ref:a,class:K,value:d.value,onInput:O,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:u},re,D),null),[[M_("intersect"),{handler:S},null,{once:!0}]]),t.autoGrow&&Kp($t("textarea",{class:[K,"v-textarea__sizer"],id:`${re.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:C,readonly:!0,"aria-hidden":"true"},null),[[x5e,d.value]]),t.suffix&&$t("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:A?$=>{var Q;return $t(Ea,null,[(Q=E.details)==null?void 0:Q.call(E,$),P&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},w,y,a)}});const QBe=gi({id:String,text:String,...R_(SD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),xwe=Oa()({name:"VTooltip",props:QBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-tooltip-${d}`),n=qo(),u=nr(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=nr(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=nr(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),S=nr(()=>qi({"aria-describedby":s.value},t.activatorProps));return Ga(()=>{const w=C4.filterProps(t);return $t(C4,qi({ref:n,class:["v-tooltip",t.class],style:t.style,id:s.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:u.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:S.value,_disableGlobalStack:!0},E),{activator:o.activator,default:function(){var c;for(var y=arguments.length,m=new Array(y),a=0;a{const E=o.replace(/_/g,"-");return e[E]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&!t.shiftKey&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)},setError(t,e){this.errors[t]={hasError:!0,message:e}},clearError(t){this.errors[t]&&(this.errors[t]={hasError:!1,message:""})},async fileToBase64(t){const e=new FileReader;return e.readAsDataURL(t),new Promise(o=>{e.onload=()=>{let f=e.result.split(",")[1];f=f.padEnd(f.length+(4-f.length%4)%4,"="),o(f)}})},async createFormData(t){const e={};for(const o of t)if(o){const f=await this.fileToBase64(o);e[o.name]=f}return e}}},WBe={key:0},YBe={key:1};function XBe(t,e,o,f,E,d){const s=Nd("plotly-plot"),n=Nd("component-wrapper",!0);return Uo(!0),Ya(Ea,null,ty(o.renderComponents,u=>(Uo(),Ya("div",{key:u.id},[$t(Dq,{class:"pa-5"},{default:ao(()=>{var b,i;return[u.component==="plotly-plot"?(Uo(),da(s,{key:0,id:u.id,figureJson:u.figure_json},null,8,["id","figureJson"])):u.component==="zt-html"?(Uo(),da(yM,{key:1,innerHTML:u.v_html},null,8,["innerHTML"])):u.component==="v-file-input"?(Uo(),da(rM(u.component),qi({key:2},d.componentBind(u),{error:((b=E.errors[u.id])==null?void 0:b.hasError)||!1,"error-messages":((i=E.errors[u.id])==null?void 0:i.message)||"","onUpdate:modelValue":async S=>{if(!S)return;const w=Array.isArray(S)?S:[S],y=w.reduce((a,c)=>a+c.size,0),m=50*1024*1024;if(y>m){d.setError(u.id,"Total file size must not exceed 50 MB");return}d.clearError(u.id),u.value=await d.createFormData(w),d.runCode(!0,u.id,u.value)}}),null,16,["error","error-messages","onUpdate:modelValue"])):(Uo(),da(rM(u.component),qi({key:3},d.componentBind(u),{modelValue:u.value,"onUpdate:modelValue":S=>u.value=S},hke(d.getEventBindings(u))),xve({_:2},[u.component!=="v-data-table"?{name:"default",fn:ao(()=>[u.childComponents?(Uo(),Ya("div",WBe,[$t(n,{renderComponents:d.getChildren(u.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):u.component==="v-btn"?(Uo(),Ya("div",YBe,Dl(u.text),1)):za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]}),_:2},1024)]))),128)}const _we=mp(qBe,[["render",XBe]]),GBe={emits:["runCode"],components:{"v-slider":zue,"v-rating":Que,"v-text-field":Ep,"v-file-input":Uue,"v-textarea":TD,"v-range-slider":jue,"v-select":DM,"v-combobox":Nue,"v-btn":Ja,"v-img":oC,"v-data-table":Iq,"v-autocomplete":Eq,"v-card":ub,"v-text":Hue,"plotly-plot":bce,"component-wrapper":_we},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},KBe={key:0},JBe={key:1},eze={key:1},tze={key:0},nze={key:1};function rze(t,e,o,f,E,d){const s=Nd("component-wrapper"),n=Nd("layout-component",!0);return Uo(),Ya(Ea,null,[o.rowData?(Uo(),da(Dq,{key:0},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(o.rowData.components,(u,b)=>(Uo(),da(HT,{key:b,cols:d.componentWidth(u)},{default:ao(()=>[typeof u=="string"?(Uo(),Ya("div",KBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",JBe,[$t(n,{"column-data":u,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):za("",!0),o.columnData?(Uo(),Ya("div",eze,[(Uo(!0),Ya(Ea,null,ty(o.columnData.components,(u,b)=>(Uo(),Ya("div",{key:b},[typeof u=="string"?(Uo(),Ya("div",tze,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",nze,[$t(n,{"row-data":u,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):za("",!0)],64)}const oze=mp(GBe,[["render",rze]]),Q0=Am({copilot_active:!1,connection_lost:!1,timers:{},comments_enabled:!1}),Mp={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},ize={component:t=>U1(t.tag,{...t,innerHTML:t.icon})},aze={class:"divider"},sze=em({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=qo([{title:"Code",cellType:"code",icon:`ztIcon:${Mp.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Mp.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Mp.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Mp.text}`}]);return(o,f)=>(Uo(),da(BO,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:ao(({props:E})=>[Na("div",qi(t.cellId?{...E,id:"addCell"+t.cellId}:E,{class:"activator-area"}),[Na("div",aze,[$t(vM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),$t(Ja,{"prepend-icon":`ztIcon:${Va(Mp).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:ao(()=>[Ua("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(e.value,(E,d)=>(Uo(),da(Xf,qi({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+E.title+"_"+t.cellId}:{},{onClick:s=>o.$emit("createCodeCell",E.cellType)}),{prepend:ao(()=>[$t(jl,{icon:E.icon},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua(Dl(E.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Zue=mp(sze,[["__scopeId","data-v-c00c2563"]]);function lze(t,e){const o=nr(()=>t.value);return{cellTypeColor:nr(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var cze=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let xwe;const Bq=t=>xwe=t,_we=Symbol();function dle(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var cI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(cI||(cI={}));function sze(){const t=oD(!0),e=t.run(()=>qo({}));let o=[],f=[];const E=iD({install(d){Bq(E),E._a=d,d.provide(_we,E),d.config.globalProperties.$pinia=E,f.forEach(s=>o.push(s)),f=[]},use(d){return!this._a&&!aze?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return E}const wwe=()=>{};function a0e(t,e,o,f=wwe){t.push(e);const E=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&V1e()&&hg(E),E}function P8(t,...e){t.slice().forEach(o=>{o(...e)})}const lze=t=>t();function hle(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],E=t[o];dle(E)&&dle(f)&&t.hasOwnProperty(o)&&!ku(f)&&!CO(f)?t[o]=hle(E,f):t[o]=f}return t}const cze=Symbol();function uze(t){return!dle(t)||!t.hasOwnProperty(cze)}const{assign:e4}=Object;function fze(t){return!!(ku(t)&&t.effect)}function dze(t,e,o,f){const{state:E,actions:d,getters:s}=e,n=o.state.value[t];let u;function b(){n||(o.state.value[t]=E?E():{});const i=CM(o.state.value[t]);return e4(i,d,Object.keys(s||{}).reduce((S,w)=>(S[w]=iD(nr(()=>{Bq(o);const y=o._s.get(t);return s[w].call(y,y)})),S),{}))}return u=Owe(t,b,e,o,f,!0),u}function Owe(t,e,o={},f,E,d){let s;const n=e4({actions:{}},o),u={deep:!0};let b,i,S=[],w=[],y;const m=f.state.value[t];!d&&!m&&(f.state.value[t]={}),qo({});let a;function c(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:cI.patchFunction,storeId:t,events:y}):(hle(f.state.value[t],R),M={type:cI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();Vc().then(()=>{a===T&&(b=!0)}),i=!0,P8(S,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(P=>{e4(P,T)})}:wwe;function p(){s.stop(),S=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),P=[],A=[];function L(I){P.push(I)}function D(I){A.push(I)}P8(w,{args:T,name:R,store:O,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:O,T)}catch(I){throw P8(A,I),I}return k instanceof Promise?k.then(I=>(P8(P,I),I)).catch(I=>(P8(A,I),Promise.reject(I))):(P8(P,k),k)}}const _={_p:f,$id:t,$onAction:a0e.bind(null,w),$patch:c,$reset:h,$subscribe(R,M={}){const T=a0e(S,R,M.detached,()=>P()),P=s.run(()=>ia(()=>f.state.value[t],A=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:cI.direct,events:y},A)},e4({},u,M)));return T},$dispose:p},O=Am(_);f._s.set(t,O);const x=(f._a&&f._a.runWithContext||lze)(()=>f._e.run(()=>(s=oD()).run(e)));for(const R in x){const M=x[R];if(ku(M)&&!fze(M)||CO(M))d||(m&&uze(M)&&(ku(M)?M.value=m[R]:hle(M,m[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return e4(O,x),e4(sl(O),x),Object.defineProperty(O,"$state",{get:()=>f.state.value[t],set:R=>{c(M=>{e4(M,R)})}}),f._p.forEach(R=>{e4(O,s.run(()=>R({store:O,app:f._a,pinia:f,options:n})))}),m&&d&&o.hydrate&&o.hydrate(O.$state,m),b=!0,i=!0,O}function hze(t,e,o){let f,E;const d=typeof e=="function";typeof t=="string"?(f=t,E=d?o:e):(E=t,f=t.id);function s(n,u){const b=xke();return n=n||(b?Kl(_we,null):null),n&&Bq(n),n=xwe,n._s.has(f)||(d?Owe(f,e,E,n):dze(f,E,n)),n._s.get(f)}return s.$id=f,s}function Hue(t){{t=sl(t);const e={};for(const o in t){const f=t[o];(ku(f)||CO(f))&&(e[o]=ji(t,o))}return e}}const TD=hze("comments",()=>{const t=Gi(!1),e=qo([]),o=qo(),f=qo(!0);function E(a,c,h,p){var _,O;const v={cellId:c,cellName:p,cellType:h};for(const C in a){const x=[];for(const M in a[C].replies){const T=(O=(_=a[C])==null?void 0:_.replies)==null?void 0:O[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:C,cell:v,userName:"",date:a[C].date??"",comment:a[C].comment??"",replies:x,resolved:a[C].resolved??!1};e.value.push(R)}}const d=nr(()=>(f.value=!0,o.value?e.value.filter(c=>{var h;return c.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),s=nr(()=>a=>e.value.filter(c=>c.cell.cellId===a).length);async function n(a){try{const c={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await ou.post("api/add_comment",c),e.value.push(a)}catch(c){console.error("Error adding comment:",c)}}async function u(a,c,h){try{if(h){const p=e.value.find(v=>v.id===h);if(p){const v={cellId:p.cell.cellId??"",parentCommentId:h,commentId:a};await ou.post("api/delete_reply",v),p.replies=p.replies.filter(_=>_.id!==a)}}else{const p={cellId:c,commentId:a};await ou.post("api/delete_comment",p),e.value=e.value.filter(v=>v.id!==a)}}catch(p){console.error("Error deleting comment:",p)}}async function b(a,c,h,p){try{const v=e.value.find(_=>_.id===(p??a));if(p){const _={cellId:c,parentCommentId:p,commentId:a,comment:h};await ou.post("api/edit_reply",_);const O=v==null?void 0:v.replies.find(C=>C.id===a);O&&(O.comment=h)}else{const _={cellId:c,commentId:a,comment:h};await ou.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,c){try{const h={cellId:c.cell.cellId??"",parentCommentId:a,commentId:c.id,comment:c.comment,date:c.date};await ou.post("api/add_reply",h);const p=e.value.find(v=>v.id===a);p==null||p.replies.push(c)}catch(h){console.error("Error replying to comment:",h)}}async function S(a,c){try{const h={cellId:c,commentId:a,resolved:!0};await ou.post("api/resolve_comment",h);const p=e.value.find(v=>v.id===a);p&&(p.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function m(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:s,displayedComments:d,addComment:n,editComment:b,deleteComment:u,replyComment:i,closeComments:w,resolveComment:S,showAllComments:y,showCommentsPerCell:m,loadComments:E}}),pze={class:"content"},mze={class:"header"},gze={key:0,class:"click-edit"},vze={key:0,class:"click-edit__show-text"},yze={class:"loading-wrapper"},bze={key:1,class:"click-edit__edit-field-wrapper"},xze={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},_ze={class:"actions"},wze={key:1,class:"text-primary message-btn__counter"},Oze=em({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=TD(),{commentsByCell:E}=Hue(f),d=nr(()=>E.value(o.cellId)),{cellTypeColor:s}=ize(ji(o.cellType),ji(o.error)),n=qo(o.hideCell||!1),u=qo(o.hideCode||!1),b=qo(o.expandCode||!1),i=qo(o.nonReactive||!1),S=qo(o.showTable||!1),w=qo(o.cellName||o.cellType),y=qo(""),m=qo(null),a=qo(!1),c=nr(()=>o.cellType==="code"||o.cellType==="sql"),h=nr(()=>o.cellType==="markdown"||o.cellType==="text"),p=nr(()=>o.cellType==="code"||o.cellType==="sql"),v=nr(()=>JT().name==="/app"),_=async P=>{const A={cellId:o.cellId,hideCell:P};await ou.post("api/hide_cell",A)},O=async P=>{const A={cellId:o.cellId,hideCode:P};await ou.post("api/hide_code",A),e("hideCode",P)},C=async P=>{const A={cellId:o.cellId,expandCode:P};await ou.post("api/expand_code",A),e("expandCodeUpdate",P)},x=async P=>{const A={cellId:o.cellId,nonReactive:P};await ou.post("api/cell_reactivity",A),e("updateReactivity",P)},R=async P=>{const A={cellId:o.cellId,showTable:P};await ou.post("api/show_table",A),e("updateShowTable",P)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,Vc(()=>{m.value&&m.value.focus()}))},T=async()=>{const P={cellId:o.cellId,cellName:y.value};await ou.post("api/rename_cell",P),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(P,A)=>(Uo(),Ya(Ea,null,[t.isDevMode||!t.isDevMode&&!n.value?(Uo(),da(ub,{key:0,id:"codeCard"+t.cellId,class:Gv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:ao(()=>[$t(vM,{class:"indicator",vertical:"",color:Va(s),thickness:4},null,8,["color"]),Na("div",pze,[Na("header",mze,[t.isDevMode&&p.value?(Uo(),Ya("div",gze,[a.value?za("",!0):(Uo(),Ya("div",vze,[Na("div",yze,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Uo(),da(sC,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):za("",!0)]),Na("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},Dl(w.value),1)])),a.value?(Uo(),Ya("div",bze,[$t(Ep,{modelValue:y.value,"onUpdate:modelValue":A[0]||(A[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:m,class:"click-edit__edit-field",onKeydown:pce(T,["enter"]),"onUpdate:focused":A[1]||(A[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):za("",!0)])):t.isDevMode?(Uo(),Ya("h4",xze,Dl(w.value),1)):p.value?vie(P.$slots,"header-title",{key:2},void 0,!0):(Uo(),da(BM,{key:3})),$t(ef,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:ao(()=>[Na("div",_ze,[t.isDevMode&&h.value?(Uo(),da(es,{key:0,icon:`ztIcon:${Va(Mp).save}`,onClick:A[2]||(A[2]=L=>P.$emit("save"))},null,8,["icon"])):za("",!0),t.isDevMode&&c.value?(Uo(),da(es,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${Va(Mp).play}`,onClick:A[3]||(A[3]=L=>P.$emit("play"))},null,8,["id","icon"])):za("",!0),Va(Q0).comments_enabled?(Uo(),da(es,{key:2,class:Gv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:A[4]||(A[4]=L=>Va(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:ao(()=>[d.value===0?(Uo(),da(jl,{key:0,size:"x-large",icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"])):(Uo(),Ya("span",wze,Dl(d.value),1))]),_:1},8,["class"])):za("",!0),t.isDevMode?(Uo(),da(BO,{key:3,"close-on-content-click":!1},{activator:ao(({props:L})=>[$t(es,qi({icon:`ztIcon:${Va(Mp).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[p.value?(Uo(),da(Xf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:i.value,"onUpdate:modelValue":[A[5]||(A[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Non-Reactive")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{id:"hideCell"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:n.value,"onUpdate:modelValue":[A[6]||(A[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Cell")]),_:1})]),_:1},8,["id"]),p.value?(Uo(),da(Xf,{key:1,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:u.value,"onUpdate:modelValue":[A[7]||(A[7]=L=>u.value=L),O]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Code")]),_:1})]),_:1},8,["id"])):za("",!0),p.value?(Uo(),da(Xf,{key:2,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:b.value,"onUpdate:modelValue":[A[8]||(A[8]=L=>b.value=L),C]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Expand Code")]),_:1})]),_:1},8,["id"])):za("",!0),t.cellType==="sql"?(Uo(),da(Xf,{key:3,id:"updateShowTable"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:S.value,"onUpdate:modelValue":[A[9]||(A[9]=L=>S.value=L),R]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Show Table")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:A[10]||(A[10]=L=>P.$emit("delete"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})):za("",!0)])]),_:1})]),t.isDevMode||!t.isDevMode&&p.value?(Uo(),Ya("div",{key:0,class:Gv(["code",{"code--dev":t.isDevMode}])},[vie(P.$slots,"code",{},void 0,!0)],2)):za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?za("",!0):(Uo(),Ya("div",{key:1,class:Gv(["outcome",{"outcome--dev":t.isDevMode}])},[vie(P.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Uo(),da(ywe,{key:0,text:"Cell is Stale"},{activator:ao(({props:L})=>[$t(vM,qi(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):za("",!0)]),_:3},8,["id","class"])):za("",!0),t.isDevMode?(Uo(),da(Que,{key:1,"cell-id":t.cellId,onCreateCodeCell:A[11]||(A[11]=L=>P.$emit("addCell",L))},null,8,["cell-id"])):za("",!0)],64))}});const zq=mp(Oze,[["__scopeId","data-v-6e515f8e"]]);function Sze(t,e,o=void 0){let f=()=>{};return(...E)=>(f(),new Promise((d,s)=>{const n=setTimeout(()=>d(t(...E)),e);f=()=>{clearTimeout(n),o!==void 0&&s(o)}}))}var kze=Object.defineProperty,Tze=(t,e,o)=>e in t?kze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Swe=(t,e,o)=>(Tze(t,typeof e!="symbol"?e+"":e,o),o);const Zue=tm.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(kwe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),kwe=Ql.define();function Cze(t,e){const o=t.state.selection.main.head,f=[],E=Ns.widget({widget:new Aze(e),side:1});return f.push(E.range(o)),Ns.set(f)}class Aze extends Ex{constructor(e){super(),Swe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const Mze=t=>zh.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:kwe.of({text:f,doc:o})})}}),Eze=zh.fromClass(class{constructor(){Swe(this,"decorations"),this.decorations=Ns.none}update(t){var e;const o=(e=t.state.field(Zue))==null?void 0:e.suggestion;if(!o){this.decorations=Ns.none;return}this.decorations=Cze(t.view,o)}},{decorations:t=>t.decorations}),Pze=ty.highest(FO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Zue))==null?void 0:e.suggestion;return o?(t.dispatch({...Rze(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function Rze(t,e,o,f){return{...t.changeByRange(E=>{if(E==t.selection.main)return{changes:{from:o,to:f,insert:e},range:hi.cursor(o+e.length)};const d=f-o;return!E.empty||d&&t.sliceDoc(E.from-d,E.from)!=t.sliceDoc(o,f)?{range:E}:{changes:{from:E.from-d,to:E.from,insert:e},range:hi.cursor(E.from-d+e.length)}}),userEvent:"input.complete"}}function Lze(t){const{delay:e=500}=t,o=Sze(t.fetchFn,e);return[Zue,Mze(o),Eze,Pze]}const Ize={components:{cell:zq,codemirror:iq,"v-slider":Due,"v-rating":Uue,"v-text-field":Ep,"v-file-input":$ue,"v-textarea":kD,"v-range-slider":Vue,"v-select":DM,"v-combobox":Bue,"v-btn":es,"v-img":rC,"v-data-table":Lq,"v-autocomplete":Mq,"v-card":ub,"v-text":jue,"plotly-plot":yce,"layout-component":tze,"component-wrapper":bwe},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async E=>{if(Q0.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await ou.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await ou.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=E.selection.main.head,s=E.doc.lineAt(d).number,n=d-E.doc.line(s).from,u=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,s,n,S=>{b(S)})});try{const b=await u;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async E=>{const d=E.matchBefore(/\w*/);return{from:d?d.from:E.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(u,b,i,S)=>{const w=b.label;u.dispatch({changes:{from:i,to:S??E.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[ty.highest(e),Hme(),eC.of(" "),pM,Lze({fetchFn:o,delay:400}),dM({override:[f]})]:[kc.readOnly.of(!0),ty.highest(e),Hme(),pM,dM({override:[f]})]},unplacedComponents(){var f;const t=E=>{let d=[];for(const s of E)for(const n of(s==null?void 0:s.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=E=>{let d=[],s=[];for(const n of E)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(s.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,s),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(E=>!o.includes(E.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,E,d,s;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(E=this.view)==null?void 0:E.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((s=this.view)==null?void 0:s.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const Dze={key:0,style:{display:"flex",width:"100%"}},Bze={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},zze={class:"text-ellipsis app-static-name"},Nze={key:1},Fze={class:"text-caption text-disabled text-right"},$ze=["id"],Vze=["id"],Uze=["id"];function jze(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("layout-component"),u=Nd("component-wrapper"),b=Nd("cell");return Uo(),da(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",Dze,[o.cellData.hideCode?(Uo(),Ya("h4",Bze,Dl(o.cellData.cellName),1)):(Uo(),da(gwe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>E.expanded=i)},{default:ao(()=>[$t(mwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=i=>E.expanded=i),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(yZ,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:ao(()=>[Na("h4",zze,Dl(o.cellData.cellName),1)]),_:1},8,["id"]),$t(vZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[3]||(e[3]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",Nze,[Na("p",Fze,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>{var i,S,w;return[Na("div",{id:"outputContainer_"+o.cellData.id},[(S=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&S.length?(Uo(!0),Ya(Ea,{key:0},ey((w=o.cellData.layout)==null?void 0:w.rows,(y,m)=>(Uo(),da(n,{key:m,"row-data":y,components:E.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):za("",!0),d.unplacedComponents.length?(Uo(),Ya("div",{key:1,id:"unplacedComponents"+o.cellData.id},[$t(u,{renderComponents:d.unplacedComponents,allComponents:E.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,Vze)):za("",!0),Na("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},Dl(o.cellData.output),9,Uze)],8,$ze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const Twe=mp(Ize,[["render",jze],["__scopeId","data-v-ea931945"]]);function que(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hC=que();function Cwe(t){hC=t}const Awe=/[&<>"']/,Qze=new RegExp(Awe.source,"g"),Mwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Hze=new RegExp(Mwe.source,"g"),Zze={"&":"&","<":"<",">":">",'"':""","'":"'"},s0e=t=>Zze[t];function qv(t,e){if(e){if(Awe.test(t))return t.replace(Qze,s0e)}else if(Mwe.test(t))return t.replace(Hze,s0e);return t}const qze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Wze(t){return t.replace(qze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const Yze=/(^|[^\[])\^/g;function vf(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,E)=>(E=typeof E=="object"&&"source"in E?E.source:E,E=E.replace(Yze,"$1"),t=t.replace(f,E),o),getRegex:()=>new RegExp(t,e)};return o}function l0e(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const bZ={exec:()=>null};function c0e(t,e){const o=t.replace(/\|/g,(d,s,n)=>{let u=!1,b=s;for(;--b>=0&&n[b]==="\\";)u=!u;return u?"|":" |"}),f=o.split(/ \|/);let E=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.lengthwwe=t,Owe=Symbol();function hle(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var cI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(cI||(cI={}));function uze(){const t=iD(!0),e=t.run(()=>qo({}));let o=[],f=[];const E=aD({install(d){zq(E),E._a=d,d.provide(Owe,E),d.config.globalProperties.$pinia=E,f.forEach(s=>o.push(s)),f=[]},use(d){return!this._a&&!cze?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return E}const Swe=()=>{};function l0e(t,e,o,f=Swe){t.push(e);const E=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&j1e()&&hg(E),E}function R8(t,...e){t.slice().forEach(o=>{o(...e)})}const fze=t=>t();function ple(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],E=t[o];hle(E)&&hle(f)&&t.hasOwnProperty(o)&&!ku(f)&&!CO(f)?t[o]=ple(E,f):t[o]=f}return t}const dze=Symbol();function hze(t){return!hle(t)||!t.hasOwnProperty(dze)}const{assign:e4}=Object;function pze(t){return!!(ku(t)&&t.effect)}function mze(t,e,o,f){const{state:E,actions:d,getters:s}=e,n=o.state.value[t];let u;function b(){n||(o.state.value[t]=E?E():{});const i=CM(o.state.value[t]);return e4(i,d,Object.keys(s||{}).reduce((S,w)=>(S[w]=aD(nr(()=>{zq(o);const y=o._s.get(t);return s[w].call(y,y)})),S),{}))}return u=kwe(t,b,e,o,f,!0),u}function kwe(t,e,o={},f,E,d){let s;const n=e4({actions:{}},o),u={deep:!0};let b,i,S=[],w=[],y;const m=f.state.value[t];!d&&!m&&(f.state.value[t]={}),qo({});let a;function c(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:cI.patchFunction,storeId:t,events:y}):(ple(f.state.value[t],R),M={type:cI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();Vc().then(()=>{a===T&&(b=!0)}),i=!0,R8(S,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(P=>{e4(P,T)})}:Swe;function p(){s.stop(),S=[],w=[],f._s.delete(t)}function v(R,M){return function(){zq(f);const T=Array.from(arguments),P=[],A=[];function L(I){P.push(I)}function D(I){A.push(I)}R8(w,{args:T,name:R,store:O,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:O,T)}catch(I){throw R8(A,I),I}return k instanceof Promise?k.then(I=>(R8(P,I),I)).catch(I=>(R8(A,I),Promise.reject(I))):(R8(P,k),k)}}const _={_p:f,$id:t,$onAction:l0e.bind(null,w),$patch:c,$reset:h,$subscribe(R,M={}){const T=l0e(S,R,M.detached,()=>P()),P=s.run(()=>ia(()=>f.state.value[t],A=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:cI.direct,events:y},A)},e4({},u,M)));return T},$dispose:p},O=Am(_);f._s.set(t,O);const x=(f._a&&f._a.runWithContext||fze)(()=>f._e.run(()=>(s=iD()).run(e)));for(const R in x){const M=x[R];if(ku(M)&&!pze(M)||CO(M))d||(m&&hze(M)&&(ku(M)?M.value=m[R]:ple(M,m[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return e4(O,x),e4(sl(O),x),Object.defineProperty(O,"$state",{get:()=>f.state.value[t],set:R=>{c(M=>{e4(M,R)})}}),f._p.forEach(R=>{e4(O,s.run(()=>R({store:O,app:f._a,pinia:f,options:n})))}),m&&d&&o.hydrate&&o.hydrate(O.$state,m),b=!0,i=!0,O}function gze(t,e,o){let f,E;const d=typeof e=="function";typeof t=="string"?(f=t,E=d?o:e):(E=t,f=t.id);function s(n,u){const b=wke();return n=n||(b?Kl(Owe,null):null),n&&zq(n),n=wwe,n._s.has(f)||(d?kwe(f,e,E,n):mze(f,E,n)),n._s.get(f)}return s.$id=f,s}function que(t){{t=sl(t);const e={};for(const o in t){const f=t[o];(ku(f)||CO(f))&&(e[o]=ji(t,o))}return e}}const CD=gze("comments",()=>{const t=Gi(!1),e=qo([]),o=qo(),f=qo(!0);function E(a,c,h,p){var _,O;const v={cellId:c,cellName:p,cellType:h};for(const C in a){const x=[];for(const M in a[C].replies){const T=(O=(_=a[C])==null?void 0:_.replies)==null?void 0:O[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:C,cell:v,userName:"",date:a[C].date??"",comment:a[C].comment??"",replies:x,resolved:a[C].resolved??!1};e.value.push(R)}}const d=nr(()=>(f.value=!0,o.value?e.value.filter(c=>{var h;return c.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),s=nr(()=>a=>e.value.filter(c=>c.cell.cellId===a).length);async function n(a){try{const c={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await ou.post("api/add_comment",c),e.value.push(a)}catch(c){console.error("Error adding comment:",c)}}async function u(a,c,h){try{if(h){const p=e.value.find(v=>v.id===h);if(p){const v={cellId:p.cell.cellId??"",parentCommentId:h,commentId:a};await ou.post("api/delete_reply",v),p.replies=p.replies.filter(_=>_.id!==a)}}else{const p={cellId:c,commentId:a};await ou.post("api/delete_comment",p),e.value=e.value.filter(v=>v.id!==a)}}catch(p){console.error("Error deleting comment:",p)}}async function b(a,c,h,p){try{const v=e.value.find(_=>_.id===(p??a));if(p){const _={cellId:c,parentCommentId:p,commentId:a,comment:h};await ou.post("api/edit_reply",_);const O=v==null?void 0:v.replies.find(C=>C.id===a);O&&(O.comment=h)}else{const _={cellId:c,commentId:a,comment:h};await ou.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,c){try{const h={cellId:c.cell.cellId??"",parentCommentId:a,commentId:c.id,comment:c.comment,date:c.date};await ou.post("api/add_reply",h);const p=e.value.find(v=>v.id===a);p==null||p.replies.push(c)}catch(h){console.error("Error replying to comment:",h)}}async function S(a,c){try{const h={cellId:c,commentId:a,resolved:!0};await ou.post("api/resolve_comment",h);const p=e.value.find(v=>v.id===a);p&&(p.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function m(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:s,displayedComments:d,addComment:n,editComment:b,deleteComment:u,replyComment:i,closeComments:w,resolveComment:S,showAllComments:y,showCommentsPerCell:m,loadComments:E}}),vze={class:"content"},yze={class:"header"},bze={key:0,class:"click-edit"},xze={key:0,class:"click-edit__show-text"},_ze={class:"loading-wrapper"},wze={key:1,class:"click-edit__edit-field-wrapper"},Oze={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},Sze={class:"actions"},kze={key:1,class:"text-primary message-btn__counter"},Tze=em({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=CD(),{commentsByCell:E}=que(f),d=nr(()=>E.value(o.cellId)),{cellTypeColor:s}=lze(ji(o.cellType),ji(o.error)),n=qo(o.hideCell||!1),u=qo(o.hideCode||!1),b=qo(o.expandCode||!1),i=qo(o.nonReactive||!1),S=qo(o.showTable||!1),w=qo(o.cellName||o.cellType),y=qo(""),m=qo(null),a=qo(!1),c=nr(()=>o.cellType==="code"||o.cellType==="sql"),h=nr(()=>o.cellType==="markdown"||o.cellType==="text"),p=nr(()=>o.cellType==="code"||o.cellType==="sql"),v=nr(()=>eC().name==="/app"),_=async P=>{const A={cellId:o.cellId,hideCell:P};await ou.post("api/hide_cell",A)},O=async P=>{const A={cellId:o.cellId,hideCode:P};await ou.post("api/hide_code",A),e("hideCode",P)},C=async P=>{const A={cellId:o.cellId,expandCode:P};await ou.post("api/expand_code",A),e("expandCodeUpdate",P)},x=async P=>{const A={cellId:o.cellId,nonReactive:P};await ou.post("api/cell_reactivity",A),e("updateReactivity",P)},R=async P=>{const A={cellId:o.cellId,showTable:P};await ou.post("api/show_table",A),e("updateShowTable",P)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,Vc(()=>{m.value&&m.value.focus()}))},T=async()=>{const P={cellId:o.cellId,cellName:y.value};await ou.post("api/rename_cell",P),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(P,A)=>(Uo(),Ya(Ea,null,[t.isDevMode||!t.isDevMode&&!n.value?(Uo(),da(ub,{key:0,id:"codeCard"+t.cellId,class:Gv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:ao(()=>[$t(vM,{class:"indicator",vertical:"",color:Va(s),thickness:4},null,8,["color"]),Na("div",vze,[Na("header",yze,[t.isDevMode&&p.value?(Uo(),Ya("div",bze,[a.value?za("",!0):(Uo(),Ya("div",xze,[Na("div",_ze,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Uo(),da(lC,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):za("",!0)]),Na("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},Dl(w.value),1)])),a.value?(Uo(),Ya("div",wze,[$t(Ep,{modelValue:y.value,"onUpdate:modelValue":A[0]||(A[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:m,class:"click-edit__edit-field",onKeydown:mce(T,["enter"]),"onUpdate:focused":A[1]||(A[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):za("",!0)])):t.isDevMode?(Uo(),Ya("h4",Oze,Dl(w.value),1)):p.value?yie(P.$slots,"header-title",{key:2},void 0,!0):(Uo(),da(BM,{key:3})),$t(ef,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:ao(()=>[Na("div",Sze,[t.isDevMode&&h.value?(Uo(),da(Ja,{key:0,icon:`ztIcon:${Va(Mp).save}`,onClick:A[2]||(A[2]=L=>P.$emit("save"))},null,8,["icon"])):za("",!0),t.isDevMode&&c.value?(Uo(),da(Ja,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${Va(Mp).play}`,onClick:A[3]||(A[3]=L=>P.$emit("play"))},null,8,["id","icon"])):za("",!0),Va(Q0).comments_enabled?(Uo(),da(Ja,{key:2,class:Gv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:A[4]||(A[4]=L=>Va(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:ao(()=>[d.value===0?(Uo(),da(jl,{key:0,size:"x-large",icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"])):(Uo(),Ya("span",kze,Dl(d.value),1))]),_:1},8,["class"])):za("",!0),t.isDevMode?(Uo(),da(BO,{key:3,"close-on-content-click":!1},{activator:ao(({props:L})=>[$t(Ja,qi({icon:`ztIcon:${Va(Mp).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[p.value?(Uo(),da(Xf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:i.value,"onUpdate:modelValue":[A[5]||(A[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Non-Reactive")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{id:"hideCell"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:n.value,"onUpdate:modelValue":[A[6]||(A[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Cell")]),_:1})]),_:1},8,["id"]),p.value?(Uo(),da(Xf,{key:1,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:u.value,"onUpdate:modelValue":[A[7]||(A[7]=L=>u.value=L),O]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Code")]),_:1})]),_:1},8,["id"])):za("",!0),p.value?(Uo(),da(Xf,{key:2,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:b.value,"onUpdate:modelValue":[A[8]||(A[8]=L=>b.value=L),C]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Expand Code")]),_:1})]),_:1},8,["id"])):za("",!0),t.cellType==="sql"?(Uo(),da(Xf,{key:3,id:"updateShowTable"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:S.value,"onUpdate:modelValue":[A[9]||(A[9]=L=>S.value=L),R]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Show Table")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:A[10]||(A[10]=L=>P.$emit("delete"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})):za("",!0)])]),_:1})]),t.isDevMode||!t.isDevMode&&p.value?(Uo(),Ya("div",{key:0,class:Gv(["code",{"code--dev":t.isDevMode}])},[yie(P.$slots,"code",{},void 0,!0)],2)):za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?za("",!0):(Uo(),Ya("div",{key:1,class:Gv(["outcome",{"outcome--dev":t.isDevMode}])},[yie(P.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Uo(),da(xwe,{key:0,text:"Cell is Stale"},{activator:ao(({props:L})=>[$t(vM,qi(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):za("",!0)]),_:3},8,["id","class"])):za("",!0),t.isDevMode?(Uo(),da(Zue,{key:1,"cell-id":t.cellId,onCreateCodeCell:A[11]||(A[11]=L=>P.$emit("addCell",L))},null,8,["cell-id"])):za("",!0)],64))}});const Nq=mp(Tze,[["__scopeId","data-v-6e515f8e"]]);function Cze(t,e,o=void 0){let f=()=>{};return(...E)=>(f(),new Promise((d,s)=>{const n=setTimeout(()=>d(t(...E)),e);f=()=>{clearTimeout(n),o!==void 0&&s(o)}}))}var Aze=Object.defineProperty,Mze=(t,e,o)=>e in t?Aze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Twe=(t,e,o)=>(Mze(t,typeof e!="symbol"?e+"":e,o),o);const Wue=tm.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(Cwe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),Cwe=Ql.define();function Eze(t,e){const o=t.state.selection.main.head,f=[],E=Ns.widget({widget:new Pze(e),side:1});return f.push(E.range(o)),Ns.set(f)}class Pze extends Ex{constructor(e){super(),Twe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const Rze=t=>bh.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:Cwe.of({text:f,doc:o})})}}),Lze=bh.fromClass(class{constructor(){Twe(this,"decorations"),this.decorations=Ns.none}update(t){var e;const o=(e=t.state.field(Wue))==null?void 0:e.suggestion;if(!o){this.decorations=Ns.none;return}this.decorations=Eze(t.view,o)}},{decorations:t=>t.decorations}),Ize=ny.highest(FO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Wue))==null?void 0:e.suggestion;return o?(t.dispatch({...Dze(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function Dze(t,e,o,f){return{...t.changeByRange(E=>{if(E==t.selection.main)return{changes:{from:o,to:f,insert:e},range:hi.cursor(o+e.length)};const d=f-o;return!E.empty||d&&t.sliceDoc(E.from-d,E.from)!=t.sliceDoc(o,f)?{range:E}:{changes:{from:E.from-d,to:E.from,insert:e},range:hi.cursor(E.from-d+e.length)}}),userEvent:"input.complete"}}function Bze(t){const{delay:e=500}=t,o=Cze(t.fetchFn,e);return[Wue,Rze(o),Lze,Ize]}const zze={components:{cell:Nq,codemirror:aq,"v-slider":zue,"v-rating":Que,"v-text-field":Ep,"v-file-input":Uue,"v-textarea":TD,"v-range-slider":jue,"v-select":DM,"v-combobox":Nue,"v-btn":Ja,"v-img":oC,"v-data-table":Iq,"v-autocomplete":Eq,"v-card":ub,"v-text":Hue,"plotly-plot":bce,"layout-component":oze,"component-wrapper":_we},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Array,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{},runLint:!1,currentLint:[]}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async d=>{if(Q0.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await ou.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await ou.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const s=d.selection.main.head,n=d.doc.lineAt(s).number,u=s-d.doc.line(n).from,b=new Promise((i,S)=>{this.$emit("copilotCompletion",this.cellData.id,n,u,w=>{i(w)})});try{const i=await b;if(i.status===200&&i.data.completions.length>0)return this.copilotSuggestion=i.data.completions[0].uuid,i.data.completions[0].displayText}catch(i){console.log("Error fetching suggestion:",i)}}return""},f=async d=>{const s=d.matchBefore(/\w*/);return{from:s?s.from:d.pos,options:this.completions.map(u=>({label:u.label,type:u.type,apply:(b,i,S,w)=>{const y=i.label;b.dispatch({changes:{from:S,to:w??d.pos,insert:y}})}}))}},E=wPe(d=>{if(!this.runLint)return this.currentLint;const s=[];return Array.isArray(this.lintResults)?this.lintResults.forEach(n=>{const u=d.state.doc.line(n.from.line+1).from+n.from.ch,b=d.state.doc.line(n.to.line+1).from+n.to.ch;u>=0&&b>=u&&b<=d.state.doc.length?s.push({from:u,to:b,severity:n.severity,message:n.message}):console.warn("Invalid lint result positions:",n)}):console.warn("No lint results for cell:",this.cellData.id),this.runLint=!1,this.currentLint=s,s},{needsRefresh:()=>this.runLint});return this.$devMode&&!this.isAppRoute?[ny.highest(e),qme(),tC.of(" "),pM,Bze({fetchFn:o,delay:400}),VI({override:[f]}),E]:[kc.readOnly.of(!0),ny.highest(e),qme(),pM]},unplacedComponents(){var f;const t=E=>{let d=[];for(const s of E)for(const n of(s==null?void 0:s.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=E=>{let d=[],s=[];for(const n of E)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(s.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,s),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(E=>!o.includes(E.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.$watch(()=>this.lintResults,()=>{this.runLint=!0}),this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,E,d,s;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(E=this.view)==null?void 0:E.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((s=this.view)==null?void 0:s.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const Nze={key:0,style:{display:"flex",width:"100%"}},Fze={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},$ze={class:"text-ellipsis app-static-name"},Vze={key:1},Uze={class:"text-caption text-disabled text-right"},jze=["id"],Qze=["id"],Hze=["id"];function Zze(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("layout-component"),u=Nd("component-wrapper"),b=Nd("cell");return Uo(),da(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",Nze,[o.cellData.hideCode?(Uo(),Ya("h4",Fze,Dl(o.cellData.cellName),1)):(Uo(),da(ywe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>E.expanded=i)},{default:ao(()=>[$t(vwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=i=>E.expanded=i),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(bZ,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:ao(()=>[Na("h4",$ze,Dl(o.cellData.cellName),1)]),_:1},8,["id"]),$t(yZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[3]||(e[3]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",Vze,[Na("p",Uze,Dl(d.shortcutText)+" to run ",1)])):za("",!0)]),outcome:ao(()=>{var i,S,w;return[Na("div",{id:"outputContainer_"+o.cellData.id},[(S=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&S.length?(Uo(!0),Ya(Ea,{key:0},ty((w=o.cellData.layout)==null?void 0:w.rows,(y,m)=>(Uo(),da(n,{key:m,"row-data":y,components:E.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):za("",!0),d.unplacedComponents.length?(Uo(),Ya("div",{key:1,id:"unplacedComponents"+o.cellData.id},[$t(u,{renderComponents:d.unplacedComponents,allComponents:E.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,Qze)):za("",!0),Na("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},Dl(o.cellData.output),9,Hze)],8,jze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const Awe=mp(zze,[["render",Zze],["__scopeId","data-v-46d618ae"]]);function Yue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pC=Yue();function Mwe(t){pC=t}const Ewe=/[&<>"']/,qze=new RegExp(Ewe.source,"g"),Pwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Wze=new RegExp(Pwe.source,"g"),Yze={"&":"&","<":"<",">":">",'"':""","'":"'"},c0e=t=>Yze[t];function qv(t,e){if(e){if(Ewe.test(t))return t.replace(qze,c0e)}else if(Pwe.test(t))return t.replace(Wze,c0e);return t}const Xze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Gze(t){return t.replace(Xze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const Kze=/(^|[^\[])\^/g;function vf(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,E)=>(E=typeof E=="object"&&"source"in E?E.source:E,E=E.replace(Kze,"$1"),t=t.replace(f,E),o),getRegex:()=>new RegExp(t,e)};return o}function u0e(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const xZ={exec:()=>null};function f0e(t,e){const o=t.replace(/\|/g,(d,s,n)=>{let u=!1,b=s;for(;--b>=0&&n[b]==="\\";)u=!u;return u?"|":" |"}),f=o.split(/ \|/);let E=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.length{const d=E.match(/^\s+/);if(d===null)return E;const[s]=d;return s.length>=f.length?E.slice(f.length):E}).join(` -`)}class xZ{constructor(e){pu(this,"options");pu(this,"rules");pu(this,"lexer");this.options=e||hC}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:YQ(f,` -`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],E=Gze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:E}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const E=YQ(f,"#");(this.options.pedantic||!E||/ $/.test(E))&&(f=E.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=YQ(o[0].replace(/^ *>[ \t]?/gm,""),` +`)}class _Z{constructor(e){pu(this,"options");pu(this,"rules");pu(this,"lexer");this.options=e||pC}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:XQ(f,` +`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],E=eNe(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:E}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const E=XQ(f,"#");(this.options.pedantic||!E||/ $/.test(E))&&(f=E.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=XQ(o[0].replace(/^ *>[ \t]?/gm,""),` `),E=this.lexer.state.top;this.lexer.state.top=!0;const d=this.lexer.blockTokens(f);return this.lexer.state.top=E,{type:"blockquote",raw:o[0],tokens:d,text:f}}}list(e){let o=this.rules.block.list.exec(e);if(o){let f=o[1].trim();const E=f.length>1,d={type:"list",raw:"",ordered:E,start:E?+f.slice(0,-1):"",loose:!1,items:[]};f=E?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=E?f:"[*+-]");const s=new RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);let n="",u="",b=!1;for(;e;){let i=!1;if(!(o=s.exec(e))||this.rules.block.hr.test(e))break;n=o[0],e=e.substring(n.length);let S=o[2].split(` `,1)[0].replace(/^\t+/,h=>" ".repeat(3*h.length)),w=e.split(` `,1)[0],y=0;this.options.pedantic?(y=2,u=S.trimStart()):(y=o[2].search(/[^ ]/),y=y>4?1:y,u=S.slice(y),y+=o[1].length);let m=!1;if(!S&&/^ *$/.test(w)&&(n+=w+` @@ -3615,10 +3615,10 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `,1)[0];if(w=O,this.options.pedantic&&(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(w)||_.test(w)||h.test(w)||p.test(e))break;if(w.search(/[^ ]/)>=y||!w.trim())u+=` `+w.slice(y);else{if(m||S.search(/[^ ]/)>=4||v.test(S)||_.test(S)||p.test(S))break;u+=` `+w}!m&&!w.trim()&&(m=!0),n+=O+` -`,e=e.substring(O.length+1),S=w.slice(y)}}d.loose||(b?d.loose=!0:/\n *\n *$/.test(n)&&(b=!0));let a=null,c;this.options.gfm&&(a=/^\[[ xX]\] /.exec(u),a&&(c=a[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:n,task:!!a,checked:c,loose:!1,text:u,tokens:[]}),d.raw+=n}d.items[d.items.length-1].raw=n.trimEnd(),d.items[d.items.length-1].text=u.trimEnd(),d.raw=d.raw.trimEnd();for(let i=0;iy.type==="space"),w=S.length>0&&S.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:E,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:c0e(o[1]).map(E=>({text:E,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(f.header.length===f.align.length){let E=f.align.length,d,s,n,u;for(d=0;d({text:b,tokens:[]}));for(E=f.header.length,s=0;s/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const s=YQ(f.slice(0,-1),"\\");if((f.length-s.length)%2===0)return}else{const s=Xze(o[2],"()");if(s>-1){const u=(o[0].indexOf("!")===0?5:4)+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,u).trim(),o[3]=""}}let E=o[2],d="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(E);s&&(E=s[1],d=s[3])}else d=o[3]?o[3].slice(1,-1):"";return E=E.trim(),/^$/.test(f)?E=E.slice(1):E=E.slice(1,-1)),u0e(o,{href:E&&E.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let E=(f[2]||f[1]).replace(/\s+/g," ");if(E=o[E.toLowerCase()],!E){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return u0e(f,E,f[0],this.lexer)}}emStrong(e,o,f=""){let E=this.rules.inline.emStrong.lDelim.exec(e);if(!E||E[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(E[1]||E[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const s=[...E[0]].length-1;let n,u,b=s,i=0;const S=E[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(S.lastIndex=0,o=o.slice(-1*e.length+s);(E=S.exec(o))!=null;){if(n=E[1]||E[2]||E[3]||E[4]||E[5]||E[6],!n)continue;if(u=[...n].length,E[3]||E[4]){b+=u;continue}else if((E[5]||E[6])&&s%3&&!((s+u)%3)){i+=u;continue}if(b-=u,b>0)continue;u=Math.min(u,u+b+i);const w=[...E[0]][0].length,y=e.slice(0,s+E.index+w+u);if(Math.min(s,u)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const E=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return E&&d&&(f=f.substring(1,f.length-1)),f=qv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,E;return o[2]==="@"?(f=qv(o[1]),E="mailto:"+f):(f=qv(o[1]),E=f),{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,E;if(o[2]==="@")f=qv(o[0]),E="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=qv(o[0]),o[1]==="www."?E="http://"+o[0]:E=o[0]}return{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=qv(o[0]),{type:"text",raw:o[0],text:f}}}}const qs={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:bZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};qs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;qs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;qs.def=vf(qs.def).replace("label",qs._label).replace("title",qs._title).getRegex();qs.bullet=/(?:[*+-]|\d{1,9}[.)])/;qs.listItemStart=vf(/^( *)(bull) */).replace("bull",qs.bullet).getRegex();qs.list=vf(qs.list).replace(/bull/g,qs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qs.def.source+")").getRegex();qs._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";qs._comment=/|$)/;qs.html=vf(qs.html,"i").replace("comment",qs._comment).replace("tag",qs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();qs.lheading=vf(qs.lheading).replace(/bull/g,qs.bullet).getRegex();qs.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.blockquote=vf(qs.blockquote).replace("paragraph",qs.paragraph).getRegex();qs.normal={...qs};qs.gfm={...qs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};qs.gfm.table=vf(qs.gfm.table).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.gfm.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.pedantic={...qs.normal,html:vf(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qs._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vf(qs.normal._paragraph).replace("hr",qs.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",qs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ha={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:bZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:bZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Ha.punctuation=vf(Ha.punctuation,"u").replace(/punctuation/g,Ha._punctuation).getRegex();Ha.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Ha.anyPunctuation=/\\[punct]/g;Ha._escapes=/\\([punct])/g;Ha._comment=vf(qs._comment).replace("(?:-->|$)","-->").getRegex();Ha.emStrong.lDelim=vf(Ha.emStrong.lDelim,"u").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimAst=vf(Ha.emStrong.rDelimAst,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimUnd=vf(Ha.emStrong.rDelimUnd,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.anyPunctuation=vf(Ha.anyPunctuation,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._escapes=vf(Ha._escapes,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Ha._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])?)+(?![-_])/;Ha.autolink=vf(Ha.autolink).replace("scheme",Ha._scheme).replace("email",Ha._email).getRegex();Ha._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Ha.tag=vf(Ha.tag).replace("comment",Ha._comment).replace("attribute",Ha._attribute).getRegex();Ha._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Ha._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Ha._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Ha.link=vf(Ha.link).replace("label",Ha._label).replace("href",Ha._href).replace("title",Ha._title).getRegex();Ha.reflink=vf(Ha.reflink).replace("label",Ha._label).replace("ref",qs._label).getRegex();Ha.nolink=vf(Ha.nolink).replace("ref",qs._label).getRegex();Ha.reflinkSearch=vf(Ha.reflinkSearch,"g").replace("reflink",Ha.reflink).replace("nolink",Ha.nolink).getRegex();Ha.normal={...Ha};Ha.pedantic={...Ha.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:vf(/^!?\[(label)\]\((.*?)\)/).replace("label",Ha._label).getRegex(),reflink:vf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ha._label).getRegex()};Ha.gfm={...Ha.normal,escape:vf(Ha.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]*?(?:(?=[\\y.type==="space"),w=S.length>0&&S.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:E,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:f0e(o[1]).map(E=>({text:E,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(f.header.length===f.align.length){let E=f.align.length,d,s,n,u;for(d=0;d({text:b,tokens:[]}));for(E=f.header.length,s=0;s/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const s=XQ(f.slice(0,-1),"\\");if((f.length-s.length)%2===0)return}else{const s=Jze(o[2],"()");if(s>-1){const u=(o[0].indexOf("!")===0?5:4)+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,u).trim(),o[3]=""}}let E=o[2],d="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(E);s&&(E=s[1],d=s[3])}else d=o[3]?o[3].slice(1,-1):"";return E=E.trim(),/^$/.test(f)?E=E.slice(1):E=E.slice(1,-1)),d0e(o,{href:E&&E.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let E=(f[2]||f[1]).replace(/\s+/g," ");if(E=o[E.toLowerCase()],!E){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return d0e(f,E,f[0],this.lexer)}}emStrong(e,o,f=""){let E=this.rules.inline.emStrong.lDelim.exec(e);if(!E||E[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(E[1]||E[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const s=[...E[0]].length-1;let n,u,b=s,i=0;const S=E[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(S.lastIndex=0,o=o.slice(-1*e.length+s);(E=S.exec(o))!=null;){if(n=E[1]||E[2]||E[3]||E[4]||E[5]||E[6],!n)continue;if(u=[...n].length,E[3]||E[4]){b+=u;continue}else if((E[5]||E[6])&&s%3&&!((s+u)%3)){i+=u;continue}if(b-=u,b>0)continue;u=Math.min(u,u+b+i);const w=[...E[0]][0].length,y=e.slice(0,s+E.index+w+u);if(Math.min(s,u)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const E=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return E&&d&&(f=f.substring(1,f.length-1)),f=qv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,E;return o[2]==="@"?(f=qv(o[1]),E="mailto:"+f):(f=qv(o[1]),E=f),{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,E;if(o[2]==="@")f=qv(o[0]),E="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=qv(o[0]),o[1]==="www."?E="http://"+o[0]:E=o[0]}return{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=qv(o[0]),{type:"text",raw:o[0],text:f}}}}const qs={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:xZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};qs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;qs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;qs.def=vf(qs.def).replace("label",qs._label).replace("title",qs._title).getRegex();qs.bullet=/(?:[*+-]|\d{1,9}[.)])/;qs.listItemStart=vf(/^( *)(bull) */).replace("bull",qs.bullet).getRegex();qs.list=vf(qs.list).replace(/bull/g,qs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qs.def.source+")").getRegex();qs._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";qs._comment=/|$)/;qs.html=vf(qs.html,"i").replace("comment",qs._comment).replace("tag",qs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();qs.lheading=vf(qs.lheading).replace(/bull/g,qs.bullet).getRegex();qs.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.blockquote=vf(qs.blockquote).replace("paragraph",qs.paragraph).getRegex();qs.normal={...qs};qs.gfm={...qs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};qs.gfm.table=vf(qs.gfm.table).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.gfm.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.pedantic={...qs.normal,html:vf(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qs._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vf(qs.normal._paragraph).replace("hr",qs.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",qs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ha={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:xZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Ha.punctuation=vf(Ha.punctuation,"u").replace(/punctuation/g,Ha._punctuation).getRegex();Ha.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Ha.anyPunctuation=/\\[punct]/g;Ha._escapes=/\\([punct])/g;Ha._comment=vf(qs._comment).replace("(?:-->|$)","-->").getRegex();Ha.emStrong.lDelim=vf(Ha.emStrong.lDelim,"u").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimAst=vf(Ha.emStrong.rDelimAst,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimUnd=vf(Ha.emStrong.rDelimUnd,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.anyPunctuation=vf(Ha.anyPunctuation,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._escapes=vf(Ha._escapes,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Ha._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])?)+(?![-_])/;Ha.autolink=vf(Ha.autolink).replace("scheme",Ha._scheme).replace("email",Ha._email).getRegex();Ha._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Ha.tag=vf(Ha.tag).replace("comment",Ha._comment).replace("attribute",Ha._attribute).getRegex();Ha._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Ha._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Ha._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Ha.link=vf(Ha.link).replace("label",Ha._label).replace("href",Ha._href).replace("title",Ha._title).getRegex();Ha.reflink=vf(Ha.reflink).replace("label",Ha._label).replace("ref",qs._label).getRegex();Ha.nolink=vf(Ha.nolink).replace("ref",qs._label).getRegex();Ha.reflinkSearch=vf(Ha.reflinkSearch,"g").replace("reflink",Ha.reflink).replace("nolink",Ha.nolink).getRegex();Ha.normal={...Ha};Ha.pedantic={...Ha.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:vf(/^!?\[(label)\]\((.*?)\)/).replace("label",Ha._label).getRegex(),reflink:vf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ha._label).getRegex()};Ha.gfm={...Ha.normal,escape:vf(Ha.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]*?(?:(?=[\\u+" ".repeat(b.length));let f,E,d,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(f=n.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.space(e)){e=e.substring(f.raw.length),f.raw.length===1&&o.length>0?o[o.length-1].raw+=` `:o.push(f);continue}if(f=this.tokenizer.code(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&(E.type==="paragraph"||E.type==="text")?(E.raw+=` `+f.raw,E.text+=` @@ -3628,7 +3628,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `+f.raw,E.text+=` `+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f),s=d.length!==e.length,e=e.substring(f.raw.length);continue}if(f=this.tokenizer.text(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&E.type==="text"?(E.raw+=` `+f.raw,E.text+=` -`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,E,d,s=e,n,u,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(b=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,s,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const S=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},S),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),u=!0,E=o[o.length-1],E&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class _Z{constructor(e){pu(this,"options");this.options=e||hC}code(e,o,f){var d;const E=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` +`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,E,d,s=e,n,u,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(b=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,s,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const S=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},S),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),u=!0,E=o[o.length-1],E&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class wZ{constructor(e){pu(this,"options");this.options=e||pC}code(e,o,f){var d;const E=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` `,E?'
'+(f?e:qv(e,!0))+`
`:"
"+(f?e:qv(e,!0))+`
`}blockquote(e){return`
@@ -3646,32 +3646,32 @@ ${e}
`}tablerow(e){return` ${e} `}tablecell(e,o){const f=o.header?"th":"td";return(o.align?`<${f} align="${o.align}">`:`<${f}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
"}del(e){return`${e}`}link(e,o,f){const E=l0e(e);if(E===null)return f;e=E;let d='",d}image(e,o,f){const E=l0e(e);if(E===null)return f;e=E;let d=`${f}0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=c+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=c+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:c+" "}):a+=c+" "}a+=this.parse(w.tokens,b),i+=this.renderer.listitem(a,m,!!y)}f+=this.renderer.list(i,n,u);continue}case"html":{const s=d;f+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=d;f+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=d,n=s.tokens?this.parseInline(s.tokens):s.text;for(;E+1{f=f.concat(this.walkTokens(n[u],o))}):n.tokens&&(f=f.concat(this.walkTokens(n.tokens,o)))}}return f}use(...e){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(f=>{const E={...f};if(E.async=this.defaults.async||E.async||!1,f.extensions&&(f.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const s=o.renderers[d.name];s?o.renderers[d.name]=function(...n){let u=d.renderer.apply(this,n);return u===!1&&(u=s.apply(this,n)),u}:o.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=o[d.level];s?s.unshift(d.tokenizer):o[d.level]=[d.tokenizer],d.start&&(d.level==="block"?o.startBlock?o.startBlock.push(d.start):o.startBlock=[d.start]:d.level==="inline"&&(o.startInline?o.startInline.push(d.start):o.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(o.childTokens[d.name]=d.childTokens)}),E.extensions=o),f.renderer){const d=this.defaults.renderer||new _Z(this.defaults);for(const s in f.renderer){const n=f.renderer[s],u=s,b=d[u];d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S||""}}E.renderer=d}if(f.tokenizer){const d=this.defaults.tokenizer||new xZ(this.defaults);for(const s in f.tokenizer){const n=f.tokenizer[s],u=s,b=d[u];d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S}}E.tokenizer=d}if(f.hooks){const d=this.defaults.hooks||new uI;for(const s in f.hooks){const n=f.hooks[s],u=s,b=d[u];uI.passThroughHooks.has(s)?d[u]=i=>{if(this.defaults.async)return Promise.resolve(n.call(d,i)).then(w=>b.call(d,w));const S=n.call(d,i);return b.call(d,S)}:d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S}}E.hooks=d}if(f.walkTokens){const d=this.defaults.walkTokens,s=f.walkTokens;E.walkTokens=function(n){let u=[];return u.push(s.call(this,n)),d&&(u=u.concat(d.call(this,n))),u}}this.defaults={...this.defaults,...E}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,o){return O_.lex(e,o??this.defaults)}parser(e,o){return S_.parse(e,o??this.defaults)}}tD=new WeakSet,ple=function(e,o){return(f,E)=>{const d={...E},s={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const n=fQ(this,AZ,Ewe).call(this,!!s.silent,!!s.async);if(typeof f>"u"||f===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof f!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(f)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(f):f).then(u=>e(u,s)).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>o(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(n);try{s.hooks&&(f=s.hooks.preprocess(f));const u=e(f,s);s.walkTokens&&this.walkTokens(u,s.walkTokens);let b=o(u,s);return s.hooks&&(b=s.hooks.postprocess(b)),b}catch(u){return n(u)}}},AZ=new WeakSet,Ewe=function(e,o){return f=>{if(f.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const E="

An error occurred:

"+qv(f.message+"",!0)+"
";return o?Promise.resolve(E):E}if(o)return Promise.reject(f);throw f}};const GT=new Kze;function Bf(t,e){return GT.parse(t,e)}Bf.options=Bf.setOptions=function(t){return GT.setOptions(t),Bf.defaults=GT.defaults,Cwe(Bf.defaults),Bf};Bf.getDefaults=que;Bf.defaults=hC;Bf.use=function(...t){return GT.use(...t),Bf.defaults=GT.defaults,Cwe(Bf.defaults),Bf};Bf.walkTokens=function(t,e){return GT.walkTokens(t,e)};Bf.parseInline=GT.parseInline;Bf.Parser=S_;Bf.parser=S_.parse;Bf.Renderer=_Z;Bf.TextRenderer=Wue;Bf.Lexer=O_;Bf.lexer=O_.lex;Bf.Tokenizer=xZ;Bf.Hooks=uI;Bf.parse=Bf;Bf.options;Bf.setOptions;Bf.use;Bf.walkTokens;Bf.parseInline;S_.parse;O_.lex;class wZ{static create(e,o,f,E,d){let s=E+(E<<8)+e+(o<<4)|0;return new wZ(e,o,f,s,d,[],[])}constructor(e,o,f,E,d,s,n){this.type=e,this.value=o,this.from=f,this.hash=E,this.end=d,this.children=s,this.positions=n,this.hashProp=[[Zl.contextHash,E]]}addChild(e,o){e.prop(Zl.contextHash)!=this.hash&&(e=new gf(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(o)}toTree(e,o=this.end){let f=this.children.length-1;return f>=0&&(o=Math.max(o,this.positions[f]+this.children[f].length+this.from)),new gf(e.types[this.type],this.children,this.positions,o-this.from).balance({makeTree:(E,d,s)=>new gf(Jp.none,E,d,s,this.hashProp)})}}var xa;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(xa||(xa={}));class Jze{constructor(e,o){this.start=e,this.content=o,this.marks=[],this.parsers=[]}}class eNe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return fI(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,o=0,f=0){for(let E=o;E=e.stack[o.depth+1].value+o.baseIndent)return!0;if(o.indent>=o.baseIndent+4)return!1;let f=(t.type==xa.OrderedList?Gue:Xue)(o,e,!1);return f>0&&(t.type!=xa.BulletList||Yue(o,e,!1)<0)&&o.text.charCodeAt(o.pos+f-1)==t.value}const Pwe={[xa.Blockquote](t,e,o){return o.next!=62?!1:(o.markers.push(Ju(xa.QuoteMark,e.lineStart+o.pos,e.lineStart+o.pos+1)),o.moveBase(o.pos+(fb(o.text.charCodeAt(o.pos+1))?2:1)),t.end=e.lineStart+o.text.length,!0)},[xa.ListItem](t,e,o){return o.indent-1?!1:(o.moveBaseColumn(o.baseIndent+t.value),!0)},[xa.OrderedList]:f0e,[xa.BulletList]:f0e,[xa.Document](){return!0}};function fb(t){return t==32||t==9||t==10||t==13}function fI(t,e=0){for(;eo&&fb(t.charCodeAt(e-1));)e--;return e}function Rwe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||f<3?-1:1}function Iwe(t,e){for(let o=t.stack.length-1;o>=0;o--)if(t.stack[o].type==e)return!0;return!1}function Xue(t,e,o){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||fb(t.text.charCodeAt(t.pos+1)))&&(!o||Iwe(e,xa.BulletList)||t.skipSpace(t.pos+2)=48&&E<=57;){f++;if(f==t.text.length)return-1;E=t.text.charCodeAt(f)}return f==t.pos||f>t.pos+9||E!=46&&E!=41||ft.pos+1||t.next!=49)?-1:f+1-t.pos}function Dwe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:o}function Bwe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,Nwe=/\?>/,gle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,$we=/\?>/,vle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(f);if(d)return t.append(Ju(xa.Comment,o,o+1+d[0].length));let s=/^\?[^]*?\?>/.exec(f);if(s)return t.append(Ju(xa.ProcessingInstruction,o,o+1+s[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(Ju(xa.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let E=t.slice(o-1,o),d=t.slice(f,f+1),s=KI.test(E),n=KI.test(d),u=/\s|^$/.test(E),b=/\s|^$/.test(d),i=!b&&(!n||u||s),S=!u&&(!s||b||n),w=i&&(e==42||!S||s),y=S&&(e==42||!i||n);return t.append(new bx(e==95?Qwe:Hwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(Ju(xa.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(Ju(xa.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new bx(NL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new bx(p0e,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let E=t.parts[f];if(E instanceof bx&&(E.type==NL||E.type==p0e)){if(!E.side||t.skipSpace(E.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),s=t.parts[f]=sNe(t,d,E.type==NL?xa.Link:xa.Image,E.from,o+1);if(E.type==NL)for(let n=0;ne?Ju(xa.URL,e+o,d+o):d==t.length?null:!1}}function qwe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let E=f==40?41:f;for(let d=e+1,s=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,E,d){return this.append(new bx(e,o,f,(E?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;u--){let a=this.parts[u];if(a instanceof bx&&a.side&1&&a.type==E.type&&!(d&&(E.side&1||a.side&2)&&(a.to-a.from+s)%3==0&&((a.to-a.from)%3||s%3))){n=a;break}}if(!n)continue;let b=E.type.resolve,i=[],S=n.from,w=E.to;if(d){let a=Math.min(2,n.to-n.from,s);S=n.to-a,w=E.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,S,n.to));for(let a=u+1;a=0;o--){let f=this.parts[o];if(f instanceof bx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return fI(this.text,e-this.offset)+this.offset}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new jwe(e,o)}}function yle(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let E of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` -`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let E=e+this.fragment.offset;for(;f.to<=E;)if(!f.parent())return!1;for(;;){if(f.from>=E)return this.fragment.from<=o;if(!f.childAfter(E))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(Zl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,E=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,s=d,n=e.block.children.length,u=s,b=n;for(;;){if(o.to-f>E){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Ywe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let S=new gf(e.parser.nodeSet.types[xa.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(S,o.tree),e.addNode(S,i)}if(o.type.is("Block")&&(cNe.indexOf(o.type.id)<0?(s=o.to-f,n=e.block.children.length):(s=u,n=b,u=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return s-d}}function Ywe(t,e){let o=t;for(let f=1;fXQ[t]),Object.keys(XQ).map(t=>rNe[t]),Object.keys(XQ),oNe,Pwe,Object.keys(dae).map(t=>dae[t]),Object.keys(dae),[]);function hNe(t,e,o){let f=[];for(let E=t.firstChild,d=e;;E=E.nextSibling){let s=E?E.from:o;if(s>d&&f.push({from:d,to:s}),!E)break;d=E.to}return f}function pNe(t){let{codeParser:e,htmlParser:o}=t;return{wrap:Obe((E,d)=>{let s=E.type.id;if(e&&(s==xa.CodeBlock||s==xa.FencedCode)){let n="";if(s==xa.FencedCode){let b=E.node.getChild(xa.CodeInfo);b&&(n=d.read(b.from,b.to))}let u=e(n);if(u)return{parser:u,overlay:b=>b.type.id==xa.CodeText}}else if(o&&(s==xa.HTMLBlock||s==xa.HTMLTag))return{parser:o,overlay:hNe(E.node,E.from,E.to)};return null})}}const mNe={resolve:"Strikethrough",mark:"StrikethroughMark"},gNe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hr.strikethrough}},{name:"StrikethroughMark",style:hr.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),E=t.slice(o+2,o+3),d=/\s|^$/.test(f),s=/\s|^$/.test(E),n=KI.test(f),u=KI.test(E);return t.addDelimiter(mNe,o,o+2,!s&&(!u||d||n),!d&&(!n||s||u))},after:"Emphasis"}]};function dI(t,e,o=0,f,E=0){let d=0,s=!0,n=-1,u=-1,b=!1,i=()=>{f.push(t.elt("TableCell",E+n,E+u,t.parser.parseInline(e.slice(n,u),E+n)))};for(let S=o;S-1)&&d++,s=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",S+E,S+E+1))),n=u=-1):(b||w!=32&&w!=9)&&(n<0&&(n=S),u=S+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function g0e(t,e){for(let o=e;oE instanceof v0e)||!g0e(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Xwe.test(f)&&dI(t,e.text,e.basePos)==dI(t,f,e.basePos)},before:"SetextHeading"}]};class yNe{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const bNe={defineNodes:[{name:"Task",block:!0,style:hr.list},{name:"TaskMarker",style:hr.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new yNe:null},after:"SetextHeading"}]},y0e=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,b0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,xNe=/[\w-]+\.[\w-]+($|\/)/,x0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,_0e=/\/[a-zA-Z\d@.]+/gy;function w0e(t,e,o,f){let E=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let E=t[f-1],d;if(/[?!.,:*_~]/.test(E)||E==")"&&w0e(t,e,f,")")>w0e(t,e,f,"("))f--;else if(E==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function O0e(t,e){x0e.lastIndex=e;let o=x0e.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const wNe={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;y0e.lastIndex=f;let E=y0e.exec(t.text),d=-1;return!E||(E[1]||E[2]?d=_Ne(t.text,f+E[0].length):E[3]?d=O0e(t.text,f):(d=O0e(t.text,f+E[0].length),d>-1&&E[0]=="xmpp:"&&(_0e.lastIndex=d,E=_0e.exec(t.text),E&&(d=E.index+E[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},ONe=[vNe,bNe,gNe,wNe];function Gwe(t,e,o){return(f,E,d)=>{if(E!=t||f.char(d+1)==t)return-1;let s=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function iOe(t){return t==9||t==10||t==13||t==32}let C0e=null,A0e=null,M0e=0;function xle(t,e){let o=t.pos+e;if(M0e==o&&A0e==t)return C0e;let f=t.peek(e);for(;iOe(f);)f=t.peek(++e);let E="";for(;YNe(f);)E+=String.fromCharCode(f),f=t.peek(++e);return A0e=t,M0e=o,C0e=E?E.toLowerCase():f==XNe||f==GNe?void 0:null}const aOe=60,SZ=62,Kue=47,XNe=63,GNe=33,KNe=45;function E0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new E0e(xle(f,1)||"",t):t},reduce(t,e){return e==nOe&&t?t.parent:t},reuse(t,e,o,f){let E=e.type.id;return E==OZ||E==jNe?new E0e(xle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),tFe=new Y0((t,e)=>{if(t.next!=aOe){t.next<0&&e.context&&t.acceptToken(hae);return}t.advance();let o=t.next==Kue;o&&t.advance();let f=xle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?zNe:OZ);let E=e.context?e.context.name:null;if(o){if(f==E)return t.acceptToken(INe);if(E&&WNe[E])return t.acceptToken(hae,-2);if(e.dialectEnabled(HNe))return t.acceptToken(DNe);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(BNe)}else{if(f=="script")return t.acceptToken(Kwe);if(f=="style")return t.acceptToken(Jwe);if(f=="textarea")return t.acceptToken(eOe);if(qNe.hasOwnProperty(f))return t.acceptToken(tOe);E&&T0e[E]&&T0e[E][f]?t.acceptToken(hae,-1):t.acceptToken(OZ)}},{contextual:!0}),nFe=new Y0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(k0e);break}if(t.next==KNe)e++;else if(t.next==SZ&&e>=2){o>=3&&t.acceptToken(k0e,-2);break}else e=0;t.advance()}});function rFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const oFe=new Y0((t,e)=>{if(t.next==Kue&&t.peek(1)==SZ){let o=e.dialectEnabled(ZNe)||rFe(e.context);t.acceptToken(o?LNe:S0e,2)}else t.next==SZ&&t.acceptToken(S0e,1)});function Jue(t,e,o){let f=2+t.length;return new Y0(E=>{for(let d=0,s=0,n=0;;n++){if(E.next<0){n&&E.acceptToken(e);break}if(d==0&&E.next==aOe||d==1&&E.next==Kue||d>=2&&ds?E.acceptToken(e,-s):E.acceptToken(o,-(s-2));break}else if((E.next==10||E.next==13)&&n){E.acceptToken(e,1);break}else d=s=0;E.advance()}})}const iFe=Jue("script",CNe,ANe),aFe=Jue("style",MNe,ENe),sFe=Jue("textarea",PNe,RNe),lFe=M4({"Text RawText":hr.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":hr.angleBracket,TagName:hr.tagName,"MismatchedCloseTag/TagName":[hr.tagName,hr.invalid],AttributeName:hr.attributeName,"AttributeValue UnquotedAttributeValue":hr.attributeValue,Is:hr.definitionOperator,"EntityReference CharacterReference":hr.character,Comment:hr.blockComment,ProcessingInst:hr.processingInstruction,DoctypeDecl:hr.documentMeta}),cFe=k4.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:eFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[lFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==$Ne)return pae(n,u,o);if(b==VNe)return pae(n,u,f);if(b==UNe)return pae(n,u,E);if(b==nOe&&d.length){let i=n.node,S=i.firstChild,w=S&&P0e(S,u),y;if(w){for(let m of d)if(m.tag==w&&(!m.attrs||m.attrs(y||(y=sOe(i,u))))){let a=i.lastChild,c=a.type.id==QNe?a.from:i.to;if(c>S.to)return{parser:m.parser,overlay:[{from:S.to,to:c}]}}}}if(s&&b==rOe){let i=n.node,S;if(S=i.firstChild){let w=s[u.read(S.from,S.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=P0e(i.parent,u))continue;let m=i.lastChild;if(m.type.id==ble){let a=m.from+1,c=m.lastChild,h=m.to-(c&&c.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(m.type.id==oOe)return{parser:y.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const uFe=96,R0e=1,fFe=97,dFe=98,L0e=2,cOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],hFe=58,pFe=40,uOe=95,mFe=91,_H=45,gFe=46,vFe=35,yFe=37,bFe=38,xFe=92,_Fe=10;function kZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function wFe(t){return t>=48&&t<=57}const OFe=new Y0((t,e)=>{for(let o=!1,f=0,E=0;;E++){let{next:d}=t;if(kZ(d)||d==_H||d==uOe||o&&wFe(d))!o&&(d!=_H||E>0)&&(o=!0),f===E&&d==_H&&f++,t.advance();else if(d==xFe&&t.peek(1)!=_Fe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==pFe?fFe:f==2&&e.canShift(L0e)?L0e:dFe);break}}}),SFe=new Y0(t=>{if(cOe.includes(t.peek(-1))){let{next:e}=t;(kZ(e)||e==uOe||e==vFe||e==gFe||e==mFe||e==hFe||e==_H||e==bFe)&&t.acceptToken(uFe)}}),kFe=new Y0(t=>{if(!cOe.includes(t.peek(-1))){let{next:e}=t;if(e==yFe&&(t.advance(),t.acceptToken(R0e)),kZ(e)){do t.advance();while(kZ(t.next));t.acceptToken(R0e)}}}),TFe=M4({"AtKeyword import charset namespace keyframes media supports":hr.definitionKeyword,"from to selector":hr.keyword,NamespaceName:hr.namespace,KeyframeName:hr.labelName,KeyframeRangeName:hr.operatorKeyword,TagName:hr.tagName,ClassName:hr.className,PseudoClassName:hr.constant(hr.className),IdName:hr.labelName,"FeatureName PropertyName":hr.propertyName,AttributeName:hr.attributeName,NumberLiteral:hr.number,KeywordQuery:hr.keyword,UnaryQueryOp:hr.operatorKeyword,"CallTag ValueName":hr.atom,VariableName:hr.variableName,Callee:hr.operatorKeyword,Unit:hr.unit,"UniversalSelector NestingSelector":hr.definitionOperator,MatchOp:hr.compareOperator,"ChildOp SiblingOp, LogicOp":hr.logicOperator,BinOp:hr.arithmeticOperator,Important:hr.modifier,Comment:hr.blockComment,ColorLiteral:hr.color,"ParenthesizedContent StringLiteral":hr.string,":":hr.punctuation,"PseudoOp #":hr.derefOperator,"; ,":hr.separator,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace}),CFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},AFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},MFe={__proto__:null,not:128,only:128},EFe=k4.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[SFe,kFe,OFe,1,2,3,4,new oZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>CFe[t]||-1},{term:56,get:t=>AFe[t]||-1},{term:98,get:t=>MFe[t]||-1}],tokenPrec:1169});let mae=null;function gae(){if(!mae&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,E=>"-"+E.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));mae=e.sort().map(f=>({type:"property",label:f}))}return mae||[]}const I0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),D0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(t=>({type:"keyword",label:t})).concat(["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"].map(t=>({type:"constant",label:t}))),PFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),KS=/^(\w[\w-]*|-\w[\w-]*|)$/,RFe=/^-(-[\w-]*)?$/;function LFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const B0e=new Lce,IFe=["Declaration"];function DFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function fOe(t,e,o){if(e.to-e.from>4096){let f=B0e.get(e);if(f)return f;let E=[],d=new Set,s=e.cursor(pd.IncludeAnonymous);if(s.firstChild())do for(let n of fOe(t,s.node,o))d.has(n.label)||(d.add(n.label),E.push(n));while(s.nextSibling());return B0e.set(e,E),E}else{let f=[],E=new Set;return e.cursor().iterate(d=>{var s;if(o(d)&&d.matchContext(IFe)&&((s=d.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=t.sliceString(d.from,d.to);E.has(n)||(E.add(n),f.push({label:n,type:"variable"}))}}),f}}const BFe=t=>e=>{let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.type.isError&&E.from==E.to-1&&o.doc.sliceString(E.from,E.to)=="-";if(E.name=="PropertyName"||(d||E.name=="TagName")&&/^(Block|Styles)$/.test(E.resolve(E.to).name))return{from:E.from,options:gae(),validFor:KS};if(E.name=="ValueName")return{from:E.from,options:D0e,validFor:KS};if(E.name=="PseudoClassName")return{from:E.from,options:I0e,validFor:KS};if(t(E)||(e.explicit||d)&&LFe(E,o.doc))return{from:t(E)||d?E.from:f,options:fOe(o.doc,DFe(E),t),validFor:RFe};if(E.name=="TagName"){for(let{parent:u}=E;u;u=u.parent)if(u.name=="Block")return{from:E.from,options:gae(),validFor:KS};return{from:E.from,options:PFe,validFor:KS}}if(!e.explicit)return null;let s=E.resolve(f),n=s.childBefore(f);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:f,options:I0e,validFor:KS}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:f,options:D0e,validFor:KS}:s.name=="Block"||s.name=="Styles"?{from:f,options:gae(),validFor:KS}:null},zFe=BFe(t=>t.name=="VariableName"),TZ=O4.define({name:"css",parser:EFe.configure({props:[tC.add({Declaration:lI()}),E4.add({"Block KeyframeList":Fce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function NFe(){return new WT(TZ,TZ.data.of({autocomplete:zFe}))}const FFe=304,z0e=1,$Fe=2,VFe=305,UFe=307,jFe=308,QFe=3,HFe=4,ZFe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],dOe=125,qFe=59,N0e=47,WFe=42,YFe=43,XFe=45,GFe=new nue({start:!1,shift(t,e){return e==QFe||e==HFe||e==UFe?t:e==jFe},strict:!1}),KFe=new Y0((t,e)=>{let{next:o}=t;(o==dOe||o==-1||e.context)&&t.acceptToken(VFe)},{contextual:!0,fallback:!0}),JFe=new Y0((t,e)=>{let{next:o}=t,f;ZFe.indexOf(o)>-1||o==N0e&&((f=t.peek(1))==N0e||f==WFe)||o!=dOe&&o!=qFe&&o!=-1&&!e.context&&t.acceptToken(FFe)},{contextual:!0}),e$e=new Y0((t,e)=>{let{next:o}=t;if((o==YFe||o==XFe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(z0e);t.acceptToken(f?z0e:$Fe)}},{contextual:!0}),t$e=M4({"get set async static":hr.modifier,"for while do if else switch try catch finally return throw break continue default case":hr.controlKeyword,"in of await yield void typeof delete instanceof":hr.operatorKeyword,"let var const using function class extends":hr.definitionKeyword,"import export from":hr.moduleKeyword,"with debugger as new":hr.keyword,TemplateString:hr.special(hr.string),super:hr.atom,BooleanLiteral:hr.bool,this:hr.self,null:hr.null,Star:hr.modifier,VariableName:hr.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hr.function(hr.variableName),VariableDefinition:hr.definition(hr.variableName),Label:hr.labelName,PropertyName:hr.propertyName,PrivatePropertyName:hr.special(hr.propertyName),"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),"FunctionDeclaration/VariableDefinition":hr.function(hr.definition(hr.variableName)),"ClassDeclaration/VariableDefinition":hr.definition(hr.className),PropertyDefinition:hr.definition(hr.propertyName),PrivatePropertyDefinition:hr.definition(hr.special(hr.propertyName)),UpdateOp:hr.updateOperator,"LineComment Hashbang":hr.lineComment,BlockComment:hr.blockComment,Number:hr.number,String:hr.string,Escape:hr.escape,ArithOp:hr.arithmeticOperator,LogicOp:hr.logicOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,RegExp:hr.regexp,Equals:hr.definitionOperator,Arrow:hr.function(hr.punctuation),": Spread":hr.punctuation,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,"InterpolationStart InterpolationEnd":hr.special(hr.brace),".":hr.derefOperator,", ;":hr.separator,"@":hr.meta,TypeName:hr.typeName,TypeDefinition:hr.definition(hr.typeName),"type enum interface implements namespace module declare":hr.definitionKeyword,"abstract global Privacy readonly override":hr.modifier,"is keyof unique infer":hr.operatorKeyword,JSXAttributeValue:hr.attributeValue,JSXText:hr.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hr.angleBracket,"JSXIdentifier JSXNameSpacedName":hr.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hr.attributeName,"JSXBuiltin/JSXIdentifier":hr.standard(hr.tagName)}),n$e={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},r$e={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},o$e={__proto__:null,"<":139},i$e=k4.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:GFe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[t$e],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#n$e[t]||-1},{term:330,get:t=>r$e[t]||-1},{term:68,get:t=>o$e[t]||-1}],tokenPrec:12868}),hOe=[Dh("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Dh("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Dh("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Dh("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Dh("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Dh(`try { +`);f=E<0?o:o.slice(0,E)}return e+f.length>this.to?f.slice(0,this.to-e):f}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,o,f=0){this.block=OZ.create(e,f,this.lineStart+o,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,o,f=0){this.startContext(this.parser.getNodeType(e),o,f)}addNode(e,o,f){typeof e=="number"&&(e=new gf(this.parser.nodeSet.types[e],bM,bM,(f??this.prevLineEnd())-o)),this.block.addChild(e,o-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,o){this.addNode(this.buffer.writeElements(ble(o.children,e.marks),-o.from).finish(o.type,o.to-o.from),o.from)}finishContext(){let e=this.stack.pop(),o=this.stack[this.stack.length-1];o.addChild(e.toTree(this.parser.nodeSet),e.from-o.from),this.block=o}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?Uwe(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let f of e.parsers)if(f.finish(this,e))return;let o=ble(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(o,-e.start).finish(xa.Paragraph,e.content.length),e.start)}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new Hwe(e,o)}get buffer(){return new Qwe(this.parser.nodeSet)}}function Uwe(t,e,o,f,E){let d=t[e].to,s=[],n=[],u=o.from+f;function b(i,S){for(;S?i>=d:i>d;){let w=t[e+1].from-d;f+=w,i+=w,e++,d=t[e].to}}for(let i=o.firstChild;i;i=i.nextSibling){b(i.from+f,!0);let S=i.from+f,w,y=E.get(i.tree);y?w=y:i.to+f>d?(w=Uwe(t,e,i,f,E),b(i.to+f,!1)):w=i.toTree(),s.push(w),n.push(S-u)}return b(o.to+f,!1),new gf(o.type,s,n,o.to+f-u,o.tree?o.tree.propValues:void 0)}class Fq extends Dce{constructor(e,o,f,E,d,s,n,u,b){super(),this.nodeSet=e,this.blockParsers=o,this.leafBlockParsers=f,this.blockNames=E,this.endLeafBlock=d,this.skipContextMarkup=s,this.inlineParsers=n,this.inlineNames=u,this.wrappers=b,this.nodeTypes=Object.create(null);for(let i of e.types)this.nodeTypes[i.name]=i.id}createParse(e,o,f){let E=new cNe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}configure(e){let o=yle(e);if(!o)return this;let{nodeSet:f,skipContextMarkup:E}=this,d=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),n=this.blockNames.slice(),u=this.inlineParsers.slice(),b=this.inlineNames.slice(),i=this.endLeafBlock.slice(),S=this.wrappers;if(zL(o.defineNodes)){E=Object.assign({},E);let w=f.types.slice(),y;for(let m of o.defineNodes){let{name:a,block:c,composite:h,style:p}=typeof m=="string"?{name:m}:m;if(w.some(O=>O.name==a))continue;h&&(E[w.length]=(O,C,x)=>h(C,x,O.value));let v=w.length,_=h?["Block","BlockContext"]:c?v>=xa.ATXHeading1&&v<=xa.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;w.push(Jp.define({id:v,name:a,props:_&&[[Zl.group,_]]})),p&&(y||(y={}),Array.isArray(p)||p instanceof yx?y[a]=p:Object.assign(y,p))}f=new hD(w),y&&(f=f.extend(M4(y)))}if(zL(o.props)&&(f=f.extend(...o.props)),zL(o.remove))for(let w of o.remove){let y=this.blockNames.indexOf(w),m=this.inlineNames.indexOf(w);y>-1&&(d[y]=s[y]=void 0),m>-1&&(u[m]=void 0)}if(zL(o.parseBlock))for(let w of o.parseBlock){let y=n.indexOf(w.name);if(y>-1)d[y]=w.parse,s[y]=w.leaf;else{let m=w.before?KQ(n,w.before):w.after?KQ(n,w.after)+1:n.length-1;d.splice(m,0,w.parse),s.splice(m,0,w.leaf),n.splice(m,0,w.name)}w.endLeaf&&i.push(w.endLeaf)}if(zL(o.parseInline))for(let w of o.parseInline){let y=b.indexOf(w.name);if(y>-1)u[y]=w.parse;else{let m=w.before?KQ(b,w.before):w.after?KQ(b,w.after)+1:b.length-1;u.splice(m,0,w.parse),b.splice(m,0,w.name)}}return o.wrap&&(S=S.concat(o.wrap)),new Fq(f,d,s,n,i,E,u,b,S)}getNodeType(e){let o=this.nodeTypes[e];if(o==null)throw new RangeError(`Unknown node type '${e}'`);return o}parseInline(e,o){let f=new fNe(this,e,o);e:for(let E=o;E=0){E=n;continue e}}E++}return f.resolveMarkers(0)}}function zL(t){return t!=null&&t.length>0}function yle(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=yle(t[0]);if(t.length==1)return e;let o=yle(t.slice(1));if(!o||!e)return e||o;let f=(s,n)=>(s||bM).concat(n||bM),E=e.wrap,d=o.wrap;return{props:f(e.props,o.props),defineNodes:f(e.defineNodes,o.defineNodes),parseBlock:f(e.parseBlock,o.parseBlock),parseInline:f(e.parseInline,o.parseInline),remove:f(e.remove,o.remove),wrap:E?d?(s,n,u,b)=>E(d(s,n,u,b),n,u,b):E:d}}function KQ(t,e){let o=t.indexOf(e);if(o<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return o}let jwe=[Jp.none];for(let t=1,e;e=xa[t];t++)jwe[t]=Jp.define({id:t,name:e,props:t>=xa.Escape?[]:[[Zl.group,t in Lwe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const bM=[];let Qwe=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,o,f,E=0){return this.content.push(e,o,f,4+E*4),this}writeElements(e,o=0){for(let f of e)f.writeTo(this,o);return this}finish(e,o){return gf.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:o})}},KI=class{constructor(e,o,f,E=bM){this.type=e,this.from=o,this.to=f,this.children=E}writeTo(e,o){let f=e.content.length;e.writeElements(this.children,o),e.content.push(this.type,this.from+o,this.to+o,e.content.length+4-f)}toTree(e){return new Qwe(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Hwe{constructor(e,o){this.tree=e,this.from=o}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return bM}writeTo(e,o){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+o,this.to+o,-1)}toTree(){return this.tree}}function Ju(t,e,o,f){return new KI(t,e,o,f)}const Zwe={resolve:"Emphasis",mark:"EmphasisMark"},qwe={resolve:"Emphasis",mark:"EmphasisMark"},NL={},g0e={};class bx{constructor(e,o,f,E){this.type=e,this.from=o,this.to=f,this.side=E}}const v0e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let JI=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{JI=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const hae={Escape(t,e,o){if(e!=92||o==t.end-1)return-1;let f=t.char(o+1);for(let E=0;E]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(f);if(E)return t.append(Ju(xa.URL,o,o+1+E[0].length));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(f);if(d)return t.append(Ju(xa.Comment,o,o+1+d[0].length));let s=/^\?[^]*?\?>/.exec(f);if(s)return t.append(Ju(xa.ProcessingInstruction,o,o+1+s[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(Ju(xa.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let E=t.slice(o-1,o),d=t.slice(f,f+1),s=JI.test(E),n=JI.test(d),u=/\s|^$/.test(E),b=/\s|^$/.test(d),i=!b&&(!n||u||s),S=!u&&(!s||b||n),w=i&&(e==42||!S||s),y=S&&(e==42||!i||n);return t.append(new bx(e==95?Zwe:qwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(Ju(xa.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(Ju(xa.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new bx(NL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new bx(g0e,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let E=t.parts[f];if(E instanceof bx&&(E.type==NL||E.type==g0e)){if(!E.side||t.skipSpace(E.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),s=t.parts[f]=uNe(t,d,E.type==NL?xa.Link:xa.Image,E.from,o+1);if(E.type==NL)for(let n=0;ne?Ju(xa.URL,e+o,d+o):d==t.length?null:!1}}function Ywe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let E=f==40?41:f;for(let d=e+1,s=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,E,d){return this.append(new bx(e,o,f,(E?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;u--){let a=this.parts[u];if(a instanceof bx&&a.side&1&&a.type==E.type&&!(d&&(E.side&1||a.side&2)&&(a.to-a.from+s)%3==0&&((a.to-a.from)%3||s%3))){n=a;break}}if(!n)continue;let b=E.type.resolve,i=[],S=n.from,w=E.to;if(d){let a=Math.min(2,n.to-n.from,s);S=n.to-a,w=E.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,S,n.to));for(let a=u+1;a=0;o--){let f=this.parts[o];if(f instanceof bx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return fI(this.text,e-this.offset)+this.offset}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new Hwe(e,o)}}function ble(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let E of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let E=e+this.fragment.offset;for(;f.to<=E;)if(!f.parent())return!1;for(;;){if(f.from>=E)return this.fragment.from<=o;if(!f.childAfter(E))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(Zl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,E=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,s=d,n=e.block.children.length,u=s,b=n;for(;;){if(o.to-f>E){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Gwe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let S=new gf(e.parser.nodeSet.types[xa.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(S,o.tree),e.addNode(S,i)}if(o.type.is("Block")&&(dNe.indexOf(o.type.id)<0?(s=o.to-f,n=e.block.children.length):(s=u,n=b,u=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return s-d}}function Gwe(t,e){let o=t;for(let f=1;fGQ[t]),Object.keys(GQ).map(t=>aNe[t]),Object.keys(GQ),sNe,Lwe,Object.keys(hae).map(t=>hae[t]),Object.keys(hae),[]);function gNe(t,e,o){let f=[];for(let E=t.firstChild,d=e;;E=E.nextSibling){let s=E?E.from:o;if(s>d&&f.push({from:d,to:s}),!E)break;d=E.to}return f}function vNe(t){let{codeParser:e,htmlParser:o}=t;return{wrap:kbe((E,d)=>{let s=E.type.id;if(e&&(s==xa.CodeBlock||s==xa.FencedCode)){let n="";if(s==xa.FencedCode){let b=E.node.getChild(xa.CodeInfo);b&&(n=d.read(b.from,b.to))}let u=e(n);if(u)return{parser:u,overlay:b=>b.type.id==xa.CodeText}}else if(o&&(s==xa.HTMLBlock||s==xa.HTMLTag))return{parser:o,overlay:gNe(E.node,E.from,E.to)};return null})}}const yNe={resolve:"Strikethrough",mark:"StrikethroughMark"},bNe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hr.strikethrough}},{name:"StrikethroughMark",style:hr.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),E=t.slice(o+2,o+3),d=/\s|^$/.test(f),s=/\s|^$/.test(E),n=JI.test(f),u=JI.test(E);return t.addDelimiter(yNe,o,o+2,!s&&(!u||d||n),!d&&(!n||s||u))},after:"Emphasis"}]};function dI(t,e,o=0,f,E=0){let d=0,s=!0,n=-1,u=-1,b=!1,i=()=>{f.push(t.elt("TableCell",E+n,E+u,t.parser.parseInline(e.slice(n,u),E+n)))};for(let S=o;S-1)&&d++,s=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",S+E,S+E+1))),n=u=-1):(b||w!=32&&w!=9)&&(n<0&&(n=S),u=S+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function y0e(t,e){for(let o=e;oE instanceof b0e)||!y0e(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Kwe.test(f)&&dI(t,e.text,e.basePos)==dI(t,f,e.basePos)},before:"SetextHeading"}]};class _Ne{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const wNe={defineNodes:[{name:"Task",block:!0,style:hr.list},{name:"TaskMarker",style:hr.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new _Ne:null},after:"SetextHeading"}]},x0e=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,_0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,ONe=/[\w-]+\.[\w-]+($|\/)/,w0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,O0e=/\/[a-zA-Z\d@.]+/gy;function S0e(t,e,o,f){let E=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let E=t[f-1],d;if(/[?!.,:*_~]/.test(E)||E==")"&&S0e(t,e,f,")")>S0e(t,e,f,"("))f--;else if(E==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function k0e(t,e){w0e.lastIndex=e;let o=w0e.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const kNe={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;x0e.lastIndex=f;let E=x0e.exec(t.text),d=-1;return!E||(E[1]||E[2]?d=SNe(t.text,f+E[0].length):E[3]?d=k0e(t.text,f):(d=k0e(t.text,f+E[0].length),d>-1&&E[0]=="xmpp:"&&(O0e.lastIndex=d,E=O0e.exec(t.text),E&&(d=E.index+E[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},TNe=[xNe,wNe,bNe,kNe];function Jwe(t,e,o){return(f,E,d)=>{if(E!=t||f.char(d+1)==t)return-1;let s=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function sOe(t){return t==9||t==10||t==13||t==32}let M0e=null,E0e=null,P0e=0;function _le(t,e){let o=t.pos+e;if(P0e==o&&E0e==t)return M0e;let f=t.peek(e);for(;sOe(f);)f=t.peek(++e);let E="";for(;KNe(f);)E+=String.fromCharCode(f),f=t.peek(++e);return E0e=t,P0e=o,M0e=E?E.toLowerCase():f==JNe||f==eFe?void 0:null}const lOe=60,kZ=62,efe=47,JNe=63,eFe=33,tFe=45;function R0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new R0e(_le(f,1)||"",t):t},reduce(t,e){return e==oOe&&t?t.parent:t},reuse(t,e,o,f){let E=e.type.id;return E==SZ||E==ZNe?new R0e(_le(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),oFe=new Y0((t,e)=>{if(t.next!=lOe){t.next<0&&e.context&&t.acceptToken(pae);return}t.advance();let o=t.next==efe;o&&t.advance();let f=_le(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?$Ne:SZ);let E=e.context?e.context.name:null;if(o){if(f==E)return t.acceptToken(zNe);if(E&&GNe[E])return t.acceptToken(pae,-2);if(e.dialectEnabled(WNe))return t.acceptToken(NNe);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(FNe)}else{if(f=="script")return t.acceptToken(eOe);if(f=="style")return t.acceptToken(tOe);if(f=="textarea")return t.acceptToken(nOe);if(XNe.hasOwnProperty(f))return t.acceptToken(rOe);E&&A0e[E]&&A0e[E][f]?t.acceptToken(pae,-1):t.acceptToken(SZ)}},{contextual:!0}),iFe=new Y0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(C0e);break}if(t.next==tFe)e++;else if(t.next==kZ&&e>=2){o>=3&&t.acceptToken(C0e,-2);break}else e=0;t.advance()}});function aFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const sFe=new Y0((t,e)=>{if(t.next==efe&&t.peek(1)==kZ){let o=e.dialectEnabled(YNe)||aFe(e.context);t.acceptToken(o?BNe:T0e,2)}else t.next==kZ&&t.acceptToken(T0e,1)});function tfe(t,e,o){let f=2+t.length;return new Y0(E=>{for(let d=0,s=0,n=0;;n++){if(E.next<0){n&&E.acceptToken(e);break}if(d==0&&E.next==lOe||d==1&&E.next==efe||d>=2&&ds?E.acceptToken(e,-s):E.acceptToken(o,-(s-2));break}else if((E.next==10||E.next==13)&&n){E.acceptToken(e,1);break}else d=s=0;E.advance()}})}const lFe=tfe("script",ENe,PNe),cFe=tfe("style",RNe,LNe),uFe=tfe("textarea",INe,DNe),fFe=M4({"Text RawText":hr.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":hr.angleBracket,TagName:hr.tagName,"MismatchedCloseTag/TagName":[hr.tagName,hr.invalid],AttributeName:hr.attributeName,"AttributeValue UnquotedAttributeValue":hr.attributeValue,Is:hr.definitionOperator,"EntityReference CharacterReference":hr.character,Comment:hr.blockComment,ProcessingInst:hr.processingInstruction,DoctypeDecl:hr.documentMeta}),dFe=k4.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:rFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[fFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==jNe)return mae(n,u,o);if(b==QNe)return mae(n,u,f);if(b==HNe)return mae(n,u,E);if(b==oOe&&d.length){let i=n.node,S=i.firstChild,w=S&&L0e(S,u),y;if(w){for(let m of d)if(m.tag==w&&(!m.attrs||m.attrs(y||(y=cOe(i,u))))){let a=i.lastChild,c=a.type.id==qNe?a.from:i.to;if(c>S.to)return{parser:m.parser,overlay:[{from:S.to,to:c}]}}}}if(s&&b==iOe){let i=n.node,S;if(S=i.firstChild){let w=s[u.read(S.from,S.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=L0e(i.parent,u))continue;let m=i.lastChild;if(m.type.id==xle){let a=m.from+1,c=m.lastChild,h=m.to-(c&&c.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(m.type.id==aOe)return{parser:y.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const hFe=96,I0e=1,pFe=97,mFe=98,D0e=2,fOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],gFe=58,vFe=40,dOe=95,yFe=91,wH=45,bFe=46,xFe=35,_Fe=37,wFe=38,OFe=92,SFe=10;function TZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function kFe(t){return t>=48&&t<=57}const TFe=new Y0((t,e)=>{for(let o=!1,f=0,E=0;;E++){let{next:d}=t;if(TZ(d)||d==wH||d==dOe||o&&kFe(d))!o&&(d!=wH||E>0)&&(o=!0),f===E&&d==wH&&f++,t.advance();else if(d==OFe&&t.peek(1)!=SFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==vFe?pFe:f==2&&e.canShift(D0e)?D0e:mFe);break}}}),CFe=new Y0(t=>{if(fOe.includes(t.peek(-1))){let{next:e}=t;(TZ(e)||e==dOe||e==xFe||e==bFe||e==yFe||e==gFe||e==wH||e==wFe)&&t.acceptToken(hFe)}}),AFe=new Y0(t=>{if(!fOe.includes(t.peek(-1))){let{next:e}=t;if(e==_Fe&&(t.advance(),t.acceptToken(I0e)),TZ(e)){do t.advance();while(TZ(t.next));t.acceptToken(I0e)}}}),MFe=M4({"AtKeyword import charset namespace keyframes media supports":hr.definitionKeyword,"from to selector":hr.keyword,NamespaceName:hr.namespace,KeyframeName:hr.labelName,KeyframeRangeName:hr.operatorKeyword,TagName:hr.tagName,ClassName:hr.className,PseudoClassName:hr.constant(hr.className),IdName:hr.labelName,"FeatureName PropertyName":hr.propertyName,AttributeName:hr.attributeName,NumberLiteral:hr.number,KeywordQuery:hr.keyword,UnaryQueryOp:hr.operatorKeyword,"CallTag ValueName":hr.atom,VariableName:hr.variableName,Callee:hr.operatorKeyword,Unit:hr.unit,"UniversalSelector NestingSelector":hr.definitionOperator,MatchOp:hr.compareOperator,"ChildOp SiblingOp, LogicOp":hr.logicOperator,BinOp:hr.arithmeticOperator,Important:hr.modifier,Comment:hr.blockComment,ColorLiteral:hr.color,"ParenthesizedContent StringLiteral":hr.string,":":hr.punctuation,"PseudoOp #":hr.derefOperator,"; ,":hr.separator,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace}),EFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},PFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},RFe={__proto__:null,not:128,only:128},LFe=k4.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[CFe,AFe,TFe,1,2,3,4,new iZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>EFe[t]||-1},{term:56,get:t=>PFe[t]||-1},{term:98,get:t=>RFe[t]||-1}],tokenPrec:1169});let gae=null;function vae(){if(!gae&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,E=>"-"+E.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));gae=e.sort().map(f=>({type:"property",label:f}))}return gae||[]}const B0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),z0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(t=>({type:"keyword",label:t})).concat(["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"].map(t=>({type:"constant",label:t}))),IFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),KS=/^(\w[\w-]*|-\w[\w-]*|)$/,DFe=/^-(-[\w-]*)?$/;function BFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const N0e=new Ice,zFe=["Declaration"];function NFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function hOe(t,e,o){if(e.to-e.from>4096){let f=N0e.get(e);if(f)return f;let E=[],d=new Set,s=e.cursor(pd.IncludeAnonymous);if(s.firstChild())do for(let n of hOe(t,s.node,o))d.has(n.label)||(d.add(n.label),E.push(n));while(s.nextSibling());return N0e.set(e,E),E}else{let f=[],E=new Set;return e.cursor().iterate(d=>{var s;if(o(d)&&d.matchContext(zFe)&&((s=d.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=t.sliceString(d.from,d.to);E.has(n)||(E.add(n),f.push({label:n,type:"variable"}))}}),f}}const FFe=t=>e=>{let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.type.isError&&E.from==E.to-1&&o.doc.sliceString(E.from,E.to)=="-";if(E.name=="PropertyName"||(d||E.name=="TagName")&&/^(Block|Styles)$/.test(E.resolve(E.to).name))return{from:E.from,options:vae(),validFor:KS};if(E.name=="ValueName")return{from:E.from,options:z0e,validFor:KS};if(E.name=="PseudoClassName")return{from:E.from,options:B0e,validFor:KS};if(t(E)||(e.explicit||d)&&BFe(E,o.doc))return{from:t(E)||d?E.from:f,options:hOe(o.doc,NFe(E),t),validFor:DFe};if(E.name=="TagName"){for(let{parent:u}=E;u;u=u.parent)if(u.name=="Block")return{from:E.from,options:vae(),validFor:KS};return{from:E.from,options:IFe,validFor:KS}}if(!e.explicit)return null;let s=E.resolve(f),n=s.childBefore(f);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:f,options:B0e,validFor:KS}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:f,options:z0e,validFor:KS}:s.name=="Block"||s.name=="Styles"?{from:f,options:vae(),validFor:KS}:null},$Fe=FFe(t=>t.name=="VariableName"),CZ=O4.define({name:"css",parser:LFe.configure({props:[nC.add({Declaration:lI()}),E4.add({"Block KeyframeList":$ce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function VFe(){return new YT(CZ,CZ.data.of({autocomplete:$Fe}))}const UFe=304,F0e=1,jFe=2,QFe=305,HFe=307,ZFe=308,qFe=3,WFe=4,YFe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],pOe=125,XFe=59,$0e=47,GFe=42,KFe=43,JFe=45,e$e=new oue({start:!1,shift(t,e){return e==qFe||e==WFe||e==HFe?t:e==ZFe},strict:!1}),t$e=new Y0((t,e)=>{let{next:o}=t;(o==pOe||o==-1||e.context)&&t.acceptToken(QFe)},{contextual:!0,fallback:!0}),n$e=new Y0((t,e)=>{let{next:o}=t,f;YFe.indexOf(o)>-1||o==$0e&&((f=t.peek(1))==$0e||f==GFe)||o!=pOe&&o!=XFe&&o!=-1&&!e.context&&t.acceptToken(UFe)},{contextual:!0}),r$e=new Y0((t,e)=>{let{next:o}=t;if((o==KFe||o==JFe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(F0e);t.acceptToken(f?F0e:jFe)}},{contextual:!0}),o$e=M4({"get set async static":hr.modifier,"for while do if else switch try catch finally return throw break continue default case":hr.controlKeyword,"in of await yield void typeof delete instanceof":hr.operatorKeyword,"let var const using function class extends":hr.definitionKeyword,"import export from":hr.moduleKeyword,"with debugger as new":hr.keyword,TemplateString:hr.special(hr.string),super:hr.atom,BooleanLiteral:hr.bool,this:hr.self,null:hr.null,Star:hr.modifier,VariableName:hr.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hr.function(hr.variableName),VariableDefinition:hr.definition(hr.variableName),Label:hr.labelName,PropertyName:hr.propertyName,PrivatePropertyName:hr.special(hr.propertyName),"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),"FunctionDeclaration/VariableDefinition":hr.function(hr.definition(hr.variableName)),"ClassDeclaration/VariableDefinition":hr.definition(hr.className),PropertyDefinition:hr.definition(hr.propertyName),PrivatePropertyDefinition:hr.definition(hr.special(hr.propertyName)),UpdateOp:hr.updateOperator,"LineComment Hashbang":hr.lineComment,BlockComment:hr.blockComment,Number:hr.number,String:hr.string,Escape:hr.escape,ArithOp:hr.arithmeticOperator,LogicOp:hr.logicOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,RegExp:hr.regexp,Equals:hr.definitionOperator,Arrow:hr.function(hr.punctuation),": Spread":hr.punctuation,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,"InterpolationStart InterpolationEnd":hr.special(hr.brace),".":hr.derefOperator,", ;":hr.separator,"@":hr.meta,TypeName:hr.typeName,TypeDefinition:hr.definition(hr.typeName),"type enum interface implements namespace module declare":hr.definitionKeyword,"abstract global Privacy readonly override":hr.modifier,"is keyof unique infer":hr.operatorKeyword,JSXAttributeValue:hr.attributeValue,JSXText:hr.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hr.angleBracket,"JSXIdentifier JSXNameSpacedName":hr.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hr.attributeName,"JSXBuiltin/JSXIdentifier":hr.standard(hr.tagName)}),i$e={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},a$e={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},s$e={__proto__:null,"<":139},l$e=k4.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:e$e,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[o$e],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#i$e[t]||-1},{term:330,get:t=>a$e[t]||-1},{term:68,get:t=>s$e[t]||-1}],tokenPrec:12868}),mOe=[Bh("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Bh("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Bh("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Bh("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Bh("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Bh(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Dh("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Dh(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Bh("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Bh(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Dh(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Bh(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Dh('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Dh('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],a$e=hOe.concat([Dh("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Dh("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Dh("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),F0e=new Lce,pOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function FL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const s$e=["FunctionDeclaration"],l$e={FunctionDeclaration:FL("function"),ClassDeclaration:FL("class"),ClassExpression:()=>!0,EnumDeclaration:FL("constant"),TypeAliasDeclaration:FL("type"),NamespaceDeclaration:FL("namespace"),VariableDefinition(t,e){t.matchContext(s$e)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function mOe(t,e){let o=F0e.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(E)E=!1;else if(s.name){let n=l$e[s.name];if(n&&n(s,d)||pOe.has(s.name))return!1}else if(s.to-s.from>8192){for(let n of mOe(t,s.node))f.push(n);return!1}}),F0e.set(e,f),f}const $0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,gOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function c$e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(gOe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&$0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)pOe.has(E.name)&&(f=f.concat(mOe(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:$0e}}const T_=O4.define({name:"javascript",parser:i$e.configure({props:[tC.add({IfStatement:lI({except:/^\s*({|else\b)/}),TryStatement:lI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:o8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:mH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":lI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),E4.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Fce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),vOe={test:t=>/^JSX/.test(t.name),facet:Dce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},yOe=T_.configure({dialect:"ts"},"typescript"),bOe=T_.configure({dialect:"jsx",props:[Bce.add(t=>t.isTop?[vOe]:void 0)]}),xOe=T_.configure({dialect:"jsx ts",props:[Bce.add(t=>t.isTop?[vOe]:void 0)]},"typescript");let _Oe=t=>({label:t,type:"keyword"});const wOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(_Oe),u$e=wOe.concat(["declare","implements","private","protected","public"].map(_Oe));function f$e(t={}){let e=t.jsx?t.typescript?xOe:bOe:t.typescript?yOe:T_,o=t.typescript?a$e.concat(u$e):hOe.concat(wOe);return new WT(e,[T_.data.of({autocomplete:Yce(gOe,nq(o))}),T_.data.of({autocomplete:c$e}),t.jsx?p$e:[]])}function d$e(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function V0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const h$e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),p$e=Xa.inputHandler.of((t,e,o,f,E)=>{if((h$e?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!T_.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b;let{head:i}=u,S=Gf(s).resolveInner(i-1,-1),w;if(S.name=="JSXStartTag"&&(S=S.parent),!(s.doc.sliceString(i-1,i)!=f||S.name=="JSXAttributeValue"&&S.to>i)){if(f==">"&&S.name=="JSXFragmentTag")return{range:u,changes:{from:i,insert:""}};if(f=="/"&&S.name=="JSXStartCloseTag"){let y=S.parent,m=y.parent;if(m&&y.from==i-2&&((w=V0e(s.doc,m.firstChild,i))||((b=m.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:hi.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=d$e(S);if(y&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(w=V0e(s.doc,y,i)))return{range:u,changes:{from:i,insert:``}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),$L=["_blank","_self","_top","_parent"],vae=["ascii","utf-8","utf-16","latin1","latin1"],yae=["get","post","put","delete"],bae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qv=["true","false"],Rs={},m$e={a:{attrs:{href:null,ping:null,type:null,media:null,target:$L,hreflang:null}},abbr:Rs,address:Rs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Rs,aside:Rs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Rs,base:{attrs:{href:null,target:$L}},bdi:Rs,bdo:Rs,blockquote:{attrs:{cite:null}},body:Rs,br:Rs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:bae,formmethod:yae,formnovalidate:["novalidate"],formtarget:$L,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Rs,center:Rs,cite:Rs,code:Rs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Rs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Rs,div:Rs,dl:Rs,dt:Rs,em:Rs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Rs,figure:Rs,footer:Rs,form:{attrs:{action:null,name:null,"accept-charset":vae,autocomplete:["on","off"],enctype:bae,method:yae,novalidate:["novalidate"],target:$L}},h1:Rs,h2:Rs,h3:Rs,h4:Rs,h5:Rs,h6:Rs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Rs,hgroup:Rs,hr:Rs,html:{attrs:{manifest:null}},i:Rs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:bae,formmethod:yae,formnovalidate:["novalidate"],formtarget:$L,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Rs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Rs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Rs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:vae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Rs,noscript:Rs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Rs,param:{attrs:{name:null,value:null}},pre:Rs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Rs,rt:Rs,ruby:Rs,samp:Rs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:vae}},section:Rs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Rs,source:{attrs:{src:null,type:null,media:null}},span:Rs,strong:Rs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Rs,summary:Rs,sup:Rs,table:Rs,tbody:Rs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Rs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Rs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Rs,time:{attrs:{datetime:null}},title:Rs,tr:Rs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Rs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Rs},OOe={accesskey:null,class:null,contenteditable:Qv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qv,autocorrect:Qv,autocapitalize:Qv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qv,"aria-hidden":Qv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qv,"aria-multiselectable":Qv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qv,"aria-relevant":null,"aria-required":Qv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},SOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of SOe)OOe[t]=null;class JI{constructor(e,o){this.tags=Object.assign(Object.assign({},m$e),e),this.globalAttrs=Object.assign(Object.assign({},OOe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}JI.default=new JI;function xM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,E=f&&f.getChild("TagName");return E?t.sliceString(E.from,Math.min(E.to,o)):""}function _M(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function kOe(t,e,o){let f=o.tags[xM(t,_M(e))];return(f==null?void 0:f.children)||o.allTags}function efe(t,e){let o=[];for(let f=_M(e);f&&!f.type.isTop;f=_M(f.parent)){let E=xM(t,f);if(E&&f.lastChild.name=="CloseTag")break;E&&o.indexOf(E)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(E)}return o}const TOe=/^[:\-\.\w\u00b7-\uffff]*$/;function U0e(t,e,o,f,E){let d=/\s*>/.test(t.sliceDoc(E,E+5))?"":">",s=_M(o,!0);return{from:f,to:E,options:kOe(t.doc,s,e).map(n=>({label:n,type:"type"})).concat(efe(t.doc,o).map((n,u)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function j0e(t,e,o,f){let E=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:efe(t.doc,e).map((d,s)=>({label:d,apply:d+E,type:"type",boost:99-s})),validFor:TOe}}function g$e(t,e,o,f){let E=[],d=0;for(let s of kOe(t.doc,o,e))E.push({label:"<"+s,type:"type"});for(let s of efe(t.doc,o))E.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:E,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function v$e(t,e,o,f,E){let d=_M(o),s=d?e.tags[xM(t.doc,d)]:null,n=s&&s.attrs?Object.keys(s.attrs):[],u=s&&s.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:E,options:u.map(b=>({label:b,type:"property"})),validFor:TOe}}function y$e(t,e,o,f,E){var d;let s=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],u;if(s){let b=t.sliceDoc(s.from,s.to),i=e.globalAttrs[b];if(!i){let S=_M(o),w=S?e.tags[xM(t.doc,S)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let S=t.sliceDoc(f,E).toLowerCase(),w='"',y='"';/^['"]/.test(S)?(u=S[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(E,E+1)==S[0]?"":S[0],S=S.slice(1),f++):u=/^[^\s<>='"]*$/;for(let m of i)n.push({label:m,apply:w+m+y,type:"constant"})}}return{from:f,to:E,options:n,validFor:u}}function COe(t,e){let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.resolve(f);for(let s=f,n;d==E&&(n=E.childBefore(s));){let u=n.lastChild;if(!u||!u.type.isError||u.fromCOe(f,E)}const _$e=T_.parser.configure({top:"SingleExpression"}),AOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:yOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:bOe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:xOe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:_$e},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:T_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:TZ.parser}],MOe=[{name:"style",parser:TZ.parser.configure({top:"Styles"})}].concat(SOe.map(t=>({name:t,parser:T_.parser}))),EOe=O4.define({name:"html",parser:cFe.configure({props:[tC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),wH=EOe.configure({wrap:lOe(AOe,MOe)});function w$e(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=lOe((t.nestedLanguages||[]).concat(AOe),(t.nestedAttributes||[]).concat(MOe)));let f=o?EOe.configure({wrap:o,dialect:e}):e?wH.configure({dialect:e}):wH;return new WT(f,[wH.data.of({autocomplete:x$e(t)}),t.autoCloseTags!==!1?O$e:[],f$e().support,NFe().support])}const Q0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),O$e=Xa.inputHandler.of((t,e,o,f,E)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!wH.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b,i,S;let w=s.doc.sliceString(u.from-1,u.to)==f,{head:y}=u,m=Gf(s).resolveInner(y-1,-1),a;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),w&&f==">"&&m.name=="OpenTag"){if(((i=(b=m.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=xM(s.doc,m.parent,y))&&!Q0e.has(a)){let c=y+(s.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:u,changes:{from:y,to:c,insert:h}}}}else if(w&&f=="/"&&m.name=="IncompleteCloseTag"){let c=m.parent;if(m.from==y-2&&((S=c.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(a=xM(s.doc,c,y))&&!Q0e.has(a)){let h=y+(s.doc.sliceString(y,y+1)===">"?1:0),p=`${a}>`;return{range:hi.cursor(y+p.length,-1),changes:{from:y,to:h,insert:p}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),POe=Dce({commentTokens:{block:{open:""}}}),ROe=new Zl,LOe=dNe.configure({props:[E4.add(t=>!t.is("Block")||t.is("Document")||_le(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),ROe.add(_le),tC.add({Document:()=>null}),NT.add({Document:POe})]});function _le(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function S$e(t,e){let o=t;for(;;){let f=o.nextSibling,E;if(!f||(E=_le(f.type))!=null&&E<=e)break;o=f}return o.to}const k$e=Mbe.of((t,e,o)=>{for(let f=Gf(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function tfe(t){return new eb(POe,t,[k$e],"markdown")}const T$e=tfe(LOe),C$e=LOe.configure([ONe,kNe,SNe,TNe,{props:[E4.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),IOe=tfe(C$e);function A$e(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=QH.matchLanguageName(t,o,!0),f instanceof QH)return f.support?f.support.language.parser:DI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class KQ{constructor(e,o,f,E,d,s,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=E,this.spaceAfter=d,this.type=s,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;E--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+BOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function DOe(t,e){let o=[];for(let E=t;E&&E.name!="Document";E=E.parent)(E.name=="ListItem"||E.name=="Blockquote"||E.name=="FencedCode")&&o.push(E);let f=[];for(let E=o.length-1;E>=0;E--){let d=o[E],s,n=e.lineAt(d.from),u=d.from-n.from;if(d.name=="FencedCode")f.push(new KQ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(s=/^ *>( ?)/.exec(n.text.slice(u))))f.push(new KQ(d,u,u+s[0].length,"",s[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(n.text.slice(u)))){let b=s[3],i=s[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new KQ(d.parent,u,u+i,s[1],b,s[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(u)))){let b=s[4],i=s[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let S=s[2];s[3]&&(S+=s[3].replace(/[xX]/," ")),f.push(new KQ(d.parent,u,u+i,s[1],b,S,d))}}return f}function BOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function xae(t,e,o,f=0){for(let E=-1,d=t;;){if(d.name=="ListItem"){let n=BOe(d,e),u=+n[2];if(E>=0){if(u!=E+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(E+2+f)})}E=u}let s=d.nextSibling;if(!s)break;d=s}}function wle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(eC)!=" ")return t;let f=kx(t,4,o),E="";for(let d=f;d>0;)d>=4?(E+=" ",d-=4):(E+=" ",d--);return E+t.slice(o)}const M$e=({state:t,dispatch:e})=>{let o=Gf(t),{doc:f}=t,E=null,d=t.changeByRange(s=>{if(!s.empty||!IOe.isActiveAt(t,s.from))return E={range:s};let n=s.from,u=f.lineAt(n),b=DOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-u.from;)b.pop();if(!b.length)return E={range:s};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-u.from)return E={range:s};let S=n>=i.to-i.spaceAfter.length&&!/\S/.test(u.text.slice(i.to));if(i.item&&S)if(i.node.firstChild.to>=n||u.from>0&&!/[^\s>]/.test(f.lineAt(u.from-1).text)){let c=b.length>1?b[b.length-2]:null,h,p="";c&&c.item?(h=u.from+c.from,p=c.marker(f,1)):h=u.from+(c?c.to:0);let v=[{from:h,to:n,insert:p}];return i.node.name=="OrderedList"&&xae(i.item,f,v,-2),c&&c.node.name=="OrderedList"&&xae(c.item,f,v),{range:hi.cursor(h+p.length),changes:v}}else{let c="";for(let h=0,p=b.length-2;h<=p;h++)c+=b[h].blank(h\s*$/.exec(c.text);if(h&&h.index==i.from){let p=t.changes([{from:c.from+h.index,to:c.to},{from:u.from+i.from,to:u.to}]);return{range:s.map(p),changes:p}}}let w=[];i.node.name=="OrderedList"&&xae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(u.text)[0].length>=i.to)for(let c=0,h=b.length-1;c<=h;c++)m+=c==h&&!y?b[c].marker(f,1):b[c].blank(cu.from&&/\s/.test(u.text.charAt(a-u.from-1));)a--;return m=wle(m,t),w.push({from:a,to:n,insert:t.lineBreak+m}),{range:hi.cursor(a+m.length+1),changes:w}});return E?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function H0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function E$e(t,e){let o=t.resolveInner(e,-1),f=e;H0e(o)&&(f=o.from,o=o.parent);for(let E;E=o.childBefore(f);)if(H0e(E))f=E.from;else if(E.name=="OrderedList"||E.name=="BulletList")o=E.lastChild,f=o.to;else break;return o}const P$e=({state:t,dispatch:e})=>{let o=Gf(t),f=null,E=t.changeByRange(d=>{let s=d.from,{doc:n}=t;if(d.empty&&IOe.isActiveAt(t,d.from)){let u=n.lineAt(s),b=DOe(E$e(o,s),n);if(b.length){let i=b[b.length-1],S=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(s-u.from>S&&!/\S/.test(u.text.slice(S,s-u.from)))return{range:hi.cursor(u.from+S),changes:{from:u.from+S,to:s}};if(s-u.from==S&&(!i.item||u.from<=i.item.from||!/\S/.test(u.text.slice(0,i.to)))){let w=u.from+i.from;if(i.item&&i.node.fromd.createCell(u))},{code:ao(()=>[t.$devMode&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0)]),outcome:ao(()=>[Na("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,B$e)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const NOe=mp(D$e,[["render",z$e],["__scopeId","data-v-d5250b54"]]);var N$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},E=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},s=d(function(r,g){return r===g}),n=s,u=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,oe=0;oe{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},m=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>m(g)===r,c=r=>g=>typeof g===r,h=r=>g=>r===g,p=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),O=r=>p(r,Object),C=a("array"),x=h(null),R=c("boolean"),M=h(void 0),T=r=>r==null,P=r=>!T(r),A=c("function"),L=c("number"),D=(r,g)=>{if(C(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},Z=r=>r(),K=r=>{r()},re=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return P(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,pe=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let oe=0;oe{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},we=(r,g)=>{const B=[],H=[];for(let oe=0,be=r.length;oe{const B=[];for(let H=0,oe=r.length;H(_e(r,(H,oe)=>{B=g(B,H,oe)}),B),Ie=(r,g,B)=>(ve(r,(H,oe)=>{B=g(B,H,oe)}),B),ze=(r,g,B)=>{for(let H=0,oe=r.length;Hze(r,g,re),Qe=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ye(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Re=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,oe=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),Je=r=>Ze(r,r.length-1),Me=A(Array.from)?Array.from:r=>ee.call(r),Fe=(r,g)=>{for(let B=0;B{const B=[],H=A(g)?oe=>de(B,be=>g(be,oe)):oe=>ce(B,oe);for(let oe=0,be=r.length;oe{const B=tt(r);for(let H=0,oe=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,oe)=>{const be=g(H,oe);B[be.k]=be.v}),B},St=r=>(g,B)=>{r[B]=g},Ft=(r,g,B,H)=>{Ge(r,(oe,be)=>{(g(oe,be)?B:H)(oe,be)})},zt=(r,g)=>{const B={},H={};return Ft(r,g,St(B),St(H)),{t:B,f:H}},Yt=(r,g)=>{const B={};return Ft(r,g,St(B),k),B},ln=(r,g)=>{const B=[];return Ge(r,(H,oe)=>{B.push(g(H,oe))}),B},tn=r=>ln(r,Q),Et=(r,g)=>Ot(r,g)?Y.from(r[g]):Y.none(),Ot=(r,g)=>ot.call(r,g),cn=(r,g)=>Ot(r,g)&&r[g]!==void 0&&r[g]!==null,Cn=(r,g,B=S)=>i(B).eq(r,g),Pn=r=>{const g={};return ve(r,B=>{g[B]={}}),tt(g)},Sn=r=>r.length!==void 0,vt=Array.isArray,xt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,Sn(r)){for(let H=0,oe=r.length;H{const B=[];return st(r,(H,oe)=>{B.push(g(H,oe,r))}),B},Vt=(r,g)=>{const B=[];return st(r,(H,oe)=>{(!g||g(H,oe,r))&&B.push(H)}),B},Dt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let oe=M(B)?r[0]:B;for(let be=0;be{for(let H=0,oe=r.length;Hr[r.length-1],_t=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},qt=(r,g,B,H)=>{const oe=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!oe,Le=r.isiOS()||r.isAndroid(),Ke=Le||H("(pointer:coarse)"),ut=oe||!be&&Le&&H("(min-device-width:768px)"),At=be||Le&&!ut,nn=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,un=!At&&!ut&&!nn;return{isiPad:$(oe),isiPhone:$(be),isTablet:$(ut),isPhone:$(At),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(nn),isDesktop:$(un)}},en=(r,g)=>{for(let B=0;B{const B=en(r,g);if(!B)return{major:0,minor:0};const H=oe=>Number(g.replace(B,"$"+oe));return sn(H(1),H(2))},Zt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Nt():Jt(r,B)},Nt=()=>sn(0,0),sn=(r,g)=>({major:r,minor:g}),rn={nu:sn,detect:Zt,unknown:Nt},_n=(r,g)=>Fe(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,oe=>{var be;return H===((be=oe.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(oe=>({current:oe.name,version:rn.nu(parseInt(B.version,10),0)}))}),wn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},An=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Kn=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),fr=(r,g)=>r.substring(g),Un=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,Zn=(r,g)=>Br(r,g)?fr(r,g.length):r,tr=(r,g,B=0,H)=>{const oe=r.indexOf(g,B);return oe!==-1?M(H)?!0:oe+g.length<=H:!1},Br=(r,g)=>Un(r,g,0),$r=(r,g)=>Un(r,g,r.length-g.length),vr=r=>g=>g.replace(r,""),qn=vr(/^\s+|\s+$/g),gr=vr(/^\s+/g),sr=vr(/\s+$/g),lr=r=>r.length>0,zr=r=>!lr(r),Vr=(r,g)=>g<=0?"":new Array(g+1).join(r),eo=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Yr=r=>g=>tr(g,r),to=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>tr(r,"edge/")&&tr(r,"chrome")&&tr(r,"safari")&&tr(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Jr],search:r=>tr(r,"chrome")&&!tr(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>tr(r,"msie")||tr(r,"trident")},{name:"Opera",versionRegexes:[Jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Yr("firefox")},{name:"Safari",versionRegexes:[Jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(tr(r,"safari")||tr(r,"mobile/"))&&tr(r,"applewebkit")}],co=[{name:"Windows",search:Yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>tr(r,"iphone")||tr(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Yr("linux"),versionRegexes:[]},{name:"Solaris",search:Yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Fo={browsers:$(to),oses:$(co)},_o="Edge",$o="Chromium",Mo="IE",pi="Opera",Hn="Firefox",ar="Safari",Dr=()=>Sr({current:void 0,version:rn.unknown()}),Sr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isEdge:H(_o),isChromium:H($o),isIE:H(Mo),isOpera:H(pi),isFirefox:H(Hn),isSafari:H(ar)}},Zr={unknown:Dr,nu:Sr,edge:$(_o),chromium:$($o),ie:$(Mo),opera:$(pi),firefox:$(Hn),safari:$(ar)},go="Windows",oo="iOS",io="Android",Do="Linux",jn="macOS",Rr="Solaris",On="FreeBSD",Yn="ChromeOS",ir=()=>kr({current:void 0,version:rn.unknown()}),kr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isWindows:H(go),isiOS:H(oo),isAndroid:H(io),isMacOS:H(jn),isLinux:H(Do),isSolaris:H(Rr),isFreeBSD:H(On),isChromeOS:H(Yn)}},Er={unknown:ir,nu:kr,windows:$(go),ios:$(oo),android:$(io),linux:$(Do),macos:$(jn),solaris:$(Rr),freebsd:$(On),chromeos:$(Yn)},on={detect:(r,g,B)=>{const H=Fo.browsers(),oe=Fo.oses(),be=g.bind(ut=>_n(H,ut)).orThunk(()=>An(H,r)).fold(Zr.unknown,Zr.nu),Le=Kn(oe,r).fold(Er.unknown,Er.nu),Ke=qt(Le,be,r,B);return{browser:be,os:Le,deviceType:Ke}}},an=r=>window.matchMedia(r).matches;let Tn=_t(()=>on.detect(window.navigator.userAgent,Y.from(window.navigator.userAgentData),an));const zn=()=>Tn(),Gn=window.navigator.userAgent,Lr=zn(),Ur=Lr.browser,qr=Lr.os,Cr=Lr.deviceType,wo=Gn.indexOf("Windows Phone")!==-1,Nr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Ur.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Ur.isIE(),windowsPhone:wo,browser:{current:Ur.current,version:Ur.version,isChromium:Ur.isChromium,isEdge:Ur.isEdge,isFirefox:Ur.isFirefox,isIE:Ur.isIE,isOpera:Ur.isOpera,isSafari:Ur.isSafari},os:{current:qr.current,version:qr.version,isAndroid:qr.isAndroid,isChromeOS:qr.isChromeOS,isFreeBSD:qr.isFreeBSD,isiOS:qr.isiOS,isLinux:qr.isLinux,isMacOS:qr.isMacOS,isSolaris:qr.isSolaris,isWindows:qr.isWindows},deviceType:{isDesktop:Cr.isDesktop,isiPad:Cr.isiPad,isiPhone:Cr.isiPhone,isPhone:Cr.isPhone,isTablet:Cr.isTablet,isTouch:Cr.isTouch,isWebView:Cr.isWebView}},Eo=/^\s*|\s*$/g,zo=r=>T(r)?"":(""+r).replace(Eo,""),Qt=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Mn=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let oe=H.length;for(;oe--;)B[H[oe]]={};return B},Fn=Ot,dr=(r,...g)=>{for(let B=0;Bg.call(H,oe,be,B)===!1?!1:(xr(oe,g,B,H),!0)))},To={trim:zo,isArray:vt,is:Qt,toArray:xt,makeMap:Mn,each:st,map:bt,grep:Vt,inArray:Dt,hasOwn:Fn,extend:dr,walk:xr,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,oe=B.length;HC(r)?r:r===""?[]:bt(r.split(g||","),zo),_addCacheSuffix:r=>{const g=Nr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Ia=(r,g,B=j)=>r.exists(H=>B(H,g)),Ds=(r,g,B=j)=>zi(r,g,B).getOr(r.isNone()&&g.isNone()),fs=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),yl=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),Bs=(r,g)=>r?Y.some(g):Y.none(),yf=typeof window<"u"?window:Function("return this;")(),il=(r,g)=>{let B=g??yf;for(let H=0;H{const B=r.split(".");return il(B,g)},nh=(r,g)=>nf(r,g),gp=(r,g)=>{const B=nh(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Qs=Object.getPrototypeOf,bh=r=>gp("HTMLElement",r),Bl=r=>{const g=nf("ownerDocument.defaultView",r);return _(r)&&(bh(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Qs(r).constructor.name))},Tc=8,iu=9,au=11,zf=1,_s=3,ma=r=>r.dom.nodeName.toLowerCase(),mu=r=>r.dom.nodeType,Uc=r=>g=>mu(g)===r,Kf=r=>mu(r)===Tc||ma(r)==="#comment",Al=r=>Wl(r)&&Bl(r.dom),Wl=Uc(zf),Ml=Uc(_s),Jf=Uc(iu),Nf=Uc(au),Jl=r=>g=>Wl(g)&&ma(g)===r,Gh=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},ll=(r,g,B)=>{Gh(r.dom,g,B)},Tu=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Gh(B,oe,H)})},gu=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ec=(r,g)=>Y.from(gu(r,g)),Dc=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},tc=(r,g)=>{r.dom.removeAttribute(g)},Lp=r=>{const g=r.dom.attributes;return g==null||g.length===0},rh=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),rf=(r,g)=>{const B=gu(r,g);return B===void 0||B===""?[]:B.split(" ")},of=(r,g,B)=>{const oe=rf(r,g).concat([B]);return ll(r,g,oe.join(" ")),!0},bf=(r,g,B)=>{const H=Te(rf(r,g),oe=>oe!==B);return H.length>0?ll(r,g,H.join(" ")):tc(r,g),!1},vu=r=>r.dom.classList!==void 0,$d=r=>rf(r,"class"),bl=(r,g)=>of(r,"class",g),Zu=(r,g)=>bf(r,"class",g),Kh=(r,g)=>ce($d(r),g)?Zu(r,g):bl(r,g),Cu=(r,g)=>{vu(r)?r.dom.classList.add(g):bl(r,g)},ed=r=>{(vu(r)?r.dom.classList:$d(r)).length===0&&tc(r,"class")},Bu=(r,g)=>{vu(r)?r.dom.classList.remove(g):Zu(r,g),ed(r)},vd=(r,g)=>{const B=vu(r)?r.dom.classList.toggle(g):Kh(r,g);return ed(r),B},cs=(r,g)=>vu(r)&&r.dom.classList.contains(g),oh=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const oe="HTML does not have a single root node";throw console.error(oe,r),new Error(oe)}return xf(H.childNodes[0])},Jh=(r,g)=>{const H=(g||document).createElement(r);return xf(H)},xh=(r,g)=>{const H=(g||document).createTextNode(r);return xf(H)},xf=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},_r={fromHtml:oh,fromTag:Jh,fromText:xh,fromDom:xf,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(xf)},Ff=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let oe=g(r);do oe=oe.bind(H);while(oe.isSome());return B},yd=(r,g)=>{const B=r.dom;if(B.nodeType!==zf)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},bd=r=>r.nodeType!==zf&&r.nodeType!==iu&&r.nodeType!==au||r.childElementCount===0,_h=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?[]:ye(B.querySelectorAll(r),_r.fromDom)},zu=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?Y.none():Y.from(B.querySelector(r)).map(_r.fromDom)},va=(r,g)=>r.dom===g.dom,El=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},_f=r=>_r.fromDom(r.dom.ownerDocument),$f=r=>Jf(r)?r:_f(r),ih=r=>_r.fromDom($f(r).dom.documentElement),yu=r=>_r.fromDom($f(r).dom.defaultView),jc=r=>Y.from(r.dom.parentNode).map(_r.fromDom),Nh=r=>Y.from(r.dom.parentElement).map(_r.fromDom),af=(r,g)=>{const B=A(g)?g:re;let H=r.dom;const oe=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Le=_r.fromDom(be);if(oe.push(Le),B(Le)===!0)break;H=be}return oe},td=r=>{const g=B=>Te(B,H=>!va(r,H));return jc(r).map(vc).map(g).getOr([])},sf=r=>Y.from(r.dom.previousSibling).map(_r.fromDom),Bc=r=>Y.from(r.dom.nextSibling).map(_r.fromDom),Vd=r=>ke(Ff(r,sf)),xd=r=>Ff(r,Bc),vc=r=>ye(r.dom.childNodes,_r.fromDom),gs=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(_r.fromDom)},yc=r=>gs(r,0),Cc=r=>gs(r,r.dom.childNodes.length-1),Nu=r=>r.dom.childNodes.length,Gs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return _r.fromDom(g)},Ks=r=>Nf(r)&&P(r.dom.host),Ac=r=>_r.fromDom(r.dom.getRootNode()),_d=r=>Ks(r)?r:Gs($f(r)),Fh=r=>Ks(r)?r:_r.fromDom($f(r).dom.body),$h=r=>{const g=Ac(r);return Ks(g)?Y.some(g):Y.none()},vp=r=>_r.fromDom(r.dom.host),ah=r=>{if(P(r.target)){const g=_r.fromDom(r.target);if(Wl(g)&&Au(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Ye(B)}}return Y.from(r.target)},Au=r=>P(r.dom.shadowRoot),lf=r=>{const g=Ml(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return $h(_r.fromDom(g)).fold(()=>B.body.contains(g),z(lf,vp))};var wf=(r,g,B,H,oe)=>r(B,H)?Y.some(B):A(oe)&&oe(B)?Y.none():g(B,H,oe);const vs=(r,g,B)=>{let H=r.dom;const oe=A(B)?B:re;for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H);if(g(be))return Y.some(be);if(oe(be))break}return Y.none()},cl=(r,g,B)=>wf((oe,be)=>be(oe),vs,r,g,B),bc=(r,g)=>{const B=r.dom;return B.parentNode?nc(_r.fromDom(B.parentNode),H=>!va(r,H)&&g(H)):Y.none()},nc=(r,g)=>{const B=oe=>g(_r.fromDom(oe));return De(r.dom.childNodes,B).map(_r.fromDom)},Qc=(r,g)=>{const B=H=>{for(let oe=0;oevs(r,H=>yd(H,g),B),wi=(r,g)=>zu(g,r),bu=(r,g,B)=>wf((oe,be)=>yd(oe,be),ts,r,g,B),wd=r=>bu(r,"[contenteditable]"),Ol=(r,g=!1)=>lf(r)?r.dom.isContentEditable:wd(r).fold($(g),B=>ds(B)==="true"),ds=r=>r.dom.contentEditable,zc=r=>r.style!==void 0&&A(r.style.getPropertyValue),Ud=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);zc(r)&&r.style.setProperty(g,B)},cf=(r,g)=>{zc(r)&&r.style.removeProperty(g)},Of=(r,g,B)=>{const H=r.dom;Ud(H,g,B)},aa=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Ud(B,oe,H)})},rs=(r,g)=>{const B=r.dom,oe=window.getComputedStyle(B).getPropertyValue(g);return oe===""&&!lf(r)?Mu(B,g):oe},Mu=(r,g)=>zc(r)?r.style.getPropertyValue(g):"",Ri=(r,g)=>{const B=r.dom,H=Mu(B,g);return Y.from(H).filter(oe=>oe.length>0)},Gc=r=>{const g={},B=r.dom;if(zc(B))for(let H=0;H{const B=r.dom;cf(B,g),Ia(ec(r,"style").map(qn),"")&&tc(r,"style")},zl=r=>r.dom.offsetWidth,xc=(r,g)=>{jc(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},Kc=(r,g)=>{Bc(r).fold(()=>{jc(r).each(oe=>{ii(oe,g)})},H=>{xc(H,g)})},jd=(r,g)=>{yc(r).fold(()=>{ii(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},ii=(r,g)=>{r.dom.appendChild(g.dom)},nd=(r,g)=>{xc(r,g),ii(g,r)},al=(r,g)=>{ve(g,(B,H)=>{const oe=H===0?r:g[H-1];Kc(oe,B)})},Yl=(r,g)=>{ve(g,B=>{ii(r,B)})},uf=r=>{r.dom.textContent="",ve(vc(r),g=>{hs(g)})},hs=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},Mc=r=>{const g=vc(r);g.length>0&&al(r,g),hs(r)},Eu=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,vc(_r.fromDom(H))},xu=r=>ye(r,_r.fromDom),ws=r=>r.dom.innerHTML,Fu=(r,g)=>{const H=_f(r).dom,oe=_r.fromDom(H.createDocumentFragment()),be=Eu(g,H);Yl(oe,be),uf(r),ii(r,oe)},su=r=>{const g=_r.fromTag("div"),B=_r.fromDom(r.dom.cloneNode(!0));return ii(g,B),ws(g)},Ca=(r,g,B,H,oe,be,Le)=>({target:r,x:g,y:B,stop:H,prevent:oe,kill:be,raw:Le}),Ls=r=>{const g=_r.fromDom(ah(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),oe=I(H,B);return Ca(g,r.clientX,r.clientY,B,H,oe,r)},Ec=(r,g)=>B=>{r(B)&&g(Ls(B))},_u=(r,g,B,H,oe)=>{const be=Ec(B,H);return r.dom.addEventListener(g,be,oe),{unbind:U(Kt,r,g,be,oe)}},wt=(r,g,B,H)=>_u(r,g,B,H,!1),Kt=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},En=(r,g)=>({left:r,top:g,translate:(H,oe)=>En(r+H,g+oe)}),pr=En,wr=r=>{const g=r.getBoundingClientRect();return pr(g.left,g.top)},uo=(r,g)=>r!==void 0?r:g!==void 0?g:0,Bi=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,oe=g.documentElement;if(B===r.dom)return pr(B.offsetLeft,B.offsetTop);const be=uo(H==null?void 0:H.pageYOffset,oe.scrollTop),Le=uo(H==null?void 0:H.pageXOffset,oe.scrollLeft),Ke=uo(oe.clientTop,B.clientTop),ut=uo(oe.clientLeft,B.clientLeft);return ya(r).translate(Le-ut,be-Ke)},ya=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?pr(H.offsetLeft,H.offsetTop):lf(r)?wr(g):pr(0,0)},Ni=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return pr(B,H)},Qi=(r,g,B)=>{const oe=(B!==void 0?B.dom:document).defaultView;oe&&oe.scrollTo(r,g)},Ws=(r,g)=>{zn().browser.isSafari()&&A(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},nl=r=>{const g=r===void 0?window:r;return zn().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Fs=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),Wu=r=>{const g=r===void 0?window:r,B=g.document,H=Ni(_r.fromDom(B));return nl(g).fold(()=>{const oe=g.document.documentElement,be=oe.clientWidth,Le=oe.clientHeight;return Fs(H.left,H.top,be,Le)},oe=>Fs(Math.max(oe.pageLeft,H.left),Math.max(oe.pageTop,H.top),oe.width,oe.height))},Ki=(r,g)=>Te(vc(r),g),Aa=(r,g)=>{let B=[];return ve(vc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Aa(H,g))}),B},Pl=(r,g)=>_h(g,r),Vf=(r,g,B)=>vs(r,g,B).isSome(),sh=(r,g)=>bc(r,g).isSome(),_c=(r,g)=>Qc(r,g).isSome();class Xl{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,oe){if(g){if(!oe&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Le=g.parentNode;Le&&Le!==this.rootNode;Le=Le.parentNode)if(be=Le[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const oe=g.parentNode;if(oe&&oe!==this.rootNode)return oe}}}const pl="\uFEFF",Pc=" ",Uf=r=>r===pl,Os=r=>r.replace(/\uFEFF/g,""),Si=/^[ \t\r\n]*$/,lc=r=>Si.test(r),rd=r=>{for(const g of r)if(!Uf(g))return!1;return!0},tp=r=>" \f \v".indexOf(r)!==-1,kt=r=>r===` -`||r==="\r",It=(r,g)=>g=0?kt(r[g]):!1,Ut=(r,g=4,B=!0,H=!0)=>{const oe=Vr(" ",g),be=r.replace(/\t/g,oe);return Ie(be,(Ke,ut)=>tp(ut)||ut===Pc?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||It(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Pc}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:kt(ut),str:Ke.str+ut},{pcIsSpace:!1,str:""}).str},J=r=>g=>!!g&&g.nodeType===r,le=r=>!!r&&!Object.getPrototypeOf(r),ne=J(1),V=r=>ne(r)&&Al(_r.fromDom(r)),ie=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",ge=r=>{const g=r.toLowerCase();return B=>P(B)&&B.nodeName.toLowerCase()===g},xe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Ee=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const oe=H.ownerDocument.defaultView;if(oe)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),et=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),rt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",dt=r=>ne(r)&&r.tagName==="TABLE",gt=r=>g=>!!(V(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),Rt=xe(["textarea","input"]),Mt=J(3),Xt=J(4),dn=J(7),bn=J(8),vn=J(9),Ln=J(11),gn=ge("br"),Jn=ge("img"),pn=gt("true"),In=gt("false"),Ir=xe(["td","th"]),Pr=xe(["td","th","caption"]),Gr=xe(["video","audio","object","embed"]),ro=ge("li"),po=ge("details"),Wo=ge("summary"),si={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},Bo=(r,g,B)=>{const H=_r.fromDom(g),oe=_r.fromDom(r),be=B.getWhitespaceElements();return Vf(oe,Ke=>Ot(be,ma(Ke)),U(va,H))},Go=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Yo=(r,g)=>ne(r)&&Ot(g.getNonEmptyElements(),r.nodeName),Wi=Ne("data-mce-bookmark"),Ho=r=>Nh(_r.fromDom(r)).exists(g=>!Ol(g)),jo=(r,g,B)=>lc(r.data)&&!Bo(r,g,B),Yi=(r,g,B,H)=>Mt(r)&&!jo(r,g,B)&&(!H.includeZwsp||!rd(r.data)),ai=(r,g,B,H)=>A(H.isContent)&&H.isContent(g)||Yo(g,r)||Wi(g)||Go(g)||Yi(g,B,r,H)||In(g)||pn(g)&&Ho(g),Hi=(r,g,B)=>{const H={...si,...B};if(H.checkRootAsContent&&ai(r,g,g,H))return!1;let oe=g.firstChild,be=0;if(!oe)return!0;const Le=new Xl(oe,g);do{if(H.skipBogus&&ne(oe)){const Ke=oe.getAttribute("data-mce-bogus");if(Ke){oe=Le.next(Ke==="all");continue}}if(bn(oe)){oe=Le.next(!0);continue}if(gn(oe)){be++,oe=Le.next();continue}if(ai(r,oe,g,H))return!1;oe=Le.next()}while(oe);return be<=1},Ai=(r,g,B)=>Hi(r,g.dom,{checkRootAsContent:!0,...B}),Ja=(r,g,B)=>ai(r,g,g,{includeZwsp:si.includeZwsp,...B}),Ar=r=>{let g=r;return{get:()=>g,set:oe=>{g=oe}}},ns=r=>{const g=Ar(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},$s=r=>{const g=Ar(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ts=()=>{const r=ns(k);return{...r,on:B=>r.get().each(B)}},rl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},Hs=r=>rl(r)!=="html",ys=r=>Hs(r.nodeName),Yu=r=>rl(r.nodeName),mt=["svg","math"],Tt=()=>{const r=Ts(),g=()=>r.get().map(Yu).getOr("html");return{track:oe=>(ys(oe)?r.set(oe):r.get().exists(be=>!be.contains(oe))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},xn="data-mce-block",Nn=r=>Te(tt(r),g=>!/[A-Z]/.test(g)),yr=r=>ye(Nn(r),g=>{const B=CSS.escape(g);return`${B}:`+ye(mt,H=>`not(${H} ${B})`).join(":")}).join(","),so=(r,g)=>P(g.querySelector(r))?(g.setAttribute(xn,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(xn),!1),No=(r,g)=>{const B=yr(r.getTransparentElements()),H=yr(r.getBlockElements());return Te(g.querySelectorAll(B),oe=>so(H,oe))},ui=(r,g,B)=>{var H;const oe=B?"lastChild":"firstChild";for(let be=g[oe];be;be=be[oe])if(Hi(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},ga=(r,g,B)=>{const H=document.createRange(),oe=g.parentNode;if(oe){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ui(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Le=H.extractContents();ui(r,Le,!1),Hi(r,be,{checkRootAsContent:!0})||oe.insertBefore(be,g),Hi(r,B,{checkRootAsContent:!0})||oe.insertBefore(B,g),Hi(r,Le,{checkRootAsContent:!0})||oe.insertBefore(Le,g),oe.removeChild(g)}},Sa=(r,g,B)=>{const H=r.getBlockElements(),oe=_r.fromDom(g),be=Ke=>ma(Ke)in H,Le=Ke=>va(Ke,oe);ve(xu(B),Ke=>{vs(Ke,be,Le).each(ut=>{const At=Ki(Ke,nn=>be(nn)&&!r.isValidChild(ma(ut),ma(nn)));if(At.length>0){const nn=Nh(ut);ve(At,un=>{vs(un,be,Le).each(yn=>{ga(r,yn.dom,un.dom)})}),nn.each(un=>No(r,un.dom))}})})},ua=(r,g,B)=>{ve([...B,...lh(r,g)?[g]:[]],H=>ve(Pl(_r.fromDom(H),H.nodeName.toLowerCase()),oe=>{r0(r,oe.dom)&&Mc(oe)}))},Cs=(r,g)=>{const B=No(r,g);Sa(r,g,B),ua(r,g,B)},ul=(r,g)=>{if(Nl(r,g)){const B=yr(r.getBlockElements());so(B,g)}},Jc=(r,g,B)=>{const H=be=>va(be,_r.fromDom(g)),oe=af(_r.fromDom(B),H);Ze(oe,oe.length-2).filter(Wl).fold(()=>Cs(r,g),be=>Cs(r,be.dom))},Is=r=>r.hasAttribute(xn),Hc=(r,g)=>Ot(r.getTransparentElements(),g),Nl=(r,g)=>ne(g)&&Hc(r,g.nodeName),lh=(r,g)=>Nl(r,g)&&Is(g),r0=(r,g)=>Nl(r,g)&&!Is(g),ch=(r,g)=>g.type===1&&Hc(r,g.name)&&v(g.attr(xn)),gg=zn().browser,Ip=r=>De(r,Wl),X0=r=>gg.isFirefox()&&ma(r)==="table"?Ip(vc(r)).filter(g=>ma(g)==="caption").bind(g=>Ip(xd(g)).map(B=>{const H=B.dom.offsetTop,oe=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=oe?-be:0})).getOr(0):0,Vh=(r,g)=>r.children&&ce(r.children,g),Pu=(r,g,B)=>{let H=0,oe=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&rs(_r.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,oe=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:oe}}let Le=g;for(;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);){const Ke=Le;H+=Ke.offsetLeft||0,oe+=Ke.offsetTop||0,Le=Ke.offsetParent}for(Le=g.parentNode;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);)H-=Le.scrollLeft||0,oe-=Le.scrollTop||0,Le=Le.parentNode;oe+=X0(_r.fromDom(g))}return{x:H,y:oe}},Uh=(r,g={})=>{let B=0;const H={},oe=_r.fromDom(r),be=$f(oe),Le=Tr=>{g.referrerPolicy=Tr},Ke=Tr=>{g.contentCssCors=Tr},ut=Tr=>{ii(_d(oe),Tr)},At=Tr=>{const Wr=_d(oe);wi(Wr,"#"+Tr).each(hs)},nn=Tr=>Et(H,Tr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),un=Tr=>new Promise((Wr,Qr)=>{let lo;const Zo=To._addCacheSuffix(Tr),li=nn(Zo);H[Zo]=li,li.count++;const Mi=(Fi,la)=>{ve(Fi,K),li.status=la,li.passed=[],li.failed=[],lo&&(lo.onload=null,lo.onerror=null,lo=null)},Co=()=>Mi(li.passed,2),yo=()=>Mi(li.failed,3);if(Wr&&li.passed.push(Wr),Qr&&li.failed.push(Qr),li.status===1)return;if(li.status===2){Co();return}if(li.status===3){yo();return}li.status=1;const Vo=_r.fromTag("link",be.dom);Tu(Vo,{rel:"stylesheet",type:"text/css",id:li.id}),g.contentCssCors&&ll(Vo,"crossOrigin","anonymous"),g.referrerPolicy&&ll(Vo,"referrerpolicy",g.referrerPolicy),lo=Vo.dom,lo.onload=Co,lo.onerror=yo,ut(Vo),ll(Vo,"href",Zo)}),yn=(Tr,Wr)=>{const Qr=nn(Tr);H[Tr]=Qr,Qr.count++;const lo=_r.fromTag("style",be.dom);Tu(lo,{rel:"stylesheet",type:"text/css",id:Qr.id}),lo.dom.innerHTML=Wr,ut(lo)},Qn=Tr=>Promise.allSettled(ye(Tr,Qr=>un(Qr).then($(Qr)))).then(Qr=>{const lo=we(Qr,Zo=>Zo.status==="fulfilled");return lo.fail.length>0?Promise.reject(ye(lo.fail,Zo=>Zo.reason)):ye(lo.pass,Zo=>Zo.value)}),rr=Tr=>{const Wr=To._addCacheSuffix(Tr);Et(H,Wr).each(Qr=>{--Qr.count===0&&(delete H[Wr],At(Qr.id))})};return{load:un,loadRawCss:yn,loadAll:Qn,unload:rr,unloadRawCss:Tr=>{Et(H,Tr).each(Wr=>{--Wr.count===0&&(delete H[Tr],At(Wr.id))})},unloadAll:Tr=>{ve(Tr,Wr=>{rr(Wr)})},_setReferrerPolicy:Le,_setContentCssCors:Ke}},Gl=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=Ac(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Le=Uh(be,H);return r.set(be,Le),Le})}}})(),Sf=r=>r.nodeName.toLowerCase()==="span",Nc=(r,g)=>P(r)&&(Ja(g,r)||g.isInline(r.nodeName.toLowerCase())),o0=(r,g,B)=>{const H=new Xl(r,g).prev(!1),oe=new Xl(r,g).next(!1),be=M(H)||Nc(H,B),Le=M(oe)||Nc(oe,B);return be&&Le},i0=r=>Sf(r)&&r.getAttribute("data-mce-type")==="bookmark",a0=(r,g,B)=>Mt(r)&&r.data.length>0&&o0(r,g,B),wu=r=>ne(r)?r.childNodes.length>0:!1,Dp=r=>Ln(r)||vn(r),Rm=(r,g,B,H)=>{var oe;const be=H||g;if(ne(g)&&i0(g))return g;const Le=g.childNodes;for(let Ke=Le.length-1;Ke>=0;Ke--)Rm(r,Le[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&i0(Ke[0])&&((oe=g.parentNode)===null||oe===void 0||oe.insertBefore(Ke[0],g))}return!Dp(g)&&!Ja(B,g)&&!wu(g)&&!a0(g,be,B)&&r.remove(g),g},nm=To.makeMap,G0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s0=/[<>&\"\']/g,H1=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,VO={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},rm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},z_={"<":"<",">":">","&":"&",""":'"',"'":"'"},db=r=>{const g=_r.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},lu=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let oe=0;oer.replace(g?G0:vg,B=>rm[B]||B),kf=r=>(""+r).replace(s0,g=>rm[g]||g),l0=(r,g)=>r.replace(g?G0:vg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":rm[B]||"&#"+B.charCodeAt(0)+";"),yp=(r,g,B)=>{const H=B||ay;return r.replace(g?G0:vg,oe=>rm[oe]||H[oe]||oe)},Lm={encodeRaw:wh,encodeAllRaw:kf,encodeNumeric:l0,encodeNamed:yp,getEncodeFunc:(r,g)=>{const B=lu(g)||ay,H=(Le,Ke)=>Le.replace(Ke?G0:vg,ut=>rm[ut]!==void 0?rm[ut]:B[ut]!==void 0?B[ut]:ut.length>1?"&#"+((ut.charCodeAt(0)-55296)*1024+(ut.charCodeAt(1)-56320)+65536)+";":"&#"+ut.charCodeAt(0)+";"),oe=(Le,Ke)=>yp(Le,Ke,B),be=nm(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?oe:yp:be.numeric?l0:wh},decode:r=>r.replace(H1,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):VO[B]||String.fromCharCode(B)):z_[g]||ay[g]||db(g))},Qd=(r,g)=>(r=To.trim(r),r?r.split(g||" "):[]),Z1=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),N_=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",K0=r=>{const g=B=>C(B)?ye(B,g):N_(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},sy=r=>{const g=/^(~)?(.+)$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Le=H[2];return[{cloneName:be,name:Le}]}else return[]})},yg=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),Im=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Dm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=Im(r),oe=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:oe(g),phrasingContent:oe(B),flowContent:oe(H)})},Oh={html4:_t(()=>Dm("html4")),html5:_t(()=>Dm("html5")),"html5-strict":_t(()=>Dm("html5-strict"))},zp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:oe}=Oh[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(oe):Y.none()},J0=r=>{const g=yg(r),{phrasingContent:B,flowContent:H}=Im(r),oe={},be=(ut,At,nn)=>{oe[ut]={attributes:We(At,$({})),attributesOrder:At,children:We(nn,$({}))}},Le=(ut,At="",nn="")=>{const un=Qd(nn),yn=Qd(ut);let Qn=yn.length;const rr=[...g,...Qd(At)];for(;Qn--;)be(yn[Qn],rr.slice(),un)},Ke=(ut,At)=>{const nn=Qd(ut),un=Qd(At);let yn=nn.length;for(;yn--;){const Qn=oe[nn[yn]];for(let rr=0,Wn=un.length;rr{Le(nn,"",B)}),ve(Qd("center dir isindex noframes"),nn=>{Le(nn,"",H)})),Le("html","manifest","head body"),Le("head","","base command link meta noscript script style title"),Le("title hr noscript br"),Le("base","href target"),Le("link","href rel media hreflang type sizes hreflang"),Le("meta","name http-equiv content charset"),Le("style","media type scoped"),Le("script","src async defer type charset"),Le("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Le("dd div","",H),Le("address dt caption","",r==="html4"?B:H),Le("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Le("blockquote","cite",H),Le("ol","reversed start type","li"),Le("ul","","li"),Le("li","value",H),Le("dl","","dt dd"),Le("a","href target rel media hreflang type",r==="html4"?B:H),Le("q","cite",B),Le("ins del","cite datetime",H),Le("img","src sizes srcset alt usemap ismap width height"),Le("iframe","src name width height",H),Le("embed","src type width height"),Le("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Le("param","name value"),Le("map","name",[H,"area"].join(" ")),Le("area","alt coords shape href target rel media hreflang type"),Le("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Le("colgroup","span","col"),Le("col","span"),Le("tbody thead tfoot","","tr"),Le("tr","","td th"),Le("td","colspan rowspan headers",H),Le("th","colspan rowspan headers scope abbr",H),Le("form","accept-charset action autocomplete enctype method name novalidate target",H),Le("fieldset","disabled form name",[H,"legend"].join(" ")),Le("label","form for",B),Le("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Le("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Le("select","disabled form multiple name required size","option optgroup"),Le("optgroup","disabled label","option"),Le("option","disabled label selected value"),Le("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Le("menu","type label",[H,"li"].join(" ")),Le("noscript","",H),r!=="html4"&&(Le("wbr"),Le("ruby","",[B,"rt rp"].join(" ")),Le("figcaption","",H),Le("mark rt rp bdi","",B),Le("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Le("canvas","width height",H),Le("data","value",B),Le("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Le("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Le("picture","","img source"),Le("source","src srcset type media sizes"),Le("track","kind src srclang label default"),Le("datalist","",[B,"option"].join(" ")),Le("article section nav aside main header footer","",H),Le("hgroup","","h1 h2 h3 h4 h5 h6"),Le("figure","",[H,"figcaption"].join(" ")),Le("time","datetime",B),Le("dialog","open",H),Le("command","type label icon disabled checked radiogroup command"),Le("output","for form name",B),Le("progress","value max",B),Le("meter","value min max low high optimum",B),Le("details","open",[H,"summary"].join(" ")),Le("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ve([oe.video,oe.audio],ut=>{delete ut.children.audio,delete ut.children.video}),ve(Qd("a form meter progress dfn"),ut=>{oe[ut]&&delete oe[ut].children[ut]}),delete oe.caption.children.table,delete oe.script,oe},F_=r=>r==="-"?"remove":"add",q1=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},$_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const oe=H[1],be=oe?F_(oe):"replace",Le=H[2],Ke=$e(Qd(H[3],"|"),ut=>q1(ut).toArray());return[{operation:be,name:Le,validChildren:Ke}]}else return[]})},Dx=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:oe,attributesOrder:be}=g;return ve(Qd(r,"|"),Le=>{const Ke=B.exec(Le);if(Ke){const ut={},At=Ke[1],nn=Ke[2].replace(/[\\:]:/g,":"),un=Ke[3],yn=Ke[4];if(At==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(nn),ut.required=!0),At==="-"){delete oe[nn],be.splice(To.inArray(be,nn),1);return}if(un&&(un==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:nn,value:yn}),ut.defaultValue=yn):un==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:nn,value:yn}),ut.forcedValue=yn):un==="<"&&(ut.validValues=To.makeMap(yn,"?"))),H.test(nn)){const Qn=ut;g.attributePatterns=g.attributePatterns||[],Qn.pattern=Z1(nn),g.attributePatterns.push(Qn)}else oe[nn]||be.push(nn),oe[nn]=ut}})},UO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},W1=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Qd(g,","),H=>{const oe=B.exec(H);if(oe){const be=oe[1],Le=oe[2],Ke=oe[3],ut=oe[4],At=oe[5],nn={attributes:{},attributesOrder:[]};if(r.each(un=>UO(un,nn)),be==="#"?nn.paddEmpty=!0:be==="-"&&(nn.removeEmpty=!0),ut==="!"&&(nn.removeEmptyAttrs=!0),At&&Dx(At,nn),Ke&&(nn.outputName=Le),Le==="@")if(r.isNone())r=Y.some(nn);else return[];return[Ke?{name:Le,element:nn,aliasName:Ke}:{name:Le,element:nn}]}else return[]})},e1={},cu=To.makeMap,Za=To.each,sa=To.extend,Bm=To.explode,t1=(r,g={})=>{const B=cu(r," ",cu(r.toUpperCase()," "));return sa(B,g)},n1=r=>t1("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),Bx=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Za(r,(H,oe)=>{B[oe]=B[oe.toUpperCase()]=g==="map"?cu(H,/[, ]/):Bm(H,/[, ]/)}),B}else return},zm=(r={})=>{var g;const B={},H={};let oe=[];const be={},Le={},Ke=(ca,Zs,ru)=>{const ju=r[ca];if(ju)return cu(ju,/[, ]/,cu(ju.toUpperCase(),/[, ]/));{let Pf=e1[ca];return Pf||(Pf=t1(Zs,ru),e1[ca]=Pf),Pf}},ut=(g=r.schema)!==null&&g!==void 0?g:"html5",At=J0(ut);r.verify_html===!1&&(r.valid_elements="*[*]");const nn=Bx(r.valid_styles),un=Bx(r.invalid_styles,"map"),yn=Bx(r.valid_classes,"map"),Qn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),rr=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Wn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),ur=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Tr="td th iframe video audio object script code",Wr=Ke("non_empty_elements",Tr+" pre svg textarea summary",Wn),Qr=Ke("move_caret_before_on_enter_elements",Tr+" table",Wn),lo="h1 h2 h3 h4 h5 h6",Zo=Ke("text_block_elements",lo+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),li=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",Zo),Mi=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Co=Ke("transparent_elements","a ins del canvas map"),yo=Ke("wrap_block_elements","pre "+lo);Za("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),ca=>{Le[ca]=new RegExp("]*>","gi")});const Vo=ca=>{const Zs=Y.from(B["@"]),ru=/[*?+]/;ve(W1(Zs,ca??""),({name:ju,element:Pf,aliasName:Gd})=>{if(Gd&&(B[Gd]=Pf),ru.test(ju)){const Rf=Pf;Rf.pattern=Z1(ju),oe.push(Rf)}else B[ju]=Pf})},Fi=ca=>{oe=[],ve(tt(B),Zs=>{delete B[Zs]}),Vo(ca)},la=(ca,Zs)=>{var ru,ju;delete e1.text_block_elements,delete e1.block_elements;const Pf=Zs.extends?!Om(Zs.extends):!1,Gd=Zs.extends;if(H[ca]=Gd?H[Gd]:{},be[ca]=Gd??ca,Wr[ca.toUpperCase()]={},Wr[ca]={},Pf||(li[ca.toUpperCase()]={},li[ca]={}),Gd&&!B[ca]&&B[Gd]){const Rf=K0(B[Gd]);delete Rf.removeEmptyAttrs,delete Rf.removeEmpty,B[ca]=Rf}else B[ca]={attributesOrder:[],attributes:{}};if(C(Zs.attributes)){const Rf=fp=>{Lf.attributesOrder.push(fp),Lf.attributes[fp]={}},Lf=(ru=B[ca])!==null&&ru!==void 0?ru:{};delete Lf.attributesDefault,delete Lf.attributesForced,delete Lf.attributePatterns,delete Lf.attributesRequired,Lf.attributesOrder=[],Lf.attributes={},ve(Zs.attributes,fp=>{const N0=yg(ut);q1(fp).each(({preset:F0,name:$0})=>{F0?$0==="global"&&ve(N0,Rf):Rf($0)})}),B[ca]=Lf}if(R(Zs.padEmpty)){const Rf=(ju=B[ca])!==null&&ju!==void 0?ju:{};Rf.paddEmpty=Zs.padEmpty,B[ca]=Rf}if(C(Zs.children)){const Rf={},Lf=N0=>{Rf[N0]={}},fp=N0=>{zp(ut,N0).each(F0=>{ve(F0,Lf)})};ve(Zs.children,N0=>{q1(N0).each(({preset:F0,name:$0})=>{F0?fp($0):Lf($0)})}),H[ca]=Rf}Gd&&Ge(H,(Rf,Lf)=>{Rf[Gd]&&(H[Lf]=Rf=sa({},H[Lf]),Rf[ca]=Rf[Gd])})},bs=ca=>{ve(sy(ca??""),({name:Zs,cloneName:ru})=>{la(Zs,{extends:ru})})},Ms=ca=>{_(ca)?Ge(ca,(Zs,ru)=>la(ru,Zs)):v(ca)&&bs(ca)},wl=ca=>{ve($_(ca??""),({operation:Zs,name:ru,validChildren:ju})=>{const Pf=Zs==="replace"?{"#comment":{}}:H[ru],Gd=Lf=>{Zs==="remove"?delete Pf[Lf]:Pf[Lf]={}},Rf=Lf=>{zp(ut,Lf).each(fp=>{ve(fp,Gd)})};ve(ju,({preset:Lf,name:fp})=>{Lf?Rf(fp):Gd(fp)}),H[ru]=Pf})},Vl=ca=>{const Zs=B[ca];if(Zs)return Zs;let ru=oe.length;for(;ru--;){const ju=oe[ru];if(ju.pattern.test(ca))return ju}},Uu=()=>{r.valid_elements?(Fi(r.valid_elements),Za(At,(ca,Zs)=>{H[Zs]=ca.children})):(Za(At,(ca,Zs)=>{B[Zs]={attributes:ca.attributes,attributesOrder:ca.attributesOrder},H[Zs]=ca.children}),Za(Qd("strong/b em/i"),ca=>{const Zs=Qd(ca,"/");B[Zs[1]].outputName=Zs[0]}),Za(Mi,(ca,Zs)=>{B[Zs]&&(r.padd_empty_block_inline_children&&(B[Zs].paddInEmptyBlock=!0),B[Zs].removeEmpty=!0)}),Za(Qd("ol ul blockquote a table tbody"),ca=>{B[ca]&&(B[ca].removeEmpty=!0)}),Za(Qd("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),ca=>{B[ca]&&(B[ca].paddEmpty=!0)}),Za(Qd("span"),ca=>{B[ca].removeEmptyAttrs=!0})),delete B.svg,Ms(r.custom_elements),wl(r.valid_children),Vo(r.extended_valid_elements),wl("+ol[ul|ol],+ul[ul|ol]"),Za({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(ca,Zs)=>{B[Zs]&&(B[Zs].parentsRequired=Qd(ca))}),r.invalid_elements&&Za(Bm(r.invalid_elements),ca=>{B[ca]&&delete B[ca]}),Vl("span")||Vo("span[!data-mce-type|*]")},Wf=$(nn),ic=$(un),vi=$(yn),na=$(ur),ol=$(li),Ti=$(Zo),pa=$(Mi),ps=$(Object.seal(Wn)),Ci=$(rr),ms=$(Wr),Es=$(Qr),Bd=$(Qn),Cl=$(Co),dd=$(yo),z0=$(Object.seal(Le)),$v=(ca,Zs)=>{const ru=H[ca.toLowerCase()];return!!(ru&&ru[Zs.toLowerCase()])},Cp=(ca,Zs)=>{const ru=Vl(ca);if(ru)if(Zs){if(ru.attributes[Zs])return!0;const ju=ru.attributePatterns;if(ju){let Pf=ju.length;for(;Pf--;)if(ju[Pf].pattern.test(Zs))return!0}}else return!0;return!1},Om=ca=>Ot(ol(),ca),Hg=ca=>!Br(ca,"#")&&Cp(ca)&&!Om(ca),Sm=ca=>Ot(dd(),ca)||Hg(ca),Zg=$(be);return Uu(),{type:ut,children:H,elements:B,getValidStyles:Wf,getValidClasses:vi,getBlockElements:ol,getInvalidStyles:ic,getVoidElements:ps,getTextBlockElements:Ti,getTextInlineElements:pa,getBoolAttrs:na,getElementRule:Vl,getSelfClosingElements:Ci,getNonEmptyElements:ms,getMoveCaretBeforeOnEnterElements:Es,getWhitespaceElements:Bd,getTransparentElements:Cl,getSpecialElements:z0,isValidChild:$v,isValid:Cp,isBlock:Om,isInline:Hg,isWrapper:Sm,getCustomElements:Zg,addValidElements:Vo,setValidElements:Fi,addCustomElements:Ms,addValidChildren:wl}},Rl=r=>({value:zx(r)}),zx=r=>Zn(r,"#").toUpperCase(),pb=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},V_=r=>{const g=pb(r.red)+pb(r.green)+pb(r.blue);return Rl(g)},Lo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,Nm=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,D4=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),bg=(r,g,B,H)=>{const oe=parseInt(r,10),be=parseInt(g,10),Le=parseInt(B,10),Ke=parseFloat(H);return D4(oe,be,Le,Ke)},B4=r=>Lo.test(r)?"rgb":Nm.test(r)?"rgba":"other",c0=r=>{const g=Lo.exec(r);if(g!==null)return Y.some(bg(g[1],g[2],g[3],"1"));const B=Nm.exec(r);return B!==null?Y.some(bg(B[1],B[2],B[3],B[4])):Y.none()},mb=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,od=r=>c0(r).map(V_).map(g=>"#"+g.value).getOr(r),U_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,oe=/\s+$/,be={};let Le,Ke;const ut=pl;g&&(Le=g.getValidStyles(),Ke=g.getInvalidStyles());const At=(`\\" \\' \\; \\: ; : `+ut).split(" ");for(let un=0;un{const yn={};let Qn=!1;const rr=r.url_converter,Wn=r.url_converter_scope||nn,ur=(Co,yo,Vo)=>{const Fi=yn[Co+"-top"+yo];if(!Fi)return;const la=yn[Co+"-right"+yo];if(!la)return;const bs=yn[Co+"-bottom"+yo];if(!bs)return;const Ms=yn[Co+"-left"+yo];if(!Ms)return;const wl=[Fi,la,bs,Ms];let Vl=wl.length-1;for(;Vl--&&wl[Vl]===wl[Vl+1];);Vl>-1&&Vo||(yn[Co+yo]=Vl===-1?wl[0]:wl.join(" "),delete yn[Co+"-top"+yo],delete yn[Co+"-right"+yo],delete yn[Co+"-bottom"+yo],delete yn[Co+"-left"+yo])},Tr=Co=>{const yo=yn[Co];if(!yo)return;const Vo=yo.indexOf(",")>-1?[yo]:yo.split(" ");let Fi=Vo.length;for(;Fi--;)if(Vo[Fi]!==Vo[0])return!1;return yn[Co]=Vo[0],!0},Wr=(Co,yo,Vo,Fi)=>{Tr(yo)&&Tr(Vo)&&Tr(Fi)&&(yn[Co]=yn[yo]+" "+yn[Vo]+" "+yn[Fi],delete yn[yo],delete yn[Vo],delete yn[Fi])},Qr=Co=>(Qn=!0,be[Co]),lo=(Co,yo)=>(Qn&&(Co=Co.replace(/\uFEFF[0-9]/g,Vo=>be[Vo])),yo||(Co=Co.replace(/\\([\'\";:])/g,"$1")),Co),Zo=Co=>String.fromCharCode(parseInt(Co.slice(1),16)),li=Co=>Co.replace(/\\[0-9a-f]+/gi,Zo),Mi=(Co,yo,Vo,Fi,la,bs)=>{if(la=la||bs,la)return la=lo(la),"'"+la.replace(/\'/g,"\\'")+"'";if(yo=lo(yo||Vo||Fi||""),!r.allow_script_urls){const Ms=yo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ms)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ms))return""}return rr&&(yo=rr.call(Wn,yo,"style")),"url('"+yo.replace(/\'/g,"\\'")+"')"};if(un){un=un.replace(/[\u0000-\u001F]/g,""),un=un.replace(/\\[\"\';:\uFEFF]/g,Qr).replace(/\"[^\"]+\"|\'[^\']+\'/g,yo=>yo.replace(/[;:]/g,Qr));let Co;for(;Co=H.exec(un);){H.lastIndex=Co.index+Co[0].length;let yo=Co[1].replace(oe,"").toLowerCase(),Vo=Co[2].replace(oe,"");if(yo&&Vo){if(yo=li(yo),Vo=li(Vo),yo.indexOf(ut)!==-1||yo.indexOf('"')!==-1||!r.allow_script_urls&&(yo==="behavior"||/expression\s*\(|\/\*|\*\//.test(Vo)))continue;yo==="font-weight"&&Vo==="700"?Vo="bold":(yo==="color"||yo==="background-color")&&(Vo=Vo.toLowerCase()),B4(Vo)==="rgb"&&c0(Vo).each(Fi=>{Vo=od(mb(Fi)).toLowerCase()}),Vo=Vo.replace(B,Mi),yn[yo]=Qn?lo(Vo,!0):Vo}}ur("border","",!0),ur("border","-width"),ur("border","-color"),ur("border","-style"),ur("padding",""),ur("margin",""),Wr("border","border-width","border-style","border-color"),yn.border==="medium none"&&delete yn.border,yn["border-image"]==="none"&&delete yn["border-image"]}return yn},serialize:(un,yn)=>{let Qn="";const rr=(ur,Tr)=>{const Wr=Tr[ur];if(Wr)for(let Qr=0,lo=Wr.length;Qr0?" ":"")+Zo+": "+li+";")}},Wn=(ur,Tr)=>{if(!Ke||!Tr)return!0;let Wr=Ke["*"];return Wr&&Wr[ur]?!1:(Wr=Ke[Tr],!(Wr&&Wr[ur]))};return yn&&Le?(rr("*",Le),rr(yn,Le)):Ge(un,(ur,Tr)=>{ur&&Wn(Tr,yn)&&(Qn+=(Qn.length>0?" ":"")+Tr+": "+ur+";")}),Qn}};return nn},ly={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},wc=r=>r instanceof Event||A(r.initEvent),xg=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===re,Nx=r=>T(r.preventDefault)||wc(r),Sh=(r,g)=>{const B=g??{};for(const H in r)Ot(ly,H)||(B[H]=r[H]);return P(r.composedPath)&&(B.composedPath=()=>r.composedPath()),P(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),P(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},j_=(r,g,B,H)=>{var oe;const be=Sh(g,H);return be.type=r,T(be.target)&&(be.target=(oe=be.srcElement)!==null&&oe!==void 0?oe:B),Nx(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,A(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,A(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},xg(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:re,be.isPropagationStopped=be.cancelBubble===!0?q:re,be.isImmediatePropagationStopped=re)),be},gb="mce-data-",Y1=/^(?:mouse|contextmenu)|click/,cy=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},np=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},jO=r=>P(r)&&Y1.test(r.type),_g=(r,g)=>{const B=j_(r.type,r,document,g);if(jO(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,oe=H.documentElement,be=H.body,Le=B;Le.pageX=r.clientX+(oe&&oe.scrollLeft||be&&be.scrollLeft||0)-(oe&&oe.clientLeft||be&&be.clientLeft||0),Le.pageY=r.clientY+(oe&&oe.scrollTop||be&&be.scrollTop||0)-(oe&&oe.clientTop||be&&be.clientTop||0)}return B},Q_=(r,g,B)=>{const H=r.document,oe={type:"ready"};if(B.domLoaded){g(oe);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Le=()=>{np(r,"DOMContentLoaded",Le),np(r,"load",Le),B.domLoaded||(B.domLoaded=!0,g(oe)),r=null};be()?Le():cy(r,"DOMContentLoaded",Le),B.domLoaded||cy(r,"load",Le)};class wg{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,oe){const be=this;let Le;const Ke=window,ut=yn=>{be.executeHandlers(_g(yn||Ke.event),At)};if(!g||Mt(g)||bn(g))return H;let At;g[be.expando]?At=g[be.expando]:(At=be.count++,g[be.expando]=At,be.events[At]={}),oe=oe||g;const nn=B.split(" ");let un=nn.length;for(;un--;){let yn=nn[un],Qn=ut,rr=!1,Wn=!1;if(yn==="DOMContentLoaded"&&(yn="ready"),be.domLoaded&&yn==="ready"&&g.readyState==="complete"){H.call(oe,_g({type:yn}));continue}!be.hasFocusIn&&(yn==="focusin"||yn==="focusout")&&(rr=!0,Wn=yn==="focusin"?"focus":"blur",Qn=ur=>{const Tr=_g(ur||Ke.event);Tr.type=Tr.type==="focus"?"focusin":"focusout",be.executeHandlers(Tr,At)}),Le=be.events[At][yn],Le?yn==="ready"&&be.domLoaded?H(_g({type:yn})):Le.push({func:H,scope:oe}):(be.events[At][yn]=Le=[{func:H,scope:oe}],Le.fakeName=Wn,Le.capture=rr,Le.nativeHandler=Qn,yn==="ready"?Q_(g,Qn,be):cy(g,Wn||yn,Qn,rr))}return g=Le=null,H}unbind(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=g[this.expando];if(oe){let be=this.events[oe];if(B){const Le=B.split(" ");let Ke=Le.length;for(;Ke--;){const ut=Le[Ke],At=be[ut];if(At){if(H){let nn=At.length;for(;nn--;)if(At[nn].func===H){const un=At.nativeHandler,yn=At.fakeName,Qn=At.capture,rr=At.slice(0,nn).concat(At.slice(nn+1));rr.nativeHandler=un,rr.fakeName=yn,rr.capture=Qn,be[ut]=rr}}(!H||At.length===0)&&(delete be[ut],np(g,At.fakeName||ut,At.nativeHandler,At.capture))}}}else Ge(be,(Le,Ke)=>{np(g,Le.fakeName||Ke,Le.nativeHandler,Le.capture)}),be={};for(const Le in be)if(Ot(be,Le))return this;delete this.events[oe];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=_g({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(oe,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!oe.isPropagationStopped());return this}clean(g){if(!g||Mt(g)||bn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],oe=H&&H[g.type];if(oe)for(let be=0,Le=oe.length;be{T(B)||B===""?tc(r,g):ll(r,g,B)},Hd=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),ei=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,oe=r.previousSibling;oe;oe=oe.previousSibling){const be=oe.nodeType;g&&Mt(oe)&&(be===H||!oe.data.length)||(B++,H=be)}return B},Fx=(r,g)=>{const B=gu(g,"style"),H=r.serialize(r.parse(B),ma(g));uh(g,H_,H)},id=(r,g)=>L(r)?Ot(QO,g)?r+"":r+"px":r,$x=(r,g,B)=>{const H=Hd(g);T(B)||B===""?qu(r,H):Of(r,H,id(B,H))},HO=(r,g,B)=>{const H=g.keep_values,oe={set:(Le,Ke,ut)=>{const At=_r.fromDom(Le);A(g.url_converter)&&P(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ut,Le));const nn="data-mce-"+ut;uh(At,nn,Ke),uh(At,ut,Ke)},get:(Le,Ke)=>{const ut=_r.fromDom(Le);return gu(ut,"data-mce-"+Ke)||gu(ut,Ke)}},be={style:{set:(Le,Ke)=>{const ut=_r.fromDom(Le);H&&uh(ut,H_,Ke),tc(ut,"style"),v(Ke)&&aa(ut,r.parse(Ke))},get:Le=>{const Ke=_r.fromDom(Le),ut=gu(Ke,H_)||gu(Ke,"style");return r.serialize(r.parse(ut),ma(Ke))}}};return H&&(be.href=be.src=oe),be},cc=(r,g={})=>{const B={},H=window,oe={};let be=0;const Le=!0,Ke=!0,ut=Gl.forElement(_r.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),At=[],nn=g.schema?g.schema:zm({}),un=U_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),yn=g.ownEvents?new wg:wg.Event,Qn=nn.getBlockElements(),rr=ho=>v(ho)?Ot(Qn,ho):ne(ho)&&(Ot(Qn,ho.nodeName)||lh(nn,ho)),Wn=ho=>ho&&r&&v(ho)?r.getElementById(ho):ho,ur=ho=>{const bo=Wn(ho);return P(bo)?_r.fromDom(bo):null},Tr=(ho,bo,di="")=>{let ri;const Ta=ur(ho);if(P(Ta)&&Wl(Ta)){const zs=vT[bo];zs&&zs.get?ri=zs.get(Ta.dom,bo):ri=gu(Ta,bo)}return P(ri)?ri:di},Wr=ho=>{const bo=Wn(ho);return T(bo)?[]:bo.attributes},Qr=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=di===""?null:di,Su=gu(Ta,bo),V0=vT[bo];V0&&V0.set?V0.set(Ta.dom,zs,bo):uh(Ta,bo,zs),Su!==zs&&g.onSetAttrib&&g.onSetAttrib({attrElm:Ta.dom,attrName:bo,attrValue:zs})}})},lo=(ho,bo)=>ho.cloneNode(bo),Zo=()=>g.root_element||r.body,li=ho=>{const bo=Wu(ho);return{x:bo.x,y:bo.y,w:bo.width,h:bo.height}},Mi=(ho,bo)=>Pu(r.body,Wn(ho),bo),Co=(ho,bo,di)=>{na(ho,ri=>{const Ta=_r.fromDom(ri);$x(Ta,bo,di),g.update_styles&&Fx(un,Ta)})},yo=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Ge(bo,(Ta,zs)=>{$x(ri,zs,Ta)}),g.update_styles&&Fx(un,ri)})},Vo=(ho,bo,di)=>{const ri=Wn(ho);if(!(T(ri)||!V(ri)&&!ie(ri)))return di?rs(_r.fromDom(ri),Hd(bo)):(bo=bo.replace(/-(\D)/g,(Ta,zs)=>zs.toUpperCase()),bo==="float"&&(bo="cssFloat"),ri.style?ri.style[bo]:void 0)},Fi=ho=>{const bo=Wn(ho);if(!bo)return{w:0,h:0};let di=Vo(bo,"width"),ri=Vo(bo,"height");return(!di||di.indexOf("px")===-1)&&(di="0"),(!ri||ri.indexOf("px")===-1)&&(ri="0"),{w:parseInt(di,10)||bo.offsetWidth||bo.clientWidth,h:parseInt(ri,10)||bo.offsetHeight||bo.clientHeight}},la=ho=>{const bo=Wn(ho),di=Mi(bo),ri=Fi(bo);return{x:di.x,y:di.y,w:ri.w,h:ri.h}},bs=(ho,bo)=>{if(!ho)return!1;const di=C(ho)?ho:[ho];return de(di,ri=>yd(_r.fromDom(ri),bo))},Ms=(ho,bo,di,ri)=>{const Ta=[];let zs=Wn(ho);ri=ri===void 0;const Su=di||(Zo().nodeName!=="BODY"?Zo().parentNode:null);if(v(bo))if(bo==="*")bo=ne;else{const V0=bo;bo=ZS=>bs(ZS,V0)}for(;zs&&!(zs===Su||T(zs.nodeType)||vn(zs)||Ln(zs));){if(!bo||bo(zs))if(ri)Ta.push(zs);else return[zs];zs=zs.parentNode}return ri?Ta:null},wl=(ho,bo,di)=>{const ri=Ms(ho,bo,di,!1);return ri&&ri.length>0?ri[0]:null},Vl=(ho,bo,di)=>{let ri=bo;if(ho){v(bo)&&(ri=Ta=>bs(Ta,bo));for(let Ta=ho[di];Ta;Ta=Ta[di])if(A(ri)&&ri(Ta))return Ta}return null},Uu=(ho,bo)=>Vl(ho,bo,"nextSibling"),Wf=(ho,bo)=>Vl(ho,bo,"previousSibling"),ic=ho=>A(ho.querySelectorAll),vi=(ho,bo)=>{var di,ri;const Ta=(ri=(di=Wn(bo))!==null&&di!==void 0?di:g.root_element)!==null&&ri!==void 0?ri:r;return ic(Ta)?Me(Ta.querySelectorAll(ho)):[]},na=function(ho,bo,di){const ri=di??this;if(C(ho)){const Ta=[];return X1(ho,(zs,Su)=>{const V0=Wn(zs);V0&&Ta.push(bo.call(ri,V0,Su))}),Ta}else{const Ta=Wn(ho);return Ta?bo.call(ri,Ta):!1}},ol=(ho,bo)=>{na(ho,di=>{Ge(bo,(ri,Ta)=>{Qr(di,Ta,ri)})})},Ti=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Fu(ri,bo)})},pa=(ho,bo,di,ri,Ta)=>na(ho,zs=>{const Su=v(bo)?r.createElement(bo):bo;return P(di)&&ol(Su,di),ri&&(!v(ri)&&ri.nodeType?Su.appendChild(ri):v(ri)&&Ti(Su,ri)),Ta?Su:zs.appendChild(Su)}),ps=(ho,bo,di)=>pa(r.createElement(ho),ho,bo,di,!0),Ci=Lm.decode,ms=Lm.encodeAllRaw,Es=(ho,bo,di="")=>{let ri="<"+ho;for(const Ta in bo)cn(bo,Ta)&&(ri+=" "+Ta+'="'+ms(bo[Ta])+'"');return zr(di)&&Ot(nn.getVoidElements(),ho)?ri+" />":ri+">"+di+""},Bd=ho=>{const bo=r.createElement("div"),di=r.createDocumentFragment();di.appendChild(bo),ho&&(bo.innerHTML=ho);let ri;for(;ri=bo.firstChild;)di.appendChild(ri);return di.removeChild(bo),di},Cl=(ho,bo)=>na(ho,di=>{const ri=_r.fromDom(di);return bo&&ve(vc(ri),Ta=>{Ml(Ta)&&Ta.dom.length===0?hs(Ta):xc(ri,Ta)}),hs(ri),ri.dom}),dd=ho=>na(ho,bo=>{const di=bo.attributes;for(let ri=di.length-1;ri>=0;ri--)bo.removeAttributeNode(di.item(ri))}),z0=ho=>un.parse(ho),$v=(ho,bo)=>un.serialize(ho,bo),Cp=ho=>{if(Hy!==cc.DOM&&r===document){if(B[ho])return;B[ho]=!0}let bo=r.getElementById("mceDefaultStyles");if(!bo){bo=r.createElement("style"),bo.id="mceDefaultStyles",bo.type="text/css";const di=r.head;di.firstChild?di.insertBefore(bo,di.firstChild):di.appendChild(bo)}bo.styleSheet?bo.styleSheet.cssText+=ho:bo.appendChild(r.createTextNode(ho))},Om=ho=>{ho||(ho=""),ve(ho.split(","),bo=>{oe[bo]=!0,ut.load(bo).catch(k)})},Hg=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=bo.split(" ");ve(zs,Su=>{P(di)?(di?Cu:Bu)(Ta,Su):vd(Ta,Su)})}})},Sm=(ho,bo)=>{Hg(ho,bo,!0)},Zg=(ho,bo)=>{Hg(ho,bo,!1)},ca=(ho,bo)=>{const di=ur(ho),ri=bo.split(" ");return P(di)&&Oe(ri,Ta=>cs(di,Ta))},Zs=ho=>{na(ho,bo=>qu(_r.fromDom(bo),"display"))},ru=ho=>{na(ho,bo=>Of(_r.fromDom(bo),"display","none"))},ju=ho=>{const bo=ur(ho);return P(bo)&&Ia(Ri(bo,"display"),"none")},Pf=ho=>(ho||"mce_")+be++,Gd=ho=>{const bo=ur(ho);return P(bo)?ne(bo.dom)?bo.dom.outerHTML:su(bo):""},Rf=(ho,bo)=>{na(ho,di=>{ne(di)&&(di.outerHTML=bo)})},Lf=(ho,bo)=>{const di=Wn(bo);return na(ho,ri=>{const Ta=di==null?void 0:di.parentNode,zs=di==null?void 0:di.nextSibling;return Ta&&(zs?Ta.insertBefore(ri,zs):Ta.appendChild(ri)),ri})},fp=(ho,bo,di)=>na(bo,ri=>{var Ta;const zs=C(bo)?ho.cloneNode(!0):ho;return di&&X1(om(ri.childNodes),Su=>{zs.appendChild(Su)}),(Ta=ri.parentNode)===null||Ta===void 0||Ta.replaceChild(zs,ri),ri}),N0=(ho,bo)=>{if(ho.nodeName!==bo.toUpperCase()){const di=ps(bo);return X1(Wr(ho),ri=>{Qr(di,ri.nodeName,Tr(ho,ri.nodeName))}),fp(di,ho,!0),di}else return ho},F0=(ho,bo)=>{let di=ho;for(;di;){let ri=bo;for(;ri&&di!==ri;)ri=ri.parentNode;if(di===ri)break;di=di.parentNode}return!di&&ho.ownerDocument?ho.ownerDocument.documentElement:di},$0=(ho,bo,di)=>O(bo)?Hi(nn,ho,{...di,isContent:Ta=>{const zs=Ta.nodeName.toLowerCase();return!!bo[zs]}}):Hi(nn,ho,di),rg=()=>r.createRange(),jy=(ho,bo,di)=>{let ri=rg(),Ta,zs;if(ho&&bo&&ho.parentNode&&bo.parentNode){const Su=ho.parentNode;return ri.setStart(Su,ei(ho)),ri.setEnd(bo.parentNode,ei(bo)),Ta=ri.extractContents(),ri=rg(),ri.setStart(bo.parentNode,ei(bo)+1),ri.setEnd(Su,ei(ho)+1),zs=ri.extractContents(),Su.insertBefore(Rm(Hy,Ta,nn),ho),di?Su.insertBefore(di,ho):Su.insertBefore(bo,ho),Su.insertBefore(Rm(Hy,zs,nn),ho),Cl(ho),di||bo}else return},gx=(ho,bo,di,ri)=>{if(C(ho)){let Ta=ho.length;const zs=[];for(;Ta--;)zs[Ta]=gx(ho[Ta],bo,di,ri);return zs}else return g.collect&&(ho===r||ho===H)&&At.push([ho,bo,di,ri]),yn.bind(ho,bo,di,ri||Hy)},yO=(ho,bo,di)=>{if(C(ho)){let ri=ho.length;const Ta=[];for(;ri--;)Ta[ri]=yO(ho[ri],bo,di);return Ta}else{if(At.length>0&&(ho===r||ho===H)){let ri=At.length;for(;ri--;){const[Ta,zs,Su]=At[ri];ho===Ta&&(!bo||bo===zs)&&(!di||di===Su)&&yn.unbind(Ta,zs,Su)}}return yn.unbind(ho,bo,di)}},b8=(ho,bo,di)=>yn.dispatch(ho,bo,di),Qy=(ho,bo,di)=>yn.dispatch(ho,bo,di),HS=ho=>{if(ho&&V(ho)){const bo=ho.getAttribute("data-mce-contenteditable");return bo&&bo!=="inherit"?bo:ho.contentEditable!=="inherit"?ho.contentEditable:null}else return null},Hy={doc:r,settings:g,win:H,files:oe,stdMode:Le,boxModel:Ke,styleSheetLoader:ut,boundEvents:At,styles:un,schema:nn,events:yn,isBlock:rr,root:null,clone:lo,getRoot:Zo,getViewPort:li,getRect:la,getSize:Fi,getParent:wl,getParents:Ms,get:Wn,getNext:Uu,getPrev:Wf,select:vi,is:bs,add:pa,create:ps,createHTML:Es,createFragment:Bd,remove:Cl,setStyle:Co,getStyle:Vo,setStyles:yo,removeAllAttribs:dd,setAttrib:Qr,setAttribs:ol,getAttrib:Tr,getPos:Mi,parseStyle:z0,serializeStyle:$v,addStyle:Cp,loadCSS:Om,addClass:Sm,removeClass:Zg,hasClass:ca,toggleClass:Hg,show:Zs,hide:ru,isHidden:ju,uniqueId:Pf,setHTML:Ti,getOuterHTML:Gd,setOuterHTML:Rf,decode:Ci,encode:ms,insertAfter:Lf,replace:fp,rename:N0,findCommonAncestor:F0,run:na,getAttribs:Wr,isEmpty:$0,createRng:rg,nodeIndex:ei,split:jy,bind:gx,unbind:yO,fire:Qy,dispatch:b8,getContentEditable:HS,getContentEditableParent:ho=>{const bo=Zo();let di=null;for(let ri=ho;ri&&ri!==bo&&(di=HS(ri),di===null);ri=ri.parentNode);return di},isEditable:ho=>{if(P(ho)){const bo=ne(ho)?ho:ho.parentElement;return P(bo)&&V(bo)&&Ol(_r.fromDom(bo))}else return!1},destroy:()=>{if(At.length>0){let ho=At.length;for(;ho--;){const[bo,di,ri]=At[ho];yn.unbind(bo,di,ri)}}Ge(oe,(ho,bo)=>{ut.unload(bo),delete oe[bo]})},isChildOf:(ho,bo)=>ho===bo||bo.contains(ho),dumpRng:ho=>"startContainer: "+ho.startContainer.nodeName+", startOffset: "+ho.startOffset+", endContainer: "+ho.endContainer.nodeName+", endOffset: "+ho.endOffset},vT=HO(un,g,$(Hy));return Hy};cc.DOM=cc(document),cc.nodeIndex=ei;const Xu=cc.DOM,Vx=0,ZO=1,u0=2,vb=3;class Fm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const oe=Xu;let be;const Le=()=>{oe.remove(At),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Le(),B()},ut=()=>{Le(),H("Failed to load script: "+g)},At=oe.uniqueId();be=document.createElement("script"),be.id=At,be.type="text/javascript",be.src=To._addCacheSuffix(g),this.settings.referrerPolicy&&oe.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ut,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===u0}markDone(g){this.states[g]=u0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Vx),new Promise((oe,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:oe,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ut,At)=>{Et(B.scriptLoadedCallbacks,At).each(nn=>{ve(nn,un=>un[ut](At))}),delete B.scriptLoadedCallbacks[At]},oe=ut=>{const At=Te(ut,nn=>nn.status==="rejected");return At.length>0?Promise.reject($e(At,({reason:nn})=>C(nn)?nn:[nn])):Promise.resolve()},be=ut=>Promise.allSettled(ye(ut,At=>B.states[At]===u0?(H("resolve",At),Promise.resolve()):B.states[At]===vb?(H("reject",At),Promise.reject(At)):(B.states[At]=ZO,B.loadScript(At).then(()=>{B.states[At]=u0,H("resolve",At);const nn=B.queue;return nn.length>0?(B.queue=[],be(nn).then(oe)):Promise.resolve()},()=>(B.states[At]=vb,H("reject",At),Promise.reject(At)))))),Le=ut=>(B.loading=!0,be(ut).then(At=>{B.loading=!1;const nn=B.queueLoadedCallbacks.shift();return Y.from(nn).each(K),oe(At)})),Ke=Pn(g);return B.loading?new Promise((ut,At)=>{B.queueLoadedCallbacks.push(()=>{Le(Ke).then(ut,At)})}):Le(Ke)}}Fm.ScriptLoader=new Fm;const Z_=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},q_=r=>_(r)&&Ot(r,"raw"),uc=r=>C(r)&&r.length>1,uy={},Zc=Ar("en"),qO=()=>Et(uy,Zc.get()),ff={getData:()=>ht(uy,r=>({...r})),setCode:r=>{r&&Zc.set(r)},getCode:()=>Zc.get(),add:(r,g)=>{let B=uy[r];B||(uy[r]=B={});const H=ye(tt(g),oe=>oe.toLowerCase());Ge(g,(oe,be)=>{const Le=be.toLowerCase();Le!==be&&Z_(H,Le)?(Ot(g,Le)||(B[Le]=oe),B[be]=oe):B[Le]=oe})},translate:r=>{const g=qO().getOr({}),B=Le=>A(Le)?Object.prototype.toString.call(Le):H(Le)?"":""+Le,H=Le=>Le===""||Le===null||Le===void 0,oe=Le=>{const Ke=B(Le);return Ot(g,Ke)?B(g[Ke]):Et(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Le=>Le.replace(/{context:\w+}$/,"");if(H(r))return"";if(q_(r))return B(r.raw);if(uc(r)){const Le=r.slice(1),Ke=oe(r[0]).replace(/\{([0-9]+)\}/g,(ut,At)=>Ot(Le,At)?B(Le[At]):ut);return be(Ke)}return be(oe(r))},isRtl:()=>qO().bind(r=>Et(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>Ot(uy,r)},fh=()=>{const r=[],g={},B={},H=[],oe=(Wn,ur)=>{const Tr=Te(H,Wr=>Wr.name===Wn&&Wr.state===ur);ve(Tr,Wr=>Wr.resolve())},be=Wn=>Ot(g,Wn),Le=Wn=>Ot(B,Wn),Ke=Wn=>{if(B[Wn])return B[Wn].instance},ut=(Wn,ur)=>{const Tr=ff.getCode(),Wr=","+(ur||"")+",";!Tr||ur&&Wr.indexOf(","+Tr+",")===-1||Fm.ScriptLoader.add(g[Wn]+"/langs/"+Tr+".js")},At=(Wn,ur)=>{fh.languageLoad!==!1&&(be(Wn)?ut(Wn,ur):rr(Wn,"loaded").then(()=>ut(Wn,ur)))},nn=(Wn,ur)=>(r.push(ur),B[Wn]={instance:ur},oe(Wn,"added"),ur),un=Wn=>{delete g[Wn],delete B[Wn]},yn=(Wn,ur)=>v(ur)?v(Wn)?{prefix:"",resource:ur,suffix:""}:{prefix:Wn.prefix,resource:ur,suffix:Wn.suffix}:ur,Qn=(Wn,ur)=>{if(g[Wn])return Promise.resolve();let Tr=v(ur)?ur:ur.prefix+ur.resource+ur.suffix;Tr.indexOf("/")!==0&&Tr.indexOf("://")===-1&&(Tr=fh.baseURL+"/"+Tr),g[Wn]=Tr.substring(0,Tr.lastIndexOf("/"));const Wr=()=>(oe(Wn,"loaded"),Promise.resolve());return B[Wn]?Wr():Fm.ScriptLoader.add(Tr).then(Wr)},rr=(Wn,ur="added")=>ur==="added"&&Le(Wn)||ur==="loaded"&&be(Wn)?Promise.resolve():new Promise(Tr=>{H.push({name:Wn,state:ur,resolve:Tr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:At,add:nn,remove:un,createUrl:yn,load:Qn,waitFor:rr}};fh.languageLoad=!0,fh.baseURL="",fh.PluginManager=fh(),fh.ThemeManager=fh(),fh.ModelManager=fh();const fy=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},jh=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},r1=(r,g,B)=>ts(r,g,B).isSome(),G1=$("mce-annotation"),Sg=$("data-mce-annotation"),dy=$("data-mce-annotation-uid"),K1=$("data-mce-annotation-active"),o1=$("data-mce-annotation-classes"),kg=$("data-mce-annotation-attrs"),J1=r=>g=>va(g,r),ev=(r,g)=>{const B=r.selection.getRng(),H=_r.fromDom(B.startContainer),oe=_r.fromDom(r.getBody()),be=g.fold(()=>"."+G1(),ut=>`[${Sg()}="${ut}"]`),Le=gs(H,B.startOffset).getOr(H);return bu(Le,be,J1(oe)).bind(ut=>ec(ut,`${dy()}`).bind(At=>ec(ut,`${Sg()}`).map(nn=>{const un=tv(r,At);return{uid:At,name:nn,elements:un}})))},z4=r=>Wl(r)&&cs(r,G1()),W_=(r,g)=>Dc(r,"data-mce-bogus")||r1(r,'[data-mce-bogus="all"]',J1(g)),tv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${dy()}="${g}"]`);return Te(H,oe=>!W_(oe,B))},nv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${Sg()}="${g}"]`),oe={};return ve(H,be=>{if(!W_(be,B)){const Le=gu(be,dy()),Ke=Et(oe,Le).getOr([]);oe[Le]=Ke.concat([be])}}),oe},jx=(r,g)=>{const B=Ar({}),H=()=>({listeners:[],previous:Ts()}),oe=(un,yn)=>{be(un,Qn=>(yn(Qn),Qn))},be=(un,yn)=>{const Qn=B.get(),rr=Et(Qn,un).getOrThunk(H),Wn=yn(rr);Qn[un]=Wn,B.set(Qn)},Le=(un,yn,Qn)=>{oe(un,rr=>{ve(rr.listeners,Wn=>Wn(!0,un,{uid:yn,nodes:ye(Qn,ur=>ur.dom)}))})},Ke=un=>{oe(un,yn=>{ve(yn.listeners,Qn=>Qn(!1,un))})},ut=(un,yn)=>{ve(tv(r,un),Qn=>{yn?ll(Qn,K1(),"true"):tc(Qn,K1())})},At=jh(()=>{const un=Ue(g.getNames());ve(un,yn=>{be(yn,Qn=>{const rr=Qn.previous.get();return ev(r,Y.some(yn)).fold(()=>{rr.each(Wn=>{Ke(yn),Qn.previous.clear(),ut(Wn,!1)})},({uid:Wn,name:ur,elements:Tr})=>{Ia(rr,Wn)||(rr.each(Wr=>ut(Wr,!1)),Le(ur,Wn,Tr),Qn.previous.set(Wn),ut(Wn,!0))}),{previous:Qn.previous,listeners:Qn.listeners}})})},30);return r.on("remove",()=>{At.cancel()}),r.on("NodeChange",()=>{At.throttle()}),{addListener:(un,yn)=>{be(un,Qn=>({previous:Qn.previous,listeners:Qn.listeners.concat([yn])}))}}},hy=(r,g)=>{const B=Sg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),oe=be=>{var Le,Ke;be.attr(dy(),null),be.attr(Sg(),null),be.attr(K1(),null);const ut=Y.from(be.attr(kg())).map(yn=>yn.split(",")).getOr([]),At=Y.from(be.attr(o1())).map(yn=>yn.split(",")).getOr([]);ve(ut,yn=>be.attr(yn,null));const nn=(Ke=(Le=be.attr("class"))===null||Le===void 0?void 0:Le.split(" "))!==null&&Ke!==void 0?Ke:[],un=Re(nn,[G1()].concat(At));be.attr("class",un.length>0?un.join(" "):null),be.attr(o1(),null),be.attr(kg(),null)};r.serializer.addTempAttr(K1()),r.serializer.addAttributeFilter(B,be=>{for(const Le of be)H(Le).each(Ke=>{Ke.persistent===!1&&(Le.name==="span"?Le.unwrap():oe(Le))})})},Y_=()=>{const r={};return{register:(oe,be)=>{r[oe]={name:oe,settings:be}},lookup:oe=>Et(r,oe).map(be=>be.settings),getNames:()=>tt(r)}},X_=(r,g,B)=>Math.min(Math.max(r,g),B),G_=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let py=0;const yb=r=>{const B=new Date().getTime(),H=Math.floor(G_()*1e9);return py++,r+"_"+H+py+String(B)},bp=(r,g)=>{ve(g,B=>{Cu(r,B)})},i1=(r,g)=>{ve(g,B=>{Bu(r,B)})},Tg=(r,g)=>_r.fromDom(r.dom.cloneNode(g)),im=r=>Tg(r,!1),Qh=r=>Tg(r,!0),rv=(r,g)=>{const B=_r.fromTag(g),H=rh(r);return Tu(B,H),B},ov=(r,g)=>{const B=rv(r,g);Kc(r,B);const H=vc(r);return Yl(B,H),hs(r),B},Od=(r,g,B=re)=>{const H=new Xl(r,g),oe=be=>{let Le;do Le=H[be]();while(Le&&!Mt(Le)&&!B(Le));return Y.from(Le).filter(Mt)};return{current:()=>Y.from(H.current()).filter(Mt),next:()=>oe("next"),prev:()=>oe("prev"),prev2:()=>oe("prev2")}},Cg=(r,g)=>{const B=g||(Le=>r.isBlock(Le)||gn(Le)||In(Le)),H=(Le,Ke,ut,At)=>{if(Mt(Le)){const nn=At(Le,Ke,Le.data);if(nn!==-1)return Y.some({container:Le,offset:nn})}return ut().bind(nn=>H(nn.container,nn.offset,ut,At))};return{backwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.prev().map(un=>({container:un,offset:un.length})),ut).getOrNull()},forwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.next().map(un=>({container:un,offset:0})),ut).getOrNull()}}},kh=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Le)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Le}}})(Ml,"text"),f0=r=>kh.get(r),iv=r=>kh.getOption(r),K_=(r,g)=>kh.set(r,g),bb=["td","th"],Hx=["thead","tbody","tfoot"],Zx=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ad=["li","dd","dt"],pC=["ul","ol","dl"],qx=["pre","script","textarea","style"],Ag=r=>{let g;return B=>(g=g||We(r,q),Ot(g,ma(B)))},$m=r=>ma(r)==="table",Th=r=>Wl(r)&&ma(r)==="br",Np=Ag(Zx),d0=Ag(pC),av=Ag(ad),J_=Ag(Hx),my=Ag(bb),xb=Ag(qx),ew=r=>{const g=[];let B=r.dom;for(;B;)g.push(_r.fromDom(B)),B=B.lastChild;return g},a1=r=>{const g=Pl(r,"br"),B=Te(ew(r).slice(-1),Th);g.length===B.length&&ve(B,hs)},sv=()=>{const r=_r.fromTag("br");return ll(r,"data-mce-bogus","1"),r},xp=r=>{uf(r),ii(r,sv())},_b=(r,g)=>{Cc(r).each(B=>{sf(B).each(H=>{g.isBlock(ma(r))&&Th(B)&&g.isBlock(ma(H))&&hs(B)})})},Ou=pl,Wx=Uf,Sd=Os,XO=r=>r.insertContent(Ou,{preserve_zwsp:!0}),wb=ne,am=Mt,Vm=r=>(am(r)&&(r=r.parentNode),wb(r)&&r.hasAttribute("data-mce-caret")),_p=r=>am(r)&&Wx(r.data),op=r=>Vm(r)||_p(r),GO=r=>r.firstChild!==r.lastChild||!gn(r.firstChild),Ob=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou),be=r.parentNode;if(g){const Le=r.previousSibling;if(am(Le)){if(op(Le))return Le;if(Ss(Le))return Le.splitText(Le.data.length-1)}be==null||be.insertBefore(oe,r)}else{const Le=r.nextSibling;if(am(Le)){if(op(Le))return Le;if(p0(Le))return Le.splitText(1),Le}r.nextSibling?be==null||be.insertBefore(oe,r.nextSibling):be==null||be.appendChild(oe)}return oe},s1=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset())===Ou||r.isAtStart()&&_p(g.previousSibling):!1},Um=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset()-1)===Ou||r.isAtEnd()&&_p(g.nextSibling):!1},h0=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(sv().dom);const Le=g.parentNode;return B?Le==null||Le.insertBefore(be,g):g.nextSibling?Le==null||Le.insertBefore(be,g.nextSibling):Le==null||Le.appendChild(be),be},p0=r=>am(r)&&r.data[0]===Ou,Ss=r=>am(r)&&r.data[r.data.length-1]===Ou,kd=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];et(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ch=r=>r&&r.hasAttribute("data-mce-caret")?(kd(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,Sb=r=>Vm(r.startContainer),Sl=Math.round,l1=r=>r?{left:Sl(r.left),top:Sl(r.top),bottom:Sl(r.bottom),right:Sl(r.right),width:Sl(r.width),height:Sl(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Yx=(r,g)=>(r=l1(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),N4=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,Xx=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,lv=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:Xx(g.top-r.bottom,r,g)},fc=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,kb=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const oe=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Le=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Le,bottom:Ke,left:oe,width:Le-oe,height:Ke-be})}),Y.none()),dc=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),oe=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-oe)*(B-oe))},uv=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Ah=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},Fp=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=X_(g,0,B.length-1);return B[H]}else return r},tw=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return Fp(r,g)},Li=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),nw=r=>v(r)&&r.charCodeAt(0)>=768&&Li.test(r),F4=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;Bdv(r)?!1:sm(r)?!gy(r.parentNode):c1(r)||ow(r)||fv(r)||Gx(r),hv=r=>ne(r)&&r.getAttribute("unselectable")==="true",Gx=r=>!hv(r)&&JO(r),df=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Gx(B))return!1;if(rw(B))return!0}return!0},Tb=r=>Gx(r)?!Ie(Me(r.getElementsByTagName("*")),(g,B)=>g||rw(B),!1):!1,uu=r=>c1(r)||Tb(r),Cb=(r,g)=>Hh(r)&&df(r,g),Kx=ne,Jx=Hh,iw=Ee("display","block table"),e3=Ee("float","left right"),lm=KO(Kx,Jx,X(e3)),u1=X(Ee("white-space","pre pre-line pre-wrap")),cm=Mt,pv=gn,hf=cc.nodeIndex,f1=tw,jm=r=>r?r.createRange():cc.DOM.createRng(),mv=r=>v(r)&&/[\r\n\t ]/.test(r),e2=r=>!!r.setStart&&!!r.setEnd,Zd=r=>{const g=r.startContainer,B=r.startOffset;if(mv(r.toString())&&u1(g.parentNode)&&Mt(g)){const H=g.data;if(mv(H[B-1])||mv(H[B+1]))return!0}return!1},vy=r=>{const g=r.ownerDocument,B=jm(g),H=g.createTextNode(Pc),oe=r.parentNode;oe.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=l1(B.getBoundingClientRect());return oe.removeChild(H),be},m0=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,oe=r.endOffset;if(g===B&&Mt(B)&&H===0&&oe===1){const be=r.cloneRange();return be.setEndAfter(B),v0(be)}else return null},g0=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,v0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=l1(H[0]):B=l1(r.getBoundingClientRect()),!e2(r)&&pv(r)&&g0(B)?vy(r):g0(B)&&e2(r)&&(g=m0(r))!==null&&g!==void 0?g:B},y0=(r,g)=>{const B=Yx(r,g);return B.width=1,B.right=B.left+1,B},Tf=r=>{const g=[],B=Le=>{Le.height!==0&&(g.length>0&&N4(Le,g[g.length-1])||g.push(Le))},H=(Le,Ke)=>{const ut=jm(Le.ownerDocument);if(Ke0&&(ut.setStart(Le,Ke-1),ut.setEnd(Le,Ke),Zd(ut)||B(y0(v0(ut),!1))),Ke{const H=()=>(cm(r),g===0),oe=()=>cm(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const nn=jm(r.ownerDocument);return nn.setStart(r,g),nn.setEnd(r,g),nn},Le=()=>(B||(B=Tf(vo(r,g))),B),Ke=()=>Le().length>0,ut=nn=>nn&&r===nn.container()&&g===nn.offset(),At=nn=>f1(r,nn?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Le,isVisible:Ke,isAtStart:H,isAtEnd:oe,isEqual:ut,getNode:At}};vo.fromRangeStart=r=>vo(r.startContainer,r.startOffset),vo.fromRangeEnd=r=>vo(r.endContainer,r.endOffset),vo.after=r=>vo(r.parentNode,hf(r)+1),vo.before=r=>vo(r.parentNode,hf(r)),vo.isAbove=(r,g)=>zi(Ye(g.getClientRects()),Je(r.getClientRects()),lv).getOr(!1),vo.isBelow=(r,g)=>zi(Je(g.getClientRects()),Ye(r.getClientRects()),fc).getOr(!1),vo.isAtStart=r=>r?r.isAtStart():!1,vo.isAtEnd=r=>r?r.isAtEnd():!1,vo.isTextPosition=r=>r?Mt(r.container()):!1,vo.isElementPosition=r=>!vo.isTextPosition(r);const Ab=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},F=(r,g,B)=>{g.insertNode(B),Ab(r,B.previousSibling),Ab(r,B.nextSibling)},G=(r,g,B)=>{const H=Y.from(B.firstChild),oe=Y.from(B.lastChild);g.insertNode(B),H.each(be=>Ab(r,be.previousSibling)),oe.each(be=>Ab(r,be.nextSibling))},ue=(r,g,B)=>{Ln(B)?G(r,g,B):F(r,g,B)},Ae=Mt,He=et,nt=cc.nodeIndex,ct=r=>{const g=r.parentNode;return He(g)?ct(g):g},Pt=r=>r?it(r.childNodes,(g,B)=>(He(B)&&B.nodeName!=="BR"?g=g.concat(Pt(B)):g.push(B),g),[]):[],jt=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Ae(B);)g+=B.data.length;return g},hn=r=>g=>r===g,mn=r=>{let g,B;g=Pt(ct(r)),B=at(g,hn(r),r),g=g.slice(0,B+1);const H=it(g,(oe,be,Le)=>(Ae(be)&&Ae(g[Le-1])&&oe++,oe),0);return g=Vt(g,xe([r.nodeName])),B=at(g,hn(r),r),B-H},Dn=r=>(Ae(r)?"text()":r.nodeName.toLowerCase())+"["+mn(r)+"]",Xn=(r,g,B)=>{const H=[];for(let oe=g.parentNode;oe&&oe!==r&&!(B&&B(oe));oe=oe.parentNode)H.push(oe);return H},$n=(r,g)=>{let B=[],H=g.container(),oe=g.offset(),be;if(Ae(H))be=jt(H,oe);else{const Ke=H.childNodes;oe>=Ke.length?(be="after",oe=Ke.length-1):be="before",H=Ke[oe]}B.push(Dn(H));let Le=Xn(r,H);return Le=Vt(Le,X(et)),B=B.concat(bt(Le,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},mr=(r,g,B)=>{let H=Pt(r);return H=Vt(H,(oe,be)=>!Ae(oe)||!Ae(H[be-1])),H=Vt(H,xe([g])),H[B]},Or=(r,g)=>{let B=r,H=0;for(;Ae(B);){const oe=B.data.length;if(g>=H&&g<=H+oe){r=B,g=g-H;break}if(!Ae(B.nextSibling)){r=B,g=oe;break}H+=oe,B=B.nextSibling}return Ae(r)&&g>r.data.length&&(g=r.data.length),vo(r,g)},Kr=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),oe=B.length>1?B[1]:"before",be=it(H,(Le,Ke)=>{const ut=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ut?(ut[1]==="text()"&&(ut[1]="#text"),mr(Le,ut[1],parseInt(ut[2],10))):null},r);if(!be)return null;if(!Ae(be)&&be.parentNode){let Le;return oe==="after"?Le=nt(be)+1:Le=nt(be),vo(be.parentNode,Le)}return Or(be,parseInt(oe,10))},Hr=In,fo=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let oe=g.previousSibling;oe&&Mt(oe);oe=oe.previousSibling)H+=r(oe.data).length;return H},mo=(r,g,B,H,oe)=>{const be=oe?H.startContainer:H.endContainer;let Le=oe?H.startOffset:H.endOffset;const Ke=[],ut=r.getRoot();if(Mt(be))Ke.push(B?fo(g,be,Le):Le);else{let At=0;const nn=be.childNodes;Le>=nn.length&&nn.length&&(At=1,Le=Math.max(0,nn.length-1)),Ke.push(r.nodeIndex(nn[Le],B)+At)}for(let At=be;At&&At!==ut;At=At.parentNode)Ke.push(r.nodeIndex(At,B));return Ke},Io=(r,g,B,H)=>{const oe=g.dom,be=mo(oe,r,B,H,!0),Le=g.isForward(),Ke=Sb(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Le,...Ke};{const ut=mo(oe,r,B,H,!1);return{start:be,end:ut,forward:Le,...Ke}}},Qo=(r,g,B)=>{let H=0;return To.each(r.select(g),oe=>{if(oe.getAttribute("data-mce-bogus")!=="all"){if(oe===B)return!1;H++;return}}),H},Po=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const oe=B.childNodes;B=oe[Math.min(g?H:H-1,oe.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},Ii=r=>(Po(r,!0),Po(r,!1),r),bi=(r,g)=>{if(ne(r)&&(r=Fp(r,g),Hr(r)))return r;if(op(r)){Mt(r)&&Vm(r)&&(r=r.parentNode);let B=r.previousSibling;if(Hr(B)||(B=r.nextSibling,Hr(B)))return B}},Zi=r=>bi(r.startContainer,r.startOffset)||bi(r.endContainer,r.endOffset),ra=(r,g,B)=>{const H=B.getNode(),oe=B.getRng();if(H.nodeName==="IMG"||Hr(H)){const Le=H.nodeName;return{name:Le,index:Qo(B.dom,Le,H)}}const be=Zi(oe);if(be){const Le=be.tagName;return{name:Le,index:Qo(B.dom,Le,be)}}return Io(r,B,g,oe)},ka=r=>{const g=r.getRng();return{start:$n(r.dom.getRoot(),vo.fromRangeStart(g)),end:$n(r.dom.getRoot(),vo.fromRangeEnd(g)),forward:r.isForward()}},ea=r=>({rng:r.getRng(),forward:r.isForward()}),as=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Da=(r,g)=>{const B=r.dom;let H=r.getRng();const oe=B.uniqueId(),be=r.isCollapsed(),Le=r.getNode(),Ke=Le.nodeName,ut=r.isForward();if(Ke==="IMG")return{name:Ke,index:Qo(B,Ke,Le)};const At=Ii(H.cloneRange());if(!be){At.collapse(!1);const un=as(B,oe+"_end",g);ue(B,At,un)}H=Ii(H),H.collapse(!0);const nn=as(B,oe+"_start",g);return ue(B,H,nn),r.moveToBookmark({id:oe,keep:!0,forward:ut}),{id:oe,forward:ut}},ba=(r,g,B=!1)=>g===2?ra(Sd,B,r):g===3?ka(r):g?ea(r):Da(r,!1),fl=U(ra,Q,!0),As=r=>{const g=be=>be(r),B=$(r),H=()=>oe,oe={tag:!0,inner:r,fold:(be,Le)=>Le(r),isValue:q,isError:re,map:be=>Vs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return oe},hc=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,oe)=>H(r),isValue:re,isError:q,map:g,mapError:H=>Vs.error(H(r)),bind:g,exists:re,forall:q,getOr:Q,or:Q,getOrThunk:Z,orThunk:Z,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},Vs={value:As,error:hc,fromOption:(r,g)=>r.fold(()=>hc(g),As)},kl={generate:r=>{if(!C(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ve(r,(H,oe)=>{const be=tt(H);if(be.length!==1)throw new Error("one and only one name per case");const Le=be[0],Ke=H[Le];if(B[Le]!==void 0)throw new Error("duplicate key detected:"+Le);if(Le==="cata")throw new Error("cannot have a case named cata (sorry)");if(!C(Ke))throw new Error("case arguments must be an array");g.push(Le),B[Le]=(...ut)=>{const At=ut.length;if(At!==Ke.length)throw new Error("Wrong number of arguments to case "+Le+". Expected "+Ke.length+" ("+Ke+"), got "+At);return{fold:(...un)=>{if(un.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+un.length);return un[oe].apply(null,ut)},match:un=>{const yn=tt(un);if(g.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` +}`,{label:"class",detail:"definition",type:"keyword"}),Bh('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Bh('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],c$e=mOe.concat([Bh("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Bh("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Bh("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),V0e=new Ice,gOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function FL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const u$e=["FunctionDeclaration"],f$e={FunctionDeclaration:FL("function"),ClassDeclaration:FL("class"),ClassExpression:()=>!0,EnumDeclaration:FL("constant"),TypeAliasDeclaration:FL("type"),NamespaceDeclaration:FL("namespace"),VariableDefinition(t,e){t.matchContext(u$e)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function vOe(t,e){let o=V0e.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(E)E=!1;else if(s.name){let n=f$e[s.name];if(n&&n(s,d)||gOe.has(s.name))return!1}else if(s.to-s.from>8192){for(let n of vOe(t,s.node))f.push(n);return!1}}),V0e.set(e,f),f}const U0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function d$e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(yOe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&U0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)gOe.has(E.name)&&(f=f.concat(vOe(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:U0e}}const T_=O4.define({name:"javascript",parser:l$e.configure({props:[nC.add({IfStatement:lI({except:/^\s*({|else\b)/}),TryStatement:lI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:a8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:gH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":lI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),E4.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":$ce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),bOe={test:t=>/^JSX/.test(t.name),facet:Bce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xOe=T_.configure({dialect:"ts"},"typescript"),_Oe=T_.configure({dialect:"jsx",props:[zce.add(t=>t.isTop?[bOe]:void 0)]}),wOe=T_.configure({dialect:"jsx ts",props:[zce.add(t=>t.isTop?[bOe]:void 0)]},"typescript");let OOe=t=>({label:t,type:"keyword"});const SOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(OOe),h$e=SOe.concat(["declare","implements","private","protected","public"].map(OOe));function p$e(t={}){let e=t.jsx?t.typescript?wOe:_Oe:t.typescript?xOe:T_,o=t.typescript?c$e.concat(h$e):mOe.concat(SOe);return new YT(e,[T_.data.of({autocomplete:Xce(yOe,rq(o))}),T_.data.of({autocomplete:d$e}),t.jsx?v$e:[]])}function m$e(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function j0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const g$e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),v$e=Xa.inputHandler.of((t,e,o,f,E)=>{if((g$e?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!T_.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b;let{head:i}=u,S=Gf(s).resolveInner(i-1,-1),w;if(S.name=="JSXStartTag"&&(S=S.parent),!(s.doc.sliceString(i-1,i)!=f||S.name=="JSXAttributeValue"&&S.to>i)){if(f==">"&&S.name=="JSXFragmentTag")return{range:u,changes:{from:i,insert:""}};if(f=="/"&&S.name=="JSXStartCloseTag"){let y=S.parent,m=y.parent;if(m&&y.from==i-2&&((w=j0e(s.doc,m.firstChild,i))||((b=m.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:hi.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=m$e(S);if(y&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(w=j0e(s.doc,y,i)))return{range:u,changes:{from:i,insert:``}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),$L=["_blank","_self","_top","_parent"],yae=["ascii","utf-8","utf-16","latin1","latin1"],bae=["get","post","put","delete"],xae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qv=["true","false"],Rs={},y$e={a:{attrs:{href:null,ping:null,type:null,media:null,target:$L,hreflang:null}},abbr:Rs,address:Rs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Rs,aside:Rs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Rs,base:{attrs:{href:null,target:$L}},bdi:Rs,bdo:Rs,blockquote:{attrs:{cite:null}},body:Rs,br:Rs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:xae,formmethod:bae,formnovalidate:["novalidate"],formtarget:$L,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Rs,center:Rs,cite:Rs,code:Rs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Rs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Rs,div:Rs,dl:Rs,dt:Rs,em:Rs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Rs,figure:Rs,footer:Rs,form:{attrs:{action:null,name:null,"accept-charset":yae,autocomplete:["on","off"],enctype:xae,method:bae,novalidate:["novalidate"],target:$L}},h1:Rs,h2:Rs,h3:Rs,h4:Rs,h5:Rs,h6:Rs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Rs,hgroup:Rs,hr:Rs,html:{attrs:{manifest:null}},i:Rs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:xae,formmethod:bae,formnovalidate:["novalidate"],formtarget:$L,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Rs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Rs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Rs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:yae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Rs,noscript:Rs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Rs,param:{attrs:{name:null,value:null}},pre:Rs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Rs,rt:Rs,ruby:Rs,samp:Rs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:yae}},section:Rs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Rs,source:{attrs:{src:null,type:null,media:null}},span:Rs,strong:Rs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Rs,summary:Rs,sup:Rs,table:Rs,tbody:Rs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Rs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Rs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Rs,time:{attrs:{datetime:null}},title:Rs,tr:Rs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Rs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Rs},kOe={accesskey:null,class:null,contenteditable:Qv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qv,autocorrect:Qv,autocapitalize:Qv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qv,"aria-hidden":Qv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qv,"aria-multiselectable":Qv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qv,"aria-relevant":null,"aria-required":Qv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},TOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of TOe)kOe[t]=null;class eD{constructor(e,o){this.tags=Object.assign(Object.assign({},y$e),e),this.globalAttrs=Object.assign(Object.assign({},kOe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}eD.default=new eD;function xM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,E=f&&f.getChild("TagName");return E?t.sliceString(E.from,Math.min(E.to,o)):""}function _M(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function COe(t,e,o){let f=o.tags[xM(t,_M(e))];return(f==null?void 0:f.children)||o.allTags}function nfe(t,e){let o=[];for(let f=_M(e);f&&!f.type.isTop;f=_M(f.parent)){let E=xM(t,f);if(E&&f.lastChild.name=="CloseTag")break;E&&o.indexOf(E)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(E)}return o}const AOe=/^[:\-\.\w\u00b7-\uffff]*$/;function Q0e(t,e,o,f,E){let d=/\s*>/.test(t.sliceDoc(E,E+5))?"":">",s=_M(o,!0);return{from:f,to:E,options:COe(t.doc,s,e).map(n=>({label:n,type:"type"})).concat(nfe(t.doc,o).map((n,u)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function H0e(t,e,o,f){let E=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:nfe(t.doc,e).map((d,s)=>({label:d,apply:d+E,type:"type",boost:99-s})),validFor:AOe}}function b$e(t,e,o,f){let E=[],d=0;for(let s of COe(t.doc,o,e))E.push({label:"<"+s,type:"type"});for(let s of nfe(t.doc,o))E.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:E,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function x$e(t,e,o,f,E){let d=_M(o),s=d?e.tags[xM(t.doc,d)]:null,n=s&&s.attrs?Object.keys(s.attrs):[],u=s&&s.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:E,options:u.map(b=>({label:b,type:"property"})),validFor:AOe}}function _$e(t,e,o,f,E){var d;let s=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],u;if(s){let b=t.sliceDoc(s.from,s.to),i=e.globalAttrs[b];if(!i){let S=_M(o),w=S?e.tags[xM(t.doc,S)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let S=t.sliceDoc(f,E).toLowerCase(),w='"',y='"';/^['"]/.test(S)?(u=S[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(E,E+1)==S[0]?"":S[0],S=S.slice(1),f++):u=/^[^\s<>='"]*$/;for(let m of i)n.push({label:m,apply:w+m+y,type:"constant"})}}return{from:f,to:E,options:n,validFor:u}}function MOe(t,e){let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.resolve(f);for(let s=f,n;d==E&&(n=E.childBefore(s));){let u=n.lastChild;if(!u||!u.type.isError||u.fromMOe(f,E)}const S$e=T_.parser.configure({top:"SingleExpression"}),EOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:xOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:_Oe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:wOe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:S$e},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:T_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:CZ.parser}],POe=[{name:"style",parser:CZ.parser.configure({top:"Styles"})}].concat(TOe.map(t=>({name:t,parser:T_.parser}))),ROe=O4.define({name:"html",parser:dFe.configure({props:[nC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),OH=ROe.configure({wrap:uOe(EOe,POe)});function k$e(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=uOe((t.nestedLanguages||[]).concat(EOe),(t.nestedAttributes||[]).concat(POe)));let f=o?ROe.configure({wrap:o,dialect:e}):e?OH.configure({dialect:e}):OH;return new YT(f,[OH.data.of({autocomplete:O$e(t)}),t.autoCloseTags!==!1?T$e:[],p$e().support,VFe().support])}const Z0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),T$e=Xa.inputHandler.of((t,e,o,f,E)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!OH.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b,i,S;let w=s.doc.sliceString(u.from-1,u.to)==f,{head:y}=u,m=Gf(s).resolveInner(y-1,-1),a;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),w&&f==">"&&m.name=="OpenTag"){if(((i=(b=m.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=xM(s.doc,m.parent,y))&&!Z0e.has(a)){let c=y+(s.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:u,changes:{from:y,to:c,insert:h}}}}else if(w&&f=="/"&&m.name=="IncompleteCloseTag"){let c=m.parent;if(m.from==y-2&&((S=c.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(a=xM(s.doc,c,y))&&!Z0e.has(a)){let h=y+(s.doc.sliceString(y,y+1)===">"?1:0),p=`${a}>`;return{range:hi.cursor(y+p.length,-1),changes:{from:y,to:h,insert:p}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),LOe=Bce({commentTokens:{block:{open:""}}}),IOe=new Zl,DOe=mNe.configure({props:[E4.add(t=>!t.is("Block")||t.is("Document")||wle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),IOe.add(wle),nC.add({Document:()=>null}),NT.add({Document:LOe})]});function wle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function C$e(t,e){let o=t;for(;;){let f=o.nextSibling,E;if(!f||(E=wle(f.type))!=null&&E<=e)break;o=f}return o.to}const A$e=Pbe.of((t,e,o)=>{for(let f=Gf(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function rfe(t){return new tb(LOe,t,[A$e],"markdown")}const M$e=rfe(DOe),E$e=DOe.configure([TNe,ANe,CNe,MNe,{props:[E4.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),BOe=rfe(E$e);function P$e(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=HH.matchLanguageName(t,o,!0),f instanceof HH)return f.support?f.support.language.parser:DI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class JQ{constructor(e,o,f,E,d,s,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=E,this.spaceAfter=d,this.type=s,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;E--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+NOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function zOe(t,e){let o=[];for(let E=t;E&&E.name!="Document";E=E.parent)(E.name=="ListItem"||E.name=="Blockquote"||E.name=="FencedCode")&&o.push(E);let f=[];for(let E=o.length-1;E>=0;E--){let d=o[E],s,n=e.lineAt(d.from),u=d.from-n.from;if(d.name=="FencedCode")f.push(new JQ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(s=/^ *>( ?)/.exec(n.text.slice(u))))f.push(new JQ(d,u,u+s[0].length,"",s[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(n.text.slice(u)))){let b=s[3],i=s[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new JQ(d.parent,u,u+i,s[1],b,s[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(u)))){let b=s[4],i=s[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let S=s[2];s[3]&&(S+=s[3].replace(/[xX]/," ")),f.push(new JQ(d.parent,u,u+i,s[1],b,S,d))}}return f}function NOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function _ae(t,e,o,f=0){for(let E=-1,d=t;;){if(d.name=="ListItem"){let n=NOe(d,e),u=+n[2];if(E>=0){if(u!=E+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(E+2+f)})}E=u}let s=d.nextSibling;if(!s)break;d=s}}function Ole(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(tC)!=" ")return t;let f=kx(t,4,o),E="";for(let d=f;d>0;)d>=4?(E+=" ",d-=4):(E+=" ",d--);return E+t.slice(o)}const R$e=({state:t,dispatch:e})=>{let o=Gf(t),{doc:f}=t,E=null,d=t.changeByRange(s=>{if(!s.empty||!BOe.isActiveAt(t,s.from))return E={range:s};let n=s.from,u=f.lineAt(n),b=zOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-u.from;)b.pop();if(!b.length)return E={range:s};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-u.from)return E={range:s};let S=n>=i.to-i.spaceAfter.length&&!/\S/.test(u.text.slice(i.to));if(i.item&&S)if(i.node.firstChild.to>=n||u.from>0&&!/[^\s>]/.test(f.lineAt(u.from-1).text)){let c=b.length>1?b[b.length-2]:null,h,p="";c&&c.item?(h=u.from+c.from,p=c.marker(f,1)):h=u.from+(c?c.to:0);let v=[{from:h,to:n,insert:p}];return i.node.name=="OrderedList"&&_ae(i.item,f,v,-2),c&&c.node.name=="OrderedList"&&_ae(c.item,f,v),{range:hi.cursor(h+p.length),changes:v}}else{let c="";for(let h=0,p=b.length-2;h<=p;h++)c+=b[h].blank(h\s*$/.exec(c.text);if(h&&h.index==i.from){let p=t.changes([{from:c.from+h.index,to:c.to},{from:u.from+i.from,to:u.to}]);return{range:s.map(p),changes:p}}}let w=[];i.node.name=="OrderedList"&&_ae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(u.text)[0].length>=i.to)for(let c=0,h=b.length-1;c<=h;c++)m+=c==h&&!y?b[c].marker(f,1):b[c].blank(cu.from&&/\s/.test(u.text.charAt(a-u.from-1));)a--;return m=Ole(m,t),w.push({from:a,to:n,insert:t.lineBreak+m}),{range:hi.cursor(a+m.length+1),changes:w}});return E?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function q0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function L$e(t,e){let o=t.resolveInner(e,-1),f=e;q0e(o)&&(f=o.from,o=o.parent);for(let E;E=o.childBefore(f);)if(q0e(E))f=E.from;else if(E.name=="OrderedList"||E.name=="BulletList")o=E.lastChild,f=o.to;else break;return o}const I$e=({state:t,dispatch:e})=>{let o=Gf(t),f=null,E=t.changeByRange(d=>{let s=d.from,{doc:n}=t;if(d.empty&&BOe.isActiveAt(t,d.from)){let u=n.lineAt(s),b=zOe(L$e(o,s),n);if(b.length){let i=b[b.length-1],S=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(s-u.from>S&&!/\S/.test(u.text.slice(S,s-u.from)))return{range:hi.cursor(u.from+S),changes:{from:u.from+S,to:s}};if(s-u.from==S&&(!i.item||u.from<=i.item.from||!/\S/.test(u.text.slice(0,i.to)))){let w=u.from+i.from;if(i.item&&i.node.fromd.createCell(u))},{code:ao(()=>[t.$devMode&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":4,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0)]),outcome:ao(()=>[Na("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,F$e)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const $Oe=mp(N$e,[["render",$$e],["__scopeId","data-v-88d8f347"]]);var V$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},E=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},s=d(function(r,g){return r===g}),n=s,u=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,oe=0;oe{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},m=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>m(g)===r,c=r=>g=>typeof g===r,h=r=>g=>r===g,p=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),O=r=>p(r,Object),C=a("array"),x=h(null),R=c("boolean"),M=h(void 0),T=r=>r==null,P=r=>!T(r),A=c("function"),L=c("number"),D=(r,g)=>{if(C(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},Z=r=>r(),K=r=>{r()},re=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return P(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,pe=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let oe=0;oe{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},we=(r,g)=>{const B=[],H=[];for(let oe=0,be=r.length;oe{const B=[];for(let H=0,oe=r.length;H(_e(r,(H,oe)=>{B=g(B,H,oe)}),B),Ie=(r,g,B)=>(ve(r,(H,oe)=>{B=g(B,H,oe)}),B),ze=(r,g,B)=>{for(let H=0,oe=r.length;Hze(r,g,re),Qe=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ye(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Re=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,oe=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),Je=r=>Ze(r,r.length-1),Me=A(Array.from)?Array.from:r=>ee.call(r),Fe=(r,g)=>{for(let B=0;B{const B=[],H=A(g)?oe=>de(B,be=>g(be,oe)):oe=>ce(B,oe);for(let oe=0,be=r.length;oe{const B=tt(r);for(let H=0,oe=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,oe)=>{const be=g(H,oe);B[be.k]=be.v}),B},St=r=>(g,B)=>{r[B]=g},Ft=(r,g,B,H)=>{Ge(r,(oe,be)=>{(g(oe,be)?B:H)(oe,be)})},zt=(r,g)=>{const B={},H={};return Ft(r,g,St(B),St(H)),{t:B,f:H}},Yt=(r,g)=>{const B={};return Ft(r,g,St(B),k),B},ln=(r,g)=>{const B=[];return Ge(r,(H,oe)=>{B.push(g(H,oe))}),B},tn=r=>ln(r,Q),Et=(r,g)=>Ot(r,g)?Y.from(r[g]):Y.none(),Ot=(r,g)=>ot.call(r,g),cn=(r,g)=>Ot(r,g)&&r[g]!==void 0&&r[g]!==null,Cn=(r,g,B=S)=>i(B).eq(r,g),Pn=r=>{const g={};return ve(r,B=>{g[B]={}}),tt(g)},Sn=r=>r.length!==void 0,vt=Array.isArray,xt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,Sn(r)){for(let H=0,oe=r.length;H{const B=[];return st(r,(H,oe)=>{B.push(g(H,oe,r))}),B},Vt=(r,g)=>{const B=[];return st(r,(H,oe)=>{(!g||g(H,oe,r))&&B.push(H)}),B},Dt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let oe=M(B)?r[0]:B;for(let be=0;be{for(let H=0,oe=r.length;Hr[r.length-1],_t=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},qt=(r,g,B,H)=>{const oe=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!oe,Le=r.isiOS()||r.isAndroid(),Ke=Le||H("(pointer:coarse)"),ut=oe||!be&&Le&&H("(min-device-width:768px)"),At=be||Le&&!ut,nn=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,un=!At&&!ut&&!nn;return{isiPad:$(oe),isiPhone:$(be),isTablet:$(ut),isPhone:$(At),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(nn),isDesktop:$(un)}},en=(r,g)=>{for(let B=0;B{const B=en(r,g);if(!B)return{major:0,minor:0};const H=oe=>Number(g.replace(B,"$"+oe));return sn(H(1),H(2))},Zt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Nt():Jt(r,B)},Nt=()=>sn(0,0),sn=(r,g)=>({major:r,minor:g}),rn={nu:sn,detect:Zt,unknown:Nt},_n=(r,g)=>Fe(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,oe=>{var be;return H===((be=oe.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(oe=>({current:oe.name,version:rn.nu(parseInt(B.version,10),0)}))}),wn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},An=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Kn=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),fr=(r,g)=>r.substring(g),Un=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,Zn=(r,g)=>Br(r,g)?fr(r,g.length):r,tr=(r,g,B=0,H)=>{const oe=r.indexOf(g,B);return oe!==-1?M(H)?!0:oe+g.length<=H:!1},Br=(r,g)=>Un(r,g,0),$r=(r,g)=>Un(r,g,r.length-g.length),vr=r=>g=>g.replace(r,""),qn=vr(/^\s+|\s+$/g),gr=vr(/^\s+/g),sr=vr(/\s+$/g),lr=r=>r.length>0,zr=r=>!lr(r),Vr=(r,g)=>g<=0?"":new Array(g+1).join(r),eo=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Yr=r=>g=>tr(g,r),to=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>tr(r,"edge/")&&tr(r,"chrome")&&tr(r,"safari")&&tr(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Jr],search:r=>tr(r,"chrome")&&!tr(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>tr(r,"msie")||tr(r,"trident")},{name:"Opera",versionRegexes:[Jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Yr("firefox")},{name:"Safari",versionRegexes:[Jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(tr(r,"safari")||tr(r,"mobile/"))&&tr(r,"applewebkit")}],co=[{name:"Windows",search:Yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>tr(r,"iphone")||tr(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Yr("linux"),versionRegexes:[]},{name:"Solaris",search:Yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Fo={browsers:$(to),oses:$(co)},_o="Edge",$o="Chromium",Mo="IE",pi="Opera",Hn="Firefox",ar="Safari",Dr=()=>Sr({current:void 0,version:rn.unknown()}),Sr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isEdge:H(_o),isChromium:H($o),isIE:H(Mo),isOpera:H(pi),isFirefox:H(Hn),isSafari:H(ar)}},Zr={unknown:Dr,nu:Sr,edge:$(_o),chromium:$($o),ie:$(Mo),opera:$(pi),firefox:$(Hn),safari:$(ar)},go="Windows",oo="iOS",io="Android",Do="Linux",jn="macOS",Rr="Solaris",On="FreeBSD",Yn="ChromeOS",ir=()=>kr({current:void 0,version:rn.unknown()}),kr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isWindows:H(go),isiOS:H(oo),isAndroid:H(io),isMacOS:H(jn),isLinux:H(Do),isSolaris:H(Rr),isFreeBSD:H(On),isChromeOS:H(Yn)}},Er={unknown:ir,nu:kr,windows:$(go),ios:$(oo),android:$(io),linux:$(Do),macos:$(jn),solaris:$(Rr),freebsd:$(On),chromeos:$(Yn)},on={detect:(r,g,B)=>{const H=Fo.browsers(),oe=Fo.oses(),be=g.bind(ut=>_n(H,ut)).orThunk(()=>An(H,r)).fold(Zr.unknown,Zr.nu),Le=Kn(oe,r).fold(Er.unknown,Er.nu),Ke=qt(Le,be,r,B);return{browser:be,os:Le,deviceType:Ke}}},an=r=>window.matchMedia(r).matches;let Tn=_t(()=>on.detect(window.navigator.userAgent,Y.from(window.navigator.userAgentData),an));const zn=()=>Tn(),Gn=window.navigator.userAgent,Lr=zn(),Ur=Lr.browser,qr=Lr.os,Cr=Lr.deviceType,wo=Gn.indexOf("Windows Phone")!==-1,Nr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Ur.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Ur.isIE(),windowsPhone:wo,browser:{current:Ur.current,version:Ur.version,isChromium:Ur.isChromium,isEdge:Ur.isEdge,isFirefox:Ur.isFirefox,isIE:Ur.isIE,isOpera:Ur.isOpera,isSafari:Ur.isSafari},os:{current:qr.current,version:qr.version,isAndroid:qr.isAndroid,isChromeOS:qr.isChromeOS,isFreeBSD:qr.isFreeBSD,isiOS:qr.isiOS,isLinux:qr.isLinux,isMacOS:qr.isMacOS,isSolaris:qr.isSolaris,isWindows:qr.isWindows},deviceType:{isDesktop:Cr.isDesktop,isiPad:Cr.isiPad,isiPhone:Cr.isiPhone,isPhone:Cr.isPhone,isTablet:Cr.isTablet,isTouch:Cr.isTouch,isWebView:Cr.isWebView}},Eo=/^\s*|\s*$/g,zo=r=>T(r)?"":(""+r).replace(Eo,""),Qt=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Mn=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let oe=H.length;for(;oe--;)B[H[oe]]={};return B},Fn=Ot,dr=(r,...g)=>{for(let B=0;Bg.call(H,oe,be,B)===!1?!1:(xr(oe,g,B,H),!0)))},To={trim:zo,isArray:vt,is:Qt,toArray:xt,makeMap:Mn,each:st,map:bt,grep:Vt,inArray:Dt,hasOwn:Fn,extend:dr,walk:xr,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,oe=B.length;HC(r)?r:r===""?[]:bt(r.split(g||","),zo),_addCacheSuffix:r=>{const g=Nr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Ia=(r,g,B=j)=>r.exists(H=>B(H,g)),Ds=(r,g,B=j)=>zi(r,g,B).getOr(r.isNone()&&g.isNone()),fs=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),yl=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),Bs=(r,g)=>r?Y.some(g):Y.none(),yf=typeof window<"u"?window:Function("return this;")(),il=(r,g)=>{let B=g??yf;for(let H=0;H{const B=r.split(".");return il(B,g)},nh=(r,g)=>nf(r,g),gp=(r,g)=>{const B=nh(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Qs=Object.getPrototypeOf,xh=r=>gp("HTMLElement",r),Bl=r=>{const g=nf("ownerDocument.defaultView",r);return _(r)&&(xh(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Qs(r).constructor.name))},Tc=8,iu=9,au=11,zf=1,_s=3,ma=r=>r.dom.nodeName.toLowerCase(),mu=r=>r.dom.nodeType,Uc=r=>g=>mu(g)===r,Kf=r=>mu(r)===Tc||ma(r)==="#comment",Al=r=>Wl(r)&&Bl(r.dom),Wl=Uc(zf),Ml=Uc(_s),Jf=Uc(iu),Nf=Uc(au),Jl=r=>g=>Wl(g)&&ma(g)===r,Gh=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},ll=(r,g,B)=>{Gh(r.dom,g,B)},Tu=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Gh(B,oe,H)})},gu=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ec=(r,g)=>Y.from(gu(r,g)),Dc=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},tc=(r,g)=>{r.dom.removeAttribute(g)},Lp=r=>{const g=r.dom.attributes;return g==null||g.length===0},rh=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),rf=(r,g)=>{const B=gu(r,g);return B===void 0||B===""?[]:B.split(" ")},of=(r,g,B)=>{const oe=rf(r,g).concat([B]);return ll(r,g,oe.join(" ")),!0},bf=(r,g,B)=>{const H=Te(rf(r,g),oe=>oe!==B);return H.length>0?ll(r,g,H.join(" ")):tc(r,g),!1},vu=r=>r.dom.classList!==void 0,$d=r=>rf(r,"class"),bl=(r,g)=>of(r,"class",g),Zu=(r,g)=>bf(r,"class",g),Kh=(r,g)=>ce($d(r),g)?Zu(r,g):bl(r,g),Cu=(r,g)=>{vu(r)?r.dom.classList.add(g):bl(r,g)},ed=r=>{(vu(r)?r.dom.classList:$d(r)).length===0&&tc(r,"class")},Bu=(r,g)=>{vu(r)?r.dom.classList.remove(g):Zu(r,g),ed(r)},vd=(r,g)=>{const B=vu(r)?r.dom.classList.toggle(g):Kh(r,g);return ed(r),B},cs=(r,g)=>vu(r)&&r.dom.classList.contains(g),oh=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const oe="HTML does not have a single root node";throw console.error(oe,r),new Error(oe)}return xf(H.childNodes[0])},Jh=(r,g)=>{const H=(g||document).createElement(r);return xf(H)},_h=(r,g)=>{const H=(g||document).createTextNode(r);return xf(H)},xf=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},_r={fromHtml:oh,fromTag:Jh,fromText:_h,fromDom:xf,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(xf)},Ff=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let oe=g(r);do oe=oe.bind(H);while(oe.isSome());return B},yd=(r,g)=>{const B=r.dom;if(B.nodeType!==zf)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},bd=r=>r.nodeType!==zf&&r.nodeType!==iu&&r.nodeType!==au||r.childElementCount===0,wh=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?[]:ye(B.querySelectorAll(r),_r.fromDom)},zu=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?Y.none():Y.from(B.querySelector(r)).map(_r.fromDom)},va=(r,g)=>r.dom===g.dom,El=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},_f=r=>_r.fromDom(r.dom.ownerDocument),$f=r=>Jf(r)?r:_f(r),ih=r=>_r.fromDom($f(r).dom.documentElement),yu=r=>_r.fromDom($f(r).dom.defaultView),jc=r=>Y.from(r.dom.parentNode).map(_r.fromDom),Nh=r=>Y.from(r.dom.parentElement).map(_r.fromDom),af=(r,g)=>{const B=A(g)?g:re;let H=r.dom;const oe=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Le=_r.fromDom(be);if(oe.push(Le),B(Le)===!0)break;H=be}return oe},td=r=>{const g=B=>Te(B,H=>!va(r,H));return jc(r).map(vc).map(g).getOr([])},sf=r=>Y.from(r.dom.previousSibling).map(_r.fromDom),Bc=r=>Y.from(r.dom.nextSibling).map(_r.fromDom),Vd=r=>ke(Ff(r,sf)),xd=r=>Ff(r,Bc),vc=r=>ye(r.dom.childNodes,_r.fromDom),gs=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(_r.fromDom)},yc=r=>gs(r,0),Cc=r=>gs(r,r.dom.childNodes.length-1),Nu=r=>r.dom.childNodes.length,Gs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return _r.fromDom(g)},Ks=r=>Nf(r)&&P(r.dom.host),Ac=r=>_r.fromDom(r.dom.getRootNode()),_d=r=>Ks(r)?r:Gs($f(r)),Fh=r=>Ks(r)?r:_r.fromDom($f(r).dom.body),$h=r=>{const g=Ac(r);return Ks(g)?Y.some(g):Y.none()},vp=r=>_r.fromDom(r.dom.host),ah=r=>{if(P(r.target)){const g=_r.fromDom(r.target);if(Wl(g)&&Au(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Ye(B)}}return Y.from(r.target)},Au=r=>P(r.dom.shadowRoot),lf=r=>{const g=Ml(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return $h(_r.fromDom(g)).fold(()=>B.body.contains(g),z(lf,vp))};var wf=(r,g,B,H,oe)=>r(B,H)?Y.some(B):A(oe)&&oe(B)?Y.none():g(B,H,oe);const vs=(r,g,B)=>{let H=r.dom;const oe=A(B)?B:re;for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H);if(g(be))return Y.some(be);if(oe(be))break}return Y.none()},cl=(r,g,B)=>wf((oe,be)=>be(oe),vs,r,g,B),bc=(r,g)=>{const B=r.dom;return B.parentNode?nc(_r.fromDom(B.parentNode),H=>!va(r,H)&&g(H)):Y.none()},nc=(r,g)=>{const B=oe=>g(_r.fromDom(oe));return De(r.dom.childNodes,B).map(_r.fromDom)},Qc=(r,g)=>{const B=H=>{for(let oe=0;oevs(r,H=>yd(H,g),B),wi=(r,g)=>zu(g,r),bu=(r,g,B)=>wf((oe,be)=>yd(oe,be),ts,r,g,B),wd=r=>bu(r,"[contenteditable]"),Ol=(r,g=!1)=>lf(r)?r.dom.isContentEditable:wd(r).fold($(g),B=>ds(B)==="true"),ds=r=>r.dom.contentEditable,zc=r=>r.style!==void 0&&A(r.style.getPropertyValue),Ud=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);zc(r)&&r.style.setProperty(g,B)},cf=(r,g)=>{zc(r)&&r.style.removeProperty(g)},Of=(r,g,B)=>{const H=r.dom;Ud(H,g,B)},aa=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Ud(B,oe,H)})},rs=(r,g)=>{const B=r.dom,oe=window.getComputedStyle(B).getPropertyValue(g);return oe===""&&!lf(r)?Mu(B,g):oe},Mu=(r,g)=>zc(r)?r.style.getPropertyValue(g):"",Ri=(r,g)=>{const B=r.dom,H=Mu(B,g);return Y.from(H).filter(oe=>oe.length>0)},Gc=r=>{const g={},B=r.dom;if(zc(B))for(let H=0;H{const B=r.dom;cf(B,g),Ia(ec(r,"style").map(qn),"")&&tc(r,"style")},zl=r=>r.dom.offsetWidth,xc=(r,g)=>{jc(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},Kc=(r,g)=>{Bc(r).fold(()=>{jc(r).each(oe=>{ii(oe,g)})},H=>{xc(H,g)})},jd=(r,g)=>{yc(r).fold(()=>{ii(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},ii=(r,g)=>{r.dom.appendChild(g.dom)},nd=(r,g)=>{xc(r,g),ii(g,r)},al=(r,g)=>{ve(g,(B,H)=>{const oe=H===0?r:g[H-1];Kc(oe,B)})},Yl=(r,g)=>{ve(g,B=>{ii(r,B)})},uf=r=>{r.dom.textContent="",ve(vc(r),g=>{hs(g)})},hs=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},Mc=r=>{const g=vc(r);g.length>0&&al(r,g),hs(r)},Eu=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,vc(_r.fromDom(H))},xu=r=>ye(r,_r.fromDom),ws=r=>r.dom.innerHTML,Fu=(r,g)=>{const H=_f(r).dom,oe=_r.fromDom(H.createDocumentFragment()),be=Eu(g,H);Yl(oe,be),uf(r),ii(r,oe)},su=r=>{const g=_r.fromTag("div"),B=_r.fromDom(r.dom.cloneNode(!0));return ii(g,B),ws(g)},Ca=(r,g,B,H,oe,be,Le)=>({target:r,x:g,y:B,stop:H,prevent:oe,kill:be,raw:Le}),Ls=r=>{const g=_r.fromDom(ah(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),oe=I(H,B);return Ca(g,r.clientX,r.clientY,B,H,oe,r)},Ec=(r,g)=>B=>{r(B)&&g(Ls(B))},_u=(r,g,B,H,oe)=>{const be=Ec(B,H);return r.dom.addEventListener(g,be,oe),{unbind:U(Kt,r,g,be,oe)}},wt=(r,g,B,H)=>_u(r,g,B,H,!1),Kt=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},En=(r,g)=>({left:r,top:g,translate:(H,oe)=>En(r+H,g+oe)}),pr=En,wr=r=>{const g=r.getBoundingClientRect();return pr(g.left,g.top)},uo=(r,g)=>r!==void 0?r:g!==void 0?g:0,Bi=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,oe=g.documentElement;if(B===r.dom)return pr(B.offsetLeft,B.offsetTop);const be=uo(H==null?void 0:H.pageYOffset,oe.scrollTop),Le=uo(H==null?void 0:H.pageXOffset,oe.scrollLeft),Ke=uo(oe.clientTop,B.clientTop),ut=uo(oe.clientLeft,B.clientLeft);return ya(r).translate(Le-ut,be-Ke)},ya=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?pr(H.offsetLeft,H.offsetTop):lf(r)?wr(g):pr(0,0)},Ni=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return pr(B,H)},Qi=(r,g,B)=>{const oe=(B!==void 0?B.dom:document).defaultView;oe&&oe.scrollTo(r,g)},Ws=(r,g)=>{zn().browser.isSafari()&&A(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},nl=r=>{const g=r===void 0?window:r;return zn().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Fs=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),Wu=r=>{const g=r===void 0?window:r,B=g.document,H=Ni(_r.fromDom(B));return nl(g).fold(()=>{const oe=g.document.documentElement,be=oe.clientWidth,Le=oe.clientHeight;return Fs(H.left,H.top,be,Le)},oe=>Fs(Math.max(oe.pageLeft,H.left),Math.max(oe.pageTop,H.top),oe.width,oe.height))},Ki=(r,g)=>Te(vc(r),g),Aa=(r,g)=>{let B=[];return ve(vc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Aa(H,g))}),B},Pl=(r,g)=>wh(g,r),Vf=(r,g,B)=>vs(r,g,B).isSome(),sh=(r,g)=>bc(r,g).isSome(),_c=(r,g)=>Qc(r,g).isSome();class Xl{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,oe){if(g){if(!oe&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Le=g.parentNode;Le&&Le!==this.rootNode;Le=Le.parentNode)if(be=Le[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const oe=g.parentNode;if(oe&&oe!==this.rootNode)return oe}}}const pl="\uFEFF",Pc=" ",Uf=r=>r===pl,Os=r=>r.replace(/\uFEFF/g,""),Si=/^[ \t\r\n]*$/,lc=r=>Si.test(r),rd=r=>{for(const g of r)if(!Uf(g))return!1;return!0},tp=r=>" \f \v".indexOf(r)!==-1,kt=r=>r===` +`||r==="\r",It=(r,g)=>g=0?kt(r[g]):!1,Ut=(r,g=4,B=!0,H=!0)=>{const oe=Vr(" ",g),be=r.replace(/\t/g,oe);return Ie(be,(Ke,ut)=>tp(ut)||ut===Pc?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||It(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Pc}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:kt(ut),str:Ke.str+ut},{pcIsSpace:!1,str:""}).str},J=r=>g=>!!g&&g.nodeType===r,le=r=>!!r&&!Object.getPrototypeOf(r),ne=J(1),V=r=>ne(r)&&Al(_r.fromDom(r)),ie=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",ge=r=>{const g=r.toLowerCase();return B=>P(B)&&B.nodeName.toLowerCase()===g},xe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Ee=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const oe=H.ownerDocument.defaultView;if(oe)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),et=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),rt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",dt=r=>ne(r)&&r.tagName==="TABLE",gt=r=>g=>!!(V(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),Rt=xe(["textarea","input"]),Mt=J(3),Xt=J(4),dn=J(7),bn=J(8),vn=J(9),Ln=J(11),gn=ge("br"),Jn=ge("img"),pn=gt("true"),In=gt("false"),Ir=xe(["td","th"]),Pr=xe(["td","th","caption"]),Gr=xe(["video","audio","object","embed"]),ro=ge("li"),po=ge("details"),Wo=ge("summary"),si={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},Bo=(r,g,B)=>{const H=_r.fromDom(g),oe=_r.fromDom(r),be=B.getWhitespaceElements();return Vf(oe,Ke=>Ot(be,ma(Ke)),U(va,H))},Go=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Yo=(r,g)=>ne(r)&&Ot(g.getNonEmptyElements(),r.nodeName),Wi=Ne("data-mce-bookmark"),Ho=r=>Nh(_r.fromDom(r)).exists(g=>!Ol(g)),jo=(r,g,B)=>lc(r.data)&&!Bo(r,g,B),Yi=(r,g,B,H)=>Mt(r)&&!jo(r,g,B)&&(!H.includeZwsp||!rd(r.data)),ai=(r,g,B,H)=>A(H.isContent)&&H.isContent(g)||Yo(g,r)||Wi(g)||Go(g)||Yi(g,B,r,H)||In(g)||pn(g)&&Ho(g),Hi=(r,g,B)=>{const H={...si,...B};if(H.checkRootAsContent&&ai(r,g,g,H))return!1;let oe=g.firstChild,be=0;if(!oe)return!0;const Le=new Xl(oe,g);do{if(H.skipBogus&&ne(oe)){const Ke=oe.getAttribute("data-mce-bogus");if(Ke){oe=Le.next(Ke==="all");continue}}if(bn(oe)){oe=Le.next(!0);continue}if(gn(oe)){be++,oe=Le.next();continue}if(ai(r,oe,g,H))return!1;oe=Le.next()}while(oe);return be<=1},Ai=(r,g,B)=>Hi(r,g.dom,{checkRootAsContent:!0,...B}),es=(r,g,B)=>ai(r,g,g,{includeZwsp:si.includeZwsp,...B}),Ar=r=>{let g=r;return{get:()=>g,set:oe=>{g=oe}}},ns=r=>{const g=Ar(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},$s=r=>{const g=Ar(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ts=()=>{const r=ns(k);return{...r,on:B=>r.get().each(B)}},rl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},Hs=r=>rl(r)!=="html",ys=r=>Hs(r.nodeName),Yu=r=>rl(r.nodeName),mt=["svg","math"],Tt=()=>{const r=Ts(),g=()=>r.get().map(Yu).getOr("html");return{track:oe=>(ys(oe)?r.set(oe):r.get().exists(be=>!be.contains(oe))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},xn="data-mce-block",Nn=r=>Te(tt(r),g=>!/[A-Z]/.test(g)),yr=r=>ye(Nn(r),g=>{const B=CSS.escape(g);return`${B}:`+ye(mt,H=>`not(${H} ${B})`).join(":")}).join(","),so=(r,g)=>P(g.querySelector(r))?(g.setAttribute(xn,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(xn),!1),No=(r,g)=>{const B=yr(r.getTransparentElements()),H=yr(r.getBlockElements());return Te(g.querySelectorAll(B),oe=>so(H,oe))},ui=(r,g,B)=>{var H;const oe=B?"lastChild":"firstChild";for(let be=g[oe];be;be=be[oe])if(Hi(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},ga=(r,g,B)=>{const H=document.createRange(),oe=g.parentNode;if(oe){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ui(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Le=H.extractContents();ui(r,Le,!1),Hi(r,be,{checkRootAsContent:!0})||oe.insertBefore(be,g),Hi(r,B,{checkRootAsContent:!0})||oe.insertBefore(B,g),Hi(r,Le,{checkRootAsContent:!0})||oe.insertBefore(Le,g),oe.removeChild(g)}},Sa=(r,g,B)=>{const H=r.getBlockElements(),oe=_r.fromDom(g),be=Ke=>ma(Ke)in H,Le=Ke=>va(Ke,oe);ve(xu(B),Ke=>{vs(Ke,be,Le).each(ut=>{const At=Ki(Ke,nn=>be(nn)&&!r.isValidChild(ma(ut),ma(nn)));if(At.length>0){const nn=Nh(ut);ve(At,un=>{vs(un,be,Le).each(yn=>{ga(r,yn.dom,un.dom)})}),nn.each(un=>No(r,un.dom))}})})},ua=(r,g,B)=>{ve([...B,...lh(r,g)?[g]:[]],H=>ve(Pl(_r.fromDom(H),H.nodeName.toLowerCase()),oe=>{r0(r,oe.dom)&&Mc(oe)}))},Cs=(r,g)=>{const B=No(r,g);Sa(r,g,B),ua(r,g,B)},ul=(r,g)=>{if(Nl(r,g)){const B=yr(r.getBlockElements());so(B,g)}},Jc=(r,g,B)=>{const H=be=>va(be,_r.fromDom(g)),oe=af(_r.fromDom(B),H);Ze(oe,oe.length-2).filter(Wl).fold(()=>Cs(r,g),be=>Cs(r,be.dom))},Is=r=>r.hasAttribute(xn),Hc=(r,g)=>Ot(r.getTransparentElements(),g),Nl=(r,g)=>ne(g)&&Hc(r,g.nodeName),lh=(r,g)=>Nl(r,g)&&Is(g),r0=(r,g)=>Nl(r,g)&&!Is(g),ch=(r,g)=>g.type===1&&Hc(r,g.name)&&v(g.attr(xn)),gg=zn().browser,Ip=r=>De(r,Wl),X0=r=>gg.isFirefox()&&ma(r)==="table"?Ip(vc(r)).filter(g=>ma(g)==="caption").bind(g=>Ip(xd(g)).map(B=>{const H=B.dom.offsetTop,oe=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=oe?-be:0})).getOr(0):0,Vh=(r,g)=>r.children&&ce(r.children,g),Pu=(r,g,B)=>{let H=0,oe=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&rs(_r.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,oe=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:oe}}let Le=g;for(;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);){const Ke=Le;H+=Ke.offsetLeft||0,oe+=Ke.offsetTop||0,Le=Ke.offsetParent}for(Le=g.parentNode;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);)H-=Le.scrollLeft||0,oe-=Le.scrollTop||0,Le=Le.parentNode;oe+=X0(_r.fromDom(g))}return{x:H,y:oe}},Uh=(r,g={})=>{let B=0;const H={},oe=_r.fromDom(r),be=$f(oe),Le=Tr=>{g.referrerPolicy=Tr},Ke=Tr=>{g.contentCssCors=Tr},ut=Tr=>{ii(_d(oe),Tr)},At=Tr=>{const Wr=_d(oe);wi(Wr,"#"+Tr).each(hs)},nn=Tr=>Et(H,Tr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),un=Tr=>new Promise((Wr,Qr)=>{let lo;const Zo=To._addCacheSuffix(Tr),li=nn(Zo);H[Zo]=li,li.count++;const Mi=(Fi,la)=>{ve(Fi,K),li.status=la,li.passed=[],li.failed=[],lo&&(lo.onload=null,lo.onerror=null,lo=null)},Co=()=>Mi(li.passed,2),yo=()=>Mi(li.failed,3);if(Wr&&li.passed.push(Wr),Qr&&li.failed.push(Qr),li.status===1)return;if(li.status===2){Co();return}if(li.status===3){yo();return}li.status=1;const Vo=_r.fromTag("link",be.dom);Tu(Vo,{rel:"stylesheet",type:"text/css",id:li.id}),g.contentCssCors&&ll(Vo,"crossOrigin","anonymous"),g.referrerPolicy&&ll(Vo,"referrerpolicy",g.referrerPolicy),lo=Vo.dom,lo.onload=Co,lo.onerror=yo,ut(Vo),ll(Vo,"href",Zo)}),yn=(Tr,Wr)=>{const Qr=nn(Tr);H[Tr]=Qr,Qr.count++;const lo=_r.fromTag("style",be.dom);Tu(lo,{rel:"stylesheet",type:"text/css",id:Qr.id}),lo.dom.innerHTML=Wr,ut(lo)},Qn=Tr=>Promise.allSettled(ye(Tr,Qr=>un(Qr).then($(Qr)))).then(Qr=>{const lo=we(Qr,Zo=>Zo.status==="fulfilled");return lo.fail.length>0?Promise.reject(ye(lo.fail,Zo=>Zo.reason)):ye(lo.pass,Zo=>Zo.value)}),rr=Tr=>{const Wr=To._addCacheSuffix(Tr);Et(H,Wr).each(Qr=>{--Qr.count===0&&(delete H[Wr],At(Qr.id))})};return{load:un,loadRawCss:yn,loadAll:Qn,unload:rr,unloadRawCss:Tr=>{Et(H,Tr).each(Wr=>{--Wr.count===0&&(delete H[Tr],At(Wr.id))})},unloadAll:Tr=>{ve(Tr,Wr=>{rr(Wr)})},_setReferrerPolicy:Le,_setContentCssCors:Ke}},Gl=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=Ac(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Le=Uh(be,H);return r.set(be,Le),Le})}}})(),Sf=r=>r.nodeName.toLowerCase()==="span",Nc=(r,g)=>P(r)&&(es(g,r)||g.isInline(r.nodeName.toLowerCase())),o0=(r,g,B)=>{const H=new Xl(r,g).prev(!1),oe=new Xl(r,g).next(!1),be=M(H)||Nc(H,B),Le=M(oe)||Nc(oe,B);return be&&Le},i0=r=>Sf(r)&&r.getAttribute("data-mce-type")==="bookmark",a0=(r,g,B)=>Mt(r)&&r.data.length>0&&o0(r,g,B),wu=r=>ne(r)?r.childNodes.length>0:!1,Dp=r=>Ln(r)||vn(r),Rm=(r,g,B,H)=>{var oe;const be=H||g;if(ne(g)&&i0(g))return g;const Le=g.childNodes;for(let Ke=Le.length-1;Ke>=0;Ke--)Rm(r,Le[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&i0(Ke[0])&&((oe=g.parentNode)===null||oe===void 0||oe.insertBefore(Ke[0],g))}return!Dp(g)&&!es(B,g)&&!wu(g)&&!a0(g,be,B)&&r.remove(g),g},nm=To.makeMap,G0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s0=/[<>&\"\']/g,H1=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,VO={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},rm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},z_={"<":"<",">":">","&":"&",""":'"',"'":"'"},db=r=>{const g=_r.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},lu=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let oe=0;oer.replace(g?G0:vg,B=>rm[B]||B),kf=r=>(""+r).replace(s0,g=>rm[g]||g),l0=(r,g)=>r.replace(g?G0:vg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":rm[B]||"&#"+B.charCodeAt(0)+";"),yp=(r,g,B)=>{const H=B||sy;return r.replace(g?G0:vg,oe=>rm[oe]||H[oe]||oe)},Lm={encodeRaw:Oh,encodeAllRaw:kf,encodeNumeric:l0,encodeNamed:yp,getEncodeFunc:(r,g)=>{const B=lu(g)||sy,H=(Le,Ke)=>Le.replace(Ke?G0:vg,ut=>rm[ut]!==void 0?rm[ut]:B[ut]!==void 0?B[ut]:ut.length>1?"&#"+((ut.charCodeAt(0)-55296)*1024+(ut.charCodeAt(1)-56320)+65536)+";":"&#"+ut.charCodeAt(0)+";"),oe=(Le,Ke)=>yp(Le,Ke,B),be=nm(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?oe:yp:be.numeric?l0:Oh},decode:r=>r.replace(H1,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):VO[B]||String.fromCharCode(B)):z_[g]||sy[g]||db(g))},Qd=(r,g)=>(r=To.trim(r),r?r.split(g||" "):[]),Z1=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),N_=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",K0=r=>{const g=B=>C(B)?ye(B,g):N_(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},ly=r=>{const g=/^(~)?(.+)$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Le=H[2];return[{cloneName:be,name:Le}]}else return[]})},yg=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),Im=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Dm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=Im(r),oe=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:oe(g),phrasingContent:oe(B),flowContent:oe(H)})},Sh={html4:_t(()=>Dm("html4")),html5:_t(()=>Dm("html5")),"html5-strict":_t(()=>Dm("html5-strict"))},zp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:oe}=Sh[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(oe):Y.none()},J0=r=>{const g=yg(r),{phrasingContent:B,flowContent:H}=Im(r),oe={},be=(ut,At,nn)=>{oe[ut]={attributes:We(At,$({})),attributesOrder:At,children:We(nn,$({}))}},Le=(ut,At="",nn="")=>{const un=Qd(nn),yn=Qd(ut);let Qn=yn.length;const rr=[...g,...Qd(At)];for(;Qn--;)be(yn[Qn],rr.slice(),un)},Ke=(ut,At)=>{const nn=Qd(ut),un=Qd(At);let yn=nn.length;for(;yn--;){const Qn=oe[nn[yn]];for(let rr=0,Wn=un.length;rr{Le(nn,"",B)}),ve(Qd("center dir isindex noframes"),nn=>{Le(nn,"",H)})),Le("html","manifest","head body"),Le("head","","base command link meta noscript script style title"),Le("title hr noscript br"),Le("base","href target"),Le("link","href rel media hreflang type sizes hreflang"),Le("meta","name http-equiv content charset"),Le("style","media type scoped"),Le("script","src async defer type charset"),Le("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Le("dd div","",H),Le("address dt caption","",r==="html4"?B:H),Le("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Le("blockquote","cite",H),Le("ol","reversed start type","li"),Le("ul","","li"),Le("li","value",H),Le("dl","","dt dd"),Le("a","href target rel media hreflang type",r==="html4"?B:H),Le("q","cite",B),Le("ins del","cite datetime",H),Le("img","src sizes srcset alt usemap ismap width height"),Le("iframe","src name width height",H),Le("embed","src type width height"),Le("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Le("param","name value"),Le("map","name",[H,"area"].join(" ")),Le("area","alt coords shape href target rel media hreflang type"),Le("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Le("colgroup","span","col"),Le("col","span"),Le("tbody thead tfoot","","tr"),Le("tr","","td th"),Le("td","colspan rowspan headers",H),Le("th","colspan rowspan headers scope abbr",H),Le("form","accept-charset action autocomplete enctype method name novalidate target",H),Le("fieldset","disabled form name",[H,"legend"].join(" ")),Le("label","form for",B),Le("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Le("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Le("select","disabled form multiple name required size","option optgroup"),Le("optgroup","disabled label","option"),Le("option","disabled label selected value"),Le("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Le("menu","type label",[H,"li"].join(" ")),Le("noscript","",H),r!=="html4"&&(Le("wbr"),Le("ruby","",[B,"rt rp"].join(" ")),Le("figcaption","",H),Le("mark rt rp bdi","",B),Le("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Le("canvas","width height",H),Le("data","value",B),Le("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Le("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Le("picture","","img source"),Le("source","src srcset type media sizes"),Le("track","kind src srclang label default"),Le("datalist","",[B,"option"].join(" ")),Le("article section nav aside main header footer","",H),Le("hgroup","","h1 h2 h3 h4 h5 h6"),Le("figure","",[H,"figcaption"].join(" ")),Le("time","datetime",B),Le("dialog","open",H),Le("command","type label icon disabled checked radiogroup command"),Le("output","for form name",B),Le("progress","value max",B),Le("meter","value min max low high optimum",B),Le("details","open",[H,"summary"].join(" ")),Le("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ve([oe.video,oe.audio],ut=>{delete ut.children.audio,delete ut.children.video}),ve(Qd("a form meter progress dfn"),ut=>{oe[ut]&&delete oe[ut].children[ut]}),delete oe.caption.children.table,delete oe.script,oe},F_=r=>r==="-"?"remove":"add",q1=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},$_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const oe=H[1],be=oe?F_(oe):"replace",Le=H[2],Ke=$e(Qd(H[3],"|"),ut=>q1(ut).toArray());return[{operation:be,name:Le,validChildren:Ke}]}else return[]})},Dx=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:oe,attributesOrder:be}=g;return ve(Qd(r,"|"),Le=>{const Ke=B.exec(Le);if(Ke){const ut={},At=Ke[1],nn=Ke[2].replace(/[\\:]:/g,":"),un=Ke[3],yn=Ke[4];if(At==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(nn),ut.required=!0),At==="-"){delete oe[nn],be.splice(To.inArray(be,nn),1);return}if(un&&(un==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:nn,value:yn}),ut.defaultValue=yn):un==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:nn,value:yn}),ut.forcedValue=yn):un==="<"&&(ut.validValues=To.makeMap(yn,"?"))),H.test(nn)){const Qn=ut;g.attributePatterns=g.attributePatterns||[],Qn.pattern=Z1(nn),g.attributePatterns.push(Qn)}else oe[nn]||be.push(nn),oe[nn]=ut}})},UO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},W1=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Qd(g,","),H=>{const oe=B.exec(H);if(oe){const be=oe[1],Le=oe[2],Ke=oe[3],ut=oe[4],At=oe[5],nn={attributes:{},attributesOrder:[]};if(r.each(un=>UO(un,nn)),be==="#"?nn.paddEmpty=!0:be==="-"&&(nn.removeEmpty=!0),ut==="!"&&(nn.removeEmptyAttrs=!0),At&&Dx(At,nn),Ke&&(nn.outputName=Le),Le==="@")if(r.isNone())r=Y.some(nn);else return[];return[Ke?{name:Le,element:nn,aliasName:Ke}:{name:Le,element:nn}]}else return[]})},e1={},cu=To.makeMap,Za=To.each,sa=To.extend,Bm=To.explode,t1=(r,g={})=>{const B=cu(r," ",cu(r.toUpperCase()," "));return sa(B,g)},n1=r=>t1("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),Bx=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Za(r,(H,oe)=>{B[oe]=B[oe.toUpperCase()]=g==="map"?cu(H,/[, ]/):Bm(H,/[, ]/)}),B}else return},zm=(r={})=>{var g;const B={},H={};let oe=[];const be={},Le={},Ke=(ca,Zs,ru)=>{const ju=r[ca];if(ju)return cu(ju,/[, ]/,cu(ju.toUpperCase(),/[, ]/));{let Pf=e1[ca];return Pf||(Pf=t1(Zs,ru),e1[ca]=Pf),Pf}},ut=(g=r.schema)!==null&&g!==void 0?g:"html5",At=J0(ut);r.verify_html===!1&&(r.valid_elements="*[*]");const nn=Bx(r.valid_styles),un=Bx(r.invalid_styles,"map"),yn=Bx(r.valid_classes,"map"),Qn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),rr=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Wn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),ur=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Tr="td th iframe video audio object script code",Wr=Ke("non_empty_elements",Tr+" pre svg textarea summary",Wn),Qr=Ke("move_caret_before_on_enter_elements",Tr+" table",Wn),lo="h1 h2 h3 h4 h5 h6",Zo=Ke("text_block_elements",lo+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),li=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",Zo),Mi=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Co=Ke("transparent_elements","a ins del canvas map"),yo=Ke("wrap_block_elements","pre "+lo);Za("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),ca=>{Le[ca]=new RegExp("]*>","gi")});const Vo=ca=>{const Zs=Y.from(B["@"]),ru=/[*?+]/;ve(W1(Zs,ca??""),({name:ju,element:Pf,aliasName:Gd})=>{if(Gd&&(B[Gd]=Pf),ru.test(ju)){const Rf=Pf;Rf.pattern=Z1(ju),oe.push(Rf)}else B[ju]=Pf})},Fi=ca=>{oe=[],ve(tt(B),Zs=>{delete B[Zs]}),Vo(ca)},la=(ca,Zs)=>{var ru,ju;delete e1.text_block_elements,delete e1.block_elements;const Pf=Zs.extends?!Om(Zs.extends):!1,Gd=Zs.extends;if(H[ca]=Gd?H[Gd]:{},be[ca]=Gd??ca,Wr[ca.toUpperCase()]={},Wr[ca]={},Pf||(li[ca.toUpperCase()]={},li[ca]={}),Gd&&!B[ca]&&B[Gd]){const Rf=K0(B[Gd]);delete Rf.removeEmptyAttrs,delete Rf.removeEmpty,B[ca]=Rf}else B[ca]={attributesOrder:[],attributes:{}};if(C(Zs.attributes)){const Rf=fp=>{Lf.attributesOrder.push(fp),Lf.attributes[fp]={}},Lf=(ru=B[ca])!==null&&ru!==void 0?ru:{};delete Lf.attributesDefault,delete Lf.attributesForced,delete Lf.attributePatterns,delete Lf.attributesRequired,Lf.attributesOrder=[],Lf.attributes={},ve(Zs.attributes,fp=>{const N0=yg(ut);q1(fp).each(({preset:F0,name:$0})=>{F0?$0==="global"&&ve(N0,Rf):Rf($0)})}),B[ca]=Lf}if(R(Zs.padEmpty)){const Rf=(ju=B[ca])!==null&&ju!==void 0?ju:{};Rf.paddEmpty=Zs.padEmpty,B[ca]=Rf}if(C(Zs.children)){const Rf={},Lf=N0=>{Rf[N0]={}},fp=N0=>{zp(ut,N0).each(F0=>{ve(F0,Lf)})};ve(Zs.children,N0=>{q1(N0).each(({preset:F0,name:$0})=>{F0?fp($0):Lf($0)})}),H[ca]=Rf}Gd&&Ge(H,(Rf,Lf)=>{Rf[Gd]&&(H[Lf]=Rf=sa({},H[Lf]),Rf[ca]=Rf[Gd])})},bs=ca=>{ve(ly(ca??""),({name:Zs,cloneName:ru})=>{la(Zs,{extends:ru})})},Ms=ca=>{_(ca)?Ge(ca,(Zs,ru)=>la(ru,Zs)):v(ca)&&bs(ca)},wl=ca=>{ve($_(ca??""),({operation:Zs,name:ru,validChildren:ju})=>{const Pf=Zs==="replace"?{"#comment":{}}:H[ru],Gd=Lf=>{Zs==="remove"?delete Pf[Lf]:Pf[Lf]={}},Rf=Lf=>{zp(ut,Lf).each(fp=>{ve(fp,Gd)})};ve(ju,({preset:Lf,name:fp})=>{Lf?Rf(fp):Gd(fp)}),H[ru]=Pf})},Vl=ca=>{const Zs=B[ca];if(Zs)return Zs;let ru=oe.length;for(;ru--;){const ju=oe[ru];if(ju.pattern.test(ca))return ju}},Uu=()=>{r.valid_elements?(Fi(r.valid_elements),Za(At,(ca,Zs)=>{H[Zs]=ca.children})):(Za(At,(ca,Zs)=>{B[Zs]={attributes:ca.attributes,attributesOrder:ca.attributesOrder},H[Zs]=ca.children}),Za(Qd("strong/b em/i"),ca=>{const Zs=Qd(ca,"/");B[Zs[1]].outputName=Zs[0]}),Za(Mi,(ca,Zs)=>{B[Zs]&&(r.padd_empty_block_inline_children&&(B[Zs].paddInEmptyBlock=!0),B[Zs].removeEmpty=!0)}),Za(Qd("ol ul blockquote a table tbody"),ca=>{B[ca]&&(B[ca].removeEmpty=!0)}),Za(Qd("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),ca=>{B[ca]&&(B[ca].paddEmpty=!0)}),Za(Qd("span"),ca=>{B[ca].removeEmptyAttrs=!0})),delete B.svg,Ms(r.custom_elements),wl(r.valid_children),Vo(r.extended_valid_elements),wl("+ol[ul|ol],+ul[ul|ol]"),Za({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(ca,Zs)=>{B[Zs]&&(B[Zs].parentsRequired=Qd(ca))}),r.invalid_elements&&Za(Bm(r.invalid_elements),ca=>{B[ca]&&delete B[ca]}),Vl("span")||Vo("span[!data-mce-type|*]")},Wf=$(nn),ic=$(un),vi=$(yn),na=$(ur),ol=$(li),Ti=$(Zo),pa=$(Mi),ps=$(Object.seal(Wn)),Ci=$(rr),ms=$(Wr),Es=$(Qr),Bd=$(Qn),Cl=$(Co),dd=$(yo),z0=$(Object.seal(Le)),$v=(ca,Zs)=>{const ru=H[ca.toLowerCase()];return!!(ru&&ru[Zs.toLowerCase()])},Cp=(ca,Zs)=>{const ru=Vl(ca);if(ru)if(Zs){if(ru.attributes[Zs])return!0;const ju=ru.attributePatterns;if(ju){let Pf=ju.length;for(;Pf--;)if(ju[Pf].pattern.test(Zs))return!0}}else return!0;return!1},Om=ca=>Ot(ol(),ca),Hg=ca=>!Br(ca,"#")&&Cp(ca)&&!Om(ca),Sm=ca=>Ot(dd(),ca)||Hg(ca),Zg=$(be);return Uu(),{type:ut,children:H,elements:B,getValidStyles:Wf,getValidClasses:vi,getBlockElements:ol,getInvalidStyles:ic,getVoidElements:ps,getTextBlockElements:Ti,getTextInlineElements:pa,getBoolAttrs:na,getElementRule:Vl,getSelfClosingElements:Ci,getNonEmptyElements:ms,getMoveCaretBeforeOnEnterElements:Es,getWhitespaceElements:Bd,getTransparentElements:Cl,getSpecialElements:z0,isValidChild:$v,isValid:Cp,isBlock:Om,isInline:Hg,isWrapper:Sm,getCustomElements:Zg,addValidElements:Vo,setValidElements:Fi,addCustomElements:Ms,addValidChildren:wl}},Rl=r=>({value:zx(r)}),zx=r=>Zn(r,"#").toUpperCase(),pb=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},V_=r=>{const g=pb(r.red)+pb(r.green)+pb(r.blue);return Rl(g)},Lo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,Nm=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,D4=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),bg=(r,g,B,H)=>{const oe=parseInt(r,10),be=parseInt(g,10),Le=parseInt(B,10),Ke=parseFloat(H);return D4(oe,be,Le,Ke)},B4=r=>Lo.test(r)?"rgb":Nm.test(r)?"rgba":"other",c0=r=>{const g=Lo.exec(r);if(g!==null)return Y.some(bg(g[1],g[2],g[3],"1"));const B=Nm.exec(r);return B!==null?Y.some(bg(B[1],B[2],B[3],B[4])):Y.none()},mb=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,od=r=>c0(r).map(V_).map(g=>"#"+g.value).getOr(r),U_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,oe=/\s+$/,be={};let Le,Ke;const ut=pl;g&&(Le=g.getValidStyles(),Ke=g.getInvalidStyles());const At=(`\\" \\' \\; \\: ; : `+ut).split(" ");for(let un=0;un{const yn={};let Qn=!1;const rr=r.url_converter,Wn=r.url_converter_scope||nn,ur=(Co,yo,Vo)=>{const Fi=yn[Co+"-top"+yo];if(!Fi)return;const la=yn[Co+"-right"+yo];if(!la)return;const bs=yn[Co+"-bottom"+yo];if(!bs)return;const Ms=yn[Co+"-left"+yo];if(!Ms)return;const wl=[Fi,la,bs,Ms];let Vl=wl.length-1;for(;Vl--&&wl[Vl]===wl[Vl+1];);Vl>-1&&Vo||(yn[Co+yo]=Vl===-1?wl[0]:wl.join(" "),delete yn[Co+"-top"+yo],delete yn[Co+"-right"+yo],delete yn[Co+"-bottom"+yo],delete yn[Co+"-left"+yo])},Tr=Co=>{const yo=yn[Co];if(!yo)return;const Vo=yo.indexOf(",")>-1?[yo]:yo.split(" ");let Fi=Vo.length;for(;Fi--;)if(Vo[Fi]!==Vo[0])return!1;return yn[Co]=Vo[0],!0},Wr=(Co,yo,Vo,Fi)=>{Tr(yo)&&Tr(Vo)&&Tr(Fi)&&(yn[Co]=yn[yo]+" "+yn[Vo]+" "+yn[Fi],delete yn[yo],delete yn[Vo],delete yn[Fi])},Qr=Co=>(Qn=!0,be[Co]),lo=(Co,yo)=>(Qn&&(Co=Co.replace(/\uFEFF[0-9]/g,Vo=>be[Vo])),yo||(Co=Co.replace(/\\([\'\";:])/g,"$1")),Co),Zo=Co=>String.fromCharCode(parseInt(Co.slice(1),16)),li=Co=>Co.replace(/\\[0-9a-f]+/gi,Zo),Mi=(Co,yo,Vo,Fi,la,bs)=>{if(la=la||bs,la)return la=lo(la),"'"+la.replace(/\'/g,"\\'")+"'";if(yo=lo(yo||Vo||Fi||""),!r.allow_script_urls){const Ms=yo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ms)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ms))return""}return rr&&(yo=rr.call(Wn,yo,"style")),"url('"+yo.replace(/\'/g,"\\'")+"')"};if(un){un=un.replace(/[\u0000-\u001F]/g,""),un=un.replace(/\\[\"\';:\uFEFF]/g,Qr).replace(/\"[^\"]+\"|\'[^\']+\'/g,yo=>yo.replace(/[;:]/g,Qr));let Co;for(;Co=H.exec(un);){H.lastIndex=Co.index+Co[0].length;let yo=Co[1].replace(oe,"").toLowerCase(),Vo=Co[2].replace(oe,"");if(yo&&Vo){if(yo=li(yo),Vo=li(Vo),yo.indexOf(ut)!==-1||yo.indexOf('"')!==-1||!r.allow_script_urls&&(yo==="behavior"||/expression\s*\(|\/\*|\*\//.test(Vo)))continue;yo==="font-weight"&&Vo==="700"?Vo="bold":(yo==="color"||yo==="background-color")&&(Vo=Vo.toLowerCase()),B4(Vo)==="rgb"&&c0(Vo).each(Fi=>{Vo=od(mb(Fi)).toLowerCase()}),Vo=Vo.replace(B,Mi),yn[yo]=Qn?lo(Vo,!0):Vo}}ur("border","",!0),ur("border","-width"),ur("border","-color"),ur("border","-style"),ur("padding",""),ur("margin",""),Wr("border","border-width","border-style","border-color"),yn.border==="medium none"&&delete yn.border,yn["border-image"]==="none"&&delete yn["border-image"]}return yn},serialize:(un,yn)=>{let Qn="";const rr=(ur,Tr)=>{const Wr=Tr[ur];if(Wr)for(let Qr=0,lo=Wr.length;Qr0?" ":"")+Zo+": "+li+";")}},Wn=(ur,Tr)=>{if(!Ke||!Tr)return!0;let Wr=Ke["*"];return Wr&&Wr[ur]?!1:(Wr=Ke[Tr],!(Wr&&Wr[ur]))};return yn&&Le?(rr("*",Le),rr(yn,Le)):Ge(un,(ur,Tr)=>{ur&&Wn(Tr,yn)&&(Qn+=(Qn.length>0?" ":"")+Tr+": "+ur+";")}),Qn}};return nn},cy={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},wc=r=>r instanceof Event||A(r.initEvent),xg=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===re,Nx=r=>T(r.preventDefault)||wc(r),kh=(r,g)=>{const B=g??{};for(const H in r)Ot(cy,H)||(B[H]=r[H]);return P(r.composedPath)&&(B.composedPath=()=>r.composedPath()),P(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),P(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},j_=(r,g,B,H)=>{var oe;const be=kh(g,H);return be.type=r,T(be.target)&&(be.target=(oe=be.srcElement)!==null&&oe!==void 0?oe:B),Nx(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,A(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,A(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},xg(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:re,be.isPropagationStopped=be.cancelBubble===!0?q:re,be.isImmediatePropagationStopped=re)),be},gb="mce-data-",Y1=/^(?:mouse|contextmenu)|click/,uy=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},np=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},jO=r=>P(r)&&Y1.test(r.type),_g=(r,g)=>{const B=j_(r.type,r,document,g);if(jO(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,oe=H.documentElement,be=H.body,Le=B;Le.pageX=r.clientX+(oe&&oe.scrollLeft||be&&be.scrollLeft||0)-(oe&&oe.clientLeft||be&&be.clientLeft||0),Le.pageY=r.clientY+(oe&&oe.scrollTop||be&&be.scrollTop||0)-(oe&&oe.clientTop||be&&be.clientTop||0)}return B},Q_=(r,g,B)=>{const H=r.document,oe={type:"ready"};if(B.domLoaded){g(oe);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Le=()=>{np(r,"DOMContentLoaded",Le),np(r,"load",Le),B.domLoaded||(B.domLoaded=!0,g(oe)),r=null};be()?Le():uy(r,"DOMContentLoaded",Le),B.domLoaded||uy(r,"load",Le)};class wg{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,oe){const be=this;let Le;const Ke=window,ut=yn=>{be.executeHandlers(_g(yn||Ke.event),At)};if(!g||Mt(g)||bn(g))return H;let At;g[be.expando]?At=g[be.expando]:(At=be.count++,g[be.expando]=At,be.events[At]={}),oe=oe||g;const nn=B.split(" ");let un=nn.length;for(;un--;){let yn=nn[un],Qn=ut,rr=!1,Wn=!1;if(yn==="DOMContentLoaded"&&(yn="ready"),be.domLoaded&&yn==="ready"&&g.readyState==="complete"){H.call(oe,_g({type:yn}));continue}!be.hasFocusIn&&(yn==="focusin"||yn==="focusout")&&(rr=!0,Wn=yn==="focusin"?"focus":"blur",Qn=ur=>{const Tr=_g(ur||Ke.event);Tr.type=Tr.type==="focus"?"focusin":"focusout",be.executeHandlers(Tr,At)}),Le=be.events[At][yn],Le?yn==="ready"&&be.domLoaded?H(_g({type:yn})):Le.push({func:H,scope:oe}):(be.events[At][yn]=Le=[{func:H,scope:oe}],Le.fakeName=Wn,Le.capture=rr,Le.nativeHandler=Qn,yn==="ready"?Q_(g,Qn,be):uy(g,Wn||yn,Qn,rr))}return g=Le=null,H}unbind(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=g[this.expando];if(oe){let be=this.events[oe];if(B){const Le=B.split(" ");let Ke=Le.length;for(;Ke--;){const ut=Le[Ke],At=be[ut];if(At){if(H){let nn=At.length;for(;nn--;)if(At[nn].func===H){const un=At.nativeHandler,yn=At.fakeName,Qn=At.capture,rr=At.slice(0,nn).concat(At.slice(nn+1));rr.nativeHandler=un,rr.fakeName=yn,rr.capture=Qn,be[ut]=rr}}(!H||At.length===0)&&(delete be[ut],np(g,At.fakeName||ut,At.nativeHandler,At.capture))}}}else Ge(be,(Le,Ke)=>{np(g,Le.fakeName||Ke,Le.nativeHandler,Le.capture)}),be={};for(const Le in be)if(Ot(be,Le))return this;delete this.events[oe];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=_g({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(oe,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!oe.isPropagationStopped());return this}clean(g){if(!g||Mt(g)||bn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],oe=H&&H[g.type];if(oe)for(let be=0,Le=oe.length;be{T(B)||B===""?tc(r,g):ll(r,g,B)},Hd=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),ei=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,oe=r.previousSibling;oe;oe=oe.previousSibling){const be=oe.nodeType;g&&Mt(oe)&&(be===H||!oe.data.length)||(B++,H=be)}return B},Fx=(r,g)=>{const B=gu(g,"style"),H=r.serialize(r.parse(B),ma(g));uh(g,H_,H)},id=(r,g)=>L(r)?Ot(QO,g)?r+"":r+"px":r,$x=(r,g,B)=>{const H=Hd(g);T(B)||B===""?qu(r,H):Of(r,H,id(B,H))},HO=(r,g,B)=>{const H=g.keep_values,oe={set:(Le,Ke,ut)=>{const At=_r.fromDom(Le);A(g.url_converter)&&P(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ut,Le));const nn="data-mce-"+ut;uh(At,nn,Ke),uh(At,ut,Ke)},get:(Le,Ke)=>{const ut=_r.fromDom(Le);return gu(ut,"data-mce-"+Ke)||gu(ut,Ke)}},be={style:{set:(Le,Ke)=>{const ut=_r.fromDom(Le);H&&uh(ut,H_,Ke),tc(ut,"style"),v(Ke)&&aa(ut,r.parse(Ke))},get:Le=>{const Ke=_r.fromDom(Le),ut=gu(Ke,H_)||gu(Ke,"style");return r.serialize(r.parse(ut),ma(Ke))}}};return H&&(be.href=be.src=oe),be},cc=(r,g={})=>{const B={},H=window,oe={};let be=0;const Le=!0,Ke=!0,ut=Gl.forElement(_r.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),At=[],nn=g.schema?g.schema:zm({}),un=U_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),yn=g.ownEvents?new wg:wg.Event,Qn=nn.getBlockElements(),rr=ho=>v(ho)?Ot(Qn,ho):ne(ho)&&(Ot(Qn,ho.nodeName)||lh(nn,ho)),Wn=ho=>ho&&r&&v(ho)?r.getElementById(ho):ho,ur=ho=>{const bo=Wn(ho);return P(bo)?_r.fromDom(bo):null},Tr=(ho,bo,di="")=>{let ri;const Ta=ur(ho);if(P(Ta)&&Wl(Ta)){const zs=vT[bo];zs&&zs.get?ri=zs.get(Ta.dom,bo):ri=gu(Ta,bo)}return P(ri)?ri:di},Wr=ho=>{const bo=Wn(ho);return T(bo)?[]:bo.attributes},Qr=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=di===""?null:di,Su=gu(Ta,bo),V0=vT[bo];V0&&V0.set?V0.set(Ta.dom,zs,bo):uh(Ta,bo,zs),Su!==zs&&g.onSetAttrib&&g.onSetAttrib({attrElm:Ta.dom,attrName:bo,attrValue:zs})}})},lo=(ho,bo)=>ho.cloneNode(bo),Zo=()=>g.root_element||r.body,li=ho=>{const bo=Wu(ho);return{x:bo.x,y:bo.y,w:bo.width,h:bo.height}},Mi=(ho,bo)=>Pu(r.body,Wn(ho),bo),Co=(ho,bo,di)=>{na(ho,ri=>{const Ta=_r.fromDom(ri);$x(Ta,bo,di),g.update_styles&&Fx(un,Ta)})},yo=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Ge(bo,(Ta,zs)=>{$x(ri,zs,Ta)}),g.update_styles&&Fx(un,ri)})},Vo=(ho,bo,di)=>{const ri=Wn(ho);if(!(T(ri)||!V(ri)&&!ie(ri)))return di?rs(_r.fromDom(ri),Hd(bo)):(bo=bo.replace(/-(\D)/g,(Ta,zs)=>zs.toUpperCase()),bo==="float"&&(bo="cssFloat"),ri.style?ri.style[bo]:void 0)},Fi=ho=>{const bo=Wn(ho);if(!bo)return{w:0,h:0};let di=Vo(bo,"width"),ri=Vo(bo,"height");return(!di||di.indexOf("px")===-1)&&(di="0"),(!ri||ri.indexOf("px")===-1)&&(ri="0"),{w:parseInt(di,10)||bo.offsetWidth||bo.clientWidth,h:parseInt(ri,10)||bo.offsetHeight||bo.clientHeight}},la=ho=>{const bo=Wn(ho),di=Mi(bo),ri=Fi(bo);return{x:di.x,y:di.y,w:ri.w,h:ri.h}},bs=(ho,bo)=>{if(!ho)return!1;const di=C(ho)?ho:[ho];return de(di,ri=>yd(_r.fromDom(ri),bo))},Ms=(ho,bo,di,ri)=>{const Ta=[];let zs=Wn(ho);ri=ri===void 0;const Su=di||(Zo().nodeName!=="BODY"?Zo().parentNode:null);if(v(bo))if(bo==="*")bo=ne;else{const V0=bo;bo=ZS=>bs(ZS,V0)}for(;zs&&!(zs===Su||T(zs.nodeType)||vn(zs)||Ln(zs));){if(!bo||bo(zs))if(ri)Ta.push(zs);else return[zs];zs=zs.parentNode}return ri?Ta:null},wl=(ho,bo,di)=>{const ri=Ms(ho,bo,di,!1);return ri&&ri.length>0?ri[0]:null},Vl=(ho,bo,di)=>{let ri=bo;if(ho){v(bo)&&(ri=Ta=>bs(Ta,bo));for(let Ta=ho[di];Ta;Ta=Ta[di])if(A(ri)&&ri(Ta))return Ta}return null},Uu=(ho,bo)=>Vl(ho,bo,"nextSibling"),Wf=(ho,bo)=>Vl(ho,bo,"previousSibling"),ic=ho=>A(ho.querySelectorAll),vi=(ho,bo)=>{var di,ri;const Ta=(ri=(di=Wn(bo))!==null&&di!==void 0?di:g.root_element)!==null&&ri!==void 0?ri:r;return ic(Ta)?Me(Ta.querySelectorAll(ho)):[]},na=function(ho,bo,di){const ri=di??this;if(C(ho)){const Ta=[];return X1(ho,(zs,Su)=>{const V0=Wn(zs);V0&&Ta.push(bo.call(ri,V0,Su))}),Ta}else{const Ta=Wn(ho);return Ta?bo.call(ri,Ta):!1}},ol=(ho,bo)=>{na(ho,di=>{Ge(bo,(ri,Ta)=>{Qr(di,Ta,ri)})})},Ti=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Fu(ri,bo)})},pa=(ho,bo,di,ri,Ta)=>na(ho,zs=>{const Su=v(bo)?r.createElement(bo):bo;return P(di)&&ol(Su,di),ri&&(!v(ri)&&ri.nodeType?Su.appendChild(ri):v(ri)&&Ti(Su,ri)),Ta?Su:zs.appendChild(Su)}),ps=(ho,bo,di)=>pa(r.createElement(ho),ho,bo,di,!0),Ci=Lm.decode,ms=Lm.encodeAllRaw,Es=(ho,bo,di="")=>{let ri="<"+ho;for(const Ta in bo)cn(bo,Ta)&&(ri+=" "+Ta+'="'+ms(bo[Ta])+'"');return zr(di)&&Ot(nn.getVoidElements(),ho)?ri+" />":ri+">"+di+""},Bd=ho=>{const bo=r.createElement("div"),di=r.createDocumentFragment();di.appendChild(bo),ho&&(bo.innerHTML=ho);let ri;for(;ri=bo.firstChild;)di.appendChild(ri);return di.removeChild(bo),di},Cl=(ho,bo)=>na(ho,di=>{const ri=_r.fromDom(di);return bo&&ve(vc(ri),Ta=>{Ml(Ta)&&Ta.dom.length===0?hs(Ta):xc(ri,Ta)}),hs(ri),ri.dom}),dd=ho=>na(ho,bo=>{const di=bo.attributes;for(let ri=di.length-1;ri>=0;ri--)bo.removeAttributeNode(di.item(ri))}),z0=ho=>un.parse(ho),$v=(ho,bo)=>un.serialize(ho,bo),Cp=ho=>{if(Zy!==cc.DOM&&r===document){if(B[ho])return;B[ho]=!0}let bo=r.getElementById("mceDefaultStyles");if(!bo){bo=r.createElement("style"),bo.id="mceDefaultStyles",bo.type="text/css";const di=r.head;di.firstChild?di.insertBefore(bo,di.firstChild):di.appendChild(bo)}bo.styleSheet?bo.styleSheet.cssText+=ho:bo.appendChild(r.createTextNode(ho))},Om=ho=>{ho||(ho=""),ve(ho.split(","),bo=>{oe[bo]=!0,ut.load(bo).catch(k)})},Hg=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=bo.split(" ");ve(zs,Su=>{P(di)?(di?Cu:Bu)(Ta,Su):vd(Ta,Su)})}})},Sm=(ho,bo)=>{Hg(ho,bo,!0)},Zg=(ho,bo)=>{Hg(ho,bo,!1)},ca=(ho,bo)=>{const di=ur(ho),ri=bo.split(" ");return P(di)&&Oe(ri,Ta=>cs(di,Ta))},Zs=ho=>{na(ho,bo=>qu(_r.fromDom(bo),"display"))},ru=ho=>{na(ho,bo=>Of(_r.fromDom(bo),"display","none"))},ju=ho=>{const bo=ur(ho);return P(bo)&&Ia(Ri(bo,"display"),"none")},Pf=ho=>(ho||"mce_")+be++,Gd=ho=>{const bo=ur(ho);return P(bo)?ne(bo.dom)?bo.dom.outerHTML:su(bo):""},Rf=(ho,bo)=>{na(ho,di=>{ne(di)&&(di.outerHTML=bo)})},Lf=(ho,bo)=>{const di=Wn(bo);return na(ho,ri=>{const Ta=di==null?void 0:di.parentNode,zs=di==null?void 0:di.nextSibling;return Ta&&(zs?Ta.insertBefore(ri,zs):Ta.appendChild(ri)),ri})},fp=(ho,bo,di)=>na(bo,ri=>{var Ta;const zs=C(bo)?ho.cloneNode(!0):ho;return di&&X1(om(ri.childNodes),Su=>{zs.appendChild(Su)}),(Ta=ri.parentNode)===null||Ta===void 0||Ta.replaceChild(zs,ri),ri}),N0=(ho,bo)=>{if(ho.nodeName!==bo.toUpperCase()){const di=ps(bo);return X1(Wr(ho),ri=>{Qr(di,ri.nodeName,Tr(ho,ri.nodeName))}),fp(di,ho,!0),di}else return ho},F0=(ho,bo)=>{let di=ho;for(;di;){let ri=bo;for(;ri&&di!==ri;)ri=ri.parentNode;if(di===ri)break;di=di.parentNode}return!di&&ho.ownerDocument?ho.ownerDocument.documentElement:di},$0=(ho,bo,di)=>O(bo)?Hi(nn,ho,{...di,isContent:Ta=>{const zs=Ta.nodeName.toLowerCase();return!!bo[zs]}}):Hi(nn,ho,di),rg=()=>r.createRange(),Qy=(ho,bo,di)=>{let ri=rg(),Ta,zs;if(ho&&bo&&ho.parentNode&&bo.parentNode){const Su=ho.parentNode;return ri.setStart(Su,ei(ho)),ri.setEnd(bo.parentNode,ei(bo)),Ta=ri.extractContents(),ri=rg(),ri.setStart(bo.parentNode,ei(bo)+1),ri.setEnd(Su,ei(ho)+1),zs=ri.extractContents(),Su.insertBefore(Rm(Zy,Ta,nn),ho),di?Su.insertBefore(di,ho):Su.insertBefore(bo,ho),Su.insertBefore(Rm(Zy,zs,nn),ho),Cl(ho),di||bo}else return},gx=(ho,bo,di,ri)=>{if(C(ho)){let Ta=ho.length;const zs=[];for(;Ta--;)zs[Ta]=gx(ho[Ta],bo,di,ri);return zs}else return g.collect&&(ho===r||ho===H)&&At.push([ho,bo,di,ri]),yn.bind(ho,bo,di,ri||Zy)},yO=(ho,bo,di)=>{if(C(ho)){let ri=ho.length;const Ta=[];for(;ri--;)Ta[ri]=yO(ho[ri],bo,di);return Ta}else{if(At.length>0&&(ho===r||ho===H)){let ri=At.length;for(;ri--;){const[Ta,zs,Su]=At[ri];ho===Ta&&(!bo||bo===zs)&&(!di||di===Su)&&yn.unbind(Ta,zs,Su)}}return yn.unbind(ho,bo,di)}},x8=(ho,bo,di)=>yn.dispatch(ho,bo,di),Hy=(ho,bo,di)=>yn.dispatch(ho,bo,di),HS=ho=>{if(ho&&V(ho)){const bo=ho.getAttribute("data-mce-contenteditable");return bo&&bo!=="inherit"?bo:ho.contentEditable!=="inherit"?ho.contentEditable:null}else return null},Zy={doc:r,settings:g,win:H,files:oe,stdMode:Le,boxModel:Ke,styleSheetLoader:ut,boundEvents:At,styles:un,schema:nn,events:yn,isBlock:rr,root:null,clone:lo,getRoot:Zo,getViewPort:li,getRect:la,getSize:Fi,getParent:wl,getParents:Ms,get:Wn,getNext:Uu,getPrev:Wf,select:vi,is:bs,add:pa,create:ps,createHTML:Es,createFragment:Bd,remove:Cl,setStyle:Co,getStyle:Vo,setStyles:yo,removeAllAttribs:dd,setAttrib:Qr,setAttribs:ol,getAttrib:Tr,getPos:Mi,parseStyle:z0,serializeStyle:$v,addStyle:Cp,loadCSS:Om,addClass:Sm,removeClass:Zg,hasClass:ca,toggleClass:Hg,show:Zs,hide:ru,isHidden:ju,uniqueId:Pf,setHTML:Ti,getOuterHTML:Gd,setOuterHTML:Rf,decode:Ci,encode:ms,insertAfter:Lf,replace:fp,rename:N0,findCommonAncestor:F0,run:na,getAttribs:Wr,isEmpty:$0,createRng:rg,nodeIndex:ei,split:Qy,bind:gx,unbind:yO,fire:Hy,dispatch:x8,getContentEditable:HS,getContentEditableParent:ho=>{const bo=Zo();let di=null;for(let ri=ho;ri&&ri!==bo&&(di=HS(ri),di===null);ri=ri.parentNode);return di},isEditable:ho=>{if(P(ho)){const bo=ne(ho)?ho:ho.parentElement;return P(bo)&&V(bo)&&Ol(_r.fromDom(bo))}else return!1},destroy:()=>{if(At.length>0){let ho=At.length;for(;ho--;){const[bo,di,ri]=At[ho];yn.unbind(bo,di,ri)}}Ge(oe,(ho,bo)=>{ut.unload(bo),delete oe[bo]})},isChildOf:(ho,bo)=>ho===bo||bo.contains(ho),dumpRng:ho=>"startContainer: "+ho.startContainer.nodeName+", startOffset: "+ho.startOffset+", endContainer: "+ho.endContainer.nodeName+", endOffset: "+ho.endOffset},vT=HO(un,g,$(Zy));return Zy};cc.DOM=cc(document),cc.nodeIndex=ei;const Xu=cc.DOM,Vx=0,ZO=1,u0=2,vb=3;class Fm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const oe=Xu;let be;const Le=()=>{oe.remove(At),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Le(),B()},ut=()=>{Le(),H("Failed to load script: "+g)},At=oe.uniqueId();be=document.createElement("script"),be.id=At,be.type="text/javascript",be.src=To._addCacheSuffix(g),this.settings.referrerPolicy&&oe.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ut,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===u0}markDone(g){this.states[g]=u0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Vx),new Promise((oe,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:oe,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ut,At)=>{Et(B.scriptLoadedCallbacks,At).each(nn=>{ve(nn,un=>un[ut](At))}),delete B.scriptLoadedCallbacks[At]},oe=ut=>{const At=Te(ut,nn=>nn.status==="rejected");return At.length>0?Promise.reject($e(At,({reason:nn})=>C(nn)?nn:[nn])):Promise.resolve()},be=ut=>Promise.allSettled(ye(ut,At=>B.states[At]===u0?(H("resolve",At),Promise.resolve()):B.states[At]===vb?(H("reject",At),Promise.reject(At)):(B.states[At]=ZO,B.loadScript(At).then(()=>{B.states[At]=u0,H("resolve",At);const nn=B.queue;return nn.length>0?(B.queue=[],be(nn).then(oe)):Promise.resolve()},()=>(B.states[At]=vb,H("reject",At),Promise.reject(At)))))),Le=ut=>(B.loading=!0,be(ut).then(At=>{B.loading=!1;const nn=B.queueLoadedCallbacks.shift();return Y.from(nn).each(K),oe(At)})),Ke=Pn(g);return B.loading?new Promise((ut,At)=>{B.queueLoadedCallbacks.push(()=>{Le(Ke).then(ut,At)})}):Le(Ke)}}Fm.ScriptLoader=new Fm;const Z_=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},q_=r=>_(r)&&Ot(r,"raw"),uc=r=>C(r)&&r.length>1,fy={},Zc=Ar("en"),qO=()=>Et(fy,Zc.get()),ff={getData:()=>ht(fy,r=>({...r})),setCode:r=>{r&&Zc.set(r)},getCode:()=>Zc.get(),add:(r,g)=>{let B=fy[r];B||(fy[r]=B={});const H=ye(tt(g),oe=>oe.toLowerCase());Ge(g,(oe,be)=>{const Le=be.toLowerCase();Le!==be&&Z_(H,Le)?(Ot(g,Le)||(B[Le]=oe),B[be]=oe):B[Le]=oe})},translate:r=>{const g=qO().getOr({}),B=Le=>A(Le)?Object.prototype.toString.call(Le):H(Le)?"":""+Le,H=Le=>Le===""||Le===null||Le===void 0,oe=Le=>{const Ke=B(Le);return Ot(g,Ke)?B(g[Ke]):Et(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Le=>Le.replace(/{context:\w+}$/,"");if(H(r))return"";if(q_(r))return B(r.raw);if(uc(r)){const Le=r.slice(1),Ke=oe(r[0]).replace(/\{([0-9]+)\}/g,(ut,At)=>Ot(Le,At)?B(Le[At]):ut);return be(Ke)}return be(oe(r))},isRtl:()=>qO().bind(r=>Et(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>Ot(fy,r)},fh=()=>{const r=[],g={},B={},H=[],oe=(Wn,ur)=>{const Tr=Te(H,Wr=>Wr.name===Wn&&Wr.state===ur);ve(Tr,Wr=>Wr.resolve())},be=Wn=>Ot(g,Wn),Le=Wn=>Ot(B,Wn),Ke=Wn=>{if(B[Wn])return B[Wn].instance},ut=(Wn,ur)=>{const Tr=ff.getCode(),Wr=","+(ur||"")+",";!Tr||ur&&Wr.indexOf(","+Tr+",")===-1||Fm.ScriptLoader.add(g[Wn]+"/langs/"+Tr+".js")},At=(Wn,ur)=>{fh.languageLoad!==!1&&(be(Wn)?ut(Wn,ur):rr(Wn,"loaded").then(()=>ut(Wn,ur)))},nn=(Wn,ur)=>(r.push(ur),B[Wn]={instance:ur},oe(Wn,"added"),ur),un=Wn=>{delete g[Wn],delete B[Wn]},yn=(Wn,ur)=>v(ur)?v(Wn)?{prefix:"",resource:ur,suffix:""}:{prefix:Wn.prefix,resource:ur,suffix:Wn.suffix}:ur,Qn=(Wn,ur)=>{if(g[Wn])return Promise.resolve();let Tr=v(ur)?ur:ur.prefix+ur.resource+ur.suffix;Tr.indexOf("/")!==0&&Tr.indexOf("://")===-1&&(Tr=fh.baseURL+"/"+Tr),g[Wn]=Tr.substring(0,Tr.lastIndexOf("/"));const Wr=()=>(oe(Wn,"loaded"),Promise.resolve());return B[Wn]?Wr():Fm.ScriptLoader.add(Tr).then(Wr)},rr=(Wn,ur="added")=>ur==="added"&&Le(Wn)||ur==="loaded"&&be(Wn)?Promise.resolve():new Promise(Tr=>{H.push({name:Wn,state:ur,resolve:Tr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:At,add:nn,remove:un,createUrl:yn,load:Qn,waitFor:rr}};fh.languageLoad=!0,fh.baseURL="",fh.PluginManager=fh(),fh.ThemeManager=fh(),fh.ModelManager=fh();const dy=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},jh=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},r1=(r,g,B)=>ts(r,g,B).isSome(),G1=$("mce-annotation"),Sg=$("data-mce-annotation"),hy=$("data-mce-annotation-uid"),K1=$("data-mce-annotation-active"),o1=$("data-mce-annotation-classes"),kg=$("data-mce-annotation-attrs"),J1=r=>g=>va(g,r),ev=(r,g)=>{const B=r.selection.getRng(),H=_r.fromDom(B.startContainer),oe=_r.fromDom(r.getBody()),be=g.fold(()=>"."+G1(),ut=>`[${Sg()}="${ut}"]`),Le=gs(H,B.startOffset).getOr(H);return bu(Le,be,J1(oe)).bind(ut=>ec(ut,`${hy()}`).bind(At=>ec(ut,`${Sg()}`).map(nn=>{const un=tv(r,At);return{uid:At,name:nn,elements:un}})))},z4=r=>Wl(r)&&cs(r,G1()),W_=(r,g)=>Dc(r,"data-mce-bogus")||r1(r,'[data-mce-bogus="all"]',J1(g)),tv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${hy()}="${g}"]`);return Te(H,oe=>!W_(oe,B))},nv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${Sg()}="${g}"]`),oe={};return ve(H,be=>{if(!W_(be,B)){const Le=gu(be,hy()),Ke=Et(oe,Le).getOr([]);oe[Le]=Ke.concat([be])}}),oe},jx=(r,g)=>{const B=Ar({}),H=()=>({listeners:[],previous:Ts()}),oe=(un,yn)=>{be(un,Qn=>(yn(Qn),Qn))},be=(un,yn)=>{const Qn=B.get(),rr=Et(Qn,un).getOrThunk(H),Wn=yn(rr);Qn[un]=Wn,B.set(Qn)},Le=(un,yn,Qn)=>{oe(un,rr=>{ve(rr.listeners,Wn=>Wn(!0,un,{uid:yn,nodes:ye(Qn,ur=>ur.dom)}))})},Ke=un=>{oe(un,yn=>{ve(yn.listeners,Qn=>Qn(!1,un))})},ut=(un,yn)=>{ve(tv(r,un),Qn=>{yn?ll(Qn,K1(),"true"):tc(Qn,K1())})},At=jh(()=>{const un=Ue(g.getNames());ve(un,yn=>{be(yn,Qn=>{const rr=Qn.previous.get();return ev(r,Y.some(yn)).fold(()=>{rr.each(Wn=>{Ke(yn),Qn.previous.clear(),ut(Wn,!1)})},({uid:Wn,name:ur,elements:Tr})=>{Ia(rr,Wn)||(rr.each(Wr=>ut(Wr,!1)),Le(ur,Wn,Tr),Qn.previous.set(Wn),ut(Wn,!0))}),{previous:Qn.previous,listeners:Qn.listeners}})})},30);return r.on("remove",()=>{At.cancel()}),r.on("NodeChange",()=>{At.throttle()}),{addListener:(un,yn)=>{be(un,Qn=>({previous:Qn.previous,listeners:Qn.listeners.concat([yn])}))}}},py=(r,g)=>{const B=Sg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),oe=be=>{var Le,Ke;be.attr(hy(),null),be.attr(Sg(),null),be.attr(K1(),null);const ut=Y.from(be.attr(kg())).map(yn=>yn.split(",")).getOr([]),At=Y.from(be.attr(o1())).map(yn=>yn.split(",")).getOr([]);ve(ut,yn=>be.attr(yn,null));const nn=(Ke=(Le=be.attr("class"))===null||Le===void 0?void 0:Le.split(" "))!==null&&Ke!==void 0?Ke:[],un=Re(nn,[G1()].concat(At));be.attr("class",un.length>0?un.join(" "):null),be.attr(o1(),null),be.attr(kg(),null)};r.serializer.addTempAttr(K1()),r.serializer.addAttributeFilter(B,be=>{for(const Le of be)H(Le).each(Ke=>{Ke.persistent===!1&&(Le.name==="span"?Le.unwrap():oe(Le))})})},Y_=()=>{const r={};return{register:(oe,be)=>{r[oe]={name:oe,settings:be}},lookup:oe=>Et(r,oe).map(be=>be.settings),getNames:()=>tt(r)}},X_=(r,g,B)=>Math.min(Math.max(r,g),B),G_=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let my=0;const yb=r=>{const B=new Date().getTime(),H=Math.floor(G_()*1e9);return my++,r+"_"+H+my+String(B)},bp=(r,g)=>{ve(g,B=>{Cu(r,B)})},i1=(r,g)=>{ve(g,B=>{Bu(r,B)})},Tg=(r,g)=>_r.fromDom(r.dom.cloneNode(g)),im=r=>Tg(r,!1),Qh=r=>Tg(r,!0),rv=(r,g)=>{const B=_r.fromTag(g),H=rh(r);return Tu(B,H),B},ov=(r,g)=>{const B=rv(r,g);Kc(r,B);const H=vc(r);return Yl(B,H),hs(r),B},Od=(r,g,B=re)=>{const H=new Xl(r,g),oe=be=>{let Le;do Le=H[be]();while(Le&&!Mt(Le)&&!B(Le));return Y.from(Le).filter(Mt)};return{current:()=>Y.from(H.current()).filter(Mt),next:()=>oe("next"),prev:()=>oe("prev"),prev2:()=>oe("prev2")}},Cg=(r,g)=>{const B=g||(Le=>r.isBlock(Le)||gn(Le)||In(Le)),H=(Le,Ke,ut,At)=>{if(Mt(Le)){const nn=At(Le,Ke,Le.data);if(nn!==-1)return Y.some({container:Le,offset:nn})}return ut().bind(nn=>H(nn.container,nn.offset,ut,At))};return{backwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.prev().map(un=>({container:un,offset:un.length})),ut).getOrNull()},forwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.next().map(un=>({container:un,offset:0})),ut).getOrNull()}}},Th=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Le)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Le}}})(Ml,"text"),f0=r=>Th.get(r),iv=r=>Th.getOption(r),K_=(r,g)=>Th.set(r,g),bb=["td","th"],Hx=["thead","tbody","tfoot"],Zx=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ad=["li","dd","dt"],mC=["ul","ol","dl"],qx=["pre","script","textarea","style"],Ag=r=>{let g;return B=>(g=g||We(r,q),Ot(g,ma(B)))},$m=r=>ma(r)==="table",Ch=r=>Wl(r)&&ma(r)==="br",Np=Ag(Zx),d0=Ag(mC),av=Ag(ad),J_=Ag(Hx),gy=Ag(bb),xb=Ag(qx),ew=r=>{const g=[];let B=r.dom;for(;B;)g.push(_r.fromDom(B)),B=B.lastChild;return g},a1=r=>{const g=Pl(r,"br"),B=Te(ew(r).slice(-1),Ch);g.length===B.length&&ve(B,hs)},sv=()=>{const r=_r.fromTag("br");return ll(r,"data-mce-bogus","1"),r},xp=r=>{uf(r),ii(r,sv())},_b=(r,g)=>{Cc(r).each(B=>{sf(B).each(H=>{g.isBlock(ma(r))&&Ch(B)&&g.isBlock(ma(H))&&hs(B)})})},Ou=pl,Wx=Uf,Sd=Os,XO=r=>r.insertContent(Ou,{preserve_zwsp:!0}),wb=ne,am=Mt,Vm=r=>(am(r)&&(r=r.parentNode),wb(r)&&r.hasAttribute("data-mce-caret")),_p=r=>am(r)&&Wx(r.data),op=r=>Vm(r)||_p(r),GO=r=>r.firstChild!==r.lastChild||!gn(r.firstChild),Ob=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou),be=r.parentNode;if(g){const Le=r.previousSibling;if(am(Le)){if(op(Le))return Le;if(Ss(Le))return Le.splitText(Le.data.length-1)}be==null||be.insertBefore(oe,r)}else{const Le=r.nextSibling;if(am(Le)){if(op(Le))return Le;if(p0(Le))return Le.splitText(1),Le}r.nextSibling?be==null||be.insertBefore(oe,r.nextSibling):be==null||be.appendChild(oe)}return oe},s1=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset())===Ou||r.isAtStart()&&_p(g.previousSibling):!1},Um=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset()-1)===Ou||r.isAtEnd()&&_p(g.nextSibling):!1},h0=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(sv().dom);const Le=g.parentNode;return B?Le==null||Le.insertBefore(be,g):g.nextSibling?Le==null||Le.insertBefore(be,g.nextSibling):Le==null||Le.appendChild(be),be},p0=r=>am(r)&&r.data[0]===Ou,Ss=r=>am(r)&&r.data[r.data.length-1]===Ou,kd=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];et(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ah=r=>r&&r.hasAttribute("data-mce-caret")?(kd(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,Sb=r=>Vm(r.startContainer),Sl=Math.round,l1=r=>r?{left:Sl(r.left),top:Sl(r.top),bottom:Sl(r.bottom),right:Sl(r.right),width:Sl(r.width),height:Sl(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Yx=(r,g)=>(r=l1(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),N4=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,Xx=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,lv=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:Xx(g.top-r.bottom,r,g)},fc=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,kb=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const oe=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Le=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Le,bottom:Ke,left:oe,width:Le-oe,height:Ke-be})}),Y.none()),dc=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),oe=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-oe)*(B-oe))},uv=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Mh=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},Fp=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=X_(g,0,B.length-1);return B[H]}else return r},tw=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return Fp(r,g)},Li=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),nw=r=>v(r)&&r.charCodeAt(0)>=768&&Li.test(r),F4=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;Bdv(r)?!1:sm(r)?!vy(r.parentNode):c1(r)||ow(r)||fv(r)||Gx(r),hv=r=>ne(r)&&r.getAttribute("unselectable")==="true",Gx=r=>!hv(r)&&JO(r),df=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Gx(B))return!1;if(rw(B))return!0}return!0},Tb=r=>Gx(r)?!Ie(Me(r.getElementsByTagName("*")),(g,B)=>g||rw(B),!1):!1,uu=r=>c1(r)||Tb(r),Cb=(r,g)=>Hh(r)&&df(r,g),Kx=ne,Jx=Hh,iw=Ee("display","block table"),e3=Ee("float","left right"),lm=KO(Kx,Jx,X(e3)),u1=X(Ee("white-space","pre pre-line pre-wrap")),cm=Mt,pv=gn,hf=cc.nodeIndex,f1=tw,jm=r=>r?r.createRange():cc.DOM.createRng(),mv=r=>v(r)&&/[\r\n\t ]/.test(r),e2=r=>!!r.setStart&&!!r.setEnd,Zd=r=>{const g=r.startContainer,B=r.startOffset;if(mv(r.toString())&&u1(g.parentNode)&&Mt(g)){const H=g.data;if(mv(H[B-1])||mv(H[B+1]))return!0}return!1},yy=r=>{const g=r.ownerDocument,B=jm(g),H=g.createTextNode(Pc),oe=r.parentNode;oe.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=l1(B.getBoundingClientRect());return oe.removeChild(H),be},m0=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,oe=r.endOffset;if(g===B&&Mt(B)&&H===0&&oe===1){const be=r.cloneRange();return be.setEndAfter(B),v0(be)}else return null},g0=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,v0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=l1(H[0]):B=l1(r.getBoundingClientRect()),!e2(r)&&pv(r)&&g0(B)?yy(r):g0(B)&&e2(r)&&(g=m0(r))!==null&&g!==void 0?g:B},y0=(r,g)=>{const B=Yx(r,g);return B.width=1,B.right=B.left+1,B},Tf=r=>{const g=[],B=Le=>{Le.height!==0&&(g.length>0&&N4(Le,g[g.length-1])||g.push(Le))},H=(Le,Ke)=>{const ut=jm(Le.ownerDocument);if(Ke0&&(ut.setStart(Le,Ke-1),ut.setEnd(Le,Ke),Zd(ut)||B(y0(v0(ut),!1))),Ke{const H=()=>(cm(r),g===0),oe=()=>cm(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const nn=jm(r.ownerDocument);return nn.setStart(r,g),nn.setEnd(r,g),nn},Le=()=>(B||(B=Tf(vo(r,g))),B),Ke=()=>Le().length>0,ut=nn=>nn&&r===nn.container()&&g===nn.offset(),At=nn=>f1(r,nn?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Le,isVisible:Ke,isAtStart:H,isAtEnd:oe,isEqual:ut,getNode:At}};vo.fromRangeStart=r=>vo(r.startContainer,r.startOffset),vo.fromRangeEnd=r=>vo(r.endContainer,r.endOffset),vo.after=r=>vo(r.parentNode,hf(r)+1),vo.before=r=>vo(r.parentNode,hf(r)),vo.isAbove=(r,g)=>zi(Ye(g.getClientRects()),Je(r.getClientRects()),lv).getOr(!1),vo.isBelow=(r,g)=>zi(Je(g.getClientRects()),Ye(r.getClientRects()),fc).getOr(!1),vo.isAtStart=r=>r?r.isAtStart():!1,vo.isAtEnd=r=>r?r.isAtEnd():!1,vo.isTextPosition=r=>r?Mt(r.container()):!1,vo.isElementPosition=r=>!vo.isTextPosition(r);const Ab=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},F=(r,g,B)=>{g.insertNode(B),Ab(r,B.previousSibling),Ab(r,B.nextSibling)},G=(r,g,B)=>{const H=Y.from(B.firstChild),oe=Y.from(B.lastChild);g.insertNode(B),H.each(be=>Ab(r,be.previousSibling)),oe.each(be=>Ab(r,be.nextSibling))},ue=(r,g,B)=>{Ln(B)?G(r,g,B):F(r,g,B)},Ae=Mt,He=et,nt=cc.nodeIndex,ct=r=>{const g=r.parentNode;return He(g)?ct(g):g},Pt=r=>r?it(r.childNodes,(g,B)=>(He(B)&&B.nodeName!=="BR"?g=g.concat(Pt(B)):g.push(B),g),[]):[],jt=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Ae(B);)g+=B.data.length;return g},hn=r=>g=>r===g,mn=r=>{let g,B;g=Pt(ct(r)),B=at(g,hn(r),r),g=g.slice(0,B+1);const H=it(g,(oe,be,Le)=>(Ae(be)&&Ae(g[Le-1])&&oe++,oe),0);return g=Vt(g,xe([r.nodeName])),B=at(g,hn(r),r),B-H},Dn=r=>(Ae(r)?"text()":r.nodeName.toLowerCase())+"["+mn(r)+"]",Xn=(r,g,B)=>{const H=[];for(let oe=g.parentNode;oe&&oe!==r&&!(B&&B(oe));oe=oe.parentNode)H.push(oe);return H},$n=(r,g)=>{let B=[],H=g.container(),oe=g.offset(),be;if(Ae(H))be=jt(H,oe);else{const Ke=H.childNodes;oe>=Ke.length?(be="after",oe=Ke.length-1):be="before",H=Ke[oe]}B.push(Dn(H));let Le=Xn(r,H);return Le=Vt(Le,X(et)),B=B.concat(bt(Le,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},mr=(r,g,B)=>{let H=Pt(r);return H=Vt(H,(oe,be)=>!Ae(oe)||!Ae(H[be-1])),H=Vt(H,xe([g])),H[B]},Or=(r,g)=>{let B=r,H=0;for(;Ae(B);){const oe=B.data.length;if(g>=H&&g<=H+oe){r=B,g=g-H;break}if(!Ae(B.nextSibling)){r=B,g=oe;break}H+=oe,B=B.nextSibling}return Ae(r)&&g>r.data.length&&(g=r.data.length),vo(r,g)},Kr=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),oe=B.length>1?B[1]:"before",be=it(H,(Le,Ke)=>{const ut=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ut?(ut[1]==="text()"&&(ut[1]="#text"),mr(Le,ut[1],parseInt(ut[2],10))):null},r);if(!be)return null;if(!Ae(be)&&be.parentNode){let Le;return oe==="after"?Le=nt(be)+1:Le=nt(be),vo(be.parentNode,Le)}return Or(be,parseInt(oe,10))},Hr=In,fo=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let oe=g.previousSibling;oe&&Mt(oe);oe=oe.previousSibling)H+=r(oe.data).length;return H},mo=(r,g,B,H,oe)=>{const be=oe?H.startContainer:H.endContainer;let Le=oe?H.startOffset:H.endOffset;const Ke=[],ut=r.getRoot();if(Mt(be))Ke.push(B?fo(g,be,Le):Le);else{let At=0;const nn=be.childNodes;Le>=nn.length&&nn.length&&(At=1,Le=Math.max(0,nn.length-1)),Ke.push(r.nodeIndex(nn[Le],B)+At)}for(let At=be;At&&At!==ut;At=At.parentNode)Ke.push(r.nodeIndex(At,B));return Ke},Io=(r,g,B,H)=>{const oe=g.dom,be=mo(oe,r,B,H,!0),Le=g.isForward(),Ke=Sb(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Le,...Ke};{const ut=mo(oe,r,B,H,!1);return{start:be,end:ut,forward:Le,...Ke}}},Qo=(r,g,B)=>{let H=0;return To.each(r.select(g),oe=>{if(oe.getAttribute("data-mce-bogus")!=="all"){if(oe===B)return!1;H++;return}}),H},Po=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const oe=B.childNodes;B=oe[Math.min(g?H:H-1,oe.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},Ii=r=>(Po(r,!0),Po(r,!1),r),bi=(r,g)=>{if(ne(r)&&(r=Fp(r,g),Hr(r)))return r;if(op(r)){Mt(r)&&Vm(r)&&(r=r.parentNode);let B=r.previousSibling;if(Hr(B)||(B=r.nextSibling,Hr(B)))return B}},Zi=r=>bi(r.startContainer,r.startOffset)||bi(r.endContainer,r.endOffset),ra=(r,g,B)=>{const H=B.getNode(),oe=B.getRng();if(H.nodeName==="IMG"||Hr(H)){const Le=H.nodeName;return{name:Le,index:Qo(B.dom,Le,H)}}const be=Zi(oe);if(be){const Le=be.tagName;return{name:Le,index:Qo(B.dom,Le,be)}}return Io(r,B,g,oe)},ka=r=>{const g=r.getRng();return{start:$n(r.dom.getRoot(),vo.fromRangeStart(g)),end:$n(r.dom.getRoot(),vo.fromRangeEnd(g)),forward:r.isForward()}},ea=r=>({rng:r.getRng(),forward:r.isForward()}),as=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Da=(r,g)=>{const B=r.dom;let H=r.getRng();const oe=B.uniqueId(),be=r.isCollapsed(),Le=r.getNode(),Ke=Le.nodeName,ut=r.isForward();if(Ke==="IMG")return{name:Ke,index:Qo(B,Ke,Le)};const At=Ii(H.cloneRange());if(!be){At.collapse(!1);const un=as(B,oe+"_end",g);ue(B,At,un)}H=Ii(H),H.collapse(!0);const nn=as(B,oe+"_start",g);return ue(B,H,nn),r.moveToBookmark({id:oe,keep:!0,forward:ut}),{id:oe,forward:ut}},ba=(r,g,B=!1)=>g===2?ra(Sd,B,r):g===3?ka(r):g?ea(r):Da(r,!1),fl=U(ra,Q,!0),As=r=>{const g=be=>be(r),B=$(r),H=()=>oe,oe={tag:!0,inner:r,fold:(be,Le)=>Le(r),isValue:q,isError:re,map:be=>Vs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return oe},hc=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,oe)=>H(r),isValue:re,isError:q,map:g,mapError:H=>Vs.error(H(r)),bind:g,exists:re,forall:q,getOr:Q,or:Q,getOrThunk:Z,orThunk:Z,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},Vs={value:As,error:hc,fromOption:(r,g)=>r.fold(()=>hc(g),As)},kl={generate:r=>{if(!C(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ve(r,(H,oe)=>{const be=tt(H);if(be.length!==1)throw new Error("one and only one name per case");const Le=be[0],Ke=H[Le];if(B[Le]!==void 0)throw new Error("duplicate key detected:"+Le);if(Le==="cata")throw new Error("cannot have a case named cata (sorry)");if(!C(Ke))throw new Error("case arguments must be an array");g.push(Le),B[Le]=(...ut)=>{const At=ut.length;if(At!==Ke.length)throw new Error("Wrong number of arguments to case "+Le+". Expected "+Ke.length+" ("+Ke+"), got "+At);return{fold:(...un)=>{if(un.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+un.length);return un[oe].apply(null,ut)},match:un=>{const yn=tt(un);if(g.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` Actual: `+yn.join(","));if(!Oe(g,rr=>ce(yn,rr)))throw new Error("Not all branches were specified when using match. Specified: "+yn.join(", ")+` -Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un,{constructors:g,constructor:Le,params:ut})}}}}),B}};kl.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fc=r=>{const g=[],B=[];return ve(r,H=>{H.fold(oe=>{g.push(oe)},oe=>{B.push(oe)})}),{errors:g,values:B}},qa=r=>r.type==="inline-command"||r.type==="inline-format",Sc=r=>r.type==="block-command"||r.type==="block-format",pc=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,sd=r=>{var g;const B=oe=>Vs.error({message:oe,pattern:r}),H=(oe,be,Le)=>{if(r.format!==void 0){let Ke;if(C(r.format)){if(!Oe(r.format,v))return B(oe+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(oe+" pattern has non-string `format` parameter");return Vs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?Vs.value(Le(r.cmd,r.value)):B(oe+" pattern has non-string `cmd` parameter"):B(oe+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let oe=r.start,be=r.end;return be.length===0&&(be=oe,oe=""),H("Inline",Le=>({type:"inline-format",start:oe,end:be,format:Le}),(Le,Ke)=>({type:"inline-command",start:oe,end:be,cmd:Le,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):Vs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const oe=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:oe}),(be,Le)=>({type:"block-command",start:r.start,cmd:be,value:Le,trigger:oe}))}}},ld=r=>Te(r,Sc),cd=r=>Te(r,qa),Cf=(r,g)=>({inlinePatterns:cd(r),blockPatterns:ld(r),dynamicPatternsLookup:g}),xl=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>pc(B,g))}),eu=r=>{const g=Fc(ye(r,sd));return ve(g.errors,B=>console.error(B.message,B.pattern)),g.values},Td=r=>g=>{const B=r(g);return eu(B)},Af=zn().deviceType,jf=Af.isTouch(),Us=cc.DOM,_l=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const oe=H.split("="),be=oe[0],Le=oe.length>1?oe[1]:be;return B[qn(be)]=qn(Le),B},{})},fu=r=>p(r,RegExp),ni=r=>g=>g.options.get(r),Wc=r=>v(r)||_(r),Yc=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const oe=_l(B);return{value:Et(oe,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},$l=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Yc(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Yc(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&lr(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ye(B.split(","),qn),valid:H}:C(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ip(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:C(B)?B:ye(B.split(","),qn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||Af.isiPhone()||Af.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!jf}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||A(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:Wc}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:Wc}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:Wc}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:Wc}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:eu(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>A(B)?{value:Td(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,fu)?{value:B,valid:!0}:fu(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:ff.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Us.getAttrib(r.getElement(),"placeholder")})})},Ru=ni("iframe_attrs"),Mh=ni("doctype"),mc=ni("document_base_url"),dh=ni("body_id"),hh=ni("body_class"),Qm=ni("content_security_policy"),Qf=ni("br_in_pre"),tu=ni("forced_root_block"),qd=ni("forced_root_block_attrs"),Cd=ni("newline_behavior"),d1=ni("br_newline_selector"),t2=ni("no_newline_selector"),gv=ni("keep_styles"),Lu=ni("end_container_on_empty_block"),$c=ni("automatic_uploads"),dl=ni("images_reuse_filename"),Mf=ni("images_replace_blob_uris"),du=ni("icons"),Iu=ni("icons_url"),vv=ni("images_upload_url"),h1=ni("images_upload_base_path"),n2=ni("images_upload_credentials"),yy=ni("images_upload_handler"),p1=ni("content_css_cors"),b0=ni("referrer_policy"),Hm=ni("language"),yv=ni("language_url"),by=ni("indent_use_margin"),x0=ni("indentation"),r2=ni("content_css"),Mb=ni("content_style"),Ad=ni("font_css"),xy=ni("directionality"),_y=ni("inline_boundaries_selector"),Md=ni("object_resizing"),m1=ni("resize_img_proportional"),_0=ni("placeholder"),um=ni("event_root"),Wd=ni("service_message"),w0=ni("theme"),Eb=ni("theme_url"),wy=ni("model"),aw=ni("model_url"),Zm=ni("inline_boundaries"),sw=ni("formats"),Pb=ni("preview_styles"),t3=ni("format_empty_lines"),O0=ni("format_noneditable_selector"),hu=ni("custom_ui_selector"),ip=ni("inline"),$4=ni("hidden_input"),qm=ni("submit_patch"),lw=ni("add_form_submit_trigger"),cw=ni("add_unload_trigger"),o2=ni("custom_undo_redo_levels"),$p=ni("disable_nodechange"),Rb=ni("readonly"),Lb=ni("editable_root"),Oy=ni("content_css_cors"),bv=ni("plugins"),uw=ni("external_plugins"),fw=ni("block_unsupported_drop"),ud=ni("visual"),i2=ni("visual_table_class"),a2=ni("visual_anchor_class"),s2=ni("iframe_aria_text"),Ib=ni("setup"),n3=ni("init_instance_callback"),Eh=ni("urlconverter_callback"),Db=ni("auto_focus"),l2=ni("browser_spellcheck"),fm=ni("protect"),r3=ni("paste_block_drop"),xv=ni("paste_data_images"),g1=ni("paste_preprocess"),_v=ni("paste_postprocess"),wv=ni("newdocument_content"),Sy=ni("paste_webkit_styles"),Ov=ni("paste_remove_styles_if_webkit"),dw=ni("paste_merge_formats"),o3=ni("smart_paste"),Bb=ni("paste_as_text"),hw=ni("paste_tab_spaces"),v1=ni("allow_html_data_urls"),c2=ni("text_patterns"),Wm=ni("text_patterns_lookup"),pw=ni("noneditable_class"),mw=ni("editable_class"),wp=ni("noneditable_regexp"),zb=ni("preserve_cdata"),u2=ni("highlight_on_focus"),Hf=ni("xss_sanitization"),V4=ni("init_content_sync"),ap=r=>r.options.isSet("text_patterns_lookup"),Nb=r=>To.explode(r.options.get("font_size_style_values")),i3=r=>To.explode(r.options.get("font_size_classes")),dm=r=>r.options.get("encoding")==="xml",ky=r=>To.explode(r.options.get("images_file_types")),f2=ni("table_tab_navigation"),a3=ni("details_initial_state"),d2=ni("details_serialized_state"),s3=ni("sandbox_iframes"),h2=r=>r.options.get("sandbox_iframes_exclusions"),Fb=ni("convert_unsafe_embeds"),l3=ni("license_key"),c3=ni("api_key"),U4=ne,p2=Mt,m2=r=>{const g=r.parentNode;g&&g.removeChild(r)},Mg=r=>{const g=Sd(r);return{count:r.length-g.length,text:g}},S0=r=>{let g;for(;(g=r.data.lastIndexOf(Ou))!==-1;)r.deleteData(g,1)},gw=(r,g)=>($b(r),g),y1=(r,g)=>{const B=Mg(r.data.substr(0,g.offset())),H=Mg(r.data.substr(g.offset()));return(B.text+H.text).length>0?(S0(r),vo(r,g.offset()-B.count)):g},g2=(r,g)=>{const B=g.container(),H=ae(Me(B.childNodes),r).map(oe=>oep2(r)&&g.container()===r?y1(r,g):gw(r,g),zM=(r,g)=>g.container()===r.parentNode?g2(r,g):gw(r,g),mC=(r,g)=>vo.isTextPosition(g)?u3(r,g):zM(r,g),$b=r=>{U4(r)&&op(r)&&(GO(r)?r.removeAttribute("data-mce-caret"):m2(r)),p2(r)&&(S0(r),r.data.length===0&&m2(r))},gC=In,vw=Gr,Ty=Ir,yw="*[contentEditable=false],video,audio,embed,object",vC=(r,g,B)=>{const H=Yx(g.getBoundingClientRect(),B);let oe,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;oe=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();oe=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=oe,H.right+=oe,H.top+=be,H.bottom+=be,H.width=1;let Le=g.offsetWidth-g.clientWidth;return Le>0&&(B&&(Le*=-1),H.left+=Le,H.right+=Le),H},yC=r=>{var g,B;const H=Pl(_r.fromDom(r),yw);for(let oe=0;oe{const oe=Ts();let be,Le;const Ke=tu(r),ut=r.dom,At=(Wn,ur)=>{let Tr;if(nn(),Ty(ur))return null;if(B(ur)){const Wr=h0(Ke,ur,Wn),Qr=vC(g,ur,Wn);ut.setStyle(Wr,"top",Qr.top),ut.setStyle(Wr,"caret-color","transparent"),Le=Wr;const lo=ut.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ut.setStyles(lo,{...Qr}),ut.add(g,lo),oe.set({caret:lo,element:ur,before:Wn}),Wn&&ut.addClass(lo,"mce-visual-caret-before"),un(),Tr=ur.ownerDocument.createRange(),Tr.setStart(Wr,0),Tr.setEnd(Wr,0)}else return Le=Ob(ur,Wn),Tr=ur.ownerDocument.createRange(),v2(Le.nextSibling)?(Tr.setStart(Le,0),Tr.setEnd(Le,0)):(Tr.setStart(Le,1),Tr.setEnd(Le,1)),Tr;return Tr},nn=()=>{yC(g),Le&&($b(Le),Le=null),oe.on(Wn=>{ut.remove(Wn.caret),oe.clear()}),be&&(clearInterval(be),be=void 0)},un=()=>{be=setInterval(()=>{oe.on(Wn=>{H()?ut.toggleClass(Wn.caret,"mce-visual-caret-hidden"):ut.addClass(Wn.caret,"mce-visual-caret-hidden")})},500)};return{show:At,hide:nn,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{oe.on(Wn=>{const ur=vC(g,Wn.element,Wn.before);ut.setStyles(Wn.caret,{...ur})})},destroy:()=>clearInterval(be)}},NM=()=>Nr.browser.isFirefox(),v2=r=>gC(r)||vw(r),b1=r=>(v2(r)||dt(r)&&NM())&&Nh(_r.fromDom(r)).exists(Ol),FM=pn,j4=In,bC=Gr,xC=Ee("display","block table table-cell table-caption list-item"),_C=op,Q4=Vm,wC=ne,Cy=Mt,OC=Hh,Vb=r=>r>0,Ay=r=>r<0,bw=(r,g)=>{let B;for(;B=r(g);)if(!Q4(B))return B;return null},y2=(r,g,B,H,oe)=>{const be=new Xl(r,H),Le=j4(r)||Q4(r);let Ke;if(Ay(g)){if(Le&&(Ke=bw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.prev.bind(be),oe);)if(B(Ke))return Ke}if(Vb(g)){if(Le&&(Ke=bw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.next.bind(be),oe);)if(B(Ke))return Ke}return null},f3=(r,g)=>{const B=oe=>FM(oe.dom),H=oe=>oe.dom===g;return vs(_r.fromDom(r),B,H).map(oe=>oe.dom).getOr(g)},My=(r,g)=>{for(;r&&r!==g;){if(xC(r))return r;r=r.parentNode}return null},hm=(r,g,B)=>My(r.container(),B)===My(g.container(),B),H4=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return wC(B)?Y.from(B.childNodes[H+r]):Y.none()},$M=(r,g)=>{var B;const oe=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)),oe},b2=(r,g,B)=>My(g,r)===My(B,r),SC=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let oe=B;for(;oe&&oe!==g;){let be=oe[H];if(be&&_C(be)&&(be=be[H]),j4(be)||bC(be)){if(b2(g,be,oe))return be;break}if(OC(be))break;oe=oe.parentNode}return null},x2=U($M,!0),_2=U($M,!1),Yd=(r,g,B)=>{let H;const oe=U(SC,!0,g),be=U(SC,!1,g),Le=B.startContainer,Ke=B.startOffset;if(Vm(Le)){const ut=Cy(Le)?Le.parentNode:Le,At=ut.getAttribute("data-mce-caret");if(At==="before"&&(H=ut.nextSibling,b1(H)))return x2(H);if(At==="after"&&(H=ut.previousSibling,b1(H)))return _2(H)}if(!B.collapsed)return B;if(Mt(Le)){if(_C(Le)){if(r===1){if(H=be(Le),H)return x2(H);if(H=oe(Le),H)return _2(H)}if(r===-1){if(H=oe(Le),H)return _2(H);if(H=be(Le),H)return x2(H)}return B}if(Ss(Le)&&Ke>=Le.data.length-1)return r===1&&(H=be(Le),H)?x2(H):B;if(p0(Le)&&Ke<=1)return r===-1&&(H=oe(Le),H)?_2(H):B;if(Ke===Le.data.length)return H=be(Le),H?x2(H):B;if(Ke===0)return H=oe(Le),H?_2(H):B}return B},d3=(r,g)=>H4(r?0:-1,g).filter(j4),xw=(r,g,B)=>{const H=Yd(r,g,B);return r===-1?vo.fromRangeStart(H):vo.fromRangeEnd(H)},h3=r=>Y.from(r.getNode()).map(_r.fromDom),kC=r=>Y.from(r.getNode(!0)).map(_r.fromDom),Z4=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},p3=(r,g)=>{const B=hm(r,g);return!B&&gn(r.getNode())?!0:B};var Ef;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Ef||(Ef={}));const m3=In,x1=Mt,TC=ne,q4=gn,Sv=Hh,_w=uu,w2=Cb,g3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},v3=(r,g)=>r.hasChildNodes()&&g{if(Vb(r)){if(Sv(g.previousSibling)&&!x1(g.previousSibling))return vo.before(g);if(x1(g))return vo(g,0)}if(Ay(r)){if(Sv(g.nextSibling)&&!x1(g.nextSibling))return vo.after(g);if(x1(g))return vo(g,g.data.length)}return Ay(r)?q4(g)?vo.before(g):vo.after(g):vo.before(g)},VM=(r,g)=>{const B=g.nextSibling;return B&&Sv(B)?x1(B)?vo(B,0):vo.before(B):Vp(Ef.Forwards,vo.after(g),r)},Vp=(r,g,B)=>{let H,oe,be,Le;if(!TC(B)||!g)return null;if(g.isEqual(vo.after(B))&&B.lastChild){if(Le=vo.after(B.lastChild),Ay(r)&&Sv(B.lastChild)&&TC(B.lastChild))return q4(B.lastChild)?vo.before(B.lastChild):Le}else Le=g;const Ke=Le.container();let ut=Le.offset();if(x1(Ke)){if(Ay(r)&&ut>0)return vo(Ke,--ut);if(Vb(r)&&ut0&&(oe=v3(Ke,ut-1),Sv(oe)))return!_w(oe)&&(be=y2(oe,r,w2,oe),be)?x1(be)?vo(be,be.data.length):vo.after(be):x1(oe)?vo(oe,oe.data.length):vo.before(oe);if(Vb(r)&&ut({next:g=>Vp(Ef.Forwards,g,r),prev:g=>Vp(Ef.Backwards,g,r)}),W4=(r,g,B)=>{const H=r?vo.before(B):vo.after(B);return Op(r,g,H)},CC=r=>gn(r)?vo.before(r):vo.after(r),AC=r=>vo.isTextPosition(r)?r.offset()===0:Hh(r.getNode()),Y4=r=>{if(vo.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return Hh(r.getNode(!0))},X4=(r,g)=>!vo.isTextPosition(r)&&!vo.isTextPosition(g)&&r.getNode()===g.getNode(!0),MC=r=>!vo.isTextPosition(r)&&gn(r.getNode()),EC=(r,g,B)=>r?!X4(g,B)&&!MC(g)&&Y4(g)&&AC(B):!X4(B,g)&&AC(g)&&Y4(B),Op=(r,g,B)=>{const H=k0(g);return Y.from(r?H.next(B):H.prev(B))},Ub=(r,g,B)=>Op(r,g,B).bind(H=>hm(B,H,g)&&EC(r,B,H)?Op(r,g,H):Y.some(H)),G4=(r,g,B,H)=>Ub(r,g,B).bind(oe=>H(oe)?G4(r,g,oe,H):Y.some(oe)),Py=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Mt(B)?Y.some(vo(B,r?0:B.data.length)):B?Hh(B)?Y.some(r?vo.before(B):CC(B)):W4(r,g,B):Y.none()},Sp=U(Op,!0),Up=U(Op,!1),ph=U(Py,!0),Ym=U(Py,!1),y3="_mce_caret",Xm=r=>ne(r)&&r.id===y3,jb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Xm(B))return B;B=B.parentNode}return null},UM=r=>v(r.start),K4=r=>Ot(r,"rng"),jM=r=>Ot(r,"id"),QM=r=>Ot(r,"name"),PC=r=>To.isArray(r.start),b3=r=>!QM(r)&&R(r.forward)?r.forward:!0,x3=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
'),g),Ph=(r,g)=>{const B=Y.from(Kr(r.getRoot(),g.start)),H=Y.from(Kr(r.getRoot(),g.end));return zi(B,H,(oe,be)=>{const Le=r.createRng();return Le.setStart(oe.container(),oe.offset()),Le.setEnd(be.container(),be.offset()),{range:Le,forward:b3(g)}})},O2=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou);r.appendChild(oe),g.setStart(oe,0),g.setEnd(oe,0)},S2=r=>!r.hasChildNodes(),ww=(r,g)=>Ym(r).fold(re,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),J4=(r,g,B)=>S2(g)&&jb(r,g)?(O2(g,B),!0):!1,Ow=(r,g,B,H)=>{const oe=B[g?"start":"end"],be=r.getRoot();if(oe){let Le=be,Ke=oe[0];for(let ut=oe.length-1;Le&&ut>=1;ut--){const At=Le.childNodes;if(J4(be,Le,H))return!0;if(oe[ut]>At.length-1)return J4(be,Le,H)?!0:ww(Le,H);Le=At[oe[ut]]}Mt(Le)&&(Ke=Math.min(oe[0],Le.data.length)),ne(Le)&&(Ke=Math.min(oe[0],Le.childNodes.length)),g?H.setStart(Le,Ke):H.setEnd(Le,Ke)}return!0},Sw=r=>Mt(r)&&r.data.length>0,Qb=(r,g,B)=>{const H=r.get(B.id+"_"+g),oe=H==null?void 0:H.parentNode,be=B.keep;if(H&&oe){let Le,Ke;if(g==="start"?be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.nextSibling)?(Le=H.nextSibling,Ke=0):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)+1):(Le=oe,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)):(Le=oe,Ke=r.nodeIndex(H)),!be){const ut=H.previousSibling,At=H.nextSibling;To.each(To.grep(H.childNodes),un=>{Mt(un)&&(un.data=un.data.replace(/\uFEFF/g,""))});let nn;for(;nn=r.get(B.id+"_"+g);)r.remove(nn,!0);if(Mt(At)&&Mt(ut)&&!Nr.browser.isOpera()){const un=ut.data.length;ut.appendData(At.data),r.remove(At),Le=ut,Ke=un}}return Y.some(vo(Le,Ke))}else return Y.none()},ek=(r,g)=>{const B=r.createRng();return Ow(r,!0,g,B)&&Ow(r,!1,g,B)?Y.some({range:B,forward:b3(g)}):Y.none()},_3=(r,g)=>{const B=Qb(r,"start",g),H=Qb(r,"end",g);return zi(B,H.or(B),(oe,be)=>{const Le=r.createRng();return Le.setStart(x3(r,oe.container()),oe.offset()),Le.setEnd(x3(r,be.container()),be.offset()),{range:Le,forward:b3(g)}})},Eg=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),RC=(r,g)=>{const B=r.dom;if(g){if(PC(g))return ek(B,g);if(UM(g))return Ph(B,g);if(jM(g))return _3(B,g);if(QM(g))return Eg(B,g);if(K4(g))return Y.some({range:g.rng,forward:b3(g)})}return Y.none()},LC=(r,g,B)=>ba(r,g,B),kv=(r,g)=>{RC(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},pm=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",Hb=(r=>g=>r===g)(Pc),Ry=r=>r!==""&&` \f -\r \v`.indexOf(r)!==-1,tk=r=>!Ry(r)&&!Hb(r)&&!Uf(r),w3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Ah(g);return B?[_r.fromDom(B)]:[]}),HM=r=>w3(r).length>1,ZM=r=>Te(IC(r),my),Zb=r=>Pl(r,"td[data-mce-selected],th[data-mce-selected]"),nk=(r,g)=>{const B=Zb(g);return B.length>0?B:ZM(r)},k2=r=>nk(w3(r.selection.getSel()),_r.fromDom(r.getBody())),Tw=(r,g)=>ts(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Mt(g)?B===0?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(_r.fromDom)},O3=r=>{const g=r.endContainer,B=r.endOffset;return Mt(g)?B===g.data.length?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(_r.fromDom)},rk=r=>yc(r).fold($([r]),g=>[r].concat(rk(g))),ok=r=>Cc(r).fold($([r]),g=>ma(g)==="br"?sf(g).map(B=>[r].concat(ok(B))).getOr([]):[r].concat(ok(g))),S3=(r,g)=>zi(qM(g),O3(g),(B,H)=>{const oe=De(rk(r),U(va,B)),be=De(ok(r),U(va,H));return oe.isSome()&&be.isSome()}).getOr(!1),ik=(r,g,B,H)=>{const oe=B,be=new Xl(B,oe),Le=Yt(r.schema.getMoveCaretBeforeOnEnterElements(),(ut,At)=>!ce(["td","th","table"],At.toLowerCase()));let Ke=B;do{if(Mt(Ke)&&To.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Le[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());oe.nodeName==="BODY"&&(H?g.setStart(oe,0):g.setEnd(oe,oe.childNodes.length))},T2=r=>{const g=r.selection.getSel();return P(g)&&g.rangeCount>0},k3=(r,g)=>{const B=k2(r);B.length>0?ve(B,H=>{const oe=H.dom,be=r.dom.createRng();be.setStartBefore(oe),be.setEndAfter(oe),g(be,!0)}):g(r.selection.getRng(),!1)},T3=(r,g,B)=>{const H=Da(r,g);B(H),r.moveToBookmark(H)},C3=r=>L(r==null?void 0:r.nodeType),A3=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Ys=(r,g)=>{if(A3(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},_1=(r,g,B)=>{const{selection:H,dom:oe}=r,be=H.getNode(),Le=In(be);T3(H,!0,()=>{g()}),Le&&In(be)&&oe.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&qb(oe,H)},qb=(r,g)=>{var B,H;const oe=g.getRng(),{startContainer:be,startOffset:Le}=oe,Ke=g.getNode();if(!Ys(r,Ke)&&ne(be)){const ut=be.childNodes,At=r.getRoot();let nn;if(Le{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!P3(r))return r}},E3=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||lh(r,g),Ly=(r,g,B)=>r.schema.isValidChild(g,B),P3=(r,g=!1)=>{if(P(r)&&Mt(r)){const B=g?r.data.replace(/ /g," "):r.data;return lc(B)}else return!1},ak=r=>P(r)&&Mt(r)&&r.length===0,sk=(r,g)=>{const B="[data-mce-cef-wrappable]",H=O0(r),oe=zr(H)?B:`${B},${H}`;return yd(_r.fromDom(g),oe)},lk=(r,g)=>{const B=r.dom;return A3(g)&&B.getContentEditable(g)==="false"&&sk(r,g)&&B.select('[contenteditable="true"]',g).length===0},Tv=(r,g)=>A(r)?r(g):(P(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),Wb=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),DC=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=od(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},Cw=(r,g,B)=>{const H=r.getStyle(g,B);return DC(H,B)},ck=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},R3=(r,g,B)=>r.getParents(g,B,r.getRoot()),L3=(r,g,B)=>{const H=r.formatter.get(g);return P(H)&&de(H,B)},uk=(r,g)=>L3(r,g,H=>{const oe=be=>A(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Et(H,be).exists(Le=>{const Ke=C(Le)?Le:tn(Le);return de(Ke,oe)}))}),BC=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],oe=be=>Yt(be,(Le,Ke)=>de(H,ut=>ut===Ke));return L3(r,g,be=>{const Le=oe(be);return L3(r,B,Ke=>{const ut=oe(Ke);return Cn(Le,ut)})})},Cv=r=>cn(r,"block"),I3=r=>Cv(r)&&r.wrapper===!0,zC=r=>Cv(r)&&r.wrapper!==!0,Gm=r=>cn(r,"selector"),Ed=r=>cn(r,"inline"),Av=r=>Gm(r)&&Ed(r)&&Ia(Et(r,"mixed"),!0),fk=r=>Gm(r)&&r.expand!==!1&&!Ed(r),WM=r=>{const g=[];let B=r;for(;B;){if(Mt(B)&&B.data!==Ou||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},D3=r=>WM(r).length>0,dk=r=>Xm(r.dom)&&D3(r.dom),C2=pm,NC=R3,YM=P3,AD=E3,XM=r=>gn(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,FC=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},$C=(r,g,B,H)=>{const oe=g.data;if(r){for(let be=B;be>0;be--)if(H(oe.charAt(be-1)))return be}else for(let be=B;be$C(r,g,B,H=>Hb(H)||Ry(H)),Pd=(r,g,B)=>$C(r,g,B,tk),Aw=(r,g,B,H,oe,be)=>{let Le;const Ke=r.getParent(B,r.isBlock)||g,ut=(nn,un,yn)=>{const Qn=Cg(r),rr=oe?Qn.backwards:Qn.forwards;return Y.from(rr(nn,un,(Wn,ur)=>C2(Wn.parentNode)?-1:(Le=Wn,yn(oe,Wn,ur)),Ke))};return ut(B,H,Ei).bind(nn=>be?ut(nn.container,nn.offset+(oe?-1:0),Pd):Y.some(nn)).orThunk(()=>Le?Y.some({container:Le,offset:oe?0:Le.length}):Y.none())},Rd=(r,g,B,H,oe)=>{const be=H[oe];Mt(H)&&zr(H.data)&&be&&(H=be);const Le=NC(r,H);for(let Ke=0;Ke{var oe;let be=B;const Le=r.getRoot(),Ke=g[0];if(Cv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Le)),!be){const ut=(oe=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&oe!==void 0?oe:Le;be=r.getParent(Mt(B)?B.parentNode:B,At=>At!==Le&&AD(r.schema,At),ut)}if(be&&Cv(Ke)&&Ke.wrapper&&(be=NC(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!Wb(be,"br")););return be||B},hk=(r,g,B,H)=>{const oe=B.parentNode;return P(B[H])?!1:oe===g||T(oe)||r.isBlock(oe)?!0:hk(r,g,oe,H)},Yb=(r,g,B,H,oe)=>{let be=B;const Le=oe?"previousSibling":"nextSibling",Ke=r.getRoot();if(Mt(B)&&!YM(B)&&(oe?H>0:HC2(r.parentNode)||C2(r),Xb=(r,g,B,H=!1)=>{let{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}=g;const ut=B[0];return ne(oe)&&oe.hasChildNodes()&&(oe=Fp(oe,be),Mt(oe)&&(be=0)),ne(Le)&&Le.hasChildNodes()&&(Le=Fp(Le,g.collapsed?Ke:Ke-1),Mt(Le)&&(Ke=Le.data.length)),oe=FC(r,oe),Le=FC(r,Le),Mw(oe)&&(oe=C2(oe)?oe:oe.parentNode,g.collapsed?oe=oe.previousSibling||oe:oe=oe.nextSibling||oe,Mt(oe)&&(be=g.collapsed?oe.length:0)),Mw(Le)&&(Le=C2(Le)?Le:Le.parentNode,g.collapsed?Le=Le.nextSibling||Le:Le=Le.previousSibling||Le,Mt(Le)&&(Ke=g.collapsed?0:Le.length)),g.collapsed&&(Aw(r,r.getRoot(),oe,be,!0,H).each(({container:un,offset:yn})=>{oe=un,be=yn}),Aw(r,r.getRoot(),Le,Ke,!1,H).each(({container:un,offset:yn})=>{Le=un,Ke=yn})),(Ed(ut)||ut.block_expand)&&((!Ed(ut)||!Mt(oe)||be===0)&&(oe=Yb(r,B,oe,be,!0)),(!Ed(ut)||!Mt(Le)||Ke===Le.data.length)&&(Le=Yb(r,B,Le,Ke,!1))),fk(ut)&&(oe=Rd(r,B,g,oe,"previousSibling"),Le=Rd(r,B,g,Le,"nextSibling")),(Cv(ut)||Gm(ut))&&(oe=Km(r,B,oe,"previousSibling"),Le=Km(r,B,Le,"nextSibling"),Cv(ut)&&(r.isBlock(oe)||(oe=Yb(r,B,oe,be,!0),Mt(oe)&&(be=0)),r.isBlock(Le)||(Le=Yb(r,B,Le,Ke,!1),Mt(Le)&&(Ke=Le.data.length)))),ne(oe)&&oe.parentNode&&(be=r.nodeIndex(oe),oe=oe.parentNode),ne(Le)&&Le.parentNode&&(Ke=r.nodeIndex(Le)+1,Le=Le.parentNode),{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}},Ew=(r,g,B)=>{var H;const oe=g.startOffset,be=Fp(g.startContainer,oe),Le=g.endOffset,Ke=Fp(g.endContainer,Le-1),ut=ur=>{const Tr=ur[0];Mt(Tr)&&Tr===be&&oe>=Tr.data.length&&ur.splice(0,1);const Wr=ur[ur.length-1];return Le===0&&ur.length>0&&Wr===Ke&&Mt(Wr)&&ur.splice(ur.length-1,1),ur},At=(ur,Tr,Wr)=>{const Qr=[];for(;ur&&ur!==Wr;ur=ur[Tr])Qr.push(ur);return Qr},nn=(ur,Tr)=>r.getParent(ur,Wr=>Wr.parentNode===Tr,Tr),un=(ur,Tr,Wr)=>{const Qr=Wr?"nextSibling":"previousSibling";for(let lo=ur,Zo=lo.parentNode;lo&&lo!==Tr;lo=Zo){Zo=lo.parentNode;const li=At(lo===ur?lo:lo[Qr],Qr);li.length&&(Wr||li.reverse(),B(ut(li)))}};if(be===Ke)return B(ut([be]));const yn=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return un(be,yn,!0);if(r.isChildOf(Ke,be))return un(Ke,yn);const Qn=nn(be,yn)||be,rr=nn(Ke,yn)||Ke;un(be,Qn,!0);const Wn=At(Qn===be?Qn:Qn.nextSibling,"nextSibling",rr===Ke?rr.nextSibling:rr);Wn.length&&B(ut(Wn)),un(Ke,rr)},VC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],GM=r=>Ml(r)&&f0(r)===Ou,KM=(r,g,B,H)=>jc(g).fold(()=>"skipping",oe=>H==="br"||GM(g)?"valid":z4(g)?"existing":Xm(g.dom)?"caret":de(VC,be=>yd(g,be))?"valid-block":!Ly(r,B,H)||!Ly(r,ma(oe),B)?"invalid-child":"valid"),A2=(r,g)=>{const B=Xb(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Gb=(r,g,B,H,oe,be)=>{const{uid:Le=g,...Ke}=B;Cu(r,G1()),ll(r,`${dy()}`,Le),ll(r,`${Sg()}`,H);const{attributes:ut={},classes:At=[]}=oe(Le,Ke);if(Tu(r,ut),bp(r,At),be){At.length>0&&ll(r,`${o1()}`,At.join(","));const nn=tt(ut);nn.length>0&&ll(r,`${kg()}`,nn.join(","))}},pk=r=>{Bu(r,G1()),tc(r,`${dy()}`),tc(r,`${Sg()}`),tc(r,`${K1()}`);const g=ec(r,`${kg()}`).map(H=>H.split(",")).getOr([]),B=ec(r,`${o1()}`).map(H=>H.split(",")).getOr([]);ve(g,H=>tc(r,H)),i1(r,B),tc(r,`${o1()}`),tc(r,`${kg()}`)},mk=(r,g,B,H,oe)=>{const be=_r.fromTag("span",r);return Gb(be,g,B,H,oe,!1),be},jp=(r,g,B,H,oe,be)=>{const Le=[],Ke=mk(r.getDoc(),B,be,H,oe),ut=Ts(),At=()=>{ut.clear()},nn=()=>ut.get().getOrThunk(()=>{const rr=im(Ke);return Le.push(rr),ut.set(rr),rr}),un=rr=>{ve(rr,yn)},yn=rr=>{switch(KM(r,rr,"span",ma(rr))){case"invalid-child":{At();const ur=vc(rr);un(ur),At();break}case"valid-block":{At(),Gb(rr,B,be,H,oe,!0);break}case"valid":{const ur=nn();nd(rr,ur);break}}},Qn=rr=>{const Wn=ye(rr,_r.fromDom);un(Wn)};return Ew(r.dom,g,rr=>{At(),Qn(rr)}),Le},w1=(r,g,B,H)=>{r.undoManager.transact(()=>{const oe=r.selection,be=oe.getRng(),Le=k2(r).length>0,Ke=yb("mce-annotation");if(be.collapsed&&!Le&&A2(r,be),oe.getRng().collapsed&&!Le){const ut=mk(r.getDoc(),Ke,H,g,B.decorate);Fu(ut,Pc),oe.getRng().insertNode(ut.dom),oe.select(ut.dom)}else T3(oe,!1,()=>{k3(r,ut=>{jp(r,ut,Ke,g,B.decorate,H)})})})},B3=r=>{const g=Y_();hy(r,g);const B=jx(r,g),H=Jl("span"),oe=be=>{ve(be,Le=>{H(Le)?Mc(Le):pk(Le)})};return{register:(be,Le)=>{g.register(be,Le)},annotate:(be,Le)=>{g.lookup(be).each(Ke=>{w1(r,be,Ke,Le)})},annotationChanged:(be,Le)=>{B.addListener(be,Le)},remove:be=>{ev(r,Y.some(be)).each(({elements:Le})=>{const Ke=r.selection.getBookmark();oe(Le),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Le=r.selection.getBookmark();Ge(nv(r,be),(Ke,ut)=>{oe(Ke)}),r.selection.moveToBookmark(Le)},getAll:be=>{const Le=nv(r,be);return ht(Le,Ke=>ye(Ke,ut=>ut.dom))}}},Pg=r=>({getBookmark:U(LC,r),moveToBookmark:U(kv,r)});Pg.isBookmarkNode=pm;const z3=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>cv(H,r,g)),JM=(r,g)=>r.dispatch("PreProcess",g),N3=(r,g)=>r.dispatch("PostProcess",g),F3=r=>{r.dispatch("remove")},eE=r=>{r.dispatch("detach")},tE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},nE=(r,g,B,H,oe)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:oe})},rE=(r,g,B,H,oe)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:oe})},$3=r=>{r.dispatch("PreInit")},UC=r=>{r.dispatch("PostRender")},oE=r=>{r.dispatch("Init")},V3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},mh=(r,g,B)=>{r.dispatch(g,B)},Jm=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},mm=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},U3=(r,g)=>r.dispatch("BeforeSetContent",g),Pw=(r,g)=>r.dispatch("SetContent",g),MD=(r,g)=>r.dispatch("BeforeGetContent",g),Rw=(r,g)=>r.dispatch("GetContent",g),iE=(r,g)=>{r.dispatch("AutocompleterStart",g)},jC=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},QC=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},HC=r=>{r.dispatch("AutocompleterEnd")},aE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),ZC=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),j3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),qC=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Jo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Jo.metaKeyPressed(r),metaKeyPressed:r=>Nr.os.isMacOS()||Nr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},gm="data-mce-selected",WC="table,img,figure.image,hr,video,span.mce-preview-object,details",gk=Math.abs,Lw=Math.round,Kb={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},vk=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Iw=(r,g)=>{const B=g.dom,H=g.getDoc(),oe=document,be=g.getBody();let Le,Ke,ut,At,nn,un,yn,Qn,rr,Wn,ur,Tr,Wr,Qr,lo,Zo,li;const Mi=Ci=>P(Ci)&&(Jn(Ci)||B.is(Ci,"figure.image")),Co=Ci=>Gr(Ci)||B.hasClass(Ci,"mce-preview-object"),yo=(Ci,ms)=>{if(vk(Ci)){const Es=Ci.touches[0];return Mi(Ci.target)&&!z3(Es.clientX,Es.clientY,ms)}else return Mi(Ci.target)&&!z3(Ci.clientX,Ci.clientY,ms)},Vo=Ci=>{const ms=Ci.target;yo(Ci,g.selection.getRng())&&!Ci.isDefaultPrevented()&&g.selection.select(ms)},Fi=Ci=>B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?[Ci,Ci.firstElementChild]:B.is(Ci,"figure.image")?[Ci.querySelector("img")]:[Ci],la=Ci=>{const ms=Md(g);return!ms||Ci.getAttribute("data-mce-resize")==="false"||Ci===g.getBody()?!1:B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?yd(_r.fromDom(Ci.firstElementChild),ms):yd(_r.fromDom(Ci),ms)},bs=(Ci,ms)=>{if(Co(ms))return Ci.create("img",{src:Nr.transparentSrc});if(dt(ms)){const Bd=Br(At.name,"n")?Ye:Je,Cl=ms.cloneNode(!0);return Bd(Ci.select("tr",Cl)).each(dd=>{const z0=Ci.select("td,th",dd);Ci.setStyle(dd,"height",null),ve(z0,$v=>Ci.setStyle($v,"height",null))}),Cl}else return ms.cloneNode(!0)},Ms=(Ci,ms,Es)=>{if(P(Es)){const Bd=Fi(Ci);ve(Bd,Cl=>{Cl.style[ms]||!g.schema.isValid(Cl.nodeName.toLowerCase(),ms)?B.setStyle(Cl,ms,Es):B.setAttrib(Cl,ms,""+Es)})}},wl=(Ci,ms,Es)=>{Ms(Ci,"width",ms),Ms(Ci,"height",Es)},Vl=Ci=>{let ms,Es,Bd,Cl,dd;ms=Ci.screenX-un,Es=Ci.screenY-yn,Qr=ms*At[2]+Wn,lo=Es*At[3]+ur,Qr=Qr<5?5:Qr,lo=lo<5?5:lo,(Mi(Le)||Co(Le))&&m1(g)!==!1?Bd=!Jo.modifierPressed(Ci):Bd=Jo.modifierPressed(Ci),Bd&&(gk(ms)>gk(Es)?(lo=Lw(Qr*Tr),Qr=Lw(lo/Tr)):(Qr=Lw(lo/Tr),lo=Lw(Qr*Tr))),wl(Ke,Qr,lo),Cl=At.startPos.x+ms,dd=At.startPos.y+Es,Cl=Cl>0?Cl:0,dd=dd>0?dd:0,B.setStyles(ut,{left:Cl,top:dd,display:"block"}),ut.innerHTML=Qr+" × "+lo,At[2]<0&&Ke.clientWidth<=Qr&&B.setStyle(Ke,"left",Qn+(Wn-Qr)),At[3]<0&&Ke.clientHeight<=lo&&B.setStyle(Ke,"top",rr+(ur-lo)),ms=be.scrollWidth-Zo,Es=be.scrollHeight-li,ms+Es!==0&&B.setStyles(ut,{left:Cl-ms,top:dd-Es}),Wr||(nE(g,Le,Wn,ur,"corner-"+At.name),Wr=!0)},Uu=()=>{const Ci=Wr;Wr=!1,Ci&&(Ms(Le,"width",Qr),Ms(Le,"height",lo)),B.unbind(H,"mousemove",Vl),B.unbind(H,"mouseup",Uu),oe!==H&&(B.unbind(oe,"mousemove",Vl),B.unbind(oe,"mouseup",Uu)),B.remove(Ke),B.remove(ut),B.remove(nn),Wf(Le),Ci&&(rE(g,Le,Qr,lo,"corner-"+At.name),B.setAttrib(Le,"style",B.getAttrib(Le,"style"))),g.nodeChanged()},Wf=Ci=>{Ti();const ms=B.getPos(Ci,be),Es=ms.x,Bd=ms.y,Cl=Ci.getBoundingClientRect(),dd=Cl.width||Cl.right-Cl.left,z0=Cl.height||Cl.bottom-Cl.top;Le!==Ci&&(vi(),Le=Ci,Qr=lo=0);const $v=g.dispatch("ObjectSelected",{target:Ci});la(Ci)&&!$v.isDefaultPrevented()?Ge(Kb,(Cp,Om)=>{const Hg=Zg=>{const ca=Fi(Le)[0];un=Zg.screenX,yn=Zg.screenY,Wn=ca.clientWidth,ur=ca.clientHeight,Tr=ur/Wn,At=Cp,At.name=Om,At.startPos={x:dd*Cp[0]+Es,y:z0*Cp[1]+Bd},Zo=be.scrollWidth,li=be.scrollHeight,nn=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(nn,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=bs(B,Le),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Es,top:Bd,margin:0}),wl(Ke,dd,z0),Ke.removeAttribute(gm),be.appendChild(Ke),B.bind(H,"mousemove",Vl),B.bind(H,"mouseup",Uu),oe!==H&&(B.bind(oe,"mousemove",Vl),B.bind(oe,"mouseup",Uu)),ut=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Wn+" × "+ur)};let Sm=B.get("mceResizeHandle"+Om);Sm&&B.remove(Sm),Sm=B.add(be,"div",{id:"mceResizeHandle"+Om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Om+"-resize; margin:0; padding:0"}),B.bind(Sm,"mousedown",Zg=>{Zg.stopImmediatePropagation(),Zg.preventDefault(),Hg(Zg)}),Cp.elm=Sm,B.setStyles(Sm,{left:dd*Cp[0]+Es-Sm.offsetWidth/2,top:z0*Cp[1]+Bd-Sm.offsetHeight/2})}):vi(!1)},ic=fy(Wf,0),vi=(Ci=!0)=>{ic.cancel(),Ti(),Le&&Ci&&Le.removeAttribute(gm),Ge(Kb,(ms,Es)=>{const Bd=B.get("mceResizeHandle"+Es);Bd&&(B.unbind(Bd),B.remove(Bd))})},na=(Ci,ms)=>B.isChildOf(Ci,ms),ol=Ci=>{if(Wr||g.removed||g.composing)return;const ms=Ci.type==="mousedown"?Ci.target:r.getNode(),Es=bu(_r.fromDom(ms),WC).map(Cl=>Cl.dom).filter(Cl=>B.isEditable(Cl.parentElement)||Cl.nodeName==="IMG"&&B.isEditable(Cl)).getOrUndefined(),Bd=P(Es)?B.getAttrib(Es,gm,"1"):"1";if(ve(B.select(`img[${gm}],hr[${gm}]`),Cl=>{Cl.removeAttribute(gm)}),P(Es)&&na(Es,be)&&g.hasFocus()){pa();const Cl=r.getStart(!0);if(na(Cl,Es)&&na(r.getEnd(!0),Es)){B.setAttrib(Es,gm,Bd),ic.throttle(Es);return}}vi()},Ti=()=>{Ge(Kb,Ci=>{Ci.elm&&(B.unbind(Ci.elm),delete Ci.elm)})},pa=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{pa(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ol),g.on("keyup compositionend",Ci=>{Le&&Le.nodeName==="TABLE"&&ol(Ci)}),g.on("hide blur",vi),g.on("contextmenu longpress",Vo,!0)}),g.on("remove",Ti),{isResizable:la,showResizeRect:Wf,hideResizeRect:vi,updateResizeRect:ol,destroy:()=>{ic.cancel(),Le=Ke=nn=null}}},YC=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},sE=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},yk=(r,g,B)=>{const H=r.document.createRange();return YC(H,g),sE(H,B),H},Dw=(r,g,B,H,oe)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,oe),be},Iy=kl.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),XC=(r,g,B)=>g(_r.fromDom(B.startContainer),B.startOffset,_r.fromDom(B.endContainer),B.endOffset),GC=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:_t(()=>yk(r,B,H)),rtl:_t(()=>Y.some(yk(r,H,B)))}),exact:(B,H,oe,be)=>({ltr:_t(()=>Dw(r,B,H,oe,be)),rtl:_t(()=>Y.some(Dw(r,oe,be,B,H)))})}),lE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(oe=>oe.collapsed===!1).map(oe=>Iy.rtl(_r.fromDom(oe.endContainer),oe.endOffset,_r.fromDom(oe.startContainer),oe.startOffset)).getOrThunk(()=>XC(r,Iy.ltr,B)):XC(r,Iy.ltr,B)},bk=(r,g)=>{const B=GC(r,g);return lE(r,B)};Iy.ltr,Iy.rtl;const Qp={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},Zh=(r,g,B)=>{var H;return Y.from((H=r.caretPositionFromPoint)===null||H===void 0?void 0:H.call(r,g,B)).bind(oe=>{if(oe.offsetNode===null)return Y.none();const be=r.createRange();return be.setStart(oe.offsetNode,oe.offset),be.collapse(),Y.some(be)})},M2=(r,g,B)=>{var H;return Y.from((H=r.caretRangeFromPoint)===null||H===void 0?void 0:H.call(r,g,B))},ED=(r,g,B)=>r.caretPositionFromPoint?Zh(r,g,B):r.caretRangeFromPoint?M2(r,g,B):Y.none(),uE=(r,g,B)=>{const H=r.document;return ED(H,g,B).map(oe=>Qp.create(_r.fromDom(oe.startContainer),oe.startOffset,_r.fromDom(oe.endContainer),oe.endOffset))},xk=kl.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Xs=(r,g,B,H)=>r.fold(g,B,H),fE=r=>r.fold(Q,Q,Q),dE=xk.before,KC=xk.on,PD=xk.after,O1={before:dE,on:KC,after:PD,cata:Xs,getStart:fE},Q3=kl.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Q3.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>_r.fromDom(g.startContainer),relative:(g,B)=>O1.getStart(g),exact:(g,B,H,oe)=>g}),JC=Q3.domRange,Bw=Q3.relative,_k=Q3.exact,e6=r=>{const g=pE(r);return yu(g)},RD=Qp.create,E2={domRange:JC,relative:Bw,exact:_k,exactFromRange:hE,getWin:e6,range:RD},wk=(r,g)=>{const B=ma(r);return B==="input"?O1.after(r):ce(["br","img"],B)?g===0?O1.before(r):O1.after(r):O1.on(r,g)},LD=(r,g)=>{const B=r.fold(O1.before,wk,O1.after),H=g.fold(O1.before,wk,O1.after);return E2.relative(B,H)},t6=(r,g,B,H)=>{const oe=wk(r,g),be=wk(B,H);return E2.relative(oe,be)},mE=r=>r.match({domRange:g=>{const B=_r.fromDom(g.startContainer),H=_r.fromDom(g.endContainer);return t6(B,g.startOffset,H,g.endOffset)},relative:LD,exact:t6}),he=(r,g)=>{const H=(g||document).createDocumentFragment();return ve(r,oe=>{H.appendChild(oe.dom)}),_r.fromDom(H)},Ce=r=>{const g=E2.getWin(r).dom,B=(oe,be,Le,Ke)=>Dw(g,oe,be,Le,Ke),H=mE(r);return bk(g,H).match({ltr:B,rtl:B})},Xe=(r,g,B)=>uE(r,g,B),lt=(r,g,B)=>{const H=yu(_r.fromDom(B));return Xe(H.dom,r,g).map(oe=>{const be=B.createRange();return be.setStart(oe.start.dom,oe.soffset),be.setEnd(oe.finish.dom,oe.foffset),be}).getOrUndefined()},Ct=(r,g)=>P(r)&&P(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,Wt=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},kn=(r,g,B)=>Wt(r,g,B)!==null,Vn=(r,g,B)=>kn(r,g,H=>H.nodeName===B),or=(r,g)=>op(r)&&!kn(r,g,Xm),Mr=(r,g,B)=>{const H=g.parentNode;if(H){const oe=new Xl(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=oe[B?"prev":"next"]();)if(gn(be))return!0}return!1},no=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},ti=(r,g)=>{let B=g;for(;B&&B!==r;){if(In(B))return!0;B=B.parentNode}return!1},ki=(r,g,B,H,oe)=>{const be=r.getRoot(),Le=r.schema.getNonEmptyElements(),Ke=oe.parentNode;let ut,At;if(!Ke)return Y.none();const nn=r.getParent(Ke,r.isBlock)||be;if(H&&gn(oe)&&g&&r.isEmpty(nn))return Y.some(vo(Ke,r.nodeIndex(oe)));const un=new Xl(oe,nn);for(;At=un[H?"prev":"next"]();){if(r.getContentEditableParent(At)==="false"||or(At,be))return Y.none();if(Mt(At)&&At.data.length>0)return Vn(At,be,"A")?Y.none():Y.some(vo(At,H?At.data.length:0));if(r.isBlock(At)||Le[At.nodeName.toLowerCase()])return Y.none();ut=At}return bn(ut)?Y.none():B&&ut?Y.some(vo(ut,0)):Y.none()},xi=(r,g,B,H)=>{const oe=r.getRoot();let be,Le=!1,Ke=B?H.startContainer:H.endContainer,ut=B?H.startOffset:H.endOffset;const At=ne(Ke)&&ut===Ke.childNodes.length,nn=r.schema.getNonEmptyElements();let un=B;if(op(Ke))return Y.none();if(ne(Ke)&&ut>Ke.childNodes.length-1&&(un=!1),vn(Ke)&&(Ke=oe,ut=0),Ke===oe){if(un&&(be=Ke.childNodes[ut>0?ut-1:0],be&&(op(be)||nn[be.nodeName]||dt(be))))return Y.none();if(Ke.hasChildNodes()){if(ut=Math.min(!un&&ut>0?ut-1:ut,Ke.childNodes.length-1),Ke=Ke.childNodes[ut],ut=Mt(Ke)&&At?Ke.data.length:0,!g&&Ke===oe.lastChild&&dt(Ke)||ti(oe,Ke)||op(Ke)||po(Ke))return Y.none();if(Ke.hasChildNodes()&&!dt(Ke)){be=Ke;const yn=new Xl(Ke,oe);do{if(In(be)||op(be)){Le=!1;break}if(Mt(be)&&be.data.length>0){ut=un?0:be.data.length,Ke=be,Le=!0;break}if(nn[be.nodeName.toLowerCase()]&&!Pr(be)){ut=r.nodeIndex(be),Ke=be.parentNode,un||ut++,Le=!0;break}}while(be=un?yn.next():yn.prev())}}}return g&&(Mt(Ke)&&ut===0&&ki(r,At,g,!0,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),ne(Ke)&&(be=Ke.childNodes[ut],be||(be=Ke.childNodes[ut-1]),be&&gn(be)&&!no(be,"A")&&!Mr(r,be,!1)&&!Mr(r,be,!0)&&ki(r,At,g,!0,be).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}))),un&&!g&&Mt(Ke)&&ut===Ke.data.length&&ki(r,At,g,!1,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),Le&&Ke?Y.some(vo(Ke,ut)):Y.none()},fi=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),oe=vo.fromRangeStart(g);return xi(r,B,!0,H).each(be=>{(!B||!vo.isAbove(oe,be))&&H.setStart(be.container(),be.offset())}),B||xi(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),Ct(g,H)?Y.none():Y.some(H)},Vi=(r,g)=>r.splitText(g),Xo=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,oe=r.endOffset;if(g===H&&Mt(g)){if(B>0&&BB){oe=oe-B;const be=Vi(H,oe).previousSibling;g=H=be,oe=be.data.length,B=0}else oe=0}else if(Mt(g)&&B>0&&B0&&oe({walk:(be,Le)=>Ew(r,be,Le),split:Xo,expand:(be,Le={type:"word"})=>{if(Le.type==="word"){const Ke=Xb(r,be,[{inline:"span"}]),ut=r.createRng();return ut.setStart(Ke.startContainer,Ke.startOffset),ut.setEnd(Ke.endContainer,Ke.endOffset),ut}return be},normalize:be=>fi(r,be).fold(re,Le=>(be.setStart(Le.startContainer,Le.startOffset),be.setEnd(Le.endContainer,Le.endOffset),!0))});oi.compareRanges=Ct,oi.getCaretRangeFromPoint=lt,oi.getSelectedNode=Ah,oi.getNode=Fp;const Pa=((r,g)=>{const B=(Ke,ut)=>{if(!L(ut)&&!ut.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ut);const At=Ke.dom;zc(At)&&(At.style[r]=ut+"px")},H=Ke=>{const ut=g(Ke);if(ut<=0||ut===null){const At=rs(Ke,r);return parseFloat(At)||0}return ut},oe=H,be=(Ke,ut)=>Ie(ut,(At,nn)=>{const un=rs(Ke,nn),yn=un===void 0?0:parseInt(un,10);return isNaN(yn)?At:At+yn},0);return{set:B,get:H,getOuter:oe,aggregate:be,max:(Ke,ut,At)=>{const nn=be(Ke,At);return ut>nn?ut-nn:0}}})("height",r=>{const g=r.dom;return lf(r)?g.getBoundingClientRect().height:g.offsetHeight}),ta=r=>Pa.get(r),nu=()=>_r.fromDom(document),Ll=(r,g)=>r.view(g).fold($([]),H=>{const oe=r.owner(H),be=Ll(r,oe);return[H].concat(be)}),$u=(r,g)=>{const B=g.owner(r);return Ll(g,B)};var Jb=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(_r.fromDom)},owner:r=>$f(r)});const ex=r=>{const g=nu(),B=Ni(g),H=$u(r,Jb),oe=ya(r),be=Pe(H,(Le,Ke)=>{const ut=ya(Ke);return{left:Le.left+ut.left,top:Le.top+ut.top}},{left:0,top:0});return pr(be.left+oe.left+B.left,be.top+oe.top+B.top)},Tl=r=>ma(r)==="textarea",Ld=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),sp=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Rg=(r,g)=>{const B=vc(r);if(B.length===0||Tl(r))return{element:r,offset:g};if(g{const B=Bi(r),H=ta(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},P2=(r,g)=>{const B=Rg(r,g),H=_r.fromHtml(''+Ou+"");return xc(B.element,H),ym(H,()=>hs(H))},Wa=r=>ym(_r.fromDom(r),k),bm=(r,g,B,H)=>{el(r,(oe,be)=>S1(r,g,B,H),B)},Lg=(r,g,B,H,oe)=>{const be={elm:H.element.dom,alignToTop:oe};if(Ld(r,be))return;const Le=Ni(g).top;B(r,g,Le,H,oe),sp(r,be)},S1=(r,g,B,H)=>{const oe=_r.fromDom(r.getBody()),be=_r.fromDom(r.getDoc());zl(oe);const Le=P2(_r.fromDom(B.startContainer),B.startOffset);Lg(r,be,g,Le,H),Le.cleanup()},Zf=(r,g,B,H)=>{const oe=_r.fromDom(r.getDoc());Lg(r,oe,B,Wa(g),H)},el=(r,g,B)=>{const H=B.startContainer,oe=B.startOffset,be=B.endContainer,Le=B.endOffset;g(_r.fromDom(H),_r.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,oe),Ke.setEnd(be,Le),r.selection.setRng(B)},Ok=(r,g,B,H,oe)=>{const be=g.pos;if(H)Qi(be.left,be.top,oe);else{const Le=be.top-B+g.height;Qi(-r.getBody().getBoundingClientRect().left,Le,oe)}},Sk=(r,g,B,H,oe,be)=>{const Le=H+B,Ke=oe.pos.top,ut=oe.bottom,At=ut-Ke>=H;KeLe?Ok(r,oe,H,At?be!==!1:be===!0,g):ut>Le&&!At&&Ok(r,oe,H,be===!0,g)},H3=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe)},n6=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe);const Le=ex(H.element),Ke=Wu(window);Le.topKe.bottom&&Ws(H.element,oe===!0)},Mv=(r,g,B)=>bm(r,H3,g,B),tx=(r,g,B)=>Zf(r,g,H3,B),R2=(r,g,B)=>bm(r,n6,g,B),Fq=(r,g,B)=>Zf(r,g,n6,B),$q=(r,g,B)=>{(r.inline?tx:Fq)(r,g,B)},kk=(r,g,B)=>{(r.inline?Mv:R2)(r,g,B)},Z3=(r,g=!1)=>r.dom.focus({preventScroll:g}),zw=r=>{const g=Ac(r).dom;return r.dom===g.activeElement},gE=(r=nu())=>Y.from(r.dom.activeElement).map(_r.fromDom),ID=r=>gE(Ac(r)).filter(g=>r.dom.contains(g.dom)),DD=(r,g)=>{const B=Ml(g)?f0(g).length:vc(g).length+1;return r>B?B:r<0?0:r},Vq=r=>E2.range(r.start,DD(r.soffset,r.start),r.finish,DD(r.foffset,r.finish)),BD=(r,g)=>!le(g.dom)&&(El(r,g)||va(r,g)),vE=r=>g=>BD(r,g.start)&&BD(r,g.finish),afe=r=>r.inline||Nr.browser.isFirefox(),Uq=r=>E2.range(_r.fromDom(r.startContainer),r.startOffset,_r.fromDom(r.endContainer),r.endOffset),zD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Uq)},yE=r=>{const g=yu(r);return zD(g.dom).filter(vE(r))},bE=(r,g)=>Y.from(g).filter(vE(r)).map(Vq),xE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},Tk=r=>{const g=afe(r)?yE(_r.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},r6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>bE(_r.fromDom(r.getBody()),B)).bind(xE),ND=r=>{r6(r).each(g=>r.selection.setRng(g))},FD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},$D=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),jq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Ig={setEditorTimeout:(r,g,B)=>$D(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=jq(()=>{r.removed?clearInterval(H):g()},B);return H}},VD=r=>r.type==="nodechange"&&r.selectionChange,UD=(r,g)=>{const B=()=>{g.throttle()};cc.DOM.bind(document,"mouseup",B),r.on("remove",()=>{cc.DOM.unbind(document,"mouseup",B)})},jD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},QD=(r,g)=>{jD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{VD(B)||Tk(r)})},Qq=r=>{const g=fy(()=>{Tk(r)},0);r.on("init",()=>{r.inline&&UD(r,g),QD(r,g)}),r.on("remove",()=>{g.cancel()})};let q3;const wE=cc.DOM,Hq=r=>ne(r)&&FD.isEditorUIElement(r),OE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},o6=(r,g)=>{const B=hu(r);return wE.getParent(g,oe=>Hq(oe)||(B?r.dom.is(oe,B):!1))!==null},SE=r=>{try{const g=Ac(_r.fromDom(r.getElement()));return gE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Zq=(r,g)=>{const B=g.editor;Qq(B);const H=(oe,be)=>{if(u2(oe)&&oe.inline!==!0){const Le=_r.fromDom(oe.getContainer());be(Le,"tox-edit-focus")}};B.on("focusin",()=>{const oe=r.focusedEditor;OE(SE(B))&&H(B,Cu),oe!==B&&(oe&&oe.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:oe}),B.focus(!0))}),B.on("focusout",()=>{Ig.setEditorTimeout(B,()=>{const oe=r.focusedEditor;(!OE(SE(B))||oe!==B)&&H(B,Bu),!o6(B,SE(B))&&oe===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),q3||(q3=oe=>{const be=r.activeEditor;be&&ah(oe).each(Le=>{const Ke=Le;Ke.ownerDocument===document&&Ke!==document.body&&!o6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},wE.bind(document,"focusin",q3))},i6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&q3&&(wE.unbind(document,"focusin",q3),q3=null)},HD=r=>{r.on("AddEditor",U(Zq,r)),r.on("RemoveEditor",U(i6,r))},qq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),ZD=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="false")!==null,qD=r=>r.collapsed?Y.from(Fp(r.startContainer,r.startOffset)).map(_r.fromDom):Y.none(),Wq=(r,g)=>qD(g).bind(B=>J_(B)?Y.some(B):El(r,B)?Y.none():Y.some(r)),WD=(r,g)=>{Wq(_r.fromDom(r.getBody()),g).bind(B=>ph(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},a6=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},Yq=r=>zw(r)||ID(r).isSome(),Xq=r=>P(r.iframeElement)&&zw(_r.fromDom(r.iframeElement)),YD=r=>{const g=r.getBody();return g&&Yq(_r.fromDom(g))},XD=r=>{const g=Ac(_r.fromDom(r.getElement()));return gE(g).filter(B=>!OE(B.dom)&&o6(r,B.dom)).isSome()},nx=r=>r.inline?YD(r):Xq(r),GD=r=>nx(r)||XD(r),Gq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const oe=Le=>{r6(Le).each(Ke=>{Le.selection.setRng(Ke),H=Ke})};!nx(r)&&r.hasEditableRoot()&&oe(r);const be=qq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){ZD(r,be)||a6(B),a6(be),r.hasEditableRoot()||oe(r),WD(r,H),Ck(r);return}r.inline||(Nr.browser.isOpera()||a6(B),r.getWin().focus()),(Nr.browser.isFirefox()||r.inline)&&(a6(B),WD(r,H)),Ck(r)},Ck=r=>r.editorManager.setActive(r),Kq=(r,g)=>{r.removed||(g?Ck(r):Gq(r))},kE=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),TE=(r,g,B,H,oe)=>{const be=B?g.startContainer:g.endContainer,Le=B?g.startOffset:g.endOffset;return Y.from(be).map(_r.fromDom).map(Ke=>!H||!g.collapsed?gs(Ke,oe(Ke,Le)).getOr(Ke):Ke).bind(Ke=>Wl(Ke)?Y.some(Ke):jc(Ke).filter(Wl)).map(Ke=>Ke.dom).getOr(r)},CE=(r,g,B=!1)=>TE(r,g,!0,B,(H,oe)=>Math.min(Nu(H),oe)),KD=(r,g,B=!1)=>TE(r,g,!1,B,(H,oe)=>oe>0?oe-1:oe),JD=(r,g)=>{const B=r;for(;r&&Mt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Jq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const oe=g.startOffset,be=g.endOffset;let Le=g.commonAncestorContainer;g.collapsed||(B===H&&be-oe<2&&B.hasChildNodes()&&(Le=B.childNodes[oe]),Mt(B)&&Mt(H)&&(B.length===oe?B=JD(B.nextSibling,!0):B=B.parentNode,be===0?H=JD(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Le=B)));const Ke=Mt(Le)?Le.parentNode:Le;return V(Ke)?Ke:r},eW=(r,g,B,H)=>{const oe=[],be=r.getRoot(),Le=r.getParent(B||CE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||KD(be,g,g.collapsed),r.isBlock);if(Le&&Le!==be&&oe.push(Le),Le&&Ke&&Le!==Ke){let ut;const At=new Xl(Le,be);for(;(ut=At.next())&&ut!==Ke;)r.isBlock(ut)&&oe.push(ut)}return Ke&&Le!==Ke&&Ke!==be&&oe.push(Ke),oe},s6=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(oe=>{const be=r.nodeIndex(H),Le=r.createRng();return Le.setStart(oe,be),Le.setEnd(oe,be+1),B&&(ik(r,Le,H,!0),ik(r,Le,H,!1)),Le})),l6=(r,g)=>ye(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),eB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ak=(r,g,B)=>{const H=B?"lastChild":"firstChild",oe=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[oe];if(be)return be;for(let Le=r.parent;Le&&Le!==g;Le=Le.parent)if(be=Le[oe],be)return be}},tB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!lc(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},nB=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class Hp{static create(g,B){const H=new Hp(g,eB[g]||1);return B&&Ge(B,(oe,be)=>{H.attr(be,oe)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return P(g)&&Ge(g,(be,Le)=>{H.attr(Le,be)}),H;const oe=H.attributes;if(oe){if(B!==void 0){if(B===null){if(g in oe.map){delete oe.map[g];let be=oe.length;for(;be--;)if(oe[be].name===g)return oe.splice(be,1),H}return H}if(g in oe.map){let be=oe.length;for(;be--;)if(oe[be].name===g){oe[be].value=B;break}}else oe.push({name:g,value:B});return oe.map[g]=B,H}return oe.map[g]}}clone(){const g=this,B=new Hp(g.name,g.type),H=g.attributes;if(H){const oe=[];oe.map={};for(let be=0,Le=H.length;bev(r.nodeValue)&&r.nodeValue.includes(Ou),oB=r=>`${r.length===0?"":`${ye(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,nW=(r,g)=>g.querySelectorAll(oB(r)),iB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>rB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),aB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(rB(g)){const B=g.parentNode;return B&&Ot(tW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),rW=r=>iB(r).nextNode()!==null,oW=r=>aB(r).nextNode()!==null,iW=(r,g)=>g.querySelector(oB(r))!==null,aW=(r,g)=>{ve(nW(r,g),B=>{const H=_r.fromDom(B);gu(H,"data-mce-bogus")==="all"?hs(H):ve(r,oe=>{Dc(H,oe)&&tc(H,oe)})})},Mk=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},sB=I(Mk,iB),lB=I(Mk,aB),cB=(r,g)=>{const B=[{condition:U(iW,g),action:U(aW,g)},{condition:rW,action:sB},{condition:oW,action:lB}];let H=r,oe=!1;return ve(B,({condition:be,action:Le})=>{be(H)&&(oe||(H=r.cloneNode(!0),oe=!0),Le(H))}),H},uB=r=>{const g=Pl(r,"[data-mce-bogus]");ve(g,B=>{gu(B,"data-mce-bogus")==="all"?hs(B):Th(B)?(xc(B,_r.fromText(pl)),hs(B)):Mc(B)})},fB=r=>{const g=Pl(r,"input");ve(g,B=>{tc(B,"name")})},sW=(r,g)=>{const B=tu(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
|)<\\/${B}>[\r +Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un,{constructors:g,constructor:Le,params:ut})}}}}),B}};kl.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fc=r=>{const g=[],B=[];return ve(r,H=>{H.fold(oe=>{g.push(oe)},oe=>{B.push(oe)})}),{errors:g,values:B}},qa=r=>r.type==="inline-command"||r.type==="inline-format",Sc=r=>r.type==="block-command"||r.type==="block-format",pc=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,sd=r=>{var g;const B=oe=>Vs.error({message:oe,pattern:r}),H=(oe,be,Le)=>{if(r.format!==void 0){let Ke;if(C(r.format)){if(!Oe(r.format,v))return B(oe+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(oe+" pattern has non-string `format` parameter");return Vs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?Vs.value(Le(r.cmd,r.value)):B(oe+" pattern has non-string `cmd` parameter"):B(oe+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let oe=r.start,be=r.end;return be.length===0&&(be=oe,oe=""),H("Inline",Le=>({type:"inline-format",start:oe,end:be,format:Le}),(Le,Ke)=>({type:"inline-command",start:oe,end:be,cmd:Le,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):Vs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const oe=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:oe}),(be,Le)=>({type:"block-command",start:r.start,cmd:be,value:Le,trigger:oe}))}}},ld=r=>Te(r,Sc),cd=r=>Te(r,qa),Cf=(r,g)=>({inlinePatterns:cd(r),blockPatterns:ld(r),dynamicPatternsLookup:g}),xl=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>pc(B,g))}),eu=r=>{const g=Fc(ye(r,sd));return ve(g.errors,B=>console.error(B.message,B.pattern)),g.values},Td=r=>g=>{const B=r(g);return eu(B)},Af=zn().deviceType,jf=Af.isTouch(),Us=cc.DOM,_l=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const oe=H.split("="),be=oe[0],Le=oe.length>1?oe[1]:be;return B[qn(be)]=qn(Le),B},{})},fu=r=>p(r,RegExp),ni=r=>g=>g.options.get(r),Wc=r=>v(r)||_(r),Yc=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const oe=_l(B);return{value:Et(oe,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},$l=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Yc(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Yc(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&lr(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ye(B.split(","),qn),valid:H}:C(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ip(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:C(B)?B:ye(B.split(","),qn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||Af.isiPhone()||Af.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!jf}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||A(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:Wc}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:Wc}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:Wc}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:Wc}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:eu(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>A(B)?{value:Td(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,fu)?{value:B,valid:!0}:fu(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:ff.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Us.getAttrib(r.getElement(),"placeholder")})})},Ru=ni("iframe_attrs"),Eh=ni("doctype"),mc=ni("document_base_url"),dh=ni("body_id"),hh=ni("body_class"),Qm=ni("content_security_policy"),Qf=ni("br_in_pre"),tu=ni("forced_root_block"),qd=ni("forced_root_block_attrs"),Cd=ni("newline_behavior"),d1=ni("br_newline_selector"),t2=ni("no_newline_selector"),gv=ni("keep_styles"),Lu=ni("end_container_on_empty_block"),$c=ni("automatic_uploads"),dl=ni("images_reuse_filename"),Mf=ni("images_replace_blob_uris"),du=ni("icons"),Iu=ni("icons_url"),vv=ni("images_upload_url"),h1=ni("images_upload_base_path"),n2=ni("images_upload_credentials"),by=ni("images_upload_handler"),p1=ni("content_css_cors"),b0=ni("referrer_policy"),Hm=ni("language"),yv=ni("language_url"),xy=ni("indent_use_margin"),x0=ni("indentation"),r2=ni("content_css"),Mb=ni("content_style"),Ad=ni("font_css"),_y=ni("directionality"),wy=ni("inline_boundaries_selector"),Md=ni("object_resizing"),m1=ni("resize_img_proportional"),_0=ni("placeholder"),um=ni("event_root"),Wd=ni("service_message"),w0=ni("theme"),Eb=ni("theme_url"),Oy=ni("model"),aw=ni("model_url"),Zm=ni("inline_boundaries"),sw=ni("formats"),Pb=ni("preview_styles"),t3=ni("format_empty_lines"),O0=ni("format_noneditable_selector"),hu=ni("custom_ui_selector"),ip=ni("inline"),$4=ni("hidden_input"),qm=ni("submit_patch"),lw=ni("add_form_submit_trigger"),cw=ni("add_unload_trigger"),o2=ni("custom_undo_redo_levels"),$p=ni("disable_nodechange"),Rb=ni("readonly"),Lb=ni("editable_root"),Sy=ni("content_css_cors"),bv=ni("plugins"),uw=ni("external_plugins"),fw=ni("block_unsupported_drop"),ud=ni("visual"),i2=ni("visual_table_class"),a2=ni("visual_anchor_class"),s2=ni("iframe_aria_text"),Ib=ni("setup"),n3=ni("init_instance_callback"),Ph=ni("urlconverter_callback"),Db=ni("auto_focus"),l2=ni("browser_spellcheck"),fm=ni("protect"),r3=ni("paste_block_drop"),xv=ni("paste_data_images"),g1=ni("paste_preprocess"),_v=ni("paste_postprocess"),wv=ni("newdocument_content"),ky=ni("paste_webkit_styles"),Ov=ni("paste_remove_styles_if_webkit"),dw=ni("paste_merge_formats"),o3=ni("smart_paste"),Bb=ni("paste_as_text"),hw=ni("paste_tab_spaces"),v1=ni("allow_html_data_urls"),c2=ni("text_patterns"),Wm=ni("text_patterns_lookup"),pw=ni("noneditable_class"),mw=ni("editable_class"),wp=ni("noneditable_regexp"),zb=ni("preserve_cdata"),u2=ni("highlight_on_focus"),Hf=ni("xss_sanitization"),V4=ni("init_content_sync"),ap=r=>r.options.isSet("text_patterns_lookup"),Nb=r=>To.explode(r.options.get("font_size_style_values")),i3=r=>To.explode(r.options.get("font_size_classes")),dm=r=>r.options.get("encoding")==="xml",Ty=r=>To.explode(r.options.get("images_file_types")),f2=ni("table_tab_navigation"),a3=ni("details_initial_state"),d2=ni("details_serialized_state"),s3=ni("sandbox_iframes"),h2=r=>r.options.get("sandbox_iframes_exclusions"),Fb=ni("convert_unsafe_embeds"),l3=ni("license_key"),c3=ni("api_key"),U4=ne,p2=Mt,m2=r=>{const g=r.parentNode;g&&g.removeChild(r)},Mg=r=>{const g=Sd(r);return{count:r.length-g.length,text:g}},S0=r=>{let g;for(;(g=r.data.lastIndexOf(Ou))!==-1;)r.deleteData(g,1)},gw=(r,g)=>($b(r),g),y1=(r,g)=>{const B=Mg(r.data.substr(0,g.offset())),H=Mg(r.data.substr(g.offset()));return(B.text+H.text).length>0?(S0(r),vo(r,g.offset()-B.count)):g},g2=(r,g)=>{const B=g.container(),H=ae(Me(B.childNodes),r).map(oe=>oep2(r)&&g.container()===r?y1(r,g):gw(r,g),zM=(r,g)=>g.container()===r.parentNode?g2(r,g):gw(r,g),gC=(r,g)=>vo.isTextPosition(g)?u3(r,g):zM(r,g),$b=r=>{U4(r)&&op(r)&&(GO(r)?r.removeAttribute("data-mce-caret"):m2(r)),p2(r)&&(S0(r),r.data.length===0&&m2(r))},vC=In,vw=Gr,Cy=Ir,yw="*[contentEditable=false],video,audio,embed,object",yC=(r,g,B)=>{const H=Yx(g.getBoundingClientRect(),B);let oe,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;oe=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();oe=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=oe,H.right+=oe,H.top+=be,H.bottom+=be,H.width=1;let Le=g.offsetWidth-g.clientWidth;return Le>0&&(B&&(Le*=-1),H.left+=Le,H.right+=Le),H},bC=r=>{var g,B;const H=Pl(_r.fromDom(r),yw);for(let oe=0;oe{const oe=Ts();let be,Le;const Ke=tu(r),ut=r.dom,At=(Wn,ur)=>{let Tr;if(nn(),Cy(ur))return null;if(B(ur)){const Wr=h0(Ke,ur,Wn),Qr=yC(g,ur,Wn);ut.setStyle(Wr,"top",Qr.top),ut.setStyle(Wr,"caret-color","transparent"),Le=Wr;const lo=ut.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ut.setStyles(lo,{...Qr}),ut.add(g,lo),oe.set({caret:lo,element:ur,before:Wn}),Wn&&ut.addClass(lo,"mce-visual-caret-before"),un(),Tr=ur.ownerDocument.createRange(),Tr.setStart(Wr,0),Tr.setEnd(Wr,0)}else return Le=Ob(ur,Wn),Tr=ur.ownerDocument.createRange(),v2(Le.nextSibling)?(Tr.setStart(Le,0),Tr.setEnd(Le,0)):(Tr.setStart(Le,1),Tr.setEnd(Le,1)),Tr;return Tr},nn=()=>{bC(g),Le&&($b(Le),Le=null),oe.on(Wn=>{ut.remove(Wn.caret),oe.clear()}),be&&(clearInterval(be),be=void 0)},un=()=>{be=setInterval(()=>{oe.on(Wn=>{H()?ut.toggleClass(Wn.caret,"mce-visual-caret-hidden"):ut.addClass(Wn.caret,"mce-visual-caret-hidden")})},500)};return{show:At,hide:nn,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{oe.on(Wn=>{const ur=yC(g,Wn.element,Wn.before);ut.setStyles(Wn.caret,{...ur})})},destroy:()=>clearInterval(be)}},NM=()=>Nr.browser.isFirefox(),v2=r=>vC(r)||vw(r),b1=r=>(v2(r)||dt(r)&&NM())&&Nh(_r.fromDom(r)).exists(Ol),FM=pn,j4=In,xC=Gr,_C=Ee("display","block table table-cell table-caption list-item"),wC=op,Q4=Vm,OC=ne,Ay=Mt,SC=Hh,Vb=r=>r>0,My=r=>r<0,bw=(r,g)=>{let B;for(;B=r(g);)if(!Q4(B))return B;return null},y2=(r,g,B,H,oe)=>{const be=new Xl(r,H),Le=j4(r)||Q4(r);let Ke;if(My(g)){if(Le&&(Ke=bw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.prev.bind(be),oe);)if(B(Ke))return Ke}if(Vb(g)){if(Le&&(Ke=bw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.next.bind(be),oe);)if(B(Ke))return Ke}return null},f3=(r,g)=>{const B=oe=>FM(oe.dom),H=oe=>oe.dom===g;return vs(_r.fromDom(r),B,H).map(oe=>oe.dom).getOr(g)},Ey=(r,g)=>{for(;r&&r!==g;){if(_C(r))return r;r=r.parentNode}return null},hm=(r,g,B)=>Ey(r.container(),B)===Ey(g.container(),B),H4=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return OC(B)?Y.from(B.childNodes[H+r]):Y.none()},$M=(r,g)=>{var B;const oe=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)),oe},b2=(r,g,B)=>Ey(g,r)===Ey(B,r),kC=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let oe=B;for(;oe&&oe!==g;){let be=oe[H];if(be&&wC(be)&&(be=be[H]),j4(be)||xC(be)){if(b2(g,be,oe))return be;break}if(SC(be))break;oe=oe.parentNode}return null},x2=U($M,!0),_2=U($M,!1),Yd=(r,g,B)=>{let H;const oe=U(kC,!0,g),be=U(kC,!1,g),Le=B.startContainer,Ke=B.startOffset;if(Vm(Le)){const ut=Ay(Le)?Le.parentNode:Le,At=ut.getAttribute("data-mce-caret");if(At==="before"&&(H=ut.nextSibling,b1(H)))return x2(H);if(At==="after"&&(H=ut.previousSibling,b1(H)))return _2(H)}if(!B.collapsed)return B;if(Mt(Le)){if(wC(Le)){if(r===1){if(H=be(Le),H)return x2(H);if(H=oe(Le),H)return _2(H)}if(r===-1){if(H=oe(Le),H)return _2(H);if(H=be(Le),H)return x2(H)}return B}if(Ss(Le)&&Ke>=Le.data.length-1)return r===1&&(H=be(Le),H)?x2(H):B;if(p0(Le)&&Ke<=1)return r===-1&&(H=oe(Le),H)?_2(H):B;if(Ke===Le.data.length)return H=be(Le),H?x2(H):B;if(Ke===0)return H=oe(Le),H?_2(H):B}return B},d3=(r,g)=>H4(r?0:-1,g).filter(j4),xw=(r,g,B)=>{const H=Yd(r,g,B);return r===-1?vo.fromRangeStart(H):vo.fromRangeEnd(H)},h3=r=>Y.from(r.getNode()).map(_r.fromDom),TC=r=>Y.from(r.getNode(!0)).map(_r.fromDom),Z4=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},p3=(r,g)=>{const B=hm(r,g);return!B&&gn(r.getNode())?!0:B};var Ef;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Ef||(Ef={}));const m3=In,x1=Mt,CC=ne,q4=gn,Sv=Hh,_w=uu,w2=Cb,g3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},v3=(r,g)=>r.hasChildNodes()&&g{if(Vb(r)){if(Sv(g.previousSibling)&&!x1(g.previousSibling))return vo.before(g);if(x1(g))return vo(g,0)}if(My(r)){if(Sv(g.nextSibling)&&!x1(g.nextSibling))return vo.after(g);if(x1(g))return vo(g,g.data.length)}return My(r)?q4(g)?vo.before(g):vo.after(g):vo.before(g)},VM=(r,g)=>{const B=g.nextSibling;return B&&Sv(B)?x1(B)?vo(B,0):vo.before(B):Vp(Ef.Forwards,vo.after(g),r)},Vp=(r,g,B)=>{let H,oe,be,Le;if(!CC(B)||!g)return null;if(g.isEqual(vo.after(B))&&B.lastChild){if(Le=vo.after(B.lastChild),My(r)&&Sv(B.lastChild)&&CC(B.lastChild))return q4(B.lastChild)?vo.before(B.lastChild):Le}else Le=g;const Ke=Le.container();let ut=Le.offset();if(x1(Ke)){if(My(r)&&ut>0)return vo(Ke,--ut);if(Vb(r)&&ut0&&(oe=v3(Ke,ut-1),Sv(oe)))return!_w(oe)&&(be=y2(oe,r,w2,oe),be)?x1(be)?vo(be,be.data.length):vo.after(be):x1(oe)?vo(oe,oe.data.length):vo.before(oe);if(Vb(r)&&ut({next:g=>Vp(Ef.Forwards,g,r),prev:g=>Vp(Ef.Backwards,g,r)}),W4=(r,g,B)=>{const H=r?vo.before(B):vo.after(B);return Op(r,g,H)},AC=r=>gn(r)?vo.before(r):vo.after(r),MC=r=>vo.isTextPosition(r)?r.offset()===0:Hh(r.getNode()),Y4=r=>{if(vo.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return Hh(r.getNode(!0))},X4=(r,g)=>!vo.isTextPosition(r)&&!vo.isTextPosition(g)&&r.getNode()===g.getNode(!0),EC=r=>!vo.isTextPosition(r)&&gn(r.getNode()),PC=(r,g,B)=>r?!X4(g,B)&&!EC(g)&&Y4(g)&&MC(B):!X4(B,g)&&MC(g)&&Y4(B),Op=(r,g,B)=>{const H=k0(g);return Y.from(r?H.next(B):H.prev(B))},Ub=(r,g,B)=>Op(r,g,B).bind(H=>hm(B,H,g)&&PC(r,B,H)?Op(r,g,H):Y.some(H)),G4=(r,g,B,H)=>Ub(r,g,B).bind(oe=>H(oe)?G4(r,g,oe,H):Y.some(oe)),Ry=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Mt(B)?Y.some(vo(B,r?0:B.data.length)):B?Hh(B)?Y.some(r?vo.before(B):AC(B)):W4(r,g,B):Y.none()},Sp=U(Op,!0),Up=U(Op,!1),ph=U(Ry,!0),Ym=U(Ry,!1),y3="_mce_caret",Xm=r=>ne(r)&&r.id===y3,jb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Xm(B))return B;B=B.parentNode}return null},UM=r=>v(r.start),K4=r=>Ot(r,"rng"),jM=r=>Ot(r,"id"),QM=r=>Ot(r,"name"),RC=r=>To.isArray(r.start),b3=r=>!QM(r)&&R(r.forward)?r.forward:!0,x3=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
'),g),Rh=(r,g)=>{const B=Y.from(Kr(r.getRoot(),g.start)),H=Y.from(Kr(r.getRoot(),g.end));return zi(B,H,(oe,be)=>{const Le=r.createRng();return Le.setStart(oe.container(),oe.offset()),Le.setEnd(be.container(),be.offset()),{range:Le,forward:b3(g)}})},O2=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou);r.appendChild(oe),g.setStart(oe,0),g.setEnd(oe,0)},S2=r=>!r.hasChildNodes(),ww=(r,g)=>Ym(r).fold(re,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),J4=(r,g,B)=>S2(g)&&jb(r,g)?(O2(g,B),!0):!1,Ow=(r,g,B,H)=>{const oe=B[g?"start":"end"],be=r.getRoot();if(oe){let Le=be,Ke=oe[0];for(let ut=oe.length-1;Le&&ut>=1;ut--){const At=Le.childNodes;if(J4(be,Le,H))return!0;if(oe[ut]>At.length-1)return J4(be,Le,H)?!0:ww(Le,H);Le=At[oe[ut]]}Mt(Le)&&(Ke=Math.min(oe[0],Le.data.length)),ne(Le)&&(Ke=Math.min(oe[0],Le.childNodes.length)),g?H.setStart(Le,Ke):H.setEnd(Le,Ke)}return!0},Sw=r=>Mt(r)&&r.data.length>0,Qb=(r,g,B)=>{const H=r.get(B.id+"_"+g),oe=H==null?void 0:H.parentNode,be=B.keep;if(H&&oe){let Le,Ke;if(g==="start"?be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.nextSibling)?(Le=H.nextSibling,Ke=0):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)+1):(Le=oe,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)):(Le=oe,Ke=r.nodeIndex(H)),!be){const ut=H.previousSibling,At=H.nextSibling;To.each(To.grep(H.childNodes),un=>{Mt(un)&&(un.data=un.data.replace(/\uFEFF/g,""))});let nn;for(;nn=r.get(B.id+"_"+g);)r.remove(nn,!0);if(Mt(At)&&Mt(ut)&&!Nr.browser.isOpera()){const un=ut.data.length;ut.appendData(At.data),r.remove(At),Le=ut,Ke=un}}return Y.some(vo(Le,Ke))}else return Y.none()},ek=(r,g)=>{const B=r.createRng();return Ow(r,!0,g,B)&&Ow(r,!1,g,B)?Y.some({range:B,forward:b3(g)}):Y.none()},_3=(r,g)=>{const B=Qb(r,"start",g),H=Qb(r,"end",g);return zi(B,H.or(B),(oe,be)=>{const Le=r.createRng();return Le.setStart(x3(r,oe.container()),oe.offset()),Le.setEnd(x3(r,be.container()),be.offset()),{range:Le,forward:b3(g)}})},Eg=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),LC=(r,g)=>{const B=r.dom;if(g){if(RC(g))return ek(B,g);if(UM(g))return Rh(B,g);if(jM(g))return _3(B,g);if(QM(g))return Eg(B,g);if(K4(g))return Y.some({range:g.rng,forward:b3(g)})}return Y.none()},IC=(r,g,B)=>ba(r,g,B),kv=(r,g)=>{LC(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},pm=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",Hb=(r=>g=>r===g)(Pc),Ly=r=>r!==""&&` \f +\r \v`.indexOf(r)!==-1,tk=r=>!Ly(r)&&!Hb(r)&&!Uf(r),w3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Mh(g);return B?[_r.fromDom(B)]:[]}),HM=r=>w3(r).length>1,ZM=r=>Te(DC(r),gy),Zb=r=>Pl(r,"td[data-mce-selected],th[data-mce-selected]"),nk=(r,g)=>{const B=Zb(g);return B.length>0?B:ZM(r)},k2=r=>nk(w3(r.selection.getSel()),_r.fromDom(r.getBody())),Tw=(r,g)=>ts(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Mt(g)?B===0?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(_r.fromDom)},O3=r=>{const g=r.endContainer,B=r.endOffset;return Mt(g)?B===g.data.length?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(_r.fromDom)},rk=r=>yc(r).fold($([r]),g=>[r].concat(rk(g))),ok=r=>Cc(r).fold($([r]),g=>ma(g)==="br"?sf(g).map(B=>[r].concat(ok(B))).getOr([]):[r].concat(ok(g))),S3=(r,g)=>zi(qM(g),O3(g),(B,H)=>{const oe=De(rk(r),U(va,B)),be=De(ok(r),U(va,H));return oe.isSome()&&be.isSome()}).getOr(!1),ik=(r,g,B,H)=>{const oe=B,be=new Xl(B,oe),Le=Yt(r.schema.getMoveCaretBeforeOnEnterElements(),(ut,At)=>!ce(["td","th","table"],At.toLowerCase()));let Ke=B;do{if(Mt(Ke)&&To.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Le[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());oe.nodeName==="BODY"&&(H?g.setStart(oe,0):g.setEnd(oe,oe.childNodes.length))},T2=r=>{const g=r.selection.getSel();return P(g)&&g.rangeCount>0},k3=(r,g)=>{const B=k2(r);B.length>0?ve(B,H=>{const oe=H.dom,be=r.dom.createRng();be.setStartBefore(oe),be.setEndAfter(oe),g(be,!0)}):g(r.selection.getRng(),!1)},T3=(r,g,B)=>{const H=Da(r,g);B(H),r.moveToBookmark(H)},C3=r=>L(r==null?void 0:r.nodeType),A3=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Ys=(r,g)=>{if(A3(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},_1=(r,g,B)=>{const{selection:H,dom:oe}=r,be=H.getNode(),Le=In(be);T3(H,!0,()=>{g()}),Le&&In(be)&&oe.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&qb(oe,H)},qb=(r,g)=>{var B,H;const oe=g.getRng(),{startContainer:be,startOffset:Le}=oe,Ke=g.getNode();if(!Ys(r,Ke)&&ne(be)){const ut=be.childNodes,At=r.getRoot();let nn;if(Le{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!P3(r))return r}},E3=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||lh(r,g),Iy=(r,g,B)=>r.schema.isValidChild(g,B),P3=(r,g=!1)=>{if(P(r)&&Mt(r)){const B=g?r.data.replace(/ /g," "):r.data;return lc(B)}else return!1},ak=r=>P(r)&&Mt(r)&&r.length===0,sk=(r,g)=>{const B="[data-mce-cef-wrappable]",H=O0(r),oe=zr(H)?B:`${B},${H}`;return yd(_r.fromDom(g),oe)},lk=(r,g)=>{const B=r.dom;return A3(g)&&B.getContentEditable(g)==="false"&&sk(r,g)&&B.select('[contenteditable="true"]',g).length===0},Tv=(r,g)=>A(r)?r(g):(P(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),Wb=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),BC=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=od(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},Cw=(r,g,B)=>{const H=r.getStyle(g,B);return BC(H,B)},ck=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},R3=(r,g,B)=>r.getParents(g,B,r.getRoot()),L3=(r,g,B)=>{const H=r.formatter.get(g);return P(H)&&de(H,B)},uk=(r,g)=>L3(r,g,H=>{const oe=be=>A(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Et(H,be).exists(Le=>{const Ke=C(Le)?Le:tn(Le);return de(Ke,oe)}))}),zC=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],oe=be=>Yt(be,(Le,Ke)=>de(H,ut=>ut===Ke));return L3(r,g,be=>{const Le=oe(be);return L3(r,B,Ke=>{const ut=oe(Ke);return Cn(Le,ut)})})},Cv=r=>cn(r,"block"),I3=r=>Cv(r)&&r.wrapper===!0,NC=r=>Cv(r)&&r.wrapper!==!0,Gm=r=>cn(r,"selector"),Ed=r=>cn(r,"inline"),Av=r=>Gm(r)&&Ed(r)&&Ia(Et(r,"mixed"),!0),fk=r=>Gm(r)&&r.expand!==!1&&!Ed(r),WM=r=>{const g=[];let B=r;for(;B;){if(Mt(B)&&B.data!==Ou||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},D3=r=>WM(r).length>0,dk=r=>Xm(r.dom)&&D3(r.dom),C2=pm,FC=R3,YM=P3,MD=E3,XM=r=>gn(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,$C=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},VC=(r,g,B,H)=>{const oe=g.data;if(r){for(let be=B;be>0;be--)if(H(oe.charAt(be-1)))return be}else for(let be=B;beVC(r,g,B,H=>Hb(H)||Ly(H)),Pd=(r,g,B)=>VC(r,g,B,tk),Aw=(r,g,B,H,oe,be)=>{let Le;const Ke=r.getParent(B,r.isBlock)||g,ut=(nn,un,yn)=>{const Qn=Cg(r),rr=oe?Qn.backwards:Qn.forwards;return Y.from(rr(nn,un,(Wn,ur)=>C2(Wn.parentNode)?-1:(Le=Wn,yn(oe,Wn,ur)),Ke))};return ut(B,H,Ei).bind(nn=>be?ut(nn.container,nn.offset+(oe?-1:0),Pd):Y.some(nn)).orThunk(()=>Le?Y.some({container:Le,offset:oe?0:Le.length}):Y.none())},Rd=(r,g,B,H,oe)=>{const be=H[oe];Mt(H)&&zr(H.data)&&be&&(H=be);const Le=FC(r,H);for(let Ke=0;Ke{var oe;let be=B;const Le=r.getRoot(),Ke=g[0];if(Cv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Le)),!be){const ut=(oe=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&oe!==void 0?oe:Le;be=r.getParent(Mt(B)?B.parentNode:B,At=>At!==Le&&MD(r.schema,At),ut)}if(be&&Cv(Ke)&&Ke.wrapper&&(be=FC(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!Wb(be,"br")););return be||B},hk=(r,g,B,H)=>{const oe=B.parentNode;return P(B[H])?!1:oe===g||T(oe)||r.isBlock(oe)?!0:hk(r,g,oe,H)},Yb=(r,g,B,H,oe)=>{let be=B;const Le=oe?"previousSibling":"nextSibling",Ke=r.getRoot();if(Mt(B)&&!YM(B)&&(oe?H>0:HC2(r.parentNode)||C2(r),Xb=(r,g,B,H=!1)=>{let{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}=g;const ut=B[0];return ne(oe)&&oe.hasChildNodes()&&(oe=Fp(oe,be),Mt(oe)&&(be=0)),ne(Le)&&Le.hasChildNodes()&&(Le=Fp(Le,g.collapsed?Ke:Ke-1),Mt(Le)&&(Ke=Le.data.length)),oe=$C(r,oe),Le=$C(r,Le),Mw(oe)&&(oe=C2(oe)?oe:oe.parentNode,g.collapsed?oe=oe.previousSibling||oe:oe=oe.nextSibling||oe,Mt(oe)&&(be=g.collapsed?oe.length:0)),Mw(Le)&&(Le=C2(Le)?Le:Le.parentNode,g.collapsed?Le=Le.nextSibling||Le:Le=Le.previousSibling||Le,Mt(Le)&&(Ke=g.collapsed?0:Le.length)),g.collapsed&&(Aw(r,r.getRoot(),oe,be,!0,H).each(({container:un,offset:yn})=>{oe=un,be=yn}),Aw(r,r.getRoot(),Le,Ke,!1,H).each(({container:un,offset:yn})=>{Le=un,Ke=yn})),(Ed(ut)||ut.block_expand)&&((!Ed(ut)||!Mt(oe)||be===0)&&(oe=Yb(r,B,oe,be,!0)),(!Ed(ut)||!Mt(Le)||Ke===Le.data.length)&&(Le=Yb(r,B,Le,Ke,!1))),fk(ut)&&(oe=Rd(r,B,g,oe,"previousSibling"),Le=Rd(r,B,g,Le,"nextSibling")),(Cv(ut)||Gm(ut))&&(oe=Km(r,B,oe,"previousSibling"),Le=Km(r,B,Le,"nextSibling"),Cv(ut)&&(r.isBlock(oe)||(oe=Yb(r,B,oe,be,!0),Mt(oe)&&(be=0)),r.isBlock(Le)||(Le=Yb(r,B,Le,Ke,!1),Mt(Le)&&(Ke=Le.data.length)))),ne(oe)&&oe.parentNode&&(be=r.nodeIndex(oe),oe=oe.parentNode),ne(Le)&&Le.parentNode&&(Ke=r.nodeIndex(Le)+1,Le=Le.parentNode),{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}},Ew=(r,g,B)=>{var H;const oe=g.startOffset,be=Fp(g.startContainer,oe),Le=g.endOffset,Ke=Fp(g.endContainer,Le-1),ut=ur=>{const Tr=ur[0];Mt(Tr)&&Tr===be&&oe>=Tr.data.length&&ur.splice(0,1);const Wr=ur[ur.length-1];return Le===0&&ur.length>0&&Wr===Ke&&Mt(Wr)&&ur.splice(ur.length-1,1),ur},At=(ur,Tr,Wr)=>{const Qr=[];for(;ur&&ur!==Wr;ur=ur[Tr])Qr.push(ur);return Qr},nn=(ur,Tr)=>r.getParent(ur,Wr=>Wr.parentNode===Tr,Tr),un=(ur,Tr,Wr)=>{const Qr=Wr?"nextSibling":"previousSibling";for(let lo=ur,Zo=lo.parentNode;lo&&lo!==Tr;lo=Zo){Zo=lo.parentNode;const li=At(lo===ur?lo:lo[Qr],Qr);li.length&&(Wr||li.reverse(),B(ut(li)))}};if(be===Ke)return B(ut([be]));const yn=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return un(be,yn,!0);if(r.isChildOf(Ke,be))return un(Ke,yn);const Qn=nn(be,yn)||be,rr=nn(Ke,yn)||Ke;un(be,Qn,!0);const Wn=At(Qn===be?Qn:Qn.nextSibling,"nextSibling",rr===Ke?rr.nextSibling:rr);Wn.length&&B(ut(Wn)),un(Ke,rr)},UC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],GM=r=>Ml(r)&&f0(r)===Ou,KM=(r,g,B,H)=>jc(g).fold(()=>"skipping",oe=>H==="br"||GM(g)?"valid":z4(g)?"existing":Xm(g.dom)?"caret":de(UC,be=>yd(g,be))?"valid-block":!Iy(r,B,H)||!Iy(r,ma(oe),B)?"invalid-child":"valid"),A2=(r,g)=>{const B=Xb(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Gb=(r,g,B,H,oe,be)=>{const{uid:Le=g,...Ke}=B;Cu(r,G1()),ll(r,`${hy()}`,Le),ll(r,`${Sg()}`,H);const{attributes:ut={},classes:At=[]}=oe(Le,Ke);if(Tu(r,ut),bp(r,At),be){At.length>0&&ll(r,`${o1()}`,At.join(","));const nn=tt(ut);nn.length>0&&ll(r,`${kg()}`,nn.join(","))}},pk=r=>{Bu(r,G1()),tc(r,`${hy()}`),tc(r,`${Sg()}`),tc(r,`${K1()}`);const g=ec(r,`${kg()}`).map(H=>H.split(",")).getOr([]),B=ec(r,`${o1()}`).map(H=>H.split(",")).getOr([]);ve(g,H=>tc(r,H)),i1(r,B),tc(r,`${o1()}`),tc(r,`${kg()}`)},mk=(r,g,B,H,oe)=>{const be=_r.fromTag("span",r);return Gb(be,g,B,H,oe,!1),be},jp=(r,g,B,H,oe,be)=>{const Le=[],Ke=mk(r.getDoc(),B,be,H,oe),ut=Ts(),At=()=>{ut.clear()},nn=()=>ut.get().getOrThunk(()=>{const rr=im(Ke);return Le.push(rr),ut.set(rr),rr}),un=rr=>{ve(rr,yn)},yn=rr=>{switch(KM(r,rr,"span",ma(rr))){case"invalid-child":{At();const ur=vc(rr);un(ur),At();break}case"valid-block":{At(),Gb(rr,B,be,H,oe,!0);break}case"valid":{const ur=nn();nd(rr,ur);break}}},Qn=rr=>{const Wn=ye(rr,_r.fromDom);un(Wn)};return Ew(r.dom,g,rr=>{At(),Qn(rr)}),Le},w1=(r,g,B,H)=>{r.undoManager.transact(()=>{const oe=r.selection,be=oe.getRng(),Le=k2(r).length>0,Ke=yb("mce-annotation");if(be.collapsed&&!Le&&A2(r,be),oe.getRng().collapsed&&!Le){const ut=mk(r.getDoc(),Ke,H,g,B.decorate);Fu(ut,Pc),oe.getRng().insertNode(ut.dom),oe.select(ut.dom)}else T3(oe,!1,()=>{k3(r,ut=>{jp(r,ut,Ke,g,B.decorate,H)})})})},B3=r=>{const g=Y_();py(r,g);const B=jx(r,g),H=Jl("span"),oe=be=>{ve(be,Le=>{H(Le)?Mc(Le):pk(Le)})};return{register:(be,Le)=>{g.register(be,Le)},annotate:(be,Le)=>{g.lookup(be).each(Ke=>{w1(r,be,Ke,Le)})},annotationChanged:(be,Le)=>{B.addListener(be,Le)},remove:be=>{ev(r,Y.some(be)).each(({elements:Le})=>{const Ke=r.selection.getBookmark();oe(Le),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Le=r.selection.getBookmark();Ge(nv(r,be),(Ke,ut)=>{oe(Ke)}),r.selection.moveToBookmark(Le)},getAll:be=>{const Le=nv(r,be);return ht(Le,Ke=>ye(Ke,ut=>ut.dom))}}},Pg=r=>({getBookmark:U(IC,r),moveToBookmark:U(kv,r)});Pg.isBookmarkNode=pm;const z3=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>cv(H,r,g)),JM=(r,g)=>r.dispatch("PreProcess",g),N3=(r,g)=>r.dispatch("PostProcess",g),F3=r=>{r.dispatch("remove")},eE=r=>{r.dispatch("detach")},tE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},nE=(r,g,B,H,oe)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:oe})},rE=(r,g,B,H,oe)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:oe})},$3=r=>{r.dispatch("PreInit")},jC=r=>{r.dispatch("PostRender")},oE=r=>{r.dispatch("Init")},V3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},mh=(r,g,B)=>{r.dispatch(g,B)},Jm=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},mm=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},U3=(r,g)=>r.dispatch("BeforeSetContent",g),Pw=(r,g)=>r.dispatch("SetContent",g),ED=(r,g)=>r.dispatch("BeforeGetContent",g),Rw=(r,g)=>r.dispatch("GetContent",g),iE=(r,g)=>{r.dispatch("AutocompleterStart",g)},QC=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},HC=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},ZC=r=>{r.dispatch("AutocompleterEnd")},aE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),qC=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),j3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),WC=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Jo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Jo.metaKeyPressed(r),metaKeyPressed:r=>Nr.os.isMacOS()||Nr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},gm="data-mce-selected",YC="table,img,figure.image,hr,video,span.mce-preview-object,details",gk=Math.abs,Lw=Math.round,Kb={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},vk=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Iw=(r,g)=>{const B=g.dom,H=g.getDoc(),oe=document,be=g.getBody();let Le,Ke,ut,At,nn,un,yn,Qn,rr,Wn,ur,Tr,Wr,Qr,lo,Zo,li;const Mi=Ci=>P(Ci)&&(Jn(Ci)||B.is(Ci,"figure.image")),Co=Ci=>Gr(Ci)||B.hasClass(Ci,"mce-preview-object"),yo=(Ci,ms)=>{if(vk(Ci)){const Es=Ci.touches[0];return Mi(Ci.target)&&!z3(Es.clientX,Es.clientY,ms)}else return Mi(Ci.target)&&!z3(Ci.clientX,Ci.clientY,ms)},Vo=Ci=>{const ms=Ci.target;yo(Ci,g.selection.getRng())&&!Ci.isDefaultPrevented()&&g.selection.select(ms)},Fi=Ci=>B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?[Ci,Ci.firstElementChild]:B.is(Ci,"figure.image")?[Ci.querySelector("img")]:[Ci],la=Ci=>{const ms=Md(g);return!ms||Ci.getAttribute("data-mce-resize")==="false"||Ci===g.getBody()?!1:B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?yd(_r.fromDom(Ci.firstElementChild),ms):yd(_r.fromDom(Ci),ms)},bs=(Ci,ms)=>{if(Co(ms))return Ci.create("img",{src:Nr.transparentSrc});if(dt(ms)){const Bd=Br(At.name,"n")?Ye:Je,Cl=ms.cloneNode(!0);return Bd(Ci.select("tr",Cl)).each(dd=>{const z0=Ci.select("td,th",dd);Ci.setStyle(dd,"height",null),ve(z0,$v=>Ci.setStyle($v,"height",null))}),Cl}else return ms.cloneNode(!0)},Ms=(Ci,ms,Es)=>{if(P(Es)){const Bd=Fi(Ci);ve(Bd,Cl=>{Cl.style[ms]||!g.schema.isValid(Cl.nodeName.toLowerCase(),ms)?B.setStyle(Cl,ms,Es):B.setAttrib(Cl,ms,""+Es)})}},wl=(Ci,ms,Es)=>{Ms(Ci,"width",ms),Ms(Ci,"height",Es)},Vl=Ci=>{let ms,Es,Bd,Cl,dd;ms=Ci.screenX-un,Es=Ci.screenY-yn,Qr=ms*At[2]+Wn,lo=Es*At[3]+ur,Qr=Qr<5?5:Qr,lo=lo<5?5:lo,(Mi(Le)||Co(Le))&&m1(g)!==!1?Bd=!Jo.modifierPressed(Ci):Bd=Jo.modifierPressed(Ci),Bd&&(gk(ms)>gk(Es)?(lo=Lw(Qr*Tr),Qr=Lw(lo/Tr)):(Qr=Lw(lo/Tr),lo=Lw(Qr*Tr))),wl(Ke,Qr,lo),Cl=At.startPos.x+ms,dd=At.startPos.y+Es,Cl=Cl>0?Cl:0,dd=dd>0?dd:0,B.setStyles(ut,{left:Cl,top:dd,display:"block"}),ut.innerHTML=Qr+" × "+lo,At[2]<0&&Ke.clientWidth<=Qr&&B.setStyle(Ke,"left",Qn+(Wn-Qr)),At[3]<0&&Ke.clientHeight<=lo&&B.setStyle(Ke,"top",rr+(ur-lo)),ms=be.scrollWidth-Zo,Es=be.scrollHeight-li,ms+Es!==0&&B.setStyles(ut,{left:Cl-ms,top:dd-Es}),Wr||(nE(g,Le,Wn,ur,"corner-"+At.name),Wr=!0)},Uu=()=>{const Ci=Wr;Wr=!1,Ci&&(Ms(Le,"width",Qr),Ms(Le,"height",lo)),B.unbind(H,"mousemove",Vl),B.unbind(H,"mouseup",Uu),oe!==H&&(B.unbind(oe,"mousemove",Vl),B.unbind(oe,"mouseup",Uu)),B.remove(Ke),B.remove(ut),B.remove(nn),Wf(Le),Ci&&(rE(g,Le,Qr,lo,"corner-"+At.name),B.setAttrib(Le,"style",B.getAttrib(Le,"style"))),g.nodeChanged()},Wf=Ci=>{Ti();const ms=B.getPos(Ci,be),Es=ms.x,Bd=ms.y,Cl=Ci.getBoundingClientRect(),dd=Cl.width||Cl.right-Cl.left,z0=Cl.height||Cl.bottom-Cl.top;Le!==Ci&&(vi(),Le=Ci,Qr=lo=0);const $v=g.dispatch("ObjectSelected",{target:Ci});la(Ci)&&!$v.isDefaultPrevented()?Ge(Kb,(Cp,Om)=>{const Hg=Zg=>{const ca=Fi(Le)[0];un=Zg.screenX,yn=Zg.screenY,Wn=ca.clientWidth,ur=ca.clientHeight,Tr=ur/Wn,At=Cp,At.name=Om,At.startPos={x:dd*Cp[0]+Es,y:z0*Cp[1]+Bd},Zo=be.scrollWidth,li=be.scrollHeight,nn=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(nn,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=bs(B,Le),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Es,top:Bd,margin:0}),wl(Ke,dd,z0),Ke.removeAttribute(gm),be.appendChild(Ke),B.bind(H,"mousemove",Vl),B.bind(H,"mouseup",Uu),oe!==H&&(B.bind(oe,"mousemove",Vl),B.bind(oe,"mouseup",Uu)),ut=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Wn+" × "+ur)};let Sm=B.get("mceResizeHandle"+Om);Sm&&B.remove(Sm),Sm=B.add(be,"div",{id:"mceResizeHandle"+Om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Om+"-resize; margin:0; padding:0"}),B.bind(Sm,"mousedown",Zg=>{Zg.stopImmediatePropagation(),Zg.preventDefault(),Hg(Zg)}),Cp.elm=Sm,B.setStyles(Sm,{left:dd*Cp[0]+Es-Sm.offsetWidth/2,top:z0*Cp[1]+Bd-Sm.offsetHeight/2})}):vi(!1)},ic=dy(Wf,0),vi=(Ci=!0)=>{ic.cancel(),Ti(),Le&&Ci&&Le.removeAttribute(gm),Ge(Kb,(ms,Es)=>{const Bd=B.get("mceResizeHandle"+Es);Bd&&(B.unbind(Bd),B.remove(Bd))})},na=(Ci,ms)=>B.isChildOf(Ci,ms),ol=Ci=>{if(Wr||g.removed||g.composing)return;const ms=Ci.type==="mousedown"?Ci.target:r.getNode(),Es=bu(_r.fromDom(ms),YC).map(Cl=>Cl.dom).filter(Cl=>B.isEditable(Cl.parentElement)||Cl.nodeName==="IMG"&&B.isEditable(Cl)).getOrUndefined(),Bd=P(Es)?B.getAttrib(Es,gm,"1"):"1";if(ve(B.select(`img[${gm}],hr[${gm}]`),Cl=>{Cl.removeAttribute(gm)}),P(Es)&&na(Es,be)&&g.hasFocus()){pa();const Cl=r.getStart(!0);if(na(Cl,Es)&&na(r.getEnd(!0),Es)){B.setAttrib(Es,gm,Bd),ic.throttle(Es);return}}vi()},Ti=()=>{Ge(Kb,Ci=>{Ci.elm&&(B.unbind(Ci.elm),delete Ci.elm)})},pa=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{pa(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ol),g.on("keyup compositionend",Ci=>{Le&&Le.nodeName==="TABLE"&&ol(Ci)}),g.on("hide blur",vi),g.on("contextmenu longpress",Vo,!0)}),g.on("remove",Ti),{isResizable:la,showResizeRect:Wf,hideResizeRect:vi,updateResizeRect:ol,destroy:()=>{ic.cancel(),Le=Ke=nn=null}}},XC=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},sE=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},yk=(r,g,B)=>{const H=r.document.createRange();return XC(H,g),sE(H,B),H},Dw=(r,g,B,H,oe)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,oe),be},Dy=kl.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),GC=(r,g,B)=>g(_r.fromDom(B.startContainer),B.startOffset,_r.fromDom(B.endContainer),B.endOffset),KC=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:_t(()=>yk(r,B,H)),rtl:_t(()=>Y.some(yk(r,H,B)))}),exact:(B,H,oe,be)=>({ltr:_t(()=>Dw(r,B,H,oe,be)),rtl:_t(()=>Y.some(Dw(r,oe,be,B,H)))})}),lE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(oe=>oe.collapsed===!1).map(oe=>Dy.rtl(_r.fromDom(oe.endContainer),oe.endOffset,_r.fromDom(oe.startContainer),oe.startOffset)).getOrThunk(()=>GC(r,Dy.ltr,B)):GC(r,Dy.ltr,B)},bk=(r,g)=>{const B=KC(r,g);return lE(r,B)};Dy.ltr,Dy.rtl;const Qp={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},Zh=(r,g,B)=>{var H;return Y.from((H=r.caretPositionFromPoint)===null||H===void 0?void 0:H.call(r,g,B)).bind(oe=>{if(oe.offsetNode===null)return Y.none();const be=r.createRange();return be.setStart(oe.offsetNode,oe.offset),be.collapse(),Y.some(be)})},M2=(r,g,B)=>{var H;return Y.from((H=r.caretRangeFromPoint)===null||H===void 0?void 0:H.call(r,g,B))},PD=(r,g,B)=>r.caretPositionFromPoint?Zh(r,g,B):r.caretRangeFromPoint?M2(r,g,B):Y.none(),uE=(r,g,B)=>{const H=r.document;return PD(H,g,B).map(oe=>Qp.create(_r.fromDom(oe.startContainer),oe.startOffset,_r.fromDom(oe.endContainer),oe.endOffset))},xk=kl.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Xs=(r,g,B,H)=>r.fold(g,B,H),fE=r=>r.fold(Q,Q,Q),dE=xk.before,JC=xk.on,RD=xk.after,O1={before:dE,on:JC,after:RD,cata:Xs,getStart:fE},Q3=kl.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Q3.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>_r.fromDom(g.startContainer),relative:(g,B)=>O1.getStart(g),exact:(g,B,H,oe)=>g}),e6=Q3.domRange,Bw=Q3.relative,_k=Q3.exact,t6=r=>{const g=pE(r);return yu(g)},LD=Qp.create,E2={domRange:e6,relative:Bw,exact:_k,exactFromRange:hE,getWin:t6,range:LD},wk=(r,g)=>{const B=ma(r);return B==="input"?O1.after(r):ce(["br","img"],B)?g===0?O1.before(r):O1.after(r):O1.on(r,g)},ID=(r,g)=>{const B=r.fold(O1.before,wk,O1.after),H=g.fold(O1.before,wk,O1.after);return E2.relative(B,H)},n6=(r,g,B,H)=>{const oe=wk(r,g),be=wk(B,H);return E2.relative(oe,be)},mE=r=>r.match({domRange:g=>{const B=_r.fromDom(g.startContainer),H=_r.fromDom(g.endContainer);return n6(B,g.startOffset,H,g.endOffset)},relative:ID,exact:n6}),he=(r,g)=>{const H=(g||document).createDocumentFragment();return ve(r,oe=>{H.appendChild(oe.dom)}),_r.fromDom(H)},Ce=r=>{const g=E2.getWin(r).dom,B=(oe,be,Le,Ke)=>Dw(g,oe,be,Le,Ke),H=mE(r);return bk(g,H).match({ltr:B,rtl:B})},Xe=(r,g,B)=>uE(r,g,B),lt=(r,g,B)=>{const H=yu(_r.fromDom(B));return Xe(H.dom,r,g).map(oe=>{const be=B.createRange();return be.setStart(oe.start.dom,oe.soffset),be.setEnd(oe.finish.dom,oe.foffset),be}).getOrUndefined()},Ct=(r,g)=>P(r)&&P(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,Wt=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},kn=(r,g,B)=>Wt(r,g,B)!==null,Vn=(r,g,B)=>kn(r,g,H=>H.nodeName===B),or=(r,g)=>op(r)&&!kn(r,g,Xm),Mr=(r,g,B)=>{const H=g.parentNode;if(H){const oe=new Xl(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=oe[B?"prev":"next"]();)if(gn(be))return!0}return!1},no=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},ti=(r,g)=>{let B=g;for(;B&&B!==r;){if(In(B))return!0;B=B.parentNode}return!1},ki=(r,g,B,H,oe)=>{const be=r.getRoot(),Le=r.schema.getNonEmptyElements(),Ke=oe.parentNode;let ut,At;if(!Ke)return Y.none();const nn=r.getParent(Ke,r.isBlock)||be;if(H&&gn(oe)&&g&&r.isEmpty(nn))return Y.some(vo(Ke,r.nodeIndex(oe)));const un=new Xl(oe,nn);for(;At=un[H?"prev":"next"]();){if(r.getContentEditableParent(At)==="false"||or(At,be))return Y.none();if(Mt(At)&&At.data.length>0)return Vn(At,be,"A")?Y.none():Y.some(vo(At,H?At.data.length:0));if(r.isBlock(At)||Le[At.nodeName.toLowerCase()])return Y.none();ut=At}return bn(ut)?Y.none():B&&ut?Y.some(vo(ut,0)):Y.none()},xi=(r,g,B,H)=>{const oe=r.getRoot();let be,Le=!1,Ke=B?H.startContainer:H.endContainer,ut=B?H.startOffset:H.endOffset;const At=ne(Ke)&&ut===Ke.childNodes.length,nn=r.schema.getNonEmptyElements();let un=B;if(op(Ke))return Y.none();if(ne(Ke)&&ut>Ke.childNodes.length-1&&(un=!1),vn(Ke)&&(Ke=oe,ut=0),Ke===oe){if(un&&(be=Ke.childNodes[ut>0?ut-1:0],be&&(op(be)||nn[be.nodeName]||dt(be))))return Y.none();if(Ke.hasChildNodes()){if(ut=Math.min(!un&&ut>0?ut-1:ut,Ke.childNodes.length-1),Ke=Ke.childNodes[ut],ut=Mt(Ke)&&At?Ke.data.length:0,!g&&Ke===oe.lastChild&&dt(Ke)||ti(oe,Ke)||op(Ke)||po(Ke))return Y.none();if(Ke.hasChildNodes()&&!dt(Ke)){be=Ke;const yn=new Xl(Ke,oe);do{if(In(be)||op(be)){Le=!1;break}if(Mt(be)&&be.data.length>0){ut=un?0:be.data.length,Ke=be,Le=!0;break}if(nn[be.nodeName.toLowerCase()]&&!Pr(be)){ut=r.nodeIndex(be),Ke=be.parentNode,un||ut++,Le=!0;break}}while(be=un?yn.next():yn.prev())}}}return g&&(Mt(Ke)&&ut===0&&ki(r,At,g,!0,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),ne(Ke)&&(be=Ke.childNodes[ut],be||(be=Ke.childNodes[ut-1]),be&&gn(be)&&!no(be,"A")&&!Mr(r,be,!1)&&!Mr(r,be,!0)&&ki(r,At,g,!0,be).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}))),un&&!g&&Mt(Ke)&&ut===Ke.data.length&&ki(r,At,g,!1,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),Le&&Ke?Y.some(vo(Ke,ut)):Y.none()},fi=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),oe=vo.fromRangeStart(g);return xi(r,B,!0,H).each(be=>{(!B||!vo.isAbove(oe,be))&&H.setStart(be.container(),be.offset())}),B||xi(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),Ct(g,H)?Y.none():Y.some(H)},Vi=(r,g)=>r.splitText(g),Xo=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,oe=r.endOffset;if(g===H&&Mt(g)){if(B>0&&BB){oe=oe-B;const be=Vi(H,oe).previousSibling;g=H=be,oe=be.data.length,B=0}else oe=0}else if(Mt(g)&&B>0&&B0&&oe({walk:(be,Le)=>Ew(r,be,Le),split:Xo,expand:(be,Le={type:"word"})=>{if(Le.type==="word"){const Ke=Xb(r,be,[{inline:"span"}]),ut=r.createRng();return ut.setStart(Ke.startContainer,Ke.startOffset),ut.setEnd(Ke.endContainer,Ke.endOffset),ut}return be},normalize:be=>fi(r,be).fold(re,Le=>(be.setStart(Le.startContainer,Le.startOffset),be.setEnd(Le.endContainer,Le.endOffset),!0))});oi.compareRanges=Ct,oi.getCaretRangeFromPoint=lt,oi.getSelectedNode=Mh,oi.getNode=Fp;const Pa=((r,g)=>{const B=(Ke,ut)=>{if(!L(ut)&&!ut.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ut);const At=Ke.dom;zc(At)&&(At.style[r]=ut+"px")},H=Ke=>{const ut=g(Ke);if(ut<=0||ut===null){const At=rs(Ke,r);return parseFloat(At)||0}return ut},oe=H,be=(Ke,ut)=>Ie(ut,(At,nn)=>{const un=rs(Ke,nn),yn=un===void 0?0:parseInt(un,10);return isNaN(yn)?At:At+yn},0);return{set:B,get:H,getOuter:oe,aggregate:be,max:(Ke,ut,At)=>{const nn=be(Ke,At);return ut>nn?ut-nn:0}}})("height",r=>{const g=r.dom;return lf(r)?g.getBoundingClientRect().height:g.offsetHeight}),ta=r=>Pa.get(r),nu=()=>_r.fromDom(document),Ll=(r,g)=>r.view(g).fold($([]),H=>{const oe=r.owner(H),be=Ll(r,oe);return[H].concat(be)}),$u=(r,g)=>{const B=g.owner(r);return Ll(g,B)};var Jb=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(_r.fromDom)},owner:r=>$f(r)});const ex=r=>{const g=nu(),B=Ni(g),H=$u(r,Jb),oe=ya(r),be=Pe(H,(Le,Ke)=>{const ut=ya(Ke);return{left:Le.left+ut.left,top:Le.top+ut.top}},{left:0,top:0});return pr(be.left+oe.left+B.left,be.top+oe.top+B.top)},Tl=r=>ma(r)==="textarea",Ld=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),sp=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Rg=(r,g)=>{const B=vc(r);if(B.length===0||Tl(r))return{element:r,offset:g};if(g{const B=Bi(r),H=ta(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},P2=(r,g)=>{const B=Rg(r,g),H=_r.fromHtml(''+Ou+"");return xc(B.element,H),ym(H,()=>hs(H))},Wa=r=>ym(_r.fromDom(r),k),bm=(r,g,B,H)=>{el(r,(oe,be)=>S1(r,g,B,H),B)},Lg=(r,g,B,H,oe)=>{const be={elm:H.element.dom,alignToTop:oe};if(Ld(r,be))return;const Le=Ni(g).top;B(r,g,Le,H,oe),sp(r,be)},S1=(r,g,B,H)=>{const oe=_r.fromDom(r.getBody()),be=_r.fromDom(r.getDoc());zl(oe);const Le=P2(_r.fromDom(B.startContainer),B.startOffset);Lg(r,be,g,Le,H),Le.cleanup()},Zf=(r,g,B,H)=>{const oe=_r.fromDom(r.getDoc());Lg(r,oe,B,Wa(g),H)},el=(r,g,B)=>{const H=B.startContainer,oe=B.startOffset,be=B.endContainer,Le=B.endOffset;g(_r.fromDom(H),_r.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,oe),Ke.setEnd(be,Le),r.selection.setRng(B)},Ok=(r,g,B,H,oe)=>{const be=g.pos;if(H)Qi(be.left,be.top,oe);else{const Le=be.top-B+g.height;Qi(-r.getBody().getBoundingClientRect().left,Le,oe)}},Sk=(r,g,B,H,oe,be)=>{const Le=H+B,Ke=oe.pos.top,ut=oe.bottom,At=ut-Ke>=H;KeLe?Ok(r,oe,H,At?be!==!1:be===!0,g):ut>Le&&!At&&Ok(r,oe,H,be===!0,g)},H3=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe)},r6=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe);const Le=ex(H.element),Ke=Wu(window);Le.topKe.bottom&&Ws(H.element,oe===!0)},Mv=(r,g,B)=>bm(r,H3,g,B),tx=(r,g,B)=>Zf(r,g,H3,B),R2=(r,g,B)=>bm(r,r6,g,B),$q=(r,g,B)=>Zf(r,g,r6,B),Vq=(r,g,B)=>{(r.inline?tx:$q)(r,g,B)},kk=(r,g,B)=>{(r.inline?Mv:R2)(r,g,B)},Z3=(r,g=!1)=>r.dom.focus({preventScroll:g}),zw=r=>{const g=Ac(r).dom;return r.dom===g.activeElement},gE=(r=nu())=>Y.from(r.dom.activeElement).map(_r.fromDom),DD=r=>gE(Ac(r)).filter(g=>r.dom.contains(g.dom)),BD=(r,g)=>{const B=Ml(g)?f0(g).length:vc(g).length+1;return r>B?B:r<0?0:r},Uq=r=>E2.range(r.start,BD(r.soffset,r.start),r.finish,BD(r.foffset,r.finish)),zD=(r,g)=>!le(g.dom)&&(El(r,g)||va(r,g)),vE=r=>g=>zD(r,g.start)&&zD(r,g.finish),lfe=r=>r.inline||Nr.browser.isFirefox(),jq=r=>E2.range(_r.fromDom(r.startContainer),r.startOffset,_r.fromDom(r.endContainer),r.endOffset),ND=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(jq)},yE=r=>{const g=yu(r);return ND(g.dom).filter(vE(r))},bE=(r,g)=>Y.from(g).filter(vE(r)).map(Uq),xE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},Tk=r=>{const g=lfe(r)?yE(_r.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},o6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>bE(_r.fromDom(r.getBody()),B)).bind(xE),FD=r=>{o6(r).each(g=>r.selection.setRng(g))},$D={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},VD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Qq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Ig={setEditorTimeout:(r,g,B)=>VD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Qq(()=>{r.removed?clearInterval(H):g()},B);return H}},UD=r=>r.type==="nodechange"&&r.selectionChange,jD=(r,g)=>{const B=()=>{g.throttle()};cc.DOM.bind(document,"mouseup",B),r.on("remove",()=>{cc.DOM.unbind(document,"mouseup",B)})},QD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},HD=(r,g)=>{QD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{UD(B)||Tk(r)})},Hq=r=>{const g=dy(()=>{Tk(r)},0);r.on("init",()=>{r.inline&&jD(r,g),HD(r,g)}),r.on("remove",()=>{g.cancel()})};let q3;const wE=cc.DOM,Zq=r=>ne(r)&&$D.isEditorUIElement(r),OE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},i6=(r,g)=>{const B=hu(r);return wE.getParent(g,oe=>Zq(oe)||(B?r.dom.is(oe,B):!1))!==null},SE=r=>{try{const g=Ac(_r.fromDom(r.getElement()));return gE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},qq=(r,g)=>{const B=g.editor;Hq(B);const H=(oe,be)=>{if(u2(oe)&&oe.inline!==!0){const Le=_r.fromDom(oe.getContainer());be(Le,"tox-edit-focus")}};B.on("focusin",()=>{const oe=r.focusedEditor;OE(SE(B))&&H(B,Cu),oe!==B&&(oe&&oe.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:oe}),B.focus(!0))}),B.on("focusout",()=>{Ig.setEditorTimeout(B,()=>{const oe=r.focusedEditor;(!OE(SE(B))||oe!==B)&&H(B,Bu),!i6(B,SE(B))&&oe===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),q3||(q3=oe=>{const be=r.activeEditor;be&&ah(oe).each(Le=>{const Ke=Le;Ke.ownerDocument===document&&Ke!==document.body&&!i6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},wE.bind(document,"focusin",q3))},a6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&q3&&(wE.unbind(document,"focusin",q3),q3=null)},ZD=r=>{r.on("AddEditor",U(qq,r)),r.on("RemoveEditor",U(a6,r))},Wq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),qD=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="false")!==null,WD=r=>r.collapsed?Y.from(Fp(r.startContainer,r.startOffset)).map(_r.fromDom):Y.none(),Yq=(r,g)=>WD(g).bind(B=>J_(B)?Y.some(B):El(r,B)?Y.none():Y.some(r)),YD=(r,g)=>{Yq(_r.fromDom(r.getBody()),g).bind(B=>ph(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},s6=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},Xq=r=>zw(r)||DD(r).isSome(),Gq=r=>P(r.iframeElement)&&zw(_r.fromDom(r.iframeElement)),XD=r=>{const g=r.getBody();return g&&Xq(_r.fromDom(g))},GD=r=>{const g=Ac(_r.fromDom(r.getElement()));return gE(g).filter(B=>!OE(B.dom)&&i6(r,B.dom)).isSome()},nx=r=>r.inline?XD(r):Gq(r),KD=r=>nx(r)||GD(r),Kq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const oe=Le=>{o6(Le).each(Ke=>{Le.selection.setRng(Ke),H=Ke})};!nx(r)&&r.hasEditableRoot()&&oe(r);const be=Wq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){qD(r,be)||s6(B),s6(be),r.hasEditableRoot()||oe(r),YD(r,H),Ck(r);return}r.inline||(Nr.browser.isOpera()||s6(B),r.getWin().focus()),(Nr.browser.isFirefox()||r.inline)&&(s6(B),YD(r,H)),Ck(r)},Ck=r=>r.editorManager.setActive(r),Jq=(r,g)=>{r.removed||(g?Ck(r):Kq(r))},kE=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),TE=(r,g,B,H,oe)=>{const be=B?g.startContainer:g.endContainer,Le=B?g.startOffset:g.endOffset;return Y.from(be).map(_r.fromDom).map(Ke=>!H||!g.collapsed?gs(Ke,oe(Ke,Le)).getOr(Ke):Ke).bind(Ke=>Wl(Ke)?Y.some(Ke):jc(Ke).filter(Wl)).map(Ke=>Ke.dom).getOr(r)},CE=(r,g,B=!1)=>TE(r,g,!0,B,(H,oe)=>Math.min(Nu(H),oe)),JD=(r,g,B=!1)=>TE(r,g,!1,B,(H,oe)=>oe>0?oe-1:oe),eB=(r,g)=>{const B=r;for(;r&&Mt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},eW=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const oe=g.startOffset,be=g.endOffset;let Le=g.commonAncestorContainer;g.collapsed||(B===H&&be-oe<2&&B.hasChildNodes()&&(Le=B.childNodes[oe]),Mt(B)&&Mt(H)&&(B.length===oe?B=eB(B.nextSibling,!0):B=B.parentNode,be===0?H=eB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Le=B)));const Ke=Mt(Le)?Le.parentNode:Le;return V(Ke)?Ke:r},tW=(r,g,B,H)=>{const oe=[],be=r.getRoot(),Le=r.getParent(B||CE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||JD(be,g,g.collapsed),r.isBlock);if(Le&&Le!==be&&oe.push(Le),Le&&Ke&&Le!==Ke){let ut;const At=new Xl(Le,be);for(;(ut=At.next())&&ut!==Ke;)r.isBlock(ut)&&oe.push(ut)}return Ke&&Le!==Ke&&Ke!==be&&oe.push(Ke),oe},l6=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(oe=>{const be=r.nodeIndex(H),Le=r.createRng();return Le.setStart(oe,be),Le.setEnd(oe,be+1),B&&(ik(r,Le,H,!0),ik(r,Le,H,!1)),Le})),c6=(r,g)=>ye(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),tB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ak=(r,g,B)=>{const H=B?"lastChild":"firstChild",oe=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[oe];if(be)return be;for(let Le=r.parent;Le&&Le!==g;Le=Le.parent)if(be=Le[oe],be)return be}},nB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!lc(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},rB=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class Hp{static create(g,B){const H=new Hp(g,tB[g]||1);return B&&Ge(B,(oe,be)=>{H.attr(be,oe)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return P(g)&&Ge(g,(be,Le)=>{H.attr(Le,be)}),H;const oe=H.attributes;if(oe){if(B!==void 0){if(B===null){if(g in oe.map){delete oe.map[g];let be=oe.length;for(;be--;)if(oe[be].name===g)return oe.splice(be,1),H}return H}if(g in oe.map){let be=oe.length;for(;be--;)if(oe[be].name===g){oe[be].value=B;break}}else oe.push({name:g,value:B});return oe.map[g]=B,H}return oe.map[g]}}clone(){const g=this,B=new Hp(g.name,g.type),H=g.attributes;if(H){const oe=[];oe.map={};for(let be=0,Le=H.length;bev(r.nodeValue)&&r.nodeValue.includes(Ou),iB=r=>`${r.length===0?"":`${ye(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,rW=(r,g)=>g.querySelectorAll(iB(r)),aB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>oB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),sB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(oB(g)){const B=g.parentNode;return B&&Ot(nW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),oW=r=>aB(r).nextNode()!==null,iW=r=>sB(r).nextNode()!==null,aW=(r,g)=>g.querySelector(iB(r))!==null,sW=(r,g)=>{ve(rW(r,g),B=>{const H=_r.fromDom(B);gu(H,"data-mce-bogus")==="all"?hs(H):ve(r,oe=>{Dc(H,oe)&&tc(H,oe)})})},Mk=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},lB=I(Mk,aB),cB=I(Mk,sB),uB=(r,g)=>{const B=[{condition:U(aW,g),action:U(sW,g)},{condition:oW,action:lB},{condition:iW,action:cB}];let H=r,oe=!1;return ve(B,({condition:be,action:Le})=>{be(H)&&(oe||(H=r.cloneNode(!0),oe=!0),Le(H))}),H},fB=r=>{const g=Pl(r,"[data-mce-bogus]");ve(g,B=>{gu(B,"data-mce-bogus")==="all"?hs(B):Ch(B)?(xc(B,_r.fromText(pl)),hs(B)):Mc(B)})},dB=r=>{const g=Pl(r,"input");ve(g,B=>{tc(B,"name")})},lW=(r,g)=>{const B=tu(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
|)<\\/${B}>[\r ]*|
[\r -]*)$`);return g.replace(H,"")},lW=(r,g)=>{const B=r.getDoc(),H=Ac(_r.fromDom(r.getBody())),oe=_r.fromTag("div",B);ll(oe,"data-mce-bogus","all"),aa(oe,{position:"fixed",left:"-9999999px",top:"0"}),Fu(oe,g.innerHTML),uB(oe),fB(oe);const be=Fh(H);ii(be,oe);const Le=Sd(oe.dom.innerText);return hs(oe),Le},cW=(r,g,B)=>{let H;return g.format==="raw"?H=To.trim(Sd(cB(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=lW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=sW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!xb(_r.fromDom(B))&&v(H)?To.trim(H):H},dB=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new Hp("body",11):""),B=>cW(r,g,B)),hB=To.makeMap,AE=r=>{const g=[];r=r||{};const B=r.indent,H=hB(r.indent_before||""),oe=hB(r.indent_after||""),be=Lm.getEncodeFunc(r.entity_encoding||"raw",r.entities),Le=r.element_format!=="xhtml";return{start:(Ke,ut,At)=>{if(B&&H[Ke]&&g.length>0){const nn=g[g.length-1];nn.length>0&&nn!==` +]*)$`);return g.replace(H,"")},cW=(r,g)=>{const B=r.getDoc(),H=Ac(_r.fromDom(r.getBody())),oe=_r.fromTag("div",B);ll(oe,"data-mce-bogus","all"),aa(oe,{position:"fixed",left:"-9999999px",top:"0"}),Fu(oe,g.innerHTML),fB(oe),dB(oe);const be=Fh(H);ii(be,oe);const Le=Sd(oe.dom.innerText);return hs(oe),Le},uW=(r,g,B)=>{let H;return g.format==="raw"?H=To.trim(Sd(uB(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=cW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=lW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!xb(_r.fromDom(B))&&v(H)?To.trim(H):H},hB=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new Hp("body",11):""),B=>uW(r,g,B)),pB=To.makeMap,AE=r=>{const g=[];r=r||{};const B=r.indent,H=pB(r.indent_before||""),oe=pB(r.indent_after||""),be=Lm.getEncodeFunc(r.entity_encoding||"raw",r.entities),Le=r.element_format!=="xhtml";return{start:(Ke,ut,At)=>{if(B&&H[Ke]&&g.length>0){const nn=g[g.length-1];nn.length>0&&nn!==` `&&g.push(` `)}if(g.push("<",Ke),ut)for(let nn=0,un=ut.length;nn0){const nn=g[g.length-1];nn.length>0&&nn!==` `&&g.push(` @@ -3681,76 +3681,76 @@ Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un, `)},doctype:Ke=>{g.push("",B?` `:"")},reset:()=>{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},rx=(r={},g=zm())=>{const B=AE(r);return r.validate="validate"in r?r.validate:!0,{serialize:oe=>{const be=r.validate,Le={3:ut=>{var At;B.text((At=ut.value)!==null&&At!==void 0?At:"",ut.raw)},8:ut=>{var At;B.comment((At=ut.value)!==null&&At!==void 0?At:"")},7:ut=>{B.pi(ut.name,ut.value)},10:ut=>{var At;B.doctype((At=ut.value)!==null&&At!==void 0?At:"")},4:ut=>{var At;B.cdata((At=ut.value)!==null&&At!==void 0?At:"")},11:ut=>{let At=ut;if(At=At.firstChild)do Ke(At);while(At=At.next)}};B.reset();const Ke=ut=>{var At;const nn=Le[ut.type];if(nn)nn(ut);else{const un=ut.name,yn=un in g.getVoidElements();let Qn=ut.attributes;if(be&&Qn&&Qn.length>1){const rr=[];rr.map={};const Wn=g.getElementRule(ut.name);if(Wn){for(let ur=0,Tr=Wn.attributesOrder.length;ur{pB.add(g)});const mB=new Set;ve(["background-color"],g=>{mB.add(g)});const gB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),W3=(r,g)=>tt(uW(r,g)),fW=r=>pB.has(r),dW=r=>mB.has(r),vB=(r,g)=>de(W3(r,g),B=>fW(B)),hW=(r,g)=>vB(r,g)&&de(W3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(gB,B=>Br(g,B))),mW=(r,g,B)=>{const H=W3(r,g),oe=W3(r,B),be=Le=>{var Ke,ut;const At=(Ke=r.getStyle(g,Le))!==null&&Ke!==void 0?Ke:"",nn=(ut=r.getStyle(B,Le))!==null&&ut!==void 0?ut:"";return lr(At)&&lr(nn)&&At!==nn};return de(H,Le=>{const Ke=ut=>de(ut,At=>At===Le);if(!Ke(oe)&&Ke(gB)){const ut=pW(oe);return de(ut,be)}else return be(Le)})},yB=(r,g,B)=>Y.from(B.container()).filter(Mt).exists(H=>{const oe=r?0:-1;return g(H.data.charAt(B.offset()+oe))}),ME=U(yB,!0,Ry),EE=U(yB,!1,Ry),gW=r=>{const g=r.container();return Mt(g)&&(g.data.length===0||Wx(g.data)&&Pg.isBookmarkNode(g.parentNode))},L2=(r,g)=>B=>H4(r?0:-1,B).filter(g).isSome(),bB=r=>Jn(r)&&rs(_r.fromDom(r),"display")==="block",xB=r=>In(r)&&!rt(r),vW=L2(!0,bB),ha=L2(!1,bB),Y3=L2(!0,Gr),X3=L2(!1,Gr),_B=L2(!0,dt),Ek=L2(!1,dt),I2=L2(!0,xB),D2=L2(!1,xB),yW=r=>r.slice(0,-1),bW=(r,g,B)=>El(g,r)?yW(af(r,H=>B(H)||va(H,g))):[],wB=(r,g)=>bW(r,g,re),k1=(r,g)=>[r].concat(wB(r,g)),c6=(r,g,B)=>G4(r,g,B,gW),sfe=r=>g=>r.isBlock(ma(g)),OB=(r,g,B)=>De(k1(_r.fromDom(g.container()),r),sfe(B)),Fa=(r,g,B,H)=>c6(r,g.dom,B).forall(oe=>OB(g,B,H).fold(()=>!hm(oe,B,g.dom),be=>!hm(oe,B,g.dom)&&El(be,_r.fromDom(oe.container())))),SB=(r,g,B,H)=>OB(g,B,H).fold(()=>c6(r,g.dom,B).forall(oe=>!hm(oe,B,g.dom)),oe=>c6(r,oe.dom,B).isNone()),Ka=U(SB,!1),PE=U(SB,!0),lfe=U(Fa,!1),cfe=U(Fa,!0),xW=r=>h3(r).exists(Th),RE=(r,g,B,H)=>{const oe=Te(k1(_r.fromDom(B.container()),g),Le=>H.isBlock(ma(Le))),be=Ye(oe).getOr(g);return Op(r,be.dom,B).filter(xW)},kB=(r,g,B)=>h3(g).exists(Th)||RE(!0,r,g,B).isSome(),u6=(r,g,B)=>kC(g).exists(Th)||RE(!1,r,g,B).isSome(),TB=U(RE,!1),Ra=U(RE,!0),CB=r=>vo.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),AB=(r,g,B)=>{const H=Te(k1(_r.fromDom(g.container()),r),oe=>B.isBlock(ma(oe)));return Ye(H).getOr(r)},MB=(r,g,B)=>CB(g)?EE(g):EE(g)||Up(AB(r,g,B).dom,g).exists(EE),G3=(r,g,B)=>CB(g)?ME(g):ME(g)||Sp(AB(r,g,B).dom,g).exists(ME),EB=r=>ce(["pre","pre-wrap"],r),LE=r=>h3(r).bind(g=>cl(g,Wl)).exists(g=>EB(rs(g,"white-space"))),_W=(r,g)=>Up(r.dom,g).isNone(),wW=(r,g)=>Sp(r.dom,g).isNone(),PB=(r,g,B)=>_W(r,g)||wW(r,g)||Ka(r,g,B)||PE(r,g,B)||u6(r,g,B)||kB(r,g,B),OW=r=>P(r)&&In(r)&&xC(r),SW=(r,g)=>B=>OW(new Xl(B,r)[g]()),ufe=(r,g)=>{const B=Sp(r.dom,g).getOr(g),H=SW(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},kW=(r,g)=>{const B=Up(r.dom,g).getOr(g),H=SW(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},RB=(r,g,B)=>LE(g)?!1:PB(r,g,B)||MB(r,g,B)||G3(r,g,B),Pk=(r,g,B)=>LE(g)?!1:Ka(r,g,B)||lfe(r,g,B)||u6(r,g,B)||MB(r,g,B)||kW(r,g),TW=r=>{const g=r.container(),B=r.offset();return Mt(g)&&BLE(g)?!1:PE(r,g,B)||cfe(r,g,B)||kB(r,g,B)||G3(r,g,B)||ufe(r,g),IE=(r,g,B)=>Pk(r,g,B)||K3(r,TW(g),B),us=(r,g)=>Hb(r.charAt(g)),DE=(r,g)=>Ry(r.charAt(g)),f6=r=>{const g=r.container();return Mt(g)&&tr(g.data,Pc)},LB=r=>{const g=r.split("");return ye(g,(B,H)=>Hb(B)&&H>0&&H{const oe=g.data,be=vo(g,0);return!B&&us(oe,0)&&!IE(r,be,H)?(g.data=" "+oe.slice(1),!0):B&&DE(oe,0)&&Pk(r,be,H)?(g.data=Pc+oe.slice(1),!0):!1},IB=r=>{const g=r.data,B=LB(g);return B!==g?(r.data=B,!0):!1},zE=(r,g,B,H)=>{const oe=g.data,be=vo(g,oe.length-1);return!B&&us(oe,oe.length-1)&&!IE(r,be,H)?(g.data=oe.slice(0,-1)+" ",!0):B&&DE(oe,oe.length-1)&&K3(r,be,H)?(g.data=oe.slice(0,-1)+Pc,!0):!1},DB=(r,g,B)=>{const H=g.container();if(!Mt(H))return Y.none();if(f6(g)){const oe=BE(r,H,!1,B)||IB(H)||zE(r,H,!1,B);return Bs(oe,g)}else if(IE(r,g,B)){const oe=BE(r,H,!0,B)||zE(r,H,!0,B);return Bs(oe,g)}else return Y.none()},CW=r=>{const g=_r.fromDom(r.getBody());r.selection.isCollapsed()&&DB(g,vo.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},NE=(r,g,B,H)=>{if(B===0)return;const oe=_r.fromDom(r),be=vs(oe,At=>H.isBlock(ma(At))).getOr(oe),Le=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&K3(be,vo(r,r.data.length),H),ut=g===0&&Pk(be,vo(r,0),H);r.replaceData(g,B,Ut(Le,4,ut,Ke))},d6=(r,g,B)=>{const H=r.data.slice(g),oe=H.length-gr(H).length;NE(r,g,oe,B)},FE=(r,g,B)=>{const H=r.data.slice(0,g),oe=H.length-sr(H).length;NE(r,g-oe,oe,B)},$E=(r,g,B,H,oe=!0)=>{const be=sr(r.data).length,Le=oe?r:g,Ke=oe?g:r;return oe?Le.appendData(Ke.data):Le.insertData(0,Ke.data),hs(_r.fromDom(Ke)),H&&d6(Le,be,B),Le},AW=(r,g)=>{const B=r.container(),H=r.offset();return!vo.isTextPosition(r)&&B===g.parentNode&&H>vo.before(g).offset()},MW=(r,g)=>AW(g,r)?vo(g.container(),g.offset()-1):g,EW=r=>Mt(r)?vo(r,0):vo.before(r),PW=r=>Mt(r)?vo(r,r.data.length):vo.after(r),BB=r=>Hh(r.previousSibling)?Y.some(PW(r.previousSibling)):r.previousSibling?Ym(r.previousSibling):Y.none(),h6=r=>Hh(r.nextSibling)?Y.some(EW(r.nextSibling)):r.nextSibling?ph(r.nextSibling):Y.none(),VE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>Up(r,vo.before(B))).orThunk(()=>Sp(r,vo.after(g))),RW=(r,g)=>Sp(r,vo.after(g)).orThunk(()=>Up(r,vo.before(g))),LW=(r,g)=>BB(g).orThunk(()=>h6(g)).orThunk(()=>VE(r,g)),IW=(r,g)=>h6(g).orThunk(()=>BB(g)).orThunk(()=>RW(r,g)),DW=(r,g,B)=>r?IW(g,B):LW(g,B),BW=(r,g,B)=>DW(r,g,B).map(U(MW,B)),zB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},zW=r=>g=>g.dom===r,NW=(r,g)=>g&&Ot(r.schema.getBlockElements(),ma(g)),NB=(r,g,B)=>{if(Ai(r,g)){const H=_r.fromHtml('
');return B?ve(vc(g),oe=>{dk(oe)||hs(oe)}):uf(g),ii(g,H),Y.some(vo.before(H.dom))}else return Y.none()},FW=(r,g,B,H)=>{const oe=sf(r).filter(Ml),be=Bc(r).filter(Ml);return hs(r),yl(oe,be,g,(Le,Ke,ut)=>{const At=Le.dom,nn=Ke.dom,un=At.data.length;return $E(At,nn,B,H),ut.container()===nn?vo(At,un):ut}).orThunk(()=>(H&&(oe.each(Le=>FE(Le.dom,Le.dom.length,B)),be.each(Le=>d6(Le.dom,0,B))),g))},$W=(r,g)=>Ot(r.schema.getTextInlineElements(),ma(g)),T0=(r,g,B,H=!0,oe=!1)=>{const be=BW(g,r.getBody(),B.dom),Le=vs(B,U(NW,r),zW(r.getBody())),Ke=FW(B,be,r.schema,$W(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Le.bind(ut=>NB(r.schema,ut,oe)).fold(()=>{H&&zB(r,g,Ke)},ut=>{H&&zB(r,g,Y.some(ut))})},VW=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,FB=r=>VW.test(r),Nw=(r,g)=>yd(_r.fromDom(g),_y(r))&&!lh(r.schema,g)&&r.dom.isEditable(g),$B=r=>{var g;return cc.DOM.getStyle(r,"direction",!0)==="rtl"||FB((g=r.textContent)!==null&&g!==void 0?g:"")},VB=(r,g,B)=>Te(cc.DOM.getParents(B.container(),"*",g),r),ox=(r,g,B)=>{const H=VB(r,g,B);return Y.from(H[H.length-1])},UB=(r,g,B)=>{const H=My(g,r),oe=My(B,r);return P(H)&&H===oe},jB=r=>s1(r)||Um(r),Gu=(r,g)=>{const B=g.container(),H=g.offset();return r?_p(B)?Mt(B.nextSibling)?vo(B.nextSibling,0):vo.after(B):s1(g)?vo(B,H+1):g:_p(B)?Mt(B.previousSibling)?vo(B.previousSibling,B.previousSibling.data.length):vo.before(B):Um(g)?vo(B,H-1):g},QB=U(Gu,!0),HB=U(Gu,!1),ZB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},UW=r=>{r.execCommand("delete")},p6=r=>ZB(r,"Delete"),B2=r=>ZB(r,"ForwardDelete"),jW=r=>g=>Ia(jc(g),r,va),QW=r=>Np(r)||av(r),Xc=(r,g)=>El(r,g)?cl(g,QW,jW(r)):Y.none(),J3=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},Fw=(r,g,B)=>zi(ph(B),Ym(B),(H,oe)=>{const be=Gu(!0,H),Le=Gu(!1,oe),Ke=Gu(!1,g);return r?Sp(B,Ke).exists(ut=>ut.isEqual(Le)&&g.isEqual(be)):Up(B,Ke).exists(ut=>ut.isEqual(be)&&g.isEqual(Le))}).getOr(!0),qB=r=>(Kf(r)?sf(r):Cc(r)).bind(qB).orThunk(()=>Y.some(r)),$w=(r,g,B,H=!0)=>{var oe;g.deleteContents();const be=qB(B).getOr(B),Le=_r.fromDom((oe=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&oe!==void 0?oe:B.dom);if(Le.dom===r.getBody()?J3(r,H):Ai(r.schema,Le,{checkRootAsContent:!1})&&(xp(Le),H&&r.selection.setCursorLocation(Le.dom,0)),!va(B,Le)){const Ke=Ia(jc(Le),B)?[]:td(Le);ve(Ke.concat(vc(B)),ut=>{!va(ut,Le)&&!El(ut,Le)&&Ai(r.schema,ut)&&hs(ut)})}},C0=r=>g=>va(r,g),Vw=r=>Pl(r,"td,th"),gc=(r,g)=>Tw(_r.fromDom(r),g),Rk=r=>zi(r.startTable,r.endTable,(g,B)=>{const H=_c(g,be=>va(be,B)),oe=_c(B,be=>va(be,g));return!H&&!oe?r:{...r,startTable:H?Y.none():r.startTable,endTable:oe?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),WB=r=>Rk(r),YB=(r,g)=>{const B=gc(r.startContainer,g),H=gc(r.endContainer,g),oe=B.isSome(),be=H.isSome(),Le=zi(B,H,va).getOr(!1);return WB({startTable:B,endTable:H,isStartInTable:oe,isEndInTable:be,isSameTable:Le,isMultiTable:!Le&&oe&&be})},Lk=(r,g)=>({start:r,end:g}),UE=(r,g,B)=>({rng:r,table:g,cells:B}),Uw=kl.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),eS=(r,g)=>bu(_r.fromDom(r),"td,th",g),Ik=r=>!va(r.start,r.end),m6=(r,g)=>Tw(r.start,g).bind(B=>Tw(r.end,g).bind(H=>Bs(va(B,H),B))),XB=(r,g)=>!Ik(r)&&m6(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),GB=(r,g)=>{const B=eS(r.startContainer,g),H=eS(r.endContainer,g);return zi(B,H,Lk)},KB=r=>g=>Tw(g,r).bind(B=>Je(Vw(B)).map(H=>Lk(g,H))),JB=r=>g=>Tw(g,r).bind(B=>Ye(Vw(B)).map(H=>Lk(H,g))),g6=r=>g=>m6(g,r).map(B=>UE(g,B,Vw(B))),jw=(r,g,B,H)=>{if(B.collapsed||!r.forall(Ik))return Y.none();if(g.isSameTable){const oe=r.bind(g6(H));return Y.some({start:oe,end:oe})}else{const oe=eS(B.startContainer,H),be=eS(B.endContainer,H),Le=oe.bind(KB(H)).bind(g6(H)),Ke=be.bind(JB(H)).bind(g6(H));return Y.some({start:Le,end:Ke})}},jE=(r,g)=>Qe(r,B=>va(B,g)),Dk=r=>zi(jE(r.cells,r.rng.start),jE(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),HW=(r,g,B)=>r.exists(H=>XB(H,B)&&S3(H.start,g)),ez=(r,g)=>{const{startTable:B,endTable:H}=g,oe=r.cloneRange();return B.each(be=>oe.setStartAfter(be.dom)),H.each(be=>oe.setEndBefore(be.dom)),oe},tz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>oe.or(be)).bind(oe=>{const{isSameTable:be}=g,Le=Dk(oe).getOr([]);if(be&&oe.cells.length===Le.length)return Y.some(Uw.fullTable(oe.table));if(Le.length>0){if(be)return Y.some(Uw.partialTable(Le,Y.none()));{const Ke=ez(B,g);return Y.some(Uw.partialTable(Le,Y.some({...g,rng:Ke})))}}else return Y.none()}),nz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>{const Le=oe.bind(Dk).getOr([]),Ke=be.bind(Dk).getOr([]);if(Le.length>0&&Ke.length>0){const ut=ez(B,g);return Y.some(Uw.multiTable(Le,Ke,ut))}else return Y.none()}),rz=(r,g)=>{const B=C0(r),H=GB(g,B),oe=YB(g,B);return HW(H,g,B)?H.map(be=>Uw.singleCellTable(g,be.start)):oe.isMultiTable?nz(H,oe,g,B):tz(H,oe,g,B)},Bk=r=>ve(r,g=>{tc(g,"contenteditable"),xp(g)}),oz=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(_r.fromDom),iz=(r,g,B)=>{B.each(H=>{g?hs(H):(xp(H),r.selection.setCursorLocation(H.dom,0))})},v6=(r,g,B,H)=>{const oe=B.cloneRange();H?(oe.setStart(B.startContainer,B.startOffset),oe.setEndAfter(g.dom.lastChild)):(oe.setStartBefore(g.dom.firstChild),oe.setEnd(B.endContainer,B.endOffset)),y6(r,oe,g,!1).each(be=>be())},QE=r=>{const g=k2(r),B=_r.fromDom(r.selection.getNode());Ir(B.dom)&&Ai(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>va(H,B))&&ll(B,"data-mce-selected","1")},HE=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),oe=B.bind(({rng:be,isStartInTable:Le})=>{const Ke=oz(r,Le?be.endContainer:be.startContainer);be.deleteContents(),iz(r,Le,Ke.filter(U(Ai,r.schema)));const ut=Le?g[0]:g[g.length-1];return v6(r,ut,H,Le),Ai(r.schema,ut)?Y.none():Y.some(Le?g.slice(1):g.slice(0,-1))}).getOr(g);Bk(oe),QE(r)}),az=(r,g,B,H)=>Y.some(()=>{const oe=r.selection.getRng(),be=g[0],Le=B[B.length-1];v6(r,be,oe,!0),v6(r,Le,oe,!1);const Ke=Ai(r.schema,be)?g:g.slice(1),ut=Ai(r.schema,Le)?B:B.slice(0,-1);Bk(Ke.concat(ut)),H.deleteContents(),QE(r)}),y6=(r,g,B,H=!0)=>Y.some(()=>{$w(r,g,B,H)}),sz=(r,g)=>Y.some(()=>T0(r,!1,g)),lz=(r,g,B)=>rz(g,B).bind(H=>H.fold(U(y6,r),U(sz,r),U(HE,r),U(az,r))),cz=(r,g)=>zk(r,g),ZE=(r,g,B,H)=>b6(g,H).fold(()=>lz(r,g,B),oe=>cz(r,oe)),uz=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.selection.getRng();return B.length!==0?HE(r,B,Y.none()):ZE(r,H,oe,g)},qE=(r,g)=>De(k1(g,r),my),b6=(r,g)=>De(k1(g,r),Jl("caption")),fz=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).bind(be=>qE(g,_r.fromDom(be.getNode())).bind(Le=>va(Le,H)?Y.none():Y.some(k))),zk=(r,g)=>Y.some(()=>{xp(g),r.selection.setCursorLocation(g.dom,0)}),dz=(r,g,B,H)=>ph(r.dom).bind(oe=>Ym(r.dom).map(be=>g?B.isEqual(oe)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(oe))).getOr(!0),WE=(r,g)=>zk(r,g),x6=(r,g,B)=>b6(r,_r.fromDom(B.getNode())).fold(()=>Y.some(k),H=>Bs(!va(H,g),k)),YE=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).fold(()=>Y.some(k),be=>dz(H,B,oe,be)?WE(r,H):x6(g,H,be)),_6=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return qE(B,H).bind(be=>Ai(r.schema,be,{checkRootAsContent:!1})?zk(r,be):fz(r,B,g,be,oe))},hz=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return Ai(r.schema,H)?zk(r,H):YE(r,B,g,H,oe)},Nk=(r,g)=>r?_B(g):Ek(g),XE=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Nk(g,B)||Op(g,r.getBody(),B).exists(H=>Nk(g,H))},Fk=(r,g,B)=>{const H=_r.fromDom(r.getBody());return b6(H,B).fold(()=>_6(r,g,H,B).orThunk(()=>Bs(XE(r,g),k)),oe=>hz(r,g,H,oe))},$k=(r,g)=>{const B=_r.fromDom(r.selection.getStart(!0)),H=k2(r);return r.selection.isCollapsed()&&H.length===0?Fk(r,g,B):uz(r,B,H)},z2=(r,g)=>{let B=g;for(;B&&B!==r;){if(pn(B)||In(B))return B;B=B.parentNode}return null},tS=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],GE=To.each,Vk=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Le)=>{if(be.nodeName!==Le.nodeName||be.nodeType!==Le.nodeType)return!1;const Ke=At=>{const nn={};return GE(g.getAttribs(At),un=>{const yn=un.nodeName.toLowerCase();yn!=="style"&&!oe(yn)&&(nn[yn]=g.getAttrib(At,yn))}),nn},ut=(At,nn)=>{for(const un in At)if(Ot(At,un)){const yn=nn[un];if(M(yn)||At[un]!==yn)return!1;delete nn[un]}for(const un in nn)if(Ot(nn,un))return!1;return!0};return ne(be)&&ne(Le)&&(!ut(Ke(be),Ke(Le))||!ut(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Le,"style"))))?!1:!pm(be)&&!pm(Le)},oe=be=>de(tS,Le=>Br(be,Le))||B.has(be);return{compare:H,isAttributeInternal:oe}},Qw=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),N2=r=>r.name==="summary",pz=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},mz=(r,g,B,H)=>{const oe=B.name;for(let be=0,Le=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&pz(B,oe=>{mz(r,g,oe,H)}),H},KE=(r,g)=>{const B=(H,oe)=>{Ge(H,be=>{const Le=Me(be.nodes);ve(be.filter.callbacks,Ke=>{for(let ut=Le.length-1;ut>=0;ut--){const At=Le[ut];(!(oe?At.attr(be.filter.name)!==void 0:At.name===be.filter.name)||T(At.parent))&&Le.splice(ut,1)}Le.length>0&&Ke(Le,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},JE=(r,g,B,H={})=>{const oe=ZW(r,g,B);KE(oe,H)},eP=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new Hp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new Hp("#text",3)).value=Pc},qW=r=>{var g;return ix(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Pc},ix=(r,g)=>{const B=r==null?void 0:r.firstChild;return P(B)&&B===r.lastChild&&B.name===g},Hw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},w6=(r,g,B,H)=>H.isEmpty(g,B,oe=>Hw(r,oe)),Rh=(r,g)=>P(r)&&(g(r)||r.name==="br"),WW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},tP=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const oe of H)B&&!g.isValidChild(B.name,oe.name)&&tP(oe,g,B);r.unwrap()}},Ev=(r,g,B,H=k)=>{const oe=g.getTextBlockElements(),be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=To.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ut=new Set,At=nn=>nn!==B&&!Ke[nn.name];for(let nn=0;nn1)if(gz(g,un,yn))tP(un,g);else{Wn.reverse(),Qn=Wn[0].clone(),H(Qn);let ur=Qn;for(let Tr=0;Tr0?(rr=Wn[Tr].clone(),H(rr),ur.append(rr)):rr=ur;for(let Wr=Wn[Tr].firstChild;Wr&&Wr!==Wn[Tr+1];){const Qr=Wr.next;rr.append(Wr),Wr=Qr}ur=rr}w6(g,be,Le,Qn)?yn.insert(un,Wn[0],!0):(yn.insert(Qn,Wn[0],!0),yn.insert(un,Qn)),yn=Wn[0],(w6(g,be,Le,yn)||ix(yn,"br"))&&yn.empty().remove()}else if(un.parent){if(un.name==="li"){let ur=un.prev;if(ur&&(ur.name==="ul"||ur.name==="ol")){ur.append(un);continue}if(ur=un.next,ur&&(ur.name==="ul"||ur.name==="ol")&&ur.firstChild){ur.insert(un,ur.firstChild,!0);continue}const Tr=new Hp("ul",1);H(Tr),un.wrap(Tr);continue}if(g.isValidChild(un.parent.name,"div")&&g.isValidChild("div",un.name)){const ur=new Hp("div",1);H(ur),un.wrap(ur)}else tP(un,g)}}},ml=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},gz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&ml(B,"a")?!0:N2(B)&&Qw(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,YW=(r,g,B,H)=>{const oe=document.createRange();return oe.setStart(r,g),oe.setEnd(B,H),oe},XW=r=>{const g=vo.fromRangeStart(r),B=vo.fromRangeEnd(r),H=r.commonAncestorContainer;return Op(!1,H,B).map(oe=>!hm(g,B,H)&&hm(g,oe,H)?YW(g.container(),g.offset(),oe.container(),oe.offset()):r).getOr(r)},Rc=r=>r.collapsed?r:XW(r),vz=r=>P(r.firstChild)&&r.firstChild===r.lastChild,Uk=r=>r.name==="br"||r.value===Pc,jk=(r,g)=>r.getBlockElements()[g.name]&&vz(g)&&Uk(g.firstChild),Qk=(r,g)=>{const B=r.getNonEmptyElements();return P(g)&&(g.isEmpty(B)||jk(r,g))},Hk=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),Qk(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},yz=r=>{var g,B;const H=r.firstChild,oe=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),oe&&oe.id==="mce_marker"&&((B=oe.parentNode)===null||B===void 0||B.removeChild(oe)),r},ffe=(r,g,B)=>{const H=g.serialize(B),oe=r.createFragment(H);return yz(oe)},dfe=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},hfe=r=>r.data===Pc||gn(r),pfe=r=>P(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&hfe(r.firstChild),GW=r=>!r.firstChild||pfe(r),mfe=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,nP=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},KW=(r,g)=>!!nP(r,g),gfe=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},JW=(r,g)=>{const B=vo.before(r),oe=k0(g).next(B);return oe?oe.toRange():null},Vu=(r,g)=>{const B=vo.after(r),oe=k0(g).prev(B);return oe?oe.toRange():null},bz=(r,g,B,H)=>{const oe=gfe(r,H),be=r.parentNode;return be&&(be.insertBefore(oe[0],r),To.each(g,Le=>{be.insertBefore(Le,r)}),be.insertBefore(oe[1],r),be.removeChild(r)),Vu(g[g.length-1],B)},xz=(r,g,B)=>{const H=r.parentNode;return H&&To.each(g,oe=>{H.insertBefore(oe,r)}),JW(r,B)},eY=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),Vu(g[0],B)),tY=(r,g,B,H)=>{const oe=ffe(g,r,H),be=nP(g,B.startContainer),Le=mfe(dfe(oe.firstChild)),Ke=1,ut=2,At=g.getRoot(),nn=un=>{const yn=vo.fromRangeStart(B),Qn=k0(g.getRoot()),rr=un===Ke?Qn.prev(yn):Qn.next(yn),Wn=rr==null?void 0:rr.getNode();return Wn?nP(g,Wn)!==be:!0};return be?nn(Ke)?xz(be,Le,At):nn(ut)?eY(be,Le,At,g):bz(be,Le,At,B):null},nY=["pre"],eg=(r,g,B,H)=>{var oe;const be=g.firstChild,Le=g.lastChild,Ke=Le.attr("data-mce-type")==="bookmark"?Le.prev:Le,ut=be===Ke,At=ce(nY,be.name);if(ut&&At){const nn=be.attr("contenteditable")!=="false",un=((oe=r.getParent(B,r.isBlock))===null||oe===void 0?void 0:oe.nodeName.toLowerCase())===be.name,yn=Y.from(z2(H,B)).forall(pn);return nn&&un&&yn}else return!1},A0=Ir,rY=(r,g,B)=>{if(P(B)){const H=r.getParent(g.endContainer,A0);return B===H&&S3(_r.fromDom(B),g)}else return!1},rP=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const oe=B.firstChild,be=B.lastChild;!oe||oe===be&&oe.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},oP=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(_r.fromDom).each(H=>_b(H,B))},oY=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const oe=r.getBody(),be=Vk(r),Le="*[data-mce-fragment]",Ke=H.select(Le);To.each(Ke,ut=>{const At=yn=>P(B[yn.nodeName.toLowerCase()]),nn=yn=>yn.childNodes.length===1;if((yn=>!(vB(H,yn)||hW(H,yn)))(ut)&&At(ut)&&nn(ut)){const yn=W3(H,ut),Qn=(Tr,Wr)=>Oe(Tr,Qr=>ce(Wr,Qr)),rr=Tr=>nn(ut)&&H.is(Tr,Le)&&At(Tr)&&(Tr.nodeName===ut.nodeName&&Qn(yn,W3(H,Tr))||rr(Tr.children[0])),Wn=Tr=>P(Tr)&&Tr!==oe&&(be.compare(ut,Tr)||Wn(Tr.parentElement)),ur=Tr=>P(Tr)&&Tr!==oe&&H.is(Tr,Le)&&(mW(H,ut,Tr)||ur(Tr.parentElement));(rr(ut.children[0])||Wn(ut.parentElement)&&!ur(ut.parentElement))&&H.remove(ut,!0)}})}},iY=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},Zk=r=>{To.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},O6=r=>!!r.getAttribute("data-mce-fragment"),iP=(r,g)=>P(g)&&!r.schema.getVoidElements()[g.nodeName],aY=(r,g)=>{var B,H,oe;let be;const Le=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ut=z2(r.getBody(),g);if(ut&&Le.getContentEditable(ut)==="false"){Le.remove(g),Ke.select(ut);return}let At=Le.createRng();const nn=g.previousSibling;if(Mt(nn)){At.setStart(nn,(H=(B=nn.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const Qn=g.nextSibling;Mt(Qn)&&(nn.appendData(Qn.data),(oe=Qn.parentNode)===null||oe===void 0||oe.removeChild(Qn))}else At.setStartBefore(g),At.setEndBefore(g);const un=Qn=>{let rr=vo.fromRangeStart(Qn);return rr=k0(r.getBody()).next(rr),rr==null?void 0:rr.toRange()},yn=Le.getParent(g,Le.isBlock);if(Le.remove(g),yn&&Le.isEmpty(yn)){const Qn=A0(yn);uf(_r.fromDom(yn)),At.setStart(yn,0),At.setEnd(yn,0),!Qn&&!O6(yn)&&(be=un(At))?(At=be,Le.remove(yn)):Le.add(yn,Le.create("br",Qn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(At)},Pv=r=>{const g=r.dom,B=Rc(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,A0);rY(g,B,H)?y6(r,B,_r.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Mt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},sY=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},lY=(r,g,B)=>{var H;return de(B.children(),Qw)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},M0=(r,g,B)=>{var H,oe;const be=r.selection,Le=r.dom,Ke=r.parser,ut=B.merge,At=rx({validate:!0},r.schema),nn='';B.preserve_zwsp||(g=Sd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,nn);let un=be.getRng();const yn=un.startContainer,Qn=r.getBody();yn===Qn&&be.isCollapsed()&&Le.isBlock(Qn.firstChild)&&iP(r,Qn.firstChild)&&Le.isEmpty(Qn.firstChild)&&(un=Le.createRng(),un.setStart(Qn.firstChild,0),un.setEnd(Qn.firstChild,0),be.setRng(un)),be.isCollapsed()||Pv(r);const rr=be.getNode(),Wn={context:rr.nodeName.toLowerCase(),data:B.data,insert:!0},ur=Ke.parse(g,Wn);if(B.paste===!0&&Hk(r.schema,ur)&&KW(Le,rr))return un=tY(At,Le,be.getRng(),ur),un&&be.setRng(un),g;B.paste===!0&&eg(Le,ur,rr,r.getBody())&&((H=ur.firstChild)===null||H===void 0||H.unwrap()),iY(ur);let Tr=ur.lastChild;if(Tr&&Tr.attr("id")==="mce_marker"){const Wr=Tr;for(Tr=Tr.prev;Tr;Tr=Tr.walk(!0))if(Tr.type===3||!Le.isBlock(Tr.name)){Tr.parent&&r.schema.isValidChild(Tr.parent.name,"span")&&Tr.parent.insert(Wr,Tr,Tr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(rr),!Wn.invalid&&!lY(Le,rr,ur))g=At.serialize(ur),rP(r,g,rr);else{r.selection.setContent(nn);let Wr=be.getNode(),Qr;const lo=r.getBody();for(vn(Wr)?Wr=Qr=lo:Qr=Wr;Qr&&Qr!==lo;)Wr=Qr,Qr=Qr.parentNode;g=Wr===lo?lo.innerHTML:Le.getOuterHTML(Wr);const Zo=Ke.parse(g),li=sY(Zo),Mi=li.bind(WW).getOr(Zo);li.each(Fi=>Fi.replace(ur));const Co=ur.children(),yo=(oe=ur.parent)!==null&&oe!==void 0?oe:Zo;ur.unwrap();const Vo=Te(Co,Fi=>gz(r.schema,Fi,yo));Ev(Vo,r.schema,Mi),JE(Ke.getNodeFilters(),Ke.getAttributeFilters(),Zo),g=At.serialize(Zo),Wr===lo?Le.setHTML(lo,g):Le.setOuterHTML(Wr,g)}return oY(r,ut),aY(r,Le.get("mce_marker")),Zk(r.getBody()),oP(Le,be.getStart(),r.schema),Jc(r.schema,r.getBody(),be.getStart()),g},F2=r=>r instanceof Hp,T1=r=>{nx(r)&&ph(r.getBody()).each(g=>{const B=g.getNode(),H=dt(B)?ph(B).getOr(g):g;r.selection.setRng(H.toRange())})},aP=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&T1(r)},rc=(r,g,B,H)=>{if(B=Sd(B),B.length===0||/^\s+$/.test(B)){const oe='
';g.nodeName==="TABLE"?B=""+oe+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+oe+"
  • ");const be=tu(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=oe,B=r.dom.createHTML(be,qd(r),B)):B||(B=oe),aP(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=rx({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const oe=xb(_r.fromDom(g))?B:To.trim(B);return aP(r,oe,H.no_selection),{content:oe,html:oe}}},nS=(r,g,B,H)=>{JE(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const oe=rx({validate:!1},r.schema).serialize(B),be=Sd(xb(_r.fromDom(g))?oe:To.trim(oe));return aP(r,be,H.no_selection),{content:B,html:be}},S6=(r,g,B)=>Y.from(r.getBody()).map(H=>F2(g)?nS(r,H,g,B):rc(r,H,g,B)).getOr({content:g,html:F2(B.content)?"":B.content}),sP=r=>A(r)?r:re,lP=(r,g,B)=>{let H=r.dom;const oe=sP(B);for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H),Le=g(be);if(Le.isSome())return Le;if(oe(be))break}return Y.none()},qk=(r,g,B)=>{const H=g(r),oe=sP(B);return H.orThunk(()=>oe(r)?Y.none():lP(r,g,oe))},cP=Wb,k6=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let oe=0;oe{const be=r.dom.getRoot();if(g===be)return!1;const Le=r.dom.getParent(g,Ke=>k6(r,Ke,B)?!0:Ke.parentNode===be||!!C1(r,Ke,B,H,!0));return!!C1(r,Le,B,H,oe)},Wk=(r,g,B)=>Ed(B)&&cP(g,B.inline)||Cv(B)&&cP(g,B.block)?!0:Gm(B)?ne(g)&&r.is(g,B.selector):!1,fP=(r,g,B,H,oe,be)=>{const Le=B[H],Ke=H==="attributes";if(A(B.onmatch))return B.onmatch(g,B,H);if(Le){if(Sn(Le)){for(let ut=0;ut{const be=r.formatter.get(B),Le=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return uP(r,H,g,B,oe);if(H=r.selection.getNode(),uP(r,H,g,B,oe))return!0;const be=r.selection.getStart();return!!(be!==H&&uP(r,be,g,B,oe))},C6=(r,g,B)=>{const H=[],oe={},be=r.selection.getStart();return r.dom.getParent(be,Le=>{for(let Ke=0;Ke{const B=oe=>va(oe,_r.fromDom(r.getBody())),H=(oe,be)=>C1(r,oe.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(oe=>qk(_r.fromDom(oe),be=>Fe(g,Le=>H(be,Le)),B)).getOrNull()},uY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const oe=r.selection.getStart(),be=R3(H,oe);for(let Le=B.length-1;Le>=0;Le--){const Ke=B[Le];if(!Gm(Ke))return!0;for(let ut=be.length-1;ut>=0;ut--)if(H.is(be[ut],Ke.selector))return!0}}return!1},fY=(r,g,B)=>Ie(B,(H,oe)=>{const be=uk(r,oe);return r.formatter.matchNode(g,oe,{},be)?H.concat([oe]):H},[]),Yk=Ou,dY=(r,g)=>r.importNode(g,!0),dP=r=>{if(r){const g=new Xl(r,r);for(let B=g.current();B;B=g.next())if(Mt(B))return B}return null},hP=r=>{const g=_r.fromTag("span");return Tu(g,{id:y3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&ii(g,_r.fromText(Yk)),g},hY=r=>{const g=dP(r);return g&&g.data.charAt(0)===Yk&&g.deleteData(0,1),g},A6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(D3(g))T0(r,!1,_r.fromDom(g),B,!0);else{const be=oe.getRng(),Le=H.getParent(g,H.isBlock),Ke=be.startContainer,ut=be.startOffset,At=be.endContainer,nn=be.endOffset,un=hY(g);H.remove(g,!0),Ke===un&&ut>0&&be.setStart(un,ut-1),At===un&&nn>0&&be.setEnd(un,nn-1),Le&&H.isEmpty(Le)&&xp(_r.fromDom(Le)),oe.setRng(be)}},M6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(g)A6(r,g,B);else if(g=jb(r.getBody(),oe.getStart()),!g)for(;g=H.get(y3);)A6(r,g,B)},pY=(r,g,B)=>{var H,oe;const be=r.dom,Le=be.getParent(B,U(E3,r.schema));Le&&be.isEmpty(Le)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(a1(_r.fromDom(B)),be.isEmpty(B)?(oe=B.parentNode)===null||oe===void 0||oe.replaceChild(g,B):be.insertAfter(g,B))},_z=(r,g)=>(r.appendChild(g),g),pP=(r,g)=>{var B;const H=Pe(r,(be,Le)=>_z(be,Le.cloneNode(!1)),g),oe=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return _z(H,oe.createTextNode(Yk))},mY=(r,g,B,H,oe,be)=>{const Le=r.formatter,Ke=r.dom,ut=Te(tt(Le.get()),un=>un!==H&&!tr(un,"removeformat")),At=fY(r,B,ut);if(Te(At,un=>!BC(r,un,H)).length>0){const un=B.cloneNode(!1);return Ke.add(g,un),Le.remove(H,oe,un,be),Ke.remove(un),Y.some(un)}else return Y.none()},mP=r=>K_(r,f0(r).replace(new RegExp(`${Pc}$`)," ")),Dg=(r,g)=>{const B=()=>{g!==null&&!r.dom.isEmpty(g)&&sf(_r.fromDom(g)).each(H=>{Ml(H)?mP(H):Qc(H,oe=>Ml(oe)).each(oe=>{Ml(oe)&&mP(oe)})})};r.once("input",H=>{H.data&&!Ry(H.data)&&(H.isComposing?r.once("compositionend",()=>{B()}):B())})},gY=(r,g,B)=>{let H;const oe=r.selection,be=r.formatter.get(g);if(!be)return;const Le=oe.getRng();let Ke=Le.startOffset;const At=Le.startContainer.nodeValue;H=jb(r.getBody(),oe.getStart());const nn=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(At&&Ke>0&&Ke{const oe=r.dom,be=r.selection;let Le=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ut=be.getRng(),At=ut.startContainer,nn=ut.startOffset;let un=At;Mt(At)&&(nn!==At.data.length&&(Le=!0),un=un.parentNode);const yn=[];let Qn;for(;un;){if(C1(r,un,g,B,H)){Qn=un;break}un.nextSibling&&(Le=!0),yn.push(un),un=un.parentNode}if(Qn)if(Le){const rr=be.getBookmark();ut.collapse(!0);let Wn=Xb(oe,ut,Ke,!0);Wn=Xo(Wn),r.formatter.remove(g,B,Wn,H),be.moveToBookmark(rr)}else{const rr=jb(r.getBody(),Qn),Wn=P(rr)?oe.getParents(Qn.parentNode,q,rr):[],ur=hP(!1).dom;pY(r,ur,rr??Qn);const Tr=mY(r,ur,Qn,g,B,H),Wr=pP([...yn,...Tr.toArray(),...Wn],ur);rr&&A6(r,rr,P(rr)),be.setCursorLocation(Wr,1),Dg(r,ur),oe.isEmpty(Qn)&&oe.remove(Qn)}},gP=(r,g,B)=>{const H=r.selection,oe=r.getBody();M6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===Yk&&M6(r,jb(oe,H.getStart()),!0),(g===37||g===39)&&M6(r,jb(oe,H.getStart()),!0)},vP=r=>Mt(r)&&$r(r.data,Pc),Oz=r=>{r.on("mouseup keydown",g=>{gP(r,g.keyCode,vP(r.selection.getRng().endContainer))})},yP=r=>{const g=hP(!1),B=pP(r,g.dom);return{caretContainer:g,caretPosition:vo(B,0)}},Sz=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return xc(_r.fromDom(r),B),hs(_r.fromDom(r)),H},vY=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return r.insertNode(B.dom),H},E6=(r,g)=>{if(Xm(g.dom))return!1;const B=r.schema.getTextInlineElements();return Ot(B,ma(g))&&!Xm(g.dom)&&!et(g.dom)},rS={},Bg=xe(["pre"]),yY=(r,g)=>{rS[r]||(rS[r]=[]),rS[r].push(g)},bY=(r,g)=>{Ot(rS,r)&&ve(rS[r],B=>{B(g)})};yY("pre",r=>{const g=r.selection.getRng(),B=oe=>be=>{const Le=be.previousSibling;return Bg(Le)&&ce(oe,Le)},H=(oe,be)=>{const Le=_r.fromDom(be),Ke=$f(Le).dom;hs(Le),Yl(_r.fromDom(oe),[_r.fromTag("br",Ke),_r.fromTag("br",Ke),...vc(Le)])};if(!g.collapsed){const oe=r.selection.getSelectedBlocks(),be=Te(Te(oe,Bg),B(oe));ve(be,Le=>{H(Le.previousSibling,Le)})}});const xY=["fontWeight","fontStyle","color","fontSize","fontFamily"],bP=r=>_(r.styles)&&de(tt(r.styles),g=>ce(xY,g)),_Y=r=>De(r,g=>Ed(g)&&g.inline==="span"&&bP(g)),wY=(r,g)=>{const B=r.get(g);return C(B)?_Y(B):Y.none()},kz=(r,g)=>Up(g,vo.fromRangeStart(r)).isNone(),P6=(r,g)=>Sp(g,vo.fromRangeEnd(r)).exists(B=>!gn(B.getNode())||Sp(g,B).isSome())===!1,A1=r=>g=>ro(g)&&r.isEditable(g),xP=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return kz(B,g[0])&&P6(B,g[0])?g:[];{const H=Ye(g).filter(Le=>kz(B,Le)).toArray(),oe=Je(g).filter(Le=>P6(B,Le)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(oe)}},R6=r=>Te(xP(r),A1(r.dom)),L6=r=>Te(r.getSelectedBlocks(),A1(r.dom)),_P=To.each,I6=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Tz=(r,g)=>{for(let B=r;B;B=B[g]){if(Mt(B)&&lr(B.data))return r;if(ne(B)&&!pm(B))return B}return r},wP=(r,g,B)=>{const H=Vk(r),oe=V(g)&&r.dom.isEditable(g),be=V(B)&&r.dom.isEditable(B);if(oe&&be){const Le=Tz(g,"previousSibling"),Ke=Tz(B,"nextSibling");if(H.compare(Le,Ke)){for(let ut=Le.nextSibling;ut&&ut!==Ke;){const At=ut;ut=ut.nextSibling,Le.appendChild(At)}return r.dom.remove(Ke),To.each(To.grep(Ke.childNodes),ut=>{Le.appendChild(ut)}),Le}}return B},D6=(r,g,B,H)=>{var oe;if(H&&g.merge_siblings!==!1){const be=(oe=wP(r,M3(H),H))!==null&&oe!==void 0?oe:H;wP(r,be,M3(be,!0))}},OY=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";_P(r.select(H,B),oe=>{I6(oe)&&r.isEditable(oe)&&_P(g.styles,(be,Le)=>{r.setStyle(oe,Le,"")})})}},B6=(r,g,B)=>{_P(r.childNodes,H=>{I6(H)&&(g(H)&&B(H),H.hasChildNodes()&&B6(H,g,B))})},SY=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},$2=(r,g)=>B=>!!(B&&Cw(r,B,g)),OP=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),SY(r,H)},Zw=kl.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Cz=/^(src|href|style)$/,SP=To.each,z6=Wb,kY=r=>/^(TR|TH|TD)$/.test(r.nodeName),Az=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),Mz=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],oe=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&oe&&oe--,H=H.childNodes[oe>be?be:oe]}return Mt(H)&&B&&oe>=H.data.length&&(H=new Xl(H,r.getBody()).next()||H),Mt(H)&&!B&&oe===0&&(H=new Xl(H,r.getBody()).prev()||H),H},kP=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return kY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},TP=(r,g,B,H)=>{var oe;const be=r.create(B,H);return(oe=g.parentNode)===null||oe===void 0||oe.insertBefore(be,g),be.appendChild(g),be},N6=(r,g,B,H,oe)=>{const be=_r.fromDom(g),Le=_r.fromDom(r.create(H,oe)),Ke=B?xd(be):Vd(be);return Yl(Le,Ke),B?(xc(be,Le),jd(Le,be)):(Kc(be,Le),ii(Le,be)),Le.dom},qw=(r,g)=>g.links&&r.nodeName==="A",Ez=(r,g,B)=>{const H=g.parentNode;let oe;const be=r.dom,Le=tu(r);Cv(B)&&H===be.getRoot()&&(!B.list_block||!z6(g,B.list_block))&&ve(Me(g.childNodes),Ke=>{Ly(r,Le,Ke.nodeName.toLowerCase())?oe?oe.appendChild(Ke):(oe=TP(be,Ke,Le),be.setAttribs(oe,qd(r))):oe=null}),!(Av(B)&&!z6(B.inline,g))&&be.remove(g,!0)},Pz=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Tv(g,B)},Xk=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},CP=(r,g,B,H,oe)=>{let be=!1;SP(B.styles,(Le,Ke)=>{const{name:ut,value:At}=Pz(Ke,Le,H),nn=DC(At,ut);(B.remove_similar||x(At)||!ne(oe)||z6(Cw(r,oe,ut),nn))&&r.setStyle(g,ut,""),be=!0}),be&&Xk(r,g)},Rz=(r,g,B)=>{g==="removeformat"?ve(L6(r.selection),H=>{ve(xY,oe=>r.dom.setStyle(H,oe,"")),Xk(r.dom,H)}):wY(r.formatter,g).each(H=>{ve(L6(r.selection),oe=>CP(r.dom,oe,H,B,null))})},Lz=(r,g,B,H,oe)=>{const be=r.dom,Le=Vk(r),Ke=r.schema;if(Ed(g)&&Hc(Ke,g.inline)&&lh(Ke,H)&&H.parentElement===r.getBody())return Ez(r,H,g),Zw.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!Wk(be,H,g)&&!qw(H,g))return Zw.keep();const ut=H,At=g.preserve_attributes;if(Ed(g)&&g.remove==="all"&&C(At)){const nn=Te(be.getAttribs(ut),un=>ce(At,un.name.toLowerCase()));if(be.removeAllAttribs(ut),ve(nn,un=>be.setAttrib(ut,un.name,un.value)),nn.length>0)return Zw.rename("span")}if(g.remove!=="all"){CP(be,ut,g,B,oe),SP(g.attributes,(un,yn)=>{const{name:Qn,value:rr}=Pz(yn,un,B);if(g.remove_similar||x(rr)||!ne(oe)||z6(be.getAttrib(oe,Qn),rr)){if(Qn==="class"){const Wn=be.getAttrib(ut,Qn);if(Wn){let ur="";if(ve(Wn.split(/\s+/),Tr=>{/mce\-\w+/.test(Tr)&&(ur+=(ur?" ":"")+Tr)}),ur){be.setAttrib(ut,Qn,ur);return}}}if(Cz.test(Qn)&&ut.removeAttribute("data-mce-"+Qn),Qn==="style"&&xe(["li"])(ut)&&be.getStyle(ut,"list-style-type")==="none"){ut.removeAttribute(Qn),be.setStyle(ut,"list-style-type","none");return}Qn==="class"&&ut.removeAttribute("className"),ut.removeAttribute(Qn)}}),SP(g.classes,un=>{un=Tv(un,B),(!ne(oe)||be.hasClass(oe,un))&&be.removeClass(ut,un)});const nn=be.getAttribs(ut);for(let un=0;un{let be;return g.parentNode&&ve(R3(r.dom,g.parentNode).reverse(),Le=>{if(!be&&ne(Le)&&Le.id!=="_start"&&Le.id!=="_end"){const Ke=C1(r,Le,B,H,oe);Ke&&Ke.split!==!1&&(be=Le)}}),be},TY=(r,g,B,H)=>Lz(r,g,B,H,H).fold($(H),oe=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,oe)),$(null)),Ww=(r,g,B,H,oe,be,Le,Ke)=>{var ut,At;let nn,un;const yn=r.dom;if(B){const Qn=B.parentNode;for(let rr=H.parentNode;rr&&rr!==Qn;rr=rr.parentNode){let Wn=yn.clone(rr,!1);for(let ur=0;ur{const be=r.formatter.get(g),Le=be[0],Ke=r.dom,ut=r.selection,At=Wn=>{const ur=Iz(r,Wn,g,B,oe);return Ww(r,be,ur,Wn,Wn,!0,Le,B)},nn=Wn=>pm(Wn)&&ne(Wn)&&(Wn.id==="_start"||Wn.id==="_end"),un=Wn=>de(be,ur=>oS(r,ur,B,Wn,Wn)),yn=Wn=>{const ur=Me(Wn.childNodes),Wr=un(Wn)||de(be,Zo=>Wk(Ke,Wn,Zo)),Qr=Wn.parentNode;if(!Wr&&P(Qr)&&fk(Le)&&un(Qr),Le.deep&&ur.length)for(let Zo=0;Zo{ne(Wn)&&r.dom.getStyle(Wn,"text-decoration")===Zo&&Wn.parentNode&&ck(Ke,Wn.parentNode)===Zo&&oS(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:Zo}},void 0,Wn)})},Qn=Wn=>{const ur=Ke.get(Wn?"_start":"_end");if(ur){let Tr=ur[Wn?"firstChild":"lastChild"];return nn(Tr)&&(Tr=Tr[Wn?"firstChild":"lastChild"]),Mt(Tr)&&Tr.data.length===0&&(Tr=Wn?ur.previousSibling||ur.nextSibling:ur.nextSibling||ur.previousSibling),Ke.remove(ur,!0),Tr}else return null},rr=Wn=>{let ur,Tr,Wr=Xb(Ke,Wn,be,Wn.collapsed);if(Le.split){if(Wr=Xo(Wr),ur=Mz(r,Wr,!0),Tr=Mz(r,Wr),ur!==Tr){if(ur=kP(ur,!0),Tr=kP(Tr,!1),Az(Ke,ur,Tr)){const lo=Y.from(ur.firstChild).getOr(ur);At(N6(Ke,lo,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Qn(!0);return}if(Az(Ke,Tr,ur)){const lo=Y.from(Tr.lastChild).getOr(Tr);At(N6(Ke,lo,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Qn(!1);return}ur=TP(Ke,ur,"span",{id:"_start","data-mce-type":"bookmark"}),Tr=TP(Ke,Tr,"span",{id:"_end","data-mce-type":"bookmark"});const Qr=Ke.createRng();Qr.setStartAfter(ur),Qr.setEndBefore(Tr),Ew(Ke,Qr,lo=>{ve(lo,Zo=>{!pm(Zo)&&!pm(Zo.parentNode)&&At(Zo)})}),At(ur),At(Tr),ur=Qn(!0),Tr=Qn()}else ur=Tr=At(ur);Wr.startContainer=ur.parentNode?ur.parentNode:ur,Wr.startOffset=Ke.nodeIndex(ur),Wr.endContainer=Tr.parentNode?Tr.parentNode:Tr,Wr.endOffset=Ke.nodeIndex(Tr)+1}Ew(Ke,Wr,Qr=>{ve(Qr,yn)})};if(H){if(C3(H)){const Wn=Ke.createRng();Wn.setStartBefore(H),Wn.setEndAfter(H),rr(Wn)}else rr(H);mm(r,g,H,B);return}!ut.isCollapsed()||!Ed(Le)||k2(r).length?(_1(r,()=>k3(r,rr),Wn=>Ed(Le)&&T6(r,g,B,Wn)),r.nodeChanged()):wz(r,g,B,oe),Rz(r,g,B),mm(r,g,H,B)},AP=(r,g,B,H,oe)=>{(H||r.selection.isEditable())&&Dz(r,g,B,H,oe)},oS=(r,g,B,H,oe)=>Lz(r,g,B,H,oe).fold(re,be=>(r.dom.rename(H,be),!0),q),Gk=To.each,Bz=(r,g,B,H)=>{const oe=be=>{if(V(be)&&ne(be.parentNode)&&r.isEditable(be)){const Le=ck(r,be.parentNode);r.getStyle(be,"color")&&Le?r.setStyle(be,"text-decoration",Le):r.getStyle(be,"text-decoration")===Le&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(To.walk(H,oe,"childNodes"),oe(H))},CY=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const oe=$2(r,"fontSize");B6(H,be=>oe(be)&&r.isEditable(be),OP(r,"backgroundColor",Tv(g.styles.backgroundColor,B)))}},zz=(r,g,B,H)=>{if(Ed(g)&&(g.inline==="sub"||g.inline==="sup")){const oe=$2(r,"fontSize");B6(H,Le=>oe(Le)&&r.isEditable(Le),OP(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},AY=(r,g,B,H)=>{Gk(g,oe=>{Ed(oe)&&Gk(r.dom.select(oe.inline,H),be=>{I6(be)&&oS(r,oe,B,be,oe.exact?be:null)}),OY(r.dom,oe,H)})},MY=(r,g,B,H,oe)=>{const be=oe.parentNode;C1(r,be,B,H)&&oS(r,g,H,oe)||g.merge_with_parents&&be&&r.dom.getParent(be,Le=>C1(r,Le,B,H)?(oS(r,g,H,oe),!0):!1)},Yw=To.each,Nz=(r,g,B,H)=>{if(t3(r)&&Ed(g)&&B.parentNode){const oe=n1(r.schema),be=sh(_r.fromDom(B),Le=>Xm(Le.dom));return cn(oe,H)&&Hi(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},F6=(r,g,B,H)=>{if(Yw(B.styles,(oe,be)=>{r.setStyle(g,be,Tv(oe,H))}),B.styles){const oe=r.getAttrib(g,"style");oe&&r.setAttrib(g,"data-mce-style",oe)}},EY=(r,g,B,H)=>{const oe=r.formatter.get(g),be=oe[0],Le=!H&&r.selection.isCollapsed(),Ke=r.dom,ut=r.selection,At=(rr,Wn=be)=>{A(Wn.onformat)&&Wn.onformat(rr,Wn,B,H),F6(Ke,rr,Wn,B),Yw(Wn.attributes,(ur,Tr)=>{Ke.setAttrib(rr,Tr,Tv(ur,B))}),Yw(Wn.classes,ur=>{const Tr=Tv(ur,B);Ke.hasClass(rr,Tr)||Ke.addClass(rr,Tr)})},nn=(rr,Wn)=>{let ur=!1;return Yw(rr,Tr=>Gm(Tr)?Ke.getContentEditable(Wn)==="false"&&!Tr.ceFalseOverride||P(Tr.collapsed)&&Tr.collapsed!==Le?!0:Ke.is(Wn,Tr.selector)&&!Xm(Wn)?(At(Wn,Tr),ur=!0,!1):!0:!1),ur},un=rr=>{if(v(rr)){const Wn=Ke.create(rr);return At(Wn),Wn}else return null},yn=(rr,Wn,ur)=>{const Tr=[];let Wr=!0;const Qr=be.inline||be.block,lo=un(Qr),Zo=Co=>I3(be)&&C1(r,Co,g,B),li=(Co,yo,Vo)=>{const Fi=zC(be)&&E3(r.schema,Co)&&Ly(r,yo,Qr);return Vo&&Fi},Mi=(Co,yo,Vo,Fi)=>{const la=Co.nodeName.toLowerCase(),bs=Ly(r,Qr,la)&&Ly(r,yo,Qr),Ms=!ur&&Mt(Co)&&Wx(Co.data),wl=Xm(Co),Vl=!Ed(be)||!rr.isBlock(Co);return(Vo||Fi)&&bs&&!Ms&&!wl&&Vl};Ew(rr,Wn,Co=>{let yo;const Vo=Fi=>{let la=!1,bs=Wr,Ms=!1;const wl=Fi.parentNode,Vl=wl.nodeName.toLowerCase(),Uu=rr.getContentEditable(Fi);P(Uu)&&(bs=Wr,Wr=Uu==="true",la=!0,Ms=lk(r,Fi));const Wf=Wr&&!la;if(gn(Fi)&&!Nz(r,be,Fi,Vl)){yo=null,Cv(be)&&rr.remove(Fi);return}if(Zo(Fi)){yo=null;return}if(li(Fi,Vl,Wf)){const ic=rr.rename(Fi,Qr);At(ic),Tr.push(ic),yo=null;return}if(Gm(be)){let ic=nn(oe,Fi);if(!ic&&P(wl)&&fk(be)&&(ic=nn(oe,wl)),!Ed(be)||ic){yo=null;return}}P(lo)&&Mi(Fi,Vl,Wf,Ms)?(yo||(yo=rr.clone(lo,!1),wl.insertBefore(yo,Fi),Tr.push(yo)),Ms&&la&&(Wr=bs),yo.appendChild(Fi)):(yo=null,ve(Me(Fi.childNodes),Vo),la&&(Wr=bs),yo=null)};ve(Co,Vo)}),be.links===!0&&ve(Tr,Co=>{const yo=Vo=>{Vo.nodeName==="A"&&At(Vo,be),ve(Me(Vo.childNodes),yo)};yo(Co)}),ve(Tr,Co=>{const yo=la=>{let bs=0;return ve(la.childNodes,Ms=>{!ak(Ms)&&!pm(Ms)&&bs++}),bs},Vo=la=>De(la.childNodes,A3).filter(Ms=>rr.getContentEditable(Ms)!=="false"&&Wk(rr,Ms,be)).map(Ms=>{const wl=rr.clone(Ms,!1);return At(wl),rr.replace(wl,la,!0),rr.remove(Ms,!0),wl}).getOr(la),Fi=yo(Co);if((Tr.length>1||!rr.isBlock(Co))&&Fi===0){rr.remove(Co,!0);return}(Ed(be)||Cv(be)&&be.wrapper)&&(!be.exact&&Fi===1&&(Co=Vo(Co)),AY(r,oe,B,Co),MY(r,be,g,B,Co),CY(rr,be,B,Co),Bz(rr,be,B,Co),zz(rr,be,B,Co),D6(r,be,B,Co))})},Qn=C3(H)?H:ut.getNode();if(Ke.getContentEditable(Qn)==="false"&&!lk(r,Qn)){H=Qn,nn(oe,H),Jm(r,g,H,B);return}if(be){if(H)if(C3(H)){if(!nn(oe,H)){const rr=Ke.createRng();rr.setStartBefore(H),rr.setEndAfter(H),yn(Ke,Xb(Ke,rr,oe),!0)}}else yn(Ke,H,!0);else!Le||!Ed(be)||k2(r).length?(ut.setRng(Rc(ut.getRng())),_1(r,()=>{k3(r,(rr,Wn)=>{const ur=Wn?rr:Xb(Ke,rr,oe);yn(Ke,ur,!1)})},q),r.nodeChanged()):gY(r,g,B),wY(r.formatter,g).each(rr=>{ve(R6(r.selection),Wn=>F6(Ke,Wn,rr,B))});bY(g,r)}Jm(r,g,H,B)},Fz=(r,g,B,H)=>{(H||r.selection.isEditable())&&EY(r,g,B,H)},MP=r=>Ot(r,"vars"),EP=(r,g)=>{r.set({}),g.on("NodeChange",B=>{Uz(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(oe=>C3(oe)?oe:oe.startContainer).bind(oe=>ne(oe)?Y.some(oe):Y.from(oe.parentElement)).getOrThunk(()=>PP(g));Uz(g,H,r.get())})},PP=r=>r.selection.getStart(),$z=(r,g,B,H,oe)=>ze(g,Ke=>{const ut=r.formatter.matchNode(Ke,B,oe??{},H);return!M(ut)},Ke=>k6(r,Ke,B)?!0:H?!1:P(r.formatter.matchNode(Ke,B,oe,!0))),Vz=(r,g)=>{const B=g??PP(r);return Te(R3(r.dom,B),H=>ne(H)&&!et(H))},Uz=(r,g,B)=>{const H=Vz(r,g);Ge(B,(oe,be)=>{const Le=Ke=>{const ut=$z(r,H,be,Ke.similar,MP(Ke)?Ke.vars:void 0),At=ut.isSome();if(Ke.state.get()!==At){Ke.state.set(At);const nn=ut.getOr(g);MP(Ke)?Ke.callback(At,{node:nn,format:be,parents:H}):ve(Ke.callbacks,un=>un(At,{node:nn,format:be,parents:H}))}};ve([oe.withSimilar,oe.withoutSimilar],Le),ve(oe.withVars,Le)})},$6=(r,g,B,H,oe,be)=>{const Le=g.get();ve(B.split(","),Ke=>{const ut=Et(Le,Ke).getOrThunk(()=>{const nn={withSimilar:{state:Ar(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ar(!1),similar:!1,callbacks:[]},withVars:[]};return Le[Ke]=nn,nn}),At=()=>{const nn=Vz(r);return $z(r,nn,Ke,oe,be).isSome()};if(M(be)){const nn=oe?ut.withSimilar:ut.withoutSimilar;nn.callbacks.push(H),nn.callbacks.length===1&&nn.state.set(At())}else ut.withVars.push({state:Ar(At()),similar:oe,vars:be,callback:H})}),g.set(Le)},ax=(r,g,B)=>{const H=r.get();ve(g.split(","),oe=>Et(H,oe).each(be=>{H[oe]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Le=>Le!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Le=>Le!==B)},withVars:Te(be.withVars,Le=>Le.callback!==B)}})),r.set(H)},PY=(r,g,B,H,oe,be)=>($6(r,g,B,H,oe,be),{unbind:()=>ax(g,B,H)}),RP=(r,g,B,H)=>{const oe=r.formatter.get(g);oe&&(T6(r,g,B,H)&&(!("toggle"in oe[0])||oe[0].toggle)?AP(r,g,B,H):Fz(r,g,B,H))},pf=To.explode,V6=()=>{const r={};return{addFilter:(oe,be)=>{ve(pf(oe),Le=>{Ot(r,Le)||(r[Le]={name:Le,callbacks:[]}),r[Le].callbacks.push(be)})},getFilters:()=>tn(r),removeFilter:(oe,be)=>{ve(pf(oe),Le=>{if(Ot(r,Le))if(P(be)){const Ke=r[Le],ut=Te(Ke.callbacks,At=>At!==be);ut.length>0?Ke.callbacks=ut:delete r[Le]}else delete r[Le]})}}},LP=(r,g)=>{ve(g,B=>{r.attr(B,null)})},sx=(r,g,B)=>{r.addNodeFilter("font",H=>{ve(H,oe=>{const be=g.parse(oe.attr("style")),Le=oe.attr("color"),Ke=oe.attr("face"),ut=oe.attr("size");Le&&(be.color=Le),Ke&&(be["font-family"]=Ke),ut&&eo(ut).each(At=>{be["font-size"]=B[At-1]}),oe.name="span",oe.attr("style",g.serialize(be)),LP(oe,["color","face","size"])})})},jz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const oe=g.type!=="html4";ve(H,be=>{if(oe)be.name="s";else{const Le=B.parse(be.attr("style"));Le["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Le))}})})},Qz=(r,g,B)=>{var H;const oe=U_();g.convert_fonts_to_spans&&sx(r,oe,To.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),jz(r,B,oe)},Kk=(r,g,B)=>{g.inline_styles&&Qz(r,g,B)},RY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),LY=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V2=r=>{const[g,...B]=r.split(","),H=B.join(","),oe=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(oe){const be=oe[2]===";base64",Le=be?LY(H):decodeURIComponent(H);return Y.some({type:oe[1],data:Le,base64Encoded:be})}else return Y.none()},Hz=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const oe=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V2(r).bind(({type:H,data:oe,base64Encoded:be})=>Hz(H,oe,be)).fold(()=>B("Invalid data URI"),g)}),IY=r=>Br(r,"blob:")?RY(r):Br(r,"data:")?Xw(r):Promise.reject("Unknown URI format"),lx=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var oe;B((oe=H.error)===null||oe===void 0?void 0:oe.message)},H.readAsDataURL(r)});let DY=0;const E0=r=>(r||"blobid")+DY++,iS=(r,g,B)=>V2(r).bind(({data:H,type:oe,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Le=be?H:btoa(H);return B(Le,oe)}}),U6=(r,g,B)=>{const H=r.create(E0(),g,B);return r.add(H),H},j6=(r,g,B=!1)=>iS(g,B,(H,oe)=>Y.from(r.getByData(H,oe)).orThunk(()=>Hz(oe,H).map(be=>U6(r,be,H)))),BY=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(Br(g,"blob:")){const H=r.getByUri(g);return P(H)?Promise.resolve(H):IY(g).then(oe=>lx(oe).then(be=>iS(be,!1,Le=>Y.some(U6(r,oe,Le))).getOrThunk(B)))}else return Br(g,"data:")?j6(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},Q6=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,zY=r=>Y.from(r.match(Q6)).bind(g=>Ze(g,1)).map(g=>Br(g,"www.")?g.substring(4):g),P0=(r,g)=>{Y.from(r.attr("src")).bind(zY).forall(B=>!ce(g,B))&&r.attr("sandbox","")},aS=(r,g)=>Br(r,`${g}/`),Zz=r=>M(r)?"iframe":aS(r,"image")?"img":aS(r,"video")?"video":aS(r,"audio")?"audio":"iframe",IP=({type:r,src:g,width:B,height:H}={},oe,be)=>{const Le=Zz(r),Ke=new Hp(Le,1);return Ke.attr(Le==="audio"?{src:g}:{src:g,width:B,height:H}),(Le==="audio"||Le==="video")&&Ke.attr("controls",""),Le==="iframe"&&oe&&P0(Ke,be),Ke},DP=r=>P(r.attr("data-mce-bogus")),Gw=r=>r.attr("src")===Nr.transparentSrc||P(r.attr("data-mce-placeholder")),BP=(r,g)=>{const{blob_cache:B}=g;if(B){const H=oe=>{const be=oe.attr("src");Gw(oe)||DP(oe)||T(be)||j6(B,be,!0).each(Le=>{oe.attr("src",Le.blobUri())})};r.addAttributeFilter("src",oe=>ve(oe,H))}},NY=(r,g)=>{var B,H;const oe=r.schema;r.addAttributeFilter("href",ut=>{let At=ut.length;const nn=yn=>yn.split(" ").filter(rr=>rr.length>0).concat(["noopener"]).sort().join(" "),un=yn=>{const Qn=yn?To.trim(yn):"";return/\b(noopener)\b/g.test(Qn)?Qn:nn(Qn)};if(!g.allow_unsafe_link_target)for(;At--;){const yn=ut[At];yn.name==="a"&&yn.attr("target")==="_blank"&&yn.attr("rel",un(yn.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ut=>{let At=ut.length,nn,un,yn,Qn;for(;At--;)if(Qn=ut[At],Qn.name==="a"&&Qn.firstChild&&!Qn.attr("href"))for(yn=Qn.parent,nn=Qn.lastChild;nn&&yn;)un=nn.prev,yn.insert(nn,Qn),nn=un}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ut=>{let At=ut.length,nn,un;for(;At--;)if(nn=ut[At],un=nn.parent,un&&(un.name==="ul"||un.name==="ol"))if(nn.prev&&nn.prev.name==="li")nn.prev.append(nn);else{const yn=new Hp("li",1);yn.attr("style","list-style-type: none"),nn.wrap(yn)}});const be=oe.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ut=>{var At;let nn=ut.length;for(;nn--;){const un=ut[nn],yn=(At=un.attr("class"))!==null&&At!==void 0?At:"",Qn=To.explode(yn," ");let rr="";for(let Wn=0;Wnve(ut,At=>{At.replace(IP({type:At.attr("type"),src:At.name==="object"?At.attr("data"):At.attr("src"),width:At.attr("width"),height:At.attr("height")},Le,Ke))})),Le&&r.addNodeFilter("iframe",ut=>ve(ut,At=>P0(At,Ke)))},{entries:zP,setPrototypeOf:qz,isFrozen:FY,getPrototypeOf:$Y,getOwnPropertyDescriptor:VY}=Object;let{freeze:lp,seal:Rv,create:Wz}=Object,{apply:Jk,construct:NP}=typeof Reflect<"u"&&Reflect;Jk||(Jk=function(g,B,H){return g.apply(B,H)}),lp||(lp=function(g){return g}),Rv||(Rv=function(g){return g}),NP||(NP=function(g,B){return new g(...B)});const Yz=M1(Array.prototype.forEach),Xz=M1(Array.prototype.pop),e5=M1(Array.prototype.push),H6=M1(String.prototype.toLowerCase),FP=M1(String.prototype.toString),UY=M1(String.prototype.match),Lv=M1(String.prototype.replace),jY=M1(String.prototype.indexOf),QY=M1(String.prototype.trim),R0=M1(RegExp.prototype.test),t5=HY(TypeError);function M1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),oe=1;oe/gm),XY=Rv(/\${[\w\W]*}/gm),GY=Rv(/^data-[\-\w.\u00B7-\uFFFF]/),KY=Rv(/^aria-[\-\w]+$/),eN=Rv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QP=Rv(/^(?:\w+script|data):/i),tN=Rv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),JY=Rv(/^html$/i);var lS=Object.freeze({__proto__:null,MUSTACHE_EXPR:WY,ERB_EXPR:YY,TMPLIT_EXPR:XY,DATA_ATTR:GY,ARIA_ATTR:KY,IS_ALLOWED_URI:eN,IS_SCRIPT_OR_DATA:QP,ATTR_WHITESPACE:tN,DOCTYPE_NAME:JY});const eX=()=>typeof window>"u"?null:window,nN=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const oe="data-tt-policy-suffix";B&&B.hasAttribute(oe)&&(H=B.getAttribute(oe));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Le){return Le},createScriptURL(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function rN(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eX();const g=Ps=>rN(Ps);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:oe}=r;const{DocumentFragment:be,HTMLTemplateElement:Le,Node:Ke,Element:ut,NodeFilter:At,NamedNodeMap:nn=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:un,DOMParser:yn,trustedTypes:Qn}=r,rr=ut.prototype,Wn=n5(rr,"cloneNode"),ur=n5(rr,"nextSibling"),Tr=n5(rr,"childNodes"),Wr=n5(rr,"parentNode");if(typeof Le=="function"){const Ps=oe.createElement("template");Ps.content&&Ps.content.ownerDocument&&(oe=Ps.content.ownerDocument)}let Qr,lo="";const{implementation:Zo,createNodeIterator:li,createDocumentFragment:Mi,getElementsByTagName:Co}=oe,{importNode:yo}=B;let Vo={};g.isSupported=typeof zP=="function"&&typeof Wr=="function"&&Zo&&Zo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fi,ERB_EXPR:la,TMPLIT_EXPR:bs,DATA_ATTR:Ms,ARIA_ATTR:wl,IS_SCRIPT_OR_DATA:Vl,ATTR_WHITESPACE:Uu}=lS;let{IS_ALLOWED_URI:Wf}=lS,ic=null;const vi=oc({},[...Gz,...U2,...$P,...VP,...UP]);let na=null;const ol=oc({},[...Kz,...jP,...Jz,...Z6]);let Ti=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pa=null,ps=null,Ci=!0,ms=!0,Es=!1,Bd=!0,Cl=!1,dd=!1,z0=!1,$v=!1,Cp=!1,Om=!1,Hg=!1,Sm=!0,Zg=!1;const ca="user-content-";let Zs=!0,ru=!1,ju={},Pf=null;const Gd=oc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rf=null;const Lf=oc({},["audio","video","img","source","image","track"]);let fp=null;const N0=oc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),F0="http://www.w3.org/1998/Math/MathML",$0="http://www.w3.org/2000/svg",rg="http://www.w3.org/1999/xhtml";let jy=rg,gx=!1,yO=null;const b8=oc({},[F0,$0,rg],FP);let Qy;const HS=["application/xhtml+xml","text/html"],xL="text/html";let qh,bO=null;const _L=oe.createElement("form"),wL=function(xo){return xo instanceof RegExp||xo instanceof Function},Hy=function(xo){if(!(bO&&bO===xo)){if((!xo||typeof xo!="object")&&(xo={}),xo=sS(xo),Qy=HS.indexOf(xo.PARSER_MEDIA_TYPE)===-1?Qy=xL:Qy=xo.PARSER_MEDIA_TYPE,qh=Qy==="application/xhtml+xml"?FP:H6,ic="ALLOWED_TAGS"in xo?oc({},xo.ALLOWED_TAGS,qh):vi,na="ALLOWED_ATTR"in xo?oc({},xo.ALLOWED_ATTR,qh):ol,yO="ALLOWED_NAMESPACES"in xo?oc({},xo.ALLOWED_NAMESPACES,FP):b8,fp="ADD_URI_SAFE_ATTR"in xo?oc(sS(N0),xo.ADD_URI_SAFE_ATTR,qh):N0,Rf="ADD_DATA_URI_TAGS"in xo?oc(sS(Lf),xo.ADD_DATA_URI_TAGS,qh):Lf,Pf="FORBID_CONTENTS"in xo?oc({},xo.FORBID_CONTENTS,qh):Gd,pa="FORBID_TAGS"in xo?oc({},xo.FORBID_TAGS,qh):{},ps="FORBID_ATTR"in xo?oc({},xo.FORBID_ATTR,qh):{},ju="USE_PROFILES"in xo?xo.USE_PROFILES:!1,Ci=xo.ALLOW_ARIA_ATTR!==!1,ms=xo.ALLOW_DATA_ATTR!==!1,Es=xo.ALLOW_UNKNOWN_PROTOCOLS||!1,Bd=xo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cl=xo.SAFE_FOR_TEMPLATES||!1,dd=xo.WHOLE_DOCUMENT||!1,Cp=xo.RETURN_DOM||!1,Om=xo.RETURN_DOM_FRAGMENT||!1,Hg=xo.RETURN_TRUSTED_TYPE||!1,$v=xo.FORCE_BODY||!1,Sm=xo.SANITIZE_DOM!==!1,Zg=xo.SANITIZE_NAMED_PROPS||!1,Zs=xo.KEEP_CONTENT!==!1,ru=xo.IN_PLACE||!1,Wf=xo.ALLOWED_URI_REGEXP||eN,jy=xo.NAMESPACE||rg,Ti=xo.CUSTOM_ELEMENT_HANDLING||{},xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ti.tagNameCheck=xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ti.attributeNameCheck=xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&typeof xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ti.allowCustomizedBuiltInElements=xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cl&&(ms=!1),Om&&(Cp=!0),ju&&(ic=oc({},[...UP]),na=[],ju.html===!0&&(oc(ic,Gz),oc(na,Kz)),ju.svg===!0&&(oc(ic,U2),oc(na,jP),oc(na,Z6)),ju.svgFilters===!0&&(oc(ic,$P),oc(na,jP),oc(na,Z6)),ju.mathMl===!0&&(oc(ic,VP),oc(na,Jz),oc(na,Z6))),xo.ADD_TAGS&&(ic===vi&&(ic=sS(ic)),oc(ic,xo.ADD_TAGS,qh)),xo.ADD_ATTR&&(na===ol&&(na=sS(na)),oc(na,xo.ADD_ATTR,qh)),xo.ADD_URI_SAFE_ATTR&&oc(fp,xo.ADD_URI_SAFE_ATTR,qh),xo.FORBID_CONTENTS&&(Pf===Gd&&(Pf=sS(Pf)),oc(Pf,xo.FORBID_CONTENTS,qh)),Zs&&(ic["#text"]=!0),dd&&oc(ic,["html","head","body"]),ic.table&&(oc(ic,["tbody"]),delete pa.tbody),xo.TRUSTED_TYPES_POLICY){if(typeof xo.TRUSTED_TYPES_POLICY.createHTML!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Qr=xo.TRUSTED_TYPES_POLICY,lo=Qr.createHTML("")}else Qr===void 0&&(Qr=nN(Qn,H)),Qr!==null&&typeof lo=="string"&&(lo=Qr.createHTML(""));lp&&lp(xo),bO=xo}},vT=oc({},["mi","mo","mn","ms","mtext"]),ho=oc({},["foreignobject","desc","title","annotation-xml"]),bo=oc({},["title","style","font","a","script"]),di=oc({},U2);oc(di,$P),oc(di,ZY);const ri=oc({},VP);oc(ri,qY);const Ta=function(xo){let Ji=Wr(xo);(!Ji||!Ji.tagName)&&(Ji={namespaceURI:jy,tagName:"template"});const Ba=H6(xo.tagName),mf=H6(Ji.tagName);return yO[xo.namespaceURI]?xo.namespaceURI===$0?Ji.namespaceURI===rg?Ba==="svg":Ji.namespaceURI===F0?Ba==="svg"&&(mf==="annotation-xml"||vT[mf]):!!di[Ba]:xo.namespaceURI===F0?Ji.namespaceURI===rg?Ba==="math":Ji.namespaceURI===$0?Ba==="math"&&ho[mf]:!!ri[Ba]:xo.namespaceURI===rg?Ji.namespaceURI===$0&&!ho[mf]||Ji.namespaceURI===F0&&!vT[mf]?!1:!ri[Ba]&&(bo[Ba]||!di[Ba]):!!(Qy==="application/xhtml+xml"&&yO[xo.namespaceURI]):!1},zs=function(xo){e5(g.removed,{element:xo});try{xo.parentNode.removeChild(xo)}catch{xo.remove()}},Su=function(xo,Ji){try{e5(g.removed,{attribute:Ji.getAttributeNode(xo),from:Ji})}catch{e5(g.removed,{attribute:null,from:Ji})}if(Ji.removeAttribute(xo),xo==="is"&&!na[xo])if(Cp||Om)try{zs(Ji)}catch{}else try{Ji.setAttribute(xo,"")}catch{}},V0=function(xo){let Ji,Ba;if($v)xo=""+xo;else{const l=UY(xo,/^[\r\n\t ]+/);Ba=l&&l[0]}Qy==="application/xhtml+xml"&&jy===rg&&(xo=''+xo+"");const mf=Qr?Qr.createHTML(xo):xo;if(jy===rg)try{Ji=new yn().parseFromString(mf,Qy)}catch{}if(!Ji||!Ji.documentElement){Ji=Zo.createDocument(jy,"template",null);try{Ji.documentElement.innerHTML=gx?lo:mf}catch{}}const Ap=Ji.body||Ji.documentElement;return xo&&Ba&&Ap.insertBefore(oe.createTextNode(Ba),Ap.childNodes[0]||null),jy===rg?Co.call(Ji,dd?"html":"body")[0]:dd?Ji.documentElement:Ap},ZS=function(xo){return li.call(xo.ownerDocument||xo,xo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},tie=function(xo){return xo instanceof un&&(typeof xo.nodeName!="string"||typeof xo.textContent!="string"||typeof xo.removeChild!="function"||!(xo.attributes instanceof nn)||typeof xo.removeAttribute!="function"||typeof xo.setAttribute!="function"||typeof xo.namespaceURI!="string"||typeof xo.insertBefore!="function"||typeof xo.hasChildNodes!="function")},x8=function(xo){return typeof Ke=="object"?xo instanceof Ke:xo&&typeof xo=="object"&&typeof xo.nodeType=="number"&&typeof xo.nodeName=="string"},Zy=function(xo,Ji,Ba){Vo[xo]&&Yz(Vo[xo],mf=>{mf.call(g,Ji,Ba,bO)})},nQ=function(xo){let Ji;if(Zy("beforeSanitizeElements",xo,null),tie(xo))return zs(xo),!0;const Ba=qh(xo.nodeName);if(Zy("uponSanitizeElement",xo,{tagName:Ba,allowedTags:ic}),xo.hasChildNodes()&&!x8(xo.firstElementChild)&&(!x8(xo.content)||!x8(xo.content.firstElementChild))&&R0(/<[/\w]/g,xo.innerHTML)&&R0(/<[/\w]/g,xo.textContent))return zs(xo),!0;if(!ic[Ba]||pa[Ba]){if(!pa[Ba]&&oQ(Ba)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba)))return!1;if(Zs&&!Pf[Ba]){const mf=Wr(xo)||xo.parentNode,Ap=Tr(xo)||xo.childNodes;if(Ap&&mf){const l=Ap.length;for(let N=l-1;N>=0;--N)mf.insertBefore(Wn(Ap[N],!0),ur(xo))}}return zs(xo),!0}return xo instanceof ut&&!Ta(xo)||(Ba==="noscript"||Ba==="noembed"||Ba==="noframes")&&R0(/<\/no(script|embed|frames)/i,xo.innerHTML)?(zs(xo),!0):(Cl&&xo.nodeType===3&&(Ji=xo.textContent,Ji=Lv(Ji,Fi," "),Ji=Lv(Ji,la," "),Ji=Lv(Ji,bs," "),xo.textContent!==Ji&&(e5(g.removed,{element:xo.cloneNode()}),xo.textContent=Ji)),Zy("afterSanitizeElements",xo,null),!1)},rQ=function(xo,Ji,Ba){if(Sm&&(Ji==="id"||Ji==="name")&&(Ba in oe||Ba in _L))return!1;if(!(ms&&!ps[Ji]&&R0(Ms,Ji))){if(!(Ci&&R0(wl,Ji))){if(!na[Ji]||ps[Ji]){if(!(oQ(xo)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,xo)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(xo))&&(Ti.attributeNameCheck instanceof RegExp&&R0(Ti.attributeNameCheck,Ji)||Ti.attributeNameCheck instanceof Function&&Ti.attributeNameCheck(Ji))||Ji==="is"&&Ti.allowCustomizedBuiltInElements&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba))))return!1}else if(!fp[Ji]){if(!R0(Wf,Lv(Ba,Uu,""))){if(!((Ji==="src"||Ji==="xlink:href"||Ji==="href")&&xo!=="script"&&jY(Ba,"data:")===0&&Rf[xo])){if(!(Es&&!R0(Vl,Lv(Ba,Uu,"")))){if(Ba)return!1}}}}}}return!0},oQ=function(xo){return xo.indexOf("-")>0},iQ=function(xo){let Ji,Ba,mf,Ap;Zy("beforeSanitizeAttributes",xo,null);const{attributes:l}=xo;if(!l)return;const N={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:na};for(Ap=l.length;Ap--;){Ji=l[Ap];const{name:W,namespaceURI:fe}=Ji;Ba=W==="value"?Ji.value:QY(Ji.value);const Se=Ba;if(mf=qh(W),N.attrName=mf,N.attrValue=Ba,N.keepAttr=!0,N.forceKeepAttr=void 0,Zy("uponSanitizeAttribute",xo,N),Ba=N.attrValue,N.forceKeepAttr)continue;if(!N.keepAttr){Su(W,xo);continue}if(!Bd&&R0(/\/>/i,Ba)){Su(W,xo);continue}Cl&&(Ba=Lv(Ba,Fi," "),Ba=Lv(Ba,la," "),Ba=Lv(Ba,bs," "));const Be=qh(xo.nodeName);if(!rQ(Be,mf,Ba)){Su(W,xo);continue}if(Zg&&(mf==="id"||mf==="name")&&(Su(W,xo),Ba=ca+Ba),Qr&&typeof Qn=="object"&&typeof Qn.getAttributeType=="function"&&!fe)switch(Qn.getAttributeType(Be,mf)){case"TrustedHTML":{Ba=Qr.createHTML(Ba);break}case"TrustedScriptURL":{Ba=Qr.createScriptURL(Ba);break}}if(Ba!==Se)try{fe?xo.setAttributeNS(fe,W,Ba):xo.setAttribute(W,Ba)}catch{Su(W,xo)}}Zy("afterSanitizeAttributes",xo,null)},nie=function Ps(xo){let Ji;const Ba=ZS(xo);for(Zy("beforeSanitizeShadowDOM",xo,null);Ji=Ba.nextNode();)Zy("uponSanitizeShadowNode",Ji,null),!nQ(Ji)&&(Ji.content instanceof be&&Ps(Ji.content),iQ(Ji));Zy("afterSanitizeShadowDOM",xo,null)};return g.sanitize=function(Ps){let xo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ji,Ba,mf,Ap;if(gx=!Ps,gx&&(Ps=""),typeof Ps!="string"&&!x8(Ps))if(typeof Ps.toString=="function"){if(Ps=Ps.toString(),typeof Ps!="string")throw t5("dirty is not a string, aborting")}else throw t5("toString is not a function");if(!g.isSupported)return Ps;if(z0||Hy(xo),g.removed=[],typeof Ps=="string"&&(ru=!1),ru){if(Ps.nodeName){const W=qh(Ps.nodeName);if(!ic[W]||pa[W])throw t5("root node is forbidden and cannot be sanitized in-place")}}else if(Ps instanceof Ke)Ji=V0(""),Ba=Ji.ownerDocument.importNode(Ps,!0),Ba.nodeType===1&&Ba.nodeName==="BODY"||Ba.nodeName==="HTML"?Ji=Ba:Ji.appendChild(Ba);else{if(!Cp&&!Cl&&!dd&&Ps.indexOf("<")===-1)return Qr&&Hg?Qr.createHTML(Ps):Ps;if(Ji=V0(Ps),!Ji)return Cp?null:Hg?lo:""}Ji&&$v&&zs(Ji.firstChild);const l=ZS(ru?Ps:Ji);for(;mf=l.nextNode();)nQ(mf)||(mf.content instanceof be&&nie(mf.content),iQ(mf));if(ru)return Ps;if(Cp){if(Om)for(Ap=Mi.call(Ji.ownerDocument);Ji.firstChild;)Ap.appendChild(Ji.firstChild);else Ap=Ji;return(na.shadowroot||na.shadowrootmode)&&(Ap=yo.call(B,Ap,!0)),Ap}let N=dd?Ji.outerHTML:Ji.innerHTML;return dd&&ic["!doctype"]&&Ji.ownerDocument&&Ji.ownerDocument.doctype&&Ji.ownerDocument.doctype.name&&R0(JY,Ji.ownerDocument.doctype.name)&&(N=" -`+N),Cl&&(N=Lv(N,Fi," "),N=Lv(N,la," "),N=Lv(N,bs," ")),Qr&&Hg?Qr.createHTML(N):N},g.setConfig=function(Ps){Hy(Ps),z0=!0},g.clearConfig=function(){bO=null,z0=!1},g.isValidAttribute=function(Ps,xo,Ji){bO||Hy({});const Ba=qh(Ps),mf=qh(xo);return rQ(Ba,mf,Ji)},g.addHook=function(Ps,xo){typeof xo=="function"&&(Vo[Ps]=Vo[Ps]||[],e5(Vo[Ps],xo))},g.removeHook=function(Ps){if(Vo[Ps])return Xz(Vo[Ps])},g.removeHooks=function(Ps){Vo[Ps]&&(Vo[Ps]=[])},g.removeAllHooks=function(){Vo={}},g}var cS=rN();const HP=To.each,Id=To.trim,vfe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],yfe={ftp:21,http:80,https:443,mailto:25},bfe=["img","video"],xfe=(r,g)=>P(r)?!r:P(g)?!ce(bfe,g):!0,E1=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},r5=(r,g,B)=>{const H=E1(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?xfe(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class cp{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),oe=/data:([^;]+)/.exec(H[0]);return oe&&(B=oe[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const oe=Lm.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!r5(H,oe,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Id(g),this.settings=B;const H=B.base_uri,oe=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){oe.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new cp(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+oe.toAbsPath(Ke,g);else{const ut=/([^#?]*)([#?]?.*)/.exec(g);ut&&(g=(H&&H.protocol||"http")+"://mce_host"+oe.toAbsPath(Ke,ut[1])+ut[2])}}g=g.replace(/@@/g,"(mce_at)");const Le=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Le&&HP(vfe,(Ke,ut)=>{let At=Le[ut];At&&(At=At.replace(/\(mce_at\)/g,"@@")),oe[Ke]=At}),H&&(oe.protocol||(oe.protocol=H.protocol),oe.userInfo||(oe.userInfo=H.userInfo),!oe.port&&oe.host==="mce_host"&&(oe.port=H.port),(!oe.host||oe.host==="mce_host")&&(oe.host=H.host),oe.source=""),be&&(oe.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new cp(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),oe=B.getURI();if(H===oe||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===oe)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new cp(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?yfe[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,oe="",be,Le;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ut=B.split("/");if(Ke.length>=ut.length){for(be=0,Le=Ke.length;be=ut.length||Ke[be]!==ut[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ut[be]){H=be+1;break}}if(H===1)return B;for(be=0,Le=Ke.length-(H-1);be{un&&Ke.push(un)});const ut=[];for(let un=Le.length-1;un>=0;un--)if(!(Le[un].length===0||Le[un]===".")){if(Le[un]===".."){H++;continue}if(H>0){H--;continue}ut.push(Le[un])}const At=Ke.length-H;let nn;return At<=0?nn=ke(ut).join("/"):nn=Ke.slice(0,At).join("/")+"/"+ke(ut).join("/"),nn.indexOf("/")!==0&&(nn="/"+nn),oe&&nn.lastIndexOf("/")!==nn.length-1&&(nn+=oe),nn}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const j2=To.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),ZP="data-mce-type";let oN=0;const Kw=(r,g,B,H,oe)=>{var be,Le,Ke,ut;const At=g.validate,nn=B.getSpecialElements();r.nodeType===Tc&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const un=(Le=oe==null?void 0:oe.tagName)!==null&&Le!==void 0?Le:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){P(oe)&&(oe.allowedTags[un]=!0);return}if(r.nodeType!==zf||un==="body")return;const yn=_r.fromDom(r),Qn=Dc(yn,ZP),rr=gu(yn,"data-mce-bogus");if(!Qn&&v(rr)){rr==="all"?hs(yn):Mc(yn);return}const Wn=B.getElementRule(un);if(At&&!Wn){Ot(nn,un)?hs(yn):Mc(yn);return}else P(oe)&&(oe.allowedTags[un]=!0);if(At&&Wn&&!Qn){if(ve((Ke=Wn.attributesForced)!==null&&Ke!==void 0?Ke:[],ur=>{ll(yn,ur.name,ur.value==="{$uid}"?`mce_${oN++}`:ur.value)}),ve((ut=Wn.attributesDefault)!==null&&ut!==void 0?ut:[],ur=>{Dc(yn,ur.name)||ll(yn,ur.name,ur.value==="{$uid}"?`mce_${oN++}`:ur.value)}),Wn.attributesRequired&&!de(Wn.attributesRequired,ur=>Dc(yn,ur))){Mc(yn);return}if(Wn.removeEmptyAttrs&&Lp(yn)){Mc(yn);return}Wn.outputName&&Wn.outputName!==un&&ov(yn,Wn.outputName)}},uS=(r,g,B,H,oe)=>{const be=r.tagName.toLowerCase(),{attrName:Le,attrValue:Ke}=oe;oe.keepAttr=Jw(g,B,H,be,Le,Ke),oe.keepAttr?(oe.allowedAttributes[Le]=!0,W6(Le,B)&&(oe.attrValue=Le),g.allow_svg_data_urls&&Br(Ke,"data:image/svg+xml")&&(oe.forceKeepAttr=!0)):q6(r,Le)&&(oe.forceKeepAttr=!0)},Jw=(r,g,B,H,oe,be)=>B!=="html"&&!Hs(H)?!0:!(oe in j2&&r5(r,be,H))&&(!r.validate||g.isValid(H,oe)||Br(oe,"data-")||Br(oe,"aria-")),q6=(r,g)=>r.hasAttribute(ZP)&&(g==="id"||g==="class"||g==="style"),W6=(r,g)=>r in g.getBoolAttrs(),iN=(r,g,B,H)=>{const{attributes:oe}=r;for(let be=oe.length-1;be>=0;be--){const Le=oe[be],Ke=Le.name,ut=Le.value;!Jw(g,B,H,r.tagName.toLowerCase(),Ke,ut)&&!q6(r,Ke)?r.removeAttribute(Ke):W6(Ke,B)&&r.setAttribute(Ke,Ke)}},aN=(r,g,B)=>{const H=cS();return H.addHook("uponSanitizeElement",(oe,be)=>{Kw(oe,r,g,B.track(oe),be)}),H.addHook("uponSanitizeAttribute",(oe,be)=>{uS(oe,r,g,B.current(),be)}),H},tX=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},nX=r=>{const g=Yu(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(oe=>`xlink:${oe}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};cS().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};cS().sanitize(r,B)}else throw new Error("Not a namespace element")},sN=(r,g)=>{const B=Tt();if(r.sanitize){const H=aN(r,g,B);return{sanitizeHtmlElement:(be,Le)=>{H.sanitize(be,tX(r,Le)),H.removed=[],B.reset()},sanitizeNamespaceElement:nX}}else return{sanitizeHtmlElement:(be,Le)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ut;for(;ut=Ke.nextNode();){const At=B.track(ut);Kw(ut,r,g,At),ne(ut)&&iN(ut,r,g,At)}B.reset()},sanitizeNamespaceElement:k}},lN=To.makeMap,cN=To.extend,uN=(r,g,B,H)=>{const oe=r.name,be=oe in B&&oe!=="title"&&oe!=="textarea"&&oe!=="noscript",Le=g.childNodes;for(let Ke=0,ut=Le.length;Ke{const H=[];for(let oe=r,be=oe;oe;be=oe,oe=oe.walk()){const Le=oe;ve(g,Ke=>Ke(Le)),T(Le.parent)&&Le!==r?oe=be:H.push(Le)}for(let oe=H.length-1;oe>=0;oe--){const be=H[oe];ve(B,Le=>Le(be))}},oX=(r,g,B,H)=>{const oe=B.validate,be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=cN(lN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ut=n1(g),At=/[ \t\r\n]+/g,nn=/^[ \t\r\n]+/,un=/[ \t\r\n]+$/,yn=Wr=>{let Qr=Wr.parent;for(;P(Qr);){if(Qr.name in Le)return!0;Qr=Qr.parent}return!1},Qn=Wr=>{let Qr=Wr;for(;P(Qr);){if(Qr.name in ut)return w6(g,be,Le,Qr);Qr=Qr.parent}return!1},rr=Wr=>Wr.name in Ke||ch(g,Wr)||Hs(Wr.name)&&Wr.parent===r,Wn=(Wr,Qr)=>{const lo=Qr?Wr.prev:Wr.next;return P(lo)||T(Wr.parent)?!1:rr(Wr.parent)&&(Wr.parent!==r||H.isRootContent===!0)};return[Wr=>{var Qr;if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";lo=lo.replace(At," "),(Rh(Wr.prev,rr)||Wn(Wr,!0))&&(lo=lo.replace(nn,"")),lo.length===0||lo===" "&&Wr.prev&&Wr.prev.type===Tc&&Wr.next&&Wr.next.type===Tc?Wr.remove():Wr.value=lo}},Wr=>{var Qr;if(Wr.type===1){const lo=g.getElementRule(Wr.name);if(oe&&lo){const Zo=w6(g,be,Le,Wr);lo.paddInEmptyBlock&&Zo&&Qn(Wr)?eP(B,H,rr,Wr):lo.removeEmpty&&Zo?rr(Wr)?Wr.remove():Wr.unwrap():lo.paddEmpty&&(Zo||qW(Wr))&&eP(B,H,rr,Wr)}}else if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";(Wr.next&&rr(Wr.next)||Wn(Wr,!1))&&(lo=lo.replace(un,"")),lo.length===0?Wr.remove():Wr.value=lo}}]},fN=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},fS=(r={},g=zm())=>{const B=V6(),H=V6(),oe={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Le=sN(oe,g),Ke=(Qr,lo,Zo="html")=>{const li=Zo==="xhtml"?"application/xhtml+xml":"text/html",Mi=Ot(g.getSpecialElements(),lo.toLowerCase()),Co=Mi?`<${lo}>${Qr}`:Qr,yo=()=>Zo==="xhtml"?`${Co}`:/^[\s]*${Co}`:`${Co}`,Vo=be.parseFromString(yo(),li).body;return Le.sanitizeHtmlElement(Vo,li),Mi?Vo.firstChild:Vo},ut=B.addFilter,At=B.getFilters,nn=B.removeFilter,un=H.addFilter,yn=H.getFilters,Qn=H.removeFilter,rr=(Qr,lo)=>{gz(g,Qr)&&lo.push(Qr)},Wn=(Qr,lo)=>{const Zo=v(lo.attr(ZP)),li=lo.type===1&&!Ot(Qr,lo.name)&&!ch(g,lo)&&!Hs(lo.name);return lo.type===3||li&&!Zo},ur=(Qr,lo)=>{const Zo=cN(lN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),li=/^[ \t\r\n]+/,Mi=/[ \t\r\n]+$/;let Co=Qr.firstChild,yo=null;const Vo=Fi=>{var la,bs;Fi&&(Co=Fi.firstChild,Co&&Co.type===3&&(Co.value=(la=Co.value)===null||la===void 0?void 0:la.replace(li,"")),Co=Fi.lastChild,Co&&Co.type===3&&(Co.value=(bs=Co.value)===null||bs===void 0?void 0:bs.replace(Mi,"")))};if(g.isValidChild(Qr.name,lo.toLowerCase())){for(;Co;){const Fi=Co.next;Wn(Zo,Co)?(yo||(yo=new Hp(lo,1),yo.attr(oe.forced_root_block_attrs),Qr.insert(yo,Co)),yo.append(Co)):(Vo(yo),yo=null),Co=Fi}Vo(yo)}},Wr={schema:g,addAttributeFilter:un,getAttributeFilters:yn,removeAttributeFilter:Qn,addNodeFilter:ut,getNodeFilters:At,removeNodeFilter:nn,parse:(Qr,lo={})=>{var Zo;const li=oe.validate,Mi=(Zo=lo.context)!==null&&Zo!==void 0?Zo:oe.root_name,Co=Ke(Qr,Mi,lo.format);Cs(g,Co);const yo=new Hp(Mi,11);uN(yo,Co,g.getSpecialElements(),Le.sanitizeNamespaceElement),Co.innerHTML="";const[Vo,Fi]=oX(yo,g,oe,lo),la=[],bs=li?Uu=>rr(Uu,la):k,Ms={nodes:{},attributes:{}},wl=Uu=>mz(At(),yn(),Uu,Ms);if(rX(yo,[Vo,wl],[Fi,bs]),la.reverse(),li&&la.length>0)if(lo.context){const{pass:Uu,fail:Wf}=we(la,ic=>ic.parent===yo);Ev(Wf,g,yo,wl),lo.invalid=Uu.length>0}else Ev(la,g,yo,wl);const Vl=fN(oe,lo);return Vl&&(yo.name==="body"||lo.isRootContent)&&ur(yo,Vl),lo.invalid||KE(Ms,lo),yo}};return NY(Wr,oe),Kk(Wr,oe,g),Wr},o5=r=>F2(r)?rx({validate:!1}).serialize(r):r,qP=(r,g,B)=>{const H=o5(r),oe=g(H);if(oe.isDefaultPrevented())return oe;if(F2(r))if(oe.content!==H){const be=fS({validate:!1,forced_root_block:!1,...B}).parse(oe.content,{context:r.name});return{...oe,content:be}}else return{...oe,content:r};else return oe},dN=r=>({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r)}),WP=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=MD(r,g);return B.isDefaultPrevented()?Vs.error(Rw(r,{content:"",...B}).content):Vs.value(B)}},hN=(r,g,B)=>B.no_events?g:qP(g,oe=>Rw(r,{...B,content:oe}),dN(r)).content,Y6=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=qP(g.content,H=>U3(r,{...g,content:H}),dN(r));return B.isDefaultPrevented()?(Pw(r,B),Vs.error(void 0)):Vs.value(B)}},YP=(r,g,B)=>{B.no_events||Pw(r,{...B,content:g})},XP=(r,g,B)=>({element:r,width:g,rows:B}),GP=(r,g)=>({element:r,cells:g}),pN=(r,g)=>({x:r,y:g}),KP=(r,g)=>ec(r,g).bind(eo).getOr(1),mN=(r,g,B,H,oe)=>{const be=KP(oe,"rowspan"),Le=KP(oe,"colspan"),Ke=r.rows;for(let ut=B;ut{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},vN=(r,g,B)=>{for(;gN(r,g,B);)g++;return g},yN=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),bN=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Le=r.rows;for(let Ke=B;Ke<=oe;Ke++){const ut=Le[Ke].cells,At=g{const H=g.x,oe=g.y,be=B.x,Le=B.y,Ke=oe{const B=im(r.element),H=_r.fromTag("tbody");return Yl(H,g),ii(B,H),B},_N=r=>ye(r.rows,g=>{const B=ye(g.cells,oe=>{const be=Qh(oe);return tc(be,"colspan"),tc(be,"rowspan"),be}),H=im(g.element);return Yl(H,B),H}),wN=r=>{const g=XP(im(r),0,[]);return ve(Pl(r,"tr"),(B,H)=>{ve(Pl(B,"td,th"),(oe,be)=>{mN(g,vN(g,be,H),H,B,oe)})}),XP(g.element,yN(g.rows),g.rows)},X6=r=>i5(r,_N(r)),iX=(r,g,B)=>bN(r,g).bind(H=>bN(r,B).map(oe=>JP(r,H,oe))),aX=r=>De(r,g=>ma(g)==="ul"||ma(g)==="ol"),eO=(r,g)=>De(r,B=>ma(B)==="li"&&S3(B,g)).fold($([]),B=>aX(r).map(H=>{const oe=_r.fromTag(ma(H)),be=Yt(Gc(H),(Le,Ke)=>Br(Ke,"list-style"));return aa(oe,be),[_r.fromTag("li"),oe]}).getOr([])),e7=(r,g)=>{const B=Ie(g,(H,oe)=>(ii(oe,H),oe),r);return g.length>0?he([B]):B},ON=r=>av(r)?jc(r).filter(d0).fold($([]),g=>[r,g]):d0(r)?[r]:[],a5=(r,g,B)=>{const H=_r.fromDom(g.commonAncestorContainer),oe=k1(H,r),be=Te(oe,ut=>B.isWrapper(ma(ut))),Le=eO(oe,g),Ke=be.concat(Le.length?Le:ON(H));return ye(Ke,im)},t7=()=>he([]),n7=(r,g,B)=>e7(_r.fromDom(g.cloneContents()),a5(r,g,B)),SN=(r,g)=>ts(g,"table",U(va,r)),kN=(r,g)=>SN(r,g[0]).bind(B=>{const H=g[0],oe=g[g.length-1],be=wN(B);return iX(be,H,oe).map(Le=>he([X6(Le)]))}).getOrThunk(t7),sX=(r,g,B)=>g.length>0&&g[0].collapsed?t7():n7(r,g[0],B),lX=(r,g,B)=>{const H=nk(g,r);return H.length>0?kN(r,H):sX(r,g,B)},G6=(r,g)=>g>=0&&gSd(r.innerText),cX=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),TN=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),oe=r.getBody(),be=cX(H),Le=_r.fromDom(g.cloneContents());uB(Le),fB(Le);const Ke=r.dom.add(oe,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Le.dom),ut=K6(Ke),At=Sd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),G6(At,0)||G6(At,At.length-1)){const nn=H.getOr(oe),un=K6(nn),yn=un.indexOf(ut);if(yn===-1)return ut;{const Qn=G6(un,yn-1),rr=G6(un,yn+ut.length);return(Qn?" ":"")+ut+(rr?" ":"")}}else return ut}).getOr(""),uX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),oe=r.selection.getSel(),be=l6(r,w3(oe)),Le=g.contextual?lX(_r.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Le&&H.appendChild(Le),r.selection.serializer.serialize(H,g)},fX=(r,g)=>{if(g.format==="text")return TN(r);{const B=uX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},dX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),hX=(r,g,B={})=>{const H=dX(B,g);return WP(r,H).fold(Q,oe=>{const be=fX(r,oe);return hN(r,be,oe)})},r7=0,CN=1,AN=2,pX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),oe=new Array(B),be=(nn,un,yn)=>({start:nn,end:un,diag:yn}),Le=(nn,un,yn,Qn,rr)=>{const Wn=ut(nn,un,yn,Qn);if(Wn===null||Wn.start===un&&Wn.diag===un-Qn||Wn.end===nn&&Wn.diag===nn-yn){let ur=nn,Tr=yn;for(;urQn-yn?(rr.push([AN,r[ur]]),++ur):(rr.push([CN,g[Tr]]),++Tr)}else{Le(nn,Wn.start,yn,Wn.start-Wn.diag,rr);for(let ur=Wn.start;ur{let rr=nn;for(;rr-un{const rr=un-nn,Wn=Qn-yn;if(rr===0||Wn===0)return null;const ur=rr-Wn,Tr=Wn+rr,Wr=(Tr%2===0?Tr:Tr+1)/2;H[1+Wr]=nn,oe[1+Wr]=un+1;let Qr,lo,Zo,li,Mi;for(Qr=0;Qr<=Wr;++Qr){for(lo=-Qr;lo<=Qr;lo+=2){for(Zo=lo+Wr,lo===-Qr||lo!==Qr&&H[Zo-1]=nn&&Mi>=yn&&r[li]===g[Mi];)oe[Zo]=li--,Mi--;if(ur%2===0&&-Qr<=lo&&lo<=Qr&&oe[Zo]<=H[Zo+ur])return Ke(oe[Zo],lo+nn-yn,un,Qn)}}return null},At=[];return Le(0,r.length,0,g.length,At),At},o7=r=>ne(r)?r.outerHTML:Mt(r)?Lm.encodeRaw(r.data,!1):bn(r)?"":"",mX=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},gX=(r,g,B)=>{const H=mX(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ve(r,H=>{H[0]===r7?B++:H[0]===CN?(gX(g,H[1],B),B++):H[0]===AN&&J6(g,B)})},vX=(r,g)=>Te(ye(Me(r.childNodes),g?I(Sd,o7):o7),B=>B.length>0),eA=(r,g)=>{const B=ye(Me(g.childNodes),o7);return kp(pX(B,r),g),g},tO=_t(()=>document.implementation.createHTMLDocument("undo")),MN=r=>r.querySelector("iframe")!==null,tg=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),nO=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),s5=r=>{const g=r.serializer.getTempAttrs(),B=cB(r.getBody(),g);return MN(B)?tg(vX(B,!0)):nO(Sd(B.innerHTML))},i7=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?eA(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:P(H)&&PC(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},tA=r=>r.type==="fragmented"?r.fragments.join(""):r.content,EN=r=>{const g=_r.fromTag("body",tO());return Fu(g,tA(r)),ve(Pl(g,"*[data-mce-bogus]"),Mc),ws(g)},PN=(r,g)=>tA(r)===tA(g),l5=(r,g)=>EN(r)===EN(g),c5=(r,g)=>!r||!g?!1:PN(r,g)?!0:l5(r,g),a7=r=>r.get()===0,u5=(r,g,B)=>{a7(B)&&(r.typing=g)},RN=(r,g)=>{r.typing&&(u5(r,!1,g),r.add())},s7=r=>{r.typing&&(r.typing=!1,r.add())},l7=(r,g,B)=>{a7(g)&&B.set(fl(r.selection))},yX=(r,g,B,H,oe,be,Le)=>{const Ke=s5(r),ut=To.extend(be||{},Ke);if(!a7(H)||r.removed)return null;const At=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ut,lastLevel:At,originalEvent:Le}).isDefaultPrevented()||At&&c5(At,ut))return null;g.data[B.get()]&&oe.get().each(yn=>{g.data[B.get()].beforeBookmark=yn});const nn=o2(r);if(nn&&g.data.length>nn){for(let yn=0;yn0?(r.setDirty(!0),r.dispatch("AddUndo",un),r.dispatch("change",un)):r.dispatch("AddUndo",un),ut},bX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},Dy=(r,g,B,H,oe)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Le=g.data[B.get()-1];i7(r,Le,!0),g.transact(oe)&&(g.data[B.get()-1].beforeBookmark=be)}},c7=(r,g,B)=>{let H;return g.get(){let oe;return g.typing&&(g.add(),g.typing=!1,u5(g,!1,B)),H.get()>0&&(H.set(H.get()-1),oe=g.data[H.get()],i7(r,oe,!0),r.setDirty(!0),r.dispatch("Undo",{level:oe})),oe},nA=r=>{r.clear(),r.add()},u7=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!c5(s5(r),g.data[0]),LN=(r,g)=>g.get()(RN(r,g),r.beforeChange(),r.ignore(B),r.add()),DN=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},_X=(r,g)=>{const B=r.dom,H=P(g)?g:r.getBody();ve(B.select("table,a",H),oe=>{switch(oe.nodeName){case"TABLE":const be=i2(r),Le=B.getAttrib(oe,"border");(!Le||Le==="0")&&r.hasVisual?B.addClass(oe,be):B.removeClass(oe,be);break;case"A":if(!B.getAttrib(oe,"href")){const Ke=B.getAttrib(oe,"name")||oe.id,ut=a2(r);Ke&&r.hasVisual?B.addClass(oe,ut):B.removeClass(oe,ut)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},BN=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>l7(r,g,B),add:(g,B,H,oe,be,Le)=>yX(r,g,B,H,oe,be,Le),undo:(g,B,H)=>xX(r,g,B,H),redo:(g,B)=>c7(r,g,B),clear:(g,B)=>bX(r,g,B),reset:g=>nA(g),hasUndo:(g,B)=>u7(r,g,B),hasRedo:(g,B)=>LN(g,B),transact:(g,B,H)=>IN(g,B,H),ignore:(g,B)=>DN(g,B),extra:(g,B,H,oe)=>Dy(r,g,B,H,oe)},formatter:{match:(g,B,H,oe)=>T6(r,g,B,H,oe),matchAll:(g,B)=>C6(r,g,B),matchNode:(g,B,H,oe)=>C1(r,g,B,H,oe),canApply:g=>uY(r,g),closest:g=>cY(r,g),apply:(g,B,H)=>Fz(r,g,B,H),remove:(g,B,H,oe)=>AP(r,g,B,H,oe),toggle:(g,B,H)=>RP(r,g,B,H),formatChanged:(g,B,H,oe,be)=>PY(r,g,B,H,oe,be)},editor:{getContent:g=>dB(r,g),setContent:(g,B)=>S6(r,g,B),insertContent:(g,B)=>M0(r,g,B),addVisual:g=>_X(r,g)},selection:{getContent:(g,B)=>hX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),wX=r=>{const g=At=>_(At)?At:{},{init:B,undoManager:H,formatter:oe,editor:be,selection:Le,autocompleter:Ke,raw:ut}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(At,nn,un)=>H.transact(un),ignore:(At,nn)=>H.ignore(nn),extra:(At,nn,un,yn)=>H.extra(un,yn)},formatter:{match:(At,nn,un,yn)=>oe.match(At,g(nn),yn),matchAll:oe.matchAll,matchNode:oe.matchNode,canApply:At=>oe.canApply(At),closest:At=>oe.closest(At),apply:(At,nn,un)=>oe.apply(At,g(nn)),remove:(At,nn,un,yn)=>oe.remove(At,g(nn)),toggle:(At,nn,un)=>oe.toggle(At,g(nn)),formatChanged:(At,nn,un,yn,Qn)=>oe.formatChanged(nn,un,yn,Qn)},editor:{getContent:At=>be.getContent(At),setContent:(At,nn)=>({content:be.setContent(At,nn),html:""}),insertContent:(At,nn)=>(be.insertContent(At),""),addVisual:be.addVisual},selection:{getContent:(At,nn)=>Le.getContent(nn)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ut.getRawModel())}}},OX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:re,hasRedo:re,transact:r,ignore:k,extra:k},formatter:{match:re,matchAll:$([]),matchNode:$(void 0),canApply:re,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},By=r=>Ot(r.plugins,"rtc"),zN=r=>Et(r.plugins,"rtc").bind(g=>Y.from(g.setup)),SX=r=>{const g=r;return zN(r).fold(()=>(g.rtcInstance=BN(r),Y.none()),B=>(g.rtcInstance=OX(),Y.some(()=>B().then(H=>(g.rtcInstance=wX(H),H.rtc.isRemote)))))},f7=r=>r.rtcInstance?r.rtcInstance:BN(r),Xd=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},NN=(r,g,B)=>{Xd(r).undoManager.beforeChange(g,B)},d7=(r,g,B,H,oe,be,Le)=>Xd(r).undoManager.add(g,B,H,oe,be,Le),h7=(r,g,B,H)=>Xd(r).undoManager.undo(g,B,H),FN=(r,g,B)=>Xd(r).undoManager.redo(g,B),p7=(r,g,B)=>{Xd(r).undoManager.clear(g,B)},$N=(r,g)=>{Xd(r).undoManager.reset(g)},VN=(r,g,B)=>Xd(r).undoManager.hasUndo(g,B),m7=(r,g,B)=>Xd(r).undoManager.hasRedo(g,B),UN=(r,g,B,H)=>Xd(r).undoManager.transact(g,B,H),jN=(r,g,B)=>{Xd(r).undoManager.ignore(g,B)},QN=(r,g,B,H,oe)=>{Xd(r).undoManager.extra(g,B,H,oe)},kX=(r,g,B,H,oe)=>Xd(r).formatter.match(g,B,H,oe),g7=(r,g,B)=>Xd(r).formatter.matchAll(g,B),TX=(r,g,B,H,oe)=>Xd(r).formatter.matchNode(g,B,H,oe),rA=(r,g)=>Xd(r).formatter.canApply(g),CX=(r,g)=>Xd(r).formatter.closest(g),AX=(r,g,B,H)=>{Xd(r).formatter.apply(g,B,H)},MX=(r,g,B,H,oe)=>{Xd(r).formatter.remove(g,B,H,oe)},HN=(r,g,B,H)=>{Xd(r).formatter.toggle(g,B,H)},ZN=(r,g,B,H,oe,be)=>Xd(r).formatter.formatChanged(g,B,H,oe,be),EX=(r,g)=>f7(r).editor.getContent(g),PX=(r,g,B)=>f7(r).editor.setContent(g,B),RX=(r,g,B)=>f7(r).editor.insertContent(g,B),LX=(r,g,B)=>Xd(r).selection.getContent(g,B),IX=(r,g)=>Xd(r).editor.addVisual(g),v7=r=>Xd(r).init.bindEvents(),_fe=(r,g={})=>{const B=g.format?g.format:"html";return LX(r,B,g)},qN=r=>r.dom.length===0?(hs(r),Y.none()):Y.some(r),DX=(r,g)=>r.filter(B=>Pg.isBookmarkNode(B.dom)).bind(g?Bc:sf),BX=(r,g,B,H,oe)=>{const be=r.dom,Le=g.dom,Ke=H?be.length:Le.length;H?($E(be,Le,oe,!1,!H),B.setStart(Le,Ke)):($E(Le,be,oe,!1,!H),B.setEnd(Le,Ke))},zX=(r,g,B)=>{jc(r).each(H=>{const oe=r.dom;g&&Pk(H,vo(oe,0),B)?d6(oe,0,B):!g&&K3(H,vo(oe,oe.length),B)&&FE(oe,oe.length,B)})},WN=(r,g,B,H,oe)=>{r.bind(be=>((H?FE:d6)(be.dom,H?be.dom.length:0,oe),g.filter(Ml).map(Ke=>BX(be,Ke,B,H,oe)))).orThunk(()=>DX(g,H).or(g).filter(Ml).map(Le=>zX(Le,H,oe)))},NX=(r,g,B)=>{const H=Y.from(g.firstChild).map(_r.fromDom),oe=Y.from(g.lastChild).map(_r.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(sf).filter(Ml).bind(qN),Le=oe.bind(Bc).filter(Ml).bind(qN);WN(be,H,r,!0,B),WN(Le,oe,r,!1,B),r.collapse(!1)},FX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),YN=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),oe=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...oe,...g});return rx({validate:!1},r.schema).serialize(be)}else return g.content},$X=(r,g,B={})=>{const H=FX(B,g);Y6(r,H).each(oe=>{const be=YN(r,oe),Le=r.selection.getRng();NX(Le,Le.createContextualFragment(be),r.schema),r.selection.setRng(Le),kk(r,Le),YP(r,be,oe)})},XN=(r,g,B)=>{if(Ot(r,g)){const H=Te(r[g],oe=>oe!==B);H.length===0?delete r[g]:r[g]=H}};var VX=(r,g)=>{let B,H;const oe=(Ke,ut)=>De(ut,At=>r.is(At,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Le=()=>{B={},H={},g.on("NodeChange",Ke=>{const ut=Ke.element,At=be(ut),nn={};Ge(B,(un,yn)=>{oe(yn,At).each(Qn=>{H[yn]||(ve(un,rr=>{rr(!0,{node:Qn,selector:yn,parents:At})}),H[yn]=un),nn[yn]=un})}),Ge(H,(un,yn)=>{nn[yn]||(delete H[yn],ve(un,Qn=>{Qn(!1,{node:ut,selector:yn,parents:At})}))})})};return{selectorChangedWithUnbind:(Ke,ut)=>(B||Le(),B[Ke]||(B[Ke]=[]),B[Ke].push(ut),oe(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{XN(B,Ke,ut),XN(H,Ke,ut)}})}};const GN=r=>!!(r&&r.ownerDocument)&&El(_r.fromDom(r.ownerDocument),_r.fromDom(r)),UX=r=>r?GN(r.startContainer)&&GN(r.endContainer):!1,jX=(r,g,B,H)=>{let oe,be;const{selectorChangedWithUnbind:Le}=VX(r,H),Ke=(vi,na)=>{const ol=r.createRng();P(vi)&&P(na)?(ol.setStart(vi,na),ol.setEnd(vi,na),lo(ol),Tr(!1)):(ik(r,ol,H.getBody(),!0),lo(ol))},ut=vi=>_fe(H,vi),At=(vi,na)=>$X(H,vi,na),nn=vi=>CE(H.getBody(),Qr(),vi),un=vi=>KD(H.getBody(),Qr(),vi),yn=(vi,na)=>Wf.getBookmark(vi,na),Qn=vi=>Wf.moveToBookmark(vi),rr=(vi,na)=>(s6(r,vi,na).each(lo),vi),Wn=()=>{const vi=Qr(),na=Wr();return!vi||vi.item?!1:vi.compareEndPoints?vi.compareEndPoints("StartToEnd",vi)===0:!na||vi.collapsed},ur=()=>{const vi=Qr(),na=H.getBody().querySelectorAll('[data-mce-selected="1"]');return na.length>0?Oe(na,ol=>r.isEditable(ol.parentElement)):kE(r,vi)},Tr=vi=>{const na=Qr();na.collapse(!!vi),lo(na)},Wr=()=>g.getSelection?g.getSelection():g.document.selection,Qr=()=>{let vi;const na=(Ti,pa,ps)=>{try{return pa.compareBoundaryPoints(Ti,ps)}catch{return-1}},ol=g.document;if(P(H.bookmark)&&!nx(H)){const Ti=r6(H);if(Ti.isSome())return Ti.map(pa=>l6(H,[pa])[0]).getOr(ol.createRange())}try{const Ti=Wr();Ti&&!le(Ti.anchorNode)&&(Ti.rangeCount>0?vi=Ti.getRangeAt(0):vi=ol.createRange(),vi=l6(H,[vi])[0])}catch{}if(vi||(vi=ol.createRange()),vn(vi.startContainer)&&vi.collapsed){const Ti=r.getRoot();vi.setStart(Ti,0),vi.setEnd(Ti,0)}return oe&&be&&(na(vi.START_TO_START,vi,oe)===0&&na(vi.END_TO_END,vi,oe)===0?vi=be:(oe=null,be=null)),vi},lo=(vi,na)=>{if(!UX(vi))return;const ol=Wr();if(vi=H.dispatch("SetSelectionRange",{range:vi,forward:na}).range,ol){be=vi;try{ol.removeAllRanges(),ol.addRange(vi)}catch{}na===!1&&ol.extend&&(ol.collapse(vi.endContainer,vi.endOffset),ol.extend(vi.startContainer,vi.startOffset)),oe=ol.rangeCount>0?ol.getRangeAt(0):null}if(!vi.collapsed&&vi.startContainer===vi.endContainer&&(ol!=null&&ol.setBaseAndExtent)&&vi.endOffset-vi.startOffset<2&&vi.startContainer.hasChildNodes()){const pa=vi.startContainer.childNodes[vi.startOffset];pa&&pa.nodeName==="IMG"&&(ol.setBaseAndExtent(vi.startContainer,vi.startOffset,vi.endContainer,vi.endOffset),(ol.anchorNode!==vi.startContainer||ol.focusNode!==vi.endContainer)&&ol.setBaseAndExtent(pa,0,pa,1))}H.dispatch("AfterSetSelectionRange",{range:vi,forward:na})},Zo=vi=>(At(r.getOuterHTML(vi)),vi),li=()=>Jq(H.getBody(),Qr()),Mi=(vi,na)=>eW(r,Qr(),vi,na),Co=()=>{const vi=Wr(),na=vi==null?void 0:vi.anchorNode,ol=vi==null?void 0:vi.focusNode;if(!vi||!na||!ol||le(na)||le(ol))return!0;const Ti=r.createRng(),pa=r.createRng();try{Ti.setStart(na,vi.anchorOffset),Ti.collapse(!0),pa.setStart(ol,vi.focusOffset),pa.collapse(!0)}catch{return!0}return Ti.compareBoundaryPoints(Ti.START_TO_START,pa)<=0},Uu={dom:r,win:g,serializer:B,editor:H,expand:(vi={type:"word"})=>lo(oi(r).expand(Qr(),vi)),collapse:Tr,setCursorLocation:Ke,getContent:ut,setContent:At,getBookmark:yn,moveToBookmark:Qn,select:rr,isCollapsed:Wn,isEditable:ur,isForward:Co,setNode:Zo,getNode:li,getSel:Wr,setRng:lo,getRng:Qr,getStart:nn,getEnd:un,getSelectedBlocks:Mi,normalize:()=>{const vi=Qr(),na=Wr();if(!HM(na)&&T2(H)){const ol=fi(r,vi);return ol.each(Ti=>{lo(Ti,Co())}),ol.getOr(vi)}return vi},selectorChanged:(vi,na)=>(Le(vi,na),Uu),selectorChangedWithUnbind:Le,getScrollContainer:()=>{let vi,na=r.getRoot();for(;na&&na.nodeName!=="BODY";){if(na.scrollHeight>na.clientHeight){vi=na;break}na=na.parentNode}return vi},scrollIntoView:(vi,na)=>{P(vi)?$q(H,vi,na):kk(H,Qr(),na)},placeCaretAt:(vi,na)=>lo(lt(vi,na,H.getDoc())),getBoundingClientRect:()=>{const vi=Qr();return vi.collapsed?vo.fromRangeStart(vi).getClientRects()[0]:vi.getBoundingClientRect()},destroy:()=>{g=oe=be=null,ic.destroy()}},Wf=Pg(Uu),ic=Iw(Uu,H);return Uu.bookmarkManager=Wf,Uu.controlSelection=ic,Uu},wfe=(r,g,B)=>{g.addNodeFilter("br",(H,oe,be)=>{const Le=To.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ut=B.getWhitespaceElements();Le.body=1;const At=nn=>nn.name in Le||ch(B,nn);for(let nn=0,un=H.length;nn{r.addAttributeFilter("data-mce-tabindex",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.attr("tabindex",Le.attr("data-mce-tabindex")),Le.attr(oe,null)}}),r.addAttributeFilter("src,href,style",(H,oe)=>{const be="data-mce-"+oe,Le=g.url_converter,Ke=g.url_converter_scope;let ut=H.length;for(;ut--;){const At=H[ut];let nn=At.attr(be);nn!==void 0?(At.attr(oe,nn.length>0?nn:null),At.attr(be,null)):(nn=At.attr(oe),oe==="style"?nn=B.serializeStyle(B.parseStyle(nn),At.name):Le&&(nn=Le.call(Ke,nn,oe,At.name)),At.attr(oe,nn.length>0?nn:null))}}),r.addAttributeFilter("class",H=>{let oe=H.length;for(;oe--;){const be=H[oe];let Le=be.attr("class");Le&&(Le=Le.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Le.length>0?Le:null))}}),r.addAttributeFilter("data-mce-type",(H,oe,be)=>{let Le=H.length;for(;Le--;){const Ke=H[Le];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(At=>{var nn;return!Wx((nn=At.value)!==null&&nn!==void 0?nn:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,oe)=>{var be;const Le=ut=>ut.replace(/()/g,` +`,!0);do Ke(rr);while(rr=rr.next)}B.end(un)}}};return oe.type===1&&!r.inner?Ke(oe):oe.type===3?Le[3](oe):Le[11](oe),B.getContent()}}},mB=new Set;ve(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],g=>{mB.add(g)});const gB=new Set;ve(["background-color"],g=>{gB.add(g)});const vB=["font","text-decoration","text-emphasis"],fW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),W3=(r,g)=>tt(fW(r,g)),dW=r=>mB.has(r),hW=r=>gB.has(r),yB=(r,g)=>de(W3(r,g),B=>dW(B)),pW=(r,g)=>yB(r,g)&&de(W3(r,g),B=>hW(B)),mW=r=>Te(r,g=>de(vB,B=>Br(g,B))),gW=(r,g,B)=>{const H=W3(r,g),oe=W3(r,B),be=Le=>{var Ke,ut;const At=(Ke=r.getStyle(g,Le))!==null&&Ke!==void 0?Ke:"",nn=(ut=r.getStyle(B,Le))!==null&&ut!==void 0?ut:"";return lr(At)&&lr(nn)&&At!==nn};return de(H,Le=>{const Ke=ut=>de(ut,At=>At===Le);if(!Ke(oe)&&Ke(vB)){const ut=mW(oe);return de(ut,be)}else return be(Le)})},bB=(r,g,B)=>Y.from(B.container()).filter(Mt).exists(H=>{const oe=r?0:-1;return g(H.data.charAt(B.offset()+oe))}),ME=U(bB,!0,Ly),EE=U(bB,!1,Ly),vW=r=>{const g=r.container();return Mt(g)&&(g.data.length===0||Wx(g.data)&&Pg.isBookmarkNode(g.parentNode))},L2=(r,g)=>B=>H4(r?0:-1,B).filter(g).isSome(),xB=r=>Jn(r)&&rs(_r.fromDom(r),"display")==="block",_B=r=>In(r)&&!rt(r),yW=L2(!0,xB),ha=L2(!1,xB),Y3=L2(!0,Gr),X3=L2(!1,Gr),wB=L2(!0,dt),Ek=L2(!1,dt),I2=L2(!0,_B),D2=L2(!1,_B),bW=r=>r.slice(0,-1),xW=(r,g,B)=>El(g,r)?bW(af(r,H=>B(H)||va(H,g))):[],OB=(r,g)=>xW(r,g,re),k1=(r,g)=>[r].concat(OB(r,g)),u6=(r,g,B)=>G4(r,g,B,vW),cfe=r=>g=>r.isBlock(ma(g)),SB=(r,g,B)=>De(k1(_r.fromDom(g.container()),r),cfe(B)),Fa=(r,g,B,H)=>u6(r,g.dom,B).forall(oe=>SB(g,B,H).fold(()=>!hm(oe,B,g.dom),be=>!hm(oe,B,g.dom)&&El(be,_r.fromDom(oe.container())))),kB=(r,g,B,H)=>SB(g,B,H).fold(()=>u6(r,g.dom,B).forall(oe=>!hm(oe,B,g.dom)),oe=>u6(r,oe.dom,B).isNone()),Ka=U(kB,!1),PE=U(kB,!0),ufe=U(Fa,!1),ffe=U(Fa,!0),_W=r=>h3(r).exists(Ch),RE=(r,g,B,H)=>{const oe=Te(k1(_r.fromDom(B.container()),g),Le=>H.isBlock(ma(Le))),be=Ye(oe).getOr(g);return Op(r,be.dom,B).filter(_W)},TB=(r,g,B)=>h3(g).exists(Ch)||RE(!0,r,g,B).isSome(),f6=(r,g,B)=>TC(g).exists(Ch)||RE(!1,r,g,B).isSome(),CB=U(RE,!1),Ra=U(RE,!0),AB=r=>vo.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),MB=(r,g,B)=>{const H=Te(k1(_r.fromDom(g.container()),r),oe=>B.isBlock(ma(oe)));return Ye(H).getOr(r)},EB=(r,g,B)=>AB(g)?EE(g):EE(g)||Up(MB(r,g,B).dom,g).exists(EE),G3=(r,g,B)=>AB(g)?ME(g):ME(g)||Sp(MB(r,g,B).dom,g).exists(ME),PB=r=>ce(["pre","pre-wrap"],r),LE=r=>h3(r).bind(g=>cl(g,Wl)).exists(g=>PB(rs(g,"white-space"))),wW=(r,g)=>Up(r.dom,g).isNone(),OW=(r,g)=>Sp(r.dom,g).isNone(),RB=(r,g,B)=>wW(r,g)||OW(r,g)||Ka(r,g,B)||PE(r,g,B)||f6(r,g,B)||TB(r,g,B),SW=r=>P(r)&&In(r)&&_C(r),kW=(r,g)=>B=>SW(new Xl(B,r)[g]()),dfe=(r,g)=>{const B=Sp(r.dom,g).getOr(g),H=kW(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},TW=(r,g)=>{const B=Up(r.dom,g).getOr(g),H=kW(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},LB=(r,g,B)=>LE(g)?!1:RB(r,g,B)||EB(r,g,B)||G3(r,g,B),Pk=(r,g,B)=>LE(g)?!1:Ka(r,g,B)||ufe(r,g,B)||f6(r,g,B)||EB(r,g,B)||TW(r,g),CW=r=>{const g=r.container(),B=r.offset();return Mt(g)&&BLE(g)?!1:PE(r,g,B)||ffe(r,g,B)||TB(r,g,B)||G3(r,g,B)||dfe(r,g),IE=(r,g,B)=>Pk(r,g,B)||K3(r,CW(g),B),us=(r,g)=>Hb(r.charAt(g)),DE=(r,g)=>Ly(r.charAt(g)),d6=r=>{const g=r.container();return Mt(g)&&tr(g.data,Pc)},IB=r=>{const g=r.split("");return ye(g,(B,H)=>Hb(B)&&H>0&&H{const oe=g.data,be=vo(g,0);return!B&&us(oe,0)&&!IE(r,be,H)?(g.data=" "+oe.slice(1),!0):B&&DE(oe,0)&&Pk(r,be,H)?(g.data=Pc+oe.slice(1),!0):!1},DB=r=>{const g=r.data,B=IB(g);return B!==g?(r.data=B,!0):!1},zE=(r,g,B,H)=>{const oe=g.data,be=vo(g,oe.length-1);return!B&&us(oe,oe.length-1)&&!IE(r,be,H)?(g.data=oe.slice(0,-1)+" ",!0):B&&DE(oe,oe.length-1)&&K3(r,be,H)?(g.data=oe.slice(0,-1)+Pc,!0):!1},BB=(r,g,B)=>{const H=g.container();if(!Mt(H))return Y.none();if(d6(g)){const oe=BE(r,H,!1,B)||DB(H)||zE(r,H,!1,B);return Bs(oe,g)}else if(IE(r,g,B)){const oe=BE(r,H,!0,B)||zE(r,H,!0,B);return Bs(oe,g)}else return Y.none()},AW=r=>{const g=_r.fromDom(r.getBody());r.selection.isCollapsed()&&BB(g,vo.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},NE=(r,g,B,H)=>{if(B===0)return;const oe=_r.fromDom(r),be=vs(oe,At=>H.isBlock(ma(At))).getOr(oe),Le=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&K3(be,vo(r,r.data.length),H),ut=g===0&&Pk(be,vo(r,0),H);r.replaceData(g,B,Ut(Le,4,ut,Ke))},h6=(r,g,B)=>{const H=r.data.slice(g),oe=H.length-gr(H).length;NE(r,g,oe,B)},FE=(r,g,B)=>{const H=r.data.slice(0,g),oe=H.length-sr(H).length;NE(r,g-oe,oe,B)},$E=(r,g,B,H,oe=!0)=>{const be=sr(r.data).length,Le=oe?r:g,Ke=oe?g:r;return oe?Le.appendData(Ke.data):Le.insertData(0,Ke.data),hs(_r.fromDom(Ke)),H&&h6(Le,be,B),Le},MW=(r,g)=>{const B=r.container(),H=r.offset();return!vo.isTextPosition(r)&&B===g.parentNode&&H>vo.before(g).offset()},EW=(r,g)=>MW(g,r)?vo(g.container(),g.offset()-1):g,PW=r=>Mt(r)?vo(r,0):vo.before(r),RW=r=>Mt(r)?vo(r,r.data.length):vo.after(r),zB=r=>Hh(r.previousSibling)?Y.some(RW(r.previousSibling)):r.previousSibling?Ym(r.previousSibling):Y.none(),p6=r=>Hh(r.nextSibling)?Y.some(PW(r.nextSibling)):r.nextSibling?ph(r.nextSibling):Y.none(),VE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>Up(r,vo.before(B))).orThunk(()=>Sp(r,vo.after(g))),LW=(r,g)=>Sp(r,vo.after(g)).orThunk(()=>Up(r,vo.before(g))),IW=(r,g)=>zB(g).orThunk(()=>p6(g)).orThunk(()=>VE(r,g)),DW=(r,g)=>p6(g).orThunk(()=>zB(g)).orThunk(()=>LW(r,g)),BW=(r,g,B)=>r?DW(g,B):IW(g,B),zW=(r,g,B)=>BW(r,g,B).map(U(EW,B)),NB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},NW=r=>g=>g.dom===r,FW=(r,g)=>g&&Ot(r.schema.getBlockElements(),ma(g)),FB=(r,g,B)=>{if(Ai(r,g)){const H=_r.fromHtml('
    ');return B?ve(vc(g),oe=>{dk(oe)||hs(oe)}):uf(g),ii(g,H),Y.some(vo.before(H.dom))}else return Y.none()},$W=(r,g,B,H)=>{const oe=sf(r).filter(Ml),be=Bc(r).filter(Ml);return hs(r),yl(oe,be,g,(Le,Ke,ut)=>{const At=Le.dom,nn=Ke.dom,un=At.data.length;return $E(At,nn,B,H),ut.container()===nn?vo(At,un):ut}).orThunk(()=>(H&&(oe.each(Le=>FE(Le.dom,Le.dom.length,B)),be.each(Le=>h6(Le.dom,0,B))),g))},VW=(r,g)=>Ot(r.schema.getTextInlineElements(),ma(g)),T0=(r,g,B,H=!0,oe=!1)=>{const be=zW(g,r.getBody(),B.dom),Le=vs(B,U(FW,r),NW(r.getBody())),Ke=$W(B,be,r.schema,VW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Le.bind(ut=>FB(r.schema,ut,oe)).fold(()=>{H&&NB(r,g,Ke)},ut=>{H&&NB(r,g,Y.some(ut))})},UW=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,$B=r=>UW.test(r),Nw=(r,g)=>yd(_r.fromDom(g),wy(r))&&!lh(r.schema,g)&&r.dom.isEditable(g),VB=r=>{var g;return cc.DOM.getStyle(r,"direction",!0)==="rtl"||$B((g=r.textContent)!==null&&g!==void 0?g:"")},UB=(r,g,B)=>Te(cc.DOM.getParents(B.container(),"*",g),r),ox=(r,g,B)=>{const H=UB(r,g,B);return Y.from(H[H.length-1])},jB=(r,g,B)=>{const H=Ey(g,r),oe=Ey(B,r);return P(H)&&H===oe},QB=r=>s1(r)||Um(r),Gu=(r,g)=>{const B=g.container(),H=g.offset();return r?_p(B)?Mt(B.nextSibling)?vo(B.nextSibling,0):vo.after(B):s1(g)?vo(B,H+1):g:_p(B)?Mt(B.previousSibling)?vo(B.previousSibling,B.previousSibling.data.length):vo.before(B):Um(g)?vo(B,H-1):g},HB=U(Gu,!0),ZB=U(Gu,!1),qB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},jW=r=>{r.execCommand("delete")},m6=r=>qB(r,"Delete"),B2=r=>qB(r,"ForwardDelete"),QW=r=>g=>Ia(jc(g),r,va),HW=r=>Np(r)||av(r),Xc=(r,g)=>El(r,g)?cl(g,HW,QW(r)):Y.none(),J3=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},Fw=(r,g,B)=>zi(ph(B),Ym(B),(H,oe)=>{const be=Gu(!0,H),Le=Gu(!1,oe),Ke=Gu(!1,g);return r?Sp(B,Ke).exists(ut=>ut.isEqual(Le)&&g.isEqual(be)):Up(B,Ke).exists(ut=>ut.isEqual(be)&&g.isEqual(Le))}).getOr(!0),WB=r=>(Kf(r)?sf(r):Cc(r)).bind(WB).orThunk(()=>Y.some(r)),$w=(r,g,B,H=!0)=>{var oe;g.deleteContents();const be=WB(B).getOr(B),Le=_r.fromDom((oe=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&oe!==void 0?oe:B.dom);if(Le.dom===r.getBody()?J3(r,H):Ai(r.schema,Le,{checkRootAsContent:!1})&&(xp(Le),H&&r.selection.setCursorLocation(Le.dom,0)),!va(B,Le)){const Ke=Ia(jc(Le),B)?[]:td(Le);ve(Ke.concat(vc(B)),ut=>{!va(ut,Le)&&!El(ut,Le)&&Ai(r.schema,ut)&&hs(ut)})}},C0=r=>g=>va(r,g),Vw=r=>Pl(r,"td,th"),gc=(r,g)=>Tw(_r.fromDom(r),g),Rk=r=>zi(r.startTable,r.endTable,(g,B)=>{const H=_c(g,be=>va(be,B)),oe=_c(B,be=>va(be,g));return!H&&!oe?r:{...r,startTable:H?Y.none():r.startTable,endTable:oe?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),YB=r=>Rk(r),XB=(r,g)=>{const B=gc(r.startContainer,g),H=gc(r.endContainer,g),oe=B.isSome(),be=H.isSome(),Le=zi(B,H,va).getOr(!1);return YB({startTable:B,endTable:H,isStartInTable:oe,isEndInTable:be,isSameTable:Le,isMultiTable:!Le&&oe&&be})},Lk=(r,g)=>({start:r,end:g}),UE=(r,g,B)=>({rng:r,table:g,cells:B}),Uw=kl.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),eS=(r,g)=>bu(_r.fromDom(r),"td,th",g),Ik=r=>!va(r.start,r.end),g6=(r,g)=>Tw(r.start,g).bind(B=>Tw(r.end,g).bind(H=>Bs(va(B,H),B))),GB=(r,g)=>!Ik(r)&&g6(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),KB=(r,g)=>{const B=eS(r.startContainer,g),H=eS(r.endContainer,g);return zi(B,H,Lk)},JB=r=>g=>Tw(g,r).bind(B=>Je(Vw(B)).map(H=>Lk(g,H))),ez=r=>g=>Tw(g,r).bind(B=>Ye(Vw(B)).map(H=>Lk(H,g))),v6=r=>g=>g6(g,r).map(B=>UE(g,B,Vw(B))),jw=(r,g,B,H)=>{if(B.collapsed||!r.forall(Ik))return Y.none();if(g.isSameTable){const oe=r.bind(v6(H));return Y.some({start:oe,end:oe})}else{const oe=eS(B.startContainer,H),be=eS(B.endContainer,H),Le=oe.bind(JB(H)).bind(v6(H)),Ke=be.bind(ez(H)).bind(v6(H));return Y.some({start:Le,end:Ke})}},jE=(r,g)=>Qe(r,B=>va(B,g)),Dk=r=>zi(jE(r.cells,r.rng.start),jE(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),ZW=(r,g,B)=>r.exists(H=>GB(H,B)&&S3(H.start,g)),tz=(r,g)=>{const{startTable:B,endTable:H}=g,oe=r.cloneRange();return B.each(be=>oe.setStartAfter(be.dom)),H.each(be=>oe.setEndBefore(be.dom)),oe},nz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>oe.or(be)).bind(oe=>{const{isSameTable:be}=g,Le=Dk(oe).getOr([]);if(be&&oe.cells.length===Le.length)return Y.some(Uw.fullTable(oe.table));if(Le.length>0){if(be)return Y.some(Uw.partialTable(Le,Y.none()));{const Ke=tz(B,g);return Y.some(Uw.partialTable(Le,Y.some({...g,rng:Ke})))}}else return Y.none()}),rz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>{const Le=oe.bind(Dk).getOr([]),Ke=be.bind(Dk).getOr([]);if(Le.length>0&&Ke.length>0){const ut=tz(B,g);return Y.some(Uw.multiTable(Le,Ke,ut))}else return Y.none()}),oz=(r,g)=>{const B=C0(r),H=KB(g,B),oe=XB(g,B);return ZW(H,g,B)?H.map(be=>Uw.singleCellTable(g,be.start)):oe.isMultiTable?rz(H,oe,g,B):nz(H,oe,g,B)},Bk=r=>ve(r,g=>{tc(g,"contenteditable"),xp(g)}),iz=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(_r.fromDom),az=(r,g,B)=>{B.each(H=>{g?hs(H):(xp(H),r.selection.setCursorLocation(H.dom,0))})},y6=(r,g,B,H)=>{const oe=B.cloneRange();H?(oe.setStart(B.startContainer,B.startOffset),oe.setEndAfter(g.dom.lastChild)):(oe.setStartBefore(g.dom.firstChild),oe.setEnd(B.endContainer,B.endOffset)),b6(r,oe,g,!1).each(be=>be())},QE=r=>{const g=k2(r),B=_r.fromDom(r.selection.getNode());Ir(B.dom)&&Ai(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>va(H,B))&&ll(B,"data-mce-selected","1")},HE=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),oe=B.bind(({rng:be,isStartInTable:Le})=>{const Ke=iz(r,Le?be.endContainer:be.startContainer);be.deleteContents(),az(r,Le,Ke.filter(U(Ai,r.schema)));const ut=Le?g[0]:g[g.length-1];return y6(r,ut,H,Le),Ai(r.schema,ut)?Y.none():Y.some(Le?g.slice(1):g.slice(0,-1))}).getOr(g);Bk(oe),QE(r)}),sz=(r,g,B,H)=>Y.some(()=>{const oe=r.selection.getRng(),be=g[0],Le=B[B.length-1];y6(r,be,oe,!0),y6(r,Le,oe,!1);const Ke=Ai(r.schema,be)?g:g.slice(1),ut=Ai(r.schema,Le)?B:B.slice(0,-1);Bk(Ke.concat(ut)),H.deleteContents(),QE(r)}),b6=(r,g,B,H=!0)=>Y.some(()=>{$w(r,g,B,H)}),lz=(r,g)=>Y.some(()=>T0(r,!1,g)),cz=(r,g,B)=>oz(g,B).bind(H=>H.fold(U(b6,r),U(lz,r),U(HE,r),U(sz,r))),uz=(r,g)=>zk(r,g),ZE=(r,g,B,H)=>x6(g,H).fold(()=>cz(r,g,B),oe=>uz(r,oe)),fz=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.selection.getRng();return B.length!==0?HE(r,B,Y.none()):ZE(r,H,oe,g)},qE=(r,g)=>De(k1(g,r),gy),x6=(r,g)=>De(k1(g,r),Jl("caption")),dz=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).bind(be=>qE(g,_r.fromDom(be.getNode())).bind(Le=>va(Le,H)?Y.none():Y.some(k))),zk=(r,g)=>Y.some(()=>{xp(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>ph(r.dom).bind(oe=>Ym(r.dom).map(be=>g?B.isEqual(oe)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(oe))).getOr(!0),WE=(r,g)=>zk(r,g),_6=(r,g,B)=>x6(r,_r.fromDom(B.getNode())).fold(()=>Y.some(k),H=>Bs(!va(H,g),k)),YE=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).fold(()=>Y.some(k),be=>hz(H,B,oe,be)?WE(r,H):_6(g,H,be)),w6=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return qE(B,H).bind(be=>Ai(r.schema,be,{checkRootAsContent:!1})?zk(r,be):dz(r,B,g,be,oe))},pz=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return Ai(r.schema,H)?zk(r,H):YE(r,B,g,H,oe)},Nk=(r,g)=>r?wB(g):Ek(g),XE=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Nk(g,B)||Op(g,r.getBody(),B).exists(H=>Nk(g,H))},Fk=(r,g,B)=>{const H=_r.fromDom(r.getBody());return x6(H,B).fold(()=>w6(r,g,H,B).orThunk(()=>Bs(XE(r,g),k)),oe=>pz(r,g,H,oe))},$k=(r,g)=>{const B=_r.fromDom(r.selection.getStart(!0)),H=k2(r);return r.selection.isCollapsed()&&H.length===0?Fk(r,g,B):fz(r,B,H)},z2=(r,g)=>{let B=g;for(;B&&B!==r;){if(pn(B)||In(B))return B;B=B.parentNode}return null},tS=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],GE=To.each,Vk=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Le)=>{if(be.nodeName!==Le.nodeName||be.nodeType!==Le.nodeType)return!1;const Ke=At=>{const nn={};return GE(g.getAttribs(At),un=>{const yn=un.nodeName.toLowerCase();yn!=="style"&&!oe(yn)&&(nn[yn]=g.getAttrib(At,yn))}),nn},ut=(At,nn)=>{for(const un in At)if(Ot(At,un)){const yn=nn[un];if(M(yn)||At[un]!==yn)return!1;delete nn[un]}for(const un in nn)if(Ot(nn,un))return!1;return!0};return ne(be)&&ne(Le)&&(!ut(Ke(be),Ke(Le))||!ut(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Le,"style"))))?!1:!pm(be)&&!pm(Le)},oe=be=>de(tS,Le=>Br(be,Le))||B.has(be);return{compare:H,isAttributeInternal:oe}},Qw=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),N2=r=>r.name==="summary",mz=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},gz=(r,g,B,H)=>{const oe=B.name;for(let be=0,Le=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&mz(B,oe=>{gz(r,g,oe,H)}),H},KE=(r,g)=>{const B=(H,oe)=>{Ge(H,be=>{const Le=Me(be.nodes);ve(be.filter.callbacks,Ke=>{for(let ut=Le.length-1;ut>=0;ut--){const At=Le[ut];(!(oe?At.attr(be.filter.name)!==void 0:At.name===be.filter.name)||T(At.parent))&&Le.splice(ut,1)}Le.length>0&&Ke(Le,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},JE=(r,g,B,H={})=>{const oe=qW(r,g,B);KE(oe,H)},eP=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new Hp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new Hp("#text",3)).value=Pc},WW=r=>{var g;return ix(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Pc},ix=(r,g)=>{const B=r==null?void 0:r.firstChild;return P(B)&&B===r.lastChild&&B.name===g},Hw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},O6=(r,g,B,H)=>H.isEmpty(g,B,oe=>Hw(r,oe)),Lh=(r,g)=>P(r)&&(g(r)||r.name==="br"),YW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},tP=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const oe of H)B&&!g.isValidChild(B.name,oe.name)&&tP(oe,g,B);r.unwrap()}},Ev=(r,g,B,H=k)=>{const oe=g.getTextBlockElements(),be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=To.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ut=new Set,At=nn=>nn!==B&&!Ke[nn.name];for(let nn=0;nn1)if(vz(g,un,yn))tP(un,g);else{Wn.reverse(),Qn=Wn[0].clone(),H(Qn);let ur=Qn;for(let Tr=0;Tr0?(rr=Wn[Tr].clone(),H(rr),ur.append(rr)):rr=ur;for(let Wr=Wn[Tr].firstChild;Wr&&Wr!==Wn[Tr+1];){const Qr=Wr.next;rr.append(Wr),Wr=Qr}ur=rr}O6(g,be,Le,Qn)?yn.insert(un,Wn[0],!0):(yn.insert(Qn,Wn[0],!0),yn.insert(un,Qn)),yn=Wn[0],(O6(g,be,Le,yn)||ix(yn,"br"))&&yn.empty().remove()}else if(un.parent){if(un.name==="li"){let ur=un.prev;if(ur&&(ur.name==="ul"||ur.name==="ol")){ur.append(un);continue}if(ur=un.next,ur&&(ur.name==="ul"||ur.name==="ol")&&ur.firstChild){ur.insert(un,ur.firstChild,!0);continue}const Tr=new Hp("ul",1);H(Tr),un.wrap(Tr);continue}if(g.isValidChild(un.parent.name,"div")&&g.isValidChild("div",un.name)){const ur=new Hp("div",1);H(ur),un.wrap(ur)}else tP(un,g)}}},ml=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&ml(B,"a")?!0:N2(B)&&Qw(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,XW=(r,g,B,H)=>{const oe=document.createRange();return oe.setStart(r,g),oe.setEnd(B,H),oe},GW=r=>{const g=vo.fromRangeStart(r),B=vo.fromRangeEnd(r),H=r.commonAncestorContainer;return Op(!1,H,B).map(oe=>!hm(g,B,H)&&hm(g,oe,H)?XW(g.container(),g.offset(),oe.container(),oe.offset()):r).getOr(r)},Rc=r=>r.collapsed?r:GW(r),yz=r=>P(r.firstChild)&&r.firstChild===r.lastChild,Uk=r=>r.name==="br"||r.value===Pc,jk=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&Uk(g.firstChild),Qk=(r,g)=>{const B=r.getNonEmptyElements();return P(g)&&(g.isEmpty(B)||jk(r,g))},Hk=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),Qk(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,oe=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),oe&&oe.id==="mce_marker"&&((B=oe.parentNode)===null||B===void 0||B.removeChild(oe)),r},hfe=(r,g,B)=>{const H=g.serialize(B),oe=r.createFragment(H);return bz(oe)},pfe=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},mfe=r=>r.data===Pc||gn(r),gfe=r=>P(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&mfe(r.firstChild),KW=r=>!r.firstChild||gfe(r),vfe=r=>r.length>0&&KW(r[r.length-1])?r.slice(0,-1):r,nP=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},JW=(r,g)=>!!nP(r,g),yfe=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},eY=(r,g)=>{const B=vo.before(r),oe=k0(g).next(B);return oe?oe.toRange():null},Vu=(r,g)=>{const B=vo.after(r),oe=k0(g).prev(B);return oe?oe.toRange():null},xz=(r,g,B,H)=>{const oe=yfe(r,H),be=r.parentNode;return be&&(be.insertBefore(oe[0],r),To.each(g,Le=>{be.insertBefore(Le,r)}),be.insertBefore(oe[1],r),be.removeChild(r)),Vu(g[g.length-1],B)},_z=(r,g,B)=>{const H=r.parentNode;return H&&To.each(g,oe=>{H.insertBefore(oe,r)}),eY(r,B)},tY=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),Vu(g[0],B)),nY=(r,g,B,H)=>{const oe=hfe(g,r,H),be=nP(g,B.startContainer),Le=vfe(pfe(oe.firstChild)),Ke=1,ut=2,At=g.getRoot(),nn=un=>{const yn=vo.fromRangeStart(B),Qn=k0(g.getRoot()),rr=un===Ke?Qn.prev(yn):Qn.next(yn),Wn=rr==null?void 0:rr.getNode();return Wn?nP(g,Wn)!==be:!0};return be?nn(Ke)?_z(be,Le,At):nn(ut)?tY(be,Le,At,g):xz(be,Le,At,B):null},rY=["pre"],eg=(r,g,B,H)=>{var oe;const be=g.firstChild,Le=g.lastChild,Ke=Le.attr("data-mce-type")==="bookmark"?Le.prev:Le,ut=be===Ke,At=ce(rY,be.name);if(ut&&At){const nn=be.attr("contenteditable")!=="false",un=((oe=r.getParent(B,r.isBlock))===null||oe===void 0?void 0:oe.nodeName.toLowerCase())===be.name,yn=Y.from(z2(H,B)).forall(pn);return nn&&un&&yn}else return!1},A0=Ir,oY=(r,g,B)=>{if(P(B)){const H=r.getParent(g.endContainer,A0);return B===H&&S3(_r.fromDom(B),g)}else return!1},rP=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const oe=B.firstChild,be=B.lastChild;!oe||oe===be&&oe.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},oP=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(_r.fromDom).each(H=>_b(H,B))},iY=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const oe=r.getBody(),be=Vk(r),Le="*[data-mce-fragment]",Ke=H.select(Le);To.each(Ke,ut=>{const At=yn=>P(B[yn.nodeName.toLowerCase()]),nn=yn=>yn.childNodes.length===1;if((yn=>!(yB(H,yn)||pW(H,yn)))(ut)&&At(ut)&&nn(ut)){const yn=W3(H,ut),Qn=(Tr,Wr)=>Oe(Tr,Qr=>ce(Wr,Qr)),rr=Tr=>nn(ut)&&H.is(Tr,Le)&&At(Tr)&&(Tr.nodeName===ut.nodeName&&Qn(yn,W3(H,Tr))||rr(Tr.children[0])),Wn=Tr=>P(Tr)&&Tr!==oe&&(be.compare(ut,Tr)||Wn(Tr.parentElement)),ur=Tr=>P(Tr)&&Tr!==oe&&H.is(Tr,Le)&&(gW(H,ut,Tr)||ur(Tr.parentElement));(rr(ut.children[0])||Wn(ut.parentElement)&&!ur(ut.parentElement))&&H.remove(ut,!0)}})}},aY=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},Zk=r=>{To.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},S6=r=>!!r.getAttribute("data-mce-fragment"),iP=(r,g)=>P(g)&&!r.schema.getVoidElements()[g.nodeName],sY=(r,g)=>{var B,H,oe;let be;const Le=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ut=z2(r.getBody(),g);if(ut&&Le.getContentEditable(ut)==="false"){Le.remove(g),Ke.select(ut);return}let At=Le.createRng();const nn=g.previousSibling;if(Mt(nn)){At.setStart(nn,(H=(B=nn.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const Qn=g.nextSibling;Mt(Qn)&&(nn.appendData(Qn.data),(oe=Qn.parentNode)===null||oe===void 0||oe.removeChild(Qn))}else At.setStartBefore(g),At.setEndBefore(g);const un=Qn=>{let rr=vo.fromRangeStart(Qn);return rr=k0(r.getBody()).next(rr),rr==null?void 0:rr.toRange()},yn=Le.getParent(g,Le.isBlock);if(Le.remove(g),yn&&Le.isEmpty(yn)){const Qn=A0(yn);uf(_r.fromDom(yn)),At.setStart(yn,0),At.setEnd(yn,0),!Qn&&!S6(yn)&&(be=un(At))?(At=be,Le.remove(yn)):Le.add(yn,Le.create("br",Qn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(At)},Pv=r=>{const g=r.dom,B=Rc(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,A0);oY(g,B,H)?b6(r,B,_r.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Mt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},lY=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},cY=(r,g,B)=>{var H;return de(B.children(),Qw)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},M0=(r,g,B)=>{var H,oe;const be=r.selection,Le=r.dom,Ke=r.parser,ut=B.merge,At=rx({validate:!0},r.schema),nn='';B.preserve_zwsp||(g=Sd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,nn);let un=be.getRng();const yn=un.startContainer,Qn=r.getBody();yn===Qn&&be.isCollapsed()&&Le.isBlock(Qn.firstChild)&&iP(r,Qn.firstChild)&&Le.isEmpty(Qn.firstChild)&&(un=Le.createRng(),un.setStart(Qn.firstChild,0),un.setEnd(Qn.firstChild,0),be.setRng(un)),be.isCollapsed()||Pv(r);const rr=be.getNode(),Wn={context:rr.nodeName.toLowerCase(),data:B.data,insert:!0},ur=Ke.parse(g,Wn);if(B.paste===!0&&Hk(r.schema,ur)&&JW(Le,rr))return un=nY(At,Le,be.getRng(),ur),un&&be.setRng(un),g;B.paste===!0&&eg(Le,ur,rr,r.getBody())&&((H=ur.firstChild)===null||H===void 0||H.unwrap()),aY(ur);let Tr=ur.lastChild;if(Tr&&Tr.attr("id")==="mce_marker"){const Wr=Tr;for(Tr=Tr.prev;Tr;Tr=Tr.walk(!0))if(Tr.type===3||!Le.isBlock(Tr.name)){Tr.parent&&r.schema.isValidChild(Tr.parent.name,"span")&&Tr.parent.insert(Wr,Tr,Tr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(rr),!Wn.invalid&&!cY(Le,rr,ur))g=At.serialize(ur),rP(r,g,rr);else{r.selection.setContent(nn);let Wr=be.getNode(),Qr;const lo=r.getBody();for(vn(Wr)?Wr=Qr=lo:Qr=Wr;Qr&&Qr!==lo;)Wr=Qr,Qr=Qr.parentNode;g=Wr===lo?lo.innerHTML:Le.getOuterHTML(Wr);const Zo=Ke.parse(g),li=lY(Zo),Mi=li.bind(YW).getOr(Zo);li.each(Fi=>Fi.replace(ur));const Co=ur.children(),yo=(oe=ur.parent)!==null&&oe!==void 0?oe:Zo;ur.unwrap();const Vo=Te(Co,Fi=>vz(r.schema,Fi,yo));Ev(Vo,r.schema,Mi),JE(Ke.getNodeFilters(),Ke.getAttributeFilters(),Zo),g=At.serialize(Zo),Wr===lo?Le.setHTML(lo,g):Le.setOuterHTML(Wr,g)}return iY(r,ut),sY(r,Le.get("mce_marker")),Zk(r.getBody()),oP(Le,be.getStart(),r.schema),Jc(r.schema,r.getBody(),be.getStart()),g},F2=r=>r instanceof Hp,T1=r=>{nx(r)&&ph(r.getBody()).each(g=>{const B=g.getNode(),H=dt(B)?ph(B).getOr(g):g;r.selection.setRng(H.toRange())})},aP=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&T1(r)},rc=(r,g,B,H)=>{if(B=Sd(B),B.length===0||/^\s+$/.test(B)){const oe='
    ';g.nodeName==="TABLE"?B=""+oe+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+oe+"
  • ");const be=tu(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=oe,B=r.dom.createHTML(be,qd(r),B)):B||(B=oe),aP(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=rx({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const oe=xb(_r.fromDom(g))?B:To.trim(B);return aP(r,oe,H.no_selection),{content:oe,html:oe}}},nS=(r,g,B,H)=>{JE(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const oe=rx({validate:!1},r.schema).serialize(B),be=Sd(xb(_r.fromDom(g))?oe:To.trim(oe));return aP(r,be,H.no_selection),{content:B,html:be}},k6=(r,g,B)=>Y.from(r.getBody()).map(H=>F2(g)?nS(r,H,g,B):rc(r,H,g,B)).getOr({content:g,html:F2(B.content)?"":B.content}),sP=r=>A(r)?r:re,lP=(r,g,B)=>{let H=r.dom;const oe=sP(B);for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H),Le=g(be);if(Le.isSome())return Le;if(oe(be))break}return Y.none()},qk=(r,g,B)=>{const H=g(r),oe=sP(B);return H.orThunk(()=>oe(r)?Y.none():lP(r,g,oe))},cP=Wb,T6=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let oe=0;oe{const be=r.dom.getRoot();if(g===be)return!1;const Le=r.dom.getParent(g,Ke=>T6(r,Ke,B)?!0:Ke.parentNode===be||!!C1(r,Ke,B,H,!0));return!!C1(r,Le,B,H,oe)},Wk=(r,g,B)=>Ed(B)&&cP(g,B.inline)||Cv(B)&&cP(g,B.block)?!0:Gm(B)?ne(g)&&r.is(g,B.selector):!1,fP=(r,g,B,H,oe,be)=>{const Le=B[H],Ke=H==="attributes";if(A(B.onmatch))return B.onmatch(g,B,H);if(Le){if(Sn(Le)){for(let ut=0;ut{const be=r.formatter.get(B),Le=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return uP(r,H,g,B,oe);if(H=r.selection.getNode(),uP(r,H,g,B,oe))return!0;const be=r.selection.getStart();return!!(be!==H&&uP(r,be,g,B,oe))},A6=(r,g,B)=>{const H=[],oe={},be=r.selection.getStart();return r.dom.getParent(be,Le=>{for(let Ke=0;Ke{const B=oe=>va(oe,_r.fromDom(r.getBody())),H=(oe,be)=>C1(r,oe.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(oe=>qk(_r.fromDom(oe),be=>Fe(g,Le=>H(be,Le)),B)).getOrNull()},fY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const oe=r.selection.getStart(),be=R3(H,oe);for(let Le=B.length-1;Le>=0;Le--){const Ke=B[Le];if(!Gm(Ke))return!0;for(let ut=be.length-1;ut>=0;ut--)if(H.is(be[ut],Ke.selector))return!0}}return!1},dY=(r,g,B)=>Ie(B,(H,oe)=>{const be=uk(r,oe);return r.formatter.matchNode(g,oe,{},be)?H.concat([oe]):H},[]),Yk=Ou,hY=(r,g)=>r.importNode(g,!0),dP=r=>{if(r){const g=new Xl(r,r);for(let B=g.current();B;B=g.next())if(Mt(B))return B}return null},hP=r=>{const g=_r.fromTag("span");return Tu(g,{id:y3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&ii(g,_r.fromText(Yk)),g},pY=r=>{const g=dP(r);return g&&g.data.charAt(0)===Yk&&g.deleteData(0,1),g},M6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(D3(g))T0(r,!1,_r.fromDom(g),B,!0);else{const be=oe.getRng(),Le=H.getParent(g,H.isBlock),Ke=be.startContainer,ut=be.startOffset,At=be.endContainer,nn=be.endOffset,un=pY(g);H.remove(g,!0),Ke===un&&ut>0&&be.setStart(un,ut-1),At===un&&nn>0&&be.setEnd(un,nn-1),Le&&H.isEmpty(Le)&&xp(_r.fromDom(Le)),oe.setRng(be)}},E6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(g)M6(r,g,B);else if(g=jb(r.getBody(),oe.getStart()),!g)for(;g=H.get(y3);)M6(r,g,B)},mY=(r,g,B)=>{var H,oe;const be=r.dom,Le=be.getParent(B,U(E3,r.schema));Le&&be.isEmpty(Le)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(a1(_r.fromDom(B)),be.isEmpty(B)?(oe=B.parentNode)===null||oe===void 0||oe.replaceChild(g,B):be.insertAfter(g,B))},wz=(r,g)=>(r.appendChild(g),g),pP=(r,g)=>{var B;const H=Pe(r,(be,Le)=>wz(be,Le.cloneNode(!1)),g),oe=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return wz(H,oe.createTextNode(Yk))},gY=(r,g,B,H,oe,be)=>{const Le=r.formatter,Ke=r.dom,ut=Te(tt(Le.get()),un=>un!==H&&!tr(un,"removeformat")),At=dY(r,B,ut);if(Te(At,un=>!zC(r,un,H)).length>0){const un=B.cloneNode(!1);return Ke.add(g,un),Le.remove(H,oe,un,be),Ke.remove(un),Y.some(un)}else return Y.none()},mP=r=>K_(r,f0(r).replace(new RegExp(`${Pc}$`)," ")),Dg=(r,g)=>{const B=()=>{g!==null&&!r.dom.isEmpty(g)&&sf(_r.fromDom(g)).each(H=>{Ml(H)?mP(H):Qc(H,oe=>Ml(oe)).each(oe=>{Ml(oe)&&mP(oe)})})};r.once("input",H=>{H.data&&!Ly(H.data)&&(H.isComposing?r.once("compositionend",()=>{B()}):B())})},vY=(r,g,B)=>{let H;const oe=r.selection,be=r.formatter.get(g);if(!be)return;const Le=oe.getRng();let Ke=Le.startOffset;const At=Le.startContainer.nodeValue;H=jb(r.getBody(),oe.getStart());const nn=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(At&&Ke>0&&Ke{const oe=r.dom,be=r.selection;let Le=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ut=be.getRng(),At=ut.startContainer,nn=ut.startOffset;let un=At;Mt(At)&&(nn!==At.data.length&&(Le=!0),un=un.parentNode);const yn=[];let Qn;for(;un;){if(C1(r,un,g,B,H)){Qn=un;break}un.nextSibling&&(Le=!0),yn.push(un),un=un.parentNode}if(Qn)if(Le){const rr=be.getBookmark();ut.collapse(!0);let Wn=Xb(oe,ut,Ke,!0);Wn=Xo(Wn),r.formatter.remove(g,B,Wn,H),be.moveToBookmark(rr)}else{const rr=jb(r.getBody(),Qn),Wn=P(rr)?oe.getParents(Qn.parentNode,q,rr):[],ur=hP(!1).dom;mY(r,ur,rr??Qn);const Tr=gY(r,ur,Qn,g,B,H),Wr=pP([...yn,...Tr.toArray(),...Wn],ur);rr&&M6(r,rr,P(rr)),be.setCursorLocation(Wr,1),Dg(r,ur),oe.isEmpty(Qn)&&oe.remove(Qn)}},gP=(r,g,B)=>{const H=r.selection,oe=r.getBody();E6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===Yk&&E6(r,jb(oe,H.getStart()),!0),(g===37||g===39)&&E6(r,jb(oe,H.getStart()),!0)},vP=r=>Mt(r)&&$r(r.data,Pc),Sz=r=>{r.on("mouseup keydown",g=>{gP(r,g.keyCode,vP(r.selection.getRng().endContainer))})},yP=r=>{const g=hP(!1),B=pP(r,g.dom);return{caretContainer:g,caretPosition:vo(B,0)}},kz=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return xc(_r.fromDom(r),B),hs(_r.fromDom(r)),H},yY=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return r.insertNode(B.dom),H},P6=(r,g)=>{if(Xm(g.dom))return!1;const B=r.schema.getTextInlineElements();return Ot(B,ma(g))&&!Xm(g.dom)&&!et(g.dom)},rS={},Bg=xe(["pre"]),bY=(r,g)=>{rS[r]||(rS[r]=[]),rS[r].push(g)},xY=(r,g)=>{Ot(rS,r)&&ve(rS[r],B=>{B(g)})};bY("pre",r=>{const g=r.selection.getRng(),B=oe=>be=>{const Le=be.previousSibling;return Bg(Le)&&ce(oe,Le)},H=(oe,be)=>{const Le=_r.fromDom(be),Ke=$f(Le).dom;hs(Le),Yl(_r.fromDom(oe),[_r.fromTag("br",Ke),_r.fromTag("br",Ke),...vc(Le)])};if(!g.collapsed){const oe=r.selection.getSelectedBlocks(),be=Te(Te(oe,Bg),B(oe));ve(be,Le=>{H(Le.previousSibling,Le)})}});const _Y=["fontWeight","fontStyle","color","fontSize","fontFamily"],bP=r=>_(r.styles)&&de(tt(r.styles),g=>ce(_Y,g)),wY=r=>De(r,g=>Ed(g)&&g.inline==="span"&&bP(g)),OY=(r,g)=>{const B=r.get(g);return C(B)?wY(B):Y.none()},Tz=(r,g)=>Up(g,vo.fromRangeStart(r)).isNone(),R6=(r,g)=>Sp(g,vo.fromRangeEnd(r)).exists(B=>!gn(B.getNode())||Sp(g,B).isSome())===!1,A1=r=>g=>ro(g)&&r.isEditable(g),xP=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return Tz(B,g[0])&&R6(B,g[0])?g:[];{const H=Ye(g).filter(Le=>Tz(B,Le)).toArray(),oe=Je(g).filter(Le=>R6(B,Le)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(oe)}},L6=r=>Te(xP(r),A1(r.dom)),I6=r=>Te(r.getSelectedBlocks(),A1(r.dom)),_P=To.each,D6=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Cz=(r,g)=>{for(let B=r;B;B=B[g]){if(Mt(B)&&lr(B.data))return r;if(ne(B)&&!pm(B))return B}return r},wP=(r,g,B)=>{const H=Vk(r),oe=V(g)&&r.dom.isEditable(g),be=V(B)&&r.dom.isEditable(B);if(oe&&be){const Le=Cz(g,"previousSibling"),Ke=Cz(B,"nextSibling");if(H.compare(Le,Ke)){for(let ut=Le.nextSibling;ut&&ut!==Ke;){const At=ut;ut=ut.nextSibling,Le.appendChild(At)}return r.dom.remove(Ke),To.each(To.grep(Ke.childNodes),ut=>{Le.appendChild(ut)}),Le}}return B},B6=(r,g,B,H)=>{var oe;if(H&&g.merge_siblings!==!1){const be=(oe=wP(r,M3(H),H))!==null&&oe!==void 0?oe:H;wP(r,be,M3(be,!0))}},SY=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";_P(r.select(H,B),oe=>{D6(oe)&&r.isEditable(oe)&&_P(g.styles,(be,Le)=>{r.setStyle(oe,Le,"")})})}},z6=(r,g,B)=>{_P(r.childNodes,H=>{D6(H)&&(g(H)&&B(H),H.hasChildNodes()&&z6(H,g,B))})},kY=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},$2=(r,g)=>B=>!!(B&&Cw(r,B,g)),OP=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),kY(r,H)},Zw=kl.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Az=/^(src|href|style)$/,SP=To.each,N6=Wb,TY=r=>/^(TR|TH|TD)$/.test(r.nodeName),Mz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),Ez=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],oe=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&oe&&oe--,H=H.childNodes[oe>be?be:oe]}return Mt(H)&&B&&oe>=H.data.length&&(H=new Xl(H,r.getBody()).next()||H),Mt(H)&&!B&&oe===0&&(H=new Xl(H,r.getBody()).prev()||H),H},kP=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return TY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},TP=(r,g,B,H)=>{var oe;const be=r.create(B,H);return(oe=g.parentNode)===null||oe===void 0||oe.insertBefore(be,g),be.appendChild(g),be},F6=(r,g,B,H,oe)=>{const be=_r.fromDom(g),Le=_r.fromDom(r.create(H,oe)),Ke=B?xd(be):Vd(be);return Yl(Le,Ke),B?(xc(be,Le),jd(Le,be)):(Kc(be,Le),ii(Le,be)),Le.dom},qw=(r,g)=>g.links&&r.nodeName==="A",Pz=(r,g,B)=>{const H=g.parentNode;let oe;const be=r.dom,Le=tu(r);Cv(B)&&H===be.getRoot()&&(!B.list_block||!N6(g,B.list_block))&&ve(Me(g.childNodes),Ke=>{Iy(r,Le,Ke.nodeName.toLowerCase())?oe?oe.appendChild(Ke):(oe=TP(be,Ke,Le),be.setAttribs(oe,qd(r))):oe=null}),!(Av(B)&&!N6(B.inline,g))&&be.remove(g,!0)},Rz=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Tv(g,B)},Xk=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},CP=(r,g,B,H,oe)=>{let be=!1;SP(B.styles,(Le,Ke)=>{const{name:ut,value:At}=Rz(Ke,Le,H),nn=BC(At,ut);(B.remove_similar||x(At)||!ne(oe)||N6(Cw(r,oe,ut),nn))&&r.setStyle(g,ut,""),be=!0}),be&&Xk(r,g)},Lz=(r,g,B)=>{g==="removeformat"?ve(I6(r.selection),H=>{ve(_Y,oe=>r.dom.setStyle(H,oe,"")),Xk(r.dom,H)}):OY(r.formatter,g).each(H=>{ve(I6(r.selection),oe=>CP(r.dom,oe,H,B,null))})},Iz=(r,g,B,H,oe)=>{const be=r.dom,Le=Vk(r),Ke=r.schema;if(Ed(g)&&Hc(Ke,g.inline)&&lh(Ke,H)&&H.parentElement===r.getBody())return Pz(r,H,g),Zw.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!Wk(be,H,g)&&!qw(H,g))return Zw.keep();const ut=H,At=g.preserve_attributes;if(Ed(g)&&g.remove==="all"&&C(At)){const nn=Te(be.getAttribs(ut),un=>ce(At,un.name.toLowerCase()));if(be.removeAllAttribs(ut),ve(nn,un=>be.setAttrib(ut,un.name,un.value)),nn.length>0)return Zw.rename("span")}if(g.remove!=="all"){CP(be,ut,g,B,oe),SP(g.attributes,(un,yn)=>{const{name:Qn,value:rr}=Rz(yn,un,B);if(g.remove_similar||x(rr)||!ne(oe)||N6(be.getAttrib(oe,Qn),rr)){if(Qn==="class"){const Wn=be.getAttrib(ut,Qn);if(Wn){let ur="";if(ve(Wn.split(/\s+/),Tr=>{/mce\-\w+/.test(Tr)&&(ur+=(ur?" ":"")+Tr)}),ur){be.setAttrib(ut,Qn,ur);return}}}if(Az.test(Qn)&&ut.removeAttribute("data-mce-"+Qn),Qn==="style"&&xe(["li"])(ut)&&be.getStyle(ut,"list-style-type")==="none"){ut.removeAttribute(Qn),be.setStyle(ut,"list-style-type","none");return}Qn==="class"&&ut.removeAttribute("className"),ut.removeAttribute(Qn)}}),SP(g.classes,un=>{un=Tv(un,B),(!ne(oe)||be.hasClass(oe,un))&&be.removeClass(ut,un)});const nn=be.getAttribs(ut);for(let un=0;un{let be;return g.parentNode&&ve(R3(r.dom,g.parentNode).reverse(),Le=>{if(!be&&ne(Le)&&Le.id!=="_start"&&Le.id!=="_end"){const Ke=C1(r,Le,B,H,oe);Ke&&Ke.split!==!1&&(be=Le)}}),be},CY=(r,g,B,H)=>Iz(r,g,B,H,H).fold($(H),oe=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,oe)),$(null)),Ww=(r,g,B,H,oe,be,Le,Ke)=>{var ut,At;let nn,un;const yn=r.dom;if(B){const Qn=B.parentNode;for(let rr=H.parentNode;rr&&rr!==Qn;rr=rr.parentNode){let Wn=yn.clone(rr,!1);for(let ur=0;ur{const be=r.formatter.get(g),Le=be[0],Ke=r.dom,ut=r.selection,At=Wn=>{const ur=Dz(r,Wn,g,B,oe);return Ww(r,be,ur,Wn,Wn,!0,Le,B)},nn=Wn=>pm(Wn)&&ne(Wn)&&(Wn.id==="_start"||Wn.id==="_end"),un=Wn=>de(be,ur=>oS(r,ur,B,Wn,Wn)),yn=Wn=>{const ur=Me(Wn.childNodes),Wr=un(Wn)||de(be,Zo=>Wk(Ke,Wn,Zo)),Qr=Wn.parentNode;if(!Wr&&P(Qr)&&fk(Le)&&un(Qr),Le.deep&&ur.length)for(let Zo=0;Zo{ne(Wn)&&r.dom.getStyle(Wn,"text-decoration")===Zo&&Wn.parentNode&&ck(Ke,Wn.parentNode)===Zo&&oS(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:Zo}},void 0,Wn)})},Qn=Wn=>{const ur=Ke.get(Wn?"_start":"_end");if(ur){let Tr=ur[Wn?"firstChild":"lastChild"];return nn(Tr)&&(Tr=Tr[Wn?"firstChild":"lastChild"]),Mt(Tr)&&Tr.data.length===0&&(Tr=Wn?ur.previousSibling||ur.nextSibling:ur.nextSibling||ur.previousSibling),Ke.remove(ur,!0),Tr}else return null},rr=Wn=>{let ur,Tr,Wr=Xb(Ke,Wn,be,Wn.collapsed);if(Le.split){if(Wr=Xo(Wr),ur=Ez(r,Wr,!0),Tr=Ez(r,Wr),ur!==Tr){if(ur=kP(ur,!0),Tr=kP(Tr,!1),Mz(Ke,ur,Tr)){const lo=Y.from(ur.firstChild).getOr(ur);At(F6(Ke,lo,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Qn(!0);return}if(Mz(Ke,Tr,ur)){const lo=Y.from(Tr.lastChild).getOr(Tr);At(F6(Ke,lo,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Qn(!1);return}ur=TP(Ke,ur,"span",{id:"_start","data-mce-type":"bookmark"}),Tr=TP(Ke,Tr,"span",{id:"_end","data-mce-type":"bookmark"});const Qr=Ke.createRng();Qr.setStartAfter(ur),Qr.setEndBefore(Tr),Ew(Ke,Qr,lo=>{ve(lo,Zo=>{!pm(Zo)&&!pm(Zo.parentNode)&&At(Zo)})}),At(ur),At(Tr),ur=Qn(!0),Tr=Qn()}else ur=Tr=At(ur);Wr.startContainer=ur.parentNode?ur.parentNode:ur,Wr.startOffset=Ke.nodeIndex(ur),Wr.endContainer=Tr.parentNode?Tr.parentNode:Tr,Wr.endOffset=Ke.nodeIndex(Tr)+1}Ew(Ke,Wr,Qr=>{ve(Qr,yn)})};if(H){if(C3(H)){const Wn=Ke.createRng();Wn.setStartBefore(H),Wn.setEndAfter(H),rr(Wn)}else rr(H);mm(r,g,H,B);return}!ut.isCollapsed()||!Ed(Le)||k2(r).length?(_1(r,()=>k3(r,rr),Wn=>Ed(Le)&&C6(r,g,B,Wn)),r.nodeChanged()):Oz(r,g,B,oe),Lz(r,g,B),mm(r,g,H,B)},AP=(r,g,B,H,oe)=>{(H||r.selection.isEditable())&&Bz(r,g,B,H,oe)},oS=(r,g,B,H,oe)=>Iz(r,g,B,H,oe).fold(re,be=>(r.dom.rename(H,be),!0),q),Gk=To.each,zz=(r,g,B,H)=>{const oe=be=>{if(V(be)&&ne(be.parentNode)&&r.isEditable(be)){const Le=ck(r,be.parentNode);r.getStyle(be,"color")&&Le?r.setStyle(be,"text-decoration",Le):r.getStyle(be,"text-decoration")===Le&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(To.walk(H,oe,"childNodes"),oe(H))},AY=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const oe=$2(r,"fontSize");z6(H,be=>oe(be)&&r.isEditable(be),OP(r,"backgroundColor",Tv(g.styles.backgroundColor,B)))}},Nz=(r,g,B,H)=>{if(Ed(g)&&(g.inline==="sub"||g.inline==="sup")){const oe=$2(r,"fontSize");z6(H,Le=>oe(Le)&&r.isEditable(Le),OP(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},MY=(r,g,B,H)=>{Gk(g,oe=>{Ed(oe)&&Gk(r.dom.select(oe.inline,H),be=>{D6(be)&&oS(r,oe,B,be,oe.exact?be:null)}),SY(r.dom,oe,H)})},EY=(r,g,B,H,oe)=>{const be=oe.parentNode;C1(r,be,B,H)&&oS(r,g,H,oe)||g.merge_with_parents&&be&&r.dom.getParent(be,Le=>C1(r,Le,B,H)?(oS(r,g,H,oe),!0):!1)},Yw=To.each,Fz=(r,g,B,H)=>{if(t3(r)&&Ed(g)&&B.parentNode){const oe=n1(r.schema),be=sh(_r.fromDom(B),Le=>Xm(Le.dom));return cn(oe,H)&&Hi(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},$6=(r,g,B,H)=>{if(Yw(B.styles,(oe,be)=>{r.setStyle(g,be,Tv(oe,H))}),B.styles){const oe=r.getAttrib(g,"style");oe&&r.setAttrib(g,"data-mce-style",oe)}},PY=(r,g,B,H)=>{const oe=r.formatter.get(g),be=oe[0],Le=!H&&r.selection.isCollapsed(),Ke=r.dom,ut=r.selection,At=(rr,Wn=be)=>{A(Wn.onformat)&&Wn.onformat(rr,Wn,B,H),$6(Ke,rr,Wn,B),Yw(Wn.attributes,(ur,Tr)=>{Ke.setAttrib(rr,Tr,Tv(ur,B))}),Yw(Wn.classes,ur=>{const Tr=Tv(ur,B);Ke.hasClass(rr,Tr)||Ke.addClass(rr,Tr)})},nn=(rr,Wn)=>{let ur=!1;return Yw(rr,Tr=>Gm(Tr)?Ke.getContentEditable(Wn)==="false"&&!Tr.ceFalseOverride||P(Tr.collapsed)&&Tr.collapsed!==Le?!0:Ke.is(Wn,Tr.selector)&&!Xm(Wn)?(At(Wn,Tr),ur=!0,!1):!0:!1),ur},un=rr=>{if(v(rr)){const Wn=Ke.create(rr);return At(Wn),Wn}else return null},yn=(rr,Wn,ur)=>{const Tr=[];let Wr=!0;const Qr=be.inline||be.block,lo=un(Qr),Zo=Co=>I3(be)&&C1(r,Co,g,B),li=(Co,yo,Vo)=>{const Fi=NC(be)&&E3(r.schema,Co)&&Iy(r,yo,Qr);return Vo&&Fi},Mi=(Co,yo,Vo,Fi)=>{const la=Co.nodeName.toLowerCase(),bs=Iy(r,Qr,la)&&Iy(r,yo,Qr),Ms=!ur&&Mt(Co)&&Wx(Co.data),wl=Xm(Co),Vl=!Ed(be)||!rr.isBlock(Co);return(Vo||Fi)&&bs&&!Ms&&!wl&&Vl};Ew(rr,Wn,Co=>{let yo;const Vo=Fi=>{let la=!1,bs=Wr,Ms=!1;const wl=Fi.parentNode,Vl=wl.nodeName.toLowerCase(),Uu=rr.getContentEditable(Fi);P(Uu)&&(bs=Wr,Wr=Uu==="true",la=!0,Ms=lk(r,Fi));const Wf=Wr&&!la;if(gn(Fi)&&!Fz(r,be,Fi,Vl)){yo=null,Cv(be)&&rr.remove(Fi);return}if(Zo(Fi)){yo=null;return}if(li(Fi,Vl,Wf)){const ic=rr.rename(Fi,Qr);At(ic),Tr.push(ic),yo=null;return}if(Gm(be)){let ic=nn(oe,Fi);if(!ic&&P(wl)&&fk(be)&&(ic=nn(oe,wl)),!Ed(be)||ic){yo=null;return}}P(lo)&&Mi(Fi,Vl,Wf,Ms)?(yo||(yo=rr.clone(lo,!1),wl.insertBefore(yo,Fi),Tr.push(yo)),Ms&&la&&(Wr=bs),yo.appendChild(Fi)):(yo=null,ve(Me(Fi.childNodes),Vo),la&&(Wr=bs),yo=null)};ve(Co,Vo)}),be.links===!0&&ve(Tr,Co=>{const yo=Vo=>{Vo.nodeName==="A"&&At(Vo,be),ve(Me(Vo.childNodes),yo)};yo(Co)}),ve(Tr,Co=>{const yo=la=>{let bs=0;return ve(la.childNodes,Ms=>{!ak(Ms)&&!pm(Ms)&&bs++}),bs},Vo=la=>De(la.childNodes,A3).filter(Ms=>rr.getContentEditable(Ms)!=="false"&&Wk(rr,Ms,be)).map(Ms=>{const wl=rr.clone(Ms,!1);return At(wl),rr.replace(wl,la,!0),rr.remove(Ms,!0),wl}).getOr(la),Fi=yo(Co);if((Tr.length>1||!rr.isBlock(Co))&&Fi===0){rr.remove(Co,!0);return}(Ed(be)||Cv(be)&&be.wrapper)&&(!be.exact&&Fi===1&&(Co=Vo(Co)),MY(r,oe,B,Co),EY(r,be,g,B,Co),AY(rr,be,B,Co),zz(rr,be,B,Co),Nz(rr,be,B,Co),B6(r,be,B,Co))})},Qn=C3(H)?H:ut.getNode();if(Ke.getContentEditable(Qn)==="false"&&!lk(r,Qn)){H=Qn,nn(oe,H),Jm(r,g,H,B);return}if(be){if(H)if(C3(H)){if(!nn(oe,H)){const rr=Ke.createRng();rr.setStartBefore(H),rr.setEndAfter(H),yn(Ke,Xb(Ke,rr,oe),!0)}}else yn(Ke,H,!0);else!Le||!Ed(be)||k2(r).length?(ut.setRng(Rc(ut.getRng())),_1(r,()=>{k3(r,(rr,Wn)=>{const ur=Wn?rr:Xb(Ke,rr,oe);yn(Ke,ur,!1)})},q),r.nodeChanged()):vY(r,g,B),OY(r.formatter,g).each(rr=>{ve(L6(r.selection),Wn=>$6(Ke,Wn,rr,B))});xY(g,r)}Jm(r,g,H,B)},$z=(r,g,B,H)=>{(H||r.selection.isEditable())&&PY(r,g,B,H)},MP=r=>Ot(r,"vars"),EP=(r,g)=>{r.set({}),g.on("NodeChange",B=>{jz(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(oe=>C3(oe)?oe:oe.startContainer).bind(oe=>ne(oe)?Y.some(oe):Y.from(oe.parentElement)).getOrThunk(()=>PP(g));jz(g,H,r.get())})},PP=r=>r.selection.getStart(),Vz=(r,g,B,H,oe)=>ze(g,Ke=>{const ut=r.formatter.matchNode(Ke,B,oe??{},H);return!M(ut)},Ke=>T6(r,Ke,B)?!0:H?!1:P(r.formatter.matchNode(Ke,B,oe,!0))),Uz=(r,g)=>{const B=g??PP(r);return Te(R3(r.dom,B),H=>ne(H)&&!et(H))},jz=(r,g,B)=>{const H=Uz(r,g);Ge(B,(oe,be)=>{const Le=Ke=>{const ut=Vz(r,H,be,Ke.similar,MP(Ke)?Ke.vars:void 0),At=ut.isSome();if(Ke.state.get()!==At){Ke.state.set(At);const nn=ut.getOr(g);MP(Ke)?Ke.callback(At,{node:nn,format:be,parents:H}):ve(Ke.callbacks,un=>un(At,{node:nn,format:be,parents:H}))}};ve([oe.withSimilar,oe.withoutSimilar],Le),ve(oe.withVars,Le)})},V6=(r,g,B,H,oe,be)=>{const Le=g.get();ve(B.split(","),Ke=>{const ut=Et(Le,Ke).getOrThunk(()=>{const nn={withSimilar:{state:Ar(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ar(!1),similar:!1,callbacks:[]},withVars:[]};return Le[Ke]=nn,nn}),At=()=>{const nn=Uz(r);return Vz(r,nn,Ke,oe,be).isSome()};if(M(be)){const nn=oe?ut.withSimilar:ut.withoutSimilar;nn.callbacks.push(H),nn.callbacks.length===1&&nn.state.set(At())}else ut.withVars.push({state:Ar(At()),similar:oe,vars:be,callback:H})}),g.set(Le)},ax=(r,g,B)=>{const H=r.get();ve(g.split(","),oe=>Et(H,oe).each(be=>{H[oe]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Le=>Le!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Le=>Le!==B)},withVars:Te(be.withVars,Le=>Le.callback!==B)}})),r.set(H)},RY=(r,g,B,H,oe,be)=>(V6(r,g,B,H,oe,be),{unbind:()=>ax(g,B,H)}),RP=(r,g,B,H)=>{const oe=r.formatter.get(g);oe&&(C6(r,g,B,H)&&(!("toggle"in oe[0])||oe[0].toggle)?AP(r,g,B,H):$z(r,g,B,H))},pf=To.explode,U6=()=>{const r={};return{addFilter:(oe,be)=>{ve(pf(oe),Le=>{Ot(r,Le)||(r[Le]={name:Le,callbacks:[]}),r[Le].callbacks.push(be)})},getFilters:()=>tn(r),removeFilter:(oe,be)=>{ve(pf(oe),Le=>{if(Ot(r,Le))if(P(be)){const Ke=r[Le],ut=Te(Ke.callbacks,At=>At!==be);ut.length>0?Ke.callbacks=ut:delete r[Le]}else delete r[Le]})}}},LP=(r,g)=>{ve(g,B=>{r.attr(B,null)})},sx=(r,g,B)=>{r.addNodeFilter("font",H=>{ve(H,oe=>{const be=g.parse(oe.attr("style")),Le=oe.attr("color"),Ke=oe.attr("face"),ut=oe.attr("size");Le&&(be.color=Le),Ke&&(be["font-family"]=Ke),ut&&eo(ut).each(At=>{be["font-size"]=B[At-1]}),oe.name="span",oe.attr("style",g.serialize(be)),LP(oe,["color","face","size"])})})},Qz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const oe=g.type!=="html4";ve(H,be=>{if(oe)be.name="s";else{const Le=B.parse(be.attr("style"));Le["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Le))}})})},Hz=(r,g,B)=>{var H;const oe=U_();g.convert_fonts_to_spans&&sx(r,oe,To.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Qz(r,B,oe)},Kk=(r,g,B)=>{g.inline_styles&&Hz(r,g,B)},LY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),IY=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V2=r=>{const[g,...B]=r.split(","),H=B.join(","),oe=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(oe){const be=oe[2]===";base64",Le=be?IY(H):decodeURIComponent(H);return Y.some({type:oe[1],data:Le,base64Encoded:be})}else return Y.none()},Zz=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const oe=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V2(r).bind(({type:H,data:oe,base64Encoded:be})=>Zz(H,oe,be)).fold(()=>B("Invalid data URI"),g)}),DY=r=>Br(r,"blob:")?LY(r):Br(r,"data:")?Xw(r):Promise.reject("Unknown URI format"),lx=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var oe;B((oe=H.error)===null||oe===void 0?void 0:oe.message)},H.readAsDataURL(r)});let BY=0;const E0=r=>(r||"blobid")+BY++,iS=(r,g,B)=>V2(r).bind(({data:H,type:oe,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Le=be?H:btoa(H);return B(Le,oe)}}),j6=(r,g,B)=>{const H=r.create(E0(),g,B);return r.add(H),H},Q6=(r,g,B=!1)=>iS(g,B,(H,oe)=>Y.from(r.getByData(H,oe)).orThunk(()=>Zz(oe,H).map(be=>j6(r,be,H)))),zY=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(Br(g,"blob:")){const H=r.getByUri(g);return P(H)?Promise.resolve(H):DY(g).then(oe=>lx(oe).then(be=>iS(be,!1,Le=>Y.some(j6(r,oe,Le))).getOrThunk(B)))}else return Br(g,"data:")?Q6(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},H6=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,NY=r=>Y.from(r.match(H6)).bind(g=>Ze(g,1)).map(g=>Br(g,"www.")?g.substring(4):g),P0=(r,g)=>{Y.from(r.attr("src")).bind(NY).forall(B=>!ce(g,B))&&r.attr("sandbox","")},aS=(r,g)=>Br(r,`${g}/`),qz=r=>M(r)?"iframe":aS(r,"image")?"img":aS(r,"video")?"video":aS(r,"audio")?"audio":"iframe",IP=({type:r,src:g,width:B,height:H}={},oe,be)=>{const Le=qz(r),Ke=new Hp(Le,1);return Ke.attr(Le==="audio"?{src:g}:{src:g,width:B,height:H}),(Le==="audio"||Le==="video")&&Ke.attr("controls",""),Le==="iframe"&&oe&&P0(Ke,be),Ke},DP=r=>P(r.attr("data-mce-bogus")),Gw=r=>r.attr("src")===Nr.transparentSrc||P(r.attr("data-mce-placeholder")),BP=(r,g)=>{const{blob_cache:B}=g;if(B){const H=oe=>{const be=oe.attr("src");Gw(oe)||DP(oe)||T(be)||Q6(B,be,!0).each(Le=>{oe.attr("src",Le.blobUri())})};r.addAttributeFilter("src",oe=>ve(oe,H))}},FY=(r,g)=>{var B,H;const oe=r.schema;r.addAttributeFilter("href",ut=>{let At=ut.length;const nn=yn=>yn.split(" ").filter(rr=>rr.length>0).concat(["noopener"]).sort().join(" "),un=yn=>{const Qn=yn?To.trim(yn):"";return/\b(noopener)\b/g.test(Qn)?Qn:nn(Qn)};if(!g.allow_unsafe_link_target)for(;At--;){const yn=ut[At];yn.name==="a"&&yn.attr("target")==="_blank"&&yn.attr("rel",un(yn.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ut=>{let At=ut.length,nn,un,yn,Qn;for(;At--;)if(Qn=ut[At],Qn.name==="a"&&Qn.firstChild&&!Qn.attr("href"))for(yn=Qn.parent,nn=Qn.lastChild;nn&&yn;)un=nn.prev,yn.insert(nn,Qn),nn=un}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ut=>{let At=ut.length,nn,un;for(;At--;)if(nn=ut[At],un=nn.parent,un&&(un.name==="ul"||un.name==="ol"))if(nn.prev&&nn.prev.name==="li")nn.prev.append(nn);else{const yn=new Hp("li",1);yn.attr("style","list-style-type: none"),nn.wrap(yn)}});const be=oe.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ut=>{var At;let nn=ut.length;for(;nn--;){const un=ut[nn],yn=(At=un.attr("class"))!==null&&At!==void 0?At:"",Qn=To.explode(yn," ");let rr="";for(let Wn=0;Wnve(ut,At=>{At.replace(IP({type:At.attr("type"),src:At.name==="object"?At.attr("data"):At.attr("src"),width:At.attr("width"),height:At.attr("height")},Le,Ke))})),Le&&r.addNodeFilter("iframe",ut=>ve(ut,At=>P0(At,Ke)))},{entries:zP,setPrototypeOf:Wz,isFrozen:$Y,getPrototypeOf:VY,getOwnPropertyDescriptor:UY}=Object;let{freeze:lp,seal:Rv,create:Yz}=Object,{apply:Jk,construct:NP}=typeof Reflect<"u"&&Reflect;Jk||(Jk=function(g,B,H){return g.apply(B,H)}),lp||(lp=function(g){return g}),Rv||(Rv=function(g){return g}),NP||(NP=function(g,B){return new g(...B)});const Xz=M1(Array.prototype.forEach),Gz=M1(Array.prototype.pop),e5=M1(Array.prototype.push),Z6=M1(String.prototype.toLowerCase),FP=M1(String.prototype.toString),jY=M1(String.prototype.match),Lv=M1(String.prototype.replace),QY=M1(String.prototype.indexOf),HY=M1(String.prototype.trim),R0=M1(RegExp.prototype.test),t5=ZY(TypeError);function M1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),oe=1;oe/gm),GY=Rv(/\${[\w\W]*}/gm),KY=Rv(/^data-[\-\w.\u00B7-\uFFFF]/),JY=Rv(/^aria-[\-\w]+$/),tN=Rv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QP=Rv(/^(?:\w+script|data):/i),nN=Rv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eX=Rv(/^html$/i);var lS=Object.freeze({__proto__:null,MUSTACHE_EXPR:YY,ERB_EXPR:XY,TMPLIT_EXPR:GY,DATA_ATTR:KY,ARIA_ATTR:JY,IS_ALLOWED_URI:tN,IS_SCRIPT_OR_DATA:QP,ATTR_WHITESPACE:nN,DOCTYPE_NAME:eX});const tX=()=>typeof window>"u"?null:window,rN=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const oe="data-tt-policy-suffix";B&&B.hasAttribute(oe)&&(H=B.getAttribute(oe));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Le){return Le},createScriptURL(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function oN(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tX();const g=Ps=>oN(Ps);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:oe}=r;const{DocumentFragment:be,HTMLTemplateElement:Le,Node:Ke,Element:ut,NodeFilter:At,NamedNodeMap:nn=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:un,DOMParser:yn,trustedTypes:Qn}=r,rr=ut.prototype,Wn=n5(rr,"cloneNode"),ur=n5(rr,"nextSibling"),Tr=n5(rr,"childNodes"),Wr=n5(rr,"parentNode");if(typeof Le=="function"){const Ps=oe.createElement("template");Ps.content&&Ps.content.ownerDocument&&(oe=Ps.content.ownerDocument)}let Qr,lo="";const{implementation:Zo,createNodeIterator:li,createDocumentFragment:Mi,getElementsByTagName:Co}=oe,{importNode:yo}=B;let Vo={};g.isSupported=typeof zP=="function"&&typeof Wr=="function"&&Zo&&Zo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fi,ERB_EXPR:la,TMPLIT_EXPR:bs,DATA_ATTR:Ms,ARIA_ATTR:wl,IS_SCRIPT_OR_DATA:Vl,ATTR_WHITESPACE:Uu}=lS;let{IS_ALLOWED_URI:Wf}=lS,ic=null;const vi=oc({},[...Kz,...U2,...$P,...VP,...UP]);let na=null;const ol=oc({},[...Jz,...jP,...eN,...q6]);let Ti=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pa=null,ps=null,Ci=!0,ms=!0,Es=!1,Bd=!0,Cl=!1,dd=!1,z0=!1,$v=!1,Cp=!1,Om=!1,Hg=!1,Sm=!0,Zg=!1;const ca="user-content-";let Zs=!0,ru=!1,ju={},Pf=null;const Gd=oc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rf=null;const Lf=oc({},["audio","video","img","source","image","track"]);let fp=null;const N0=oc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),F0="http://www.w3.org/1998/Math/MathML",$0="http://www.w3.org/2000/svg",rg="http://www.w3.org/1999/xhtml";let Qy=rg,gx=!1,yO=null;const x8=oc({},[F0,$0,rg],FP);let Hy;const HS=["application/xhtml+xml","text/html"],xL="text/html";let qh,bO=null;const _L=oe.createElement("form"),wL=function(xo){return xo instanceof RegExp||xo instanceof Function},Zy=function(xo){if(!(bO&&bO===xo)){if((!xo||typeof xo!="object")&&(xo={}),xo=sS(xo),Hy=HS.indexOf(xo.PARSER_MEDIA_TYPE)===-1?Hy=xL:Hy=xo.PARSER_MEDIA_TYPE,qh=Hy==="application/xhtml+xml"?FP:Z6,ic="ALLOWED_TAGS"in xo?oc({},xo.ALLOWED_TAGS,qh):vi,na="ALLOWED_ATTR"in xo?oc({},xo.ALLOWED_ATTR,qh):ol,yO="ALLOWED_NAMESPACES"in xo?oc({},xo.ALLOWED_NAMESPACES,FP):x8,fp="ADD_URI_SAFE_ATTR"in xo?oc(sS(N0),xo.ADD_URI_SAFE_ATTR,qh):N0,Rf="ADD_DATA_URI_TAGS"in xo?oc(sS(Lf),xo.ADD_DATA_URI_TAGS,qh):Lf,Pf="FORBID_CONTENTS"in xo?oc({},xo.FORBID_CONTENTS,qh):Gd,pa="FORBID_TAGS"in xo?oc({},xo.FORBID_TAGS,qh):{},ps="FORBID_ATTR"in xo?oc({},xo.FORBID_ATTR,qh):{},ju="USE_PROFILES"in xo?xo.USE_PROFILES:!1,Ci=xo.ALLOW_ARIA_ATTR!==!1,ms=xo.ALLOW_DATA_ATTR!==!1,Es=xo.ALLOW_UNKNOWN_PROTOCOLS||!1,Bd=xo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cl=xo.SAFE_FOR_TEMPLATES||!1,dd=xo.WHOLE_DOCUMENT||!1,Cp=xo.RETURN_DOM||!1,Om=xo.RETURN_DOM_FRAGMENT||!1,Hg=xo.RETURN_TRUSTED_TYPE||!1,$v=xo.FORCE_BODY||!1,Sm=xo.SANITIZE_DOM!==!1,Zg=xo.SANITIZE_NAMED_PROPS||!1,Zs=xo.KEEP_CONTENT!==!1,ru=xo.IN_PLACE||!1,Wf=xo.ALLOWED_URI_REGEXP||tN,Qy=xo.NAMESPACE||rg,Ti=xo.CUSTOM_ELEMENT_HANDLING||{},xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ti.tagNameCheck=xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ti.attributeNameCheck=xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&typeof xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ti.allowCustomizedBuiltInElements=xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cl&&(ms=!1),Om&&(Cp=!0),ju&&(ic=oc({},[...UP]),na=[],ju.html===!0&&(oc(ic,Kz),oc(na,Jz)),ju.svg===!0&&(oc(ic,U2),oc(na,jP),oc(na,q6)),ju.svgFilters===!0&&(oc(ic,$P),oc(na,jP),oc(na,q6)),ju.mathMl===!0&&(oc(ic,VP),oc(na,eN),oc(na,q6))),xo.ADD_TAGS&&(ic===vi&&(ic=sS(ic)),oc(ic,xo.ADD_TAGS,qh)),xo.ADD_ATTR&&(na===ol&&(na=sS(na)),oc(na,xo.ADD_ATTR,qh)),xo.ADD_URI_SAFE_ATTR&&oc(fp,xo.ADD_URI_SAFE_ATTR,qh),xo.FORBID_CONTENTS&&(Pf===Gd&&(Pf=sS(Pf)),oc(Pf,xo.FORBID_CONTENTS,qh)),Zs&&(ic["#text"]=!0),dd&&oc(ic,["html","head","body"]),ic.table&&(oc(ic,["tbody"]),delete pa.tbody),xo.TRUSTED_TYPES_POLICY){if(typeof xo.TRUSTED_TYPES_POLICY.createHTML!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Qr=xo.TRUSTED_TYPES_POLICY,lo=Qr.createHTML("")}else Qr===void 0&&(Qr=rN(Qn,H)),Qr!==null&&typeof lo=="string"&&(lo=Qr.createHTML(""));lp&&lp(xo),bO=xo}},vT=oc({},["mi","mo","mn","ms","mtext"]),ho=oc({},["foreignobject","desc","title","annotation-xml"]),bo=oc({},["title","style","font","a","script"]),di=oc({},U2);oc(di,$P),oc(di,qY);const ri=oc({},VP);oc(ri,WY);const Ta=function(xo){let Ji=Wr(xo);(!Ji||!Ji.tagName)&&(Ji={namespaceURI:Qy,tagName:"template"});const Ba=Z6(xo.tagName),mf=Z6(Ji.tagName);return yO[xo.namespaceURI]?xo.namespaceURI===$0?Ji.namespaceURI===rg?Ba==="svg":Ji.namespaceURI===F0?Ba==="svg"&&(mf==="annotation-xml"||vT[mf]):!!di[Ba]:xo.namespaceURI===F0?Ji.namespaceURI===rg?Ba==="math":Ji.namespaceURI===$0?Ba==="math"&&ho[mf]:!!ri[Ba]:xo.namespaceURI===rg?Ji.namespaceURI===$0&&!ho[mf]||Ji.namespaceURI===F0&&!vT[mf]?!1:!ri[Ba]&&(bo[Ba]||!di[Ba]):!!(Hy==="application/xhtml+xml"&&yO[xo.namespaceURI]):!1},zs=function(xo){e5(g.removed,{element:xo});try{xo.parentNode.removeChild(xo)}catch{xo.remove()}},Su=function(xo,Ji){try{e5(g.removed,{attribute:Ji.getAttributeNode(xo),from:Ji})}catch{e5(g.removed,{attribute:null,from:Ji})}if(Ji.removeAttribute(xo),xo==="is"&&!na[xo])if(Cp||Om)try{zs(Ji)}catch{}else try{Ji.setAttribute(xo,"")}catch{}},V0=function(xo){let Ji,Ba;if($v)xo=""+xo;else{const l=jY(xo,/^[\r\n\t ]+/);Ba=l&&l[0]}Hy==="application/xhtml+xml"&&Qy===rg&&(xo=''+xo+"");const mf=Qr?Qr.createHTML(xo):xo;if(Qy===rg)try{Ji=new yn().parseFromString(mf,Hy)}catch{}if(!Ji||!Ji.documentElement){Ji=Zo.createDocument(Qy,"template",null);try{Ji.documentElement.innerHTML=gx?lo:mf}catch{}}const Ap=Ji.body||Ji.documentElement;return xo&&Ba&&Ap.insertBefore(oe.createTextNode(Ba),Ap.childNodes[0]||null),Qy===rg?Co.call(Ji,dd?"html":"body")[0]:dd?Ji.documentElement:Ap},ZS=function(xo){return li.call(xo.ownerDocument||xo,xo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},nie=function(xo){return xo instanceof un&&(typeof xo.nodeName!="string"||typeof xo.textContent!="string"||typeof xo.removeChild!="function"||!(xo.attributes instanceof nn)||typeof xo.removeAttribute!="function"||typeof xo.setAttribute!="function"||typeof xo.namespaceURI!="string"||typeof xo.insertBefore!="function"||typeof xo.hasChildNodes!="function")},_8=function(xo){return typeof Ke=="object"?xo instanceof Ke:xo&&typeof xo=="object"&&typeof xo.nodeType=="number"&&typeof xo.nodeName=="string"},qy=function(xo,Ji,Ba){Vo[xo]&&Xz(Vo[xo],mf=>{mf.call(g,Ji,Ba,bO)})},rQ=function(xo){let Ji;if(qy("beforeSanitizeElements",xo,null),nie(xo))return zs(xo),!0;const Ba=qh(xo.nodeName);if(qy("uponSanitizeElement",xo,{tagName:Ba,allowedTags:ic}),xo.hasChildNodes()&&!_8(xo.firstElementChild)&&(!_8(xo.content)||!_8(xo.content.firstElementChild))&&R0(/<[/\w]/g,xo.innerHTML)&&R0(/<[/\w]/g,xo.textContent))return zs(xo),!0;if(!ic[Ba]||pa[Ba]){if(!pa[Ba]&&iQ(Ba)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba)))return!1;if(Zs&&!Pf[Ba]){const mf=Wr(xo)||xo.parentNode,Ap=Tr(xo)||xo.childNodes;if(Ap&&mf){const l=Ap.length;for(let N=l-1;N>=0;--N)mf.insertBefore(Wn(Ap[N],!0),ur(xo))}}return zs(xo),!0}return xo instanceof ut&&!Ta(xo)||(Ba==="noscript"||Ba==="noembed"||Ba==="noframes")&&R0(/<\/no(script|embed|frames)/i,xo.innerHTML)?(zs(xo),!0):(Cl&&xo.nodeType===3&&(Ji=xo.textContent,Ji=Lv(Ji,Fi," "),Ji=Lv(Ji,la," "),Ji=Lv(Ji,bs," "),xo.textContent!==Ji&&(e5(g.removed,{element:xo.cloneNode()}),xo.textContent=Ji)),qy("afterSanitizeElements",xo,null),!1)},oQ=function(xo,Ji,Ba){if(Sm&&(Ji==="id"||Ji==="name")&&(Ba in oe||Ba in _L))return!1;if(!(ms&&!ps[Ji]&&R0(Ms,Ji))){if(!(Ci&&R0(wl,Ji))){if(!na[Ji]||ps[Ji]){if(!(iQ(xo)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,xo)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(xo))&&(Ti.attributeNameCheck instanceof RegExp&&R0(Ti.attributeNameCheck,Ji)||Ti.attributeNameCheck instanceof Function&&Ti.attributeNameCheck(Ji))||Ji==="is"&&Ti.allowCustomizedBuiltInElements&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba))))return!1}else if(!fp[Ji]){if(!R0(Wf,Lv(Ba,Uu,""))){if(!((Ji==="src"||Ji==="xlink:href"||Ji==="href")&&xo!=="script"&&QY(Ba,"data:")===0&&Rf[xo])){if(!(Es&&!R0(Vl,Lv(Ba,Uu,"")))){if(Ba)return!1}}}}}}return!0},iQ=function(xo){return xo.indexOf("-")>0},aQ=function(xo){let Ji,Ba,mf,Ap;qy("beforeSanitizeAttributes",xo,null);const{attributes:l}=xo;if(!l)return;const N={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:na};for(Ap=l.length;Ap--;){Ji=l[Ap];const{name:W,namespaceURI:fe}=Ji;Ba=W==="value"?Ji.value:HY(Ji.value);const Se=Ba;if(mf=qh(W),N.attrName=mf,N.attrValue=Ba,N.keepAttr=!0,N.forceKeepAttr=void 0,qy("uponSanitizeAttribute",xo,N),Ba=N.attrValue,N.forceKeepAttr)continue;if(!N.keepAttr){Su(W,xo);continue}if(!Bd&&R0(/\/>/i,Ba)){Su(W,xo);continue}Cl&&(Ba=Lv(Ba,Fi," "),Ba=Lv(Ba,la," "),Ba=Lv(Ba,bs," "));const Be=qh(xo.nodeName);if(!oQ(Be,mf,Ba)){Su(W,xo);continue}if(Zg&&(mf==="id"||mf==="name")&&(Su(W,xo),Ba=ca+Ba),Qr&&typeof Qn=="object"&&typeof Qn.getAttributeType=="function"&&!fe)switch(Qn.getAttributeType(Be,mf)){case"TrustedHTML":{Ba=Qr.createHTML(Ba);break}case"TrustedScriptURL":{Ba=Qr.createScriptURL(Ba);break}}if(Ba!==Se)try{fe?xo.setAttributeNS(fe,W,Ba):xo.setAttribute(W,Ba)}catch{Su(W,xo)}}qy("afterSanitizeAttributes",xo,null)},rie=function Ps(xo){let Ji;const Ba=ZS(xo);for(qy("beforeSanitizeShadowDOM",xo,null);Ji=Ba.nextNode();)qy("uponSanitizeShadowNode",Ji,null),!rQ(Ji)&&(Ji.content instanceof be&&Ps(Ji.content),aQ(Ji));qy("afterSanitizeShadowDOM",xo,null)};return g.sanitize=function(Ps){let xo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ji,Ba,mf,Ap;if(gx=!Ps,gx&&(Ps=""),typeof Ps!="string"&&!_8(Ps))if(typeof Ps.toString=="function"){if(Ps=Ps.toString(),typeof Ps!="string")throw t5("dirty is not a string, aborting")}else throw t5("toString is not a function");if(!g.isSupported)return Ps;if(z0||Zy(xo),g.removed=[],typeof Ps=="string"&&(ru=!1),ru){if(Ps.nodeName){const W=qh(Ps.nodeName);if(!ic[W]||pa[W])throw t5("root node is forbidden and cannot be sanitized in-place")}}else if(Ps instanceof Ke)Ji=V0(""),Ba=Ji.ownerDocument.importNode(Ps,!0),Ba.nodeType===1&&Ba.nodeName==="BODY"||Ba.nodeName==="HTML"?Ji=Ba:Ji.appendChild(Ba);else{if(!Cp&&!Cl&&!dd&&Ps.indexOf("<")===-1)return Qr&&Hg?Qr.createHTML(Ps):Ps;if(Ji=V0(Ps),!Ji)return Cp?null:Hg?lo:""}Ji&&$v&&zs(Ji.firstChild);const l=ZS(ru?Ps:Ji);for(;mf=l.nextNode();)rQ(mf)||(mf.content instanceof be&&rie(mf.content),aQ(mf));if(ru)return Ps;if(Cp){if(Om)for(Ap=Mi.call(Ji.ownerDocument);Ji.firstChild;)Ap.appendChild(Ji.firstChild);else Ap=Ji;return(na.shadowroot||na.shadowrootmode)&&(Ap=yo.call(B,Ap,!0)),Ap}let N=dd?Ji.outerHTML:Ji.innerHTML;return dd&&ic["!doctype"]&&Ji.ownerDocument&&Ji.ownerDocument.doctype&&Ji.ownerDocument.doctype.name&&R0(eX,Ji.ownerDocument.doctype.name)&&(N=" +`+N),Cl&&(N=Lv(N,Fi," "),N=Lv(N,la," "),N=Lv(N,bs," ")),Qr&&Hg?Qr.createHTML(N):N},g.setConfig=function(Ps){Zy(Ps),z0=!0},g.clearConfig=function(){bO=null,z0=!1},g.isValidAttribute=function(Ps,xo,Ji){bO||Zy({});const Ba=qh(Ps),mf=qh(xo);return oQ(Ba,mf,Ji)},g.addHook=function(Ps,xo){typeof xo=="function"&&(Vo[Ps]=Vo[Ps]||[],e5(Vo[Ps],xo))},g.removeHook=function(Ps){if(Vo[Ps])return Gz(Vo[Ps])},g.removeHooks=function(Ps){Vo[Ps]&&(Vo[Ps]=[])},g.removeAllHooks=function(){Vo={}},g}var cS=oN();const HP=To.each,Id=To.trim,bfe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xfe={ftp:21,http:80,https:443,mailto:25},_fe=["img","video"],wfe=(r,g)=>P(r)?!r:P(g)?!ce(_fe,g):!0,E1=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},r5=(r,g,B)=>{const H=E1(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?wfe(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class cp{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),oe=/data:([^;]+)/.exec(H[0]);return oe&&(B=oe[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const oe=Lm.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!r5(H,oe,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Id(g),this.settings=B;const H=B.base_uri,oe=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){oe.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new cp(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+oe.toAbsPath(Ke,g);else{const ut=/([^#?]*)([#?]?.*)/.exec(g);ut&&(g=(H&&H.protocol||"http")+"://mce_host"+oe.toAbsPath(Ke,ut[1])+ut[2])}}g=g.replace(/@@/g,"(mce_at)");const Le=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Le&&HP(bfe,(Ke,ut)=>{let At=Le[ut];At&&(At=At.replace(/\(mce_at\)/g,"@@")),oe[Ke]=At}),H&&(oe.protocol||(oe.protocol=H.protocol),oe.userInfo||(oe.userInfo=H.userInfo),!oe.port&&oe.host==="mce_host"&&(oe.port=H.port),(!oe.host||oe.host==="mce_host")&&(oe.host=H.host),oe.source=""),be&&(oe.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new cp(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),oe=B.getURI();if(H===oe||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===oe)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new cp(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?xfe[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,oe="",be,Le;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ut=B.split("/");if(Ke.length>=ut.length){for(be=0,Le=Ke.length;be=ut.length||Ke[be]!==ut[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ut[be]){H=be+1;break}}if(H===1)return B;for(be=0,Le=Ke.length-(H-1);be{un&&Ke.push(un)});const ut=[];for(let un=Le.length-1;un>=0;un--)if(!(Le[un].length===0||Le[un]===".")){if(Le[un]===".."){H++;continue}if(H>0){H--;continue}ut.push(Le[un])}const At=Ke.length-H;let nn;return At<=0?nn=ke(ut).join("/"):nn=Ke.slice(0,At).join("/")+"/"+ke(ut).join("/"),nn.indexOf("/")!==0&&(nn="/"+nn),oe&&nn.lastIndexOf("/")!==nn.length-1&&(nn+=oe),nn}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const j2=To.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),ZP="data-mce-type";let iN=0;const Kw=(r,g,B,H,oe)=>{var be,Le,Ke,ut;const At=g.validate,nn=B.getSpecialElements();r.nodeType===Tc&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const un=(Le=oe==null?void 0:oe.tagName)!==null&&Le!==void 0?Le:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){P(oe)&&(oe.allowedTags[un]=!0);return}if(r.nodeType!==zf||un==="body")return;const yn=_r.fromDom(r),Qn=Dc(yn,ZP),rr=gu(yn,"data-mce-bogus");if(!Qn&&v(rr)){rr==="all"?hs(yn):Mc(yn);return}const Wn=B.getElementRule(un);if(At&&!Wn){Ot(nn,un)?hs(yn):Mc(yn);return}else P(oe)&&(oe.allowedTags[un]=!0);if(At&&Wn&&!Qn){if(ve((Ke=Wn.attributesForced)!==null&&Ke!==void 0?Ke:[],ur=>{ll(yn,ur.name,ur.value==="{$uid}"?`mce_${iN++}`:ur.value)}),ve((ut=Wn.attributesDefault)!==null&&ut!==void 0?ut:[],ur=>{Dc(yn,ur.name)||ll(yn,ur.name,ur.value==="{$uid}"?`mce_${iN++}`:ur.value)}),Wn.attributesRequired&&!de(Wn.attributesRequired,ur=>Dc(yn,ur))){Mc(yn);return}if(Wn.removeEmptyAttrs&&Lp(yn)){Mc(yn);return}Wn.outputName&&Wn.outputName!==un&&ov(yn,Wn.outputName)}},uS=(r,g,B,H,oe)=>{const be=r.tagName.toLowerCase(),{attrName:Le,attrValue:Ke}=oe;oe.keepAttr=Jw(g,B,H,be,Le,Ke),oe.keepAttr?(oe.allowedAttributes[Le]=!0,Y6(Le,B)&&(oe.attrValue=Le),g.allow_svg_data_urls&&Br(Ke,"data:image/svg+xml")&&(oe.forceKeepAttr=!0)):W6(r,Le)&&(oe.forceKeepAttr=!0)},Jw=(r,g,B,H,oe,be)=>B!=="html"&&!Hs(H)?!0:!(oe in j2&&r5(r,be,H))&&(!r.validate||g.isValid(H,oe)||Br(oe,"data-")||Br(oe,"aria-")),W6=(r,g)=>r.hasAttribute(ZP)&&(g==="id"||g==="class"||g==="style"),Y6=(r,g)=>r in g.getBoolAttrs(),aN=(r,g,B,H)=>{const{attributes:oe}=r;for(let be=oe.length-1;be>=0;be--){const Le=oe[be],Ke=Le.name,ut=Le.value;!Jw(g,B,H,r.tagName.toLowerCase(),Ke,ut)&&!W6(r,Ke)?r.removeAttribute(Ke):Y6(Ke,B)&&r.setAttribute(Ke,Ke)}},sN=(r,g,B)=>{const H=cS();return H.addHook("uponSanitizeElement",(oe,be)=>{Kw(oe,r,g,B.track(oe),be)}),H.addHook("uponSanitizeAttribute",(oe,be)=>{uS(oe,r,g,B.current(),be)}),H},nX=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},rX=r=>{const g=Yu(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(oe=>`xlink:${oe}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};cS().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};cS().sanitize(r,B)}else throw new Error("Not a namespace element")},lN=(r,g)=>{const B=Tt();if(r.sanitize){const H=sN(r,g,B);return{sanitizeHtmlElement:(be,Le)=>{H.sanitize(be,nX(r,Le)),H.removed=[],B.reset()},sanitizeNamespaceElement:rX}}else return{sanitizeHtmlElement:(be,Le)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ut;for(;ut=Ke.nextNode();){const At=B.track(ut);Kw(ut,r,g,At),ne(ut)&&aN(ut,r,g,At)}B.reset()},sanitizeNamespaceElement:k}},cN=To.makeMap,uN=To.extend,fN=(r,g,B,H)=>{const oe=r.name,be=oe in B&&oe!=="title"&&oe!=="textarea"&&oe!=="noscript",Le=g.childNodes;for(let Ke=0,ut=Le.length;Ke{const H=[];for(let oe=r,be=oe;oe;be=oe,oe=oe.walk()){const Le=oe;ve(g,Ke=>Ke(Le)),T(Le.parent)&&Le!==r?oe=be:H.push(Le)}for(let oe=H.length-1;oe>=0;oe--){const be=H[oe];ve(B,Le=>Le(be))}},iX=(r,g,B,H)=>{const oe=B.validate,be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=uN(cN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ut=n1(g),At=/[ \t\r\n]+/g,nn=/^[ \t\r\n]+/,un=/[ \t\r\n]+$/,yn=Wr=>{let Qr=Wr.parent;for(;P(Qr);){if(Qr.name in Le)return!0;Qr=Qr.parent}return!1},Qn=Wr=>{let Qr=Wr;for(;P(Qr);){if(Qr.name in ut)return O6(g,be,Le,Qr);Qr=Qr.parent}return!1},rr=Wr=>Wr.name in Ke||ch(g,Wr)||Hs(Wr.name)&&Wr.parent===r,Wn=(Wr,Qr)=>{const lo=Qr?Wr.prev:Wr.next;return P(lo)||T(Wr.parent)?!1:rr(Wr.parent)&&(Wr.parent!==r||H.isRootContent===!0)};return[Wr=>{var Qr;if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";lo=lo.replace(At," "),(Lh(Wr.prev,rr)||Wn(Wr,!0))&&(lo=lo.replace(nn,"")),lo.length===0||lo===" "&&Wr.prev&&Wr.prev.type===Tc&&Wr.next&&Wr.next.type===Tc?Wr.remove():Wr.value=lo}},Wr=>{var Qr;if(Wr.type===1){const lo=g.getElementRule(Wr.name);if(oe&&lo){const Zo=O6(g,be,Le,Wr);lo.paddInEmptyBlock&&Zo&&Qn(Wr)?eP(B,H,rr,Wr):lo.removeEmpty&&Zo?rr(Wr)?Wr.remove():Wr.unwrap():lo.paddEmpty&&(Zo||WW(Wr))&&eP(B,H,rr,Wr)}}else if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";(Wr.next&&rr(Wr.next)||Wn(Wr,!1))&&(lo=lo.replace(un,"")),lo.length===0?Wr.remove():Wr.value=lo}}]},dN=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},fS=(r={},g=zm())=>{const B=U6(),H=U6(),oe={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Le=lN(oe,g),Ke=(Qr,lo,Zo="html")=>{const li=Zo==="xhtml"?"application/xhtml+xml":"text/html",Mi=Ot(g.getSpecialElements(),lo.toLowerCase()),Co=Mi?`<${lo}>${Qr}`:Qr,yo=()=>Zo==="xhtml"?`${Co}`:/^[\s]*${Co}`:`${Co}`,Vo=be.parseFromString(yo(),li).body;return Le.sanitizeHtmlElement(Vo,li),Mi?Vo.firstChild:Vo},ut=B.addFilter,At=B.getFilters,nn=B.removeFilter,un=H.addFilter,yn=H.getFilters,Qn=H.removeFilter,rr=(Qr,lo)=>{vz(g,Qr)&&lo.push(Qr)},Wn=(Qr,lo)=>{const Zo=v(lo.attr(ZP)),li=lo.type===1&&!Ot(Qr,lo.name)&&!ch(g,lo)&&!Hs(lo.name);return lo.type===3||li&&!Zo},ur=(Qr,lo)=>{const Zo=uN(cN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),li=/^[ \t\r\n]+/,Mi=/[ \t\r\n]+$/;let Co=Qr.firstChild,yo=null;const Vo=Fi=>{var la,bs;Fi&&(Co=Fi.firstChild,Co&&Co.type===3&&(Co.value=(la=Co.value)===null||la===void 0?void 0:la.replace(li,"")),Co=Fi.lastChild,Co&&Co.type===3&&(Co.value=(bs=Co.value)===null||bs===void 0?void 0:bs.replace(Mi,"")))};if(g.isValidChild(Qr.name,lo.toLowerCase())){for(;Co;){const Fi=Co.next;Wn(Zo,Co)?(yo||(yo=new Hp(lo,1),yo.attr(oe.forced_root_block_attrs),Qr.insert(yo,Co)),yo.append(Co)):(Vo(yo),yo=null),Co=Fi}Vo(yo)}},Wr={schema:g,addAttributeFilter:un,getAttributeFilters:yn,removeAttributeFilter:Qn,addNodeFilter:ut,getNodeFilters:At,removeNodeFilter:nn,parse:(Qr,lo={})=>{var Zo;const li=oe.validate,Mi=(Zo=lo.context)!==null&&Zo!==void 0?Zo:oe.root_name,Co=Ke(Qr,Mi,lo.format);Cs(g,Co);const yo=new Hp(Mi,11);fN(yo,Co,g.getSpecialElements(),Le.sanitizeNamespaceElement),Co.innerHTML="";const[Vo,Fi]=iX(yo,g,oe,lo),la=[],bs=li?Uu=>rr(Uu,la):k,Ms={nodes:{},attributes:{}},wl=Uu=>gz(At(),yn(),Uu,Ms);if(oX(yo,[Vo,wl],[Fi,bs]),la.reverse(),li&&la.length>0)if(lo.context){const{pass:Uu,fail:Wf}=we(la,ic=>ic.parent===yo);Ev(Wf,g,yo,wl),lo.invalid=Uu.length>0}else Ev(la,g,yo,wl);const Vl=dN(oe,lo);return Vl&&(yo.name==="body"||lo.isRootContent)&&ur(yo,Vl),lo.invalid||KE(Ms,lo),yo}};return FY(Wr,oe),Kk(Wr,oe,g),Wr},o5=r=>F2(r)?rx({validate:!1}).serialize(r):r,qP=(r,g,B)=>{const H=o5(r),oe=g(H);if(oe.isDefaultPrevented())return oe;if(F2(r))if(oe.content!==H){const be=fS({validate:!1,forced_root_block:!1,...B}).parse(oe.content,{context:r.name});return{...oe,content:be}}else return{...oe,content:r};else return oe},hN=r=>({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r)}),WP=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=ED(r,g);return B.isDefaultPrevented()?Vs.error(Rw(r,{content:"",...B}).content):Vs.value(B)}},pN=(r,g,B)=>B.no_events?g:qP(g,oe=>Rw(r,{...B,content:oe}),hN(r)).content,X6=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=qP(g.content,H=>U3(r,{...g,content:H}),hN(r));return B.isDefaultPrevented()?(Pw(r,B),Vs.error(void 0)):Vs.value(B)}},YP=(r,g,B)=>{B.no_events||Pw(r,{...B,content:g})},XP=(r,g,B)=>({element:r,width:g,rows:B}),GP=(r,g)=>({element:r,cells:g}),mN=(r,g)=>({x:r,y:g}),KP=(r,g)=>ec(r,g).bind(eo).getOr(1),gN=(r,g,B,H,oe)=>{const be=KP(oe,"rowspan"),Le=KP(oe,"colspan"),Ke=r.rows;for(let ut=B;ut{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},yN=(r,g,B)=>{for(;vN(r,g,B);)g++;return g},bN=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),xN=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Le=r.rows;for(let Ke=B;Ke<=oe;Ke++){const ut=Le[Ke].cells,At=g{const H=g.x,oe=g.y,be=B.x,Le=B.y,Ke=oe{const B=im(r.element),H=_r.fromTag("tbody");return Yl(H,g),ii(B,H),B},wN=r=>ye(r.rows,g=>{const B=ye(g.cells,oe=>{const be=Qh(oe);return tc(be,"colspan"),tc(be,"rowspan"),be}),H=im(g.element);return Yl(H,B),H}),ON=r=>{const g=XP(im(r),0,[]);return ve(Pl(r,"tr"),(B,H)=>{ve(Pl(B,"td,th"),(oe,be)=>{gN(g,yN(g,be,H),H,B,oe)})}),XP(g.element,bN(g.rows),g.rows)},G6=r=>i5(r,wN(r)),aX=(r,g,B)=>xN(r,g).bind(H=>xN(r,B).map(oe=>JP(r,H,oe))),sX=r=>De(r,g=>ma(g)==="ul"||ma(g)==="ol"),eO=(r,g)=>De(r,B=>ma(B)==="li"&&S3(B,g)).fold($([]),B=>sX(r).map(H=>{const oe=_r.fromTag(ma(H)),be=Yt(Gc(H),(Le,Ke)=>Br(Ke,"list-style"));return aa(oe,be),[_r.fromTag("li"),oe]}).getOr([])),e7=(r,g)=>{const B=Ie(g,(H,oe)=>(ii(oe,H),oe),r);return g.length>0?he([B]):B},SN=r=>av(r)?jc(r).filter(d0).fold($([]),g=>[r,g]):d0(r)?[r]:[],a5=(r,g,B)=>{const H=_r.fromDom(g.commonAncestorContainer),oe=k1(H,r),be=Te(oe,ut=>B.isWrapper(ma(ut))),Le=eO(oe,g),Ke=be.concat(Le.length?Le:SN(H));return ye(Ke,im)},t7=()=>he([]),n7=(r,g,B)=>e7(_r.fromDom(g.cloneContents()),a5(r,g,B)),kN=(r,g)=>ts(g,"table",U(va,r)),TN=(r,g)=>kN(r,g[0]).bind(B=>{const H=g[0],oe=g[g.length-1],be=ON(B);return aX(be,H,oe).map(Le=>he([G6(Le)]))}).getOrThunk(t7),lX=(r,g,B)=>g.length>0&&g[0].collapsed?t7():n7(r,g[0],B),cX=(r,g,B)=>{const H=nk(g,r);return H.length>0?TN(r,H):lX(r,g,B)},K6=(r,g)=>g>=0&&gSd(r.innerText),uX=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),CN=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),oe=r.getBody(),be=uX(H),Le=_r.fromDom(g.cloneContents());fB(Le),dB(Le);const Ke=r.dom.add(oe,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Le.dom),ut=J6(Ke),At=Sd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),K6(At,0)||K6(At,At.length-1)){const nn=H.getOr(oe),un=J6(nn),yn=un.indexOf(ut);if(yn===-1)return ut;{const Qn=K6(un,yn-1),rr=K6(un,yn+ut.length);return(Qn?" ":"")+ut+(rr?" ":"")}}else return ut}).getOr(""),fX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),oe=r.selection.getSel(),be=c6(r,w3(oe)),Le=g.contextual?cX(_r.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Le&&H.appendChild(Le),r.selection.serializer.serialize(H,g)},dX=(r,g)=>{if(g.format==="text")return CN(r);{const B=fX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},hX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),pX=(r,g,B={})=>{const H=hX(B,g);return WP(r,H).fold(Q,oe=>{const be=dX(r,oe);return pN(r,be,oe)})},r7=0,AN=1,MN=2,mX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),oe=new Array(B),be=(nn,un,yn)=>({start:nn,end:un,diag:yn}),Le=(nn,un,yn,Qn,rr)=>{const Wn=ut(nn,un,yn,Qn);if(Wn===null||Wn.start===un&&Wn.diag===un-Qn||Wn.end===nn&&Wn.diag===nn-yn){let ur=nn,Tr=yn;for(;urQn-yn?(rr.push([MN,r[ur]]),++ur):(rr.push([AN,g[Tr]]),++Tr)}else{Le(nn,Wn.start,yn,Wn.start-Wn.diag,rr);for(let ur=Wn.start;ur{let rr=nn;for(;rr-un{const rr=un-nn,Wn=Qn-yn;if(rr===0||Wn===0)return null;const ur=rr-Wn,Tr=Wn+rr,Wr=(Tr%2===0?Tr:Tr+1)/2;H[1+Wr]=nn,oe[1+Wr]=un+1;let Qr,lo,Zo,li,Mi;for(Qr=0;Qr<=Wr;++Qr){for(lo=-Qr;lo<=Qr;lo+=2){for(Zo=lo+Wr,lo===-Qr||lo!==Qr&&H[Zo-1]=nn&&Mi>=yn&&r[li]===g[Mi];)oe[Zo]=li--,Mi--;if(ur%2===0&&-Qr<=lo&&lo<=Qr&&oe[Zo]<=H[Zo+ur])return Ke(oe[Zo],lo+nn-yn,un,Qn)}}return null},At=[];return Le(0,r.length,0,g.length,At),At},o7=r=>ne(r)?r.outerHTML:Mt(r)?Lm.encodeRaw(r.data,!1):bn(r)?"":"",gX=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},vX=(r,g,B)=>{const H=gX(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ve(r,H=>{H[0]===r7?B++:H[0]===AN?(vX(g,H[1],B),B++):H[0]===MN&&eA(g,B)})},yX=(r,g)=>Te(ye(Me(r.childNodes),g?I(Sd,o7):o7),B=>B.length>0),tA=(r,g)=>{const B=ye(Me(g.childNodes),o7);return kp(mX(B,r),g),g},tO=_t(()=>document.implementation.createHTMLDocument("undo")),EN=r=>r.querySelector("iframe")!==null,tg=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),nO=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),s5=r=>{const g=r.serializer.getTempAttrs(),B=uB(r.getBody(),g);return EN(B)?tg(yX(B,!0)):nO(Sd(B.innerHTML))},i7=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?tA(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:P(H)&&RC(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},nA=r=>r.type==="fragmented"?r.fragments.join(""):r.content,PN=r=>{const g=_r.fromTag("body",tO());return Fu(g,nA(r)),ve(Pl(g,"*[data-mce-bogus]"),Mc),ws(g)},RN=(r,g)=>nA(r)===nA(g),l5=(r,g)=>PN(r)===PN(g),c5=(r,g)=>!r||!g?!1:RN(r,g)?!0:l5(r,g),a7=r=>r.get()===0,u5=(r,g,B)=>{a7(B)&&(r.typing=g)},LN=(r,g)=>{r.typing&&(u5(r,!1,g),r.add())},s7=r=>{r.typing&&(r.typing=!1,r.add())},l7=(r,g,B)=>{a7(g)&&B.set(fl(r.selection))},bX=(r,g,B,H,oe,be,Le)=>{const Ke=s5(r),ut=To.extend(be||{},Ke);if(!a7(H)||r.removed)return null;const At=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ut,lastLevel:At,originalEvent:Le}).isDefaultPrevented()||At&&c5(At,ut))return null;g.data[B.get()]&&oe.get().each(yn=>{g.data[B.get()].beforeBookmark=yn});const nn=o2(r);if(nn&&g.data.length>nn){for(let yn=0;yn0?(r.setDirty(!0),r.dispatch("AddUndo",un),r.dispatch("change",un)):r.dispatch("AddUndo",un),ut},xX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},By=(r,g,B,H,oe)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Le=g.data[B.get()-1];i7(r,Le,!0),g.transact(oe)&&(g.data[B.get()-1].beforeBookmark=be)}},c7=(r,g,B)=>{let H;return g.get(){let oe;return g.typing&&(g.add(),g.typing=!1,u5(g,!1,B)),H.get()>0&&(H.set(H.get()-1),oe=g.data[H.get()],i7(r,oe,!0),r.setDirty(!0),r.dispatch("Undo",{level:oe})),oe},rA=r=>{r.clear(),r.add()},u7=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!c5(s5(r),g.data[0]),IN=(r,g)=>g.get()(LN(r,g),r.beforeChange(),r.ignore(B),r.add()),BN=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},wX=(r,g)=>{const B=r.dom,H=P(g)?g:r.getBody();ve(B.select("table,a",H),oe=>{switch(oe.nodeName){case"TABLE":const be=i2(r),Le=B.getAttrib(oe,"border");(!Le||Le==="0")&&r.hasVisual?B.addClass(oe,be):B.removeClass(oe,be);break;case"A":if(!B.getAttrib(oe,"href")){const Ke=B.getAttrib(oe,"name")||oe.id,ut=a2(r);Ke&&r.hasVisual?B.addClass(oe,ut):B.removeClass(oe,ut)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},zN=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>l7(r,g,B),add:(g,B,H,oe,be,Le)=>bX(r,g,B,H,oe,be,Le),undo:(g,B,H)=>_X(r,g,B,H),redo:(g,B)=>c7(r,g,B),clear:(g,B)=>xX(r,g,B),reset:g=>rA(g),hasUndo:(g,B)=>u7(r,g,B),hasRedo:(g,B)=>IN(g,B),transact:(g,B,H)=>DN(g,B,H),ignore:(g,B)=>BN(g,B),extra:(g,B,H,oe)=>By(r,g,B,H,oe)},formatter:{match:(g,B,H,oe)=>C6(r,g,B,H,oe),matchAll:(g,B)=>A6(r,g,B),matchNode:(g,B,H,oe)=>C1(r,g,B,H,oe),canApply:g=>fY(r,g),closest:g=>uY(r,g),apply:(g,B,H)=>$z(r,g,B,H),remove:(g,B,H,oe)=>AP(r,g,B,H,oe),toggle:(g,B,H)=>RP(r,g,B,H),formatChanged:(g,B,H,oe,be)=>RY(r,g,B,H,oe,be)},editor:{getContent:g=>hB(r,g),setContent:(g,B)=>k6(r,g,B),insertContent:(g,B)=>M0(r,g,B),addVisual:g=>wX(r,g)},selection:{getContent:(g,B)=>pX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),OX=r=>{const g=At=>_(At)?At:{},{init:B,undoManager:H,formatter:oe,editor:be,selection:Le,autocompleter:Ke,raw:ut}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(At,nn,un)=>H.transact(un),ignore:(At,nn)=>H.ignore(nn),extra:(At,nn,un,yn)=>H.extra(un,yn)},formatter:{match:(At,nn,un,yn)=>oe.match(At,g(nn),yn),matchAll:oe.matchAll,matchNode:oe.matchNode,canApply:At=>oe.canApply(At),closest:At=>oe.closest(At),apply:(At,nn,un)=>oe.apply(At,g(nn)),remove:(At,nn,un,yn)=>oe.remove(At,g(nn)),toggle:(At,nn,un)=>oe.toggle(At,g(nn)),formatChanged:(At,nn,un,yn,Qn)=>oe.formatChanged(nn,un,yn,Qn)},editor:{getContent:At=>be.getContent(At),setContent:(At,nn)=>({content:be.setContent(At,nn),html:""}),insertContent:(At,nn)=>(be.insertContent(At),""),addVisual:be.addVisual},selection:{getContent:(At,nn)=>Le.getContent(nn)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ut.getRawModel())}}},SX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:re,hasRedo:re,transact:r,ignore:k,extra:k},formatter:{match:re,matchAll:$([]),matchNode:$(void 0),canApply:re,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},zy=r=>Ot(r.plugins,"rtc"),NN=r=>Et(r.plugins,"rtc").bind(g=>Y.from(g.setup)),kX=r=>{const g=r;return NN(r).fold(()=>(g.rtcInstance=zN(r),Y.none()),B=>(g.rtcInstance=SX(),Y.some(()=>B().then(H=>(g.rtcInstance=OX(H),H.rtc.isRemote)))))},f7=r=>r.rtcInstance?r.rtcInstance:zN(r),Xd=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},FN=(r,g,B)=>{Xd(r).undoManager.beforeChange(g,B)},d7=(r,g,B,H,oe,be,Le)=>Xd(r).undoManager.add(g,B,H,oe,be,Le),h7=(r,g,B,H)=>Xd(r).undoManager.undo(g,B,H),$N=(r,g,B)=>Xd(r).undoManager.redo(g,B),p7=(r,g,B)=>{Xd(r).undoManager.clear(g,B)},VN=(r,g)=>{Xd(r).undoManager.reset(g)},UN=(r,g,B)=>Xd(r).undoManager.hasUndo(g,B),m7=(r,g,B)=>Xd(r).undoManager.hasRedo(g,B),jN=(r,g,B,H)=>Xd(r).undoManager.transact(g,B,H),QN=(r,g,B)=>{Xd(r).undoManager.ignore(g,B)},HN=(r,g,B,H,oe)=>{Xd(r).undoManager.extra(g,B,H,oe)},TX=(r,g,B,H,oe)=>Xd(r).formatter.match(g,B,H,oe),g7=(r,g,B)=>Xd(r).formatter.matchAll(g,B),CX=(r,g,B,H,oe)=>Xd(r).formatter.matchNode(g,B,H,oe),oA=(r,g)=>Xd(r).formatter.canApply(g),AX=(r,g)=>Xd(r).formatter.closest(g),MX=(r,g,B,H)=>{Xd(r).formatter.apply(g,B,H)},EX=(r,g,B,H,oe)=>{Xd(r).formatter.remove(g,B,H,oe)},ZN=(r,g,B,H)=>{Xd(r).formatter.toggle(g,B,H)},qN=(r,g,B,H,oe,be)=>Xd(r).formatter.formatChanged(g,B,H,oe,be),PX=(r,g)=>f7(r).editor.getContent(g),RX=(r,g,B)=>f7(r).editor.setContent(g,B),LX=(r,g,B)=>f7(r).editor.insertContent(g,B),IX=(r,g,B)=>Xd(r).selection.getContent(g,B),DX=(r,g)=>Xd(r).editor.addVisual(g),v7=r=>Xd(r).init.bindEvents(),Ofe=(r,g={})=>{const B=g.format?g.format:"html";return IX(r,B,g)},WN=r=>r.dom.length===0?(hs(r),Y.none()):Y.some(r),BX=(r,g)=>r.filter(B=>Pg.isBookmarkNode(B.dom)).bind(g?Bc:sf),zX=(r,g,B,H,oe)=>{const be=r.dom,Le=g.dom,Ke=H?be.length:Le.length;H?($E(be,Le,oe,!1,!H),B.setStart(Le,Ke)):($E(Le,be,oe,!1,!H),B.setEnd(Le,Ke))},NX=(r,g,B)=>{jc(r).each(H=>{const oe=r.dom;g&&Pk(H,vo(oe,0),B)?h6(oe,0,B):!g&&K3(H,vo(oe,oe.length),B)&&FE(oe,oe.length,B)})},YN=(r,g,B,H,oe)=>{r.bind(be=>((H?FE:h6)(be.dom,H?be.dom.length:0,oe),g.filter(Ml).map(Ke=>zX(be,Ke,B,H,oe)))).orThunk(()=>BX(g,H).or(g).filter(Ml).map(Le=>NX(Le,H,oe)))},FX=(r,g,B)=>{const H=Y.from(g.firstChild).map(_r.fromDom),oe=Y.from(g.lastChild).map(_r.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(sf).filter(Ml).bind(WN),Le=oe.bind(Bc).filter(Ml).bind(WN);YN(be,H,r,!0,B),YN(Le,oe,r,!1,B),r.collapse(!1)},$X=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),XN=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),oe=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...oe,...g});return rx({validate:!1},r.schema).serialize(be)}else return g.content},VX=(r,g,B={})=>{const H=$X(B,g);X6(r,H).each(oe=>{const be=XN(r,oe),Le=r.selection.getRng();FX(Le,Le.createContextualFragment(be),r.schema),r.selection.setRng(Le),kk(r,Le),YP(r,be,oe)})},GN=(r,g,B)=>{if(Ot(r,g)){const H=Te(r[g],oe=>oe!==B);H.length===0?delete r[g]:r[g]=H}};var UX=(r,g)=>{let B,H;const oe=(Ke,ut)=>De(ut,At=>r.is(At,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Le=()=>{B={},H={},g.on("NodeChange",Ke=>{const ut=Ke.element,At=be(ut),nn={};Ge(B,(un,yn)=>{oe(yn,At).each(Qn=>{H[yn]||(ve(un,rr=>{rr(!0,{node:Qn,selector:yn,parents:At})}),H[yn]=un),nn[yn]=un})}),Ge(H,(un,yn)=>{nn[yn]||(delete H[yn],ve(un,Qn=>{Qn(!1,{node:ut,selector:yn,parents:At})}))})})};return{selectorChangedWithUnbind:(Ke,ut)=>(B||Le(),B[Ke]||(B[Ke]=[]),B[Ke].push(ut),oe(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{GN(B,Ke,ut),GN(H,Ke,ut)}})}};const KN=r=>!!(r&&r.ownerDocument)&&El(_r.fromDom(r.ownerDocument),_r.fromDom(r)),jX=r=>r?KN(r.startContainer)&&KN(r.endContainer):!1,QX=(r,g,B,H)=>{let oe,be;const{selectorChangedWithUnbind:Le}=UX(r,H),Ke=(vi,na)=>{const ol=r.createRng();P(vi)&&P(na)?(ol.setStart(vi,na),ol.setEnd(vi,na),lo(ol),Tr(!1)):(ik(r,ol,H.getBody(),!0),lo(ol))},ut=vi=>Ofe(H,vi),At=(vi,na)=>VX(H,vi,na),nn=vi=>CE(H.getBody(),Qr(),vi),un=vi=>JD(H.getBody(),Qr(),vi),yn=(vi,na)=>Wf.getBookmark(vi,na),Qn=vi=>Wf.moveToBookmark(vi),rr=(vi,na)=>(l6(r,vi,na).each(lo),vi),Wn=()=>{const vi=Qr(),na=Wr();return!vi||vi.item?!1:vi.compareEndPoints?vi.compareEndPoints("StartToEnd",vi)===0:!na||vi.collapsed},ur=()=>{const vi=Qr(),na=H.getBody().querySelectorAll('[data-mce-selected="1"]');return na.length>0?Oe(na,ol=>r.isEditable(ol.parentElement)):kE(r,vi)},Tr=vi=>{const na=Qr();na.collapse(!!vi),lo(na)},Wr=()=>g.getSelection?g.getSelection():g.document.selection,Qr=()=>{let vi;const na=(Ti,pa,ps)=>{try{return pa.compareBoundaryPoints(Ti,ps)}catch{return-1}},ol=g.document;if(P(H.bookmark)&&!nx(H)){const Ti=o6(H);if(Ti.isSome())return Ti.map(pa=>c6(H,[pa])[0]).getOr(ol.createRange())}try{const Ti=Wr();Ti&&!le(Ti.anchorNode)&&(Ti.rangeCount>0?vi=Ti.getRangeAt(0):vi=ol.createRange(),vi=c6(H,[vi])[0])}catch{}if(vi||(vi=ol.createRange()),vn(vi.startContainer)&&vi.collapsed){const Ti=r.getRoot();vi.setStart(Ti,0),vi.setEnd(Ti,0)}return oe&&be&&(na(vi.START_TO_START,vi,oe)===0&&na(vi.END_TO_END,vi,oe)===0?vi=be:(oe=null,be=null)),vi},lo=(vi,na)=>{if(!jX(vi))return;const ol=Wr();if(vi=H.dispatch("SetSelectionRange",{range:vi,forward:na}).range,ol){be=vi;try{ol.removeAllRanges(),ol.addRange(vi)}catch{}na===!1&&ol.extend&&(ol.collapse(vi.endContainer,vi.endOffset),ol.extend(vi.startContainer,vi.startOffset)),oe=ol.rangeCount>0?ol.getRangeAt(0):null}if(!vi.collapsed&&vi.startContainer===vi.endContainer&&(ol!=null&&ol.setBaseAndExtent)&&vi.endOffset-vi.startOffset<2&&vi.startContainer.hasChildNodes()){const pa=vi.startContainer.childNodes[vi.startOffset];pa&&pa.nodeName==="IMG"&&(ol.setBaseAndExtent(vi.startContainer,vi.startOffset,vi.endContainer,vi.endOffset),(ol.anchorNode!==vi.startContainer||ol.focusNode!==vi.endContainer)&&ol.setBaseAndExtent(pa,0,pa,1))}H.dispatch("AfterSetSelectionRange",{range:vi,forward:na})},Zo=vi=>(At(r.getOuterHTML(vi)),vi),li=()=>eW(H.getBody(),Qr()),Mi=(vi,na)=>tW(r,Qr(),vi,na),Co=()=>{const vi=Wr(),na=vi==null?void 0:vi.anchorNode,ol=vi==null?void 0:vi.focusNode;if(!vi||!na||!ol||le(na)||le(ol))return!0;const Ti=r.createRng(),pa=r.createRng();try{Ti.setStart(na,vi.anchorOffset),Ti.collapse(!0),pa.setStart(ol,vi.focusOffset),pa.collapse(!0)}catch{return!0}return Ti.compareBoundaryPoints(Ti.START_TO_START,pa)<=0},Uu={dom:r,win:g,serializer:B,editor:H,expand:(vi={type:"word"})=>lo(oi(r).expand(Qr(),vi)),collapse:Tr,setCursorLocation:Ke,getContent:ut,setContent:At,getBookmark:yn,moveToBookmark:Qn,select:rr,isCollapsed:Wn,isEditable:ur,isForward:Co,setNode:Zo,getNode:li,getSel:Wr,setRng:lo,getRng:Qr,getStart:nn,getEnd:un,getSelectedBlocks:Mi,normalize:()=>{const vi=Qr(),na=Wr();if(!HM(na)&&T2(H)){const ol=fi(r,vi);return ol.each(Ti=>{lo(Ti,Co())}),ol.getOr(vi)}return vi},selectorChanged:(vi,na)=>(Le(vi,na),Uu),selectorChangedWithUnbind:Le,getScrollContainer:()=>{let vi,na=r.getRoot();for(;na&&na.nodeName!=="BODY";){if(na.scrollHeight>na.clientHeight){vi=na;break}na=na.parentNode}return vi},scrollIntoView:(vi,na)=>{P(vi)?Vq(H,vi,na):kk(H,Qr(),na)},placeCaretAt:(vi,na)=>lo(lt(vi,na,H.getDoc())),getBoundingClientRect:()=>{const vi=Qr();return vi.collapsed?vo.fromRangeStart(vi).getClientRects()[0]:vi.getBoundingClientRect()},destroy:()=>{g=oe=be=null,ic.destroy()}},Wf=Pg(Uu),ic=Iw(Uu,H);return Uu.bookmarkManager=Wf,Uu.controlSelection=ic,Uu},Sfe=(r,g,B)=>{g.addNodeFilter("br",(H,oe,be)=>{const Le=To.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ut=B.getWhitespaceElements();Le.body=1;const At=nn=>nn.name in Le||ch(B,nn);for(let nn=0,un=H.length;nn{r.addAttributeFilter("data-mce-tabindex",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.attr("tabindex",Le.attr("data-mce-tabindex")),Le.attr(oe,null)}}),r.addAttributeFilter("src,href,style",(H,oe)=>{const be="data-mce-"+oe,Le=g.url_converter,Ke=g.url_converter_scope;let ut=H.length;for(;ut--;){const At=H[ut];let nn=At.attr(be);nn!==void 0?(At.attr(oe,nn.length>0?nn:null),At.attr(be,null)):(nn=At.attr(oe),oe==="style"?nn=B.serializeStyle(B.parseStyle(nn),At.name):Le&&(nn=Le.call(Ke,nn,oe,At.name)),At.attr(oe,nn.length>0?nn:null))}}),r.addAttributeFilter("class",H=>{let oe=H.length;for(;oe--;){const be=H[oe];let Le=be.attr("class");Le&&(Le=Le.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Le.length>0?Le:null))}}),r.addAttributeFilter("data-mce-type",(H,oe,be)=>{let Le=H.length;for(;Le--;){const Ke=H[Le];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(At=>{var nn;return!Wx((nn=At.value)!==null&&nn!==void 0?nn:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,oe)=>{var be;const Le=ut=>ut.replace(/()/g,` `).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let Ke=H.length;for(;Ke--;){const ut=H[Ke],At=ut.firstChild,nn=(be=At==null?void 0:At.value)!==null&&be!==void 0?be:"";if(oe==="script"){const un=ut.attr("type");un&&ut.attr("type",un==="mce-no/type"?null:un.replace(/^mce\-/,"")),g.element_format==="xhtml"&&At&&nn.length>0&&(At.value=`// `)}else g.element_format==="xhtml"&&At&&nn.length>0&&(At.value=``)}}),r.addNodeFilter("#comment",H=>{let oe=H.length;for(;oe--;){const be=H[oe],Le=be.value;g.preserve_cdata&&(Le==null?void 0:Le.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Le.replace(/^\[CDATA\[|\]\]$/g,""))):(Le==null?void 0:Le.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Le).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.type===7?Le.remove():Le.type===1&&oe==="input"&&!Le.attr("type")&&Le.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ve(H,oe=>{oe.attr("data-mce-type")==="format-caret"&&(oe.isEmpty(r.schema.getNonEmptyElements())?oe.remove():oe.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.remove_trailing_brs&&wfe(g,r,r.schema)},HX=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},Ofe=(r,g,B)=>{let H;const oe=r.dom;let be=g.cloneNode(!0);const Le=document.implementation;if(Le.createHTMLDocument){const Ke=Le.createHTMLDocument("");To.each(be.nodeName==="BODY"?be.childNodes:[be],ut=>{Ke.body.appendChild(Ke.importNode(ut,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=oe.doc,oe.doc=Ke}return JM(r,{...B,node:be}),H&&(oe.doc=H),be},ZX=(r,g)=>P(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,Ku=(r,g,B)=>ZX(r,B)?Ofe(r,g,B):g,y7=(r,g,B)=>{To.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.push(B))},Sfe=(r,g,B)=>!g.no_events&&r?N3(r,{...g,content:B}).content:B,qX=(r,g,B)=>{const H=Sd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||xb(_r.fromDom(g))?H:To.trim(H)},WX=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,oe=r.parse(g,H);return HX(oe),oe},dS=(r,g,B)=>rx(r,g).serialize(B),kfe=(r,g,B,H,oe)=>{const be=dS(g,B,H);return Sfe(r,oe,be)},Tfe=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},oe=g&&g.dom?g.dom:cc.DOM,be=g&&g.schema?g.schema:zm(H),Le=fS(H,be);QX(Le,H,oe);const Ke=(ut,At={})=>{const nn={format:"html",...At},un=Ku(g,ut,nn),yn=qX(oe,un,nn),Qn=WX(Le,yn,nn);return nn.format==="tree"?Qn:kfe(g,H,be,Qn,nn)};return{schema:be,addNodeFilter:Le.addNodeFilter,addAttributeFilter:Le.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(y7,Le,B),getTempAttrs:$(B),getNodeFilters:Le.getNodeFilters,getAttributeFilters:Le.getAttributeFilters,removeNodeFilter:Le.removeNodeFilter,removeAttributeFilter:Le.removeAttributeFilter}},Lh=(r,g)=>{const B=Tfe(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},KN="html",JN=(r,g)=>({...r,format:g,get:!0,getInner:!0}),eF=(r,g={})=>{const B=g.format?g.format:KN,H=JN(g,B);return WP(r,H).fold(Q,oe=>{const be=EX(r,oe);return hN(r,be,oe)})},YX="html",XX=(r,g)=>({format:YX,...r,set:!0,content:g}),hS=(r,g,B={})=>{const H=XX(B,g);return Y6(r,H).map(oe=>{const be=PX(r,oe.content,oe);return YP(r,be.html,oe),be.content}).getOr(g)},GX="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),b7=[],KX="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),x7=[],_7=(r,g)=>{const B=Te(g,H=>Ot(r,H));return Ue(B)},w7=r=>{const g=_7(r,GX),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},tF=r=>_7(r,b7),oA=(r,g)=>{const B=To.makeMap(r.plugins," "),oe=Te(g,be=>Ot(B,be));return Ue(oe)},JX=r=>oA(r,KX),eG=r=>oA(r,x7.map(g=>g.name)),tG=(r,g)=>{const B=w7(r),H=JX(g),oe=H.length>0,be=B.length>0,Le=g.theme==="mobile";if(oe||be||Le){const Ke=` +-->`)}}),r.addNodeFilter("#comment",H=>{let oe=H.length;for(;oe--;){const be=H[oe],Le=be.value;g.preserve_cdata&&(Le==null?void 0:Le.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Le.replace(/^\[CDATA\[|\]\]$/g,""))):(Le==null?void 0:Le.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Le).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.type===7?Le.remove():Le.type===1&&oe==="input"&&!Le.attr("type")&&Le.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ve(H,oe=>{oe.attr("data-mce-type")==="format-caret"&&(oe.isEmpty(r.schema.getNonEmptyElements())?oe.remove():oe.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.remove_trailing_brs&&Sfe(g,r,r.schema)},ZX=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},kfe=(r,g,B)=>{let H;const oe=r.dom;let be=g.cloneNode(!0);const Le=document.implementation;if(Le.createHTMLDocument){const Ke=Le.createHTMLDocument("");To.each(be.nodeName==="BODY"?be.childNodes:[be],ut=>{Ke.body.appendChild(Ke.importNode(ut,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=oe.doc,oe.doc=Ke}return JM(r,{...B,node:be}),H&&(oe.doc=H),be},qX=(r,g)=>P(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,Ku=(r,g,B)=>qX(r,B)?kfe(r,g,B):g,y7=(r,g,B)=>{To.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.push(B))},Tfe=(r,g,B)=>!g.no_events&&r?N3(r,{...g,content:B}).content:B,WX=(r,g,B)=>{const H=Sd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||xb(_r.fromDom(g))?H:To.trim(H)},YX=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,oe=r.parse(g,H);return ZX(oe),oe},dS=(r,g,B)=>rx(r,g).serialize(B),Cfe=(r,g,B,H,oe)=>{const be=dS(g,B,H);return Tfe(r,oe,be)},Afe=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},oe=g&&g.dom?g.dom:cc.DOM,be=g&&g.schema?g.schema:zm(H),Le=fS(H,be);HX(Le,H,oe);const Ke=(ut,At={})=>{const nn={format:"html",...At},un=Ku(g,ut,nn),yn=WX(oe,un,nn),Qn=YX(Le,yn,nn);return nn.format==="tree"?Qn:Cfe(g,H,be,Qn,nn)};return{schema:be,addNodeFilter:Le.addNodeFilter,addAttributeFilter:Le.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(y7,Le,B),getTempAttrs:$(B),getNodeFilters:Le.getNodeFilters,getAttributeFilters:Le.getAttributeFilters,removeNodeFilter:Le.removeNodeFilter,removeAttributeFilter:Le.removeAttributeFilter}},Ih=(r,g)=>{const B=Afe(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},JN="html",eF=(r,g)=>({...r,format:g,get:!0,getInner:!0}),tF=(r,g={})=>{const B=g.format?g.format:JN,H=eF(g,B);return WP(r,H).fold(Q,oe=>{const be=PX(r,oe);return pN(r,be,oe)})},XX="html",GX=(r,g)=>({format:XX,...r,set:!0,content:g}),hS=(r,g,B={})=>{const H=GX(B,g);return X6(r,H).map(oe=>{const be=RX(r,oe.content,oe);return YP(r,be.html,oe),be.content}).getOr(g)},KX="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),b7=[],JX="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),x7=[],_7=(r,g)=>{const B=Te(g,H=>Ot(r,H));return Ue(B)},w7=r=>{const g=_7(r,KX),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},nF=r=>_7(r,b7),iA=(r,g)=>{const B=To.makeMap(r.plugins," "),oe=Te(g,be=>Ot(B,be));return Ue(oe)},eG=r=>iA(r,JX),tG=r=>iA(r,x7.map(g=>g.name)),nG=(r,g)=>{const B=w7(r),H=eG(g),oe=H.length>0,be=B.length>0,Le=g.theme==="mobile";if(oe||be||Le){const Ke=` - `,ut=Le?` Themes:${Ke}mobile`:"",At=oe?` Plugins:${Ke}${H.join(Ke)}`:"",nn=be?` -Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ut+At+nn)}},L0=r=>De(x7,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),nG=(r,g)=>{const B=tF(r),H=eG(g),oe=H.length>0,be=B.length>0;if(oe||be){const Le=` +Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ut+At+nn)}},L0=r=>De(x7,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),rG=(r,g)=>{const B=nF(r),H=tG(g),oe=H.length>0,be=B.length>0;if(oe||be){const Le=` - `,Ke=oe?` Plugins:${Le}${H.map(L0).join(Le)}`:"",ut=be?` -Options:${Le}${B.join(Le)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ut)}},rG=(r,g)=>{tG(r,g),nG(r,g)},iA=cc.DOM,oG=r=>{iA.setStyle(r.id,"display",r.orgDisplay)},aA=r=>Y.from(r).each(g=>g.destroy()),nF=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},iG=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),iA.unbind(g,"submit reset",r.formEventDelegate))},aG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),oe=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&P(oe==null?void 0:oe.nextSibling)&&iA.remove(oe.nextSibling),F3(r),r.editorManager.remove(r),!r.inline&&H&&oG(r),eE(r),iA.remove(r.getContainer()),aA(g),aA(B),r.destroy()}},sG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),aA(B),aA(H)),iG(r),nF(r),r.destroyed=!0}},sA=(()=>{const r={};return{add:(oe,be)=>{r[oe]=be},get:oe=>r[oe]?r[oe]:{icons:{}},has:oe=>Ot(r,oe)}})(),pS=fh.ModelManager,S7=(r,g)=>g.dom[r],lA=(r,g)=>parseInt(rs(g,r),10),lG=U(S7,"clientWidth"),cG=U(S7,"clientHeight"),Cfe=U(lA,"margin-top"),uG=U(lA,"margin-left"),f5=r=>r.dom.getBoundingClientRect(),rF=(r,g,B)=>{const H=lG(r),oe=cG(r);return g>=0&&B>=0&&g<=H&&B<=oe},oF=(r,g,B,H)=>{const oe=f5(g),be=r?oe.left+g.dom.clientLeft+uG(g):0,Le=r?oe.top+g.dom.clientTop+Cfe(g):0,Ke=B-be,ut=H-Le;return{x:Ke,y:ut}},fG=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.inline?H:ih(H),be=oF(r.inline,oe,g,B);return rF(oe,be.x,be.y)},iF=r=>Y.from(r).map(_r.fromDom),dG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return iF(g).map(lf).getOr(!1)};var hG=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const aF=r=>{const g=[],B=()=>{const yn=r.theme;return yn&&yn.getNotificationManagerImpl?yn.getNotificationManagerImpl():hG()},H=()=>Y.from(g[0]),oe=(yn,Qn)=>yn.type===Qn.type&&yn.text===Qn.text&&!yn.progressBar&&!yn.timeout&&!Qn.progressBar&&!Qn.timeout,be=()=>{H().each(yn=>{yn.reposition()})},Le=yn=>{g.push(yn)},Ke=yn=>{Qe(g,Qn=>Qn===yn).each(Qn=>{g.splice(Qn,1)})},ut=(yn,Qn=!0)=>r.removed||!dG(r)?{}:(Qn&&r.dispatch("BeforeOpenNotification",{notification:yn}),De(g,rr=>oe(B().getArgs(rr),yn)).getOrThunk(()=>{r.editorManager.setActive(r);const rr=B().open(yn,()=>{Ke(rr)},()=>GD(r));return Le(rr),be(),r.dispatch("OpenNotification",{notification:{...rr}}),rr})),At=()=>{H().each(yn=>{B().close(yn),Ke(yn),be()})},nn=$(g);return(yn=>{yn.on("SkinLoaded",()=>{const Qn=Wd(yn);Qn&&ut({text:Qn,type:"warning",timeout:0},!1),be()}),yn.on("show ResizeEditor ResizeWindow NodeChange ToggleView FullscreenStateChanged",()=>{requestAnimationFrame(be)}),yn.on("remove",()=>{ve(g.slice(),Qn=>{B().close(Qn)})}),yn.addShortcut("alt+F12","Focus to notification",()=>H().map(Qn=>_r.fromDom(Qn.getEl())).each(Qn=>Z3(Qn)))})(r),{open:ut,close:At,getNotifications:nn}},mS=fh.PluginManager,Q2=fh.ThemeManager;var pG=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const sF=r=>{let g=[];const B=()=>{const Wn=r.theme;return Wn&&Wn.getWindowManagerImpl?Wn.getWindowManagerImpl():pG()},H=(Wn,ur)=>(...Tr)=>ur?ur.apply(Wn,Tr):void 0,oe=Wn=>{r.dispatch("OpenWindow",{dialog:Wn})},be=Wn=>{r.dispatch("CloseWindow",{dialog:Wn})},Le=Wn=>{g.push(Wn),oe(Wn)},Ke=Wn=>{be(Wn),g=Te(g,ur=>ur!==Wn),g.length===0&&r.focus()},ut=()=>Y.from(g[g.length-1]),At=Wn=>{r.editorManager.setActive(r),Tk(r),r.ui.show();const ur=Wn();return Le(ur),ur},nn=(Wn,ur)=>At(()=>B().open(Wn,ur,Ke)),un=Wn=>At(()=>B().openUrl(Wn,Ke)),yn=(Wn,ur,Tr)=>{const Wr=B();Wr.alert(Wn,H(Tr||Wr,ur))},Qn=(Wn,ur,Tr)=>{const Wr=B();Wr.confirm(Wn,H(Tr||Wr,ur))},rr=()=>{ut().each(Wn=>{B().close(Wn),Ke(Wn)})};return r.on("remove",()=>{ve(g,Wn=>{B().close(Wn)})}),{open:nn,openUrl:un,alert:yn,confirm:Qn,close:rr}},gS=(r,g)=>{r.notificationManager.open({type:"error",text:g})},d5=(r,g)=>{r._skinLoaded?gS(r,g):r.on("SkinLoaded",()=>{gS(r,g)})},lF=(r,g)=>{d5(r,ff.translate(["Failed to upload image: {0}",g]))},h5=(r,g,B)=>{mh(r,g,{message:B}),console.error(B)},p5=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,mG=(r,g,B)=>{h5(r,"PluginLoadError",p5("plugin",g,B))},cF=(r,g,B)=>{h5(r,"IconsLoadError",p5("icons",g,B))},gG=(r,g,B)=>{h5(r,"LanguageLoadError",p5("language",g,B))},vG=(r,g,B)=>{h5(r,"ThemeLoadError",p5("theme",g,B))},yG=(r,g,B)=>{h5(r,"ModelLoadError",p5("model",g,B))},bG=(r,g,B)=>{const H=ff.translate(["Failed to initialize plugin: {0}",g]);mh(r,"PluginLoadError",{message:H}),k7(H,B),d5(r,H)},k7=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},Iv=r=>/^[a-z0-9\-]+$/i.test(r),m5=r=>"content/"+r+"/content.css",xG=r=>tinymce.Resource.has(m5(r)),_G=r=>uF(r,r2(r)),wG=r=>uF(r,Ad(r)),uF=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",oe=`content${r.editorManager.suffix}.css`;return ye(g,be=>xG(be)?be:Iv(be)&&!r.inline?`${B}/${be}/${oe}`:r.documentBaseURI.toAbsolute(be))},Il=r=>{r.contentCSS=r.contentCSS.concat(_G(r),wG(r))},OG=r=>r?Me(r.getElementsByTagName("img")):[],g5=(r,g)=>{const B={};return{findAll:(oe,be=q)=>{const Le=Te(OG(oe),ut=>{const At=ut.src;return ut.hasAttribute("data-mce-bogus")||ut.hasAttribute("data-mce-placeholder")||!At||At===Nr.transparentSrc?!1:Br(At,"blob:")?!r.isUploaded(At)&&be(ut):Br(At,"data:")?be(ut):!1}),Ke=ye(Le,ut=>{const At=ut.src;if(Ot(B,At))return B[At].then(nn=>v(nn)?nn:{image:ut,blobInfo:nn.blobInfo});{const nn=BY(g,At).then(un=>(delete B[At],{image:ut,blobInfo:un})).catch(un=>(delete B[At],un));return B[At]=nn,nn}});return Promise.all(Ke)}}},fF=()=>{let B={};const H=(yn,Qn)=>({status:yn,resultUri:Qn}),oe=yn=>yn in B;return{hasBlobUri:oe,getResultUri:yn=>{const Qn=B[yn];return Qn?Qn.resultUri:null},isPending:yn=>oe(yn)?B[yn].status===1:!1,isUploaded:yn=>oe(yn)?B[yn].status===2:!1,markPending:yn=>{B[yn]=H(1,null)},markUploaded:(yn,Qn)=>{B[yn]=H(2,Qn)},removeFailed:yn=>{delete B[yn]},destroy:()=>{B={}}}};let SG=0;const kG=()=>{const r=()=>Math.round(G_()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},dF=r=>r+SG+++kG(),H2=()=>{let r=[];const g=un=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[un.toLowerCase()]||"dat",B=(un,yn,Qn,rr,Wn)=>{if(v(un))return H({id:un,name:rr,filename:Wn,blob:yn,base64:Qn});if(_(un))return H(un);throw new Error("Unknown input type")},H=un=>{if(!un.blob||!un.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const yn=un.id||dF("blobid"),Qn=un.name||yn,rr=un.blob;return{id:$(yn),name:$(Qn),filename:$(un.filename||Qn+"."+g(rr.type)),blob:$(rr),base64:$(un.base64),blobUri:$(un.blobUri||URL.createObjectURL(rr)),uri:$(un.uri)}},oe=un=>{Le(un.id())||r.push(un)},be=un=>De(r,un).getOrUndefined(),Le=un=>be(yn=>yn.id()===un);return{create:B,add:oe,get:Le,getByUri:un=>be(yn=>yn.blobUri()===un),getByData:(un,yn)=>be(Qn=>Qn.base64()===un&&Qn.blob().type===yn),findFirst:be,removeByUri:un=>{r=Te(r,yn=>yn.blobUri()===un?(URL.revokeObjectURL(yn.blobUri()),!1):!0)},destroy:()=>{ve(r,un=>{URL.revokeObjectURL(un.blobUri())}),r=[]}}},xm=(r,g)=>{const B={},H=(Wn,ur)=>Wn?Wn.replace(/\/$/,"")+"/"+ur.replace(/^\//,""):ur,oe=(Wn,ur)=>new Promise((Tr,Wr)=>{const Qr=new XMLHttpRequest;Qr.open("POST",g.url),Qr.withCredentials=g.credentials,Qr.upload.onprogress=Zo=>{ur(Zo.loaded/Zo.total*100)},Qr.onerror=()=>{Wr("Image upload failed due to a XHR Transport error. Code: "+Qr.status)},Qr.onload=()=>{if(Qr.status<200||Qr.status>=300){Wr("HTTP Error: "+Qr.status);return}const Zo=JSON.parse(Qr.responseText);if(!Zo||!v(Zo.location)){Wr("Invalid JSON: "+Qr.responseText);return}Tr(H(g.basePath,Zo.location))};const lo=new FormData;lo.append("file",Wn.blob(),Wn.filename()),Qr.send(lo)}),be=A(g.handler)?g.handler:oe,Le=()=>new Promise(Wn=>{Wn([])}),Ke=(Wn,ur)=>({url:ur,blobInfo:Wn,status:!0}),ut=(Wn,ur)=>({url:"",blobInfo:Wn,status:!1,error:ur}),At=(Wn,ur)=>{To.each(B[Wn],Tr=>{Tr(ur)}),delete B[Wn]},nn=(Wn,ur,Tr)=>(r.markPending(Wn.blobUri()),new Promise(Wr=>{let Qr,lo;try{const Zo=()=>{Qr&&(Qr.close(),lo=k)},li=Co=>{Zo(),r.markUploaded(Wn.blobUri(),Co),At(Wn.blobUri(),Ke(Wn,Co)),Wr(Ke(Wn,Co))},Mi=Co=>{Zo(),r.removeFailed(Wn.blobUri()),At(Wn.blobUri(),ut(Wn,Co)),Wr(ut(Wn,Co))};lo=Co=>{Co<0||Co>100||Y.from(Qr).orThunk(()=>Y.from(Tr).map(Z)).each(yo=>{Qr=yo,yo.progressBar.value(Co)})},ur(Wn,lo).then(li,Co=>{Mi(v(Co)?{message:Co}:Co)})}catch(Zo){Wr(ut(Wn,Zo))}})),un=Wn=>Wn===oe,yn=Wn=>{const ur=Wn.blobUri();return new Promise(Tr=>{B[ur]=B[ur]||[],B[ur].push(Tr)})},Qn=(Wn,ur)=>(Wn=To.grep(Wn,Tr=>!r.isUploaded(Tr.blobUri())),Promise.all(To.map(Wn,Tr=>r.isPending(Tr.blobUri())?yn(Tr):nn(Tr,be,ur))));return{upload:(Wn,ur)=>!g.url&&un(be)?Le():Qn(Wn,ur)}},vS=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),cx=(r,g)=>xm(g,{url:vv(r),basePath:h1(r),credentials:n2(r),handler:yy(r)}),zy=r=>{const g=fF(),B=cx(r,g);return{upload:(H,oe=!0)=>B.upload(H,oe?vS(r):void 0)}},v5=(r,g)=>r.dom.isEmpty(g.dom)&&P(r.schema.getTextBlockElements()[ma(g)]),T7=r=>g=>{v5(r,g)&&ii(g,_r.fromHtml('
    '))},C7=r=>{const g=H2();let B,H;const oe=fF(),be=[],Le=Qr=>lo=>r.selection?Qr(lo):[],Ke=Qr=>Qr+(Qr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ut=(Qr,lo,Zo)=>{let li=0;do li=Qr.indexOf(lo,li),li!==-1&&(Qr=Qr.substring(0,li)+Zo+Qr.substr(li+lo.length),li+=Zo.length-lo.length+1);while(li!==-1);return Qr},At=(Qr,lo,Zo)=>{const li=`src="${Zo}"${Zo===Nr.transparentSrc?' data-mce-placeholder="1"':""}`;return Qr=ut(Qr,`src="${lo}"`,li),Qr=ut(Qr,'data-mce-src="'+lo+'"','data-mce-src="'+Zo+'"'),Qr},nn=(Qr,lo)=>{ve(r.undoManager.data,Zo=>{Zo.type==="fragmented"?Zo.fragments=ye(Zo.fragments,li=>At(li,Qr,lo)):Zo.content=At(Zo.content,Qr,lo)})},un=(Qr,lo)=>{const Zo=r.convertURL(lo,"src");nn(Qr.src,lo),Tu(_r.fromDom(Qr),{src:dl(r)?Ke(lo):lo,"data-mce-src":Zo})},yn=()=>(B||(B=cx(r,oe)),ur().then(Le(Qr=>{const lo=ye(Qr,Zo=>Zo.blobInfo);return B.upload(lo,vS(r)).then(Le(Zo=>{const li=[];let Mi=!1;const Co=ye(Zo,(yo,Vo)=>{const{blobInfo:Fi,image:la}=Qr[Vo];let bs=!1;return yo.status&&Mf(r)?(yo.url&&!tr(la.src,yo.url)&&(Mi=!0),g.removeByUri(la.src),By(r)||un(la,yo.url)):yo.error&&(yo.error.remove&&(nn(la.src,Nr.transparentSrc),li.push(la),bs=!0),lF(r,yo.error.message)),{element:la,status:yo.status,uploadUri:yo.url,blobInfo:Fi,removed:bs}});return li.length>0&&!By(r)?r.undoManager.transact(()=>{ve(xu(li),yo=>{const Vo=jc(yo);hs(yo),Vo.each(T7(r)),g.removeByUri(yo.dom.src)})}):Mi&&r.undoManager.dispatchChange(),Co}))}))),Qn=()=>$c(r)?yn():Promise.resolve([]),rr=Qr=>Oe(be,lo=>lo(Qr)),Wn=Qr=>{be.push(Qr)},ur=()=>(H||(H=g5(oe,g)),H.findAll(r.getBody(),rr).then(Le(Qr=>{const lo=Te(Qr,Zo=>v(Zo)?(d5(r,Zo),!1):Zo.uriType!=="blob");return By(r)||ve(lo,Zo=>{nn(Zo.image.src,Zo.blobInfo.blobUri()),Zo.image.src=Zo.blobInfo.blobUri(),Zo.image.removeAttribute("data-mce-src")}),lo}))),Tr=()=>{g.destroy(),oe.destroy(),H=B=null},Wr=Qr=>Qr.replace(/src="(blob:[^"]+)"/g,(lo,Zo)=>{const li=oe.getResultUri(Zo);if(li)return'src="'+li+'"';let Mi=g.getByUri(Zo);return Mi||(Mi=Ie(r.editorManager.get(),(Co,yo)=>Co||yo.editorUpload&&yo.editorUpload.blobCache.getByUri(Zo),void 0)),Mi?'src="data:'+Mi.blob().type+";base64,"+Mi.base64()+'"':lo});return r.on("SetContent",()=>{$c(r)?Qn():ur()}),r.on("RawSaveContent",Qr=>{Qr.content=Wr(Qr.content)}),r.on("GetContent",Qr=>{Qr.source_view||Qr.format==="raw"||Qr.format==="tree"||(Qr.content=Wr(Qr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",Qr=>{ve(Qr,lo=>{const Zo=lo.attr("src");if(!Zo||g.getByUri(Zo))return;const li=oe.getResultUri(Zo);li&&lo.attr("src",li)})})}),{blobCache:g,addFilter:Wn,uploadImages:yn,uploadImagesAuto:Qn,scanForImages:ur,destroy:Tr}},hF=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const oe={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Le={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Le,oe,be]:[oe,Le,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(oe,be,Le)=>ne(oe)&&oe.hasAttribute("href"),onformat:(oe,be,Le)=>{To.each(Le,(Ke,ut)=>{g.setAttrib(oe,ut,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":oe=>{var be;return(be=oe==null?void 0:oe.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return To.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),oe=>{H[oe]={block:oe,remove:"all"}}),H},A7={remove_similar:!0,inherit:!1},yS={selector:"td,th",...A7},TG={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...yS},tablecellverticalalign:{styles:{"vertical-align":"%value"},...yS},tablecellbordercolor:{styles:{borderColor:"%value"},...yS},tablecellclass:{classes:["%value"],...yS},tableclass:{selector:"table",classes:["%value"],...A7},tablecellborderstyle:{styles:{borderStyle:"%value"},...yS},tablecellborderwidth:{styles:{borderWidth:"%value"},...yS}},pF=$(TG),mF=r=>{const g={},B=Le=>P(Le)?g[Le]:g,H=Le=>Ot(g,Le),oe=(Le,Ke)=>{Le&&(v(Le)?(C(Ke)||(Ke=[Ke]),ve(Ke,ut=>{M(ut.deep)&&(ut.deep=!Gm(ut)),M(ut.split)&&(ut.split=!Gm(ut)||Ed(ut)),M(ut.remove)&&Gm(ut)&&!Ed(ut)&&(ut.remove="none"),Gm(ut)&&Ed(ut)&&(ut.mixed=!0,ut.block_expand=!0),v(ut.classes)&&(ut.classes=ut.classes.split(/\s+/))}),g[Le]=Ke):Ge(Le,(ut,At)=>{oe(At,ut)}))},be=Le=>(Le&&g[Le]&&delete g[Le],g);return oe(hF(r)),oe(pF()),oe(sw(r)),{get:B,has:H,register:oe,unregister:be}},y5=To.each,zg=cc.DOM,b5=r=>P(r)&&_(r),CG=(r,g)=>{const B=g&&g.schema||zm({}),H=(ut,At)=>{At.classes.length>0&&zg.addClass(ut,At.classes.join(" ")),zg.setAttribs(ut,At.attrs)},oe=ut=>{const At=v(ut)?{name:ut,classes:[],attrs:{}}:ut,nn=zg.create(At.name);return H(nn,At),nn},be=(ut,At)=>{const nn=B.getElementRule(ut.nodeName.toLowerCase()),un=nn==null?void 0:nn.parentsRequired;return un&&un.length?At&&ce(un,At)?At:un[0]:!1},Le=(ut,At,nn)=>{let un;const yn=At[0],Qn=b5(yn)?yn.name:void 0,rr=be(ut,Qn);if(rr)Qn===rr?(un=yn,At=At.slice(1)):un=rr;else if(yn)un=yn,At=At.slice(1);else if(!nn)return ut;const Wn=un?oe(un):zg.create("div");Wn.appendChild(ut),nn&&To.each(nn,Tr=>{const Wr=oe(Tr);Wn.insertBefore(Wr,ut)});const ur=b5(un)?un.siblings:void 0;return Le(Wn,At,ur)},Ke=zg.create("div");if(r.length>0){const ut=r[0],At=oe(ut),nn=b5(ut)?ut.siblings:void 0;Ke.appendChild(Le(At,r.slice(1),nn))}return Ke},AG=r=>{r=To.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,oe,be,Le,Ke)=>{switch(oe){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":To.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Le==="["){const ut=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ut&&(B.attrs[ut[1]]=ut[2])}return""})),B.name=g||"div",B},Afe=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),To.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=To.map(g.split(/(?:~\+|~|\+)/),AG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],MG=(r,g)=>{let B="",H=Pb(r);if(H==="")return"";const oe=yn=>v(yn)?yn.replace(/%(\w+)/g,""):"",be=(yn,Qn)=>zg.getStyle(Qn??r.getBody(),yn,!0);if(v(g)){const yn=r.formatter.get(g);if(!yn)return"";g=yn[0]}if("preview"in g){const yn=g.preview;if(yn===!1)return"";H=yn||H}let Le=g.block||g.inline||"span",Ke;const ut=Afe(g.selector);ut.length>0?(ut[0].name||(ut[0].name=Le),Le=g.selector,Ke=CG(ut,r)):Ke=CG([Le],r);const At=zg.select(Le,Ke)[0]||Ke.firstChild;y5(g.styles,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setStyle(At,Qn,rr)}),y5(g.attributes,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setAttrib(At,Qn,rr)}),y5(g.classes,yn=>{const Qn=oe(yn);zg.hasClass(At,Qn)||zg.addClass(At,Qn)}),r.dispatch("PreviewFormats"),zg.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const nn=be("fontSize"),un=/px$/.test(nn)?parseInt(nn,10):0;return y5(H.split(" "),yn=>{let Qn=be(yn,At);if(!(yn==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Qn)&&(Qn=be(yn),od(Qn).toLowerCase()==="#ffffff"))&&!(yn==="color"&&od(Qn).toLowerCase()==="#000000")){if(yn==="font-size"&&/em|%$/.test(Qn)){if(un===0)return;Qn=parseFloat(Qn)/(/%$/.test(Qn)?100:1)*un+"px"}yn==="border"&&Qn&&(B+="padding:0 2px;"),B+=yn+":"+Qn+";"}}),r.dispatch("AfterPreviewFormats"),zg.remove(Ke),B},EG=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},Dv=r=>{const g=mF(r),B=Ar({});return EG(r),Oz(r),By(r)||EP(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,oe,be)=>{AX(r,H,oe,be)},remove:(H,oe,be,Le)=>{MX(r,H,oe,be,Le)},toggle:(H,oe,be)=>{HN(r,H,oe,be)},match:(H,oe,be,Le)=>kX(r,H,oe,be,Le),closest:H=>CX(r,H),matchAll:(H,oe)=>g7(r,H,oe),matchNode:(H,oe,be,Le)=>TX(r,H,oe,be,Le),canApply:H=>rA(r,H),formatChanged:(H,oe,be,Le)=>ZN(r,B,H,oe,be,Le),getCssText:U(MG,r)}},PG=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},Mfe=(r,g,B)=>{const H=Ar(!1),oe=ut=>{u5(g,!1,B),g.add({},ut)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ut=>{const At=ut.command;PG(At)||(RN(g,B),g.beforeChange())}),r.on("ExecCommand",ut=>{const At=ut.command;PG(At)||oe(ut)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",oe),r.on("dragend",oe),r.on("keyup",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;const nn=Nr.os.isMacOS()&&ut.key==="Meta";(At>=33&&At<=36||At>=37&&At<=40||At===45||ut.ctrlKey||nn)&&(oe(),r.nodeChanged()),(At===46||At===8)&&r.nodeChanged(),H.get()&&g.typing&&!c5(s5(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;if(At>=33&&At<=36||At>=37&&At<=40||At===45){g.typing&&oe(ut);return}const nn=ut.ctrlKey&&!ut.altKey||ut.metaKey;if((At<16||At>20)&&At!==224&&At!==91&&!g.typing&&!nn){g.beforeChange(),u5(g,!0,B),g.add({},ut),H.set(!0);return}(Nr.os.isMacOS()?ut.metaKey:ut.ctrlKey&&!ut.altKey)&&g.beforeChange()}),r.on("mousedown",ut=>{g.typing&&oe(ut)});const be=ut=>ut.inputType==="insertReplacementText",Le=ut=>ut.inputType==="insertText"&&ut.data===null,Ke=ut=>ut.inputType==="insertFromPaste"||ut.inputType==="insertFromDrop";r.on("input",ut=>{ut.inputType&&(be(ut)||Le(ut)||Ke(ut))&&oe(ut)}),r.on("AddUndo Undo Redo ClearUndos",ut=>{ut.isDefaultPrevented()||r.nodeChanged()})},RG=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},bS=r=>{const g=Ts(),B=Ar(0),H=Ar(0),oe={data:[],typing:!1,beforeChange:()=>{NN(r,B,g)},add:(be,Le)=>d7(r,oe,H,B,g,be,Le),dispatchChange:()=>{r.setDirty(!0);const be=s5(r);be.bookmark=fl(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(oe.data,H.get()).getOrUndefined()})},undo:()=>h7(r,oe,B,H),redo:()=>FN(r,H,oe.data),clear:()=>{p7(r,oe,H)},reset:()=>{$N(r,oe)},hasUndo:()=>VN(r,oe,H),hasRedo:()=>m7(r,oe,H),transact:be=>UN(r,oe,B,be),ignore:be=>{jN(r,B,be)},extra:(be,Le)=>{QN(r,oe,H,be,Le)}};return By(r)||Mfe(r,oe,B),RG(r),oe},LG=[9,27,Jo.HOME,Jo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Jo.DOWN,Jo.UP,Jo.LEFT,Jo.RIGHT].concat(Nr.browser.isFirefox()?[224]:[]),M7="data-mce-placeholder",E7=r=>r.type==="keydown"||r.type==="keyup",P7=r=>{const g=r.keyCode;return g===Jo.BACKSPACE||g===Jo.DELETE},IG=r=>{if(E7(r)){const g=r.keyCode;return!P7(r)&&(Jo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(LG,g))}else return!1},DG=r=>E7(r)&&!(P7(r)||r.type==="keyup"&&r.keyCode===229),Z2=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},BG=r=>{var g;const B=r.dom,H=tu(r),oe=(g=_0(r))!==null&&g!==void 0?g:"",be=(Le,Ke)=>{if(IG(Le))return;const ut=r.getBody(),At=DG(Le)?!1:Z2(B,ut,H);(B.getAttrib(ut,M7)!==""!==At||Ke)&&(B.setAttrib(ut,M7,At?oe:null),V3(r,At),r.on(At?"keydown":"keyup",be),r.off(At?"keyup":"keydown",be))};lr(oe)&&r.on("init",Le=>{be(Le,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Ig.setEditorTimeout(r,()=>be(Ke)))})},zG=(r,g)=>({block:r,position:g}),NG=(r,g)=>({from:r,to:g}),R7=(r,g)=>{const B=_r.fromDom(r),H=_r.fromDom(g.container());return Xc(B,H).map(oe=>zG(oe,g))},FG=r=>!(El(r.to.block,r.from.block)||El(r.from.block,r.to.block)),$G=r=>!va(r.from.block,r.to.block),gF=(r,g)=>cl(g,oe=>my(oe)||pn(oe.dom),oe=>va(oe,r)).filter(Wl).getOr(r),VG=(r,g)=>{const B=_r.fromDom(r);return va(gF(B,g.from.block),gF(B,g.to.block))},UG=r=>In(r.from.block.dom)===!1&&In(r.to.block.dom)===!1,cA=r=>{const g=B=>Np(B)||Is(B.dom)||av(B);return g(r.from.block)&&g(r.to.block)},jG=(r,g,B,H)=>gn(H.position.getNode())&&!Ai(r,H.block)?Py(!1,H.block.dom).bind(oe=>oe.isEqual(H.position)?Op(B,g,oe).bind(be=>R7(g,be)):Y.some(H)).getOr(H):H,QG=(r,g,B,H)=>{const oe=R7(g,vo.fromRangeStart(H)),be=oe.bind(Le=>Op(B,g,Le.position).bind(Ke=>R7(g,Ke).map(ut=>jG(r,g,B,ut))));return zi(oe,be,NG).filter(Le=>$G(Le)&&VG(g,Le)&&UG(Le)&&cA(Le)&&FG(Le))},Efe=(r,g,B,H)=>H.collapsed?QG(r,g,B,H):Y.none(),x5=(r,g)=>{const B=vc(r);return Qe(B,H=>g.isBlock(ma(H))).fold($(B),H=>B.slice(0,H))},vF=(r,g)=>{const B=x5(r,g);return ve(B,hs),B},uA=(r,g,B)=>{const H=k1(B,g);return De(H.reverse(),oe=>Ai(r,oe)).each(hs)},HG=(r,g)=>Te(Vd(g),B=>!Ai(r,B)).length===0,ZG=(r,g,B,H,oe)=>{if(Ai(H,B))return xp(B),ph(B.dom);HG(H,oe)&&Ai(H,g)&&xc(oe,_r.fromTag("br"));const be=Up(B.dom,vo.before(oe.dom));return ve(vF(g,H),Le=>{xc(oe,Le)}),uA(H,r,g),be},qG=(r,g)=>r.isInline(ma(g)),WG=(r,g,B,H)=>{if(Ai(H,B)){if(Ai(H,g)){const Le=Pe((Ke=>{const ut=(At,nn)=>yc(At).fold(()=>nn,un=>qG(H,un)?ut(un,nn.concat(im(un))):nn);return ut(Ke,[])})(B),(Ke,ut)=>(nd(Ke,ut),ut),sv());uf(g),ii(g,Le)}return hs(B),ph(g.dom)}const oe=Ym(B.dom);return ve(vF(g,H),be=>{ii(B,be)}),uA(H,r,g),oe},rO=(r,g)=>{const B=k1(g,r);return Y.from(B[B.length-1])},oO=(r,g)=>El(g,r)?rO(g,r):Y.none(),_5=(r,g)=>{Py(r,g.dom).bind(B=>Y.from(B.getNode())).map(_r.fromDom).filter(Th).each(hs)},w5=(r,g,B,H)=>(_5(!0,g),_5(!1,B),oO(g,B).fold(U(WG,r,g,B,H),U(ZG,r,g,B,H))),q2=(r,g,B,H,oe)=>g?w5(r,H,B,oe):w5(r,B,H,oe),ux=(r,g)=>{const B=_r.fromDom(r.getBody());return Efe(r.schema,B.dom,g,r.selection.getRng()).map(oe=>()=>{q2(B,g,oe.from.block,oe.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},fA=(r,g,B)=>{const H=g.getRng();return zi(Xc(r,_r.fromDom(H.startContainer)),Xc(r,_r.fromDom(H.endContainer)),(oe,be)=>va(oe,be)?Y.none():Y.some(()=>{H.deleteContents(),q2(r,!0,oe,be,B).each(Le=>{g.setRng(Le.toRange())})})).getOr(Y.none())},O5=(r,g)=>{const B=_r.fromDom(g),H=U(va,r);return vs(B,my,H).isSome()},yF=(r,g)=>O5(r,g.startContainer)||O5(r,g.endContainer),L7=(r,g)=>{const B=Up(r.dom,vo.fromRangeStart(g)).isNone(),H=Sp(r.dom,vo.fromRangeEnd(g)).isNone();return!yF(r,g)&&B&&H},I7=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),bF=r=>{const g=_r.fromDom(r.getBody()),B=r.selection.getRng();return L7(g,B)?I7(r):fA(g,r.selection,r.schema)},dA=(r,g)=>r.selection.isCollapsed()?Y.none():bF(r),Ng=(r,g,B,H,oe)=>Y.from(g._selectionOverrides.showCaret(r,B,H,oe)),xF=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},xS=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(xF(g)),_F=(r,g,B)=>{const H=Yd(1,r.getBody(),g),oe=vo.fromRangeStart(H),be=oe.getNode();if(v2(be))return Ng(1,r,be,!oe.isAtEnd(),!1);const Le=oe.getNode(!0);if(v2(Le))return Ng(1,r,Le,!1,!1);const Ke=z2(r.dom.getRoot(),oe.getNode());return v2(Ke)?Ng(1,r,Ke,!1,B):Y.none()},_S=(r,g,B)=>g.collapsed?_F(r,g,B).getOr(g):g,wF=r=>I2(r)||Y3(r),OF=r=>D2(r)||X3(r),SF=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},D7=(r,g,B,H,oe,be)=>{Ng(H,r,be.getNode(!oe),oe,!0).each(Le=>{if(g.collapsed){const Ke=g.cloneRange();oe?Ke.setEnd(Le.startContainer,Le.startOffset):Ke.setStart(Le.endContainer,Le.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Le)}),SF(r.dom,B)},fx=(r,g)=>{const B=r.selection.getRng();if(!Mt(B.commonAncestorContainer))return Y.none();const H=g?Ef.Forwards:Ef.Backwards,oe=k0(r.getBody()),be=U(Z4,g?oe.next:oe.prev),Le=g?wF:OF,Ke=xw(H,r.getBody(),B),ut=be(Ke),At=ut&&Gu(g,ut);if(!At||!p3(Ke,At))return Y.none();if(Le(At))return Y.some(()=>D7(r,B,Ke.getNode(),H,g,At));const nn=be(At);return nn&&Le(nn)&&p3(At,nn)?Y.some(()=>D7(r,B,Ke.getNode(),H,g,nn)):Y.none()},Ny=(r,g)=>fx(r,g),Fg=(r,g)=>{const B=r.getBody();return g?ph(B).filter(I2):Ym(B).filter(D2)},B7=r=>{const g=r.selection.getRng();return!g.collapsed&&(Fg(r,!0).exists(B=>B.isEqual(vo.fromRangeStart(g)))||Fg(r,!1).exists(B=>B.isEqual(vo.fromRangeEnd(g))))},YG=r=>P(r)&&(my(_r.fromDom(r))||av(_r.fromDom(r))),$g=kl.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),XG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},GG=(r,g,B,H,oe)=>{const be=Le=>oe.isInline(Le.nodeName.toLowerCase())&&!hm(B,H,r);return d3(!g,B).fold(()=>d3(g,H).fold(re,be),be)},kF=(r,g,B,H,oe)=>{const be=oe.getNode(!B);return Xc(_r.fromDom(g),_r.fromDom(H.getNode())).map(Le=>Ai(r,Le)?$g.remove(Le.dom):$g.moveToElement(be)).orThunk(()=>Y.some($g.moveToElement(be)))},TF=(r,g,B,H)=>Op(g,r,B).bind(oe=>YG(oe.getNode())||GG(r,g,B,oe,H)?Y.none():g&&In(oe.getNode())||!g&&In(oe.getNode(!0))?kF(H,r,g,B,oe):g&&D2(B)||!g&&I2(B)?Y.some($g.moveToPosition(oe)):Y.none()),KG=(r,g)=>T(g)?Y.none():r&&In(g.nextSibling)?Y.some($g.moveToElement(g.nextSibling)):!r&&In(g.previousSibling)?Y.some($g.moveToElement(g.previousSibling)):Y.none(),JG=(r,g,B)=>B.fold(H=>Y.some($g.remove(H)),H=>Y.some($g.moveToElement(H)),H=>hm(g,H,r)?Y.none():Y.some($g.moveToPosition(H))),eK=(r,g,B,H)=>XG(g,B)?KG(g,B.getNode(!g)).orThunk(()=>TF(r,g,B,H)):TF(r,g,B,H).bind(oe=>JG(r,B,oe)),tK=(r,g,B,H)=>{const oe=Yd(g?1:-1,r,B),be=vo.fromRangeStart(oe),Le=_r.fromDom(r);return!g&&D2(be)?Y.some($g.remove(be.getNode(!0))):g&&I2(be)?Y.some($g.remove(be.getNode())):!g&&I2(be)&&u6(Le,be,H)?TB(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):g&&D2(be)&&kB(Le,be,H)?Ra(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):eK(r,g,be,H)},nK=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B)),!0),z7=(r,g)=>B=>{const H=g?vo.before(B):vo.after(B);return r.selection.setRng(H.toRange()),!0},N7=r=>g=>(r.selection.setRng(g.toRange()),!0),F7=(r,g)=>Y.from(z2(r.getBody(),g)),rK=(r,g)=>{const B=r.selection.getNode();return F7(r,B).filter(In).fold(()=>tK(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(nK(r,g),z7(r,g),N7(r))),()=>Y.some(k))},oK=r=>{ve(Pl(r,".mce-offscreen-selection"),hs)},CF=(r,g)=>{const B=r.selection.getNode();return In(B)&&!Ir(B)?F7(r,B.parentNode).filter(In).fold(()=>Y.some(()=>{oK(_r.fromDom(r.getBody())),T0(r,g,_r.fromDom(r.selection.getNode())),J3(r)}),()=>Y.some(k)):B7(r)?Y.some(()=>{$w(r,r.selection.getRng(),_r.fromDom(r.getBody()))}):Y.none()},$7=r=>{const g=r.dom,B=r.selection,H=z2(r.getBody(),B.getNode());if(pn(H)&&g.isBlock(H)&&g.isEmpty(H)){const oe=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(oe),B.setRng(vo.before(oe).toRange())}return!0},S5=(r,g)=>r.selection.isCollapsed()?rK(r,g):CF(r,g),V7=r=>r.hasOwnProperty("text"),U7=r=>r.hasOwnProperty("marker"),hA=(r,g)=>{const B=(be,Le)=>{if(Mt(be))return{text:be,offset:Le};{const Ke=g(),ut=be.childNodes;return Le{var g,B;const{start:H,end:oe}=r,be=new window.Range;return V7(H)?be.setStart(H.text,H.offset):U7(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),V7(oe)?be.setEnd(oe.text,oe.offset):U7(oe)&&(oe.before?be.setEndBefore(oe.marker):be.setEndAfter(oe.marker),(B=oe.marker.parentNode)===null||B===void 0||B.removeChild(oe.marker)),be},j7=(r,g)=>{var B;const H=r.dom,oe=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Le=r.getBody();if(((B=oe==null?void 0:oe.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&oe&&be&&oe===Le.firstChild&&be===Le.lastChild&&!H.isEmpty(Le)){const ut=oe.cloneNode(!1),At=()=>{if(g?B2(r):p6(r),Le.firstChild!==oe){const nn=hA(r.selection.getRng(),()=>document.createElement("span"));Array.from(Le.childNodes).forEach(un=>ut.appendChild(un)),Le.appendChild(ut),r.selection.setRng(AF(nn))}};return Y.some(At)}return Y.none()},Fy=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Op(g,r.getBody(),B).filter(H=>g?vW(H):ha(H)).bind(H=>H4(g?0:-1,H)).map(H=>()=>r.selection.select(H))},Vg=(r,g)=>r.selection.isCollapsed()?Fy(r,g):Y.none(),dx=Mt,Q7=r=>dx(r)&&r.data[0]===Ou,k5=r=>dx(r)&&r.data[r.data.length-1]===Ou,H7=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(Ou)},MF=r=>{var g;if(dx(r.previousSibling))return k5(r.previousSibling)||r.previousSibling.appendData(Ou),r.previousSibling;if(dx(r))return Q7(r)||r.insertData(0,Ou),r;{const B=H7(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},EF=r=>{var g,B;if(dx(r.nextSibling))return Q7(r.nextSibling)||r.nextSibling.insertData(0,Ou),r.nextSibling;if(dx(r))return k5(r)||r.appendData(Ou),r;{const H=H7(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},T5=(r,g)=>r?MF(g):EF(g),PF=U(T5,!0),RF=U(T5,!1),C5=(r,g)=>Mt(r.container())?T5(g,r.container()):T5(g,r.getNode()),pA=(r,g)=>{const B=g.get();return B&&r.container()===B&&_p(B)},Z7=(r,g)=>g.fold(B=>{$b(r.get());const H=PF(B);return r.set(H),Y.some(vo(H,H.length-1))},B=>ph(B).map(H=>{if(pA(H,r)){const oe=r.get();return vo(oe,1)}else{$b(r.get());const oe=C5(H,!0);return r.set(oe),vo(oe,1)}}),B=>Ym(B).map(H=>{if(pA(H,r)){const oe=r.get();return vo(oe,oe.length-1)}else{$b(r.get());const oe=C5(H,!1);return r.set(oe),vo(oe,oe.length-1)}}),B=>{$b(r.get());const H=RF(B);return r.set(H),Y.some(vo(H,1))}),LF=(r,g)=>{for(let B=0;B{const B=My(g,r);return B||r},DF=(r,g,B)=>{const H=QB(B),oe=IF(g,H.container());return ox(r,oe,H).fold(()=>Sp(oe,H).bind(U(ox,r,oe)).map(be=>Zp.before(be)),Y.none)},iK=(r,g)=>jb(r,g)===null,BF=(r,g,B)=>ox(r,g,B).filter(U(iK,g)),q7=(r,g,B)=>{const H=HB(B);return BF(r,g,H).bind(oe=>Up(oe,H).isNone()?Y.some(Zp.start(oe)):Y.none())},aK=(r,g,B)=>{const H=QB(B);return BF(r,g,H).bind(oe=>Sp(oe,H).isNone()?Y.some(Zp.end(oe)):Y.none())},sK=(r,g,B)=>{const H=HB(B),oe=IF(g,H.container());return ox(r,oe,H).fold(()=>Up(oe,H).bind(U(ox,r,oe)).map(be=>Zp.after(be)),Y.none)},zF=r=>!$B(W7(r)),$y=(r,g,B)=>LF([DF,q7,aK,sK],[r,g,B]).filter(zF),W7=r=>r.fold(Q,Q,Q,Q),NF=r=>r.fold($("before"),$("start"),$("end"),$("after")),mA=r=>r.fold(Zp.before,Zp.before,Zp.after,Zp.after),wS=r=>r.fold(Zp.start,Zp.start,Zp.end,Zp.end),Y7=(r,g)=>NF(r)===NF(g)&&W7(r)===W7(g),lK=(r,g,B,H,oe,be)=>zi(ox(g,B,H),ox(g,B,oe),(Le,Ke)=>Le!==Ke&&UB(B,Le,Ke)?Zp.after(r?Le:Ke):be).getOr(be),cK=(r,g)=>r.fold(q,B=>!Y7(B,g)),uK=(r,g,B,H,oe)=>{const be=Gu(r,oe);return Op(r,B,be).map(U(Gu,r)).fold(()=>H.map(mA),ut=>$y(g,B,ut).map(U(lK,r,g,B,be,ut)).filter(U(cK,H))).filter(zF)},fK=(r,g)=>r?g.fold(I(Y.some,Zp.start),Y.none,I(Y.some,Zp.after),Y.none):g.fold(Y.none,I(Y.some,Zp.before),Y.none,I(Y.some,Zp.end)),FF=(r,g,B,H)=>{const oe=Gu(r,H),be=$y(g,B,oe);return $y(g,B,oe).bind(U(fK,r)).orThunk(()=>uK(r,g,B,be,H))},dK=r=>A(r.selection.getSel().modify),$F=(r,g,B)=>{const H=r?1:-1;return g.setRng(vo(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},X7=(r,g)=>{const B=g.selection.getRng(),H=r?vo.fromRangeEnd(B):vo.fromRangeStart(B);return dK(g)?r&&s1(H)?$F(!0,g.selection,H):!r&&Um(H)?$F(!1,g.selection,H):!1:!1};var Vy;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Vy||(Vy={}));const gA=(r,g)=>r===Ef.Backwards?ke(g):g,hK=(r,g,B)=>r===Ef.Forwards?g.next(B):g.prev(B),pK=(r,g,B,H)=>gn(H.getNode(g===Ef.Forwards))?Vy.Br:hm(B,H)===!1?Vy.Block:Vy.Wrap,VF=(r,g,B,H)=>{const oe=k0(B);let be=H;const Le=[];for(;be;){const Ke=hK(g,oe,be);if(!Ke)break;if(gn(Ke.getNode(!1)))return g===Ef.Forwards?{positions:gA(g,Le).concat([Ke]),breakType:Vy.Br,breakAt:Y.some(Ke)}:{positions:gA(g,Le),breakType:Vy.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ut=pK(B,g,be,Ke);return{positions:gA(g,Le),breakType:ut,breakAt:Y.some(Ke)}}Le.push(Ke),be=Ke}return{positions:gA(g,Le),breakType:Vy.Eol,breakAt:Y.none()}},UF=(r,g,B,H)=>g(B,H).breakAt.map(oe=>{const be=g(B,oe).positions;return r===Ef.Backwards?be.concat(oe):[oe].concat(be)}).getOr([]),G7=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),oe=>zi(Ye(oe.getClientRects()),Ye(H.getClientRects()),(be,Le)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Le.left)<=Ke?H:oe}).or(B)),Y.none()),iO=(r,g)=>Ye(g.getClientRects()).bind(B=>G7(r,B.left)),W2=U(VF,vo.isAbove,-1),A5=U(VF,vo.isBelow,1),jF=U(UF,-1,W2),M5=U(UF,1,A5),QF=(r,g)=>W2(r,g).breakAt.isNone(),HF=(r,g)=>A5(r,g).breakAt.isNone(),mK=r=>ph(r).map(g=>[g].concat(A5(r,g).positions)).getOr([]),gK=r=>Ym(r).map(g=>W2(r,g).positions.concat(g)).getOr([]),vK=(r,g)=>iO(jF(r,g),g),yK=(r,g)=>iO(M5(r,g),g),bK=In,ZF=(r,g)=>Math.abs(r.left-g),qF=(r,g)=>Math.abs(r.right-g),xK=r=>cn(r,"node"),WF=(r,g)=>it(r,(B,H)=>{const oe=Math.min(ZF(B,g),qF(B,g)),be=Math.min(ZF(H,g),qF(H,g));return be===oe&&xK(H)&&bK(H.node)||be{const g=B=>ye(B,H=>{const oe=l1(H);return oe.node=r,oe});if(ne(r))return g(r.getClientRects());if(Mt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},I0=r=>$e(r,Pfe);var aO;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(aO||(aO={}));const YF=(r,g,B,H)=>{let oe=H;for(;oe=y2(oe,r,Cb,g);)if(B(oe))return},K7=(r,g,B,H,oe,be)=>{let Le=0;const Ke=[],ut=un=>{let yn=I0([un]);r===-1&&(yn=yn.reverse());for(let Qn=0;Qn0&&g(rr,Bt(Ke))&&Le++,rr.line=Le,oe(rr))return!0;Ke.push(rr)}}return!1},At=Bt(be.getClientRects());if(!At)return Ke;const nn=be.getNode();return nn&&(ut(nn),YF(r,H,ut,nn)),Ke},_K=(r,g)=>g.line>r,XF=(r,g)=>g.line===r,wK=U(K7,aO.Up,lv,fc),GF=U(K7,aO.Down,fc,lv),KF=r=>Bt(r.getClientRects()),OK=(r,g,B,H)=>{const oe=k0(g);let be,Le,Ke,ut;const At=[];let nn=0;r===1?(be=oe.next,Le=fc,Ke=lv,ut=vo.after(H)):(be=oe.prev,Le=lv,Ke=fc,ut=vo.before(H));const un=KF(ut);do{if(!ut.isVisible())continue;const yn=KF(ut);if(Ke(yn,un))continue;At.length>0&&Le(yn,Bt(At))&&nn++;const Qn=l1(yn);if(Qn.position=ut,Qn.line=nn,B(Qn))return At;At.push(Qn)}while(ut=be(ut));return At},JF=r=>g=>_K(r,g),Y2=r=>g=>XF(r,g),Uy=(r,g)=>{r.selection.setRng(g),kk(r,r.selection.getRng())},vA=(r,g,B)=>Y.some(_S(r,g,B)),J7=(r,g,B,H,oe,be)=>{const Le=g===Ef.Forwards,Ke=k0(r.getBody()),ut=U(Z4,Le?Ke.next:Ke.prev),At=Le?H:oe;if(!B.collapsed){const rr=Ah(B);if(be(rr))return Ng(g,r,rr,g===Ef.Backwards,!1);if(B7(r)){const Wn=B.cloneRange();return Wn.collapse(g===Ef.Backwards),Y.from(Wn)}}const nn=xw(g,r.getBody(),B);if(At(nn))return xS(r,nn.getNode(!Le));let un=ut(nn);const yn=Sb(B);if(un)un=Gu(Le,un);else return yn?Y.some(B):Y.none();if(At(un))return Ng(g,r,un.getNode(!Le),Le,!1);const Qn=ut(un);return Qn&&At(Qn)&&p3(un,Qn)?Ng(g,r,Qn.getNode(!Le),Le,!1):yn?vA(r,un.toRange(),!1):Y.none()},yA=(r,g,B,H,oe,be)=>{const Le=xw(g,r.getBody(),B),Ke=Bt(Le.getClientRects()),ut=g===aO.Down,At=r.getBody();if(!Ke)return Y.none();if(B7(r)){const ur=ut?vo.fromRangeEnd(B):vo.fromRangeStart(B);return(ut?yK:vK)(At,ur).orThunk(()=>Y.from(ur)).map(Wr=>Wr.toRange())}const un=(ut?GF:wK)(At,JF(1),Le),yn=Te(un,Y2(1)),Qn=Ke.left,rr=WF(yn,Qn);if(rr&&be(rr.node)){const ur=Math.abs(Qn-rr.left),Tr=Math.abs(Qn-rr.right);return Ng(g,r,rr.node,ur_S(r,ur.toRange(),!1)):Y.none()},e9=(r,g)=>{const B=r.selection.getRng(),H=g?vo.fromRangeEnd(B):vo.fromRangeStart(B),oe=f3(H.container(),r.getBody());if(g){const be=A5(oe,H);return Je(be.positions)}else{const be=W2(oe,H);return Ye(be.positions)}},e$=(r,g,B)=>e9(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),bA=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},t$=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},SK=(r,g,B)=>Z7(g,B).map(H=>(bA(r,H),B)),Rfe=(r,g,B)=>{const H=vo.fromRangeStart(r);if(r.collapsed)return H;{const oe=vo.fromRangeEnd(r);return B?Up(g,oe).getOr(oe):Sp(g,H).getOr(H)}},Lfe=(r,g,B)=>{const H=r.getBody(),oe=Rfe(r.selection.getRng(),H,B),be=U(Nw,r);return FF(B,be,H,oe).bind(Ke=>SK(r,g,Ke))},P1=(r,g,B)=>{const H=ye(Pl(_r.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Le=>Le.dom),oe=Te(H,r),be=Te(B,r);ve(Re(oe,be),U(t$,!1)),ve(Re(be,oe),U(t$,!0))},kK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=vo.fromRangeStart(r.selection.getRng());vo.isTextPosition(H)&&!jB(H)&&(bA(r,mC(B,H)),g.set(null))}},TK=(r,g,B,H)=>{if(g.selection.isCollapsed()){const oe=Te(H,r);ve(oe,be=>{const Le=vo.fromRangeStart(g.selection.getRng());$y(r,g.getBody(),Le).bind(Ke=>SK(g,B,Ke))})}},X2=(r,g,B)=>Zm(r)?Lfe(r,g,B).isSome():!1,t9=(r,g,B)=>Zm(g)?X7(r,g):!1,CK=r=>{const g=Ar(null),B=U(Nw,r);return r.on("NodeChange",H=>{Zm(r)&&(P1(B,r.dom,H.parents),kK(r,g),TK(B,r,g,H.parents))}),g},xA=U(t9,!0),AK=U(t9,!1),_A=(r,g,B)=>{if(Zm(r)){const H=e9(r,g).getOrThunk(()=>{const oe=r.selection.getRng();return g?vo.fromRangeEnd(oe):vo.fromRangeStart(oe)});return $y(U(Nw,r),r.getBody(),H).exists(oe=>{const be=mA(oe);return Z7(B,be).exists(Le=>(bA(r,Le),!0))})}else return!1},MK=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},EK=r=>zi(ph(r),Ym(r),(g,B)=>{const H=Gu(!0,g),oe=Gu(!1,B);return Sp(r,H).forall(be=>be.isEqual(oe))}).getOr(!0),n9=(r,g)=>B=>Z7(g,B).map(H=>()=>bA(r,H)),n$=(r,g,B,H)=>{const oe=r.getBody(),be=U(Nw,r);r.undoManager.ignore(()=>{r.selection.setRng(MK(B,H)),p6(r),$y(be,oe,vo.fromRangeStart(r.selection.getRng())).map(wS).bind(n9(r,g)).each(K)}),r.nodeChanged()},hx=(r,g)=>{const B=My(g,r);return B||r},PK=(r,g,B,H)=>{const oe=hx(r.getBody(),H.container()),be=U(Nw,r),Le=$y(be,oe,H);return Le.bind(ut=>B?ut.fold($(Y.some(wS(ut))),Y.none,$(Y.some(mA(ut))),Y.none):ut.fold(Y.none,$(Y.some(mA(ut))),Y.none,$(Y.some(wS(ut))))).map(n9(r,g)).getOrThunk(()=>{const ut=Ub(B,oe,H),At=ut.bind(nn=>$y(be,oe,nn));return zi(Le,At,()=>ox(be,oe,H).bind(nn=>EK(nn)?Y.some(()=>{T0(r,B,_r.fromDom(nn))}):Y.none())).getOrThunk(()=>At.bind(()=>ut.map(nn=>()=>{B?n$(r,g,H,nn):n$(r,g,nn,H)})))})},r9=(r,g,B)=>{if(r.selection.isCollapsed()&&Zm(r)){const H=vo.fromRangeStart(r.selection.getRng());return PK(r,g,B,H)}return Y.none()},RK=r=>Nu(r)>1,r$=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_r.fromDom(r.selection.getStart()),oe=k1(H,B);return Qe(oe,g).fold($(oe),be=>oe.slice(0,be))},LK=r=>Nu(r)===1,o9=r=>r$(r,g=>r.schema.isBlock(ma(g))||RK(g)),i9=r=>r$(r,g=>r.schema.isBlock(ma(g))),wA=(r,g)=>{const B=U(E6,r);return $e(g,H=>B(H)?[H.dom]:[])},a9=r=>{const g=i9(r);return wA(r,g)},o$=(r,g,B,H)=>{const oe=wA(g,H);if(oe.length===0)T0(g,r,B);else{const be=Sz(B.dom,oe);g.selection.setRng(be.toRange())}},i$=(r,g)=>{const B=Te(o9(r),LK);return Je(B).bind(H=>{const oe=vo.fromRangeStart(r.selection.getRng());return Fw(g,oe,H.dom)&&!dk(H)?Y.some(()=>o$(g,r,H,B)):Y.none()})},IK=(r,g)=>{const B=g.parentElement;return gn(g)&&!x(B)&&r.dom.isEmpty(B)},E5=r=>dk(_r.fromDom(r)),P5=(r,g)=>{const B=r.selection.getStart(),H=IK(r,B)||E5(B)?Sz(B,g):vY(r.selection.getRng(),g);r.selection.setRng(H.toRange())},a$=(r,g)=>{const B=Re(g,a9(r));B.length>0&&P5(r,B)},s9=r=>Mt(r.startContainer),s$=r=>r.startOffset===0&&s9(r),l$=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&E6(r,_r.fromDom(B))},OA=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},l9=r=>{const g=r.endContainer;return r.endOffset===(Mt(g)?g.length:g.childNodes.length)},R5=r=>OA(r)&&l9(r),DK=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),c$=r=>R5(r)||DK(r),BK=r=>{const g=r.selection.getRng();return s$(g)&&l$(r,g)&&c$(g)},zK=r=>{if(BK(r)){const g=a9(r);return Y.some(()=>{p6(r),a$(r,g)})}else return Y.none()},SA=(r,g)=>r.selection.isCollapsed()?i$(r,g):zK(r),NK=(r,g)=>Vf(r,B=>Xm(B.dom),B=>g.isBlock(ma(B))),u$=r=>NK(_r.fromDom(r.selection.getStart()),r.schema),Ife=r=>{const g=r.selection.getRng();return g.collapsed&&(s9(g)||r.dom.isEmpty(g.startContainer))&&!u$(r)},L5=r=>(Ife(r)&&P5(r,[]),!0),c9=(r,g,B)=>P(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B))}):Y.none(),FK=(r,g)=>{const B=g?Y3:X3,H=g?Ef.Forwards:Ef.Backwards,oe=xw(H,r.getBody(),r.selection.getRng());return B(oe)?c9(r,g,oe.getNode(!g)):Y.from(Gu(g,oe)).filter(be=>B(be)&&p3(oe,be)).bind(be=>c9(r,g,be.getNode(!g)))},$K=(r,g)=>{const B=r.selection.getNode();return Gr(B)?c9(r,g,B):Y.none()},u9=(r,g)=>r.selection.isCollapsed()?FK(r,g):$K(r,g),VK=r=>cl(r,g=>pn(g.dom)||In(g.dom)).exists(g=>pn(g.dom)),f9=r=>eo(r??"").getOr(0),f$=(r,g)=>{const B=r||$m(g)?"margin":"padding",H=rs(g,"direction")==="rtl"?"-right":"-left";return B+H},d$=(r,g,B,H,oe,be)=>{const Le=f$(B,_r.fromDom(be)),Ke=f9(r.getStyle(be,Le));if(g==="outdent"){const ut=Math.max(0,Ke-H);r.setStyle(be,Le,ut?ut+oe:"")}else{const ut=Ke+H+oe;r.setStyle(be,Le,ut)}},UK=(r,g)=>Oe(g,B=>{const H=f$(by(r),B),oe=Ri(B,H).map(f9).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&oe>0}),G2=r=>{const g=p9(r);return!r.mode.isReadOnly()&&(g.length>1||UK(r,g))},d9=r=>d0(r)||av(r),h9=r=>jc(r).exists(d9),p9=r=>Te(xu(r.selection.getSelectedBlocks()),g=>!d9(g)&&!h9(g)&&VK(g)),kA=(r,g)=>{var B,H;const{dom:oe}=r,be=x0(r),Le=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=f9(be),ut=by(r);ve(p9(r),At=>{d$(oe,g,ut,Ke,Le,At.dom)})},K2=r=>kA(r,"indent"),m9=r=>kA(r,"outdent"),Ug=r=>{if(r.selection.isCollapsed()&&G2(r)){const g=r.dom,B=r.selection.getRng(),H=vo.fromRangeStart(B),oe=g.getParent(B.startContainer,g.isBlock);if(oe!==null&&Ka(_r.fromDom(oe),H,r.schema))return Y.some(()=>m9(r))}return Y.none()},J2=(r,g,B)=>Fe([Ug,S5,Ny,(H,oe)=>r9(H,g,oe),ux,$k,Vg,u9,dA,SA,j7],H=>H(r,B)).filter(H=>r.selection.isEditable()),g9=(r,g)=>{J2(r,g,!1).fold(()=>{r.selection.isEditable()&&(p6(r),J3(r))},K)},jK=(r,g)=>{J2(r,g,!0).fold(()=>{r.selection.isEditable()&&B2(r)},K)},h$=(r,g)=>{r.addCommand("delete",()=>{g9(r,g)}),r.addCommand("forwardDelete",()=>{jK(r,g)})},p$=5,QK=400,m$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),HK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>p$||H>p$},ZK=r=>{const g=Ts(),B=Ar(!1),H=jh(oe=>{r.dispatch("longpress",{...oe,type:"longpress"}),B.set(!0)},QK);r.on("touchstart",oe=>{m$(oe).each(be=>{H.cancel();const Le={x:be.clientX,y:be.clientY,target:oe.target};H.throttle(oe),B.set(!1),g.set(Le)})},!0),r.on("touchmove",oe=>{H.cancel(),m$(oe).each(be=>{g.on(Le=>{HK(be,Le)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",oe=>{H.cancel(),oe.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(oe.target)).each(()=>{B.get()?oe.preventDefault():r.dispatch("tap",{...oe,type:"tap"})})},!0)},TA=(r,g)=>Ot(r,g.nodeName),qK=(r,g)=>Mt(g)?!0:ne(g)?!TA(r.getBlockElements(),g)&&!pm(g)&&!lh(r,g)&&!ys(g):!1,WK=(r,g,B)=>de(wB(_r.fromDom(B),_r.fromDom(g)),H=>TA(r,H.dom)),OS=(r,g)=>{if(Mt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||TA(r,g.nextSibling)||ys(g.nextSibling)}return!1},SS=r=>r.dom.create(tu(r),qd(r)),g$=r=>{const g=r.dom,B=r.selection,H=r.schema,oe=H.getBlockElements(),be=B.getStart(),Le=r.getBody();let Ke,ut,At=null;const nn=tu(r);if(!be||!ne(be))return;const un=Le.nodeName.toLowerCase();if(!H.isValidChild(un,nn.toLowerCase())||WK(oe,Le,be))return;if(Le.firstChild===Le.lastChild&&gn(Le.firstChild)){Ke=SS(r),Ke.appendChild(sv().dom),Le.replaceChild(Ke,Le.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let yn=Le.firstChild;for(;yn;)if(ne(yn)&&ul(H,yn),qK(H,yn)){if(OS(oe,yn)){ut=yn,yn=yn.nextSibling,g.remove(ut);continue}if(!Ke){if(!At&&r.hasFocus()&&(At=hA(r.selection.getRng(),()=>document.createElement("span"))),!yn.parentNode){yn=null;break}Ke=SS(r),Le.insertBefore(Ke,yn)}ut=yn,yn=yn.nextSibling,Ke.appendChild(ut)}else Ke=null,yn=yn.nextSibling;At&&(r.selection.setRng(AF(At)),r.nodeChanged())},v9=(r,g,B)=>{const H=_r.fromDom(SS(r)),oe=sv();ii(H,oe),B(g,H);const be=document.createRange();return be.setStartBefore(oe.dom),be.setEndBefore(oe.dom),be},y9=r=>{r.on("NodeChange",()=>g$(r))},v$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,YK=(r,g,B)=>function(H){const oe=arguments,be=oe[oe.length-2],Le=be>0?g.charAt(be-1):"";if(Le==='"')return H;if(Le===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof oe[1]=="string"?oe[1]:oe[0])+""},XK=(r,g,B)=>{let H=g.length,oe=B.content;if(B.format!=="raw"){for(;H--;)oe=oe.replace(g[H],YK(r,oe,pw(r)));B.content=oe}},GK=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),KK=r=>{const g="contenteditable",B=" "+To.trim(mw(r))+" ",H=" "+To.trim(pw(r))+" ",oe=v$(B),be=v$(H),Le=wp(r);Le.length>0&&r.on("BeforeSetContent",Ke=>{XK(r,Le,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];oe(At)?At.attr(g,"true"):be(At)&&At.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];if(!oe(At)&&!be(At))continue;const nn=At.attr("data-mce-content");Le.length>0&&nn?GK(Le,nn)?(At.name="#text",At.type=3,At.raw=!0,At.value=nn):At.remove():At.attr(g,null)}})},JK=r=>wi(_r.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),y$=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ch(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},b$=(r,g)=>{const B=JK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),y$(r,B);return}GO(B)&&(y$(r,B),r.undoManager.add())}},eJ=r=>{r.on("keyup compositionstart",U(b$,r))},x$=In,jg=(r,g,B)=>J7(g,r,B,I2,D2,x$),tJ=(r,g,B)=>yA(g,r,B,be=>I2(be)||_B(be),be=>D2(be)||Ek(be),x$),b9=r=>{const g=r.dom.create(tu(r));return g.innerHTML='
    ',g},x9=(r,g,B)=>{const H=k0(r.getBody()),oe=U(Z4,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!oe(vo.fromRangeStart(B))){const Ke=_r.fromDom(b9(r));g===1?Kc(_r.fromDom(be),Ke):xc(_r.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},_9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return jg(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},nJ=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return tJ(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},rJ=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return $B(B)?!g:g},_$=(r,g)=>_9(r,rJ(r.selection,g)).exists(B=>(Uy(r,B),!0)),w$=(r,g)=>nJ(r,g).exists(B=>(Uy(r,B),!0)),O$=(r,g)=>e$(r,g,g?D2:I2),I5=(r,g)=>Fg(r,!g).map(B=>{const H=B.toRange(),oe=r.selection.getRng();return g?H.setStart(oe.startContainer,oe.startOffset):H.setEnd(oe.endContainer,oe.endOffset),H}).exists(B=>(Uy(r,B),!0)),oJ=r=>ce(["figcaption"],ma(r)),iJ=(r,g,B)=>{const H=U(va,g);return cl(_r.fromDom(r.container()),oe=>B.isBlock(ma(oe)),H).filter(oJ)},D5=(r,g,B)=>g?HF(r.dom,B):QF(r.dom,B),px=(r,g)=>{const B=_r.fromDom(r.getBody()),H=vo.fromRangeStart(r.selection.getRng());return iJ(H,B,r.schema).exists(()=>{if(D5(B,g,H)){const be=v9(r,B,g?ii:jd);return r.selection.setRng(be),!0}else return!1})},e_=(r,g)=>r.selection.isCollapsed()?px(r,g):!1,CA=(r,g,B)=>{const H=r.selection.getRng(),oe=vo.fromRangeStart(H);return r.getBody().firstChild===g&&QF(B,oe)?(r.execCommand("InsertNewBlockBefore"),!0):!1},w9=(r,g)=>{const B=r.selection.getRng(),H=vo.fromRangeStart(B);return r.getBody().lastChild===g&&HF(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},O9=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>w9(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>CA(r,H,B))).getOr(!1),S9=(r,g)=>O9(r,g),S$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},k$=r=>ye(r,g=>({...S$,...g})),T$=r=>ye(r,g=>({...S$,...g})),C$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,aJ=(r,g)=>$e(k$(r),B=>C$(B,g)?[B]:[]),sJ=(r,g)=>$e(T$(r),B=>C$(B,g)?[B]:[]),$a=(r,...g)=>()=>r.apply(null,g),B5=(r,g)=>De(aJ(r,g),B=>B.action()),A$=(r,g)=>Fe(sJ(r,g),B=>B.action()),k9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return J7(r,B,H,Y3,X3,Gr).exists(oe=>(Uy(r,oe),!0))},T9=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return yA(r,B,H,Y3,X3,Gr).exists(oe=>(Uy(r,oe),!0))},lJ=(r,g)=>e$(r,g,g?X3:Y3),cJ=kl.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),z5={...cJ,none:r=>cJ.none(r)},Dfe=(r,g)=>uJ(r,g,q),uJ=(r,g,B)=>$e(vc(r),H=>yd(H,g)?B(H)?[H]:[]:uJ(H,g,B)),fJ=(r,g,B=re)=>{if(B(g))return Y.none();if(ce(r,ma(g)))return Y.some(g);const H=oe=>yd(oe,"table")||B(oe);return ts(g,r.join(","),H)},dJ=(r,g)=>fJ(["td","th"],r,g),Bfe=r=>Dfe(r,"th,td"),M$=(r,g)=>bu(r,"table",g),Tp=(r,g,B,H,oe=q)=>{const be=H===1;if(!be&&B<=0)return z5.first(r[0]);if(be&&B>=r.length-1)return z5.last(r[r.length-1]);{const Le=B+H,Ke=r[Le];return oe(Ke)?z5.middle(g,Ke):Tp(r,g,Le,H,oe)}},C9=(r,g)=>M$(r,g).bind(B=>{const H=Bfe(B);return Qe(H,be=>va(r,be)).map(be=>({index:be,all:H}))}),N5=(r,g,B)=>C9(r,B).fold(()=>z5.none(r),oe=>Tp(oe.all,r,oe.index,1,g)),hJ=(r,g,B)=>C9(r,B).fold(()=>z5.none(),oe=>Tp(oe.all,r,oe.index,-1,g)),E$=r=>iv(r).filter(g=>g.trim().length!==0||g.indexOf(Pc)>-1).isSome(),P$=r=>Al(r)&&gu(r,"contenteditable")==="false",A9=["img","br"],pJ=r=>E$(r)||ce(A9,ma(r))||P$(r),mJ=r=>Qc(r,pJ),R$=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),gJ=(r,g)=>$e(g,B=>{const H=R$(l1(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),vJ=(r,g,B)=>Ie(r,(H,oe)=>H.fold(()=>Y.some(oe),be=>{const Le=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(oe.x-g)+Math.abs(oe.y-B));return Y.some(Ke{const be=Pl(_r.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Le=Te(gJ(r,be),Ke=>g(Ke,oe));return vJ(Le,H,oe).map(Ke=>Ke.cell)},M9=r=>r.bottom,yJ=r=>r.top,bJ=(r,g)=>r.yr.y>g,xJ=U(L$,M9,bJ),I$=U(L$,yJ,zfe),Nfe=(r,g)=>Ye(g.getClientRects()).bind(B=>xJ(r,B.left,B.top)).bind(B=>iO(gK(B),g)),_J=(r,g)=>Je(g.getClientRects()).bind(B=>I$(r,B.left,B.top)).bind(B=>iO(mK(B),g)),wJ=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),OJ=r=>r.breakType===Vy.Wrap&&r.positions.length===0,E9=r=>r.breakType===Vy.Br&&r.positions.length===1,F5=(r,g,B)=>{const H=r(g,B);return OJ(H)||!gn(B.getNode())&&E9(H)?!wJ(r,g,H):H.breakAt.isNone()},D$=U(F5,W2),B$=U(F5,A5),SJ=(r,g,B)=>{const H=vo.fromRangeStart(g);return Py(!r,B).exists(oe=>oe.isEqual(H))},kJ=(r,g,B,H)=>{const oe=r.selection.getRng(),be=g?1:-1;return NM()&&SJ(g,oe,B)?(Ng(be,r,B,!g,!1).each(Le=>{Uy(r,Le)}),!0):!1},P9=(r,g,B)=>Nfe(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(jF(r,vo.before(g)),H.left))).getOr(vo.before(g)),TJ=(r,g,B)=>_J(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(M5(r,vo.after(g)),H.left))).getOr(vo.after(g)),z$=(r,g)=>{const B=g.getNode(r);return dt(B)?Y.some(B):Y.none()},CJ=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?Kc:xc,oe=v9(g,_r.fromDom(B),H);Uy(g,oe)})},N$=(r,g,B)=>{const H=z$(!!g,B),oe=g===!1;H.fold(()=>Uy(r,B.toRange()),be=>Py(oe,r.getBody()).filter(Le=>Le.isEqual(B)).fold(()=>Uy(r,B.toRange()),Le=>CJ(g,r,be)))},R1=(r,g,B,H)=>{const oe=r.selection.getRng(),be=vo.fromRangeStart(oe),Le=r.getBody();if(!g&&D$(H,be)){const Ke=P9(Le,B,be);return N$(r,g,Ke),!0}else if(g&&B$(H,be)){const Ke=TJ(Le,B,be);return N$(r,g,Ke),!0}else return!1},R9=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(oe=>B(r,g,oe,H))).getOr(!1),L9=(r,g)=>R9(r,g,kJ),F$=(r,g)=>R9(r,g,R1),Ffe=r=>{const g=E2.exact(r,0,r,0);return Ce(g)},AJ=(r,g,B)=>B.fold(Y.none,Y.none,(H,oe)=>mJ(oe).map(be=>Ffe(be)),H=>(r.execCommand("mceTableInsertRowAfter"),MJ(r,g,H))),MJ=(r,g,B)=>AJ(r,g,N5(B,Ol)),EJ=(r,g,B)=>AJ(r,g,hJ(B,Ol)),$5=(r,g)=>{const B=["table","li","dl"],H=_r.fromDom(r.getBody()),oe=Ke=>{const ut=ma(Ke);return va(Ke,H)||ce(B,ut)},be=r.selection.getRng(),Le=_r.fromDom(g?be.endContainer:be.startContainer);return dJ(Le,oe).map(Ke=>(M$(Ke,oe).each(nn=>{r.model.table.clearSelectedCells(nn.dom)}),r.selection.collapse(!g),(g?MJ:EJ)(r,oe,Ke).each(nn=>{r.selection.setRng(nn)}),!0)).getOr(!1)},PJ=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.RIGHT,action:$a(_$,r,!0)},{keyCode:Jo.LEFT,action:$a(_$,r,!1)},{keyCode:Jo.UP,action:$a(w$,r,!1)},{keyCode:Jo.DOWN,action:$a(w$,r,!0)},...H?[{keyCode:Jo.UP,action:$a(I5,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Jo.DOWN,action:$a(I5,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Jo.RIGHT,action:$a(L9,r,!0)},{keyCode:Jo.LEFT,action:$a(L9,r,!1)},{keyCode:Jo.UP,action:$a(F$,r,!1)},{keyCode:Jo.DOWN,action:$a(F$,r,!0)},{keyCode:Jo.UP,action:$a(F$,r,!1)},{keyCode:Jo.UP,action:$a(S9,r,!1)},{keyCode:Jo.DOWN,action:$a(S9,r,!0)},{keyCode:Jo.RIGHT,action:$a(k9,r,!0)},{keyCode:Jo.LEFT,action:$a(k9,r,!1)},{keyCode:Jo.UP,action:$a(T9,r,!1)},{keyCode:Jo.DOWN,action:$a(T9,r,!0)},{keyCode:Jo.RIGHT,action:$a(X2,r,g,!0)},{keyCode:Jo.LEFT,action:$a(X2,r,g,!1)},{keyCode:Jo.RIGHT,ctrlKey:!H,altKey:H,action:$a(xA,r,g)},{keyCode:Jo.LEFT,ctrlKey:!H,altKey:H,action:$a(AK,r,g)},{keyCode:Jo.UP,action:$a(e_,r,!1)},{keyCode:Jo.DOWN,action:$a(e_,r,!0)}],B).each(oe=>{B.preventDefault()})},I9=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||PJ(r,g,B)})},L1=(r,g)=>({container:r,offset:g}),V5=cc.DOM,U5=r=>g=>r===g?-1:0,RJ=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",D9=(r,g,B)=>{if(Mt(r)&&g>=0)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.backwards(r,g,U5(r),B)).map(oe=>L1(oe.container,oe.container.data.length))}},LJ=(r,g,B)=>{if(Mt(r)&&g>=r.length)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.forwards(r,g,U5(r),B)).map(oe=>L1(oe.container,0))}},B9=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.backwards(r,g,U5(r),B)).bind(be=>{const Le=be.container.data;return B9(be.container,g+Le.length,B)})}},j5=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.forwards(r,g,U5(r),B)).bind(be=>j5(be.container,g-H.length,B))}},z9=(r,g,B,H,oe)=>{const be=Cg(r,RJ(r));return Y.from(be.backwards(g,B,H,oe))},IJ=r=>r.collapsed&&Mt(r.startContainer),DJ=r=>Sd(r.toString().replace(/\u00A0/g," ")),AA=r=>r!==""&&`  \f -\r \v`.indexOf(r)!==-1,BJ=(r,g)=>r.substring(g.length),zJ=(r,g,B,H=!1)=>{let oe;const be=B.charAt(0);for(oe=g-1;oe>=0;oe--){const Le=r.charAt(oe);if(!H&&AA(Le))return Y.none();if(be===Le&&tr(r,B,oe,g))break}return Y.some(oe)},MA=(r,g,B,H=!1)=>{if(!IJ(g))return Y.none();const oe={text:"",offset:0},be=(Ke,ut,At)=>(oe.text=At+oe.text,oe.offset+=ut,zJ(oe.text,oe.offset,B,H).getOr(ut)),Le=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return z9(r,g.startContainer,g.startOffset,be,Le).bind(Ke=>{const ut=g.cloneRange();if(ut.setStart(Ke.container,Ke.offset),ut.setEnd(g.endContainer,g.endOffset),ut.collapsed)return Y.none();const At=DJ(ut);return At.lastIndexOf(B)!==0?Y.none():Y.some({text:BJ(At,B),range:ut,trigger:B})})},NJ=r=>r.nodeType===_s,FJ=r=>r.nodeType===zf,$$=r=>{if(NJ(r))return L1(r,r.data.length);{const g=r.childNodes;return g.length>0?$$(g[g.length-1]):L1(r,g.length)}},V$=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&FJ(r)&&B.length===g?$$(B[B.length-1]):L1(r,g)},$J=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return z9(r,g.container,g.offset,(oe,be)=>be===0?-1:be,H).filter(oe=>{const be=oe.container.data.charAt(oe.offset-1);return!AA(be)}).isSome()},VJ=r=>g=>{const B=V$(g.startContainer,g.startOffset);return!$J(r,B)},N9=(r,g,B)=>Fe(B.triggers,H=>MA(r,g,H)),UJ=(r,g)=>{const B=g(),H=r.selection.getRng();return N9(r.dom,H,B).bind(oe=>F9(r,g,oe))},F9=(r,g,B,H={})=>{var oe;const be=g(),Ke=(oe=r.selection.getRng().startContainer.nodeValue)!==null&&oe!==void 0?oe:"",ut=Te(be.lookupByTrigger(B.trigger),nn=>B.text.length>=nn.minChars&&nn.matches.getOrThunk(()=>VJ(r.dom))(B.range,Ke,B.text));if(ut.length===0)return Y.none();const At=Promise.all(ye(ut,nn=>nn.fetch(B.text,nn.maxResults,H).then(yn=>({matchText:B.text,items:yn,columns:nn.columns,onAction:nn.onAction,highlightOn:nn.highlightOn}))));return Y.some({lookupData:At,context:B})};var Bv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Bv||(Bv={}));const $9=(r,g,B)=>r.stype===Bv.Error?g(r.serror):B(r.svalue),jJ=r=>{const g=[],B=[];return ve(r,H=>{$9(H,oe=>B.push(oe),oe=>g.push(oe))}),{values:g,errors:B}},QJ=(r,g)=>r.stype===Bv.Error?{stype:Bv.Error,serror:g(r.serror)}:r,HJ=(r,g)=>r.stype===Bv.Value?{stype:Bv.Value,svalue:g(r.svalue)}:r,ZJ=(r,g)=>r.stype===Bv.Value?g(r.svalue):r,Dd=(r,g)=>r.stype===Bv.Error?g(r.serror):r,U$=r=>({stype:Bv.Value,svalue:r}),j$=r=>({stype:Bv.Error,serror:r}),vh={fromResult:r=>r.fold(j$,U$),toResult:r=>$9(r,Vs.error,Vs.value),svalue:U$,partition:jJ,serror:j$,bind:ZJ,bindError:Dd,map:HJ,mapError:QJ,fold:$9},EA=r=>_(r)&&tt(r).length>100?" removed due to size":JSON.stringify(r,null,2),t_=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ye(g,B=>"Failed path: ("+B.path.join(" > ")+`) -`+B.getErrorInfo())},kS=(r,g)=>vh.serror([{path:r,getErrorInfo:g}]),Q$=(r,g,B)=>kS(r,()=>'Could not find valid *required* value for "'+g+'" in '+EA(B)),V9=(r,g)=>kS(r,()=>'Choice schema did not contain choice key: "'+g+'"'),U9=(r,g,B)=>kS(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+EA(g)),j9=(r,g)=>kS(r,$(g)),H$=(r,g,B,H)=>Et(B,H).fold(()=>U9(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),PA=(r,g)=>({extract:(oe,be)=>Et(be,r).fold(()=>V9(oe,r),Ke=>H$(oe,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+tt(g)}),RA=(r,g)=>g,Q5=(r,g)=>O(r)&&O(g)?ng(r,g):g,TS=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),Z$=r=>({tag:"defaultedThunk",process:r}),q$=r=>Z$($(r)),W$=()=>({tag:"option",process:{}}),WJ=(r,g)=>r.length>0?vh.svalue(ng(g,CS.apply(void 0,r))):vh.svalue(g),Y$=r=>I(vh.serror,Ve)(r),YJ={consolidateObj:(r,g)=>{const B=vh.partition(r);return B.errors.length>0?Y$(B.errors):WJ(B.values,g)},consolidateArr:r=>{const g=vh.partition(r);return g.errors.length>0?Y$(g.errors):vh.svalue(g.values)}},XJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),GJ=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),X$=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},H9=r=>{const g=(H,oe)=>vh.bindError(r(oe),be=>j9(H,be)),B=$("val");return{extract:g,toString:B}},KJ=H9(vh.svalue),JJ=(r,g,B,H)=>Et(g,B).fold(()=>Q$(r,B,g),H),G$=(r,g,B,H)=>{const oe=Et(r,g).getOrThunk(()=>B(r));return H(oe)},eee=(r,g,B)=>B(Et(r,g)),tee=(r,g,B,H)=>{const oe=Et(r,g).map(be=>be===!0?B(r):be);return H(oe)},nee=(r,g,B,H,oe)=>{const be=Ke=>oe.extract(g.concat([H]),Ke),Le=Ke=>Ke.fold(()=>vh.svalue(Y.none()),ut=>{const At=oe.extract(g.concat([H]),ut);return vh.map(At,Y.some)});switch(r.tag){case"required":return JJ(g,B,H,be);case"defaultedThunk":return G$(B,H,r.process,be);case"option":return eee(B,H,Le);case"defaultedOptionThunk":return tee(B,H,r.process,Le);case"mergeWithThunk":return G$(B,H,$({}),Ke=>{const ut=ng(r.process(B),Ke);return be(ut)})}},ree=(r,g,B)=>{const H={},oe=[];for(const be of B)X$(be,(Le,Ke,ut,At)=>{const nn=nee(ut,r,g,Le,At);vh.fold(nn,un=>{oe.push(...un)},un=>{H[Ke]=un})},(Le,Ke)=>{H[Le]=Ke(g)});return oe.length>0?vh.serror(oe):vh.svalue(H)},Z9=r=>({extract:(H,oe)=>ree(H,oe,r),toString:()=>`obj{ -`+ye(r,oe=>X$(oe,(be,Le,Ke,ut)=>be+" -> "+ut.toString(),(be,Le)=>"state("+be+")")).join(` -`)+"}"}),q9=r=>({extract:(H,oe)=>{const be=ye(oe,(Le,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Le));return YJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),K$=r=>H9(g=>r(g).fold(vh.serror,vh.svalue)),J$=(r,g,B)=>{const H=g.extract([r],B);return vh.mapError(H,oe=>({input:B,errors:oe}))},oee=(r,g,B)=>vh.toResult(J$(r,g,B)),iee=r=>`Errors: +Options:${Le}${B.join(Le)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ut)}},oG=(r,g)=>{nG(r,g),rG(r,g)},aA=cc.DOM,iG=r=>{aA.setStyle(r.id,"display",r.orgDisplay)},sA=r=>Y.from(r).each(g=>g.destroy()),rF=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},aG=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),aA.unbind(g,"submit reset",r.formEventDelegate))},sG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),oe=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&P(oe==null?void 0:oe.nextSibling)&&aA.remove(oe.nextSibling),F3(r),r.editorManager.remove(r),!r.inline&&H&&iG(r),eE(r),aA.remove(r.getContainer()),sA(g),sA(B),r.destroy()}},lG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),sA(B),sA(H)),aG(r),rF(r),r.destroyed=!0}},lA=(()=>{const r={};return{add:(oe,be)=>{r[oe]=be},get:oe=>r[oe]?r[oe]:{icons:{}},has:oe=>Ot(r,oe)}})(),pS=fh.ModelManager,S7=(r,g)=>g.dom[r],cA=(r,g)=>parseInt(rs(g,r),10),cG=U(S7,"clientWidth"),uG=U(S7,"clientHeight"),Mfe=U(cA,"margin-top"),fG=U(cA,"margin-left"),f5=r=>r.dom.getBoundingClientRect(),oF=(r,g,B)=>{const H=cG(r),oe=uG(r);return g>=0&&B>=0&&g<=H&&B<=oe},iF=(r,g,B,H)=>{const oe=f5(g),be=r?oe.left+g.dom.clientLeft+fG(g):0,Le=r?oe.top+g.dom.clientTop+Mfe(g):0,Ke=B-be,ut=H-Le;return{x:Ke,y:ut}},dG=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.inline?H:ih(H),be=iF(r.inline,oe,g,B);return oF(oe,be.x,be.y)},aF=r=>Y.from(r).map(_r.fromDom),hG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return aF(g).map(lf).getOr(!1)};var pG=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const sF=r=>{const g=[],B=()=>{const yn=r.theme;return yn&&yn.getNotificationManagerImpl?yn.getNotificationManagerImpl():pG()},H=()=>Y.from(g[0]),oe=(yn,Qn)=>yn.type===Qn.type&&yn.text===Qn.text&&!yn.progressBar&&!yn.timeout&&!Qn.progressBar&&!Qn.timeout,be=()=>{H().each(yn=>{yn.reposition()})},Le=yn=>{g.push(yn)},Ke=yn=>{Qe(g,Qn=>Qn===yn).each(Qn=>{g.splice(Qn,1)})},ut=(yn,Qn=!0)=>r.removed||!hG(r)?{}:(Qn&&r.dispatch("BeforeOpenNotification",{notification:yn}),De(g,rr=>oe(B().getArgs(rr),yn)).getOrThunk(()=>{r.editorManager.setActive(r);const rr=B().open(yn,()=>{Ke(rr)},()=>KD(r));return Le(rr),be(),r.dispatch("OpenNotification",{notification:{...rr}}),rr})),At=()=>{H().each(yn=>{B().close(yn),Ke(yn),be()})},nn=$(g);return(yn=>{yn.on("SkinLoaded",()=>{const Qn=Wd(yn);Qn&&ut({text:Qn,type:"warning",timeout:0},!1),be()}),yn.on("show ResizeEditor ResizeWindow NodeChange ToggleView FullscreenStateChanged",()=>{requestAnimationFrame(be)}),yn.on("remove",()=>{ve(g.slice(),Qn=>{B().close(Qn)})}),yn.addShortcut("alt+F12","Focus to notification",()=>H().map(Qn=>_r.fromDom(Qn.getEl())).each(Qn=>Z3(Qn)))})(r),{open:ut,close:At,getNotifications:nn}},mS=fh.PluginManager,Q2=fh.ThemeManager;var mG=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const lF=r=>{let g=[];const B=()=>{const Wn=r.theme;return Wn&&Wn.getWindowManagerImpl?Wn.getWindowManagerImpl():mG()},H=(Wn,ur)=>(...Tr)=>ur?ur.apply(Wn,Tr):void 0,oe=Wn=>{r.dispatch("OpenWindow",{dialog:Wn})},be=Wn=>{r.dispatch("CloseWindow",{dialog:Wn})},Le=Wn=>{g.push(Wn),oe(Wn)},Ke=Wn=>{be(Wn),g=Te(g,ur=>ur!==Wn),g.length===0&&r.focus()},ut=()=>Y.from(g[g.length-1]),At=Wn=>{r.editorManager.setActive(r),Tk(r),r.ui.show();const ur=Wn();return Le(ur),ur},nn=(Wn,ur)=>At(()=>B().open(Wn,ur,Ke)),un=Wn=>At(()=>B().openUrl(Wn,Ke)),yn=(Wn,ur,Tr)=>{const Wr=B();Wr.alert(Wn,H(Tr||Wr,ur))},Qn=(Wn,ur,Tr)=>{const Wr=B();Wr.confirm(Wn,H(Tr||Wr,ur))},rr=()=>{ut().each(Wn=>{B().close(Wn),Ke(Wn)})};return r.on("remove",()=>{ve(g,Wn=>{B().close(Wn)})}),{open:nn,openUrl:un,alert:yn,confirm:Qn,close:rr}},gS=(r,g)=>{r.notificationManager.open({type:"error",text:g})},d5=(r,g)=>{r._skinLoaded?gS(r,g):r.on("SkinLoaded",()=>{gS(r,g)})},cF=(r,g)=>{d5(r,ff.translate(["Failed to upload image: {0}",g]))},h5=(r,g,B)=>{mh(r,g,{message:B}),console.error(B)},p5=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,gG=(r,g,B)=>{h5(r,"PluginLoadError",p5("plugin",g,B))},uF=(r,g,B)=>{h5(r,"IconsLoadError",p5("icons",g,B))},vG=(r,g,B)=>{h5(r,"LanguageLoadError",p5("language",g,B))},yG=(r,g,B)=>{h5(r,"ThemeLoadError",p5("theme",g,B))},bG=(r,g,B)=>{h5(r,"ModelLoadError",p5("model",g,B))},xG=(r,g,B)=>{const H=ff.translate(["Failed to initialize plugin: {0}",g]);mh(r,"PluginLoadError",{message:H}),k7(H,B),d5(r,H)},k7=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},Iv=r=>/^[a-z0-9\-]+$/i.test(r),m5=r=>"content/"+r+"/content.css",_G=r=>tinymce.Resource.has(m5(r)),wG=r=>fF(r,r2(r)),OG=r=>fF(r,Ad(r)),fF=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",oe=`content${r.editorManager.suffix}.css`;return ye(g,be=>_G(be)?be:Iv(be)&&!r.inline?`${B}/${be}/${oe}`:r.documentBaseURI.toAbsolute(be))},Il=r=>{r.contentCSS=r.contentCSS.concat(wG(r),OG(r))},SG=r=>r?Me(r.getElementsByTagName("img")):[],g5=(r,g)=>{const B={};return{findAll:(oe,be=q)=>{const Le=Te(SG(oe),ut=>{const At=ut.src;return ut.hasAttribute("data-mce-bogus")||ut.hasAttribute("data-mce-placeholder")||!At||At===Nr.transparentSrc?!1:Br(At,"blob:")?!r.isUploaded(At)&&be(ut):Br(At,"data:")?be(ut):!1}),Ke=ye(Le,ut=>{const At=ut.src;if(Ot(B,At))return B[At].then(nn=>v(nn)?nn:{image:ut,blobInfo:nn.blobInfo});{const nn=zY(g,At).then(un=>(delete B[At],{image:ut,blobInfo:un})).catch(un=>(delete B[At],un));return B[At]=nn,nn}});return Promise.all(Ke)}}},dF=()=>{let B={};const H=(yn,Qn)=>({status:yn,resultUri:Qn}),oe=yn=>yn in B;return{hasBlobUri:oe,getResultUri:yn=>{const Qn=B[yn];return Qn?Qn.resultUri:null},isPending:yn=>oe(yn)?B[yn].status===1:!1,isUploaded:yn=>oe(yn)?B[yn].status===2:!1,markPending:yn=>{B[yn]=H(1,null)},markUploaded:(yn,Qn)=>{B[yn]=H(2,Qn)},removeFailed:yn=>{delete B[yn]},destroy:()=>{B={}}}};let kG=0;const TG=()=>{const r=()=>Math.round(G_()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},hF=r=>r+kG+++TG(),H2=()=>{let r=[];const g=un=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[un.toLowerCase()]||"dat",B=(un,yn,Qn,rr,Wn)=>{if(v(un))return H({id:un,name:rr,filename:Wn,blob:yn,base64:Qn});if(_(un))return H(un);throw new Error("Unknown input type")},H=un=>{if(!un.blob||!un.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const yn=un.id||hF("blobid"),Qn=un.name||yn,rr=un.blob;return{id:$(yn),name:$(Qn),filename:$(un.filename||Qn+"."+g(rr.type)),blob:$(rr),base64:$(un.base64),blobUri:$(un.blobUri||URL.createObjectURL(rr)),uri:$(un.uri)}},oe=un=>{Le(un.id())||r.push(un)},be=un=>De(r,un).getOrUndefined(),Le=un=>be(yn=>yn.id()===un);return{create:B,add:oe,get:Le,getByUri:un=>be(yn=>yn.blobUri()===un),getByData:(un,yn)=>be(Qn=>Qn.base64()===un&&Qn.blob().type===yn),findFirst:be,removeByUri:un=>{r=Te(r,yn=>yn.blobUri()===un?(URL.revokeObjectURL(yn.blobUri()),!1):!0)},destroy:()=>{ve(r,un=>{URL.revokeObjectURL(un.blobUri())}),r=[]}}},xm=(r,g)=>{const B={},H=(Wn,ur)=>Wn?Wn.replace(/\/$/,"")+"/"+ur.replace(/^\//,""):ur,oe=(Wn,ur)=>new Promise((Tr,Wr)=>{const Qr=new XMLHttpRequest;Qr.open("POST",g.url),Qr.withCredentials=g.credentials,Qr.upload.onprogress=Zo=>{ur(Zo.loaded/Zo.total*100)},Qr.onerror=()=>{Wr("Image upload failed due to a XHR Transport error. Code: "+Qr.status)},Qr.onload=()=>{if(Qr.status<200||Qr.status>=300){Wr("HTTP Error: "+Qr.status);return}const Zo=JSON.parse(Qr.responseText);if(!Zo||!v(Zo.location)){Wr("Invalid JSON: "+Qr.responseText);return}Tr(H(g.basePath,Zo.location))};const lo=new FormData;lo.append("file",Wn.blob(),Wn.filename()),Qr.send(lo)}),be=A(g.handler)?g.handler:oe,Le=()=>new Promise(Wn=>{Wn([])}),Ke=(Wn,ur)=>({url:ur,blobInfo:Wn,status:!0}),ut=(Wn,ur)=>({url:"",blobInfo:Wn,status:!1,error:ur}),At=(Wn,ur)=>{To.each(B[Wn],Tr=>{Tr(ur)}),delete B[Wn]},nn=(Wn,ur,Tr)=>(r.markPending(Wn.blobUri()),new Promise(Wr=>{let Qr,lo;try{const Zo=()=>{Qr&&(Qr.close(),lo=k)},li=Co=>{Zo(),r.markUploaded(Wn.blobUri(),Co),At(Wn.blobUri(),Ke(Wn,Co)),Wr(Ke(Wn,Co))},Mi=Co=>{Zo(),r.removeFailed(Wn.blobUri()),At(Wn.blobUri(),ut(Wn,Co)),Wr(ut(Wn,Co))};lo=Co=>{Co<0||Co>100||Y.from(Qr).orThunk(()=>Y.from(Tr).map(Z)).each(yo=>{Qr=yo,yo.progressBar.value(Co)})},ur(Wn,lo).then(li,Co=>{Mi(v(Co)?{message:Co}:Co)})}catch(Zo){Wr(ut(Wn,Zo))}})),un=Wn=>Wn===oe,yn=Wn=>{const ur=Wn.blobUri();return new Promise(Tr=>{B[ur]=B[ur]||[],B[ur].push(Tr)})},Qn=(Wn,ur)=>(Wn=To.grep(Wn,Tr=>!r.isUploaded(Tr.blobUri())),Promise.all(To.map(Wn,Tr=>r.isPending(Tr.blobUri())?yn(Tr):nn(Tr,be,ur))));return{upload:(Wn,ur)=>!g.url&&un(be)?Le():Qn(Wn,ur)}},vS=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),cx=(r,g)=>xm(g,{url:vv(r),basePath:h1(r),credentials:n2(r),handler:by(r)}),Ny=r=>{const g=dF(),B=cx(r,g);return{upload:(H,oe=!0)=>B.upload(H,oe?vS(r):void 0)}},v5=(r,g)=>r.dom.isEmpty(g.dom)&&P(r.schema.getTextBlockElements()[ma(g)]),T7=r=>g=>{v5(r,g)&&ii(g,_r.fromHtml('
    '))},C7=r=>{const g=H2();let B,H;const oe=dF(),be=[],Le=Qr=>lo=>r.selection?Qr(lo):[],Ke=Qr=>Qr+(Qr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ut=(Qr,lo,Zo)=>{let li=0;do li=Qr.indexOf(lo,li),li!==-1&&(Qr=Qr.substring(0,li)+Zo+Qr.substr(li+lo.length),li+=Zo.length-lo.length+1);while(li!==-1);return Qr},At=(Qr,lo,Zo)=>{const li=`src="${Zo}"${Zo===Nr.transparentSrc?' data-mce-placeholder="1"':""}`;return Qr=ut(Qr,`src="${lo}"`,li),Qr=ut(Qr,'data-mce-src="'+lo+'"','data-mce-src="'+Zo+'"'),Qr},nn=(Qr,lo)=>{ve(r.undoManager.data,Zo=>{Zo.type==="fragmented"?Zo.fragments=ye(Zo.fragments,li=>At(li,Qr,lo)):Zo.content=At(Zo.content,Qr,lo)})},un=(Qr,lo)=>{const Zo=r.convertURL(lo,"src");nn(Qr.src,lo),Tu(_r.fromDom(Qr),{src:dl(r)?Ke(lo):lo,"data-mce-src":Zo})},yn=()=>(B||(B=cx(r,oe)),ur().then(Le(Qr=>{const lo=ye(Qr,Zo=>Zo.blobInfo);return B.upload(lo,vS(r)).then(Le(Zo=>{const li=[];let Mi=!1;const Co=ye(Zo,(yo,Vo)=>{const{blobInfo:Fi,image:la}=Qr[Vo];let bs=!1;return yo.status&&Mf(r)?(yo.url&&!tr(la.src,yo.url)&&(Mi=!0),g.removeByUri(la.src),zy(r)||un(la,yo.url)):yo.error&&(yo.error.remove&&(nn(la.src,Nr.transparentSrc),li.push(la),bs=!0),cF(r,yo.error.message)),{element:la,status:yo.status,uploadUri:yo.url,blobInfo:Fi,removed:bs}});return li.length>0&&!zy(r)?r.undoManager.transact(()=>{ve(xu(li),yo=>{const Vo=jc(yo);hs(yo),Vo.each(T7(r)),g.removeByUri(yo.dom.src)})}):Mi&&r.undoManager.dispatchChange(),Co}))}))),Qn=()=>$c(r)?yn():Promise.resolve([]),rr=Qr=>Oe(be,lo=>lo(Qr)),Wn=Qr=>{be.push(Qr)},ur=()=>(H||(H=g5(oe,g)),H.findAll(r.getBody(),rr).then(Le(Qr=>{const lo=Te(Qr,Zo=>v(Zo)?(d5(r,Zo),!1):Zo.uriType!=="blob");return zy(r)||ve(lo,Zo=>{nn(Zo.image.src,Zo.blobInfo.blobUri()),Zo.image.src=Zo.blobInfo.blobUri(),Zo.image.removeAttribute("data-mce-src")}),lo}))),Tr=()=>{g.destroy(),oe.destroy(),H=B=null},Wr=Qr=>Qr.replace(/src="(blob:[^"]+)"/g,(lo,Zo)=>{const li=oe.getResultUri(Zo);if(li)return'src="'+li+'"';let Mi=g.getByUri(Zo);return Mi||(Mi=Ie(r.editorManager.get(),(Co,yo)=>Co||yo.editorUpload&&yo.editorUpload.blobCache.getByUri(Zo),void 0)),Mi?'src="data:'+Mi.blob().type+";base64,"+Mi.base64()+'"':lo});return r.on("SetContent",()=>{$c(r)?Qn():ur()}),r.on("RawSaveContent",Qr=>{Qr.content=Wr(Qr.content)}),r.on("GetContent",Qr=>{Qr.source_view||Qr.format==="raw"||Qr.format==="tree"||(Qr.content=Wr(Qr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",Qr=>{ve(Qr,lo=>{const Zo=lo.attr("src");if(!Zo||g.getByUri(Zo))return;const li=oe.getResultUri(Zo);li&&lo.attr("src",li)})})}),{blobCache:g,addFilter:Wn,uploadImages:yn,uploadImagesAuto:Qn,scanForImages:ur,destroy:Tr}},pF=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const oe={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Le={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Le,oe,be]:[oe,Le,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(oe,be,Le)=>ne(oe)&&oe.hasAttribute("href"),onformat:(oe,be,Le)=>{To.each(Le,(Ke,ut)=>{g.setAttrib(oe,ut,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":oe=>{var be;return(be=oe==null?void 0:oe.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return To.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),oe=>{H[oe]={block:oe,remove:"all"}}),H},A7={remove_similar:!0,inherit:!1},yS={selector:"td,th",...A7},CG={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...yS},tablecellverticalalign:{styles:{"vertical-align":"%value"},...yS},tablecellbordercolor:{styles:{borderColor:"%value"},...yS},tablecellclass:{classes:["%value"],...yS},tableclass:{selector:"table",classes:["%value"],...A7},tablecellborderstyle:{styles:{borderStyle:"%value"},...yS},tablecellborderwidth:{styles:{borderWidth:"%value"},...yS}},mF=$(CG),gF=r=>{const g={},B=Le=>P(Le)?g[Le]:g,H=Le=>Ot(g,Le),oe=(Le,Ke)=>{Le&&(v(Le)?(C(Ke)||(Ke=[Ke]),ve(Ke,ut=>{M(ut.deep)&&(ut.deep=!Gm(ut)),M(ut.split)&&(ut.split=!Gm(ut)||Ed(ut)),M(ut.remove)&&Gm(ut)&&!Ed(ut)&&(ut.remove="none"),Gm(ut)&&Ed(ut)&&(ut.mixed=!0,ut.block_expand=!0),v(ut.classes)&&(ut.classes=ut.classes.split(/\s+/))}),g[Le]=Ke):Ge(Le,(ut,At)=>{oe(At,ut)}))},be=Le=>(Le&&g[Le]&&delete g[Le],g);return oe(pF(r)),oe(mF()),oe(sw(r)),{get:B,has:H,register:oe,unregister:be}},y5=To.each,zg=cc.DOM,b5=r=>P(r)&&_(r),AG=(r,g)=>{const B=g&&g.schema||zm({}),H=(ut,At)=>{At.classes.length>0&&zg.addClass(ut,At.classes.join(" ")),zg.setAttribs(ut,At.attrs)},oe=ut=>{const At=v(ut)?{name:ut,classes:[],attrs:{}}:ut,nn=zg.create(At.name);return H(nn,At),nn},be=(ut,At)=>{const nn=B.getElementRule(ut.nodeName.toLowerCase()),un=nn==null?void 0:nn.parentsRequired;return un&&un.length?At&&ce(un,At)?At:un[0]:!1},Le=(ut,At,nn)=>{let un;const yn=At[0],Qn=b5(yn)?yn.name:void 0,rr=be(ut,Qn);if(rr)Qn===rr?(un=yn,At=At.slice(1)):un=rr;else if(yn)un=yn,At=At.slice(1);else if(!nn)return ut;const Wn=un?oe(un):zg.create("div");Wn.appendChild(ut),nn&&To.each(nn,Tr=>{const Wr=oe(Tr);Wn.insertBefore(Wr,ut)});const ur=b5(un)?un.siblings:void 0;return Le(Wn,At,ur)},Ke=zg.create("div");if(r.length>0){const ut=r[0],At=oe(ut),nn=b5(ut)?ut.siblings:void 0;Ke.appendChild(Le(At,r.slice(1),nn))}return Ke},MG=r=>{r=To.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,oe,be,Le,Ke)=>{switch(oe){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":To.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Le==="["){const ut=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ut&&(B.attrs[ut[1]]=ut[2])}return""})),B.name=g||"div",B},Efe=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),To.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=To.map(g.split(/(?:~\+|~|\+)/),MG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],EG=(r,g)=>{let B="",H=Pb(r);if(H==="")return"";const oe=yn=>v(yn)?yn.replace(/%(\w+)/g,""):"",be=(yn,Qn)=>zg.getStyle(Qn??r.getBody(),yn,!0);if(v(g)){const yn=r.formatter.get(g);if(!yn)return"";g=yn[0]}if("preview"in g){const yn=g.preview;if(yn===!1)return"";H=yn||H}let Le=g.block||g.inline||"span",Ke;const ut=Efe(g.selector);ut.length>0?(ut[0].name||(ut[0].name=Le),Le=g.selector,Ke=AG(ut,r)):Ke=AG([Le],r);const At=zg.select(Le,Ke)[0]||Ke.firstChild;y5(g.styles,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setStyle(At,Qn,rr)}),y5(g.attributes,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setAttrib(At,Qn,rr)}),y5(g.classes,yn=>{const Qn=oe(yn);zg.hasClass(At,Qn)||zg.addClass(At,Qn)}),r.dispatch("PreviewFormats"),zg.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const nn=be("fontSize"),un=/px$/.test(nn)?parseInt(nn,10):0;return y5(H.split(" "),yn=>{let Qn=be(yn,At);if(!(yn==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Qn)&&(Qn=be(yn),od(Qn).toLowerCase()==="#ffffff"))&&!(yn==="color"&&od(Qn).toLowerCase()==="#000000")){if(yn==="font-size"&&/em|%$/.test(Qn)){if(un===0)return;Qn=parseFloat(Qn)/(/%$/.test(Qn)?100:1)*un+"px"}yn==="border"&&Qn&&(B+="padding:0 2px;"),B+=yn+":"+Qn+";"}}),r.dispatch("AfterPreviewFormats"),zg.remove(Ke),B},PG=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},Dv=r=>{const g=gF(r),B=Ar({});return PG(r),Sz(r),zy(r)||EP(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,oe,be)=>{MX(r,H,oe,be)},remove:(H,oe,be,Le)=>{EX(r,H,oe,be,Le)},toggle:(H,oe,be)=>{ZN(r,H,oe,be)},match:(H,oe,be,Le)=>TX(r,H,oe,be,Le),closest:H=>AX(r,H),matchAll:(H,oe)=>g7(r,H,oe),matchNode:(H,oe,be,Le)=>CX(r,H,oe,be,Le),canApply:H=>oA(r,H),formatChanged:(H,oe,be,Le)=>qN(r,B,H,oe,be,Le),getCssText:U(EG,r)}},RG=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},Pfe=(r,g,B)=>{const H=Ar(!1),oe=ut=>{u5(g,!1,B),g.add({},ut)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ut=>{const At=ut.command;RG(At)||(LN(g,B),g.beforeChange())}),r.on("ExecCommand",ut=>{const At=ut.command;RG(At)||oe(ut)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",oe),r.on("dragend",oe),r.on("keyup",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;const nn=Nr.os.isMacOS()&&ut.key==="Meta";(At>=33&&At<=36||At>=37&&At<=40||At===45||ut.ctrlKey||nn)&&(oe(),r.nodeChanged()),(At===46||At===8)&&r.nodeChanged(),H.get()&&g.typing&&!c5(s5(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;if(At>=33&&At<=36||At>=37&&At<=40||At===45){g.typing&&oe(ut);return}const nn=ut.ctrlKey&&!ut.altKey||ut.metaKey;if((At<16||At>20)&&At!==224&&At!==91&&!g.typing&&!nn){g.beforeChange(),u5(g,!0,B),g.add({},ut),H.set(!0);return}(Nr.os.isMacOS()?ut.metaKey:ut.ctrlKey&&!ut.altKey)&&g.beforeChange()}),r.on("mousedown",ut=>{g.typing&&oe(ut)});const be=ut=>ut.inputType==="insertReplacementText",Le=ut=>ut.inputType==="insertText"&&ut.data===null,Ke=ut=>ut.inputType==="insertFromPaste"||ut.inputType==="insertFromDrop";r.on("input",ut=>{ut.inputType&&(be(ut)||Le(ut)||Ke(ut))&&oe(ut)}),r.on("AddUndo Undo Redo ClearUndos",ut=>{ut.isDefaultPrevented()||r.nodeChanged()})},LG=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},bS=r=>{const g=Ts(),B=Ar(0),H=Ar(0),oe={data:[],typing:!1,beforeChange:()=>{FN(r,B,g)},add:(be,Le)=>d7(r,oe,H,B,g,be,Le),dispatchChange:()=>{r.setDirty(!0);const be=s5(r);be.bookmark=fl(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(oe.data,H.get()).getOrUndefined()})},undo:()=>h7(r,oe,B,H),redo:()=>$N(r,H,oe.data),clear:()=>{p7(r,oe,H)},reset:()=>{VN(r,oe)},hasUndo:()=>UN(r,oe,H),hasRedo:()=>m7(r,oe,H),transact:be=>jN(r,oe,B,be),ignore:be=>{QN(r,B,be)},extra:(be,Le)=>{HN(r,oe,H,be,Le)}};return zy(r)||Pfe(r,oe,B),LG(r),oe},IG=[9,27,Jo.HOME,Jo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Jo.DOWN,Jo.UP,Jo.LEFT,Jo.RIGHT].concat(Nr.browser.isFirefox()?[224]:[]),M7="data-mce-placeholder",E7=r=>r.type==="keydown"||r.type==="keyup",P7=r=>{const g=r.keyCode;return g===Jo.BACKSPACE||g===Jo.DELETE},DG=r=>{if(E7(r)){const g=r.keyCode;return!P7(r)&&(Jo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(IG,g))}else return!1},BG=r=>E7(r)&&!(P7(r)||r.type==="keyup"&&r.keyCode===229),Z2=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},zG=r=>{var g;const B=r.dom,H=tu(r),oe=(g=_0(r))!==null&&g!==void 0?g:"",be=(Le,Ke)=>{if(DG(Le))return;const ut=r.getBody(),At=BG(Le)?!1:Z2(B,ut,H);(B.getAttrib(ut,M7)!==""!==At||Ke)&&(B.setAttrib(ut,M7,At?oe:null),V3(r,At),r.on(At?"keydown":"keyup",be),r.off(At?"keyup":"keydown",be))};lr(oe)&&r.on("init",Le=>{be(Le,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Ig.setEditorTimeout(r,()=>be(Ke)))})},NG=(r,g)=>({block:r,position:g}),FG=(r,g)=>({from:r,to:g}),R7=(r,g)=>{const B=_r.fromDom(r),H=_r.fromDom(g.container());return Xc(B,H).map(oe=>NG(oe,g))},$G=r=>!(El(r.to.block,r.from.block)||El(r.from.block,r.to.block)),VG=r=>!va(r.from.block,r.to.block),vF=(r,g)=>cl(g,oe=>gy(oe)||pn(oe.dom),oe=>va(oe,r)).filter(Wl).getOr(r),UG=(r,g)=>{const B=_r.fromDom(r);return va(vF(B,g.from.block),vF(B,g.to.block))},jG=r=>In(r.from.block.dom)===!1&&In(r.to.block.dom)===!1,uA=r=>{const g=B=>Np(B)||Is(B.dom)||av(B);return g(r.from.block)&&g(r.to.block)},QG=(r,g,B,H)=>gn(H.position.getNode())&&!Ai(r,H.block)?Ry(!1,H.block.dom).bind(oe=>oe.isEqual(H.position)?Op(B,g,oe).bind(be=>R7(g,be)):Y.some(H)).getOr(H):H,HG=(r,g,B,H)=>{const oe=R7(g,vo.fromRangeStart(H)),be=oe.bind(Le=>Op(B,g,Le.position).bind(Ke=>R7(g,Ke).map(ut=>QG(r,g,B,ut))));return zi(oe,be,FG).filter(Le=>VG(Le)&&UG(g,Le)&&jG(Le)&&uA(Le)&&$G(Le))},Rfe=(r,g,B,H)=>H.collapsed?HG(r,g,B,H):Y.none(),x5=(r,g)=>{const B=vc(r);return Qe(B,H=>g.isBlock(ma(H))).fold($(B),H=>B.slice(0,H))},yF=(r,g)=>{const B=x5(r,g);return ve(B,hs),B},fA=(r,g,B)=>{const H=k1(B,g);return De(H.reverse(),oe=>Ai(r,oe)).each(hs)},ZG=(r,g)=>Te(Vd(g),B=>!Ai(r,B)).length===0,qG=(r,g,B,H,oe)=>{if(Ai(H,B))return xp(B),ph(B.dom);ZG(H,oe)&&Ai(H,g)&&xc(oe,_r.fromTag("br"));const be=Up(B.dom,vo.before(oe.dom));return ve(yF(g,H),Le=>{xc(oe,Le)}),fA(H,r,g),be},WG=(r,g)=>r.isInline(ma(g)),YG=(r,g,B,H)=>{if(Ai(H,B)){if(Ai(H,g)){const Le=Pe((Ke=>{const ut=(At,nn)=>yc(At).fold(()=>nn,un=>WG(H,un)?ut(un,nn.concat(im(un))):nn);return ut(Ke,[])})(B),(Ke,ut)=>(nd(Ke,ut),ut),sv());uf(g),ii(g,Le)}return hs(B),ph(g.dom)}const oe=Ym(B.dom);return ve(yF(g,H),be=>{ii(B,be)}),fA(H,r,g),oe},rO=(r,g)=>{const B=k1(g,r);return Y.from(B[B.length-1])},oO=(r,g)=>El(g,r)?rO(g,r):Y.none(),_5=(r,g)=>{Ry(r,g.dom).bind(B=>Y.from(B.getNode())).map(_r.fromDom).filter(Ch).each(hs)},w5=(r,g,B,H)=>(_5(!0,g),_5(!1,B),oO(g,B).fold(U(YG,r,g,B,H),U(qG,r,g,B,H))),q2=(r,g,B,H,oe)=>g?w5(r,H,B,oe):w5(r,B,H,oe),ux=(r,g)=>{const B=_r.fromDom(r.getBody());return Rfe(r.schema,B.dom,g,r.selection.getRng()).map(oe=>()=>{q2(B,g,oe.from.block,oe.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},dA=(r,g,B)=>{const H=g.getRng();return zi(Xc(r,_r.fromDom(H.startContainer)),Xc(r,_r.fromDom(H.endContainer)),(oe,be)=>va(oe,be)?Y.none():Y.some(()=>{H.deleteContents(),q2(r,!0,oe,be,B).each(Le=>{g.setRng(Le.toRange())})})).getOr(Y.none())},O5=(r,g)=>{const B=_r.fromDom(g),H=U(va,r);return vs(B,gy,H).isSome()},bF=(r,g)=>O5(r,g.startContainer)||O5(r,g.endContainer),L7=(r,g)=>{const B=Up(r.dom,vo.fromRangeStart(g)).isNone(),H=Sp(r.dom,vo.fromRangeEnd(g)).isNone();return!bF(r,g)&&B&&H},I7=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),xF=r=>{const g=_r.fromDom(r.getBody()),B=r.selection.getRng();return L7(g,B)?I7(r):dA(g,r.selection,r.schema)},hA=(r,g)=>r.selection.isCollapsed()?Y.none():xF(r),Ng=(r,g,B,H,oe)=>Y.from(g._selectionOverrides.showCaret(r,B,H,oe)),_F=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},xS=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(_F(g)),wF=(r,g,B)=>{const H=Yd(1,r.getBody(),g),oe=vo.fromRangeStart(H),be=oe.getNode();if(v2(be))return Ng(1,r,be,!oe.isAtEnd(),!1);const Le=oe.getNode(!0);if(v2(Le))return Ng(1,r,Le,!1,!1);const Ke=z2(r.dom.getRoot(),oe.getNode());return v2(Ke)?Ng(1,r,Ke,!1,B):Y.none()},_S=(r,g,B)=>g.collapsed?wF(r,g,B).getOr(g):g,OF=r=>I2(r)||Y3(r),SF=r=>D2(r)||X3(r),kF=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},D7=(r,g,B,H,oe,be)=>{Ng(H,r,be.getNode(!oe),oe,!0).each(Le=>{if(g.collapsed){const Ke=g.cloneRange();oe?Ke.setEnd(Le.startContainer,Le.startOffset):Ke.setStart(Le.endContainer,Le.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Le)}),kF(r.dom,B)},fx=(r,g)=>{const B=r.selection.getRng();if(!Mt(B.commonAncestorContainer))return Y.none();const H=g?Ef.Forwards:Ef.Backwards,oe=k0(r.getBody()),be=U(Z4,g?oe.next:oe.prev),Le=g?OF:SF,Ke=xw(H,r.getBody(),B),ut=be(Ke),At=ut&&Gu(g,ut);if(!At||!p3(Ke,At))return Y.none();if(Le(At))return Y.some(()=>D7(r,B,Ke.getNode(),H,g,At));const nn=be(At);return nn&&Le(nn)&&p3(At,nn)?Y.some(()=>D7(r,B,Ke.getNode(),H,g,nn)):Y.none()},Fy=(r,g)=>fx(r,g),Fg=(r,g)=>{const B=r.getBody();return g?ph(B).filter(I2):Ym(B).filter(D2)},B7=r=>{const g=r.selection.getRng();return!g.collapsed&&(Fg(r,!0).exists(B=>B.isEqual(vo.fromRangeStart(g)))||Fg(r,!1).exists(B=>B.isEqual(vo.fromRangeEnd(g))))},XG=r=>P(r)&&(gy(_r.fromDom(r))||av(_r.fromDom(r))),$g=kl.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),GG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},KG=(r,g,B,H,oe)=>{const be=Le=>oe.isInline(Le.nodeName.toLowerCase())&&!hm(B,H,r);return d3(!g,B).fold(()=>d3(g,H).fold(re,be),be)},TF=(r,g,B,H,oe)=>{const be=oe.getNode(!B);return Xc(_r.fromDom(g),_r.fromDom(H.getNode())).map(Le=>Ai(r,Le)?$g.remove(Le.dom):$g.moveToElement(be)).orThunk(()=>Y.some($g.moveToElement(be)))},CF=(r,g,B,H)=>Op(g,r,B).bind(oe=>XG(oe.getNode())||KG(r,g,B,oe,H)?Y.none():g&&In(oe.getNode())||!g&&In(oe.getNode(!0))?TF(H,r,g,B,oe):g&&D2(B)||!g&&I2(B)?Y.some($g.moveToPosition(oe)):Y.none()),JG=(r,g)=>T(g)?Y.none():r&&In(g.nextSibling)?Y.some($g.moveToElement(g.nextSibling)):!r&&In(g.previousSibling)?Y.some($g.moveToElement(g.previousSibling)):Y.none(),eK=(r,g,B)=>B.fold(H=>Y.some($g.remove(H)),H=>Y.some($g.moveToElement(H)),H=>hm(g,H,r)?Y.none():Y.some($g.moveToPosition(H))),tK=(r,g,B,H)=>GG(g,B)?JG(g,B.getNode(!g)).orThunk(()=>CF(r,g,B,H)):CF(r,g,B,H).bind(oe=>eK(r,B,oe)),nK=(r,g,B,H)=>{const oe=Yd(g?1:-1,r,B),be=vo.fromRangeStart(oe),Le=_r.fromDom(r);return!g&&D2(be)?Y.some($g.remove(be.getNode(!0))):g&&I2(be)?Y.some($g.remove(be.getNode())):!g&&I2(be)&&f6(Le,be,H)?CB(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):g&&D2(be)&&TB(Le,be,H)?Ra(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):tK(r,g,be,H)},rK=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B)),!0),z7=(r,g)=>B=>{const H=g?vo.before(B):vo.after(B);return r.selection.setRng(H.toRange()),!0},N7=r=>g=>(r.selection.setRng(g.toRange()),!0),F7=(r,g)=>Y.from(z2(r.getBody(),g)),oK=(r,g)=>{const B=r.selection.getNode();return F7(r,B).filter(In).fold(()=>nK(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(rK(r,g),z7(r,g),N7(r))),()=>Y.some(k))},iK=r=>{ve(Pl(r,".mce-offscreen-selection"),hs)},AF=(r,g)=>{const B=r.selection.getNode();return In(B)&&!Ir(B)?F7(r,B.parentNode).filter(In).fold(()=>Y.some(()=>{iK(_r.fromDom(r.getBody())),T0(r,g,_r.fromDom(r.selection.getNode())),J3(r)}),()=>Y.some(k)):B7(r)?Y.some(()=>{$w(r,r.selection.getRng(),_r.fromDom(r.getBody()))}):Y.none()},$7=r=>{const g=r.dom,B=r.selection,H=z2(r.getBody(),B.getNode());if(pn(H)&&g.isBlock(H)&&g.isEmpty(H)){const oe=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(oe),B.setRng(vo.before(oe).toRange())}return!0},S5=(r,g)=>r.selection.isCollapsed()?oK(r,g):AF(r,g),V7=r=>r.hasOwnProperty("text"),U7=r=>r.hasOwnProperty("marker"),pA=(r,g)=>{const B=(be,Le)=>{if(Mt(be))return{text:be,offset:Le};{const Ke=g(),ut=be.childNodes;return Le{var g,B;const{start:H,end:oe}=r,be=new window.Range;return V7(H)?be.setStart(H.text,H.offset):U7(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),V7(oe)?be.setEnd(oe.text,oe.offset):U7(oe)&&(oe.before?be.setEndBefore(oe.marker):be.setEndAfter(oe.marker),(B=oe.marker.parentNode)===null||B===void 0||B.removeChild(oe.marker)),be},j7=(r,g)=>{var B;const H=r.dom,oe=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Le=r.getBody();if(((B=oe==null?void 0:oe.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&oe&&be&&oe===Le.firstChild&&be===Le.lastChild&&!H.isEmpty(Le)){const ut=oe.cloneNode(!1),At=()=>{if(g?B2(r):m6(r),Le.firstChild!==oe){const nn=pA(r.selection.getRng(),()=>document.createElement("span"));Array.from(Le.childNodes).forEach(un=>ut.appendChild(un)),Le.appendChild(ut),r.selection.setRng(MF(nn))}};return Y.some(At)}return Y.none()},$y=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Op(g,r.getBody(),B).filter(H=>g?yW(H):ha(H)).bind(H=>H4(g?0:-1,H)).map(H=>()=>r.selection.select(H))},Vg=(r,g)=>r.selection.isCollapsed()?$y(r,g):Y.none(),dx=Mt,Q7=r=>dx(r)&&r.data[0]===Ou,k5=r=>dx(r)&&r.data[r.data.length-1]===Ou,H7=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(Ou)},EF=r=>{var g;if(dx(r.previousSibling))return k5(r.previousSibling)||r.previousSibling.appendData(Ou),r.previousSibling;if(dx(r))return Q7(r)||r.insertData(0,Ou),r;{const B=H7(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},PF=r=>{var g,B;if(dx(r.nextSibling))return Q7(r.nextSibling)||r.nextSibling.insertData(0,Ou),r.nextSibling;if(dx(r))return k5(r)||r.appendData(Ou),r;{const H=H7(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},T5=(r,g)=>r?EF(g):PF(g),RF=U(T5,!0),LF=U(T5,!1),C5=(r,g)=>Mt(r.container())?T5(g,r.container()):T5(g,r.getNode()),mA=(r,g)=>{const B=g.get();return B&&r.container()===B&&_p(B)},Z7=(r,g)=>g.fold(B=>{$b(r.get());const H=RF(B);return r.set(H),Y.some(vo(H,H.length-1))},B=>ph(B).map(H=>{if(mA(H,r)){const oe=r.get();return vo(oe,1)}else{$b(r.get());const oe=C5(H,!0);return r.set(oe),vo(oe,1)}}),B=>Ym(B).map(H=>{if(mA(H,r)){const oe=r.get();return vo(oe,oe.length-1)}else{$b(r.get());const oe=C5(H,!1);return r.set(oe),vo(oe,oe.length-1)}}),B=>{$b(r.get());const H=LF(B);return r.set(H),Y.some(vo(H,1))}),IF=(r,g)=>{for(let B=0;B{const B=Ey(g,r);return B||r},BF=(r,g,B)=>{const H=HB(B),oe=DF(g,H.container());return ox(r,oe,H).fold(()=>Sp(oe,H).bind(U(ox,r,oe)).map(be=>Zp.before(be)),Y.none)},aK=(r,g)=>jb(r,g)===null,zF=(r,g,B)=>ox(r,g,B).filter(U(aK,g)),q7=(r,g,B)=>{const H=ZB(B);return zF(r,g,H).bind(oe=>Up(oe,H).isNone()?Y.some(Zp.start(oe)):Y.none())},sK=(r,g,B)=>{const H=HB(B);return zF(r,g,H).bind(oe=>Sp(oe,H).isNone()?Y.some(Zp.end(oe)):Y.none())},lK=(r,g,B)=>{const H=ZB(B),oe=DF(g,H.container());return ox(r,oe,H).fold(()=>Up(oe,H).bind(U(ox,r,oe)).map(be=>Zp.after(be)),Y.none)},NF=r=>!VB(W7(r)),Vy=(r,g,B)=>IF([BF,q7,sK,lK],[r,g,B]).filter(NF),W7=r=>r.fold(Q,Q,Q,Q),FF=r=>r.fold($("before"),$("start"),$("end"),$("after")),gA=r=>r.fold(Zp.before,Zp.before,Zp.after,Zp.after),wS=r=>r.fold(Zp.start,Zp.start,Zp.end,Zp.end),Y7=(r,g)=>FF(r)===FF(g)&&W7(r)===W7(g),cK=(r,g,B,H,oe,be)=>zi(ox(g,B,H),ox(g,B,oe),(Le,Ke)=>Le!==Ke&&jB(B,Le,Ke)?Zp.after(r?Le:Ke):be).getOr(be),uK=(r,g)=>r.fold(q,B=>!Y7(B,g)),fK=(r,g,B,H,oe)=>{const be=Gu(r,oe);return Op(r,B,be).map(U(Gu,r)).fold(()=>H.map(gA),ut=>Vy(g,B,ut).map(U(cK,r,g,B,be,ut)).filter(U(uK,H))).filter(NF)},dK=(r,g)=>r?g.fold(I(Y.some,Zp.start),Y.none,I(Y.some,Zp.after),Y.none):g.fold(Y.none,I(Y.some,Zp.before),Y.none,I(Y.some,Zp.end)),$F=(r,g,B,H)=>{const oe=Gu(r,H),be=Vy(g,B,oe);return Vy(g,B,oe).bind(U(dK,r)).orThunk(()=>fK(r,g,B,be,H))},hK=r=>A(r.selection.getSel().modify),VF=(r,g,B)=>{const H=r?1:-1;return g.setRng(vo(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},X7=(r,g)=>{const B=g.selection.getRng(),H=r?vo.fromRangeEnd(B):vo.fromRangeStart(B);return hK(g)?r&&s1(H)?VF(!0,g.selection,H):!r&&Um(H)?VF(!1,g.selection,H):!1:!1};var Uy;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Uy||(Uy={}));const vA=(r,g)=>r===Ef.Backwards?ke(g):g,pK=(r,g,B)=>r===Ef.Forwards?g.next(B):g.prev(B),mK=(r,g,B,H)=>gn(H.getNode(g===Ef.Forwards))?Uy.Br:hm(B,H)===!1?Uy.Block:Uy.Wrap,UF=(r,g,B,H)=>{const oe=k0(B);let be=H;const Le=[];for(;be;){const Ke=pK(g,oe,be);if(!Ke)break;if(gn(Ke.getNode(!1)))return g===Ef.Forwards?{positions:vA(g,Le).concat([Ke]),breakType:Uy.Br,breakAt:Y.some(Ke)}:{positions:vA(g,Le),breakType:Uy.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ut=mK(B,g,be,Ke);return{positions:vA(g,Le),breakType:ut,breakAt:Y.some(Ke)}}Le.push(Ke),be=Ke}return{positions:vA(g,Le),breakType:Uy.Eol,breakAt:Y.none()}},jF=(r,g,B,H)=>g(B,H).breakAt.map(oe=>{const be=g(B,oe).positions;return r===Ef.Backwards?be.concat(oe):[oe].concat(be)}).getOr([]),G7=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),oe=>zi(Ye(oe.getClientRects()),Ye(H.getClientRects()),(be,Le)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Le.left)<=Ke?H:oe}).or(B)),Y.none()),iO=(r,g)=>Ye(g.getClientRects()).bind(B=>G7(r,B.left)),W2=U(UF,vo.isAbove,-1),A5=U(UF,vo.isBelow,1),QF=U(jF,-1,W2),M5=U(jF,1,A5),HF=(r,g)=>W2(r,g).breakAt.isNone(),ZF=(r,g)=>A5(r,g).breakAt.isNone(),gK=r=>ph(r).map(g=>[g].concat(A5(r,g).positions)).getOr([]),vK=r=>Ym(r).map(g=>W2(r,g).positions.concat(g)).getOr([]),yK=(r,g)=>iO(QF(r,g),g),bK=(r,g)=>iO(M5(r,g),g),xK=In,qF=(r,g)=>Math.abs(r.left-g),WF=(r,g)=>Math.abs(r.right-g),_K=r=>cn(r,"node"),YF=(r,g)=>it(r,(B,H)=>{const oe=Math.min(qF(B,g),WF(B,g)),be=Math.min(qF(H,g),WF(H,g));return be===oe&&_K(H)&&xK(H.node)||be{const g=B=>ye(B,H=>{const oe=l1(H);return oe.node=r,oe});if(ne(r))return g(r.getClientRects());if(Mt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},I0=r=>$e(r,Lfe);var aO;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(aO||(aO={}));const XF=(r,g,B,H)=>{let oe=H;for(;oe=y2(oe,r,Cb,g);)if(B(oe))return},K7=(r,g,B,H,oe,be)=>{let Le=0;const Ke=[],ut=un=>{let yn=I0([un]);r===-1&&(yn=yn.reverse());for(let Qn=0;Qn0&&g(rr,Bt(Ke))&&Le++,rr.line=Le,oe(rr))return!0;Ke.push(rr)}}return!1},At=Bt(be.getClientRects());if(!At)return Ke;const nn=be.getNode();return nn&&(ut(nn),XF(r,H,ut,nn)),Ke},wK=(r,g)=>g.line>r,GF=(r,g)=>g.line===r,OK=U(K7,aO.Up,lv,fc),KF=U(K7,aO.Down,fc,lv),JF=r=>Bt(r.getClientRects()),SK=(r,g,B,H)=>{const oe=k0(g);let be,Le,Ke,ut;const At=[];let nn=0;r===1?(be=oe.next,Le=fc,Ke=lv,ut=vo.after(H)):(be=oe.prev,Le=lv,Ke=fc,ut=vo.before(H));const un=JF(ut);do{if(!ut.isVisible())continue;const yn=JF(ut);if(Ke(yn,un))continue;At.length>0&&Le(yn,Bt(At))&&nn++;const Qn=l1(yn);if(Qn.position=ut,Qn.line=nn,B(Qn))return At;At.push(Qn)}while(ut=be(ut));return At},e$=r=>g=>wK(r,g),Y2=r=>g=>GF(r,g),jy=(r,g)=>{r.selection.setRng(g),kk(r,r.selection.getRng())},yA=(r,g,B)=>Y.some(_S(r,g,B)),J7=(r,g,B,H,oe,be)=>{const Le=g===Ef.Forwards,Ke=k0(r.getBody()),ut=U(Z4,Le?Ke.next:Ke.prev),At=Le?H:oe;if(!B.collapsed){const rr=Mh(B);if(be(rr))return Ng(g,r,rr,g===Ef.Backwards,!1);if(B7(r)){const Wn=B.cloneRange();return Wn.collapse(g===Ef.Backwards),Y.from(Wn)}}const nn=xw(g,r.getBody(),B);if(At(nn))return xS(r,nn.getNode(!Le));let un=ut(nn);const yn=Sb(B);if(un)un=Gu(Le,un);else return yn?Y.some(B):Y.none();if(At(un))return Ng(g,r,un.getNode(!Le),Le,!1);const Qn=ut(un);return Qn&&At(Qn)&&p3(un,Qn)?Ng(g,r,Qn.getNode(!Le),Le,!1):yn?yA(r,un.toRange(),!1):Y.none()},bA=(r,g,B,H,oe,be)=>{const Le=xw(g,r.getBody(),B),Ke=Bt(Le.getClientRects()),ut=g===aO.Down,At=r.getBody();if(!Ke)return Y.none();if(B7(r)){const ur=ut?vo.fromRangeEnd(B):vo.fromRangeStart(B);return(ut?bK:yK)(At,ur).orThunk(()=>Y.from(ur)).map(Wr=>Wr.toRange())}const un=(ut?KF:OK)(At,e$(1),Le),yn=Te(un,Y2(1)),Qn=Ke.left,rr=YF(yn,Qn);if(rr&&be(rr.node)){const ur=Math.abs(Qn-rr.left),Tr=Math.abs(Qn-rr.right);return Ng(g,r,rr.node,ur_S(r,ur.toRange(),!1)):Y.none()},e9=(r,g)=>{const B=r.selection.getRng(),H=g?vo.fromRangeEnd(B):vo.fromRangeStart(B),oe=f3(H.container(),r.getBody());if(g){const be=A5(oe,H);return Je(be.positions)}else{const be=W2(oe,H);return Ye(be.positions)}},t$=(r,g,B)=>e9(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),xA=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},n$=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},kK=(r,g,B)=>Z7(g,B).map(H=>(xA(r,H),B)),Ife=(r,g,B)=>{const H=vo.fromRangeStart(r);if(r.collapsed)return H;{const oe=vo.fromRangeEnd(r);return B?Up(g,oe).getOr(oe):Sp(g,H).getOr(H)}},Dfe=(r,g,B)=>{const H=r.getBody(),oe=Ife(r.selection.getRng(),H,B),be=U(Nw,r);return $F(B,be,H,oe).bind(Ke=>kK(r,g,Ke))},P1=(r,g,B)=>{const H=ye(Pl(_r.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Le=>Le.dom),oe=Te(H,r),be=Te(B,r);ve(Re(oe,be),U(n$,!1)),ve(Re(be,oe),U(n$,!0))},TK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=vo.fromRangeStart(r.selection.getRng());vo.isTextPosition(H)&&!QB(H)&&(xA(r,gC(B,H)),g.set(null))}},CK=(r,g,B,H)=>{if(g.selection.isCollapsed()){const oe=Te(H,r);ve(oe,be=>{const Le=vo.fromRangeStart(g.selection.getRng());Vy(r,g.getBody(),Le).bind(Ke=>kK(g,B,Ke))})}},X2=(r,g,B)=>Zm(r)?Dfe(r,g,B).isSome():!1,t9=(r,g,B)=>Zm(g)?X7(r,g):!1,AK=r=>{const g=Ar(null),B=U(Nw,r);return r.on("NodeChange",H=>{Zm(r)&&(P1(B,r.dom,H.parents),TK(r,g),CK(B,r,g,H.parents))}),g},_A=U(t9,!0),MK=U(t9,!1),wA=(r,g,B)=>{if(Zm(r)){const H=e9(r,g).getOrThunk(()=>{const oe=r.selection.getRng();return g?vo.fromRangeEnd(oe):vo.fromRangeStart(oe)});return Vy(U(Nw,r),r.getBody(),H).exists(oe=>{const be=gA(oe);return Z7(B,be).exists(Le=>(xA(r,Le),!0))})}else return!1},EK=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},PK=r=>zi(ph(r),Ym(r),(g,B)=>{const H=Gu(!0,g),oe=Gu(!1,B);return Sp(r,H).forall(be=>be.isEqual(oe))}).getOr(!0),n9=(r,g)=>B=>Z7(g,B).map(H=>()=>xA(r,H)),r$=(r,g,B,H)=>{const oe=r.getBody(),be=U(Nw,r);r.undoManager.ignore(()=>{r.selection.setRng(EK(B,H)),m6(r),Vy(be,oe,vo.fromRangeStart(r.selection.getRng())).map(wS).bind(n9(r,g)).each(K)}),r.nodeChanged()},hx=(r,g)=>{const B=Ey(g,r);return B||r},RK=(r,g,B,H)=>{const oe=hx(r.getBody(),H.container()),be=U(Nw,r),Le=Vy(be,oe,H);return Le.bind(ut=>B?ut.fold($(Y.some(wS(ut))),Y.none,$(Y.some(gA(ut))),Y.none):ut.fold(Y.none,$(Y.some(gA(ut))),Y.none,$(Y.some(wS(ut))))).map(n9(r,g)).getOrThunk(()=>{const ut=Ub(B,oe,H),At=ut.bind(nn=>Vy(be,oe,nn));return zi(Le,At,()=>ox(be,oe,H).bind(nn=>PK(nn)?Y.some(()=>{T0(r,B,_r.fromDom(nn))}):Y.none())).getOrThunk(()=>At.bind(()=>ut.map(nn=>()=>{B?r$(r,g,H,nn):r$(r,g,nn,H)})))})},r9=(r,g,B)=>{if(r.selection.isCollapsed()&&Zm(r)){const H=vo.fromRangeStart(r.selection.getRng());return RK(r,g,B,H)}return Y.none()},LK=r=>Nu(r)>1,o$=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_r.fromDom(r.selection.getStart()),oe=k1(H,B);return Qe(oe,g).fold($(oe),be=>oe.slice(0,be))},IK=r=>Nu(r)===1,o9=r=>o$(r,g=>r.schema.isBlock(ma(g))||LK(g)),i9=r=>o$(r,g=>r.schema.isBlock(ma(g))),OA=(r,g)=>{const B=U(P6,r);return $e(g,H=>B(H)?[H.dom]:[])},a9=r=>{const g=i9(r);return OA(r,g)},i$=(r,g,B,H)=>{const oe=OA(g,H);if(oe.length===0)T0(g,r,B);else{const be=kz(B.dom,oe);g.selection.setRng(be.toRange())}},a$=(r,g)=>{const B=Te(o9(r),IK);return Je(B).bind(H=>{const oe=vo.fromRangeStart(r.selection.getRng());return Fw(g,oe,H.dom)&&!dk(H)?Y.some(()=>i$(g,r,H,B)):Y.none()})},DK=(r,g)=>{const B=g.parentElement;return gn(g)&&!x(B)&&r.dom.isEmpty(B)},E5=r=>dk(_r.fromDom(r)),P5=(r,g)=>{const B=r.selection.getStart(),H=DK(r,B)||E5(B)?kz(B,g):yY(r.selection.getRng(),g);r.selection.setRng(H.toRange())},s$=(r,g)=>{const B=Re(g,a9(r));B.length>0&&P5(r,B)},s9=r=>Mt(r.startContainer),l$=r=>r.startOffset===0&&s9(r),c$=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&P6(r,_r.fromDom(B))},SA=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},l9=r=>{const g=r.endContainer;return r.endOffset===(Mt(g)?g.length:g.childNodes.length)},R5=r=>SA(r)&&l9(r),BK=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),u$=r=>R5(r)||BK(r),zK=r=>{const g=r.selection.getRng();return l$(g)&&c$(r,g)&&u$(g)},NK=r=>{if(zK(r)){const g=a9(r);return Y.some(()=>{m6(r),s$(r,g)})}else return Y.none()},kA=(r,g)=>r.selection.isCollapsed()?a$(r,g):NK(r),FK=(r,g)=>Vf(r,B=>Xm(B.dom),B=>g.isBlock(ma(B))),f$=r=>FK(_r.fromDom(r.selection.getStart()),r.schema),Bfe=r=>{const g=r.selection.getRng();return g.collapsed&&(s9(g)||r.dom.isEmpty(g.startContainer))&&!f$(r)},L5=r=>(Bfe(r)&&P5(r,[]),!0),c9=(r,g,B)=>P(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B))}):Y.none(),$K=(r,g)=>{const B=g?Y3:X3,H=g?Ef.Forwards:Ef.Backwards,oe=xw(H,r.getBody(),r.selection.getRng());return B(oe)?c9(r,g,oe.getNode(!g)):Y.from(Gu(g,oe)).filter(be=>B(be)&&p3(oe,be)).bind(be=>c9(r,g,be.getNode(!g)))},VK=(r,g)=>{const B=r.selection.getNode();return Gr(B)?c9(r,g,B):Y.none()},u9=(r,g)=>r.selection.isCollapsed()?$K(r,g):VK(r,g),UK=r=>cl(r,g=>pn(g.dom)||In(g.dom)).exists(g=>pn(g.dom)),f9=r=>eo(r??"").getOr(0),d$=(r,g)=>{const B=r||$m(g)?"margin":"padding",H=rs(g,"direction")==="rtl"?"-right":"-left";return B+H},h$=(r,g,B,H,oe,be)=>{const Le=d$(B,_r.fromDom(be)),Ke=f9(r.getStyle(be,Le));if(g==="outdent"){const ut=Math.max(0,Ke-H);r.setStyle(be,Le,ut?ut+oe:"")}else{const ut=Ke+H+oe;r.setStyle(be,Le,ut)}},jK=(r,g)=>Oe(g,B=>{const H=d$(xy(r),B),oe=Ri(B,H).map(f9).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&oe>0}),G2=r=>{const g=p9(r);return!r.mode.isReadOnly()&&(g.length>1||jK(r,g))},d9=r=>d0(r)||av(r),h9=r=>jc(r).exists(d9),p9=r=>Te(xu(r.selection.getSelectedBlocks()),g=>!d9(g)&&!h9(g)&&UK(g)),TA=(r,g)=>{var B,H;const{dom:oe}=r,be=x0(r),Le=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=f9(be),ut=xy(r);ve(p9(r),At=>{h$(oe,g,ut,Ke,Le,At.dom)})},K2=r=>TA(r,"indent"),m9=r=>TA(r,"outdent"),Ug=r=>{if(r.selection.isCollapsed()&&G2(r)){const g=r.dom,B=r.selection.getRng(),H=vo.fromRangeStart(B),oe=g.getParent(B.startContainer,g.isBlock);if(oe!==null&&Ka(_r.fromDom(oe),H,r.schema))return Y.some(()=>m9(r))}return Y.none()},J2=(r,g,B)=>Fe([Ug,S5,Fy,(H,oe)=>r9(H,g,oe),ux,$k,Vg,u9,hA,kA,j7],H=>H(r,B)).filter(H=>r.selection.isEditable()),g9=(r,g)=>{J2(r,g,!1).fold(()=>{r.selection.isEditable()&&(m6(r),J3(r))},K)},QK=(r,g)=>{J2(r,g,!0).fold(()=>{r.selection.isEditable()&&B2(r)},K)},p$=(r,g)=>{r.addCommand("delete",()=>{g9(r,g)}),r.addCommand("forwardDelete",()=>{QK(r,g)})},m$=5,HK=400,g$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),ZK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>m$||H>m$},qK=r=>{const g=Ts(),B=Ar(!1),H=jh(oe=>{r.dispatch("longpress",{...oe,type:"longpress"}),B.set(!0)},HK);r.on("touchstart",oe=>{g$(oe).each(be=>{H.cancel();const Le={x:be.clientX,y:be.clientY,target:oe.target};H.throttle(oe),B.set(!1),g.set(Le)})},!0),r.on("touchmove",oe=>{H.cancel(),g$(oe).each(be=>{g.on(Le=>{ZK(be,Le)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",oe=>{H.cancel(),oe.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(oe.target)).each(()=>{B.get()?oe.preventDefault():r.dispatch("tap",{...oe,type:"tap"})})},!0)},CA=(r,g)=>Ot(r,g.nodeName),WK=(r,g)=>Mt(g)?!0:ne(g)?!CA(r.getBlockElements(),g)&&!pm(g)&&!lh(r,g)&&!ys(g):!1,YK=(r,g,B)=>de(OB(_r.fromDom(B),_r.fromDom(g)),H=>CA(r,H.dom)),OS=(r,g)=>{if(Mt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||CA(r,g.nextSibling)||ys(g.nextSibling)}return!1},SS=r=>r.dom.create(tu(r),qd(r)),v$=r=>{const g=r.dom,B=r.selection,H=r.schema,oe=H.getBlockElements(),be=B.getStart(),Le=r.getBody();let Ke,ut,At=null;const nn=tu(r);if(!be||!ne(be))return;const un=Le.nodeName.toLowerCase();if(!H.isValidChild(un,nn.toLowerCase())||YK(oe,Le,be))return;if(Le.firstChild===Le.lastChild&&gn(Le.firstChild)){Ke=SS(r),Ke.appendChild(sv().dom),Le.replaceChild(Ke,Le.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let yn=Le.firstChild;for(;yn;)if(ne(yn)&&ul(H,yn),WK(H,yn)){if(OS(oe,yn)){ut=yn,yn=yn.nextSibling,g.remove(ut);continue}if(!Ke){if(!At&&r.hasFocus()&&(At=pA(r.selection.getRng(),()=>document.createElement("span"))),!yn.parentNode){yn=null;break}Ke=SS(r),Le.insertBefore(Ke,yn)}ut=yn,yn=yn.nextSibling,Ke.appendChild(ut)}else Ke=null,yn=yn.nextSibling;At&&(r.selection.setRng(MF(At)),r.nodeChanged())},v9=(r,g,B)=>{const H=_r.fromDom(SS(r)),oe=sv();ii(H,oe),B(g,H);const be=document.createRange();return be.setStartBefore(oe.dom),be.setEndBefore(oe.dom),be},y9=r=>{r.on("NodeChange",()=>v$(r))},y$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,XK=(r,g,B)=>function(H){const oe=arguments,be=oe[oe.length-2],Le=be>0?g.charAt(be-1):"";if(Le==='"')return H;if(Le===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof oe[1]=="string"?oe[1]:oe[0])+""},GK=(r,g,B)=>{let H=g.length,oe=B.content;if(B.format!=="raw"){for(;H--;)oe=oe.replace(g[H],XK(r,oe,pw(r)));B.content=oe}},KK=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),JK=r=>{const g="contenteditable",B=" "+To.trim(mw(r))+" ",H=" "+To.trim(pw(r))+" ",oe=y$(B),be=y$(H),Le=wp(r);Le.length>0&&r.on("BeforeSetContent",Ke=>{GK(r,Le,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];oe(At)?At.attr(g,"true"):be(At)&&At.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];if(!oe(At)&&!be(At))continue;const nn=At.attr("data-mce-content");Le.length>0&&nn?KK(Le,nn)?(At.name="#text",At.type=3,At.raw=!0,At.value=nn):At.remove():At.attr(g,null)}})},eJ=r=>wi(_r.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),b$=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ah(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},x$=(r,g)=>{const B=eJ(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),b$(r,B);return}GO(B)&&(b$(r,B),r.undoManager.add())}},tJ=r=>{r.on("keyup compositionstart",U(x$,r))},_$=In,jg=(r,g,B)=>J7(g,r,B,I2,D2,_$),nJ=(r,g,B)=>bA(g,r,B,be=>I2(be)||wB(be),be=>D2(be)||Ek(be),_$),b9=r=>{const g=r.dom.create(tu(r));return g.innerHTML='
    ',g},x9=(r,g,B)=>{const H=k0(r.getBody()),oe=U(Z4,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!oe(vo.fromRangeStart(B))){const Ke=_r.fromDom(b9(r));g===1?Kc(_r.fromDom(be),Ke):xc(_r.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},_9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return jg(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},rJ=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return nJ(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},oJ=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return VB(B)?!g:g},w$=(r,g)=>_9(r,oJ(r.selection,g)).exists(B=>(jy(r,B),!0)),O$=(r,g)=>rJ(r,g).exists(B=>(jy(r,B),!0)),S$=(r,g)=>t$(r,g,g?D2:I2),I5=(r,g)=>Fg(r,!g).map(B=>{const H=B.toRange(),oe=r.selection.getRng();return g?H.setStart(oe.startContainer,oe.startOffset):H.setEnd(oe.endContainer,oe.endOffset),H}).exists(B=>(jy(r,B),!0)),iJ=r=>ce(["figcaption"],ma(r)),aJ=(r,g,B)=>{const H=U(va,g);return cl(_r.fromDom(r.container()),oe=>B.isBlock(ma(oe)),H).filter(iJ)},D5=(r,g,B)=>g?ZF(r.dom,B):HF(r.dom,B),px=(r,g)=>{const B=_r.fromDom(r.getBody()),H=vo.fromRangeStart(r.selection.getRng());return aJ(H,B,r.schema).exists(()=>{if(D5(B,g,H)){const be=v9(r,B,g?ii:jd);return r.selection.setRng(be),!0}else return!1})},e_=(r,g)=>r.selection.isCollapsed()?px(r,g):!1,AA=(r,g,B)=>{const H=r.selection.getRng(),oe=vo.fromRangeStart(H);return r.getBody().firstChild===g&&HF(B,oe)?(r.execCommand("InsertNewBlockBefore"),!0):!1},w9=(r,g)=>{const B=r.selection.getRng(),H=vo.fromRangeStart(B);return r.getBody().lastChild===g&&ZF(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},O9=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>w9(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>AA(r,H,B))).getOr(!1),S9=(r,g)=>O9(r,g),k$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},T$=r=>ye(r,g=>({...k$,...g})),C$=r=>ye(r,g=>({...k$,...g})),A$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,sJ=(r,g)=>$e(T$(r),B=>A$(B,g)?[B]:[]),lJ=(r,g)=>$e(C$(r),B=>A$(B,g)?[B]:[]),$a=(r,...g)=>()=>r.apply(null,g),B5=(r,g)=>De(sJ(r,g),B=>B.action()),M$=(r,g)=>Fe(lJ(r,g),B=>B.action()),k9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return J7(r,B,H,Y3,X3,Gr).exists(oe=>(jy(r,oe),!0))},T9=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return bA(r,B,H,Y3,X3,Gr).exists(oe=>(jy(r,oe),!0))},cJ=(r,g)=>t$(r,g,g?X3:Y3),uJ=kl.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),z5={...uJ,none:r=>uJ.none(r)},zfe=(r,g)=>fJ(r,g,q),fJ=(r,g,B)=>$e(vc(r),H=>yd(H,g)?B(H)?[H]:[]:fJ(H,g,B)),dJ=(r,g,B=re)=>{if(B(g))return Y.none();if(ce(r,ma(g)))return Y.some(g);const H=oe=>yd(oe,"table")||B(oe);return ts(g,r.join(","),H)},hJ=(r,g)=>dJ(["td","th"],r,g),Nfe=r=>zfe(r,"th,td"),E$=(r,g)=>bu(r,"table",g),Tp=(r,g,B,H,oe=q)=>{const be=H===1;if(!be&&B<=0)return z5.first(r[0]);if(be&&B>=r.length-1)return z5.last(r[r.length-1]);{const Le=B+H,Ke=r[Le];return oe(Ke)?z5.middle(g,Ke):Tp(r,g,Le,H,oe)}},C9=(r,g)=>E$(r,g).bind(B=>{const H=Nfe(B);return Qe(H,be=>va(r,be)).map(be=>({index:be,all:H}))}),N5=(r,g,B)=>C9(r,B).fold(()=>z5.none(r),oe=>Tp(oe.all,r,oe.index,1,g)),pJ=(r,g,B)=>C9(r,B).fold(()=>z5.none(),oe=>Tp(oe.all,r,oe.index,-1,g)),P$=r=>iv(r).filter(g=>g.trim().length!==0||g.indexOf(Pc)>-1).isSome(),R$=r=>Al(r)&&gu(r,"contenteditable")==="false",A9=["img","br"],mJ=r=>P$(r)||ce(A9,ma(r))||R$(r),gJ=r=>Qc(r,mJ),L$=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),vJ=(r,g)=>$e(g,B=>{const H=L$(l1(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),yJ=(r,g,B)=>Ie(r,(H,oe)=>H.fold(()=>Y.some(oe),be=>{const Le=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(oe.x-g)+Math.abs(oe.y-B));return Y.some(Ke{const be=Pl(_r.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Le=Te(vJ(r,be),Ke=>g(Ke,oe));return yJ(Le,H,oe).map(Ke=>Ke.cell)},M9=r=>r.bottom,bJ=r=>r.top,xJ=(r,g)=>r.yr.y>g,_J=U(I$,M9,xJ),D$=U(I$,bJ,Ffe),$fe=(r,g)=>Ye(g.getClientRects()).bind(B=>_J(r,B.left,B.top)).bind(B=>iO(vK(B),g)),wJ=(r,g)=>Je(g.getClientRects()).bind(B=>D$(r,B.left,B.top)).bind(B=>iO(gK(B),g)),OJ=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),SJ=r=>r.breakType===Uy.Wrap&&r.positions.length===0,E9=r=>r.breakType===Uy.Br&&r.positions.length===1,F5=(r,g,B)=>{const H=r(g,B);return SJ(H)||!gn(B.getNode())&&E9(H)?!OJ(r,g,H):H.breakAt.isNone()},B$=U(F5,W2),z$=U(F5,A5),kJ=(r,g,B)=>{const H=vo.fromRangeStart(g);return Ry(!r,B).exists(oe=>oe.isEqual(H))},TJ=(r,g,B,H)=>{const oe=r.selection.getRng(),be=g?1:-1;return NM()&&kJ(g,oe,B)?(Ng(be,r,B,!g,!1).each(Le=>{jy(r,Le)}),!0):!1},P9=(r,g,B)=>$fe(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(QF(r,vo.before(g)),H.left))).getOr(vo.before(g)),CJ=(r,g,B)=>wJ(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(M5(r,vo.after(g)),H.left))).getOr(vo.after(g)),N$=(r,g)=>{const B=g.getNode(r);return dt(B)?Y.some(B):Y.none()},AJ=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?Kc:xc,oe=v9(g,_r.fromDom(B),H);jy(g,oe)})},F$=(r,g,B)=>{const H=N$(!!g,B),oe=g===!1;H.fold(()=>jy(r,B.toRange()),be=>Ry(oe,r.getBody()).filter(Le=>Le.isEqual(B)).fold(()=>jy(r,B.toRange()),Le=>AJ(g,r,be)))},R1=(r,g,B,H)=>{const oe=r.selection.getRng(),be=vo.fromRangeStart(oe),Le=r.getBody();if(!g&&B$(H,be)){const Ke=P9(Le,B,be);return F$(r,g,Ke),!0}else if(g&&z$(H,be)){const Ke=CJ(Le,B,be);return F$(r,g,Ke),!0}else return!1},R9=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(oe=>B(r,g,oe,H))).getOr(!1),L9=(r,g)=>R9(r,g,TJ),$$=(r,g)=>R9(r,g,R1),Vfe=r=>{const g=E2.exact(r,0,r,0);return Ce(g)},MJ=(r,g,B)=>B.fold(Y.none,Y.none,(H,oe)=>gJ(oe).map(be=>Vfe(be)),H=>(r.execCommand("mceTableInsertRowAfter"),EJ(r,g,H))),EJ=(r,g,B)=>MJ(r,g,N5(B,Ol)),PJ=(r,g,B)=>MJ(r,g,pJ(B,Ol)),$5=(r,g)=>{const B=["table","li","dl"],H=_r.fromDom(r.getBody()),oe=Ke=>{const ut=ma(Ke);return va(Ke,H)||ce(B,ut)},be=r.selection.getRng(),Le=_r.fromDom(g?be.endContainer:be.startContainer);return hJ(Le,oe).map(Ke=>(E$(Ke,oe).each(nn=>{r.model.table.clearSelectedCells(nn.dom)}),r.selection.collapse(!g),(g?EJ:PJ)(r,oe,Ke).each(nn=>{r.selection.setRng(nn)}),!0)).getOr(!1)},RJ=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.RIGHT,action:$a(w$,r,!0)},{keyCode:Jo.LEFT,action:$a(w$,r,!1)},{keyCode:Jo.UP,action:$a(O$,r,!1)},{keyCode:Jo.DOWN,action:$a(O$,r,!0)},...H?[{keyCode:Jo.UP,action:$a(I5,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Jo.DOWN,action:$a(I5,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Jo.RIGHT,action:$a(L9,r,!0)},{keyCode:Jo.LEFT,action:$a(L9,r,!1)},{keyCode:Jo.UP,action:$a($$,r,!1)},{keyCode:Jo.DOWN,action:$a($$,r,!0)},{keyCode:Jo.UP,action:$a($$,r,!1)},{keyCode:Jo.UP,action:$a(S9,r,!1)},{keyCode:Jo.DOWN,action:$a(S9,r,!0)},{keyCode:Jo.RIGHT,action:$a(k9,r,!0)},{keyCode:Jo.LEFT,action:$a(k9,r,!1)},{keyCode:Jo.UP,action:$a(T9,r,!1)},{keyCode:Jo.DOWN,action:$a(T9,r,!0)},{keyCode:Jo.RIGHT,action:$a(X2,r,g,!0)},{keyCode:Jo.LEFT,action:$a(X2,r,g,!1)},{keyCode:Jo.RIGHT,ctrlKey:!H,altKey:H,action:$a(_A,r,g)},{keyCode:Jo.LEFT,ctrlKey:!H,altKey:H,action:$a(MK,r,g)},{keyCode:Jo.UP,action:$a(e_,r,!1)},{keyCode:Jo.DOWN,action:$a(e_,r,!0)}],B).each(oe=>{B.preventDefault()})},I9=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||RJ(r,g,B)})},L1=(r,g)=>({container:r,offset:g}),V5=cc.DOM,U5=r=>g=>r===g?-1:0,LJ=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",D9=(r,g,B)=>{if(Mt(r)&&g>=0)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.backwards(r,g,U5(r),B)).map(oe=>L1(oe.container,oe.container.data.length))}},IJ=(r,g,B)=>{if(Mt(r)&&g>=r.length)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.forwards(r,g,U5(r),B)).map(oe=>L1(oe.container,0))}},B9=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.backwards(r,g,U5(r),B)).bind(be=>{const Le=be.container.data;return B9(be.container,g+Le.length,B)})}},j5=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.forwards(r,g,U5(r),B)).bind(be=>j5(be.container,g-H.length,B))}},z9=(r,g,B,H,oe)=>{const be=Cg(r,LJ(r));return Y.from(be.backwards(g,B,H,oe))},DJ=r=>r.collapsed&&Mt(r.startContainer),BJ=r=>Sd(r.toString().replace(/\u00A0/g," ")),MA=r=>r!==""&&`  \f +\r \v`.indexOf(r)!==-1,zJ=(r,g)=>r.substring(g.length),NJ=(r,g,B,H=!1)=>{let oe;const be=B.charAt(0);for(oe=g-1;oe>=0;oe--){const Le=r.charAt(oe);if(!H&&MA(Le))return Y.none();if(be===Le&&tr(r,B,oe,g))break}return Y.some(oe)},EA=(r,g,B,H=!1)=>{if(!DJ(g))return Y.none();const oe={text:"",offset:0},be=(Ke,ut,At)=>(oe.text=At+oe.text,oe.offset+=ut,NJ(oe.text,oe.offset,B,H).getOr(ut)),Le=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return z9(r,g.startContainer,g.startOffset,be,Le).bind(Ke=>{const ut=g.cloneRange();if(ut.setStart(Ke.container,Ke.offset),ut.setEnd(g.endContainer,g.endOffset),ut.collapsed)return Y.none();const At=BJ(ut);return At.lastIndexOf(B)!==0?Y.none():Y.some({text:zJ(At,B),range:ut,trigger:B})})},FJ=r=>r.nodeType===_s,$J=r=>r.nodeType===zf,V$=r=>{if(FJ(r))return L1(r,r.data.length);{const g=r.childNodes;return g.length>0?V$(g[g.length-1]):L1(r,g.length)}},U$=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&$J(r)&&B.length===g?V$(B[B.length-1]):L1(r,g)},VJ=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return z9(r,g.container,g.offset,(oe,be)=>be===0?-1:be,H).filter(oe=>{const be=oe.container.data.charAt(oe.offset-1);return!MA(be)}).isSome()},UJ=r=>g=>{const B=U$(g.startContainer,g.startOffset);return!VJ(r,B)},N9=(r,g,B)=>Fe(B.triggers,H=>EA(r,g,H)),jJ=(r,g)=>{const B=g(),H=r.selection.getRng();return N9(r.dom,H,B).bind(oe=>F9(r,g,oe))},F9=(r,g,B,H={})=>{var oe;const be=g(),Ke=(oe=r.selection.getRng().startContainer.nodeValue)!==null&&oe!==void 0?oe:"",ut=Te(be.lookupByTrigger(B.trigger),nn=>B.text.length>=nn.minChars&&nn.matches.getOrThunk(()=>UJ(r.dom))(B.range,Ke,B.text));if(ut.length===0)return Y.none();const At=Promise.all(ye(ut,nn=>nn.fetch(B.text,nn.maxResults,H).then(yn=>({matchText:B.text,items:yn,columns:nn.columns,onAction:nn.onAction,highlightOn:nn.highlightOn}))));return Y.some({lookupData:At,context:B})};var Bv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Bv||(Bv={}));const $9=(r,g,B)=>r.stype===Bv.Error?g(r.serror):B(r.svalue),QJ=r=>{const g=[],B=[];return ve(r,H=>{$9(H,oe=>B.push(oe),oe=>g.push(oe))}),{values:g,errors:B}},HJ=(r,g)=>r.stype===Bv.Error?{stype:Bv.Error,serror:g(r.serror)}:r,ZJ=(r,g)=>r.stype===Bv.Value?{stype:Bv.Value,svalue:g(r.svalue)}:r,qJ=(r,g)=>r.stype===Bv.Value?g(r.svalue):r,Dd=(r,g)=>r.stype===Bv.Error?g(r.serror):r,j$=r=>({stype:Bv.Value,svalue:r}),Q$=r=>({stype:Bv.Error,serror:r}),vh={fromResult:r=>r.fold(Q$,j$),toResult:r=>$9(r,Vs.error,Vs.value),svalue:j$,partition:QJ,serror:Q$,bind:qJ,bindError:Dd,map:ZJ,mapError:HJ,fold:$9},PA=r=>_(r)&&tt(r).length>100?" removed due to size":JSON.stringify(r,null,2),t_=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ye(g,B=>"Failed path: ("+B.path.join(" > ")+`) +`+B.getErrorInfo())},kS=(r,g)=>vh.serror([{path:r,getErrorInfo:g}]),H$=(r,g,B)=>kS(r,()=>'Could not find valid *required* value for "'+g+'" in '+PA(B)),V9=(r,g)=>kS(r,()=>'Choice schema did not contain choice key: "'+g+'"'),U9=(r,g,B)=>kS(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+PA(g)),j9=(r,g)=>kS(r,$(g)),Z$=(r,g,B,H)=>Et(B,H).fold(()=>U9(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),RA=(r,g)=>({extract:(oe,be)=>Et(be,r).fold(()=>V9(oe,r),Ke=>Z$(oe,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+tt(g)}),LA=(r,g)=>g,Q5=(r,g)=>O(r)&&O(g)?ng(r,g):g,TS=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),q$=r=>({tag:"defaultedThunk",process:r}),W$=r=>q$($(r)),Y$=()=>({tag:"option",process:{}}),YJ=(r,g)=>r.length>0?vh.svalue(ng(g,CS.apply(void 0,r))):vh.svalue(g),X$=r=>I(vh.serror,Ve)(r),XJ={consolidateObj:(r,g)=>{const B=vh.partition(r);return B.errors.length>0?X$(B.errors):YJ(B.values,g)},consolidateArr:r=>{const g=vh.partition(r);return g.errors.length>0?X$(g.errors):vh.svalue(g.values)}},GJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),KJ=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),G$=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},H9=r=>{const g=(H,oe)=>vh.bindError(r(oe),be=>j9(H,be)),B=$("val");return{extract:g,toString:B}},JJ=H9(vh.svalue),eee=(r,g,B,H)=>Et(g,B).fold(()=>H$(r,B,g),H),K$=(r,g,B,H)=>{const oe=Et(r,g).getOrThunk(()=>B(r));return H(oe)},tee=(r,g,B)=>B(Et(r,g)),nee=(r,g,B,H)=>{const oe=Et(r,g).map(be=>be===!0?B(r):be);return H(oe)},ree=(r,g,B,H,oe)=>{const be=Ke=>oe.extract(g.concat([H]),Ke),Le=Ke=>Ke.fold(()=>vh.svalue(Y.none()),ut=>{const At=oe.extract(g.concat([H]),ut);return vh.map(At,Y.some)});switch(r.tag){case"required":return eee(g,B,H,be);case"defaultedThunk":return K$(B,H,r.process,be);case"option":return tee(B,H,Le);case"defaultedOptionThunk":return nee(B,H,r.process,Le);case"mergeWithThunk":return K$(B,H,$({}),Ke=>{const ut=ng(r.process(B),Ke);return be(ut)})}},oee=(r,g,B)=>{const H={},oe=[];for(const be of B)G$(be,(Le,Ke,ut,At)=>{const nn=ree(ut,r,g,Le,At);vh.fold(nn,un=>{oe.push(...un)},un=>{H[Ke]=un})},(Le,Ke)=>{H[Le]=Ke(g)});return oe.length>0?vh.serror(oe):vh.svalue(H)},Z9=r=>({extract:(H,oe)=>oee(H,oe,r),toString:()=>`obj{ +`+ye(r,oe=>G$(oe,(be,Le,Ke,ut)=>be+" -> "+ut.toString(),(be,Le)=>"state("+be+")")).join(` +`)+"}"}),q9=r=>({extract:(H,oe)=>{const be=ye(oe,(Le,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Le));return XJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),J$=r=>H9(g=>r(g).fold(vh.serror,vh.svalue)),eV=(r,g,B)=>{const H=g.extract([r],B);return vh.mapError(H,oe=>({input:B,errors:oe}))},iee=(r,g,B)=>vh.toResult(eV(r,g,B)),aee=r=>`Errors: `+t_(r.errors).join(` `)+` -Input object: `+EA(r.input),eV=(r,g)=>PA(r,ht(g,Z9)),aee=$(KJ),H5=(r,g)=>H9(B=>{const H=typeof B;return r(B)?vh.svalue(B):vh.serror(`Expected type: ${g} but got: ${H}`)}),see=H5(L,"number"),Z5=H5(v,"string"),lee=H5(R,"boolean"),IA=H5(A,"function"),AS=XJ,tV=GJ,cee=r=>K$(g=>ce(r,g)?Vs.value(g):Vs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),nV=(r,g)=>AS(r,r,Q9(),g),rV=r=>nV(r,Z5),W9=r=>nV(r,IA),uee=(r,g)=>AS(r,r,Q9(),q9(g)),Y9=(r,g)=>AS(r,r,W$(),g),q5=r=>Y9(r,Z5),fee=r=>Y9(r,IA),dee=(r,g)=>AS(r,r,q$(g),aee()),sO=(r,g,B)=>AS(r,r,q$(g),B),oV=(r,g)=>sO(r,g,see),hee=(r,g)=>sO(r,g,Z5),iV=(r,g,B)=>sO(r,g,cee(B)),DA=(r,g)=>sO(r,g,lee),BA=(r,g)=>sO(r,g,IA),pee=(r,g,B)=>sO(r,g,q9(B)),mee=rV("type"),gee=W9("fetch"),X9=W9("onAction"),vee=BA("onSetup",()=>k),yee=q5("text"),bee=q5("icon"),xee=q5("tooltip"),Ufe=q5("label"),_ee=DA("active",!1),zA=DA("enabled",!0),G9=DA("primary",!1),aV=r=>dee("columns",r),W5=r=>hee("type",r),sV=Z9([mee,rV("trigger"),oV("minChars",1),aV(1),oV("maxResults",10),fee("matches"),gee,X9,pee("highlightOn",[],Z5)]),lV=r=>oee("Autocompleter",sV,r),K9=[zA,xee,bee,yee,vee],cV=[_ee].concat(K9),wee=[BA("predicate",re),iV("scope","node",["node","editor"]),iV("position","selection",["node","selection","line"])],uV=K9.concat([W5("contextformbutton"),G9,X9,tV("original",Q)]),Oee=cV.concat([W5("contextformbutton"),G9,X9,tV("original",Q)]),J9=K9.concat([W5("contextformbutton")]),See=cV.concat([W5("contextformtogglebutton")]),kee=eV("type",{contextformbutton:uV,contextformtogglebutton:Oee});Z9([W5("contextform"),BA("initValue",$("")),Ufe,uee("commands",kee),Y9("launch",eV("type",{contextformbutton:J9,contextformtogglebutton:See}))].concat(wee));const Tee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Le=>lV(Le).fold(Ke=>{throw new Error(iee(Ke))},Q)),H=Pn(ln(B,Le=>Le.trigger)),oe=tn(B);return{dataset:B,triggers:H,lookupByTrigger:Le=>Te(oe,Ke=>Ke.trigger===Le)}},fV=(r,g)=>{const B=jh(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const oe=H.which;oe===8?B.throttle():oe===27?(B.cancel(),g.cancelIfNecessary()):(oe===38||oe===40)&&B.cancel()},!0),r.on("remove",B.cancel)},Cee=r=>{const g=Ts(),B=Ar(!1),H=g.isSet,oe=()=>{H()&&(HC(r),B.set(!1),g.clear())},be=un=>{H()||g.set({trigger:un.trigger,matchLength:un.text.length})},Le=_t(()=>Tee(r)),Ke=un=>g.get().map(yn=>MA(r.dom,r.selection.getRng(),yn.trigger,!0).bind(Qn=>F9(r,Le,Qn,un))).getOrThunk(()=>UJ(r,Le)),ut=un=>{Ke(un).fold(oe,yn=>{be(yn.context),yn.lookupData.then(Qn=>{g.get().map(rr=>{const Wn=yn.context;rr.trigger===Wn.trigger&&(g.set({...rr,matchLength:Wn.text.length}),B.get()?(QC(r,{range:Wn.range}),jC(r,{lookupData:Qn})):(B.set(!0),QC(r,{range:Wn.range}),iE(r,{lookupData:Qn})))})})})},At=(un,yn)=>{const Qn=un.compareBoundaryPoints(window.Range.START_TO_START,yn),rr=un.compareBoundaryPoints(window.Range.END_TO_END,yn);return Qn>=0&&rr<=0},nn=()=>g.get().bind(({trigger:un})=>{const yn=r.selection.getRng();return MA(r.dom,yn,un,B.get()).filter(({range:Qn})=>At(yn,Qn)).map(({range:Qn})=>Qn)});r.addCommand("mceAutocompleterReload",(un,yn)=>{const Qn=_(yn)?yn.fetchOptions:{};ut(Qn)}),r.addCommand("mceAutocompleterClose",oe),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{nn().each(un=>{QC(r,{range:un})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>nn().isSome()),fV(r,{cancelIfNecessary:oe,load:ut})},Aee=zn().browser.isSafari(),dV=r=>xp(_r.fromDom(r)),hV=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},qf=(r,g)=>Y.from(r.getParent(g.container(),"details")),zv=(r,g)=>qf(r,g).isSome(),Mee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const oe=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:oe,startDetails:B,endDetails:H})}else return Y.none()},Qfe=(r,g)=>ph(g).exists(B=>B.isEqual(r)),Eee=(r,g)=>Ym(g).exists(B=>gn(B.getNode())&&Up(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),Pee=(r,g)=>g.startSummary.exists(B=>Qfe(r,B)),Ree=(r,g)=>g.startSummary.exists(B=>Eee(r,B)),Lee=(r,g)=>g.startDetails.exists(B=>Up(B,r).forall(H=>g.startSummary.exists(oe=>!oe.contains(r.container())&&oe.contains(H.container())))),pV=(r,g,B)=>B.startDetails.exists(H=>Sp(r,g).forall(oe=>!H.contains(oe.container()))),lO=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},Iee=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const oe=r.dom.select("summary",H)[0];oe&&(B?ph(oe):Ym(oe)).each(Le=>lO(r,Le))}else lO(r,g)},Dee=(r,g)=>{const B=ut=>ut.contains(r.startContainer),H=ut=>ut.contains(r.endContainer),oe=g.startSummary.exists(B),be=g.startSummary.exists(H),Le=g.startDetails.forall(ut=>g.endDetails.forall(At=>ut!==At));return(oe||be)&&!(oe&&be)||Le},mV=(r,g,B)=>{const{dom:H,selection:oe}=r,be=r.getBody();if(B==="character"){const Le=vo.fromRangeStart(oe.getRng()),Ke=H.getParent(Le.container(),H.isBlock),ut=qf(H,Le),At=Ke&&H.isEmpty(Ke),nn=x(Ke==null?void 0:Ke.previousSibling),un=x(Ke==null?void 0:Ke.nextSibling);return At&&(g?un:nn)&&Ub(!g,be,Le).exists(rr=>zv(H,rr)&&!Ds(ut,qf(H,rr)))?!0:Ub(g,be,Le).fold(re,yn=>{const Qn=qf(H,yn);if(zv(H,yn)&&!Ds(ut,Qn)){if(g||Iee(r,yn,!1),Ke&&At){if(g&&nn)return!0;if(!g&&un)return!0;Iee(r,yn,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},Nv=(r,g,B,H)=>{const be=r.selection.getRng(),Le=vo.fromRangeStart(be),Ke=r.getBody();return H==="selection"?Dee(be,g):B?Ree(Le,g)||pV(Ke,Le,g):Pee(Le,g)||Lee(Le,g)},Bee=(r,g,B)=>Mee(r.dom,r.selection.getRng()).fold(()=>mV(r,g,B),H=>Nv(r,H,g,B)||mV(r,g,B)),zee=(r,g,B)=>{const H=r.selection,oe=H.getNode(),be=H.getRng(),Le=vo.fromRangeStart(be);return Wo(oe)?(B==="selection"&&hV(be,oe)||Fw(g,Le,oe)?dV(oe):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ut,anchorOffset:At,focusNode:nn,focusOffset:un}=Ke??{};const yn=()=>{P(ut)&&P(At)&&P(nn)&&P(un)&&(Ke==null||Ke.setBaseAndExtent(ut,At,nn,un))},Qn=()=>{ut=Ke==null?void 0:Ke.anchorNode,At=Ke==null?void 0:Ke.anchorOffset,nn=Ke==null?void 0:Ke.focusNode,un=Ke==null?void 0:Ke.focusOffset},rr=(ur,Tr)=>{ve(ur.childNodes,Wr=>{C3(Wr)&&Tr.appendChild(Wr)})},Wn=r.dom.create("span",{"data-mce-bogus":"1"});rr(oe,Wn),oe.appendChild(Wn),yn(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&hV(H.getRng(),Wn)?dV(oe):(r.execCommand(g?"ForwardDelete":"Delete"),Qn(),rr(Wn,oe),yn()),r.dom.remove(Wn)}),!0):!1},n_=(r,g,B)=>Bee(r,g,B)||Aee&&zee(r,g,B)?Y.some(k):Y.none(),gV=r=>(g,B,H={})=>{const oe=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:oe,currentTarget:oe,eventPhase:Event.AT_TARGET,originalTarget:oe,explicitOriginalTarget:oe,isTrusted:!1,srcElement:oe,cancelable:!1,preventDefault:k,inputType:B},Le=Sh(new InputEvent(r));return g.dispatch(r,{...Le,...be,...H})},cO=gV("input"),D0=gV("beforeinput"),eR=zn(),tR=eR.os,vV=tR.isMacOS()||tR.isiOS(),rR=eR.browser.isFirefox(),yV=(r,g,B)=>{const H=B.keyCode===Jo.BACKSPACE?"deleteContentBackward":"deleteContentForward",oe=r.selection.isCollapsed(),be=oe?"character":"selection",Le=Ke=>oe?Ke?"word":"line":"selection";A$([{keyCode:Jo.BACKSPACE,action:$a(Ug,r)},{keyCode:Jo.BACKSPACE,action:$a(S5,r,!1)},{keyCode:Jo.DELETE,action:$a(S5,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(Ny,r,!1)},{keyCode:Jo.DELETE,action:$a(Ny,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(r9,r,g,!1)},{keyCode:Jo.DELETE,action:$a(r9,r,g,!0)},{keyCode:Jo.BACKSPACE,action:$a($k,r,!1)},{keyCode:Jo.DELETE,action:$a($k,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(n_,r,!1,be)},{keyCode:Jo.DELETE,action:$a(n_,r,!0,be)},...vV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,altKey:!0,action:$a(n_,r,!0,Le(!0))},{keyCode:Jo.BACKSPACE,metaKey:!0,action:$a(n_,r,!1,Le(!1))}]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(n_,r,!0,Le(!0))}],{keyCode:Jo.BACKSPACE,action:$a(Vg,r,!1)},{keyCode:Jo.DELETE,action:$a(Vg,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(u9,r,!1)},{keyCode:Jo.DELETE,action:$a(u9,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(dA,r,!1)},{keyCode:Jo.DELETE,action:$a(dA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(ux,r,!1)},{keyCode:Jo.DELETE,action:$a(ux,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(SA,r,!1)},{keyCode:Jo.DELETE,action:$a(SA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(j7,r,!1)},{keyCode:Jo.DELETE,action:$a(j7,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),D0(r,H).isDefaultPrevented()||(Ke(),cO(r,H))})},bV=(r,g,B)=>B5([{keyCode:Jo.BACKSPACE,action:$a($7,r)},{keyCode:Jo.DELETE,action:$a($7,r)},...vV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,altKey:!0,action:$a(L5,r)},...B?[{keyCode:rR?224:91,action:$a(L5,r)}]:[]]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(L5,r)}]],g),Nee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Jo.BACKSPACE,H.isDefaultPrevented()||yV(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||bV(r,H,B),B=!1})},Fee=r=>{for(;r;){if(ne(r)||Mt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},MS=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=Fee(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Pc),g.firstChild)}const oe=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new Xl(g,g);let Le=g,Ke;for(;Ke=be.current();){if(Mt(Ke)){oe.setStart(Ke,0),oe.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){oe.setStartBefore(Ke),oe.setEndBefore(Ke);break}Le=Ke,Ke=be.next()}Ke||(oe.setStart(Le,0),oe.setEnd(Le,0))}else gn(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)):(oe.setStart(g,0),oe.setEnd(g,0));r.selection.setRng(oe),kk(r,oe)},Y5=(r,g)=>{const B=r.getRoot();let H,oe=g;for(;oe!==B&&oe&&r.getContentEditable(oe)!=="false";){if(r.getContentEditable(oe)==="true"){H=oe;break}oe=oe.parentNode}return oe!==B?H:B},oR=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),xV=r=>oR(r).fold($(""),g=>g.nodeName.toUpperCase()),$ee=r=>oR(r).filter(g=>av(_r.fromDom(g))).isSome(),iR=r=>{r.innerHTML='
    '},Vee=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ut=>{const nn={...Gc(_r.fromDom(g)),...ut};H.setStyles(g,nn)});const oe=Y.from(B.class).map(ut=>ut.split(/\s+/)),be=Y.from(g.className).map(ut=>Te(ut.split(/\s+/),At=>At!==""));zi(oe,be,(ut,At)=>{const nn=Te(At,yn=>!ce(ut,yn)),un=[...ut,...nn];H.setAttrib(g,"class",un.join(" "))});const Le=["style","class"],Ke=Yt(B,(ut,At)=>!ce(Le,At));H.setAttribs(g,Ke)},X5=(r,g)=>{if(tu(r).toLowerCase()===g.tagName.toLowerCase()){const H=qd(r);Vee(r,g,H)}},_V=(r,g,B,H,oe=!0,be,Le)=>{const Ke=r.dom,ut=r.schema,At=tu(r),nn=B?B.nodeName.toUpperCase():"";let un=g;const yn=ut.getTextInlineElements();let Qn;be||nn==="TABLE"||nn==="HR"?Qn=Ke.create(be||At,Le||{}):Qn=B.cloneNode(!1);let rr=Qn;if(!oe)Ke.setAttrib(Qn,"style",null),Ke.setAttrib(Qn,"class",null);else do if(yn[un.nodeName]){if(Xm(un)||pm(un))continue;const Wn=un.cloneNode(!1);Ke.setAttrib(Wn,"id",""),Qn.hasChildNodes()?(Wn.appendChild(Qn.firstChild),Qn.appendChild(Wn)):(rr=Wn,Qn.appendChild(Wn))}while((un=un.parentNode)&&un!==H);return X5(r,Qn),iR(rr),Qn},wV=(r,g)=>r.dom.getParent(g,po),OV=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const oe=H.parentElement;if(!oe||!B(oe))return po(oe);H=oe}return!1},Uee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===tu(r)&&r.dom.isEmpty(B)&&OV(r.getBody(),B,H=>Ot(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),jee=(r,g,B)=>{var H,oe,be;const Le=g(tu(r)),Ke=wV(r,B);Ke&&(r.dom.insertAfter(Le,Ke),MS(r,Le),((be=(oe=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||oe===void 0?void 0:oe.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Hfe=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,aR=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},SV=(r,g)=>{const B=r==null?void 0:r.parentNode;return P(B)&&B.nodeName===g},kV=r=>P(r)&&/^(OL|UL|LI)$/.test(r.nodeName),sR=r=>P(r)&&/^(LI|DT|DD)$/.test(r.nodeName),TV=r=>kV(r)&&kV(r.parentNode),NA=r=>{const g=r.parentNode;return sR(g)?g:r},G5=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},CV=r=>Ie(ln(Gc(_r.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Qee=(r,g,B,H,oe)=>{const be=r.dom,Le=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;TV(B)&&(oe="LI");const ut=sR(H)?CV(H):void 0;let At=sR(H)&&ut?g(oe,{style:CV(H)}):g(oe);if(G5(B,H,!0)&&G5(B,H,!1))if(SV(B,"LI")){const nn=NA(B);be.insertAfter(At,nn),aR(B)?be.remove(nn):be.remove(B)}else be.replace(At,B);else if(G5(B,H,!0))SV(B,"LI")?(be.insertAfter(At,NA(B)),At.appendChild(be.doc.createTextNode(" ")),At.appendChild(B)):Ke.insertBefore(At,B),be.remove(H);else if(G5(B,H,!1))be.insertAfter(At,NA(B)),be.remove(H);else{B=NA(B);const nn=Le.cloneRange();nn.setStartAfter(H),nn.setEndAfter(B);const un=nn.extractContents();if(oe==="LI"&&Hfe(un,"LI")){const yn=Te(ye(At.children,_r.fromDom),X(Jl("br")));At=un.firstChild,be.insertAfter(un,B),ve(yn,Qn=>jd(_r.fromDom(At),Qn)),ut&&At.setAttribute("style",ut)}else be.insertAfter(un,B),be.insertAfter(At,B);be.remove(H)}MS(r,At)},Zfe=r=>{ve(Aa(_r.fromDom(r),Ml),g=>{const B=g.dom;B.nodeValue=Sd(B.data)})},up=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Hee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),lR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,cR=(r,g)=>P(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",Zee=(r,g,B)=>{var H;const oe=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&oe.push(be)}let Le=oe.length;for(;Le--;)be=oe[Le],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Hee(r,be))&&r.remove(be)},uR=(r,g,B)=>Mt(g)?r?B===1&&g.data.charAt(B-1)===Ou?0:B:B===g.data.length-1&&g.data.charAt(B)===Ou?g.data.length:B:B,qee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,uR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,uR(!1,r.endContainer,r.endOffset)),g},Wee=r=>{let g=r;do Mt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},FA=(r,g,B,H,oe)=>{var be,Le;const Ke=r.dom,ut=(be=Y5(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let At=Ke.getParent(H,Ke.isBlock);if(!At||!cR(Ke,At)){if(At=At||ut,!At.hasChildNodes()){const Qn=Ke.create(g);return X5(r,Qn),At.appendChild(Qn),B.setStart(Qn,0),B.setEnd(Qn,0),Qn}let nn=H;for(;nn&&nn.parentNode!==At;)nn=nn.parentNode;let un;for(;nn&&!Ke.isBlock(nn);)un=nn,nn=nn.previousSibling;const yn=(Le=un==null?void 0:un.parentElement)===null||Le===void 0?void 0:Le.nodeName;if(un&&yn&&r.schema.isValidChild(yn,g.toLowerCase())){const Qn=un.parentNode,rr=Ke.create(g);for(X5(r,rr),Qn.insertBefore(rr,un),nn=un;nn&&!Ke.isBlock(nn);){const Wn=nn.nextSibling;rr.appendChild(nn),nn=Wn}B.setStart(H,oe),B.setEnd(H,oe)}}return H},Yee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},Xee=(r,g)=>{const B=Lu(r);return T(g)?!1:v(B)?ce(To.explode(B),g.nodeName.toLowerCase()):B},EV={insert:(r,g)=>{let B,H,oe,be,Le=!1;const Ke=r.dom,ut=r.schema,At=ut.getNonEmptyElements(),nn=r.selection.getRng(),un=tu(r),yn=_r.fromDom(nn.startContainer),Qn=gs(yn,nn.startOffset),rr=Qn.exists(Vo=>Al(Vo)&&!Ol(Vo)),Wn=nn.collapsed&&rr,ur=(Vo,Fi)=>_V(r,B,li,Zo,gv(r),Vo,Fi),Tr=Vo=>{const Fi=uR(Vo,B,H);if(Mt(B)&&(Vo?Fi>0:Fi{let Vo;return/^(H[1-6]|PRE|FIGURE)$/.test(oe)&&Mi!=="HGROUP"?Vo=ur(un):Vo=ur(),Xee(r,be)&&cR(Ke,be)&&Ke.isEmpty(li,void 0,{includeZwsp:!0})?Vo=Ke.split(be,li):Ke.insertAfter(Vo,li),MS(r,Vo),Vo};fi(Ke,nn).each(Vo=>{nn.setStart(Vo.startContainer,Vo.startOffset),nn.setEnd(Vo.endContainer,Vo.endOffset)}),B=nn.startContainer,H=nn.startOffset;const Qr=!!(g&&g.shiftKey),lo=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Wn&&(Le=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Le&&Mt(B)?H=B.data.length:H=0);const Zo=Y5(Ke,B);if(!Zo||up(r,B))return;Qr||(B=FA(r,un,nn,B,H));let li=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=P(li==null?void 0:li.parentNode)?Ke.getParent(li.parentNode,Ke.isBlock):null,oe=li?li.nodeName.toUpperCase():"";const Mi=be?be.nodeName.toUpperCase():"";if(Mi==="LI"&&!lo){const Vo=be;li=Vo,be=Vo.parentNode,oe=Mi}if(ne(be)&&Uee(r,Qr,li))return jee(r,ur,li);if(/^(LI|DT|DD)$/.test(oe)&&ne(be)&&Ke.isEmpty(li)){Qee(r,ur,be,li,un);return}if(!Wn&&(li===r.getBody()||!cR(Ke,li)))return;const Co=li.parentNode;let yo;if(Wn)yo=ur(un),Qn.fold(()=>{ii(yn,_r.fromDom(yo))},Vo=>{xc(Vo,_r.fromDom(yo))}),r.selection.setCursorLocation(yo,0);else if(Vm(li))yo=Ch(li),Ke.isEmpty(li)&&iR(li),X5(r,yo),MS(r,yo);else if(Tr(!1))yo=Wr();else if(Tr(!0)&&Co){const Vo=vo.fromRangeStart(nn),Fi=Ek(Vo),la=_r.fromDom(li),Ms=u6(la,Vo,r.schema)?TB(la,Vo,r.schema).bind(Vl=>Y.from(Vl.getNode())):Y.none();yo=Co.insertBefore(ur(),li);const wl=lR(li,"HR")||Fi?yo:Ms.getOr(li);MS(r,wl)}else{const Vo=qee(nn).cloneRange();Vo.setEndAfter(li);const Fi=Vo.extractContents();Zfe(Fi),Wee(Fi),yo=Fi.firstChild,Ke.insertAfter(Fi,li),Zee(Ke,At,yo),Yee(Ke,li),Ke.isEmpty(li)&&iR(li),yo.normalize(),Ke.isEmpty(yo)?(Ke.remove(yo),Wr()):(X5(r,yo),MS(r,yo))}Ke.setAttrib(yo,"id",""),r.dispatch("NewBlock",{newBlock:yo})},fakeEventName:"insertParagraph"},qfe=(r,g,B)=>{const H=new Xl(g,B);let oe;const be=r.getNonEmptyElements();for(;oe=H.next();)if(be[oe.nodeName.toLowerCase()]||Mt(oe)&&oe.length>0)return!0;return!1},Gee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),kk(r,H)},Wfe=(r,g)=>{const B=r.selection,H=r.dom,oe=B.getRng();let be,Le=!1;fi(H,oe).each(Qn=>{oe.setStart(Qn.startContainer,Qn.startOffset),oe.setEnd(Qn.endContainer,Qn.endOffset)});let Ke=oe.startOffset,ut=oe.startContainer;if(ne(ut)&&ut.hasChildNodes()){const Qn=Ke>ut.childNodes.length-1;ut=ut.childNodes[Math.min(Ke,ut.childNodes.length-1)]||ut,Qn&&Mt(ut)?Ke=ut.data.length:Ke=0}let At=H.getParent(ut,H.isBlock);const nn=At&&At.parentNode?H.getParent(At.parentNode,H.isBlock):null,un=nn?nn.nodeName.toUpperCase():"",yn=!!(g&&g.ctrlKey);un==="LI"&&!yn&&(At=nn),Mt(ut)&&Ke>=ut.data.length&&(qfe(r.schema,ut,At||H.getRoot())||(be=H.create("br"),oe.insertNode(be),oe.setStartAfter(be),oe.setEndAfter(be),Le=!0)),be=H.create("br"),ue(H,oe,be),Gee(r,be,Le),r.undoManager.add()},Kee=(r,g)=>{const B=_r.fromTag("br");xc(_r.fromDom(g),B),r.undoManager.add()},Jee=(r,g)=>{ete(r.getBody(),g)||Kc(_r.fromDom(g),_r.fromTag("br"));const B=_r.fromTag("br");Kc(_r.fromDom(g),B),Gee(r,B.dom,!1),r.undoManager.add()},Yfe=r=>gn(r.getNode()),ete=(r,g)=>Yfe(vo.after(g))?!0:Sp(r,vo.after(g)).map(B=>gn(B.getNode())).getOr(!1),I1=r=>r&&r.nodeName==="A"&&"href"in r,tte=r=>r.fold(re,I1,I1,re),PV=r=>{const g=U(Nw,r),B=vo.fromRangeStart(r.selection.getRng());return $y(g,r.getBody(),B).filter(tte)},nte=(r,g)=>{g.fold(k,U(Kee,r),U(Jee,r),k)},RV={insert:(r,g)=>{const B=PV(r);B.isSome()?B.each(U(nte,r)):Wfe(r,g)},fakeEventName:"insertLineBreak"},LV=(r,g)=>oR(r).filter(B=>g.length>0&&yd(_r.fromDom(B),g)).isSome(),rte=r=>LV(r,d1(r)),ote=r=>LV(r,t2(r)),_m=kl.generate([{br:[]},{block:[]},{none:[]}]),IV=(r,g)=>ote(r),K5=r=>(g,B)=>$ee(g)===r,DV=(r,g)=>(B,H)=>xV(B)===r.toUpperCase()===g,ite=r=>{const g=Y5(r.dom,r.selection.getStart());return T(g)},J5=r=>DV("pre",r),ate=()=>DV("summary",!0),$A=r=>(g,B)=>Qf(g)===r,BV=(r,g)=>rte(r),VA=(r,g)=>g,zV=r=>{const g=tu(r),B=Y5(r.dom,r.selection.getStart());return P(B)&&r.schema.isValidChild(B.nodeName,g)},NV=r=>{const g=r.selection.getRng(),B=_r.fromDom(g.startContainer),oe=gs(B,g.startOffset).map(be=>Al(be)&&!Ol(be));return g.collapsed&&oe.getOr(!0)},B0=(r,g)=>(B,H)=>Ie(r,(be,Le)=>be&&Le(B,H),!0)?Y.some(g):Y.none(),ste=(r,g)=>LF([B0([IV],_m.none()),B0([J5(!0),ite],_m.none()),B0([ate()],_m.br()),B0([J5(!0),$A(!1),VA],_m.br()),B0([J5(!0),$A(!1)],_m.block()),B0([J5(!0),$A(!0),VA],_m.block()),B0([J5(!0),$A(!0)],_m.br()),B0([K5(!0),VA],_m.br()),B0([K5(!0)],_m.block()),B0([BV],_m.br()),B0([VA],_m.br()),B0([zV],_m.block()),B0([NV],_m.block())],[r,!!(g&&g.shiftKey)]).getOr(_m.none()),ES=(r,g,B)=>{g.selection.isCollapsed()||UW(g),!(P(B)&&D0(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),P(B)&&cO(g,r.fakeEventName))},FV=(r,g)=>{const B=()=>ES(RV,r,g),H=()=>ES(EV,r,g),oe=ste(r,g);switch(Cd(r)){case"linebreak":oe.fold(B,B,k);break;case"block":oe.fold(H,H,k);break;case"invert":oe.fold(H,B,k);break;default:oe.fold(B,H,k);break}},$V=zn(),UA=$V.os.isiOS()&&$V.browser.isSafari(),VV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),s7(r.undoManager),r.undoManager.transact(()=>{FV(r,g)}))},fR=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Mt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},dR=r=>{let g=Y.none();const B=oe=>{g=Y.some(oe.selection.getBookmark()),oe.undoManager.add()},H=(oe,be)=>{oe.undoManager.undo(),g.fold(k,Le=>oe.selection.moveToBookmark(Le)),VV(oe,be),g=Y.none()};r.on("keydown",oe=>{oe.keyCode===Jo.ENTER&&(UA&&fR(r.selection.getRng())?B(r):VV(r,oe))}),r.on("keyup",oe=>{oe.keyCode===Jo.ENTER&&g.each(()=>H(r,oe))})},UV=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.END,action:$a(O$,r,!0)},{keyCode:Jo.HOME,action:$a(O$,r,!1)},...H?[]:[{keyCode:Jo.HOME,action:$a(I5,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Jo.END,action:$a(I5,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Jo.END,action:$a(lJ,r,!0)},{keyCode:Jo.HOME,action:$a(lJ,r,!1)},{keyCode:Jo.END,action:$a(_A,r,!0,g)},{keyCode:Jo.HOME,action:$a(_A,r,!1,g)}],B).each(oe=>{B.preventDefault()})},lte=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||UV(r,g,B)})},Kfe=r=>{r.on("input",g=>{g.isComposing||CW(r)})},r_=zn(),cte=(r,g,B)=>{B5([{keyCode:Jo.PAGE_UP,action:$a(_A,r,!1,g)},{keyCode:Jo.PAGE_DOWN,action:$a(_A,r,!0,g)}],B)},jV=r=>r.stopImmediatePropagation(),QV=r=>r.keyCode===Jo.PAGE_UP||r.keyCode===Jo.PAGE_DOWN,eT=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",jV,!0):!B&&r.get()&&g.off("NodeChange",jV),r.set(B)},HV=(r,g)=>{if(r_.os.isMacOS())return;const B=Ar(!1);r.on("keydown",H=>{QV(H)&&eT(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||cte(r,g,H),QV(H)&&B.get()&&(eT(B,r,!1),r.nodeChanged())})},ZV=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!kE(r.dom,B)))&&g.preventDefault()})},qV=(r,g)=>{const B=g.container(),H=g.offset();return Mt(B)?(B.insertData(H,r),Y.some(vo(B,H+r.length))):h3(g).map(oe=>{const be=_r.fromText(r);return g.isAtEnd()?Kc(oe,be):xc(oe,be),vo(be.dom,r.length)})},hR=U(qV,Pc),WV=U(qV," "),ute=(r,g,B)=>RB(r,g,B)?hR(g):WV(g),fte=r=>g=>g.fold(B=>Up(r.dom,vo.before(B)),B=>ph(B),B=>Ym(B),B=>Sp(r.dom,vo.after(B))),pR=(r,g,B)=>H=>RB(r,H,B)?hR(g):WV(g),jA=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},dte=(r,g)=>r.isEditable(r.getParent(g,"summary")),mR=r=>{const g=vo.fromRangeStart(r.selection.getRng()),B=_r.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(Nw,r),oe=vo.fromRangeStart(r.selection.getRng());return $y(H,r.getBody(),oe).bind(fte(B)).map(be=>()=>pR(B,g,r.schema)(be).each(jA(r)))}else return Y.none()},YV=r=>{const g=()=>{const B=_r.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=vo.fromRangeStart(r.selection.getRng());ute(B,H,r.schema).each(jA(r))};return Bs(Nr.browser.isFirefox()&&r.selection.isEditable()&&dte(r.dom,r.selection.getRng().startContainer),g)},QA=(r,g)=>{A$([{keyCode:Jo.SPACEBAR,action:$a(mR,r)},{keyCode:Jo.SPACEBAR,action:$a(YV,r)}],g).each(B=>{g.preventDefault(),D0(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),cO(r,"insertText",{data:" "}))})},XV=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||QA(r,g)})},GV=r=>f2(r)?[{keyCode:Jo.TAB,action:$a($5,r,!0)},{keyCode:Jo.TAB,shiftKey:!0,action:$a($5,r,!1)}]:[],hte=(r,g)=>{B5([...GV(r)],g).each(B=>{g.preventDefault()})},pte=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||hte(r,g)})},HA=r=>{if(r.addShortcut("Meta+P","","mcePrint"),Cee(r),By(r))return Ar(null);{const g=CK(r);return ZV(r),eJ(r),I9(r,g),Nee(r,g),dR(r),XV(r),Kfe(r),pte(r),lte(r,g),HV(r,g),g}};class KV{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",oe=>{const be=g.selection.getRng(),Le={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(oe.type==="nodechange"||!Ct(Le,B))&&g.dispatch("SelectionChange"),B=Le}),g.on("contextmenu",()=>{Tk(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const oe=g.selection.getStart(!0);oe&&T2(g)&&!H.isSameElementPath(oe)&&g.dom.isChildOf(oe,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",oe=>{!oe.isDefaultPrevented()&&T2(g)&&(g.selection.getNode().nodeName==="IMG"?Ig.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!$p(this.editor)&&!this.editor.mode.isReadOnly()){const oe=this.editor.getBody();H=B.getStart(!0)||oe,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,oe))&&(H=oe);const be=[];this.editor.dom.getParent(H,Le=>Le===oe?!0:(be.push(Le),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,oe=ke(H.dom.getParents(g,q,H.getBody()));if(oe.length===this.lastPath.length){for(B=oe.length;B>=0&&oe[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=oe,!0}return this.lastPath=oe,!1}}const JV=yb("image"),mte=r=>{const g=r;return Y.from(g[JV])},eU=(r,g)=>{const B=r;B[JV]=g},gR=yb("event"),gte=r=>{const g=r;return Y.from(g[gR])},ZA=r=>g=>{const B=g;B[gR]=r},vte=(r,g)=>ZA(g)(r),tU=ZA(0),nU=ZA(2),yte=ZA(1),xte=(r=>g=>{const B=g;return Y.from(B[gR]).exists(H=>H===r)})(0),_te=()=>Object.freeze({length:0,item:r=>null}),vR=yb("mode"),wte=r=>{const g=r;return Y.from(g[vR])},qA=r=>g=>{const B=g;B[vR]=r},uO=(r,g)=>qA(g)(r),rU=qA(0),yR=qA(2),oU=qA(1),iU=r=>g=>{const B=g;return Y.from(B[vR]).exists(H=>H===r)},PS=iU(0),aU=iU(1),sU=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(PS(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{PS(r)&&g.remove(B)},clear:()=>{PS(r)&&g.clear()}}),Ote=["none","copy","link","move"],Ste=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],lU=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(oe){ce(Ote,oe)&&(g=oe)},get effectAllowed(){return B},set effectAllowed(oe){xte(H)&&ce(Ste,oe)&&(B=oe)},get items(){return sU(H,r.items)},get files(){return aU(H)?_te():r.files},get types(){return r.types},setDragImage:(oe,be,Le)=>{PS(H)&&(eU(H,{image:oe,x:be,y:Le}),r.setDragImage(oe,be,Le))},getData:oe=>aU(H)?"":r.getData(oe),setData:(oe,be)=>{PS(H)&&r.setData(oe,be)},clearData:oe=>{PS(H)&&r.clearData(oe)}};return rU(H),H},WA=r=>{const g=lU(),B=wte(r);return yR(r),tU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,mte(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ve(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ve(r.files,H=>g.items.add(H)),gte(r).each(H=>{vte(g,H)}),B.each(H=>{uO(r,H),uO(g,H)}),g},kte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},cU=(r,g)=>r.setData("text/html",g),uU="x-tinymce/html",YA=$(uU),bR="",Tte=r=>bR+r,Cte=r=>r.replace(bR,""),fU=r=>r.indexOf(bR)!==-1,Ate=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Mte=(r,g)=>{let B="<"+r;const H=ln(g,(oe,be)=>be+'="'+Lm.encodeAllRaw(oe)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},Ete=(r,g,B)=>{const H=r.split(/\n\n/),oe=Mte(g,B),be="",Le=ye(H,ut=>ut.split(/\n/).join("
    ")),Ke=ut=>oe+ut+be;return Le.length===1?Le[0]:ye(Le,Ke).join("")},dU="%MCEPASTEBIN%",Pte=(r,g)=>{const{dom:B,selection:H}=r,oe=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},dU);Nr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(oe,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Le=>{Le.stopPropagation()}),be.focus(),H.select(be,!0)},Lc=(r,g)=>{const B=r.dom;if(xR(r)){let H;const oe=g.get();for(;H=xR(r);)B.remove(H),B.unbind(H);oe&&r.selection.setRng(oe)}g.set(null)},xR=r=>r.dom.get("mcepastebin"),hU=r=>P(r)&&r.id==="mcepastebin",Rte=r=>{const g=r.dom,B=(Le,Ke)=>{Le.appendChild(Ke),g.remove(Ke,!0)},[H,...oe]=Te(r.getBody().childNodes,hU);ve(oe,Le=>{B(H,Le)});const be=g.select("div[id=mcepastebin]",H);for(let Le=be.length-1;Le>=0;Le--){const Ke=g.create("div");H.insertBefore(Ke,be[Le]),B(Ke,be[Le])}return H?H.innerHTML:""},XA=r=>r===dU,pU=r=>{const g=Ar(null);return{create:()=>Pte(r,g),remove:()=>Lc(r,g),getEl:()=>xR(r),getHtml:()=>Rte(r),getLastRng:g.get}},mU=(r,g)=>(To.each(g,B=>{p(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),Lte=r=>{const g=zm(),B=fS({},g);let H="";const oe=g.getVoidElements(),be=To.makeMap("script noscript style textarea video audio iframe object"," "),Le=g.getBlockElements(),Ke=ut=>{const At=ut.name,nn=ut;if(At==="br"){H+=` +Input object: `+PA(r.input),tV=(r,g)=>RA(r,ht(g,Z9)),see=$(JJ),H5=(r,g)=>H9(B=>{const H=typeof B;return r(B)?vh.svalue(B):vh.serror(`Expected type: ${g} but got: ${H}`)}),lee=H5(L,"number"),Z5=H5(v,"string"),cee=H5(R,"boolean"),DA=H5(A,"function"),AS=GJ,nV=KJ,uee=r=>J$(g=>ce(r,g)?Vs.value(g):Vs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),rV=(r,g)=>AS(r,r,Q9(),g),oV=r=>rV(r,Z5),W9=r=>rV(r,DA),fee=(r,g)=>AS(r,r,Q9(),q9(g)),Y9=(r,g)=>AS(r,r,Y$(),g),q5=r=>Y9(r,Z5),dee=r=>Y9(r,DA),hee=(r,g)=>AS(r,r,W$(g),see()),sO=(r,g,B)=>AS(r,r,W$(g),B),iV=(r,g)=>sO(r,g,lee),pee=(r,g)=>sO(r,g,Z5),aV=(r,g,B)=>sO(r,g,uee(B)),BA=(r,g)=>sO(r,g,cee),zA=(r,g)=>sO(r,g,DA),mee=(r,g,B)=>sO(r,g,q9(B)),gee=oV("type"),vee=W9("fetch"),X9=W9("onAction"),yee=zA("onSetup",()=>k),bee=q5("text"),xee=q5("icon"),_ee=q5("tooltip"),Qfe=q5("label"),wee=BA("active",!1),NA=BA("enabled",!0),G9=BA("primary",!1),sV=r=>hee("columns",r),W5=r=>pee("type",r),lV=Z9([gee,oV("trigger"),iV("minChars",1),sV(1),iV("maxResults",10),dee("matches"),vee,X9,mee("highlightOn",[],Z5)]),cV=r=>iee("Autocompleter",lV,r),K9=[NA,_ee,xee,bee,yee],uV=[wee].concat(K9),Oee=[zA("predicate",re),aV("scope","node",["node","editor"]),aV("position","selection",["node","selection","line"])],fV=K9.concat([W5("contextformbutton"),G9,X9,nV("original",Q)]),See=uV.concat([W5("contextformbutton"),G9,X9,nV("original",Q)]),J9=K9.concat([W5("contextformbutton")]),kee=uV.concat([W5("contextformtogglebutton")]),Tee=tV("type",{contextformbutton:fV,contextformtogglebutton:See});Z9([W5("contextform"),zA("initValue",$("")),Qfe,fee("commands",Tee),Y9("launch",tV("type",{contextformbutton:J9,contextformtogglebutton:kee}))].concat(Oee));const Cee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Le=>cV(Le).fold(Ke=>{throw new Error(aee(Ke))},Q)),H=Pn(ln(B,Le=>Le.trigger)),oe=tn(B);return{dataset:B,triggers:H,lookupByTrigger:Le=>Te(oe,Ke=>Ke.trigger===Le)}},dV=(r,g)=>{const B=jh(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const oe=H.which;oe===8?B.throttle():oe===27?(B.cancel(),g.cancelIfNecessary()):(oe===38||oe===40)&&B.cancel()},!0),r.on("remove",B.cancel)},Aee=r=>{const g=Ts(),B=Ar(!1),H=g.isSet,oe=()=>{H()&&(ZC(r),B.set(!1),g.clear())},be=un=>{H()||g.set({trigger:un.trigger,matchLength:un.text.length})},Le=_t(()=>Cee(r)),Ke=un=>g.get().map(yn=>EA(r.dom,r.selection.getRng(),yn.trigger,!0).bind(Qn=>F9(r,Le,Qn,un))).getOrThunk(()=>jJ(r,Le)),ut=un=>{Ke(un).fold(oe,yn=>{be(yn.context),yn.lookupData.then(Qn=>{g.get().map(rr=>{const Wn=yn.context;rr.trigger===Wn.trigger&&(g.set({...rr,matchLength:Wn.text.length}),B.get()?(HC(r,{range:Wn.range}),QC(r,{lookupData:Qn})):(B.set(!0),HC(r,{range:Wn.range}),iE(r,{lookupData:Qn})))})})})},At=(un,yn)=>{const Qn=un.compareBoundaryPoints(window.Range.START_TO_START,yn),rr=un.compareBoundaryPoints(window.Range.END_TO_END,yn);return Qn>=0&&rr<=0},nn=()=>g.get().bind(({trigger:un})=>{const yn=r.selection.getRng();return EA(r.dom,yn,un,B.get()).filter(({range:Qn})=>At(yn,Qn)).map(({range:Qn})=>Qn)});r.addCommand("mceAutocompleterReload",(un,yn)=>{const Qn=_(yn)?yn.fetchOptions:{};ut(Qn)}),r.addCommand("mceAutocompleterClose",oe),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{nn().each(un=>{HC(r,{range:un})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>nn().isSome()),dV(r,{cancelIfNecessary:oe,load:ut})},Mee=zn().browser.isSafari(),hV=r=>xp(_r.fromDom(r)),pV=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},qf=(r,g)=>Y.from(r.getParent(g.container(),"details")),zv=(r,g)=>qf(r,g).isSome(),Eee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const oe=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:oe,startDetails:B,endDetails:H})}else return Y.none()},Zfe=(r,g)=>ph(g).exists(B=>B.isEqual(r)),Pee=(r,g)=>Ym(g).exists(B=>gn(B.getNode())&&Up(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),Ree=(r,g)=>g.startSummary.exists(B=>Zfe(r,B)),Lee=(r,g)=>g.startSummary.exists(B=>Pee(r,B)),Iee=(r,g)=>g.startDetails.exists(B=>Up(B,r).forall(H=>g.startSummary.exists(oe=>!oe.contains(r.container())&&oe.contains(H.container())))),mV=(r,g,B)=>B.startDetails.exists(H=>Sp(r,g).forall(oe=>!H.contains(oe.container()))),lO=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},Dee=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const oe=r.dom.select("summary",H)[0];oe&&(B?ph(oe):Ym(oe)).each(Le=>lO(r,Le))}else lO(r,g)},Bee=(r,g)=>{const B=ut=>ut.contains(r.startContainer),H=ut=>ut.contains(r.endContainer),oe=g.startSummary.exists(B),be=g.startSummary.exists(H),Le=g.startDetails.forall(ut=>g.endDetails.forall(At=>ut!==At));return(oe||be)&&!(oe&&be)||Le},gV=(r,g,B)=>{const{dom:H,selection:oe}=r,be=r.getBody();if(B==="character"){const Le=vo.fromRangeStart(oe.getRng()),Ke=H.getParent(Le.container(),H.isBlock),ut=qf(H,Le),At=Ke&&H.isEmpty(Ke),nn=x(Ke==null?void 0:Ke.previousSibling),un=x(Ke==null?void 0:Ke.nextSibling);return At&&(g?un:nn)&&Ub(!g,be,Le).exists(rr=>zv(H,rr)&&!Ds(ut,qf(H,rr)))?!0:Ub(g,be,Le).fold(re,yn=>{const Qn=qf(H,yn);if(zv(H,yn)&&!Ds(ut,Qn)){if(g||Dee(r,yn,!1),Ke&&At){if(g&&nn)return!0;if(!g&&un)return!0;Dee(r,yn,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},Nv=(r,g,B,H)=>{const be=r.selection.getRng(),Le=vo.fromRangeStart(be),Ke=r.getBody();return H==="selection"?Bee(be,g):B?Lee(Le,g)||mV(Ke,Le,g):Ree(Le,g)||Iee(Le,g)},zee=(r,g,B)=>Eee(r.dom,r.selection.getRng()).fold(()=>gV(r,g,B),H=>Nv(r,H,g,B)||gV(r,g,B)),Nee=(r,g,B)=>{const H=r.selection,oe=H.getNode(),be=H.getRng(),Le=vo.fromRangeStart(be);return Wo(oe)?(B==="selection"&&pV(be,oe)||Fw(g,Le,oe)?hV(oe):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ut,anchorOffset:At,focusNode:nn,focusOffset:un}=Ke??{};const yn=()=>{P(ut)&&P(At)&&P(nn)&&P(un)&&(Ke==null||Ke.setBaseAndExtent(ut,At,nn,un))},Qn=()=>{ut=Ke==null?void 0:Ke.anchorNode,At=Ke==null?void 0:Ke.anchorOffset,nn=Ke==null?void 0:Ke.focusNode,un=Ke==null?void 0:Ke.focusOffset},rr=(ur,Tr)=>{ve(ur.childNodes,Wr=>{C3(Wr)&&Tr.appendChild(Wr)})},Wn=r.dom.create("span",{"data-mce-bogus":"1"});rr(oe,Wn),oe.appendChild(Wn),yn(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&pV(H.getRng(),Wn)?hV(oe):(r.execCommand(g?"ForwardDelete":"Delete"),Qn(),rr(Wn,oe),yn()),r.dom.remove(Wn)}),!0):!1},n_=(r,g,B)=>zee(r,g,B)||Mee&&Nee(r,g,B)?Y.some(k):Y.none(),vV=r=>(g,B,H={})=>{const oe=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:oe,currentTarget:oe,eventPhase:Event.AT_TARGET,originalTarget:oe,explicitOriginalTarget:oe,isTrusted:!1,srcElement:oe,cancelable:!1,preventDefault:k,inputType:B},Le=kh(new InputEvent(r));return g.dispatch(r,{...Le,...be,...H})},cO=vV("input"),D0=vV("beforeinput"),eR=zn(),tR=eR.os,yV=tR.isMacOS()||tR.isiOS(),rR=eR.browser.isFirefox(),bV=(r,g,B)=>{const H=B.keyCode===Jo.BACKSPACE?"deleteContentBackward":"deleteContentForward",oe=r.selection.isCollapsed(),be=oe?"character":"selection",Le=Ke=>oe?Ke?"word":"line":"selection";M$([{keyCode:Jo.BACKSPACE,action:$a(Ug,r)},{keyCode:Jo.BACKSPACE,action:$a(S5,r,!1)},{keyCode:Jo.DELETE,action:$a(S5,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(Fy,r,!1)},{keyCode:Jo.DELETE,action:$a(Fy,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(r9,r,g,!1)},{keyCode:Jo.DELETE,action:$a(r9,r,g,!0)},{keyCode:Jo.BACKSPACE,action:$a($k,r,!1)},{keyCode:Jo.DELETE,action:$a($k,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(n_,r,!1,be)},{keyCode:Jo.DELETE,action:$a(n_,r,!0,be)},...yV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,altKey:!0,action:$a(n_,r,!0,Le(!0))},{keyCode:Jo.BACKSPACE,metaKey:!0,action:$a(n_,r,!1,Le(!1))}]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(n_,r,!0,Le(!0))}],{keyCode:Jo.BACKSPACE,action:$a(Vg,r,!1)},{keyCode:Jo.DELETE,action:$a(Vg,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(u9,r,!1)},{keyCode:Jo.DELETE,action:$a(u9,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(hA,r,!1)},{keyCode:Jo.DELETE,action:$a(hA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(ux,r,!1)},{keyCode:Jo.DELETE,action:$a(ux,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(kA,r,!1)},{keyCode:Jo.DELETE,action:$a(kA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(j7,r,!1)},{keyCode:Jo.DELETE,action:$a(j7,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),D0(r,H).isDefaultPrevented()||(Ke(),cO(r,H))})},xV=(r,g,B)=>B5([{keyCode:Jo.BACKSPACE,action:$a($7,r)},{keyCode:Jo.DELETE,action:$a($7,r)},...yV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,altKey:!0,action:$a(L5,r)},...B?[{keyCode:rR?224:91,action:$a(L5,r)}]:[]]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(L5,r)}]],g),Fee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Jo.BACKSPACE,H.isDefaultPrevented()||bV(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||xV(r,H,B),B=!1})},$ee=r=>{for(;r;){if(ne(r)||Mt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},MS=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=$ee(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Pc),g.firstChild)}const oe=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new Xl(g,g);let Le=g,Ke;for(;Ke=be.current();){if(Mt(Ke)){oe.setStart(Ke,0),oe.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){oe.setStartBefore(Ke),oe.setEndBefore(Ke);break}Le=Ke,Ke=be.next()}Ke||(oe.setStart(Le,0),oe.setEnd(Le,0))}else gn(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)):(oe.setStart(g,0),oe.setEnd(g,0));r.selection.setRng(oe),kk(r,oe)},Y5=(r,g)=>{const B=r.getRoot();let H,oe=g;for(;oe!==B&&oe&&r.getContentEditable(oe)!=="false";){if(r.getContentEditable(oe)==="true"){H=oe;break}oe=oe.parentNode}return oe!==B?H:B},oR=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),_V=r=>oR(r).fold($(""),g=>g.nodeName.toUpperCase()),Vee=r=>oR(r).filter(g=>av(_r.fromDom(g))).isSome(),iR=r=>{r.innerHTML='
    '},Uee=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ut=>{const nn={...Gc(_r.fromDom(g)),...ut};H.setStyles(g,nn)});const oe=Y.from(B.class).map(ut=>ut.split(/\s+/)),be=Y.from(g.className).map(ut=>Te(ut.split(/\s+/),At=>At!==""));zi(oe,be,(ut,At)=>{const nn=Te(At,yn=>!ce(ut,yn)),un=[...ut,...nn];H.setAttrib(g,"class",un.join(" "))});const Le=["style","class"],Ke=Yt(B,(ut,At)=>!ce(Le,At));H.setAttribs(g,Ke)},X5=(r,g)=>{if(tu(r).toLowerCase()===g.tagName.toLowerCase()){const H=qd(r);Uee(r,g,H)}},wV=(r,g,B,H,oe=!0,be,Le)=>{const Ke=r.dom,ut=r.schema,At=tu(r),nn=B?B.nodeName.toUpperCase():"";let un=g;const yn=ut.getTextInlineElements();let Qn;be||nn==="TABLE"||nn==="HR"?Qn=Ke.create(be||At,Le||{}):Qn=B.cloneNode(!1);let rr=Qn;if(!oe)Ke.setAttrib(Qn,"style",null),Ke.setAttrib(Qn,"class",null);else do if(yn[un.nodeName]){if(Xm(un)||pm(un))continue;const Wn=un.cloneNode(!1);Ke.setAttrib(Wn,"id",""),Qn.hasChildNodes()?(Wn.appendChild(Qn.firstChild),Qn.appendChild(Wn)):(rr=Wn,Qn.appendChild(Wn))}while((un=un.parentNode)&&un!==H);return X5(r,Qn),iR(rr),Qn},OV=(r,g)=>r.dom.getParent(g,po),SV=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const oe=H.parentElement;if(!oe||!B(oe))return po(oe);H=oe}return!1},jee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===tu(r)&&r.dom.isEmpty(B)&&SV(r.getBody(),B,H=>Ot(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Qee=(r,g,B)=>{var H,oe,be;const Le=g(tu(r)),Ke=OV(r,B);Ke&&(r.dom.insertAfter(Le,Ke),MS(r,Le),((be=(oe=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||oe===void 0?void 0:oe.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},qfe=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,aR=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},kV=(r,g)=>{const B=r==null?void 0:r.parentNode;return P(B)&&B.nodeName===g},TV=r=>P(r)&&/^(OL|UL|LI)$/.test(r.nodeName),sR=r=>P(r)&&/^(LI|DT|DD)$/.test(r.nodeName),CV=r=>TV(r)&&TV(r.parentNode),FA=r=>{const g=r.parentNode;return sR(g)?g:r},G5=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},AV=r=>Ie(ln(Gc(_r.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Hee=(r,g,B,H,oe)=>{const be=r.dom,Le=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;CV(B)&&(oe="LI");const ut=sR(H)?AV(H):void 0;let At=sR(H)&&ut?g(oe,{style:AV(H)}):g(oe);if(G5(B,H,!0)&&G5(B,H,!1))if(kV(B,"LI")){const nn=FA(B);be.insertAfter(At,nn),aR(B)?be.remove(nn):be.remove(B)}else be.replace(At,B);else if(G5(B,H,!0))kV(B,"LI")?(be.insertAfter(At,FA(B)),At.appendChild(be.doc.createTextNode(" ")),At.appendChild(B)):Ke.insertBefore(At,B),be.remove(H);else if(G5(B,H,!1))be.insertAfter(At,FA(B)),be.remove(H);else{B=FA(B);const nn=Le.cloneRange();nn.setStartAfter(H),nn.setEndAfter(B);const un=nn.extractContents();if(oe==="LI"&&qfe(un,"LI")){const yn=Te(ye(At.children,_r.fromDom),X(Jl("br")));At=un.firstChild,be.insertAfter(un,B),ve(yn,Qn=>jd(_r.fromDom(At),Qn)),ut&&At.setAttribute("style",ut)}else be.insertAfter(un,B),be.insertAfter(At,B);be.remove(H)}MS(r,At)},Wfe=r=>{ve(Aa(_r.fromDom(r),Ml),g=>{const B=g.dom;B.nodeValue=Sd(B.data)})},up=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Zee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),lR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,cR=(r,g)=>P(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",qee=(r,g,B)=>{var H;const oe=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&oe.push(be)}let Le=oe.length;for(;Le--;)be=oe[Le],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Zee(r,be))&&r.remove(be)},uR=(r,g,B)=>Mt(g)?r?B===1&&g.data.charAt(B-1)===Ou?0:B:B===g.data.length-1&&g.data.charAt(B)===Ou?g.data.length:B:B,Wee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,uR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,uR(!1,r.endContainer,r.endOffset)),g},Yee=r=>{let g=r;do Mt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},$A=(r,g,B,H,oe)=>{var be,Le;const Ke=r.dom,ut=(be=Y5(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let At=Ke.getParent(H,Ke.isBlock);if(!At||!cR(Ke,At)){if(At=At||ut,!At.hasChildNodes()){const Qn=Ke.create(g);return X5(r,Qn),At.appendChild(Qn),B.setStart(Qn,0),B.setEnd(Qn,0),Qn}let nn=H;for(;nn&&nn.parentNode!==At;)nn=nn.parentNode;let un;for(;nn&&!Ke.isBlock(nn);)un=nn,nn=nn.previousSibling;const yn=(Le=un==null?void 0:un.parentElement)===null||Le===void 0?void 0:Le.nodeName;if(un&&yn&&r.schema.isValidChild(yn,g.toLowerCase())){const Qn=un.parentNode,rr=Ke.create(g);for(X5(r,rr),Qn.insertBefore(rr,un),nn=un;nn&&!Ke.isBlock(nn);){const Wn=nn.nextSibling;rr.appendChild(nn),nn=Wn}B.setStart(H,oe),B.setEnd(H,oe)}}return H},Xee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},Gee=(r,g)=>{const B=Lu(r);return T(g)?!1:v(B)?ce(To.explode(B),g.nodeName.toLowerCase()):B},PV={insert:(r,g)=>{let B,H,oe,be,Le=!1;const Ke=r.dom,ut=r.schema,At=ut.getNonEmptyElements(),nn=r.selection.getRng(),un=tu(r),yn=_r.fromDom(nn.startContainer),Qn=gs(yn,nn.startOffset),rr=Qn.exists(Vo=>Al(Vo)&&!Ol(Vo)),Wn=nn.collapsed&&rr,ur=(Vo,Fi)=>wV(r,B,li,Zo,gv(r),Vo,Fi),Tr=Vo=>{const Fi=uR(Vo,B,H);if(Mt(B)&&(Vo?Fi>0:Fi{let Vo;return/^(H[1-6]|PRE|FIGURE)$/.test(oe)&&Mi!=="HGROUP"?Vo=ur(un):Vo=ur(),Gee(r,be)&&cR(Ke,be)&&Ke.isEmpty(li,void 0,{includeZwsp:!0})?Vo=Ke.split(be,li):Ke.insertAfter(Vo,li),MS(r,Vo),Vo};fi(Ke,nn).each(Vo=>{nn.setStart(Vo.startContainer,Vo.startOffset),nn.setEnd(Vo.endContainer,Vo.endOffset)}),B=nn.startContainer,H=nn.startOffset;const Qr=!!(g&&g.shiftKey),lo=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Wn&&(Le=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Le&&Mt(B)?H=B.data.length:H=0);const Zo=Y5(Ke,B);if(!Zo||up(r,B))return;Qr||(B=$A(r,un,nn,B,H));let li=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=P(li==null?void 0:li.parentNode)?Ke.getParent(li.parentNode,Ke.isBlock):null,oe=li?li.nodeName.toUpperCase():"";const Mi=be?be.nodeName.toUpperCase():"";if(Mi==="LI"&&!lo){const Vo=be;li=Vo,be=Vo.parentNode,oe=Mi}if(ne(be)&&jee(r,Qr,li))return Qee(r,ur,li);if(/^(LI|DT|DD)$/.test(oe)&&ne(be)&&Ke.isEmpty(li)){Hee(r,ur,be,li,un);return}if(!Wn&&(li===r.getBody()||!cR(Ke,li)))return;const Co=li.parentNode;let yo;if(Wn)yo=ur(un),Qn.fold(()=>{ii(yn,_r.fromDom(yo))},Vo=>{xc(Vo,_r.fromDom(yo))}),r.selection.setCursorLocation(yo,0);else if(Vm(li))yo=Ah(li),Ke.isEmpty(li)&&iR(li),X5(r,yo),MS(r,yo);else if(Tr(!1))yo=Wr();else if(Tr(!0)&&Co){const Vo=vo.fromRangeStart(nn),Fi=Ek(Vo),la=_r.fromDom(li),Ms=f6(la,Vo,r.schema)?CB(la,Vo,r.schema).bind(Vl=>Y.from(Vl.getNode())):Y.none();yo=Co.insertBefore(ur(),li);const wl=lR(li,"HR")||Fi?yo:Ms.getOr(li);MS(r,wl)}else{const Vo=Wee(nn).cloneRange();Vo.setEndAfter(li);const Fi=Vo.extractContents();Wfe(Fi),Yee(Fi),yo=Fi.firstChild,Ke.insertAfter(Fi,li),qee(Ke,At,yo),Xee(Ke,li),Ke.isEmpty(li)&&iR(li),yo.normalize(),Ke.isEmpty(yo)?(Ke.remove(yo),Wr()):(X5(r,yo),MS(r,yo))}Ke.setAttrib(yo,"id",""),r.dispatch("NewBlock",{newBlock:yo})},fakeEventName:"insertParagraph"},Yfe=(r,g,B)=>{const H=new Xl(g,B);let oe;const be=r.getNonEmptyElements();for(;oe=H.next();)if(be[oe.nodeName.toLowerCase()]||Mt(oe)&&oe.length>0)return!0;return!1},Kee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),kk(r,H)},Xfe=(r,g)=>{const B=r.selection,H=r.dom,oe=B.getRng();let be,Le=!1;fi(H,oe).each(Qn=>{oe.setStart(Qn.startContainer,Qn.startOffset),oe.setEnd(Qn.endContainer,Qn.endOffset)});let Ke=oe.startOffset,ut=oe.startContainer;if(ne(ut)&&ut.hasChildNodes()){const Qn=Ke>ut.childNodes.length-1;ut=ut.childNodes[Math.min(Ke,ut.childNodes.length-1)]||ut,Qn&&Mt(ut)?Ke=ut.data.length:Ke=0}let At=H.getParent(ut,H.isBlock);const nn=At&&At.parentNode?H.getParent(At.parentNode,H.isBlock):null,un=nn?nn.nodeName.toUpperCase():"",yn=!!(g&&g.ctrlKey);un==="LI"&&!yn&&(At=nn),Mt(ut)&&Ke>=ut.data.length&&(Yfe(r.schema,ut,At||H.getRoot())||(be=H.create("br"),oe.insertNode(be),oe.setStartAfter(be),oe.setEndAfter(be),Le=!0)),be=H.create("br"),ue(H,oe,be),Kee(r,be,Le),r.undoManager.add()},Jee=(r,g)=>{const B=_r.fromTag("br");xc(_r.fromDom(g),B),r.undoManager.add()},ete=(r,g)=>{tte(r.getBody(),g)||Kc(_r.fromDom(g),_r.fromTag("br"));const B=_r.fromTag("br");Kc(_r.fromDom(g),B),Kee(r,B.dom,!1),r.undoManager.add()},Gfe=r=>gn(r.getNode()),tte=(r,g)=>Gfe(vo.after(g))?!0:Sp(r,vo.after(g)).map(B=>gn(B.getNode())).getOr(!1),I1=r=>r&&r.nodeName==="A"&&"href"in r,nte=r=>r.fold(re,I1,I1,re),RV=r=>{const g=U(Nw,r),B=vo.fromRangeStart(r.selection.getRng());return Vy(g,r.getBody(),B).filter(nte)},rte=(r,g)=>{g.fold(k,U(Jee,r),U(ete,r),k)},LV={insert:(r,g)=>{const B=RV(r);B.isSome()?B.each(U(rte,r)):Xfe(r,g)},fakeEventName:"insertLineBreak"},IV=(r,g)=>oR(r).filter(B=>g.length>0&&yd(_r.fromDom(B),g)).isSome(),ote=r=>IV(r,d1(r)),ite=r=>IV(r,t2(r)),_m=kl.generate([{br:[]},{block:[]},{none:[]}]),DV=(r,g)=>ite(r),K5=r=>(g,B)=>Vee(g)===r,BV=(r,g)=>(B,H)=>_V(B)===r.toUpperCase()===g,ate=r=>{const g=Y5(r.dom,r.selection.getStart());return T(g)},J5=r=>BV("pre",r),ste=()=>BV("summary",!0),VA=r=>(g,B)=>Qf(g)===r,zV=(r,g)=>ote(r),UA=(r,g)=>g,NV=r=>{const g=tu(r),B=Y5(r.dom,r.selection.getStart());return P(B)&&r.schema.isValidChild(B.nodeName,g)},FV=r=>{const g=r.selection.getRng(),B=_r.fromDom(g.startContainer),oe=gs(B,g.startOffset).map(be=>Al(be)&&!Ol(be));return g.collapsed&&oe.getOr(!0)},B0=(r,g)=>(B,H)=>Ie(r,(be,Le)=>be&&Le(B,H),!0)?Y.some(g):Y.none(),lte=(r,g)=>IF([B0([DV],_m.none()),B0([J5(!0),ate],_m.none()),B0([ste()],_m.br()),B0([J5(!0),VA(!1),UA],_m.br()),B0([J5(!0),VA(!1)],_m.block()),B0([J5(!0),VA(!0),UA],_m.block()),B0([J5(!0),VA(!0)],_m.br()),B0([K5(!0),UA],_m.br()),B0([K5(!0)],_m.block()),B0([zV],_m.br()),B0([UA],_m.br()),B0([NV],_m.block()),B0([FV],_m.block())],[r,!!(g&&g.shiftKey)]).getOr(_m.none()),ES=(r,g,B)=>{g.selection.isCollapsed()||jW(g),!(P(B)&&D0(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),P(B)&&cO(g,r.fakeEventName))},$V=(r,g)=>{const B=()=>ES(LV,r,g),H=()=>ES(PV,r,g),oe=lte(r,g);switch(Cd(r)){case"linebreak":oe.fold(B,B,k);break;case"block":oe.fold(H,H,k);break;case"invert":oe.fold(H,B,k);break;default:oe.fold(B,H,k);break}},VV=zn(),jA=VV.os.isiOS()&&VV.browser.isSafari(),UV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),s7(r.undoManager),r.undoManager.transact(()=>{$V(r,g)}))},fR=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Mt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},dR=r=>{let g=Y.none();const B=oe=>{g=Y.some(oe.selection.getBookmark()),oe.undoManager.add()},H=(oe,be)=>{oe.undoManager.undo(),g.fold(k,Le=>oe.selection.moveToBookmark(Le)),UV(oe,be),g=Y.none()};r.on("keydown",oe=>{oe.keyCode===Jo.ENTER&&(jA&&fR(r.selection.getRng())?B(r):UV(r,oe))}),r.on("keyup",oe=>{oe.keyCode===Jo.ENTER&&g.each(()=>H(r,oe))})},jV=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.END,action:$a(S$,r,!0)},{keyCode:Jo.HOME,action:$a(S$,r,!1)},...H?[]:[{keyCode:Jo.HOME,action:$a(I5,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Jo.END,action:$a(I5,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Jo.END,action:$a(cJ,r,!0)},{keyCode:Jo.HOME,action:$a(cJ,r,!1)},{keyCode:Jo.END,action:$a(wA,r,!0,g)},{keyCode:Jo.HOME,action:$a(wA,r,!1,g)}],B).each(oe=>{B.preventDefault()})},cte=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||jV(r,g,B)})},ede=r=>{r.on("input",g=>{g.isComposing||AW(r)})},r_=zn(),ute=(r,g,B)=>{B5([{keyCode:Jo.PAGE_UP,action:$a(wA,r,!1,g)},{keyCode:Jo.PAGE_DOWN,action:$a(wA,r,!0,g)}],B)},QV=r=>r.stopImmediatePropagation(),HV=r=>r.keyCode===Jo.PAGE_UP||r.keyCode===Jo.PAGE_DOWN,eT=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",QV,!0):!B&&r.get()&&g.off("NodeChange",QV),r.set(B)},ZV=(r,g)=>{if(r_.os.isMacOS())return;const B=Ar(!1);r.on("keydown",H=>{HV(H)&&eT(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||ute(r,g,H),HV(H)&&B.get()&&(eT(B,r,!1),r.nodeChanged())})},qV=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!kE(r.dom,B)))&&g.preventDefault()})},WV=(r,g)=>{const B=g.container(),H=g.offset();return Mt(B)?(B.insertData(H,r),Y.some(vo(B,H+r.length))):h3(g).map(oe=>{const be=_r.fromText(r);return g.isAtEnd()?Kc(oe,be):xc(oe,be),vo(be.dom,r.length)})},hR=U(WV,Pc),YV=U(WV," "),fte=(r,g,B)=>LB(r,g,B)?hR(g):YV(g),dte=r=>g=>g.fold(B=>Up(r.dom,vo.before(B)),B=>ph(B),B=>Ym(B),B=>Sp(r.dom,vo.after(B))),pR=(r,g,B)=>H=>LB(r,H,B)?hR(g):YV(g),QA=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},hte=(r,g)=>r.isEditable(r.getParent(g,"summary")),mR=r=>{const g=vo.fromRangeStart(r.selection.getRng()),B=_r.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(Nw,r),oe=vo.fromRangeStart(r.selection.getRng());return Vy(H,r.getBody(),oe).bind(dte(B)).map(be=>()=>pR(B,g,r.schema)(be).each(QA(r)))}else return Y.none()},XV=r=>{const g=()=>{const B=_r.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=vo.fromRangeStart(r.selection.getRng());fte(B,H,r.schema).each(QA(r))};return Bs(Nr.browser.isFirefox()&&r.selection.isEditable()&&hte(r.dom,r.selection.getRng().startContainer),g)},HA=(r,g)=>{M$([{keyCode:Jo.SPACEBAR,action:$a(mR,r)},{keyCode:Jo.SPACEBAR,action:$a(XV,r)}],g).each(B=>{g.preventDefault(),D0(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),cO(r,"insertText",{data:" "}))})},GV=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||HA(r,g)})},KV=r=>f2(r)?[{keyCode:Jo.TAB,action:$a($5,r,!0)},{keyCode:Jo.TAB,shiftKey:!0,action:$a($5,r,!1)}]:[],pte=(r,g)=>{B5([...KV(r)],g).each(B=>{g.preventDefault()})},mte=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||pte(r,g)})},ZA=r=>{if(r.addShortcut("Meta+P","","mcePrint"),Aee(r),zy(r))return Ar(null);{const g=AK(r);return qV(r),tJ(r),I9(r,g),Fee(r,g),dR(r),GV(r),ede(r),mte(r),cte(r,g),ZV(r,g),g}};class JV{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",oe=>{const be=g.selection.getRng(),Le={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(oe.type==="nodechange"||!Ct(Le,B))&&g.dispatch("SelectionChange"),B=Le}),g.on("contextmenu",()=>{Tk(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const oe=g.selection.getStart(!0);oe&&T2(g)&&!H.isSameElementPath(oe)&&g.dom.isChildOf(oe,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",oe=>{!oe.isDefaultPrevented()&&T2(g)&&(g.selection.getNode().nodeName==="IMG"?Ig.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!$p(this.editor)&&!this.editor.mode.isReadOnly()){const oe=this.editor.getBody();H=B.getStart(!0)||oe,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,oe))&&(H=oe);const be=[];this.editor.dom.getParent(H,Le=>Le===oe?!0:(be.push(Le),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,oe=ke(H.dom.getParents(g,q,H.getBody()));if(oe.length===this.lastPath.length){for(B=oe.length;B>=0&&oe[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=oe,!0}return this.lastPath=oe,!1}}const eU=yb("image"),gte=r=>{const g=r;return Y.from(g[eU])},tU=(r,g)=>{const B=r;B[eU]=g},gR=yb("event"),vte=r=>{const g=r;return Y.from(g[gR])},qA=r=>g=>{const B=g;B[gR]=r},yte=(r,g)=>qA(g)(r),nU=qA(0),rU=qA(2),bte=qA(1),_te=(r=>g=>{const B=g;return Y.from(B[gR]).exists(H=>H===r)})(0),wte=()=>Object.freeze({length:0,item:r=>null}),vR=yb("mode"),Ote=r=>{const g=r;return Y.from(g[vR])},WA=r=>g=>{const B=g;B[vR]=r},uO=(r,g)=>WA(g)(r),oU=WA(0),yR=WA(2),iU=WA(1),aU=r=>g=>{const B=g;return Y.from(B[vR]).exists(H=>H===r)},PS=aU(0),sU=aU(1),lU=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(PS(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{PS(r)&&g.remove(B)},clear:()=>{PS(r)&&g.clear()}}),Ste=["none","copy","link","move"],kte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],cU=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(oe){ce(Ste,oe)&&(g=oe)},get effectAllowed(){return B},set effectAllowed(oe){_te(H)&&ce(kte,oe)&&(B=oe)},get items(){return lU(H,r.items)},get files(){return sU(H)?wte():r.files},get types(){return r.types},setDragImage:(oe,be,Le)=>{PS(H)&&(tU(H,{image:oe,x:be,y:Le}),r.setDragImage(oe,be,Le))},getData:oe=>sU(H)?"":r.getData(oe),setData:(oe,be)=>{PS(H)&&r.setData(oe,be)},clearData:oe=>{PS(H)&&r.clearData(oe)}};return oU(H),H},YA=r=>{const g=cU(),B=Ote(r);return yR(r),nU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,gte(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ve(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ve(r.files,H=>g.items.add(H)),vte(r).each(H=>{yte(g,H)}),B.each(H=>{uO(r,H),uO(g,H)}),g},Tte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},uU=(r,g)=>r.setData("text/html",g),fU="x-tinymce/html",XA=$(fU),bR="",Cte=r=>bR+r,Ate=r=>r.replace(bR,""),dU=r=>r.indexOf(bR)!==-1,Mte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Ete=(r,g)=>{let B="<"+r;const H=ln(g,(oe,be)=>be+'="'+Lm.encodeAllRaw(oe)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},Pte=(r,g,B)=>{const H=r.split(/\n\n/),oe=Ete(g,B),be="",Le=ye(H,ut=>ut.split(/\n/).join("
    ")),Ke=ut=>oe+ut+be;return Le.length===1?Le[0]:ye(Le,Ke).join("")},hU="%MCEPASTEBIN%",Rte=(r,g)=>{const{dom:B,selection:H}=r,oe=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},hU);Nr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(oe,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Le=>{Le.stopPropagation()}),be.focus(),H.select(be,!0)},Lc=(r,g)=>{const B=r.dom;if(xR(r)){let H;const oe=g.get();for(;H=xR(r);)B.remove(H),B.unbind(H);oe&&r.selection.setRng(oe)}g.set(null)},xR=r=>r.dom.get("mcepastebin"),pU=r=>P(r)&&r.id==="mcepastebin",Lte=r=>{const g=r.dom,B=(Le,Ke)=>{Le.appendChild(Ke),g.remove(Ke,!0)},[H,...oe]=Te(r.getBody().childNodes,pU);ve(oe,Le=>{B(H,Le)});const be=g.select("div[id=mcepastebin]",H);for(let Le=be.length-1;Le>=0;Le--){const Ke=g.create("div");H.insertBefore(Ke,be[Le]),B(Ke,be[Le])}return H?H.innerHTML:""},GA=r=>r===hU,mU=r=>{const g=Ar(null);return{create:()=>Rte(r,g),remove:()=>Lc(r,g),getEl:()=>xR(r),getHtml:()=>Lte(r),getLastRng:g.get}},gU=(r,g)=>(To.each(g,B=>{p(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),Ite=r=>{const g=zm(),B=fS({},g);let H="";const oe=g.getVoidElements(),be=To.makeMap("script noscript style textarea video audio iframe object"," "),Le=g.getBlockElements(),Ke=ut=>{const At=ut.name,nn=ut;if(At==="br"){H+=` `;return}if(At!=="wbr"){if(oe[At]&&(H+=" "),be[At]){H+=" ";return}if(ut.type===3&&(H+=ut.value),!(ut.name in g.getVoidElements())){let un=ut.firstChild;if(un)do Ke(un);while(un=un.next)}Le[At]&&nn.next&&(H+=` `,At==="p"&&(H+=` -`))}};return r=mU(r,[//g]),Ke(B.parse(r)),H},_R=r=>(r=mU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,oe)=>!H&&!oe?" ":Pc],/
    /g,/
    $/i]),r),wR=r=>{let g=0;return()=>r+g++},Ite=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return To.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Dte=(r,g)=>{const B=fS({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r),convert_unsafe_embeds:Fb(r)},r.schema);B.addNodeFilter("meta",oe=>{To.each(oe,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return rx({validate:!0},r.schema).serialize(H)},gU=(r,g)=>({content:r,cancelled:g}),vU=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),oe=ZC(r,H,B);return gU(oe.node.innerHTML,oe.isDefaultPrevented())},Bte=(r,g,B)=>{const H=aE(r,g,B),oe=Dte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?vU(r,oe,B):gU(oe,H.isDefaultPrevented())},zte=(r,g,B)=>Bte(r,g,B),o_=(r,g)=>(r.insertContent(g,{merge:dw(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),RS=(r,g)=>OR(g)&&de(ky(r),B=>$r(g.toLowerCase(),`.${B.toLowerCase()}`)),tT=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),Nte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Fte=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?Nte(r,g,B):!1,LS=(r,g,B)=>RS(r,g)?tT(r,g,B):!1,$te=(r,g)=>{To.each([Fte,LS,o_],B=>!B(r,g,o_))},SR=(r,g,B)=>{B||!o3(r)?o_(r,g):$te(r,g)},Vte=wR("mceclip"),yU=r=>{const g=lU();return cU(g,r),yR(g),g},kR=(r,g,B,H,oe)=>{const be=zte(r,g,B);if(!be.cancelled){const Le=be.content,Ke=()=>SR(r,Le,H);oe?D0(r,"insertFromPaste",{dataTransfer:yU(Le)}).isDefaultPrevented()||(Ke(),cO(r,"insertFromPaste")):Ke()}},IS=(r,g,B,H)=>{const oe=B||fU(g);kR(r,Cte(g),oe,!1,H)},GA=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` -`),oe=Ut(H,hw(r)),be=Ete(oe,tu(r),qd(r));kR(r,be,!1,!0,B)},bU=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,TR=r=>i_(r,"text/html")||i_(r,"text/plain"),Ute=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return P(B)?r.dom.encode(B[1]):void 0},xU=(r,g,B,H)=>{const oe=Vte(),be=dl(r)&&P(B.name),Le=be?Ute(r,B.name):oe,Ke=be?B.name:void 0,ut=g.create(oe,B,H,Le,Ke);return g.add(ut),ut},CR=(r,g)=>{V2(g.uri).each(({data:B,type:H,base64Encoded:oe})=>{const be=oe?B:btoa(B),Le=g.file,Ke=r.editorUpload.blobCache,ut=Ke.getByData(be,H),At=ut??xU(r,Ke,Le,be);IS(r,``,!1,!0)})},_U=r=>r.type==="paste",jte=r=>Promise.all(ye(r,g=>lx(g).then(B=>({file:g,uri:B})))),Qte=r=>{const g=ky(r);return B=>Br(B.type,"image/")&&de(g,H=>Ite(H)===B.type)},Hte=(r,g)=>{const B=g.items?$e(Me(g.items),oe=>oe.kind==="file"?[oe.getAsFile()]:[]):[],H=g.files?Me(g.files):[];return Te(B.length>0?B:H,Qte(r))},AR=(r,g,B)=>{const H=_U(g)?g.clipboardData:g.dataTransfer;if(xv(r)&&H){const oe=Hte(r,H);if(oe.length>0)return g.preventDefault(),jte(oe).then(be=>{B&&r.selection.setRng(B),ve(be,Le=>{CR(r,Le)})}),!0}return!1},MR=r=>{var g,B;return Nr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},Zte=r=>Jo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,KA=(r,g,B,H,oe)=>{let be=_R(B);const Le=i_(g,YA())||fU(B),Ke=!Le&&Ate(be),ut=OR(be);(XA(be)||!be.length||Ke&&!ut)&&(H=!0),(H||ut)&&(i_(g,"text/plain")&&Ke?be=g["text/plain"]:be=Lte(be)),!XA(be)&&(H?GA(r,be,oe):IS(r,be,Le,oe))},wU=(r,g,B)=>{let H;const oe=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{Zte(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||MR(be))return;const Le=B.get()==="text"||H;H=!1;const Ke=bU(be.clipboardData);!TR(Ke)&&AR(r,be,oe())||(i_(Ke,"text/html")?(be.preventDefault(),KA(r,Ke,Ke["text/html"],Le,!0)):i_(Ke,"text/plain")&&i_(Ke,"text/uri-list")?(be.preventDefault(),KA(r,Ke,Ke["text/plain"],Le,!0)):(g.create(),Ig.setEditorTimeout(r,()=>{const ut=g.getHtml();g.remove(),KA(r,Ke,ut,Le,!1)},0)))})},qte=r=>{const g=oe=>Br(oe,"webkit-fake-url"),B=oe=>Br(oe,"data:"),H=oe=>{var be;return((be=oe.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(oe,be,Le)=>{if(!xv(r)&&H(Le))for(const Ke of oe){const ut=Ke.attr("src");v(ut)&&!Ke.attr("data-mce-object")&&ut!==Nr.transparentSrc&&(g(ut)||!v1(r)&&B(ut))&&Ke.remove()}})},OU=(r,g,B)=>{wU(r,g,B),qte(r)},Wte=(r,g)=>{g.get()==="text"?(g.set("html"),j3(r,!1)):(g.set("text"),j3(r,!0)),r.focus()},Yte=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{Wte(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&IS(r,H.html,H.internal,!1),H.text&&GA(r,H.text,!1)})},Xte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(YA(),g),!0}catch{return!1}else return!1},SU=(r,g,B,H)=>{Xte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},kU=r=>(g,B)=>{const{dom:H,selection:oe}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Le=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Le),H.add(r.getBody(),be);const Ke=oe.getRng();Le.focus();const ut=H.createRng();ut.selectNodeContents(Le),oe.setRng(ut),Ig.setEditorTimeout(r,()=>{oe.setRng(Ke),H.remove(be),B()},0)},nT=r=>({html:Tte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),Gte=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),ER=r=>!r.selection.isCollapsed()||Gte(r),Kte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&r.selection.isEditable()&&SU(g,nT(r),kU(r),()=>{if(Nr.browser.isChromium()||Nr.browser.isFirefox()){const B=r.selection.getRng();Ig.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},Jte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&SU(g,nT(r),kU(r),k)},TU=r=>{r.on("cut",Kte(r)),r.on("copy",Jte(r))},PR=(r,g)=>{var B,H;return oi.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},ene=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},CU=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},tne=r=>de(r.files,g=>/^image\//.test(g.type)),nne=(r,g,B,H)=>{const oe=r.getParent(B,Le=>lh(g,Le));if(!x(r.getParent(B,"summary")))return!0;if(oe&&Ot(H,"text/html")){const Le=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Le.querySelector(oe.nodeName.toLowerCase()))}else return!1},rne=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ve(H,oe=>{gn(oe.firstChild)&&oe.firstChild.remove();const be=r.dom.create("summary");be.appendChild(sv().dom),oe.prepend(be)})}})},AU=(r,g)=>{r3(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),xv(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&tne(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=PR(r,B);if(T(H))return;const oe=bU(B.dataTransfer),be=i_(oe,YA());if((!TR(oe)||ene(oe))&&AR(r,B,H))return;const Le=oe[YA()],Ke=Le||oe["text/html"]||oe["text/plain"],ut=nne(r.dom,r.schema,H.startContainer,oe),At=g.get();At&&!ut||Ke&&(B.preventDefault(),Ig.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Le||At&&ut)&&r.execCommand("Delete"),CU(r,H);const nn=_R(Ke);oe["text/html"]?IS(r,nn,be,!0):GA(r,nn,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{xv(r)&&!g.get()&&(B.preventDefault(),CU(r,PR(r,B))),B.type==="dragend"&&g.set(!1)}),rne(r)},one=r=>{const g=oe=>be=>{oe(r,be)},B=g1(r);A(B)&&r.on("PastePreProcess",g(B));const H=_v(r);A(H)&&r.on("PastePostProcess",g(H))},ine=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},ane=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,MU=r=>To.trim(r).replace(ane,od).toLowerCase(),sne=(r,g,B)=>{const H=Sy(r);if(B||H==="all"||!Ov(r))return g;const oe=H?H.split(/[, ]/):[];if(oe&&H!=="none"){const be=r.dom,Le=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ut,At,nn)=>{const un=be.parseStyle(be.decode(At)),yn={};for(let rr=0;rr]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Le,Ke,ut)=>Le+' style="'+Ke+'"'+ut),g},lne=r=>{(Nr.browser.isChromium()||Nr.browser.isSafari())&&ine(r,sne)},cne=r=>{const g=Ar(!1),B=Ar(Bb(r)?"text":"html"),H=pU(r);lne(r),Yte(r,B),one(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{TU(r),AU(r,g),OU(r,H,B)})},une=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},EU=r=>{r.parser.addNodeFilter("details",g=>{const B=a3(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=d2(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},PU=r=>{une(r),EU(r)},fne=gn,RU=Mt,dne=r=>In(r.dom),hne=r=>pn(r.dom),LU=r=>g=>va(_r.fromDom(r),g),pne=(r,g,B)=>cl(_r.fromDom(r),H=>hne(H)||B.isBlock(ma(H)),LU(g)).getOr(_r.fromDom(g)).dom,IU=(r,g)=>cl(_r.fromDom(r),dne,LU(g)),rT=(r,g,B)=>{const H=new Xl(r,g),oe=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Le=B?r:oe();Le&&!fne(Le);Le=oe())Hh(Le)&&(be=Le);return be},DU=(r,g,B)=>{const oe=vo.fromRangeStart(r).getNode(),be=pne(oe,g,B),Le=rT(oe,be,!1),Ke=rT(oe,be,!0),ut=document.createRange();return IU(Le,be).fold(()=>{RU(Le)?ut.setStart(Le,0):ut.setStartBefore(Le)},At=>ut.setStartBefore(At.dom)),IU(Ke,be).fold(()=>{RU(Ke)?ut.setEnd(Ke,Ke.data.length):ut.setEndAfter(Ke)},At=>ut.setEndAfter(At.dom)),ut},mne=r=>{const g=DU(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Rc(g))},BU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),mne(r))})};var fO;(function(r){r.Before="before",r.After="after"})(fO||(fO={}));const RR=(r,g)=>Math.abs(r.left-g),gne=(r,g)=>Math.abs(r.right-g),zU=(r,g)=>r>=g.top&&r<=g.bottom,vne=(r,g)=>r.topg.top,NU=(r,g)=>{const B=uv(r,g)/Math.min(r.height,g.height);return vne(r,g)&&B>.5},yne=(r,g)=>{const B=Te(r,H=>zU(g,H));return kb(B).fold(()=>[[],r],H=>{const{pass:oe,fail:be}=we(r,Le=>NU(Le,H));return[oe,be]})},FU=(r,g)=>({node:r.node,position:RR(r,g)g>r.left&&g{const oe=un=>Hh(un.node)?Y.some(un):ne(un.node)?LR(Me(un.node.childNodes),g,B,!1):Y.none(),be=(un,yn,Qn)=>oe(yn).filter(rr=>Math.abs(Qn(un,g,B)-Qn(rr,g,B))<2&&Mt(rr.node)),Le=(un,yn)=>{const Qn=Ue(un,(rr,Wn)=>yn(rr,g,B)-yn(Wn,g,B));return Fe(Qn,oe).map(rr=>H&&!Mt(rr.node)&&Qn.length>1?be(rr,Qn[1],yn).getOr(rr):rr)},[Ke,ut]=yne(I0(r),B),{pass:At,fail:nn}=we(ut,un=>un.topLe(nn,dc)).orThunk(()=>Le(At,dc))},xne=(r,g,B,H)=>{const oe=(be,Le)=>{const Ke=At=>ne(At)&&At.classList.contains("mce-drag-container"),ut=Te(be.dom.childNodes,X(Ke));return Le.fold(()=>LR(ut,B,H,!0),At=>{const nn=Te(ut,un=>un!==At.dom);return LR(nn,B,H,!0)}).orThunk(()=>(va(be,r)?Y.none():Nh(be)).bind(nn=>oe(nn,Y.some(be))))};return oe(g,Y.none())},oT=(r,g,B)=>{const H=_r.fromDom(r),oe=$f(H),Le=_r.fromPoint(oe,g,B).filter(Ke=>El(H,Ke)).getOr(H);return xne(H,Le,g,B)},$U=(r,g,B)=>oT(r,g,B).filter(H=>b1(H.node)).map(H=>FU(H,g)),VU=r=>{var g,B;const H=r.getBoundingClientRect(),oe=r.ownerDocument,be=oe.documentElement,Le=oe.defaultView;return{top:H.top+((g=Le==null?void 0:Le.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Le==null?void 0:Le.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},UU=r=>r.inline?VU(r.getBody()):{left:0,top:0},_ne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},wne=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},oe={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:oe},One=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=VU(r.getContentAreaContainer()),H=wne(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},Sne=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),kne=(r,g)=>Sne(UU(r),_ne(r),One(r,g)),iT=r=>({target:r,srcElement:r}),jU=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...iT(B)}),QU=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...iT(g)}},Tne=(r,g)=>{const B=WA(r);return g==="dragstart"?(tU(B),rU(B)):g==="drop"?(nU(B),yR(B)):(yte(B),oU(B)),B},Cne=(r,g,B,H)=>{const oe=Tne(B,r);return M(H)?QU(r,g,oe):jU(r,H,g,oe)},JA=32,Jfe=100,e8=8,aT=16,t8=In,n8=F4(t8,pn),Ane=(r,g,B)=>t8(B)&&B!==g&&r.isEditable(B.parentElement),Mne=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),HU=(r,g,B,H)=>{const oe=r.dom,be=g.cloneNode(!0);oe.setStyles(be,{width:B,height:H}),oe.setAttrib(be,"data-mce-selected",null);const Le=oe.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return oe.setStyles(Le,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),oe.setStyles(be,{margin:0,boxSizing:"border-box"}),Le.appendChild(be),Le},Ene=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},DS=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},IR=DS("left",-JA),ZU=DS("left",JA),qU=DS("top",-JA),DR=DS("top",JA),Pne=(r,g,B,H,oe,be,Le,Ke,ut,At,nn,un)=>{let yn=0,Qn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>oe&&(yn=g.pageX+B-oe),g.pageY+H>be&&(Qn=g.pageY+H-be),r.style.width=B-yn+"px",r.style.height=H-Qn+"px";const rr=ut.clientHeight,Wn=ut.clientWidth,ur=Le+ut.getBoundingClientRect().top,Tr=Ke+ut.getBoundingClientRect().left;nn.on(Wr=>{Wr.intervalId.clear(),Wr.dragging&&un&&(Le+e8>=rr?Wr.intervalId.set(DR(At)):Le-e8<=0?Wr.intervalId.set(qU(At)):Ke+e8>=Wn?Wr.intervalId.set(ZU(At)):Ke-e8<=0?Wr.intervalId.set(IR(At)):ur+aT>=window.innerHeight?Wr.intervalId.set(DR(window)):ur-aT<=0?Wr.intervalId.set(qU(window)):Tr+aT>=window.innerWidth?Wr.intervalId.set(ZU(window)):Tr-aT<=0&&Wr.intervalId.set(IR(window)))})},Rne=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},Lne=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);Rne(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&xp(_r.fromDom(B))},Ine=r=>r.button===0,Dne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),WU=(r,g)=>B=>{if(Ine(B)){const H=De(g.dom.getParents(B.target),n8).getOr(null);if(P(H)&&Ane(g.dom,g.getBody(),H)){const oe=g.dom.getPos(H),be=g.getBody(),Le=g.getDoc().documentElement;r.set({element:H,dataTransfer:lU(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Le.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Le.offsetHeight)-2,relX:B.pageX-oe.x,relY:B.pageY-oe.y,width:H.offsetWidth,height:H.offsetHeight,ghost:HU(g,H,H.offsetWidth,H.offsetHeight),intervalId:$s(Jfe)})}}},Bne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),$U(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const oe=r._selectionOverrides.showCaret(1,H.node,H.position===fO.Before,!1);oe?r.selection.setRng(oe):r.selection.placeCaretAt(g,B)})},BS=(r,g,B,H,oe)=>{g==="dragstart"&&cU(H,r.dom.getOuterHTML(B));const be=Cne(g,B,H,oe);return r.dispatch(g,be)},zne=(r,g)=>{const B=fy((oe,be)=>Bne(g,oe,be),0);g.on("remove",B.cancel);const H=r;return oe=>r.on(be=>{const Le=Math.max(Math.abs(oe.screenX-be.screenX),Math.abs(oe.screenY-be.screenY));if(!be.dragging&&Le>10){const Ke=BS(g,"dragstart",be.element,be.dataTransfer,oe);if(P(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=oe.currentTarget===g.getDoc().documentElement,ut=Dne(be,kne(g,oe));Ene(be.ghost,g.getBody()),Pne(be.ghost,ut,be.width,be.height,be.maxX,be.maxY,oe.clientY,oe.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(oe.clientX,oe.clientY)}})},Nne=r=>{const g=r.getSel();if(P(g)){const H=g.getRangeAt(0).startContainer;return Mt(H)?H.parentNode:H}else return null},Fne=(r,g)=>B=>{r.on(H=>{var oe;if(H.intervalId.clear(),H.dragging){if(Mne(g,Nne(g.selection),H.element)){const be=(oe=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&oe!==void 0?oe:g.getBody();BS(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{Lne(g.dom,H.element),kte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}BS(g,"dragend",g.getBody(),H.dataTransfer,B)}}),BR(r)},YU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>BS(g,"dragend",H.element,H.dataTransfer),oe=>BS(g,"dragend",H.element,H.dataTransfer,oe))}),BR(r)},$ne=(r,g)=>B=>YU(r,g,Y.some(B)),BR=r=>{r.on(g=>{g.intervalId.clear(),Rne(g.ghost)}),r.clear()},ede=r=>{const g=Ts(),B=cc.DOM,H=document,oe=WU(g,r),be=zne(g,r),Le=Fne(g,r),Ke=$ne(g,r);r.on("mousedown",oe),r.on("mousemove",be),r.on("mouseup",Le),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ut=>{ut.keyCode===Jo.ESC&&YU(g,r,Y.none())})},Vne=r=>{const g=oe=>{if(!oe.isDefaultPrevented()){const be=oe.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(oe.preventDefault(),oe.type==="drop"&&d5(r,"Dropped file type is not supported"))}},B=oe=>{o6(r,oe.target)&&g(oe)},H=()=>{const oe=cc.DOM,be=r.dom,Le=document,Ke=r.inline?r.getBody():r.getDoc(),ut=["drop","dragover"];ve(ut,At=>{oe.bind(Le,At,B),be.bind(Ke,At,g)}),r.on("remove",()=>{ve(ut,At=>{oe.unbind(Le,At,B),be.unbind(Ke,At,g)})})};r.on("init",()=>{Ig.setEditorTimeout(r,H,0)})},XU=r=>{ede(r),fw(r)&&Vne(r)},Une=r=>{const g=fy(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=_S(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},zR=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Gr(B)){const H=z2(r.getBody(),B),oe=In(H)?H:B;r.selection.getNode()!==oe&&xS(r,oe).each(be=>r.selection.setRng(be))}})})},sT=In,GU=(r,g)=>z2(r.getBody(),g),jne=r=>{const g=r.selection,B=r.dom,H=r.getBody(),oe=CD(r,H,B.isBlock,()=>nx(r)),be="sel-"+B.uniqueId(),Le="data-mce-selected";let Ke;const ut=Mi=>P(Mi)&&B.hasClass(Mi,"mce-offscreen-selection"),At=Mi=>Mi!==H&&(sT(Mi)||Gr(Mi))&&B.isChildOf(Mi,H)&&B.isEditable(Mi.parentNode),nn=Mi=>{Mi&&g.setRng(Mi)},un=(Mi,Co,yo,Vo=!0)=>r.dispatch("ShowCaret",{target:Co,direction:Mi,before:yo}).isDefaultPrevented()?null:(Vo&&g.scrollIntoView(Co,Mi===-1),oe.show(yo,Co)),yn=Mi=>{Mi.hasAttribute("data-mce-caret")&&(Ch(Mi),g.scrollIntoView(Mi))},Qn=()=>{r.on("click",Co=>{B.isEditable(Co.target)||(Co.preventDefault(),r.focus())}),r.on("blur NewBlock",lo),r.on("ResizeWindow FullscreenStateChanged",oe.reposition),r.on("tap",Co=>{const yo=Co.target,Vo=GU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):At(yo)&&xS(r,yo).each(Qr)},!0),r.on("mousedown",Co=>{const yo=Co.target;if(yo!==H&&yo.nodeName!=="HTML"&&!B.isChildOf(yo,H)||!fG(r,Co.clientX,Co.clientY))return;lo(),li();const Vo=GU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):$U(H,Co.clientX,Co.clientY).each(Fi=>{Co.preventDefault();const la=un(1,Fi.node,Fi.position===fO.Before,!1);nn(la),V(Vo)?Vo.focus():r.getBody().focus()})}),r.on("keypress",Co=>{Jo.modifierPressed(Co)||sT(g.getNode())&&Co.preventDefault()}),r.on("GetSelectionRange",Co=>{let yo=Co.range;if(Ke){if(!Ke.parentNode){Ke=null;return}yo=yo.cloneRange(),yo.selectNode(Ke),Co.range=yo}}),r.on("SetSelectionRange",Co=>{Co.range=ur(Co.range);const yo=Qr(Co.range,Co.forward);yo&&(Co.range=yo)});const Mi=Co=>ne(Co)&&Co.id==="mcepastebin";r.on("AfterSetSelectionRange",Co=>{const yo=Co.range,Vo=yo.startContainer.parentElement;!Wn(yo)&&!Mi(Vo)&&li(),ut(Vo)||lo()}),XU(r),Une(r),zR(r)},rr=Mi=>op(Mi)||p0(Mi)||Ss(Mi),Wn=Mi=>rr(Mi.startContainer)||rr(Mi.endContainer),ur=Mi=>{const Co=r.schema.getVoidElements(),yo=B.createRng(),Vo=Mi.startContainer,Fi=Mi.startOffset,la=Mi.endContainer,bs=Mi.endOffset;return Ot(Co,Vo.nodeName.toLowerCase())?Fi===0?yo.setStartBefore(Vo):yo.setStartAfter(Vo):yo.setStart(Vo,Fi),Ot(Co,la.nodeName.toLowerCase())?bs===0?yo.setEndBefore(la):yo.setEndAfter(la):yo.setEnd(la,bs),yo},Tr=(Mi,Co)=>{const yo=_r.fromDom(r.getBody()),Vo=r.getDoc(),Fi=wi(yo,"#"+be).getOrThunk(()=>{const Ms=_r.fromHtml('
    ',Vo);return ll(Ms,"id",be),ii(yo,Ms),Ms}),la=B.createRng();uf(Fi),Yl(Fi,[_r.fromText(Pc,Vo),_r.fromDom(Co),_r.fromText(Pc,Vo)]),la.setStart(Fi.dom.firstChild,1),la.setEnd(Fi.dom.lastChild,0),aa(Fi,{top:B.getPos(Mi,r.getBody()).y+"px"}),Z3(Fi);const bs=g.getSel();return bs&&(bs.removeAllRanges(),bs.addRange(la)),la},Wr=Mi=>{const Co=Mi.cloneNode(!0),yo=r.dispatch("ObjectSelected",{target:Mi,targetClone:Co});if(yo.isDefaultPrevented())return null;const Vo=Tr(Mi,yo.targetClone),Fi=_r.fromDom(Mi);return ve(Pl(_r.fromDom(r.getBody()),`*[${Le}]`),la=>{va(Fi,la)||tc(la,Le)}),B.getAttrib(Mi,Le)||Mi.setAttribute(Le,"1"),Ke=Mi,li(),Vo},Qr=(Mi,Co)=>{if(!Mi)return null;if(Mi.collapsed){if(!Wn(Mi)){const la=Co?1:-1,bs=xw(la,H,Mi),Ms=bs.getNode(!Co);if(P(Ms)){if(b1(Ms))return un(la,Ms,Co?!bs.isAtEnd():!1,!1);if(_p(Ms)&&In(Ms.nextSibling)){const Vl=B.createRng();return Vl.setStart(Ms,0),Vl.setEnd(Ms,0),Vl}}const wl=bs.getNode(Co);if(P(wl)){if(b1(wl))return un(la,wl,Co?!1:!bs.isAtEnd(),!1);if(_p(wl)&&In(wl.previousSibling)){const Vl=B.createRng();return Vl.setStart(wl,1),Vl.setEnd(wl,1),Vl}}}return null}let yo=Mi.startContainer,Vo=Mi.startOffset;const Fi=Mi.endOffset;if(Mt(yo)&&Vo===0&&sT(yo.parentNode)&&(yo=yo.parentNode,Vo=B.nodeIndex(yo),yo=yo.parentNode),!ne(yo))return null;if(Fi===Vo+1&&yo===Mi.endContainer){const la=yo.childNodes[Vo];if(At(la))return Wr(la)}return null},lo=()=>{Ke&&Ke.removeAttribute(Le),wi(_r.fromDom(r.getBody()),"#"+be).each(hs),Ke=null},Zo=()=>{oe.destroy(),Ke=null},li=()=>{oe.hide()};return By(r)||Qn(),{showCaret:un,showBlockCaretContainer:yn,hideFakeCaret:li,destroy:Zo}},KU=(r,g)=>{let B=g;for(let H=r.previousSibling;Mt(H);H=H.previousSibling)B+=H.data.length;return B},lT=(r,g,B,H,oe)=>{if(Mt(B)&&(H<0||H>B.data.length))return[];const be=oe&&Mt(B)?[KU(B,H)]:[H];let Le=B;for(;Le!==g&&Le.parentNode;)be.push(r.nodeIndex(Le,oe)),Le=Le.parentNode;return Le===g?be.reverse():[]},r8=(r,g,B,H,oe,be,Le=!1)=>{const Ke=lT(r,g,B,H,Le),ut=lT(r,g,oe,be,Le);return{start:Ke,end:ut}},NR=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Le)=>be.bind(Ke=>Y.from(Ke.childNodes[Le])),Y.some(r)).bind(be=>Mt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},JU=(r,g)=>NR(r,g.start).bind(({node:B,offset:H})=>NR(r,g.end).map(({node:oe,offset:be})=>{const Le=document.createRange();return Le.setStart(B,H),Le.setEnd(oe,be),Le})),Qne=(r,g,B,H=!1)=>r8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),dO=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Mt(g.firstChild)&&lc(g.firstChild.data)),dO(r,H,B)}},o8=(r,g,B,H=!0)=>{const oe=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Mt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Mt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),dO(r,oe,B),oe!==be&&dO(r,be,B))},i8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),FR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:ld(H).concat(r.blockPatterns),inlinePatterns:cd(H).concat(r.inlinePatterns)}},cT=(r,g,B,H)=>{const oe=r.createRng();return oe.setStart(g,0),oe.setEnd(B,H),oe.toString()},ej=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),a8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},tj=(r,g,B)=>{const H=JU(r.getRoot(),B).getOrDie("Unable to resolve path range"),oe=H.startContainer,be=H.endContainer,Le=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?oe:oe.splitText(H.startOffset),ut=Ke.parentNode,At=Le.parentNode;return{prefix:g,end:At.insertBefore(ej(r,g+"-end"),Le),start:ut.insertBefore(ej(r,g+"-start"),Ke)}},nj=(r,g,B)=>{dO(r,r.get(g.prefix+"-end"),B),dO(r,r.get(g.prefix+"-start"),B)},$R=r=>r.start.length===0,Hne=r=>(g,B)=>{const oe=g.data.substring(0,B),be=oe.lastIndexOf(r.charAt(r.length-1)),Le=oe.lastIndexOf(r);return Le!==-1?Le+r.length:be!==-1?be+1:-1},VR=(r,g,B,H)=>{const oe=g.start;return z9(r,H.container,H.offset,Hne(oe),B).bind(Le=>{var Ke,ut;const At=(ut=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(oe))!==null&&ut!==void 0?ut:-1;if(At!==-1&&Le.offset>=At+oe.length){const un=r.createRng();return un.setStart(Le.container,Le.offset-oe.length),un.setEnd(Le.container,Le.offset),Y.some(un)}else{const un=Le.offset-oe.length;return B9(Le.container,un,B).map(yn=>{const Qn=r.createRng();return Qn.setStart(yn.container,yn.offset),Qn.setEnd(Le.container,Le.offset),Qn}).filter(yn=>yn.toString()===oe).orThunk(()=>VR(r,g,B,L1(Le.container,0)))}})},rj=(r,g,B,H,oe,be=!1)=>{if(g.start.length===0&&!be){const Le=r.createRng();return Le.setStart(B,H),Le.setEnd(B,H),Y.some(Le)}return D9(B,H,oe).bind(Le=>VR(r,g,oe,Le).bind(ut=>{var At;if(be){if(ut.endContainer===Le.container&&ut.endOffset===Le.offset)return Y.none();if(Le.offset===0&&((At=ut.endContainer.textContent)===null||At===void 0?void 0:At.length)===ut.endOffset)return Y.none()}return Y.some(ut)}))},UR=(r,g,B,H)=>{const oe=r.dom,be=oe.getRoot(),Le=B.pattern,Ke=B.position.container,ut=B.position.offset;return B9(Ke,ut-B.pattern.end.length,g).bind(At=>{const nn=r8(oe,be,At.container,At.offset,Ke,ut,H);if($R(Le))return Y.some({matches:[{pattern:Le,startRng:nn,endRng:nn}],position:At});{const un=zS(r,B.remainingPatterns,At.container,At.offset,g,H),yn=un.getOr({matches:[],position:At}),Qn=yn.position;return rj(oe,Le,Qn.container,Qn.offset,g,un.isNone()).map(Wn=>{const ur=Qne(oe,be,Wn,H);return{matches:yn.matches.concat([{pattern:Le,startRng:ur,endRng:nn}]),position:L1(Wn.startContainer,Wn.startOffset)}})}})},zS=(r,g,B,H,oe,be)=>{const Le=r.dom;return D9(B,H,Le.getRoot()).bind(Ke=>{const ut=cT(Le,oe,B,H);for(let At=0;At0)return zS(r,g,B,H-1,oe,be);if(yn.isSome())return yn}return Y.none()})},oj=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ve(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},jR=(r,g,B,H)=>{const oe=a8(r.dom,B);o8(r.dom,oe,H),oj(r,g,oe)},Zne=(r,g,B,H,oe)=>{const be=r.dom,Le=a8(be,H),Ke=a8(be,B);o8(be,Ke,oe),o8(be,Le,oe);const ut={prefix:B.prefix,start:B.end,end:H.start},At=a8(be,ut);oj(r,g,At)},qne=(r,g)=>{const B=yb("mce_textpattern"),H=Pe(g,(oe,be)=>{const Le=tj(r,B+`_end${oe.length}`,be.endRng);return oe.concat([{...be,endMarker:Le}])},[]);return Pe(H,(oe,be)=>{const Le=H.length-oe.length-1,Ke=$R(be.pattern)?be.endMarker:tj(r,B+`_start${Le}`,be.startRng);return oe.concat([{...be,startMarker:Ke}])},[])},ij=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Wne=(r,g)=>{const B=Oe(r,H=>de(g,oe=>H.pattern.start===oe.pattern.start&&H.pattern.end===oe.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},aj=(r,g,B,H,oe,be)=>{const Le=zS(r,oe.inlinePatterns,B,H,g,be).fold(()=>[],ut=>ut.matches),Ke=zS(r,ij(oe.inlinePatterns),B,H,g,be).fold(()=>[],ut=>ut.matches);return Wne(Le,Ke)},sj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),oe=qne(B,g);ve(oe,be=>{const Le=B.getParent(be.startMarker.start,B.isBlock),Ke=ut=>ut===Le;$R(be.pattern)?jR(r,be.pattern,be.endMarker,Ke):Zne(r,be.pattern,be.startMarker,be.endMarker,Ke),nj(B,be.endMarker,Ke),nj(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},lj=(r,g,B)=>LJ(g,0,g).map(H=>{const oe=H.container;return j5(oe,B.start.length,g).each(be=>{const Le=r.createRng();Le.setStart(oe,0),Le.setEnd(be.container,be.offset),o8(r,Le,Ke=>Ke===g)}),oe}),cj=r=>(g,B)=>{const H=g.dom,oe=B.pattern,be=JU(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Le=(Ke,ut)=>{const At=ut.get(Ke);return C(At)&&Ye(At).exists(nn=>Ot(nn,"block"))};return i8(g,be).each(Ke=>{oe.type==="block-format"?Le(oe.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.formatter.apply(oe.format)}):oe.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.execCommand(oe.cmd,!1,oe.value)})}),!0},Yne=r=>Ue(r,(g,B)=>B.start.length-g.start.length),uj=r=>(g,B)=>{const H=Yne(g),oe=B.replace(Pc," ");return De(H,be=>r(be,B,oe))},QR=(r,g)=>(B,H,oe,be,Le)=>{var Ke;Le===void 0&&(Le=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ut=B.dom,At=tu(B);return ut.is(H,At)?r(oe.blockPatterns,Le).map(nn=>g&&To.trim(Le).length===nn.start.length?[]:[{pattern:nn,range:r8(ut,ut.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Xne=r=>/^\s[^\s]/.test(r),Gne=cj((r,g,B)=>{lj(r,g,B).each(H=>{const oe=_r.fromDom(H),be=f0(oe);Xne(be)&&K_(oe,be.slice(1))})}),Kne=uj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),Jne=QR(Kne,!0),ere=(r,g)=>{const B=r.selection.getRng();return i8(r,B).map(H=>{var oe;const be=Math.max(0,B.startOffset),Le=FR(g,H,(oe=H.textContent)!==null&&oe!==void 0?oe:""),Ke=aj(r,H,B.startContainer,be,Le,!0),ut=Jne(r,H,Le,!0);return{inlineMatches:Ke,blockMatches:ut}}).filter(({inlineMatches:H,blockMatches:oe})=>oe.length>0||H.length>0)},tre=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ve(g,H=>Gne(r,H)),r.selection.moveToBookmark(B)},nre=cj(lj),s8=uj((r,g,B)=>g===r.start||B===r.start),rre=QR(s8,!1),ore=(r,g)=>{const B=r.selection.getRng();return i8(r,B).map(H=>{const oe=Math.max(0,B.startOffset),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be);return rre(r,H,Le,!1,be)}).filter(H=>H.length>0)},ire=(r,g)=>{ve(g,B=>nre(r,B))},are=(r,g)=>ere(r,g).fold(re,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{XO(r),sj(r,B),tre(r,H);const oe=r.selection.getRng(),be=D9(oe.startContainer,oe.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Le=>{const Ke=Le.container;Ke.data.charAt(Le.offset-1)===pl&&(Ke.deleteData(Le.offset-1,1),dO(r.dom,Ke.parentNode,ut=>ut===r.dom.getRoot()))})}),!0)),sre=(r,g)=>{const B=r.selection.getRng();i8(r,B).map(H=>{const oe=Math.max(0,B.startOffset-1),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be),Ke=aj(r,H,B.startContainer,oe,Le,!1);Ke.length>0&&r.undoManager.transact(()=>{sj(r,Ke)})})},lre=(r,g)=>ore(r,g).fold(re,B=>(r.undoManager.transact(()=>{ire(r,B)}),!0)),dj=(r,g,B)=>{for(let H=0;Hdj(r,g,(B,H)=>B===H.keyCode&&!Jo.modifierPressed(H)),ure=(r,g)=>dj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),hj=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Cf(c2(r).filter(Le=>Le.type==="inline-command"||Le.type==="block-command"?r.queryCommandSupported(Le.cmd):!0),Wm(r)),oe=()=>ap(r);r.on("keydown",Le=>{if(Le.keyCode===13&&!Jo.modifierPressed(Le)&&r.selection.isCollapsed()){const Ke=xl(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||oe())&&are(r,Ke)&&Le.preventDefault()}},!0),r.on("keydown",Le=>{if(Le.keyCode===32&&r.selection.isCollapsed()){const Ke=xl(H(),"space");(Ke.blockPatterns.length>0||oe())&&lre(r,Ke)&&Le.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Le=xl(H(),"space");(Le.inlinePatterns.length>0||oe())&&sre(r,Le)}};r.on("keyup",Le=>{cre(B,Le)&&be()}),r.on("keypress",Le=>{ure(g,Le)&&Ig.setEditorTimeout(r,be)})},fre=r=>{hj(r)},pj=r=>{const g=To.each,B=Jo.BACKSPACE,H=Jo.DELETE,oe=r.dom,be=r.selection,Le=r.parser,Ke=Nr.browser,ut=Ke.isFirefox(),At=Ke.isChromium()||Ke.isSafari(),nn=Nr.deviceType.isiPhone()||Nr.deviceType.isiPad(),un=Nr.os.isMacOS()||Nr.os.isiOS(),yn=(Ti,pa)=>{try{r.getDoc().execCommand(Ti,!1,String(pa))}catch{}},Qn=Ti=>Ti.isDefaultPrevented(),rr=()=>{const Ti=ps=>{const Ci=oe.create("body"),ms=ps.cloneContents();return Ci.appendChild(ms),be.serializer.serialize(Ci,{format:"html"})},pa=ps=>{const Ci=Ti(ps),ms=oe.createRng();ms.selectNode(r.getBody());const Es=Ti(ms);return Ci===Es};r.on("keydown",ps=>{const Ci=ps.keyCode;if(!Qn(ps)&&(Ci===H||Ci===B)&&r.selection.isEditable()){const ms=r.selection.isCollapsed(),Es=r.getBody();if(ms&&!Hi(r.schema,Es)||!ms&&!pa(r.selection.getRng()))return;ps.preventDefault(),r.setContent(""),Es.firstChild&&oe.isBlock(Es.firstChild)?r.selection.setCursorLocation(Es.firstChild,0):r.selection.setCursorLocation(Es,0),r.nodeChanged()}})},Wn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},ur=()=>{r.inline||oe.bind(r.getDoc(),"mousedown mouseup",Ti=>{let pa;if(Ti.target===r.getDoc().documentElement)if(pa=be.getRng(),r.getBody().focus(),Ti.type==="mousedown"){if(op(pa.startContainer))return;be.placeCaretAt(Ti.clientX,Ti.clientY)}else be.setRng(pa)})},Tr=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode(),ps=pa.previousSibling;if(pa.nodeName==="HR"){oe.remove(pa),Ti.preventDefault();return}ps&&ps.nodeName&&ps.nodeName.toLowerCase()==="hr"&&(oe.remove(ps),Ti.preventDefault())}}})},Wr=()=>{Range.prototype.getClientRects||r.on("mousedown",Ti=>{if(!Qn(Ti)&&Ti.target.nodeName==="HTML"){const pa=r.getBody();pa.blur(),Ig.setEditorTimeout(r,()=>{pa.focus()})}})},Qr=()=>{const Ti=a2(r);r.on("click",pa=>{const ps=pa.target;/^(IMG|HR)$/.test(ps.nodeName)&&oe.isEditable(ps)&&(pa.preventDefault(),r.selection.select(ps),r.nodeChanged()),ps.nodeName==="A"&&oe.hasClass(ps,Ti)&&ps.childNodes.length===0&&oe.isEditable(ps.parentNode)&&(pa.preventDefault(),be.select(ps))})},lo=()=>{const Ti=()=>{const ps=oe.getAttribs(be.getStart().cloneNode(!1));return()=>{const Ci=be.getStart();Ci!==r.getBody()&&(oe.setAttrib(Ci,"style",null),g(ps,ms=>{Ci.setAttributeNode(ms.cloneNode(!0))}))}},pa=()=>!be.isCollapsed()&&oe.getParent(be.getStart(),oe.isBlock)!==oe.getParent(be.getEnd(),oe.isBlock);r.on("keypress",ps=>{let Ci;return!Qn(ps)&&(ps.keyCode===8||ps.keyCode===46)&&pa()?(Ci=Ti(),r.getDoc().execCommand("delete",!1),Ci(),ps.preventDefault(),!1):!0}),oe.bind(r.getDoc(),"cut",ps=>{if(!Qn(ps)&&pa()){const Ci=Ti();Ig.setEditorTimeout(r,()=>{Ci()})}})},Zo=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode().previousSibling;if(pa&&pa.nodeName&&pa.nodeName.toLowerCase()==="table")return Ti.preventDefault(),!1}return!0})},li=()=>{r.on("keydown",Ti=>{if(Qn(Ti)||Ti.keyCode!==Jo.BACKSPACE)return;let pa=be.getRng();const ps=pa.startContainer,Ci=pa.startOffset,ms=oe.getRoot();let Es=ps;if(!(!pa.collapsed||Ci!==0)){for(;Es.parentNode&&Es.parentNode.firstChild===Es&&Es.parentNode!==ms;)Es=Es.parentNode;Es.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Es),pa=oe.createRng(),pa.setStart(ps,0),pa.setEnd(ps,0),be.setRng(pa))}})},Mi=()=>{const Ti=()=>{yn("StyleWithCSS",!1),yn("enableInlineTableEditing",!1),Md(r)||yn("enableObjectResizing",!1)};Rb(r)||r.on("BeforeExecCommand mousedown",Ti)},Co=()=>{const Ti=()=>{g(oe.select("a:not([data-mce-block])"),pa=>{var ps;let Ci=pa.parentNode;const ms=oe.getRoot();if((Ci==null?void 0:Ci.lastChild)===pa){for(;Ci&&!oe.isBlock(Ci);){if(((ps=Ci.parentNode)===null||ps===void 0?void 0:ps.lastChild)!==Ci||Ci===ms)return;Ci=Ci.parentNode}oe.add(Ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",pa=>{(pa.type==="setcontent"||pa.command==="mceInsertLink")&&Ti()})},yo=()=>{r.on("init",()=>{yn("DefaultParagraphSeparator",tu(r))})},Vo=Ti=>{const pa=Ti.getBody(),ps=Ti.selection.getRng();return ps.startContainer===ps.endContainer&&ps.startContainer===pa&&ps.startOffset===0&&ps.endOffset===pa.childNodes.length},Fi=()=>{r.on("keyup focusin mouseup",Ti=>{!Jo.modifierPressed(Ti)&&!Vo(r)&&be.normalize()},!0)},la=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},bs=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ms=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",Ti=>{let pa;Ti.target.nodeName==="HTML"&&(pa=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(pa),r.selection.normalize(),r.nodeChanged())}))},wl=()=>{un&&r.on("keydown",Ti=>{Jo.metaKeyPressed(Ti)&&!Ti.shiftKey&&(Ti.keyCode===37||Ti.keyCode===39)&&(Ti.preventDefault(),r.selection.getSel().modify("move",Ti.keyCode===37?"backward":"forward","lineboundary"))})},Vl=()=>{r.on("click",Ti=>{let pa=Ti.target;do if(pa.tagName==="A"){Ti.preventDefault();return}while(pa=pa.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},Uu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",Ti=>{Ti.preventDefault()})})},Wf=()=>{Le.addNodeFilter("br",Ti=>{let pa=Ti.length;for(;pa--;)Ti[pa].attr("class")==="Apple-interchange-newline"&&Ti[pa].remove()})},ic=k,vi=()=>{if(!ut||r.removed)return!1;const Ti=r.selection.getSel();return!Ti||!Ti.rangeCount||Ti.rangeCount===0},na=()=>{At&&(ur(),Qr(),Uu(),Wn(),nn&&(bs(),Ms(),Vl())),ut&&(Wr(),Mi(),la(),wl())},ol=()=>{li(),rr(),Nr.windowsPhone||Fi(),At&&(ur(),Qr(),yo(),Uu(),Zo(),Wf(),nn?(bs(),Ms(),Vl()):Wn()),ut&&(Tr(),Wr(),lo(),Mi(),Co(),la(),wl(),Zo())};return By(r)?na():ol(),{refreshContentEditable:ic,isHidden:vi}},dre=r=>r.toLowerCase()==="gpl",hre=r=>r.length>=64&&r.length<=255,mj=r=>dre(r)||hre(r)?"VALID":"INVALID",uT=r=>{const g=l3(r);!v(c3(r))&&(M(g)||mj(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},HR=cc.DOM,gj=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_d(Ac(B)),oe=_r.fromTag("style");ll(oe,"type","text/css"),ii(oe,_r.fromText(g)),ii(H,oe),r.on("remove",()=>{hs(oe)})},pre=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,ZR=r=>Yt(r,g=>M(g)===!1),vj=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return ZR({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:pre(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:h2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},yj=r=>{const g=r.options.get;return ZR({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},bj=r=>{const g=r.options.get;return{...vj(r),...yj(r),...ZR({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},mre=r=>{const g=fS(vj(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const oe=r.dom,be="data-mce-"+H;let Le=B.length;for(;Le--;){const Ke=B[Le];let ut=Ke.attr(H);if(ut&&!Ke.attr(be)){if(ut.indexOf("data:")===0||ut.indexOf("blob:")===0)continue;H==="style"?(ut=oe.serializeStyle(oe.parseStyle(ut),Ke.name),ut.length||(ut=null),Ke.attr(be,ut),Ke.attr(H,ut)):H==="tabindex"?(Ke.attr(be,ut),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ut,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const oe=B[H],be=oe.attr("type")||"no/type";be.indexOf("mce-")!==0&&oe.attr("type","mce-"+be)}}),zb(r)&&g.addNodeFilter("#cdata",B=>{var H;let oe=B.length;for(;oe--;){const be=B[oe];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const oe=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(oe)&&be.getAll("br").length===0&&be.append(new Hp("br",1))}}),g},xj=r=>{const g=Db(r);g&&Ig.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},gre=r=>{const g=r.dom.getRoot();!r.inline&&(!T2(r)||r.selection.getStart(!0)===g)&&ph(g).each(B=>{const H=B.getNode(),oe=dt(H)?ph(H).getOr(B):B;r.selection.setRng(oe.toRange())})},vre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,oE(r),r.focus(!0),gre(r),r.nodeChanged({initial:!0});const g=n3(r);A(g)&&g.call(r,r),xj(r)},qR=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,yre=(r,g,B)=>{const{pass:H,fail:oe}=we(g,Ke=>tinymce.Resource.has(m5(Ke))),Le=[...H.map(Ke=>{const ut=tinymce.Resource.get(m5(Ke));return v(ut)?Promise.resolve(qR(r).loadRawCss(Ke,ut)):Promise.resolve()}),qR(r).loadAll(oe)];return r.inline?Le:Le.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=qR(r),B=Ad(r),H=r.contentCSS,oe=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?oe():r.on("remove",oe)};if(r.contentStyles.length>0){let ut="";To.each(r.contentStyles,At=>{ut+=At+`\r -`}),r.dom.addStyle(ut)}const Le=Promise.all(yre(r,H,B)).then(be).catch(be),Ke=Mb(r);return Ke&&gj(r,Ke),Le},bre=r=>{const g=r.getDoc(),B=r.getBody();$3(r),l2(r)||(g.body.spellcheck=!1,HR.setAttrib(B,"spellcheck","false")),r.quirks=pj(r),UC(r);const H=xy(r);H!==void 0&&(B.dir=H);const oe=fm(r);oe&&r.on("BeforeSetContent",be=>{To.each(oe,Le=>{be.content=be.content.replace(Le,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},xre=r=>{By(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},WR=r=>{r.removed!==!0&&(xre(r),vre(r))},_re=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},YR=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(HR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=Rb(r),r._editableRoot=Lb(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&HR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=C7(r),r.schema=zm(yj(r)),r.dom=cc(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:p1(r),referrerPolicy:b0(r),onSetAttrib:Le=>{r.dispatch("SetAttrib",Le)}}),r.parser=mre(r),r.serializer=Lh(bj(r),r),r.selection=jX(r.dom,r.getWin(),r.serializer,r),r.annotator=B3(r),r.formatter=Dv(r),r.undoManager=bS(r),r._nodeChangeDispatcher=new KV(r),r._selectionOverrides=jne(r),ZK(r),PU(r),KK(r),By(r)||(BU(r),fre(r));const oe=HA(r);h$(r,oe),y9(r),BG(r),cne(r);const be=SX(r);bre(r),uT(r),be.fold(()=>{const Le=_re(r);_j(r).then(()=>{WR(r),Le()})},Le=>{r.setProgressState(!0),_j(r).then(()=>{Le().then(Ke=>{r.setProgressState(!1),WR(r),v7(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),WR(r),v7(r)})})})},XR=q,wj=(r,g,B)=>wt(r,g,XR,B),l8=cc.DOM,wre=(r,g,B,H)=>{const oe=_r.fromTag("iframe");return H.each(be=>ll(oe,"tabindex",be)),Tu(oe,B),Tu(oe,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),Cu(oe,"tox-edit-area__iframe"),oe},Ore=r=>{let g=Mh(r)+"";mc(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=dh(r),H=hh(r),oe=r.translate(s2(r));return Qm(r)&&(g+=''),g+=`
    `,g},Sre=(r,g)=>{const B=Nr.browser.isFirefox()?s2(r):"Rich Text Area",H=r.translate(B),oe=ec(_r.fromDom(r.getElement()),"tabindex").bind(eo),be=wre(r.id,H,Ru(r),oe).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=Ore(r),l8.add(g.iframeContainer,be)},Oj=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,YR(r)};if(V4(r)||Nr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=wj(_r.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},Sj=(r,g)=>{Sre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=l8.isHidden(g.editorContainer)),r.getElement().style.display="none",l8.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,Oj(r)},kj=cc.DOM,kre=(r,g,B)=>{const H=mS.get(B),oe=mS.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=To.trim(B),H&&To.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,oe)||{};r.plugins[B]=be,A(be.init)&&(be.init(r,oe),g.push(B))}catch(be){bG(r,B,be)}}},GR=r=>r.replace(/^\-/,""),c8=r=>{const g=[];ve(bv(r),B=>{kre(r,g,GR(B))})},u8=r=>{const g=To.trim(du(r)),B=r.ui.registry.getAll().icons,H={...sA.get("default").icons,...sA.get(g).icons};Ge(H,(oe,be)=>{Ot(B,be)||r.ui.registry.addIcon(be,oe)})},mx=r=>{const g=w0(r);if(v(g)){const B=Q2.get(g);r.theme=B(r,Q2.urls[g])||{},A(r.theme.init)&&r.theme.init(r,Q2.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},f8=r=>{const g=wy(r),B=pS.get(g);r.model=B(r,pS.urls[g])},NS=r=>{const g=r.theme.renderUI;return g?g():KR(r)},Tj=r=>{const g=r.getElement(),H=w0(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},Cj=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),Tre=r=>{const g=kj.create("div");return kj.insertAfter(g,r),Cj(g,g)},KR=r=>{const g=r.getElement();return r.inline?Cj(null):Tre(g)},Cre=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(w0(r))?NS(r):A(w0(r))?Tj(r):KR(r)},JR=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(oe=>oe(H))}};r.ui={...r.ui,...B}},d8=async r=>{r.dispatch("ScriptsLoaded"),u8(r),mx(r),f8(r),c8(r);const g=await Cre(r);JR(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,Il(r),r.inline?YR(r):Sj(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},Qg=cc.DOM,a_=r=>r.charAt(0)==="-",Aj=(r,g)=>{const B=Hm(g),H=yv(g);if(!ff.hasCode(B)&&B!=="en"){const oe=lr(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(oe).catch(()=>{gG(g,oe,B)})}},Are=(r,g)=>{const B=w0(r);if(v(B)&&!a_(B)&&!Ot(Q2.urls,B)){const H=Eb(r),oe=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;Q2.load(B,oe).catch(()=>{vG(r,oe,B)})}},Mre=(r,g)=>{const B=wy(r);if(B!=="plugin"&&!Ot(pS.urls,B)){const H=aw(r),oe=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;pS.load(B,oe).catch(()=>{yG(r,oe,B)})}},Ere=r=>Y.from(Iu(r)).filter(lr).map(g=>({url:g,name:Y.none()})),Mj=(r,g,B)=>Y.from(g).filter(H=>lr(H)&&!sA.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),Pre=(r,g,B)=>{const H=Mj(g,"default",B),oe=Ere(g).orThunk(()=>Mj(g,du(g),""));ve(fs([H,oe]),be=>{r.add(be.url).catch(()=>{cF(g,be.url,be.name.getOrUndefined())})})},Rre=(r,g)=>{const B=(H,oe)=>{mS.load(H,oe).catch(()=>{mG(r,oe,H)})};Ge(uw(r),(H,oe)=>{B(oe,H),r.options.set("plugins",bv(r).concat(oe))}),ve(bv(r),H=>{H=To.trim(H),H&&!mS.urls[H]&&!a_(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Ej=r=>{const g=w0(r);return!v(g)||P(Q2.get(g))},Lre=r=>{const g=wy(r);return P(pS.get(g))},Ire=(r,g)=>{const B=Fm.ScriptLoader,H=()=>{!r.removed&&Ej(r)&&Lre(r)&&d8(r)};Are(r,g),Mre(r,g),Aj(B,r),Pre(B,r,g),Rre(r,g),B.loadQueue().then(H,H)},Dre=(r,g)=>Gl.forElement(r,{contentCssCors:Oy(g),referrerPolicy:b0(g)}),tde=r=>{const g=r.id;ff.setCode(Hm(r));const B=()=>{Qg.unbind(window,"ready",B),r.render()};if(!wg.Event.domLoaded){Qg.bind(window,"ready",B);return}if(!r.getElement())return;const H=_r.fromDom(r.getElement()),oe=rh(H);r.on("remove",()=>{_e(H.dom.attributes,Le=>tc(H,Le.name)),Tu(H,oe)}),r.ui.styleSheetLoader=Dre(H,r),ip(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||Qg.getParent(g,"form");be&&(r.formElement=be,$4(r)&&!Rt(r.getElement())&&(Qg.insertAfter(Qg.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Le=>{r.dispatch(Le.type,Le)},Qg.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),qm(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=sF(r),r.notificationManager=aF(r),dm(r)&&r.on("GetContent",Le=>{Le.save&&(Le.content=Qg.encode(Le.content))}),lw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),cw(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),Ire(r,r.suffix)},Bre=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),qC(r,g))},eL=r=>r._editableRoot,zre=(r,g)=>({sections:$(r),options:$(g)}),Pj=zn().deviceType,tL=Pj.isPhone(),Nre=Pj.isTablet(),FS=r=>{if(T(r))return[];{const g=C(r)?r:r.split(/[ ,]/),B=ye(g,qn);return Te(B,lr)}},Fre=(r,g)=>{const B=zt(g,(H,oe)=>ce(r,oe));return zre(B.t,B.f)},nL=(r,g,B={})=>{const H=r.sections(),oe=Et(H,g).getOr({});return To.extend({},B,oe)},rL=(r,g)=>Ot(r.sections(),g),$re=(r,g)=>rL(r,g)?r.sections()[g]:{},Vre=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Et(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),Ure=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?To.extend({},r.external_plugins,H):H},Rj=(r,g)=>[...FS(r),...FS(g)],oL=(r,g,B,H)=>r&&rL(g,"mobile")?H:B,Lj=(r,g,B,H)=>{const oe=FS(B.forced_plugins),be=FS(H.plugins),Le=$re(g,"mobile"),Ke=Le.plugins?FS(Le.plugins):be,ut=oL(r,g,be,Ke),At=Rj(oe,ut);return To.extend(H,{forced_plugins:oe,plugins:At})},iL=(r,g)=>r&&rL(g,"mobile"),jre=(r,g,B,H,oe)=>{var be;const Le=r?{mobile:Vre((be=oe.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Fre(["mobile"],ng(Le,oe)),ut=To.extend(B,H,Ke.options(),iL(r,Ke)?nL(Ke,"mobile"):{},{external_plugins:Ure(H,Ke.options())});return Lj(r,Ke,H,ut)},nde=(r,g)=>{const B=CS(g);return jre(tL||Nre,tL,B,r,B)},rde=(r,g)=>IX(r,g),Qre=r=>{const g=(H,oe)=>{r.formatter.toggle(H,oe),r.nodeChanged()},B=H=>()=>{ve("left,center,right,justify".split(","),oe=>{H!==oe&&r.formatter.remove("align"+oe)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Ij=r=>{const g=B=>()=>{const H=r.selection,oe=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(oe,be=>P(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Hre=r=>{Qre(r),Ij(r)},Zre=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let oe=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Nr.os.isMacOS()||Nr.os.isiOS())&&(oe=oe.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:oe,type:"error"})}}})},qre=(r,g,B,H)=>{const oe=_r.fromDom(r.getRoot());return Pk(oe,vo.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),K3(oe,vo.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},ode=r=>{if(typeof r!="string"){const g=To.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},ide=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?qre(H,B.getRng(),g,r.schema):g},fT=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=ode(g);Y6(r,{...H,content:ide(r,B),format:"html",set:!1,selection:!0}).each(oe=>{const be=RX(r,oe.content,H);YP(r,be,oe),r.addVisual()})}},Dj=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{fT(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{fT(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{fT(r,H)},mceInsertContent:(g,B,H)=>{fT(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(wv(r))}})},Wre={"font-size":"size","font-family":"face"},Yre=Jl("font"),Xre=(r,g,B)=>{const H=be=>Ri(be,r).orThunk(()=>Yre(be)?Et(Wre,r).bind(Le=>ec(be,Le)):Y.none()),oe=be=>va(_r.fromDom(g),be);return qk(_r.fromDom(B),be=>H(be),oe)},ade=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),sde=(r,g)=>Y.from(cc.DOM.getStyle(g,r,!0)),Gre=r=>(g,B)=>Y.from(B).map(_r.fromDom).filter(Wl).bind(H=>Xre(r,g,H.dom).or(sde(r,H.dom))).getOr(""),Kre=Gre("font-size"),lde=I(ade,Gre("font-family")),Jre=r=>ph(r.getBody()).bind(g=>{const B=g.container();return Y.from(Mt(B)?B.parentNode:B)}),hO=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),aL=(r,g)=>hO(r).orThunk(U(Jre,r)).map(_r.fromDom).filter(Wl).bind(g),$S=(r,g)=>aL(r,z(Y.some,g)),sL=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=Nb(r),oe=i3(r);return oe.length>0?oe[B-1]||g:H[B-1]||g}else return g}else return g},Bj=r=>{const g=r.split(/\s*,\s*/);return ye(g,B=>B.indexOf(" ")!==-1&&!(Br(B,'"')||Br(B,"'"))?`'${B}'`:B).join(",")},zj=(r,g)=>{const B=sL(r,g);r.formatter.toggle("fontname",{value:Bj(B)}),r.nodeChanged()},eoe=r=>$S(r,g=>lde(r.getBody(),g.dom)).getOr(""),toe=(r,g)=>{r.formatter.toggle("fontsize",{value:sL(r,g)}),r.nodeChanged()},noe=r=>$S(r,g=>Kre(r.getBody(),g.dom)).getOr(""),roe=r=>$S(r,g=>{const B=_r.fromDom(r.getBody()),H=qk(g,be=>Ri(be,"line-height"),U(va,B)),oe=()=>{const be=parseFloat(rs(g,"line-height")),Le=parseFloat(rs(g,"font-size"));return String(be/Le)};return H.getOrThunk(oe)}).getOr(""),ooe=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},ioe=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,oe)=>{g(B,{value:oe})},BackColor:(B,H,oe)=>{g("hilitecolor",{value:oe})},FontName:(B,H,oe)=>{zj(r,oe)},FontSize:(B,H,oe)=>{toe(r,oe)},LineHeight:(B,H,oe)=>{ooe(r,oe)},Lang:(B,H,oe)=>{var be;g(B,{value:oe.code,customValue:(be=oe.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,oe)=>{g(v(oe)?oe:"p")},mceToggleFormat:(B,H,oe)=>{g(oe)}})},s_=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>eoe(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>noe(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>roe(r))},aoe=r=>{ioe(r),s_(r)},Nj=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},soe=r=>{r.editorCommands.addCommands({Indent:()=>{K2(r)},Outdent:()=>{m9(r)}}),r.editorCommands.addCommands({Outdent:()=>G2(r)},"state")},h8=r=>{const g=(B,H,oe)=>{const be=v(oe)?{href:oe}:oe,Le=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Le||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Le))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},loe=(r,g,B,H)=>{const oe=r.dom,be=Ke=>oe.isBlock(Ke)&&Ke.parentElement===B,Le=be(g)?g:oe.getParent(H,be,B);return Y.from(Le).map(_r.fromDom)},Fj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),oe=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Le=Y5(B,be);if(!Le||!Le.isContentEditable)return;const Ke=g?xc:Kc,ut=tu(r);loe(r,oe,Le,be).each(At=>{const nn=_V(r,be,At.dom,Le,!1,ut);Ke(At,_r.fromDom(nn)),r.selection.setCursorLocation(nn,0),r.dispatch("NewBlock",{newBlock:nn}),cO(r,"insertParagraph")})},coe=r=>Fj(r,!0),$j=r=>Fj(r,!1),uoe=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{coe(r)},InsertNewBlockAfter:()=>{$j(r)}})},foe=r=>{r.editorCommands.addCommands({insertParagraph:()=>{ES(EV,r)},mceInsertNewLine:(g,B,H)=>{FV(r,H)},InsertLineBreak:(g,B,H)=>{ES(RV,r)}})},doe=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let oe=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&oe++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),pn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},hoe=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const oe=H??r.selection.getNode();if(oe!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(oe,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{Kq(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},lL=r=>{Hre(r),Zre(r),Nj(r),doe(r),Dj(r),h8(r),soe(r),uoe(r),foe(r),aoe(r),hoe(r)},poe=["toggleview"],Vj=r=>ce(poe,r.toLowerCase());class fd{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,oe){const be=this.editor,Le=g.toLowerCase(),Ke=oe==null?void 0:oe.skip_focus;if(be.removed||(Le!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Le)&&!Ke?be.focus():ND(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const At=this.commands.exec[Le];return A(At)?(At(Le,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!Vj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return A(H)?H(B):!1}queryCommandValue(g){if(!Vj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return A(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(oe,be)=>{ve(be.toLowerCase().split(","),Le=>{H[B][Le]=oe})})}addCommand(g,B,H){const oe=g.toLowerCase();this.commands.exec[oe]=(be,Le,Ke)=>B.call(H??this.editor,Le,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const pO="data-mce-contenteditable",moe=(r,g,B)=>{cs(r,g)&&!B?Bu(r,g):B&&Cu(r,g)},dT=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},hT=(r,g)=>{r.dom.contentEditable=g?"true":"false"},cL=r=>{ve(Pl(r,'*[contenteditable="true"]'),g=>{ll(g,pO,"true"),hT(g,!1)})},goe=r=>{ve(Pl(r,`*[${pO}="true"]`),g=>{tc(g,pO),hT(g,!0)})},voe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},yoe=r=>{r.selection.setRng(r.selection.getRng())},boe=(r,g)=>{const B=_r.fromDom(r.getBody());moe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),voe(r),r.readonly=!0,hT(B,!1),cL(B)):(r.readonly=!1,r.hasEditableRoot()&&hT(B,!0),goe(B),dT(r,"StyleWithCSS",!1),dT(r,"enableInlineTableEditing",!1),dT(r,"enableObjectResizing",!1),GD(r)&&r.focus(),yoe(r),r.nodeChanged())},mO=r=>r.readonly,Uj=r=>{r.parser.addAttributeFilter("contenteditable",g=>{mO(r)&&ve(g,B=>{B.attr(pO,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(pO,g=>{mO(r)&&ve(g,B=>{B.attr("contenteditable",B.attr(pO))})}),r.serializer.addTempAttr(pO)},xoe=r=>{r.serializer?Uj(r):r.on("PreInit",()=>{Uj(r)})},_oe=r=>r.type==="click",VS=["copy"],Fv=r=>ce(VS,r.type),woe=(r,g)=>bu(g,"a",H=>va(H,_r.fromDom(r.getBody()))).bind(H=>ec(H,"href")),Ooe=(r,g)=>{if(_oe(g)&&!Jo.metaKeyPressed(g)){const B=_r.fromDom(g.target);woe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const oe=r.dom.select(`${H},[name="${Zn(H,"#")}"]`);oe.length&&r.selection.scrollIntoView(oe[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Fv(g)&&r.dispatch(g.type,g)},Soe=r=>{r.on("ShowCaret",g=>{mO(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{mO(r)&&g.preventDefault()})},koe=To.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class uL{static isNative(g){return!!koe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||re}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),oe=j_(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(oe);const be=this.bindings[H];if(be)for(let Le=0,Ke=be.length;Le{this.toggleEvent(ut,!1),delete this.bindings[ut]}),this;if(Le){if(!B)Le.length=0;else{const Ke=we(Le,ut=>ut.func===B);Le=Ke.fail,this.bindings[be]=Le,ve(Ke.pass,ut=>{ut.removed=!0})}Le.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,oe)=>{this.toggleEvent(oe,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const pT=r=>(r._eventDispatcher||(r._eventDispatcher=new uL({scope:r,toggleEvent:(g,B)=>{uL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),fL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return j_(r.toLowerCase(),g??{},H);const oe=pT(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!oe.isPropagationStopped();)be.dispatch(r,oe,!1),be=be.parent?be.parent():void 0}return oe},on(r,g,B){return pT(this).on(r,g,B)},off(r,g){return pT(this).off(r,g)},once(r,g){return pT(this).once(r,g)},hasEventListeners(r){return pT(this).has(r)}},p8=cc.DOM;let gO;const dL=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=um(r);return B?(r.eventRoot||(r.eventRoot=p8.select(B)[0]),r.eventRoot):r.getBody()},Toe=r=>!r.hidden&&!mO(r),jj=(r,g,B)=>{Toe(r)?r.dispatch(g,B):mO(r)&&Ooe(r,B)},Qj=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=dL(r,g);if(um(r)){if(gO||(gO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||gO&&(Ge(gO,(oe,be)=>{r.dom.unbind(dL(r,be))}),gO=null)})),gO[g])return;const H=oe=>{const be=oe.target,Le=r.editorManager.get();let Ke=Le.length;for(;Ke--;){const ut=Le[Ke].getBody();(ut===be||p8.isChildOf(be,ut))&&jj(Le[Ke],g,oe)}};gO[g]=H,p8.bind(B,g,H)}else{const H=oe=>{jj(r,g,oe)};p8.bind(B,g,H),r.delegates[g]=H}},Hj={...fL,bindPendingEventDelegates(){const r=this;To.each(r._pendingNativeEvents,g=>{Qj(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?Qj(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(dL(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,oe)=>{r.dom.unbind(dL(r,oe),oe,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},Coe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Aoe=r=>{const g=(()=>{switch(r){case"array":return C;case"boolean":return R;case"function":return A;case"number":return L;case"object":return _;case"string":return v;case"string[]":return Coe;case"object[]":return B=>D(B,_);case"regexp":return B=>p(B,RegExp);default:return q}})();return B=>hL(B,g,`The value must be a ${r}.`)},cde=r=>v(r.processor),Zj=(r,g)=>{const B=zr(g.message)?"":`. ${g.message}`;return r+B},qj=r=>r.valid,hL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},Moe=(r,g,B)=>{if(!M(g)){const H=hL(g,B);if(qj(H))return H.value;console.error(Zj(`Invalid default value passed for the "${r}" option`,H))}},Eoe=(r,g,B=g)=>{const H={},oe={},be=(Qn,rr,Wn)=>{const ur=hL(rr,Wn);return qj(ur)?(oe[Qn]=ur.value,!0):(console.warn(Zj(`Invalid value passed for the ${Qn} option`,ur)),!1)},Le=(Qn,rr)=>{const Wn=cde(rr)?Aoe(rr.processor):rr.processor,ur=Moe(Qn,rr.default,Wn);H[Qn]={...rr,default:ur,processor:Wn},Et(oe,Qn).orThunk(()=>Et(g,Qn)).each(Wr=>be(Qn,Wr,Wn))},Ke=Qn=>Ot(H,Qn);return{register:Le,isRegistered:Ke,get:Qn=>Et(oe,Qn).orThunk(()=>Et(H,Qn).map(rr=>rr.default)).getOrUndefined(),set:(Qn,rr)=>{if(Ke(Qn)){const Wn=H[Qn];return Wn.immutable?(console.error(`"${Qn}" is an immutable option and cannot be updated`),!1):be(Qn,rr,Wn.processor)}else return console.warn(`"${Qn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Qn=>{const rr=Ke(Qn);return rr&&delete oe[Qn],rr},isSet:Qn=>Ot(oe,Qn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(Qn,rr)=>R(rr)||L(rr)||v(rr)||x(rr)||C(rr)||O(rr)?rr:Object.prototype.toString.call(rr))))}catch(Qn){console.error(Qn)}}}},Poe=["design","readonly"],Wj=(r,g,B,H)=>{const oe=B[g.get()],be=B[H];try{be.activate()}catch(Le){console.error(`problem while activating editor mode ${H}:`,Le);return}oe.deactivate(),oe.editorReadOnly!==be.editorReadOnly&&boe(r,be.editorReadOnly),g.set(H),tE(r,H)},Roe=(r,g,B,H)=>{if(H!==B.get()){if(!Ot(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Wj(r,B,g,H):r.on("init",()=>Wj(r,B,g,H))}},Loe=(r,g,B)=>{if(ce(Poe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Ioe=r=>{const g=Ar("design"),B=Ar({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return xoe(r),Soe(r),{isReadOnly:()=>mO(r),set:H=>Roe(r,B.get(),g,H),get:()=>g.get(),register:(H,oe)=>{B.set(Loe(B.get(),H,oe))}}},pL=To.each,mL=To.explode,Doe={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Yj=To.makeMap("alt,ctrl,shift,meta,access"),Boe=r=>r in Yj,zoe=r=>{const g={},B=Nr.os.isMacOS()||Nr.os.isiOS();pL(mL(r.toLowerCase(),"+"),be=>{Boe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Doe[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let oe;for(oe in Yj)g[oe]?H.push(oe):g[oe]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class gL{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(pL(B.shortcuts,oe=>{B.matchShortcut(H,oe)&&(B.pendingPatterns=oe.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(oe))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,oe){const be=this,Le=be.normalizeCommandFunc(H);return pL(mL(To.trim(g)),Ke=>{const ut=be.createShortcut(Ke,B,Le,oe);be.shortcuts[ut.id]=ut}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:To.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,oe){const be=To.map(mL(g,">"),zoe);return be[be.length-1]=To.extend(be[be.length-1],{func:H,scope:oe||this.editor}),To.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Noe=()=>{const r={},g={},B={},H={},oe={},be={},Le={},Ke={},ut=(nn,un)=>(yn,Qn)=>{nn[yn.toLowerCase()]={...Qn,type:un}},At=(nn,un)=>H[nn.toLowerCase()]=un;return{addButton:ut(r,"button"),addGroupToolbarButton:ut(r,"grouptoolbarbutton"),addToggleButton:ut(r,"togglebutton"),addMenuButton:ut(r,"menubutton"),addSplitButton:ut(r,"splitbutton"),addMenuItem:ut(g,"menuitem"),addNestedMenuItem:ut(g,"nestedmenuitem"),addToggleMenuItem:ut(g,"togglemenuitem"),addAutocompleter:ut(B,"autocompleter"),addContextMenu:ut(oe,"contextmenu"),addContextToolbar:ut(be,"contexttoolbar"),addContextForm:ut(be,"contextform"),addSidebar:ut(Le,"sidebar"),addView:ut(Ke,"views"),addIcon:At,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:oe,contextToolbars:be,sidebars:Le,views:Ke})}},Foe=()=>{const r=Noe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},vO=cc.DOM,Xj=To.extend,$oe=To.each;class m8{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,Xj(this,Hj);const oe=this;this.id=g,this.hidden=!1;const be=nde(H.defaultOptions,B);this.options=Eoe(oe,be,B),$l(oe);const Le=this.options.get;Le("deprecation_warnings")&&rG(B,be);const Ke=Le("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ut=Le("base_url");ut&&H._setBaseUrl(ut),this.baseUri=H.baseURI;const At=b0(oe);At&&(Fm.ScriptLoader._setReferrerPolicy(At),cc.DOM.styleSheetLoader._setReferrerPolicy(At));const nn=Oy(oe);P(nn)&&cc.DOM.styleSheetLoader._setContentCssCors(nn),fh.languageLoad=Le("language_load"),fh.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new cp(mc(oe),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ip(oe),this.hasVisual=ud(oe),this.shortcuts=new gL(this),this.editorCommands=new fd(this),lL(this);const un=Le("cache_suffix");un&&(Nr.cacheSuffix=un.replace(/^[\?\&]+/,"")),this.ui={registry:Foe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Ioe(oe),H.dispatch("SetupEditor",{editor:this});const yn=Ib(oe);A(yn)&&yn.call(oe,oe)}render(){tde(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return nx(this)}translate(g){return ff.translate(g)}getParam(g,B,H){const oe=this.options;return oe.isRegistered(g)||(P(H)?oe.register(g,{processor:H,default:B}):oe.register(g,{processor:q,default:B})),!oe.isSet(g)&&!M(B)?B:oe.get(g)}hasPlugin(g,B){return ce(bv(this),g)?B?mS.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,oe){this.shortcuts.add(g,B,H,oe)}execCommand(g,B,H,oe){return this.editorCommands.execCommand(g,B,H,oe)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(vO.show(g.getContainer()),vO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(vO.hide(g.getContainer()),vO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const oe={...g,load:!0},be=Rt(H)?H.value:H.innerHTML,Le=B.setContent(be,oe);return oe.no_events||B.dispatch("LoadContent",{...oe,element:H}),Le}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const oe={...g,save:!0,element:H};let be=B.getContent(oe);const Le={...oe,content:be};if(Le.no_events||B.dispatch("SaveContent",Le),Le.format==="raw"&&B.dispatch("RawSaveContent",Le),be=Le.content,Rt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=vO.getParent(B.id,"form");Ke&&$oe(Ke.elements,ut=>ut.name===B.id?(ut.value=be,!1):!0)}return Le.element=oe.element=H=null,Le.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return hS(this,g,B)}getContent(g){return eF(this,g)}insertContent(g,B){B&&(g=Xj({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?hS(this,this.startContent,{format:"raw"}):hS(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||vO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=vO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const oe=this,be=oe.options.get,Le=Eh(oe);if(A(Le))return Le.call(oe,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new cp(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?oe.documentBaseURI.toRelative(g):(g=oe.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){rde(this,g)}setEditableRoot(g){Bre(this,g)}hasEditableRoot(){return eL(this)}remove(){aG(this)}destroy(g){sG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const US=cc.DOM,g8=To.each;let vL=!1,v8,wm=[];const y8=r=>{const g=r.type;g8(l_.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},Gj=r=>{if(r!==vL){const g=cc.DOM;r?(g.bind(window,"resize",y8),g.bind(window,"scroll",y8)):(g.unbind(window,"resize",y8),g.unbind(window,"scroll",y8)),vL=r}},Kj=r=>{const g=wm;return wm=Te(wm,B=>r!==B),l_.activeEditor===r&&(l_.activeEditor=wm.length>0?wm[0]:null),l_.focusedEditor===r&&(l_.focusedEditor=null),g.length!==wm.length},Voe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(Kj(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},Uoe=document.compatMode!=="CSS1Compat",l_={...fL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"3.0",releaseDate:"2024-08-07",i18n:ff,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=cp.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const oe=window.tinymce||window.tinyMCEPreInit;if(oe)g=oe.base||oe.baseURL,B=oe.suffix;else{const be=document.getElementsByTagName("script");for(let Le=0;Le{fh.PluginManager.urls[be]=oe})},init(r){const g=this;let B;const H=To.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),oe=(nn,un)=>nn.inline&&un.tagName.toLowerCase()in H,be=nn=>{let un=nn.id;return un||(un=Et(nn,"name").filter(yn=>!US.get(yn)).getOrThunk(US.uniqueId),nn.setAttribute("id",un)),un},Le=nn=>{const un=r[nn];if(un)return un.apply(g,[])},Ke=nn=>Nr.browser.isIE()||Nr.browser.isEdge()?(k7("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):Uoe?(k7("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(nn.selector)?US.select(nn.selector):P(nn.target)?[nn.target]:[];let ut=nn=>{B=nn};const At=()=>{let nn=0;const un=[];let yn;const Qn=(rr,Wn,ur)=>{const Tr=new m8(rr,Wn,g);un.push(Tr),Tr.on("init",()=>{++nn===yn.length&&ut(un)}),Tr.targetElm=Tr.targetElm||ur,Tr.render()};US.unbind(window,"ready",At),Le("onpageload"),yn=je(Ke(r)),To.each(yn,rr=>{Voe(g.get(rr.id))}),yn=To.grep(yn,rr=>!g.get(rr.id)),yn.length===0?ut([]):g8(yn,rr=>{oe(r,rr)?k7("Could not initialize inline editor on invalid inline target element",rr):Qn(be(rr),r,rr)})};return US.bind(window,"ready",At),new Promise(nn=>{B?nn(B):ut=un=>{nn(un)}})},get(r){return arguments.length===0?wm.slice(0):v(r)?De(wm,g=>g.id===r).getOr(null):L(r)&&wm[r]?wm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&wm.push(r),Gj(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),v8||(v8=H=>{const oe=g.dispatch("BeforeUnload");if(oe.returnValue)return H.preventDefault(),H.returnValue=oe.returnValue,oe.returnValue},window.addEventListener("beforeunload",v8))),r},createEditor(r,g){return this.add(new m8(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=wm.length-1;H>=0;H--)g.remove(wm[H]);return}if(v(r)){g8(US.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(Kj(B)&&g.dispatch("RemoveEditor",{editor:B}),wm.length===0&&window.removeEventListener("beforeunload",v8),B.remove(),Gj(wm.length>0),B)},execCommand(r,g,B){var H;const oe=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!oe.get(be)){const Le=B.options;new m8(be,Le,oe).render()}return!0}case"mceRemoveEditor":{const Le=oe.get(be);return Le&&Le.remove(),!0}case"mceToggleEditor":{const Le=oe.get(be);return Le?(Le.isHidden()?Le.show():Le.hide(),!0):(oe.execCommand("mceAddEditor",!1,B),!0)}}return oe.activeEditor?oe.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{g8(wm,r=>{r.save()})},addI18n:(r,g)=>{ff.add(r,g)},translate:r=>ff.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new cp(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new cp(this.baseURL)}};l_.setup();const ude=(()=>{const r=Ts(),g=be=>({items:be,types:tt(be),getType:Le=>Et(be,Le).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),oe=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:oe}})(),yL=Math.min,jS=Math.max,mT=Math.round,Jj=(r,g,B)=>{let H=g.x,oe=g.y;const be=r.w,Le=r.h,Ke=g.w,ut=g.h,At=(B||"").split("");return At[0]==="b"&&(oe+=ut),At[1]==="r"&&(H+=Ke),At[0]==="c"&&(oe+=mT(ut/2)),At[1]==="c"&&(H+=mT(Ke/2)),At[3]==="b"&&(oe-=Le),At[4]==="r"&&(H-=be),At[3]==="c"&&(oe-=mT(Le/2)),At[4]==="c"&&(H-=mT(be/2)),QS(H,oe,be,Le)},Qoe=(r,g,B,H)=>{for(let oe=0;oe=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[oe]}return null},Hoe=(r,g,B)=>QS(r.x-g,r.y-B,r.w+g*2,r.h+B*2),Zoe=(r,g)=>{const B=jS(r.x,g.x),H=jS(r.y,g.y),oe=yL(r.x+r.w,g.x+g.w),be=yL(r.y+r.h,g.y+g.h);return oe-B<0||be-H<0?null:QS(B,H,oe-B,be-H)},qoe=(r,g,B)=>{let H=r.x,oe=r.y,be=r.x+r.w,Le=r.y+r.h;const Ke=g.x+g.w,ut=g.y+g.h,At=jS(0,g.x-H),nn=jS(0,g.y-oe),un=jS(0,be-Ke),yn=jS(0,Le-ut);return H+=At,oe+=nn,B&&(be+=At,Le+=nn,H-=un,oe-=yn),be-=un,Le-=yn,QS(H,oe,be-H,Le-oe)},QS=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),bL={inflate:Hoe,relativePosition:Jj,findBestRelativePosition:Qoe,intersect:Zoe,clamp:qoe,create:QS,fromClientRect:r=>QS(r.left,r.top,r.width,r.height)},Woe=(r,g,B=1e3)=>{let H=!1,oe=null;const be=At=>(...nn)=>{H||(H=!0,oe!==null&&(clearTimeout(oe),oe=null),At.apply(null,nn))},Le=be(r),Ke=be(g);return{start:(...At)=>{!H&&oe===null&&(oe=setTimeout(()=>Ke.apply(null,At),B))},resolve:Le,reject:Ke}},Xoe=(()=>{const r={},g={},B={};return{load:(ut,At)=>{const nn=`Script at URL "${At}" failed to load`,un=`Script at URL "${At}" did not call \`tinymce.Resource.add('${ut}', data)\` within 1 second`;if(r[ut]!==void 0)return r[ut];{const yn=new Promise((Qn,rr)=>{const Wn=Woe(Qn,rr);g[ut]=Wn.resolve,Fm.ScriptLoader.loadScript(At).then(()=>Wn.start(un),()=>Wn.reject(nn))});return r[ut]=yn,yn}},add:(ut,At)=>{g[ut]!==void 0&&(g[ut](At),delete g[ut]),r[ut]=Promise.resolve(At),B[ut]=At},has:ut=>ut in B,get:ut=>B[ut],unload:ut=>{delete r[ut],delete B[ut]}}})(),Goe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const oe=r[H];return oe||null},setItem:(H,oe)=>{g.push(H),r[H]=String(oe)},key:H=>g[H],removeItem:H=>{g=g.filter(oe=>oe===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let gT;try{const r="__storage_test__";gT=window.localStorage,gT.setItem(r,r),gT.removeItem(r)}catch{gT=Goe()}var Koe=gT;const Joe={geom:{Rect:bL},util:{Delay:Ig,Tools:To,VK:Jo,URI:cp,EventDispatcher:uL,Observable:fL,I18n:ff,LocalStorage:Koe,ImageUploader:zy},dom:{EventUtils:wg,TreeWalker:Xl,TextSeeker:Cg,DOMUtils:cc,ScriptLoader:Fm,RangeUtils:oi,Serializer:Lh,StyleSheetLoader:Uh,ControlSelection:Iw,BookmarkManager:Pg,Selection:jX,Event:wg.Event},html:{Styles:U_,Entities:Lm,Node:Hp,Schema:zm,DomParser:fS,Writer:AE,Serializer:rx},Env:Nr,AddOnManager:fh,Annotator:B3,Formatter:Dv,UndoManager:bS,EditorCommands:fd,WindowManager:sF,NotificationManager:aF,EditorObservable:Hj,Shortcuts:gL,Editor:m8,FocusManager:FD,EditorManager:l_,DOM:cc.DOM,ScriptLoader:Fm.ScriptLoader,PluginManager:mS,ThemeManager:Q2,ModelManager:pS,IconManager:sA,Resource:Xoe,FakeClipboard:ude,trim:To.trim,isArray:To.isArray,is:To.is,toArray:To.toArray,makeMap:To.makeMap,each:To.each,map:To.map,grep:To.grep,inArray:To.inArray,extend:To.extend,walk:To.walk,resolve:To.resolve,explode:To.explode,_addCacheSuffix:To._addCacheSuffix},tQ=To.extend(l_,Joe),eie=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(tQ),eie(tQ)})()})(N$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(he,Ce,Xe)=>{var lt;return Xe(he,Ce.prototype)?!0:((lt=he.constructor)===null||lt===void 0?void 0:lt.name)===Ce.name},o=he=>{const Ce=typeof he;return he===null?"null":Ce==="object"&&Array.isArray(he)?"array":Ce==="object"&&e(he,String,(Xe,lt)=>lt.isPrototypeOf(Xe))?"string":Ce},f=he=>Ce=>o(Ce)===he,E=he=>Ce=>typeof Ce===he,d=he=>Ce=>he===Ce,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=d(void 0),w=he=>he==null,y=he=>!w(he),m=E("function"),a=E("number"),c=()=>{},h=(he,Ce)=>(...Xe)=>he(Ce.apply(null,Xe)),p=(he,Ce)=>Xe=>he(Ce(Xe)),v=he=>()=>he,_=he=>he,O=(he,Ce)=>he===Ce;function C(he,...Ce){return(...Xe)=>{const lt=Ce.concat(Xe);return he.apply(null,lt)}}const x=he=>Ce=>!he(Ce),R=he=>()=>{throw new Error(he)},M=he=>he(),T=v(!1),P=v(!0);class A{constructor(Ce,Xe){this.tag=Ce,this.value=Xe}static some(Ce){return new A(!0,Ce)}static none(){return A.singletonNone}fold(Ce,Xe){return this.tag?Xe(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?A.some(Ce(this.value)):A.none()}bind(Ce){return this.tag?Ce(this.value):A.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:A.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?A.some(Ce):A.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}A.singletonNone=new A(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(he,Ce)=>D.call(he,Ce),z=(he,Ce)=>I(he,Ce)>-1,$=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Xe=[];for(let lt=0;lt{const Xe=he.length,lt=new Array(Xe);for(let Ct=0;Ct{for(let Xe=0,lt=he.length;Xe{for(let Xe=he.length-1;Xe>=0;Xe--){const lt=he[Xe];Ce(lt,Xe)}},te=(he,Ce)=>{const Xe=[],lt=[];for(let Ct=0,Wt=he.length;Ct{const Xe=[];for(let lt=0,Ct=he.length;lt(X(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),re=(he,Ce,Xe)=>(U(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),q=(he,Ce,Xe)=>{for(let lt=0,Ct=he.length;ltq(he,Ce,T),ee=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=[];for(let Xe=0,lt=he.length;Xeme(j(he,Ce)),se=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=L.call(he,0);return Ce.reverse(),Ce},ce=(he,Ce)=>{const Xe={};for(let lt=0,Ct=he.length;lt{const Xe=L.call(he,0);return Xe.sort(Ce),Xe},ye=(he,Ce)=>Ce>=0&&Ceye(he,0),_e=he=>ye(he,he.length-1),we=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Te(he);for(let lt=0,Ct=Xe.length;ltDe(he,(Xe,lt)=>({k:lt,v:Ce(Xe,lt)})),De=(he,Ce)=>{const Xe={};return Ie(he,(lt,Ct)=>{const Wt=Ce(lt,Ct);Xe[Wt.k]=Wt.v}),Xe},Qe=he=>(Ce,Xe)=>{he[Xe]=Ce},Ve=(he,Ce,Xe,lt)=>{Ie(he,(Ct,Wt)=>{(Ce(Ct,Wt)?Xe:lt)(Ct,Wt)})},$e=(he,Ce)=>{const Xe={};return Ve(he,Ce,Qe(Xe),c),Xe},Oe=(he,Ce)=>{const Xe=[];return Ie(he,(lt,Ct)=>{Xe.push(Ce(lt,Ct))}),Xe},ke=he=>Oe(he,_),Re=(he,Ce)=>We(he,Ce)?A.from(he[Ce]):A.none(),We=(he,Ce)=>Pe.call(he,Ce),Ue=(he,Ce)=>We(he,Ce)&&he[Ce]!==void 0&&he[Ce]!==null,Ze=he=>{for(const Ce in he)if(Pe.call(he,Ce))return!1;return!0},Ye=typeof window<"u"?window:Function("return this;")(),Je=(he,Ce)=>{let Xe=Ce??Ye;for(let lt=0;lt{const Xe=he.split(".");return Je(Xe,Ce)},Fe=(he,Ce)=>Me(he,Ce),je=(he,Ce)=>{const Xe=Fe(he,Ce);if(Xe==null)throw new Error(he+" not available on this browser");return Xe},tt=Object.getPrototypeOf,ot=he=>je("HTMLElement",he),Ge=he=>{const Ce=Me("ownerDocument.defaultView",he);return n(he)&&(ot(Ce).prototype.isPrototypeOf(he)||/^HTML\w*Element$/.test(tt(he).constructor.name))},ht=8,pt=9,St=11,Ft=1,zt=3,Yt=he=>he.dom.nodeName.toLowerCase(),ln=he=>he.dom.nodeType,tn=he=>Ce=>ln(Ce)===he,Et=he=>ln(he)===ht||Yt(he)==="#comment",Ot=he=>cn(he)&&Ge(he.dom),cn=tn(Ft),Cn=tn(zt),Pn=tn(pt),Sn=tn(St),vt=he=>Ce=>cn(Ce)&&Yt(Ce)===he,xt=(he,Ce,Xe)=>{if(s(Xe)||i(Xe)||a(Xe))he.setAttribute(Ce,Xe+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Xe,":: Element ",he),new Error("Attribute value was not simple")},st=(he,Ce,Xe)=>{xt(he.dom,Ce,Xe)},bt=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{xt(Xe,Ct,lt)})},Vt=(he,Ce)=>{Ie(Ce,(Xe,lt)=>{Xe.fold(()=>{at(he,lt)},Ct=>{xt(he.dom,lt,Ct)})})},Dt=(he,Ce)=>{const Xe=he.dom.getAttribute(Ce);return Xe===null?void 0:Xe},it=(he,Ce)=>A.from(Dt(he,Ce)),at=(he,Ce)=>{he.dom.removeAttribute(Ce)},Bt=he=>re(he.dom.attributes,(Ce,Xe)=>(Ce[Xe.name]=Xe.value,Ce),{}),_t=(he,Ce)=>{const lt=(Ce||document).createElement("div");if(lt.innerHTML=he,!lt.hasChildNodes()||lt.childNodes.length>1){const Ct="HTML does not have a single root node";throw console.error(Ct,he),new Error(Ct)}return Jt(lt.childNodes[0])},qt=(he,Ce)=>{const lt=(Ce||document).createElement(he);return Jt(lt)},en=(he,Ce)=>{const lt=(Ce||document).createTextNode(he);return Jt(lt)},Jt=he=>{if(he==null)throw new Error("Node cannot be null or undefined");return{dom:he}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(he,Ce,Xe)=>A.from(he.dom.elementFromPoint(Ce,Xe)).map(Jt)},sn=(he,Ce)=>{const Xe=he.dom;if(Xe.nodeType!==Ft)return!1;{const lt=Xe;if(lt.matches!==void 0)return lt.matches(Ce);if(lt.msMatchesSelector!==void 0)return lt.msMatchesSelector(Ce);if(lt.webkitMatchesSelector!==void 0)return lt.webkitMatchesSelector(Ce);if(lt.mozMatchesSelector!==void 0)return lt.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},rn=he=>he.nodeType!==Ft&&he.nodeType!==pt&&he.nodeType!==St||he.childElementCount===0,_n=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?[]:j(Xe.querySelectorAll(he),Nt.fromDom)},wn=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?A.none():A.from(Xe.querySelector(he)).map(Nt.fromDom)},An=(he,Ce)=>he.dom===Ce.dom,Kn=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;return Xe===lt?!1:Xe.contains(lt)},fr=sn,Un=he=>Nt.fromDom(he.dom.ownerDocument),Zn=he=>Pn(he)?he:Un(he),tr=he=>Nt.fromDom(Zn(he).dom.documentElement),Br=he=>Nt.fromDom(Zn(he).dom.defaultView),$r=he=>A.from(he.dom.parentNode).map(Nt.fromDom),vr=he=>A.from(he.dom.parentElement).map(Nt.fromDom),qn=(he,Ce)=>{const Xe=m(Ce)?Ce:T;let lt=he.dom;const Ct=[];for(;lt.parentNode!==null&<.parentNode!==void 0;){const Wt=lt.parentNode,kn=Nt.fromDom(Wt);if(Ct.push(kn),Xe(kn)===!0)break;lt=Wt}return Ct},gr=he=>A.from(he.dom.previousSibling).map(Nt.fromDom),sr=he=>A.from(he.dom.nextSibling).map(Nt.fromDom),lr=he=>j(he.dom.childNodes,Nt.fromDom),zr=(he,Ce)=>{const Xe=he.dom.childNodes;return A.from(Xe[Ce]).map(Nt.fromDom)},Vr=he=>zr(he,0),eo=(he,Ce)=>{$r(he).each(lt=>{lt.dom.insertBefore(Ce.dom,he.dom)})},Jr=(he,Ce)=>{sr(he).fold(()=>{$r(he).each(Ct=>{to(Ct,Ce)})},lt=>{eo(lt,Ce)})},Yr=(he,Ce)=>{Vr(he).fold(()=>{to(he,Ce)},lt=>{he.dom.insertBefore(Ce.dom,lt.dom)})},to=(he,Ce)=>{he.dom.appendChild(Ce.dom)},co=(he,Ce,Xe)=>{zr(he,Xe).fold(()=>{to(he,Ce)},lt=>{eo(lt,Ce)})},Fo=(he,Ce)=>{eo(he,Ce),to(Ce,he)},_o=(he,Ce)=>{U(Ce,(Xe,lt)=>{const Ct=lt===0?he:Ce[lt-1];Jr(Ct,Xe)})},$o=(he,Ce)=>{U(Ce,Xe=>{to(he,Xe)})},Mo=he=>{he.dom.textContent="",U(lr(he),Ce=>{pi(Ce)})},pi=he=>{const Ce=he.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Hn=he=>{const Ce=lr(he);Ce.length>0&&_o(he,Ce),pi(he)},ar=(he,Ce)=>Nt.fromDom(he.dom.cloneNode(Ce)),Dr=he=>ar(he,!1),Sr=he=>ar(he,!0),Zr=(he,Ce)=>{const Xe=Nt.fromTag(Ce),lt=Bt(he);return bt(Xe,lt),Xe},go=(he,Ce)=>{const Xe=Zr(he,Ce),lt=lr(Sr(he));return $o(Xe,lt),Xe},oo=(he,Ce)=>{const Xe=Zr(he,Ce);Jr(he,Xe);const lt=lr(he);return $o(Xe,lt),pi(he),Xe},io=["tfoot","thead","tbody","colgroup"],Do=he=>z(io,he),jn=(he,Ce)=>({rows:he,columns:Ce}),Rr=(he,Ce)=>({row:he,column:Ce}),On=(he,Ce,Xe)=>({element:he,rowspan:Ce,colspan:Xe}),Yn=(he,Ce,Xe,lt)=>({element:he,rowspan:Ce,colspan:Xe,isNew:lt}),ir=(he,Ce,Xe,lt,Ct,Wt)=>({element:he,rowspan:Ce,colspan:Xe,row:lt,column:Ct,isLocked:Wt}),kr=(he,Ce,Xe)=>({element:he,cells:Ce,section:Xe}),Er=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),Gt=(he,Ce,Xe)=>({element:he,isNew:Ce,isLocked:Xe}),on=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),an=(he,Ce,Xe,lt)=>({startRow:he,startCol:Ce,finishRow:Xe,finishCol:lt}),Tn=(he,Ce,Xe)=>({element:he,colspan:Ce,column:Xe}),zn=(he,Ce)=>({element:he,columns:Ce}),Gn=he=>Sn(he)&&y(he.dom.host),Lr=he=>Nt.fromDom(he.dom.getRootNode()),Ur=he=>{const Ce=Lr(he);return Gn(Ce)?A.some(Ce):A.none()},qr=he=>Nt.fromDom(he.dom.host),Cr=he=>{if(y(he.target)){const Ce=Nt.fromDom(he.target);if(cn(Ce)&&wo(Ce)&&he.composed&&he.composedPath){const Xe=he.composedPath();if(Xe)return ve(Xe)}}return A.from(he.target)},wo=he=>y(he.dom.shadowRoot),Nr=he=>{const Ce=Cn(he)?he.dom.parentNode:he.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Xe=Ce.ownerDocument;return Ur(Nt.fromDom(Ce)).fold(()=>Xe.body.contains(Ce),p(Nr,qr))},Eo=()=>zo(Nt.fromDom(document)),zo=he=>{const Ce=he.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Nt.fromDom(Ce)},Qt=(he,Ce,Xe)=>Z(qn(he,Xe),Ce),Mn=(he,Ce)=>Z(lr(he),Ce),Fn=(he,Ce)=>{let Xe=[];return U(lr(he),lt=>{Ce(lt)&&(Xe=Xe.concat([lt])),Xe=Xe.concat(Fn(lt,Ce))}),Xe},dr=(he,Ce,Xe)=>Qt(he,lt=>sn(lt,Ce),Xe),xr=(he,Ce)=>Mn(he,Xe=>sn(Xe,Ce)),Oo=(he,Ce)=>_n(Ce,he);var mi=(he,Ce,Xe,lt,Ct)=>he(Xe,lt)?A.some(Xe):m(Ct)&&Ct(Xe)?A.none():Ce(Xe,lt,Ct);const Di=(he,Ce,Xe)=>{let lt=he.dom;const Ct=m(Xe)?Xe:T;for(;lt.parentNode;){lt=lt.parentNode;const Wt=Nt.fromDom(lt);if(Ce(Wt))return A.some(Wt);if(Ct(Wt))break}return A.none()},To=(he,Ce,Xe)=>mi((Ct,Wt)=>Wt(Ct),Di,he,Ce,Xe),Ia=(he,Ce)=>{const Xe=Ct=>Ce(Nt.fromDom(Ct));return Y(he.dom.childNodes,Xe).map(Nt.fromDom)},Ds=(he,Ce)=>{const Xe=lt=>{for(let Ct=0;CtDi(he,lt=>sn(lt,Ce),Xe),zi=(he,Ce)=>Ia(he,Xe=>sn(Xe,Ce)),yl=(he,Ce)=>wn(Ce,he),Bs=(he,Ce,Xe)=>mi((Ct,Wt)=>sn(Ct,Wt),fs,he,Ce,Xe),yf=(he,Ce,Xe=O)=>he.exists(lt=>Xe(lt,Ce)),il=he=>{const Ce=[],Xe=lt=>{Ce.push(lt)};for(let lt=0;lthe!=null?Ce(he):A.none(),nh=(he,Ce)=>he?A.some(Ce):A.none(),gp=(he,Ce)=>he.substring(Ce),Qs=(he,Ce,Xe)=>Ce===""||he.length>=Ce.length&&he.substr(Xe,Xe+Ce.length)===Ce,bh=(he,Ce)=>Tc(he,Ce)?gp(he,Ce.length):he,Bl=(he,Ce,Xe=0,lt)=>{const Ct=he.indexOf(Ce,Xe);return Ct!==-1?S(lt)?!0:Ct+Ce.length<=lt:!1},Tc=(he,Ce)=>Qs(he,Ce,0),iu=(he,Ce)=>Qs(he,Ce,he.length-Ce.length),zf=(he=>Ce=>Ce.replace(he,""))(/^\s+|\s+$/g),_s=he=>he.length>0,ma=he=>{const Ce=parseFloat(he);return isNaN(Ce)?A.none():A.some(Ce)},mu=he=>he.style!==void 0&&m(he.style.getPropertyValue),Uc=(he,Ce,Xe)=>{if(!s(Xe))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Xe,":: Element ",he),new Error("CSS value must be a string: "+Xe);mu(he)&&he.style.setProperty(Ce,Xe)},Kf=(he,Ce)=>{mu(he)&&he.style.removeProperty(Ce)},Al=(he,Ce,Xe)=>{const lt=he.dom;Uc(lt,Ce,Xe)},Wl=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{Uc(Xe,Ct,lt)})},Ml=(he,Ce)=>{const Xe=he.dom,Ct=window.getComputedStyle(Xe).getPropertyValue(Ce);return Ct===""&&!Nr(he)?Jf(Xe,Ce):Ct},Jf=(he,Ce)=>mu(he)?he.style.getPropertyValue(Ce):"",Nf=(he,Ce)=>{const Xe=he.dom,lt=Jf(Xe,Ce);return A.from(lt).filter(Ct=>Ct.length>0)},Jl=(he,Ce)=>{const Xe=he.dom;Kf(Xe,Ce),yf(it(he,"style").map(zf),"")&&at(he,"style")},Gh=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;mu(Xe)&&mu(lt)&&(lt.style.cssText=Xe.style.cssText)},ll=(he,Ce,Xe=0)=>it(he,Ce).map(lt=>parseInt(lt,10)).getOr(Xe),Tu=(he,Ce)=>ll(he,Ce,1),gu=he=>vt("col")(he)?ll(he,"span",1)>1:Tu(he,"colspan")>1,ec=he=>Tu(he,"rowspan")>1,Dc=(he,Ce)=>parseInt(Ml(he,Ce),10),tc=v(10),Lp=v(10),rh=(he,Ce)=>rf(he,Ce,P),rf=(he,Ce,Xe)=>pe(lr(he),lt=>sn(lt,Ce)?Xe(lt)?[lt]:[]:rf(lt,Ce,Xe)),of=(he,Ce,Xe=T)=>{if(Xe(Ce))return A.none();if(z(he,Yt(Ce)))return A.some(Ce);const lt=Ct=>sn(Ct,"table")||Xe(Ct);return fs(Ce,he.join(","),lt)},bf=(he,Ce)=>of(["td","th"],he,Ce),vu=he=>rh(he,"th,td"),$d=he=>sn(he,"colgroup")?xr(he,"col"):pe(Kh(he),Ce=>xr(Ce,"col")),bl=(he,Ce)=>Bs(he,"table",Ce),Zu=he=>rh(he,"tr"),Kh=he=>bl(he).fold(v([]),Ce=>xr(Ce,"colgroup")),Cu=(he,Ce)=>j(he,Xe=>{if(Yt(Xe)==="colgroup"){const lt=j($d(Xe),Ct=>{const Wt=ll(Ct,"span",1);return On(Ct,1,Wt)});return kr(Xe,lt,"colgroup")}else{const lt=j(vu(Xe),Ct=>{const Wt=ll(Ct,"rowspan",1),kn=ll(Ct,"colspan",1);return On(Ct,Wt,kn)});return kr(Xe,lt,Ce(Xe))}}),ed=he=>$r(he).map(Ce=>{const Xe=Yt(Ce);return Do(Xe)?Xe:"tbody"}).getOr("tbody"),Bu=he=>{const Ce=Zu(he),lt=[...Kh(he),...Ce];return Cu(lt,ed)},vd=(he,Ce)=>Cu(he,()=>Ce),cs=he=>{let Ce=!1,Xe;return(...lt)=>(Ce||(Ce=!0,Xe=he.apply(null,lt)),Xe)},oh=(he,Ce,Xe,lt)=>{const Ct=he.isiOS()&&/ipad/i.test(Xe)===!0,Wt=he.isiOS()&&!Ct,kn=he.isiOS()||he.isAndroid(),Vn=kn||lt("(pointer:coarse)"),or=Ct||!Wt&&kn&<("(min-device-width:768px)"),Mr=Wt||kn&&!or,no=Ce.isSafari()&&he.isiOS()&&/safari/i.test(Xe)===!1,ti=!Mr&&!or&&!no;return{isiPad:v(Ct),isiPhone:v(Wt),isTablet:v(or),isPhone:v(Mr),isTouch:v(Vn),isAndroid:he.isAndroid,isiOS:he.isiOS,isWebView:v(no),isDesktop:v(ti)}},Jh=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Jh(he,Ce);if(!Xe)return{major:0,minor:0};const lt=Ct=>Number(Ce.replace(Xe,"$"+Ct));return _r(lt(1),lt(2))},xf=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return he.length===0?ep():xh(he,Xe)},ep=()=>_r(0,0),_r=(he,Ce)=>({major:he,minor:Ce}),Ff={nu:_r,detect:xf,unknown:ep},yd=(he,Ce)=>we(Ce.brands,Xe=>{const lt=Xe.brand.toLowerCase();return Y(he,Ct=>{var Wt;return lt===((Wt=Ct.brand)===null||Wt===void 0?void 0:Wt.toLowerCase())}).map(Ct=>({current:Ct.name,version:Ff.nu(parseInt(Xe.version,10),0)}))}),bd=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return Y(he,lt=>lt.search(Xe))},_h=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),zu=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),va=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,El=he=>Ce=>Bl(Ce,he),_f=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:he=>Bl(he,"edge/")&&Bl(he,"chrome")&&Bl(he,"safari")&&Bl(he,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,va],search:he=>Bl(he,"chrome")&&!Bl(he,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:he=>Bl(he,"msie")||Bl(he,"trident")},{name:"Opera",versionRegexes:[va,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:El("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:El("firefox")},{name:"Safari",versionRegexes:[va,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:he=>(Bl(he,"safari")||Bl(he,"mobile/"))&&Bl(he,"applewebkit")}],$f=[{name:"Windows",search:El("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:he=>Bl(he,"iphone")||Bl(he,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:El("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:El("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:El("linux"),versionRegexes:[]},{name:"Solaris",search:El("sunos"),versionRegexes:[]},{name:"FreeBSD",search:El("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:El("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ih={browsers:v(_f),oses:v($f)},yu="Edge",jc="Chromium",Nh="IE",af="Opera",td="Firefox",sf="Safari",Bc=()=>Vd({current:void 0,version:Ff.unknown()}),Vd=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isEdge:lt(yu),isChromium:lt(jc),isIE:lt(Nh),isOpera:lt(af),isFirefox:lt(td),isSafari:lt(sf)}},xd={unknown:Bc,nu:Vd,edge:v(yu),chromium:v(jc),ie:v(Nh),opera:v(af),firefox:v(td),safari:v(sf)},vc="Windows",gs="iOS",yc="Android",Cc="Linux",Nu="macOS",Gs="Solaris",Ks="FreeBSD",Ac="ChromeOS",_d=()=>Fh({current:void 0,version:Ff.unknown()}),Fh=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isWindows:lt(vc),isiOS:lt(gs),isAndroid:lt(yc),isMacOS:lt(Nu),isLinux:lt(Cc),isSolaris:lt(Gs),isFreeBSD:lt(Ks),isChromeOS:lt(Ac)}},$h={unknown:_d,nu:Fh,windows:v(vc),ios:v(gs),android:v(yc),linux:v(Cc),macos:v(Nu),solaris:v(Gs),freebsd:v(Ks),chromeos:v(Ac)},ah={detect:(he,Ce,Xe)=>{const lt=ih.browsers(),Ct=ih.oses(),Wt=Ce.bind(or=>yd(lt,or)).orThunk(()=>_h(lt,he)).fold(xd.unknown,xd.nu),kn=zu(Ct,he).fold($h.unknown,$h.nu),Vn=oh(kn,Wt,he,Xe);return{browser:Wt,os:kn,deviceType:Vn}}},Au=he=>window.matchMedia(he).matches;let lf=cs(()=>ah.detect(window.navigator.userAgent,A.from(window.navigator.userAgentData),Au));const wf=()=>lf(),vs=(he,Ce)=>{const Xe=(Vn,or)=>{if(!a(or)&&!or.match(/^[0-9]+$/))throw new Error(he+".set accepts only positive integer values. Value was "+or);const Mr=Vn.dom;mu(Mr)&&(Mr.style[he]=or+"px")},lt=Vn=>{const or=Ce(Vn);if(or<=0||or===null){const Mr=Ml(Vn,he);return parseFloat(Mr)||0}return or},Ct=lt,Wt=(Vn,or)=>re(or,(Mr,no)=>{const ti=Ml(Vn,no),ki=ti===void 0?0:parseInt(ti,10);return isNaN(ki)?Mr:Mr+ki},0);return{set:Xe,get:lt,getOuter:Ct,aggregate:Wt,max:(Vn,or,Mr)=>{const no=Wt(Vn,Mr);return or>no?or-no:0}}},cl=(he,Ce)=>ma(he).getOr(Ce),bc=(he,Ce,Xe)=>cl(Ml(he,Ce),Xe),nc=(he,Ce,Xe,lt)=>{const Ct=bc(he,`padding-${Xe}`,0),Wt=bc(he,`padding-${lt}`,0),kn=bc(he,`border-${Xe}-width`,0),Vn=bc(he,`border-${lt}-width`,0);return Ce-Ct-Wt-kn-Vn},Qc=(he,Ce)=>{const Xe=he.dom,lt=Xe.getBoundingClientRect().width||Xe.offsetWidth;return Ce==="border-box"?lt:nc(he,lt,"left","right")},ts=he=>bc(he,"height",he.dom.offsetHeight),wi=he=>bc(he,"width",he.dom.offsetWidth),bu=he=>Qc(he,"content-box"),wd=vs("width",he=>he.dom.offsetWidth),Ol=he=>wd.get(he),ds=he=>wd.getOuter(he),zc=bu,Ud=wi,cf=(he,Ce,Xe)=>{const lt=he.cells,Ct=lt.slice(0,Ce),Wt=lt.slice(Ce),kn=Ct.concat(Xe).concat(Wt);return rs(he,kn)},Of=(he,Ce,Xe)=>cf(he,Ce,[Xe]),aa=(he,Ce,Xe)=>{const lt=he.cells;lt[Ce]=Xe},rs=(he,Ce)=>on(he.element,Ce,he.section,he.isNew),Mu=(he,Ce)=>{const Xe=he.cells,lt=j(Xe,Ce);return on(he.element,lt,he.section,he.isNew)},Ri=(he,Ce)=>he.cells[Ce],Gc=(he,Ce)=>Ri(he,Ce).element,qu=he=>he.cells.length,zl=he=>{const Ce=te(he,Xe=>Xe.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},xc=(he,Ce,Xe)=>{const lt=j(he.cells,Xe);return on(Ce(he.element),lt,he.section,!0)},Kc="data-snooker-locked-cols",jd=he=>it(he,Kc).bind(Ce=>A.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,P)),ii=he=>{const Ce=re(zl(he).rows,(lt,Ct)=>(U(Ct.cells,(Wt,kn)=>{Wt.isLocked&&(lt[kn]=!0)}),lt),{}),Xe=Oe(Ce,(lt,Ct)=>parseInt(Ct,10));return de(Xe)},nd=(he,Ce)=>he+","+Ce,al=(he,Ce,Xe)=>A.from(he.access[nd(Ce,Xe)]),Yl=(he,Ce,Xe)=>{const lt=uf(he,Ct=>Xe(Ce,Ct.element));return lt.length>0?A.some(lt[0]):A.none()},uf=(he,Ce)=>{const Xe=pe(he.all,lt=>lt.cells);return Z(Xe,Ce)},hs=he=>{const Ce={};let Xe=0;return U(he.cells,lt=>{const Ct=lt.colspan;Q(Ct,Wt=>{const kn=Xe+Wt;Ce[kn]=Tn(lt.element,Ct,kn)}),Xe+=Ct}),Ce},Mc=he=>{const Ce={},Xe=[],Ct=ve(he).map(xi=>xi.element).bind(bl).bind(jd).getOr({});let Wt=0,kn=0,Vn=0;const{pass:or,fail:Mr}=te(he,xi=>xi.section==="colgroup");U(Mr,xi=>{const fi=[];U(xi.cells,Vi=>{let Xo=0;for(;Ce[nd(Vn,Xo)]!==void 0;)Xo++;const oi=Ue(Ct,Xo.toString()),wa=ir(Vi.element,Vi.rowspan,Vi.colspan,Vn,Xo,oi);for(let Pa=0;Pa{const fi=hs(xi);return{colgroups:[zn(xi.element,ke(fi))],columns:fi}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:jn(Wt,kn),access:Ce,all:Xe,columns:no,colgroups:ti}},Ca={fromTable:he=>{const Ce=Bu(he);return Mc(Ce)},generate:Mc,getAt:al,findItem:Yl,filterItems:uf,justCells:he=>pe(he.all,Ce=>Ce.cells),justColumns:he=>ke(he.columns),hasColumns:he=>Te(he.columns).length>0,getColumnAt:(he,Ce)=>A.from(he.columns[Ce])},Ls=(he,Ce=P)=>{const Xe=he.grid,lt=Q(Xe.columns,_),Ct=Q(Xe.rows,_);return j(lt,Wt=>Ec(()=>pe(Ct,Mr=>Ca.getAt(he,Mr,Wt).filter(no=>no.column===Wt).toArray()),Mr=>Mr.colspan===1&&Ce(Mr.element),()=>Ca.getAt(he,0,Wt)))},Ec=(he,Ce,Xe)=>{const lt=he();return Y(lt,Ce).orThunk(()=>A.from(lt[0]).orThunk(Xe)).map(kn=>kn.element)},_u=he=>{const Ce=he.grid,Xe=Q(Ce.rows,_),lt=Q(Ce.columns,_);return j(Xe,Ct=>Ec(()=>pe(lt,or=>Ca.getAt(he,Ct,or).filter(Mr=>Mr.row===Ct).fold(v([]),Mr=>[Mr])),or=>or.rowspan===1,()=>Ca.getAt(he,Ct,0)))},wt=(he,Ce)=>{if(Ce<0||Ce>=he.length-1)return A.none();const Xe=he[Ce].fold(()=>{const Ct=ae(he.slice(0,Ce));return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:0})),lt=he[Ce+1].fold(()=>{const Ct=he.slice(Ce+1);return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:1}));return Xe.bind(Ct=>lt.map(Wt=>{const kn=Wt.delta+Ct.delta;return Math.abs(Wt.value-Ct.value)/kn}))},Kt=(he,Ce)=>Xe=>En(Xe)==="rtl"?Ce:he,En=he=>Ml(he,"direction")==="rtl"?"rtl":"ltr",pr=vs("height",he=>{const Ce=he.dom;return Nr(he)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),wr=he=>pr.get(he),uo=he=>pr.getOuter(he),Bi=ts,ya=(he,Ce)=>({left:he,top:Ce,translate:(lt,Ct)=>ya(he+lt,Ce+Ct)}),Ni=ya,Qi=he=>{const Ce=he.getBoundingClientRect();return Ni(Ce.left,Ce.top)},Ws=(he,Ce)=>he!==void 0?he:Ce!==void 0?Ce:0,nl=he=>{const Ce=he.dom.ownerDocument,Xe=Ce.body,lt=Ce.defaultView,Ct=Ce.documentElement;if(Xe===he.dom)return Ni(Xe.offsetLeft,Xe.offsetTop);const Wt=Ws(lt==null?void 0:lt.pageYOffset,Ct.scrollTop),kn=Ws(lt==null?void 0:lt.pageXOffset,Ct.scrollLeft),Vn=Ws(Ct.clientTop,Xe.clientTop),or=Ws(Ct.clientLeft,Xe.clientLeft);return Fs(he).translate(kn-or,Wt-Vn)},Fs=he=>{const Ce=he.dom,lt=Ce.ownerDocument.body;return lt===Ce?Ni(lt.offsetLeft,lt.offsetTop):Nr(he)?Qi(Ce):Ni(0,0)},Wu=(he,Ce)=>({row:he,y:Ce}),Ki=(he,Ce)=>({col:he,x:Ce}),Aa=he=>nl(he).left+ds(he),Pl=he=>nl(he).left,Vf=(he,Ce)=>Ki(he,Pl(Ce)),sh=(he,Ce)=>Ki(he,Aa(Ce)),_c=he=>nl(he).top,Xl=(he,Ce)=>Wu(he,_c(Ce)),pl=(he,Ce)=>Wu(he,_c(Ce)+uo(Ce)),Pc=(he,Ce,Xe)=>{if(Xe.length===0)return[];const lt=j(Xe.slice(1),(Wt,kn)=>Wt.map(Vn=>he(kn,Vn))),Ct=Xe[Xe.length-1].map(Wt=>Ce(Xe.length-1,Wt));return lt.concat([Ct])},Uf=he=>-he,Os={delta:_,positions:he=>Pc(Xl,pl,he),edge:_c},rd=Kt({delta:_,edge:Pl,positions:he=>Pc(Vf,sh,he)},{delta:Uf,edge:Aa,positions:he=>Pc(sh,Vf,he)}),tp={delta:(he,Ce)=>rd(Ce).delta(he,Ce),positions:(he,Ce)=>rd(Ce).positions(he,Ce),edge:he=>rd(he).edge(he)},kt={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},It=(()=>{const he="[0-9]+",Xe="[eE]"+("[+-]?"+he),lt="\\.",Ct=Vn=>`(?:${Vn})?`,kn=`[+-]?(?:${["Infinity",he+lt+Ct(he)+Ct(Xe),lt+he+Ct(Xe),he+Ct(Xe)].join("|")})`;return new RegExp(`^(${kn})(.*)$`)})(),Ut=(he,Ce)=>$(Ce,Xe=>$(kt[Xe],lt=>he===lt)),J=(he,Ce)=>A.from(It.exec(he)).bind(lt=>{const Ct=Number(lt[1]),Wt=lt[2];return Ut(Wt,Ce)?A.some({value:Ct,unit:Wt}):A.none()}),le=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,V=vt("col"),ie=vt("tr"),ge=(he,Ce,Xe)=>{const lt=vr(he).getOrThunk(()=>zo(Un(he)));return Ce(he)/Xe(lt)*100},xe=(he,Ce)=>{Al(he,"width",Ce+"px")},Ee=(he,Ce)=>{Al(he,"width",Ce+"%")},Ne=(he,Ce)=>{Al(he,"height",Ce+"px")},et=he=>{Jl(he,"height")},rt=he=>Bi(he)+"px",dt=(he,Ce,Xe,lt)=>{const Ct=bl(he).map(Wt=>{const kn=Xe(Wt);return Math.floor(Ce/100*kn)}).getOr(Ce);return lt(he,Ct),Ct},gt=(he,Ce,Xe,lt)=>{const Ct=parseFloat(he);return iu(he,"%")&&Yt(Ce)!=="table"?dt(Ce,Ct,Xe,lt):Ct},Rt=he=>{const Ce=rt(he);return Ce?gt(Ce,he,wr,Ne):wr(he)},Mt=(he,Ce,Xe)=>{const lt=Xe(he),Ct=Tu(he,Ce);return lt/Ct},Xt=(he,Ce)=>Nf(he,Ce).orThunk(()=>it(he,Ce).map(Xe=>Xe+"px")),dn=he=>Xt(he,"width"),bn=he=>Xt(he,"height"),vn=he=>ge(he,Ol,zc),Ln=he=>V(he)?Ol(he):Ud(he),gn=he=>ie(he)?wr(he):Mt(he,"rowspan",Rt),Jn=he=>dn(he).bind(Xe=>J(Xe,["fixed","relative","empty"])),pn=(he,Ce,Xe)=>{Al(he,"width",Ce+Xe)},In=he=>Ol(he)+"px",Ir=he=>wr(he)+"px",Pr=he=>ge(he,Ol,zc)+"%",Gr=he=>dn(he).exists(Ce=>le.test(Ce)),ro=he=>dn(he).exists(Ce=>ne.test(Ce)),po=he=>dn(he).isNone(),Wo=v(le),si=vt("col"),Bo=he=>dn(he).getOrThunk(()=>Ln(he)+"px"),Go=he=>bn(he).getOrThunk(()=>gn(he)+"px"),Yo=he=>j(Ca.justColumns(he),Ce=>A.from(Ce.element)),Wi=he=>{const Ce=wf().browser,Xe=Ce.isChromium()||Ce.isFirefox();return si(he)?Xe:!0},Ho=(he,Ce,Xe,lt,Ct,Wt)=>he.filter(lt).fold(()=>Wt(wt(Xe,Ce)),kn=>Ct(kn)),jo=(he,Ce,Xe,lt)=>{const Ct=Ls(he),Wt=Ca.hasColumns(he)?Yo(he):Ct,kn=[A.some(tp.edge(Ce))].concat(j(tp.positions(Ct,Ce),or=>or.map(Mr=>Mr.x))),Vn=x(gu);return j(Wt,(or,Mr)=>Ho(or,Mr,kn,Vn,no=>{if(Wi(no))return Xe(no);{const ti=nf(Ct[Mr],_);return Ho(ti,Mr,kn,Vn,ki=>lt(A.some(Ol(ki))),lt)}},lt))},Yi=he=>he.map(Ce=>Ce+"px").getOr(""),ai=(he,Ce)=>jo(he,Ce,Bo,Yi),Hi=(he,Ce,Xe)=>jo(he,Ce,vn,lt=>lt.fold(()=>Xe.minCellWidth(),Ct=>Ct/Xe.pixelWidth()*100)),Ai=(he,Ce,Xe)=>jo(he,Ce,Ln,lt=>lt.getOrThunk(Xe.minCellWidth)),Ja=(he,Ce,Xe,lt)=>{const Ct=_u(he),Wt=j(he.all,Vn=>A.some(Vn.element)),kn=[A.some(Os.edge(Ce))].concat(j(Os.positions(Ct,Ce),Vn=>Vn.map(or=>or.y)));return j(Wt,(Vn,or)=>Ho(Vn,or,kn,P,Xe,lt))},Ar=(he,Ce)=>Ja(he,Ce,gn,Xe=>Xe.getOrThunk(Lp)),ns=(he,Ce)=>Ja(he,Ce,Go,Yi),$s=(he,Ce)=>()=>Nr(he)?Ce(he):parseFloat(Nf(he,"width").getOr("0")),Ts=he=>{const Ce=$s(he,Ol),Xe=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(Ct,Wt)=>Ai(Ct,he,Wt),getCellDelta:Xe,singleColumnWidth:v([0]),minCellWidth:Xe,setElementWidth:c,adjustTableWidth:c,isRelative:!0,label:"none"}},rl=he=>{const Ce=$s(he,or=>parseFloat(Pr(or))),Xe=$s(he,Ol);return{width:Ce,pixelWidth:Xe,getWidths:(or,Mr)=>Hi(or,he,Mr),getCellDelta:or=>or/Xe()*100,singleColumnWidth:(or,Mr)=>[100-or],minCellWidth:()=>tc()/Xe()*100,setElementWidth:Ee,adjustTableWidth:or=>{const Mr=Ce(),no=or/100*Mr,ti=Mr+no;Ee(he,ti)},isRelative:!0,label:"percent"}},Hs=he=>{const Ce=$s(he,Ol);return{width:Ce,pixelWidth:Ce,getWidths:(kn,Vn)=>Ai(kn,he,Vn),getCellDelta:_,singleColumnWidth:(kn,Vn)=>[Math.max(tc(),kn+Vn)-kn],minCellWidth:tc,setElementWidth:xe,adjustTableWidth:kn=>{const Vn=Ce()+kn;xe(he,Vn)},isRelative:!1,label:"pixel"}},ys=(he,Ce)=>Wo().exec(Ce)!==null?rl(he):Hs(he),mt={getTableSize:he=>dn(he).fold(()=>Ts(he),Xe=>ys(he,Xe)),pixelSize:Hs,percentageSize:rl,noneSize:Ts},Tt=(he,Ce,Xe,lt,Ct,Wt)=>({minRow:he,minCol:Ce,maxRow:Xe,maxCol:lt,allCells:Ct,selectedCells:Wt}),xn=(he,Ce)=>{const Xe=he.grid.columns;let Ct=he.grid.rows,Wt=Xe,kn=0,Vn=0;const or=[],Mr=[];return Ie(he.access,no=>{if(or.push(no),Ce(no)){Mr.push(no);const ti=no.row,ki=ti+no.rowspan-1,xi=no.column,fi=xi+no.colspan-1;tikn&&(kn=ki),xiVn&&(Vn=fi)}}),Tt(Ct,Wt,kn,Vn,or,Mr)},Nn=(he,Ce,Xe)=>{const lt=he[Xe].element,Ct=Nt.fromTag("td");to(Ct,Nt.fromTag("br")),(Ce?to:Yr)(lt,Ct)},yr=(he,Ce,Xe,lt)=>{const Ct=Z(he,Vn=>Vn.section!=="colgroup"),Wt=Ce.grid.columns,kn=Ce.grid.rows;for(let Vn=0;VnXe.maxRow||MrXe.maxCol||(Ca.getAt(Ce,Vn,Mr).filter(lt).isNone()?Nn(Ct,or,Vn):or=!0)}},so=(he,Ce,Xe,lt)=>{Ie(Xe.columns,kn=>{(kn.columnCe.maxCol)&&pi(kn.element)});const Ct=Z(rh(he,"tr"),kn=>kn.dom.childElementCount===0);U(Ct,pi),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(rh(he,"th,td"),kn=>{at(kn,"rowspan"),at(kn,"colspan")}),at(he,Kc),at(he,"data-snooker-col-series"),mt.getTableSize(he).adjustTableWidth(lt)},No=(he,Ce,Xe,lt)=>{if(lt.minCol===0&&Ce.grid.columns===lt.maxCol+1)return 0;const Ct=Ai(Ce,he,Xe),Wt=re(Ct,(Mr,no)=>Mr+no,0),or=re(Ct.slice(lt.minCol,lt.maxCol+1),(Mr,no)=>Mr+no,0)/Wt*Xe.pixelWidth()-Xe.pixelWidth();return Xe.getCellDelta(or)},ui=(he,Ce)=>{const Xe=ki=>sn(ki.element,Ce),lt=Sr(he),Ct=Bu(lt),Wt=mt.getTableSize(he),kn=Ca.generate(Ct),Vn=xn(kn,Xe),or="th:not("+Ce+"),td:not("+Ce+")",Mr=rf(lt,"th,td",ki=>sn(ki,or));U(Mr,pi),yr(Ct,kn,Vn,Xe);const no=Ca.fromTable(he),ti=No(he,no,Wt,Vn);return so(lt,Vn,kn,ti),lt},ga=" ",ua=((he,Ce)=>{const Xe=Wt=>{if(!he(Wt))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return lt(Wt).getOr("")},lt=Wt=>he(Wt)?A.from(Wt.dom.nodeValue):A.none();return{get:Xe,getOption:lt,set:(Wt,kn)=>{if(!he(Wt))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Wt.dom.nodeValue=kn}}})(Cn,"text"),Cs=he=>ua.get(he),ul=he=>ua.getOption(he),Jc=(he,Ce)=>ua.set(he,Ce),Is=he=>Yt(he)==="img"?1:ul(he).fold(()=>lr(he).length,Ce=>Ce.length),Hc=he=>ul(he).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(ga)>-1).isSome(),Nl=he=>Ot(he)&&Dt(he,"contenteditable")==="false",lh=["img","br"],r0=he=>Hc(he)||z(lh,Yt(he))||Nl(he),ch=he=>Ds(he,r0),gg=he=>Ip(he,r0),Ip=(he,Ce)=>{const Xe=lt=>{const Ct=lr(lt);for(let Wt=Ct.length-1;Wt>=0;Wt--){const kn=Ct[Wt];if(Ce(kn))return A.some(kn);const Vn=Xe(kn);if(Vn.isSome())return Vn}return A.none()};return Xe(he)},X0={scope:["row","col"]},Vh=he=>()=>{const Ce=Nt.fromTag("td",he.dom);return to(Ce,Nt.fromTag("br",he.dom)),Ce},Pu=he=>()=>Nt.fromTag("col",he.dom),Uh=he=>()=>Nt.fromTag("colgroup",he.dom),ss=he=>()=>Nt.fromTag("tr",he.dom),Gl=(he,Ce,Xe)=>{const lt=go(he,Ce);return Ie(Xe,(Ct,Wt)=>{Ct===null?at(lt,Wt):st(lt,Wt,Ct)}),lt},Sf=he=>he,Nc=(he,Ce,Xe)=>ch(he).map(Ct=>{const Wt=Xe.join(","),kn=dr(Ct,Wt,Vn=>An(Vn,he));return K(kn,(Vn,or)=>{const Mr=Dr(or);return to(Vn,Mr),Mr},Ce)}).getOr(Ce),o0=(he,Ce)=>{Ie(X0,(Xe,lt)=>it(he,lt).filter(Ct=>z(Xe,Ct)).each(Ct=>st(Ce,lt,Ct)))},i0=(he,Ce,Xe)=>{const lt=(kn,Vn)=>{Gh(kn.element,Vn),Jl(Vn,"height"),kn.colspan!==1&&Jl(Vn,"width")},Ct=kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom),or=Xe.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Mr=or.length>0?Nc(kn.element,Vn,or):Vn;return to(Mr,Nt.fromTag("br")),lt(kn,Vn),o0(kn.element,Vn),he(kn.element,Vn),Vn};return{col:kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom);return lt(kn,Vn),he(kn.element,Vn),Vn},colgroup:Uh(Ce),row:ss(Ce),cell:Ct,replace:Gl,colGap:Pu(Ce),gap:Vh(Ce)}},a0=he=>({col:Pu(he),colgroup:Uh(he),row:ss(he),cell:Vh(he),replace:Sf,colGap:Pu(he),gap:Vh(he)}),wu=(he,Ce)=>{const lt=(Ce||document).createElement("div");return lt.innerHTML=he,lr(Nt.fromDom(lt))},Dp=he=>j(he,Nt.fromDom),Rm=he=>Ce=>Ce.options.get(he),nm="100%",G0=he=>{var Ce;const Xe=he.dom,lt=(Ce=Xe.getParent(he.selection.getStart(),Xe.isBlock))!==null&&Ce!==void 0?Ce:he.getBody();return zc(Nt.fromDom(lt))+"px"},vg=(he,Ce)=>yp(he)||!hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},s0=(he,Ce)=>yp(he)||hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},H1=he=>{const Ce=he.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Xe=>{const lt=z(["section","cells","sectionCells","auto"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Xe=>{const lt=z(["preservetable","resizetable"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},VO=he=>A.from(he.options.get("table_clone_elements")),rm=he=>{const Ce=he.options.get("object_resizing");return z(Ce.split(","),"table")},z_=Rm("table_header_type"),db=Rm("table_column_resizing"),lu=he=>db(he)==="preservetable",ay=he=>db(he)==="resizetable",wh=Rm("table_sizing_mode"),kf=he=>wh(he)==="relative",l0=he=>wh(he)==="fixed",yp=he=>wh(he)==="responsive",Bp=Rm("table_resize_bars"),hb=Rm("table_style_by_css"),Lm=Rm("table_merge_content_on_paste"),Qd=he=>{const Ce=he.options,Xe=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Xe:s0(he,Xe)},Z1=he=>{const Ce=he.options,Xe=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Xe:vg(he,Xe)},N_=Rm("table_use_colgroups"),K0=he=>Bs(he,"[contenteditable]"),sy=(he,Ce=!1)=>Nr(he)?he.dom.isContentEditable:K0(he).fold(v(Ce),Xe=>yg(Xe)==="true"),yg=he=>he.dom.contentEditable,Im=he=>Nt.fromDom(he.getBody()),Dm=he=>Ce=>An(Ce,Im(he)),Oh=he=>{at(he,"data-mce-style");const Ce=Xe=>at(Xe,"data-mce-style");U(vu(he),Ce),U($d(he),Ce),U(Zu(he),Ce)},zp=he=>Nt.fromDom(he.selection.getStart()),J0=he=>he.getBoundingClientRect().width,F_=he=>he.getBoundingClientRect().height,q1=he=>(Ce,Xe)=>{const lt=Ce.dom.getStyle(Xe,he)||Ce.dom.getAttrib(Xe,he);return A.from(lt).filter(_s)},$_=q1("width"),Dx=q1("height"),UO=he=>/^(\d+(\.\d+)?)%$/.test(he),W1=he=>/^(\d+(\.\d+)?)px$/.test(he),e1=he=>To(he,vt("table")).exists(sy),cu=(he,Ce)=>{const Xe=Ce.column,lt=Ce.column+Ce.colspan-1,Ct=Ce.row,Wt=Ce.row+Ce.rowspan-1;return Xe<=he.finishCol&<>=he.startCol&&Ct<=he.finishRow&&Wt>=he.startRow},Za=(he,Ce)=>Ce.column>=he.startCol&&Ce.column+Ce.colspan-1<=he.finishCol&&Ce.row>=he.startRow&&Ce.row+Ce.rowspan-1<=he.finishRow,sa=(he,Ce)=>{let Xe=!0;const lt=C(Za,Ce);for(let Ct=Ce.startRow;Ct<=Ce.finishRow;Ct++)for(let Wt=Ce.startCol;Wt<=Ce.finishCol;Wt++)Xe=Xe&&Ca.getAt(he,Ct,Wt).exists(lt);return Xe?A.some(Ce):A.none()},Bm=(he,Ce)=>an(Math.min(he.row,Ce.row),Math.min(he.column,Ce.column),Math.max(he.row+he.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(he.column+he.colspan-1,Ce.column+Ce.colspan-1)),t1=(he,Ce,Xe)=>{const lt=Ca.findItem(he,Ce,An),Ct=Ca.findItem(he,Xe,An);return lt.bind(Wt=>Ct.map(kn=>Bm(Wt,kn)))},n1=(he,Ce,Xe)=>t1(he,Ce,Xe).bind(lt=>sa(he,lt)),Bx=(he,Ce,Xe,lt)=>Ca.findItem(he,Ce,An).bind(Ct=>{const Wt=Xe>0?Ct.row+Ct.rowspan-1:Ct.row,kn=lt>0?Ct.column+Ct.colspan-1:Ct.column;return Ca.getAt(he,Wt+Xe,kn+lt).map(or=>or.element)}),zm=(he,Ce,Xe)=>t1(he,Ce,Xe).map(lt=>{const Ct=Ca.filterItems(he,C(cu,lt));return j(Ct,Wt=>Wt.element)}),Rl=(he,Ce)=>{const Xe=(lt,Ct)=>Kn(Ct,lt);return Ca.findItem(he,Ce,Xe).map(lt=>lt.element)},zx=(he,Ce,Xe)=>bl(he).bind(lt=>{const Ct=Nm(lt);return Bx(Ct,he,Ce,Xe)}),pb=(he,Ce,Xe)=>{const lt=Nm(he);return zm(lt,Ce,Xe)},V_=(he,Ce,Xe,lt,Ct)=>{const Wt=Nm(he),kn=An(he,Xe)?A.some(Ce):Rl(Wt,Ce),Vn=An(he,Ct)?A.some(lt):Rl(Wt,lt);return kn.bind(or=>Vn.bind(Mr=>zm(Wt,or,Mr)))},Lo=(he,Ce,Xe)=>{const lt=Nm(he);return n1(lt,Ce,Xe)},Nm=Ca.fromTable;var D4=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],bg=()=>{const he=Mr=>Nt.fromDom(Mr.dom.cloneNode(!1)),Ce=Mr=>Zn(Mr).dom,Xe=Mr=>cn(Mr)?Yt(Mr)==="body"?!0:z(D4,Yt(Mr)):!1,lt=Mr=>cn(Mr)?z(["br","img","hr","input"],Yt(Mr)):!1,Ct=Mr=>cn(Mr)&&Dt(Mr,"contenteditable")==="false",Wt=(Mr,no)=>Mr.dom.compareDocumentPosition(no.dom),kn=(Mr,no)=>{const ti=Bt(Mr);bt(no,ti)},Vn=Mr=>{const no=Yt(Mr);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],no)},or=Mr=>cn(Mr)?it(Mr,"lang"):A.none();return{up:v({selector:fs,closest:Bs,predicate:Di,all:qn}),down:v({selector:Oo,predicate:Fn}),styles:v({get:Ml,getRaw:Nf,set:Al,remove:Jl}),attrs:v({get:Dt,set:st,remove:at,copyTo:kn}),insert:v({before:eo,after:Jr,afterAll:_o,append:to,appendAll:$o,prepend:Yr,wrap:Fo}),remove:v({unwrap:Hn,remove:pi}),create:v({nu:Nt.fromTag,clone:he,text:Nt.fromText}),query:v({comparePosition:Wt,prevSibling:gr,nextSibling:sr}),property:v({children:lr,name:Yt,parent:$r,document:Ce,isText:Cn,isComment:Et,isElement:cn,isSpecial:Vn,getLanguage:or,getText:Cs,setText:Jc,isBoundary:Xe,isEmptyTag:lt,isNonEditable:Ct}),eq:An,is:fr}};const B4=(he,Ce,Xe,lt)=>{const Ct=Xe[0],Wt=Xe.slice(1);return lt(he,Ce,Ct,Wt)},c0=(he,Ce,Xe)=>Xe.length>0?B4(he,Ce,Xe,mb):A.none(),mb=(he,Ce,Xe,lt)=>{const Ct=Ce(he,Xe);return K(lt,(Wt,kn)=>{const Vn=Ce(he,kn);return od(he,Wt,Vn)},Ct)},od=(he,Ce,Xe)=>Ce.bind(lt=>Xe.filter(C(he.eq,lt))),U_=(he,Ce)=>C(he.eq,Ce),ly=(he,Ce,Xe,lt=T)=>{const Ct=[Ce].concat(he.up().all(Ce)),Wt=[Xe].concat(he.up().all(Xe)),kn=no=>ee(no,lt).fold(()=>no,ki=>no.slice(0,ki+1)),Vn=kn(Ct),or=kn(Wt),Mr=Y(Vn,no=>$(or,U_(he,no)));return{firstpath:Vn,secondpath:or,shared:Mr}},wc=c0,xg=ly,Nx=bg(),Sh=(he,Ce)=>wc(Nx,(Xe,lt)=>he(lt),Ce),j_=(he,Ce,Xe)=>xg(Nx,he,Ce,Xe),gb=he=>fs(he,"table"),Y1=(he,Ce,Xe)=>{const lt=Ct=>Wt=>Xe!==void 0&&Xe(Wt)||An(Wt,Ct);return An(he,Ce)?A.some({boxes:A.some([he]),start:he,finish:Ce}):gb(he).bind(Ct=>gb(Ce).bind(Wt=>{if(An(Ct,Wt))return A.some({boxes:pb(Ct,he,Ce),start:he,finish:Ce});if(Kn(Ct,Wt)){const kn=dr(Ce,"td,th",lt(Ct)),Vn=kn.length>0?kn[kn.length-1]:Ce;return A.some({boxes:V_(Ct,he,Ct,Ce,Wt),start:he,finish:Vn})}else if(Kn(Wt,Ct)){const kn=dr(he,"td,th",lt(Wt)),Vn=kn.length>0?kn[kn.length-1]:he;return A.some({boxes:V_(Wt,he,Ct,Ce,Wt),start:he,finish:Vn})}else return j_(he,Ce).shared.bind(kn=>Bs(kn,"table",Xe).bind(Vn=>{const or=dr(Ce,"td,th",lt(Vn)),Mr=or.length>0?or[or.length-1]:Ce,no=dr(he,"td,th",lt(Vn)),ti=no.length>0?no[no.length-1]:he;return A.some({boxes:V_(Vn,he,Ct,Ce,Wt),start:ti,finish:Mr})}))}))},cy=(he,Ce)=>{const Xe=Oo(he,Ce);return Xe.length>0?A.some(Xe):A.none()},np=(he,Ce)=>Y(he,Xe=>sn(Xe,Ce)),jO=(he,Ce,Xe)=>yl(he,Ce).bind(lt=>yl(he,Xe).bind(Ct=>Sh(gb,[lt,Ct]).map(Wt=>({first:lt,last:Ct,table:Wt})))),_g=(he,Ce)=>fs(he,"table").bind(Xe=>yl(Xe,Ce).bind(lt=>Y1(lt,he).bind(Ct=>Ct.boxes.map(Wt=>({boxes:Wt,start:Ct.start,finish:Ct.finish}))))),Q_=(he,Ce,Xe,lt,Ct)=>np(he,Ct).bind(Wt=>zx(Wt,Ce,Xe).bind(kn=>_g(kn,lt))),wg=(he,Ce)=>cy(he,Ce),X1=(he,Ce,Xe)=>jO(he,Ce,Xe).bind(lt=>{const Ct=or=>An(he,or),Wt="thead,tfoot,tbody,table",kn=fs(lt.first,Wt,Ct),Vn=fs(lt.last,Wt,Ct);return kn.bind(or=>Vn.bind(Mr=>An(or,Mr)?Lo(lt.table,lt.first,lt.last):A.none()))}),om=_,H_=he=>{const Ce=(lt,Ct)=>it(lt,Ct).exists(Wt=>parseInt(Wt,10)>1),Xe=lt=>Ce(lt,"rowspan")||Ce(lt,"colspan");return he.length>0&&se(he,Xe)?A.some(he):A.none()},QO=(he,Ce,Xe)=>Ce.length<=1?A.none():X1(he,Xe.firstSelectedSelector,Xe.lastSelectedSelector).map(lt=>({bounds:lt,cells:Ce})),uh="data-mce-selected",Hd="td["+uh+"],th["+uh+"]",ei="["+uh+"]",Fx="data-mce-first-selected",id="td["+Fx+"],th["+Fx+"]",$x="data-mce-last-selected",HO="td["+$x+"],th["+$x+"]",cc=ei,Xu={selected:uh,selectedSelector:Hd,firstSelected:Fx,firstSelectedSelector:id,lastSelected:$x,lastSelectedSelector:HO},Vx=(he,Ce,Xe)=>({element:Xe,mergable:QO(Ce,he,Xu),unmergable:H_(he),selection:om(he)}),ZO=(he,Ce,Xe)=>({element:he,clipboard:Ce,generators:Xe}),u0=(he,Ce,Xe,lt)=>({selection:om(he),clipboard:Xe,generators:lt}),vb=he=>bl(he).bind(Ce=>wg(Ce,Xu.firstSelectedSelector)).fold(v(he),Ce=>Ce[0]),Fm=he=>(Ce,Xe)=>{const lt=Yt(Ce),Ct=lt==="col"||lt==="colgroup"?vb(Ce):Ce;return Bs(Ct,he,Xe)},Z_=Fm("th,td,caption"),q_=Fm("th,td"),uc=he=>Dp(he.model.table.getSelectedCells()),uy=he=>Z(uc(he),Ce=>sn(Ce,Xu.selectedSelector)),Zc=he=>bl(he[0]).map(Ce=>{const Xe=ui(Ce,cc);return Oh(Xe),[Xe]}),qO=(he,Ce)=>j(Ce,Xe=>he.selection.serializer.serialize(Xe.dom,{})).join(""),rp=he=>j(he,Ce=>Ce.dom.innerText).join(""),Og=(he,Ce)=>{he.on("BeforeGetContent",Xe=>{const lt=Ct=>{Xe.preventDefault(),Zc(Ct).each(Wt=>{Xe.content=Xe.format==="text"?rp(Wt):qO(he,Wt)})};if(Xe.selection===!0){const Ct=uy(he);Ct.length>=1&<(Ct)}}),he.on("BeforeSetContent",Xe=>{if(Xe.selection===!0&&Xe.paste===!0){const lt=uc(he);ve(lt).each(Ct=>{bl(Ct).each(Wt=>{const kn=Z(wu(Xe.content),or=>Yt(or)!=="meta"),Vn=vt("table");if(Lm(he)&&kn.length===1&&Vn(kn[0])){Xe.preventDefault();const or=Nt.fromDom(he.getDoc()),Mr=a0(or),no=ZO(Ct,kn[0],Mr);Ce.pasteCells(Wt,no).each(()=>{he.focus()})}})})}})},Oc=(he,Ce)=>({element:he,offset:Ce}),WO=(he,Ce,Xe)=>he.property().isText(Ce)&&he.property().getText(Ce).trim().length===0||he.property().isComment(Ce)?Xe(Ce).bind(lt=>WO(he,lt,Xe).orThunk(()=>A.some(lt))):A.none(),YO=(he,Ce)=>he.property().isText(Ce)?he.property().getText(Ce).length:he.property().children(Ce).length,Ux=(he,Ce)=>{const Xe=WO(he,Ce,he.query().prevSibling).getOr(Ce);if(he.property().isText(Xe))return Oc(Xe,YO(he,Xe));const lt=he.property().children(Xe);return lt.length>0?Ux(he,lt[lt.length-1]):Oc(Xe,YO(he,Xe))},qc=Ux,ff=bg(),fh=he=>qc(ff,he),fy=(he,Ce)=>{gu(he)||Jn(he).each(lt=>{const Ct=lt.value/2;pn(he,Ct,lt.unit),pn(Ce,Ct,lt.unit)})},jh=he=>j(he,v(0)),r1=(he,Ce,Xe,lt,Ct)=>Ct(he.slice(0,Ce)).concat(lt).concat(Ct(he.slice(Xe))),G1=he=>(Ce,Xe,lt,Ct)=>{if(he(lt)){const Wt=Math.max(Ct,Ce[Xe]-Math.abs(lt)),kn=Math.abs(Wt-Ce[Xe]);return lt>=0?kn:-kn}else return lt},Sg=G1(he=>he<0),dy=G1(P),K1=()=>{const he=(Vn,or,Mr,no,ti)=>{const ki=Sg(Vn,or,no,ti);return r1(Vn,or,Mr+1,[ki,0],jh)},Ce=(Vn,or,Mr,no)=>{const ti=(100+Mr)/100,ki=Math.max(no,(Vn[or]+Mr)/ti);return j(Vn,(xi,fi)=>(fi===or?ki:xi/ti)-xi)},Xe=(Vn,or,Mr,no,ti,ki)=>ki?Ce(Vn,or,no,ti):he(Vn,or,Mr,no,ti);return{resizeTable:(Vn,or)=>Vn(or),clampTableDelta:Sg,calcLeftEdgeDeltas:Xe,calcMiddleDeltas:(Vn,or,Mr,no,ti,ki,xi)=>Xe(Vn,Mr,no,ti,ki,xi),calcRightEdgeDeltas:(Vn,or,Mr,no,ti,ki)=>{if(ki)return Ce(Vn,Mr,no,ti);{const xi=Sg(Vn,Mr,no,ti);return jh(Vn.slice(0,Mr)).concat([xi])}},calcRedestributedWidths:(Vn,or,Mr,no)=>{if(no){const ki=(or+Mr)/or,xi=j(Vn,fi=>fi/ki);return{delta:ki*100-100,newSizes:xi}}else return{delta:Mr,newSizes:Vn}}}},o1=()=>{const he=(kn,Vn,or,Mr,no)=>{const ti=Mr>=0?or:Vn,ki=dy(kn,ti,Mr,no);return r1(kn,Vn,or+1,[ki,-ki],jh)};return{resizeTable:(kn,Vn,or)=>{or&&kn(Vn)},clampTableDelta:(kn,Vn,or,Mr,no)=>{if(no){if(or>=0)return or;{const ti=re(kn,(ki,xi)=>ki+xi-Mr,0);return Math.max(-ti,or)}}else return Sg(kn,Vn,or,Mr)},calcLeftEdgeDeltas:he,calcMiddleDeltas:(kn,Vn,or,Mr,no,ti)=>he(kn,or,Mr,no,ti),calcRightEdgeDeltas:(kn,Vn,or,Mr,no,ti)=>{if(ti)return jh(kn);{const ki=Mr/kn.length;return j(kn,v(ki))}},calcRedestributedWidths:(kn,Vn,or,Mr)=>({delta:0,newSizes:kn})}},kg=he=>Ca.fromTable(he).grid,J1=vt("th"),ev=he=>se(he,Ce=>J1(Ce.element)),z4=(he,Ce)=>he&&Ce?"sectionCells":he?"section":"cells",W_=he=>{const Ce=he.section==="thead",Xe=yf(tv(he.cells),"th");return he.section==="tfoot"?{type:"footer"}:Ce||Xe?{type:"header",subType:z4(Ce,Xe)}:{type:"body"}},tv=he=>{const Ce=Z(he,Xe=>J1(Xe.element));return Ce.length===0?A.some("td"):Ce.length===he.length?A.some("th"):A.none()},nv=he=>{const Ce=j(he,Ct=>W_(Ct).type),Xe=z(Ce,"header"),lt=z(Ce,"footer");if(!Xe&&!lt)return A.some("body");{const Ct=z(Ce,"body");return Xe&&!Ct&&!lt?A.some("header"):!Xe&&!Ct&<?A.some("footer"):A.none()}},jx=he=>we(he.all,Ce=>{const Xe=W_(Ce);return Xe.type==="header"?A.from(Xe.subType):A.none()}),hy=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Y_=(he,Ce)=>he.section!==Ce?on(he.element,he.cells,Ce,he.isNew):he,X_=()=>({transformRow:Y_,transformCell:(he,Ce,Xe)=>{const lt=Xe(he.element,Ce),Ct=Yt(lt)!=="td"?oo(lt,"td"):lt;return Gt(Ct,he.isNew,he.isLocked)}}),G_=()=>({transformRow:Y_,transformCell:hy}),py=()=>({transformRow:(he,Ce)=>Y_(he,Ce==="thead"?"tbody":Ce),transformCell:hy}),i1={getTableSectionType:(he,Ce)=>{const Xe=Ca.fromTable(he);switch(jx(Xe).getOr(Ce)){case"section":return X_();case"sectionCells":return G_();case"cells":return py()}},section:X_,sectionCells:G_,cells:py,fallback:()=>({transformRow:_,transformCell:hy})},Tg=(he,Ce,Xe,lt)=>{Xe===lt?at(he,Ce):st(he,Ce,Xe)},im=(he,Ce,Xe)=>{_e(xr(he,Ce)).fold(()=>Yr(he,Xe),lt=>Jr(lt,Xe))},Qh=(he,Ce)=>{const Xe=zi(he,Ce).getOrThunk(()=>{const lt=Nt.fromTag(Ce,Un(he).dom);return Ce==="thead"?im(he,"caption,colgroup",lt):Ce==="colgroup"?im(he,"caption",lt):to(he,lt),lt});return Mo(Xe),Xe},rv=(he,Ce)=>{const Xe=[],lt=[],Ct=xi=>j(xi,fi=>{fi.isNew&&Xe.push(fi.element);const Vi=fi.element;return Mo(Vi),U(fi.cells,Xo=>{Xo.isNew&<.push(Xo.element),Tg(Xo.element,"colspan",Xo.colspan,1),Tg(Xo.element,"rowspan",Xo.rowspan,1),to(Vi,Xo.element)}),Vi}),Wt=xi=>pe(xi,fi=>j(fi.cells,Vi=>(Tg(Vi.element,"span",Vi.colspan,1),Vi.element))),kn=(xi,fi)=>{const Vi=Qh(he,fi),oi=(fi==="colgroup"?Wt:Ct)(xi);$o(Vi,oi)},Vn=xi=>{zi(he,xi).each(pi)},or=(xi,fi)=>{xi.length>0?kn(xi,fi):Vn(fi)},Mr=[],no=[],ti=[],ki=[];return U(Ce,xi=>{switch(xi.section){case"thead":Mr.push(xi);break;case"tbody":no.push(xi);break;case"tfoot":ti.push(xi);break;case"colgroup":ki.push(xi);break}}),or(ki,"colgroup"),or(Mr,"thead"),or(no,"tbody"),or(ti,"tfoot"),{newRows:Xe,newCells:lt}},ov=he=>j(he,Ce=>{const Xe=Dr(Ce.element);return U(Ce.cells,lt=>{const Ct=Sr(lt.element);Tg(Ct,"colspan",lt.colspan,1),Tg(Ct,"rowspan",lt.rowspan,1),to(Xe,Ct)}),Xe}),Od=(he,Ce)=>j(he,Xe=>Ri(Xe,Ce)),Cg=(he,Ce)=>he[Ce],Qx=(he,Ce)=>{if(he.length===0)return 0;const Xe=he[0];return ee(he,Ct=>!Ce(Xe.element,Ct.element)).getOr(he.length)},kh=(he,Ce,Xe,lt)=>{const Ct=Cg(he,Ce),Wt=Ct.section==="colgroup",kn=Qx(Ct.cells.slice(Xe),lt),Vn=Wt?1:Qx(Od(he.slice(Ce),Xe),lt);return{colspan:kn,rowspan:Vn}},f0=(he,Ce)=>{const Xe=j(he,Ct=>j(Ct.cells,T)),lt=(Ct,Wt,kn,Vn)=>{for(let or=Ct;or{const kn=pe(Ct.cells,(Vn,or)=>{if(Xe[Wt][or]===!1){const Mr=kh(he,Wt,or,Ce);return lt(Wt,or,Mr.rowspan,Mr.colspan),[Yn(Vn.element,Mr.rowspan,Mr.colspan,Vn.isNew)]}else return[]});return Er(Ct.element,kn,Ct.section,Ct.isNew)})},iv=(he,Ce,Xe)=>{const lt=[];U(he.colgroups,Ct=>{const Wt=[];for(let kn=0;knGt(or.element,Xe,!1)).getOrThunk(()=>Gt(Ce.colGap(),!0,!1));Wt.push(Vn)}lt.push(on(Ct.element,Wt,"colgroup",Xe))});for(let Ct=0;CtGt(no.element,Xe,no.isLocked)).getOrThunk(()=>Gt(Ce.gap(),!0,!1));Wt.push(Mr)}const kn=he.all[Ct],Vn=on(kn.element,Wt,kn.section,Xe);lt.push(Vn)}return lt},K_=(he,Ce)=>iv(he,Ce,!1),bb=he=>f0(he,An),Hx=(he,Ce)=>we(he.all,Xe=>Y(Xe.cells,lt=>An(Ce,lt.element))),Zx=(he,Ce,Xe)=>{const lt=j(Ce.selection,Wt=>bf(Wt).bind(kn=>Hx(he,kn)).filter(Xe)),Ct=il(lt);return nh(Ct.length>0,Ct)},ad=(he,Ce,Xe,lt,Ct)=>(Wt,kn,Vn,or)=>{const Mr=Ca.fromTable(Wt),no=A.from(or==null?void 0:or.section).getOrThunk(i1.fallback);return Ce(Mr,kn).map(ki=>{const xi=K_(Mr,Vn),fi=he(xi,ki,An,Ct(Vn),no),Vi=ii(fi.grid),Xo=bb(fi.grid);return{info:ki,grid:Xo,cursor:fi.cursor,lockedColumns:Vi}}).bind(ki=>{const xi=rv(Wt,ki.grid),fi=A.from(or==null?void 0:or.sizing).getOrThunk(()=>mt.getTableSize(Wt)),Vi=A.from(or==null?void 0:or.resize).getOrThunk(o1);return Xe(Wt,ki.grid,ki.info,{sizing:fi,resize:Vi,section:no}),lt(Wt),at(Wt,Kc),ki.lockedColumns.length>0&&st(Wt,Kc,ki.lockedColumns.join(",")),A.some({cursor:ki.cursor,newRows:xi.newRows,newCells:xi.newCells})})},pC=(he,Ce)=>bf(Ce.element).bind(Xe=>Hx(he,Xe).map(lt=>({...lt,generators:Ce.generators,clipboard:Ce.clipboard}))),qx=(he,Ce)=>Zx(he,Ce,P).map(Xe=>({cells:Xe,generators:Ce.generators,clipboard:Ce.clipboard})),Ag=(he,Ce)=>Ce.mergable,$m=(he,Ce)=>Ce.unmergable,Th=(he,Ce)=>Zx(he,Ce,P),Np=(he,Ce)=>Zx(he,Ce,Xe=>!Xe.isLocked),d0=(he,Ce)=>Hx(he,Ce).exists(Xe=>!Xe.isLocked),av=(he,Ce)=>se(Ce,Xe=>d0(he,Xe)),J_=(he,Ce)=>Ag(he,Ce).filter(Xe=>av(he,Xe.cells)),my=(he,Ce)=>$m(he,Ce).filter(Xe=>av(he,Xe)),xb=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ct.length===0)return he;for(let Wt=Ce.startRow;Wt<=Ce.finishRow;Wt++)for(let kn=Ce.startCol;kn<=Ce.finishCol;kn++){const Vn=Ct[Wt],or=Ri(Vn,kn).isLocked;aa(Vn,kn,Gt(lt(),!1,or))}return he},ew=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;let Wt=!0;for(let kn=0;knre(he,(Xe,lt)=>$(Xe,Ct=>Ce(Ct.element,lt.element))?Xe:Xe.concat([lt]),[]),sv=(he,Ce,Xe,lt)=>(Ce>0&&Ce{const Wt=Ct.cells[Ce-1];let kn=0;const Vn=lt();for(;Ct.cells.length>Ce+kn&&Xe(Wt.element,Ct.cells[Ce+kn].element);)aa(Ct,Ce+kn,Gt(Vn,!0,Ct.cells[Ce+kn].isLocked)),kn++}),he),xp=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ce>0&&Ce{let or=A.none();for(let Mr=Ce;Mr{aa(ti,no,Gt(fi,!0,ki.isLocked))}))}})}return he},_b=he=>{const Ce=Wt=>Wt(he),Xe=v(he),lt=()=>Ct,Ct={tag:!0,inner:he,fold:(Wt,kn)=>kn(he),isValue:P,isError:T,map:Wt=>Sd.value(Wt(he)),mapError:lt,bind:Ce,exists:Ce,forall:Ce,getOr:Xe,or:lt,getOrThunk:Xe,orThunk:lt,getOrDie:Xe,each:Wt=>{Wt(he)},toOptional:()=>A.some(he)};return Ct},Ou=he=>{const Ce=()=>Xe,Xe={tag:!1,inner:he,fold:(lt,Ct)=>lt(he),isValue:T,isError:P,map:Ce,mapError:lt=>Sd.error(lt(he)),bind:Ce,exists:T,forall:P,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(he)),each:c,toOptional:A.none};return Xe},Sd={value:_b,error:Ou,fromOption:(he,Ce)=>he.fold(()=>Ou(Ce),_b)},XO=(he,Ce,Xe)=>{if(he.row>=Ce.length||he.column>qu(Ce[0]))return Sd.error("invalid start address out of table bounds, row: "+he.row+", column: "+he.column);const lt=Ce.slice(he.row),Ct=lt[0].cells.slice(he.column),Wt=qu(Xe[0]),kn=Xe.length;return Sd.value({rowDelta:lt.length-kn,colDelta:Ct.length-Wt})},wb=(he,Ce)=>{const Xe=qu(he[0]),lt=qu(Ce[0]);return{rowDelta:0,colDelta:Xe-lt}},am=(he,Ce)=>{const Xe=he.length,lt=Ce.length;return{rowDelta:Xe-lt,colDelta:0}},Vm=(he,Ce,Xe,lt)=>{const Ct=Ce.section==="colgroup"?Xe.col:Xe.cell;return Q(he,Wt=>Gt(Ct(),!0,lt(Wt)))},_p=(he,Ce,Xe,lt)=>{const Ct=he[he.length-1];return he.concat(Q(Ce,()=>{const Wt=Ct.section==="colgroup"?Xe.colgroup:Xe.row,kn=xc(Ct,Wt,_),Vn=Vm(kn.cells.length,kn,Xe,or=>We(lt,or.toString()));return rs(kn,Vn)}))},op=(he,Ce,Xe,lt)=>j(he,Ct=>{const Wt=Vm(Ce,Ct,Xe,T);return cf(Ct,lt,Wt)}),GO=(he,Ce,Xe)=>j(he,lt=>re(Xe,(Ct,Wt)=>{const kn=Vm(1,lt,Ce,P)[0];return Of(Ct,Wt,kn)},lt)),Ob=(he,Ce,Xe)=>{const lt=Ce.colDelta<0?op:_,Ct=Ce.rowDelta<0?_p:_,Wt=ii(he),kn=qu(he[0]),Vn=$(Wt,no=>no===kn-1),or=lt(he,Math.abs(Ce.colDelta),Xe,Vn?kn-1:kn),Mr=ii(or);return Ct(or,Math.abs(Ce.rowDelta),Xe,ce(Mr,P))},s1=(he,Ce,Xe,lt)=>{const Ct=Ri(he[Ce],Xe),Wt=C(lt,Ct.element),kn=he[Ce];return he.length>1&&qu(kn)>1&&(Xe>0&&Wt(Gc(kn,Xe-1))||Xe0&&Wt(Gc(he[Ce-1],Xe))||Ce{const kn=he.row,Vn=he.column,or=Xe.length,Mr=qu(Xe[0]),no=kn+or,ti=Vn+Mr+Wt.length,ki=ce(Wt,P);for(let xi=kn;xi{const lt=qu(Ce[0]),Ct=zl(Ce).cols.length+he.row,Wt=Q(lt-he.column,Vn=>Vn+he.column),kn=Y(Wt,Vn=>se(Xe,or=>or!==Vn)).getOr(lt-1);return{row:Ct,column:kn}},p0=(he,Ce,Xe)=>Z(Xe,lt=>lt>=he.column&<<=qu(Ce[0])+he.column),Ss=(he,Ce,Xe,lt,Ct)=>{const Wt=ii(Ce),kn=h0(he,Ce,Wt),Vn=zl(Xe).rows,or=p0(kn,Vn,Wt);return XO(kn,Ce,Vn).map(no=>{const ti={...no,colDelta:no.colDelta-or.length},ki=Ob(Ce,ti,lt),xi=ii(ki),fi=p0(kn,Vn,xi);return Um(kn,ki,Vn,lt,Ct,fi)})},kd=(he,Ce,Xe,lt,Ct)=>{sv(Ce,he,Ct,lt.cell);const Wt=am(Xe,Ce),kn=Ob(Xe,Wt,lt),Vn=am(Ce,kn),or=Ob(Ce,Vn,lt);return j(or,(Mr,no)=>cf(Mr,he,kn[no].cells))},Ch=(he,Ce,Xe,lt,Ct)=>{xp(Ce,he,Ct,lt.cell);const Wt=ii(Ce),kn=wb(Ce,Xe),Vn={...kn,colDelta:kn.colDelta-Wt.length},or=Ob(Ce,Vn,lt),{cols:Mr,rows:no}=zl(or),ti=ii(or),ki=wb(Xe,Ce),xi={...ki,colDelta:ki.colDelta+ti.length},fi=GO(Xe,lt,ti),Vi=Ob(fi,xi,lt);return[...Mr,...no.slice(0,he),...Vi,...no.slice(he,no.length)]},Sb=(he,Ce,Xe,lt)=>xc(he,Ct=>lt(Ct,Xe),Ce),Sl=(he,Ce,Xe,lt,Ct)=>{const{rows:Wt,cols:kn}=zl(he),Vn=Wt.slice(0,Ce),or=Wt.slice(Ce),Mr=Sb(Wt[Xe],(no,ti)=>Ce>0&&Ce{if(Xe==="colgroup"||!lt){const Vn=Ri(he,Ct);return Gt(kn(Vn.element,Wt),!0,!1)}else return Ri(he,Ce)},Yx=(he,Ce,Xe,lt,Ct)=>j(he,Wt=>{const kn=Ce>0&&Cepe(he,Xe=>{const lt=Xe.cells,Ct=K(Ce,(Wt,kn)=>kn>=0&&kn0?[on(Xe.element,Ct,Xe.section,Xe.isNew)]:[]}),Xx=(he,Ce,Xe)=>{const{rows:lt,cols:Ct}=zl(he);return[...Ct,...lt.slice(0,Ce),...lt.slice(Xe+1)]},lv=(he,Ce,Xe,lt)=>Gc(he[Ce],Xe)!==void 0&&Ce>0&<(Gc(he[Ce-1],Xe),Gc(he[Ce],Xe)),fc=(he,Ce,Xe)=>Ce>0&&Xe(Gc(he,Ce-1),Gc(he,Ce)),cv=(he,Ce,Xe,lt)=>lv(he,Ce,Xe,lt)||fc(he[Ce],Xe,lt),kb=(he,Ce)=>se(Ce,_)&&ev(he.cells)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Wt]),dc=(he,Ce)=>se(Ce,_)&&ev(he)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Ct]),uv=(he,Ce,Xe,lt)=>{const Ct=kn=>kn==="row"?ec(Ce):gu(Ce),Wt=kn=>Ct(kn)?`${kn}group`:kn;return he?J1(Ce)?Wt(Xe):null:lt&&J1(Ce)?Wt(Xe==="row"?"col":"row"):null},Ah=(he,Ce)=>(Xe,lt,Ct)=>A.some(uv(he,Xe.element,"col",Ce[Ct])),Fp=(he,Ce)=>(Xe,lt)=>A.some(uv(he,Xe.element,"row",Ce[lt])),tw=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Li=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const Vn=or=>$(Ce,Mr=>Xe(or.element,Mr.element));return j(he,(or,Mr)=>Mu(or,(no,ti)=>{if(Vn(no)){const ki=kn(no,Mr,ti)?Ct(no,Xe,lt):no;return Wt(ki,Mr,ti).each(xi=>{Vt(ki.element,{scope:A.from(xi)})}),ki}else return no}))},nw=(he,Ce,Xe)=>pe(he,(lt,Ct)=>cv(he,Ct,Ce,Xe)?[]:[Ri(lt,Ce)]),F4=(he,Ce,Xe)=>{const lt=he[Ce];return pe(lt.cells,(Ct,Wt)=>cv(he,Ce,Wt,Xe)?[]:[Ct])},KO=(he,Ce,Xe,lt,Ct)=>{const Wt=zl(he).rows,kn=pe(Ce,no=>nw(Wt,no,lt)),Vn=j(Wt,no=>ev(no.cells)),or=dc(kn,Vn),Mr=Fp(Xe,Vn);return Li(he,kn,lt,Ct,tw,Mr,or)},rw=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const{cols:Vn,rows:or}=zl(he),Mr=or[Ce[0]],no=pe(Ce,Xo=>F4(or,Xo,Ct)),ti=j(Mr.cells,(Xo,oi)=>ev(nw(or,oi,Ct))),ki=[...or];U(Ce,Xo=>{ki[Xo]=kn.transformRow(or[Xo],Xe)});const xi=[...Vn,...ki],fi=kb(Mr,ti),Vi=Ah(lt,ti);return Li(xi,no,Ct,Wt,kn.transformCell,Vi,fi)},JO=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=j(Ce,kn=>Ri(Ct[kn.row],kn.column));return Li(he,Wt,Xe,lt,tw,A.none,P)},sm={generate:he=>{if(!u(he))throw new Error("cases must be an array");if(he.length===0)throw new Error("there must be at least one case");const Ce=[],Xe={};return U(he,(lt,Ct)=>{const Wt=Te(lt);if(Wt.length!==1)throw new Error("one and only one name per case");const kn=Wt[0],Vn=lt[kn];if(Xe[kn]!==void 0)throw new Error("duplicate key detected:"+kn);if(kn==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Vn))throw new Error("case arguments must be an array");Ce.push(kn),Xe[kn]=(...or)=>{const Mr=or.length;if(Mr!==Vn.length)throw new Error("Wrong number of arguments to case "+kn+". Expected "+Vn.length+" ("+Vn+"), got "+Mr);return{fold:(...ti)=>{if(ti.length!==he.length)throw new Error("Wrong number of arguments to fold. Expected "+he.length+", got "+ti.length);return ti[Ct].apply(null,or)},match:ti=>{const ki=Te(ti);if(Ce.length!==ki.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` +`))}};return r=gU(r,[//g]),Ke(B.parse(r)),H},_R=r=>(r=gU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,oe)=>!H&&!oe?" ":Pc],/
    /g,/
    $/i]),r),wR=r=>{let g=0;return()=>r+g++},Dte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return To.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Bte=(r,g)=>{const B=fS({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r),convert_unsafe_embeds:Fb(r)},r.schema);B.addNodeFilter("meta",oe=>{To.each(oe,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return rx({validate:!0},r.schema).serialize(H)},vU=(r,g)=>({content:r,cancelled:g}),yU=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),oe=qC(r,H,B);return vU(oe.node.innerHTML,oe.isDefaultPrevented())},zte=(r,g,B)=>{const H=aE(r,g,B),oe=Bte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?yU(r,oe,B):vU(oe,H.isDefaultPrevented())},Nte=(r,g,B)=>zte(r,g,B),o_=(r,g)=>(r.insertContent(g,{merge:dw(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),RS=(r,g)=>OR(g)&&de(Ty(r),B=>$r(g.toLowerCase(),`.${B.toLowerCase()}`)),tT=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),Fte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),$te=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?Fte(r,g,B):!1,LS=(r,g,B)=>RS(r,g)?tT(r,g,B):!1,Vte=(r,g)=>{To.each([$te,LS,o_],B=>!B(r,g,o_))},SR=(r,g,B)=>{B||!o3(r)?o_(r,g):Vte(r,g)},Ute=wR("mceclip"),bU=r=>{const g=cU();return uU(g,r),yR(g),g},kR=(r,g,B,H,oe)=>{const be=Nte(r,g,B);if(!be.cancelled){const Le=be.content,Ke=()=>SR(r,Le,H);oe?D0(r,"insertFromPaste",{dataTransfer:bU(Le)}).isDefaultPrevented()||(Ke(),cO(r,"insertFromPaste")):Ke()}},IS=(r,g,B,H)=>{const oe=B||dU(g);kR(r,Ate(g),oe,!1,H)},KA=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` +`),oe=Ut(H,hw(r)),be=Pte(oe,tu(r),qd(r));kR(r,be,!1,!0,B)},xU=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,TR=r=>i_(r,"text/html")||i_(r,"text/plain"),jte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return P(B)?r.dom.encode(B[1]):void 0},_U=(r,g,B,H)=>{const oe=Ute(),be=dl(r)&&P(B.name),Le=be?jte(r,B.name):oe,Ke=be?B.name:void 0,ut=g.create(oe,B,H,Le,Ke);return g.add(ut),ut},CR=(r,g)=>{V2(g.uri).each(({data:B,type:H,base64Encoded:oe})=>{const be=oe?B:btoa(B),Le=g.file,Ke=r.editorUpload.blobCache,ut=Ke.getByData(be,H),At=ut??_U(r,Ke,Le,be);IS(r,``,!1,!0)})},wU=r=>r.type==="paste",Qte=r=>Promise.all(ye(r,g=>lx(g).then(B=>({file:g,uri:B})))),Hte=r=>{const g=Ty(r);return B=>Br(B.type,"image/")&&de(g,H=>Dte(H)===B.type)},Zte=(r,g)=>{const B=g.items?$e(Me(g.items),oe=>oe.kind==="file"?[oe.getAsFile()]:[]):[],H=g.files?Me(g.files):[];return Te(B.length>0?B:H,Hte(r))},AR=(r,g,B)=>{const H=wU(g)?g.clipboardData:g.dataTransfer;if(xv(r)&&H){const oe=Zte(r,H);if(oe.length>0)return g.preventDefault(),Qte(oe).then(be=>{B&&r.selection.setRng(B),ve(be,Le=>{CR(r,Le)})}),!0}return!1},MR=r=>{var g,B;return Nr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},qte=r=>Jo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,JA=(r,g,B,H,oe)=>{let be=_R(B);const Le=i_(g,XA())||dU(B),Ke=!Le&&Mte(be),ut=OR(be);(GA(be)||!be.length||Ke&&!ut)&&(H=!0),(H||ut)&&(i_(g,"text/plain")&&Ke?be=g["text/plain"]:be=Ite(be)),!GA(be)&&(H?KA(r,be,oe):IS(r,be,Le,oe))},OU=(r,g,B)=>{let H;const oe=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{qte(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||MR(be))return;const Le=B.get()==="text"||H;H=!1;const Ke=xU(be.clipboardData);!TR(Ke)&&AR(r,be,oe())||(i_(Ke,"text/html")?(be.preventDefault(),JA(r,Ke,Ke["text/html"],Le,!0)):i_(Ke,"text/plain")&&i_(Ke,"text/uri-list")?(be.preventDefault(),JA(r,Ke,Ke["text/plain"],Le,!0)):(g.create(),Ig.setEditorTimeout(r,()=>{const ut=g.getHtml();g.remove(),JA(r,Ke,ut,Le,!1)},0)))})},Wte=r=>{const g=oe=>Br(oe,"webkit-fake-url"),B=oe=>Br(oe,"data:"),H=oe=>{var be;return((be=oe.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(oe,be,Le)=>{if(!xv(r)&&H(Le))for(const Ke of oe){const ut=Ke.attr("src");v(ut)&&!Ke.attr("data-mce-object")&&ut!==Nr.transparentSrc&&(g(ut)||!v1(r)&&B(ut))&&Ke.remove()}})},SU=(r,g,B)=>{OU(r,g,B),Wte(r)},Yte=(r,g)=>{g.get()==="text"?(g.set("html"),j3(r,!1)):(g.set("text"),j3(r,!0)),r.focus()},Xte=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{Yte(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&IS(r,H.html,H.internal,!1),H.text&&KA(r,H.text,!1)})},Gte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(XA(),g),!0}catch{return!1}else return!1},kU=(r,g,B,H)=>{Gte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},TU=r=>(g,B)=>{const{dom:H,selection:oe}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Le=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Le),H.add(r.getBody(),be);const Ke=oe.getRng();Le.focus();const ut=H.createRng();ut.selectNodeContents(Le),oe.setRng(ut),Ig.setEditorTimeout(r,()=>{oe.setRng(Ke),H.remove(be),B()},0)},nT=r=>({html:Cte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),Kte=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),ER=r=>!r.selection.isCollapsed()||Kte(r),Jte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&r.selection.isEditable()&&kU(g,nT(r),TU(r),()=>{if(Nr.browser.isChromium()||Nr.browser.isFirefox()){const B=r.selection.getRng();Ig.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},ene=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&kU(g,nT(r),TU(r),k)},CU=r=>{r.on("cut",Jte(r)),r.on("copy",ene(r))},PR=(r,g)=>{var B,H;return oi.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},tne=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},AU=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},nne=r=>de(r.files,g=>/^image\//.test(g.type)),rne=(r,g,B,H)=>{const oe=r.getParent(B,Le=>lh(g,Le));if(!x(r.getParent(B,"summary")))return!0;if(oe&&Ot(H,"text/html")){const Le=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Le.querySelector(oe.nodeName.toLowerCase()))}else return!1},one=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ve(H,oe=>{gn(oe.firstChild)&&oe.firstChild.remove();const be=r.dom.create("summary");be.appendChild(sv().dom),oe.prepend(be)})}})},MU=(r,g)=>{r3(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),xv(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&nne(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=PR(r,B);if(T(H))return;const oe=xU(B.dataTransfer),be=i_(oe,XA());if((!TR(oe)||tne(oe))&&AR(r,B,H))return;const Le=oe[XA()],Ke=Le||oe["text/html"]||oe["text/plain"],ut=rne(r.dom,r.schema,H.startContainer,oe),At=g.get();At&&!ut||Ke&&(B.preventDefault(),Ig.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Le||At&&ut)&&r.execCommand("Delete"),AU(r,H);const nn=_R(Ke);oe["text/html"]?IS(r,nn,be,!0):KA(r,nn,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{xv(r)&&!g.get()&&(B.preventDefault(),AU(r,PR(r,B))),B.type==="dragend"&&g.set(!1)}),one(r)},ine=r=>{const g=oe=>be=>{oe(r,be)},B=g1(r);A(B)&&r.on("PastePreProcess",g(B));const H=_v(r);A(H)&&r.on("PastePostProcess",g(H))},ane=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},sne=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,EU=r=>To.trim(r).replace(sne,od).toLowerCase(),lne=(r,g,B)=>{const H=ky(r);if(B||H==="all"||!Ov(r))return g;const oe=H?H.split(/[, ]/):[];if(oe&&H!=="none"){const be=r.dom,Le=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ut,At,nn)=>{const un=be.parseStyle(be.decode(At)),yn={};for(let rr=0;rr]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Le,Ke,ut)=>Le+' style="'+Ke+'"'+ut),g},cne=r=>{(Nr.browser.isChromium()||Nr.browser.isSafari())&&ane(r,lne)},une=r=>{const g=Ar(!1),B=Ar(Bb(r)?"text":"html"),H=mU(r);cne(r),Xte(r,B),ine(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{CU(r),MU(r,g),SU(r,H,B)})},fne=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},PU=r=>{r.parser.addNodeFilter("details",g=>{const B=a3(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=d2(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},RU=r=>{fne(r),PU(r)},dne=gn,LU=Mt,hne=r=>In(r.dom),pne=r=>pn(r.dom),IU=r=>g=>va(_r.fromDom(r),g),mne=(r,g,B)=>cl(_r.fromDom(r),H=>pne(H)||B.isBlock(ma(H)),IU(g)).getOr(_r.fromDom(g)).dom,DU=(r,g)=>cl(_r.fromDom(r),hne,IU(g)),rT=(r,g,B)=>{const H=new Xl(r,g),oe=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Le=B?r:oe();Le&&!dne(Le);Le=oe())Hh(Le)&&(be=Le);return be},BU=(r,g,B)=>{const oe=vo.fromRangeStart(r).getNode(),be=mne(oe,g,B),Le=rT(oe,be,!1),Ke=rT(oe,be,!0),ut=document.createRange();return DU(Le,be).fold(()=>{LU(Le)?ut.setStart(Le,0):ut.setStartBefore(Le)},At=>ut.setStartBefore(At.dom)),DU(Ke,be).fold(()=>{LU(Ke)?ut.setEnd(Ke,Ke.data.length):ut.setEndAfter(Ke)},At=>ut.setEndAfter(At.dom)),ut},gne=r=>{const g=BU(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Rc(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),gne(r))})};var fO;(function(r){r.Before="before",r.After="after"})(fO||(fO={}));const RR=(r,g)=>Math.abs(r.left-g),vne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,yne=(r,g)=>r.topg.top,FU=(r,g)=>{const B=uv(r,g)/Math.min(r.height,g.height);return yne(r,g)&&B>.5},bne=(r,g)=>{const B=Te(r,H=>NU(g,H));return kb(B).fold(()=>[[],r],H=>{const{pass:oe,fail:be}=we(r,Le=>FU(Le,H));return[oe,be]})},$U=(r,g)=>({node:r.node,position:RR(r,g)g>r.left&&g{const oe=un=>Hh(un.node)?Y.some(un):ne(un.node)?LR(Me(un.node.childNodes),g,B,!1):Y.none(),be=(un,yn,Qn)=>oe(yn).filter(rr=>Math.abs(Qn(un,g,B)-Qn(rr,g,B))<2&&Mt(rr.node)),Le=(un,yn)=>{const Qn=Ue(un,(rr,Wn)=>yn(rr,g,B)-yn(Wn,g,B));return Fe(Qn,oe).map(rr=>H&&!Mt(rr.node)&&Qn.length>1?be(rr,Qn[1],yn).getOr(rr):rr)},[Ke,ut]=bne(I0(r),B),{pass:At,fail:nn}=we(ut,un=>un.topLe(nn,dc)).orThunk(()=>Le(At,dc))},_ne=(r,g,B,H)=>{const oe=(be,Le)=>{const Ke=At=>ne(At)&&At.classList.contains("mce-drag-container"),ut=Te(be.dom.childNodes,X(Ke));return Le.fold(()=>LR(ut,B,H,!0),At=>{const nn=Te(ut,un=>un!==At.dom);return LR(nn,B,H,!0)}).orThunk(()=>(va(be,r)?Y.none():Nh(be)).bind(nn=>oe(nn,Y.some(be))))};return oe(g,Y.none())},oT=(r,g,B)=>{const H=_r.fromDom(r),oe=$f(H),Le=_r.fromPoint(oe,g,B).filter(Ke=>El(H,Ke)).getOr(H);return _ne(H,Le,g,B)},VU=(r,g,B)=>oT(r,g,B).filter(H=>b1(H.node)).map(H=>$U(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),oe=r.ownerDocument,be=oe.documentElement,Le=oe.defaultView;return{top:H.top+((g=Le==null?void 0:Le.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Le==null?void 0:Le.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},jU=r=>r.inline?UU(r.getBody()):{left:0,top:0},wne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},One=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},oe={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:oe},Sne=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=One(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},kne=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),Tne=(r,g)=>kne(jU(r),wne(r),Sne(r,g)),iT=r=>({target:r,srcElement:r}),QU=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...iT(B)}),HU=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...iT(g)}},Cne=(r,g)=>{const B=YA(r);return g==="dragstart"?(nU(B),oU(B)):g==="drop"?(rU(B),yR(B)):(bte(B),iU(B)),B},Ane=(r,g,B,H)=>{const oe=Cne(B,r);return M(H)?HU(r,g,oe):QU(r,H,g,oe)},e8=32,tde=100,t8=8,aT=16,n8=In,r8=F4(n8,pn),Mne=(r,g,B)=>n8(B)&&B!==g&&r.isEditable(B.parentElement),Ene=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),ZU=(r,g,B,H)=>{const oe=r.dom,be=g.cloneNode(!0);oe.setStyles(be,{width:B,height:H}),oe.setAttrib(be,"data-mce-selected",null);const Le=oe.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return oe.setStyles(Le,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),oe.setStyles(be,{margin:0,boxSizing:"border-box"}),Le.appendChild(be),Le},Pne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},DS=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},IR=DS("left",-e8),qU=DS("left",e8),WU=DS("top",-e8),DR=DS("top",e8),Rne=(r,g,B,H,oe,be,Le,Ke,ut,At,nn,un)=>{let yn=0,Qn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>oe&&(yn=g.pageX+B-oe),g.pageY+H>be&&(Qn=g.pageY+H-be),r.style.width=B-yn+"px",r.style.height=H-Qn+"px";const rr=ut.clientHeight,Wn=ut.clientWidth,ur=Le+ut.getBoundingClientRect().top,Tr=Ke+ut.getBoundingClientRect().left;nn.on(Wr=>{Wr.intervalId.clear(),Wr.dragging&&un&&(Le+t8>=rr?Wr.intervalId.set(DR(At)):Le-t8<=0?Wr.intervalId.set(WU(At)):Ke+t8>=Wn?Wr.intervalId.set(qU(At)):Ke-t8<=0?Wr.intervalId.set(IR(At)):ur+aT>=window.innerHeight?Wr.intervalId.set(DR(window)):ur-aT<=0?Wr.intervalId.set(WU(window)):Tr+aT>=window.innerWidth?Wr.intervalId.set(qU(window)):Tr-aT<=0&&Wr.intervalId.set(IR(window)))})},Lne=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},Ine=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);Lne(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&xp(_r.fromDom(B))},Dne=r=>r.button===0,Bne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),YU=(r,g)=>B=>{if(Dne(B)){const H=De(g.dom.getParents(B.target),r8).getOr(null);if(P(H)&&Mne(g.dom,g.getBody(),H)){const oe=g.dom.getPos(H),be=g.getBody(),Le=g.getDoc().documentElement;r.set({element:H,dataTransfer:cU(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Le.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Le.offsetHeight)-2,relX:B.pageX-oe.x,relY:B.pageY-oe.y,width:H.offsetWidth,height:H.offsetHeight,ghost:ZU(g,H,H.offsetWidth,H.offsetHeight),intervalId:$s(tde)})}}},zne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const oe=r._selectionOverrides.showCaret(1,H.node,H.position===fO.Before,!1);oe?r.selection.setRng(oe):r.selection.placeCaretAt(g,B)})},BS=(r,g,B,H,oe)=>{g==="dragstart"&&uU(H,r.dom.getOuterHTML(B));const be=Ane(g,B,H,oe);return r.dispatch(g,be)},Nne=(r,g)=>{const B=dy((oe,be)=>zne(g,oe,be),0);g.on("remove",B.cancel);const H=r;return oe=>r.on(be=>{const Le=Math.max(Math.abs(oe.screenX-be.screenX),Math.abs(oe.screenY-be.screenY));if(!be.dragging&&Le>10){const Ke=BS(g,"dragstart",be.element,be.dataTransfer,oe);if(P(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=oe.currentTarget===g.getDoc().documentElement,ut=Bne(be,Tne(g,oe));Pne(be.ghost,g.getBody()),Rne(be.ghost,ut,be.width,be.height,be.maxX,be.maxY,oe.clientY,oe.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(oe.clientX,oe.clientY)}})},Fne=r=>{const g=r.getSel();if(P(g)){const H=g.getRangeAt(0).startContainer;return Mt(H)?H.parentNode:H}else return null},$ne=(r,g)=>B=>{r.on(H=>{var oe;if(H.intervalId.clear(),H.dragging){if(Ene(g,Fne(g.selection),H.element)){const be=(oe=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&oe!==void 0?oe:g.getBody();BS(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{Ine(g.dom,H.element),Tte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}BS(g,"dragend",g.getBody(),H.dataTransfer,B)}}),BR(r)},XU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>BS(g,"dragend",H.element,H.dataTransfer),oe=>BS(g,"dragend",H.element,H.dataTransfer,oe))}),BR(r)},Vne=(r,g)=>B=>XU(r,g,Y.some(B)),BR=r=>{r.on(g=>{g.intervalId.clear(),Lne(g.ghost)}),r.clear()},nde=r=>{const g=Ts(),B=cc.DOM,H=document,oe=YU(g,r),be=Nne(g,r),Le=$ne(g,r),Ke=Vne(g,r);r.on("mousedown",oe),r.on("mousemove",be),r.on("mouseup",Le),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ut=>{ut.keyCode===Jo.ESC&&XU(g,r,Y.none())})},Une=r=>{const g=oe=>{if(!oe.isDefaultPrevented()){const be=oe.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(oe.preventDefault(),oe.type==="drop"&&d5(r,"Dropped file type is not supported"))}},B=oe=>{i6(r,oe.target)&&g(oe)},H=()=>{const oe=cc.DOM,be=r.dom,Le=document,Ke=r.inline?r.getBody():r.getDoc(),ut=["drop","dragover"];ve(ut,At=>{oe.bind(Le,At,B),be.bind(Ke,At,g)}),r.on("remove",()=>{ve(ut,At=>{oe.unbind(Le,At,B),be.unbind(Ke,At,g)})})};r.on("init",()=>{Ig.setEditorTimeout(r,H,0)})},GU=r=>{nde(r),fw(r)&&Une(r)},jne=r=>{const g=dy(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=_S(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},zR=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Gr(B)){const H=z2(r.getBody(),B),oe=In(H)?H:B;r.selection.getNode()!==oe&&xS(r,oe).each(be=>r.selection.setRng(be))}})})},sT=In,KU=(r,g)=>z2(r.getBody(),g),Qne=r=>{const g=r.selection,B=r.dom,H=r.getBody(),oe=AD(r,H,B.isBlock,()=>nx(r)),be="sel-"+B.uniqueId(),Le="data-mce-selected";let Ke;const ut=Mi=>P(Mi)&&B.hasClass(Mi,"mce-offscreen-selection"),At=Mi=>Mi!==H&&(sT(Mi)||Gr(Mi))&&B.isChildOf(Mi,H)&&B.isEditable(Mi.parentNode),nn=Mi=>{Mi&&g.setRng(Mi)},un=(Mi,Co,yo,Vo=!0)=>r.dispatch("ShowCaret",{target:Co,direction:Mi,before:yo}).isDefaultPrevented()?null:(Vo&&g.scrollIntoView(Co,Mi===-1),oe.show(yo,Co)),yn=Mi=>{Mi.hasAttribute("data-mce-caret")&&(Ah(Mi),g.scrollIntoView(Mi))},Qn=()=>{r.on("click",Co=>{B.isEditable(Co.target)||(Co.preventDefault(),r.focus())}),r.on("blur NewBlock",lo),r.on("ResizeWindow FullscreenStateChanged",oe.reposition),r.on("tap",Co=>{const yo=Co.target,Vo=KU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):At(yo)&&xS(r,yo).each(Qr)},!0),r.on("mousedown",Co=>{const yo=Co.target;if(yo!==H&&yo.nodeName!=="HTML"&&!B.isChildOf(yo,H)||!dG(r,Co.clientX,Co.clientY))return;lo(),li();const Vo=KU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):VU(H,Co.clientX,Co.clientY).each(Fi=>{Co.preventDefault();const la=un(1,Fi.node,Fi.position===fO.Before,!1);nn(la),V(Vo)?Vo.focus():r.getBody().focus()})}),r.on("keypress",Co=>{Jo.modifierPressed(Co)||sT(g.getNode())&&Co.preventDefault()}),r.on("GetSelectionRange",Co=>{let yo=Co.range;if(Ke){if(!Ke.parentNode){Ke=null;return}yo=yo.cloneRange(),yo.selectNode(Ke),Co.range=yo}}),r.on("SetSelectionRange",Co=>{Co.range=ur(Co.range);const yo=Qr(Co.range,Co.forward);yo&&(Co.range=yo)});const Mi=Co=>ne(Co)&&Co.id==="mcepastebin";r.on("AfterSetSelectionRange",Co=>{const yo=Co.range,Vo=yo.startContainer.parentElement;!Wn(yo)&&!Mi(Vo)&&li(),ut(Vo)||lo()}),GU(r),jne(r),zR(r)},rr=Mi=>op(Mi)||p0(Mi)||Ss(Mi),Wn=Mi=>rr(Mi.startContainer)||rr(Mi.endContainer),ur=Mi=>{const Co=r.schema.getVoidElements(),yo=B.createRng(),Vo=Mi.startContainer,Fi=Mi.startOffset,la=Mi.endContainer,bs=Mi.endOffset;return Ot(Co,Vo.nodeName.toLowerCase())?Fi===0?yo.setStartBefore(Vo):yo.setStartAfter(Vo):yo.setStart(Vo,Fi),Ot(Co,la.nodeName.toLowerCase())?bs===0?yo.setEndBefore(la):yo.setEndAfter(la):yo.setEnd(la,bs),yo},Tr=(Mi,Co)=>{const yo=_r.fromDom(r.getBody()),Vo=r.getDoc(),Fi=wi(yo,"#"+be).getOrThunk(()=>{const Ms=_r.fromHtml('
    ',Vo);return ll(Ms,"id",be),ii(yo,Ms),Ms}),la=B.createRng();uf(Fi),Yl(Fi,[_r.fromText(Pc,Vo),_r.fromDom(Co),_r.fromText(Pc,Vo)]),la.setStart(Fi.dom.firstChild,1),la.setEnd(Fi.dom.lastChild,0),aa(Fi,{top:B.getPos(Mi,r.getBody()).y+"px"}),Z3(Fi);const bs=g.getSel();return bs&&(bs.removeAllRanges(),bs.addRange(la)),la},Wr=Mi=>{const Co=Mi.cloneNode(!0),yo=r.dispatch("ObjectSelected",{target:Mi,targetClone:Co});if(yo.isDefaultPrevented())return null;const Vo=Tr(Mi,yo.targetClone),Fi=_r.fromDom(Mi);return ve(Pl(_r.fromDom(r.getBody()),`*[${Le}]`),la=>{va(Fi,la)||tc(la,Le)}),B.getAttrib(Mi,Le)||Mi.setAttribute(Le,"1"),Ke=Mi,li(),Vo},Qr=(Mi,Co)=>{if(!Mi)return null;if(Mi.collapsed){if(!Wn(Mi)){const la=Co?1:-1,bs=xw(la,H,Mi),Ms=bs.getNode(!Co);if(P(Ms)){if(b1(Ms))return un(la,Ms,Co?!bs.isAtEnd():!1,!1);if(_p(Ms)&&In(Ms.nextSibling)){const Vl=B.createRng();return Vl.setStart(Ms,0),Vl.setEnd(Ms,0),Vl}}const wl=bs.getNode(Co);if(P(wl)){if(b1(wl))return un(la,wl,Co?!1:!bs.isAtEnd(),!1);if(_p(wl)&&In(wl.previousSibling)){const Vl=B.createRng();return Vl.setStart(wl,1),Vl.setEnd(wl,1),Vl}}}return null}let yo=Mi.startContainer,Vo=Mi.startOffset;const Fi=Mi.endOffset;if(Mt(yo)&&Vo===0&&sT(yo.parentNode)&&(yo=yo.parentNode,Vo=B.nodeIndex(yo),yo=yo.parentNode),!ne(yo))return null;if(Fi===Vo+1&&yo===Mi.endContainer){const la=yo.childNodes[Vo];if(At(la))return Wr(la)}return null},lo=()=>{Ke&&Ke.removeAttribute(Le),wi(_r.fromDom(r.getBody()),"#"+be).each(hs),Ke=null},Zo=()=>{oe.destroy(),Ke=null},li=()=>{oe.hide()};return zy(r)||Qn(),{showCaret:un,showBlockCaretContainer:yn,hideFakeCaret:li,destroy:Zo}},JU=(r,g)=>{let B=g;for(let H=r.previousSibling;Mt(H);H=H.previousSibling)B+=H.data.length;return B},lT=(r,g,B,H,oe)=>{if(Mt(B)&&(H<0||H>B.data.length))return[];const be=oe&&Mt(B)?[JU(B,H)]:[H];let Le=B;for(;Le!==g&&Le.parentNode;)be.push(r.nodeIndex(Le,oe)),Le=Le.parentNode;return Le===g?be.reverse():[]},o8=(r,g,B,H,oe,be,Le=!1)=>{const Ke=lT(r,g,B,H,Le),ut=lT(r,g,oe,be,Le);return{start:Ke,end:ut}},NR=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Le)=>be.bind(Ke=>Y.from(Ke.childNodes[Le])),Y.some(r)).bind(be=>Mt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},ej=(r,g)=>NR(r,g.start).bind(({node:B,offset:H})=>NR(r,g.end).map(({node:oe,offset:be})=>{const Le=document.createRange();return Le.setStart(B,H),Le.setEnd(oe,be),Le})),Hne=(r,g,B,H=!1)=>o8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),dO=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Mt(g.firstChild)&&lc(g.firstChild.data)),dO(r,H,B)}},i8=(r,g,B,H=!0)=>{const oe=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Mt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Mt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),dO(r,oe,B),oe!==be&&dO(r,be,B))},a8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),FR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:ld(H).concat(r.blockPatterns),inlinePatterns:cd(H).concat(r.inlinePatterns)}},cT=(r,g,B,H)=>{const oe=r.createRng();return oe.setStart(g,0),oe.setEnd(B,H),oe.toString()},tj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),s8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},nj=(r,g,B)=>{const H=ej(r.getRoot(),B).getOrDie("Unable to resolve path range"),oe=H.startContainer,be=H.endContainer,Le=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?oe:oe.splitText(H.startOffset),ut=Ke.parentNode,At=Le.parentNode;return{prefix:g,end:At.insertBefore(tj(r,g+"-end"),Le),start:ut.insertBefore(tj(r,g+"-start"),Ke)}},rj=(r,g,B)=>{dO(r,r.get(g.prefix+"-end"),B),dO(r,r.get(g.prefix+"-start"),B)},$R=r=>r.start.length===0,Zne=r=>(g,B)=>{const oe=g.data.substring(0,B),be=oe.lastIndexOf(r.charAt(r.length-1)),Le=oe.lastIndexOf(r);return Le!==-1?Le+r.length:be!==-1?be+1:-1},VR=(r,g,B,H)=>{const oe=g.start;return z9(r,H.container,H.offset,Zne(oe),B).bind(Le=>{var Ke,ut;const At=(ut=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(oe))!==null&&ut!==void 0?ut:-1;if(At!==-1&&Le.offset>=At+oe.length){const un=r.createRng();return un.setStart(Le.container,Le.offset-oe.length),un.setEnd(Le.container,Le.offset),Y.some(un)}else{const un=Le.offset-oe.length;return B9(Le.container,un,B).map(yn=>{const Qn=r.createRng();return Qn.setStart(yn.container,yn.offset),Qn.setEnd(Le.container,Le.offset),Qn}).filter(yn=>yn.toString()===oe).orThunk(()=>VR(r,g,B,L1(Le.container,0)))}})},oj=(r,g,B,H,oe,be=!1)=>{if(g.start.length===0&&!be){const Le=r.createRng();return Le.setStart(B,H),Le.setEnd(B,H),Y.some(Le)}return D9(B,H,oe).bind(Le=>VR(r,g,oe,Le).bind(ut=>{var At;if(be){if(ut.endContainer===Le.container&&ut.endOffset===Le.offset)return Y.none();if(Le.offset===0&&((At=ut.endContainer.textContent)===null||At===void 0?void 0:At.length)===ut.endOffset)return Y.none()}return Y.some(ut)}))},UR=(r,g,B,H)=>{const oe=r.dom,be=oe.getRoot(),Le=B.pattern,Ke=B.position.container,ut=B.position.offset;return B9(Ke,ut-B.pattern.end.length,g).bind(At=>{const nn=o8(oe,be,At.container,At.offset,Ke,ut,H);if($R(Le))return Y.some({matches:[{pattern:Le,startRng:nn,endRng:nn}],position:At});{const un=zS(r,B.remainingPatterns,At.container,At.offset,g,H),yn=un.getOr({matches:[],position:At}),Qn=yn.position;return oj(oe,Le,Qn.container,Qn.offset,g,un.isNone()).map(Wn=>{const ur=Hne(oe,be,Wn,H);return{matches:yn.matches.concat([{pattern:Le,startRng:ur,endRng:nn}]),position:L1(Wn.startContainer,Wn.startOffset)}})}})},zS=(r,g,B,H,oe,be)=>{const Le=r.dom;return D9(B,H,Le.getRoot()).bind(Ke=>{const ut=cT(Le,oe,B,H);for(let At=0;At0)return zS(r,g,B,H-1,oe,be);if(yn.isSome())return yn}return Y.none()})},ij=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ve(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},jR=(r,g,B,H)=>{const oe=s8(r.dom,B);i8(r.dom,oe,H),ij(r,g,oe)},qne=(r,g,B,H,oe)=>{const be=r.dom,Le=s8(be,H),Ke=s8(be,B);i8(be,Ke,oe),i8(be,Le,oe);const ut={prefix:B.prefix,start:B.end,end:H.start},At=s8(be,ut);ij(r,g,At)},Wne=(r,g)=>{const B=yb("mce_textpattern"),H=Pe(g,(oe,be)=>{const Le=nj(r,B+`_end${oe.length}`,be.endRng);return oe.concat([{...be,endMarker:Le}])},[]);return Pe(H,(oe,be)=>{const Le=H.length-oe.length-1,Ke=$R(be.pattern)?be.endMarker:nj(r,B+`_start${Le}`,be.startRng);return oe.concat([{...be,startMarker:Ke}])},[])},aj=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Yne=(r,g)=>{const B=Oe(r,H=>de(g,oe=>H.pattern.start===oe.pattern.start&&H.pattern.end===oe.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},sj=(r,g,B,H,oe,be)=>{const Le=zS(r,oe.inlinePatterns,B,H,g,be).fold(()=>[],ut=>ut.matches),Ke=zS(r,aj(oe.inlinePatterns),B,H,g,be).fold(()=>[],ut=>ut.matches);return Yne(Le,Ke)},lj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),oe=Wne(B,g);ve(oe,be=>{const Le=B.getParent(be.startMarker.start,B.isBlock),Ke=ut=>ut===Le;$R(be.pattern)?jR(r,be.pattern,be.endMarker,Ke):qne(r,be.pattern,be.startMarker,be.endMarker,Ke),rj(B,be.endMarker,Ke),rj(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},cj=(r,g,B)=>IJ(g,0,g).map(H=>{const oe=H.container;return j5(oe,B.start.length,g).each(be=>{const Le=r.createRng();Le.setStart(oe,0),Le.setEnd(be.container,be.offset),i8(r,Le,Ke=>Ke===g)}),oe}),uj=r=>(g,B)=>{const H=g.dom,oe=B.pattern,be=ej(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Le=(Ke,ut)=>{const At=ut.get(Ke);return C(At)&&Ye(At).exists(nn=>Ot(nn,"block"))};return a8(g,be).each(Ke=>{oe.type==="block-format"?Le(oe.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.formatter.apply(oe.format)}):oe.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.execCommand(oe.cmd,!1,oe.value)})}),!0},Xne=r=>Ue(r,(g,B)=>B.start.length-g.start.length),fj=r=>(g,B)=>{const H=Xne(g),oe=B.replace(Pc," ");return De(H,be=>r(be,B,oe))},QR=(r,g)=>(B,H,oe,be,Le)=>{var Ke;Le===void 0&&(Le=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ut=B.dom,At=tu(B);return ut.is(H,At)?r(oe.blockPatterns,Le).map(nn=>g&&To.trim(Le).length===nn.start.length?[]:[{pattern:nn,range:o8(ut,ut.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Gne=r=>/^\s[^\s]/.test(r),Kne=uj((r,g,B)=>{cj(r,g,B).each(H=>{const oe=_r.fromDom(H),be=f0(oe);Gne(be)&&K_(oe,be.slice(1))})}),Jne=fj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),ere=QR(Jne,!0),tre=(r,g)=>{const B=r.selection.getRng();return a8(r,B).map(H=>{var oe;const be=Math.max(0,B.startOffset),Le=FR(g,H,(oe=H.textContent)!==null&&oe!==void 0?oe:""),Ke=sj(r,H,B.startContainer,be,Le,!0),ut=ere(r,H,Le,!0);return{inlineMatches:Ke,blockMatches:ut}}).filter(({inlineMatches:H,blockMatches:oe})=>oe.length>0||H.length>0)},nre=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ve(g,H=>Kne(r,H)),r.selection.moveToBookmark(B)},rre=uj(cj),l8=fj((r,g,B)=>g===r.start||B===r.start),ore=QR(l8,!1),ire=(r,g)=>{const B=r.selection.getRng();return a8(r,B).map(H=>{const oe=Math.max(0,B.startOffset),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be);return ore(r,H,Le,!1,be)}).filter(H=>H.length>0)},are=(r,g)=>{ve(g,B=>rre(r,B))},sre=(r,g)=>tre(r,g).fold(re,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{XO(r),lj(r,B),nre(r,H);const oe=r.selection.getRng(),be=D9(oe.startContainer,oe.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Le=>{const Ke=Le.container;Ke.data.charAt(Le.offset-1)===pl&&(Ke.deleteData(Le.offset-1,1),dO(r.dom,Ke.parentNode,ut=>ut===r.dom.getRoot()))})}),!0)),lre=(r,g)=>{const B=r.selection.getRng();a8(r,B).map(H=>{const oe=Math.max(0,B.startOffset-1),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be),Ke=sj(r,H,B.startContainer,oe,Le,!1);Ke.length>0&&r.undoManager.transact(()=>{lj(r,Ke)})})},cre=(r,g)=>ire(r,g).fold(re,B=>(r.undoManager.transact(()=>{are(r,B)}),!0)),hj=(r,g,B)=>{for(let H=0;Hhj(r,g,(B,H)=>B===H.keyCode&&!Jo.modifierPressed(H)),fre=(r,g)=>hj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),pj=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Cf(c2(r).filter(Le=>Le.type==="inline-command"||Le.type==="block-command"?r.queryCommandSupported(Le.cmd):!0),Wm(r)),oe=()=>ap(r);r.on("keydown",Le=>{if(Le.keyCode===13&&!Jo.modifierPressed(Le)&&r.selection.isCollapsed()){const Ke=xl(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||oe())&&sre(r,Ke)&&Le.preventDefault()}},!0),r.on("keydown",Le=>{if(Le.keyCode===32&&r.selection.isCollapsed()){const Ke=xl(H(),"space");(Ke.blockPatterns.length>0||oe())&&cre(r,Ke)&&Le.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Le=xl(H(),"space");(Le.inlinePatterns.length>0||oe())&&lre(r,Le)}};r.on("keyup",Le=>{ure(B,Le)&&be()}),r.on("keypress",Le=>{fre(g,Le)&&Ig.setEditorTimeout(r,be)})},dre=r=>{pj(r)},mj=r=>{const g=To.each,B=Jo.BACKSPACE,H=Jo.DELETE,oe=r.dom,be=r.selection,Le=r.parser,Ke=Nr.browser,ut=Ke.isFirefox(),At=Ke.isChromium()||Ke.isSafari(),nn=Nr.deviceType.isiPhone()||Nr.deviceType.isiPad(),un=Nr.os.isMacOS()||Nr.os.isiOS(),yn=(Ti,pa)=>{try{r.getDoc().execCommand(Ti,!1,String(pa))}catch{}},Qn=Ti=>Ti.isDefaultPrevented(),rr=()=>{const Ti=ps=>{const Ci=oe.create("body"),ms=ps.cloneContents();return Ci.appendChild(ms),be.serializer.serialize(Ci,{format:"html"})},pa=ps=>{const Ci=Ti(ps),ms=oe.createRng();ms.selectNode(r.getBody());const Es=Ti(ms);return Ci===Es};r.on("keydown",ps=>{const Ci=ps.keyCode;if(!Qn(ps)&&(Ci===H||Ci===B)&&r.selection.isEditable()){const ms=r.selection.isCollapsed(),Es=r.getBody();if(ms&&!Hi(r.schema,Es)||!ms&&!pa(r.selection.getRng()))return;ps.preventDefault(),r.setContent(""),Es.firstChild&&oe.isBlock(Es.firstChild)?r.selection.setCursorLocation(Es.firstChild,0):r.selection.setCursorLocation(Es,0),r.nodeChanged()}})},Wn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},ur=()=>{r.inline||oe.bind(r.getDoc(),"mousedown mouseup",Ti=>{let pa;if(Ti.target===r.getDoc().documentElement)if(pa=be.getRng(),r.getBody().focus(),Ti.type==="mousedown"){if(op(pa.startContainer))return;be.placeCaretAt(Ti.clientX,Ti.clientY)}else be.setRng(pa)})},Tr=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode(),ps=pa.previousSibling;if(pa.nodeName==="HR"){oe.remove(pa),Ti.preventDefault();return}ps&&ps.nodeName&&ps.nodeName.toLowerCase()==="hr"&&(oe.remove(ps),Ti.preventDefault())}}})},Wr=()=>{Range.prototype.getClientRects||r.on("mousedown",Ti=>{if(!Qn(Ti)&&Ti.target.nodeName==="HTML"){const pa=r.getBody();pa.blur(),Ig.setEditorTimeout(r,()=>{pa.focus()})}})},Qr=()=>{const Ti=a2(r);r.on("click",pa=>{const ps=pa.target;/^(IMG|HR)$/.test(ps.nodeName)&&oe.isEditable(ps)&&(pa.preventDefault(),r.selection.select(ps),r.nodeChanged()),ps.nodeName==="A"&&oe.hasClass(ps,Ti)&&ps.childNodes.length===0&&oe.isEditable(ps.parentNode)&&(pa.preventDefault(),be.select(ps))})},lo=()=>{const Ti=()=>{const ps=oe.getAttribs(be.getStart().cloneNode(!1));return()=>{const Ci=be.getStart();Ci!==r.getBody()&&(oe.setAttrib(Ci,"style",null),g(ps,ms=>{Ci.setAttributeNode(ms.cloneNode(!0))}))}},pa=()=>!be.isCollapsed()&&oe.getParent(be.getStart(),oe.isBlock)!==oe.getParent(be.getEnd(),oe.isBlock);r.on("keypress",ps=>{let Ci;return!Qn(ps)&&(ps.keyCode===8||ps.keyCode===46)&&pa()?(Ci=Ti(),r.getDoc().execCommand("delete",!1),Ci(),ps.preventDefault(),!1):!0}),oe.bind(r.getDoc(),"cut",ps=>{if(!Qn(ps)&&pa()){const Ci=Ti();Ig.setEditorTimeout(r,()=>{Ci()})}})},Zo=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode().previousSibling;if(pa&&pa.nodeName&&pa.nodeName.toLowerCase()==="table")return Ti.preventDefault(),!1}return!0})},li=()=>{r.on("keydown",Ti=>{if(Qn(Ti)||Ti.keyCode!==Jo.BACKSPACE)return;let pa=be.getRng();const ps=pa.startContainer,Ci=pa.startOffset,ms=oe.getRoot();let Es=ps;if(!(!pa.collapsed||Ci!==0)){for(;Es.parentNode&&Es.parentNode.firstChild===Es&&Es.parentNode!==ms;)Es=Es.parentNode;Es.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Es),pa=oe.createRng(),pa.setStart(ps,0),pa.setEnd(ps,0),be.setRng(pa))}})},Mi=()=>{const Ti=()=>{yn("StyleWithCSS",!1),yn("enableInlineTableEditing",!1),Md(r)||yn("enableObjectResizing",!1)};Rb(r)||r.on("BeforeExecCommand mousedown",Ti)},Co=()=>{const Ti=()=>{g(oe.select("a:not([data-mce-block])"),pa=>{var ps;let Ci=pa.parentNode;const ms=oe.getRoot();if((Ci==null?void 0:Ci.lastChild)===pa){for(;Ci&&!oe.isBlock(Ci);){if(((ps=Ci.parentNode)===null||ps===void 0?void 0:ps.lastChild)!==Ci||Ci===ms)return;Ci=Ci.parentNode}oe.add(Ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",pa=>{(pa.type==="setcontent"||pa.command==="mceInsertLink")&&Ti()})},yo=()=>{r.on("init",()=>{yn("DefaultParagraphSeparator",tu(r))})},Vo=Ti=>{const pa=Ti.getBody(),ps=Ti.selection.getRng();return ps.startContainer===ps.endContainer&&ps.startContainer===pa&&ps.startOffset===0&&ps.endOffset===pa.childNodes.length},Fi=()=>{r.on("keyup focusin mouseup",Ti=>{!Jo.modifierPressed(Ti)&&!Vo(r)&&be.normalize()},!0)},la=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},bs=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ms=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",Ti=>{let pa;Ti.target.nodeName==="HTML"&&(pa=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(pa),r.selection.normalize(),r.nodeChanged())}))},wl=()=>{un&&r.on("keydown",Ti=>{Jo.metaKeyPressed(Ti)&&!Ti.shiftKey&&(Ti.keyCode===37||Ti.keyCode===39)&&(Ti.preventDefault(),r.selection.getSel().modify("move",Ti.keyCode===37?"backward":"forward","lineboundary"))})},Vl=()=>{r.on("click",Ti=>{let pa=Ti.target;do if(pa.tagName==="A"){Ti.preventDefault();return}while(pa=pa.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},Uu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",Ti=>{Ti.preventDefault()})})},Wf=()=>{Le.addNodeFilter("br",Ti=>{let pa=Ti.length;for(;pa--;)Ti[pa].attr("class")==="Apple-interchange-newline"&&Ti[pa].remove()})},ic=k,vi=()=>{if(!ut||r.removed)return!1;const Ti=r.selection.getSel();return!Ti||!Ti.rangeCount||Ti.rangeCount===0},na=()=>{At&&(ur(),Qr(),Uu(),Wn(),nn&&(bs(),Ms(),Vl())),ut&&(Wr(),Mi(),la(),wl())},ol=()=>{li(),rr(),Nr.windowsPhone||Fi(),At&&(ur(),Qr(),yo(),Uu(),Zo(),Wf(),nn?(bs(),Ms(),Vl()):Wn()),ut&&(Tr(),Wr(),lo(),Mi(),Co(),la(),wl(),Zo())};return zy(r)?na():ol(),{refreshContentEditable:ic,isHidden:vi}},hre=r=>r.toLowerCase()==="gpl",pre=r=>r.length>=64&&r.length<=255,gj=r=>hre(r)||pre(r)?"VALID":"INVALID",uT=r=>{const g=l3(r);!v(c3(r))&&(M(g)||gj(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},HR=cc.DOM,vj=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_d(Ac(B)),oe=_r.fromTag("style");ll(oe,"type","text/css"),ii(oe,_r.fromText(g)),ii(H,oe),r.on("remove",()=>{hs(oe)})},mre=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,ZR=r=>Yt(r,g=>M(g)===!1),yj=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return ZR({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:mre(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:h2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},bj=r=>{const g=r.options.get;return ZR({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},xj=r=>{const g=r.options.get;return{...yj(r),...bj(r),...ZR({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},gre=r=>{const g=fS(yj(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const oe=r.dom,be="data-mce-"+H;let Le=B.length;for(;Le--;){const Ke=B[Le];let ut=Ke.attr(H);if(ut&&!Ke.attr(be)){if(ut.indexOf("data:")===0||ut.indexOf("blob:")===0)continue;H==="style"?(ut=oe.serializeStyle(oe.parseStyle(ut),Ke.name),ut.length||(ut=null),Ke.attr(be,ut),Ke.attr(H,ut)):H==="tabindex"?(Ke.attr(be,ut),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ut,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const oe=B[H],be=oe.attr("type")||"no/type";be.indexOf("mce-")!==0&&oe.attr("type","mce-"+be)}}),zb(r)&&g.addNodeFilter("#cdata",B=>{var H;let oe=B.length;for(;oe--;){const be=B[oe];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const oe=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(oe)&&be.getAll("br").length===0&&be.append(new Hp("br",1))}}),g},_j=r=>{const g=Db(r);g&&Ig.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},vre=r=>{const g=r.dom.getRoot();!r.inline&&(!T2(r)||r.selection.getStart(!0)===g)&&ph(g).each(B=>{const H=B.getNode(),oe=dt(H)?ph(H).getOr(B):B;r.selection.setRng(oe.toRange())})},yre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,oE(r),r.focus(!0),vre(r),r.nodeChanged({initial:!0});const g=n3(r);A(g)&&g.call(r,r),_j(r)},qR=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,bre=(r,g,B)=>{const{pass:H,fail:oe}=we(g,Ke=>tinymce.Resource.has(m5(Ke))),Le=[...H.map(Ke=>{const ut=tinymce.Resource.get(m5(Ke));return v(ut)?Promise.resolve(qR(r).loadRawCss(Ke,ut)):Promise.resolve()}),qR(r).loadAll(oe)];return r.inline?Le:Le.concat([r.ui.styleSheetLoader.loadAll(B)])},wj=r=>{const g=qR(r),B=Ad(r),H=r.contentCSS,oe=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?oe():r.on("remove",oe)};if(r.contentStyles.length>0){let ut="";To.each(r.contentStyles,At=>{ut+=At+`\r +`}),r.dom.addStyle(ut)}const Le=Promise.all(bre(r,H,B)).then(be).catch(be),Ke=Mb(r);return Ke&&vj(r,Ke),Le},xre=r=>{const g=r.getDoc(),B=r.getBody();$3(r),l2(r)||(g.body.spellcheck=!1,HR.setAttrib(B,"spellcheck","false")),r.quirks=mj(r),jC(r);const H=_y(r);H!==void 0&&(B.dir=H);const oe=fm(r);oe&&r.on("BeforeSetContent",be=>{To.each(oe,Le=>{be.content=be.content.replace(Le,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},_re=r=>{zy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},WR=r=>{r.removed!==!0&&(_re(r),yre(r))},wre=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},YR=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(HR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=Rb(r),r._editableRoot=Lb(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&HR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=C7(r),r.schema=zm(bj(r)),r.dom=cc(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:p1(r),referrerPolicy:b0(r),onSetAttrib:Le=>{r.dispatch("SetAttrib",Le)}}),r.parser=gre(r),r.serializer=Ih(xj(r),r),r.selection=QX(r.dom,r.getWin(),r.serializer,r),r.annotator=B3(r),r.formatter=Dv(r),r.undoManager=bS(r),r._nodeChangeDispatcher=new JV(r),r._selectionOverrides=Qne(r),qK(r),RU(r),JK(r),zy(r)||(zU(r),dre(r));const oe=ZA(r);p$(r,oe),y9(r),zG(r),une(r);const be=kX(r);xre(r),uT(r),be.fold(()=>{const Le=wre(r);wj(r).then(()=>{WR(r),Le()})},Le=>{r.setProgressState(!0),wj(r).then(()=>{Le().then(Ke=>{r.setProgressState(!1),WR(r),v7(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),WR(r),v7(r)})})})},XR=q,Oj=(r,g,B)=>wt(r,g,XR,B),c8=cc.DOM,Ore=(r,g,B,H)=>{const oe=_r.fromTag("iframe");return H.each(be=>ll(oe,"tabindex",be)),Tu(oe,B),Tu(oe,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),Cu(oe,"tox-edit-area__iframe"),oe},Sre=r=>{let g=Eh(r)+"";mc(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=dh(r),H=hh(r),oe=r.translate(s2(r));return Qm(r)&&(g+=''),g+=`
    `,g},kre=(r,g)=>{const B=Nr.browser.isFirefox()?s2(r):"Rich Text Area",H=r.translate(B),oe=ec(_r.fromDom(r.getElement()),"tabindex").bind(eo),be=Ore(r.id,H,Ru(r),oe).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=Sre(r),c8.add(g.iframeContainer,be)},Sj=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,YR(r)};if(V4(r)||Nr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=Oj(_r.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},kj=(r,g)=>{kre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=c8.isHidden(g.editorContainer)),r.getElement().style.display="none",c8.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,Sj(r)},Tj=cc.DOM,Tre=(r,g,B)=>{const H=mS.get(B),oe=mS.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=To.trim(B),H&&To.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,oe)||{};r.plugins[B]=be,A(be.init)&&(be.init(r,oe),g.push(B))}catch(be){xG(r,B,be)}}},GR=r=>r.replace(/^\-/,""),u8=r=>{const g=[];ve(bv(r),B=>{Tre(r,g,GR(B))})},f8=r=>{const g=To.trim(du(r)),B=r.ui.registry.getAll().icons,H={...lA.get("default").icons,...lA.get(g).icons};Ge(H,(oe,be)=>{Ot(B,be)||r.ui.registry.addIcon(be,oe)})},mx=r=>{const g=w0(r);if(v(g)){const B=Q2.get(g);r.theme=B(r,Q2.urls[g])||{},A(r.theme.init)&&r.theme.init(r,Q2.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},d8=r=>{const g=Oy(r),B=pS.get(g);r.model=B(r,pS.urls[g])},NS=r=>{const g=r.theme.renderUI;return g?g():KR(r)},Cj=r=>{const g=r.getElement(),H=w0(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},Aj=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),Cre=r=>{const g=Tj.create("div");return Tj.insertAfter(g,r),Aj(g,g)},KR=r=>{const g=r.getElement();return r.inline?Aj(null):Cre(g)},Are=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(w0(r))?NS(r):A(w0(r))?Cj(r):KR(r)},JR=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(oe=>oe(H))}};r.ui={...r.ui,...B}},h8=async r=>{r.dispatch("ScriptsLoaded"),f8(r),mx(r),d8(r),u8(r);const g=await Are(r);JR(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,Il(r),r.inline?YR(r):kj(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},Qg=cc.DOM,a_=r=>r.charAt(0)==="-",Mj=(r,g)=>{const B=Hm(g),H=yv(g);if(!ff.hasCode(B)&&B!=="en"){const oe=lr(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(oe).catch(()=>{vG(g,oe,B)})}},Mre=(r,g)=>{const B=w0(r);if(v(B)&&!a_(B)&&!Ot(Q2.urls,B)){const H=Eb(r),oe=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;Q2.load(B,oe).catch(()=>{yG(r,oe,B)})}},Ere=(r,g)=>{const B=Oy(r);if(B!=="plugin"&&!Ot(pS.urls,B)){const H=aw(r),oe=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;pS.load(B,oe).catch(()=>{bG(r,oe,B)})}},Pre=r=>Y.from(Iu(r)).filter(lr).map(g=>({url:g,name:Y.none()})),Ej=(r,g,B)=>Y.from(g).filter(H=>lr(H)&&!lA.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),Rre=(r,g,B)=>{const H=Ej(g,"default",B),oe=Pre(g).orThunk(()=>Ej(g,du(g),""));ve(fs([H,oe]),be=>{r.add(be.url).catch(()=>{uF(g,be.url,be.name.getOrUndefined())})})},Lre=(r,g)=>{const B=(H,oe)=>{mS.load(H,oe).catch(()=>{gG(r,oe,H)})};Ge(uw(r),(H,oe)=>{B(oe,H),r.options.set("plugins",bv(r).concat(oe))}),ve(bv(r),H=>{H=To.trim(H),H&&!mS.urls[H]&&!a_(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Pj=r=>{const g=w0(r);return!v(g)||P(Q2.get(g))},Ire=r=>{const g=Oy(r);return P(pS.get(g))},Dre=(r,g)=>{const B=Fm.ScriptLoader,H=()=>{!r.removed&&Pj(r)&&Ire(r)&&h8(r)};Mre(r,g),Ere(r,g),Mj(B,r),Rre(B,r,g),Lre(r,g),B.loadQueue().then(H,H)},Bre=(r,g)=>Gl.forElement(r,{contentCssCors:Sy(g),referrerPolicy:b0(g)}),rde=r=>{const g=r.id;ff.setCode(Hm(r));const B=()=>{Qg.unbind(window,"ready",B),r.render()};if(!wg.Event.domLoaded){Qg.bind(window,"ready",B);return}if(!r.getElement())return;const H=_r.fromDom(r.getElement()),oe=rh(H);r.on("remove",()=>{_e(H.dom.attributes,Le=>tc(H,Le.name)),Tu(H,oe)}),r.ui.styleSheetLoader=Bre(H,r),ip(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||Qg.getParent(g,"form");be&&(r.formElement=be,$4(r)&&!Rt(r.getElement())&&(Qg.insertAfter(Qg.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Le=>{r.dispatch(Le.type,Le)},Qg.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),qm(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=lF(r),r.notificationManager=sF(r),dm(r)&&r.on("GetContent",Le=>{Le.save&&(Le.content=Qg.encode(Le.content))}),lw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),cw(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),Dre(r,r.suffix)},zre=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),WC(r,g))},eL=r=>r._editableRoot,Nre=(r,g)=>({sections:$(r),options:$(g)}),Rj=zn().deviceType,tL=Rj.isPhone(),Fre=Rj.isTablet(),FS=r=>{if(T(r))return[];{const g=C(r)?r:r.split(/[ ,]/),B=ye(g,qn);return Te(B,lr)}},$re=(r,g)=>{const B=zt(g,(H,oe)=>ce(r,oe));return Nre(B.t,B.f)},nL=(r,g,B={})=>{const H=r.sections(),oe=Et(H,g).getOr({});return To.extend({},B,oe)},rL=(r,g)=>Ot(r.sections(),g),Vre=(r,g)=>rL(r,g)?r.sections()[g]:{},Ure=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Et(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),jre=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?To.extend({},r.external_plugins,H):H},Lj=(r,g)=>[...FS(r),...FS(g)],oL=(r,g,B,H)=>r&&rL(g,"mobile")?H:B,Ij=(r,g,B,H)=>{const oe=FS(B.forced_plugins),be=FS(H.plugins),Le=Vre(g,"mobile"),Ke=Le.plugins?FS(Le.plugins):be,ut=oL(r,g,be,Ke),At=Lj(oe,ut);return To.extend(H,{forced_plugins:oe,plugins:At})},iL=(r,g)=>r&&rL(g,"mobile"),Qre=(r,g,B,H,oe)=>{var be;const Le=r?{mobile:Ure((be=oe.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=$re(["mobile"],ng(Le,oe)),ut=To.extend(B,H,Ke.options(),iL(r,Ke)?nL(Ke,"mobile"):{},{external_plugins:jre(H,Ke.options())});return Ij(r,Ke,H,ut)},ode=(r,g)=>{const B=CS(g);return Qre(tL||Fre,tL,B,r,B)},ide=(r,g)=>DX(r,g),Hre=r=>{const g=(H,oe)=>{r.formatter.toggle(H,oe),r.nodeChanged()},B=H=>()=>{ve("left,center,right,justify".split(","),oe=>{H!==oe&&r.formatter.remove("align"+oe)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Dj=r=>{const g=B=>()=>{const H=r.selection,oe=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(oe,be=>P(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Zre=r=>{Hre(r),Dj(r)},qre=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let oe=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Nr.os.isMacOS()||Nr.os.isiOS())&&(oe=oe.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:oe,type:"error"})}}})},Wre=(r,g,B,H)=>{const oe=_r.fromDom(r.getRoot());return Pk(oe,vo.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),K3(oe,vo.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},ade=r=>{if(typeof r!="string"){const g=To.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},sde=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Wre(H,B.getRng(),g,r.schema):g},fT=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=ade(g);X6(r,{...H,content:sde(r,B),format:"html",set:!1,selection:!0}).each(oe=>{const be=LX(r,oe.content,H);YP(r,be,oe),r.addVisual()})}},Bj=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{fT(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{fT(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{fT(r,H)},mceInsertContent:(g,B,H)=>{fT(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(wv(r))}})},Yre={"font-size":"size","font-family":"face"},Xre=Jl("font"),Gre=(r,g,B)=>{const H=be=>Ri(be,r).orThunk(()=>Xre(be)?Et(Yre,r).bind(Le=>ec(be,Le)):Y.none()),oe=be=>va(_r.fromDom(g),be);return qk(_r.fromDom(B),be=>H(be),oe)},lde=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),cde=(r,g)=>Y.from(cc.DOM.getStyle(g,r,!0)),Kre=r=>(g,B)=>Y.from(B).map(_r.fromDom).filter(Wl).bind(H=>Gre(r,g,H.dom).or(cde(r,H.dom))).getOr(""),Jre=Kre("font-size"),ude=I(lde,Kre("font-family")),eoe=r=>ph(r.getBody()).bind(g=>{const B=g.container();return Y.from(Mt(B)?B.parentNode:B)}),hO=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),aL=(r,g)=>hO(r).orThunk(U(eoe,r)).map(_r.fromDom).filter(Wl).bind(g),$S=(r,g)=>aL(r,z(Y.some,g)),sL=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=Nb(r),oe=i3(r);return oe.length>0?oe[B-1]||g:H[B-1]||g}else return g}else return g},zj=r=>{const g=r.split(/\s*,\s*/);return ye(g,B=>B.indexOf(" ")!==-1&&!(Br(B,'"')||Br(B,"'"))?`'${B}'`:B).join(",")},Nj=(r,g)=>{const B=sL(r,g);r.formatter.toggle("fontname",{value:zj(B)}),r.nodeChanged()},toe=r=>$S(r,g=>ude(r.getBody(),g.dom)).getOr(""),noe=(r,g)=>{r.formatter.toggle("fontsize",{value:sL(r,g)}),r.nodeChanged()},roe=r=>$S(r,g=>Jre(r.getBody(),g.dom)).getOr(""),ooe=r=>$S(r,g=>{const B=_r.fromDom(r.getBody()),H=qk(g,be=>Ri(be,"line-height"),U(va,B)),oe=()=>{const be=parseFloat(rs(g,"line-height")),Le=parseFloat(rs(g,"font-size"));return String(be/Le)};return H.getOrThunk(oe)}).getOr(""),ioe=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},aoe=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,oe)=>{g(B,{value:oe})},BackColor:(B,H,oe)=>{g("hilitecolor",{value:oe})},FontName:(B,H,oe)=>{Nj(r,oe)},FontSize:(B,H,oe)=>{noe(r,oe)},LineHeight:(B,H,oe)=>{ioe(r,oe)},Lang:(B,H,oe)=>{var be;g(B,{value:oe.code,customValue:(be=oe.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,oe)=>{g(v(oe)?oe:"p")},mceToggleFormat:(B,H,oe)=>{g(oe)}})},s_=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>toe(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>roe(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>ooe(r))},soe=r=>{aoe(r),s_(r)},Fj=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},loe=r=>{r.editorCommands.addCommands({Indent:()=>{K2(r)},Outdent:()=>{m9(r)}}),r.editorCommands.addCommands({Outdent:()=>G2(r)},"state")},p8=r=>{const g=(B,H,oe)=>{const be=v(oe)?{href:oe}:oe,Le=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Le||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Le))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},coe=(r,g,B,H)=>{const oe=r.dom,be=Ke=>oe.isBlock(Ke)&&Ke.parentElement===B,Le=be(g)?g:oe.getParent(H,be,B);return Y.from(Le).map(_r.fromDom)},$j=(r,g)=>{const B=r.dom,H=r.selection.getRng(),oe=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Le=Y5(B,be);if(!Le||!Le.isContentEditable)return;const Ke=g?xc:Kc,ut=tu(r);coe(r,oe,Le,be).each(At=>{const nn=wV(r,be,At.dom,Le,!1,ut);Ke(At,_r.fromDom(nn)),r.selection.setCursorLocation(nn,0),r.dispatch("NewBlock",{newBlock:nn}),cO(r,"insertParagraph")})},uoe=r=>$j(r,!0),Vj=r=>$j(r,!1),foe=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{uoe(r)},InsertNewBlockAfter:()=>{Vj(r)}})},doe=r=>{r.editorCommands.addCommands({insertParagraph:()=>{ES(PV,r)},mceInsertNewLine:(g,B,H)=>{$V(r,H)},InsertLineBreak:(g,B,H)=>{ES(LV,r)}})},hoe=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let oe=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&oe++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),pn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},poe=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const oe=H??r.selection.getNode();if(oe!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(oe,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{Jq(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},lL=r=>{Zre(r),qre(r),Fj(r),hoe(r),Bj(r),p8(r),loe(r),foe(r),doe(r),soe(r),poe(r)},moe=["toggleview"],Uj=r=>ce(moe,r.toLowerCase());class fd{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,oe){const be=this.editor,Le=g.toLowerCase(),Ke=oe==null?void 0:oe.skip_focus;if(be.removed||(Le!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Le)&&!Ke?be.focus():FD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const At=this.commands.exec[Le];return A(At)?(At(Le,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!Uj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return A(H)?H(B):!1}queryCommandValue(g){if(!Uj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return A(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(oe,be)=>{ve(be.toLowerCase().split(","),Le=>{H[B][Le]=oe})})}addCommand(g,B,H){const oe=g.toLowerCase();this.commands.exec[oe]=(be,Le,Ke)=>B.call(H??this.editor,Le,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const pO="data-mce-contenteditable",goe=(r,g,B)=>{cs(r,g)&&!B?Bu(r,g):B&&Cu(r,g)},dT=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},hT=(r,g)=>{r.dom.contentEditable=g?"true":"false"},cL=r=>{ve(Pl(r,'*[contenteditable="true"]'),g=>{ll(g,pO,"true"),hT(g,!1)})},voe=r=>{ve(Pl(r,`*[${pO}="true"]`),g=>{tc(g,pO),hT(g,!0)})},yoe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},boe=r=>{r.selection.setRng(r.selection.getRng())},xoe=(r,g)=>{const B=_r.fromDom(r.getBody());goe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),yoe(r),r.readonly=!0,hT(B,!1),cL(B)):(r.readonly=!1,r.hasEditableRoot()&&hT(B,!0),voe(B),dT(r,"StyleWithCSS",!1),dT(r,"enableInlineTableEditing",!1),dT(r,"enableObjectResizing",!1),KD(r)&&r.focus(),boe(r),r.nodeChanged())},mO=r=>r.readonly,jj=r=>{r.parser.addAttributeFilter("contenteditable",g=>{mO(r)&&ve(g,B=>{B.attr(pO,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(pO,g=>{mO(r)&&ve(g,B=>{B.attr("contenteditable",B.attr(pO))})}),r.serializer.addTempAttr(pO)},_oe=r=>{r.serializer?jj(r):r.on("PreInit",()=>{jj(r)})},woe=r=>r.type==="click",VS=["copy"],Fv=r=>ce(VS,r.type),Ooe=(r,g)=>bu(g,"a",H=>va(H,_r.fromDom(r.getBody()))).bind(H=>ec(H,"href")),Soe=(r,g)=>{if(woe(g)&&!Jo.metaKeyPressed(g)){const B=_r.fromDom(g.target);Ooe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const oe=r.dom.select(`${H},[name="${Zn(H,"#")}"]`);oe.length&&r.selection.scrollIntoView(oe[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Fv(g)&&r.dispatch(g.type,g)},koe=r=>{r.on("ShowCaret",g=>{mO(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{mO(r)&&g.preventDefault()})},Toe=To.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class uL{static isNative(g){return!!Toe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||re}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),oe=j_(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(oe);const be=this.bindings[H];if(be)for(let Le=0,Ke=be.length;Le{this.toggleEvent(ut,!1),delete this.bindings[ut]}),this;if(Le){if(!B)Le.length=0;else{const Ke=we(Le,ut=>ut.func===B);Le=Ke.fail,this.bindings[be]=Le,ve(Ke.pass,ut=>{ut.removed=!0})}Le.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,oe)=>{this.toggleEvent(oe,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const pT=r=>(r._eventDispatcher||(r._eventDispatcher=new uL({scope:r,toggleEvent:(g,B)=>{uL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),fL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return j_(r.toLowerCase(),g??{},H);const oe=pT(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!oe.isPropagationStopped();)be.dispatch(r,oe,!1),be=be.parent?be.parent():void 0}return oe},on(r,g,B){return pT(this).on(r,g,B)},off(r,g){return pT(this).off(r,g)},once(r,g){return pT(this).once(r,g)},hasEventListeners(r){return pT(this).has(r)}},m8=cc.DOM;let gO;const dL=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=um(r);return B?(r.eventRoot||(r.eventRoot=m8.select(B)[0]),r.eventRoot):r.getBody()},Coe=r=>!r.hidden&&!mO(r),Qj=(r,g,B)=>{Coe(r)?r.dispatch(g,B):mO(r)&&Soe(r,B)},Hj=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=dL(r,g);if(um(r)){if(gO||(gO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||gO&&(Ge(gO,(oe,be)=>{r.dom.unbind(dL(r,be))}),gO=null)})),gO[g])return;const H=oe=>{const be=oe.target,Le=r.editorManager.get();let Ke=Le.length;for(;Ke--;){const ut=Le[Ke].getBody();(ut===be||m8.isChildOf(be,ut))&&Qj(Le[Ke],g,oe)}};gO[g]=H,m8.bind(B,g,H)}else{const H=oe=>{Qj(r,g,oe)};m8.bind(B,g,H),r.delegates[g]=H}},Zj={...fL,bindPendingEventDelegates(){const r=this;To.each(r._pendingNativeEvents,g=>{Hj(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?Hj(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(dL(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,oe)=>{r.dom.unbind(dL(r,oe),oe,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},Aoe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Moe=r=>{const g=(()=>{switch(r){case"array":return C;case"boolean":return R;case"function":return A;case"number":return L;case"object":return _;case"string":return v;case"string[]":return Aoe;case"object[]":return B=>D(B,_);case"regexp":return B=>p(B,RegExp);default:return q}})();return B=>hL(B,g,`The value must be a ${r}.`)},fde=r=>v(r.processor),qj=(r,g)=>{const B=zr(g.message)?"":`. ${g.message}`;return r+B},Wj=r=>r.valid,hL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},Eoe=(r,g,B)=>{if(!M(g)){const H=hL(g,B);if(Wj(H))return H.value;console.error(qj(`Invalid default value passed for the "${r}" option`,H))}},Poe=(r,g,B=g)=>{const H={},oe={},be=(Qn,rr,Wn)=>{const ur=hL(rr,Wn);return Wj(ur)?(oe[Qn]=ur.value,!0):(console.warn(qj(`Invalid value passed for the ${Qn} option`,ur)),!1)},Le=(Qn,rr)=>{const Wn=fde(rr)?Moe(rr.processor):rr.processor,ur=Eoe(Qn,rr.default,Wn);H[Qn]={...rr,default:ur,processor:Wn},Et(oe,Qn).orThunk(()=>Et(g,Qn)).each(Wr=>be(Qn,Wr,Wn))},Ke=Qn=>Ot(H,Qn);return{register:Le,isRegistered:Ke,get:Qn=>Et(oe,Qn).orThunk(()=>Et(H,Qn).map(rr=>rr.default)).getOrUndefined(),set:(Qn,rr)=>{if(Ke(Qn)){const Wn=H[Qn];return Wn.immutable?(console.error(`"${Qn}" is an immutable option and cannot be updated`),!1):be(Qn,rr,Wn.processor)}else return console.warn(`"${Qn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Qn=>{const rr=Ke(Qn);return rr&&delete oe[Qn],rr},isSet:Qn=>Ot(oe,Qn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(Qn,rr)=>R(rr)||L(rr)||v(rr)||x(rr)||C(rr)||O(rr)?rr:Object.prototype.toString.call(rr))))}catch(Qn){console.error(Qn)}}}},Roe=["design","readonly"],Yj=(r,g,B,H)=>{const oe=B[g.get()],be=B[H];try{be.activate()}catch(Le){console.error(`problem while activating editor mode ${H}:`,Le);return}oe.deactivate(),oe.editorReadOnly!==be.editorReadOnly&&xoe(r,be.editorReadOnly),g.set(H),tE(r,H)},Loe=(r,g,B,H)=>{if(H!==B.get()){if(!Ot(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Yj(r,B,g,H):r.on("init",()=>Yj(r,B,g,H))}},Ioe=(r,g,B)=>{if(ce(Roe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Doe=r=>{const g=Ar("design"),B=Ar({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return _oe(r),koe(r),{isReadOnly:()=>mO(r),set:H=>Loe(r,B.get(),g,H),get:()=>g.get(),register:(H,oe)=>{B.set(Ioe(B.get(),H,oe))}}},pL=To.each,mL=To.explode,Boe={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Xj=To.makeMap("alt,ctrl,shift,meta,access"),zoe=r=>r in Xj,Noe=r=>{const g={},B=Nr.os.isMacOS()||Nr.os.isiOS();pL(mL(r.toLowerCase(),"+"),be=>{zoe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Boe[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let oe;for(oe in Xj)g[oe]?H.push(oe):g[oe]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class gL{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(pL(B.shortcuts,oe=>{B.matchShortcut(H,oe)&&(B.pendingPatterns=oe.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(oe))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,oe){const be=this,Le=be.normalizeCommandFunc(H);return pL(mL(To.trim(g)),Ke=>{const ut=be.createShortcut(Ke,B,Le,oe);be.shortcuts[ut.id]=ut}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:To.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,oe){const be=To.map(mL(g,">"),Noe);return be[be.length-1]=To.extend(be[be.length-1],{func:H,scope:oe||this.editor}),To.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Foe=()=>{const r={},g={},B={},H={},oe={},be={},Le={},Ke={},ut=(nn,un)=>(yn,Qn)=>{nn[yn.toLowerCase()]={...Qn,type:un}},At=(nn,un)=>H[nn.toLowerCase()]=un;return{addButton:ut(r,"button"),addGroupToolbarButton:ut(r,"grouptoolbarbutton"),addToggleButton:ut(r,"togglebutton"),addMenuButton:ut(r,"menubutton"),addSplitButton:ut(r,"splitbutton"),addMenuItem:ut(g,"menuitem"),addNestedMenuItem:ut(g,"nestedmenuitem"),addToggleMenuItem:ut(g,"togglemenuitem"),addAutocompleter:ut(B,"autocompleter"),addContextMenu:ut(oe,"contextmenu"),addContextToolbar:ut(be,"contexttoolbar"),addContextForm:ut(be,"contextform"),addSidebar:ut(Le,"sidebar"),addView:ut(Ke,"views"),addIcon:At,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:oe,contextToolbars:be,sidebars:Le,views:Ke})}},$oe=()=>{const r=Foe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},vO=cc.DOM,Gj=To.extend,Voe=To.each;class g8{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,Gj(this,Zj);const oe=this;this.id=g,this.hidden=!1;const be=ode(H.defaultOptions,B);this.options=Poe(oe,be,B),$l(oe);const Le=this.options.get;Le("deprecation_warnings")&&oG(B,be);const Ke=Le("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ut=Le("base_url");ut&&H._setBaseUrl(ut),this.baseUri=H.baseURI;const At=b0(oe);At&&(Fm.ScriptLoader._setReferrerPolicy(At),cc.DOM.styleSheetLoader._setReferrerPolicy(At));const nn=Sy(oe);P(nn)&&cc.DOM.styleSheetLoader._setContentCssCors(nn),fh.languageLoad=Le("language_load"),fh.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new cp(mc(oe),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ip(oe),this.hasVisual=ud(oe),this.shortcuts=new gL(this),this.editorCommands=new fd(this),lL(this);const un=Le("cache_suffix");un&&(Nr.cacheSuffix=un.replace(/^[\?\&]+/,"")),this.ui={registry:$oe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Doe(oe),H.dispatch("SetupEditor",{editor:this});const yn=Ib(oe);A(yn)&&yn.call(oe,oe)}render(){rde(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return nx(this)}translate(g){return ff.translate(g)}getParam(g,B,H){const oe=this.options;return oe.isRegistered(g)||(P(H)?oe.register(g,{processor:H,default:B}):oe.register(g,{processor:q,default:B})),!oe.isSet(g)&&!M(B)?B:oe.get(g)}hasPlugin(g,B){return ce(bv(this),g)?B?mS.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,oe){this.shortcuts.add(g,B,H,oe)}execCommand(g,B,H,oe){return this.editorCommands.execCommand(g,B,H,oe)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(vO.show(g.getContainer()),vO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(vO.hide(g.getContainer()),vO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const oe={...g,load:!0},be=Rt(H)?H.value:H.innerHTML,Le=B.setContent(be,oe);return oe.no_events||B.dispatch("LoadContent",{...oe,element:H}),Le}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const oe={...g,save:!0,element:H};let be=B.getContent(oe);const Le={...oe,content:be};if(Le.no_events||B.dispatch("SaveContent",Le),Le.format==="raw"&&B.dispatch("RawSaveContent",Le),be=Le.content,Rt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=vO.getParent(B.id,"form");Ke&&Voe(Ke.elements,ut=>ut.name===B.id?(ut.value=be,!1):!0)}return Le.element=oe.element=H=null,Le.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return hS(this,g,B)}getContent(g){return tF(this,g)}insertContent(g,B){B&&(g=Gj({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?hS(this,this.startContent,{format:"raw"}):hS(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||vO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=vO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const oe=this,be=oe.options.get,Le=Ph(oe);if(A(Le))return Le.call(oe,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new cp(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?oe.documentBaseURI.toRelative(g):(g=oe.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){ide(this,g)}setEditableRoot(g){zre(this,g)}hasEditableRoot(){return eL(this)}remove(){sG(this)}destroy(g){lG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const US=cc.DOM,v8=To.each;let vL=!1,y8,wm=[];const b8=r=>{const g=r.type;v8(l_.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},Kj=r=>{if(r!==vL){const g=cc.DOM;r?(g.bind(window,"resize",b8),g.bind(window,"scroll",b8)):(g.unbind(window,"resize",b8),g.unbind(window,"scroll",b8)),vL=r}},Jj=r=>{const g=wm;return wm=Te(wm,B=>r!==B),l_.activeEditor===r&&(l_.activeEditor=wm.length>0?wm[0]:null),l_.focusedEditor===r&&(l_.focusedEditor=null),g.length!==wm.length},Uoe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(Jj(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},joe=document.compatMode!=="CSS1Compat",l_={...fL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"3.0",releaseDate:"2024-08-07",i18n:ff,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=cp.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const oe=window.tinymce||window.tinyMCEPreInit;if(oe)g=oe.base||oe.baseURL,B=oe.suffix;else{const be=document.getElementsByTagName("script");for(let Le=0;Le{fh.PluginManager.urls[be]=oe})},init(r){const g=this;let B;const H=To.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),oe=(nn,un)=>nn.inline&&un.tagName.toLowerCase()in H,be=nn=>{let un=nn.id;return un||(un=Et(nn,"name").filter(yn=>!US.get(yn)).getOrThunk(US.uniqueId),nn.setAttribute("id",un)),un},Le=nn=>{const un=r[nn];if(un)return un.apply(g,[])},Ke=nn=>Nr.browser.isIE()||Nr.browser.isEdge()?(k7("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):joe?(k7("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(nn.selector)?US.select(nn.selector):P(nn.target)?[nn.target]:[];let ut=nn=>{B=nn};const At=()=>{let nn=0;const un=[];let yn;const Qn=(rr,Wn,ur)=>{const Tr=new g8(rr,Wn,g);un.push(Tr),Tr.on("init",()=>{++nn===yn.length&&ut(un)}),Tr.targetElm=Tr.targetElm||ur,Tr.render()};US.unbind(window,"ready",At),Le("onpageload"),yn=je(Ke(r)),To.each(yn,rr=>{Uoe(g.get(rr.id))}),yn=To.grep(yn,rr=>!g.get(rr.id)),yn.length===0?ut([]):v8(yn,rr=>{oe(r,rr)?k7("Could not initialize inline editor on invalid inline target element",rr):Qn(be(rr),r,rr)})};return US.bind(window,"ready",At),new Promise(nn=>{B?nn(B):ut=un=>{nn(un)}})},get(r){return arguments.length===0?wm.slice(0):v(r)?De(wm,g=>g.id===r).getOr(null):L(r)&&wm[r]?wm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&wm.push(r),Kj(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),y8||(y8=H=>{const oe=g.dispatch("BeforeUnload");if(oe.returnValue)return H.preventDefault(),H.returnValue=oe.returnValue,oe.returnValue},window.addEventListener("beforeunload",y8))),r},createEditor(r,g){return this.add(new g8(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=wm.length-1;H>=0;H--)g.remove(wm[H]);return}if(v(r)){v8(US.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(Jj(B)&&g.dispatch("RemoveEditor",{editor:B}),wm.length===0&&window.removeEventListener("beforeunload",y8),B.remove(),Kj(wm.length>0),B)},execCommand(r,g,B){var H;const oe=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!oe.get(be)){const Le=B.options;new g8(be,Le,oe).render()}return!0}case"mceRemoveEditor":{const Le=oe.get(be);return Le&&Le.remove(),!0}case"mceToggleEditor":{const Le=oe.get(be);return Le?(Le.isHidden()?Le.show():Le.hide(),!0):(oe.execCommand("mceAddEditor",!1,B),!0)}}return oe.activeEditor?oe.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{v8(wm,r=>{r.save()})},addI18n:(r,g)=>{ff.add(r,g)},translate:r=>ff.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new cp(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new cp(this.baseURL)}};l_.setup();const dde=(()=>{const r=Ts(),g=be=>({items:be,types:tt(be),getType:Le=>Et(be,Le).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),oe=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:oe}})(),yL=Math.min,jS=Math.max,mT=Math.round,eQ=(r,g,B)=>{let H=g.x,oe=g.y;const be=r.w,Le=r.h,Ke=g.w,ut=g.h,At=(B||"").split("");return At[0]==="b"&&(oe+=ut),At[1]==="r"&&(H+=Ke),At[0]==="c"&&(oe+=mT(ut/2)),At[1]==="c"&&(H+=mT(Ke/2)),At[3]==="b"&&(oe-=Le),At[4]==="r"&&(H-=be),At[3]==="c"&&(oe-=mT(Le/2)),At[4]==="c"&&(H-=mT(be/2)),QS(H,oe,be,Le)},Hoe=(r,g,B,H)=>{for(let oe=0;oe=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[oe]}return null},Zoe=(r,g,B)=>QS(r.x-g,r.y-B,r.w+g*2,r.h+B*2),qoe=(r,g)=>{const B=jS(r.x,g.x),H=jS(r.y,g.y),oe=yL(r.x+r.w,g.x+g.w),be=yL(r.y+r.h,g.y+g.h);return oe-B<0||be-H<0?null:QS(B,H,oe-B,be-H)},Woe=(r,g,B)=>{let H=r.x,oe=r.y,be=r.x+r.w,Le=r.y+r.h;const Ke=g.x+g.w,ut=g.y+g.h,At=jS(0,g.x-H),nn=jS(0,g.y-oe),un=jS(0,be-Ke),yn=jS(0,Le-ut);return H+=At,oe+=nn,B&&(be+=At,Le+=nn,H-=un,oe-=yn),be-=un,Le-=yn,QS(H,oe,be-H,Le-oe)},QS=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),bL={inflate:Zoe,relativePosition:eQ,findBestRelativePosition:Hoe,intersect:qoe,clamp:Woe,create:QS,fromClientRect:r=>QS(r.left,r.top,r.width,r.height)},Yoe=(r,g,B=1e3)=>{let H=!1,oe=null;const be=At=>(...nn)=>{H||(H=!0,oe!==null&&(clearTimeout(oe),oe=null),At.apply(null,nn))},Le=be(r),Ke=be(g);return{start:(...At)=>{!H&&oe===null&&(oe=setTimeout(()=>Ke.apply(null,At),B))},resolve:Le,reject:Ke}},Goe=(()=>{const r={},g={},B={};return{load:(ut,At)=>{const nn=`Script at URL "${At}" failed to load`,un=`Script at URL "${At}" did not call \`tinymce.Resource.add('${ut}', data)\` within 1 second`;if(r[ut]!==void 0)return r[ut];{const yn=new Promise((Qn,rr)=>{const Wn=Yoe(Qn,rr);g[ut]=Wn.resolve,Fm.ScriptLoader.loadScript(At).then(()=>Wn.start(un),()=>Wn.reject(nn))});return r[ut]=yn,yn}},add:(ut,At)=>{g[ut]!==void 0&&(g[ut](At),delete g[ut]),r[ut]=Promise.resolve(At),B[ut]=At},has:ut=>ut in B,get:ut=>B[ut],unload:ut=>{delete r[ut],delete B[ut]}}})(),Koe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const oe=r[H];return oe||null},setItem:(H,oe)=>{g.push(H),r[H]=String(oe)},key:H=>g[H],removeItem:H=>{g=g.filter(oe=>oe===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let gT;try{const r="__storage_test__";gT=window.localStorage,gT.setItem(r,r),gT.removeItem(r)}catch{gT=Koe()}var Joe=gT;const eie={geom:{Rect:bL},util:{Delay:Ig,Tools:To,VK:Jo,URI:cp,EventDispatcher:uL,Observable:fL,I18n:ff,LocalStorage:Joe,ImageUploader:Ny},dom:{EventUtils:wg,TreeWalker:Xl,TextSeeker:Cg,DOMUtils:cc,ScriptLoader:Fm,RangeUtils:oi,Serializer:Ih,StyleSheetLoader:Uh,ControlSelection:Iw,BookmarkManager:Pg,Selection:QX,Event:wg.Event},html:{Styles:U_,Entities:Lm,Node:Hp,Schema:zm,DomParser:fS,Writer:AE,Serializer:rx},Env:Nr,AddOnManager:fh,Annotator:B3,Formatter:Dv,UndoManager:bS,EditorCommands:fd,WindowManager:lF,NotificationManager:sF,EditorObservable:Zj,Shortcuts:gL,Editor:g8,FocusManager:$D,EditorManager:l_,DOM:cc.DOM,ScriptLoader:Fm.ScriptLoader,PluginManager:mS,ThemeManager:Q2,ModelManager:pS,IconManager:lA,Resource:Goe,FakeClipboard:dde,trim:To.trim,isArray:To.isArray,is:To.is,toArray:To.toArray,makeMap:To.makeMap,each:To.each,map:To.map,grep:To.grep,inArray:To.inArray,extend:To.extend,walk:To.walk,resolve:To.resolve,explode:To.explode,_addCacheSuffix:To._addCacheSuffix},nQ=To.extend(l_,eie),tie=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(nQ),tie(nQ)})()})(V$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(he,Ce,Xe)=>{var lt;return Xe(he,Ce.prototype)?!0:((lt=he.constructor)===null||lt===void 0?void 0:lt.name)===Ce.name},o=he=>{const Ce=typeof he;return he===null?"null":Ce==="object"&&Array.isArray(he)?"array":Ce==="object"&&e(he,String,(Xe,lt)=>lt.isPrototypeOf(Xe))?"string":Ce},f=he=>Ce=>o(Ce)===he,E=he=>Ce=>typeof Ce===he,d=he=>Ce=>he===Ce,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=d(void 0),w=he=>he==null,y=he=>!w(he),m=E("function"),a=E("number"),c=()=>{},h=(he,Ce)=>(...Xe)=>he(Ce.apply(null,Xe)),p=(he,Ce)=>Xe=>he(Ce(Xe)),v=he=>()=>he,_=he=>he,O=(he,Ce)=>he===Ce;function C(he,...Ce){return(...Xe)=>{const lt=Ce.concat(Xe);return he.apply(null,lt)}}const x=he=>Ce=>!he(Ce),R=he=>()=>{throw new Error(he)},M=he=>he(),T=v(!1),P=v(!0);class A{constructor(Ce,Xe){this.tag=Ce,this.value=Xe}static some(Ce){return new A(!0,Ce)}static none(){return A.singletonNone}fold(Ce,Xe){return this.tag?Xe(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?A.some(Ce(this.value)):A.none()}bind(Ce){return this.tag?Ce(this.value):A.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:A.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?A.some(Ce):A.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}A.singletonNone=new A(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(he,Ce)=>D.call(he,Ce),z=(he,Ce)=>I(he,Ce)>-1,$=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Xe=[];for(let lt=0;lt{const Xe=he.length,lt=new Array(Xe);for(let Ct=0;Ct{for(let Xe=0,lt=he.length;Xe{for(let Xe=he.length-1;Xe>=0;Xe--){const lt=he[Xe];Ce(lt,Xe)}},te=(he,Ce)=>{const Xe=[],lt=[];for(let Ct=0,Wt=he.length;Ct{const Xe=[];for(let lt=0,Ct=he.length;lt(X(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),re=(he,Ce,Xe)=>(U(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),q=(he,Ce,Xe)=>{for(let lt=0,Ct=he.length;ltq(he,Ce,T),ee=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=[];for(let Xe=0,lt=he.length;Xeme(j(he,Ce)),se=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=L.call(he,0);return Ce.reverse(),Ce},ce=(he,Ce)=>{const Xe={};for(let lt=0,Ct=he.length;lt{const Xe=L.call(he,0);return Xe.sort(Ce),Xe},ye=(he,Ce)=>Ce>=0&&Ceye(he,0),_e=he=>ye(he,he.length-1),we=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Te(he);for(let lt=0,Ct=Xe.length;ltDe(he,(Xe,lt)=>({k:lt,v:Ce(Xe,lt)})),De=(he,Ce)=>{const Xe={};return Ie(he,(lt,Ct)=>{const Wt=Ce(lt,Ct);Xe[Wt.k]=Wt.v}),Xe},Qe=he=>(Ce,Xe)=>{he[Xe]=Ce},Ve=(he,Ce,Xe,lt)=>{Ie(he,(Ct,Wt)=>{(Ce(Ct,Wt)?Xe:lt)(Ct,Wt)})},$e=(he,Ce)=>{const Xe={};return Ve(he,Ce,Qe(Xe),c),Xe},Oe=(he,Ce)=>{const Xe=[];return Ie(he,(lt,Ct)=>{Xe.push(Ce(lt,Ct))}),Xe},ke=he=>Oe(he,_),Re=(he,Ce)=>We(he,Ce)?A.from(he[Ce]):A.none(),We=(he,Ce)=>Pe.call(he,Ce),Ue=(he,Ce)=>We(he,Ce)&&he[Ce]!==void 0&&he[Ce]!==null,Ze=he=>{for(const Ce in he)if(Pe.call(he,Ce))return!1;return!0},Ye=typeof window<"u"?window:Function("return this;")(),Je=(he,Ce)=>{let Xe=Ce??Ye;for(let lt=0;lt{const Xe=he.split(".");return Je(Xe,Ce)},Fe=(he,Ce)=>Me(he,Ce),je=(he,Ce)=>{const Xe=Fe(he,Ce);if(Xe==null)throw new Error(he+" not available on this browser");return Xe},tt=Object.getPrototypeOf,ot=he=>je("HTMLElement",he),Ge=he=>{const Ce=Me("ownerDocument.defaultView",he);return n(he)&&(ot(Ce).prototype.isPrototypeOf(he)||/^HTML\w*Element$/.test(tt(he).constructor.name))},ht=8,pt=9,St=11,Ft=1,zt=3,Yt=he=>he.dom.nodeName.toLowerCase(),ln=he=>he.dom.nodeType,tn=he=>Ce=>ln(Ce)===he,Et=he=>ln(he)===ht||Yt(he)==="#comment",Ot=he=>cn(he)&&Ge(he.dom),cn=tn(Ft),Cn=tn(zt),Pn=tn(pt),Sn=tn(St),vt=he=>Ce=>cn(Ce)&&Yt(Ce)===he,xt=(he,Ce,Xe)=>{if(s(Xe)||i(Xe)||a(Xe))he.setAttribute(Ce,Xe+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Xe,":: Element ",he),new Error("Attribute value was not simple")},st=(he,Ce,Xe)=>{xt(he.dom,Ce,Xe)},bt=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{xt(Xe,Ct,lt)})},Vt=(he,Ce)=>{Ie(Ce,(Xe,lt)=>{Xe.fold(()=>{at(he,lt)},Ct=>{xt(he.dom,lt,Ct)})})},Dt=(he,Ce)=>{const Xe=he.dom.getAttribute(Ce);return Xe===null?void 0:Xe},it=(he,Ce)=>A.from(Dt(he,Ce)),at=(he,Ce)=>{he.dom.removeAttribute(Ce)},Bt=he=>re(he.dom.attributes,(Ce,Xe)=>(Ce[Xe.name]=Xe.value,Ce),{}),_t=(he,Ce)=>{const lt=(Ce||document).createElement("div");if(lt.innerHTML=he,!lt.hasChildNodes()||lt.childNodes.length>1){const Ct="HTML does not have a single root node";throw console.error(Ct,he),new Error(Ct)}return Jt(lt.childNodes[0])},qt=(he,Ce)=>{const lt=(Ce||document).createElement(he);return Jt(lt)},en=(he,Ce)=>{const lt=(Ce||document).createTextNode(he);return Jt(lt)},Jt=he=>{if(he==null)throw new Error("Node cannot be null or undefined");return{dom:he}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(he,Ce,Xe)=>A.from(he.dom.elementFromPoint(Ce,Xe)).map(Jt)},sn=(he,Ce)=>{const Xe=he.dom;if(Xe.nodeType!==Ft)return!1;{const lt=Xe;if(lt.matches!==void 0)return lt.matches(Ce);if(lt.msMatchesSelector!==void 0)return lt.msMatchesSelector(Ce);if(lt.webkitMatchesSelector!==void 0)return lt.webkitMatchesSelector(Ce);if(lt.mozMatchesSelector!==void 0)return lt.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},rn=he=>he.nodeType!==Ft&&he.nodeType!==pt&&he.nodeType!==St||he.childElementCount===0,_n=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?[]:j(Xe.querySelectorAll(he),Nt.fromDom)},wn=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?A.none():A.from(Xe.querySelector(he)).map(Nt.fromDom)},An=(he,Ce)=>he.dom===Ce.dom,Kn=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;return Xe===lt?!1:Xe.contains(lt)},fr=sn,Un=he=>Nt.fromDom(he.dom.ownerDocument),Zn=he=>Pn(he)?he:Un(he),tr=he=>Nt.fromDom(Zn(he).dom.documentElement),Br=he=>Nt.fromDom(Zn(he).dom.defaultView),$r=he=>A.from(he.dom.parentNode).map(Nt.fromDom),vr=he=>A.from(he.dom.parentElement).map(Nt.fromDom),qn=(he,Ce)=>{const Xe=m(Ce)?Ce:T;let lt=he.dom;const Ct=[];for(;lt.parentNode!==null&<.parentNode!==void 0;){const Wt=lt.parentNode,kn=Nt.fromDom(Wt);if(Ct.push(kn),Xe(kn)===!0)break;lt=Wt}return Ct},gr=he=>A.from(he.dom.previousSibling).map(Nt.fromDom),sr=he=>A.from(he.dom.nextSibling).map(Nt.fromDom),lr=he=>j(he.dom.childNodes,Nt.fromDom),zr=(he,Ce)=>{const Xe=he.dom.childNodes;return A.from(Xe[Ce]).map(Nt.fromDom)},Vr=he=>zr(he,0),eo=(he,Ce)=>{$r(he).each(lt=>{lt.dom.insertBefore(Ce.dom,he.dom)})},Jr=(he,Ce)=>{sr(he).fold(()=>{$r(he).each(Ct=>{to(Ct,Ce)})},lt=>{eo(lt,Ce)})},Yr=(he,Ce)=>{Vr(he).fold(()=>{to(he,Ce)},lt=>{he.dom.insertBefore(Ce.dom,lt.dom)})},to=(he,Ce)=>{he.dom.appendChild(Ce.dom)},co=(he,Ce,Xe)=>{zr(he,Xe).fold(()=>{to(he,Ce)},lt=>{eo(lt,Ce)})},Fo=(he,Ce)=>{eo(he,Ce),to(Ce,he)},_o=(he,Ce)=>{U(Ce,(Xe,lt)=>{const Ct=lt===0?he:Ce[lt-1];Jr(Ct,Xe)})},$o=(he,Ce)=>{U(Ce,Xe=>{to(he,Xe)})},Mo=he=>{he.dom.textContent="",U(lr(he),Ce=>{pi(Ce)})},pi=he=>{const Ce=he.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Hn=he=>{const Ce=lr(he);Ce.length>0&&_o(he,Ce),pi(he)},ar=(he,Ce)=>Nt.fromDom(he.dom.cloneNode(Ce)),Dr=he=>ar(he,!1),Sr=he=>ar(he,!0),Zr=(he,Ce)=>{const Xe=Nt.fromTag(Ce),lt=Bt(he);return bt(Xe,lt),Xe},go=(he,Ce)=>{const Xe=Zr(he,Ce),lt=lr(Sr(he));return $o(Xe,lt),Xe},oo=(he,Ce)=>{const Xe=Zr(he,Ce);Jr(he,Xe);const lt=lr(he);return $o(Xe,lt),pi(he),Xe},io=["tfoot","thead","tbody","colgroup"],Do=he=>z(io,he),jn=(he,Ce)=>({rows:he,columns:Ce}),Rr=(he,Ce)=>({row:he,column:Ce}),On=(he,Ce,Xe)=>({element:he,rowspan:Ce,colspan:Xe}),Yn=(he,Ce,Xe,lt)=>({element:he,rowspan:Ce,colspan:Xe,isNew:lt}),ir=(he,Ce,Xe,lt,Ct,Wt)=>({element:he,rowspan:Ce,colspan:Xe,row:lt,column:Ct,isLocked:Wt}),kr=(he,Ce,Xe)=>({element:he,cells:Ce,section:Xe}),Er=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),Gt=(he,Ce,Xe)=>({element:he,isNew:Ce,isLocked:Xe}),on=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),an=(he,Ce,Xe,lt)=>({startRow:he,startCol:Ce,finishRow:Xe,finishCol:lt}),Tn=(he,Ce,Xe)=>({element:he,colspan:Ce,column:Xe}),zn=(he,Ce)=>({element:he,columns:Ce}),Gn=he=>Sn(he)&&y(he.dom.host),Lr=he=>Nt.fromDom(he.dom.getRootNode()),Ur=he=>{const Ce=Lr(he);return Gn(Ce)?A.some(Ce):A.none()},qr=he=>Nt.fromDom(he.dom.host),Cr=he=>{if(y(he.target)){const Ce=Nt.fromDom(he.target);if(cn(Ce)&&wo(Ce)&&he.composed&&he.composedPath){const Xe=he.composedPath();if(Xe)return ve(Xe)}}return A.from(he.target)},wo=he=>y(he.dom.shadowRoot),Nr=he=>{const Ce=Cn(he)?he.dom.parentNode:he.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Xe=Ce.ownerDocument;return Ur(Nt.fromDom(Ce)).fold(()=>Xe.body.contains(Ce),p(Nr,qr))},Eo=()=>zo(Nt.fromDom(document)),zo=he=>{const Ce=he.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Nt.fromDom(Ce)},Qt=(he,Ce,Xe)=>Z(qn(he,Xe),Ce),Mn=(he,Ce)=>Z(lr(he),Ce),Fn=(he,Ce)=>{let Xe=[];return U(lr(he),lt=>{Ce(lt)&&(Xe=Xe.concat([lt])),Xe=Xe.concat(Fn(lt,Ce))}),Xe},dr=(he,Ce,Xe)=>Qt(he,lt=>sn(lt,Ce),Xe),xr=(he,Ce)=>Mn(he,Xe=>sn(Xe,Ce)),Oo=(he,Ce)=>_n(Ce,he);var mi=(he,Ce,Xe,lt,Ct)=>he(Xe,lt)?A.some(Xe):m(Ct)&&Ct(Xe)?A.none():Ce(Xe,lt,Ct);const Di=(he,Ce,Xe)=>{let lt=he.dom;const Ct=m(Xe)?Xe:T;for(;lt.parentNode;){lt=lt.parentNode;const Wt=Nt.fromDom(lt);if(Ce(Wt))return A.some(Wt);if(Ct(Wt))break}return A.none()},To=(he,Ce,Xe)=>mi((Ct,Wt)=>Wt(Ct),Di,he,Ce,Xe),Ia=(he,Ce)=>{const Xe=Ct=>Ce(Nt.fromDom(Ct));return Y(he.dom.childNodes,Xe).map(Nt.fromDom)},Ds=(he,Ce)=>{const Xe=lt=>{for(let Ct=0;CtDi(he,lt=>sn(lt,Ce),Xe),zi=(he,Ce)=>Ia(he,Xe=>sn(Xe,Ce)),yl=(he,Ce)=>wn(Ce,he),Bs=(he,Ce,Xe)=>mi((Ct,Wt)=>sn(Ct,Wt),fs,he,Ce,Xe),yf=(he,Ce,Xe=O)=>he.exists(lt=>Xe(lt,Ce)),il=he=>{const Ce=[],Xe=lt=>{Ce.push(lt)};for(let lt=0;lthe!=null?Ce(he):A.none(),nh=(he,Ce)=>he?A.some(Ce):A.none(),gp=(he,Ce)=>he.substring(Ce),Qs=(he,Ce,Xe)=>Ce===""||he.length>=Ce.length&&he.substr(Xe,Xe+Ce.length)===Ce,xh=(he,Ce)=>Tc(he,Ce)?gp(he,Ce.length):he,Bl=(he,Ce,Xe=0,lt)=>{const Ct=he.indexOf(Ce,Xe);return Ct!==-1?S(lt)?!0:Ct+Ce.length<=lt:!1},Tc=(he,Ce)=>Qs(he,Ce,0),iu=(he,Ce)=>Qs(he,Ce,he.length-Ce.length),zf=(he=>Ce=>Ce.replace(he,""))(/^\s+|\s+$/g),_s=he=>he.length>0,ma=he=>{const Ce=parseFloat(he);return isNaN(Ce)?A.none():A.some(Ce)},mu=he=>he.style!==void 0&&m(he.style.getPropertyValue),Uc=(he,Ce,Xe)=>{if(!s(Xe))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Xe,":: Element ",he),new Error("CSS value must be a string: "+Xe);mu(he)&&he.style.setProperty(Ce,Xe)},Kf=(he,Ce)=>{mu(he)&&he.style.removeProperty(Ce)},Al=(he,Ce,Xe)=>{const lt=he.dom;Uc(lt,Ce,Xe)},Wl=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{Uc(Xe,Ct,lt)})},Ml=(he,Ce)=>{const Xe=he.dom,Ct=window.getComputedStyle(Xe).getPropertyValue(Ce);return Ct===""&&!Nr(he)?Jf(Xe,Ce):Ct},Jf=(he,Ce)=>mu(he)?he.style.getPropertyValue(Ce):"",Nf=(he,Ce)=>{const Xe=he.dom,lt=Jf(Xe,Ce);return A.from(lt).filter(Ct=>Ct.length>0)},Jl=(he,Ce)=>{const Xe=he.dom;Kf(Xe,Ce),yf(it(he,"style").map(zf),"")&&at(he,"style")},Gh=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;mu(Xe)&&mu(lt)&&(lt.style.cssText=Xe.style.cssText)},ll=(he,Ce,Xe=0)=>it(he,Ce).map(lt=>parseInt(lt,10)).getOr(Xe),Tu=(he,Ce)=>ll(he,Ce,1),gu=he=>vt("col")(he)?ll(he,"span",1)>1:Tu(he,"colspan")>1,ec=he=>Tu(he,"rowspan")>1,Dc=(he,Ce)=>parseInt(Ml(he,Ce),10),tc=v(10),Lp=v(10),rh=(he,Ce)=>rf(he,Ce,P),rf=(he,Ce,Xe)=>pe(lr(he),lt=>sn(lt,Ce)?Xe(lt)?[lt]:[]:rf(lt,Ce,Xe)),of=(he,Ce,Xe=T)=>{if(Xe(Ce))return A.none();if(z(he,Yt(Ce)))return A.some(Ce);const lt=Ct=>sn(Ct,"table")||Xe(Ct);return fs(Ce,he.join(","),lt)},bf=(he,Ce)=>of(["td","th"],he,Ce),vu=he=>rh(he,"th,td"),$d=he=>sn(he,"colgroup")?xr(he,"col"):pe(Kh(he),Ce=>xr(Ce,"col")),bl=(he,Ce)=>Bs(he,"table",Ce),Zu=he=>rh(he,"tr"),Kh=he=>bl(he).fold(v([]),Ce=>xr(Ce,"colgroup")),Cu=(he,Ce)=>j(he,Xe=>{if(Yt(Xe)==="colgroup"){const lt=j($d(Xe),Ct=>{const Wt=ll(Ct,"span",1);return On(Ct,1,Wt)});return kr(Xe,lt,"colgroup")}else{const lt=j(vu(Xe),Ct=>{const Wt=ll(Ct,"rowspan",1),kn=ll(Ct,"colspan",1);return On(Ct,Wt,kn)});return kr(Xe,lt,Ce(Xe))}}),ed=he=>$r(he).map(Ce=>{const Xe=Yt(Ce);return Do(Xe)?Xe:"tbody"}).getOr("tbody"),Bu=he=>{const Ce=Zu(he),lt=[...Kh(he),...Ce];return Cu(lt,ed)},vd=(he,Ce)=>Cu(he,()=>Ce),cs=he=>{let Ce=!1,Xe;return(...lt)=>(Ce||(Ce=!0,Xe=he.apply(null,lt)),Xe)},oh=(he,Ce,Xe,lt)=>{const Ct=he.isiOS()&&/ipad/i.test(Xe)===!0,Wt=he.isiOS()&&!Ct,kn=he.isiOS()||he.isAndroid(),Vn=kn||lt("(pointer:coarse)"),or=Ct||!Wt&&kn&<("(min-device-width:768px)"),Mr=Wt||kn&&!or,no=Ce.isSafari()&&he.isiOS()&&/safari/i.test(Xe)===!1,ti=!Mr&&!or&&!no;return{isiPad:v(Ct),isiPhone:v(Wt),isTablet:v(or),isPhone:v(Mr),isTouch:v(Vn),isAndroid:he.isAndroid,isiOS:he.isiOS,isWebView:v(no),isDesktop:v(ti)}},Jh=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Jh(he,Ce);if(!Xe)return{major:0,minor:0};const lt=Ct=>Number(Ce.replace(Xe,"$"+Ct));return _r(lt(1),lt(2))},xf=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return he.length===0?ep():_h(he,Xe)},ep=()=>_r(0,0),_r=(he,Ce)=>({major:he,minor:Ce}),Ff={nu:_r,detect:xf,unknown:ep},yd=(he,Ce)=>we(Ce.brands,Xe=>{const lt=Xe.brand.toLowerCase();return Y(he,Ct=>{var Wt;return lt===((Wt=Ct.brand)===null||Wt===void 0?void 0:Wt.toLowerCase())}).map(Ct=>({current:Ct.name,version:Ff.nu(parseInt(Xe.version,10),0)}))}),bd=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return Y(he,lt=>lt.search(Xe))},wh=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),zu=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),va=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,El=he=>Ce=>Bl(Ce,he),_f=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:he=>Bl(he,"edge/")&&Bl(he,"chrome")&&Bl(he,"safari")&&Bl(he,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,va],search:he=>Bl(he,"chrome")&&!Bl(he,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:he=>Bl(he,"msie")||Bl(he,"trident")},{name:"Opera",versionRegexes:[va,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:El("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:El("firefox")},{name:"Safari",versionRegexes:[va,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:he=>(Bl(he,"safari")||Bl(he,"mobile/"))&&Bl(he,"applewebkit")}],$f=[{name:"Windows",search:El("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:he=>Bl(he,"iphone")||Bl(he,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:El("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:El("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:El("linux"),versionRegexes:[]},{name:"Solaris",search:El("sunos"),versionRegexes:[]},{name:"FreeBSD",search:El("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:El("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ih={browsers:v(_f),oses:v($f)},yu="Edge",jc="Chromium",Nh="IE",af="Opera",td="Firefox",sf="Safari",Bc=()=>Vd({current:void 0,version:Ff.unknown()}),Vd=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isEdge:lt(yu),isChromium:lt(jc),isIE:lt(Nh),isOpera:lt(af),isFirefox:lt(td),isSafari:lt(sf)}},xd={unknown:Bc,nu:Vd,edge:v(yu),chromium:v(jc),ie:v(Nh),opera:v(af),firefox:v(td),safari:v(sf)},vc="Windows",gs="iOS",yc="Android",Cc="Linux",Nu="macOS",Gs="Solaris",Ks="FreeBSD",Ac="ChromeOS",_d=()=>Fh({current:void 0,version:Ff.unknown()}),Fh=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isWindows:lt(vc),isiOS:lt(gs),isAndroid:lt(yc),isMacOS:lt(Nu),isLinux:lt(Cc),isSolaris:lt(Gs),isFreeBSD:lt(Ks),isChromeOS:lt(Ac)}},$h={unknown:_d,nu:Fh,windows:v(vc),ios:v(gs),android:v(yc),linux:v(Cc),macos:v(Nu),solaris:v(Gs),freebsd:v(Ks),chromeos:v(Ac)},ah={detect:(he,Ce,Xe)=>{const lt=ih.browsers(),Ct=ih.oses(),Wt=Ce.bind(or=>yd(lt,or)).orThunk(()=>wh(lt,he)).fold(xd.unknown,xd.nu),kn=zu(Ct,he).fold($h.unknown,$h.nu),Vn=oh(kn,Wt,he,Xe);return{browser:Wt,os:kn,deviceType:Vn}}},Au=he=>window.matchMedia(he).matches;let lf=cs(()=>ah.detect(window.navigator.userAgent,A.from(window.navigator.userAgentData),Au));const wf=()=>lf(),vs=(he,Ce)=>{const Xe=(Vn,or)=>{if(!a(or)&&!or.match(/^[0-9]+$/))throw new Error(he+".set accepts only positive integer values. Value was "+or);const Mr=Vn.dom;mu(Mr)&&(Mr.style[he]=or+"px")},lt=Vn=>{const or=Ce(Vn);if(or<=0||or===null){const Mr=Ml(Vn,he);return parseFloat(Mr)||0}return or},Ct=lt,Wt=(Vn,or)=>re(or,(Mr,no)=>{const ti=Ml(Vn,no),ki=ti===void 0?0:parseInt(ti,10);return isNaN(ki)?Mr:Mr+ki},0);return{set:Xe,get:lt,getOuter:Ct,aggregate:Wt,max:(Vn,or,Mr)=>{const no=Wt(Vn,Mr);return or>no?or-no:0}}},cl=(he,Ce)=>ma(he).getOr(Ce),bc=(he,Ce,Xe)=>cl(Ml(he,Ce),Xe),nc=(he,Ce,Xe,lt)=>{const Ct=bc(he,`padding-${Xe}`,0),Wt=bc(he,`padding-${lt}`,0),kn=bc(he,`border-${Xe}-width`,0),Vn=bc(he,`border-${lt}-width`,0);return Ce-Ct-Wt-kn-Vn},Qc=(he,Ce)=>{const Xe=he.dom,lt=Xe.getBoundingClientRect().width||Xe.offsetWidth;return Ce==="border-box"?lt:nc(he,lt,"left","right")},ts=he=>bc(he,"height",he.dom.offsetHeight),wi=he=>bc(he,"width",he.dom.offsetWidth),bu=he=>Qc(he,"content-box"),wd=vs("width",he=>he.dom.offsetWidth),Ol=he=>wd.get(he),ds=he=>wd.getOuter(he),zc=bu,Ud=wi,cf=(he,Ce,Xe)=>{const lt=he.cells,Ct=lt.slice(0,Ce),Wt=lt.slice(Ce),kn=Ct.concat(Xe).concat(Wt);return rs(he,kn)},Of=(he,Ce,Xe)=>cf(he,Ce,[Xe]),aa=(he,Ce,Xe)=>{const lt=he.cells;lt[Ce]=Xe},rs=(he,Ce)=>on(he.element,Ce,he.section,he.isNew),Mu=(he,Ce)=>{const Xe=he.cells,lt=j(Xe,Ce);return on(he.element,lt,he.section,he.isNew)},Ri=(he,Ce)=>he.cells[Ce],Gc=(he,Ce)=>Ri(he,Ce).element,qu=he=>he.cells.length,zl=he=>{const Ce=te(he,Xe=>Xe.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},xc=(he,Ce,Xe)=>{const lt=j(he.cells,Xe);return on(Ce(he.element),lt,he.section,!0)},Kc="data-snooker-locked-cols",jd=he=>it(he,Kc).bind(Ce=>A.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,P)),ii=he=>{const Ce=re(zl(he).rows,(lt,Ct)=>(U(Ct.cells,(Wt,kn)=>{Wt.isLocked&&(lt[kn]=!0)}),lt),{}),Xe=Oe(Ce,(lt,Ct)=>parseInt(Ct,10));return de(Xe)},nd=(he,Ce)=>he+","+Ce,al=(he,Ce,Xe)=>A.from(he.access[nd(Ce,Xe)]),Yl=(he,Ce,Xe)=>{const lt=uf(he,Ct=>Xe(Ce,Ct.element));return lt.length>0?A.some(lt[0]):A.none()},uf=(he,Ce)=>{const Xe=pe(he.all,lt=>lt.cells);return Z(Xe,Ce)},hs=he=>{const Ce={};let Xe=0;return U(he.cells,lt=>{const Ct=lt.colspan;Q(Ct,Wt=>{const kn=Xe+Wt;Ce[kn]=Tn(lt.element,Ct,kn)}),Xe+=Ct}),Ce},Mc=he=>{const Ce={},Xe=[],Ct=ve(he).map(xi=>xi.element).bind(bl).bind(jd).getOr({});let Wt=0,kn=0,Vn=0;const{pass:or,fail:Mr}=te(he,xi=>xi.section==="colgroup");U(Mr,xi=>{const fi=[];U(xi.cells,Vi=>{let Xo=0;for(;Ce[nd(Vn,Xo)]!==void 0;)Xo++;const oi=Ue(Ct,Xo.toString()),wa=ir(Vi.element,Vi.rowspan,Vi.colspan,Vn,Xo,oi);for(let Pa=0;Pa{const fi=hs(xi);return{colgroups:[zn(xi.element,ke(fi))],columns:fi}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:jn(Wt,kn),access:Ce,all:Xe,columns:no,colgroups:ti}},Ca={fromTable:he=>{const Ce=Bu(he);return Mc(Ce)},generate:Mc,getAt:al,findItem:Yl,filterItems:uf,justCells:he=>pe(he.all,Ce=>Ce.cells),justColumns:he=>ke(he.columns),hasColumns:he=>Te(he.columns).length>0,getColumnAt:(he,Ce)=>A.from(he.columns[Ce])},Ls=(he,Ce=P)=>{const Xe=he.grid,lt=Q(Xe.columns,_),Ct=Q(Xe.rows,_);return j(lt,Wt=>Ec(()=>pe(Ct,Mr=>Ca.getAt(he,Mr,Wt).filter(no=>no.column===Wt).toArray()),Mr=>Mr.colspan===1&&Ce(Mr.element),()=>Ca.getAt(he,0,Wt)))},Ec=(he,Ce,Xe)=>{const lt=he();return Y(lt,Ce).orThunk(()=>A.from(lt[0]).orThunk(Xe)).map(kn=>kn.element)},_u=he=>{const Ce=he.grid,Xe=Q(Ce.rows,_),lt=Q(Ce.columns,_);return j(Xe,Ct=>Ec(()=>pe(lt,or=>Ca.getAt(he,Ct,or).filter(Mr=>Mr.row===Ct).fold(v([]),Mr=>[Mr])),or=>or.rowspan===1,()=>Ca.getAt(he,Ct,0)))},wt=(he,Ce)=>{if(Ce<0||Ce>=he.length-1)return A.none();const Xe=he[Ce].fold(()=>{const Ct=ae(he.slice(0,Ce));return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:0})),lt=he[Ce+1].fold(()=>{const Ct=he.slice(Ce+1);return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:1}));return Xe.bind(Ct=>lt.map(Wt=>{const kn=Wt.delta+Ct.delta;return Math.abs(Wt.value-Ct.value)/kn}))},Kt=(he,Ce)=>Xe=>En(Xe)==="rtl"?Ce:he,En=he=>Ml(he,"direction")==="rtl"?"rtl":"ltr",pr=vs("height",he=>{const Ce=he.dom;return Nr(he)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),wr=he=>pr.get(he),uo=he=>pr.getOuter(he),Bi=ts,ya=(he,Ce)=>({left:he,top:Ce,translate:(lt,Ct)=>ya(he+lt,Ce+Ct)}),Ni=ya,Qi=he=>{const Ce=he.getBoundingClientRect();return Ni(Ce.left,Ce.top)},Ws=(he,Ce)=>he!==void 0?he:Ce!==void 0?Ce:0,nl=he=>{const Ce=he.dom.ownerDocument,Xe=Ce.body,lt=Ce.defaultView,Ct=Ce.documentElement;if(Xe===he.dom)return Ni(Xe.offsetLeft,Xe.offsetTop);const Wt=Ws(lt==null?void 0:lt.pageYOffset,Ct.scrollTop),kn=Ws(lt==null?void 0:lt.pageXOffset,Ct.scrollLeft),Vn=Ws(Ct.clientTop,Xe.clientTop),or=Ws(Ct.clientLeft,Xe.clientLeft);return Fs(he).translate(kn-or,Wt-Vn)},Fs=he=>{const Ce=he.dom,lt=Ce.ownerDocument.body;return lt===Ce?Ni(lt.offsetLeft,lt.offsetTop):Nr(he)?Qi(Ce):Ni(0,0)},Wu=(he,Ce)=>({row:he,y:Ce}),Ki=(he,Ce)=>({col:he,x:Ce}),Aa=he=>nl(he).left+ds(he),Pl=he=>nl(he).left,Vf=(he,Ce)=>Ki(he,Pl(Ce)),sh=(he,Ce)=>Ki(he,Aa(Ce)),_c=he=>nl(he).top,Xl=(he,Ce)=>Wu(he,_c(Ce)),pl=(he,Ce)=>Wu(he,_c(Ce)+uo(Ce)),Pc=(he,Ce,Xe)=>{if(Xe.length===0)return[];const lt=j(Xe.slice(1),(Wt,kn)=>Wt.map(Vn=>he(kn,Vn))),Ct=Xe[Xe.length-1].map(Wt=>Ce(Xe.length-1,Wt));return lt.concat([Ct])},Uf=he=>-he,Os={delta:_,positions:he=>Pc(Xl,pl,he),edge:_c},rd=Kt({delta:_,edge:Pl,positions:he=>Pc(Vf,sh,he)},{delta:Uf,edge:Aa,positions:he=>Pc(sh,Vf,he)}),tp={delta:(he,Ce)=>rd(Ce).delta(he,Ce),positions:(he,Ce)=>rd(Ce).positions(he,Ce),edge:he=>rd(he).edge(he)},kt={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},It=(()=>{const he="[0-9]+",Xe="[eE]"+("[+-]?"+he),lt="\\.",Ct=Vn=>`(?:${Vn})?`,kn=`[+-]?(?:${["Infinity",he+lt+Ct(he)+Ct(Xe),lt+he+Ct(Xe),he+Ct(Xe)].join("|")})`;return new RegExp(`^(${kn})(.*)$`)})(),Ut=(he,Ce)=>$(Ce,Xe=>$(kt[Xe],lt=>he===lt)),J=(he,Ce)=>A.from(It.exec(he)).bind(lt=>{const Ct=Number(lt[1]),Wt=lt[2];return Ut(Wt,Ce)?A.some({value:Ct,unit:Wt}):A.none()}),le=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,V=vt("col"),ie=vt("tr"),ge=(he,Ce,Xe)=>{const lt=vr(he).getOrThunk(()=>zo(Un(he)));return Ce(he)/Xe(lt)*100},xe=(he,Ce)=>{Al(he,"width",Ce+"px")},Ee=(he,Ce)=>{Al(he,"width",Ce+"%")},Ne=(he,Ce)=>{Al(he,"height",Ce+"px")},et=he=>{Jl(he,"height")},rt=he=>Bi(he)+"px",dt=(he,Ce,Xe,lt)=>{const Ct=bl(he).map(Wt=>{const kn=Xe(Wt);return Math.floor(Ce/100*kn)}).getOr(Ce);return lt(he,Ct),Ct},gt=(he,Ce,Xe,lt)=>{const Ct=parseFloat(he);return iu(he,"%")&&Yt(Ce)!=="table"?dt(Ce,Ct,Xe,lt):Ct},Rt=he=>{const Ce=rt(he);return Ce?gt(Ce,he,wr,Ne):wr(he)},Mt=(he,Ce,Xe)=>{const lt=Xe(he),Ct=Tu(he,Ce);return lt/Ct},Xt=(he,Ce)=>Nf(he,Ce).orThunk(()=>it(he,Ce).map(Xe=>Xe+"px")),dn=he=>Xt(he,"width"),bn=he=>Xt(he,"height"),vn=he=>ge(he,Ol,zc),Ln=he=>V(he)?Ol(he):Ud(he),gn=he=>ie(he)?wr(he):Mt(he,"rowspan",Rt),Jn=he=>dn(he).bind(Xe=>J(Xe,["fixed","relative","empty"])),pn=(he,Ce,Xe)=>{Al(he,"width",Ce+Xe)},In=he=>Ol(he)+"px",Ir=he=>wr(he)+"px",Pr=he=>ge(he,Ol,zc)+"%",Gr=he=>dn(he).exists(Ce=>le.test(Ce)),ro=he=>dn(he).exists(Ce=>ne.test(Ce)),po=he=>dn(he).isNone(),Wo=v(le),si=vt("col"),Bo=he=>dn(he).getOrThunk(()=>Ln(he)+"px"),Go=he=>bn(he).getOrThunk(()=>gn(he)+"px"),Yo=he=>j(Ca.justColumns(he),Ce=>A.from(Ce.element)),Wi=he=>{const Ce=wf().browser,Xe=Ce.isChromium()||Ce.isFirefox();return si(he)?Xe:!0},Ho=(he,Ce,Xe,lt,Ct,Wt)=>he.filter(lt).fold(()=>Wt(wt(Xe,Ce)),kn=>Ct(kn)),jo=(he,Ce,Xe,lt)=>{const Ct=Ls(he),Wt=Ca.hasColumns(he)?Yo(he):Ct,kn=[A.some(tp.edge(Ce))].concat(j(tp.positions(Ct,Ce),or=>or.map(Mr=>Mr.x))),Vn=x(gu);return j(Wt,(or,Mr)=>Ho(or,Mr,kn,Vn,no=>{if(Wi(no))return Xe(no);{const ti=nf(Ct[Mr],_);return Ho(ti,Mr,kn,Vn,ki=>lt(A.some(Ol(ki))),lt)}},lt))},Yi=he=>he.map(Ce=>Ce+"px").getOr(""),ai=(he,Ce)=>jo(he,Ce,Bo,Yi),Hi=(he,Ce,Xe)=>jo(he,Ce,vn,lt=>lt.fold(()=>Xe.minCellWidth(),Ct=>Ct/Xe.pixelWidth()*100)),Ai=(he,Ce,Xe)=>jo(he,Ce,Ln,lt=>lt.getOrThunk(Xe.minCellWidth)),es=(he,Ce,Xe,lt)=>{const Ct=_u(he),Wt=j(he.all,Vn=>A.some(Vn.element)),kn=[A.some(Os.edge(Ce))].concat(j(Os.positions(Ct,Ce),Vn=>Vn.map(or=>or.y)));return j(Wt,(Vn,or)=>Ho(Vn,or,kn,P,Xe,lt))},Ar=(he,Ce)=>es(he,Ce,gn,Xe=>Xe.getOrThunk(Lp)),ns=(he,Ce)=>es(he,Ce,Go,Yi),$s=(he,Ce)=>()=>Nr(he)?Ce(he):parseFloat(Nf(he,"width").getOr("0")),Ts=he=>{const Ce=$s(he,Ol),Xe=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(Ct,Wt)=>Ai(Ct,he,Wt),getCellDelta:Xe,singleColumnWidth:v([0]),minCellWidth:Xe,setElementWidth:c,adjustTableWidth:c,isRelative:!0,label:"none"}},rl=he=>{const Ce=$s(he,or=>parseFloat(Pr(or))),Xe=$s(he,Ol);return{width:Ce,pixelWidth:Xe,getWidths:(or,Mr)=>Hi(or,he,Mr),getCellDelta:or=>or/Xe()*100,singleColumnWidth:(or,Mr)=>[100-or],minCellWidth:()=>tc()/Xe()*100,setElementWidth:Ee,adjustTableWidth:or=>{const Mr=Ce(),no=or/100*Mr,ti=Mr+no;Ee(he,ti)},isRelative:!0,label:"percent"}},Hs=he=>{const Ce=$s(he,Ol);return{width:Ce,pixelWidth:Ce,getWidths:(kn,Vn)=>Ai(kn,he,Vn),getCellDelta:_,singleColumnWidth:(kn,Vn)=>[Math.max(tc(),kn+Vn)-kn],minCellWidth:tc,setElementWidth:xe,adjustTableWidth:kn=>{const Vn=Ce()+kn;xe(he,Vn)},isRelative:!1,label:"pixel"}},ys=(he,Ce)=>Wo().exec(Ce)!==null?rl(he):Hs(he),mt={getTableSize:he=>dn(he).fold(()=>Ts(he),Xe=>ys(he,Xe)),pixelSize:Hs,percentageSize:rl,noneSize:Ts},Tt=(he,Ce,Xe,lt,Ct,Wt)=>({minRow:he,minCol:Ce,maxRow:Xe,maxCol:lt,allCells:Ct,selectedCells:Wt}),xn=(he,Ce)=>{const Xe=he.grid.columns;let Ct=he.grid.rows,Wt=Xe,kn=0,Vn=0;const or=[],Mr=[];return Ie(he.access,no=>{if(or.push(no),Ce(no)){Mr.push(no);const ti=no.row,ki=ti+no.rowspan-1,xi=no.column,fi=xi+no.colspan-1;tikn&&(kn=ki),xiVn&&(Vn=fi)}}),Tt(Ct,Wt,kn,Vn,or,Mr)},Nn=(he,Ce,Xe)=>{const lt=he[Xe].element,Ct=Nt.fromTag("td");to(Ct,Nt.fromTag("br")),(Ce?to:Yr)(lt,Ct)},yr=(he,Ce,Xe,lt)=>{const Ct=Z(he,Vn=>Vn.section!=="colgroup"),Wt=Ce.grid.columns,kn=Ce.grid.rows;for(let Vn=0;VnXe.maxRow||MrXe.maxCol||(Ca.getAt(Ce,Vn,Mr).filter(lt).isNone()?Nn(Ct,or,Vn):or=!0)}},so=(he,Ce,Xe,lt)=>{Ie(Xe.columns,kn=>{(kn.columnCe.maxCol)&&pi(kn.element)});const Ct=Z(rh(he,"tr"),kn=>kn.dom.childElementCount===0);U(Ct,pi),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(rh(he,"th,td"),kn=>{at(kn,"rowspan"),at(kn,"colspan")}),at(he,Kc),at(he,"data-snooker-col-series"),mt.getTableSize(he).adjustTableWidth(lt)},No=(he,Ce,Xe,lt)=>{if(lt.minCol===0&&Ce.grid.columns===lt.maxCol+1)return 0;const Ct=Ai(Ce,he,Xe),Wt=re(Ct,(Mr,no)=>Mr+no,0),or=re(Ct.slice(lt.minCol,lt.maxCol+1),(Mr,no)=>Mr+no,0)/Wt*Xe.pixelWidth()-Xe.pixelWidth();return Xe.getCellDelta(or)},ui=(he,Ce)=>{const Xe=ki=>sn(ki.element,Ce),lt=Sr(he),Ct=Bu(lt),Wt=mt.getTableSize(he),kn=Ca.generate(Ct),Vn=xn(kn,Xe),or="th:not("+Ce+"),td:not("+Ce+")",Mr=rf(lt,"th,td",ki=>sn(ki,or));U(Mr,pi),yr(Ct,kn,Vn,Xe);const no=Ca.fromTable(he),ti=No(he,no,Wt,Vn);return so(lt,Vn,kn,ti),lt},ga=" ",ua=((he,Ce)=>{const Xe=Wt=>{if(!he(Wt))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return lt(Wt).getOr("")},lt=Wt=>he(Wt)?A.from(Wt.dom.nodeValue):A.none();return{get:Xe,getOption:lt,set:(Wt,kn)=>{if(!he(Wt))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Wt.dom.nodeValue=kn}}})(Cn,"text"),Cs=he=>ua.get(he),ul=he=>ua.getOption(he),Jc=(he,Ce)=>ua.set(he,Ce),Is=he=>Yt(he)==="img"?1:ul(he).fold(()=>lr(he).length,Ce=>Ce.length),Hc=he=>ul(he).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(ga)>-1).isSome(),Nl=he=>Ot(he)&&Dt(he,"contenteditable")==="false",lh=["img","br"],r0=he=>Hc(he)||z(lh,Yt(he))||Nl(he),ch=he=>Ds(he,r0),gg=he=>Ip(he,r0),Ip=(he,Ce)=>{const Xe=lt=>{const Ct=lr(lt);for(let Wt=Ct.length-1;Wt>=0;Wt--){const kn=Ct[Wt];if(Ce(kn))return A.some(kn);const Vn=Xe(kn);if(Vn.isSome())return Vn}return A.none()};return Xe(he)},X0={scope:["row","col"]},Vh=he=>()=>{const Ce=Nt.fromTag("td",he.dom);return to(Ce,Nt.fromTag("br",he.dom)),Ce},Pu=he=>()=>Nt.fromTag("col",he.dom),Uh=he=>()=>Nt.fromTag("colgroup",he.dom),ss=he=>()=>Nt.fromTag("tr",he.dom),Gl=(he,Ce,Xe)=>{const lt=go(he,Ce);return Ie(Xe,(Ct,Wt)=>{Ct===null?at(lt,Wt):st(lt,Wt,Ct)}),lt},Sf=he=>he,Nc=(he,Ce,Xe)=>ch(he).map(Ct=>{const Wt=Xe.join(","),kn=dr(Ct,Wt,Vn=>An(Vn,he));return K(kn,(Vn,or)=>{const Mr=Dr(or);return to(Vn,Mr),Mr},Ce)}).getOr(Ce),o0=(he,Ce)=>{Ie(X0,(Xe,lt)=>it(he,lt).filter(Ct=>z(Xe,Ct)).each(Ct=>st(Ce,lt,Ct)))},i0=(he,Ce,Xe)=>{const lt=(kn,Vn)=>{Gh(kn.element,Vn),Jl(Vn,"height"),kn.colspan!==1&&Jl(Vn,"width")},Ct=kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom),or=Xe.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Mr=or.length>0?Nc(kn.element,Vn,or):Vn;return to(Mr,Nt.fromTag("br")),lt(kn,Vn),o0(kn.element,Vn),he(kn.element,Vn),Vn};return{col:kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom);return lt(kn,Vn),he(kn.element,Vn),Vn},colgroup:Uh(Ce),row:ss(Ce),cell:Ct,replace:Gl,colGap:Pu(Ce),gap:Vh(Ce)}},a0=he=>({col:Pu(he),colgroup:Uh(he),row:ss(he),cell:Vh(he),replace:Sf,colGap:Pu(he),gap:Vh(he)}),wu=(he,Ce)=>{const lt=(Ce||document).createElement("div");return lt.innerHTML=he,lr(Nt.fromDom(lt))},Dp=he=>j(he,Nt.fromDom),Rm=he=>Ce=>Ce.options.get(he),nm="100%",G0=he=>{var Ce;const Xe=he.dom,lt=(Ce=Xe.getParent(he.selection.getStart(),Xe.isBlock))!==null&&Ce!==void 0?Ce:he.getBody();return zc(Nt.fromDom(lt))+"px"},vg=(he,Ce)=>yp(he)||!hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},s0=(he,Ce)=>yp(he)||hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},H1=he=>{const Ce=he.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Xe=>{const lt=z(["section","cells","sectionCells","auto"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Xe=>{const lt=z(["preservetable","resizetable"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},VO=he=>A.from(he.options.get("table_clone_elements")),rm=he=>{const Ce=he.options.get("object_resizing");return z(Ce.split(","),"table")},z_=Rm("table_header_type"),db=Rm("table_column_resizing"),lu=he=>db(he)==="preservetable",sy=he=>db(he)==="resizetable",Oh=Rm("table_sizing_mode"),kf=he=>Oh(he)==="relative",l0=he=>Oh(he)==="fixed",yp=he=>Oh(he)==="responsive",Bp=Rm("table_resize_bars"),hb=Rm("table_style_by_css"),Lm=Rm("table_merge_content_on_paste"),Qd=he=>{const Ce=he.options,Xe=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Xe:s0(he,Xe)},Z1=he=>{const Ce=he.options,Xe=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Xe:vg(he,Xe)},N_=Rm("table_use_colgroups"),K0=he=>Bs(he,"[contenteditable]"),ly=(he,Ce=!1)=>Nr(he)?he.dom.isContentEditable:K0(he).fold(v(Ce),Xe=>yg(Xe)==="true"),yg=he=>he.dom.contentEditable,Im=he=>Nt.fromDom(he.getBody()),Dm=he=>Ce=>An(Ce,Im(he)),Sh=he=>{at(he,"data-mce-style");const Ce=Xe=>at(Xe,"data-mce-style");U(vu(he),Ce),U($d(he),Ce),U(Zu(he),Ce)},zp=he=>Nt.fromDom(he.selection.getStart()),J0=he=>he.getBoundingClientRect().width,F_=he=>he.getBoundingClientRect().height,q1=he=>(Ce,Xe)=>{const lt=Ce.dom.getStyle(Xe,he)||Ce.dom.getAttrib(Xe,he);return A.from(lt).filter(_s)},$_=q1("width"),Dx=q1("height"),UO=he=>/^(\d+(\.\d+)?)%$/.test(he),W1=he=>/^(\d+(\.\d+)?)px$/.test(he),e1=he=>To(he,vt("table")).exists(ly),cu=(he,Ce)=>{const Xe=Ce.column,lt=Ce.column+Ce.colspan-1,Ct=Ce.row,Wt=Ce.row+Ce.rowspan-1;return Xe<=he.finishCol&<>=he.startCol&&Ct<=he.finishRow&&Wt>=he.startRow},Za=(he,Ce)=>Ce.column>=he.startCol&&Ce.column+Ce.colspan-1<=he.finishCol&&Ce.row>=he.startRow&&Ce.row+Ce.rowspan-1<=he.finishRow,sa=(he,Ce)=>{let Xe=!0;const lt=C(Za,Ce);for(let Ct=Ce.startRow;Ct<=Ce.finishRow;Ct++)for(let Wt=Ce.startCol;Wt<=Ce.finishCol;Wt++)Xe=Xe&&Ca.getAt(he,Ct,Wt).exists(lt);return Xe?A.some(Ce):A.none()},Bm=(he,Ce)=>an(Math.min(he.row,Ce.row),Math.min(he.column,Ce.column),Math.max(he.row+he.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(he.column+he.colspan-1,Ce.column+Ce.colspan-1)),t1=(he,Ce,Xe)=>{const lt=Ca.findItem(he,Ce,An),Ct=Ca.findItem(he,Xe,An);return lt.bind(Wt=>Ct.map(kn=>Bm(Wt,kn)))},n1=(he,Ce,Xe)=>t1(he,Ce,Xe).bind(lt=>sa(he,lt)),Bx=(he,Ce,Xe,lt)=>Ca.findItem(he,Ce,An).bind(Ct=>{const Wt=Xe>0?Ct.row+Ct.rowspan-1:Ct.row,kn=lt>0?Ct.column+Ct.colspan-1:Ct.column;return Ca.getAt(he,Wt+Xe,kn+lt).map(or=>or.element)}),zm=(he,Ce,Xe)=>t1(he,Ce,Xe).map(lt=>{const Ct=Ca.filterItems(he,C(cu,lt));return j(Ct,Wt=>Wt.element)}),Rl=(he,Ce)=>{const Xe=(lt,Ct)=>Kn(Ct,lt);return Ca.findItem(he,Ce,Xe).map(lt=>lt.element)},zx=(he,Ce,Xe)=>bl(he).bind(lt=>{const Ct=Nm(lt);return Bx(Ct,he,Ce,Xe)}),pb=(he,Ce,Xe)=>{const lt=Nm(he);return zm(lt,Ce,Xe)},V_=(he,Ce,Xe,lt,Ct)=>{const Wt=Nm(he),kn=An(he,Xe)?A.some(Ce):Rl(Wt,Ce),Vn=An(he,Ct)?A.some(lt):Rl(Wt,lt);return kn.bind(or=>Vn.bind(Mr=>zm(Wt,or,Mr)))},Lo=(he,Ce,Xe)=>{const lt=Nm(he);return n1(lt,Ce,Xe)},Nm=Ca.fromTable;var D4=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],bg=()=>{const he=Mr=>Nt.fromDom(Mr.dom.cloneNode(!1)),Ce=Mr=>Zn(Mr).dom,Xe=Mr=>cn(Mr)?Yt(Mr)==="body"?!0:z(D4,Yt(Mr)):!1,lt=Mr=>cn(Mr)?z(["br","img","hr","input"],Yt(Mr)):!1,Ct=Mr=>cn(Mr)&&Dt(Mr,"contenteditable")==="false",Wt=(Mr,no)=>Mr.dom.compareDocumentPosition(no.dom),kn=(Mr,no)=>{const ti=Bt(Mr);bt(no,ti)},Vn=Mr=>{const no=Yt(Mr);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],no)},or=Mr=>cn(Mr)?it(Mr,"lang"):A.none();return{up:v({selector:fs,closest:Bs,predicate:Di,all:qn}),down:v({selector:Oo,predicate:Fn}),styles:v({get:Ml,getRaw:Nf,set:Al,remove:Jl}),attrs:v({get:Dt,set:st,remove:at,copyTo:kn}),insert:v({before:eo,after:Jr,afterAll:_o,append:to,appendAll:$o,prepend:Yr,wrap:Fo}),remove:v({unwrap:Hn,remove:pi}),create:v({nu:Nt.fromTag,clone:he,text:Nt.fromText}),query:v({comparePosition:Wt,prevSibling:gr,nextSibling:sr}),property:v({children:lr,name:Yt,parent:$r,document:Ce,isText:Cn,isComment:Et,isElement:cn,isSpecial:Vn,getLanguage:or,getText:Cs,setText:Jc,isBoundary:Xe,isEmptyTag:lt,isNonEditable:Ct}),eq:An,is:fr}};const B4=(he,Ce,Xe,lt)=>{const Ct=Xe[0],Wt=Xe.slice(1);return lt(he,Ce,Ct,Wt)},c0=(he,Ce,Xe)=>Xe.length>0?B4(he,Ce,Xe,mb):A.none(),mb=(he,Ce,Xe,lt)=>{const Ct=Ce(he,Xe);return K(lt,(Wt,kn)=>{const Vn=Ce(he,kn);return od(he,Wt,Vn)},Ct)},od=(he,Ce,Xe)=>Ce.bind(lt=>Xe.filter(C(he.eq,lt))),U_=(he,Ce)=>C(he.eq,Ce),cy=(he,Ce,Xe,lt=T)=>{const Ct=[Ce].concat(he.up().all(Ce)),Wt=[Xe].concat(he.up().all(Xe)),kn=no=>ee(no,lt).fold(()=>no,ki=>no.slice(0,ki+1)),Vn=kn(Ct),or=kn(Wt),Mr=Y(Vn,no=>$(or,U_(he,no)));return{firstpath:Vn,secondpath:or,shared:Mr}},wc=c0,xg=cy,Nx=bg(),kh=(he,Ce)=>wc(Nx,(Xe,lt)=>he(lt),Ce),j_=(he,Ce,Xe)=>xg(Nx,he,Ce,Xe),gb=he=>fs(he,"table"),Y1=(he,Ce,Xe)=>{const lt=Ct=>Wt=>Xe!==void 0&&Xe(Wt)||An(Wt,Ct);return An(he,Ce)?A.some({boxes:A.some([he]),start:he,finish:Ce}):gb(he).bind(Ct=>gb(Ce).bind(Wt=>{if(An(Ct,Wt))return A.some({boxes:pb(Ct,he,Ce),start:he,finish:Ce});if(Kn(Ct,Wt)){const kn=dr(Ce,"td,th",lt(Ct)),Vn=kn.length>0?kn[kn.length-1]:Ce;return A.some({boxes:V_(Ct,he,Ct,Ce,Wt),start:he,finish:Vn})}else if(Kn(Wt,Ct)){const kn=dr(he,"td,th",lt(Wt)),Vn=kn.length>0?kn[kn.length-1]:he;return A.some({boxes:V_(Wt,he,Ct,Ce,Wt),start:he,finish:Vn})}else return j_(he,Ce).shared.bind(kn=>Bs(kn,"table",Xe).bind(Vn=>{const or=dr(Ce,"td,th",lt(Vn)),Mr=or.length>0?or[or.length-1]:Ce,no=dr(he,"td,th",lt(Vn)),ti=no.length>0?no[no.length-1]:he;return A.some({boxes:V_(Vn,he,Ct,Ce,Wt),start:ti,finish:Mr})}))}))},uy=(he,Ce)=>{const Xe=Oo(he,Ce);return Xe.length>0?A.some(Xe):A.none()},np=(he,Ce)=>Y(he,Xe=>sn(Xe,Ce)),jO=(he,Ce,Xe)=>yl(he,Ce).bind(lt=>yl(he,Xe).bind(Ct=>kh(gb,[lt,Ct]).map(Wt=>({first:lt,last:Ct,table:Wt})))),_g=(he,Ce)=>fs(he,"table").bind(Xe=>yl(Xe,Ce).bind(lt=>Y1(lt,he).bind(Ct=>Ct.boxes.map(Wt=>({boxes:Wt,start:Ct.start,finish:Ct.finish}))))),Q_=(he,Ce,Xe,lt,Ct)=>np(he,Ct).bind(Wt=>zx(Wt,Ce,Xe).bind(kn=>_g(kn,lt))),wg=(he,Ce)=>uy(he,Ce),X1=(he,Ce,Xe)=>jO(he,Ce,Xe).bind(lt=>{const Ct=or=>An(he,or),Wt="thead,tfoot,tbody,table",kn=fs(lt.first,Wt,Ct),Vn=fs(lt.last,Wt,Ct);return kn.bind(or=>Vn.bind(Mr=>An(or,Mr)?Lo(lt.table,lt.first,lt.last):A.none()))}),om=_,H_=he=>{const Ce=(lt,Ct)=>it(lt,Ct).exists(Wt=>parseInt(Wt,10)>1),Xe=lt=>Ce(lt,"rowspan")||Ce(lt,"colspan");return he.length>0&&se(he,Xe)?A.some(he):A.none()},QO=(he,Ce,Xe)=>Ce.length<=1?A.none():X1(he,Xe.firstSelectedSelector,Xe.lastSelectedSelector).map(lt=>({bounds:lt,cells:Ce})),uh="data-mce-selected",Hd="td["+uh+"],th["+uh+"]",ei="["+uh+"]",Fx="data-mce-first-selected",id="td["+Fx+"],th["+Fx+"]",$x="data-mce-last-selected",HO="td["+$x+"],th["+$x+"]",cc=ei,Xu={selected:uh,selectedSelector:Hd,firstSelected:Fx,firstSelectedSelector:id,lastSelected:$x,lastSelectedSelector:HO},Vx=(he,Ce,Xe)=>({element:Xe,mergable:QO(Ce,he,Xu),unmergable:H_(he),selection:om(he)}),ZO=(he,Ce,Xe)=>({element:he,clipboard:Ce,generators:Xe}),u0=(he,Ce,Xe,lt)=>({selection:om(he),clipboard:Xe,generators:lt}),vb=he=>bl(he).bind(Ce=>wg(Ce,Xu.firstSelectedSelector)).fold(v(he),Ce=>Ce[0]),Fm=he=>(Ce,Xe)=>{const lt=Yt(Ce),Ct=lt==="col"||lt==="colgroup"?vb(Ce):Ce;return Bs(Ct,he,Xe)},Z_=Fm("th,td,caption"),q_=Fm("th,td"),uc=he=>Dp(he.model.table.getSelectedCells()),fy=he=>Z(uc(he),Ce=>sn(Ce,Xu.selectedSelector)),Zc=he=>bl(he[0]).map(Ce=>{const Xe=ui(Ce,cc);return Sh(Xe),[Xe]}),qO=(he,Ce)=>j(Ce,Xe=>he.selection.serializer.serialize(Xe.dom,{})).join(""),rp=he=>j(he,Ce=>Ce.dom.innerText).join(""),Og=(he,Ce)=>{he.on("BeforeGetContent",Xe=>{const lt=Ct=>{Xe.preventDefault(),Zc(Ct).each(Wt=>{Xe.content=Xe.format==="text"?rp(Wt):qO(he,Wt)})};if(Xe.selection===!0){const Ct=fy(he);Ct.length>=1&<(Ct)}}),he.on("BeforeSetContent",Xe=>{if(Xe.selection===!0&&Xe.paste===!0){const lt=uc(he);ve(lt).each(Ct=>{bl(Ct).each(Wt=>{const kn=Z(wu(Xe.content),or=>Yt(or)!=="meta"),Vn=vt("table");if(Lm(he)&&kn.length===1&&Vn(kn[0])){Xe.preventDefault();const or=Nt.fromDom(he.getDoc()),Mr=a0(or),no=ZO(Ct,kn[0],Mr);Ce.pasteCells(Wt,no).each(()=>{he.focus()})}})})}})},Oc=(he,Ce)=>({element:he,offset:Ce}),WO=(he,Ce,Xe)=>he.property().isText(Ce)&&he.property().getText(Ce).trim().length===0||he.property().isComment(Ce)?Xe(Ce).bind(lt=>WO(he,lt,Xe).orThunk(()=>A.some(lt))):A.none(),YO=(he,Ce)=>he.property().isText(Ce)?he.property().getText(Ce).length:he.property().children(Ce).length,Ux=(he,Ce)=>{const Xe=WO(he,Ce,he.query().prevSibling).getOr(Ce);if(he.property().isText(Xe))return Oc(Xe,YO(he,Xe));const lt=he.property().children(Xe);return lt.length>0?Ux(he,lt[lt.length-1]):Oc(Xe,YO(he,Xe))},qc=Ux,ff=bg(),fh=he=>qc(ff,he),dy=(he,Ce)=>{gu(he)||Jn(he).each(lt=>{const Ct=lt.value/2;pn(he,Ct,lt.unit),pn(Ce,Ct,lt.unit)})},jh=he=>j(he,v(0)),r1=(he,Ce,Xe,lt,Ct)=>Ct(he.slice(0,Ce)).concat(lt).concat(Ct(he.slice(Xe))),G1=he=>(Ce,Xe,lt,Ct)=>{if(he(lt)){const Wt=Math.max(Ct,Ce[Xe]-Math.abs(lt)),kn=Math.abs(Wt-Ce[Xe]);return lt>=0?kn:-kn}else return lt},Sg=G1(he=>he<0),hy=G1(P),K1=()=>{const he=(Vn,or,Mr,no,ti)=>{const ki=Sg(Vn,or,no,ti);return r1(Vn,or,Mr+1,[ki,0],jh)},Ce=(Vn,or,Mr,no)=>{const ti=(100+Mr)/100,ki=Math.max(no,(Vn[or]+Mr)/ti);return j(Vn,(xi,fi)=>(fi===or?ki:xi/ti)-xi)},Xe=(Vn,or,Mr,no,ti,ki)=>ki?Ce(Vn,or,no,ti):he(Vn,or,Mr,no,ti);return{resizeTable:(Vn,or)=>Vn(or),clampTableDelta:Sg,calcLeftEdgeDeltas:Xe,calcMiddleDeltas:(Vn,or,Mr,no,ti,ki,xi)=>Xe(Vn,Mr,no,ti,ki,xi),calcRightEdgeDeltas:(Vn,or,Mr,no,ti,ki)=>{if(ki)return Ce(Vn,Mr,no,ti);{const xi=Sg(Vn,Mr,no,ti);return jh(Vn.slice(0,Mr)).concat([xi])}},calcRedestributedWidths:(Vn,or,Mr,no)=>{if(no){const ki=(or+Mr)/or,xi=j(Vn,fi=>fi/ki);return{delta:ki*100-100,newSizes:xi}}else return{delta:Mr,newSizes:Vn}}}},o1=()=>{const he=(kn,Vn,or,Mr,no)=>{const ti=Mr>=0?or:Vn,ki=hy(kn,ti,Mr,no);return r1(kn,Vn,or+1,[ki,-ki],jh)};return{resizeTable:(kn,Vn,or)=>{or&&kn(Vn)},clampTableDelta:(kn,Vn,or,Mr,no)=>{if(no){if(or>=0)return or;{const ti=re(kn,(ki,xi)=>ki+xi-Mr,0);return Math.max(-ti,or)}}else return Sg(kn,Vn,or,Mr)},calcLeftEdgeDeltas:he,calcMiddleDeltas:(kn,Vn,or,Mr,no,ti)=>he(kn,or,Mr,no,ti),calcRightEdgeDeltas:(kn,Vn,or,Mr,no,ti)=>{if(ti)return jh(kn);{const ki=Mr/kn.length;return j(kn,v(ki))}},calcRedestributedWidths:(kn,Vn,or,Mr)=>({delta:0,newSizes:kn})}},kg=he=>Ca.fromTable(he).grid,J1=vt("th"),ev=he=>se(he,Ce=>J1(Ce.element)),z4=(he,Ce)=>he&&Ce?"sectionCells":he?"section":"cells",W_=he=>{const Ce=he.section==="thead",Xe=yf(tv(he.cells),"th");return he.section==="tfoot"?{type:"footer"}:Ce||Xe?{type:"header",subType:z4(Ce,Xe)}:{type:"body"}},tv=he=>{const Ce=Z(he,Xe=>J1(Xe.element));return Ce.length===0?A.some("td"):Ce.length===he.length?A.some("th"):A.none()},nv=he=>{const Ce=j(he,Ct=>W_(Ct).type),Xe=z(Ce,"header"),lt=z(Ce,"footer");if(!Xe&&!lt)return A.some("body");{const Ct=z(Ce,"body");return Xe&&!Ct&&!lt?A.some("header"):!Xe&&!Ct&<?A.some("footer"):A.none()}},jx=he=>we(he.all,Ce=>{const Xe=W_(Ce);return Xe.type==="header"?A.from(Xe.subType):A.none()}),py=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Y_=(he,Ce)=>he.section!==Ce?on(he.element,he.cells,Ce,he.isNew):he,X_=()=>({transformRow:Y_,transformCell:(he,Ce,Xe)=>{const lt=Xe(he.element,Ce),Ct=Yt(lt)!=="td"?oo(lt,"td"):lt;return Gt(Ct,he.isNew,he.isLocked)}}),G_=()=>({transformRow:Y_,transformCell:py}),my=()=>({transformRow:(he,Ce)=>Y_(he,Ce==="thead"?"tbody":Ce),transformCell:py}),i1={getTableSectionType:(he,Ce)=>{const Xe=Ca.fromTable(he);switch(jx(Xe).getOr(Ce)){case"section":return X_();case"sectionCells":return G_();case"cells":return my()}},section:X_,sectionCells:G_,cells:my,fallback:()=>({transformRow:_,transformCell:py})},Tg=(he,Ce,Xe,lt)=>{Xe===lt?at(he,Ce):st(he,Ce,Xe)},im=(he,Ce,Xe)=>{_e(xr(he,Ce)).fold(()=>Yr(he,Xe),lt=>Jr(lt,Xe))},Qh=(he,Ce)=>{const Xe=zi(he,Ce).getOrThunk(()=>{const lt=Nt.fromTag(Ce,Un(he).dom);return Ce==="thead"?im(he,"caption,colgroup",lt):Ce==="colgroup"?im(he,"caption",lt):to(he,lt),lt});return Mo(Xe),Xe},rv=(he,Ce)=>{const Xe=[],lt=[],Ct=xi=>j(xi,fi=>{fi.isNew&&Xe.push(fi.element);const Vi=fi.element;return Mo(Vi),U(fi.cells,Xo=>{Xo.isNew&<.push(Xo.element),Tg(Xo.element,"colspan",Xo.colspan,1),Tg(Xo.element,"rowspan",Xo.rowspan,1),to(Vi,Xo.element)}),Vi}),Wt=xi=>pe(xi,fi=>j(fi.cells,Vi=>(Tg(Vi.element,"span",Vi.colspan,1),Vi.element))),kn=(xi,fi)=>{const Vi=Qh(he,fi),oi=(fi==="colgroup"?Wt:Ct)(xi);$o(Vi,oi)},Vn=xi=>{zi(he,xi).each(pi)},or=(xi,fi)=>{xi.length>0?kn(xi,fi):Vn(fi)},Mr=[],no=[],ti=[],ki=[];return U(Ce,xi=>{switch(xi.section){case"thead":Mr.push(xi);break;case"tbody":no.push(xi);break;case"tfoot":ti.push(xi);break;case"colgroup":ki.push(xi);break}}),or(ki,"colgroup"),or(Mr,"thead"),or(no,"tbody"),or(ti,"tfoot"),{newRows:Xe,newCells:lt}},ov=he=>j(he,Ce=>{const Xe=Dr(Ce.element);return U(Ce.cells,lt=>{const Ct=Sr(lt.element);Tg(Ct,"colspan",lt.colspan,1),Tg(Ct,"rowspan",lt.rowspan,1),to(Xe,Ct)}),Xe}),Od=(he,Ce)=>j(he,Xe=>Ri(Xe,Ce)),Cg=(he,Ce)=>he[Ce],Qx=(he,Ce)=>{if(he.length===0)return 0;const Xe=he[0];return ee(he,Ct=>!Ce(Xe.element,Ct.element)).getOr(he.length)},Th=(he,Ce,Xe,lt)=>{const Ct=Cg(he,Ce),Wt=Ct.section==="colgroup",kn=Qx(Ct.cells.slice(Xe),lt),Vn=Wt?1:Qx(Od(he.slice(Ce),Xe),lt);return{colspan:kn,rowspan:Vn}},f0=(he,Ce)=>{const Xe=j(he,Ct=>j(Ct.cells,T)),lt=(Ct,Wt,kn,Vn)=>{for(let or=Ct;or{const kn=pe(Ct.cells,(Vn,or)=>{if(Xe[Wt][or]===!1){const Mr=Th(he,Wt,or,Ce);return lt(Wt,or,Mr.rowspan,Mr.colspan),[Yn(Vn.element,Mr.rowspan,Mr.colspan,Vn.isNew)]}else return[]});return Er(Ct.element,kn,Ct.section,Ct.isNew)})},iv=(he,Ce,Xe)=>{const lt=[];U(he.colgroups,Ct=>{const Wt=[];for(let kn=0;knGt(or.element,Xe,!1)).getOrThunk(()=>Gt(Ce.colGap(),!0,!1));Wt.push(Vn)}lt.push(on(Ct.element,Wt,"colgroup",Xe))});for(let Ct=0;CtGt(no.element,Xe,no.isLocked)).getOrThunk(()=>Gt(Ce.gap(),!0,!1));Wt.push(Mr)}const kn=he.all[Ct],Vn=on(kn.element,Wt,kn.section,Xe);lt.push(Vn)}return lt},K_=(he,Ce)=>iv(he,Ce,!1),bb=he=>f0(he,An),Hx=(he,Ce)=>we(he.all,Xe=>Y(Xe.cells,lt=>An(Ce,lt.element))),Zx=(he,Ce,Xe)=>{const lt=j(Ce.selection,Wt=>bf(Wt).bind(kn=>Hx(he,kn)).filter(Xe)),Ct=il(lt);return nh(Ct.length>0,Ct)},ad=(he,Ce,Xe,lt,Ct)=>(Wt,kn,Vn,or)=>{const Mr=Ca.fromTable(Wt),no=A.from(or==null?void 0:or.section).getOrThunk(i1.fallback);return Ce(Mr,kn).map(ki=>{const xi=K_(Mr,Vn),fi=he(xi,ki,An,Ct(Vn),no),Vi=ii(fi.grid),Xo=bb(fi.grid);return{info:ki,grid:Xo,cursor:fi.cursor,lockedColumns:Vi}}).bind(ki=>{const xi=rv(Wt,ki.grid),fi=A.from(or==null?void 0:or.sizing).getOrThunk(()=>mt.getTableSize(Wt)),Vi=A.from(or==null?void 0:or.resize).getOrThunk(o1);return Xe(Wt,ki.grid,ki.info,{sizing:fi,resize:Vi,section:no}),lt(Wt),at(Wt,Kc),ki.lockedColumns.length>0&&st(Wt,Kc,ki.lockedColumns.join(",")),A.some({cursor:ki.cursor,newRows:xi.newRows,newCells:xi.newCells})})},mC=(he,Ce)=>bf(Ce.element).bind(Xe=>Hx(he,Xe).map(lt=>({...lt,generators:Ce.generators,clipboard:Ce.clipboard}))),qx=(he,Ce)=>Zx(he,Ce,P).map(Xe=>({cells:Xe,generators:Ce.generators,clipboard:Ce.clipboard})),Ag=(he,Ce)=>Ce.mergable,$m=(he,Ce)=>Ce.unmergable,Ch=(he,Ce)=>Zx(he,Ce,P),Np=(he,Ce)=>Zx(he,Ce,Xe=>!Xe.isLocked),d0=(he,Ce)=>Hx(he,Ce).exists(Xe=>!Xe.isLocked),av=(he,Ce)=>se(Ce,Xe=>d0(he,Xe)),J_=(he,Ce)=>Ag(he,Ce).filter(Xe=>av(he,Xe.cells)),gy=(he,Ce)=>$m(he,Ce).filter(Xe=>av(he,Xe)),xb=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ct.length===0)return he;for(let Wt=Ce.startRow;Wt<=Ce.finishRow;Wt++)for(let kn=Ce.startCol;kn<=Ce.finishCol;kn++){const Vn=Ct[Wt],or=Ri(Vn,kn).isLocked;aa(Vn,kn,Gt(lt(),!1,or))}return he},ew=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;let Wt=!0;for(let kn=0;knre(he,(Xe,lt)=>$(Xe,Ct=>Ce(Ct.element,lt.element))?Xe:Xe.concat([lt]),[]),sv=(he,Ce,Xe,lt)=>(Ce>0&&Ce{const Wt=Ct.cells[Ce-1];let kn=0;const Vn=lt();for(;Ct.cells.length>Ce+kn&&Xe(Wt.element,Ct.cells[Ce+kn].element);)aa(Ct,Ce+kn,Gt(Vn,!0,Ct.cells[Ce+kn].isLocked)),kn++}),he),xp=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ce>0&&Ce{let or=A.none();for(let Mr=Ce;Mr{aa(ti,no,Gt(fi,!0,ki.isLocked))}))}})}return he},_b=he=>{const Ce=Wt=>Wt(he),Xe=v(he),lt=()=>Ct,Ct={tag:!0,inner:he,fold:(Wt,kn)=>kn(he),isValue:P,isError:T,map:Wt=>Sd.value(Wt(he)),mapError:lt,bind:Ce,exists:Ce,forall:Ce,getOr:Xe,or:lt,getOrThunk:Xe,orThunk:lt,getOrDie:Xe,each:Wt=>{Wt(he)},toOptional:()=>A.some(he)};return Ct},Ou=he=>{const Ce=()=>Xe,Xe={tag:!1,inner:he,fold:(lt,Ct)=>lt(he),isValue:T,isError:P,map:Ce,mapError:lt=>Sd.error(lt(he)),bind:Ce,exists:T,forall:P,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(he)),each:c,toOptional:A.none};return Xe},Sd={value:_b,error:Ou,fromOption:(he,Ce)=>he.fold(()=>Ou(Ce),_b)},XO=(he,Ce,Xe)=>{if(he.row>=Ce.length||he.column>qu(Ce[0]))return Sd.error("invalid start address out of table bounds, row: "+he.row+", column: "+he.column);const lt=Ce.slice(he.row),Ct=lt[0].cells.slice(he.column),Wt=qu(Xe[0]),kn=Xe.length;return Sd.value({rowDelta:lt.length-kn,colDelta:Ct.length-Wt})},wb=(he,Ce)=>{const Xe=qu(he[0]),lt=qu(Ce[0]);return{rowDelta:0,colDelta:Xe-lt}},am=(he,Ce)=>{const Xe=he.length,lt=Ce.length;return{rowDelta:Xe-lt,colDelta:0}},Vm=(he,Ce,Xe,lt)=>{const Ct=Ce.section==="colgroup"?Xe.col:Xe.cell;return Q(he,Wt=>Gt(Ct(),!0,lt(Wt)))},_p=(he,Ce,Xe,lt)=>{const Ct=he[he.length-1];return he.concat(Q(Ce,()=>{const Wt=Ct.section==="colgroup"?Xe.colgroup:Xe.row,kn=xc(Ct,Wt,_),Vn=Vm(kn.cells.length,kn,Xe,or=>We(lt,or.toString()));return rs(kn,Vn)}))},op=(he,Ce,Xe,lt)=>j(he,Ct=>{const Wt=Vm(Ce,Ct,Xe,T);return cf(Ct,lt,Wt)}),GO=(he,Ce,Xe)=>j(he,lt=>re(Xe,(Ct,Wt)=>{const kn=Vm(1,lt,Ce,P)[0];return Of(Ct,Wt,kn)},lt)),Ob=(he,Ce,Xe)=>{const lt=Ce.colDelta<0?op:_,Ct=Ce.rowDelta<0?_p:_,Wt=ii(he),kn=qu(he[0]),Vn=$(Wt,no=>no===kn-1),or=lt(he,Math.abs(Ce.colDelta),Xe,Vn?kn-1:kn),Mr=ii(or);return Ct(or,Math.abs(Ce.rowDelta),Xe,ce(Mr,P))},s1=(he,Ce,Xe,lt)=>{const Ct=Ri(he[Ce],Xe),Wt=C(lt,Ct.element),kn=he[Ce];return he.length>1&&qu(kn)>1&&(Xe>0&&Wt(Gc(kn,Xe-1))||Xe0&&Wt(Gc(he[Ce-1],Xe))||Ce{const kn=he.row,Vn=he.column,or=Xe.length,Mr=qu(Xe[0]),no=kn+or,ti=Vn+Mr+Wt.length,ki=ce(Wt,P);for(let xi=kn;xi{const lt=qu(Ce[0]),Ct=zl(Ce).cols.length+he.row,Wt=Q(lt-he.column,Vn=>Vn+he.column),kn=Y(Wt,Vn=>se(Xe,or=>or!==Vn)).getOr(lt-1);return{row:Ct,column:kn}},p0=(he,Ce,Xe)=>Z(Xe,lt=>lt>=he.column&<<=qu(Ce[0])+he.column),Ss=(he,Ce,Xe,lt,Ct)=>{const Wt=ii(Ce),kn=h0(he,Ce,Wt),Vn=zl(Xe).rows,or=p0(kn,Vn,Wt);return XO(kn,Ce,Vn).map(no=>{const ti={...no,colDelta:no.colDelta-or.length},ki=Ob(Ce,ti,lt),xi=ii(ki),fi=p0(kn,Vn,xi);return Um(kn,ki,Vn,lt,Ct,fi)})},kd=(he,Ce,Xe,lt,Ct)=>{sv(Ce,he,Ct,lt.cell);const Wt=am(Xe,Ce),kn=Ob(Xe,Wt,lt),Vn=am(Ce,kn),or=Ob(Ce,Vn,lt);return j(or,(Mr,no)=>cf(Mr,he,kn[no].cells))},Ah=(he,Ce,Xe,lt,Ct)=>{xp(Ce,he,Ct,lt.cell);const Wt=ii(Ce),kn=wb(Ce,Xe),Vn={...kn,colDelta:kn.colDelta-Wt.length},or=Ob(Ce,Vn,lt),{cols:Mr,rows:no}=zl(or),ti=ii(or),ki=wb(Xe,Ce),xi={...ki,colDelta:ki.colDelta+ti.length},fi=GO(Xe,lt,ti),Vi=Ob(fi,xi,lt);return[...Mr,...no.slice(0,he),...Vi,...no.slice(he,no.length)]},Sb=(he,Ce,Xe,lt)=>xc(he,Ct=>lt(Ct,Xe),Ce),Sl=(he,Ce,Xe,lt,Ct)=>{const{rows:Wt,cols:kn}=zl(he),Vn=Wt.slice(0,Ce),or=Wt.slice(Ce),Mr=Sb(Wt[Xe],(no,ti)=>Ce>0&&Ce{if(Xe==="colgroup"||!lt){const Vn=Ri(he,Ct);return Gt(kn(Vn.element,Wt),!0,!1)}else return Ri(he,Ce)},Yx=(he,Ce,Xe,lt,Ct)=>j(he,Wt=>{const kn=Ce>0&&Cepe(he,Xe=>{const lt=Xe.cells,Ct=K(Ce,(Wt,kn)=>kn>=0&&kn0?[on(Xe.element,Ct,Xe.section,Xe.isNew)]:[]}),Xx=(he,Ce,Xe)=>{const{rows:lt,cols:Ct}=zl(he);return[...Ct,...lt.slice(0,Ce),...lt.slice(Xe+1)]},lv=(he,Ce,Xe,lt)=>Gc(he[Ce],Xe)!==void 0&&Ce>0&<(Gc(he[Ce-1],Xe),Gc(he[Ce],Xe)),fc=(he,Ce,Xe)=>Ce>0&&Xe(Gc(he,Ce-1),Gc(he,Ce)),cv=(he,Ce,Xe,lt)=>lv(he,Ce,Xe,lt)||fc(he[Ce],Xe,lt),kb=(he,Ce)=>se(Ce,_)&&ev(he.cells)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Wt]),dc=(he,Ce)=>se(Ce,_)&&ev(he)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Ct]),uv=(he,Ce,Xe,lt)=>{const Ct=kn=>kn==="row"?ec(Ce):gu(Ce),Wt=kn=>Ct(kn)?`${kn}group`:kn;return he?J1(Ce)?Wt(Xe):null:lt&&J1(Ce)?Wt(Xe==="row"?"col":"row"):null},Mh=(he,Ce)=>(Xe,lt,Ct)=>A.some(uv(he,Xe.element,"col",Ce[Ct])),Fp=(he,Ce)=>(Xe,lt)=>A.some(uv(he,Xe.element,"row",Ce[lt])),tw=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Li=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const Vn=or=>$(Ce,Mr=>Xe(or.element,Mr.element));return j(he,(or,Mr)=>Mu(or,(no,ti)=>{if(Vn(no)){const ki=kn(no,Mr,ti)?Ct(no,Xe,lt):no;return Wt(ki,Mr,ti).each(xi=>{Vt(ki.element,{scope:A.from(xi)})}),ki}else return no}))},nw=(he,Ce,Xe)=>pe(he,(lt,Ct)=>cv(he,Ct,Ce,Xe)?[]:[Ri(lt,Ce)]),F4=(he,Ce,Xe)=>{const lt=he[Ce];return pe(lt.cells,(Ct,Wt)=>cv(he,Ce,Wt,Xe)?[]:[Ct])},KO=(he,Ce,Xe,lt,Ct)=>{const Wt=zl(he).rows,kn=pe(Ce,no=>nw(Wt,no,lt)),Vn=j(Wt,no=>ev(no.cells)),or=dc(kn,Vn),Mr=Fp(Xe,Vn);return Li(he,kn,lt,Ct,tw,Mr,or)},rw=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const{cols:Vn,rows:or}=zl(he),Mr=or[Ce[0]],no=pe(Ce,Xo=>F4(or,Xo,Ct)),ti=j(Mr.cells,(Xo,oi)=>ev(nw(or,oi,Ct))),ki=[...or];U(Ce,Xo=>{ki[Xo]=kn.transformRow(or[Xo],Xe)});const xi=[...Vn,...ki],fi=kb(Mr,ti),Vi=Mh(lt,ti);return Li(xi,no,Ct,Wt,kn.transformCell,Vi,fi)},JO=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=j(Ce,kn=>Ri(Ct[kn.row],kn.column));return Li(he,Wt,Xe,lt,tw,A.none,P)},sm={generate:he=>{if(!u(he))throw new Error("cases must be an array");if(he.length===0)throw new Error("there must be at least one case");const Ce=[],Xe={};return U(he,(lt,Ct)=>{const Wt=Te(lt);if(Wt.length!==1)throw new Error("one and only one name per case");const kn=Wt[0],Vn=lt[kn];if(Xe[kn]!==void 0)throw new Error("duplicate key detected:"+kn);if(kn==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Vn))throw new Error("case arguments must be an array");Ce.push(kn),Xe[kn]=(...or)=>{const Mr=or.length;if(Mr!==Vn.length)throw new Error("Wrong number of arguments to case "+kn+". Expected "+Vn.length+" ("+Vn+"), got "+Mr);return{fold:(...ti)=>{if(ti.length!==he.length)throw new Error("Wrong number of arguments to fold. Expected "+he.length+", got "+ti.length);return ti[Ct].apply(null,or)},match:ti=>{const ki=Te(ti);if(Ce.length!==ki.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` Actual: `+ki.join(","));if(!se(Ce,fi=>z(ki,fi)))throw new Error("Not all branches were specified when using match. Specified: "+ki.join(", ")+` -Required: `+Ce.join(", "));return ti[kn].apply(null,or)},log:ti=>{console.log(ti,{constructors:Ce,constructor:kn,params:or})}}}}),Xe}},c1={...sm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},fv=(he,Ce)=>he.length===0?c1.none():he.length===1?c1.only(0):Ce===0?c1.left(0,1):Ce===he.length-1?c1.right(Ce-1,Ce):Ce>0&&Ce{const Wt=he.slice(0),kn=fv(he,Ce),Vn=v(j(Wt,v(0))),or=ki=>lt.singleColumnWidth(Wt[ki],Xe),Mr=(ki,xi)=>Ct.calcLeftEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative),no=(ki,xi,fi)=>Ct.calcMiddleDeltas(Wt,ki,xi,fi,Xe,lt.minCellWidth(),lt.isRelative),ti=(ki,xi)=>Ct.calcRightEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative);return kn.fold(Vn,or,Mr,no,ti)},Hh=(he,Ce,Xe)=>{let lt=0;for(let Ct=he;Ct{const Xe=Ca.justCells(he);return j(Xe,lt=>{const Ct=Hh(lt.column,lt.column+lt.colspan,Ce);return{element:lt.element,width:Ct,colspan:lt.colspan}})},Gx=(he,Ce)=>{const Xe=Ca.justColumns(he);return j(Xe,(lt,Ct)=>({element:lt.element,width:Ce[Ct],colspan:lt.colspan}))},df=(he,Ce)=>j(he.all,(Xe,lt)=>({element:Xe.element,height:Ce[lt]})),Tb=he=>K(he,(Ce,Xe)=>Ce+Xe,0),uu=(he,Ce)=>Ca.hasColumns(he)?Gx(he,Ce):hv(he,Ce),Cb=(he,Ce,Xe)=>{const lt=uu(he,Ce);U(lt,Ct=>{Xe.setElementWidth(Ct.element,Ct.width)})},Kx=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.fromTable(he),kn=Ct.getCellDelta(Ce),Vn=Ct.getWidths(Wt,Ct),or=Xe===Wt.grid.columns-1,Mr=lt.clampTableDelta(Vn,Xe,kn,Ct.minCellWidth(),or),no=dv(Vn,Xe,Mr,Ct,lt),ti=j(no,(ki,xi)=>ki+Vn[xi]);Cb(Wt,ti,Ct),lt.resizeTable(Ct.adjustTableWidth,Mr,or)},Jx=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=Ar(lt,he),Wt=j(Ct,(or,Mr)=>Xe===Mr?Math.max(Ce+or,Lp()):or),kn=df(lt,Wt);U(kn,or=>{Ne(or.element,or.height)}),U(Ca.justCells(lt),or=>{et(or.element)});const Vn=Tb(Wt);Ne(he,Vn)},iw=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.generate(Ce),kn=lt.getWidths(Wt,lt),Vn=lt.pixelWidth(),{newSizes:or,delta:Mr}=Ct.calcRedestributedWidths(kn,Vn,Xe.pixelDelta,lt.isRelative);Cb(Wt,or,lt),lt.adjustTableWidth(Mr)},e3=(he,Ce,Xe,lt)=>{const Ct=Ca.generate(Ce),Wt=lt.getWidths(Ct,lt);Cb(Ct,Wt,lt)},lm=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.column===lt.column)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.column-lt.column),u1=vt("col"),cm=vt("colgroup"),pv=he=>Yt(he)==="tr"||cm(he),hf=he=>{const Ce=ll(he,"colspan",1),Xe=ll(he,"rowspan",1);return{element:he,colspan:Ce,rowspan:Xe}},f1=(he,Ce=hf)=>{const Xe=Vn=>u1(Vn.element)?he.col(Vn):he.cell(Vn),lt=Vn=>cm(Vn.element)?he.colgroup(Vn):he.row(Vn),Ct=Vn=>{if(pv(Vn))return lt({element:Vn});{const or=Vn,Mr=Xe(Ce(or));return Wt=A.some({item:or,replacement:Mr}),Mr}};let Wt=A.none();return{getOrInit:(Vn,or)=>Wt.fold(()=>Ct(Vn),Mr=>or(Vn,Mr.item)?Mr.replacement:Ct(Vn))}},jm=he=>Ce=>{const Xe=[],lt=(kn,Vn)=>Y(Xe,or=>Vn(or.item,kn)),Ct=kn=>{const Vn=he==="td"?{scope:null}:{},or=Ce.replace(kn,he,Vn);return Xe.push({item:kn,sub:or}),or};return{replaceOrInit:(kn,Vn)=>{if(pv(kn)||u1(kn))return kn;{const or=kn;return lt(or,Vn).fold(()=>Ct(or),Mr=>Vn(kn,Mr.item)?Mr.sub:Ct(or))}}}},mv=he=>it(he,"scope").map(Ce=>Ce.substr(0,3)),Zd={modification:f1,transform:jm,merging:he=>({unmerge:lt=>{const Ct=mv(lt);return Ct.each(Wt=>st(lt,"scope",Wt)),()=>{const Wt=he.cell({element:lt,colspan:1,rowspan:1});return Jl(Wt,"width"),Jl(lt,"width"),Ct.each(kn=>st(Wt,"scope",kn)),Wt}},merge:lt=>{const Ct=()=>{const Wt=il(j(lt,mv));if(Wt.length===0)return A.none();{const kn=Wt[0],Vn=["row","col"];return $(Wt,Mr=>Mr!==kn&&z(Vn,Mr))?A.none():A.from(kn)}};return Jl(lt[0],"width"),Ct().fold(()=>at(lt[0],"scope"),Wt=>st(lt[0],"scope",Wt+"group")),v(lt[0])}})},vy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],m0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(["ol","ul"],Xe)},g0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(vy,Xe)},v0=(he,Ce)=>z(["br","img","hr","input"],he.property().name(Ce)),y0=bg(),Tf=he=>g0(y0,he),vo=he=>m0(y0,he),Ab=he=>v0(y0,he),F=he=>{const Ce=vt("br"),Xe=or=>se(or,Mr=>Ce(Mr)||Cn(Mr)&&Cs(Mr).trim().length===0),lt=or=>Yt(or)==="li"||Di(or,vo).isSome(),Ct=or=>sr(or).map(Mr=>Tf(Mr)?!0:Ab(Mr)?Yt(Mr)!=="img":!1).getOr(!1),Wt=or=>gg(or).bind(Mr=>{const no=Ct(Mr);return $r(Mr).map(ti=>no===!0||lt(ti)||Ce(Mr)||Tf(ti)&&!An(or,ti)?[]:[Nt.fromTag("br")])}).getOr([]),Vn=(()=>{const or=pe(he,Mr=>{const no=lr(Mr);return Xe(no)?[]:no.concat(Wt(Mr))});return or.length===0?[Nt.fromTag("br")]:or})();Mo(he[0]),$o(he[0],Vn)},G=he=>sy(he,!0),ue=he=>{vu(he).length===0&&pi(he)},Ae=(he,Ce)=>({grid:he,cursor:Ce}),He=he=>we(he,Ce=>we(Ce.cells,Xe=>{const lt=Xe.element;return nh(G(lt),lt)})),nt=(he,Ce,Xe)=>{var lt,Ct;const Wt=zl(he).rows;return A.from((Ct=(lt=Wt[Ce])===null||lt===void 0?void 0:lt.cells[Xe])===null||Ct===void 0?void 0:Ct.element).filter(G).orThunk(()=>He(Wt))},ct=(he,Ce,Xe)=>{const lt=nt(he,Ce,Xe);return Ae(he,lt)},Pt=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.row===lt.row)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.row-lt.row),jt=(he,Ce,Xe,lt)=>{const Ct=Ce[0].row,Wt=Pt(Ce),kn=K(Wt,(Vn,or)=>({grid:Sl(Vn.grid,Ct,or.row+Vn.delta,Xe,lt.getOrInit),delta:Vn.delta+1}),{grid:he,delta:0}).grid;return ct(kn,Ct,Ce[0].column)},hn=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Ct[Ct.length-1],kn=Wt.row+Wt.rowspan,Vn=K(Ct,(or,Mr)=>Sl(or,kn,Mr.row,Xe,lt.getOrInit),he);return ct(Vn,kn,Ce[0].column)},mn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=lm(Ct),kn=Wt[0].column,Vn=K(Wt,(or,Mr)=>({grid:Yx(or.grid,kn,Mr.column+or.delta,Xe,lt.getOrInit),delta:or.delta+1}),{grid:he,delta:0}).grid;return ct(Vn,Ct[0].row,kn)},Dn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=Ct[Ct.length-1],kn=Wt.column+Wt.colspan,Vn=lm(Ct),or=K(Vn,(Mr,no)=>Yx(Mr,kn,no.column,Xe,lt.getOrInit),he);return ct(or,Ct[0].row,kn)},Xn=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!0,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},$n=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},mr=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!1,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},Or=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},Kr=(he,Ce)=>(Xe,lt,Ct,Wt,kn)=>{const Vn=Pt(lt),or=j(Vn,no=>no.row),Mr=rw(Xe,or,he,Ce,Ct,Wt.replaceOrInit,kn);return ct(Mr,lt[0].row,lt[0].column)},Hr=Kr("thead",!0),fo=Kr("tbody",!1),mo=Kr("tfoot",!1),Io=(he,Ce,Xe,lt)=>{const Ct=lm(Ce.details),Wt=N4(he,j(Ct,Vn=>Vn.column)),kn=Wt.length>0?Wt[0].cells.length-1:0;return ct(Wt,Ct[0].row,Math.min(Ct[0].column,kn))},Qo=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Xx(he,Ct[0].row,Ct[Ct.length-1].row),kn=Math.max(zl(Wt).rows.length-1,0);return ct(Wt,Math.min(Ce[0].row,kn),Ce[0].column)},Po=(he,Ce,Xe,lt)=>{const Ct=Ce.cells;F(Ct);const Wt=xb(he,Ce.bounds,Xe,lt.merge(Ct));return Ae(Wt,A.from(Ct[0]))},Ii=(he,Ce,Xe,lt)=>{const Wt=K(Ce,(kn,Vn)=>ew(kn,Vn,Xe,lt.unmerge(Vn)),he);return Ae(Wt,A.from(Ce[0]))},bi=(he,Ce,Xe,lt)=>{const Wt=((or,Mr)=>{const no=Ca.fromTable(or);return iv(no,Mr,!0)})(Ce.clipboard,Ce.generators),kn=Rr(Ce.row,Ce.column);return Ss(kn,he,Wt,Ce.generators,Xe).fold(()=>Ae(he,A.some(Ce.element)),or=>ct(or,Ce.row,Ce.column))},Zi=(he,Ce,Xe)=>{const lt=vd(he,Xe.section),Ct=Ca.generate(lt);return iv(Ct,Ce,!0)},ra=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].column,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},ka=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Wt)},ea=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].row,kn=Ct[Wt],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ch(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},as=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ch(Wt,he,Vn,Ce.generators,Xe);return ct(or,Wt,Ce.cells[0].column)},Da=(he,Ce)=>{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=me(j(Xe.all,Mr=>Z(Mr.cells,no=>no.column>=kn&&no.column{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(tv).getOr("")},fl=(he,Ce)=>{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].row,Vn=Wt.row+Wt.rowspan,or=Xe.all.slice(kn,Vn);return nv(or)}).getOr("")},As=(he,Ce,Xe,lt)=>e3(he,Ce,Xe,lt.sizing),hc=(he,Ce,Xe,lt)=>iw(he,Ce,Xe,lt.sizing,lt.resize),os=(he,Ce)=>$(Ce,Xe=>Xe.column===0&&Xe.isLocked),Vs=(he,Ce)=>$(Ce,Xe=>Xe.column+Xe.colspan>=he.grid.columns&&Xe.isLocked),Fl=(he,Ce)=>{const Xe=Ls(he),lt=lm(Ce);return re(lt,(Ct,Wt)=>{const Vn=Xe[Wt.column].map(ds).getOr(0);return Ct+Vn},0)},kl=he=>(Ce,Xe)=>Th(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt)).map(lt=>({details:lt,pixelDelta:Fl(Ce,lt)})),Fc=(he,Ce)=>Np(he,Ce).map(Xe=>({details:Xe,pixelDelta:-Fl(he,Xe)})),qa=he=>(Ce,Xe)=>qx(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt.cells)),Sc=Zd.transform("th"),pc=Zd.transform("td"),sd=ad(jt,Th,c,c,Zd.modification),ld=ad(hn,Th,c,c,Zd.modification),cd=ad(mn,kl(!0),hc,c,Zd.modification),Cf=ad(Dn,kl(!1),hc,c,Zd.modification),xl=ad(Io,Fc,hc,ue,Zd.modification),eu=ad(Qo,Th,c,ue,Zd.modification),Td=ad(Xn,Np,c,c,Sc),Af=ad(mr,Np,c,c,pc),jf=ad(Hr,Np,c,c,Sc),Us=ad(fo,Np,c,c,pc),_l=ad(mo,Np,c,c,pc),fu=ad($n,Np,c,c,Sc),ni=ad(Or,Np,c,c,pc),Wc=ad(Po,J_,As,c,Zd.merging),Yc=ad(Ii,my,As,c,Zd.merging),$l=ad(bi,pC,As,c,Zd.modification),Ru=ad(ra,qa(!0),c,c,Zd.modification),Mh=ad(ka,qa(!1),c,c,Zd.modification),mc=ad(ea,qx,c,c,Zd.modification),dh=ad(as,qx,c,c,Zd.modification),hh=Da,Qm=ba,Qf=fl,tu=(he,Ce)=>he.dispatch("NewRow",{node:Ce}),qd=(he,Ce)=>he.dispatch("NewCell",{node:Ce}),Cd=(he,Ce,Xe)=>{he.dispatch("TableModified",{...Xe,table:Ce})},d1=(he,Ce,Xe,lt,Ct)=>{he.dispatch("TableSelectionChange",{cells:Ce,start:Xe,finish:lt,otherCells:Ct})},t2=he=>{he.dispatch("TableSelectionClear")},gv=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResizeStart",{target:Ce,width:Xe,height:lt,origin:Ct})},Lu=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResized",{target:Ce,width:Xe,height:lt,origin:Ct})},$c={structure:!1,style:!0},dl={structure:!0,style:!1},Mf={structure:!0,style:!0},du=(he,Ce)=>kf(he)?mt.percentageSize(Ce):l0(he)?mt.pixelSize(Ce):mt.getTableSize(Ce),Iu=(he,Ce,Xe)=>{const lt=Wa=>Yt(Im(Wa))==="table",Ct=Wa=>!lt(he)||kg(Wa).rows>1,Wt=Wa=>!lt(he)||kg(Wa).columns>1,kn=VO(he),Vn=ay(he)?c:fy,or=Wa=>{switch(z_(he)){case"section":return i1.section();case"sectionCells":return i1.sectionCells();case"cells":return i1.cells();default:return i1.getTableSectionType(Wa,"section")}},Mr=(Wa,bm)=>bm.cursor.fold(()=>{const Lg=vu(Wa);return ve(Lg).filter(Nr).map(S1=>{Xe.clearSelectedCells(Wa.dom);const Zf=he.dom.createRng();return Zf.selectNode(S1.dom),he.selection.setRng(Zf),st(S1,"data-mce-selected","1"),Zf})},Lg=>{const S1=fh(Lg),Zf=he.dom.createRng();return Zf.setStart(S1.element.dom,S1.offset),Zf.setEnd(S1.element.dom,S1.offset),he.selection.setRng(Zf),Xe.clearSelectedCells(Wa.dom),A.some(Zf)}),no=(Wa,bm,Lg,S1)=>(Zf,el,Ok=!1)=>{Oh(Zf);const Sk=Nt.fromDom(he.getDoc()),H3=i0(Lg,Sk,kn),n6={sizing:du(he,Zf),resize:ay(he)?K1():o1(),section:or(Zf)};return bm(Zf)?Wa(Zf,el,H3,n6).bind(Mv=>{Ce.refresh(Zf.dom),U(Mv.newRows,R2=>{tu(he,R2.dom)}),U(Mv.newCells,R2=>{qd(he,R2.dom)});const tx=Mr(Zf,Mv);return Nr(Zf)&&(Oh(Zf),Ok||Cd(he,Zf.dom,S1)),tx.map(R2=>({rng:R2,effect:S1}))}):A.none()},ti=no(eu,Ct,c,dl),ki=no(xl,Wt,c,dl),xi=no(sd,P,c,dl),fi=no(ld,P,c,dl),Vi=no(cd,P,Vn,dl),Xo=no(Cf,P,Vn,dl),oi=no(Wc,P,c,dl),wa=no(Yc,P,c,dl),Pa=no(Ru,P,c,dl),ta=no(Mh,P,c,dl),nu=no(mc,P,c,dl),Ll=no(dh,P,c,dl),$u=no($l,P,c,Mf),vm=no(fu,P,c,dl),gh=no(ni,P,c,dl),Jb=no(Td,P,c,dl),ex=no(Af,P,c,dl),Tl=no(jf,P,c,dl),Ld=no(Us,P,c,dl),sp=no(_l,P,c,dl);return{deleteRow:ti,deleteColumn:ki,insertRowsBefore:xi,insertRowsAfter:fi,insertColumnsBefore:Vi,insertColumnsAfter:Xo,mergeCells:oi,unmergeCells:wa,pasteColsBefore:Pa,pasteColsAfter:ta,pasteRowsBefore:nu,pasteRowsAfter:Ll,pasteCells:$u,makeCellsHeader:vm,unmakeCellsHeader:gh,makeColumnsHeader:Jb,unmakeColumnsHeader:ex,makeRowsHeader:Tl,makeRowsBody:Ld,makeRowsFooter:sp,getTableRowType:Qf,getTableCellType:Qm,getTableColType:hh}},vv=(he,Ce,Xe)=>{const lt=ll(he,Ce,1);Xe===1||lt<=1?at(he,Ce):st(he,Ce,Math.min(Xe,lt))},h1=(he,Ce)=>Xe=>{const lt=Xe.column+Xe.colspan-1,Ct=Xe.column;return lt>=he&&Ct{if(Ca.hasColumns(he)){const lt=Z(Ca.justColumns(he),h1(Ce,Xe)),Ct=j(lt,kn=>{const Vn=Sr(kn.element);return vv(Vn,"span",Xe-Ce),Vn}),Wt=Nt.fromTag("colgroup");return $o(Wt,Ct),[Wt]}else return[]},yy=(he,Ce,Xe)=>j(he.all,lt=>{const Ct=Z(lt.cells,h1(Ce,Xe)),Wt=j(Ct,Vn=>{const or=Sr(Vn.element);return vv(or,"colspan",Xe-Ce),or}),kn=Nt.fromTag("tr");return $o(kn,Wt),kn}),p1=(he,Ce)=>{const Xe=Ca.fromTable(he);return Np(Xe,Ce).map(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=n2(Xe,kn,Vn),Mr=yy(Xe,kn,Vn);return[...or,...Mr]})},b0=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Th(lt,Ce).bind(Wt=>{const kn=iv(lt,Xe,!1),or=zl(kn).rows.slice(Wt[0].row,Wt[Wt.length-1].row+Wt[Wt.length-1].rowspan),Mr=pe(or,ti=>{const ki=Z(ti.cells,xi=>!xi.isLocked);return ki.length>0?[{...ti,cells:ki}]:[]}),no=bb(Mr);return nh(no.length>0,no)}).map(Wt=>ov(Wt))},Hm=sm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),yv=(he,Ce,Xe)=>{const lt=Xe.substring(0,Xe.length-he.length),Ct=parseFloat(lt);return lt===Ct.toString()?Ce(Ct):Hm.invalid(Xe)},x0={...Hm,from:he=>iu(he,"%")?yv("%",Hm.percent,he):iu(he,"px")?yv("px",Hm.pixels,he):Hm.invalid(he)},r2=(he,Ce)=>j(he,Xe=>x0.from(Xe).fold(()=>Xe,Ct=>Ct/Ce*100+"%",Ct=>Ct+"%")),Mb=(he,Ce,Xe)=>{const lt=Xe/Ce;return j(he,Ct=>x0.from(Ct).fold(()=>Ct,kn=>kn*lt+"px",kn=>kn/100*Xe+"px"))},Ad=(he,Ce)=>{const Xe=he.fold(()=>v(""),lt=>{const Ct=lt/Ce;return v(Ct+"px")},()=>{const lt=100/Ce;return v(lt+"%")});return Q(Ce,Xe)},xy=(he,Ce,Xe)=>he.fold(()=>Ce,lt=>Mb(Ce,Xe,lt),lt=>r2(Ce,Xe)),_y=(he,Ce,Xe)=>{const lt=x0.from(Xe),Ct=se(he,Wt=>Wt==="0px")?Ad(lt,he.length):xy(lt,he,Ce);return um(Ct)},Md=(he,Ce)=>he.length===0?Ce:K(he,(Xe,lt)=>x0.from(lt).fold(v(0),_,_)+Xe,0),m1=(he,Ce)=>{const Xe=Math.floor(he);return{value:Xe+Ce,remainder:he-Xe}},_0=(he,Ce)=>x0.from(he).fold(v(he),Xe=>Xe+Ce+"px",Xe=>Xe+Ce+"%"),um=he=>{if(he.length===0)return he;const Ce=K(he,(lt,Ct)=>{const Wt=x0.from(Ct).fold(()=>({value:Ct,remainder:0}),kn=>m1(kn,"px"),kn=>({value:kn+"%",remainder:0}));return{output:[Wt.value].concat(lt.output),remainder:lt.remainder+Wt.remainder}},{output:[],remainder:0}),Xe=Ce.output;return Xe.slice(0,Xe.length-1).concat([_0(Xe[Xe.length-1],Math.round(Ce.remainder))])},Wd=x0.from,w0=(he,Ce,Xe)=>{U(Ce,lt=>{const Ct=he.slice(lt.column,lt.colspan+lt.column),Wt=Md(Ct,tc());Al(lt.element,"width",Wt+Xe)})},Eb=(he,Ce,Xe)=>{U(Ce,(lt,Ct)=>{const Wt=Md([he[Ct]],tc());Al(lt.element,"width",Wt+Xe)})},wy=(he,Ce,Xe)=>{U(Xe,lt=>{Jl(lt.element,"height")}),U(Ce,(lt,Ct)=>{Al(lt.element,"height",he[Ct])})},aw=he=>Wd(he).fold(v("px"),v("px"),v("%")),Zm=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=lt.all,Wt=Ca.justCells(lt),kn=Ca.justColumns(lt);Ce.each(Vn=>{const or=aw(Vn),Mr=Ol(he),no=ai(lt,he),ti=_y(no,Mr,Vn);Ca.hasColumns(lt)?Eb(ti,kn,or):w0(ti,Wt,or),Al(he,"width",Vn)}),Xe.each(Vn=>{const or=wr(he),Mr=ns(lt,he),no=_y(Mr,or,Vn);wy(no,Ct,Wt),Al(he,"height",Vn)})},sw=Gr,Pb=ro,t3=po,O0=he=>{at(he,"width"),at(he,"height")},hu=he=>{const Ce=Pr(he);Zm(he,A.some(Ce),A.none()),O0(he)},ip=he=>{const Ce=In(he);Zm(he,A.some(Ce),A.none()),O0(he)},$4=he=>{const Ce=Ir(he);Zm(he,A.none(),A.some(Ce)),O0(he)},qm=he=>{Jl(he,"width");const Ce=$d(he),Xe=Ce.length>0?Ce:vu(he);U(Xe,lt=>{Jl(lt,"width"),O0(lt)}),O0(he)},lw={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cw=()=>Nt.fromTag("th"),o2=()=>Nt.fromTag("td"),$p=()=>Nt.fromTag("col"),Rb=(he,Ce,Xe,lt)=>{const Ct=Nt.fromTag("tr");for(let Wt=0;Wt{const Ce=Nt.fromTag("colgroup");return Q(he,()=>to(Ce,$p())),Ce},Oy=(he,Ce,Xe,lt)=>Q(he,Ct=>Rb(Ce,Xe,lt,Ct)),bv=(he,Ce,Xe,lt,Ct,Wt=lw)=>{const kn=Nt.fromTag("table"),Vn=Ct!=="cells";Wl(kn,Wt.styles),bt(kn,Wt.attributes),Wt.colGroups&&to(kn,Lb(Ce));const or=Math.min(he,Xe);if(Vn&&Xe>0){const xi=Nt.fromTag("thead");to(kn,xi);const Vi=Oy(Xe,Ce,Ct==="sectionCells"?or:0,lt);$o(xi,Vi)}const Mr=Nt.fromTag("tbody");to(kn,Mr);const no=Vn?he-or:he,ki=Oy(no,Ce,Vn?0:Xe,lt);return $o(Mr,ki),kn},uw=he=>he.dom.innerHTML,fw=he=>{const Ce=Nt.fromTag("div"),Xe=Nt.fromDom(he.dom.cloneNode(!0));return to(Ce,Xe),uw(Ce)},ud=(he,Ce)=>{he.selection.select(Ce.dom,!0),he.selection.collapse(!0)},i2=(he,Ce)=>{yl(Ce,"td,th").each(C(ud,he))},a2=(he,Ce)=>{U(Oo(Ce,"tr"),Xe=>{tu(he,Xe.dom),U(Oo(Xe,"th,td"),lt=>{qd(he,lt.dom)})})},s2=he=>s(he)&&he.indexOf("%")!==-1,Ib=(he,Ce,Xe,lt,Ct)=>{const Wt=Z1(he),kn={styles:Wt,attributes:Qd(he),colGroups:N_(he)};return he.undoManager.ignore(()=>{const Vn=bv(Xe,Ce,Ct,lt,z_(he),kn);st(Vn,"data-mce-id","__mce");const or=fw(Vn);he.insertContent(or),he.addVisual()}),yl(Im(he),'table[data-mce-id="__mce"]').map(Vn=>(l0(he)?ip(Vn):yp(he)?qm(Vn):(kf(he)||s2(Wt.width))&&hu(Vn),Oh(Vn),at(Vn,"data-mce-id"),a2(he,Vn),i2(he,Vn),Vn.dom)).getOrNull()},n3=(he,Ce,Xe,lt={})=>{const Ct=Wt=>a(Wt)&&Wt>0;if(Ct(Ce)&&Ct(Xe)){const Wt=lt.headerRows||0,kn=lt.headerColumns||0;return Ib(he,Xe,Ce,kn,Wt)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Eh=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Db="x-tinymce/dom-table-",l2=Db+"rows",fm=Db+"columns",r3=he=>{const Ce=Eh.FakeClipboardItem(he);Eh.write([Ce])},xv=he=>{var Ce;const Xe=(Ce=Eh.read())!==null&&Ce!==void 0?Ce:[];return we(Xe,lt=>A.from(lt.getType(he)))},g1=he=>{xv(he).isSome()&&Eh.clear()},_v=he=>{he.fold(Sy,Ce=>r3({[l2]:Ce}))},wv=()=>xv(l2),Sy=()=>g1(l2),Ov=he=>{he.fold(o3,Ce=>r3({[fm]:Ce}))},dw=()=>xv(fm),o3=()=>g1(fm),Bb=he=>Z_(zp(he),Dm(he)).filter(e1),hw=he=>q_(zp(he),Dm(he)).filter(e1),v1=(he,Ce)=>{const Xe=Dm(he),lt=()=>Bb(he).each(Xo=>{bl(Xo,Xe).filter(x(Xe)).each(oi=>{const wa=Nt.fromText("");if(Jr(oi,wa),pi(oi),he.dom.isEmpty(he.getBody()))he.setContent(""),he.selection.setCursorLocation();else{const Pa=he.dom.createRng();Pa.setStart(wa.dom,0),Pa.setEnd(wa.dom,0),he.selection.setRng(Pa),he.nodeChanged()}})}),Ct=Xo=>Bb(he).each(oi=>{yp(he)||l0(he)||kf(he)||bl(oi,Xe).each(Pa=>{Xo==="relative"&&!sw(Pa)?hu(Pa):Xo==="fixed"&&!Pb(Pa)?ip(Pa):Xo==="responsive"&&!t3(Pa)&&qm(Pa),Oh(Pa),Cd(he,Pa.dom,dl)})}),Wt=Xo=>bl(Xo,Xe),kn=Xo=>hw(he).bind(oi=>Wt(oi).map(wa=>Xo(wa,oi))),Vn=(Xo,oi)=>{kn(wa=>{he.formatter.toggle("tableclass",{value:oi},wa.dom),Cd(he,wa.dom,$c)})},or=(Xo,oi)=>{kn(wa=>{const Pa=uc(he),nu=se(Pa,Ll=>he.formatter.match("tablecellclass",{value:oi},Ll.dom))?he.formatter.remove:he.formatter.apply;U(Pa,Ll=>nu("tablecellclass",{value:oi},Ll.dom)),Cd(he,wa.dom,$c)})},Mr=()=>{Bb(he).each(Xo=>{bl(Xo,Xe).each(oi=>{zi(oi,"caption").fold(()=>{const wa=Nt.fromTag("caption");to(wa,Nt.fromText("Caption")),co(oi,wa,0),he.selection.setCursorLocation(wa.dom,0)},wa=>{vt("caption")(Xo)&&wn("td",oi).each(Pa=>he.selection.setCursorLocation(Pa.dom,0)),pi(wa)}),Cd(he,oi.dom,dl)})})},no=Xo=>{he.focus()},ti=(Xo,oi=!1)=>kn((wa,Pa)=>{const ta=Vx(uc(he),wa,Pa);Xo(wa,ta,oi).each(no)}),ki=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi),Pa=i0(c,Nt.fromDom(he.getDoc()),A.none());return b0(Xo,wa,Pa)}),xi=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi);return p1(Xo,wa)}),fi=(Xo,oi)=>oi().each(wa=>{const Pa=j(wa,ta=>Sr(ta));kn((ta,nu)=>{const Ll=a0(Nt.fromDom(he.getDoc())),$u=u0(uc(he),nu,Pa,Ll);Xo(ta,$u).each(no)})}),Vi=Xo=>(oi,wa)=>Re(wa,"type").each(Pa=>{ti(Xo(Pa),wa.no_events)});Ie({mceTableSplitCells:()=>ti(Ce.unmergeCells),mceTableMergeCells:()=>ti(Ce.mergeCells),mceTableInsertRowBefore:()=>ti(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>ti(Ce.insertRowsAfter),mceTableInsertColBefore:()=>ti(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>ti(Ce.insertColumnsAfter),mceTableDeleteCol:()=>ti(Ce.deleteColumn),mceTableDeleteRow:()=>ti(Ce.deleteRow),mceTableCutCol:()=>xi().each(Xo=>{Ov(Xo),ti(Ce.deleteColumn)}),mceTableCutRow:()=>ki().each(Xo=>{_v(Xo),ti(Ce.deleteRow)}),mceTableCopyCol:()=>xi().each(Xo=>Ov(Xo)),mceTableCopyRow:()=>ki().each(Xo=>_v(Xo)),mceTablePasteColBefore:()=>fi(Ce.pasteColsBefore,dw),mceTablePasteColAfter:()=>fi(Ce.pasteColsAfter,dw),mceTablePasteRowBefore:()=>fi(Ce.pasteRowsBefore,wv),mceTablePasteRowAfter:()=>fi(Ce.pasteRowsAfter,wv),mceTableDelete:lt,mceTableCellToggleClass:or,mceTableToggleClass:Vn,mceTableToggleCaption:Mr,mceTableSizingMode:(Xo,oi)=>Ct(oi),mceTableCellType:Vi(Xo=>Xo==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:Vi(Xo=>Xo==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:Vi(Xo=>{switch(Xo){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(Xo,oi)=>he.addCommand(oi,Xo)),he.addCommand("mceInsertTable",(Xo,oi)=>{n3(he,oi.rows,oi.columns,oi.options)}),he.addCommand("mceTableApplyCellStyle",(Xo,oi)=>{const wa=nu=>"tablecell"+nu.toLowerCase().replace("-","");if(!n(oi))return;const Pa=Z(uc(he),e1);if(Pa.length===0)return;const ta=$e(oi,(nu,Ll)=>he.formatter.has(wa(Ll))&&s(nu));Ze(ta)||(Ie(ta,(nu,Ll)=>{const $u=wa(Ll);U(Pa,vm=>{nu===""?he.formatter.remove($u,{value:null},vm.dom,!0):he.formatter.apply($u,{value:nu},vm.dom)})}),Wt(Pa[0]).each(nu=>Cd(he,nu.dom,$c)))})},c2=(he,Ce)=>{const Xe=Dm(he),lt=Ct=>q_(zp(he)).bind(Wt=>bl(Wt,Xe).map(kn=>{const Vn=Vx(uc(he),kn,Wt);return Ct(kn,Vn)})).getOr("");Ie({mceTableRowType:()=>lt(Ce.getTableRowType),mceTableCellType:()=>lt(Ce.getTableCellType),mceTableColType:()=>lt(Ce.getTableColType)},(Ct,Wt)=>he.addQueryValueHandler(Wt,Ct))},Wm=sm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),pw=(he,Ce,Xe,lt)=>he.fold(Ce,Xe,lt),mw=he=>he.fold(_,_,_),wp=Wm.before,zb=Wm.on,u2=Wm.after,Hf={before:wp,on:zb,after:u2,cata:pw,getStart:mw},ap={create:(he,Ce)=>({selection:he,kill:Ce})},Nb=(he,Ce)=>{const Xe=he.document.createRange();return Xe.selectNode(Ce.dom),Xe},i3=(he,Ce)=>{const Xe=he.document.createRange();return dm(Xe,Ce),Xe},dm=(he,Ce)=>he.selectNodeContents(Ce.dom),ky=(he,Ce)=>{Ce.fold(Xe=>{he.setStartBefore(Xe.dom)},(Xe,lt)=>{he.setStart(Xe.dom,lt)},Xe=>{he.setStartAfter(Xe.dom)})},f2=(he,Ce)=>{Ce.fold(Xe=>{he.setEndBefore(Xe.dom)},(Xe,lt)=>{he.setEnd(Xe.dom,lt)},Xe=>{he.setEndAfter(Xe.dom)})},a3=(he,Ce,Xe)=>{const lt=he.document.createRange();return ky(lt,Ce),f2(lt,Xe),lt},d2=(he,Ce,Xe,lt,Ct)=>{const Wt=he.document.createRange();return Wt.setStart(Ce.dom,Xe),Wt.setEnd(lt.dom,Ct),Wt},s3=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom,width:he.width,height:he.height}),h2=he=>{const Ce=he.getClientRects(),Xe=Ce.length>0?Ce[0]:he.getBoundingClientRect();return Xe.width>0||Xe.height>0?A.some(Xe).map(s3):A.none()},Fb=sm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),l3=(he,Ce,Xe)=>Ce(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset),c3=(he,Ce)=>Ce.match({domRange:Xe=>({ltr:v(Xe),rtl:A.none}),relative:(Xe,lt)=>({ltr:cs(()=>a3(he,Xe,lt)),rtl:cs(()=>A.some(a3(he,lt,Xe)))}),exact:(Xe,lt,Ct,Wt)=>({ltr:cs(()=>d2(he,Xe,lt,Ct,Wt)),rtl:cs(()=>A.some(d2(he,Ct,Wt,Xe,lt)))})}),U4=(he,Ce)=>{const Xe=Ce.ltr();return Xe.collapsed?Ce.rtl().filter(Ct=>Ct.collapsed===!1).map(Ct=>Fb.rtl(Nt.fromDom(Ct.endContainer),Ct.endOffset,Nt.fromDom(Ct.startContainer),Ct.startOffset)).getOrThunk(()=>l3(he,Fb.ltr,Xe)):l3(he,Fb.ltr,Xe)},p2=(he,Ce)=>{const Xe=c3(he,Ce);return U4(he,Xe)},m2=(he,Ce)=>p2(he,Ce).match({ltr:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(lt.dom,Ct),Vn.setEnd(Wt.dom,kn),Vn},rtl:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(Wt.dom,kn),Vn.setEnd(lt.dom,Ct),Vn}});Fb.ltr,Fb.rtl;const S0={create:(he,Ce,Xe,lt)=>({start:he,soffset:Ce,finish:Xe,foffset:lt})},y1={create:(he,Ce,Xe,lt)=>({start:Hf.on(he,Ce),finish:Hf.on(Xe,lt)})},g2=(he,Ce)=>{const Xe=m2(he,Ce);return S0.create(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset)},u3=y1.create,zM=(he,Ce,Xe,lt,Ct,Wt,kn)=>An(Xe,Ct)&<===Wt?A.none():Bs(Xe,"td,th",Ce).bind(Vn=>Bs(Ct,"td,th",Ce).bind(or=>mC(he,Ce,Vn,or,kn))),mC=(he,Ce,Xe,lt,Ct)=>An(Xe,lt)?A.none():Y1(Xe,lt,Ce).bind(Wt=>{const kn=Wt.boxes.getOr([]);return kn.length>1?(Ct(he,kn,Wt.start,Wt.finish),A.some(ap.create(A.some(u3(Xe,0,Xe,Is(Xe))),!0))):A.none()}),$b=(he,Ce,Xe,lt,Ct)=>{const Wt=kn=>(Ct.clearBeforeUpdate(Xe),Ct.selectRange(Xe,kn.boxes,kn.start,kn.finish),kn.boxes);return Q_(lt,he,Ce,Ct.firstSelectedSelector,Ct.lastSelectedSelector).map(Wt)},gC=(he,Ce)=>({item:he,mode:Ce}),vw=(he,Ce,Xe,lt=Ty)=>he.property().parent(Ce).map(Ct=>gC(Ct,lt)),Ty=(he,Ce,Xe,lt=yw)=>Xe.sibling(he,Ce).map(Ct=>gC(Ct,lt)),yw=(he,Ce,Xe,lt=yw)=>{const Ct=he.property().children(Ce);return Xe.first(Ct).map(kn=>gC(kn,lt))},vC=[{current:vw,next:Ty,fallback:A.none()},{current:Ty,next:yw,fallback:A.some(vw)},{current:yw,next:yw,fallback:A.some(Ty)}],yC=(he,Ce,Xe,lt,Ct=vC)=>Y(Ct,kn=>kn.current===Xe).bind(kn=>kn.current(he,Ce,lt,kn.next).orThunk(()=>kn.fallback.bind(Vn=>yC(he,Ce,Vn,lt)))),v2={left:()=>({sibling:(Xe,lt)=>Xe.query().prevSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[Xe.length-1]):A.none()}),right:()=>({sibling:(Xe,lt)=>Xe.query().nextSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[0]):A.none()})},b1=(he,Ce,Xe,lt,Ct,Wt)=>yC(he,Ce,lt,Ct).bind(Vn=>Wt(Vn.item)?A.none():Xe(Vn.item)?A.some(Vn.item):b1(he,Vn.item,Xe,Vn.mode,Ct,Wt)),FM=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Ty,v2.left(),lt),j4=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Ty,v2.right(),lt),bC=he=>Ce=>he.property().children(Ce).length===0,xC=(he,Ce,Xe)=>Q4(he,Ce,bC(he),Xe),_C=(he,Ce,Xe)=>wC(he,Ce,bC(he),Xe),Q4=FM,wC=j4,Cy=bg(),OC=(he,Ce)=>xC(Cy,he,Ce),Vb=(he,Ce)=>_C(Cy,he,Ce),Ay=(he,Ce,Xe)=>Q4(Cy,he,Ce,Xe),bw=(he,Ce,Xe)=>wC(Cy,he,Ce,Xe),y2=(he,Ce,Xe)=>Di(he,Ce,Xe).isSome(),f3=sm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),My=(he,Ce,Xe)=>{const lt=he.getRect(Ce),Ct=he.getRect(Xe);return Ct.right>lt.left&&Ct.leftBs(he,"tr"),b2={...f3,verify:(he,Ce,Xe,lt,Ct,Wt,kn)=>Bs(lt,"td,th",kn).bind(Vn=>Bs(Ce,"td,th",kn).map(or=>An(Vn,or)?An(lt,Vn)&&Is(Vn)===Ct?Wt(or):f3.none("in same cell"):Sh(hm,[Vn,or]).fold(()=>My(he,or,Vn)?f3.success():Wt(or),Mr=>Wt(or)))).getOr(f3.none("default")),cata:(he,Ce,Xe,lt,Ct)=>he.fold(Ce,Xe,lt,Ct)},SC=(he,Ce,Xe,lt)=>({parent:he,children:Ce,element:Xe,index:lt}),x2=he=>$r(he).bind(Ce=>{const Xe=lr(Ce);return _2(Xe,he).map(lt=>SC(Ce,Xe,he,lt))}),_2=(he,Ce)=>ee(he,C(An,Ce)),Yd=vt("br"),d3=(he,Ce,Xe)=>Ce(he,Xe).bind(lt=>Cn(lt)&&Cs(lt).trim().length===0?d3(lt,Ce,Xe):A.some(lt)),xw=(he,Ce,Xe)=>Xe.traverse(Ce).orThunk(()=>d3(Ce,Xe.gather,he)).map(Xe.relative),h3=(he,Ce)=>zr(he,Ce).filter(Yd).orThunk(()=>zr(he,Ce-1).filter(Yd)),kC=(he,Ce,Xe,lt)=>h3(Ce,Xe).bind(Ct=>lt.traverse(Ct).fold(()=>d3(Ct,lt.gather,he).map(lt.relative),Wt=>x2(Wt).map(kn=>Hf.on(kn.parent,kn.index)))),Z4=(he,Ce,Xe,lt)=>(Yd(Ce)?xw(he,Ce,lt):kC(he,Ce,Xe,lt)).map(Wt=>({start:Wt,finish:Wt})),p3=he=>b2.cata(he,Ce=>A.none(),()=>A.none(),Ce=>A.some(Oc(Ce,0)),Ce=>A.some(Oc(Ce,Is(Ce)))),Ef=(he,Ce)=>({left:he.left,top:he.top+Ce,right:he.right,bottom:he.bottom+Ce}),m3=(he,Ce)=>({left:he.left,top:he.top-Ce,right:he.right,bottom:he.bottom-Ce}),x1=(he,Ce,Xe)=>({left:he.left+Ce,top:he.top+Xe,right:he.right+Ce,bottom:he.bottom+Xe}),TC=he=>he.top,q4=he=>he.bottom,Sv=(he,Ce,Xe)=>Xe>=0&&Xe0?he.getRangedRect(Ce,Xe-1,Ce,Xe):A.none(),_w=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom}),w2=(he,Ce)=>A.some(he.getRect(Ce)),g3=(he,Ce,Xe)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?Sv(he,Ce,Xe).map(_w):A.none(),v3=(he,Ce)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?he.getRangedRect(Ce,0,Ce,Is(Ce)).map(_w):A.none(),Ey=5,VM=100,Vp=sm.generate([{none:[]},{retry:["caret"]}]),k0=(he,Ce)=>he.leftCe.right,W4=(he,Ce,Xe)=>To(Ce,Tf).fold(T,lt=>v3(he,lt).exists(Ct=>k0(Xe,Ct))),CC=(he,Ce,Xe,lt,Ct)=>{const Wt=Ef(Ct,Ey);return Math.abs(Xe.bottom-lt.bottom)<1||Xe.top>Ct.bottom?Vp.retry(Wt):Xe.top===Ct.bottom?Vp.retry(Ef(Ct,1)):W4(he,Ce,Ct)?Vp.retry(x1(Wt,Ey,0)):Vp.none()},Y4={point:TC,adjuster:(he,Ce,Xe,lt,Ct)=>{const Wt=m3(Ct,Ey);return Math.abs(Xe.top-lt.top)<1||Xe.bottomhe.elementFromPoint(Ce,Xe).filter(lt=>Yt(lt)==="table").isSome(),EC=(he,Ce,Xe,lt,Ct)=>Op(he,Ce,Xe,Ce.move(lt,Ey),Ct),Op=(he,Ce,Xe,lt,Ct)=>Ct===0?A.some(lt):MC(he,lt.left,Ce.point(lt))?EC(he,Ce,Xe,lt,Ct-1):he.situsFromPoint(lt.left,Ce.point(lt)).bind(Wt=>Wt.start.fold(A.none,kn=>v3(he,kn).bind(Vn=>Ce.adjuster(he,kn,Vn,Xe,lt).fold(A.none,or=>Op(he,Ce,Xe,or,Ct-1))).orThunk(()=>A.some(lt)),A.none)),Ub=(he,Ce,Xe)=>he.point(Ce)>Xe.getInnerHeight()?A.some(he.point(Ce)-Xe.getInnerHeight()):he.point(Ce)<0?A.some(-he.point(Ce)):A.none(),G4=(he,Ce,Xe)=>{const lt=he.move(Xe,Ey),Ct=Op(Ce,he,Xe,lt,VM).getOr(lt);return Ub(he,Ct,Ce).fold(()=>Ce.situsFromPoint(Ct.left,he.point(Ct)),Wt=>(Ce.scrollBy(0,Wt),Ce.situsFromPoint(Ct.left,he.point(Ct)-Wt)))},Py={tryUp:C(G4,Y4),tryDown:C(G4,X4),getJumpSize:v(Ey)},Sp=20,Up=(he,Ce,Xe)=>he.getSelection().bind(lt=>Z4(Ce,lt.finish,lt.foffset,Xe).fold(()=>A.some(Oc(lt.finish,lt.foffset)),Ct=>{const Wt=he.fromSitus(Ct),kn=b2.verify(he,lt.finish,lt.foffset,Wt.finish,Wt.foffset,Xe.failure,Ce);return p3(kn)})),ph=(he,Ce,Xe,lt,Ct,Wt)=>Wt===0?A.none():Xm(he,Ce,Xe,lt,Ct).bind(kn=>{const Vn=he.fromSitus(kn),or=b2.verify(he,Xe,lt,Vn.finish,Vn.foffset,Ct.failure,Ce);return b2.cata(or,()=>A.none(),()=>A.some(kn),Mr=>An(Xe,Mr)&<===0?Ym(he,Xe,lt,m3,Ct):ph(he,Ce,Mr,0,Ct,Wt-1),Mr=>An(Xe,Mr)&<===Is(Mr)?Ym(he,Xe,lt,Ef,Ct):ph(he,Ce,Mr,Is(Mr),Ct,Wt-1))}),Ym=(he,Ce,Xe,lt,Ct)=>g3(he,Ce,Xe).bind(Wt=>y3(he,Ct,lt(Wt,Py.getJumpSize()))),y3=(he,Ce,Xe)=>{const lt=wf().browser;return lt.isChromium()||lt.isSafari()||lt.isFirefox()?Ce.retry(he,Xe):A.none()},Xm=(he,Ce,Xe,lt,Ct)=>g3(he,Xe,lt).bind(Wt=>y3(he,Ct,Wt)),jb=(he,Ce,Xe)=>Up(he,Ce,Xe).bind(lt=>ph(he,Ce,lt.element,lt.offset,Xe,Sp).map(he.fromSitus)),UM=(he,Ce)=>y2(he,Xe=>$r(Xe).exists(lt=>An(lt,Ce))),K4=(he,Ce,Xe,lt,Ct)=>Bs(lt,"td,th",Ce).bind(Wt=>Bs(Wt,"table",Ce).bind(kn=>UM(Ct,kn)?jb(he,Ce,Xe).bind(Vn=>Bs(Vn.finish,"td,th",Ce).map(or=>({start:Wt,finish:or,range:Vn}))):A.none())),jM=(he,Ce,Xe,lt,Ct,Wt)=>Wt(lt,Ce).orThunk(()=>K4(he,Ce,Xe,lt,Ct).map(kn=>{const Vn=kn.range;return ap.create(A.some(u3(Vn.start,Vn.soffset,Vn.finish,Vn.foffset)),!0)})),QM=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[0])?Ay(lt,Wt=>gg(Wt).isSome(),Ce).map(Wt=>{const kn=Is(Wt);return ap.create(A.some(u3(Wt,kn,Wt,kn)),!0)}):A.none()})),PC=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[Ct.length-1])?bw(lt,Wt=>ch(Wt).isSome(),Ce).map(Wt=>ap.create(A.some(u3(Wt,0,Wt,0)),!0)):A.none()})),b3=(he,Ce,Xe,lt,Ct,Wt,kn)=>K4(he,Xe,lt,Ct,Wt).bind(Vn=>mC(Ce,Xe,Vn.start,Vn.finish,kn)),x3=he=>{let Ce=he;return{get:()=>Ce,set:Ct=>{Ce=Ct}}},Ph=he=>{const Ce=x3(A.none()),Xe=()=>Ce.get().each(he);return{clear:()=>{Xe(),Ce.set(A.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Vn=>{Xe(),Ce.set(A.some(Vn))}}},O2=()=>{const he=Ph(c);return{...he,on:Xe=>he.get().each(Xe)}},S2=(he,Ce)=>Bs(he,"td,th",Ce),ww=he=>vr(he).exists(sy),J4=(he,Ce,Xe,lt)=>{const Ct=O2(),Wt=Ct.clear,kn=no=>{Ct.on(ti=>{lt.clearBeforeUpdate(Ce),S2(no.target,Xe).each(ki=>{Y1(ti,ki,Xe).each(xi=>{const fi=xi.boxes.getOr([]);if(fi.length===1){const Vi=fi[0],Xo=yg(Vi)==="false",oi=yf(K0(no.target),Vi,An);Xo&&oi&<.selectRange(Ce,fi,Vi,Vi)}else fi.length>1&&(lt.selectRange(Ce,fi,xi.start,xi.finish),he.selectContents(ki))})})})};return{clearstate:Wt,mousedown:no=>{lt.clear(Ce),S2(no.target,Xe).filter(ww).each(Ct.set)},mouseover:no=>{kn(no)},mouseup:no=>{kn(no),Wt()}}},Ow={traverse:sr,gather:Vb,relative:Hf.before,retry:Py.tryDown,failure:b2.failedDown},Sw={traverse:gr,gather:OC,relative:Hf.before,retry:Py.tryUp,failure:b2.failedUp},Qb=he=>Ce=>Ce===he,ek=Qb(38),_3=Qb(40),Eg=he=>he>=37&&he<=40,RC={isBackward:Qb(37),isForward:Qb(39)},LC={isBackward:Qb(39),isForward:Qb(37)},kv=he=>{const Ce=he!==void 0?he.dom:document,Xe=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,lt=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Ni(Xe,lt)},pm=(he,Ce,Xe)=>{const Ct=(Xe!==void 0?Xe.dom:document).defaultView;Ct&&Ct.scrollBy(he,Ce)},kw=sm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Hb=he=>kw.exact(he.start,he.soffset,he.finish,he.foffset),Ry=he=>he.match({domRange:Ce=>Nt.fromDom(Ce.startContainer),relative:(Ce,Xe)=>Hf.getStart(Ce),exact:(Ce,Xe,lt,Ct)=>Ce}),tk=kw.domRange,w3=kw.relative,IC=kw.exact,HM=he=>{const Ce=Ry(he);return Br(Ce)},ZM=S0.create,Zb={domRange:tk,relative:w3,exact:IC,exactFromRange:Hb,getWin:HM,range:ZM},nk=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretPositionFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe)).bind(Ct=>{if(Ct.offsetNode===null)return A.none();const Wt=he.createRange();return Wt.setStart(Ct.offsetNode,Ct.offset),Wt.collapse(),A.some(Wt)})},k2=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretRangeFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe))},Tw=(he,Ce,Xe)=>he.caretPositionFromPoint?nk(he,Ce,Xe):he.caretRangeFromPoint?k2(he,Ce,Xe):A.none(),qM=(he,Ce,Xe)=>{const lt=he.document;return Tw(lt,Ce,Xe).map(Ct=>S0.create(Nt.fromDom(Ct.startContainer),Ct.startOffset,Nt.fromDom(Ct.endContainer),Ct.endOffset))},O3=(he,Ce)=>{const Xe=Yt(he);return Xe==="input"?Hf.after(he):z(["br","img"],Xe)?Ce===0?Hf.before(he):Hf.after(he):Hf.on(he,Ce)},rk=(he,Ce)=>{const Xe=he.fold(Hf.before,O3,Hf.after),lt=Ce.fold(Hf.before,O3,Hf.after);return Zb.relative(Xe,lt)},ok=(he,Ce,Xe,lt)=>{const Ct=O3(he,Ce),Wt=O3(Xe,lt);return Zb.relative(Ct,Wt)},S3=(he,Ce,Xe,lt)=>{const Wt=Un(he).dom.createRange();return Wt.setStart(he.dom,Ce),Wt.setEnd(Xe.dom,lt),Wt},ik=(he,Ce,Xe,lt)=>{const Ct=S3(he,Ce,Xe,lt),Wt=An(he,Xe)&&Ce===lt;return Ct.collapsed&&!Wt},T2=he=>A.from(he.getSelection()),k3=(he,Ce)=>{T2(he).each(Xe=>{Xe.removeAllRanges(),Xe.addRange(Ce)})},T3=(he,Ce,Xe,lt,Ct)=>{const Wt=d2(he,Ce,Xe,lt,Ct);k3(he,Wt)},C3=(he,Ce,Xe,lt,Ct,Wt)=>{Ce.collapse(Xe.dom,lt),Ce.extend(Ct.dom,Wt)},A3=(he,Ce)=>p2(he,Ce).match({ltr:(Xe,lt,Ct,Wt)=>{T3(he,Xe,lt,Ct,Wt)},rtl:(Xe,lt,Ct,Wt)=>{T2(he).each(kn=>{if(kn.setBaseAndExtent)kn.setBaseAndExtent(Xe.dom,lt,Ct.dom,Wt);else if(kn.extend)try{C3(he,kn,Xe,lt,Ct,Wt)}catch{T3(he,Ct,Wt,Xe,lt)}else T3(he,Ct,Wt,Xe,lt)})}}),Ys=(he,Ce,Xe,lt,Ct)=>{const Wt=ok(Ce,Xe,lt,Ct);A3(he,Wt)},_1=(he,Ce,Xe)=>{const lt=rk(Ce,Xe);A3(he,lt)},qb=he=>{if(he.rangeCount>0){const Ce=he.getRangeAt(0),Xe=he.getRangeAt(he.rangeCount-1);return A.some(S0.create(Nt.fromDom(Ce.startContainer),Ce.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset))}else return A.none()},M3=he=>{if(he.anchorNode===null||he.focusNode===null)return qb(he);{const Ce=Nt.fromDom(he.anchorNode),Xe=Nt.fromDom(he.focusNode);return ik(Ce,he.anchorOffset,Xe,he.focusOffset)?A.some(S0.create(Ce,he.anchorOffset,Xe,he.focusOffset)):qb(he)}},E3=(he,Ce,Xe=!0)=>{const Ct=(Xe?i3:Nb)(he,Ce);k3(he,Ct)},Ly=he=>T2(he).filter(Ce=>Ce.rangeCount>0).bind(M3),P3=he=>Ly(he).map(Ce=>Zb.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),ak=(he,Ce)=>{const Xe=m2(he,Ce);return h2(Xe)},sk=(he,Ce,Xe)=>qM(he,Ce,Xe),lk=he=>{T2(he).each(Ce=>Ce.removeAllRanges())},Tv=he=>({elementFromPoint:(Xo,oi)=>Nt.fromPoint(Nt.fromDom(he.document),Xo,oi),getRect:Xo=>Xo.dom.getBoundingClientRect(),getRangedRect:(Xo,oi,wa,Pa)=>{const ta=Zb.exact(Xo,oi,wa,Pa);return ak(he,ta)},getSelection:()=>P3(he).map(Xo=>g2(he,Xo)),fromSitus:Xo=>{const oi=Zb.relative(Xo.start,Xo.finish);return g2(he,oi)},situsFromPoint:(Xo,oi)=>sk(he,Xo,oi).map(wa=>y1.create(wa.start,wa.soffset,wa.finish,wa.foffset)),clearSelection:()=>{lk(he)},collapseSelection:(Xo=!1)=>{P3(he).each(oi=>oi.fold(wa=>wa.collapse(Xo),(wa,Pa)=>{const ta=Xo?wa:Pa;_1(he,ta,ta)},(wa,Pa,ta,nu)=>{const Ll=Xo?wa:ta,$u=Xo?Pa:nu;Ys(he,Ll,$u,Ll,$u)}))},setSelection:Xo=>{Ys(he,Xo.start,Xo.soffset,Xo.finish,Xo.foffset)},setRelativeSelection:(Xo,oi)=>{_1(he,Xo,oi)},selectNode:Xo=>{E3(he,Xo,!1)},selectContents:Xo=>{E3(he,Xo)},getInnerHeight:()=>he.innerHeight,getScrollY:()=>kv(Nt.fromDom(he.document)).top,scrollBy:(Xo,oi)=>{pm(Xo,oi,Nt.fromDom(he.document))}}),Wb=(he,Ce)=>({rows:he,cols:Ce}),DC=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=J4(Ct,Ce,Xe,lt);return{clearstate:Wt.clearstate,mousedown:Wt.mousedown,mouseover:Wt.mouseover,mouseup:Wt.mouseup}},Cw=he=>To(he,Ot).exists(sy),ck=(he,Ce)=>Cw(he)||Cw(Ce),R3=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=()=>(lt.clear(Ce),A.none());return{keydown:(or,Mr,no,ti,ki,xi)=>{const fi=or.raw,Vi=fi.which,Xo=fi.shiftKey===!0;return cy(Ce,lt.selectedSelector).fold(()=>(Eg(Vi)&&!Xo&<.clearBeforeUpdate(Ce),Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?C(b3,Ct,Ce,Xe,Ow,ti,Mr,lt.selectRange):ek(Vi)&&Xo?C(b3,Ct,Ce,Xe,Sw,ti,Mr,lt.selectRange):_3(Vi)?C(jM,Ct,Xe,Ow,ti,Mr,PC):ek(Vi)?C(jM,Ct,Xe,Sw,ti,Mr,QM):A.none),wa=>{const Pa=ta=>()=>we(ta,Ll=>$b(Ll.rows,Ll.cols,Ce,wa,lt)).fold(()=>jO(Ce,lt.firstSelectedSelector,lt.lastSelectedSelector).map(Ll=>{const $u=_3(Vi)||xi.isForward(Vi)?Hf.after:Hf.before;return Ct.setRelativeSelection(Hf.on(Ll.first,0),$u(Ll.table)),lt.clear(Ce),ap.create(A.none(),!0)}),Ll=>A.some(ap.create(A.none(),!0)));return Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?Pa([Wb(1,0)]):ek(Vi)&&Xo?Pa([Wb(-1,0)]):xi.isBackward(Vi)&&Xo?Pa([Wb(0,-1),Wb(-1,0)]):xi.isForward(Vi)&&Xo?Pa([Wb(0,1),Wb(1,0)]):Eg(Vi)&&!Xo?Wt:A.none})()},keyup:(or,Mr,no,ti,ki)=>cy(Ce,lt.selectedSelector).fold(()=>{const xi=or.raw,fi=xi.which;return xi.shiftKey===!0&&Eg(fi)&&ck(Mr,ti)?zM(Ce,Xe,Mr,no,ti,ki,lt.selectRange):A.none()},A.none)}},L3=(he,Ce,Xe,lt)=>{const Ct=Tv(he);return(Wt,kn)=>{lt.clearBeforeUpdate(Ce),Y1(Wt,kn,Xe).each(Vn=>{const or=Vn.boxes.getOr([]);lt.selectRange(Ce,or,Vn.start,Vn.finish),Ct.selectContents(kn),Ct.collapseSelection()})}},uk=(he,Ce)=>{const Xe=Dt(he,Ce);return Xe===void 0||Xe===""?[]:Xe.split(" ")},BC=(he,Ce,Xe)=>{const Ct=uk(he,Ce).concat([Xe]);return st(he,Ce,Ct.join(" ")),!0},Cv=(he,Ce,Xe)=>{const lt=Z(uk(he,Ce),Ct=>Ct!==Xe);return lt.length>0?st(he,Ce,lt.join(" ")):at(he,Ce),!1},I3=he=>he.dom.classList!==void 0,zC=he=>uk(he,"class"),Gm=(he,Ce)=>BC(he,"class",Ce),Ed=(he,Ce)=>Cv(he,"class",Ce),Av=(he,Ce)=>{I3(he)?he.dom.classList.add(Ce):Gm(he,Ce)},fk=he=>{(I3(he)?he.dom.classList:zC(he)).length===0&&at(he,"class")},WM=(he,Ce)=>{I3(he)?he.dom.classList.remove(Ce):Ed(he,Ce),fk(he)},D3=(he,Ce)=>I3(he)&&he.dom.classList.contains(Ce),dk=(he,Ce)=>{U(Ce,Xe=>{WM(he,Xe)})},C2=he=>Ce=>{Av(Ce,he)},NC=he=>Ce=>{dk(Ce,he)},XM={byClass:he=>{const Ce=C2(he.selected),Xe=NC([he.selected,he.lastSelected,he.firstSelected]),lt=Wt=>{const kn=Oo(Wt,he.selectedSelector);U(kn,Xe)};return{clearBeforeUpdate:lt,clear:lt,selectRange:(Wt,kn,Vn,or)=>{lt(Wt),U(kn,Ce),Av(Vn,he.firstSelected),Av(or,he.lastSelected)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}},byAttr:(he,Ce,Xe)=>{const lt=or=>{at(or,he.selected),at(or,he.firstSelected),at(or,he.lastSelected)},Ct=or=>{st(or,he.selected,"1")},Wt=or=>{kn(or),Xe()},kn=or=>{const Mr=Oo(or,`${he.selectedSelector},${he.firstSelectedSelector},${he.lastSelectedSelector}`);U(Mr,lt)};return{clearBeforeUpdate:kn,clear:Wt,selectRange:(or,Mr,no,ti)=>{Wt(or),U(Mr,Ct),st(no,he.firstSelected,"1"),st(ti,he.lastSelected,"1"),Ce(Mr,no,ti)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}}},FC=(he,Ce,Xe,lt)=>{switch(he.tag){case"none":return Ce();case"single":return lt(he.element);case"multiple":return Xe(he.elements)}},$C=()=>({tag:"none"}),Ei=he=>({tag:"multiple",elements:he}),Pd=he=>({tag:"single",element:he}),Aw=(he,Ce,Xe)=>({get:()=>wg(he(),Xe).fold(()=>Ce().fold($C,Pd),Ei)}),Rd=(he,Ce)=>{const Xe=he.slice(0,Ce[Ce.length-1].row+1),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(0,Ce[Ce.length-1].column+1);return j(Wt,kn=>kn.element)})},Km=(he,Ce)=>{const Xe=he.slice(Ce[0].row+Ce[0].rowspan-1,he.length),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(Ce[0].column+Ce[0].colspan-1,Ct.cells.length);return j(Wt,kn=>kn.element)})},hk=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Th(lt,Ce).map(Wt=>{const kn=iv(lt,Xe,!1),{rows:Vn}=zl(kn),or=Rd(Vn,Wt),Mr=Km(Vn,Wt);return{upOrLeftCells:or,downOrRightCells:Mr}})},Yb=(he,Ce,Xe,lt,Ct,Wt,kn)=>({target:he,x:Ce,y:Xe,stop:lt,prevent:Ct,kill:Wt,raw:kn}),Mw=he=>{const Ce=Nt.fromDom(Cr(he).getOr(he.target)),Xe=()=>he.stopPropagation(),lt=()=>he.preventDefault(),Ct=h(lt,Xe);return Yb(Ce,he.clientX,he.clientY,Xe,lt,Ct,he)},Xb=(he,Ce)=>Xe=>{he(Xe)&&Ce(Mw(Xe))},Ew=(he,Ce,Xe,lt,Ct)=>{const Wt=Xb(Xe,lt);return he.dom.addEventListener(Ce,Wt,Ct),{unbind:C(GM,he,Ce,Wt,Ct)}},VC=(he,Ce,Xe,lt)=>Ew(he,Ce,Xe,lt,!1),GM=(he,Ce,Xe,lt)=>{he.dom.removeEventListener(Ce,Xe,lt)},KM=P,A2=(he,Ce,Xe)=>VC(he,Ce,KM,Xe),Gb=Mw,pk=he=>!D3(Nt.fromDom(he.target),"ephox-snooker-resizer-bar"),mk=(he,Ce)=>{const Xe=Aw(()=>Nt.fromDom(he.getBody()),()=>q_(zp(he),Dm(he)),Xu.selectedSelector),lt=(or,Mr,no)=>{bl(Mr).each(ki=>{const xi=j(or,wa=>wa.dom),fi=VO(he),Vi=i0(c,Nt.fromDom(he.getDoc()),fi),Xo=uc(he),oi=hk(ki,{selection:Xo},Vi).map(wa=>ze(wa,Pa=>j(Pa,ta=>ta.dom))).getOrUndefined();d1(he,xi,Mr.dom,no.dom,oi)})},Ct=()=>t2(he),Wt=XM.byAttr(Xu,lt,Ct);return he.on("init",or=>{const Mr=he.getWin(),no=Im(he),ti=Dm(he),ki=()=>{const Tl=he.selection,Ld=Nt.fromDom(Tl.getStart()),sp=Nt.fromDom(Tl.getEnd());Sh(bl,[Ld,sp]).fold(()=>Wt.clear(no),c)},xi=DC(Mr,no,ti,Wt),fi=R3(Mr,no,ti,Wt),Vi=L3(Mr,no,ti,Wt),Xo=Tl=>Tl.raw.shiftKey===!0;he.on("TableSelectorChange",Tl=>Vi(Tl.start,Tl.finish));const oi=(Tl,Ld)=>{Xo(Tl)&&(Ld.kill&&Tl.kill(),Ld.selection.each(sp=>{const Rg=Zb.relative(sp.start,sp.finish),ym=m2(Mr,Rg);he.selection.setRng(ym)}))},wa=Tl=>{const Ld=Gb(Tl);if(Ld.raw.shiftKey&&Eg(Ld.raw.which)){const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer);fi.keyup(Ld,Rg,sp.startOffset,ym,sp.endOffset).each(P2=>{oi(Ld,P2)})}},Pa=Tl=>{const Ld=Gb(Tl);Ce.hide();const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer),P2=Kt(RC,LC)(Nt.fromDom(he.selection.getStart()));fi.keydown(Ld,Rg,sp.startOffset,ym,sp.endOffset,P2).each(Wa=>{oi(Ld,Wa)}),Ce.show()},ta=Tl=>Tl.button===0,nu=Tl=>Tl.buttons===void 0?!0:(Tl.buttons&1)!==0,Ll=Tl=>{xi.clearstate()},$u=Tl=>{ta(Tl)&&pk(Tl)&&xi.mousedown(Gb(Tl))},vm=Tl=>{nu(Tl)&&pk(Tl)&&xi.mouseover(Gb(Tl))},gh=Tl=>{ta(Tl)&&pk(Tl)&&xi.mouseup(Gb(Tl))},ex=(()=>{const Tl=x3(Nt.fromDom(no)),Ld=x3(0);return{touchEnd:Rg=>{const ym=Nt.fromDom(Rg.target);if(vt("td")(ym)||vt("th")(ym)){const P2=Tl.get(),Wa=Ld.get();An(P2,ym)&&Rg.timeStamp-Wa<300&&(Rg.preventDefault(),Vi(ym,ym))}Tl.set(ym),Ld.set(Rg.timeStamp)}}})();he.on("dragstart",Ll),he.on("mousedown",$u),he.on("mouseover",vm),he.on("mouseup",gh),he.on("touchend",ex.touchEnd),he.on("keyup",wa),he.on("keydown",Pa),he.on("NodeChange",ki)}),he.on("PreInit",()=>{he.serializer.addTempAttr(Xu.firstSelected),he.serializer.addTempAttr(Xu.lastSelected)}),{getSelectedCells:()=>FC(Xe.get(),v([]),or=>j(or,Mr=>Mr.dom),or=>[or.dom]),clearSelectedCells:or=>Wt.clear(Nt.fromDom(or))}},jp=he=>{let Ce=[];return{bind:Wt=>{if(Wt===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Wt)},unbind:Wt=>{Ce=Z(Ce,kn=>kn!==Wt)},trigger:(...Wt)=>{const kn={};U(he,(Vn,or)=>{kn[Vn]=Wt[or]}),U(Ce,Vn=>{Vn(kn)})}}},w1=he=>{const Ce=ze(he,lt=>({bind:lt.bind,unbind:lt.unbind})),Xe=ze(he,lt=>lt.trigger);return{registry:Ce,trigger:Xe}},B3=(he,Ce)=>{let Xe=null;const lt=()=>{b(Xe)||(clearTimeout(Xe),Xe=null)};return{cancel:lt,throttle:(...Wt)=>{lt(),Xe=setTimeout(()=>{Xe=null,he.apply(null,Wt)},Ce)}}},Pg=he=>he.slice(0).sort(),z3=(he,Ce)=>{throw new Error("All required keys ("+Pg(he).join(", ")+") were not specified. Specified keys were: "+Pg(Ce).join(", ")+".")},JM=he=>{throw new Error("Unsupported keys for object: "+Pg(he).join(", "))},N3=(he,Ce)=>{if(!u(Ce))throw new Error("The "+he+" fields must be an array. Was: "+Ce+".");U(Ce,Xe=>{if(!s(Xe))throw new Error("The value "+Xe+" in the "+he+" fields was not a string.")})},F3=(he,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Pg(he).join(", ")+") were not.")},eE=he=>{const Ce=Pg(he);Y(Ce,(lt,Ct)=>Ct{throw new Error("The field: "+lt+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},tE=(he,Ce)=>nE(he,Ce,{validate:m,label:"function"}),nE=(he,Ce,Xe)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return N3("required",Ce),eE(Ce),lt=>{const Ct=Te(lt);se(Ce,Vn=>z(Ct,Vn))||z3(Ce,Ct),he(Ce,Ct);const kn=Z(Ce,Vn=>!Xe.validate(lt[Vn],Vn));return kn.length>0&&F3(kn,Xe.label),lt}},rE=(he,Ce)=>{const Xe=Z(Ce,lt=>!z(he,lt));Xe.length>0&&JM(Xe)},$3=he=>tE(rE,he),UC=$3(["compare","extract","mutate","sink"]),oE=$3(["element","start","stop","destroy"]),V3=$3(["forceDrop","drop","move","delayDrop"]),mh=()=>{let he=A.none();const Ce=()=>{he=A.none()},Xe=(Wt,kn)=>{const Vn=he.map(or=>Wt.compare(or,kn));return he=A.some(kn),Vn},lt=(Wt,kn)=>{kn.extract(Wt).each(or=>{Xe(kn,or).each(no=>{Ct.trigger.move(no)})})},Ct=w1({move:jp(["info"])});return{onEvent:lt,reset:Ce,events:Ct.registry}},Jm=()=>{const he=w1({move:jp(["info"])});return{onEvent:c,reset:c,events:he.registry}},mm=()=>{const he=Jm(),Ce=mh();let Xe=he;return{on:()=>{Xe.reset(),Xe=Ce},off:()=>{Xe.reset(),Xe=he},isOn:()=>Xe===Ce,onEvent:(Vn,or)=>{Xe.onEvent(Vn,or)},events:Ce.events}},U3=(he,Ce,Xe)=>{let lt=!1;const Ct=w1({start:jp([]),stop:jp([])}),Wt=mm(),kn=()=>{fi.stop(),Wt.isOn()&&(Wt.off(),Ct.trigger.stop())},Vn=B3(kn,200),or=Xo=>{fi.start(Xo),Wt.on(),Ct.trigger.start()},Mr=Xo=>{Vn.cancel(),Wt.onEvent(Xo,Ce)};Wt.events.move.bind(Xo=>{Ce.mutate(he,Xo.info)});const no=()=>{lt=!0},ti=()=>{lt=!1},ki=()=>lt,xi=Xo=>(...oi)=>{lt&&Xo.apply(null,oi)},fi=Ce.sink(V3({forceDrop:kn,drop:xi(kn),move:xi(Mr),delayDrop:xi(Vn.throttle)}),Xe),Vi=()=>{fi.destroy()};return{element:fi.element,go:or,on:no,off:ti,isActive:ki,destroy:Vi,events:Ct.registry}},Pw=he=>{const Ce=he.replace(/\./g,"-");return{resolve:lt=>Ce+"-"+lt}},Rw=Pw("ephox-dragster").resolve,iE=he=>{const Ce={layerClass:Rw("blocker"),...he},Xe=Nt.fromTag("div");return st(Xe,"role","presentation"),Wl(Xe,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Av(Xe,Rw("blocker")),Av(Xe,Ce.layerClass),{element:v(Xe),destroy:()=>{pi(Xe)}}};var ZC=UC({compare:(he,Ce)=>Ni(Ce.left-he.left,Ce.top-he.top),extract:he=>A.some(Ni(he.x,he.y)),sink:(he,Ce)=>{const Xe=iE(Ce),lt=A2(Xe.element(),"mousedown",he.forceDrop),Ct=A2(Xe.element(),"mouseup",he.drop),Wt=A2(Xe.element(),"mousemove",he.move),kn=A2(Xe.element(),"mouseout",he.delayDrop),Vn=()=>{Xe.destroy(),Ct.unbind(),Wt.unbind(),kn.unbind(),lt.unbind()},or=no=>{to(no,Xe.element())},Mr=()=>{pi(Xe.element())};return oE({element:Xe.element,start:or,stop:Mr,destroy:Vn})},mutate:(he,Ce)=>{he.mutate(Ce.left,Ce.top)}});const j3=(he,Ce={})=>{var Xe;const lt=(Xe=Ce.mode)!==null&&Xe!==void 0?Xe:ZC;return U3(he,lt,Ce)},Jo=Pw("ephox-snooker").resolve,gm=()=>{const he=w1({drag:jp(["xDelta","yDelta"])});return{mutate:(Xe,lt)=>{he.trigger.drag(Xe,lt)},events:he.registry}},WC=()=>{const he=w1({drag:jp(["xDelta","yDelta","target"])});let Ce=A.none();const Xe=gm();return Xe.events.drag.bind(Wt=>{Ce.each(kn=>{he.trigger.drag(Wt.xDelta,Wt.yDelta,kn)})}),{assign:Wt=>{Ce=A.some(Wt)},get:()=>Ce,mutate:Xe.mutate,events:he.registry}},gk=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce-lt/2+"px",top:Xe+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-column":he,role:"presentation"}),Wt},Lw=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce+"px",top:Xe-Ct/2+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-row":he,role:"presentation"}),Wt},Kb=Jo("resizer-bar"),vk=Jo("resizer-rows"),Iw=Jo("resizer-cols"),YC=7,sE=(he,Ce)=>pe(he.all,(Xe,lt)=>Ce(Xe.element)?[lt]:[]),yk=(he,Ce)=>{const Xe=[];return Q(he.grid.columns,lt=>{Ca.getColumnAt(he,lt).map(Wt=>Wt.element).forall(Ce)&&Xe.push(lt)}),Z(Xe,lt=>{const Ct=Ca.filterItems(he,Wt=>Wt.column===lt);return se(Ct,Wt=>Ce(Wt.element))})},Dw=he=>{const Ce=Oo(he.parent(),"."+Kb);U(Ce,pi)},Iy=(he,Ce,Xe)=>{const lt=he.origin();U(Ce,Ct=>{Ct.each(Wt=>{const kn=Xe(lt,Wt);Av(kn,Kb),to(he.parent(),kn)})})},XC=(he,Ce,Xe,lt)=>{Iy(he,Ce,(Ct,Wt)=>{const kn=gk(Wt.col,Wt.x-Ct.left,Xe.top-Ct.top,YC,lt);return Av(kn,Iw),kn})},GC=(he,Ce,Xe,lt)=>{Iy(he,Ce,(Ct,Wt)=>{const kn=Lw(Wt.row,Xe.left-Ct.left,Wt.y-Ct.top,lt,YC);return Av(kn,vk),kn})},lE=(he,Ce,Xe,lt,Ct)=>{const Wt=nl(Xe),kn=Ce.isResizable,Vn=lt.length>0?Os.positions(lt,Xe):[],or=Vn.length>0?sE(he,kn):[],Mr=Z(Vn,(xi,fi)=>$(or,Vi=>fi===Vi));GC(Ce,Mr,Wt,ds(Xe));const no=Ct.length>0?tp.positions(Ct,Xe):[],ti=no.length>0?yk(he,kn):[],ki=Z(no,(xi,fi)=>$(ti,Vi=>fi===Vi));XC(Ce,ki,Wt,uo(Xe))},bk=(he,Ce)=>{if(Dw(he),he.isResizable(Ce)){const Xe=Ca.fromTable(Ce),lt=_u(Xe),Ct=Ls(Xe);lE(Xe,he,Ce,lt,Ct)}},cE=(he,Ce)=>{const Xe=Oo(he.parent(),"."+Kb);U(Xe,Ce)},Qp=he=>{cE(he,Ce=>{Al(Ce,"display","none")})},Zh=he=>{cE(he,Ce=>{Al(Ce,"display","block")})},M2=he=>D3(he,vk),ED=he=>D3(he,Iw),uE=Jo("resizer-bar-dragging"),xk=he=>{const Ce=WC(),Xe=j3(Ce,{});let lt=A.none();const Ct=(fi,Vi)=>A.from(Dt(fi,Vi));Ce.events.drag.bind(fi=>{Ct(fi.target,"data-row").each(Vi=>{const Xo=Dc(fi.target,"top");Al(fi.target,"top",Xo+fi.yDelta+"px")}),Ct(fi.target,"data-column").each(Vi=>{const Xo=Dc(fi.target,"left");Al(fi.target,"left",Xo+fi.xDelta+"px")})});const Wt=(fi,Vi)=>{const Xo=Dc(fi,Vi),oi=ll(fi,"data-initial-"+Vi,0);return Xo-oi};Xe.events.stop.bind(()=>{Ce.get().each(fi=>{lt.each(Vi=>{Ct(fi,"data-row").each(Xo=>{const oi=Wt(fi,"top");at(fi,"data-initial-top"),xi.trigger.adjustHeight(Vi,oi,parseInt(Xo,10))}),Ct(fi,"data-column").each(Xo=>{const oi=Wt(fi,"left");at(fi,"data-initial-left"),xi.trigger.adjustWidth(Vi,oi,parseInt(Xo,10))}),bk(he,Vi)})})});const kn=(fi,Vi)=>{xi.trigger.startAdjust(),Ce.assign(fi),st(fi,"data-initial-"+Vi,Dc(fi,Vi)),Av(fi,uE),Al(fi,"opacity","0.2"),Xe.go(he.parent())},Vn=A2(he.parent(),"mousedown",fi=>{M2(fi.target)&&kn(fi.target,"top"),ED(fi.target)&&kn(fi.target,"left")}),or=fi=>An(fi,he.view()),Mr=fi=>Bs(fi,"table",or).filter(sy),no=A2(he.view(),"mouseover",fi=>{Mr(fi.target).fold(()=>{Nr(fi.target)&&Dw(he)},Vi=>{Xe.isActive()&&(lt=A.some(Vi),bk(he,Vi))})}),ti=()=>{Vn.unbind(),no.unbind(),Xe.destroy(),Dw(he)},ki=fi=>{bk(he,fi)},xi=w1({adjustHeight:jp(["table","delta","row"]),adjustWidth:jp(["table","delta","column"]),startAdjust:jp([])});return{destroy:ti,refresh:ki,on:Xe.on,off:Xe.off,hideBars:C(Qp,he),showBars:C(Zh,he),events:xi.registry}},fE={create:(he,Ce,Xe)=>{const lt=Os,Ct=tp,Wt=xk(he),kn=w1({beforeResize:jp(["table","type"]),afterResize:jp(["table","type"]),startDrag:jp([])});return Wt.events.adjustHeight.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"row");const Mr=lt.delta(Vn.delta,or);Jx(or,Mr,Vn.row),kn.trigger.afterResize(or,"row")}),Wt.events.startAdjust.bind(Vn=>{kn.trigger.startDrag()}),Wt.events.adjustWidth.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"col");const Mr=Ct.delta(Vn.delta,or),no=Xe(or);Kx(or,Mr,Vn.column,Ce,no),kn.trigger.afterResize(or,"col")}),{on:Wt.on,off:Wt.off,refreshBars:Wt.refresh,hideBars:Wt.hideBars,showBars:Wt.showBars,destroy:Wt.destroy,events:kn.registry}}},O1={only:(he,Ce)=>{const Xe=Pn(he)?tr(he):he;return{parent:v(Xe),view:v(he),origin:v(Ni(0,0)),isResizable:Ce}},detached:(he,Ce,Xe)=>{const lt=()=>nl(Ce);return{parent:v(Ce),view:v(he),origin:lt,isResizable:Xe}},body:(he,Ce,Xe)=>({parent:v(Ce),view:v(he),origin:v(Ni(0,0)),isResizable:Xe})},Q3=()=>{const he=Nt.fromTag("div");return Wl(he,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),to(Eo(),he),he},hE=(he,Ce)=>he.inline?O1.body(Nt.fromDom(he.getBody()),Q3(),Ce):O1.only(Nt.fromDom(he.getDoc()),Ce),pE=(he,Ce)=>{he.inline&&pi(Ce.parent())},JC=he=>y(he)&&he.nodeName==="TABLE",Bw="bar-",_k=he=>Dt(he,"data-mce-resize")!=="false",e6=he=>{const Ce=Ca.fromTable(he);Ca.hasColumns(Ce)||U(vu(he),Xe=>{const lt=Ml(Xe,"width");Al(Xe,"width",lt),at(Xe,"width")})},RD=he=>Tc(he,"corner-"),E2=he=>bh(he,"corner-"),wk=he=>{const Ce=O2(),Xe=O2(),lt=O2();let Ct,Wt,kn,Vn;const or=oi=>du(he,oi),Mr=()=>lu(he)?o1():K1(),no=oi=>kg(oi).columns,ti=oi=>kg(oi).rows,ki=(oi,wa,Pa,ta)=>{const nu=E2(wa),Ll=iu(nu,"e"),$u=Tc(nu,"n");if(Wt===""&&hu(oi),Vn===""&&$4(oi),Pa!==Ct&&Wt!==""){Al(oi,"width",Wt);const vm=Mr(),gh=or(oi),Jb=lu(he)||Ll?no(oi)-1:0;Kx(oi,Pa-Ct,Jb,vm,gh)}else if(UO(Wt)){const vm=parseFloat(Wt.replace("%","")),gh=Pa*vm/Ct;Al(oi,"width",gh+"%")}if(W1(Wt)&&e6(oi),ta!==kn&&Vn!==""){Al(oi,"height",Vn);const vm=$u?0:ti(oi)-1;Jx(oi,ta-kn,vm)}},xi=()=>{Xe.on(oi=>{oi.destroy()}),lt.on(oi=>{pE(he,oi)})};return he.on("init",()=>{const oi=hE(he,_k);if(lt.set(oi),rm(he)&&Bp(he)){const wa=Mr(),Pa=fE.create(oi,wa,or);Pa.on(),Pa.events.startDrag.bind(ta=>{Ce.set(he.selection.getRng())}),Pa.events.beforeResize.bind(ta=>{const nu=ta.table.dom;gv(he,nu,J0(nu),F_(nu),Bw+ta.type)}),Pa.events.afterResize.bind(ta=>{const nu=ta.table,Ll=nu.dom;Oh(nu),Ce.on($u=>{he.selection.setRng($u),he.focus()}),Lu(he,Ll,J0(Ll),F_(Ll),Bw+ta.type),he.undoManager.add()}),Xe.set(Pa)}}),he.on("ObjectResizeStart",oi=>{const wa=oi.target;if(JC(wa)){const Pa=Nt.fromDom(wa);U(he.dom.select(".mce-clonedresizable"),ta=>{he.dom.addClass(ta,"mce-"+db(he)+"-columns")}),!Pb(Pa)&&l0(he)?ip(Pa):!sw(Pa)&&kf(he)&&hu(Pa),t3(Pa)&&Tc(oi.origin,Bw)&&hu(Pa),Ct=oi.width,Wt=yp(he)?"":$_(he,wa).getOr(""),kn=oi.height,Vn=Dx(he,wa).getOr("")}}),he.on("ObjectResized",oi=>{const wa=oi.target;if(JC(wa)){const Pa=Nt.fromDom(wa),ta=oi.origin;RD(ta)&&ki(Pa,ta,oi.width,oi.height),Oh(Pa),Cd(he,Pa.dom,$c)}}),he.on("SwitchMode",()=>{Xe.on(oi=>{he.mode.isReadOnly()?oi.hideBars():oi.showBars()})}),he.on("dragstart dragend",oi=>{Xe.on(wa=>{oi.type==="dragstart"?(wa.hideBars(),wa.off()):(wa.on(),wa.showBars())})}),he.on("remove",()=>{xi()}),{refresh:oi=>{Xe.on(wa=>wa.refreshBars(Nt.fromDom(oi)))},hide:()=>{Xe.on(oi=>oi.hideBars())},show:()=>{Xe.on(oi=>oi.showBars())}}},LD=he=>{H1(he);const Ce=wk(he),Xe=mk(he,Ce),lt=Iu(he,Ce,Xe);return v1(he,lt),c2(he,lt),Og(he,lt),{getSelectedCells:Xe.getSelectedCells,clearSelectedCells:Xe.clearSelectedCells}},t6=he=>({table:LD(he)});var mE=()=>{t.add("dom",t6)};mE()})();(function(){const t=Object.getPrototypeOf,e=(l,N,W)=>{var fe;return W(l,N.prototype)?!0:((fe=l.constructor)===null||fe===void 0?void 0:fe.name)===N.name},o=l=>{const N=typeof l;return l===null?"null":N==="object"&&Array.isArray(l)?"array":N==="object"&&e(l,String,(W,fe)=>fe.isPrototypeOf(W))?"string":N},f=l=>N=>o(N)===l,E=l=>N=>typeof N===l,d=l=>N=>l===N,s=(l,N)=>u(l)&&e(l,N,(W,fe)=>t(W)===fe),n=f("string"),u=f("object"),b=l=>s(l,Object),i=f("array"),S=d(null),w=E("boolean"),y=d(void 0),m=l=>l==null,a=l=>!m(l),c=E("function"),h=E("number"),p=(l,N)=>{if(i(l)){for(let W=0,fe=l.length;W{},_=l=>()=>l(),O=(l,N)=>(...W)=>l(N.apply(null,W)),C=(l,N)=>W=>l(N(W)),x=l=>()=>l,R=l=>l,M=(l,N)=>l===N;function T(l,...N){return(...W)=>{const fe=N.concat(W);return l.apply(null,fe)}}const P=l=>N=>!l(N),A=l=>()=>{throw new Error(l)},L=l=>l(),D=x(!1),k=x(!0);class I{constructor(N,W){this.tag=N,this.value=W}static some(N){return new I(!0,N)}static none(){return I.singletonNone}fold(N,W){return this.tag?W(this.value):N()}isSome(){return this.tag}isNone(){return!this.tag}map(N){return this.tag?I.some(N(this.value)):I.none()}bind(N){return this.tag?N(this.value):I.none()}exists(N){return this.tag&&N(this.value)}forall(N){return!this.tag||N(this.value)}filter(N){return!this.tag||N(this.value)?this:I.none()}getOr(N){return this.tag?this.value:N}or(N){return this.tag?this:N}getOrThunk(N){return this.tag?this.value:N()}orThunk(N){return this.tag?this:N()}getOrDie(N){if(this.tag)return this.value;throw new Error(N??"Called getOrDie on None")}static from(N){return a(N)?I.some(N):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(N){this.tag&&N(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(l,N)=>$.call(l,N),U=(l,N)=>{const W=j(l,N);return W===-1?I.none():I.some(W)},X=(l,N)=>j(l,N)>-1,te=(l,N)=>{for(let W=0,fe=l.length;W{const W=[];for(let fe=0;fe{const W=[];for(let fe=0;fe{const W=l.length,fe=new Array(W);for(let Se=0;Se{for(let W=0,fe=l.length;W{for(let W=l.length-1;W>=0;W--){const fe=l[W];N(fe,W)}},ee=(l,N)=>{const W=[],fe=[];for(let Se=0,Be=l.length;Se{const W=[];for(let fe=0,Se=l.length;fe(Y(l,(fe,Se)=>{W=N(W,fe,Se)}),W),se=(l,N,W)=>(q(l,(fe,Se)=>{W=N(W,fe,Se)}),W),ae=(l,N,W)=>{for(let fe=0,Se=l.length;feae(l,N,D),de=(l,N)=>{for(let W=0,fe=l.length;W{const N=[];for(let W=0,fe=l.length;Wye(re(l,N)),_e=(l,N)=>{for(let W=0,fe=l.length;W{const N=z.call(l,0);return N.reverse(),N},Te=(l,N)=>me(l,W=>!X(N,W)),Pe=(l,N)=>{const W={};for(let fe=0,Se=l.length;fe[l],ze=(l,N)=>{const W=z.call(l,0);return W.sort(N),W},De=(l,N)=>N>=0&&NDe(l,0),Ve=l=>De(l,l.length-1),$e=c(Array.from)?Array.from:l=>z.call(l),Oe=(l,N)=>{for(let W=0;W{const W=ke(l);for(let fe=0,Se=W.length;feZe(l,(W,fe)=>({k:fe,v:N(W,fe)})),Ze=(l,N)=>{const W={};return We(l,(fe,Se)=>{const Be=N(fe,Se);W[Be.k]=Be.v}),W},Ye=l=>(N,W)=>{l[W]=N},Je=(l,N,W,fe)=>{We(l,(Se,Be)=>{(N(Se,Be)?W:fe)(Se,Be)})},Me=(l,N)=>{const W={},fe={};return Je(l,N,Ye(W),Ye(fe)),{t:W,f:fe}},Fe=(l,N)=>{const W={};return Je(l,N,Ye(W),v),W},je=(l,N)=>{const W=[];return We(l,(fe,Se)=>{W.push(N(fe,Se))}),W},tt=(l,N)=>{const W=ke(l);for(let fe=0,Se=W.length;feje(l,R),Ge=(l,N)=>ht(l,N)?I.from(l[N]):I.none(),ht=(l,N)=>Re.call(l,N),pt=(l,N)=>ht(l,N)&&l[N]!==void 0&&l[N]!==null,St=(l,N,W=M)=>l.exists(fe=>W(fe,N)),Ft=(l,N,W=M)=>ln(l,N,W).getOr(l.isNone()&&N.isNone()),zt=l=>{const N=[],W=fe=>{N.push(fe)};for(let fe=0;fe{const N=[];for(let W=0;Wl.isSome()&&N.isSome()?I.some(W(l.getOrDie(),N.getOrDie())):I.none(),tn=(l,N,W,fe)=>l.isSome()&&N.isSome()&&W.isSome()?I.some(fe(l.getOrDie(),N.getOrDie(),W.getOrDie())):I.none(),Et=(l,N)=>l!=null?I.some(N(l)):I.none(),Ot=(l,N)=>l?I.some(N):I.none(),cn=(l,N)=>l+N,Cn=(l,N)=>l.substring(N),Pn=(l,N,W)=>N===""||l.length>=N.length&&l.substr(W,W+N.length)===N,Sn=(l,N)=>st(l,N)?Cn(l,N.length):l,vt=(l,N)=>bt(l,N)?l:cn(l,N),xt=(l,N,W=0,fe)=>{const Se=l.indexOf(N,W);return Se!==-1?y(fe)?!0:Se+N.length<=fe:!1},st=(l,N)=>Pn(l,N,0),bt=(l,N)=>Pn(l,N,l.length-N.length),Dt=(l=>N=>N.replace(l,""))(/^\s+|\s+$/g),it=l=>l.length>0,at=l=>!it(l),Bt=l=>l.style!==void 0&&c(l.style.getPropertyValue),_t=(l,N)=>{const fe=(N||document).createElement("div");if(fe.innerHTML=l,!fe.hasChildNodes()||fe.childNodes.length>1){const Se="HTML does not have a single root node";throw console.error(Se,l),new Error(Se)}return Jt(fe.childNodes[0])},qt=(l,N)=>{const fe=(N||document).createElement(l);return Jt(fe)},en=(l,N)=>{const fe=(N||document).createTextNode(l);return Jt(fe)},Jt=l=>{if(l==null)throw new Error("Node cannot be null or undefined");return{dom:l}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(l,N,W)=>I.from(l.dom.elementFromPoint(N,W)).map(Jt)},sn=typeof window<"u"?window:Function("return this;")(),rn=(l,N)=>{let W=N??sn;for(let fe=0;fe{const W=l.split(".");return rn(W,N)},wn=(l,N)=>_n(l,N),An=(l,N)=>{const W=wn(l,N);if(W==null)throw new Error(l+" not available on this browser");return W},Kn=Object.getPrototypeOf,fr=l=>An("HTMLElement",l),Un=l=>{const N=_n("ownerDocument.defaultView",l);return u(l)&&(fr(N).prototype.isPrototypeOf(l)||/^HTML\w*Element$/.test(Kn(l).constructor.name))},Zn=9,tr=11,Br=1,$r=3,vr=l=>l.dom.nodeName.toLowerCase(),qn=l=>l.dom.nodeType,gr=l=>N=>qn(N)===l,sr=l=>lr(l)&&Un(l.dom),lr=gr(Br),zr=gr($r),Vr=gr(Zn),eo=gr(tr),Jr=l=>N=>lr(N)&&vr(N)===l,Yr=(l,N)=>{const W=l.dom;if(W.nodeType!==Br)return!1;{const fe=W;if(fe.matches!==void 0)return fe.matches(N);if(fe.msMatchesSelector!==void 0)return fe.msMatchesSelector(N);if(fe.webkitMatchesSelector!==void 0)return fe.webkitMatchesSelector(N);if(fe.mozMatchesSelector!==void 0)return fe.mozMatchesSelector(N);throw new Error("Browser lacks native selectors")}},to=l=>l.nodeType!==Br&&l.nodeType!==Zn&&l.nodeType!==tr||l.childElementCount===0,co=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?[]:re(W.querySelectorAll(l),Nt.fromDom)},Fo=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?I.none():I.from(W.querySelector(l)).map(Nt.fromDom)},_o=(l,N)=>l.dom===N.dom,$o=(l,N)=>{const W=l.dom,fe=N.dom;return W===fe?!1:W.contains(fe)},Mo=l=>Nt.fromDom(l.dom.ownerDocument),pi=l=>Vr(l)?l:Mo(l),Hn=l=>Nt.fromDom(pi(l).dom.documentElement),ar=l=>Nt.fromDom(pi(l).dom.defaultView),Dr=l=>I.from(l.dom.parentNode).map(Nt.fromDom),Sr=l=>Dr(l),Zr=l=>I.from(l.dom.parentElement).map(Nt.fromDom),go=(l,N)=>{const W=c(N)?N:D;let fe=l.dom;const Se=[];for(;fe.parentNode!==null&&fe.parentNode!==void 0;){const Be=fe.parentNode,qe=Nt.fromDom(Be);if(Se.push(qe),W(qe)===!0)break;fe=Be}return Se},oo=l=>I.from(l.dom.offsetParent).map(Nt.fromDom),io=l=>I.from(l.dom.nextSibling).map(Nt.fromDom),Do=l=>re(l.dom.childNodes,Nt.fromDom),jn=(l,N)=>{const W=l.dom.childNodes;return I.from(W[N]).map(Nt.fromDom)},Rr=l=>jn(l,0),On=(l,N)=>({element:l,offset:N}),Yn=(l,N)=>{const W=Do(l);return W.length>0&&Neo(l)&&a(l.dom.host),kr=l=>Nt.fromDom(l.dom.getRootNode()),Er=l=>ir(l)?l:Nt.fromDom(pi(l).dom.body),Gt=l=>on(l).isSome(),on=l=>{const N=kr(l);return ir(N)?I.some(N):I.none()},an=l=>Nt.fromDom(l.dom.host),Tn=l=>{if(a(l.target)){const N=Nt.fromDom(l.target);if(lr(N)&&zn(N)&&l.composed&&l.composedPath){const W=l.composedPath();if(W)return Qe(W)}}return I.from(l.target)},zn=l=>a(l.dom.shadowRoot),Gn=l=>{const N=zr(l)?l.dom.parentNode:l.dom;if(N==null||N.ownerDocument===null)return!1;const W=N.ownerDocument;return on(Nt.fromDom(N)).fold(()=>W.body.contains(N),C(Gn,an))},Lr=()=>Ur(Nt.fromDom(document)),Ur=l=>{const N=l.dom.body;if(N==null)throw new Error("Body is not available yet");return Nt.fromDom(N)},qr=(l,N,W)=>{if(n(W)||w(W)||h(W))l.setAttribute(N,W+"");else throw console.error("Invalid call to Attribute.set. Key ",N,":: Value ",W,":: Element ",l),new Error("Attribute value was not simple")},Cr=(l,N,W)=>{qr(l.dom,N,W)},wo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{qr(W,Se,fe)})},Nr=(l,N)=>{const W=l.dom.getAttribute(N);return W===null?void 0:W},Eo=(l,N)=>I.from(Nr(l,N)),zo=(l,N)=>{const W=l.dom;return W&&W.hasAttribute?W.hasAttribute(N):!1},Qt=(l,N)=>{l.dom.removeAttribute(N)},Mn=l=>se(l.dom.attributes,(N,W)=>(N[W.name]=W.value,N),{}),Fn=(l,N,W)=>{if(!n(W))throw console.error("Invalid call to CSS.set. Property ",N,":: Value ",W,":: Element ",l),new Error("CSS value must be a string: "+W);Bt(l)&&l.style.setProperty(N,W)},dr=(l,N)=>{Bt(l)&&l.style.removeProperty(N)},xr=(l,N,W)=>{const fe=l.dom;Fn(fe,N,W)},Oo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{Fn(W,Se,fe)})},mi=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{fe.fold(()=>{dr(W,Se)},Be=>{Fn(W,Se,Be)})})},Di=(l,N)=>{const W=l.dom,Se=window.getComputedStyle(W).getPropertyValue(N);return Se===""&&!Gn(l)?To(W,N):Se},To=(l,N)=>Bt(l)?l.style.getPropertyValue(N):"",Ia=(l,N)=>{const W=l.dom,fe=To(W,N);return I.from(fe).filter(Se=>Se.length>0)},Ds=l=>{const N={},W=l.dom;if(Bt(W))for(let fe=0;fe{const fe=Nt.fromTag(l);return xr(fe,N,W),Ia(fe,N).isSome()},zi=(l,N)=>{const W=l.dom;dr(W,N),St(Eo(l,"style").map(Dt),"")&&Qt(l,"style")},yl=l=>l.dom.offsetWidth,Bs=(l,N)=>{const W=(ft,yt)=>{if(!h(yt)&&!yt.match(/^[0-9]+$/))throw new Error(l+".set accepts only positive integer values. Value was "+yt);const Lt=ft.dom;Bt(Lt)&&(Lt.style[l]=yt+"px")},fe=ft=>{const yt=N(ft);if(yt<=0||yt===null){const Lt=Di(ft,l);return parseFloat(Lt)||0}return yt},Se=fe,Be=(ft,yt)=>se(yt,(Lt,Ht)=>{const fn=Di(ft,Ht),Rn=fn===void 0?0:parseInt(fn,10);return isNaN(Rn)?Lt:Lt+Rn},0);return{set:W,get:fe,getOuter:Se,aggregate:Be,max:(ft,yt,Lt)=>{const Ht=Be(ft,Lt);return yt>Ht?yt-Ht:0}}},yf=Bs("height",l=>{const N=l.dom;return Gn(l)?N.getBoundingClientRect().height:N.offsetHeight}),il=l=>yf.get(l),nf=l=>yf.getOuter(l),nh=(l,N)=>{const W=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],fe=yf.max(l,N,W);xr(l,"max-height",fe+"px")},gp=(l,N)=>({left:l,top:N,translate:(fe,Se)=>gp(l+fe,N+Se)}),Qs=gp,bh=l=>{const N=l.getBoundingClientRect();return Qs(N.left,N.top)},Bl=(l,N)=>l!==void 0?l:N!==void 0?N:0,Tc=l=>{const N=l.dom.ownerDocument,W=N.body,fe=N.defaultView,Se=N.documentElement;if(W===l.dom)return Qs(W.offsetLeft,W.offsetTop);const Be=Bl(fe==null?void 0:fe.pageYOffset,Se.scrollTop),qe=Bl(fe==null?void 0:fe.pageXOffset,Se.scrollLeft),ft=Bl(Se.clientTop,W.clientTop),yt=Bl(Se.clientLeft,W.clientLeft);return iu(l).translate(qe-yt,Be-ft)},iu=l=>{const N=l.dom,fe=N.ownerDocument.body;return fe===N?Qs(fe.offsetLeft,fe.offsetTop):Gn(l)?bh(N):Qs(0,0)},au=Bs("width",l=>l.dom.offsetWidth),zf=(l,N)=>au.set(l,N),_s=l=>au.get(l),ma=l=>au.getOuter(l),mu=(l,N)=>{const W=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],fe=au.max(l,N,W);xr(l,"max-width",fe+"px")},Uc=l=>{let N=!1,W;return(...fe)=>(N||(N=!0,W=l.apply(null,fe)),W)},Kf=(l,N,W,fe)=>{const Se=l.isiOS()&&/ipad/i.test(W)===!0,Be=l.isiOS()&&!Se,qe=l.isiOS()||l.isAndroid(),ft=qe||fe("(pointer:coarse)"),yt=Se||!Be&&qe&&fe("(min-device-width:768px)"),Lt=Be||qe&&!yt,Ht=N.isSafari()&&l.isiOS()&&/safari/i.test(W)===!1,fn=!Lt&&!yt&&!Ht;return{isiPad:x(Se),isiPhone:x(Be),isTablet:x(yt),isPhone:x(Lt),isTouch:x(ft),isAndroid:l.isAndroid,isiOS:l.isiOS,isWebView:x(Ht),isDesktop:x(fn)}},Al=(l,N)=>{for(let W=0;W{const W=Al(l,N);if(!W)return{major:0,minor:0};const fe=Se=>Number(N.replace(W,"$"+Se));return Nf(fe(1),fe(2))},Ml=(l,N)=>{const W=String(N).toLowerCase();return l.length===0?Jf():Wl(l,W)},Jf=()=>Nf(0,0),Nf=(l,N)=>({major:l,minor:N}),Jl={nu:Nf,detect:Ml,unknown:Jf},Gh=(l,N)=>Oe(N.brands,W=>{const fe=W.brand.toLowerCase();return ce(l,Se=>{var Be;return fe===((Be=Se.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(Se=>({current:Se.name,version:Jl.nu(parseInt(W.version,10),0)}))}),ll=(l,N)=>{const W=String(N).toLowerCase();return ce(l,fe=>fe.search(W))},Tu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),gu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),ec=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dc=l=>N=>xt(N,l),tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:l=>xt(l,"edge/")&&xt(l,"chrome")&&xt(l,"safari")&&xt(l,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ec],search:l=>xt(l,"chrome")&&!xt(l,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:l=>xt(l,"msie")||xt(l,"trident")},{name:"Opera",versionRegexes:[ec,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dc("firefox")},{name:"Safari",versionRegexes:[ec,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:l=>(xt(l,"safari")||xt(l,"mobile/"))&&xt(l,"applewebkit")}],Lp=[{name:"Windows",search:Dc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:l=>xt(l,"iphone")||xt(l,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dc("linux"),versionRegexes:[]},{name:"Solaris",search:Dc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rh={browsers:x(tc),oses:x(Lp)},rf="Edge",of="Chromium",bf="IE",vu="Opera",$d="Firefox",bl="Safari",Zu=()=>Kh({current:void 0,version:Jl.unknown()}),Kh=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isEdge:fe(rf),isChromium:fe(of),isIE:fe(bf),isOpera:fe(vu),isFirefox:fe($d),isSafari:fe(bl)}},Cu={unknown:Zu,nu:Kh,edge:x(rf),chromium:x(of),ie:x(bf),opera:x(vu),firefox:x($d),safari:x(bl)},ed="Windows",Bu="iOS",vd="Android",cs="Linux",oh="macOS",Jh="Solaris",xh="FreeBSD",xf="ChromeOS",ep=()=>_r({current:void 0,version:Jl.unknown()}),_r=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isWindows:fe(ed),isiOS:fe(Bu),isAndroid:fe(vd),isMacOS:fe(oh),isLinux:fe(cs),isSolaris:fe(Jh),isFreeBSD:fe(xh),isChromeOS:fe(xf)}},Ff={unknown:ep,nu:_r,windows:x(ed),ios:x(Bu),android:x(vd),linux:x(cs),macos:x(oh),solaris:x(Jh),freebsd:x(xh),chromeos:x(xf)},bd={detect:(l,N,W)=>{const fe=rh.browsers(),Se=rh.oses(),Be=N.bind(yt=>Gh(fe,yt)).orThunk(()=>Tu(fe,l)).fold(Cu.unknown,Cu.nu),qe=gu(Se,l).fold(Ff.unknown,Ff.nu),ft=Kf(qe,Be,l,W);return{browser:Be,os:qe,deviceType:ft}}},_h=l=>window.matchMedia(l).matches;let zu=Uc(()=>bd.detect(window.navigator.userAgent,I.from(window.navigator.userAgentData),_h));const va=()=>zu(),El=(l,N,W,fe,Se,Be,qe)=>({target:l,x:N,y:W,stop:fe,prevent:Se,kill:Be,raw:qe}),_f=l=>{const N=Nt.fromDom(Tn(l).getOr(l.target)),W=()=>l.stopPropagation(),fe=()=>l.preventDefault(),Se=O(fe,W);return El(N,l.clientX,l.clientY,W,fe,Se,l)},$f=(l,N)=>W=>{l(W)&&N(_f(W))},ih=(l,N,W,fe,Se)=>{const Be=$f(W,fe);return l.dom.addEventListener(N,Be,Se),{unbind:T(Nh,l,N,Be,Se)}},yu=(l,N,W,fe)=>ih(l,N,W,fe,!1),jc=(l,N,W,fe)=>ih(l,N,W,fe,!0),Nh=(l,N,W,fe)=>{l.dom.removeEventListener(N,W,fe)},af=(l,N)=>{Dr(l).each(fe=>{fe.dom.insertBefore(N.dom,l.dom)})},td=(l,N)=>{io(l).fold(()=>{Dr(l).each(Se=>{Bc(Se,N)})},fe=>{af(fe,N)})},sf=(l,N)=>{Rr(l).fold(()=>{Bc(l,N)},fe=>{l.dom.insertBefore(N.dom,fe.dom)})},Bc=(l,N)=>{l.dom.appendChild(N.dom)},Vd=(l,N,W)=>{jn(l,W).fold(()=>{Bc(l,N)},fe=>{af(fe,N)})},xd=(l,N)=>{q(N,W=>{Bc(l,W)})},vc=l=>{l.dom.textContent="",q(Do(l),N=>{gs(N)})},gs=l=>{const N=l.dom;N.parentNode!==null&&N.parentNode.removeChild(N)},yc=l=>{const N=l!==void 0?l.dom:document,W=N.body.scrollLeft||N.documentElement.scrollLeft,fe=N.body.scrollTop||N.documentElement.scrollTop;return Qs(W,fe)},Cc=(l,N,W)=>{const Se=(W!==void 0?W.dom:document).defaultView;Se&&Se.scrollTo(l,N)},Nu=l=>{const N=l===void 0?window:l;return va().browser.isFirefox()?I.none():I.from(N.visualViewport)},Gs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),Ks=l=>{const N=l===void 0?window:l,W=N.document,fe=yc(Nt.fromDom(W));return Nu(N).fold(()=>{const Se=N.document.documentElement,Be=Se.clientWidth,qe=Se.clientHeight;return Gs(fe.left,fe.top,Be,qe)},Se=>Gs(Math.max(Se.pageLeft,fe.left),Math.max(Se.pageTop,fe.top),Se.width,Se.height))},Ac=()=>Nt.fromDom(document),_d=(l,N)=>l.view(N).fold(x([]),fe=>{const Se=l.owner(fe),Be=_d(l,Se);return[fe].concat(Be)}),Fh=(l,N)=>{const W=N.owner(l),fe=_d(N,W);return I.some(fe)};var ah=Object.freeze({__proto__:null,view:l=>{var N;return(l.dom===document?I.none():I.from((N=l.dom.defaultView)===null||N===void 0?void 0:N.frameElement)).map(Nt.fromDom)},owner:l=>Mo(l)});const Au=l=>{const N=Ac(),W=yc(N);return Fh(l,ah).fold(T(Tc,l),Se=>{const Be=iu(l),qe=pe(Se,(ft,yt)=>{const Lt=iu(yt);return{left:ft.left+Lt.left,top:ft.top+Lt.top}},{left:0,top:0});return Qs(qe.left+Be.left+W.left,qe.top+Be.top+W.top)})},lf=(l,N,W)=>({point:l,width:N,height:W}),wf=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe}),vs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),cl=l=>{const N=Tc(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},bc=l=>{const N=Au(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},nc=(l,N)=>{const W=Math.max(l.x,N.x),fe=Math.max(l.y,N.y),Se=Math.min(l.right,N.right),Be=Math.min(l.bottom,N.bottom),qe=Se-W,ft=Be-fe;return vs(W,fe,qe,ft)},Qc=(l,N)=>se(N,(W,fe)=>nc(W,fe),l),ts=()=>Ks(window),wi=l=>{let N=l;return{get:()=>N,set:Se=>{N=Se}}},bu=l=>{const N=wi(I.none()),W=()=>N.get().each(l);return{clear:()=>{W(),N.set(I.none())},isSet:()=>N.get().isSome(),get:()=>N.get(),set:ft=>{W(),N.set(I.some(ft))}}},wd=()=>bu(l=>l.destroy()),Ol=()=>bu(l=>l.unbind()),ds=()=>{const l=bu(v);return{...l,on:W=>l.get().each(W)}};var zc=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Ud=l=>{const N=Be=>Be(l),W=x(l),fe=()=>Se,Se={tag:!0,inner:l,fold:(Be,qe)=>qe(l),isValue:k,isError:D,map:Be=>aa.value(Be(l)),mapError:fe,bind:N,exists:N,forall:N,getOr:W,or:fe,getOrThunk:W,orThunk:fe,getOrDie:W,each:Be=>{Be(l)},toOptional:()=>I.some(l)};return Se},cf=l=>{const N=()=>W,W={tag:!1,inner:l,fold:(fe,Se)=>fe(l),isValue:D,isError:k,map:N,mapError:fe=>aa.error(fe(l)),bind:N,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:A(String(l)),each:v,toOptional:I.none};return W},aa={value:Ud,error:cf,fromOption:(l,N)=>l.fold(()=>cf(N),Ud)};var rs;(function(l){l[l.Error=0]="Error",l[l.Value=1]="Value"})(rs||(rs={}));const Mu=(l,N,W)=>l.stype===rs.Error?N(l.serror):W(l.svalue),Ri=l=>{const N=[],W=[];return q(l,fe=>{Mu(fe,Se=>W.push(Se),Se=>N.push(Se))}),{values:N,errors:W}},Gc=(l,N)=>l.stype===rs.Error?{stype:rs.Error,serror:N(l.serror)}:l,qu=(l,N)=>l.stype===rs.Value?{stype:rs.Value,svalue:N(l.svalue)}:l,zl=(l,N)=>l.stype===rs.Value?N(l.svalue):l,xc=(l,N)=>l.stype===rs.Error?N(l.serror):l,Kc=l=>({stype:rs.Value,svalue:l}),jd=l=>({stype:rs.Error,serror:l}),al={fromResult:l=>l.fold(jd,Kc),toResult:l=>Mu(l,aa.error,aa.value),svalue:Kc,partition:Ri,serror:jd,bind:zl,bindError:xc,map:qu,mapError:Gc,fold:Mu},Yl=(l,N,W,fe)=>({tag:"field",key:l,newKey:N,presence:W,prop:fe}),uf=(l,N)=>({tag:"custom",newKey:l,instantiator:N}),hs=(l,N,W)=>{switch(l.tag){case"field":return N(l.key,l.newKey,l.presence,l.prop);case"custom":return W(l.newKey,l.instantiator)}},Mc=(l,N)=>N,Eu=(l,N)=>b(l)&&b(N)?ws(l,N):N,xu=l=>(...N)=>{if(N.length===0)throw new Error("Can't merge zero objects");const W={};for(let fe=0;fe({tag:"required",process:{}}),Ca=l=>({tag:"defaultedThunk",process:l}),Ls=l=>Ca(x(l)),Ec=()=>({tag:"option",process:{}}),_u=l=>({tag:"mergeWithThunk",process:l}),wt=l=>_u(x(l)),Kt=(l,N)=>l.length>0?al.svalue(ws(N,Fu.apply(void 0,l))):al.svalue(N),En=l=>O(al.serror,ye)(l),uo={consolidateObj:(l,N)=>{const W=al.partition(l);return W.errors.length>0?En(W.errors):Kt(W.values,N)},consolidateArr:l=>{const N=al.partition(l);return N.errors.length>0?En(N.errors):al.svalue(N.values)}},Bi=l=>u(l)&&ke(l).length>100?" removed due to size":JSON.stringify(l,null,2),ya=l=>{const N=l.length>10?l.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):l;return re(N,W=>"Failed path: ("+W.path.join(" > ")+`) +Required: `+Ce.join(", "));return ti[kn].apply(null,or)},log:ti=>{console.log(ti,{constructors:Ce,constructor:kn,params:or})}}}}),Xe}},c1={...sm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},fv=(he,Ce)=>he.length===0?c1.none():he.length===1?c1.only(0):Ce===0?c1.left(0,1):Ce===he.length-1?c1.right(Ce-1,Ce):Ce>0&&Ce{const Wt=he.slice(0),kn=fv(he,Ce),Vn=v(j(Wt,v(0))),or=ki=>lt.singleColumnWidth(Wt[ki],Xe),Mr=(ki,xi)=>Ct.calcLeftEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative),no=(ki,xi,fi)=>Ct.calcMiddleDeltas(Wt,ki,xi,fi,Xe,lt.minCellWidth(),lt.isRelative),ti=(ki,xi)=>Ct.calcRightEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative);return kn.fold(Vn,or,Mr,no,ti)},Hh=(he,Ce,Xe)=>{let lt=0;for(let Ct=he;Ct{const Xe=Ca.justCells(he);return j(Xe,lt=>{const Ct=Hh(lt.column,lt.column+lt.colspan,Ce);return{element:lt.element,width:Ct,colspan:lt.colspan}})},Gx=(he,Ce)=>{const Xe=Ca.justColumns(he);return j(Xe,(lt,Ct)=>({element:lt.element,width:Ce[Ct],colspan:lt.colspan}))},df=(he,Ce)=>j(he.all,(Xe,lt)=>({element:Xe.element,height:Ce[lt]})),Tb=he=>K(he,(Ce,Xe)=>Ce+Xe,0),uu=(he,Ce)=>Ca.hasColumns(he)?Gx(he,Ce):hv(he,Ce),Cb=(he,Ce,Xe)=>{const lt=uu(he,Ce);U(lt,Ct=>{Xe.setElementWidth(Ct.element,Ct.width)})},Kx=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.fromTable(he),kn=Ct.getCellDelta(Ce),Vn=Ct.getWidths(Wt,Ct),or=Xe===Wt.grid.columns-1,Mr=lt.clampTableDelta(Vn,Xe,kn,Ct.minCellWidth(),or),no=dv(Vn,Xe,Mr,Ct,lt),ti=j(no,(ki,xi)=>ki+Vn[xi]);Cb(Wt,ti,Ct),lt.resizeTable(Ct.adjustTableWidth,Mr,or)},Jx=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=Ar(lt,he),Wt=j(Ct,(or,Mr)=>Xe===Mr?Math.max(Ce+or,Lp()):or),kn=df(lt,Wt);U(kn,or=>{Ne(or.element,or.height)}),U(Ca.justCells(lt),or=>{et(or.element)});const Vn=Tb(Wt);Ne(he,Vn)},iw=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.generate(Ce),kn=lt.getWidths(Wt,lt),Vn=lt.pixelWidth(),{newSizes:or,delta:Mr}=Ct.calcRedestributedWidths(kn,Vn,Xe.pixelDelta,lt.isRelative);Cb(Wt,or,lt),lt.adjustTableWidth(Mr)},e3=(he,Ce,Xe,lt)=>{const Ct=Ca.generate(Ce),Wt=lt.getWidths(Ct,lt);Cb(Ct,Wt,lt)},lm=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.column===lt.column)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.column-lt.column),u1=vt("col"),cm=vt("colgroup"),pv=he=>Yt(he)==="tr"||cm(he),hf=he=>{const Ce=ll(he,"colspan",1),Xe=ll(he,"rowspan",1);return{element:he,colspan:Ce,rowspan:Xe}},f1=(he,Ce=hf)=>{const Xe=Vn=>u1(Vn.element)?he.col(Vn):he.cell(Vn),lt=Vn=>cm(Vn.element)?he.colgroup(Vn):he.row(Vn),Ct=Vn=>{if(pv(Vn))return lt({element:Vn});{const or=Vn,Mr=Xe(Ce(or));return Wt=A.some({item:or,replacement:Mr}),Mr}};let Wt=A.none();return{getOrInit:(Vn,or)=>Wt.fold(()=>Ct(Vn),Mr=>or(Vn,Mr.item)?Mr.replacement:Ct(Vn))}},jm=he=>Ce=>{const Xe=[],lt=(kn,Vn)=>Y(Xe,or=>Vn(or.item,kn)),Ct=kn=>{const Vn=he==="td"?{scope:null}:{},or=Ce.replace(kn,he,Vn);return Xe.push({item:kn,sub:or}),or};return{replaceOrInit:(kn,Vn)=>{if(pv(kn)||u1(kn))return kn;{const or=kn;return lt(or,Vn).fold(()=>Ct(or),Mr=>Vn(kn,Mr.item)?Mr.sub:Ct(or))}}}},mv=he=>it(he,"scope").map(Ce=>Ce.substr(0,3)),Zd={modification:f1,transform:jm,merging:he=>({unmerge:lt=>{const Ct=mv(lt);return Ct.each(Wt=>st(lt,"scope",Wt)),()=>{const Wt=he.cell({element:lt,colspan:1,rowspan:1});return Jl(Wt,"width"),Jl(lt,"width"),Ct.each(kn=>st(Wt,"scope",kn)),Wt}},merge:lt=>{const Ct=()=>{const Wt=il(j(lt,mv));if(Wt.length===0)return A.none();{const kn=Wt[0],Vn=["row","col"];return $(Wt,Mr=>Mr!==kn&&z(Vn,Mr))?A.none():A.from(kn)}};return Jl(lt[0],"width"),Ct().fold(()=>at(lt[0],"scope"),Wt=>st(lt[0],"scope",Wt+"group")),v(lt[0])}})},yy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],m0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(["ol","ul"],Xe)},g0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(yy,Xe)},v0=(he,Ce)=>z(["br","img","hr","input"],he.property().name(Ce)),y0=bg(),Tf=he=>g0(y0,he),vo=he=>m0(y0,he),Ab=he=>v0(y0,he),F=he=>{const Ce=vt("br"),Xe=or=>se(or,Mr=>Ce(Mr)||Cn(Mr)&&Cs(Mr).trim().length===0),lt=or=>Yt(or)==="li"||Di(or,vo).isSome(),Ct=or=>sr(or).map(Mr=>Tf(Mr)?!0:Ab(Mr)?Yt(Mr)!=="img":!1).getOr(!1),Wt=or=>gg(or).bind(Mr=>{const no=Ct(Mr);return $r(Mr).map(ti=>no===!0||lt(ti)||Ce(Mr)||Tf(ti)&&!An(or,ti)?[]:[Nt.fromTag("br")])}).getOr([]),Vn=(()=>{const or=pe(he,Mr=>{const no=lr(Mr);return Xe(no)?[]:no.concat(Wt(Mr))});return or.length===0?[Nt.fromTag("br")]:or})();Mo(he[0]),$o(he[0],Vn)},G=he=>ly(he,!0),ue=he=>{vu(he).length===0&&pi(he)},Ae=(he,Ce)=>({grid:he,cursor:Ce}),He=he=>we(he,Ce=>we(Ce.cells,Xe=>{const lt=Xe.element;return nh(G(lt),lt)})),nt=(he,Ce,Xe)=>{var lt,Ct;const Wt=zl(he).rows;return A.from((Ct=(lt=Wt[Ce])===null||lt===void 0?void 0:lt.cells[Xe])===null||Ct===void 0?void 0:Ct.element).filter(G).orThunk(()=>He(Wt))},ct=(he,Ce,Xe)=>{const lt=nt(he,Ce,Xe);return Ae(he,lt)},Pt=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.row===lt.row)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.row-lt.row),jt=(he,Ce,Xe,lt)=>{const Ct=Ce[0].row,Wt=Pt(Ce),kn=K(Wt,(Vn,or)=>({grid:Sl(Vn.grid,Ct,or.row+Vn.delta,Xe,lt.getOrInit),delta:Vn.delta+1}),{grid:he,delta:0}).grid;return ct(kn,Ct,Ce[0].column)},hn=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Ct[Ct.length-1],kn=Wt.row+Wt.rowspan,Vn=K(Ct,(or,Mr)=>Sl(or,kn,Mr.row,Xe,lt.getOrInit),he);return ct(Vn,kn,Ce[0].column)},mn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=lm(Ct),kn=Wt[0].column,Vn=K(Wt,(or,Mr)=>({grid:Yx(or.grid,kn,Mr.column+or.delta,Xe,lt.getOrInit),delta:or.delta+1}),{grid:he,delta:0}).grid;return ct(Vn,Ct[0].row,kn)},Dn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=Ct[Ct.length-1],kn=Wt.column+Wt.colspan,Vn=lm(Ct),or=K(Vn,(Mr,no)=>Yx(Mr,kn,no.column,Xe,lt.getOrInit),he);return ct(or,Ct[0].row,kn)},Xn=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!0,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},$n=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},mr=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!1,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},Or=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},Kr=(he,Ce)=>(Xe,lt,Ct,Wt,kn)=>{const Vn=Pt(lt),or=j(Vn,no=>no.row),Mr=rw(Xe,or,he,Ce,Ct,Wt.replaceOrInit,kn);return ct(Mr,lt[0].row,lt[0].column)},Hr=Kr("thead",!0),fo=Kr("tbody",!1),mo=Kr("tfoot",!1),Io=(he,Ce,Xe,lt)=>{const Ct=lm(Ce.details),Wt=N4(he,j(Ct,Vn=>Vn.column)),kn=Wt.length>0?Wt[0].cells.length-1:0;return ct(Wt,Ct[0].row,Math.min(Ct[0].column,kn))},Qo=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Xx(he,Ct[0].row,Ct[Ct.length-1].row),kn=Math.max(zl(Wt).rows.length-1,0);return ct(Wt,Math.min(Ce[0].row,kn),Ce[0].column)},Po=(he,Ce,Xe,lt)=>{const Ct=Ce.cells;F(Ct);const Wt=xb(he,Ce.bounds,Xe,lt.merge(Ct));return Ae(Wt,A.from(Ct[0]))},Ii=(he,Ce,Xe,lt)=>{const Wt=K(Ce,(kn,Vn)=>ew(kn,Vn,Xe,lt.unmerge(Vn)),he);return Ae(Wt,A.from(Ce[0]))},bi=(he,Ce,Xe,lt)=>{const Wt=((or,Mr)=>{const no=Ca.fromTable(or);return iv(no,Mr,!0)})(Ce.clipboard,Ce.generators),kn=Rr(Ce.row,Ce.column);return Ss(kn,he,Wt,Ce.generators,Xe).fold(()=>Ae(he,A.some(Ce.element)),or=>ct(or,Ce.row,Ce.column))},Zi=(he,Ce,Xe)=>{const lt=vd(he,Xe.section),Ct=Ca.generate(lt);return iv(Ct,Ce,!0)},ra=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].column,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},ka=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Wt)},ea=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].row,kn=Ct[Wt],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ah(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},as=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ah(Wt,he,Vn,Ce.generators,Xe);return ct(or,Wt,Ce.cells[0].column)},Da=(he,Ce)=>{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=me(j(Xe.all,Mr=>Z(Mr.cells,no=>no.column>=kn&&no.column{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(tv).getOr("")},fl=(he,Ce)=>{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].row,Vn=Wt.row+Wt.rowspan,or=Xe.all.slice(kn,Vn);return nv(or)}).getOr("")},As=(he,Ce,Xe,lt)=>e3(he,Ce,Xe,lt.sizing),hc=(he,Ce,Xe,lt)=>iw(he,Ce,Xe,lt.sizing,lt.resize),os=(he,Ce)=>$(Ce,Xe=>Xe.column===0&&Xe.isLocked),Vs=(he,Ce)=>$(Ce,Xe=>Xe.column+Xe.colspan>=he.grid.columns&&Xe.isLocked),Fl=(he,Ce)=>{const Xe=Ls(he),lt=lm(Ce);return re(lt,(Ct,Wt)=>{const Vn=Xe[Wt.column].map(ds).getOr(0);return Ct+Vn},0)},kl=he=>(Ce,Xe)=>Ch(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt)).map(lt=>({details:lt,pixelDelta:Fl(Ce,lt)})),Fc=(he,Ce)=>Np(he,Ce).map(Xe=>({details:Xe,pixelDelta:-Fl(he,Xe)})),qa=he=>(Ce,Xe)=>qx(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt.cells)),Sc=Zd.transform("th"),pc=Zd.transform("td"),sd=ad(jt,Ch,c,c,Zd.modification),ld=ad(hn,Ch,c,c,Zd.modification),cd=ad(mn,kl(!0),hc,c,Zd.modification),Cf=ad(Dn,kl(!1),hc,c,Zd.modification),xl=ad(Io,Fc,hc,ue,Zd.modification),eu=ad(Qo,Ch,c,ue,Zd.modification),Td=ad(Xn,Np,c,c,Sc),Af=ad(mr,Np,c,c,pc),jf=ad(Hr,Np,c,c,Sc),Us=ad(fo,Np,c,c,pc),_l=ad(mo,Np,c,c,pc),fu=ad($n,Np,c,c,Sc),ni=ad(Or,Np,c,c,pc),Wc=ad(Po,J_,As,c,Zd.merging),Yc=ad(Ii,gy,As,c,Zd.merging),$l=ad(bi,mC,As,c,Zd.modification),Ru=ad(ra,qa(!0),c,c,Zd.modification),Eh=ad(ka,qa(!1),c,c,Zd.modification),mc=ad(ea,qx,c,c,Zd.modification),dh=ad(as,qx,c,c,Zd.modification),hh=Da,Qm=ba,Qf=fl,tu=(he,Ce)=>he.dispatch("NewRow",{node:Ce}),qd=(he,Ce)=>he.dispatch("NewCell",{node:Ce}),Cd=(he,Ce,Xe)=>{he.dispatch("TableModified",{...Xe,table:Ce})},d1=(he,Ce,Xe,lt,Ct)=>{he.dispatch("TableSelectionChange",{cells:Ce,start:Xe,finish:lt,otherCells:Ct})},t2=he=>{he.dispatch("TableSelectionClear")},gv=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResizeStart",{target:Ce,width:Xe,height:lt,origin:Ct})},Lu=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResized",{target:Ce,width:Xe,height:lt,origin:Ct})},$c={structure:!1,style:!0},dl={structure:!0,style:!1},Mf={structure:!0,style:!0},du=(he,Ce)=>kf(he)?mt.percentageSize(Ce):l0(he)?mt.pixelSize(Ce):mt.getTableSize(Ce),Iu=(he,Ce,Xe)=>{const lt=Wa=>Yt(Im(Wa))==="table",Ct=Wa=>!lt(he)||kg(Wa).rows>1,Wt=Wa=>!lt(he)||kg(Wa).columns>1,kn=VO(he),Vn=sy(he)?c:dy,or=Wa=>{switch(z_(he)){case"section":return i1.section();case"sectionCells":return i1.sectionCells();case"cells":return i1.cells();default:return i1.getTableSectionType(Wa,"section")}},Mr=(Wa,bm)=>bm.cursor.fold(()=>{const Lg=vu(Wa);return ve(Lg).filter(Nr).map(S1=>{Xe.clearSelectedCells(Wa.dom);const Zf=he.dom.createRng();return Zf.selectNode(S1.dom),he.selection.setRng(Zf),st(S1,"data-mce-selected","1"),Zf})},Lg=>{const S1=fh(Lg),Zf=he.dom.createRng();return Zf.setStart(S1.element.dom,S1.offset),Zf.setEnd(S1.element.dom,S1.offset),he.selection.setRng(Zf),Xe.clearSelectedCells(Wa.dom),A.some(Zf)}),no=(Wa,bm,Lg,S1)=>(Zf,el,Ok=!1)=>{Sh(Zf);const Sk=Nt.fromDom(he.getDoc()),H3=i0(Lg,Sk,kn),r6={sizing:du(he,Zf),resize:sy(he)?K1():o1(),section:or(Zf)};return bm(Zf)?Wa(Zf,el,H3,r6).bind(Mv=>{Ce.refresh(Zf.dom),U(Mv.newRows,R2=>{tu(he,R2.dom)}),U(Mv.newCells,R2=>{qd(he,R2.dom)});const tx=Mr(Zf,Mv);return Nr(Zf)&&(Sh(Zf),Ok||Cd(he,Zf.dom,S1)),tx.map(R2=>({rng:R2,effect:S1}))}):A.none()},ti=no(eu,Ct,c,dl),ki=no(xl,Wt,c,dl),xi=no(sd,P,c,dl),fi=no(ld,P,c,dl),Vi=no(cd,P,Vn,dl),Xo=no(Cf,P,Vn,dl),oi=no(Wc,P,c,dl),wa=no(Yc,P,c,dl),Pa=no(Ru,P,c,dl),ta=no(Eh,P,c,dl),nu=no(mc,P,c,dl),Ll=no(dh,P,c,dl),$u=no($l,P,c,Mf),vm=no(fu,P,c,dl),gh=no(ni,P,c,dl),Jb=no(Td,P,c,dl),ex=no(Af,P,c,dl),Tl=no(jf,P,c,dl),Ld=no(Us,P,c,dl),sp=no(_l,P,c,dl);return{deleteRow:ti,deleteColumn:ki,insertRowsBefore:xi,insertRowsAfter:fi,insertColumnsBefore:Vi,insertColumnsAfter:Xo,mergeCells:oi,unmergeCells:wa,pasteColsBefore:Pa,pasteColsAfter:ta,pasteRowsBefore:nu,pasteRowsAfter:Ll,pasteCells:$u,makeCellsHeader:vm,unmakeCellsHeader:gh,makeColumnsHeader:Jb,unmakeColumnsHeader:ex,makeRowsHeader:Tl,makeRowsBody:Ld,makeRowsFooter:sp,getTableRowType:Qf,getTableCellType:Qm,getTableColType:hh}},vv=(he,Ce,Xe)=>{const lt=ll(he,Ce,1);Xe===1||lt<=1?at(he,Ce):st(he,Ce,Math.min(Xe,lt))},h1=(he,Ce)=>Xe=>{const lt=Xe.column+Xe.colspan-1,Ct=Xe.column;return lt>=he&&Ct{if(Ca.hasColumns(he)){const lt=Z(Ca.justColumns(he),h1(Ce,Xe)),Ct=j(lt,kn=>{const Vn=Sr(kn.element);return vv(Vn,"span",Xe-Ce),Vn}),Wt=Nt.fromTag("colgroup");return $o(Wt,Ct),[Wt]}else return[]},by=(he,Ce,Xe)=>j(he.all,lt=>{const Ct=Z(lt.cells,h1(Ce,Xe)),Wt=j(Ct,Vn=>{const or=Sr(Vn.element);return vv(or,"colspan",Xe-Ce),or}),kn=Nt.fromTag("tr");return $o(kn,Wt),kn}),p1=(he,Ce)=>{const Xe=Ca.fromTable(he);return Np(Xe,Ce).map(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=n2(Xe,kn,Vn),Mr=by(Xe,kn,Vn);return[...or,...Mr]})},b0=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Ch(lt,Ce).bind(Wt=>{const kn=iv(lt,Xe,!1),or=zl(kn).rows.slice(Wt[0].row,Wt[Wt.length-1].row+Wt[Wt.length-1].rowspan),Mr=pe(or,ti=>{const ki=Z(ti.cells,xi=>!xi.isLocked);return ki.length>0?[{...ti,cells:ki}]:[]}),no=bb(Mr);return nh(no.length>0,no)}).map(Wt=>ov(Wt))},Hm=sm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),yv=(he,Ce,Xe)=>{const lt=Xe.substring(0,Xe.length-he.length),Ct=parseFloat(lt);return lt===Ct.toString()?Ce(Ct):Hm.invalid(Xe)},x0={...Hm,from:he=>iu(he,"%")?yv("%",Hm.percent,he):iu(he,"px")?yv("px",Hm.pixels,he):Hm.invalid(he)},r2=(he,Ce)=>j(he,Xe=>x0.from(Xe).fold(()=>Xe,Ct=>Ct/Ce*100+"%",Ct=>Ct+"%")),Mb=(he,Ce,Xe)=>{const lt=Xe/Ce;return j(he,Ct=>x0.from(Ct).fold(()=>Ct,kn=>kn*lt+"px",kn=>kn/100*Xe+"px"))},Ad=(he,Ce)=>{const Xe=he.fold(()=>v(""),lt=>{const Ct=lt/Ce;return v(Ct+"px")},()=>{const lt=100/Ce;return v(lt+"%")});return Q(Ce,Xe)},_y=(he,Ce,Xe)=>he.fold(()=>Ce,lt=>Mb(Ce,Xe,lt),lt=>r2(Ce,Xe)),wy=(he,Ce,Xe)=>{const lt=x0.from(Xe),Ct=se(he,Wt=>Wt==="0px")?Ad(lt,he.length):_y(lt,he,Ce);return um(Ct)},Md=(he,Ce)=>he.length===0?Ce:K(he,(Xe,lt)=>x0.from(lt).fold(v(0),_,_)+Xe,0),m1=(he,Ce)=>{const Xe=Math.floor(he);return{value:Xe+Ce,remainder:he-Xe}},_0=(he,Ce)=>x0.from(he).fold(v(he),Xe=>Xe+Ce+"px",Xe=>Xe+Ce+"%"),um=he=>{if(he.length===0)return he;const Ce=K(he,(lt,Ct)=>{const Wt=x0.from(Ct).fold(()=>({value:Ct,remainder:0}),kn=>m1(kn,"px"),kn=>({value:kn+"%",remainder:0}));return{output:[Wt.value].concat(lt.output),remainder:lt.remainder+Wt.remainder}},{output:[],remainder:0}),Xe=Ce.output;return Xe.slice(0,Xe.length-1).concat([_0(Xe[Xe.length-1],Math.round(Ce.remainder))])},Wd=x0.from,w0=(he,Ce,Xe)=>{U(Ce,lt=>{const Ct=he.slice(lt.column,lt.colspan+lt.column),Wt=Md(Ct,tc());Al(lt.element,"width",Wt+Xe)})},Eb=(he,Ce,Xe)=>{U(Ce,(lt,Ct)=>{const Wt=Md([he[Ct]],tc());Al(lt.element,"width",Wt+Xe)})},Oy=(he,Ce,Xe)=>{U(Xe,lt=>{Jl(lt.element,"height")}),U(Ce,(lt,Ct)=>{Al(lt.element,"height",he[Ct])})},aw=he=>Wd(he).fold(v("px"),v("px"),v("%")),Zm=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=lt.all,Wt=Ca.justCells(lt),kn=Ca.justColumns(lt);Ce.each(Vn=>{const or=aw(Vn),Mr=Ol(he),no=ai(lt,he),ti=wy(no,Mr,Vn);Ca.hasColumns(lt)?Eb(ti,kn,or):w0(ti,Wt,or),Al(he,"width",Vn)}),Xe.each(Vn=>{const or=wr(he),Mr=ns(lt,he),no=wy(Mr,or,Vn);Oy(no,Ct,Wt),Al(he,"height",Vn)})},sw=Gr,Pb=ro,t3=po,O0=he=>{at(he,"width"),at(he,"height")},hu=he=>{const Ce=Pr(he);Zm(he,A.some(Ce),A.none()),O0(he)},ip=he=>{const Ce=In(he);Zm(he,A.some(Ce),A.none()),O0(he)},$4=he=>{const Ce=Ir(he);Zm(he,A.none(),A.some(Ce)),O0(he)},qm=he=>{Jl(he,"width");const Ce=$d(he),Xe=Ce.length>0?Ce:vu(he);U(Xe,lt=>{Jl(lt,"width"),O0(lt)}),O0(he)},lw={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cw=()=>Nt.fromTag("th"),o2=()=>Nt.fromTag("td"),$p=()=>Nt.fromTag("col"),Rb=(he,Ce,Xe,lt)=>{const Ct=Nt.fromTag("tr");for(let Wt=0;Wt{const Ce=Nt.fromTag("colgroup");return Q(he,()=>to(Ce,$p())),Ce},Sy=(he,Ce,Xe,lt)=>Q(he,Ct=>Rb(Ce,Xe,lt,Ct)),bv=(he,Ce,Xe,lt,Ct,Wt=lw)=>{const kn=Nt.fromTag("table"),Vn=Ct!=="cells";Wl(kn,Wt.styles),bt(kn,Wt.attributes),Wt.colGroups&&to(kn,Lb(Ce));const or=Math.min(he,Xe);if(Vn&&Xe>0){const xi=Nt.fromTag("thead");to(kn,xi);const Vi=Sy(Xe,Ce,Ct==="sectionCells"?or:0,lt);$o(xi,Vi)}const Mr=Nt.fromTag("tbody");to(kn,Mr);const no=Vn?he-or:he,ki=Sy(no,Ce,Vn?0:Xe,lt);return $o(Mr,ki),kn},uw=he=>he.dom.innerHTML,fw=he=>{const Ce=Nt.fromTag("div"),Xe=Nt.fromDom(he.dom.cloneNode(!0));return to(Ce,Xe),uw(Ce)},ud=(he,Ce)=>{he.selection.select(Ce.dom,!0),he.selection.collapse(!0)},i2=(he,Ce)=>{yl(Ce,"td,th").each(C(ud,he))},a2=(he,Ce)=>{U(Oo(Ce,"tr"),Xe=>{tu(he,Xe.dom),U(Oo(Xe,"th,td"),lt=>{qd(he,lt.dom)})})},s2=he=>s(he)&&he.indexOf("%")!==-1,Ib=(he,Ce,Xe,lt,Ct)=>{const Wt=Z1(he),kn={styles:Wt,attributes:Qd(he),colGroups:N_(he)};return he.undoManager.ignore(()=>{const Vn=bv(Xe,Ce,Ct,lt,z_(he),kn);st(Vn,"data-mce-id","__mce");const or=fw(Vn);he.insertContent(or),he.addVisual()}),yl(Im(he),'table[data-mce-id="__mce"]').map(Vn=>(l0(he)?ip(Vn):yp(he)?qm(Vn):(kf(he)||s2(Wt.width))&&hu(Vn),Sh(Vn),at(Vn,"data-mce-id"),a2(he,Vn),i2(he,Vn),Vn.dom)).getOrNull()},n3=(he,Ce,Xe,lt={})=>{const Ct=Wt=>a(Wt)&&Wt>0;if(Ct(Ce)&&Ct(Xe)){const Wt=lt.headerRows||0,kn=lt.headerColumns||0;return Ib(he,Xe,Ce,kn,Wt)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Ph=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Db="x-tinymce/dom-table-",l2=Db+"rows",fm=Db+"columns",r3=he=>{const Ce=Ph.FakeClipboardItem(he);Ph.write([Ce])},xv=he=>{var Ce;const Xe=(Ce=Ph.read())!==null&&Ce!==void 0?Ce:[];return we(Xe,lt=>A.from(lt.getType(he)))},g1=he=>{xv(he).isSome()&&Ph.clear()},_v=he=>{he.fold(ky,Ce=>r3({[l2]:Ce}))},wv=()=>xv(l2),ky=()=>g1(l2),Ov=he=>{he.fold(o3,Ce=>r3({[fm]:Ce}))},dw=()=>xv(fm),o3=()=>g1(fm),Bb=he=>Z_(zp(he),Dm(he)).filter(e1),hw=he=>q_(zp(he),Dm(he)).filter(e1),v1=(he,Ce)=>{const Xe=Dm(he),lt=()=>Bb(he).each(Xo=>{bl(Xo,Xe).filter(x(Xe)).each(oi=>{const wa=Nt.fromText("");if(Jr(oi,wa),pi(oi),he.dom.isEmpty(he.getBody()))he.setContent(""),he.selection.setCursorLocation();else{const Pa=he.dom.createRng();Pa.setStart(wa.dom,0),Pa.setEnd(wa.dom,0),he.selection.setRng(Pa),he.nodeChanged()}})}),Ct=Xo=>Bb(he).each(oi=>{yp(he)||l0(he)||kf(he)||bl(oi,Xe).each(Pa=>{Xo==="relative"&&!sw(Pa)?hu(Pa):Xo==="fixed"&&!Pb(Pa)?ip(Pa):Xo==="responsive"&&!t3(Pa)&&qm(Pa),Sh(Pa),Cd(he,Pa.dom,dl)})}),Wt=Xo=>bl(Xo,Xe),kn=Xo=>hw(he).bind(oi=>Wt(oi).map(wa=>Xo(wa,oi))),Vn=(Xo,oi)=>{kn(wa=>{he.formatter.toggle("tableclass",{value:oi},wa.dom),Cd(he,wa.dom,$c)})},or=(Xo,oi)=>{kn(wa=>{const Pa=uc(he),nu=se(Pa,Ll=>he.formatter.match("tablecellclass",{value:oi},Ll.dom))?he.formatter.remove:he.formatter.apply;U(Pa,Ll=>nu("tablecellclass",{value:oi},Ll.dom)),Cd(he,wa.dom,$c)})},Mr=()=>{Bb(he).each(Xo=>{bl(Xo,Xe).each(oi=>{zi(oi,"caption").fold(()=>{const wa=Nt.fromTag("caption");to(wa,Nt.fromText("Caption")),co(oi,wa,0),he.selection.setCursorLocation(wa.dom,0)},wa=>{vt("caption")(Xo)&&wn("td",oi).each(Pa=>he.selection.setCursorLocation(Pa.dom,0)),pi(wa)}),Cd(he,oi.dom,dl)})})},no=Xo=>{he.focus()},ti=(Xo,oi=!1)=>kn((wa,Pa)=>{const ta=Vx(uc(he),wa,Pa);Xo(wa,ta,oi).each(no)}),ki=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi),Pa=i0(c,Nt.fromDom(he.getDoc()),A.none());return b0(Xo,wa,Pa)}),xi=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi);return p1(Xo,wa)}),fi=(Xo,oi)=>oi().each(wa=>{const Pa=j(wa,ta=>Sr(ta));kn((ta,nu)=>{const Ll=a0(Nt.fromDom(he.getDoc())),$u=u0(uc(he),nu,Pa,Ll);Xo(ta,$u).each(no)})}),Vi=Xo=>(oi,wa)=>Re(wa,"type").each(Pa=>{ti(Xo(Pa),wa.no_events)});Ie({mceTableSplitCells:()=>ti(Ce.unmergeCells),mceTableMergeCells:()=>ti(Ce.mergeCells),mceTableInsertRowBefore:()=>ti(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>ti(Ce.insertRowsAfter),mceTableInsertColBefore:()=>ti(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>ti(Ce.insertColumnsAfter),mceTableDeleteCol:()=>ti(Ce.deleteColumn),mceTableDeleteRow:()=>ti(Ce.deleteRow),mceTableCutCol:()=>xi().each(Xo=>{Ov(Xo),ti(Ce.deleteColumn)}),mceTableCutRow:()=>ki().each(Xo=>{_v(Xo),ti(Ce.deleteRow)}),mceTableCopyCol:()=>xi().each(Xo=>Ov(Xo)),mceTableCopyRow:()=>ki().each(Xo=>_v(Xo)),mceTablePasteColBefore:()=>fi(Ce.pasteColsBefore,dw),mceTablePasteColAfter:()=>fi(Ce.pasteColsAfter,dw),mceTablePasteRowBefore:()=>fi(Ce.pasteRowsBefore,wv),mceTablePasteRowAfter:()=>fi(Ce.pasteRowsAfter,wv),mceTableDelete:lt,mceTableCellToggleClass:or,mceTableToggleClass:Vn,mceTableToggleCaption:Mr,mceTableSizingMode:(Xo,oi)=>Ct(oi),mceTableCellType:Vi(Xo=>Xo==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:Vi(Xo=>Xo==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:Vi(Xo=>{switch(Xo){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(Xo,oi)=>he.addCommand(oi,Xo)),he.addCommand("mceInsertTable",(Xo,oi)=>{n3(he,oi.rows,oi.columns,oi.options)}),he.addCommand("mceTableApplyCellStyle",(Xo,oi)=>{const wa=nu=>"tablecell"+nu.toLowerCase().replace("-","");if(!n(oi))return;const Pa=Z(uc(he),e1);if(Pa.length===0)return;const ta=$e(oi,(nu,Ll)=>he.formatter.has(wa(Ll))&&s(nu));Ze(ta)||(Ie(ta,(nu,Ll)=>{const $u=wa(Ll);U(Pa,vm=>{nu===""?he.formatter.remove($u,{value:null},vm.dom,!0):he.formatter.apply($u,{value:nu},vm.dom)})}),Wt(Pa[0]).each(nu=>Cd(he,nu.dom,$c)))})},c2=(he,Ce)=>{const Xe=Dm(he),lt=Ct=>q_(zp(he)).bind(Wt=>bl(Wt,Xe).map(kn=>{const Vn=Vx(uc(he),kn,Wt);return Ct(kn,Vn)})).getOr("");Ie({mceTableRowType:()=>lt(Ce.getTableRowType),mceTableCellType:()=>lt(Ce.getTableCellType),mceTableColType:()=>lt(Ce.getTableColType)},(Ct,Wt)=>he.addQueryValueHandler(Wt,Ct))},Wm=sm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),pw=(he,Ce,Xe,lt)=>he.fold(Ce,Xe,lt),mw=he=>he.fold(_,_,_),wp=Wm.before,zb=Wm.on,u2=Wm.after,Hf={before:wp,on:zb,after:u2,cata:pw,getStart:mw},ap={create:(he,Ce)=>({selection:he,kill:Ce})},Nb=(he,Ce)=>{const Xe=he.document.createRange();return Xe.selectNode(Ce.dom),Xe},i3=(he,Ce)=>{const Xe=he.document.createRange();return dm(Xe,Ce),Xe},dm=(he,Ce)=>he.selectNodeContents(Ce.dom),Ty=(he,Ce)=>{Ce.fold(Xe=>{he.setStartBefore(Xe.dom)},(Xe,lt)=>{he.setStart(Xe.dom,lt)},Xe=>{he.setStartAfter(Xe.dom)})},f2=(he,Ce)=>{Ce.fold(Xe=>{he.setEndBefore(Xe.dom)},(Xe,lt)=>{he.setEnd(Xe.dom,lt)},Xe=>{he.setEndAfter(Xe.dom)})},a3=(he,Ce,Xe)=>{const lt=he.document.createRange();return Ty(lt,Ce),f2(lt,Xe),lt},d2=(he,Ce,Xe,lt,Ct)=>{const Wt=he.document.createRange();return Wt.setStart(Ce.dom,Xe),Wt.setEnd(lt.dom,Ct),Wt},s3=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom,width:he.width,height:he.height}),h2=he=>{const Ce=he.getClientRects(),Xe=Ce.length>0?Ce[0]:he.getBoundingClientRect();return Xe.width>0||Xe.height>0?A.some(Xe).map(s3):A.none()},Fb=sm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),l3=(he,Ce,Xe)=>Ce(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset),c3=(he,Ce)=>Ce.match({domRange:Xe=>({ltr:v(Xe),rtl:A.none}),relative:(Xe,lt)=>({ltr:cs(()=>a3(he,Xe,lt)),rtl:cs(()=>A.some(a3(he,lt,Xe)))}),exact:(Xe,lt,Ct,Wt)=>({ltr:cs(()=>d2(he,Xe,lt,Ct,Wt)),rtl:cs(()=>A.some(d2(he,Ct,Wt,Xe,lt)))})}),U4=(he,Ce)=>{const Xe=Ce.ltr();return Xe.collapsed?Ce.rtl().filter(Ct=>Ct.collapsed===!1).map(Ct=>Fb.rtl(Nt.fromDom(Ct.endContainer),Ct.endOffset,Nt.fromDom(Ct.startContainer),Ct.startOffset)).getOrThunk(()=>l3(he,Fb.ltr,Xe)):l3(he,Fb.ltr,Xe)},p2=(he,Ce)=>{const Xe=c3(he,Ce);return U4(he,Xe)},m2=(he,Ce)=>p2(he,Ce).match({ltr:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(lt.dom,Ct),Vn.setEnd(Wt.dom,kn),Vn},rtl:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(Wt.dom,kn),Vn.setEnd(lt.dom,Ct),Vn}});Fb.ltr,Fb.rtl;const S0={create:(he,Ce,Xe,lt)=>({start:he,soffset:Ce,finish:Xe,foffset:lt})},y1={create:(he,Ce,Xe,lt)=>({start:Hf.on(he,Ce),finish:Hf.on(Xe,lt)})},g2=(he,Ce)=>{const Xe=m2(he,Ce);return S0.create(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset)},u3=y1.create,zM=(he,Ce,Xe,lt,Ct,Wt,kn)=>An(Xe,Ct)&<===Wt?A.none():Bs(Xe,"td,th",Ce).bind(Vn=>Bs(Ct,"td,th",Ce).bind(or=>gC(he,Ce,Vn,or,kn))),gC=(he,Ce,Xe,lt,Ct)=>An(Xe,lt)?A.none():Y1(Xe,lt,Ce).bind(Wt=>{const kn=Wt.boxes.getOr([]);return kn.length>1?(Ct(he,kn,Wt.start,Wt.finish),A.some(ap.create(A.some(u3(Xe,0,Xe,Is(Xe))),!0))):A.none()}),$b=(he,Ce,Xe,lt,Ct)=>{const Wt=kn=>(Ct.clearBeforeUpdate(Xe),Ct.selectRange(Xe,kn.boxes,kn.start,kn.finish),kn.boxes);return Q_(lt,he,Ce,Ct.firstSelectedSelector,Ct.lastSelectedSelector).map(Wt)},vC=(he,Ce)=>({item:he,mode:Ce}),vw=(he,Ce,Xe,lt=Cy)=>he.property().parent(Ce).map(Ct=>vC(Ct,lt)),Cy=(he,Ce,Xe,lt=yw)=>Xe.sibling(he,Ce).map(Ct=>vC(Ct,lt)),yw=(he,Ce,Xe,lt=yw)=>{const Ct=he.property().children(Ce);return Xe.first(Ct).map(kn=>vC(kn,lt))},yC=[{current:vw,next:Cy,fallback:A.none()},{current:Cy,next:yw,fallback:A.some(vw)},{current:yw,next:yw,fallback:A.some(Cy)}],bC=(he,Ce,Xe,lt,Ct=yC)=>Y(Ct,kn=>kn.current===Xe).bind(kn=>kn.current(he,Ce,lt,kn.next).orThunk(()=>kn.fallback.bind(Vn=>bC(he,Ce,Vn,lt)))),v2={left:()=>({sibling:(Xe,lt)=>Xe.query().prevSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[Xe.length-1]):A.none()}),right:()=>({sibling:(Xe,lt)=>Xe.query().nextSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[0]):A.none()})},b1=(he,Ce,Xe,lt,Ct,Wt)=>bC(he,Ce,lt,Ct).bind(Vn=>Wt(Vn.item)?A.none():Xe(Vn.item)?A.some(Vn.item):b1(he,Vn.item,Xe,Vn.mode,Ct,Wt)),FM=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Cy,v2.left(),lt),j4=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Cy,v2.right(),lt),xC=he=>Ce=>he.property().children(Ce).length===0,_C=(he,Ce,Xe)=>Q4(he,Ce,xC(he),Xe),wC=(he,Ce,Xe)=>OC(he,Ce,xC(he),Xe),Q4=FM,OC=j4,Ay=bg(),SC=(he,Ce)=>_C(Ay,he,Ce),Vb=(he,Ce)=>wC(Ay,he,Ce),My=(he,Ce,Xe)=>Q4(Ay,he,Ce,Xe),bw=(he,Ce,Xe)=>OC(Ay,he,Ce,Xe),y2=(he,Ce,Xe)=>Di(he,Ce,Xe).isSome(),f3=sm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Ey=(he,Ce,Xe)=>{const lt=he.getRect(Ce),Ct=he.getRect(Xe);return Ct.right>lt.left&&Ct.leftBs(he,"tr"),b2={...f3,verify:(he,Ce,Xe,lt,Ct,Wt,kn)=>Bs(lt,"td,th",kn).bind(Vn=>Bs(Ce,"td,th",kn).map(or=>An(Vn,or)?An(lt,Vn)&&Is(Vn)===Ct?Wt(or):f3.none("in same cell"):kh(hm,[Vn,or]).fold(()=>Ey(he,or,Vn)?f3.success():Wt(or),Mr=>Wt(or)))).getOr(f3.none("default")),cata:(he,Ce,Xe,lt,Ct)=>he.fold(Ce,Xe,lt,Ct)},kC=(he,Ce,Xe,lt)=>({parent:he,children:Ce,element:Xe,index:lt}),x2=he=>$r(he).bind(Ce=>{const Xe=lr(Ce);return _2(Xe,he).map(lt=>kC(Ce,Xe,he,lt))}),_2=(he,Ce)=>ee(he,C(An,Ce)),Yd=vt("br"),d3=(he,Ce,Xe)=>Ce(he,Xe).bind(lt=>Cn(lt)&&Cs(lt).trim().length===0?d3(lt,Ce,Xe):A.some(lt)),xw=(he,Ce,Xe)=>Xe.traverse(Ce).orThunk(()=>d3(Ce,Xe.gather,he)).map(Xe.relative),h3=(he,Ce)=>zr(he,Ce).filter(Yd).orThunk(()=>zr(he,Ce-1).filter(Yd)),TC=(he,Ce,Xe,lt)=>h3(Ce,Xe).bind(Ct=>lt.traverse(Ct).fold(()=>d3(Ct,lt.gather,he).map(lt.relative),Wt=>x2(Wt).map(kn=>Hf.on(kn.parent,kn.index)))),Z4=(he,Ce,Xe,lt)=>(Yd(Ce)?xw(he,Ce,lt):TC(he,Ce,Xe,lt)).map(Wt=>({start:Wt,finish:Wt})),p3=he=>b2.cata(he,Ce=>A.none(),()=>A.none(),Ce=>A.some(Oc(Ce,0)),Ce=>A.some(Oc(Ce,Is(Ce)))),Ef=(he,Ce)=>({left:he.left,top:he.top+Ce,right:he.right,bottom:he.bottom+Ce}),m3=(he,Ce)=>({left:he.left,top:he.top-Ce,right:he.right,bottom:he.bottom-Ce}),x1=(he,Ce,Xe)=>({left:he.left+Ce,top:he.top+Xe,right:he.right+Ce,bottom:he.bottom+Xe}),CC=he=>he.top,q4=he=>he.bottom,Sv=(he,Ce,Xe)=>Xe>=0&&Xe0?he.getRangedRect(Ce,Xe-1,Ce,Xe):A.none(),_w=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom}),w2=(he,Ce)=>A.some(he.getRect(Ce)),g3=(he,Ce,Xe)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?Sv(he,Ce,Xe).map(_w):A.none(),v3=(he,Ce)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?he.getRangedRect(Ce,0,Ce,Is(Ce)).map(_w):A.none(),Py=5,VM=100,Vp=sm.generate([{none:[]},{retry:["caret"]}]),k0=(he,Ce)=>he.leftCe.right,W4=(he,Ce,Xe)=>To(Ce,Tf).fold(T,lt=>v3(he,lt).exists(Ct=>k0(Xe,Ct))),AC=(he,Ce,Xe,lt,Ct)=>{const Wt=Ef(Ct,Py);return Math.abs(Xe.bottom-lt.bottom)<1||Xe.top>Ct.bottom?Vp.retry(Wt):Xe.top===Ct.bottom?Vp.retry(Ef(Ct,1)):W4(he,Ce,Ct)?Vp.retry(x1(Wt,Py,0)):Vp.none()},Y4={point:CC,adjuster:(he,Ce,Xe,lt,Ct)=>{const Wt=m3(Ct,Py);return Math.abs(Xe.top-lt.top)<1||Xe.bottomhe.elementFromPoint(Ce,Xe).filter(lt=>Yt(lt)==="table").isSome(),PC=(he,Ce,Xe,lt,Ct)=>Op(he,Ce,Xe,Ce.move(lt,Py),Ct),Op=(he,Ce,Xe,lt,Ct)=>Ct===0?A.some(lt):EC(he,lt.left,Ce.point(lt))?PC(he,Ce,Xe,lt,Ct-1):he.situsFromPoint(lt.left,Ce.point(lt)).bind(Wt=>Wt.start.fold(A.none,kn=>v3(he,kn).bind(Vn=>Ce.adjuster(he,kn,Vn,Xe,lt).fold(A.none,or=>Op(he,Ce,Xe,or,Ct-1))).orThunk(()=>A.some(lt)),A.none)),Ub=(he,Ce,Xe)=>he.point(Ce)>Xe.getInnerHeight()?A.some(he.point(Ce)-Xe.getInnerHeight()):he.point(Ce)<0?A.some(-he.point(Ce)):A.none(),G4=(he,Ce,Xe)=>{const lt=he.move(Xe,Py),Ct=Op(Ce,he,Xe,lt,VM).getOr(lt);return Ub(he,Ct,Ce).fold(()=>Ce.situsFromPoint(Ct.left,he.point(Ct)),Wt=>(Ce.scrollBy(0,Wt),Ce.situsFromPoint(Ct.left,he.point(Ct)-Wt)))},Ry={tryUp:C(G4,Y4),tryDown:C(G4,X4),getJumpSize:v(Py)},Sp=20,Up=(he,Ce,Xe)=>he.getSelection().bind(lt=>Z4(Ce,lt.finish,lt.foffset,Xe).fold(()=>A.some(Oc(lt.finish,lt.foffset)),Ct=>{const Wt=he.fromSitus(Ct),kn=b2.verify(he,lt.finish,lt.foffset,Wt.finish,Wt.foffset,Xe.failure,Ce);return p3(kn)})),ph=(he,Ce,Xe,lt,Ct,Wt)=>Wt===0?A.none():Xm(he,Ce,Xe,lt,Ct).bind(kn=>{const Vn=he.fromSitus(kn),or=b2.verify(he,Xe,lt,Vn.finish,Vn.foffset,Ct.failure,Ce);return b2.cata(or,()=>A.none(),()=>A.some(kn),Mr=>An(Xe,Mr)&<===0?Ym(he,Xe,lt,m3,Ct):ph(he,Ce,Mr,0,Ct,Wt-1),Mr=>An(Xe,Mr)&<===Is(Mr)?Ym(he,Xe,lt,Ef,Ct):ph(he,Ce,Mr,Is(Mr),Ct,Wt-1))}),Ym=(he,Ce,Xe,lt,Ct)=>g3(he,Ce,Xe).bind(Wt=>y3(he,Ct,lt(Wt,Ry.getJumpSize()))),y3=(he,Ce,Xe)=>{const lt=wf().browser;return lt.isChromium()||lt.isSafari()||lt.isFirefox()?Ce.retry(he,Xe):A.none()},Xm=(he,Ce,Xe,lt,Ct)=>g3(he,Xe,lt).bind(Wt=>y3(he,Ct,Wt)),jb=(he,Ce,Xe)=>Up(he,Ce,Xe).bind(lt=>ph(he,Ce,lt.element,lt.offset,Xe,Sp).map(he.fromSitus)),UM=(he,Ce)=>y2(he,Xe=>$r(Xe).exists(lt=>An(lt,Ce))),K4=(he,Ce,Xe,lt,Ct)=>Bs(lt,"td,th",Ce).bind(Wt=>Bs(Wt,"table",Ce).bind(kn=>UM(Ct,kn)?jb(he,Ce,Xe).bind(Vn=>Bs(Vn.finish,"td,th",Ce).map(or=>({start:Wt,finish:or,range:Vn}))):A.none())),jM=(he,Ce,Xe,lt,Ct,Wt)=>Wt(lt,Ce).orThunk(()=>K4(he,Ce,Xe,lt,Ct).map(kn=>{const Vn=kn.range;return ap.create(A.some(u3(Vn.start,Vn.soffset,Vn.finish,Vn.foffset)),!0)})),QM=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[0])?My(lt,Wt=>gg(Wt).isSome(),Ce).map(Wt=>{const kn=Is(Wt);return ap.create(A.some(u3(Wt,kn,Wt,kn)),!0)}):A.none()})),RC=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[Ct.length-1])?bw(lt,Wt=>ch(Wt).isSome(),Ce).map(Wt=>ap.create(A.some(u3(Wt,0,Wt,0)),!0)):A.none()})),b3=(he,Ce,Xe,lt,Ct,Wt,kn)=>K4(he,Xe,lt,Ct,Wt).bind(Vn=>gC(Ce,Xe,Vn.start,Vn.finish,kn)),x3=he=>{let Ce=he;return{get:()=>Ce,set:Ct=>{Ce=Ct}}},Rh=he=>{const Ce=x3(A.none()),Xe=()=>Ce.get().each(he);return{clear:()=>{Xe(),Ce.set(A.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Vn=>{Xe(),Ce.set(A.some(Vn))}}},O2=()=>{const he=Rh(c);return{...he,on:Xe=>he.get().each(Xe)}},S2=(he,Ce)=>Bs(he,"td,th",Ce),ww=he=>vr(he).exists(ly),J4=(he,Ce,Xe,lt)=>{const Ct=O2(),Wt=Ct.clear,kn=no=>{Ct.on(ti=>{lt.clearBeforeUpdate(Ce),S2(no.target,Xe).each(ki=>{Y1(ti,ki,Xe).each(xi=>{const fi=xi.boxes.getOr([]);if(fi.length===1){const Vi=fi[0],Xo=yg(Vi)==="false",oi=yf(K0(no.target),Vi,An);Xo&&oi&<.selectRange(Ce,fi,Vi,Vi)}else fi.length>1&&(lt.selectRange(Ce,fi,xi.start,xi.finish),he.selectContents(ki))})})})};return{clearstate:Wt,mousedown:no=>{lt.clear(Ce),S2(no.target,Xe).filter(ww).each(Ct.set)},mouseover:no=>{kn(no)},mouseup:no=>{kn(no),Wt()}}},Ow={traverse:sr,gather:Vb,relative:Hf.before,retry:Ry.tryDown,failure:b2.failedDown},Sw={traverse:gr,gather:SC,relative:Hf.before,retry:Ry.tryUp,failure:b2.failedUp},Qb=he=>Ce=>Ce===he,ek=Qb(38),_3=Qb(40),Eg=he=>he>=37&&he<=40,LC={isBackward:Qb(37),isForward:Qb(39)},IC={isBackward:Qb(39),isForward:Qb(37)},kv=he=>{const Ce=he!==void 0?he.dom:document,Xe=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,lt=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Ni(Xe,lt)},pm=(he,Ce,Xe)=>{const Ct=(Xe!==void 0?Xe.dom:document).defaultView;Ct&&Ct.scrollBy(he,Ce)},kw=sm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Hb=he=>kw.exact(he.start,he.soffset,he.finish,he.foffset),Ly=he=>he.match({domRange:Ce=>Nt.fromDom(Ce.startContainer),relative:(Ce,Xe)=>Hf.getStart(Ce),exact:(Ce,Xe,lt,Ct)=>Ce}),tk=kw.domRange,w3=kw.relative,DC=kw.exact,HM=he=>{const Ce=Ly(he);return Br(Ce)},ZM=S0.create,Zb={domRange:tk,relative:w3,exact:DC,exactFromRange:Hb,getWin:HM,range:ZM},nk=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretPositionFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe)).bind(Ct=>{if(Ct.offsetNode===null)return A.none();const Wt=he.createRange();return Wt.setStart(Ct.offsetNode,Ct.offset),Wt.collapse(),A.some(Wt)})},k2=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretRangeFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe))},Tw=(he,Ce,Xe)=>he.caretPositionFromPoint?nk(he,Ce,Xe):he.caretRangeFromPoint?k2(he,Ce,Xe):A.none(),qM=(he,Ce,Xe)=>{const lt=he.document;return Tw(lt,Ce,Xe).map(Ct=>S0.create(Nt.fromDom(Ct.startContainer),Ct.startOffset,Nt.fromDom(Ct.endContainer),Ct.endOffset))},O3=(he,Ce)=>{const Xe=Yt(he);return Xe==="input"?Hf.after(he):z(["br","img"],Xe)?Ce===0?Hf.before(he):Hf.after(he):Hf.on(he,Ce)},rk=(he,Ce)=>{const Xe=he.fold(Hf.before,O3,Hf.after),lt=Ce.fold(Hf.before,O3,Hf.after);return Zb.relative(Xe,lt)},ok=(he,Ce,Xe,lt)=>{const Ct=O3(he,Ce),Wt=O3(Xe,lt);return Zb.relative(Ct,Wt)},S3=(he,Ce,Xe,lt)=>{const Wt=Un(he).dom.createRange();return Wt.setStart(he.dom,Ce),Wt.setEnd(Xe.dom,lt),Wt},ik=(he,Ce,Xe,lt)=>{const Ct=S3(he,Ce,Xe,lt),Wt=An(he,Xe)&&Ce===lt;return Ct.collapsed&&!Wt},T2=he=>A.from(he.getSelection()),k3=(he,Ce)=>{T2(he).each(Xe=>{Xe.removeAllRanges(),Xe.addRange(Ce)})},T3=(he,Ce,Xe,lt,Ct)=>{const Wt=d2(he,Ce,Xe,lt,Ct);k3(he,Wt)},C3=(he,Ce,Xe,lt,Ct,Wt)=>{Ce.collapse(Xe.dom,lt),Ce.extend(Ct.dom,Wt)},A3=(he,Ce)=>p2(he,Ce).match({ltr:(Xe,lt,Ct,Wt)=>{T3(he,Xe,lt,Ct,Wt)},rtl:(Xe,lt,Ct,Wt)=>{T2(he).each(kn=>{if(kn.setBaseAndExtent)kn.setBaseAndExtent(Xe.dom,lt,Ct.dom,Wt);else if(kn.extend)try{C3(he,kn,Xe,lt,Ct,Wt)}catch{T3(he,Ct,Wt,Xe,lt)}else T3(he,Ct,Wt,Xe,lt)})}}),Ys=(he,Ce,Xe,lt,Ct)=>{const Wt=ok(Ce,Xe,lt,Ct);A3(he,Wt)},_1=(he,Ce,Xe)=>{const lt=rk(Ce,Xe);A3(he,lt)},qb=he=>{if(he.rangeCount>0){const Ce=he.getRangeAt(0),Xe=he.getRangeAt(he.rangeCount-1);return A.some(S0.create(Nt.fromDom(Ce.startContainer),Ce.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset))}else return A.none()},M3=he=>{if(he.anchorNode===null||he.focusNode===null)return qb(he);{const Ce=Nt.fromDom(he.anchorNode),Xe=Nt.fromDom(he.focusNode);return ik(Ce,he.anchorOffset,Xe,he.focusOffset)?A.some(S0.create(Ce,he.anchorOffset,Xe,he.focusOffset)):qb(he)}},E3=(he,Ce,Xe=!0)=>{const Ct=(Xe?i3:Nb)(he,Ce);k3(he,Ct)},Iy=he=>T2(he).filter(Ce=>Ce.rangeCount>0).bind(M3),P3=he=>Iy(he).map(Ce=>Zb.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),ak=(he,Ce)=>{const Xe=m2(he,Ce);return h2(Xe)},sk=(he,Ce,Xe)=>qM(he,Ce,Xe),lk=he=>{T2(he).each(Ce=>Ce.removeAllRanges())},Tv=he=>({elementFromPoint:(Xo,oi)=>Nt.fromPoint(Nt.fromDom(he.document),Xo,oi),getRect:Xo=>Xo.dom.getBoundingClientRect(),getRangedRect:(Xo,oi,wa,Pa)=>{const ta=Zb.exact(Xo,oi,wa,Pa);return ak(he,ta)},getSelection:()=>P3(he).map(Xo=>g2(he,Xo)),fromSitus:Xo=>{const oi=Zb.relative(Xo.start,Xo.finish);return g2(he,oi)},situsFromPoint:(Xo,oi)=>sk(he,Xo,oi).map(wa=>y1.create(wa.start,wa.soffset,wa.finish,wa.foffset)),clearSelection:()=>{lk(he)},collapseSelection:(Xo=!1)=>{P3(he).each(oi=>oi.fold(wa=>wa.collapse(Xo),(wa,Pa)=>{const ta=Xo?wa:Pa;_1(he,ta,ta)},(wa,Pa,ta,nu)=>{const Ll=Xo?wa:ta,$u=Xo?Pa:nu;Ys(he,Ll,$u,Ll,$u)}))},setSelection:Xo=>{Ys(he,Xo.start,Xo.soffset,Xo.finish,Xo.foffset)},setRelativeSelection:(Xo,oi)=>{_1(he,Xo,oi)},selectNode:Xo=>{E3(he,Xo,!1)},selectContents:Xo=>{E3(he,Xo)},getInnerHeight:()=>he.innerHeight,getScrollY:()=>kv(Nt.fromDom(he.document)).top,scrollBy:(Xo,oi)=>{pm(Xo,oi,Nt.fromDom(he.document))}}),Wb=(he,Ce)=>({rows:he,cols:Ce}),BC=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=J4(Ct,Ce,Xe,lt);return{clearstate:Wt.clearstate,mousedown:Wt.mousedown,mouseover:Wt.mouseover,mouseup:Wt.mouseup}},Cw=he=>To(he,Ot).exists(ly),ck=(he,Ce)=>Cw(he)||Cw(Ce),R3=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=()=>(lt.clear(Ce),A.none());return{keydown:(or,Mr,no,ti,ki,xi)=>{const fi=or.raw,Vi=fi.which,Xo=fi.shiftKey===!0;return uy(Ce,lt.selectedSelector).fold(()=>(Eg(Vi)&&!Xo&<.clearBeforeUpdate(Ce),Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?C(b3,Ct,Ce,Xe,Ow,ti,Mr,lt.selectRange):ek(Vi)&&Xo?C(b3,Ct,Ce,Xe,Sw,ti,Mr,lt.selectRange):_3(Vi)?C(jM,Ct,Xe,Ow,ti,Mr,RC):ek(Vi)?C(jM,Ct,Xe,Sw,ti,Mr,QM):A.none),wa=>{const Pa=ta=>()=>we(ta,Ll=>$b(Ll.rows,Ll.cols,Ce,wa,lt)).fold(()=>jO(Ce,lt.firstSelectedSelector,lt.lastSelectedSelector).map(Ll=>{const $u=_3(Vi)||xi.isForward(Vi)?Hf.after:Hf.before;return Ct.setRelativeSelection(Hf.on(Ll.first,0),$u(Ll.table)),lt.clear(Ce),ap.create(A.none(),!0)}),Ll=>A.some(ap.create(A.none(),!0)));return Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?Pa([Wb(1,0)]):ek(Vi)&&Xo?Pa([Wb(-1,0)]):xi.isBackward(Vi)&&Xo?Pa([Wb(0,-1),Wb(-1,0)]):xi.isForward(Vi)&&Xo?Pa([Wb(0,1),Wb(1,0)]):Eg(Vi)&&!Xo?Wt:A.none})()},keyup:(or,Mr,no,ti,ki)=>uy(Ce,lt.selectedSelector).fold(()=>{const xi=or.raw,fi=xi.which;return xi.shiftKey===!0&&Eg(fi)&&ck(Mr,ti)?zM(Ce,Xe,Mr,no,ti,ki,lt.selectRange):A.none()},A.none)}},L3=(he,Ce,Xe,lt)=>{const Ct=Tv(he);return(Wt,kn)=>{lt.clearBeforeUpdate(Ce),Y1(Wt,kn,Xe).each(Vn=>{const or=Vn.boxes.getOr([]);lt.selectRange(Ce,or,Vn.start,Vn.finish),Ct.selectContents(kn),Ct.collapseSelection()})}},uk=(he,Ce)=>{const Xe=Dt(he,Ce);return Xe===void 0||Xe===""?[]:Xe.split(" ")},zC=(he,Ce,Xe)=>{const Ct=uk(he,Ce).concat([Xe]);return st(he,Ce,Ct.join(" ")),!0},Cv=(he,Ce,Xe)=>{const lt=Z(uk(he,Ce),Ct=>Ct!==Xe);return lt.length>0?st(he,Ce,lt.join(" ")):at(he,Ce),!1},I3=he=>he.dom.classList!==void 0,NC=he=>uk(he,"class"),Gm=(he,Ce)=>zC(he,"class",Ce),Ed=(he,Ce)=>Cv(he,"class",Ce),Av=(he,Ce)=>{I3(he)?he.dom.classList.add(Ce):Gm(he,Ce)},fk=he=>{(I3(he)?he.dom.classList:NC(he)).length===0&&at(he,"class")},WM=(he,Ce)=>{I3(he)?he.dom.classList.remove(Ce):Ed(he,Ce),fk(he)},D3=(he,Ce)=>I3(he)&&he.dom.classList.contains(Ce),dk=(he,Ce)=>{U(Ce,Xe=>{WM(he,Xe)})},C2=he=>Ce=>{Av(Ce,he)},FC=he=>Ce=>{dk(Ce,he)},XM={byClass:he=>{const Ce=C2(he.selected),Xe=FC([he.selected,he.lastSelected,he.firstSelected]),lt=Wt=>{const kn=Oo(Wt,he.selectedSelector);U(kn,Xe)};return{clearBeforeUpdate:lt,clear:lt,selectRange:(Wt,kn,Vn,or)=>{lt(Wt),U(kn,Ce),Av(Vn,he.firstSelected),Av(or,he.lastSelected)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}},byAttr:(he,Ce,Xe)=>{const lt=or=>{at(or,he.selected),at(or,he.firstSelected),at(or,he.lastSelected)},Ct=or=>{st(or,he.selected,"1")},Wt=or=>{kn(or),Xe()},kn=or=>{const Mr=Oo(or,`${he.selectedSelector},${he.firstSelectedSelector},${he.lastSelectedSelector}`);U(Mr,lt)};return{clearBeforeUpdate:kn,clear:Wt,selectRange:(or,Mr,no,ti)=>{Wt(or),U(Mr,Ct),st(no,he.firstSelected,"1"),st(ti,he.lastSelected,"1"),Ce(Mr,no,ti)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}}},$C=(he,Ce,Xe,lt)=>{switch(he.tag){case"none":return Ce();case"single":return lt(he.element);case"multiple":return Xe(he.elements)}},VC=()=>({tag:"none"}),Ei=he=>({tag:"multiple",elements:he}),Pd=he=>({tag:"single",element:he}),Aw=(he,Ce,Xe)=>({get:()=>wg(he(),Xe).fold(()=>Ce().fold(VC,Pd),Ei)}),Rd=(he,Ce)=>{const Xe=he.slice(0,Ce[Ce.length-1].row+1),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(0,Ce[Ce.length-1].column+1);return j(Wt,kn=>kn.element)})},Km=(he,Ce)=>{const Xe=he.slice(Ce[0].row+Ce[0].rowspan-1,he.length),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(Ce[0].column+Ce[0].colspan-1,Ct.cells.length);return j(Wt,kn=>kn.element)})},hk=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Ch(lt,Ce).map(Wt=>{const kn=iv(lt,Xe,!1),{rows:Vn}=zl(kn),or=Rd(Vn,Wt),Mr=Km(Vn,Wt);return{upOrLeftCells:or,downOrRightCells:Mr}})},Yb=(he,Ce,Xe,lt,Ct,Wt,kn)=>({target:he,x:Ce,y:Xe,stop:lt,prevent:Ct,kill:Wt,raw:kn}),Mw=he=>{const Ce=Nt.fromDom(Cr(he).getOr(he.target)),Xe=()=>he.stopPropagation(),lt=()=>he.preventDefault(),Ct=h(lt,Xe);return Yb(Ce,he.clientX,he.clientY,Xe,lt,Ct,he)},Xb=(he,Ce)=>Xe=>{he(Xe)&&Ce(Mw(Xe))},Ew=(he,Ce,Xe,lt,Ct)=>{const Wt=Xb(Xe,lt);return he.dom.addEventListener(Ce,Wt,Ct),{unbind:C(GM,he,Ce,Wt,Ct)}},UC=(he,Ce,Xe,lt)=>Ew(he,Ce,Xe,lt,!1),GM=(he,Ce,Xe,lt)=>{he.dom.removeEventListener(Ce,Xe,lt)},KM=P,A2=(he,Ce,Xe)=>UC(he,Ce,KM,Xe),Gb=Mw,pk=he=>!D3(Nt.fromDom(he.target),"ephox-snooker-resizer-bar"),mk=(he,Ce)=>{const Xe=Aw(()=>Nt.fromDom(he.getBody()),()=>q_(zp(he),Dm(he)),Xu.selectedSelector),lt=(or,Mr,no)=>{bl(Mr).each(ki=>{const xi=j(or,wa=>wa.dom),fi=VO(he),Vi=i0(c,Nt.fromDom(he.getDoc()),fi),Xo=uc(he),oi=hk(ki,{selection:Xo},Vi).map(wa=>ze(wa,Pa=>j(Pa,ta=>ta.dom))).getOrUndefined();d1(he,xi,Mr.dom,no.dom,oi)})},Ct=()=>t2(he),Wt=XM.byAttr(Xu,lt,Ct);return he.on("init",or=>{const Mr=he.getWin(),no=Im(he),ti=Dm(he),ki=()=>{const Tl=he.selection,Ld=Nt.fromDom(Tl.getStart()),sp=Nt.fromDom(Tl.getEnd());kh(bl,[Ld,sp]).fold(()=>Wt.clear(no),c)},xi=BC(Mr,no,ti,Wt),fi=R3(Mr,no,ti,Wt),Vi=L3(Mr,no,ti,Wt),Xo=Tl=>Tl.raw.shiftKey===!0;he.on("TableSelectorChange",Tl=>Vi(Tl.start,Tl.finish));const oi=(Tl,Ld)=>{Xo(Tl)&&(Ld.kill&&Tl.kill(),Ld.selection.each(sp=>{const Rg=Zb.relative(sp.start,sp.finish),ym=m2(Mr,Rg);he.selection.setRng(ym)}))},wa=Tl=>{const Ld=Gb(Tl);if(Ld.raw.shiftKey&&Eg(Ld.raw.which)){const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer);fi.keyup(Ld,Rg,sp.startOffset,ym,sp.endOffset).each(P2=>{oi(Ld,P2)})}},Pa=Tl=>{const Ld=Gb(Tl);Ce.hide();const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer),P2=Kt(LC,IC)(Nt.fromDom(he.selection.getStart()));fi.keydown(Ld,Rg,sp.startOffset,ym,sp.endOffset,P2).each(Wa=>{oi(Ld,Wa)}),Ce.show()},ta=Tl=>Tl.button===0,nu=Tl=>Tl.buttons===void 0?!0:(Tl.buttons&1)!==0,Ll=Tl=>{xi.clearstate()},$u=Tl=>{ta(Tl)&&pk(Tl)&&xi.mousedown(Gb(Tl))},vm=Tl=>{nu(Tl)&&pk(Tl)&&xi.mouseover(Gb(Tl))},gh=Tl=>{ta(Tl)&&pk(Tl)&&xi.mouseup(Gb(Tl))},ex=(()=>{const Tl=x3(Nt.fromDom(no)),Ld=x3(0);return{touchEnd:Rg=>{const ym=Nt.fromDom(Rg.target);if(vt("td")(ym)||vt("th")(ym)){const P2=Tl.get(),Wa=Ld.get();An(P2,ym)&&Rg.timeStamp-Wa<300&&(Rg.preventDefault(),Vi(ym,ym))}Tl.set(ym),Ld.set(Rg.timeStamp)}}})();he.on("dragstart",Ll),he.on("mousedown",$u),he.on("mouseover",vm),he.on("mouseup",gh),he.on("touchend",ex.touchEnd),he.on("keyup",wa),he.on("keydown",Pa),he.on("NodeChange",ki)}),he.on("PreInit",()=>{he.serializer.addTempAttr(Xu.firstSelected),he.serializer.addTempAttr(Xu.lastSelected)}),{getSelectedCells:()=>$C(Xe.get(),v([]),or=>j(or,Mr=>Mr.dom),or=>[or.dom]),clearSelectedCells:or=>Wt.clear(Nt.fromDom(or))}},jp=he=>{let Ce=[];return{bind:Wt=>{if(Wt===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Wt)},unbind:Wt=>{Ce=Z(Ce,kn=>kn!==Wt)},trigger:(...Wt)=>{const kn={};U(he,(Vn,or)=>{kn[Vn]=Wt[or]}),U(Ce,Vn=>{Vn(kn)})}}},w1=he=>{const Ce=ze(he,lt=>({bind:lt.bind,unbind:lt.unbind})),Xe=ze(he,lt=>lt.trigger);return{registry:Ce,trigger:Xe}},B3=(he,Ce)=>{let Xe=null;const lt=()=>{b(Xe)||(clearTimeout(Xe),Xe=null)};return{cancel:lt,throttle:(...Wt)=>{lt(),Xe=setTimeout(()=>{Xe=null,he.apply(null,Wt)},Ce)}}},Pg=he=>he.slice(0).sort(),z3=(he,Ce)=>{throw new Error("All required keys ("+Pg(he).join(", ")+") were not specified. Specified keys were: "+Pg(Ce).join(", ")+".")},JM=he=>{throw new Error("Unsupported keys for object: "+Pg(he).join(", "))},N3=(he,Ce)=>{if(!u(Ce))throw new Error("The "+he+" fields must be an array. Was: "+Ce+".");U(Ce,Xe=>{if(!s(Xe))throw new Error("The value "+Xe+" in the "+he+" fields was not a string.")})},F3=(he,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Pg(he).join(", ")+") were not.")},eE=he=>{const Ce=Pg(he);Y(Ce,(lt,Ct)=>Ct{throw new Error("The field: "+lt+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},tE=(he,Ce)=>nE(he,Ce,{validate:m,label:"function"}),nE=(he,Ce,Xe)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return N3("required",Ce),eE(Ce),lt=>{const Ct=Te(lt);se(Ce,Vn=>z(Ct,Vn))||z3(Ce,Ct),he(Ce,Ct);const kn=Z(Ce,Vn=>!Xe.validate(lt[Vn],Vn));return kn.length>0&&F3(kn,Xe.label),lt}},rE=(he,Ce)=>{const Xe=Z(Ce,lt=>!z(he,lt));Xe.length>0&&JM(Xe)},$3=he=>tE(rE,he),jC=$3(["compare","extract","mutate","sink"]),oE=$3(["element","start","stop","destroy"]),V3=$3(["forceDrop","drop","move","delayDrop"]),mh=()=>{let he=A.none();const Ce=()=>{he=A.none()},Xe=(Wt,kn)=>{const Vn=he.map(or=>Wt.compare(or,kn));return he=A.some(kn),Vn},lt=(Wt,kn)=>{kn.extract(Wt).each(or=>{Xe(kn,or).each(no=>{Ct.trigger.move(no)})})},Ct=w1({move:jp(["info"])});return{onEvent:lt,reset:Ce,events:Ct.registry}},Jm=()=>{const he=w1({move:jp(["info"])});return{onEvent:c,reset:c,events:he.registry}},mm=()=>{const he=Jm(),Ce=mh();let Xe=he;return{on:()=>{Xe.reset(),Xe=Ce},off:()=>{Xe.reset(),Xe=he},isOn:()=>Xe===Ce,onEvent:(Vn,or)=>{Xe.onEvent(Vn,or)},events:Ce.events}},U3=(he,Ce,Xe)=>{let lt=!1;const Ct=w1({start:jp([]),stop:jp([])}),Wt=mm(),kn=()=>{fi.stop(),Wt.isOn()&&(Wt.off(),Ct.trigger.stop())},Vn=B3(kn,200),or=Xo=>{fi.start(Xo),Wt.on(),Ct.trigger.start()},Mr=Xo=>{Vn.cancel(),Wt.onEvent(Xo,Ce)};Wt.events.move.bind(Xo=>{Ce.mutate(he,Xo.info)});const no=()=>{lt=!0},ti=()=>{lt=!1},ki=()=>lt,xi=Xo=>(...oi)=>{lt&&Xo.apply(null,oi)},fi=Ce.sink(V3({forceDrop:kn,drop:xi(kn),move:xi(Mr),delayDrop:xi(Vn.throttle)}),Xe),Vi=()=>{fi.destroy()};return{element:fi.element,go:or,on:no,off:ti,isActive:ki,destroy:Vi,events:Ct.registry}},Pw=he=>{const Ce=he.replace(/\./g,"-");return{resolve:lt=>Ce+"-"+lt}},Rw=Pw("ephox-dragster").resolve,iE=he=>{const Ce={layerClass:Rw("blocker"),...he},Xe=Nt.fromTag("div");return st(Xe,"role","presentation"),Wl(Xe,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Av(Xe,Rw("blocker")),Av(Xe,Ce.layerClass),{element:v(Xe),destroy:()=>{pi(Xe)}}};var qC=jC({compare:(he,Ce)=>Ni(Ce.left-he.left,Ce.top-he.top),extract:he=>A.some(Ni(he.x,he.y)),sink:(he,Ce)=>{const Xe=iE(Ce),lt=A2(Xe.element(),"mousedown",he.forceDrop),Ct=A2(Xe.element(),"mouseup",he.drop),Wt=A2(Xe.element(),"mousemove",he.move),kn=A2(Xe.element(),"mouseout",he.delayDrop),Vn=()=>{Xe.destroy(),Ct.unbind(),Wt.unbind(),kn.unbind(),lt.unbind()},or=no=>{to(no,Xe.element())},Mr=()=>{pi(Xe.element())};return oE({element:Xe.element,start:or,stop:Mr,destroy:Vn})},mutate:(he,Ce)=>{he.mutate(Ce.left,Ce.top)}});const j3=(he,Ce={})=>{var Xe;const lt=(Xe=Ce.mode)!==null&&Xe!==void 0?Xe:qC;return U3(he,lt,Ce)},Jo=Pw("ephox-snooker").resolve,gm=()=>{const he=w1({drag:jp(["xDelta","yDelta"])});return{mutate:(Xe,lt)=>{he.trigger.drag(Xe,lt)},events:he.registry}},YC=()=>{const he=w1({drag:jp(["xDelta","yDelta","target"])});let Ce=A.none();const Xe=gm();return Xe.events.drag.bind(Wt=>{Ce.each(kn=>{he.trigger.drag(Wt.xDelta,Wt.yDelta,kn)})}),{assign:Wt=>{Ce=A.some(Wt)},get:()=>Ce,mutate:Xe.mutate,events:he.registry}},gk=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce-lt/2+"px",top:Xe+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-column":he,role:"presentation"}),Wt},Lw=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce+"px",top:Xe-Ct/2+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-row":he,role:"presentation"}),Wt},Kb=Jo("resizer-bar"),vk=Jo("resizer-rows"),Iw=Jo("resizer-cols"),XC=7,sE=(he,Ce)=>pe(he.all,(Xe,lt)=>Ce(Xe.element)?[lt]:[]),yk=(he,Ce)=>{const Xe=[];return Q(he.grid.columns,lt=>{Ca.getColumnAt(he,lt).map(Wt=>Wt.element).forall(Ce)&&Xe.push(lt)}),Z(Xe,lt=>{const Ct=Ca.filterItems(he,Wt=>Wt.column===lt);return se(Ct,Wt=>Ce(Wt.element))})},Dw=he=>{const Ce=Oo(he.parent(),"."+Kb);U(Ce,pi)},Dy=(he,Ce,Xe)=>{const lt=he.origin();U(Ce,Ct=>{Ct.each(Wt=>{const kn=Xe(lt,Wt);Av(kn,Kb),to(he.parent(),kn)})})},GC=(he,Ce,Xe,lt)=>{Dy(he,Ce,(Ct,Wt)=>{const kn=gk(Wt.col,Wt.x-Ct.left,Xe.top-Ct.top,XC,lt);return Av(kn,Iw),kn})},KC=(he,Ce,Xe,lt)=>{Dy(he,Ce,(Ct,Wt)=>{const kn=Lw(Wt.row,Xe.left-Ct.left,Wt.y-Ct.top,lt,XC);return Av(kn,vk),kn})},lE=(he,Ce,Xe,lt,Ct)=>{const Wt=nl(Xe),kn=Ce.isResizable,Vn=lt.length>0?Os.positions(lt,Xe):[],or=Vn.length>0?sE(he,kn):[],Mr=Z(Vn,(xi,fi)=>$(or,Vi=>fi===Vi));KC(Ce,Mr,Wt,ds(Xe));const no=Ct.length>0?tp.positions(Ct,Xe):[],ti=no.length>0?yk(he,kn):[],ki=Z(no,(xi,fi)=>$(ti,Vi=>fi===Vi));GC(Ce,ki,Wt,uo(Xe))},bk=(he,Ce)=>{if(Dw(he),he.isResizable(Ce)){const Xe=Ca.fromTable(Ce),lt=_u(Xe),Ct=Ls(Xe);lE(Xe,he,Ce,lt,Ct)}},cE=(he,Ce)=>{const Xe=Oo(he.parent(),"."+Kb);U(Xe,Ce)},Qp=he=>{cE(he,Ce=>{Al(Ce,"display","none")})},Zh=he=>{cE(he,Ce=>{Al(Ce,"display","block")})},M2=he=>D3(he,vk),PD=he=>D3(he,Iw),uE=Jo("resizer-bar-dragging"),xk=he=>{const Ce=YC(),Xe=j3(Ce,{});let lt=A.none();const Ct=(fi,Vi)=>A.from(Dt(fi,Vi));Ce.events.drag.bind(fi=>{Ct(fi.target,"data-row").each(Vi=>{const Xo=Dc(fi.target,"top");Al(fi.target,"top",Xo+fi.yDelta+"px")}),Ct(fi.target,"data-column").each(Vi=>{const Xo=Dc(fi.target,"left");Al(fi.target,"left",Xo+fi.xDelta+"px")})});const Wt=(fi,Vi)=>{const Xo=Dc(fi,Vi),oi=ll(fi,"data-initial-"+Vi,0);return Xo-oi};Xe.events.stop.bind(()=>{Ce.get().each(fi=>{lt.each(Vi=>{Ct(fi,"data-row").each(Xo=>{const oi=Wt(fi,"top");at(fi,"data-initial-top"),xi.trigger.adjustHeight(Vi,oi,parseInt(Xo,10))}),Ct(fi,"data-column").each(Xo=>{const oi=Wt(fi,"left");at(fi,"data-initial-left"),xi.trigger.adjustWidth(Vi,oi,parseInt(Xo,10))}),bk(he,Vi)})})});const kn=(fi,Vi)=>{xi.trigger.startAdjust(),Ce.assign(fi),st(fi,"data-initial-"+Vi,Dc(fi,Vi)),Av(fi,uE),Al(fi,"opacity","0.2"),Xe.go(he.parent())},Vn=A2(he.parent(),"mousedown",fi=>{M2(fi.target)&&kn(fi.target,"top"),PD(fi.target)&&kn(fi.target,"left")}),or=fi=>An(fi,he.view()),Mr=fi=>Bs(fi,"table",or).filter(ly),no=A2(he.view(),"mouseover",fi=>{Mr(fi.target).fold(()=>{Nr(fi.target)&&Dw(he)},Vi=>{Xe.isActive()&&(lt=A.some(Vi),bk(he,Vi))})}),ti=()=>{Vn.unbind(),no.unbind(),Xe.destroy(),Dw(he)},ki=fi=>{bk(he,fi)},xi=w1({adjustHeight:jp(["table","delta","row"]),adjustWidth:jp(["table","delta","column"]),startAdjust:jp([])});return{destroy:ti,refresh:ki,on:Xe.on,off:Xe.off,hideBars:C(Qp,he),showBars:C(Zh,he),events:xi.registry}},fE={create:(he,Ce,Xe)=>{const lt=Os,Ct=tp,Wt=xk(he),kn=w1({beforeResize:jp(["table","type"]),afterResize:jp(["table","type"]),startDrag:jp([])});return Wt.events.adjustHeight.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"row");const Mr=lt.delta(Vn.delta,or);Jx(or,Mr,Vn.row),kn.trigger.afterResize(or,"row")}),Wt.events.startAdjust.bind(Vn=>{kn.trigger.startDrag()}),Wt.events.adjustWidth.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"col");const Mr=Ct.delta(Vn.delta,or),no=Xe(or);Kx(or,Mr,Vn.column,Ce,no),kn.trigger.afterResize(or,"col")}),{on:Wt.on,off:Wt.off,refreshBars:Wt.refresh,hideBars:Wt.hideBars,showBars:Wt.showBars,destroy:Wt.destroy,events:kn.registry}}},O1={only:(he,Ce)=>{const Xe=Pn(he)?tr(he):he;return{parent:v(Xe),view:v(he),origin:v(Ni(0,0)),isResizable:Ce}},detached:(he,Ce,Xe)=>{const lt=()=>nl(Ce);return{parent:v(Ce),view:v(he),origin:lt,isResizable:Xe}},body:(he,Ce,Xe)=>({parent:v(Ce),view:v(he),origin:v(Ni(0,0)),isResizable:Xe})},Q3=()=>{const he=Nt.fromTag("div");return Wl(he,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),to(Eo(),he),he},hE=(he,Ce)=>he.inline?O1.body(Nt.fromDom(he.getBody()),Q3(),Ce):O1.only(Nt.fromDom(he.getDoc()),Ce),pE=(he,Ce)=>{he.inline&&pi(Ce.parent())},e6=he=>y(he)&&he.nodeName==="TABLE",Bw="bar-",_k=he=>Dt(he,"data-mce-resize")!=="false",t6=he=>{const Ce=Ca.fromTable(he);Ca.hasColumns(Ce)||U(vu(he),Xe=>{const lt=Ml(Xe,"width");Al(Xe,"width",lt),at(Xe,"width")})},LD=he=>Tc(he,"corner-"),E2=he=>xh(he,"corner-"),wk=he=>{const Ce=O2(),Xe=O2(),lt=O2();let Ct,Wt,kn,Vn;const or=oi=>du(he,oi),Mr=()=>lu(he)?o1():K1(),no=oi=>kg(oi).columns,ti=oi=>kg(oi).rows,ki=(oi,wa,Pa,ta)=>{const nu=E2(wa),Ll=iu(nu,"e"),$u=Tc(nu,"n");if(Wt===""&&hu(oi),Vn===""&&$4(oi),Pa!==Ct&&Wt!==""){Al(oi,"width",Wt);const vm=Mr(),gh=or(oi),Jb=lu(he)||Ll?no(oi)-1:0;Kx(oi,Pa-Ct,Jb,vm,gh)}else if(UO(Wt)){const vm=parseFloat(Wt.replace("%","")),gh=Pa*vm/Ct;Al(oi,"width",gh+"%")}if(W1(Wt)&&t6(oi),ta!==kn&&Vn!==""){Al(oi,"height",Vn);const vm=$u?0:ti(oi)-1;Jx(oi,ta-kn,vm)}},xi=()=>{Xe.on(oi=>{oi.destroy()}),lt.on(oi=>{pE(he,oi)})};return he.on("init",()=>{const oi=hE(he,_k);if(lt.set(oi),rm(he)&&Bp(he)){const wa=Mr(),Pa=fE.create(oi,wa,or);Pa.on(),Pa.events.startDrag.bind(ta=>{Ce.set(he.selection.getRng())}),Pa.events.beforeResize.bind(ta=>{const nu=ta.table.dom;gv(he,nu,J0(nu),F_(nu),Bw+ta.type)}),Pa.events.afterResize.bind(ta=>{const nu=ta.table,Ll=nu.dom;Sh(nu),Ce.on($u=>{he.selection.setRng($u),he.focus()}),Lu(he,Ll,J0(Ll),F_(Ll),Bw+ta.type),he.undoManager.add()}),Xe.set(Pa)}}),he.on("ObjectResizeStart",oi=>{const wa=oi.target;if(e6(wa)){const Pa=Nt.fromDom(wa);U(he.dom.select(".mce-clonedresizable"),ta=>{he.dom.addClass(ta,"mce-"+db(he)+"-columns")}),!Pb(Pa)&&l0(he)?ip(Pa):!sw(Pa)&&kf(he)&&hu(Pa),t3(Pa)&&Tc(oi.origin,Bw)&&hu(Pa),Ct=oi.width,Wt=yp(he)?"":$_(he,wa).getOr(""),kn=oi.height,Vn=Dx(he,wa).getOr("")}}),he.on("ObjectResized",oi=>{const wa=oi.target;if(e6(wa)){const Pa=Nt.fromDom(wa),ta=oi.origin;LD(ta)&&ki(Pa,ta,oi.width,oi.height),Sh(Pa),Cd(he,Pa.dom,$c)}}),he.on("SwitchMode",()=>{Xe.on(oi=>{he.mode.isReadOnly()?oi.hideBars():oi.showBars()})}),he.on("dragstart dragend",oi=>{Xe.on(wa=>{oi.type==="dragstart"?(wa.hideBars(),wa.off()):(wa.on(),wa.showBars())})}),he.on("remove",()=>{xi()}),{refresh:oi=>{Xe.on(wa=>wa.refreshBars(Nt.fromDom(oi)))},hide:()=>{Xe.on(oi=>oi.hideBars())},show:()=>{Xe.on(oi=>oi.showBars())}}},ID=he=>{H1(he);const Ce=wk(he),Xe=mk(he,Ce),lt=Iu(he,Ce,Xe);return v1(he,lt),c2(he,lt),Og(he,lt),{getSelectedCells:Xe.getSelectedCells,clearSelectedCells:Xe.clearSelectedCells}},n6=he=>({table:ID(he)});var mE=()=>{t.add("dom",n6)};mE()})();(function(){const t=Object.getPrototypeOf,e=(l,N,W)=>{var fe;return W(l,N.prototype)?!0:((fe=l.constructor)===null||fe===void 0?void 0:fe.name)===N.name},o=l=>{const N=typeof l;return l===null?"null":N==="object"&&Array.isArray(l)?"array":N==="object"&&e(l,String,(W,fe)=>fe.isPrototypeOf(W))?"string":N},f=l=>N=>o(N)===l,E=l=>N=>typeof N===l,d=l=>N=>l===N,s=(l,N)=>u(l)&&e(l,N,(W,fe)=>t(W)===fe),n=f("string"),u=f("object"),b=l=>s(l,Object),i=f("array"),S=d(null),w=E("boolean"),y=d(void 0),m=l=>l==null,a=l=>!m(l),c=E("function"),h=E("number"),p=(l,N)=>{if(i(l)){for(let W=0,fe=l.length;W{},_=l=>()=>l(),O=(l,N)=>(...W)=>l(N.apply(null,W)),C=(l,N)=>W=>l(N(W)),x=l=>()=>l,R=l=>l,M=(l,N)=>l===N;function T(l,...N){return(...W)=>{const fe=N.concat(W);return l.apply(null,fe)}}const P=l=>N=>!l(N),A=l=>()=>{throw new Error(l)},L=l=>l(),D=x(!1),k=x(!0);class I{constructor(N,W){this.tag=N,this.value=W}static some(N){return new I(!0,N)}static none(){return I.singletonNone}fold(N,W){return this.tag?W(this.value):N()}isSome(){return this.tag}isNone(){return!this.tag}map(N){return this.tag?I.some(N(this.value)):I.none()}bind(N){return this.tag?N(this.value):I.none()}exists(N){return this.tag&&N(this.value)}forall(N){return!this.tag||N(this.value)}filter(N){return!this.tag||N(this.value)?this:I.none()}getOr(N){return this.tag?this.value:N}or(N){return this.tag?this:N}getOrThunk(N){return this.tag?this.value:N()}orThunk(N){return this.tag?this:N()}getOrDie(N){if(this.tag)return this.value;throw new Error(N??"Called getOrDie on None")}static from(N){return a(N)?I.some(N):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(N){this.tag&&N(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(l,N)=>$.call(l,N),U=(l,N)=>{const W=j(l,N);return W===-1?I.none():I.some(W)},X=(l,N)=>j(l,N)>-1,te=(l,N)=>{for(let W=0,fe=l.length;W{const W=[];for(let fe=0;fe{const W=[];for(let fe=0;fe{const W=l.length,fe=new Array(W);for(let Se=0;Se{for(let W=0,fe=l.length;W{for(let W=l.length-1;W>=0;W--){const fe=l[W];N(fe,W)}},ee=(l,N)=>{const W=[],fe=[];for(let Se=0,Be=l.length;Se{const W=[];for(let fe=0,Se=l.length;fe(Y(l,(fe,Se)=>{W=N(W,fe,Se)}),W),se=(l,N,W)=>(q(l,(fe,Se)=>{W=N(W,fe,Se)}),W),ae=(l,N,W)=>{for(let fe=0,Se=l.length;feae(l,N,D),de=(l,N)=>{for(let W=0,fe=l.length;W{const N=[];for(let W=0,fe=l.length;Wye(re(l,N)),_e=(l,N)=>{for(let W=0,fe=l.length;W{const N=z.call(l,0);return N.reverse(),N},Te=(l,N)=>me(l,W=>!X(N,W)),Pe=(l,N)=>{const W={};for(let fe=0,Se=l.length;fe[l],ze=(l,N)=>{const W=z.call(l,0);return W.sort(N),W},De=(l,N)=>N>=0&&NDe(l,0),Ve=l=>De(l,l.length-1),$e=c(Array.from)?Array.from:l=>z.call(l),Oe=(l,N)=>{for(let W=0;W{const W=ke(l);for(let fe=0,Se=W.length;feZe(l,(W,fe)=>({k:fe,v:N(W,fe)})),Ze=(l,N)=>{const W={};return We(l,(fe,Se)=>{const Be=N(fe,Se);W[Be.k]=Be.v}),W},Ye=l=>(N,W)=>{l[W]=N},Je=(l,N,W,fe)=>{We(l,(Se,Be)=>{(N(Se,Be)?W:fe)(Se,Be)})},Me=(l,N)=>{const W={},fe={};return Je(l,N,Ye(W),Ye(fe)),{t:W,f:fe}},Fe=(l,N)=>{const W={};return Je(l,N,Ye(W),v),W},je=(l,N)=>{const W=[];return We(l,(fe,Se)=>{W.push(N(fe,Se))}),W},tt=(l,N)=>{const W=ke(l);for(let fe=0,Se=W.length;feje(l,R),Ge=(l,N)=>ht(l,N)?I.from(l[N]):I.none(),ht=(l,N)=>Re.call(l,N),pt=(l,N)=>ht(l,N)&&l[N]!==void 0&&l[N]!==null,St=(l,N,W=M)=>l.exists(fe=>W(fe,N)),Ft=(l,N,W=M)=>ln(l,N,W).getOr(l.isNone()&&N.isNone()),zt=l=>{const N=[],W=fe=>{N.push(fe)};for(let fe=0;fe{const N=[];for(let W=0;Wl.isSome()&&N.isSome()?I.some(W(l.getOrDie(),N.getOrDie())):I.none(),tn=(l,N,W,fe)=>l.isSome()&&N.isSome()&&W.isSome()?I.some(fe(l.getOrDie(),N.getOrDie(),W.getOrDie())):I.none(),Et=(l,N)=>l!=null?I.some(N(l)):I.none(),Ot=(l,N)=>l?I.some(N):I.none(),cn=(l,N)=>l+N,Cn=(l,N)=>l.substring(N),Pn=(l,N,W)=>N===""||l.length>=N.length&&l.substr(W,W+N.length)===N,Sn=(l,N)=>st(l,N)?Cn(l,N.length):l,vt=(l,N)=>bt(l,N)?l:cn(l,N),xt=(l,N,W=0,fe)=>{const Se=l.indexOf(N,W);return Se!==-1?y(fe)?!0:Se+N.length<=fe:!1},st=(l,N)=>Pn(l,N,0),bt=(l,N)=>Pn(l,N,l.length-N.length),Dt=(l=>N=>N.replace(l,""))(/^\s+|\s+$/g),it=l=>l.length>0,at=l=>!it(l),Bt=l=>l.style!==void 0&&c(l.style.getPropertyValue),_t=(l,N)=>{const fe=(N||document).createElement("div");if(fe.innerHTML=l,!fe.hasChildNodes()||fe.childNodes.length>1){const Se="HTML does not have a single root node";throw console.error(Se,l),new Error(Se)}return Jt(fe.childNodes[0])},qt=(l,N)=>{const fe=(N||document).createElement(l);return Jt(fe)},en=(l,N)=>{const fe=(N||document).createTextNode(l);return Jt(fe)},Jt=l=>{if(l==null)throw new Error("Node cannot be null or undefined");return{dom:l}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(l,N,W)=>I.from(l.dom.elementFromPoint(N,W)).map(Jt)},sn=typeof window<"u"?window:Function("return this;")(),rn=(l,N)=>{let W=N??sn;for(let fe=0;fe{const W=l.split(".");return rn(W,N)},wn=(l,N)=>_n(l,N),An=(l,N)=>{const W=wn(l,N);if(W==null)throw new Error(l+" not available on this browser");return W},Kn=Object.getPrototypeOf,fr=l=>An("HTMLElement",l),Un=l=>{const N=_n("ownerDocument.defaultView",l);return u(l)&&(fr(N).prototype.isPrototypeOf(l)||/^HTML\w*Element$/.test(Kn(l).constructor.name))},Zn=9,tr=11,Br=1,$r=3,vr=l=>l.dom.nodeName.toLowerCase(),qn=l=>l.dom.nodeType,gr=l=>N=>qn(N)===l,sr=l=>lr(l)&&Un(l.dom),lr=gr(Br),zr=gr($r),Vr=gr(Zn),eo=gr(tr),Jr=l=>N=>lr(N)&&vr(N)===l,Yr=(l,N)=>{const W=l.dom;if(W.nodeType!==Br)return!1;{const fe=W;if(fe.matches!==void 0)return fe.matches(N);if(fe.msMatchesSelector!==void 0)return fe.msMatchesSelector(N);if(fe.webkitMatchesSelector!==void 0)return fe.webkitMatchesSelector(N);if(fe.mozMatchesSelector!==void 0)return fe.mozMatchesSelector(N);throw new Error("Browser lacks native selectors")}},to=l=>l.nodeType!==Br&&l.nodeType!==Zn&&l.nodeType!==tr||l.childElementCount===0,co=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?[]:re(W.querySelectorAll(l),Nt.fromDom)},Fo=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?I.none():I.from(W.querySelector(l)).map(Nt.fromDom)},_o=(l,N)=>l.dom===N.dom,$o=(l,N)=>{const W=l.dom,fe=N.dom;return W===fe?!1:W.contains(fe)},Mo=l=>Nt.fromDom(l.dom.ownerDocument),pi=l=>Vr(l)?l:Mo(l),Hn=l=>Nt.fromDom(pi(l).dom.documentElement),ar=l=>Nt.fromDom(pi(l).dom.defaultView),Dr=l=>I.from(l.dom.parentNode).map(Nt.fromDom),Sr=l=>Dr(l),Zr=l=>I.from(l.dom.parentElement).map(Nt.fromDom),go=(l,N)=>{const W=c(N)?N:D;let fe=l.dom;const Se=[];for(;fe.parentNode!==null&&fe.parentNode!==void 0;){const Be=fe.parentNode,qe=Nt.fromDom(Be);if(Se.push(qe),W(qe)===!0)break;fe=Be}return Se},oo=l=>I.from(l.dom.offsetParent).map(Nt.fromDom),io=l=>I.from(l.dom.nextSibling).map(Nt.fromDom),Do=l=>re(l.dom.childNodes,Nt.fromDom),jn=(l,N)=>{const W=l.dom.childNodes;return I.from(W[N]).map(Nt.fromDom)},Rr=l=>jn(l,0),On=(l,N)=>({element:l,offset:N}),Yn=(l,N)=>{const W=Do(l);return W.length>0&&Neo(l)&&a(l.dom.host),kr=l=>Nt.fromDom(l.dom.getRootNode()),Er=l=>ir(l)?l:Nt.fromDom(pi(l).dom.body),Gt=l=>on(l).isSome(),on=l=>{const N=kr(l);return ir(N)?I.some(N):I.none()},an=l=>Nt.fromDom(l.dom.host),Tn=l=>{if(a(l.target)){const N=Nt.fromDom(l.target);if(lr(N)&&zn(N)&&l.composed&&l.composedPath){const W=l.composedPath();if(W)return Qe(W)}}return I.from(l.target)},zn=l=>a(l.dom.shadowRoot),Gn=l=>{const N=zr(l)?l.dom.parentNode:l.dom;if(N==null||N.ownerDocument===null)return!1;const W=N.ownerDocument;return on(Nt.fromDom(N)).fold(()=>W.body.contains(N),C(Gn,an))},Lr=()=>Ur(Nt.fromDom(document)),Ur=l=>{const N=l.dom.body;if(N==null)throw new Error("Body is not available yet");return Nt.fromDom(N)},qr=(l,N,W)=>{if(n(W)||w(W)||h(W))l.setAttribute(N,W+"");else throw console.error("Invalid call to Attribute.set. Key ",N,":: Value ",W,":: Element ",l),new Error("Attribute value was not simple")},Cr=(l,N,W)=>{qr(l.dom,N,W)},wo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{qr(W,Se,fe)})},Nr=(l,N)=>{const W=l.dom.getAttribute(N);return W===null?void 0:W},Eo=(l,N)=>I.from(Nr(l,N)),zo=(l,N)=>{const W=l.dom;return W&&W.hasAttribute?W.hasAttribute(N):!1},Qt=(l,N)=>{l.dom.removeAttribute(N)},Mn=l=>se(l.dom.attributes,(N,W)=>(N[W.name]=W.value,N),{}),Fn=(l,N,W)=>{if(!n(W))throw console.error("Invalid call to CSS.set. Property ",N,":: Value ",W,":: Element ",l),new Error("CSS value must be a string: "+W);Bt(l)&&l.style.setProperty(N,W)},dr=(l,N)=>{Bt(l)&&l.style.removeProperty(N)},xr=(l,N,W)=>{const fe=l.dom;Fn(fe,N,W)},Oo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{Fn(W,Se,fe)})},mi=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{fe.fold(()=>{dr(W,Se)},Be=>{Fn(W,Se,Be)})})},Di=(l,N)=>{const W=l.dom,Se=window.getComputedStyle(W).getPropertyValue(N);return Se===""&&!Gn(l)?To(W,N):Se},To=(l,N)=>Bt(l)?l.style.getPropertyValue(N):"",Ia=(l,N)=>{const W=l.dom,fe=To(W,N);return I.from(fe).filter(Se=>Se.length>0)},Ds=l=>{const N={},W=l.dom;if(Bt(W))for(let fe=0;fe{const fe=Nt.fromTag(l);return xr(fe,N,W),Ia(fe,N).isSome()},zi=(l,N)=>{const W=l.dom;dr(W,N),St(Eo(l,"style").map(Dt),"")&&Qt(l,"style")},yl=l=>l.dom.offsetWidth,Bs=(l,N)=>{const W=(ft,yt)=>{if(!h(yt)&&!yt.match(/^[0-9]+$/))throw new Error(l+".set accepts only positive integer values. Value was "+yt);const Lt=ft.dom;Bt(Lt)&&(Lt.style[l]=yt+"px")},fe=ft=>{const yt=N(ft);if(yt<=0||yt===null){const Lt=Di(ft,l);return parseFloat(Lt)||0}return yt},Se=fe,Be=(ft,yt)=>se(yt,(Lt,Ht)=>{const fn=Di(ft,Ht),Rn=fn===void 0?0:parseInt(fn,10);return isNaN(Rn)?Lt:Lt+Rn},0);return{set:W,get:fe,getOuter:Se,aggregate:Be,max:(ft,yt,Lt)=>{const Ht=Be(ft,Lt);return yt>Ht?yt-Ht:0}}},yf=Bs("height",l=>{const N=l.dom;return Gn(l)?N.getBoundingClientRect().height:N.offsetHeight}),il=l=>yf.get(l),nf=l=>yf.getOuter(l),nh=(l,N)=>{const W=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],fe=yf.max(l,N,W);xr(l,"max-height",fe+"px")},gp=(l,N)=>({left:l,top:N,translate:(fe,Se)=>gp(l+fe,N+Se)}),Qs=gp,xh=l=>{const N=l.getBoundingClientRect();return Qs(N.left,N.top)},Bl=(l,N)=>l!==void 0?l:N!==void 0?N:0,Tc=l=>{const N=l.dom.ownerDocument,W=N.body,fe=N.defaultView,Se=N.documentElement;if(W===l.dom)return Qs(W.offsetLeft,W.offsetTop);const Be=Bl(fe==null?void 0:fe.pageYOffset,Se.scrollTop),qe=Bl(fe==null?void 0:fe.pageXOffset,Se.scrollLeft),ft=Bl(Se.clientTop,W.clientTop),yt=Bl(Se.clientLeft,W.clientLeft);return iu(l).translate(qe-yt,Be-ft)},iu=l=>{const N=l.dom,fe=N.ownerDocument.body;return fe===N?Qs(fe.offsetLeft,fe.offsetTop):Gn(l)?xh(N):Qs(0,0)},au=Bs("width",l=>l.dom.offsetWidth),zf=(l,N)=>au.set(l,N),_s=l=>au.get(l),ma=l=>au.getOuter(l),mu=(l,N)=>{const W=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],fe=au.max(l,N,W);xr(l,"max-width",fe+"px")},Uc=l=>{let N=!1,W;return(...fe)=>(N||(N=!0,W=l.apply(null,fe)),W)},Kf=(l,N,W,fe)=>{const Se=l.isiOS()&&/ipad/i.test(W)===!0,Be=l.isiOS()&&!Se,qe=l.isiOS()||l.isAndroid(),ft=qe||fe("(pointer:coarse)"),yt=Se||!Be&&qe&&fe("(min-device-width:768px)"),Lt=Be||qe&&!yt,Ht=N.isSafari()&&l.isiOS()&&/safari/i.test(W)===!1,fn=!Lt&&!yt&&!Ht;return{isiPad:x(Se),isiPhone:x(Be),isTablet:x(yt),isPhone:x(Lt),isTouch:x(ft),isAndroid:l.isAndroid,isiOS:l.isiOS,isWebView:x(Ht),isDesktop:x(fn)}},Al=(l,N)=>{for(let W=0;W{const W=Al(l,N);if(!W)return{major:0,minor:0};const fe=Se=>Number(N.replace(W,"$"+Se));return Nf(fe(1),fe(2))},Ml=(l,N)=>{const W=String(N).toLowerCase();return l.length===0?Jf():Wl(l,W)},Jf=()=>Nf(0,0),Nf=(l,N)=>({major:l,minor:N}),Jl={nu:Nf,detect:Ml,unknown:Jf},Gh=(l,N)=>Oe(N.brands,W=>{const fe=W.brand.toLowerCase();return ce(l,Se=>{var Be;return fe===((Be=Se.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(Se=>({current:Se.name,version:Jl.nu(parseInt(W.version,10),0)}))}),ll=(l,N)=>{const W=String(N).toLowerCase();return ce(l,fe=>fe.search(W))},Tu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),gu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),ec=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dc=l=>N=>xt(N,l),tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:l=>xt(l,"edge/")&&xt(l,"chrome")&&xt(l,"safari")&&xt(l,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ec],search:l=>xt(l,"chrome")&&!xt(l,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:l=>xt(l,"msie")||xt(l,"trident")},{name:"Opera",versionRegexes:[ec,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dc("firefox")},{name:"Safari",versionRegexes:[ec,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:l=>(xt(l,"safari")||xt(l,"mobile/"))&&xt(l,"applewebkit")}],Lp=[{name:"Windows",search:Dc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:l=>xt(l,"iphone")||xt(l,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dc("linux"),versionRegexes:[]},{name:"Solaris",search:Dc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rh={browsers:x(tc),oses:x(Lp)},rf="Edge",of="Chromium",bf="IE",vu="Opera",$d="Firefox",bl="Safari",Zu=()=>Kh({current:void 0,version:Jl.unknown()}),Kh=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isEdge:fe(rf),isChromium:fe(of),isIE:fe(bf),isOpera:fe(vu),isFirefox:fe($d),isSafari:fe(bl)}},Cu={unknown:Zu,nu:Kh,edge:x(rf),chromium:x(of),ie:x(bf),opera:x(vu),firefox:x($d),safari:x(bl)},ed="Windows",Bu="iOS",vd="Android",cs="Linux",oh="macOS",Jh="Solaris",_h="FreeBSD",xf="ChromeOS",ep=()=>_r({current:void 0,version:Jl.unknown()}),_r=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isWindows:fe(ed),isiOS:fe(Bu),isAndroid:fe(vd),isMacOS:fe(oh),isLinux:fe(cs),isSolaris:fe(Jh),isFreeBSD:fe(_h),isChromeOS:fe(xf)}},Ff={unknown:ep,nu:_r,windows:x(ed),ios:x(Bu),android:x(vd),linux:x(cs),macos:x(oh),solaris:x(Jh),freebsd:x(_h),chromeos:x(xf)},bd={detect:(l,N,W)=>{const fe=rh.browsers(),Se=rh.oses(),Be=N.bind(yt=>Gh(fe,yt)).orThunk(()=>Tu(fe,l)).fold(Cu.unknown,Cu.nu),qe=gu(Se,l).fold(Ff.unknown,Ff.nu),ft=Kf(qe,Be,l,W);return{browser:Be,os:qe,deviceType:ft}}},wh=l=>window.matchMedia(l).matches;let zu=Uc(()=>bd.detect(window.navigator.userAgent,I.from(window.navigator.userAgentData),wh));const va=()=>zu(),El=(l,N,W,fe,Se,Be,qe)=>({target:l,x:N,y:W,stop:fe,prevent:Se,kill:Be,raw:qe}),_f=l=>{const N=Nt.fromDom(Tn(l).getOr(l.target)),W=()=>l.stopPropagation(),fe=()=>l.preventDefault(),Se=O(fe,W);return El(N,l.clientX,l.clientY,W,fe,Se,l)},$f=(l,N)=>W=>{l(W)&&N(_f(W))},ih=(l,N,W,fe,Se)=>{const Be=$f(W,fe);return l.dom.addEventListener(N,Be,Se),{unbind:T(Nh,l,N,Be,Se)}},yu=(l,N,W,fe)=>ih(l,N,W,fe,!1),jc=(l,N,W,fe)=>ih(l,N,W,fe,!0),Nh=(l,N,W,fe)=>{l.dom.removeEventListener(N,W,fe)},af=(l,N)=>{Dr(l).each(fe=>{fe.dom.insertBefore(N.dom,l.dom)})},td=(l,N)=>{io(l).fold(()=>{Dr(l).each(Se=>{Bc(Se,N)})},fe=>{af(fe,N)})},sf=(l,N)=>{Rr(l).fold(()=>{Bc(l,N)},fe=>{l.dom.insertBefore(N.dom,fe.dom)})},Bc=(l,N)=>{l.dom.appendChild(N.dom)},Vd=(l,N,W)=>{jn(l,W).fold(()=>{Bc(l,N)},fe=>{af(fe,N)})},xd=(l,N)=>{q(N,W=>{Bc(l,W)})},vc=l=>{l.dom.textContent="",q(Do(l),N=>{gs(N)})},gs=l=>{const N=l.dom;N.parentNode!==null&&N.parentNode.removeChild(N)},yc=l=>{const N=l!==void 0?l.dom:document,W=N.body.scrollLeft||N.documentElement.scrollLeft,fe=N.body.scrollTop||N.documentElement.scrollTop;return Qs(W,fe)},Cc=(l,N,W)=>{const Se=(W!==void 0?W.dom:document).defaultView;Se&&Se.scrollTo(l,N)},Nu=l=>{const N=l===void 0?window:l;return va().browser.isFirefox()?I.none():I.from(N.visualViewport)},Gs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),Ks=l=>{const N=l===void 0?window:l,W=N.document,fe=yc(Nt.fromDom(W));return Nu(N).fold(()=>{const Se=N.document.documentElement,Be=Se.clientWidth,qe=Se.clientHeight;return Gs(fe.left,fe.top,Be,qe)},Se=>Gs(Math.max(Se.pageLeft,fe.left),Math.max(Se.pageTop,fe.top),Se.width,Se.height))},Ac=()=>Nt.fromDom(document),_d=(l,N)=>l.view(N).fold(x([]),fe=>{const Se=l.owner(fe),Be=_d(l,Se);return[fe].concat(Be)}),Fh=(l,N)=>{const W=N.owner(l),fe=_d(N,W);return I.some(fe)};var ah=Object.freeze({__proto__:null,view:l=>{var N;return(l.dom===document?I.none():I.from((N=l.dom.defaultView)===null||N===void 0?void 0:N.frameElement)).map(Nt.fromDom)},owner:l=>Mo(l)});const Au=l=>{const N=Ac(),W=yc(N);return Fh(l,ah).fold(T(Tc,l),Se=>{const Be=iu(l),qe=pe(Se,(ft,yt)=>{const Lt=iu(yt);return{left:ft.left+Lt.left,top:ft.top+Lt.top}},{left:0,top:0});return Qs(qe.left+Be.left+W.left,qe.top+Be.top+W.top)})},lf=(l,N,W)=>({point:l,width:N,height:W}),wf=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe}),vs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),cl=l=>{const N=Tc(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},bc=l=>{const N=Au(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},nc=(l,N)=>{const W=Math.max(l.x,N.x),fe=Math.max(l.y,N.y),Se=Math.min(l.right,N.right),Be=Math.min(l.bottom,N.bottom),qe=Se-W,ft=Be-fe;return vs(W,fe,qe,ft)},Qc=(l,N)=>se(N,(W,fe)=>nc(W,fe),l),ts=()=>Ks(window),wi=l=>{let N=l;return{get:()=>N,set:Se=>{N=Se}}},bu=l=>{const N=wi(I.none()),W=()=>N.get().each(l);return{clear:()=>{W(),N.set(I.none())},isSet:()=>N.get().isSome(),get:()=>N.get(),set:ft=>{W(),N.set(I.some(ft))}}},wd=()=>bu(l=>l.destroy()),Ol=()=>bu(l=>l.unbind()),ds=()=>{const l=bu(v);return{...l,on:W=>l.get().each(W)}};var zc=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Ud=l=>{const N=Be=>Be(l),W=x(l),fe=()=>Se,Se={tag:!0,inner:l,fold:(Be,qe)=>qe(l),isValue:k,isError:D,map:Be=>aa.value(Be(l)),mapError:fe,bind:N,exists:N,forall:N,getOr:W,or:fe,getOrThunk:W,orThunk:fe,getOrDie:W,each:Be=>{Be(l)},toOptional:()=>I.some(l)};return Se},cf=l=>{const N=()=>W,W={tag:!1,inner:l,fold:(fe,Se)=>fe(l),isValue:D,isError:k,map:N,mapError:fe=>aa.error(fe(l)),bind:N,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:A(String(l)),each:v,toOptional:I.none};return W},aa={value:Ud,error:cf,fromOption:(l,N)=>l.fold(()=>cf(N),Ud)};var rs;(function(l){l[l.Error=0]="Error",l[l.Value=1]="Value"})(rs||(rs={}));const Mu=(l,N,W)=>l.stype===rs.Error?N(l.serror):W(l.svalue),Ri=l=>{const N=[],W=[];return q(l,fe=>{Mu(fe,Se=>W.push(Se),Se=>N.push(Se))}),{values:N,errors:W}},Gc=(l,N)=>l.stype===rs.Error?{stype:rs.Error,serror:N(l.serror)}:l,qu=(l,N)=>l.stype===rs.Value?{stype:rs.Value,svalue:N(l.svalue)}:l,zl=(l,N)=>l.stype===rs.Value?N(l.svalue):l,xc=(l,N)=>l.stype===rs.Error?N(l.serror):l,Kc=l=>({stype:rs.Value,svalue:l}),jd=l=>({stype:rs.Error,serror:l}),al={fromResult:l=>l.fold(jd,Kc),toResult:l=>Mu(l,aa.error,aa.value),svalue:Kc,partition:Ri,serror:jd,bind:zl,bindError:xc,map:qu,mapError:Gc,fold:Mu},Yl=(l,N,W,fe)=>({tag:"field",key:l,newKey:N,presence:W,prop:fe}),uf=(l,N)=>({tag:"custom",newKey:l,instantiator:N}),hs=(l,N,W)=>{switch(l.tag){case"field":return N(l.key,l.newKey,l.presence,l.prop);case"custom":return W(l.newKey,l.instantiator)}},Mc=(l,N)=>N,Eu=(l,N)=>b(l)&&b(N)?ws(l,N):N,xu=l=>(...N)=>{if(N.length===0)throw new Error("Can't merge zero objects");const W={};for(let fe=0;fe({tag:"required",process:{}}),Ca=l=>({tag:"defaultedThunk",process:l}),Ls=l=>Ca(x(l)),Ec=()=>({tag:"option",process:{}}),_u=l=>({tag:"mergeWithThunk",process:l}),wt=l=>_u(x(l)),Kt=(l,N)=>l.length>0?al.svalue(ws(N,Fu.apply(void 0,l))):al.svalue(N),En=l=>O(al.serror,ye)(l),uo={consolidateObj:(l,N)=>{const W=al.partition(l);return W.errors.length>0?En(W.errors):Kt(W.values,N)},consolidateArr:l=>{const N=al.partition(l);return N.errors.length>0?En(N.errors):al.svalue(N.values)}},Bi=l=>u(l)&&ke(l).length>100?" removed due to size":JSON.stringify(l,null,2),ya=l=>{const N=l.length>10?l.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):l;return re(N,W=>"Failed path: ("+W.path.join(" > ")+`) `+W.getErrorInfo())},Ni=(l,N)=>al.serror([{path:l,getErrorInfo:N}]),Qi=(l,N,W)=>Ni(l,()=>'Could not find valid *required* value for "'+N+'" in '+Bi(W)),Ws=(l,N)=>Ni(l,()=>'Choice schema did not contain choice key: "'+N+'"'),nl=(l,N,W)=>Ni(l,()=>'The chosen schema: "'+W+'" did not exist in branches: '+Bi(N)),Fs=(l,N)=>Ni(l,()=>"There are unsupported fields: ["+N.join(", ")+"] specified"),Wu=(l,N)=>Ni(l,x(N)),Ki=l=>{const N=(fe,Se)=>al.bindError(l(Se),Be=>Wu(fe,Be)),W=x("val");return{extract:N,toString:W}},Aa=Ki(al.svalue),Pl=(l,N,W,fe)=>Ge(N,W).fold(()=>Qi(l,W,N),fe),Vf=(l,N,W,fe)=>{const Se=Ge(l,N).getOrThunk(()=>W(l));return fe(Se)},sh=(l,N,W)=>W(Ge(l,N)),_c=(l,N,W,fe)=>{const Se=Ge(l,N).map(Be=>Be===!0?W(l):Be);return fe(Se)},Xl=(l,N,W,fe,Se)=>{const Be=ft=>Se.extract(N.concat([fe]),ft),qe=ft=>ft.fold(()=>al.svalue(I.none()),yt=>{const Lt=Se.extract(N.concat([fe]),yt);return al.map(Lt,I.some)});switch(l.tag){case"required":return Pl(N,W,fe,Be);case"defaultedThunk":return Vf(W,fe,l.process,Be);case"option":return sh(W,fe,qe);case"defaultedOptionThunk":return _c(W,fe,l.process,qe);case"mergeWithThunk":return Vf(W,fe,x({}),ft=>{const yt=ws(l.process(W),ft);return Be(yt)})}},pl=(l,N,W)=>{const fe={},Se=[];for(const Be of W)hs(Be,(qe,ft,yt,Lt)=>{const Ht=Xl(yt,l,N,qe,Lt);al.fold(Ht,fn=>{Se.push(...fn)},fn=>{fe[ft]=fn})},(qe,ft)=>{fe[qe]=ft(N)});return Se.length>0?al.serror(Se):al.svalue(fe)},Pc=l=>({extract:(fe,Se)=>l().extract(fe,Se),toString:()=>l().toString()}),Uf=l=>ke(Fe(l,a)),Os=l=>{const N=Si(l),W=pe(l,(Se,Be)=>hs(Be,qe=>ws(Se,{[qe]:!0}),x(Se)),{});return{extract:(Se,Be)=>{const qe=w(Be)?[]:Uf(Be),ft=me(qe,yt=>!pt(W,yt));return ft.length===0?N.extract(Se,Be):Fs(Se,ft)},toString:N.toString}},Si=l=>({extract:(fe,Se)=>pl(fe,Se,l),toString:()=>`obj{ `+re(l,Se=>hs(Se,(Be,qe,ft,yt)=>Be+" -> "+yt.toString(),(Be,qe)=>"state("+Be+")")).join(` `)+"}"}),lc=l=>({extract:(fe,Se)=>{const Be=re(Se,(qe,ft)=>l.extract(fe.concat(["["+ft+"]"]),qe));return uo.consolidateArr(Be)},toString:()=>"array("+l.toString()+")"}),rd=(l,N)=>{const W=N!==void 0?N:R;return{extract:(Be,qe)=>{const ft=[];for(const yt of l){const Lt=yt.extract(Be,qe);if(Lt.stype===rs.Value)return{stype:rs.Value,svalue:W(Lt.svalue)};ft.push(Lt)}return uo.consolidateArr(ft)},toString:()=>"oneOf("+re(l,Be=>Be.toString()).join(", ")+")"}},tp=(l,N)=>{const W=(Be,qe)=>lc(Ki(l)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),yt=W(Be,ft);return al.bind(yt,Lt=>{const Ht=re(Lt,fn=>Yl(fn,fn,su(),N));return Si(Ht).extract(Be,qe)})},toString:()=>"setOf("+N.toString()+")"}},kt=(l,N)=>{const W=Uc(N);return{extract:(Be,qe)=>W().extract(Be,qe),toString:()=>W().toString()}},It=O(lc,Si),Ut=x(Aa),J=(l,N)=>Ki(W=>{const fe=typeof W;return l(W)?al.svalue(W):al.serror(`Expected type: ${N} but got: ${fe}`)}),le=J(h,"number"),ne=J(n,"string"),V=J(w,"boolean"),ie=J(c,"function"),ge=l=>{if(Object(l)!==l)return!0;switch({}.toString.call(l).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(l).every(N=>ge(l[N]));default:return!1}},xe=Ki(l=>ge(l)?al.svalue(l):al.serror("Expected value to be acceptable for sending via postMessage")),Ee=(l,N,W,fe)=>Ge(W,fe).fold(()=>nl(l,W,fe),Be=>Be.extract(l.concat(["branch: "+fe]),N)),Ne=(l,N)=>({extract:(Se,Be)=>Ge(Be,l).fold(()=>Ws(Se,l),ft=>Ee(Se,Be,N,ft)),toString:()=>"chooseOn("+l+"). Possible values: "+ke(N)}),et=()=>lc(Aa),rt=l=>Ki(N=>l(N).fold(al.serror,al.svalue)),dt=(l,N)=>tp(W=>al.fromResult(l(W)),N),gt=(l,N,W)=>{const fe=N.extract([l],W);return al.mapError(fe,Se=>({input:W,errors:Se}))},Rt=(l,N,W)=>al.toResult(gt(l,N,W)),Mt=l=>l.fold(N=>{throw new Error(dn(N))},R),Xt=(l,N,W)=>Mt(Rt(l,N,W)),dn=l=>`Errors: `+ya(l.errors).join(` `)+` -Input object: `+Bi(l.input),bn=(l,N)=>Ne(l,Ue(N,Si)),vn=(l,N)=>kt(l,N),Ln=Yl,gn=uf,Jn=l=>rt(N=>X(l,N)?aa.value(N):aa.error(`Unsupported value: "${N}", choose one of "${l.join(", ")}".`)),pn=l=>Ln(l,l,su(),Ut()),In=(l,N)=>Ln(l,l,su(),N),Ir=l=>In(l,le),Pr=l=>In(l,ne),Gr=(l,N)=>Ln(l,l,su(),Jn(N)),ro=l=>In(l,V),po=l=>In(l,ie),Wo=(l,N)=>Ln(l,l,Ec(),Ki(W=>al.serror("The field: "+l+" is forbidden. "+N))),si=(l,N)=>Ln(l,l,su(),Si(N)),Bo=(l,N)=>Ln(l,l,su(),It(N)),Go=(l,N)=>Ln(l,l,su(),lc(N)),Yo=l=>Ln(l,l,Ec(),Ut()),Wi=(l,N)=>Ln(l,l,Ec(),N),Ho=l=>Wi(l,le),jo=l=>Wi(l,ne),Yi=(l,N)=>Wi(l,Jn(N)),ai=l=>Wi(l,ie),Hi=(l,N)=>Wi(l,lc(N)),Ai=(l,N)=>Wi(l,Si(N)),Ja=(l,N)=>Wi(l,Os(N)),Ar=(l,N)=>Ln(l,l,Ls(N),Ut()),ns=(l,N,W)=>Ln(l,l,Ls(N),W),$s=(l,N)=>ns(l,N,le),Ts=(l,N)=>ns(l,N,ne),rl=(l,N,W)=>ns(l,N,Jn(W)),Hs=(l,N)=>ns(l,N,V),ys=(l,N)=>ns(l,N,ie),Yu=(l,N)=>ns(l,N,xe),mt=(l,N,W)=>ns(l,N,lc(W)),Tt=(l,N,W)=>ns(l,N,Si(W)),Nn={generate:l=>{if(!i(l))throw new Error("cases must be an array");if(l.length===0)throw new Error("there must be at least one case");const N=[],W={};return q(l,(fe,Se)=>{const Be=ke(fe);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=fe[qe];if(W[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");N.push(qe),W[qe]=(...yt)=>{const Lt=yt.length;if(Lt!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+Lt);return{fold:(...fn)=>{if(fn.length!==l.length)throw new Error("Wrong number of arguments to fold. Expected "+l.length+", got "+fn.length);return fn[Se].apply(null,yt)},match:fn=>{const Rn=ke(fn);if(N.length!==Rn.length)throw new Error("Wrong number of arguments to match. Expected: "+N.join(",")+` +Input object: `+Bi(l.input),bn=(l,N)=>Ne(l,Ue(N,Si)),vn=(l,N)=>kt(l,N),Ln=Yl,gn=uf,Jn=l=>rt(N=>X(l,N)?aa.value(N):aa.error(`Unsupported value: "${N}", choose one of "${l.join(", ")}".`)),pn=l=>Ln(l,l,su(),Ut()),In=(l,N)=>Ln(l,l,su(),N),Ir=l=>In(l,le),Pr=l=>In(l,ne),Gr=(l,N)=>Ln(l,l,su(),Jn(N)),ro=l=>In(l,V),po=l=>In(l,ie),Wo=(l,N)=>Ln(l,l,Ec(),Ki(W=>al.serror("The field: "+l+" is forbidden. "+N))),si=(l,N)=>Ln(l,l,su(),Si(N)),Bo=(l,N)=>Ln(l,l,su(),It(N)),Go=(l,N)=>Ln(l,l,su(),lc(N)),Yo=l=>Ln(l,l,Ec(),Ut()),Wi=(l,N)=>Ln(l,l,Ec(),N),Ho=l=>Wi(l,le),jo=l=>Wi(l,ne),Yi=(l,N)=>Wi(l,Jn(N)),ai=l=>Wi(l,ie),Hi=(l,N)=>Wi(l,lc(N)),Ai=(l,N)=>Wi(l,Si(N)),es=(l,N)=>Wi(l,Os(N)),Ar=(l,N)=>Ln(l,l,Ls(N),Ut()),ns=(l,N,W)=>Ln(l,l,Ls(N),W),$s=(l,N)=>ns(l,N,le),Ts=(l,N)=>ns(l,N,ne),rl=(l,N,W)=>ns(l,N,Jn(W)),Hs=(l,N)=>ns(l,N,V),ys=(l,N)=>ns(l,N,ie),Yu=(l,N)=>ns(l,N,xe),mt=(l,N,W)=>ns(l,N,lc(W)),Tt=(l,N,W)=>ns(l,N,Si(W)),Nn={generate:l=>{if(!i(l))throw new Error("cases must be an array");if(l.length===0)throw new Error("there must be at least one case");const N=[],W={};return q(l,(fe,Se)=>{const Be=ke(fe);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=fe[qe];if(W[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");N.push(qe),W[qe]=(...yt)=>{const Lt=yt.length;if(Lt!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+Lt);return{fold:(...fn)=>{if(fn.length!==l.length)throw new Error("Wrong number of arguments to fold. Expected "+l.length+", got "+fn.length);return fn[Se].apply(null,yt)},match:fn=>{const Rn=ke(fn);if(N.length!==Rn.length)throw new Error("Wrong number of arguments to match. Expected: "+N.join(",")+` Actual: `+Rn.join(","));if(!_e(N,er=>X(Rn,er)))throw new Error("Not all branches were specified when using match. Specified: "+Rn.join(", ")+` -Required: `+N.join(", "));return fn[qe].apply(null,yt)},log:fn=>{console.log(fn,{constructors:N,constructor:qe,params:yt})}}}}),W}};Nn.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const yr=l=>{const N=[],W=[];return q(l,fe=>{fe.fold(Se=>{N.push(Se)},Se=>{W.push(Se)})}),{errors:N,values:W}},so=(l,N)=>{const W={};return We(l,(fe,Se)=>{X(N,Se)||(W[Se]=fe)}),W},No=(l,N)=>({[l]:N}),ui=l=>{const N={};return q(l,W=>{N[W.key]=W.value}),N},ga=(l,N)=>so(l,N),Sa=(l,N)=>No(l,N),ua=l=>ui(l),Cs=(l,N)=>l.length===0?aa.value(N):aa.value(ws(N,Fu.apply(void 0,l))),ul=l=>aa.error(ye(l)),Jc=(l,N)=>{const W=yr(l);return W.errors.length>0?ul(W.errors):Cs(W.values,N)},Is=l=>c(l)?l:D,Hc=(l,N,W)=>{let fe=l.dom;const Se=Is(W);for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe),qe=N(Be);if(qe.isSome())return qe;if(Se(Be))break}return I.none()},Nl=(l,N,W)=>{const fe=N(l),Se=Is(W);return fe.orThunk(()=>Se(l)?I.none():Hc(l,N,Se))},lh=(l,N)=>_o(l.element,N.event.target),r0={can:k,abort:D,run:v},ch=l=>{if(!pt(l,"can")&&!pt(l,"abort")&&!pt(l,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(l,null,2)+" does not have can, abort, or run!");return{...r0,...l}},gg=(l,N)=>(...W)=>se(l,(fe,Se)=>fe&&N(Se).apply(void 0,W),!0),Ip=(l,N)=>(...W)=>se(l,(fe,Se)=>fe||N(Se).apply(void 0,W),!1),X0=l=>c(l)?{can:k,abort:D,run:l}:l,Vh=l=>{const N=gg(l,Se=>Se.can),W=Ip(l,Se=>Se.abort);return{can:N,abort:W,run:(...Se)=>{q(l,Be=>{Be.run.apply(void 0,Se)})}}},Pu=x,Uh=Pu("touchstart"),ss=Pu("touchmove"),Gl=Pu("touchend"),Sf=Pu("touchcancel"),Nc=Pu("mousedown"),o0=Pu("mousemove"),i0=Pu("mouseout"),a0=Pu("mouseup"),wu=Pu("mouseover"),Dp=Pu("focusin"),Rm=Pu("focusout"),nm=Pu("keydown"),G0=Pu("keyup"),vg=Pu("input"),s0=Pu("change"),H1=Pu("click"),VO=Pu("transitioncancel"),rm=Pu("transitionend"),z_=Pu("transitionstart"),db=Pu("selectstart"),lu=l=>x("alloy."+l),ay={tap:lu("tap")},wh=lu("focus"),kf=lu("blur.post"),l0=lu("paste.post"),yp=lu("receive"),Bp=lu("execute"),hb=lu("focus.item"),Lm=ay.tap,Qd=lu("longpress"),Z1=lu("sandbox.close"),N_=lu("typeahead.cancel"),K0=lu("system.init"),sy=lu("system.touchmove"),yg=lu("system.touchend"),Im=lu("system.scroll"),Dm=lu("system.resize"),Oh=lu("system.attached"),zp=lu("system.detached"),J0=lu("system.dismissRequested"),F_=lu("system.repositionRequested"),q1=lu("focusmanager.shifted"),$_=lu("slotcontainer.visibility"),Dx=lu("system.external.element.scroll"),UO=lu("change.tab"),W1=lu("dismiss.tab"),e1=lu("highlight"),cu=lu("dehighlight"),Za=(l,N)=>{n1(l,l.element,N,{})},sa=(l,N,W)=>{n1(l,l.element,N,W)},Bm=l=>{Za(l,Bp())},t1=(l,N,W)=>{n1(l,N,W,{})},n1=(l,N,W,fe)=>{const Se={target:N,...fe};l.getSystem().triggerEvent(W,N,Se)},Bx=(l,N,W,fe)=>{const Se={...fe,target:N};l.getSystem().triggerEvent(W,N,Se)},zm=(l,N,W,fe)=>{l.getSystem().triggerEvent(W,N,fe.event)},Rl=l=>ua(l),zx=(l,N)=>({key:l,value:ch({abort:N})}),pb=(l,N)=>({key:l,value:ch({can:N})}),V_=l=>({key:l,value:ch({run:(N,W)=>{W.event.prevent()}})}),Lo=(l,N)=>({key:l,value:ch({run:N})}),Nm=(l,N,W)=>({key:l,value:ch({run:(fe,Se)=>{N.apply(void 0,[fe,Se].concat(W))}})}),D4=l=>N=>Lo(l,N),bg=l=>N=>({key:l,value:ch({run:(W,fe)=>{lh(W,fe)&&N(W,fe)}})}),B4=(l,N)=>Lo(l,(W,fe)=>{W.getSystem().getByUid(N).each(Se=>{zm(Se,Se.element,l,fe)})}),c0=(l,N,W)=>{const fe=N.partUids[W];return B4(l,fe)},mb=(l,N)=>Lo(l,(W,fe)=>{const Se=fe.event,Be=W.getSystem().getByDom(Se.target).getOrThunk(()=>Nl(Se.target,ft=>W.getSystem().getByDom(ft).toOptional(),D).getOr(W));N(W,Be,fe)}),od=l=>Lo(l,(N,W)=>{W.cut()}),U_=l=>Lo(l,(N,W)=>{W.stop()}),ly=(l,N)=>bg(l)(N),wc=bg(Oh()),xg=bg(zp()),Nx=bg(K0()),Sh=D4(Bp()),j_=(l,N,W)=>{const fe=W.toString(),Se=fe.indexOf(")")+1,Be=fe.indexOf("("),qe=fe.substring(Be+1,Se-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(qe.slice(0,1).concat(qe.slice(3)))}),l},gb=l=>re(l,N=>bt(N,"/*")?N.substring(0,N.length-2):N),Y1=(l,N)=>{const W=l.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(Be)}),l},cy=(l,N)=>{const W=N.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:gb(Be.slice(1))}),l},np=l=>({classes:y(l.classes)?[]:l.classes,attributes:y(l.attributes)?{}:l.attributes,styles:y(l.styles)?{}:l.styles}),jO=(l,N)=>({...l,attributes:{...l.attributes,...N.attributes},styles:{...l.styles,...N.styles},classes:l.classes.concat(N.classes)}),_g=(l,N,W)=>Sh(fe=>{W(fe,l,N)}),Q_=(l,N,W)=>Nx((fe,Se)=>{W(fe,l,N)}),wg=(l,N,W,fe,Se,Be)=>{const qe=Os(l),ft=Ai(N,[Ja("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},X1=(l,N,W,fe,Se,Be)=>{const qe=l,ft=Ai(N,[Wi("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},om=(l,N,W)=>j_((Se,...Be)=>{const qe=[Se].concat(Be);return Se.config({name:x(l)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+l+". Using API: "+W)},ft=>{const yt=Array.prototype.slice.call(qe,1);return N.apply(void 0,[Se,ft.config,ft.state].concat(yt))})},W,N),H_=l=>({key:l,value:void 0}),QO=(l,N,W,fe,Se,Be,qe)=>{const ft=fn=>pt(fn,W)?fn[W]():I.none(),yt=Ue(Se,(fn,Rn)=>om(W,fn,Rn)),Ht={...Ue(Be,(fn,Rn)=>Y1(fn,Rn)),...yt,revoke:T(H_,W),config:fn=>{const Rn=Xt(W+"-config",l,fn);return{key:W,value:{config:Rn,me:Ht,configAsRaw:Uc(()=>Xt(W+"-config",l,fn)),initialConfig:fn,state:qe}}},schema:x(N),exhibit:(fn,Rn)=>ln(ft(fn),Ge(fe,"exhibit"),(Bn,er)=>er(Rn,Bn.config,Bn.state)).getOrThunk(()=>np({})),name:x(W),handlers:fn=>ft(fn).map(Rn=>Ge(fe,"events").getOr(()=>({}))(Rn.config,Rn.state)).getOr({})};return Ht},uh={init:()=>Hd({readState:x("No State required")})},Hd=l=>l,ei=l=>ua(l),Fx=Os([pn("fields"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),id=l=>{const N=Xt("Creating behaviour: "+l.name,Fx,l);return wg(N.fields,N.name,N.active,N.apis,N.extra,N.state)},$x=Os([pn("branchKey"),pn("branches"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),HO=l=>{const N=Xt("Creating behaviour: "+l.name,$x,l);return X1(bn(N.branchKey,N.branches),N.name,N.active,N.apis,N.extra,N.state)},cc=x(void 0),Xu=(l,N)=>{const W=Nr(l,N);return W===void 0||W===""?[]:W.split(" ")},Vx=(l,N,W)=>{const Se=Xu(l,N).concat([W]);return Cr(l,N,Se.join(" ")),!0},ZO=(l,N,W)=>{const fe=me(Xu(l,N),Se=>Se!==W);return fe.length>0?Cr(l,N,fe.join(" ")):Qt(l,N),!1},u0=l=>l.dom.classList!==void 0,vb=l=>Xu(l,"class"),Fm=(l,N)=>Vx(l,"class",N),Z_=(l,N)=>ZO(l,"class",N),q_=(l,N)=>X(vb(l),N)?Z_(l,N):Fm(l,N),uc=(l,N)=>{u0(l)?l.dom.classList.add(N):Fm(l,N)},uy=l=>{(u0(l)?l.dom.classList:vb(l)).length===0&&Qt(l,"class")},Zc=(l,N)=>{u0(l)?l.dom.classList.remove(N):Z_(l,N),uy(l)},qO=(l,N)=>{const W=u0(l)?l.dom.classList.toggle(N):q_(l,N);return uy(l),W},rp=(l,N)=>u0(l)&&l.dom.classList.contains(N),Og=(l,N)=>{q(N,W=>{uc(l,W)})},Oc=(l,N)=>{q(N,W=>{Zc(l,W)})},WO=(l,N)=>{q(N,W=>{qO(l,W)})},YO=(l,N)=>_e(N,W=>rp(l,W)),Ux=l=>{const N=l.dom.classList,W=new Array(N.length);for(let fe=0;feu0(l)?Ux(l):vb(l),ff=(l,N,W,fe,Se)=>{const Be=qe=>qe+"px";return{position:l,left:N.map(Be),top:W.map(Be),right:fe.map(Be),bottom:Se.map(Be)}},fh=l=>({...l,position:I.some(l.position)}),fy=(l,N)=>{mi(l,fh(N))},jh=l=>(St(Ia(l,"position"),"fixed")?I.none():oo(l)).orThunk(()=>{const fe=Nt.fromTag("span");return Dr(l).bind(Se=>{Bc(Se,fe);const Be=oo(fe);return gs(fe),Be})}),r1=l=>jh(l).map(Tc).getOrThunk(()=>Qs(0,0)),G1=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeOutClass),uc(W,N.fadeInClass),N.onShow(l)},Sg=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeInClass),uc(W,N.fadeOutClass),N.onHide(l)},dy=(l,N)=>l.yN.y,K1=(l,N)=>l.y>=N.y,o1=(l,N)=>l.bottom<=N.bottom,kg=(l,N,W)=>({location:"top",leftX:N,topY:W.bounds.y-l.y}),J1=(l,N,W)=>({location:"bottom",leftX:N,bottomY:l.bottom-W.bounds.bottom}),ev=l=>l.box.x-l.win.x,z4=(l,N,W)=>{const fe=N.win,Se=N.box,Be=ev(N);return Oe(l,qe=>{switch(qe){case"bottom":return o1(Se,W.bounds)?I.none():I.some(J1(fe,Be,W));case"top":return K1(Se,W.bounds)?I.none():I.some(kg(fe,Be,W));default:return I.none()}}).getOr({location:"no-dock"})},W_=(l,N,W)=>_e(l,fe=>{switch(fe){case"bottom":return o1(N,W.bounds);case"top":return K1(N,W.bounds)}}),tv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.bounds.y),fe=>fe.scrollElmTop+(l.bounds.y-fe.currentScrollTop));return Qs(l.bounds.x,W)},nv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.y),fe=>l.y+fe.currentScrollTop-fe.scrollElmTop);return Qs(l.x,W)},jx=(l,N,W)=>W.getInitialPos().map(fe=>{const Se=tv(fe,N);return{box:vs(Se.left,Se.top,_s(l),il(l)),location:fe.location}}),hy=(l,N,W,fe,Se)=>{const Be=nv(N,W),qe=vs(Be.left,Be.top,N.width,N.height);fe.setInitialPos({style:Ds(l),position:Di(l,"position")||"static",bounds:qe,location:Se.location})},Y_=(l,N,W,fe,Se)=>{fe.getInitialPos().fold(()=>hy(l,N,W,fe,Se),()=>v)},X_=(l,N,W)=>W.getInitialPos().bind(fe=>{var Se;switch(W.clearInitialPos(),fe.position){case"static":return I.some({morph:"static"});case"absolute":const Be=jh(l).getOr(Lr()),qe=cl(Be),ft=(Se=Be.dom.scrollTop)!==null&&Se!==void 0?Se:0;return I.some({morph:"absolute",positionCss:ff("absolute",Ge(fe.style,"left").map(yt=>N.x-qe.x),Ge(fe.style,"top").map(yt=>N.y-qe.y+ft),Ge(fe.style,"right").map(yt=>qe.right-N.right),Ge(fe.style,"bottom").map(yt=>qe.bottom-N.bottom))});default:return I.none()}}),G_=(l,N,W)=>jx(l,N,W).filter(({box:fe})=>W_(W.getModes(),fe,N)).bind(({box:fe})=>X_(l,fe,W)),py=l=>{switch(l.location){case"top":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.some(l.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.none(),I.none(),I.some(l.bottomY))});default:return I.none()}},yb=(l,N,W)=>{const fe=cl(l),Se=ts(),Be=z4(W.getModes(),{win:Se,box:fe},N);return Be.location==="top"||Be.location==="bottom"?(hy(l,fe,N,W,Be),py(Be)):I.none()},bp=(l,N,W)=>G_(l,N,W).orThunk(()=>N.optScrollEnv.bind(fe=>jx(l,N,W)).bind(({box:fe,location:Se})=>{const Be=ts(),qe=ev({win:Be,box:fe}),ft=Se==="top"?kg(Be,qe,N):J1(Be,qe,N);return py(ft)})),i1=(l,N,W)=>{const fe=l.element;return St(Ia(fe,"position"),"fixed")?bp(fe,N,W):yb(fe,N,W)},Tg=(l,N,W)=>{const fe=l.element;return jx(fe,N,W).bind(({box:Se})=>X_(fe,Se,W))},im=(l,N,W,fe)=>{const Se=cl(l),Be=ts(),qe=ev({win:Be,box:Se}),ft=fe(Be,qe,N);return ft.location==="bottom"||ft.location==="top"?(Y_(l,Se,N,W,ft),py(ft)):I.none()},Qh=(l,N,W)=>{W.setDocked(!1),q(["left","right","top","bottom","position"],fe=>zi(l.element,fe)),N.onUndocked(l)},rv=(l,N,W,fe)=>{const Se=fe.position==="fixed";W.setDocked(Se),fy(l.element,fe),(Se?N.onDocked:N.onUndocked)(l)},ov=(l,N,W,fe,Se=!1)=>{N.contextual.each(Be=>{Be.lazyContext(l).each(qe=>{const ft=dy(qe,fe.bounds);ft!==W.isVisible()&&(W.setVisible(ft),Se&&!ft?(Og(l.element,[Be.fadeOutClass]),Be.onHide(l)):(ft?G1:Sg)(l,Be))})})},Od=(l,N,W,fe,Se)=>{ov(l,N,W,fe,!0),rv(l,N,W,Se.positionCss)},Cg=(l,N,W,fe,Se)=>{switch(Se.morph){case"static":return Qh(l,N,W);case"absolute":return rv(l,N,W,Se.positionCss);case"fixed":return Od(l,N,W,fe,Se)}},Qx=(l,N,W)=>{const fe=N.lazyViewport(l);ov(l,N,W,fe),i1(l,fe,W).each(Se=>{Cg(l,N,W,fe,Se)})},kh=(l,N,W)=>{const fe=l.element;W.setDocked(!1);const Se=N.lazyViewport(l);Tg(l,Se,W).each(Be=>{switch(Be.morph){case"static":{Qh(l,N,W);break}case"absolute":{rv(l,N,W,Be.positionCss);break}}}),W.setVisible(!0),N.contextual.each(Be=>{Oc(fe,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(l)}),f0(l,N,W)},f0=(l,N,W)=>{l.getSystem().isConnected()&&Qx(l,N,W)},iv=(l,N,W)=>{W.isDocked()&&kh(l,N,W)},K_=l=>(N,W,fe)=>{const Se=W.lazyViewport(N);im(N.element,Se,fe,l).each(qe=>{Od(N,W,fe,Se,qe)})},bb=K_(kg),Hx=K_(J1);var qx=Object.freeze({__proto__:null,refresh:f0,reset:iv,isDocked:(l,N,W)=>W.isDocked(),getModes:(l,N,W)=>W.getModes(),setModes:(l,N,W,fe)=>W.setModes(fe),forceDockToTop:bb,forceDockToBottom:Hx}),$m=Object.freeze({__proto__:null,events:(l,N)=>Rl([ly(rm(),(W,fe)=>{l.contextual.each(Se=>{rp(W.element,Se.transitionClass)&&(Oc(W.element,[Se.transitionClass,Se.fadeInClass]),(N.isVisible()?Se.onShown:Se.onHidden)(W)),fe.stop()})}),Lo(Im(),(W,fe)=>{f0(W,l,N)}),Lo(Dx(),(W,fe)=>{f0(W,l,N)}),Lo(Dm(),(W,fe)=>{iv(W,l,N)})])});const Th=(l,N)=>{const fe=(N||document).createElement("div");return fe.innerHTML=l,Do(Nt.fromDom(fe))},Np=l=>l.dom.innerHTML,d0=(l,N)=>{const fe=Mo(l).dom,Se=Nt.fromDom(fe.createDocumentFragment()),Be=Th(N,fe);xd(Se,Be),vc(l),Bc(l,Se)},av=l=>{const N=Nt.fromTag("div"),W=Nt.fromDom(l.dom.cloneNode(!0));return Bc(N,W),Np(N)},J_=(l,N)=>Nt.fromDom(l.dom.cloneNode(N)),my=l=>J_(l,!1),xb=l=>J_(l,!0),ew=l=>{if(ir(l))return"#shadow-root";{const N=my(l);return av(N)}},a1=l=>ew(l),sv="unknown";var xp;(function(l){l[l.STOP=0]="STOP",l[l.NORMAL=1]="NORMAL",l[l.LOGGING=2]="LOGGING"})(xp||(xp={}));const _b=wi({}),Ou=(l,N)=>{const W=[],fe=new Date().getTime();return{logEventCut:(Se,Be,qe)=>{W.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(Se,Be,qe)=>{W.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(Se,Be,qe)=>{W.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(Se,Be)=>{W.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(Se,Be,qe)=>{W.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const Se=new Date().getTime();X(["mousemove","mouseover","mouseout",K0()],l)||console.log(l,{event:l,time:Se-fe,target:N.dom,sequence:re(W,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+a1(Be.target)+")":Be.outcome)})}}},Wx=(l,N,W)=>{switch(Ge(_b.get(),l).orThunk(()=>{const Se=ke(_b.get());return Oe(Se,Be=>l.indexOf(Be)>-1?I.some(_b.get()[Be]):I.none())}).getOr(xp.NORMAL)){case xp.NORMAL:return W(Vm());case xp.LOGGING:{const Se=Ou(l,N),Be=W(Se);return Se.write(),Be}case xp.STOP:return!0}},Sd=["alloy/data/Fields","alloy/debugging/Debugging"],XO=()=>{const l=new Error;if(l.stack!==void 0){const N=l.stack.split(` -`);return ce(N,W=>W.indexOf("alloy")>0&&!te(Sd,fe=>W.indexOf(fe)>-1)).getOr(sv)}else return sv},wb={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},am=(l,N,W)=>Wx(l,N,W),Vm=x(wb),_p=x([pn("menu"),pn("selectedMenu")]),op=x([pn("item"),pn("selectedItem")]);x(Si(op().concat(_p())));const GO=x(Si(op())),Ob=si("initSize",[pn("numColumns"),pn("numRows")]),s1=()=>In("markers",GO()),Um=()=>si("markers",[pn("backgroundMenu")].concat(_p()).concat(op())),h0=l=>si("markers",re(l,pn)),p0=(l,N,W)=>(XO(),Ln(N,N,W,rt(fe=>aa.value((...Se)=>fe.apply(void 0,Se))))),Ss=l=>p0("onHandler",l,Ls(v)),kd=l=>p0("onKeyboardHandler",l,Ls(I.none)),Ch=l=>p0("onHandler",l,su()),Sb=l=>p0("onKeyboardHandler",l,su()),Sl=(l,N)=>gn(l,x(N)),l1=l=>gn(l,R),Yx=x(Ob);var N4=[Ai("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),po("lazyContext"),Ss("onShow"),Ss("onShown"),Ss("onHide"),Ss("onHidden")]),ys("lazyViewport",()=>({bounds:ts(),optScrollEnv:I.none()})),mt("modes",["top","bottom"],ne),Ss("onDocked"),Ss("onUndocked")],lv=Object.freeze({__proto__:null,init:l=>{const N=wi(!1),W=wi(!0),fe=ds(),Se=wi(l.modes),Be=()=>`docked: ${N.get()}, visible: ${W.get()}, modes: ${Se.get().join(",")}`;return Hd({isDocked:N.get,setDocked:N.set,getInitialPos:fe.get,setInitialPos:fe.set,clearInitialPos:fe.clear,isVisible:W.get,setVisible:W.set,getModes:Se.get,setModes:Se.set,readState:Be})}});const fc=id({fields:N4,name:"docking",active:$m,apis:qx,state:lv}),cv=(l,N,W)=>_o(N,l.element)&&!_o(N,W),kb=Rl([pb(wh(),(l,N)=>{const W=N.event,fe=W.originator,Se=W.target;return cv(l,fe,Se)?(console.warn(wh()+` did not get interpreted by the desired target. +Required: `+N.join(", "));return fn[qe].apply(null,yt)},log:fn=>{console.log(fn,{constructors:N,constructor:qe,params:yt})}}}}),W}};Nn.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const yr=l=>{const N=[],W=[];return q(l,fe=>{fe.fold(Se=>{N.push(Se)},Se=>{W.push(Se)})}),{errors:N,values:W}},so=(l,N)=>{const W={};return We(l,(fe,Se)=>{X(N,Se)||(W[Se]=fe)}),W},No=(l,N)=>({[l]:N}),ui=l=>{const N={};return q(l,W=>{N[W.key]=W.value}),N},ga=(l,N)=>so(l,N),Sa=(l,N)=>No(l,N),ua=l=>ui(l),Cs=(l,N)=>l.length===0?aa.value(N):aa.value(ws(N,Fu.apply(void 0,l))),ul=l=>aa.error(ye(l)),Jc=(l,N)=>{const W=yr(l);return W.errors.length>0?ul(W.errors):Cs(W.values,N)},Is=l=>c(l)?l:D,Hc=(l,N,W)=>{let fe=l.dom;const Se=Is(W);for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe),qe=N(Be);if(qe.isSome())return qe;if(Se(Be))break}return I.none()},Nl=(l,N,W)=>{const fe=N(l),Se=Is(W);return fe.orThunk(()=>Se(l)?I.none():Hc(l,N,Se))},lh=(l,N)=>_o(l.element,N.event.target),r0={can:k,abort:D,run:v},ch=l=>{if(!pt(l,"can")&&!pt(l,"abort")&&!pt(l,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(l,null,2)+" does not have can, abort, or run!");return{...r0,...l}},gg=(l,N)=>(...W)=>se(l,(fe,Se)=>fe&&N(Se).apply(void 0,W),!0),Ip=(l,N)=>(...W)=>se(l,(fe,Se)=>fe||N(Se).apply(void 0,W),!1),X0=l=>c(l)?{can:k,abort:D,run:l}:l,Vh=l=>{const N=gg(l,Se=>Se.can),W=Ip(l,Se=>Se.abort);return{can:N,abort:W,run:(...Se)=>{q(l,Be=>{Be.run.apply(void 0,Se)})}}},Pu=x,Uh=Pu("touchstart"),ss=Pu("touchmove"),Gl=Pu("touchend"),Sf=Pu("touchcancel"),Nc=Pu("mousedown"),o0=Pu("mousemove"),i0=Pu("mouseout"),a0=Pu("mouseup"),wu=Pu("mouseover"),Dp=Pu("focusin"),Rm=Pu("focusout"),nm=Pu("keydown"),G0=Pu("keyup"),vg=Pu("input"),s0=Pu("change"),H1=Pu("click"),VO=Pu("transitioncancel"),rm=Pu("transitionend"),z_=Pu("transitionstart"),db=Pu("selectstart"),lu=l=>x("alloy."+l),sy={tap:lu("tap")},Oh=lu("focus"),kf=lu("blur.post"),l0=lu("paste.post"),yp=lu("receive"),Bp=lu("execute"),hb=lu("focus.item"),Lm=sy.tap,Qd=lu("longpress"),Z1=lu("sandbox.close"),N_=lu("typeahead.cancel"),K0=lu("system.init"),ly=lu("system.touchmove"),yg=lu("system.touchend"),Im=lu("system.scroll"),Dm=lu("system.resize"),Sh=lu("system.attached"),zp=lu("system.detached"),J0=lu("system.dismissRequested"),F_=lu("system.repositionRequested"),q1=lu("focusmanager.shifted"),$_=lu("slotcontainer.visibility"),Dx=lu("system.external.element.scroll"),UO=lu("change.tab"),W1=lu("dismiss.tab"),e1=lu("highlight"),cu=lu("dehighlight"),Za=(l,N)=>{n1(l,l.element,N,{})},sa=(l,N,W)=>{n1(l,l.element,N,W)},Bm=l=>{Za(l,Bp())},t1=(l,N,W)=>{n1(l,N,W,{})},n1=(l,N,W,fe)=>{const Se={target:N,...fe};l.getSystem().triggerEvent(W,N,Se)},Bx=(l,N,W,fe)=>{const Se={...fe,target:N};l.getSystem().triggerEvent(W,N,Se)},zm=(l,N,W,fe)=>{l.getSystem().triggerEvent(W,N,fe.event)},Rl=l=>ua(l),zx=(l,N)=>({key:l,value:ch({abort:N})}),pb=(l,N)=>({key:l,value:ch({can:N})}),V_=l=>({key:l,value:ch({run:(N,W)=>{W.event.prevent()}})}),Lo=(l,N)=>({key:l,value:ch({run:N})}),Nm=(l,N,W)=>({key:l,value:ch({run:(fe,Se)=>{N.apply(void 0,[fe,Se].concat(W))}})}),D4=l=>N=>Lo(l,N),bg=l=>N=>({key:l,value:ch({run:(W,fe)=>{lh(W,fe)&&N(W,fe)}})}),B4=(l,N)=>Lo(l,(W,fe)=>{W.getSystem().getByUid(N).each(Se=>{zm(Se,Se.element,l,fe)})}),c0=(l,N,W)=>{const fe=N.partUids[W];return B4(l,fe)},mb=(l,N)=>Lo(l,(W,fe)=>{const Se=fe.event,Be=W.getSystem().getByDom(Se.target).getOrThunk(()=>Nl(Se.target,ft=>W.getSystem().getByDom(ft).toOptional(),D).getOr(W));N(W,Be,fe)}),od=l=>Lo(l,(N,W)=>{W.cut()}),U_=l=>Lo(l,(N,W)=>{W.stop()}),cy=(l,N)=>bg(l)(N),wc=bg(Sh()),xg=bg(zp()),Nx=bg(K0()),kh=D4(Bp()),j_=(l,N,W)=>{const fe=W.toString(),Se=fe.indexOf(")")+1,Be=fe.indexOf("("),qe=fe.substring(Be+1,Se-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(qe.slice(0,1).concat(qe.slice(3)))}),l},gb=l=>re(l,N=>bt(N,"/*")?N.substring(0,N.length-2):N),Y1=(l,N)=>{const W=l.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(Be)}),l},uy=(l,N)=>{const W=N.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:gb(Be.slice(1))}),l},np=l=>({classes:y(l.classes)?[]:l.classes,attributes:y(l.attributes)?{}:l.attributes,styles:y(l.styles)?{}:l.styles}),jO=(l,N)=>({...l,attributes:{...l.attributes,...N.attributes},styles:{...l.styles,...N.styles},classes:l.classes.concat(N.classes)}),_g=(l,N,W)=>kh(fe=>{W(fe,l,N)}),Q_=(l,N,W)=>Nx((fe,Se)=>{W(fe,l,N)}),wg=(l,N,W,fe,Se,Be)=>{const qe=Os(l),ft=Ai(N,[es("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},X1=(l,N,W,fe,Se,Be)=>{const qe=l,ft=Ai(N,[Wi("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},om=(l,N,W)=>j_((Se,...Be)=>{const qe=[Se].concat(Be);return Se.config({name:x(l)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+l+". Using API: "+W)},ft=>{const yt=Array.prototype.slice.call(qe,1);return N.apply(void 0,[Se,ft.config,ft.state].concat(yt))})},W,N),H_=l=>({key:l,value:void 0}),QO=(l,N,W,fe,Se,Be,qe)=>{const ft=fn=>pt(fn,W)?fn[W]():I.none(),yt=Ue(Se,(fn,Rn)=>om(W,fn,Rn)),Ht={...Ue(Be,(fn,Rn)=>Y1(fn,Rn)),...yt,revoke:T(H_,W),config:fn=>{const Rn=Xt(W+"-config",l,fn);return{key:W,value:{config:Rn,me:Ht,configAsRaw:Uc(()=>Xt(W+"-config",l,fn)),initialConfig:fn,state:qe}}},schema:x(N),exhibit:(fn,Rn)=>ln(ft(fn),Ge(fe,"exhibit"),(Bn,er)=>er(Rn,Bn.config,Bn.state)).getOrThunk(()=>np({})),name:x(W),handlers:fn=>ft(fn).map(Rn=>Ge(fe,"events").getOr(()=>({}))(Rn.config,Rn.state)).getOr({})};return Ht},uh={init:()=>Hd({readState:x("No State required")})},Hd=l=>l,ei=l=>ua(l),Fx=Os([pn("fields"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),id=l=>{const N=Xt("Creating behaviour: "+l.name,Fx,l);return wg(N.fields,N.name,N.active,N.apis,N.extra,N.state)},$x=Os([pn("branchKey"),pn("branches"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),HO=l=>{const N=Xt("Creating behaviour: "+l.name,$x,l);return X1(bn(N.branchKey,N.branches),N.name,N.active,N.apis,N.extra,N.state)},cc=x(void 0),Xu=(l,N)=>{const W=Nr(l,N);return W===void 0||W===""?[]:W.split(" ")},Vx=(l,N,W)=>{const Se=Xu(l,N).concat([W]);return Cr(l,N,Se.join(" ")),!0},ZO=(l,N,W)=>{const fe=me(Xu(l,N),Se=>Se!==W);return fe.length>0?Cr(l,N,fe.join(" ")):Qt(l,N),!1},u0=l=>l.dom.classList!==void 0,vb=l=>Xu(l,"class"),Fm=(l,N)=>Vx(l,"class",N),Z_=(l,N)=>ZO(l,"class",N),q_=(l,N)=>X(vb(l),N)?Z_(l,N):Fm(l,N),uc=(l,N)=>{u0(l)?l.dom.classList.add(N):Fm(l,N)},fy=l=>{(u0(l)?l.dom.classList:vb(l)).length===0&&Qt(l,"class")},Zc=(l,N)=>{u0(l)?l.dom.classList.remove(N):Z_(l,N),fy(l)},qO=(l,N)=>{const W=u0(l)?l.dom.classList.toggle(N):q_(l,N);return fy(l),W},rp=(l,N)=>u0(l)&&l.dom.classList.contains(N),Og=(l,N)=>{q(N,W=>{uc(l,W)})},Oc=(l,N)=>{q(N,W=>{Zc(l,W)})},WO=(l,N)=>{q(N,W=>{qO(l,W)})},YO=(l,N)=>_e(N,W=>rp(l,W)),Ux=l=>{const N=l.dom.classList,W=new Array(N.length);for(let fe=0;feu0(l)?Ux(l):vb(l),ff=(l,N,W,fe,Se)=>{const Be=qe=>qe+"px";return{position:l,left:N.map(Be),top:W.map(Be),right:fe.map(Be),bottom:Se.map(Be)}},fh=l=>({...l,position:I.some(l.position)}),dy=(l,N)=>{mi(l,fh(N))},jh=l=>(St(Ia(l,"position"),"fixed")?I.none():oo(l)).orThunk(()=>{const fe=Nt.fromTag("span");return Dr(l).bind(Se=>{Bc(Se,fe);const Be=oo(fe);return gs(fe),Be})}),r1=l=>jh(l).map(Tc).getOrThunk(()=>Qs(0,0)),G1=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeOutClass),uc(W,N.fadeInClass),N.onShow(l)},Sg=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeInClass),uc(W,N.fadeOutClass),N.onHide(l)},hy=(l,N)=>l.yN.y,K1=(l,N)=>l.y>=N.y,o1=(l,N)=>l.bottom<=N.bottom,kg=(l,N,W)=>({location:"top",leftX:N,topY:W.bounds.y-l.y}),J1=(l,N,W)=>({location:"bottom",leftX:N,bottomY:l.bottom-W.bounds.bottom}),ev=l=>l.box.x-l.win.x,z4=(l,N,W)=>{const fe=N.win,Se=N.box,Be=ev(N);return Oe(l,qe=>{switch(qe){case"bottom":return o1(Se,W.bounds)?I.none():I.some(J1(fe,Be,W));case"top":return K1(Se,W.bounds)?I.none():I.some(kg(fe,Be,W));default:return I.none()}}).getOr({location:"no-dock"})},W_=(l,N,W)=>_e(l,fe=>{switch(fe){case"bottom":return o1(N,W.bounds);case"top":return K1(N,W.bounds)}}),tv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.bounds.y),fe=>fe.scrollElmTop+(l.bounds.y-fe.currentScrollTop));return Qs(l.bounds.x,W)},nv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.y),fe=>l.y+fe.currentScrollTop-fe.scrollElmTop);return Qs(l.x,W)},jx=(l,N,W)=>W.getInitialPos().map(fe=>{const Se=tv(fe,N);return{box:vs(Se.left,Se.top,_s(l),il(l)),location:fe.location}}),py=(l,N,W,fe,Se)=>{const Be=nv(N,W),qe=vs(Be.left,Be.top,N.width,N.height);fe.setInitialPos({style:Ds(l),position:Di(l,"position")||"static",bounds:qe,location:Se.location})},Y_=(l,N,W,fe,Se)=>{fe.getInitialPos().fold(()=>py(l,N,W,fe,Se),()=>v)},X_=(l,N,W)=>W.getInitialPos().bind(fe=>{var Se;switch(W.clearInitialPos(),fe.position){case"static":return I.some({morph:"static"});case"absolute":const Be=jh(l).getOr(Lr()),qe=cl(Be),ft=(Se=Be.dom.scrollTop)!==null&&Se!==void 0?Se:0;return I.some({morph:"absolute",positionCss:ff("absolute",Ge(fe.style,"left").map(yt=>N.x-qe.x),Ge(fe.style,"top").map(yt=>N.y-qe.y+ft),Ge(fe.style,"right").map(yt=>qe.right-N.right),Ge(fe.style,"bottom").map(yt=>qe.bottom-N.bottom))});default:return I.none()}}),G_=(l,N,W)=>jx(l,N,W).filter(({box:fe})=>W_(W.getModes(),fe,N)).bind(({box:fe})=>X_(l,fe,W)),my=l=>{switch(l.location){case"top":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.some(l.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.none(),I.none(),I.some(l.bottomY))});default:return I.none()}},yb=(l,N,W)=>{const fe=cl(l),Se=ts(),Be=z4(W.getModes(),{win:Se,box:fe},N);return Be.location==="top"||Be.location==="bottom"?(py(l,fe,N,W,Be),my(Be)):I.none()},bp=(l,N,W)=>G_(l,N,W).orThunk(()=>N.optScrollEnv.bind(fe=>jx(l,N,W)).bind(({box:fe,location:Se})=>{const Be=ts(),qe=ev({win:Be,box:fe}),ft=Se==="top"?kg(Be,qe,N):J1(Be,qe,N);return my(ft)})),i1=(l,N,W)=>{const fe=l.element;return St(Ia(fe,"position"),"fixed")?bp(fe,N,W):yb(fe,N,W)},Tg=(l,N,W)=>{const fe=l.element;return jx(fe,N,W).bind(({box:Se})=>X_(fe,Se,W))},im=(l,N,W,fe)=>{const Se=cl(l),Be=ts(),qe=ev({win:Be,box:Se}),ft=fe(Be,qe,N);return ft.location==="bottom"||ft.location==="top"?(Y_(l,Se,N,W,ft),my(ft)):I.none()},Qh=(l,N,W)=>{W.setDocked(!1),q(["left","right","top","bottom","position"],fe=>zi(l.element,fe)),N.onUndocked(l)},rv=(l,N,W,fe)=>{const Se=fe.position==="fixed";W.setDocked(Se),dy(l.element,fe),(Se?N.onDocked:N.onUndocked)(l)},ov=(l,N,W,fe,Se=!1)=>{N.contextual.each(Be=>{Be.lazyContext(l).each(qe=>{const ft=hy(qe,fe.bounds);ft!==W.isVisible()&&(W.setVisible(ft),Se&&!ft?(Og(l.element,[Be.fadeOutClass]),Be.onHide(l)):(ft?G1:Sg)(l,Be))})})},Od=(l,N,W,fe,Se)=>{ov(l,N,W,fe,!0),rv(l,N,W,Se.positionCss)},Cg=(l,N,W,fe,Se)=>{switch(Se.morph){case"static":return Qh(l,N,W);case"absolute":return rv(l,N,W,Se.positionCss);case"fixed":return Od(l,N,W,fe,Se)}},Qx=(l,N,W)=>{const fe=N.lazyViewport(l);ov(l,N,W,fe),i1(l,fe,W).each(Se=>{Cg(l,N,W,fe,Se)})},Th=(l,N,W)=>{const fe=l.element;W.setDocked(!1);const Se=N.lazyViewport(l);Tg(l,Se,W).each(Be=>{switch(Be.morph){case"static":{Qh(l,N,W);break}case"absolute":{rv(l,N,W,Be.positionCss);break}}}),W.setVisible(!0),N.contextual.each(Be=>{Oc(fe,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(l)}),f0(l,N,W)},f0=(l,N,W)=>{l.getSystem().isConnected()&&Qx(l,N,W)},iv=(l,N,W)=>{W.isDocked()&&Th(l,N,W)},K_=l=>(N,W,fe)=>{const Se=W.lazyViewport(N);im(N.element,Se,fe,l).each(qe=>{Od(N,W,fe,Se,qe)})},bb=K_(kg),Hx=K_(J1);var qx=Object.freeze({__proto__:null,refresh:f0,reset:iv,isDocked:(l,N,W)=>W.isDocked(),getModes:(l,N,W)=>W.getModes(),setModes:(l,N,W,fe)=>W.setModes(fe),forceDockToTop:bb,forceDockToBottom:Hx}),$m=Object.freeze({__proto__:null,events:(l,N)=>Rl([cy(rm(),(W,fe)=>{l.contextual.each(Se=>{rp(W.element,Se.transitionClass)&&(Oc(W.element,[Se.transitionClass,Se.fadeInClass]),(N.isVisible()?Se.onShown:Se.onHidden)(W)),fe.stop()})}),Lo(Im(),(W,fe)=>{f0(W,l,N)}),Lo(Dx(),(W,fe)=>{f0(W,l,N)}),Lo(Dm(),(W,fe)=>{iv(W,l,N)})])});const Ch=(l,N)=>{const fe=(N||document).createElement("div");return fe.innerHTML=l,Do(Nt.fromDom(fe))},Np=l=>l.dom.innerHTML,d0=(l,N)=>{const fe=Mo(l).dom,Se=Nt.fromDom(fe.createDocumentFragment()),Be=Ch(N,fe);xd(Se,Be),vc(l),Bc(l,Se)},av=l=>{const N=Nt.fromTag("div"),W=Nt.fromDom(l.dom.cloneNode(!0));return Bc(N,W),Np(N)},J_=(l,N)=>Nt.fromDom(l.dom.cloneNode(N)),gy=l=>J_(l,!1),xb=l=>J_(l,!0),ew=l=>{if(ir(l))return"#shadow-root";{const N=gy(l);return av(N)}},a1=l=>ew(l),sv="unknown";var xp;(function(l){l[l.STOP=0]="STOP",l[l.NORMAL=1]="NORMAL",l[l.LOGGING=2]="LOGGING"})(xp||(xp={}));const _b=wi({}),Ou=(l,N)=>{const W=[],fe=new Date().getTime();return{logEventCut:(Se,Be,qe)=>{W.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(Se,Be,qe)=>{W.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(Se,Be,qe)=>{W.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(Se,Be)=>{W.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(Se,Be,qe)=>{W.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const Se=new Date().getTime();X(["mousemove","mouseover","mouseout",K0()],l)||console.log(l,{event:l,time:Se-fe,target:N.dom,sequence:re(W,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+a1(Be.target)+")":Be.outcome)})}}},Wx=(l,N,W)=>{switch(Ge(_b.get(),l).orThunk(()=>{const Se=ke(_b.get());return Oe(Se,Be=>l.indexOf(Be)>-1?I.some(_b.get()[Be]):I.none())}).getOr(xp.NORMAL)){case xp.NORMAL:return W(Vm());case xp.LOGGING:{const Se=Ou(l,N),Be=W(Se);return Se.write(),Be}case xp.STOP:return!0}},Sd=["alloy/data/Fields","alloy/debugging/Debugging"],XO=()=>{const l=new Error;if(l.stack!==void 0){const N=l.stack.split(` +`);return ce(N,W=>W.indexOf("alloy")>0&&!te(Sd,fe=>W.indexOf(fe)>-1)).getOr(sv)}else return sv},wb={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},am=(l,N,W)=>Wx(l,N,W),Vm=x(wb),_p=x([pn("menu"),pn("selectedMenu")]),op=x([pn("item"),pn("selectedItem")]);x(Si(op().concat(_p())));const GO=x(Si(op())),Ob=si("initSize",[pn("numColumns"),pn("numRows")]),s1=()=>In("markers",GO()),Um=()=>si("markers",[pn("backgroundMenu")].concat(_p()).concat(op())),h0=l=>si("markers",re(l,pn)),p0=(l,N,W)=>(XO(),Ln(N,N,W,rt(fe=>aa.value((...Se)=>fe.apply(void 0,Se))))),Ss=l=>p0("onHandler",l,Ls(v)),kd=l=>p0("onKeyboardHandler",l,Ls(I.none)),Ah=l=>p0("onHandler",l,su()),Sb=l=>p0("onKeyboardHandler",l,su()),Sl=(l,N)=>gn(l,x(N)),l1=l=>gn(l,R),Yx=x(Ob);var N4=[Ai("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),po("lazyContext"),Ss("onShow"),Ss("onShown"),Ss("onHide"),Ss("onHidden")]),ys("lazyViewport",()=>({bounds:ts(),optScrollEnv:I.none()})),mt("modes",["top","bottom"],ne),Ss("onDocked"),Ss("onUndocked")],lv=Object.freeze({__proto__:null,init:l=>{const N=wi(!1),W=wi(!0),fe=ds(),Se=wi(l.modes),Be=()=>`docked: ${N.get()}, visible: ${W.get()}, modes: ${Se.get().join(",")}`;return Hd({isDocked:N.get,setDocked:N.set,getInitialPos:fe.get,setInitialPos:fe.set,clearInitialPos:fe.clear,isVisible:W.get,setVisible:W.set,getModes:Se.get,setModes:Se.set,readState:Be})}});const fc=id({fields:N4,name:"docking",active:$m,apis:qx,state:lv}),cv=(l,N,W)=>_o(N,l.element)&&!_o(N,W),kb=Rl([pb(Oh(),(l,N)=>{const W=N.event,fe=W.originator,Se=W.target;return cv(l,fe,Se)?(console.warn(Oh()+` did not get interpreted by the desired target. Originator: `+a1(fe)+` Target: `+a1(Se)+` -Check the `+wh()+" event handlers"),!1):!0})]);var dc=Object.freeze({__proto__:null,events:kb});const uv=(l,N,W,fe)=>{const Se=l+N;return Se>fe?W:SeMath.min(Math.max(l,N),W),Fp=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let tw=0;const Li=l=>{const W=new Date().getTime(),fe=Math.floor(Fp()*1e9);return tw++,l+"_"+fe+tw+String(W)},nw=x("alloy-id-"),F4=x("data-alloy-id"),KO=nw(),rw=F4(),JO=(l,N)=>{const W=Li(KO+l);return ow(N,W),W},ow=(l,N)=>{Object.defineProperty(l.dom,rw,{value:N,writable:!0})},sm=l=>{const N=lr(l)?l.dom[rw]:null;return I.from(N)},gy=l=>Li(l),c1=R,fv=l=>{const N=Se=>`The component must be in a context to execute: ${Se}`+(l?` -`+a1(l().element)+" is not in context.":""),W=Se=>()=>{throw new Error(N(Se))},fe=Se=>()=>{console.warn(N(Se))};return{debugInfo:x("fake"),triggerEvent:fe("triggerEvent"),triggerFocus:fe("triggerFocus"),triggerEscape:fe("triggerEscape"),broadcast:fe("broadcast"),broadcastOn:fe("broadcastOn"),broadcastEvent:fe("broadcastEvent"),build:W("build"),buildOrPatch:W("buildOrPatch"),addToWorld:W("addToWorld"),removeFromWorld:W("removeFromWorld"),addToGui:W("addToGui"),removeFromGui:W("removeFromGui"),getByUid:W("getByUid"),getByDom:W("getByDom"),isConnected:D}},dv=fv(),Hh=Li("alloy-premade"),hv=l=>(Object.defineProperty(l.element.dom,Hh,{value:l.uid,writable:!0}),Sa(Hh,l)),Gx=l=>ht(l.dom,Hh),df=l=>Ge(l,Hh),Tb=l=>cy((N,...W)=>l(N.getApis(),N,...W),l),uu=(l,N)=>{const W=re(N,Se=>Ai(Se.name(),[pn("config"),Ar("state",uh)])),fe=Rt("component.behaviours",Si(W),l.behaviours).fold(Se=>{throw new Error(dn(Se)+` +Check the `+Oh()+" event handlers"),!1):!0})]);var dc=Object.freeze({__proto__:null,events:kb});const uv=(l,N,W,fe)=>{const Se=l+N;return Se>fe?W:SeMath.min(Math.max(l,N),W),Fp=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let tw=0;const Li=l=>{const W=new Date().getTime(),fe=Math.floor(Fp()*1e9);return tw++,l+"_"+fe+tw+String(W)},nw=x("alloy-id-"),F4=x("data-alloy-id"),KO=nw(),rw=F4(),JO=(l,N)=>{const W=Li(KO+l);return ow(N,W),W},ow=(l,N)=>{Object.defineProperty(l.dom,rw,{value:N,writable:!0})},sm=l=>{const N=lr(l)?l.dom[rw]:null;return I.from(N)},vy=l=>Li(l),c1=R,fv=l=>{const N=Se=>`The component must be in a context to execute: ${Se}`+(l?` +`+a1(l().element)+" is not in context.":""),W=Se=>()=>{throw new Error(N(Se))},fe=Se=>()=>{console.warn(N(Se))};return{debugInfo:x("fake"),triggerEvent:fe("triggerEvent"),triggerFocus:fe("triggerFocus"),triggerEscape:fe("triggerEscape"),broadcast:fe("broadcast"),broadcastOn:fe("broadcastOn"),broadcastEvent:fe("broadcastEvent"),build:W("build"),buildOrPatch:W("buildOrPatch"),addToWorld:W("addToWorld"),removeFromWorld:W("removeFromWorld"),addToGui:W("addToGui"),removeFromGui:W("removeFromGui"),getByUid:W("getByUid"),getByDom:W("getByDom"),isConnected:D}},dv=fv(),Hh=Li("alloy-premade"),hv=l=>(Object.defineProperty(l.element.dom,Hh,{value:l.uid,writable:!0}),Sa(Hh,l)),Gx=l=>ht(l.dom,Hh),df=l=>Ge(l,Hh),Tb=l=>uy((N,...W)=>l(N.getApis(),N,...W),l),uu=(l,N)=>{const W=re(N,Se=>Ai(Se.name(),[pn("config"),Ar("state",uh)])),fe=Rt("component.behaviours",Si(W),l.behaviours).fold(Se=>{throw new Error(dn(Se)+` Complete spec: `+JSON.stringify(l,null,2))},R);return{list:N,data:Ue(fe,Se=>{const Be=Se.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},Cb=l=>l.list,Kx=l=>l.data,Jx=(l,N)=>{const W={};return We(l,(fe,Se)=>{We(fe,(Be,qe)=>{const ft=Ge(W,qe).getOr([]);W[qe]=ft.concat([N(Se,Be)])})}),W},iw=(l,N,W,fe)=>{const Se={...N};q(W,Ht=>{Se[Ht.name()]=Ht.exhibit(l,fe)});const Be=Jx(Se,(Ht,fn)=>({name:Ht,modification:fn})),qe=Ht=>pe(Ht,(fn,Rn)=>({...Rn.modification,...fn}),{}),ft=pe(Be.classes,(Ht,fn)=>fn.modification.concat(Ht),[]),yt=qe(Be.attributes),Lt=qe(Be.styles);return np({classes:ft,attributes:yt,styles:Lt})},e3=(l,N,W,fe)=>{try{const Se=ze(W,(Be,qe)=>{const ft=Be[N],yt=qe[N],Lt=fe.indexOf(ft),Ht=fe.indexOf(yt);if(Lt===-1)throw new Error("The ordering for "+l+" does not have an entry for "+ft+`. Order specified: `+JSON.stringify(fe,null,2));if(Ht===-1)throw new Error("The ordering for "+l+" does not have an entry for "+yt+`. Order specified: `+JSON.stringify(fe,null,2));return Lt({handler:l,purpose:N}),u1=(l,N)=>({cHandler:l,purpose:N}),cm=(l,N)=>u1(T.apply(void 0,[l.handler].concat(N)),l.purpose),pv=l=>l.cHandler,hf=(l,N)=>({name:l,handler:N}),f1=(l,N)=>{const W={};return q(l,fe=>{W[fe.name()]=fe.handlers(N)}),W},jm=(l,N,W)=>{const fe={...W,...f1(N,l)};return Jx(fe,hf)},mv=(l,N,W,fe)=>{const Se=jm(l,W,fe);return m0(Se,N)},e2=l=>{const N=X0(l);return(W,fe,...Se)=>{const Be=[W,fe].concat(Se);N.abort.apply(void 0,Be)?fe.stop():N.can.apply(void 0,Be)&&N.run.apply(void 0,Be)}},Zd=(l,N)=>aa.error(["The event ("+l+`) has more than one behaviour that listens to it. When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(re(N,W=>W.name),null,2)]),vy=(l,N,W)=>{const fe=N[W];return fe?e3("Event: "+W,"name",l,fe).map(Se=>{const Be=re(Se,qe=>qe.handler);return Vh(Be)}):Zd(W,l)},m0=(l,N)=>{const W=je(l,(fe,Se)=>(fe.length===1?aa.value(fe[0].handler):vy(fe,N,Se)).map(qe=>{const ft=e2(qe),yt=fe.length>1?me(N[Se],Lt=>te(fe,Ht=>Ht.name===Lt)).join(" > "):fe[0].name;return Sa(Se,lm(ft,yt))}));return Jc(W,{})},g0="alloy.base.behaviour",v0=Si([Ln("dom","dom",su(),Si([pn("tag"),Ar("styles",{}),Ar("classes",[]),Ar("attributes",{}),Yo("value"),Yo("innerHtml")])),pn("components"),pn("uid"),Ar("events",{}),Ar("apis",{}),Ln("eventOrder","eventOrder",wt({[Bp()]:["disabling",g0,"toggling","typeaheadevents"],[wh()]:[g0,"focusing","keying"],[K0()]:[g0,"disabling","toggling","representing","tooltipping"],[vg()]:[g0,"representing","streaming","invalidating"],[zp()]:[g0,"representing","item-events","toolbar-button-events","tooltipping"],[Nc()]:["focusing",g0,"item-type-events"],[Uh()]:["focusing",g0,"item-type-events"],[wu()]:["item-type-events","tooltipping"],[yp()]:["receiving","reflecting","tooltipping"]}),Ut()),Yo("domModification")]),y0=l=>Rt("custom.definition",v0,l),Tf=l=>({...l.dom,uid:l.uid,domChildren:re(l.components,N=>N.element)}),vo=l=>l.domModification.fold(()=>np({}),np),Ab=l=>l.events,F=l=>l.dom.value,G=(l,N)=>{if(N===void 0)throw new Error("Value.set was undefined");l.dom.value=N},ue=(l,N,W)=>jn(l,N).map(Se=>{if(W.exists(qe=>!_o(qe,Se))){const qe=W.map(vr).getOr("span"),ft=Nt.fromTag(qe);return af(Se,ft),ft}else return Se}),Ae=(l,N,W)=>{W.fold(()=>Bc(l,N),fe=>{_o(fe,N)||(af(fe,N),gs(fe))})},He=(l,N,W)=>{const fe=re(N,W),Se=Do(l);return q(Se.slice(fe.length),gs),fe},nt=(l,N,W,fe)=>{const Se=jn(l,N),Be=fe(W,Se),qe=ue(l,N,Se);return Ae(l,Be.element,qe),Be},ct=(l,N,W)=>He(l,N,(fe,Se)=>nt(l,Se,fe,W)),Pt=(l,N)=>He(l,N,(W,fe)=>{const Se=jn(l,fe);return Ae(l,W,Se),W}),jt=(l,N)=>{const W=ke(l),fe=ke(N),Se=Te(fe,W),Be=Me(l,(qe,ft)=>!ht(N,ft)||qe!==N[ft]).t;return{toRemove:Se,toSet:Be}},hn=(l,N)=>{const{class:W,style:fe,...Se}=Mn(N),{toSet:Be,toRemove:qe}=jt(l.attributes,Se),ft=()=>{q(qe,jr=>Qt(N,jr)),wo(N,Be)},yt=Ds(N),{toSet:Lt,toRemove:Ht}=jt(l.styles,yt),fn=()=>{q(Ht,jr=>zi(N,jr)),Oo(N,Lt)},Rn=qc(N),Bn=Te(Rn,l.classes),er=Te(l.classes,Rn),cr=()=>{Og(N,er),Oc(N,Bn)},Xr=jr=>{d0(N,jr)},br=()=>{const jr=l.domChildren;Pt(N,jr)},Fr=()=>{const jr=N,Ro=l.value.getOrUndefined();Ro!==F(jr)&&G(jr,Ro??"")};return ft(),cr(),fn(),l.innerHtml.fold(br,Xr),Fr(),N},mn=l=>{const N=Nt.fromTag(l.tag);wo(N,l.attributes),Og(N,l.classes),Oo(N,l.styles),l.innerHtml.each(fe=>d0(N,fe));const W=l.domChildren;return xd(N,W),l.value.each(fe=>{G(N,fe)}),N},Dn=(l,N)=>{try{const W=hn(l,N);return I.some(W)}catch{return I.none()}},Xn=l=>l.innerHtml.isSome()&&l.domChildren.length>0,$n=(l,N)=>{const W=Se=>vr(Se)===l.tag&&!Xn(l)&&!Gx(Se),fe=N.filter(W).bind(Se=>Dn(l,Se)).getOrThunk(()=>mn(l));return ow(fe,l.uid),fe},mr=l=>{const N=Ge(l,"behaviours").getOr({});return ve(ke(N),W=>{const fe=N[W];return a(fe)?[fe.me]:[]})},Or=(l,N)=>uu(l,N),Kr=l=>{const N=mr(l);return Or(l,N)},Hr=(l,N,W)=>{const fe=Tf(l),Se=vo(l),Be={"alloy.base.modification":Se},qe=N.length>0?iw(W,Be,N,fe):Se;return jO(fe,qe)},fo=(l,N,W)=>{const fe={"alloy.base.behaviour":Ab(l)};return mv(W,l.eventOrder,N,fe).getOrDie()},mo=(l,N)=>{const W=()=>jr,fe=wi(dv),Se=Mt(y0(l)),Be=Kr(l),qe=Cb(Be),ft=Kx(Be),yt=Hr(Se,qe,ft),Lt=$n(yt,N),Ht=fo(Se,qe,ft),fn=wi(Se.components),Rn=Ro=>{fe.set(Ro)},Bn=()=>{fe.set(fv(W))},er=()=>{const Ro=Do(Lt),ko=ve(Ro,_i=>fe.get().getByDom(_i).fold(()=>[],Ie));fn.set(ko)},cr=Ro=>{const ko=ft;return(c(ko[Ro.name()])?ko[Ro.name()]:()=>{throw new Error("Could not find "+Ro.name()+" in "+JSON.stringify(l,null,2))})()},Xr=Ro=>c(ft[Ro.name()]),br=()=>Se.apis,Fr=Ro=>ft[Ro]().map(ko=>ko.state.readState()).getOr("not enabled"),jr={uid:l.uid,getSystem:fe.get,config:cr,hasConfigured:Xr,spec:l,readState:Fr,getApis:br,connect:Rn,disconnect:Bn,element:Lt,syncComponents:er,components:fn.get,events:Ht};return jr},Io=(l,N)=>{const W=Ge(l,"components").getOr([]);return N.fold(()=>re(W,ka),fe=>re(W,(Se,Be)=>ra(Se,jn(fe,Be))))},Qo=(l,N)=>{const{events:W,...fe}=c1(l),Se=Io(fe,N),Be={...fe,events:{...dc,...W},components:Se};return aa.value(mo(Be,N))},Po=l=>{const N=Nt.fromText(l);return Ii({element:N})},Ii=l=>{const N=Xt("external.component",Os([pn("element"),Yo("uid")]),l),W=wi(fv()),fe=ft=>{W.set(ft)},Se=()=>{W.set(fv(()=>qe))},Be=N.uid.getOrThunk(()=>gy("external"));ow(N.element,Be);const qe={uid:Be,getSystem:W.get,config:I.none,hasConfigured:D,connect:fe,disconnect:Se,getApis:()=>({}),element:N.element,spec:l,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return hv(qe)},bi=gy,Zi=l=>ht(l,"uid"),ra=(l,N)=>df(l).getOrThunk(()=>{const W=Zi(l)?l:{uid:bi(""),...l};return Qo(W,N).getOrDie()}),ka=l=>ra(l,I.none()),ea=hv;var as=(l,N,W,fe,Se)=>l(W,fe)?I.some(W):c(Se)&&Se(W)?I.none():N(W,fe,Se);const Da=(l,N,W)=>{let fe=l.dom;const Se=c(W)?W:D;for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe);if(N(Be))return I.some(Be);if(Se(Be))break}return I.none()},ba=(l,N,W)=>as((Se,Be)=>Be(Se),Da,l,N,W),fl=(l,N)=>{const W=l.dom;return W.parentNode?As(Nt.fromDom(W.parentNode),fe=>!_o(l,fe)&&N(fe)):I.none()},As=(l,N)=>{const W=Se=>N(Nt.fromDom(Se));return ce(l.dom.childNodes,W).map(Nt.fromDom)},hc=(l,N)=>{const W=fe=>{for(let Se=0;Seba(l,N,W).isSome(),Vs=l=>Fo(l),Fl=(l,N,W)=>Da(l,fe=>Yr(fe,N),W),kl=(l,N)=>fl(l,W=>Yr(W,N)),Fc=(l,N)=>As(l,W=>Yr(W,N)),qa=(l,N)=>Fo(N,l),Sc=(l,N,W)=>as((Se,Be)=>Yr(Se,Be),Fl,l,N,W),pc="aria-controls",sd=l=>ba(l,W=>{if(!lr(W))return!1;const fe=Nr(W,"id");return fe!==void 0&&fe.indexOf(pc)>-1}).bind(W=>{const fe=Nr(W,"id"),Se=kr(W);return qa(Se,`[${pc}="${fe}"]`)}),ld=()=>{const l=Li(pc);return{id:l,link:fe=>{Cr(fe,pc,l)},unlink:fe=>{Qt(fe,pc)}}},cd=(l,N)=>sd(N).exists(W=>Cf(l,W)),Cf=(l,N)=>os(N,W=>_o(W,l.element),D)||cd(l,N),xl=(l,N,W,fe,Se,Be,qe,ft=!1)=>({x:l,y:N,bubble:W,direction:fe,placement:Se,restriction:Be,label:`${qe}-${Se}`,alwaysFit:ft}),eu=Nn.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Td=(l,N,W,fe,Se,Be,qe,ft,yt)=>l.fold(N,W,fe,Se,Be,qe,ft,yt),Af=(l,N,W,fe)=>l.fold(N,N,fe,fe,N,fe,W,W),jf=(l,N,W,fe)=>l.fold(N,fe,N,fe,W,W,N,fe),Us=eu.southeast,_l=eu.southwest,fu=eu.northeast,ni=eu.northwest,Wc=eu.south,Yc=eu.north,$l=eu.east,Ru=eu.west,Mh=(l,N)=>{switch(N){case 1:return l.x;case 0:return l.x+l.width;case 2:return l.y;case 3:return l.y+l.height}},mc=(l,N)=>Pe(["left","right","top","bottom"],W=>Ge(N,W).map(fe=>Mh(l,fe))),dh=(l,N,W)=>{const fe=(yt,Lt)=>N[yt].map(Ht=>{const fn=yt==="top"||yt==="bottom",Rn=fn?W.top:W.left,er=(yt==="left"||yt==="top"?Math.max:Math.min)(Ht,Lt)+Rn;return fn?Ah(er,l.y,l.bottom):Ah(er,l.x,l.right)}).getOr(Lt),Se=fe("left",l.x),Be=fe("top",l.y),qe=fe("right",l.right),ft=fe("bottom",l.bottom);return vs(Se,Be,qe-Se,ft-Be)},hh="layout",Qm=l=>l.x,Qf=(l,N)=>l.x+l.width/2-N.width/2,tu=(l,N)=>l.x+l.width-N.width,qd=(l,N)=>l.y-N.height,Cd=l=>l.y+l.height,d1=(l,N)=>l.y+l.height/2-N.height/2,t2=l=>l.x+l.width,gv=(l,N)=>l.x-N.width,Lu=(l,N,W)=>xl(Qm(l),Cd(l),W.southeast(),Us(),"southeast",mc(l,{left:1,top:3}),hh),$c=(l,N,W)=>xl(tu(l,N),Cd(l),W.southwest(),_l(),"southwest",mc(l,{right:0,top:3}),hh),dl=(l,N,W)=>xl(Qm(l),qd(l,N),W.northeast(),fu(),"northeast",mc(l,{left:1,bottom:2}),hh),Mf=(l,N,W)=>xl(tu(l,N),qd(l,N),W.northwest(),ni(),"northwest",mc(l,{right:0,bottom:2}),hh),du=(l,N,W)=>xl(Qf(l,N),qd(l,N),W.north(),Yc(),"north",mc(l,{bottom:2}),hh),Iu=(l,N,W)=>xl(Qf(l,N),Cd(l),W.south(),Wc(),"south",mc(l,{top:3}),hh),vv=(l,N,W)=>xl(t2(l),d1(l,N),W.east(),$l(),"east",mc(l,{left:0}),hh),h1=(l,N,W)=>xl(gv(l,N),d1(l,N),W.west(),Ru(),"west",mc(l,{right:1}),hh),n2=()=>[Lu,$c,dl,Mf,Iu,du,vv,h1],yy=()=>[$c,Lu,Mf,dl,Iu,du,vv,h1],p1=()=>[dl,Mf,Lu,$c,du,Iu],b0=()=>[Mf,dl,$c,Lu,du,Iu],Hm=()=>[Lu,$c,dl,Mf,Iu,du],yv=()=>[$c,Lu,Mf,dl,Iu,du],by=(l,N)=>N.universal?l:me(l,W=>X(N.channels,W));var r2=Object.freeze({__proto__:null,events:l=>Rl([Lo(yp(),(N,W)=>{const fe=l.channels,Se=ke(fe),Be=W,qe=by(Se,Be);q(qe,ft=>{const yt=fe[ft],Lt=yt.schema,Ht=Xt("channel["+ft+`] data -Receiver: `+a1(N.element),Lt,Be.data);yt.onReceive(N,Ht)})})])}),Mb=[In("channels",dt(aa.value,Os([Ch("onReceive"),Ar("schema",Ut())])))];const Ad=id({fields:Mb,name:"receiving",active:r2});var _y=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:[],styles:N.useFixed()?{}:{position:"relative"}})});const Md=(l,N=!1)=>l.dom.focus({preventScroll:N}),m1=l=>l.dom.blur(),_0=l=>{const N=kr(l).dom;return l.dom===N.activeElement},um=(l=Ac())=>I.from(l.dom.activeElement).map(Nt.fromDom),Wd=l=>um(kr(l)).filter(N=>l.dom.contains(N.dom)),w0=(l,N)=>{const W=kr(N),fe=um(W).bind(Be=>{const qe=ft=>_o(Be,ft);return qe(N)?I.some(N):hc(N,qe)}),Se=l(N);return fe.each(Be=>{um(W).filter(qe=>_o(qe,Be)).fold(()=>{Md(Be)},v)}),Se},Eb=Nn.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),wy=(l,N,W,fe,Se,Be)=>{const qe=N.rect,ft=qe.x-W,yt=qe.y-fe,Lt=qe.width,Ht=qe.height,fn=Se-(ft+Lt),Rn=Be-(yt+Ht),Bn=I.some(ft),er=I.some(yt),cr=I.some(fn),Xr=I.some(Rn),br=I.none();return Td(N.direction,()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,br,br,cr,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br))},aw=(l,N)=>l.fold(()=>{const W=N.rect;return ff("absolute",I.some(W.x),I.some(W.y),I.none(),I.none())},(W,fe,Se,Be)=>wy("absolute",N,W,fe,Se,Be),(W,fe,Se,Be)=>wy("fixed",N,W,fe,Se,Be)),Zm=(l,N)=>{const W=T(Au,N),fe=l.fold(W,W,()=>{const qe=yc();return Au(N).translate(-qe.left,-qe.top)}),Se=ma(N),Be=nf(N);return vs(fe.left,fe.top,Se,Be)},sw=(l,N)=>N.fold(()=>l.fold(ts,ts,vs),W=>l.fold(x(W),x(W),()=>{const fe=Pb(l,W.x,W.y);return vs(fe.left,fe.top,W.width,W.height)})),Pb=(l,N,W)=>{const fe=Qs(N,W),Se=()=>{const Be=yc();return fe.translate(-Be.left,-Be.top)};return l.fold(x(fe),x(fe),Se)},t3=(l,N,W,fe)=>l.fold(N,W,fe);Eb.none;const O0=Eb.relative,hu=Eb.fixed,ip=(l,N)=>({anchorBox:l,origin:N}),$4=(l,N)=>ip(l,N),qm="data-alloy-placement",lw=(l,N)=>{Cr(l,qm,N)},cw=l=>Eo(l,qm),o2=l=>Qt(l,qm),$p=Nn.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Rb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,right:yt,bottom:Lt,width:Ht,height:fn}=l,Rn=qe>=W&&qe<=Se,Bn=ft>=fe&&ft<=Be,er=Rn&&Bn,cr=yt<=Se&&yt>=W,Xr=Lt<=Be&&Lt>=fe,br=cr&&Xr,Fr=Math.min(Ht,qe>=W?Se-qe:yt-W),jr=Math.min(fn,ft>=fe?Be-ft:Lt-fe);return{originInBounds:er,sizeInBounds:br,visibleW:Fr,visibleH:jr}},Lb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,width:yt,height:Lt}=l,Ht=Math.max(W,Se-yt),fn=Math.max(fe,Be-Lt),Rn=Ah(qe,W,Ht),Bn=Ah(ft,fe,fn),er=Math.min(Rn+yt,Se)-Rn,cr=Math.min(Bn+Lt,Be)-Bn;return vs(Rn,Bn,er,cr)},Oy=(l,N,W)=>{const fe=x(N.bottom-W.y),Se=x(W.bottom-N.y),Be=Af(l,Se,Se,fe),qe=x(N.right-W.x),ft=x(W.right-N.x);return{maxWidth:jf(l,ft,ft,qe),maxHeight:Be}},bv=(l,N,W,fe)=>{const Se=l.bubble,Be=Se.offset,qe=dh(fe,l.restriction,Be),ft=l.x+Be.left,yt=l.y+Be.top,Lt=vs(ft,yt,N,W),{originInBounds:Ht,sizeInBounds:fn,visibleW:Rn,visibleH:Bn}=Rb(Lt,qe),er=Ht&&fn,cr=er?Lt:Lb(Lt,qe),Xr=cr.width>0&&cr.height>0,{maxWidth:br,maxHeight:Fr}=Oy(l.direction,cr,fe),jr={rect:cr,maxHeight:Fr,maxWidth:br,direction:l.direction,placement:l.placement,classes:{on:Se.classesOn,off:Se.classesOff},layout:l.label,testY:yt};return er||l.alwaysFit?$p.fit(jr):$p.nofit(jr,Rn,Bn,Xr)},uw=(l,N,W,fe,Se,Be)=>{const qe=fe.width,ft=fe.height,yt=(Ht,fn,Rn,Bn,er)=>{const cr=Ht(W,fe,Se,l,Be),Xr=bv(cr,qe,ft,Be);return Xr.fold(x(Xr),(br,Fr,jr,Ro)=>(er===Ro?jr>Bn||Fr>Rn:!er&&Ro)?Xr:$p.nofit(fn,Rn,Bn,er))};return se(N,(Ht,fn)=>{const Rn=T(yt,fn);return Ht.fold(x(Ht),Rn)},$p.nofit({rect:W,maxHeight:fe.height,maxWidth:fe.width,direction:Us(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:W.y},-1,-1,!1)).fold(R,R)},fw=k,ud=(l,N,W)=>yu(l,N,fw,W),i2=(l,N,W)=>jc(l,N,fw,W),a2=_f,s2=["top","bottom","right","left"],Ib="data-alloy-transition-timer",n3=(l,N)=>YO(l,N.classes),Eh=(l,N,W)=>W.exists(fe=>{const Se=l.mode;return Se==="all"?!0:fe[Se]!==N[Se]}),Db=(l,N)=>{const W=fe=>parseFloat(fe).toFixed(3);return tt(N,(fe,Se)=>{const Be=l[Se].map(W),qe=fe.map(W);return!Ft(Be,qe)}).isSome()},l2=l=>{const N=Be=>{const ft=Di(l,Be).split(/\s*,\s*/);return me(ft,it)},W=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return bt(Be,"ms")?qe:qe*1e3}else return 0},fe=N("transition-delay"),Se=N("transition-duration");return se(Se,(Be,qe,ft)=>{const yt=W(fe[ft])+W(qe);return Math.max(Be,yt)},0)},fm=(l,N)=>{const W=Ol(),fe=Ol();let Se;const Be=Lt=>{var Ht;const fn=(Ht=Lt.raw.pseudoElement)!==null&&Ht!==void 0?Ht:"";return _o(Lt.target,l)&&at(fn)&&X(s2,Lt.raw.propertyName)},qe=Lt=>{if(m(Lt)||Be(Lt)){W.clear(),fe.clear();const Ht=Lt==null?void 0:Lt.raw.type;(m(Ht)||Ht===rm())&&(clearTimeout(Se),Qt(l,Ib),Oc(l,N.classes))}},ft=ud(l,z_(),Lt=>{Be(Lt)&&(ft.unbind(),W.set(ud(l,rm(),qe)),fe.set(ud(l,VO(),qe)))}),yt=l2(l);requestAnimationFrame(()=>{Se=setTimeout(qe,yt+17),Cr(l,Ib,Se)})},r3=(l,N)=>{Og(l,N.classes),Eo(l,Ib).each(W=>{clearTimeout(parseInt(W,10)),Qt(l,Ib)}),fm(l,N)},xv=(l,N,W,fe,Se,Be)=>{const qe=Eh(fe,Se,Be);if(qe||n3(l,fe)){xr(l,"position",W.position);const ft=Zm(N,l),yt=aw(N,{...Se,rect:ft}),Lt=Pe(s2,Ht=>yt[Ht]);Db(W,Lt)&&(mi(l,Lt),qe&&r3(l,fe),yl(l))}else Oc(l,fe.classes)},g1=l=>({width:ma(l),height:nf(l)}),_v=(l,N,W,fe)=>{zi(N,"max-height"),zi(N,"max-width");const Se=g1(N);return uw(N,fe.preference,l,Se,W,fe.bounds)},wv=(l,N)=>{const W=N.classes;Oc(l,W.off),Og(l,W.on)},Sy=(l,N,W)=>{const fe=W.maxHeightFunction;fe(l,N.maxHeight)},Ov=(l,N,W)=>{const fe=W.maxWidthFunction;fe(l,N.maxWidth)},dw=(l,N,W)=>{const fe=aw(W.origin,N);W.transition.each(Se=>{xv(l,W.origin,fe,Se,N,W.lastPlacement)}),fy(l,fe)},o3=(l,N)=>{lw(l,N.placement)},Bb=(l,N)=>{nh(l,Math.floor(N))},hw=x((l,N)=>{Bb(l,N),Oo(l,{"overflow-x":"hidden","overflow-y":"auto"})}),v1=x((l,N)=>{Bb(l,N)}),c2=(l,N,W)=>l[N]===void 0?W:l[N],Wm=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=c2(qe,"maxHeightFunction",hw()),Lt=c2(qe,"maxWidthFunction",v),Ht=l.anchorBox,fn=l.origin,Rn={bounds:sw(fn,Be),origin:fn,preference:fe,maxHeightFunction:yt,maxWidthFunction:Lt,lastPlacement:Se,transition:ft};return pw(Ht,N,W,Rn)},pw=(l,N,W,fe)=>{const Se=_v(l,N,W,fe);return dw(N,Se,fe),o3(N,Se),wv(N,Se),Sy(N,Se,fe),Ov(N,Se,fe),{layout:Se.layout,placement:Se.placement}},mw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],wp=(l,N,W,fe=1)=>{const Se=l*fe,Be=N*fe,qe=yt=>Ge(W,yt).getOr([]),ft=(yt,Lt,Ht)=>{const fn=Te(mw,Ht);return{offset:Qs(yt,Lt),classesOn:ve(Ht,qe),classesOff:ve(fn,qe)}};return{southeast:()=>ft(-l,N,["top","alignLeft"]),southwest:()=>ft(l,N,["top","alignRight"]),south:()=>ft(-l/2,N,["top","alignCentre"]),northeast:()=>ft(-l,-N,["bottom","alignLeft"]),northwest:()=>ft(l,-N,["bottom","alignRight"]),north:()=>ft(-l/2,-N,["bottom","alignCentre"]),east:()=>ft(l,-N/2,["valignCentre","left"]),west:()=>ft(-l,-N/2,["valignCentre","right"]),insetNortheast:()=>ft(Se,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-Se,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-Se/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(Se,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-Se,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-Se/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-Se,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(Se,-Be/2,["valignCentre","left","inset"])}},zb=()=>wp(0,0,{}),u2=R,Hf=(l,N)=>W=>V4(W)==="rtl"?N:l,V4=l=>Di(l,"direction")==="rtl"?"rtl":"ltr";var ap;(function(l){l.TopToBottom="toptobottom",l.BottomToTop="bottomtotop"})(ap||(ap={}));const Nb="data-alloy-vertical-dir",i3=l=>os(l,N=>lr(N)&&Nr(N,"data-alloy-vertical-dir")===ap.BottomToTop),dm=()=>Ai("layouts",[pn("onLtr"),pn("onRtl"),Yo("onBottomLtr"),Yo("onBottomRtl")]),ky=(l,N,W,fe,Se,Be,qe)=>{const ft=qe.map(i3).getOr(!1),yt=N.layouts.map(Bn=>Bn.onLtr(l)),Lt=N.layouts.map(Bn=>Bn.onRtl(l)),Ht=ft?N.layouts.bind(Bn=>Bn.onBottomLtr.map(er=>er(l))).or(yt).getOr(Se):yt.getOr(W),fn=ft?N.layouts.bind(Bn=>Bn.onBottomRtl.map(er=>er(l))).or(Lt).getOr(Be):Lt.getOr(fe);return Hf(Ht,fn)(l)},f2=(l,N,W)=>{const fe=N.hotspot,Se=Zm(W,fe.element),Be=ky(l.element,N,Hm(),yv(),p1(),b0(),I.some(N.hotspot.element));return I.some(u2({anchorBox:Se,bubble:N.bubble.getOr(zb()),overrides:N.overrides,layouts:Be}))};var a3=[pn("hotspot"),Yo("bubble"),Ar("overrides",{}),dm(),Sl("placement",f2)];const d2=(l,N,W)=>{const fe=Pb(W,N.x,N.y),Se=vs(fe.left,fe.top,N.width,N.height),Be=ky(l.element,N,n2(),yy(),n2(),yy(),I.none());return I.some(u2({anchorBox:Se,bubble:N.bubble,overrides:N.overrides,layouts:Be}))};var s3=[pn("x"),pn("y"),Ar("height",0),Ar("width",0),Ar("bubble",zb()),Ar("overrides",{}),dm(),Sl("placement",d2)];const h2=Nn.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Fb=l=>l.fold(R,(N,W,fe)=>N.translate(-W,-fe)),l3=l=>l.fold(R,R),c3=l=>se(l,(N,W)=>N.translate(W.left,W.top),Qs(0,0)),U4=l=>{const N=re(l,Fb);return c3(N)},p2=l=>{const N=re(l,l3);return c3(N)},m2=h2.screen,Mg=h2.absolute,S0=(l,N,W)=>{const fe=ar(W.root).dom,Se=Be=>{const qe=Mo(Be),ft=Mo(l.element);return _o(qe,ft)};return I.from(fe.frameElement).map(Nt.fromDom).filter(Se).map(Tc)},gw=(l,N,W)=>{const fe=Mo(l.element),Se=yc(fe),Be=S0(l,N,W).getOr(Se);return Mg(Be,Se.left,Se.top)},y1=(l,N,W,fe)=>{const Se=m2(Qs(l,N));return I.some(lf(Se,W,fe))},g2=(l,N,W,fe,Se)=>l.map(Be=>{const qe=[N,Be.point],ft=t3(fe,()=>p2(qe),()=>p2(qe),()=>U4(qe)),yt=wf(ft.left,ft.top,Be.width,Be.height),Lt=W.showAbove?p1():Hm(),Ht=W.showAbove?b0():yv(),fn=ky(Se,W,Lt,Ht,Lt,Ht,I.none());return u2({anchorBox:yt,bubble:W.bubble.getOr(zb()),overrides:W.overrides,layouts:fn})}),u3=(l,N,W)=>{const fe=gw(l,W,N);return N.node.filter(Gn).bind(Se=>{const Be=Se.dom.getBoundingClientRect(),qe=y1(Be.left,Be.top,Be.width,Be.height),ft=N.node.getOr(l.element);return g2(qe,fe,N,W,ft)})};var zM=[pn("node"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",u3)];const mC="\uFEFF",$b=" ",vw={create:(l,N,W,fe)=>({start:l,soffset:N,finish:W,foffset:fe})},Ty=Nn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yw=(l,N,W,fe)=>l.fold(N,W,fe),vC=l=>l.fold(R,R,R),yC=Ty.before,CD=Ty.on,NM=Ty.after,v2={before:yC,on:CD,after:NM,cata:yw,getStart:vC},b1=Nn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),FM=l=>b1.exact(l.start,l.soffset,l.finish,l.foffset),j4=l=>l.match({domRange:N=>Nt.fromDom(N.startContainer),relative:(N,W)=>v2.getStart(N),exact:(N,W,fe,Se)=>N}),bC=b1.domRange,xC=b1.relative,_C=b1.exact,Q4=l=>{const N=j4(l);return ar(N)},wC=vw.create,Cy={domRange:bC,relative:xC,exact:_C,exactFromRange:FM,getWin:Q4,range:wC},OC=(l,N)=>{N.fold(W=>{l.setStartBefore(W.dom)},(W,fe)=>{l.setStart(W.dom,fe)},W=>{l.setStartAfter(W.dom)})},Vb=(l,N)=>{N.fold(W=>{l.setEndBefore(W.dom)},(W,fe)=>{l.setEnd(W.dom,fe)},W=>{l.setEndAfter(W.dom)})},Ay=(l,N,W)=>{const fe=l.document.createRange();return OC(fe,N),Vb(fe,W),fe},bw=(l,N,W,fe,Se)=>{const Be=l.document.createRange();return Be.setStart(N.dom,W),Be.setEnd(fe.dom,Se),Be},y2=l=>({left:l.left,top:l.top,right:l.right,bottom:l.bottom,width:l.width,height:l.height}),f3=l=>{const N=l.getClientRects(),W=N.length>0?N[0]:l.getBoundingClientRect();return W.width>0||W.height>0?I.some(W).map(y2):I.none()},My=l=>{const N=l.getBoundingClientRect();return N.width>0||N.height>0?I.some(N).map(y2):I.none()},hm=Nn.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),H4=(l,N,W)=>N(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset),$M=(l,N)=>N.match({domRange:W=>({ltr:x(W),rtl:I.none}),relative:(W,fe)=>({ltr:Uc(()=>Ay(l,W,fe)),rtl:Uc(()=>I.some(Ay(l,fe,W)))}),exact:(W,fe,Se,Be)=>({ltr:Uc(()=>bw(l,W,fe,Se,Be)),rtl:Uc(()=>I.some(bw(l,Se,Be,W,fe)))})}),b2=(l,N)=>{const W=N.ltr();return W.collapsed?N.rtl().filter(Se=>Se.collapsed===!1).map(Se=>hm.rtl(Nt.fromDom(Se.endContainer),Se.endOffset,Nt.fromDom(Se.startContainer),Se.startOffset)).getOrThunk(()=>H4(l,hm.ltr,W)):H4(l,hm.ltr,W)},SC=(l,N)=>{const W=$M(l,N);return b2(l,W)},x2=(l,N)=>SC(l,N).match({ltr:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(fe.dom,Se),ft.setEnd(Be.dom,qe),ft},rtl:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(fe.dom,Se),ft}});hm.ltr,hm.rtl;const _2=(l,N,W)=>me(go(l,W),N),Yd=(l,N)=>co(N,l),d3=(l,N,W,fe)=>{const Be=Mo(l).dom.createRange();return Be.setStart(l.dom,N),Be.setEnd(W.dom,fe),Be},xw=(l,N,W,fe)=>{const Se=d3(l,N,W,fe),Be=_o(l,W)&&N===fe;return Se.collapsed&&!Be},h3=l=>I.from(l.getSelection()),kC=l=>{if(l.rangeCount>0){const N=l.getRangeAt(0),W=l.getRangeAt(l.rangeCount-1);return I.some(vw.create(Nt.fromDom(N.startContainer),N.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}else return I.none()},Z4=l=>{if(l.anchorNode===null||l.focusNode===null)return kC(l);{const N=Nt.fromDom(l.anchorNode),W=Nt.fromDom(l.focusNode);return xw(N,l.anchorOffset,W,l.focusOffset)?I.some(vw.create(N,l.anchorOffset,W,l.focusOffset)):kC(l)}},p3=l=>h3(l).filter(N=>N.rangeCount>0).bind(Z4),Ef=(l,N)=>{const W=x2(l,N);return f3(W)},m3=(l,N)=>{const W=x2(l,N);return My(W)},TC=((l,N)=>{const W=Be=>{if(!l(Be))throw new Error("Can only get "+N+" value of a "+N+" node");return fe(Be).getOr("")},fe=Be=>l(Be)?I.from(Be.dom.nodeValue):I.none();return{get:W,getOption:fe,set:(Be,qe)=>{if(!l(Be))throw new Error("Can only set raw "+N+" value of a "+N+" node");Be.dom.nodeValue=qe}}})(zr,"text"),q4=l=>TC.get(l),Sv=(l,N)=>({element:l,offset:N}),_w=(l,N)=>{const W=Do(l);if(W.length===0)return Sv(l,N);if(Nzr(l)?Sv(l,N):_w(l,N),g3=l=>l.foffset!==void 0,v3=(l,N)=>N.getSelection.getOrThunk(()=>()=>p3(l))().map(fe=>{if(g3(fe)){const Se=w2(fe.start,fe.soffset),Be=w2(fe.finish,fe.foffset);return Cy.range(Se.element,Se.offset,Be.element,Be.offset)}else return fe}),Ey=(l,N,W)=>{const fe=ar(N.root).dom,Se=gw(l,W,N),Be=v3(fe,N).bind(yt=>{if(g3(yt))return m3(fe,Cy.exactFromRange(yt)).orThunk(()=>{const Ht=Nt.fromText(mC);af(yt.start,Ht);const fn=Ef(fe,Cy.exact(Ht,0,Ht,1));return gs(Ht),fn}).bind(Ht=>y1(Ht.left,Ht.top,Ht.width,Ht.height));{const Lt=Ue(yt,fn=>fn.dom.getBoundingClientRect()),Ht={left:Math.min(Lt.firstCell.left,Lt.lastCell.left),right:Math.max(Lt.firstCell.right,Lt.lastCell.right),top:Math.min(Lt.firstCell.top,Lt.lastCell.top),bottom:Math.max(Lt.firstCell.bottom,Lt.lastCell.bottom)};return y1(Ht.left,Ht.top,Ht.right-Ht.left,Ht.bottom-Ht.top)}}),ft=v3(fe,N).bind(yt=>g3(yt)?lr(yt.start)?I.some(yt.start):Zr(yt.start):I.some(yt.firstCell)).getOr(l.element);return g2(Be,Se,N,W,ft)};var VM=[Yo("getSelection"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",Ey)];const Vp="link-layout",k0=l=>l.x+l.width,W4=(l,N)=>l.x-N.width,CC=(l,N)=>l.y-N.height+l.height,AC=l=>l.y,Y4=(l,N,W)=>xl(k0(l),AC(l),W.southeast(),Us(),"southeast",mc(l,{left:0,top:2}),Vp),X4=(l,N,W)=>xl(W4(l,N),AC(l),W.southwest(),_l(),"southwest",mc(l,{right:1,top:2}),Vp),MC=(l,N,W)=>xl(k0(l),CC(l,N),W.northeast(),fu(),"northeast",mc(l,{left:0,bottom:3}),Vp),EC=(l,N,W)=>xl(W4(l,N),CC(l,N),W.northwest(),ni(),"northwest",mc(l,{right:1,bottom:3}),Vp),Op=()=>[Y4,X4,MC,EC],Ub=()=>[X4,Y4,EC,MC],G4=(l,N,W)=>{const fe=Zm(W,N.item.element),Se=ky(l.element,N,Op(),Ub(),Op(),Ub(),I.none());return I.some(u2({anchorBox:fe,bubble:zb(),overrides:N.overrides,layouts:Se}))};var Py=[pn("item"),dm(),Ar("overrides",{}),Sl("placement",G4)],Sp=bn("type",{selection:VM,node:zM,hotspot:a3,submenu:Py,makeshift:s3});const Up=[Go("classes",ne),rl("mode","all",["all","layout","placement"])],ph=[Ar("useFixed",D),Yo("getBounds")],Ym=[In("anchor",Sp),Ai("transition",Up)],y3=()=>{const l=document.documentElement;return hu(0,0,l.clientWidth,l.clientHeight)},Xm=l=>{const N=Tc(l.element),W=l.element.dom.getBoundingClientRect();return O0(N.left,N.top,W.width,W.height)},jb=(l,N,W,fe,Se,Be)=>{const qe=$4(N.anchorBox,l);return Wm(qe,fe.element,N.bubble,N.layouts,Se,W,N.overrides,Be)},UM=(l,N,W,fe,Se)=>{const Be=I.none();K4(l,N,W,fe,Se,Be)},K4=(l,N,W,fe,Se,Be)=>{const qe=Xt("placement.info",Si(Ym),Se),ft=qe.anchor,yt=fe.element,Lt=W.get(fe.uid);w0(()=>{xr(yt,"position","fixed");const Ht=Ia(yt,"visibility");xr(yt,"visibility","hidden");const fn=N.useFixed()?y3():Xm(l);ft.placement(l,ft,fn).each(Rn=>{const Bn=Be.orThunk(()=>N.getBounds.map(L)),er=jb(fn,Rn,Bn,fe,Lt,qe.transition);W.set(fe.uid,er)}),Ht.fold(()=>{zi(yt,"visibility")},Rn=>{xr(yt,"visibility",Rn)}),Ia(yt,"left").isNone()&&Ia(yt,"top").isNone()&&Ia(yt,"right").isNone()&&Ia(yt,"bottom").isNone()&&St(Ia(yt,"position"),"fixed")&&zi(yt,"position")},yt)};var PC=Object.freeze({__proto__:null,position:UM,positionWithinBounds:K4,getMode:(l,N,W)=>N.useFixed()?"fixed":"absolute",reset:(l,N,W,fe)=>{const Se=fe.element;q(["position","left","right","top","bottom"],Be=>zi(Se,Be)),o2(Se),W.clear(fe.uid)}}),x3=Object.freeze({__proto__:null,init:()=>{let l={};return Hd({readState:()=>l,clear:Se=>{a(Se)?delete l[Se]:l={}},set:(Se,Be)=>{l[Se]=Be},get:Se=>Ge(l,Se)})}});const Ph=id({fields:ph,name:"positioning",active:_y,apis:PC,state:x3}),O2=l=>l.getSystem().isConnected(),S2=l=>{Za(l,zp());const N=l.components();q(N,S2)},ww=l=>{const N=l.components();q(N,ww),Za(l,Oh())},J4=(l,N)=>{l.getSystem().addToWorld(N),Gn(l.element)&&ww(N)},Ow=l=>{S2(l),l.getSystem().removeFromWorld(l)},Sw=(l,N)=>{Bc(l.element,N.element)},Qb=l=>{q(l.components(),N=>gs(N.element)),vc(l.element),l.syncComponents()},ek=(l,N,W)=>{const fe=l.components();Qb(l);const Se=W(N),Be=Te(fe,Se);q(Be,qe=>{S2(qe),l.getSystem().removeFromWorld(qe)}),q(Se,qe=>{O2(qe)?Sw(l,qe):(l.getSystem().addToWorld(qe),Sw(l,qe),Gn(l.element)&&ww(qe))}),l.syncComponents()},_3=(l,N,W)=>{const fe=l.components(),Se=ve(N,ft=>df(ft).toArray());q(fe,ft=>{X(Se,ft)||Ow(ft)});const Be=W(N),qe=Te(fe,Be);q(qe,ft=>{O2(ft)&&Ow(ft)}),q(Be,ft=>{O2(ft)||J4(l,ft)}),l.syncComponents()},Eg=(l,N)=>{RC(l,N,Bc)},RC=(l,N,W)=>{l.getSystem().addToWorld(N),W(l.element,N.element),Gn(l.element)&&ww(N),l.syncComponents()},LC=l=>{S2(l),gs(l.element),l.getSystem().removeFromWorld(l)},kv=l=>{const N=Dr(l.element).bind(W=>l.getSystem().getByDom(W).toOptional());LC(l),N.each(W=>{W.syncComponents()})},pm=l=>{const N=l.components();q(N,LC),vc(l.element),l.syncComponents()},kw=(l,N)=>{Ry(l,N,Bc)},Hb=(l,N)=>{Ry(l,N,td)},Ry=(l,N,W)=>{W(l,N.element);const fe=Do(N.element);q(fe,Se=>{N.getByDom(Se).each(ww)})},tk=l=>{const N=Do(l.element);q(N,W=>{l.getByDom(W).each(S2)}),gs(l.element)},w3=(l,N,W,fe)=>{W.get().each(qe=>{pm(l)});const Se=N.getAttachPoint(l);Eg(Se,l);const Be=l.getSystem().build(fe);return Eg(l,Be),W.set(Be),Be},IC=(l,N,W,fe)=>{const Se=w3(l,N,W,fe);return N.onOpen(l,Se),Se},HM=(l,N,W,fe)=>W.get().map(()=>w3(l,N,W,fe)),ZM=(l,N,W,fe,Se)=>{rk(l,N),IC(l,N,W,fe),Se(),S3(l,N)},Zb=(l,N,W)=>{W.get().each(fe=>{pm(l),kv(l),N.onClose(l,fe),W.clear()})},nk=(l,N,W)=>W.isOpen(),k2=(l,N,W,fe)=>nk(l,N,W)&&W.get().exists(Se=>N.isPartOf(l,Se,fe)),Tw=(l,N,W)=>W.get(),qM=(l,N,W,fe)=>{Ia(l.element,N).fold(()=>{Qt(l.element,W)},Se=>{Cr(l.element,W,Se)}),xr(l.element,N,fe)},O3=(l,N,W)=>{Eo(l.element,W).fold(()=>zi(l.element,N),fe=>xr(l.element,N,fe))},rk=(l,N,W)=>{const fe=N.getAttachPoint(l);xr(l.element,"position",Ph.getMode(fe)),qM(l,"visibility",N.cloakVisibilityAttr,"hidden")},ok=l=>te(["top","left","right","bottom"],N=>Ia(l,N).isSome()),S3=(l,N,W)=>{ok(l.element)||zi(l.element,"position"),O3(l,"visibility",N.cloakVisibilityAttr)};var ik=Object.freeze({__proto__:null,cloak:rk,decloak:S3,open:IC,openWhileCloaked:ZM,close:Zb,isOpen:nk,isPartOf:k2,getState:Tw,setContent:HM}),k3=Object.freeze({__proto__:null,events:(l,N)=>Rl([Lo(Z1(),(W,fe)=>{Zb(W,l,N)})])}),T3=[Ss("onOpen"),Ss("onClose"),pn("isPartOf"),pn("getAttachPoint"),Ar("cloakVisibilityAttr","data-precloak-visibility")],A3=Object.freeze({__proto__:null,init:()=>{const l=ds(),N=x("not-implemented");return Hd({readState:N,isOpen:l.isSet,clear:l.clear,set:l.set,get:l.get})}});const Ys=id({fields:T3,name:"sandboxing",active:k3,apis:ik,state:A3}),_1=x("dismiss.popups"),qb=x("reposition.popups"),M3=x("mouse.released"),E3=Os([Ar("isExtraPart",D),Ai("fireEventInstead",[Ar("event",J0())])]),Ly=l=>{const N=Xt("Dismissal",E3,l);return{[_1()]:{schema:Os([pn("target")]),onReceive:(W,fe)=>{Ys.isOpen(W)&&(Ys.isPartOf(W,fe.target)||N.isExtraPart(W,fe.target)||N.fireEventInstead.fold(()=>Ys.close(W),Be=>Za(W,Be.event)))}}}},P3=Os([Ai("fireEventInstead",[Ar("event",F_())]),po("doReposition")]),ak=l=>{const N=Xt("Reposition",P3,l);return{[qb()]:{onReceive:W=>{Ys.isOpen(W)&&N.fireEventInstead.fold(()=>N.doReposition(W),fe=>Za(W,fe.event))}}}},sk=(l,N,W)=>{N.store.manager.onLoad(l,N,W)},lk=(l,N,W)=>{N.store.manager.onUnload(l,N,W)};var Cw=Object.freeze({__proto__:null,onLoad:sk,onUnload:lk,setValue:(l,N,W,fe)=>{N.store.manager.setValue(l,N,W,fe)},getValue:(l,N,W)=>N.store.manager.getValue(l,N,W),getState:(l,N,W)=>W}),R3=Object.freeze({__proto__:null,events:(l,N)=>{const W=l.resetOnDom?[wc((fe,Se)=>{sk(fe,l,N)}),xg((fe,Se)=>{lk(fe,l,N)})]:[Q_(l,N,sk)];return Rl(W)}});const L3=()=>{const l=wi(null),N=()=>({mode:"memory",value:l.get()}),W=()=>l.get()===null,fe=()=>{l.set(null)};return Hd({set:l.set,get:l.get,isNotSet:W,clear:fe,readState:N})},uk=()=>Hd({readState:v}),BC=()=>{const l=wi({}),N=wi({});return Hd({readState:()=>({mode:"dataset",dataByValue:l.get(),dataByText:N.get()}),lookup:qe=>Ge(l.get(),qe).orThunk(()=>Ge(N.get(),qe)),update:qe=>{const ft=l.get(),yt=N.get(),Lt={},Ht={};q(qe,fn=>{Lt[fn.value]=fn,Ge(fn,"meta").each(Rn=>{Ge(Rn,"text").each(Bn=>{Ht[Bn]=fn})})}),l.set({...ft,...Lt}),N.set({...yt,...Ht})},clear:()=>{l.set({}),N.set({})}})};var I3=Object.freeze({__proto__:null,memory:L3,dataset:BC,manual:uk,init:l=>l.store.manager.state(l)});const zC=(l,N,W,fe)=>{const Se=N.store;W.update([fe]),Se.setValue(l,fe),N.onSetValue(l,fe)},Gm=(l,N,W)=>{const fe=N.store,Se=fe.getDataKey(l);return W.lookup(Se).getOrThunk(()=>fe.getFallbackEntry(Se))},Ed=(l,N,W)=>{N.store.initialValue.each(Se=>{zC(l,N,W,Se)})},Av=(l,N,W)=>{W.clear()};var fk=[Yo("initialValue"),pn("getFallbackEntry"),pn("getDataKey"),pn("setValue"),Sl("manager",{setValue:zC,getValue:Gm,onLoad:Ed,onUnload:Av,state:BC})];const WM=(l,N,W)=>N.store.getValue(l),D3=(l,N,W,fe)=>{N.store.setValue(l,fe),N.onSetValue(l,fe)},dk=(l,N,W)=>{N.store.initialValue.each(fe=>{N.store.setValue(l,fe)})};var C2=[pn("getValue"),Ar("setValue",v),Yo("initialValue"),Sl("manager",{setValue:D3,getValue:WM,onLoad:dk,onUnload:v,state:uh.init})];const NC=(l,N,W,fe)=>{W.set(fe),N.onSetValue(l,fe)},YM=(l,N,W)=>W.get(),AD=(l,N,W)=>{N.store.initialValue.each(fe=>{W.isNotSet()&&W.set(fe)})},XM=(l,N,W)=>{W.clear()};var FC=[Yo("initialValue"),Sl("manager",{setValue:NC,getValue:YM,onLoad:AD,onUnload:XM,state:L3})],$C=[ns("store",{mode:"memory"},bn("mode",{memory:FC,manual:C2,dataset:fk})),Ss("onSetValue"),Ar("resetOnDom",!1)];const Ei=id({fields:$C,name:"representing",active:R3,apis:Cw,extra:{setValueFrom:(l,N)=>{const W=Ei.getValue(N);Ei.setValue(l,W)}},state:I3}),Pd=(l,N)=>Tt(l,{},re(N,W=>Wo(W.name(),"Cannot configure "+W.name()+" for "+l)).concat([gn("dump",R)])),Aw=l=>l.dump,Rd=(l,N)=>({...ei(N),...l.dump}),Km={field:Pd,augment:Rd,get:Aw},hk="placeholder",Yb=Nn.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Mw=l=>ht(l,"uiType"),Xb=(l,N,W,fe)=>l.exists(Se=>Se!==W.owner)?Yb.single(!0,x(W)):Ge(fe,W.name).fold(()=>{throw new Error("Unknown placeholder component: "+W.name+` +The behaviours that can trigger it are: `+JSON.stringify(re(N,W=>W.name),null,2)]),yy=(l,N,W)=>{const fe=N[W];return fe?e3("Event: "+W,"name",l,fe).map(Se=>{const Be=re(Se,qe=>qe.handler);return Vh(Be)}):Zd(W,l)},m0=(l,N)=>{const W=je(l,(fe,Se)=>(fe.length===1?aa.value(fe[0].handler):yy(fe,N,Se)).map(qe=>{const ft=e2(qe),yt=fe.length>1?me(N[Se],Lt=>te(fe,Ht=>Ht.name===Lt)).join(" > "):fe[0].name;return Sa(Se,lm(ft,yt))}));return Jc(W,{})},g0="alloy.base.behaviour",v0=Si([Ln("dom","dom",su(),Si([pn("tag"),Ar("styles",{}),Ar("classes",[]),Ar("attributes",{}),Yo("value"),Yo("innerHtml")])),pn("components"),pn("uid"),Ar("events",{}),Ar("apis",{}),Ln("eventOrder","eventOrder",wt({[Bp()]:["disabling",g0,"toggling","typeaheadevents"],[Oh()]:[g0,"focusing","keying"],[K0()]:[g0,"disabling","toggling","representing","tooltipping"],[vg()]:[g0,"representing","streaming","invalidating"],[zp()]:[g0,"representing","item-events","toolbar-button-events","tooltipping"],[Nc()]:["focusing",g0,"item-type-events"],[Uh()]:["focusing",g0,"item-type-events"],[wu()]:["item-type-events","tooltipping"],[yp()]:["receiving","reflecting","tooltipping"]}),Ut()),Yo("domModification")]),y0=l=>Rt("custom.definition",v0,l),Tf=l=>({...l.dom,uid:l.uid,domChildren:re(l.components,N=>N.element)}),vo=l=>l.domModification.fold(()=>np({}),np),Ab=l=>l.events,F=l=>l.dom.value,G=(l,N)=>{if(N===void 0)throw new Error("Value.set was undefined");l.dom.value=N},ue=(l,N,W)=>jn(l,N).map(Se=>{if(W.exists(qe=>!_o(qe,Se))){const qe=W.map(vr).getOr("span"),ft=Nt.fromTag(qe);return af(Se,ft),ft}else return Se}),Ae=(l,N,W)=>{W.fold(()=>Bc(l,N),fe=>{_o(fe,N)||(af(fe,N),gs(fe))})},He=(l,N,W)=>{const fe=re(N,W),Se=Do(l);return q(Se.slice(fe.length),gs),fe},nt=(l,N,W,fe)=>{const Se=jn(l,N),Be=fe(W,Se),qe=ue(l,N,Se);return Ae(l,Be.element,qe),Be},ct=(l,N,W)=>He(l,N,(fe,Se)=>nt(l,Se,fe,W)),Pt=(l,N)=>He(l,N,(W,fe)=>{const Se=jn(l,fe);return Ae(l,W,Se),W}),jt=(l,N)=>{const W=ke(l),fe=ke(N),Se=Te(fe,W),Be=Me(l,(qe,ft)=>!ht(N,ft)||qe!==N[ft]).t;return{toRemove:Se,toSet:Be}},hn=(l,N)=>{const{class:W,style:fe,...Se}=Mn(N),{toSet:Be,toRemove:qe}=jt(l.attributes,Se),ft=()=>{q(qe,jr=>Qt(N,jr)),wo(N,Be)},yt=Ds(N),{toSet:Lt,toRemove:Ht}=jt(l.styles,yt),fn=()=>{q(Ht,jr=>zi(N,jr)),Oo(N,Lt)},Rn=qc(N),Bn=Te(Rn,l.classes),er=Te(l.classes,Rn),cr=()=>{Og(N,er),Oc(N,Bn)},Xr=jr=>{d0(N,jr)},br=()=>{const jr=l.domChildren;Pt(N,jr)},Fr=()=>{const jr=N,Ro=l.value.getOrUndefined();Ro!==F(jr)&&G(jr,Ro??"")};return ft(),cr(),fn(),l.innerHtml.fold(br,Xr),Fr(),N},mn=l=>{const N=Nt.fromTag(l.tag);wo(N,l.attributes),Og(N,l.classes),Oo(N,l.styles),l.innerHtml.each(fe=>d0(N,fe));const W=l.domChildren;return xd(N,W),l.value.each(fe=>{G(N,fe)}),N},Dn=(l,N)=>{try{const W=hn(l,N);return I.some(W)}catch{return I.none()}},Xn=l=>l.innerHtml.isSome()&&l.domChildren.length>0,$n=(l,N)=>{const W=Se=>vr(Se)===l.tag&&!Xn(l)&&!Gx(Se),fe=N.filter(W).bind(Se=>Dn(l,Se)).getOrThunk(()=>mn(l));return ow(fe,l.uid),fe},mr=l=>{const N=Ge(l,"behaviours").getOr({});return ve(ke(N),W=>{const fe=N[W];return a(fe)?[fe.me]:[]})},Or=(l,N)=>uu(l,N),Kr=l=>{const N=mr(l);return Or(l,N)},Hr=(l,N,W)=>{const fe=Tf(l),Se=vo(l),Be={"alloy.base.modification":Se},qe=N.length>0?iw(W,Be,N,fe):Se;return jO(fe,qe)},fo=(l,N,W)=>{const fe={"alloy.base.behaviour":Ab(l)};return mv(W,l.eventOrder,N,fe).getOrDie()},mo=(l,N)=>{const W=()=>jr,fe=wi(dv),Se=Mt(y0(l)),Be=Kr(l),qe=Cb(Be),ft=Kx(Be),yt=Hr(Se,qe,ft),Lt=$n(yt,N),Ht=fo(Se,qe,ft),fn=wi(Se.components),Rn=Ro=>{fe.set(Ro)},Bn=()=>{fe.set(fv(W))},er=()=>{const Ro=Do(Lt),ko=ve(Ro,_i=>fe.get().getByDom(_i).fold(()=>[],Ie));fn.set(ko)},cr=Ro=>{const ko=ft;return(c(ko[Ro.name()])?ko[Ro.name()]:()=>{throw new Error("Could not find "+Ro.name()+" in "+JSON.stringify(l,null,2))})()},Xr=Ro=>c(ft[Ro.name()]),br=()=>Se.apis,Fr=Ro=>ft[Ro]().map(ko=>ko.state.readState()).getOr("not enabled"),jr={uid:l.uid,getSystem:fe.get,config:cr,hasConfigured:Xr,spec:l,readState:Fr,getApis:br,connect:Rn,disconnect:Bn,element:Lt,syncComponents:er,components:fn.get,events:Ht};return jr},Io=(l,N)=>{const W=Ge(l,"components").getOr([]);return N.fold(()=>re(W,ka),fe=>re(W,(Se,Be)=>ra(Se,jn(fe,Be))))},Qo=(l,N)=>{const{events:W,...fe}=c1(l),Se=Io(fe,N),Be={...fe,events:{...dc,...W},components:Se};return aa.value(mo(Be,N))},Po=l=>{const N=Nt.fromText(l);return Ii({element:N})},Ii=l=>{const N=Xt("external.component",Os([pn("element"),Yo("uid")]),l),W=wi(fv()),fe=ft=>{W.set(ft)},Se=()=>{W.set(fv(()=>qe))},Be=N.uid.getOrThunk(()=>vy("external"));ow(N.element,Be);const qe={uid:Be,getSystem:W.get,config:I.none,hasConfigured:D,connect:fe,disconnect:Se,getApis:()=>({}),element:N.element,spec:l,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return hv(qe)},bi=vy,Zi=l=>ht(l,"uid"),ra=(l,N)=>df(l).getOrThunk(()=>{const W=Zi(l)?l:{uid:bi(""),...l};return Qo(W,N).getOrDie()}),ka=l=>ra(l,I.none()),ea=hv;var as=(l,N,W,fe,Se)=>l(W,fe)?I.some(W):c(Se)&&Se(W)?I.none():N(W,fe,Se);const Da=(l,N,W)=>{let fe=l.dom;const Se=c(W)?W:D;for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe);if(N(Be))return I.some(Be);if(Se(Be))break}return I.none()},ba=(l,N,W)=>as((Se,Be)=>Be(Se),Da,l,N,W),fl=(l,N)=>{const W=l.dom;return W.parentNode?As(Nt.fromDom(W.parentNode),fe=>!_o(l,fe)&&N(fe)):I.none()},As=(l,N)=>{const W=Se=>N(Nt.fromDom(Se));return ce(l.dom.childNodes,W).map(Nt.fromDom)},hc=(l,N)=>{const W=fe=>{for(let Se=0;Seba(l,N,W).isSome(),Vs=l=>Fo(l),Fl=(l,N,W)=>Da(l,fe=>Yr(fe,N),W),kl=(l,N)=>fl(l,W=>Yr(W,N)),Fc=(l,N)=>As(l,W=>Yr(W,N)),qa=(l,N)=>Fo(N,l),Sc=(l,N,W)=>as((Se,Be)=>Yr(Se,Be),Fl,l,N,W),pc="aria-controls",sd=l=>ba(l,W=>{if(!lr(W))return!1;const fe=Nr(W,"id");return fe!==void 0&&fe.indexOf(pc)>-1}).bind(W=>{const fe=Nr(W,"id"),Se=kr(W);return qa(Se,`[${pc}="${fe}"]`)}),ld=()=>{const l=Li(pc);return{id:l,link:fe=>{Cr(fe,pc,l)},unlink:fe=>{Qt(fe,pc)}}},cd=(l,N)=>sd(N).exists(W=>Cf(l,W)),Cf=(l,N)=>os(N,W=>_o(W,l.element),D)||cd(l,N),xl=(l,N,W,fe,Se,Be,qe,ft=!1)=>({x:l,y:N,bubble:W,direction:fe,placement:Se,restriction:Be,label:`${qe}-${Se}`,alwaysFit:ft}),eu=Nn.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Td=(l,N,W,fe,Se,Be,qe,ft,yt)=>l.fold(N,W,fe,Se,Be,qe,ft,yt),Af=(l,N,W,fe)=>l.fold(N,N,fe,fe,N,fe,W,W),jf=(l,N,W,fe)=>l.fold(N,fe,N,fe,W,W,N,fe),Us=eu.southeast,_l=eu.southwest,fu=eu.northeast,ni=eu.northwest,Wc=eu.south,Yc=eu.north,$l=eu.east,Ru=eu.west,Eh=(l,N)=>{switch(N){case 1:return l.x;case 0:return l.x+l.width;case 2:return l.y;case 3:return l.y+l.height}},mc=(l,N)=>Pe(["left","right","top","bottom"],W=>Ge(N,W).map(fe=>Eh(l,fe))),dh=(l,N,W)=>{const fe=(yt,Lt)=>N[yt].map(Ht=>{const fn=yt==="top"||yt==="bottom",Rn=fn?W.top:W.left,er=(yt==="left"||yt==="top"?Math.max:Math.min)(Ht,Lt)+Rn;return fn?Mh(er,l.y,l.bottom):Mh(er,l.x,l.right)}).getOr(Lt),Se=fe("left",l.x),Be=fe("top",l.y),qe=fe("right",l.right),ft=fe("bottom",l.bottom);return vs(Se,Be,qe-Se,ft-Be)},hh="layout",Qm=l=>l.x,Qf=(l,N)=>l.x+l.width/2-N.width/2,tu=(l,N)=>l.x+l.width-N.width,qd=(l,N)=>l.y-N.height,Cd=l=>l.y+l.height,d1=(l,N)=>l.y+l.height/2-N.height/2,t2=l=>l.x+l.width,gv=(l,N)=>l.x-N.width,Lu=(l,N,W)=>xl(Qm(l),Cd(l),W.southeast(),Us(),"southeast",mc(l,{left:1,top:3}),hh),$c=(l,N,W)=>xl(tu(l,N),Cd(l),W.southwest(),_l(),"southwest",mc(l,{right:0,top:3}),hh),dl=(l,N,W)=>xl(Qm(l),qd(l,N),W.northeast(),fu(),"northeast",mc(l,{left:1,bottom:2}),hh),Mf=(l,N,W)=>xl(tu(l,N),qd(l,N),W.northwest(),ni(),"northwest",mc(l,{right:0,bottom:2}),hh),du=(l,N,W)=>xl(Qf(l,N),qd(l,N),W.north(),Yc(),"north",mc(l,{bottom:2}),hh),Iu=(l,N,W)=>xl(Qf(l,N),Cd(l),W.south(),Wc(),"south",mc(l,{top:3}),hh),vv=(l,N,W)=>xl(t2(l),d1(l,N),W.east(),$l(),"east",mc(l,{left:0}),hh),h1=(l,N,W)=>xl(gv(l,N),d1(l,N),W.west(),Ru(),"west",mc(l,{right:1}),hh),n2=()=>[Lu,$c,dl,Mf,Iu,du,vv,h1],by=()=>[$c,Lu,Mf,dl,Iu,du,vv,h1],p1=()=>[dl,Mf,Lu,$c,du,Iu],b0=()=>[Mf,dl,$c,Lu,du,Iu],Hm=()=>[Lu,$c,dl,Mf,Iu,du],yv=()=>[$c,Lu,Mf,dl,Iu,du],xy=(l,N)=>N.universal?l:me(l,W=>X(N.channels,W));var r2=Object.freeze({__proto__:null,events:l=>Rl([Lo(yp(),(N,W)=>{const fe=l.channels,Se=ke(fe),Be=W,qe=xy(Se,Be);q(qe,ft=>{const yt=fe[ft],Lt=yt.schema,Ht=Xt("channel["+ft+`] data +Receiver: `+a1(N.element),Lt,Be.data);yt.onReceive(N,Ht)})})])}),Mb=[In("channels",dt(aa.value,Os([Ah("onReceive"),Ar("schema",Ut())])))];const Ad=id({fields:Mb,name:"receiving",active:r2});var wy=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:[],styles:N.useFixed()?{}:{position:"relative"}})});const Md=(l,N=!1)=>l.dom.focus({preventScroll:N}),m1=l=>l.dom.blur(),_0=l=>{const N=kr(l).dom;return l.dom===N.activeElement},um=(l=Ac())=>I.from(l.dom.activeElement).map(Nt.fromDom),Wd=l=>um(kr(l)).filter(N=>l.dom.contains(N.dom)),w0=(l,N)=>{const W=kr(N),fe=um(W).bind(Be=>{const qe=ft=>_o(Be,ft);return qe(N)?I.some(N):hc(N,qe)}),Se=l(N);return fe.each(Be=>{um(W).filter(qe=>_o(qe,Be)).fold(()=>{Md(Be)},v)}),Se},Eb=Nn.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Oy=(l,N,W,fe,Se,Be)=>{const qe=N.rect,ft=qe.x-W,yt=qe.y-fe,Lt=qe.width,Ht=qe.height,fn=Se-(ft+Lt),Rn=Be-(yt+Ht),Bn=I.some(ft),er=I.some(yt),cr=I.some(fn),Xr=I.some(Rn),br=I.none();return Td(N.direction,()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,br,br,cr,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br))},aw=(l,N)=>l.fold(()=>{const W=N.rect;return ff("absolute",I.some(W.x),I.some(W.y),I.none(),I.none())},(W,fe,Se,Be)=>Oy("absolute",N,W,fe,Se,Be),(W,fe,Se,Be)=>Oy("fixed",N,W,fe,Se,Be)),Zm=(l,N)=>{const W=T(Au,N),fe=l.fold(W,W,()=>{const qe=yc();return Au(N).translate(-qe.left,-qe.top)}),Se=ma(N),Be=nf(N);return vs(fe.left,fe.top,Se,Be)},sw=(l,N)=>N.fold(()=>l.fold(ts,ts,vs),W=>l.fold(x(W),x(W),()=>{const fe=Pb(l,W.x,W.y);return vs(fe.left,fe.top,W.width,W.height)})),Pb=(l,N,W)=>{const fe=Qs(N,W),Se=()=>{const Be=yc();return fe.translate(-Be.left,-Be.top)};return l.fold(x(fe),x(fe),Se)},t3=(l,N,W,fe)=>l.fold(N,W,fe);Eb.none;const O0=Eb.relative,hu=Eb.fixed,ip=(l,N)=>({anchorBox:l,origin:N}),$4=(l,N)=>ip(l,N),qm="data-alloy-placement",lw=(l,N)=>{Cr(l,qm,N)},cw=l=>Eo(l,qm),o2=l=>Qt(l,qm),$p=Nn.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Rb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,right:yt,bottom:Lt,width:Ht,height:fn}=l,Rn=qe>=W&&qe<=Se,Bn=ft>=fe&&ft<=Be,er=Rn&&Bn,cr=yt<=Se&&yt>=W,Xr=Lt<=Be&&Lt>=fe,br=cr&&Xr,Fr=Math.min(Ht,qe>=W?Se-qe:yt-W),jr=Math.min(fn,ft>=fe?Be-ft:Lt-fe);return{originInBounds:er,sizeInBounds:br,visibleW:Fr,visibleH:jr}},Lb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,width:yt,height:Lt}=l,Ht=Math.max(W,Se-yt),fn=Math.max(fe,Be-Lt),Rn=Mh(qe,W,Ht),Bn=Mh(ft,fe,fn),er=Math.min(Rn+yt,Se)-Rn,cr=Math.min(Bn+Lt,Be)-Bn;return vs(Rn,Bn,er,cr)},Sy=(l,N,W)=>{const fe=x(N.bottom-W.y),Se=x(W.bottom-N.y),Be=Af(l,Se,Se,fe),qe=x(N.right-W.x),ft=x(W.right-N.x);return{maxWidth:jf(l,ft,ft,qe),maxHeight:Be}},bv=(l,N,W,fe)=>{const Se=l.bubble,Be=Se.offset,qe=dh(fe,l.restriction,Be),ft=l.x+Be.left,yt=l.y+Be.top,Lt=vs(ft,yt,N,W),{originInBounds:Ht,sizeInBounds:fn,visibleW:Rn,visibleH:Bn}=Rb(Lt,qe),er=Ht&&fn,cr=er?Lt:Lb(Lt,qe),Xr=cr.width>0&&cr.height>0,{maxWidth:br,maxHeight:Fr}=Sy(l.direction,cr,fe),jr={rect:cr,maxHeight:Fr,maxWidth:br,direction:l.direction,placement:l.placement,classes:{on:Se.classesOn,off:Se.classesOff},layout:l.label,testY:yt};return er||l.alwaysFit?$p.fit(jr):$p.nofit(jr,Rn,Bn,Xr)},uw=(l,N,W,fe,Se,Be)=>{const qe=fe.width,ft=fe.height,yt=(Ht,fn,Rn,Bn,er)=>{const cr=Ht(W,fe,Se,l,Be),Xr=bv(cr,qe,ft,Be);return Xr.fold(x(Xr),(br,Fr,jr,Ro)=>(er===Ro?jr>Bn||Fr>Rn:!er&&Ro)?Xr:$p.nofit(fn,Rn,Bn,er))};return se(N,(Ht,fn)=>{const Rn=T(yt,fn);return Ht.fold(x(Ht),Rn)},$p.nofit({rect:W,maxHeight:fe.height,maxWidth:fe.width,direction:Us(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:W.y},-1,-1,!1)).fold(R,R)},fw=k,ud=(l,N,W)=>yu(l,N,fw,W),i2=(l,N,W)=>jc(l,N,fw,W),a2=_f,s2=["top","bottom","right","left"],Ib="data-alloy-transition-timer",n3=(l,N)=>YO(l,N.classes),Ph=(l,N,W)=>W.exists(fe=>{const Se=l.mode;return Se==="all"?!0:fe[Se]!==N[Se]}),Db=(l,N)=>{const W=fe=>parseFloat(fe).toFixed(3);return tt(N,(fe,Se)=>{const Be=l[Se].map(W),qe=fe.map(W);return!Ft(Be,qe)}).isSome()},l2=l=>{const N=Be=>{const ft=Di(l,Be).split(/\s*,\s*/);return me(ft,it)},W=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return bt(Be,"ms")?qe:qe*1e3}else return 0},fe=N("transition-delay"),Se=N("transition-duration");return se(Se,(Be,qe,ft)=>{const yt=W(fe[ft])+W(qe);return Math.max(Be,yt)},0)},fm=(l,N)=>{const W=Ol(),fe=Ol();let Se;const Be=Lt=>{var Ht;const fn=(Ht=Lt.raw.pseudoElement)!==null&&Ht!==void 0?Ht:"";return _o(Lt.target,l)&&at(fn)&&X(s2,Lt.raw.propertyName)},qe=Lt=>{if(m(Lt)||Be(Lt)){W.clear(),fe.clear();const Ht=Lt==null?void 0:Lt.raw.type;(m(Ht)||Ht===rm())&&(clearTimeout(Se),Qt(l,Ib),Oc(l,N.classes))}},ft=ud(l,z_(),Lt=>{Be(Lt)&&(ft.unbind(),W.set(ud(l,rm(),qe)),fe.set(ud(l,VO(),qe)))}),yt=l2(l);requestAnimationFrame(()=>{Se=setTimeout(qe,yt+17),Cr(l,Ib,Se)})},r3=(l,N)=>{Og(l,N.classes),Eo(l,Ib).each(W=>{clearTimeout(parseInt(W,10)),Qt(l,Ib)}),fm(l,N)},xv=(l,N,W,fe,Se,Be)=>{const qe=Ph(fe,Se,Be);if(qe||n3(l,fe)){xr(l,"position",W.position);const ft=Zm(N,l),yt=aw(N,{...Se,rect:ft}),Lt=Pe(s2,Ht=>yt[Ht]);Db(W,Lt)&&(mi(l,Lt),qe&&r3(l,fe),yl(l))}else Oc(l,fe.classes)},g1=l=>({width:ma(l),height:nf(l)}),_v=(l,N,W,fe)=>{zi(N,"max-height"),zi(N,"max-width");const Se=g1(N);return uw(N,fe.preference,l,Se,W,fe.bounds)},wv=(l,N)=>{const W=N.classes;Oc(l,W.off),Og(l,W.on)},ky=(l,N,W)=>{const fe=W.maxHeightFunction;fe(l,N.maxHeight)},Ov=(l,N,W)=>{const fe=W.maxWidthFunction;fe(l,N.maxWidth)},dw=(l,N,W)=>{const fe=aw(W.origin,N);W.transition.each(Se=>{xv(l,W.origin,fe,Se,N,W.lastPlacement)}),dy(l,fe)},o3=(l,N)=>{lw(l,N.placement)},Bb=(l,N)=>{nh(l,Math.floor(N))},hw=x((l,N)=>{Bb(l,N),Oo(l,{"overflow-x":"hidden","overflow-y":"auto"})}),v1=x((l,N)=>{Bb(l,N)}),c2=(l,N,W)=>l[N]===void 0?W:l[N],Wm=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=c2(qe,"maxHeightFunction",hw()),Lt=c2(qe,"maxWidthFunction",v),Ht=l.anchorBox,fn=l.origin,Rn={bounds:sw(fn,Be),origin:fn,preference:fe,maxHeightFunction:yt,maxWidthFunction:Lt,lastPlacement:Se,transition:ft};return pw(Ht,N,W,Rn)},pw=(l,N,W,fe)=>{const Se=_v(l,N,W,fe);return dw(N,Se,fe),o3(N,Se),wv(N,Se),ky(N,Se,fe),Ov(N,Se,fe),{layout:Se.layout,placement:Se.placement}},mw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],wp=(l,N,W,fe=1)=>{const Se=l*fe,Be=N*fe,qe=yt=>Ge(W,yt).getOr([]),ft=(yt,Lt,Ht)=>{const fn=Te(mw,Ht);return{offset:Qs(yt,Lt),classesOn:ve(Ht,qe),classesOff:ve(fn,qe)}};return{southeast:()=>ft(-l,N,["top","alignLeft"]),southwest:()=>ft(l,N,["top","alignRight"]),south:()=>ft(-l/2,N,["top","alignCentre"]),northeast:()=>ft(-l,-N,["bottom","alignLeft"]),northwest:()=>ft(l,-N,["bottom","alignRight"]),north:()=>ft(-l/2,-N,["bottom","alignCentre"]),east:()=>ft(l,-N/2,["valignCentre","left"]),west:()=>ft(-l,-N/2,["valignCentre","right"]),insetNortheast:()=>ft(Se,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-Se,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-Se/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(Se,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-Se,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-Se/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-Se,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(Se,-Be/2,["valignCentre","left","inset"])}},zb=()=>wp(0,0,{}),u2=R,Hf=(l,N)=>W=>V4(W)==="rtl"?N:l,V4=l=>Di(l,"direction")==="rtl"?"rtl":"ltr";var ap;(function(l){l.TopToBottom="toptobottom",l.BottomToTop="bottomtotop"})(ap||(ap={}));const Nb="data-alloy-vertical-dir",i3=l=>os(l,N=>lr(N)&&Nr(N,"data-alloy-vertical-dir")===ap.BottomToTop),dm=()=>Ai("layouts",[pn("onLtr"),pn("onRtl"),Yo("onBottomLtr"),Yo("onBottomRtl")]),Ty=(l,N,W,fe,Se,Be,qe)=>{const ft=qe.map(i3).getOr(!1),yt=N.layouts.map(Bn=>Bn.onLtr(l)),Lt=N.layouts.map(Bn=>Bn.onRtl(l)),Ht=ft?N.layouts.bind(Bn=>Bn.onBottomLtr.map(er=>er(l))).or(yt).getOr(Se):yt.getOr(W),fn=ft?N.layouts.bind(Bn=>Bn.onBottomRtl.map(er=>er(l))).or(Lt).getOr(Be):Lt.getOr(fe);return Hf(Ht,fn)(l)},f2=(l,N,W)=>{const fe=N.hotspot,Se=Zm(W,fe.element),Be=Ty(l.element,N,Hm(),yv(),p1(),b0(),I.some(N.hotspot.element));return I.some(u2({anchorBox:Se,bubble:N.bubble.getOr(zb()),overrides:N.overrides,layouts:Be}))};var a3=[pn("hotspot"),Yo("bubble"),Ar("overrides",{}),dm(),Sl("placement",f2)];const d2=(l,N,W)=>{const fe=Pb(W,N.x,N.y),Se=vs(fe.left,fe.top,N.width,N.height),Be=Ty(l.element,N,n2(),by(),n2(),by(),I.none());return I.some(u2({anchorBox:Se,bubble:N.bubble,overrides:N.overrides,layouts:Be}))};var s3=[pn("x"),pn("y"),Ar("height",0),Ar("width",0),Ar("bubble",zb()),Ar("overrides",{}),dm(),Sl("placement",d2)];const h2=Nn.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Fb=l=>l.fold(R,(N,W,fe)=>N.translate(-W,-fe)),l3=l=>l.fold(R,R),c3=l=>se(l,(N,W)=>N.translate(W.left,W.top),Qs(0,0)),U4=l=>{const N=re(l,Fb);return c3(N)},p2=l=>{const N=re(l,l3);return c3(N)},m2=h2.screen,Mg=h2.absolute,S0=(l,N,W)=>{const fe=ar(W.root).dom,Se=Be=>{const qe=Mo(Be),ft=Mo(l.element);return _o(qe,ft)};return I.from(fe.frameElement).map(Nt.fromDom).filter(Se).map(Tc)},gw=(l,N,W)=>{const fe=Mo(l.element),Se=yc(fe),Be=S0(l,N,W).getOr(Se);return Mg(Be,Se.left,Se.top)},y1=(l,N,W,fe)=>{const Se=m2(Qs(l,N));return I.some(lf(Se,W,fe))},g2=(l,N,W,fe,Se)=>l.map(Be=>{const qe=[N,Be.point],ft=t3(fe,()=>p2(qe),()=>p2(qe),()=>U4(qe)),yt=wf(ft.left,ft.top,Be.width,Be.height),Lt=W.showAbove?p1():Hm(),Ht=W.showAbove?b0():yv(),fn=Ty(Se,W,Lt,Ht,Lt,Ht,I.none());return u2({anchorBox:yt,bubble:W.bubble.getOr(zb()),overrides:W.overrides,layouts:fn})}),u3=(l,N,W)=>{const fe=gw(l,W,N);return N.node.filter(Gn).bind(Se=>{const Be=Se.dom.getBoundingClientRect(),qe=y1(Be.left,Be.top,Be.width,Be.height),ft=N.node.getOr(l.element);return g2(qe,fe,N,W,ft)})};var zM=[pn("node"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",u3)];const gC="\uFEFF",$b=" ",vw={create:(l,N,W,fe)=>({start:l,soffset:N,finish:W,foffset:fe})},Cy=Nn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yw=(l,N,W,fe)=>l.fold(N,W,fe),yC=l=>l.fold(R,R,R),bC=Cy.before,AD=Cy.on,NM=Cy.after,v2={before:bC,on:AD,after:NM,cata:yw,getStart:yC},b1=Nn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),FM=l=>b1.exact(l.start,l.soffset,l.finish,l.foffset),j4=l=>l.match({domRange:N=>Nt.fromDom(N.startContainer),relative:(N,W)=>v2.getStart(N),exact:(N,W,fe,Se)=>N}),xC=b1.domRange,_C=b1.relative,wC=b1.exact,Q4=l=>{const N=j4(l);return ar(N)},OC=vw.create,Ay={domRange:xC,relative:_C,exact:wC,exactFromRange:FM,getWin:Q4,range:OC},SC=(l,N)=>{N.fold(W=>{l.setStartBefore(W.dom)},(W,fe)=>{l.setStart(W.dom,fe)},W=>{l.setStartAfter(W.dom)})},Vb=(l,N)=>{N.fold(W=>{l.setEndBefore(W.dom)},(W,fe)=>{l.setEnd(W.dom,fe)},W=>{l.setEndAfter(W.dom)})},My=(l,N,W)=>{const fe=l.document.createRange();return SC(fe,N),Vb(fe,W),fe},bw=(l,N,W,fe,Se)=>{const Be=l.document.createRange();return Be.setStart(N.dom,W),Be.setEnd(fe.dom,Se),Be},y2=l=>({left:l.left,top:l.top,right:l.right,bottom:l.bottom,width:l.width,height:l.height}),f3=l=>{const N=l.getClientRects(),W=N.length>0?N[0]:l.getBoundingClientRect();return W.width>0||W.height>0?I.some(W).map(y2):I.none()},Ey=l=>{const N=l.getBoundingClientRect();return N.width>0||N.height>0?I.some(N).map(y2):I.none()},hm=Nn.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),H4=(l,N,W)=>N(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset),$M=(l,N)=>N.match({domRange:W=>({ltr:x(W),rtl:I.none}),relative:(W,fe)=>({ltr:Uc(()=>My(l,W,fe)),rtl:Uc(()=>I.some(My(l,fe,W)))}),exact:(W,fe,Se,Be)=>({ltr:Uc(()=>bw(l,W,fe,Se,Be)),rtl:Uc(()=>I.some(bw(l,Se,Be,W,fe)))})}),b2=(l,N)=>{const W=N.ltr();return W.collapsed?N.rtl().filter(Se=>Se.collapsed===!1).map(Se=>hm.rtl(Nt.fromDom(Se.endContainer),Se.endOffset,Nt.fromDom(Se.startContainer),Se.startOffset)).getOrThunk(()=>H4(l,hm.ltr,W)):H4(l,hm.ltr,W)},kC=(l,N)=>{const W=$M(l,N);return b2(l,W)},x2=(l,N)=>kC(l,N).match({ltr:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(fe.dom,Se),ft.setEnd(Be.dom,qe),ft},rtl:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(fe.dom,Se),ft}});hm.ltr,hm.rtl;const _2=(l,N,W)=>me(go(l,W),N),Yd=(l,N)=>co(N,l),d3=(l,N,W,fe)=>{const Be=Mo(l).dom.createRange();return Be.setStart(l.dom,N),Be.setEnd(W.dom,fe),Be},xw=(l,N,W,fe)=>{const Se=d3(l,N,W,fe),Be=_o(l,W)&&N===fe;return Se.collapsed&&!Be},h3=l=>I.from(l.getSelection()),TC=l=>{if(l.rangeCount>0){const N=l.getRangeAt(0),W=l.getRangeAt(l.rangeCount-1);return I.some(vw.create(Nt.fromDom(N.startContainer),N.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}else return I.none()},Z4=l=>{if(l.anchorNode===null||l.focusNode===null)return TC(l);{const N=Nt.fromDom(l.anchorNode),W=Nt.fromDom(l.focusNode);return xw(N,l.anchorOffset,W,l.focusOffset)?I.some(vw.create(N,l.anchorOffset,W,l.focusOffset)):TC(l)}},p3=l=>h3(l).filter(N=>N.rangeCount>0).bind(Z4),Ef=(l,N)=>{const W=x2(l,N);return f3(W)},m3=(l,N)=>{const W=x2(l,N);return Ey(W)},CC=((l,N)=>{const W=Be=>{if(!l(Be))throw new Error("Can only get "+N+" value of a "+N+" node");return fe(Be).getOr("")},fe=Be=>l(Be)?I.from(Be.dom.nodeValue):I.none();return{get:W,getOption:fe,set:(Be,qe)=>{if(!l(Be))throw new Error("Can only set raw "+N+" value of a "+N+" node");Be.dom.nodeValue=qe}}})(zr,"text"),q4=l=>CC.get(l),Sv=(l,N)=>({element:l,offset:N}),_w=(l,N)=>{const W=Do(l);if(W.length===0)return Sv(l,N);if(Nzr(l)?Sv(l,N):_w(l,N),g3=l=>l.foffset!==void 0,v3=(l,N)=>N.getSelection.getOrThunk(()=>()=>p3(l))().map(fe=>{if(g3(fe)){const Se=w2(fe.start,fe.soffset),Be=w2(fe.finish,fe.foffset);return Ay.range(Se.element,Se.offset,Be.element,Be.offset)}else return fe}),Py=(l,N,W)=>{const fe=ar(N.root).dom,Se=gw(l,W,N),Be=v3(fe,N).bind(yt=>{if(g3(yt))return m3(fe,Ay.exactFromRange(yt)).orThunk(()=>{const Ht=Nt.fromText(gC);af(yt.start,Ht);const fn=Ef(fe,Ay.exact(Ht,0,Ht,1));return gs(Ht),fn}).bind(Ht=>y1(Ht.left,Ht.top,Ht.width,Ht.height));{const Lt=Ue(yt,fn=>fn.dom.getBoundingClientRect()),Ht={left:Math.min(Lt.firstCell.left,Lt.lastCell.left),right:Math.max(Lt.firstCell.right,Lt.lastCell.right),top:Math.min(Lt.firstCell.top,Lt.lastCell.top),bottom:Math.max(Lt.firstCell.bottom,Lt.lastCell.bottom)};return y1(Ht.left,Ht.top,Ht.right-Ht.left,Ht.bottom-Ht.top)}}),ft=v3(fe,N).bind(yt=>g3(yt)?lr(yt.start)?I.some(yt.start):Zr(yt.start):I.some(yt.firstCell)).getOr(l.element);return g2(Be,Se,N,W,ft)};var VM=[Yo("getSelection"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",Py)];const Vp="link-layout",k0=l=>l.x+l.width,W4=(l,N)=>l.x-N.width,AC=(l,N)=>l.y-N.height+l.height,MC=l=>l.y,Y4=(l,N,W)=>xl(k0(l),MC(l),W.southeast(),Us(),"southeast",mc(l,{left:0,top:2}),Vp),X4=(l,N,W)=>xl(W4(l,N),MC(l),W.southwest(),_l(),"southwest",mc(l,{right:1,top:2}),Vp),EC=(l,N,W)=>xl(k0(l),AC(l,N),W.northeast(),fu(),"northeast",mc(l,{left:0,bottom:3}),Vp),PC=(l,N,W)=>xl(W4(l,N),AC(l,N),W.northwest(),ni(),"northwest",mc(l,{right:1,bottom:3}),Vp),Op=()=>[Y4,X4,EC,PC],Ub=()=>[X4,Y4,PC,EC],G4=(l,N,W)=>{const fe=Zm(W,N.item.element),Se=Ty(l.element,N,Op(),Ub(),Op(),Ub(),I.none());return I.some(u2({anchorBox:fe,bubble:zb(),overrides:N.overrides,layouts:Se}))};var Ry=[pn("item"),dm(),Ar("overrides",{}),Sl("placement",G4)],Sp=bn("type",{selection:VM,node:zM,hotspot:a3,submenu:Ry,makeshift:s3});const Up=[Go("classes",ne),rl("mode","all",["all","layout","placement"])],ph=[Ar("useFixed",D),Yo("getBounds")],Ym=[In("anchor",Sp),Ai("transition",Up)],y3=()=>{const l=document.documentElement;return hu(0,0,l.clientWidth,l.clientHeight)},Xm=l=>{const N=Tc(l.element),W=l.element.dom.getBoundingClientRect();return O0(N.left,N.top,W.width,W.height)},jb=(l,N,W,fe,Se,Be)=>{const qe=$4(N.anchorBox,l);return Wm(qe,fe.element,N.bubble,N.layouts,Se,W,N.overrides,Be)},UM=(l,N,W,fe,Se)=>{const Be=I.none();K4(l,N,W,fe,Se,Be)},K4=(l,N,W,fe,Se,Be)=>{const qe=Xt("placement.info",Si(Ym),Se),ft=qe.anchor,yt=fe.element,Lt=W.get(fe.uid);w0(()=>{xr(yt,"position","fixed");const Ht=Ia(yt,"visibility");xr(yt,"visibility","hidden");const fn=N.useFixed()?y3():Xm(l);ft.placement(l,ft,fn).each(Rn=>{const Bn=Be.orThunk(()=>N.getBounds.map(L)),er=jb(fn,Rn,Bn,fe,Lt,qe.transition);W.set(fe.uid,er)}),Ht.fold(()=>{zi(yt,"visibility")},Rn=>{xr(yt,"visibility",Rn)}),Ia(yt,"left").isNone()&&Ia(yt,"top").isNone()&&Ia(yt,"right").isNone()&&Ia(yt,"bottom").isNone()&&St(Ia(yt,"position"),"fixed")&&zi(yt,"position")},yt)};var RC=Object.freeze({__proto__:null,position:UM,positionWithinBounds:K4,getMode:(l,N,W)=>N.useFixed()?"fixed":"absolute",reset:(l,N,W,fe)=>{const Se=fe.element;q(["position","left","right","top","bottom"],Be=>zi(Se,Be)),o2(Se),W.clear(fe.uid)}}),x3=Object.freeze({__proto__:null,init:()=>{let l={};return Hd({readState:()=>l,clear:Se=>{a(Se)?delete l[Se]:l={}},set:(Se,Be)=>{l[Se]=Be},get:Se=>Ge(l,Se)})}});const Rh=id({fields:ph,name:"positioning",active:wy,apis:RC,state:x3}),O2=l=>l.getSystem().isConnected(),S2=l=>{Za(l,zp());const N=l.components();q(N,S2)},ww=l=>{const N=l.components();q(N,ww),Za(l,Sh())},J4=(l,N)=>{l.getSystem().addToWorld(N),Gn(l.element)&&ww(N)},Ow=l=>{S2(l),l.getSystem().removeFromWorld(l)},Sw=(l,N)=>{Bc(l.element,N.element)},Qb=l=>{q(l.components(),N=>gs(N.element)),vc(l.element),l.syncComponents()},ek=(l,N,W)=>{const fe=l.components();Qb(l);const Se=W(N),Be=Te(fe,Se);q(Be,qe=>{S2(qe),l.getSystem().removeFromWorld(qe)}),q(Se,qe=>{O2(qe)?Sw(l,qe):(l.getSystem().addToWorld(qe),Sw(l,qe),Gn(l.element)&&ww(qe))}),l.syncComponents()},_3=(l,N,W)=>{const fe=l.components(),Se=ve(N,ft=>df(ft).toArray());q(fe,ft=>{X(Se,ft)||Ow(ft)});const Be=W(N),qe=Te(fe,Be);q(qe,ft=>{O2(ft)&&Ow(ft)}),q(Be,ft=>{O2(ft)||J4(l,ft)}),l.syncComponents()},Eg=(l,N)=>{LC(l,N,Bc)},LC=(l,N,W)=>{l.getSystem().addToWorld(N),W(l.element,N.element),Gn(l.element)&&ww(N),l.syncComponents()},IC=l=>{S2(l),gs(l.element),l.getSystem().removeFromWorld(l)},kv=l=>{const N=Dr(l.element).bind(W=>l.getSystem().getByDom(W).toOptional());IC(l),N.each(W=>{W.syncComponents()})},pm=l=>{const N=l.components();q(N,IC),vc(l.element),l.syncComponents()},kw=(l,N)=>{Ly(l,N,Bc)},Hb=(l,N)=>{Ly(l,N,td)},Ly=(l,N,W)=>{W(l,N.element);const fe=Do(N.element);q(fe,Se=>{N.getByDom(Se).each(ww)})},tk=l=>{const N=Do(l.element);q(N,W=>{l.getByDom(W).each(S2)}),gs(l.element)},w3=(l,N,W,fe)=>{W.get().each(qe=>{pm(l)});const Se=N.getAttachPoint(l);Eg(Se,l);const Be=l.getSystem().build(fe);return Eg(l,Be),W.set(Be),Be},DC=(l,N,W,fe)=>{const Se=w3(l,N,W,fe);return N.onOpen(l,Se),Se},HM=(l,N,W,fe)=>W.get().map(()=>w3(l,N,W,fe)),ZM=(l,N,W,fe,Se)=>{rk(l,N),DC(l,N,W,fe),Se(),S3(l,N)},Zb=(l,N,W)=>{W.get().each(fe=>{pm(l),kv(l),N.onClose(l,fe),W.clear()})},nk=(l,N,W)=>W.isOpen(),k2=(l,N,W,fe)=>nk(l,N,W)&&W.get().exists(Se=>N.isPartOf(l,Se,fe)),Tw=(l,N,W)=>W.get(),qM=(l,N,W,fe)=>{Ia(l.element,N).fold(()=>{Qt(l.element,W)},Se=>{Cr(l.element,W,Se)}),xr(l.element,N,fe)},O3=(l,N,W)=>{Eo(l.element,W).fold(()=>zi(l.element,N),fe=>xr(l.element,N,fe))},rk=(l,N,W)=>{const fe=N.getAttachPoint(l);xr(l.element,"position",Rh.getMode(fe)),qM(l,"visibility",N.cloakVisibilityAttr,"hidden")},ok=l=>te(["top","left","right","bottom"],N=>Ia(l,N).isSome()),S3=(l,N,W)=>{ok(l.element)||zi(l.element,"position"),O3(l,"visibility",N.cloakVisibilityAttr)};var ik=Object.freeze({__proto__:null,cloak:rk,decloak:S3,open:DC,openWhileCloaked:ZM,close:Zb,isOpen:nk,isPartOf:k2,getState:Tw,setContent:HM}),k3=Object.freeze({__proto__:null,events:(l,N)=>Rl([Lo(Z1(),(W,fe)=>{Zb(W,l,N)})])}),T3=[Ss("onOpen"),Ss("onClose"),pn("isPartOf"),pn("getAttachPoint"),Ar("cloakVisibilityAttr","data-precloak-visibility")],A3=Object.freeze({__proto__:null,init:()=>{const l=ds(),N=x("not-implemented");return Hd({readState:N,isOpen:l.isSet,clear:l.clear,set:l.set,get:l.get})}});const Ys=id({fields:T3,name:"sandboxing",active:k3,apis:ik,state:A3}),_1=x("dismiss.popups"),qb=x("reposition.popups"),M3=x("mouse.released"),E3=Os([Ar("isExtraPart",D),Ai("fireEventInstead",[Ar("event",J0())])]),Iy=l=>{const N=Xt("Dismissal",E3,l);return{[_1()]:{schema:Os([pn("target")]),onReceive:(W,fe)=>{Ys.isOpen(W)&&(Ys.isPartOf(W,fe.target)||N.isExtraPart(W,fe.target)||N.fireEventInstead.fold(()=>Ys.close(W),Be=>Za(W,Be.event)))}}}},P3=Os([Ai("fireEventInstead",[Ar("event",F_())]),po("doReposition")]),ak=l=>{const N=Xt("Reposition",P3,l);return{[qb()]:{onReceive:W=>{Ys.isOpen(W)&&N.fireEventInstead.fold(()=>N.doReposition(W),fe=>Za(W,fe.event))}}}},sk=(l,N,W)=>{N.store.manager.onLoad(l,N,W)},lk=(l,N,W)=>{N.store.manager.onUnload(l,N,W)};var Cw=Object.freeze({__proto__:null,onLoad:sk,onUnload:lk,setValue:(l,N,W,fe)=>{N.store.manager.setValue(l,N,W,fe)},getValue:(l,N,W)=>N.store.manager.getValue(l,N,W),getState:(l,N,W)=>W}),R3=Object.freeze({__proto__:null,events:(l,N)=>{const W=l.resetOnDom?[wc((fe,Se)=>{sk(fe,l,N)}),xg((fe,Se)=>{lk(fe,l,N)})]:[Q_(l,N,sk)];return Rl(W)}});const L3=()=>{const l=wi(null),N=()=>({mode:"memory",value:l.get()}),W=()=>l.get()===null,fe=()=>{l.set(null)};return Hd({set:l.set,get:l.get,isNotSet:W,clear:fe,readState:N})},uk=()=>Hd({readState:v}),zC=()=>{const l=wi({}),N=wi({});return Hd({readState:()=>({mode:"dataset",dataByValue:l.get(),dataByText:N.get()}),lookup:qe=>Ge(l.get(),qe).orThunk(()=>Ge(N.get(),qe)),update:qe=>{const ft=l.get(),yt=N.get(),Lt={},Ht={};q(qe,fn=>{Lt[fn.value]=fn,Ge(fn,"meta").each(Rn=>{Ge(Rn,"text").each(Bn=>{Ht[Bn]=fn})})}),l.set({...ft,...Lt}),N.set({...yt,...Ht})},clear:()=>{l.set({}),N.set({})}})};var I3=Object.freeze({__proto__:null,memory:L3,dataset:zC,manual:uk,init:l=>l.store.manager.state(l)});const NC=(l,N,W,fe)=>{const Se=N.store;W.update([fe]),Se.setValue(l,fe),N.onSetValue(l,fe)},Gm=(l,N,W)=>{const fe=N.store,Se=fe.getDataKey(l);return W.lookup(Se).getOrThunk(()=>fe.getFallbackEntry(Se))},Ed=(l,N,W)=>{N.store.initialValue.each(Se=>{NC(l,N,W,Se)})},Av=(l,N,W)=>{W.clear()};var fk=[Yo("initialValue"),pn("getFallbackEntry"),pn("getDataKey"),pn("setValue"),Sl("manager",{setValue:NC,getValue:Gm,onLoad:Ed,onUnload:Av,state:zC})];const WM=(l,N,W)=>N.store.getValue(l),D3=(l,N,W,fe)=>{N.store.setValue(l,fe),N.onSetValue(l,fe)},dk=(l,N,W)=>{N.store.initialValue.each(fe=>{N.store.setValue(l,fe)})};var C2=[pn("getValue"),Ar("setValue",v),Yo("initialValue"),Sl("manager",{setValue:D3,getValue:WM,onLoad:dk,onUnload:v,state:uh.init})];const FC=(l,N,W,fe)=>{W.set(fe),N.onSetValue(l,fe)},YM=(l,N,W)=>W.get(),MD=(l,N,W)=>{N.store.initialValue.each(fe=>{W.isNotSet()&&W.set(fe)})},XM=(l,N,W)=>{W.clear()};var $C=[Yo("initialValue"),Sl("manager",{setValue:FC,getValue:YM,onLoad:MD,onUnload:XM,state:L3})],VC=[ns("store",{mode:"memory"},bn("mode",{memory:$C,manual:C2,dataset:fk})),Ss("onSetValue"),Ar("resetOnDom",!1)];const Ei=id({fields:VC,name:"representing",active:R3,apis:Cw,extra:{setValueFrom:(l,N)=>{const W=Ei.getValue(N);Ei.setValue(l,W)}},state:I3}),Pd=(l,N)=>Tt(l,{},re(N,W=>Wo(W.name(),"Cannot configure "+W.name()+" for "+l)).concat([gn("dump",R)])),Aw=l=>l.dump,Rd=(l,N)=>({...ei(N),...l.dump}),Km={field:Pd,augment:Rd,get:Aw},hk="placeholder",Yb=Nn.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Mw=l=>ht(l,"uiType"),Xb=(l,N,W,fe)=>l.exists(Se=>Se!==W.owner)?Yb.single(!0,x(W)):Ge(fe,W.name).fold(()=>{throw new Error("Unknown placeholder component: "+W.name+` Known: [`+ke(fe)+`] Namespace: `+l.getOr("none")+` -Spec: `+JSON.stringify(W,null,2))},Se=>Se.replace()),Ew=(l,N,W,fe)=>Mw(W)&&W.uiType===hk?Xb(l,N,W,fe):Yb.single(!1,x(W)),VC=(l,N,W,fe)=>Ew(l,N,W,fe).fold((Be,qe)=>{const ft=Mw(W)?qe(N,W.config,W.validated):qe(N),yt=Ge(ft,"components").getOr([]),Lt=ve(yt,Ht=>VC(l,N,Ht,fe));return[{...ft,components:Lt}]},(Be,qe)=>{if(Mw(W)){const ft=qe(N,W.config,W.validated);return W.validated.preprocess.getOr(R)(ft)}else return qe(N)}),GM=(l,N,W,fe)=>ve(W,Se=>VC(l,N,Se,fe)),KM=(l,N)=>{let W=!1;const fe=()=>W,Se=()=>{if(W)throw new Error("Trying to use the same placeholder more than once: "+l);return W=!0,N},Be=()=>N.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(l),required:Be,used:fe,replace:Se}},A2=(l,N,W,fe)=>{const Se=Ue(fe,(qe,ft)=>KM(ft,qe)),Be=GM(l,N,W,Se);return We(Se,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list +Spec: `+JSON.stringify(W,null,2))},Se=>Se.replace()),Ew=(l,N,W,fe)=>Mw(W)&&W.uiType===hk?Xb(l,N,W,fe):Yb.single(!1,x(W)),UC=(l,N,W,fe)=>Ew(l,N,W,fe).fold((Be,qe)=>{const ft=Mw(W)?qe(N,W.config,W.validated):qe(N),yt=Ge(ft,"components").getOr([]),Lt=ve(yt,Ht=>UC(l,N,Ht,fe));return[{...ft,components:Lt}]},(Be,qe)=>{if(Mw(W)){const ft=qe(N,W.config,W.validated);return W.validated.preprocess.getOr(R)(ft)}else return qe(N)}),GM=(l,N,W,fe)=>ve(W,Se=>UC(l,N,Se,fe)),KM=(l,N)=>{let W=!1;const fe=()=>W,Se=()=>{if(W)throw new Error("Trying to use the same placeholder more than once: "+l);return W=!0,N},Be=()=>N.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(l),required:Be,used:fe,replace:Se}},A2=(l,N,W,fe)=>{const Se=Ue(fe,(qe,ft)=>KM(ft,qe)),Be=GM(l,N,W,Se);return We(Se,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list Namespace: `+l.getOr("none")+` -Components: `+JSON.stringify(N.components,null,2))}),Be},Gb=Yb.single,pk=Yb.multiple,mk=x(hk),jp=Nn.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),w1=Ar("factory",{sketch:R}),B3=Ar("schema",[]),Pg=pn("name"),z3=Ln("pname","pname",Ca(l=>""),Ut()),JM=gn("schema",()=>[Yo("preprocess")]),N3=Ar("defaults",x({})),F3=Ar("overrides",x({})),eE=Si([w1,B3,Pg,z3,N3,F3]),tE=Si([w1,B3,Pg,N3,F3]),nE=Si([w1,B3,Pg,z3,N3,F3]),rE=Si([w1,JM,Pg,pn("unit"),z3,N3,F3]),$3=l=>l.fold(I.some,I.none,I.some,I.some),UC=l=>{const N=W=>W.name;return l.fold(N,N,N,N)},oE=l=>l.fold(R,R,R,R),V3=(l,N)=>W=>{const fe=Xt("Converting part type",N,W);return l(fe)},mh=V3(jp.required,eE),Jm=V3(jp.external,tE),mm=V3(jp.optional,nE),U3=V3(jp.group,rE),Pw=x("entirety");var MD=Object.freeze({__proto__:null,required:mh,external:Jm,optional:mm,group:U3,asNamedPart:$3,name:UC,asCommon:oE,original:Pw});const Rw=(l,N,W,fe)=>ws(N.defaults(l,W,fe),W,{uid:l.partUids[N.name]},N.overrides(l,W,fe)),iE=(l,N,W)=>{const fe={},Se={};return q(W,Be=>{Be.fold(qe=>{fe[qe.pname]=Gb(!0,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{const ft=N.parts[qe.name];Se[qe.name]=x(qe.factory.sketch(Rw(N,qe,ft[Pw()]),ft))},qe=>{fe[qe.pname]=Gb(!1,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{fe[qe.pname]=pk(!0,(ft,yt,Lt)=>{const Ht=ft[qe.name];return re(Ht,fn=>qe.factory.sketch(ws(qe.defaults(ft,fn,Lt),fn,qe.overrides(ft,fn))))})})}),{internals:x(fe),externals:x(Se)}},jC=(l,N)=>{const W={};return q(N,fe=>{$3(fe).each(Se=>{const Be=QC(l,Se.pname);W[Se.name]=qe=>{const ft=Xt("Part: "+Se.name+" in "+l,Si(Se.schema),qe);return{...Be,config:qe,validated:ft}}})}),W},QC=(l,N)=>({uiType:mk(),owner:l,name:N}),HC=(l,N,W)=>({uiType:mk(),owner:l,name:N,config:W,validated:{}}),aE=l=>ve(l,N=>N.fold(I.none,I.some,I.none,I.none).map(W=>si(W.name,W.schema.concat([l1(Pw())]))).toArray()),ZC=l=>re(l,UC),j3=(l,N,W)=>iE(l,N,W),qC=(l,N,W)=>A2(I.some(l),N,N.components,W),Jo=(l,N,W)=>{const fe=N.partUids[W];return l.getSystem().getByUid(fe).toOptional()},gm=(l,N,W)=>Jo(l,N,W).getOrDie("Could not find part: "+W),WC=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]))}),fe},gk=(l,N)=>{const W=l.getSystem();return Ue(N.partUids,(fe,Se)=>x(W.getByUid(fe)))},Lw=l=>ke(l.partUids),Kb=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]).getOrDie())}),fe},vk=(l,N)=>{const W=ZC(N);return ua(re(W,fe=>({key:fe,value:l+"-"+fe})))},Iw=l=>Ln("partUids","partUids",_u(N=>vk(N.uid,l)),Ut());var YC=Object.freeze({__proto__:null,generate:jC,generateOne:HC,schemas:aE,names:ZC,substitutes:j3,components:qC,defaultUids:vk,defaultUidsSchema:Iw,getAllParts:gk,getAllPartNames:Lw,getPart:Jo,getPartOrDie:gm,getParts:WC,getPartsOrDie:Kb});const sE=(l,N)=>(l.length>0?[si("parts",l)]:[]).concat([pn("uid"),Ar("dom",{}),Ar("components",[]),l1("originalSpec"),Ar("debug.sketcher",{})]).concat(N),yk=(l,N,W,fe,Se)=>{const Be=sE(fe,Se);return Xt(l+" [SpecSchema]",Os(Be.concat(N)),W)},Dw=(l,N,W,fe)=>{const Se=GC(fe),Be=yk(l,N,Se,[],[]);return W(Be,Se)},Iy=(l,N,W,fe,Se)=>{const Be=GC(Se),qe=aE(W),ft=Iw(W),yt=yk(l,N,Be,qe,[ft]),Lt=j3(l,yt,W),Ht=qC(l,yt,Lt.internals());return fe(yt,Ht,Be,Lt.externals())},XC=l=>ht(l,"uid"),GC=l=>XC(l)?l:{...l,uid:gy("uid")},lE=l=>l.uid!==void 0,bk=Os([pn("name"),pn("factory"),pn("configFields"),Ar("apis",{}),Ar("extraApis",{})]),cE=Os([pn("name"),pn("factory"),pn("configFields"),pn("partFields"),Ar("apis",{}),Ar("extraApis",{})]),Qp=l=>{const N=Xt("Sketcher for "+l.name,bk,l),W=Be=>Dw(N.name,N.configFields,N.factory,Be),fe=Ue(N.apis,Tb),Se=Ue(N.extraApis,(Be,qe)=>Y1(Be,qe));return{name:N.name,configFields:N.configFields,sketch:W,...fe,...Se}},Zh=l=>{const N=Xt("Sketcher for "+l.name,cE,l),W=qe=>Iy(N.name,N.configFields,N.partFields,N.factory,qe),fe=jC(N.name,N.partFields),Se=Ue(N.apis,Tb),Be=Ue(N.extraApis,(qe,ft)=>Y1(qe,ft));return{name:N.name,partFields:N.partFields,configFields:N.configFields,sketch:W,parts:fe,...Se,...Be}},M2=l=>Jr("input")(l)&&Nr(l,"type")!=="radio"||Jr("textarea")(l);var uE=Object.freeze({__proto__:null,getCurrent:(l,N,W)=>N.find(l)});const xk=[pn("find")],Xs=id({fields:xk,name:"composing",apis:uE}),fE=["input","button","textarea","select"],dE=(l,N,W)=>{(N.disabled()?Bw:_k)(l,N)},KC=(l,N)=>N.useNative===!0&&X(fE,vr(l.element)),PD=l=>zo(l.element,"disabled"),O1=l=>{Cr(l.element,"disabled","disabled")},Q3=l=>{Qt(l.element,"disabled")},hE=l=>Nr(l.element,"aria-disabled")==="true",pE=l=>{Cr(l.element,"aria-disabled","true")},JC=l=>{Cr(l.element,"aria-disabled","false")},Bw=(l,N,W)=>{N.disableClass.each(Se=>{uc(l.element,Se)}),(KC(l,N)?O1:pE)(l),N.onDisabled(l)},_k=(l,N,W)=>{N.disableClass.each(Se=>{Zc(l.element,Se)}),(KC(l,N)?Q3:JC)(l),N.onEnabled(l)},e6=(l,N)=>KC(l,N)?PD(l):hE(l);var E2=Object.freeze({__proto__:null,enable:_k,disable:Bw,isDisabled:e6,onLoad:dE,set:(l,N,W,fe)=>{(fe?Bw:_k)(l,N)}}),t6=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:N.disabled()?N.disableClass.toArray():[]}),events:(l,N)=>Rl([zx(Bp(),(W,fe)=>e6(W,l)),Q_(l,N,dE)])}),mE=[ys("disabled",D),Ar("useNative",!0),Yo("disableClass"),Ss("onDisabled"),Ss("onEnabled")];const he=id({fields:mE,name:"disabling",active:t6,apis:E2}),Ce=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.highlightClass);q(Se,Be=>{te(fe,ft=>_o(ft.element,Be))||(Zc(Be,N.highlightClass),l.getSystem().getByDom(Be).each(ft=>{N.onDehighlight(l,ft),Za(ft,cu())}))})},Xe=(l,N,W)=>Ce(l,N,W,[]),lt=(l,N,W,fe)=>{Mr(l,N,W,fe)&&(Zc(fe.element,N.highlightClass),N.onDehighlight(l,fe),Za(fe,cu()))},Ct=(l,N,W,fe)=>{Ce(l,N,W,[fe]),Mr(l,N,W,fe)||(uc(fe.element,N.highlightClass),N.onHighlight(l,fe),Za(fe,e1()))},Wt=(l,N,W)=>{ki(l,N).each(fe=>{Ct(l,N,W,fe)})},kn=(l,N,W)=>{xi(l,N).each(fe=>{Ct(l,N,W,fe)})},Vn=(l,N,W,fe)=>{ti(l,N,W,fe).fold(Se=>{throw Se},Se=>{Ct(l,N,W,Se)})},or=(l,N,W,fe)=>{const Se=oi(l,N);ce(Se,fe).each(qe=>{Ct(l,N,W,qe)})},Mr=(l,N,W,fe)=>rp(fe.element,N.highlightClass),no=(l,N,W)=>qa(l.element,"."+N.highlightClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),ti=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return I.from(Se[fe]).fold(()=>aa.error(new Error("No element found with index "+fe)),l.getSystem().getByDom)},ki=(l,N,W)=>qa(l.element,"."+N.itemClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),xi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return(fe.length>0?I.some(fe[fe.length-1]):I.none()).bind(Be=>l.getSystem().getByDom(Be).toOptional())},fi=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return de(Se,qe=>rp(qe,N.highlightClass)).bind(qe=>{const ft=uv(qe,fe,0,Se.length-1);return l.getSystem().getByDom(Se[ft]).toOptional()})},Vi=(l,N,W)=>fi(l,N,W,-1),Xo=(l,N,W)=>fi(l,N,W,1),oi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return zt(re(fe,Se=>l.getSystem().getByDom(Se).toOptional()))};var wa=Object.freeze({__proto__:null,dehighlightAll:Xe,dehighlight:lt,highlight:Ct,highlightFirst:Wt,highlightLast:kn,highlightAt:Vn,highlightBy:or,isHighlighted:Mr,getHighlighted:no,getFirst:ki,getLast:xi,getPrevious:Vi,getNext:Xo,getCandidates:oi}),Pa=[pn("highlightClass"),pn("itemClass"),Ss("onHighlight"),Ss("onDehighlight")];const ta=id({fields:Pa,name:"highlighting",apis:wa}),nu=[8],Ll=[9],$u=[13],vm=[27],gh=[32],Jb=[37],ex=[38],Tl=[39],Ld=[40],sp=(l,N,W)=>{const fe=we(l.slice(0,N)),Se=we(l.slice(N+1));return ce(fe.concat(Se),W)},Rg=(l,N,W)=>{const fe=we(l.slice(0,N));return ce(fe,W)},ym=(l,N,W)=>{const fe=l.slice(0,N),Se=l.slice(N+1);return ce(Se.concat(fe),W)},P2=(l,N,W)=>{const fe=l.slice(N+1);return ce(fe,W)},Wa=l=>N=>{const W=N.raw;return X(l,W.which)},bm=l=>N=>_e(l,W=>W(N)),Lg=l=>l.raw.shiftKey===!0,S1=l=>l.raw.ctrlKey===!0,Zf=P(Lg),el=(l,N)=>({matches:l,classification:N}),Ok=(l,N)=>ce(l,fe=>fe.matches(N)).map(fe=>fe.classification),Sk=(l,N,W)=>{N.exists(Se=>W.exists(Be=>_o(Be,Se)))||sa(l,q1(),{prevFocus:N,newFocus:W})},H3=()=>{const l=W=>Wd(W.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().triggerFocus(fe,W.element);const Be=l(W);Sk(W,Se,Be)}}},n6=()=>{const l=W=>ta.getHighlighted(W).map(fe=>fe.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().getByDom(fe).fold(v,qe=>{ta.highlight(W,qe)});const Be=l(W);Sk(W,Se,Be)}}};var Mv;(function(l){l.OnFocusMode="onFocus",l.OnEnterOrSpaceMode="onEnterOrSpace",l.OnApiMode="onApi"})(Mv||(Mv={}));const tx=(l,N,W,fe,Se)=>{const Be=()=>l.concat([Ar("focusManager",H3()),ns("focusInside","onFocus",rt(Lt=>X(["onFocus","onEnterOrSpace","onApi"],Lt)?aa.value(Lt):aa.error("Invalid value for focusInside"))),Sl("handler",yt),Sl("state",N),Sl("sendFocusIn",Se)]),qe=(Lt,Ht,fn,Rn,Bn)=>{const er=fn(Lt,Ht,Rn,Bn);return Ok(er,Ht.event).bind(cr=>cr(Lt,Ht,Rn,Bn))},yt={schema:Be,processKey:qe,toEvents:(Lt,Ht)=>{const fn=Lt.focusInside!==Mv.OnFocusMode?I.none():Se(Lt).map(er=>Lo(wh(),(cr,Xr)=>{er(cr,Lt,Ht),Xr.stop()})),Rn=(er,cr)=>{const Xr=Wa(gh.concat($u))(cr.event);Lt.focusInside===Mv.OnEnterOrSpaceMode&&Xr&&lh(er,cr)&&Se(Lt).each(br=>{br(er,Lt,Ht),cr.stop()})},Bn=[Lo(nm(),(er,cr)=>{qe(er,cr,W,Lt,Ht).fold(()=>{Rn(er,cr)},Xr=>{cr.stop()})}),Lo(G0(),(er,cr)=>{qe(er,cr,fe,Lt,Ht).each(Xr=>{cr.stop()})})];return Rl(fn.toArray().concat(Bn))}};return yt},R2=l=>{const N=[Yo("onEscape"),Yo("onEnter"),Ar("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ar("firstTabstop",0),Ar("useTabstopAt",k),Yo("visibilitySelector")].concat([l]),W=(br,Fr)=>{const jr=br.visibilitySelector.bind(Ro=>Sc(Fr,Ro)).getOr(Fr);return il(jr)>0},fe=(br,Fr)=>{const jr=Yd(br.element,Fr.selector),Ro=me(jr,ko=>W(Fr,ko));return I.from(Ro[Fr.firstTabstop])},Se=(br,Fr)=>Fr.focusManager.get(br).bind(jr=>Sc(jr,Fr.selector)),Be=(br,Fr)=>W(br,Fr)&&br.useTabstopAt(Fr),qe=(br,Fr,jr)=>{fe(br,Fr).each(Ro=>{Fr.focusManager.set(br,Ro)})},ft=(br,Fr,jr,Ro,ko)=>ko(Fr,jr,_i=>Be(Ro,_i)).fold(()=>Ro.cyclic?I.some(!0):I.none(),_i=>(Ro.focusManager.set(br,_i),I.some(!0))),yt=(br,Fr,jr,Ro)=>{const ko=Yd(br.element,jr.selector);return Se(br,jr).bind(_i=>de(ko,T(_o,_i)).bind(Ao=>ft(br,ko,Ao,jr,Ro)))},Lt=(br,Fr,jr)=>{const Ro=jr.cyclic?sp:Rg;return yt(br,Fr,jr,Ro)},Ht=(br,Fr,jr)=>{const Ro=jr.cyclic?ym:P2;return yt(br,Fr,jr,Ro)},fn=br=>Sr(br).bind(Rr).exists(Fr=>_o(Fr,br)),Rn=(br,Fr,jr)=>Se(br,jr).filter(Ro=>!jr.useTabstopAt(Ro)).bind(Ro=>(fn(Ro)?Lt:Ht)(br,Fr,jr)),Bn=(br,Fr,jr)=>jr.onEnter.bind(Ro=>Ro(br,Fr)),er=(br,Fr,jr)=>jr.onEscape.bind(Ro=>Ro(br,Fr)),cr=x([el(bm([Lg,Wa(Ll)]),Lt),el(Wa(Ll),Ht),el(bm([Zf,Wa($u)]),Bn)]),Xr=x([el(Wa(vm),er),el(Wa(Ll),Rn)]);return tx(N,uh.init,cr,Xr,()=>I.some(qe))};var Fq=R2(gn("cyclic",D)),$q=R2(gn("cyclic",k));const kk=(l,N,W)=>(t1(l,W,Bp()),I.some(!0)),Z3=(l,N,W)=>M2(W)&&Wa(gh)(N.event)?I.none():kk(l,N,W),zw=(l,N)=>I.some(!0),gE=[Ar("execute",Z3),Ar("useSpace",!1),Ar("useEnter",!0),Ar("useControlEnter",!1),Ar("useDown",!1)],ID=(l,N,W)=>W.execute(l,N,l.element),DD=(l,N,W,fe)=>{const Se=W.useSpace&&!M2(l.element)?gh:[],Be=W.useEnter?$u:[],qe=W.useDown?Ld:[],ft=Se.concat(Be).concat(qe);return[el(Wa(ft),ID)].concat(W.useControlEnter?[el(bm([S1,Wa($u)]),ID)]:[])},Vq=(l,N,W,fe)=>W.useSpace&&!M2(l.element)?[el(Wa(gh),zw)]:[];var BD=tx(gE,uh.init,DD,Vq,()=>I.none());const vE=()=>{const l=ds();return Hd({readState:()=>l.get().map(Se=>({numRows:String(Se.numRows),numColumns:String(Se.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(Se,Be)=>{l.set({numRows:Se,numColumns:Be})},getNumRows:()=>l.get().map(Se=>Se.numRows),getNumColumns:()=>l.get().map(Se=>Se.numColumns)})};var Uq=Object.freeze({__proto__:null,flatgrid:vE,init:l=>l.state(l)});const zD=l=>(N,W,fe,Se)=>{const Be=l(N.element);return Tk(Be,N,W,fe,Se)},yE=(l,N)=>{const W=Hf(l,N);return zD(W)},bE=(l,N)=>{const W=Hf(N,l);return zD(W)},xE=l=>(N,W,fe,Se)=>Tk(l,N,W,fe,Se),Tk=(l,N,W,fe,Se)=>fe.focusManager.get(N).bind(qe=>l(N.element,qe,fe,Se)).map(qe=>(fe.focusManager.set(N,qe),!0)),r6=xE,ND=xE,_E=xE,FD=l=>l.offsetWidth<=0&&l.offsetHeight<=0,$D=l=>!FD(l.dom),jq=(l,N)=>de(l,N).map(W=>({index:W,candidates:l})),Ig=(l,N,W)=>{const fe=qe=>_o(qe,N),Se=Yd(l,W),Be=me(Se,$D);return jq(Be,fe)},VD=(l,N)=>de(l,W=>_o(N,W)),UD=(l,N,W,fe)=>{const Se=Math.floor(N/W),Be=N%W;return fe(Se,Be).bind(qe=>{const ft=qe.row*W+qe.column;return ft>=0&&ftUD(l,N,fe,(Be,qe)=>{const yt=Be===W-1?l.length-Be*fe:fe,Lt=uv(qe,Se,0,yt-1);return I.some({row:Be,column:Lt})}),QD=(l,N,W,fe,Se)=>UD(l,N,fe,(Be,qe)=>{const ft=uv(Be,Se,0,W-1),Lt=ft===W-1?l.length-ft*fe:fe,Ht=Ah(qe,0,Lt-1);return I.some({row:ft,column:Ht})}),Qq=(l,N,W,fe)=>jD(l,N,W,fe,1),q3=(l,N,W,fe)=>jD(l,N,W,fe,-1),wE=(l,N,W,fe)=>QD(l,N,W,fe,-1),Hq=(l,N,W,fe)=>QD(l,N,W,fe,1),OE=[pn("selector"),Ar("execute",Z3),kd("onEscape"),Ar("captureTab",!1),Yx()],o6=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},SE=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Zq=(l,N,W,fe)=>SE(l,W).bind(Se=>W.execute(l,N,Se)),i6=l=>(N,W,fe,Se)=>Ig(N,W,fe.selector).bind(Be=>l(Be.candidates,Be.index,Se.getNumRows().getOr(fe.initSize.numRows),Se.getNumColumns().getOr(fe.initSize.numColumns))),HD=(l,N,W)=>W.captureTab?I.some(!0):I.none(),qq=(l,N,W)=>W.onEscape(l,N),ZD=i6(q3),qD=i6(Qq),Wq=i6(wE),WD=i6(Hq),a6=x([el(Wa(Jb),yE(ZD,qD)),el(Wa(Tl),bE(ZD,qD)),el(Wa(ex),r6(Wq)),el(Wa(Ld),ND(WD)),el(bm([Lg,Wa(Ll)]),HD),el(bm([Zf,Wa(Ll)]),HD),el(Wa(gh.concat($u)),Zq)]),Yq=x([el(Wa(vm),qq),el(Wa(gh),zw)]);var Xq=tx(OE,vE,a6,Yq,()=>I.some(o6));const YD=(l,N,W,fe,Se)=>{const Be=ft=>vr(ft)==="button"&&Nr(ft,"disabled")==="disabled",qe=(ft,yt,Lt)=>Se(ft,yt,fe,0,Lt.length-1,Lt[yt],Ht=>Be(Lt[Ht])?qe(ft,Ht,Lt):I.from(Lt[Ht]));return Ig(l,W,N).bind(ft=>{const yt=ft.index,Lt=ft.candidates;return qe(yt,yt,Lt)})},XD=(l,N,W,fe)=>YD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=Ah(Be+qe,ft,yt);return fn===Se?I.from(Lt):Ht(fn)}),nx=(l,N,W,fe)=>YD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=uv(Be,qe,ft,yt);return fn===Se?I.none():Ht(fn)}),GD=[pn("selector"),Ar("getInitial",I.none),Ar("execute",Z3),kd("onEscape"),Ar("executeOnMove",!1),Ar("allowVertical",!0),Ar("allowHorizontal",!0),Ar("cycles",!0)],Gq=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Ck=(l,N,W)=>Gq(l,W).bind(fe=>W.execute(l,N,fe)),Kq=(l,N,W)=>{N.getInitial(l).orThunk(()=>qa(l.element,N.selector)).each(fe=>{N.focusManager.set(l,fe)})},kE=(l,N,W)=>(W.cycles?nx:XD)(l,W.selector,N,-1),TE=(l,N,W)=>(W.cycles?nx:XD)(l,W.selector,N,1),CE=l=>(N,W,fe,Se)=>l(N,W,fe,Se).bind(()=>fe.executeOnMove?Ck(N,W,fe):I.some(!0)),KD=(l,N,W)=>W.onEscape(l,N),JD=(l,N,W,fe)=>{const Se=[...W.allowHorizontal?Jb:[]].concat(W.allowVertical?ex:[]),Be=[...W.allowHorizontal?Tl:[]].concat(W.allowVertical?Ld:[]);return[el(Wa(Se),CE(yE(kE,TE))),el(Wa(Be),CE(bE(kE,TE))),el(Wa($u),Ck),el(Wa(gh),Ck)]},Jq=x([el(Wa(gh),zw),el(Wa(vm),KD)]);var eW=tx(GD,uh.init,JD,Jq,()=>I.some(Kq));const s6=(l,N,W)=>I.from(l[N]).bind(fe=>I.from(fe[W]).map(Se=>({rowIndex:N,columnIndex:W,cell:Se}))),l6=(l,N,W,fe)=>{const Be=l[N].length,qe=uv(W,fe,0,Be-1);return s6(l,N,qe)},eB=(l,N,W,fe)=>{const Se=uv(W,fe,0,l.length-1),Be=l[Se].length,qe=Ah(N,0,Be-1);return s6(l,Se,qe)},Ak=(l,N,W,fe)=>{const Be=l[N].length,qe=Ah(W+fe,0,Be-1);return s6(l,N,qe)},tB=(l,N,W,fe)=>{const Se=Ah(W+fe,0,l.length-1),Be=l[Se].length,qe=Ah(N,0,Be-1);return s6(l,Se,qe)},nB=(l,N,W)=>l6(l,N,W,1),Hp=(l,N,W)=>l6(l,N,W,-1),tW=(l,N,W)=>eB(l,W,N,-1),rB=(l,N,W)=>eB(l,W,N,1),oB=(l,N,W)=>Ak(l,N,W,-1),nW=(l,N,W)=>Ak(l,N,W,1),iB=(l,N,W)=>tB(l,W,N,-1),aB=(l,N,W)=>tB(l,W,N,1),rW=[si("selectors",[pn("row"),pn("cell")]),Ar("cycles",!0),Ar("previousSelector",I.none),Ar("execute",Z3)],oW=(l,N,W)=>{N.previousSelector(l).orThunk(()=>{const Se=N.selectors;return qa(l.element,Se.cell)}).each(Se=>{N.focusManager.set(l,Se)})},iW=(l,N,W)=>Wd(l.element).bind(fe=>W.execute(l,N,fe)),aW=(l,N)=>re(l,W=>Yd(W,N.selectors.cell)),Mk=(l,N)=>(W,fe,Se)=>{const Be=Se.cycles?l:N;return Sc(fe,Se.selectors.row).bind(qe=>{const ft=Yd(qe,Se.selectors.cell);return VD(ft,fe).bind(yt=>{const Lt=Yd(W,Se.selectors.row);return VD(Lt,qe).bind(Ht=>{const fn=aW(Lt,Se);return Be(fn,Ht,yt).map(Rn=>Rn.cell)})})})},sB=Mk(Hp,oB),lB=Mk(nB,nW),cB=Mk(tW,iB),uB=Mk(rB,aB),fB=x([el(Wa(Jb),yE(sB,lB)),el(Wa(Tl),bE(sB,lB)),el(Wa(ex),r6(cB)),el(Wa(Ld),ND(uB)),el(Wa(gh.concat($u)),iW)]),sW=x([el(Wa(gh),zw)]);var lW=tx(rW,uh.init,fB,sW,()=>I.some(oW));const cW=[pn("selector"),Ar("execute",Z3),Ar("moveOnTab",!1)],dB=(l,N,W)=>W.focusManager.get(l).bind(fe=>W.execute(l,N,fe)),hB=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},AE=(l,N,W)=>nx(l,W.selector,N,-1),rx=(l,N,W)=>nx(l,W.selector,N,1),pB=(l,N,W,fe)=>W.moveOnTab?_E(AE)(l,N,W,fe):I.none(),mB=(l,N,W,fe)=>W.moveOnTab?_E(rx)(l,N,W,fe):I.none(),gB=x([el(Wa(ex),_E(AE)),el(Wa(Ld),_E(rx)),el(bm([Lg,Wa(Ll)]),pB),el(bm([Zf,Wa(Ll)]),mB),el(Wa($u),dB),el(Wa(gh),dB)]),uW=x([el(Wa(gh),zw)]);var W3=tx(cW,uh.init,gB,uW,()=>I.some(hB));const fW=[kd("onSpace"),kd("onEnter"),kd("onShiftEnter"),kd("onLeft"),kd("onRight"),kd("onTab"),kd("onShiftTab"),kd("onUp"),kd("onDown"),kd("onEscape"),Ar("stopSpaceKeyup",!1),Yo("focusIn")],dW=(l,N,W)=>[el(Wa(gh),W.onSpace),el(bm([Zf,Wa($u)]),W.onEnter),el(bm([Lg,Wa($u)]),W.onShiftEnter),el(bm([Lg,Wa(Ll)]),W.onShiftTab),el(bm([Zf,Wa(Ll)]),W.onTab),el(Wa(ex),W.onUp),el(Wa(Ld),W.onDown),el(Wa(Jb),W.onLeft),el(Wa(Tl),W.onRight),el(Wa(gh),W.onSpace)],vB=(l,N,W)=>[...W.stopSpaceKeyup?[el(Wa(gh),zw)]:[],el(Wa(vm),W.onEscape)];var hW=tx(fW,uh.init,dW,vB,l=>l.focusIn);const pW=Fq.schema(),mW=$q.schema(),yB=eW.schema(),ME=Xq.schema(),EE=lW.schema(),gW=BD.schema(),L2=W3.schema(),bB=hW.schema();var xB=Object.freeze({__proto__:null,acyclic:pW,cyclic:mW,flow:yB,flatgrid:ME,matrix:EE,execution:gW,menu:L2,special:bB});const vW=l=>pt(l,"setGridSize"),ha=HO({branchKey:"mode",branches:xB,name:"keying",active:{events:(l,N)=>l.handler.toEvents(l,N)},apis:{focusIn:(l,N,W)=>{N.sendFocusIn(N).fold(()=>{l.getSystem().triggerFocus(l.element,l.element)},fe=>{fe(l,N,W)})},setGridSize:(l,N,W,fe,Se)=>{vW(W)?W.setGridSize(fe,Se):console.error("Layout does not support setGridSize")}},state:Uq}),Y3=(l,N)=>{w0(()=>{ek(l,N,()=>re(N,l.getSystem().build))},l.element)},X3=(l,N)=>{w0(()=>{_3(l,N,()=>ct(l.element,N,l.getSystem().buildOrPatch))},l.element)},_B=(l,N,W,fe)=>{Ow(N);const Se=nt(l.element,W,fe,l.getSystem().buildOrPatch);J4(l,Se),l.syncComponents()},Ek=(l,N,W)=>{const fe=l.getSystem().build(W);RC(l,fe,N)},I2=(l,N,W,fe)=>{kv(N),Ek(l,(Se,Be)=>Vd(Se,Be,W),fe)},D2=(l,N,W,fe)=>(N.reuseDom?X3:Y3)(l,fe),yW=(l,N,W,fe)=>{Ek(l,Bc,fe)},bW=(l,N,W,fe)=>{Ek(l,sf,fe)},wB=(l,N,W,fe)=>{const Se=k1(l);ce(Se,qe=>_o(fe.element,qe.element)).each(kv)},k1=(l,N)=>l.components(),c6=(l,N,W,fe,Se)=>{const Be=k1(l);return I.from(Be[fe]).map(qe=>(Se.fold(()=>kv(qe),ft=>{(N.reuseDom?_B:I2)(l,qe,fe,ft)}),qe))};var OB=Object.freeze({__proto__:null,append:yW,prepend:bW,remove:wB,replaceAt:c6,replaceBy:(l,N,W,fe,Se)=>{const Be=k1(l);return de(Be,fe).bind(qe=>c6(l,N,W,qe,Se))},set:D2,contents:k1});const Fa=id({fields:[Hs("reuseDom",!0)],name:"replacing",apis:OB}),SB=(l,N)=>{const W=Rl(N);return id({fields:[pn("enabled")],name:l,active:{events:x(W)}})},Ka=(l,N)=>{const W=SB(l,N);return{key:l,value:{config:{},me:W,configAsRaw:x({}),initialConfig:{},state:uh}}},PE=(l,N)=>{N.ignore||(Md(l.element),N.onFocus(l))};var xW=Object.freeze({__proto__:null,focus:PE,blur:(l,N)=>{N.ignore||m1(l.element)},isFocused:l=>_0(l.element)}),u6=Object.freeze({__proto__:null,exhibit:(l,N)=>{const W=N.ignore?{}:{attributes:{tabindex:"-1"}};return np(W)},events:l=>Rl([Lo(wh(),(N,W)=>{PE(N,l),W.stop()})].concat(l.stopMousedown?[Lo(Nc(),(N,W)=>{W.event.prevent()})]:[]))}),TB=[Ss("onFocus"),Ar("stopMousedown",!1),Ar("ignore",!1)];const Ra=id({fields:TB,name:"focusing",active:u6,apis:xW}),CB=l=>({init:()=>{const W=wi(l);return{get:()=>W.get(),set:ft=>W.set(ft),clear:()=>W.set(l),readState:()=>W.get()}}}),AB=(l,N,W)=>{const fe=N.aria;fe.update(l,fe,W.get())},MB=(l,N,W)=>{N.toggleClass.each(fe=>{W.get()?uc(l.element,fe):Zc(l.element,fe)})},G3=(l,N,W,fe)=>{const Se=W.get();W.set(fe),MB(l,N,W),AB(l,N,W),Se!==fe&&N.onToggled(l,fe)},EB=(l,N,W)=>{G3(l,N,W,!W.get())},LE=(l,N,W)=>{G3(l,N,W,!0)},_W=(l,N,W)=>{G3(l,N,W,!1)},wW=(l,N,W)=>W.get(),PB=(l,N,W)=>{G3(l,N,W,N.selected)};var OW=Object.freeze({__proto__:null,onLoad:PB,toggle:EB,isOn:wW,on:LE,off:_W,set:G3}),kW=Object.freeze({__proto__:null,exhibit:()=>np({}),events:(l,N)=>{const W=_g(l,N,EB),fe=Q_(l,N,PB);return Rl(ye([l.toggleOnExecute?[W]:[],[fe]]))}});const RB=(l,N,W)=>{Cr(l.element,"aria-pressed",W),N.syncWithExpanded&&K3(l,N,W)},Pk=(l,N,W)=>{Cr(l.element,"aria-selected",W)},TW=(l,N,W)=>{Cr(l.element,"aria-checked",W)},K3=(l,N,W)=>{Cr(l.element,"aria-expanded",W)};var IE=[Ar("selected",!1),Yo("toggleClass"),Ar("toggleOnExecute",!0),Ss("onToggled"),ns("aria",{mode:"none"},bn("mode",{pressed:[Ar("syncWithExpanded",!1),Sl("update",RB)],checked:[Sl("update",TW)],expanded:[Sl("update",K3)],selected:[Sl("update",Pk)],none:[Sl("update",v)]}))];const us=id({fields:IE,name:"toggling",active:kW,apis:OW,state:CB(!1)}),DE=()=>{const l=(N,W)=>{W.stop(),Bm(N)};return[Lo(H1(),l),Lo(Lm(),l),od(Uh()),od(Nc())]},f6=l=>{const N=W=>Sh((fe,Se)=>{W(fe),Se.stop()});return Rl(ye([l.map(N).toArray(),DE()]))},LB="alloy.item-hover",BE="alloy.item-focus",IB="alloy.item-toggled",zE=l=>{(Wd(l.element).isNone()||Ra.isFocused(l))&&(Ra.isFocused(l)||Ra.focus(l),sa(l,LB,{item:l}))},DB=l=>{sa(l,BE,{item:l})},CW=(l,N)=>{sa(l,IB,{item:l,state:N})},NE=x(LB),d6=x(BE),FE=x(IB),$E=l=>l.role.fold(()=>l.toggling.map(N=>N.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(l,N)=>({aria:{mode:N?"selected":"checked"},...Fe(l,(W,fe)=>fe!=="exclusive"),onToggled:(W,fe)=>{c(l.onToggled)&&l.onToggled(W,fe),CW(W,fe)}}),MW=l=>({dom:l.dom,domModification:{...l.domModification,attributes:{role:$E(l),...l.domModification.attributes,"aria-haspopup":l.hasSubmenu,...l.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Km.augment(l.itemBehaviours,[l.toggling.fold(us.revoke,N=>us.config(AW(N,l.role.exists(W=>W==="option")))),Ra.config({ignore:l.ignoreFocus,stopMousedown:l.ignoreFocus,onFocus:N=>{DB(N)}}),ha.config({mode:"execution"}),Ei.config({store:{mode:"memory",initialValue:l.data}}),Ka("item-type-events",[...DE(),Lo(wu(),zE),Lo(hb(),Ra.focus)])]),components:l.components,eventOrder:l.eventOrder}),EW=[pn("data"),pn("components"),pn("dom"),Ar("hasSubmenu",!1),Yo("toggling"),Yo("role"),Km.field("itemBehaviours",[us,Ra,ha,Ei]),Ar("ignoreFocus",!1),Ar("domModification",{}),Sl("builder",MW),Ar("eventOrder",{})],PW=l=>({dom:l.dom,components:l.components,events:Rl([U_(hb())])}),BB=[pn("dom"),pn("components"),Sl("builder",PW)],h6=x("item-widget"),VE=x([mh({name:"widget",overrides:l=>({behaviours:ei([Ei.config({store:{mode:"manual",getValue:N=>l.data,setValue:v}})])})})]),RW=l=>{const N=j3(h6(),l,VE()),W=qC(h6(),l,N.internals()),fe=Be=>Jo(Be,l,"widget").map(qe=>(ha.focusIn(qe),qe)),Se=(Be,qe)=>M2(qe.event.target)?I.none():(()=>(l.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:l.dom,components:W,domModification:l.domModification,events:Rl([Sh((Be,qe)=>{fe(Be).each(ft=>{qe.stop()})}),Lo(wu(),zE),Lo(hb(),(Be,qe)=>{l.autofocus?fe(Be):Ra.focus(Be)})]),behaviours:Km.augment(l.widgetBehaviours,[Ei.config({store:{mode:"memory",initialValue:l.data}}),Ra.config({ignore:l.ignoreFocus,onFocus:Be=>{DB(Be)}}),ha.config({mode:"special",focusIn:l.autofocus?Be=>{fe(Be)}:cc(),onLeft:Se,onRight:Se,onEscape:(Be,qe)=>!Ra.isFocused(Be)&&!l.autofocus?(Ra.focus(Be),I.some(!0)):(l.autofocus&&qe.setSource(Be.element),I.none())})])}},LW=[pn("uid"),pn("data"),pn("components"),pn("dom"),Ar("autofocus",!1),Ar("ignoreFocus",!1),Km.field("widgetBehaviours",[Ei,Ra,ha]),Ar("domModification",{}),Iw(VE()),Sl("builder",RW)],IW=bn("type",{widget:LW,item:EW,separator:BB}),DW=(l,N)=>({mode:"flatgrid",selector:"."+l.markers.item,initSize:{numColumns:N.initSize.numColumns,numRows:N.initSize.numRows},focusManager:l.focusManager}),BW=(l,N)=>({mode:"matrix",selectors:{row:N.rowSelector,cell:"."+l.markers.item},previousSelector:N.previousSelector,focusManager:l.focusManager}),zB=(l,N)=>({mode:"menu",selector:"."+l.markers.item,moveOnTab:N.moveOnTab,focusManager:l.focusManager}),zW=x([U3({factory:{sketch:l=>{const N=Xt("menu.spec item",IW,l);return N.builder(N)}},name:"items",unit:"item",defaults:(l,N)=>ht(N,"uid")?N:{...N,uid:gy("item")},overrides:(l,N)=>({type:N.type,ignoreFocus:l.fakeFocus,domModification:{classes:[l.markers.item]}})})]),NW=x([jo("role"),pn("value"),pn("items"),pn("dom"),pn("components"),Ar("eventOrder",{}),Pd("menuBehaviours",[ta,Ei,Xs,ha]),ns("movement",{mode:"menu",moveOnTab:!0},bn("mode",{grid:[Yx(),Sl("config",DW)],matrix:[Sl("config",BW),pn("rowSelector"),Ar("previousSelector",I.none)],menu:[Ar("moveOnTab",!0),Sl("config",zB)]})),s1(),Ar("fakeFocus",!1),Ar("focusManager",H3()),Ss("onHighlight"),Ss("onDehighlight"),Ar("showMenuRole",!0)]),NB=x("alloy.menu-focus"),FW=(l,N)=>{const W=Yd(l.element,'[role="menuitemradio"][aria-checked="true"]');q(W,fe=>{_o(fe,N.element)||l.getSystem().getByDom(fe).each(Se=>{us.off(Se)})})},$W=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.menuBehaviours,[ta.config({highlightClass:l.markers.selectedItem,itemClass:l.markers.item,onHighlight:l.onHighlight,onDehighlight:l.onDehighlight}),Ei.config({store:{mode:"memory",initialValue:l.value}}),Xs.config({find:I.some}),ha.config(l.movement.config(l,l.movement))]),events:Rl([Lo(d6(),(Se,Be)=>{const qe=Be.event;Se.getSystem().getByDom(qe.target).each(ft=>{ta.highlight(Se,ft),Be.stop(),sa(Se,NB(),{menu:Se,item:ft})})}),Lo(NE(),(Se,Be)=>{const qe=Be.event.item;ta.highlight(Se,qe)}),Lo(FE(),(Se,Be)=>{const{item:qe,state:ft}=Be.event;ft&&Nr(qe.element,"role")==="menuitemradio"&&FW(Se,qe)})]),components:N,eventOrder:l.eventOrder,...l.showMenuRole?{domModification:{attributes:{role:l.role.getOr("menu")}}}:{}}),T0=Zh({name:"Menu",configFields:NW(),partFields:zW(),factory:$W}),VW=l=>Ze(l,(N,W)=>({k:N,v:W})),FB=(l,N,W,fe)=>Ge(W,fe).bind(Se=>Ge(l,Se).bind(Be=>{const qe=FB(l,N,W,Be);return I.some([Be].concat(qe))})).getOr([]),Nw=(l,N)=>{const W={};We(l,(qe,ft)=>{q(qe,yt=>{W[yt]=ft})});const fe=N,Se=VW(N),Be=Ue(Se,(qe,ft)=>[ft].concat(FB(W,fe,Se,ft)));return Ue(W,qe=>Ge(Be,qe).getOr([qe]))},$B=()=>{const l=wi({}),N=wi({}),W=wi({}),fe=ds(),Se=wi({}),Be=()=>{l.set({}),N.set({}),W.set({}),fe.clear()},qe=()=>fe.get().isNone(),ft=(ko,_i)=>{N.set({...N.get(),[ko]:{type:"prepared",menu:_i}})},yt=(ko,_i,Pi,Ao)=>{fe.set(ko),l.set(Pi),N.set(_i),Se.set(Ao);const $i=Nw(Ao,Pi);W.set($i)},Lt=ko=>tt(l.get(),(_i,Pi)=>_i===ko),Ht=(ko,_i,Pi)=>cr(ko).bind(Ao=>Lt(ko).bind($i=>_i($i).map(yi=>({triggeredMenu:Ao,triggeringItem:yi,triggeringPath:Pi})))),fn=(ko,_i)=>{const Pi=me(br(ko).toArray(),Ao=>cr(Ao).isSome());return Ge(W.get(),ko).bind(Ao=>{const $i=we(Pi.concat(Ao)),yi=ve($i,(Xi,ks)=>Ht(Xi,_i,$i.slice(0,ks+1)).fold(()=>St(fe.get(),Xi)?[]:[I.none()],Ic=>[I.some(Ic)]));return Yt(yi)})},Rn=ko=>Ge(l.get(),ko).map(_i=>{const Pi=Ge(W.get(),ko).getOr([]);return[_i].concat(Pi)}),Bn=ko=>Ge(W.get(),ko).bind(_i=>_i.length>1?I.some(_i.slice(1)):I.none()),er=ko=>Ge(W.get(),ko),cr=ko=>Xr(ko).bind(VB),Xr=ko=>Ge(N.get(),ko),br=ko=>Ge(l.get(),ko);return{setMenuBuilt:ft,setContents:yt,expand:Rn,refresh:er,collapse:Bn,lookupMenu:Xr,lookupItem:br,otherMenus:ko=>{const _i=Se.get();return Te(ke(_i),ko)},getPrimary:()=>fe.get().bind(cr),getMenus:()=>N.get(),clear:Be,isClear:qe,getTriggeringPath:fn}},VB=l=>l.type==="prepared"?I.some(l.menu):I.none(),ox={init:$B,extractPreparedMenu:VB},UB=Li("tiered-menu-item-highlight"),jB=Li("tiered-menu-item-dehighlight");var Gu;(function(l){l[l.HighlightMenuAndItem=0]="HighlightMenuAndItem",l[l.HighlightJustMenu=1]="HighlightJustMenu",l[l.HighlightNone=2]="HighlightNone"})(Gu||(Gu={}));const QB=(l,N)=>{const W=ds(),fe=(Ko,Oi,La)=>Ue(La,(_a,fa)=>{const Qa=()=>T0.sketch({..._a,value:fa,markers:l.markers,fakeFocus:l.fakeFocus,onHighlight:(ac,vl)=>{sa(ac,UB,{menuComp:ac,itemComp:vl})},onDehighlight:(ac,vl)=>{sa(ac,jB,{menuComp:ac,itemComp:vl})},focusManager:l.fakeFocus?n6():H3()});return fa===Oi?{type:"prepared",menu:Ko.getSystem().build(Qa())}:{type:"notbuilt",nbMenu:Qa}}),Se=ox.init(),Be=Ko=>{const Oi=fe(Ko,l.data.primary,l.data.menus),La=yt();return Se.setContents(l.data.primary,Oi,l.data.expansions,La),Se.getPrimary()},qe=Ko=>Ei.getValue(Ko).value,ft=(Ko,Oi,La)=>Oe(Oi,_a=>{if(!_a.getSystem().isConnected())return I.none();const fa=ta.getCandidates(_a);return ce(fa,Qa=>qe(Qa)===La)}),yt=Ko=>Ue(l.data.menus,(Oi,La)=>ve(Oi.items,_a=>_a.type==="separator"?[]:[_a.data.value])),Lt=ta.highlight,Ht=(Ko,Oi)=>{Lt(Ko,Oi),ta.getHighlighted(Oi).orThunk(()=>ta.getFirst(Oi)).each(La=>{l.fakeFocus?ta.highlight(Oi,La):t1(Ko,La.element,hb())})},fn=(Ko,Oi)=>zt(re(Oi,La=>Ko.lookupMenu(La).bind(_a=>_a.type==="prepared"?I.some(_a.menu):I.none()))),Rn=(Ko,Oi,La)=>{const _a=fn(Oi,Oi.otherMenus(La));q(_a,fa=>{Oc(fa.element,[l.markers.backgroundMenu]),l.stayInDom||Fa.remove(Ko,fa)})},Bn=Ko=>W.get().getOrThunk(()=>{const Oi={},La=Yd(Ko.element,`.${l.markers.item}`),_a=me(La,fa=>Nr(fa,"aria-haspopup")==="true");return q(_a,fa=>{Ko.getSystem().getByDom(fa).each(Qa=>{const ac=qe(Qa);Oi[ac]=Qa})}),W.set(Oi),Oi}),er=(Ko,Oi)=>{const La=Bn(Ko);We(La,(_a,fa)=>{const Qa=X(Oi,fa);Cr(_a.element,"aria-expanded",Qa)})},cr=(Ko,Oi,La)=>I.from(La[0]).bind(_a=>Oi.lookupMenu(_a).bind(fa=>{if(fa.type==="notbuilt")return I.none();{const Qa=fa.menu,ac=fn(Oi,La.slice(1));return q(ac,vl=>{uc(vl.element,l.markers.backgroundMenu)}),Gn(Qa.element)||Fa.append(Ko,ea(Qa)),Oc(Qa.element,[l.markers.backgroundMenu]),Ht(Ko,Qa),Rn(Ko,Oi,La),I.some(Qa)}}));let Xr;(function(Ko){Ko[Ko.HighlightSubmenu=0]="HighlightSubmenu",Ko[Ko.HighlightParent=1]="HighlightParent"})(Xr||(Xr={}));const br=(Ko,Oi,La)=>{if(La.type==="notbuilt"){const _a=Ko.getSystem().build(La.nbMenu());return Se.setMenuBuilt(Oi,_a),_a}else return La.menu},Fr=(Ko,Oi,La=Xr.HighlightSubmenu)=>{if(Oi.hasConfigured(he)&&he.isDisabled(Oi))return I.some(Oi);{const _a=qe(Oi);return Se.expand(_a).bind(fa=>(er(Ko,fa),I.from(fa[0]).bind(Qa=>Se.lookupMenu(Qa).bind(ac=>{const vl=br(Ko,Qa,ac);return Gn(vl.element)||Fa.append(Ko,ea(vl)),l.onOpenSubmenu(Ko,Oi,vl,we(fa)),La===Xr.HighlightSubmenu?(ta.highlightFirst(vl),cr(Ko,Se,fa)):(ta.dehighlightAll(vl),I.some(Oi))}))))}},jr=(Ko,Oi)=>{const La=qe(Oi);return Se.collapse(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a).map(fa=>(l.onCollapseMenu(Ko,Oi,fa),fa))))},Ro=(Ko,Oi)=>{const La=qe(Oi);return Se.refresh(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a)))},ko=(Ko,Oi)=>M2(Oi.element)?I.none():Fr(Ko,Oi,Xr.HighlightSubmenu),_i=(Ko,Oi)=>M2(Oi.element)?I.none():jr(Ko,Oi),Pi=(Ko,Oi)=>jr(Ko,Oi).orThunk(()=>l.onEscape(Ko,Oi).map(()=>Ko)),Ao=Ko=>(Oi,La)=>Sc(La.getSource(),`.${l.markers.item}`).bind(_a=>Oi.getSystem().getByDom(_a).toOptional().bind(fa=>Ko(Oi,fa).map(k))),$i=Rl([Lo(NB(),(Ko,Oi)=>{const La=Oi.event.item;Se.lookupItem(qe(La)).each(()=>{const _a=Oi.event.menu;ta.highlight(Ko,_a);const fa=qe(Oi.event.item);Se.refresh(fa).each(Qa=>Rn(Ko,Se,Qa))})}),Sh((Ko,Oi)=>{const La=Oi.event.target;Ko.getSystem().getByDom(La).each(_a=>{qe(_a).indexOf("collapse-item")===0&&jr(Ko,_a),Fr(Ko,_a,Xr.HighlightSubmenu).fold(()=>{l.onExecute(Ko,_a)},v)})}),wc((Ko,Oi)=>{Be(Ko).each(La=>{Fa.append(Ko,ea(La)),l.onOpenMenu(Ko,La),l.highlightOnOpen===Gu.HighlightMenuAndItem?Ht(Ko,La):l.highlightOnOpen===Gu.HighlightJustMenu&&Lt(Ko,La)})}),Lo(UB,(Ko,Oi)=>{l.onHighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),Lo(jB,(Ko,Oi)=>{l.onDehighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),...l.navigateOnHover?[Lo(NE(),(Ko,Oi)=>{const La=Oi.event.item;Ro(Ko,La),Fr(Ko,La,Xr.HighlightParent),l.onHover(Ko,La)})]:[]]),yi=Ko=>ta.getHighlighted(Ko).bind(ta.getHighlighted),Xi=Ko=>{yi(Ko).each(Oi=>{jr(Ko,Oi)})},ks=Ko=>{Se.getPrimary().each(Oi=>{Ht(Ko,Oi)})},Ic=Ko=>I.from(Ko.components()[0]).filter(Oi=>Nr(Oi.element,"role")==="menu"),Ui={collapseMenu:Xi,highlightPrimary:ks,repositionMenus:Ko=>{Se.getPrimary().bind(La=>yi(Ko).bind(_a=>{const fa=qe(_a),Qa=ot(Se.getMenus()),ac=zt(re(Qa,ox.extractPreparedMenu));return Se.getTriggeringPath(fa,vl=>ft(Ko,ac,vl))}).map(_a=>({primary:La,triggeringPath:_a}))).fold(()=>{Ic(Ko).each(La=>{l.onRepositionMenu(Ko,La,[])})},({primary:La,triggeringPath:_a})=>{l.onRepositionMenu(Ko,La,_a)})}};return{uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.tmenuBehaviours,[ha.config({mode:"special",onRight:Ao(ko),onLeft:Ao(_i),onEscape:Ao(Pi),focusIn:(Ko,Oi)=>{Se.getPrimary().each(La=>{t1(Ko,La.element,hb())})}}),ta.config({highlightClass:l.markers.selectedMenu,itemClass:l.markers.menu}),Xs.config({find:Ko=>ta.getHighlighted(Ko)}),Fa.config({})]),eventOrder:l.eventOrder,apis:Ui,events:$i}},HB=x("collapse-item"),ZB=(l,N,W)=>({primary:l,menus:N,expansions:W}),UW=(l,N)=>({primary:l,menus:Sa(l,N),expansions:{}}),p6=l=>({value:Li(HB()),meta:{text:l}}),B2=Qp({name:"TieredMenu",configFields:[Sb("onExecute"),Sb("onEscape"),Ch("onOpenMenu"),Ch("onOpenSubmenu"),Ss("onRepositionMenu"),Ss("onCollapseMenu"),Ar("highlightOnOpen",Gu.HighlightMenuAndItem),si("data",[pn("primary"),pn("menus"),pn("expansions")]),Ar("fakeFocus",!1),Ss("onHighlightItem"),Ss("onDehighlightItem"),Ss("onHover"),Um(),pn("dom"),Ar("navigateOnHover",!0),Ar("stayInDom",!1),Pd("tmenuBehaviours",[ha,ta,Xs,Fa]),Ar("eventOrder",{})],apis:{collapseMenu:(l,N)=>{l.collapseMenu(N)},highlightPrimary:(l,N)=>{l.highlightPrimary(N)},repositionMenus:(l,N)=>{l.repositionMenus(N)}},factory:QB,extraApis:{tieredData:ZB,singleData:UW,collapseItem:p6}}),jW=(l,N,W,fe,Se)=>{const Be=()=>l.lazySink(N),qe=fe.type==="horizontal"?{layouts:{onLtr:()=>Hm(),onRtl:()=>yv()}}:{},ft=Lt=>Lt.length===2,yt=Lt=>ft(Lt)?qe:{};return B2.sketch({dom:{tag:"div"},data:fe.data,markers:fe.menu.markers,highlightOnOpen:fe.menu.highlightOnOpen,fakeFocus:fe.menu.fakeFocus,onEscape:()=>(Ys.close(N),l.onEscape.map(Lt=>Lt(N)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(Lt,Ht)=>{Ph.positionWithinBounds(Be().getOrDie(),Ht,W,Se())},onOpenSubmenu:(Lt,Ht,fn,Rn)=>{const Bn=Be().getOrDie();Ph.position(Bn,fn,{anchor:{type:"submenu",item:Ht,...yt(Rn)}})},onRepositionMenu:(Lt,Ht,fn)=>{const Rn=Be().getOrDie();Ph.positionWithinBounds(Rn,Ht,W,Se()),q(fn,Bn=>{const er=yt(Bn.triggeringPath);Ph.position(Rn,Bn.triggeredMenu,{anchor:{type:"submenu",item:Bn.triggeringItem,...er}})})}})},QW=(l,N)=>{const W=(Rn,Bn)=>l.getRelated(Rn).exists(cr=>Cf(cr,Bn)),fe=(Rn,Bn)=>{Ys.setContent(Rn,Bn)},Se=(Rn,Bn,er)=>{const cr=I.none;Be(Rn,Bn,er,cr)},Be=(Rn,Bn,er,cr)=>{const Xr=l.lazySink(Rn).getOrDie();Ys.openWhileCloaked(Rn,Bn,()=>Ph.positionWithinBounds(Xr,Rn,er,cr())),Ei.setValue(Rn,I.some({mode:"position",config:er,getBounds:cr}))},qe=(Rn,Bn,er)=>{ft(Rn,Bn,er,I.none)},ft=(Rn,Bn,er,cr)=>{const Xr=jW(l,Rn,Bn,er,cr);Ys.open(Rn,Xr),Ei.setValue(Rn,I.some({mode:"menu",menu:Xr}))},yt=Rn=>{Ys.isOpen(Rn)&&(Ei.setValue(Rn,I.none()),Ys.close(Rn))},Lt=Rn=>Ys.getState(Rn),Ht=Rn=>{Ys.isOpen(Rn)&&Ei.getValue(Rn).each(Bn=>{switch(Bn.mode){case"menu":Ys.getState(Rn).each(B2.repositionMenus);break;case"position":const er=l.lazySink(Rn).getOrDie();Ph.positionWithinBounds(er,Rn,Bn.config,Bn.getBounds());break}})},fn={setContent:fe,showAt:Se,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:yt,getContent:Lt,reposition:Ht,isOpen:Ys.isOpen};return{uid:l.uid,dom:l.dom,behaviours:Rd(l.inlineBehaviours,[Ys.config({isPartOf:(Rn,Bn,er)=>Cf(Bn,er)||W(Rn,er),getAttachPoint:Rn=>l.lazySink(Rn).getOrDie(),onOpen:Rn=>{l.onShow(Rn)},onClose:Rn=>{l.onHide(Rn)}}),Ei.config({store:{mode:"memory",initialValue:I.none()}}),Ad.config({channels:{...Ly({isExtraPart:N.isExtraPart,...l.fireDismissalEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({})}),...ak({...l.fireRepositionEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({}),doReposition:Ht})}})]),eventOrder:l.eventOrder,apis:fn}},Xc=Qp({name:"InlineView",configFields:[pn("lazySink"),Ss("onShow"),Ss("onHide"),ai("onEscape"),Pd("inlineBehaviours",[Ys,Ei,Ad]),Ai("fireDismissalEventInstead",[Ar("event",J0())]),Ai("fireRepositionEventInstead",[Ar("event",F_())]),Ar("getRelated",I.none),Ar("isExtraPart",D),Ar("eventOrder",I.none)],factory:QW,apis:{showAt:(l,N,W,fe)=>{l.showAt(N,W,fe)},showWithinBounds:(l,N,W,fe,Se)=>{l.showWithinBounds(N,W,fe,Se)},showMenuAt:(l,N,W,fe)=>{l.showMenuAt(N,W,fe)},showMenuWithinBounds:(l,N,W,fe,Se)=>{l.showMenuWithinBounds(N,W,fe,Se)},hide:(l,N)=>{l.hide(N)},isOpen:(l,N)=>l.isOpen(N),getContent:(l,N)=>l.getContent(N),setContent:(l,N,W)=>{l.setContent(N,W)},reposition:(l,N)=>{l.reposition(N)}}});var J3=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qB=tinymce.util.Tools.resolve("tinymce.EditorManager"),$w=tinymce.util.Tools.resolve("tinymce.Env"),C0;(function(l){l.default="wrap",l.floating="floating",l.sliding="sliding",l.scrolling="scrolling"})(C0||(C0={}));var Vw;(function(l){l.auto="auto",l.top="top",l.bottom="bottom"})(Vw||(Vw={}));const gc=l=>N=>N.options.get(l),Rk=l=>N=>I.from(l(N)),WB=l=>{const N=$w.deviceType.isPhone(),W=$w.deviceType.isTablet()||N,fe=l.options.register,Se=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);fe("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),fe("skin_url",{processor:"string"}),fe("height",{processor:Be,default:Math.max(l.getElement().offsetHeight,400)}),fe("width",{processor:Be,default:Fw.DOM.getStyle(l.getElement(),"width")}),fe("min_height",{processor:"number",default:100}),fe("min_width",{processor:"number"}),fe("max_height",{processor:"number"}),fe("max_width",{processor:"number"}),fe("style_formats",{processor:"object[]"}),fe("style_formats_merge",{processor:"boolean",default:!1}),fe("style_formats_autohide",{processor:"boolean",default:!1}),fe("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),fe("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),fe("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),fe("font_size_input_default_unit",{processor:"string",default:"pt"}),fe("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),fe("content_langs",{processor:"object[]"}),fe("removed_menuitems",{processor:"string",default:""}),fe("menubar",{processor:qe=>n(qe)||w(qe),default:!N}),fe("menu",{processor:"object",default:{}}),fe("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Z(9,qe=>{fe("toolbar"+(qe+1),{processor:"string"})}),fe("toolbar_mode",{processor:"string",default:W?"scrolling":"floating"}),fe("toolbar_groups",{processor:"object",default:{}}),fe("toolbar_location",{processor:"string",default:Vw.auto}),fe("toolbar_persist",{processor:"boolean",default:!1}),fe("toolbar_sticky",{processor:"boolean",default:l.inline}),fe("toolbar_sticky_offset",{processor:"number",default:0}),fe("fixed_toolbar_container",{processor:"string",default:""}),fe("fixed_toolbar_container_target",{processor:"object"}),fe("ui_mode",{processor:"string",default:"combined"}),fe("file_picker_callback",{processor:"function"}),fe("file_picker_validator_handler",{processor:"function"}),fe("file_picker_types",{processor:"string"}),fe("typeahead_urls",{processor:"boolean",default:!0}),fe("anchor_top",{processor:Se,default:"#top"}),fe("anchor_bottom",{processor:Se,default:"#bottom"}),fe("draggable_modal",{processor:"boolean",default:!1}),fe("statusbar",{processor:"boolean",default:!0}),fe("elementpath",{processor:"boolean",default:!0}),fe("branding",{processor:"boolean",default:!0}),fe("promotion",{processor:"boolean",default:!0}),fe("resize",{processor:qe=>qe==="both"||w(qe),default:!$w.deviceType.isTouch()}),fe("sidebar_show",{processor:"string"}),fe("help_accessibility",{processor:"boolean",default:l.hasPlugin("help")}),fe("default_font_stack",{processor:"string[]",default:[]})},YB=gc("readonly"),Lk=gc("height"),UE=gc("width"),Uw=Rk(gc("min_width")),eS=Rk(gc("min_height")),Ik=Rk(gc("max_width")),m6=Rk(gc("max_height")),XB=Rk(gc("style_formats")),GB=gc("style_formats_merge"),KB=gc("style_formats_autohide"),JB=gc("content_langs"),g6=gc("removed_menuitems"),jw=gc("toolbar_mode"),jE=gc("toolbar_groups"),Dk=gc("toolbar_location"),HW=gc("fixed_toolbar_container"),ez=gc("fixed_toolbar_container_target"),tz=gc("toolbar_persist"),nz=gc("toolbar_sticky_offset"),rz=gc("menubar"),Bk=gc("toolbar"),oz=gc("file_picker_callback"),iz=gc("file_picker_validator_handler"),v6=gc("font_size_input_default_unit"),QE=gc("file_picker_types"),HE=gc("typeahead_urls"),az=gc("anchor_top"),y6=gc("anchor_bottom"),sz=gc("draggable_modal"),lz=gc("statusbar"),cz=gc("elementpath"),ZE=gc("branding"),uz=gc("resize"),qE=gc("paste_as_text"),b6=gc("sidebar_show"),fz=gc("promotion"),zk=gc("help_accessibility"),dz=gc("default_font_stack"),WE=l=>l.options.get("skin")===!1,x6=l=>l.options.get("menubar")!==!1,YE=l=>{const N=l.options.get("skin_url");if(WE(l))return N;if(N)return l.documentBaseURI.toAbsolute(N);{const W=l.options.get("skin");return qB.baseURL+"/skins/ui/"+W}},_6=l=>I.from(l.options.get("skin_url")),hz=l=>l.options.get("line_height_formats").split(" "),Nk=l=>{const N=Bk(l),W=n(N),fe=i(N)&&N.length>0;return!Fk(l)&&(fe||W||N===!0)},XE=l=>{const N=Z(9,fe=>l.options.get("toolbar"+(fe+1))),W=me(N,n);return Ot(W.length>0,W)},Fk=l=>XE(l).fold(()=>{const N=Bk(l);return p(N,n)&&N.length>0},k),$k=l=>Dk(l)===Vw.bottom,z2=l=>{var N;if(!l.inline)return I.none();const W=(N=HW(l))!==null&&N!==void 0?N:"";if(W.length>0)return qa(Lr(),W);const fe=ez(l);return a(fe)?I.some(Nt.fromDom(fe)):I.none()},tS=l=>l.inline&&z2(l).isSome(),GE=l=>z2(l).getOrThunk(()=>Er(kr(Nt.fromDom(l.getElement())))),Vk=l=>l.inline&&!x6(l)&&!Nk(l)&&!Fk(l),Qw=l=>(l.options.get("toolbar_sticky")||l.inline)&&!tS(l)&&!Vk(l),N2=l=>!tS(l)&&l.options.get("ui_mode")==="split",pz=l=>{const N=l.options.get("menu");return Ue(N,W=>({...W,items:W.items}))};var mz=Object.freeze({__proto__:null,get ToolbarMode(){return C0},get ToolbarLocation(){return Vw},register:WB,getSkinUrl:YE,getSkinUrlOption:_6,isReadOnly:YB,isSkinDisabled:WE,getHeightOption:Lk,getWidthOption:UE,getMinWidthOption:Uw,getMinHeightOption:eS,getMaxWidthOption:Ik,getMaxHeightOption:m6,getUserStyleFormats:XB,shouldMergeStyleFormats:GB,shouldAutoHideStyleFormats:KB,getLineHeightFormats:hz,getContentLanguages:JB,getRemovedMenuItems:g6,isMenubarEnabled:x6,isMultipleToolbars:Fk,isToolbarEnabled:Nk,isToolbarPersist:tz,getMultipleToolbarsOption:XE,getUiContainer:GE,useFixedContainer:tS,isSplitUiMode:N2,getToolbarMode:jw,isDraggableModal:sz,isDistractionFree:Vk,isStickyToolbar:Qw,getStickyToolbarOffset:nz,getToolbarLocation:Dk,isToolbarLocationBottom:$k,getToolbarGroups:jE,getMenus:pz,getMenubar:rz,getToolbar:Bk,getFilePickerCallback:oz,getFilePickerTypes:QE,useTypeaheadUrls:HE,getAnchorTop:az,getAnchorBottom:y6,getFilePickerValidatorHandler:iz,getFontSizeInputDefaultUnit:v6,useStatusBar:lz,useElementPath:cz,promotionEnabled:fz,useBranding:ZE,getResize:uz,getPasteAsText:qE,getSidebarShow:b6,useHelpAccessibility:zk,getDefaultFontStack:dz});const ZW=["visible","hidden","clip"],KE=l=>Dt(l).length>0&&!X(ZW,l),JE=l=>{if(sr(l)){const N=Di(l,"overflow-x"),W=Di(l,"overflow-y");return KE(N)||KE(W)}else return!1},eP=l=>l.plugins.fullscreen&&l.plugins.fullscreen.isFullscreen(),qW=(l,N)=>{const W=_2(N,JE),fe=W.length===0?on(N).map(an).map(Se=>_2(Se,JE)).getOr([]):W;return Qe(fe).map(Se=>({element:Se,others:fe.slice(1),isFullscreen:()=>eP(l)}))},ix=(l,N)=>N2(l)?qW(l,N):I.none(),Hw=l=>{const N=[...re(l.others,cl),ts()];return l.isFullscreen()?ts():Qc(cl(l.element),N)},Rh=Qp({name:"Button",factory:l=>{const N=f6(l.action),W=l.dom.tag,fe=Be=>Ge(l.dom,"attributes").bind(qe=>Ge(qe,Be)),Se=()=>{if(W==="button"){const Be=fe("type").getOr("button"),qe=fe("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:l.role.getOr(fe("role").getOr("button"))}};return{uid:l.uid,dom:l.dom,components:l.components,events:N,behaviours:Km.augment(l.buttonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:Se()},eventOrder:l.eventOrder}},configFields:[Ar("uid",void 0),pn("dom"),Ar("components",[]),Km.field("buttonBehaviours",[Ra,ha]),Yo("action"),Yo("role"),Ar("eventOrder",{})]}),WW=l=>{const N=l.dom.attributes!==void 0?l.dom.attributes:[];return se(N,(W,fe)=>fe.name==="class"?W:{...W,[fe.name]:fe.value},{})},tP=l=>Array.prototype.slice.call(l.dom.classList,0),Ev=l=>{const N=Nt.fromHtml(l),W=Do(N),fe=WW(N),Se=tP(N),Be=W.length===0?{}:{innerHtml:Np(N)};return{tag:vr(N),classes:Se,attributes:fe,...Be}},ml=l=>{const N=lE(l)&&pt(l,"uid")?l.uid:gy("memento");return{get:Be=>Be.getSystem().getByUid(N).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(N).toOptional(),asSpec:()=>({...l,uid:N})}};var YW=Object.freeze({__proto__:null,exhibit:(l,N)=>np({attributes:ua([{key:N.tabAttr,value:"true"}])})}),XW=[Ar("tabAttr","data-alloy-tabstop")];const Rc=id({fields:XW,name:"tabstopping",active:YW}),vz=Li("tooltip.exclusive"),Uk=Li("tooltip.show"),jk=Li("tooltip.hide"),Qk=Li("tooltip.immediateHide"),Hk=Li("tooltip.immediateShow"),yz=(l,N,W)=>{l.getSystem().broadcastOn([vz],{})};var GW=Object.freeze({__proto__:null,hideAllExclusive:yz,immediateOpenClose:(l,N,W,fe)=>Za(l,fe?Hk:Qk),isEnabled:(l,N,W)=>W.isEnabled(),setComponents:(l,N,W,fe)=>{W.getTooltip().each(Se=>{Se.getSystem().isConnected()&&Fa.set(Se,fe)})},setEnabled:(l,N,W,fe)=>W.setEnabled(fe)}),nP=Object.freeze({__proto__:null,events:(l,N)=>{const W=qe=>{N.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(kv(ft),l.onHide(qe,ft),N.clearTooltip())}),N.clearTimer()},fe=qe=>{if(!N.isShowing()&&N.isEnabled()){yz(qe);const ft=l.lazySink(qe).getOrDie(),yt=qe.getSystem().build({dom:l.tooltipDom,components:l.tooltipComponents,events:Rl(l.mode==="normal"?[Lo(wu(),Lt=>{Za(qe,Uk)}),Lo(i0(),Lt=>{Za(qe,jk)})]:[]),behaviours:ei([Fa.config({})])});N.setTooltip(yt),Eg(ft,yt),l.onShow(qe,yt),Ph.position(ft,yt,{anchor:l.anchor(qe)})}},Se=qe=>{N.getTooltip().each(ft=>{const yt=l.lazySink(qe).getOrDie();Ph.position(yt,ft,{anchor:l.anchor(qe)})})},Be=()=>{switch(l.mode){case"normal":return[Lo(Dp(),qe=>{Za(qe,Hk)}),Lo(kf(),qe=>{Za(qe,Qk)}),Lo(wu(),qe=>{Za(qe,Uk)}),Lo(i0(),qe=>{Za(qe,jk)})];case"follow-highlight":return[Lo(e1(),(qe,ft)=>{Za(qe,Uk)}),Lo(cu(),qe=>{Za(qe,jk)})];case"children-normal":return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)}),Lo(wu(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{N.getTooltip().fold(()=>{Za(qe,Uk)},yt=>{N.isShowing()&&(l.onShow(qe,yt),Se(qe))})})}),Lo(i0(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Za(qe,jk)},v)})];default:return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)})]}};return Rl(ye([[Nx(qe=>{l.onSetup(qe)}),Lo(Uk,qe=>{N.resetTimer(()=>{fe(qe)},l.delayForShow())}),Lo(jk,qe=>{N.resetTimer(()=>{W(qe)},l.delayForHide())}),Lo(Hk,qe=>{N.resetTimer(()=>{fe(qe)},0)}),Lo(Qk,qe=>{N.resetTimer(()=>{W(qe)},0)}),Lo(yp(),(qe,ft)=>{const yt=ft;yt.universal||X(yt.channels,vz)&&W(qe)}),xg(qe=>{W(qe)})],Be()]))}}),KW=[pn("lazySink"),pn("tooltipDom"),Ar("exclusive",!0),Ar("tooltipComponents",[]),ys("delayForShow",x(300)),ys("delayForHide",x(300)),ys("onSetup",v),rl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),Ar("anchor",l=>({type:"hotspot",hotspot:l,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})),Ss("onHide"),Ss("onShow")],JW=Object.freeze({__proto__:null,init:()=>{const l=wi(!0),N=ds(),W=ds(),fe=()=>{N.on(clearTimeout)},Se=(qe,ft)=>{fe(),N.set(setTimeout(qe,ft))},Be=x("not-implemented");return Hd({getTooltip:W.get,isShowing:W.isSet,setTooltip:W.set,clearTooltip:W.clear,clearTimer:fe,resetTimer:Se,readState:Be,isEnabled:()=>l.get(),setEnabled:qe=>l.set(qe)})}});const Vu=id({fields:KW,name:"tooltipping",active:nP,state:JW,apis:GW}),{entries:bz,setPrototypeOf:xz,isFrozen:eY,getPrototypeOf:tY,getOwnPropertyDescriptor:nY}=Object;let{freeze:eg,seal:A0,create:rY}=Object,{apply:rP,construct:oP}=typeof Reflect<"u"&&Reflect;rP||(rP=function(N,W,fe){return N.apply(W,fe)}),eg||(eg=function(N){return N}),A0||(A0=function(N){return N}),oP||(oP=function(N,W){return new N(...W)});const oY=T1(Array.prototype.forEach),iY=T1(Array.prototype.pop),Zk=T1(Array.prototype.push),O6=T1(String.prototype.toLowerCase),iP=T1(String.prototype.toString),aY=T1(String.prototype.match),Pv=T1(String.prototype.replace),sY=T1(String.prototype.indexOf),lY=T1(String.prototype.trim),M0=T1(RegExp.prototype.test),F2=aP(TypeError);function T1(l){return function(N){for(var W=arguments.length,fe=new Array(W>1?W-1:0),Se=1;Se/gm),fY=A0(/\${[\w\W]*}/gm),Yk=A0(/^data-[\-\w.\u00B7-\uFFFF]/),dY=A0(/^aria-[\-\w]+$/),dP=A0(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hP=A0(/^(?:\w+script|data):/i),hY=A0(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),A6=A0(/^html$/i);var M6=Object.freeze({__proto__:null,MUSTACHE_EXPR:cY,ERB_EXPR:uY,TMPLIT_EXPR:fY,DATA_ATTR:Yk,ARIA_ATTR:dY,IS_ALLOWED_URI:dP,IS_SCRIPT_OR_DATA:hP,ATTR_WHITESPACE:hY,DOCTYPE_NAME:A6});const pY=()=>typeof window>"u"?null:window,_z=function(N,W){if(typeof N!="object"||typeof N.createPolicy!="function")return null;let fe=null;const Se="data-tt-policy-suffix";W&&W.hasAttribute(Se)&&(fe=W.getAttribute(Se));const Be="dompurify"+(fe?"#"+fe:"");try{return N.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function pP(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pY();const N=js=>pP(js);if(N.version="3.0.5",N.removed=[],!l||!l.document||l.document.nodeType!==9)return N.isSupported=!1,N;const W=l.document,fe=W.currentScript;let{document:Se}=l;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:yt,NodeFilter:Lt,NamedNodeMap:Ht=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:fn,DOMParser:Rn,trustedTypes:Bn}=l,er=yt.prototype,cr=S6(er,"cloneNode"),Xr=S6(er,"nextSibling"),br=S6(er,"childNodes"),Fr=S6(er,"parentNode");if(typeof qe=="function"){const js=Se.createElement("template");js.content&&js.content.ownerDocument&&(Se=js.content.ownerDocument)}let jr,Ro="";const{implementation:ko,createNodeIterator:_i,createDocumentFragment:Pi,getElementsByTagName:Ao}=Se,{importNode:$i}=W;let yi={};N.isSupported=typeof bz=="function"&&typeof Fr=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Xi,ERB_EXPR:ks,TMPLIT_EXPR:Ic,DATA_ATTR:hl,ARIA_ATTR:Ui,IS_SCRIPT_OR_DATA:Ko,ATTR_WHITESPACE:Oi}=M6;let{IS_ALLOWED_URI:La}=M6,_a=null;const fa=rc({},[...sP,...lP,...qk,...k6,...Wk]);let Qa=null;const ac=rc({},[...fP,...C1,...T6,...C6]);let vl=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dp=null,qg=null,Vv=!0,Wh=!0,Wg=!1,U0=!0,km=!1,qy=!1,xO=!1,OL=!1,qS=!1,_8=!1,aQ=!1,dde=!0,hde=!1;const t3e="user-content-";let rie=!0,SL=!1,w8={},O8=null;const pde=rc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let mde=null;const gde=rc({},["audio","video","img","source","image","track"]);let oie=null;const vde=rc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sQ="http://www.w3.org/1998/Math/MathML",lQ="http://www.w3.org/2000/svg",_O="http://www.w3.org/1999/xhtml";let S8=_O,iie=!1,aie=null;const n3e=rc({},[sQ,lQ,_O],iP);let yT;const r3e=["application/xhtml+xml","text/html"],o3e="text/html";let Tm,k8=null;const i3e=Se.createElement("form"),yde=function(So){return So instanceof RegExp||So instanceof Function},sie=function(So){if(!(k8&&k8===So)){if((!So||typeof So!="object")&&(So={}),So=nS(So),yT=r3e.indexOf(So.PARSER_MEDIA_TYPE)===-1?yT=o3e:yT=So.PARSER_MEDIA_TYPE,Tm=yT==="application/xhtml+xml"?iP:O6,_a="ALLOWED_TAGS"in So?rc({},So.ALLOWED_TAGS,Tm):fa,Qa="ALLOWED_ATTR"in So?rc({},So.ALLOWED_ATTR,Tm):ac,aie="ALLOWED_NAMESPACES"in So?rc({},So.ALLOWED_NAMESPACES,iP):n3e,oie="ADD_URI_SAFE_ATTR"in So?rc(nS(vde),So.ADD_URI_SAFE_ATTR,Tm):vde,mde="ADD_DATA_URI_TAGS"in So?rc(nS(gde),So.ADD_DATA_URI_TAGS,Tm):gde,O8="FORBID_CONTENTS"in So?rc({},So.FORBID_CONTENTS,Tm):pde,dp="FORBID_TAGS"in So?rc({},So.FORBID_TAGS,Tm):{},qg="FORBID_ATTR"in So?rc({},So.FORBID_ATTR,Tm):{},w8="USE_PROFILES"in So?So.USE_PROFILES:!1,Vv=So.ALLOW_ARIA_ATTR!==!1,Wh=So.ALLOW_DATA_ATTR!==!1,Wg=So.ALLOW_UNKNOWN_PROTOCOLS||!1,U0=So.ALLOW_SELF_CLOSE_IN_ATTR!==!1,km=So.SAFE_FOR_TEMPLATES||!1,qy=So.WHOLE_DOCUMENT||!1,qS=So.RETURN_DOM||!1,_8=So.RETURN_DOM_FRAGMENT||!1,aQ=So.RETURN_TRUSTED_TYPE||!1,OL=So.FORCE_BODY||!1,dde=So.SANITIZE_DOM!==!1,hde=So.SANITIZE_NAMED_PROPS||!1,rie=So.KEEP_CONTENT!==!1,SL=So.IN_PLACE||!1,La=So.ALLOWED_URI_REGEXP||dP,S8=So.NAMESPACE||_O,vl=So.CUSTOM_ELEMENT_HANDLING||{},So.CUSTOM_ELEMENT_HANDLING&&yde(So.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vl.tagNameCheck=So.CUSTOM_ELEMENT_HANDLING.tagNameCheck),So.CUSTOM_ELEMENT_HANDLING&&yde(So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vl.attributeNameCheck=So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),So.CUSTOM_ELEMENT_HANDLING&&typeof So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(vl.allowCustomizedBuiltInElements=So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),km&&(Wh=!1),_8&&(qS=!0),w8&&(_a=rc({},[...Wk]),Qa=[],w8.html===!0&&(rc(_a,sP),rc(Qa,fP)),w8.svg===!0&&(rc(_a,lP),rc(Qa,C1),rc(Qa,C6)),w8.svgFilters===!0&&(rc(_a,qk),rc(Qa,C1),rc(Qa,C6)),w8.mathMl===!0&&(rc(_a,k6),rc(Qa,T6),rc(Qa,C6))),So.ADD_TAGS&&(_a===fa&&(_a=nS(_a)),rc(_a,So.ADD_TAGS,Tm)),So.ADD_ATTR&&(Qa===ac&&(Qa=nS(Qa)),rc(Qa,So.ADD_ATTR,Tm)),So.ADD_URI_SAFE_ATTR&&rc(oie,So.ADD_URI_SAFE_ATTR,Tm),So.FORBID_CONTENTS&&(O8===pde&&(O8=nS(O8)),rc(O8,So.FORBID_CONTENTS,Tm)),rie&&(_a["#text"]=!0),qy&&rc(_a,["html","head","body"]),_a.table&&(rc(_a,["tbody"]),delete dp.tbody),So.TRUSTED_TYPES_POLICY){if(typeof So.TRUSTED_TYPES_POLICY.createHTML!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof So.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');jr=So.TRUSTED_TYPES_POLICY,Ro=jr.createHTML("")}else jr===void 0&&(jr=_z(Bn,fe)),jr!==null&&typeof Ro=="string"&&(Ro=jr.createHTML(""));eg&&eg(So),k8=So}},bde=rc({},["mi","mo","mn","ms","mtext"]),xde=rc({},["foreignobject","desc","title","annotation-xml"]),a3e=rc({},["title","style","font","a","script"]),cQ=rc({},lP);rc(cQ,qk),rc(cQ,cP);const lie=rc({},k6);rc(lie,uP);const s3e=function(So){let oa=Fr(So);(!oa||!oa.tagName)&&(oa={namespaceURI:S8,tagName:"template"});const ja=O6(So.tagName),Yf=O6(oa.tagName);return aie[So.namespaceURI]?So.namespaceURI===lQ?oa.namespaceURI===_O?ja==="svg":oa.namespaceURI===sQ?ja==="svg"&&(Yf==="annotation-xml"||bde[Yf]):!!cQ[ja]:So.namespaceURI===sQ?oa.namespaceURI===_O?ja==="math":oa.namespaceURI===lQ?ja==="math"&&xde[Yf]:!!lie[ja]:So.namespaceURI===_O?oa.namespaceURI===lQ&&!xde[Yf]||oa.namespaceURI===sQ&&!bde[Yf]?!1:!lie[ja]&&(a3e[ja]||!cQ[ja]):!!(yT==="application/xhtml+xml"&&aie[So.namespaceURI]):!1},bT=function(So){Zk(N.removed,{element:So});try{So.parentNode.removeChild(So)}catch{So.remove()}},kL=function(So,oa){try{Zk(N.removed,{attribute:oa.getAttributeNode(So),from:oa})}catch{Zk(N.removed,{attribute:null,from:oa})}if(oa.removeAttribute(So),So==="is"&&!Qa[So])if(qS||_8)try{bT(oa)}catch{}else try{oa.setAttribute(So,"")}catch{}},_de=function(So){let oa,ja;if(OL)So=""+So;else{const Wy=aY(So,/^[\r\n\t ]+/);ja=Wy&&Wy[0]}yT==="application/xhtml+xml"&&S8===_O&&(So=''+So+"");const Yf=jr?jr.createHTML(So):So;if(S8===_O)try{oa=new Rn().parseFromString(Yf,yT)}catch{}if(!oa||!oa.documentElement){oa=ko.createDocument(S8,"template",null);try{oa.documentElement.innerHTML=iie?Ro:Yf}catch{}}const Cm=oa.body||oa.documentElement;return So&&ja&&Cm.insertBefore(Se.createTextNode(ja),Cm.childNodes[0]||null),S8===_O?Ao.call(oa,qy?"html":"body")[0]:qy?oa.documentElement:Cm},wde=function(So){return _i.call(So.ownerDocument||So,So,Lt.SHOW_ELEMENT|Lt.SHOW_COMMENT|Lt.SHOW_TEXT,null,!1)},l3e=function(So){return So instanceof fn&&(typeof So.nodeName!="string"||typeof So.textContent!="string"||typeof So.removeChild!="function"||!(So.attributes instanceof Ht)||typeof So.removeAttribute!="function"||typeof So.setAttribute!="function"||typeof So.namespaceURI!="string"||typeof So.insertBefore!="function"||typeof So.hasChildNodes!="function")},uQ=function(So){return typeof ft=="object"?So instanceof ft:So&&typeof So=="object"&&typeof So.nodeType=="number"&&typeof So.nodeName=="string"},wO=function(So,oa,ja){yi[So]&&oY(yi[So],Yf=>{Yf.call(N,oa,ja,k8)})},Ode=function(So){let oa;if(wO("beforeSanitizeElements",So,null),l3e(So))return bT(So),!0;const ja=Tm(So.nodeName);if(wO("uponSanitizeElement",So,{tagName:ja,allowedTags:_a}),So.hasChildNodes()&&!uQ(So.firstElementChild)&&(!uQ(So.content)||!uQ(So.content.firstElementChild))&&M0(/<[/\w]/g,So.innerHTML)&&M0(/<[/\w]/g,So.textContent))return bT(So),!0;if(!_a[ja]||dp[ja]){if(!dp[ja]&&kde(ja)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja)))return!1;if(rie&&!O8[ja]){const Yf=Fr(So)||So.parentNode,Cm=br(So)||So.childNodes;if(Cm&&Yf){const Wy=Cm.length;for(let Ih=Wy-1;Ih>=0;--Ih)Yf.insertBefore(cr(Cm[Ih],!0),Xr(So))}}return bT(So),!0}return So instanceof yt&&!s3e(So)||(ja==="noscript"||ja==="noembed"||ja==="noframes")&&M0(/<\/no(script|embed|frames)/i,So.innerHTML)?(bT(So),!0):(km&&So.nodeType===3&&(oa=So.textContent,oa=Pv(oa,Xi," "),oa=Pv(oa,ks," "),oa=Pv(oa,Ic," "),So.textContent!==oa&&(Zk(N.removed,{element:So.cloneNode()}),So.textContent=oa)),wO("afterSanitizeElements",So,null),!1)},Sde=function(So,oa,ja){if(dde&&(oa==="id"||oa==="name")&&(ja in Se||ja in i3e))return!1;if(!(Wh&&!qg[oa]&&M0(hl,oa))){if(!(Vv&&M0(Ui,oa))){if(!Qa[oa]||qg[oa]){if(!(kde(So)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,So)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(So))&&(vl.attributeNameCheck instanceof RegExp&&M0(vl.attributeNameCheck,oa)||vl.attributeNameCheck instanceof Function&&vl.attributeNameCheck(oa))||oa==="is"&&vl.allowCustomizedBuiltInElements&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja))))return!1}else if(!oie[oa]){if(!M0(La,Pv(ja,Oi,""))){if(!((oa==="src"||oa==="xlink:href"||oa==="href")&&So!=="script"&&sY(ja,"data:")===0&&mde[So])){if(!(Wg&&!M0(Ko,Pv(ja,Oi,"")))){if(ja)return!1}}}}}}return!0},kde=function(So){return So.indexOf("-")>0},Tde=function(So){let oa,ja,Yf,Cm;wO("beforeSanitizeAttributes",So,null);const{attributes:Wy}=So;if(!Wy)return;const Ih={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qa};for(Cm=Wy.length;Cm--;){oa=Wy[Cm];const{name:Yy,namespaceURI:cie}=oa;ja=Yy==="value"?oa.value:lY(oa.value);const u3e=ja;if(Yf=Tm(Yy),Ih.attrName=Yf,Ih.attrValue=ja,Ih.keepAttr=!0,Ih.forceKeepAttr=void 0,wO("uponSanitizeAttribute",So,Ih),ja=Ih.attrValue,Ih.forceKeepAttr)continue;if(!Ih.keepAttr){kL(Yy,So);continue}if(!U0&&M0(/\/>/i,ja)){kL(Yy,So);continue}km&&(ja=Pv(ja,Xi," "),ja=Pv(ja,ks," "),ja=Pv(ja,Ic," "));const Cde=Tm(So.nodeName);if(!Sde(Cde,Yf,ja)){kL(Yy,So);continue}if(hde&&(Yf==="id"||Yf==="name")&&(kL(Yy,So),ja=t3e+ja),jr&&typeof Bn=="object"&&typeof Bn.getAttributeType=="function"&&!cie)switch(Bn.getAttributeType(Cde,Yf)){case"TrustedHTML":{ja=jr.createHTML(ja);break}case"TrustedScriptURL":{ja=jr.createScriptURL(ja);break}}if(ja!==u3e)try{cie?So.setAttributeNS(cie,Yy,ja):So.setAttribute(Yy,ja)}catch{kL(Yy,So)}}wO("afterSanitizeAttributes",So,null)},c3e=function js(So){let oa;const ja=wde(So);for(wO("beforeSanitizeShadowDOM",So,null);oa=ja.nextNode();)wO("uponSanitizeShadowNode",oa,null),!Ode(oa)&&(oa.content instanceof Be&&js(oa.content),Tde(oa));wO("afterSanitizeShadowDOM",So,null)};return N.sanitize=function(js){let So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa,ja,Yf,Cm;if(iie=!js,iie&&(js=""),typeof js!="string"&&!uQ(js))if(typeof js.toString=="function"){if(js=js.toString(),typeof js!="string")throw F2("dirty is not a string, aborting")}else throw F2("toString is not a function");if(!N.isSupported)return js;if(xO||sie(So),N.removed=[],typeof js=="string"&&(SL=!1),SL){if(js.nodeName){const Yy=Tm(js.nodeName);if(!_a[Yy]||dp[Yy])throw F2("root node is forbidden and cannot be sanitized in-place")}}else if(js instanceof ft)oa=_de(""),ja=oa.ownerDocument.importNode(js,!0),ja.nodeType===1&&ja.nodeName==="BODY"||ja.nodeName==="HTML"?oa=ja:oa.appendChild(ja);else{if(!qS&&!km&&!qy&&js.indexOf("<")===-1)return jr&&aQ?jr.createHTML(js):js;if(oa=_de(js),!oa)return qS?null:aQ?Ro:""}oa&&OL&&bT(oa.firstChild);const Wy=wde(SL?js:oa);for(;Yf=Wy.nextNode();)Ode(Yf)||(Yf.content instanceof Be&&c3e(Yf.content),Tde(Yf));if(SL)return js;if(qS){if(_8)for(Cm=Pi.call(oa.ownerDocument);oa.firstChild;)Cm.appendChild(oa.firstChild);else Cm=oa;return(Qa.shadowroot||Qa.shadowrootmode)&&(Cm=$i.call(W,Cm,!0)),Cm}let Ih=qy?oa.outerHTML:oa.innerHTML;return qy&&_a["!doctype"]&&oa.ownerDocument&&oa.ownerDocument.doctype&&oa.ownerDocument.doctype.name&&M0(A6,oa.ownerDocument.doctype.name)&&(Ih=" -`+Ih),km&&(Ih=Pv(Ih,Xi," "),Ih=Pv(Ih,ks," "),Ih=Pv(Ih,Ic," ")),jr&&aQ?jr.createHTML(Ih):Ih},N.setConfig=function(js){sie(js),xO=!0},N.clearConfig=function(){k8=null,xO=!1},N.isValidAttribute=function(js,So,oa){k8||sie({});const ja=Tm(js),Yf=Tm(So);return Sde(ja,Yf,oa)},N.addHook=function(js,So){typeof So=="function"&&(yi[js]=yi[js]||[],Zk(yi[js],So))},N.removeHook=function(js){if(yi[js])return iY(yi[js])},N.removeHooks=function(js){yi[js]&&(yi[js]=[])},N.removeAllHooks=function(){yi={}},N}var mY=pP();const mP=l=>mY().sanitize(l);var Dg=tinymce.util.Tools.resolve("tinymce.util.I18n");const gY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},wz="temporary-placeholder",gP=l=>()=>Ge(l,wz).getOr("!not found!"),vP=(l,N)=>{const W=l.toLowerCase();if(Dg.isRtl()){const fe=vt(W,"-rtl");return ht(N,fe)?fe:W}else return W},Oz=(l,N)=>Ge(N,vP(l,N)),yP=(l,N)=>{const W=N();return Oz(l,W).getOrThunk(gP(W))},Sz=(l,N,W)=>{const fe=N();return Oz(l,fe).or(W).getOrThunk(gP(fe))},vY=l=>Dg.isRtl()?ht(gY,l):!1,E6=()=>Ka("add-focusable",[wc(l=>{Fc(l.element,"svg").each(N=>Cr(N,"focusable","false"))})]),rS=(l,N,W,fe)=>{var Se,Be;const qe=vY(N)?["tox-icon--flip"]:[],ft=Ge(W,vP(N,W)).or(fe).getOrThunk(gP(W));return{dom:{tag:l.tag,attributes:(Se=l.attributes)!==null&&Se!==void 0?Se:{},classes:l.classes.concat(qe),innerHtml:ft},behaviours:ei([...(Be=l.behaviours)!==null&&Be!==void 0?Be:[],E6()])}},Bg=(l,N,W,fe=I.none())=>rS(N,l,W(),fe),yY=(l,N,W)=>{const fe=W(),Se=ce(l,Be=>ht(fe,vP(Be,fe)));return rS(N,Se.getOr(wz),fe,I.none())},bY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},bP=Qp({name:"Notification",factory:l=>{const N=Li("notification-text"),W=ml({dom:Ev(`

    ${mP(l.backstageProvider.translate(l.text))}

    `),behaviours:ei([Fa.config({})])}),fe=er=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${er}%`}}}),Se=er=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${er}%`}}),Be=ml({dom:{tag:"div",classes:l.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(0)]},Se(0)],behaviours:ei([Fa.config({})])}),yt={updateProgress:(er,cr)=>{er.getSystem().isConnected()&&Be.getOpt(er).each(Xr=>{Fa.set(Xr,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(cr)]},Se(cr)])})},updateText:(er,cr)=>{if(er.getSystem().isConnected()){const Xr=W.get(er);Fa.set(Xr,[Po(cr)])}}},Lt=ye([l.icon.toArray(),l.level.toArray(),l.level.bind(er=>I.from(bY[er])).toArray()]),Ht=ml(Rh.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":l.backstageProvider.translate("Close")}},components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.iconProvider)],buttonBehaviours:ei([Rc.config({}),Vu.config({...l.backstageProvider.tooltips.getConfig({tooltipText:l.backstageProvider.translate("Close")})})]),action:er=>{l.onAction(er)}})),fn=yY(Lt,{tag:"div",classes:["tox-notification__icon"]},l.iconProvider),Rn={dom:{tag:"div",classes:["tox-notification__body"]},components:[W.asSpec()],behaviours:ei([Fa.config({})])},Bn=[fn,Rn];return{uid:l.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":N},classes:l.level.map(er=>["tox-notification","tox-notification--in",`tox-notification--${er}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:ei([Rc.config({}),Ra.config({}),ha.config({mode:"special",onEscape:er=>(l.onAction(er),I.some(!0))})]),components:Bn.concat(l.progress?[Be.asSpec()]:[]).concat([Ht.asSpec()]),apis:yt}},configFields:[Yo("level"),pn("progress"),Yo("icon"),pn("onAction"),pn("text"),pn("iconProvider"),pn("backstageProvider")],apis:{updateProgress:(l,N,W)=>{l.updateProgress(N,W)},updateText:(l,N,W)=>{l.updateText(N,W)}}});var _Y=(l,N,W,fe)=>{const Se=N.backstage.shared,Be=()=>Nt.fromDom(l.queryCommandValue("ToggleView")===""?l.getContentAreaContainer():l.getContainer()),qe=()=>{const fn=cl(Be());return I.some(fn)},ft=fn=>{qe().each(Rn=>{q(fn,Bn=>{zi(Bn.element,"width"),_s(Bn.element)>Rn.width&&xr(Bn.element,"width",Rn.width+"px")})})};return{open:(fn,Rn,Bn)=>{const er=()=>{const Fr=_i=>{Fa.remove(_i,cr),Xr()},jr=(_i,Pi)=>{Do(_i.element).length===0?Ro(_i,Pi):ko(_i,Pi)},Ro=(_i,Pi)=>{Xc.hide(_i),fe.clear(),Pi&&l.focus()},ko=(_i,Pi)=>{Pi&&ha.focusIn(_i)};fe.on(_i=>{Rn();const Pi=Bn();Fr(_i),jr(_i,Pi)})},cr=ka(bP.sketch({text:fn.text,level:X(["success","error","warning","warn","info"],fn.type)?fn.type:void 0,progress:fn.progressBar===!0,icon:fn.icon,onAction:er,iconProvider:Se.providers.icons,backstageProvider:Se.providers}));if(fe.isSet()){const Fr=ea(cr);fe.on(jr=>{Fa.append(jr,Fr),Xc.reposition(jr),fc.refresh(jr),ft(jr.components())})}else{const Fr=ka(Xc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:Se.getSink,fireDismissalEventInstead:{},...Se.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([ha.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),Fa.config({}),...Qw(l)&&!Se.header.isPositionedAtTop()?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Be())),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:_i=>ix(l,_i.element).map(Ao=>({bounds:Hw(Ao),optScrollEnv:I.some({currentScrollTop:Ao.element.dom.scrollTop,scrollElmTop:Tc(Ao.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]])})),jr=ea(cr),Ro={maxHeightFunction:v1()},ko={...Se.anchors.banner(),overrides:Ro};fe.set(Fr),W.add(Fr),Xc.showWithinBounds(Fr,jr,{anchor:ko},qe)}h(fn.timeout)&&fn.timeout>0&&J3.setEditorTimeout(l,()=>{er()},fn.timeout);const Xr=()=>{fe.on(Fr=>{Xc.reposition(Fr),fc.refresh(Fr),ft(Fr.components())})};return{close:er,reposition:Xr,text:Fr=>{bP.updateText(cr,Fr)},settings:fn,getEl:()=>cr.element.dom,progressBar:{value:Fr=>{bP.updateProgress(cr,Fr)}}}},close:fn=>{fn.close()},getArgs:fn=>fn.settings}};const kz={setup:(l,N)=>{const W=(Se,Be)=>{sa(Se,nm(),{raw:Be})},fe=()=>l.getMenu().bind(ta.getHighlighted);N.on("keydown",Se=>{const Be=Se.which;l.isActive()&&(l.isMenuOpen()?Be===13?(fe().each(Bm),Se.preventDefault()):Be===40?(fe().fold(()=>{l.getMenu().each(ta.highlightFirst)},qe=>{W(qe,Se)}),Se.preventDefault(),Se.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&fe().each(qe=>{W(qe,Se),Se.preventDefault(),Se.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&l.cancelIfNecessary())}),N.on("NodeChange",()=>{l.isActive()&&!l.isProcessingAction()&&!N.queryCommandState("mceAutoCompleterInRange")&&l.cancelIfNecessary()})}};var P6;(function(l){l[l.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",l[l.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(P6||(P6={}));var A1=P6;const xP="tox-menu-nav__js",R6="tox-collection__item",L6="tox-swatch",_P={normal:xP,color:L6},I6="tox-collection__item--enabled",Tz="tox-collection__group-heading",wP="tox-collection__item-icon",D6="tox-collection__item-label",OY="tox-collection__item-accessory",B6="tox-collection__item-caret",SY="tox-collection__item-checkmark",$2="tox-collection__item--active",OP="tox-collection__item-container",Zw="tox-collection__item-container--column",Cz="tox-collection__item-container--row",SP="tox-collection__item-container--align-right",z6="tox-collection__item-container--align-left",kY="tox-collection__item-container--valign-top",Az="tox-collection__item-container--valign-middle",Mz="tox-collection__item-container--valign-bottom",kP=l=>Ge(_P,l).getOr(xP),TP=l=>l==="color"?"tox-swatches":"tox-menu",N6=l=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:TP(l),tieredMenu:"tox-tiered-menu"}),qw=l=>{const N=N6(l);return{backgroundMenu:N.backgroundMenu,selectedMenu:N.selectedMenu,menu:N.menu,selectedItem:N.selectedItem,item:kP(l)}},Ez=(l,N,W)=>{const fe=N6(W);return{tag:"div",classes:ye([[fe.menu,`tox-menu-${N}-column`],l?[fe.hasIcons]:[]])}},Pz=[T0.parts.items({})],Xk=(l,N,W)=>{const fe=N6(W);return{dom:{tag:"div",classes:ye([[fe.tieredMenu]])},markers:qw(W)}},CP=x([Yo("data"),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("tag","input"),Ar("inputClasses",[]),Ss("onSetValue"),Ar("styles",{}),Ar("eventOrder",{}),Pd("inputBehaviours",[Ei,Ra]),Ar("selectOnFocus",!0)]),Rz=l=>ei([Ra.config({onFocus:l.selectOnFocus?N=>{const W=N.element,fe=F(W);W.dom.setSelectionRange(0,fe.length)}:v})]),Lz=l=>({...Rz(l),...Rd(l.inputBehaviours,[Ei.config({store:{mode:"manual",...l.data.map(N=>({initialValue:N})).getOr({}),getValue:N=>F(N.element),setValue:(N,W)=>{F(N.element)!==W&&G(N.element,W)}},onSetValue:l.onSetValue})])}),Iz=l=>({tag:l.tag,attributes:{type:"text",...l.inputAttributes},styles:l.inputStyles,classes:l.inputClasses}),TY=(l,N)=>({uid:l.uid,dom:Iz(l),components:[],behaviours:Lz(l),eventOrder:l.eventOrder}),Ww=Qp({name:"Input",configFields:CP(),factory:TY}),Dz=Li("refetch-trigger-event"),AP=Li("redirect-menu-item-interaction"),oS="tox-menu__searcher",Gk=l=>qa(l.element,`.${oS}`).bind(N=>l.getSystem().getByDom(N).toOptional()),Bz=Gk,CY=(l,N)=>{Ei.setValue(l,N.fetchPattern),l.element.dom.selectionStart=N.selectionStart,l.element.dom.selectionEnd=N.selectionEnd},zz=l=>{const N=Ei.getValue(l),W=l.element.dom.selectionStart,fe=l.element.dom.selectionEnd;return{fetchPattern:N,selectionStart:W,selectionEnd:fe}},AY=(l,N)=>{Eo(N.element,"id").each(W=>Cr(l.element,"aria-activedescendant",W))},MY=l=>{const N=(Se,Be)=>(Be.cut(),I.none()),W=(Se,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return sa(Se,AP,qe),I.some(!0)},fe="searcher-events";return{dom:{tag:"div",classes:[R6]},components:[Ww.sketch({inputClasses:[oS,"tox-textfield"],inputAttributes:{...l.placeholder.map(Se=>({placeholder:l.i18n(Se)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:ei([Ka(fe,[Lo(vg(),Se=>{Za(Se,Dz)}),Lo(nm(),(Se,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),ha.config({mode:"special",onLeft:N,onRight:N,onSpace:N,onEnter:W,onEscape:W,onUp:W,onDown:W})]),eventOrder:{keydown:[fe,ha.name()]}})]}},Yw="tox-collection--results__js",Nz=l=>{var N;return l.dom?{...l,dom:{...l.dom,attributes:{...(N=l.dom.attributes)!==null&&N!==void 0?N:{},id:Li("aria-item-search-result-id"),"aria-selected":"false"}}}:l},F6=(l,N)=>W=>{const fe=K(W,N);return re(fe,Se=>({dom:l,components:Se}))},EY=l=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[T0.parts.items({preprocess:l!=="auto"?F6({tag:"div",classes:["tox-swatches__row"]},l):R})]}]}),Fz=l=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[T0.parts.items({preprocess:F6({tag:"div",classes:["tox-collection__group"]},l)})]}),MP=(l,N)=>{const W=[];let fe=[];return q(l,(Se,Be)=>{N(Se,Be)?(fe.length>0&&W.push(fe),fe=[],(ht(Se.dom,"innerHtml")||Se.components&&Se.components.length>0)&&fe.push(Se)):fe.push(Se)}),fe.length>0&&W.push(fe),re(W,Se=>({dom:{tag:"div",classes:["tox-collection__group"]},components:Se}))},EP=(l,N,W)=>T0.parts.items({preprocess:fe=>{const Se=re(fe,W);return l!=="auto"&&l>1?F6({tag:"div",classes:["tox-collection__group"]},l)(Se):MP(Se,(Be,qe)=>N[qe].type==="separator")}}),PP=(l,N,W=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EP(l,N,R)]}),$z=(l,N,W=!0)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Yw].concat(l===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:fe}},components:[EP(l,N,Nz)]}},Vz=(l,N,W)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[MY({i18n:Dg.translate,placeholder:W.placeholder}),{dom:{tag:"div",classes:[...l===1?["tox-collection--list"]:["tox-collection--grid"],Yw],attributes:{id:fe}},components:[EP(l,N,Nz)]}]}},Uz=(l,N=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[T0.parts.items({preprocess:W=>MP(W,(fe,Se)=>l[Se].type==="separator")})]}),$6=l=>te(l,N=>"icon"in N&&N.icon!==void 0),ax=l=>(console.error(dn(l)),console.log(l),I.none()),PY=(l,N,W,fe,Se)=>{const Be=Uz(W);return{value:l,dom:Be.dom,components:Be.components,items:W}},RP=(l,N,W,fe,Se)=>{const Be=()=>Se.menuType!=="searchable"?PP(fe,W):Se.searchMode.searchMode==="search-with-field"?Vz(fe,W,Se.searchMode):$z(fe,W);if(Se.menuType==="color"){const qe=EY(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"&&fe==="auto"){const qe=PP(fe,W);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"||Se.menuType==="searchable"){const qe=Be();return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="listpreview"&&fe!=="auto"){const qe=Fz(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else return{value:l,dom:Ez(N,fe,Se.menuType),components:Pz,items:W}},pf=Pr("type"),V6=Pr("name"),LP=Pr("label"),sx=Pr("text"),jz=Pr("title"),Qz=Pr("icon"),Kk=Pr("value"),RY=po("fetch"),LY=po("getSubmenuItems"),V2=po("onAction"),Hz=po("onItemAction"),Xw=ys("onSetup",()=>v),IY=jo("name"),lx=jo("text"),DY=jo("role"),E0=jo("icon"),iS=jo("tooltip"),U6=jo("label"),j6=jo("shortcut"),BY=ai("select"),Q6=Hs("active",!1),zY=Hs("borderless",!1),P0=Hs("enabled",!0),aS=Hs("primary",!1),Zz=l=>Ar("columns",l),IP=Ar("meta",{}),DP=ys("onAction",v),Gw=l=>Ts("type",l),BP=l=>Ln("name","name",Ca(()=>Li(`${l}-name`)),ne),NY=l=>Ln("value","value",Ca(()=>Li(`${l}-value`)),Ut()),zP=Si([pf,lx]),qz=l=>Rt("separatormenuitem",zP,l),FY=Si([Gw("autocompleteitem"),Q6,P0,IP,Kk,lx,E0]),$Y=l=>Rt("Autocompleter.Separator",zP,l),VY=l=>Rt("Autocompleter.Item",FY,l),lp=[P0,iS,E0,lx,Xw],Rv=Si([pf,V2,j6].concat(lp)),Wz=l=>Rt("toolbarbutton",Rv,l),Jk=[Q6].concat(lp),NP=Si(Jk.concat([pf,V2,j6])),Yz=l=>Rt("ToggleButton",NP,l),Xz=[ys("predicate",D),rl("scope","node",["node","editor"]),rl("position","selection",["node","selection","line"])],e5=lp.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),H6=Jk.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),FP=lp.concat([Gw("contextformbutton")]),UY=Jk.concat([Gw("contextformtogglebutton")]),Lv=bn("type",{contextformbutton:e5,contextformtogglebutton:H6}),jY=Si([Gw("contextform"),ys("initValue",x("")),U6,Go("commands",Lv),Wi("launch",bn("type",{contextformbutton:FP,contextformtogglebutton:UY}))].concat(Xz)),QY=l=>Rt("ContextForm",jY,l),R0=Si([Gw("contexttoolbar"),Pr("items")].concat(Xz)),t5=l=>Rt("ContextToolbar",R0,l),M1=[pf,Pr("src"),jo("alt"),mt("classes",[],ne)],HY=Si(M1),oc=[pf,sx,IY,mt("classes",["tox-collection__item-label"],ne)],sS=Si(oc),n5=Pc(()=>Ne("type",{cardimage:HY,cardtext:sS,cardcontainer:Gz})),Gz=Si([pf,Ts("direction","horizontal"),Ts("align","left"),Ts("valign","middle"),Go("items",n5)]),U2=[P0,lx,DY,j6,NY("menuitem"),IP],$P=Si([pf,U6,Go("items",n5),Xw,DP].concat(U2)),ZY=l=>Rt("cardmenuitem",$P,l),VP=Si([pf,Q6,E0].concat(U2)),qY=l=>Rt("choicemenuitem",VP,l),UP=[pf,Pr("fancytype"),DP],Kz=[Ar("initData",{})].concat(UP),jP=[ai("select"),Tt("initData",{},[Hs("allowCustomColors",!0),Ts("storageKey","default"),Hi("colors",Ut())])].concat(UP),Jz=bn("fancytype",{inserttable:Kz,colorswatch:jP}),Z6=l=>Rt("fancymenuitem",Jz,l),WY=Si([pf,Xw,DP,E0].concat(U2)),YY=l=>Rt("menuitem",WY,l),XY=Si([pf,LY,Xw,E0].concat(U2)),GY=l=>Rt("nestedmenuitem",XY,l),KY=Si([pf,E0,Q6,Xw,V2].concat(U2)),eN=l=>Rt("togglemenuitem",KY,l),QP=(l,N,W)=>{const fe=Yd(l.element,"."+W);if(fe.length>0){const Se=de(fe,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=fe[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>N}).getOr(fe.length);return I.some({numColumns:Se,numRows:Math.ceil(fe.length/Se)})}else return I.none()},tN=(l,N)=>ei([Ka(l,N)]),lS={namedEvents:tN,unnamedEvents:l=>tN(Li("unnamed-events"),l)},eX=l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),nN="silver.readonly",rN=Si([ro("readonly")]),cS=(l,N)=>{const fe=l.mainUi.outerContainer.element,Se=[l.mainUi.mothership,...l.uiMotherships];N&&q(Se,Be=>{Be.broadcastOn([_1()],{target:fe})}),q(Se,Be=>{Be.broadcastOn([nN],{readonly:N})})},HP=(l,N)=>{l.on("init",()=>{l.mode.isReadOnly()&&cS(N,!0)}),l.on("SwitchMode",()=>cS(N,l.mode.isReadOnly())),YB(l)&&l.mode.set("readonly")},Id=()=>Ad.config({channels:{[nN]:{schema:rN,onReceive:(l,N)=>{he.set(l,N.readonly)}}}}),E1={item:l=>he.config({disabled:l,disableClass:"tox-collection__item--state-disabled"}),button:l=>he.config({disabled:l}),splitButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled"}),toolbarButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled",useNative:!1})},r5=(l,N)=>{const W=l.getApi(N);return fe=>{fe(W)}},cp=(l,N)=>wc(W=>{r5(l,W)(Se=>{const Be=l.onSetup(Se);c(Be)&&N.set(Be)})}),j2=(l,N)=>xg(W=>r5(l,W)(N.get())),ZP=(l,N)=>Sh((W,fe)=>{r5(l,W)(l.onAction),!l.triggersSubmenu&&N===A1.CLOSE_ON_EXECUTE&&(W.getSystem().isConnected()&&Za(W,Z1()),fe.stop())}),oN={[Bp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Kw=zt,uS=(l,N,W,fe)=>{const Se=wi(v);return{type:"item",dom:N.dom,components:Kw(N.optComponents),data:l.data,eventOrder:oN,hasSubmenu:l.triggersSubmenu,itemBehaviours:ei([Ka("item-events",[ZP(l,W),cp(l,Se),j2(l,Se)]),E1.item(()=>!l.enabled||fe.isDisabled()),Id(),Fa.config({})].concat(l.itemBehaviours))}},Jw=l=>({value:l.value,meta:{text:l.text.getOr(""),...l.meta}}),q6=l=>{const N=$w.os.isMacOS()||$w.os.isiOS(),Se=N?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=l.split("+"),qe=re(Be,ft=>{const yt=ft.toLowerCase().trim();return ht(Se,yt)?Se[yt]:ft});return N?qe.join(""):qe.join("+")},W6=(l,N,W=[wP])=>Bg(l,{tag:"div",classes:W},N),iN=l=>({dom:{tag:"div",classes:[D6]},components:[Po(Dg.translate(l))]}),aN=(l,N)=>({dom:{tag:"div",classes:N,innerHtml:l}}),tX=(l,N)=>({dom:{tag:"div",classes:[D6]},components:[{dom:{tag:l.tag,styles:l.styles},components:[Po(Dg.translate(N))]}]}),nX=l=>({dom:{tag:"div",classes:[OY]},components:[Po(q6(l))]}),sN=l=>W6("checkmark",l,[SY]),lN=l=>W6("chevron-right",l,[B6]),cN=l=>W6("chevron-down",l,[B6]),uN=(l,N)=>{const W=l.direction==="vertical"?Zw:Cz,fe=l.align==="left"?z6:SP;return{dom:{tag:"div",classes:[OP,W,fe,(()=>{switch(l.valign){case"top":return kY;case"middle":return Az;case"bottom":return Mz}})()]},components:N}},rX=(l,N,W)=>({dom:{tag:"img",classes:N,attributes:{src:l,alt:W.getOr("")}}}),oX=(l,N,W)=>{const fe="custom",Se="remove",Be=l.value,qe=l.iconContent.map(Lt=>Sz(Lt,N.icons,W)),ft=l.ariaLabel.map(Lt=>({"aria-label":N.translate(Lt),"data-mce-name":Lt})).getOr({});return{dom:(()=>{const Lt=L6,Ht=qe.getOr(""),fn={tag:"div",attributes:ft,classes:[Lt]};return Be===fe?{...fn,tag:"button",classes:[...fn.classes,"tox-swatches__picker-btn"],innerHtml:Ht}:Be===Se?{...fn,classes:[...fn.classes,"tox-swatch--remove"],innerHtml:Ht}:a(Be)?{...fn,attributes:{...fn.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:Ht}:fn})(),optComponents:[]}},fN=l=>{const N=l.map(W=>({attributes:{id:Li("menu-item"),"aria-label":Dg.translate(W)}})).getOr({});return{tag:"div",classes:[xP,R6],...N}},fS=(l,N,W,fe)=>{const Se={tag:"div",classes:[wP]},Be=Rn=>Bg(Rn,Se,N.icons,fe),qe=()=>I.some({dom:Se}),ft=W?l.iconContent.map(Be).orThunk(qe):I.none(),yt=l.checkMark,Lt=I.from(l.meta).fold(()=>iN,Rn=>ht(Rn,"style")?T(tX,Rn.style):iN),Ht=l.htmlContent.fold(()=>l.textContent.map(Lt),Rn=>I.some(aN(Rn,[D6])));return{dom:fN(l.ariaLabel),optComponents:[ft,Ht,l.shortcutContent.map(nX),yt,l.caret]}},o5=(l,N,W,fe=I.none())=>l.presets==="color"?oX(l,N,fe):fS(l,N,W,fe),qP=(l,N,W)=>Ge(l,"tooltipWorker").map(fe=>[Vu.config({lazySink:N.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:Se=>({type:"submenu",item:Se,overrides:{maxHeightFunction:v1}}),mode:"follow-highlight",onShow:(Se,Be)=>{fe(qe=>{Vu.setComponents(Se,[Ii({element:Nt.fromDom(qe)})])})}})]).getOrThunk(()=>W.map(fe=>[Vu.config({...N.providers.tooltips.getConfig({tooltipText:fe}),mode:"follow-highlight"})]).getOr([])),dN=l=>Fw.DOM.encode(l),WP=(l,N)=>{const W=Dg.translate(l),fe=dN(W);if(N.length>0){const Se=new RegExp(eX(N),"gi");return fe.replace(Se,Be=>`${Be}`)}else return fe},hN=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=o5({presets:fe,textContent:I.none(),htmlContent:W?l.text.map(Ht=>WP(Ht,N)):I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:l.value},qe.providers,ft,l.icon),Lt=l.text.filter(Ht=>!W&&Ht!=="");return uS({data:Jw(l),enabled:l.enabled,getApi:x({}),onAction:Ht=>Se(l.value,l.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:qP(l,qe,Lt)},yt,Be,qe.providers)},Y6=(l,N)=>re(l,W=>{switch(W.type){case"cardcontainer":return uN(W,Y6(W.items,N));case"cardimage":return rX(W.src,W.classes,W.alt);case"cardtext":const Se=W.name.exists(Be=>X(N.cardText.highlightOn,Be))?I.from(N.cardText.matchText).getOr(""):"";return aN(WP(W.text,Se),W.classes)}}),YP=(l,N,W,fe)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>{he.set(qe,!ft),q(Yd(qe.element,"*"),yt=>{qe.getSystem().getByDom(yt).each(Lt=>{Lt.hasConfigured(he)&&he.set(Lt,!ft)})})}}),Be={dom:fN(l.label),optComponents:[I.some({dom:{tag:"div",classes:[OP,Cz]},components:Y6(l.items,fe)})]};return uS({data:Jw({text:I.none(),...l}),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(fe.itemBehaviours).getOr([])},Be,N,W.providers)},XP=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=fn=>({setActive:Rn=>{us.set(fn,Rn)},isActive:()=>us.isOn(fn),isEnabled:()=>!he.isDisabled(fn),setEnabled:Rn=>he.set(fn,!Rn)}),Lt=o5({presets:W,textContent:N?l.text:I.none(),htmlContent:I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:N?l.shortcut:I.none(),checkMark:N?I.some(sN(qe.icons)):I.none(),caret:I.none(),value:l.value},qe,ft),Ht=l.text.filter(x(!N)).map(fn=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(fn)})));return ws(uS({data:Jw(l),enabled:l.enabled,getApi:yt,onAction:fn=>fe(l.value),onSetup:fn=>(fn.setActive(Se),v),triggersSubmenu:!1,itemBehaviours:[...Ht.toArray()]},Lt,Be,qe),{toggling:{toggleClass:I6,toggleOnExecute:!1,selected:l.active,exclusive:!0}})},GP=jC(h6(),VE()),pN=l=>({value:vN(l)}),KP=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,mN=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,gN=l=>KP.test(l)||mN.test(l),vN=l=>Sn(l,"#").toUpperCase(),yN=l=>gN(l)?I.some({value:vN(l)}):I.none(),bN=l=>({value:l.value.replace(KP,(W,fe,Se,Be)=>fe+fe+Se+Se+Be+Be)}),xN=l=>{const N=bN(l),W=mN.exec(N.value);return W===null?["FFFFFF","FF","FF","FF"]:W},JP=l=>{const N=l.toString(16);return(N.length===1?"0"+N:N).toUpperCase()},i5=l=>{const N=JP(l.red)+JP(l.green)+JP(l.blue);return pN(N)},_N=Math.min,wN=Math.max,X6=Math.round,iX=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,aX=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,eO=(l,N,W,fe)=>({red:l,green:N,blue:W,alpha:fe}),e7=l=>{const N=parseInt(l,10);return N.toString()===l&&N>=0&&N<=255},ON=l=>{let N,W,fe;const Se=(l.hue||0)%360;let Be=l.saturation/100,qe=l.value/100;if(Be=wN(0,_N(Be,1)),qe=wN(0,_N(qe,1)),Be===0)return N=W=fe=X6(255*qe),eO(N,W,fe,1);const ft=Se/60,yt=qe*Be,Lt=yt*(1-Math.abs(ft%2-1)),Ht=qe-yt;switch(Math.floor(ft)){case 0:N=yt,W=Lt,fe=0;break;case 1:N=Lt,W=yt,fe=0;break;case 2:N=0,W=yt,fe=Lt;break;case 3:N=0,W=Lt,fe=yt;break;case 4:N=Lt,W=0,fe=yt;break;case 5:N=yt,W=0,fe=Lt;break;default:N=W=fe=0}return N=X6(255*(N+Ht)),W=X6(255*(W+Ht)),fe=X6(255*(fe+Ht)),eO(N,W,fe,1)},a5=l=>{const N=xN(l),W=parseInt(N[1],16),fe=parseInt(N[2],16),Se=parseInt(N[3],16);return eO(W,fe,Se,1)},t7=(l,N,W,fe)=>{const Se=parseInt(l,10),Be=parseInt(N,10),qe=parseInt(W,10),ft=parseFloat(fe);return eO(Se,Be,qe,ft)},n7=l=>{const N=iX.exec(l);if(N!==null)return I.some(t7(N[1],N[2],N[3],"1"));const W=aX.exec(l);return W!==null?I.some(t7(W[1],W[2],W[3],W[4])):I.none()},SN=l=>`rgba(${l.red},${l.green},${l.blue},${l.alpha})`,kN=eO(255,0,0,1),sX=l=>{l.dispatch("SkinLoaded")},lX=(l,N)=>{l.dispatch("SkinLoadError",N)},G6=l=>{l.dispatch("ResizeEditor")},K6=(l,N)=>{l.dispatch("ResizeContent",N)},cX=(l,N)=>{l.dispatch("ScrollContent",N)},TN=(l,N)=>{l.dispatch("TextColorChange",N)},uX=(l,N)=>{l.dispatch("AfterProgressState",{state:N})},fX=(l,N)=>l.dispatch("ResolveName",{name:N.nodeName.toLowerCase(),target:N}),dX=(l,N)=>{l.dispatch("ToggleToolbarDrawer",{state:N})},hX=(l,N)=>{l.dispatch("StylesTextUpdate",N)},r7=(l,N)=>{l.dispatch("AlignTextUpdate",N)},CN=(l,N)=>{l.dispatch("FontSizeTextUpdate",N)},AN=(l,N)=>{l.dispatch("FontSizeInputTextUpdate",N)},pX=(l,N)=>{l.dispatch("BlocksTextUpdate",N)},o7=(l,N)=>{l.dispatch("FontFamilyTextUpdate",N)},mX=l=>{l.dispatch("ToggleSidebar")},gX=l=>{l.dispatch("ToggleView")},J6=(l,N)=>()=>{l(),N()},kp=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.selection.isEditable())}),vX=(l,N)=>W=>{const fe=Ol(),Se=()=>{W.setActive(l.formatter.match(N));const Be=l.formatter.formatChanged(N,W.setActive);fe.set(Be)};return l.initialized?Se():l.once("init",Se),()=>{l.off("init",Se),fe.clear()}},eA=(l,N)=>W=>{const fe=kp(l)(W),Se=vX(l,N)(W);return()=>{fe(),Se()}},tO=(l,N,W)=>fe=>{const Se=()=>W(fe),Be=()=>{W(fe),l.on(N,Se)};return l.initialized?Be():l.once("init",Be),()=>{l.off("init",Be),l.off(N,Se)}},MN=l=>N=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("mceToggleFormat",!1,N.format)})},tg=(l,N)=>()=>l.execCommand(N);var nO=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const s5={},i7=(l,N=10)=>{const W=nO.getItem(l),fe=n(W)?JSON.parse(W):[],Be=(Lt=>N-Lt.length<0?Lt.slice(0,N):Lt)(fe),qe=Lt=>{U(Be,Lt).each(ft),Be.unshift(Lt),Be.length>N&&Be.pop(),nO.setItem(l,JSON.stringify(Be))},ft=Lt=>{Be.splice(Lt,1)};return{add:qe,state:()=>Be.slice(0)}},tA=l=>Ge(s5,l).getOrThunk(()=>{const N=`tinymce-custom-colors-${l}`,W=nO.getItem(N);if(m(W)){const Se=nO.getItem("tinymce-custom-colors");nO.setItem(N,a(Se)?Se:"[]")}const fe=i7(N,10);return s5[l]=fe,fe}),EN=l=>re(tA(l).state(),N=>({type:"choiceitem",text:N,icon:"checkmark",value:N})),PN=(l,N)=>{tA(l).add(N)},l5=(l,N,W)=>({hue:l,saturation:N,value:W}),c5=l=>{let N=0,W=0,fe=0;const Se=l.red/255,Be=l.green/255,qe=l.blue/255,ft=Math.min(Se,Math.min(Be,qe)),yt=Math.max(Se,Math.max(Be,qe));if(ft===yt)return fe=ft,l5(0,0,fe*100);const Lt=Se===ft?Be-qe:qe===ft?Se-Be:qe-Se;return N=Se===ft?3:qe===ft?1:5,N=60*(N-Lt/(yt-ft)),W=(yt-ft)/yt,fe=yt,l5(Math.round(N),Math.round(W*100),Math.round(fe*100))},a7=l=>c5(a5(l)),u5=l=>i5(ON(l)),RN=l=>yN(l).orThunk(()=>n7(l).map(i5)).getOrThunk(()=>{const N=document.createElement("canvas");N.height=1,N.width=1;const W=N.getContext("2d");W.clearRect(0,0,N.width,N.height),W.fillStyle="#FFFFFF",W.fillStyle=l,W.fillRect(0,0,1,1);const fe=W.getImageData(0,0,1,1).data,Se=fe[0],Be=fe[1],qe=fe[2],ft=fe[3];return i5(eO(Se,Be,qe,ft))}),s7="forecolor",l7="hilitecolor",yX=5,bX=l=>{const N=[];for(let W=0;WN=>N.options.get(l),c7="#000000",xX=l=>{const N=l.options.register,W=Se=>p(Se,n)?{value:bX(Se),valid:!0}:{valid:!1,message:"Must be an array of strings."},fe=Se=>h(Se)&&Se>0?{value:Se,valid:!0}:{valid:!1,message:"Must be a positive number."};N("color_map",{processor:W,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),N("color_map_background",{processor:W}),N("color_map_foreground",{processor:W}),N("color_cols",{processor:fe,default:u7(l)}),N("color_cols_foreground",{processor:fe,default:LN(l,s7)}),N("color_cols_background",{processor:fe,default:LN(l,l7)}),N("custom_colors",{processor:"boolean",default:!0}),N("color_default_foreground",{processor:"string",default:c7}),N("color_default_background",{processor:"string",default:c7})},nA=(l,N)=>N===s7&&l.options.isSet("color_map_foreground")?Dy("color_map_foreground")(l):N===l7&&l.options.isSet("color_map_background")?Dy("color_map_background")(l):Dy("color_map")(l),u7=(l,N="default")=>Math.max(yX,Math.ceil(Math.sqrt(nA(l,N).length))),LN=(l,N)=>{const W=Dy("color_cols")(l),fe=u7(l,N);return W===u7(l)?fe:W},IN=(l,N="default")=>Math.round((()=>N===s7?Dy("color_cols_foreground")(l):N===l7?Dy("color_cols_background")(l):Dy("color_cols")(l))()),DN=Dy("custom_colors"),_X=Dy("color_default_foreground"),BN=Dy("color_default_background"),wX="rgba(0, 0, 0, 0)",OX=l=>n7(l).exists(N=>N.alpha!==0),By=l=>Nl(l,N=>{if(lr(N)){const W=Di(N,"background-color");return Ot(OX(W),W)}else return I.none()}).getOr(wX),zN=(l,N)=>{const W=Nt.fromDom(l.selection.getStart()),fe=N==="hilitecolor"?By(W):Di(W,"color");return n7(fe).map(Se=>"#"+i5(Se).value)},SX=(l,N,W)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.apply(N,{value:W}),l.nodeChanged()})},f7=(l,N)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.remove(N,{value:null},void 0,!0),l.nodeChanged()})},Xd=l=>{l.addCommand("mceApplyTextcolor",(N,W)=>{SX(l,N,W)}),l.addCommand("mceRemoveTextcolor",N=>{f7(l,N)})},NN=l=>{const N="choiceitem",W={type:N,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return l?[W,{type:N,text:"Custom color",icon:"color-picker",value:"custom"}]:[W]},d7=(l,N,W,fe)=>{W==="custom"?QN(l)(Be=>{Be.each(qe=>{PN(N,qe),l.execCommand("mceApplyTextcolor",N,qe),fe(qe)})},zN(l,N).getOr(c7)):W==="remove"?(fe(""),l.execCommand("mceRemoveTextcolor",N)):(fe(W),l.execCommand("mceApplyTextcolor",N,W))},h7=(l,N,W)=>l.concat(EN(N).concat(NN(W))),FN=(l,N,W)=>fe=>{fe(h7(l,N,W))},p7=(l,N,W)=>{const fe=N==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";l.setIconFill(fe,W)},$N=(l,N)=>{l.setTooltip(N)},VN=(l,N)=>W=>{const fe=zN(l,N);return St(fe,W.toUpperCase())},m7=(l,N,W)=>{if(at(W))return N==="forecolor"?"Text color":"Background color";const fe=N==="forecolor"?"Text color {0}":"Background color {0}",Se=h7(nA(l,N),N,!1),Be=ce(Se,qe=>qe.value===W).getOr({text:""}).text;return l.translate([fe,l.translate(Be)])},UN=(l,N,W,fe)=>{l.ui.registry.addSplitButton(N,{tooltip:m7(l,W,fe.get()),presets:"color",icon:N==="forecolor"?"text-color":"highlight-bg-color",select:VN(l,W),columns:IN(l,W),fetch:FN(nA(l,W),W,DN(l)),onAction:Se=>{d7(l,W,fe.get(),v)},onItemAction:(Se,Be)=>{d7(l,W,Be,qe=>{fe.set(qe),TN(l,{name:N,color:qe})})},onSetup:Se=>{p7(Se,N,fe.get());const Be=qe=>{qe.name===N&&(p7(Se,qe.name,qe.color),$N(Se,m7(l,W,qe.color)))};return l.on("TextColorChange",Be),J6(kp(l)(Se),()=>{l.off("TextColorChange",Be)})}})},jN=(l,N,W,fe,Se)=>{l.ui.registry.addNestedMenuItem(N,{text:fe,icon:N==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>($N(Be,m7(l,W,Se.get())),p7(Be,N,Se.get()),kp(l)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:VN(l,W),initData:{storageKey:W},onAction:Be=>{d7(l,W,Be.value,qe=>{Se.set(qe),TN(l,{name:N,color:qe})})}}]})},QN=l=>(N,W)=>{let fe=!1;const Se=ft=>{const Lt=ft.getData().colorpicker;fe?(N(I.from(Lt)),ft.close()):l.windowManager.alert(l.translate(["Invalid hex color code: {0}",Lt]))},Be=(ft,yt)=>{yt.name==="hex-valid"&&(fe=yt.value)},qe={colorpicker:W};l.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:Se,onClose:v,onCancel:()=>{N(I.none())}})},kX=l=>{Xd(l);const N=_X(l),W=BN(l),fe=wi(N),Se=wi(W);UN(l,"forecolor","forecolor",fe),UN(l,"backcolor","hilitecolor",Se),jN(l,"forecolor","forecolor","Text color",fe),jN(l,"backcolor","hilitecolor","Background color",Se)},g7=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=$6(N),Ht=TX(N,W,fe,Se!=="color"?"normal":"color",Be,qe,ft);return RP(l,yt,Ht,fe,{menuType:Se})},TX=(l,N,W,fe,Se,Be,qe)=>zt(re(l,ft=>ft.type==="choiceitem"?qY(ft).fold(ax,yt=>I.some(XP(yt,W===1,fe,N,Be(yt.value),Se,qe,$6(l)))):I.none())),rA=(l,N)=>{const W=qw(N);return l===1?{mode:"menu",moveOnTab:!0}:l==="auto"?{mode:"grid",selector:"."+W.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(N==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:Se=>N==="color"?qa(Se.element,"[aria-checked=true]"):I.none()}},CX=(l,N)=>l===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:l==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:N==="color"?".tox-swatches__row":".tox-collection__group",cell:N==="color"?`.${L6}`:`.${R6}`}},AX=(l,N)=>{const W=MX(l,N),fe=N.colorinput.getColorCols(l.initData.storageKey),Se="color",qe={...g7(Li("menu-value"),W,ft=>{l.onAction({value:ft})},fe,Se,A1.CLOSE_ON_EXECUTE,l.select.getOr(D),N.shared.providers),markers:qw(Se),movement:rA(fe,Se),showMenuRole:!1};return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget(T0.sketch(qe))]}},MX=(l,N)=>{const W=l.initData.allowCustomColors&&N.colorinput.hasCustomColors();return l.initData.colors.fold(()=>h7(N.colorinput.getColors(l.initData.storageKey),l.initData.storageKey,W),fe=>fe.concat(NN(W)))},HN=Li("cell-over"),ZN=Li("cell-execute"),EX=l=>(N,W)=>l.shared.providers.translate(["{0} columns, {1} rows",W,N]),PX=(l,N,W)=>{const fe=qe=>sa(qe,HN,{row:l,col:N}),Se=qe=>sa(qe,ZN,{row:l,col:N}),Be=(qe,ft)=>{ft.stop(),Se(qe)};return ka({dom:{tag:"div",attributes:{role:"button","aria-label":W}},behaviours:ei([Ka("insert-table-picker-cell",[Lo(wu(),Ra.focus),Lo(Bp(),Se),Lo(H1(),Be),Lo(Lm(),Be)]),us.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ra.config({onFocus:fe})])})},RX=(l,N,W)=>{const fe=[];for(let Se=0;Se{for(let Be=0;Beve(l,N=>re(N,ea)),v7=(l,N)=>Po(`${N}x${l}`),qN={inserttable:(l,N)=>{const Se=EX(N),Be=RX(Se,10,10),qe=v7(0,0),ft=ml({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:ei([Fa.config({})])});return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:IX(Be).concat(ft.asSpec()),behaviours:ei([Ka("insert-table-picker",[wc(yt=>{Fa.set(ft.get(yt),[qe])}),mb(HN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;LX(Be,fn,Rn,10,10),Fa.set(ft.get(yt),[v7(fn+1,Rn+1)])}),mb(ZN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;Za(yt,Z1()),l.onAction({numRows:fn+1,numColumns:Rn+1})})]),ha.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:AX},DX=(l,N)=>Ge(qN,l.fancytype).map(W=>W(l,N)),BX=(l,N,W,fe=!0,Se=!1)=>{const Be=Se?cN(W.icons):lN(W.icons),qe=yt=>({isEnabled:()=>!he.isDisabled(yt),setEnabled:Lt=>he.set(yt,!Lt),setIconFill:(Lt,Ht)=>{qa(yt.element,`svg path[class="${Lt}"], rect[class="${Lt}"]`).each(fn=>{Cr(fn,"fill",Ht)})},setTooltip:Lt=>{const Ht=W.translate(Lt);Cr(yt.element,"aria-label",Ht)}}),ft=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:qe,enabled:l.enabled,onAction:v,onSetup:l.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,N,W)},zX=(l,N,W,fe=!0)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.none(),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:Se,enabled:l.enabled,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W)},WN=l=>({type:"separator",dom:{tag:"div",classes:[R6,Tz]},components:l.text.map(Po).toArray()}),NX=(l,N,W,fe=!0)=>{const Se=qe=>({setActive:ft=>{us.set(qe,ft)},isActive:()=>us.isOn(qe),isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,checkMark:I.some(sN(W.icons)),caret:I.none(),shortcutContent:l.shortcut,presets:"normal",meta:l.meta},W,fe);return ws(uS({data:Jw(l),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W),{toggling:{toggleClass:I6,toggleOnExecute:!1,selected:l.active},role:l.role.getOrUndefined()})},FX=hN,YN=WN,$X=zX,XN=BX,VX=NX,GN=DX,UX=YP;var QX=Object.freeze({__proto__:null,getCoupled:(l,N,W,fe)=>W.getOrCreate(l,N,fe),getExistingCoupled:(l,N,W,fe)=>W.getExisting(l,N,fe)}),HX=[In("others",dt(aa.value,Ut()))],ZX=Object.freeze({__proto__:null,init:()=>{const l={},N=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(l,qe)},W=(Be,qe,ft)=>N(qe,ft).getOrThunk(()=>{const Lt=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),Ht=Be.getSystem().build(Lt);return l[ft]=Ht,Ht}),fe=(Be,qe,ft)=>N(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),Se=x({});return Hd({readState:Se,getExisting:fe,getOrCreate:W})}});const Ku=id({fields:HX,name:"coupling",apis:QX,state:ZX}),y7=l=>{let N=I.none(),W=[];const fe=Lt=>y7(Ht=>{Se(fn=>{Ht(Lt(fn))})}),Se=Lt=>{qe()?yt(Lt):W.push(Lt)},Be=Lt=>{qe()||(N=I.some(Lt),ft(W),W=[])},qe=()=>N.isSome(),ft=Lt=>{q(Lt,yt)},yt=Lt=>{N.each(Ht=>{setTimeout(()=>{Lt(Ht)},0)})};return l(Be),{get:Se,map:fe,isReady:qe}},qX={nu:y7,pure:l=>y7(N=>{N(l)})},WX=l=>{setTimeout(()=>{throw l},0)},dS=l=>{const N=yt=>{l().then(yt,WX)};return{map:yt=>dS(()=>l().then(yt)),bind:yt=>dS(()=>l().then(Lt=>yt(Lt).toPromise())),anonBind:yt=>dS(()=>l().then(()=>yt.toPromise())),toLazy:()=>qX.nu(N),toCached:()=>{let yt=null;return dS(()=>(yt===null&&(yt=l()),yt))},toPromise:l,get:N}},Lh={nu:l=>dS(()=>new Promise(l)),pure:l=>dS(()=>Promise.resolve(l))},KN=x("sink"),JN=x(mm({name:KN(),overrides:x({dom:{tag:"div"},behaviours:ei([Ph.config({useFixed:k})]),events:Rl([od(nm()),od(Nc()),od(H1())])})})),eF=(l,N)=>{const W=l.getHotspot(N).getOr(N),fe="hotspot",Se=l.getAnchorOverrides();return l.layouts.fold(()=>({type:fe,hotspot:W,overrides:Se}),Be=>({type:fe,hotspot:W,overrides:Se,layouts:Be}))},YX=(l,N,W)=>{const fe=l.fetch;return fe(W).map(N)},XX=(l,N,W,fe,Se,Be,qe)=>{const ft=YX(l,N,fe),yt=x7(fe,l);return ft.map(Lt=>Lt.bind(Ht=>{const fn=Ht.menus[Ht.primary];return I.from(fn).each(Rn=>{l.listRole.each(Bn=>{Rn.role=Bn})}),I.from(B2.sketch({...Be.menu(),uid:gy(""),data:Ht,highlightOnOpen:qe,onOpenMenu:(Rn,Bn)=>{const er=yt().getOrDie();Ph.position(er,Bn,{anchor:W}),Ys.decloak(Se)},onOpenSubmenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Ph.position(cr,er,{anchor:{type:"submenu",item:Bn}}),Ys.decloak(Se)},onRepositionMenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Ph.position(cr,Bn,{anchor:W}),q(er,Xr=>{Ph.position(cr,Xr.triggeredMenu,{anchor:{type:"submenu",item:Xr.triggeringItem}})})},onEscape:()=>(Ra.focus(fe),Ys.close(Se),I.some(!0))}))}))},hS=(l,N,W,fe,Se,Be,qe)=>{const ft=eF(l,W);return XX(l,N,ft,W,fe,Se,qe).map(Lt=>(Lt.fold(()=>{Ys.isOpen(fe)&&Ys.close(fe)},Ht=>{Ys.cloak(fe),Ys.open(fe,Ht),Be(fe)}),fe))},GX=(l,N,W,fe,Se,Be,qe)=>(Ys.close(fe),Lh.pure(fe)),b7=(l,N,W,fe,Se,Be)=>{const qe=Ku.getCoupled(W,"sandbox");return(Ys.isOpen(qe)?GX:hS)(l,N,W,qe,fe,Se,Be)},KX=(l,N,W)=>{const fe=Xs.getCurrent(N).getOr(N),Se=_s(l.element);W?xr(fe.element,"min-width",Se+"px"):zf(fe.element,Se)},x7=(l,N)=>l.getSystem().getByUid(N.uid+"-"+KN()).map(W=>()=>aa.value(W)).getOrThunk(()=>N.lazySink.fold(()=>()=>aa.error(new Error("No internal sink is specified, nor could an external sink be found")),W=>()=>W(l))),_7=l=>{Ys.getState(l).each(N=>{B2.repositionMenus(N)})},w7=(l,N,W)=>{const fe=ld(),Se=(ft,yt)=>{const Lt=eF(l,N);fe.link(N.element),l.matchWidth&&KX(Lt.hotspot,yt,l.useMinWidth),l.onOpen(Lt,ft,yt),W!==void 0&&W.onOpen!==void 0&&W.onOpen(ft,yt)},Be=(ft,yt)=>{fe.unlink(N.element),qe().getOr(yt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),W!==void 0&&W.onClose!==void 0&&W.onClose(ft,yt)},qe=x7(N,l);return{dom:{tag:"div",classes:l.sandboxClasses,attributes:{id:fe.id}},behaviours:Km.augment(l.sandboxBehaviours,[Ei.config({store:{mode:"memory",initialValue:N}}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(ft,yt,Lt)=>Cf(yt,Lt)||Cf(N,Lt),getAttachPoint:()=>qe().getOrDie()}),Xs.config({find:ft=>Ys.getState(ft).bind(yt=>Xs.getCurrent(yt))}),Ad.config({channels:{...Ly({isExtraPart:D}),...ak({doReposition:_7})}})])}},tF=l=>{const N=Ku.getCoupled(l,"sandbox");_7(N)},oA=()=>[Ar("sandboxClasses",[]),Km.field("sandboxBehaviours",[Xs,Ad,Ys,Ei])],JX=x([pn("dom"),pn("fetch"),Ss("onOpen"),kd("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Pd("dropdownBehaviours",[us,Ku,ha,Ra]),pn("toggleClass"),Ar("eventOrder",{}),Yo("lazySink"),Ar("matchWidth",!1),Ar("useMinWidth",!1),Yo("role"),Yo("listRole")].concat(oA())),eG=x([Jm({schema:[Um(),Ar("fakeFocus",!1)],name:"menu",defaults:l=>({onExecute:l.onExecute})}),JN()]),tG=(l,N,W,fe)=>{const Se=Ht=>Ge(l.dom,"attributes").bind(fn=>Ge(fn,Ht)),Be=Ht=>{Ys.getState(Ht).each(fn=>{B2.highlightPrimary(fn)})},qe=(Ht,fn,Rn)=>b7(l,R,Ht,fe,fn,Rn),ft=Ht=>{qe(Ht,Be,Gu.HighlightMenuAndItem).get(v)},yt={expand:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightNone).get(v)},open:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},refetch:Ht=>Ku.getExistingCoupled(Ht,"sandbox").fold(()=>qe(Ht,v,Gu.HighlightMenuAndItem).map(v),Rn=>hS(l,R,Ht,Rn,fe,v,Gu.HighlightMenuAndItem).map(v)),isOpen:us.isOn,close:Ht=>{us.isOn(Ht)&&qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},repositionMenus:Ht=>{us.isOn(Ht)&&tF(Ht)}},Lt=(Ht,fn)=>(Bm(Ht),I.some(!0));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.dropdownBehaviours,[us.config({toggleClass:l.toggleClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:Ht=>w7(l,Ht,{onOpen:()=>us.on(Ht),onClose:()=>us.off(Ht)})}}),ha.config({mode:"special",onSpace:Lt,onEnter:Lt,onDown:(Ht,fn)=>{if(L0.isOpen(Ht)){const Rn=Ku.getCoupled(Ht,"sandbox");Be(Rn)}else L0.open(Ht);return I.some(!0)},onEscape:(Ht,fn)=>L0.isOpen(Ht)?(L0.close(Ht),I.some(!0)):I.none()}),Ra.config({})]),events:f6(I.some(ft)),eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},apis:yt,domModification:{attributes:{"aria-haspopup":l.listRole.getOr("true"),...l.role.fold(()=>({}),Ht=>({role:Ht})),...l.dom.tag==="button"?{type:Se("type").getOr("button")}:{}}}}},L0=Zh({name:"Dropdown",configFields:JX(),partFields:eG(),factory:tG,apis:{open:(l,N)=>l.open(N),refetch:(l,N)=>l.refetch(N),expand:(l,N)=>l.expand(N),close:(l,N)=>l.close(N),isOpen:(l,N)=>l.isOpen(N),repositionMenus:(l,N)=>l.repositionMenus(N)}}),nG=l=>{switch(l.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:l}}},rG=l=>{const N=Ei.getValue(l),W=Gk(l).map(zz);L0.refetch(N).get(()=>{const fe=Ku.getCoupled(N,"sandbox");W.each(Se=>Gk(fe).each(Be=>CY(Be,Se)))})},iA=(l,N)=>{oG(l).each(W=>{Bx(l,W.element,N.event.eventType,N.event.interactionEvent)})},oG=l=>Ys.getState(l).bind(ta.getHighlighted).bind(ta.getHighlighted),aA=l=>rp(l.element,Yw)?I.some(l.element):qa(l.element,"."+Yw),nF=(l,N,W)=>{Bz(l).each(fe=>{AY(fe,W),aA(N).each(Be=>{Eo(Be,"id").each(qe=>Cr(fe.element,"aria-controls",qe))})}),Cr(W.element,"aria-selected","true")},iG=(l,N,W)=>{Cr(W.element,"aria-selected","false")},aG=l=>{Bz(l).each(N=>Ra.focus(N))},sG=l=>Ku.getExistingCoupled(l,"sandbox").bind(Gk).map(zz).map(W=>W.fetchPattern).getOr("");var O7;(function(l){l[l.ContentFocus=0]="ContentFocus",l[l.UiFocus=1]="UiFocus"})(O7||(O7={}));const sA=(l,N,W,fe,Se)=>{const Be=W.shared.providers,qe=ft=>Se?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(l.type){case"menuitem":return YY(l).fold(ax,ft=>I.some($X(qe(ft),N,Be,fe)));case"nestedmenuitem":return GY(l).fold(ax,ft=>I.some(XN(qe(ft),N,Be,fe,Se)));case"togglemenuitem":return eN(l).fold(ax,ft=>I.some(VX(qe(ft),N,Be,fe)));case"separator":return qz(l).fold(ax,ft=>I.some(YN(ft)));case"fancymenuitem":return Z6(l).fold(ax,ft=>GN(ft,W));default:return console.error("Unknown item in general menu",l),I.none()}},pS=(l,N,W,fe,Se,Be,qe)=>{const ft=fe===1,yt=!ft||$6(l);return zt(re(l,Lt=>{switch(Lt.type){case"separator":return $Y(Lt).fold(ax,Ht=>I.some(YN(Ht)));case"cardmenuitem":return ZY(Lt).fold(ax,Ht=>I.some(UX({...Ht,onAction:fn=>{Ht.onAction(fn),W(Ht.value,Ht.meta)}},Se,Be,{itemBehaviours:qP(Ht.meta,Be,I.none()),cardText:{matchText:N,highlightOn:qe}})));case"autocompleteitem":default:return VY(Lt).fold(ax,Ht=>I.some(FX(Ht,N,ft,"normal",W,Se,Be,yt)))}}))},S7=(l,N,W,fe,Se,Be)=>{const qe=$6(N),ft=zt(re(N,Ht=>{const fn=Bn=>Se?!ht(Bn,"text"):qe,Rn=Bn=>sA(Bn,W,fe,fn(Bn),Se);return Ht.type==="nestedmenuitem"&&Ht.getSubmenuItems().length<=0?Rn({...Ht,enabled:!1}):Rn(Ht)})),yt=nG(Be);return(Se?PY:RP)(l,qe,ft,1,yt)},lA=l=>B2.singleData(l.value,l),lG=(l,N,W,fe)=>{const Se=rA(N,fe),Be=qw(fe);return{data:lA({...l,movement:Se,menuBehaviours:lS.unnamedEvents(N!=="auto"?[]:[wc((qe,ft)=>{QP(qe,4,Be.item).each(({numColumns:yt,numRows:Lt})=>{ha.setGridSize(qe,Lt,yt)})})])}),menu:{markers:qw(fe),fakeFocus:W===O7.ContentFocus}}},cG=l=>vw.create(Nt.fromDom(l.startContainer),l.startOffset,Nt.fromDom(l.endContainer),l.endOffset),uG={register:(l,N)=>{const W=Li("autocompleter"),fe=wi(!1),Se=wi(!1),Be=ds(),qe=ka(Xc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:W}},components:[],fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissAutocompleter",[Lo(J0(),()=>fn()),Lo(e1(),(br,Fr)=>{Eo(Fr.event.target,"id").each(jr=>Cr(Nt.fromDom(l.getBody()),"aria-activedescendant",jr))})])]),lazySink:N.getSink})),ft=()=>Xc.isOpen(qe),yt=Se.get,Lt=()=>{if(ft()){Xc.hide(qe),l.dom.remove(W,!1);const br=Nt.fromDom(l.getBody());Eo(br,"aria-owns").filter(Fr=>Fr===W).each(()=>{Qt(br,"aria-owns"),Qt(br,"aria-activedescendant")})}},Ht=()=>Xc.getContent(qe).bind(br=>De(br.components(),0)),fn=()=>l.execCommand("mceAutocompleterClose"),Rn=br=>{const Fr=Oe(br,jr=>I.from(jr.columns)).getOr(1);return ve(br,jr=>{const Ro=jr.items;return pS(Ro,jr.matchText,(ko,_i)=>{const Pi={hide:()=>fn(),reload:Ao=>{Lt(),l.execCommand("mceAutocompleterReload",!1,{fetchOptions:Ao})}};l.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(Ao=>{fe.set(!0),jr.onAction(Pi,Ao,ko,_i),fe.set(!1)})},Fr,A1.BUBBLE_TO_SANDBOX,N,jr.highlightOn)})},Bn=(br,Fr)=>{const jr=Oe(br,Ro=>I.from(Ro.columns)).getOr(1);Xc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(cG),root:Nt.fromDom(l.getBody())}},lG(RP("autocompleter-value",!0,Fr,jr,{menuType:"normal"}),jr,O7.ContentFocus,"normal")),Ht().each(ta.highlightFirst)},er=br=>{const Fr=Rn(br);Fr.length>0?(Bn(br,Fr),Cr(Nt.fromDom(l.getBody()),"aria-owns",W),l.inline||cr()):Lt()},cr=()=>{l.dom.get(W)&&l.dom.remove(W,!1);const br=l.getDoc().documentElement,Fr=l.selection.getNode(),jr=xb(qe.element);Oo(jr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Fr.offsetTop}px`,left:`${Fr.offsetLeft}px`}),l.dom.add(br,jr.dom),qa(jr,'[role="menu"]').each(Ro=>{zi(Ro,"position"),zi(Ro,"max-height")})};l.on("AutocompleterStart",({lookupData:br})=>{Se.set(!0),fe.set(!1),er(br)}),l.on("AutocompleterUpdate",({lookupData:br})=>er(br)),l.on("AutocompleterUpdateActiveRange",({range:br})=>Be.set(br)),l.on("AutocompleterEnd",()=>{Lt(),Se.set(!1),fe.set(!1),Be.clear()});const Xr={cancelIfNecessary:fn,isMenuOpen:ft,isActive:yt,isProcessingAction:fe.get,getMenu:Ht};kz.setup(Xr,l)}},f5=(l,N,W)=>Sc(l,N,W).isSome(),rF=(l,N)=>{let W=null;return{cancel:()=>{W!==null&&(clearTimeout(W),W=null)},schedule:(...Be)=>{W=setTimeout(()=>{l.apply(null,Be),W=null},N)}}},oF=5,fG=400,iF=l=>{const N=l.raw;return N.touches===void 0||N.touches.length!==1?I.none():I.some(N.touches[0])},dG=(l,N)=>{const W=Math.abs(l.clientX-N.x),fe=Math.abs(l.clientY-N.y);return W>oF||fe>oF},hG=l=>{const N=ds(),W=wi(!1),fe=rF(Lt=>{l.triggerEvent(Qd(),Lt),W.set(!0)},fG),Se=Lt=>(iF(Lt).each(Ht=>{fe.cancel();const fn={x:Ht.clientX,y:Ht.clientY,target:Lt.target};fe.schedule(Lt),W.set(!1),N.set(fn)}),I.none()),Be=Lt=>(fe.cancel(),iF(Lt).each(Ht=>{N.on(fn=>{dG(Ht,fn)&&N.clear()})}),I.none()),qe=Lt=>{fe.cancel();const Ht=fn=>_o(fn.target,Lt.target);return N.get().filter(Ht).map(fn=>W.get()?(Lt.prevent(),!1):l.triggerEvent(Lm(),Lt))},ft=ua([{key:Uh(),value:Se},{key:ss(),value:Be},{key:Gl(),value:qe}]);return{fireIfReady:(Lt,Ht)=>Ge(ft,Ht).bind(fn=>fn(Lt))}},aF=l=>l.raw.which===nu[0]&&!X(["input","textarea"],vr(l.target))&&!f5(l.target,'[contenteditable="true"]'),mS=(l,N)=>{const W={stopBackspace:!0,...N},fe=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],Se=hG(W),Be=re(fe.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),Bn=>ud(l,Bn,er=>{Se.fireIfReady(er,Bn).each(Xr=>{Xr&&er.kill()}),W.triggerEvent(Bn,er)&&er.kill()})),qe=ds(),ft=ud(l,"paste",Bn=>{Se.fireIfReady(Bn,"paste").each(cr=>{cr&&Bn.kill()}),W.triggerEvent("paste",Bn)&&Bn.kill(),qe.set(setTimeout(()=>{W.triggerEvent(l0(),Bn)},0))}),yt=ud(l,"keydown",Bn=>{W.triggerEvent("keydown",Bn)?Bn.kill():W.stopBackspace&&aF(Bn)&&Bn.prevent()}),Lt=ud(l,"focusin",Bn=>{W.triggerEvent("focusin",Bn)&&Bn.kill()}),Ht=ds(),fn=ud(l,"focusout",Bn=>{W.triggerEvent("focusout",Bn)&&Bn.kill(),Ht.set(setTimeout(()=>{W.triggerEvent(kf(),Bn)},0))});return{unbind:()=>{q(Be,Bn=>{Bn.unbind()}),yt.unbind(),Lt.unbind(),fn.unbind(),ft.unbind(),qe.on(clearTimeout),Ht.on(clearTimeout)}}},Q2=(l,N)=>{const W=Ge(l,"target").getOr(N);return wi(W)},pG=(l,N)=>{const W=wi(!1),fe=wi(!1);return{stop:()=>{W.set(!0)},cut:()=>{fe.set(!0)},isStopped:W.get,isCut:fe.get,event:l,setSource:N.set,getSource:N.get}},sF=l=>{const N=wi(!1);return{stop:()=>{N.set(!0)},cut:v,isStopped:N.get,isCut:D,event:l,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},gS=Nn.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),d5=(l,N,W,fe,Se,Be)=>{const qe=l(N,fe),ft=pG(W,Se);return qe.fold(()=>(Be.logEventNoHandlers(N,fe),gS.complete()),yt=>{const Lt=yt.descHandler;return pv(Lt)(ft),ft.isStopped()?(Be.logEventStopped(N,yt.element,Lt.purpose),gS.stopped()):ft.isCut()?(Be.logEventCut(N,yt.element,Lt.purpose),gS.complete()):Dr(yt.element).fold(()=>(Be.logNoParent(N,yt.element,Lt.purpose),gS.complete()),fn=>(Be.logEventResponse(N,yt.element,Lt.purpose),gS.resume(fn)))})},lF=(l,N,W,fe,Se,Be)=>d5(l,N,W,fe,Se,Be).fold(k,qe=>lF(l,N,W,qe,Se,Be),D),h5=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return d5(l,N,W,fe,Be,Se)},p5=(l,N,W)=>{const fe=sF(N);return q(l,Se=>{const Be=Se.descHandler;pv(Be)(fe)}),fe.isStopped()},mG=(l,N,W,fe)=>cF(l,N,W,W.target,fe),cF=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return lF(l,N,W,fe,Be,Se)},gG=(l,N)=>({element:l,descHandler:N}),vG=(l,N)=>({id:l,descHandler:N}),yG=()=>{const l={},N=(qe,ft,yt)=>{We(yt,(Lt,Ht)=>{const fn=l[Ht]!==void 0?l[Ht]:{};fn[ft]=cm(Lt,qe),l[Ht]=fn})},W=(qe,ft)=>sm(ft).bind(yt=>Ge(qe,yt)).map(yt=>gG(ft,yt));return{registerId:N,unregisterId:qe=>{We(l,(ft,yt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(l,qe).map(ft=>je(ft,(yt,Lt)=>vG(Lt,yt))).getOr([]),find:(qe,ft,yt)=>Ge(l,ft).bind(Lt=>Nl(yt,Ht=>W(Lt,Ht),qe))}},bG=()=>{const l=yG(),N={},W=Lt=>{const Ht=Lt.element;return sm(Ht).getOrThunk(()=>JO("uid-",Lt.element))},fe=(Lt,Ht)=>{const fn=N[Ht];if(fn===Lt)Be(Lt);else throw new Error('The tagId "'+Ht+'" is already used by: '+a1(fn.element)+` +Components: `+JSON.stringify(N.components,null,2))}),Be},Gb=Yb.single,pk=Yb.multiple,mk=x(hk),jp=Nn.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),w1=Ar("factory",{sketch:R}),B3=Ar("schema",[]),Pg=pn("name"),z3=Ln("pname","pname",Ca(l=>""),Ut()),JM=gn("schema",()=>[Yo("preprocess")]),N3=Ar("defaults",x({})),F3=Ar("overrides",x({})),eE=Si([w1,B3,Pg,z3,N3,F3]),tE=Si([w1,B3,Pg,N3,F3]),nE=Si([w1,B3,Pg,z3,N3,F3]),rE=Si([w1,JM,Pg,pn("unit"),z3,N3,F3]),$3=l=>l.fold(I.some,I.none,I.some,I.some),jC=l=>{const N=W=>W.name;return l.fold(N,N,N,N)},oE=l=>l.fold(R,R,R,R),V3=(l,N)=>W=>{const fe=Xt("Converting part type",N,W);return l(fe)},mh=V3(jp.required,eE),Jm=V3(jp.external,tE),mm=V3(jp.optional,nE),U3=V3(jp.group,rE),Pw=x("entirety");var ED=Object.freeze({__proto__:null,required:mh,external:Jm,optional:mm,group:U3,asNamedPart:$3,name:jC,asCommon:oE,original:Pw});const Rw=(l,N,W,fe)=>ws(N.defaults(l,W,fe),W,{uid:l.partUids[N.name]},N.overrides(l,W,fe)),iE=(l,N,W)=>{const fe={},Se={};return q(W,Be=>{Be.fold(qe=>{fe[qe.pname]=Gb(!0,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{const ft=N.parts[qe.name];Se[qe.name]=x(qe.factory.sketch(Rw(N,qe,ft[Pw()]),ft))},qe=>{fe[qe.pname]=Gb(!1,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{fe[qe.pname]=pk(!0,(ft,yt,Lt)=>{const Ht=ft[qe.name];return re(Ht,fn=>qe.factory.sketch(ws(qe.defaults(ft,fn,Lt),fn,qe.overrides(ft,fn))))})})}),{internals:x(fe),externals:x(Se)}},QC=(l,N)=>{const W={};return q(N,fe=>{$3(fe).each(Se=>{const Be=HC(l,Se.pname);W[Se.name]=qe=>{const ft=Xt("Part: "+Se.name+" in "+l,Si(Se.schema),qe);return{...Be,config:qe,validated:ft}}})}),W},HC=(l,N)=>({uiType:mk(),owner:l,name:N}),ZC=(l,N,W)=>({uiType:mk(),owner:l,name:N,config:W,validated:{}}),aE=l=>ve(l,N=>N.fold(I.none,I.some,I.none,I.none).map(W=>si(W.name,W.schema.concat([l1(Pw())]))).toArray()),qC=l=>re(l,jC),j3=(l,N,W)=>iE(l,N,W),WC=(l,N,W)=>A2(I.some(l),N,N.components,W),Jo=(l,N,W)=>{const fe=N.partUids[W];return l.getSystem().getByUid(fe).toOptional()},gm=(l,N,W)=>Jo(l,N,W).getOrDie("Could not find part: "+W),YC=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]))}),fe},gk=(l,N)=>{const W=l.getSystem();return Ue(N.partUids,(fe,Se)=>x(W.getByUid(fe)))},Lw=l=>ke(l.partUids),Kb=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]).getOrDie())}),fe},vk=(l,N)=>{const W=qC(N);return ua(re(W,fe=>({key:fe,value:l+"-"+fe})))},Iw=l=>Ln("partUids","partUids",_u(N=>vk(N.uid,l)),Ut());var XC=Object.freeze({__proto__:null,generate:QC,generateOne:ZC,schemas:aE,names:qC,substitutes:j3,components:WC,defaultUids:vk,defaultUidsSchema:Iw,getAllParts:gk,getAllPartNames:Lw,getPart:Jo,getPartOrDie:gm,getParts:YC,getPartsOrDie:Kb});const sE=(l,N)=>(l.length>0?[si("parts",l)]:[]).concat([pn("uid"),Ar("dom",{}),Ar("components",[]),l1("originalSpec"),Ar("debug.sketcher",{})]).concat(N),yk=(l,N,W,fe,Se)=>{const Be=sE(fe,Se);return Xt(l+" [SpecSchema]",Os(Be.concat(N)),W)},Dw=(l,N,W,fe)=>{const Se=KC(fe),Be=yk(l,N,Se,[],[]);return W(Be,Se)},Dy=(l,N,W,fe,Se)=>{const Be=KC(Se),qe=aE(W),ft=Iw(W),yt=yk(l,N,Be,qe,[ft]),Lt=j3(l,yt,W),Ht=WC(l,yt,Lt.internals());return fe(yt,Ht,Be,Lt.externals())},GC=l=>ht(l,"uid"),KC=l=>GC(l)?l:{...l,uid:vy("uid")},lE=l=>l.uid!==void 0,bk=Os([pn("name"),pn("factory"),pn("configFields"),Ar("apis",{}),Ar("extraApis",{})]),cE=Os([pn("name"),pn("factory"),pn("configFields"),pn("partFields"),Ar("apis",{}),Ar("extraApis",{})]),Qp=l=>{const N=Xt("Sketcher for "+l.name,bk,l),W=Be=>Dw(N.name,N.configFields,N.factory,Be),fe=Ue(N.apis,Tb),Se=Ue(N.extraApis,(Be,qe)=>Y1(Be,qe));return{name:N.name,configFields:N.configFields,sketch:W,...fe,...Se}},Zh=l=>{const N=Xt("Sketcher for "+l.name,cE,l),W=qe=>Dy(N.name,N.configFields,N.partFields,N.factory,qe),fe=QC(N.name,N.partFields),Se=Ue(N.apis,Tb),Be=Ue(N.extraApis,(qe,ft)=>Y1(qe,ft));return{name:N.name,partFields:N.partFields,configFields:N.configFields,sketch:W,parts:fe,...Se,...Be}},M2=l=>Jr("input")(l)&&Nr(l,"type")!=="radio"||Jr("textarea")(l);var uE=Object.freeze({__proto__:null,getCurrent:(l,N,W)=>N.find(l)});const xk=[pn("find")],Xs=id({fields:xk,name:"composing",apis:uE}),fE=["input","button","textarea","select"],dE=(l,N,W)=>{(N.disabled()?Bw:_k)(l,N)},JC=(l,N)=>N.useNative===!0&&X(fE,vr(l.element)),RD=l=>zo(l.element,"disabled"),O1=l=>{Cr(l.element,"disabled","disabled")},Q3=l=>{Qt(l.element,"disabled")},hE=l=>Nr(l.element,"aria-disabled")==="true",pE=l=>{Cr(l.element,"aria-disabled","true")},e6=l=>{Cr(l.element,"aria-disabled","false")},Bw=(l,N,W)=>{N.disableClass.each(Se=>{uc(l.element,Se)}),(JC(l,N)?O1:pE)(l),N.onDisabled(l)},_k=(l,N,W)=>{N.disableClass.each(Se=>{Zc(l.element,Se)}),(JC(l,N)?Q3:e6)(l),N.onEnabled(l)},t6=(l,N)=>JC(l,N)?RD(l):hE(l);var E2=Object.freeze({__proto__:null,enable:_k,disable:Bw,isDisabled:t6,onLoad:dE,set:(l,N,W,fe)=>{(fe?Bw:_k)(l,N)}}),n6=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:N.disabled()?N.disableClass.toArray():[]}),events:(l,N)=>Rl([zx(Bp(),(W,fe)=>t6(W,l)),Q_(l,N,dE)])}),mE=[ys("disabled",D),Ar("useNative",!0),Yo("disableClass"),Ss("onDisabled"),Ss("onEnabled")];const he=id({fields:mE,name:"disabling",active:n6,apis:E2}),Ce=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.highlightClass);q(Se,Be=>{te(fe,ft=>_o(ft.element,Be))||(Zc(Be,N.highlightClass),l.getSystem().getByDom(Be).each(ft=>{N.onDehighlight(l,ft),Za(ft,cu())}))})},Xe=(l,N,W)=>Ce(l,N,W,[]),lt=(l,N,W,fe)=>{Mr(l,N,W,fe)&&(Zc(fe.element,N.highlightClass),N.onDehighlight(l,fe),Za(fe,cu()))},Ct=(l,N,W,fe)=>{Ce(l,N,W,[fe]),Mr(l,N,W,fe)||(uc(fe.element,N.highlightClass),N.onHighlight(l,fe),Za(fe,e1()))},Wt=(l,N,W)=>{ki(l,N).each(fe=>{Ct(l,N,W,fe)})},kn=(l,N,W)=>{xi(l,N).each(fe=>{Ct(l,N,W,fe)})},Vn=(l,N,W,fe)=>{ti(l,N,W,fe).fold(Se=>{throw Se},Se=>{Ct(l,N,W,Se)})},or=(l,N,W,fe)=>{const Se=oi(l,N);ce(Se,fe).each(qe=>{Ct(l,N,W,qe)})},Mr=(l,N,W,fe)=>rp(fe.element,N.highlightClass),no=(l,N,W)=>qa(l.element,"."+N.highlightClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),ti=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return I.from(Se[fe]).fold(()=>aa.error(new Error("No element found with index "+fe)),l.getSystem().getByDom)},ki=(l,N,W)=>qa(l.element,"."+N.itemClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),xi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return(fe.length>0?I.some(fe[fe.length-1]):I.none()).bind(Be=>l.getSystem().getByDom(Be).toOptional())},fi=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return de(Se,qe=>rp(qe,N.highlightClass)).bind(qe=>{const ft=uv(qe,fe,0,Se.length-1);return l.getSystem().getByDom(Se[ft]).toOptional()})},Vi=(l,N,W)=>fi(l,N,W,-1),Xo=(l,N,W)=>fi(l,N,W,1),oi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return zt(re(fe,Se=>l.getSystem().getByDom(Se).toOptional()))};var wa=Object.freeze({__proto__:null,dehighlightAll:Xe,dehighlight:lt,highlight:Ct,highlightFirst:Wt,highlightLast:kn,highlightAt:Vn,highlightBy:or,isHighlighted:Mr,getHighlighted:no,getFirst:ki,getLast:xi,getPrevious:Vi,getNext:Xo,getCandidates:oi}),Pa=[pn("highlightClass"),pn("itemClass"),Ss("onHighlight"),Ss("onDehighlight")];const ta=id({fields:Pa,name:"highlighting",apis:wa}),nu=[8],Ll=[9],$u=[13],vm=[27],gh=[32],Jb=[37],ex=[38],Tl=[39],Ld=[40],sp=(l,N,W)=>{const fe=we(l.slice(0,N)),Se=we(l.slice(N+1));return ce(fe.concat(Se),W)},Rg=(l,N,W)=>{const fe=we(l.slice(0,N));return ce(fe,W)},ym=(l,N,W)=>{const fe=l.slice(0,N),Se=l.slice(N+1);return ce(Se.concat(fe),W)},P2=(l,N,W)=>{const fe=l.slice(N+1);return ce(fe,W)},Wa=l=>N=>{const W=N.raw;return X(l,W.which)},bm=l=>N=>_e(l,W=>W(N)),Lg=l=>l.raw.shiftKey===!0,S1=l=>l.raw.ctrlKey===!0,Zf=P(Lg),el=(l,N)=>({matches:l,classification:N}),Ok=(l,N)=>ce(l,fe=>fe.matches(N)).map(fe=>fe.classification),Sk=(l,N,W)=>{N.exists(Se=>W.exists(Be=>_o(Be,Se)))||sa(l,q1(),{prevFocus:N,newFocus:W})},H3=()=>{const l=W=>Wd(W.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().triggerFocus(fe,W.element);const Be=l(W);Sk(W,Se,Be)}}},r6=()=>{const l=W=>ta.getHighlighted(W).map(fe=>fe.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().getByDom(fe).fold(v,qe=>{ta.highlight(W,qe)});const Be=l(W);Sk(W,Se,Be)}}};var Mv;(function(l){l.OnFocusMode="onFocus",l.OnEnterOrSpaceMode="onEnterOrSpace",l.OnApiMode="onApi"})(Mv||(Mv={}));const tx=(l,N,W,fe,Se)=>{const Be=()=>l.concat([Ar("focusManager",H3()),ns("focusInside","onFocus",rt(Lt=>X(["onFocus","onEnterOrSpace","onApi"],Lt)?aa.value(Lt):aa.error("Invalid value for focusInside"))),Sl("handler",yt),Sl("state",N),Sl("sendFocusIn",Se)]),qe=(Lt,Ht,fn,Rn,Bn)=>{const er=fn(Lt,Ht,Rn,Bn);return Ok(er,Ht.event).bind(cr=>cr(Lt,Ht,Rn,Bn))},yt={schema:Be,processKey:qe,toEvents:(Lt,Ht)=>{const fn=Lt.focusInside!==Mv.OnFocusMode?I.none():Se(Lt).map(er=>Lo(Oh(),(cr,Xr)=>{er(cr,Lt,Ht),Xr.stop()})),Rn=(er,cr)=>{const Xr=Wa(gh.concat($u))(cr.event);Lt.focusInside===Mv.OnEnterOrSpaceMode&&Xr&&lh(er,cr)&&Se(Lt).each(br=>{br(er,Lt,Ht),cr.stop()})},Bn=[Lo(nm(),(er,cr)=>{qe(er,cr,W,Lt,Ht).fold(()=>{Rn(er,cr)},Xr=>{cr.stop()})}),Lo(G0(),(er,cr)=>{qe(er,cr,fe,Lt,Ht).each(Xr=>{cr.stop()})})];return Rl(fn.toArray().concat(Bn))}};return yt},R2=l=>{const N=[Yo("onEscape"),Yo("onEnter"),Ar("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ar("firstTabstop",0),Ar("useTabstopAt",k),Yo("visibilitySelector")].concat([l]),W=(br,Fr)=>{const jr=br.visibilitySelector.bind(Ro=>Sc(Fr,Ro)).getOr(Fr);return il(jr)>0},fe=(br,Fr)=>{const jr=Yd(br.element,Fr.selector),Ro=me(jr,ko=>W(Fr,ko));return I.from(Ro[Fr.firstTabstop])},Se=(br,Fr)=>Fr.focusManager.get(br).bind(jr=>Sc(jr,Fr.selector)),Be=(br,Fr)=>W(br,Fr)&&br.useTabstopAt(Fr),qe=(br,Fr,jr)=>{fe(br,Fr).each(Ro=>{Fr.focusManager.set(br,Ro)})},ft=(br,Fr,jr,Ro,ko)=>ko(Fr,jr,_i=>Be(Ro,_i)).fold(()=>Ro.cyclic?I.some(!0):I.none(),_i=>(Ro.focusManager.set(br,_i),I.some(!0))),yt=(br,Fr,jr,Ro)=>{const ko=Yd(br.element,jr.selector);return Se(br,jr).bind(_i=>de(ko,T(_o,_i)).bind(Ao=>ft(br,ko,Ao,jr,Ro)))},Lt=(br,Fr,jr)=>{const Ro=jr.cyclic?sp:Rg;return yt(br,Fr,jr,Ro)},Ht=(br,Fr,jr)=>{const Ro=jr.cyclic?ym:P2;return yt(br,Fr,jr,Ro)},fn=br=>Sr(br).bind(Rr).exists(Fr=>_o(Fr,br)),Rn=(br,Fr,jr)=>Se(br,jr).filter(Ro=>!jr.useTabstopAt(Ro)).bind(Ro=>(fn(Ro)?Lt:Ht)(br,Fr,jr)),Bn=(br,Fr,jr)=>jr.onEnter.bind(Ro=>Ro(br,Fr)),er=(br,Fr,jr)=>jr.onEscape.bind(Ro=>Ro(br,Fr)),cr=x([el(bm([Lg,Wa(Ll)]),Lt),el(Wa(Ll),Ht),el(bm([Zf,Wa($u)]),Bn)]),Xr=x([el(Wa(vm),er),el(Wa(Ll),Rn)]);return tx(N,uh.init,cr,Xr,()=>I.some(qe))};var $q=R2(gn("cyclic",D)),Vq=R2(gn("cyclic",k));const kk=(l,N,W)=>(t1(l,W,Bp()),I.some(!0)),Z3=(l,N,W)=>M2(W)&&Wa(gh)(N.event)?I.none():kk(l,N,W),zw=(l,N)=>I.some(!0),gE=[Ar("execute",Z3),Ar("useSpace",!1),Ar("useEnter",!0),Ar("useControlEnter",!1),Ar("useDown",!1)],DD=(l,N,W)=>W.execute(l,N,l.element),BD=(l,N,W,fe)=>{const Se=W.useSpace&&!M2(l.element)?gh:[],Be=W.useEnter?$u:[],qe=W.useDown?Ld:[],ft=Se.concat(Be).concat(qe);return[el(Wa(ft),DD)].concat(W.useControlEnter?[el(bm([S1,Wa($u)]),DD)]:[])},Uq=(l,N,W,fe)=>W.useSpace&&!M2(l.element)?[el(Wa(gh),zw)]:[];var zD=tx(gE,uh.init,BD,Uq,()=>I.none());const vE=()=>{const l=ds();return Hd({readState:()=>l.get().map(Se=>({numRows:String(Se.numRows),numColumns:String(Se.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(Se,Be)=>{l.set({numRows:Se,numColumns:Be})},getNumRows:()=>l.get().map(Se=>Se.numRows),getNumColumns:()=>l.get().map(Se=>Se.numColumns)})};var jq=Object.freeze({__proto__:null,flatgrid:vE,init:l=>l.state(l)});const ND=l=>(N,W,fe,Se)=>{const Be=l(N.element);return Tk(Be,N,W,fe,Se)},yE=(l,N)=>{const W=Hf(l,N);return ND(W)},bE=(l,N)=>{const W=Hf(N,l);return ND(W)},xE=l=>(N,W,fe,Se)=>Tk(l,N,W,fe,Se),Tk=(l,N,W,fe,Se)=>fe.focusManager.get(N).bind(qe=>l(N.element,qe,fe,Se)).map(qe=>(fe.focusManager.set(N,qe),!0)),o6=xE,FD=xE,_E=xE,$D=l=>l.offsetWidth<=0&&l.offsetHeight<=0,VD=l=>!$D(l.dom),Qq=(l,N)=>de(l,N).map(W=>({index:W,candidates:l})),Ig=(l,N,W)=>{const fe=qe=>_o(qe,N),Se=Yd(l,W),Be=me(Se,VD);return Qq(Be,fe)},UD=(l,N)=>de(l,W=>_o(N,W)),jD=(l,N,W,fe)=>{const Se=Math.floor(N/W),Be=N%W;return fe(Se,Be).bind(qe=>{const ft=qe.row*W+qe.column;return ft>=0&&ftjD(l,N,fe,(Be,qe)=>{const yt=Be===W-1?l.length-Be*fe:fe,Lt=uv(qe,Se,0,yt-1);return I.some({row:Be,column:Lt})}),HD=(l,N,W,fe,Se)=>jD(l,N,fe,(Be,qe)=>{const ft=uv(Be,Se,0,W-1),Lt=ft===W-1?l.length-ft*fe:fe,Ht=Mh(qe,0,Lt-1);return I.some({row:ft,column:Ht})}),Hq=(l,N,W,fe)=>QD(l,N,W,fe,1),q3=(l,N,W,fe)=>QD(l,N,W,fe,-1),wE=(l,N,W,fe)=>HD(l,N,W,fe,-1),Zq=(l,N,W,fe)=>HD(l,N,W,fe,1),OE=[pn("selector"),Ar("execute",Z3),kd("onEscape"),Ar("captureTab",!1),Yx()],i6=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},SE=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),qq=(l,N,W,fe)=>SE(l,W).bind(Se=>W.execute(l,N,Se)),a6=l=>(N,W,fe,Se)=>Ig(N,W,fe.selector).bind(Be=>l(Be.candidates,Be.index,Se.getNumRows().getOr(fe.initSize.numRows),Se.getNumColumns().getOr(fe.initSize.numColumns))),ZD=(l,N,W)=>W.captureTab?I.some(!0):I.none(),Wq=(l,N,W)=>W.onEscape(l,N),qD=a6(q3),WD=a6(Hq),Yq=a6(wE),YD=a6(Zq),s6=x([el(Wa(Jb),yE(qD,WD)),el(Wa(Tl),bE(qD,WD)),el(Wa(ex),o6(Yq)),el(Wa(Ld),FD(YD)),el(bm([Lg,Wa(Ll)]),ZD),el(bm([Zf,Wa(Ll)]),ZD),el(Wa(gh.concat($u)),qq)]),Xq=x([el(Wa(vm),Wq),el(Wa(gh),zw)]);var Gq=tx(OE,vE,s6,Xq,()=>I.some(i6));const XD=(l,N,W,fe,Se)=>{const Be=ft=>vr(ft)==="button"&&Nr(ft,"disabled")==="disabled",qe=(ft,yt,Lt)=>Se(ft,yt,fe,0,Lt.length-1,Lt[yt],Ht=>Be(Lt[Ht])?qe(ft,Ht,Lt):I.from(Lt[Ht]));return Ig(l,W,N).bind(ft=>{const yt=ft.index,Lt=ft.candidates;return qe(yt,yt,Lt)})},GD=(l,N,W,fe)=>XD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=Mh(Be+qe,ft,yt);return fn===Se?I.from(Lt):Ht(fn)}),nx=(l,N,W,fe)=>XD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=uv(Be,qe,ft,yt);return fn===Se?I.none():Ht(fn)}),KD=[pn("selector"),Ar("getInitial",I.none),Ar("execute",Z3),kd("onEscape"),Ar("executeOnMove",!1),Ar("allowVertical",!0),Ar("allowHorizontal",!0),Ar("cycles",!0)],Kq=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Ck=(l,N,W)=>Kq(l,W).bind(fe=>W.execute(l,N,fe)),Jq=(l,N,W)=>{N.getInitial(l).orThunk(()=>qa(l.element,N.selector)).each(fe=>{N.focusManager.set(l,fe)})},kE=(l,N,W)=>(W.cycles?nx:GD)(l,W.selector,N,-1),TE=(l,N,W)=>(W.cycles?nx:GD)(l,W.selector,N,1),CE=l=>(N,W,fe,Se)=>l(N,W,fe,Se).bind(()=>fe.executeOnMove?Ck(N,W,fe):I.some(!0)),JD=(l,N,W)=>W.onEscape(l,N),eB=(l,N,W,fe)=>{const Se=[...W.allowHorizontal?Jb:[]].concat(W.allowVertical?ex:[]),Be=[...W.allowHorizontal?Tl:[]].concat(W.allowVertical?Ld:[]);return[el(Wa(Se),CE(yE(kE,TE))),el(Wa(Be),CE(bE(kE,TE))),el(Wa($u),Ck),el(Wa(gh),Ck)]},eW=x([el(Wa(gh),zw),el(Wa(vm),JD)]);var tW=tx(KD,uh.init,eB,eW,()=>I.some(Jq));const l6=(l,N,W)=>I.from(l[N]).bind(fe=>I.from(fe[W]).map(Se=>({rowIndex:N,columnIndex:W,cell:Se}))),c6=(l,N,W,fe)=>{const Be=l[N].length,qe=uv(W,fe,0,Be-1);return l6(l,N,qe)},tB=(l,N,W,fe)=>{const Se=uv(W,fe,0,l.length-1),Be=l[Se].length,qe=Mh(N,0,Be-1);return l6(l,Se,qe)},Ak=(l,N,W,fe)=>{const Be=l[N].length,qe=Mh(W+fe,0,Be-1);return l6(l,N,qe)},nB=(l,N,W,fe)=>{const Se=Mh(W+fe,0,l.length-1),Be=l[Se].length,qe=Mh(N,0,Be-1);return l6(l,Se,qe)},rB=(l,N,W)=>c6(l,N,W,1),Hp=(l,N,W)=>c6(l,N,W,-1),nW=(l,N,W)=>tB(l,W,N,-1),oB=(l,N,W)=>tB(l,W,N,1),iB=(l,N,W)=>Ak(l,N,W,-1),rW=(l,N,W)=>Ak(l,N,W,1),aB=(l,N,W)=>nB(l,W,N,-1),sB=(l,N,W)=>nB(l,W,N,1),oW=[si("selectors",[pn("row"),pn("cell")]),Ar("cycles",!0),Ar("previousSelector",I.none),Ar("execute",Z3)],iW=(l,N,W)=>{N.previousSelector(l).orThunk(()=>{const Se=N.selectors;return qa(l.element,Se.cell)}).each(Se=>{N.focusManager.set(l,Se)})},aW=(l,N,W)=>Wd(l.element).bind(fe=>W.execute(l,N,fe)),sW=(l,N)=>re(l,W=>Yd(W,N.selectors.cell)),Mk=(l,N)=>(W,fe,Se)=>{const Be=Se.cycles?l:N;return Sc(fe,Se.selectors.row).bind(qe=>{const ft=Yd(qe,Se.selectors.cell);return UD(ft,fe).bind(yt=>{const Lt=Yd(W,Se.selectors.row);return UD(Lt,qe).bind(Ht=>{const fn=sW(Lt,Se);return Be(fn,Ht,yt).map(Rn=>Rn.cell)})})})},lB=Mk(Hp,iB),cB=Mk(rB,rW),uB=Mk(nW,aB),fB=Mk(oB,sB),dB=x([el(Wa(Jb),yE(lB,cB)),el(Wa(Tl),bE(lB,cB)),el(Wa(ex),o6(uB)),el(Wa(Ld),FD(fB)),el(Wa(gh.concat($u)),aW)]),lW=x([el(Wa(gh),zw)]);var cW=tx(oW,uh.init,dB,lW,()=>I.some(iW));const uW=[pn("selector"),Ar("execute",Z3),Ar("moveOnTab",!1)],hB=(l,N,W)=>W.focusManager.get(l).bind(fe=>W.execute(l,N,fe)),pB=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},AE=(l,N,W)=>nx(l,W.selector,N,-1),rx=(l,N,W)=>nx(l,W.selector,N,1),mB=(l,N,W,fe)=>W.moveOnTab?_E(AE)(l,N,W,fe):I.none(),gB=(l,N,W,fe)=>W.moveOnTab?_E(rx)(l,N,W,fe):I.none(),vB=x([el(Wa(ex),_E(AE)),el(Wa(Ld),_E(rx)),el(bm([Lg,Wa(Ll)]),mB),el(bm([Zf,Wa(Ll)]),gB),el(Wa($u),hB),el(Wa(gh),hB)]),fW=x([el(Wa(gh),zw)]);var W3=tx(uW,uh.init,vB,fW,()=>I.some(pB));const dW=[kd("onSpace"),kd("onEnter"),kd("onShiftEnter"),kd("onLeft"),kd("onRight"),kd("onTab"),kd("onShiftTab"),kd("onUp"),kd("onDown"),kd("onEscape"),Ar("stopSpaceKeyup",!1),Yo("focusIn")],hW=(l,N,W)=>[el(Wa(gh),W.onSpace),el(bm([Zf,Wa($u)]),W.onEnter),el(bm([Lg,Wa($u)]),W.onShiftEnter),el(bm([Lg,Wa(Ll)]),W.onShiftTab),el(bm([Zf,Wa(Ll)]),W.onTab),el(Wa(ex),W.onUp),el(Wa(Ld),W.onDown),el(Wa(Jb),W.onLeft),el(Wa(Tl),W.onRight),el(Wa(gh),W.onSpace)],yB=(l,N,W)=>[...W.stopSpaceKeyup?[el(Wa(gh),zw)]:[],el(Wa(vm),W.onEscape)];var pW=tx(dW,uh.init,hW,yB,l=>l.focusIn);const mW=$q.schema(),gW=Vq.schema(),bB=tW.schema(),ME=Gq.schema(),EE=cW.schema(),vW=zD.schema(),L2=W3.schema(),xB=pW.schema();var _B=Object.freeze({__proto__:null,acyclic:mW,cyclic:gW,flow:bB,flatgrid:ME,matrix:EE,execution:vW,menu:L2,special:xB});const yW=l=>pt(l,"setGridSize"),ha=HO({branchKey:"mode",branches:_B,name:"keying",active:{events:(l,N)=>l.handler.toEvents(l,N)},apis:{focusIn:(l,N,W)=>{N.sendFocusIn(N).fold(()=>{l.getSystem().triggerFocus(l.element,l.element)},fe=>{fe(l,N,W)})},setGridSize:(l,N,W,fe,Se)=>{yW(W)?W.setGridSize(fe,Se):console.error("Layout does not support setGridSize")}},state:jq}),Y3=(l,N)=>{w0(()=>{ek(l,N,()=>re(N,l.getSystem().build))},l.element)},X3=(l,N)=>{w0(()=>{_3(l,N,()=>ct(l.element,N,l.getSystem().buildOrPatch))},l.element)},wB=(l,N,W,fe)=>{Ow(N);const Se=nt(l.element,W,fe,l.getSystem().buildOrPatch);J4(l,Se),l.syncComponents()},Ek=(l,N,W)=>{const fe=l.getSystem().build(W);LC(l,fe,N)},I2=(l,N,W,fe)=>{kv(N),Ek(l,(Se,Be)=>Vd(Se,Be,W),fe)},D2=(l,N,W,fe)=>(N.reuseDom?X3:Y3)(l,fe),bW=(l,N,W,fe)=>{Ek(l,Bc,fe)},xW=(l,N,W,fe)=>{Ek(l,sf,fe)},OB=(l,N,W,fe)=>{const Se=k1(l);ce(Se,qe=>_o(fe.element,qe.element)).each(kv)},k1=(l,N)=>l.components(),u6=(l,N,W,fe,Se)=>{const Be=k1(l);return I.from(Be[fe]).map(qe=>(Se.fold(()=>kv(qe),ft=>{(N.reuseDom?wB:I2)(l,qe,fe,ft)}),qe))};var SB=Object.freeze({__proto__:null,append:bW,prepend:xW,remove:OB,replaceAt:u6,replaceBy:(l,N,W,fe,Se)=>{const Be=k1(l);return de(Be,fe).bind(qe=>u6(l,N,W,qe,Se))},set:D2,contents:k1});const Fa=id({fields:[Hs("reuseDom",!0)],name:"replacing",apis:SB}),kB=(l,N)=>{const W=Rl(N);return id({fields:[pn("enabled")],name:l,active:{events:x(W)}})},Ka=(l,N)=>{const W=kB(l,N);return{key:l,value:{config:{},me:W,configAsRaw:x({}),initialConfig:{},state:uh}}},PE=(l,N)=>{N.ignore||(Md(l.element),N.onFocus(l))};var _W=Object.freeze({__proto__:null,focus:PE,blur:(l,N)=>{N.ignore||m1(l.element)},isFocused:l=>_0(l.element)}),f6=Object.freeze({__proto__:null,exhibit:(l,N)=>{const W=N.ignore?{}:{attributes:{tabindex:"-1"}};return np(W)},events:l=>Rl([Lo(Oh(),(N,W)=>{PE(N,l),W.stop()})].concat(l.stopMousedown?[Lo(Nc(),(N,W)=>{W.event.prevent()})]:[]))}),CB=[Ss("onFocus"),Ar("stopMousedown",!1),Ar("ignore",!1)];const Ra=id({fields:CB,name:"focusing",active:f6,apis:_W}),AB=l=>({init:()=>{const W=wi(l);return{get:()=>W.get(),set:ft=>W.set(ft),clear:()=>W.set(l),readState:()=>W.get()}}}),MB=(l,N,W)=>{const fe=N.aria;fe.update(l,fe,W.get())},EB=(l,N,W)=>{N.toggleClass.each(fe=>{W.get()?uc(l.element,fe):Zc(l.element,fe)})},G3=(l,N,W,fe)=>{const Se=W.get();W.set(fe),EB(l,N,W),MB(l,N,W),Se!==fe&&N.onToggled(l,fe)},PB=(l,N,W)=>{G3(l,N,W,!W.get())},LE=(l,N,W)=>{G3(l,N,W,!0)},wW=(l,N,W)=>{G3(l,N,W,!1)},OW=(l,N,W)=>W.get(),RB=(l,N,W)=>{G3(l,N,W,N.selected)};var SW=Object.freeze({__proto__:null,onLoad:RB,toggle:PB,isOn:OW,on:LE,off:wW,set:G3}),TW=Object.freeze({__proto__:null,exhibit:()=>np({}),events:(l,N)=>{const W=_g(l,N,PB),fe=Q_(l,N,RB);return Rl(ye([l.toggleOnExecute?[W]:[],[fe]]))}});const LB=(l,N,W)=>{Cr(l.element,"aria-pressed",W),N.syncWithExpanded&&K3(l,N,W)},Pk=(l,N,W)=>{Cr(l.element,"aria-selected",W)},CW=(l,N,W)=>{Cr(l.element,"aria-checked",W)},K3=(l,N,W)=>{Cr(l.element,"aria-expanded",W)};var IE=[Ar("selected",!1),Yo("toggleClass"),Ar("toggleOnExecute",!0),Ss("onToggled"),ns("aria",{mode:"none"},bn("mode",{pressed:[Ar("syncWithExpanded",!1),Sl("update",LB)],checked:[Sl("update",CW)],expanded:[Sl("update",K3)],selected:[Sl("update",Pk)],none:[Sl("update",v)]}))];const us=id({fields:IE,name:"toggling",active:TW,apis:SW,state:AB(!1)}),DE=()=>{const l=(N,W)=>{W.stop(),Bm(N)};return[Lo(H1(),l),Lo(Lm(),l),od(Uh()),od(Nc())]},d6=l=>{const N=W=>kh((fe,Se)=>{W(fe),Se.stop()});return Rl(ye([l.map(N).toArray(),DE()]))},IB="alloy.item-hover",BE="alloy.item-focus",DB="alloy.item-toggled",zE=l=>{(Wd(l.element).isNone()||Ra.isFocused(l))&&(Ra.isFocused(l)||Ra.focus(l),sa(l,IB,{item:l}))},BB=l=>{sa(l,BE,{item:l})},AW=(l,N)=>{sa(l,DB,{item:l,state:N})},NE=x(IB),h6=x(BE),FE=x(DB),$E=l=>l.role.fold(()=>l.toggling.map(N=>N.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),MW=(l,N)=>({aria:{mode:N?"selected":"checked"},...Fe(l,(W,fe)=>fe!=="exclusive"),onToggled:(W,fe)=>{c(l.onToggled)&&l.onToggled(W,fe),AW(W,fe)}}),EW=l=>({dom:l.dom,domModification:{...l.domModification,attributes:{role:$E(l),...l.domModification.attributes,"aria-haspopup":l.hasSubmenu,...l.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Km.augment(l.itemBehaviours,[l.toggling.fold(us.revoke,N=>us.config(MW(N,l.role.exists(W=>W==="option")))),Ra.config({ignore:l.ignoreFocus,stopMousedown:l.ignoreFocus,onFocus:N=>{BB(N)}}),ha.config({mode:"execution"}),Ei.config({store:{mode:"memory",initialValue:l.data}}),Ka("item-type-events",[...DE(),Lo(wu(),zE),Lo(hb(),Ra.focus)])]),components:l.components,eventOrder:l.eventOrder}),PW=[pn("data"),pn("components"),pn("dom"),Ar("hasSubmenu",!1),Yo("toggling"),Yo("role"),Km.field("itemBehaviours",[us,Ra,ha,Ei]),Ar("ignoreFocus",!1),Ar("domModification",{}),Sl("builder",EW),Ar("eventOrder",{})],RW=l=>({dom:l.dom,components:l.components,events:Rl([U_(hb())])}),zB=[pn("dom"),pn("components"),Sl("builder",RW)],p6=x("item-widget"),VE=x([mh({name:"widget",overrides:l=>({behaviours:ei([Ei.config({store:{mode:"manual",getValue:N=>l.data,setValue:v}})])})})]),LW=l=>{const N=j3(p6(),l,VE()),W=WC(p6(),l,N.internals()),fe=Be=>Jo(Be,l,"widget").map(qe=>(ha.focusIn(qe),qe)),Se=(Be,qe)=>M2(qe.event.target)?I.none():(()=>(l.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:l.dom,components:W,domModification:l.domModification,events:Rl([kh((Be,qe)=>{fe(Be).each(ft=>{qe.stop()})}),Lo(wu(),zE),Lo(hb(),(Be,qe)=>{l.autofocus?fe(Be):Ra.focus(Be)})]),behaviours:Km.augment(l.widgetBehaviours,[Ei.config({store:{mode:"memory",initialValue:l.data}}),Ra.config({ignore:l.ignoreFocus,onFocus:Be=>{BB(Be)}}),ha.config({mode:"special",focusIn:l.autofocus?Be=>{fe(Be)}:cc(),onLeft:Se,onRight:Se,onEscape:(Be,qe)=>!Ra.isFocused(Be)&&!l.autofocus?(Ra.focus(Be),I.some(!0)):(l.autofocus&&qe.setSource(Be.element),I.none())})])}},IW=[pn("uid"),pn("data"),pn("components"),pn("dom"),Ar("autofocus",!1),Ar("ignoreFocus",!1),Km.field("widgetBehaviours",[Ei,Ra,ha]),Ar("domModification",{}),Iw(VE()),Sl("builder",LW)],DW=bn("type",{widget:IW,item:PW,separator:zB}),BW=(l,N)=>({mode:"flatgrid",selector:"."+l.markers.item,initSize:{numColumns:N.initSize.numColumns,numRows:N.initSize.numRows},focusManager:l.focusManager}),zW=(l,N)=>({mode:"matrix",selectors:{row:N.rowSelector,cell:"."+l.markers.item},previousSelector:N.previousSelector,focusManager:l.focusManager}),NB=(l,N)=>({mode:"menu",selector:"."+l.markers.item,moveOnTab:N.moveOnTab,focusManager:l.focusManager}),NW=x([U3({factory:{sketch:l=>{const N=Xt("menu.spec item",DW,l);return N.builder(N)}},name:"items",unit:"item",defaults:(l,N)=>ht(N,"uid")?N:{...N,uid:vy("item")},overrides:(l,N)=>({type:N.type,ignoreFocus:l.fakeFocus,domModification:{classes:[l.markers.item]}})})]),FW=x([jo("role"),pn("value"),pn("items"),pn("dom"),pn("components"),Ar("eventOrder",{}),Pd("menuBehaviours",[ta,Ei,Xs,ha]),ns("movement",{mode:"menu",moveOnTab:!0},bn("mode",{grid:[Yx(),Sl("config",BW)],matrix:[Sl("config",zW),pn("rowSelector"),Ar("previousSelector",I.none)],menu:[Ar("moveOnTab",!0),Sl("config",NB)]})),s1(),Ar("fakeFocus",!1),Ar("focusManager",H3()),Ss("onHighlight"),Ss("onDehighlight"),Ar("showMenuRole",!0)]),FB=x("alloy.menu-focus"),$W=(l,N)=>{const W=Yd(l.element,'[role="menuitemradio"][aria-checked="true"]');q(W,fe=>{_o(fe,N.element)||l.getSystem().getByDom(fe).each(Se=>{us.off(Se)})})},VW=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.menuBehaviours,[ta.config({highlightClass:l.markers.selectedItem,itemClass:l.markers.item,onHighlight:l.onHighlight,onDehighlight:l.onDehighlight}),Ei.config({store:{mode:"memory",initialValue:l.value}}),Xs.config({find:I.some}),ha.config(l.movement.config(l,l.movement))]),events:Rl([Lo(h6(),(Se,Be)=>{const qe=Be.event;Se.getSystem().getByDom(qe.target).each(ft=>{ta.highlight(Se,ft),Be.stop(),sa(Se,FB(),{menu:Se,item:ft})})}),Lo(NE(),(Se,Be)=>{const qe=Be.event.item;ta.highlight(Se,qe)}),Lo(FE(),(Se,Be)=>{const{item:qe,state:ft}=Be.event;ft&&Nr(qe.element,"role")==="menuitemradio"&&$W(Se,qe)})]),components:N,eventOrder:l.eventOrder,...l.showMenuRole?{domModification:{attributes:{role:l.role.getOr("menu")}}}:{}}),T0=Zh({name:"Menu",configFields:FW(),partFields:NW(),factory:VW}),UW=l=>Ze(l,(N,W)=>({k:N,v:W})),$B=(l,N,W,fe)=>Ge(W,fe).bind(Se=>Ge(l,Se).bind(Be=>{const qe=$B(l,N,W,Be);return I.some([Be].concat(qe))})).getOr([]),Nw=(l,N)=>{const W={};We(l,(qe,ft)=>{q(qe,yt=>{W[yt]=ft})});const fe=N,Se=UW(N),Be=Ue(Se,(qe,ft)=>[ft].concat($B(W,fe,Se,ft)));return Ue(W,qe=>Ge(Be,qe).getOr([qe]))},VB=()=>{const l=wi({}),N=wi({}),W=wi({}),fe=ds(),Se=wi({}),Be=()=>{l.set({}),N.set({}),W.set({}),fe.clear()},qe=()=>fe.get().isNone(),ft=(ko,_i)=>{N.set({...N.get(),[ko]:{type:"prepared",menu:_i}})},yt=(ko,_i,Pi,Ao)=>{fe.set(ko),l.set(Pi),N.set(_i),Se.set(Ao);const $i=Nw(Ao,Pi);W.set($i)},Lt=ko=>tt(l.get(),(_i,Pi)=>_i===ko),Ht=(ko,_i,Pi)=>cr(ko).bind(Ao=>Lt(ko).bind($i=>_i($i).map(yi=>({triggeredMenu:Ao,triggeringItem:yi,triggeringPath:Pi})))),fn=(ko,_i)=>{const Pi=me(br(ko).toArray(),Ao=>cr(Ao).isSome());return Ge(W.get(),ko).bind(Ao=>{const $i=we(Pi.concat(Ao)),yi=ve($i,(Xi,ks)=>Ht(Xi,_i,$i.slice(0,ks+1)).fold(()=>St(fe.get(),Xi)?[]:[I.none()],Ic=>[I.some(Ic)]));return Yt(yi)})},Rn=ko=>Ge(l.get(),ko).map(_i=>{const Pi=Ge(W.get(),ko).getOr([]);return[_i].concat(Pi)}),Bn=ko=>Ge(W.get(),ko).bind(_i=>_i.length>1?I.some(_i.slice(1)):I.none()),er=ko=>Ge(W.get(),ko),cr=ko=>Xr(ko).bind(UB),Xr=ko=>Ge(N.get(),ko),br=ko=>Ge(l.get(),ko);return{setMenuBuilt:ft,setContents:yt,expand:Rn,refresh:er,collapse:Bn,lookupMenu:Xr,lookupItem:br,otherMenus:ko=>{const _i=Se.get();return Te(ke(_i),ko)},getPrimary:()=>fe.get().bind(cr),getMenus:()=>N.get(),clear:Be,isClear:qe,getTriggeringPath:fn}},UB=l=>l.type==="prepared"?I.some(l.menu):I.none(),ox={init:VB,extractPreparedMenu:UB},jB=Li("tiered-menu-item-highlight"),QB=Li("tiered-menu-item-dehighlight");var Gu;(function(l){l[l.HighlightMenuAndItem=0]="HighlightMenuAndItem",l[l.HighlightJustMenu=1]="HighlightJustMenu",l[l.HighlightNone=2]="HighlightNone"})(Gu||(Gu={}));const HB=(l,N)=>{const W=ds(),fe=(Ko,Oi,La)=>Ue(La,(_a,fa)=>{const Qa=()=>T0.sketch({..._a,value:fa,markers:l.markers,fakeFocus:l.fakeFocus,onHighlight:(ac,vl)=>{sa(ac,jB,{menuComp:ac,itemComp:vl})},onDehighlight:(ac,vl)=>{sa(ac,QB,{menuComp:ac,itemComp:vl})},focusManager:l.fakeFocus?r6():H3()});return fa===Oi?{type:"prepared",menu:Ko.getSystem().build(Qa())}:{type:"notbuilt",nbMenu:Qa}}),Se=ox.init(),Be=Ko=>{const Oi=fe(Ko,l.data.primary,l.data.menus),La=yt();return Se.setContents(l.data.primary,Oi,l.data.expansions,La),Se.getPrimary()},qe=Ko=>Ei.getValue(Ko).value,ft=(Ko,Oi,La)=>Oe(Oi,_a=>{if(!_a.getSystem().isConnected())return I.none();const fa=ta.getCandidates(_a);return ce(fa,Qa=>qe(Qa)===La)}),yt=Ko=>Ue(l.data.menus,(Oi,La)=>ve(Oi.items,_a=>_a.type==="separator"?[]:[_a.data.value])),Lt=ta.highlight,Ht=(Ko,Oi)=>{Lt(Ko,Oi),ta.getHighlighted(Oi).orThunk(()=>ta.getFirst(Oi)).each(La=>{l.fakeFocus?ta.highlight(Oi,La):t1(Ko,La.element,hb())})},fn=(Ko,Oi)=>zt(re(Oi,La=>Ko.lookupMenu(La).bind(_a=>_a.type==="prepared"?I.some(_a.menu):I.none()))),Rn=(Ko,Oi,La)=>{const _a=fn(Oi,Oi.otherMenus(La));q(_a,fa=>{Oc(fa.element,[l.markers.backgroundMenu]),l.stayInDom||Fa.remove(Ko,fa)})},Bn=Ko=>W.get().getOrThunk(()=>{const Oi={},La=Yd(Ko.element,`.${l.markers.item}`),_a=me(La,fa=>Nr(fa,"aria-haspopup")==="true");return q(_a,fa=>{Ko.getSystem().getByDom(fa).each(Qa=>{const ac=qe(Qa);Oi[ac]=Qa})}),W.set(Oi),Oi}),er=(Ko,Oi)=>{const La=Bn(Ko);We(La,(_a,fa)=>{const Qa=X(Oi,fa);Cr(_a.element,"aria-expanded",Qa)})},cr=(Ko,Oi,La)=>I.from(La[0]).bind(_a=>Oi.lookupMenu(_a).bind(fa=>{if(fa.type==="notbuilt")return I.none();{const Qa=fa.menu,ac=fn(Oi,La.slice(1));return q(ac,vl=>{uc(vl.element,l.markers.backgroundMenu)}),Gn(Qa.element)||Fa.append(Ko,ea(Qa)),Oc(Qa.element,[l.markers.backgroundMenu]),Ht(Ko,Qa),Rn(Ko,Oi,La),I.some(Qa)}}));let Xr;(function(Ko){Ko[Ko.HighlightSubmenu=0]="HighlightSubmenu",Ko[Ko.HighlightParent=1]="HighlightParent"})(Xr||(Xr={}));const br=(Ko,Oi,La)=>{if(La.type==="notbuilt"){const _a=Ko.getSystem().build(La.nbMenu());return Se.setMenuBuilt(Oi,_a),_a}else return La.menu},Fr=(Ko,Oi,La=Xr.HighlightSubmenu)=>{if(Oi.hasConfigured(he)&&he.isDisabled(Oi))return I.some(Oi);{const _a=qe(Oi);return Se.expand(_a).bind(fa=>(er(Ko,fa),I.from(fa[0]).bind(Qa=>Se.lookupMenu(Qa).bind(ac=>{const vl=br(Ko,Qa,ac);return Gn(vl.element)||Fa.append(Ko,ea(vl)),l.onOpenSubmenu(Ko,Oi,vl,we(fa)),La===Xr.HighlightSubmenu?(ta.highlightFirst(vl),cr(Ko,Se,fa)):(ta.dehighlightAll(vl),I.some(Oi))}))))}},jr=(Ko,Oi)=>{const La=qe(Oi);return Se.collapse(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a).map(fa=>(l.onCollapseMenu(Ko,Oi,fa),fa))))},Ro=(Ko,Oi)=>{const La=qe(Oi);return Se.refresh(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a)))},ko=(Ko,Oi)=>M2(Oi.element)?I.none():Fr(Ko,Oi,Xr.HighlightSubmenu),_i=(Ko,Oi)=>M2(Oi.element)?I.none():jr(Ko,Oi),Pi=(Ko,Oi)=>jr(Ko,Oi).orThunk(()=>l.onEscape(Ko,Oi).map(()=>Ko)),Ao=Ko=>(Oi,La)=>Sc(La.getSource(),`.${l.markers.item}`).bind(_a=>Oi.getSystem().getByDom(_a).toOptional().bind(fa=>Ko(Oi,fa).map(k))),$i=Rl([Lo(FB(),(Ko,Oi)=>{const La=Oi.event.item;Se.lookupItem(qe(La)).each(()=>{const _a=Oi.event.menu;ta.highlight(Ko,_a);const fa=qe(Oi.event.item);Se.refresh(fa).each(Qa=>Rn(Ko,Se,Qa))})}),kh((Ko,Oi)=>{const La=Oi.event.target;Ko.getSystem().getByDom(La).each(_a=>{qe(_a).indexOf("collapse-item")===0&&jr(Ko,_a),Fr(Ko,_a,Xr.HighlightSubmenu).fold(()=>{l.onExecute(Ko,_a)},v)})}),wc((Ko,Oi)=>{Be(Ko).each(La=>{Fa.append(Ko,ea(La)),l.onOpenMenu(Ko,La),l.highlightOnOpen===Gu.HighlightMenuAndItem?Ht(Ko,La):l.highlightOnOpen===Gu.HighlightJustMenu&&Lt(Ko,La)})}),Lo(jB,(Ko,Oi)=>{l.onHighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),Lo(QB,(Ko,Oi)=>{l.onDehighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),...l.navigateOnHover?[Lo(NE(),(Ko,Oi)=>{const La=Oi.event.item;Ro(Ko,La),Fr(Ko,La,Xr.HighlightParent),l.onHover(Ko,La)})]:[]]),yi=Ko=>ta.getHighlighted(Ko).bind(ta.getHighlighted),Xi=Ko=>{yi(Ko).each(Oi=>{jr(Ko,Oi)})},ks=Ko=>{Se.getPrimary().each(Oi=>{Ht(Ko,Oi)})},Ic=Ko=>I.from(Ko.components()[0]).filter(Oi=>Nr(Oi.element,"role")==="menu"),Ui={collapseMenu:Xi,highlightPrimary:ks,repositionMenus:Ko=>{Se.getPrimary().bind(La=>yi(Ko).bind(_a=>{const fa=qe(_a),Qa=ot(Se.getMenus()),ac=zt(re(Qa,ox.extractPreparedMenu));return Se.getTriggeringPath(fa,vl=>ft(Ko,ac,vl))}).map(_a=>({primary:La,triggeringPath:_a}))).fold(()=>{Ic(Ko).each(La=>{l.onRepositionMenu(Ko,La,[])})},({primary:La,triggeringPath:_a})=>{l.onRepositionMenu(Ko,La,_a)})}};return{uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.tmenuBehaviours,[ha.config({mode:"special",onRight:Ao(ko),onLeft:Ao(_i),onEscape:Ao(Pi),focusIn:(Ko,Oi)=>{Se.getPrimary().each(La=>{t1(Ko,La.element,hb())})}}),ta.config({highlightClass:l.markers.selectedMenu,itemClass:l.markers.menu}),Xs.config({find:Ko=>ta.getHighlighted(Ko)}),Fa.config({})]),eventOrder:l.eventOrder,apis:Ui,events:$i}},ZB=x("collapse-item"),qB=(l,N,W)=>({primary:l,menus:N,expansions:W}),jW=(l,N)=>({primary:l,menus:Sa(l,N),expansions:{}}),m6=l=>({value:Li(ZB()),meta:{text:l}}),B2=Qp({name:"TieredMenu",configFields:[Sb("onExecute"),Sb("onEscape"),Ah("onOpenMenu"),Ah("onOpenSubmenu"),Ss("onRepositionMenu"),Ss("onCollapseMenu"),Ar("highlightOnOpen",Gu.HighlightMenuAndItem),si("data",[pn("primary"),pn("menus"),pn("expansions")]),Ar("fakeFocus",!1),Ss("onHighlightItem"),Ss("onDehighlightItem"),Ss("onHover"),Um(),pn("dom"),Ar("navigateOnHover",!0),Ar("stayInDom",!1),Pd("tmenuBehaviours",[ha,ta,Xs,Fa]),Ar("eventOrder",{})],apis:{collapseMenu:(l,N)=>{l.collapseMenu(N)},highlightPrimary:(l,N)=>{l.highlightPrimary(N)},repositionMenus:(l,N)=>{l.repositionMenus(N)}},factory:HB,extraApis:{tieredData:qB,singleData:jW,collapseItem:m6}}),QW=(l,N,W,fe,Se)=>{const Be=()=>l.lazySink(N),qe=fe.type==="horizontal"?{layouts:{onLtr:()=>Hm(),onRtl:()=>yv()}}:{},ft=Lt=>Lt.length===2,yt=Lt=>ft(Lt)?qe:{};return B2.sketch({dom:{tag:"div"},data:fe.data,markers:fe.menu.markers,highlightOnOpen:fe.menu.highlightOnOpen,fakeFocus:fe.menu.fakeFocus,onEscape:()=>(Ys.close(N),l.onEscape.map(Lt=>Lt(N)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(Lt,Ht)=>{Rh.positionWithinBounds(Be().getOrDie(),Ht,W,Se())},onOpenSubmenu:(Lt,Ht,fn,Rn)=>{const Bn=Be().getOrDie();Rh.position(Bn,fn,{anchor:{type:"submenu",item:Ht,...yt(Rn)}})},onRepositionMenu:(Lt,Ht,fn)=>{const Rn=Be().getOrDie();Rh.positionWithinBounds(Rn,Ht,W,Se()),q(fn,Bn=>{const er=yt(Bn.triggeringPath);Rh.position(Rn,Bn.triggeredMenu,{anchor:{type:"submenu",item:Bn.triggeringItem,...er}})})}})},HW=(l,N)=>{const W=(Rn,Bn)=>l.getRelated(Rn).exists(cr=>Cf(cr,Bn)),fe=(Rn,Bn)=>{Ys.setContent(Rn,Bn)},Se=(Rn,Bn,er)=>{const cr=I.none;Be(Rn,Bn,er,cr)},Be=(Rn,Bn,er,cr)=>{const Xr=l.lazySink(Rn).getOrDie();Ys.openWhileCloaked(Rn,Bn,()=>Rh.positionWithinBounds(Xr,Rn,er,cr())),Ei.setValue(Rn,I.some({mode:"position",config:er,getBounds:cr}))},qe=(Rn,Bn,er)=>{ft(Rn,Bn,er,I.none)},ft=(Rn,Bn,er,cr)=>{const Xr=QW(l,Rn,Bn,er,cr);Ys.open(Rn,Xr),Ei.setValue(Rn,I.some({mode:"menu",menu:Xr}))},yt=Rn=>{Ys.isOpen(Rn)&&(Ei.setValue(Rn,I.none()),Ys.close(Rn))},Lt=Rn=>Ys.getState(Rn),Ht=Rn=>{Ys.isOpen(Rn)&&Ei.getValue(Rn).each(Bn=>{switch(Bn.mode){case"menu":Ys.getState(Rn).each(B2.repositionMenus);break;case"position":const er=l.lazySink(Rn).getOrDie();Rh.positionWithinBounds(er,Rn,Bn.config,Bn.getBounds());break}})},fn={setContent:fe,showAt:Se,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:yt,getContent:Lt,reposition:Ht,isOpen:Ys.isOpen};return{uid:l.uid,dom:l.dom,behaviours:Rd(l.inlineBehaviours,[Ys.config({isPartOf:(Rn,Bn,er)=>Cf(Bn,er)||W(Rn,er),getAttachPoint:Rn=>l.lazySink(Rn).getOrDie(),onOpen:Rn=>{l.onShow(Rn)},onClose:Rn=>{l.onHide(Rn)}}),Ei.config({store:{mode:"memory",initialValue:I.none()}}),Ad.config({channels:{...Iy({isExtraPart:N.isExtraPart,...l.fireDismissalEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({})}),...ak({...l.fireRepositionEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({}),doReposition:Ht})}})]),eventOrder:l.eventOrder,apis:fn}},Xc=Qp({name:"InlineView",configFields:[pn("lazySink"),Ss("onShow"),Ss("onHide"),ai("onEscape"),Pd("inlineBehaviours",[Ys,Ei,Ad]),Ai("fireDismissalEventInstead",[Ar("event",J0())]),Ai("fireRepositionEventInstead",[Ar("event",F_())]),Ar("getRelated",I.none),Ar("isExtraPart",D),Ar("eventOrder",I.none)],factory:HW,apis:{showAt:(l,N,W,fe)=>{l.showAt(N,W,fe)},showWithinBounds:(l,N,W,fe,Se)=>{l.showWithinBounds(N,W,fe,Se)},showMenuAt:(l,N,W,fe)=>{l.showMenuAt(N,W,fe)},showMenuWithinBounds:(l,N,W,fe,Se)=>{l.showMenuWithinBounds(N,W,fe,Se)},hide:(l,N)=>{l.hide(N)},isOpen:(l,N)=>l.isOpen(N),getContent:(l,N)=>l.getContent(N),setContent:(l,N,W)=>{l.setContent(N,W)},reposition:(l,N)=>{l.reposition(N)}}});var J3=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),WB=tinymce.util.Tools.resolve("tinymce.EditorManager"),$w=tinymce.util.Tools.resolve("tinymce.Env"),C0;(function(l){l.default="wrap",l.floating="floating",l.sliding="sliding",l.scrolling="scrolling"})(C0||(C0={}));var Vw;(function(l){l.auto="auto",l.top="top",l.bottom="bottom"})(Vw||(Vw={}));const gc=l=>N=>N.options.get(l),Rk=l=>N=>I.from(l(N)),YB=l=>{const N=$w.deviceType.isPhone(),W=$w.deviceType.isTablet()||N,fe=l.options.register,Se=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);fe("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),fe("skin_url",{processor:"string"}),fe("height",{processor:Be,default:Math.max(l.getElement().offsetHeight,400)}),fe("width",{processor:Be,default:Fw.DOM.getStyle(l.getElement(),"width")}),fe("min_height",{processor:"number",default:100}),fe("min_width",{processor:"number"}),fe("max_height",{processor:"number"}),fe("max_width",{processor:"number"}),fe("style_formats",{processor:"object[]"}),fe("style_formats_merge",{processor:"boolean",default:!1}),fe("style_formats_autohide",{processor:"boolean",default:!1}),fe("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),fe("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),fe("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),fe("font_size_input_default_unit",{processor:"string",default:"pt"}),fe("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),fe("content_langs",{processor:"object[]"}),fe("removed_menuitems",{processor:"string",default:""}),fe("menubar",{processor:qe=>n(qe)||w(qe),default:!N}),fe("menu",{processor:"object",default:{}}),fe("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Z(9,qe=>{fe("toolbar"+(qe+1),{processor:"string"})}),fe("toolbar_mode",{processor:"string",default:W?"scrolling":"floating"}),fe("toolbar_groups",{processor:"object",default:{}}),fe("toolbar_location",{processor:"string",default:Vw.auto}),fe("toolbar_persist",{processor:"boolean",default:!1}),fe("toolbar_sticky",{processor:"boolean",default:l.inline}),fe("toolbar_sticky_offset",{processor:"number",default:0}),fe("fixed_toolbar_container",{processor:"string",default:""}),fe("fixed_toolbar_container_target",{processor:"object"}),fe("ui_mode",{processor:"string",default:"combined"}),fe("file_picker_callback",{processor:"function"}),fe("file_picker_validator_handler",{processor:"function"}),fe("file_picker_types",{processor:"string"}),fe("typeahead_urls",{processor:"boolean",default:!0}),fe("anchor_top",{processor:Se,default:"#top"}),fe("anchor_bottom",{processor:Se,default:"#bottom"}),fe("draggable_modal",{processor:"boolean",default:!1}),fe("statusbar",{processor:"boolean",default:!0}),fe("elementpath",{processor:"boolean",default:!0}),fe("branding",{processor:"boolean",default:!0}),fe("promotion",{processor:"boolean",default:!0}),fe("resize",{processor:qe=>qe==="both"||w(qe),default:!$w.deviceType.isTouch()}),fe("sidebar_show",{processor:"string"}),fe("help_accessibility",{processor:"boolean",default:l.hasPlugin("help")}),fe("default_font_stack",{processor:"string[]",default:[]})},XB=gc("readonly"),Lk=gc("height"),UE=gc("width"),Uw=Rk(gc("min_width")),eS=Rk(gc("min_height")),Ik=Rk(gc("max_width")),g6=Rk(gc("max_height")),GB=Rk(gc("style_formats")),KB=gc("style_formats_merge"),JB=gc("style_formats_autohide"),ez=gc("content_langs"),v6=gc("removed_menuitems"),jw=gc("toolbar_mode"),jE=gc("toolbar_groups"),Dk=gc("toolbar_location"),ZW=gc("fixed_toolbar_container"),tz=gc("fixed_toolbar_container_target"),nz=gc("toolbar_persist"),rz=gc("toolbar_sticky_offset"),oz=gc("menubar"),Bk=gc("toolbar"),iz=gc("file_picker_callback"),az=gc("file_picker_validator_handler"),y6=gc("font_size_input_default_unit"),QE=gc("file_picker_types"),HE=gc("typeahead_urls"),sz=gc("anchor_top"),b6=gc("anchor_bottom"),lz=gc("draggable_modal"),cz=gc("statusbar"),uz=gc("elementpath"),ZE=gc("branding"),fz=gc("resize"),qE=gc("paste_as_text"),x6=gc("sidebar_show"),dz=gc("promotion"),zk=gc("help_accessibility"),hz=gc("default_font_stack"),WE=l=>l.options.get("skin")===!1,_6=l=>l.options.get("menubar")!==!1,YE=l=>{const N=l.options.get("skin_url");if(WE(l))return N;if(N)return l.documentBaseURI.toAbsolute(N);{const W=l.options.get("skin");return WB.baseURL+"/skins/ui/"+W}},w6=l=>I.from(l.options.get("skin_url")),pz=l=>l.options.get("line_height_formats").split(" "),Nk=l=>{const N=Bk(l),W=n(N),fe=i(N)&&N.length>0;return!Fk(l)&&(fe||W||N===!0)},XE=l=>{const N=Z(9,fe=>l.options.get("toolbar"+(fe+1))),W=me(N,n);return Ot(W.length>0,W)},Fk=l=>XE(l).fold(()=>{const N=Bk(l);return p(N,n)&&N.length>0},k),$k=l=>Dk(l)===Vw.bottom,z2=l=>{var N;if(!l.inline)return I.none();const W=(N=ZW(l))!==null&&N!==void 0?N:"";if(W.length>0)return qa(Lr(),W);const fe=tz(l);return a(fe)?I.some(Nt.fromDom(fe)):I.none()},tS=l=>l.inline&&z2(l).isSome(),GE=l=>z2(l).getOrThunk(()=>Er(kr(Nt.fromDom(l.getElement())))),Vk=l=>l.inline&&!_6(l)&&!Nk(l)&&!Fk(l),Qw=l=>(l.options.get("toolbar_sticky")||l.inline)&&!tS(l)&&!Vk(l),N2=l=>!tS(l)&&l.options.get("ui_mode")==="split",mz=l=>{const N=l.options.get("menu");return Ue(N,W=>({...W,items:W.items}))};var gz=Object.freeze({__proto__:null,get ToolbarMode(){return C0},get ToolbarLocation(){return Vw},register:YB,getSkinUrl:YE,getSkinUrlOption:w6,isReadOnly:XB,isSkinDisabled:WE,getHeightOption:Lk,getWidthOption:UE,getMinWidthOption:Uw,getMinHeightOption:eS,getMaxWidthOption:Ik,getMaxHeightOption:g6,getUserStyleFormats:GB,shouldMergeStyleFormats:KB,shouldAutoHideStyleFormats:JB,getLineHeightFormats:pz,getContentLanguages:ez,getRemovedMenuItems:v6,isMenubarEnabled:_6,isMultipleToolbars:Fk,isToolbarEnabled:Nk,isToolbarPersist:nz,getMultipleToolbarsOption:XE,getUiContainer:GE,useFixedContainer:tS,isSplitUiMode:N2,getToolbarMode:jw,isDraggableModal:lz,isDistractionFree:Vk,isStickyToolbar:Qw,getStickyToolbarOffset:rz,getToolbarLocation:Dk,isToolbarLocationBottom:$k,getToolbarGroups:jE,getMenus:mz,getMenubar:oz,getToolbar:Bk,getFilePickerCallback:iz,getFilePickerTypes:QE,useTypeaheadUrls:HE,getAnchorTop:sz,getAnchorBottom:b6,getFilePickerValidatorHandler:az,getFontSizeInputDefaultUnit:y6,useStatusBar:cz,useElementPath:uz,promotionEnabled:dz,useBranding:ZE,getResize:fz,getPasteAsText:qE,getSidebarShow:x6,useHelpAccessibility:zk,getDefaultFontStack:hz});const qW=["visible","hidden","clip"],KE=l=>Dt(l).length>0&&!X(qW,l),JE=l=>{if(sr(l)){const N=Di(l,"overflow-x"),W=Di(l,"overflow-y");return KE(N)||KE(W)}else return!1},eP=l=>l.plugins.fullscreen&&l.plugins.fullscreen.isFullscreen(),WW=(l,N)=>{const W=_2(N,JE),fe=W.length===0?on(N).map(an).map(Se=>_2(Se,JE)).getOr([]):W;return Qe(fe).map(Se=>({element:Se,others:fe.slice(1),isFullscreen:()=>eP(l)}))},ix=(l,N)=>N2(l)?WW(l,N):I.none(),Hw=l=>{const N=[...re(l.others,cl),ts()];return l.isFullscreen()?ts():Qc(cl(l.element),N)},Lh=Qp({name:"Button",factory:l=>{const N=d6(l.action),W=l.dom.tag,fe=Be=>Ge(l.dom,"attributes").bind(qe=>Ge(qe,Be)),Se=()=>{if(W==="button"){const Be=fe("type").getOr("button"),qe=fe("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:l.role.getOr(fe("role").getOr("button"))}};return{uid:l.uid,dom:l.dom,components:l.components,events:N,behaviours:Km.augment(l.buttonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:Se()},eventOrder:l.eventOrder}},configFields:[Ar("uid",void 0),pn("dom"),Ar("components",[]),Km.field("buttonBehaviours",[Ra,ha]),Yo("action"),Yo("role"),Ar("eventOrder",{})]}),YW=l=>{const N=l.dom.attributes!==void 0?l.dom.attributes:[];return se(N,(W,fe)=>fe.name==="class"?W:{...W,[fe.name]:fe.value},{})},tP=l=>Array.prototype.slice.call(l.dom.classList,0),Ev=l=>{const N=Nt.fromHtml(l),W=Do(N),fe=YW(N),Se=tP(N),Be=W.length===0?{}:{innerHtml:Np(N)};return{tag:vr(N),classes:Se,attributes:fe,...Be}},ml=l=>{const N=lE(l)&&pt(l,"uid")?l.uid:vy("memento");return{get:Be=>Be.getSystem().getByUid(N).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(N).toOptional(),asSpec:()=>({...l,uid:N})}};var XW=Object.freeze({__proto__:null,exhibit:(l,N)=>np({attributes:ua([{key:N.tabAttr,value:"true"}])})}),GW=[Ar("tabAttr","data-alloy-tabstop")];const Rc=id({fields:GW,name:"tabstopping",active:XW}),yz=Li("tooltip.exclusive"),Uk=Li("tooltip.show"),jk=Li("tooltip.hide"),Qk=Li("tooltip.immediateHide"),Hk=Li("tooltip.immediateShow"),bz=(l,N,W)=>{l.getSystem().broadcastOn([yz],{})};var KW=Object.freeze({__proto__:null,hideAllExclusive:bz,immediateOpenClose:(l,N,W,fe)=>Za(l,fe?Hk:Qk),isEnabled:(l,N,W)=>W.isEnabled(),setComponents:(l,N,W,fe)=>{W.getTooltip().each(Se=>{Se.getSystem().isConnected()&&Fa.set(Se,fe)})},setEnabled:(l,N,W,fe)=>W.setEnabled(fe)}),nP=Object.freeze({__proto__:null,events:(l,N)=>{const W=qe=>{N.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(kv(ft),l.onHide(qe,ft),N.clearTooltip())}),N.clearTimer()},fe=qe=>{if(!N.isShowing()&&N.isEnabled()){bz(qe);const ft=l.lazySink(qe).getOrDie(),yt=qe.getSystem().build({dom:l.tooltipDom,components:l.tooltipComponents,events:Rl(l.mode==="normal"?[Lo(wu(),Lt=>{Za(qe,Uk)}),Lo(i0(),Lt=>{Za(qe,jk)})]:[]),behaviours:ei([Fa.config({})])});N.setTooltip(yt),Eg(ft,yt),l.onShow(qe,yt),Rh.position(ft,yt,{anchor:l.anchor(qe)})}},Se=qe=>{N.getTooltip().each(ft=>{const yt=l.lazySink(qe).getOrDie();Rh.position(yt,ft,{anchor:l.anchor(qe)})})},Be=()=>{switch(l.mode){case"normal":return[Lo(Dp(),qe=>{Za(qe,Hk)}),Lo(kf(),qe=>{Za(qe,Qk)}),Lo(wu(),qe=>{Za(qe,Uk)}),Lo(i0(),qe=>{Za(qe,jk)})];case"follow-highlight":return[Lo(e1(),(qe,ft)=>{Za(qe,Uk)}),Lo(cu(),qe=>{Za(qe,jk)})];case"children-normal":return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)}),Lo(wu(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{N.getTooltip().fold(()=>{Za(qe,Uk)},yt=>{N.isShowing()&&(l.onShow(qe,yt),Se(qe))})})}),Lo(i0(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Za(qe,jk)},v)})];default:return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)})]}};return Rl(ye([[Nx(qe=>{l.onSetup(qe)}),Lo(Uk,qe=>{N.resetTimer(()=>{fe(qe)},l.delayForShow())}),Lo(jk,qe=>{N.resetTimer(()=>{W(qe)},l.delayForHide())}),Lo(Hk,qe=>{N.resetTimer(()=>{fe(qe)},0)}),Lo(Qk,qe=>{N.resetTimer(()=>{W(qe)},0)}),Lo(yp(),(qe,ft)=>{const yt=ft;yt.universal||X(yt.channels,yz)&&W(qe)}),xg(qe=>{W(qe)})],Be()]))}}),JW=[pn("lazySink"),pn("tooltipDom"),Ar("exclusive",!0),Ar("tooltipComponents",[]),ys("delayForShow",x(300)),ys("delayForHide",x(300)),ys("onSetup",v),rl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),Ar("anchor",l=>({type:"hotspot",hotspot:l,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})),Ss("onHide"),Ss("onShow")],eY=Object.freeze({__proto__:null,init:()=>{const l=wi(!0),N=ds(),W=ds(),fe=()=>{N.on(clearTimeout)},Se=(qe,ft)=>{fe(),N.set(setTimeout(qe,ft))},Be=x("not-implemented");return Hd({getTooltip:W.get,isShowing:W.isSet,setTooltip:W.set,clearTooltip:W.clear,clearTimer:fe,resetTimer:Se,readState:Be,isEnabled:()=>l.get(),setEnabled:qe=>l.set(qe)})}});const Vu=id({fields:JW,name:"tooltipping",active:nP,state:eY,apis:KW}),{entries:xz,setPrototypeOf:_z,isFrozen:tY,getPrototypeOf:nY,getOwnPropertyDescriptor:rY}=Object;let{freeze:eg,seal:A0,create:oY}=Object,{apply:rP,construct:oP}=typeof Reflect<"u"&&Reflect;rP||(rP=function(N,W,fe){return N.apply(W,fe)}),eg||(eg=function(N){return N}),A0||(A0=function(N){return N}),oP||(oP=function(N,W){return new N(...W)});const iY=T1(Array.prototype.forEach),aY=T1(Array.prototype.pop),Zk=T1(Array.prototype.push),S6=T1(String.prototype.toLowerCase),iP=T1(String.prototype.toString),sY=T1(String.prototype.match),Pv=T1(String.prototype.replace),lY=T1(String.prototype.indexOf),cY=T1(String.prototype.trim),M0=T1(RegExp.prototype.test),F2=aP(TypeError);function T1(l){return function(N){for(var W=arguments.length,fe=new Array(W>1?W-1:0),Se=1;Se/gm),dY=A0(/\${[\w\W]*}/gm),Yk=A0(/^data-[\-\w.\u00B7-\uFFFF]/),hY=A0(/^aria-[\-\w]+$/),dP=A0(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hP=A0(/^(?:\w+script|data):/i),pY=A0(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M6=A0(/^html$/i);var E6=Object.freeze({__proto__:null,MUSTACHE_EXPR:uY,ERB_EXPR:fY,TMPLIT_EXPR:dY,DATA_ATTR:Yk,ARIA_ATTR:hY,IS_ALLOWED_URI:dP,IS_SCRIPT_OR_DATA:hP,ATTR_WHITESPACE:pY,DOCTYPE_NAME:M6});const mY=()=>typeof window>"u"?null:window,wz=function(N,W){if(typeof N!="object"||typeof N.createPolicy!="function")return null;let fe=null;const Se="data-tt-policy-suffix";W&&W.hasAttribute(Se)&&(fe=W.getAttribute(Se));const Be="dompurify"+(fe?"#"+fe:"");try{return N.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function pP(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mY();const N=js=>pP(js);if(N.version="3.0.5",N.removed=[],!l||!l.document||l.document.nodeType!==9)return N.isSupported=!1,N;const W=l.document,fe=W.currentScript;let{document:Se}=l;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:yt,NodeFilter:Lt,NamedNodeMap:Ht=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:fn,DOMParser:Rn,trustedTypes:Bn}=l,er=yt.prototype,cr=k6(er,"cloneNode"),Xr=k6(er,"nextSibling"),br=k6(er,"childNodes"),Fr=k6(er,"parentNode");if(typeof qe=="function"){const js=Se.createElement("template");js.content&&js.content.ownerDocument&&(Se=js.content.ownerDocument)}let jr,Ro="";const{implementation:ko,createNodeIterator:_i,createDocumentFragment:Pi,getElementsByTagName:Ao}=Se,{importNode:$i}=W;let yi={};N.isSupported=typeof xz=="function"&&typeof Fr=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Xi,ERB_EXPR:ks,TMPLIT_EXPR:Ic,DATA_ATTR:hl,ARIA_ATTR:Ui,IS_SCRIPT_OR_DATA:Ko,ATTR_WHITESPACE:Oi}=E6;let{IS_ALLOWED_URI:La}=E6,_a=null;const fa=rc({},[...sP,...lP,...qk,...T6,...Wk]);let Qa=null;const ac=rc({},[...fP,...C1,...C6,...A6]);let vl=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dp=null,qg=null,Vv=!0,Wh=!0,Wg=!1,U0=!0,km=!1,Wy=!1,xO=!1,OL=!1,qS=!1,w8=!1,sQ=!1,pde=!0,mde=!1;const r3e="user-content-";let oie=!0,SL=!1,O8={},S8=null;const gde=rc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let vde=null;const yde=rc({},["audio","video","img","source","image","track"]);let iie=null;const bde=rc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lQ="http://www.w3.org/1998/Math/MathML",cQ="http://www.w3.org/2000/svg",_O="http://www.w3.org/1999/xhtml";let k8=_O,aie=!1,sie=null;const o3e=rc({},[lQ,cQ,_O],iP);let yT;const i3e=["application/xhtml+xml","text/html"],a3e="text/html";let Tm,T8=null;const s3e=Se.createElement("form"),xde=function(So){return So instanceof RegExp||So instanceof Function},lie=function(So){if(!(T8&&T8===So)){if((!So||typeof So!="object")&&(So={}),So=nS(So),yT=i3e.indexOf(So.PARSER_MEDIA_TYPE)===-1?yT=a3e:yT=So.PARSER_MEDIA_TYPE,Tm=yT==="application/xhtml+xml"?iP:S6,_a="ALLOWED_TAGS"in So?rc({},So.ALLOWED_TAGS,Tm):fa,Qa="ALLOWED_ATTR"in So?rc({},So.ALLOWED_ATTR,Tm):ac,sie="ALLOWED_NAMESPACES"in So?rc({},So.ALLOWED_NAMESPACES,iP):o3e,iie="ADD_URI_SAFE_ATTR"in So?rc(nS(bde),So.ADD_URI_SAFE_ATTR,Tm):bde,vde="ADD_DATA_URI_TAGS"in So?rc(nS(yde),So.ADD_DATA_URI_TAGS,Tm):yde,S8="FORBID_CONTENTS"in So?rc({},So.FORBID_CONTENTS,Tm):gde,dp="FORBID_TAGS"in So?rc({},So.FORBID_TAGS,Tm):{},qg="FORBID_ATTR"in So?rc({},So.FORBID_ATTR,Tm):{},O8="USE_PROFILES"in So?So.USE_PROFILES:!1,Vv=So.ALLOW_ARIA_ATTR!==!1,Wh=So.ALLOW_DATA_ATTR!==!1,Wg=So.ALLOW_UNKNOWN_PROTOCOLS||!1,U0=So.ALLOW_SELF_CLOSE_IN_ATTR!==!1,km=So.SAFE_FOR_TEMPLATES||!1,Wy=So.WHOLE_DOCUMENT||!1,qS=So.RETURN_DOM||!1,w8=So.RETURN_DOM_FRAGMENT||!1,sQ=So.RETURN_TRUSTED_TYPE||!1,OL=So.FORCE_BODY||!1,pde=So.SANITIZE_DOM!==!1,mde=So.SANITIZE_NAMED_PROPS||!1,oie=So.KEEP_CONTENT!==!1,SL=So.IN_PLACE||!1,La=So.ALLOWED_URI_REGEXP||dP,k8=So.NAMESPACE||_O,vl=So.CUSTOM_ELEMENT_HANDLING||{},So.CUSTOM_ELEMENT_HANDLING&&xde(So.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vl.tagNameCheck=So.CUSTOM_ELEMENT_HANDLING.tagNameCheck),So.CUSTOM_ELEMENT_HANDLING&&xde(So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vl.attributeNameCheck=So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),So.CUSTOM_ELEMENT_HANDLING&&typeof So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(vl.allowCustomizedBuiltInElements=So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),km&&(Wh=!1),w8&&(qS=!0),O8&&(_a=rc({},[...Wk]),Qa=[],O8.html===!0&&(rc(_a,sP),rc(Qa,fP)),O8.svg===!0&&(rc(_a,lP),rc(Qa,C1),rc(Qa,A6)),O8.svgFilters===!0&&(rc(_a,qk),rc(Qa,C1),rc(Qa,A6)),O8.mathMl===!0&&(rc(_a,T6),rc(Qa,C6),rc(Qa,A6))),So.ADD_TAGS&&(_a===fa&&(_a=nS(_a)),rc(_a,So.ADD_TAGS,Tm)),So.ADD_ATTR&&(Qa===ac&&(Qa=nS(Qa)),rc(Qa,So.ADD_ATTR,Tm)),So.ADD_URI_SAFE_ATTR&&rc(iie,So.ADD_URI_SAFE_ATTR,Tm),So.FORBID_CONTENTS&&(S8===gde&&(S8=nS(S8)),rc(S8,So.FORBID_CONTENTS,Tm)),oie&&(_a["#text"]=!0),Wy&&rc(_a,["html","head","body"]),_a.table&&(rc(_a,["tbody"]),delete dp.tbody),So.TRUSTED_TYPES_POLICY){if(typeof So.TRUSTED_TYPES_POLICY.createHTML!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof So.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');jr=So.TRUSTED_TYPES_POLICY,Ro=jr.createHTML("")}else jr===void 0&&(jr=wz(Bn,fe)),jr!==null&&typeof Ro=="string"&&(Ro=jr.createHTML(""));eg&&eg(So),T8=So}},_de=rc({},["mi","mo","mn","ms","mtext"]),wde=rc({},["foreignobject","desc","title","annotation-xml"]),l3e=rc({},["title","style","font","a","script"]),uQ=rc({},lP);rc(uQ,qk),rc(uQ,cP);const cie=rc({},T6);rc(cie,uP);const c3e=function(So){let oa=Fr(So);(!oa||!oa.tagName)&&(oa={namespaceURI:k8,tagName:"template"});const ja=S6(So.tagName),Yf=S6(oa.tagName);return sie[So.namespaceURI]?So.namespaceURI===cQ?oa.namespaceURI===_O?ja==="svg":oa.namespaceURI===lQ?ja==="svg"&&(Yf==="annotation-xml"||_de[Yf]):!!uQ[ja]:So.namespaceURI===lQ?oa.namespaceURI===_O?ja==="math":oa.namespaceURI===cQ?ja==="math"&&wde[Yf]:!!cie[ja]:So.namespaceURI===_O?oa.namespaceURI===cQ&&!wde[Yf]||oa.namespaceURI===lQ&&!_de[Yf]?!1:!cie[ja]&&(l3e[ja]||!uQ[ja]):!!(yT==="application/xhtml+xml"&&sie[So.namespaceURI]):!1},bT=function(So){Zk(N.removed,{element:So});try{So.parentNode.removeChild(So)}catch{So.remove()}},kL=function(So,oa){try{Zk(N.removed,{attribute:oa.getAttributeNode(So),from:oa})}catch{Zk(N.removed,{attribute:null,from:oa})}if(oa.removeAttribute(So),So==="is"&&!Qa[So])if(qS||w8)try{bT(oa)}catch{}else try{oa.setAttribute(So,"")}catch{}},Ode=function(So){let oa,ja;if(OL)So=""+So;else{const Yy=sY(So,/^[\r\n\t ]+/);ja=Yy&&Yy[0]}yT==="application/xhtml+xml"&&k8===_O&&(So=''+So+"");const Yf=jr?jr.createHTML(So):So;if(k8===_O)try{oa=new Rn().parseFromString(Yf,yT)}catch{}if(!oa||!oa.documentElement){oa=ko.createDocument(k8,"template",null);try{oa.documentElement.innerHTML=aie?Ro:Yf}catch{}}const Cm=oa.body||oa.documentElement;return So&&ja&&Cm.insertBefore(Se.createTextNode(ja),Cm.childNodes[0]||null),k8===_O?Ao.call(oa,Wy?"html":"body")[0]:Wy?oa.documentElement:Cm},Sde=function(So){return _i.call(So.ownerDocument||So,So,Lt.SHOW_ELEMENT|Lt.SHOW_COMMENT|Lt.SHOW_TEXT,null,!1)},u3e=function(So){return So instanceof fn&&(typeof So.nodeName!="string"||typeof So.textContent!="string"||typeof So.removeChild!="function"||!(So.attributes instanceof Ht)||typeof So.removeAttribute!="function"||typeof So.setAttribute!="function"||typeof So.namespaceURI!="string"||typeof So.insertBefore!="function"||typeof So.hasChildNodes!="function")},fQ=function(So){return typeof ft=="object"?So instanceof ft:So&&typeof So=="object"&&typeof So.nodeType=="number"&&typeof So.nodeName=="string"},wO=function(So,oa,ja){yi[So]&&iY(yi[So],Yf=>{Yf.call(N,oa,ja,T8)})},kde=function(So){let oa;if(wO("beforeSanitizeElements",So,null),u3e(So))return bT(So),!0;const ja=Tm(So.nodeName);if(wO("uponSanitizeElement",So,{tagName:ja,allowedTags:_a}),So.hasChildNodes()&&!fQ(So.firstElementChild)&&(!fQ(So.content)||!fQ(So.content.firstElementChild))&&M0(/<[/\w]/g,So.innerHTML)&&M0(/<[/\w]/g,So.textContent))return bT(So),!0;if(!_a[ja]||dp[ja]){if(!dp[ja]&&Cde(ja)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja)))return!1;if(oie&&!S8[ja]){const Yf=Fr(So)||So.parentNode,Cm=br(So)||So.childNodes;if(Cm&&Yf){const Yy=Cm.length;for(let Dh=Yy-1;Dh>=0;--Dh)Yf.insertBefore(cr(Cm[Dh],!0),Xr(So))}}return bT(So),!0}return So instanceof yt&&!c3e(So)||(ja==="noscript"||ja==="noembed"||ja==="noframes")&&M0(/<\/no(script|embed|frames)/i,So.innerHTML)?(bT(So),!0):(km&&So.nodeType===3&&(oa=So.textContent,oa=Pv(oa,Xi," "),oa=Pv(oa,ks," "),oa=Pv(oa,Ic," "),So.textContent!==oa&&(Zk(N.removed,{element:So.cloneNode()}),So.textContent=oa)),wO("afterSanitizeElements",So,null),!1)},Tde=function(So,oa,ja){if(pde&&(oa==="id"||oa==="name")&&(ja in Se||ja in s3e))return!1;if(!(Wh&&!qg[oa]&&M0(hl,oa))){if(!(Vv&&M0(Ui,oa))){if(!Qa[oa]||qg[oa]){if(!(Cde(So)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,So)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(So))&&(vl.attributeNameCheck instanceof RegExp&&M0(vl.attributeNameCheck,oa)||vl.attributeNameCheck instanceof Function&&vl.attributeNameCheck(oa))||oa==="is"&&vl.allowCustomizedBuiltInElements&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja))))return!1}else if(!iie[oa]){if(!M0(La,Pv(ja,Oi,""))){if(!((oa==="src"||oa==="xlink:href"||oa==="href")&&So!=="script"&&lY(ja,"data:")===0&&vde[So])){if(!(Wg&&!M0(Ko,Pv(ja,Oi,"")))){if(ja)return!1}}}}}}return!0},Cde=function(So){return So.indexOf("-")>0},Ade=function(So){let oa,ja,Yf,Cm;wO("beforeSanitizeAttributes",So,null);const{attributes:Yy}=So;if(!Yy)return;const Dh={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qa};for(Cm=Yy.length;Cm--;){oa=Yy[Cm];const{name:Xy,namespaceURI:uie}=oa;ja=Xy==="value"?oa.value:cY(oa.value);const d3e=ja;if(Yf=Tm(Xy),Dh.attrName=Yf,Dh.attrValue=ja,Dh.keepAttr=!0,Dh.forceKeepAttr=void 0,wO("uponSanitizeAttribute",So,Dh),ja=Dh.attrValue,Dh.forceKeepAttr)continue;if(!Dh.keepAttr){kL(Xy,So);continue}if(!U0&&M0(/\/>/i,ja)){kL(Xy,So);continue}km&&(ja=Pv(ja,Xi," "),ja=Pv(ja,ks," "),ja=Pv(ja,Ic," "));const Mde=Tm(So.nodeName);if(!Tde(Mde,Yf,ja)){kL(Xy,So);continue}if(mde&&(Yf==="id"||Yf==="name")&&(kL(Xy,So),ja=r3e+ja),jr&&typeof Bn=="object"&&typeof Bn.getAttributeType=="function"&&!uie)switch(Bn.getAttributeType(Mde,Yf)){case"TrustedHTML":{ja=jr.createHTML(ja);break}case"TrustedScriptURL":{ja=jr.createScriptURL(ja);break}}if(ja!==d3e)try{uie?So.setAttributeNS(uie,Xy,ja):So.setAttribute(Xy,ja)}catch{kL(Xy,So)}}wO("afterSanitizeAttributes",So,null)},f3e=function js(So){let oa;const ja=Sde(So);for(wO("beforeSanitizeShadowDOM",So,null);oa=ja.nextNode();)wO("uponSanitizeShadowNode",oa,null),!kde(oa)&&(oa.content instanceof Be&&js(oa.content),Ade(oa));wO("afterSanitizeShadowDOM",So,null)};return N.sanitize=function(js){let So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa,ja,Yf,Cm;if(aie=!js,aie&&(js=""),typeof js!="string"&&!fQ(js))if(typeof js.toString=="function"){if(js=js.toString(),typeof js!="string")throw F2("dirty is not a string, aborting")}else throw F2("toString is not a function");if(!N.isSupported)return js;if(xO||lie(So),N.removed=[],typeof js=="string"&&(SL=!1),SL){if(js.nodeName){const Xy=Tm(js.nodeName);if(!_a[Xy]||dp[Xy])throw F2("root node is forbidden and cannot be sanitized in-place")}}else if(js instanceof ft)oa=Ode(""),ja=oa.ownerDocument.importNode(js,!0),ja.nodeType===1&&ja.nodeName==="BODY"||ja.nodeName==="HTML"?oa=ja:oa.appendChild(ja);else{if(!qS&&!km&&!Wy&&js.indexOf("<")===-1)return jr&&sQ?jr.createHTML(js):js;if(oa=Ode(js),!oa)return qS?null:sQ?Ro:""}oa&&OL&&bT(oa.firstChild);const Yy=Sde(SL?js:oa);for(;Yf=Yy.nextNode();)kde(Yf)||(Yf.content instanceof Be&&f3e(Yf.content),Ade(Yf));if(SL)return js;if(qS){if(w8)for(Cm=Pi.call(oa.ownerDocument);oa.firstChild;)Cm.appendChild(oa.firstChild);else Cm=oa;return(Qa.shadowroot||Qa.shadowrootmode)&&(Cm=$i.call(W,Cm,!0)),Cm}let Dh=Wy?oa.outerHTML:oa.innerHTML;return Wy&&_a["!doctype"]&&oa.ownerDocument&&oa.ownerDocument.doctype&&oa.ownerDocument.doctype.name&&M0(M6,oa.ownerDocument.doctype.name)&&(Dh=" +`+Dh),km&&(Dh=Pv(Dh,Xi," "),Dh=Pv(Dh,ks," "),Dh=Pv(Dh,Ic," ")),jr&&sQ?jr.createHTML(Dh):Dh},N.setConfig=function(js){lie(js),xO=!0},N.clearConfig=function(){T8=null,xO=!1},N.isValidAttribute=function(js,So,oa){T8||lie({});const ja=Tm(js),Yf=Tm(So);return Tde(ja,Yf,oa)},N.addHook=function(js,So){typeof So=="function"&&(yi[js]=yi[js]||[],Zk(yi[js],So))},N.removeHook=function(js){if(yi[js])return aY(yi[js])},N.removeHooks=function(js){yi[js]&&(yi[js]=[])},N.removeAllHooks=function(){yi={}},N}var gY=pP();const mP=l=>gY().sanitize(l);var Dg=tinymce.util.Tools.resolve("tinymce.util.I18n");const vY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Oz="temporary-placeholder",gP=l=>()=>Ge(l,Oz).getOr("!not found!"),vP=(l,N)=>{const W=l.toLowerCase();if(Dg.isRtl()){const fe=vt(W,"-rtl");return ht(N,fe)?fe:W}else return W},Sz=(l,N)=>Ge(N,vP(l,N)),yP=(l,N)=>{const W=N();return Sz(l,W).getOrThunk(gP(W))},kz=(l,N,W)=>{const fe=N();return Sz(l,fe).or(W).getOrThunk(gP(fe))},yY=l=>Dg.isRtl()?ht(vY,l):!1,P6=()=>Ka("add-focusable",[wc(l=>{Fc(l.element,"svg").each(N=>Cr(N,"focusable","false"))})]),rS=(l,N,W,fe)=>{var Se,Be;const qe=yY(N)?["tox-icon--flip"]:[],ft=Ge(W,vP(N,W)).or(fe).getOrThunk(gP(W));return{dom:{tag:l.tag,attributes:(Se=l.attributes)!==null&&Se!==void 0?Se:{},classes:l.classes.concat(qe),innerHtml:ft},behaviours:ei([...(Be=l.behaviours)!==null&&Be!==void 0?Be:[],P6()])}},Bg=(l,N,W,fe=I.none())=>rS(N,l,W(),fe),bY=(l,N,W)=>{const fe=W(),Se=ce(l,Be=>ht(fe,vP(Be,fe)));return rS(N,Se.getOr(Oz),fe,I.none())},xY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},bP=Qp({name:"Notification",factory:l=>{const N=Li("notification-text"),W=ml({dom:Ev(`

    ${mP(l.backstageProvider.translate(l.text))}

    `),behaviours:ei([Fa.config({})])}),fe=er=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${er}%`}}}),Se=er=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${er}%`}}),Be=ml({dom:{tag:"div",classes:l.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(0)]},Se(0)],behaviours:ei([Fa.config({})])}),yt={updateProgress:(er,cr)=>{er.getSystem().isConnected()&&Be.getOpt(er).each(Xr=>{Fa.set(Xr,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(cr)]},Se(cr)])})},updateText:(er,cr)=>{if(er.getSystem().isConnected()){const Xr=W.get(er);Fa.set(Xr,[Po(cr)])}}},Lt=ye([l.icon.toArray(),l.level.toArray(),l.level.bind(er=>I.from(xY[er])).toArray()]),Ht=ml(Lh.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":l.backstageProvider.translate("Close")}},components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.iconProvider)],buttonBehaviours:ei([Rc.config({}),Vu.config({...l.backstageProvider.tooltips.getConfig({tooltipText:l.backstageProvider.translate("Close")})})]),action:er=>{l.onAction(er)}})),fn=bY(Lt,{tag:"div",classes:["tox-notification__icon"]},l.iconProvider),Rn={dom:{tag:"div",classes:["tox-notification__body"]},components:[W.asSpec()],behaviours:ei([Fa.config({})])},Bn=[fn,Rn];return{uid:l.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":N},classes:l.level.map(er=>["tox-notification","tox-notification--in",`tox-notification--${er}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:ei([Rc.config({}),Ra.config({}),ha.config({mode:"special",onEscape:er=>(l.onAction(er),I.some(!0))})]),components:Bn.concat(l.progress?[Be.asSpec()]:[]).concat([Ht.asSpec()]),apis:yt}},configFields:[Yo("level"),pn("progress"),Yo("icon"),pn("onAction"),pn("text"),pn("iconProvider"),pn("backstageProvider")],apis:{updateProgress:(l,N,W)=>{l.updateProgress(N,W)},updateText:(l,N,W)=>{l.updateText(N,W)}}});var wY=(l,N,W,fe)=>{const Se=N.backstage.shared,Be=()=>Nt.fromDom(l.queryCommandValue("ToggleView")===""?l.getContentAreaContainer():l.getContainer()),qe=()=>{const fn=cl(Be());return I.some(fn)},ft=fn=>{qe().each(Rn=>{q(fn,Bn=>{zi(Bn.element,"width"),_s(Bn.element)>Rn.width&&xr(Bn.element,"width",Rn.width+"px")})})};return{open:(fn,Rn,Bn)=>{const er=()=>{const Fr=_i=>{Fa.remove(_i,cr),Xr()},jr=(_i,Pi)=>{Do(_i.element).length===0?Ro(_i,Pi):ko(_i,Pi)},Ro=(_i,Pi)=>{Xc.hide(_i),fe.clear(),Pi&&l.focus()},ko=(_i,Pi)=>{Pi&&ha.focusIn(_i)};fe.on(_i=>{Rn();const Pi=Bn();Fr(_i),jr(_i,Pi)})},cr=ka(bP.sketch({text:fn.text,level:X(["success","error","warning","warn","info"],fn.type)?fn.type:void 0,progress:fn.progressBar===!0,icon:fn.icon,onAction:er,iconProvider:Se.providers.icons,backstageProvider:Se.providers}));if(fe.isSet()){const Fr=ea(cr);fe.on(jr=>{Fa.append(jr,Fr),Xc.reposition(jr),fc.refresh(jr),ft(jr.components())})}else{const Fr=ka(Xc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:Se.getSink,fireDismissalEventInstead:{},...Se.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([ha.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),Fa.config({}),...Qw(l)&&!Se.header.isPositionedAtTop()?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Be())),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:_i=>ix(l,_i.element).map(Ao=>({bounds:Hw(Ao),optScrollEnv:I.some({currentScrollTop:Ao.element.dom.scrollTop,scrollElmTop:Tc(Ao.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]])})),jr=ea(cr),Ro={maxHeightFunction:v1()},ko={...Se.anchors.banner(),overrides:Ro};fe.set(Fr),W.add(Fr),Xc.showWithinBounds(Fr,jr,{anchor:ko},qe)}h(fn.timeout)&&fn.timeout>0&&J3.setEditorTimeout(l,()=>{er()},fn.timeout);const Xr=()=>{fe.on(Fr=>{Xc.reposition(Fr),fc.refresh(Fr),ft(Fr.components())})};return{close:er,reposition:Xr,text:Fr=>{bP.updateText(cr,Fr)},settings:fn,getEl:()=>cr.element.dom,progressBar:{value:Fr=>{bP.updateProgress(cr,Fr)}}}},close:fn=>{fn.close()},getArgs:fn=>fn.settings}};const Tz={setup:(l,N)=>{const W=(Se,Be)=>{sa(Se,nm(),{raw:Be})},fe=()=>l.getMenu().bind(ta.getHighlighted);N.on("keydown",Se=>{const Be=Se.which;l.isActive()&&(l.isMenuOpen()?Be===13?(fe().each(Bm),Se.preventDefault()):Be===40?(fe().fold(()=>{l.getMenu().each(ta.highlightFirst)},qe=>{W(qe,Se)}),Se.preventDefault(),Se.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&fe().each(qe=>{W(qe,Se),Se.preventDefault(),Se.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&l.cancelIfNecessary())}),N.on("NodeChange",()=>{l.isActive()&&!l.isProcessingAction()&&!N.queryCommandState("mceAutoCompleterInRange")&&l.cancelIfNecessary()})}};var R6;(function(l){l[l.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",l[l.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(R6||(R6={}));var A1=R6;const xP="tox-menu-nav__js",L6="tox-collection__item",I6="tox-swatch",_P={normal:xP,color:I6},D6="tox-collection__item--enabled",Cz="tox-collection__group-heading",wP="tox-collection__item-icon",B6="tox-collection__item-label",SY="tox-collection__item-accessory",z6="tox-collection__item-caret",kY="tox-collection__item-checkmark",$2="tox-collection__item--active",OP="tox-collection__item-container",Zw="tox-collection__item-container--column",Az="tox-collection__item-container--row",SP="tox-collection__item-container--align-right",N6="tox-collection__item-container--align-left",TY="tox-collection__item-container--valign-top",Mz="tox-collection__item-container--valign-middle",Ez="tox-collection__item-container--valign-bottom",kP=l=>Ge(_P,l).getOr(xP),TP=l=>l==="color"?"tox-swatches":"tox-menu",F6=l=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:TP(l),tieredMenu:"tox-tiered-menu"}),qw=l=>{const N=F6(l);return{backgroundMenu:N.backgroundMenu,selectedMenu:N.selectedMenu,menu:N.menu,selectedItem:N.selectedItem,item:kP(l)}},Pz=(l,N,W)=>{const fe=F6(W);return{tag:"div",classes:ye([[fe.menu,`tox-menu-${N}-column`],l?[fe.hasIcons]:[]])}},Rz=[T0.parts.items({})],Xk=(l,N,W)=>{const fe=F6(W);return{dom:{tag:"div",classes:ye([[fe.tieredMenu]])},markers:qw(W)}},CP=x([Yo("data"),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("tag","input"),Ar("inputClasses",[]),Ss("onSetValue"),Ar("styles",{}),Ar("eventOrder",{}),Pd("inputBehaviours",[Ei,Ra]),Ar("selectOnFocus",!0)]),Lz=l=>ei([Ra.config({onFocus:l.selectOnFocus?N=>{const W=N.element,fe=F(W);W.dom.setSelectionRange(0,fe.length)}:v})]),Iz=l=>({...Lz(l),...Rd(l.inputBehaviours,[Ei.config({store:{mode:"manual",...l.data.map(N=>({initialValue:N})).getOr({}),getValue:N=>F(N.element),setValue:(N,W)=>{F(N.element)!==W&&G(N.element,W)}},onSetValue:l.onSetValue})])}),Dz=l=>({tag:l.tag,attributes:{type:"text",...l.inputAttributes},styles:l.inputStyles,classes:l.inputClasses}),CY=(l,N)=>({uid:l.uid,dom:Dz(l),components:[],behaviours:Iz(l),eventOrder:l.eventOrder}),Ww=Qp({name:"Input",configFields:CP(),factory:CY}),Bz=Li("refetch-trigger-event"),AP=Li("redirect-menu-item-interaction"),oS="tox-menu__searcher",Gk=l=>qa(l.element,`.${oS}`).bind(N=>l.getSystem().getByDom(N).toOptional()),zz=Gk,AY=(l,N)=>{Ei.setValue(l,N.fetchPattern),l.element.dom.selectionStart=N.selectionStart,l.element.dom.selectionEnd=N.selectionEnd},Nz=l=>{const N=Ei.getValue(l),W=l.element.dom.selectionStart,fe=l.element.dom.selectionEnd;return{fetchPattern:N,selectionStart:W,selectionEnd:fe}},MY=(l,N)=>{Eo(N.element,"id").each(W=>Cr(l.element,"aria-activedescendant",W))},EY=l=>{const N=(Se,Be)=>(Be.cut(),I.none()),W=(Se,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return sa(Se,AP,qe),I.some(!0)},fe="searcher-events";return{dom:{tag:"div",classes:[L6]},components:[Ww.sketch({inputClasses:[oS,"tox-textfield"],inputAttributes:{...l.placeholder.map(Se=>({placeholder:l.i18n(Se)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:ei([Ka(fe,[Lo(vg(),Se=>{Za(Se,Bz)}),Lo(nm(),(Se,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),ha.config({mode:"special",onLeft:N,onRight:N,onSpace:N,onEnter:W,onEscape:W,onUp:W,onDown:W})]),eventOrder:{keydown:[fe,ha.name()]}})]}},Yw="tox-collection--results__js",Fz=l=>{var N;return l.dom?{...l,dom:{...l.dom,attributes:{...(N=l.dom.attributes)!==null&&N!==void 0?N:{},id:Li("aria-item-search-result-id"),"aria-selected":"false"}}}:l},$6=(l,N)=>W=>{const fe=K(W,N);return re(fe,Se=>({dom:l,components:Se}))},PY=l=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[T0.parts.items({preprocess:l!=="auto"?$6({tag:"div",classes:["tox-swatches__row"]},l):R})]}]}),$z=l=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[T0.parts.items({preprocess:$6({tag:"div",classes:["tox-collection__group"]},l)})]}),MP=(l,N)=>{const W=[];let fe=[];return q(l,(Se,Be)=>{N(Se,Be)?(fe.length>0&&W.push(fe),fe=[],(ht(Se.dom,"innerHtml")||Se.components&&Se.components.length>0)&&fe.push(Se)):fe.push(Se)}),fe.length>0&&W.push(fe),re(W,Se=>({dom:{tag:"div",classes:["tox-collection__group"]},components:Se}))},EP=(l,N,W)=>T0.parts.items({preprocess:fe=>{const Se=re(fe,W);return l!=="auto"&&l>1?$6({tag:"div",classes:["tox-collection__group"]},l)(Se):MP(Se,(Be,qe)=>N[qe].type==="separator")}}),PP=(l,N,W=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EP(l,N,R)]}),Vz=(l,N,W=!0)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Yw].concat(l===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:fe}},components:[EP(l,N,Fz)]}},Uz=(l,N,W)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EY({i18n:Dg.translate,placeholder:W.placeholder}),{dom:{tag:"div",classes:[...l===1?["tox-collection--list"]:["tox-collection--grid"],Yw],attributes:{id:fe}},components:[EP(l,N,Fz)]}]}},jz=(l,N=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[T0.parts.items({preprocess:W=>MP(W,(fe,Se)=>l[Se].type==="separator")})]}),V6=l=>te(l,N=>"icon"in N&&N.icon!==void 0),ax=l=>(console.error(dn(l)),console.log(l),I.none()),RY=(l,N,W,fe,Se)=>{const Be=jz(W);return{value:l,dom:Be.dom,components:Be.components,items:W}},RP=(l,N,W,fe,Se)=>{const Be=()=>Se.menuType!=="searchable"?PP(fe,W):Se.searchMode.searchMode==="search-with-field"?Uz(fe,W,Se.searchMode):Vz(fe,W);if(Se.menuType==="color"){const qe=PY(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"&&fe==="auto"){const qe=PP(fe,W);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"||Se.menuType==="searchable"){const qe=Be();return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="listpreview"&&fe!=="auto"){const qe=$z(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else return{value:l,dom:Pz(N,fe,Se.menuType),components:Rz,items:W}},pf=Pr("type"),U6=Pr("name"),LP=Pr("label"),sx=Pr("text"),Qz=Pr("title"),Hz=Pr("icon"),Kk=Pr("value"),LY=po("fetch"),IY=po("getSubmenuItems"),V2=po("onAction"),Zz=po("onItemAction"),Xw=ys("onSetup",()=>v),DY=jo("name"),lx=jo("text"),BY=jo("role"),E0=jo("icon"),iS=jo("tooltip"),j6=jo("label"),Q6=jo("shortcut"),zY=ai("select"),H6=Hs("active",!1),NY=Hs("borderless",!1),P0=Hs("enabled",!0),aS=Hs("primary",!1),qz=l=>Ar("columns",l),IP=Ar("meta",{}),DP=ys("onAction",v),Gw=l=>Ts("type",l),BP=l=>Ln("name","name",Ca(()=>Li(`${l}-name`)),ne),FY=l=>Ln("value","value",Ca(()=>Li(`${l}-value`)),Ut()),zP=Si([pf,lx]),Wz=l=>Rt("separatormenuitem",zP,l),$Y=Si([Gw("autocompleteitem"),H6,P0,IP,Kk,lx,E0]),VY=l=>Rt("Autocompleter.Separator",zP,l),UY=l=>Rt("Autocompleter.Item",$Y,l),lp=[P0,iS,E0,lx,Xw],Rv=Si([pf,V2,Q6].concat(lp)),Yz=l=>Rt("toolbarbutton",Rv,l),Jk=[H6].concat(lp),NP=Si(Jk.concat([pf,V2,Q6])),Xz=l=>Rt("ToggleButton",NP,l),Gz=[ys("predicate",D),rl("scope","node",["node","editor"]),rl("position","selection",["node","selection","line"])],e5=lp.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),Z6=Jk.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),FP=lp.concat([Gw("contextformbutton")]),jY=Jk.concat([Gw("contextformtogglebutton")]),Lv=bn("type",{contextformbutton:e5,contextformtogglebutton:Z6}),QY=Si([Gw("contextform"),ys("initValue",x("")),j6,Go("commands",Lv),Wi("launch",bn("type",{contextformbutton:FP,contextformtogglebutton:jY}))].concat(Gz)),HY=l=>Rt("ContextForm",QY,l),R0=Si([Gw("contexttoolbar"),Pr("items")].concat(Gz)),t5=l=>Rt("ContextToolbar",R0,l),M1=[pf,Pr("src"),jo("alt"),mt("classes",[],ne)],ZY=Si(M1),oc=[pf,sx,DY,mt("classes",["tox-collection__item-label"],ne)],sS=Si(oc),n5=Pc(()=>Ne("type",{cardimage:ZY,cardtext:sS,cardcontainer:Kz})),Kz=Si([pf,Ts("direction","horizontal"),Ts("align","left"),Ts("valign","middle"),Go("items",n5)]),U2=[P0,lx,BY,Q6,FY("menuitem"),IP],$P=Si([pf,j6,Go("items",n5),Xw,DP].concat(U2)),qY=l=>Rt("cardmenuitem",$P,l),VP=Si([pf,H6,E0].concat(U2)),WY=l=>Rt("choicemenuitem",VP,l),UP=[pf,Pr("fancytype"),DP],Jz=[Ar("initData",{})].concat(UP),jP=[ai("select"),Tt("initData",{},[Hs("allowCustomColors",!0),Ts("storageKey","default"),Hi("colors",Ut())])].concat(UP),eN=bn("fancytype",{inserttable:Jz,colorswatch:jP}),q6=l=>Rt("fancymenuitem",eN,l),YY=Si([pf,Xw,DP,E0].concat(U2)),XY=l=>Rt("menuitem",YY,l),GY=Si([pf,IY,Xw,E0].concat(U2)),KY=l=>Rt("nestedmenuitem",GY,l),JY=Si([pf,E0,H6,Xw,V2].concat(U2)),tN=l=>Rt("togglemenuitem",JY,l),QP=(l,N,W)=>{const fe=Yd(l.element,"."+W);if(fe.length>0){const Se=de(fe,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=fe[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>N}).getOr(fe.length);return I.some({numColumns:Se,numRows:Math.ceil(fe.length/Se)})}else return I.none()},nN=(l,N)=>ei([Ka(l,N)]),lS={namedEvents:nN,unnamedEvents:l=>nN(Li("unnamed-events"),l)},tX=l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),rN="silver.readonly",oN=Si([ro("readonly")]),cS=(l,N)=>{const fe=l.mainUi.outerContainer.element,Se=[l.mainUi.mothership,...l.uiMotherships];N&&q(Se,Be=>{Be.broadcastOn([_1()],{target:fe})}),q(Se,Be=>{Be.broadcastOn([rN],{readonly:N})})},HP=(l,N)=>{l.on("init",()=>{l.mode.isReadOnly()&&cS(N,!0)}),l.on("SwitchMode",()=>cS(N,l.mode.isReadOnly())),XB(l)&&l.mode.set("readonly")},Id=()=>Ad.config({channels:{[rN]:{schema:oN,onReceive:(l,N)=>{he.set(l,N.readonly)}}}}),E1={item:l=>he.config({disabled:l,disableClass:"tox-collection__item--state-disabled"}),button:l=>he.config({disabled:l}),splitButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled"}),toolbarButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled",useNative:!1})},r5=(l,N)=>{const W=l.getApi(N);return fe=>{fe(W)}},cp=(l,N)=>wc(W=>{r5(l,W)(Se=>{const Be=l.onSetup(Se);c(Be)&&N.set(Be)})}),j2=(l,N)=>xg(W=>r5(l,W)(N.get())),ZP=(l,N)=>kh((W,fe)=>{r5(l,W)(l.onAction),!l.triggersSubmenu&&N===A1.CLOSE_ON_EXECUTE&&(W.getSystem().isConnected()&&Za(W,Z1()),fe.stop())}),iN={[Bp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Kw=zt,uS=(l,N,W,fe)=>{const Se=wi(v);return{type:"item",dom:N.dom,components:Kw(N.optComponents),data:l.data,eventOrder:iN,hasSubmenu:l.triggersSubmenu,itemBehaviours:ei([Ka("item-events",[ZP(l,W),cp(l,Se),j2(l,Se)]),E1.item(()=>!l.enabled||fe.isDisabled()),Id(),Fa.config({})].concat(l.itemBehaviours))}},Jw=l=>({value:l.value,meta:{text:l.text.getOr(""),...l.meta}}),W6=l=>{const N=$w.os.isMacOS()||$w.os.isiOS(),Se=N?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=l.split("+"),qe=re(Be,ft=>{const yt=ft.toLowerCase().trim();return ht(Se,yt)?Se[yt]:ft});return N?qe.join(""):qe.join("+")},Y6=(l,N,W=[wP])=>Bg(l,{tag:"div",classes:W},N),aN=l=>({dom:{tag:"div",classes:[B6]},components:[Po(Dg.translate(l))]}),sN=(l,N)=>({dom:{tag:"div",classes:N,innerHtml:l}}),nX=(l,N)=>({dom:{tag:"div",classes:[B6]},components:[{dom:{tag:l.tag,styles:l.styles},components:[Po(Dg.translate(N))]}]}),rX=l=>({dom:{tag:"div",classes:[SY]},components:[Po(W6(l))]}),lN=l=>Y6("checkmark",l,[kY]),cN=l=>Y6("chevron-right",l,[z6]),uN=l=>Y6("chevron-down",l,[z6]),fN=(l,N)=>{const W=l.direction==="vertical"?Zw:Az,fe=l.align==="left"?N6:SP;return{dom:{tag:"div",classes:[OP,W,fe,(()=>{switch(l.valign){case"top":return TY;case"middle":return Mz;case"bottom":return Ez}})()]},components:N}},oX=(l,N,W)=>({dom:{tag:"img",classes:N,attributes:{src:l,alt:W.getOr("")}}}),iX=(l,N,W)=>{const fe="custom",Se="remove",Be=l.value,qe=l.iconContent.map(Lt=>kz(Lt,N.icons,W)),ft=l.ariaLabel.map(Lt=>({"aria-label":N.translate(Lt),"data-mce-name":Lt})).getOr({});return{dom:(()=>{const Lt=I6,Ht=qe.getOr(""),fn={tag:"div",attributes:ft,classes:[Lt]};return Be===fe?{...fn,tag:"button",classes:[...fn.classes,"tox-swatches__picker-btn"],innerHtml:Ht}:Be===Se?{...fn,classes:[...fn.classes,"tox-swatch--remove"],innerHtml:Ht}:a(Be)?{...fn,attributes:{...fn.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:Ht}:fn})(),optComponents:[]}},dN=l=>{const N=l.map(W=>({attributes:{id:Li("menu-item"),"aria-label":Dg.translate(W)}})).getOr({});return{tag:"div",classes:[xP,L6],...N}},fS=(l,N,W,fe)=>{const Se={tag:"div",classes:[wP]},Be=Rn=>Bg(Rn,Se,N.icons,fe),qe=()=>I.some({dom:Se}),ft=W?l.iconContent.map(Be).orThunk(qe):I.none(),yt=l.checkMark,Lt=I.from(l.meta).fold(()=>aN,Rn=>ht(Rn,"style")?T(nX,Rn.style):aN),Ht=l.htmlContent.fold(()=>l.textContent.map(Lt),Rn=>I.some(sN(Rn,[B6])));return{dom:dN(l.ariaLabel),optComponents:[ft,Ht,l.shortcutContent.map(rX),yt,l.caret]}},o5=(l,N,W,fe=I.none())=>l.presets==="color"?iX(l,N,fe):fS(l,N,W,fe),qP=(l,N,W)=>Ge(l,"tooltipWorker").map(fe=>[Vu.config({lazySink:N.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:Se=>({type:"submenu",item:Se,overrides:{maxHeightFunction:v1}}),mode:"follow-highlight",onShow:(Se,Be)=>{fe(qe=>{Vu.setComponents(Se,[Ii({element:Nt.fromDom(qe)})])})}})]).getOrThunk(()=>W.map(fe=>[Vu.config({...N.providers.tooltips.getConfig({tooltipText:fe}),mode:"follow-highlight"})]).getOr([])),hN=l=>Fw.DOM.encode(l),WP=(l,N)=>{const W=Dg.translate(l),fe=hN(W);if(N.length>0){const Se=new RegExp(tX(N),"gi");return fe.replace(Se,Be=>`${Be}`)}else return fe},pN=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=o5({presets:fe,textContent:I.none(),htmlContent:W?l.text.map(Ht=>WP(Ht,N)):I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:l.value},qe.providers,ft,l.icon),Lt=l.text.filter(Ht=>!W&&Ht!=="");return uS({data:Jw(l),enabled:l.enabled,getApi:x({}),onAction:Ht=>Se(l.value,l.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:qP(l,qe,Lt)},yt,Be,qe.providers)},X6=(l,N)=>re(l,W=>{switch(W.type){case"cardcontainer":return fN(W,X6(W.items,N));case"cardimage":return oX(W.src,W.classes,W.alt);case"cardtext":const Se=W.name.exists(Be=>X(N.cardText.highlightOn,Be))?I.from(N.cardText.matchText).getOr(""):"";return sN(WP(W.text,Se),W.classes)}}),YP=(l,N,W,fe)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>{he.set(qe,!ft),q(Yd(qe.element,"*"),yt=>{qe.getSystem().getByDom(yt).each(Lt=>{Lt.hasConfigured(he)&&he.set(Lt,!ft)})})}}),Be={dom:dN(l.label),optComponents:[I.some({dom:{tag:"div",classes:[OP,Az]},components:X6(l.items,fe)})]};return uS({data:Jw({text:I.none(),...l}),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(fe.itemBehaviours).getOr([])},Be,N,W.providers)},XP=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=fn=>({setActive:Rn=>{us.set(fn,Rn)},isActive:()=>us.isOn(fn),isEnabled:()=>!he.isDisabled(fn),setEnabled:Rn=>he.set(fn,!Rn)}),Lt=o5({presets:W,textContent:N?l.text:I.none(),htmlContent:I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:N?l.shortcut:I.none(),checkMark:N?I.some(lN(qe.icons)):I.none(),caret:I.none(),value:l.value},qe,ft),Ht=l.text.filter(x(!N)).map(fn=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(fn)})));return ws(uS({data:Jw(l),enabled:l.enabled,getApi:yt,onAction:fn=>fe(l.value),onSetup:fn=>(fn.setActive(Se),v),triggersSubmenu:!1,itemBehaviours:[...Ht.toArray()]},Lt,Be,qe),{toggling:{toggleClass:D6,toggleOnExecute:!1,selected:l.active,exclusive:!0}})},GP=QC(p6(),VE()),mN=l=>({value:yN(l)}),KP=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,gN=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,vN=l=>KP.test(l)||gN.test(l),yN=l=>Sn(l,"#").toUpperCase(),bN=l=>vN(l)?I.some({value:yN(l)}):I.none(),xN=l=>({value:l.value.replace(KP,(W,fe,Se,Be)=>fe+fe+Se+Se+Be+Be)}),_N=l=>{const N=xN(l),W=gN.exec(N.value);return W===null?["FFFFFF","FF","FF","FF"]:W},JP=l=>{const N=l.toString(16);return(N.length===1?"0"+N:N).toUpperCase()},i5=l=>{const N=JP(l.red)+JP(l.green)+JP(l.blue);return mN(N)},wN=Math.min,ON=Math.max,G6=Math.round,aX=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,sX=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,eO=(l,N,W,fe)=>({red:l,green:N,blue:W,alpha:fe}),e7=l=>{const N=parseInt(l,10);return N.toString()===l&&N>=0&&N<=255},SN=l=>{let N,W,fe;const Se=(l.hue||0)%360;let Be=l.saturation/100,qe=l.value/100;if(Be=ON(0,wN(Be,1)),qe=ON(0,wN(qe,1)),Be===0)return N=W=fe=G6(255*qe),eO(N,W,fe,1);const ft=Se/60,yt=qe*Be,Lt=yt*(1-Math.abs(ft%2-1)),Ht=qe-yt;switch(Math.floor(ft)){case 0:N=yt,W=Lt,fe=0;break;case 1:N=Lt,W=yt,fe=0;break;case 2:N=0,W=yt,fe=Lt;break;case 3:N=0,W=Lt,fe=yt;break;case 4:N=Lt,W=0,fe=yt;break;case 5:N=yt,W=0,fe=Lt;break;default:N=W=fe=0}return N=G6(255*(N+Ht)),W=G6(255*(W+Ht)),fe=G6(255*(fe+Ht)),eO(N,W,fe,1)},a5=l=>{const N=_N(l),W=parseInt(N[1],16),fe=parseInt(N[2],16),Se=parseInt(N[3],16);return eO(W,fe,Se,1)},t7=(l,N,W,fe)=>{const Se=parseInt(l,10),Be=parseInt(N,10),qe=parseInt(W,10),ft=parseFloat(fe);return eO(Se,Be,qe,ft)},n7=l=>{const N=aX.exec(l);if(N!==null)return I.some(t7(N[1],N[2],N[3],"1"));const W=sX.exec(l);return W!==null?I.some(t7(W[1],W[2],W[3],W[4])):I.none()},kN=l=>`rgba(${l.red},${l.green},${l.blue},${l.alpha})`,TN=eO(255,0,0,1),lX=l=>{l.dispatch("SkinLoaded")},cX=(l,N)=>{l.dispatch("SkinLoadError",N)},K6=l=>{l.dispatch("ResizeEditor")},J6=(l,N)=>{l.dispatch("ResizeContent",N)},uX=(l,N)=>{l.dispatch("ScrollContent",N)},CN=(l,N)=>{l.dispatch("TextColorChange",N)},fX=(l,N)=>{l.dispatch("AfterProgressState",{state:N})},dX=(l,N)=>l.dispatch("ResolveName",{name:N.nodeName.toLowerCase(),target:N}),hX=(l,N)=>{l.dispatch("ToggleToolbarDrawer",{state:N})},pX=(l,N)=>{l.dispatch("StylesTextUpdate",N)},r7=(l,N)=>{l.dispatch("AlignTextUpdate",N)},AN=(l,N)=>{l.dispatch("FontSizeTextUpdate",N)},MN=(l,N)=>{l.dispatch("FontSizeInputTextUpdate",N)},mX=(l,N)=>{l.dispatch("BlocksTextUpdate",N)},o7=(l,N)=>{l.dispatch("FontFamilyTextUpdate",N)},gX=l=>{l.dispatch("ToggleSidebar")},vX=l=>{l.dispatch("ToggleView")},eA=(l,N)=>()=>{l(),N()},kp=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.selection.isEditable())}),yX=(l,N)=>W=>{const fe=Ol(),Se=()=>{W.setActive(l.formatter.match(N));const Be=l.formatter.formatChanged(N,W.setActive);fe.set(Be)};return l.initialized?Se():l.once("init",Se),()=>{l.off("init",Se),fe.clear()}},tA=(l,N)=>W=>{const fe=kp(l)(W),Se=yX(l,N)(W);return()=>{fe(),Se()}},tO=(l,N,W)=>fe=>{const Se=()=>W(fe),Be=()=>{W(fe),l.on(N,Se)};return l.initialized?Be():l.once("init",Be),()=>{l.off("init",Be),l.off(N,Se)}},EN=l=>N=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("mceToggleFormat",!1,N.format)})},tg=(l,N)=>()=>l.execCommand(N);var nO=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const s5={},i7=(l,N=10)=>{const W=nO.getItem(l),fe=n(W)?JSON.parse(W):[],Be=(Lt=>N-Lt.length<0?Lt.slice(0,N):Lt)(fe),qe=Lt=>{U(Be,Lt).each(ft),Be.unshift(Lt),Be.length>N&&Be.pop(),nO.setItem(l,JSON.stringify(Be))},ft=Lt=>{Be.splice(Lt,1)};return{add:qe,state:()=>Be.slice(0)}},nA=l=>Ge(s5,l).getOrThunk(()=>{const N=`tinymce-custom-colors-${l}`,W=nO.getItem(N);if(m(W)){const Se=nO.getItem("tinymce-custom-colors");nO.setItem(N,a(Se)?Se:"[]")}const fe=i7(N,10);return s5[l]=fe,fe}),PN=l=>re(nA(l).state(),N=>({type:"choiceitem",text:N,icon:"checkmark",value:N})),RN=(l,N)=>{nA(l).add(N)},l5=(l,N,W)=>({hue:l,saturation:N,value:W}),c5=l=>{let N=0,W=0,fe=0;const Se=l.red/255,Be=l.green/255,qe=l.blue/255,ft=Math.min(Se,Math.min(Be,qe)),yt=Math.max(Se,Math.max(Be,qe));if(ft===yt)return fe=ft,l5(0,0,fe*100);const Lt=Se===ft?Be-qe:qe===ft?Se-Be:qe-Se;return N=Se===ft?3:qe===ft?1:5,N=60*(N-Lt/(yt-ft)),W=(yt-ft)/yt,fe=yt,l5(Math.round(N),Math.round(W*100),Math.round(fe*100))},a7=l=>c5(a5(l)),u5=l=>i5(SN(l)),LN=l=>bN(l).orThunk(()=>n7(l).map(i5)).getOrThunk(()=>{const N=document.createElement("canvas");N.height=1,N.width=1;const W=N.getContext("2d");W.clearRect(0,0,N.width,N.height),W.fillStyle="#FFFFFF",W.fillStyle=l,W.fillRect(0,0,1,1);const fe=W.getImageData(0,0,1,1).data,Se=fe[0],Be=fe[1],qe=fe[2],ft=fe[3];return i5(eO(Se,Be,qe,ft))}),s7="forecolor",l7="hilitecolor",bX=5,xX=l=>{const N=[];for(let W=0;WN=>N.options.get(l),c7="#000000",_X=l=>{const N=l.options.register,W=Se=>p(Se,n)?{value:xX(Se),valid:!0}:{valid:!1,message:"Must be an array of strings."},fe=Se=>h(Se)&&Se>0?{value:Se,valid:!0}:{valid:!1,message:"Must be a positive number."};N("color_map",{processor:W,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),N("color_map_background",{processor:W}),N("color_map_foreground",{processor:W}),N("color_cols",{processor:fe,default:u7(l)}),N("color_cols_foreground",{processor:fe,default:IN(l,s7)}),N("color_cols_background",{processor:fe,default:IN(l,l7)}),N("custom_colors",{processor:"boolean",default:!0}),N("color_default_foreground",{processor:"string",default:c7}),N("color_default_background",{processor:"string",default:c7})},rA=(l,N)=>N===s7&&l.options.isSet("color_map_foreground")?By("color_map_foreground")(l):N===l7&&l.options.isSet("color_map_background")?By("color_map_background")(l):By("color_map")(l),u7=(l,N="default")=>Math.max(bX,Math.ceil(Math.sqrt(rA(l,N).length))),IN=(l,N)=>{const W=By("color_cols")(l),fe=u7(l,N);return W===u7(l)?fe:W},DN=(l,N="default")=>Math.round((()=>N===s7?By("color_cols_foreground")(l):N===l7?By("color_cols_background")(l):By("color_cols")(l))()),BN=By("custom_colors"),wX=By("color_default_foreground"),zN=By("color_default_background"),OX="rgba(0, 0, 0, 0)",SX=l=>n7(l).exists(N=>N.alpha!==0),zy=l=>Nl(l,N=>{if(lr(N)){const W=Di(N,"background-color");return Ot(SX(W),W)}else return I.none()}).getOr(OX),NN=(l,N)=>{const W=Nt.fromDom(l.selection.getStart()),fe=N==="hilitecolor"?zy(W):Di(W,"color");return n7(fe).map(Se=>"#"+i5(Se).value)},kX=(l,N,W)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.apply(N,{value:W}),l.nodeChanged()})},f7=(l,N)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.remove(N,{value:null},void 0,!0),l.nodeChanged()})},Xd=l=>{l.addCommand("mceApplyTextcolor",(N,W)=>{kX(l,N,W)}),l.addCommand("mceRemoveTextcolor",N=>{f7(l,N)})},FN=l=>{const N="choiceitem",W={type:N,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return l?[W,{type:N,text:"Custom color",icon:"color-picker",value:"custom"}]:[W]},d7=(l,N,W,fe)=>{W==="custom"?HN(l)(Be=>{Be.each(qe=>{RN(N,qe),l.execCommand("mceApplyTextcolor",N,qe),fe(qe)})},NN(l,N).getOr(c7)):W==="remove"?(fe(""),l.execCommand("mceRemoveTextcolor",N)):(fe(W),l.execCommand("mceApplyTextcolor",N,W))},h7=(l,N,W)=>l.concat(PN(N).concat(FN(W))),$N=(l,N,W)=>fe=>{fe(h7(l,N,W))},p7=(l,N,W)=>{const fe=N==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";l.setIconFill(fe,W)},VN=(l,N)=>{l.setTooltip(N)},UN=(l,N)=>W=>{const fe=NN(l,N);return St(fe,W.toUpperCase())},m7=(l,N,W)=>{if(at(W))return N==="forecolor"?"Text color":"Background color";const fe=N==="forecolor"?"Text color {0}":"Background color {0}",Se=h7(rA(l,N),N,!1),Be=ce(Se,qe=>qe.value===W).getOr({text:""}).text;return l.translate([fe,l.translate(Be)])},jN=(l,N,W,fe)=>{l.ui.registry.addSplitButton(N,{tooltip:m7(l,W,fe.get()),presets:"color",icon:N==="forecolor"?"text-color":"highlight-bg-color",select:UN(l,W),columns:DN(l,W),fetch:$N(rA(l,W),W,BN(l)),onAction:Se=>{d7(l,W,fe.get(),v)},onItemAction:(Se,Be)=>{d7(l,W,Be,qe=>{fe.set(qe),CN(l,{name:N,color:qe})})},onSetup:Se=>{p7(Se,N,fe.get());const Be=qe=>{qe.name===N&&(p7(Se,qe.name,qe.color),VN(Se,m7(l,W,qe.color)))};return l.on("TextColorChange",Be),eA(kp(l)(Se),()=>{l.off("TextColorChange",Be)})}})},QN=(l,N,W,fe,Se)=>{l.ui.registry.addNestedMenuItem(N,{text:fe,icon:N==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(VN(Be,m7(l,W,Se.get())),p7(Be,N,Se.get()),kp(l)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:UN(l,W),initData:{storageKey:W},onAction:Be=>{d7(l,W,Be.value,qe=>{Se.set(qe),CN(l,{name:N,color:qe})})}}]})},HN=l=>(N,W)=>{let fe=!1;const Se=ft=>{const Lt=ft.getData().colorpicker;fe?(N(I.from(Lt)),ft.close()):l.windowManager.alert(l.translate(["Invalid hex color code: {0}",Lt]))},Be=(ft,yt)=>{yt.name==="hex-valid"&&(fe=yt.value)},qe={colorpicker:W};l.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:Se,onClose:v,onCancel:()=>{N(I.none())}})},TX=l=>{Xd(l);const N=wX(l),W=zN(l),fe=wi(N),Se=wi(W);jN(l,"forecolor","forecolor",fe),jN(l,"backcolor","hilitecolor",Se),QN(l,"forecolor","forecolor","Text color",fe),QN(l,"backcolor","hilitecolor","Background color",Se)},g7=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=V6(N),Ht=CX(N,W,fe,Se!=="color"?"normal":"color",Be,qe,ft);return RP(l,yt,Ht,fe,{menuType:Se})},CX=(l,N,W,fe,Se,Be,qe)=>zt(re(l,ft=>ft.type==="choiceitem"?WY(ft).fold(ax,yt=>I.some(XP(yt,W===1,fe,N,Be(yt.value),Se,qe,V6(l)))):I.none())),oA=(l,N)=>{const W=qw(N);return l===1?{mode:"menu",moveOnTab:!0}:l==="auto"?{mode:"grid",selector:"."+W.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(N==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:Se=>N==="color"?qa(Se.element,"[aria-checked=true]"):I.none()}},AX=(l,N)=>l===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:l==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:N==="color"?".tox-swatches__row":".tox-collection__group",cell:N==="color"?`.${I6}`:`.${L6}`}},MX=(l,N)=>{const W=EX(l,N),fe=N.colorinput.getColorCols(l.initData.storageKey),Se="color",qe={...g7(Li("menu-value"),W,ft=>{l.onAction({value:ft})},fe,Se,A1.CLOSE_ON_EXECUTE,l.select.getOr(D),N.shared.providers),markers:qw(Se),movement:oA(fe,Se),showMenuRole:!1};return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget(T0.sketch(qe))]}},EX=(l,N)=>{const W=l.initData.allowCustomColors&&N.colorinput.hasCustomColors();return l.initData.colors.fold(()=>h7(N.colorinput.getColors(l.initData.storageKey),l.initData.storageKey,W),fe=>fe.concat(FN(W)))},ZN=Li("cell-over"),qN=Li("cell-execute"),PX=l=>(N,W)=>l.shared.providers.translate(["{0} columns, {1} rows",W,N]),RX=(l,N,W)=>{const fe=qe=>sa(qe,ZN,{row:l,col:N}),Se=qe=>sa(qe,qN,{row:l,col:N}),Be=(qe,ft)=>{ft.stop(),Se(qe)};return ka({dom:{tag:"div",attributes:{role:"button","aria-label":W}},behaviours:ei([Ka("insert-table-picker-cell",[Lo(wu(),Ra.focus),Lo(Bp(),Se),Lo(H1(),Be),Lo(Lm(),Be)]),us.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ra.config({onFocus:fe})])})},LX=(l,N,W)=>{const fe=[];for(let Se=0;Se{for(let Be=0;Beve(l,N=>re(N,ea)),v7=(l,N)=>Po(`${N}x${l}`),WN={inserttable:(l,N)=>{const Se=PX(N),Be=LX(Se,10,10),qe=v7(0,0),ft=ml({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:ei([Fa.config({})])});return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:DX(Be).concat(ft.asSpec()),behaviours:ei([Ka("insert-table-picker",[wc(yt=>{Fa.set(ft.get(yt),[qe])}),mb(ZN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;IX(Be,fn,Rn,10,10),Fa.set(ft.get(yt),[v7(fn+1,Rn+1)])}),mb(qN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;Za(yt,Z1()),l.onAction({numRows:fn+1,numColumns:Rn+1})})]),ha.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:MX},BX=(l,N)=>Ge(WN,l.fancytype).map(W=>W(l,N)),zX=(l,N,W,fe=!0,Se=!1)=>{const Be=Se?uN(W.icons):cN(W.icons),qe=yt=>({isEnabled:()=>!he.isDisabled(yt),setEnabled:Lt=>he.set(yt,!Lt),setIconFill:(Lt,Ht)=>{qa(yt.element,`svg path[class="${Lt}"], rect[class="${Lt}"]`).each(fn=>{Cr(fn,"fill",Ht)})},setTooltip:Lt=>{const Ht=W.translate(Lt);Cr(yt.element,"aria-label",Ht)}}),ft=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:qe,enabled:l.enabled,onAction:v,onSetup:l.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,N,W)},NX=(l,N,W,fe=!0)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.none(),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:Se,enabled:l.enabled,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W)},YN=l=>({type:"separator",dom:{tag:"div",classes:[L6,Cz]},components:l.text.map(Po).toArray()}),FX=(l,N,W,fe=!0)=>{const Se=qe=>({setActive:ft=>{us.set(qe,ft)},isActive:()=>us.isOn(qe),isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,checkMark:I.some(lN(W.icons)),caret:I.none(),shortcutContent:l.shortcut,presets:"normal",meta:l.meta},W,fe);return ws(uS({data:Jw(l),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W),{toggling:{toggleClass:D6,toggleOnExecute:!1,selected:l.active},role:l.role.getOrUndefined()})},$X=pN,XN=YN,VX=NX,GN=zX,UX=FX,KN=BX,jX=YP;var HX=Object.freeze({__proto__:null,getCoupled:(l,N,W,fe)=>W.getOrCreate(l,N,fe),getExistingCoupled:(l,N,W,fe)=>W.getExisting(l,N,fe)}),ZX=[In("others",dt(aa.value,Ut()))],qX=Object.freeze({__proto__:null,init:()=>{const l={},N=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(l,qe)},W=(Be,qe,ft)=>N(qe,ft).getOrThunk(()=>{const Lt=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),Ht=Be.getSystem().build(Lt);return l[ft]=Ht,Ht}),fe=(Be,qe,ft)=>N(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),Se=x({});return Hd({readState:Se,getExisting:fe,getOrCreate:W})}});const Ku=id({fields:ZX,name:"coupling",apis:HX,state:qX}),y7=l=>{let N=I.none(),W=[];const fe=Lt=>y7(Ht=>{Se(fn=>{Ht(Lt(fn))})}),Se=Lt=>{qe()?yt(Lt):W.push(Lt)},Be=Lt=>{qe()||(N=I.some(Lt),ft(W),W=[])},qe=()=>N.isSome(),ft=Lt=>{q(Lt,yt)},yt=Lt=>{N.each(Ht=>{setTimeout(()=>{Lt(Ht)},0)})};return l(Be),{get:Se,map:fe,isReady:qe}},WX={nu:y7,pure:l=>y7(N=>{N(l)})},YX=l=>{setTimeout(()=>{throw l},0)},dS=l=>{const N=yt=>{l().then(yt,YX)};return{map:yt=>dS(()=>l().then(yt)),bind:yt=>dS(()=>l().then(Lt=>yt(Lt).toPromise())),anonBind:yt=>dS(()=>l().then(()=>yt.toPromise())),toLazy:()=>WX.nu(N),toCached:()=>{let yt=null;return dS(()=>(yt===null&&(yt=l()),yt))},toPromise:l,get:N}},Ih={nu:l=>dS(()=>new Promise(l)),pure:l=>dS(()=>Promise.resolve(l))},JN=x("sink"),eF=x(mm({name:JN(),overrides:x({dom:{tag:"div"},behaviours:ei([Rh.config({useFixed:k})]),events:Rl([od(nm()),od(Nc()),od(H1())])})})),tF=(l,N)=>{const W=l.getHotspot(N).getOr(N),fe="hotspot",Se=l.getAnchorOverrides();return l.layouts.fold(()=>({type:fe,hotspot:W,overrides:Se}),Be=>({type:fe,hotspot:W,overrides:Se,layouts:Be}))},XX=(l,N,W)=>{const fe=l.fetch;return fe(W).map(N)},GX=(l,N,W,fe,Se,Be,qe)=>{const ft=XX(l,N,fe),yt=x7(fe,l);return ft.map(Lt=>Lt.bind(Ht=>{const fn=Ht.menus[Ht.primary];return I.from(fn).each(Rn=>{l.listRole.each(Bn=>{Rn.role=Bn})}),I.from(B2.sketch({...Be.menu(),uid:vy(""),data:Ht,highlightOnOpen:qe,onOpenMenu:(Rn,Bn)=>{const er=yt().getOrDie();Rh.position(er,Bn,{anchor:W}),Ys.decloak(Se)},onOpenSubmenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Rh.position(cr,er,{anchor:{type:"submenu",item:Bn}}),Ys.decloak(Se)},onRepositionMenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Rh.position(cr,Bn,{anchor:W}),q(er,Xr=>{Rh.position(cr,Xr.triggeredMenu,{anchor:{type:"submenu",item:Xr.triggeringItem}})})},onEscape:()=>(Ra.focus(fe),Ys.close(Se),I.some(!0))}))}))},hS=(l,N,W,fe,Se,Be,qe)=>{const ft=tF(l,W);return GX(l,N,ft,W,fe,Se,qe).map(Lt=>(Lt.fold(()=>{Ys.isOpen(fe)&&Ys.close(fe)},Ht=>{Ys.cloak(fe),Ys.open(fe,Ht),Be(fe)}),fe))},KX=(l,N,W,fe,Se,Be,qe)=>(Ys.close(fe),Ih.pure(fe)),b7=(l,N,W,fe,Se,Be)=>{const qe=Ku.getCoupled(W,"sandbox");return(Ys.isOpen(qe)?KX:hS)(l,N,W,qe,fe,Se,Be)},JX=(l,N,W)=>{const fe=Xs.getCurrent(N).getOr(N),Se=_s(l.element);W?xr(fe.element,"min-width",Se+"px"):zf(fe.element,Se)},x7=(l,N)=>l.getSystem().getByUid(N.uid+"-"+JN()).map(W=>()=>aa.value(W)).getOrThunk(()=>N.lazySink.fold(()=>()=>aa.error(new Error("No internal sink is specified, nor could an external sink be found")),W=>()=>W(l))),_7=l=>{Ys.getState(l).each(N=>{B2.repositionMenus(N)})},w7=(l,N,W)=>{const fe=ld(),Se=(ft,yt)=>{const Lt=tF(l,N);fe.link(N.element),l.matchWidth&&JX(Lt.hotspot,yt,l.useMinWidth),l.onOpen(Lt,ft,yt),W!==void 0&&W.onOpen!==void 0&&W.onOpen(ft,yt)},Be=(ft,yt)=>{fe.unlink(N.element),qe().getOr(yt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),W!==void 0&&W.onClose!==void 0&&W.onClose(ft,yt)},qe=x7(N,l);return{dom:{tag:"div",classes:l.sandboxClasses,attributes:{id:fe.id}},behaviours:Km.augment(l.sandboxBehaviours,[Ei.config({store:{mode:"memory",initialValue:N}}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(ft,yt,Lt)=>Cf(yt,Lt)||Cf(N,Lt),getAttachPoint:()=>qe().getOrDie()}),Xs.config({find:ft=>Ys.getState(ft).bind(yt=>Xs.getCurrent(yt))}),Ad.config({channels:{...Iy({isExtraPart:D}),...ak({doReposition:_7})}})])}},nF=l=>{const N=Ku.getCoupled(l,"sandbox");_7(N)},iA=()=>[Ar("sandboxClasses",[]),Km.field("sandboxBehaviours",[Xs,Ad,Ys,Ei])],eG=x([pn("dom"),pn("fetch"),Ss("onOpen"),kd("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Pd("dropdownBehaviours",[us,Ku,ha,Ra]),pn("toggleClass"),Ar("eventOrder",{}),Yo("lazySink"),Ar("matchWidth",!1),Ar("useMinWidth",!1),Yo("role"),Yo("listRole")].concat(iA())),tG=x([Jm({schema:[Um(),Ar("fakeFocus",!1)],name:"menu",defaults:l=>({onExecute:l.onExecute})}),eF()]),nG=(l,N,W,fe)=>{const Se=Ht=>Ge(l.dom,"attributes").bind(fn=>Ge(fn,Ht)),Be=Ht=>{Ys.getState(Ht).each(fn=>{B2.highlightPrimary(fn)})},qe=(Ht,fn,Rn)=>b7(l,R,Ht,fe,fn,Rn),ft=Ht=>{qe(Ht,Be,Gu.HighlightMenuAndItem).get(v)},yt={expand:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightNone).get(v)},open:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},refetch:Ht=>Ku.getExistingCoupled(Ht,"sandbox").fold(()=>qe(Ht,v,Gu.HighlightMenuAndItem).map(v),Rn=>hS(l,R,Ht,Rn,fe,v,Gu.HighlightMenuAndItem).map(v)),isOpen:us.isOn,close:Ht=>{us.isOn(Ht)&&qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},repositionMenus:Ht=>{us.isOn(Ht)&&nF(Ht)}},Lt=(Ht,fn)=>(Bm(Ht),I.some(!0));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.dropdownBehaviours,[us.config({toggleClass:l.toggleClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:Ht=>w7(l,Ht,{onOpen:()=>us.on(Ht),onClose:()=>us.off(Ht)})}}),ha.config({mode:"special",onSpace:Lt,onEnter:Lt,onDown:(Ht,fn)=>{if(L0.isOpen(Ht)){const Rn=Ku.getCoupled(Ht,"sandbox");Be(Rn)}else L0.open(Ht);return I.some(!0)},onEscape:(Ht,fn)=>L0.isOpen(Ht)?(L0.close(Ht),I.some(!0)):I.none()}),Ra.config({})]),events:d6(I.some(ft)),eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},apis:yt,domModification:{attributes:{"aria-haspopup":l.listRole.getOr("true"),...l.role.fold(()=>({}),Ht=>({role:Ht})),...l.dom.tag==="button"?{type:Se("type").getOr("button")}:{}}}}},L0=Zh({name:"Dropdown",configFields:eG(),partFields:tG(),factory:nG,apis:{open:(l,N)=>l.open(N),refetch:(l,N)=>l.refetch(N),expand:(l,N)=>l.expand(N),close:(l,N)=>l.close(N),isOpen:(l,N)=>l.isOpen(N),repositionMenus:(l,N)=>l.repositionMenus(N)}}),rG=l=>{switch(l.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:l}}},oG=l=>{const N=Ei.getValue(l),W=Gk(l).map(Nz);L0.refetch(N).get(()=>{const fe=Ku.getCoupled(N,"sandbox");W.each(Se=>Gk(fe).each(Be=>AY(Be,Se)))})},aA=(l,N)=>{iG(l).each(W=>{Bx(l,W.element,N.event.eventType,N.event.interactionEvent)})},iG=l=>Ys.getState(l).bind(ta.getHighlighted).bind(ta.getHighlighted),sA=l=>rp(l.element,Yw)?I.some(l.element):qa(l.element,"."+Yw),rF=(l,N,W)=>{zz(l).each(fe=>{MY(fe,W),sA(N).each(Be=>{Eo(Be,"id").each(qe=>Cr(fe.element,"aria-controls",qe))})}),Cr(W.element,"aria-selected","true")},aG=(l,N,W)=>{Cr(W.element,"aria-selected","false")},sG=l=>{zz(l).each(N=>Ra.focus(N))},lG=l=>Ku.getExistingCoupled(l,"sandbox").bind(Gk).map(Nz).map(W=>W.fetchPattern).getOr("");var O7;(function(l){l[l.ContentFocus=0]="ContentFocus",l[l.UiFocus=1]="UiFocus"})(O7||(O7={}));const lA=(l,N,W,fe,Se)=>{const Be=W.shared.providers,qe=ft=>Se?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(l.type){case"menuitem":return XY(l).fold(ax,ft=>I.some(VX(qe(ft),N,Be,fe)));case"nestedmenuitem":return KY(l).fold(ax,ft=>I.some(GN(qe(ft),N,Be,fe,Se)));case"togglemenuitem":return tN(l).fold(ax,ft=>I.some(UX(qe(ft),N,Be,fe)));case"separator":return Wz(l).fold(ax,ft=>I.some(XN(ft)));case"fancymenuitem":return q6(l).fold(ax,ft=>KN(ft,W));default:return console.error("Unknown item in general menu",l),I.none()}},pS=(l,N,W,fe,Se,Be,qe)=>{const ft=fe===1,yt=!ft||V6(l);return zt(re(l,Lt=>{switch(Lt.type){case"separator":return VY(Lt).fold(ax,Ht=>I.some(XN(Ht)));case"cardmenuitem":return qY(Lt).fold(ax,Ht=>I.some(jX({...Ht,onAction:fn=>{Ht.onAction(fn),W(Ht.value,Ht.meta)}},Se,Be,{itemBehaviours:qP(Ht.meta,Be,I.none()),cardText:{matchText:N,highlightOn:qe}})));case"autocompleteitem":default:return UY(Lt).fold(ax,Ht=>I.some($X(Ht,N,ft,"normal",W,Se,Be,yt)))}}))},S7=(l,N,W,fe,Se,Be)=>{const qe=V6(N),ft=zt(re(N,Ht=>{const fn=Bn=>Se?!ht(Bn,"text"):qe,Rn=Bn=>lA(Bn,W,fe,fn(Bn),Se);return Ht.type==="nestedmenuitem"&&Ht.getSubmenuItems().length<=0?Rn({...Ht,enabled:!1}):Rn(Ht)})),yt=rG(Be);return(Se?RY:RP)(l,qe,ft,1,yt)},cA=l=>B2.singleData(l.value,l),cG=(l,N,W,fe)=>{const Se=oA(N,fe),Be=qw(fe);return{data:cA({...l,movement:Se,menuBehaviours:lS.unnamedEvents(N!=="auto"?[]:[wc((qe,ft)=>{QP(qe,4,Be.item).each(({numColumns:yt,numRows:Lt})=>{ha.setGridSize(qe,Lt,yt)})})])}),menu:{markers:qw(fe),fakeFocus:W===O7.ContentFocus}}},uG=l=>vw.create(Nt.fromDom(l.startContainer),l.startOffset,Nt.fromDom(l.endContainer),l.endOffset),fG={register:(l,N)=>{const W=Li("autocompleter"),fe=wi(!1),Se=wi(!1),Be=ds(),qe=ka(Xc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:W}},components:[],fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissAutocompleter",[Lo(J0(),()=>fn()),Lo(e1(),(br,Fr)=>{Eo(Fr.event.target,"id").each(jr=>Cr(Nt.fromDom(l.getBody()),"aria-activedescendant",jr))})])]),lazySink:N.getSink})),ft=()=>Xc.isOpen(qe),yt=Se.get,Lt=()=>{if(ft()){Xc.hide(qe),l.dom.remove(W,!1);const br=Nt.fromDom(l.getBody());Eo(br,"aria-owns").filter(Fr=>Fr===W).each(()=>{Qt(br,"aria-owns"),Qt(br,"aria-activedescendant")})}},Ht=()=>Xc.getContent(qe).bind(br=>De(br.components(),0)),fn=()=>l.execCommand("mceAutocompleterClose"),Rn=br=>{const Fr=Oe(br,jr=>I.from(jr.columns)).getOr(1);return ve(br,jr=>{const Ro=jr.items;return pS(Ro,jr.matchText,(ko,_i)=>{const Pi={hide:()=>fn(),reload:Ao=>{Lt(),l.execCommand("mceAutocompleterReload",!1,{fetchOptions:Ao})}};l.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(Ao=>{fe.set(!0),jr.onAction(Pi,Ao,ko,_i),fe.set(!1)})},Fr,A1.BUBBLE_TO_SANDBOX,N,jr.highlightOn)})},Bn=(br,Fr)=>{const jr=Oe(br,Ro=>I.from(Ro.columns)).getOr(1);Xc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(uG),root:Nt.fromDom(l.getBody())}},cG(RP("autocompleter-value",!0,Fr,jr,{menuType:"normal"}),jr,O7.ContentFocus,"normal")),Ht().each(ta.highlightFirst)},er=br=>{const Fr=Rn(br);Fr.length>0?(Bn(br,Fr),Cr(Nt.fromDom(l.getBody()),"aria-owns",W),l.inline||cr()):Lt()},cr=()=>{l.dom.get(W)&&l.dom.remove(W,!1);const br=l.getDoc().documentElement,Fr=l.selection.getNode(),jr=xb(qe.element);Oo(jr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Fr.offsetTop}px`,left:`${Fr.offsetLeft}px`}),l.dom.add(br,jr.dom),qa(jr,'[role="menu"]').each(Ro=>{zi(Ro,"position"),zi(Ro,"max-height")})};l.on("AutocompleterStart",({lookupData:br})=>{Se.set(!0),fe.set(!1),er(br)}),l.on("AutocompleterUpdate",({lookupData:br})=>er(br)),l.on("AutocompleterUpdateActiveRange",({range:br})=>Be.set(br)),l.on("AutocompleterEnd",()=>{Lt(),Se.set(!1),fe.set(!1),Be.clear()});const Xr={cancelIfNecessary:fn,isMenuOpen:ft,isActive:yt,isProcessingAction:fe.get,getMenu:Ht};Tz.setup(Xr,l)}},f5=(l,N,W)=>Sc(l,N,W).isSome(),oF=(l,N)=>{let W=null;return{cancel:()=>{W!==null&&(clearTimeout(W),W=null)},schedule:(...Be)=>{W=setTimeout(()=>{l.apply(null,Be),W=null},N)}}},iF=5,dG=400,aF=l=>{const N=l.raw;return N.touches===void 0||N.touches.length!==1?I.none():I.some(N.touches[0])},hG=(l,N)=>{const W=Math.abs(l.clientX-N.x),fe=Math.abs(l.clientY-N.y);return W>iF||fe>iF},pG=l=>{const N=ds(),W=wi(!1),fe=oF(Lt=>{l.triggerEvent(Qd(),Lt),W.set(!0)},dG),Se=Lt=>(aF(Lt).each(Ht=>{fe.cancel();const fn={x:Ht.clientX,y:Ht.clientY,target:Lt.target};fe.schedule(Lt),W.set(!1),N.set(fn)}),I.none()),Be=Lt=>(fe.cancel(),aF(Lt).each(Ht=>{N.on(fn=>{hG(Ht,fn)&&N.clear()})}),I.none()),qe=Lt=>{fe.cancel();const Ht=fn=>_o(fn.target,Lt.target);return N.get().filter(Ht).map(fn=>W.get()?(Lt.prevent(),!1):l.triggerEvent(Lm(),Lt))},ft=ua([{key:Uh(),value:Se},{key:ss(),value:Be},{key:Gl(),value:qe}]);return{fireIfReady:(Lt,Ht)=>Ge(ft,Ht).bind(fn=>fn(Lt))}},sF=l=>l.raw.which===nu[0]&&!X(["input","textarea"],vr(l.target))&&!f5(l.target,'[contenteditable="true"]'),mS=(l,N)=>{const W={stopBackspace:!0,...N},fe=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],Se=pG(W),Be=re(fe.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),Bn=>ud(l,Bn,er=>{Se.fireIfReady(er,Bn).each(Xr=>{Xr&&er.kill()}),W.triggerEvent(Bn,er)&&er.kill()})),qe=ds(),ft=ud(l,"paste",Bn=>{Se.fireIfReady(Bn,"paste").each(cr=>{cr&&Bn.kill()}),W.triggerEvent("paste",Bn)&&Bn.kill(),qe.set(setTimeout(()=>{W.triggerEvent(l0(),Bn)},0))}),yt=ud(l,"keydown",Bn=>{W.triggerEvent("keydown",Bn)?Bn.kill():W.stopBackspace&&sF(Bn)&&Bn.prevent()}),Lt=ud(l,"focusin",Bn=>{W.triggerEvent("focusin",Bn)&&Bn.kill()}),Ht=ds(),fn=ud(l,"focusout",Bn=>{W.triggerEvent("focusout",Bn)&&Bn.kill(),Ht.set(setTimeout(()=>{W.triggerEvent(kf(),Bn)},0))});return{unbind:()=>{q(Be,Bn=>{Bn.unbind()}),yt.unbind(),Lt.unbind(),fn.unbind(),ft.unbind(),qe.on(clearTimeout),Ht.on(clearTimeout)}}},Q2=(l,N)=>{const W=Ge(l,"target").getOr(N);return wi(W)},mG=(l,N)=>{const W=wi(!1),fe=wi(!1);return{stop:()=>{W.set(!0)},cut:()=>{fe.set(!0)},isStopped:W.get,isCut:fe.get,event:l,setSource:N.set,getSource:N.get}},lF=l=>{const N=wi(!1);return{stop:()=>{N.set(!0)},cut:v,isStopped:N.get,isCut:D,event:l,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},gS=Nn.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),d5=(l,N,W,fe,Se,Be)=>{const qe=l(N,fe),ft=mG(W,Se);return qe.fold(()=>(Be.logEventNoHandlers(N,fe),gS.complete()),yt=>{const Lt=yt.descHandler;return pv(Lt)(ft),ft.isStopped()?(Be.logEventStopped(N,yt.element,Lt.purpose),gS.stopped()):ft.isCut()?(Be.logEventCut(N,yt.element,Lt.purpose),gS.complete()):Dr(yt.element).fold(()=>(Be.logNoParent(N,yt.element,Lt.purpose),gS.complete()),fn=>(Be.logEventResponse(N,yt.element,Lt.purpose),gS.resume(fn)))})},cF=(l,N,W,fe,Se,Be)=>d5(l,N,W,fe,Se,Be).fold(k,qe=>cF(l,N,W,qe,Se,Be),D),h5=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return d5(l,N,W,fe,Be,Se)},p5=(l,N,W)=>{const fe=lF(N);return q(l,Se=>{const Be=Se.descHandler;pv(Be)(fe)}),fe.isStopped()},gG=(l,N,W,fe)=>uF(l,N,W,W.target,fe),uF=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return cF(l,N,W,fe,Be,Se)},vG=(l,N)=>({element:l,descHandler:N}),yG=(l,N)=>({id:l,descHandler:N}),bG=()=>{const l={},N=(qe,ft,yt)=>{We(yt,(Lt,Ht)=>{const fn=l[Ht]!==void 0?l[Ht]:{};fn[ft]=cm(Lt,qe),l[Ht]=fn})},W=(qe,ft)=>sm(ft).bind(yt=>Ge(qe,yt)).map(yt=>vG(ft,yt));return{registerId:N,unregisterId:qe=>{We(l,(ft,yt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(l,qe).map(ft=>je(ft,(yt,Lt)=>yG(Lt,yt))).getOr([]),find:(qe,ft,yt)=>Ge(l,ft).bind(Lt=>Nl(yt,Ht=>W(Lt,Ht),qe))}},xG=()=>{const l=bG(),N={},W=Lt=>{const Ht=Lt.element;return sm(Ht).getOrThunk(()=>JO("uid-",Lt.element))},fe=(Lt,Ht)=>{const fn=N[Ht];if(fn===Lt)Be(Lt);else throw new Error('The tagId "'+Ht+'" is already used by: '+a1(fn.element)+` Cannot use it for: `+a1(Lt.element)+` -The conflicting element is`+(Gn(fn.element)?" ":" not ")+"already in the DOM")},Se=Lt=>{const Ht=W(Lt);pt(N,Ht)&&fe(Lt,Ht);const fn=[Lt];l.registerId(fn,Ht,Lt.events),N[Ht]=Lt},Be=Lt=>{sm(Lt.element).each(Ht=>{delete N[Ht],l.unregisterId(Ht)})};return{find:(Lt,Ht,fn)=>l.find(Lt,Ht,fn),filter:Lt=>l.filterByType(Lt),register:Se,unregister:Be,getById:Lt=>Ge(N,Lt)}},Iv=Qp({name:"Container",factory:l=>{const{attributes:N,...W}=l.dom;return{uid:l.uid,dom:{tag:"div",attributes:{role:"presentation",...N},...W},components:l.components,behaviours:Aw(l.containerBehaviours),events:l.events,domModification:l.domModification,eventOrder:l.eventOrder}},configFields:[Ar("components",[]),Pd("containerBehaviours",[]),Ar("events",{}),Ar("domModification",{}),Ar("eventOrder",{})]}),m5=l=>{const N=br=>Dr(l.element).fold(k,Fr=>_o(br,Fr)),W=bG(),fe=(br,Fr)=>W.find(N,br,Fr),Se=mS(l.element,{triggerEvent:(br,Fr)=>am(br,Fr.target,jr=>mG(fe,br,Fr,jr))}),Be={debugInfo:x("real"),triggerEvent:(br,Fr,jr)=>{am(br,Fr,Ro=>cF(fe,br,jr,Fr,Ro))},triggerFocus:(br,Fr)=>{sm(br).fold(()=>{Md(br)},jr=>{am(wh(),br,Ro=>(h5(fe,wh(),{originator:Fr,kill:v,prevent:v,target:br},br,Ro),!1))})},triggerEscape:(br,Fr)=>{Be.triggerEvent("keydown",br.element,Fr.event)},getByUid:br=>cr(br),getByDom:br=>Xr(br),build:ka,buildOrPatch:ra,addToGui:br=>{yt(br)},removeFromGui:br=>{Lt(br)},addToWorld:br=>{qe(br)},removeFromWorld:br=>{ft(br)},broadcast:br=>{Rn(br)},broadcastOn:(br,Fr)=>{Bn(br,Fr)},broadcastEvent:(br,Fr)=>{er(br,Fr)},isConnected:k},qe=br=>{br.connect(Be),zr(br.element)||(W.register(br),q(br.components(),qe),Be.triggerEvent(K0(),br.element,{target:br.element}))},ft=br=>{zr(br.element)||(q(br.components(),ft),W.unregister(br)),br.disconnect()},yt=br=>{Eg(l,br)},Lt=br=>{kv(br)},Ht=()=>{Se.unbind(),gs(l.element)},fn=br=>{const Fr=W.filter(yp());q(Fr,jr=>{const Ro=jr.descHandler;pv(Ro)(br)})},Rn=br=>{fn({universal:!0,data:br})},Bn=(br,Fr)=>{fn({universal:!1,channels:br,data:Fr})},er=(br,Fr)=>{const jr=W.filter(br);return p5(jr,Fr)},cr=br=>W.getById(br).fold(()=>aa.error(new Error('Could not find component with uid: "'+br+'" in system.')),aa.value),Xr=br=>{const Fr=sm(br).getOr("not found");return cr(Fr)};return qe(l),{root:l,element:l.element,destroy:Ht,add:yt,remove:Lt,getByUid:cr,getByDom:Xr,addToWorld:qe,removeFromWorld:ft,broadcast:Rn,broadcastOn:Bn,broadcastEvent:er}},xG=(l,N)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:re(l.items,N.interpreter)}),_G=x([Ar("prefix","form-field"),Pd("fieldBehaviours",[Xs,Ei])]),wG=x([mm({schema:[pn("dom")],name:"label"}),mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),mh({factory:{sketch:l=>{const N=ga(l,["factory"]);return l.factory.sketch(N)}},schema:[pn("factory")],name:"field"})]),uF=(l,N,W,fe)=>{const Se=Rd(l.fieldBehaviours,[Xs.config({find:ft=>Jo(ft,l,"field")}),Ei.config({store:{mode:"manual",getValue:ft=>Xs.getCurrent(ft).bind(Ei.getValue),setValue:(ft,yt)=>{Xs.getCurrent(ft).each(Lt=>{Ei.setValue(Lt,yt)})}}})]),Be=Rl([wc((ft,yt)=>{const Lt=WC(ft,l,["label","field","aria-descriptor"]);Lt.field().each(Ht=>{const fn=Li(l.prefix);Lt.label().each(Rn=>{Cr(Rn.element,"for",fn),Cr(Ht.element,"id",fn)}),Lt["aria-descriptor"]().each(Rn=>{const Bn=Li(l.prefix);Cr(Rn.element,"id",Bn),Cr(Ht.element,"aria-describedby",Bn)})})})]),qe={getField:ft=>Jo(ft,l,"field"),getLabel:ft=>Jo(ft,l,"label")};return{uid:l.uid,dom:l.dom,components:N,behaviours:Se,events:Be,apis:qe}},Il=Zh({name:"FormField",configFields:_G(),partFields:wG(),factory:uF,apis:{getField:(l,N)=>l.getField(N),getLabel:(l,N)=>l.getLabel(N)}});var OG=tinymce.util.Tools.resolve("tinymce.html.Entities");const g5=(l,N,W,fe)=>{const Se=SG(l,N,W,fe);return Il.sketch(Se)},fF=(l,N)=>g5(l,N,[],[]),SG=(l,N,W,fe)=>({dom:dF(W),components:l.toArray().concat([N]),fieldBehaviours:ei(fe)}),kG=()=>dF([]),dF=l=>({tag:"div",classes:["tox-form__group"].concat(l)}),H2=(l,N)=>Il.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l))]}),xm=Li("form-component-change"),vS=Li("form-close"),cx=Li("form-cancel"),zy=Li("form-action"),v5=Li("form-submit"),T7=Li("form-block"),C7=Li("form-unblock"),hF=Li("form-tabchange"),A7=Li("form-resize"),yS=(l,N,W)=>{const fe=l.label.map(Bn=>H2(Bn,N)),Se=N.icons(),Be=Bn=>{var er;return(er=Se[Bn])!==null&&er!==void 0?er:Bn},qe=Bn=>(er,cr)=>{Sc(cr.event.target,"[data-collection-item-value]").each(Xr=>{Bn(er,cr,Xr,Nr(Xr,"data-collection-item-value"))})},ft=(Bn,er)=>{const cr=re(er,Fr=>{const jr=Dg.translate(Fr.text),Ro=l.columns===1?`
    ${jr}
    `:"",ko=`
    ${Be(Fr.icon)}
    `,_i={_:" "," - ":" ","-":" "},Pi=jr.replace(/\_| \- |\-/g,$i=>_i[$i]),Ao=N.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${ko}${Ro}
    `}),Xr=l.columns!=="auto"&&l.columns>1?K(cr,l.columns):[cr],br=re(Xr,Fr=>`
    ${Fr.join("")}
    `);d0(Bn.element,br.join(""))},yt=qe((Bn,er,cr,Xr)=>{er.stop(),N.isDisabled()||sa(Bn,zy,{name:l.name,value:Xr})}),Lt=[Lo(wu(),qe((Bn,er,cr)=>{Md(cr)})),Lo(H1(),yt),Lo(Lm(),yt),Lo(Dp(),qe((Bn,er,cr)=>{qa(Bn.element,"."+$2).each(Xr=>{Zc(Xr,$2)}),uc(cr,$2)})),Lo(Rm(),qe(Bn=>{qa(Bn.element,"."+$2).each(er=>{Zc(er,$2),m1(er)})})),Sh(qe((Bn,er,cr,Xr)=>{sa(Bn,zy,{name:l.name,value:Xr})}))],Ht=(Bn,er)=>re(Yd(Bn.element,".tox-collection__item"),er),fn=Il.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(l.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:ei([he.config({disabled:N.isDisabled,onDisabled:Bn=>{Ht(Bn,er=>{uc(er,"tox-collection__item--state-disabled"),Cr(er,"aria-disabled",!0)})},onEnabled:Bn=>{Ht(Bn,er=>{Zc(er,"tox-collection__item--state-disabled"),Qt(er,"aria-disabled")})}}),Id(),Fa.config({}),Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Bn=>{qa(Bn.element,"."+$2+"[data-mce-tooltip]").each(er=>{Eo(er,"data-mce-tooltip").each(cr=>{Vu.setComponents(Bn,N.tooltips.getComponents({tooltipText:cr}))})})}}),mode:"children-keyboard-focus",anchor:Bn=>({type:"node",node:qa(Bn.element,"."+$2).orThunk(()=>Vs(".tox-collection__item")),root:Bn.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),Ei.config({store:{mode:"memory",initialValue:W.getOr([])},onSetValue:(Bn,er)=>{ft(Bn,er),l.columns==="auto"&&QP(Bn,5,"tox-collection__item").each(({numRows:cr,numColumns:Xr})=>{ha.setGridSize(Bn,cr,Xr)}),Za(Bn,A7)}}),Rc.config({}),ha.config(CX(l.columns,"normal")),Ka("collection-events",Lt)]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","collection-events"],[Dp()]:["collection-events","tooltipping"]}});return g5(fe,fn,["tox-form__group--collection"],[])},TG=["input","textarea"],pF=l=>{const N=vr(l);return X(TG,N)},mF=(l,N)=>{const W=N.getRoot(l).getOr(l.element);Zc(W,N.invalidClass),N.notify.each(fe=>{pF(l.element)&&Cr(l.element,"aria-invalid",!1),fe.getContainer(l).each(Se=>{d0(Se,fe.validHtml)}),fe.onValid(l)})},y5=(l,N,W,fe)=>{const Se=N.getRoot(l).getOr(l.element);uc(Se,N.invalidClass),N.notify.each(Be=>{pF(l.element)&&Cr(l.element,"aria-invalid",!0),Be.getContainer(l).each(qe=>{d0(qe,fe)}),Be.onInvalid(l,fe)})},zg=(l,N,W)=>N.validator.fold(()=>Lh.pure(aa.value(!0)),fe=>fe.validate(l)),b5=(l,N,W)=>(N.notify.each(fe=>{fe.onValidate(l)}),zg(l,N).map(fe=>l.getSystem().isConnected()?fe.fold(Se=>(y5(l,N,W,Se),aa.error(Se)),Se=>(mF(l,N),aa.value(Se))):aa.error("No longer in system")));var AG=Object.freeze({__proto__:null,markValid:mF,markInvalid:y5,query:zg,run:b5,isInvalid:(l,N)=>{const W=N.getRoot(l).getOr(l.element);return rp(W,N.invalidClass)}}),MG=Object.freeze({__proto__:null,events:(l,N)=>l.validator.map(W=>Rl([Lo(W.onEvent,fe=>{b5(fe,l,N).get(R)})].concat(W.validateOnLoad?[wc(fe=>{b5(fe,l,N).get(v)})]:[]))).getOr({})}),EG=[pn("invalidClass"),Ar("getRoot",I.none),Ai("notify",[Ar("aria","alert"),Ar("getContainer",I.none),Ar("validHtml",""),Ss("onValid"),Ss("onInvalid"),Ss("onValidate")]),Ai("validator",[pn("validate"),Ar("onEvent","input"),Ar("validateOnLoad",!0)])];const Dv=id({fields:EG,name:"invalidating",active:MG,apis:AG,extra:{validation:l=>N=>{const W=Ei.getValue(N);return Lh.pure(l(W))}}});var RG=Object.freeze({__proto__:null,events:()=>Rl([zx(db(),k)]),exhibit:()=>np({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const bS=id({fields:[],name:"unselecting",active:RG}),LG=(l,N)=>L0.sketch({dom:l.dom,components:l.components,toggleClass:"mce-active",dropdownBehaviours:ei([E1.button(N.providers.isDisabled),Id(),bS.config({}),Rc.config({})]),layouts:l.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:N.getSink,fetch:W=>Lh.nu(fe=>l.fetch(fe)).map(fe=>I.from(lA(ws(g7(Li("menu-value"),fe,Se=>{l.onItemAction(W,Se)},l.columns,l.presets,A1.CLOSE_ON_EXECUTE,D,N.providers),{movement:rA(l.columns,l.presets)})))),parts:{menu:Xk(!1,1,l.presets)}}),M7=Li("color-input-change"),E7=Li("color-swatch-change"),P7=Li("color-picker-cancel"),IG=(l,N,W,fe)=>{const Se=Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],data:fe,onSetValue:Lt=>Dv.run(Lt).get(v),inputBehaviours:ei([he.config({disabled:N.providers.isDisabled}),Id(),Rc.config({}),Dv.config({invalidClass:"tox-textbox-field-invalid",getRoot:Lt=>Zr(Lt.element),notify:{onValid:Lt=>{const Ht=Ei.getValue(Lt);sa(Lt,M7,{color:Ht})}},validator:{validateOnLoad:!1,validate:Lt=>{const Ht=Ei.getValue(Lt);if(Ht.length===0)return Lh.pure(aa.value(!0));{const fn=Nt.fromTag("span");xr(fn,"background-color",Ht);const Rn=Ia(fn,"background-color").fold(()=>aa.error("blah"),Bn=>aa.value(Ht));return Lh.pure(Rn)}}}})]),selectOnFocus:!1}),Be=l.label.map(Lt=>H2(Lt,N.providers)),qe=(Lt,Ht)=>{sa(Lt,E7,{value:Ht})},ft=(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{Ht==="custom"?W.colorPicker(Rn=>{Rn.fold(()=>Za(fn,P7),Bn=>{qe(fn,Bn),PN(l.storageKey,Bn)})},"#ffffff"):Ht==="remove"?qe(fn,""):qe(fn,Ht)})},yt=ml(LG({dom:{tag:"span",attributes:{"aria-label":N.providers.translate("Color swatch")}},layouts:{onRtl:()=>[$c,Lu,Iu],onLtr:()=>[Lu,$c,Iu]},components:[],fetch:FN(W.getColors(l.storageKey),l.storageKey,W.hasCustomColors()),columns:W.getColorCols(l.storageKey),presets:"color",onItemAction:ft},N));return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[Se,yt.asSpec()]}]),fieldBehaviours:ei([Ka("form-field-events",[Lo(M7,(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{xr(fn.element,"background-color",Ht.event.color)}),sa(Lt,xm,{name:l.name})}),Lo(E7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Ei.setValue(fn,Ht.event.value),Xs.getCurrent(Lt).each(Ra.focus)})}),Lo(P7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Xs.getCurrent(Lt).each(Ra.focus)})})])])})},DG=mm({schema:[pn("dom")],name:"label"}),Z2=l=>mm({name:""+l+"-edge",overrides:N=>N.model.manager.edgeActions[l].fold(()=>({}),fe=>({events:Rl([Nm(Uh(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(Nc(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(o0(),(Se,Be,qe)=>{qe.mouseIsDown.get()&&fe(Se,qe)},[N])])}))}),BG=Z2("top-left"),zG=Z2("top"),NG=Z2("top-right"),R7=Z2("right"),FG=Z2("bottom-right"),$G=Z2("bottom"),gF=Z2("bottom-left"),VG=Z2("left"),UG=mh({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:l=>({events:Rl([c0(Uh(),l,"spectrum"),c0(ss(),l,"spectrum"),c0(Gl(),l,"spectrum"),c0(Nc(),l,"spectrum"),c0(o0(),l,"spectrum"),c0(a0(),l,"spectrum")])})}),cA=l=>Lg(l.event),jG=mh({schema:[gn("mouseIsDown",()=>wi(!1))],name:"spectrum",overrides:l=>{const W=l.model.manager,fe=(Se,Be)=>W.getValueFromEvent(Be).map(qe=>W.setValueFrom(Se,l,qe));return{behaviours:ei([ha.config({mode:"special",onLeft:(Se,Be)=>W.onLeft(Se,l,cA(Be)),onRight:(Se,Be)=>W.onRight(Se,l,cA(Be)),onUp:(Se,Be)=>W.onUp(Se,l,cA(Be)),onDown:(Se,Be)=>W.onDown(Se,l,cA(Be))}),Rc.config({}),Ra.config({})]),events:Rl([Lo(Uh(),fe),Lo(ss(),fe),Lo(Nc(),fe),Lo(o0(),(Se,Be)=>{l.mouseIsDown.get()&&fe(Se,Be)})])}}});var QG=[DG,VG,R7,zG,$G,BG,NG,gF,FG,UG,jG];const x5=x("slider.change.value"),vF=l=>l.type.indexOf("touch")!==-1,uA=l=>{const N=l.event.raw;if(vF(N)){const W=N;return W.touches!==void 0&&W.touches.length===1?I.some(W.touches[0]).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}else{const W=N;return W.clientX!==void 0?I.some(W).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}},HG="top",ZG="right",qG="bottom",WG="left",rO=l=>l.model.minX,oO=l=>l.model.minY,_5=l=>l.model.minX-1,w5=l=>l.model.minY-1,q2=l=>l.model.maxX,ux=l=>l.model.maxY,fA=l=>l.model.maxX+1,O5=l=>l.model.maxY+1,yF=(l,N,W)=>N(l)-W(l),L7=l=>yF(l,q2,rO),I7=l=>yF(l,ux,oO),bF=l=>L7(l)/2,dA=l=>I7(l)/2,Ng=(l,N)=>N?l.stepSize*l.speedMultiplier:l.stepSize,xF=l=>l.snapToGrid,xS=l=>l.snapStart,_F=l=>l.rounded,_S=(l,N)=>l[N+"-edge"]!==void 0,wF=l=>_S(l,WG),OF=l=>_S(l,ZG),SF=l=>_S(l,HG),D7=l=>_S(l,qG),fx=l=>l.model.value.get(),Ny=(l,N)=>({x:l,y:N}),Fg=(l,N)=>{sa(l,x5(),{value:N})},B7=(l,N)=>{Fg(l,Ny(_5(N),w5(N)))},YG=(l,N)=>{Fg(l,w5(N))},$g=(l,N)=>{Fg(l,Ny(bF(N),w5(N)))},XG=(l,N)=>{Fg(l,Ny(fA(N),w5(N)))},GG=(l,N)=>{Fg(l,fA(N))},kF=(l,N)=>{Fg(l,Ny(fA(N),dA(N)))},TF=(l,N)=>{Fg(l,Ny(fA(N),O5(N)))},KG=(l,N)=>{Fg(l,O5(N))},JG=(l,N)=>{Fg(l,Ny(bF(N),O5(N)))},eK=(l,N)=>{Fg(l,Ny(_5(N),O5(N)))},tK=(l,N)=>{Fg(l,_5(N))},nK=(l,N)=>{Fg(l,Ny(_5(N),dA(N)))},z7=(l,N,W,fe)=>lW?W:l===N?N-1:Math.max(N,l-fe),N7=(l,N,W,fe)=>l>W?l:lMath.max(N,Math.min(W,l)),rK=(l,N,W,fe,Se)=>Se.fold(()=>{const Be=l-N,qe=Math.round(Be/fe)*fe;return F7(N+qe,N-1,W+1)},Be=>{const qe=(l-Be)%fe,ft=Math.round(qe/fe),yt=Math.floor((l-Be)/fe),Lt=Math.floor((W-Be)/fe),Ht=Math.min(Lt,yt+ft),fn=Be+Ht*fe;return Math.max(Be,fn)}),oK=(l,N,W)=>Math.min(W,Math.max(l,N))-N,CF=l=>{const{min:N,max:W,range:fe,value:Se,step:Be,snap:qe,snapStart:ft,rounded:yt,hasMinEdge:Lt,hasMaxEdge:Ht,minBound:fn,maxBound:Rn,screenRange:Bn}=l,er=Lt?N-1:N,cr=Ht?W+1:W;if(SeRn)return cr;{const Xr=oK(Se,fn,Rn),br=F7(Xr/Bn*fe+N,er,cr);return qe&&br>=N&&br<=W?rK(br,N,W,Be,ft):yt?Math.round(br):br}},$7=l=>{const{min:N,max:W,range:fe,value:Se,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:yt,centerMinEdge:Lt,centerMaxEdge:Ht}=l;return SeW?qe?ft:Ht:(Se-N)/fe*yt},S5="top",V7="right",U7="bottom",hA="left",AF="width",j7="height",Fy=l=>l.element.dom.getBoundingClientRect(),Vg=(l,N)=>l[N],dx=l=>{const N=Fy(l);return Vg(N,hA)},Q7=l=>{const N=Fy(l);return Vg(N,V7)},k5=l=>{const N=Fy(l);return Vg(N,S5)},H7=l=>{const N=Fy(l);return Vg(N,U7)},MF=l=>{const N=Fy(l);return Vg(N,AF)},EF=l=>{const N=Fy(l);return Vg(N,j7)},T5=(l,N,W)=>(l+N)/2-W,PF=(l,N)=>{const W=Fy(l),fe=Fy(N),Se=Vg(W,hA),Be=Vg(W,V7),qe=Vg(fe,hA);return T5(Se,Be,qe)},RF=(l,N)=>{const W=Fy(l),fe=Fy(N),Se=Vg(W,S5),Be=Vg(W,U7),qe=Vg(fe,S5);return T5(Se,Be,qe)},C5=(l,N)=>{sa(l,x5(),{value:N})},pA=(l,N,W)=>{const fe={min:rO(N),max:q2(N),range:L7(N),value:W,step:Ng(N),snap:xF(N),snapStart:xS(N),rounded:_F(N),hasMinEdge:wF(N),hasMaxEdge:OF(N),minBound:dx(l),maxBound:Q7(l),screenRange:MF(l)};return CF(fe)},Z7=(l,N,W)=>{const fe=pA(l,N,W);return C5(l,fe),fe},LF=(l,N)=>{const W=rO(N);C5(l,W)},Zp=(l,N)=>{const W=q2(N);C5(l,W)},IF=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),rO(W),q2(W),Ng(W,fe));return C5(N,Be),I.some(Be)},DF=l=>(N,W,fe)=>IF(l,N,W,fe).map(k),iK=l=>uA(l).map(W=>W.left),BF=(l,N,W,fe,Se)=>{const qe=MF(l),ft=fe.bind(Ht=>I.some(PF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(PF(Ht,l))).getOr(qe),Lt={min:rO(N),max:q2(N),range:L7(N),value:W,hasMinEdge:wF(N),hasMaxEdge:OF(N),minBound:dx(l),minOffset:0,maxBound:Q7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},q7=(l,N,W,fe,Se,Be)=>{const qe=BF(N,Be,W,fe,Se);return dx(N)-dx(l)+qe},aK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=_s(N.element)/2;xr(N.element,"left",Be-qe+"px")},sK=DF(-1),zF=DF(1),$y=I.none,W7=I.none,NF={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some(GG),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(tK)};var mA=Object.freeze({__proto__:null,setValueFrom:Z7,setToMin:LF,setToMax:Zp,findValueOfOffset:pA,getValueFromEvent:iK,findPositionOfValue:q7,setPositionFromValue:aK,onLeft:sK,onRight:zF,onUp:$y,onDown:W7,edgeActions:NF});const wS=(l,N)=>{sa(l,x5(),{value:N})},Y7=(l,N,W)=>{const fe={min:oO(N),max:ux(N),range:I7(N),value:W,step:Ng(N),snap:xF(N),snapStart:xS(N),rounded:_F(N),hasMinEdge:SF(N),hasMaxEdge:D7(N),minBound:k5(l),maxBound:H7(l),screenRange:EF(l)};return CF(fe)},lK=(l,N,W)=>{const fe=Y7(l,N,W);return wS(l,fe),fe},cK=(l,N)=>{const W=oO(N);wS(l,W)},uK=(l,N)=>{const W=ux(N);wS(l,W)},fK=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),oO(W),ux(W),Ng(W,fe));return wS(N,Be),I.some(Be)},FF=l=>(N,W,fe)=>fK(l,N,W,fe).map(k),dK=l=>uA(l).map(W=>W.top),$F=(l,N,W,fe,Se)=>{const qe=EF(l),ft=fe.bind(Ht=>I.some(RF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(RF(Ht,l))).getOr(qe),Lt={min:oO(N),max:ux(N),range:I7(N),value:W,hasMinEdge:SF(N),hasMaxEdge:D7(N),minBound:k5(l),minOffset:0,maxBound:H7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},X7=(l,N,W,fe,Se,Be)=>{const qe=$F(N,Be,W,fe,Se);return k5(N)-k5(l)+qe},Vy=(l,N,W,fe)=>{const Se=fx(W),Be=X7(l,fe.getSpectrum(l),Se,fe.getTopEdge(l),fe.getBottomEdge(l),W),qe=il(N.element)/2;xr(N.element,"top",Be-qe+"px")},gA=I.none,hK=I.none,pK=FF(-1),VF=FF(1),UF={"top-left":I.none(),top:I.some(YG),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(KG),"bottom-left":I.none(),left:I.none()};var G7=Object.freeze({__proto__:null,setValueFrom:lK,setToMin:cK,setToMax:uK,findValueOfOffset:Y7,getValueFromEvent:dK,findPositionOfValue:X7,setPositionFromValue:Vy,onLeft:gA,onRight:hK,onUp:pK,onDown:VF,edgeActions:UF});const iO=(l,N)=>{sa(l,x5(),{value:N})},W2=(l,N)=>({x:l,y:N}),A5=(l,N,W)=>{const fe=pA(l,N,W.left),Se=Y7(l,N,W.top),Be=W2(fe,Se);return iO(l,Be),Be},jF=(l,N,W,fe,Se)=>{const Be=l>0?N7:z7,qe=N?fx(fe).x:Be(fx(fe).x,rO(fe),q2(fe),Ng(fe,Se)),ft=N?Be(fx(fe).y,oO(fe),ux(fe),Ng(fe,Se)):fx(fe).y;return iO(W,W2(qe,ft)),I.some(qe)},M5=(l,N)=>(W,fe,Se)=>jF(l,N,W,fe,Se).map(k),QF=(l,N)=>{const W=rO(N),fe=oO(N);iO(l,W2(W,fe))},HF=(l,N)=>{const W=q2(N),fe=ux(N);iO(l,W2(W,fe))},mK=l=>uA(l),gK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se.x,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=X7(l,fe.getSpectrum(l),Se.y,fe.getTopEdge(l),fe.getBottomEdge(l),W),ft=_s(N.element)/2,yt=il(N.element)/2;xr(N.element,"left",Be-ft+"px"),xr(N.element,"top",qe-yt+"px")},vK=M5(-1,!1),yK=M5(1,!1),bK=M5(-1,!0),ZF=M5(1,!0),qF={"top-left":I.some(B7),top:I.some($g),"top-right":I.some(XG),right:I.some(kF),"bottom-right":I.some(TF),bottom:I.some(JG),"bottom-left":I.some(eK),left:I.some(nK)};var xK=Object.freeze({__proto__:null,setValueFrom:A5,setToMin:QF,setToMax:HF,getValueFromEvent:mK,setPositionFromValue:gK,onLeft:vK,onRight:yK,onUp:bK,onDown:ZF,edgeActions:qF});const WF=[Ar("stepSize",1),Ar("speedMultiplier",10),Ar("onChange",v),Ar("onChoose",v),Ar("onInit",v),Ar("onDragStart",v),Ar("onDragEnd",v),Ar("snapToGrid",!1),Ar("rounded",!0),Yo("snapStart"),In("model",bn("mode",{x:[Ar("minX",0),Ar("maxX",100),gn("value",l=>wi(l.mode.minX)),pn("getInitialValue"),Sl("manager",mA)],y:[Ar("minY",0),Ar("maxY",100),gn("value",l=>wi(l.mode.minY)),pn("getInitialValue"),Sl("manager",G7)],xy:[Ar("minX",0),Ar("maxX",100),Ar("minY",0),Ar("maxY",100),gn("value",l=>wi({x:l.mode.minX,y:l.mode.minY})),pn("getInitialValue"),Sl("manager",xK)]})),Pd("sliderBehaviours",[ha,Ei]),gn("mouseIsDown",()=>wi(!1))],I0=Zh({name:"Slider",configFields:WF,partFields:QG,factory:(l,N,W,fe)=>{const Se=ko=>gm(ko,l,"thumb"),Be=ko=>gm(ko,l,"spectrum"),qe=ko=>Jo(ko,l,"left-edge"),ft=ko=>Jo(ko,l,"right-edge"),yt=ko=>Jo(ko,l,"top-edge"),Lt=ko=>Jo(ko,l,"bottom-edge"),Ht=l.model,fn=Ht.manager,Rn=(ko,_i)=>{fn.setPositionFromValue(ko,_i,l,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:yt,getBottomEdge:Lt,getSpectrum:Be})},Bn=(ko,_i)=>{Ht.value.set(_i);const Pi=Se(ko);Rn(ko,Pi)},er=(ko,_i)=>{Bn(ko,_i);const Pi=Se(ko);return l.onChange(ko,Pi,_i),I.some(!0)},cr=ko=>{fn.setToMin(ko,l)},Xr=ko=>{fn.setToMax(ko,l)},br=ko=>{const _i=()=>{Jo(ko,l,"thumb").each(Ao=>{const $i=Ht.value.get();l.onChoose(ko,Ao,$i)})},Pi=l.mouseIsDown.get();l.mouseIsDown.set(!1),Pi&&_i()},Fr=(ko,_i)=>{_i.stop(),l.mouseIsDown.set(!0),l.onDragStart(ko,Se(ko))},jr=(ko,_i)=>{_i.stop(),l.onDragEnd(ko,Se(ko)),br(ko)},Ro=ko=>{Jo(ko,l,"spectrum").map(ha.focusIn)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.sliderBehaviours,[ha.config({mode:"special",focusIn:Ro}),Ei.config({store:{mode:"manual",getValue:ko=>Ht.value.get(),setValue:Bn}}),Ad.config({channels:{[M3()]:{onReceive:br}}})]),events:Rl([Lo(x5(),(ko,_i)=>{er(ko,_i.event.value)}),wc((ko,_i)=>{const Pi=Ht.getInitialValue();Ht.value.set(Pi);const Ao=Se(ko);Rn(ko,Ao);const $i=Be(ko);l.onInit(ko,Ao,$i,Ht.value.get())}),Lo(Uh(),Fr),Lo(Gl(),jr),Lo(Nc(),(ko,_i)=>{Ro(ko),Fr(ko,_i)}),Lo(a0(),jr)]),apis:{resetToMin:cr,resetToMax:Xr,setValue:Bn,refresh:Rn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(l,N,W)=>{l.setValue(N,W)},resetToMin:(l,N)=>{l.resetToMin(N)},resetToMax:(l,N)=>{l.resetToMax(N)},refresh:(l,N)=>{l.refresh(N)}}}),aO=Li("rgb-hex-update"),YF=Li("slider-update"),K7=Li("palette-update"),_K=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"div",classes:[N("hue-slider-spectrum")],attributes:{role:"presentation"}}}),fe=I0.parts.thumb({dom:{tag:"div",classes:[N("hue-slider-thumb")],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:[N("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[W,fe],sliderBehaviours:ei([Ra.config({})]),onChange:(Se,Be,qe)=>{Cr(Se.element,"aria-valuenow",Math.floor(360-qe*3.6)),sa(Se,YF,{value:qe})}})},XF="form",wK=[Pd("formBehaviours",[Ei])],GF=l=>"",KF=l=>{const N=(()=>{const Be=[];return{field:(ft,yt)=>(Be.push(ft),HC(XF,GF(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:GF(Be)}));return Iy(XF,wK,Se,JF,W)},OK=(l,N)=>l.fold(()=>aa.error(N),aa.value),JF=(l,N)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.formBehaviours,[Ei.config({store:{mode:"manual",getValue:W=>{const fe=gk(W,l);return Ue(fe,(Se,Be)=>Se().bind(qe=>{const ft=Xs.getCurrent(qe);return OK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+a1(qe.element)))}).map(Ei.getValue))},setValue:(W,fe)=>{We(fe,(Se,Be)=>{Jo(W,l,Be).each(qe=>{Xs.getCurrent(qe).each(ft=>{Ei.setValue(ft,Se)})})})}}})]),apis:{getField:(W,fe)=>Jo(W,l,fe).bind(Xs.getCurrent)}}),Y2={getField:Tb((l,N,W)=>l.getField(N,W)),sketch:KF},Uy=Li("valid-input"),vA=Li("invalid-input"),J7=Li("validating-input"),yA="colorcustom.rgb.",e9={isEnabled:k,setEnabled:v,immediatelyShow:v,immediatelyHide:v},e$=(l,N,W,fe,Se,Be)=>{const qe=(cr,Xr)=>{const br=Xr.get();cr!==br.isEnabled()&&(br.setEnabled(cr),cr?br.immediatelyShow():br.immediatelyHide())},ft=(cr,Xr,br)=>Dv.config({invalidClass:N("invalid"),notify:{onValidate:Fr=>{sa(Fr,J7,{type:cr})},onValid:Fr=>{qe(!1,br),sa(Fr,Uy,{type:cr,value:Ei.getValue(Fr)})},onInvalid:Fr=>{qe(!0,br),sa(Fr,vA,{type:cr,value:Ei.getValue(Fr)})}},validator:{validate:Fr=>{const jr=Ei.getValue(Fr),Ro=Xr(jr)?aa.value(!0):aa.error(l("aria.input.invalid"));return Lh.pure(Ro)},validateOnLoad:!1}}),yt=(cr,Xr,br,Fr,jr)=>{const Ro=wi(e9),ko=l(yA+"range"),_i=Il.parts.label({dom:{tag:"label",attributes:{"aria-label":Fr}},components:[Po(br)]}),Pi=Il.parts.field({data:jr,factory:Ww,inputAttributes:{type:"text",...Xr==="hex"?{"aria-live":"polite"}:{}},inputClasses:[N("textfield")],inputBehaviours:ei([ft(Xr,cr,Ro),Rc.config({}),Vu.config({...Se({tooltipText:"",onSetup:hl=>{Ro.set({isEnabled:()=>Vu.isEnabled(hl),setEnabled:Ui=>Vu.setEnabled(hl,Ui),immediatelyShow:()=>Vu.immediateOpenClose(hl,!0),immediatelyHide:()=>Vu.immediateOpenClose(hl,!1)}),Vu.setEnabled(hl,!1)},onShow:(hl,Ui)=>{Vu.setComponents(hl,[{dom:{tag:"p",classes:[N("rgb-warning-note")]},components:[Po(l(Xr==="hex"?"colorcustom.rgb.invalidHex":"colorcustom.rgb.invalid"))]}])}})})]),onSetValue:hl=>{Dv.isInvalid(hl)&&Dv.run(hl).get(v)}}),Ao=Li("aria-invalid"),$i=ml(Be("invalid",I.some(Ao),"warning")),yi=ml({dom:{tag:"div",classes:[N("invalid-icon")]},components:[$i.asSpec()]}),Xi=[_i,Pi,yi.asSpec()],ks=Xr!=="hex"?[Il.parts["aria-descriptor"]({text:ko})]:[],Ic=Xi.concat(ks);return{dom:{tag:"div",attributes:{role:"presentation"},classes:[N("rgb-container")]},components:Ic}},Lt=(cr,Xr)=>{const br=i5(Xr);return Y2.getField(cr,"hex").each(Fr=>{Ra.isFocused(Fr)||Ei.setValue(cr,{hex:br.value})}),br},Ht=(cr,Xr)=>{const br=Xr.red,Fr=Xr.green,jr=Xr.blue;Ei.setValue(cr,{red:br,green:Fr,blue:jr})},fn=ml({dom:{tag:"div",classes:[N("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Rn=(cr,Xr)=>{fn.getOpt(cr).each(br=>{xr(br.element,"background-color","#"+Xr.value)})};return Qp({factory:()=>{const cr={red:wi(I.some(255)),green:wi(I.some(255)),blue:wi(I.some(255)),hex:wi(I.some("ffffff"))},Xr=(Ui,Ko)=>{const Oi=a5(Ko);Ht(Ui,Oi),Ro(Oi)},br=Ui=>cr[Ui].get(),Fr=(Ui,Ko)=>{cr[Ui].set(Ko)},jr=()=>br("red").bind(Ui=>br("green").bind(Ko=>br("blue").map(Oi=>eO(Ui,Ko,Oi,1)))),Ro=Ui=>{const Ko=Ui.red,Oi=Ui.green,La=Ui.blue;Fr("red",I.some(Ko)),Fr("green",I.some(Oi)),Fr("blue",I.some(La))},ko=(Ui,Ko)=>{const Oi=Ko.event;Oi.type!=="hex"?Fr(Oi.type,I.none()):fe(Ui)},_i=(Ui,Ko)=>{W(Ui);const Oi=pN(Ko);Fr("hex",I.some(Oi.value));const La=a5(Oi);Ht(Ui,La),Ro(La),sa(Ui,aO,{hex:Oi}),Rn(Ui,Oi)},Pi=(Ui,Ko,Oi)=>{const La=parseInt(Oi,10);Fr(Ko,I.some(La)),jr().each(_a=>{const fa=Lt(Ui,_a);sa(Ui,aO,{hex:fa}),Rn(Ui,fa)})},Ao=Ui=>Ui.type==="hex",$i=(Ui,Ko)=>{const Oi=Ko.event;Ao(Oi)?_i(Ui,Oi.value):Pi(Ui,Oi.type,Oi.value)},yi=Ui=>({label:l(yA+Ui+".label"),description:l(yA+Ui+".description")}),Xi=yi("red"),ks=yi("green"),Ic=yi("blue"),hl=yi("hex");return ws(Y2.sketch(Ui=>({dom:{tag:"form",classes:[N("rgb-form")],attributes:{"aria-label":l("aria.color.picker")}},components:[Ui.field("red",Il.sketch(yt(e7,"red",Xi.label,Xi.description,255))),Ui.field("green",Il.sketch(yt(e7,"green",ks.label,ks.description,255))),Ui.field("blue",Il.sketch(yt(e7,"blue",Ic.label,Ic.description,255))),Ui.field("hex",Il.sketch(yt(gN,"hex",hl.label,hl.description,"ffffff"))),fn.asSpec()],formBehaviours:ei([Dv.config({invalidClass:N("form-invalid")}),Ka("rgb-form-events",[Lo(Uy,$i),Lo(vA,ko),Lo(J7,ko)])])})),{apis:{updateHex:(Ui,Ko)=>{Ei.setValue(Ui,{hex:Ko.value}),Xr(Ui,Ko),Rn(Ui,Ko)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(cr,Xr,br)=>{cr.updateHex(Xr,br)}},extraApis:{}})},bA=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[N("sv-palette-spectrum")]}}),fe=I0.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[N("sv-palette-thumb")],innerHtml:``}}),Se=(Lt,Ht)=>{const{width:fn,height:Rn}=Lt,Bn=Lt.getContext("2d");if(Bn===null)return;Bn.fillStyle=Ht,Bn.fillRect(0,0,fn,Rn);const er=Bn.createLinearGradient(0,0,fn,0);er.addColorStop(0,"rgba(255,255,255,1)"),er.addColorStop(1,"rgba(255,255,255,0)"),Bn.fillStyle=er,Bn.fillRect(0,0,fn,Rn);const cr=Bn.createLinearGradient(0,0,0,Rn);cr.addColorStop(0,"rgba(0,0,0,0)"),cr.addColorStop(1,"rgba(0,0,0,1)"),Bn.fillStyle=cr,Bn.fillRect(0,0,fn,Rn)},Be=(Lt,Ht)=>{const fn=Lt.components()[0].element.dom,Rn=l5(Ht,100,100),Bn=ON(Rn);Se(fn,SN(Bn))},qe=(Lt,Ht)=>{const fn=c5(a5(Ht));I0.setValue(Lt,{x:fn.saturation,y:100-fn.value}),Cr(Lt.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",fn.saturation,fn.value]))};return Qp({factory:Lt=>{const Ht=x({x:0,y:0}),fn=(er,cr,Xr)=>{h(Xr)||Cr(er.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",Math.floor(Xr.x),Math.floor(100-Xr.y)])),sa(er,K7,{value:Xr})},Rn=(er,cr,Xr,br)=>{Se(Xr.element.dom,SN(kN))},Bn=ei([Xs.config({find:I.some}),Ra.config({})]);return I0.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":l(["Saturation {0}%, Brightness {1}%",0,0])},classes:[N("sv-palette")]},model:{mode:"xy",getInitialValue:Ht},rounded:!1,components:[W,fe],onChange:fn,onInit:Rn,sliderBehaviours:Bn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Lt,Ht,fn)=>{Be(Ht,fn)},setThumb:(Lt,Ht,fn)=>{qe(Ht,fn)}},extraApis:{}})},t$=(l,N,W,fe)=>{const Se=qe=>{const ft=e$(l,N,qe.onValidHex,qe.onInvalidHex,W,fe),yt=bA(l,N),Lt=Ao=>(100-Ao)/100*360,Ht=Ao=>100-Ao/360*100,fn={paletteRgba:wi(kN),paletteHue:wi(0)},Rn=ml(_K(l,N)),Bn=ml(yt.sketch({})),er=ml(ft.sketch({})),cr=(Ao,$i,yi)=>{Bn.getOpt(Ao).each(Xi=>{yt.setHue(Xi,yi)})},Xr=(Ao,$i)=>{er.getOpt(Ao).each(yi=>{ft.updateHex(yi,$i)})},br=(Ao,$i,yi)=>{Rn.getOpt(Ao).each(Xi=>{I0.setValue(Xi,Ht(yi))})},Fr=(Ao,$i)=>{Bn.getOpt(Ao).each(yi=>{yt.setThumb(yi,$i)})},jr=(Ao,$i)=>{const yi=a5(Ao);fn.paletteRgba.set(yi),fn.paletteHue.set($i)},Ro=(Ao,$i,yi,Xi)=>{jr($i,yi),q(Xi,ks=>{ks(Ao,$i,yi)})},ko=()=>{const Ao=[Xr];return($i,yi)=>{const Xi=yi.event.value,ks=fn.paletteHue.get(),Ic=l5(ks,Xi.x,100-Xi.y),hl=u5(Ic);Ro($i,hl,ks,Ao)}},_i=()=>{const Ao=[cr,Xr];return($i,yi)=>{const Xi=Lt(yi.event.value),ks=fn.paletteRgba.get(),Ic=c5(ks),hl=l5(Xi,Ic.saturation,Ic.value),Ui=u5(hl);Ro($i,Ui,Xi,Ao)}},Pi=()=>{const Ao=[cr,br,Fr];return($i,yi)=>{const Xi=yi.event.hex,ks=a7(Xi);Ro($i,Xi,ks.hue,Ao)}};return{uid:qe.uid,dom:qe.dom,components:[Bn.asSpec(),Rn.asSpec(),er.asSpec()],behaviours:ei([Ka("colour-picker-events",[Lo(aO,Pi()),Lo(K7,ko()),Lo(YF,_i())]),Xs.config({find:Ao=>er.getOpt(Ao)}),ha.config({mode:"acyclic"})])}};return Qp({name:"ColourPicker",configFields:[pn("dom"),Ar("onValidHex",v),Ar("onInvalidHex",v)],factory:Se})},P1={self:()=>Xs.config({find:I.some}),memento:l=>Xs.config({find:l.getOpt}),childAt:l=>Xs.config({find:N=>jn(N.element,l).bind(W=>N.getSystem().getByDom(W).toOptional())})},kK=Si([Ar("preprocess",R),Ar("postprocess",R)]),TK=(l,N)=>{const W=Xt("RepresentingConfigs.memento processors",kK,N);return Ei.config({store:{mode:"manual",getValue:fe=>{const Se=l.get(fe),Be=Ei.getValue(Se);return W.postprocess(Be)},setValue:(fe,Se)=>{const Be=W.preprocess(Se),qe=l.get(fe);Ei.setValue(qe,Be)}}})},X2=(l,N,W)=>Ei.config({store:{mode:"manual",...l.map(fe=>({initialValue:fe})).getOr({}),getValue:N,setValue:W}}),t9=(l,N,W)=>X2(l,fe=>N(fe.element),(fe,Se)=>W(fe.element,Se)),CK=l=>t9(l,Np,d0),xA=l=>Ei.config({store:{mode:"memory",initialValue:l}}),AK={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.rgb.invalid":"Numbers only, 0 to 255","colorcustom.rgb.invalidHex":"Hexadecimal only, 000000 to FFFFFF","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},_A=l=>N=>n(N)?l.translate(AK[N]):l.translate(N),MK=(l,N,W)=>{const fe=Lt=>"tox-"+Lt,Se=(Lt,Ht,fn=Lt,Rn=Lt)=>Bg(fn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Lt],attributes:{title:N.translate(Rn),"aria-live":"polite",...Ht.fold(()=>({}),Bn=>({id:Bn}))}},N.icons),Be=t$(_A(N),fe,N.tooltips.getConfig,Se),qe=Lt=>{sa(Lt,zy,{name:"hex-valid",value:!0})},ft=Lt=>{sa(Lt,zy,{name:"hex-valid",value:!1})},yt=ml(Be.sketch({dom:{tag:"div",classes:[fe("color-picker-container")],attributes:{role:"presentation"}},onValidHex:qe,onInvalidHex:ft}));return{dom:{tag:"div"},components:[yt.asSpec()],behaviours:ei([X2(W,Lt=>{const Ht=yt.get(Lt);return Xs.getCurrent(Ht).bind(Bn=>Ei.getValue(Bn).hex).map(Bn=>"#"+Sn(Bn,"#")).getOr("")},(Lt,Ht)=>{const fn=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Rn=I.from(fn.exec(Ht)).bind(cr=>De(cr,1)),Bn=yt.get(Lt);Xs.getCurrent(Bn).fold(()=>{console.log("Can not find form")},cr=>{Ei.setValue(cr,{hex:Rn.getOr("")}),Y2.getField(cr,"hex").each(Xr=>{Za(Xr,vg())})})}),P1.self()])}};var EK=tinymce.util.Tools.resolve("tinymce.Resource");const n9=l=>ht(l,"init"),n$=l=>{const N=ds(),W=ml({dom:{tag:l.tag}}),fe=ds(),Se=!n9(l)&&l.onFocus.isSome()?[Ra.config({onFocus:Be=>{l.onFocus.each(qe=>{qe(Be.element.dom)})}}),Rc.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:ei([Ka("custom-editor-events",[wc(Be=>{W.getOpt(Be).each(qe=>{(n9(l)?l.init(qe.element.dom):EK.load(l.scriptId,l.scriptUrl).then(ft=>ft(qe.element.dom,l.settings))).then(ft=>{fe.on(yt=>{ft.setValue(yt)}),fe.clear(),N.set(ft)})})})]),X2(I.none(),()=>N.get().fold(()=>fe.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{N.get().fold(()=>fe.set(qe),ft=>ft.setValue(qe))}),P1.self()].concat(Se)),components:[W.asSpec()]}};var hx=tinymce.util.Tools.resolve("tinymce.util.Tools");const PK=(l,N)=>{const W=hx.explode(N.getOption("images_file_types")),fe=Se=>te(W,Be=>bt(Se.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(l),fe)},r9=(l,N,W)=>{const fe=(Rn,Bn)=>{Bn.stop()},Se=Rn=>(Bn,er)=>{q(Rn,cr=>{cr(Bn,er)})},Be=(Rn,Bn)=>{var er;if(!he.isDisabled(Rn)){const cr=Bn.event.raw;ft(Rn,(er=cr.dataTransfer)===null||er===void 0?void 0:er.files)}},qe=(Rn,Bn)=>{const er=Bn.event.raw.target;ft(Rn,er.files)},ft=(Rn,Bn)=>{Bn&&(Ei.setValue(Rn,PK(Bn,N)),sa(Rn,xm,{name:l.name}))},yt=ml({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ei([Ka("input-file-events",[od(H1()),od(Lm())])])}),Lt=Rn=>({uid:Rn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ei([xA(W.getOr([])),P1.self(),he.config({}),us.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ka("dropzone-events",[Lo("dragenter",Se([fe,us.toggle])),Lo("dragleave",Se([fe,us.toggle])),Lo("dragover",fe),Lo("drop",Se([fe,Be])),Lo(s0(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Po(N.translate("Drop an image here"))]},Rh.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Po(N.translate("Browse for an image")),yt.asSpec()],action:Bn=>{yt.get(Bn).element.dom.click()},buttonBehaviours:ei([Rc.config({}),E1.button(N.isDisabled),Id()])})]}]}),Ht=l.label.map(Rn=>H2(Rn,N)),fn=Il.parts.field({factory:{sketch:Lt}});return g5(Ht,fn,["tox-form__group--stretched"],[])},RK=(l,N)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${l.columns}col`]},components:re(l.items,N.interpreter)}),r$=(l,N)=>{let W=null,fe=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null,fe=null)},throttle:(...qe)=>{fe=qe,S(W)&&(W=setTimeout(()=>{const ft=fe;W=null,fe=null,l.apply(null,ft)},N))}}},LK=(l,N)=>{let W=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null)},throttle:(...Be)=>{S(W)&&(W=setTimeout(()=>{W=null,l.apply(null,Be)},N))}}},o9=(l,N)=>{let W=null;const fe=()=>{S(W)||(clearTimeout(W),W=null)};return{cancel:fe,throttle:(...Be)=>{fe(),W=setTimeout(()=>{W=null,l.apply(null,Be)},N)}}},i9=Li("alloy-fake-before-tabstop"),wA=Li("alloy-fake-after-tabstop"),a9=l=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:l},behaviours:ei([Ra.config({ignore:!0}),Rc.config({})])}),o$=(l,N)=>({dom:{tag:"div",classes:["tox-navobj",...l.getOr([])]},components:[a9([i9]),N,a9([wA])],behaviours:ei([P1.childAt(1)])}),i$=(l,N)=>{sa(l,nm(),{raw:{which:9,shiftKey:N}})},IK=(l,N)=>{const W=N.element;rp(W,i9)?i$(l,!0):rp(W,wA)&&i$(l,!1)},E5=l=>f5(l,["."+i9,"."+wA].join(","),D),P5=Li("update-dialog"),a$=Li("update-title"),s9=Li("update-body"),s$=Li("update-footer"),l$=Li("body-send-message"),OA=Li("dialog-focus-shifted"),l9=va().browser,R5=l9.isSafari(),DK=l9.isFirefox(),c$=R5||DK,BK=l9.isChromium(),zK=({scrollTop:l,scrollHeight:N,clientHeight:W})=>Math.ceil(l)+W>=N,SA=(l,N)=>l.scrollTo(0,N==="bottom"?99999999:N),NK=(l,N)=>{const W=l.body;return I.from(!/^1))?W:l.documentElement)},u$=(l,N,W)=>{const fe=l.dom;I.from(fe.contentDocument).fold(W,Se=>{let Be=0;const qe=NK(Se,N).map(yt=>(Be=yt.scrollTop,yt)).forall(zK),ft=()=>{const yt=fe.contentWindow;a(yt)&&(qe?SA(yt,"bottom"):!qe&&c$&&Be!==0&&SA(yt,Be))};R5&&fe.addEventListener("load",ft,{once:!0}),Se.open(),Se.write(N),Se.close(),R5||ft()})},L5=Ot(c$,R5?500:200).map(l=>r$(u$,l)),c9=(l,N)=>{const W=wi(l.getOr(""));return{getValue:fe=>W.get(),setValue:(fe,Se)=>{if(W.get()!==Se){const Be=fe.element,qe=()=>Cr(Be,"srcdoc",Se);N?L5.fold(x(u$),ft=>ft.throttle)(Be,Se,qe):qe()}W.set(Se)}}},FK=(l,N,W)=>{const fe="tox-dialog__iframe",Se=l.transparent?[]:[`${fe}--opaque`],Be=l.border?["tox-navobj-bordered"]:[],qe={...l.label.map(fn=>({title:fn})).getOr({}),...W.map(fn=>({srcdoc:fn})).getOr({}),...l.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=c9(W,l.streamContent),yt=l.label.map(fn=>H2(fn,N)),Lt=fn=>o$(I.from(Be),{uid:fn.uid,dom:{tag:"iframe",attributes:qe,classes:[fe,...Se]},behaviours:ei([Rc.config({}),Ra.config({}),X2(W,ft.getValue,ft.setValue),Ad.config({channels:{[OA]:{onReceive:(Rn,Bn)=>{Bn.newFocus.each(er=>{Zr(Rn.element).each(cr=>{(_o(Rn.element,er)?uc:Zc)(cr,"tox-navobj-bordered-focus")})})}}}})])}),Ht=Il.parts.field({factory:{sketch:Lt}});return g5(yt,Ht,["tox-form__group--stretched"],[])},$K=l=>new Promise((N,W)=>{const fe=()=>{Be(),N(l)},Se=[ud(l,"load",fe),ud(l,"error",()=>{Be(),W("Unable to load data from image: "+l.dom.src)})],Be=()=>q(Se,qe=>qe.unbind());l.dom.complete&&fe()}),u9=(l,N,W,fe,Se)=>{const Be=W*Se,qe=fe*Se,ft=Math.max(0,l/2-Be/2),yt=Math.max(0,N/2-qe/2);return{left:ft.toString()+"px",top:yt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},VK=(l,N,W)=>{const fe=_s(l),Se=il(l);return Math.min(fe/N,Se/W,1)},f9=(l,N)=>{const W=wi(N.getOr({url:""})),fe=ml({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:N.map(yt=>({src:yt.url})).getOr({})}}),Se=ml({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[fe.asSpec()]}),Be=(yt,Lt)=>{const Ht={url:Lt.url};Lt.zoom.each(Rn=>Ht.zoom=Rn),Lt.cachedWidth.each(Rn=>Ht.cachedWidth=Rn),Lt.cachedHeight.each(Rn=>Ht.cachedHeight=Rn),W.set(Ht);const fn=()=>{const{cachedWidth:Rn,cachedHeight:Bn,zoom:er}=Ht;if(!y(Rn)&&!y(Bn)){if(y(er)){const Xr=VK(yt.element,Rn,Bn);Ht.zoom=Xr}const cr=u9(_s(yt.element),il(yt.element),Rn,Bn,Ht.zoom);Se.getOpt(yt).each(Xr=>{Oo(Xr.element,cr)})}};fe.getOpt(yt).each(Rn=>{const Bn=Rn.element;Lt.url!==Nr(Bn,"src")&&(Cr(Bn,"src",Lt.url),Zc(yt.element,"tox-imagepreview__loaded")),fn(),$K(Bn).then(er=>{yt.getSystem().isConnected()&&(uc(yt.element,"tox-imagepreview__loaded"),Ht.cachedWidth=er.dom.naturalWidth,Ht.cachedHeight=er.dom.naturalHeight,fn())})})},qe={};l.height.each(yt=>qe.height=yt);const ft=N.map(yt=>({url:yt.url,zoom:I.from(yt.zoom),cachedWidth:I.from(yt.cachedWidth),cachedHeight:I.from(yt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[Se.asSpec()],behaviours:ei([P1.self(),X2(ft,()=>W.get(),Be)])}},f$=(l,N,W)=>{const fe="tox-label",Se=l.align==="center"?[`${fe}--center`]:[],Be=l.align==="end"?[`${fe}--end`]:[],qe=ml({dom:{tag:"label",classes:[fe,...Se,...Be]},components:[Po(N.providers.translate(l.label))]}),ft=re(l.items,N.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:ei([P1.self(),Fa.config({}),CK(I.none()),ha.config({mode:"acyclic"}),Ka("label",[wc(yt=>{l.for.each(Lt=>{W(Lt).each(Ht=>{qe.getOpt(yt).each(fn=>{var Rn;const Bn=(Rn=Nr(Ht.element,"id"))!==null&&Rn!==void 0?Rn:Li("form-field");Cr(Ht.element,"id",Bn),Cr(fn.element,"for",Bn)})})})})])])}},d$=Li("toolbar.button.execute"),UK=l=>Sh((N,W)=>{r5(l,N)(fe=>{sa(N,d$,{buttonApi:fe}),l.onAction(fe)})}),G2=Li("common-button-display-events"),d9={[Bp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[Oh()]:["toolbar-button-events",G2],[zp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Nc()]:["focusing","alloy.base.behaviour",G2]},h9=l=>xr(l.element,"width",Di(l.element,"width")),p9=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:W},N),kA=(l,N)=>p9(l,N,[]),K2=(l,N)=>p9(l,N,[Fa.config({})]),m9=(l,N,W)=>({dom:{tag:"span",classes:[`${N}__select-label`]},components:[Po(W.translate(l))],behaviours:ei([Fa.config({})])}),Ug=Li("update-menu-text"),J2=Li("update-menu-icon"),g9=(l,N,W,fe)=>{const Se=wi(v),Be=l.text.map(cr=>ml(m9(cr,N,W.providers))),qe=l.icon.map(cr=>ml(K2(cr,W.providers.icons))),ft=(cr,Xr)=>{const br=Ei.getValue(cr);return Ra.focus(br),sa(br,"keydown",{raw:Xr.event.raw}),L0.close(br),I.some(!0)},yt=l.role.fold(()=>({}),cr=>({role:cr})),Lt=I.from(l.listRole).map(cr=>({listRole:cr})).getOr({}),Ht=l.ariaLabel.fold(()=>({}),cr=>({"aria-label":W.providers.translate(cr)})),fn=Bg("chevron-down",{tag:"div",classes:[`${N}__select-chevron`]},W.providers.icons),Rn=Li("common-button-display-events"),Bn="dropdown-events";return ml(L0.sketch({...l.uid?{uid:l.uid}:{},...yt,...Lt,dom:{tag:"button",classes:[N,`${N}--select`].concat(re(l.classes,cr=>`${N}--${cr}`)),attributes:{...Ht,...a(fe)?{"data-mce-name":fe}:{}}},components:Kw([qe.map(cr=>cr.asSpec()),Be.map(cr=>cr.asSpec()),I.some(fn)]),matchWidth:!0,useMinWidth:!0,onOpen:(cr,Xr,br)=>{l.searchable&&aG(br)},dropdownBehaviours:ei([...l.dropdownBehaviours,E1.button(()=>l.disabled||W.providers.isDisabled()),Id(),bS.config({}),Fa.config({}),...l.tooltip.map(cr=>Vu.config(W.providers.tooltips.getConfig({tooltipText:W.providers.translate(cr)}))).toArray(),Ka(Bn,[cp(l,Se),j2(l,Se)]),Ka(Rn,[wc((cr,Xr)=>l.listRole==="listbox"?v:h9(cr))]),Ka("menubutton-update-display-text",[Lo(Ug,(cr,Xr)=>{Be.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[Po(W.providers.translate(Xr.event.text))])})}),Lo(J2,(cr,Xr)=>{qe.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[K2(Xr.event.icon,W.providers.icons)])})})])]),eventOrder:ws(d9,{[Nc()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Oh()]:["toolbar-button-events",Vu.name(),Bn,Rn]}),sandboxBehaviours:ei([ha.config({mode:"special",onLeft:ft,onRight:ft}),Ka("dropdown-sandbox-events",[Lo(Dz,(cr,Xr)=>{rG(cr),Xr.stop()}),Lo(AP,(cr,Xr)=>{iA(cr,Xr),Xr.stop()})])]),lazySink:W.getSink,toggleClass:`${N}--active`,parts:{menu:{...Xk(!1,l.columns,l.presets),fakeFocus:l.searchable,...l.listRole==="listbox"?{}:{onHighlightItem:nF,onCollapseMenu:(cr,Xr,br)=>{ta.getHighlighted(br).each(Fr=>{nF(cr,br,Fr)})},onDehighlightItem:iG}}},getAnchorOverrides:()=>({maxHeightFunction:(cr,Xr)=>{hw()(cr,Xr-10)}}),fetch:cr=>Lh.nu(T(l.fetch,cr))})).asSpec()},jK=l=>n(l),h$=l=>l.type==="separator",p$=l=>ht(l,"getSubmenuItems"),QK={type:"separator"},m$=(l,N)=>{const W=se(l,(fe,Se)=>jK(Se)?Se===""?fe:Se==="|"?fe.length>0&&!h$(fe[fe.length-1])?fe.concat([QK]):fe:ht(N,Se.toLowerCase())?fe.concat([N[Se.toLowerCase()]]):fe:fe.concat([Se]),[]);return W.length>0&&h$(W[W.length-1])&&W.pop(),W},HK=(l,N)=>{const W=l.getSubmenuItems(),fe=TA(W,N),Se=ws(fe.menus,{[l.value]:fe.items}),Be=ws(fe.expansions,{[l.value]:l.value});return{item:l,menus:Se,expansions:Be}},ZK=l=>{const N=Ge(l,"value").getOrThunk(()=>Li("generated-menu-item"));return ws({value:N},l)},TA=(l,N)=>{const W=m$(n(l)?l.split(" "):l,N);return pe(W,(fe,Se)=>{if(p$(Se)){const Be=ZK(Se),qe=HK(Be,N);return{menus:ws(fe.menus,qe.menus),items:[qe.item,...fe.items],expansions:ws(fe.expansions,qe.expansions)}}else return{...fe,items:[Se,...fe.items]}},{menus:{},expansions:{},items:[]})},qK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-field",placeholder:N.placeholder})),WK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-results"})),OS=(l,N,W,fe)=>{const Se=Li("primary-menu"),Be=TA(l,W.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=qK(fe),ft=S7(Se,Be.items,N,W,fe.isHorizontalMenu,qe),yt=WK(fe),Lt=Ue(Be.menus,(fn,Rn)=>S7(Rn,fn,N,W,!1,yt)),Ht=ws(Lt,Sa(Se,ft));return I.from(B2.tieredData(Se,Ht,Be.expansions))},SS=l=>!ht(l,"items"),g$="data-value",v9=(l,N,W,fe,Se)=>re(W,Be=>SS(Be)?{type:"togglemenuitem",...Se?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===fe,onAction:()=>{Ei.setValue(l,Be.value),sa(l,xm,{name:N}),Ra.focus(l)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>v9(l,N,Be.items,fe,Se)}),y9=(l,N)=>Oe(l,W=>SS(W)?Ot(W.value===N,W):y9(W.items,N)),v$=(l,N,W)=>{const fe=te(l.items,Lt=>!SS(Lt)),Se=N.shared.providers,Be=W.bind(Lt=>y9(l.items,Lt)).orThunk(()=>Qe(l.items).filter(SS)),qe=l.label.map(Lt=>H2(Lt,Se)),ft=Il.parts.field({dom:{},factory:{sketch:Lt=>g9({uid:Lt.uid,text:Be.map(Ht=>Ht.text),icon:I.none(),tooltip:I.none(),role:Ot(!fe,"combobox"),...fe?{}:{listRole:"listbox"},ariaLabel:l.label,fetch:(Ht,fn)=>{const Rn=v9(Ht,l.name,l.items,Ei.getValue(Ht),fe);fn(OS(Rn,A1.CLOSE_ON_EXECUTE,N,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Rc.config({}),X2(Be.map(Ht=>Ht.value),Ht=>Nr(Ht.element,g$),(Ht,fn)=>{y9(l.items,fn).each(Rn=>{Cr(Ht.element,g$,Rn.value),sa(Ht,Ug,{text:Rn.text})})})]},"tox-listbox",N.shared)}}),yt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([qe.toArray(),[yt]]),fieldBehaviours:ei([he.config({disabled:x(!l.enabled),onDisabled:Lt=>{Il.getField(Lt).each(he.disable)},onEnabled:Lt=>{Il.getField(Lt).each(he.enable)}})])})},YK=(l,N)=>({dom:{tag:"div",classes:l.classes},components:re(l.items,N.shared.interpreter)}),XK=(l,N)=>{const W=re(l.options,Se=>({dom:{tag:"option",value:Se.value,innerHtml:Se.text}})),fe=l.data.map(Se=>Sa("initialValue",Se)).getOr({});return{uid:l.uid,dom:{tag:"select",classes:l.selectClasses,attributes:l.selectAttributes},components:W,behaviours:Rd(l.selectBehaviours,[Ra.config({}),Ei.config({store:{mode:"manual",getValue:Se=>F(Se.element),setValue:(Se,Be)=>{const qe=Qe(l.options);ce(l.options,yt=>yt.value===Be).isSome()?G(Se.element,Be):Se.element.dom.selectedIndex===-1&&Be===""&&qe.each(yt=>G(Se.element,yt.value))},...fe}})])}},GK=Qp({name:"HtmlSelect",configFields:[pn("options"),Pd("selectBehaviours",[Ra,Ei]),Ar("selectClasses",[]),Ar("selectAttributes",{}),Yo("data")],factory:XK}),KK=(l,N,W)=>{const fe=re(l.items,yt=>({text:N.translate(yt.text),value:yt.value})),Se=l.label.map(yt=>H2(yt,N)),Be=Il.parts.field({dom:{},...W.map(yt=>({data:yt})).getOr({}),selectAttributes:{size:l.size},options:fe,factory:GK,selectBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Rc.config({}),Ka("selectbox-change",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),qe=l.size>1?I.none():I.some(Bg("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},N.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ye([[Be],qe.toArray()])};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([Se.toArray(),[ft]]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Il.getField(yt).each(he.disable)},onEnabled:yt=>{Il.getField(yt).each(he.enable)}}),Id()])})},JK=x([Ar("field1Name","field1"),Ar("field2Name","field2"),Ch("onLockedChange"),h0(["lockClass"]),Ar("locked",!1),Km.field("coupledFieldBehaviours",[Xs,Ei])]),y$=(l,N,W)=>Jo(l,N,W).bind(Xs.getCurrent),b$=(l,N)=>mh({factory:Il,name:l,overrides:W=>({fieldBehaviours:ei([Ka("coupled-input-behaviour",[Lo(vg(),fe=>{y$(fe,W,N).each(Se=>{Jo(fe,W,"lock").each(Be=>{us.isOn(Be)&&W.onLockedChange(fe,Se,Be)})})})])])})}),eJ=x([b$("field1","field2"),b$("field2","field1"),mh({factory:Rh,schema:[pn("dom")],name:"lock",overrides:l=>({buttonBehaviours:ei([us.config({selected:l.locked,toggleClass:l.markers.lockClass,aria:{mode:"pressed"}})])})})]),x$=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Km.augment(l.coupledFieldBehaviours,[Xs.config({find:I.some}),Ei.config({store:{mode:"manual",getValue:Se=>{const Be=Kb(Se,l,["field1","field2"]);return{[l.field1Name]:Ei.getValue(Be.field1()),[l.field2Name]:Ei.getValue(Be.field2())}},setValue:(Se,Be)=>{const qe=Kb(Se,l,["field1","field2"]);pt(Be,l.field1Name)&&Ei.setValue(qe.field1(),Be[l.field1Name]),pt(Be,l.field2Name)&&Ei.setValue(qe.field2(),Be[l.field2Name])}}})]),apis:{getField1:Se=>Jo(Se,l,"field1"),getField2:Se=>Jo(Se,l,"field2"),getLock:Se=>Jo(Se,l,"lock")}}),jg=Zh({name:"FormCoupledInputs",configFields:JK(),partFields:eJ(),factory:x$,apis:{getField1:(l,N)=>l.getField1(N),getField2:(l,N)=>l.getField2(N),getLock:(l,N)=>l.getLock(N)}}),tJ=l=>{const N={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},W=Se=>Se in N?N[Se]:1;let fe=l.value.toFixed(W(l.unit));return fe.indexOf(".")!==-1&&(fe=fe.replace(/\.?0*$/,"")),fe+l.unit},b9=l=>{const W=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(l);if(W!==null){const fe=parseFloat(W[1]),Se=W[2];return aa.value({value:fe,unit:Se})}else return aa.error(l)},x9=(l,N)=>{const W={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},fe=Se=>ht(W,Se);return l.unit===N?I.some(l.value):fe(l.unit)&&fe(N)?W[l.unit]===W[N]?I.some(l.value):I.some(l.value/W[l.unit]*W[N]):I.none()},_9=l=>I.none(),nJ=(l,N)=>W=>x9(W,N).map(fe=>({value:fe*l,unit:N})),rJ=(l,N)=>{const W=b9(l).toOptional(),fe=b9(N).toOptional();return ln(W,fe,(Se,Be)=>x9(Se,Be.unit).map(qe=>Be.value/qe).map(qe=>nJ(qe,Be.unit)).getOr(_9)).getOr(_9)},_$=(l,N)=>{let W=_9;const fe=Li("ratio-event"),Se=Bn=>Bg(Bn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Bn]},N.icons),Be=l.label.getOr("Constrain proportions"),qe=N.translate(Be),ft=jg.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[Se("lock"),Se("unlock")],buttonBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Vu.config(N.tooltips.getConfig({tooltipText:qe}))])}),yt=Bn=>({dom:{tag:"div",classes:["tox-form__group"]},components:Bn}),Lt=Bn=>Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],inputBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Ka("size-input-events",[Lo(Dp(),(er,cr)=>{sa(er,fe,{isField1:Bn})}),Lo(s0(),(er,cr)=>{sa(er,xm,{name:l.name})})])]),selectOnFocus:!1}),Ht=Bn=>({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(Bn))]}),fn=jg.parts.field1(yt([Il.parts.label(Ht("Width")),Lt(!0)])),Rn=jg.parts.field2(yt([Il.parts.label(Ht("Height")),Lt(!1)]));return jg.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[fn,Rn,yt([Ht($b),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Bn,er,cr)=>{b9(Ei.getValue(Bn)).each(Xr=>{W(Xr).each(br=>{Ei.setValue(er,tJ(br))})})},coupledFieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.disable),jg.getField2(Bn).bind(Il.getField).each(he.disable),jg.getLock(Bn).each(he.disable)},onEnabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.enable),jg.getField2(Bn).bind(Il.getField).each(he.enable),jg.getLock(Bn).each(he.enable)}}),Id(),Ka("size-input-events2",[Lo(fe,(Bn,er)=>{const cr=er.event.isField1,Xr=cr?jg.getField1(Bn):jg.getField2(Bn),br=cr?jg.getField2(Bn):jg.getField1(Bn),Fr=Xr.map(Ei.getValue).getOr(""),jr=br.map(Ei.getValue).getOr("");W=rJ(Fr,jr)})])])})},w$=(l,N,W)=>{const fe=I0.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l.label))]}),Se=I0.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=I0.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:l.min,maxX:l.max,getInitialValue:x(W.getOrThunk(()=>(Math.abs(l.max)-Math.abs(l.min))/2))},components:[fe,Se,Be],sliderBehaviours:ei([P1.self(),Ra.config({})]),onChoose:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})},onChange:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})}})},O$=(l,N)=>{const W=ft=>({dom:{tag:"th",innerHtml:N.translate(ft)}}),fe=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:re(ft,W)}]}),Se=ft=>({dom:{tag:"td",innerHtml:N.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:re(ft,Se)}),qe=ft=>({dom:{tag:"tbody"},components:re(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[fe(l.header),qe(l.cells)],behaviours:ei([Rc.config({}),Ra.config({})])}},I5=(l,N)=>{const W=l.label.map(Bn=>H2(Bn,N)),fe=[he.config({disabled:()=>l.disabled||N.isDisabled()}),Id(),ha.config({mode:"execution",useEnter:l.multiline!==!0,useControlEnter:l.multiline===!0,execute:Bn=>(Za(Bn,v5),I.some(!0))}),Ka("textfield-change",[Lo(vg(),(Bn,er)=>{sa(Bn,xm,{name:l.name})}),Lo(l0(),(Bn,er)=>{sa(Bn,xm,{name:l.name})})]),Rc.config({})],Se=l.validation.map(Bn=>Dv.config({getRoot:er=>Zr(er.element),invalidClass:"tox-invalid",validator:{validate:er=>{const cr=Ei.getValue(er),Xr=Bn.validator(cr);return Lh.pure(Xr===!0?aa.value(cr):aa.error(Xr))},validateOnLoad:Bn.validateOnLoad}})).toArray(),Be=l.placeholder.fold(x({}),Bn=>({placeholder:N.translate(Bn)})),qe=l.inputMode.fold(x({}),Bn=>({inputmode:Bn})),ft={...Be,...qe,"data-mce-name":l.name},yt=Il.parts.field({tag:l.multiline===!0?"textarea":"input",...l.data.map(Bn=>({data:Bn})).getOr({}),inputAttributes:ft,inputClasses:[l.classname],inputBehaviours:ei(ye([fe,Se])),selectOnFocus:!1,factory:Ww}),Lt=l.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[yt]}:yt,fn=(l.flex?["tox-form__group--stretched"]:[]).concat(l.maximized?["tox-form-group--maximize"]:[]),Rn=[he.config({disabled:()=>l.disabled||N.isDisabled(),onDisabled:Bn=>{Il.getField(Bn).each(he.disable)},onEnabled:Bn=>{Il.getField(Bn).each(he.enable)}}),Id()];return g5(W,Lt,fn,Rn)},oJ=(l,N,W)=>I5({name:l.name,multiline:!1,label:l.label,inputMode:l.inputMode,placeholder:l.placeholder,flex:!1,disabled:!l.enabled,classname:"tox-textfield",validation:I.none(),maximized:l.maximized,data:W},N),iJ=(l,N,W)=>I5({name:l.name,multiline:!0,label:l.label,inputMode:I.none(),placeholder:l.placeholder,flex:!0,disabled:!l.enabled,classname:"tox-textarea",validation:I.none(),maximized:l.maximized,data:W},N),D5=(l,N)=>N.getAnimationRoot.fold(()=>l.element,W=>W(l)),px=l=>l.dimension.property,e_=(l,N)=>l.dimension.getDimension(N),CA=(l,N)=>{const W=D5(l,N);Oc(W,[N.shrinkingClass,N.growingClass])},w9=(l,N)=>{Zc(l.element,N.openClass),uc(l.element,N.closedClass),xr(l.element,px(N),"0px"),yl(l.element)},O9=(l,N)=>{Zc(l.element,N.closedClass),uc(l.element,N.openClass),zi(l.element,px(N))},S9=(l,N,W,fe)=>{W.setCollapsed(),xr(l.element,px(N),e_(N,l.element)),CA(l,N),w9(l,N),N.onStartShrink(l),N.onShrunk(l)},S$=(l,N,W,fe)=>{const Se=fe.getOrThunk(()=>e_(N,l.element));W.setCollapsed(),xr(l.element,px(N),Se),yl(l.element);const Be=D5(l,N);Zc(Be,N.growingClass),uc(Be,N.shrinkingClass),w9(l,N),N.onStartShrink(l)},k$=(l,N,W)=>{const fe=e_(N,l.element);(fe==="0px"?S9:S$)(l,N,W,I.some(fe))},T$=(l,N,W)=>{const fe=D5(l,N),Se=rp(fe,N.shrinkingClass),Be=e_(N,l.element);O9(l,N);const qe=e_(N,l.element);(Se?()=>{xr(l.element,px(N),Be),yl(l.element)}:()=>{w9(l,N)})(),Zc(fe,N.shrinkingClass),uc(fe,N.growingClass),O9(l,N),xr(l.element,px(N),qe),W.setExpanded(),N.onStartGrow(l)},C$=(l,N,W)=>{if(W.isExpanded()){zi(l.element,px(N));const fe=e_(N,l.element);xr(l.element,px(N),fe)}},aJ=(l,N,W)=>{W.isExpanded()||T$(l,N,W)},sJ=(l,N,W)=>{W.isExpanded()&&k$(l,N,W)},$a=(l,N,W)=>{W.isExpanded()&&S9(l,N,W)},B5=(l,N,W)=>W.isExpanded(),A$=(l,N,W)=>W.isCollapsed(),k9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.growingClass)===!0},T9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.shrinkingClass)===!0};var z5=Object.freeze({__proto__:null,refresh:C$,grow:aJ,shrink:sJ,immediateShrink:$a,hasGrown:B5,hasShrunk:A$,isGrowing:k9,isShrinking:T9,isTransitioning:(l,N,W)=>k9(l,N)||T9(l,N),toggleGrow:(l,N,W)=>{(W.isExpanded()?k$:T$)(l,N,W)},disableTransitions:CA,immediateGrow:(l,N,W)=>{W.isExpanded()||(O9(l,N),xr(l.element,px(N),e_(N,l.element)),CA(l,N),W.setExpanded(),N.onStartGrow(l),N.onGrown(l))}}),fJ=Object.freeze({__proto__:null,exhibit:(l,N,W)=>{const fe=N.expanded;return np(fe?{classes:[N.openClass],styles:{}}:{classes:[N.closedClass],styles:Sa(N.dimension.property,"0px")})},events:(l,N)=>Rl([ly(rm(),(W,fe)=>{fe.event.raw.propertyName===l.dimension.property&&(CA(W,l),N.isExpanded()&&zi(W.element,l.dimension.property),(N.isExpanded()?l.onGrown:l.onShrunk)(W))})])}),dJ=[pn("closedClass"),pn("openClass"),pn("shrinkingClass"),pn("growingClass"),Yo("getAnimationRoot"),Ss("onShrunk"),Ss("onStartShrink"),Ss("onGrown"),Ss("onStartGrow"),Ar("expanded",!1),In("dimension",bn("property",{width:[Sl("property","width"),Sl("getDimension",l=>_s(l)+"px")],height:[Sl("property","height"),Sl("getDimension",l=>il(l)+"px")]}))],M$=Object.freeze({__proto__:null,init:l=>{const N=wi(l.expanded),W=()=>"expanded: "+N.get();return Hd({isExpanded:()=>N.get()===!0,isCollapsed:()=>N.get()===!1,setCollapsed:T(N.set,!1),setExpanded:T(N.set,!0),readState:W})}});const Tp=id({fields:dJ,name:"sliding",active:fJ,apis:z5,state:M$}),C9=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setActive:N=>{const W=l.element;N?(uc(W,"tox-tbtn--enabled"),Cr(W,"aria-pressed",!0)):(Zc(W,"tox-tbtn--enabled"),Qt(W,"aria-pressed"))},isActive:()=>rp(l.element,"tox-tbtn--enabled"),setText:N=>{sa(l,Ug,{text:N})},setIcon:N=>sa(l,J2,{icon:N})}),N5=(l,N,W,fe,Se=!0,Be)=>g9({text:l.text,icon:l.icon,tooltip:l.tooltip,ariaLabel:l.tooltip,searchable:l.search.isSome(),role:fe,fetch:(qe,ft)=>{const yt={pattern:l.search.isSome()?sG(qe):""};l.fetch(Lt=>{ft(OS(Lt,A1.CLOSE_ON_EXECUTE,W,{isHorizontalMenu:!1,search:l.search}))},yt,C9(qe))},onSetup:l.onSetup,getApi:C9,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...Se?[Rc.config({})]:[]]},N,W.shared,Be),hJ=(l,N,W)=>{const fe=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),W.shared.getSink().each(yt=>{N().getOpt(yt).each(Lt=>{Md(Lt.element),sa(Lt,zy,{name:Be.name,value:Be.storage.get()})})})},Se=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(re(l,qe=>{const ft=qe.text.fold(()=>({}),yt=>({text:yt}));return{type:qe.type,active:!1,...ft,onAction:fe(qe),onSetup:Se(qe)}}))}},E$=l=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":l}},components:[Po(l)]}),P$=Li("leaf-label-event-id"),A9=({leaf:l,onLeafAction:N,visible:W,treeId:fe,selectedId:Se,backstage:Be})=>{const qe=l.menu.map(yt=>N5(yt,"tox-mbtn",Be,I.none(),W)),ft=[E$(l.title)];return qe.each(yt=>ft.push(yt)),Rh.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(W?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:yt=>{N(l.id),yt.getSystem().broadcastOn([`update-active-item-${fe}`],{value:l.id})},eventOrder:{[nm()]:[P$,"keying"]},buttonBehaviours:ei([...W?[Rc.config({})]:[],us.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Ad.config({channels:{[`update-active-item-${fe}`]:{onReceive:(yt,Lt)=>{(Lt.value===l.id?us.on:us.off)(yt)}}}}),Ka(P$,[wc((yt,Lt)=>{Se.each(Ht=>{(Ht===l.id?us.on:us.off)(yt)})}),Lo(nm(),(yt,Lt)=>{const Ht=Lt.event.raw.code==="ArrowLeft",fn=Lt.event.raw.code==="ArrowRight";Ht?(Fl(yt.element,".tox-tree--directory").each(Rn=>{yt.getSystem().getByDom(Rn).each(Bn=>{Fc(Rn,".tox-tree--directory__label").each(er=>{Bn.getSystem().getByDom(er).each(Ra.focus)})})}),Lt.stop()):fn&&Lt.stop()})])])})},pJ=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:W},N),mJ=(l,N)=>pJ(l,N,[]),R$=Li("directory-label-event-id"),gJ=({directory:l,visible:N,noChildren:W,backstage:fe})=>{const Se=l.menu.map(ft=>N5(ft,"tox-mbtn",fe,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[mJ("chevron-right",fe.shared.providers.icons)]},E$(l.title)];Se.each(ft=>{Be.push(ft)});const qe=ft=>{Fl(ft.element,".tox-tree--directory").each(yt=>{ft.getSystem().getByDom(yt).each(Lt=>{const Ht=!us.isOn(Lt);us.toggle(Lt),sa(ft,"expand-tree-node",{expanded:Ht,node:l.id})})})};return Rh.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(N?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[nm()]:[R$,"keying"]},buttonBehaviours:ei([...N?[Rc.config({})]:[],Ka(R$,[Lo(nm(),(ft,yt)=>{const Lt=yt.event.raw.code==="ArrowRight",Ht=yt.event.raw.code==="ArrowLeft";Lt&&W&&yt.stop(),(Lt||Ht)&&Fl(ft.element,".tox-tree--directory").each(fn=>{ft.getSystem().getByDom(fn).each(Rn=>{!us.isOn(Rn)&&Lt||us.isOn(Rn)&&Ht?(qe(ft),yt.stop()):Ht&&!us.isOn(Rn)&&(Fl(Rn.element,".tox-tree--directory").each(Bn=>{Fc(Bn,".tox-tree--directory__label").each(er=>{Rn.getSystem().getByDom(er).each(Ra.focus)})}),yt.stop())})})})])])})},vJ=({children:l,onLeafAction:N,visible:W,treeId:fe,expandedIds:Se,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:l.map(ft=>ft.type==="leaf"?A9({leaf:ft,selectedId:Be,onLeafAction:N,visible:W,treeId:fe,backstage:qe}):M9({directory:ft,expandedIds:Se,selectedId:Be,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:qe})),behaviours:ei([Tp.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:W}),Fa.config({})])}),L$=Li("directory-event-id"),M9=({directory:l,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:Se,expandedIds:Be,selectedId:qe})=>{const{children:ft}=l,yt=wi(Be),Lt=fn=>ft.map(Rn=>Rn.type==="leaf"?A9({leaf:Rn,selectedId:qe,onLeafAction:N,visible:fn,treeId:fe,backstage:Se}):M9({directory:Rn,expandedIds:yt.get(),selectedId:qe,onLeafAction:N,labelTabstopping:fn,treeId:fe,backstage:Se})),Ht=Be.includes(l.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[gJ({directory:l,visible:W,noChildren:l.children.length===0,backstage:Se}),vJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:N,visible:Ht,treeId:fe,backstage:Se})],behaviours:ei([Ka(L$,[wc((fn,Rn)=>{us.set(fn,Ht)}),Lo("expand-tree-node",(fn,Rn)=>{const{expanded:Bn,node:er}=Rn.event;yt.set(Bn?[...yt.get(),er]:yt.get().filter(cr=>cr!==er))})]),us.config({...l.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(fn,Rn)=>{const Bn=fn.components()[1],er=Lt(Rn);Rn?Tp.grow(Bn):Tp.shrink(Bn),Fa.set(Bn,er)}})])}},yJ=Li("tree-event-id"),bJ=(l,N)=>{const W=l.onLeafAction.getOr(v),fe=l.onToggleExpand.getOr(v),Se=l.defaultExpandedIds,Be=wi(Se),qe=wi(l.defaultSelectedId),ft=Li("tree-id"),yt=(Lt,Ht)=>l.items.map(fn=>fn.type==="leaf"?A9({leaf:fn,selectedId:Lt,onLeafAction:W,visible:!0,treeId:ft,backstage:N}):M9({directory:fn,selectedId:Lt,onLeafAction:W,expandedIds:Ht,labelTabstopping:!0,treeId:ft,backstage:N}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:yt(qe.get(),Be.get()),behaviours:ei([ha.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ka(yJ,[Lo("expand-tree-node",(Lt,Ht)=>{const{expanded:fn,node:Rn}=Ht.event;Be.set(fn?[...Be.get(),Rn]:Be.get().filter(Bn=>Bn!==Rn)),fe(Be.get(),{expanded:fn,node:Rn})})]),Ad.config({channels:{[`update-active-item-${ft}`]:{onReceive:(Lt,Ht)=>{qe.set(I.some(Ht.value)),Fa.set(Lt,yt(I.some(Ht.value),Be.get()))}}}}),Fa.config({})])}};var xJ=Object.freeze({__proto__:null,events:(l,N)=>{const fe=l.stream.streams.setup(l,N);return Rl([Lo(l.event,fe),xg(()=>N.cancel())].concat(l.cancelEvent.map(Se=>[Lo(Se,()=>N.cancel())]).getOr([])))}});const I$=l=>{const N=wi(null);return Hd({readState:()=>({timer:N.get()!==null?"set":"unset"}),setTimer:Be=>{N.set(Be)},cancel:()=>{const Be=N.get();Be!==null&&Be.cancel()}})};var _J=Object.freeze({__proto__:null,throttle:I$,init:l=>l.stream.streams.state(l)});const wJ=(l,N)=>{const W=l.stream,fe=o9(l.onStream,W.delay);return N.setTimer(fe),(Se,Be)=>{fe.throttle(Se,Be),W.stopEvent&&Be.stop()}};var OJ=[In("stream",bn("mode",{throttle:[pn("delay"),Ar("stopEvent",!0),Sl("streams",{setup:wJ,state:I$})]})),Ar("event","input"),Yo("cancelEvent"),Ch("onStream")];const E9=id({fields:OJ,name:"streaming",active:xJ,state:_J}),F5=(l,N,W)=>{const fe=Ei.getValue(W);Ei.setValue(N,fe),B$(N)},D$=(l,N)=>{const W=l.element,fe=F(W),Se=W.dom;Nr(W,"type")!=="number"&&N(Se,fe)},B$=l=>{D$(l,(N,W)=>N.setSelectionRange(W.length,W.length))},SJ=(l,N)=>{D$(l,(W,fe)=>W.setSelectionRange(N,fe.length))},kJ=(l,N,W)=>{if(l.selectsOver){const fe=Ei.getValue(N),Se=l.getDisplayText(fe),Be=Ei.getValue(W);return l.getDisplayText(Be).indexOf(Se)===0?I.some(()=>{F5(l,N,W),SJ(N,Se.length)}):I.none()}else return I.none()},P9=x("alloy.typeahead.itemexecute"),TJ=(l,N,W,fe)=>{const Se=(fn,Rn,Bn)=>{l.previewing.set(!1);const er=Ku.getCoupled(fn,"sandbox");if(Ys.isOpen(er))Xs.getCurrent(er).each(cr=>{ta.getHighlighted(cr).fold(()=>{Bn(cr)},()=>{zm(er,cr.element,"keydown",Rn)})});else{const cr=Xr=>{Xs.getCurrent(Xr).each(Bn)};hS(l,qe(fn),fn,er,fe,cr,Gu.HighlightMenuAndItem).get(v)}},Be=Rz(l),qe=fn=>Rn=>Rn.map(Bn=>{const er=ot(Bn.menus),cr=ve(er,br=>me(br.items,Fr=>Fr.type==="item"));return Ei.getState(fn).update(re(cr,br=>br.data)),Bn}),ft=fn=>Xs.getCurrent(fn),yt="typeaheadevents",Lt=[Ra.config({}),Ei.config({onSetValue:l.onSetValue,store:{mode:"dataset",getDataKey:fn=>F(fn.element),getFallbackEntry:fn=>({value:fn,meta:{}}),setValue:(fn,Rn)=>{G(fn.element,l.model.getDisplayText(Rn))},...l.initialData.map(fn=>Sa("initialValue",fn)).getOr({})}}),E9.config({stream:{mode:"throttle",delay:l.responseTime,stopEvent:!1},onStream:(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");if(Ra.isFocused(fn)&&F(fn.element).length>=l.minChars){const cr=ft(Bn).bind(br=>ta.getHighlighted(br).map(Ei.getValue));l.previewing.set(!0);const Xr=br=>{ft(Bn).each(Fr=>{cr.fold(()=>{l.model.selectsOver&&ta.highlightFirst(Fr)},jr=>{ta.highlightBy(Fr,Ro=>Ei.getValue(Ro).value===jr.value),ta.getHighlighted(Fr).orThunk(()=>(ta.highlightFirst(Fr),I.none()))})})};hS(l,qe(fn),fn,Bn,fe,Xr,Gu.HighlightJustMenu).get(v)}},cancelEvent:N_()}),ha.config({mode:"special",onDown:(fn,Rn)=>(Se(fn,Rn,ta.highlightFirst),I.some(!0)),onEscape:fn=>{const Rn=Ku.getCoupled(fn,"sandbox");return Ys.isOpen(Rn)?(Ys.close(Rn),I.some(!0)):I.none()},onUp:(fn,Rn)=>(Se(fn,Rn,ta.highlightLast),I.some(!0)),onEnter:fn=>{const Rn=Ku.getCoupled(fn,"sandbox"),Bn=Ys.isOpen(Rn);if(Bn&&!l.previewing.get())return ft(Rn).bind(er=>ta.getHighlighted(er)).map(er=>(sa(fn,P9(),{item:er}),!0));{const er=Ei.getValue(fn);return Za(fn,N_()),l.onExecute(Rn,fn,er),Bn&&Ys.close(Rn),I.some(!0)}}}),us.config({toggleClass:l.markers.openClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:fn=>w7(l,fn,{onOpen:()=>us.on(fn),onClose:()=>{l.lazyTypeaheadComp.get().each(Rn=>Qt(Rn.element,"aria-activedescendant")),us.off(fn)}})}}),Ka(yt,[wc(fn=>{l.lazyTypeaheadComp.set(I.some(fn))}),xg(fn=>{l.lazyTypeaheadComp.set(I.none())}),Sh(fn=>{const Rn=v;b7(l,qe(fn),fn,fe,Rn,Gu.HighlightMenuAndItem).get(v)}),Lo(P9(),(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");F5(l.model,fn,Rn.event.item),Za(fn,N_()),l.onItemExecute(fn,Bn,Rn.event.item,Ei.getValue(fn)),Ys.close(Bn),B$(fn)})].concat(l.dismissOnBlur?[Lo(kf(),fn=>{const Rn=Ku.getCoupled(fn,"sandbox");Wd(Rn.element).isNone()&&Ys.close(Rn)})]:[]))],Ht={[zp()]:[Ei.name(),E9.name(),yt],...l.eventOrder};return{uid:l.uid,dom:Iz(ws(l,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rd(l.typeaheadBehaviours,Lt)},eventOrder:Ht}},z$=x([Yo("lazySink"),pn("fetch"),Ar("minChars",5),Ar("responseTime",1e3),Ss("onOpen"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),Ar("layouts",I.none()),Ar("eventOrder",{}),Tt("model",{},[Ar("getDisplayText",l=>l.meta!==void 0&&l.meta.text!==void 0?l.meta.text:l.value),Ar("selectsOver",!0),Ar("populateFromBrowse",!0)]),Ss("onSetValue"),kd("onExecute"),Ss("onItemExecute"),Ar("inputClasses",[]),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("matchWidth",!0),Ar("useMinWidth",!1),Ar("dismissOnBlur",!0),h0(["openClass"]),Yo("initialData"),Yo("listRole"),Pd("typeaheadBehaviours",[Ra,Ei,E9,ha,us,Ku]),gn("lazyTypeaheadComp",()=>wi(I.none)),gn("previewing",()=>wi(!0))].concat(CP()).concat(oA())),CJ=x([Jm({schema:[Um()],name:"menu",overrides:l=>({fakeFocus:!0,onHighlightItem:(N,W,fe)=>{l.previewing.get()?l.lazyTypeaheadComp.get().each(Se=>{kJ(l.model,Se,fe).fold(()=>{l.model.selectsOver?(ta.dehighlight(W,fe),l.previewing.set(!0)):l.previewing.set(!1)},Be=>{Be(),l.previewing.set(!1)})}):l.lazyTypeaheadComp.get().each(Se=>{l.model.populateFromBrowse&&F5(l.model,Se,fe),Eo(fe.element,"id").each(Be=>Cr(Se.element,"aria-activedescendant",Be))})},onExecute:(N,W)=>l.lazyTypeaheadComp.get().map(fe=>(sa(fe,P9(),{item:W}),!0)),onHover:(N,W)=>{l.previewing.set(!1),l.lazyTypeaheadComp.get().each(fe=>{l.model.populateFromBrowse&&F5(l.model,fe,W)})}})})]),N$=Zh({name:"Typeahead",configFields:z$(),partFields:CJ(),factory:TJ}),R1=l=>({...l,toCached:()=>R1(l.toCached()),bindFuture:yt=>R1(l.bind(Lt=>Lt.fold(Ht=>Lh.pure(aa.error(Ht)),Ht=>yt(Ht)))),bindResult:yt=>R1(l.map(Lt=>Lt.bind(yt))),mapResult:yt=>R1(l.map(Lt=>Lt.map(yt))),mapError:yt=>R1(l.map(Lt=>Lt.mapError(yt))),foldResult:(yt,Lt)=>l.map(Ht=>Ht.fold(yt,Lt)),withTimeout:(yt,Lt)=>R1(Lh.nu(Ht=>{let fn=!1;const Rn=setTimeout(()=>{fn=!0,Ht(aa.error(Lt()))},yt);l.get(Bn=>{fn||(clearTimeout(Rn),Ht(Bn))})}))}),R9=l=>R1(Lh.nu(l)),L9=l=>R1(Lh.pure(aa.value(l))),EJ={nu:R9,wrap:R1,pure:L9,value:L9,error:l=>R1(Lh.pure(aa.error(l))),fromResult:l=>R1(Lh.pure(l)),fromFuture:l=>R1(l.map(aa.value)),fromPromise:l=>R9(N=>{l.then(W=>{N(aa.value(W))},W=>{N(aa.error(W))})})},$5=(l,N,W=[],fe,Se,Be,qe)=>{const ft=N.fold(()=>({}),Ht=>({action:Ht})),yt={buttonBehaviours:ei([E1.button(()=>!l.enabled||qe.isDisabled()),Id(),Rc.config({}),...Be.map(Ht=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(Ht)}))).toArray(),Ka("button press",[V_("click")])].concat(W)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},Lt=ws(yt,{dom:fe});return ws(Lt,{components:Se})},PJ=(l,N,W,fe=[],Se)=>{const Be=l.tooltip.map(Lt=>({"aria-label":W.translate(Lt)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":Se}},ft=l.icon.map(Lt=>kA(Lt,W.icons)),yt=Kw([ft]);return $5(l,N,fe,qe,yt,l.tooltip,W)},I9=l=>{switch(l){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},L1=(l,N,W,fe=[],Se=[])=>{const Be=W.translate(l.text),qe=l.icon.map(Bn=>kA(Bn,W.icons)),ft=[qe.getOrThunk(()=>Po(Be))],yt=l.buttonType.getOr(!l.primary&&!l.borderless?"secondary":"primary"),fn={tag:"button",classes:[...I9(yt),...qe.isSome()?["tox-button--icon"]:[],...l.borderless?["tox-button--naked"]:[],...Se],attributes:{"aria-label":Be,"data-mce-name":l.text}},Rn=l.icon.map(x(Be));return $5(l,N,fe,fn,ft,Rn,W)},V5=(l,N,W,fe=[],Se=[])=>{const Be=L1(l,I.some(N),W,fe,Se);return Rh.sketch(Be)},U5=(l,N)=>W=>{N==="custom"?sa(W,zy,{name:l,value:{}}):N==="submit"?Za(W,v5):N==="cancel"?Za(W,cx):console.error("Unknown button type: ",N)},RJ=(l,N)=>N==="menu",D9=(l,N)=>N==="custom"||N==="cancel"||N==="submit",LJ=(l,N)=>N==="togglebutton",B9=(l,N,W)=>{var fe,Se;const Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),qe=jr=>{sa(jr,zy,{name:l.name,value:{setIcon:Ro=>{Be.map(ko=>ko.getOpt(jr).each(_i=>{Fa.set(_i,[K2(Ro,N.icons)])}))}}})},ft=l.buttonType.getOr(l.primary?"primary":"secondary"),yt={...l,name:(fe=l.name)!==null&&fe!==void 0?fe:"",primary:ft==="primary",tooltip:l.tooltip,enabled:(Se=l.enabled)!==null&&Se!==void 0?Se:!1,borderless:!1},Lt=yt.tooltip.or(l.text).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Ht=I9(ft??"secondary"),fn=l.icon.isSome()&&l.text.isSome(),Rn={tag:"button",classes:[...Ht.concat(l.icon.isSome()?["tox-button--icon"]:[]),...l.active?["tox-button--enabled"]:[],...fn?["tox-button--icon-and-text"]:[]],attributes:{...Lt,...a(W)?{"data-mce-name":W}:{}}},Bn=[],er=N.translate(l.text.getOr("")),cr=Po(er),br=[...Kw([Be.map(jr=>jr.asSpec())]),...l.text.isSome()?[cr]:[]],Fr=$5(yt,I.some(qe),Bn,Rn,br,l.tooltip,N);return Rh.sketch(Fr)},j5=(l,N,W)=>{if(RJ(l,N)){const fe=()=>qe,Se=l,Be={...l,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(l.enabled),v),fetch:hJ(Se.items,fe,W)},qe=ml(N5(Be,"tox-tbtn",W,I.none(),!0,l.text.or(l.tooltip).getOrUndefined()));return qe.asSpec()}else if(D9(l,N)){const fe=U5(l.name,N),Se={...l,borderless:!1};return V5(Se,fe,W.shared.providers,[])}else{if(LJ(l,N))return B9(l,W.shared.providers,l.text.or(l.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",N),new Error("Unknown footer button type")}},z9=(l,N)=>{const W=U5(l.name,"custom");return fF(I.none(),Il.parts.field({factory:Rh,...L1(l,I.some(W),N,[xA(""),P1.self()])}))},IJ={type:"separator"},DJ=l=>({type:"menuitem",value:l.url,text:l.title,meta:{attach:l.attach},onAction:v}),AA=(l,N)=>({type:"menuitem",value:N,text:l,meta:{attach:void 0},onAction:v}),BJ=l=>re(l,DJ),zJ=(l,N)=>me(N,W=>W.type===l),MA=(l,N)=>BJ(zJ(l,N)),NJ=l=>MA("header",l.targets),FJ=l=>MA("anchor",l.targets),$$=l=>I.from(l.anchorTop).map(N=>AA("",N)).toArray(),V$=l=>I.from(l.anchorBottom).map(N=>AA("",N)).toArray(),$J=l=>re(l,N=>AA(N,N)),VJ=l=>se(l,(N,W)=>N.length===0||W.length===0?N.concat(W):N.concat(IJ,W),[]),N9=(l,N)=>{const W=l.toLowerCase();return me(N,fe=>{var Se;const Be=fe.meta!==void 0&&fe.meta.text!==void 0?fe.meta.text:fe.text,qe=(Se=fe.value)!==null&&Se!==void 0?Se:"";return xt(Be.toLowerCase(),W)||xt(qe.toLowerCase(),W)})},UJ=(l,N,W)=>{var fe,Se;const Be=Ei.getValue(N),qe=(Se=(fe=Be==null?void 0:Be.meta)===null||fe===void 0?void 0:fe.text)!==null&&Se!==void 0?Se:Be.value;return W.getLinkInformation().fold(()=>[],yt=>{const Lt=N9(qe,$J(W.getHistory(l)));return l==="file"?VJ([Lt,N9(qe,NJ(yt)),N9(qe,ye([$$(yt),FJ(yt),V$(yt)]))]):Lt})},F9=Li("aria-invalid"),Bv=(l,N,W,fe)=>{const Se=N.shared.providers,Be=Fr=>{const jr=Ei.getValue(Fr);W.addToHistory(jr.value,l.filetype)},qe={...fe.map(Fr=>({initialData:Fr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":F9,type:"url"},minChars:0,responseTime:0,fetch:Fr=>{const jr=UJ(l.filetype,Fr,W),Ro=OS(jr,A1.BUBBLE_TO_SANDBOX,N,{isHorizontalMenu:!1,search:I.none()});return Lh.pure(Ro)},getHotspot:Fr=>er.getOpt(Fr),onSetValue:(Fr,jr)=>{Fr.hasConfigured(Dv)&&Dv.run(Fr).get(v)},typeaheadBehaviours:ei([...W.getValidationHandler().map(Fr=>Dv.config({getRoot:jr=>Zr(jr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(jr,Ro)=>{Ht.getOpt(jr).each(ko=>{Cr(ko.element,"title",Se.translate(Ro))})}},validator:{validate:jr=>{const Ro=Ei.getValue(jr);return EJ.nu(ko=>{Fr({type:l.filetype,url:Ro.value},_i=>{if(_i.status==="invalid"){const Pi=aa.error(_i.message);ko(Pi)}else{const Pi=aa.value(_i.message);ko(Pi)}})})},validateOnLoad:!1}})).toArray(),he.config({disabled:()=>!l.enabled||Se.isDisabled()}),Rc.config({}),Ka("urlinput-events",[Lo(vg(),Fr=>{const jr=F(Fr.element),Ro=jr.trim();Ro!==jr&&G(Fr.element,Ro),l.filetype==="file"&&sa(Fr,xm,{name:l.name})}),Lo(s0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)}),Lo(l0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)})])]),eventOrder:{[vg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Fr=>Fr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:N.shared.getSink,parts:{menu:Xk(!1,1,"normal")},onExecute:(Fr,jr,Ro)=>{sa(jr,v5,{})},onItemExecute:(Fr,jr,Ro,ko)=>{Be(Fr),sa(Fr,xm,{name:l.name})}},ft=Il.parts.field({...qe,factory:N$}),yt=l.label.map(Fr=>H2(Fr,Se)),Ht=ml(((Fr,jr,Ro=Fr,ko=Fr)=>Bg(Ro,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Fr],attributes:{title:Se.translate(ko),"aria-live":"polite",...jr.fold(()=>({}),_i=>({id:_i}))}},Se.icons))("invalid",I.some(F9),"warning")),fn=ml({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ht.asSpec()]}),Rn=W.getUrlPicker(l.filetype),Bn=Li("browser.url.event"),er=ml({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,fn.asSpec()],behaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled()})])}),cr=ml(V5({name:l.name,icon:I.some("browse"),text:l.picker_text.or(l.label).getOr(""),enabled:l.enabled,primary:!1,buttonType:I.none(),borderless:!0},Fr=>Za(Fr,Bn),Se,[],["tox-browse-url"])),Xr=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ye([[er.asSpec()],Rn.map(()=>cr.asSpec()).toArray()])}),br=Fr=>{Xs.getCurrent(Fr).each(jr=>{const Ro=Ei.getValue(jr),ko={fieldname:l.name,...Ro};Rn.each(_i=>{_i(ko).get(Pi=>{Ei.setValue(jr,Pi),sa(Fr,xm,{name:l.name})})})})};return Il.sketch({dom:kG(),components:yt.toArray().concat([Xr()]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled(),onDisabled:Fr=>{Il.getField(Fr).each(he.disable),cr.getOpt(Fr).each(he.disable)},onEnabled:Fr=>{Il.getField(Fr).each(he.enable),cr.getOpt(Fr).each(he.enable)}}),Id(),Ka("url-input-events",[Lo(Bn,br)])])})},$9=(l,N)=>{const W=yP(l.icon,N.icons);return Iv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${l.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:l.url?void 0:W},components:l.url?[Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:W,attributes:{title:N.translate(l.iconTooltip)}},action:fe=>sa(fe,zy,{name:"alert-banner",value:l.url}),buttonBehaviours:ei([E6()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:N.translate(l.text)}}]})},jJ=(l,N)=>{l.dom.checked=N},QJ=l=>l.dom.checked,HJ=(l,N,W)=>{const fe=yt=>(yt.element.dom.click(),I.some(!0)),Se=Il.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:ei([P1.self(),he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Zr(yt.element).each(Lt=>uc(Lt,"tox-checkbox--disabled"))},onEnabled:yt=>{Zr(yt.element).each(Lt=>Zc(Lt,"tox-checkbox--disabled"))}}),Rc.config({}),Ra.config({}),t9(W,QJ,jJ),ha.config({mode:"special",onEnter:fe,onSpace:fe,stopSpaceKeyup:!0}),Ka("checkbox-events",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),Be=Il.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Po(N.translate(l.label))],behaviours:ei([bS.config({})])}),qe=yt=>Bg(yt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+yt]},N.icons),ft=ml({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Il.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[Se,ft.asSpec(),Be],fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id()])})},ZJ=(l,N)=>{const W=["tox-form__group",...l.stretched?["tox-form__group--stretched"]:[]],fe=Ka("htmlpanel",[wc(Se=>{l.onInit(Se.element.dom)})]);return l.presets==="presentation"?Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html},containerBehaviours:ei([Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Se=>{qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element)).each(Be=>{Eo(Be,"data-mce-tooltip").each(qe=>{Vu.setComponents(Se,N.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:Se=>({type:"node",node:qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element).filter(Be=>Eo(Be,"data-mce-tooltip").isSome())),root:Se.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),fe])}):Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html,attributes:{role:"document"}},containerBehaviours:ei([Rc.config({}),Ra.config({}),fe])})},Dd=l=>(N,W,fe,Se,Be)=>Ge(W,"name").fold(()=>l(W,Se,I.none(),Be),qe=>N.field(qe,l(W,Se,Ge(fe,qe),Be))),U$=l=>(N,W,fe,Se,Be)=>{const qe=ws(W,{source:"dynamic"});return Dd(l)(N,qe,fe,Se,Be)},j$={bar:Dd((l,N)=>xG(l,N.shared)),collection:Dd((l,N,W)=>yS(l,N.shared.providers,W)),alertbanner:Dd((l,N)=>$9(l,N.shared.providers)),input:Dd((l,N,W)=>oJ(l,N.shared.providers,W)),textarea:Dd((l,N,W)=>iJ(l,N.shared.providers,W)),label:Dd((l,N,W,fe)=>f$(l,N.shared,fe)),iframe:U$((l,N,W)=>FK(l,N.shared.providers,W)),button:Dd((l,N)=>z9(l,N.shared.providers)),checkbox:Dd((l,N,W)=>HJ(l,N.shared.providers,W)),colorinput:Dd((l,N,W)=>IG(l,N.shared,N.colorinput,W)),colorpicker:Dd((l,N,W)=>MK(l,N.shared.providers,W)),dropzone:Dd((l,N,W)=>r9(l,N.shared.providers,W)),grid:Dd((l,N)=>RK(l,N.shared)),listbox:Dd((l,N,W)=>v$(l,N,W)),selectbox:Dd((l,N,W)=>KK(l,N.shared.providers,W)),sizeinput:Dd((l,N)=>_$(l,N.shared.providers)),slider:Dd((l,N,W)=>w$(l,N.shared.providers,W)),urlinput:Dd((l,N,W)=>Bv(l,N,N.urlinput,W)),customeditor:Dd(n$),htmlpanel:Dd((l,N)=>ZJ(l,N.shared.providers)),imagepreview:Dd((l,N,W)=>f9(l,W)),table:Dd((l,N)=>O$(l,N.shared.providers)),tree:Dd((l,N)=>bJ(l,N)),panel:Dd((l,N)=>YK(l,N))},$fe={field:(l,N)=>N,record:x([])},qJ=(l,N,W,fe,Se)=>{const Be=ws(fe,{shared:{interpreter:qe=>vh(l,qe,W,Be,Se)}});return vh(l,N,W,Be,Se)},vh=(l,N,W,fe,Se)=>Ge(j$,N.type).fold(()=>(console.error(`Unknown factory type "${N.type}", defaulting to container: `,N),N),Be=>Be(l,N,W,fe,Se)),EA=(l,N,W,fe)=>vh($fe,l,N,W,fe),t_="layout-inset",kS=l=>l.x,Q$=(l,N)=>l.x+l.width/2-N.width/2,V9=(l,N)=>l.x+l.width-N.width,U9=l=>l.y,j9=(l,N)=>l.y+l.height-N.height,H$=(l,N)=>l.y+l.height/2-N.height/2,PA=(l,N,W)=>xl(V9(l,N),j9(l,N),W.insetSouthwest(),ni(),"southwest",mc(l,{right:0,bottom:3}),t_),RA=(l,N,W)=>xl(kS(l),j9(l,N),W.insetSoutheast(),fu(),"southeast",mc(l,{left:1,bottom:3}),t_),Q5=(l,N,W)=>xl(V9(l,N),U9(l),W.insetNorthwest(),_l(),"northwest",mc(l,{right:0,top:2}),t_),TS=(l,N,W)=>xl(kS(l),U9(l),W.insetNortheast(),Us(),"northeast",mc(l,{left:1,top:2}),t_),ng=(l,N,W)=>xl(Q$(l,N),U9(l),W.insetNorth(),Wc(),"north",mc(l,{top:2}),t_),CS=(l,N,W)=>xl(Q$(l,N),j9(l,N),W.insetSouth(),Yc(),"south",mc(l,{bottom:3}),t_),Q9=(l,N,W)=>xl(V9(l,N),H$(l,N),W.insetEast(),Ru(),"east",mc(l,{right:0}),t_),Z$=(l,N,W)=>xl(kS(l),H$(l,N),W.insetWest(),$l(),"west",mc(l,{left:1}),t_),q$=l=>{switch(l){case"north":return ng;case"northeast":return TS;case"northwest":return Q5;case"south":return CS;case"southeast":return RA;case"southwest":return PA;case"east":return Q9;case"west":return Z$}},W$=(l,N,W,fe,Se)=>cw(fe).map(q$).getOr(ng)(l,N,W,fe,Se),WJ=l=>{switch(l){case"north":return CS;case"northeast":return RA;case"northwest":return PA;case"south":return ng;case"southeast":return TS;case"southwest":return Q5;case"east":return Z$;case"west":return Q9}},Y$=(l,N,W,fe,Se)=>cw(fe).map(WJ).getOr(ng)(l,N,W,fe,Se),LA={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},Vfe=(l,N,W)=>{const Se={maxHeightFunction:v1()},Be=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),bubble:wp(12,12,LA),layouts:{onRtl:()=>[TS],onLtr:()=>[Q5]},overrides:Se}),qe=()=>({type:"hotspot",hotspot:N(),bubble:wp(-12,12,LA),layouts:{onRtl:()=>[Lu,$c,Iu],onLtr:()=>[$c,Lu,Iu]},overrides:Se});return()=>W()?Be():qe()},YJ=(l,N,W,fe)=>{const Be={maxHeightFunction:v1()},qe=()=>({type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(12,12,LA),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]},overrides:Be}),ft=()=>l?{type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(0,-nf(N()),LA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be}:{type:"hotspot",hotspot:W(),bubble:wp(0,0,LA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be};return()=>fe()?qe():ft()},XJ=(l,N,W)=>{const fe=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]}}),Se=()=>({type:"hotspot",hotspot:N(),layouts:{onRtl:()=>[Iu],onLtr:()=>[Iu]}});return()=>W()?fe():Se()},GJ=(l,N)=>()=>({type:"selection",root:N(),getSelection:()=>{const W=l.selection.getRng(),fe=l.model.table.getSelectedCells();if(fe.length>1){const Se=fe[0],Be=fe[fe.length-1],qe={firstCell:Nt.fromDom(Se),lastCell:Nt.fromDom(Be)};return I.some(qe)}return I.some(Cy.range(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}}),X$=l=>N=>({type:"node",root:l(),node:N}),H9=(l,N,W,fe)=>{const Se=tS(l),Be=()=>Nt.fromDom(l.getBody()),qe=()=>Nt.fromDom(l.getContentAreaContainer()),ft=()=>Se||!fe();return{inlineDialog:Vfe(qe,N,ft),inlineBottomDialog:YJ(l.inline,qe,W,ft),banner:XJ(qe,N,ft),cursor:GJ(l,Be),node:X$(Be)}},KJ=l=>(N,W)=>{QN(l)(N,W)},JJ=l=>()=>DN(l),G$=l=>N=>nA(l,N),eee=l=>N=>IN(l,N),tee=l=>({colorPicker:KJ(l),hasCustomColors:JJ(l),getColors:G$(l),getColorCols:eee(l)}),nee=l=>()=>sz(l),ree=l=>({isDraggableModal:nee(l)}),Z9=l=>{const N=wi($k(l)?"bottom":"top");return{isPositionedAtTop:()=>N.get()==="top",getDockingMode:N.get,setDockingMode:N.set}},q9=l=>pt(l,"items"),K$=l=>pt(l,"format"),J$=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],oee=l=>ht(l,"items"),iee=l=>ht(l,"block"),eV=l=>ht(l,"inline"),aee=l=>ht(l,"selector"),H5=l=>se(l,(N,W)=>{if(oee(W)){const fe=H5(W.items);return{customFormats:N.customFormats.concat(fe.customFormats),formats:N.formats.concat([{title:W.title,items:fe.formats}])}}else if(eV(W)||iee(W)||aee(W)){const Se=`custom-${n(W.name)?W.name:W.title.toLowerCase()}`;return{customFormats:N.customFormats.concat([{name:Se,format:W}]),formats:N.formats.concat([{title:W.title,format:Se,icon:W.icon}])}}else return{...N,formats:N.formats.concat(W)}},{customFormats:[],formats:[]}),see=(l,N)=>{const W=H5(N),fe=Se=>{q(Se,Be=>{l.formatter.has(Be.name)||l.formatter.register(Be.name,Be.format)})};return l.formatter?fe(W.customFormats):l.on("init",()=>{fe(W.customFormats)}),W.formats},Z5=l=>XB(l).map(N=>{const W=see(l,N);return GB(l)?J$.concat(W):W}).getOr(J$),lee=l=>{const N=ke(l);return N.length===1&&X(N,"title")},IA=(l,N,W)=>({...l,type:"formatter",isSelected:N(l.format),getStylePreview:W(l.format)}),AS=(l,N,W,fe)=>{const Se=yt=>IA(yt,W,fe),Be=yt=>{const Lt=ft(yt.items);return{...yt,type:"submenu",getStyleItems:x(Lt)}},qe=yt=>{const Lt=n(yt.name)?yt.name:Li(yt.title),Ht=`custom-${Lt}`,fn={...yt,type:"formatter",format:Ht,isSelected:W(Ht),getStylePreview:fe(Ht)};return l.formatter.register(Lt,fn),fn},ft=yt=>re(yt,Lt=>q9(Lt)?Be(Lt):K$(Lt)?Se(Lt):lee(Lt)?{...Lt,type:"separator"}:qe(Lt));return ft(N)},tV=l=>{const N=ft=>()=>l.formatter.match(ft),W=ft=>()=>{const yt=l.formatter.get(ft);return yt!==void 0?I.some({tag:yt.length>0&&(yt[0].inline||yt[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(ft))}):I.none()},fe=wi([]),Se=wi([]),Be=wi(!1);return l.on("PreInit",ft=>{const yt=Z5(l),Lt=AS(l,yt,N,W);fe.set(Lt)}),l.on("addStyleModifications",ft=>{const yt=AS(l,ft.items,N,W);Se.set(yt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:fe.get(),yt=Se.get();return ft.concat(yt)}}},cee=l=>{let fe=0;const Se=()=>fe>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[Po(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>Se()?60:300,delayForHide:x(300),exclusive:!0,lazySink:l,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(yt,Lt)=>{fe++,ft.onShow&&ft.onShow(yt,Lt)},onHide:(yt,Lt)=>{fe--,ft.onHide&&ft.onHide(yt,Lt)},onSetup:ft.onSetup}),getComponents:Be}},nV=l=>a(l)&&l.nodeType===1,rV=hx.trim,W9=l=>N=>!!(nV(N)&&(N.contentEditable===l||N.getAttribute("data-mce-contenteditable")===l)),uee=W9("true"),Y9=W9("false"),q5=(l,N,W,fe,Se)=>({type:l,title:N,url:W,level:fe,attach:Se}),fee=l=>{let N=l;for(;N=N.parentNode;){const W=N.contentEditable;if(W&&W!=="inherit")return uee(N)}return!1},dee=(l,N)=>re(Yd(Nt.fromDom(N),l),W=>W.dom),sO=l=>l.innerText||l.textContent,oV=l=>l.id?l.id:Li("h"),hee=l=>l&&l.nodeName==="A"&&(l.id||l.name)!==void 0,iV=l=>hee(l)&&BA(l),DA=l=>l&&/^(H[1-6])$/.test(l.nodeName),BA=l=>fee(l)&&!Y9(l),pee=l=>DA(l)&&BA(l),mee=l=>DA(l)?parseInt(l.nodeName.substr(1),10):0,gee=l=>{var N;const W=oV(l),fe=()=>{l.id=W};return q5("header",(N=sO(l))!==null&&N!==void 0?N:"","#"+W,mee(l),fe)},X9=l=>{const N=l.id||l.name,W=sO(l);return q5("anchor",W||"#"+N,"#"+N,0,v)},vee=l=>re(me(l,pee),gee),yee=l=>re(me(l,iV),X9),bee=l=>dee("h1,h2,h3,h4,h5,h6,a:not([href])",l),xee=l=>rV(l.title).length>0,_ee={find:l=>{const N=bee(l);return me(vee(N).concat(yee(N)),xee)}},zA="tinymce-url-history",G9=5,aV=l=>n(l)&&/^https?/.test(l),W5=l=>i(l)&&l.length<=G9&&_e(l,aV),sV=l=>u(l)&&tt(l,N=>!W5(N)).isNone(),lV=()=>{const l=nO.getItem(zA);if(l===null)return{};let N;try{N=JSON.parse(l)}catch(W){if(W instanceof SyntaxError)return console.log("Local storage "+zA+" was not valid JSON",W),{};throw W}return sV(N)?N:(console.log("Local storage "+zA+" was not valid format",N),{})},K9=l=>{if(!sV(l))throw new Error(`Bad format for history: -`+JSON.stringify(l));nO.setItem(zA,JSON.stringify(l))},cV=l=>{const N=lV();return Ge(N,l).getOr([])},wee=(l,N)=>{if(!aV(l))return;const W=lV(),fe=Ge(W,N).getOr([]),Se=me(fe,Be=>Be!==l);W[N]=[l].concat(Se).slice(0,G9),K9(W)},uV=l=>!!l,Oee=l=>Ue(hx.makeMap(l,/[, ]/),uV),J9=l=>I.from(oz(l)),See=l=>{const N=I.from(QE(l)).filter(uV).map(Oee);return J9(l).fold(D,W=>N.fold(k,fe=>ke(fe).length>0?fe:!1))},kee=(l,N)=>{const W=See(l);return w(W)?W?J9(l):I.none():W[N]?J9(l):I.none()},Tee=(l,N)=>kee(l,N).map(W=>fe=>Lh.nu(Se=>{const Be=(ft,yt)=>{if(!n(ft))throw new Error("Expected value to be string");if(yt!==void 0&&!u(yt))throw new Error("Expected meta to be a object");Se({value:ft,meta:yt})},qe={filetype:N,fieldname:fe.fieldname,...I.from(fe.meta).getOr({})};W.call(l,Be,fe.value,qe)})),fV=l=>I.from(l).filter(n).getOrUndefined(),Cee=l=>HE(l)?I.some({targets:_ee.find(l.getBody()),anchorTop:fV(az(l)),anchorBottom:fV(y6(l))}):I.none(),jfe=l=>I.from(iz(l)),Aee=l=>({getHistory:cV,addToHistory:wee,getLinkInformation:()=>Cee(l),getValidationHandler:()=>jfe(l),getUrlPicker:N=>Tee(l,N)}),dV=(l,N,W,fe)=>{const Se=wi(!1),Be=Z9(N),qe={icons:()=>N.ui.registry.getAll().icons,menuItems:()=>N.ui.registry.getAll().menuItems,translate:Dg.translate,isDisabled:()=>N.mode.isReadOnly()||!N.ui.isEnabled(),getOption:N.options.get,tooltips:cee(l.dialog)},ft=Aee(N),yt=tV(N),Lt=tee(N),Ht=ree(N),fn=()=>Se.get(),Rn=br=>Se.set(br),Bn={shared:{providers:qe,anchors:H9(N,W,fe,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:yt,colorinput:Lt,dialog:Ht,isContextMenuOpen:fn,setContextMenuState:Rn},er=br=>I.none(),cr={...Bn,shared:{...Bn.shared,interpreter:br=>EA(br,{},cr,er),getSink:l.popup}},Xr={...Bn,shared:{...Bn.shared,interpreter:br=>EA(br,{},Xr,er),getSink:l.dialog}};return{popup:cr,dialog:Xr}},hV=(l,N,W)=>{const fe=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastEvent(Ao,$i)})},Se=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastOn([Ao],$i)})},Be=Ao=>Se(_1(),{target:Ao.target}),qe=Ac(),ft=ud(qe,"touchstart",Be),yt=ud(qe,"touchmove",Ao=>fe(sy(),Ao)),Lt=ud(qe,"touchend",Ao=>fe(yg(),Ao)),Ht=ud(qe,"mousedown",Be),fn=ud(qe,"mouseup",Ao=>{Ao.raw.button===0&&Se(M3(),{target:Ao.target})}),Rn=Ao=>Se(_1(),{target:Nt.fromDom(Ao.target)}),Bn=Ao=>{Ao.button===0&&Se(M3(),{target:Nt.fromDom(Ao.target)})},er=()=>{q(l.editorManager.get(),Ao=>{l!==Ao&&Ao.dispatch("DismissPopups",{relatedTarget:l})})},cr=Ao=>fe(Im(),a2(Ao)),Xr=Ao=>{Se(qb(),{}),fe(Dm(),a2(Ao))},br=kr(Nt.fromDom(l.getElement())),Fr=i2(br,"scroll",Ao=>{requestAnimationFrame(()=>{const $i=l.getContainer();if($i!=null){const Xi=ix(l,N.element).map(ks=>[ks.element,...ks.others]).getOr([]);te(Xi,ks=>_o(ks,Ao.target))&&(l.dispatch("ElementScroll",{target:Ao.target.dom}),fe(Dx(),Ao))}})}),jr=()=>Se(qb(),{}),Ro=Ao=>{Ao.state&&Se(_1(),{target:Nt.fromDom(l.getContainer())})},ko=Ao=>{Se(_1(),{target:Nt.fromDom(Ao.relatedTarget.getContainer())})},_i=Ao=>l.dispatch("focusin",Ao),Pi=Ao=>l.dispatch("focusout",Ao);l.on("PostRender",()=>{l.on("click",Rn),l.on("tap",Rn),l.on("mouseup",Bn),l.on("mousedown",er),l.on("ScrollWindow",cr),l.on("ResizeWindow",Xr),l.on("ResizeEditor",jr),l.on("AfterProgressState",Ro),l.on("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.addEventListener("focusin",_i),Ao.element.dom.addEventListener("focusout",Pi)})}),l.on("remove",()=>{l.off("click",Rn),l.off("tap",Rn),l.off("mouseup",Bn),l.off("mousedown",er),l.off("ScrollWindow",cr),l.off("ResizeWindow",Xr),l.off("ResizeEditor",jr),l.off("AfterProgressState",Ro),l.off("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.removeEventListener("focusin",_i),Ao.element.dom.removeEventListener("focusout",Pi)}),Ht.unbind(),ft.unbind(),yt.unbind(),Lt.unbind(),fn.unbind(),Fr.unbind()}),l.on("detach",()=>{q([N,...W],tk),q([N,...W],Ao=>Ao.destroy())})},qf=YC,zv=MD,Mee=x([Ar("shell",!1),pn("makeItem"),Ar("setupItem",v),Km.field("listBehaviours",[Fa])]),Eee=mm({name:"items",overrides:()=>({behaviours:ei([Fa.config({})])})}),Pee=x([Eee]),Ree=x("CustomList"),Lee=(l,N,W,fe)=>{const Se=(ft,yt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Lt=>{const Ht=Fa.contents(Lt),fn=yt.length,Rn=fn-Ht.length,Bn=Rn>0?Z(Rn,()=>l.makeItem()):[],er=Ht.slice(fn);q(er,Xr=>Fa.remove(Lt,Xr)),q(Bn,Xr=>Fa.append(Lt,Xr));const cr=Fa.contents(Lt);q(cr,(Xr,br)=>{l.setupItem(ft,Xr,yt[br],br)})})},Be=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N},qe=ft=>l.shell?I.some(ft):Jo(ft,l,"items");return{uid:l.uid,dom:l.dom,components:Be.components,behaviours:Rd(l.listBehaviours,Be.behaviours),apis:{setItems:Se}}},pV=Zh({name:Ree(),configFields:Mee(),partFields:Pee(),factory:Lee,apis:{setItems:(l,N,W)=>{l.setItems(N,W)}}}),lO=x([pn("dom"),Ar("shell",!0),Pd("toolbarBehaviours",[Fa])]),Dee=x([mm({name:"groups",overrides:()=>({behaviours:ei([Fa.config({})])})})]),mV=(l,N,W,fe)=>{const Se=(ft,yt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Lt=>{Fa.set(Lt,yt)})},Be=ft=>l.shell?I.some(ft):Jo(ft,l,"groups"),qe=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N};return{uid:l.uid,dom:l.dom,components:qe.components,behaviours:Rd(l.toolbarBehaviours,qe.behaviours),apis:{setGroups:Se,refresh:v},domModification:{attributes:{role:"group"}}}},Nv=Zh({name:"Toolbar",configFields:lO(),partFields:Dee(),factory:mV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)}}}),Bee=v,zee=D,n_=x([]);var gV=Object.freeze({__proto__:null,setup:Bee,isDocked:zee,getBehaviours:n_});const cO=x(Li("toolbar-height-change")),D0={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},eR="tox-tinymce--toolbar-sticky-on",tR="tox-tinymce--toolbar-sticky-off",vV=(l,N)=>{const W=Mo(N),Se=ar(N).dom.innerHeight,Be=yc(W),qe=Nt.fromDom(l.elm),ft=bc(qe),yt=il(qe),Lt=ft.y,Ht=Lt+yt,fn=Tc(N),Rn=il(N),Bn=fn.top,er=Bn+Rn,cr=Math.abs(Bn-Be.top)<2,Xr=Math.abs(er-(Be.top+Se))<2;if(cr&&LtBn){const br=Lt-Se+yt+Rn;Cc(Be.left,br,W)}},nR=(l,N)=>X(fc.getModes(l),N),rR=l=>{const N=fe=>nf(fe)+(parseInt(Di(fe,"margin-top"),10)||0)+(parseInt(Di(fe,"margin-bottom"),10)||0),W=l.element;Zr(W).each(fe=>{const Se="padding-"+fc.getModes(l)[0];if(fc.isDocked(l)){const Be=_s(fe);xr(W,"width",Be+"px"),xr(fe,Se,N(W)+"px")}else zi(W,"width"),zi(fe,Se)})},yV=(l,N)=>{N?(Zc(l,D0.fadeOutClass),Og(l,[D0.transitionClass,D0.fadeInClass])):(Zc(l,D0.fadeInClass),Og(l,[D0.fadeOutClass,D0.transitionClass]))},bV=(l,N)=>{const W=Nt.fromDom(l.getContainer());N?(uc(W,eR),Zc(W,tR)):(uc(W,tR),Zc(W,eR))},Nee=(l,N)=>{const W=Mo(N);um(W).filter(fe=>!_o(N,fe)).filter(fe=>_o(fe,Nt.fromDom(W.dom.body))||$o(l,fe)).each(()=>Md(N))},Fee=(l,N)=>Wd(l).orThunk(()=>N().toOptional().bind(W=>Wd(W.element))),MS=(l,N,W)=>{l.inline||(N.header.isPositionedAtTop()||l.on("ResizeEditor",()=>{W().each(fc.reset)}),l.on("ResizeWindow ResizeEditor",()=>{W().each(rR)}),l.on("SkinLoaded",()=>{W().each(fe=>{fc.isDocked(fe)?fc.reset(fe):fc.refresh(fe)})}),l.on("FullscreenStateChanged",()=>{W().each(fc.reset)})),l.on("AfterScrollIntoView",fe=>{W().each(Se=>{fc.refresh(Se);const Be=Se.element;$D(Be)&&vV(fe,Be)})}),l.on("PostRender",()=>{bV(l,!1)})},Y5=l=>l().map(fc.isDocked).getOr(!1),oR=()=>[Ad.config({channels:{[cO()]:{onReceive:rR}}})],xV=(l,N)=>{const W=ds(),fe=N.getSink,Se=ft=>{fe().each(yt=>ft(yt.element))},Be=ft=>{l.inline||rR(ft),bV(l,fc.isDocked(ft)),ft.getSystem().broadcastOn([qb()],{}),fe().each(yt=>yt.getSystem().broadcastOn([qb()],{}))},qe=l.inline?[]:oR();return[Ra.config({}),fc.config({contextual:{lazyContext:ft=>{const yt=nf(ft.element),Lt=l.inline?l.getContentAreaContainer():l.getContainer();return I.from(Lt).map(Ht=>{const fn=cl(Nt.fromDom(Ht));return ix(l,ft.element).fold(()=>{const Bn=fn.height-yt,er=fn.y+(nR(ft,"top")?0:yt);return vs(fn.x,er,fn.width,Bn)},Bn=>{const er=nc(fn,Hw(Bn)),cr=nR(ft,"top")?er.y:er.y+yt;return vs(er.x,cr,er.width,er.height-yt)})})},onShow:()=>{Se(ft=>yV(ft,!0))},onShown:ft=>{Se(yt=>Oc(yt,[D0.transitionClass,D0.fadeInClass])),W.get().each(yt=>{Nee(ft.element,yt),W.clear()})},onHide:ft=>{Fee(ft.element,fe).fold(W.clear,W.set),Se(yt=>yV(yt,!1))},onHidden:()=>{Se(ft=>Oc(ft,[D0.transitionClass]))},...D0},lazyViewport:ft=>ix(l,ft.element).fold(()=>{const Lt=ts(),Ht=nz(l),fn=Lt.y+(nR(ft,"top")?Ht:0),Rn=Lt.height-(nR(ft,"bottom")?Ht:0);return{bounds:vs(Lt.x,fn,Lt.width,Rn),optScrollEnv:I.none()}},Lt=>({bounds:Hw(Lt),optScrollEnv:I.some({currentScrollTop:Lt.element.dom.scrollTop,scrollElmTop:Tc(Lt.element).top})})),modes:[N.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var $ee=Object.freeze({__proto__:null,setup:MS,isDocked:Y5,getBehaviours:xV});const iR=l=>{const N=l.editor,W=l.sticky?xV:n_;return{uid:l.uid,dom:l.dom,components:l.components,behaviours:ei(W(N,l.sharedBackstage))}},Vee=Si([pf,In("items",rd([It([V6,Go("items",ne)]),ne]))].concat(lp)),X5=l=>Rt("GroupToolbarButton",Vee,l),_V=[jo("text"),jo("tooltip"),jo("icon"),ns("search",!1,rd([V,Si([jo("placeholder")])],l=>w(l)?l?I.some({placeholder:I.none()}):I.none():I.some(l))),po("fetch"),ys("onSetup",()=>v)],wV=Si([pf,..._V]),OV=l=>Rt("menubutton",wV,l),Uee=Si([pf,iS,E0,lx,BY,RY,Xw,rl("presets","normal",["normal","color","listpreview"]),Zz(1),V2,Hz]),jee=l=>Rt("SplitButton",Uee,l);var aR=Qp({factory:(l,N)=>{const W=(Se,Be)=>{const qe=re(Be,ft=>{const yt={type:"menubutton",text:ft.text,fetch:Ht=>{Ht(ft.getItems())}},Lt=OV(yt).mapError(Ht=>dn(Ht)).getOrDie();return N5(Lt,"tox-mbtn",N.backstage,I.some("menuitem"))});Fa.set(Se,qe)},fe={focus:ha.focusIn,setMenus:W};return{uid:l.uid,dom:l.dom,components:[],behaviours:ei([Fa.config({}),Ka("menubar-events",[wc(Se=>{l.onSetup(Se)}),Lo(wu(),(Se,Be)=>{qa(Se.element,".tox-mbtn--active").each(qe=>{Sc(Be.event.target,".tox-mbtn").each(ft=>{_o(qe,ft)||Se.getSystem().getByDom(qe).each(yt=>{Se.getSystem().getByDom(ft).each(Lt=>{L0.expand(Lt),L0.close(yt),Ra.focus(Lt)})})})})}),Lo(q1(),(Se,Be)=>{Be.event.prevFocus.bind(qe=>Se.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>Se.getSystem().getByDom(ft).toOptional()).each(ft=>{L0.isOpen(qe)&&(L0.expand(ft),L0.close(qe))})})})]),ha.config({mode:"flow",selector:".tox-mbtn",onEscape:Se=>(l.onEscape(Se),I.some(!0))}),Rc.config({})]),apis:fe,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[pn("dom"),pn("uid"),pn("onEscape"),pn("backstage"),Ar("onSetup",v)],apis:{focus:(l,N)=>{l.focus(N)},setMenus:(l,N,W)=>{l.setMenus(N,W)}}});const SV="⚡️Upgrade",kV="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",sR=l=>({uid:l.uid,dom:l.dom,components:[{dom:{tag:"a",attributes:{href:kV,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:SV}}]}),TV="container",NA=[Pd("slotBehaviours",[])],G5=l=>"",CV=l=>{const N=(()=>{const Be=[];return{slot:(ft,yt)=>(Be.push(ft),HC(TV,G5(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:G5(Be)}));return Iy(TV,NA,Se,Qee,W)},Qee=(l,N)=>{const W=cr=>Lw(l),fe=(cr,Xr)=>Jo(cr,l,Xr),Se=(cr,Xr)=>(br,Fr)=>Jo(br,l,Fr).map(jr=>cr(jr,Fr)).getOr(Xr),Be=cr=>(Xr,br)=>{q(br,Fr=>cr(Xr,Fr))},qe=(cr,Xr)=>Nr(cr.element,"aria-hidden")!=="true",ft=(cr,Xr)=>{if(!qe(cr)){const br=cr.element;zi(br,"display"),Qt(br,"aria-hidden"),sa(cr,$_(),{name:Xr,visible:!0})}},yt=(cr,Xr)=>{if(qe(cr)){const br=cr.element;xr(br,"display","none"),Cr(br,"aria-hidden","true"),sa(cr,$_(),{name:Xr,visible:!1})}},Lt=Se(qe,!1),Ht=Se(yt),fn=Be(Ht),Rn=cr=>fn(cr,W()),Bn=Se(ft),er={getSlotNames:W,getSlot:fe,isShowing:Lt,hideSlot:Ht,hideAllSlots:Rn,showSlot:Bn};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.slotBehaviours),apis:er}},up={...Ue({getSlotNames:(l,N)=>l.getSlotNames(N),getSlot:(l,N,W)=>l.getSlot(N,W),isShowing:(l,N,W)=>l.isShowing(N,W),hideSlot:(l,N,W)=>l.hideSlot(N,W),hideAllSlots:(l,N)=>l.hideAllSlots(N),showSlot:(l,N,W)=>l.showSlot(N,W)},l=>Tb(l)),sketch:CV},Hee=Si([E0,iS,ys("onShow",v),ys("onHide",v),Xw]),lR=l=>Rt("sidebar",Hee,l),cR=l=>{const{sidebars:N}=l.ui.registry.getAll();q(ke(N),W=>{const fe=N[W],Se=()=>St(I.from(l.queryCommandValue("ToggleSidebar")),W);l.ui.registry.addToggleButton(W,{icon:fe.icon,tooltip:fe.tooltip,onAction:Be=>{l.execCommand("ToggleSidebar",!1,W),Be.setActive(Se())},onSetup:Be=>{Be.setActive(Se());const qe=()=>Be.setActive(Se());return l.on("ToggleSidebar",qe),()=>{l.off("ToggleSidebar",qe)}}})})},Zee=l=>({element:()=>l.element.dom}),uR=(l,N)=>{const W=re(ke(N),fe=>{const Se=N[fe],Be=Mt(lR(Se));return{name:fe,getApi:Zee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return re(W,fe=>{const Se=wi(v);return l.slot(fe.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:lS.unnamedEvents([cp(fe,Se),j2(fe,Se),Lo($_(),(Be,qe)=>{const ft=qe.event;ce(W,Lt=>Lt.name===ft.name).each(Lt=>{(ft.visible?Lt.onShow:Lt.onHide)(Lt.getApi(Be))})})])})})},qee=l=>up.sketch(N=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:uR(N,l),slotBehaviours:lS.unnamedEvents([wc(W=>up.hideAllSlots(W))])})),Wee=(l,N,W)=>{Xs.getCurrent(l).each(Se=>{Fa.set(Se,[qee(N)]);const Be=W==null?void 0:W.toLowerCase();n(Be)&&ht(N,Be)&&Xs.getCurrent(Se).each(qe=>{up.showSlot(qe,Be),Tp.immediateGrow(Se),zi(Se.element,"width"),FA(l.element,"region")})})},FA=(l,N)=>{Cr(l,"role",N)},Yee=(l,N)=>{Xs.getCurrent(l).each(fe=>{Xs.getCurrent(fe).each(Be=>{Tp.hasGrown(fe)?up.isShowing(Be,N)?(Tp.shrink(fe),FA(l.element,"presentation")):(up.hideAllSlots(Be),up.showSlot(Be,N),FA(l.element,"region")):(up.hideAllSlots(Be),up.showSlot(Be,N),Tp.grow(fe),FA(l.element,"region"))})})},Xee=l=>Xs.getCurrent(l).bind(W=>Tp.isGrowing(W)||Tp.hasGrown(W)?Xs.getCurrent(W).bind(Be=>ce(up.getSlotNames(Be),qe=>up.isShowing(Be,qe))):I.none()),AV=Li("FixSizeEvent"),MV=Li("AutoSizeEvent"),EV=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:ei([Rc.config({}),Ra.config({}),Tp.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:N=>{Xs.getCurrent(N).each(up.hideAllSlots),Za(N,MV)},onGrown:N=>{Za(N,MV)},onStartGrow:N=>{sa(N,AV,{width:Ia(N.element,"width").getOr("")})},onStartShrink:N=>{sa(N,AV,{width:_s(N.element)+"px"})}}),Fa.config({}),Xs.config({find:N=>{const W=Fa.contents(N);return Qe(W)}})])}],behaviours:ei([P1.childAt(0),Ka("sidebar-sliding-events",[Lo(AV,(N,W)=>{xr(N.element,"width",W.event.width)}),Lo(MV,(N,W)=>{zi(N.element,"width")})])])});var Kee=Object.freeze({__proto__:null,block:(l,N,W,fe)=>{Cr(l.element,"aria-busy",!0);const Se=N.getRoot(l).getOr(l),Be=ei([ha.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),Ra.config({})]),qe=fe(Se,Be),ft=Se.getSystem().build(qe);Fa.append(Se,ea(ft)),ft.hasConfigured(ha)&&N.focus&&ha.focusIn(ft),W.isBlocked()||N.onBlock(l),W.blockWith(()=>Fa.remove(Se,ft))},unblock:(l,N,W)=>{Qt(l.element,"aria-busy"),W.isBlocked()&&N.onUnblock(l),W.clear()},isBlocked:(l,N,W)=>W.isBlocked()}),Jee=[ys("getRoot",I.none),Hs("focus",!0),Ss("onBlock"),Ss("onUnblock")],ete=Object.freeze({__proto__:null,init:()=>{const l=wd(),N=W=>{l.set({destroy:W})};return Hd({readState:l.isSet,blockWith:N,clear:l.clear,isBlocked:l.isSet})}});const I1=id({fields:Jee,name:"blocking",apis:Kee,state:ete}),tte=l=>(N,W)=>({dom:{tag:"div",attributes:{"aria-label":l.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ev('
    ')}]}),PV=l=>Xs.getCurrent(l).each(N=>Md(N.element,!0)),nte=(l,N)=>{const W="tabindex",fe=`data-mce-${W}`;I.from(l.iframeElement).map(Nt.fromDom).each(Se=>{N?(Eo(Se,W).each(Be=>Cr(Se,fe,Be)),Cr(Se,W,-1)):(Qt(Se,W),Eo(Se,fe).each(Be=>{Cr(Se,W,Be),Qt(Se,fe)}))})},Xfe=(l,N,W,fe)=>{const Se=N.element;if(nte(l,W),W)I1.block(N,tte(fe)),zi(Se,"display"),Qt(Se,"aria-hidden"),l.hasFocus()&&PV(N);else{const Be=Xs.getCurrent(N).exists(qe=>_0(qe.element));I1.unblock(N),xr(Se,"display","none"),Cr(Se,"aria-hidden","true"),Be&&l.focus()}},Gfe=l=>({uid:l.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:ei([Fa.config({}),I1.config({focus:!1}),Xs.config({find:N=>Qe(N.components())})]),components:[]}),RV=l=>l.type==="focusin",LV=l=>RV(l)?(l.composed?Qe(l.composedPath()):I.from(l.target)).map(Nt.fromDom).filter(lr).exists(W=>rp(W,"mce-pastebin")):!1,rte=(l,N,W)=>{const fe=wi(!1),Se=ds(),Be=ft=>{fe.get()&&!LV(ft)&&(ft.preventDefault(),PV(N()),l.editorManager.setActive(l))};l.inline||l.on("PreInit",()=>{l.dom.bind(l.getWin(),"focusin",Be),l.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==fe.get()&&(fe.set(ft),Xfe(l,N(),ft,W.providers),uX(l,ft))};l.on("ProgressState",ft=>{if(Se.on(clearTimeout),h(ft.time)){const yt=J3.setEditorTimeout(l,()=>qe(ft.state),ft.time);Se.set(yt)}else qe(ft.state),Se.clear()})},ote=(l,N)=>se(l,(Se,Be)=>N(Be,Se.len).fold(x(Se),ft=>({len:ft.finish,list:Se.list.concat([ft])})),{len:0,list:[]}).list,_m=(l,N,W)=>({within:l,extra:N,withinWidth:W}),IV=(l,N,W)=>{const fe=ote(l,(ft,yt)=>{const Lt=W(ft);return I.some({element:ft,start:yt,finish:yt+Lt,width:Lt})}),Se=me(fe,ft=>ft.finish<=N),Be=pe(Se,(ft,yt)=>ft+yt.width,0),qe=fe.slice(Se.length);return{within:Se,extra:qe,withinWidth:Be}},K5=l=>re(l,N=>N.element),DV=(l,N,W)=>{const fe=K5(l.concat(N));return _m(fe,[],W)},ite=(l,N,W,fe)=>{const Se=K5(l).concat([W]);return _m(Se,K5(N),fe)},J5=(l,N,W)=>_m(K5(l),[],W),ate=(l,N,W)=>{const fe=IV(N,l,W);return fe.extra.length===0?I.some(fe):I.none()},$A=(l,N,W,fe)=>{const Se=ate(l,N,W).getOrThunk(()=>IV(N,l-W(fe),W)),Be=Se.within,qe=Se.extra,ft=Se.withinWidth;return qe.length===1&&qe[0].width<=W(fe)?DV(Be,qe,ft):qe.length>=1?ite(Be,qe,fe,ft):J5(Be,qe,ft)},BV=(l,N)=>{const W=re(N,fe=>ea(fe));Nv.setGroups(l,W)},VA=l=>Oe(l,N=>Wd(N.element).bind(W=>N.getSystem().getByDom(W).toOptional())),zV=(l,N,W)=>{const fe=N.builtGroups.get();if(fe.length===0)return;const Se=gm(l,N,"primary"),Be=Ku.getCoupled(l,"overflowGroup");xr(Se.element,"visibility","hidden");const qe=fe.concat([Be]),ft=VA(qe);W([]),BV(Se,qe);const yt=_s(Se.element),Lt=$A(yt,N.builtGroups.get(),Ht=>Math.ceil(Ht.element.dom.getBoundingClientRect().width),Be);Lt.extra.length===0?(Fa.remove(Se,Be),W([])):(BV(Se,Lt.within),W(Lt.extra)),zi(Se.element,"visibility"),yl(Se.element),ft.each(Ra.focus)},NV=x([Pd("splitToolbarBehaviours",[Ku]),gn("builtGroups",()=>wi([]))]),B0=x([h0(["overflowToggledClass"]),ai("getOverflowBounds"),pn("lazySink"),gn("overflowGroups",()=>wi([])),Ss("onOpened"),Ss("onClosed")].concat(NV())),ste=x([mh({factory:Nv,schema:lO(),name:"primary"}),Jm({schema:lO(),name:"overflow"}),Jm({name:"overflow-button"}),Jm({name:"overflow-group"})]),ES=x((l,N)=>{mu(l,Math.floor(N))}),FV=x([h0(["toggledClass"]),pn("lazySink"),po("fetch"),ai("getBounds"),Ai("fireDismissalEventInstead",[Ar("event",J0())]),dm(),Ss("onToggled")]),$V=x([Jm({name:"button",overrides:l=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:ei([us.config({toggleClass:l.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:l.onToggled})])})}),Jm({factory:Nv,schema:lO(),name:"toolbar",overrides:l=>({toolbarBehaviours:ei([ha.config({mode:"cyclic",onEscape:N=>(Jo(N,l,"button").each(Ra.focus),I.none())})])})})]),UA=ds(),VV=(l,N)=>{UA.set(!0),fR(l,N),UA.clear()},fR=(l,N)=>{const W=Ku.getCoupled(l,"toolbarSandbox");Ys.isOpen(W)?Ys.close(W):Ys.open(W,N.toolbar())},dR=(l,N,W,fe)=>{const Se=W.getBounds.map(qe=>qe()),Be=W.lazySink(l).getOrDie();Ph.positionWithinBounds(Be,N,{anchor:{type:"hotspot",hotspot:l,layouts:fe,overrides:{maxWidthFunction:ES()}}},Se)},UV=(l,N,W,fe,Se)=>{Nv.setGroups(N,Se),dR(l,N,W,fe),us.on(l)},lte=(l,N,W)=>{const fe=ld(),Se=(qe,ft)=>{const yt=UA.get().getOr(!1);W.fetch().get(Lt=>{UV(l,ft,W,N.layouts,Lt),fe.link(l.element),yt||ha.focusIn(ft)})},Be=()=>{us.off(l),UA.get().getOr(!1)||Ra.focus(l),fe.unlink(l.element)};return{dom:{tag:"div",attributes:{id:fe.id}},behaviours:ei([ha.config({mode:"special",onEscape:qe=>(Ys.close(qe),I.some(!0))}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(qe,ft,yt)=>Cf(ft,yt)||Cf(l,yt),getAttachPoint:()=>W.lazySink(l).getOrDie()}),Ad.config({channels:{...Ly({isExtraPart:D,...W.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),...ak({doReposition:()=>{Ys.getState(Ku.getCoupled(l,"toolbarSandbox")).each(qe=>{dR(l,qe,W,N.layouts)})}})}})])}},r_=Zh({name:"FloatingToolbarButton",factory:(l,N,W,fe)=>({...Rh.sketch({...fe.button(),action:Se=>{fR(Se,fe)},buttonBehaviours:Km.augment({dump:fe.button().buttonBehaviours},[Ku.config({others:{toolbarSandbox:Se=>lte(Se,W,l)}})])}),apis:{setGroups:(Se,Be)=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(qe=>{UV(Se,qe,l,W.layouts,Be)})},reposition:Se=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(Be=>{dR(Se,Be,l,W.layouts)})},toggle:Se=>{fR(Se,fe)},toggleWithoutFocusing:Se=>{VV(Se,fe)},getToolbar:Se=>Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")),isOpen:Se=>Ys.isOpen(Ku.getCoupled(Se,"toolbarSandbox"))}}),configFields:FV(),partFields:$V(),apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggleWithoutFocusing(N)},getToolbar:(l,N)=>l.getToolbar(N),isOpen:(l,N)=>l.isOpen(N)}}),cte=x([pn("items"),h0(["itemSelector"]),Pd("tgroupBehaviours",[ha])]),jV=x([U3({name:"items",unit:"item"})]),QV=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.tgroupBehaviours,[ha.config({mode:"flow",selector:l.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),eT=Zh({name:"ToolbarGroup",configFields:cte(),partFields:jV(),factory:QV}),HV=l=>re(l,N=>ea(N)),ZV=(l,N,W)=>{zV(l,W,fe=>{W.overflowGroups.set(fe),N.getOpt(l).each(Se=>{r_.setGroups(Se,HV(fe))})})},qV=(l,N,W,fe)=>{const Se=ml(r_.sketch({fetch:()=>Lh.nu(Be=>{Be(HV(l.overflowGroups.get()))}),layouts:{onLtr:()=>[$c,Lu],onRtl:()=>[Lu,$c],onBottomLtr:()=>[Mf,dl],onBottomRtl:()=>[dl,Mf]},getBounds:W.getOverflowBounds,lazySink:l.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:l.markers.overflowToggledClass},parts:{button:fe["overflow-button"](),toolbar:fe.overflow()},onToggled:(Be,qe)=>l[qe?"onOpened":"onClosed"](Be)}));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:()=>eT.sketch({...fe["overflow-group"](),items:[Se.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{l.builtGroups.set(re(qe,Be.getSystem().build)),ZV(Be,Se,l)},refresh:Be=>ZV(Be,Se,l),toggle:Be=>{Se.getOpt(Be).each(qe=>{r_.toggle(qe)})},toggleWithoutFocusing:Be=>{Se.getOpt(Be).each(r_.toggleWithoutFocusing)},isOpen:Be=>Se.getOpt(Be).map(r_.isOpen).getOr(!1),reposition:Be=>{Se.getOpt(Be).each(qe=>{r_.reposition(qe)})},getOverflow:Be=>Se.getOpt(Be).bind(r_.getToolbar)},domModification:{attributes:{role:"group"}}}},hR=Zh({name:"SplitFloatingToolbar",configFields:B0(),partFields:ste(),factory:qV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N),getOverflow:(l,N)=>l.getOverflow(N)}}),WV=x([h0(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ss("onOpened"),Ss("onClosed")].concat(NV())),ute=x([mh({factory:Nv,schema:lO(),name:"primary"}),mh({factory:Nv,schema:lO(),name:"overflow",overrides:l=>({toolbarBehaviours:ei([Tp.config({dimension:{property:"height"},closedClass:l.markers.closedClass,openClass:l.markers.openClass,shrinkingClass:l.markers.shrinkingClass,growingClass:l.markers.growingClass,onShrunk:N=>{Jo(N,l,"overflow-button").each(W=>{us.off(W)}),l.onClosed(N)},onGrown:N=>{l.onOpened(N)},onStartGrow:N=>{Jo(N,l,"overflow-button").each(us.on)}}),ha.config({mode:"acyclic",onEscape:N=>(Jo(N,l,"overflow-button").each(Ra.focus),I.some(!0))})])})}),Jm({name:"overflow-button",overrides:l=>({buttonBehaviours:ei([us.config({toggleClass:l.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Jm({name:"overflow-group"})]),fte=(l,N)=>Jo(l,N,"overflow").map(Tp.hasGrown).getOr(!1),pR=(l,N,W)=>{Jo(l,N,"overflow-button").each(fe=>{Jo(l,N,"overflow").each(Se=>{if(jA(l,N),Tp.hasShrunk(Se)){const Be=N.onOpened;N.onOpened=qe=>{W||ha.focusIn(Se),Be(qe),N.onOpened=Be}}else{const Be=N.onClosed;N.onClosed=qe=>{W||Ra.focus(fe),Be(qe),N.onClosed=Be}}Tp.toggleGrow(Se)})})},jA=(l,N)=>{Jo(l,N,"overflow").each(W=>{zV(l,N,fe=>{const Se=re(fe,Be=>ea(Be));Nv.setGroups(W,Se)}),Jo(l,N,"overflow-button").each(fe=>{Tp.hasGrown(W)&&us.on(fe)}),Tp.refresh(W)})},dte=(l,N,W,fe)=>{const Se="alloy.toolbar.toggle",Be=(qe,ft)=>{const yt=re(ft,qe.getSystem().build);l.builtGroups.set(yt)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:qe=>eT.sketch({...fe["overflow-group"](),items:[Rh.sketch({...fe["overflow-button"](),action:ft=>{Za(qe,Se)}})]})}}),Ka("toolbar-toggle-events",[Lo(Se,qe=>{pR(qe,l,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),jA(qe,l)},refresh:qe=>jA(qe,l),toggle:qe=>{pR(qe,l,!1)},toggleWithoutFocusing:qe=>{pR(qe,l,!0)},isOpen:qe=>fte(qe,l)},domModification:{attributes:{role:"group"}}}},mR=Zh({name:"SplitSlidingToolbar",configFields:WV(),partFields:ute(),factory:dte,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},toggle:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N)}}),YV=l=>{const N=l.title.fold(()=>({}),W=>({attributes:{title:W}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...N},components:[eT.parts.items({})],items:l.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:ei([Rc.config({}),Ra.config({})])}},QA=l=>eT.sketch(YV(l)),XV=(l,N)=>{const W=wc(fe=>{const Se=re(l.initGroups,QA);Nv.setGroups(fe,Se)});return ei([E1.toolbarButton(l.providers.isDisabled),Id(),ha.config({mode:N,onEscape:l.onEscape,selector:".tox-toolbar__group"}),Ka("toolbar-events",[W])])},GV=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return{uid:l.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":YV({title:I.none(),items:[]}),"overflow-button":PJ({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),l.providers,[],"overflow-button")},splitToolbarBehaviours:XV(l,N)}},hte=l=>{const N=GV(l),W=4,fe=hR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return hR.sketch({...N,lazySink:l.getSink,getOverflowBounds:()=>{const Se=l.moreDrawerData.lazyHeader().element,Be=bc(Se),qe=Hn(Se),ft=bc(qe),yt=Math.max(qe.dom.scrollHeight,ft.height);return vs(Be.x+W,ft.y,Be.width-W*2,yt)},parts:{...N.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:l.attributes}}},components:[fe],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>l.onToggled(Se,!0),onClosed:Se=>l.onToggled(Se,!1)})},pte=l=>{const N=mR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),W=mR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),fe=GV(l);return mR.sketch({...fe,components:[N,W],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>{Se.getSystem().broadcastOn([cO()],{type:"opened"}),l.onToggled(Se,!0)},onClosed:Se=>{Se.getSystem().broadcastOn([cO()],{type:"closed"}),l.onToggled(Se,!1)}})},HA=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return Nv.sketch({uid:l.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(l.type===C0.scrolling?["tox-toolbar--scrolling"]:[])},components:[Nv.parts.groups({})],toolbarBehaviours:XV(l,N)})},KV=[lx,E0,jo("tooltip"),rl("buttonType","secondary",["primary","secondary"]),Hs("borderless",!1),po("onAction")],JV=[...KV,sx,Gr("type",["button"])],mte=[...KV,Hs("active",!1),Gr("type",["togglebutton"])],eU={button:JV,togglebutton:mte},gR=[Gr("type",["group"]),mt("buttons",[],bn("type",eU))],gte=bn("type",{...eU,group:gR}),ZA=Si([mt("buttons",[],gte),po("onShow"),po("onHide")]),vte=l=>Rt("view",ZA,l),tU=(l,N)=>{var W,fe;const Se=l.type==="togglebutton",Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),ft=(()=>jr=>{const Ro=Pi=>{Be.map(Ao=>Ao.getOpt(jr).each($i=>{Fa.set($i,[K2(Pi,N.icons)])}))},ko=Pi=>{const Ao=jr.element;Pi?(uc(Ao,"tox-button--enabled"),Cr(Ao,"aria-pressed",!0)):(Zc(Ao,"tox-button--enabled"),Qt(Ao,"aria-pressed"))},_i=()=>rp(jr.element,"tox-button--enabled");if(Se)return l.onAction({setIcon:Ro,setActive:ko,isActive:_i});if(l.type==="button")return l.onAction({setIcon:Ro})})(),yt={...l,name:Se?l.text.getOr(l.icon.getOr("")):(W=l.text)!==null&&W!==void 0?W:l.icon.getOr(""),primary:l.buttonType==="primary",buttonType:I.from(l.buttonType),tooltip:l.tooltip,icon:l.icon,enabled:!0,borderless:l.borderless},Lt=I9((fe=l.buttonType)!==null&&fe!==void 0?fe:"secondary"),Ht=Se?l.text.map(N.translate):I.some(N.translate(l.text)),fn=Ht.map(Po),Rn=yt.tooltip.or(Ht).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Bn=Be.map(jr=>jr.asSpec()),er=Kw([Bn,fn]),cr=l.icon.isSome()&&fn.isSome(),Xr={tag:"button",classes:Lt.concat(...l.icon.isSome()&&!cr?["tox-button--icon"]:[]).concat(...cr?["tox-button--icon-and-text"]:[]).concat(...l.borderless?["tox-button--naked"]:[]).concat(...l.type==="togglebutton"&&l.active?["tox-button--enabled"]:[]),attributes:Rn},br=[],Fr=$5(yt,I.some(ft),br,Xr,er,l.tooltip,N);return Rh.sketch(Fr)},nU=(l,N)=>tU(l,N),yte=(l,N)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:re(l.buttons,W=>nU(W,N))}),bte=va().deviceType,xte=bte.isPhone(),_te=bte.isTablet(),vR=l=>{let N=!1;const W=re(l.buttons,fe=>fe.type==="group"?(N=!0,yte(fe,l.providers)):nU(fe,l.providers));return{uid:l.uid,dom:{tag:"div",classes:[N?"tox-view__toolbar":"tox-view__header",...xte||_te?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:ei([Ra.config({}),ha.config({mode:"flow",selector:"button, .tox-button",focusInside:Mv.OnEnterOrSpaceMode})]),components:N?W:[Iv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Iv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:W})]}},wte=l=>({uid:l.uid,behaviours:ei([Ra.config({}),Rc.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),qA=(l,N,W,fe)=>{const Se={getPane:Be=>qf.getPart(Be,l,"pane"),getOnShow:Be=>l.viewConfig.onShow,getOnHide:Be=>l.viewConfig.onHide};return{uid:l.uid,dom:l.dom,components:N,behaviours:ei([Ra.config({}),ha.config({mode:"cyclic",focusInside:Mv.OnEnterOrSpaceMode})]),apis:Se}};var uO=Zh({name:"silver.View",configFields:[pn("viewConfig")],partFields:[mm({factory:{sketch:vR},schema:[pn("buttons"),pn("providers")],name:"header"}),mm({factory:{sketch:wte},schema:[],name:"pane"})],factory:qA,apis:{getPane:(l,N)=>l.getPane(N),getOnShow:(l,N)=>l.getOnShow(N),getOnHide:(l,N)=>l.getOnHide(N)}});const rU=(l,N,W)=>je(N,(fe,Se)=>{const Be=Mt(vte(fe));return l.slot(Se,uO.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[uO.parts.header({buttons:Be.buttons,providers:W})]:[],uO.parts.pane({})]}))}),yR=(l,N)=>up.sketch(W=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:rU(W,l,N),slotBehaviours:lS.unnamedEvents([wc(fe=>up.hideAllSlots(fe))])})),oU=l=>ce(up.getSlotNames(l),N=>up.isShowing(l,N)),iU=l=>{const N=l.element;xr(N,"display","none"),Cr(N,"aria-hidden","true")},PS=l=>{const N=l.element;zi(N,"display"),Qt(N,"aria-hidden")},aU=l=>({getContainer:x(l)}),sU=(l,N,W)=>{up.getSlot(l,N).each(fe=>{uO.getPane(fe).each(Se=>{W(fe)(aU(Se.element.dom))})})},Ote=(l,N)=>sU(l,N,uO.getOnShow),Ste=(l,N)=>sU(l,N,uO.getOnHide);var WA=Qp({factory:(l,N)=>{const Be={setViews:(qe,ft)=>{Fa.set(qe,[yR(ft,N.backstage.shared.providers)])},whichView:qe=>Xs.getCurrent(qe).bind(oU),toggleView:(qe,ft,yt,Lt)=>Xs.getCurrent(qe).exists(Ht=>{const fn=oU(Ht),Rn=fn.exists(er=>Lt===er),Bn=up.getSlot(Ht,Lt).isSome();return Bn&&(up.hideAllSlots(Ht),Rn?(iU(qe),ft()):(yt(),PS(qe),up.showSlot(Ht,Lt),Ote(Ht,Lt)),fn.each(er=>Ste(Ht,er))),Bn})};return{uid:l.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:ei([Fa.config({}),Xs.config({find:qe=>{const ft=Fa.contents(qe);return Qe(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[pn("backstage")],apis:{setViews:(l,N,W)=>l.setViews(N,W),toggleView:(l,N,W,fe,Se)=>l.toggleView(N,W,fe,Se),whichView:(l,N)=>l.whichView(N)}});const kte=(l,N,W)=>{let fe=!1;const Se=qe=>{kl(qe,".tox-statusbar").each(ft=>{Di(ft,"display")==="none"&&Nr(ft,"aria-hidden")==="true"?(zi(ft,"display"),Qt(ft,"aria-hidden")):(xr(ft,"display","none"),Cr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>qf.getPart(qe,l,"socket"),setSidebar:(qe,ft,yt)=>{qf.getPart(qe,l,"sidebar").each(Lt=>Wee(Lt,ft,yt))},toggleSidebar:(qe,ft)=>{qf.getPart(qe,l,"sidebar").each(yt=>Yee(yt,ft))},whichSidebar:qe=>qf.getPart(qe,l,"sidebar").bind(Xee).getOrNull(),getHeader:qe=>qf.getPart(qe,l,"header"),getToolbar:qe=>qf.getPart(qe,l,"toolbar"),setToolbar:(qe,ft)=>{qf.getPart(qe,l,"toolbar").each(yt=>{const Lt=re(ft,QA);yt.getApis().setGroups(yt,Lt)})},setToolbars:(qe,ft)=>{qf.getPart(qe,l,"multiple-toolbar").each(yt=>{const Lt=re(ft,Ht=>re(Ht,QA));pV.setItems(yt,Lt)})},refreshToolbar:qe=>{qf.getPart(qe,l,"toolbar").each(yt=>yt.getApis().refresh(yt))},toggleToolbarDrawer:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggle,yt=>yt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggleWithoutFocusing,yt=>yt(ft))})},isToolbarDrawerToggled:qe=>qf.getPart(qe,l,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(yt=>yt(ft))).getOr(!1),getThrobber:qe=>qf.getPart(qe,l,"throbber"),focusToolbar:qe=>{qf.getPart(qe,l,"toolbar").orThunk(()=>qf.getPart(qe,l,"multiple-toolbar")).each(yt=>{ha.focusIn(yt)})},setMenubar:(qe,ft)=>{qf.getPart(qe,l,"menubar").each(yt=>{aR.setMenus(yt,ft)})},focusMenubar:qe=>{qf.getPart(qe,l,"menubar").each(ft=>{aR.focus(ft)})},setViews:(qe,ft)=>{qf.getPart(qe,l,"viewWrapper").each(yt=>{WA.setViews(yt,ft)})},toggleView:(qe,ft)=>qf.getPart(qe,l,"viewWrapper").exists(yt=>WA.toggleView(yt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>qf.getPart(qe,l,"viewWrapper").bind(WA.whichView).getOrNull(),hideMainView:qe=>{fe=Be.isToolbarDrawerToggled(qe),fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),xr(yt,"display","none"),Cr(yt,"aria-hidden","true")})},showMainView:qe=>{fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),zi(yt,"display"),Qt(yt,"aria-hidden")})}};return{uid:l.uid,dom:l.dom,components:N,apis:Be,behaviours:l.behaviours}},cU=zv.optional({factory:aR,name:"menubar",schema:[pn("backstage")]}),uU=l=>l.type===C0.sliding?pte:l.type===C0.floating?hte:HA,YA=zv.optional({factory:{sketch:l=>pV.sketch({uid:l.uid,dom:l.dom,listBehaviours:ei([ha.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>HA({type:l.type,uid:Li("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:l.providers,onEscape:()=>(l.onEscape(),I.some(!0))}),setupItem:(N,W,fe,Se)=>{Nv.setGroups(W,fe)},shell:!0})},name:"multiple-toolbar",schema:[pn("dom"),pn("onEscape")]}),bR=zv.optional({factory:{sketch:l=>{const N=uU(l),W={type:l.type,uid:l.uid,onEscape:()=>(l.onEscape(),I.some(!0)),onToggled:(fe,Se)=>l.onToolbarToggled(Se),cyclicKeying:!1,initGroups:[],getSink:l.getSink,providers:l.providers,moreDrawerData:{lazyToolbar:l.lazyToolbar,lazyMoreButton:l.lazyMoreButton,lazyHeader:l.lazyHeader},attributes:l.attributes};return N(W)}},name:"toolbar",schema:[pn("dom"),pn("onEscape"),pn("getSink")]}),Tte=zv.optional({factory:{sketch:iR},name:"header",schema:[pn("dom")]}),Cte=zv.optional({factory:{sketch:sR},name:"promotion",schema:[pn("dom")]}),fU=zv.optional({name:"socket",schema:[pn("dom")]}),Ate=zv.optional({factory:{sketch:EV},name:"sidebar",schema:[pn("dom")]}),Mte=zv.optional({factory:{sketch:Gfe},name:"throbber",schema:[pn("dom")]}),Ete=zv.optional({factory:WA,name:"viewWrapper",schema:[pn("backstage")]}),dU=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:l.components}),Pte=zv.optional({factory:{sketch:dU},name:"editorContainer",schema:[]});var Lc=Zh({name:"OuterContainer",factory:kte,configFields:[pn("dom"),pn("behaviours")],partFields:[Tte,cU,bR,YA,fU,Ate,Cte,Mte,Ete,Pte],apis:{getSocket:(l,N)=>l.getSocket(N),setSidebar:(l,N,W,fe)=>{l.setSidebar(N,W,fe)},toggleSidebar:(l,N,W)=>{l.toggleSidebar(N,W)},whichSidebar:(l,N)=>l.whichSidebar(N),getHeader:(l,N)=>l.getHeader(N),getToolbar:(l,N)=>l.getToolbar(N),setToolbar:(l,N,W)=>{l.setToolbar(N,W)},setToolbars:(l,N,W)=>{l.setToolbars(N,W)},refreshToolbar:(l,N)=>l.refreshToolbar(N),toggleToolbarDrawer:(l,N)=>{l.toggleToolbarDrawer(N)},toggleToolbarDrawerWithoutFocusing:(l,N)=>{l.toggleToolbarDrawerWithoutFocusing(N)},isToolbarDrawerToggled:(l,N)=>l.isToolbarDrawerToggled(N),getThrobber:(l,N)=>l.getThrobber(N),setMenubar:(l,N,W)=>{l.setMenubar(N,W)},focusMenubar:(l,N)=>{l.focusMenubar(N)},focusToolbar:(l,N)=>{l.focusToolbar(N)},setViews:(l,N,W)=>{l.setViews(N,W)},toggleView:(l,N,W)=>l.toggleView(N,W),whichView:(l,N)=>l.whichView(N)}});const xR="file edit view insert format tools table help",hU={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},Rte=(l,N,W)=>{const fe=g6(W).split(/[ ,]/);return{text:l.title,getItems:()=>ve(l.items,Se=>{const Be=Se.toLowerCase();return Be.trim().length===0?[]:te(fe,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:N.menuItems[Be]?[N.menuItems[Be]]:[]})}},XA=l=>l.split(" "),pU=(l,N)=>{const W={...hU,...N.menus},fe=ke(N.menus).length>0,Se=N.menubar===void 0||N.menubar===!0?XA(xR):XA(N.menubar===!1?"":N.menubar),Be=me(Se,ft=>{const yt=ht(hU,ft);return fe?yt||Ge(N.menus,ft).exists(Lt=>ht(Lt,"items")):yt}),qe=re(Be,ft=>{const yt=W[ft];return Rte({title:yt.title,items:XA(yt.items)},N,l)});return me(qe,ft=>{const yt=Lt=>n(Lt)||Lt.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),yt)})},mU=l=>{const N=()=>{l._skinLoaded=!0,sX(l)};return()=>{l.initialized?N():l.on("init",N)}},Lte=(l,N)=>()=>lX(l,{message:N}),_R=(l,N,W)=>(l.on("remove",()=>W.unload(N)),W.load(N)),wR=(l,N,W,fe)=>(l.on("remove",()=>fe.unloadRawCss(N)),fe.loadRawCss(N,W)),Ite=async(l,N)=>{const fe="ui/"+_6(l).getOr("default")+"/skin.css",Se=tinymce.Resource.get(fe);if(n(Se))wR(l,fe,Se,l.ui.styleSheetLoader);else{const Be=l.editorManager.suffix,qe=N+`/skin${Be}.css`;return _R(l,qe,l.ui.styleSheetLoader)}},Dte=async(l,N)=>{if(Gt(Nt.fromDom(l.getElement()))){const Se="ui/"+_6(l).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(Se);if(n(Be))wR(l,Se,Be,Fw.DOM.styleSheetLoader);else{const qe=l.editorManager.suffix,ft=N+`/skin.shadowdom${qe}.css`;return _R(l,ft,Fw.DOM.styleSheetLoader)}}},gU=async(l,N)=>{const W=()=>{const Se=YE(N),Be=N.editorManager.suffix;Se&&N.contentCSS.push(Se+(l?"/content.inline":"/content")+`${Be}.css`)};_6(N).fold(W,Se=>{const Be="ui/"+Se+(l?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?wR(N,Be,qe,N.ui.styleSheetLoader):W()});const fe=YE(N);if(!WE(N)&&n(fe))return Promise.all([Ite(N,fe),Dte(N,fe)]).then()},vU=(l,N)=>gU(l,N).then(mU(N),Lte(N,"Skin could not be loaded")),Bte=T(vU,!1),zte=T(vU,!0),o_=(l,N,W)=>at(W)?l.translate(N):l.translate([N,l.translate(W)]),OR=(l,N)=>{const W=(qe,ft,yt,Lt)=>{const Ht=l.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:Ht});if(qe.type==="submenu"){const fn=ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt));return ft===0&&fn.length<=0?I.none():I.some({type:"nestedmenuitem",text:Ht,enabled:fn.length>0,getSubmenuItems:()=>ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt))})}else return I.some({type:"togglemenuitem",text:Ht,icon:qe.icon,active:qe.isSelected(Lt),enabled:!yt,onAction:N.onAction(qe),...qe.getStylePreview().fold(()=>({}),fn=>({meta:{style:fn}}))})},fe=(qe,ft,yt)=>{const Lt=qe.type==="formatter"&&N.isInvalid(qe);return ft===0?Lt?[]:W(qe,ft,!1,yt).toArray():W(qe,ft,Lt,yt).toArray()},Se=qe=>{const ft=N.getCurrentValue(),yt=N.shouldHide?0:1;return ve(qe,Lt=>fe(Lt,yt,ft))};return{validateItems:Se,getFetch:(qe,ft)=>(yt,Lt)=>{const Ht=ft(),fn=Se(Ht),Rn=OS(fn,A1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});Lt(Rn)}}},RS=(l,N)=>{const W=N.dataset,fe=W.type==="basic"?()=>re(W.data,Se=>IA(Se,N.isSelectedFor,N.getPreviewFor)):W.getData;return{items:OR(l,N),getStyleItems:fe}},tT=(l,N,W,fe,Se,Be)=>{const{items:qe,getStyleItems:ft}=RS(N,W),yt=wi(W.tooltip),Lt=fn=>({getComponent:x(fn),setTooltip:Rn=>{const Bn=N.shared.providers.translate(Rn);Cr(fn.element,"aria-label",Bn),yt.set(Rn)}}),Ht=fn=>{const Rn=Bn=>fn.setTooltip(o_(l,fe(Bn.value),Bn.value));return l.on(Se,Rn),J6(tO(l,"NodeChange",Bn=>{const er=Bn.getComponent();W.updateText(er),he.set(Bn.getComponent(),!l.selection.isEditable())})(fn),()=>l.off(Se,Rn))};return g9({text:W.icon.isSome()?I.none():W.text,icon:W.icon,ariaLabel:I.some(W.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(N,ft),onSetup:Ht,getApi:Lt,columns:1,presets:"normal",classes:W.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Vu.config({...N.shared.providers.tooltips.getConfig({tooltipText:N.shared.providers.translate(W.tooltip),onShow:fn=>{if(W.tooltip!==yt.get()){const Rn=N.shared.providers.translate(yt.get());Vu.setComponents(fn,N.shared.providers.tooltips.getComponents({tooltipText:Rn}))}}})})]},"tox-tbtn",N.shared,Be)},Nte=l=>re(l,N=>{let W=N,fe=N;const Se=N.split("=");return Se.length>1&&(W=Se[0],fe=Se[1]),{title:W,format:fe}}),Fte=l=>({type:"basic",data:l});var LS;(function(l){l[l.SemiColon=0]="SemiColon",l[l.Space=1]="Space"})(LS||(LS={}));const $te=(l,N)=>N===LS.SemiColon?l.replace(/;$/,"").split(";"):l.split(" "),SR=(l,N,W)=>{const fe=l.options.get(N);return{type:"basic",data:Nte($te(fe,W))}},Vte="Align",yU=x("Alignment {0}"),kR="left",IS=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],GA=l=>{const N=()=>ce(IS,ft=>l.formatter.match(ft.format)),W=ft=>()=>l.formatter.match(ft),fe=ft=>I.none,Se=ft=>{const Lt=N().fold(x(kR),Ht=>Ht.title.toLowerCase());sa(ft,J2,{icon:`align-${Lt}`}),r7(l,{value:Lt})},Be=Fte(IS),qe=ft=>()=>ce(IS,yt=>yt.format===ft.format).each(yt=>l.execCommand(yt.command));return{tooltip:o_(l,yU(),kR),text:I.none(),icon:I.some("align-left"),isSelectedFor:W,getCurrentValue:I.none,getPreviewFor:fe,onAction:qe,updateText:Se,dataset:Be,shouldHide:!1,isInvalid:ft=>!l.formatter.canApply(ft.format)}},bU=(l,N)=>tT(l,N,GA(l),yU,"AlignTextUpdate","align"),i_=(l,N)=>{const W=RS(N,GA(l));l.ui.registry.addNestedMenuItem("align",{text:N.shared.providers.translate(Vte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},TR=(l,N)=>{const W=N(),fe=re(W,Se=>Se.format);return I.from(l.formatter.closest(fe)).bind(Se=>ce(W,Be=>Be.format===Se))},Ute="Blocks",xU=x("Block {0}"),CR="Paragraph",_U=l=>{const N=Be=>()=>l.formatter.match(Be),W=Be=>()=>{const qe=l.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(Be))}):I.none()},fe=Be=>{const ft=TR(l,()=>Se.data).fold(x(CR),yt=>yt.title);sa(Be,Ug,{text:ft}),pX(l,{value:ft})},Se=SR(l,"block_formats",LS.SemiColon);return{tooltip:o_(l,xU(),CR),text:I.some(CR),icon:I.none(),isSelectedFor:N,getCurrentValue:I.none,getPreviewFor:W,onAction:MN(l),updateText:fe,dataset:Se,shouldHide:!1,isInvalid:Be=>!l.formatter.canApply(Be.format)}},jte=(l,N)=>tT(l,N,_U(l),xU,"BlocksTextUpdate","blocks"),Qte=(l,N)=>{const W=RS(N,_U(l));l.ui.registry.addNestedMenuItem("blocks",{text:Ute,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Hte="Fonts",AR=x("Font {0}"),MR="System Font",Zte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],KA=l=>{const N=l.split(/\s*,\s*/);return re(N,W=>W.replace(/^['"]+|['"]+$/g,""))},wU=(l,N)=>N.length>0&&_e(N,W=>l.indexOf(W.toLowerCase())>-1),qte=(l,N)=>{if(l.indexOf("-apple-system")===0||N.length>0){const W=KA(l.toLowerCase());return wU(W,Zte)||wU(W,N)}else return!1},OU=l=>{const N=()=>{const yt=er=>er?KA(er)[0]:"",Lt=l.queryCommandValue("FontName"),Ht=ft.data,fn=Lt?Lt.toLowerCase():"",Rn=dz(l);return{matchOpt:ce(Ht,er=>{const cr=er.format;return cr.toLowerCase()===fn||yt(cr).toLowerCase()===yt(fn).toLowerCase()}).orThunk(()=>Ot(qte(fn,Rn),{title:MR,format:fn})),font:Lt}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=yt=>()=>I.some({tag:"div",styles:yt.indexOf("dings")===-1?{"font-family":yt}:{}}),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontName",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,font:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),o7(l,{value:fn})},ft=SR(l,"font_family_formats",LS.SemiColon);return{tooltip:o_(l,AR(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:W,getCurrentValue:fe,getPreviewFor:Se,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Wte=(l,N)=>tT(l,N,OU(l),AR,"FontFamilyTextUpdate","fontfamily"),Yte=(l,N)=>{const W=RS(N,OU(l));l.ui.registry.addNestedMenuItem("fontfamily",{text:N.shared.providers.translate(Hte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Xte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},SU=(()=>{const l="[0-9]+",W="[eE]"+("[+-]?"+l),fe="\\.",Se=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",l+fe+Se(l)+Se(W),fe+l+Se(W),l+Se(W)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),kU=(l,N)=>te(N,W=>te(Xte[W],fe=>l===fe)),nT=(l,N)=>I.from(SU.exec(l)).bind(fe=>{const Se=Number(fe[1]),Be=fe[2];return kU(Be,N)?I.some({value:Se,unit:Be}):I.none()}),Gte=(l,N)=>nT(l,N).map(({value:W,unit:fe})=>W+fe),ER={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},Kte=(l,N,W,fe)=>{let Se=I.none();const Be=jr=>jr.map(Ro=>Ei.getValue(Ro)).getOr(""),qe=tO(l,"NodeChange SwitchMode",jr=>{const Ro=jr.getComponent();Se=I.some(Ro),W.updateInputValue(Ro),he.set(Ro,!l.selection.isEditable())}),ft=jr=>({getComponent:x(jr)}),yt=wi(v),Lt=Li("custom-number-input-events"),Ht=(jr,Ro,ko)=>{const _i=Be(Se),Pi=W.getNewValue(_i,jr),Ao=_i.length-`${Pi}`.length,$i=Se.map(Xi=>Xi.element.dom.selectionStart-Ao),yi=Se.map(Xi=>Xi.element.dom.selectionEnd-Ao);W.onAction(Pi,ko),Se.each(Xi=>{Ei.setValue(Xi,Pi),Ro&&($i.each(ks=>Xi.element.dom.selectionStart=ks),yi.each(ks=>Xi.element.dom.selectionEnd=ks))})},fn=(jr,Ro)=>Ht((ko,_i)=>ko-_i,jr,Ro),Rn=(jr,Ro)=>Ht((ko,_i)=>ko+_i,jr,Ro),Bn=jr=>Zr(jr.element).fold(I.none,Ro=>(Md(Ro),I.some(!0))),er=jr=>_0(jr.element)?(Rr(jr.element).each(Ro=>Md(Ro)),I.some(!0)):I.none(),cr=(jr,Ro,ko,_i)=>{const Pi=wi(v),Ao=N.shared.providers.translate(ko),$i=Li("altExecuting"),yi=tO(l,"NodeChange SwitchMode",ks=>{he.set(ks.getComponent(),!l.selection.isEditable())}),Xi=ks=>{he.isDisabled(ks)||jr(!0)};return Rh.sketch({dom:{tag:"button",attributes:{"aria-label":Ao,"data-mce-name":Ro},classes:_i.concat(Ro)},components:[kA(Ro,N.shared.providers.icons)],buttonBehaviours:ei([he.config({}),Vu.config(N.shared.providers.tooltips.getConfig({tooltipText:Ao})),Ka($i,[cp({onSetup:yi,getApi:ft},Pi),j2({getApi:ft},Pi),Lo(nm(),(ks,Ic)=>{(Ic.event.raw.keyCode===ER.space()||Ic.event.raw.keyCode===ER.enter())&&(he.isDisabled(ks)||jr(!1))}),Lo(H1(),Xi),Lo(Gl(),Xi)])]),eventOrder:{[nm()]:[$i,"keying"],[H1()]:[$i,"alloy.base.behaviour"],[Gl()]:[$i,"alloy.base.behaviour"],[Oh()]:["alloy.base.behaviour",$i,"tooltipping"],[zp()]:[$i,"tooltipping"]}})},Xr=ml(cr(jr=>fn(!1,jr),"minus","Decrease font size",[])),br=ml(cr(jr=>Rn(!1,jr),"plus","Increase font size",[])),Fr=ml({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ww.sketch({inputBehaviours:ei([he.config({}),Ka(Lt,[cp({onSetup:qe,getApi:ft},yt),j2({getApi:ft},yt)]),Ka("input-update-display-text",[Lo(Ug,(jr,Ro)=>{Ei.setValue(jr,Ro.event.text)}),Lo(Rm(),jr=>{W.onAction(Ei.getValue(jr))}),Lo(s0(),jr=>{W.onAction(Ei.getValue(jr))})]),ha.config({mode:"special",onEnter:jr=>(Ht(R,!0,!0),I.some(!0)),onEscape:Bn,onUp:jr=>(Rn(!0,!1),I.some(!0)),onDown:jr=>(fn(!0,!1),I.some(!0)),onLeft:(jr,Ro)=>(Ro.cut(),I.none()),onRight:(jr,Ro)=>(Ro.cut(),I.none())})])})],behaviours:ei([Ra.config({}),ha.config({mode:"special",onEnter:er,onSpace:er,onEscape:Bn}),Ka("input-wrapper-events",[Lo(wu(),jr=>{q([Xr,br],Ro=>{const ko=Nt.fromDom(Ro.get(jr).element.dom);_0(ko)&&m1(ko)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(fe)?{"data-mce-name":fe}:{}}},components:[Xr.asSpec(),Fr.asSpec(),br.asSpec()],behaviours:ei([Ra.config({}),ha.config({mode:"flow",focusInside:Mv.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:jr=>_0(jr.element)?I.none():(Md(jr.element),I.some(!0))})])}},Jte="Font sizes",TU=x("Font size {0}"),PR="12pt",ene={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},CU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},tne=(l,N)=>{const W=Math.pow(10,N);return Math.round(l*W)/W},nne=(l,N)=>/[0-9.]+px$/.test(l)?tne(parseInt(l,10)*72/96,N||0)+"pt":Ge(CU,l).getOr(l),rne=l=>Ge(ene,l).getOr(""),AU=l=>{const N=()=>{let yt=I.none();const Lt=ft.data,Ht=l.queryCommandValue("FontSize");if(Ht)for(let fn=3;yt.isNone()&&fn>=0;fn--){const Rn=nne(Ht,fn),Bn=rne(Rn);yt=ce(Lt,er=>er.format===Ht||er.format===Rn||er.format===Bn)}return{matchOpt:yt,size:Ht}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=x(I.none),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontSize",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,size:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),CN(l,{value:fn})},ft=SR(l,"font_size_formats",LS.Space);return{tooltip:o_(l,TU(),PR),text:I.some(PR),icon:I.none(),isSelectedFor:W,getPreviewFor:Se,getCurrentValue:fe,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},one=(l,N)=>tT(l,N,AU(l),TU,"FontSizeTextUpdate","fontsize"),ine=l=>{var N;const W={step:1};return(N={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[l])!==null&&N!==void 0?N:W},ane=16,MU=l=>l>=0,sne=l=>{const N=()=>l.queryCommandValue("FontSize");return{updateInputValue:fe=>sa(fe,Ug,{text:N()}),onAction:(fe,Se)=>l.execCommand("FontSize",!1,fe,{skip_focus:!Se}),getNewValue:(fe,Se)=>{nT(fe,["unsupportedLength","empty"]);const Be=N(),qe=nT(fe,["unsupportedLength","empty"]).or(nT(Be,["unsupportedLength","empty"])),ft=qe.map(Rn=>Rn.value).getOr(ane),yt=v6(l),Lt=qe.map(Rn=>Rn.unit).filter(Rn=>Rn!=="").getOr(yt),Ht=Se(ft,ine(Lt).step),fn=`${MU(Ht)?Ht:ft}${Lt}`;return fn!==Be&&AN(l,{value:fn}),fn}}},lne=(l,N)=>Kte(l,N,sne(l),"fontsizeinput"),cne=(l,N)=>{const W=RS(N,AU(l));l.ui.registry.addNestedMenuItem("fontsize",{text:Jte,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},une="Formats",EU=l=>at(l)?"Formats":"Format {0}",PU=(l,N)=>{const W="Formats",fe=qe=>()=>l.formatter.match(qe),Se=qe=>()=>{const ft=l.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=fn=>q9(fn)?ve(fn.items,ft):K$(fn)?[{title:fn.title,format:fn.format}]:[],yt=ve(Z5(l),ft),Ht=TR(l,x(yt)).fold(x({title:W,tooltipLabel:""}),fn=>({title:fn.title,tooltipLabel:fn.title}));sa(qe,Ug,{text:Ht.title}),hX(l,{value:Ht.tooltipLabel})};return{tooltip:o_(l,EU(""),""),text:I.some(W),icon:I.none(),isSelectedFor:fe,getCurrentValue:I.none,getPreviewFor:Se,onAction:MN(l),updateText:Be,shouldHide:KB(l),isInvalid:qe=>!l.formatter.canApply(qe.format),dataset:N}},fne=(l,N)=>{const W={type:"advanced",...N.styles};return tT(l,N,PU(l,W),EU,"StylesTextUpdate","styles")},RU=(l,N)=>{const W={type:"advanced",...N.styles},fe=RS(N,PU(l,W));l.ui.registry.addNestedMenuItem("styles",{text:une,onSetup:kp(l),getSubmenuItems:()=>fe.items.validateItems(fe.getStyleItems())})},dne=x([pn("toggleClass"),pn("fetch"),Ch("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Ch("onItemExecute"),Yo("lazySink"),pn("dom"),Ss("onOpen"),Pd("splitDropdownBehaviours",[Ku,ha,Ra]),Ar("matchWidth",!1),Ar("useMinWidth",!1),Ar("eventOrder",{}),Yo("role"),Yo("listRole")].concat(oA())),hne=mh({factory:Rh,schema:[pn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(Bm)},buttonBehaviours:ei([us.config({toggleOnExecute:!1,toggleClass:l.toggleClass})])})}),LU=mh({factory:Rh,schema:[pn("dom")],name:"button",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(W=>{l.onExecute(W,N)})}})}),pne=x([hne,LU,mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),Jm({schema:[Um()],name:"menu",defaults:l=>({onExecute:(N,W)=>{N.getSystem().getByUid(l.uid).each(fe=>{l.onItemExecute(fe,N,W)})}})}),JN()]),IU=(l,N,W,fe)=>{const Se=Ht=>{Xs.getCurrent(Ht).each(fn=>{ta.highlightFirst(fn),ha.focusIn(fn)})},Be=Ht=>{b7(l,R,Ht,fe,Se,Gu.HighlightMenuAndItem).get(v)},qe=Ht=>(Be(Ht),I.some(!0)),ft=Ht=>{const fn=gm(Ht,l,"button");return Bm(fn),I.some(!0)},yt={...Rl([wc((Ht,fn)=>{Jo(Ht,l,"aria-descriptor").each(Bn=>{const er=Li("aria");Cr(Bn.element,"id",er),Cr(Ht.element,"aria-describedby",er)})})]),...f6(I.some(Be))},Lt={repositionMenus:Ht=>{us.isOn(Ht)&&tF(Ht)}};return{uid:l.uid,dom:l.dom,components:N,apis:Lt,eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},events:yt,behaviours:Rd(l.splitDropdownBehaviours,[Ku.config({others:{sandbox:Ht=>{const fn=gm(Ht,l,"arrow");return w7(l,Ht,{onOpen:()=>{us.on(fn),us.on(Ht)},onClose:()=>{us.off(fn),us.off(Ht)}})}}}),ha.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),Ra.config({}),us.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:l.role.getOr("button"),"aria-haspopup":!0}}}},rT=Zh({name:"SplitDropdown",configFields:dne(),partFields:pne(),factory:IU,apis:{repositionMenus:(l,N)=>l.repositionMenus(N)}}),DU=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),mne=l=>({setActive:N=>{us.set(l,N)},isActive:()=>us.isOn(l),isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),BU=(l,N)=>l.map(W=>({"aria-label":N.translate(W)})).getOr({}),fO=Li("focus-button"),RR=(l,N,W,fe,Se,Be)=>{const qe=N.map(yt=>ml(m9(yt,"tox-tbtn",Se))),ft=l.map(yt=>ml(K2(yt,Se.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(N.isSome()?["tox-tbtn--select"]:[]),attributes:{...BU(W,Se),...a(Be)?{"data-mce-name":Be}:{}}},components:Kw([ft.map(yt=>yt.asSpec()),qe.map(yt=>yt.asSpec())]),eventOrder:{[Nc()]:["focusing","alloy.base.behaviour",G2],[Oh()]:[G2,"toolbar-group-button-events"]},buttonBehaviours:ei([E1.toolbarButton(Se.isDisabled),Id(),Ka(G2,[wc((yt,Lt)=>h9(yt)),Lo(Ug,(yt,Lt)=>{qe.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[Po(Se.translate(Lt.event.text))])})}),Lo(J2,(yt,Lt)=>{ft.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[K2(Lt.event.icon,Se.icons)])})}),Lo(Nc(),(yt,Lt)=>{Lt.event.prevent(),Za(yt,fO)})])].concat(fe.getOr([])))}},gne=(l,N,W,fe,Se)=>{const Be=N.shared,qe=wi(v),ft={toolbarButtonBehaviours:[],getApi:DU,onSetup:l.onSetup},yt=[Ka("toolbar-group-button-events",[cp(ft,qe),j2(ft,qe)])];return r_.sketch({lazySink:Be.getSink,fetch:()=>Lh.nu(Lt=>{Lt(re(W(l.items),QA))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:RR(l.icon,l.text,l.tooltip,I.some(yt),Be.providers,Se),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:fe}}}})},zU=(l,N,W,fe)=>{var Se;const Be=wi(v),qe=RR(l.icon,l.text,l.tooltip,I.none(),W,fe);return Rh.sketch({dom:qe.dom,components:qe.components,eventOrder:d9,buttonBehaviours:{...ei([Ka("toolbar-button-events",[UK({onAction:l.onAction,getApi:N.getApi}),cp(N,Be),j2(N,Be)]),...l.tooltip.map(ft=>Vu.config(W.tooltips.getConfig({tooltipText:W.translate(ft)+l.shortcut.map(yt=>` (${q6(yt)})`).getOr("")}))).toArray(),E1.toolbarButton(()=>!l.enabled||W.isDisabled()),Id()].concat(N.toolbarButtonBehaviours)),[G2]:(Se=qe.buttonBehaviours)===null||Se===void 0?void 0:Se[G2]}})},vne=(l,N,W)=>NU(l,N,[],W),NU=(l,N,W,fe)=>zU(l,{toolbarButtonBehaviours:W.length>0?[Ka("toolbarButtonWith",W)]:[],getApi:DU,onSetup:l.onSetup},N,fe),yne=(l,N,W)=>FU(l,N,[],W),FU=(l,N,W,fe)=>zU(l,{toolbarButtonBehaviours:[Fa.config({}),us.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(W.length>0?[Ka("toolbarToggleButtonWith",W)]:[]),getApi:mne,onSetup:l.onSetup},N,fe),bne=(l,N,W)=>fe=>Lh.nu(Se=>N.fetch(Se)).map(Se=>I.from(lA(ws(g7(Li("menu-value"),Se,Be=>{N.onItemAction(l(fe),Be)},N.columns,N.presets,A1.CLOSE_ON_EXECUTE,N.select.getOr(D),W),{movement:rA(N.columns,N.presets),menuBehaviours:lS.unnamedEvents(N.columns!=="auto"?[]:[wc((Be,qe)=>{QP(Be,4,kP(N.presets)).each(({numRows:ft,numColumns:yt})=>{ha.setGridSize(Be,ft,yt)})})])})))),LR=(l,N,W)=>{const fe=wi(l.tooltip.getOr("")),Se=ft=>({isEnabled:()=>!he.isDisabled(ft),setEnabled:yt=>he.set(ft,!yt),setIconFill:(yt,Lt)=>{qa(ft.element,`svg path[class="${yt}"], rect[class="${yt}"]`).each(Ht=>{Cr(Ht,"fill",Lt)})},setActive:yt=>{Cr(ft.element,"aria-pressed",yt),qa(ft.element,"span").each(Lt=>{ft.getSystem().getByDom(Lt).each(Ht=>us.set(Ht,yt))})},isActive:()=>qa(ft.element,"span").exists(yt=>ft.getSystem().getByDom(yt).exists(us.isOn)),setText:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,Ug,{text:yt}))),setIcon:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,J2,{icon:yt}))),setTooltip:yt=>{const Lt=N.providers.translate(yt);Cr(ft.element,"aria-label",Lt),fe.set(yt)}}),Be=wi(v),qe={getApi:Se,onSetup:l.onSetup};return rT.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...BU(l.tooltip,N.providers),...a(W)?{"data-mce-name":W}:{}}},onExecute:ft=>{const yt=Se(ft);yt.isEnabled()&&l.onAction(yt)},onItemExecute:(ft,yt,Lt)=>{},splitDropdownBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),Ka("split-dropdown-events",[wc((ft,yt)=>h9(ft)),Lo(fO,Ra.focus),cp(qe,Be),j2(qe,Be)]),bS.config({}),...l.tooltip.map(ft=>Vu.config({...N.providers.tooltips.getConfig({tooltipText:N.providers.translate(ft),onShow:yt=>{if(fe.get()!==ft){const Lt=N.providers.translate(fe.get());Vu.setComponents(yt,N.providers.tooltips.getComponents({tooltipText:Lt}))}}})})).toArray()]),eventOrder:{[Oh()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[zp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:N.getSink,fetch:bne(Se,l,N.providers),parts:{menu:Xk(!1,l.columns,l.presets)},components:[rT.parts.button(RR(l.icon,l.text,I.none(),I.some([us.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),N.providers)),rT.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:yP("chevron-down",N.providers.icons)},buttonBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),E6()])}),rT.parts["aria-descriptor"]({text:N.providers.translate("To open the popup, press Shift+Enter")})]})},xne=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],oT=(l,N)=>(W,fe,Se,Be)=>{const qe=l(W).mapError(ft=>dn(ft)).getOrDie();return N(qe,fe,Se,Be)},$U={button:oT(Wz,(l,N,W,fe)=>vne(l,N.shared.providers,fe)),togglebutton:oT(Yz,(l,N,W,fe)=>yne(l,N.shared.providers,fe)),menubutton:oT(OV,(l,N,W,fe)=>N5(l,"tox-tbtn",N,I.none(),!1,fe)),splitbutton:oT(jee,(l,N,W,fe)=>LR(l,N.shared,fe)),grouptoolbarbutton:oT(X5,(l,N,W,fe)=>{const Se=W.ui.registry.getAll().buttons,Be=ft=>iT(W,{buttons:Se,toolbar:ft,allowToolbarGroups:!1},N,I.none()),qe={[Nb]:N.shared.header.isPositionedAtTop()?ap.TopToBottom:ap.BottomToTop};switch(jw(W)){case C0.floating:return gne(l,N,Be,qe,fe);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},VU=(l,N,W,fe)=>Ge($U,l.type).fold(()=>(console.error("skipping button defined by",l),I.none()),Se=>I.some(Se(l,N,W,fe))),UU={styles:fne,fontsize:one,fontsizeinput:lne,fontfamily:Wte,blocks:jte,align:bU},_ne=l=>{const N=re(xne,W=>{const fe=me(W.items,Se=>ht(l,Se)||ht(UU,Se));return{name:W.name,items:fe}});return me(N,W=>W.items.length>0)},wne=l=>{const N=l.split("|");return re(N,W=>({items:W.trim().split(" ")}))},One=l=>p(l,N=>ht(N,"name")&&ht(N,"items")),Sne=l=>{const N=l.toolbar,W=l.buttons;return N===!1?[]:N===void 0||N===!0?_ne(W):n(N)?wne(N):One(N)?N:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},kne=(l,N,W,fe,Se,Be)=>Ge(N,W.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(N,ft+W.toLowerCase())))).fold(()=>Ge(UU,W.toLowerCase()).map(qe=>qe(l,Se)),qe=>qe.type==="grouptoolbarbutton"&&!fe?(console.warn(`Ignoring the '${W}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):VU(qe,Se,l,W.toLowerCase())),iT=(l,N,W,fe)=>{const Se=Sne(N),Be=re(Se,qe=>{const ft=ve(qe.items,yt=>yt.trim().length===0?[]:kne(l,N.buttons,yt,N.allowToolbarGroups,W,fe).toArray());return{title:I.from(l.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(l,N,W,fe)=>{const Se=N.mainUi.outerContainer,Be=W.toolbar,qe=W.buttons;if(p(Be,n)){const ft=Be.map(yt=>{const Lt={toolbar:yt,buttons:qe,allowToolbarGroups:W.allowToolbarGroups};return iT(l,Lt,fe,I.none())});Lc.setToolbars(Se,ft)}else Lc.setToolbar(Se,iT(l,W,fe,I.none()))},QU=va(),Tne=QU.os.isiOS()&&QU.os.version.major<=12,Cne=(l,N)=>{const{uiMotherships:W}=N,fe=l.dom;let Se=l.getWin();const Be=l.getDoc().documentElement,qe=wi(Qs(Se.innerWidth,Se.innerHeight)),ft=wi(Qs(Be.offsetWidth,Be.offsetHeight)),yt=()=>{const Rn=qe.get();(Rn.left!==Se.innerWidth||Rn.top!==Se.innerHeight)&&(qe.set(Qs(Se.innerWidth,Se.innerHeight)),K6(l))},Lt=()=>{const Rn=l.getDoc().documentElement,Bn=ft.get();(Bn.left!==Rn.offsetWidth||Bn.top!==Rn.offsetHeight)&&(ft.set(Qs(Rn.offsetWidth,Rn.offsetHeight)),K6(l))},Ht=Rn=>{cX(l,Rn)};fe.bind(Se,"resize",yt),fe.bind(Se,"scroll",Ht);const fn=i2(Nt.fromDom(l.getBody()),"load",Lt);l.on("hide",()=>{q(W,Rn=>{xr(Rn.element,"display","none")})}),l.on("show",()=>{q(W,Rn=>{zi(Rn.element,"display")})}),l.on("NodeChange",Lt),l.on("remove",()=>{fn.unbind(),fe.unbind(Se,"resize",yt),fe.unbind(Se,"scroll",Ht),Se=null})},JA=(l,N,W)=>{N2(l)&&Hb(W.mainUi.mothership.element,W.popupUi.mothership),kw(N,W.dialogUi.mothership)};var e8=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=N,ft=wi(0),yt=Be.outerContainer;Bte(l);const Lt=Nt.fromDom(Se.targetNode),Ht=Er(kr(Lt));Hb(Lt,Be.mothership),JA(l,Ht,N),l.on("SkinLoaded",()=>{Lc.setSidebar(yt,W.sidebar,b6(l)),jU(l,N,W,fe),ft.set(l.getWin().innerWidth),Lc.setMenubar(yt,pU(l,W)),Lc.setViews(yt,W.views),Cne(l,N)});const fn=Lc.getSocket(yt).getOrDie("Could not find expected socket element");if(Tne){Oo(fn.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const cr=LK(()=>{l.dispatch("ScrollContent")},20),Xr=ud(fn.element,"scroll",cr.throttle);l.on("remove",Xr.unbind)}HP(l,N),l.addCommand("ToggleSidebar",(cr,Xr)=>{Lc.toggleSidebar(yt,Xr),mX(l)}),l.addQueryValueHandler("ToggleSidebar",()=>{var cr;return(cr=Lc.whichSidebar(yt))!==null&&cr!==void 0?cr:""}),l.addCommand("ToggleView",(cr,Xr)=>{if(Lc.toggleView(yt,Xr)){const br=yt.element;Be.mothership.broadcastOn([_1()],{target:br}),q(qe,Fr=>{Fr.broadcastOn([_1()],{target:br})}),S(Lc.whichView(yt))&&(l.focus(),l.nodeChanged(),Lc.refreshToolbar(yt)),gX(l)}}),l.addQueryValueHandler("ToggleView",()=>{var cr;return(cr=Lc.whichView(yt))!==null&&cr!==void 0?cr:""});const Rn=jw(l),Bn=()=>{Lc.refreshToolbar(N.mainUi.outerContainer)};(Rn===C0.sliding||Rn===C0.floating)&&l.on("ResizeWindow ResizeEditor ResizeContent",()=>{const cr=l.getWin().innerWidth;cr!==ft.get()&&(Bn(),ft.set(cr))});const er={setEnabled:cr=>{cS(N,!cr)},isEnabled:()=>!he.isDisabled(yt)};return{iframeContainer:fn.element.dom,editorContainer:yt.element.dom,api:er}}});const aT=l=>/^[0-9\.]+(|px)$/i.test(""+l)?I.some(parseInt(""+l,10)):I.none(),t8=l=>h(l)?l+"px":l,n8=(l,N,W)=>{const fe=N.filter(Be=>ll>Be);return fe.or(Se).getOr(l)},Ane=l=>{const N=Lk(l),W=eS(l),fe=m6(l);return aT(N).map(Se=>n8(Se,W,fe))},Mne=l=>Ane(l).getOr(Lk(l)),HU=l=>{const N=UE(l),W=Uw(l),fe=Ik(l);return aT(N).map(Se=>n8(Se,W,fe))},Ene=l=>HU(l).getOr(UE(l)),{ToolbarLocation:DS,ToolbarMode:IR}=mz,ZU=40,qU=(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=W,ft=Fw.DOM,yt=tS(l),Lt=Qw(l),Ht=Ik(l).or(HU(l)),fn=fe.shared.header,Rn=fn.isPositionedAtTop,Bn=150,er=jw(l),cr=er===IR.sliding||er===IR.floating,Xr=wi(!1),br=()=>Xr.get()&&!l.removed,Fr=Ui=>cr?Ui.fold(x(0),Ko=>Ko.components().length>1?il(Ko.components()[1].element):0):0,jr=Ui=>{switch(Dk(l)){case DS.auto:const Ko=Lc.getToolbar(Be.outerContainer),Oi=Fr(Ko),La=il(Ui.element)-Oi,_a=cl(N);if(_a.y>La)return"top";{const Qa=Hn(N),ac=Math.max(Qa.dom.scrollHeight,il(Qa));return _a.bottom{Se.on(Ko=>{fc.setModes(Ko,[Ui]),fn.setDockingMode(Ui);const Oi=Rn()?ap.TopToBottom:ap.BottomToTop;Cr(Ko.element,Nb,Oi)})},ko=()=>{Se.on(Ui=>{const Ko=Ht.getOrThunk(()=>Ks().width-iu(N).left-10);xr(Ui.element,"max-width",Ko+"px")})},_i=(Ui,Ko)=>{Se.on(Oi=>{const La=Lc.getToolbar(Be.outerContainer),_a=Fr(La),fa=cl(N),Qa=Pi(l,Be.outerContainer.element),ac=()=>Qa.fold(()=>fa.x,Wh=>{const Wg=cl(Wh);return _o(Wh,Lr())?fa.x:fa.x-Wg.x}),vl=()=>Qa.fold(()=>Rn()?Math.max(fa.y-il(Oi.element)+_a,0):fa.bottom,Wh=>{var Wg;const U0=cl(Wh),km=(Wg=Wh.dom.scrollTop)!==null&&Wg!==void 0?Wg:0,xO=_o(Wh,Lr())?Math.max(fa.y-il(Oi.element)+_a,0):fa.y-U0.y+km-il(Oi.element)+_a;return Rn()?xO:fa.bottom}),dp=ac(),qg=Ot(Ui,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(Wh=>Wh>Bn).map(Wh=>{const Wg=Ko.getOr(yc()),U0=window.innerWidth-(dp-Wg.left),km=Math.max(Math.min(Wh,U0),Bn);return U0N2(Ui)?jh(Ko):I.none(),Ao=()=>{q(qe,Ui=>{Ui.broadcastOn([qb()],{})})},$i=()=>!yt&&(Tc(Be.outerContainer.element).left+ma(Be.outerContainer.element)>=window.innerWidth-ZU||Ia(Be.outerContainer.element,"width").isSome())?(xr(Be.outerContainer.element,"position","absolute"),xr(Be.outerContainer.element,"left","0px"),zi(Be.outerContainer.element,"width"),!0):!1,yi=Ui=>{if(!br())return;yt||ko();const Ko=yc(),Oi=yt?!1:$i();if(cr&&Lc.refreshToolbar(Be.outerContainer),!yt){const La=yc(),_a=Ot(Ko.left!==La.left,Ko);_i(Oi,_a),_a.each(fa=>{Cc(fa.left,La.top)})}Lt&&Se.on(Ui),Ao()},Xi=()=>yt||!Lt||!br()?!1:Se.get().exists(Ui=>{const Ko=fn.getDockingMode(),Oi=jr(Ui);return Oi!==Ko?(Ro(Oi),!0):!1});return{isVisible:br,isPositionedAtTop:Rn,show:()=>{Xr.set(!0),xr(Be.outerContainer.element,"display","flex"),ft.addClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{zi(Ui.element,"display")}),Xi(),N2(l)?yi(Ui=>fc.isDocked(Ui)?fc.reset(Ui):fc.refresh(Ui)):yi(fc.refresh)},hide:()=>{Xr.set(!1),xr(Be.outerContainer.element,"display","none"),ft.removeClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{xr(Ui.element,"display","none")})},update:yi,updateMode:()=>{Xi()&&yi(fc.reset)},repositionPopups:Ao}},DR=(l,N)=>{const W=cl(l);return{pos:N?W.y:W.bottom,bounds:W}},Pne=(l,N,W,fe)=>{const Se=wi(DR(N,W.isPositionedAtTop())),Be=Lt=>{const{pos:Ht,bounds:fn}=DR(N,W.isPositionedAtTop()),{pos:Rn,bounds:Bn}=Se.get(),er=fn.height!==Bn.height||fn.width!==Bn.width;Se.set({pos:Ht,bounds:fn}),er&&K6(l,Lt),W.isVisible()&&(Rn!==Ht?W.update(fc.reset):er&&(W.updateMode(),W.repositionPopups()))};fe||(l.on("activate",W.show),l.on("deactivate",W.hide)),l.on("SkinLoaded ResizeWindow",()=>W.update(fc.reset)),l.on("NodeChange keydown",Lt=>{requestAnimationFrame(()=>Be(Lt))});let qe=0;const ft=o9(()=>W.update(fc.refresh),33);l.on("ScrollWindow",()=>{const Lt=yc().left;Lt!==qe&&(qe=Lt,ft.throttle()),W.updateMode()}),N2(l)&&l.on("ElementScroll",Lt=>{W.update(fc.refresh)});const yt=Ol();yt.set(i2(Nt.fromDom(l.getBody()),"load",Lt=>Be(Lt.raw))),l.on("remove",()=>{yt.clear()})};var Lne=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be}=N,qe=ds(),ft=Nt.fromDom(Se.targetNode),yt=qU(l,ft,N,fe,qe),Lt=tz(l);zte(l);const Ht=()=>{if(qe.isSet()){yt.show();return}qe.set(Lc.getHeader(Be.outerContainer).getOrDie());const Rn=GE(l);N2(l)?(Hb(ft,Be.mothership),Hb(ft,N.popupUi.mothership)):kw(Rn,Be.mothership),kw(Rn,N.dialogUi.mothership);const Bn=()=>{jU(l,N,W,fe),Lc.setMenubar(Be.outerContainer,pU(l,W)),yt.show(),Pne(l,ft,yt,Lt),l.nodeChanged()};Lt?l.once("SkinLoaded",Bn):Bn()};l.on("show",Ht),l.on("hide",yt.hide),Lt||(l.on("focus",Ht),l.on("blur",yt.hide)),l.on("init",()=>{(l.hasFocus()||Lt)&&Ht()}),HP(l,N);const fn={show:Ht,hide:yt.hide,setEnabled:Rn=>{cS(N,!Rn)},isEnabled:()=>!he.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:fn}}});const Ine=()=>{const l=ds(),N=ds(),W=ds();return{dialogUi:l,popupUi:N,mainUi:W,getUiMotherships:()=>{const Be=l.get().map(ft=>ft.mothership),qe=N.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],yt=>_o(ft.element,yt.element)?[ft]:[ft,yt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>W.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},Dne="contexttoolbar-show",WU="contexttoolbar-hide",Bne=l=>({hide:()=>Za(l,Z1()),getValue:()=>Ei.getValue(l)}),BS=(l,N)=>Lo(d$,(W,fe)=>{const Se=l.get(W),Be=Bne(Se);N.onAction(Be,fe.event.buttonApi)}),zne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Wz({...Se,type:"button",onAction:v}));return NU(Be,W,[BS(l,N)])},Nne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Yz({...Se,type:"togglebutton",onAction:v}));return FU(Be,W,[BS(l,N)])},Fne=l=>l.type==="contextformtogglebutton",YU=(l,N,W)=>Fne(N)?Nne(l,N,W):zne(l,N,W),$ne=(l,N,W)=>{const fe=re(N,qe=>ml(YU(l,qe,W)));return{asSpecs:()=>re(fe,qe=>qe.asSpec()),findPrimary:qe=>Oe(N,(ft,yt)=>ft.primary?I.from(fe[yt]).bind(Lt=>Lt.getOpt(qe)).filter(P(he.isDisabled)):I.none())}},BR=(l,N)=>{const W=l.label.fold(()=>({}),Be=>({"aria-label":Be})),fe=ml(Ww.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:l.initValue(),inputAttributes:W,selectOnFocus:!0,inputBehaviours:ei([ha.config({mode:"special",onEnter:Be=>Se.findPrimary(Be).map(qe=>(Bm(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),Se=$ne(fe,l.commands,N);return[{title:I.none(),items:[fe.asSpec()]},{title:I.none(),items:Se.asSpecs()}]},Vne={renderContextForm:(l,N,W)=>HA({type:l,uid:Li("context-toolbar"),initGroups:BR(N,W),onEscape:I.none,cyclicKeying:!0,providers:W}),buildInitGroups:BR},XU=(l,N,W)=>N.bottom-l.y>=W&&l.bottom-N.y>=W,Une=l=>{const N=l.getBoundingClientRect();if(N.height<=0&&N.width<=0){const W=Yn(Nt.fromDom(l.startContainer),l.startOffset).element;return(zr(W)?Dr(W):I.some(W)).filter(lr).map(Se=>Se.dom.getBoundingClientRect()).getOr(N)}else return N},zR=l=>{const N=l.selection.getRng(),W=Une(N);if(l.inline){const fe=yc();return vs(fe.left+W.left,fe.top+W.top,W.width,W.height)}else{const fe=bc(Nt.fromDom(l.getBody()));return vs(fe.x+W.left,fe.y+W.top,W.width,W.height)}},sT=(l,N)=>N.filter(W=>Gn(W)&&sr(W)).map(bc).getOrThunk(()=>zR(l)),GU=(l,N,W)=>{const fe=Math.max(l.x+W,N.x),Se=Math.min(l.right-W,N.right);return{x:fe,width:Se-fe}},jne=(l,N,W,fe,Se,Be)=>{const qe=Nt.fromDom(l.getContainer()),ft=qa(qe,".tox-editor-header").getOr(qe),yt=cl(ft),Lt=yt.y>=N.bottom,Ht=fe&&!Lt;if(l.inline&&Ht)return{y:Math.max(yt.bottom+Be,W.y),bottom:W.bottom};if(l.inline&&!Ht)return{y:W.y,bottom:Math.min(yt.y-Be,W.bottom)};const fn=Se==="line"?cl(qe):N;return Ht?{y:Math.max(yt.bottom+Be,W.y),bottom:Math.min(fn.bottom-Be,W.bottom)}:{y:Math.max(fn.y+Be,W.y),bottom:Math.min(yt.y-Be,W.bottom)}},KU=(l,N,W,fe=0)=>{const Se=Ks(window),Be=cl(Nt.fromDom(l.getContentAreaContainer())),qe=x6(l)||Nk(l)||Fk(l),{x:ft,width:yt}=GU(Be,Se,fe);if(l.inline&&!qe)return vs(ft,Se.y,yt,Se.height);{const Lt=N.header.isPositionedAtTop(),{y:Ht,bottom:fn}=jne(l,Be,Se,Lt,W,fe);return vs(ft,Ht,yt,fn-Ht)}},lT=12,r8={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},NR={maxHeightFunction:v1(),maxWidthFunction:ES()},JU=(l,N)=>{const W=l.selection.getRng(),fe=Yn(Nt.fromDom(W.startContainer),W.startOffset);return W.startContainer===W.endContainer&&W.startOffset===W.endOffset-1&&_o(fe.element,N)},Qne=(l,N,W)=>{const fe=Ia(l,"position");xr(l,"position",N);const Se=W(l);return fe.each(Be=>xr(l,"position",Be)),Se},dO=l=>l==="node",o8=(l,N,W,fe,Se)=>{const Be=zR(l),qe=fe.lastElement().exists(ft=>_o(W,ft));if(JU(l,W))return qe?W$:ng;if(qe)return Qne(N,fe.getMode(),()=>XU(Be,cl(N),-20)&&!fe.isReposition()?Y$:W$);{const ft=fe.getMode()==="fixed"?Se.y+yc().top:Se.y,yt=il(N)+lT;return ft+yt<=Be.y?ng:CS}},i8=(l,N,W,fe)=>{const Se=yt=>(Lt,Ht,fn,Rn,Bn)=>{const er=o8(l,Rn,yt,W,Bn),cr={...Lt,y:Bn.y,height:Bn.height};return{...er(cr,Ht,fn,Rn,Bn),alwaysFit:!0}},Be=yt=>dO(fe)?[Se(yt)]:[];return N?{onLtr:yt=>[Iu,Lu,$c,dl,Mf,du].concat(Be(yt)),onRtl:yt=>[Iu,$c,Lu,Mf,dl,du].concat(Be(yt))}:{onLtr:yt=>[du,Iu,dl,Lu,Mf,$c].concat(Be(yt)),onRtl:yt=>[du,Iu,Mf,$c,dl,Lu].concat(Be(yt))}},FR=(l,N,W,fe)=>N==="line"?{bubble:wp(lT,0,r8),layouts:{onLtr:()=>[vv],onRtl:()=>[h1]},overrides:NR}:{bubble:wp(0,lT,r8,1/lT),layouts:i8(l,W,fe,N),overrides:NR},cT=(l,N)=>{const W=me(N,Be=>Be.predicate(l.dom)),{pass:fe,fail:Se}=ee(W,Be=>Be.type==="contexttoolbar");return{contextToolbars:fe,contextForms:Se}},ej=l=>{if(l.length<=1)return l;{const N=Be=>te(l,qe=>qe.position===Be),W=Be=>me(l,qe=>qe.position===Be),fe=N("selection"),Se=N("node");if(fe||Se)if(Se&&fe){const Be=W("node"),qe=re(W("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return W(fe?"selection":"node");else return W("line")}},a8=l=>{if(l.length<=1)return l;{const N=fe=>ce(l,Se=>Se.position===fe);return N("selection").orThunk(()=>N("node")).orThunk(()=>N("line")).map(fe=>fe.position).fold(()=>[],fe=>me(l,Se=>Se.position===fe))}},tj=(l,N,W)=>{const fe=cT(l,N);if(fe.contextForms.length>0)return I.some({elem:l,toolbars:[fe.contextForms[0]]});{const Se=cT(l,W);if(Se.contextForms.length>0)return I.some({elem:l,toolbars:[Se.contextForms[0]]});if(fe.contextToolbars.length>0||Se.contextToolbars.length>0){const Be=ej(fe.contextToolbars.concat(Se.contextToolbars));return I.some({elem:l,toolbars:Be})}else return I.none()}},nj=(l,N,W)=>l(N)?I.none():Hc(N,fe=>{if(lr(fe)){const{contextToolbars:Se,contextForms:Be}=cT(fe,W.inNodeScope),qe=Be.length>0?Be:a8(Se);return qe.length>0?I.some({elem:fe,toolbars:qe}):I.none()}else return I.none()},l),$R=(l,N)=>{const W=Nt.fromDom(N.getBody()),fe=qe=>_o(qe,W),Se=qe=>!fe(qe)&&!$o(W,qe),Be=Nt.fromDom(N.selection.getNode());return Se(Be)?I.none():tj(Be,l.inNodeScope,l.inEditorScope).orThunk(()=>nj(fe,Be,l))},Hne=(l,N)=>{const W={},fe=[],Se=[],Be={},qe={},ft=(Ht,fn)=>{const Rn=Mt(QY(fn));W[Ht]=Rn,Rn.launch.map(Bn=>{Be["form:"+Ht]={...fn.launch,type:Bn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{N(Rn)}}}),Rn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn},yt=(Ht,fn)=>{t5(fn).each(Rn=>{fn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn})},Lt=ke(l);return q(Lt,Ht=>{const fn=l[Ht];fn.type==="contextform"?ft(Ht,fn):fn.type==="contexttoolbar"&&yt(Ht,fn)}),{forms:W,inNodeScope:fe,inEditorScope:Se,lookupTable:qe,formNavigators:Be}},VR=Li("forward-slide"),rj=Li("backward-slide"),UR=Li("change-slide-event"),zS="tox-pop--resizing",oj=l=>{const N=wi([]);return Xc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:W=>{N.set([]),Xc.getContent(W).each(fe=>{zi(fe.element,"visibility")}),Zc(W.element,zS),zi(W.element,"width")},inlineBehaviours:ei([Ka("context-toolbar-events",[ly(rm(),(W,fe)=>{fe.event.raw.propertyName==="width"&&(Zc(W.element,zS),zi(W.element,"width"))}),Lo(UR,(W,fe)=>{const Se=W.element;zi(Se,"width");const Be=_s(Se);Xc.setContent(W,fe.event.contents),uc(Se,zS);const qe=_s(Se);xr(Se,"width",Be+"px"),Xc.getContent(W).each(ft=>{fe.event.focus.bind(yt=>(Md(yt),Wd(Se))).orThunk(()=>(ha.focusIn(ft),um(kr(Se))))}),setTimeout(()=>{xr(W.element,"width",qe+"px")},0)}),Lo(VR,(W,fe)=>{Xc.getContent(W).each(Se=>{N.set(N.get().concat([{bar:Se,focus:um(kr(W.element))}]))}),sa(W,UR,{contents:fe.event.forwardContents,focus:I.none()})}),Lo(rj,(W,fe)=>{Ve(N.get()).each(Se=>{N.set(N.get().slice(0,N.get().length-1)),sa(W,UR,{contents:ea(Se.bar),focus:Se.focus})})})]),ha.config({mode:"special",onEscape:W=>Ve(N.get()).fold(()=>l.onEscape(),fe=>(Za(W,rj),I.some(!0)))})]),lazySink:()=>aa.value(l.sink)})},jR="tox-pop--transition",Zne=(l,N,W,fe)=>{const Se=fe.backstage,Be=Se.shared,qe=va().deviceType.isTouch,ft=ds(),yt=ds(),Lt=ds(),Ht=ka(oj({sink:W,onEscape:()=>(l.focus(),I.some(!0))})),fn=()=>{const yi=Lt.get().getOr("node"),Xi=dO(yi)?1:0;return KU(l,Be,yi,Xi)},Rn=()=>!l.removed&&!(qe()&&Se.isContextMenuOpen()),Bn=yi=>St(ln(yi,ft.get(),_o),!0),er=()=>{if(Rn()){const yi=fn(),Xi=St(Lt.get(),"node")?sT(l,ft.get()):zR(l);return yi.height<=0||!XU(Xi,yi,.01)}else return!0},cr=()=>{ft.clear(),yt.clear(),Lt.clear(),Xc.hide(Ht)},Xr=()=>{if(Xc.isOpen(Ht)){const yi=Ht.element;zi(yi,"display"),er()?xr(yi,"display","none"):(yt.set(0),Xc.reposition(Ht))}},br=yi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[yi],behaviours:ei([ha.config({mode:"acyclic"}),Ka("pop-dialog-wrap-events",[wc(Xi=>{l.shortcuts.add("ctrl+F9","focus statusbar",()=>ha.focusIn(Xi))}),xg(Xi=>{l.shortcuts.remove("ctrl+F9")})])])}),Fr=Uc(()=>Hne(N,yi=>{const Xi=ko([yi]);sa(Ht,VR,{forwardContents:br(Xi)})})),jr=(yi,Xi)=>iT(l,{buttons:yi,toolbar:Xi.items,allowToolbarGroups:!1},fe.backstage,I.some(["form:"])),Ro=(yi,Xi)=>Vne.buildInitGroups(yi,Xi),ko=yi=>{const{buttons:Xi}=l.ui.registry.getAll(),ks=Fr(),Ic={...Xi,...ks.formNavigators},hl=jw(l)===C0.scrolling?C0.scrolling:C0.default,Ui=ye(re(yi,Ko=>Ko.type==="contexttoolbar"?jr(Ic,Ko):Ro(Ko,Be.providers)));return HA({type:hl,uid:Li("context-toolbar"),initGroups:Ui,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},_i=(yi,Xi)=>{const ks=yi==="node"?Be.anchors.node(Xi):Be.anchors.cursor(),Ic=FR(l,yi,qe(),{lastElement:ft.get,isReposition:()=>St(yt.get(),0),getMode:()=>Ph.getMode(W)});return ws(ks,Ic)},Pi=(yi,Xi)=>{if($i.cancel(),!Rn())return;const ks=ko(yi),Ic=yi[0].position,hl=_i(Ic,Xi);Lt.set(Ic),yt.set(1);const Ui=Ht.element;zi(Ui,"display"),Bn(Xi)||(Zc(Ui,jR),Ph.reset(W,Ht)),Xc.showWithinBounds(Ht,br(ks),{anchor:hl,transition:{classes:[jR],mode:"placement"}},()=>I.some(fn())),Xi.fold(ft.clear,ft.set),er()&&xr(Ui,"display","none")};let Ao=!1;const $i=o9(()=>{if(!(!l.hasFocus()||l.removed||Ao))if(rp(Ht.element,jR))$i.throttle();else{const yi=Fr();$R(yi,l).fold(cr,Xi=>{Pi(Xi.toolbars,I.some(Xi.elem))})}},17);l.on("init",()=>{l.on("remove",cr),l.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Xr),l.on("click keyup focus SetContent",$i.throttle),l.on(WU,cr),l.on(Dne,yi=>{const Xi=Fr();Ge(Xi.lookupTable,yi.toolbarKey).each(ks=>{Pi([ks],Ot(yi.target!==l,yi.target)),Xc.getContent(Ht).each(ha.focusIn)})}),l.on("focusout",yi=>{J3.setEditorTimeout(l,()=>{Wd(W.element).isNone()&&Wd(Ht.element).isNone()&&cr()},0)}),l.on("SwitchMode",()=>{l.mode.isReadOnly()&&cr()}),l.on("ExecCommand",({command:yi})=>{yi.toLowerCase()==="toggleview"&&cr()}),l.on("AfterProgressState",yi=>{yi.state?cr():l.hasFocus()&&$i.throttle()}),l.on("dragstart",()=>{Ao=!0}),l.on("dragend drop",()=>{Ao=!1}),l.on("NodeChange",yi=>{Wd(Ht.element).fold($i.throttle,v)})})},qne=l=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],W=>{l.ui.registry.addToggleButton(W.name,{tooltip:W.text,icon:W.icon,onAction:tg(l,W.cmd),onSetup:eA(l,W.name)})}),l.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:kp(l),onAction:tg(l,"JustifyNone")})},ij=(l,N)=>{const W=()=>{const fe=N.getOptions(l),Se=N.getCurrent(l).map(N.hash),Be=ds();return re(fe,qe=>({type:"togglemenuitem",text:N.display(qe),onSetup:ft=>{const yt=Ht=>{Ht&&(Be.on(fn=>fn.setActive(!1)),Be.set(ft)),ft.setActive(Ht)};yt(St(Se,N.hash(qe)));const Lt=N.watcher(l,qe,yt);return()=>{Be.clear(),Lt()}},onAction:()=>N.setCurrent(l,qe)}))};l.ui.registry.addMenuButton(N.name,{tooltip:N.text,icon:N.icon,fetch:fe=>fe(W()),onSetup:N.onToolbarSetup}),l.ui.registry.addNestedMenuItem(N.name,{type:"nestedmenuitem",text:N.text,getSubmenuItems:W,onSetup:N.onMenuSetup})},Wne=l=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:hz,hash:N=>Gte(N,["fixed","relative","empty"]).getOr(N),display:R,watcher:(N,W,fe)=>N.formatter.formatChanged("lineheight",fe,!1,{value:W}).unbind,getCurrent:N=>I.from(N.queryCommandValue("LineHeight")),setCurrent:(N,W)=>N.execCommand("LineHeight",!1,W),onToolbarSetup:kp(l),onMenuSetup:kp(l)}),aj=l=>I.from(JB(l)).map(W=>({name:"language",text:"Language",icon:"language",getOptions:x(W),hash:fe=>y(fe.customCode)?fe.code:`${fe.code}/${fe.customCode}`,display:fe=>fe.title,watcher:(fe,Se,Be)=>{var qe;return fe.formatter.formatChanged("lang",Be,!1,{value:Se.code,customValue:(qe=Se.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:fe=>{const Se=Nt.fromDom(fe.selection.getNode());return Nl(Se,Be=>I.some(Be).filter(lr).bind(qe=>Eo(qe,"lang").map(yt=>{const Lt=Eo(qe,"data-mce-lang").getOrUndefined();return{code:yt,customCode:Lt,title:""}})))},setCurrent:(fe,Se)=>fe.execCommand("Lang",!1,Se),onToolbarSetup:fe=>{const Se=Ol();return fe.setActive(l.formatter.match("lang",{},void 0,!0)),Se.set(l.formatter.formatChanged("lang",fe.setActive,!0)),J6(Se.clear,kp(l)(fe))},onMenuSetup:kp(l)})),sj=l=>{ij(l,Wne(l)),aj(l).each(N=>ij(l,N))},lj=(l,N)=>{i_(l,N),Yte(l,N),RU(l,N),Qte(l,N),cne(l,N)},cj=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.queryCommandState("outdent")&&l.selection.isEditable())}),Yne=l=>{l.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:cj(l),onAction:tg(l,"outdent")}),l.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:kp(l),onAction:tg(l,"indent")})},uj=l=>{Yne(l)},QR=(l,N)=>W=>{W.setActive(N.get());const fe=Se=>{N.set(Se.state),W.setActive(Se.state)};return l.on("PastePlainTextToggle",fe),J6(()=>l.off("PastePlainTextToggle",fe),kp(l)(W))},Xne=l=>{const N=wi(qE(l)),W=()=>l.execCommand("mceTogglePlainTextPaste");l.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:W,onSetup:QR(l,N)}),l.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:W,onSetup:QR(l,N)})},fj=(l,N)=>()=>{l.execCommand("mceToggleFormat",!1,N)},Gne=l=>{hx.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(N,W)=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:eA(l,N.name),onAction:fj(l,N.name),shortcut:N.shortcut})});for(let N=1;N<=6;N++){const W="h"+N,fe=`Access+${N}`;l.ui.registry.addToggleButton(W,{text:W.toUpperCase(),tooltip:"Heading "+N,onSetup:eA(l,W),onAction:fj(l,W),shortcut:fe})}},Kne=l=>{hx.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),shortcut:N.shortcut})}),hx.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:kp(l),onAction:tg(l,N.action)})})},Jne=l=>{hx.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],N=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),onSetup:eA(l,N.name)})})},ere=l=>{Gne(l),Kne(l),Jne(l)},tre=l=>{hx.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onAction:tg(l,N.action)})}),hx.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onSetup:kp(l),onAction:tg(l,N.action)})}),l.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:kp(l),onAction:fj(l,"code")})},nre=l=>{ere(l),tre(l)},s8=(l,N)=>tO(l,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",W=>{W.setEnabled(!l.mode.isReadOnly()&&l.undoManager[N]())}),rre=l=>{l.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:s8(l,"hasUndo"),onAction:tg(l,"undo")}),l.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:s8(l,"hasRedo"),onAction:tg(l,"redo")})},ore=l=>{l.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:s8(l,"hasUndo"),onAction:tg(l,"undo"),shortcut:"Meta+Z"}),l.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:s8(l,"hasRedo"),onAction:tg(l,"redo"),shortcut:"Meta+Y"})},ire=l=>{rre(l),ore(l)},are=l=>tO(l,"VisualAid",N=>{N.setActive(l.hasVisual)}),sre=l=>{l.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:are(l),onAction:tg(l,"mceToggleVisualAid")})},lre=l=>{l.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:tg(l,"mceToggleVisualAid")})},dj=l=>{lre(l),sre(l)},cre=(l,N)=>{qne(l),nre(l),lj(l,N),ire(l),kX(l),dj(l),uj(l),sj(l),Xne(l)},ure=l=>n(l)?l.split(/[ ,]/):l,hj=l=>N=>N.options.get(l),fre=l=>{const N=l.options.register;N("contextmenu_avoid_overlap",{processor:"string",default:""}),N("contextmenu_never_use_native",{processor:"boolean",default:!1}),N("contextmenu",{processor:W=>W===!1?{value:[],valid:!0}:n(W)||p(W,n)?{value:ure(W),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},pj=hj("contextmenu_never_use_native"),dre=hj("contextmenu_avoid_overlap"),hre=l=>mj(l).length===0,mj=l=>{const N=l.ui.registry.getAll().contextMenus,W=l.options.get("contextmenu");return l.options.isSet("contextmenu")?W:me(W,fe=>ht(N,fe))},uT=(l,N)=>({type:"makeshift",x:l,y:N}),HR=(l,N,W)=>uT(l.x+N,l.y+W),gj=l=>l.type==="longpress"||l.type.indexOf("touch")===0,pre=l=>{if(gj(l)){const N=l.touches[0];return uT(N.pageX,N.pageY)}else return uT(l.pageX,l.pageY)},ZR=l=>{if(gj(l)){const N=l.touches[0];return uT(N.clientX,N.clientY)}else return uT(l.clientX,l.clientY)},vj=(l,N)=>{const W=Fw.DOM.getPos(l);return HR(N,W.x,W.y)},yj=(l,N)=>N.type==="contextmenu"||N.type==="longpress"?l.inline?pre(N):vj(l.getContentAreaContainer(),ZR(N)):bj(l),bj=l=>({type:"selection",root:Nt.fromDom(l.selection.getNode())}),mre=l=>({type:"node",node:I.some(Nt.fromDom(l.selection.getNode())),root:Nt.fromDom(l.getBody())}),xj=(l,N,W)=>{switch(W){case"node":return mre(l);case"point":return yj(l,N);case"selection":return bj(l)}},gre=(l,N,W,fe,Se,Be)=>{const qe=W(),ft=xj(l,N,Be);OS(qe,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!1,search:I.none()}).map(yt=>{N.preventDefault(),Xc.showMenuAt(Se,{anchor:ft},{menu:{markers:qw("normal")},data:yt})})},vre={onLtr:()=>[Iu,Lu,$c,dl,Mf,du,ng,CS,TS,RA,Q5,PA],onRtl:()=>[Iu,$c,Lu,Mf,dl,du,ng,CS,Q5,PA,TS,RA]},qR=12,yre={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},_j=(l,N)=>{const W=l.selection;if(W.isCollapsed()||N.touches.length<1)return!1;{const fe=N.touches[0],Se=W.getRng();return Ef(l.getWin(),Cy.domRange(Se)).exists(qe=>qe.left<=fe.clientX&&qe.right>=fe.clientX&&qe.top<=fe.clientY&&qe.bottom>=fe.clientY)}},bre=l=>{const N=l.selection.getRng(),W=()=>{J3.setEditorTimeout(l,()=>{l.selection.setRng(N)},10),Be()};l.once("touchend",W);const fe=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};l.on("mousedown",fe,!0);const Se=()=>Be();l.once("longpresscancel",Se);const Be=()=>{l.off("touchend",W),l.off("longpresscancel",Se),l.off("mousedown",fe)}},xre=(l,N,W)=>{const fe=xj(l,N,W);return{bubble:wp(0,W==="point"?qR:0,yre),layouts:vre,overrides:{maxWidthFunction:ES(),maxHeightFunction:v1()},...fe}},WR=(l,N,W,fe,Se,Be,qe)=>{const ft=xre(l,N,Be);OS(W,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!0,search:I.none()}).map(yt=>{N.preventDefault();const Lt=qe?Gu.HighlightMenuAndItem:Gu.HighlightNone;Xc.showMenuWithinBounds(Se,{anchor:ft},{menu:{markers:qw("normal"),highlightOnOpen:Lt},data:yt,type:"horizontal"},()=>I.some(KU(l,fe.shared,Be==="node"?"node":"selection"))),l.dispatch(WU)})},_re=(l,N,W,fe,Se,Be)=>{const qe=va(),ft=qe.os.isiOS(),yt=qe.os.isMacOS(),Lt=qe.os.isAndroid(),Ht=qe.deviceType.isTouch(),fn=()=>!(Lt||ft||yt&&Ht),Rn=()=>{const Bn=W();WR(l,N,Bn,fe,Se,Be,fn())};if((yt||ft)&&Be!=="node"){const Bn=()=>{bre(l),Rn()};_j(l,N)?Bn():(l.once("selectionchange",Bn),l.once("touchend",()=>l.off("selectionchange",Bn)))}else Rn()},YR=l=>n(l)?l==="|":l.type==="separator",XR={type:"separator"},wj=l=>{const N=W=>({text:W.text,icon:W.icon,enabled:W.enabled,shortcut:W.shortcut});if(n(l))return l;switch(l.type){case"separator":return XR;case"submenu":return{type:"nestedmenuitem",...N(l),getSubmenuItems:()=>{const fe=l.getSubmenuItems();return n(fe)?fe:re(fe,wj)}};default:const W=l;return{type:"menuitem",...N(W),onAction:_(W.onAction)}}},l8=(l,N)=>{if(N.length===0)return l;const fe=Ve(l).filter(Se=>!YR(Se)).fold(()=>[],Se=>[XR]);return l.concat(fe).concat(N).concat([XR])},wre=(l,N,W)=>{const fe=se(N,(Se,Be)=>Ge(l,Be.toLowerCase()).map(qe=>{const ft=qe.update(W);if(n(ft)&&it(Dt(ft)))return l8(Se,ft.split(" "));if(i(ft)&&ft.length>0){const yt=re(ft,wj);return l8(Se,yt)}else return Se}).getOrThunk(()=>Se.concat([Be])),[]);return fe.length>0&&YR(fe[fe.length-1])&&fe.pop(),fe},Ore=(l,N)=>N.ctrlKey&&!pj(l),Sre=l=>l.type==="longpress"||ht(l,"touches"),Oj=(l,N)=>!Sre(N)&&(N.button!==2||N.target===l.getBody()&&N.pointerType===""),Sj=(l,N)=>Oj(l,N)?l.selection.getStart(!0):N.target,kj=(l,N)=>{const W=dre(l),fe=Oj(l,N)?"selection":"point";if(it(W)){const Se=Sj(l,N);return f5(Nt.fromDom(Se),W)?"node":fe}else return fe},kre=(l,N,W)=>{const Se=va().deviceType.isTouch,Be=ka(Xc.sketch({dom:{tag:"div"},lazySink:N,onEscape:()=>l.focus(),onShow:()=>W.setContextMenuState(!0),onHide:()=>W.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissContextMenu",[Lo(J0(),(yt,Lt)=>{Ys.close(yt),l.focus()})])])})),qe=()=>Xc.hide(Be),ft=yt=>{if(pj(l)&&yt.preventDefault(),Ore(l,yt)||hre(l))return;const Lt=kj(l,yt),Ht=()=>{const Rn=Sj(l,yt),Bn=l.ui.registry.getAll(),er=mj(l);return wre(Bn.contextMenus,er,Rn)};(Se()?_re:gre)(l,yt,Ht,W,Be,Lt)};l.on("init",()=>{const yt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(Se()?"":" ResizeWindow");l.on(yt,qe),l.on("longpress contextmenu",ft)})},GR=Nn.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),c8=l=>N=>N.translate(-l.left,-l.top),u8=l=>N=>N.translate(l.left,l.top),mx=l=>(N,W)=>se(l,(fe,Se)=>Se(fe),Qs(N,W)),f8=(l,N,W)=>l.fold(mx([u8(W),c8(N)]),mx([c8(N)]),mx([])),NS=(l,N,W)=>l.fold(mx([u8(W)]),mx([]),mx([u8(N)])),Tj=(l,N,W)=>l.fold(mx([]),mx([c8(W)]),mx([u8(N),c8(W)])),Cj=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be);return Math.abs(qe.left-ft.left)<=W&&Math.abs(qe.top-ft.top)<=fe},Tre=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be),yt=Math.abs(qe.left-ft.left),Lt=Math.abs(qe.top-ft.top);return Qs(yt,Lt)},KR=(l,N,W)=>{const fe=l.fold((Se,Be)=>({position:I.some("absolute"),left:I.some(Se+"px"),top:I.some(Be+"px")}),(Se,Be)=>({position:I.some("absolute"),left:I.some(Se-W.left+"px"),top:I.some(Be-W.top+"px")}),(Se,Be)=>({position:I.some("fixed"),left:I.some(Se+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...fe}},Cre=(l,N,W)=>l.fold((fe,Se)=>d8(fe+N,Se+W),(fe,Se)=>Qg(fe+N,Se+W),(fe,Se)=>a_(fe+N,Se+W)),JR=(l,N,W,fe)=>{const Se=(Be,qe)=>(ft,yt)=>{const Lt=Be(N,W,fe);return qe(ft.getOr(Lt.left),yt.getOr(Lt.top))};return l.fold(Se(Tj,d8),Se(NS,Qg),Se(f8,a_))},d8=GR.offset,Qg=GR.absolute,a_=GR.fixed,Aj=(l,N)=>{const W=Nr(l,N);return y(W)?NaN:parseInt(W,10)},Are=(l,N)=>{const W=l.element,fe=Aj(W,N.leftAttr),Se=Aj(W,N.topAttr);return isNaN(fe)||isNaN(Se)?I.none():I.some(Qs(fe,Se))},Mre=(l,N,W)=>{const fe=l.element;Cr(fe,N.leftAttr,W.left+"px"),Cr(fe,N.topAttr,W.top+"px")},Ere=(l,N)=>{const W=l.element;Qt(W,N.leftAttr),Qt(W,N.topAttr)},Mj=(l,N,W,fe)=>Are(l,N).fold(()=>W,Se=>a_(Se.left+fe.left,Se.top+fe.top)),Pre=(l,N,W,fe,Se,Be)=>{const qe=Mj(l,N,W,fe),ft=N.mustSnap?Lre(l,N,qe,Se,Be):Ire(l,N,qe,Se,Be),yt=f8(qe,Se,Be);return Mre(l,N,yt),ft.fold(()=>({coord:a_(yt.left,yt.top),extra:I.none()}),Lt=>({coord:Lt.output,extra:Lt.extra}))},Rre=(l,N)=>{Ere(l,N)},Ej=(l,N,W,fe)=>Oe(l,Se=>{const Be=Se.sensor;return Cj(N,Be,Se.range.left,Se.range.top,W,fe)?I.some({output:JR(Se.output,N,W,fe),extra:Se.extra}):I.none()}),Lre=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Ej(Be,W,fe,Se).orThunk(()=>se(Be,(yt,Lt)=>{const Ht=Lt.sensor,fn=Tre(W,Ht,Lt.range.left,Lt.range.top,fe,Se);return yt.deltas.fold(()=>({deltas:I.some(fn),snap:I.some(Lt)}),Rn=>{const Bn=(fn.left+fn.top)/2,er=(Rn.left+Rn.top)/2;return Bn<=er?{deltas:I.some(fn),snap:I.some(Lt)}:yt})},{deltas:I.none(),snap:I.none()}).snap.map(yt=>({output:JR(yt.output,W,fe,Se),extra:yt.extra})))},Ire=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Ej(Be,W,fe,Se)},Dre=(l,N,W)=>({coord:JR(l.output,l.output,N,W),extra:l.extra});var Bre=Object.freeze({__proto__:null,snapTo:(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=Dre(fe,qe,ft),Lt=KR(yt.coord,qe,ft);mi(Se,Lt)}}});const eL="data-initial-z-index",zre=l=>{Dr(l.element).filter(lr).each(N=>{Eo(N,eL).fold(()=>zi(N,"z-index"),W=>xr(N,"z-index",W)),Qt(N,eL)})},Pj=l=>{Dr(l.element).filter(lr).each(N=>{Ia(N,"z-index").each(W=>{Cr(N,eL,W)}),xr(N,"z-index",Di(l.element,"z-index"))})},tL=(l,N)=>{l.getSystem().addToGui(N),Pj(N)},Nre=l=>{zre(l),l.getSystem().removeFromGui(l)},FS=(l,N,W)=>l.getSystem().build(Iv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[N]},events:W}));var Fre=Ai("snaps",[pn("getSnapPoints"),Ss("onSensor"),pn("leftAttr"),pn("topAttr"),Ar("lazyViewport",ts),Ar("mustSnap",!1)]);const nL=[Ar("useFixed",D),pn("blockerClass"),Ar("getTarget",R),Ar("onDrag",v),Ar("repositionTarget",!0),Ar("onDrop",v),ys("getBounds",ts),Fre],rL=l=>tn(Ia(l,"left"),Ia(l,"top"),Ia(l,"position"),(N,W,fe)=>(fe==="fixed"?a_:d8)(parseInt(N,10),parseInt(W,10))).getOrThunk(()=>{const N=Tc(l);return Qg(N.left,N.top)}),$re=(l,N,W,fe,Se)=>{const Be=Se.bounds,qe=NS(N,W,fe),ft=Ah(qe.left,Be.x,Be.x+Be.width-Se.width),yt=Ah(qe.top,Be.y,Be.y+Be.height-Se.height),Lt=Qg(ft,yt);return N.fold(()=>{const Ht=Tj(Lt,W,fe);return d8(Ht.left,Ht.top)},x(Lt),()=>{const Ht=f8(Lt,W,fe);return a_(Ht.left,Ht.top)})},Vre=(l,N,W,fe,Se,Be,qe)=>{const ft=N.fold(()=>{const yt=Cre(W,Be.left,Be.top),Lt=f8(yt,fe,Se);return a_(Lt.left,Lt.top)},yt=>{const Lt=Pre(l,yt,W,Be,fe,Se);return Lt.extra.each(Ht=>{yt.onSensor(l,Ht)}),Lt.coord});return $re(l,ft,fe,Se,qe)},Ure=(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=rL(Se),Lt=Vre(l,N.snaps,yt,qe,ft,fe,W),Ht=KR(Lt,qe,ft);mi(Se,Ht)}N.onDrag(l,Se,fe)},Rj=(l,N)=>({bounds:l.getBounds(),height:nf(N.element),width:ma(N.element)}),oL=(l,N,W,fe,Se)=>{const Be=W.update(fe,Se),qe=W.getStartData().getOrThunk(()=>Rj(N,l));Be.each(ft=>{Ure(l,N,qe,ft)})},Lj=(l,N,W,fe)=>{N.each(Nre),W.snaps.each(Be=>{Rre(l,Be)});const Se=W.getTarget(l.element);fe.reset(),W.onDrop(l,Se)},iL=l=>(N,W)=>{const fe=Se=>{W.setStartData(Rj(N,Se))};return Rl([Lo(Im(),Se=>{W.getStartData().each(()=>fe(Se))}),...l(N,W,fe)])},jre=l=>Rl([Lo(Nc(),l.forceDrop),Lo(a0(),l.drop),Lo(o0(),(N,W)=>{l.move(W.event)}),Lo(i0(),l.delayDrop)]);var Qre=Object.freeze({__proto__:null,getData:l=>I.from(Qs(l.x,l.y)),getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Ij=(l,N,W)=>[Lo(Nc(),(fe,Se)=>{if(Se.event.raw.button!==0)return;Se.stop();const qe=()=>Lj(fe,I.some(Lt),l,N),ft=rF(qe,200),yt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:fn=>{ft.cancel(),oL(fe,l,N,Qre,fn)}},Lt=FS(fe,l.blockerClass,jre(yt));(()=>{W(fe),tL(fe,Lt)})()})],Hre=[...nL,Sl("dragger",{handlers:iL(Ij)})],Zre=l=>Rl([Lo(Uh(),l.forceDrop),Lo(Gl(),l.drop),Lo(Sf(),l.drop),Lo(ss(),(N,W)=>{l.move(W.event)})]),qre=l=>{const N=l[0];return I.some(Qs(N.clientX,N.clientY))};var fT=Object.freeze({__proto__:null,getData:l=>{const W=l.raw.touches;return W.length===1?qre(W):I.none()},getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Dj=(l,N,W)=>{const fe=ds(),Se=Be=>{Lj(Be,fe.get(),l,N),fe.clear()};return[Lo(Uh(),(Be,qe)=>{qe.stop();const ft=()=>Se(Be),yt={drop:ft,delayDrop:v,forceDrop:ft,move:fn=>{oL(Be,l,N,fT,fn)}},Lt=FS(Be,l.blockerClass,Zre(yt));fe.set(Lt),(()=>{W(Be),tL(Be,Lt)})()}),Lo(ss(),(Be,qe)=>{qe.stop(),oL(Be,l,N,fT,qe.event)}),Lo(Gl(),(Be,qe)=>{qe.stop(),Se(Be)}),Lo(Sf(),Se)]},Wre=[...nL,Sl("dragger",{handlers:iL(Dj)})],Yre=(l,N,W)=>[...Ij(l,N,W),...Dj(l,N,W)],Xre=[...nL,Sl("dragger",{handlers:iL(Yre)})];var Kre=Object.freeze({__proto__:null,mouse:Hre,touch:Wre,mouseOrTouch:Xre}),Jre=Object.freeze({__proto__:null,init:()=>{let l=I.none(),N=I.none();const W=()=>{l=I.none(),N=I.none()},fe=(yt,Lt)=>{const Ht=l.map(fn=>yt.getDelta(fn,Lt));return l=I.some(Lt),Ht},Se=(yt,Lt)=>yt.getData(Lt).bind(Ht=>fe(yt,Ht)),Be=yt=>{N=I.some(yt)},qe=()=>N,ft=x({});return Hd({readState:ft,reset:W,update:Se,getStartData:qe,setStartData:Be})}});const hO=HO({branchKey:"mode",branches:Kre,name:"dragging",active:{events:(l,N)=>l.dragger.handlers(l,N)},extra:{snap:l=>({sensor:l.sensor,range:l.range,output:l.output,extra:I.from(l.extra)})},state:Jre,apis:Bre}),aL=40,$S=aL/2,sL=(l,N,W,fe,Se,Be)=>l.fold(()=>hO.snap({sensor:Qg(W-$S,fe-$S),range:Qs(Se,Be),output:Qg(I.some(W),I.some(fe)),extra:{td:N}}),qe=>{const ft=W-$S,yt=fe-$S,Lt=aL,Ht=aL,fn=qe.element.dom.getBoundingClientRect();return hO.snap({sensor:Qg(ft,yt),range:Qs(Lt,Ht),output:Qg(I.some(W-fn.width/2),I.some(fe-fn.height/2)),extra:{td:N}})}),Bj=(l,N,W)=>{const fe=(Se,Be)=>Se.exists(qe=>_o(qe,Be));return{getSnapPoints:l,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(Se,Be)=>{const qe=Be.td;fe(N.get(),qe)||(N.set(qe),W(qe))},mustSnap:!0}},zj=l=>ml(Rh.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:ei([hO.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:l}),bS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),eoe=(l,N)=>{const W=wi([]),fe=wi([]),Se=wi(!1),Be=ds(),qe=ds(),ft=Pi=>{const Ao=bc(Pi);return sL(Bn.getOpt(N),Pi,Ao.x,Ao.y,Ao.width,Ao.height)},yt=()=>re(W.get(),Pi=>ft(Pi)),Lt=Pi=>{const Ao=bc(Pi);return sL(er.getOpt(N),Pi,Ao.right,Ao.bottom,Ao.width,Ao.height)},Ht=()=>re(fe.get(),Pi=>Lt(Pi)),fn=Bj(yt,Be,Pi=>{qe.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Pi,finish:Ao})})}),Rn=Bj(Ht,qe,Pi=>{Be.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Ao,finish:Pi})})}),Bn=zj(fn),er=zj(Rn),cr=ka(Bn.asSpec()),Xr=ka(er.asSpec()),br=(Pi,Ao,$i,yi)=>{const Xi=Ao.dom.getBoundingClientRect();zi(Pi.element,"display");const ks=ar(Nt.fromDom(l.getBody())).dom.innerHeight,Ic=$i(Xi),hl=yi(Xi,ks);(Ic||hl)&&xr(Pi.element,"display","none")},Fr=(Pi,Ao,$i,yi)=>{const Xi=$i(Ao);hO.snapTo(Pi,Xi),br(Pi,Ao,hl=>hl[yi]<0,(hl,Ui)=>hl[yi]>Ui)},jr=Pi=>Fr(cr,Pi,ft,"top"),Ro=()=>Be.get().each(jr),ko=Pi=>Fr(Xr,Pi,Lt,"bottom"),_i=()=>qe.get().each(ko);if(va().deviceType.isTouch()){const Pi=Ao=>re(Ao,Nt.fromDom);l.on("TableSelectionChange",Ao=>{Se.get()||(Eg(N,cr),Eg(N,Xr),Se.set(!0));const $i=Nt.fromDom(Ao.start),yi=Nt.fromDom(Ao.finish);Be.set($i),qe.set(yi),I.from(Ao.otherCells).each(Xi=>{W.set(Pi(Xi.upOrLeftCells)),fe.set(Pi(Xi.downOrRightCells)),jr($i),ko(yi)})}),l.on("ResizeEditor ResizeWindow ScrollContent",()=>{Ro(),_i()}),l.on("TableSelectionClear",()=>{Se.get()&&(kv(cr),kv(Xr),Se.set(!1)),Be.clear(),qe.clear()})}};var toe=` -`;const noe=(l,N)=>{const W=I.from(Nr(l,"id")).getOrThunk(()=>{const fe=Li("aria");return Cr(N,"id",fe),fe});Cr(l,"aria-describedby",W)},roe=l=>{Qt(l,"aria-describedby")},ooe=l=>l.nodeName==="BR"||!!l.getAttribute("data-mce-bogus")||l.getAttribute("data-mce-type")==="bookmark",ioe=(l,N,W)=>{var fe;const Se=(fe=N.delimiter)!==null&&fe!==void 0?fe:"›",Be=(Lt,Ht,fn)=>Rh.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":fn}},components:[Po(Lt)],action:Rn=>{l.focus(),l.selection.select(Ht),l.nodeChanged()},buttonBehaviours:ei([Vu.config({...W.tooltips.getConfig({tooltipText:W.translate(["Select the {0} element",Ht.nodeName.toLowerCase()]),onShow:(Rn,Bn)=>{noe(Rn.element,Bn.element)},onHide:Rn=>{roe(Rn.element)}})}),E1.button(W.isDisabled),Id()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Po(` ${Se} `)]}),ft=Lt=>se(Lt,(Ht,fn,Rn)=>{const Bn=Be(fn.name,fn.element,Rn);return Rn===0?Ht.concat([Bn]):Ht.concat([qe(),Bn])},[]),yt=Lt=>{const Ht=[];let fn=Lt.length;for(;fn-- >0;){const Rn=Lt[fn];if(Rn.nodeType===1&&!ooe(Rn)){const Bn=fX(l,Rn);if(Bn.isDefaultPrevented()||Ht.push({name:Bn.name,element:Rn}),Bn.isPropagationStopped())break}}return Ht};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:ei([ha.config({mode:"flow",selector:"div[role=button]"}),he.config({disabled:W.isDisabled}),Id(),Rc.config({}),Fa.config({}),Ka("elementPathEvents",[wc((Lt,Ht)=>{l.shortcuts.add("alt+F11","focus statusbar elementpath",()=>ha.focusIn(Lt)),l.on("NodeChange",fn=>{const Rn=yt(fn.parents),Bn=Rn.length>0?ft(Rn):[];Fa.set(Lt,Bn)})})])]),components:[]}};var s_;(function(l){l[l.None=0]="None",l[l.Both=1]="Both",l[l.Vertical=2]="Vertical"})(s_||(s_={}));const aoe=(l,N,W,fe,Se)=>{const Be={height:n8(fe+N.top,eS(l),m6(l))};return W===s_.Both&&(Be.width=n8(Se+N.left,Uw(l),Ik(l))),Be},Nj=(l,N,W)=>{const fe=Nt.fromDom(l.getContainer()),Se=aoe(l,N,W,il(fe),_s(fe));We(Se,(Be,qe)=>{h(Be)&&xr(fe,qe,t8(Be))}),G6(l)},soe=l=>{const N=uz(l);return N===!1?s_.None:N==="both"?s_.Both:s_.Vertical},h8=(l,N,W,fe)=>{const Be=Qs(W*20,fe*20);return Nj(l,Be,N),I.some(!0)},loe=(l,N)=>{const W=soe(l);if(W===s_.None)return I.none();const fe=W===s_.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(Bg("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":N.translate(fe),"data-mce-name":"resize-handle"},behaviours:[hO.config({mode:"mouse",repositionTarget:!1,onDrag:(Se,Be,qe)=>Nj(l,qe,W),blockerClass:"tox-blocker"}),ha.config({mode:"special",onLeft:()=>h8(l,W,-1,0),onRight:()=>h8(l,W,1,0),onUp:()=>h8(l,W,0,-1),onDown:()=>h8(l,W,0,1)}),Rc.config({}),Ra.config({}),Vu.config(N.tooltips.getConfig({tooltipText:N.translate("Resize")}))]},N.icons))},Fj=(l,N)=>{const W=(fe,Se,Be)=>Fa.set(fe,[Po(N.translate(["{0} "+Be,Se[Be]]))]);return Rh.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:ei([E1.button(N.isDisabled),Id(),Rc.config({}),Fa.config({}),Ei.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ka("wordcount-events",[Sh(fe=>{const Se=Ei.getValue(fe),Be=Se.mode==="words"?"characters":"words";Ei.setValue(fe,{mode:Be,count:Se.count}),W(fe,Se.count,Be)}),wc(fe=>{l.on("wordCountUpdate",Se=>{const{mode:Be}=Ei.getValue(fe);Ei.setValue(fe,{mode:Be,count:Se.wordCount}),W(fe,Se.wordCount,Be)})})])]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},coe=(l,N)=>{const W=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":l.translate(["Build with {0}","TinyMCE"])},innerHtml:l.translate(["Build with {0}",toe.trim()])},behaviours:ei([Ra.config({})])}]}),fe=()=>{const ft=q6("Alt+0"),yt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Po(Dg.translate([yt,ft]))]}},Se=()=>{const ft=[];return l.hasPlugin("wordcount")&&ft.push(Fj(l,N)),ZE(l)&&ft.push(W()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],yt=zk(l),Lt=cz(l),Ht=ZE(l)||l.hasPlugin("wordcount"),fn=()=>{const Rn="tox-statusbar__text-container--flex-start",Bn="tox-statusbar__text-container--flex-end",er="tox-statusbar__text-container--space-around";if(yt){const cr="tox-statusbar__text-container-3-cols";return!Ht&&!Lt?[cr,er]:Ht&&!Lt?[cr,Bn]:[cr,Rn]}return[Ht&&!Lt?Bn:Rn]};return Lt&&ft.push(ioe(l,{},N)),yt&&ft.push(fe()),Ht&&ft.push(Se()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...fn()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),yt=loe(l,N);return ft.concat(yt.toArray())})()}},$j=(l,N)=>N.get().getOrDie(`UI for ${l} has not been rendered`),uoe=(l,N)=>{const W=l.inline,fe=W?Lne:e8,Se=Qw(l)?$ee:gV,Be=Ine(),qe=ds(),ft=ds(),yt=ds(),Rn=va().deviceType.isTouch()?["tox-platform-touch"]:[],Bn=$k(l),er=jw(l),cr=ml({dom:{tag:"div",classes:["tox-anchorbar"]}}),Xr=ml({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),br=()=>Be.mainUi.get().map(fa=>fa.outerContainer).bind(Lc.getHeader),Fr=()=>aa.fromOption(Be.dialogUi.get().map(fa=>fa.sink),"UI has not been rendered"),jr=()=>aa.fromOption(Be.popupUi.get().map(fa=>fa.sink),"(popup) UI has not been rendered"),Ro=Be.lazyGetInOuterOrDie("anchor bar",cr.getOpt),ko=Be.lazyGetInOuterOrDie("bottom anchor bar",Xr.getOpt),_i=Be.lazyGetInOuterOrDie("toolbar",Lc.getToolbar),Pi=Be.lazyGetInOuterOrDie("throbber",Lc.getThrobber),Ao=dV({popup:jr,dialog:Fr},l,Ro,ko),$i=()=>{const fa={attributes:{[Nb]:Bn?ap.BottomToTop:ap.TopToBottom}},Qa=Lc.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Ao.popup,onEscape:()=>{l.focus()}}),ac=Lc.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Ao.popup.shared.getSink,providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},onToolbarToggled:xO=>{dX(l,xO)},type:er,lazyToolbar:_i,lazyHeader:()=>br().getOrDie("Could not find header element"),...fa}),vl=Lc.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},type:er}),dp=Fk(l),qg=Nk(l),Vv=x6(l),Wh=fz(l),Wg=yi(),U0=dp||qg||Vv,km=()=>dp?[vl]:qg?[ac]:[],qy=Wh?[Wg,Qa]:[Qa];return Lc.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(U0?[]:["tox-editor-header--empty"]),...fa},components:ye([Vv?qy:[],km(),tS(l)?[]:[cr.asSpec()]]),sticky:Qw(l),editor:l,sharedBackstage:Ao.popup.shared})},yi=()=>Lc.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Xi=()=>{const fa=Lc.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Qa=Lc.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[fa,Qa]}},ks=()=>{const fa=GE(l),Qa=_o(Lr(),fa)&&Di(fa,"display")==="grid",ac={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Ph.config({useFixed:()=>Se.isDocked(br)})])},vl={dom:{styles:{width:document.body.clientWidth+"px"}},events:Rl([Lo(Dm(),Vv=>{xr(Vv.element,"width",document.body.clientWidth+"px")})])},dp=ka(ws(ac,Qa?vl:{})),qg=m5(dp);return ft.set(qg),{sink:dp,mothership:qg}},Ic=()=>{const fa={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Ph.config({useFixed:()=>Se.isDocked(br),getBounds:()=>N.getPopupSinkBounds()})])},Qa=ka(fa),ac=m5(Qa);return yt.set(ac),{sink:Qa,mothership:ac}},hl=()=>{const fa=$i(),Qa=Xi(),ac=Lc.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Ao.popup}),vl=Lc.parts.viewWrapper({backstage:Ao.popup}),dp=lz(l)&&!W?I.some(coe(l,Ao.popup.shared.providers)):I.none(),qg=ye([Bn?[]:[fa],W?[]:[Qa],Bn?[fa]:[]]),Vv=Lc.parts.editorContainer({components:ye([qg,W?[]:[Xr.asSpec()]])}),Wh=Vk(l),Wg={role:"application",...Dg.isRtl()?{dir:"rtl"}:{},...Wh?{"aria-hidden":"true"}:{}},U0=ka(Lc.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(W?["tox-tinymce-inline"]:[]).concat(Bn?["tox-tinymce--toolbar-bottom"]:[]).concat(Rn),styles:{visibility:"hidden",...Wh?{opacity:"0",border:"0"}:{}},attributes:Wg},components:[Vv,...W?[]:[vl,...dp.toArray()],ac],behaviours:ei([Id(),he.config({disableClass:"tox-tinymce--disabled"}),ha.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),km=m5(U0);return qe.set(km),{mothership:km,outerContainer:U0}},Ui=fa=>{const Qa=t8(Mne(l)),ac=t8(Ene(l));return l.inline||(fs("div","width",ac)&&xr(fa.element,"width",ac),fs("div","height",Qa)?xr(fa.element,"height",Qa):xr(fa.element,"height","400px")),Qa},Ko=fa=>{l.addShortcut("alt+F9","focus menubar",()=>{Lc.focusMenubar(fa)}),l.addShortcut("alt+F10","focus toolbar",()=>{Lc.focusToolbar(fa)}),l.addCommand("ToggleToolbarDrawer",(Qa,ac)=>{ac!=null&&ac.skipFocus?Lc.toggleToolbarDrawerWithoutFocusing(fa):Lc.toggleToolbarDrawer(fa)}),l.addQueryStateHandler("ToggleToolbarDrawer",()=>Lc.isToolbarDrawerToggled(fa))},Oi=fa=>{const{mainUi:Qa,popupUi:ac,uiMotherships:vl}=fa;Ue(jE(l),(qS,_8)=>{l.ui.registry.addGroupToolbarButton(_8,qS)});const{buttons:dp,menuItems:qg,contextToolbars:Vv,sidebars:Wh,views:Wg}=l.ui.registry.getAll(),U0=XE(l),km={menuItems:qg,menus:pz(l),menubar:rz(l),toolbar:U0.getOrThunk(()=>Bk(l)),allowToolbarGroups:er===C0.floating,buttons:dp,sidebar:Wh,views:Wg};Ko(Qa.outerContainer),hV(l,Qa.mothership,vl),Se.setup(l,Ao.popup.shared,br),cre(l,Ao.popup),kre(l,Ao.popup.shared.getSink,Ao.popup),cR(l),rte(l,Pi,Ao.popup.shared),Zne(l,Vv,ac.sink,{backstage:Ao.popup}),eoe(l,ac.sink);const qy=l.getElement(),xO=Ui(Qa.outerContainer),OL={targetNode:qy,height:xO};return fe.render(l,fa,km,Ao.popup,OL)},La=fa=>(yt.set(fa.mothership),fa),_a=()=>{const fa=hl(),Qa=ks(),ac=N2(l)?Ic():La(Qa);Be.dialogUi.set(Qa),Be.popupUi.set(ac),Be.mainUi.set(fa);const vl={popupUi:ac,dialogUi:Qa,mainUi:fa,uiMotherships:Be.getUiMotherships()};return Oi(vl)};return{popups:{backstage:Ao.popup,getMothership:()=>$j("popups",yt)},dialogs:{backstage:Ao.dialog,getMothership:()=>$j("dialogs",ft)},renderUI:_a}},foe=l=>l.dom.textContent,doe=(l,N)=>{const W=Eo(l,"id").fold(()=>{const fe=Li("dialog-label");return Cr(N,"id",fe),fe},R);Cr(l,"aria-labelledby",W)},hoe=x([pn("lazySink"),Yo("dragBlockClass"),ys("getBounds",ts),Ar("useTabstopAt",k),Ar("firstTabstop",0),Ar("eventOrder",{}),Pd("modalBehaviours",[ha]),kd("onExecute"),Sb("onEscape")]),lL={sketch:R},poe=x([mm({name:"draghandle",overrides:(l,N)=>({behaviours:ei([hO.config({mode:"mouse",getTarget:W=>Fl(W,'[role="dialog"]').getOr(W),blockerClass:l.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(N,null,2)).message),getBounds:l.getDragBounds})])})}),mh({schema:[pn("dom")],name:"title"}),mh({factory:lL,schema:[pn("dom")],name:"close"}),mh({factory:lL,schema:[pn("dom")],name:"body"}),mm({factory:lL,schema:[pn("dom")],name:"footer"}),Jm({factory:{sketch:(l,N)=>({...l,dom:N.dom,components:N.components})},schema:[Ar("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ar("components",[])],name:"blocker"})]),Vj=(l,N,W,fe)=>{const Se=ds(),Be=er=>{Se.set(er);const cr=l.lazySink(er).getOrDie(),Xr=fe.blocker(),br=cr.getSystem().build({...Xr,components:Xr.components.concat([ea(er)]),behaviours:ei([Ra.config({}),Ka("dialog-blocker-events",[ly(Dp(),()=>{I1.isBlocked(er)?v():ha.focusIn(er)})])])});Eg(cr,br),ha.focusIn(er)},qe=er=>{Se.clear(),Dr(er.element).each(cr=>{er.getSystem().getByDom(cr).each(Xr=>{kv(Xr)})})},ft=er=>gm(er,l,"body"),yt=er=>Jo(er,l,"footer"),Lt=(er,cr)=>{I1.block(er,cr)},Ht=er=>{I1.unblock(er)},fn=Li("modal-events"),Rn={...l.eventOrder,[Oh()]:[fn].concat(l.eventOrder["alloy.system.attached"]||[])},Bn=va();return{uid:l.uid,dom:l.dom,components:N,apis:{show:Be,hide:qe,getBody:ft,getFooter:yt,setIdle:Ht,setBusy:Lt},eventOrder:Rn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rd(l.modalBehaviours,[Fa.config({}),ha.config({mode:"cyclic",onEnter:l.onExecute,onEscape:l.onEscape,useTabstopAt:l.useTabstopAt,firstTabstop:l.firstTabstop}),I1.config({getRoot:Se.get}),Ka(fn,[wc(er=>{const cr=gm(er,l,"title").element,Xr=foe(cr);Bn.os.isMacOS()&&a(Xr)?Cr(er.element,"aria-label",Xr):doe(er.element,cr)})])])}},fd=Zh({name:"ModalDialog",configFields:hoe(),partFields:poe(),factory:Vj,apis:{show:(l,N)=>{l.show(N)},hide:(l,N)=>{l.hide(N)},getBody:(l,N)=>l.getBody(N),getFooter:(l,N)=>l.getFooter(N),setBusy:(l,N,W)=>{l.setBusy(N,W)},setIdle:(l,N)=>{l.setIdle(N)}}}),pO=Si([pf,V6].concat(U2)),moe=V,dT=[BP("button"),E0,rl("align","end",["start","end"]),aS,P0,Yi("buttonType",["primary","secondary"])],hT=[...dT,sx],cL=[Gr("type",["submit","cancel","custom"]),...hT],goe=[Gr("type",["menu"]),lx,iS,E0,Go("items",pO),...dT],voe=[...dT,Gr("type",["togglebutton"]),iS,E0,lx,Hs("active",!1)],yoe=bn("type",{submit:cL,cancel:cL,custom:cL,menu:goe,togglebutton:voe}),boe=[pf,sx,Gr("level",["info","warn","error","success"]),Qz,Ar("url","")],mO=Si(boe),Uj=l=>[pf,l],xoe=[pf,sx,P0,BP("button"),E0,zY,Yi("buttonType",["primary","secondary","toolbar"]),aS],_oe=Si(xoe),VS=[pf,V6],Fv=VS.concat([U6]),woe=VS.concat([LP,P0]),Ooe=Si(woe),Soe=V,koe=Fv.concat([Zz("auto")]),uL=Si(koe),pT=It([Kk,sx,Qz]),fL=Fv.concat([Ts("storageKey","default")]),p8=Si(fL),gO=ne,Toe=Si(Fv),jj=ne,Qj=VS.concat([Ts("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),ai("onFocus"),Yu("settings",void 0)]),Hj=VS.concat([Ts("tag","textarea"),po("init")]),Coe=rt(l=>Rt("customeditor.old",Os(Hj),l).orThunk(()=>Rt("customeditor.new",Os(Qj),l))),Aoe=ne,Zj=Si(Fv),qj=et(),hL=l=>[pf,Ir("columns"),l],Moe=[pf,Pr("html"),rl("presets","presentation",["presentation","document"]),ys("onInit",v),Hs("stretched",!1)],Eoe=Si(Moe),Poe=Fv.concat([Hs("border",!1),Hs("sandboxed",!0),Hs("streamContent",!1),Hs("transparent",!0)]),Wj=Si(Poe),Roe=ne,Loe=Si(VS.concat([jo("height")])),Ioe=Si([Pr("url"),Ho("zoom"),Ho("cachedWidth"),Ho("cachedHeight")]),pL=Fv.concat([jo("inputMode"),jo("placeholder"),Hs("maximized",!1),P0]),mL=Si(pL),Doe=ne,Yj=l=>[pf,LP,l,rl("align","start",["start","center","end"]),jo("for")],Boe=[sx,Kk],zoe=[sx,Go("items",vn("items",()=>gL))],gL=rd([Si(Boe),Si(zoe)]),Noe=Fv.concat([Go("items",gL),P0]),Foe=Si(Noe),vO=ne,Xj=Fv.concat([Bo("items",[sx,Kk]),$s("size",1),P0]),$oe=Si(Xj),m8=ne,US=Fv.concat([Hs("constrain",!0),P0]),g8=Si(US),vL=Si([Pr("width"),Pr("height")]),v8=VS.concat([LP,$s("min",0),$s("max",0)]),wm=Si(v8),y8=le,Gj=[pf,Go("header",ne),Go("cells",lc(ne))],Kj=Si(Gj),Voe=Fv.concat([jo("placeholder"),Hs("maximized",!1),P0]),Uoe=Si(Voe),l_=ne,joe=[Gr("type",["directory","leaf"]),jz,Pr("id"),Wi("menu",wV)],yL=Si(joe),jS=joe.concat([Go("children",vn("children",()=>Ne("type",{directory:mT,leaf:yL})))]),mT=Si(jS),Jj=Ne("type",{directory:mT,leaf:yL}),Qoe=[pf,Go("items",Jj),ai("onLeafAction"),ai("onToggleExpand"),mt("defaultExpandedIds",[],ne),jo("defaultSelectedId")],Hoe=Si(Qoe),Zoe=Fv.concat([rl("filetype","file",["image","media","file"]),P0,jo("picker_text")]),qoe=Si(Zoe),QS=Si([Kk,IP]),eQ=l=>Ln("items","items",su(),lc(rt(N=>Rt(`Checking item of ${l}`,bL,N).fold(W=>aa.error(dn(W)),W=>aa.value(W))))),bL=Pc(()=>Ne("type",{alertbanner:mO,bar:Si(Uj(eQ("bar"))),button:_oe,checkbox:Ooe,colorinput:p8,colorpicker:Toe,dropzone:Zj,grid:Si(hL(eQ("grid"))),iframe:Wj,input:mL,listbox:Foe,selectbox:$oe,sizeinput:g8,slider:wm,textarea:Uoe,urlinput:qoe,customeditor:Coe,htmlpanel:Eoe,imagepreview:Loe,collection:uL,label:Si(Yj(eQ("label"))),table:Kj,tree:Hoe,panel:Yoe})),Woe=[pf,Ar("classes",[]),Go("items",bL)],Yoe=Si(Woe),Xoe=[BP("tab"),jz,Go("items",bL)],Goe=[pf,Bo("tabs",Xoe)],gT=Si(Goe),Koe=hT,Joe=yoe,tQ=Si([Pr("title"),In("body",Ne("type",{panel:Yoe,tabpanel:gT})),Ts("size","normal"),mt("buttons",[],Joe),Ar("initialData",{}),ys("onAction",v),ys("onChange",v),ys("onSubmit",v),ys("onClose",v),ys("onCancel",v),ys("onTabChange",v)]),eie=l=>Rt("dialog",tQ,l),fde=Si([Gr("type",["cancel","custom"]),...Koe]),r=Si([Pr("title"),Pr("url"),Ho("height"),Ho("width"),Hi("buttons",fde),ys("onAction",v),ys("onCancel",v),ys("onClose",v),ys("onMessage",v)]),g=l=>Rt("dialog",r,l),B=l=>u(l)?[l].concat(ve(ot(l),B)):i(l)?ve(l,B):[],H=l=>n(l.type)&&n(l.name),oe={checkbox:Soe,colorinput:gO,colorpicker:jj,dropzone:qj,input:Doe,iframe:Roe,imagepreview:Ioe,selectbox:m8,sizeinput:vL,slider:y8,listbox:vO,size:vL,textarea:l_,urlinput:QS,customeditor:Aoe,collection:pT,togglemenuitem:moe},be=l=>I.from(oe[l.type]),Le=l=>me(B(l),H),Ke=l=>{const N=Le(l),W=ve(N,fe=>be(fe).fold(()=>[],Se=>[In(fe.name,Se)]));return Si(W)},ut=l=>{var N;const W=Mt(eie(l)),fe=Ke(l),Se=(N=l.initialData)!==null&&N!==void 0?N:{};return{internalDialog:W,dataValidator:fe,initialData:Se}},At={open:(l,N)=>{const W=ut(N);return l(W.internalDialog,W.initialData,W.dataValidator)},openUrl:(l,N)=>{const W=Mt(g(N));return l(W)},redial:l=>ut(l)};var un=Object.freeze({__proto__:null,events:(l,N)=>{const W=(fe,Se)=>{l.updateState.each(Be=>{const qe=Be(fe,Se);N.set(qe)}),l.renderComponents.each(Be=>{const qe=Be(Se,N.get());(l.reuseDom?X3:Y3)(fe,qe)})};return Rl([Lo(yp(),(fe,Se)=>{const Be=Se;if(!Be.universal){const qe=l.channel;X(Be.channels,qe)&&W(fe,Be.data)}}),wc((fe,Se)=>{l.initialData.each(Be=>{W(fe,Be)})})])}}),Qn=Object.freeze({__proto__:null,getState:(l,N,W)=>W}),rr=[pn("channel"),Yo("renderComponents"),Yo("updateState"),Yo("initialData"),Hs("reuseDom",!0)],ur=Object.freeze({__proto__:null,init:()=>{const l=wi(I.none()),N=()=>l.set(I.none());return{readState:()=>l.get().getOr("none"),get:l.get,set:l.set,clear:N}}});const Tr=id({fields:rr,name:"reflecting",active:un,apis:Qn,state:ur}),Wr=l=>{const N=[],W={};return We(l,(fe,Se)=>{fe.fold(()=>{N.push(Se)},Be=>{W[Se]=Be})}),N.length>0?aa.error(N):aa.value(W)},Qr=(l,N,W,fe)=>{const Se=ml(Y2.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(l.classes)},components:re(l.items,qe=>qJ(Be,qe,N,W,fe))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[Se.asSpec()]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),P1.memento(Se),TK(Se,{postprocess:Be=>Wr(Be).fold(qe=>(console.error(qe),{}),R)}),Ka("dialog-body-panel",[Lo(Dp(),(Be,qe)=>{Be.getSystem().broadcastOn([OA],{newFocus:I.some(qe.event.target)})})])])}},lo=(l,N)=>({uid:l.uid,dom:l.dom,components:l.components,events:f6(l.action),behaviours:Rd(l.tabButtonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0}),Ei.config({store:{mode:"memory",initialValue:l.value}})]),domModification:l.domModification}),Zo=Qp({name:"TabButton",configFields:[Ar("uid",void 0),pn("value"),Ln("dom","dom",_u(()=>({attributes:{role:"tab",id:Li("aria"),"aria-selected":"false"}})),Ut()),Yo("action"),Ar("domModification",{}),Pd("tabButtonBehaviours",[Ra,ha,Ei]),pn("view")],factory:lo}),li=x([pn("tabs"),pn("dom"),Ar("clickToDismiss",!1),Pd("tabbarBehaviours",[ta,ha]),h0(["tabClass","selectedClass"])]),Mi=U3({factory:Zo,name:"tabs",unit:"tab",overrides:l=>{const N=(fe,Se)=>{ta.dehighlight(fe,Se),sa(fe,W1(),{tabbar:fe,button:Se})},W=(fe,Se)=>{ta.highlight(fe,Se),sa(fe,UO(),{tabbar:fe,button:Se})};return{action:fe=>{const Se=fe.getSystem().getByUid(l.uid).getOrDie(),Be=ta.isHighlighted(Se,fe);(()=>Be&&l.clickToDismiss?N:Be?v:W)()(Se,fe)},domModification:{classes:[l.markers.tabClass]}}}}),Co=x([Mi]),yo=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rd(l.tabbarBehaviours,[ta.config({highlightClass:l.markers.selectedClass,itemClass:l.markers.tabClass,onHighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","true")},onDehighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","false")}}),ha.config({mode:"flow",getInitial:Se=>ta.getHighlighted(Se).map(Be=>Be.element),selector:"."+l.markers.tabClass,executeOnMove:!0})])}),Vo=Zh({name:"Tabbar",configFields:li(),partFields:Co(),factory:yo}),Fi=(l,N)=>({uid:l.uid,dom:l.dom,behaviours:Rd(l.tabviewBehaviours,[Fa.config({})]),domModification:{attributes:{role:"tabpanel"}}}),la=Qp({name:"Tabview",configFields:[Pd("tabviewBehaviours",[Fa])],factory:Fi}),bs=x([Ar("selectFirst",!0),Ss("onChangeTab"),Ss("onDismissTab"),Ar("tabs",[]),Pd("tabSectionBehaviours",[])]),Ms=mh({factory:Vo,schema:[pn("dom"),si("markers",[pn("tabClass"),pn("selectedClass")])],name:"tabbar",defaults:l=>({tabs:l.tabs})}),wl=mh({factory:la,name:"tabview"}),Vl=x([Ms,wl]),Uu=(l,N,W,fe)=>{const Se=qe=>{const ft=Ei.getValue(qe);Jo(qe,l,"tabview").each(yt=>{ce(l.tabs,Ht=>Ht.value===ft).each(Ht=>{const fn=Ht.view();Eo(qe.element,"id").each(Rn=>{Cr(yt.element,"aria-labelledby",Rn)}),Fa.set(yt,fn),l.onChangeTab(yt,qe,fn)})})},Be=(qe,ft)=>{Jo(qe,l,"tabbar").each(yt=>{ft(yt).each(Bm)})};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.tabSectionBehaviours),events:Rl(ye([l.selectFirst?[wc((qe,ft)=>{Be(qe,ta.getFirst)})]:[],[Lo(UO(),(qe,ft)=>{const yt=ft.event.button;Se(yt)}),Lo(W1(),(qe,ft)=>{const yt=ft.event.button;l.onDismissTab(qe,yt)})]])),apis:{getViewItems:qe=>Jo(qe,l,"tabview").map(ft=>Fa.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,Lt=>{const Ht=ta.getCandidates(Lt);return ce(Ht,Rn=>Ei.getValue(Rn)===ft).filter(Rn=>!ta.isHighlighted(Lt,Rn))})}}}},Wf=Zh({name:"TabSection",configFields:bs(),partFields:Vl(),factory:Uu,apis:{getViewItems:(l,N)=>l.getViewItems(N),showTab:(l,N,W)=>{l.showTab(N,W)}}}),ic=(l,N,W)=>re(l,(fe,Se)=>{Fa.set(W,l[Se].view());const Be=N.dom.getBoundingClientRect();return Fa.set(W,[]),Be.height}),vi=l=>Qe(ze(l,(N,W)=>N>W?-1:N{const fe=Hn(l).dom,Se=Fl(l,".tox-dialog-wrap").getOr(l),Be=Di(Se,"position")==="fixed";let qe;Be?qe=Math.max(fe.clientHeight,window.innerHeight):qe=Math.max(fe.offsetHeight,fe.scrollHeight);const ft=il(N),Lt=N.dom.offsetLeft>=W.dom.offsetLeft+_s(W)?Math.max(il(W),ft):ft,Ht=parseInt(Di(l,"margin-top"),10)||0,fn=parseInt(Di(l,"margin-bottom"),10)||0,Bn=il(l)+Ht+fn-Lt;return qe-Bn},ol=(l,N)=>{Qe(l).each(W=>Wf.showTab(N,W.value))},Ti=(l,N)=>{xr(l,"height",N+"px"),xr(l,"flex-basis",N+"px")},pa=(l,N,W)=>{Fl(l,'[role="dialog"]').each(fe=>{qa(fe,'[role="tablist"]').each(Se=>{W.get().map(Be=>(xr(N,"height","0"),xr(N,"flex-basis","0"),Math.min(Be,na(fe,N,Se)))).each(Be=>{Ti(N,Be)})})})},ps=l=>qa(l,'[role="tabpanel"]'),Ci=l=>{const N=ds();return{extraEvents:[wc(Se=>{const Be=Se.element;ps(Be).each(qe=>{xr(qe,"visibility","hidden"),Se.getSystem().getByDom(qe).toOptional().each(ft=>{const yt=ic(l,qe,ft);vi(yt).fold(N.clear,N.set)}),pa(Be,qe,N),zi(qe,"visibility"),ol(l,Se),requestAnimationFrame(()=>{pa(Be,qe,N)})})}),Lo(Dm(),Se=>{const Be=Se.element;ps(Be).each(qe=>{pa(Be,qe,N)})}),Lo(A7,(Se,Be)=>{const qe=Se.element;ps(qe).each(ft=>{const yt=um(kr(ft));xr(ft,"visibility","hidden");const Lt=Ia(ft,"height").map(Rn=>parseInt(Rn,10));zi(ft,"height"),zi(ft,"flex-basis");const Ht=ft.dom.getBoundingClientRect().height;Lt.forall(Rn=>Ht>Rn)?(N.set(Ht),pa(qe,ft,N)):Lt.each(Rn=>{Ti(ft,Rn)}),zi(ft,"visibility"),yt.each(Md)})})],selectFirst:!1}},ms="send-data-to-section",Es="send-data-to-view",Bd=(l,N,W,fe)=>{const Se=wi({}),Be=Ht=>{const fn=Ei.getValue(Ht),Rn=Wr(fn).getOr({}),Bn=Se.get(),er=ws(Bn,Rn);Se.set(er)},qe=Ht=>{const fn=Se.get();Ei.setValue(Ht,fn)},ft=wi(null),yt=re(l.tabs,Ht=>({value:Ht.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Po(W.shared.providers.translate(Ht.title))],view:()=>[Y2.sketch(fn=>({dom:{tag:"div",classes:["tox-form"]},components:re(Ht.items,Rn=>qJ(fn,Rn,N,W,fe)),formBehaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),Ka("TabView.form.events",[wc(qe),xg(Be)]),Ad.config({channels:ua([{key:ms,value:{onReceive:Be}},{key:Es,value:{onReceive:qe}}])})])}))]})),Lt=Ci(yt);return Wf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ht,fn,Rn)=>{const Bn=Ei.getValue(fn);sa(Ht,hF,{name:Bn,oldName:ft.get()}),ft.set(Bn)},tabs:yt,components:[Wf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Vo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:ei([Rc.config({})])}),Wf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Lt.selectFirst,tabSectionBehaviours:ei([Ka("tabpanel",Lt.extraEvents),ha.config({mode:"acyclic"}),Xs.config({find:Ht=>Qe(Wf.getViewItems(Ht))}),X2(I.none(),Ht=>(Ht.getSystem().broadcastOn([ms],{}),Se.get()),(Ht,fn)=>{Se.set(fn),Ht.getSystem().broadcastOn([Es],{})})])})},Cl=(l,N,W,fe,Se,Be)=>{const qe=Lt=>{const Ht=Lt.body;switch(Ht.type){case"tabpanel":return[Bd(Ht,Lt.initialData,fe,Be)];default:return[Qr(Ht,Lt.initialData,fe,Be)]}},ft=(Lt,Ht)=>I.some({isTabPanel:()=>Ht.body.type==="tabpanel"}),yt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...W.map(Lt=>({id:Lt})).getOr({}),...Se?yt:{}}},components:[],behaviours:ei([P1.childAt(0),Tr.config({channel:`${s9}-${N}`,updateState:ft,renderComponents:qe,initialData:l})])}},dd=(l,N,W,fe,Se,Be)=>Cl(l,N,I.some(W),fe,Se,Be),z0=(l,N,W,fe)=>{const Se=Cl(l,N,I.none(),W,!1,fe);return fd.parts.body(Se)},$v=l=>{const N={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[o$(I.none(),{dom:{tag:"iframe",attributes:{src:l.url}},behaviours:ei([Rc.config({}),Ra.config({})])})]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)})])};return fd.parts.body(N)},Cp=$w.deviceType.isTouch(),Om=(l,N)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[l,N]}),Hg=(l,N)=>fd.parts.close(Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":N.translate("Close")}},action:l,buttonBehaviours:ei([Rc.config({})])})),Sm=()=>fd.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Zg=(l,N)=>fd.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ev(`

    ${mP(N.translate(l))}

    `)}]}]}),ca=l=>fd.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:l}),Zs=(l,N)=>[Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:l}),Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:N})],ru=l=>{const N="tox-dialog",W=N+"-wrap",fe=W+"__backdrop",Se=N+"__disable-scroll";return fd.sketch({lazySink:l.lazySink,onEscape:Be=>(l.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!E5(Be),firstTabstop:l.firstTabstop,dom:{tag:"div",classes:[N].concat(l.extraClasses),styles:{position:"relative",...l.extraStyles}},components:[l.header,l.body,...l.footer.toArray()],parts:{blocker:{dom:Ev(`
    `),components:[{dom:{tag:"div",classes:Cp?[fe,fe+"--opaque"]:[fe]}}]}},dragBlockClass:W,modalBehaviours:ei([Ra.config({}),Ka("dialog-events",l.dialogEvents.concat([ly(Dp(),(Be,qe)=>{I1.isBlocked(Be)?v():ha.focusIn(Be)}),Lo(q1(),(Be,qe)=>{Be.getSystem().broadcastOn([OA],{newFocus:qe.event.newFocus})})])),Ka("scroll-lock",[wc(()=>{uc(Lr(),Se)}),xg(()=>{Zc(Lr(),Se)})]),...l.extraBehaviours]),eventOrder:{[Bp()]:["dialog-events"],[Oh()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...l.eventOrder}})},ju=l=>Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":l.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:ei([Rc.config({}),Vu.config(l.tooltips.getConfig({tooltipText:l.translate("Close")}))]),components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.icons)],action:N=>{Za(N,cx)}}),Pf=(l,N,W,fe)=>{const Se=Be=>[Po(fe.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...W.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:ei([Tr.config({channel:`${a$}-${N}`,initialData:l,renderComponents:Se})])}},Gd=()=>({dom:Ev('
    ')}),Rf=(l,N,W,fe)=>Iv.sketch({dom:Ev('
    '),components:[Pf(l,N,I.some(W),fe),Gd(),ju(fe)],containerBehaviours:ei([hO.config({mode:"mouse",blockerClass:"blocker",getTarget:Se=>Sc(Se,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),Lf=(l,N,W)=>{const fe=fd.parts.title(Pf(l,N,I.none(),W)),Se=fd.parts.draghandle(Gd()),Be=fd.parts.close(ju(W)),qe=[fe].concat(l.draggable?[Se]:[]).concat([Be]);return Iv.sketch({dom:Ev('
    '),components:qe})},fp=(l,N,W)=>Lf({title:W.shared.providers.translate(l),draggable:W.dialog.isDraggableModal()},N,W.shared.providers),N0=(l,N,W,fe)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":W.translate(l)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${fe.getOr(0)}px`,position:"absolute"}},behaviours:N,components:[{dom:Ev('
    ')}]}),F0=(l,N,W)=>({onClose:()=>W.closeWindow(),onBlock:fe=>{const Se=qa(l().element,".tox-dialog__header").map(Be=>il(Be));fd.setBusy(l(),(Be,qe)=>N0(fe.message,qe,N,Se))},onUnblock:()=>{fd.setIdle(l())}}),$0="tox-dialog--fullscreen",rg="tox-dialog--width-lg",jy="tox-dialog--width-md",gx=l=>{switch(l){case"large":return I.some(rg);case"medium":return I.some(jy);default:return I.none()}},yO=(l,N)=>{const W=Nt.fromDom(N.element.dom);rp(W,$0)||(Oc(W,[rg,jy]),gx(l).each(fe=>uc(W,fe)))},b8=(l,N)=>{const W=Nt.fromDom(l.element.dom),fe=qc(W),Se=ce(fe,Be=>Be===rg||Be===jy).or(gx(N));WO(W,[$0,...Se.toArray()])},Qy=(l,N,W)=>ka(ru({...l,firstTabstop:1,lazySink:W.shared.getSink,extraBehaviours:[xA({}),...l.extraBehaviours],onEscape:fe=>{Za(fe,cx)},dialogEvents:N,eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Oh()]:["scroll-lock",Tr.name(),"messages","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","messages",Tr.name(),"scroll-lock"]}})),HS=(l,N={})=>{const W=fe=>{const Se=re(fe.items,Be=>{const qe=Ge(N,Be.name).getOr(wi(!1));return{...Be,storage:qe}});return{...fe,items:Se}};return re(l,fe=>fe.type==="menu"?W(fe):fe)},xL=l=>se(l,(N,W)=>W.type==="menu"?se(W.items,(Se,Be)=>(Se[Be.name]=Be.storage,Se),N):N,{}),qh=(l,N)=>[mb(Dp(),IK),l(vS,(W,fe,Se,Be)=>{um(kr(Be.element)).fold(v,m1),N.onClose(),fe.onClose()}),l(cx,(W,fe,Se,Be)=>{fe.onCancel(W),Za(Be,vS)}),Lo(C7,(W,fe)=>N.onUnblock()),Lo(T7,(W,fe)=>N.onBlock(fe.event))],bO=(l,N)=>{const W=(Se,Be)=>Lo(Se,(qe,ft)=>{fe(qe,(yt,Lt)=>{Be(l(),yt,ft.event,qe)})}),fe=(Se,Be)=>{Tr.getState(Se).get().each(qe=>{Be(qe,Se)})};return[...qh(W,N),W(zy,(Se,Be,qe)=>{Be.onAction(Se,{name:qe.name})})]},_L=(l,N,W)=>{const fe=(Be,qe)=>Lo(Be,(ft,yt)=>{Se(ft,(Lt,Ht)=>{qe(l(),Lt,yt.event,ft)})}),Se=(Be,qe)=>{Tr.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...qh(fe,N),fe(v5,(Be,qe)=>qe.onSubmit(Be)),fe(xm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),fe(zy,(Be,qe,ft,yt)=>{const Lt=()=>yt.getSystem().isConnected()?ha.focusIn(yt):void 0,Ht=Bn=>zo(Bn,"disabled")||Eo(Bn,"aria-disabled").exists(er=>er==="true"),fn=kr(yt.element),Rn=um(fn);qe.onAction(Be,{name:ft.name,value:ft.value}),um(fn).fold(Lt,Bn=>{Ht(Bn)||Rn.exists(er=>$o(Bn,er)&&Ht(er))?Lt():W().toOptional().filter(er=>!$o(er.element,Bn)).each(Lt)})}),fe(hF,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),xg(Be=>{const qe=l();Ei.setValue(Be,qe.getData())})]},wL=(l,N)=>j5(l,l.type,N),Hy=(l,N,W)=>ce(N,fe=>fe.name===W).bind(fe=>fe.memento.getOpt(l)),vT=(l,N)=>{const W=N.map(ft=>ft.footerButtons).getOr([]),fe=ee(W,ft=>ft.align==="start"),Se=(ft,yt)=>Iv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:re(yt,Lt=>Lt.memento.asSpec())}),Be=Se("start",fe.pass),qe=Se("end",fe.fail);return[Be,qe]},ho=(l,N,W)=>{const fe=(Se,Be)=>{const qe=re(Be.buttons,yt=>{const Lt=ml(wL(yt,W));return{name:yt.name,align:yt.align,memento:Lt}}),ft=yt=>Hy(Se,qe,yt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:Ev(''),components:[],behaviours:ei([Tr.config({channel:`${s$}-${N}`,initialData:l,updateState:fe,renderComponents:vT})])}},bo=(l,N,W)=>ho(l,N,W),di=(l,N,W)=>fd.parts.footer(ho(l,N,W)),ri=(l,N)=>{if(l.getRoot().getSystem().isConnected()){const fe=Xs.getCurrent(l.getFormWrapper()).getOr(l.getFormWrapper());return Y2.getField(fe,N).orThunk(()=>l.getFooter().bind(qe=>Tr.getState(qe).get()).bind(qe=>qe.lookupByName(N)))}else return I.none()},Ta=(l,N)=>{const W=l.getRoot();return Tr.getState(W).get().map(fe=>Mt(Rt("data",fe.dataValidator,N))).getOr(N)},zs=(l,N,W)=>{const fe=er=>{const cr=l.getRoot();cr.getSystem().isConnected()&&er(cr)},Bn={getData:()=>{const er=l.getRoot(),cr=er.getSystem().isConnected()?l.getFormWrapper():er,Xr=Ei.getValue(cr),br=Ue(W,Fr=>Fr.get());return{...Xr,...br}},setData:er=>{fe(cr=>{const Xr=Bn.getData(),br=ws(Xr,er),Fr=Ta(l,br),jr=l.getFormWrapper();Ei.setValue(jr,Fr),We(W,(Ro,ko)=>{ht(br,ko)&&Ro.set(br[ko])})})},setEnabled:(er,cr)=>{ri(l,er).each(cr?he.enable:he.disable)},focus:er=>{ri(l,er).each(Ra.focus)},block:er=>{if(!n(er))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");fe(cr=>{sa(cr,T7,{message:er})})},unblock:()=>{fe(er=>{Za(er,C7)})},showTab:er=>{fe(cr=>{const Xr=l.getBody();Tr.getState(Xr).get().exists(Fr=>Fr.isTabPanel())&&Xs.getCurrent(Xr).each(Fr=>{Wf.showTab(Fr,er)})})},redial:er=>{fe(cr=>{const Xr=l.getId(),br=N(er),Fr=HS(br.internalDialog.buttons,W);cr.getSystem().broadcastOn([`${P5}-${Xr}`],br),cr.getSystem().broadcastOn([`${a$}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s9}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s$}-${Xr}`],{...br.internalDialog,buttons:Fr}),Bn.setData(br.initialData)})},close:()=>{fe(er=>{Za(er,vS)})},toggleFullscreen:l.toggleFullscreen};return Bn},Su=(l,N,W)=>{const fe=Li("dialog"),Se=l.internalDialog,Be=fp(Se.title,fe,W),qe=wi(Se.size),ft=jr=>ri(br,jr),yt=gx(qe.get()).toArray(),Lt=(jr,Ro)=>(qe.set(Ro.internalDialog.size),yO(Ro.internalDialog.size,jr),I.some(Ro)),Ht=z0({body:Se.body,initialData:Se.initialData},fe,W,ft),fn=HS(Se.buttons),Rn=xL(fn),Bn=Ot(fn.length!==0,di({buttons:fn},fe,W)),er=_L(()=>Fr,F0(()=>Xr,W.shared.providers,N),W.shared.getSink),cr={id:fe,header:Be,body:Ht,footer:Bn,extraClasses:yt,extraBehaviours:[Tr.config({channel:`${P5}-${fe}`,updateState:Lt,initialData:l})],extraStyles:{}},Xr=Qy(cr,er,W),br=(()=>{const jr=()=>{const ko=fd.getBody(Xr);return Xs.getCurrent(ko).getOr(ko)},Ro=()=>{b8(Xr,qe.get())};return{getId:x(fe),getRoot:x(Xr),getBody:()=>fd.getBody(Xr),getFooter:()=>fd.getFooter(Xr),getFormWrapper:jr,toggleFullscreen:Ro}})(),Fr=zs(br,N.redial,Rn);return{dialog:Xr,instanceApi:Fr}},V0=(l,N,W,fe=!1,Se)=>{const Be=Li("dialog"),qe=Li("dialog-label"),ft=Li("dialog-content"),yt=l.internalDialog,Lt=$i=>ri(Pi,$i),Ht=wi(yt.size),fn=gx(Ht.get()).toArray(),Rn=($i,yi)=>(Ht.set(yi.internalDialog.size),yO(yi.internalDialog.size,$i),Se(),I.some(yi)),Bn=ml(Rf({title:yt.title,draggable:!0},Be,qe,W.shared.providers)),er=ml(dd({body:yt.body,initialData:yt.initialData},Be,ft,W,fe,Lt)),cr=HS(yt.buttons),Xr=xL(cr),br=Ot(cr.length!==0,ml(bo({buttons:cr},Be,W))),Fr=_L(()=>Ao,{onBlock:$i=>{I1.block(ko,(yi,Xi)=>{const ks=Bn.getOpt(ko).map(Ic=>il(Ic.element));return N0($i.message,Xi,W.shared.providers,ks)})},onUnblock:()=>{I1.unblock(ko)},onClose:()=>N.closeWindow()},W.shared.getSink),jr="tox-dialog-inline",Ro=va().os,ko=ka({dom:{tag:"div",classes:["tox-dialog",jr,...fn],attributes:{role:"dialog",...Ro.isMacOS()?{"aria-label":yt.title}:{"aria-labelledby":qe}}},eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Bp()]:["execute-on-form"],[Oh()]:["reflecting","execute-on-form"]},behaviours:ei([ha.config({mode:"cyclic",onEscape:$i=>(Za($i,vS),I.some(!0)),useTabstopAt:$i=>!E5($i)&&(vr($i)!=="button"||Nr($i,"disabled")!=="disabled"),firstTabstop:1}),Tr.config({channel:`${P5}-${Be}`,updateState:Rn,initialData:l}),Ra.config({}),Ka("execute-on-form",Fr.concat([ly(Dp(),($i,yi)=>{ha.focusIn($i)}),Lo(q1(),($i,yi)=>{$i.getSystem().broadcastOn([OA],{newFocus:yi.event.newFocus})})])),I1.config({getRoot:()=>I.some(ko)}),Fa.config({}),xA({})]),components:[Bn.asSpec(),er.asSpec(),...br.map($i=>$i.asSpec()).toArray()]}),_i=()=>{b8(ko,Ht.get())},Pi={getId:x(Be),getRoot:x(ko),getFooter:()=>br.map($i=>$i.get(ko)),getBody:()=>er.get(ko),getFormWrapper:()=>{const $i=er.get(ko);return Xs.getCurrent($i).getOr($i)},toggleFullscreen:_i},Ao=zs(Pi,N.redial,Xr);return{dialog:ko,instanceApi:Ao}};var ZS=tinymce.util.Tools.resolve("tinymce.util.URI");const tie=l=>{const N=qe=>{l.getSystem().isConnected()&&qe(l)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");N(ft=>{sa(ft,T7,{message:qe})})},unblock:()=>{N(qe=>{Za(qe,C7)})},close:()=>{N(qe=>{Za(qe,vS)})},sendMessage:qe=>{N(ft=>{ft.getSystem().broadcastOn([l$],qe)})}}},x8=["insertContent","setContent","execCommand","close","block","unblock"],Zy=l=>u(l)&&x8.indexOf(l.mceAction)!==-1,nQ=l=>!Zy(l)&&u(l)&&ht(l,"mceAction"),rQ=(l,N,W)=>{switch(W.mceAction){case"insertContent":l.insertContent(W.content);break;case"setContent":l.setContent(W.content);break;case"execCommand":const fe=w(W.ui)?W.ui:!1;l.execCommand(W.cmd,fe,W.value);break;case"close":N.close();break;case"block":N.block(W.message);break;case"unblock":N.unblock();break}},oQ=(l,N,W,fe)=>{const Se=Li("dialog"),Be=fp(l.title,Se,fe),qe=$v(l),ft=l.buttons.bind(jr=>jr.length===0?I.none():I.some(di({buttons:jr},Se,fe))),yt=bO(()=>Fr,F0(()=>br,fe.shared.providers,N)),Lt={...l.height.fold(()=>({}),jr=>({height:jr+"px","max-height":jr+"px"})),...l.width.fold(()=>({}),jr=>({width:jr+"px","max-width":jr+"px"}))},Ht=l.width.isNone()&&l.height.isNone()?["tox-dialog--width-lg"]:[],fn=new ZS(l.url,{base_uri:new ZS(window.location.href)}),Rn=`${fn.protocol}://${fn.host}${fn.port?":"+fn.port:""}`,Bn=Ol(),er=(jr,Ro)=>I.some(Ro),cr=[Tr.config({channel:`${P5}-${Se}`,updateState:er,initialData:l}),Ka("messages",[wc(()=>{const jr=ud(Nt.fromDom(window),"message",Ro=>{if(fn.isSameOrigin(new ZS(Ro.raw.origin))){const ko=Ro.raw.data;Zy(ko)?rQ(W,Fr,ko):nQ(ko)&&l.onMessage(Fr,ko)}});Bn.set(jr)}),xg(Bn.clear)]),Ad.config({channels:{[l$]:{onReceive:(jr,Ro)=>{qa(jr.element,"iframe").each(ko=>{const _i=ko.dom.contentWindow;a(_i)&&_i.postMessage(Ro,Rn)})}}}})],br=Qy({id:Se,header:Be,body:qe,footer:ft,extraClasses:Ht,extraBehaviours:cr,extraStyles:Lt},yt,fe),Fr=tie(br);return{dialog:br,instanceApi:Fr}},iQ=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=()=>{fd.hide(Lt),Se()},qe=ml(j5({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",l)),ft=Sm(),yt=Hg(Be,N.providers),Lt=ka(ru({lazySink:()=>N.getSink(),header:Om(ft,yt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,Be)],eventOrder:{}}));fd.show(Lt);const Ht=qe.get(Lt);Ra.focus(Ht)}}},nie=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=Rn=>{fd.hide(Ht),Se(Rn)},qe=ml(j5({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",l)),ft=j5({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",l),yt=Sm(),Lt=Hg(()=>Be(!1),N.providers),Ht=ka(ru({lazySink:()=>N.getSink(),header:Om(yt,Lt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,()=>Be(!1)),Lo(v5,()=>Be(!0))],eventOrder:{}}));fd.show(Ht);const fn=qe.get(Ht);Ra.focus(fn)}}},Ps=(l,N)=>Mt(Rt("data",N,l)),xo=l=>f5(l,".tox-alert-dialog")||f5(l,".tox-confirm-dialog"),Ji=(l,N,W)=>N&&W?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(l.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:fe=>ix(l,fe.element).map(Be=>({bounds:Hw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:Tc(Be.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})],Ba=l=>{const N=l.editor,W=Qw(N),fe=iQ(l.backstages.dialog),Se=nie(l.backstages.dialog),Be=(er,cr,Xr)=>{if(!y(cr)){if(cr.inline==="toolbar")return Lt(er,l.backstages.popup.shared.anchors.inlineDialog(),Xr,cr);if(cr.inline==="bottom")return Ht(er,l.backstages.popup.shared.anchors.inlineBottomDialog(),Xr,cr);if(cr.inline==="cursor")return Lt(er,l.backstages.popup.shared.anchors.cursor(),Xr,cr)}return yt(er,Xr)},qe=(er,cr)=>ft(er,cr),ft=(er,cr)=>{const Xr=br=>{const Fr=oQ(br,{closeWindow:()=>{fd.hide(Fr.dialog),cr(Fr.instanceApi)}},N,l.backstages.dialog);return fd.show(Fr.dialog),Fr.instanceApi};return At.openUrl(Xr,er)},yt=(er,cr)=>{const Xr=(br,Fr,jr)=>{const Ro=Fr,_i=Su({dataValidator:jr,initialData:Ro,internalDialog:br},{redial:At.redial,closeWindow:()=>{fd.hide(_i.dialog),cr(_i.instanceApi)}},l.backstages.dialog);return fd.show(_i.dialog),_i.instanceApi.setData(Ro),_i.instanceApi};return At.open(Xr,er)},Lt=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),(!W||!Ao)&&fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),...Ji(N,W,Ao)]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>{const hl=N.inline?Lr():Nt.fromDom(N.getContainer()),Ui=cl(hl);return I.some(Ui)};return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),(!W||!Ao)&&(fc.refresh(ks),N.on("ResizeEditor",yi)),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)},Ht=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor ScrollWindow ElementScroll",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(N.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:hl=>ix(N,hl.element).map(Ko=>({bounds:Hw(Ko),optScrollEnv:I.some({currentScrollTop:Ko.element.dom.scrollTop,scrollElmTop:Tc(Ko.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>l.backstages.popup.shared.getSink().toOptional().bind(hl=>{const Ui=ix(N,hl.element),Ko=15,Oi=Ui.map(fa=>Hw(fa)).getOr(ts()),La=cl(Nt.fromDom(N.getContentAreaContainer())),_a=nc(La,Oi);return I.some(vs(_a.x,_a.y,_a.width,_a.height-Ko))});return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),fc.refresh(ks),N.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",yi),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)};return{open:Be,openUrl:qe,alert:(er,cr)=>{fe.open(er,cr)},close:er=>{er.close()},confirm:(er,cr)=>{Se.open(er,cr)}}},mf=l=>{WB(l),xX(l),fre(l)};var Ap=()=>{zc.add("silver",l=>{mf(l);let N=()=>ts();const{dialogs:W,popups:fe,renderUI:Se}=uoe(l,{getPopupSinkBounds:()=>N()}),Be=()=>{const Lt=Se();return ix(l,fe.getMothership().element).each(fn=>{N=()=>Hw(fn)}),Lt};uG.register(l,fe.backstage.shared);const qe=Ba({editor:l,backstages:{popup:fe.backstage,dialog:W.backstage}}),ft=ds(),yt=()=>_Y(l,{backstage:fe.backstage},fe.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:yt}})};Ap()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-code":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"export-pdf":'',"export-word":'',"import-word":'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=p=>{let v=p;return{get:()=>v,set:C=>{v=C}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=p=>p.dispatch("ResizeEditor"),E=p=>v=>v.options.get(p),d=p=>{const v=p.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},s=E("min_height"),n=E("max_height"),u=E("autoresize_overflow_padding"),b=E("autoresize_bottom_margin"),i=p=>p.plugins.fullscreen&&p.plugins.fullscreen.isFullscreen(),S=(p,v)=>{const _=p.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(p,v,_,O)=>{var C;const x=parseInt((C=p.getStyle(v,_,O))!==null&&C!==void 0?C:"",10);return isNaN(x)?0:x},y=p=>{if((p==null?void 0:p.type.toLowerCase())==="setcontent"){const v=p;return v.selection===!0||v.paste===!0}else return!1},m=(p,v,_,O)=>{var C;const x=p.dom,R=p.getDoc();if(!R)return;if(i(p)){S(p,!0);return}const M=R.documentElement,T=O?O():u(p),P=(C=s(p))!==null&&C!==void 0?C:p.getElement().offsetHeight;let A=P;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=p.getContainer().offsetHeight,z=p.getContentAreaContainer().offsetHeight,$=I-z;k+$>P&&(A=k+$);const Q=n(p);Q&&A>Q?(A=Q,S(p,!0)):S(p,!1);const j=v.get();if(j.set&&(p.dom.setStyles(p.getDoc().documentElement,{"min-height":0}),p.dom.setStyles(p.getBody(),{"min-height":"inherit"})),A!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=A-j.totalHeight;if(x.setStyle(p.getContainer(),"height",A+"px"),v.set({totalHeight:A,contentHeight:k,set:!0}),f(p),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=p.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}p.hasFocus()&&y(_)&&p.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&m(p,v,_,O)}},a=(p,v)=>{const _=()=>b(p);p.on("init",O=>{const C=u(p),x=p.dom;x.setStyles(p.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C,"min-height":0}):x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C}),m(p,v,O,_)}),p.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",O=>{m(p,v,O,_)})},c=(p,v)=>{p.addCommand("mceAutoResize",()=>{m(p,v)})};var h=()=>{e.add("autoresize",p=>{if(d(p),p.options.isSet("resize")||p.options.set("resize",!1),!p.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});c(p,v),a(p,v)}})};h()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(D,k,I)=>{const z=k==="UL"?"InsertUnorderedList":"InsertOrderedList";D.execCommand(z,!1,I===!1?null:{"list-style-type":I})},o=D=>{D.addCommand("ApplyUnorderedListStyle",(k,I)=>{e(D,"UL",I["list-style-type"])}),D.addCommand("ApplyOrderedListStyle",(k,I)=>{e(D,"OL",I["list-style-type"])})},f=D=>k=>k.options.get(D),E=D=>{const k=D.options.register;k("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),k("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})},d=f("advlist_number_styles"),s=f("advlist_bullet_styles"),n=D=>D==null,u=D=>!n(D);var b=tinymce.util.Tools.resolve("tinymce.util.Tools");class i{constructor(k,I){this.tag=k,this.value=I}static some(k){return new i(!0,k)}static none(){return i.singletonNone}fold(k,I){return this.tag?I(this.value):k()}isSome(){return this.tag}isNone(){return!this.tag}map(k){return this.tag?i.some(k(this.value)):i.none()}bind(k){return this.tag?k(this.value):i.none()}exists(k){return this.tag&&k(this.value)}forall(k){return!this.tag||k(this.value)}filter(k){return!this.tag||k(this.value)?this:i.none()}getOr(k){return this.tag?this.value:k}or(k){return this.tag?this:k}getOrThunk(k){return this.tag?this.value:k()}orThunk(k){return this.tag?this:k()}getOrDie(k){if(this.tag)return this.value;throw new Error(k??"Called getOrDie on None")}static from(k){return u(k)?i.some(k):i.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(k){this.tag&&k(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}i.singletonNone=new i(!1);const S=(D,k,I)=>{for(let z=0,$=D.length;z<$;z++){const Q=D[z];if(k(Q,z))return i.some(Q);if(I(Q,z))break}return i.none()},w=D=>/\btox\-/.test(D.className),y=(D,k)=>D.dom.isChildOf(k,D.getBody()),m=D=>k=>u(k)&&D.test(k.nodeName),a=m(/^(OL|UL|DL)$/),c=m(/^(TH|TD)$/),h=(D,k,I)=>S(k,z=>a(z)&&!w(z),c).exists(z=>z.nodeName===I&&y(D,z)),p=D=>{const k=D.dom.getParent(D.selection.getNode(),"ol,ul"),I=D.dom.getStyle(k,"listStyleType");return i.from(I)},v=(D,k)=>k!==null&&!D.dom.isEditable(k),_=(D,k)=>{const I=D.dom.getParent(k,"ol,ul,dl");return v(D,I)&&D.selection.isEditable()},O=(D,k)=>{const I=D.selection.getNode();return k({parents:D.dom.getParents(I),element:I}),D.on("NodeChange",k),()=>D.off("NodeChange",k)},C=D=>D.replace(/\-/g," ").replace(/\b\w/g,k=>k.toUpperCase()),x=D=>n(D)||D==="default"?"":D,R=(D,k)=>I=>{const z=(Q,j)=>{const U=Q.selection.getStart(!0);I.setActive(h(Q,j,k)),I.setEnabled(!_(Q,U)&&Q.selection.isEditable())};return O(D,Q=>z(D,Q.parents))},M=(D,k,I,z,$,Q)=>{D.ui.registry.addSplitButton(k,{tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:j=>{const U=b.map(Q,X=>{const te=$==="OL"?"num":"bull",Z=X==="disc"||X==="decimal"?"default":X,K=x(X),re=C(X);return{type:"choiceitem",value:K,icon:"list-"+te+"-"+Z,text:re}});j(U)},onAction:()=>D.execCommand(z),onItemAction:(j,U)=>{e(D,$,U)},select:j=>p(D).map(X=>j===X).getOr(!1),onSetup:R(D,$)})},T=(D,k,I,z,$,Q)=>{D.ui.registry.addToggleButton(k,{active:!1,tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",onSetup:R(D,$),onAction:()=>D.queryCommandState(z)||Q===""?D.execCommand(z):e(D,$,Q)})},P=(D,k,I,z,$,Q)=>{Q.length>1?M(D,k,I,z,$,Q):T(D,k,I,z,$,x(Q[0]))},A=D=>{P(D,"numlist","Numbered list","InsertOrderedList","OL",d(D)),P(D,"bullist","Bullet list","InsertUnorderedList","UL",s(D))};var L=()=>{t.add("advlist",D=>{D.hasPlugin("lists")?(E(D),A(D),o(D)):console.error("Please use the Lists plugin together with the List Styles plugin.")})};L()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=()=>/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g,o=Z=>K=>K.options.get(Z),f=Z=>{const K=Z.options.register;K("autolink_pattern",{processor:"regexp",default:new RegExp("^"+e().source+"$","i")}),K("link_default_target",{processor:"string"}),K("link_default_protocol",{processor:"string",default:"https"})},E=o("autolink_pattern"),d=o("link_default_target"),s=o("link_default_protocol"),n=o("allow_unsafe_link_target"),u=(Z,K,re)=>{var q;return re(Z,K.prototype)?!0:((q=Z.constructor)===null||q===void 0?void 0:q.name)===K.name},b=Z=>{const K=typeof Z;return Z===null?"null":K==="object"&&Array.isArray(Z)?"array":K==="object"&&u(Z,String,(re,q)=>q.isPrototypeOf(re))?"string":K},i=Z=>K=>b(K)===Z,S=Z=>K=>Z===K,w=i("string"),y=S(void 0),m=Z=>Z==null,a=Z=>!m(Z),c=Z=>K=>!Z(K),h=Object.hasOwnProperty,p=(Z,K)=>h.call(Z,K),v=(Z,K,re)=>K===""||Z.length>=K.length&&Z.substr(re,re+K.length)===K,_=(Z,K,re=0,q)=>{const Y=Z.indexOf(K,re);return Y!==-1?y(q)?!0:Y+K.length<=q:!1},O=(Z,K)=>v(Z,K,0),C="\uFEFF",x=Z=>Z===C,R=Z=>Z.replace(/\uFEFF/g,"");var M=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const T=Z=>Z.nodeType===3,P=Z=>Z.nodeType===1,A=Z=>/^[(\[{ \u00a0]$/.test(Z),L=Z=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Z),D=Z=>/[?!,.;:]/.test(Z),k=(Z,K,re)=>{for(let q=K-1;q>=0;q--){const Y=Z.charAt(q);if(!x(Y)&&re(Y))return q}return-1},I=(Z,K)=>{let re=Z,q=K;for(;P(re)&&re.childNodes[q];)re=re.childNodes[q],q=T(re)?re.data.length:re.childNodes.length;return{container:re,offset:q}},z=(Z,K)=>{var re;const q=Z.schema.getVoidElements(),Y=E(Z),{dom:ee,selection:me}=Z;if(ee.getParent(me.getNode(),"a[href]")!==null)return null;const pe=me.getRng(),se=M(ee,Ie=>ee.isBlock(Ie)||p(q,Ie.nodeName.toLowerCase())||ee.getContentEditable(Ie)==="false"),{container:ae,offset:ce}=I(pe.endContainer,pe.endOffset),de=(re=ee.getParent(ae,ee.isBlock))!==null&&re!==void 0?re:ee.getRoot(),ye=se.backwards(ae,ce+K,(Ie,ze)=>{const De=Ie.data,Qe=k(De,ze,c(A));return Qe===-1||D(De[Qe])?Qe:Qe+1},de);if(!ye)return null;let ve=ye.container;const _e=se.backwards(ye.container,ye.offset,(Ie,ze)=>{ve=Ie;const De=k(Ie.data,ze,A);return De===-1?De:De+1},de),we=ee.createRng();_e?we.setStart(_e.container,_e.offset):we.setStart(ve,0),we.setEnd(ye.container,ye.offset);const Pe=R(we.toString()).match(Y);if(Pe){let Ie=Pe[0];return O(Ie,"www.")?Ie=s(Z)+"://"+Ie:_(Ie,"@")&&!L(Ie)&&(Ie="mailto:"+Ie),{rng:we,url:Ie}}else return null},$=(Z,K)=>{const{dom:re,selection:q}=Z,{rng:Y,url:ee}=K,me=q.getBookmark();q.setRng(Y);const pe="createlink",se={command:pe,ui:!1,value:ee};if(!Z.dispatch("BeforeExecCommand",se).isDefaultPrevented()){Z.getDoc().execCommand(pe,!1,ee),Z.dispatch("ExecCommand",se);const ce=d(Z);if(w(ce)){const de=q.getNode();re.setAttrib(de,"target",ce),ce==="_blank"&&!n(Z)&&re.setAttrib(de,"rel","noopener")}}q.moveToBookmark(me),Z.nodeChanged()},Q=Z=>{const K=z(Z,-1);a(K)&&$(Z,K)},j=Q,U=Z=>{const K=z(Z,0);a(K)&&$(Z,K)},X=Z=>{Z.on("keydown",K=>{K.keyCode===13&&!K.isDefaultPrevented()&&U(Z)}),Z.on("keyup",K=>{K.keyCode===32?Q(Z):(K.keyCode===48&&K.shiftKey||K.keyCode===221)&&j(Z)})};var te=()=>{t.add("autolink",Z=>{f(Z),X(Z)})};te()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(wt,Kt,En)=>{var pr;return En(wt,Kt.prototype)?!0:((pr=wt.constructor)===null||pr===void 0?void 0:pr.name)===Kt.name},o=wt=>{const Kt=typeof wt;return wt===null?"null":Kt==="object"&&Array.isArray(wt)?"array":Kt==="object"&&e(wt,String,(En,pr)=>pr.isPrototypeOf(En))?"string":Kt},f=wt=>Kt=>o(Kt)===wt,E=wt=>Kt=>typeof Kt===wt,d=f("string"),s=f("object"),n=f("array"),u=E("boolean"),b=wt=>wt==null,i=wt=>!b(wt),S=E("function"),w=E("number"),y=()=>{},m=(wt,Kt)=>En=>wt(Kt(En)),a=wt=>()=>wt,c=(wt,Kt)=>wt===Kt;function h(wt,...Kt){return(...En)=>{const pr=Kt.concat(En);return wt.apply(null,pr)}}const p=wt=>Kt=>!wt(Kt),v=a(!1);class _{constructor(Kt,En){this.tag=Kt,this.value=En}static some(Kt){return new _(!0,Kt)}static none(){return _.singletonNone}fold(Kt,En){return this.tag?En(this.value):Kt()}isSome(){return this.tag}isNone(){return!this.tag}map(Kt){return this.tag?_.some(Kt(this.value)):_.none()}bind(Kt){return this.tag?Kt(this.value):_.none()}exists(Kt){return this.tag&&Kt(this.value)}forall(Kt){return!this.tag||Kt(this.value)}filter(Kt){return!this.tag||Kt(this.value)?this:_.none()}getOr(Kt){return this.tag?this.value:Kt}or(Kt){return this.tag?this:Kt}getOrThunk(Kt){return this.tag?this.value:Kt()}orThunk(Kt){return this.tag?this:Kt()}getOrDie(Kt){if(this.tag)return this.value;throw new Error(Kt??"Called getOrDie on None")}static from(Kt){return i(Kt)?_.some(Kt):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Kt){this.tag&&Kt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Array.prototype.slice,C=Array.prototype.indexOf,x=Array.prototype.push,R=(wt,Kt)=>C.call(wt,Kt),M=(wt,Kt)=>R(wt,Kt)>-1,T=(wt,Kt)=>{for(let En=0,pr=wt.length;En{const En=wt.length,pr=new Array(En);for(let wr=0;wr{for(let En=0,pr=wt.length;En{const En=[];for(let pr=0,wr=wt.length;pr{if(wt.length===0)return[];{let En=Kt(wt[0]);const pr=[];let wr=[];for(let uo=0,Bi=wt.length;uo(A(wt,(pr,wr)=>{En=Kt(En,pr,wr)}),En),I=(wt,Kt,En)=>{for(let pr=0,wr=wt.length;prI(wt,Kt,v),$=wt=>{const Kt=[];for(let En=0,pr=wt.length;En$(P(wt,Kt)),j=wt=>{const Kt=O.call(wt,0);return Kt.reverse(),Kt},U=(wt,Kt)=>Kt>=0&&KtU(wt,0),te=wt=>U(wt,wt.length-1),Z=(wt,Kt)=>{const En=[],pr=S(Kt)?wr=>T(En,uo=>Kt(uo,wr)):wr=>M(En,wr);for(let wr=0,uo=wt.length;wrwt.exists(pr=>En(pr,Kt)),re=(wt,Kt,En=c)=>q(wt,Kt,En).getOr(wt.isNone()&&Kt.isNone()),q=(wt,Kt,En)=>wt.isSome()&&Kt.isSome()?_.some(En(wt.getOrDie(),Kt.getOrDie())):_.none(),Y=8,ee=11,me=1,pe=3,se=(wt,Kt)=>{const pr=(Kt||document).createElement("div");if(pr.innerHTML=wt,!pr.hasChildNodes()||pr.childNodes.length>1){const wr="HTML does not have a single root node";throw console.error(wr,wt),new Error(wr)}return de(pr.childNodes[0])},ae=(wt,Kt)=>{const pr=(Kt||document).createElement(wt);return de(pr)},ce=(wt,Kt)=>{const pr=(Kt||document).createTextNode(wt);return de(pr)},de=wt=>{if(wt==null)throw new Error("Node cannot be null or undefined");return{dom:wt}},ve={fromHtml:se,fromTag:ae,fromText:ce,fromDom:de,fromPoint:(wt,Kt,En)=>_.from(wt.dom.elementFromPoint(Kt,En)).map(de)},_e=(wt,Kt)=>{const En=wt.dom;if(En.nodeType!==me)return!1;{const pr=En;if(pr.matches!==void 0)return pr.matches(Kt);if(pr.msMatchesSelector!==void 0)return pr.msMatchesSelector(Kt);if(pr.webkitMatchesSelector!==void 0)return pr.webkitMatchesSelector(Kt);if(pr.mozMatchesSelector!==void 0)return pr.mozMatchesSelector(Kt);throw new Error("Browser lacks native selectors")}},we=(wt,Kt)=>wt.dom===Kt.dom,Te=(wt,Kt)=>{const En=wt.dom,pr=Kt.dom;return En===pr?!1:En.contains(pr)},Pe=_e,Ie=typeof window<"u"?window:Function("return this;")(),ze=(wt,Kt)=>{let En=Kt??Ie;for(let pr=0;pr{const En=wt.split(".");return ze(En,Kt)},Qe=(wt,Kt)=>De(wt,Kt),Ve=(wt,Kt)=>{const En=Qe(wt,Kt);if(En==null)throw new Error(wt+" not available on this browser");return En},$e=Object.getPrototypeOf,Oe=wt=>Ve("HTMLElement",wt),ke=wt=>{const Kt=De("ownerDocument.defaultView",wt);return s(wt)&&(Oe(Kt).prototype.isPrototypeOf(wt)||/^HTML\w*Element$/.test($e(wt).constructor.name))},Re=wt=>wt.dom.nodeName.toLowerCase(),We=wt=>wt.dom.nodeType,Ue=wt=>Kt=>We(Kt)===wt,Ze=wt=>We(wt)===Y||Re(wt)==="#comment",Ye=wt=>Je(wt)&&ke(wt.dom),Je=Ue(me),Me=Ue(pe),Fe=Ue(ee),je=wt=>Kt=>Je(Kt)&&Re(Kt)===wt,tt=wt=>_.from(wt.dom.parentNode).map(ve.fromDom),ot=wt=>_.from(wt.dom.parentElement).map(ve.fromDom),Ge=wt=>_.from(wt.dom.nextSibling).map(ve.fromDom),ht=wt=>P(wt.dom.childNodes,ve.fromDom),pt=(wt,Kt)=>{const En=wt.dom.childNodes;return _.from(En[Kt]).map(ve.fromDom)},St=wt=>pt(wt,0),Ft=wt=>pt(wt,wt.dom.childNodes.length-1),zt=wt=>Fe(wt)&&i(wt.dom.host),Yt=wt=>ve.fromDom(wt.dom.getRootNode()),ln=wt=>{const Kt=Yt(wt);return zt(Kt)?_.some(Kt):_.none()},tn=wt=>ve.fromDom(wt.dom.host),Et=wt=>{const Kt=Me(wt)?wt.dom.parentNode:wt.dom;if(Kt==null||Kt.ownerDocument===null)return!1;const En=Kt.ownerDocument;return ln(ve.fromDom(Kt)).fold(()=>En.body.contains(Kt),m(Et,tn))};var Ot=(wt,Kt,En,pr,wr)=>wt(En,pr)?_.some(En):S(wr)&&wr(En)?_.none():Kt(En,pr,wr);const cn=(wt,Kt,En)=>{let pr=wt.dom;const wr=S(En)?En:v;for(;pr.parentNode;){pr=pr.parentNode;const uo=ve.fromDom(pr);if(Kt(uo))return _.some(uo);if(wr(uo))break}return _.none()},Cn=(wt,Kt,En)=>Ot((wr,uo)=>uo(wr),cn,wt,Kt,En),Pn=(wt,Kt,En)=>cn(wt,pr=>_e(pr,Kt),En),Sn=(wt,Kt,En)=>Ot((wr,uo)=>_e(wr,uo),Pn,wt,Kt,En),vt=wt=>Sn(wt,"[contenteditable]"),xt=(wt,Kt=!1)=>Et(wt)?wt.dom.isContentEditable:vt(wt).fold(a(Kt),En=>st(En)==="true"),st=wt=>wt.dom.contentEditable,bt=(wt,Kt)=>{tt(wt).each(pr=>{pr.dom.insertBefore(Kt.dom,wt.dom)})},Vt=(wt,Kt)=>{Ge(wt).fold(()=>{tt(wt).each(wr=>{it(wr,Kt)})},pr=>{bt(pr,Kt)})},Dt=(wt,Kt)=>{St(wt).fold(()=>{it(wt,Kt)},pr=>{wt.dom.insertBefore(Kt.dom,pr.dom)})},it=(wt,Kt)=>{wt.dom.appendChild(Kt.dom)},at=(wt,Kt)=>{A(Kt,En=>{bt(wt,En)})},Bt=(wt,Kt)=>{A(Kt,En=>{it(wt,En)})},_t=wt=>{wt.dom.textContent="",A(ht(wt),Kt=>{qt(Kt)})},qt=wt=>{const Kt=wt.dom;Kt.parentNode!==null&&Kt.parentNode.removeChild(Kt)};var en=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Jt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Zt=tinymce.util.Tools.resolve("tinymce.util.VK");const Nt=wt=>P(wt,ve.fromDom),sn=Object.keys,rn=(wt,Kt)=>{const En=sn(wt);for(let pr=0,wr=En.length;pr(Kt,En)=>{wt[En]=Kt},wn=(wt,Kt,En,pr)=>{rn(wt,(wr,uo)=>{(Kt(wr,uo)?En:pr)(wr,uo)})},An=(wt,Kt)=>{const En={};return wn(wt,Kt,_n(En),y),En},Kn=(wt,Kt,En)=>{if(d(En)||u(En)||w(En))wt.setAttribute(Kt,En+"");else throw console.error("Invalid call to Attribute.set. Key ",Kt,":: Value ",En,":: Element ",wt),new Error("Attribute value was not simple")},fr=(wt,Kt)=>{const En=wt.dom;rn(Kt,(pr,wr)=>{Kn(En,wr,pr)})},Un=wt=>k(wt.dom.attributes,(Kt,En)=>(Kt[En.name]=En.value,Kt),{}),Zn=(wt,Kt)=>ve.fromDom(wt.dom.cloneNode(Kt)),tr=wt=>Zn(wt,!0),Br=(wt,Kt)=>{const En=ve.fromTag(Kt),pr=Un(wt);return fr(En,pr),En},$r=(wt,Kt)=>{const En=Br(wt,Kt);Vt(wt,En);const pr=ht(wt);return Bt(En,pr),qt(wt),En};var vr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qn=tinymce.util.Tools.resolve("tinymce.util.Tools");const gr=wt=>Kt=>i(Kt)&&Kt.nodeName.toLowerCase()===wt,sr=wt=>Kt=>i(Kt)&&wt.test(Kt.nodeName),lr=wt=>i(wt)&&wt.nodeType===3,zr=wt=>i(wt)&&wt.nodeType===1,Vr=sr(/^(OL|UL|DL)$/),eo=sr(/^(OL|UL)$/),Jr=gr("ol"),Yr=sr(/^(LI|DT|DD)$/),to=sr(/^(DT|DD)$/),co=sr(/^(TH|TD)$/),Fo=gr("br"),_o=wt=>{var Kt;return((Kt=wt.parentNode)===null||Kt===void 0?void 0:Kt.firstChild)===wt},$o=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getTextBlockElements(),Mo=(wt,Kt)=>i(wt)&&wt.nodeName in Kt,pi=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getVoidElements(),Hn=(wt,Kt)=>Fo(Kt)?wt.isBlock(Kt.nextSibling)&&!Fo(Kt.previousSibling):!1,ar=(wt,Kt,En)=>{const pr=wt.isEmpty(Kt);return En&&wt.select("span[data-mce-type=bookmark]",Kt).length>0?!1:pr},Dr=(wt,Kt)=>wt.isChildOf(Kt,wt.getRoot()),Sr=wt=>Kt=>Kt.options.get(wt),Zr=wt=>{const Kt=wt.options.register;Kt("lists_indent_on_tab",{processor:"boolean",default:!0})},go=Sr("lists_indent_on_tab"),oo=Sr("forced_root_block"),io=Sr("forced_root_block_attrs"),Do=(wt,Kt,En={})=>{const pr=wt.dom,wr=wt.schema.getBlockElements(),uo=pr.createFragment(),Bi=oo(wt),ya=io(wt);let Ni,Qi,Ws=!1;for(Qi=pr.create(Bi,{...ya,...En.style?{style:En.style}:{}}),Mo(Kt.firstChild,wr)||uo.appendChild(Qi);Ni=Kt.firstChild;){const nl=Ni.nodeName;!Ws&&(nl!=="SPAN"||Ni.getAttribute("data-mce-type")!=="bookmark")&&(Ws=!0),Mo(Ni,wr)?(uo.appendChild(Ni),Qi=null):(Qi||(Qi=pr.create(Bi,ya),uo.appendChild(Qi)),Qi.appendChild(Ni))}return!Ws&&Qi&&Qi.appendChild(pr.create("br",{"data-mce-bogus":"1"})),uo},jn=vr.DOM,Rr=(wt,Kt,En)=>{const pr=Qi=>{const Ws=Qi.parentNode;Ws&&qn.each(wr,nl=>{Ws.insertBefore(nl,En.parentNode)}),jn.remove(Qi)},wr=jn.select('span[data-mce-type="bookmark"]',Kt),uo=Do(wt,En),Bi=jn.createRng();Bi.setStartAfter(En),Bi.setEndAfter(Kt);const ya=Bi.extractContents();for(let Qi=ya.firstChild;Qi;Qi=Qi.firstChild)if(Qi.nodeName==="LI"&&wt.dom.isEmpty(Qi)){jn.remove(Qi);break}wt.dom.isEmpty(ya)||jn.insertAfter(ya,Kt),jn.insertAfter(uo,Kt);const Ni=En.parentElement;Ni&&ar(wt.dom,Ni)&&pr(Ni),jn.remove(En),ar(wt.dom,Kt)&&jn.remove(Kt)},On=je("dd"),Yn=je("dt"),ir=(wt,Kt)=>{On(Kt)?$r(Kt,"dt"):Yn(Kt)&&ot(Kt).each(En=>Rr(wt,En.dom,Kt.dom))},kr=wt=>{Yn(wt)&&$r(wt,"dd")},Er=(wt,Kt,En)=>{Kt==="Indent"?A(En,kr):A(En,pr=>ir(wt,pr))},Gt=(wt,Kt)=>{if(lr(wt))return{container:wt,offset:Kt};const En=en.getNode(wt,Kt);return lr(En)?{container:En,offset:Kt>=wt.childNodes.length?En.data.length:0}:En.previousSibling&&lr(En.previousSibling)?{container:En.previousSibling,offset:En.previousSibling.data.length}:En.nextSibling&&lr(En.nextSibling)?{container:En.nextSibling,offset:0}:{container:wt,offset:Kt}},on=wt=>{const Kt=wt.cloneRange(),En=Gt(wt.startContainer,wt.startOffset);Kt.setStart(En.container,En.offset);const pr=Gt(wt.endContainer,wt.endOffset);return Kt.setEnd(pr.container,pr.offset),Kt},an=["OL","UL","DL"],Tn=an.join(","),zn=(wt,Kt)=>{const En=Kt||wt.selection.getStart(!0);return wt.dom.getParent(En,Tn,zo(wt,En))},Gn=(wt,Kt)=>i(wt)&&Kt.length===1&&Kt[0]===wt,Lr=wt=>L(wt.querySelectorAll(Tn),Vr),Ur=wt=>{const Kt=zn(wt),En=wt.selection.getSelectedBlocks();return Gn(Kt,En)?Lr(Kt):L(En,pr=>Vr(pr)&&Kt!==pr)},qr=(wt,Kt)=>{const En=qn.map(Kt,pr=>{const wr=wt.dom.getParent(pr,"li,dd,dt",zo(wt,pr));return wr||pr});return Z(En)},Cr=wt=>{const Kt=wt.selection.getSelectedBlocks();return L(qr(wt,Kt),Yr)},wo=wt=>L(Cr(wt),to),Nr=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"TD,TH");return En.length>0?En[0]:wt.getBody()},Eo=(wt,Kt)=>!Vr(Kt)&&!Yr(Kt)&&T(an,En=>wt.isValidChild(Kt.nodeName,En)),zo=(wt,Kt)=>{const En=wt.dom.getParents(Kt,wt.dom.isBlock),pr=uo=>uo.nodeName.toLowerCase()!==oo(wt);return z(En,uo=>pr(uo)&&Eo(wt.schema,uo)).getOr(wt.getBody())},Qt=wt=>tt(wt).exists(Kt=>Yr(Kt.dom)&&St(Kt).exists(En=>!Vr(En.dom))&&Ft(Kt).exists(En=>!Vr(En.dom))),Mn=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt));return te(En)},Fn=wt=>{const Kt=Mn(wt,wt.selection.getStart()),En=L(wt.selection.getSelectedBlocks(),eo);return Kt.toArray().concat(En)},dr=wt=>{const Kt=wt.selection.getStart();return wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt))},xr=wt=>{const Kt=Fn(wt),En=dr(wt);return z(En,pr=>Qt(ve.fromDom(pr))).fold(()=>Oo(wt,Kt),pr=>[pr])},Oo=(wt,Kt)=>{const En=P(Kt,pr=>Mn(wt,pr).getOr(pr));return Z(En)},mi=wt=>/\btox\-/.test(wt.className),Di=(wt,Kt)=>I(wt,Vr,co).exists(En=>En.nodeName===Kt&&!mi(En)),To=(wt,Kt)=>Kt!==null&&!wt.dom.isEditable(Kt),Ia=wt=>{const Kt=zn(wt);return To(wt,Kt)},Ds=(wt,Kt)=>{const En=wt.dom.getParent(Kt,"ol,ul,dl");return To(wt,En)},fs=(wt,Kt)=>{const En=wt.selection.getNode();return Kt({parents:wt.dom.getParents(En),element:En}),wt.on("NodeChange",Kt),()=>wt.off("NodeChange",Kt)},zi=(wt,Kt)=>{const pr=(Kt||document).createDocumentFragment();return A(wt,wr=>{pr.appendChild(wr.dom)}),ve.fromDom(pr)},yl=(wt,Kt,En)=>wt.dispatch("ListMutation",{action:Kt,element:En}),yf=(wt=>Kt=>Kt.replace(wt,""))(/^\s+|\s+$/g),il=wt=>wt.length>0,nf=wt=>!il(wt),nh=wt=>wt.style!==void 0&&S(wt.style.getPropertyValue),gp=(wt,Kt,En)=>{if(!d(En))throw console.error("Invalid call to CSS.set. Property ",Kt,":: Value ",En,":: Element ",wt),new Error("CSS value must be a string: "+En);nh(wt)&&wt.style.setProperty(Kt,En)},Qs=(wt,Kt,En)=>{const pr=wt.dom;gp(pr,Kt,En)},bh=wt=>Pe(wt,"OL,UL"),Bl=wt=>Pe(wt,"LI"),Tc=wt=>St(wt).exists(bh),iu=wt=>Ft(wt).exists(bh),au=wt=>"listAttributes"in wt,zf=wt=>"isComment"in wt,_s=wt=>"isFragment"in wt,ma=wt=>wt.depth>0,mu=wt=>wt.isSelected,Uc=wt=>{const Kt=ht(wt),En=iu(wt)?Kt.slice(0,-1):Kt;return P(En,tr)},Kf=(wt,Kt,En)=>tt(wt).filter(Je).map(pr=>({depth:Kt,dirty:!1,isSelected:En,content:Uc(wt),itemAttributes:Un(wt),listAttributes:Un(pr),listType:Re(pr),isInPreviousLi:!1})),Al=(wt,Kt)=>{it(wt.item,Kt.list)},Wl=wt=>{for(let Kt=1;Kt{q(te(wt),X(Kt),Al)},Jf=(wt,Kt)=>{const En={list:ve.fromTag(Kt,wt),item:ve.fromTag("li",wt)};return it(En.list,En.item),En},Nf=(wt,Kt,En)=>{const pr=[];for(let wr=0;wr{for(let En=0;En{au(Kt)&&(fr(En.list,Kt.listAttributes),fr(En.item,Kt.itemAttributes)),Bt(En.item,Kt.content)})},Gh=(wt,Kt)=>{Re(wt.list)!==Kt.listType&&(wt.list=$r(wt.list,Kt.listType)),fr(wt.list,Kt.listAttributes)},ll=(wt,Kt,En)=>{const pr=ve.fromTag("li",wt);return fr(pr,Kt),Bt(pr,En),pr},Tu=(wt,Kt)=>{it(wt.list,Kt),wt.item=Kt},gu=(wt,Kt,En)=>{const pr=Kt.slice(0,En.depth);return te(pr).each(wr=>{if(au(En)){const uo=ll(wt,En.itemAttributes,En.content);Tu(wr,uo),Gh(wr,En)}else if(_s(En))Bt(wr.item,En.content);else{const uo=ve.fromHtml(``);it(wr.list,uo)}}),pr},ec=(wt,Kt,En)=>{const pr=Nf(wt,En,En.depth-Kt.length);return Wl(pr),Jl(pr,En),Ml(Kt,pr),Kt.concat(pr)},Dc=(wt,Kt)=>{let En=_.none();const pr=k(Kt,(wr,uo,Bi)=>zf(uo)?Bi===0?(En=_.some(uo),wr):gu(wt,wr,uo):uo.depth>wr.length?ec(wt,wr,uo):gu(wt,wr,uo),[]);return En.each(wr=>{const uo=ve.fromHtml(``);X(pr).each(Bi=>{Dt(Bi.list,uo)})}),X(pr).map(wr=>wr.list)},tc=(wt,Kt)=>{switch(wt){case"Indent":Kt.depth++;break;case"Outdent":Kt.depth--;break;case"Flatten":Kt.depth=0}Kt.dirty=!0},Lp=(wt,Kt)=>{au(wt)&&au(Kt)&&(wt.listType=Kt.listType,wt.listAttributes={...Kt.listAttributes})},rh=wt=>{wt.listAttributes=An(wt.listAttributes,(Kt,En)=>En!=="start")},rf=(wt,Kt)=>{const En=wt[Kt].depth,pr=uo=>uo.depth===En&&!uo.dirty,wr=uo=>uo.depthI(wt.slice(Kt+1),pr,wr))},of=wt=>(A(wt,(Kt,En)=>{rf(wt,En).fold(()=>{Kt.dirty&&au(Kt)&&rh(Kt)},pr=>Lp(Kt,pr))}),wt),bf=wt=>{let Kt=wt;return{get:()=>Kt,set:wr=>{Kt=wr}}},vu=(wt,Kt,En,pr)=>{var wr;if(Ze(pr))return[{depth:wt+1,content:(wr=pr.dom.nodeValue)!==null&&wr!==void 0?wr:"",dirty:!1,isSelected:!1,isComment:!0}];Kt.each(ya=>{we(ya.start,pr)&&En.set(!0)});const uo=Kf(pr,wt,En.get());Kt.each(ya=>{we(ya.end,pr)&&En.set(!1)});const Bi=Ft(pr).filter(bh).map(ya=>bl(wt,Kt,En,ya)).getOr([]);return uo.toArray().concat(Bi)},$d=(wt,Kt,En,pr)=>St(pr).filter(bh).fold(()=>vu(wt,Kt,En,pr),wr=>{const uo=k(ht(pr),(Bi,ya,Ni)=>{if(Ni===0)return Bi;if(Bl(ya))return Bi.concat(vu(wt,Kt,En,ya));{const Qi={isFragment:!0,depth:wt,content:[ya],isSelected:!1,dirty:!1,parentListType:Re(wr)};return Bi.concat(Qi)}},[]);return bl(wt,Kt,En,wr).concat(uo)}),bl=(wt,Kt,En,pr)=>Q(ht(pr),wr=>{const uo=bh(wr)?bl:$d,Bi=wt+1;return uo(Bi,Kt,En,wr)}),Zu=(wt,Kt)=>{const En=bf(!1),pr=0;return P(wt,wr=>({sourceList:wr,entries:bl(pr,Kt,En,wr)}))},Kh=(wt,Kt)=>{const En=of(Kt);return P(En,pr=>{const wr=zf(pr)?zi([ve.fromHtml(``)]):zi(pr.content),uo=au(pr)?pr.itemAttributes:{};return ve.fromDom(Do(wt,wr.dom,uo))})},Cu=(wt,Kt)=>{const En=of(Kt);return Dc(wt.contentDocument,En).toArray()},ed=(wt,Kt)=>Q(D(Kt,ma),En=>X(En).exists(ma)?Cu(wt,En):Kh(wt,En)),Bu=(wt,Kt)=>{A(L(wt,mu),En=>tc(Kt,En))},vd=wt=>{const Kt=P(Cr(wt),ve.fromDom);return q(z(Kt,p(Tc)),z(j(Kt),p(Tc)),(En,pr)=>({start:En,end:pr}))},cs=(wt,Kt,En)=>{const pr=Zu(Kt,vd(wt));A(pr,wr=>{Bu(wr.entries,En);const uo=ed(wt,wr.entries);A(uo,Bi=>{yl(wt,En==="Indent"?"IndentList":"OutdentList",Bi.dom)}),at(wr.sourceList,uo),qt(wr.sourceList)})},oh=(wt,Kt)=>{const En=Nt(xr(wt)),pr=Nt(wo(wt));let wr=!1;if(En.length||pr.length){const uo=wt.selection.getBookmark();cs(wt,En,Kt),Er(wt,Kt,pr),wt.selection.moveToBookmark(uo),wt.selection.setRng(on(wt.selection.getRng())),wt.nodeChanged(),wr=!0}return wr},Jh=(wt,Kt)=>!Ia(wt)&&oh(wt,Kt),xh=wt=>Jh(wt,"Indent"),xf=wt=>Jh(wt,"Outdent"),ep=wt=>Jh(wt,"Flatten"),_r="\uFEFF",Ff=wt=>wt===_r,yd=(wt,Kt,En)=>cn(wt,Kt,En).isSome(),bd=(wt,Kt)=>yd(wt,h(we,Kt));var _h=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const zu=vr.DOM,va=wt=>{const Kt={},En=pr=>{let wr=wt[pr?"startContainer":"endContainer"],uo=wt[pr?"startOffset":"endOffset"];if(zr(wr)){const Bi=zu.create("span",{"data-mce-type":"bookmark"});wr.hasChildNodes()?(uo=Math.min(uo,wr.childNodes.length-1),pr?wr.insertBefore(Bi,wr.childNodes[uo]):zu.insertAfter(Bi,wr.childNodes[uo])):wr.appendChild(Bi),wr=Bi,uo=0}Kt[pr?"startContainer":"endContainer"]=wr,Kt[pr?"startOffset":"endOffset"]=uo};return En(!0),wt.collapsed||En(),Kt},El=wt=>{const Kt=pr=>{const wr=ya=>{var Ni;let Qi=(Ni=ya.parentNode)===null||Ni===void 0?void 0:Ni.firstChild,Ws=0;for(;Qi;){if(Qi===ya)return Ws;(!zr(Qi)||Qi.getAttribute("data-mce-type")!=="bookmark")&&Ws++,Qi=Qi.nextSibling}return-1};let uo=wt[pr?"startContainer":"endContainer"],Bi=wt[pr?"startOffset":"endOffset"];if(uo){if(zr(uo)&&uo.parentNode){const ya=uo;Bi=wr(uo),uo=uo.parentNode,zu.remove(ya),!uo.hasChildNodes()&&zu.isBlock(uo)&&uo.appendChild(zu.create("br"))}wt[pr?"startContainer":"endContainer"]=uo,wt[pr?"startOffset":"endOffset"]=Bi}};Kt(!0),Kt();const En=zu.createRng();return En.setStart(wt.startContainer,wt.startOffset),wt.endContainer&&En.setEnd(wt.endContainer,wt.endOffset),on(En)},_f=wt=>{switch(wt){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},$f=(wt,Kt,En)=>{const pr=En["list-style-type"]?En["list-style-type"]:null;wt.setStyle(Kt,"list-style-type",pr)},ih=(wt,Kt)=>{qn.each(Kt,(En,pr)=>{wt.setAttribute(pr,En)})},yu=(wt,Kt,En)=>{ih(Kt,En["list-attributes"]),qn.each(wt.select("li",Kt),pr=>{ih(pr,En["list-item-attributes"])})},jc=(wt,Kt,En)=>{$f(wt,Kt,En),yu(wt,Kt,En)},Nh=(wt,Kt,En)=>{qn.each(En,pr=>wt.setStyle(Kt,pr,""))},af=(wt,Kt)=>i(Kt)&&!Mo(Kt,wt.schema.getBlockElements()),td=(wt,Kt,En,pr)=>{let wr=Kt[En?"startContainer":"endContainer"];const uo=Kt[En?"startOffset":"endOffset"];zr(wr)&&(wr=wr.childNodes[Math.min(uo,wr.childNodes.length-1)]||wr),!En&&Fo(wr.nextSibling)&&(wr=wr.nextSibling);const Bi=Ni=>{for(;!wt.dom.isBlock(Ni)&&Ni.parentNode&&pr!==Ni;)Ni=Ni.parentNode;return Ni},ya=(Ni,Qi)=>{var Ws;const nl=new Jt(Ni,Bi(Ni)),Fs=Qi?"next":"prev";let Wu;for(;Wu=nl[Fs]();)if(!(pi(wt,Wu)||Ff(Wu.textContent)||((Ws=Wu.textContent)===null||Ws===void 0?void 0:Ws.length)===0))return _.some(Wu);return _.none()};if(En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!1).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.previousSibling!==null&&(af(wt,wr.previousSibling)||lr(wr.previousSibling));)wr=wr.previousSibling;if(!En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!0).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.nextSibling!==null&&(af(wt,wr.nextSibling)||lr(wr.nextSibling));)wr=wr.nextSibling;for(;wr.parentNode!==pr;){const Ni=wr.parentNode;if($o(wt,wr)||/^(TD|TH)$/.test(Ni.nodeName))return wr;wr=Ni}return wr},sf=(wt,Kt,En)=>{const pr=[],wr=wt.dom,uo=td(wt,Kt,!0,En),Bi=td(wt,Kt,!1,En);let ya;const Ni=[];for(let Qi=uo;Qi&&(Ni.push(Qi),Qi!==Bi);Qi=Qi.nextSibling);return qn.each(Ni,Qi=>{var Ws;if($o(wt,Qi)){pr.push(Qi),ya=null;return}if(wr.isBlock(Qi)||Fo(Qi)){Fo(Qi)&&wr.remove(Qi),ya=null;return}const nl=Qi.nextSibling;if(_h.isBookmarkNode(Qi)&&(Vr(nl)||$o(wt,nl)||!nl&&Qi.parentNode===En)){ya=null;return}ya||(ya=wr.create("p"),(Ws=Qi.parentNode)===null||Ws===void 0||Ws.insertBefore(ya,Qi),pr.push(ya)),ya.appendChild(Qi)}),pr},Bc=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type");let wr=En?En["list-style-type"]:"";return wr=wr===null?"":wr,pr===wr},Vd=(wt,Kt)=>{const En=wt.selection.getStart(!0),pr=td(wt,Kt,!0,wt.getBody());return bd(ve.fromDom(pr),ve.fromDom(Kt.commonAncestorContainer))?Kt.commonAncestorContainer:En},xd=(wt,Kt,En)=>{const pr=wt.selection.getRng();let wr="LI";const uo=zo(wt,Vd(wt,pr)),Bi=wt.dom;if(Bi.getContentEditable(wt.selection.getNode())==="false")return;Kt=Kt.toUpperCase(),Kt==="DL"&&(wr="DT");const ya=va(pr),Ni=L(sf(wt,pr,uo),wt.dom.isEditable);qn.each(Ni,Qi=>{let Ws;const nl=Qi.previousSibling,Fs=Qi.parentNode;Yr(Fs)||(nl&&Vr(nl)&&nl.nodeName===Kt&&Bc(Bi,nl,En)?(Ws=nl,Qi=Bi.rename(Qi,wr),nl.appendChild(Qi)):(Ws=Bi.create(Kt),Fs.insertBefore(Ws,Qi),Ws.appendChild(Qi),Qi=Bi.rename(Qi,wr)),Nh(Bi,Qi,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),jc(Bi,Ws,En),Nu(wt.dom,Ws))}),wt.selection.setRng(El(ya))},vc=(wt,Kt)=>Vr(wt)&&wt.nodeName===(Kt==null?void 0:Kt.nodeName),gs=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type",!0),wr=wt.getStyle(En,"list-style-type",!0);return pr===wr},yc=(wt,Kt)=>wt.className===Kt.className,Cc=(wt,Kt,En)=>vc(Kt,En)&&gs(wt,Kt,En)&&yc(Kt,En),Nu=(wt,Kt)=>{let En,pr=Kt.nextSibling;if(Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.firstChild;)Kt.appendChild(En);wt.remove(wr)}if(pr=Kt.previousSibling,Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.lastChild;)Kt.insertBefore(En,Kt.firstChild);wt.remove(wr)}},Gs=(wt,Kt,En,pr)=>{if(Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ks=(wt,Kt,En,pr)=>{if(Kt.classList.forEach((wr,uo,Bi)=>{wr.startsWith("tox-")&&(Bi.remove(wr),Bi.length===0&&Kt.removeAttribute("class"))}),Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ac=(wt,Kt,En,pr,wr)=>{const uo=Vr(Kt);if(uo&&Kt.nodeName===pr&&!_d(wr)&&!mi(Kt))ep(wt);else{xd(wt,pr,wr);const Bi=va(wt.selection.getRng()),ya=uo?[Kt,...En]:En,Ni=uo&&mi(Kt)?Ks:Gs;qn.each(ya,Qi=>{Ni(wt,Qi,pr,wr)}),wt.selection.setRng(El(Bi))}},_d=wt=>"list-style-type"in wt,Fh=(wt,Kt,En,pr)=>{if(Kt!==wt.getBody())if(Kt)if(Kt.nodeName===En&&!_d(pr)&&!mi(Kt))ep(wt);else{const wr=va(wt.selection.getRng());mi(Kt)&&Kt.classList.forEach((Bi,ya,Ni)=>{Bi.startsWith("tox-")&&(Ni.remove(Bi),Ni.length===0&&Kt.removeAttribute("class"))}),jc(wt.dom,Kt,pr);const uo=wt.dom.rename(Kt,En);Nu(wt.dom,uo),wt.selection.setRng(El(wr)),xd(wt,En,pr),yl(wt,_f(En),uo)}else xd(wt,En,pr),yl(wt,_f(En),Kt)},$h=(wt,Kt,En)=>{const pr=zn(wt);if(Ds(wt,pr))return;const wr=Ur(wt),uo=s(En)?En:{};wr.length>0?Ac(wt,pr,wr,Kt,uo):Fh(wt,pr,Kt,uo)},vp=vr.DOM,ah=(wt,Kt)=>{const En=Kt.parentElement;if(En&&En.nodeName==="LI"&&En.firstChild===Kt){const pr=En.previousSibling;pr&&pr.nodeName==="LI"?(pr.appendChild(Kt),ar(wt,En)&&vp.remove(En)):vp.setStyle(En,"listStyleType","none")}if(Vr(En)){const pr=En.previousSibling;pr&&pr.nodeName==="LI"&&pr.appendChild(Kt)}},Au=(wt,Kt)=>{const En=qn.grep(wt.select("ol,ul",Kt));qn.each(En,pr=>{ah(wt,pr)})},lf=(wt,Kt,En,pr)=>{let wr=Kt.startContainer;const uo=Kt.startOffset;if(lr(wr)&&(En?uo0))return wr;const Bi=wt.schema.getNonEmptyElements();zr(wr)&&(wr=en.getNode(wr,uo));const ya=new Jt(wr,pr);En&&Hn(wt.dom,wr)&&ya.next();const Ni=En?ya.next.bind(ya):ya.prev2.bind(ya);for(;wr=Ni();)if(wr.nodeName==="LI"&&!wr.hasChildNodes()||Bi[wr.nodeName]||lr(wr)&&wr.data.length>0)return wr;return null},wf=(wt,Kt)=>{const En=Kt.childNodes;return En.length===1&&!Vr(En[0])&&wt.isBlock(En[0])},vs=wt=>_.from(wt).map(ve.fromDom).filter(Ye).exists(Kt=>xt(Kt)&&!M(["details"],Re(Kt))),cl=(wt,Kt)=>{wf(wt,Kt)&&vs(Kt.firstChild)&&wt.remove(Kt.firstChild,!0)},bc=(wt,Kt,En)=>{let pr;const wr=wf(wt,En)?En.firstChild:En;if(cl(wt,Kt),!ar(wt,Kt,!0))for(;pr=Kt.firstChild;)wr.appendChild(pr)},nc=(wt,Kt,En)=>{let pr;const wr=Kt.parentNode;if(!Dr(wt,Kt)||!Dr(wt,En))return;Vr(En.lastChild)&&(pr=En.lastChild),wr===En.lastChild&&Fo(wr.previousSibling)&&wt.remove(wr.previousSibling);const uo=En.lastChild;uo&&Fo(uo)&&Kt.hasChildNodes()&&wt.remove(uo),ar(wt,En,!0)&&_t(ve.fromDom(En)),bc(wt,Kt,En),pr&&En.appendChild(pr);const ya=Te(ve.fromDom(En),ve.fromDom(Kt))?wt.getParents(Kt,Vr,En):[];wt.remove(Kt),A(ya,Ni=>{ar(wt,Ni)&&Ni!==wt.getRoot()&&wt.remove(Ni)})},Qc=(wt,Kt,En)=>{_t(ve.fromDom(En)),nc(wt.dom,Kt,En),wt.selection.setCursorLocation(En,0)},ts=(wt,Kt,En,pr)=>{const wr=wt.dom;if(wr.isEmpty(pr))Qc(wt,En,pr);else{const uo=va(Kt);nc(wr,En,pr),wt.selection.setRng(El(uo))}},wi=(wt,Kt,En,pr)=>{const wr=va(Kt);nc(wt.dom,En,pr);const uo=El(wr);wt.selection.setRng(uo)},bu=(wt,Kt)=>{const En=wt.dom,pr=wt.selection,wr=pr.getStart(),uo=Nr(wt,wr),Bi=En.getParent(pr.getStart(),"LI",uo);if(Bi){const ya=Bi.parentElement;if(ya===wt.getBody()&&ar(En,ya))return!0;const Ni=on(pr.getRng()),Qi=En.getParent(lf(wt,Ni,Kt,uo),"LI",uo),Ws=Qi&&(Kt?En.isChildOf(Bi,Qi):En.isChildOf(Qi,Bi));if(Qi&&Qi!==Bi&&!Ws)return wt.undoManager.transact(()=>{Kt?ts(wt,Ni,Qi,Bi):_o(Bi)?xf(wt):wi(wt,Ni,Bi,Qi)}),!0;if(Ws&&!Kt&&Qi!==Bi)return wt.undoManager.transact(()=>{if(Ni.commonAncestorContainer.parentElement){const nl=va(Ni),Fs=Ni.commonAncestorContainer.parentElement;bc(En,Ni.commonAncestorContainer.parentElement,Qi),Fs.remove();const Wu=El(nl);wt.selection.setRng(Wu)}}),!0;if(!Qi&&!Kt&&Ni.startOffset===0&&Ni.endOffset===0)return wt.undoManager.transact(()=>{ep(wt)}),!0}return!1},wd=(wt,Kt,En)=>{const pr=wt.getParent(Kt.parentNode,wt.isBlock,En);wt.remove(Kt),pr&&wt.isEmpty(pr)&&wt.remove(pr)},Ol=(wt,Kt)=>{const En=wt.dom,pr=wt.selection.getStart(),wr=Nr(wt,pr),uo=En.getParent(pr,En.isBlock,wr);if(uo&&En.isEmpty(uo,void 0,{checkRootAsContent:!0})){const Bi=on(wt.selection.getRng()),ya=En.getParent(lf(wt,Bi,Kt,wr),"LI",wr);if(ya){const Ni=Fs=>M(["td","th","caption"],Re(Fs)),Qi=Fs=>Fs.dom===wr,Ws=Cn(ve.fromDom(ya),Ni,Qi),nl=Cn(ve.fromDom(Bi.startContainer),Ni,Qi);return re(Ws,nl,we)?(wt.undoManager.transact(()=>{const Fs=ya.parentNode;wd(En,uo,wr),Nu(En,Fs),wt.selection.select(ya,!0),wt.selection.collapse(Kt)}),!0):!1}}return!1},ds=(wt,Kt)=>bu(wt,Kt)||Ol(wt,Kt),zc=wt=>{const Kt=wt.selection.getStart(),En=Nr(wt,Kt);return wt.dom.getParent(Kt,"LI,DT,DD",En)||Cr(wt).length>0},Ud=wt=>zc(wt)?(wt.undoManager.transact(()=>{wt.execCommand("Delete"),Au(wt.dom,wt.getBody())}),!0):!1,cf=(wt,Kt)=>{const En=wt.selection;return!Ds(wt,En.getNode())&&(En.isCollapsed()?ds(wt,Kt):Ud(wt))},Of=wt=>{wt.on("ExecCommand",Kt=>{const En=Kt.command.toLowerCase();(En==="delete"||En==="forwarddelete")&&zc(wt)&&Au(wt.dom,wt.getBody())}),wt.on("keydown",Kt=>{Kt.keyCode===Zt.BACKSPACE?cf(wt,!1)&&Kt.preventDefault():Kt.keyCode===Zt.DELETE&&cf(wt,!0)&&Kt.preventDefault()})},aa=wt=>({backspaceDelete:Kt=>{cf(wt,Kt)}}),rs=(wt,Kt)=>{const En=zn(wt);En===null||Ds(wt,En)||wt.undoManager.transact(()=>{s(Kt.styles)&&wt.dom.setStyles(En,Kt.styles),s(Kt.attrs)&&rn(Kt.attrs,(pr,wr)=>wt.dom.setAttrib(En,wr,pr))})},Mu=wt=>{const Kt=j(yf(wt).split("")),En=P(Kt,(pr,wr)=>{const uo=pr.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,wr)*uo});return k(En,(pr,wr)=>pr+wr,0)},Ri=wt=>{if(wt--,wt<0)return"";{const Kt=wt%26,En=Math.floor(wt/26),pr=Ri(En),wr=String.fromCharCode("A".charCodeAt(0)+Kt);return pr+wr}},Gc=wt=>/^[A-Z]+$/.test(wt),qu=wt=>/^[a-z]+$/.test(wt),zl=wt=>/^[0-9]+$/.test(wt),xc=wt=>zl(wt)?2:Gc(wt)?0:qu(wt)?1:nf(wt)?3:4,Kc=wt=>{switch(xc(wt)){case 2:return _.some({listStyleType:_.none(),start:wt});case 0:return _.some({listStyleType:_.some("upper-alpha"),start:Mu(wt).toString()});case 1:return _.some({listStyleType:_.some("lower-alpha"),start:Mu(wt).toString()});case 3:return _.some({listStyleType:_.none(),start:""});case 4:return _.none()}},jd=wt=>{const Kt=parseInt(wt.start,10);return K(wt.listStyleType,"upper-alpha")?Ri(Kt):K(wt.listStyleType,"lower-alpha")?Ri(Kt).toLowerCase():wt.start},ii=wt=>{const Kt=zn(wt);!Jr(Kt)||Ds(wt,Kt)||wt.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:jd({start:wt.dom.getAttrib(Kt,"start","1"),listStyleType:_.from(wt.dom.getStyle(Kt,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:En=>{const pr=En.getData();Kc(pr.start).each(wr=>{wt.execCommand("mceListUpdate",!1,{attrs:{start:wr.start==="1"?"":wr.start},styles:{"list-style-type":wr.listStyleType.getOr("")}})}),En.close()}})},nd=(wt,Kt)=>()=>{const En=zn(wt);return i(En)&&En.nodeName===Kt},al=wt=>{wt.addCommand("mceListProps",()=>{ii(wt)})},Yl=wt=>{wt.on("BeforeExecCommand",Kt=>{const En=Kt.command.toLowerCase();En==="indent"?xh(wt):En==="outdent"&&xf(wt)}),wt.addCommand("InsertUnorderedList",(Kt,En)=>{$h(wt,"UL",En)}),wt.addCommand("InsertOrderedList",(Kt,En)=>{$h(wt,"OL",En)}),wt.addCommand("InsertDefinitionList",(Kt,En)=>{$h(wt,"DL",En)}),wt.addCommand("RemoveList",()=>{ep(wt)}),al(wt),wt.addCommand("mceListUpdate",(Kt,En)=>{s(En)&&rs(wt,En)}),wt.addQueryStateHandler("InsertUnorderedList",nd(wt,"UL")),wt.addQueryStateHandler("InsertOrderedList",nd(wt,"OL")),wt.addQueryStateHandler("InsertDefinitionList",nd(wt,"DL"))};var uf=tinymce.util.Tools.resolve("tinymce.html.Node");const hs=wt=>wt.type===3,Mc=wt=>wt.length===0,Eu=wt=>{const Kt=(wr,uo)=>{const Bi=uf.create("li");A(wr,ya=>Bi.append(ya)),uo?wt.insert(Bi,uo,!0):wt.append(Bi)},En=(wr,uo)=>hs(uo)?[...wr,uo]:!Mc(wr)&&!hs(uo)?(Kt(wr,uo),[]):wr,pr=k(wt.children(),En,[]);Mc(pr)||Kt(pr)},xu=wt=>{wt.on("PreInit",()=>{const{parser:Kt}=wt;Kt.addNodeFilter("ul,ol",En=>A(En,Eu))})},ws=wt=>{wt.on("keydown",Kt=>{Kt.keyCode!==Zt.TAB||Zt.metaKeyPressed(Kt)||wt.undoManager.transact(()=>{(Kt.shiftKey?xf(wt):xh(wt))&&Kt.preventDefault()})})},Fu=wt=>{go(wt)&&ws(wt),Of(wt)},su=(wt,Kt)=>En=>{const pr=wr=>{En.setActive(Di(wr.parents,Kt)),En.setEnabled(!Ds(wt,wr.element)&&wt.selection.isEditable())};return En.setEnabled(wt.selection.isEditable()),fs(wt,pr)},Ca=wt=>{const Kt=En=>()=>wt.execCommand(En);wt.hasPlugin("advlist")||(wt.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:Kt("InsertOrderedList"),onSetup:su(wt,"OL")}),wt.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:Kt("InsertUnorderedList"),onSetup:su(wt,"UL")}))},Ls=(wt,Kt)=>En=>fs(wt,wr=>En.setEnabled(Di(wr.parents,Kt)&&!Ds(wt,wr.element))),Ec=wt=>{const Kt={text:"List properties...",icon:"ordered-list",onAction:()=>wt.execCommand("mceListProps"),onSetup:Ls(wt,"OL")};wt.ui.registry.addMenuItem("listprops",Kt),wt.ui.registry.addContextMenu("lists",{update:En=>{const pr=zn(wt,En);return Jr(pr)?["listprops"]:[]}})};var _u=()=>{t.add("lists",wt=>(Zr(wt),xu(wt),wt.hasPlugin("rtc",!0)?al(wt):(Fu(wt),Yl(wt)),Ca(wt),Ec(wt),aa(wt)))};_u()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(Gt,on,an)=>{var Tn;return an(Gt,on.prototype)?!0:((Tn=Gt.constructor)===null||Tn===void 0?void 0:Tn.name)===on.name},o=Gt=>{const on=typeof Gt;return Gt===null?"null":on==="object"&&Array.isArray(Gt)?"array":on==="object"&&e(Gt,String,(an,Tn)=>Tn.isPrototypeOf(an))?"string":on},f=Gt=>on=>o(on)===Gt,E=Gt=>on=>typeof on===Gt,d=Gt=>on=>Gt===on,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=Gt=>Gt==null,w=Gt=>!S(Gt),y=E("function"),m=(Gt,on)=>{if(u(Gt)){for(let an=0,Tn=Gt.length;an{},c=Gt=>()=>Gt,h=(Gt,on)=>Gt===on;class p{constructor(on,an){this.tag=on,this.value=an}static some(on){return new p(!0,on)}static none(){return p.singletonNone}fold(on,an){return this.tag?an(this.value):on()}isSome(){return this.tag}isNone(){return!this.tag}map(on){return this.tag?p.some(on(this.value)):p.none()}bind(on){return this.tag?on(this.value):p.none()}exists(on){return this.tag&&on(this.value)}forall(on){return!this.tag||on(this.value)}filter(on){return!this.tag||on(this.value)?this:p.none()}getOr(on){return this.tag?this.value:on}or(on){return this.tag?this:on}getOrThunk(on){return this.tag?this.value:on()}orThunk(on){return this.tag?this:on()}getOrDie(on){if(this.tag)return this.value;throw new Error(on??"Called getOrDie on None")}static from(on){return w(on)?p.some(on):p.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(on){this.tag&&on(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}p.singletonNone=new p(!1);const v=Array.prototype.indexOf,_=Array.prototype.push,O=(Gt,on)=>v.call(Gt,on),C=(Gt,on)=>O(Gt,on)>-1,x=(Gt,on)=>{const an=Gt.length,Tn=new Array(an);for(let zn=0;zn{for(let an=0,Tn=Gt.length;an(R(Gt,(Tn,zn)=>{an=on(an,Tn,zn)}),an),T=Gt=>{const on=[];for(let an=0,Tn=Gt.length;anT(x(Gt,on)),A=(Gt,on)=>{for(let an=0;anGt.exists(Tn=>an(Tn,on)),D=Gt=>{const on=[],an=Tn=>{on.push(Tn)};for(let Tn=0;TnGt?p.some(on):p.none(),I=Gt=>on=>on.options.get(Gt),z=Gt=>{const on=Gt.options.register;on("link_assume_external_targets",{processor:an=>{const Tn=s(an)||i(an);return Tn?an===!0?{value:1,valid:Tn}:an==="http"||an==="https"?{value:an,valid:Tn}:{value:0,valid:Tn}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),on("link_context_toolbar",{processor:"boolean",default:!1}),on("link_list",{processor:an=>s(an)||y(an)||m(an,n)}),on("link_default_target",{processor:"string"}),on("link_default_protocol",{processor:"string",default:"https"}),on("link_target_list",{processor:an=>i(an)||m(an,n),default:!0}),on("link_rel_list",{processor:"object[]",default:[]}),on("link_class_list",{processor:"object[]",default:[]}),on("link_title",{processor:"boolean",default:!0}),on("allow_unsafe_link_target",{processor:"boolean",default:!1}),on("link_quicklink",{processor:"boolean",default:!1})},$=I("link_assume_external_targets"),Q=I("link_context_toolbar"),j=I("link_list"),U=I("link_default_target"),X=I("link_default_protocol"),te=I("link_target_list"),Z=I("link_rel_list"),K=I("link_class_list"),re=I("link_title"),q=I("allow_unsafe_link_target"),Y=I("link_quicklink"),ee=Object.keys,me=Object.hasOwnProperty,pe=(Gt,on)=>{const an=ee(Gt);for(let Tn=0,zn=an.length;Tn(on,an)=>{Gt[an]=on},ae=(Gt,on,an,Tn)=>{pe(Gt,(zn,Gn)=>{(on(zn,Gn)?an:Tn)(zn,Gn)})},ce=(Gt,on)=>{const an={};return ae(Gt,on,se(an),a),an},de=(Gt,on)=>me.call(Gt,on),ye=(Gt,on)=>de(Gt,on)&&Gt[on]!==void 0&&Gt[on]!==null;var ve=tinymce.util.Tools.resolve("tinymce.util.URI"),_e=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),we=tinymce.util.Tools.resolve("tinymce.util.Tools");const Te=Gt=>w(Gt)&&Gt.nodeName.toLowerCase()==="a",Pe=Gt=>Te(Gt)&&!!De(Gt),Ie=(Gt,on)=>{if(Gt.collapsed)return[];{const an=Gt.cloneContents(),Tn=an.firstChild,zn=new _e(Tn,an),Gn=[];let Lr=Tn;do on(Lr)&&Gn.push(Lr);while(Lr=zn.next());return Gn}},ze=Gt=>/^\w+:/i.test(Gt),De=Gt=>{var on,an;return(an=(on=Gt.getAttribute("data-mce-href"))!==null&&on!==void 0?on:Gt.getAttribute("href"))!==null&&an!==void 0?an:""},Qe=(Gt,on)=>{const an=["noopener"],Tn=Gt?Gt.split(/\s+/):[],zn=qr=>we.trim(qr.sort().join(" ")),Gn=qr=>(qr=Lr(qr),qr.length>0?qr.concat(an):an),Lr=qr=>qr.filter(Cr=>we.inArray(an,Cr)===-1),Ur=on?Gn(Tn):Lr(Tn);return Ur.length>0?zn(Ur):""},Ve=Gt=>Gt.replace(/\uFEFF/g,""),$e=(Gt,on)=>(on=on||Re(Gt.selection.getRng())[0]||Gt.selection.getNode(),Je(on)?p.from(Gt.dom.select("a[href]",on)[0]):p.from(Gt.dom.getParent(on,"a[href]"))),Oe=(Gt,on)=>$e(Gt,on).isSome(),ke=(Gt,on)=>{const an=on.fold(()=>Gt.getContent({format:"text"}),Tn=>Tn.innerText||Tn.textContent||"");return Ve(an)},Re=Gt=>Ie(Gt,Pe),We=Gt=>we.grep(Gt,Pe),Ue=Gt=>We(Gt).length>0,Ze=Gt=>Re(Gt).length>0,Ye=Gt=>{const on=Gt.schema.getTextInlineElements(),an=Gn=>Gn.nodeType===1&&!Te(Gn)&&!de(on,Gn.nodeName.toLowerCase());if($e(Gt).exists(Gn=>Gn.hasAttribute("data-mce-block")))return!1;const zn=Gt.selection.getRng();return zn.collapsed?!0:Ie(zn,an).length===0},Je=Gt=>w(Gt)&&Gt.nodeName==="FIGURE"&&/\bimage\b/i.test(Gt.className),Me=Gt=>M(["title","rel","class","target"],(an,Tn)=>(Gt[Tn].each(zn=>{an[Tn]=zn.length>0?zn:null}),an),{href:Gt.href}),Fe=(Gt,on)=>(on==="http"||on==="https")&&!ze(Gt)?on+"://"+Gt:Gt,je=(Gt,on)=>{const an={...on};if(Z(Gt).length===0&&!q(Gt)){const Tn=Qe(an.rel,an.target==="_blank");an.rel=Tn||null}return p.from(an.target).isNone()&&te(Gt)===!1&&(an.target=U(Gt)),an.href=Fe(an.href,$(Gt)),an},tt=(Gt,on,an,Tn)=>{an.each(zn=>{de(on,"innerText")?on.innerText=zn:on.textContent=zn}),Gt.dom.setAttribs(on,Tn),Gt.selection.select(on)},ot=(Gt,on,an,Tn)=>{const zn=Gt.dom;Je(on)?tn(zn,on,Tn):an.fold(()=>{Gt.execCommand("mceInsertLink",!1,Tn)},Gn=>{Gt.insertContent(zn.createHTML("a",Tn,zn.encode(Gn)))})},Ge=(Gt,on,an)=>{const Tn=Gt.selection.getNode(),zn=$e(Gt,Tn),Gn=je(Gt,Me(an));Gt.undoManager.transact(()=>{an.href===on.href&&on.attach(),zn.fold(()=>{ot(Gt,Tn,an.text,Gn)},Lr=>{Gt.focus(),tt(Gt,Lr,an.text,Gn)})})},ht=Gt=>{const on=Gt.dom,an=Gt.selection,Tn=an.getBookmark(),zn=an.getRng().cloneRange(),Gn=on.getParent(zn.startContainer,"a[href]",Gt.getBody()),Lr=on.getParent(zn.endContainer,"a[href]",Gt.getBody());Gn&&zn.setStartBefore(Gn),Lr&&zn.setEndAfter(Lr),an.setRng(zn),Gt.execCommand("unlink"),an.moveToBookmark(Tn)},pt=Gt=>{Gt.undoManager.transact(()=>{const on=Gt.selection.getNode();Je(on)?ln(Gt,on):ht(Gt),Gt.focus()})},St=Gt=>{const{class:on,href:an,rel:Tn,target:zn,text:Gn,title:Lr}=Gt;return ce({class:on.getOrNull(),href:an,rel:Tn.getOrNull(),target:zn.getOrNull(),text:Gn.getOrNull(),title:Lr.getOrNull()},(Ur,qr)=>b(Ur)===!1)},Ft=(Gt,on)=>{const an=Gt.options.get,Tn={allow_html_data_urls:an("allow_html_data_urls"),allow_script_urls:an("allow_script_urls"),allow_svg_data_urls:an("allow_svg_data_urls")},zn=on.href;return{...on,href:ve.isDomSafe(zn,"a",Tn)?zn:""}},zt=(Gt,on,an)=>{const Tn=Ft(Gt,an);Gt.hasPlugin("rtc",!0)?Gt.execCommand("createlink",!1,St(Tn)):Ge(Gt,on,Tn)},Yt=Gt=>{Gt.hasPlugin("rtc",!0)?Gt.execCommand("unlink"):pt(Gt)},ln=(Gt,on)=>{var an;const Tn=Gt.dom.select("img",on)[0];if(Tn){const zn=Gt.dom.getParents(Tn,"a[href]",on)[0];zn&&((an=zn.parentNode)===null||an===void 0||an.insertBefore(Tn,zn),Gt.dom.remove(zn))}},tn=(Gt,on,an)=>{var Tn;const zn=Gt.select("img",on)[0];if(zn){const Gn=Gt.create("a",an);(Tn=zn.parentNode)===null||Tn===void 0||Tn.insertBefore(Gn,zn),Gn.appendChild(zn)}},Et=Gt=>s(Gt.value)?Gt.value:"",Ot=Gt=>s(Gt.text)?Gt.text:s(Gt.title)?Gt.title:"",cn=(Gt,on)=>{const an=[];return we.each(Gt,Tn=>{const zn=Ot(Tn);if(Tn.menu!==void 0){const Gn=cn(Tn.menu,on);an.push({text:zn,items:Gn})}else{const Gn=on(Tn);an.push({text:zn,value:Gn})}}),an},Cn=(Gt=Et)=>on=>p.from(on).map(an=>cn(an,Gt)),vt={sanitize:Gt=>Cn(Et)(Gt),sanitizeWith:Cn,createUi:(Gt,on)=>an=>({name:Gt,type:"listbox",label:on,items:an}),getValue:Et},xt=Gt=>ye(Gt,"items"),st=(Gt,on)=>A(on,an=>xt(an)?st(Gt,an.items):k(an.value===Gt,an)),bt=(Gt,on,an,Tn)=>{const zn=Tn[on],Gn=Gt.length>0;return zn!==void 0?st(zn,an).map(Lr=>({url:{value:Lr.value,meta:{text:Gn?Gt:Lr.text,attach:a}},text:Gn?Gt:Lr.text})):p.none()},Vt=(Gt,on)=>on==="link"?Gt.link:on==="anchor"?Gt.anchor:p.none(),it={init:(Gt,on)=>{const an={text:Gt.text,title:Gt.title},Tn=qr=>{var Cr;return k(an.title.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.title).getOr(""))},zn=qr=>{var Cr;return k(an.text.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.text).getOr(qr.value))},Gn=qr=>{const Cr=zn(qr.url),wo=Tn(qr.url);return Cr.isSome()||wo.isSome()?p.some({...Cr.map(Nr=>({text:Nr})).getOr({}),...wo.map(Nr=>({title:Nr})).getOr({})}):p.none()},Lr=(qr,Cr)=>{const wo=Vt(on,Cr).getOr([]);return bt(an.text,Cr,wo,qr)};return{onChange:(qr,Cr)=>{const wo=Cr.name;return wo==="url"?Gn(qr()):C(["anchor","link"],wo)?Lr(qr(),wo):((wo==="text"||wo==="title")&&(an[wo]=qr()[wo]),p.none())}}},getDelta:bt};var at=tinymce.util.Tools.resolve("tinymce.util.Delay");const Bt=(Gt,on,an)=>{const Tn=Gt.selection.getRng();at.setEditorTimeout(Gt,()=>{Gt.windowManager.confirm(on,zn=>{Gt.selection.setRng(Tn),an(zn)})})},_t=Gt=>{const on=Gt.href;return on.indexOf("@")>0&&on.indexOf("/")===-1&&on.indexOf("mailto:")===-1?p.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:Tn=>({...Tn,href:"mailto:"+on})}):p.none()},qt=(Gt,on)=>an=>{const Tn=an.href;return Gt===1&&!ze(Tn)||Gt===0&&/^\s*www(\.|\d\.)/i.test(Tn)?p.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${on}:// prefix?`,preprocess:Gn=>({...Gn,href:on+"://"+Tn})}):p.none()},Jt={preprocess:(Gt,on)=>A([_t,qt($(Gt),X(Gt))],an=>an(on)).fold(()=>Promise.resolve(on),an=>new Promise(Tn=>{Bt(Gt,an.message,zn=>{Tn(zn?an.preprocess(on):on)})}))},Nt={getAnchors:Gt=>{const on=Gt.dom.select("a:not([href])"),an=P(on,Tn=>{const zn=Tn.name||Tn.id;return zn?[{text:zn,value:"#"+zn}]:[]});return an.length>0?p.some([{text:"None",value:""}].concat(an)):p.none()}},rn={getClasses:Gt=>{const on=K(Gt);return on.length>0?vt.sanitize(on):p.none()}},_n=Gt=>{try{return p.some(JSON.parse(Gt))}catch{return p.none()}},An={getLinks:Gt=>{const on=Tn=>Gt.convertURL(Tn.value||Tn.url||"","href"),an=j(Gt);return new Promise(Tn=>{s(an)?fetch(an).then(zn=>zn.ok?zn.text().then(_n):Promise.reject()).then(Tn,()=>Tn(p.none())):y(an)?an(zn=>Tn(p.some(zn))):Tn(p.from(an))}).then(Tn=>Tn.bind(vt.sanitizeWith(on)).map(zn=>zn.length>0?[{text:"None",value:""}].concat(zn):zn))}},fr={getRels:(Gt,on)=>{const an=Z(Gt);if(an.length>0){const Tn=L(on,"_blank"),zn=q(Gt)===!1,Gn=Ur=>Qe(vt.getValue(Ur),Tn);return(zn?vt.sanitizeWith(Gn):vt.sanitize)(an)}return p.none()}},Un=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],tr={getTargets:Gt=>{const on=te(Gt);return u(on)?vt.sanitize(on).orThunk(()=>p.some(Un)):on===!1?p.none():p.some(Un)}},Br=(Gt,on,an)=>{const Tn=Gt.getAttrib(on,an);return Tn!==null&&Tn.length>0?p.some(Tn):p.none()},$r=(Gt,on)=>{const an=Gt.dom,zn=Ye(Gt)?p.some(ke(Gt.selection,on)):p.none(),Gn=on.bind(wo=>p.from(an.getAttrib(wo,"href"))),Lr=on.bind(wo=>p.from(an.getAttrib(wo,"target"))),Ur=on.bind(wo=>Br(an,wo,"rel")),qr=on.bind(wo=>Br(an,wo,"class")),Cr=on.bind(wo=>Br(an,wo,"title"));return{url:Gn,text:zn,title:Cr,target:Lr,rel:Ur,linkClass:qr}},qn={collect:(Gt,on)=>An.getLinks(Gt).then(an=>{const Tn=$r(Gt,on);return{anchor:Tn,catalogs:{targets:tr.getTargets(Gt),rels:fr.getRels(Gt,Tn.target),classes:rn.getClasses(Gt),anchor:Nt.getAnchors(Gt),link:an},optNode:on,flags:{titleEnabled:re(Gt)}}})},gr=(Gt,on)=>an=>{const Tn=an.getData();if(!Tn.url.value){Yt(Gt),an.close();return}const zn=Ur=>p.from(Tn[Ur]).filter(qr=>!L(on.anchor[Ur],qr)),Gn={href:Tn.url.value,text:zn("text"),target:zn("target"),rel:zn("rel"),class:zn("linkClass"),title:zn("title")},Lr={href:Tn.url.value,attach:Tn.url.meta!==void 0&&Tn.url.meta.attach?Tn.url.meta.attach:a};Jt.preprocess(Gt,Gn).then(Ur=>{zt(Gt,Lr,Ur)}),an.close()},sr=Gt=>{const on=$e(Gt);return qn.collect(Gt,on)},lr=(Gt,on)=>{const an=Gt.anchor,Tn=an.url.getOr("");return{url:{value:Tn,meta:{original:{value:Tn}}},text:an.text.getOr(""),title:an.title.getOr(""),anchor:Tn,link:Tn,rel:an.rel.getOr(""),target:an.target.or(on).getOr(""),linkClass:an.linkClass.getOr("")}},zr=(Gt,on,an)=>{const Tn=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],zn=Gt.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),Gn=Gt.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],Lr=p.from(U(an)),Ur=lr(Gt,Lr),qr=Gt.catalogs,Cr=it.init(Ur,qr);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:T([Tn,zn,Gn,D([qr.anchor.map(vt.createUi("anchor","Anchors")),qr.rels.map(vt.createUi("rel","Rel")),qr.targets.map(vt.createUi("target","Open link in...")),qr.link.map(vt.createUi("link","Link list")),qr.classes.map(vt.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ur,onChange:(Nr,{name:Eo})=>{Cr.onChange(Nr.getData,{name:Eo}).each(zo=>{Nr.setData(zo)})},onSubmit:on}},Vr=Gt=>{sr(Gt).then(an=>{const Tn=gr(Gt,an);return zr(an,Tn,Gt)}).then(an=>{Gt.windowManager.open(an)})},eo=Gt=>{Gt.addCommand("mceLink",(on,an)=>{(an==null?void 0:an.dialog)===!0||!Y(Gt)?Vr(Gt):Gt.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"})})},Jr=Gt=>{Gt.addShortcut("Meta+K","",()=>{Gt.execCommand("mceLink")})},Yr=Gt=>{let on=Gt;return{get:()=>on,set:zn=>{on=zn}}},to=Gt=>{const on=Yr(p.none()),an=()=>on.get().each(Gt);return{clear:()=>{an(),on.set(p.none())},isSet:()=>on.get().isSome(),get:()=>on.get(),set:Ur=>{an(),on.set(p.some(Ur))}}},co=()=>{const Gt=to(a);return{...Gt,on:an=>Gt.get().each(an)}};var Fo=tinymce.util.Tools.resolve("tinymce.util.VK");const _o=(Gt,on)=>{document.body.appendChild(Gt),Gt.dispatchEvent(on),document.body.removeChild(Gt)},$o=Gt=>{const on=document.createElement("a");on.target="_blank",on.href=Gt,on.rel="noreferrer noopener";const an=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});document.dispatchEvent(an),_o(on,an)},Mo=Gt=>Gt.altKey===!0&&Gt.shiftKey===!1&&Gt.ctrlKey===!1&&Gt.metaKey===!1,pi=(Gt,on)=>{if(on){const an=De(on);if(/^#/.test(an)){const Tn=Gt.dom.select(an);Tn.length&&Gt.selection.scrollIntoView(Tn[0],!0)}else $o(on.href)}},Hn=Gt=>{const on=Gt.selection.getRng(),an=on.startContainer;return Pe(an)&&on.startContainer===on.endContainer&&Gt.dom.select("img",an).length===1},ar=(Gt,on)=>{const an=We(Gt.dom.getParents(on));return k(an.length===1,an[0])},Dr=Gt=>{const on=Re(Gt.selection.getRng());return k(on.length>0,on[0]).or(ar(Gt,Gt.selection.getNode()))},Sr=Gt=>Gt.selection.isCollapsed()||Hn(Gt)?ar(Gt,Gt.selection.getStart()):Dr(Gt),Zr=Gt=>{const on=co(),an=()=>on.get().or(Sr(Gt)),Tn=()=>an().each(zn=>pi(Gt,zn));return Gt.on("contextmenu",zn=>{ar(Gt,zn.target).each(on.set)}),Gt.on("SelectionChange",()=>{on.isSet()||Sr(Gt).each(on.set)}),Gt.on("click",zn=>{on.clear();const Gn=We(Gt.dom.getParents(zn.target));Gn.length===1&&Fo.metaKeyPressed(zn)&&(zn.preventDefault(),pi(Gt,Gn[0]))}),Gt.on("keydown",zn=>{on.clear(),!zn.isDefaultPrevented()&&zn.keyCode===13&&Mo(zn)&&an().each(Gn=>{zn.preventDefault(),pi(Gt,Gn)})}),{gotoSelectedLink:Tn}},go=Gt=>()=>{Gt.execCommand("mceLink",!1,{dialog:!0})},oo=(Gt,on)=>(Gt.on("NodeChange",on),()=>Gt.off("NodeChange",on)),io=Gt=>on=>{const an=()=>{on.setActive(!Gt.mode.isReadOnly()&&Oe(Gt,Gt.selection.getNode())),on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},Do=Gt=>on=>{const an=()=>{on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},jn=Gt=>on=>{const an=Gn=>Ue(Gn)||Ze(Gt.selection.getRng()),Tn=Gt.dom.getParents(Gt.selection.getStart()),zn=Gn=>{on.setEnabled(an(Gn)&&Gt.selection.isEditable())};return zn(Tn),oo(Gt,Gn=>zn(Gn.parents))},Rr=(Gt,on)=>{Gt.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Meta+K",onAction:go(Gt),onSetup:io(Gt)}),Gt.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},On=(Gt,on)=>{Gt.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:go(Gt),onSetup:Do(Gt)}),Gt.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},Yn=Gt=>{const on="link unlink openlink",an="link";Gt.ui.registry.addContextMenu("link",{update:Tn=>Gt.dom.isEditable(Tn)?Ue(Gt.dom.getParents(Tn,"a"))?on:an:""})},ir=(Gt,on)=>{const an=Gn=>{Gn.selection.collapse(!1)},Tn=Gn=>{const Lr=Gt.selection.getNode();return Gn.setEnabled(Oe(Gt,Lr)),a},zn=Gn=>{const Lr=$e(Gt),Ur=Ye(Gt);if(Lr.isNone()&&Ur){const qr=ke(Gt.selection,Lr);return k(qr.length===0,Gn)}else return p.none()};Gt.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:io(Gt)},label:"Link",predicate:Gn=>Q(Gt)&&Oe(Gt,Gn),initValue:()=>$e(Gt).fold(c(""),De),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:Gn=>{const Lr=Gt.selection.getNode();return Gn.setActive(Oe(Gt,Lr)),io(Gt)(Gn)},onAction:Gn=>{const Lr=Gn.getValue(),Ur=zn(Lr);zt(Gt,{href:Lr,attach:a},{href:Lr,text:Ur,title:p.none(),rel:p.none(),target:p.from(U(Gt)),class:p.none()}),an(Gt),Gn.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:Tn,onAction:Gn=>{Yt(Gt),Gn.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:Tn,onAction:Gn=>{on.gotoSelectedLink(),Gn.hide()}}]})},kr=Gt=>{const on=Zr(Gt);Rr(Gt,on),On(Gt,on),Yn(Gt),ir(Gt,on)};var Er=()=>{t.add("link",Gt=>{z(Gt),eo(Gt),kr(Gt),Jr(Gt)})};Er()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(mt,Tt,xn)=>{var Nn;return xn(mt,Tt.prototype)?!0:((Nn=mt.constructor)===null||Nn===void 0?void 0:Nn.name)===Tt.name},o=mt=>{const Tt=typeof mt;return mt===null?"null":Tt==="object"&&Array.isArray(mt)?"array":Tt==="object"&&e(mt,String,(xn,Nn)=>Nn.isPrototypeOf(xn))?"string":Tt},f=mt=>Tt=>o(Tt)===mt,E=mt=>Tt=>typeof Tt===mt,d=mt=>Tt=>mt===Tt,s=f("string"),n=f("array"),u=E("boolean"),b=d(void 0),i=mt=>mt==null,S=mt=>!i(mt),w=E("function"),y=E("number"),m=()=>{},a=(mt,Tt)=>xn=>mt(Tt(xn)),c=mt=>()=>mt,h=mt=>mt,p=(mt,Tt)=>mt===Tt;function v(mt,...Tt){return(...xn)=>{const Nn=Tt.concat(xn);return mt.apply(null,Nn)}}const _=mt=>{mt()},O=c(!1),C=c(!0);class x{constructor(Tt,xn){this.tag=Tt,this.value=xn}static some(Tt){return new x(!0,Tt)}static none(){return x.singletonNone}fold(Tt,xn){return this.tag?xn(this.value):Tt()}isSome(){return this.tag}isNone(){return!this.tag}map(Tt){return this.tag?x.some(Tt(this.value)):x.none()}bind(Tt){return this.tag?Tt(this.value):x.none()}exists(Tt){return this.tag&&Tt(this.value)}forall(Tt){return!this.tag||Tt(this.value)}filter(Tt){return!this.tag||Tt(this.value)?this:x.none()}getOr(Tt){return this.tag?this.value:Tt}or(Tt){return this.tag?this:Tt}getOrThunk(Tt){return this.tag?this.value:Tt()}orThunk(Tt){return this.tag?this:Tt()}getOrDie(Tt){if(this.tag)return this.value;throw new Error(Tt??"Called getOrDie on None")}static from(Tt){return S(Tt)?x.some(Tt):x.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Tt){this.tag&&Tt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}x.singletonNone=new x(!1);const R=Object.keys,M=Object.hasOwnProperty,T=(mt,Tt)=>{const xn=R(mt);for(let Nn=0,yr=xn.length;Nn(Tt,xn)=>{mt[xn]=Tt},A=(mt,Tt,xn,Nn)=>{T(mt,(yr,so)=>{(Tt(yr,so)?xn:Nn)(yr,so)})},L=(mt,Tt)=>{const xn={};return A(mt,Tt,P(xn),m),xn},D=(mt,Tt)=>{const xn=[];return T(mt,(Nn,yr)=>{xn.push(Tt(Nn,yr))}),xn},k=mt=>D(mt,h),I=mt=>R(mt).length,z=(mt,Tt)=>$(mt,Tt)?x.from(mt[Tt]):x.none(),$=(mt,Tt)=>M.call(mt,Tt),Q=(mt,Tt)=>$(mt,Tt)&&mt[Tt]!==void 0&&mt[Tt]!==null,j=mt=>{for(const Tt in mt)if(M.call(mt,Tt))return!1;return!0},U=Array.prototype.indexOf,X=Array.prototype.push,te=(mt,Tt)=>U.call(mt,Tt),Z=(mt,Tt)=>te(mt,Tt)>-1,K=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn=[];for(let Nn=0;Nn{const xn=mt.length,Nn=new Array(xn);for(let yr=0;yr{for(let xn=0,Nn=mt.length;xn{for(let xn=mt.length-1;xn>=0;xn--){const Nn=mt[xn];Tt(Nn,xn)}},me=(mt,Tt)=>{const xn=[],Nn=[];for(let yr=0,so=mt.length;yr{const xn=[];for(let Nn=0,yr=mt.length;Nn(ee(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ae=(mt,Tt,xn)=>(Y(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ce=(mt,Tt,xn)=>{for(let Nn=0,yr=mt.length;Nnce(mt,Tt,O),ye=mt=>{const Tt=[];for(let xn=0,Nn=mt.length;xnye(q(mt,Tt)),_e=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn={};for(let Nn=0,yr=mt.length;NnTt>=0&&TtTe(mt,0),Ie=mt=>Te(mt,mt.length-1),ze=(mt,Tt)=>{for(let xn=0;xn{const Nn=(Tt||document).createElement("div");if(Nn.innerHTML=mt,!Nn.hasChildNodes()||Nn.childNodes.length>1){const yr="HTML does not have a single root node";throw console.error(yr,mt),new Error(yr)}return Ue(Nn.childNodes[0])},Re=(mt,Tt)=>{const Nn=(Tt||document).createElement(mt);return Ue(Nn)},We=(mt,Tt)=>{const Nn=(Tt||document).createTextNode(mt);return Ue(Nn)},Ue=mt=>{if(mt==null)throw new Error("Node cannot be null or undefined");return{dom:mt}},Ye={fromHtml:ke,fromTag:Re,fromText:We,fromDom:Ue,fromPoint:(mt,Tt,xn)=>x.from(mt.dom.elementFromPoint(Tt,xn)).map(Ue)},Je=(mt,Tt)=>{const xn=mt.dom;if(xn.nodeType!==$e)return!1;{const Nn=xn;if(Nn.matches!==void 0)return Nn.matches(Tt);if(Nn.msMatchesSelector!==void 0)return Nn.msMatchesSelector(Tt);if(Nn.webkitMatchesSelector!==void 0)return Nn.webkitMatchesSelector(Tt);if(Nn.mozMatchesSelector!==void 0)return Nn.mozMatchesSelector(Tt);throw new Error("Browser lacks native selectors")}},Me=mt=>mt.nodeType!==$e&&mt.nodeType!==Qe&&mt.nodeType!==Ve||mt.childElementCount===0,Fe=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?[]:q(xn.querySelectorAll(mt),Ye.fromDom)},je=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?x.none():x.from(xn.querySelector(mt)).map(Ye.fromDom)},tt=(mt,Tt)=>mt.dom===Tt.dom,ot=Je;typeof window<"u"||Function("return this;")();const Ge=mt=>mt.dom.nodeName.toLowerCase(),ht=mt=>mt.dom.nodeType,pt=mt=>Tt=>ht(Tt)===mt,St=mt=>ht(mt)===De||Ge(mt)==="#comment",Ft=pt($e),zt=pt(Oe),Yt=pt(Qe),ln=pt(Ve),tn=mt=>Tt=>Ft(Tt)&&Ge(Tt)===mt,Et=mt=>Ye.fromDom(mt.dom.ownerDocument),Ot=mt=>Yt(mt)?mt:Et(mt),cn=mt=>x.from(mt.dom.parentNode).map(Ye.fromDom),Cn=(mt,Tt)=>{const xn=w(Tt)?Tt:O;let Nn=mt.dom;const yr=[];for(;Nn.parentNode!==null&&Nn.parentNode!==void 0;){const so=Nn.parentNode,No=Ye.fromDom(so);if(yr.push(No),xn(No)===!0)break;Nn=so}return yr},Pn=mt=>x.from(mt.dom.previousSibling).map(Ye.fromDom),Sn=mt=>x.from(mt.dom.nextSibling).map(Ye.fromDom),vt=mt=>q(mt.dom.childNodes,Ye.fromDom),xt=(mt,Tt)=>{const xn=mt.dom.childNodes;return x.from(xn[Tt]).map(Ye.fromDom)},st=mt=>xt(mt,0),bt=mt=>ln(mt)&&S(mt.dom.host),Vt=mt=>Ye.fromDom(mt.dom.getRootNode()),Dt=mt=>{const Tt=Vt(mt);return bt(Tt)?x.some(Tt):x.none()},it=mt=>Ye.fromDom(mt.dom.host),at=mt=>{const Tt=zt(mt)?mt.dom.parentNode:mt.dom;if(Tt==null||Tt.ownerDocument===null)return!1;const xn=Tt.ownerDocument;return Dt(Ye.fromDom(Tt)).fold(()=>xn.body.contains(Tt),a(at,it))};var Bt=(mt,Tt,xn,Nn,yr)=>mt(xn,Nn)?x.some(xn):w(yr)&&yr(xn)?x.none():Tt(xn,Nn,yr);const _t=(mt,Tt,xn)=>{let Nn=mt.dom;const yr=w(xn)?xn:O;for(;Nn.parentNode;){Nn=Nn.parentNode;const so=Ye.fromDom(Nn);if(Tt(so))return x.some(so);if(yr(so))break}return x.none()},qt=(mt,Tt,xn)=>Bt((yr,so)=>so(yr),_t,mt,Tt,xn),en=(mt,Tt)=>{const xn=yr=>Tt(Ye.fromDom(yr));return de(mt.dom.childNodes,xn).map(Ye.fromDom)},Jt=(mt,Tt,xn)=>_t(mt,Nn=>Je(Nn,Tt),xn),Zt=(mt,Tt)=>en(mt,xn=>Je(xn,Tt)),Nt=(mt,Tt)=>je(Tt,mt),sn=(mt,Tt,xn)=>Bt((yr,so)=>Je(yr,so),Jt,mt,Tt,xn),rn=mt=>sn(mt,"[contenteditable]"),_n=(mt,Tt=!1)=>at(mt)?mt.dom.isContentEditable:rn(mt).fold(c(Tt),xn=>wn(xn)==="true"),wn=mt=>mt.dom.contentEditable,An=mt=>mt.nodeName.toLowerCase(),Kn=mt=>Ye.fromDom(mt.getBody()),fr=mt=>Tt=>tt(Tt,Kn(mt)),Un=mt=>mt?mt.replace(/px$/,""):"",Zn=mt=>/^\d+(\.\d+)?$/.test(mt)?mt+"px":mt,tr=mt=>Ye.fromDom(mt.selection.getStart()),Br=mt=>Ye.fromDom(mt.selection.getEnd()),$r=mt=>qt(mt,tn("table")).forall(_n),vr=(mt,Tt)=>pe(vt(mt),Tt),qn=(mt,Tt)=>{let xn=[];return Y(vt(mt),Nn=>{Tt(Nn)&&(xn=xn.concat([Nn])),xn=xn.concat(qn(Nn,Tt))}),xn},gr=(mt,Tt)=>vr(mt,xn=>Je(xn,Tt)),sr=(mt,Tt)=>Fe(Tt,mt),lr=(mt,Tt,xn)=>{if(s(xn)||u(xn)||y(xn))mt.setAttribute(Tt,xn+"");else throw console.error("Invalid call to Attribute.set. Key ",Tt,":: Value ",xn,":: Element ",mt),new Error("Attribute value was not simple")},zr=(mt,Tt,xn)=>{lr(mt.dom,Tt,xn)},Vr=(mt,Tt)=>{const xn=mt.dom;T(Tt,(Nn,yr)=>{lr(xn,yr,Nn)})},eo=(mt,Tt)=>{const xn=mt.dom.getAttribute(Tt);return xn===null?void 0:xn},Jr=(mt,Tt)=>x.from(eo(mt,Tt)),Yr=(mt,Tt)=>{mt.dom.removeAttribute(Tt)},to=mt=>ae(mt.dom.attributes,(Tt,xn)=>(Tt[xn.name]=xn.value,Tt),{}),co=(mt,Tt,xn=p)=>mt.exists(Nn=>xn(Nn,Tt)),Fo=mt=>{const Tt=[],xn=Nn=>{Tt.push(Nn)};for(let Nn=0;Nnmt.isSome()&&Tt.isSome()?x.some(xn(mt.getOrDie(),Tt.getOrDie())):x.none(),$o=mt=>mt.bind(h),Mo=(mt,Tt)=>mt?x.some(Tt):x.none(),pi=(mt,Tt)=>mt.substring(Tt),Hn=(mt,Tt,xn)=>Tt===""||mt.length>=Tt.length&&mt.substr(xn,xn+Tt.length)===Tt,ar=(mt,Tt)=>Dr(mt,Tt)?pi(mt,Tt.length):mt,Dr=(mt,Tt)=>Hn(mt,Tt,0),Zr=(mt=>Tt=>Tt.replace(mt,""))(/^\s+|\s+$/g),go=mt=>mt.length>0,oo=mt=>!go(mt),io=(mt,Tt=10)=>{const xn=parseInt(mt,Tt);return isNaN(xn)?x.none():x.some(xn)},Do=mt=>{const Tt=parseFloat(mt);return isNaN(Tt)?x.none():x.some(Tt)},jn=mt=>mt.style!==void 0&&w(mt.style.getPropertyValue),Rr=(mt,Tt,xn)=>{if(!s(xn))throw console.error("Invalid call to CSS.set. Property ",Tt,":: Value ",xn,":: Element ",mt),new Error("CSS value must be a string: "+xn);jn(mt)&&mt.style.setProperty(Tt,xn)},On=(mt,Tt)=>{jn(mt)&&mt.style.removeProperty(Tt)},Yn=(mt,Tt,xn)=>{const Nn=mt.dom;Rr(Nn,Tt,xn)},ir=(mt,Tt)=>{const xn=mt.dom,yr=window.getComputedStyle(xn).getPropertyValue(Tt);return yr===""&&!at(mt)?kr(xn,Tt):yr},kr=(mt,Tt)=>jn(mt)?mt.style.getPropertyValue(Tt):"",Er=(mt,Tt)=>{const xn=mt.dom,Nn=kr(xn,Tt);return x.from(Nn).filter(yr=>yr.length>0)},Gt=(mt,Tt)=>{const xn=mt.dom;On(xn,Tt),co(Jr(mt,"style").map(Zr),"")&&Yr(mt,"style")},on=(mt,Tt,xn=0)=>Jr(mt,Tt).map(Nn=>parseInt(Nn,10)).getOr(xn),an=(mt,Tt)=>Tn(mt,Tt,C),Tn=(mt,Tt,xn)=>ve(vt(mt),Nn=>Je(Nn,Tt)?xn(Nn)?[Nn]:[]:Tn(Nn,Tt,xn)),zn=["tfoot","thead","tbody","colgroup"],Gn=mt=>Z(zn,mt),Lr=(mt,Tt)=>({rows:mt,columns:Tt}),Ur=(mt,Tt,xn)=>({element:mt,rowspan:Tt,colspan:xn}),qr=(mt,Tt,xn,Nn,yr,so)=>({element:mt,rowspan:Tt,colspan:xn,row:Nn,column:yr,isLocked:so}),Cr=(mt,Tt,xn)=>({element:mt,cells:Tt,section:xn}),wo=(mt,Tt,xn,Nn)=>({startRow:mt,startCol:Tt,finishRow:xn,finishCol:Nn}),Nr=(mt,Tt,xn)=>({element:mt,colspan:Tt,column:xn}),Eo=(mt,Tt)=>({element:mt,columns:Tt}),zo=(mt,Tt,xn=O)=>{if(xn(Tt))return x.none();if(Z(mt,Ge(Tt)))return x.some(Tt);const Nn=yr=>Je(yr,"table")||xn(yr);return Jt(Tt,mt.join(","),Nn)},Qt=(mt,Tt)=>zo(["td","th"],mt,Tt),Mn=mt=>an(mt,"th,td"),Fn=mt=>Je(mt,"colgroup")?gr(mt,"col"):ve(Oo(mt),Tt=>gr(Tt,"col")),dr=(mt,Tt)=>sn(mt,"table",Tt),xr=mt=>an(mt,"tr"),Oo=mt=>dr(mt).fold(c([]),Tt=>gr(Tt,"colgroup")),mi=(mt,Tt)=>q(mt,xn=>{if(Ge(xn)==="colgroup"){const Nn=q(Fn(xn),yr=>{const so=on(yr,"span",1);return Ur(yr,1,so)});return Cr(xn,Nn,"colgroup")}else{const Nn=q(Mn(xn),yr=>{const so=on(yr,"rowspan",1),No=on(yr,"colspan",1);return Ur(yr,so,No)});return Cr(xn,Nn,Tt(xn))}}),Di=mt=>cn(mt).map(Tt=>{const xn=Ge(Tt);return Gn(xn)?xn:"tbody"}).getOr("tbody"),To=mt=>{const Tt=xr(mt),Nn=[...Oo(mt),...Tt];return mi(Nn,Di)},Ia="data-snooker-locked-cols",Ds=mt=>Jr(mt,Ia).bind(Tt=>x.from(Tt.match(/\d+/g))).map(Tt=>we(Tt,C)),fs=(mt,Tt)=>mt+","+Tt,zi=(mt,Tt,xn)=>x.from(mt.access[fs(Tt,xn)]),yl=(mt,Tt,xn)=>{const Nn=Bs(mt,yr=>xn(Tt,yr.element));return Nn.length>0?x.some(Nn[0]):x.none()},Bs=(mt,Tt)=>{const xn=ve(mt.all,Nn=>Nn.cells);return pe(xn,Tt)},yf=mt=>{const Tt={};let xn=0;return Y(mt.cells,Nn=>{const yr=Nn.colspan;re(yr,so=>{const No=xn+so;Tt[No]=Nr(Nn.element,yr,No)}),xn+=yr}),Tt},il=mt=>{const Tt={},xn=[],yr=Pe(mt).map(Jc=>Jc.element).bind(dr).bind(Ds).getOr({});let so=0,No=0,ui=0;const{pass:ga,fail:Sa}=me(mt,Jc=>Jc.section==="colgroup");Y(Sa,Jc=>{const Is=[];Y(Jc.cells,Hc=>{let Nl=0;for(;Tt[fs(ui,Nl)]!==void 0;)Nl++;const lh=Q(yr,Nl.toString()),r0=qr(Hc.element,Hc.rowspan,Hc.colspan,ui,Nl,lh);for(let ch=0;ch{const Is=yf(Jc);return{colgroups:[Eo(Jc.element,k(Is))],columns:Is}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Lr(so,No),access:Tt,all:xn,columns:ua,colgroups:Cs}},Bl={fromTable:mt=>{const Tt=To(mt);return il(Tt)},generate:il,getAt:zi,findItem:yl,filterItems:Bs,justCells:mt=>ve(mt.all,Tt=>Tt.cells),justColumns:mt=>k(mt.columns),hasColumns:mt=>R(mt.columns).length>0,getColumnAt:(mt,Tt)=>x.from(mt.columns[Tt])};var Tc=tinymce.util.Tools.resolve("tinymce.util.Tools");const iu=(mt,Tt,xn)=>{const Nn=mt.select("td,th",Tt);let yr;for(let so=0;so{Tc.each("left center right".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("align"+Nn,{},Tt)}),xn&&mt.formatter.apply("align"+xn,{},Tt)},zf=(mt,Tt,xn)=>{Tc.each("top middle bottom".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("valign"+Nn,{},Tt)}),xn&&mt.formatter.apply("valign"+xn,{},Tt)},_s=(mt,Tt,xn)=>{mt.dispatch("TableModified",{...xn,table:Tt})},ma=(mt,Tt)=>Do(mt).getOr(Tt),mu=(mt,Tt,xn)=>ma(ir(mt,Tt),xn),Uc=(mt,Tt,xn,Nn)=>{const yr=mu(mt,`padding-${xn}`,0),so=mu(mt,`padding-${Nn}`,0),No=mu(mt,`border-${xn}-width`,0),ui=mu(mt,`border-${Nn}-width`,0);return Tt-yr-so-No-ui},Kf=(mt,Tt)=>{const xn=mt.dom,Nn=xn.getBoundingClientRect().width||xn.offsetWidth;return Tt==="border-box"?Nn:Uc(mt,Nn,"left","right")},Wl=mt=>Kf(mt,"content-box");var Ml=tinymce.util.Tools.resolve("tinymce.Env");const Jf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",Nf=re(5,mt=>{const Tt=`${mt+1}px`;return{title:Tt,value:Tt}}),Jl=q(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],mt=>({title:mt,value:mt.toLowerCase()})),Gh="100%",ll=mt=>{var Tt;const xn=mt.dom,Nn=(Tt=xn.getParent(mt.selection.getStart(),xn.isBlock))!==null&&Tt!==void 0?Tt:mt.getBody();return Wl(Ye.fromDom(Nn))+"px"},Tu=(mt,Tt)=>oh(mt)||!bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},gu=(mt,Tt)=>oh(mt)||bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},ec=mt=>Tt=>Tt.options.get(mt),Dc=mt=>{const Tt=mt.options.register;Tt("table_border_widths",{processor:"object[]",default:Nf}),Tt("table_border_styles",{processor:"object[]",default:Jl}),Tt("table_cell_advtab",{processor:"boolean",default:!0}),Tt("table_row_advtab",{processor:"boolean",default:!0}),Tt("table_advtab",{processor:"boolean",default:!0}),Tt("table_appearance_options",{processor:"boolean",default:!0}),Tt("table_grid",{processor:"boolean",default:!Ml.deviceType.isTouch()}),Tt("table_cell_class_list",{processor:"object[]",default:[]}),Tt("table_row_class_list",{processor:"object[]",default:[]}),Tt("table_class_list",{processor:"object[]",default:[]}),Tt("table_toolbar",{processor:"string",default:Jf}),Tt("table_background_color_map",{processor:"object[]",default:[]}),Tt("table_border_color_map",{processor:"object[]",default:[]})},tc=ec("table_sizing_mode"),Lp=ec("table_border_widths"),rh=ec("table_border_styles"),rf=ec("table_cell_advtab"),of=ec("table_row_advtab"),bf=ec("table_advtab"),vu=ec("table_appearance_options"),$d=ec("table_grid"),bl=ec("table_style_by_css"),Zu=ec("table_cell_class_list"),Kh=ec("table_row_class_list"),Cu=ec("table_class_list"),ed=ec("table_toolbar"),Bu=ec("table_background_color_map"),vd=ec("table_border_color_map"),cs=mt=>tc(mt)==="fixed",oh=mt=>tc(mt)==="responsive",Jh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_styles");return Tt.isSet("table_default_styles")?xn:Tu(mt,xn)},xh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_attributes");return Tt.isSet("table_default_attributes")?xn:gu(mt,xn)},xf=(mt,Tt)=>Tt.column>=mt.startCol&&Tt.column+Tt.colspan-1<=mt.finishCol&&Tt.row>=mt.startRow&&Tt.row+Tt.rowspan-1<=mt.finishRow,ep=(mt,Tt)=>{let xn=!0;const Nn=v(xf,Tt);for(let yr=Tt.startRow;yr<=Tt.finishRow;yr++)for(let so=Tt.startCol;so<=Tt.finishCol;so++)xn=xn&&Bl.getAt(mt,yr,so).exists(Nn);return xn?x.some(Tt):x.none()},_r=(mt,Tt)=>wo(Math.min(mt.row,Tt.row),Math.min(mt.column,Tt.column),Math.max(mt.row+mt.rowspan-1,Tt.row+Tt.rowspan-1),Math.max(mt.column+mt.colspan-1,Tt.column+Tt.colspan-1)),Ff=(mt,Tt,xn)=>{const Nn=Bl.findItem(mt,Tt,tt),yr=Bl.findItem(mt,xn,tt);return Nn.bind(so=>yr.map(No=>_r(so,No)))},yd=(mt,Tt,xn)=>Ff(mt,Tt,xn).bind(Nn=>ep(mt,Nn)),bd=(mt,Tt,xn)=>{const Nn=_h(mt);return yd(Nn,Tt,xn)},_h=Bl.fromTable,zu=(mt,Tt)=>{cn(mt).each(Nn=>{Nn.dom.insertBefore(Tt.dom,mt.dom)})},va=(mt,Tt)=>{Sn(mt).fold(()=>{cn(mt).each(yr=>{_f(yr,Tt)})},Nn=>{zu(Nn,Tt)})},El=(mt,Tt)=>{st(mt).fold(()=>{_f(mt,Tt)},Nn=>{mt.dom.insertBefore(Tt.dom,Nn.dom)})},_f=(mt,Tt)=>{mt.dom.appendChild(Tt.dom)},$f=(mt,Tt)=>{zu(mt,Tt),_f(Tt,mt)},ih=(mt,Tt)=>{Y(Tt,(xn,Nn)=>{const yr=Nn===0?mt:Tt[Nn-1];va(yr,xn)})},yu=(mt,Tt)=>{Y(Tt,xn=>{_f(mt,xn)})},jc=mt=>{const Tt=mt.dom;Tt.parentNode!==null&&Tt.parentNode.removeChild(Tt)},Nh=mt=>{const Tt=vt(mt);Tt.length>0&&ih(mt,Tt),jc(mt)},td=((mt,Tt)=>{const xn=so=>{if(!mt(so))throw new Error("Can only get "+Tt+" value of a "+Tt+" node");return Nn(so).getOr("")},Nn=so=>mt(so)?x.from(so.dom.nodeValue):x.none();return{get:xn,getOption:Nn,set:(so,No)=>{if(!mt(so))throw new Error("Can only set raw "+Tt+" value of a "+Tt+" node");so.dom.nodeValue=No}}})(zt,"text"),sf=mt=>td.get(mt),Bc=(mt,Tt)=>td.set(mt,Tt);var Vd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],xd=()=>{const mt=Sa=>Ye.fromDom(Sa.dom.cloneNode(!1)),Tt=Sa=>Ot(Sa).dom,xn=Sa=>Ft(Sa)?Ge(Sa)==="body"?!0:Z(Vd,Ge(Sa)):!1,Nn=Sa=>Ft(Sa)?Z(["br","img","hr","input"],Ge(Sa)):!1,yr=Sa=>Ft(Sa)&&eo(Sa,"contenteditable")==="false",so=(Sa,ua)=>Sa.dom.compareDocumentPosition(ua.dom),No=(Sa,ua)=>{const Cs=to(Sa);Vr(ua,Cs)},ui=Sa=>{const ua=Ge(Sa);return Z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],ua)},ga=Sa=>Ft(Sa)?Jr(Sa,"lang"):x.none();return{up:c({selector:Jt,closest:sn,predicate:_t,all:Cn}),down:c({selector:sr,predicate:qn}),styles:c({get:ir,getRaw:Er,set:Yn,remove:Gt}),attrs:c({get:eo,set:zr,remove:Yr,copyTo:No}),insert:c({before:zu,after:va,afterAll:ih,append:_f,appendAll:yu,prepend:El,wrap:$f}),remove:c({unwrap:Nh,remove:jc}),create:c({nu:Ye.fromTag,clone:mt,text:Ye.fromText}),query:c({comparePosition:so,prevSibling:Pn,nextSibling:Sn}),property:c({children:vt,name:Ge,parent:cn,document:Tt,isText:zt,isComment:St,isElement:Ft,isSpecial:ui,getLanguage:ga,getText:sf,setText:Bc,isBoundary:xn,isEmptyTag:Nn,isNonEditable:yr}),eq:tt,is:ot}};const vc=(mt,Tt,xn,Nn)=>{const yr=xn[0],so=xn.slice(1);return Nn(mt,Tt,yr,so)},gs=(mt,Tt,xn)=>xn.length>0?vc(mt,Tt,xn,yc):x.none(),yc=(mt,Tt,xn,Nn)=>{const yr=Tt(mt,xn);return se(Nn,(so,No)=>{const ui=Tt(mt,No);return Cc(mt,so,ui)},yr)},Cc=(mt,Tt,xn)=>Tt.bind(Nn=>xn.filter(v(mt.eq,Nn))),Nu=gs,Gs=xd(),Ks=(mt,Tt)=>Nu(Gs,(xn,Nn)=>mt(Nn),Tt),Ac=mt=>Jt(mt,"table"),_d=(mt,Tt)=>{const xn=sr(mt,Tt);return xn.length>0?x.some(xn):x.none()},Fh=(mt,Tt,xn)=>Nt(mt,Tt).bind(Nn=>Nt(mt,xn).bind(yr=>Ks(Ac,[Nn,yr]).map(so=>({first:Nn,last:yr,table:so})))),$h=(mt,Tt)=>_d(mt,Tt),vp=(mt,Tt,xn)=>Fh(mt,Tt,xn).bind(Nn=>{const yr=ga=>tt(mt,ga),so="thead,tfoot,tbody,table",No=Jt(Nn.first,so,yr),ui=Jt(Nn.last,so,yr);return No.bind(ga=>ui.bind(Sa=>tt(ga,Sa)?bd(Nn.table,Nn.first,Nn.last):x.none()))}),ah=mt=>q(mt,Ye.fromDom),Au="data-mce-selected",lf="td["+Au+"],th["+Au+"]",wf="data-mce-first-selected",vs="td["+wf+"],th["+wf+"]",cl="data-mce-last-selected",bc="td["+cl+"],th["+cl+"]",nc={selected:Au,selectedSelector:lf,firstSelected:wf,firstSelectedSelector:vs,lastSelected:cl,lastSelectedSelector:bc},Qc=mt=>dr(mt).bind(Tt=>$h(Tt,nc.firstSelectedSelector)).fold(c(mt),Tt=>Tt[0]),ts=mt=>(Tt,xn)=>{const Nn=Ge(Tt),yr=Nn==="col"||Nn==="colgroup"?Qc(Tt):Tt;return sn(yr,mt,xn)},wi=ts("th,td,caption"),bu=ts("th,td"),wd=mt=>ah(mt.model.table.getSelectedCells()),Ol=(mt,Tt)=>{const xn=bu(mt),Nn=xn.bind(yr=>dr(yr)).map(yr=>xr(yr));return _o(xn,Nn,(yr,so)=>pe(so,No=>K(ah(No.dom.cells),ui=>eo(ui,Tt)==="1"||tt(ui,yr)))).getOr([])},ds=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],zc=mt=>({value:aa(mt)}),Ud=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,cf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Of=mt=>Ud.test(mt)||cf.test(mt),aa=mt=>ar(mt,"#").toUpperCase(),rs=mt=>Of(mt)?x.some({value:aa(mt)}):x.none(),Mu=mt=>{const Tt=mt.toString(16);return(Tt.length===1?"0"+Tt:Tt).toUpperCase()},Ri=mt=>{const Tt=Mu(mt.red)+Mu(mt.green)+Mu(mt.blue);return zc(Tt)},Gc=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,qu=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,zl=(mt,Tt,xn,Nn)=>({red:mt,green:Tt,blue:xn,alpha:Nn}),xc=(mt,Tt,xn,Nn)=>{const yr=parseInt(mt,10),so=parseInt(Tt,10),No=parseInt(xn,10),ui=parseFloat(Nn);return zl(yr,so,No,ui)},Kc=mt=>{const Tt=Gc.exec(mt);if(Tt!==null)return x.some(xc(Tt[1],Tt[2],Tt[3],"1"));const xn=qu.exec(mt);return xn!==null?x.some(xc(xn[1],xn[2],xn[3],xn[4])):x.none()},jd=mt=>rs(mt).orThunk(()=>Kc(mt).map(Ri)).getOrThunk(()=>{const Tt=document.createElement("canvas");Tt.height=1,Tt.width=1;const xn=Tt.getContext("2d");xn.clearRect(0,0,Tt.width,Tt.height),xn.fillStyle="#FFFFFF",xn.fillStyle=mt,xn.fillRect(0,0,1,1);const Nn=xn.getImageData(0,0,1,1).data,yr=Nn[0],so=Nn[1],No=Nn[2],ui=Nn[3];return Ri(zl(yr,so,No,ui))}),ii=mt=>Kc(mt).map(Ri).map(Tt=>"#"+Tt.value).getOr(mt),nd=mt=>{let Tt=mt;return{get:()=>Tt,set:yr=>{Tt=yr}}},al=mt=>{const Tt=nd(x.none()),xn=()=>Tt.get().each(mt);return{clear:()=>{xn(),Tt.set(x.none())},isSet:()=>Tt.get().isSome(),get:()=>Tt.get(),set:ui=>{xn(),Tt.set(x.some(ui))}}},Yl=()=>al(mt=>mt.unbind()),uf=(mt,Tt,xn)=>Nn=>{const yr=Yl(),so=oo(xn),No=()=>{const ui=wd(mt),ga=Sa=>mt.formatter.match(Tt,{value:xn},Sa.dom,so);so?(Nn.setActive(!K(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Sa=>Nn.setActive(!Sa),!0))):(Nn.setActive(_e(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Nn.setActive,!1,{value:xn})))};return mt.initialized?No():mt.on("init",No),yr.clear},hs=mt=>Q(mt,"menu"),Mc=mt=>q(mt,Tt=>{const xn=Tt.text||Tt.title||"";return hs(Tt)?{text:xn,items:Mc(Tt.menu)}:{text:xn,value:Tt.value}}),Eu=mt=>mt.length?x.some(Mc([{text:"Select...",value:"mce-no-match"},...mt])):x.none(),xu=(mt,Tt,xn,Nn)=>q(Tt,yr=>{const so=yr.text||yr.title;return hs(yr)?{type:"nestedmenuitem",text:so,getSubmenuItems:()=>xu(mt,yr.menu,xn,Nn)}:{text:so,type:"togglemenuitem",onAction:()=>Nn(yr.value),onSetup:uf(mt,xn,yr.value)}}),ws=(mt,Tt)=>xn=>{mt.execCommand("mceTableApplyCellStyle",!1,{[Tt]:xn})},Fu=mt=>ve(mt,Tt=>hs(Tt)?[{...Tt,menu:Fu(Tt.menu)}]:go(Tt.value)?[Tt]:[]),su=(mt,Tt,xn,Nn)=>yr=>yr(xu(mt,Tt,xn,Nn)),Ca=(mt,Tt,xn)=>{const Nn=q(Tt,yr=>({text:yr.title,value:"#"+jd(yr.value).value,type:"choiceitem"}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:Nn.length>0?Nn:void 0,allowCustomColors:!1},onAction:yr=>{const so=yr.value==="remove"?"":yr.value;mt.execCommand("mceTableApplyCellStyle",!1,{[xn]:so})}}]},Ls=mt=>()=>{const xn=mt.queryCommandValue("mceTableRowType")==="header"?"body":"header";mt.execCommand("mceTableRowType",!1,{type:xn})},Ec=mt=>()=>{const xn=mt.queryCommandValue("mceTableColType")==="th"?"td":"th";mt.execCommand("mceTableColType",!1,{type:xn})},_u=mt=>Eu(Zu(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),wt=[{name:"width",type:"input",label:"Width"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ds}],Kt=mt=>wt.concat(_u(mt).toArray()),En=(mt,Tt)=>{const Nn=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Mc(rh(mt)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:Tt==="cell"?[{name:"borderwidth",type:"input",label:"Border width"}].concat(Nn):Nn}},wr={normal:(mt,Tt)=>{const xn=mt.dom;return{setAttrib:(No,ui)=>{xn.setAttrib(Tt,No,ui)},setStyle:(No,ui)=>{xn.setStyle(Tt,No,ui)},setFormat:(No,ui)=>{ui===""?mt.formatter.remove(No,{value:null},Tt,!0):mt.formatter.apply(No,{value:ui},Tt)}}}},uo=tn("th"),Bi=(mt,Tt)=>mt&&Tt?"sectionCells":mt?"section":"cells",ya=mt=>{const Tt=mt.section==="thead",xn=co(Ni(mt.cells),"th");return mt.section==="tfoot"?{type:"footer"}:Tt||xn?{type:"header",subType:Bi(Tt,xn)}:{type:"body"}},Ni=mt=>{const Tt=pe(mt,xn=>uo(xn.element));return Tt.length===0?x.some("td"):Tt.length===mt.length?x.some("th"):x.none()},Qi=mt=>{const Tt=q(mt,yr=>ya(yr).type),xn=Z(Tt,"header"),Nn=Z(Tt,"footer");if(!xn&&!Nn)return x.some("body");{const yr=Z(Tt,"body");return xn&&!yr&&!Nn?x.some("header"):!xn&&!yr&&Nn?x.some("footer"):x.none()}},Ws=mt=>{let Tt=!1,xn;return(...Nn)=>(Tt||(Tt=!0,xn=mt.apply(null,Nn)),xn)},nl=(mt,Tt)=>ze(mt.all,xn=>de(xn.cells,Nn=>tt(Tt,Nn.element))),Fs=(mt,Tt,xn)=>{const Nn=q(Tt.selection,so=>Qt(so).bind(No=>nl(mt,No)).filter(xn)),yr=Fo(Nn);return Mo(yr.length>0,yr)},Wu=(mt,Tt)=>Tt.mergable,Ki=(mt,Tt)=>Tt.unmergable,Aa=(mt,Tt)=>Fs(mt,Tt,C),Pl=(mt,Tt)=>nl(mt,Tt).exists(xn=>!xn.isLocked),Vf=(mt,Tt)=>_e(Tt,xn=>Pl(mt,xn)),sh=(mt,Tt)=>Wu(mt,Tt).filter(xn=>Vf(mt,xn.cells)),_c=(mt,Tt)=>Ki(mt,Tt).filter(xn=>Vf(mt,xn));({...{generate:mt=>{if(!n(mt))throw new Error("cases must be an array");if(mt.length===0)throw new Error("there must be at least one case");const Tt=[],xn={};return Y(mt,(Nn,yr)=>{const so=R(Nn);if(so.length!==1)throw new Error("one and only one name per case");const No=so[0],ui=Nn[No];if(xn[No]!==void 0)throw new Error("duplicate key detected:"+No);if(No==="cata")throw new Error("cannot have a case named cata (sorry)");if(!n(ui))throw new Error("case arguments must be an array");Tt.push(No),xn[No]=(...ga)=>{const Sa=ga.length;if(Sa!==ui.length)throw new Error("Wrong number of arguments to case "+No+". Expected "+ui.length+" ("+ui+"), got "+Sa);return{fold:(...Cs)=>{if(Cs.length!==mt.length)throw new Error("Wrong number of arguments to fold. Expected "+mt.length+", got "+Cs.length);return Cs[yr].apply(null,ga)},match:Cs=>{const ul=R(Cs);if(Tt.length!==ul.length)throw new Error("Wrong number of arguments to match. Expected: "+Tt.join(",")+` +The conflicting element is`+(Gn(fn.element)?" ":" not ")+"already in the DOM")},Se=Lt=>{const Ht=W(Lt);pt(N,Ht)&&fe(Lt,Ht);const fn=[Lt];l.registerId(fn,Ht,Lt.events),N[Ht]=Lt},Be=Lt=>{sm(Lt.element).each(Ht=>{delete N[Ht],l.unregisterId(Ht)})};return{find:(Lt,Ht,fn)=>l.find(Lt,Ht,fn),filter:Lt=>l.filterByType(Lt),register:Se,unregister:Be,getById:Lt=>Ge(N,Lt)}},Iv=Qp({name:"Container",factory:l=>{const{attributes:N,...W}=l.dom;return{uid:l.uid,dom:{tag:"div",attributes:{role:"presentation",...N},...W},components:l.components,behaviours:Aw(l.containerBehaviours),events:l.events,domModification:l.domModification,eventOrder:l.eventOrder}},configFields:[Ar("components",[]),Pd("containerBehaviours",[]),Ar("events",{}),Ar("domModification",{}),Ar("eventOrder",{})]}),m5=l=>{const N=br=>Dr(l.element).fold(k,Fr=>_o(br,Fr)),W=xG(),fe=(br,Fr)=>W.find(N,br,Fr),Se=mS(l.element,{triggerEvent:(br,Fr)=>am(br,Fr.target,jr=>gG(fe,br,Fr,jr))}),Be={debugInfo:x("real"),triggerEvent:(br,Fr,jr)=>{am(br,Fr,Ro=>uF(fe,br,jr,Fr,Ro))},triggerFocus:(br,Fr)=>{sm(br).fold(()=>{Md(br)},jr=>{am(Oh(),br,Ro=>(h5(fe,Oh(),{originator:Fr,kill:v,prevent:v,target:br},br,Ro),!1))})},triggerEscape:(br,Fr)=>{Be.triggerEvent("keydown",br.element,Fr.event)},getByUid:br=>cr(br),getByDom:br=>Xr(br),build:ka,buildOrPatch:ra,addToGui:br=>{yt(br)},removeFromGui:br=>{Lt(br)},addToWorld:br=>{qe(br)},removeFromWorld:br=>{ft(br)},broadcast:br=>{Rn(br)},broadcastOn:(br,Fr)=>{Bn(br,Fr)},broadcastEvent:(br,Fr)=>{er(br,Fr)},isConnected:k},qe=br=>{br.connect(Be),zr(br.element)||(W.register(br),q(br.components(),qe),Be.triggerEvent(K0(),br.element,{target:br.element}))},ft=br=>{zr(br.element)||(q(br.components(),ft),W.unregister(br)),br.disconnect()},yt=br=>{Eg(l,br)},Lt=br=>{kv(br)},Ht=()=>{Se.unbind(),gs(l.element)},fn=br=>{const Fr=W.filter(yp());q(Fr,jr=>{const Ro=jr.descHandler;pv(Ro)(br)})},Rn=br=>{fn({universal:!0,data:br})},Bn=(br,Fr)=>{fn({universal:!1,channels:br,data:Fr})},er=(br,Fr)=>{const jr=W.filter(br);return p5(jr,Fr)},cr=br=>W.getById(br).fold(()=>aa.error(new Error('Could not find component with uid: "'+br+'" in system.')),aa.value),Xr=br=>{const Fr=sm(br).getOr("not found");return cr(Fr)};return qe(l),{root:l,element:l.element,destroy:Ht,add:yt,remove:Lt,getByUid:cr,getByDom:Xr,addToWorld:qe,removeFromWorld:ft,broadcast:Rn,broadcastOn:Bn,broadcastEvent:er}},_G=(l,N)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:re(l.items,N.interpreter)}),wG=x([Ar("prefix","form-field"),Pd("fieldBehaviours",[Xs,Ei])]),OG=x([mm({schema:[pn("dom")],name:"label"}),mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),mh({factory:{sketch:l=>{const N=ga(l,["factory"]);return l.factory.sketch(N)}},schema:[pn("factory")],name:"field"})]),fF=(l,N,W,fe)=>{const Se=Rd(l.fieldBehaviours,[Xs.config({find:ft=>Jo(ft,l,"field")}),Ei.config({store:{mode:"manual",getValue:ft=>Xs.getCurrent(ft).bind(Ei.getValue),setValue:(ft,yt)=>{Xs.getCurrent(ft).each(Lt=>{Ei.setValue(Lt,yt)})}}})]),Be=Rl([wc((ft,yt)=>{const Lt=YC(ft,l,["label","field","aria-descriptor"]);Lt.field().each(Ht=>{const fn=Li(l.prefix);Lt.label().each(Rn=>{Cr(Rn.element,"for",fn),Cr(Ht.element,"id",fn)}),Lt["aria-descriptor"]().each(Rn=>{const Bn=Li(l.prefix);Cr(Rn.element,"id",Bn),Cr(Ht.element,"aria-describedby",Bn)})})})]),qe={getField:ft=>Jo(ft,l,"field"),getLabel:ft=>Jo(ft,l,"label")};return{uid:l.uid,dom:l.dom,components:N,behaviours:Se,events:Be,apis:qe}},Il=Zh({name:"FormField",configFields:wG(),partFields:OG(),factory:fF,apis:{getField:(l,N)=>l.getField(N),getLabel:(l,N)=>l.getLabel(N)}});var SG=tinymce.util.Tools.resolve("tinymce.html.Entities");const g5=(l,N,W,fe)=>{const Se=kG(l,N,W,fe);return Il.sketch(Se)},dF=(l,N)=>g5(l,N,[],[]),kG=(l,N,W,fe)=>({dom:hF(W),components:l.toArray().concat([N]),fieldBehaviours:ei(fe)}),TG=()=>hF([]),hF=l=>({tag:"div",classes:["tox-form__group"].concat(l)}),H2=(l,N)=>Il.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l))]}),xm=Li("form-component-change"),vS=Li("form-close"),cx=Li("form-cancel"),Ny=Li("form-action"),v5=Li("form-submit"),T7=Li("form-block"),C7=Li("form-unblock"),pF=Li("form-tabchange"),A7=Li("form-resize"),yS=(l,N,W)=>{const fe=l.label.map(Bn=>H2(Bn,N)),Se=N.icons(),Be=Bn=>{var er;return(er=Se[Bn])!==null&&er!==void 0?er:Bn},qe=Bn=>(er,cr)=>{Sc(cr.event.target,"[data-collection-item-value]").each(Xr=>{Bn(er,cr,Xr,Nr(Xr,"data-collection-item-value"))})},ft=(Bn,er)=>{const cr=re(er,Fr=>{const jr=Dg.translate(Fr.text),Ro=l.columns===1?`
    ${jr}
    `:"",ko=`
    ${Be(Fr.icon)}
    `,_i={_:" "," - ":" ","-":" "},Pi=jr.replace(/\_| \- |\-/g,$i=>_i[$i]),Ao=N.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${ko}${Ro}
    `}),Xr=l.columns!=="auto"&&l.columns>1?K(cr,l.columns):[cr],br=re(Xr,Fr=>`
    ${Fr.join("")}
    `);d0(Bn.element,br.join(""))},yt=qe((Bn,er,cr,Xr)=>{er.stop(),N.isDisabled()||sa(Bn,Ny,{name:l.name,value:Xr})}),Lt=[Lo(wu(),qe((Bn,er,cr)=>{Md(cr)})),Lo(H1(),yt),Lo(Lm(),yt),Lo(Dp(),qe((Bn,er,cr)=>{qa(Bn.element,"."+$2).each(Xr=>{Zc(Xr,$2)}),uc(cr,$2)})),Lo(Rm(),qe(Bn=>{qa(Bn.element,"."+$2).each(er=>{Zc(er,$2),m1(er)})})),kh(qe((Bn,er,cr,Xr)=>{sa(Bn,Ny,{name:l.name,value:Xr})}))],Ht=(Bn,er)=>re(Yd(Bn.element,".tox-collection__item"),er),fn=Il.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(l.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:ei([he.config({disabled:N.isDisabled,onDisabled:Bn=>{Ht(Bn,er=>{uc(er,"tox-collection__item--state-disabled"),Cr(er,"aria-disabled",!0)})},onEnabled:Bn=>{Ht(Bn,er=>{Zc(er,"tox-collection__item--state-disabled"),Qt(er,"aria-disabled")})}}),Id(),Fa.config({}),Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Bn=>{qa(Bn.element,"."+$2+"[data-mce-tooltip]").each(er=>{Eo(er,"data-mce-tooltip").each(cr=>{Vu.setComponents(Bn,N.tooltips.getComponents({tooltipText:cr}))})})}}),mode:"children-keyboard-focus",anchor:Bn=>({type:"node",node:qa(Bn.element,"."+$2).orThunk(()=>Vs(".tox-collection__item")),root:Bn.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),Ei.config({store:{mode:"memory",initialValue:W.getOr([])},onSetValue:(Bn,er)=>{ft(Bn,er),l.columns==="auto"&&QP(Bn,5,"tox-collection__item").each(({numRows:cr,numColumns:Xr})=>{ha.setGridSize(Bn,cr,Xr)}),Za(Bn,A7)}}),Rc.config({}),ha.config(AX(l.columns,"normal")),Ka("collection-events",Lt)]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","collection-events"],[Dp()]:["collection-events","tooltipping"]}});return g5(fe,fn,["tox-form__group--collection"],[])},CG=["input","textarea"],mF=l=>{const N=vr(l);return X(CG,N)},gF=(l,N)=>{const W=N.getRoot(l).getOr(l.element);Zc(W,N.invalidClass),N.notify.each(fe=>{mF(l.element)&&Cr(l.element,"aria-invalid",!1),fe.getContainer(l).each(Se=>{d0(Se,fe.validHtml)}),fe.onValid(l)})},y5=(l,N,W,fe)=>{const Se=N.getRoot(l).getOr(l.element);uc(Se,N.invalidClass),N.notify.each(Be=>{mF(l.element)&&Cr(l.element,"aria-invalid",!0),Be.getContainer(l).each(qe=>{d0(qe,fe)}),Be.onInvalid(l,fe)})},zg=(l,N,W)=>N.validator.fold(()=>Ih.pure(aa.value(!0)),fe=>fe.validate(l)),b5=(l,N,W)=>(N.notify.each(fe=>{fe.onValidate(l)}),zg(l,N).map(fe=>l.getSystem().isConnected()?fe.fold(Se=>(y5(l,N,W,Se),aa.error(Se)),Se=>(gF(l,N),aa.value(Se))):aa.error("No longer in system")));var MG=Object.freeze({__proto__:null,markValid:gF,markInvalid:y5,query:zg,run:b5,isInvalid:(l,N)=>{const W=N.getRoot(l).getOr(l.element);return rp(W,N.invalidClass)}}),EG=Object.freeze({__proto__:null,events:(l,N)=>l.validator.map(W=>Rl([Lo(W.onEvent,fe=>{b5(fe,l,N).get(R)})].concat(W.validateOnLoad?[wc(fe=>{b5(fe,l,N).get(v)})]:[]))).getOr({})}),PG=[pn("invalidClass"),Ar("getRoot",I.none),Ai("notify",[Ar("aria","alert"),Ar("getContainer",I.none),Ar("validHtml",""),Ss("onValid"),Ss("onInvalid"),Ss("onValidate")]),Ai("validator",[pn("validate"),Ar("onEvent","input"),Ar("validateOnLoad",!0)])];const Dv=id({fields:PG,name:"invalidating",active:EG,apis:MG,extra:{validation:l=>N=>{const W=Ei.getValue(N);return Ih.pure(l(W))}}});var LG=Object.freeze({__proto__:null,events:()=>Rl([zx(db(),k)]),exhibit:()=>np({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const bS=id({fields:[],name:"unselecting",active:LG}),IG=(l,N)=>L0.sketch({dom:l.dom,components:l.components,toggleClass:"mce-active",dropdownBehaviours:ei([E1.button(N.providers.isDisabled),Id(),bS.config({}),Rc.config({})]),layouts:l.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:N.getSink,fetch:W=>Ih.nu(fe=>l.fetch(fe)).map(fe=>I.from(cA(ws(g7(Li("menu-value"),fe,Se=>{l.onItemAction(W,Se)},l.columns,l.presets,A1.CLOSE_ON_EXECUTE,D,N.providers),{movement:oA(l.columns,l.presets)})))),parts:{menu:Xk(!1,1,l.presets)}}),M7=Li("color-input-change"),E7=Li("color-swatch-change"),P7=Li("color-picker-cancel"),DG=(l,N,W,fe)=>{const Se=Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],data:fe,onSetValue:Lt=>Dv.run(Lt).get(v),inputBehaviours:ei([he.config({disabled:N.providers.isDisabled}),Id(),Rc.config({}),Dv.config({invalidClass:"tox-textbox-field-invalid",getRoot:Lt=>Zr(Lt.element),notify:{onValid:Lt=>{const Ht=Ei.getValue(Lt);sa(Lt,M7,{color:Ht})}},validator:{validateOnLoad:!1,validate:Lt=>{const Ht=Ei.getValue(Lt);if(Ht.length===0)return Ih.pure(aa.value(!0));{const fn=Nt.fromTag("span");xr(fn,"background-color",Ht);const Rn=Ia(fn,"background-color").fold(()=>aa.error("blah"),Bn=>aa.value(Ht));return Ih.pure(Rn)}}}})]),selectOnFocus:!1}),Be=l.label.map(Lt=>H2(Lt,N.providers)),qe=(Lt,Ht)=>{sa(Lt,E7,{value:Ht})},ft=(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{Ht==="custom"?W.colorPicker(Rn=>{Rn.fold(()=>Za(fn,P7),Bn=>{qe(fn,Bn),RN(l.storageKey,Bn)})},"#ffffff"):Ht==="remove"?qe(fn,""):qe(fn,Ht)})},yt=ml(IG({dom:{tag:"span",attributes:{"aria-label":N.providers.translate("Color swatch")}},layouts:{onRtl:()=>[$c,Lu,Iu],onLtr:()=>[Lu,$c,Iu]},components:[],fetch:$N(W.getColors(l.storageKey),l.storageKey,W.hasCustomColors()),columns:W.getColorCols(l.storageKey),presets:"color",onItemAction:ft},N));return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[Se,yt.asSpec()]}]),fieldBehaviours:ei([Ka("form-field-events",[Lo(M7,(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{xr(fn.element,"background-color",Ht.event.color)}),sa(Lt,xm,{name:l.name})}),Lo(E7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Ei.setValue(fn,Ht.event.value),Xs.getCurrent(Lt).each(Ra.focus)})}),Lo(P7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Xs.getCurrent(Lt).each(Ra.focus)})})])])})},BG=mm({schema:[pn("dom")],name:"label"}),Z2=l=>mm({name:""+l+"-edge",overrides:N=>N.model.manager.edgeActions[l].fold(()=>({}),fe=>({events:Rl([Nm(Uh(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(Nc(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(o0(),(Se,Be,qe)=>{qe.mouseIsDown.get()&&fe(Se,qe)},[N])])}))}),zG=Z2("top-left"),NG=Z2("top"),FG=Z2("top-right"),R7=Z2("right"),$G=Z2("bottom-right"),VG=Z2("bottom"),vF=Z2("bottom-left"),UG=Z2("left"),jG=mh({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:l=>({events:Rl([c0(Uh(),l,"spectrum"),c0(ss(),l,"spectrum"),c0(Gl(),l,"spectrum"),c0(Nc(),l,"spectrum"),c0(o0(),l,"spectrum"),c0(a0(),l,"spectrum")])})}),uA=l=>Lg(l.event),QG=mh({schema:[gn("mouseIsDown",()=>wi(!1))],name:"spectrum",overrides:l=>{const W=l.model.manager,fe=(Se,Be)=>W.getValueFromEvent(Be).map(qe=>W.setValueFrom(Se,l,qe));return{behaviours:ei([ha.config({mode:"special",onLeft:(Se,Be)=>W.onLeft(Se,l,uA(Be)),onRight:(Se,Be)=>W.onRight(Se,l,uA(Be)),onUp:(Se,Be)=>W.onUp(Se,l,uA(Be)),onDown:(Se,Be)=>W.onDown(Se,l,uA(Be))}),Rc.config({}),Ra.config({})]),events:Rl([Lo(Uh(),fe),Lo(ss(),fe),Lo(Nc(),fe),Lo(o0(),(Se,Be)=>{l.mouseIsDown.get()&&fe(Se,Be)})])}}});var HG=[BG,UG,R7,NG,VG,zG,FG,vF,$G,jG,QG];const x5=x("slider.change.value"),yF=l=>l.type.indexOf("touch")!==-1,fA=l=>{const N=l.event.raw;if(yF(N)){const W=N;return W.touches!==void 0&&W.touches.length===1?I.some(W.touches[0]).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}else{const W=N;return W.clientX!==void 0?I.some(W).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}},ZG="top",qG="right",WG="bottom",YG="left",rO=l=>l.model.minX,oO=l=>l.model.minY,_5=l=>l.model.minX-1,w5=l=>l.model.minY-1,q2=l=>l.model.maxX,ux=l=>l.model.maxY,dA=l=>l.model.maxX+1,O5=l=>l.model.maxY+1,bF=(l,N,W)=>N(l)-W(l),L7=l=>bF(l,q2,rO),I7=l=>bF(l,ux,oO),xF=l=>L7(l)/2,hA=l=>I7(l)/2,Ng=(l,N)=>N?l.stepSize*l.speedMultiplier:l.stepSize,_F=l=>l.snapToGrid,xS=l=>l.snapStart,wF=l=>l.rounded,_S=(l,N)=>l[N+"-edge"]!==void 0,OF=l=>_S(l,YG),SF=l=>_S(l,qG),kF=l=>_S(l,ZG),D7=l=>_S(l,WG),fx=l=>l.model.value.get(),Fy=(l,N)=>({x:l,y:N}),Fg=(l,N)=>{sa(l,x5(),{value:N})},B7=(l,N)=>{Fg(l,Fy(_5(N),w5(N)))},XG=(l,N)=>{Fg(l,w5(N))},$g=(l,N)=>{Fg(l,Fy(xF(N),w5(N)))},GG=(l,N)=>{Fg(l,Fy(dA(N),w5(N)))},KG=(l,N)=>{Fg(l,dA(N))},TF=(l,N)=>{Fg(l,Fy(dA(N),hA(N)))},CF=(l,N)=>{Fg(l,Fy(dA(N),O5(N)))},JG=(l,N)=>{Fg(l,O5(N))},eK=(l,N)=>{Fg(l,Fy(xF(N),O5(N)))},tK=(l,N)=>{Fg(l,Fy(_5(N),O5(N)))},nK=(l,N)=>{Fg(l,_5(N))},rK=(l,N)=>{Fg(l,Fy(_5(N),hA(N)))},z7=(l,N,W,fe)=>lW?W:l===N?N-1:Math.max(N,l-fe),N7=(l,N,W,fe)=>l>W?l:lMath.max(N,Math.min(W,l)),oK=(l,N,W,fe,Se)=>Se.fold(()=>{const Be=l-N,qe=Math.round(Be/fe)*fe;return F7(N+qe,N-1,W+1)},Be=>{const qe=(l-Be)%fe,ft=Math.round(qe/fe),yt=Math.floor((l-Be)/fe),Lt=Math.floor((W-Be)/fe),Ht=Math.min(Lt,yt+ft),fn=Be+Ht*fe;return Math.max(Be,fn)}),iK=(l,N,W)=>Math.min(W,Math.max(l,N))-N,AF=l=>{const{min:N,max:W,range:fe,value:Se,step:Be,snap:qe,snapStart:ft,rounded:yt,hasMinEdge:Lt,hasMaxEdge:Ht,minBound:fn,maxBound:Rn,screenRange:Bn}=l,er=Lt?N-1:N,cr=Ht?W+1:W;if(SeRn)return cr;{const Xr=iK(Se,fn,Rn),br=F7(Xr/Bn*fe+N,er,cr);return qe&&br>=N&&br<=W?oK(br,N,W,Be,ft):yt?Math.round(br):br}},$7=l=>{const{min:N,max:W,range:fe,value:Se,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:yt,centerMinEdge:Lt,centerMaxEdge:Ht}=l;return SeW?qe?ft:Ht:(Se-N)/fe*yt},S5="top",V7="right",U7="bottom",pA="left",MF="width",j7="height",$y=l=>l.element.dom.getBoundingClientRect(),Vg=(l,N)=>l[N],dx=l=>{const N=$y(l);return Vg(N,pA)},Q7=l=>{const N=$y(l);return Vg(N,V7)},k5=l=>{const N=$y(l);return Vg(N,S5)},H7=l=>{const N=$y(l);return Vg(N,U7)},EF=l=>{const N=$y(l);return Vg(N,MF)},PF=l=>{const N=$y(l);return Vg(N,j7)},T5=(l,N,W)=>(l+N)/2-W,RF=(l,N)=>{const W=$y(l),fe=$y(N),Se=Vg(W,pA),Be=Vg(W,V7),qe=Vg(fe,pA);return T5(Se,Be,qe)},LF=(l,N)=>{const W=$y(l),fe=$y(N),Se=Vg(W,S5),Be=Vg(W,U7),qe=Vg(fe,S5);return T5(Se,Be,qe)},C5=(l,N)=>{sa(l,x5(),{value:N})},mA=(l,N,W)=>{const fe={min:rO(N),max:q2(N),range:L7(N),value:W,step:Ng(N),snap:_F(N),snapStart:xS(N),rounded:wF(N),hasMinEdge:OF(N),hasMaxEdge:SF(N),minBound:dx(l),maxBound:Q7(l),screenRange:EF(l)};return AF(fe)},Z7=(l,N,W)=>{const fe=mA(l,N,W);return C5(l,fe),fe},IF=(l,N)=>{const W=rO(N);C5(l,W)},Zp=(l,N)=>{const W=q2(N);C5(l,W)},DF=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),rO(W),q2(W),Ng(W,fe));return C5(N,Be),I.some(Be)},BF=l=>(N,W,fe)=>DF(l,N,W,fe).map(k),aK=l=>fA(l).map(W=>W.left),zF=(l,N,W,fe,Se)=>{const qe=EF(l),ft=fe.bind(Ht=>I.some(RF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(RF(Ht,l))).getOr(qe),Lt={min:rO(N),max:q2(N),range:L7(N),value:W,hasMinEdge:OF(N),hasMaxEdge:SF(N),minBound:dx(l),minOffset:0,maxBound:Q7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},q7=(l,N,W,fe,Se,Be)=>{const qe=zF(N,Be,W,fe,Se);return dx(N)-dx(l)+qe},sK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=_s(N.element)/2;xr(N.element,"left",Be-qe+"px")},lK=BF(-1),NF=BF(1),Vy=I.none,W7=I.none,FF={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some(KG),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(nK)};var gA=Object.freeze({__proto__:null,setValueFrom:Z7,setToMin:IF,setToMax:Zp,findValueOfOffset:mA,getValueFromEvent:aK,findPositionOfValue:q7,setPositionFromValue:sK,onLeft:lK,onRight:NF,onUp:Vy,onDown:W7,edgeActions:FF});const wS=(l,N)=>{sa(l,x5(),{value:N})},Y7=(l,N,W)=>{const fe={min:oO(N),max:ux(N),range:I7(N),value:W,step:Ng(N),snap:_F(N),snapStart:xS(N),rounded:wF(N),hasMinEdge:kF(N),hasMaxEdge:D7(N),minBound:k5(l),maxBound:H7(l),screenRange:PF(l)};return AF(fe)},cK=(l,N,W)=>{const fe=Y7(l,N,W);return wS(l,fe),fe},uK=(l,N)=>{const W=oO(N);wS(l,W)},fK=(l,N)=>{const W=ux(N);wS(l,W)},dK=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),oO(W),ux(W),Ng(W,fe));return wS(N,Be),I.some(Be)},$F=l=>(N,W,fe)=>dK(l,N,W,fe).map(k),hK=l=>fA(l).map(W=>W.top),VF=(l,N,W,fe,Se)=>{const qe=PF(l),ft=fe.bind(Ht=>I.some(LF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(LF(Ht,l))).getOr(qe),Lt={min:oO(N),max:ux(N),range:I7(N),value:W,hasMinEdge:kF(N),hasMaxEdge:D7(N),minBound:k5(l),minOffset:0,maxBound:H7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},X7=(l,N,W,fe,Se,Be)=>{const qe=VF(N,Be,W,fe,Se);return k5(N)-k5(l)+qe},Uy=(l,N,W,fe)=>{const Se=fx(W),Be=X7(l,fe.getSpectrum(l),Se,fe.getTopEdge(l),fe.getBottomEdge(l),W),qe=il(N.element)/2;xr(N.element,"top",Be-qe+"px")},vA=I.none,pK=I.none,mK=$F(-1),UF=$F(1),jF={"top-left":I.none(),top:I.some(XG),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(JG),"bottom-left":I.none(),left:I.none()};var G7=Object.freeze({__proto__:null,setValueFrom:cK,setToMin:uK,setToMax:fK,findValueOfOffset:Y7,getValueFromEvent:hK,findPositionOfValue:X7,setPositionFromValue:Uy,onLeft:vA,onRight:pK,onUp:mK,onDown:UF,edgeActions:jF});const iO=(l,N)=>{sa(l,x5(),{value:N})},W2=(l,N)=>({x:l,y:N}),A5=(l,N,W)=>{const fe=mA(l,N,W.left),Se=Y7(l,N,W.top),Be=W2(fe,Se);return iO(l,Be),Be},QF=(l,N,W,fe,Se)=>{const Be=l>0?N7:z7,qe=N?fx(fe).x:Be(fx(fe).x,rO(fe),q2(fe),Ng(fe,Se)),ft=N?Be(fx(fe).y,oO(fe),ux(fe),Ng(fe,Se)):fx(fe).y;return iO(W,W2(qe,ft)),I.some(qe)},M5=(l,N)=>(W,fe,Se)=>QF(l,N,W,fe,Se).map(k),HF=(l,N)=>{const W=rO(N),fe=oO(N);iO(l,W2(W,fe))},ZF=(l,N)=>{const W=q2(N),fe=ux(N);iO(l,W2(W,fe))},gK=l=>fA(l),vK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se.x,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=X7(l,fe.getSpectrum(l),Se.y,fe.getTopEdge(l),fe.getBottomEdge(l),W),ft=_s(N.element)/2,yt=il(N.element)/2;xr(N.element,"left",Be-ft+"px"),xr(N.element,"top",qe-yt+"px")},yK=M5(-1,!1),bK=M5(1,!1),xK=M5(-1,!0),qF=M5(1,!0),WF={"top-left":I.some(B7),top:I.some($g),"top-right":I.some(GG),right:I.some(TF),"bottom-right":I.some(CF),bottom:I.some(eK),"bottom-left":I.some(tK),left:I.some(rK)};var _K=Object.freeze({__proto__:null,setValueFrom:A5,setToMin:HF,setToMax:ZF,getValueFromEvent:gK,setPositionFromValue:vK,onLeft:yK,onRight:bK,onUp:xK,onDown:qF,edgeActions:WF});const YF=[Ar("stepSize",1),Ar("speedMultiplier",10),Ar("onChange",v),Ar("onChoose",v),Ar("onInit",v),Ar("onDragStart",v),Ar("onDragEnd",v),Ar("snapToGrid",!1),Ar("rounded",!0),Yo("snapStart"),In("model",bn("mode",{x:[Ar("minX",0),Ar("maxX",100),gn("value",l=>wi(l.mode.minX)),pn("getInitialValue"),Sl("manager",gA)],y:[Ar("minY",0),Ar("maxY",100),gn("value",l=>wi(l.mode.minY)),pn("getInitialValue"),Sl("manager",G7)],xy:[Ar("minX",0),Ar("maxX",100),Ar("minY",0),Ar("maxY",100),gn("value",l=>wi({x:l.mode.minX,y:l.mode.minY})),pn("getInitialValue"),Sl("manager",_K)]})),Pd("sliderBehaviours",[ha,Ei]),gn("mouseIsDown",()=>wi(!1))],I0=Zh({name:"Slider",configFields:YF,partFields:HG,factory:(l,N,W,fe)=>{const Se=ko=>gm(ko,l,"thumb"),Be=ko=>gm(ko,l,"spectrum"),qe=ko=>Jo(ko,l,"left-edge"),ft=ko=>Jo(ko,l,"right-edge"),yt=ko=>Jo(ko,l,"top-edge"),Lt=ko=>Jo(ko,l,"bottom-edge"),Ht=l.model,fn=Ht.manager,Rn=(ko,_i)=>{fn.setPositionFromValue(ko,_i,l,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:yt,getBottomEdge:Lt,getSpectrum:Be})},Bn=(ko,_i)=>{Ht.value.set(_i);const Pi=Se(ko);Rn(ko,Pi)},er=(ko,_i)=>{Bn(ko,_i);const Pi=Se(ko);return l.onChange(ko,Pi,_i),I.some(!0)},cr=ko=>{fn.setToMin(ko,l)},Xr=ko=>{fn.setToMax(ko,l)},br=ko=>{const _i=()=>{Jo(ko,l,"thumb").each(Ao=>{const $i=Ht.value.get();l.onChoose(ko,Ao,$i)})},Pi=l.mouseIsDown.get();l.mouseIsDown.set(!1),Pi&&_i()},Fr=(ko,_i)=>{_i.stop(),l.mouseIsDown.set(!0),l.onDragStart(ko,Se(ko))},jr=(ko,_i)=>{_i.stop(),l.onDragEnd(ko,Se(ko)),br(ko)},Ro=ko=>{Jo(ko,l,"spectrum").map(ha.focusIn)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.sliderBehaviours,[ha.config({mode:"special",focusIn:Ro}),Ei.config({store:{mode:"manual",getValue:ko=>Ht.value.get(),setValue:Bn}}),Ad.config({channels:{[M3()]:{onReceive:br}}})]),events:Rl([Lo(x5(),(ko,_i)=>{er(ko,_i.event.value)}),wc((ko,_i)=>{const Pi=Ht.getInitialValue();Ht.value.set(Pi);const Ao=Se(ko);Rn(ko,Ao);const $i=Be(ko);l.onInit(ko,Ao,$i,Ht.value.get())}),Lo(Uh(),Fr),Lo(Gl(),jr),Lo(Nc(),(ko,_i)=>{Ro(ko),Fr(ko,_i)}),Lo(a0(),jr)]),apis:{resetToMin:cr,resetToMax:Xr,setValue:Bn,refresh:Rn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(l,N,W)=>{l.setValue(N,W)},resetToMin:(l,N)=>{l.resetToMin(N)},resetToMax:(l,N)=>{l.resetToMax(N)},refresh:(l,N)=>{l.refresh(N)}}}),aO=Li("rgb-hex-update"),XF=Li("slider-update"),K7=Li("palette-update"),wK=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"div",classes:[N("hue-slider-spectrum")],attributes:{role:"presentation"}}}),fe=I0.parts.thumb({dom:{tag:"div",classes:[N("hue-slider-thumb")],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:[N("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[W,fe],sliderBehaviours:ei([Ra.config({})]),onChange:(Se,Be,qe)=>{Cr(Se.element,"aria-valuenow",Math.floor(360-qe*3.6)),sa(Se,XF,{value:qe})}})},GF="form",OK=[Pd("formBehaviours",[Ei])],KF=l=>"",JF=l=>{const N=(()=>{const Be=[];return{field:(ft,yt)=>(Be.push(ft),ZC(GF,KF(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:KF(Be)}));return Dy(GF,OK,Se,e$,W)},SK=(l,N)=>l.fold(()=>aa.error(N),aa.value),e$=(l,N)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.formBehaviours,[Ei.config({store:{mode:"manual",getValue:W=>{const fe=gk(W,l);return Ue(fe,(Se,Be)=>Se().bind(qe=>{const ft=Xs.getCurrent(qe);return SK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+a1(qe.element)))}).map(Ei.getValue))},setValue:(W,fe)=>{We(fe,(Se,Be)=>{Jo(W,l,Be).each(qe=>{Xs.getCurrent(qe).each(ft=>{Ei.setValue(ft,Se)})})})}}})]),apis:{getField:(W,fe)=>Jo(W,l,fe).bind(Xs.getCurrent)}}),Y2={getField:Tb((l,N,W)=>l.getField(N,W)),sketch:JF},jy=Li("valid-input"),yA=Li("invalid-input"),J7=Li("validating-input"),bA="colorcustom.rgb.",e9={isEnabled:k,setEnabled:v,immediatelyShow:v,immediatelyHide:v},t$=(l,N,W,fe,Se,Be)=>{const qe=(cr,Xr)=>{const br=Xr.get();cr!==br.isEnabled()&&(br.setEnabled(cr),cr?br.immediatelyShow():br.immediatelyHide())},ft=(cr,Xr,br)=>Dv.config({invalidClass:N("invalid"),notify:{onValidate:Fr=>{sa(Fr,J7,{type:cr})},onValid:Fr=>{qe(!1,br),sa(Fr,jy,{type:cr,value:Ei.getValue(Fr)})},onInvalid:Fr=>{qe(!0,br),sa(Fr,yA,{type:cr,value:Ei.getValue(Fr)})}},validator:{validate:Fr=>{const jr=Ei.getValue(Fr),Ro=Xr(jr)?aa.value(!0):aa.error(l("aria.input.invalid"));return Ih.pure(Ro)},validateOnLoad:!1}}),yt=(cr,Xr,br,Fr,jr)=>{const Ro=wi(e9),ko=l(bA+"range"),_i=Il.parts.label({dom:{tag:"label",attributes:{"aria-label":Fr}},components:[Po(br)]}),Pi=Il.parts.field({data:jr,factory:Ww,inputAttributes:{type:"text",...Xr==="hex"?{"aria-live":"polite"}:{}},inputClasses:[N("textfield")],inputBehaviours:ei([ft(Xr,cr,Ro),Rc.config({}),Vu.config({...Se({tooltipText:"",onSetup:hl=>{Ro.set({isEnabled:()=>Vu.isEnabled(hl),setEnabled:Ui=>Vu.setEnabled(hl,Ui),immediatelyShow:()=>Vu.immediateOpenClose(hl,!0),immediatelyHide:()=>Vu.immediateOpenClose(hl,!1)}),Vu.setEnabled(hl,!1)},onShow:(hl,Ui)=>{Vu.setComponents(hl,[{dom:{tag:"p",classes:[N("rgb-warning-note")]},components:[Po(l(Xr==="hex"?"colorcustom.rgb.invalidHex":"colorcustom.rgb.invalid"))]}])}})})]),onSetValue:hl=>{Dv.isInvalid(hl)&&Dv.run(hl).get(v)}}),Ao=Li("aria-invalid"),$i=ml(Be("invalid",I.some(Ao),"warning")),yi=ml({dom:{tag:"div",classes:[N("invalid-icon")]},components:[$i.asSpec()]}),Xi=[_i,Pi,yi.asSpec()],ks=Xr!=="hex"?[Il.parts["aria-descriptor"]({text:ko})]:[],Ic=Xi.concat(ks);return{dom:{tag:"div",attributes:{role:"presentation"},classes:[N("rgb-container")]},components:Ic}},Lt=(cr,Xr)=>{const br=i5(Xr);return Y2.getField(cr,"hex").each(Fr=>{Ra.isFocused(Fr)||Ei.setValue(cr,{hex:br.value})}),br},Ht=(cr,Xr)=>{const br=Xr.red,Fr=Xr.green,jr=Xr.blue;Ei.setValue(cr,{red:br,green:Fr,blue:jr})},fn=ml({dom:{tag:"div",classes:[N("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Rn=(cr,Xr)=>{fn.getOpt(cr).each(br=>{xr(br.element,"background-color","#"+Xr.value)})};return Qp({factory:()=>{const cr={red:wi(I.some(255)),green:wi(I.some(255)),blue:wi(I.some(255)),hex:wi(I.some("ffffff"))},Xr=(Ui,Ko)=>{const Oi=a5(Ko);Ht(Ui,Oi),Ro(Oi)},br=Ui=>cr[Ui].get(),Fr=(Ui,Ko)=>{cr[Ui].set(Ko)},jr=()=>br("red").bind(Ui=>br("green").bind(Ko=>br("blue").map(Oi=>eO(Ui,Ko,Oi,1)))),Ro=Ui=>{const Ko=Ui.red,Oi=Ui.green,La=Ui.blue;Fr("red",I.some(Ko)),Fr("green",I.some(Oi)),Fr("blue",I.some(La))},ko=(Ui,Ko)=>{const Oi=Ko.event;Oi.type!=="hex"?Fr(Oi.type,I.none()):fe(Ui)},_i=(Ui,Ko)=>{W(Ui);const Oi=mN(Ko);Fr("hex",I.some(Oi.value));const La=a5(Oi);Ht(Ui,La),Ro(La),sa(Ui,aO,{hex:Oi}),Rn(Ui,Oi)},Pi=(Ui,Ko,Oi)=>{const La=parseInt(Oi,10);Fr(Ko,I.some(La)),jr().each(_a=>{const fa=Lt(Ui,_a);sa(Ui,aO,{hex:fa}),Rn(Ui,fa)})},Ao=Ui=>Ui.type==="hex",$i=(Ui,Ko)=>{const Oi=Ko.event;Ao(Oi)?_i(Ui,Oi.value):Pi(Ui,Oi.type,Oi.value)},yi=Ui=>({label:l(bA+Ui+".label"),description:l(bA+Ui+".description")}),Xi=yi("red"),ks=yi("green"),Ic=yi("blue"),hl=yi("hex");return ws(Y2.sketch(Ui=>({dom:{tag:"form",classes:[N("rgb-form")],attributes:{"aria-label":l("aria.color.picker")}},components:[Ui.field("red",Il.sketch(yt(e7,"red",Xi.label,Xi.description,255))),Ui.field("green",Il.sketch(yt(e7,"green",ks.label,ks.description,255))),Ui.field("blue",Il.sketch(yt(e7,"blue",Ic.label,Ic.description,255))),Ui.field("hex",Il.sketch(yt(vN,"hex",hl.label,hl.description,"ffffff"))),fn.asSpec()],formBehaviours:ei([Dv.config({invalidClass:N("form-invalid")}),Ka("rgb-form-events",[Lo(jy,$i),Lo(yA,ko),Lo(J7,ko)])])})),{apis:{updateHex:(Ui,Ko)=>{Ei.setValue(Ui,{hex:Ko.value}),Xr(Ui,Ko),Rn(Ui,Ko)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(cr,Xr,br)=>{cr.updateHex(Xr,br)}},extraApis:{}})},xA=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[N("sv-palette-spectrum")]}}),fe=I0.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[N("sv-palette-thumb")],innerHtml:``}}),Se=(Lt,Ht)=>{const{width:fn,height:Rn}=Lt,Bn=Lt.getContext("2d");if(Bn===null)return;Bn.fillStyle=Ht,Bn.fillRect(0,0,fn,Rn);const er=Bn.createLinearGradient(0,0,fn,0);er.addColorStop(0,"rgba(255,255,255,1)"),er.addColorStop(1,"rgba(255,255,255,0)"),Bn.fillStyle=er,Bn.fillRect(0,0,fn,Rn);const cr=Bn.createLinearGradient(0,0,0,Rn);cr.addColorStop(0,"rgba(0,0,0,0)"),cr.addColorStop(1,"rgba(0,0,0,1)"),Bn.fillStyle=cr,Bn.fillRect(0,0,fn,Rn)},Be=(Lt,Ht)=>{const fn=Lt.components()[0].element.dom,Rn=l5(Ht,100,100),Bn=SN(Rn);Se(fn,kN(Bn))},qe=(Lt,Ht)=>{const fn=c5(a5(Ht));I0.setValue(Lt,{x:fn.saturation,y:100-fn.value}),Cr(Lt.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",fn.saturation,fn.value]))};return Qp({factory:Lt=>{const Ht=x({x:0,y:0}),fn=(er,cr,Xr)=>{h(Xr)||Cr(er.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",Math.floor(Xr.x),Math.floor(100-Xr.y)])),sa(er,K7,{value:Xr})},Rn=(er,cr,Xr,br)=>{Se(Xr.element.dom,kN(TN))},Bn=ei([Xs.config({find:I.some}),Ra.config({})]);return I0.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":l(["Saturation {0}%, Brightness {1}%",0,0])},classes:[N("sv-palette")]},model:{mode:"xy",getInitialValue:Ht},rounded:!1,components:[W,fe],onChange:fn,onInit:Rn,sliderBehaviours:Bn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Lt,Ht,fn)=>{Be(Ht,fn)},setThumb:(Lt,Ht,fn)=>{qe(Ht,fn)}},extraApis:{}})},n$=(l,N,W,fe)=>{const Se=qe=>{const ft=t$(l,N,qe.onValidHex,qe.onInvalidHex,W,fe),yt=xA(l,N),Lt=Ao=>(100-Ao)/100*360,Ht=Ao=>100-Ao/360*100,fn={paletteRgba:wi(TN),paletteHue:wi(0)},Rn=ml(wK(l,N)),Bn=ml(yt.sketch({})),er=ml(ft.sketch({})),cr=(Ao,$i,yi)=>{Bn.getOpt(Ao).each(Xi=>{yt.setHue(Xi,yi)})},Xr=(Ao,$i)=>{er.getOpt(Ao).each(yi=>{ft.updateHex(yi,$i)})},br=(Ao,$i,yi)=>{Rn.getOpt(Ao).each(Xi=>{I0.setValue(Xi,Ht(yi))})},Fr=(Ao,$i)=>{Bn.getOpt(Ao).each(yi=>{yt.setThumb(yi,$i)})},jr=(Ao,$i)=>{const yi=a5(Ao);fn.paletteRgba.set(yi),fn.paletteHue.set($i)},Ro=(Ao,$i,yi,Xi)=>{jr($i,yi),q(Xi,ks=>{ks(Ao,$i,yi)})},ko=()=>{const Ao=[Xr];return($i,yi)=>{const Xi=yi.event.value,ks=fn.paletteHue.get(),Ic=l5(ks,Xi.x,100-Xi.y),hl=u5(Ic);Ro($i,hl,ks,Ao)}},_i=()=>{const Ao=[cr,Xr];return($i,yi)=>{const Xi=Lt(yi.event.value),ks=fn.paletteRgba.get(),Ic=c5(ks),hl=l5(Xi,Ic.saturation,Ic.value),Ui=u5(hl);Ro($i,Ui,Xi,Ao)}},Pi=()=>{const Ao=[cr,br,Fr];return($i,yi)=>{const Xi=yi.event.hex,ks=a7(Xi);Ro($i,Xi,ks.hue,Ao)}};return{uid:qe.uid,dom:qe.dom,components:[Bn.asSpec(),Rn.asSpec(),er.asSpec()],behaviours:ei([Ka("colour-picker-events",[Lo(aO,Pi()),Lo(K7,ko()),Lo(XF,_i())]),Xs.config({find:Ao=>er.getOpt(Ao)}),ha.config({mode:"acyclic"})])}};return Qp({name:"ColourPicker",configFields:[pn("dom"),Ar("onValidHex",v),Ar("onInvalidHex",v)],factory:Se})},P1={self:()=>Xs.config({find:I.some}),memento:l=>Xs.config({find:l.getOpt}),childAt:l=>Xs.config({find:N=>jn(N.element,l).bind(W=>N.getSystem().getByDom(W).toOptional())})},TK=Si([Ar("preprocess",R),Ar("postprocess",R)]),CK=(l,N)=>{const W=Xt("RepresentingConfigs.memento processors",TK,N);return Ei.config({store:{mode:"manual",getValue:fe=>{const Se=l.get(fe),Be=Ei.getValue(Se);return W.postprocess(Be)},setValue:(fe,Se)=>{const Be=W.preprocess(Se),qe=l.get(fe);Ei.setValue(qe,Be)}}})},X2=(l,N,W)=>Ei.config({store:{mode:"manual",...l.map(fe=>({initialValue:fe})).getOr({}),getValue:N,setValue:W}}),t9=(l,N,W)=>X2(l,fe=>N(fe.element),(fe,Se)=>W(fe.element,Se)),AK=l=>t9(l,Np,d0),_A=l=>Ei.config({store:{mode:"memory",initialValue:l}}),MK={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.rgb.invalid":"Numbers only, 0 to 255","colorcustom.rgb.invalidHex":"Hexadecimal only, 000000 to FFFFFF","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},wA=l=>N=>n(N)?l.translate(MK[N]):l.translate(N),EK=(l,N,W)=>{const fe=Lt=>"tox-"+Lt,Se=(Lt,Ht,fn=Lt,Rn=Lt)=>Bg(fn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Lt],attributes:{title:N.translate(Rn),"aria-live":"polite",...Ht.fold(()=>({}),Bn=>({id:Bn}))}},N.icons),Be=n$(wA(N),fe,N.tooltips.getConfig,Se),qe=Lt=>{sa(Lt,Ny,{name:"hex-valid",value:!0})},ft=Lt=>{sa(Lt,Ny,{name:"hex-valid",value:!1})},yt=ml(Be.sketch({dom:{tag:"div",classes:[fe("color-picker-container")],attributes:{role:"presentation"}},onValidHex:qe,onInvalidHex:ft}));return{dom:{tag:"div"},components:[yt.asSpec()],behaviours:ei([X2(W,Lt=>{const Ht=yt.get(Lt);return Xs.getCurrent(Ht).bind(Bn=>Ei.getValue(Bn).hex).map(Bn=>"#"+Sn(Bn,"#")).getOr("")},(Lt,Ht)=>{const fn=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Rn=I.from(fn.exec(Ht)).bind(cr=>De(cr,1)),Bn=yt.get(Lt);Xs.getCurrent(Bn).fold(()=>{console.log("Can not find form")},cr=>{Ei.setValue(cr,{hex:Rn.getOr("")}),Y2.getField(cr,"hex").each(Xr=>{Za(Xr,vg())})})}),P1.self()])}};var PK=tinymce.util.Tools.resolve("tinymce.Resource");const n9=l=>ht(l,"init"),r$=l=>{const N=ds(),W=ml({dom:{tag:l.tag}}),fe=ds(),Se=!n9(l)&&l.onFocus.isSome()?[Ra.config({onFocus:Be=>{l.onFocus.each(qe=>{qe(Be.element.dom)})}}),Rc.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:ei([Ka("custom-editor-events",[wc(Be=>{W.getOpt(Be).each(qe=>{(n9(l)?l.init(qe.element.dom):PK.load(l.scriptId,l.scriptUrl).then(ft=>ft(qe.element.dom,l.settings))).then(ft=>{fe.on(yt=>{ft.setValue(yt)}),fe.clear(),N.set(ft)})})})]),X2(I.none(),()=>N.get().fold(()=>fe.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{N.get().fold(()=>fe.set(qe),ft=>ft.setValue(qe))}),P1.self()].concat(Se)),components:[W.asSpec()]}};var hx=tinymce.util.Tools.resolve("tinymce.util.Tools");const RK=(l,N)=>{const W=hx.explode(N.getOption("images_file_types")),fe=Se=>te(W,Be=>bt(Se.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(l),fe)},r9=(l,N,W)=>{const fe=(Rn,Bn)=>{Bn.stop()},Se=Rn=>(Bn,er)=>{q(Rn,cr=>{cr(Bn,er)})},Be=(Rn,Bn)=>{var er;if(!he.isDisabled(Rn)){const cr=Bn.event.raw;ft(Rn,(er=cr.dataTransfer)===null||er===void 0?void 0:er.files)}},qe=(Rn,Bn)=>{const er=Bn.event.raw.target;ft(Rn,er.files)},ft=(Rn,Bn)=>{Bn&&(Ei.setValue(Rn,RK(Bn,N)),sa(Rn,xm,{name:l.name}))},yt=ml({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ei([Ka("input-file-events",[od(H1()),od(Lm())])])}),Lt=Rn=>({uid:Rn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ei([_A(W.getOr([])),P1.self(),he.config({}),us.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ka("dropzone-events",[Lo("dragenter",Se([fe,us.toggle])),Lo("dragleave",Se([fe,us.toggle])),Lo("dragover",fe),Lo("drop",Se([fe,Be])),Lo(s0(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Po(N.translate("Drop an image here"))]},Lh.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Po(N.translate("Browse for an image")),yt.asSpec()],action:Bn=>{yt.get(Bn).element.dom.click()},buttonBehaviours:ei([Rc.config({}),E1.button(N.isDisabled),Id()])})]}]}),Ht=l.label.map(Rn=>H2(Rn,N)),fn=Il.parts.field({factory:{sketch:Lt}});return g5(Ht,fn,["tox-form__group--stretched"],[])},LK=(l,N)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${l.columns}col`]},components:re(l.items,N.interpreter)}),o$=(l,N)=>{let W=null,fe=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null,fe=null)},throttle:(...qe)=>{fe=qe,S(W)&&(W=setTimeout(()=>{const ft=fe;W=null,fe=null,l.apply(null,ft)},N))}}},IK=(l,N)=>{let W=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null)},throttle:(...Be)=>{S(W)&&(W=setTimeout(()=>{W=null,l.apply(null,Be)},N))}}},o9=(l,N)=>{let W=null;const fe=()=>{S(W)||(clearTimeout(W),W=null)};return{cancel:fe,throttle:(...Be)=>{fe(),W=setTimeout(()=>{W=null,l.apply(null,Be)},N)}}},i9=Li("alloy-fake-before-tabstop"),OA=Li("alloy-fake-after-tabstop"),a9=l=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:l},behaviours:ei([Ra.config({ignore:!0}),Rc.config({})])}),i$=(l,N)=>({dom:{tag:"div",classes:["tox-navobj",...l.getOr([])]},components:[a9([i9]),N,a9([OA])],behaviours:ei([P1.childAt(1)])}),a$=(l,N)=>{sa(l,nm(),{raw:{which:9,shiftKey:N}})},DK=(l,N)=>{const W=N.element;rp(W,i9)?a$(l,!0):rp(W,OA)&&a$(l,!1)},E5=l=>f5(l,["."+i9,"."+OA].join(","),D),P5=Li("update-dialog"),s$=Li("update-title"),s9=Li("update-body"),l$=Li("update-footer"),c$=Li("body-send-message"),SA=Li("dialog-focus-shifted"),l9=va().browser,R5=l9.isSafari(),BK=l9.isFirefox(),u$=R5||BK,zK=l9.isChromium(),NK=({scrollTop:l,scrollHeight:N,clientHeight:W})=>Math.ceil(l)+W>=N,kA=(l,N)=>l.scrollTo(0,N==="bottom"?99999999:N),FK=(l,N)=>{const W=l.body;return I.from(!/^1))?W:l.documentElement)},f$=(l,N,W)=>{const fe=l.dom;I.from(fe.contentDocument).fold(W,Se=>{let Be=0;const qe=FK(Se,N).map(yt=>(Be=yt.scrollTop,yt)).forall(NK),ft=()=>{const yt=fe.contentWindow;a(yt)&&(qe?kA(yt,"bottom"):!qe&&u$&&Be!==0&&kA(yt,Be))};R5&&fe.addEventListener("load",ft,{once:!0}),Se.open(),Se.write(N),Se.close(),R5||ft()})},L5=Ot(u$,R5?500:200).map(l=>o$(f$,l)),c9=(l,N)=>{const W=wi(l.getOr(""));return{getValue:fe=>W.get(),setValue:(fe,Se)=>{if(W.get()!==Se){const Be=fe.element,qe=()=>Cr(Be,"srcdoc",Se);N?L5.fold(x(f$),ft=>ft.throttle)(Be,Se,qe):qe()}W.set(Se)}}},$K=(l,N,W)=>{const fe="tox-dialog__iframe",Se=l.transparent?[]:[`${fe}--opaque`],Be=l.border?["tox-navobj-bordered"]:[],qe={...l.label.map(fn=>({title:fn})).getOr({}),...W.map(fn=>({srcdoc:fn})).getOr({}),...l.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=c9(W,l.streamContent),yt=l.label.map(fn=>H2(fn,N)),Lt=fn=>i$(I.from(Be),{uid:fn.uid,dom:{tag:"iframe",attributes:qe,classes:[fe,...Se]},behaviours:ei([Rc.config({}),Ra.config({}),X2(W,ft.getValue,ft.setValue),Ad.config({channels:{[SA]:{onReceive:(Rn,Bn)=>{Bn.newFocus.each(er=>{Zr(Rn.element).each(cr=>{(_o(Rn.element,er)?uc:Zc)(cr,"tox-navobj-bordered-focus")})})}}}})])}),Ht=Il.parts.field({factory:{sketch:Lt}});return g5(yt,Ht,["tox-form__group--stretched"],[])},VK=l=>new Promise((N,W)=>{const fe=()=>{Be(),N(l)},Se=[ud(l,"load",fe),ud(l,"error",()=>{Be(),W("Unable to load data from image: "+l.dom.src)})],Be=()=>q(Se,qe=>qe.unbind());l.dom.complete&&fe()}),u9=(l,N,W,fe,Se)=>{const Be=W*Se,qe=fe*Se,ft=Math.max(0,l/2-Be/2),yt=Math.max(0,N/2-qe/2);return{left:ft.toString()+"px",top:yt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},UK=(l,N,W)=>{const fe=_s(l),Se=il(l);return Math.min(fe/N,Se/W,1)},f9=(l,N)=>{const W=wi(N.getOr({url:""})),fe=ml({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:N.map(yt=>({src:yt.url})).getOr({})}}),Se=ml({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[fe.asSpec()]}),Be=(yt,Lt)=>{const Ht={url:Lt.url};Lt.zoom.each(Rn=>Ht.zoom=Rn),Lt.cachedWidth.each(Rn=>Ht.cachedWidth=Rn),Lt.cachedHeight.each(Rn=>Ht.cachedHeight=Rn),W.set(Ht);const fn=()=>{const{cachedWidth:Rn,cachedHeight:Bn,zoom:er}=Ht;if(!y(Rn)&&!y(Bn)){if(y(er)){const Xr=UK(yt.element,Rn,Bn);Ht.zoom=Xr}const cr=u9(_s(yt.element),il(yt.element),Rn,Bn,Ht.zoom);Se.getOpt(yt).each(Xr=>{Oo(Xr.element,cr)})}};fe.getOpt(yt).each(Rn=>{const Bn=Rn.element;Lt.url!==Nr(Bn,"src")&&(Cr(Bn,"src",Lt.url),Zc(yt.element,"tox-imagepreview__loaded")),fn(),VK(Bn).then(er=>{yt.getSystem().isConnected()&&(uc(yt.element,"tox-imagepreview__loaded"),Ht.cachedWidth=er.dom.naturalWidth,Ht.cachedHeight=er.dom.naturalHeight,fn())})})},qe={};l.height.each(yt=>qe.height=yt);const ft=N.map(yt=>({url:yt.url,zoom:I.from(yt.zoom),cachedWidth:I.from(yt.cachedWidth),cachedHeight:I.from(yt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[Se.asSpec()],behaviours:ei([P1.self(),X2(ft,()=>W.get(),Be)])}},d$=(l,N,W)=>{const fe="tox-label",Se=l.align==="center"?[`${fe}--center`]:[],Be=l.align==="end"?[`${fe}--end`]:[],qe=ml({dom:{tag:"label",classes:[fe,...Se,...Be]},components:[Po(N.providers.translate(l.label))]}),ft=re(l.items,N.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:ei([P1.self(),Fa.config({}),AK(I.none()),ha.config({mode:"acyclic"}),Ka("label",[wc(yt=>{l.for.each(Lt=>{W(Lt).each(Ht=>{qe.getOpt(yt).each(fn=>{var Rn;const Bn=(Rn=Nr(Ht.element,"id"))!==null&&Rn!==void 0?Rn:Li("form-field");Cr(Ht.element,"id",Bn),Cr(fn.element,"for",Bn)})})})})])])}},h$=Li("toolbar.button.execute"),jK=l=>kh((N,W)=>{r5(l,N)(fe=>{sa(N,h$,{buttonApi:fe}),l.onAction(fe)})}),G2=Li("common-button-display-events"),d9={[Bp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[Sh()]:["toolbar-button-events",G2],[zp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Nc()]:["focusing","alloy.base.behaviour",G2]},h9=l=>xr(l.element,"width",Di(l.element,"width")),p9=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:W},N),TA=(l,N)=>p9(l,N,[]),K2=(l,N)=>p9(l,N,[Fa.config({})]),m9=(l,N,W)=>({dom:{tag:"span",classes:[`${N}__select-label`]},components:[Po(W.translate(l))],behaviours:ei([Fa.config({})])}),Ug=Li("update-menu-text"),J2=Li("update-menu-icon"),g9=(l,N,W,fe)=>{const Se=wi(v),Be=l.text.map(cr=>ml(m9(cr,N,W.providers))),qe=l.icon.map(cr=>ml(K2(cr,W.providers.icons))),ft=(cr,Xr)=>{const br=Ei.getValue(cr);return Ra.focus(br),sa(br,"keydown",{raw:Xr.event.raw}),L0.close(br),I.some(!0)},yt=l.role.fold(()=>({}),cr=>({role:cr})),Lt=I.from(l.listRole).map(cr=>({listRole:cr})).getOr({}),Ht=l.ariaLabel.fold(()=>({}),cr=>({"aria-label":W.providers.translate(cr)})),fn=Bg("chevron-down",{tag:"div",classes:[`${N}__select-chevron`]},W.providers.icons),Rn=Li("common-button-display-events"),Bn="dropdown-events";return ml(L0.sketch({...l.uid?{uid:l.uid}:{},...yt,...Lt,dom:{tag:"button",classes:[N,`${N}--select`].concat(re(l.classes,cr=>`${N}--${cr}`)),attributes:{...Ht,...a(fe)?{"data-mce-name":fe}:{}}},components:Kw([qe.map(cr=>cr.asSpec()),Be.map(cr=>cr.asSpec()),I.some(fn)]),matchWidth:!0,useMinWidth:!0,onOpen:(cr,Xr,br)=>{l.searchable&&sG(br)},dropdownBehaviours:ei([...l.dropdownBehaviours,E1.button(()=>l.disabled||W.providers.isDisabled()),Id(),bS.config({}),Fa.config({}),...l.tooltip.map(cr=>Vu.config(W.providers.tooltips.getConfig({tooltipText:W.providers.translate(cr)}))).toArray(),Ka(Bn,[cp(l,Se),j2(l,Se)]),Ka(Rn,[wc((cr,Xr)=>l.listRole==="listbox"?v:h9(cr))]),Ka("menubutton-update-display-text",[Lo(Ug,(cr,Xr)=>{Be.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[Po(W.providers.translate(Xr.event.text))])})}),Lo(J2,(cr,Xr)=>{qe.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[K2(Xr.event.icon,W.providers.icons)])})})])]),eventOrder:ws(d9,{[Nc()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Sh()]:["toolbar-button-events",Vu.name(),Bn,Rn]}),sandboxBehaviours:ei([ha.config({mode:"special",onLeft:ft,onRight:ft}),Ka("dropdown-sandbox-events",[Lo(Bz,(cr,Xr)=>{oG(cr),Xr.stop()}),Lo(AP,(cr,Xr)=>{aA(cr,Xr),Xr.stop()})])]),lazySink:W.getSink,toggleClass:`${N}--active`,parts:{menu:{...Xk(!1,l.columns,l.presets),fakeFocus:l.searchable,...l.listRole==="listbox"?{}:{onHighlightItem:rF,onCollapseMenu:(cr,Xr,br)=>{ta.getHighlighted(br).each(Fr=>{rF(cr,br,Fr)})},onDehighlightItem:aG}}},getAnchorOverrides:()=>({maxHeightFunction:(cr,Xr)=>{hw()(cr,Xr-10)}}),fetch:cr=>Ih.nu(T(l.fetch,cr))})).asSpec()},QK=l=>n(l),p$=l=>l.type==="separator",m$=l=>ht(l,"getSubmenuItems"),HK={type:"separator"},g$=(l,N)=>{const W=se(l,(fe,Se)=>QK(Se)?Se===""?fe:Se==="|"?fe.length>0&&!p$(fe[fe.length-1])?fe.concat([HK]):fe:ht(N,Se.toLowerCase())?fe.concat([N[Se.toLowerCase()]]):fe:fe.concat([Se]),[]);return W.length>0&&p$(W[W.length-1])&&W.pop(),W},ZK=(l,N)=>{const W=l.getSubmenuItems(),fe=CA(W,N),Se=ws(fe.menus,{[l.value]:fe.items}),Be=ws(fe.expansions,{[l.value]:l.value});return{item:l,menus:Se,expansions:Be}},qK=l=>{const N=Ge(l,"value").getOrThunk(()=>Li("generated-menu-item"));return ws({value:N},l)},CA=(l,N)=>{const W=g$(n(l)?l.split(" "):l,N);return pe(W,(fe,Se)=>{if(m$(Se)){const Be=qK(Se),qe=ZK(Be,N);return{menus:ws(fe.menus,qe.menus),items:[qe.item,...fe.items],expansions:ws(fe.expansions,qe.expansions)}}else return{...fe,items:[Se,...fe.items]}},{menus:{},expansions:{},items:[]})},WK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-field",placeholder:N.placeholder})),YK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-results"})),OS=(l,N,W,fe)=>{const Se=Li("primary-menu"),Be=CA(l,W.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=WK(fe),ft=S7(Se,Be.items,N,W,fe.isHorizontalMenu,qe),yt=YK(fe),Lt=Ue(Be.menus,(fn,Rn)=>S7(Rn,fn,N,W,!1,yt)),Ht=ws(Lt,Sa(Se,ft));return I.from(B2.tieredData(Se,Ht,Be.expansions))},SS=l=>!ht(l,"items"),v$="data-value",v9=(l,N,W,fe,Se)=>re(W,Be=>SS(Be)?{type:"togglemenuitem",...Se?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===fe,onAction:()=>{Ei.setValue(l,Be.value),sa(l,xm,{name:N}),Ra.focus(l)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>v9(l,N,Be.items,fe,Se)}),y9=(l,N)=>Oe(l,W=>SS(W)?Ot(W.value===N,W):y9(W.items,N)),y$=(l,N,W)=>{const fe=te(l.items,Lt=>!SS(Lt)),Se=N.shared.providers,Be=W.bind(Lt=>y9(l.items,Lt)).orThunk(()=>Qe(l.items).filter(SS)),qe=l.label.map(Lt=>H2(Lt,Se)),ft=Il.parts.field({dom:{},factory:{sketch:Lt=>g9({uid:Lt.uid,text:Be.map(Ht=>Ht.text),icon:I.none(),tooltip:I.none(),role:Ot(!fe,"combobox"),...fe?{}:{listRole:"listbox"},ariaLabel:l.label,fetch:(Ht,fn)=>{const Rn=v9(Ht,l.name,l.items,Ei.getValue(Ht),fe);fn(OS(Rn,A1.CLOSE_ON_EXECUTE,N,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Rc.config({}),X2(Be.map(Ht=>Ht.value),Ht=>Nr(Ht.element,v$),(Ht,fn)=>{y9(l.items,fn).each(Rn=>{Cr(Ht.element,v$,Rn.value),sa(Ht,Ug,{text:Rn.text})})})]},"tox-listbox",N.shared)}}),yt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([qe.toArray(),[yt]]),fieldBehaviours:ei([he.config({disabled:x(!l.enabled),onDisabled:Lt=>{Il.getField(Lt).each(he.disable)},onEnabled:Lt=>{Il.getField(Lt).each(he.enable)}})])})},XK=(l,N)=>({dom:{tag:"div",classes:l.classes},components:re(l.items,N.shared.interpreter)}),GK=(l,N)=>{const W=re(l.options,Se=>({dom:{tag:"option",value:Se.value,innerHtml:Se.text}})),fe=l.data.map(Se=>Sa("initialValue",Se)).getOr({});return{uid:l.uid,dom:{tag:"select",classes:l.selectClasses,attributes:l.selectAttributes},components:W,behaviours:Rd(l.selectBehaviours,[Ra.config({}),Ei.config({store:{mode:"manual",getValue:Se=>F(Se.element),setValue:(Se,Be)=>{const qe=Qe(l.options);ce(l.options,yt=>yt.value===Be).isSome()?G(Se.element,Be):Se.element.dom.selectedIndex===-1&&Be===""&&qe.each(yt=>G(Se.element,yt.value))},...fe}})])}},KK=Qp({name:"HtmlSelect",configFields:[pn("options"),Pd("selectBehaviours",[Ra,Ei]),Ar("selectClasses",[]),Ar("selectAttributes",{}),Yo("data")],factory:GK}),JK=(l,N,W)=>{const fe=re(l.items,yt=>({text:N.translate(yt.text),value:yt.value})),Se=l.label.map(yt=>H2(yt,N)),Be=Il.parts.field({dom:{},...W.map(yt=>({data:yt})).getOr({}),selectAttributes:{size:l.size},options:fe,factory:KK,selectBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Rc.config({}),Ka("selectbox-change",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),qe=l.size>1?I.none():I.some(Bg("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},N.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ye([[Be],qe.toArray()])};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([Se.toArray(),[ft]]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Il.getField(yt).each(he.disable)},onEnabled:yt=>{Il.getField(yt).each(he.enable)}}),Id()])})},eJ=x([Ar("field1Name","field1"),Ar("field2Name","field2"),Ah("onLockedChange"),h0(["lockClass"]),Ar("locked",!1),Km.field("coupledFieldBehaviours",[Xs,Ei])]),b$=(l,N,W)=>Jo(l,N,W).bind(Xs.getCurrent),x$=(l,N)=>mh({factory:Il,name:l,overrides:W=>({fieldBehaviours:ei([Ka("coupled-input-behaviour",[Lo(vg(),fe=>{b$(fe,W,N).each(Se=>{Jo(fe,W,"lock").each(Be=>{us.isOn(Be)&&W.onLockedChange(fe,Se,Be)})})})])])})}),tJ=x([x$("field1","field2"),x$("field2","field1"),mh({factory:Lh,schema:[pn("dom")],name:"lock",overrides:l=>({buttonBehaviours:ei([us.config({selected:l.locked,toggleClass:l.markers.lockClass,aria:{mode:"pressed"}})])})})]),_$=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Km.augment(l.coupledFieldBehaviours,[Xs.config({find:I.some}),Ei.config({store:{mode:"manual",getValue:Se=>{const Be=Kb(Se,l,["field1","field2"]);return{[l.field1Name]:Ei.getValue(Be.field1()),[l.field2Name]:Ei.getValue(Be.field2())}},setValue:(Se,Be)=>{const qe=Kb(Se,l,["field1","field2"]);pt(Be,l.field1Name)&&Ei.setValue(qe.field1(),Be[l.field1Name]),pt(Be,l.field2Name)&&Ei.setValue(qe.field2(),Be[l.field2Name])}}})]),apis:{getField1:Se=>Jo(Se,l,"field1"),getField2:Se=>Jo(Se,l,"field2"),getLock:Se=>Jo(Se,l,"lock")}}),jg=Zh({name:"FormCoupledInputs",configFields:eJ(),partFields:tJ(),factory:_$,apis:{getField1:(l,N)=>l.getField1(N),getField2:(l,N)=>l.getField2(N),getLock:(l,N)=>l.getLock(N)}}),nJ=l=>{const N={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},W=Se=>Se in N?N[Se]:1;let fe=l.value.toFixed(W(l.unit));return fe.indexOf(".")!==-1&&(fe=fe.replace(/\.?0*$/,"")),fe+l.unit},b9=l=>{const W=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(l);if(W!==null){const fe=parseFloat(W[1]),Se=W[2];return aa.value({value:fe,unit:Se})}else return aa.error(l)},x9=(l,N)=>{const W={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},fe=Se=>ht(W,Se);return l.unit===N?I.some(l.value):fe(l.unit)&&fe(N)?W[l.unit]===W[N]?I.some(l.value):I.some(l.value/W[l.unit]*W[N]):I.none()},_9=l=>I.none(),rJ=(l,N)=>W=>x9(W,N).map(fe=>({value:fe*l,unit:N})),oJ=(l,N)=>{const W=b9(l).toOptional(),fe=b9(N).toOptional();return ln(W,fe,(Se,Be)=>x9(Se,Be.unit).map(qe=>Be.value/qe).map(qe=>rJ(qe,Be.unit)).getOr(_9)).getOr(_9)},w$=(l,N)=>{let W=_9;const fe=Li("ratio-event"),Se=Bn=>Bg(Bn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Bn]},N.icons),Be=l.label.getOr("Constrain proportions"),qe=N.translate(Be),ft=jg.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[Se("lock"),Se("unlock")],buttonBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Vu.config(N.tooltips.getConfig({tooltipText:qe}))])}),yt=Bn=>({dom:{tag:"div",classes:["tox-form__group"]},components:Bn}),Lt=Bn=>Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],inputBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Ka("size-input-events",[Lo(Dp(),(er,cr)=>{sa(er,fe,{isField1:Bn})}),Lo(s0(),(er,cr)=>{sa(er,xm,{name:l.name})})])]),selectOnFocus:!1}),Ht=Bn=>({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(Bn))]}),fn=jg.parts.field1(yt([Il.parts.label(Ht("Width")),Lt(!0)])),Rn=jg.parts.field2(yt([Il.parts.label(Ht("Height")),Lt(!1)]));return jg.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[fn,Rn,yt([Ht($b),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Bn,er,cr)=>{b9(Ei.getValue(Bn)).each(Xr=>{W(Xr).each(br=>{Ei.setValue(er,nJ(br))})})},coupledFieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.disable),jg.getField2(Bn).bind(Il.getField).each(he.disable),jg.getLock(Bn).each(he.disable)},onEnabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.enable),jg.getField2(Bn).bind(Il.getField).each(he.enable),jg.getLock(Bn).each(he.enable)}}),Id(),Ka("size-input-events2",[Lo(fe,(Bn,er)=>{const cr=er.event.isField1,Xr=cr?jg.getField1(Bn):jg.getField2(Bn),br=cr?jg.getField2(Bn):jg.getField1(Bn),Fr=Xr.map(Ei.getValue).getOr(""),jr=br.map(Ei.getValue).getOr("");W=oJ(Fr,jr)})])])})},O$=(l,N,W)=>{const fe=I0.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l.label))]}),Se=I0.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=I0.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:l.min,maxX:l.max,getInitialValue:x(W.getOrThunk(()=>(Math.abs(l.max)-Math.abs(l.min))/2))},components:[fe,Se,Be],sliderBehaviours:ei([P1.self(),Ra.config({})]),onChoose:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})},onChange:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})}})},S$=(l,N)=>{const W=ft=>({dom:{tag:"th",innerHtml:N.translate(ft)}}),fe=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:re(ft,W)}]}),Se=ft=>({dom:{tag:"td",innerHtml:N.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:re(ft,Se)}),qe=ft=>({dom:{tag:"tbody"},components:re(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[fe(l.header),qe(l.cells)],behaviours:ei([Rc.config({}),Ra.config({})])}},I5=(l,N)=>{const W=l.label.map(Bn=>H2(Bn,N)),fe=[he.config({disabled:()=>l.disabled||N.isDisabled()}),Id(),ha.config({mode:"execution",useEnter:l.multiline!==!0,useControlEnter:l.multiline===!0,execute:Bn=>(Za(Bn,v5),I.some(!0))}),Ka("textfield-change",[Lo(vg(),(Bn,er)=>{sa(Bn,xm,{name:l.name})}),Lo(l0(),(Bn,er)=>{sa(Bn,xm,{name:l.name})})]),Rc.config({})],Se=l.validation.map(Bn=>Dv.config({getRoot:er=>Zr(er.element),invalidClass:"tox-invalid",validator:{validate:er=>{const cr=Ei.getValue(er),Xr=Bn.validator(cr);return Ih.pure(Xr===!0?aa.value(cr):aa.error(Xr))},validateOnLoad:Bn.validateOnLoad}})).toArray(),Be=l.placeholder.fold(x({}),Bn=>({placeholder:N.translate(Bn)})),qe=l.inputMode.fold(x({}),Bn=>({inputmode:Bn})),ft={...Be,...qe,"data-mce-name":l.name},yt=Il.parts.field({tag:l.multiline===!0?"textarea":"input",...l.data.map(Bn=>({data:Bn})).getOr({}),inputAttributes:ft,inputClasses:[l.classname],inputBehaviours:ei(ye([fe,Se])),selectOnFocus:!1,factory:Ww}),Lt=l.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[yt]}:yt,fn=(l.flex?["tox-form__group--stretched"]:[]).concat(l.maximized?["tox-form-group--maximize"]:[]),Rn=[he.config({disabled:()=>l.disabled||N.isDisabled(),onDisabled:Bn=>{Il.getField(Bn).each(he.disable)},onEnabled:Bn=>{Il.getField(Bn).each(he.enable)}}),Id()];return g5(W,Lt,fn,Rn)},iJ=(l,N,W)=>I5({name:l.name,multiline:!1,label:l.label,inputMode:l.inputMode,placeholder:l.placeholder,flex:!1,disabled:!l.enabled,classname:"tox-textfield",validation:I.none(),maximized:l.maximized,data:W},N),aJ=(l,N,W)=>I5({name:l.name,multiline:!0,label:l.label,inputMode:I.none(),placeholder:l.placeholder,flex:!0,disabled:!l.enabled,classname:"tox-textarea",validation:I.none(),maximized:l.maximized,data:W},N),D5=(l,N)=>N.getAnimationRoot.fold(()=>l.element,W=>W(l)),px=l=>l.dimension.property,e_=(l,N)=>l.dimension.getDimension(N),AA=(l,N)=>{const W=D5(l,N);Oc(W,[N.shrinkingClass,N.growingClass])},w9=(l,N)=>{Zc(l.element,N.openClass),uc(l.element,N.closedClass),xr(l.element,px(N),"0px"),yl(l.element)},O9=(l,N)=>{Zc(l.element,N.closedClass),uc(l.element,N.openClass),zi(l.element,px(N))},S9=(l,N,W,fe)=>{W.setCollapsed(),xr(l.element,px(N),e_(N,l.element)),AA(l,N),w9(l,N),N.onStartShrink(l),N.onShrunk(l)},k$=(l,N,W,fe)=>{const Se=fe.getOrThunk(()=>e_(N,l.element));W.setCollapsed(),xr(l.element,px(N),Se),yl(l.element);const Be=D5(l,N);Zc(Be,N.growingClass),uc(Be,N.shrinkingClass),w9(l,N),N.onStartShrink(l)},T$=(l,N,W)=>{const fe=e_(N,l.element);(fe==="0px"?S9:k$)(l,N,W,I.some(fe))},C$=(l,N,W)=>{const fe=D5(l,N),Se=rp(fe,N.shrinkingClass),Be=e_(N,l.element);O9(l,N);const qe=e_(N,l.element);(Se?()=>{xr(l.element,px(N),Be),yl(l.element)}:()=>{w9(l,N)})(),Zc(fe,N.shrinkingClass),uc(fe,N.growingClass),O9(l,N),xr(l.element,px(N),qe),W.setExpanded(),N.onStartGrow(l)},A$=(l,N,W)=>{if(W.isExpanded()){zi(l.element,px(N));const fe=e_(N,l.element);xr(l.element,px(N),fe)}},sJ=(l,N,W)=>{W.isExpanded()||C$(l,N,W)},lJ=(l,N,W)=>{W.isExpanded()&&T$(l,N,W)},$a=(l,N,W)=>{W.isExpanded()&&S9(l,N,W)},B5=(l,N,W)=>W.isExpanded(),M$=(l,N,W)=>W.isCollapsed(),k9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.growingClass)===!0},T9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.shrinkingClass)===!0};var z5=Object.freeze({__proto__:null,refresh:A$,grow:sJ,shrink:lJ,immediateShrink:$a,hasGrown:B5,hasShrunk:M$,isGrowing:k9,isShrinking:T9,isTransitioning:(l,N,W)=>k9(l,N)||T9(l,N),toggleGrow:(l,N,W)=>{(W.isExpanded()?T$:C$)(l,N,W)},disableTransitions:AA,immediateGrow:(l,N,W)=>{W.isExpanded()||(O9(l,N),xr(l.element,px(N),e_(N,l.element)),AA(l,N),W.setExpanded(),N.onStartGrow(l),N.onGrown(l))}}),dJ=Object.freeze({__proto__:null,exhibit:(l,N,W)=>{const fe=N.expanded;return np(fe?{classes:[N.openClass],styles:{}}:{classes:[N.closedClass],styles:Sa(N.dimension.property,"0px")})},events:(l,N)=>Rl([cy(rm(),(W,fe)=>{fe.event.raw.propertyName===l.dimension.property&&(AA(W,l),N.isExpanded()&&zi(W.element,l.dimension.property),(N.isExpanded()?l.onGrown:l.onShrunk)(W))})])}),hJ=[pn("closedClass"),pn("openClass"),pn("shrinkingClass"),pn("growingClass"),Yo("getAnimationRoot"),Ss("onShrunk"),Ss("onStartShrink"),Ss("onGrown"),Ss("onStartGrow"),Ar("expanded",!1),In("dimension",bn("property",{width:[Sl("property","width"),Sl("getDimension",l=>_s(l)+"px")],height:[Sl("property","height"),Sl("getDimension",l=>il(l)+"px")]}))],E$=Object.freeze({__proto__:null,init:l=>{const N=wi(l.expanded),W=()=>"expanded: "+N.get();return Hd({isExpanded:()=>N.get()===!0,isCollapsed:()=>N.get()===!1,setCollapsed:T(N.set,!1),setExpanded:T(N.set,!0),readState:W})}});const Tp=id({fields:hJ,name:"sliding",active:dJ,apis:z5,state:E$}),C9=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setActive:N=>{const W=l.element;N?(uc(W,"tox-tbtn--enabled"),Cr(W,"aria-pressed",!0)):(Zc(W,"tox-tbtn--enabled"),Qt(W,"aria-pressed"))},isActive:()=>rp(l.element,"tox-tbtn--enabled"),setText:N=>{sa(l,Ug,{text:N})},setIcon:N=>sa(l,J2,{icon:N})}),N5=(l,N,W,fe,Se=!0,Be)=>g9({text:l.text,icon:l.icon,tooltip:l.tooltip,ariaLabel:l.tooltip,searchable:l.search.isSome(),role:fe,fetch:(qe,ft)=>{const yt={pattern:l.search.isSome()?lG(qe):""};l.fetch(Lt=>{ft(OS(Lt,A1.CLOSE_ON_EXECUTE,W,{isHorizontalMenu:!1,search:l.search}))},yt,C9(qe))},onSetup:l.onSetup,getApi:C9,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...Se?[Rc.config({})]:[]]},N,W.shared,Be),pJ=(l,N,W)=>{const fe=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),W.shared.getSink().each(yt=>{N().getOpt(yt).each(Lt=>{Md(Lt.element),sa(Lt,Ny,{name:Be.name,value:Be.storage.get()})})})},Se=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(re(l,qe=>{const ft=qe.text.fold(()=>({}),yt=>({text:yt}));return{type:qe.type,active:!1,...ft,onAction:fe(qe),onSetup:Se(qe)}}))}},P$=l=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":l}},components:[Po(l)]}),R$=Li("leaf-label-event-id"),A9=({leaf:l,onLeafAction:N,visible:W,treeId:fe,selectedId:Se,backstage:Be})=>{const qe=l.menu.map(yt=>N5(yt,"tox-mbtn",Be,I.none(),W)),ft=[P$(l.title)];return qe.each(yt=>ft.push(yt)),Lh.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(W?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:yt=>{N(l.id),yt.getSystem().broadcastOn([`update-active-item-${fe}`],{value:l.id})},eventOrder:{[nm()]:[R$,"keying"]},buttonBehaviours:ei([...W?[Rc.config({})]:[],us.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Ad.config({channels:{[`update-active-item-${fe}`]:{onReceive:(yt,Lt)=>{(Lt.value===l.id?us.on:us.off)(yt)}}}}),Ka(R$,[wc((yt,Lt)=>{Se.each(Ht=>{(Ht===l.id?us.on:us.off)(yt)})}),Lo(nm(),(yt,Lt)=>{const Ht=Lt.event.raw.code==="ArrowLeft",fn=Lt.event.raw.code==="ArrowRight";Ht?(Fl(yt.element,".tox-tree--directory").each(Rn=>{yt.getSystem().getByDom(Rn).each(Bn=>{Fc(Rn,".tox-tree--directory__label").each(er=>{Bn.getSystem().getByDom(er).each(Ra.focus)})})}),Lt.stop()):fn&&Lt.stop()})])])})},mJ=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:W},N),gJ=(l,N)=>mJ(l,N,[]),L$=Li("directory-label-event-id"),vJ=({directory:l,visible:N,noChildren:W,backstage:fe})=>{const Se=l.menu.map(ft=>N5(ft,"tox-mbtn",fe,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[gJ("chevron-right",fe.shared.providers.icons)]},P$(l.title)];Se.each(ft=>{Be.push(ft)});const qe=ft=>{Fl(ft.element,".tox-tree--directory").each(yt=>{ft.getSystem().getByDom(yt).each(Lt=>{const Ht=!us.isOn(Lt);us.toggle(Lt),sa(ft,"expand-tree-node",{expanded:Ht,node:l.id})})})};return Lh.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(N?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[nm()]:[L$,"keying"]},buttonBehaviours:ei([...N?[Rc.config({})]:[],Ka(L$,[Lo(nm(),(ft,yt)=>{const Lt=yt.event.raw.code==="ArrowRight",Ht=yt.event.raw.code==="ArrowLeft";Lt&&W&&yt.stop(),(Lt||Ht)&&Fl(ft.element,".tox-tree--directory").each(fn=>{ft.getSystem().getByDom(fn).each(Rn=>{!us.isOn(Rn)&&Lt||us.isOn(Rn)&&Ht?(qe(ft),yt.stop()):Ht&&!us.isOn(Rn)&&(Fl(Rn.element,".tox-tree--directory").each(Bn=>{Fc(Bn,".tox-tree--directory__label").each(er=>{Rn.getSystem().getByDom(er).each(Ra.focus)})}),yt.stop())})})})])])})},yJ=({children:l,onLeafAction:N,visible:W,treeId:fe,expandedIds:Se,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:l.map(ft=>ft.type==="leaf"?A9({leaf:ft,selectedId:Be,onLeafAction:N,visible:W,treeId:fe,backstage:qe}):M9({directory:ft,expandedIds:Se,selectedId:Be,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:qe})),behaviours:ei([Tp.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:W}),Fa.config({})])}),I$=Li("directory-event-id"),M9=({directory:l,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:Se,expandedIds:Be,selectedId:qe})=>{const{children:ft}=l,yt=wi(Be),Lt=fn=>ft.map(Rn=>Rn.type==="leaf"?A9({leaf:Rn,selectedId:qe,onLeafAction:N,visible:fn,treeId:fe,backstage:Se}):M9({directory:Rn,expandedIds:yt.get(),selectedId:qe,onLeafAction:N,labelTabstopping:fn,treeId:fe,backstage:Se})),Ht=Be.includes(l.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[vJ({directory:l,visible:W,noChildren:l.children.length===0,backstage:Se}),yJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:N,visible:Ht,treeId:fe,backstage:Se})],behaviours:ei([Ka(I$,[wc((fn,Rn)=>{us.set(fn,Ht)}),Lo("expand-tree-node",(fn,Rn)=>{const{expanded:Bn,node:er}=Rn.event;yt.set(Bn?[...yt.get(),er]:yt.get().filter(cr=>cr!==er))})]),us.config({...l.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(fn,Rn)=>{const Bn=fn.components()[1],er=Lt(Rn);Rn?Tp.grow(Bn):Tp.shrink(Bn),Fa.set(Bn,er)}})])}},bJ=Li("tree-event-id"),xJ=(l,N)=>{const W=l.onLeafAction.getOr(v),fe=l.onToggleExpand.getOr(v),Se=l.defaultExpandedIds,Be=wi(Se),qe=wi(l.defaultSelectedId),ft=Li("tree-id"),yt=(Lt,Ht)=>l.items.map(fn=>fn.type==="leaf"?A9({leaf:fn,selectedId:Lt,onLeafAction:W,visible:!0,treeId:ft,backstage:N}):M9({directory:fn,selectedId:Lt,onLeafAction:W,expandedIds:Ht,labelTabstopping:!0,treeId:ft,backstage:N}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:yt(qe.get(),Be.get()),behaviours:ei([ha.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ka(bJ,[Lo("expand-tree-node",(Lt,Ht)=>{const{expanded:fn,node:Rn}=Ht.event;Be.set(fn?[...Be.get(),Rn]:Be.get().filter(Bn=>Bn!==Rn)),fe(Be.get(),{expanded:fn,node:Rn})})]),Ad.config({channels:{[`update-active-item-${ft}`]:{onReceive:(Lt,Ht)=>{qe.set(I.some(Ht.value)),Fa.set(Lt,yt(I.some(Ht.value),Be.get()))}}}}),Fa.config({})])}};var _J=Object.freeze({__proto__:null,events:(l,N)=>{const fe=l.stream.streams.setup(l,N);return Rl([Lo(l.event,fe),xg(()=>N.cancel())].concat(l.cancelEvent.map(Se=>[Lo(Se,()=>N.cancel())]).getOr([])))}});const D$=l=>{const N=wi(null);return Hd({readState:()=>({timer:N.get()!==null?"set":"unset"}),setTimer:Be=>{N.set(Be)},cancel:()=>{const Be=N.get();Be!==null&&Be.cancel()}})};var wJ=Object.freeze({__proto__:null,throttle:D$,init:l=>l.stream.streams.state(l)});const OJ=(l,N)=>{const W=l.stream,fe=o9(l.onStream,W.delay);return N.setTimer(fe),(Se,Be)=>{fe.throttle(Se,Be),W.stopEvent&&Be.stop()}};var SJ=[In("stream",bn("mode",{throttle:[pn("delay"),Ar("stopEvent",!0),Sl("streams",{setup:OJ,state:D$})]})),Ar("event","input"),Yo("cancelEvent"),Ah("onStream")];const E9=id({fields:SJ,name:"streaming",active:_J,state:wJ}),F5=(l,N,W)=>{const fe=Ei.getValue(W);Ei.setValue(N,fe),z$(N)},B$=(l,N)=>{const W=l.element,fe=F(W),Se=W.dom;Nr(W,"type")!=="number"&&N(Se,fe)},z$=l=>{B$(l,(N,W)=>N.setSelectionRange(W.length,W.length))},kJ=(l,N)=>{B$(l,(W,fe)=>W.setSelectionRange(N,fe.length))},TJ=(l,N,W)=>{if(l.selectsOver){const fe=Ei.getValue(N),Se=l.getDisplayText(fe),Be=Ei.getValue(W);return l.getDisplayText(Be).indexOf(Se)===0?I.some(()=>{F5(l,N,W),kJ(N,Se.length)}):I.none()}else return I.none()},P9=x("alloy.typeahead.itemexecute"),CJ=(l,N,W,fe)=>{const Se=(fn,Rn,Bn)=>{l.previewing.set(!1);const er=Ku.getCoupled(fn,"sandbox");if(Ys.isOpen(er))Xs.getCurrent(er).each(cr=>{ta.getHighlighted(cr).fold(()=>{Bn(cr)},()=>{zm(er,cr.element,"keydown",Rn)})});else{const cr=Xr=>{Xs.getCurrent(Xr).each(Bn)};hS(l,qe(fn),fn,er,fe,cr,Gu.HighlightMenuAndItem).get(v)}},Be=Lz(l),qe=fn=>Rn=>Rn.map(Bn=>{const er=ot(Bn.menus),cr=ve(er,br=>me(br.items,Fr=>Fr.type==="item"));return Ei.getState(fn).update(re(cr,br=>br.data)),Bn}),ft=fn=>Xs.getCurrent(fn),yt="typeaheadevents",Lt=[Ra.config({}),Ei.config({onSetValue:l.onSetValue,store:{mode:"dataset",getDataKey:fn=>F(fn.element),getFallbackEntry:fn=>({value:fn,meta:{}}),setValue:(fn,Rn)=>{G(fn.element,l.model.getDisplayText(Rn))},...l.initialData.map(fn=>Sa("initialValue",fn)).getOr({})}}),E9.config({stream:{mode:"throttle",delay:l.responseTime,stopEvent:!1},onStream:(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");if(Ra.isFocused(fn)&&F(fn.element).length>=l.minChars){const cr=ft(Bn).bind(br=>ta.getHighlighted(br).map(Ei.getValue));l.previewing.set(!0);const Xr=br=>{ft(Bn).each(Fr=>{cr.fold(()=>{l.model.selectsOver&&ta.highlightFirst(Fr)},jr=>{ta.highlightBy(Fr,Ro=>Ei.getValue(Ro).value===jr.value),ta.getHighlighted(Fr).orThunk(()=>(ta.highlightFirst(Fr),I.none()))})})};hS(l,qe(fn),fn,Bn,fe,Xr,Gu.HighlightJustMenu).get(v)}},cancelEvent:N_()}),ha.config({mode:"special",onDown:(fn,Rn)=>(Se(fn,Rn,ta.highlightFirst),I.some(!0)),onEscape:fn=>{const Rn=Ku.getCoupled(fn,"sandbox");return Ys.isOpen(Rn)?(Ys.close(Rn),I.some(!0)):I.none()},onUp:(fn,Rn)=>(Se(fn,Rn,ta.highlightLast),I.some(!0)),onEnter:fn=>{const Rn=Ku.getCoupled(fn,"sandbox"),Bn=Ys.isOpen(Rn);if(Bn&&!l.previewing.get())return ft(Rn).bind(er=>ta.getHighlighted(er)).map(er=>(sa(fn,P9(),{item:er}),!0));{const er=Ei.getValue(fn);return Za(fn,N_()),l.onExecute(Rn,fn,er),Bn&&Ys.close(Rn),I.some(!0)}}}),us.config({toggleClass:l.markers.openClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:fn=>w7(l,fn,{onOpen:()=>us.on(fn),onClose:()=>{l.lazyTypeaheadComp.get().each(Rn=>Qt(Rn.element,"aria-activedescendant")),us.off(fn)}})}}),Ka(yt,[wc(fn=>{l.lazyTypeaheadComp.set(I.some(fn))}),xg(fn=>{l.lazyTypeaheadComp.set(I.none())}),kh(fn=>{const Rn=v;b7(l,qe(fn),fn,fe,Rn,Gu.HighlightMenuAndItem).get(v)}),Lo(P9(),(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");F5(l.model,fn,Rn.event.item),Za(fn,N_()),l.onItemExecute(fn,Bn,Rn.event.item,Ei.getValue(fn)),Ys.close(Bn),z$(fn)})].concat(l.dismissOnBlur?[Lo(kf(),fn=>{const Rn=Ku.getCoupled(fn,"sandbox");Wd(Rn.element).isNone()&&Ys.close(Rn)})]:[]))],Ht={[zp()]:[Ei.name(),E9.name(),yt],...l.eventOrder};return{uid:l.uid,dom:Dz(ws(l,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rd(l.typeaheadBehaviours,Lt)},eventOrder:Ht}},N$=x([Yo("lazySink"),pn("fetch"),Ar("minChars",5),Ar("responseTime",1e3),Ss("onOpen"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),Ar("layouts",I.none()),Ar("eventOrder",{}),Tt("model",{},[Ar("getDisplayText",l=>l.meta!==void 0&&l.meta.text!==void 0?l.meta.text:l.value),Ar("selectsOver",!0),Ar("populateFromBrowse",!0)]),Ss("onSetValue"),kd("onExecute"),Ss("onItemExecute"),Ar("inputClasses",[]),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("matchWidth",!0),Ar("useMinWidth",!1),Ar("dismissOnBlur",!0),h0(["openClass"]),Yo("initialData"),Yo("listRole"),Pd("typeaheadBehaviours",[Ra,Ei,E9,ha,us,Ku]),gn("lazyTypeaheadComp",()=>wi(I.none)),gn("previewing",()=>wi(!0))].concat(CP()).concat(iA())),AJ=x([Jm({schema:[Um()],name:"menu",overrides:l=>({fakeFocus:!0,onHighlightItem:(N,W,fe)=>{l.previewing.get()?l.lazyTypeaheadComp.get().each(Se=>{TJ(l.model,Se,fe).fold(()=>{l.model.selectsOver?(ta.dehighlight(W,fe),l.previewing.set(!0)):l.previewing.set(!1)},Be=>{Be(),l.previewing.set(!1)})}):l.lazyTypeaheadComp.get().each(Se=>{l.model.populateFromBrowse&&F5(l.model,Se,fe),Eo(fe.element,"id").each(Be=>Cr(Se.element,"aria-activedescendant",Be))})},onExecute:(N,W)=>l.lazyTypeaheadComp.get().map(fe=>(sa(fe,P9(),{item:W}),!0)),onHover:(N,W)=>{l.previewing.set(!1),l.lazyTypeaheadComp.get().each(fe=>{l.model.populateFromBrowse&&F5(l.model,fe,W)})}})})]),F$=Zh({name:"Typeahead",configFields:N$(),partFields:AJ(),factory:CJ}),R1=l=>({...l,toCached:()=>R1(l.toCached()),bindFuture:yt=>R1(l.bind(Lt=>Lt.fold(Ht=>Ih.pure(aa.error(Ht)),Ht=>yt(Ht)))),bindResult:yt=>R1(l.map(Lt=>Lt.bind(yt))),mapResult:yt=>R1(l.map(Lt=>Lt.map(yt))),mapError:yt=>R1(l.map(Lt=>Lt.mapError(yt))),foldResult:(yt,Lt)=>l.map(Ht=>Ht.fold(yt,Lt)),withTimeout:(yt,Lt)=>R1(Ih.nu(Ht=>{let fn=!1;const Rn=setTimeout(()=>{fn=!0,Ht(aa.error(Lt()))},yt);l.get(Bn=>{fn||(clearTimeout(Rn),Ht(Bn))})}))}),R9=l=>R1(Ih.nu(l)),L9=l=>R1(Ih.pure(aa.value(l))),PJ={nu:R9,wrap:R1,pure:L9,value:L9,error:l=>R1(Ih.pure(aa.error(l))),fromResult:l=>R1(Ih.pure(l)),fromFuture:l=>R1(l.map(aa.value)),fromPromise:l=>R9(N=>{l.then(W=>{N(aa.value(W))},W=>{N(aa.error(W))})})},$5=(l,N,W=[],fe,Se,Be,qe)=>{const ft=N.fold(()=>({}),Ht=>({action:Ht})),yt={buttonBehaviours:ei([E1.button(()=>!l.enabled||qe.isDisabled()),Id(),Rc.config({}),...Be.map(Ht=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(Ht)}))).toArray(),Ka("button press",[V_("click")])].concat(W)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},Lt=ws(yt,{dom:fe});return ws(Lt,{components:Se})},RJ=(l,N,W,fe=[],Se)=>{const Be=l.tooltip.map(Lt=>({"aria-label":W.translate(Lt)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":Se}},ft=l.icon.map(Lt=>TA(Lt,W.icons)),yt=Kw([ft]);return $5(l,N,fe,qe,yt,l.tooltip,W)},I9=l=>{switch(l){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},L1=(l,N,W,fe=[],Se=[])=>{const Be=W.translate(l.text),qe=l.icon.map(Bn=>TA(Bn,W.icons)),ft=[qe.getOrThunk(()=>Po(Be))],yt=l.buttonType.getOr(!l.primary&&!l.borderless?"secondary":"primary"),fn={tag:"button",classes:[...I9(yt),...qe.isSome()?["tox-button--icon"]:[],...l.borderless?["tox-button--naked"]:[],...Se],attributes:{"aria-label":Be,"data-mce-name":l.text}},Rn=l.icon.map(x(Be));return $5(l,N,fe,fn,ft,Rn,W)},V5=(l,N,W,fe=[],Se=[])=>{const Be=L1(l,I.some(N),W,fe,Se);return Lh.sketch(Be)},U5=(l,N)=>W=>{N==="custom"?sa(W,Ny,{name:l,value:{}}):N==="submit"?Za(W,v5):N==="cancel"?Za(W,cx):console.error("Unknown button type: ",N)},LJ=(l,N)=>N==="menu",D9=(l,N)=>N==="custom"||N==="cancel"||N==="submit",IJ=(l,N)=>N==="togglebutton",B9=(l,N,W)=>{var fe,Se;const Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),qe=jr=>{sa(jr,Ny,{name:l.name,value:{setIcon:Ro=>{Be.map(ko=>ko.getOpt(jr).each(_i=>{Fa.set(_i,[K2(Ro,N.icons)])}))}}})},ft=l.buttonType.getOr(l.primary?"primary":"secondary"),yt={...l,name:(fe=l.name)!==null&&fe!==void 0?fe:"",primary:ft==="primary",tooltip:l.tooltip,enabled:(Se=l.enabled)!==null&&Se!==void 0?Se:!1,borderless:!1},Lt=yt.tooltip.or(l.text).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Ht=I9(ft??"secondary"),fn=l.icon.isSome()&&l.text.isSome(),Rn={tag:"button",classes:[...Ht.concat(l.icon.isSome()?["tox-button--icon"]:[]),...l.active?["tox-button--enabled"]:[],...fn?["tox-button--icon-and-text"]:[]],attributes:{...Lt,...a(W)?{"data-mce-name":W}:{}}},Bn=[],er=N.translate(l.text.getOr("")),cr=Po(er),br=[...Kw([Be.map(jr=>jr.asSpec())]),...l.text.isSome()?[cr]:[]],Fr=$5(yt,I.some(qe),Bn,Rn,br,l.tooltip,N);return Lh.sketch(Fr)},j5=(l,N,W)=>{if(LJ(l,N)){const fe=()=>qe,Se=l,Be={...l,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(l.enabled),v),fetch:pJ(Se.items,fe,W)},qe=ml(N5(Be,"tox-tbtn",W,I.none(),!0,l.text.or(l.tooltip).getOrUndefined()));return qe.asSpec()}else if(D9(l,N)){const fe=U5(l.name,N),Se={...l,borderless:!1};return V5(Se,fe,W.shared.providers,[])}else{if(IJ(l,N))return B9(l,W.shared.providers,l.text.or(l.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",N),new Error("Unknown footer button type")}},z9=(l,N)=>{const W=U5(l.name,"custom");return dF(I.none(),Il.parts.field({factory:Lh,...L1(l,I.some(W),N,[_A(""),P1.self()])}))},DJ={type:"separator"},BJ=l=>({type:"menuitem",value:l.url,text:l.title,meta:{attach:l.attach},onAction:v}),MA=(l,N)=>({type:"menuitem",value:N,text:l,meta:{attach:void 0},onAction:v}),zJ=l=>re(l,BJ),NJ=(l,N)=>me(N,W=>W.type===l),EA=(l,N)=>zJ(NJ(l,N)),FJ=l=>EA("header",l.targets),$J=l=>EA("anchor",l.targets),V$=l=>I.from(l.anchorTop).map(N=>MA("",N)).toArray(),U$=l=>I.from(l.anchorBottom).map(N=>MA("",N)).toArray(),VJ=l=>re(l,N=>MA(N,N)),UJ=l=>se(l,(N,W)=>N.length===0||W.length===0?N.concat(W):N.concat(DJ,W),[]),N9=(l,N)=>{const W=l.toLowerCase();return me(N,fe=>{var Se;const Be=fe.meta!==void 0&&fe.meta.text!==void 0?fe.meta.text:fe.text,qe=(Se=fe.value)!==null&&Se!==void 0?Se:"";return xt(Be.toLowerCase(),W)||xt(qe.toLowerCase(),W)})},jJ=(l,N,W)=>{var fe,Se;const Be=Ei.getValue(N),qe=(Se=(fe=Be==null?void 0:Be.meta)===null||fe===void 0?void 0:fe.text)!==null&&Se!==void 0?Se:Be.value;return W.getLinkInformation().fold(()=>[],yt=>{const Lt=N9(qe,VJ(W.getHistory(l)));return l==="file"?UJ([Lt,N9(qe,FJ(yt)),N9(qe,ye([V$(yt),$J(yt),U$(yt)]))]):Lt})},F9=Li("aria-invalid"),Bv=(l,N,W,fe)=>{const Se=N.shared.providers,Be=Fr=>{const jr=Ei.getValue(Fr);W.addToHistory(jr.value,l.filetype)},qe={...fe.map(Fr=>({initialData:Fr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":F9,type:"url"},minChars:0,responseTime:0,fetch:Fr=>{const jr=jJ(l.filetype,Fr,W),Ro=OS(jr,A1.BUBBLE_TO_SANDBOX,N,{isHorizontalMenu:!1,search:I.none()});return Ih.pure(Ro)},getHotspot:Fr=>er.getOpt(Fr),onSetValue:(Fr,jr)=>{Fr.hasConfigured(Dv)&&Dv.run(Fr).get(v)},typeaheadBehaviours:ei([...W.getValidationHandler().map(Fr=>Dv.config({getRoot:jr=>Zr(jr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(jr,Ro)=>{Ht.getOpt(jr).each(ko=>{Cr(ko.element,"title",Se.translate(Ro))})}},validator:{validate:jr=>{const Ro=Ei.getValue(jr);return PJ.nu(ko=>{Fr({type:l.filetype,url:Ro.value},_i=>{if(_i.status==="invalid"){const Pi=aa.error(_i.message);ko(Pi)}else{const Pi=aa.value(_i.message);ko(Pi)}})})},validateOnLoad:!1}})).toArray(),he.config({disabled:()=>!l.enabled||Se.isDisabled()}),Rc.config({}),Ka("urlinput-events",[Lo(vg(),Fr=>{const jr=F(Fr.element),Ro=jr.trim();Ro!==jr&&G(Fr.element,Ro),l.filetype==="file"&&sa(Fr,xm,{name:l.name})}),Lo(s0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)}),Lo(l0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)})])]),eventOrder:{[vg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Fr=>Fr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:N.shared.getSink,parts:{menu:Xk(!1,1,"normal")},onExecute:(Fr,jr,Ro)=>{sa(jr,v5,{})},onItemExecute:(Fr,jr,Ro,ko)=>{Be(Fr),sa(Fr,xm,{name:l.name})}},ft=Il.parts.field({...qe,factory:F$}),yt=l.label.map(Fr=>H2(Fr,Se)),Ht=ml(((Fr,jr,Ro=Fr,ko=Fr)=>Bg(Ro,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Fr],attributes:{title:Se.translate(ko),"aria-live":"polite",...jr.fold(()=>({}),_i=>({id:_i}))}},Se.icons))("invalid",I.some(F9),"warning")),fn=ml({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ht.asSpec()]}),Rn=W.getUrlPicker(l.filetype),Bn=Li("browser.url.event"),er=ml({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,fn.asSpec()],behaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled()})])}),cr=ml(V5({name:l.name,icon:I.some("browse"),text:l.picker_text.or(l.label).getOr(""),enabled:l.enabled,primary:!1,buttonType:I.none(),borderless:!0},Fr=>Za(Fr,Bn),Se,[],["tox-browse-url"])),Xr=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ye([[er.asSpec()],Rn.map(()=>cr.asSpec()).toArray()])}),br=Fr=>{Xs.getCurrent(Fr).each(jr=>{const Ro=Ei.getValue(jr),ko={fieldname:l.name,...Ro};Rn.each(_i=>{_i(ko).get(Pi=>{Ei.setValue(jr,Pi),sa(Fr,xm,{name:l.name})})})})};return Il.sketch({dom:TG(),components:yt.toArray().concat([Xr()]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled(),onDisabled:Fr=>{Il.getField(Fr).each(he.disable),cr.getOpt(Fr).each(he.disable)},onEnabled:Fr=>{Il.getField(Fr).each(he.enable),cr.getOpt(Fr).each(he.enable)}}),Id(),Ka("url-input-events",[Lo(Bn,br)])])})},$9=(l,N)=>{const W=yP(l.icon,N.icons);return Iv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${l.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:l.url?void 0:W},components:l.url?[Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:W,attributes:{title:N.translate(l.iconTooltip)}},action:fe=>sa(fe,Ny,{name:"alert-banner",value:l.url}),buttonBehaviours:ei([P6()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:N.translate(l.text)}}]})},QJ=(l,N)=>{l.dom.checked=N},HJ=l=>l.dom.checked,ZJ=(l,N,W)=>{const fe=yt=>(yt.element.dom.click(),I.some(!0)),Se=Il.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:ei([P1.self(),he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Zr(yt.element).each(Lt=>uc(Lt,"tox-checkbox--disabled"))},onEnabled:yt=>{Zr(yt.element).each(Lt=>Zc(Lt,"tox-checkbox--disabled"))}}),Rc.config({}),Ra.config({}),t9(W,HJ,QJ),ha.config({mode:"special",onEnter:fe,onSpace:fe,stopSpaceKeyup:!0}),Ka("checkbox-events",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),Be=Il.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Po(N.translate(l.label))],behaviours:ei([bS.config({})])}),qe=yt=>Bg(yt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+yt]},N.icons),ft=ml({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Il.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[Se,ft.asSpec(),Be],fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id()])})},qJ=(l,N)=>{const W=["tox-form__group",...l.stretched?["tox-form__group--stretched"]:[]],fe=Ka("htmlpanel",[wc(Se=>{l.onInit(Se.element.dom)})]);return l.presets==="presentation"?Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html},containerBehaviours:ei([Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Se=>{qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element)).each(Be=>{Eo(Be,"data-mce-tooltip").each(qe=>{Vu.setComponents(Se,N.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:Se=>({type:"node",node:qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element).filter(Be=>Eo(Be,"data-mce-tooltip").isSome())),root:Se.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),fe])}):Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html,attributes:{role:"document"}},containerBehaviours:ei([Rc.config({}),Ra.config({}),fe])})},Dd=l=>(N,W,fe,Se,Be)=>Ge(W,"name").fold(()=>l(W,Se,I.none(),Be),qe=>N.field(qe,l(W,Se,Ge(fe,qe),Be))),j$=l=>(N,W,fe,Se,Be)=>{const qe=ws(W,{source:"dynamic"});return Dd(l)(N,qe,fe,Se,Be)},Q$={bar:Dd((l,N)=>_G(l,N.shared)),collection:Dd((l,N,W)=>yS(l,N.shared.providers,W)),alertbanner:Dd((l,N)=>$9(l,N.shared.providers)),input:Dd((l,N,W)=>iJ(l,N.shared.providers,W)),textarea:Dd((l,N,W)=>aJ(l,N.shared.providers,W)),label:Dd((l,N,W,fe)=>d$(l,N.shared,fe)),iframe:j$((l,N,W)=>$K(l,N.shared.providers,W)),button:Dd((l,N)=>z9(l,N.shared.providers)),checkbox:Dd((l,N,W)=>ZJ(l,N.shared.providers,W)),colorinput:Dd((l,N,W)=>DG(l,N.shared,N.colorinput,W)),colorpicker:Dd((l,N,W)=>EK(l,N.shared.providers,W)),dropzone:Dd((l,N,W)=>r9(l,N.shared.providers,W)),grid:Dd((l,N)=>LK(l,N.shared)),listbox:Dd((l,N,W)=>y$(l,N,W)),selectbox:Dd((l,N,W)=>JK(l,N.shared.providers,W)),sizeinput:Dd((l,N)=>w$(l,N.shared.providers)),slider:Dd((l,N,W)=>O$(l,N.shared.providers,W)),urlinput:Dd((l,N,W)=>Bv(l,N,N.urlinput,W)),customeditor:Dd(r$),htmlpanel:Dd((l,N)=>qJ(l,N.shared.providers)),imagepreview:Dd((l,N,W)=>f9(l,W)),table:Dd((l,N)=>S$(l,N.shared.providers)),tree:Dd((l,N)=>xJ(l,N)),panel:Dd((l,N)=>XK(l,N))},Ufe={field:(l,N)=>N,record:x([])},WJ=(l,N,W,fe,Se)=>{const Be=ws(fe,{shared:{interpreter:qe=>vh(l,qe,W,Be,Se)}});return vh(l,N,W,Be,Se)},vh=(l,N,W,fe,Se)=>Ge(Q$,N.type).fold(()=>(console.error(`Unknown factory type "${N.type}", defaulting to container: `,N),N),Be=>Be(l,N,W,fe,Se)),PA=(l,N,W,fe)=>vh(Ufe,l,N,W,fe),t_="layout-inset",kS=l=>l.x,H$=(l,N)=>l.x+l.width/2-N.width/2,V9=(l,N)=>l.x+l.width-N.width,U9=l=>l.y,j9=(l,N)=>l.y+l.height-N.height,Z$=(l,N)=>l.y+l.height/2-N.height/2,RA=(l,N,W)=>xl(V9(l,N),j9(l,N),W.insetSouthwest(),ni(),"southwest",mc(l,{right:0,bottom:3}),t_),LA=(l,N,W)=>xl(kS(l),j9(l,N),W.insetSoutheast(),fu(),"southeast",mc(l,{left:1,bottom:3}),t_),Q5=(l,N,W)=>xl(V9(l,N),U9(l),W.insetNorthwest(),_l(),"northwest",mc(l,{right:0,top:2}),t_),TS=(l,N,W)=>xl(kS(l),U9(l),W.insetNortheast(),Us(),"northeast",mc(l,{left:1,top:2}),t_),ng=(l,N,W)=>xl(H$(l,N),U9(l),W.insetNorth(),Wc(),"north",mc(l,{top:2}),t_),CS=(l,N,W)=>xl(H$(l,N),j9(l,N),W.insetSouth(),Yc(),"south",mc(l,{bottom:3}),t_),Q9=(l,N,W)=>xl(V9(l,N),Z$(l,N),W.insetEast(),Ru(),"east",mc(l,{right:0}),t_),q$=(l,N,W)=>xl(kS(l),Z$(l,N),W.insetWest(),$l(),"west",mc(l,{left:1}),t_),W$=l=>{switch(l){case"north":return ng;case"northeast":return TS;case"northwest":return Q5;case"south":return CS;case"southeast":return LA;case"southwest":return RA;case"east":return Q9;case"west":return q$}},Y$=(l,N,W,fe,Se)=>cw(fe).map(W$).getOr(ng)(l,N,W,fe,Se),YJ=l=>{switch(l){case"north":return CS;case"northeast":return LA;case"northwest":return RA;case"south":return ng;case"southeast":return TS;case"southwest":return Q5;case"east":return q$;case"west":return Q9}},X$=(l,N,W,fe,Se)=>cw(fe).map(YJ).getOr(ng)(l,N,W,fe,Se),IA={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},jfe=(l,N,W)=>{const Se={maxHeightFunction:v1()},Be=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),bubble:wp(12,12,IA),layouts:{onRtl:()=>[TS],onLtr:()=>[Q5]},overrides:Se}),qe=()=>({type:"hotspot",hotspot:N(),bubble:wp(-12,12,IA),layouts:{onRtl:()=>[Lu,$c,Iu],onLtr:()=>[$c,Lu,Iu]},overrides:Se});return()=>W()?Be():qe()},XJ=(l,N,W,fe)=>{const Be={maxHeightFunction:v1()},qe=()=>({type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(12,12,IA),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]},overrides:Be}),ft=()=>l?{type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(0,-nf(N()),IA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be}:{type:"hotspot",hotspot:W(),bubble:wp(0,0,IA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be};return()=>fe()?qe():ft()},GJ=(l,N,W)=>{const fe=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]}}),Se=()=>({type:"hotspot",hotspot:N(),layouts:{onRtl:()=>[Iu],onLtr:()=>[Iu]}});return()=>W()?fe():Se()},KJ=(l,N)=>()=>({type:"selection",root:N(),getSelection:()=>{const W=l.selection.getRng(),fe=l.model.table.getSelectedCells();if(fe.length>1){const Se=fe[0],Be=fe[fe.length-1],qe={firstCell:Nt.fromDom(Se),lastCell:Nt.fromDom(Be)};return I.some(qe)}return I.some(Ay.range(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}}),G$=l=>N=>({type:"node",root:l(),node:N}),H9=(l,N,W,fe)=>{const Se=tS(l),Be=()=>Nt.fromDom(l.getBody()),qe=()=>Nt.fromDom(l.getContentAreaContainer()),ft=()=>Se||!fe();return{inlineDialog:jfe(qe,N,ft),inlineBottomDialog:XJ(l.inline,qe,W,ft),banner:GJ(qe,N,ft),cursor:KJ(l,Be),node:G$(Be)}},JJ=l=>(N,W)=>{HN(l)(N,W)},eee=l=>()=>BN(l),K$=l=>N=>rA(l,N),tee=l=>N=>DN(l,N),nee=l=>({colorPicker:JJ(l),hasCustomColors:eee(l),getColors:K$(l),getColorCols:tee(l)}),ree=l=>()=>lz(l),oee=l=>({isDraggableModal:ree(l)}),Z9=l=>{const N=wi($k(l)?"bottom":"top");return{isPositionedAtTop:()=>N.get()==="top",getDockingMode:N.get,setDockingMode:N.set}},q9=l=>pt(l,"items"),J$=l=>pt(l,"format"),eV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],iee=l=>ht(l,"items"),aee=l=>ht(l,"block"),tV=l=>ht(l,"inline"),see=l=>ht(l,"selector"),H5=l=>se(l,(N,W)=>{if(iee(W)){const fe=H5(W.items);return{customFormats:N.customFormats.concat(fe.customFormats),formats:N.formats.concat([{title:W.title,items:fe.formats}])}}else if(tV(W)||aee(W)||see(W)){const Se=`custom-${n(W.name)?W.name:W.title.toLowerCase()}`;return{customFormats:N.customFormats.concat([{name:Se,format:W}]),formats:N.formats.concat([{title:W.title,format:Se,icon:W.icon}])}}else return{...N,formats:N.formats.concat(W)}},{customFormats:[],formats:[]}),lee=(l,N)=>{const W=H5(N),fe=Se=>{q(Se,Be=>{l.formatter.has(Be.name)||l.formatter.register(Be.name,Be.format)})};return l.formatter?fe(W.customFormats):l.on("init",()=>{fe(W.customFormats)}),W.formats},Z5=l=>GB(l).map(N=>{const W=lee(l,N);return KB(l)?eV.concat(W):W}).getOr(eV),cee=l=>{const N=ke(l);return N.length===1&&X(N,"title")},DA=(l,N,W)=>({...l,type:"formatter",isSelected:N(l.format),getStylePreview:W(l.format)}),AS=(l,N,W,fe)=>{const Se=yt=>DA(yt,W,fe),Be=yt=>{const Lt=ft(yt.items);return{...yt,type:"submenu",getStyleItems:x(Lt)}},qe=yt=>{const Lt=n(yt.name)?yt.name:Li(yt.title),Ht=`custom-${Lt}`,fn={...yt,type:"formatter",format:Ht,isSelected:W(Ht),getStylePreview:fe(Ht)};return l.formatter.register(Lt,fn),fn},ft=yt=>re(yt,Lt=>q9(Lt)?Be(Lt):J$(Lt)?Se(Lt):cee(Lt)?{...Lt,type:"separator"}:qe(Lt));return ft(N)},nV=l=>{const N=ft=>()=>l.formatter.match(ft),W=ft=>()=>{const yt=l.formatter.get(ft);return yt!==void 0?I.some({tag:yt.length>0&&(yt[0].inline||yt[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(ft))}):I.none()},fe=wi([]),Se=wi([]),Be=wi(!1);return l.on("PreInit",ft=>{const yt=Z5(l),Lt=AS(l,yt,N,W);fe.set(Lt)}),l.on("addStyleModifications",ft=>{const yt=AS(l,ft.items,N,W);Se.set(yt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:fe.get(),yt=Se.get();return ft.concat(yt)}}},uee=l=>{let fe=0;const Se=()=>fe>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[Po(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>Se()?60:300,delayForHide:x(300),exclusive:!0,lazySink:l,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(yt,Lt)=>{fe++,ft.onShow&&ft.onShow(yt,Lt)},onHide:(yt,Lt)=>{fe--,ft.onHide&&ft.onHide(yt,Lt)},onSetup:ft.onSetup}),getComponents:Be}},rV=l=>a(l)&&l.nodeType===1,oV=hx.trim,W9=l=>N=>!!(rV(N)&&(N.contentEditable===l||N.getAttribute("data-mce-contenteditable")===l)),fee=W9("true"),Y9=W9("false"),q5=(l,N,W,fe,Se)=>({type:l,title:N,url:W,level:fe,attach:Se}),dee=l=>{let N=l;for(;N=N.parentNode;){const W=N.contentEditable;if(W&&W!=="inherit")return fee(N)}return!1},hee=(l,N)=>re(Yd(Nt.fromDom(N),l),W=>W.dom),sO=l=>l.innerText||l.textContent,iV=l=>l.id?l.id:Li("h"),pee=l=>l&&l.nodeName==="A"&&(l.id||l.name)!==void 0,aV=l=>pee(l)&&zA(l),BA=l=>l&&/^(H[1-6])$/.test(l.nodeName),zA=l=>dee(l)&&!Y9(l),mee=l=>BA(l)&&zA(l),gee=l=>BA(l)?parseInt(l.nodeName.substr(1),10):0,vee=l=>{var N;const W=iV(l),fe=()=>{l.id=W};return q5("header",(N=sO(l))!==null&&N!==void 0?N:"","#"+W,gee(l),fe)},X9=l=>{const N=l.id||l.name,W=sO(l);return q5("anchor",W||"#"+N,"#"+N,0,v)},yee=l=>re(me(l,mee),vee),bee=l=>re(me(l,aV),X9),xee=l=>hee("h1,h2,h3,h4,h5,h6,a:not([href])",l),_ee=l=>oV(l.title).length>0,wee={find:l=>{const N=xee(l);return me(yee(N).concat(bee(N)),_ee)}},NA="tinymce-url-history",G9=5,sV=l=>n(l)&&/^https?/.test(l),W5=l=>i(l)&&l.length<=G9&&_e(l,sV),lV=l=>u(l)&&tt(l,N=>!W5(N)).isNone(),cV=()=>{const l=nO.getItem(NA);if(l===null)return{};let N;try{N=JSON.parse(l)}catch(W){if(W instanceof SyntaxError)return console.log("Local storage "+NA+" was not valid JSON",W),{};throw W}return lV(N)?N:(console.log("Local storage "+NA+" was not valid format",N),{})},K9=l=>{if(!lV(l))throw new Error(`Bad format for history: +`+JSON.stringify(l));nO.setItem(NA,JSON.stringify(l))},uV=l=>{const N=cV();return Ge(N,l).getOr([])},Oee=(l,N)=>{if(!sV(l))return;const W=cV(),fe=Ge(W,N).getOr([]),Se=me(fe,Be=>Be!==l);W[N]=[l].concat(Se).slice(0,G9),K9(W)},fV=l=>!!l,See=l=>Ue(hx.makeMap(l,/[, ]/),fV),J9=l=>I.from(iz(l)),kee=l=>{const N=I.from(QE(l)).filter(fV).map(See);return J9(l).fold(D,W=>N.fold(k,fe=>ke(fe).length>0?fe:!1))},Tee=(l,N)=>{const W=kee(l);return w(W)?W?J9(l):I.none():W[N]?J9(l):I.none()},Cee=(l,N)=>Tee(l,N).map(W=>fe=>Ih.nu(Se=>{const Be=(ft,yt)=>{if(!n(ft))throw new Error("Expected value to be string");if(yt!==void 0&&!u(yt))throw new Error("Expected meta to be a object");Se({value:ft,meta:yt})},qe={filetype:N,fieldname:fe.fieldname,...I.from(fe.meta).getOr({})};W.call(l,Be,fe.value,qe)})),dV=l=>I.from(l).filter(n).getOrUndefined(),Aee=l=>HE(l)?I.some({targets:wee.find(l.getBody()),anchorTop:dV(sz(l)),anchorBottom:dV(b6(l))}):I.none(),Hfe=l=>I.from(az(l)),Mee=l=>({getHistory:uV,addToHistory:Oee,getLinkInformation:()=>Aee(l),getValidationHandler:()=>Hfe(l),getUrlPicker:N=>Cee(l,N)}),hV=(l,N,W,fe)=>{const Se=wi(!1),Be=Z9(N),qe={icons:()=>N.ui.registry.getAll().icons,menuItems:()=>N.ui.registry.getAll().menuItems,translate:Dg.translate,isDisabled:()=>N.mode.isReadOnly()||!N.ui.isEnabled(),getOption:N.options.get,tooltips:uee(l.dialog)},ft=Mee(N),yt=nV(N),Lt=nee(N),Ht=oee(N),fn=()=>Se.get(),Rn=br=>Se.set(br),Bn={shared:{providers:qe,anchors:H9(N,W,fe,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:yt,colorinput:Lt,dialog:Ht,isContextMenuOpen:fn,setContextMenuState:Rn},er=br=>I.none(),cr={...Bn,shared:{...Bn.shared,interpreter:br=>PA(br,{},cr,er),getSink:l.popup}},Xr={...Bn,shared:{...Bn.shared,interpreter:br=>PA(br,{},Xr,er),getSink:l.dialog}};return{popup:cr,dialog:Xr}},pV=(l,N,W)=>{const fe=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastEvent(Ao,$i)})},Se=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastOn([Ao],$i)})},Be=Ao=>Se(_1(),{target:Ao.target}),qe=Ac(),ft=ud(qe,"touchstart",Be),yt=ud(qe,"touchmove",Ao=>fe(ly(),Ao)),Lt=ud(qe,"touchend",Ao=>fe(yg(),Ao)),Ht=ud(qe,"mousedown",Be),fn=ud(qe,"mouseup",Ao=>{Ao.raw.button===0&&Se(M3(),{target:Ao.target})}),Rn=Ao=>Se(_1(),{target:Nt.fromDom(Ao.target)}),Bn=Ao=>{Ao.button===0&&Se(M3(),{target:Nt.fromDom(Ao.target)})},er=()=>{q(l.editorManager.get(),Ao=>{l!==Ao&&Ao.dispatch("DismissPopups",{relatedTarget:l})})},cr=Ao=>fe(Im(),a2(Ao)),Xr=Ao=>{Se(qb(),{}),fe(Dm(),a2(Ao))},br=kr(Nt.fromDom(l.getElement())),Fr=i2(br,"scroll",Ao=>{requestAnimationFrame(()=>{const $i=l.getContainer();if($i!=null){const Xi=ix(l,N.element).map(ks=>[ks.element,...ks.others]).getOr([]);te(Xi,ks=>_o(ks,Ao.target))&&(l.dispatch("ElementScroll",{target:Ao.target.dom}),fe(Dx(),Ao))}})}),jr=()=>Se(qb(),{}),Ro=Ao=>{Ao.state&&Se(_1(),{target:Nt.fromDom(l.getContainer())})},ko=Ao=>{Se(_1(),{target:Nt.fromDom(Ao.relatedTarget.getContainer())})},_i=Ao=>l.dispatch("focusin",Ao),Pi=Ao=>l.dispatch("focusout",Ao);l.on("PostRender",()=>{l.on("click",Rn),l.on("tap",Rn),l.on("mouseup",Bn),l.on("mousedown",er),l.on("ScrollWindow",cr),l.on("ResizeWindow",Xr),l.on("ResizeEditor",jr),l.on("AfterProgressState",Ro),l.on("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.addEventListener("focusin",_i),Ao.element.dom.addEventListener("focusout",Pi)})}),l.on("remove",()=>{l.off("click",Rn),l.off("tap",Rn),l.off("mouseup",Bn),l.off("mousedown",er),l.off("ScrollWindow",cr),l.off("ResizeWindow",Xr),l.off("ResizeEditor",jr),l.off("AfterProgressState",Ro),l.off("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.removeEventListener("focusin",_i),Ao.element.dom.removeEventListener("focusout",Pi)}),Ht.unbind(),ft.unbind(),yt.unbind(),Lt.unbind(),fn.unbind(),Fr.unbind()}),l.on("detach",()=>{q([N,...W],tk),q([N,...W],Ao=>Ao.destroy())})},qf=XC,zv=ED,Eee=x([Ar("shell",!1),pn("makeItem"),Ar("setupItem",v),Km.field("listBehaviours",[Fa])]),Pee=mm({name:"items",overrides:()=>({behaviours:ei([Fa.config({})])})}),Ree=x([Pee]),Lee=x("CustomList"),Iee=(l,N,W,fe)=>{const Se=(ft,yt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Lt=>{const Ht=Fa.contents(Lt),fn=yt.length,Rn=fn-Ht.length,Bn=Rn>0?Z(Rn,()=>l.makeItem()):[],er=Ht.slice(fn);q(er,Xr=>Fa.remove(Lt,Xr)),q(Bn,Xr=>Fa.append(Lt,Xr));const cr=Fa.contents(Lt);q(cr,(Xr,br)=>{l.setupItem(ft,Xr,yt[br],br)})})},Be=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N},qe=ft=>l.shell?I.some(ft):Jo(ft,l,"items");return{uid:l.uid,dom:l.dom,components:Be.components,behaviours:Rd(l.listBehaviours,Be.behaviours),apis:{setItems:Se}}},mV=Zh({name:Lee(),configFields:Eee(),partFields:Ree(),factory:Iee,apis:{setItems:(l,N,W)=>{l.setItems(N,W)}}}),lO=x([pn("dom"),Ar("shell",!0),Pd("toolbarBehaviours",[Fa])]),Bee=x([mm({name:"groups",overrides:()=>({behaviours:ei([Fa.config({})])})})]),gV=(l,N,W,fe)=>{const Se=(ft,yt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Lt=>{Fa.set(Lt,yt)})},Be=ft=>l.shell?I.some(ft):Jo(ft,l,"groups"),qe=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N};return{uid:l.uid,dom:l.dom,components:qe.components,behaviours:Rd(l.toolbarBehaviours,qe.behaviours),apis:{setGroups:Se,refresh:v},domModification:{attributes:{role:"group"}}}},Nv=Zh({name:"Toolbar",configFields:lO(),partFields:Bee(),factory:gV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)}}}),zee=v,Nee=D,n_=x([]);var vV=Object.freeze({__proto__:null,setup:zee,isDocked:Nee,getBehaviours:n_});const cO=x(Li("toolbar-height-change")),D0={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},eR="tox-tinymce--toolbar-sticky-on",tR="tox-tinymce--toolbar-sticky-off",yV=(l,N)=>{const W=Mo(N),Se=ar(N).dom.innerHeight,Be=yc(W),qe=Nt.fromDom(l.elm),ft=bc(qe),yt=il(qe),Lt=ft.y,Ht=Lt+yt,fn=Tc(N),Rn=il(N),Bn=fn.top,er=Bn+Rn,cr=Math.abs(Bn-Be.top)<2,Xr=Math.abs(er-(Be.top+Se))<2;if(cr&&LtBn){const br=Lt-Se+yt+Rn;Cc(Be.left,br,W)}},nR=(l,N)=>X(fc.getModes(l),N),rR=l=>{const N=fe=>nf(fe)+(parseInt(Di(fe,"margin-top"),10)||0)+(parseInt(Di(fe,"margin-bottom"),10)||0),W=l.element;Zr(W).each(fe=>{const Se="padding-"+fc.getModes(l)[0];if(fc.isDocked(l)){const Be=_s(fe);xr(W,"width",Be+"px"),xr(fe,Se,N(W)+"px")}else zi(W,"width"),zi(fe,Se)})},bV=(l,N)=>{N?(Zc(l,D0.fadeOutClass),Og(l,[D0.transitionClass,D0.fadeInClass])):(Zc(l,D0.fadeInClass),Og(l,[D0.fadeOutClass,D0.transitionClass]))},xV=(l,N)=>{const W=Nt.fromDom(l.getContainer());N?(uc(W,eR),Zc(W,tR)):(uc(W,tR),Zc(W,eR))},Fee=(l,N)=>{const W=Mo(N);um(W).filter(fe=>!_o(N,fe)).filter(fe=>_o(fe,Nt.fromDom(W.dom.body))||$o(l,fe)).each(()=>Md(N))},$ee=(l,N)=>Wd(l).orThunk(()=>N().toOptional().bind(W=>Wd(W.element))),MS=(l,N,W)=>{l.inline||(N.header.isPositionedAtTop()||l.on("ResizeEditor",()=>{W().each(fc.reset)}),l.on("ResizeWindow ResizeEditor",()=>{W().each(rR)}),l.on("SkinLoaded",()=>{W().each(fe=>{fc.isDocked(fe)?fc.reset(fe):fc.refresh(fe)})}),l.on("FullscreenStateChanged",()=>{W().each(fc.reset)})),l.on("AfterScrollIntoView",fe=>{W().each(Se=>{fc.refresh(Se);const Be=Se.element;VD(Be)&&yV(fe,Be)})}),l.on("PostRender",()=>{xV(l,!1)})},Y5=l=>l().map(fc.isDocked).getOr(!1),oR=()=>[Ad.config({channels:{[cO()]:{onReceive:rR}}})],_V=(l,N)=>{const W=ds(),fe=N.getSink,Se=ft=>{fe().each(yt=>ft(yt.element))},Be=ft=>{l.inline||rR(ft),xV(l,fc.isDocked(ft)),ft.getSystem().broadcastOn([qb()],{}),fe().each(yt=>yt.getSystem().broadcastOn([qb()],{}))},qe=l.inline?[]:oR();return[Ra.config({}),fc.config({contextual:{lazyContext:ft=>{const yt=nf(ft.element),Lt=l.inline?l.getContentAreaContainer():l.getContainer();return I.from(Lt).map(Ht=>{const fn=cl(Nt.fromDom(Ht));return ix(l,ft.element).fold(()=>{const Bn=fn.height-yt,er=fn.y+(nR(ft,"top")?0:yt);return vs(fn.x,er,fn.width,Bn)},Bn=>{const er=nc(fn,Hw(Bn)),cr=nR(ft,"top")?er.y:er.y+yt;return vs(er.x,cr,er.width,er.height-yt)})})},onShow:()=>{Se(ft=>bV(ft,!0))},onShown:ft=>{Se(yt=>Oc(yt,[D0.transitionClass,D0.fadeInClass])),W.get().each(yt=>{Fee(ft.element,yt),W.clear()})},onHide:ft=>{$ee(ft.element,fe).fold(W.clear,W.set),Se(yt=>bV(yt,!1))},onHidden:()=>{Se(ft=>Oc(ft,[D0.transitionClass]))},...D0},lazyViewport:ft=>ix(l,ft.element).fold(()=>{const Lt=ts(),Ht=rz(l),fn=Lt.y+(nR(ft,"top")?Ht:0),Rn=Lt.height-(nR(ft,"bottom")?Ht:0);return{bounds:vs(Lt.x,fn,Lt.width,Rn),optScrollEnv:I.none()}},Lt=>({bounds:Hw(Lt),optScrollEnv:I.some({currentScrollTop:Lt.element.dom.scrollTop,scrollElmTop:Tc(Lt.element).top})})),modes:[N.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var Vee=Object.freeze({__proto__:null,setup:MS,isDocked:Y5,getBehaviours:_V});const iR=l=>{const N=l.editor,W=l.sticky?_V:n_;return{uid:l.uid,dom:l.dom,components:l.components,behaviours:ei(W(N,l.sharedBackstage))}},Uee=Si([pf,In("items",rd([It([U6,Go("items",ne)]),ne]))].concat(lp)),X5=l=>Rt("GroupToolbarButton",Uee,l),wV=[jo("text"),jo("tooltip"),jo("icon"),ns("search",!1,rd([V,Si([jo("placeholder")])],l=>w(l)?l?I.some({placeholder:I.none()}):I.none():I.some(l))),po("fetch"),ys("onSetup",()=>v)],OV=Si([pf,...wV]),SV=l=>Rt("menubutton",OV,l),jee=Si([pf,iS,E0,lx,zY,LY,Xw,rl("presets","normal",["normal","color","listpreview"]),qz(1),V2,Zz]),Qee=l=>Rt("SplitButton",jee,l);var aR=Qp({factory:(l,N)=>{const W=(Se,Be)=>{const qe=re(Be,ft=>{const yt={type:"menubutton",text:ft.text,fetch:Ht=>{Ht(ft.getItems())}},Lt=SV(yt).mapError(Ht=>dn(Ht)).getOrDie();return N5(Lt,"tox-mbtn",N.backstage,I.some("menuitem"))});Fa.set(Se,qe)},fe={focus:ha.focusIn,setMenus:W};return{uid:l.uid,dom:l.dom,components:[],behaviours:ei([Fa.config({}),Ka("menubar-events",[wc(Se=>{l.onSetup(Se)}),Lo(wu(),(Se,Be)=>{qa(Se.element,".tox-mbtn--active").each(qe=>{Sc(Be.event.target,".tox-mbtn").each(ft=>{_o(qe,ft)||Se.getSystem().getByDom(qe).each(yt=>{Se.getSystem().getByDom(ft).each(Lt=>{L0.expand(Lt),L0.close(yt),Ra.focus(Lt)})})})})}),Lo(q1(),(Se,Be)=>{Be.event.prevFocus.bind(qe=>Se.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>Se.getSystem().getByDom(ft).toOptional()).each(ft=>{L0.isOpen(qe)&&(L0.expand(ft),L0.close(qe))})})})]),ha.config({mode:"flow",selector:".tox-mbtn",onEscape:Se=>(l.onEscape(Se),I.some(!0))}),Rc.config({})]),apis:fe,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[pn("dom"),pn("uid"),pn("onEscape"),pn("backstage"),Ar("onSetup",v)],apis:{focus:(l,N)=>{l.focus(N)},setMenus:(l,N,W)=>{l.setMenus(N,W)}}});const kV="⚡️Upgrade",TV="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",sR=l=>({uid:l.uid,dom:l.dom,components:[{dom:{tag:"a",attributes:{href:TV,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:kV}}]}),CV="container",FA=[Pd("slotBehaviours",[])],G5=l=>"",AV=l=>{const N=(()=>{const Be=[];return{slot:(ft,yt)=>(Be.push(ft),ZC(CV,G5(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:G5(Be)}));return Dy(CV,FA,Se,Hee,W)},Hee=(l,N)=>{const W=cr=>Lw(l),fe=(cr,Xr)=>Jo(cr,l,Xr),Se=(cr,Xr)=>(br,Fr)=>Jo(br,l,Fr).map(jr=>cr(jr,Fr)).getOr(Xr),Be=cr=>(Xr,br)=>{q(br,Fr=>cr(Xr,Fr))},qe=(cr,Xr)=>Nr(cr.element,"aria-hidden")!=="true",ft=(cr,Xr)=>{if(!qe(cr)){const br=cr.element;zi(br,"display"),Qt(br,"aria-hidden"),sa(cr,$_(),{name:Xr,visible:!0})}},yt=(cr,Xr)=>{if(qe(cr)){const br=cr.element;xr(br,"display","none"),Cr(br,"aria-hidden","true"),sa(cr,$_(),{name:Xr,visible:!1})}},Lt=Se(qe,!1),Ht=Se(yt),fn=Be(Ht),Rn=cr=>fn(cr,W()),Bn=Se(ft),er={getSlotNames:W,getSlot:fe,isShowing:Lt,hideSlot:Ht,hideAllSlots:Rn,showSlot:Bn};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.slotBehaviours),apis:er}},up={...Ue({getSlotNames:(l,N)=>l.getSlotNames(N),getSlot:(l,N,W)=>l.getSlot(N,W),isShowing:(l,N,W)=>l.isShowing(N,W),hideSlot:(l,N,W)=>l.hideSlot(N,W),hideAllSlots:(l,N)=>l.hideAllSlots(N),showSlot:(l,N,W)=>l.showSlot(N,W)},l=>Tb(l)),sketch:AV},Zee=Si([E0,iS,ys("onShow",v),ys("onHide",v),Xw]),lR=l=>Rt("sidebar",Zee,l),cR=l=>{const{sidebars:N}=l.ui.registry.getAll();q(ke(N),W=>{const fe=N[W],Se=()=>St(I.from(l.queryCommandValue("ToggleSidebar")),W);l.ui.registry.addToggleButton(W,{icon:fe.icon,tooltip:fe.tooltip,onAction:Be=>{l.execCommand("ToggleSidebar",!1,W),Be.setActive(Se())},onSetup:Be=>{Be.setActive(Se());const qe=()=>Be.setActive(Se());return l.on("ToggleSidebar",qe),()=>{l.off("ToggleSidebar",qe)}}})})},qee=l=>({element:()=>l.element.dom}),uR=(l,N)=>{const W=re(ke(N),fe=>{const Se=N[fe],Be=Mt(lR(Se));return{name:fe,getApi:qee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return re(W,fe=>{const Se=wi(v);return l.slot(fe.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:lS.unnamedEvents([cp(fe,Se),j2(fe,Se),Lo($_(),(Be,qe)=>{const ft=qe.event;ce(W,Lt=>Lt.name===ft.name).each(Lt=>{(ft.visible?Lt.onShow:Lt.onHide)(Lt.getApi(Be))})})])})})},Wee=l=>up.sketch(N=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:uR(N,l),slotBehaviours:lS.unnamedEvents([wc(W=>up.hideAllSlots(W))])})),Yee=(l,N,W)=>{Xs.getCurrent(l).each(Se=>{Fa.set(Se,[Wee(N)]);const Be=W==null?void 0:W.toLowerCase();n(Be)&&ht(N,Be)&&Xs.getCurrent(Se).each(qe=>{up.showSlot(qe,Be),Tp.immediateGrow(Se),zi(Se.element,"width"),$A(l.element,"region")})})},$A=(l,N)=>{Cr(l,"role",N)},Xee=(l,N)=>{Xs.getCurrent(l).each(fe=>{Xs.getCurrent(fe).each(Be=>{Tp.hasGrown(fe)?up.isShowing(Be,N)?(Tp.shrink(fe),$A(l.element,"presentation")):(up.hideAllSlots(Be),up.showSlot(Be,N),$A(l.element,"region")):(up.hideAllSlots(Be),up.showSlot(Be,N),Tp.grow(fe),$A(l.element,"region"))})})},Gee=l=>Xs.getCurrent(l).bind(W=>Tp.isGrowing(W)||Tp.hasGrown(W)?Xs.getCurrent(W).bind(Be=>ce(up.getSlotNames(Be),qe=>up.isShowing(Be,qe))):I.none()),MV=Li("FixSizeEvent"),EV=Li("AutoSizeEvent"),PV=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:ei([Rc.config({}),Ra.config({}),Tp.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:N=>{Xs.getCurrent(N).each(up.hideAllSlots),Za(N,EV)},onGrown:N=>{Za(N,EV)},onStartGrow:N=>{sa(N,MV,{width:Ia(N.element,"width").getOr("")})},onStartShrink:N=>{sa(N,MV,{width:_s(N.element)+"px"})}}),Fa.config({}),Xs.config({find:N=>{const W=Fa.contents(N);return Qe(W)}})])}],behaviours:ei([P1.childAt(0),Ka("sidebar-sliding-events",[Lo(MV,(N,W)=>{xr(N.element,"width",W.event.width)}),Lo(EV,(N,W)=>{zi(N.element,"width")})])])});var Jee=Object.freeze({__proto__:null,block:(l,N,W,fe)=>{Cr(l.element,"aria-busy",!0);const Se=N.getRoot(l).getOr(l),Be=ei([ha.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),Ra.config({})]),qe=fe(Se,Be),ft=Se.getSystem().build(qe);Fa.append(Se,ea(ft)),ft.hasConfigured(ha)&&N.focus&&ha.focusIn(ft),W.isBlocked()||N.onBlock(l),W.blockWith(()=>Fa.remove(Se,ft))},unblock:(l,N,W)=>{Qt(l.element,"aria-busy"),W.isBlocked()&&N.onUnblock(l),W.clear()},isBlocked:(l,N,W)=>W.isBlocked()}),ete=[ys("getRoot",I.none),Hs("focus",!0),Ss("onBlock"),Ss("onUnblock")],tte=Object.freeze({__proto__:null,init:()=>{const l=wd(),N=W=>{l.set({destroy:W})};return Hd({readState:l.isSet,blockWith:N,clear:l.clear,isBlocked:l.isSet})}});const I1=id({fields:ete,name:"blocking",apis:Jee,state:tte}),nte=l=>(N,W)=>({dom:{tag:"div",attributes:{"aria-label":l.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ev('
    ')}]}),RV=l=>Xs.getCurrent(l).each(N=>Md(N.element,!0)),rte=(l,N)=>{const W="tabindex",fe=`data-mce-${W}`;I.from(l.iframeElement).map(Nt.fromDom).each(Se=>{N?(Eo(Se,W).each(Be=>Cr(Se,fe,Be)),Cr(Se,W,-1)):(Qt(Se,W),Eo(Se,fe).each(Be=>{Cr(Se,W,Be),Qt(Se,fe)}))})},Kfe=(l,N,W,fe)=>{const Se=N.element;if(rte(l,W),W)I1.block(N,nte(fe)),zi(Se,"display"),Qt(Se,"aria-hidden"),l.hasFocus()&&RV(N);else{const Be=Xs.getCurrent(N).exists(qe=>_0(qe.element));I1.unblock(N),xr(Se,"display","none"),Cr(Se,"aria-hidden","true"),Be&&l.focus()}},Jfe=l=>({uid:l.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:ei([Fa.config({}),I1.config({focus:!1}),Xs.config({find:N=>Qe(N.components())})]),components:[]}),LV=l=>l.type==="focusin",IV=l=>LV(l)?(l.composed?Qe(l.composedPath()):I.from(l.target)).map(Nt.fromDom).filter(lr).exists(W=>rp(W,"mce-pastebin")):!1,ote=(l,N,W)=>{const fe=wi(!1),Se=ds(),Be=ft=>{fe.get()&&!IV(ft)&&(ft.preventDefault(),RV(N()),l.editorManager.setActive(l))};l.inline||l.on("PreInit",()=>{l.dom.bind(l.getWin(),"focusin",Be),l.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==fe.get()&&(fe.set(ft),Kfe(l,N(),ft,W.providers),fX(l,ft))};l.on("ProgressState",ft=>{if(Se.on(clearTimeout),h(ft.time)){const yt=J3.setEditorTimeout(l,()=>qe(ft.state),ft.time);Se.set(yt)}else qe(ft.state),Se.clear()})},ite=(l,N)=>se(l,(Se,Be)=>N(Be,Se.len).fold(x(Se),ft=>({len:ft.finish,list:Se.list.concat([ft])})),{len:0,list:[]}).list,_m=(l,N,W)=>({within:l,extra:N,withinWidth:W}),DV=(l,N,W)=>{const fe=ite(l,(ft,yt)=>{const Lt=W(ft);return I.some({element:ft,start:yt,finish:yt+Lt,width:Lt})}),Se=me(fe,ft=>ft.finish<=N),Be=pe(Se,(ft,yt)=>ft+yt.width,0),qe=fe.slice(Se.length);return{within:Se,extra:qe,withinWidth:Be}},K5=l=>re(l,N=>N.element),BV=(l,N,W)=>{const fe=K5(l.concat(N));return _m(fe,[],W)},ate=(l,N,W,fe)=>{const Se=K5(l).concat([W]);return _m(Se,K5(N),fe)},J5=(l,N,W)=>_m(K5(l),[],W),ste=(l,N,W)=>{const fe=DV(N,l,W);return fe.extra.length===0?I.some(fe):I.none()},VA=(l,N,W,fe)=>{const Se=ste(l,N,W).getOrThunk(()=>DV(N,l-W(fe),W)),Be=Se.within,qe=Se.extra,ft=Se.withinWidth;return qe.length===1&&qe[0].width<=W(fe)?BV(Be,qe,ft):qe.length>=1?ate(Be,qe,fe,ft):J5(Be,qe,ft)},zV=(l,N)=>{const W=re(N,fe=>ea(fe));Nv.setGroups(l,W)},UA=l=>Oe(l,N=>Wd(N.element).bind(W=>N.getSystem().getByDom(W).toOptional())),NV=(l,N,W)=>{const fe=N.builtGroups.get();if(fe.length===0)return;const Se=gm(l,N,"primary"),Be=Ku.getCoupled(l,"overflowGroup");xr(Se.element,"visibility","hidden");const qe=fe.concat([Be]),ft=UA(qe);W([]),zV(Se,qe);const yt=_s(Se.element),Lt=VA(yt,N.builtGroups.get(),Ht=>Math.ceil(Ht.element.dom.getBoundingClientRect().width),Be);Lt.extra.length===0?(Fa.remove(Se,Be),W([])):(zV(Se,Lt.within),W(Lt.extra)),zi(Se.element,"visibility"),yl(Se.element),ft.each(Ra.focus)},FV=x([Pd("splitToolbarBehaviours",[Ku]),gn("builtGroups",()=>wi([]))]),B0=x([h0(["overflowToggledClass"]),ai("getOverflowBounds"),pn("lazySink"),gn("overflowGroups",()=>wi([])),Ss("onOpened"),Ss("onClosed")].concat(FV())),lte=x([mh({factory:Nv,schema:lO(),name:"primary"}),Jm({schema:lO(),name:"overflow"}),Jm({name:"overflow-button"}),Jm({name:"overflow-group"})]),ES=x((l,N)=>{mu(l,Math.floor(N))}),$V=x([h0(["toggledClass"]),pn("lazySink"),po("fetch"),ai("getBounds"),Ai("fireDismissalEventInstead",[Ar("event",J0())]),dm(),Ss("onToggled")]),VV=x([Jm({name:"button",overrides:l=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:ei([us.config({toggleClass:l.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:l.onToggled})])})}),Jm({factory:Nv,schema:lO(),name:"toolbar",overrides:l=>({toolbarBehaviours:ei([ha.config({mode:"cyclic",onEscape:N=>(Jo(N,l,"button").each(Ra.focus),I.none())})])})})]),jA=ds(),UV=(l,N)=>{jA.set(!0),fR(l,N),jA.clear()},fR=(l,N)=>{const W=Ku.getCoupled(l,"toolbarSandbox");Ys.isOpen(W)?Ys.close(W):Ys.open(W,N.toolbar())},dR=(l,N,W,fe)=>{const Se=W.getBounds.map(qe=>qe()),Be=W.lazySink(l).getOrDie();Rh.positionWithinBounds(Be,N,{anchor:{type:"hotspot",hotspot:l,layouts:fe,overrides:{maxWidthFunction:ES()}}},Se)},jV=(l,N,W,fe,Se)=>{Nv.setGroups(N,Se),dR(l,N,W,fe),us.on(l)},cte=(l,N,W)=>{const fe=ld(),Se=(qe,ft)=>{const yt=jA.get().getOr(!1);W.fetch().get(Lt=>{jV(l,ft,W,N.layouts,Lt),fe.link(l.element),yt||ha.focusIn(ft)})},Be=()=>{us.off(l),jA.get().getOr(!1)||Ra.focus(l),fe.unlink(l.element)};return{dom:{tag:"div",attributes:{id:fe.id}},behaviours:ei([ha.config({mode:"special",onEscape:qe=>(Ys.close(qe),I.some(!0))}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(qe,ft,yt)=>Cf(ft,yt)||Cf(l,yt),getAttachPoint:()=>W.lazySink(l).getOrDie()}),Ad.config({channels:{...Iy({isExtraPart:D,...W.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),...ak({doReposition:()=>{Ys.getState(Ku.getCoupled(l,"toolbarSandbox")).each(qe=>{dR(l,qe,W,N.layouts)})}})}})])}},r_=Zh({name:"FloatingToolbarButton",factory:(l,N,W,fe)=>({...Lh.sketch({...fe.button(),action:Se=>{fR(Se,fe)},buttonBehaviours:Km.augment({dump:fe.button().buttonBehaviours},[Ku.config({others:{toolbarSandbox:Se=>cte(Se,W,l)}})])}),apis:{setGroups:(Se,Be)=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(qe=>{jV(Se,qe,l,W.layouts,Be)})},reposition:Se=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(Be=>{dR(Se,Be,l,W.layouts)})},toggle:Se=>{fR(Se,fe)},toggleWithoutFocusing:Se=>{UV(Se,fe)},getToolbar:Se=>Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")),isOpen:Se=>Ys.isOpen(Ku.getCoupled(Se,"toolbarSandbox"))}}),configFields:$V(),partFields:VV(),apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggleWithoutFocusing(N)},getToolbar:(l,N)=>l.getToolbar(N),isOpen:(l,N)=>l.isOpen(N)}}),ute=x([pn("items"),h0(["itemSelector"]),Pd("tgroupBehaviours",[ha])]),QV=x([U3({name:"items",unit:"item"})]),HV=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.tgroupBehaviours,[ha.config({mode:"flow",selector:l.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),eT=Zh({name:"ToolbarGroup",configFields:ute(),partFields:QV(),factory:HV}),ZV=l=>re(l,N=>ea(N)),qV=(l,N,W)=>{NV(l,W,fe=>{W.overflowGroups.set(fe),N.getOpt(l).each(Se=>{r_.setGroups(Se,ZV(fe))})})},WV=(l,N,W,fe)=>{const Se=ml(r_.sketch({fetch:()=>Ih.nu(Be=>{Be(ZV(l.overflowGroups.get()))}),layouts:{onLtr:()=>[$c,Lu],onRtl:()=>[Lu,$c],onBottomLtr:()=>[Mf,dl],onBottomRtl:()=>[dl,Mf]},getBounds:W.getOverflowBounds,lazySink:l.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:l.markers.overflowToggledClass},parts:{button:fe["overflow-button"](),toolbar:fe.overflow()},onToggled:(Be,qe)=>l[qe?"onOpened":"onClosed"](Be)}));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:()=>eT.sketch({...fe["overflow-group"](),items:[Se.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{l.builtGroups.set(re(qe,Be.getSystem().build)),qV(Be,Se,l)},refresh:Be=>qV(Be,Se,l),toggle:Be=>{Se.getOpt(Be).each(qe=>{r_.toggle(qe)})},toggleWithoutFocusing:Be=>{Se.getOpt(Be).each(r_.toggleWithoutFocusing)},isOpen:Be=>Se.getOpt(Be).map(r_.isOpen).getOr(!1),reposition:Be=>{Se.getOpt(Be).each(qe=>{r_.reposition(qe)})},getOverflow:Be=>Se.getOpt(Be).bind(r_.getToolbar)},domModification:{attributes:{role:"group"}}}},hR=Zh({name:"SplitFloatingToolbar",configFields:B0(),partFields:lte(),factory:WV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N),getOverflow:(l,N)=>l.getOverflow(N)}}),YV=x([h0(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ss("onOpened"),Ss("onClosed")].concat(FV())),fte=x([mh({factory:Nv,schema:lO(),name:"primary"}),mh({factory:Nv,schema:lO(),name:"overflow",overrides:l=>({toolbarBehaviours:ei([Tp.config({dimension:{property:"height"},closedClass:l.markers.closedClass,openClass:l.markers.openClass,shrinkingClass:l.markers.shrinkingClass,growingClass:l.markers.growingClass,onShrunk:N=>{Jo(N,l,"overflow-button").each(W=>{us.off(W)}),l.onClosed(N)},onGrown:N=>{l.onOpened(N)},onStartGrow:N=>{Jo(N,l,"overflow-button").each(us.on)}}),ha.config({mode:"acyclic",onEscape:N=>(Jo(N,l,"overflow-button").each(Ra.focus),I.some(!0))})])})}),Jm({name:"overflow-button",overrides:l=>({buttonBehaviours:ei([us.config({toggleClass:l.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Jm({name:"overflow-group"})]),dte=(l,N)=>Jo(l,N,"overflow").map(Tp.hasGrown).getOr(!1),pR=(l,N,W)=>{Jo(l,N,"overflow-button").each(fe=>{Jo(l,N,"overflow").each(Se=>{if(QA(l,N),Tp.hasShrunk(Se)){const Be=N.onOpened;N.onOpened=qe=>{W||ha.focusIn(Se),Be(qe),N.onOpened=Be}}else{const Be=N.onClosed;N.onClosed=qe=>{W||Ra.focus(fe),Be(qe),N.onClosed=Be}}Tp.toggleGrow(Se)})})},QA=(l,N)=>{Jo(l,N,"overflow").each(W=>{NV(l,N,fe=>{const Se=re(fe,Be=>ea(Be));Nv.setGroups(W,Se)}),Jo(l,N,"overflow-button").each(fe=>{Tp.hasGrown(W)&&us.on(fe)}),Tp.refresh(W)})},hte=(l,N,W,fe)=>{const Se="alloy.toolbar.toggle",Be=(qe,ft)=>{const yt=re(ft,qe.getSystem().build);l.builtGroups.set(yt)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:qe=>eT.sketch({...fe["overflow-group"](),items:[Lh.sketch({...fe["overflow-button"](),action:ft=>{Za(qe,Se)}})]})}}),Ka("toolbar-toggle-events",[Lo(Se,qe=>{pR(qe,l,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),QA(qe,l)},refresh:qe=>QA(qe,l),toggle:qe=>{pR(qe,l,!1)},toggleWithoutFocusing:qe=>{pR(qe,l,!0)},isOpen:qe=>dte(qe,l)},domModification:{attributes:{role:"group"}}}},mR=Zh({name:"SplitSlidingToolbar",configFields:YV(),partFields:fte(),factory:hte,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},toggle:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N)}}),XV=l=>{const N=l.title.fold(()=>({}),W=>({attributes:{title:W}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...N},components:[eT.parts.items({})],items:l.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:ei([Rc.config({}),Ra.config({})])}},HA=l=>eT.sketch(XV(l)),GV=(l,N)=>{const W=wc(fe=>{const Se=re(l.initGroups,HA);Nv.setGroups(fe,Se)});return ei([E1.toolbarButton(l.providers.isDisabled),Id(),ha.config({mode:N,onEscape:l.onEscape,selector:".tox-toolbar__group"}),Ka("toolbar-events",[W])])},KV=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return{uid:l.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":XV({title:I.none(),items:[]}),"overflow-button":RJ({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),l.providers,[],"overflow-button")},splitToolbarBehaviours:GV(l,N)}},pte=l=>{const N=KV(l),W=4,fe=hR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return hR.sketch({...N,lazySink:l.getSink,getOverflowBounds:()=>{const Se=l.moreDrawerData.lazyHeader().element,Be=bc(Se),qe=Hn(Se),ft=bc(qe),yt=Math.max(qe.dom.scrollHeight,ft.height);return vs(Be.x+W,ft.y,Be.width-W*2,yt)},parts:{...N.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:l.attributes}}},components:[fe],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>l.onToggled(Se,!0),onClosed:Se=>l.onToggled(Se,!1)})},mte=l=>{const N=mR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),W=mR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),fe=KV(l);return mR.sketch({...fe,components:[N,W],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>{Se.getSystem().broadcastOn([cO()],{type:"opened"}),l.onToggled(Se,!0)},onClosed:Se=>{Se.getSystem().broadcastOn([cO()],{type:"closed"}),l.onToggled(Se,!1)}})},ZA=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return Nv.sketch({uid:l.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(l.type===C0.scrolling?["tox-toolbar--scrolling"]:[])},components:[Nv.parts.groups({})],toolbarBehaviours:GV(l,N)})},JV=[lx,E0,jo("tooltip"),rl("buttonType","secondary",["primary","secondary"]),Hs("borderless",!1),po("onAction")],eU=[...JV,sx,Gr("type",["button"])],gte=[...JV,Hs("active",!1),Gr("type",["togglebutton"])],tU={button:eU,togglebutton:gte},gR=[Gr("type",["group"]),mt("buttons",[],bn("type",tU))],vte=bn("type",{...tU,group:gR}),qA=Si([mt("buttons",[],vte),po("onShow"),po("onHide")]),yte=l=>Rt("view",qA,l),nU=(l,N)=>{var W,fe;const Se=l.type==="togglebutton",Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),ft=(()=>jr=>{const Ro=Pi=>{Be.map(Ao=>Ao.getOpt(jr).each($i=>{Fa.set($i,[K2(Pi,N.icons)])}))},ko=Pi=>{const Ao=jr.element;Pi?(uc(Ao,"tox-button--enabled"),Cr(Ao,"aria-pressed",!0)):(Zc(Ao,"tox-button--enabled"),Qt(Ao,"aria-pressed"))},_i=()=>rp(jr.element,"tox-button--enabled");if(Se)return l.onAction({setIcon:Ro,setActive:ko,isActive:_i});if(l.type==="button")return l.onAction({setIcon:Ro})})(),yt={...l,name:Se?l.text.getOr(l.icon.getOr("")):(W=l.text)!==null&&W!==void 0?W:l.icon.getOr(""),primary:l.buttonType==="primary",buttonType:I.from(l.buttonType),tooltip:l.tooltip,icon:l.icon,enabled:!0,borderless:l.borderless},Lt=I9((fe=l.buttonType)!==null&&fe!==void 0?fe:"secondary"),Ht=Se?l.text.map(N.translate):I.some(N.translate(l.text)),fn=Ht.map(Po),Rn=yt.tooltip.or(Ht).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Bn=Be.map(jr=>jr.asSpec()),er=Kw([Bn,fn]),cr=l.icon.isSome()&&fn.isSome(),Xr={tag:"button",classes:Lt.concat(...l.icon.isSome()&&!cr?["tox-button--icon"]:[]).concat(...cr?["tox-button--icon-and-text"]:[]).concat(...l.borderless?["tox-button--naked"]:[]).concat(...l.type==="togglebutton"&&l.active?["tox-button--enabled"]:[]),attributes:Rn},br=[],Fr=$5(yt,I.some(ft),br,Xr,er,l.tooltip,N);return Lh.sketch(Fr)},rU=(l,N)=>nU(l,N),bte=(l,N)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:re(l.buttons,W=>rU(W,N))}),xte=va().deviceType,_te=xte.isPhone(),wte=xte.isTablet(),vR=l=>{let N=!1;const W=re(l.buttons,fe=>fe.type==="group"?(N=!0,bte(fe,l.providers)):rU(fe,l.providers));return{uid:l.uid,dom:{tag:"div",classes:[N?"tox-view__toolbar":"tox-view__header",..._te||wte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:ei([Ra.config({}),ha.config({mode:"flow",selector:"button, .tox-button",focusInside:Mv.OnEnterOrSpaceMode})]),components:N?W:[Iv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Iv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:W})]}},Ote=l=>({uid:l.uid,behaviours:ei([Ra.config({}),Rc.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),WA=(l,N,W,fe)=>{const Se={getPane:Be=>qf.getPart(Be,l,"pane"),getOnShow:Be=>l.viewConfig.onShow,getOnHide:Be=>l.viewConfig.onHide};return{uid:l.uid,dom:l.dom,components:N,behaviours:ei([Ra.config({}),ha.config({mode:"cyclic",focusInside:Mv.OnEnterOrSpaceMode})]),apis:Se}};var uO=Zh({name:"silver.View",configFields:[pn("viewConfig")],partFields:[mm({factory:{sketch:vR},schema:[pn("buttons"),pn("providers")],name:"header"}),mm({factory:{sketch:Ote},schema:[],name:"pane"})],factory:WA,apis:{getPane:(l,N)=>l.getPane(N),getOnShow:(l,N)=>l.getOnShow(N),getOnHide:(l,N)=>l.getOnHide(N)}});const oU=(l,N,W)=>je(N,(fe,Se)=>{const Be=Mt(yte(fe));return l.slot(Se,uO.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[uO.parts.header({buttons:Be.buttons,providers:W})]:[],uO.parts.pane({})]}))}),yR=(l,N)=>up.sketch(W=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:oU(W,l,N),slotBehaviours:lS.unnamedEvents([wc(fe=>up.hideAllSlots(fe))])})),iU=l=>ce(up.getSlotNames(l),N=>up.isShowing(l,N)),aU=l=>{const N=l.element;xr(N,"display","none"),Cr(N,"aria-hidden","true")},PS=l=>{const N=l.element;zi(N,"display"),Qt(N,"aria-hidden")},sU=l=>({getContainer:x(l)}),lU=(l,N,W)=>{up.getSlot(l,N).each(fe=>{uO.getPane(fe).each(Se=>{W(fe)(sU(Se.element.dom))})})},Ste=(l,N)=>lU(l,N,uO.getOnShow),kte=(l,N)=>lU(l,N,uO.getOnHide);var YA=Qp({factory:(l,N)=>{const Be={setViews:(qe,ft)=>{Fa.set(qe,[yR(ft,N.backstage.shared.providers)])},whichView:qe=>Xs.getCurrent(qe).bind(iU),toggleView:(qe,ft,yt,Lt)=>Xs.getCurrent(qe).exists(Ht=>{const fn=iU(Ht),Rn=fn.exists(er=>Lt===er),Bn=up.getSlot(Ht,Lt).isSome();return Bn&&(up.hideAllSlots(Ht),Rn?(aU(qe),ft()):(yt(),PS(qe),up.showSlot(Ht,Lt),Ste(Ht,Lt)),fn.each(er=>kte(Ht,er))),Bn})};return{uid:l.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:ei([Fa.config({}),Xs.config({find:qe=>{const ft=Fa.contents(qe);return Qe(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[pn("backstage")],apis:{setViews:(l,N,W)=>l.setViews(N,W),toggleView:(l,N,W,fe,Se)=>l.toggleView(N,W,fe,Se),whichView:(l,N)=>l.whichView(N)}});const Tte=(l,N,W)=>{let fe=!1;const Se=qe=>{kl(qe,".tox-statusbar").each(ft=>{Di(ft,"display")==="none"&&Nr(ft,"aria-hidden")==="true"?(zi(ft,"display"),Qt(ft,"aria-hidden")):(xr(ft,"display","none"),Cr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>qf.getPart(qe,l,"socket"),setSidebar:(qe,ft,yt)=>{qf.getPart(qe,l,"sidebar").each(Lt=>Yee(Lt,ft,yt))},toggleSidebar:(qe,ft)=>{qf.getPart(qe,l,"sidebar").each(yt=>Xee(yt,ft))},whichSidebar:qe=>qf.getPart(qe,l,"sidebar").bind(Gee).getOrNull(),getHeader:qe=>qf.getPart(qe,l,"header"),getToolbar:qe=>qf.getPart(qe,l,"toolbar"),setToolbar:(qe,ft)=>{qf.getPart(qe,l,"toolbar").each(yt=>{const Lt=re(ft,HA);yt.getApis().setGroups(yt,Lt)})},setToolbars:(qe,ft)=>{qf.getPart(qe,l,"multiple-toolbar").each(yt=>{const Lt=re(ft,Ht=>re(Ht,HA));mV.setItems(yt,Lt)})},refreshToolbar:qe=>{qf.getPart(qe,l,"toolbar").each(yt=>yt.getApis().refresh(yt))},toggleToolbarDrawer:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggle,yt=>yt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggleWithoutFocusing,yt=>yt(ft))})},isToolbarDrawerToggled:qe=>qf.getPart(qe,l,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(yt=>yt(ft))).getOr(!1),getThrobber:qe=>qf.getPart(qe,l,"throbber"),focusToolbar:qe=>{qf.getPart(qe,l,"toolbar").orThunk(()=>qf.getPart(qe,l,"multiple-toolbar")).each(yt=>{ha.focusIn(yt)})},setMenubar:(qe,ft)=>{qf.getPart(qe,l,"menubar").each(yt=>{aR.setMenus(yt,ft)})},focusMenubar:qe=>{qf.getPart(qe,l,"menubar").each(ft=>{aR.focus(ft)})},setViews:(qe,ft)=>{qf.getPart(qe,l,"viewWrapper").each(yt=>{YA.setViews(yt,ft)})},toggleView:(qe,ft)=>qf.getPart(qe,l,"viewWrapper").exists(yt=>YA.toggleView(yt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>qf.getPart(qe,l,"viewWrapper").bind(YA.whichView).getOrNull(),hideMainView:qe=>{fe=Be.isToolbarDrawerToggled(qe),fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),xr(yt,"display","none"),Cr(yt,"aria-hidden","true")})},showMainView:qe=>{fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),zi(yt,"display"),Qt(yt,"aria-hidden")})}};return{uid:l.uid,dom:l.dom,components:N,apis:Be,behaviours:l.behaviours}},uU=zv.optional({factory:aR,name:"menubar",schema:[pn("backstage")]}),fU=l=>l.type===C0.sliding?mte:l.type===C0.floating?pte:ZA,XA=zv.optional({factory:{sketch:l=>mV.sketch({uid:l.uid,dom:l.dom,listBehaviours:ei([ha.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>ZA({type:l.type,uid:Li("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:l.providers,onEscape:()=>(l.onEscape(),I.some(!0))}),setupItem:(N,W,fe,Se)=>{Nv.setGroups(W,fe)},shell:!0})},name:"multiple-toolbar",schema:[pn("dom"),pn("onEscape")]}),bR=zv.optional({factory:{sketch:l=>{const N=fU(l),W={type:l.type,uid:l.uid,onEscape:()=>(l.onEscape(),I.some(!0)),onToggled:(fe,Se)=>l.onToolbarToggled(Se),cyclicKeying:!1,initGroups:[],getSink:l.getSink,providers:l.providers,moreDrawerData:{lazyToolbar:l.lazyToolbar,lazyMoreButton:l.lazyMoreButton,lazyHeader:l.lazyHeader},attributes:l.attributes};return N(W)}},name:"toolbar",schema:[pn("dom"),pn("onEscape"),pn("getSink")]}),Cte=zv.optional({factory:{sketch:iR},name:"header",schema:[pn("dom")]}),Ate=zv.optional({factory:{sketch:sR},name:"promotion",schema:[pn("dom")]}),dU=zv.optional({name:"socket",schema:[pn("dom")]}),Mte=zv.optional({factory:{sketch:PV},name:"sidebar",schema:[pn("dom")]}),Ete=zv.optional({factory:{sketch:Jfe},name:"throbber",schema:[pn("dom")]}),Pte=zv.optional({factory:YA,name:"viewWrapper",schema:[pn("backstage")]}),hU=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:l.components}),Rte=zv.optional({factory:{sketch:hU},name:"editorContainer",schema:[]});var Lc=Zh({name:"OuterContainer",factory:Tte,configFields:[pn("dom"),pn("behaviours")],partFields:[Cte,uU,bR,XA,dU,Mte,Ate,Ete,Pte,Rte],apis:{getSocket:(l,N)=>l.getSocket(N),setSidebar:(l,N,W,fe)=>{l.setSidebar(N,W,fe)},toggleSidebar:(l,N,W)=>{l.toggleSidebar(N,W)},whichSidebar:(l,N)=>l.whichSidebar(N),getHeader:(l,N)=>l.getHeader(N),getToolbar:(l,N)=>l.getToolbar(N),setToolbar:(l,N,W)=>{l.setToolbar(N,W)},setToolbars:(l,N,W)=>{l.setToolbars(N,W)},refreshToolbar:(l,N)=>l.refreshToolbar(N),toggleToolbarDrawer:(l,N)=>{l.toggleToolbarDrawer(N)},toggleToolbarDrawerWithoutFocusing:(l,N)=>{l.toggleToolbarDrawerWithoutFocusing(N)},isToolbarDrawerToggled:(l,N)=>l.isToolbarDrawerToggled(N),getThrobber:(l,N)=>l.getThrobber(N),setMenubar:(l,N,W)=>{l.setMenubar(N,W)},focusMenubar:(l,N)=>{l.focusMenubar(N)},focusToolbar:(l,N)=>{l.focusToolbar(N)},setViews:(l,N,W)=>{l.setViews(N,W)},toggleView:(l,N,W)=>l.toggleView(N,W),whichView:(l,N)=>l.whichView(N)}});const xR="file edit view insert format tools table help",pU={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},Lte=(l,N,W)=>{const fe=v6(W).split(/[ ,]/);return{text:l.title,getItems:()=>ve(l.items,Se=>{const Be=Se.toLowerCase();return Be.trim().length===0?[]:te(fe,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:N.menuItems[Be]?[N.menuItems[Be]]:[]})}},GA=l=>l.split(" "),mU=(l,N)=>{const W={...pU,...N.menus},fe=ke(N.menus).length>0,Se=N.menubar===void 0||N.menubar===!0?GA(xR):GA(N.menubar===!1?"":N.menubar),Be=me(Se,ft=>{const yt=ht(pU,ft);return fe?yt||Ge(N.menus,ft).exists(Lt=>ht(Lt,"items")):yt}),qe=re(Be,ft=>{const yt=W[ft];return Lte({title:yt.title,items:GA(yt.items)},N,l)});return me(qe,ft=>{const yt=Lt=>n(Lt)||Lt.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),yt)})},gU=l=>{const N=()=>{l._skinLoaded=!0,lX(l)};return()=>{l.initialized?N():l.on("init",N)}},Ite=(l,N)=>()=>cX(l,{message:N}),_R=(l,N,W)=>(l.on("remove",()=>W.unload(N)),W.load(N)),wR=(l,N,W,fe)=>(l.on("remove",()=>fe.unloadRawCss(N)),fe.loadRawCss(N,W)),Dte=async(l,N)=>{const fe="ui/"+w6(l).getOr("default")+"/skin.css",Se=tinymce.Resource.get(fe);if(n(Se))wR(l,fe,Se,l.ui.styleSheetLoader);else{const Be=l.editorManager.suffix,qe=N+`/skin${Be}.css`;return _R(l,qe,l.ui.styleSheetLoader)}},Bte=async(l,N)=>{if(Gt(Nt.fromDom(l.getElement()))){const Se="ui/"+w6(l).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(Se);if(n(Be))wR(l,Se,Be,Fw.DOM.styleSheetLoader);else{const qe=l.editorManager.suffix,ft=N+`/skin.shadowdom${qe}.css`;return _R(l,ft,Fw.DOM.styleSheetLoader)}}},vU=async(l,N)=>{const W=()=>{const Se=YE(N),Be=N.editorManager.suffix;Se&&N.contentCSS.push(Se+(l?"/content.inline":"/content")+`${Be}.css`)};w6(N).fold(W,Se=>{const Be="ui/"+Se+(l?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?wR(N,Be,qe,N.ui.styleSheetLoader):W()});const fe=YE(N);if(!WE(N)&&n(fe))return Promise.all([Dte(N,fe),Bte(N,fe)]).then()},yU=(l,N)=>vU(l,N).then(gU(N),Ite(N,"Skin could not be loaded")),zte=T(yU,!1),Nte=T(yU,!0),o_=(l,N,W)=>at(W)?l.translate(N):l.translate([N,l.translate(W)]),OR=(l,N)=>{const W=(qe,ft,yt,Lt)=>{const Ht=l.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:Ht});if(qe.type==="submenu"){const fn=ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt));return ft===0&&fn.length<=0?I.none():I.some({type:"nestedmenuitem",text:Ht,enabled:fn.length>0,getSubmenuItems:()=>ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt))})}else return I.some({type:"togglemenuitem",text:Ht,icon:qe.icon,active:qe.isSelected(Lt),enabled:!yt,onAction:N.onAction(qe),...qe.getStylePreview().fold(()=>({}),fn=>({meta:{style:fn}}))})},fe=(qe,ft,yt)=>{const Lt=qe.type==="formatter"&&N.isInvalid(qe);return ft===0?Lt?[]:W(qe,ft,!1,yt).toArray():W(qe,ft,Lt,yt).toArray()},Se=qe=>{const ft=N.getCurrentValue(),yt=N.shouldHide?0:1;return ve(qe,Lt=>fe(Lt,yt,ft))};return{validateItems:Se,getFetch:(qe,ft)=>(yt,Lt)=>{const Ht=ft(),fn=Se(Ht),Rn=OS(fn,A1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});Lt(Rn)}}},RS=(l,N)=>{const W=N.dataset,fe=W.type==="basic"?()=>re(W.data,Se=>DA(Se,N.isSelectedFor,N.getPreviewFor)):W.getData;return{items:OR(l,N),getStyleItems:fe}},tT=(l,N,W,fe,Se,Be)=>{const{items:qe,getStyleItems:ft}=RS(N,W),yt=wi(W.tooltip),Lt=fn=>({getComponent:x(fn),setTooltip:Rn=>{const Bn=N.shared.providers.translate(Rn);Cr(fn.element,"aria-label",Bn),yt.set(Rn)}}),Ht=fn=>{const Rn=Bn=>fn.setTooltip(o_(l,fe(Bn.value),Bn.value));return l.on(Se,Rn),eA(tO(l,"NodeChange",Bn=>{const er=Bn.getComponent();W.updateText(er),he.set(Bn.getComponent(),!l.selection.isEditable())})(fn),()=>l.off(Se,Rn))};return g9({text:W.icon.isSome()?I.none():W.text,icon:W.icon,ariaLabel:I.some(W.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(N,ft),onSetup:Ht,getApi:Lt,columns:1,presets:"normal",classes:W.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Vu.config({...N.shared.providers.tooltips.getConfig({tooltipText:N.shared.providers.translate(W.tooltip),onShow:fn=>{if(W.tooltip!==yt.get()){const Rn=N.shared.providers.translate(yt.get());Vu.setComponents(fn,N.shared.providers.tooltips.getComponents({tooltipText:Rn}))}}})})]},"tox-tbtn",N.shared,Be)},Fte=l=>re(l,N=>{let W=N,fe=N;const Se=N.split("=");return Se.length>1&&(W=Se[0],fe=Se[1]),{title:W,format:fe}}),$te=l=>({type:"basic",data:l});var LS;(function(l){l[l.SemiColon=0]="SemiColon",l[l.Space=1]="Space"})(LS||(LS={}));const Vte=(l,N)=>N===LS.SemiColon?l.replace(/;$/,"").split(";"):l.split(" "),SR=(l,N,W)=>{const fe=l.options.get(N);return{type:"basic",data:Fte(Vte(fe,W))}},Ute="Align",bU=x("Alignment {0}"),kR="left",IS=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],KA=l=>{const N=()=>ce(IS,ft=>l.formatter.match(ft.format)),W=ft=>()=>l.formatter.match(ft),fe=ft=>I.none,Se=ft=>{const Lt=N().fold(x(kR),Ht=>Ht.title.toLowerCase());sa(ft,J2,{icon:`align-${Lt}`}),r7(l,{value:Lt})},Be=$te(IS),qe=ft=>()=>ce(IS,yt=>yt.format===ft.format).each(yt=>l.execCommand(yt.command));return{tooltip:o_(l,bU(),kR),text:I.none(),icon:I.some("align-left"),isSelectedFor:W,getCurrentValue:I.none,getPreviewFor:fe,onAction:qe,updateText:Se,dataset:Be,shouldHide:!1,isInvalid:ft=>!l.formatter.canApply(ft.format)}},xU=(l,N)=>tT(l,N,KA(l),bU,"AlignTextUpdate","align"),i_=(l,N)=>{const W=RS(N,KA(l));l.ui.registry.addNestedMenuItem("align",{text:N.shared.providers.translate(Ute),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},TR=(l,N)=>{const W=N(),fe=re(W,Se=>Se.format);return I.from(l.formatter.closest(fe)).bind(Se=>ce(W,Be=>Be.format===Se))},jte="Blocks",_U=x("Block {0}"),CR="Paragraph",wU=l=>{const N=Be=>()=>l.formatter.match(Be),W=Be=>()=>{const qe=l.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(Be))}):I.none()},fe=Be=>{const ft=TR(l,()=>Se.data).fold(x(CR),yt=>yt.title);sa(Be,Ug,{text:ft}),mX(l,{value:ft})},Se=SR(l,"block_formats",LS.SemiColon);return{tooltip:o_(l,_U(),CR),text:I.some(CR),icon:I.none(),isSelectedFor:N,getCurrentValue:I.none,getPreviewFor:W,onAction:EN(l),updateText:fe,dataset:Se,shouldHide:!1,isInvalid:Be=>!l.formatter.canApply(Be.format)}},Qte=(l,N)=>tT(l,N,wU(l),_U,"BlocksTextUpdate","blocks"),Hte=(l,N)=>{const W=RS(N,wU(l));l.ui.registry.addNestedMenuItem("blocks",{text:jte,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Zte="Fonts",AR=x("Font {0}"),MR="System Font",qte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],JA=l=>{const N=l.split(/\s*,\s*/);return re(N,W=>W.replace(/^['"]+|['"]+$/g,""))},OU=(l,N)=>N.length>0&&_e(N,W=>l.indexOf(W.toLowerCase())>-1),Wte=(l,N)=>{if(l.indexOf("-apple-system")===0||N.length>0){const W=JA(l.toLowerCase());return OU(W,qte)||OU(W,N)}else return!1},SU=l=>{const N=()=>{const yt=er=>er?JA(er)[0]:"",Lt=l.queryCommandValue("FontName"),Ht=ft.data,fn=Lt?Lt.toLowerCase():"",Rn=hz(l);return{matchOpt:ce(Ht,er=>{const cr=er.format;return cr.toLowerCase()===fn||yt(cr).toLowerCase()===yt(fn).toLowerCase()}).orThunk(()=>Ot(Wte(fn,Rn),{title:MR,format:fn})),font:Lt}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=yt=>()=>I.some({tag:"div",styles:yt.indexOf("dings")===-1?{"font-family":yt}:{}}),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontName",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,font:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),o7(l,{value:fn})},ft=SR(l,"font_family_formats",LS.SemiColon);return{tooltip:o_(l,AR(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:W,getCurrentValue:fe,getPreviewFor:Se,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Yte=(l,N)=>tT(l,N,SU(l),AR,"FontFamilyTextUpdate","fontfamily"),Xte=(l,N)=>{const W=RS(N,SU(l));l.ui.registry.addNestedMenuItem("fontfamily",{text:N.shared.providers.translate(Zte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Gte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},kU=(()=>{const l="[0-9]+",W="[eE]"+("[+-]?"+l),fe="\\.",Se=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",l+fe+Se(l)+Se(W),fe+l+Se(W),l+Se(W)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),TU=(l,N)=>te(N,W=>te(Gte[W],fe=>l===fe)),nT=(l,N)=>I.from(kU.exec(l)).bind(fe=>{const Se=Number(fe[1]),Be=fe[2];return TU(Be,N)?I.some({value:Se,unit:Be}):I.none()}),Kte=(l,N)=>nT(l,N).map(({value:W,unit:fe})=>W+fe),ER={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},Jte=(l,N,W,fe)=>{let Se=I.none();const Be=jr=>jr.map(Ro=>Ei.getValue(Ro)).getOr(""),qe=tO(l,"NodeChange SwitchMode",jr=>{const Ro=jr.getComponent();Se=I.some(Ro),W.updateInputValue(Ro),he.set(Ro,!l.selection.isEditable())}),ft=jr=>({getComponent:x(jr)}),yt=wi(v),Lt=Li("custom-number-input-events"),Ht=(jr,Ro,ko)=>{const _i=Be(Se),Pi=W.getNewValue(_i,jr),Ao=_i.length-`${Pi}`.length,$i=Se.map(Xi=>Xi.element.dom.selectionStart-Ao),yi=Se.map(Xi=>Xi.element.dom.selectionEnd-Ao);W.onAction(Pi,ko),Se.each(Xi=>{Ei.setValue(Xi,Pi),Ro&&($i.each(ks=>Xi.element.dom.selectionStart=ks),yi.each(ks=>Xi.element.dom.selectionEnd=ks))})},fn=(jr,Ro)=>Ht((ko,_i)=>ko-_i,jr,Ro),Rn=(jr,Ro)=>Ht((ko,_i)=>ko+_i,jr,Ro),Bn=jr=>Zr(jr.element).fold(I.none,Ro=>(Md(Ro),I.some(!0))),er=jr=>_0(jr.element)?(Rr(jr.element).each(Ro=>Md(Ro)),I.some(!0)):I.none(),cr=(jr,Ro,ko,_i)=>{const Pi=wi(v),Ao=N.shared.providers.translate(ko),$i=Li("altExecuting"),yi=tO(l,"NodeChange SwitchMode",ks=>{he.set(ks.getComponent(),!l.selection.isEditable())}),Xi=ks=>{he.isDisabled(ks)||jr(!0)};return Lh.sketch({dom:{tag:"button",attributes:{"aria-label":Ao,"data-mce-name":Ro},classes:_i.concat(Ro)},components:[TA(Ro,N.shared.providers.icons)],buttonBehaviours:ei([he.config({}),Vu.config(N.shared.providers.tooltips.getConfig({tooltipText:Ao})),Ka($i,[cp({onSetup:yi,getApi:ft},Pi),j2({getApi:ft},Pi),Lo(nm(),(ks,Ic)=>{(Ic.event.raw.keyCode===ER.space()||Ic.event.raw.keyCode===ER.enter())&&(he.isDisabled(ks)||jr(!1))}),Lo(H1(),Xi),Lo(Gl(),Xi)])]),eventOrder:{[nm()]:[$i,"keying"],[H1()]:[$i,"alloy.base.behaviour"],[Gl()]:[$i,"alloy.base.behaviour"],[Sh()]:["alloy.base.behaviour",$i,"tooltipping"],[zp()]:[$i,"tooltipping"]}})},Xr=ml(cr(jr=>fn(!1,jr),"minus","Decrease font size",[])),br=ml(cr(jr=>Rn(!1,jr),"plus","Increase font size",[])),Fr=ml({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ww.sketch({inputBehaviours:ei([he.config({}),Ka(Lt,[cp({onSetup:qe,getApi:ft},yt),j2({getApi:ft},yt)]),Ka("input-update-display-text",[Lo(Ug,(jr,Ro)=>{Ei.setValue(jr,Ro.event.text)}),Lo(Rm(),jr=>{W.onAction(Ei.getValue(jr))}),Lo(s0(),jr=>{W.onAction(Ei.getValue(jr))})]),ha.config({mode:"special",onEnter:jr=>(Ht(R,!0,!0),I.some(!0)),onEscape:Bn,onUp:jr=>(Rn(!0,!1),I.some(!0)),onDown:jr=>(fn(!0,!1),I.some(!0)),onLeft:(jr,Ro)=>(Ro.cut(),I.none()),onRight:(jr,Ro)=>(Ro.cut(),I.none())})])})],behaviours:ei([Ra.config({}),ha.config({mode:"special",onEnter:er,onSpace:er,onEscape:Bn}),Ka("input-wrapper-events",[Lo(wu(),jr=>{q([Xr,br],Ro=>{const ko=Nt.fromDom(Ro.get(jr).element.dom);_0(ko)&&m1(ko)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(fe)?{"data-mce-name":fe}:{}}},components:[Xr.asSpec(),Fr.asSpec(),br.asSpec()],behaviours:ei([Ra.config({}),ha.config({mode:"flow",focusInside:Mv.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:jr=>_0(jr.element)?I.none():(Md(jr.element),I.some(!0))})])}},ene="Font sizes",CU=x("Font size {0}"),PR="12pt",tne={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},AU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},nne=(l,N)=>{const W=Math.pow(10,N);return Math.round(l*W)/W},rne=(l,N)=>/[0-9.]+px$/.test(l)?nne(parseInt(l,10)*72/96,N||0)+"pt":Ge(AU,l).getOr(l),one=l=>Ge(tne,l).getOr(""),MU=l=>{const N=()=>{let yt=I.none();const Lt=ft.data,Ht=l.queryCommandValue("FontSize");if(Ht)for(let fn=3;yt.isNone()&&fn>=0;fn--){const Rn=rne(Ht,fn),Bn=one(Rn);yt=ce(Lt,er=>er.format===Ht||er.format===Rn||er.format===Bn)}return{matchOpt:yt,size:Ht}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=x(I.none),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontSize",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,size:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),AN(l,{value:fn})},ft=SR(l,"font_size_formats",LS.Space);return{tooltip:o_(l,CU(),PR),text:I.some(PR),icon:I.none(),isSelectedFor:W,getPreviewFor:Se,getCurrentValue:fe,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},ine=(l,N)=>tT(l,N,MU(l),CU,"FontSizeTextUpdate","fontsize"),ane=l=>{var N;const W={step:1};return(N={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[l])!==null&&N!==void 0?N:W},sne=16,EU=l=>l>=0,lne=l=>{const N=()=>l.queryCommandValue("FontSize");return{updateInputValue:fe=>sa(fe,Ug,{text:N()}),onAction:(fe,Se)=>l.execCommand("FontSize",!1,fe,{skip_focus:!Se}),getNewValue:(fe,Se)=>{nT(fe,["unsupportedLength","empty"]);const Be=N(),qe=nT(fe,["unsupportedLength","empty"]).or(nT(Be,["unsupportedLength","empty"])),ft=qe.map(Rn=>Rn.value).getOr(sne),yt=y6(l),Lt=qe.map(Rn=>Rn.unit).filter(Rn=>Rn!=="").getOr(yt),Ht=Se(ft,ane(Lt).step),fn=`${EU(Ht)?Ht:ft}${Lt}`;return fn!==Be&&MN(l,{value:fn}),fn}}},cne=(l,N)=>Jte(l,N,lne(l),"fontsizeinput"),une=(l,N)=>{const W=RS(N,MU(l));l.ui.registry.addNestedMenuItem("fontsize",{text:ene,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},fne="Formats",PU=l=>at(l)?"Formats":"Format {0}",RU=(l,N)=>{const W="Formats",fe=qe=>()=>l.formatter.match(qe),Se=qe=>()=>{const ft=l.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=fn=>q9(fn)?ve(fn.items,ft):J$(fn)?[{title:fn.title,format:fn.format}]:[],yt=ve(Z5(l),ft),Ht=TR(l,x(yt)).fold(x({title:W,tooltipLabel:""}),fn=>({title:fn.title,tooltipLabel:fn.title}));sa(qe,Ug,{text:Ht.title}),pX(l,{value:Ht.tooltipLabel})};return{tooltip:o_(l,PU(""),""),text:I.some(W),icon:I.none(),isSelectedFor:fe,getCurrentValue:I.none,getPreviewFor:Se,onAction:EN(l),updateText:Be,shouldHide:JB(l),isInvalid:qe=>!l.formatter.canApply(qe.format),dataset:N}},dne=(l,N)=>{const W={type:"advanced",...N.styles};return tT(l,N,RU(l,W),PU,"StylesTextUpdate","styles")},LU=(l,N)=>{const W={type:"advanced",...N.styles},fe=RS(N,RU(l,W));l.ui.registry.addNestedMenuItem("styles",{text:fne,onSetup:kp(l),getSubmenuItems:()=>fe.items.validateItems(fe.getStyleItems())})},hne=x([pn("toggleClass"),pn("fetch"),Ah("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Ah("onItemExecute"),Yo("lazySink"),pn("dom"),Ss("onOpen"),Pd("splitDropdownBehaviours",[Ku,ha,Ra]),Ar("matchWidth",!1),Ar("useMinWidth",!1),Ar("eventOrder",{}),Yo("role"),Yo("listRole")].concat(iA())),pne=mh({factory:Lh,schema:[pn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(Bm)},buttonBehaviours:ei([us.config({toggleOnExecute:!1,toggleClass:l.toggleClass})])})}),IU=mh({factory:Lh,schema:[pn("dom")],name:"button",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(W=>{l.onExecute(W,N)})}})}),mne=x([pne,IU,mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),Jm({schema:[Um()],name:"menu",defaults:l=>({onExecute:(N,W)=>{N.getSystem().getByUid(l.uid).each(fe=>{l.onItemExecute(fe,N,W)})}})}),eF()]),DU=(l,N,W,fe)=>{const Se=Ht=>{Xs.getCurrent(Ht).each(fn=>{ta.highlightFirst(fn),ha.focusIn(fn)})},Be=Ht=>{b7(l,R,Ht,fe,Se,Gu.HighlightMenuAndItem).get(v)},qe=Ht=>(Be(Ht),I.some(!0)),ft=Ht=>{const fn=gm(Ht,l,"button");return Bm(fn),I.some(!0)},yt={...Rl([wc((Ht,fn)=>{Jo(Ht,l,"aria-descriptor").each(Bn=>{const er=Li("aria");Cr(Bn.element,"id",er),Cr(Ht.element,"aria-describedby",er)})})]),...d6(I.some(Be))},Lt={repositionMenus:Ht=>{us.isOn(Ht)&&nF(Ht)}};return{uid:l.uid,dom:l.dom,components:N,apis:Lt,eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},events:yt,behaviours:Rd(l.splitDropdownBehaviours,[Ku.config({others:{sandbox:Ht=>{const fn=gm(Ht,l,"arrow");return w7(l,Ht,{onOpen:()=>{us.on(fn),us.on(Ht)},onClose:()=>{us.off(fn),us.off(Ht)}})}}}),ha.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),Ra.config({}),us.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:l.role.getOr("button"),"aria-haspopup":!0}}}},rT=Zh({name:"SplitDropdown",configFields:hne(),partFields:mne(),factory:DU,apis:{repositionMenus:(l,N)=>l.repositionMenus(N)}}),BU=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),gne=l=>({setActive:N=>{us.set(l,N)},isActive:()=>us.isOn(l),isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),zU=(l,N)=>l.map(W=>({"aria-label":N.translate(W)})).getOr({}),fO=Li("focus-button"),RR=(l,N,W,fe,Se,Be)=>{const qe=N.map(yt=>ml(m9(yt,"tox-tbtn",Se))),ft=l.map(yt=>ml(K2(yt,Se.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(N.isSome()?["tox-tbtn--select"]:[]),attributes:{...zU(W,Se),...a(Be)?{"data-mce-name":Be}:{}}},components:Kw([ft.map(yt=>yt.asSpec()),qe.map(yt=>yt.asSpec())]),eventOrder:{[Nc()]:["focusing","alloy.base.behaviour",G2],[Sh()]:[G2,"toolbar-group-button-events"]},buttonBehaviours:ei([E1.toolbarButton(Se.isDisabled),Id(),Ka(G2,[wc((yt,Lt)=>h9(yt)),Lo(Ug,(yt,Lt)=>{qe.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[Po(Se.translate(Lt.event.text))])})}),Lo(J2,(yt,Lt)=>{ft.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[K2(Lt.event.icon,Se.icons)])})}),Lo(Nc(),(yt,Lt)=>{Lt.event.prevent(),Za(yt,fO)})])].concat(fe.getOr([])))}},vne=(l,N,W,fe,Se)=>{const Be=N.shared,qe=wi(v),ft={toolbarButtonBehaviours:[],getApi:BU,onSetup:l.onSetup},yt=[Ka("toolbar-group-button-events",[cp(ft,qe),j2(ft,qe)])];return r_.sketch({lazySink:Be.getSink,fetch:()=>Ih.nu(Lt=>{Lt(re(W(l.items),HA))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:RR(l.icon,l.text,l.tooltip,I.some(yt),Be.providers,Se),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:fe}}}})},NU=(l,N,W,fe)=>{var Se;const Be=wi(v),qe=RR(l.icon,l.text,l.tooltip,I.none(),W,fe);return Lh.sketch({dom:qe.dom,components:qe.components,eventOrder:d9,buttonBehaviours:{...ei([Ka("toolbar-button-events",[jK({onAction:l.onAction,getApi:N.getApi}),cp(N,Be),j2(N,Be)]),...l.tooltip.map(ft=>Vu.config(W.tooltips.getConfig({tooltipText:W.translate(ft)+l.shortcut.map(yt=>` (${W6(yt)})`).getOr("")}))).toArray(),E1.toolbarButton(()=>!l.enabled||W.isDisabled()),Id()].concat(N.toolbarButtonBehaviours)),[G2]:(Se=qe.buttonBehaviours)===null||Se===void 0?void 0:Se[G2]}})},yne=(l,N,W)=>FU(l,N,[],W),FU=(l,N,W,fe)=>NU(l,{toolbarButtonBehaviours:W.length>0?[Ka("toolbarButtonWith",W)]:[],getApi:BU,onSetup:l.onSetup},N,fe),bne=(l,N,W)=>$U(l,N,[],W),$U=(l,N,W,fe)=>NU(l,{toolbarButtonBehaviours:[Fa.config({}),us.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(W.length>0?[Ka("toolbarToggleButtonWith",W)]:[]),getApi:gne,onSetup:l.onSetup},N,fe),xne=(l,N,W)=>fe=>Ih.nu(Se=>N.fetch(Se)).map(Se=>I.from(cA(ws(g7(Li("menu-value"),Se,Be=>{N.onItemAction(l(fe),Be)},N.columns,N.presets,A1.CLOSE_ON_EXECUTE,N.select.getOr(D),W),{movement:oA(N.columns,N.presets),menuBehaviours:lS.unnamedEvents(N.columns!=="auto"?[]:[wc((Be,qe)=>{QP(Be,4,kP(N.presets)).each(({numRows:ft,numColumns:yt})=>{ha.setGridSize(Be,ft,yt)})})])})))),LR=(l,N,W)=>{const fe=wi(l.tooltip.getOr("")),Se=ft=>({isEnabled:()=>!he.isDisabled(ft),setEnabled:yt=>he.set(ft,!yt),setIconFill:(yt,Lt)=>{qa(ft.element,`svg path[class="${yt}"], rect[class="${yt}"]`).each(Ht=>{Cr(Ht,"fill",Lt)})},setActive:yt=>{Cr(ft.element,"aria-pressed",yt),qa(ft.element,"span").each(Lt=>{ft.getSystem().getByDom(Lt).each(Ht=>us.set(Ht,yt))})},isActive:()=>qa(ft.element,"span").exists(yt=>ft.getSystem().getByDom(yt).exists(us.isOn)),setText:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,Ug,{text:yt}))),setIcon:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,J2,{icon:yt}))),setTooltip:yt=>{const Lt=N.providers.translate(yt);Cr(ft.element,"aria-label",Lt),fe.set(yt)}}),Be=wi(v),qe={getApi:Se,onSetup:l.onSetup};return rT.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...zU(l.tooltip,N.providers),...a(W)?{"data-mce-name":W}:{}}},onExecute:ft=>{const yt=Se(ft);yt.isEnabled()&&l.onAction(yt)},onItemExecute:(ft,yt,Lt)=>{},splitDropdownBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),Ka("split-dropdown-events",[wc((ft,yt)=>h9(ft)),Lo(fO,Ra.focus),cp(qe,Be),j2(qe,Be)]),bS.config({}),...l.tooltip.map(ft=>Vu.config({...N.providers.tooltips.getConfig({tooltipText:N.providers.translate(ft),onShow:yt=>{if(fe.get()!==ft){const Lt=N.providers.translate(fe.get());Vu.setComponents(yt,N.providers.tooltips.getComponents({tooltipText:Lt}))}}})})).toArray()]),eventOrder:{[Sh()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[zp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:N.getSink,fetch:xne(Se,l,N.providers),parts:{menu:Xk(!1,l.columns,l.presets)},components:[rT.parts.button(RR(l.icon,l.text,I.none(),I.some([us.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),N.providers)),rT.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:yP("chevron-down",N.providers.icons)},buttonBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),P6()])}),rT.parts["aria-descriptor"]({text:N.providers.translate("To open the popup, press Shift+Enter")})]})},_ne=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],oT=(l,N)=>(W,fe,Se,Be)=>{const qe=l(W).mapError(ft=>dn(ft)).getOrDie();return N(qe,fe,Se,Be)},VU={button:oT(Yz,(l,N,W,fe)=>yne(l,N.shared.providers,fe)),togglebutton:oT(Xz,(l,N,W,fe)=>bne(l,N.shared.providers,fe)),menubutton:oT(SV,(l,N,W,fe)=>N5(l,"tox-tbtn",N,I.none(),!1,fe)),splitbutton:oT(Qee,(l,N,W,fe)=>LR(l,N.shared,fe)),grouptoolbarbutton:oT(X5,(l,N,W,fe)=>{const Se=W.ui.registry.getAll().buttons,Be=ft=>iT(W,{buttons:Se,toolbar:ft,allowToolbarGroups:!1},N,I.none()),qe={[Nb]:N.shared.header.isPositionedAtTop()?ap.TopToBottom:ap.BottomToTop};switch(jw(W)){case C0.floating:return vne(l,N,Be,qe,fe);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},UU=(l,N,W,fe)=>Ge(VU,l.type).fold(()=>(console.error("skipping button defined by",l),I.none()),Se=>I.some(Se(l,N,W,fe))),jU={styles:dne,fontsize:ine,fontsizeinput:cne,fontfamily:Yte,blocks:Qte,align:xU},wne=l=>{const N=re(_ne,W=>{const fe=me(W.items,Se=>ht(l,Se)||ht(jU,Se));return{name:W.name,items:fe}});return me(N,W=>W.items.length>0)},One=l=>{const N=l.split("|");return re(N,W=>({items:W.trim().split(" ")}))},Sne=l=>p(l,N=>ht(N,"name")&&ht(N,"items")),kne=l=>{const N=l.toolbar,W=l.buttons;return N===!1?[]:N===void 0||N===!0?wne(W):n(N)?One(N):Sne(N)?N:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},Tne=(l,N,W,fe,Se,Be)=>Ge(N,W.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(N,ft+W.toLowerCase())))).fold(()=>Ge(jU,W.toLowerCase()).map(qe=>qe(l,Se)),qe=>qe.type==="grouptoolbarbutton"&&!fe?(console.warn(`Ignoring the '${W}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):UU(qe,Se,l,W.toLowerCase())),iT=(l,N,W,fe)=>{const Se=kne(N),Be=re(Se,qe=>{const ft=ve(qe.items,yt=>yt.trim().length===0?[]:Tne(l,N.buttons,yt,N.allowToolbarGroups,W,fe).toArray());return{title:I.from(l.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},QU=(l,N,W,fe)=>{const Se=N.mainUi.outerContainer,Be=W.toolbar,qe=W.buttons;if(p(Be,n)){const ft=Be.map(yt=>{const Lt={toolbar:yt,buttons:qe,allowToolbarGroups:W.allowToolbarGroups};return iT(l,Lt,fe,I.none())});Lc.setToolbars(Se,ft)}else Lc.setToolbar(Se,iT(l,W,fe,I.none()))},HU=va(),Cne=HU.os.isiOS()&&HU.os.version.major<=12,Ane=(l,N)=>{const{uiMotherships:W}=N,fe=l.dom;let Se=l.getWin();const Be=l.getDoc().documentElement,qe=wi(Qs(Se.innerWidth,Se.innerHeight)),ft=wi(Qs(Be.offsetWidth,Be.offsetHeight)),yt=()=>{const Rn=qe.get();(Rn.left!==Se.innerWidth||Rn.top!==Se.innerHeight)&&(qe.set(Qs(Se.innerWidth,Se.innerHeight)),J6(l))},Lt=()=>{const Rn=l.getDoc().documentElement,Bn=ft.get();(Bn.left!==Rn.offsetWidth||Bn.top!==Rn.offsetHeight)&&(ft.set(Qs(Rn.offsetWidth,Rn.offsetHeight)),J6(l))},Ht=Rn=>{uX(l,Rn)};fe.bind(Se,"resize",yt),fe.bind(Se,"scroll",Ht);const fn=i2(Nt.fromDom(l.getBody()),"load",Lt);l.on("hide",()=>{q(W,Rn=>{xr(Rn.element,"display","none")})}),l.on("show",()=>{q(W,Rn=>{zi(Rn.element,"display")})}),l.on("NodeChange",Lt),l.on("remove",()=>{fn.unbind(),fe.unbind(Se,"resize",yt),fe.unbind(Se,"scroll",Ht),Se=null})},e8=(l,N,W)=>{N2(l)&&Hb(W.mainUi.mothership.element,W.popupUi.mothership),kw(N,W.dialogUi.mothership)};var t8=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=N,ft=wi(0),yt=Be.outerContainer;zte(l);const Lt=Nt.fromDom(Se.targetNode),Ht=Er(kr(Lt));Hb(Lt,Be.mothership),e8(l,Ht,N),l.on("SkinLoaded",()=>{Lc.setSidebar(yt,W.sidebar,x6(l)),QU(l,N,W,fe),ft.set(l.getWin().innerWidth),Lc.setMenubar(yt,mU(l,W)),Lc.setViews(yt,W.views),Ane(l,N)});const fn=Lc.getSocket(yt).getOrDie("Could not find expected socket element");if(Cne){Oo(fn.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const cr=IK(()=>{l.dispatch("ScrollContent")},20),Xr=ud(fn.element,"scroll",cr.throttle);l.on("remove",Xr.unbind)}HP(l,N),l.addCommand("ToggleSidebar",(cr,Xr)=>{Lc.toggleSidebar(yt,Xr),gX(l)}),l.addQueryValueHandler("ToggleSidebar",()=>{var cr;return(cr=Lc.whichSidebar(yt))!==null&&cr!==void 0?cr:""}),l.addCommand("ToggleView",(cr,Xr)=>{if(Lc.toggleView(yt,Xr)){const br=yt.element;Be.mothership.broadcastOn([_1()],{target:br}),q(qe,Fr=>{Fr.broadcastOn([_1()],{target:br})}),S(Lc.whichView(yt))&&(l.focus(),l.nodeChanged(),Lc.refreshToolbar(yt)),vX(l)}}),l.addQueryValueHandler("ToggleView",()=>{var cr;return(cr=Lc.whichView(yt))!==null&&cr!==void 0?cr:""});const Rn=jw(l),Bn=()=>{Lc.refreshToolbar(N.mainUi.outerContainer)};(Rn===C0.sliding||Rn===C0.floating)&&l.on("ResizeWindow ResizeEditor ResizeContent",()=>{const cr=l.getWin().innerWidth;cr!==ft.get()&&(Bn(),ft.set(cr))});const er={setEnabled:cr=>{cS(N,!cr)},isEnabled:()=>!he.isDisabled(yt)};return{iframeContainer:fn.element.dom,editorContainer:yt.element.dom,api:er}}});const aT=l=>/^[0-9\.]+(|px)$/i.test(""+l)?I.some(parseInt(""+l,10)):I.none(),n8=l=>h(l)?l+"px":l,r8=(l,N,W)=>{const fe=N.filter(Be=>ll>Be);return fe.or(Se).getOr(l)},Mne=l=>{const N=Lk(l),W=eS(l),fe=g6(l);return aT(N).map(Se=>r8(Se,W,fe))},Ene=l=>Mne(l).getOr(Lk(l)),ZU=l=>{const N=UE(l),W=Uw(l),fe=Ik(l);return aT(N).map(Se=>r8(Se,W,fe))},Pne=l=>ZU(l).getOr(UE(l)),{ToolbarLocation:DS,ToolbarMode:IR}=gz,qU=40,WU=(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=W,ft=Fw.DOM,yt=tS(l),Lt=Qw(l),Ht=Ik(l).or(ZU(l)),fn=fe.shared.header,Rn=fn.isPositionedAtTop,Bn=150,er=jw(l),cr=er===IR.sliding||er===IR.floating,Xr=wi(!1),br=()=>Xr.get()&&!l.removed,Fr=Ui=>cr?Ui.fold(x(0),Ko=>Ko.components().length>1?il(Ko.components()[1].element):0):0,jr=Ui=>{switch(Dk(l)){case DS.auto:const Ko=Lc.getToolbar(Be.outerContainer),Oi=Fr(Ko),La=il(Ui.element)-Oi,_a=cl(N);if(_a.y>La)return"top";{const Qa=Hn(N),ac=Math.max(Qa.dom.scrollHeight,il(Qa));return _a.bottom{Se.on(Ko=>{fc.setModes(Ko,[Ui]),fn.setDockingMode(Ui);const Oi=Rn()?ap.TopToBottom:ap.BottomToTop;Cr(Ko.element,Nb,Oi)})},ko=()=>{Se.on(Ui=>{const Ko=Ht.getOrThunk(()=>Ks().width-iu(N).left-10);xr(Ui.element,"max-width",Ko+"px")})},_i=(Ui,Ko)=>{Se.on(Oi=>{const La=Lc.getToolbar(Be.outerContainer),_a=Fr(La),fa=cl(N),Qa=Pi(l,Be.outerContainer.element),ac=()=>Qa.fold(()=>fa.x,Wh=>{const Wg=cl(Wh);return _o(Wh,Lr())?fa.x:fa.x-Wg.x}),vl=()=>Qa.fold(()=>Rn()?Math.max(fa.y-il(Oi.element)+_a,0):fa.bottom,Wh=>{var Wg;const U0=cl(Wh),km=(Wg=Wh.dom.scrollTop)!==null&&Wg!==void 0?Wg:0,xO=_o(Wh,Lr())?Math.max(fa.y-il(Oi.element)+_a,0):fa.y-U0.y+km-il(Oi.element)+_a;return Rn()?xO:fa.bottom}),dp=ac(),qg=Ot(Ui,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(Wh=>Wh>Bn).map(Wh=>{const Wg=Ko.getOr(yc()),U0=window.innerWidth-(dp-Wg.left),km=Math.max(Math.min(Wh,U0),Bn);return U0N2(Ui)?jh(Ko):I.none(),Ao=()=>{q(qe,Ui=>{Ui.broadcastOn([qb()],{})})},$i=()=>!yt&&(Tc(Be.outerContainer.element).left+ma(Be.outerContainer.element)>=window.innerWidth-qU||Ia(Be.outerContainer.element,"width").isSome())?(xr(Be.outerContainer.element,"position","absolute"),xr(Be.outerContainer.element,"left","0px"),zi(Be.outerContainer.element,"width"),!0):!1,yi=Ui=>{if(!br())return;yt||ko();const Ko=yc(),Oi=yt?!1:$i();if(cr&&Lc.refreshToolbar(Be.outerContainer),!yt){const La=yc(),_a=Ot(Ko.left!==La.left,Ko);_i(Oi,_a),_a.each(fa=>{Cc(fa.left,La.top)})}Lt&&Se.on(Ui),Ao()},Xi=()=>yt||!Lt||!br()?!1:Se.get().exists(Ui=>{const Ko=fn.getDockingMode(),Oi=jr(Ui);return Oi!==Ko?(Ro(Oi),!0):!1});return{isVisible:br,isPositionedAtTop:Rn,show:()=>{Xr.set(!0),xr(Be.outerContainer.element,"display","flex"),ft.addClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{zi(Ui.element,"display")}),Xi(),N2(l)?yi(Ui=>fc.isDocked(Ui)?fc.reset(Ui):fc.refresh(Ui)):yi(fc.refresh)},hide:()=>{Xr.set(!1),xr(Be.outerContainer.element,"display","none"),ft.removeClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{xr(Ui.element,"display","none")})},update:yi,updateMode:()=>{Xi()&&yi(fc.reset)},repositionPopups:Ao}},DR=(l,N)=>{const W=cl(l);return{pos:N?W.y:W.bottom,bounds:W}},Rne=(l,N,W,fe)=>{const Se=wi(DR(N,W.isPositionedAtTop())),Be=Lt=>{const{pos:Ht,bounds:fn}=DR(N,W.isPositionedAtTop()),{pos:Rn,bounds:Bn}=Se.get(),er=fn.height!==Bn.height||fn.width!==Bn.width;Se.set({pos:Ht,bounds:fn}),er&&J6(l,Lt),W.isVisible()&&(Rn!==Ht?W.update(fc.reset):er&&(W.updateMode(),W.repositionPopups()))};fe||(l.on("activate",W.show),l.on("deactivate",W.hide)),l.on("SkinLoaded ResizeWindow",()=>W.update(fc.reset)),l.on("NodeChange keydown",Lt=>{requestAnimationFrame(()=>Be(Lt))});let qe=0;const ft=o9(()=>W.update(fc.refresh),33);l.on("ScrollWindow",()=>{const Lt=yc().left;Lt!==qe&&(qe=Lt,ft.throttle()),W.updateMode()}),N2(l)&&l.on("ElementScroll",Lt=>{W.update(fc.refresh)});const yt=Ol();yt.set(i2(Nt.fromDom(l.getBody()),"load",Lt=>Be(Lt.raw))),l.on("remove",()=>{yt.clear()})};var Ine=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be}=N,qe=ds(),ft=Nt.fromDom(Se.targetNode),yt=WU(l,ft,N,fe,qe),Lt=nz(l);Nte(l);const Ht=()=>{if(qe.isSet()){yt.show();return}qe.set(Lc.getHeader(Be.outerContainer).getOrDie());const Rn=GE(l);N2(l)?(Hb(ft,Be.mothership),Hb(ft,N.popupUi.mothership)):kw(Rn,Be.mothership),kw(Rn,N.dialogUi.mothership);const Bn=()=>{QU(l,N,W,fe),Lc.setMenubar(Be.outerContainer,mU(l,W)),yt.show(),Rne(l,ft,yt,Lt),l.nodeChanged()};Lt?l.once("SkinLoaded",Bn):Bn()};l.on("show",Ht),l.on("hide",yt.hide),Lt||(l.on("focus",Ht),l.on("blur",yt.hide)),l.on("init",()=>{(l.hasFocus()||Lt)&&Ht()}),HP(l,N);const fn={show:Ht,hide:yt.hide,setEnabled:Rn=>{cS(N,!Rn)},isEnabled:()=>!he.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:fn}}});const Dne=()=>{const l=ds(),N=ds(),W=ds();return{dialogUi:l,popupUi:N,mainUi:W,getUiMotherships:()=>{const Be=l.get().map(ft=>ft.mothership),qe=N.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],yt=>_o(ft.element,yt.element)?[ft]:[ft,yt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>W.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},Bne="contexttoolbar-show",YU="contexttoolbar-hide",zne=l=>({hide:()=>Za(l,Z1()),getValue:()=>Ei.getValue(l)}),BS=(l,N)=>Lo(h$,(W,fe)=>{const Se=l.get(W),Be=zne(Se);N.onAction(Be,fe.event.buttonApi)}),Nne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Yz({...Se,type:"button",onAction:v}));return FU(Be,W,[BS(l,N)])},Fne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Xz({...Se,type:"togglebutton",onAction:v}));return $U(Be,W,[BS(l,N)])},$ne=l=>l.type==="contextformtogglebutton",XU=(l,N,W)=>$ne(N)?Fne(l,N,W):Nne(l,N,W),Vne=(l,N,W)=>{const fe=re(N,qe=>ml(XU(l,qe,W)));return{asSpecs:()=>re(fe,qe=>qe.asSpec()),findPrimary:qe=>Oe(N,(ft,yt)=>ft.primary?I.from(fe[yt]).bind(Lt=>Lt.getOpt(qe)).filter(P(he.isDisabled)):I.none())}},BR=(l,N)=>{const W=l.label.fold(()=>({}),Be=>({"aria-label":Be})),fe=ml(Ww.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:l.initValue(),inputAttributes:W,selectOnFocus:!0,inputBehaviours:ei([ha.config({mode:"special",onEnter:Be=>Se.findPrimary(Be).map(qe=>(Bm(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),Se=Vne(fe,l.commands,N);return[{title:I.none(),items:[fe.asSpec()]},{title:I.none(),items:Se.asSpecs()}]},Une={renderContextForm:(l,N,W)=>ZA({type:l,uid:Li("context-toolbar"),initGroups:BR(N,W),onEscape:I.none,cyclicKeying:!0,providers:W}),buildInitGroups:BR},GU=(l,N,W)=>N.bottom-l.y>=W&&l.bottom-N.y>=W,jne=l=>{const N=l.getBoundingClientRect();if(N.height<=0&&N.width<=0){const W=Yn(Nt.fromDom(l.startContainer),l.startOffset).element;return(zr(W)?Dr(W):I.some(W)).filter(lr).map(Se=>Se.dom.getBoundingClientRect()).getOr(N)}else return N},zR=l=>{const N=l.selection.getRng(),W=jne(N);if(l.inline){const fe=yc();return vs(fe.left+W.left,fe.top+W.top,W.width,W.height)}else{const fe=bc(Nt.fromDom(l.getBody()));return vs(fe.x+W.left,fe.y+W.top,W.width,W.height)}},sT=(l,N)=>N.filter(W=>Gn(W)&&sr(W)).map(bc).getOrThunk(()=>zR(l)),KU=(l,N,W)=>{const fe=Math.max(l.x+W,N.x),Se=Math.min(l.right-W,N.right);return{x:fe,width:Se-fe}},Qne=(l,N,W,fe,Se,Be)=>{const qe=Nt.fromDom(l.getContainer()),ft=qa(qe,".tox-editor-header").getOr(qe),yt=cl(ft),Lt=yt.y>=N.bottom,Ht=fe&&!Lt;if(l.inline&&Ht)return{y:Math.max(yt.bottom+Be,W.y),bottom:W.bottom};if(l.inline&&!Ht)return{y:W.y,bottom:Math.min(yt.y-Be,W.bottom)};const fn=Se==="line"?cl(qe):N;return Ht?{y:Math.max(yt.bottom+Be,W.y),bottom:Math.min(fn.bottom-Be,W.bottom)}:{y:Math.max(fn.y+Be,W.y),bottom:Math.min(yt.y-Be,W.bottom)}},JU=(l,N,W,fe=0)=>{const Se=Ks(window),Be=cl(Nt.fromDom(l.getContentAreaContainer())),qe=_6(l)||Nk(l)||Fk(l),{x:ft,width:yt}=KU(Be,Se,fe);if(l.inline&&!qe)return vs(ft,Se.y,yt,Se.height);{const Lt=N.header.isPositionedAtTop(),{y:Ht,bottom:fn}=Qne(l,Be,Se,Lt,W,fe);return vs(ft,Ht,yt,fn-Ht)}},lT=12,o8={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},NR={maxHeightFunction:v1(),maxWidthFunction:ES()},ej=(l,N)=>{const W=l.selection.getRng(),fe=Yn(Nt.fromDom(W.startContainer),W.startOffset);return W.startContainer===W.endContainer&&W.startOffset===W.endOffset-1&&_o(fe.element,N)},Hne=(l,N,W)=>{const fe=Ia(l,"position");xr(l,"position",N);const Se=W(l);return fe.each(Be=>xr(l,"position",Be)),Se},dO=l=>l==="node",i8=(l,N,W,fe,Se)=>{const Be=zR(l),qe=fe.lastElement().exists(ft=>_o(W,ft));if(ej(l,W))return qe?Y$:ng;if(qe)return Hne(N,fe.getMode(),()=>GU(Be,cl(N),-20)&&!fe.isReposition()?X$:Y$);{const ft=fe.getMode()==="fixed"?Se.y+yc().top:Se.y,yt=il(N)+lT;return ft+yt<=Be.y?ng:CS}},a8=(l,N,W,fe)=>{const Se=yt=>(Lt,Ht,fn,Rn,Bn)=>{const er=i8(l,Rn,yt,W,Bn),cr={...Lt,y:Bn.y,height:Bn.height};return{...er(cr,Ht,fn,Rn,Bn),alwaysFit:!0}},Be=yt=>dO(fe)?[Se(yt)]:[];return N?{onLtr:yt=>[Iu,Lu,$c,dl,Mf,du].concat(Be(yt)),onRtl:yt=>[Iu,$c,Lu,Mf,dl,du].concat(Be(yt))}:{onLtr:yt=>[du,Iu,dl,Lu,Mf,$c].concat(Be(yt)),onRtl:yt=>[du,Iu,Mf,$c,dl,Lu].concat(Be(yt))}},FR=(l,N,W,fe)=>N==="line"?{bubble:wp(lT,0,o8),layouts:{onLtr:()=>[vv],onRtl:()=>[h1]},overrides:NR}:{bubble:wp(0,lT,o8,1/lT),layouts:a8(l,W,fe,N),overrides:NR},cT=(l,N)=>{const W=me(N,Be=>Be.predicate(l.dom)),{pass:fe,fail:Se}=ee(W,Be=>Be.type==="contexttoolbar");return{contextToolbars:fe,contextForms:Se}},tj=l=>{if(l.length<=1)return l;{const N=Be=>te(l,qe=>qe.position===Be),W=Be=>me(l,qe=>qe.position===Be),fe=N("selection"),Se=N("node");if(fe||Se)if(Se&&fe){const Be=W("node"),qe=re(W("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return W(fe?"selection":"node");else return W("line")}},s8=l=>{if(l.length<=1)return l;{const N=fe=>ce(l,Se=>Se.position===fe);return N("selection").orThunk(()=>N("node")).orThunk(()=>N("line")).map(fe=>fe.position).fold(()=>[],fe=>me(l,Se=>Se.position===fe))}},nj=(l,N,W)=>{const fe=cT(l,N);if(fe.contextForms.length>0)return I.some({elem:l,toolbars:[fe.contextForms[0]]});{const Se=cT(l,W);if(Se.contextForms.length>0)return I.some({elem:l,toolbars:[Se.contextForms[0]]});if(fe.contextToolbars.length>0||Se.contextToolbars.length>0){const Be=tj(fe.contextToolbars.concat(Se.contextToolbars));return I.some({elem:l,toolbars:Be})}else return I.none()}},rj=(l,N,W)=>l(N)?I.none():Hc(N,fe=>{if(lr(fe)){const{contextToolbars:Se,contextForms:Be}=cT(fe,W.inNodeScope),qe=Be.length>0?Be:s8(Se);return qe.length>0?I.some({elem:fe,toolbars:qe}):I.none()}else return I.none()},l),$R=(l,N)=>{const W=Nt.fromDom(N.getBody()),fe=qe=>_o(qe,W),Se=qe=>!fe(qe)&&!$o(W,qe),Be=Nt.fromDom(N.selection.getNode());return Se(Be)?I.none():nj(Be,l.inNodeScope,l.inEditorScope).orThunk(()=>rj(fe,Be,l))},Zne=(l,N)=>{const W={},fe=[],Se=[],Be={},qe={},ft=(Ht,fn)=>{const Rn=Mt(HY(fn));W[Ht]=Rn,Rn.launch.map(Bn=>{Be["form:"+Ht]={...fn.launch,type:Bn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{N(Rn)}}}),Rn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn},yt=(Ht,fn)=>{t5(fn).each(Rn=>{fn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn})},Lt=ke(l);return q(Lt,Ht=>{const fn=l[Ht];fn.type==="contextform"?ft(Ht,fn):fn.type==="contexttoolbar"&&yt(Ht,fn)}),{forms:W,inNodeScope:fe,inEditorScope:Se,lookupTable:qe,formNavigators:Be}},VR=Li("forward-slide"),oj=Li("backward-slide"),UR=Li("change-slide-event"),zS="tox-pop--resizing",ij=l=>{const N=wi([]);return Xc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:W=>{N.set([]),Xc.getContent(W).each(fe=>{zi(fe.element,"visibility")}),Zc(W.element,zS),zi(W.element,"width")},inlineBehaviours:ei([Ka("context-toolbar-events",[cy(rm(),(W,fe)=>{fe.event.raw.propertyName==="width"&&(Zc(W.element,zS),zi(W.element,"width"))}),Lo(UR,(W,fe)=>{const Se=W.element;zi(Se,"width");const Be=_s(Se);Xc.setContent(W,fe.event.contents),uc(Se,zS);const qe=_s(Se);xr(Se,"width",Be+"px"),Xc.getContent(W).each(ft=>{fe.event.focus.bind(yt=>(Md(yt),Wd(Se))).orThunk(()=>(ha.focusIn(ft),um(kr(Se))))}),setTimeout(()=>{xr(W.element,"width",qe+"px")},0)}),Lo(VR,(W,fe)=>{Xc.getContent(W).each(Se=>{N.set(N.get().concat([{bar:Se,focus:um(kr(W.element))}]))}),sa(W,UR,{contents:fe.event.forwardContents,focus:I.none()})}),Lo(oj,(W,fe)=>{Ve(N.get()).each(Se=>{N.set(N.get().slice(0,N.get().length-1)),sa(W,UR,{contents:ea(Se.bar),focus:Se.focus})})})]),ha.config({mode:"special",onEscape:W=>Ve(N.get()).fold(()=>l.onEscape(),fe=>(Za(W,oj),I.some(!0)))})]),lazySink:()=>aa.value(l.sink)})},jR="tox-pop--transition",qne=(l,N,W,fe)=>{const Se=fe.backstage,Be=Se.shared,qe=va().deviceType.isTouch,ft=ds(),yt=ds(),Lt=ds(),Ht=ka(ij({sink:W,onEscape:()=>(l.focus(),I.some(!0))})),fn=()=>{const yi=Lt.get().getOr("node"),Xi=dO(yi)?1:0;return JU(l,Be,yi,Xi)},Rn=()=>!l.removed&&!(qe()&&Se.isContextMenuOpen()),Bn=yi=>St(ln(yi,ft.get(),_o),!0),er=()=>{if(Rn()){const yi=fn(),Xi=St(Lt.get(),"node")?sT(l,ft.get()):zR(l);return yi.height<=0||!GU(Xi,yi,.01)}else return!0},cr=()=>{ft.clear(),yt.clear(),Lt.clear(),Xc.hide(Ht)},Xr=()=>{if(Xc.isOpen(Ht)){const yi=Ht.element;zi(yi,"display"),er()?xr(yi,"display","none"):(yt.set(0),Xc.reposition(Ht))}},br=yi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[yi],behaviours:ei([ha.config({mode:"acyclic"}),Ka("pop-dialog-wrap-events",[wc(Xi=>{l.shortcuts.add("ctrl+F9","focus statusbar",()=>ha.focusIn(Xi))}),xg(Xi=>{l.shortcuts.remove("ctrl+F9")})])])}),Fr=Uc(()=>Zne(N,yi=>{const Xi=ko([yi]);sa(Ht,VR,{forwardContents:br(Xi)})})),jr=(yi,Xi)=>iT(l,{buttons:yi,toolbar:Xi.items,allowToolbarGroups:!1},fe.backstage,I.some(["form:"])),Ro=(yi,Xi)=>Une.buildInitGroups(yi,Xi),ko=yi=>{const{buttons:Xi}=l.ui.registry.getAll(),ks=Fr(),Ic={...Xi,...ks.formNavigators},hl=jw(l)===C0.scrolling?C0.scrolling:C0.default,Ui=ye(re(yi,Ko=>Ko.type==="contexttoolbar"?jr(Ic,Ko):Ro(Ko,Be.providers)));return ZA({type:hl,uid:Li("context-toolbar"),initGroups:Ui,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},_i=(yi,Xi)=>{const ks=yi==="node"?Be.anchors.node(Xi):Be.anchors.cursor(),Ic=FR(l,yi,qe(),{lastElement:ft.get,isReposition:()=>St(yt.get(),0),getMode:()=>Rh.getMode(W)});return ws(ks,Ic)},Pi=(yi,Xi)=>{if($i.cancel(),!Rn())return;const ks=ko(yi),Ic=yi[0].position,hl=_i(Ic,Xi);Lt.set(Ic),yt.set(1);const Ui=Ht.element;zi(Ui,"display"),Bn(Xi)||(Zc(Ui,jR),Rh.reset(W,Ht)),Xc.showWithinBounds(Ht,br(ks),{anchor:hl,transition:{classes:[jR],mode:"placement"}},()=>I.some(fn())),Xi.fold(ft.clear,ft.set),er()&&xr(Ui,"display","none")};let Ao=!1;const $i=o9(()=>{if(!(!l.hasFocus()||l.removed||Ao))if(rp(Ht.element,jR))$i.throttle();else{const yi=Fr();$R(yi,l).fold(cr,Xi=>{Pi(Xi.toolbars,I.some(Xi.elem))})}},17);l.on("init",()=>{l.on("remove",cr),l.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Xr),l.on("click keyup focus SetContent",$i.throttle),l.on(YU,cr),l.on(Bne,yi=>{const Xi=Fr();Ge(Xi.lookupTable,yi.toolbarKey).each(ks=>{Pi([ks],Ot(yi.target!==l,yi.target)),Xc.getContent(Ht).each(ha.focusIn)})}),l.on("focusout",yi=>{J3.setEditorTimeout(l,()=>{Wd(W.element).isNone()&&Wd(Ht.element).isNone()&&cr()},0)}),l.on("SwitchMode",()=>{l.mode.isReadOnly()&&cr()}),l.on("ExecCommand",({command:yi})=>{yi.toLowerCase()==="toggleview"&&cr()}),l.on("AfterProgressState",yi=>{yi.state?cr():l.hasFocus()&&$i.throttle()}),l.on("dragstart",()=>{Ao=!0}),l.on("dragend drop",()=>{Ao=!1}),l.on("NodeChange",yi=>{Wd(Ht.element).fold($i.throttle,v)})})},Wne=l=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],W=>{l.ui.registry.addToggleButton(W.name,{tooltip:W.text,icon:W.icon,onAction:tg(l,W.cmd),onSetup:tA(l,W.name)})}),l.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:kp(l),onAction:tg(l,"JustifyNone")})},aj=(l,N)=>{const W=()=>{const fe=N.getOptions(l),Se=N.getCurrent(l).map(N.hash),Be=ds();return re(fe,qe=>({type:"togglemenuitem",text:N.display(qe),onSetup:ft=>{const yt=Ht=>{Ht&&(Be.on(fn=>fn.setActive(!1)),Be.set(ft)),ft.setActive(Ht)};yt(St(Se,N.hash(qe)));const Lt=N.watcher(l,qe,yt);return()=>{Be.clear(),Lt()}},onAction:()=>N.setCurrent(l,qe)}))};l.ui.registry.addMenuButton(N.name,{tooltip:N.text,icon:N.icon,fetch:fe=>fe(W()),onSetup:N.onToolbarSetup}),l.ui.registry.addNestedMenuItem(N.name,{type:"nestedmenuitem",text:N.text,getSubmenuItems:W,onSetup:N.onMenuSetup})},Yne=l=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:pz,hash:N=>Kte(N,["fixed","relative","empty"]).getOr(N),display:R,watcher:(N,W,fe)=>N.formatter.formatChanged("lineheight",fe,!1,{value:W}).unbind,getCurrent:N=>I.from(N.queryCommandValue("LineHeight")),setCurrent:(N,W)=>N.execCommand("LineHeight",!1,W),onToolbarSetup:kp(l),onMenuSetup:kp(l)}),sj=l=>I.from(ez(l)).map(W=>({name:"language",text:"Language",icon:"language",getOptions:x(W),hash:fe=>y(fe.customCode)?fe.code:`${fe.code}/${fe.customCode}`,display:fe=>fe.title,watcher:(fe,Se,Be)=>{var qe;return fe.formatter.formatChanged("lang",Be,!1,{value:Se.code,customValue:(qe=Se.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:fe=>{const Se=Nt.fromDom(fe.selection.getNode());return Nl(Se,Be=>I.some(Be).filter(lr).bind(qe=>Eo(qe,"lang").map(yt=>{const Lt=Eo(qe,"data-mce-lang").getOrUndefined();return{code:yt,customCode:Lt,title:""}})))},setCurrent:(fe,Se)=>fe.execCommand("Lang",!1,Se),onToolbarSetup:fe=>{const Se=Ol();return fe.setActive(l.formatter.match("lang",{},void 0,!0)),Se.set(l.formatter.formatChanged("lang",fe.setActive,!0)),eA(Se.clear,kp(l)(fe))},onMenuSetup:kp(l)})),lj=l=>{aj(l,Yne(l)),sj(l).each(N=>aj(l,N))},cj=(l,N)=>{i_(l,N),Xte(l,N),LU(l,N),Hte(l,N),une(l,N)},uj=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.queryCommandState("outdent")&&l.selection.isEditable())}),Xne=l=>{l.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:uj(l),onAction:tg(l,"outdent")}),l.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:kp(l),onAction:tg(l,"indent")})},fj=l=>{Xne(l)},QR=(l,N)=>W=>{W.setActive(N.get());const fe=Se=>{N.set(Se.state),W.setActive(Se.state)};return l.on("PastePlainTextToggle",fe),eA(()=>l.off("PastePlainTextToggle",fe),kp(l)(W))},Gne=l=>{const N=wi(qE(l)),W=()=>l.execCommand("mceTogglePlainTextPaste");l.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:W,onSetup:QR(l,N)}),l.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:W,onSetup:QR(l,N)})},dj=(l,N)=>()=>{l.execCommand("mceToggleFormat",!1,N)},Kne=l=>{hx.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(N,W)=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:tA(l,N.name),onAction:dj(l,N.name),shortcut:N.shortcut})});for(let N=1;N<=6;N++){const W="h"+N,fe=`Access+${N}`;l.ui.registry.addToggleButton(W,{text:W.toUpperCase(),tooltip:"Heading "+N,onSetup:tA(l,W),onAction:dj(l,W),shortcut:fe})}},Jne=l=>{hx.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),shortcut:N.shortcut})}),hx.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:kp(l),onAction:tg(l,N.action)})})},ere=l=>{hx.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],N=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),onSetup:tA(l,N.name)})})},tre=l=>{Kne(l),Jne(l),ere(l)},nre=l=>{hx.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onAction:tg(l,N.action)})}),hx.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onSetup:kp(l),onAction:tg(l,N.action)})}),l.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:kp(l),onAction:dj(l,"code")})},rre=l=>{tre(l),nre(l)},l8=(l,N)=>tO(l,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",W=>{W.setEnabled(!l.mode.isReadOnly()&&l.undoManager[N]())}),ore=l=>{l.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:l8(l,"hasUndo"),onAction:tg(l,"undo")}),l.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:l8(l,"hasRedo"),onAction:tg(l,"redo")})},ire=l=>{l.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:l8(l,"hasUndo"),onAction:tg(l,"undo"),shortcut:"Meta+Z"}),l.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:l8(l,"hasRedo"),onAction:tg(l,"redo"),shortcut:"Meta+Y"})},are=l=>{ore(l),ire(l)},sre=l=>tO(l,"VisualAid",N=>{N.setActive(l.hasVisual)}),lre=l=>{l.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:sre(l),onAction:tg(l,"mceToggleVisualAid")})},cre=l=>{l.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:tg(l,"mceToggleVisualAid")})},hj=l=>{cre(l),lre(l)},ure=(l,N)=>{Wne(l),rre(l),cj(l,N),are(l),TX(l),hj(l),fj(l),lj(l),Gne(l)},fre=l=>n(l)?l.split(/[ ,]/):l,pj=l=>N=>N.options.get(l),dre=l=>{const N=l.options.register;N("contextmenu_avoid_overlap",{processor:"string",default:""}),N("contextmenu_never_use_native",{processor:"boolean",default:!1}),N("contextmenu",{processor:W=>W===!1?{value:[],valid:!0}:n(W)||p(W,n)?{value:fre(W),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},mj=pj("contextmenu_never_use_native"),hre=pj("contextmenu_avoid_overlap"),pre=l=>gj(l).length===0,gj=l=>{const N=l.ui.registry.getAll().contextMenus,W=l.options.get("contextmenu");return l.options.isSet("contextmenu")?W:me(W,fe=>ht(N,fe))},uT=(l,N)=>({type:"makeshift",x:l,y:N}),HR=(l,N,W)=>uT(l.x+N,l.y+W),vj=l=>l.type==="longpress"||l.type.indexOf("touch")===0,mre=l=>{if(vj(l)){const N=l.touches[0];return uT(N.pageX,N.pageY)}else return uT(l.pageX,l.pageY)},ZR=l=>{if(vj(l)){const N=l.touches[0];return uT(N.clientX,N.clientY)}else return uT(l.clientX,l.clientY)},yj=(l,N)=>{const W=Fw.DOM.getPos(l);return HR(N,W.x,W.y)},bj=(l,N)=>N.type==="contextmenu"||N.type==="longpress"?l.inline?mre(N):yj(l.getContentAreaContainer(),ZR(N)):xj(l),xj=l=>({type:"selection",root:Nt.fromDom(l.selection.getNode())}),gre=l=>({type:"node",node:I.some(Nt.fromDom(l.selection.getNode())),root:Nt.fromDom(l.getBody())}),_j=(l,N,W)=>{switch(W){case"node":return gre(l);case"point":return bj(l,N);case"selection":return xj(l)}},vre=(l,N,W,fe,Se,Be)=>{const qe=W(),ft=_j(l,N,Be);OS(qe,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!1,search:I.none()}).map(yt=>{N.preventDefault(),Xc.showMenuAt(Se,{anchor:ft},{menu:{markers:qw("normal")},data:yt})})},yre={onLtr:()=>[Iu,Lu,$c,dl,Mf,du,ng,CS,TS,LA,Q5,RA],onRtl:()=>[Iu,$c,Lu,Mf,dl,du,ng,CS,Q5,RA,TS,LA]},qR=12,bre={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},wj=(l,N)=>{const W=l.selection;if(W.isCollapsed()||N.touches.length<1)return!1;{const fe=N.touches[0],Se=W.getRng();return Ef(l.getWin(),Ay.domRange(Se)).exists(qe=>qe.left<=fe.clientX&&qe.right>=fe.clientX&&qe.top<=fe.clientY&&qe.bottom>=fe.clientY)}},xre=l=>{const N=l.selection.getRng(),W=()=>{J3.setEditorTimeout(l,()=>{l.selection.setRng(N)},10),Be()};l.once("touchend",W);const fe=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};l.on("mousedown",fe,!0);const Se=()=>Be();l.once("longpresscancel",Se);const Be=()=>{l.off("touchend",W),l.off("longpresscancel",Se),l.off("mousedown",fe)}},_re=(l,N,W)=>{const fe=_j(l,N,W);return{bubble:wp(0,W==="point"?qR:0,bre),layouts:yre,overrides:{maxWidthFunction:ES(),maxHeightFunction:v1()},...fe}},WR=(l,N,W,fe,Se,Be,qe)=>{const ft=_re(l,N,Be);OS(W,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!0,search:I.none()}).map(yt=>{N.preventDefault();const Lt=qe?Gu.HighlightMenuAndItem:Gu.HighlightNone;Xc.showMenuWithinBounds(Se,{anchor:ft},{menu:{markers:qw("normal"),highlightOnOpen:Lt},data:yt,type:"horizontal"},()=>I.some(JU(l,fe.shared,Be==="node"?"node":"selection"))),l.dispatch(YU)})},wre=(l,N,W,fe,Se,Be)=>{const qe=va(),ft=qe.os.isiOS(),yt=qe.os.isMacOS(),Lt=qe.os.isAndroid(),Ht=qe.deviceType.isTouch(),fn=()=>!(Lt||ft||yt&&Ht),Rn=()=>{const Bn=W();WR(l,N,Bn,fe,Se,Be,fn())};if((yt||ft)&&Be!=="node"){const Bn=()=>{xre(l),Rn()};wj(l,N)?Bn():(l.once("selectionchange",Bn),l.once("touchend",()=>l.off("selectionchange",Bn)))}else Rn()},YR=l=>n(l)?l==="|":l.type==="separator",XR={type:"separator"},Oj=l=>{const N=W=>({text:W.text,icon:W.icon,enabled:W.enabled,shortcut:W.shortcut});if(n(l))return l;switch(l.type){case"separator":return XR;case"submenu":return{type:"nestedmenuitem",...N(l),getSubmenuItems:()=>{const fe=l.getSubmenuItems();return n(fe)?fe:re(fe,Oj)}};default:const W=l;return{type:"menuitem",...N(W),onAction:_(W.onAction)}}},c8=(l,N)=>{if(N.length===0)return l;const fe=Ve(l).filter(Se=>!YR(Se)).fold(()=>[],Se=>[XR]);return l.concat(fe).concat(N).concat([XR])},Ore=(l,N,W)=>{const fe=se(N,(Se,Be)=>Ge(l,Be.toLowerCase()).map(qe=>{const ft=qe.update(W);if(n(ft)&&it(Dt(ft)))return c8(Se,ft.split(" "));if(i(ft)&&ft.length>0){const yt=re(ft,Oj);return c8(Se,yt)}else return Se}).getOrThunk(()=>Se.concat([Be])),[]);return fe.length>0&&YR(fe[fe.length-1])&&fe.pop(),fe},Sre=(l,N)=>N.ctrlKey&&!mj(l),kre=l=>l.type==="longpress"||ht(l,"touches"),Sj=(l,N)=>!kre(N)&&(N.button!==2||N.target===l.getBody()&&N.pointerType===""),kj=(l,N)=>Sj(l,N)?l.selection.getStart(!0):N.target,Tj=(l,N)=>{const W=hre(l),fe=Sj(l,N)?"selection":"point";if(it(W)){const Se=kj(l,N);return f5(Nt.fromDom(Se),W)?"node":fe}else return fe},Tre=(l,N,W)=>{const Se=va().deviceType.isTouch,Be=ka(Xc.sketch({dom:{tag:"div"},lazySink:N,onEscape:()=>l.focus(),onShow:()=>W.setContextMenuState(!0),onHide:()=>W.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissContextMenu",[Lo(J0(),(yt,Lt)=>{Ys.close(yt),l.focus()})])])})),qe=()=>Xc.hide(Be),ft=yt=>{if(mj(l)&&yt.preventDefault(),Sre(l,yt)||pre(l))return;const Lt=Tj(l,yt),Ht=()=>{const Rn=kj(l,yt),Bn=l.ui.registry.getAll(),er=gj(l);return Ore(Bn.contextMenus,er,Rn)};(Se()?wre:vre)(l,yt,Ht,W,Be,Lt)};l.on("init",()=>{const yt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(Se()?"":" ResizeWindow");l.on(yt,qe),l.on("longpress contextmenu",ft)})},GR=Nn.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),u8=l=>N=>N.translate(-l.left,-l.top),f8=l=>N=>N.translate(l.left,l.top),mx=l=>(N,W)=>se(l,(fe,Se)=>Se(fe),Qs(N,W)),d8=(l,N,W)=>l.fold(mx([f8(W),u8(N)]),mx([u8(N)]),mx([])),NS=(l,N,W)=>l.fold(mx([f8(W)]),mx([]),mx([f8(N)])),Cj=(l,N,W)=>l.fold(mx([]),mx([u8(W)]),mx([f8(N),u8(W)])),Aj=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be);return Math.abs(qe.left-ft.left)<=W&&Math.abs(qe.top-ft.top)<=fe},Cre=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be),yt=Math.abs(qe.left-ft.left),Lt=Math.abs(qe.top-ft.top);return Qs(yt,Lt)},KR=(l,N,W)=>{const fe=l.fold((Se,Be)=>({position:I.some("absolute"),left:I.some(Se+"px"),top:I.some(Be+"px")}),(Se,Be)=>({position:I.some("absolute"),left:I.some(Se-W.left+"px"),top:I.some(Be-W.top+"px")}),(Se,Be)=>({position:I.some("fixed"),left:I.some(Se+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...fe}},Are=(l,N,W)=>l.fold((fe,Se)=>h8(fe+N,Se+W),(fe,Se)=>Qg(fe+N,Se+W),(fe,Se)=>a_(fe+N,Se+W)),JR=(l,N,W,fe)=>{const Se=(Be,qe)=>(ft,yt)=>{const Lt=Be(N,W,fe);return qe(ft.getOr(Lt.left),yt.getOr(Lt.top))};return l.fold(Se(Cj,h8),Se(NS,Qg),Se(d8,a_))},h8=GR.offset,Qg=GR.absolute,a_=GR.fixed,Mj=(l,N)=>{const W=Nr(l,N);return y(W)?NaN:parseInt(W,10)},Mre=(l,N)=>{const W=l.element,fe=Mj(W,N.leftAttr),Se=Mj(W,N.topAttr);return isNaN(fe)||isNaN(Se)?I.none():I.some(Qs(fe,Se))},Ere=(l,N,W)=>{const fe=l.element;Cr(fe,N.leftAttr,W.left+"px"),Cr(fe,N.topAttr,W.top+"px")},Pre=(l,N)=>{const W=l.element;Qt(W,N.leftAttr),Qt(W,N.topAttr)},Ej=(l,N,W,fe)=>Mre(l,N).fold(()=>W,Se=>a_(Se.left+fe.left,Se.top+fe.top)),Rre=(l,N,W,fe,Se,Be)=>{const qe=Ej(l,N,W,fe),ft=N.mustSnap?Ire(l,N,qe,Se,Be):Dre(l,N,qe,Se,Be),yt=d8(qe,Se,Be);return Ere(l,N,yt),ft.fold(()=>({coord:a_(yt.left,yt.top),extra:I.none()}),Lt=>({coord:Lt.output,extra:Lt.extra}))},Lre=(l,N)=>{Pre(l,N)},Pj=(l,N,W,fe)=>Oe(l,Se=>{const Be=Se.sensor;return Aj(N,Be,Se.range.left,Se.range.top,W,fe)?I.some({output:JR(Se.output,N,W,fe),extra:Se.extra}):I.none()}),Ire=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Pj(Be,W,fe,Se).orThunk(()=>se(Be,(yt,Lt)=>{const Ht=Lt.sensor,fn=Cre(W,Ht,Lt.range.left,Lt.range.top,fe,Se);return yt.deltas.fold(()=>({deltas:I.some(fn),snap:I.some(Lt)}),Rn=>{const Bn=(fn.left+fn.top)/2,er=(Rn.left+Rn.top)/2;return Bn<=er?{deltas:I.some(fn),snap:I.some(Lt)}:yt})},{deltas:I.none(),snap:I.none()}).snap.map(yt=>({output:JR(yt.output,W,fe,Se),extra:yt.extra})))},Dre=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Pj(Be,W,fe,Se)},Bre=(l,N,W)=>({coord:JR(l.output,l.output,N,W),extra:l.extra});var zre=Object.freeze({__proto__:null,snapTo:(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=Bre(fe,qe,ft),Lt=KR(yt.coord,qe,ft);mi(Se,Lt)}}});const eL="data-initial-z-index",Nre=l=>{Dr(l.element).filter(lr).each(N=>{Eo(N,eL).fold(()=>zi(N,"z-index"),W=>xr(N,"z-index",W)),Qt(N,eL)})},Rj=l=>{Dr(l.element).filter(lr).each(N=>{Ia(N,"z-index").each(W=>{Cr(N,eL,W)}),xr(N,"z-index",Di(l.element,"z-index"))})},tL=(l,N)=>{l.getSystem().addToGui(N),Rj(N)},Fre=l=>{Nre(l),l.getSystem().removeFromGui(l)},FS=(l,N,W)=>l.getSystem().build(Iv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[N]},events:W}));var $re=Ai("snaps",[pn("getSnapPoints"),Ss("onSensor"),pn("leftAttr"),pn("topAttr"),Ar("lazyViewport",ts),Ar("mustSnap",!1)]);const nL=[Ar("useFixed",D),pn("blockerClass"),Ar("getTarget",R),Ar("onDrag",v),Ar("repositionTarget",!0),Ar("onDrop",v),ys("getBounds",ts),$re],rL=l=>tn(Ia(l,"left"),Ia(l,"top"),Ia(l,"position"),(N,W,fe)=>(fe==="fixed"?a_:h8)(parseInt(N,10),parseInt(W,10))).getOrThunk(()=>{const N=Tc(l);return Qg(N.left,N.top)}),Vre=(l,N,W,fe,Se)=>{const Be=Se.bounds,qe=NS(N,W,fe),ft=Mh(qe.left,Be.x,Be.x+Be.width-Se.width),yt=Mh(qe.top,Be.y,Be.y+Be.height-Se.height),Lt=Qg(ft,yt);return N.fold(()=>{const Ht=Cj(Lt,W,fe);return h8(Ht.left,Ht.top)},x(Lt),()=>{const Ht=d8(Lt,W,fe);return a_(Ht.left,Ht.top)})},Ure=(l,N,W,fe,Se,Be,qe)=>{const ft=N.fold(()=>{const yt=Are(W,Be.left,Be.top),Lt=d8(yt,fe,Se);return a_(Lt.left,Lt.top)},yt=>{const Lt=Rre(l,yt,W,Be,fe,Se);return Lt.extra.each(Ht=>{yt.onSensor(l,Ht)}),Lt.coord});return Vre(l,ft,fe,Se,qe)},jre=(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=rL(Se),Lt=Ure(l,N.snaps,yt,qe,ft,fe,W),Ht=KR(Lt,qe,ft);mi(Se,Ht)}N.onDrag(l,Se,fe)},Lj=(l,N)=>({bounds:l.getBounds(),height:nf(N.element),width:ma(N.element)}),oL=(l,N,W,fe,Se)=>{const Be=W.update(fe,Se),qe=W.getStartData().getOrThunk(()=>Lj(N,l));Be.each(ft=>{jre(l,N,qe,ft)})},Ij=(l,N,W,fe)=>{N.each(Fre),W.snaps.each(Be=>{Lre(l,Be)});const Se=W.getTarget(l.element);fe.reset(),W.onDrop(l,Se)},iL=l=>(N,W)=>{const fe=Se=>{W.setStartData(Lj(N,Se))};return Rl([Lo(Im(),Se=>{W.getStartData().each(()=>fe(Se))}),...l(N,W,fe)])},Qre=l=>Rl([Lo(Nc(),l.forceDrop),Lo(a0(),l.drop),Lo(o0(),(N,W)=>{l.move(W.event)}),Lo(i0(),l.delayDrop)]);var Hre=Object.freeze({__proto__:null,getData:l=>I.from(Qs(l.x,l.y)),getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Dj=(l,N,W)=>[Lo(Nc(),(fe,Se)=>{if(Se.event.raw.button!==0)return;Se.stop();const qe=()=>Ij(fe,I.some(Lt),l,N),ft=oF(qe,200),yt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:fn=>{ft.cancel(),oL(fe,l,N,Hre,fn)}},Lt=FS(fe,l.blockerClass,Qre(yt));(()=>{W(fe),tL(fe,Lt)})()})],Zre=[...nL,Sl("dragger",{handlers:iL(Dj)})],qre=l=>Rl([Lo(Uh(),l.forceDrop),Lo(Gl(),l.drop),Lo(Sf(),l.drop),Lo(ss(),(N,W)=>{l.move(W.event)})]),Wre=l=>{const N=l[0];return I.some(Qs(N.clientX,N.clientY))};var fT=Object.freeze({__proto__:null,getData:l=>{const W=l.raw.touches;return W.length===1?Wre(W):I.none()},getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Bj=(l,N,W)=>{const fe=ds(),Se=Be=>{Ij(Be,fe.get(),l,N),fe.clear()};return[Lo(Uh(),(Be,qe)=>{qe.stop();const ft=()=>Se(Be),yt={drop:ft,delayDrop:v,forceDrop:ft,move:fn=>{oL(Be,l,N,fT,fn)}},Lt=FS(Be,l.blockerClass,qre(yt));fe.set(Lt),(()=>{W(Be),tL(Be,Lt)})()}),Lo(ss(),(Be,qe)=>{qe.stop(),oL(Be,l,N,fT,qe.event)}),Lo(Gl(),(Be,qe)=>{qe.stop(),Se(Be)}),Lo(Sf(),Se)]},Yre=[...nL,Sl("dragger",{handlers:iL(Bj)})],Xre=(l,N,W)=>[...Dj(l,N,W),...Bj(l,N,W)],Gre=[...nL,Sl("dragger",{handlers:iL(Xre)})];var Jre=Object.freeze({__proto__:null,mouse:Zre,touch:Yre,mouseOrTouch:Gre}),eoe=Object.freeze({__proto__:null,init:()=>{let l=I.none(),N=I.none();const W=()=>{l=I.none(),N=I.none()},fe=(yt,Lt)=>{const Ht=l.map(fn=>yt.getDelta(fn,Lt));return l=I.some(Lt),Ht},Se=(yt,Lt)=>yt.getData(Lt).bind(Ht=>fe(yt,Ht)),Be=yt=>{N=I.some(yt)},qe=()=>N,ft=x({});return Hd({readState:ft,reset:W,update:Se,getStartData:qe,setStartData:Be})}});const hO=HO({branchKey:"mode",branches:Jre,name:"dragging",active:{events:(l,N)=>l.dragger.handlers(l,N)},extra:{snap:l=>({sensor:l.sensor,range:l.range,output:l.output,extra:I.from(l.extra)})},state:eoe,apis:zre}),aL=40,$S=aL/2,sL=(l,N,W,fe,Se,Be)=>l.fold(()=>hO.snap({sensor:Qg(W-$S,fe-$S),range:Qs(Se,Be),output:Qg(I.some(W),I.some(fe)),extra:{td:N}}),qe=>{const ft=W-$S,yt=fe-$S,Lt=aL,Ht=aL,fn=qe.element.dom.getBoundingClientRect();return hO.snap({sensor:Qg(ft,yt),range:Qs(Lt,Ht),output:Qg(I.some(W-fn.width/2),I.some(fe-fn.height/2)),extra:{td:N}})}),zj=(l,N,W)=>{const fe=(Se,Be)=>Se.exists(qe=>_o(qe,Be));return{getSnapPoints:l,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(Se,Be)=>{const qe=Be.td;fe(N.get(),qe)||(N.set(qe),W(qe))},mustSnap:!0}},Nj=l=>ml(Lh.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:ei([hO.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:l}),bS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),toe=(l,N)=>{const W=wi([]),fe=wi([]),Se=wi(!1),Be=ds(),qe=ds(),ft=Pi=>{const Ao=bc(Pi);return sL(Bn.getOpt(N),Pi,Ao.x,Ao.y,Ao.width,Ao.height)},yt=()=>re(W.get(),Pi=>ft(Pi)),Lt=Pi=>{const Ao=bc(Pi);return sL(er.getOpt(N),Pi,Ao.right,Ao.bottom,Ao.width,Ao.height)},Ht=()=>re(fe.get(),Pi=>Lt(Pi)),fn=zj(yt,Be,Pi=>{qe.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Pi,finish:Ao})})}),Rn=zj(Ht,qe,Pi=>{Be.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Ao,finish:Pi})})}),Bn=Nj(fn),er=Nj(Rn),cr=ka(Bn.asSpec()),Xr=ka(er.asSpec()),br=(Pi,Ao,$i,yi)=>{const Xi=Ao.dom.getBoundingClientRect();zi(Pi.element,"display");const ks=ar(Nt.fromDom(l.getBody())).dom.innerHeight,Ic=$i(Xi),hl=yi(Xi,ks);(Ic||hl)&&xr(Pi.element,"display","none")},Fr=(Pi,Ao,$i,yi)=>{const Xi=$i(Ao);hO.snapTo(Pi,Xi),br(Pi,Ao,hl=>hl[yi]<0,(hl,Ui)=>hl[yi]>Ui)},jr=Pi=>Fr(cr,Pi,ft,"top"),Ro=()=>Be.get().each(jr),ko=Pi=>Fr(Xr,Pi,Lt,"bottom"),_i=()=>qe.get().each(ko);if(va().deviceType.isTouch()){const Pi=Ao=>re(Ao,Nt.fromDom);l.on("TableSelectionChange",Ao=>{Se.get()||(Eg(N,cr),Eg(N,Xr),Se.set(!0));const $i=Nt.fromDom(Ao.start),yi=Nt.fromDom(Ao.finish);Be.set($i),qe.set(yi),I.from(Ao.otherCells).each(Xi=>{W.set(Pi(Xi.upOrLeftCells)),fe.set(Pi(Xi.downOrRightCells)),jr($i),ko(yi)})}),l.on("ResizeEditor ResizeWindow ScrollContent",()=>{Ro(),_i()}),l.on("TableSelectionClear",()=>{Se.get()&&(kv(cr),kv(Xr),Se.set(!1)),Be.clear(),qe.clear()})}};var noe=` +`;const roe=(l,N)=>{const W=I.from(Nr(l,"id")).getOrThunk(()=>{const fe=Li("aria");return Cr(N,"id",fe),fe});Cr(l,"aria-describedby",W)},ooe=l=>{Qt(l,"aria-describedby")},ioe=l=>l.nodeName==="BR"||!!l.getAttribute("data-mce-bogus")||l.getAttribute("data-mce-type")==="bookmark",aoe=(l,N,W)=>{var fe;const Se=(fe=N.delimiter)!==null&&fe!==void 0?fe:"›",Be=(Lt,Ht,fn)=>Lh.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":fn}},components:[Po(Lt)],action:Rn=>{l.focus(),l.selection.select(Ht),l.nodeChanged()},buttonBehaviours:ei([Vu.config({...W.tooltips.getConfig({tooltipText:W.translate(["Select the {0} element",Ht.nodeName.toLowerCase()]),onShow:(Rn,Bn)=>{roe(Rn.element,Bn.element)},onHide:Rn=>{ooe(Rn.element)}})}),E1.button(W.isDisabled),Id()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Po(` ${Se} `)]}),ft=Lt=>se(Lt,(Ht,fn,Rn)=>{const Bn=Be(fn.name,fn.element,Rn);return Rn===0?Ht.concat([Bn]):Ht.concat([qe(),Bn])},[]),yt=Lt=>{const Ht=[];let fn=Lt.length;for(;fn-- >0;){const Rn=Lt[fn];if(Rn.nodeType===1&&!ioe(Rn)){const Bn=dX(l,Rn);if(Bn.isDefaultPrevented()||Ht.push({name:Bn.name,element:Rn}),Bn.isPropagationStopped())break}}return Ht};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:ei([ha.config({mode:"flow",selector:"div[role=button]"}),he.config({disabled:W.isDisabled}),Id(),Rc.config({}),Fa.config({}),Ka("elementPathEvents",[wc((Lt,Ht)=>{l.shortcuts.add("alt+F11","focus statusbar elementpath",()=>ha.focusIn(Lt)),l.on("NodeChange",fn=>{const Rn=yt(fn.parents),Bn=Rn.length>0?ft(Rn):[];Fa.set(Lt,Bn)})})])]),components:[]}};var s_;(function(l){l[l.None=0]="None",l[l.Both=1]="Both",l[l.Vertical=2]="Vertical"})(s_||(s_={}));const soe=(l,N,W,fe,Se)=>{const Be={height:r8(fe+N.top,eS(l),g6(l))};return W===s_.Both&&(Be.width=r8(Se+N.left,Uw(l),Ik(l))),Be},Fj=(l,N,W)=>{const fe=Nt.fromDom(l.getContainer()),Se=soe(l,N,W,il(fe),_s(fe));We(Se,(Be,qe)=>{h(Be)&&xr(fe,qe,n8(Be))}),K6(l)},loe=l=>{const N=fz(l);return N===!1?s_.None:N==="both"?s_.Both:s_.Vertical},p8=(l,N,W,fe)=>{const Be=Qs(W*20,fe*20);return Fj(l,Be,N),I.some(!0)},coe=(l,N)=>{const W=loe(l);if(W===s_.None)return I.none();const fe=W===s_.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(Bg("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":N.translate(fe),"data-mce-name":"resize-handle"},behaviours:[hO.config({mode:"mouse",repositionTarget:!1,onDrag:(Se,Be,qe)=>Fj(l,qe,W),blockerClass:"tox-blocker"}),ha.config({mode:"special",onLeft:()=>p8(l,W,-1,0),onRight:()=>p8(l,W,1,0),onUp:()=>p8(l,W,0,-1),onDown:()=>p8(l,W,0,1)}),Rc.config({}),Ra.config({}),Vu.config(N.tooltips.getConfig({tooltipText:N.translate("Resize")}))]},N.icons))},$j=(l,N)=>{const W=(fe,Se,Be)=>Fa.set(fe,[Po(N.translate(["{0} "+Be,Se[Be]]))]);return Lh.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:ei([E1.button(N.isDisabled),Id(),Rc.config({}),Fa.config({}),Ei.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ka("wordcount-events",[kh(fe=>{const Se=Ei.getValue(fe),Be=Se.mode==="words"?"characters":"words";Ei.setValue(fe,{mode:Be,count:Se.count}),W(fe,Se.count,Be)}),wc(fe=>{l.on("wordCountUpdate",Se=>{const{mode:Be}=Ei.getValue(fe);Ei.setValue(fe,{mode:Be,count:Se.wordCount}),W(fe,Se.wordCount,Be)})})])]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},uoe=(l,N)=>{const W=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":l.translate(["Build with {0}","TinyMCE"])},innerHtml:l.translate(["Build with {0}",noe.trim()])},behaviours:ei([Ra.config({})])}]}),fe=()=>{const ft=W6("Alt+0"),yt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Po(Dg.translate([yt,ft]))]}},Se=()=>{const ft=[];return l.hasPlugin("wordcount")&&ft.push($j(l,N)),ZE(l)&&ft.push(W()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],yt=zk(l),Lt=uz(l),Ht=ZE(l)||l.hasPlugin("wordcount"),fn=()=>{const Rn="tox-statusbar__text-container--flex-start",Bn="tox-statusbar__text-container--flex-end",er="tox-statusbar__text-container--space-around";if(yt){const cr="tox-statusbar__text-container-3-cols";return!Ht&&!Lt?[cr,er]:Ht&&!Lt?[cr,Bn]:[cr,Rn]}return[Ht&&!Lt?Bn:Rn]};return Lt&&ft.push(aoe(l,{},N)),yt&&ft.push(fe()),Ht&&ft.push(Se()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...fn()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),yt=coe(l,N);return ft.concat(yt.toArray())})()}},Vj=(l,N)=>N.get().getOrDie(`UI for ${l} has not been rendered`),foe=(l,N)=>{const W=l.inline,fe=W?Ine:t8,Se=Qw(l)?Vee:vV,Be=Dne(),qe=ds(),ft=ds(),yt=ds(),Rn=va().deviceType.isTouch()?["tox-platform-touch"]:[],Bn=$k(l),er=jw(l),cr=ml({dom:{tag:"div",classes:["tox-anchorbar"]}}),Xr=ml({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),br=()=>Be.mainUi.get().map(fa=>fa.outerContainer).bind(Lc.getHeader),Fr=()=>aa.fromOption(Be.dialogUi.get().map(fa=>fa.sink),"UI has not been rendered"),jr=()=>aa.fromOption(Be.popupUi.get().map(fa=>fa.sink),"(popup) UI has not been rendered"),Ro=Be.lazyGetInOuterOrDie("anchor bar",cr.getOpt),ko=Be.lazyGetInOuterOrDie("bottom anchor bar",Xr.getOpt),_i=Be.lazyGetInOuterOrDie("toolbar",Lc.getToolbar),Pi=Be.lazyGetInOuterOrDie("throbber",Lc.getThrobber),Ao=hV({popup:jr,dialog:Fr},l,Ro,ko),$i=()=>{const fa={attributes:{[Nb]:Bn?ap.BottomToTop:ap.TopToBottom}},Qa=Lc.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Ao.popup,onEscape:()=>{l.focus()}}),ac=Lc.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Ao.popup.shared.getSink,providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},onToolbarToggled:xO=>{hX(l,xO)},type:er,lazyToolbar:_i,lazyHeader:()=>br().getOrDie("Could not find header element"),...fa}),vl=Lc.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},type:er}),dp=Fk(l),qg=Nk(l),Vv=_6(l),Wh=dz(l),Wg=yi(),U0=dp||qg||Vv,km=()=>dp?[vl]:qg?[ac]:[],Wy=Wh?[Wg,Qa]:[Qa];return Lc.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(U0?[]:["tox-editor-header--empty"]),...fa},components:ye([Vv?Wy:[],km(),tS(l)?[]:[cr.asSpec()]]),sticky:Qw(l),editor:l,sharedBackstage:Ao.popup.shared})},yi=()=>Lc.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Xi=()=>{const fa=Lc.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Qa=Lc.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[fa,Qa]}},ks=()=>{const fa=GE(l),Qa=_o(Lr(),fa)&&Di(fa,"display")==="grid",ac={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Rh.config({useFixed:()=>Se.isDocked(br)})])},vl={dom:{styles:{width:document.body.clientWidth+"px"}},events:Rl([Lo(Dm(),Vv=>{xr(Vv.element,"width",document.body.clientWidth+"px")})])},dp=ka(ws(ac,Qa?vl:{})),qg=m5(dp);return ft.set(qg),{sink:dp,mothership:qg}},Ic=()=>{const fa={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Rh.config({useFixed:()=>Se.isDocked(br),getBounds:()=>N.getPopupSinkBounds()})])},Qa=ka(fa),ac=m5(Qa);return yt.set(ac),{sink:Qa,mothership:ac}},hl=()=>{const fa=$i(),Qa=Xi(),ac=Lc.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Ao.popup}),vl=Lc.parts.viewWrapper({backstage:Ao.popup}),dp=cz(l)&&!W?I.some(uoe(l,Ao.popup.shared.providers)):I.none(),qg=ye([Bn?[]:[fa],W?[]:[Qa],Bn?[fa]:[]]),Vv=Lc.parts.editorContainer({components:ye([qg,W?[]:[Xr.asSpec()]])}),Wh=Vk(l),Wg={role:"application",...Dg.isRtl()?{dir:"rtl"}:{},...Wh?{"aria-hidden":"true"}:{}},U0=ka(Lc.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(W?["tox-tinymce-inline"]:[]).concat(Bn?["tox-tinymce--toolbar-bottom"]:[]).concat(Rn),styles:{visibility:"hidden",...Wh?{opacity:"0",border:"0"}:{}},attributes:Wg},components:[Vv,...W?[]:[vl,...dp.toArray()],ac],behaviours:ei([Id(),he.config({disableClass:"tox-tinymce--disabled"}),ha.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),km=m5(U0);return qe.set(km),{mothership:km,outerContainer:U0}},Ui=fa=>{const Qa=n8(Ene(l)),ac=n8(Pne(l));return l.inline||(fs("div","width",ac)&&xr(fa.element,"width",ac),fs("div","height",Qa)?xr(fa.element,"height",Qa):xr(fa.element,"height","400px")),Qa},Ko=fa=>{l.addShortcut("alt+F9","focus menubar",()=>{Lc.focusMenubar(fa)}),l.addShortcut("alt+F10","focus toolbar",()=>{Lc.focusToolbar(fa)}),l.addCommand("ToggleToolbarDrawer",(Qa,ac)=>{ac!=null&&ac.skipFocus?Lc.toggleToolbarDrawerWithoutFocusing(fa):Lc.toggleToolbarDrawer(fa)}),l.addQueryStateHandler("ToggleToolbarDrawer",()=>Lc.isToolbarDrawerToggled(fa))},Oi=fa=>{const{mainUi:Qa,popupUi:ac,uiMotherships:vl}=fa;Ue(jE(l),(qS,w8)=>{l.ui.registry.addGroupToolbarButton(w8,qS)});const{buttons:dp,menuItems:qg,contextToolbars:Vv,sidebars:Wh,views:Wg}=l.ui.registry.getAll(),U0=XE(l),km={menuItems:qg,menus:mz(l),menubar:oz(l),toolbar:U0.getOrThunk(()=>Bk(l)),allowToolbarGroups:er===C0.floating,buttons:dp,sidebar:Wh,views:Wg};Ko(Qa.outerContainer),pV(l,Qa.mothership,vl),Se.setup(l,Ao.popup.shared,br),ure(l,Ao.popup),Tre(l,Ao.popup.shared.getSink,Ao.popup),cR(l),ote(l,Pi,Ao.popup.shared),qne(l,Vv,ac.sink,{backstage:Ao.popup}),toe(l,ac.sink);const Wy=l.getElement(),xO=Ui(Qa.outerContainer),OL={targetNode:Wy,height:xO};return fe.render(l,fa,km,Ao.popup,OL)},La=fa=>(yt.set(fa.mothership),fa),_a=()=>{const fa=hl(),Qa=ks(),ac=N2(l)?Ic():La(Qa);Be.dialogUi.set(Qa),Be.popupUi.set(ac),Be.mainUi.set(fa);const vl={popupUi:ac,dialogUi:Qa,mainUi:fa,uiMotherships:Be.getUiMotherships()};return Oi(vl)};return{popups:{backstage:Ao.popup,getMothership:()=>Vj("popups",yt)},dialogs:{backstage:Ao.dialog,getMothership:()=>Vj("dialogs",ft)},renderUI:_a}},doe=l=>l.dom.textContent,hoe=(l,N)=>{const W=Eo(l,"id").fold(()=>{const fe=Li("dialog-label");return Cr(N,"id",fe),fe},R);Cr(l,"aria-labelledby",W)},poe=x([pn("lazySink"),Yo("dragBlockClass"),ys("getBounds",ts),Ar("useTabstopAt",k),Ar("firstTabstop",0),Ar("eventOrder",{}),Pd("modalBehaviours",[ha]),kd("onExecute"),Sb("onEscape")]),lL={sketch:R},moe=x([mm({name:"draghandle",overrides:(l,N)=>({behaviours:ei([hO.config({mode:"mouse",getTarget:W=>Fl(W,'[role="dialog"]').getOr(W),blockerClass:l.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(N,null,2)).message),getBounds:l.getDragBounds})])})}),mh({schema:[pn("dom")],name:"title"}),mh({factory:lL,schema:[pn("dom")],name:"close"}),mh({factory:lL,schema:[pn("dom")],name:"body"}),mm({factory:lL,schema:[pn("dom")],name:"footer"}),Jm({factory:{sketch:(l,N)=>({...l,dom:N.dom,components:N.components})},schema:[Ar("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ar("components",[])],name:"blocker"})]),Uj=(l,N,W,fe)=>{const Se=ds(),Be=er=>{Se.set(er);const cr=l.lazySink(er).getOrDie(),Xr=fe.blocker(),br=cr.getSystem().build({...Xr,components:Xr.components.concat([ea(er)]),behaviours:ei([Ra.config({}),Ka("dialog-blocker-events",[cy(Dp(),()=>{I1.isBlocked(er)?v():ha.focusIn(er)})])])});Eg(cr,br),ha.focusIn(er)},qe=er=>{Se.clear(),Dr(er.element).each(cr=>{er.getSystem().getByDom(cr).each(Xr=>{kv(Xr)})})},ft=er=>gm(er,l,"body"),yt=er=>Jo(er,l,"footer"),Lt=(er,cr)=>{I1.block(er,cr)},Ht=er=>{I1.unblock(er)},fn=Li("modal-events"),Rn={...l.eventOrder,[Sh()]:[fn].concat(l.eventOrder["alloy.system.attached"]||[])},Bn=va();return{uid:l.uid,dom:l.dom,components:N,apis:{show:Be,hide:qe,getBody:ft,getFooter:yt,setIdle:Ht,setBusy:Lt},eventOrder:Rn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rd(l.modalBehaviours,[Fa.config({}),ha.config({mode:"cyclic",onEnter:l.onExecute,onEscape:l.onEscape,useTabstopAt:l.useTabstopAt,firstTabstop:l.firstTabstop}),I1.config({getRoot:Se.get}),Ka(fn,[wc(er=>{const cr=gm(er,l,"title").element,Xr=doe(cr);Bn.os.isMacOS()&&a(Xr)?Cr(er.element,"aria-label",Xr):hoe(er.element,cr)})])])}},fd=Zh({name:"ModalDialog",configFields:poe(),partFields:moe(),factory:Uj,apis:{show:(l,N)=>{l.show(N)},hide:(l,N)=>{l.hide(N)},getBody:(l,N)=>l.getBody(N),getFooter:(l,N)=>l.getFooter(N),setBusy:(l,N,W)=>{l.setBusy(N,W)},setIdle:(l,N)=>{l.setIdle(N)}}}),pO=Si([pf,U6].concat(U2)),goe=V,dT=[BP("button"),E0,rl("align","end",["start","end"]),aS,P0,Yi("buttonType",["primary","secondary"])],hT=[...dT,sx],cL=[Gr("type",["submit","cancel","custom"]),...hT],voe=[Gr("type",["menu"]),lx,iS,E0,Go("items",pO),...dT],yoe=[...dT,Gr("type",["togglebutton"]),iS,E0,lx,Hs("active",!1)],boe=bn("type",{submit:cL,cancel:cL,custom:cL,menu:voe,togglebutton:yoe}),xoe=[pf,sx,Gr("level",["info","warn","error","success"]),Hz,Ar("url","")],mO=Si(xoe),jj=l=>[pf,l],_oe=[pf,sx,P0,BP("button"),E0,NY,Yi("buttonType",["primary","secondary","toolbar"]),aS],woe=Si(_oe),VS=[pf,U6],Fv=VS.concat([j6]),Ooe=VS.concat([LP,P0]),Soe=Si(Ooe),koe=V,Toe=Fv.concat([qz("auto")]),uL=Si(Toe),pT=It([Kk,sx,Hz]),fL=Fv.concat([Ts("storageKey","default")]),m8=Si(fL),gO=ne,Coe=Si(Fv),Qj=ne,Hj=VS.concat([Ts("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),ai("onFocus"),Yu("settings",void 0)]),Zj=VS.concat([Ts("tag","textarea"),po("init")]),Aoe=rt(l=>Rt("customeditor.old",Os(Zj),l).orThunk(()=>Rt("customeditor.new",Os(Hj),l))),Moe=ne,qj=Si(Fv),Wj=et(),hL=l=>[pf,Ir("columns"),l],Eoe=[pf,Pr("html"),rl("presets","presentation",["presentation","document"]),ys("onInit",v),Hs("stretched",!1)],Poe=Si(Eoe),Roe=Fv.concat([Hs("border",!1),Hs("sandboxed",!0),Hs("streamContent",!1),Hs("transparent",!0)]),Yj=Si(Roe),Loe=ne,Ioe=Si(VS.concat([jo("height")])),Doe=Si([Pr("url"),Ho("zoom"),Ho("cachedWidth"),Ho("cachedHeight")]),pL=Fv.concat([jo("inputMode"),jo("placeholder"),Hs("maximized",!1),P0]),mL=Si(pL),Boe=ne,Xj=l=>[pf,LP,l,rl("align","start",["start","center","end"]),jo("for")],zoe=[sx,Kk],Noe=[sx,Go("items",vn("items",()=>gL))],gL=rd([Si(zoe),Si(Noe)]),Foe=Fv.concat([Go("items",gL),P0]),$oe=Si(Foe),vO=ne,Gj=Fv.concat([Bo("items",[sx,Kk]),$s("size",1),P0]),Voe=Si(Gj),g8=ne,US=Fv.concat([Hs("constrain",!0),P0]),v8=Si(US),vL=Si([Pr("width"),Pr("height")]),y8=VS.concat([LP,$s("min",0),$s("max",0)]),wm=Si(y8),b8=le,Kj=[pf,Go("header",ne),Go("cells",lc(ne))],Jj=Si(Kj),Uoe=Fv.concat([jo("placeholder"),Hs("maximized",!1),P0]),joe=Si(Uoe),l_=ne,Qoe=[Gr("type",["directory","leaf"]),Qz,Pr("id"),Wi("menu",OV)],yL=Si(Qoe),jS=Qoe.concat([Go("children",vn("children",()=>Ne("type",{directory:mT,leaf:yL})))]),mT=Si(jS),eQ=Ne("type",{directory:mT,leaf:yL}),Hoe=[pf,Go("items",eQ),ai("onLeafAction"),ai("onToggleExpand"),mt("defaultExpandedIds",[],ne),jo("defaultSelectedId")],Zoe=Si(Hoe),qoe=Fv.concat([rl("filetype","file",["image","media","file"]),P0,jo("picker_text")]),Woe=Si(qoe),QS=Si([Kk,IP]),tQ=l=>Ln("items","items",su(),lc(rt(N=>Rt(`Checking item of ${l}`,bL,N).fold(W=>aa.error(dn(W)),W=>aa.value(W))))),bL=Pc(()=>Ne("type",{alertbanner:mO,bar:Si(jj(tQ("bar"))),button:woe,checkbox:Soe,colorinput:m8,colorpicker:Coe,dropzone:qj,grid:Si(hL(tQ("grid"))),iframe:Yj,input:mL,listbox:$oe,selectbox:Voe,sizeinput:v8,slider:wm,textarea:joe,urlinput:Woe,customeditor:Aoe,htmlpanel:Poe,imagepreview:Ioe,collection:uL,label:Si(Xj(tQ("label"))),table:Jj,tree:Zoe,panel:Xoe})),Yoe=[pf,Ar("classes",[]),Go("items",bL)],Xoe=Si(Yoe),Goe=[BP("tab"),Qz,Go("items",bL)],Koe=[pf,Bo("tabs",Goe)],gT=Si(Koe),Joe=hT,eie=boe,nQ=Si([Pr("title"),In("body",Ne("type",{panel:Xoe,tabpanel:gT})),Ts("size","normal"),mt("buttons",[],eie),Ar("initialData",{}),ys("onAction",v),ys("onChange",v),ys("onSubmit",v),ys("onClose",v),ys("onCancel",v),ys("onTabChange",v)]),tie=l=>Rt("dialog",nQ,l),hde=Si([Gr("type",["cancel","custom"]),...Joe]),r=Si([Pr("title"),Pr("url"),Ho("height"),Ho("width"),Hi("buttons",hde),ys("onAction",v),ys("onCancel",v),ys("onClose",v),ys("onMessage",v)]),g=l=>Rt("dialog",r,l),B=l=>u(l)?[l].concat(ve(ot(l),B)):i(l)?ve(l,B):[],H=l=>n(l.type)&&n(l.name),oe={checkbox:koe,colorinput:gO,colorpicker:Qj,dropzone:Wj,input:Boe,iframe:Loe,imagepreview:Doe,selectbox:g8,sizeinput:vL,slider:b8,listbox:vO,size:vL,textarea:l_,urlinput:QS,customeditor:Moe,collection:pT,togglemenuitem:goe},be=l=>I.from(oe[l.type]),Le=l=>me(B(l),H),Ke=l=>{const N=Le(l),W=ve(N,fe=>be(fe).fold(()=>[],Se=>[In(fe.name,Se)]));return Si(W)},ut=l=>{var N;const W=Mt(tie(l)),fe=Ke(l),Se=(N=l.initialData)!==null&&N!==void 0?N:{};return{internalDialog:W,dataValidator:fe,initialData:Se}},At={open:(l,N)=>{const W=ut(N);return l(W.internalDialog,W.initialData,W.dataValidator)},openUrl:(l,N)=>{const W=Mt(g(N));return l(W)},redial:l=>ut(l)};var un=Object.freeze({__proto__:null,events:(l,N)=>{const W=(fe,Se)=>{l.updateState.each(Be=>{const qe=Be(fe,Se);N.set(qe)}),l.renderComponents.each(Be=>{const qe=Be(Se,N.get());(l.reuseDom?X3:Y3)(fe,qe)})};return Rl([Lo(yp(),(fe,Se)=>{const Be=Se;if(!Be.universal){const qe=l.channel;X(Be.channels,qe)&&W(fe,Be.data)}}),wc((fe,Se)=>{l.initialData.each(Be=>{W(fe,Be)})})])}}),Qn=Object.freeze({__proto__:null,getState:(l,N,W)=>W}),rr=[pn("channel"),Yo("renderComponents"),Yo("updateState"),Yo("initialData"),Hs("reuseDom",!0)],ur=Object.freeze({__proto__:null,init:()=>{const l=wi(I.none()),N=()=>l.set(I.none());return{readState:()=>l.get().getOr("none"),get:l.get,set:l.set,clear:N}}});const Tr=id({fields:rr,name:"reflecting",active:un,apis:Qn,state:ur}),Wr=l=>{const N=[],W={};return We(l,(fe,Se)=>{fe.fold(()=>{N.push(Se)},Be=>{W[Se]=Be})}),N.length>0?aa.error(N):aa.value(W)},Qr=(l,N,W,fe)=>{const Se=ml(Y2.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(l.classes)},components:re(l.items,qe=>WJ(Be,qe,N,W,fe))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[Se.asSpec()]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),P1.memento(Se),CK(Se,{postprocess:Be=>Wr(Be).fold(qe=>(console.error(qe),{}),R)}),Ka("dialog-body-panel",[Lo(Dp(),(Be,qe)=>{Be.getSystem().broadcastOn([SA],{newFocus:I.some(qe.event.target)})})])])}},lo=(l,N)=>({uid:l.uid,dom:l.dom,components:l.components,events:d6(l.action),behaviours:Rd(l.tabButtonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0}),Ei.config({store:{mode:"memory",initialValue:l.value}})]),domModification:l.domModification}),Zo=Qp({name:"TabButton",configFields:[Ar("uid",void 0),pn("value"),Ln("dom","dom",_u(()=>({attributes:{role:"tab",id:Li("aria"),"aria-selected":"false"}})),Ut()),Yo("action"),Ar("domModification",{}),Pd("tabButtonBehaviours",[Ra,ha,Ei]),pn("view")],factory:lo}),li=x([pn("tabs"),pn("dom"),Ar("clickToDismiss",!1),Pd("tabbarBehaviours",[ta,ha]),h0(["tabClass","selectedClass"])]),Mi=U3({factory:Zo,name:"tabs",unit:"tab",overrides:l=>{const N=(fe,Se)=>{ta.dehighlight(fe,Se),sa(fe,W1(),{tabbar:fe,button:Se})},W=(fe,Se)=>{ta.highlight(fe,Se),sa(fe,UO(),{tabbar:fe,button:Se})};return{action:fe=>{const Se=fe.getSystem().getByUid(l.uid).getOrDie(),Be=ta.isHighlighted(Se,fe);(()=>Be&&l.clickToDismiss?N:Be?v:W)()(Se,fe)},domModification:{classes:[l.markers.tabClass]}}}}),Co=x([Mi]),yo=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rd(l.tabbarBehaviours,[ta.config({highlightClass:l.markers.selectedClass,itemClass:l.markers.tabClass,onHighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","true")},onDehighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","false")}}),ha.config({mode:"flow",getInitial:Se=>ta.getHighlighted(Se).map(Be=>Be.element),selector:"."+l.markers.tabClass,executeOnMove:!0})])}),Vo=Zh({name:"Tabbar",configFields:li(),partFields:Co(),factory:yo}),Fi=(l,N)=>({uid:l.uid,dom:l.dom,behaviours:Rd(l.tabviewBehaviours,[Fa.config({})]),domModification:{attributes:{role:"tabpanel"}}}),la=Qp({name:"Tabview",configFields:[Pd("tabviewBehaviours",[Fa])],factory:Fi}),bs=x([Ar("selectFirst",!0),Ss("onChangeTab"),Ss("onDismissTab"),Ar("tabs",[]),Pd("tabSectionBehaviours",[])]),Ms=mh({factory:Vo,schema:[pn("dom"),si("markers",[pn("tabClass"),pn("selectedClass")])],name:"tabbar",defaults:l=>({tabs:l.tabs})}),wl=mh({factory:la,name:"tabview"}),Vl=x([Ms,wl]),Uu=(l,N,W,fe)=>{const Se=qe=>{const ft=Ei.getValue(qe);Jo(qe,l,"tabview").each(yt=>{ce(l.tabs,Ht=>Ht.value===ft).each(Ht=>{const fn=Ht.view();Eo(qe.element,"id").each(Rn=>{Cr(yt.element,"aria-labelledby",Rn)}),Fa.set(yt,fn),l.onChangeTab(yt,qe,fn)})})},Be=(qe,ft)=>{Jo(qe,l,"tabbar").each(yt=>{ft(yt).each(Bm)})};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.tabSectionBehaviours),events:Rl(ye([l.selectFirst?[wc((qe,ft)=>{Be(qe,ta.getFirst)})]:[],[Lo(UO(),(qe,ft)=>{const yt=ft.event.button;Se(yt)}),Lo(W1(),(qe,ft)=>{const yt=ft.event.button;l.onDismissTab(qe,yt)})]])),apis:{getViewItems:qe=>Jo(qe,l,"tabview").map(ft=>Fa.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,Lt=>{const Ht=ta.getCandidates(Lt);return ce(Ht,Rn=>Ei.getValue(Rn)===ft).filter(Rn=>!ta.isHighlighted(Lt,Rn))})}}}},Wf=Zh({name:"TabSection",configFields:bs(),partFields:Vl(),factory:Uu,apis:{getViewItems:(l,N)=>l.getViewItems(N),showTab:(l,N,W)=>{l.showTab(N,W)}}}),ic=(l,N,W)=>re(l,(fe,Se)=>{Fa.set(W,l[Se].view());const Be=N.dom.getBoundingClientRect();return Fa.set(W,[]),Be.height}),vi=l=>Qe(ze(l,(N,W)=>N>W?-1:N{const fe=Hn(l).dom,Se=Fl(l,".tox-dialog-wrap").getOr(l),Be=Di(Se,"position")==="fixed";let qe;Be?qe=Math.max(fe.clientHeight,window.innerHeight):qe=Math.max(fe.offsetHeight,fe.scrollHeight);const ft=il(N),Lt=N.dom.offsetLeft>=W.dom.offsetLeft+_s(W)?Math.max(il(W),ft):ft,Ht=parseInt(Di(l,"margin-top"),10)||0,fn=parseInt(Di(l,"margin-bottom"),10)||0,Bn=il(l)+Ht+fn-Lt;return qe-Bn},ol=(l,N)=>{Qe(l).each(W=>Wf.showTab(N,W.value))},Ti=(l,N)=>{xr(l,"height",N+"px"),xr(l,"flex-basis",N+"px")},pa=(l,N,W)=>{Fl(l,'[role="dialog"]').each(fe=>{qa(fe,'[role="tablist"]').each(Se=>{W.get().map(Be=>(xr(N,"height","0"),xr(N,"flex-basis","0"),Math.min(Be,na(fe,N,Se)))).each(Be=>{Ti(N,Be)})})})},ps=l=>qa(l,'[role="tabpanel"]'),Ci=l=>{const N=ds();return{extraEvents:[wc(Se=>{const Be=Se.element;ps(Be).each(qe=>{xr(qe,"visibility","hidden"),Se.getSystem().getByDom(qe).toOptional().each(ft=>{const yt=ic(l,qe,ft);vi(yt).fold(N.clear,N.set)}),pa(Be,qe,N),zi(qe,"visibility"),ol(l,Se),requestAnimationFrame(()=>{pa(Be,qe,N)})})}),Lo(Dm(),Se=>{const Be=Se.element;ps(Be).each(qe=>{pa(Be,qe,N)})}),Lo(A7,(Se,Be)=>{const qe=Se.element;ps(qe).each(ft=>{const yt=um(kr(ft));xr(ft,"visibility","hidden");const Lt=Ia(ft,"height").map(Rn=>parseInt(Rn,10));zi(ft,"height"),zi(ft,"flex-basis");const Ht=ft.dom.getBoundingClientRect().height;Lt.forall(Rn=>Ht>Rn)?(N.set(Ht),pa(qe,ft,N)):Lt.each(Rn=>{Ti(ft,Rn)}),zi(ft,"visibility"),yt.each(Md)})})],selectFirst:!1}},ms="send-data-to-section",Es="send-data-to-view",Bd=(l,N,W,fe)=>{const Se=wi({}),Be=Ht=>{const fn=Ei.getValue(Ht),Rn=Wr(fn).getOr({}),Bn=Se.get(),er=ws(Bn,Rn);Se.set(er)},qe=Ht=>{const fn=Se.get();Ei.setValue(Ht,fn)},ft=wi(null),yt=re(l.tabs,Ht=>({value:Ht.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Po(W.shared.providers.translate(Ht.title))],view:()=>[Y2.sketch(fn=>({dom:{tag:"div",classes:["tox-form"]},components:re(Ht.items,Rn=>WJ(fn,Rn,N,W,fe)),formBehaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),Ka("TabView.form.events",[wc(qe),xg(Be)]),Ad.config({channels:ua([{key:ms,value:{onReceive:Be}},{key:Es,value:{onReceive:qe}}])})])}))]})),Lt=Ci(yt);return Wf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ht,fn,Rn)=>{const Bn=Ei.getValue(fn);sa(Ht,pF,{name:Bn,oldName:ft.get()}),ft.set(Bn)},tabs:yt,components:[Wf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Vo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:ei([Rc.config({})])}),Wf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Lt.selectFirst,tabSectionBehaviours:ei([Ka("tabpanel",Lt.extraEvents),ha.config({mode:"acyclic"}),Xs.config({find:Ht=>Qe(Wf.getViewItems(Ht))}),X2(I.none(),Ht=>(Ht.getSystem().broadcastOn([ms],{}),Se.get()),(Ht,fn)=>{Se.set(fn),Ht.getSystem().broadcastOn([Es],{})})])})},Cl=(l,N,W,fe,Se,Be)=>{const qe=Lt=>{const Ht=Lt.body;switch(Ht.type){case"tabpanel":return[Bd(Ht,Lt.initialData,fe,Be)];default:return[Qr(Ht,Lt.initialData,fe,Be)]}},ft=(Lt,Ht)=>I.some({isTabPanel:()=>Ht.body.type==="tabpanel"}),yt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...W.map(Lt=>({id:Lt})).getOr({}),...Se?yt:{}}},components:[],behaviours:ei([P1.childAt(0),Tr.config({channel:`${s9}-${N}`,updateState:ft,renderComponents:qe,initialData:l})])}},dd=(l,N,W,fe,Se,Be)=>Cl(l,N,I.some(W),fe,Se,Be),z0=(l,N,W,fe)=>{const Se=Cl(l,N,I.none(),W,!1,fe);return fd.parts.body(Se)},$v=l=>{const N={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[i$(I.none(),{dom:{tag:"iframe",attributes:{src:l.url}},behaviours:ei([Rc.config({}),Ra.config({})])})]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)})])};return fd.parts.body(N)},Cp=$w.deviceType.isTouch(),Om=(l,N)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[l,N]}),Hg=(l,N)=>fd.parts.close(Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":N.translate("Close")}},action:l,buttonBehaviours:ei([Rc.config({})])})),Sm=()=>fd.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Zg=(l,N)=>fd.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ev(`

    ${mP(N.translate(l))}

    `)}]}]}),ca=l=>fd.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:l}),Zs=(l,N)=>[Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:l}),Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:N})],ru=l=>{const N="tox-dialog",W=N+"-wrap",fe=W+"__backdrop",Se=N+"__disable-scroll";return fd.sketch({lazySink:l.lazySink,onEscape:Be=>(l.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!E5(Be),firstTabstop:l.firstTabstop,dom:{tag:"div",classes:[N].concat(l.extraClasses),styles:{position:"relative",...l.extraStyles}},components:[l.header,l.body,...l.footer.toArray()],parts:{blocker:{dom:Ev(`
    `),components:[{dom:{tag:"div",classes:Cp?[fe,fe+"--opaque"]:[fe]}}]}},dragBlockClass:W,modalBehaviours:ei([Ra.config({}),Ka("dialog-events",l.dialogEvents.concat([cy(Dp(),(Be,qe)=>{I1.isBlocked(Be)?v():ha.focusIn(Be)}),Lo(q1(),(Be,qe)=>{Be.getSystem().broadcastOn([SA],{newFocus:qe.event.newFocus})})])),Ka("scroll-lock",[wc(()=>{uc(Lr(),Se)}),xg(()=>{Zc(Lr(),Se)})]),...l.extraBehaviours]),eventOrder:{[Bp()]:["dialog-events"],[Sh()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...l.eventOrder}})},ju=l=>Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":l.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:ei([Rc.config({}),Vu.config(l.tooltips.getConfig({tooltipText:l.translate("Close")}))]),components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.icons)],action:N=>{Za(N,cx)}}),Pf=(l,N,W,fe)=>{const Se=Be=>[Po(fe.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...W.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:ei([Tr.config({channel:`${s$}-${N}`,initialData:l,renderComponents:Se})])}},Gd=()=>({dom:Ev('
    ')}),Rf=(l,N,W,fe)=>Iv.sketch({dom:Ev('
    '),components:[Pf(l,N,I.some(W),fe),Gd(),ju(fe)],containerBehaviours:ei([hO.config({mode:"mouse",blockerClass:"blocker",getTarget:Se=>Sc(Se,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),Lf=(l,N,W)=>{const fe=fd.parts.title(Pf(l,N,I.none(),W)),Se=fd.parts.draghandle(Gd()),Be=fd.parts.close(ju(W)),qe=[fe].concat(l.draggable?[Se]:[]).concat([Be]);return Iv.sketch({dom:Ev('
    '),components:qe})},fp=(l,N,W)=>Lf({title:W.shared.providers.translate(l),draggable:W.dialog.isDraggableModal()},N,W.shared.providers),N0=(l,N,W,fe)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":W.translate(l)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${fe.getOr(0)}px`,position:"absolute"}},behaviours:N,components:[{dom:Ev('
    ')}]}),F0=(l,N,W)=>({onClose:()=>W.closeWindow(),onBlock:fe=>{const Se=qa(l().element,".tox-dialog__header").map(Be=>il(Be));fd.setBusy(l(),(Be,qe)=>N0(fe.message,qe,N,Se))},onUnblock:()=>{fd.setIdle(l())}}),$0="tox-dialog--fullscreen",rg="tox-dialog--width-lg",Qy="tox-dialog--width-md",gx=l=>{switch(l){case"large":return I.some(rg);case"medium":return I.some(Qy);default:return I.none()}},yO=(l,N)=>{const W=Nt.fromDom(N.element.dom);rp(W,$0)||(Oc(W,[rg,Qy]),gx(l).each(fe=>uc(W,fe)))},x8=(l,N)=>{const W=Nt.fromDom(l.element.dom),fe=qc(W),Se=ce(fe,Be=>Be===rg||Be===Qy).or(gx(N));WO(W,[$0,...Se.toArray()])},Hy=(l,N,W)=>ka(ru({...l,firstTabstop:1,lazySink:W.shared.getSink,extraBehaviours:[_A({}),...l.extraBehaviours],onEscape:fe=>{Za(fe,cx)},dialogEvents:N,eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Sh()]:["scroll-lock",Tr.name(),"messages","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","messages",Tr.name(),"scroll-lock"]}})),HS=(l,N={})=>{const W=fe=>{const Se=re(fe.items,Be=>{const qe=Ge(N,Be.name).getOr(wi(!1));return{...Be,storage:qe}});return{...fe,items:Se}};return re(l,fe=>fe.type==="menu"?W(fe):fe)},xL=l=>se(l,(N,W)=>W.type==="menu"?se(W.items,(Se,Be)=>(Se[Be.name]=Be.storage,Se),N):N,{}),qh=(l,N)=>[mb(Dp(),DK),l(vS,(W,fe,Se,Be)=>{um(kr(Be.element)).fold(v,m1),N.onClose(),fe.onClose()}),l(cx,(W,fe,Se,Be)=>{fe.onCancel(W),Za(Be,vS)}),Lo(C7,(W,fe)=>N.onUnblock()),Lo(T7,(W,fe)=>N.onBlock(fe.event))],bO=(l,N)=>{const W=(Se,Be)=>Lo(Se,(qe,ft)=>{fe(qe,(yt,Lt)=>{Be(l(),yt,ft.event,qe)})}),fe=(Se,Be)=>{Tr.getState(Se).get().each(qe=>{Be(qe,Se)})};return[...qh(W,N),W(Ny,(Se,Be,qe)=>{Be.onAction(Se,{name:qe.name})})]},_L=(l,N,W)=>{const fe=(Be,qe)=>Lo(Be,(ft,yt)=>{Se(ft,(Lt,Ht)=>{qe(l(),Lt,yt.event,ft)})}),Se=(Be,qe)=>{Tr.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...qh(fe,N),fe(v5,(Be,qe)=>qe.onSubmit(Be)),fe(xm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),fe(Ny,(Be,qe,ft,yt)=>{const Lt=()=>yt.getSystem().isConnected()?ha.focusIn(yt):void 0,Ht=Bn=>zo(Bn,"disabled")||Eo(Bn,"aria-disabled").exists(er=>er==="true"),fn=kr(yt.element),Rn=um(fn);qe.onAction(Be,{name:ft.name,value:ft.value}),um(fn).fold(Lt,Bn=>{Ht(Bn)||Rn.exists(er=>$o(Bn,er)&&Ht(er))?Lt():W().toOptional().filter(er=>!$o(er.element,Bn)).each(Lt)})}),fe(pF,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),xg(Be=>{const qe=l();Ei.setValue(Be,qe.getData())})]},wL=(l,N)=>j5(l,l.type,N),Zy=(l,N,W)=>ce(N,fe=>fe.name===W).bind(fe=>fe.memento.getOpt(l)),vT=(l,N)=>{const W=N.map(ft=>ft.footerButtons).getOr([]),fe=ee(W,ft=>ft.align==="start"),Se=(ft,yt)=>Iv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:re(yt,Lt=>Lt.memento.asSpec())}),Be=Se("start",fe.pass),qe=Se("end",fe.fail);return[Be,qe]},ho=(l,N,W)=>{const fe=(Se,Be)=>{const qe=re(Be.buttons,yt=>{const Lt=ml(wL(yt,W));return{name:yt.name,align:yt.align,memento:Lt}}),ft=yt=>Zy(Se,qe,yt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:Ev(''),components:[],behaviours:ei([Tr.config({channel:`${l$}-${N}`,initialData:l,updateState:fe,renderComponents:vT})])}},bo=(l,N,W)=>ho(l,N,W),di=(l,N,W)=>fd.parts.footer(ho(l,N,W)),ri=(l,N)=>{if(l.getRoot().getSystem().isConnected()){const fe=Xs.getCurrent(l.getFormWrapper()).getOr(l.getFormWrapper());return Y2.getField(fe,N).orThunk(()=>l.getFooter().bind(qe=>Tr.getState(qe).get()).bind(qe=>qe.lookupByName(N)))}else return I.none()},Ta=(l,N)=>{const W=l.getRoot();return Tr.getState(W).get().map(fe=>Mt(Rt("data",fe.dataValidator,N))).getOr(N)},zs=(l,N,W)=>{const fe=er=>{const cr=l.getRoot();cr.getSystem().isConnected()&&er(cr)},Bn={getData:()=>{const er=l.getRoot(),cr=er.getSystem().isConnected()?l.getFormWrapper():er,Xr=Ei.getValue(cr),br=Ue(W,Fr=>Fr.get());return{...Xr,...br}},setData:er=>{fe(cr=>{const Xr=Bn.getData(),br=ws(Xr,er),Fr=Ta(l,br),jr=l.getFormWrapper();Ei.setValue(jr,Fr),We(W,(Ro,ko)=>{ht(br,ko)&&Ro.set(br[ko])})})},setEnabled:(er,cr)=>{ri(l,er).each(cr?he.enable:he.disable)},focus:er=>{ri(l,er).each(Ra.focus)},block:er=>{if(!n(er))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");fe(cr=>{sa(cr,T7,{message:er})})},unblock:()=>{fe(er=>{Za(er,C7)})},showTab:er=>{fe(cr=>{const Xr=l.getBody();Tr.getState(Xr).get().exists(Fr=>Fr.isTabPanel())&&Xs.getCurrent(Xr).each(Fr=>{Wf.showTab(Fr,er)})})},redial:er=>{fe(cr=>{const Xr=l.getId(),br=N(er),Fr=HS(br.internalDialog.buttons,W);cr.getSystem().broadcastOn([`${P5}-${Xr}`],br),cr.getSystem().broadcastOn([`${s$}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s9}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${l$}-${Xr}`],{...br.internalDialog,buttons:Fr}),Bn.setData(br.initialData)})},close:()=>{fe(er=>{Za(er,vS)})},toggleFullscreen:l.toggleFullscreen};return Bn},Su=(l,N,W)=>{const fe=Li("dialog"),Se=l.internalDialog,Be=fp(Se.title,fe,W),qe=wi(Se.size),ft=jr=>ri(br,jr),yt=gx(qe.get()).toArray(),Lt=(jr,Ro)=>(qe.set(Ro.internalDialog.size),yO(Ro.internalDialog.size,jr),I.some(Ro)),Ht=z0({body:Se.body,initialData:Se.initialData},fe,W,ft),fn=HS(Se.buttons),Rn=xL(fn),Bn=Ot(fn.length!==0,di({buttons:fn},fe,W)),er=_L(()=>Fr,F0(()=>Xr,W.shared.providers,N),W.shared.getSink),cr={id:fe,header:Be,body:Ht,footer:Bn,extraClasses:yt,extraBehaviours:[Tr.config({channel:`${P5}-${fe}`,updateState:Lt,initialData:l})],extraStyles:{}},Xr=Hy(cr,er,W),br=(()=>{const jr=()=>{const ko=fd.getBody(Xr);return Xs.getCurrent(ko).getOr(ko)},Ro=()=>{x8(Xr,qe.get())};return{getId:x(fe),getRoot:x(Xr),getBody:()=>fd.getBody(Xr),getFooter:()=>fd.getFooter(Xr),getFormWrapper:jr,toggleFullscreen:Ro}})(),Fr=zs(br,N.redial,Rn);return{dialog:Xr,instanceApi:Fr}},V0=(l,N,W,fe=!1,Se)=>{const Be=Li("dialog"),qe=Li("dialog-label"),ft=Li("dialog-content"),yt=l.internalDialog,Lt=$i=>ri(Pi,$i),Ht=wi(yt.size),fn=gx(Ht.get()).toArray(),Rn=($i,yi)=>(Ht.set(yi.internalDialog.size),yO(yi.internalDialog.size,$i),Se(),I.some(yi)),Bn=ml(Rf({title:yt.title,draggable:!0},Be,qe,W.shared.providers)),er=ml(dd({body:yt.body,initialData:yt.initialData},Be,ft,W,fe,Lt)),cr=HS(yt.buttons),Xr=xL(cr),br=Ot(cr.length!==0,ml(bo({buttons:cr},Be,W))),Fr=_L(()=>Ao,{onBlock:$i=>{I1.block(ko,(yi,Xi)=>{const ks=Bn.getOpt(ko).map(Ic=>il(Ic.element));return N0($i.message,Xi,W.shared.providers,ks)})},onUnblock:()=>{I1.unblock(ko)},onClose:()=>N.closeWindow()},W.shared.getSink),jr="tox-dialog-inline",Ro=va().os,ko=ka({dom:{tag:"div",classes:["tox-dialog",jr,...fn],attributes:{role:"dialog",...Ro.isMacOS()?{"aria-label":yt.title}:{"aria-labelledby":qe}}},eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Bp()]:["execute-on-form"],[Sh()]:["reflecting","execute-on-form"]},behaviours:ei([ha.config({mode:"cyclic",onEscape:$i=>(Za($i,vS),I.some(!0)),useTabstopAt:$i=>!E5($i)&&(vr($i)!=="button"||Nr($i,"disabled")!=="disabled"),firstTabstop:1}),Tr.config({channel:`${P5}-${Be}`,updateState:Rn,initialData:l}),Ra.config({}),Ka("execute-on-form",Fr.concat([cy(Dp(),($i,yi)=>{ha.focusIn($i)}),Lo(q1(),($i,yi)=>{$i.getSystem().broadcastOn([SA],{newFocus:yi.event.newFocus})})])),I1.config({getRoot:()=>I.some(ko)}),Fa.config({}),_A({})]),components:[Bn.asSpec(),er.asSpec(),...br.map($i=>$i.asSpec()).toArray()]}),_i=()=>{x8(ko,Ht.get())},Pi={getId:x(Be),getRoot:x(ko),getFooter:()=>br.map($i=>$i.get(ko)),getBody:()=>er.get(ko),getFormWrapper:()=>{const $i=er.get(ko);return Xs.getCurrent($i).getOr($i)},toggleFullscreen:_i},Ao=zs(Pi,N.redial,Xr);return{dialog:ko,instanceApi:Ao}};var ZS=tinymce.util.Tools.resolve("tinymce.util.URI");const nie=l=>{const N=qe=>{l.getSystem().isConnected()&&qe(l)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");N(ft=>{sa(ft,T7,{message:qe})})},unblock:()=>{N(qe=>{Za(qe,C7)})},close:()=>{N(qe=>{Za(qe,vS)})},sendMessage:qe=>{N(ft=>{ft.getSystem().broadcastOn([c$],qe)})}}},_8=["insertContent","setContent","execCommand","close","block","unblock"],qy=l=>u(l)&&_8.indexOf(l.mceAction)!==-1,rQ=l=>!qy(l)&&u(l)&&ht(l,"mceAction"),oQ=(l,N,W)=>{switch(W.mceAction){case"insertContent":l.insertContent(W.content);break;case"setContent":l.setContent(W.content);break;case"execCommand":const fe=w(W.ui)?W.ui:!1;l.execCommand(W.cmd,fe,W.value);break;case"close":N.close();break;case"block":N.block(W.message);break;case"unblock":N.unblock();break}},iQ=(l,N,W,fe)=>{const Se=Li("dialog"),Be=fp(l.title,Se,fe),qe=$v(l),ft=l.buttons.bind(jr=>jr.length===0?I.none():I.some(di({buttons:jr},Se,fe))),yt=bO(()=>Fr,F0(()=>br,fe.shared.providers,N)),Lt={...l.height.fold(()=>({}),jr=>({height:jr+"px","max-height":jr+"px"})),...l.width.fold(()=>({}),jr=>({width:jr+"px","max-width":jr+"px"}))},Ht=l.width.isNone()&&l.height.isNone()?["tox-dialog--width-lg"]:[],fn=new ZS(l.url,{base_uri:new ZS(window.location.href)}),Rn=`${fn.protocol}://${fn.host}${fn.port?":"+fn.port:""}`,Bn=Ol(),er=(jr,Ro)=>I.some(Ro),cr=[Tr.config({channel:`${P5}-${Se}`,updateState:er,initialData:l}),Ka("messages",[wc(()=>{const jr=ud(Nt.fromDom(window),"message",Ro=>{if(fn.isSameOrigin(new ZS(Ro.raw.origin))){const ko=Ro.raw.data;qy(ko)?oQ(W,Fr,ko):rQ(ko)&&l.onMessage(Fr,ko)}});Bn.set(jr)}),xg(Bn.clear)]),Ad.config({channels:{[c$]:{onReceive:(jr,Ro)=>{qa(jr.element,"iframe").each(ko=>{const _i=ko.dom.contentWindow;a(_i)&&_i.postMessage(Ro,Rn)})}}}})],br=Hy({id:Se,header:Be,body:qe,footer:ft,extraClasses:Ht,extraBehaviours:cr,extraStyles:Lt},yt,fe),Fr=nie(br);return{dialog:br,instanceApi:Fr}},aQ=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=()=>{fd.hide(Lt),Se()},qe=ml(j5({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",l)),ft=Sm(),yt=Hg(Be,N.providers),Lt=ka(ru({lazySink:()=>N.getSink(),header:Om(ft,yt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,Be)],eventOrder:{}}));fd.show(Lt);const Ht=qe.get(Lt);Ra.focus(Ht)}}},rie=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=Rn=>{fd.hide(Ht),Se(Rn)},qe=ml(j5({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",l)),ft=j5({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",l),yt=Sm(),Lt=Hg(()=>Be(!1),N.providers),Ht=ka(ru({lazySink:()=>N.getSink(),header:Om(yt,Lt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,()=>Be(!1)),Lo(v5,()=>Be(!0))],eventOrder:{}}));fd.show(Ht);const fn=qe.get(Ht);Ra.focus(fn)}}},Ps=(l,N)=>Mt(Rt("data",N,l)),xo=l=>f5(l,".tox-alert-dialog")||f5(l,".tox-confirm-dialog"),Ji=(l,N,W)=>N&&W?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(l.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:fe=>ix(l,fe.element).map(Be=>({bounds:Hw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:Tc(Be.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})],Ba=l=>{const N=l.editor,W=Qw(N),fe=aQ(l.backstages.dialog),Se=rie(l.backstages.dialog),Be=(er,cr,Xr)=>{if(!y(cr)){if(cr.inline==="toolbar")return Lt(er,l.backstages.popup.shared.anchors.inlineDialog(),Xr,cr);if(cr.inline==="bottom")return Ht(er,l.backstages.popup.shared.anchors.inlineBottomDialog(),Xr,cr);if(cr.inline==="cursor")return Lt(er,l.backstages.popup.shared.anchors.cursor(),Xr,cr)}return yt(er,Xr)},qe=(er,cr)=>ft(er,cr),ft=(er,cr)=>{const Xr=br=>{const Fr=iQ(br,{closeWindow:()=>{fd.hide(Fr.dialog),cr(Fr.instanceApi)}},N,l.backstages.dialog);return fd.show(Fr.dialog),Fr.instanceApi};return At.openUrl(Xr,er)},yt=(er,cr)=>{const Xr=(br,Fr,jr)=>{const Ro=Fr,_i=Su({dataValidator:jr,initialData:Ro,internalDialog:br},{redial:At.redial,closeWindow:()=>{fd.hide(_i.dialog),cr(_i.instanceApi)}},l.backstages.dialog);return fd.show(_i.dialog),_i.instanceApi.setData(Ro),_i.instanceApi};return At.open(Xr,er)},Lt=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),(!W||!Ao)&&fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),...Ji(N,W,Ao)]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>{const hl=N.inline?Lr():Nt.fromDom(N.getContainer()),Ui=cl(hl);return I.some(Ui)};return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),(!W||!Ao)&&(fc.refresh(ks),N.on("ResizeEditor",yi)),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)},Ht=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor ScrollWindow ElementScroll",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(N.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:hl=>ix(N,hl.element).map(Ko=>({bounds:Hw(Ko),optScrollEnv:I.some({currentScrollTop:Ko.element.dom.scrollTop,scrollElmTop:Tc(Ko.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>l.backstages.popup.shared.getSink().toOptional().bind(hl=>{const Ui=ix(N,hl.element),Ko=15,Oi=Ui.map(fa=>Hw(fa)).getOr(ts()),La=cl(Nt.fromDom(N.getContentAreaContainer())),_a=nc(La,Oi);return I.some(vs(_a.x,_a.y,_a.width,_a.height-Ko))});return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),fc.refresh(ks),N.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",yi),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)};return{open:Be,openUrl:qe,alert:(er,cr)=>{fe.open(er,cr)},close:er=>{er.close()},confirm:(er,cr)=>{Se.open(er,cr)}}},mf=l=>{YB(l),_X(l),dre(l)};var Ap=()=>{zc.add("silver",l=>{mf(l);let N=()=>ts();const{dialogs:W,popups:fe,renderUI:Se}=foe(l,{getPopupSinkBounds:()=>N()}),Be=()=>{const Lt=Se();return ix(l,fe.getMothership().element).each(fn=>{N=()=>Hw(fn)}),Lt};fG.register(l,fe.backstage.shared);const qe=Ba({editor:l,backstages:{popup:fe.backstage,dialog:W.backstage}}),ft=ds(),yt=()=>wY(l,{backstage:fe.backstage},fe.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:yt}})};Ap()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-code":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"export-pdf":'',"export-word":'',"import-word":'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=p=>{let v=p;return{get:()=>v,set:C=>{v=C}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=p=>p.dispatch("ResizeEditor"),E=p=>v=>v.options.get(p),d=p=>{const v=p.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},s=E("min_height"),n=E("max_height"),u=E("autoresize_overflow_padding"),b=E("autoresize_bottom_margin"),i=p=>p.plugins.fullscreen&&p.plugins.fullscreen.isFullscreen(),S=(p,v)=>{const _=p.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(p,v,_,O)=>{var C;const x=parseInt((C=p.getStyle(v,_,O))!==null&&C!==void 0?C:"",10);return isNaN(x)?0:x},y=p=>{if((p==null?void 0:p.type.toLowerCase())==="setcontent"){const v=p;return v.selection===!0||v.paste===!0}else return!1},m=(p,v,_,O)=>{var C;const x=p.dom,R=p.getDoc();if(!R)return;if(i(p)){S(p,!0);return}const M=R.documentElement,T=O?O():u(p),P=(C=s(p))!==null&&C!==void 0?C:p.getElement().offsetHeight;let A=P;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=p.getContainer().offsetHeight,z=p.getContentAreaContainer().offsetHeight,$=I-z;k+$>P&&(A=k+$);const Q=n(p);Q&&A>Q?(A=Q,S(p,!0)):S(p,!1);const j=v.get();if(j.set&&(p.dom.setStyles(p.getDoc().documentElement,{"min-height":0}),p.dom.setStyles(p.getBody(),{"min-height":"inherit"})),A!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=A-j.totalHeight;if(x.setStyle(p.getContainer(),"height",A+"px"),v.set({totalHeight:A,contentHeight:k,set:!0}),f(p),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=p.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}p.hasFocus()&&y(_)&&p.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&m(p,v,_,O)}},a=(p,v)=>{const _=()=>b(p);p.on("init",O=>{const C=u(p),x=p.dom;x.setStyles(p.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C,"min-height":0}):x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C}),m(p,v,O,_)}),p.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",O=>{m(p,v,O,_)})},c=(p,v)=>{p.addCommand("mceAutoResize",()=>{m(p,v)})};var h=()=>{e.add("autoresize",p=>{if(d(p),p.options.isSet("resize")||p.options.set("resize",!1),!p.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});c(p,v),a(p,v)}})};h()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(D,k,I)=>{const z=k==="UL"?"InsertUnorderedList":"InsertOrderedList";D.execCommand(z,!1,I===!1?null:{"list-style-type":I})},o=D=>{D.addCommand("ApplyUnorderedListStyle",(k,I)=>{e(D,"UL",I["list-style-type"])}),D.addCommand("ApplyOrderedListStyle",(k,I)=>{e(D,"OL",I["list-style-type"])})},f=D=>k=>k.options.get(D),E=D=>{const k=D.options.register;k("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),k("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})},d=f("advlist_number_styles"),s=f("advlist_bullet_styles"),n=D=>D==null,u=D=>!n(D);var b=tinymce.util.Tools.resolve("tinymce.util.Tools");class i{constructor(k,I){this.tag=k,this.value=I}static some(k){return new i(!0,k)}static none(){return i.singletonNone}fold(k,I){return this.tag?I(this.value):k()}isSome(){return this.tag}isNone(){return!this.tag}map(k){return this.tag?i.some(k(this.value)):i.none()}bind(k){return this.tag?k(this.value):i.none()}exists(k){return this.tag&&k(this.value)}forall(k){return!this.tag||k(this.value)}filter(k){return!this.tag||k(this.value)?this:i.none()}getOr(k){return this.tag?this.value:k}or(k){return this.tag?this:k}getOrThunk(k){return this.tag?this.value:k()}orThunk(k){return this.tag?this:k()}getOrDie(k){if(this.tag)return this.value;throw new Error(k??"Called getOrDie on None")}static from(k){return u(k)?i.some(k):i.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(k){this.tag&&k(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}i.singletonNone=new i(!1);const S=(D,k,I)=>{for(let z=0,$=D.length;z<$;z++){const Q=D[z];if(k(Q,z))return i.some(Q);if(I(Q,z))break}return i.none()},w=D=>/\btox\-/.test(D.className),y=(D,k)=>D.dom.isChildOf(k,D.getBody()),m=D=>k=>u(k)&&D.test(k.nodeName),a=m(/^(OL|UL|DL)$/),c=m(/^(TH|TD)$/),h=(D,k,I)=>S(k,z=>a(z)&&!w(z),c).exists(z=>z.nodeName===I&&y(D,z)),p=D=>{const k=D.dom.getParent(D.selection.getNode(),"ol,ul"),I=D.dom.getStyle(k,"listStyleType");return i.from(I)},v=(D,k)=>k!==null&&!D.dom.isEditable(k),_=(D,k)=>{const I=D.dom.getParent(k,"ol,ul,dl");return v(D,I)&&D.selection.isEditable()},O=(D,k)=>{const I=D.selection.getNode();return k({parents:D.dom.getParents(I),element:I}),D.on("NodeChange",k),()=>D.off("NodeChange",k)},C=D=>D.replace(/\-/g," ").replace(/\b\w/g,k=>k.toUpperCase()),x=D=>n(D)||D==="default"?"":D,R=(D,k)=>I=>{const z=(Q,j)=>{const U=Q.selection.getStart(!0);I.setActive(h(Q,j,k)),I.setEnabled(!_(Q,U)&&Q.selection.isEditable())};return O(D,Q=>z(D,Q.parents))},M=(D,k,I,z,$,Q)=>{D.ui.registry.addSplitButton(k,{tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:j=>{const U=b.map(Q,X=>{const te=$==="OL"?"num":"bull",Z=X==="disc"||X==="decimal"?"default":X,K=x(X),re=C(X);return{type:"choiceitem",value:K,icon:"list-"+te+"-"+Z,text:re}});j(U)},onAction:()=>D.execCommand(z),onItemAction:(j,U)=>{e(D,$,U)},select:j=>p(D).map(X=>j===X).getOr(!1),onSetup:R(D,$)})},T=(D,k,I,z,$,Q)=>{D.ui.registry.addToggleButton(k,{active:!1,tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",onSetup:R(D,$),onAction:()=>D.queryCommandState(z)||Q===""?D.execCommand(z):e(D,$,Q)})},P=(D,k,I,z,$,Q)=>{Q.length>1?M(D,k,I,z,$,Q):T(D,k,I,z,$,x(Q[0]))},A=D=>{P(D,"numlist","Numbered list","InsertOrderedList","OL",d(D)),P(D,"bullist","Bullet list","InsertUnorderedList","UL",s(D))};var L=()=>{t.add("advlist",D=>{D.hasPlugin("lists")?(E(D),A(D),o(D)):console.error("Please use the Lists plugin together with the List Styles plugin.")})};L()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=()=>/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g,o=Z=>K=>K.options.get(Z),f=Z=>{const K=Z.options.register;K("autolink_pattern",{processor:"regexp",default:new RegExp("^"+e().source+"$","i")}),K("link_default_target",{processor:"string"}),K("link_default_protocol",{processor:"string",default:"https"})},E=o("autolink_pattern"),d=o("link_default_target"),s=o("link_default_protocol"),n=o("allow_unsafe_link_target"),u=(Z,K,re)=>{var q;return re(Z,K.prototype)?!0:((q=Z.constructor)===null||q===void 0?void 0:q.name)===K.name},b=Z=>{const K=typeof Z;return Z===null?"null":K==="object"&&Array.isArray(Z)?"array":K==="object"&&u(Z,String,(re,q)=>q.isPrototypeOf(re))?"string":K},i=Z=>K=>b(K)===Z,S=Z=>K=>Z===K,w=i("string"),y=S(void 0),m=Z=>Z==null,a=Z=>!m(Z),c=Z=>K=>!Z(K),h=Object.hasOwnProperty,p=(Z,K)=>h.call(Z,K),v=(Z,K,re)=>K===""||Z.length>=K.length&&Z.substr(re,re+K.length)===K,_=(Z,K,re=0,q)=>{const Y=Z.indexOf(K,re);return Y!==-1?y(q)?!0:Y+K.length<=q:!1},O=(Z,K)=>v(Z,K,0),C="\uFEFF",x=Z=>Z===C,R=Z=>Z.replace(/\uFEFF/g,"");var M=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const T=Z=>Z.nodeType===3,P=Z=>Z.nodeType===1,A=Z=>/^[(\[{ \u00a0]$/.test(Z),L=Z=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Z),D=Z=>/[?!,.;:]/.test(Z),k=(Z,K,re)=>{for(let q=K-1;q>=0;q--){const Y=Z.charAt(q);if(!x(Y)&&re(Y))return q}return-1},I=(Z,K)=>{let re=Z,q=K;for(;P(re)&&re.childNodes[q];)re=re.childNodes[q],q=T(re)?re.data.length:re.childNodes.length;return{container:re,offset:q}},z=(Z,K)=>{var re;const q=Z.schema.getVoidElements(),Y=E(Z),{dom:ee,selection:me}=Z;if(ee.getParent(me.getNode(),"a[href]")!==null)return null;const pe=me.getRng(),se=M(ee,Ie=>ee.isBlock(Ie)||p(q,Ie.nodeName.toLowerCase())||ee.getContentEditable(Ie)==="false"),{container:ae,offset:ce}=I(pe.endContainer,pe.endOffset),de=(re=ee.getParent(ae,ee.isBlock))!==null&&re!==void 0?re:ee.getRoot(),ye=se.backwards(ae,ce+K,(Ie,ze)=>{const De=Ie.data,Qe=k(De,ze,c(A));return Qe===-1||D(De[Qe])?Qe:Qe+1},de);if(!ye)return null;let ve=ye.container;const _e=se.backwards(ye.container,ye.offset,(Ie,ze)=>{ve=Ie;const De=k(Ie.data,ze,A);return De===-1?De:De+1},de),we=ee.createRng();_e?we.setStart(_e.container,_e.offset):we.setStart(ve,0),we.setEnd(ye.container,ye.offset);const Pe=R(we.toString()).match(Y);if(Pe){let Ie=Pe[0];return O(Ie,"www.")?Ie=s(Z)+"://"+Ie:_(Ie,"@")&&!L(Ie)&&(Ie="mailto:"+Ie),{rng:we,url:Ie}}else return null},$=(Z,K)=>{const{dom:re,selection:q}=Z,{rng:Y,url:ee}=K,me=q.getBookmark();q.setRng(Y);const pe="createlink",se={command:pe,ui:!1,value:ee};if(!Z.dispatch("BeforeExecCommand",se).isDefaultPrevented()){Z.getDoc().execCommand(pe,!1,ee),Z.dispatch("ExecCommand",se);const ce=d(Z);if(w(ce)){const de=q.getNode();re.setAttrib(de,"target",ce),ce==="_blank"&&!n(Z)&&re.setAttrib(de,"rel","noopener")}}q.moveToBookmark(me),Z.nodeChanged()},Q=Z=>{const K=z(Z,-1);a(K)&&$(Z,K)},j=Q,U=Z=>{const K=z(Z,0);a(K)&&$(Z,K)},X=Z=>{Z.on("keydown",K=>{K.keyCode===13&&!K.isDefaultPrevented()&&U(Z)}),Z.on("keyup",K=>{K.keyCode===32?Q(Z):(K.keyCode===48&&K.shiftKey||K.keyCode===221)&&j(Z)})};var te=()=>{t.add("autolink",Z=>{f(Z),X(Z)})};te()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(wt,Kt,En)=>{var pr;return En(wt,Kt.prototype)?!0:((pr=wt.constructor)===null||pr===void 0?void 0:pr.name)===Kt.name},o=wt=>{const Kt=typeof wt;return wt===null?"null":Kt==="object"&&Array.isArray(wt)?"array":Kt==="object"&&e(wt,String,(En,pr)=>pr.isPrototypeOf(En))?"string":Kt},f=wt=>Kt=>o(Kt)===wt,E=wt=>Kt=>typeof Kt===wt,d=f("string"),s=f("object"),n=f("array"),u=E("boolean"),b=wt=>wt==null,i=wt=>!b(wt),S=E("function"),w=E("number"),y=()=>{},m=(wt,Kt)=>En=>wt(Kt(En)),a=wt=>()=>wt,c=(wt,Kt)=>wt===Kt;function h(wt,...Kt){return(...En)=>{const pr=Kt.concat(En);return wt.apply(null,pr)}}const p=wt=>Kt=>!wt(Kt),v=a(!1);class _{constructor(Kt,En){this.tag=Kt,this.value=En}static some(Kt){return new _(!0,Kt)}static none(){return _.singletonNone}fold(Kt,En){return this.tag?En(this.value):Kt()}isSome(){return this.tag}isNone(){return!this.tag}map(Kt){return this.tag?_.some(Kt(this.value)):_.none()}bind(Kt){return this.tag?Kt(this.value):_.none()}exists(Kt){return this.tag&&Kt(this.value)}forall(Kt){return!this.tag||Kt(this.value)}filter(Kt){return!this.tag||Kt(this.value)?this:_.none()}getOr(Kt){return this.tag?this.value:Kt}or(Kt){return this.tag?this:Kt}getOrThunk(Kt){return this.tag?this.value:Kt()}orThunk(Kt){return this.tag?this:Kt()}getOrDie(Kt){if(this.tag)return this.value;throw new Error(Kt??"Called getOrDie on None")}static from(Kt){return i(Kt)?_.some(Kt):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Kt){this.tag&&Kt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Array.prototype.slice,C=Array.prototype.indexOf,x=Array.prototype.push,R=(wt,Kt)=>C.call(wt,Kt),M=(wt,Kt)=>R(wt,Kt)>-1,T=(wt,Kt)=>{for(let En=0,pr=wt.length;En{const En=wt.length,pr=new Array(En);for(let wr=0;wr{for(let En=0,pr=wt.length;En{const En=[];for(let pr=0,wr=wt.length;pr{if(wt.length===0)return[];{let En=Kt(wt[0]);const pr=[];let wr=[];for(let uo=0,Bi=wt.length;uo(A(wt,(pr,wr)=>{En=Kt(En,pr,wr)}),En),I=(wt,Kt,En)=>{for(let pr=0,wr=wt.length;prI(wt,Kt,v),$=wt=>{const Kt=[];for(let En=0,pr=wt.length;En$(P(wt,Kt)),j=wt=>{const Kt=O.call(wt,0);return Kt.reverse(),Kt},U=(wt,Kt)=>Kt>=0&&KtU(wt,0),te=wt=>U(wt,wt.length-1),Z=(wt,Kt)=>{const En=[],pr=S(Kt)?wr=>T(En,uo=>Kt(uo,wr)):wr=>M(En,wr);for(let wr=0,uo=wt.length;wrwt.exists(pr=>En(pr,Kt)),re=(wt,Kt,En=c)=>q(wt,Kt,En).getOr(wt.isNone()&&Kt.isNone()),q=(wt,Kt,En)=>wt.isSome()&&Kt.isSome()?_.some(En(wt.getOrDie(),Kt.getOrDie())):_.none(),Y=8,ee=11,me=1,pe=3,se=(wt,Kt)=>{const pr=(Kt||document).createElement("div");if(pr.innerHTML=wt,!pr.hasChildNodes()||pr.childNodes.length>1){const wr="HTML does not have a single root node";throw console.error(wr,wt),new Error(wr)}return de(pr.childNodes[0])},ae=(wt,Kt)=>{const pr=(Kt||document).createElement(wt);return de(pr)},ce=(wt,Kt)=>{const pr=(Kt||document).createTextNode(wt);return de(pr)},de=wt=>{if(wt==null)throw new Error("Node cannot be null or undefined");return{dom:wt}},ve={fromHtml:se,fromTag:ae,fromText:ce,fromDom:de,fromPoint:(wt,Kt,En)=>_.from(wt.dom.elementFromPoint(Kt,En)).map(de)},_e=(wt,Kt)=>{const En=wt.dom;if(En.nodeType!==me)return!1;{const pr=En;if(pr.matches!==void 0)return pr.matches(Kt);if(pr.msMatchesSelector!==void 0)return pr.msMatchesSelector(Kt);if(pr.webkitMatchesSelector!==void 0)return pr.webkitMatchesSelector(Kt);if(pr.mozMatchesSelector!==void 0)return pr.mozMatchesSelector(Kt);throw new Error("Browser lacks native selectors")}},we=(wt,Kt)=>wt.dom===Kt.dom,Te=(wt,Kt)=>{const En=wt.dom,pr=Kt.dom;return En===pr?!1:En.contains(pr)},Pe=_e,Ie=typeof window<"u"?window:Function("return this;")(),ze=(wt,Kt)=>{let En=Kt??Ie;for(let pr=0;pr{const En=wt.split(".");return ze(En,Kt)},Qe=(wt,Kt)=>De(wt,Kt),Ve=(wt,Kt)=>{const En=Qe(wt,Kt);if(En==null)throw new Error(wt+" not available on this browser");return En},$e=Object.getPrototypeOf,Oe=wt=>Ve("HTMLElement",wt),ke=wt=>{const Kt=De("ownerDocument.defaultView",wt);return s(wt)&&(Oe(Kt).prototype.isPrototypeOf(wt)||/^HTML\w*Element$/.test($e(wt).constructor.name))},Re=wt=>wt.dom.nodeName.toLowerCase(),We=wt=>wt.dom.nodeType,Ue=wt=>Kt=>We(Kt)===wt,Ze=wt=>We(wt)===Y||Re(wt)==="#comment",Ye=wt=>Je(wt)&&ke(wt.dom),Je=Ue(me),Me=Ue(pe),Fe=Ue(ee),je=wt=>Kt=>Je(Kt)&&Re(Kt)===wt,tt=wt=>_.from(wt.dom.parentNode).map(ve.fromDom),ot=wt=>_.from(wt.dom.parentElement).map(ve.fromDom),Ge=wt=>_.from(wt.dom.nextSibling).map(ve.fromDom),ht=wt=>P(wt.dom.childNodes,ve.fromDom),pt=(wt,Kt)=>{const En=wt.dom.childNodes;return _.from(En[Kt]).map(ve.fromDom)},St=wt=>pt(wt,0),Ft=wt=>pt(wt,wt.dom.childNodes.length-1),zt=wt=>Fe(wt)&&i(wt.dom.host),Yt=wt=>ve.fromDom(wt.dom.getRootNode()),ln=wt=>{const Kt=Yt(wt);return zt(Kt)?_.some(Kt):_.none()},tn=wt=>ve.fromDom(wt.dom.host),Et=wt=>{const Kt=Me(wt)?wt.dom.parentNode:wt.dom;if(Kt==null||Kt.ownerDocument===null)return!1;const En=Kt.ownerDocument;return ln(ve.fromDom(Kt)).fold(()=>En.body.contains(Kt),m(Et,tn))};var Ot=(wt,Kt,En,pr,wr)=>wt(En,pr)?_.some(En):S(wr)&&wr(En)?_.none():Kt(En,pr,wr);const cn=(wt,Kt,En)=>{let pr=wt.dom;const wr=S(En)?En:v;for(;pr.parentNode;){pr=pr.parentNode;const uo=ve.fromDom(pr);if(Kt(uo))return _.some(uo);if(wr(uo))break}return _.none()},Cn=(wt,Kt,En)=>Ot((wr,uo)=>uo(wr),cn,wt,Kt,En),Pn=(wt,Kt,En)=>cn(wt,pr=>_e(pr,Kt),En),Sn=(wt,Kt,En)=>Ot((wr,uo)=>_e(wr,uo),Pn,wt,Kt,En),vt=wt=>Sn(wt,"[contenteditable]"),xt=(wt,Kt=!1)=>Et(wt)?wt.dom.isContentEditable:vt(wt).fold(a(Kt),En=>st(En)==="true"),st=wt=>wt.dom.contentEditable,bt=(wt,Kt)=>{tt(wt).each(pr=>{pr.dom.insertBefore(Kt.dom,wt.dom)})},Vt=(wt,Kt)=>{Ge(wt).fold(()=>{tt(wt).each(wr=>{it(wr,Kt)})},pr=>{bt(pr,Kt)})},Dt=(wt,Kt)=>{St(wt).fold(()=>{it(wt,Kt)},pr=>{wt.dom.insertBefore(Kt.dom,pr.dom)})},it=(wt,Kt)=>{wt.dom.appendChild(Kt.dom)},at=(wt,Kt)=>{A(Kt,En=>{bt(wt,En)})},Bt=(wt,Kt)=>{A(Kt,En=>{it(wt,En)})},_t=wt=>{wt.dom.textContent="",A(ht(wt),Kt=>{qt(Kt)})},qt=wt=>{const Kt=wt.dom;Kt.parentNode!==null&&Kt.parentNode.removeChild(Kt)};var en=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Jt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Zt=tinymce.util.Tools.resolve("tinymce.util.VK");const Nt=wt=>P(wt,ve.fromDom),sn=Object.keys,rn=(wt,Kt)=>{const En=sn(wt);for(let pr=0,wr=En.length;pr(Kt,En)=>{wt[En]=Kt},wn=(wt,Kt,En,pr)=>{rn(wt,(wr,uo)=>{(Kt(wr,uo)?En:pr)(wr,uo)})},An=(wt,Kt)=>{const En={};return wn(wt,Kt,_n(En),y),En},Kn=(wt,Kt,En)=>{if(d(En)||u(En)||w(En))wt.setAttribute(Kt,En+"");else throw console.error("Invalid call to Attribute.set. Key ",Kt,":: Value ",En,":: Element ",wt),new Error("Attribute value was not simple")},fr=(wt,Kt)=>{const En=wt.dom;rn(Kt,(pr,wr)=>{Kn(En,wr,pr)})},Un=wt=>k(wt.dom.attributes,(Kt,En)=>(Kt[En.name]=En.value,Kt),{}),Zn=(wt,Kt)=>ve.fromDom(wt.dom.cloneNode(Kt)),tr=wt=>Zn(wt,!0),Br=(wt,Kt)=>{const En=ve.fromTag(Kt),pr=Un(wt);return fr(En,pr),En},$r=(wt,Kt)=>{const En=Br(wt,Kt);Vt(wt,En);const pr=ht(wt);return Bt(En,pr),qt(wt),En};var vr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qn=tinymce.util.Tools.resolve("tinymce.util.Tools");const gr=wt=>Kt=>i(Kt)&&Kt.nodeName.toLowerCase()===wt,sr=wt=>Kt=>i(Kt)&&wt.test(Kt.nodeName),lr=wt=>i(wt)&&wt.nodeType===3,zr=wt=>i(wt)&&wt.nodeType===1,Vr=sr(/^(OL|UL|DL)$/),eo=sr(/^(OL|UL)$/),Jr=gr("ol"),Yr=sr(/^(LI|DT|DD)$/),to=sr(/^(DT|DD)$/),co=sr(/^(TH|TD)$/),Fo=gr("br"),_o=wt=>{var Kt;return((Kt=wt.parentNode)===null||Kt===void 0?void 0:Kt.firstChild)===wt},$o=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getTextBlockElements(),Mo=(wt,Kt)=>i(wt)&&wt.nodeName in Kt,pi=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getVoidElements(),Hn=(wt,Kt)=>Fo(Kt)?wt.isBlock(Kt.nextSibling)&&!Fo(Kt.previousSibling):!1,ar=(wt,Kt,En)=>{const pr=wt.isEmpty(Kt);return En&&wt.select("span[data-mce-type=bookmark]",Kt).length>0?!1:pr},Dr=(wt,Kt)=>wt.isChildOf(Kt,wt.getRoot()),Sr=wt=>Kt=>Kt.options.get(wt),Zr=wt=>{const Kt=wt.options.register;Kt("lists_indent_on_tab",{processor:"boolean",default:!0})},go=Sr("lists_indent_on_tab"),oo=Sr("forced_root_block"),io=Sr("forced_root_block_attrs"),Do=(wt,Kt,En={})=>{const pr=wt.dom,wr=wt.schema.getBlockElements(),uo=pr.createFragment(),Bi=oo(wt),ya=io(wt);let Ni,Qi,Ws=!1;for(Qi=pr.create(Bi,{...ya,...En.style?{style:En.style}:{}}),Mo(Kt.firstChild,wr)||uo.appendChild(Qi);Ni=Kt.firstChild;){const nl=Ni.nodeName;!Ws&&(nl!=="SPAN"||Ni.getAttribute("data-mce-type")!=="bookmark")&&(Ws=!0),Mo(Ni,wr)?(uo.appendChild(Ni),Qi=null):(Qi||(Qi=pr.create(Bi,ya),uo.appendChild(Qi)),Qi.appendChild(Ni))}return!Ws&&Qi&&Qi.appendChild(pr.create("br",{"data-mce-bogus":"1"})),uo},jn=vr.DOM,Rr=(wt,Kt,En)=>{const pr=Qi=>{const Ws=Qi.parentNode;Ws&&qn.each(wr,nl=>{Ws.insertBefore(nl,En.parentNode)}),jn.remove(Qi)},wr=jn.select('span[data-mce-type="bookmark"]',Kt),uo=Do(wt,En),Bi=jn.createRng();Bi.setStartAfter(En),Bi.setEndAfter(Kt);const ya=Bi.extractContents();for(let Qi=ya.firstChild;Qi;Qi=Qi.firstChild)if(Qi.nodeName==="LI"&&wt.dom.isEmpty(Qi)){jn.remove(Qi);break}wt.dom.isEmpty(ya)||jn.insertAfter(ya,Kt),jn.insertAfter(uo,Kt);const Ni=En.parentElement;Ni&&ar(wt.dom,Ni)&&pr(Ni),jn.remove(En),ar(wt.dom,Kt)&&jn.remove(Kt)},On=je("dd"),Yn=je("dt"),ir=(wt,Kt)=>{On(Kt)?$r(Kt,"dt"):Yn(Kt)&&ot(Kt).each(En=>Rr(wt,En.dom,Kt.dom))},kr=wt=>{Yn(wt)&&$r(wt,"dd")},Er=(wt,Kt,En)=>{Kt==="Indent"?A(En,kr):A(En,pr=>ir(wt,pr))},Gt=(wt,Kt)=>{if(lr(wt))return{container:wt,offset:Kt};const En=en.getNode(wt,Kt);return lr(En)?{container:En,offset:Kt>=wt.childNodes.length?En.data.length:0}:En.previousSibling&&lr(En.previousSibling)?{container:En.previousSibling,offset:En.previousSibling.data.length}:En.nextSibling&&lr(En.nextSibling)?{container:En.nextSibling,offset:0}:{container:wt,offset:Kt}},on=wt=>{const Kt=wt.cloneRange(),En=Gt(wt.startContainer,wt.startOffset);Kt.setStart(En.container,En.offset);const pr=Gt(wt.endContainer,wt.endOffset);return Kt.setEnd(pr.container,pr.offset),Kt},an=["OL","UL","DL"],Tn=an.join(","),zn=(wt,Kt)=>{const En=Kt||wt.selection.getStart(!0);return wt.dom.getParent(En,Tn,zo(wt,En))},Gn=(wt,Kt)=>i(wt)&&Kt.length===1&&Kt[0]===wt,Lr=wt=>L(wt.querySelectorAll(Tn),Vr),Ur=wt=>{const Kt=zn(wt),En=wt.selection.getSelectedBlocks();return Gn(Kt,En)?Lr(Kt):L(En,pr=>Vr(pr)&&Kt!==pr)},qr=(wt,Kt)=>{const En=qn.map(Kt,pr=>{const wr=wt.dom.getParent(pr,"li,dd,dt",zo(wt,pr));return wr||pr});return Z(En)},Cr=wt=>{const Kt=wt.selection.getSelectedBlocks();return L(qr(wt,Kt),Yr)},wo=wt=>L(Cr(wt),to),Nr=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"TD,TH");return En.length>0?En[0]:wt.getBody()},Eo=(wt,Kt)=>!Vr(Kt)&&!Yr(Kt)&&T(an,En=>wt.isValidChild(Kt.nodeName,En)),zo=(wt,Kt)=>{const En=wt.dom.getParents(Kt,wt.dom.isBlock),pr=uo=>uo.nodeName.toLowerCase()!==oo(wt);return z(En,uo=>pr(uo)&&Eo(wt.schema,uo)).getOr(wt.getBody())},Qt=wt=>tt(wt).exists(Kt=>Yr(Kt.dom)&&St(Kt).exists(En=>!Vr(En.dom))&&Ft(Kt).exists(En=>!Vr(En.dom))),Mn=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt));return te(En)},Fn=wt=>{const Kt=Mn(wt,wt.selection.getStart()),En=L(wt.selection.getSelectedBlocks(),eo);return Kt.toArray().concat(En)},dr=wt=>{const Kt=wt.selection.getStart();return wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt))},xr=wt=>{const Kt=Fn(wt),En=dr(wt);return z(En,pr=>Qt(ve.fromDom(pr))).fold(()=>Oo(wt,Kt),pr=>[pr])},Oo=(wt,Kt)=>{const En=P(Kt,pr=>Mn(wt,pr).getOr(pr));return Z(En)},mi=wt=>/\btox\-/.test(wt.className),Di=(wt,Kt)=>I(wt,Vr,co).exists(En=>En.nodeName===Kt&&!mi(En)),To=(wt,Kt)=>Kt!==null&&!wt.dom.isEditable(Kt),Ia=wt=>{const Kt=zn(wt);return To(wt,Kt)},Ds=(wt,Kt)=>{const En=wt.dom.getParent(Kt,"ol,ul,dl");return To(wt,En)},fs=(wt,Kt)=>{const En=wt.selection.getNode();return Kt({parents:wt.dom.getParents(En),element:En}),wt.on("NodeChange",Kt),()=>wt.off("NodeChange",Kt)},zi=(wt,Kt)=>{const pr=(Kt||document).createDocumentFragment();return A(wt,wr=>{pr.appendChild(wr.dom)}),ve.fromDom(pr)},yl=(wt,Kt,En)=>wt.dispatch("ListMutation",{action:Kt,element:En}),yf=(wt=>Kt=>Kt.replace(wt,""))(/^\s+|\s+$/g),il=wt=>wt.length>0,nf=wt=>!il(wt),nh=wt=>wt.style!==void 0&&S(wt.style.getPropertyValue),gp=(wt,Kt,En)=>{if(!d(En))throw console.error("Invalid call to CSS.set. Property ",Kt,":: Value ",En,":: Element ",wt),new Error("CSS value must be a string: "+En);nh(wt)&&wt.style.setProperty(Kt,En)},Qs=(wt,Kt,En)=>{const pr=wt.dom;gp(pr,Kt,En)},xh=wt=>Pe(wt,"OL,UL"),Bl=wt=>Pe(wt,"LI"),Tc=wt=>St(wt).exists(xh),iu=wt=>Ft(wt).exists(xh),au=wt=>"listAttributes"in wt,zf=wt=>"isComment"in wt,_s=wt=>"isFragment"in wt,ma=wt=>wt.depth>0,mu=wt=>wt.isSelected,Uc=wt=>{const Kt=ht(wt),En=iu(wt)?Kt.slice(0,-1):Kt;return P(En,tr)},Kf=(wt,Kt,En)=>tt(wt).filter(Je).map(pr=>({depth:Kt,dirty:!1,isSelected:En,content:Uc(wt),itemAttributes:Un(wt),listAttributes:Un(pr),listType:Re(pr),isInPreviousLi:!1})),Al=(wt,Kt)=>{it(wt.item,Kt.list)},Wl=wt=>{for(let Kt=1;Kt{q(te(wt),X(Kt),Al)},Jf=(wt,Kt)=>{const En={list:ve.fromTag(Kt,wt),item:ve.fromTag("li",wt)};return it(En.list,En.item),En},Nf=(wt,Kt,En)=>{const pr=[];for(let wr=0;wr{for(let En=0;En{au(Kt)&&(fr(En.list,Kt.listAttributes),fr(En.item,Kt.itemAttributes)),Bt(En.item,Kt.content)})},Gh=(wt,Kt)=>{Re(wt.list)!==Kt.listType&&(wt.list=$r(wt.list,Kt.listType)),fr(wt.list,Kt.listAttributes)},ll=(wt,Kt,En)=>{const pr=ve.fromTag("li",wt);return fr(pr,Kt),Bt(pr,En),pr},Tu=(wt,Kt)=>{it(wt.list,Kt),wt.item=Kt},gu=(wt,Kt,En)=>{const pr=Kt.slice(0,En.depth);return te(pr).each(wr=>{if(au(En)){const uo=ll(wt,En.itemAttributes,En.content);Tu(wr,uo),Gh(wr,En)}else if(_s(En))Bt(wr.item,En.content);else{const uo=ve.fromHtml(``);it(wr.list,uo)}}),pr},ec=(wt,Kt,En)=>{const pr=Nf(wt,En,En.depth-Kt.length);return Wl(pr),Jl(pr,En),Ml(Kt,pr),Kt.concat(pr)},Dc=(wt,Kt)=>{let En=_.none();const pr=k(Kt,(wr,uo,Bi)=>zf(uo)?Bi===0?(En=_.some(uo),wr):gu(wt,wr,uo):uo.depth>wr.length?ec(wt,wr,uo):gu(wt,wr,uo),[]);return En.each(wr=>{const uo=ve.fromHtml(``);X(pr).each(Bi=>{Dt(Bi.list,uo)})}),X(pr).map(wr=>wr.list)},tc=(wt,Kt)=>{switch(wt){case"Indent":Kt.depth++;break;case"Outdent":Kt.depth--;break;case"Flatten":Kt.depth=0}Kt.dirty=!0},Lp=(wt,Kt)=>{au(wt)&&au(Kt)&&(wt.listType=Kt.listType,wt.listAttributes={...Kt.listAttributes})},rh=wt=>{wt.listAttributes=An(wt.listAttributes,(Kt,En)=>En!=="start")},rf=(wt,Kt)=>{const En=wt[Kt].depth,pr=uo=>uo.depth===En&&!uo.dirty,wr=uo=>uo.depthI(wt.slice(Kt+1),pr,wr))},of=wt=>(A(wt,(Kt,En)=>{rf(wt,En).fold(()=>{Kt.dirty&&au(Kt)&&rh(Kt)},pr=>Lp(Kt,pr))}),wt),bf=wt=>{let Kt=wt;return{get:()=>Kt,set:wr=>{Kt=wr}}},vu=(wt,Kt,En,pr)=>{var wr;if(Ze(pr))return[{depth:wt+1,content:(wr=pr.dom.nodeValue)!==null&&wr!==void 0?wr:"",dirty:!1,isSelected:!1,isComment:!0}];Kt.each(ya=>{we(ya.start,pr)&&En.set(!0)});const uo=Kf(pr,wt,En.get());Kt.each(ya=>{we(ya.end,pr)&&En.set(!1)});const Bi=Ft(pr).filter(xh).map(ya=>bl(wt,Kt,En,ya)).getOr([]);return uo.toArray().concat(Bi)},$d=(wt,Kt,En,pr)=>St(pr).filter(xh).fold(()=>vu(wt,Kt,En,pr),wr=>{const uo=k(ht(pr),(Bi,ya,Ni)=>{if(Ni===0)return Bi;if(Bl(ya))return Bi.concat(vu(wt,Kt,En,ya));{const Qi={isFragment:!0,depth:wt,content:[ya],isSelected:!1,dirty:!1,parentListType:Re(wr)};return Bi.concat(Qi)}},[]);return bl(wt,Kt,En,wr).concat(uo)}),bl=(wt,Kt,En,pr)=>Q(ht(pr),wr=>{const uo=xh(wr)?bl:$d,Bi=wt+1;return uo(Bi,Kt,En,wr)}),Zu=(wt,Kt)=>{const En=bf(!1),pr=0;return P(wt,wr=>({sourceList:wr,entries:bl(pr,Kt,En,wr)}))},Kh=(wt,Kt)=>{const En=of(Kt);return P(En,pr=>{const wr=zf(pr)?zi([ve.fromHtml(``)]):zi(pr.content),uo=au(pr)?pr.itemAttributes:{};return ve.fromDom(Do(wt,wr.dom,uo))})},Cu=(wt,Kt)=>{const En=of(Kt);return Dc(wt.contentDocument,En).toArray()},ed=(wt,Kt)=>Q(D(Kt,ma),En=>X(En).exists(ma)?Cu(wt,En):Kh(wt,En)),Bu=(wt,Kt)=>{A(L(wt,mu),En=>tc(Kt,En))},vd=wt=>{const Kt=P(Cr(wt),ve.fromDom);return q(z(Kt,p(Tc)),z(j(Kt),p(Tc)),(En,pr)=>({start:En,end:pr}))},cs=(wt,Kt,En)=>{const pr=Zu(Kt,vd(wt));A(pr,wr=>{Bu(wr.entries,En);const uo=ed(wt,wr.entries);A(uo,Bi=>{yl(wt,En==="Indent"?"IndentList":"OutdentList",Bi.dom)}),at(wr.sourceList,uo),qt(wr.sourceList)})},oh=(wt,Kt)=>{const En=Nt(xr(wt)),pr=Nt(wo(wt));let wr=!1;if(En.length||pr.length){const uo=wt.selection.getBookmark();cs(wt,En,Kt),Er(wt,Kt,pr),wt.selection.moveToBookmark(uo),wt.selection.setRng(on(wt.selection.getRng())),wt.nodeChanged(),wr=!0}return wr},Jh=(wt,Kt)=>!Ia(wt)&&oh(wt,Kt),_h=wt=>Jh(wt,"Indent"),xf=wt=>Jh(wt,"Outdent"),ep=wt=>Jh(wt,"Flatten"),_r="\uFEFF",Ff=wt=>wt===_r,yd=(wt,Kt,En)=>cn(wt,Kt,En).isSome(),bd=(wt,Kt)=>yd(wt,h(we,Kt));var wh=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const zu=vr.DOM,va=wt=>{const Kt={},En=pr=>{let wr=wt[pr?"startContainer":"endContainer"],uo=wt[pr?"startOffset":"endOffset"];if(zr(wr)){const Bi=zu.create("span",{"data-mce-type":"bookmark"});wr.hasChildNodes()?(uo=Math.min(uo,wr.childNodes.length-1),pr?wr.insertBefore(Bi,wr.childNodes[uo]):zu.insertAfter(Bi,wr.childNodes[uo])):wr.appendChild(Bi),wr=Bi,uo=0}Kt[pr?"startContainer":"endContainer"]=wr,Kt[pr?"startOffset":"endOffset"]=uo};return En(!0),wt.collapsed||En(),Kt},El=wt=>{const Kt=pr=>{const wr=ya=>{var Ni;let Qi=(Ni=ya.parentNode)===null||Ni===void 0?void 0:Ni.firstChild,Ws=0;for(;Qi;){if(Qi===ya)return Ws;(!zr(Qi)||Qi.getAttribute("data-mce-type")!=="bookmark")&&Ws++,Qi=Qi.nextSibling}return-1};let uo=wt[pr?"startContainer":"endContainer"],Bi=wt[pr?"startOffset":"endOffset"];if(uo){if(zr(uo)&&uo.parentNode){const ya=uo;Bi=wr(uo),uo=uo.parentNode,zu.remove(ya),!uo.hasChildNodes()&&zu.isBlock(uo)&&uo.appendChild(zu.create("br"))}wt[pr?"startContainer":"endContainer"]=uo,wt[pr?"startOffset":"endOffset"]=Bi}};Kt(!0),Kt();const En=zu.createRng();return En.setStart(wt.startContainer,wt.startOffset),wt.endContainer&&En.setEnd(wt.endContainer,wt.endOffset),on(En)},_f=wt=>{switch(wt){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},$f=(wt,Kt,En)=>{const pr=En["list-style-type"]?En["list-style-type"]:null;wt.setStyle(Kt,"list-style-type",pr)},ih=(wt,Kt)=>{qn.each(Kt,(En,pr)=>{wt.setAttribute(pr,En)})},yu=(wt,Kt,En)=>{ih(Kt,En["list-attributes"]),qn.each(wt.select("li",Kt),pr=>{ih(pr,En["list-item-attributes"])})},jc=(wt,Kt,En)=>{$f(wt,Kt,En),yu(wt,Kt,En)},Nh=(wt,Kt,En)=>{qn.each(En,pr=>wt.setStyle(Kt,pr,""))},af=(wt,Kt)=>i(Kt)&&!Mo(Kt,wt.schema.getBlockElements()),td=(wt,Kt,En,pr)=>{let wr=Kt[En?"startContainer":"endContainer"];const uo=Kt[En?"startOffset":"endOffset"];zr(wr)&&(wr=wr.childNodes[Math.min(uo,wr.childNodes.length-1)]||wr),!En&&Fo(wr.nextSibling)&&(wr=wr.nextSibling);const Bi=Ni=>{for(;!wt.dom.isBlock(Ni)&&Ni.parentNode&&pr!==Ni;)Ni=Ni.parentNode;return Ni},ya=(Ni,Qi)=>{var Ws;const nl=new Jt(Ni,Bi(Ni)),Fs=Qi?"next":"prev";let Wu;for(;Wu=nl[Fs]();)if(!(pi(wt,Wu)||Ff(Wu.textContent)||((Ws=Wu.textContent)===null||Ws===void 0?void 0:Ws.length)===0))return _.some(Wu);return _.none()};if(En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!1).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.previousSibling!==null&&(af(wt,wr.previousSibling)||lr(wr.previousSibling));)wr=wr.previousSibling;if(!En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!0).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.nextSibling!==null&&(af(wt,wr.nextSibling)||lr(wr.nextSibling));)wr=wr.nextSibling;for(;wr.parentNode!==pr;){const Ni=wr.parentNode;if($o(wt,wr)||/^(TD|TH)$/.test(Ni.nodeName))return wr;wr=Ni}return wr},sf=(wt,Kt,En)=>{const pr=[],wr=wt.dom,uo=td(wt,Kt,!0,En),Bi=td(wt,Kt,!1,En);let ya;const Ni=[];for(let Qi=uo;Qi&&(Ni.push(Qi),Qi!==Bi);Qi=Qi.nextSibling);return qn.each(Ni,Qi=>{var Ws;if($o(wt,Qi)){pr.push(Qi),ya=null;return}if(wr.isBlock(Qi)||Fo(Qi)){Fo(Qi)&&wr.remove(Qi),ya=null;return}const nl=Qi.nextSibling;if(wh.isBookmarkNode(Qi)&&(Vr(nl)||$o(wt,nl)||!nl&&Qi.parentNode===En)){ya=null;return}ya||(ya=wr.create("p"),(Ws=Qi.parentNode)===null||Ws===void 0||Ws.insertBefore(ya,Qi),pr.push(ya)),ya.appendChild(Qi)}),pr},Bc=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type");let wr=En?En["list-style-type"]:"";return wr=wr===null?"":wr,pr===wr},Vd=(wt,Kt)=>{const En=wt.selection.getStart(!0),pr=td(wt,Kt,!0,wt.getBody());return bd(ve.fromDom(pr),ve.fromDom(Kt.commonAncestorContainer))?Kt.commonAncestorContainer:En},xd=(wt,Kt,En)=>{const pr=wt.selection.getRng();let wr="LI";const uo=zo(wt,Vd(wt,pr)),Bi=wt.dom;if(Bi.getContentEditable(wt.selection.getNode())==="false")return;Kt=Kt.toUpperCase(),Kt==="DL"&&(wr="DT");const ya=va(pr),Ni=L(sf(wt,pr,uo),wt.dom.isEditable);qn.each(Ni,Qi=>{let Ws;const nl=Qi.previousSibling,Fs=Qi.parentNode;Yr(Fs)||(nl&&Vr(nl)&&nl.nodeName===Kt&&Bc(Bi,nl,En)?(Ws=nl,Qi=Bi.rename(Qi,wr),nl.appendChild(Qi)):(Ws=Bi.create(Kt),Fs.insertBefore(Ws,Qi),Ws.appendChild(Qi),Qi=Bi.rename(Qi,wr)),Nh(Bi,Qi,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),jc(Bi,Ws,En),Nu(wt.dom,Ws))}),wt.selection.setRng(El(ya))},vc=(wt,Kt)=>Vr(wt)&&wt.nodeName===(Kt==null?void 0:Kt.nodeName),gs=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type",!0),wr=wt.getStyle(En,"list-style-type",!0);return pr===wr},yc=(wt,Kt)=>wt.className===Kt.className,Cc=(wt,Kt,En)=>vc(Kt,En)&&gs(wt,Kt,En)&&yc(Kt,En),Nu=(wt,Kt)=>{let En,pr=Kt.nextSibling;if(Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.firstChild;)Kt.appendChild(En);wt.remove(wr)}if(pr=Kt.previousSibling,Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.lastChild;)Kt.insertBefore(En,Kt.firstChild);wt.remove(wr)}},Gs=(wt,Kt,En,pr)=>{if(Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ks=(wt,Kt,En,pr)=>{if(Kt.classList.forEach((wr,uo,Bi)=>{wr.startsWith("tox-")&&(Bi.remove(wr),Bi.length===0&&Kt.removeAttribute("class"))}),Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ac=(wt,Kt,En,pr,wr)=>{const uo=Vr(Kt);if(uo&&Kt.nodeName===pr&&!_d(wr)&&!mi(Kt))ep(wt);else{xd(wt,pr,wr);const Bi=va(wt.selection.getRng()),ya=uo?[Kt,...En]:En,Ni=uo&&mi(Kt)?Ks:Gs;qn.each(ya,Qi=>{Ni(wt,Qi,pr,wr)}),wt.selection.setRng(El(Bi))}},_d=wt=>"list-style-type"in wt,Fh=(wt,Kt,En,pr)=>{if(Kt!==wt.getBody())if(Kt)if(Kt.nodeName===En&&!_d(pr)&&!mi(Kt))ep(wt);else{const wr=va(wt.selection.getRng());mi(Kt)&&Kt.classList.forEach((Bi,ya,Ni)=>{Bi.startsWith("tox-")&&(Ni.remove(Bi),Ni.length===0&&Kt.removeAttribute("class"))}),jc(wt.dom,Kt,pr);const uo=wt.dom.rename(Kt,En);Nu(wt.dom,uo),wt.selection.setRng(El(wr)),xd(wt,En,pr),yl(wt,_f(En),uo)}else xd(wt,En,pr),yl(wt,_f(En),Kt)},$h=(wt,Kt,En)=>{const pr=zn(wt);if(Ds(wt,pr))return;const wr=Ur(wt),uo=s(En)?En:{};wr.length>0?Ac(wt,pr,wr,Kt,uo):Fh(wt,pr,Kt,uo)},vp=vr.DOM,ah=(wt,Kt)=>{const En=Kt.parentElement;if(En&&En.nodeName==="LI"&&En.firstChild===Kt){const pr=En.previousSibling;pr&&pr.nodeName==="LI"?(pr.appendChild(Kt),ar(wt,En)&&vp.remove(En)):vp.setStyle(En,"listStyleType","none")}if(Vr(En)){const pr=En.previousSibling;pr&&pr.nodeName==="LI"&&pr.appendChild(Kt)}},Au=(wt,Kt)=>{const En=qn.grep(wt.select("ol,ul",Kt));qn.each(En,pr=>{ah(wt,pr)})},lf=(wt,Kt,En,pr)=>{let wr=Kt.startContainer;const uo=Kt.startOffset;if(lr(wr)&&(En?uo0))return wr;const Bi=wt.schema.getNonEmptyElements();zr(wr)&&(wr=en.getNode(wr,uo));const ya=new Jt(wr,pr);En&&Hn(wt.dom,wr)&&ya.next();const Ni=En?ya.next.bind(ya):ya.prev2.bind(ya);for(;wr=Ni();)if(wr.nodeName==="LI"&&!wr.hasChildNodes()||Bi[wr.nodeName]||lr(wr)&&wr.data.length>0)return wr;return null},wf=(wt,Kt)=>{const En=Kt.childNodes;return En.length===1&&!Vr(En[0])&&wt.isBlock(En[0])},vs=wt=>_.from(wt).map(ve.fromDom).filter(Ye).exists(Kt=>xt(Kt)&&!M(["details"],Re(Kt))),cl=(wt,Kt)=>{wf(wt,Kt)&&vs(Kt.firstChild)&&wt.remove(Kt.firstChild,!0)},bc=(wt,Kt,En)=>{let pr;const wr=wf(wt,En)?En.firstChild:En;if(cl(wt,Kt),!ar(wt,Kt,!0))for(;pr=Kt.firstChild;)wr.appendChild(pr)},nc=(wt,Kt,En)=>{let pr;const wr=Kt.parentNode;if(!Dr(wt,Kt)||!Dr(wt,En))return;Vr(En.lastChild)&&(pr=En.lastChild),wr===En.lastChild&&Fo(wr.previousSibling)&&wt.remove(wr.previousSibling);const uo=En.lastChild;uo&&Fo(uo)&&Kt.hasChildNodes()&&wt.remove(uo),ar(wt,En,!0)&&_t(ve.fromDom(En)),bc(wt,Kt,En),pr&&En.appendChild(pr);const ya=Te(ve.fromDom(En),ve.fromDom(Kt))?wt.getParents(Kt,Vr,En):[];wt.remove(Kt),A(ya,Ni=>{ar(wt,Ni)&&Ni!==wt.getRoot()&&wt.remove(Ni)})},Qc=(wt,Kt,En)=>{_t(ve.fromDom(En)),nc(wt.dom,Kt,En),wt.selection.setCursorLocation(En,0)},ts=(wt,Kt,En,pr)=>{const wr=wt.dom;if(wr.isEmpty(pr))Qc(wt,En,pr);else{const uo=va(Kt);nc(wr,En,pr),wt.selection.setRng(El(uo))}},wi=(wt,Kt,En,pr)=>{const wr=va(Kt);nc(wt.dom,En,pr);const uo=El(wr);wt.selection.setRng(uo)},bu=(wt,Kt)=>{const En=wt.dom,pr=wt.selection,wr=pr.getStart(),uo=Nr(wt,wr),Bi=En.getParent(pr.getStart(),"LI",uo);if(Bi){const ya=Bi.parentElement;if(ya===wt.getBody()&&ar(En,ya))return!0;const Ni=on(pr.getRng()),Qi=En.getParent(lf(wt,Ni,Kt,uo),"LI",uo),Ws=Qi&&(Kt?En.isChildOf(Bi,Qi):En.isChildOf(Qi,Bi));if(Qi&&Qi!==Bi&&!Ws)return wt.undoManager.transact(()=>{Kt?ts(wt,Ni,Qi,Bi):_o(Bi)?xf(wt):wi(wt,Ni,Bi,Qi)}),!0;if(Ws&&!Kt&&Qi!==Bi)return wt.undoManager.transact(()=>{if(Ni.commonAncestorContainer.parentElement){const nl=va(Ni),Fs=Ni.commonAncestorContainer.parentElement;bc(En,Ni.commonAncestorContainer.parentElement,Qi),Fs.remove();const Wu=El(nl);wt.selection.setRng(Wu)}}),!0;if(!Qi&&!Kt&&Ni.startOffset===0&&Ni.endOffset===0)return wt.undoManager.transact(()=>{ep(wt)}),!0}return!1},wd=(wt,Kt,En)=>{const pr=wt.getParent(Kt.parentNode,wt.isBlock,En);wt.remove(Kt),pr&&wt.isEmpty(pr)&&wt.remove(pr)},Ol=(wt,Kt)=>{const En=wt.dom,pr=wt.selection.getStart(),wr=Nr(wt,pr),uo=En.getParent(pr,En.isBlock,wr);if(uo&&En.isEmpty(uo,void 0,{checkRootAsContent:!0})){const Bi=on(wt.selection.getRng()),ya=En.getParent(lf(wt,Bi,Kt,wr),"LI",wr);if(ya){const Ni=Fs=>M(["td","th","caption"],Re(Fs)),Qi=Fs=>Fs.dom===wr,Ws=Cn(ve.fromDom(ya),Ni,Qi),nl=Cn(ve.fromDom(Bi.startContainer),Ni,Qi);return re(Ws,nl,we)?(wt.undoManager.transact(()=>{const Fs=ya.parentNode;wd(En,uo,wr),Nu(En,Fs),wt.selection.select(ya,!0),wt.selection.collapse(Kt)}),!0):!1}}return!1},ds=(wt,Kt)=>bu(wt,Kt)||Ol(wt,Kt),zc=wt=>{const Kt=wt.selection.getStart(),En=Nr(wt,Kt);return wt.dom.getParent(Kt,"LI,DT,DD",En)||Cr(wt).length>0},Ud=wt=>zc(wt)?(wt.undoManager.transact(()=>{wt.execCommand("Delete"),Au(wt.dom,wt.getBody())}),!0):!1,cf=(wt,Kt)=>{const En=wt.selection;return!Ds(wt,En.getNode())&&(En.isCollapsed()?ds(wt,Kt):Ud(wt))},Of=wt=>{wt.on("ExecCommand",Kt=>{const En=Kt.command.toLowerCase();(En==="delete"||En==="forwarddelete")&&zc(wt)&&Au(wt.dom,wt.getBody())}),wt.on("keydown",Kt=>{Kt.keyCode===Zt.BACKSPACE?cf(wt,!1)&&Kt.preventDefault():Kt.keyCode===Zt.DELETE&&cf(wt,!0)&&Kt.preventDefault()})},aa=wt=>({backspaceDelete:Kt=>{cf(wt,Kt)}}),rs=(wt,Kt)=>{const En=zn(wt);En===null||Ds(wt,En)||wt.undoManager.transact(()=>{s(Kt.styles)&&wt.dom.setStyles(En,Kt.styles),s(Kt.attrs)&&rn(Kt.attrs,(pr,wr)=>wt.dom.setAttrib(En,wr,pr))})},Mu=wt=>{const Kt=j(yf(wt).split("")),En=P(Kt,(pr,wr)=>{const uo=pr.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,wr)*uo});return k(En,(pr,wr)=>pr+wr,0)},Ri=wt=>{if(wt--,wt<0)return"";{const Kt=wt%26,En=Math.floor(wt/26),pr=Ri(En),wr=String.fromCharCode("A".charCodeAt(0)+Kt);return pr+wr}},Gc=wt=>/^[A-Z]+$/.test(wt),qu=wt=>/^[a-z]+$/.test(wt),zl=wt=>/^[0-9]+$/.test(wt),xc=wt=>zl(wt)?2:Gc(wt)?0:qu(wt)?1:nf(wt)?3:4,Kc=wt=>{switch(xc(wt)){case 2:return _.some({listStyleType:_.none(),start:wt});case 0:return _.some({listStyleType:_.some("upper-alpha"),start:Mu(wt).toString()});case 1:return _.some({listStyleType:_.some("lower-alpha"),start:Mu(wt).toString()});case 3:return _.some({listStyleType:_.none(),start:""});case 4:return _.none()}},jd=wt=>{const Kt=parseInt(wt.start,10);return K(wt.listStyleType,"upper-alpha")?Ri(Kt):K(wt.listStyleType,"lower-alpha")?Ri(Kt).toLowerCase():wt.start},ii=wt=>{const Kt=zn(wt);!Jr(Kt)||Ds(wt,Kt)||wt.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:jd({start:wt.dom.getAttrib(Kt,"start","1"),listStyleType:_.from(wt.dom.getStyle(Kt,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:En=>{const pr=En.getData();Kc(pr.start).each(wr=>{wt.execCommand("mceListUpdate",!1,{attrs:{start:wr.start==="1"?"":wr.start},styles:{"list-style-type":wr.listStyleType.getOr("")}})}),En.close()}})},nd=(wt,Kt)=>()=>{const En=zn(wt);return i(En)&&En.nodeName===Kt},al=wt=>{wt.addCommand("mceListProps",()=>{ii(wt)})},Yl=wt=>{wt.on("BeforeExecCommand",Kt=>{const En=Kt.command.toLowerCase();En==="indent"?_h(wt):En==="outdent"&&xf(wt)}),wt.addCommand("InsertUnorderedList",(Kt,En)=>{$h(wt,"UL",En)}),wt.addCommand("InsertOrderedList",(Kt,En)=>{$h(wt,"OL",En)}),wt.addCommand("InsertDefinitionList",(Kt,En)=>{$h(wt,"DL",En)}),wt.addCommand("RemoveList",()=>{ep(wt)}),al(wt),wt.addCommand("mceListUpdate",(Kt,En)=>{s(En)&&rs(wt,En)}),wt.addQueryStateHandler("InsertUnorderedList",nd(wt,"UL")),wt.addQueryStateHandler("InsertOrderedList",nd(wt,"OL")),wt.addQueryStateHandler("InsertDefinitionList",nd(wt,"DL"))};var uf=tinymce.util.Tools.resolve("tinymce.html.Node");const hs=wt=>wt.type===3,Mc=wt=>wt.length===0,Eu=wt=>{const Kt=(wr,uo)=>{const Bi=uf.create("li");A(wr,ya=>Bi.append(ya)),uo?wt.insert(Bi,uo,!0):wt.append(Bi)},En=(wr,uo)=>hs(uo)?[...wr,uo]:!Mc(wr)&&!hs(uo)?(Kt(wr,uo),[]):wr,pr=k(wt.children(),En,[]);Mc(pr)||Kt(pr)},xu=wt=>{wt.on("PreInit",()=>{const{parser:Kt}=wt;Kt.addNodeFilter("ul,ol",En=>A(En,Eu))})},ws=wt=>{wt.on("keydown",Kt=>{Kt.keyCode!==Zt.TAB||Zt.metaKeyPressed(Kt)||wt.undoManager.transact(()=>{(Kt.shiftKey?xf(wt):_h(wt))&&Kt.preventDefault()})})},Fu=wt=>{go(wt)&&ws(wt),Of(wt)},su=(wt,Kt)=>En=>{const pr=wr=>{En.setActive(Di(wr.parents,Kt)),En.setEnabled(!Ds(wt,wr.element)&&wt.selection.isEditable())};return En.setEnabled(wt.selection.isEditable()),fs(wt,pr)},Ca=wt=>{const Kt=En=>()=>wt.execCommand(En);wt.hasPlugin("advlist")||(wt.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:Kt("InsertOrderedList"),onSetup:su(wt,"OL")}),wt.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:Kt("InsertUnorderedList"),onSetup:su(wt,"UL")}))},Ls=(wt,Kt)=>En=>fs(wt,wr=>En.setEnabled(Di(wr.parents,Kt)&&!Ds(wt,wr.element))),Ec=wt=>{const Kt={text:"List properties...",icon:"ordered-list",onAction:()=>wt.execCommand("mceListProps"),onSetup:Ls(wt,"OL")};wt.ui.registry.addMenuItem("listprops",Kt),wt.ui.registry.addContextMenu("lists",{update:En=>{const pr=zn(wt,En);return Jr(pr)?["listprops"]:[]}})};var _u=()=>{t.add("lists",wt=>(Zr(wt),xu(wt),wt.hasPlugin("rtc",!0)?al(wt):(Fu(wt),Yl(wt)),Ca(wt),Ec(wt),aa(wt)))};_u()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(Gt,on,an)=>{var Tn;return an(Gt,on.prototype)?!0:((Tn=Gt.constructor)===null||Tn===void 0?void 0:Tn.name)===on.name},o=Gt=>{const on=typeof Gt;return Gt===null?"null":on==="object"&&Array.isArray(Gt)?"array":on==="object"&&e(Gt,String,(an,Tn)=>Tn.isPrototypeOf(an))?"string":on},f=Gt=>on=>o(on)===Gt,E=Gt=>on=>typeof on===Gt,d=Gt=>on=>Gt===on,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=Gt=>Gt==null,w=Gt=>!S(Gt),y=E("function"),m=(Gt,on)=>{if(u(Gt)){for(let an=0,Tn=Gt.length;an{},c=Gt=>()=>Gt,h=(Gt,on)=>Gt===on;class p{constructor(on,an){this.tag=on,this.value=an}static some(on){return new p(!0,on)}static none(){return p.singletonNone}fold(on,an){return this.tag?an(this.value):on()}isSome(){return this.tag}isNone(){return!this.tag}map(on){return this.tag?p.some(on(this.value)):p.none()}bind(on){return this.tag?on(this.value):p.none()}exists(on){return this.tag&&on(this.value)}forall(on){return!this.tag||on(this.value)}filter(on){return!this.tag||on(this.value)?this:p.none()}getOr(on){return this.tag?this.value:on}or(on){return this.tag?this:on}getOrThunk(on){return this.tag?this.value:on()}orThunk(on){return this.tag?this:on()}getOrDie(on){if(this.tag)return this.value;throw new Error(on??"Called getOrDie on None")}static from(on){return w(on)?p.some(on):p.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(on){this.tag&&on(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}p.singletonNone=new p(!1);const v=Array.prototype.indexOf,_=Array.prototype.push,O=(Gt,on)=>v.call(Gt,on),C=(Gt,on)=>O(Gt,on)>-1,x=(Gt,on)=>{const an=Gt.length,Tn=new Array(an);for(let zn=0;zn{for(let an=0,Tn=Gt.length;an(R(Gt,(Tn,zn)=>{an=on(an,Tn,zn)}),an),T=Gt=>{const on=[];for(let an=0,Tn=Gt.length;anT(x(Gt,on)),A=(Gt,on)=>{for(let an=0;anGt.exists(Tn=>an(Tn,on)),D=Gt=>{const on=[],an=Tn=>{on.push(Tn)};for(let Tn=0;TnGt?p.some(on):p.none(),I=Gt=>on=>on.options.get(Gt),z=Gt=>{const on=Gt.options.register;on("link_assume_external_targets",{processor:an=>{const Tn=s(an)||i(an);return Tn?an===!0?{value:1,valid:Tn}:an==="http"||an==="https"?{value:an,valid:Tn}:{value:0,valid:Tn}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),on("link_context_toolbar",{processor:"boolean",default:!1}),on("link_list",{processor:an=>s(an)||y(an)||m(an,n)}),on("link_default_target",{processor:"string"}),on("link_default_protocol",{processor:"string",default:"https"}),on("link_target_list",{processor:an=>i(an)||m(an,n),default:!0}),on("link_rel_list",{processor:"object[]",default:[]}),on("link_class_list",{processor:"object[]",default:[]}),on("link_title",{processor:"boolean",default:!0}),on("allow_unsafe_link_target",{processor:"boolean",default:!1}),on("link_quicklink",{processor:"boolean",default:!1})},$=I("link_assume_external_targets"),Q=I("link_context_toolbar"),j=I("link_list"),U=I("link_default_target"),X=I("link_default_protocol"),te=I("link_target_list"),Z=I("link_rel_list"),K=I("link_class_list"),re=I("link_title"),q=I("allow_unsafe_link_target"),Y=I("link_quicklink"),ee=Object.keys,me=Object.hasOwnProperty,pe=(Gt,on)=>{const an=ee(Gt);for(let Tn=0,zn=an.length;Tn(on,an)=>{Gt[an]=on},ae=(Gt,on,an,Tn)=>{pe(Gt,(zn,Gn)=>{(on(zn,Gn)?an:Tn)(zn,Gn)})},ce=(Gt,on)=>{const an={};return ae(Gt,on,se(an),a),an},de=(Gt,on)=>me.call(Gt,on),ye=(Gt,on)=>de(Gt,on)&&Gt[on]!==void 0&&Gt[on]!==null;var ve=tinymce.util.Tools.resolve("tinymce.util.URI"),_e=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),we=tinymce.util.Tools.resolve("tinymce.util.Tools");const Te=Gt=>w(Gt)&&Gt.nodeName.toLowerCase()==="a",Pe=Gt=>Te(Gt)&&!!De(Gt),Ie=(Gt,on)=>{if(Gt.collapsed)return[];{const an=Gt.cloneContents(),Tn=an.firstChild,zn=new _e(Tn,an),Gn=[];let Lr=Tn;do on(Lr)&&Gn.push(Lr);while(Lr=zn.next());return Gn}},ze=Gt=>/^\w+:/i.test(Gt),De=Gt=>{var on,an;return(an=(on=Gt.getAttribute("data-mce-href"))!==null&&on!==void 0?on:Gt.getAttribute("href"))!==null&&an!==void 0?an:""},Qe=(Gt,on)=>{const an=["noopener"],Tn=Gt?Gt.split(/\s+/):[],zn=qr=>we.trim(qr.sort().join(" ")),Gn=qr=>(qr=Lr(qr),qr.length>0?qr.concat(an):an),Lr=qr=>qr.filter(Cr=>we.inArray(an,Cr)===-1),Ur=on?Gn(Tn):Lr(Tn);return Ur.length>0?zn(Ur):""},Ve=Gt=>Gt.replace(/\uFEFF/g,""),$e=(Gt,on)=>(on=on||Re(Gt.selection.getRng())[0]||Gt.selection.getNode(),Je(on)?p.from(Gt.dom.select("a[href]",on)[0]):p.from(Gt.dom.getParent(on,"a[href]"))),Oe=(Gt,on)=>$e(Gt,on).isSome(),ke=(Gt,on)=>{const an=on.fold(()=>Gt.getContent({format:"text"}),Tn=>Tn.innerText||Tn.textContent||"");return Ve(an)},Re=Gt=>Ie(Gt,Pe),We=Gt=>we.grep(Gt,Pe),Ue=Gt=>We(Gt).length>0,Ze=Gt=>Re(Gt).length>0,Ye=Gt=>{const on=Gt.schema.getTextInlineElements(),an=Gn=>Gn.nodeType===1&&!Te(Gn)&&!de(on,Gn.nodeName.toLowerCase());if($e(Gt).exists(Gn=>Gn.hasAttribute("data-mce-block")))return!1;const zn=Gt.selection.getRng();return zn.collapsed?!0:Ie(zn,an).length===0},Je=Gt=>w(Gt)&&Gt.nodeName==="FIGURE"&&/\bimage\b/i.test(Gt.className),Me=Gt=>M(["title","rel","class","target"],(an,Tn)=>(Gt[Tn].each(zn=>{an[Tn]=zn.length>0?zn:null}),an),{href:Gt.href}),Fe=(Gt,on)=>(on==="http"||on==="https")&&!ze(Gt)?on+"://"+Gt:Gt,je=(Gt,on)=>{const an={...on};if(Z(Gt).length===0&&!q(Gt)){const Tn=Qe(an.rel,an.target==="_blank");an.rel=Tn||null}return p.from(an.target).isNone()&&te(Gt)===!1&&(an.target=U(Gt)),an.href=Fe(an.href,$(Gt)),an},tt=(Gt,on,an,Tn)=>{an.each(zn=>{de(on,"innerText")?on.innerText=zn:on.textContent=zn}),Gt.dom.setAttribs(on,Tn),Gt.selection.select(on)},ot=(Gt,on,an,Tn)=>{const zn=Gt.dom;Je(on)?tn(zn,on,Tn):an.fold(()=>{Gt.execCommand("mceInsertLink",!1,Tn)},Gn=>{Gt.insertContent(zn.createHTML("a",Tn,zn.encode(Gn)))})},Ge=(Gt,on,an)=>{const Tn=Gt.selection.getNode(),zn=$e(Gt,Tn),Gn=je(Gt,Me(an));Gt.undoManager.transact(()=>{an.href===on.href&&on.attach(),zn.fold(()=>{ot(Gt,Tn,an.text,Gn)},Lr=>{Gt.focus(),tt(Gt,Lr,an.text,Gn)})})},ht=Gt=>{const on=Gt.dom,an=Gt.selection,Tn=an.getBookmark(),zn=an.getRng().cloneRange(),Gn=on.getParent(zn.startContainer,"a[href]",Gt.getBody()),Lr=on.getParent(zn.endContainer,"a[href]",Gt.getBody());Gn&&zn.setStartBefore(Gn),Lr&&zn.setEndAfter(Lr),an.setRng(zn),Gt.execCommand("unlink"),an.moveToBookmark(Tn)},pt=Gt=>{Gt.undoManager.transact(()=>{const on=Gt.selection.getNode();Je(on)?ln(Gt,on):ht(Gt),Gt.focus()})},St=Gt=>{const{class:on,href:an,rel:Tn,target:zn,text:Gn,title:Lr}=Gt;return ce({class:on.getOrNull(),href:an,rel:Tn.getOrNull(),target:zn.getOrNull(),text:Gn.getOrNull(),title:Lr.getOrNull()},(Ur,qr)=>b(Ur)===!1)},Ft=(Gt,on)=>{const an=Gt.options.get,Tn={allow_html_data_urls:an("allow_html_data_urls"),allow_script_urls:an("allow_script_urls"),allow_svg_data_urls:an("allow_svg_data_urls")},zn=on.href;return{...on,href:ve.isDomSafe(zn,"a",Tn)?zn:""}},zt=(Gt,on,an)=>{const Tn=Ft(Gt,an);Gt.hasPlugin("rtc",!0)?Gt.execCommand("createlink",!1,St(Tn)):Ge(Gt,on,Tn)},Yt=Gt=>{Gt.hasPlugin("rtc",!0)?Gt.execCommand("unlink"):pt(Gt)},ln=(Gt,on)=>{var an;const Tn=Gt.dom.select("img",on)[0];if(Tn){const zn=Gt.dom.getParents(Tn,"a[href]",on)[0];zn&&((an=zn.parentNode)===null||an===void 0||an.insertBefore(Tn,zn),Gt.dom.remove(zn))}},tn=(Gt,on,an)=>{var Tn;const zn=Gt.select("img",on)[0];if(zn){const Gn=Gt.create("a",an);(Tn=zn.parentNode)===null||Tn===void 0||Tn.insertBefore(Gn,zn),Gn.appendChild(zn)}},Et=Gt=>s(Gt.value)?Gt.value:"",Ot=Gt=>s(Gt.text)?Gt.text:s(Gt.title)?Gt.title:"",cn=(Gt,on)=>{const an=[];return we.each(Gt,Tn=>{const zn=Ot(Tn);if(Tn.menu!==void 0){const Gn=cn(Tn.menu,on);an.push({text:zn,items:Gn})}else{const Gn=on(Tn);an.push({text:zn,value:Gn})}}),an},Cn=(Gt=Et)=>on=>p.from(on).map(an=>cn(an,Gt)),vt={sanitize:Gt=>Cn(Et)(Gt),sanitizeWith:Cn,createUi:(Gt,on)=>an=>({name:Gt,type:"listbox",label:on,items:an}),getValue:Et},xt=Gt=>ye(Gt,"items"),st=(Gt,on)=>A(on,an=>xt(an)?st(Gt,an.items):k(an.value===Gt,an)),bt=(Gt,on,an,Tn)=>{const zn=Tn[on],Gn=Gt.length>0;return zn!==void 0?st(zn,an).map(Lr=>({url:{value:Lr.value,meta:{text:Gn?Gt:Lr.text,attach:a}},text:Gn?Gt:Lr.text})):p.none()},Vt=(Gt,on)=>on==="link"?Gt.link:on==="anchor"?Gt.anchor:p.none(),it={init:(Gt,on)=>{const an={text:Gt.text,title:Gt.title},Tn=qr=>{var Cr;return k(an.title.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.title).getOr(""))},zn=qr=>{var Cr;return k(an.text.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.text).getOr(qr.value))},Gn=qr=>{const Cr=zn(qr.url),wo=Tn(qr.url);return Cr.isSome()||wo.isSome()?p.some({...Cr.map(Nr=>({text:Nr})).getOr({}),...wo.map(Nr=>({title:Nr})).getOr({})}):p.none()},Lr=(qr,Cr)=>{const wo=Vt(on,Cr).getOr([]);return bt(an.text,Cr,wo,qr)};return{onChange:(qr,Cr)=>{const wo=Cr.name;return wo==="url"?Gn(qr()):C(["anchor","link"],wo)?Lr(qr(),wo):((wo==="text"||wo==="title")&&(an[wo]=qr()[wo]),p.none())}}},getDelta:bt};var at=tinymce.util.Tools.resolve("tinymce.util.Delay");const Bt=(Gt,on,an)=>{const Tn=Gt.selection.getRng();at.setEditorTimeout(Gt,()=>{Gt.windowManager.confirm(on,zn=>{Gt.selection.setRng(Tn),an(zn)})})},_t=Gt=>{const on=Gt.href;return on.indexOf("@")>0&&on.indexOf("/")===-1&&on.indexOf("mailto:")===-1?p.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:Tn=>({...Tn,href:"mailto:"+on})}):p.none()},qt=(Gt,on)=>an=>{const Tn=an.href;return Gt===1&&!ze(Tn)||Gt===0&&/^\s*www(\.|\d\.)/i.test(Tn)?p.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${on}:// prefix?`,preprocess:Gn=>({...Gn,href:on+"://"+Tn})}):p.none()},Jt={preprocess:(Gt,on)=>A([_t,qt($(Gt),X(Gt))],an=>an(on)).fold(()=>Promise.resolve(on),an=>new Promise(Tn=>{Bt(Gt,an.message,zn=>{Tn(zn?an.preprocess(on):on)})}))},Nt={getAnchors:Gt=>{const on=Gt.dom.select("a:not([href])"),an=P(on,Tn=>{const zn=Tn.name||Tn.id;return zn?[{text:zn,value:"#"+zn}]:[]});return an.length>0?p.some([{text:"None",value:""}].concat(an)):p.none()}},rn={getClasses:Gt=>{const on=K(Gt);return on.length>0?vt.sanitize(on):p.none()}},_n=Gt=>{try{return p.some(JSON.parse(Gt))}catch{return p.none()}},An={getLinks:Gt=>{const on=Tn=>Gt.convertURL(Tn.value||Tn.url||"","href"),an=j(Gt);return new Promise(Tn=>{s(an)?fetch(an).then(zn=>zn.ok?zn.text().then(_n):Promise.reject()).then(Tn,()=>Tn(p.none())):y(an)?an(zn=>Tn(p.some(zn))):Tn(p.from(an))}).then(Tn=>Tn.bind(vt.sanitizeWith(on)).map(zn=>zn.length>0?[{text:"None",value:""}].concat(zn):zn))}},fr={getRels:(Gt,on)=>{const an=Z(Gt);if(an.length>0){const Tn=L(on,"_blank"),zn=q(Gt)===!1,Gn=Ur=>Qe(vt.getValue(Ur),Tn);return(zn?vt.sanitizeWith(Gn):vt.sanitize)(an)}return p.none()}},Un=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],tr={getTargets:Gt=>{const on=te(Gt);return u(on)?vt.sanitize(on).orThunk(()=>p.some(Un)):on===!1?p.none():p.some(Un)}},Br=(Gt,on,an)=>{const Tn=Gt.getAttrib(on,an);return Tn!==null&&Tn.length>0?p.some(Tn):p.none()},$r=(Gt,on)=>{const an=Gt.dom,zn=Ye(Gt)?p.some(ke(Gt.selection,on)):p.none(),Gn=on.bind(wo=>p.from(an.getAttrib(wo,"href"))),Lr=on.bind(wo=>p.from(an.getAttrib(wo,"target"))),Ur=on.bind(wo=>Br(an,wo,"rel")),qr=on.bind(wo=>Br(an,wo,"class")),Cr=on.bind(wo=>Br(an,wo,"title"));return{url:Gn,text:zn,title:Cr,target:Lr,rel:Ur,linkClass:qr}},qn={collect:(Gt,on)=>An.getLinks(Gt).then(an=>{const Tn=$r(Gt,on);return{anchor:Tn,catalogs:{targets:tr.getTargets(Gt),rels:fr.getRels(Gt,Tn.target),classes:rn.getClasses(Gt),anchor:Nt.getAnchors(Gt),link:an},optNode:on,flags:{titleEnabled:re(Gt)}}})},gr=(Gt,on)=>an=>{const Tn=an.getData();if(!Tn.url.value){Yt(Gt),an.close();return}const zn=Ur=>p.from(Tn[Ur]).filter(qr=>!L(on.anchor[Ur],qr)),Gn={href:Tn.url.value,text:zn("text"),target:zn("target"),rel:zn("rel"),class:zn("linkClass"),title:zn("title")},Lr={href:Tn.url.value,attach:Tn.url.meta!==void 0&&Tn.url.meta.attach?Tn.url.meta.attach:a};Jt.preprocess(Gt,Gn).then(Ur=>{zt(Gt,Lr,Ur)}),an.close()},sr=Gt=>{const on=$e(Gt);return qn.collect(Gt,on)},lr=(Gt,on)=>{const an=Gt.anchor,Tn=an.url.getOr("");return{url:{value:Tn,meta:{original:{value:Tn}}},text:an.text.getOr(""),title:an.title.getOr(""),anchor:Tn,link:Tn,rel:an.rel.getOr(""),target:an.target.or(on).getOr(""),linkClass:an.linkClass.getOr("")}},zr=(Gt,on,an)=>{const Tn=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],zn=Gt.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),Gn=Gt.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],Lr=p.from(U(an)),Ur=lr(Gt,Lr),qr=Gt.catalogs,Cr=it.init(Ur,qr);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:T([Tn,zn,Gn,D([qr.anchor.map(vt.createUi("anchor","Anchors")),qr.rels.map(vt.createUi("rel","Rel")),qr.targets.map(vt.createUi("target","Open link in...")),qr.link.map(vt.createUi("link","Link list")),qr.classes.map(vt.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ur,onChange:(Nr,{name:Eo})=>{Cr.onChange(Nr.getData,{name:Eo}).each(zo=>{Nr.setData(zo)})},onSubmit:on}},Vr=Gt=>{sr(Gt).then(an=>{const Tn=gr(Gt,an);return zr(an,Tn,Gt)}).then(an=>{Gt.windowManager.open(an)})},eo=Gt=>{Gt.addCommand("mceLink",(on,an)=>{(an==null?void 0:an.dialog)===!0||!Y(Gt)?Vr(Gt):Gt.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"})})},Jr=Gt=>{Gt.addShortcut("Meta+K","",()=>{Gt.execCommand("mceLink")})},Yr=Gt=>{let on=Gt;return{get:()=>on,set:zn=>{on=zn}}},to=Gt=>{const on=Yr(p.none()),an=()=>on.get().each(Gt);return{clear:()=>{an(),on.set(p.none())},isSet:()=>on.get().isSome(),get:()=>on.get(),set:Ur=>{an(),on.set(p.some(Ur))}}},co=()=>{const Gt=to(a);return{...Gt,on:an=>Gt.get().each(an)}};var Fo=tinymce.util.Tools.resolve("tinymce.util.VK");const _o=(Gt,on)=>{document.body.appendChild(Gt),Gt.dispatchEvent(on),document.body.removeChild(Gt)},$o=Gt=>{const on=document.createElement("a");on.target="_blank",on.href=Gt,on.rel="noreferrer noopener";const an=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});document.dispatchEvent(an),_o(on,an)},Mo=Gt=>Gt.altKey===!0&&Gt.shiftKey===!1&&Gt.ctrlKey===!1&&Gt.metaKey===!1,pi=(Gt,on)=>{if(on){const an=De(on);if(/^#/.test(an)){const Tn=Gt.dom.select(an);Tn.length&&Gt.selection.scrollIntoView(Tn[0],!0)}else $o(on.href)}},Hn=Gt=>{const on=Gt.selection.getRng(),an=on.startContainer;return Pe(an)&&on.startContainer===on.endContainer&&Gt.dom.select("img",an).length===1},ar=(Gt,on)=>{const an=We(Gt.dom.getParents(on));return k(an.length===1,an[0])},Dr=Gt=>{const on=Re(Gt.selection.getRng());return k(on.length>0,on[0]).or(ar(Gt,Gt.selection.getNode()))},Sr=Gt=>Gt.selection.isCollapsed()||Hn(Gt)?ar(Gt,Gt.selection.getStart()):Dr(Gt),Zr=Gt=>{const on=co(),an=()=>on.get().or(Sr(Gt)),Tn=()=>an().each(zn=>pi(Gt,zn));return Gt.on("contextmenu",zn=>{ar(Gt,zn.target).each(on.set)}),Gt.on("SelectionChange",()=>{on.isSet()||Sr(Gt).each(on.set)}),Gt.on("click",zn=>{on.clear();const Gn=We(Gt.dom.getParents(zn.target));Gn.length===1&&Fo.metaKeyPressed(zn)&&(zn.preventDefault(),pi(Gt,Gn[0]))}),Gt.on("keydown",zn=>{on.clear(),!zn.isDefaultPrevented()&&zn.keyCode===13&&Mo(zn)&&an().each(Gn=>{zn.preventDefault(),pi(Gt,Gn)})}),{gotoSelectedLink:Tn}},go=Gt=>()=>{Gt.execCommand("mceLink",!1,{dialog:!0})},oo=(Gt,on)=>(Gt.on("NodeChange",on),()=>Gt.off("NodeChange",on)),io=Gt=>on=>{const an=()=>{on.setActive(!Gt.mode.isReadOnly()&&Oe(Gt,Gt.selection.getNode())),on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},Do=Gt=>on=>{const an=()=>{on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},jn=Gt=>on=>{const an=Gn=>Ue(Gn)||Ze(Gt.selection.getRng()),Tn=Gt.dom.getParents(Gt.selection.getStart()),zn=Gn=>{on.setEnabled(an(Gn)&&Gt.selection.isEditable())};return zn(Tn),oo(Gt,Gn=>zn(Gn.parents))},Rr=(Gt,on)=>{Gt.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Meta+K",onAction:go(Gt),onSetup:io(Gt)}),Gt.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},On=(Gt,on)=>{Gt.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:go(Gt),onSetup:Do(Gt)}),Gt.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},Yn=Gt=>{const on="link unlink openlink",an="link";Gt.ui.registry.addContextMenu("link",{update:Tn=>Gt.dom.isEditable(Tn)?Ue(Gt.dom.getParents(Tn,"a"))?on:an:""})},ir=(Gt,on)=>{const an=Gn=>{Gn.selection.collapse(!1)},Tn=Gn=>{const Lr=Gt.selection.getNode();return Gn.setEnabled(Oe(Gt,Lr)),a},zn=Gn=>{const Lr=$e(Gt),Ur=Ye(Gt);if(Lr.isNone()&&Ur){const qr=ke(Gt.selection,Lr);return k(qr.length===0,Gn)}else return p.none()};Gt.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:io(Gt)},label:"Link",predicate:Gn=>Q(Gt)&&Oe(Gt,Gn),initValue:()=>$e(Gt).fold(c(""),De),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:Gn=>{const Lr=Gt.selection.getNode();return Gn.setActive(Oe(Gt,Lr)),io(Gt)(Gn)},onAction:Gn=>{const Lr=Gn.getValue(),Ur=zn(Lr);zt(Gt,{href:Lr,attach:a},{href:Lr,text:Ur,title:p.none(),rel:p.none(),target:p.from(U(Gt)),class:p.none()}),an(Gt),Gn.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:Tn,onAction:Gn=>{Yt(Gt),Gn.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:Tn,onAction:Gn=>{on.gotoSelectedLink(),Gn.hide()}}]})},kr=Gt=>{const on=Zr(Gt);Rr(Gt,on),On(Gt,on),Yn(Gt),ir(Gt,on)};var Er=()=>{t.add("link",Gt=>{z(Gt),eo(Gt),kr(Gt),Jr(Gt)})};Er()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(mt,Tt,xn)=>{var Nn;return xn(mt,Tt.prototype)?!0:((Nn=mt.constructor)===null||Nn===void 0?void 0:Nn.name)===Tt.name},o=mt=>{const Tt=typeof mt;return mt===null?"null":Tt==="object"&&Array.isArray(mt)?"array":Tt==="object"&&e(mt,String,(xn,Nn)=>Nn.isPrototypeOf(xn))?"string":Tt},f=mt=>Tt=>o(Tt)===mt,E=mt=>Tt=>typeof Tt===mt,d=mt=>Tt=>mt===Tt,s=f("string"),n=f("array"),u=E("boolean"),b=d(void 0),i=mt=>mt==null,S=mt=>!i(mt),w=E("function"),y=E("number"),m=()=>{},a=(mt,Tt)=>xn=>mt(Tt(xn)),c=mt=>()=>mt,h=mt=>mt,p=(mt,Tt)=>mt===Tt;function v(mt,...Tt){return(...xn)=>{const Nn=Tt.concat(xn);return mt.apply(null,Nn)}}const _=mt=>{mt()},O=c(!1),C=c(!0);class x{constructor(Tt,xn){this.tag=Tt,this.value=xn}static some(Tt){return new x(!0,Tt)}static none(){return x.singletonNone}fold(Tt,xn){return this.tag?xn(this.value):Tt()}isSome(){return this.tag}isNone(){return!this.tag}map(Tt){return this.tag?x.some(Tt(this.value)):x.none()}bind(Tt){return this.tag?Tt(this.value):x.none()}exists(Tt){return this.tag&&Tt(this.value)}forall(Tt){return!this.tag||Tt(this.value)}filter(Tt){return!this.tag||Tt(this.value)?this:x.none()}getOr(Tt){return this.tag?this.value:Tt}or(Tt){return this.tag?this:Tt}getOrThunk(Tt){return this.tag?this.value:Tt()}orThunk(Tt){return this.tag?this:Tt()}getOrDie(Tt){if(this.tag)return this.value;throw new Error(Tt??"Called getOrDie on None")}static from(Tt){return S(Tt)?x.some(Tt):x.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Tt){this.tag&&Tt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}x.singletonNone=new x(!1);const R=Object.keys,M=Object.hasOwnProperty,T=(mt,Tt)=>{const xn=R(mt);for(let Nn=0,yr=xn.length;Nn(Tt,xn)=>{mt[xn]=Tt},A=(mt,Tt,xn,Nn)=>{T(mt,(yr,so)=>{(Tt(yr,so)?xn:Nn)(yr,so)})},L=(mt,Tt)=>{const xn={};return A(mt,Tt,P(xn),m),xn},D=(mt,Tt)=>{const xn=[];return T(mt,(Nn,yr)=>{xn.push(Tt(Nn,yr))}),xn},k=mt=>D(mt,h),I=mt=>R(mt).length,z=(mt,Tt)=>$(mt,Tt)?x.from(mt[Tt]):x.none(),$=(mt,Tt)=>M.call(mt,Tt),Q=(mt,Tt)=>$(mt,Tt)&&mt[Tt]!==void 0&&mt[Tt]!==null,j=mt=>{for(const Tt in mt)if(M.call(mt,Tt))return!1;return!0},U=Array.prototype.indexOf,X=Array.prototype.push,te=(mt,Tt)=>U.call(mt,Tt),Z=(mt,Tt)=>te(mt,Tt)>-1,K=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn=[];for(let Nn=0;Nn{const xn=mt.length,Nn=new Array(xn);for(let yr=0;yr{for(let xn=0,Nn=mt.length;xn{for(let xn=mt.length-1;xn>=0;xn--){const Nn=mt[xn];Tt(Nn,xn)}},me=(mt,Tt)=>{const xn=[],Nn=[];for(let yr=0,so=mt.length;yr{const xn=[];for(let Nn=0,yr=mt.length;Nn(ee(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ae=(mt,Tt,xn)=>(Y(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ce=(mt,Tt,xn)=>{for(let Nn=0,yr=mt.length;Nnce(mt,Tt,O),ye=mt=>{const Tt=[];for(let xn=0,Nn=mt.length;xnye(q(mt,Tt)),_e=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn={};for(let Nn=0,yr=mt.length;NnTt>=0&&TtTe(mt,0),Ie=mt=>Te(mt,mt.length-1),ze=(mt,Tt)=>{for(let xn=0;xn{const Nn=(Tt||document).createElement("div");if(Nn.innerHTML=mt,!Nn.hasChildNodes()||Nn.childNodes.length>1){const yr="HTML does not have a single root node";throw console.error(yr,mt),new Error(yr)}return Ue(Nn.childNodes[0])},Re=(mt,Tt)=>{const Nn=(Tt||document).createElement(mt);return Ue(Nn)},We=(mt,Tt)=>{const Nn=(Tt||document).createTextNode(mt);return Ue(Nn)},Ue=mt=>{if(mt==null)throw new Error("Node cannot be null or undefined");return{dom:mt}},Ye={fromHtml:ke,fromTag:Re,fromText:We,fromDom:Ue,fromPoint:(mt,Tt,xn)=>x.from(mt.dom.elementFromPoint(Tt,xn)).map(Ue)},Je=(mt,Tt)=>{const xn=mt.dom;if(xn.nodeType!==$e)return!1;{const Nn=xn;if(Nn.matches!==void 0)return Nn.matches(Tt);if(Nn.msMatchesSelector!==void 0)return Nn.msMatchesSelector(Tt);if(Nn.webkitMatchesSelector!==void 0)return Nn.webkitMatchesSelector(Tt);if(Nn.mozMatchesSelector!==void 0)return Nn.mozMatchesSelector(Tt);throw new Error("Browser lacks native selectors")}},Me=mt=>mt.nodeType!==$e&&mt.nodeType!==Qe&&mt.nodeType!==Ve||mt.childElementCount===0,Fe=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?[]:q(xn.querySelectorAll(mt),Ye.fromDom)},je=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?x.none():x.from(xn.querySelector(mt)).map(Ye.fromDom)},tt=(mt,Tt)=>mt.dom===Tt.dom,ot=Je;typeof window<"u"||Function("return this;")();const Ge=mt=>mt.dom.nodeName.toLowerCase(),ht=mt=>mt.dom.nodeType,pt=mt=>Tt=>ht(Tt)===mt,St=mt=>ht(mt)===De||Ge(mt)==="#comment",Ft=pt($e),zt=pt(Oe),Yt=pt(Qe),ln=pt(Ve),tn=mt=>Tt=>Ft(Tt)&&Ge(Tt)===mt,Et=mt=>Ye.fromDom(mt.dom.ownerDocument),Ot=mt=>Yt(mt)?mt:Et(mt),cn=mt=>x.from(mt.dom.parentNode).map(Ye.fromDom),Cn=(mt,Tt)=>{const xn=w(Tt)?Tt:O;let Nn=mt.dom;const yr=[];for(;Nn.parentNode!==null&&Nn.parentNode!==void 0;){const so=Nn.parentNode,No=Ye.fromDom(so);if(yr.push(No),xn(No)===!0)break;Nn=so}return yr},Pn=mt=>x.from(mt.dom.previousSibling).map(Ye.fromDom),Sn=mt=>x.from(mt.dom.nextSibling).map(Ye.fromDom),vt=mt=>q(mt.dom.childNodes,Ye.fromDom),xt=(mt,Tt)=>{const xn=mt.dom.childNodes;return x.from(xn[Tt]).map(Ye.fromDom)},st=mt=>xt(mt,0),bt=mt=>ln(mt)&&S(mt.dom.host),Vt=mt=>Ye.fromDom(mt.dom.getRootNode()),Dt=mt=>{const Tt=Vt(mt);return bt(Tt)?x.some(Tt):x.none()},it=mt=>Ye.fromDom(mt.dom.host),at=mt=>{const Tt=zt(mt)?mt.dom.parentNode:mt.dom;if(Tt==null||Tt.ownerDocument===null)return!1;const xn=Tt.ownerDocument;return Dt(Ye.fromDom(Tt)).fold(()=>xn.body.contains(Tt),a(at,it))};var Bt=(mt,Tt,xn,Nn,yr)=>mt(xn,Nn)?x.some(xn):w(yr)&&yr(xn)?x.none():Tt(xn,Nn,yr);const _t=(mt,Tt,xn)=>{let Nn=mt.dom;const yr=w(xn)?xn:O;for(;Nn.parentNode;){Nn=Nn.parentNode;const so=Ye.fromDom(Nn);if(Tt(so))return x.some(so);if(yr(so))break}return x.none()},qt=(mt,Tt,xn)=>Bt((yr,so)=>so(yr),_t,mt,Tt,xn),en=(mt,Tt)=>{const xn=yr=>Tt(Ye.fromDom(yr));return de(mt.dom.childNodes,xn).map(Ye.fromDom)},Jt=(mt,Tt,xn)=>_t(mt,Nn=>Je(Nn,Tt),xn),Zt=(mt,Tt)=>en(mt,xn=>Je(xn,Tt)),Nt=(mt,Tt)=>je(Tt,mt),sn=(mt,Tt,xn)=>Bt((yr,so)=>Je(yr,so),Jt,mt,Tt,xn),rn=mt=>sn(mt,"[contenteditable]"),_n=(mt,Tt=!1)=>at(mt)?mt.dom.isContentEditable:rn(mt).fold(c(Tt),xn=>wn(xn)==="true"),wn=mt=>mt.dom.contentEditable,An=mt=>mt.nodeName.toLowerCase(),Kn=mt=>Ye.fromDom(mt.getBody()),fr=mt=>Tt=>tt(Tt,Kn(mt)),Un=mt=>mt?mt.replace(/px$/,""):"",Zn=mt=>/^\d+(\.\d+)?$/.test(mt)?mt+"px":mt,tr=mt=>Ye.fromDom(mt.selection.getStart()),Br=mt=>Ye.fromDom(mt.selection.getEnd()),$r=mt=>qt(mt,tn("table")).forall(_n),vr=(mt,Tt)=>pe(vt(mt),Tt),qn=(mt,Tt)=>{let xn=[];return Y(vt(mt),Nn=>{Tt(Nn)&&(xn=xn.concat([Nn])),xn=xn.concat(qn(Nn,Tt))}),xn},gr=(mt,Tt)=>vr(mt,xn=>Je(xn,Tt)),sr=(mt,Tt)=>Fe(Tt,mt),lr=(mt,Tt,xn)=>{if(s(xn)||u(xn)||y(xn))mt.setAttribute(Tt,xn+"");else throw console.error("Invalid call to Attribute.set. Key ",Tt,":: Value ",xn,":: Element ",mt),new Error("Attribute value was not simple")},zr=(mt,Tt,xn)=>{lr(mt.dom,Tt,xn)},Vr=(mt,Tt)=>{const xn=mt.dom;T(Tt,(Nn,yr)=>{lr(xn,yr,Nn)})},eo=(mt,Tt)=>{const xn=mt.dom.getAttribute(Tt);return xn===null?void 0:xn},Jr=(mt,Tt)=>x.from(eo(mt,Tt)),Yr=(mt,Tt)=>{mt.dom.removeAttribute(Tt)},to=mt=>ae(mt.dom.attributes,(Tt,xn)=>(Tt[xn.name]=xn.value,Tt),{}),co=(mt,Tt,xn=p)=>mt.exists(Nn=>xn(Nn,Tt)),Fo=mt=>{const Tt=[],xn=Nn=>{Tt.push(Nn)};for(let Nn=0;Nnmt.isSome()&&Tt.isSome()?x.some(xn(mt.getOrDie(),Tt.getOrDie())):x.none(),$o=mt=>mt.bind(h),Mo=(mt,Tt)=>mt?x.some(Tt):x.none(),pi=(mt,Tt)=>mt.substring(Tt),Hn=(mt,Tt,xn)=>Tt===""||mt.length>=Tt.length&&mt.substr(xn,xn+Tt.length)===Tt,ar=(mt,Tt)=>Dr(mt,Tt)?pi(mt,Tt.length):mt,Dr=(mt,Tt)=>Hn(mt,Tt,0),Zr=(mt=>Tt=>Tt.replace(mt,""))(/^\s+|\s+$/g),go=mt=>mt.length>0,oo=mt=>!go(mt),io=(mt,Tt=10)=>{const xn=parseInt(mt,Tt);return isNaN(xn)?x.none():x.some(xn)},Do=mt=>{const Tt=parseFloat(mt);return isNaN(Tt)?x.none():x.some(Tt)},jn=mt=>mt.style!==void 0&&w(mt.style.getPropertyValue),Rr=(mt,Tt,xn)=>{if(!s(xn))throw console.error("Invalid call to CSS.set. Property ",Tt,":: Value ",xn,":: Element ",mt),new Error("CSS value must be a string: "+xn);jn(mt)&&mt.style.setProperty(Tt,xn)},On=(mt,Tt)=>{jn(mt)&&mt.style.removeProperty(Tt)},Yn=(mt,Tt,xn)=>{const Nn=mt.dom;Rr(Nn,Tt,xn)},ir=(mt,Tt)=>{const xn=mt.dom,yr=window.getComputedStyle(xn).getPropertyValue(Tt);return yr===""&&!at(mt)?kr(xn,Tt):yr},kr=(mt,Tt)=>jn(mt)?mt.style.getPropertyValue(Tt):"",Er=(mt,Tt)=>{const xn=mt.dom,Nn=kr(xn,Tt);return x.from(Nn).filter(yr=>yr.length>0)},Gt=(mt,Tt)=>{const xn=mt.dom;On(xn,Tt),co(Jr(mt,"style").map(Zr),"")&&Yr(mt,"style")},on=(mt,Tt,xn=0)=>Jr(mt,Tt).map(Nn=>parseInt(Nn,10)).getOr(xn),an=(mt,Tt)=>Tn(mt,Tt,C),Tn=(mt,Tt,xn)=>ve(vt(mt),Nn=>Je(Nn,Tt)?xn(Nn)?[Nn]:[]:Tn(Nn,Tt,xn)),zn=["tfoot","thead","tbody","colgroup"],Gn=mt=>Z(zn,mt),Lr=(mt,Tt)=>({rows:mt,columns:Tt}),Ur=(mt,Tt,xn)=>({element:mt,rowspan:Tt,colspan:xn}),qr=(mt,Tt,xn,Nn,yr,so)=>({element:mt,rowspan:Tt,colspan:xn,row:Nn,column:yr,isLocked:so}),Cr=(mt,Tt,xn)=>({element:mt,cells:Tt,section:xn}),wo=(mt,Tt,xn,Nn)=>({startRow:mt,startCol:Tt,finishRow:xn,finishCol:Nn}),Nr=(mt,Tt,xn)=>({element:mt,colspan:Tt,column:xn}),Eo=(mt,Tt)=>({element:mt,columns:Tt}),zo=(mt,Tt,xn=O)=>{if(xn(Tt))return x.none();if(Z(mt,Ge(Tt)))return x.some(Tt);const Nn=yr=>Je(yr,"table")||xn(yr);return Jt(Tt,mt.join(","),Nn)},Qt=(mt,Tt)=>zo(["td","th"],mt,Tt),Mn=mt=>an(mt,"th,td"),Fn=mt=>Je(mt,"colgroup")?gr(mt,"col"):ve(Oo(mt),Tt=>gr(Tt,"col")),dr=(mt,Tt)=>sn(mt,"table",Tt),xr=mt=>an(mt,"tr"),Oo=mt=>dr(mt).fold(c([]),Tt=>gr(Tt,"colgroup")),mi=(mt,Tt)=>q(mt,xn=>{if(Ge(xn)==="colgroup"){const Nn=q(Fn(xn),yr=>{const so=on(yr,"span",1);return Ur(yr,1,so)});return Cr(xn,Nn,"colgroup")}else{const Nn=q(Mn(xn),yr=>{const so=on(yr,"rowspan",1),No=on(yr,"colspan",1);return Ur(yr,so,No)});return Cr(xn,Nn,Tt(xn))}}),Di=mt=>cn(mt).map(Tt=>{const xn=Ge(Tt);return Gn(xn)?xn:"tbody"}).getOr("tbody"),To=mt=>{const Tt=xr(mt),Nn=[...Oo(mt),...Tt];return mi(Nn,Di)},Ia="data-snooker-locked-cols",Ds=mt=>Jr(mt,Ia).bind(Tt=>x.from(Tt.match(/\d+/g))).map(Tt=>we(Tt,C)),fs=(mt,Tt)=>mt+","+Tt,zi=(mt,Tt,xn)=>x.from(mt.access[fs(Tt,xn)]),yl=(mt,Tt,xn)=>{const Nn=Bs(mt,yr=>xn(Tt,yr.element));return Nn.length>0?x.some(Nn[0]):x.none()},Bs=(mt,Tt)=>{const xn=ve(mt.all,Nn=>Nn.cells);return pe(xn,Tt)},yf=mt=>{const Tt={};let xn=0;return Y(mt.cells,Nn=>{const yr=Nn.colspan;re(yr,so=>{const No=xn+so;Tt[No]=Nr(Nn.element,yr,No)}),xn+=yr}),Tt},il=mt=>{const Tt={},xn=[],yr=Pe(mt).map(Jc=>Jc.element).bind(dr).bind(Ds).getOr({});let so=0,No=0,ui=0;const{pass:ga,fail:Sa}=me(mt,Jc=>Jc.section==="colgroup");Y(Sa,Jc=>{const Is=[];Y(Jc.cells,Hc=>{let Nl=0;for(;Tt[fs(ui,Nl)]!==void 0;)Nl++;const lh=Q(yr,Nl.toString()),r0=qr(Hc.element,Hc.rowspan,Hc.colspan,ui,Nl,lh);for(let ch=0;ch{const Is=yf(Jc);return{colgroups:[Eo(Jc.element,k(Is))],columns:Is}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Lr(so,No),access:Tt,all:xn,columns:ua,colgroups:Cs}},Bl={fromTable:mt=>{const Tt=To(mt);return il(Tt)},generate:il,getAt:zi,findItem:yl,filterItems:Bs,justCells:mt=>ve(mt.all,Tt=>Tt.cells),justColumns:mt=>k(mt.columns),hasColumns:mt=>R(mt.columns).length>0,getColumnAt:(mt,Tt)=>x.from(mt.columns[Tt])};var Tc=tinymce.util.Tools.resolve("tinymce.util.Tools");const iu=(mt,Tt,xn)=>{const Nn=mt.select("td,th",Tt);let yr;for(let so=0;so{Tc.each("left center right".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("align"+Nn,{},Tt)}),xn&&mt.formatter.apply("align"+xn,{},Tt)},zf=(mt,Tt,xn)=>{Tc.each("top middle bottom".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("valign"+Nn,{},Tt)}),xn&&mt.formatter.apply("valign"+xn,{},Tt)},_s=(mt,Tt,xn)=>{mt.dispatch("TableModified",{...xn,table:Tt})},ma=(mt,Tt)=>Do(mt).getOr(Tt),mu=(mt,Tt,xn)=>ma(ir(mt,Tt),xn),Uc=(mt,Tt,xn,Nn)=>{const yr=mu(mt,`padding-${xn}`,0),so=mu(mt,`padding-${Nn}`,0),No=mu(mt,`border-${xn}-width`,0),ui=mu(mt,`border-${Nn}-width`,0);return Tt-yr-so-No-ui},Kf=(mt,Tt)=>{const xn=mt.dom,Nn=xn.getBoundingClientRect().width||xn.offsetWidth;return Tt==="border-box"?Nn:Uc(mt,Nn,"left","right")},Wl=mt=>Kf(mt,"content-box");var Ml=tinymce.util.Tools.resolve("tinymce.Env");const Jf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",Nf=re(5,mt=>{const Tt=`${mt+1}px`;return{title:Tt,value:Tt}}),Jl=q(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],mt=>({title:mt,value:mt.toLowerCase()})),Gh="100%",ll=mt=>{var Tt;const xn=mt.dom,Nn=(Tt=xn.getParent(mt.selection.getStart(),xn.isBlock))!==null&&Tt!==void 0?Tt:mt.getBody();return Wl(Ye.fromDom(Nn))+"px"},Tu=(mt,Tt)=>oh(mt)||!bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},gu=(mt,Tt)=>oh(mt)||bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},ec=mt=>Tt=>Tt.options.get(mt),Dc=mt=>{const Tt=mt.options.register;Tt("table_border_widths",{processor:"object[]",default:Nf}),Tt("table_border_styles",{processor:"object[]",default:Jl}),Tt("table_cell_advtab",{processor:"boolean",default:!0}),Tt("table_row_advtab",{processor:"boolean",default:!0}),Tt("table_advtab",{processor:"boolean",default:!0}),Tt("table_appearance_options",{processor:"boolean",default:!0}),Tt("table_grid",{processor:"boolean",default:!Ml.deviceType.isTouch()}),Tt("table_cell_class_list",{processor:"object[]",default:[]}),Tt("table_row_class_list",{processor:"object[]",default:[]}),Tt("table_class_list",{processor:"object[]",default:[]}),Tt("table_toolbar",{processor:"string",default:Jf}),Tt("table_background_color_map",{processor:"object[]",default:[]}),Tt("table_border_color_map",{processor:"object[]",default:[]})},tc=ec("table_sizing_mode"),Lp=ec("table_border_widths"),rh=ec("table_border_styles"),rf=ec("table_cell_advtab"),of=ec("table_row_advtab"),bf=ec("table_advtab"),vu=ec("table_appearance_options"),$d=ec("table_grid"),bl=ec("table_style_by_css"),Zu=ec("table_cell_class_list"),Kh=ec("table_row_class_list"),Cu=ec("table_class_list"),ed=ec("table_toolbar"),Bu=ec("table_background_color_map"),vd=ec("table_border_color_map"),cs=mt=>tc(mt)==="fixed",oh=mt=>tc(mt)==="responsive",Jh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_styles");return Tt.isSet("table_default_styles")?xn:Tu(mt,xn)},_h=mt=>{const Tt=mt.options,xn=Tt.get("table_default_attributes");return Tt.isSet("table_default_attributes")?xn:gu(mt,xn)},xf=(mt,Tt)=>Tt.column>=mt.startCol&&Tt.column+Tt.colspan-1<=mt.finishCol&&Tt.row>=mt.startRow&&Tt.row+Tt.rowspan-1<=mt.finishRow,ep=(mt,Tt)=>{let xn=!0;const Nn=v(xf,Tt);for(let yr=Tt.startRow;yr<=Tt.finishRow;yr++)for(let so=Tt.startCol;so<=Tt.finishCol;so++)xn=xn&&Bl.getAt(mt,yr,so).exists(Nn);return xn?x.some(Tt):x.none()},_r=(mt,Tt)=>wo(Math.min(mt.row,Tt.row),Math.min(mt.column,Tt.column),Math.max(mt.row+mt.rowspan-1,Tt.row+Tt.rowspan-1),Math.max(mt.column+mt.colspan-1,Tt.column+Tt.colspan-1)),Ff=(mt,Tt,xn)=>{const Nn=Bl.findItem(mt,Tt,tt),yr=Bl.findItem(mt,xn,tt);return Nn.bind(so=>yr.map(No=>_r(so,No)))},yd=(mt,Tt,xn)=>Ff(mt,Tt,xn).bind(Nn=>ep(mt,Nn)),bd=(mt,Tt,xn)=>{const Nn=wh(mt);return yd(Nn,Tt,xn)},wh=Bl.fromTable,zu=(mt,Tt)=>{cn(mt).each(Nn=>{Nn.dom.insertBefore(Tt.dom,mt.dom)})},va=(mt,Tt)=>{Sn(mt).fold(()=>{cn(mt).each(yr=>{_f(yr,Tt)})},Nn=>{zu(Nn,Tt)})},El=(mt,Tt)=>{st(mt).fold(()=>{_f(mt,Tt)},Nn=>{mt.dom.insertBefore(Tt.dom,Nn.dom)})},_f=(mt,Tt)=>{mt.dom.appendChild(Tt.dom)},$f=(mt,Tt)=>{zu(mt,Tt),_f(Tt,mt)},ih=(mt,Tt)=>{Y(Tt,(xn,Nn)=>{const yr=Nn===0?mt:Tt[Nn-1];va(yr,xn)})},yu=(mt,Tt)=>{Y(Tt,xn=>{_f(mt,xn)})},jc=mt=>{const Tt=mt.dom;Tt.parentNode!==null&&Tt.parentNode.removeChild(Tt)},Nh=mt=>{const Tt=vt(mt);Tt.length>0&&ih(mt,Tt),jc(mt)},td=((mt,Tt)=>{const xn=so=>{if(!mt(so))throw new Error("Can only get "+Tt+" value of a "+Tt+" node");return Nn(so).getOr("")},Nn=so=>mt(so)?x.from(so.dom.nodeValue):x.none();return{get:xn,getOption:Nn,set:(so,No)=>{if(!mt(so))throw new Error("Can only set raw "+Tt+" value of a "+Tt+" node");so.dom.nodeValue=No}}})(zt,"text"),sf=mt=>td.get(mt),Bc=(mt,Tt)=>td.set(mt,Tt);var Vd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],xd=()=>{const mt=Sa=>Ye.fromDom(Sa.dom.cloneNode(!1)),Tt=Sa=>Ot(Sa).dom,xn=Sa=>Ft(Sa)?Ge(Sa)==="body"?!0:Z(Vd,Ge(Sa)):!1,Nn=Sa=>Ft(Sa)?Z(["br","img","hr","input"],Ge(Sa)):!1,yr=Sa=>Ft(Sa)&&eo(Sa,"contenteditable")==="false",so=(Sa,ua)=>Sa.dom.compareDocumentPosition(ua.dom),No=(Sa,ua)=>{const Cs=to(Sa);Vr(ua,Cs)},ui=Sa=>{const ua=Ge(Sa);return Z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],ua)},ga=Sa=>Ft(Sa)?Jr(Sa,"lang"):x.none();return{up:c({selector:Jt,closest:sn,predicate:_t,all:Cn}),down:c({selector:sr,predicate:qn}),styles:c({get:ir,getRaw:Er,set:Yn,remove:Gt}),attrs:c({get:eo,set:zr,remove:Yr,copyTo:No}),insert:c({before:zu,after:va,afterAll:ih,append:_f,appendAll:yu,prepend:El,wrap:$f}),remove:c({unwrap:Nh,remove:jc}),create:c({nu:Ye.fromTag,clone:mt,text:Ye.fromText}),query:c({comparePosition:so,prevSibling:Pn,nextSibling:Sn}),property:c({children:vt,name:Ge,parent:cn,document:Tt,isText:zt,isComment:St,isElement:Ft,isSpecial:ui,getLanguage:ga,getText:sf,setText:Bc,isBoundary:xn,isEmptyTag:Nn,isNonEditable:yr}),eq:tt,is:ot}};const vc=(mt,Tt,xn,Nn)=>{const yr=xn[0],so=xn.slice(1);return Nn(mt,Tt,yr,so)},gs=(mt,Tt,xn)=>xn.length>0?vc(mt,Tt,xn,yc):x.none(),yc=(mt,Tt,xn,Nn)=>{const yr=Tt(mt,xn);return se(Nn,(so,No)=>{const ui=Tt(mt,No);return Cc(mt,so,ui)},yr)},Cc=(mt,Tt,xn)=>Tt.bind(Nn=>xn.filter(v(mt.eq,Nn))),Nu=gs,Gs=xd(),Ks=(mt,Tt)=>Nu(Gs,(xn,Nn)=>mt(Nn),Tt),Ac=mt=>Jt(mt,"table"),_d=(mt,Tt)=>{const xn=sr(mt,Tt);return xn.length>0?x.some(xn):x.none()},Fh=(mt,Tt,xn)=>Nt(mt,Tt).bind(Nn=>Nt(mt,xn).bind(yr=>Ks(Ac,[Nn,yr]).map(so=>({first:Nn,last:yr,table:so})))),$h=(mt,Tt)=>_d(mt,Tt),vp=(mt,Tt,xn)=>Fh(mt,Tt,xn).bind(Nn=>{const yr=ga=>tt(mt,ga),so="thead,tfoot,tbody,table",No=Jt(Nn.first,so,yr),ui=Jt(Nn.last,so,yr);return No.bind(ga=>ui.bind(Sa=>tt(ga,Sa)?bd(Nn.table,Nn.first,Nn.last):x.none()))}),ah=mt=>q(mt,Ye.fromDom),Au="data-mce-selected",lf="td["+Au+"],th["+Au+"]",wf="data-mce-first-selected",vs="td["+wf+"],th["+wf+"]",cl="data-mce-last-selected",bc="td["+cl+"],th["+cl+"]",nc={selected:Au,selectedSelector:lf,firstSelected:wf,firstSelectedSelector:vs,lastSelected:cl,lastSelectedSelector:bc},Qc=mt=>dr(mt).bind(Tt=>$h(Tt,nc.firstSelectedSelector)).fold(c(mt),Tt=>Tt[0]),ts=mt=>(Tt,xn)=>{const Nn=Ge(Tt),yr=Nn==="col"||Nn==="colgroup"?Qc(Tt):Tt;return sn(yr,mt,xn)},wi=ts("th,td,caption"),bu=ts("th,td"),wd=mt=>ah(mt.model.table.getSelectedCells()),Ol=(mt,Tt)=>{const xn=bu(mt),Nn=xn.bind(yr=>dr(yr)).map(yr=>xr(yr));return _o(xn,Nn,(yr,so)=>pe(so,No=>K(ah(No.dom.cells),ui=>eo(ui,Tt)==="1"||tt(ui,yr)))).getOr([])},ds=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],zc=mt=>({value:aa(mt)}),Ud=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,cf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Of=mt=>Ud.test(mt)||cf.test(mt),aa=mt=>ar(mt,"#").toUpperCase(),rs=mt=>Of(mt)?x.some({value:aa(mt)}):x.none(),Mu=mt=>{const Tt=mt.toString(16);return(Tt.length===1?"0"+Tt:Tt).toUpperCase()},Ri=mt=>{const Tt=Mu(mt.red)+Mu(mt.green)+Mu(mt.blue);return zc(Tt)},Gc=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,qu=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,zl=(mt,Tt,xn,Nn)=>({red:mt,green:Tt,blue:xn,alpha:Nn}),xc=(mt,Tt,xn,Nn)=>{const yr=parseInt(mt,10),so=parseInt(Tt,10),No=parseInt(xn,10),ui=parseFloat(Nn);return zl(yr,so,No,ui)},Kc=mt=>{const Tt=Gc.exec(mt);if(Tt!==null)return x.some(xc(Tt[1],Tt[2],Tt[3],"1"));const xn=qu.exec(mt);return xn!==null?x.some(xc(xn[1],xn[2],xn[3],xn[4])):x.none()},jd=mt=>rs(mt).orThunk(()=>Kc(mt).map(Ri)).getOrThunk(()=>{const Tt=document.createElement("canvas");Tt.height=1,Tt.width=1;const xn=Tt.getContext("2d");xn.clearRect(0,0,Tt.width,Tt.height),xn.fillStyle="#FFFFFF",xn.fillStyle=mt,xn.fillRect(0,0,1,1);const Nn=xn.getImageData(0,0,1,1).data,yr=Nn[0],so=Nn[1],No=Nn[2],ui=Nn[3];return Ri(zl(yr,so,No,ui))}),ii=mt=>Kc(mt).map(Ri).map(Tt=>"#"+Tt.value).getOr(mt),nd=mt=>{let Tt=mt;return{get:()=>Tt,set:yr=>{Tt=yr}}},al=mt=>{const Tt=nd(x.none()),xn=()=>Tt.get().each(mt);return{clear:()=>{xn(),Tt.set(x.none())},isSet:()=>Tt.get().isSome(),get:()=>Tt.get(),set:ui=>{xn(),Tt.set(x.some(ui))}}},Yl=()=>al(mt=>mt.unbind()),uf=(mt,Tt,xn)=>Nn=>{const yr=Yl(),so=oo(xn),No=()=>{const ui=wd(mt),ga=Sa=>mt.formatter.match(Tt,{value:xn},Sa.dom,so);so?(Nn.setActive(!K(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Sa=>Nn.setActive(!Sa),!0))):(Nn.setActive(_e(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Nn.setActive,!1,{value:xn})))};return mt.initialized?No():mt.on("init",No),yr.clear},hs=mt=>Q(mt,"menu"),Mc=mt=>q(mt,Tt=>{const xn=Tt.text||Tt.title||"";return hs(Tt)?{text:xn,items:Mc(Tt.menu)}:{text:xn,value:Tt.value}}),Eu=mt=>mt.length?x.some(Mc([{text:"Select...",value:"mce-no-match"},...mt])):x.none(),xu=(mt,Tt,xn,Nn)=>q(Tt,yr=>{const so=yr.text||yr.title;return hs(yr)?{type:"nestedmenuitem",text:so,getSubmenuItems:()=>xu(mt,yr.menu,xn,Nn)}:{text:so,type:"togglemenuitem",onAction:()=>Nn(yr.value),onSetup:uf(mt,xn,yr.value)}}),ws=(mt,Tt)=>xn=>{mt.execCommand("mceTableApplyCellStyle",!1,{[Tt]:xn})},Fu=mt=>ve(mt,Tt=>hs(Tt)?[{...Tt,menu:Fu(Tt.menu)}]:go(Tt.value)?[Tt]:[]),su=(mt,Tt,xn,Nn)=>yr=>yr(xu(mt,Tt,xn,Nn)),Ca=(mt,Tt,xn)=>{const Nn=q(Tt,yr=>({text:yr.title,value:"#"+jd(yr.value).value,type:"choiceitem"}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:Nn.length>0?Nn:void 0,allowCustomColors:!1},onAction:yr=>{const so=yr.value==="remove"?"":yr.value;mt.execCommand("mceTableApplyCellStyle",!1,{[xn]:so})}}]},Ls=mt=>()=>{const xn=mt.queryCommandValue("mceTableRowType")==="header"?"body":"header";mt.execCommand("mceTableRowType",!1,{type:xn})},Ec=mt=>()=>{const xn=mt.queryCommandValue("mceTableColType")==="th"?"td":"th";mt.execCommand("mceTableColType",!1,{type:xn})},_u=mt=>Eu(Zu(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),wt=[{name:"width",type:"input",label:"Width"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ds}],Kt=mt=>wt.concat(_u(mt).toArray()),En=(mt,Tt)=>{const Nn=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Mc(rh(mt)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:Tt==="cell"?[{name:"borderwidth",type:"input",label:"Border width"}].concat(Nn):Nn}},wr={normal:(mt,Tt)=>{const xn=mt.dom;return{setAttrib:(No,ui)=>{xn.setAttrib(Tt,No,ui)},setStyle:(No,ui)=>{xn.setStyle(Tt,No,ui)},setFormat:(No,ui)=>{ui===""?mt.formatter.remove(No,{value:null},Tt,!0):mt.formatter.apply(No,{value:ui},Tt)}}}},uo=tn("th"),Bi=(mt,Tt)=>mt&&Tt?"sectionCells":mt?"section":"cells",ya=mt=>{const Tt=mt.section==="thead",xn=co(Ni(mt.cells),"th");return mt.section==="tfoot"?{type:"footer"}:Tt||xn?{type:"header",subType:Bi(Tt,xn)}:{type:"body"}},Ni=mt=>{const Tt=pe(mt,xn=>uo(xn.element));return Tt.length===0?x.some("td"):Tt.length===mt.length?x.some("th"):x.none()},Qi=mt=>{const Tt=q(mt,yr=>ya(yr).type),xn=Z(Tt,"header"),Nn=Z(Tt,"footer");if(!xn&&!Nn)return x.some("body");{const yr=Z(Tt,"body");return xn&&!yr&&!Nn?x.some("header"):!xn&&!yr&&Nn?x.some("footer"):x.none()}},Ws=mt=>{let Tt=!1,xn;return(...Nn)=>(Tt||(Tt=!0,xn=mt.apply(null,Nn)),xn)},nl=(mt,Tt)=>ze(mt.all,xn=>de(xn.cells,Nn=>tt(Tt,Nn.element))),Fs=(mt,Tt,xn)=>{const Nn=q(Tt.selection,so=>Qt(so).bind(No=>nl(mt,No)).filter(xn)),yr=Fo(Nn);return Mo(yr.length>0,yr)},Wu=(mt,Tt)=>Tt.mergable,Ki=(mt,Tt)=>Tt.unmergable,Aa=(mt,Tt)=>Fs(mt,Tt,C),Pl=(mt,Tt)=>nl(mt,Tt).exists(xn=>!xn.isLocked),Vf=(mt,Tt)=>_e(Tt,xn=>Pl(mt,xn)),sh=(mt,Tt)=>Wu(mt,Tt).filter(xn=>Vf(mt,xn.cells)),_c=(mt,Tt)=>Ki(mt,Tt).filter(xn=>Vf(mt,xn));({...{generate:mt=>{if(!n(mt))throw new Error("cases must be an array");if(mt.length===0)throw new Error("there must be at least one case");const Tt=[],xn={};return Y(mt,(Nn,yr)=>{const so=R(Nn);if(so.length!==1)throw new Error("one and only one name per case");const No=so[0],ui=Nn[No];if(xn[No]!==void 0)throw new Error("duplicate key detected:"+No);if(No==="cata")throw new Error("cannot have a case named cata (sorry)");if(!n(ui))throw new Error("case arguments must be an array");Tt.push(No),xn[No]=(...ga)=>{const Sa=ga.length;if(Sa!==ui.length)throw new Error("Wrong number of arguments to case "+No+". Expected "+ui.length+" ("+ui+"), got "+Sa);return{fold:(...Cs)=>{if(Cs.length!==mt.length)throw new Error("Wrong number of arguments to fold. Expected "+mt.length+", got "+Cs.length);return Cs[yr].apply(null,ga)},match:Cs=>{const ul=R(Cs);if(Tt.length!==ul.length)throw new Error("Wrong number of arguments to match. Expected: "+Tt.join(",")+` Actual: `+ul.join(","));if(!_e(Tt,Is=>Z(ul,Is)))throw new Error("Not all branches were specified when using match. Specified: "+ul.join(", ")+` -Required: `+Tt.join(", "));return Cs[No].apply(null,ga)},log:Cs=>{console.log(Cs,{constructors:Tt,constructor:No,params:ga})}}}}),xn}}.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])});const Os=(mt,Tt)=>{const xn=Bl.fromTable(mt);return Aa(xn,Tt).bind(yr=>{const so=yr[yr.length-1],No=yr[0].row,ui=so.row+so.rowspan,ga=xn.all.slice(No,ui);return Qi(ga)}).getOr("")},Si=mt=>Dr(mt,"rgb")?ii(mt):mt,lc=mt=>{const Tt=Ye.fromDom(mt);return{borderwidth:Er(Tt,"border-width").getOr(""),borderstyle:Er(Tt,"border-style").getOr(""),bordercolor:Er(Tt,"border-color").map(Si).getOr(""),backgroundcolor:Er(Tt,"background-color").map(Si).getOr("")}},rd=mt=>{const Tt=mt[0],xn=mt.slice(1);return Y(xn,Nn=>{Y(R(Tt),yr=>{T(Nn,(so,No)=>{const ui=Tt[yr];ui!==""&&yr===No&&ui!==so&&(Tt[yr]=yr==="class"?"mce-no-match":"")})})}),Tt},tp=(mt,Tt,xn,Nn)=>de(mt,yr=>!b(xn.formatter.matchNode(Nn,Tt+yr))).getOr(""),kt=v(tp,["left","center","right"],"align"),It=v(tp,["top","middle","bottom"],"valign"),Ut=(mt,Tt)=>{const xn=Jh(mt),Nn=xh(mt),yr=()=>({borderstyle:z(xn,"border-style").getOr(""),bordercolor:Si(z(xn,"border-color").getOr("")),backgroundcolor:Si(z(xn,"background-color").getOr(""))}),so={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},No=()=>{const ua=xn["border-width"];return bl(mt)&&ua?{border:ua}:z(Nn,"border").fold(()=>({}),Cs=>({border:Cs}))},ui=Tt?yr():{},ga=()=>{const ua=z(xn,"border-spacing").or(z(Nn,"cellspacing")).fold(()=>({}),ul=>({cellspacing:ul})),Cs=z(xn,"border-padding").or(z(Nn,"cellpadding")).fold(()=>({}),ul=>({cellpadding:ul}));return{...ua,...Cs}};return{...so,...xn,...Nn,...ui,...No(),...ga()}},J=mt=>dr(Ye.fromDom(mt)).map(Tt=>{const xn={selection:ah(mt.cells)};return Os(Tt,xn)}).getOr(""),le=(mt,Tt,xn)=>{const Nn=(ui,ga)=>{const Sa=Er(Ye.fromDom(ga),"border-width");return bl(mt)&&Sa.isSome()?Sa.getOr(""):ui.getAttrib(ga,"border")||iu(mt.dom,ga,"border-width")||iu(mt.dom,ga,"border")||""},yr=mt.dom,so=bl(mt)?yr.getStyle(Tt,"border-spacing")||yr.getAttrib(Tt,"cellspacing"):yr.getAttrib(Tt,"cellspacing")||yr.getStyle(Tt,"border-spacing"),No=bl(mt)?iu(yr,Tt,"padding")||yr.getAttrib(Tt,"cellpadding"):yr.getAttrib(Tt,"cellpadding")||iu(yr,Tt,"padding");return{width:yr.getStyle(Tt,"width")||yr.getAttrib(Tt,"width"),height:yr.getStyle(Tt,"height")||yr.getAttrib(Tt,"height"),cellspacing:so??"",cellpadding:No??"",border:Nn(yr,Tt),caption:!!yr.select("caption",Tt)[0],class:yr.getAttrib(Tt,"class",""),align:kt(mt,Tt),...xn?lc(Tt):{}}},ne=(mt,Tt,xn)=>{const Nn=mt.dom;return{height:Nn.getStyle(Tt,"height")||Nn.getAttrib(Tt,"height"),class:Nn.getAttrib(Tt,"class",""),type:J(Tt),align:kt(mt,Tt),...xn?lc(Tt):{}}},V=(mt,Tt,xn,Nn)=>{const yr=mt.dom,so=Nn.getOr(Tt);return{width:((ui,ga)=>yr.getStyle(ui,ga)||yr.getAttrib(ui,ga))(so,"width"),scope:yr.getAttrib(Tt,"scope"),celltype:An(Tt),class:yr.getAttrib(Tt,"class",""),halign:kt(mt,Tt),valign:It(mt,Tt),...xn?lc(Tt):{}}},ie=(mt,Tt)=>{const xn=Bl.fromTable(mt),Nn=Bl.justCells(xn),yr=pe(Nn,so=>K(Tt,No=>tt(so.element,No)));return q(yr,so=>({element:so.element.dom,column:Bl.getColumnAt(xn,so.column).map(No=>No.element.dom)}))},ge=(mt,Tt,xn,Nn)=>{Nn("scope")&&mt.setAttrib("scope",xn.scope),Nn("class")&&xn.class!=="mce-no-match"&&mt.setAttrib("class",xn.class),Nn("width")&&Tt.setStyle("width",Zn(xn.width))},xe=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setFormat("tablecellbackgroundcolor",Tt.backgroundcolor),xn("bordercolor")&&mt.setFormat("tablecellbordercolor",Tt.bordercolor),xn("borderstyle")&&mt.setFormat("tablecellborderstyle",Tt.borderstyle),xn("borderwidth")&&mt.setFormat("tablecellborderwidth",Zn(Tt.borderwidth))},Ee=(mt,Tt,xn,Nn)=>{const yr=Tt.length===1;Y(Tt,so=>{const No=so.element,ui=yr?C:Nn,ga=wr.normal(mt,No),Sa=so.column.map(ua=>wr.normal(mt,ua)).getOr(ga);ge(ga,Sa,xn,ui),rf(mt)&&xe(ga,xn,ui),Nn("halign")&&au(mt,No,xn.halign),Nn("valign")&&zf(mt,No,xn.valign)})},Ne=(mt,Tt)=>{mt.execCommand("mceTableCellType",!1,{type:Tt.celltype,no_events:!0})},et=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);I(yr)>0&&Tt.length>=1&&dr(Tt[0]).each(so=>{const No=ie(so,Tt),ui=I(L(yr,(Sa,ua)=>ua!=="scope"&&ua!=="celltype"))>0,ga=$(yr,"celltype");(ui||$(yr,"scope"))&&Ee(mt,No,Nn,v($,yr)),ga&&Ne(mt,Nn),_s(mt,so.dom,{structure:ga,style:ui})})},rt=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{et(mt,Tt,xn,yr),mt.focus()})},dt=(mt,Tt)=>{const xn=dr(Tt[0]).map(Nn=>q(ie(Nn,Tt),yr=>V(mt,yr.element,rf(mt),yr.column)));return rd(xn.getOrDie())},gt=mt=>{const Tt=wd(mt);if(Tt.length===0)return;const xn=dt(mt,Tt),Nn={type:"tabpanel",tabs:[{title:"General",name:"general",items:Kt(mt)},En(mt,"cell")]},yr={type:"panel",items:[{type:"grid",columns:2,items:Kt(mt)}]};mt.windowManager.open({title:"Cell Properties",size:"normal",body:rf(mt)?Nn:yr,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:xn,onSubmit:v(rt,mt,Tt,xn)})},Rt=mt=>Eu(Kh(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),Mt=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Xt=mt=>Mt.concat(Rt(mt).toArray()),dn=(mt,Tt,xn)=>{xn("class")&&Tt.class!=="mce-no-match"&&mt.setAttrib("class",Tt.class),xn("height")&&mt.setStyle("height",Zn(Tt.height))},bn=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setStyle("background-color",Tt.backgroundcolor),xn("bordercolor")&&mt.setStyle("border-color",Tt.bordercolor),xn("borderstyle")&&mt.setStyle("border-style",Tt.borderstyle)},vn=(mt,Tt,xn,Nn)=>{const so=Tt.length===1?C:Nn;Y(Tt,No=>{const ui=gr(Ye.fromDom(No),"td,th"),ga=wr.normal(mt,No);dn(ga,xn,so),of(mt)&&bn(ga,xn,so),Nn("height")&&Y(ui,Sa=>{mt.dom.setStyle(Sa.dom,"height",null)}),Nn("align")&&au(mt,No,xn.align)})},Ln=(mt,Tt)=>{mt.execCommand("mceTableRowType",!1,{type:Tt.type,no_events:!0})},gn=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);if(I(yr)>0){const so=$(yr,"type"),No=so?I(yr)>1:!0;No&&vn(mt,Tt,Nn,v($,yr)),so&&Ln(mt,Nn),dr(Ye.fromDom(Tt[0])).each(ui=>_s(mt,ui.dom,{structure:so,style:No}))}},Jn=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{gn(mt,Tt,xn,yr),mt.focus()})},pn=mt=>{const Tt=Ol(tr(mt),nc.selected);if(Tt.length===0)return;const xn=q(Tt,No=>ne(mt,No.dom,of(mt))),Nn=rd(xn),yr={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xt(mt)},En(mt,"row")]},so={type:"panel",items:[{type:"grid",columns:2,items:Xt(mt)}]};mt.windowManager.open({title:"Row Properties",size:"normal",body:of(mt)?yr:so,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Nn,onSubmit:v(Jn,mt,q(Tt,No=>No.dom),Nn)})},In=(mt,Tt,xn)=>{const Nn=xn?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],yr=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],so=vu(mt)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],No=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],ui=Tt.length>0?[{name:"class",type:"listbox",label:"Class",items:Tt}]:[];return Nn.concat(yr).concat(so).concat(No).concat(ui)},Ir=(mt,Tt,xn,Nn)=>{if(Tt.tagName==="TD"||Tt.tagName==="TH")s(xn)&&S(Nn)?mt.setStyle(Tt,xn,Nn):mt.setStyles(Tt,xn);else if(Tt.children)for(let yr=0;yr{const yr=mt.dom,so={},No={},ui=bl(mt),ga=bf(mt),Sa=parseFloat(xn.border)===0;if(!b(xn.class)&&xn.class!=="mce-no-match"&&(so.class=xn.class),No.height=Zn(xn.height),ui?No.width=Zn(xn.width):yr.getAttrib(Tt,"width")&&(so.width=Un(xn.width)),ui?(Sa?(so.border=0,No["border-width"]=""):(No["border-width"]=Zn(xn.border),so.border=1),No["border-spacing"]=Zn(xn.cellspacing)):(so.border=Sa?0:xn.border,so.cellpadding=xn.cellpadding,so.cellspacing=xn.cellspacing),ui&&Tt.children){const ua={};if(Sa?ua["border-width"]="":Nn.border&&(ua["border-width"]=Zn(xn.border)),Nn.cellpadding&&(ua.padding=Zn(xn.cellpadding)),ga&&Nn.bordercolor&&(ua["border-color"]=xn.bordercolor),!j(ua))for(let Cs=0;Cs{const yr=mt.dom,so=Nn.getData(),No=L(so,(ui,ga)=>xn[ga]!==ui);Nn.close(),mt.undoManager.transact(()=>{if(!Tt){const ui=io(so.cols).getOr(1),ga=io(so.rows).getOr(1);mt.execCommand("mceInsertTable",!1,{rows:ga,columns:ui}),Tt=bu(tr(mt),fr(mt)).bind(Sa=>dr(Sa,fr(mt))).map(Sa=>Sa.dom).getOrDie()}if(I(No)>0){const ui={border:$(No,"border"),bordercolor:$(No,"bordercolor"),cellpadding:$(No,"cellpadding")};Pr(mt,Tt,so,ui);const ga=yr.select("caption",Tt)[0];(ga&&!so.caption||!ga&&so.caption)&&mt.execCommand("mceTableToggleCaption"),au(mt,Tt,so.align)}if(mt.focus(),mt.addVisual(),I(No)>0){const ui=$(No,"caption"),ga=ui?I(No)>1:!0;_s(mt,Tt,{structure:ui,style:ga})}})},ro=(mt,Tt)=>{const xn=mt.dom;let Nn,yr=Ut(mt,bf(mt));Tt?(yr.cols="1",yr.rows="1",bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor="")):(Nn=xn.getParent(mt.selection.getStart(),"table",mt.getBody()),Nn?yr=le(mt,Nn,bf(mt)):bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor=""));const so=Eu(Cu(mt));so.isSome()&&yr.class&&(yr.class=yr.class.replace(/\s*mce\-item\-table\s*/g,""));const No={type:"grid",columns:2,items:In(mt,so.getOr([]),Tt)},ui=()=>({type:"panel",items:[No]}),ga=()=>({type:"tabpanel",tabs:[{title:"General",name:"general",items:[No]},En(mt,"table")]}),Sa=bf(mt)?ga():ui();mt.windowManager.open({title:"Table Properties",size:"normal",body:Sa,onSubmit:v(Gr,mt,Nn,yr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:yr})},po=mt=>{const Tt=xn=>{$r(tr(mt))&&xn()};T({mceTableProps:v(ro,mt,!1),mceTableRowProps:v(pn,mt),mceTableCellProps:v(gt,mt),mceInsertTableDialog:v(ro,mt,!0)},(xn,Nn)=>mt.addCommand(Nn,()=>Tt(xn)))},Wo=(mt,Tt)=>Zt(mt,Tt).isSome(),si=h,Bo=mt=>{const Tt=(Nn,yr)=>Jr(Nn,yr).exists(so=>parseInt(so,10)>1),xn=Nn=>Tt(Nn,"rowspan")||Tt(Nn,"colspan");return mt.length>0&&_e(mt,xn)?x.some(mt):x.none()},Go=(mt,Tt,xn)=>Tt.length<=1?x.none():vp(mt,xn.firstSelectedSelector,xn.lastSelectedSelector).map(Nn=>({bounds:Nn,cells:Tt})),Yo=mt=>({element:mt,mergable:x.none(),unmergable:x.none(),selection:[mt]}),Wi=(mt,Tt,xn)=>({element:xn,mergable:Go(Tt,mt,nc),unmergable:Bo(mt),selection:si(mt)}),Ho=mt=>{const Tt=nd(x.none()),xn=nd([]);let Nn=x.none();const yr=tn("caption"),so=ss=>Nn.forall(Gl=>!Gl[ss]),No=()=>wi(tr(mt),fr(mt)),ui=()=>wi(Br(mt),fr(mt)),ga=()=>No().bind(ss=>$o(_o(dr(ss),ui().bind(dr),(Gl,Sf)=>tt(Gl,Sf)?yr(ss)?x.some(Yo(ss)):x.some(Wi(wd(mt),Gl,ss)):x.none()))),Sa=ss=>dr(ss.element).map(Sf=>{const Nc=Bl.fromTable(Sf),o0=Aa(Nc,ss).getOr([]),i0=ae(o0,(a0,wu)=>(wu.isLocked&&(a0.onAny=!0,wu.column===0?a0.onFirst=!0:wu.column+wu.colspan>=Nc.grid.columns&&(a0.onLast=!0)),a0),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:sh(Nc,ss).isSome(),unmergeable:_c(Nc,ss).isSome(),locked:i0}}),ua=()=>{Tt.set(Ws(ga)()),Nn=Tt.get().bind(Sa),Y(xn.get(),_)},Cs=ss=>(ss(),xn.set(xn.get().concat([ss])),()=>{xn.set(pe(xn.get(),Gl=>Gl!==ss))}),ul=(ss,Gl)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1)},Sf=>{ss.setEnabled(!Gl(Sf)&&mt.selection.isEditable())})),Jc=(ss,Gl,Sf)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1),ss.setActive(!1)},Nc=>{ss.setEnabled(!Gl(Nc)&&mt.selection.isEditable()),ss.setActive(Sf(Nc))})),Is=ss=>Nn.exists(Gl=>Gl.locked[ss]),Hc=ss=>ul(ss,Gl=>!1),Nl=ss=>ul(ss,Gl=>yr(Gl.element)),lh=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||Is(ss)),r0=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||ss().isNone()),ch=(ss,Gl)=>Sf=>ul(Sf,Nc=>yr(Nc.element)||ss().isNone()||Is(Gl)),gg=ss=>ul(ss,Gl=>so("mergeable")),Ip=ss=>ul(ss,Gl=>so("unmergeable")),X0=ss=>Jc(ss,O,Gl=>dr(Gl.element,fr(mt)).exists(Nc=>Wo(Nc,"caption"))),Vh=(ss,Gl)=>Sf=>Jc(Sf,Nc=>yr(Nc.element),()=>mt.queryCommandValue(ss)===Gl),Pu=Vh("mceTableRowType","header"),Uh=Vh("mceTableColType","th");return mt.on("NodeChange ExecCommand TableSelectorChange",ua),{onSetupTable:Hc,onSetupCellOrRow:Nl,onSetupColumn:lh,onSetupPasteable:r0,onSetupPasteableColumn:ch,onSetupMergeable:gg,onSetupUnmergeable:Ip,resetTargets:ua,onSetupTableWithCaption:X0,onSetupTableRowHeaders:Pu,onSetupTableColumnHeaders:Uh,targets:Tt.get}};var jo=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Yi="x-tinymce/dom-table-",ai=Yi+"rows",Hi=Yi+"columns",Ai=mt=>{var Tt;const xn=(Tt=jo.read())!==null&&Tt!==void 0?Tt:[];return ze(xn,Nn=>x.from(Nn.getType(mt)))},Ja=()=>Ai(ai),Ar=()=>Ai(Hi),ns=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},$s=(mt,Tt)=>{mt.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:ns(mt),fetch:ui=>ui("inserttable | cell row column | advtablesort | tableprops deletetable")});const xn=ui=>()=>mt.execCommand(ui),Nn=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})},yr=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addToggleButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})};Nn("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:Tt.onSetupTable}),Nn("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:Tt.onSetupTable}),Nn("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:Tt.onSetupUnmergeable}),Nn("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")}),Nn("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:ns(mt)});const so=Fu(Cu(mt));so.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:su(mt,so,"tableclass",ui=>mt.execCommand("mceTableToggleClass",!1,ui)),onSetup:Tt.onSetupTable});const No=Fu(Zu(mt));No.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:su(mt,No,"tablecellclass",ui=>mt.execCommand("mceTableCellToggleClass",!1,ui)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:su(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:su(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:su(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:ui=>ui(Ca(mt,Bu(mt),"background-color")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:ui=>ui(Ca(mt,vd(mt),"border-color")),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableColumnHeaders})},Ts=mt=>{const Tt=Nn=>mt.dom.is(Nn,"table")&&mt.getBody().contains(Nn)&&mt.dom.isEditable(Nn.parentNode),xn=ed(mt);xn.length>0&&mt.ui.registry.addContextToolbar("table",{predicate:Tt,items:xn,scope:"node",position:"node"})},rl=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},Hs=(mt,Tt)=>{const xn=Cs=>()=>mt.execCommand(Cs),Nn=(Cs,ul)=>mt.queryCommandSupported(ul.command)?(mt.ui.registry.addMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)}),!0):!1,yr=(Cs,ul)=>{mt.queryCommandSupported(ul.command)&&mt.ui.registry.addToggleMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)})},so=Cs=>{mt.execCommand("mceInsertTable",!1,{rows:Cs.numRows,columns:Cs.numColumns})},No=[Nn("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:Tt.onSetupPasteable(Ja)})],ui=[Nn("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")})],ga=[Nn("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:Tt.onSetupUnmergeable})];$d(mt)?mt.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"inserttable",onAction:so}],onSetup:rl(mt)}):mt.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),mt.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),Nn("tableprops",{text:"Table properties",onSetup:Tt.onSetupTable,command:"mceTableProps"}),Nn("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:Tt.onSetupTable,command:"mceTableDelete"}),Z(No,!0)&&mt.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:c("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),Z(ui,!0)&&mt.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:c("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),Z(ga,!0)&&mt.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:c("tablecellprops tablemergecells tablesplitcells")}),mt.ui.registry.addContextMenu("table",{update:()=>(Tt.resetTargets(),Tt.targets().fold(c(""),Cs=>Ge(Cs.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"))});const Sa=Fu(Cu(mt));Sa.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:()=>xu(mt,Sa,"tableclass",Cs=>mt.execCommand("mceTableToggleClass",!1,Cs)),onSetup:Tt.onSetupTable});const ua=Fu(Zu(mt));ua.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:()=>xu(mt,ua,"tablecellclass",Cs=>mt.execCommand("mceTableCellToggleClass",!1,Cs)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:()=>xu(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:()=>xu(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:()=>xu(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:()=>Ca(mt,Bu(mt),"background-color"),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:()=>Ca(mt,vd(mt),"border-color"),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableRowHeaders})},ys=mt=>{const Tt=Ho(mt);Dc(mt),po(mt),Hs(mt,Tt),$s(mt,Tt),Ts(mt)};var Yu=()=>{t.add("table",ys)};Yu()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=Object.getPrototypeOf,o=(Qt,Mn,Fn)=>{var dr;return Fn(Qt,Mn.prototype)?!0:((dr=Qt.constructor)===null||dr===void 0?void 0:dr.name)===Mn.name},f=Qt=>{const Mn=typeof Qt;return Qt===null?"null":Mn==="object"&&Array.isArray(Qt)?"array":Mn==="object"&&o(Qt,String,(Fn,dr)=>dr.isPrototypeOf(Fn))?"string":Mn},E=Qt=>Mn=>f(Mn)===Qt,d=Qt=>Mn=>typeof Mn===Qt,s=Qt=>Mn=>Qt===Mn,n=(Qt,Mn)=>b(Qt)&&o(Qt,Mn,(Fn,dr)=>e(Fn)===dr),u=E("string"),b=E("object"),i=Qt=>n(Qt,Object),S=E("array"),w=s(null),y=d("boolean"),m=Qt=>Qt==null,a=Qt=>!m(Qt),c=d("function"),h=d("number"),p=(Qt,Mn)=>{if(S(Qt)){for(let Fn=0,dr=Qt.length;Fn{};class _{constructor(Mn,Fn){this.tag=Mn,this.value=Fn}static some(Mn){return new _(!0,Mn)}static none(){return _.singletonNone}fold(Mn,Fn){return this.tag?Fn(this.value):Mn()}isSome(){return this.tag}isNone(){return!this.tag}map(Mn){return this.tag?_.some(Mn(this.value)):_.none()}bind(Mn){return this.tag?Mn(this.value):_.none()}exists(Mn){return this.tag&&Mn(this.value)}forall(Mn){return!this.tag||Mn(this.value)}filter(Mn){return!this.tag||Mn(this.value)?this:_.none()}getOr(Mn){return this.tag?this.value:Mn}or(Mn){return this.tag?this:Mn}getOrThunk(Mn){return this.tag?this.value:Mn()}orThunk(Mn){return this.tag?this:Mn()}getOrDie(Mn){if(this.tag)return this.value;throw new Error(Mn??"Called getOrDie on None")}static from(Mn){return a(Mn)?_.some(Mn):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Mn){this.tag&&Mn(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Object.keys,C=Object.hasOwnProperty,x=(Qt,Mn)=>{const Fn=O(Qt);for(let dr=0,xr=Fn.length;dr(Mn,Fn)=>{Qt[Fn]=Mn},M=(Qt,Mn,Fn,dr)=>{x(Qt,(xr,Oo)=>{(Mn(xr,Oo)?Fn:dr)(xr,Oo)})},T=(Qt,Mn)=>{const Fn={};return M(Qt,Mn,R(Fn),v),Fn},P=(Qt,Mn)=>C.call(Qt,Mn),A=(Qt,Mn)=>P(Qt,Mn)&&Qt[Mn]!==void 0&&Qt[Mn]!==null,L=Array.prototype.push,D=Qt=>{const Mn=[];for(let Fn=0,dr=Qt.length;FnMn>=0&&Mnk(Qt,0),z=(Qt,Mn)=>{for(let Fn=0;Fn{if(u(Fn)||y(Fn)||h(Fn))Qt.setAttribute(Mn,Fn+"");else throw console.error("Invalid call to Attribute.set. Key ",Mn,":: Value ",Fn,":: Element ",Qt),new Error("Attribute value was not simple")},Q=(Qt,Mn,Fn)=>{$(Qt.dom,Mn,Fn)},j=(Qt,Mn)=>{Qt.dom.removeAttribute(Mn)},U=(Qt,Mn)=>{const dr=(Mn||document).createElement("div");if(dr.innerHTML=Qt,!dr.hasChildNodes()||dr.childNodes.length>1){const xr="HTML does not have a single root node";throw console.error(xr,Qt),new Error(xr)}return Z(dr.childNodes[0])},X=(Qt,Mn)=>{const dr=(Mn||document).createElement(Qt);return Z(dr)},te=(Qt,Mn)=>{const dr=(Mn||document).createTextNode(Qt);return Z(dr)},Z=Qt=>{if(Qt==null)throw new Error("Node cannot be null or undefined");return{dom:Qt}},re={fromHtml:U,fromTag:X,fromText:te,fromDom:Z,fromPoint:(Qt,Mn,Fn)=>_.from(Qt.dom.elementFromPoint(Mn,Fn)).map(Z)};var q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.URI");const ee=Qt=>Qt.length>0,me=Qt=>Mn=>Mn.options.get(Qt),pe=Qt=>{const Mn=Qt.options.register;Mn("image_dimensions",{processor:"boolean",default:!0}),Mn("image_advtab",{processor:"boolean",default:!1}),Mn("image_uploadtab",{processor:"boolean",default:!0}),Mn("image_prepend_url",{processor:"string",default:""}),Mn("image_class_list",{processor:"object[]"}),Mn("image_description",{processor:"boolean",default:!0}),Mn("image_title",{processor:"boolean",default:!1}),Mn("image_caption",{processor:"boolean",default:!1}),Mn("image_list",{processor:Fn=>{const dr=Fn===!1||u(Fn)||p(Fn,b)||c(Fn);return dr?{value:Fn,valid:dr}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},se=me("image_dimensions"),ae=me("image_advtab"),ce=me("image_uploadtab"),de=me("image_prepend_url"),ye=me("image_class_list"),ve=me("image_description"),_e=me("image_title"),we=me("image_caption"),Te=me("image_list"),Pe=me("a11y_advanced_options"),Ie=me("automatic_uploads"),ze=Qt=>ee(Qt.options.get("images_upload_url")),De=Qt=>a(Qt.options.get("images_upload_handler")),Qe=(Qt,Mn)=>Math.max(parseInt(Qt,10),parseInt(Mn,10)),Ve=Qt=>new Promise(Mn=>{const Fn=document.createElement("img"),dr=Oo=>{Fn.onload=Fn.onerror=null,Fn.parentNode&&Fn.parentNode.removeChild(Fn),Mn(Oo)};Fn.onload=()=>{const Oo=Qe(Fn.width,Fn.clientWidth),mi=Qe(Fn.height,Fn.clientHeight),Di={width:Oo,height:mi};dr(Promise.resolve(Di))},Fn.onerror=()=>{dr(Promise.reject(`Failed to get image dimensions for: ${Qt}`))};const xr=Fn.style;xr.visibility="hidden",xr.position="fixed",xr.bottom=xr.left="0px",xr.width=xr.height="auto",document.body.appendChild(Fn),Fn.src=Qt}),$e=Qt=>(Qt&&(Qt=Qt.replace(/px$/,"")),Qt),Oe=Qt=>(Qt.length>0&&/^[0-9]+$/.test(Qt)&&(Qt+="px"),Qt),ke=Qt=>{if(Qt.margin){const Mn=String(Qt.margin).split(" ");switch(Mn.length){case 1:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[0],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[0];break;case 2:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 3:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 4:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[3]}delete Qt.margin}return Qt},Re=(Qt,Mn)=>{const Fn=Te(Qt);u(Fn)?fetch(Fn).then(dr=>{dr.ok&&dr.json().then(Mn)}):c(Fn)?Fn(Mn):Mn(Fn)},We=(Qt,Mn,Fn)=>{const dr=()=>{Fn.onload=Fn.onerror=null,Qt.selection&&(Qt.selection.select(Fn),Qt.nodeChanged())};Fn.onload=()=>{!Mn.width&&!Mn.height&&se(Qt)&&Qt.dom.setAttribs(Fn,{width:String(Fn.clientWidth),height:String(Fn.clientHeight)}),dr()},Fn.onerror=dr},Ue=Qt=>new Promise((Mn,Fn)=>{const dr=new FileReader;dr.onload=()=>{Mn(dr.result)},dr.onerror=()=>{var xr;Fn((xr=dr.error)===null||xr===void 0?void 0:xr.message)},dr.readAsDataURL(Qt)}),Ze=Qt=>Qt.nodeName==="IMG"&&(Qt.hasAttribute("data-mce-object")||Qt.hasAttribute("data-mce-placeholder")),Ye=(Qt,Mn)=>{const Fn=Qt.options.get;return Y.isDomSafe(Mn,"img",{allow_html_data_urls:Fn("allow_html_data_urls"),allow_script_urls:Fn("allow_script_urls"),allow_svg_data_urls:Fn("allow_svg_data_urls")})},Je=q.DOM,Me=Qt=>Qt.style.marginLeft&&Qt.style.marginRight&&Qt.style.marginLeft===Qt.style.marginRight?$e(Qt.style.marginLeft):"",Fe=Qt=>Qt.style.marginTop&&Qt.style.marginBottom&&Qt.style.marginTop===Qt.style.marginBottom?$e(Qt.style.marginTop):"",je=Qt=>Qt.style.borderWidth?$e(Qt.style.borderWidth):"",tt=(Qt,Mn)=>{var Fn;return Qt.hasAttribute(Mn)&&(Fn=Qt.getAttribute(Mn))!==null&&Fn!==void 0?Fn:""},ot=Qt=>Qt.parentNode!==null&&Qt.parentNode.nodeName==="FIGURE",Ge=(Qt,Mn,Fn)=>{Fn===""||Fn===null?Qt.removeAttribute(Mn):Qt.setAttribute(Mn,Fn)},ht=Qt=>{const Mn=Je.create("figure",{class:"image"});Je.insertAfter(Mn,Qt),Mn.appendChild(Qt),Mn.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),Mn.contentEditable="false"},pt=Qt=>{const Mn=Qt.parentNode;a(Mn)&&(Je.insertAfter(Qt,Mn),Je.remove(Mn))},St=Qt=>{ot(Qt)?pt(Qt):ht(Qt)},Ft=(Qt,Mn)=>{const Fn=Qt.getAttribute("style"),dr=Mn(Fn!==null?Fn:"");dr.length>0?(Qt.setAttribute("style",dr),Qt.setAttribute("data-mce-style",dr)):Qt.removeAttribute("style")},zt=(Qt,Mn)=>(Fn,dr,xr)=>{const Oo=Fn.style;Oo[dr]?(Oo[dr]=Oe(xr),Ft(Fn,Mn)):Ge(Fn,dr,xr)},Yt=(Qt,Mn)=>Qt.style[Mn]?$e(Qt.style[Mn]):tt(Qt,Mn),ln=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginLeft=Fn,Qt.style.marginRight=Fn},tn=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginTop=Fn,Qt.style.marginBottom=Fn},Et=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.borderWidth=Fn},Ot=(Qt,Mn)=>{Qt.style.borderStyle=Mn},cn=Qt=>{var Mn;return(Mn=Qt.style.borderStyle)!==null&&Mn!==void 0?Mn:""},Cn=Qt=>a(Qt)&&Qt.nodeName==="FIGURE",Pn=Qt=>Qt.nodeName==="IMG",Sn=Qt=>Je.getAttrib(Qt,"alt").length===0&&Je.getAttrib(Qt,"role")==="presentation",vt=Qt=>Sn(Qt)?"":tt(Qt,"alt"),xt=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),st=(Qt,Mn)=>{var Fn;const dr=document.createElement("img");return Ge(dr,"style",Mn.style),(Me(dr)||Mn.hspace!=="")&&ln(dr,Mn.hspace),(Fe(dr)||Mn.vspace!=="")&&tn(dr,Mn.vspace),(je(dr)||Mn.border!=="")&&Et(dr,Mn.border),(cn(dr)||Mn.borderStyle!=="")&&Ot(dr,Mn.borderStyle),Qt((Fn=dr.getAttribute("style"))!==null&&Fn!==void 0?Fn:"")},bt=(Qt,Mn)=>{const Fn=document.createElement("img");if(_t(Qt,{...Mn,caption:!1},Fn),it(Fn,Mn.alt,Mn.isDecorative),Mn.caption){const dr=Je.create("figure",{class:"image"});return dr.appendChild(Fn),dr.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),dr.contentEditable="false",dr}else return Fn},Vt=(Qt,Mn)=>({src:tt(Mn,"src"),alt:vt(Mn),title:tt(Mn,"title"),width:Yt(Mn,"width"),height:Yt(Mn,"height"),class:tt(Mn,"class"),style:Qt(tt(Mn,"style")),caption:ot(Mn),hspace:Me(Mn),vspace:Fe(Mn),border:je(Mn),borderStyle:cn(Mn),isDecorative:Sn(Mn)}),Dt=(Qt,Mn,Fn,dr,xr)=>{Fn[dr]!==Mn[dr]&&xr(Qt,dr,String(Fn[dr]))},it=(Qt,Mn,Fn)=>{if(Fn){Je.setAttrib(Qt,"role","presentation");const dr=re.fromDom(Qt);Q(dr,"alt","")}else{if(w(Mn)){const dr=re.fromDom(Qt);j(dr,"alt")}else{const dr=re.fromDom(Qt);Q(dr,"alt",Mn)}Je.getAttrib(Qt,"role")==="presentation"&&Je.setAttrib(Qt,"role","")}},at=(Qt,Mn,Fn)=>{(Fn.alt!==Mn.alt||Fn.isDecorative!==Mn.isDecorative)&&it(Qt,Fn.alt,Fn.isDecorative)},Bt=(Qt,Mn)=>(Fn,dr,xr)=>{Qt(Fn,xr),Ft(Fn,Mn)},_t=(Qt,Mn,Fn)=>{const dr=Vt(Qt,Fn);Dt(Fn,dr,Mn,"caption",(xr,Oo,mi)=>St(xr)),Dt(Fn,dr,Mn,"src",Ge),Dt(Fn,dr,Mn,"title",Ge),Dt(Fn,dr,Mn,"width",zt("width",Qt)),Dt(Fn,dr,Mn,"height",zt("height",Qt)),Dt(Fn,dr,Mn,"class",Ge),Dt(Fn,dr,Mn,"style",Bt((xr,Oo)=>Ge(xr,"style",Oo),Qt)),Dt(Fn,dr,Mn,"hspace",Bt(ln,Qt)),Dt(Fn,dr,Mn,"vspace",Bt(tn,Qt)),Dt(Fn,dr,Mn,"border",Bt(Et,Qt)),Dt(Fn,dr,Mn,"borderStyle",Bt(Ot,Qt)),at(Fn,dr,Mn)},qt=(Qt,Mn)=>{const Fn=Qt.dom.styles.parse(Mn),dr=ke(Fn),xr=Qt.dom.styles.parse(Qt.dom.styles.serialize(dr));return Qt.dom.styles.serialize(xr)},en=Qt=>{const Mn=Qt.selection.getNode(),Fn=Qt.dom.getParent(Mn,"figure.image");return Fn?Qt.dom.select("img",Fn)[0]:Mn&&(Mn.nodeName!=="IMG"||Ze(Mn))?null:Mn},Jt=(Qt,Mn)=>{var Fn;const dr=Qt.dom,xr=T(Qt.schema.getTextBlockElements(),(mi,Di)=>!Qt.schema.isValidChild(Di,"figure")),Oo=dr.getParent(Mn.parentNode,mi=>A(xr,mi.nodeName),Qt.getBody());return Oo&&(Fn=dr.split(Oo,Mn))!==null&&Fn!==void 0?Fn:Mn},Zt=Qt=>{const Mn=en(Qt);return Mn?Vt(Fn=>qt(Qt,Fn),Mn):xt()},Nt=(Qt,Mn)=>{const Fn=bt(xr=>qt(Qt,xr),Mn);Qt.dom.setAttrib(Fn,"data-mce-id","__mcenew"),Qt.focus(),Qt.selection.setContent(Fn.outerHTML);const dr=Qt.dom.select('*[data-mce-id="__mcenew"]')[0];if(Qt.dom.setAttrib(dr,"data-mce-id",null),Cn(dr)){const xr=Jt(Qt,dr);Qt.selection.select(xr)}else Qt.selection.select(dr)},sn=(Qt,Mn)=>{Qt.dom.setAttrib(Mn,"src",Mn.getAttribute("src"))},rn=(Qt,Mn)=>{if(Mn){const Fn=Qt.dom.is(Mn.parentNode,"figure.image")?Mn.parentNode:Mn;Qt.dom.remove(Fn),Qt.focus(),Qt.nodeChanged(),Qt.dom.isEmpty(Qt.getBody())&&(Qt.setContent(""),Qt.selection.setCursorLocation())}},_n=(Qt,Mn)=>{const Fn=en(Qt);if(Fn)if(_t(dr=>qt(Qt,dr),Mn,Fn),sn(Qt,Fn),Cn(Fn.parentNode)){const dr=Fn.parentNode;Jt(Qt,dr),Qt.selection.select(Fn.parentNode)}else Qt.selection.select(Fn),We(Qt,Mn,Fn)},wn=(Qt,Mn)=>{const Fn=Mn.src;return{...Mn,src:Ye(Qt,Fn)?Fn:""}},An=(Qt,Mn)=>{const Fn=en(Qt);if(Fn){const xr={...Vt(mi=>qt(Qt,mi),Fn),...Mn},Oo=wn(Qt,xr);xr.src?_n(Qt,Oo):rn(Qt,Fn)}else Mn.src&&Nt(Qt,{...xt(),...Mn})},Un=(Qt=>(...Mn)=>{if(Mn.length===0)throw new Error("Can't merge zero objects");const Fn={};for(let dr=0;dri(Qt)&&i(Mn)?Un(Qt,Mn):Mn);var Zn=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),tr=tinymce.util.Tools.resolve("tinymce.util.Tools");const Br=Qt=>u(Qt.value)?Qt.value:"",$r=Qt=>u(Qt.text)?Qt.text:u(Qt.title)?Qt.title:"",vr=(Qt,Mn)=>{const Fn=[];return tr.each(Qt,dr=>{const xr=$r(dr);if(dr.menu!==void 0){const Oo=vr(dr.menu,Mn);Fn.push({text:xr,items:Oo})}else{const Oo=Mn(dr);Fn.push({text:xr,value:Oo})}}),Fn},qn=(Qt=Br)=>Mn=>Mn?_.from(Mn).map(Fn=>vr(Fn,Qt)):_.none(),gr=Qt=>qn(Br)(Qt),sr=Qt=>P(Qt,"items"),lr=(Qt,Mn)=>z(Qt,Fn=>sr(Fn)?lr(Fn.items,Mn):Fn.value===Mn?_.some(Fn):_.none()),Vr={sanitizer:qn,sanitize:gr,findEntry:(Qt,Mn)=>Qt.bind(Fn=>lr(Fn,Mn))},Jr={makeTab:Qt=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},Yr=Qt=>{const Mn=Vr.sanitizer(il=>Qt.convertURL(il.value||il.url||"","src")),Fn=new Promise(il=>{Re(Qt,nf=>{il(Mn(nf).map(nh=>D([[{text:"None",value:""}],nh])))})}),dr=Vr.sanitize(ye(Qt)),xr=ae(Qt),Oo=ce(Qt),mi=ze(Qt),Di=De(Qt),To=Zt(Qt),Ia=ve(Qt),Ds=_e(Qt),fs=se(Qt),zi=we(Qt),yl=Pe(Qt),Bs=Ie(Qt),yf=_.some(de(Qt)).filter(il=>u(il)&&il.length>0);return Fn.then(il=>({image:To,imageList:il,classList:dr,hasAdvTab:xr,hasUploadTab:Oo,hasUploadUrl:mi,hasUploadHandler:Di,hasDescription:Ia,hasImageTitle:Ds,hasDimensions:fs,hasImageCaption:zi,prependURL:yf,hasAccessibilityOptions:yl,automaticUploads:Bs}))},to=Qt=>{const Mn={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},Fn=Qt.imageList.map(Ds=>({name:"images",type:"listbox",label:"Image list",items:Ds})),dr={name:"alt",type:"input",label:"Alternative description",enabled:!(Qt.hasAccessibilityOptions&&Qt.image.isDecorative)},xr={name:"title",type:"input",label:"Image title"},Oo={name:"dimensions",type:"sizeinput"},mi={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},Di=Qt.classList.map(Ds=>({name:"classes",type:"listbox",label:"Class",items:Ds})),To={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},Ia=Ds=>Ds?{type:"grid",columns:2}:{type:"panel"};return D([[Mn],Fn.toArray(),Qt.hasAccessibilityOptions&&Qt.hasDescription?[mi]:[],Qt.hasDescription?[dr]:[],Qt.hasImageTitle?[xr]:[],Qt.hasDimensions?[Oo]:[],[{...Ia(Qt.classList.isSome()&&Qt.hasImageCaption),items:D([Di.toArray(),Qt.hasImageCaption?[To]:[]])}]])},Fo={makeTab:Qt=>({title:"General",name:"general",items:to(Qt)}),makeItems:to},$o={makeTab:Qt=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},Mo=Qt=>({prevImage:Vr.findEntry(Qt.imageList,Qt.image.src),prevAlt:Qt.image.alt,open:!0}),pi=Qt=>({src:{value:Qt.src,meta:{}},images:Qt.src,alt:Qt.alt,title:Qt.title,dimensions:{width:Qt.width,height:Qt.height},classes:Qt.class,caption:Qt.caption,style:Qt.style,vspace:Qt.vspace,border:Qt.border,hspace:Qt.hspace,borderstyle:Qt.borderStyle,fileinput:[],isDecorative:Qt.isDecorative}),Hn=(Qt,Mn)=>({src:Qt.src.value,alt:(Qt.alt===null||Qt.alt.length===0)&&Mn?null:Qt.alt,title:Qt.title,width:Qt.dimensions.width,height:Qt.dimensions.height,class:Qt.classes,style:Qt.style,caption:Qt.caption,hspace:Qt.hspace,vspace:Qt.vspace,border:Qt.border,borderStyle:Qt.borderstyle,isDecorative:Qt.isDecorative}),ar=(Qt,Mn)=>/^(?:[a-zA-Z]+:)?\/\//.test(Mn)?_.none():Qt.prependURL.bind(Fn=>Mn.substring(0,Fn.length)!==Fn?_.some(Fn+Mn):_.none()),Dr=(Qt,Mn)=>{const Fn=Mn.getData();ar(Qt,Fn.src.value).each(dr=>{Mn.setData({src:{value:dr,meta:Fn.src.meta}})})},Sr=(Qt,Mn,Fn)=>{Qt.hasDescription&&u(Fn.alt)&&(Mn.alt=Fn.alt),Qt.hasAccessibilityOptions&&(Mn.isDecorative=Fn.isDecorative||Mn.isDecorative||!1),Qt.hasImageTitle&&u(Fn.title)&&(Mn.title=Fn.title),Qt.hasDimensions&&(u(Fn.width)&&(Mn.dimensions.width=Fn.width),u(Fn.height)&&(Mn.dimensions.height=Fn.height)),u(Fn.class)&&Vr.findEntry(Qt.classList,Fn.class).each(dr=>{Mn.classes=dr.value}),Qt.hasImageCaption&&y(Fn.caption)&&(Mn.caption=Fn.caption),Qt.hasAdvTab&&(u(Fn.style)&&(Mn.style=Fn.style),u(Fn.vspace)&&(Mn.vspace=Fn.vspace),u(Fn.border)&&(Mn.border=Fn.border),u(Fn.hspace)&&(Mn.hspace=Fn.hspace),u(Fn.borderstyle)&&(Mn.borderstyle=Fn.borderstyle))},Zr=(Qt,Mn)=>{const Fn=Mn.getData(),dr=Fn.src.meta;if(dr!==void 0){const xr=Un({},Fn);Sr(Qt,xr,dr),Mn.setData(xr)}},go=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=xr.src.value,mi=xr.src.meta||{};!mi.width&&!mi.height&&Mn.hasDimensions&&(ee(Oo)?Qt.imageSize(Oo).then(Di=>{Fn.open&&dr.setData({dimensions:Di})}).catch(Di=>console.error(Di)):dr.setData({dimensions:{width:"",height:""}}))},oo=(Qt,Mn,Fn)=>{const dr=Fn.getData(),xr=Vr.findEntry(Qt.imageList,dr.src.value);Mn.prevImage=xr,Fn.setData({images:xr.map(Oo=>Oo.value).getOr("")})},io=(Qt,Mn,Fn,dr)=>{Dr(Mn,dr),Zr(Mn,dr),go(Qt,Mn,Fn,dr),oo(Mn,Fn,dr)},Do=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=Vr.findEntry(Mn.imageList,xr.images);Oo.each(mi=>{xr.alt===""||Fn.prevImage.map(To=>To.text===xr.alt).getOr(!1)?mi.value===""?dr.setData({src:mi,alt:Fn.prevAlt}):dr.setData({src:mi,alt:mi.text}):dr.setData({src:mi})}),Fn.prevImage=Oo,io(Qt,Mn,Fn,dr)},jn=(Qt,Mn,Fn,dr)=>{const xr=dr.getData();dr.block("Uploading image"),I(xr.fileinput).fold(()=>{dr.unblock()},Oo=>{const mi=URL.createObjectURL(Oo),Di=()=>{dr.unblock(),URL.revokeObjectURL(mi)},To=Ia=>{dr.setData({src:{value:Ia,meta:{}}}),dr.showTab("general"),io(Qt,Mn,Fn,dr),dr.focus("src")};Ue(Oo).then(Ia=>{const Ds=Qt.createBlobCache(Oo,mi,Ia);Mn.automaticUploads?Qt.uploadImage(Ds).then(fs=>{To(fs.url),Di()}).catch(fs=>{Di(),Qt.alertErr(fs)}):(Qt.addToBlobCache(Ds),To(Ds.blobUri()),dr.unblock())})})},Rr=(Qt,Mn,Fn)=>(dr,xr)=>{xr.name==="src"?io(Qt,Mn,Fn,dr):xr.name==="images"?Do(Qt,Mn,Fn,dr):xr.name==="alt"?Fn.prevAlt=dr.getData().alt:xr.name==="fileinput"?jn(Qt,Mn,Fn,dr):xr.name==="isDecorative"&&dr.setEnabled("alt",!dr.getData().isDecorative)},On=Qt=>()=>{Qt.open=!1},Yn=Qt=>Qt.hasAdvTab||Qt.hasUploadUrl||Qt.hasUploadHandler?{type:"tabpanel",tabs:D([[Fo.makeTab(Qt)],Qt.hasAdvTab?[Jr.makeTab(Qt)]:[],Qt.hasUploadTab&&(Qt.hasUploadUrl||Qt.hasUploadHandler)?[$o.makeTab(Qt)]:[]])}:{type:"panel",items:Fo.makeItems(Qt)},ir=(Qt,Mn,Fn)=>dr=>{const xr=Un(pi(Mn.image),dr.getData()),Oo={...xr,style:st(Fn.normalizeCss,Hn(xr,!1))};Qt.execCommand("mceUpdateImage",!1,Hn(Oo,Mn.hasAccessibilityOptions)),Qt.editorUpload.uploadImagesAuto(),dr.close()},kr=Qt=>Mn=>Ye(Qt,Mn)?Ve(Qt.documentBaseURI.toAbsolute(Mn)).then(Fn=>({width:String(Fn.width),height:String(Fn.height)})):Promise.resolve({width:"",height:""}),Er=Qt=>(Mn,Fn,dr)=>{var xr;return Qt.editorUpload.blobCache.create({blob:Mn,blobUri:Fn,name:(xr=Mn.name)===null||xr===void 0?void 0:xr.replace(/\.[^\.]+$/,""),filename:Mn.name,base64:dr.split(",")[1]})},Gt=Qt=>Mn=>{Qt.editorUpload.blobCache.add(Mn)},on=Qt=>Mn=>{Qt.windowManager.alert(Mn)},an=Qt=>Mn=>qt(Qt,Mn),Tn=Qt=>Mn=>Qt.dom.parseStyle(Mn),zn=Qt=>(Mn,Fn)=>Qt.dom.serializeStyle(Mn,Fn),Gn=Qt=>Mn=>Zn(Qt).upload([Mn],!1).then(Fn=>{var dr;return Fn.length===0?Promise.reject("Failed to upload image"):Fn[0].status===!1?Promise.reject((dr=Fn[0].error)===null||dr===void 0?void 0:dr.message):Fn[0]}),Lr=Qt=>{const Mn={imageSize:kr(Qt),addToBlobCache:Gt(Qt),createBlobCache:Er(Qt),alertErr:on(Qt),normalizeCss:an(Qt),parseStyle:Tn(Qt),serializeStyle:zn(Qt),uploadImage:Gn(Qt)};return{open:()=>{Yr(Qt).then(dr=>{const xr=Mo(dr);return{title:"Insert/Edit Image",size:"normal",body:Yn(dr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:pi(dr.image),onSubmit:ir(Qt,dr,Mn),onChange:Rr(Mn,dr,xr),onClose:On(xr)}}).then(Qt.windowManager.open)}}},Ur=Qt=>{Qt.addCommand("mceImage",Lr(Qt).open),Qt.addCommand("mceUpdateImage",(Mn,Fn)=>{Qt.undoManager.transact(()=>An(Qt,Fn))})},qr=Qt=>{const Mn=Qt.attr("class");return a(Mn)&&/\bimage\b/.test(Mn)},Cr=Qt=>Mn=>{let Fn=Mn.length;const dr=xr=>{xr.attr("contenteditable",Qt?"true":null)};for(;Fn--;){const xr=Mn[Fn];qr(xr)&&(xr.attr("contenteditable",Qt?"false":null),tr.each(xr.getAll("figcaption"),dr))}},wo=Qt=>{Qt.on("PreInit",()=>{Qt.parser.addNodeFilter("figure",Cr(!0)),Qt.serializer.addNodeFilter("figure",Cr(!1))})},Nr=Qt=>Mn=>{const Fn=()=>{Mn.setEnabled(Qt.selection.isEditable())};return Qt.on("NodeChange",Fn),Fn(),()=>{Qt.off("NodeChange",Fn)}},Eo=Qt=>{Qt.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Lr(Qt).open,onSetup:Mn=>{Mn.setActive(a(en(Qt)));const Fn=Qt.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",Mn.setActive).unbind,dr=Nr(Qt)(Mn);return()=>{Fn(),dr()}}}),Qt.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Lr(Qt).open,onSetup:Nr(Qt)}),Qt.ui.registry.addContextMenu("image",{update:Mn=>Qt.selection.isEditable()&&(Cn(Mn)||Pn(Mn)&&!Ze(Mn))?["image"]:[]})};var zo=()=>{t.add("image",Qt=>{pe(Qt),wo(Qt),Eo(Qt),Ur(Qt)})};zo()})();var F$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],$$e=function(t){return F$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},V$e=function(t,e,o){Object.keys(e).filter($$e).forEach(function(f){var E=e[f];typeof E=="function"&&(f==="onInit"?E(t,o):o.on(f.substring(2),function(d){return E(d,o)}))})},U$e=function(t,e,o,f){var E=t.modelEvents?t.modelEvents:null,d=Array.isArray(E)?E.join(" "):E;ia(f,function(s,n){o&&typeof s=="string"&&s!==n&&s!==o.getContent({format:t.outputFormat})&&o.setContent(s)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},j$e=function(t,e,o,f,E,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&U$e(e,o,f,E),V$e(t,o.attrs,f)},Z0e=0,FOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return Z0e++,t+"_"+o+Z0e+String(e)},Q$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},q0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},H$e=function(t,e){return q0e(t).concat(q0e(e))},Z$e=function(t){return t==null},W0e=function(){return{listeners:[],scriptId:FOe("tiny-script"),scriptLoaded:!1}},q$e=function(){var t=W0e(),e=function(E,d,s,n){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=E,u.src=s;var b=function(){u.removeEventListener("load",b),n()};u.addEventListener("load",b),d.head&&d.head.appendChild(u)},o=function(E,d,s){t.scriptLoaded?s():(t.listeners.push(s),E.getElementById(t.scriptId)||e(t.scriptId,E,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=W0e()};return{load:o,reinitialize:f}},W$e=q$e(),Y$e=function(){return typeof window<"u"?window:global},CT=function(){var t=Y$e();return t&&t.tinymce?t.tinymce:null},X$e={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},p_=globalThis&&globalThis.__assign||function(){return p_=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(u))},yve({code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),init:E.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=u=>o.cellData.code=u),init:E.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const $Oe=mp(eVe,[["render",tVe]]),nVe=36,Y0e=1,rVe=2,VL=3,Oae=4,oVe=5,iVe=6,aVe=7,sVe=8,lVe=9,cVe=10,uVe=11,fVe=12,dVe=13,hVe=14,pVe=15,mVe=16,gVe=17,X0e=18,vVe=19,VOe=20,UOe=21,G0e=22,yVe=23,bVe=24;function Sle(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function xVe(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function MT(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function _Ve(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function wVe(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function jOe(t,e){for(;!(t.next!=95&&!Sle(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function OVe(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),MT(t,e,!1)}else jOe(t)}function K0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function J0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function e1e(t){for(;!(t.next<0||t.next==10);)t.advance()}function AT(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:QOe(kVe,SVe)};function TVe(t,e,o,f){let E={};for(let d in kle)E[d]=(t.hasOwnProperty(d)?t:kle)[d];return e&&(E.words=QOe(e,o||"",f)),E}function HOe(t){return new Y0(e=>{var o;let{next:f}=e;if(e.advance(),AT(f,Sae)){for(;AT(e.next,Sae);)e.advance();e.acceptToken(nVe)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)_Ve(e),e.acceptToken(VL);else if(f==39||f==34&&t.doubleQuotedStrings)MT(e,f,t.backslashEscapes),e.acceptToken(VL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)e1e(e),e.acceptToken(Y0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))e1e(e),e.acceptToken(Y0e);else if(f==47&&e.next==42){e.advance();for(let E=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(E--,e.advance(),!E)break}else d==47&&e.next==42&&(E++,e.advance())}e.acceptToken(rVe)}else if((f==101||f==69)&&e.next==39)e.advance(),MT(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);else if(f==95&&t.charSetCasts)for(let E=0;;E++){if(e.next==39&&E>1){e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);break}if(!Sle(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!AT(e.peek(1),Sae)){let E=e.peek(1);e.advance(2),wVe(e,E),e.acceptToken(VL)}else if(f==40)e.acceptToken(aVe);else if(f==41)e.acceptToken(sVe);else if(f==123)e.acceptToken(lVe);else if(f==125)e.acceptToken(cVe);else if(f==91)e.acceptToken(uVe);else if(f==93)e.acceptToken(fVe);else if(f==59)e.acceptToken(dVe);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),K0e(e),e.acceptToken(G0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const E=e.next;e.advance(),t.treatBitsAsBytes?(MT(e,E,t.backslashEscapes),e.acceptToken(yVe)):(K0e(e,E),e.acceptToken(G0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let E=e.next==39;for(e.advance();xVe(e.next);)e.advance();E&&e.next==39&&e.advance(),e.acceptToken(Oae)}else if(f==46&&e.next>=48&&e.next<=57)J0e(e,!0),e.acceptToken(Oae);else if(f==46)e.acceptToken(hVe);else if(f>=48&&f<=57)J0e(e,!1),e.acceptToken(Oae);else if(AT(f,t.operatorChars)){for(;AT(e.next,t.operatorChars);)e.advance();e.acceptToken(pVe)}else if(AT(f,t.specialVar))e.next==f&&e.advance(),OVe(e),e.acceptToken(gVe);else if(AT(f,t.identifierQuotes))MT(e,f,!1),e.acceptToken(vVe);else if(f==58||f==44)e.acceptToken(mVe);else if(Sle(f)){let E=jOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?X0e:(o=t.words[E.toLowerCase()])!==null&&o!==void 0?o:X0e)}})}const ZOe=HOe(kle),CVe=k4.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,ZOe],topRules:{Script:[0,25]},tokenPrec:0});function Tle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function eD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function CZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function AVe(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)CZ(f)&&o.push(eD(t,f));return o}return[eD(t,e)]}function t1e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=Tle(e);if(!CZ(f))return o;o.unshift(eD(t,f)),e=Tle(f)}}function MVe(t,e){let o=Gf(t).resolveInner(e,-1),f=PVe(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:t1e(t.doc,Tle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:t1e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const EVe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function PVe(t,e){let o;for(let E=e;!o;E=E.parent){if(!E)return null;E.name=="Statement"&&(o=E)}let f=null;for(let E=o.firstChild,d=!1,s=null;E;E=E.nextSibling){let n=E.name=="Keyword"?t.sliceString(E.from,E.to).toLowerCase():null,u=null;if(!d)d=n=="from";else if(n=="as"&&s&&CZ(E.nextSibling))u=eD(t,E.nextSibling);else{if(n&&EVe.has(n))break;s&&CZ(E)&&(u=eD(t,E))}u&&(f||(f=Object.create(null)),f[u]=AVe(t,s)),s=/Identifier$/.test(E.name)?E:null}return f}function RVe(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const LVe=/^\w*$/,IVe=/^[`'"]?\w*[`'"]?$/;class nfe{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),E=f[e];return E||(e&&this.list.push(qOe(e,"type",o)),f[e]=new nfe)}addCompletions(e){for(let o of e){let f=this.list.findIndex(E=>E.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function qOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function DVe(t,e,o,f,E,d){var s;let n=new nfe,u=((s=d==null?void 0:d.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"',b=n.child(E||"",u);for(let i in t){let S=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=S.length==1?b:n;for(let y of S)w=w.child(y.replace(/\\\./g,"."),u);for(let y of t[i])y&&w.list.push(typeof y=="string"?qOe(y,"property",u):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,u).list),i=>{let{parents:S,from:w,quoted:y,empty:m,aliases:a}=MVe(i.state,i.pos);if(m&&!i.explicit)return null;a&&S.length==1&&(S=a[S[0]]||S);let c=n;for(let v of S){for(;!c.children||!c.children[v];)if(c==n)c=b;else if(c==b&&f)c=c.child(f,u);else return null;c=c.child(v,u)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,p=c.list;return c==n&&a&&(p=p.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:RVe(y,p),validFor:y?IVe:LVe}}}function BVe(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==UOe?"type":t[f]==VOe?"keyword":"variable",boost:-1}));return Yce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],nq(o))}let zVe=CVe.configure({props:[tC.add({Statement:lI()}),E4.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),M4({Keyword:hr.keyword,Type:hr.typeName,Builtin:hr.standard(hr.name),Bits:hr.number,Bytes:hr.string,Bool:hr.bool,Null:hr.null,Number:hr.number,String:hr.string,Identifier:hr.name,QuotedIdentifier:hr.special(hr.string),SpecialVar:hr.special(hr.name),LineComment:hr.lineComment,BlockComment:hr.blockComment,Operator:hr.operator,"Semi Punctuation":hr.punctuation,"( )":hr.paren,"{ }":hr.brace,"[ ]":hr.squareBracket})]});class rfe{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=TVe(e,e.keywords,e.types,e.builtin),f=O4.define({name:"sql",parser:zVe.configure({tokenizers:[{from:ZOe,to:HOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new rfe(o,f,e)}}function NVe(t,e=!1){return BVe(t.dialect.words,e)}function FVe(t,e=!1){return t.language.data.of({autocomplete:NVe(t,e)})}function $Ve(t){return t.schema?DVe(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||ofe):()=>null}function VVe(t){return t.schema?(t.dialect||ofe).language.data.of({autocomplete:$Ve(t)}):[]}function n1e(t={}){let e=t.dialect||ofe;return new WT(e.language,[VVe(t),FVe(e,!!t.upperCaseKeywords)])}const ofe=rfe.define({}),UVe={components:{cell:zq,codemirror:iq,"v-data-table":Lq},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[ty.highest(e),n1e(),pM,dM({override:[]})]:[kc.readOnly.of(!0),ty.highest(e),n1e(),pM,dM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const jVe={key:0,style:{display:"flex",width:"100%"}},QVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},HVe={class:"text-ellipsis app-static-name"},ZVe={key:2},qVe={class:"text-caption text-disabled text-right"},WVe={class:"text-p"};function YVe(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("cell");return Uo(),da(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=u=>d.expandCodeUpdate(u)),onHideCode:e[6]||(e[6]=u=>d.hideCode(u)),onUpdateReactivity:e[7]||(e[7]=u=>d.updateReactivity(u)),onUpdateShowTable:e[8]||(e[8]=u=>d.updateShowTable(u)),onRenameCell:e[9]||(e[9]=u=>d.renameCell(u)),onAddCell:e[10]||(e[10]=u=>d.createCell(u))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",jVe,[o.cellData.hideCode?(Uo(),Ya("h4",QVe,Dl(o.cellData.cellName),1)):(Uo(),da(gwe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=u=>E.expanded=u)},{default:ao(()=>[$t(mwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=u=>E.expanded=u),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(yZ,{class:"text-bluegrey-darken-1"},{default:ao(()=>[Na("h4",HVe,Dl(o.cellData.cellName),1)]),_:1}),$t(vZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(Ep,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[3]||(e[3]=u=>o.cellData.variable_name=u),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[4]||(e[4]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",ZVe,[Na("p",qVe,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Uo(!0),Ya(Ea,{key:0},ey(o.cellData.components,u=>(Uo(),da(yM,{key:u.id},{default:ao(()=>[(Uo(),da(nM(u.component),qi(u,{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},{[GL(u.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):za("",!0),Na("div",WVe,Dl(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const WOe=mp(UVe,[["render",YVe],["__scopeId","data-v-90a2677a"]]),XVe={components:{codemirror:iq},data:()=>({updatingDependencies:!1,ztAliases:Mp}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[kc.readOnly.of(!0),zOe(),pM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},GVe=Na("span",{class:"text-h5"},"Add Dependencies",-1),KVe=Na("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),JVe={class:"d-flex justify-center"};function eUe(t,e,o,f,E,d){const s=Nd("codemirror");return Uo(),da(fC,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:ao(({props:n})=>[$t(es,qi({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[GVe]),_:1}),$t(A_e,null,{default:ao(()=>[Ua(" Versions must adhere to "),KVe,Ua(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(o.dependencies.dependencies,n=>(Uo(),da(Xf,null,{default:ao(()=>[$t(Iq,null,{default:ao(()=>[$t(QT,null,{default:ao(()=>[$t(Ep,{modelValue:n.package,"onUpdate:modelValue":u=>n.package=u,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(QT,null,{default:ao(()=>[$t(Ep,{modelValue:n.version,"onUpdate:modelValue":u=>n.version=u,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(QT,{cols:"1"},{default:ao(()=>[$t(es,{icon:"",color:"primary"},{default:ao(()=>[$t(jl,{color:"black",onClick:u=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:ao(()=>[Ua("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),$t(Xf,{class:"d-flex justify-center align-center"},{default:ao(()=>[$t(es,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var u;return(u=o.dependencies.dependencies)==null?void 0:u.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Uo(),da(Xf,{key:0},{default:ao(()=>[$t(s,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):za("",!0)]),_:1}),$t(SD,null,{default:ao(()=>[o.dependencyOutput.isLoading?za("",!0):(Uo(),da(es,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),Na("div",JVe,[o.dependencyOutput.isLoading?(Uo(),da(sC,{key:0,indeterminate:"",color:"primary"})):za("",!0)]),$t(BM),$t(es,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const YOe=mp(XVe,[["render",eUe]]),r1e=em({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=TD();return(f,E)=>(Uo(),da(BO,null,{activator:ao(({props:d})=>[$t(es,qi({icon:`ztIcon:${Va(Mp).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,{disabled:!Va(o).editorAvailable,onClick:E[0]||(E[0]=d=>e("editComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).edit}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Edit")]),_:1})]),_:1},8,["disabled"]),$t(Xf,{"base-color":"error",onClick:E[1]||(E[1]=d=>e("deleteComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),tUe={class:"d-flex justify-end"},kae=em({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=qo(null),f=qo(null);return pg(()=>{var E,d;(E=f.value)==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(E,d)=>(Uo(),Ya("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[$t(kD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=s=>e("update:modelValue",s)),variant:"outlined"},null,8,["model-value"]),Na("div",tUe,[$t(es,{variant:"text",onClick:d[1]||(d[1]=s=>e("cancel"))},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(es,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=s=>e("submit"))},{default:ao(()=>[Ua("Submit")]),_:1},8,["loading","disabled"])])],512))}});var og=[];for(var Tae=0;Tae<256;++Tae)og.push((Tae+256).toString(16).slice(1));function nUe(t,e=0){return(og[t[e+0]]+og[t[e+1]]+og[t[e+2]]+og[t[e+3]]+"-"+og[t[e+4]]+og[t[e+5]]+"-"+og[t[e+6]]+og[t[e+7]]+"-"+og[t[e+8]]+og[t[e+9]]+"-"+og[t[e+10]]+og[t[e+11]]+og[t[e+12]]+og[t[e+13]]+og[t[e+14]]+og[t[e+15]]).toLowerCase()}var JQ,rUe=new Uint8Array(16);function oUe(){if(!JQ&&(JQ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!JQ))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return JQ(rUe)}var iUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const o1e={randomUUID:iUe};function XOe(t,e,o){if(o1e.randomUUID&&!e&&!t)return o1e.randomUUID();t=t||{};var f=t.random||(t.rng||oUe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var E=0;E<16;++E)e[o+E]=f[E];return e}return nUe(f)}const aUe={class:"messages"},sUe={class:"message mb-4"},lUe={class:"d-flex justify-space-between align-start"},cUe={key:1,class:"message__content"},uUe={class:"d-flex align-center"},fUe={class:"d-flex align-center"},dUe={class:"message__timestamp"},hUe={class:"message mb-4 d-flex"},pUe={class:"ml-6 flex-1-1"},mUe={class:"d-flex justify-space-between align-start"},gUe={key:1,class:"message__content"},vUe={class:"d-flex align-center"},yUe={class:"d-flex align-center"},bUe={class:"message__timestamp"},xUe={key:0,class:"text-box"},_Ue=em({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=TD(),f=Gi(""),E=Gi(!1),d=Gi(!1),s=Gi(void 0),n=Gi(""),u=Gi(!1);function b(a){o.editorAvailable=!1,s.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,s.value=void 0}async function S(a,c){s.value&&(u.value=!0,await o.editComment(s.value,a,n.value,c),u.value=!1,s.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,c,h){await o.deleteComment(a,c,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},c=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:XOe(),cell:e.comment.cell,userName:"",date:c,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",E.value=!1,o.editorAvailable=!0}async function m(a,c){await o.resolveComment(a,c)}return(a,c)=>(Uo(),Ya("div",aUe,[Na("div",sUe,[Na("div",lUe,[Va(s)===t.comment.id?(Uo(),da(kae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[0]||(c[0]=h=>ku(n)?n.value=h:null),isSaving:Va(u),onCancel:i,onSubmit:c[1]||(c[1]=h=>S(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",cUe,Dl(t.comment.comment),1)),Na("div",uUe,[!t.comment.resolved&&!Va(s)?(Uo(),da(es,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:c[2]||(c[2]=()=>m(t.comment.id,t.comment.cell.cellId??""))})):za("",!0),Va(s)?za("",!0):(Uo(),da(r1e,{key:1,onEditComment:c[3]||(c[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:c[4]||(c[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),Na("div",fUe,[Na("p",dUe,Dl(t.comment.date),1)])]),(Uo(!0),Ya(Ea,null,ey(t.comment.replies,h=>(Uo(),Ya("div",hUe,[$t(vM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),Na("div",pUe,[Na("div",mUe,[Va(s)===h.id?(Uo(),da(kae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[5]||(c[5]=p=>ku(n)?n.value=p:null),isSaving:Va(u),onCancel:i,onSubmit:c[6]||(c[6]=()=>S(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",gUe,Dl(h.comment),1)),Na("div",vUe,[Na("div",null,[Va(s)?za("",!0):(Uo(),da(r1e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),Na("div",yUe,[Na("p",bUe,Dl(h.date),1)])])]))),256)),Va(E)?(Uo(),Ya("div",xUe,[t.comment.resolved?za("",!0):(Uo(),da(kae,{key:0,modelValue:Va(f),"onUpdate:modelValue":c[7]||(c[7]=h=>ku(f)?f.value=h:null),"is-saving":Va(d),onCancel:c[8]||(c[8]=()=>{Va(o).editorAvailable=!0,E.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"]))])):za("",!0),!Va(E)&&!t.comment.resolved?(Uo(),da(es,{key:1,variant:"text",slim:"",disabled:!Va(o).editorAvailable,onClick:c[9]||(c[9]=()=>{Va(o).editorAvailable=!1,E.value=!0})},{default:ao(()=>[Ua("Reply")]),_:1},8,["disabled"])):za("",!0)]))}});const wUe=mp(_Ue,[["__scopeId","data-v-018eae28"]]),GOe=t=>(Wle("data-v-3ad3a67b"),t=t(),Yle(),t),OUe={key:0,class:"d-flex justify-space-between align-center pa-4"},SUe={class:"d-flex align-center"},kUe={class:"justify-right"},TUe={class:"content ma-4"},CUe={class:"d-flex justify-space-between align-center"},AUe={class:"mt-6 flex-1-1"},MUe={key:0,class:"empty-state"},EUe=GOe(()=>Na("p",null,"No comments yet",-1)),PUe=GOe(()=>Na("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),RUe={key:1,class:"comments-wrapper"},LUe={class:"d-flex justify-end"},IUe=em({__name:"Comments",setup(t){const e=TD(),{addComment:o,closeComments:f}=e,{selectedCell:E}=Hue(e),d=qo(null),s=qo(null),n=nr(()=>{var c;return(c=E.value)==null?void 0:c.cellType}),u=nr(()=>{var c;switch((c=E.value)==null?void 0:c.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Gi(!1),i=Gi(!1),S=Gi(""),w=Gi(!1),y=nr(()=>e.displayedComments.filter(c=>b.value?c.resolved:!c.resolved));ia(E,()=>{b.value=!1,i.value=!1,S.value="",w.value=!1});function m(){i.value=!i.value,e.editorAvailable=!1,Vc(()=>{var c,h;(c=d.value)==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const c={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",c).format(new Date),p={id:XOe(),cell:e.selectedCell,userName:"",date:h,comment:S.value,replies:[],resolved:!1};await o(p),w.value=!1,S.value="",i.value=!1,e.editorAvailable=!0}return(c,h)=>(Uo(),da(ub,{class:"card"},{default:ao(()=>[Va(E)?(Uo(),Ya("div",OUe,[Na("div",SUe,[$t(jl,{icon:`ztIcon:${Va(Mp)[Va(n)??"code"]}`,color:Va(u),class:"mr-2"},null,8,["icon","color"]),Na("p",{class:"mb-0 font-weight-bold",style:rD({color:Va(u)})},Dl(Va(E).cellName),5)]),Na("div",kUe,[Va(b)?za("",!0):(Uo(),da(es,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!Va(e).editorAvailable,onClick:m},null,8,["disabled"])),$t(es,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=p=>Va(f)())})])])):za("",!0),Na("div",TUe,[Na("div",CUe,[$t(B2e,{modelValue:Va(b),"onUpdate:modelValue":h[3]||(h[3]=p=>ku(b)?b.value=p:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:ao(()=>[$t(es,{value:!1,class:"mr-4",disabled:!Va(b),onClick:h[1]||(h[1]=p=>Va(e).editorAvailable=!0)},{default:ao(()=>[Ua("Open")]),_:1},8,["disabled"]),$t(es,{value:!0,disabled:Va(b),class:"mr-4",onClick:h[2]||(h[2]=p=>i.value=!1)},{default:ao(()=>[Ua("Resolved")]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),Na("div",AUe,[!Va(e).displayedComments.length&&!Va(i)?(Uo(),Ya("div",MUe,[$t(jl,{icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"]),EUe,PUe])):(Uo(),Ya("div",RUe,[(Uo(!0),Ya(Ea,null,ey(Va(y),p=>(Uo(),da(wUe,{comment:p},null,8,["comment"]))),256)),Va(i)?(Uo(),Ya("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:s},[$t(kD,{variant:"outlined",modelValue:Va(S),"onUpdate:modelValue":h[4]||(h[4]=p=>ku(S)?S.value=p:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),Na("div",LUe,[$t(es,{variant:"text",onClick:h[5]||(h[5]=()=>{Va(e).editorAvailable=!0,i.value=!1})},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(es,{color:"primary",class:"ml-2",disabled:!Va(S)||Va(w),loading:Va(w),onClick:h[6]||(h[6]=p=>a())},{default:ao(()=>[Ua("Submit")]),_:1},8,["disabled","loading"])])],512)):za("",!0)]))])])]),_:1}))}});const DUe=mp(IUe,[["__scopeId","data-v-3ad3a67b"]]),BUe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Que,CodeComponent:Twe,MarkdownComponent:NOe,EditorComponent:$Oe,SQLComponent:WOe,PackageComponent:YOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return JT().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function zUe(t,e,o,f,E,d){const s=Nd("add-cell");return Uo(),Ya(Ea,null,[$t(yM,{style:{"margin-top":"12px"}},{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):za("",!0)]),_:1}),(Uo(!0),Ya(Ea,null,ey(o.notebook.cells,n=>(Uo(),da(yM,{class:Gv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:ao(()=>[n.cellType==="code"?(Uo(),da(nM(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Uo(),da(nM(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const NUe=mp(BUe,[["render",zUe]]),FUe=em({name:"SignInDialogComponent",setup(){const t=qo(!1),e=qo(!1),o=qo(!1),f=qo(null),E=async()=>{try{const S=await ou.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(S){console.error("Error during starting the Node server:",S)}},d=async()=>{try{const S=await ou.post("copilot/check_status",{});b(S.data)}catch(S){console.error("Error during initial status check:",S)}},s=async()=>{try{const S=await ou.post("copilot/sign_in_initiate",{});b(S.data)}catch(S){console.error("Error during sign in initiation:",S)}},n=async()=>{try{const S=await ou.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(S.data)}catch(S){console.error("Error during sign in confirmation:",S)}},u=async()=>{try{await ou.post("copilot/sign_out",{}),o.value=!1,f.value=null,Q0.copilot_active=!1}catch(S){console.error("Error during sign out:",S)}},b=S=>{f.value=S,S.status==="OK"||S.status==="AlreadySignedIn"?(o.value=!0,Q0.copilot_active=!0):S.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:s,confirmSignIn:n,signOut:u,startServerAndCheckStatus:async()=>{try{await E(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(S){console.error("Error during starting the server or checking status:",S)}},ztAliases:Mp}}}),$Ue=Na("span",{class:"text-h4"},"GitHub Copilot ",-1),VUe={key:1},UUe={key:0},jUe=Na("p",null,"Please go to the following URL and enter the code to sign in:",-1),QUe=Na("strong",null,"URL:",-1),HUe=["href"],ZUe=Na("strong",null,"Code:",-1),qUe={key:1},WUe={key:2};function YUe(t,e,o,f,E,d){return Uo(),da(fC,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialog=s),"max-width":"400px"},{activator:ao(({props:s})=>[$t(es,qi({color:"bluegrey-darken-4"},s,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[$Ue]),_:1}),$t(dC,null,{default:ao(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Uo(),Ya("div",VUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Uo(),Ya("div",UUe,[jUe,Na("p",null,[QUe,Na("a",{href:t.signInData.verificationUri,target:"_blank"},Dl(t.signInData.verificationUri),9,HUe)]),Na("p",null,[ZUe,Ua(" "+Dl(t.signInData.userCode),1)]),$t(es,{color:"primary",onClick:t.confirmSignIn},{default:ao(()=>[Ua("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Uo(),Ya("div",qUe,[Na("p",null,"Status: "+Dl(t.signInData.status),1),Na("p",null,"User: "+Dl(t.signInData.user),1)])):(Uo(),Ya("div",WUe,[$t(es,{color:"primary",onClick:t.signInInitiate},{default:ao(()=>[Ua("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Uo(),da(es,{key:2,color:"primary",onClick:t.signOut},{default:ao(()=>[Ua("Sign Out")]),_:1},8,["onClick"])):za("",!0):(Uo(),da(es,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:ao(()=>[Ua("Start Server ")]),_:1},8,["onClick"]))]),_:1}),$t(es,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=s=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const XUe=mp(FUe,[["render",YUe]]),GUe=Na("span",{class:"text-h5"},"Publish Notebook",-1),KUe=Na("span",null,[Ua("Need an API Key? Create an account "),Na("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),JUe=Na("br",null,null,-1),eje=Na("br",null,null,-1),tje={class:"d-flex justify-center"},nje=em({__name:"ShareComponent",props:{userName:{type:String,required:!0},projectName:{type:String,required:!0},teamName:{type:String,required:!0}},setup(t){const e=t,o=qo(!1),f=qo({userName:"",projectName:"",apiKey:"",teamName:"",computeProfile:"X-Small (1 CPU, 2GB RAM)"}),E=qo(!1),d={required:a=>!!a||"Required."},s=qo(["X-Small (1 CPU, 2GB RAM)","Small (1 CPU, 4GB RAM)","Medium (1.5 CPU, 8GB RAM)","Large (2 CPU, 16GB RAM)","X-Large (4 CPU, 32GB RAM)"]),n=qo(""),u=qo(""),b=qo(""),i=qo(!1),S=qo(!1),w=async()=>{var a,c,h,p,v;if(E.value){if(u.value="",b.value="",n.value="",S.value=!0,i.value){try{await ou.post("api/confirm_share",f.value),n.value="Project published successfully"}catch(_){_ instanceof Ude?u.value=((c=(a=_.response)==null?void 0:a.data)==null?void 0:c.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}i.value=!1}else try{const _=await ou.post("api/share_notebook",f.value);(h=_.data)!=null&&h.warning?(b.value=_.data.warning,i.value=!0):(n.value="Project published successfully",u.value="",b.value="")}catch(_){_ instanceof Ude?u.value=((v=(p=_.response)==null?void 0:p.data)==null?void 0:v.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}S.value=!1}};function y(){e.teamName!==""?f.value.teamName=e.teamName:f.value.userName=e.userName,f.value.projectName=e.projectName}function m(){u.value="",n.value="",b.value="",i.value=!1,S.value=!1}return(a,c)=>(Uo(),da(fC,{modelValue:o.value,"onUpdate:modelValue":c[7]||(c[7]=h=>o.value=h),"max-width":"600px",onAfterEnter:c[8]||(c[8]=h=>y()),onAfterLeave:c[9]||(c[9]=h=>m())},{activator:ao(({props:h})=>[$t(es,qi(h,{"prepend-icon":`ztIcon:${Va(Mp).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:ao(()=>[Ua(" Publish ")]),_:2},1040,["prepend-icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[GUe]),_:1}),n.value?(Uo(),da(eM,{key:0,type:"success",class:"mb-4"},{default:ao(()=>[Ua(Dl(n.value),1)]),_:1})):za("",!0),u.value?(Uo(),da(eM,{key:1,type:"error",class:"mb-4"},{default:ao(()=>[Ua(Dl(u.value),1)]),_:1})):za("",!0),b.value?(Uo(),da(eM,{key:2,type:"warning",class:"mb-4"},{default:ao(()=>[Ua(Dl(b.value),1)]),_:1})):za("",!0),$t(dC,null,{default:ao(()=>[$t(SBe,{ref:"form",modelValue:E.value,"onUpdate:modelValue":c[6]||(c[6]=h=>E.value=h),onSubmit:RH(w,["prevent"])},{default:ao(()=>[$t(Ep,{modelValue:f.value.userName,"onUpdate:modelValue":c[0]||(c[0]=h=>f.value.userName=h),label:"User Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=h=>f.value.projectName=h),label:"Project Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=h=>f.value.apiKey=h),label:"API Key",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=h=>f.value.teamName=h),label:"Team Name (Optional)"},null,8,["modelValue"]),$t(Mq,{modelValue:f.value.computeProfile,"onUpdate:modelValue":c[4]||(c[4]=h=>f.value.computeProfile=h),items:s.value,label:"Compute Profile"},null,8,["modelValue","items"]),KUe,JUe,eje,$t(Iq,{justify:"space-between"},{default:ao(()=>[$t(QT,{cols:"auto"},{default:ao(()=>[S.value?za("",!0):(Uo(),da(es,{key:0,type:"submit",color:"primary"},{default:ao(()=>[Ua(Dl(i.value?"Confirm":"Publish"),1)]),_:1})),Na("div",tje,[S.value?(Uo(),da(sC,{key:0,indeterminate:"",color:"primary"})):za("",!0)])]),_:1}),$t(QT,{cols:"auto"},{default:ao(()=>[$t(es,{onClick:c[5]||(c[5]=h=>o.value=!1),color:"error"},{default:ao(()=>[Ua("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class i1e{constructor(e){pu(this,"timerId",null);pu(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const rje={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,files:[],fileNames:[],isUploading:!1,ztAliases:Mp,errorMessage:""}),methods:{openDialog(){this.uploadingFile=!0},closeDialog(){this.isUploading||(this.uploadingFile=!1),this.cleanUp()},onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;if(e&&e.length>0)for(let f=0;f0)for(let o=0;o(Wle("data-v-4e4c74a2"),t=t(),Yle(),t),oje=KOe(()=>Na("div",{class:"mb-1",style:{"font-size":"14px"}},"or",-1)),ije={key:1,class:"my-4"},aje=KOe(()=>Na("br",null,null,-1)),sje={key:0};function lje(t,e,o,f,E,d){return Uo(),da(fC,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[1]||(e[1]=s=>t.uploadingFile=s),"max-width":"444",class:"text-center mb-6",persistent:"",onDrop:d.onDrop,onDragover:e[2]||(e[2]=RH(()=>{},["prevent"]))},{activator:ao(({props:s})=>[$t(es,qi(s,{icon:"mdi-upload",color:"bluegrey-darken-4",class:"mb-2",onClick:d.openDialog}),null,16,["onClick"])]),default:ao(()=>[t.errorMessage?(Uo(),da(eM,{key:0,color:"error",text:t.errorMessage},null,8,["text"])):za("",!0),$t(ub,null,{default:ao(()=>[$t(I4,{class:"pb-0",style:{"font-size":"18px"}},{default:ao(()=>[Ua("Drag files to upload "),oje]),_:1}),$t(dC,null,{default:ao(()=>[t.isUploading?za("",!0):(Uo(),da(es,{key:0,icon:"",onClick:d.closeDialog,class:"close-button",variant:"plain",style:{width:"24px",height:"24px"}},{default:ao(()=>[$t(jl,{size:"18"},{default:ao(()=>[Ua("mdi-close")]),_:1})]),_:1},8,["onClick"])),Na("input",{class:"d-none",type:"file",ref:"fileInput",multiple:"",onChange:e[0]||(e[0]=(...s)=>d.handleFileChange&&d.handleFileChange(...s))},null,544),$t(es,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:ao(()=>[Ua(" Browse files ")]),_:1},8,["onClick"]),t.fileNames.length>0?(Uo(),Ya("div",ije,[(Uo(!0),Ya(Ea,null,ey(t.fileNames,s=>(Uo(),Ya("span",null,[Ua(Dl(s)+" ",1),aje]))),256))])):za("",!0)]),_:1}),$t(es,{onClick:d.submitFile,color:"primary",class:"mt-4",disabled:t.isUploading},{default:ao(()=>[t.isUploading?za("",!0):(Uo(),Ya("span",sje,"Submit")),t.isUploading?(Uo(),da(sC,{key:1,indeterminate:"",color:"primary",size:"24"})):za("",!0)]),_:1},8,["onClick","disabled"])]),_:1})]),_:1},8,["modelValue","onDrop"])}const cje=mp(rje,[["render",lje],["__scopeId","data-v-4e4c74a2"]]),uje=em({name:"FileFolderCreator",props:{currentPath:{type:String,required:!0}},emits:["item-created"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo("folder"),d=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],s=qo(""),n=qo(!1),u=qo(""),b=nr(()=>f.value.trim()!==""&&s.value===""),i=()=>{f.value.trim()===""?s.value="Name cannot be empty":/^[a-zA-Z0-9_\-. ]+$/.test(f.value)?s.value="":s.value="Name contains invalid characters"},S=()=>{o.value=!0},w=()=>{o.value=!1,f.value="",E.value="folder",s.value=""};return{createDialogVisible:o,newItemName:f,newItemType:E,itemTypes:d,nameError:s,showError:n,errorMessage:u,isValid:b,openCreateDialog:S,closeDialog:w,createNewItem:async()=>{if(b.value)try{const m=await ou.post("api/create_item",{path:t.currentPath,name:f.value.trim(),type:E.value});m.data.success?(e("item-created"),w()):(u.value=`Failed to create ${E.value}: ${m.data.message}`,n.value=!0)}catch(m){u.value=`Error creating ${E.value}: ${m}`,n.value=!0}},validateName:i}}});function fje(t,e,o,f,E,d){return Uo(),Ya(Ea,null,[$t(es,{color:"bluegrey-darken-4",icon:"mdi-plus",onClick:t.openCreateDialog},null,8,["onClick"]),$t(fC,{modelValue:t.createDialogVisible,"onUpdate:modelValue":e[2]||(e[2]=s=>t.createDialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Create New Folder or File")]),_:1}),$t(dC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newItemName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newItemName=s),label:"Name","error-messages":t.nameError,onInput:t.validateName},null,8,["modelValue","error-messages","onInput"]),$t(DM,{modelValue:t.newItemType,"onUpdate:modelValue":e[1]||(e[1]=s=>t.newItemType=s),items:t.itemTypes,"item-title":"text","item-value":"value",label:"Type"},null,8,["modelValue","items"])]),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"primary",onClick:t.createNewItem,disabled:!t.isValid},{default:ao(()=>[Ua("Create")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[4]||(e[4]=s=>t.showError=s),color:"error",timeout:3e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[3]||(e[3]=s=>t.showError=!1)},{default:ao(()=>[Ua("Close")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])],64)}const dje=mp(uje,[["render",fje]]),hje=em({name:"RenameDialog",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemRenamed"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo(null),d=qo(""),s=qo(!1),n=S=>{t.isProtectedFile(S.title)||(E.value=S,f.value=S.title,o.value=!0)},u=()=>{o.value=!1,f.value="",E.value=null},b=S=>{d.value=S,s.value=!0};return{dialogVisible:o,newName:f,openDialog:n,closeDialog:u,renameItem:async()=>{if(!f.value.trim()){b("New name cannot be empty.");return}try{const S=await ou.post("api/rename_item",{path:t.currentPath,oldName:E.value.title,newName:f.value});S.data.success?(e("itemRenamed"),u()):b(S.data.message||"Failed to rename item. Please try again.")}catch(S){b("Error connecting to the server. Please try again."),console.error("Error renaming item:",S)}},errorMessage:d,showError:s}}});function pje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(fC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialogVisible=s),"max-width":"300px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Rename Item")]),_:1}),$t(dC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newName=s),label:"New Name",rules:[s=>!!s||"Name is required"],required:"",onKeyup:pce(t.renameItem,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",variant:"text",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"blue-darken-1",variant:"text",onClick:t.renameItem,disabled:!t.newName},{default:ao(()=>[Ua("Rename")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[3]||(e[3]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[2]||(e[2]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const mje=mp(hje,[["render",pje]]),gje=em({name:"DeleteItem",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemDeleted"],setup(t,{emit:e}){const o=qo(!1),f=qo(null),E=qo(""),d=qo(!1),s=i=>{t.isProtectedFile(i.title)||(f.value=i,o.value=!0)},n=()=>{o.value=!1,f.value=null},u=i=>{E.value=i,d.value=!0};return{dialogVisible:o,itemToDelete:f,openDialog:s,closeDialog:n,deleteItem:async()=>{try{const i=await ou.post("api/delete_item",{path:t.currentPath,name:f.value.title});i.data.success?(e("itemDeleted"),n()):u(`Failed to delete item: ${i.data.message}`)}catch(i){u("Error connecting to the server. Please try again."),console.error("Error deleting item:",i)}},errorMessage:E,showError:d}}});function vje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(fC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[0]||(e[0]=s=>t.dialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Confirm Deletion")]),_:1}),$t(dC,null,{default:ao(()=>{var s;return[Ua(' Are you sure you want to delete "'+Dl((s=t.itemToDelete)==null?void 0:s.title)+'"? ',1)]}),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"error",onClick:t.deleteItem},{default:ao(()=>[Ua("Delete")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[1]||(e[1]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const yje=mp(gje,[["render",vje]]),bje=em({name:"SidebarComponent",components:{FileUploader:cje,FileFolderCreator:dje,RenameDialog:mje,DeleteDialog:yje},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=qo(t.drawer),f=qo(t.items||[]),E=qo("."),d=qo([]),s=qo(""),n=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],u=qo(""),b=qo(!1),i=qo(["requirements.txt","notebook.ztnb"]),S=O=>i.value.includes(O),w=qo(null),y=qo(null),m=O=>{var C;(C=w.value)==null||C.openDialog(O)},a=O=>{var C;(C=y.value)==null||C.openDialog(O)};ia(()=>t.drawer,O=>{o.value=O}),ia(o,O=>{e("update:drawer",O),O&&v()});const c=async O=>{try{const C=await ou.get("api/get_children",{params:{path:O}});f.value=C.data.files,e("update:items",C.data.files)}catch(C){console.error("Failed to load files:",C)}};pg(()=>{c(E.value)});const h=O=>{O.file==="folder"&&(d.value.push(E.value),E.value=O.id,c(E.value))},p=()=>{d.value.length>0&&(E.value=d.value.pop()||".",c(E.value))},v=()=>{c(E.value)};return{localDrawer:o,localItems:f,handleItemClick:h,goBack:p,pathStack:d,currentPath:E,refreshFiles:v,fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},newItemName:s,itemTypes:n,renameDialog:w,openRenameDialog:m,openDeleteDialog:a,deleteDialog:y,errorMessage:u,showError:b,isProtectedFile:S}}}),xje={class:"d-flex"};function _je(t,e,o,f,E,d){const s=Nd("FileFolderCreator"),n=Nd("FileUploader"),u=Nd("RenameDialog"),b=Nd("DeleteDialog");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Uo(),da(vwe,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[3]||(e[3]=i=>t.localDrawer=i),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:ao(()=>[Na("div",xje,[t.pathStack.length>0?(Uo(),da(es,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):za("",!0),$t(BM),$t(s,{"current-path":t.currentPath,onItemCreated:t.refreshFiles},null,8,["current-path","onItemCreated"]),$t(n,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),$t(es,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=i=>t.localDrawer=!1)})]),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(t.localItems,i=>(Uo(),da(Xf,{key:i.id},{prepend:ao(()=>[i.file==="folder"?(Uo(),da(jl,{key:0},{default:ao(()=>[Ua(Dl("mdi-folder"))]),_:1})):(Uo(),da(jl,{key:1},{default:ao(()=>[Ua(Dl(t.fileIcon(i.file)),1)]),_:2},1024))]),append:ao(()=>[t.isProtectedFile(i.title)?za("",!0):(Uo(),da(BO,{key:0},{activator:ao(({props:S})=>[$t(es,qi({icon:"",variant:"text",density:"compact",class:"mr-2"},S),{default:ao(()=>[$t(jl,{size:"small"},{default:ao(()=>[Ua("mdi-dots-vertical")]),_:1})]),_:2},1040)]),default:ao(()=>[$t(Ax,null,{default:ao(()=>[$t(Xf,{onClick:S=>t.openRenameDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Rename")]),_:1})]),_:2},1032,["onClick"]),$t(Xf,{onClick:S=>t.openDeleteDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))]),default:ao(()=>[$t(z1,{onClick:S=>t.handleItemClick(i)},{default:ao(()=>[Ua(Dl(i.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=i=>t.showError=i),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[1]||(e[1]=i=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"]),$t(u,{ref:"renameDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemRenamed:t.refreshFiles},null,8,["current-path","is-protected-file","onItemRenamed"]),$t(b,{ref:"deleteDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemDeleted:t.refreshFiles},null,8,["current-path","is-protected-file","onItemDeleted"])]),_:1},8,["modelValue"])):za("",!0)}const wje=mp(bje,[["render",_je]]);class UL{constructor(e,o={}){pu(this,"socket");pu(this,"pingInterval");pu(this,"pingTimeout");pu(this,"url");pu(this,"options");pu(this,"reconnectAttempts",0);pu(this,"maxReconnectAttempts",3);pu(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,E;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(E=(f=this.options).onOpen)==null||E.call(f),e("")},this.socket.onerror=f=>{var E,d;console.error(`WebSocket error: ${this.url}`,f),(d=(E=this.options).onError)==null||d.call(E,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),(!this.options.isCodeRunning||!this.options.isCodeRunning())&&this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Q0.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const Oje={components:{CodeComponent:Twe,MarkdownComponent:NOe,EditorComponent:$Oe,SQLComponent:WOe,PackageComponent:YOe,CodeCellManager:NUe,CopilotComponent:XUe,ShareComponent:nje,SidebarComponent:wje,Comments:DUe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:"",requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,showCreateButton:!1,envUserName:"",envProjectName:"",envTeamName:"",concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Mp}},setup(){const t=TD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=Hue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Q0.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new UL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.run_socket=new UL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.stop_socket=new UL(this.ws_url+"ws/stop_execution",{isCodeRunning:()=>this.isCodeRunning}),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new UL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.dependency_socket=new UL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,Vc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await ou.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await ou.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:1326/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version,this.showCreateButton=e.show_create_button,Q0.comments_enabled=e.comments_enabled,e!=null&&e.user_name&&(this.envUserName=e.user_name),e!=null&&e.project_name&&(this.envProjectName=e.project_name),e!=null&&e.team_name&&(this.envTeamName=e.team_name)},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),ou.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(E=>console.log("File processed",E.data)).catch(E=>console.error("Error processing file:",E.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let E in this.notebook.cells){const d={id:E,code:this.notebook.cells[E].code,variable_name:this.notebook.cells[E].variable_name||"",nonReactive:this.notebook.cells[E].nonReactive,showTable:this.notebook.cells[E].showTable,cellType:this.notebook.cells[E].cellType};for(const s of this.notebook.cells[E].components)s.component==="v-data-table"?o[s.id]="":o[s.id]=s.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const E=this.requestQueue.findIndex(d=>d.originId===t);E!==-1?this.requestQueue[E]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let s in this.notebook.cells)for(const n of this.notebook.cells[s].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const E={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const s=this.componentChangeQueue.findIndex(n=>n.componentId===e);s!==-1?this.componentChangeQueue[s]=E:this.componentChangeQueue.push(E);return}const d={originId:E.originId,components:E.components,userId:E.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};ou.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},E=(await ou.post("api/create_cell",o)).data;let d={};t||(d[E.id]=E);for(let s in this.notebook.cells)d[s]=this.notebook.cells[s],t===s&&(d[E.id]=E);E.cellType==="code"&&(this.completions[E.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await ou.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` +Required: `+Tt.join(", "));return Cs[No].apply(null,ga)},log:Cs=>{console.log(Cs,{constructors:Tt,constructor:No,params:ga})}}}}),xn}}.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])});const Os=(mt,Tt)=>{const xn=Bl.fromTable(mt);return Aa(xn,Tt).bind(yr=>{const so=yr[yr.length-1],No=yr[0].row,ui=so.row+so.rowspan,ga=xn.all.slice(No,ui);return Qi(ga)}).getOr("")},Si=mt=>Dr(mt,"rgb")?ii(mt):mt,lc=mt=>{const Tt=Ye.fromDom(mt);return{borderwidth:Er(Tt,"border-width").getOr(""),borderstyle:Er(Tt,"border-style").getOr(""),bordercolor:Er(Tt,"border-color").map(Si).getOr(""),backgroundcolor:Er(Tt,"background-color").map(Si).getOr("")}},rd=mt=>{const Tt=mt[0],xn=mt.slice(1);return Y(xn,Nn=>{Y(R(Tt),yr=>{T(Nn,(so,No)=>{const ui=Tt[yr];ui!==""&&yr===No&&ui!==so&&(Tt[yr]=yr==="class"?"mce-no-match":"")})})}),Tt},tp=(mt,Tt,xn,Nn)=>de(mt,yr=>!b(xn.formatter.matchNode(Nn,Tt+yr))).getOr(""),kt=v(tp,["left","center","right"],"align"),It=v(tp,["top","middle","bottom"],"valign"),Ut=(mt,Tt)=>{const xn=Jh(mt),Nn=_h(mt),yr=()=>({borderstyle:z(xn,"border-style").getOr(""),bordercolor:Si(z(xn,"border-color").getOr("")),backgroundcolor:Si(z(xn,"background-color").getOr(""))}),so={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},No=()=>{const ua=xn["border-width"];return bl(mt)&&ua?{border:ua}:z(Nn,"border").fold(()=>({}),Cs=>({border:Cs}))},ui=Tt?yr():{},ga=()=>{const ua=z(xn,"border-spacing").or(z(Nn,"cellspacing")).fold(()=>({}),ul=>({cellspacing:ul})),Cs=z(xn,"border-padding").or(z(Nn,"cellpadding")).fold(()=>({}),ul=>({cellpadding:ul}));return{...ua,...Cs}};return{...so,...xn,...Nn,...ui,...No(),...ga()}},J=mt=>dr(Ye.fromDom(mt)).map(Tt=>{const xn={selection:ah(mt.cells)};return Os(Tt,xn)}).getOr(""),le=(mt,Tt,xn)=>{const Nn=(ui,ga)=>{const Sa=Er(Ye.fromDom(ga),"border-width");return bl(mt)&&Sa.isSome()?Sa.getOr(""):ui.getAttrib(ga,"border")||iu(mt.dom,ga,"border-width")||iu(mt.dom,ga,"border")||""},yr=mt.dom,so=bl(mt)?yr.getStyle(Tt,"border-spacing")||yr.getAttrib(Tt,"cellspacing"):yr.getAttrib(Tt,"cellspacing")||yr.getStyle(Tt,"border-spacing"),No=bl(mt)?iu(yr,Tt,"padding")||yr.getAttrib(Tt,"cellpadding"):yr.getAttrib(Tt,"cellpadding")||iu(yr,Tt,"padding");return{width:yr.getStyle(Tt,"width")||yr.getAttrib(Tt,"width"),height:yr.getStyle(Tt,"height")||yr.getAttrib(Tt,"height"),cellspacing:so??"",cellpadding:No??"",border:Nn(yr,Tt),caption:!!yr.select("caption",Tt)[0],class:yr.getAttrib(Tt,"class",""),align:kt(mt,Tt),...xn?lc(Tt):{}}},ne=(mt,Tt,xn)=>{const Nn=mt.dom;return{height:Nn.getStyle(Tt,"height")||Nn.getAttrib(Tt,"height"),class:Nn.getAttrib(Tt,"class",""),type:J(Tt),align:kt(mt,Tt),...xn?lc(Tt):{}}},V=(mt,Tt,xn,Nn)=>{const yr=mt.dom,so=Nn.getOr(Tt);return{width:((ui,ga)=>yr.getStyle(ui,ga)||yr.getAttrib(ui,ga))(so,"width"),scope:yr.getAttrib(Tt,"scope"),celltype:An(Tt),class:yr.getAttrib(Tt,"class",""),halign:kt(mt,Tt),valign:It(mt,Tt),...xn?lc(Tt):{}}},ie=(mt,Tt)=>{const xn=Bl.fromTable(mt),Nn=Bl.justCells(xn),yr=pe(Nn,so=>K(Tt,No=>tt(so.element,No)));return q(yr,so=>({element:so.element.dom,column:Bl.getColumnAt(xn,so.column).map(No=>No.element.dom)}))},ge=(mt,Tt,xn,Nn)=>{Nn("scope")&&mt.setAttrib("scope",xn.scope),Nn("class")&&xn.class!=="mce-no-match"&&mt.setAttrib("class",xn.class),Nn("width")&&Tt.setStyle("width",Zn(xn.width))},xe=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setFormat("tablecellbackgroundcolor",Tt.backgroundcolor),xn("bordercolor")&&mt.setFormat("tablecellbordercolor",Tt.bordercolor),xn("borderstyle")&&mt.setFormat("tablecellborderstyle",Tt.borderstyle),xn("borderwidth")&&mt.setFormat("tablecellborderwidth",Zn(Tt.borderwidth))},Ee=(mt,Tt,xn,Nn)=>{const yr=Tt.length===1;Y(Tt,so=>{const No=so.element,ui=yr?C:Nn,ga=wr.normal(mt,No),Sa=so.column.map(ua=>wr.normal(mt,ua)).getOr(ga);ge(ga,Sa,xn,ui),rf(mt)&&xe(ga,xn,ui),Nn("halign")&&au(mt,No,xn.halign),Nn("valign")&&zf(mt,No,xn.valign)})},Ne=(mt,Tt)=>{mt.execCommand("mceTableCellType",!1,{type:Tt.celltype,no_events:!0})},et=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);I(yr)>0&&Tt.length>=1&&dr(Tt[0]).each(so=>{const No=ie(so,Tt),ui=I(L(yr,(Sa,ua)=>ua!=="scope"&&ua!=="celltype"))>0,ga=$(yr,"celltype");(ui||$(yr,"scope"))&&Ee(mt,No,Nn,v($,yr)),ga&&Ne(mt,Nn),_s(mt,so.dom,{structure:ga,style:ui})})},rt=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{et(mt,Tt,xn,yr),mt.focus()})},dt=(mt,Tt)=>{const xn=dr(Tt[0]).map(Nn=>q(ie(Nn,Tt),yr=>V(mt,yr.element,rf(mt),yr.column)));return rd(xn.getOrDie())},gt=mt=>{const Tt=wd(mt);if(Tt.length===0)return;const xn=dt(mt,Tt),Nn={type:"tabpanel",tabs:[{title:"General",name:"general",items:Kt(mt)},En(mt,"cell")]},yr={type:"panel",items:[{type:"grid",columns:2,items:Kt(mt)}]};mt.windowManager.open({title:"Cell Properties",size:"normal",body:rf(mt)?Nn:yr,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:xn,onSubmit:v(rt,mt,Tt,xn)})},Rt=mt=>Eu(Kh(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),Mt=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Xt=mt=>Mt.concat(Rt(mt).toArray()),dn=(mt,Tt,xn)=>{xn("class")&&Tt.class!=="mce-no-match"&&mt.setAttrib("class",Tt.class),xn("height")&&mt.setStyle("height",Zn(Tt.height))},bn=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setStyle("background-color",Tt.backgroundcolor),xn("bordercolor")&&mt.setStyle("border-color",Tt.bordercolor),xn("borderstyle")&&mt.setStyle("border-style",Tt.borderstyle)},vn=(mt,Tt,xn,Nn)=>{const so=Tt.length===1?C:Nn;Y(Tt,No=>{const ui=gr(Ye.fromDom(No),"td,th"),ga=wr.normal(mt,No);dn(ga,xn,so),of(mt)&&bn(ga,xn,so),Nn("height")&&Y(ui,Sa=>{mt.dom.setStyle(Sa.dom,"height",null)}),Nn("align")&&au(mt,No,xn.align)})},Ln=(mt,Tt)=>{mt.execCommand("mceTableRowType",!1,{type:Tt.type,no_events:!0})},gn=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);if(I(yr)>0){const so=$(yr,"type"),No=so?I(yr)>1:!0;No&&vn(mt,Tt,Nn,v($,yr)),so&&Ln(mt,Nn),dr(Ye.fromDom(Tt[0])).each(ui=>_s(mt,ui.dom,{structure:so,style:No}))}},Jn=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{gn(mt,Tt,xn,yr),mt.focus()})},pn=mt=>{const Tt=Ol(tr(mt),nc.selected);if(Tt.length===0)return;const xn=q(Tt,No=>ne(mt,No.dom,of(mt))),Nn=rd(xn),yr={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xt(mt)},En(mt,"row")]},so={type:"panel",items:[{type:"grid",columns:2,items:Xt(mt)}]};mt.windowManager.open({title:"Row Properties",size:"normal",body:of(mt)?yr:so,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Nn,onSubmit:v(Jn,mt,q(Tt,No=>No.dom),Nn)})},In=(mt,Tt,xn)=>{const Nn=xn?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],yr=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],so=vu(mt)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],No=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],ui=Tt.length>0?[{name:"class",type:"listbox",label:"Class",items:Tt}]:[];return Nn.concat(yr).concat(so).concat(No).concat(ui)},Ir=(mt,Tt,xn,Nn)=>{if(Tt.tagName==="TD"||Tt.tagName==="TH")s(xn)&&S(Nn)?mt.setStyle(Tt,xn,Nn):mt.setStyles(Tt,xn);else if(Tt.children)for(let yr=0;yr{const yr=mt.dom,so={},No={},ui=bl(mt),ga=bf(mt),Sa=parseFloat(xn.border)===0;if(!b(xn.class)&&xn.class!=="mce-no-match"&&(so.class=xn.class),No.height=Zn(xn.height),ui?No.width=Zn(xn.width):yr.getAttrib(Tt,"width")&&(so.width=Un(xn.width)),ui?(Sa?(so.border=0,No["border-width"]=""):(No["border-width"]=Zn(xn.border),so.border=1),No["border-spacing"]=Zn(xn.cellspacing)):(so.border=Sa?0:xn.border,so.cellpadding=xn.cellpadding,so.cellspacing=xn.cellspacing),ui&&Tt.children){const ua={};if(Sa?ua["border-width"]="":Nn.border&&(ua["border-width"]=Zn(xn.border)),Nn.cellpadding&&(ua.padding=Zn(xn.cellpadding)),ga&&Nn.bordercolor&&(ua["border-color"]=xn.bordercolor),!j(ua))for(let Cs=0;Cs{const yr=mt.dom,so=Nn.getData(),No=L(so,(ui,ga)=>xn[ga]!==ui);Nn.close(),mt.undoManager.transact(()=>{if(!Tt){const ui=io(so.cols).getOr(1),ga=io(so.rows).getOr(1);mt.execCommand("mceInsertTable",!1,{rows:ga,columns:ui}),Tt=bu(tr(mt),fr(mt)).bind(Sa=>dr(Sa,fr(mt))).map(Sa=>Sa.dom).getOrDie()}if(I(No)>0){const ui={border:$(No,"border"),bordercolor:$(No,"bordercolor"),cellpadding:$(No,"cellpadding")};Pr(mt,Tt,so,ui);const ga=yr.select("caption",Tt)[0];(ga&&!so.caption||!ga&&so.caption)&&mt.execCommand("mceTableToggleCaption"),au(mt,Tt,so.align)}if(mt.focus(),mt.addVisual(),I(No)>0){const ui=$(No,"caption"),ga=ui?I(No)>1:!0;_s(mt,Tt,{structure:ui,style:ga})}})},ro=(mt,Tt)=>{const xn=mt.dom;let Nn,yr=Ut(mt,bf(mt));Tt?(yr.cols="1",yr.rows="1",bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor="")):(Nn=xn.getParent(mt.selection.getStart(),"table",mt.getBody()),Nn?yr=le(mt,Nn,bf(mt)):bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor=""));const so=Eu(Cu(mt));so.isSome()&&yr.class&&(yr.class=yr.class.replace(/\s*mce\-item\-table\s*/g,""));const No={type:"grid",columns:2,items:In(mt,so.getOr([]),Tt)},ui=()=>({type:"panel",items:[No]}),ga=()=>({type:"tabpanel",tabs:[{title:"General",name:"general",items:[No]},En(mt,"table")]}),Sa=bf(mt)?ga():ui();mt.windowManager.open({title:"Table Properties",size:"normal",body:Sa,onSubmit:v(Gr,mt,Nn,yr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:yr})},po=mt=>{const Tt=xn=>{$r(tr(mt))&&xn()};T({mceTableProps:v(ro,mt,!1),mceTableRowProps:v(pn,mt),mceTableCellProps:v(gt,mt),mceInsertTableDialog:v(ro,mt,!0)},(xn,Nn)=>mt.addCommand(Nn,()=>Tt(xn)))},Wo=(mt,Tt)=>Zt(mt,Tt).isSome(),si=h,Bo=mt=>{const Tt=(Nn,yr)=>Jr(Nn,yr).exists(so=>parseInt(so,10)>1),xn=Nn=>Tt(Nn,"rowspan")||Tt(Nn,"colspan");return mt.length>0&&_e(mt,xn)?x.some(mt):x.none()},Go=(mt,Tt,xn)=>Tt.length<=1?x.none():vp(mt,xn.firstSelectedSelector,xn.lastSelectedSelector).map(Nn=>({bounds:Nn,cells:Tt})),Yo=mt=>({element:mt,mergable:x.none(),unmergable:x.none(),selection:[mt]}),Wi=(mt,Tt,xn)=>({element:xn,mergable:Go(Tt,mt,nc),unmergable:Bo(mt),selection:si(mt)}),Ho=mt=>{const Tt=nd(x.none()),xn=nd([]);let Nn=x.none();const yr=tn("caption"),so=ss=>Nn.forall(Gl=>!Gl[ss]),No=()=>wi(tr(mt),fr(mt)),ui=()=>wi(Br(mt),fr(mt)),ga=()=>No().bind(ss=>$o(_o(dr(ss),ui().bind(dr),(Gl,Sf)=>tt(Gl,Sf)?yr(ss)?x.some(Yo(ss)):x.some(Wi(wd(mt),Gl,ss)):x.none()))),Sa=ss=>dr(ss.element).map(Sf=>{const Nc=Bl.fromTable(Sf),o0=Aa(Nc,ss).getOr([]),i0=ae(o0,(a0,wu)=>(wu.isLocked&&(a0.onAny=!0,wu.column===0?a0.onFirst=!0:wu.column+wu.colspan>=Nc.grid.columns&&(a0.onLast=!0)),a0),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:sh(Nc,ss).isSome(),unmergeable:_c(Nc,ss).isSome(),locked:i0}}),ua=()=>{Tt.set(Ws(ga)()),Nn=Tt.get().bind(Sa),Y(xn.get(),_)},Cs=ss=>(ss(),xn.set(xn.get().concat([ss])),()=>{xn.set(pe(xn.get(),Gl=>Gl!==ss))}),ul=(ss,Gl)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1)},Sf=>{ss.setEnabled(!Gl(Sf)&&mt.selection.isEditable())})),Jc=(ss,Gl,Sf)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1),ss.setActive(!1)},Nc=>{ss.setEnabled(!Gl(Nc)&&mt.selection.isEditable()),ss.setActive(Sf(Nc))})),Is=ss=>Nn.exists(Gl=>Gl.locked[ss]),Hc=ss=>ul(ss,Gl=>!1),Nl=ss=>ul(ss,Gl=>yr(Gl.element)),lh=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||Is(ss)),r0=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||ss().isNone()),ch=(ss,Gl)=>Sf=>ul(Sf,Nc=>yr(Nc.element)||ss().isNone()||Is(Gl)),gg=ss=>ul(ss,Gl=>so("mergeable")),Ip=ss=>ul(ss,Gl=>so("unmergeable")),X0=ss=>Jc(ss,O,Gl=>dr(Gl.element,fr(mt)).exists(Nc=>Wo(Nc,"caption"))),Vh=(ss,Gl)=>Sf=>Jc(Sf,Nc=>yr(Nc.element),()=>mt.queryCommandValue(ss)===Gl),Pu=Vh("mceTableRowType","header"),Uh=Vh("mceTableColType","th");return mt.on("NodeChange ExecCommand TableSelectorChange",ua),{onSetupTable:Hc,onSetupCellOrRow:Nl,onSetupColumn:lh,onSetupPasteable:r0,onSetupPasteableColumn:ch,onSetupMergeable:gg,onSetupUnmergeable:Ip,resetTargets:ua,onSetupTableWithCaption:X0,onSetupTableRowHeaders:Pu,onSetupTableColumnHeaders:Uh,targets:Tt.get}};var jo=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Yi="x-tinymce/dom-table-",ai=Yi+"rows",Hi=Yi+"columns",Ai=mt=>{var Tt;const xn=(Tt=jo.read())!==null&&Tt!==void 0?Tt:[];return ze(xn,Nn=>x.from(Nn.getType(mt)))},es=()=>Ai(ai),Ar=()=>Ai(Hi),ns=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},$s=(mt,Tt)=>{mt.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:ns(mt),fetch:ui=>ui("inserttable | cell row column | advtablesort | tableprops deletetable")});const xn=ui=>()=>mt.execCommand(ui),Nn=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})},yr=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addToggleButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})};Nn("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:Tt.onSetupTable}),Nn("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:Tt.onSetupTable}),Nn("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:Tt.onSetupUnmergeable}),Nn("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:Tt.onSetupPasteable(es)}),Nn("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:Tt.onSetupPasteable(es)}),Nn("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")}),Nn("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:ns(mt)});const so=Fu(Cu(mt));so.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:su(mt,so,"tableclass",ui=>mt.execCommand("mceTableToggleClass",!1,ui)),onSetup:Tt.onSetupTable});const No=Fu(Zu(mt));No.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:su(mt,No,"tablecellclass",ui=>mt.execCommand("mceTableCellToggleClass",!1,ui)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:su(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:su(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:su(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:ui=>ui(Ca(mt,Bu(mt),"background-color")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:ui=>ui(Ca(mt,vd(mt),"border-color")),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableColumnHeaders})},Ts=mt=>{const Tt=Nn=>mt.dom.is(Nn,"table")&&mt.getBody().contains(Nn)&&mt.dom.isEditable(Nn.parentNode),xn=ed(mt);xn.length>0&&mt.ui.registry.addContextToolbar("table",{predicate:Tt,items:xn,scope:"node",position:"node"})},rl=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},Hs=(mt,Tt)=>{const xn=Cs=>()=>mt.execCommand(Cs),Nn=(Cs,ul)=>mt.queryCommandSupported(ul.command)?(mt.ui.registry.addMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)}),!0):!1,yr=(Cs,ul)=>{mt.queryCommandSupported(ul.command)&&mt.ui.registry.addToggleMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)})},so=Cs=>{mt.execCommand("mceInsertTable",!1,{rows:Cs.numRows,columns:Cs.numColumns})},No=[Nn("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:Tt.onSetupPasteable(es)}),Nn("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:Tt.onSetupPasteable(es)})],ui=[Nn("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")})],ga=[Nn("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:Tt.onSetupUnmergeable})];$d(mt)?mt.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"inserttable",onAction:so}],onSetup:rl(mt)}):mt.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),mt.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),Nn("tableprops",{text:"Table properties",onSetup:Tt.onSetupTable,command:"mceTableProps"}),Nn("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:Tt.onSetupTable,command:"mceTableDelete"}),Z(No,!0)&&mt.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:c("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),Z(ui,!0)&&mt.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:c("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),Z(ga,!0)&&mt.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:c("tablecellprops tablemergecells tablesplitcells")}),mt.ui.registry.addContextMenu("table",{update:()=>(Tt.resetTargets(),Tt.targets().fold(c(""),Cs=>Ge(Cs.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"))});const Sa=Fu(Cu(mt));Sa.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:()=>xu(mt,Sa,"tableclass",Cs=>mt.execCommand("mceTableToggleClass",!1,Cs)),onSetup:Tt.onSetupTable});const ua=Fu(Zu(mt));ua.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:()=>xu(mt,ua,"tablecellclass",Cs=>mt.execCommand("mceTableCellToggleClass",!1,Cs)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:()=>xu(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:()=>xu(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:()=>xu(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:()=>Ca(mt,Bu(mt),"background-color"),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:()=>Ca(mt,vd(mt),"border-color"),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableRowHeaders})},ys=mt=>{const Tt=Ho(mt);Dc(mt),po(mt),Hs(mt,Tt),$s(mt,Tt),Ts(mt)};var Yu=()=>{t.add("table",ys)};Yu()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=Object.getPrototypeOf,o=(Qt,Mn,Fn)=>{var dr;return Fn(Qt,Mn.prototype)?!0:((dr=Qt.constructor)===null||dr===void 0?void 0:dr.name)===Mn.name},f=Qt=>{const Mn=typeof Qt;return Qt===null?"null":Mn==="object"&&Array.isArray(Qt)?"array":Mn==="object"&&o(Qt,String,(Fn,dr)=>dr.isPrototypeOf(Fn))?"string":Mn},E=Qt=>Mn=>f(Mn)===Qt,d=Qt=>Mn=>typeof Mn===Qt,s=Qt=>Mn=>Qt===Mn,n=(Qt,Mn)=>b(Qt)&&o(Qt,Mn,(Fn,dr)=>e(Fn)===dr),u=E("string"),b=E("object"),i=Qt=>n(Qt,Object),S=E("array"),w=s(null),y=d("boolean"),m=Qt=>Qt==null,a=Qt=>!m(Qt),c=d("function"),h=d("number"),p=(Qt,Mn)=>{if(S(Qt)){for(let Fn=0,dr=Qt.length;Fn{};class _{constructor(Mn,Fn){this.tag=Mn,this.value=Fn}static some(Mn){return new _(!0,Mn)}static none(){return _.singletonNone}fold(Mn,Fn){return this.tag?Fn(this.value):Mn()}isSome(){return this.tag}isNone(){return!this.tag}map(Mn){return this.tag?_.some(Mn(this.value)):_.none()}bind(Mn){return this.tag?Mn(this.value):_.none()}exists(Mn){return this.tag&&Mn(this.value)}forall(Mn){return!this.tag||Mn(this.value)}filter(Mn){return!this.tag||Mn(this.value)?this:_.none()}getOr(Mn){return this.tag?this.value:Mn}or(Mn){return this.tag?this:Mn}getOrThunk(Mn){return this.tag?this.value:Mn()}orThunk(Mn){return this.tag?this:Mn()}getOrDie(Mn){if(this.tag)return this.value;throw new Error(Mn??"Called getOrDie on None")}static from(Mn){return a(Mn)?_.some(Mn):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Mn){this.tag&&Mn(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Object.keys,C=Object.hasOwnProperty,x=(Qt,Mn)=>{const Fn=O(Qt);for(let dr=0,xr=Fn.length;dr(Mn,Fn)=>{Qt[Fn]=Mn},M=(Qt,Mn,Fn,dr)=>{x(Qt,(xr,Oo)=>{(Mn(xr,Oo)?Fn:dr)(xr,Oo)})},T=(Qt,Mn)=>{const Fn={};return M(Qt,Mn,R(Fn),v),Fn},P=(Qt,Mn)=>C.call(Qt,Mn),A=(Qt,Mn)=>P(Qt,Mn)&&Qt[Mn]!==void 0&&Qt[Mn]!==null,L=Array.prototype.push,D=Qt=>{const Mn=[];for(let Fn=0,dr=Qt.length;FnMn>=0&&Mnk(Qt,0),z=(Qt,Mn)=>{for(let Fn=0;Fn{if(u(Fn)||y(Fn)||h(Fn))Qt.setAttribute(Mn,Fn+"");else throw console.error("Invalid call to Attribute.set. Key ",Mn,":: Value ",Fn,":: Element ",Qt),new Error("Attribute value was not simple")},Q=(Qt,Mn,Fn)=>{$(Qt.dom,Mn,Fn)},j=(Qt,Mn)=>{Qt.dom.removeAttribute(Mn)},U=(Qt,Mn)=>{const dr=(Mn||document).createElement("div");if(dr.innerHTML=Qt,!dr.hasChildNodes()||dr.childNodes.length>1){const xr="HTML does not have a single root node";throw console.error(xr,Qt),new Error(xr)}return Z(dr.childNodes[0])},X=(Qt,Mn)=>{const dr=(Mn||document).createElement(Qt);return Z(dr)},te=(Qt,Mn)=>{const dr=(Mn||document).createTextNode(Qt);return Z(dr)},Z=Qt=>{if(Qt==null)throw new Error("Node cannot be null or undefined");return{dom:Qt}},re={fromHtml:U,fromTag:X,fromText:te,fromDom:Z,fromPoint:(Qt,Mn,Fn)=>_.from(Qt.dom.elementFromPoint(Mn,Fn)).map(Z)};var q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.URI");const ee=Qt=>Qt.length>0,me=Qt=>Mn=>Mn.options.get(Qt),pe=Qt=>{const Mn=Qt.options.register;Mn("image_dimensions",{processor:"boolean",default:!0}),Mn("image_advtab",{processor:"boolean",default:!1}),Mn("image_uploadtab",{processor:"boolean",default:!0}),Mn("image_prepend_url",{processor:"string",default:""}),Mn("image_class_list",{processor:"object[]"}),Mn("image_description",{processor:"boolean",default:!0}),Mn("image_title",{processor:"boolean",default:!1}),Mn("image_caption",{processor:"boolean",default:!1}),Mn("image_list",{processor:Fn=>{const dr=Fn===!1||u(Fn)||p(Fn,b)||c(Fn);return dr?{value:Fn,valid:dr}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},se=me("image_dimensions"),ae=me("image_advtab"),ce=me("image_uploadtab"),de=me("image_prepend_url"),ye=me("image_class_list"),ve=me("image_description"),_e=me("image_title"),we=me("image_caption"),Te=me("image_list"),Pe=me("a11y_advanced_options"),Ie=me("automatic_uploads"),ze=Qt=>ee(Qt.options.get("images_upload_url")),De=Qt=>a(Qt.options.get("images_upload_handler")),Qe=(Qt,Mn)=>Math.max(parseInt(Qt,10),parseInt(Mn,10)),Ve=Qt=>new Promise(Mn=>{const Fn=document.createElement("img"),dr=Oo=>{Fn.onload=Fn.onerror=null,Fn.parentNode&&Fn.parentNode.removeChild(Fn),Mn(Oo)};Fn.onload=()=>{const Oo=Qe(Fn.width,Fn.clientWidth),mi=Qe(Fn.height,Fn.clientHeight),Di={width:Oo,height:mi};dr(Promise.resolve(Di))},Fn.onerror=()=>{dr(Promise.reject(`Failed to get image dimensions for: ${Qt}`))};const xr=Fn.style;xr.visibility="hidden",xr.position="fixed",xr.bottom=xr.left="0px",xr.width=xr.height="auto",document.body.appendChild(Fn),Fn.src=Qt}),$e=Qt=>(Qt&&(Qt=Qt.replace(/px$/,"")),Qt),Oe=Qt=>(Qt.length>0&&/^[0-9]+$/.test(Qt)&&(Qt+="px"),Qt),ke=Qt=>{if(Qt.margin){const Mn=String(Qt.margin).split(" ");switch(Mn.length){case 1:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[0],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[0];break;case 2:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 3:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 4:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[3]}delete Qt.margin}return Qt},Re=(Qt,Mn)=>{const Fn=Te(Qt);u(Fn)?fetch(Fn).then(dr=>{dr.ok&&dr.json().then(Mn)}):c(Fn)?Fn(Mn):Mn(Fn)},We=(Qt,Mn,Fn)=>{const dr=()=>{Fn.onload=Fn.onerror=null,Qt.selection&&(Qt.selection.select(Fn),Qt.nodeChanged())};Fn.onload=()=>{!Mn.width&&!Mn.height&&se(Qt)&&Qt.dom.setAttribs(Fn,{width:String(Fn.clientWidth),height:String(Fn.clientHeight)}),dr()},Fn.onerror=dr},Ue=Qt=>new Promise((Mn,Fn)=>{const dr=new FileReader;dr.onload=()=>{Mn(dr.result)},dr.onerror=()=>{var xr;Fn((xr=dr.error)===null||xr===void 0?void 0:xr.message)},dr.readAsDataURL(Qt)}),Ze=Qt=>Qt.nodeName==="IMG"&&(Qt.hasAttribute("data-mce-object")||Qt.hasAttribute("data-mce-placeholder")),Ye=(Qt,Mn)=>{const Fn=Qt.options.get;return Y.isDomSafe(Mn,"img",{allow_html_data_urls:Fn("allow_html_data_urls"),allow_script_urls:Fn("allow_script_urls"),allow_svg_data_urls:Fn("allow_svg_data_urls")})},Je=q.DOM,Me=Qt=>Qt.style.marginLeft&&Qt.style.marginRight&&Qt.style.marginLeft===Qt.style.marginRight?$e(Qt.style.marginLeft):"",Fe=Qt=>Qt.style.marginTop&&Qt.style.marginBottom&&Qt.style.marginTop===Qt.style.marginBottom?$e(Qt.style.marginTop):"",je=Qt=>Qt.style.borderWidth?$e(Qt.style.borderWidth):"",tt=(Qt,Mn)=>{var Fn;return Qt.hasAttribute(Mn)&&(Fn=Qt.getAttribute(Mn))!==null&&Fn!==void 0?Fn:""},ot=Qt=>Qt.parentNode!==null&&Qt.parentNode.nodeName==="FIGURE",Ge=(Qt,Mn,Fn)=>{Fn===""||Fn===null?Qt.removeAttribute(Mn):Qt.setAttribute(Mn,Fn)},ht=Qt=>{const Mn=Je.create("figure",{class:"image"});Je.insertAfter(Mn,Qt),Mn.appendChild(Qt),Mn.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),Mn.contentEditable="false"},pt=Qt=>{const Mn=Qt.parentNode;a(Mn)&&(Je.insertAfter(Qt,Mn),Je.remove(Mn))},St=Qt=>{ot(Qt)?pt(Qt):ht(Qt)},Ft=(Qt,Mn)=>{const Fn=Qt.getAttribute("style"),dr=Mn(Fn!==null?Fn:"");dr.length>0?(Qt.setAttribute("style",dr),Qt.setAttribute("data-mce-style",dr)):Qt.removeAttribute("style")},zt=(Qt,Mn)=>(Fn,dr,xr)=>{const Oo=Fn.style;Oo[dr]?(Oo[dr]=Oe(xr),Ft(Fn,Mn)):Ge(Fn,dr,xr)},Yt=(Qt,Mn)=>Qt.style[Mn]?$e(Qt.style[Mn]):tt(Qt,Mn),ln=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginLeft=Fn,Qt.style.marginRight=Fn},tn=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginTop=Fn,Qt.style.marginBottom=Fn},Et=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.borderWidth=Fn},Ot=(Qt,Mn)=>{Qt.style.borderStyle=Mn},cn=Qt=>{var Mn;return(Mn=Qt.style.borderStyle)!==null&&Mn!==void 0?Mn:""},Cn=Qt=>a(Qt)&&Qt.nodeName==="FIGURE",Pn=Qt=>Qt.nodeName==="IMG",Sn=Qt=>Je.getAttrib(Qt,"alt").length===0&&Je.getAttrib(Qt,"role")==="presentation",vt=Qt=>Sn(Qt)?"":tt(Qt,"alt"),xt=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),st=(Qt,Mn)=>{var Fn;const dr=document.createElement("img");return Ge(dr,"style",Mn.style),(Me(dr)||Mn.hspace!=="")&&ln(dr,Mn.hspace),(Fe(dr)||Mn.vspace!=="")&&tn(dr,Mn.vspace),(je(dr)||Mn.border!=="")&&Et(dr,Mn.border),(cn(dr)||Mn.borderStyle!=="")&&Ot(dr,Mn.borderStyle),Qt((Fn=dr.getAttribute("style"))!==null&&Fn!==void 0?Fn:"")},bt=(Qt,Mn)=>{const Fn=document.createElement("img");if(_t(Qt,{...Mn,caption:!1},Fn),it(Fn,Mn.alt,Mn.isDecorative),Mn.caption){const dr=Je.create("figure",{class:"image"});return dr.appendChild(Fn),dr.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),dr.contentEditable="false",dr}else return Fn},Vt=(Qt,Mn)=>({src:tt(Mn,"src"),alt:vt(Mn),title:tt(Mn,"title"),width:Yt(Mn,"width"),height:Yt(Mn,"height"),class:tt(Mn,"class"),style:Qt(tt(Mn,"style")),caption:ot(Mn),hspace:Me(Mn),vspace:Fe(Mn),border:je(Mn),borderStyle:cn(Mn),isDecorative:Sn(Mn)}),Dt=(Qt,Mn,Fn,dr,xr)=>{Fn[dr]!==Mn[dr]&&xr(Qt,dr,String(Fn[dr]))},it=(Qt,Mn,Fn)=>{if(Fn){Je.setAttrib(Qt,"role","presentation");const dr=re.fromDom(Qt);Q(dr,"alt","")}else{if(w(Mn)){const dr=re.fromDom(Qt);j(dr,"alt")}else{const dr=re.fromDom(Qt);Q(dr,"alt",Mn)}Je.getAttrib(Qt,"role")==="presentation"&&Je.setAttrib(Qt,"role","")}},at=(Qt,Mn,Fn)=>{(Fn.alt!==Mn.alt||Fn.isDecorative!==Mn.isDecorative)&&it(Qt,Fn.alt,Fn.isDecorative)},Bt=(Qt,Mn)=>(Fn,dr,xr)=>{Qt(Fn,xr),Ft(Fn,Mn)},_t=(Qt,Mn,Fn)=>{const dr=Vt(Qt,Fn);Dt(Fn,dr,Mn,"caption",(xr,Oo,mi)=>St(xr)),Dt(Fn,dr,Mn,"src",Ge),Dt(Fn,dr,Mn,"title",Ge),Dt(Fn,dr,Mn,"width",zt("width",Qt)),Dt(Fn,dr,Mn,"height",zt("height",Qt)),Dt(Fn,dr,Mn,"class",Ge),Dt(Fn,dr,Mn,"style",Bt((xr,Oo)=>Ge(xr,"style",Oo),Qt)),Dt(Fn,dr,Mn,"hspace",Bt(ln,Qt)),Dt(Fn,dr,Mn,"vspace",Bt(tn,Qt)),Dt(Fn,dr,Mn,"border",Bt(Et,Qt)),Dt(Fn,dr,Mn,"borderStyle",Bt(Ot,Qt)),at(Fn,dr,Mn)},qt=(Qt,Mn)=>{const Fn=Qt.dom.styles.parse(Mn),dr=ke(Fn),xr=Qt.dom.styles.parse(Qt.dom.styles.serialize(dr));return Qt.dom.styles.serialize(xr)},en=Qt=>{const Mn=Qt.selection.getNode(),Fn=Qt.dom.getParent(Mn,"figure.image");return Fn?Qt.dom.select("img",Fn)[0]:Mn&&(Mn.nodeName!=="IMG"||Ze(Mn))?null:Mn},Jt=(Qt,Mn)=>{var Fn;const dr=Qt.dom,xr=T(Qt.schema.getTextBlockElements(),(mi,Di)=>!Qt.schema.isValidChild(Di,"figure")),Oo=dr.getParent(Mn.parentNode,mi=>A(xr,mi.nodeName),Qt.getBody());return Oo&&(Fn=dr.split(Oo,Mn))!==null&&Fn!==void 0?Fn:Mn},Zt=Qt=>{const Mn=en(Qt);return Mn?Vt(Fn=>qt(Qt,Fn),Mn):xt()},Nt=(Qt,Mn)=>{const Fn=bt(xr=>qt(Qt,xr),Mn);Qt.dom.setAttrib(Fn,"data-mce-id","__mcenew"),Qt.focus(),Qt.selection.setContent(Fn.outerHTML);const dr=Qt.dom.select('*[data-mce-id="__mcenew"]')[0];if(Qt.dom.setAttrib(dr,"data-mce-id",null),Cn(dr)){const xr=Jt(Qt,dr);Qt.selection.select(xr)}else Qt.selection.select(dr)},sn=(Qt,Mn)=>{Qt.dom.setAttrib(Mn,"src",Mn.getAttribute("src"))},rn=(Qt,Mn)=>{if(Mn){const Fn=Qt.dom.is(Mn.parentNode,"figure.image")?Mn.parentNode:Mn;Qt.dom.remove(Fn),Qt.focus(),Qt.nodeChanged(),Qt.dom.isEmpty(Qt.getBody())&&(Qt.setContent(""),Qt.selection.setCursorLocation())}},_n=(Qt,Mn)=>{const Fn=en(Qt);if(Fn)if(_t(dr=>qt(Qt,dr),Mn,Fn),sn(Qt,Fn),Cn(Fn.parentNode)){const dr=Fn.parentNode;Jt(Qt,dr),Qt.selection.select(Fn.parentNode)}else Qt.selection.select(Fn),We(Qt,Mn,Fn)},wn=(Qt,Mn)=>{const Fn=Mn.src;return{...Mn,src:Ye(Qt,Fn)?Fn:""}},An=(Qt,Mn)=>{const Fn=en(Qt);if(Fn){const xr={...Vt(mi=>qt(Qt,mi),Fn),...Mn},Oo=wn(Qt,xr);xr.src?_n(Qt,Oo):rn(Qt,Fn)}else Mn.src&&Nt(Qt,{...xt(),...Mn})},Un=(Qt=>(...Mn)=>{if(Mn.length===0)throw new Error("Can't merge zero objects");const Fn={};for(let dr=0;dri(Qt)&&i(Mn)?Un(Qt,Mn):Mn);var Zn=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),tr=tinymce.util.Tools.resolve("tinymce.util.Tools");const Br=Qt=>u(Qt.value)?Qt.value:"",$r=Qt=>u(Qt.text)?Qt.text:u(Qt.title)?Qt.title:"",vr=(Qt,Mn)=>{const Fn=[];return tr.each(Qt,dr=>{const xr=$r(dr);if(dr.menu!==void 0){const Oo=vr(dr.menu,Mn);Fn.push({text:xr,items:Oo})}else{const Oo=Mn(dr);Fn.push({text:xr,value:Oo})}}),Fn},qn=(Qt=Br)=>Mn=>Mn?_.from(Mn).map(Fn=>vr(Fn,Qt)):_.none(),gr=Qt=>qn(Br)(Qt),sr=Qt=>P(Qt,"items"),lr=(Qt,Mn)=>z(Qt,Fn=>sr(Fn)?lr(Fn.items,Mn):Fn.value===Mn?_.some(Fn):_.none()),Vr={sanitizer:qn,sanitize:gr,findEntry:(Qt,Mn)=>Qt.bind(Fn=>lr(Fn,Mn))},Jr={makeTab:Qt=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},Yr=Qt=>{const Mn=Vr.sanitizer(il=>Qt.convertURL(il.value||il.url||"","src")),Fn=new Promise(il=>{Re(Qt,nf=>{il(Mn(nf).map(nh=>D([[{text:"None",value:""}],nh])))})}),dr=Vr.sanitize(ye(Qt)),xr=ae(Qt),Oo=ce(Qt),mi=ze(Qt),Di=De(Qt),To=Zt(Qt),Ia=ve(Qt),Ds=_e(Qt),fs=se(Qt),zi=we(Qt),yl=Pe(Qt),Bs=Ie(Qt),yf=_.some(de(Qt)).filter(il=>u(il)&&il.length>0);return Fn.then(il=>({image:To,imageList:il,classList:dr,hasAdvTab:xr,hasUploadTab:Oo,hasUploadUrl:mi,hasUploadHandler:Di,hasDescription:Ia,hasImageTitle:Ds,hasDimensions:fs,hasImageCaption:zi,prependURL:yf,hasAccessibilityOptions:yl,automaticUploads:Bs}))},to=Qt=>{const Mn={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},Fn=Qt.imageList.map(Ds=>({name:"images",type:"listbox",label:"Image list",items:Ds})),dr={name:"alt",type:"input",label:"Alternative description",enabled:!(Qt.hasAccessibilityOptions&&Qt.image.isDecorative)},xr={name:"title",type:"input",label:"Image title"},Oo={name:"dimensions",type:"sizeinput"},mi={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},Di=Qt.classList.map(Ds=>({name:"classes",type:"listbox",label:"Class",items:Ds})),To={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},Ia=Ds=>Ds?{type:"grid",columns:2}:{type:"panel"};return D([[Mn],Fn.toArray(),Qt.hasAccessibilityOptions&&Qt.hasDescription?[mi]:[],Qt.hasDescription?[dr]:[],Qt.hasImageTitle?[xr]:[],Qt.hasDimensions?[Oo]:[],[{...Ia(Qt.classList.isSome()&&Qt.hasImageCaption),items:D([Di.toArray(),Qt.hasImageCaption?[To]:[]])}]])},Fo={makeTab:Qt=>({title:"General",name:"general",items:to(Qt)}),makeItems:to},$o={makeTab:Qt=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},Mo=Qt=>({prevImage:Vr.findEntry(Qt.imageList,Qt.image.src),prevAlt:Qt.image.alt,open:!0}),pi=Qt=>({src:{value:Qt.src,meta:{}},images:Qt.src,alt:Qt.alt,title:Qt.title,dimensions:{width:Qt.width,height:Qt.height},classes:Qt.class,caption:Qt.caption,style:Qt.style,vspace:Qt.vspace,border:Qt.border,hspace:Qt.hspace,borderstyle:Qt.borderStyle,fileinput:[],isDecorative:Qt.isDecorative}),Hn=(Qt,Mn)=>({src:Qt.src.value,alt:(Qt.alt===null||Qt.alt.length===0)&&Mn?null:Qt.alt,title:Qt.title,width:Qt.dimensions.width,height:Qt.dimensions.height,class:Qt.classes,style:Qt.style,caption:Qt.caption,hspace:Qt.hspace,vspace:Qt.vspace,border:Qt.border,borderStyle:Qt.borderstyle,isDecorative:Qt.isDecorative}),ar=(Qt,Mn)=>/^(?:[a-zA-Z]+:)?\/\//.test(Mn)?_.none():Qt.prependURL.bind(Fn=>Mn.substring(0,Fn.length)!==Fn?_.some(Fn+Mn):_.none()),Dr=(Qt,Mn)=>{const Fn=Mn.getData();ar(Qt,Fn.src.value).each(dr=>{Mn.setData({src:{value:dr,meta:Fn.src.meta}})})},Sr=(Qt,Mn,Fn)=>{Qt.hasDescription&&u(Fn.alt)&&(Mn.alt=Fn.alt),Qt.hasAccessibilityOptions&&(Mn.isDecorative=Fn.isDecorative||Mn.isDecorative||!1),Qt.hasImageTitle&&u(Fn.title)&&(Mn.title=Fn.title),Qt.hasDimensions&&(u(Fn.width)&&(Mn.dimensions.width=Fn.width),u(Fn.height)&&(Mn.dimensions.height=Fn.height)),u(Fn.class)&&Vr.findEntry(Qt.classList,Fn.class).each(dr=>{Mn.classes=dr.value}),Qt.hasImageCaption&&y(Fn.caption)&&(Mn.caption=Fn.caption),Qt.hasAdvTab&&(u(Fn.style)&&(Mn.style=Fn.style),u(Fn.vspace)&&(Mn.vspace=Fn.vspace),u(Fn.border)&&(Mn.border=Fn.border),u(Fn.hspace)&&(Mn.hspace=Fn.hspace),u(Fn.borderstyle)&&(Mn.borderstyle=Fn.borderstyle))},Zr=(Qt,Mn)=>{const Fn=Mn.getData(),dr=Fn.src.meta;if(dr!==void 0){const xr=Un({},Fn);Sr(Qt,xr,dr),Mn.setData(xr)}},go=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=xr.src.value,mi=xr.src.meta||{};!mi.width&&!mi.height&&Mn.hasDimensions&&(ee(Oo)?Qt.imageSize(Oo).then(Di=>{Fn.open&&dr.setData({dimensions:Di})}).catch(Di=>console.error(Di)):dr.setData({dimensions:{width:"",height:""}}))},oo=(Qt,Mn,Fn)=>{const dr=Fn.getData(),xr=Vr.findEntry(Qt.imageList,dr.src.value);Mn.prevImage=xr,Fn.setData({images:xr.map(Oo=>Oo.value).getOr("")})},io=(Qt,Mn,Fn,dr)=>{Dr(Mn,dr),Zr(Mn,dr),go(Qt,Mn,Fn,dr),oo(Mn,Fn,dr)},Do=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=Vr.findEntry(Mn.imageList,xr.images);Oo.each(mi=>{xr.alt===""||Fn.prevImage.map(To=>To.text===xr.alt).getOr(!1)?mi.value===""?dr.setData({src:mi,alt:Fn.prevAlt}):dr.setData({src:mi,alt:mi.text}):dr.setData({src:mi})}),Fn.prevImage=Oo,io(Qt,Mn,Fn,dr)},jn=(Qt,Mn,Fn,dr)=>{const xr=dr.getData();dr.block("Uploading image"),I(xr.fileinput).fold(()=>{dr.unblock()},Oo=>{const mi=URL.createObjectURL(Oo),Di=()=>{dr.unblock(),URL.revokeObjectURL(mi)},To=Ia=>{dr.setData({src:{value:Ia,meta:{}}}),dr.showTab("general"),io(Qt,Mn,Fn,dr),dr.focus("src")};Ue(Oo).then(Ia=>{const Ds=Qt.createBlobCache(Oo,mi,Ia);Mn.automaticUploads?Qt.uploadImage(Ds).then(fs=>{To(fs.url),Di()}).catch(fs=>{Di(),Qt.alertErr(fs)}):(Qt.addToBlobCache(Ds),To(Ds.blobUri()),dr.unblock())})})},Rr=(Qt,Mn,Fn)=>(dr,xr)=>{xr.name==="src"?io(Qt,Mn,Fn,dr):xr.name==="images"?Do(Qt,Mn,Fn,dr):xr.name==="alt"?Fn.prevAlt=dr.getData().alt:xr.name==="fileinput"?jn(Qt,Mn,Fn,dr):xr.name==="isDecorative"&&dr.setEnabled("alt",!dr.getData().isDecorative)},On=Qt=>()=>{Qt.open=!1},Yn=Qt=>Qt.hasAdvTab||Qt.hasUploadUrl||Qt.hasUploadHandler?{type:"tabpanel",tabs:D([[Fo.makeTab(Qt)],Qt.hasAdvTab?[Jr.makeTab(Qt)]:[],Qt.hasUploadTab&&(Qt.hasUploadUrl||Qt.hasUploadHandler)?[$o.makeTab(Qt)]:[]])}:{type:"panel",items:Fo.makeItems(Qt)},ir=(Qt,Mn,Fn)=>dr=>{const xr=Un(pi(Mn.image),dr.getData()),Oo={...xr,style:st(Fn.normalizeCss,Hn(xr,!1))};Qt.execCommand("mceUpdateImage",!1,Hn(Oo,Mn.hasAccessibilityOptions)),Qt.editorUpload.uploadImagesAuto(),dr.close()},kr=Qt=>Mn=>Ye(Qt,Mn)?Ve(Qt.documentBaseURI.toAbsolute(Mn)).then(Fn=>({width:String(Fn.width),height:String(Fn.height)})):Promise.resolve({width:"",height:""}),Er=Qt=>(Mn,Fn,dr)=>{var xr;return Qt.editorUpload.blobCache.create({blob:Mn,blobUri:Fn,name:(xr=Mn.name)===null||xr===void 0?void 0:xr.replace(/\.[^\.]+$/,""),filename:Mn.name,base64:dr.split(",")[1]})},Gt=Qt=>Mn=>{Qt.editorUpload.blobCache.add(Mn)},on=Qt=>Mn=>{Qt.windowManager.alert(Mn)},an=Qt=>Mn=>qt(Qt,Mn),Tn=Qt=>Mn=>Qt.dom.parseStyle(Mn),zn=Qt=>(Mn,Fn)=>Qt.dom.serializeStyle(Mn,Fn),Gn=Qt=>Mn=>Zn(Qt).upload([Mn],!1).then(Fn=>{var dr;return Fn.length===0?Promise.reject("Failed to upload image"):Fn[0].status===!1?Promise.reject((dr=Fn[0].error)===null||dr===void 0?void 0:dr.message):Fn[0]}),Lr=Qt=>{const Mn={imageSize:kr(Qt),addToBlobCache:Gt(Qt),createBlobCache:Er(Qt),alertErr:on(Qt),normalizeCss:an(Qt),parseStyle:Tn(Qt),serializeStyle:zn(Qt),uploadImage:Gn(Qt)};return{open:()=>{Yr(Qt).then(dr=>{const xr=Mo(dr);return{title:"Insert/Edit Image",size:"normal",body:Yn(dr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:pi(dr.image),onSubmit:ir(Qt,dr,Mn),onChange:Rr(Mn,dr,xr),onClose:On(xr)}}).then(Qt.windowManager.open)}}},Ur=Qt=>{Qt.addCommand("mceImage",Lr(Qt).open),Qt.addCommand("mceUpdateImage",(Mn,Fn)=>{Qt.undoManager.transact(()=>An(Qt,Fn))})},qr=Qt=>{const Mn=Qt.attr("class");return a(Mn)&&/\bimage\b/.test(Mn)},Cr=Qt=>Mn=>{let Fn=Mn.length;const dr=xr=>{xr.attr("contenteditable",Qt?"true":null)};for(;Fn--;){const xr=Mn[Fn];qr(xr)&&(xr.attr("contenteditable",Qt?"false":null),tr.each(xr.getAll("figcaption"),dr))}},wo=Qt=>{Qt.on("PreInit",()=>{Qt.parser.addNodeFilter("figure",Cr(!0)),Qt.serializer.addNodeFilter("figure",Cr(!1))})},Nr=Qt=>Mn=>{const Fn=()=>{Mn.setEnabled(Qt.selection.isEditable())};return Qt.on("NodeChange",Fn),Fn(),()=>{Qt.off("NodeChange",Fn)}},Eo=Qt=>{Qt.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Lr(Qt).open,onSetup:Mn=>{Mn.setActive(a(en(Qt)));const Fn=Qt.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",Mn.setActive).unbind,dr=Nr(Qt)(Mn);return()=>{Fn(),dr()}}}),Qt.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Lr(Qt).open,onSetup:Nr(Qt)}),Qt.ui.registry.addContextMenu("image",{update:Mn=>Qt.selection.isEditable()&&(Cn(Mn)||Pn(Mn)&&!Ze(Mn))?["image"]:[]})};var zo=()=>{t.add("image",Qt=>{pe(Qt),wo(Qt),Eo(Qt),Ur(Qt)})};zo()})();var U$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],j$e=function(t){return U$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Q$e=function(t,e,o){Object.keys(e).filter(j$e).forEach(function(f){var E=e[f];typeof E=="function"&&(f==="onInit"?E(t,o):o.on(f.substring(2),function(d){return E(d,o)}))})},H$e=function(t,e,o,f){var E=t.modelEvents?t.modelEvents:null,d=Array.isArray(E)?E.join(" "):E;ia(f,function(s,n){o&&typeof s=="string"&&s!==n&&s!==o.getContent({format:t.outputFormat})&&o.setContent(s)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},Z$e=function(t,e,o,f,E,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&H$e(e,o,f,E),Q$e(t,o.attrs,f)},W0e=0,VOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return W0e++,t+"_"+o+W0e+String(e)},q$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Y0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},W$e=function(t,e){return Y0e(t).concat(Y0e(e))},Y$e=function(t){return t==null},X0e=function(){return{listeners:[],scriptId:VOe("tiny-script"),scriptLoaded:!1}},X$e=function(){var t=X0e(),e=function(E,d,s,n){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=E,u.src=s;var b=function(){u.removeEventListener("load",b),n()};u.addEventListener("load",b),d.head&&d.head.appendChild(u)},o=function(E,d,s){t.scriptLoaded?s():(t.listeners.push(s),E.getElementById(t.scriptId)||e(t.scriptId,E,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=X0e()};return{load:o,reinitialize:f}},G$e=X$e(),K$e=function(){return typeof window<"u"?window:global},CT=function(){var t=K$e();return t&&t.tinymce?t.tinymce:null},J$e={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},p_=globalThis&&globalThis.__assign||function(){return p_=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(u))},xve({code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),init:E.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=u=>o.cellData.code=u),init:E.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const UOe=mp(rVe,[["render",oVe]]),iVe=36,G0e=1,aVe=2,VL=3,Sae=4,sVe=5,lVe=6,cVe=7,uVe=8,fVe=9,dVe=10,hVe=11,pVe=12,mVe=13,gVe=14,vVe=15,yVe=16,bVe=17,K0e=18,xVe=19,jOe=20,QOe=21,J0e=22,_Ve=23,wVe=24;function kle(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function OVe(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function MT(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function SVe(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function kVe(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function HOe(t,e){for(;!(t.next!=95&&!kle(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function TVe(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),MT(t,e,!1)}else HOe(t)}function e1e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function t1e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function n1e(t){for(;!(t.next<0||t.next==10);)t.advance()}function AT(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:ZOe(AVe,CVe)};function MVe(t,e,o,f){let E={};for(let d in Tle)E[d]=(t.hasOwnProperty(d)?t:Tle)[d];return e&&(E.words=ZOe(e,o||"",f)),E}function qOe(t){return new Y0(e=>{var o;let{next:f}=e;if(e.advance(),AT(f,kae)){for(;AT(e.next,kae);)e.advance();e.acceptToken(iVe)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)SVe(e),e.acceptToken(VL);else if(f==39||f==34&&t.doubleQuotedStrings)MT(e,f,t.backslashEscapes),e.acceptToken(VL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)n1e(e),e.acceptToken(G0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))n1e(e),e.acceptToken(G0e);else if(f==47&&e.next==42){e.advance();for(let E=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(E--,e.advance(),!E)break}else d==47&&e.next==42&&(E++,e.advance())}e.acceptToken(aVe)}else if((f==101||f==69)&&e.next==39)e.advance(),MT(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);else if(f==95&&t.charSetCasts)for(let E=0;;E++){if(e.next==39&&E>1){e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);break}if(!kle(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!AT(e.peek(1),kae)){let E=e.peek(1);e.advance(2),kVe(e,E),e.acceptToken(VL)}else if(f==40)e.acceptToken(cVe);else if(f==41)e.acceptToken(uVe);else if(f==123)e.acceptToken(fVe);else if(f==125)e.acceptToken(dVe);else if(f==91)e.acceptToken(hVe);else if(f==93)e.acceptToken(pVe);else if(f==59)e.acceptToken(mVe);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),e1e(e),e.acceptToken(J0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const E=e.next;e.advance(),t.treatBitsAsBytes?(MT(e,E,t.backslashEscapes),e.acceptToken(_Ve)):(e1e(e,E),e.acceptToken(J0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let E=e.next==39;for(e.advance();OVe(e.next);)e.advance();E&&e.next==39&&e.advance(),e.acceptToken(Sae)}else if(f==46&&e.next>=48&&e.next<=57)t1e(e,!0),e.acceptToken(Sae);else if(f==46)e.acceptToken(gVe);else if(f>=48&&f<=57)t1e(e,!1),e.acceptToken(Sae);else if(AT(f,t.operatorChars)){for(;AT(e.next,t.operatorChars);)e.advance();e.acceptToken(vVe)}else if(AT(f,t.specialVar))e.next==f&&e.advance(),TVe(e),e.acceptToken(bVe);else if(AT(f,t.identifierQuotes))MT(e,f,!1),e.acceptToken(xVe);else if(f==58||f==44)e.acceptToken(yVe);else if(kle(f)){let E=HOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?K0e:(o=t.words[E.toLowerCase()])!==null&&o!==void 0?o:K0e)}})}const WOe=qOe(Tle),EVe=k4.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,WOe],topRules:{Script:[0,25]},tokenPrec:0});function Cle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function tD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function AZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function PVe(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)AZ(f)&&o.push(tD(t,f));return o}return[tD(t,e)]}function r1e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=Cle(e);if(!AZ(f))return o;o.unshift(tD(t,f)),e=Cle(f)}}function RVe(t,e){let o=Gf(t).resolveInner(e,-1),f=IVe(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:r1e(t.doc,Cle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:r1e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const LVe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function IVe(t,e){let o;for(let E=e;!o;E=E.parent){if(!E)return null;E.name=="Statement"&&(o=E)}let f=null;for(let E=o.firstChild,d=!1,s=null;E;E=E.nextSibling){let n=E.name=="Keyword"?t.sliceString(E.from,E.to).toLowerCase():null,u=null;if(!d)d=n=="from";else if(n=="as"&&s&&AZ(E.nextSibling))u=tD(t,E.nextSibling);else{if(n&&LVe.has(n))break;s&&AZ(E)&&(u=tD(t,E))}u&&(f||(f=Object.create(null)),f[u]=PVe(t,s)),s=/Identifier$/.test(E.name)?E:null}return f}function DVe(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const BVe=/^\w*$/,zVe=/^[`'"]?\w*[`'"]?$/;class ofe{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),E=f[e];return E||(e&&this.list.push(YOe(e,"type",o)),f[e]=new ofe)}addCompletions(e){for(let o of e){let f=this.list.findIndex(E=>E.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function YOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function NVe(t,e,o,f,E,d){var s;let n=new ofe,u=((s=d==null?void 0:d.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"',b=n.child(E||"",u);for(let i in t){let S=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=S.length==1?b:n;for(let y of S)w=w.child(y.replace(/\\\./g,"."),u);for(let y of t[i])y&&w.list.push(typeof y=="string"?YOe(y,"property",u):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,u).list),i=>{let{parents:S,from:w,quoted:y,empty:m,aliases:a}=RVe(i.state,i.pos);if(m&&!i.explicit)return null;a&&S.length==1&&(S=a[S[0]]||S);let c=n;for(let v of S){for(;!c.children||!c.children[v];)if(c==n)c=b;else if(c==b&&f)c=c.child(f,u);else return null;c=c.child(v,u)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,p=c.list;return c==n&&a&&(p=p.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:DVe(y,p),validFor:y?zVe:BVe}}}function FVe(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==QOe?"type":t[f]==jOe?"keyword":"variable",boost:-1}));return Xce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],rq(o))}let $Ve=EVe.configure({props:[nC.add({Statement:lI()}),E4.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),M4({Keyword:hr.keyword,Type:hr.typeName,Builtin:hr.standard(hr.name),Bits:hr.number,Bytes:hr.string,Bool:hr.bool,Null:hr.null,Number:hr.number,String:hr.string,Identifier:hr.name,QuotedIdentifier:hr.special(hr.string),SpecialVar:hr.special(hr.name),LineComment:hr.lineComment,BlockComment:hr.blockComment,Operator:hr.operator,"Semi Punctuation":hr.punctuation,"( )":hr.paren,"{ }":hr.brace,"[ ]":hr.squareBracket})]});class ife{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=MVe(e,e.keywords,e.types,e.builtin),f=O4.define({name:"sql",parser:$Ve.configure({tokenizers:[{from:WOe,to:qOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new ife(o,f,e)}}function VVe(t,e=!1){return FVe(t.dialect.words,e)}function UVe(t,e=!1){return t.language.data.of({autocomplete:VVe(t,e)})}function jVe(t){return t.schema?NVe(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||afe):()=>null}function QVe(t){return t.schema?(t.dialect||afe).language.data.of({autocomplete:jVe(t)}):[]}function o1e(t={}){let e=t.dialect||afe;return new YT(e.language,[QVe(t),UVe(e,!!t.upperCaseKeywords)])}const afe=ife.define({}),HVe={components:{cell:Nq,codemirror:aq,"v-data-table":Iq},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[ny.highest(e),o1e(),pM,VI({override:[]})]:[kc.readOnly.of(!0),ny.highest(e),o1e(),pM,VI({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const ZVe={key:0,style:{display:"flex",width:"100%"}},qVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},WVe={class:"text-ellipsis app-static-name"},YVe={key:2},XVe={class:"text-caption text-disabled text-right"},GVe={class:"text-p"};function KVe(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("cell");return Uo(),da(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=u=>d.expandCodeUpdate(u)),onHideCode:e[6]||(e[6]=u=>d.hideCode(u)),onUpdateReactivity:e[7]||(e[7]=u=>d.updateReactivity(u)),onUpdateShowTable:e[8]||(e[8]=u=>d.updateShowTable(u)),onRenameCell:e[9]||(e[9]=u=>d.renameCell(u)),onAddCell:e[10]||(e[10]=u=>d.createCell(u))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",ZVe,[o.cellData.hideCode?(Uo(),Ya("h4",qVe,Dl(o.cellData.cellName),1)):(Uo(),da(ywe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=u=>E.expanded=u)},{default:ao(()=>[$t(vwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=u=>E.expanded=u),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(bZ,{class:"text-bluegrey-darken-1"},{default:ao(()=>[Na("h4",WVe,Dl(o.cellData.cellName),1)]),_:1}),$t(yZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(Ep,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[3]||(e[3]=u=>o.cellData.variable_name=u),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[4]||(e[4]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",YVe,[Na("p",XVe,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Uo(!0),Ya(Ea,{key:0},ty(o.cellData.components,u=>(Uo(),da(yM,{key:u.id},{default:ao(()=>[(Uo(),da(rM(u.component),qi(u,{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},{[GL(u.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):za("",!0),Na("div",GVe,Dl(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const XOe=mp(HVe,[["render",KVe],["__scopeId","data-v-90a2677a"]]),JVe={components:{codemirror:aq},data:()=>({updatingDependencies:!1,ztAliases:Mp}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[kc.readOnly.of(!0),FOe(),pM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},eUe=Na("span",{class:"text-h5"},"Add Dependencies",-1),tUe=Na("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),nUe={class:"d-flex justify-center"};function rUe(t,e,o,f,E,d){const s=Nd("codemirror");return Uo(),da(dC,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:ao(({props:n})=>[$t(Ja,qi({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[eUe]),_:1}),$t(E_e,null,{default:ao(()=>[Ua(" Versions must adhere to "),tUe,Ua(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(o.dependencies.dependencies,n=>(Uo(),da(Xf,null,{default:ao(()=>[$t(Dq,null,{default:ao(()=>[$t(HT,null,{default:ao(()=>[$t(Ep,{modelValue:n.package,"onUpdate:modelValue":u=>n.package=u,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(HT,null,{default:ao(()=>[$t(Ep,{modelValue:n.version,"onUpdate:modelValue":u=>n.version=u,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(HT,{cols:"1"},{default:ao(()=>[$t(Ja,{icon:"",color:"primary"},{default:ao(()=>[$t(jl,{color:"black",onClick:u=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:ao(()=>[Ua("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),$t(Xf,{class:"d-flex justify-center align-center"},{default:ao(()=>[$t(Ja,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var u;return(u=o.dependencies.dependencies)==null?void 0:u.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Uo(),da(Xf,{key:0},{default:ao(()=>[$t(s,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):za("",!0)]),_:1}),$t(kD,null,{default:ao(()=>[o.dependencyOutput.isLoading?za("",!0):(Uo(),da(Ja,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),Na("div",nUe,[o.dependencyOutput.isLoading?(Uo(),da(lC,{key:0,indeterminate:"",color:"primary"})):za("",!0)]),$t(BM),$t(Ja,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const GOe=mp(JVe,[["render",rUe]]),i1e=em({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=CD();return(f,E)=>(Uo(),da(BO,null,{activator:ao(({props:d})=>[$t(Ja,qi({icon:`ztIcon:${Va(Mp).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,{disabled:!Va(o).editorAvailable,onClick:E[0]||(E[0]=d=>e("editComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).edit}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Edit")]),_:1})]),_:1},8,["disabled"]),$t(Xf,{"base-color":"error",onClick:E[1]||(E[1]=d=>e("deleteComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),oUe={class:"d-flex justify-end"},Tae=em({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=qo(null),f=qo(null);return pg(()=>{var E,d;(E=f.value)==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(E,d)=>(Uo(),Ya("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[$t(TD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=s=>e("update:modelValue",s)),variant:"outlined"},null,8,["model-value"]),Na("div",oUe,[$t(Ja,{variant:"text",onClick:d[1]||(d[1]=s=>e("cancel"))},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(Ja,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=s=>e("submit"))},{default:ao(()=>[Ua("Submit")]),_:1},8,["loading","disabled"])])],512))}});var og=[];for(var Cae=0;Cae<256;++Cae)og.push((Cae+256).toString(16).slice(1));function iUe(t,e=0){return(og[t[e+0]]+og[t[e+1]]+og[t[e+2]]+og[t[e+3]]+"-"+og[t[e+4]]+og[t[e+5]]+"-"+og[t[e+6]]+og[t[e+7]]+"-"+og[t[e+8]]+og[t[e+9]]+"-"+og[t[e+10]]+og[t[e+11]]+og[t[e+12]]+og[t[e+13]]+og[t[e+14]]+og[t[e+15]]).toLowerCase()}var eH,aUe=new Uint8Array(16);function sUe(){if(!eH&&(eH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!eH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eH(aUe)}var lUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const a1e={randomUUID:lUe};function KOe(t,e,o){if(a1e.randomUUID&&!e&&!t)return a1e.randomUUID();t=t||{};var f=t.random||(t.rng||sUe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var E=0;E<16;++E)e[o+E]=f[E];return e}return iUe(f)}const cUe={class:"messages"},uUe={class:"message mb-4"},fUe={class:"d-flex justify-space-between align-start"},dUe={key:1,class:"message__content"},hUe={class:"d-flex align-center"},pUe={class:"d-flex align-center"},mUe={class:"message__timestamp"},gUe={class:"message mb-4 d-flex"},vUe={class:"ml-6 flex-1-1"},yUe={class:"d-flex justify-space-between align-start"},bUe={key:1,class:"message__content"},xUe={class:"d-flex align-center"},_Ue={class:"d-flex align-center"},wUe={class:"message__timestamp"},OUe={key:0,class:"text-box"},SUe=em({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=CD(),f=Gi(""),E=Gi(!1),d=Gi(!1),s=Gi(void 0),n=Gi(""),u=Gi(!1);function b(a){o.editorAvailable=!1,s.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,s.value=void 0}async function S(a,c){s.value&&(u.value=!0,await o.editComment(s.value,a,n.value,c),u.value=!1,s.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,c,h){await o.deleteComment(a,c,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},c=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:KOe(),cell:e.comment.cell,userName:"",date:c,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",E.value=!1,o.editorAvailable=!0}async function m(a,c){await o.resolveComment(a,c)}return(a,c)=>(Uo(),Ya("div",cUe,[Na("div",uUe,[Na("div",fUe,[Va(s)===t.comment.id?(Uo(),da(Tae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[0]||(c[0]=h=>ku(n)?n.value=h:null),isSaving:Va(u),onCancel:i,onSubmit:c[1]||(c[1]=h=>S(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",dUe,Dl(t.comment.comment),1)),Na("div",hUe,[!t.comment.resolved&&!Va(s)?(Uo(),da(Ja,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:c[2]||(c[2]=()=>m(t.comment.id,t.comment.cell.cellId??""))})):za("",!0),Va(s)?za("",!0):(Uo(),da(i1e,{key:1,onEditComment:c[3]||(c[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:c[4]||(c[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),Na("div",pUe,[Na("p",mUe,Dl(t.comment.date),1)])]),(Uo(!0),Ya(Ea,null,ty(t.comment.replies,h=>(Uo(),Ya("div",gUe,[$t(vM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),Na("div",vUe,[Na("div",yUe,[Va(s)===h.id?(Uo(),da(Tae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[5]||(c[5]=p=>ku(n)?n.value=p:null),isSaving:Va(u),onCancel:i,onSubmit:c[6]||(c[6]=()=>S(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",bUe,Dl(h.comment),1)),Na("div",xUe,[Na("div",null,[Va(s)?za("",!0):(Uo(),da(i1e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),Na("div",_Ue,[Na("p",wUe,Dl(h.date),1)])])]))),256)),Va(E)?(Uo(),Ya("div",OUe,[t.comment.resolved?za("",!0):(Uo(),da(Tae,{key:0,modelValue:Va(f),"onUpdate:modelValue":c[7]||(c[7]=h=>ku(f)?f.value=h:null),"is-saving":Va(d),onCancel:c[8]||(c[8]=()=>{Va(o).editorAvailable=!0,E.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"]))])):za("",!0),!Va(E)&&!t.comment.resolved?(Uo(),da(Ja,{key:1,variant:"text",slim:"",disabled:!Va(o).editorAvailable,onClick:c[9]||(c[9]=()=>{Va(o).editorAvailable=!1,E.value=!0})},{default:ao(()=>[Ua("Reply")]),_:1},8,["disabled"])):za("",!0)]))}});const kUe=mp(SUe,[["__scopeId","data-v-018eae28"]]),JOe=t=>(Yle("data-v-3ad3a67b"),t=t(),Xle(),t),TUe={key:0,class:"d-flex justify-space-between align-center pa-4"},CUe={class:"d-flex align-center"},AUe={class:"justify-right"},MUe={class:"content ma-4"},EUe={class:"d-flex justify-space-between align-center"},PUe={class:"mt-6 flex-1-1"},RUe={key:0,class:"empty-state"},LUe=JOe(()=>Na("p",null,"No comments yet",-1)),IUe=JOe(()=>Na("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),DUe={key:1,class:"comments-wrapper"},BUe={class:"d-flex justify-end"},zUe=em({__name:"Comments",setup(t){const e=CD(),{addComment:o,closeComments:f}=e,{selectedCell:E}=que(e),d=qo(null),s=qo(null),n=nr(()=>{var c;return(c=E.value)==null?void 0:c.cellType}),u=nr(()=>{var c;switch((c=E.value)==null?void 0:c.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Gi(!1),i=Gi(!1),S=Gi(""),w=Gi(!1),y=nr(()=>e.displayedComments.filter(c=>b.value?c.resolved:!c.resolved));ia(E,()=>{b.value=!1,i.value=!1,S.value="",w.value=!1});function m(){i.value=!i.value,e.editorAvailable=!1,Vc(()=>{var c,h;(c=d.value)==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const c={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",c).format(new Date),p={id:KOe(),cell:e.selectedCell,userName:"",date:h,comment:S.value,replies:[],resolved:!1};await o(p),w.value=!1,S.value="",i.value=!1,e.editorAvailable=!0}return(c,h)=>(Uo(),da(ub,{class:"card"},{default:ao(()=>[Va(E)?(Uo(),Ya("div",TUe,[Na("div",CUe,[$t(jl,{icon:`ztIcon:${Va(Mp)[Va(n)??"code"]}`,color:Va(u),class:"mr-2"},null,8,["icon","color"]),Na("p",{class:"mb-0 font-weight-bold",style:oD({color:Va(u)})},Dl(Va(E).cellName),5)]),Na("div",AUe,[Va(b)?za("",!0):(Uo(),da(Ja,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!Va(e).editorAvailable,onClick:m},null,8,["disabled"])),$t(Ja,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=p=>Va(f)())})])])):za("",!0),Na("div",MUe,[Na("div",EUe,[$t(N2e,{modelValue:Va(b),"onUpdate:modelValue":h[3]||(h[3]=p=>ku(b)?b.value=p:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:ao(()=>[$t(Ja,{value:!1,class:"mr-4",disabled:!Va(b),onClick:h[1]||(h[1]=p=>Va(e).editorAvailable=!0)},{default:ao(()=>[Ua("Open")]),_:1},8,["disabled"]),$t(Ja,{value:!0,disabled:Va(b),class:"mr-4",onClick:h[2]||(h[2]=p=>i.value=!1)},{default:ao(()=>[Ua("Resolved")]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),Na("div",PUe,[!Va(e).displayedComments.length&&!Va(i)?(Uo(),Ya("div",RUe,[$t(jl,{icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"]),LUe,IUe])):(Uo(),Ya("div",DUe,[(Uo(!0),Ya(Ea,null,ty(Va(y),p=>(Uo(),da(kUe,{comment:p},null,8,["comment"]))),256)),Va(i)?(Uo(),Ya("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:s},[$t(TD,{variant:"outlined",modelValue:Va(S),"onUpdate:modelValue":h[4]||(h[4]=p=>ku(S)?S.value=p:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),Na("div",BUe,[$t(Ja,{variant:"text",onClick:h[5]||(h[5]=()=>{Va(e).editorAvailable=!0,i.value=!1})},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(Ja,{color:"primary",class:"ml-2",disabled:!Va(S)||Va(w),loading:Va(w),onClick:h[6]||(h[6]=p=>a())},{default:ao(()=>[Ua("Submit")]),_:1},8,["disabled","loading"])])],512)):za("",!0)]))])])]),_:1}))}});const NUe=mp(zUe,[["__scopeId","data-v-3ad3a67b"]]),FUe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Zue,CodeComponent:Awe,MarkdownComponent:$Oe,EditorComponent:UOe,SQLComponent:XOe,PackageComponent:GOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return eC().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function $Ue(t,e,o,f,E,d){const s=Nd("add-cell");return Uo(),Ya(Ea,null,[$t(yM,{style:{"margin-top":"12px"}},{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):za("",!0)]),_:1}),(Uo(!0),Ya(Ea,null,ty(o.notebook.cells,n=>(Uo(),da(yM,{class:Gv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:ao(()=>[n.cellType==="code"?(Uo(),da(rM(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],lintResults:o.lintResults[n.id]||[],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","lintResults","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Uo(),da(rM(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const VUe=mp(FUe,[["render",$Ue]]),UUe=em({name:"SignInDialogComponent",setup(){const t=qo(!1),e=qo(!1),o=qo(!1),f=qo(null),E=async()=>{try{const S=await ou.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(S){console.error("Error during starting the Node server:",S)}},d=async()=>{try{const S=await ou.post("copilot/check_status",{});b(S.data)}catch(S){console.error("Error during initial status check:",S)}},s=async()=>{try{const S=await ou.post("copilot/sign_in_initiate",{});b(S.data)}catch(S){console.error("Error during sign in initiation:",S)}},n=async()=>{try{const S=await ou.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(S.data)}catch(S){console.error("Error during sign in confirmation:",S)}},u=async()=>{try{await ou.post("copilot/sign_out",{}),o.value=!1,f.value=null,Q0.copilot_active=!1}catch(S){console.error("Error during sign out:",S)}},b=S=>{f.value=S,S.status==="OK"||S.status==="AlreadySignedIn"?(o.value=!0,Q0.copilot_active=!0):S.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:s,confirmSignIn:n,signOut:u,startServerAndCheckStatus:async()=>{try{await E(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(S){console.error("Error during starting the server or checking status:",S)}},ztAliases:Mp}}}),jUe=Na("span",{class:"text-h4"},"GitHub Copilot ",-1),QUe={key:1},HUe={key:0},ZUe=Na("p",null,"Please go to the following URL and enter the code to sign in:",-1),qUe=Na("strong",null,"URL:",-1),WUe=["href"],YUe=Na("strong",null,"Code:",-1),XUe={key:1},GUe={key:2};function KUe(t,e,o,f,E,d){return Uo(),da(dC,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialog=s),"max-width":"400px"},{activator:ao(({props:s})=>[$t(Ja,qi({color:"bluegrey-darken-4"},s,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[jUe]),_:1}),$t(hC,null,{default:ao(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Uo(),Ya("div",QUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Uo(),Ya("div",HUe,[ZUe,Na("p",null,[qUe,Na("a",{href:t.signInData.verificationUri,target:"_blank"},Dl(t.signInData.verificationUri),9,WUe)]),Na("p",null,[YUe,Ua(" "+Dl(t.signInData.userCode),1)]),$t(Ja,{color:"primary",onClick:t.confirmSignIn},{default:ao(()=>[Ua("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Uo(),Ya("div",XUe,[Na("p",null,"Status: "+Dl(t.signInData.status),1),Na("p",null,"User: "+Dl(t.signInData.user),1)])):(Uo(),Ya("div",GUe,[$t(Ja,{color:"primary",onClick:t.signInInitiate},{default:ao(()=>[Ua("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Uo(),da(Ja,{key:2,color:"primary",onClick:t.signOut},{default:ao(()=>[Ua("Sign Out")]),_:1},8,["onClick"])):za("",!0):(Uo(),da(Ja,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:ao(()=>[Ua("Start Server ")]),_:1},8,["onClick"]))]),_:1}),$t(Ja,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=s=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const JUe=mp(UUe,[["render",KUe]]),eje=Na("span",{class:"text-h5"},"Publish Notebook",-1),tje=Na("span",null,[Ua("Need an API Key? Create an account "),Na("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),nje=Na("br",null,null,-1),rje=Na("br",null,null,-1),oje={class:"d-flex justify-center"},ije=em({__name:"ShareComponent",props:{userName:{type:String,required:!0},projectName:{type:String,required:!0},teamName:{type:String,required:!0}},setup(t){const e=t,o=qo(!1),f=qo({userName:"",projectName:"",apiKey:"",teamName:"",computeProfile:"X-Small (1 CPU, 2GB RAM)"}),E=qo(!1),d={required:a=>!!a||"Required."},s=qo(["X-Small (1 CPU, 2GB RAM)","Small (1 CPU, 4GB RAM)","Medium (1.5 CPU, 8GB RAM)","Large (2 CPU, 16GB RAM)","X-Large (4 CPU, 32GB RAM)"]),n=qo(""),u=qo(""),b=qo(""),i=qo(!1),S=qo(!1),w=async()=>{var a,c,h,p,v;if(E.value){if(u.value="",b.value="",n.value="",S.value=!0,i.value){try{await ou.post("api/confirm_share",f.value),n.value="Project published successfully"}catch(_){_ instanceof Qde?u.value=((c=(a=_.response)==null?void 0:a.data)==null?void 0:c.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}i.value=!1}else try{const _=await ou.post("api/share_notebook",f.value);(h=_.data)!=null&&h.warning?(b.value=_.data.warning,i.value=!0):(n.value="Project published successfully",u.value="",b.value="")}catch(_){_ instanceof Qde?u.value=((v=(p=_.response)==null?void 0:p.data)==null?void 0:v.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}S.value=!1}};function y(){e.teamName!==""?f.value.teamName=e.teamName:f.value.userName=e.userName,f.value.projectName=e.projectName}function m(){u.value="",n.value="",b.value="",i.value=!1,S.value=!1}return(a,c)=>(Uo(),da(dC,{modelValue:o.value,"onUpdate:modelValue":c[7]||(c[7]=h=>o.value=h),"max-width":"600px",onAfterEnter:c[8]||(c[8]=h=>y()),onAfterLeave:c[9]||(c[9]=h=>m())},{activator:ao(({props:h})=>[$t(Ja,qi(h,{"prepend-icon":`ztIcon:${Va(Mp).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:ao(()=>[Ua(" Publish ")]),_:2},1040,["prepend-icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[eje]),_:1}),n.value?(Uo(),da(tM,{key:0,type:"success",class:"mb-4"},{default:ao(()=>[Ua(Dl(n.value),1)]),_:1})):za("",!0),u.value?(Uo(),da(tM,{key:1,type:"error",class:"mb-4"},{default:ao(()=>[Ua(Dl(u.value),1)]),_:1})):za("",!0),b.value?(Uo(),da(tM,{key:2,type:"warning",class:"mb-4"},{default:ao(()=>[Ua(Dl(b.value),1)]),_:1})):za("",!0),$t(hC,null,{default:ao(()=>[$t(CBe,{ref:"form",modelValue:E.value,"onUpdate:modelValue":c[6]||(c[6]=h=>E.value=h),onSubmit:LH(w,["prevent"])},{default:ao(()=>[$t(Ep,{modelValue:f.value.userName,"onUpdate:modelValue":c[0]||(c[0]=h=>f.value.userName=h),label:"User Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=h=>f.value.projectName=h),label:"Project Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=h=>f.value.apiKey=h),label:"API Key",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=h=>f.value.teamName=h),label:"Team Name (Optional)"},null,8,["modelValue"]),$t(Eq,{modelValue:f.value.computeProfile,"onUpdate:modelValue":c[4]||(c[4]=h=>f.value.computeProfile=h),items:s.value,label:"Compute Profile"},null,8,["modelValue","items"]),tje,nje,rje,$t(Dq,{justify:"space-between"},{default:ao(()=>[$t(HT,{cols:"auto"},{default:ao(()=>[S.value?za("",!0):(Uo(),da(Ja,{key:0,type:"submit",color:"primary"},{default:ao(()=>[Ua(Dl(i.value?"Confirm":"Publish"),1)]),_:1})),Na("div",oje,[S.value?(Uo(),da(lC,{key:0,indeterminate:"",color:"primary"})):za("",!0)])]),_:1}),$t(HT,{cols:"auto"},{default:ao(()=>[$t(Ja,{onClick:c[5]||(c[5]=h=>o.value=!1),color:"error"},{default:ao(()=>[Ua("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class s1e{constructor(e){pu(this,"timerId",null);pu(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const aje={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,files:[],fileNames:[],isUploading:!1,ztAliases:Mp,errorMessage:""}),methods:{openDialog(){this.uploadingFile=!0},closeDialog(){this.isUploading||(this.uploadingFile=!1),this.cleanUp()},onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;if(e&&e.length>0)for(let f=0;f0)for(let o=0;o(Yle("data-v-4e4c74a2"),t=t(),Xle(),t),sje=e3e(()=>Na("div",{class:"mb-1",style:{"font-size":"14px"}},"or",-1)),lje={key:1,class:"my-4"},cje=e3e(()=>Na("br",null,null,-1)),uje={key:0};function fje(t,e,o,f,E,d){return Uo(),da(dC,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[1]||(e[1]=s=>t.uploadingFile=s),"max-width":"444",class:"text-center mb-6",persistent:"",onDrop:d.onDrop,onDragover:e[2]||(e[2]=LH(()=>{},["prevent"]))},{activator:ao(({props:s})=>[$t(Ja,qi(s,{icon:"mdi-upload",color:"bluegrey-darken-4",class:"mb-2",onClick:d.openDialog}),null,16,["onClick"])]),default:ao(()=>[t.errorMessage?(Uo(),da(tM,{key:0,color:"error",text:t.errorMessage},null,8,["text"])):za("",!0),$t(ub,null,{default:ao(()=>[$t(I4,{class:"pb-0",style:{"font-size":"18px"}},{default:ao(()=>[Ua("Drag files to upload "),sje]),_:1}),$t(hC,null,{default:ao(()=>[t.isUploading?za("",!0):(Uo(),da(Ja,{key:0,icon:"",onClick:d.closeDialog,class:"close-button",variant:"plain",style:{width:"24px",height:"24px"}},{default:ao(()=>[$t(jl,{size:"18"},{default:ao(()=>[Ua("mdi-close")]),_:1})]),_:1},8,["onClick"])),Na("input",{class:"d-none",type:"file",ref:"fileInput",multiple:"",onChange:e[0]||(e[0]=(...s)=>d.handleFileChange&&d.handleFileChange(...s))},null,544),$t(Ja,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:ao(()=>[Ua(" Browse files ")]),_:1},8,["onClick"]),t.fileNames.length>0?(Uo(),Ya("div",lje,[(Uo(!0),Ya(Ea,null,ty(t.fileNames,s=>(Uo(),Ya("span",null,[Ua(Dl(s)+" ",1),cje]))),256))])):za("",!0)]),_:1}),$t(Ja,{onClick:d.submitFile,color:"primary",class:"mt-4",disabled:t.isUploading},{default:ao(()=>[t.isUploading?za("",!0):(Uo(),Ya("span",uje,"Submit")),t.isUploading?(Uo(),da(lC,{key:1,indeterminate:"",color:"primary",size:"24"})):za("",!0)]),_:1},8,["onClick","disabled"])]),_:1})]),_:1},8,["modelValue","onDrop"])}const dje=mp(aje,[["render",fje],["__scopeId","data-v-4e4c74a2"]]),hje=em({name:"FileFolderCreator",props:{currentPath:{type:String,required:!0}},emits:["item-created"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo("folder"),d=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],s=qo(""),n=qo(!1),u=qo(""),b=nr(()=>f.value.trim()!==""&&s.value===""),i=()=>{f.value.trim()===""?s.value="Name cannot be empty":/^[a-zA-Z0-9_\-. ]+$/.test(f.value)?s.value="":s.value="Name contains invalid characters"},S=()=>{o.value=!0},w=()=>{o.value=!1,f.value="",E.value="folder",s.value=""};return{createDialogVisible:o,newItemName:f,newItemType:E,itemTypes:d,nameError:s,showError:n,errorMessage:u,isValid:b,openCreateDialog:S,closeDialog:w,createNewItem:async()=>{if(b.value)try{const m=await ou.post("api/create_item",{path:t.currentPath,name:f.value.trim(),type:E.value});m.data.success?(e("item-created"),w()):(u.value=`Failed to create ${E.value}: ${m.data.message}`,n.value=!0)}catch(m){u.value=`Error creating ${E.value}: ${m}`,n.value=!0}},validateName:i}}});function pje(t,e,o,f,E,d){return Uo(),Ya(Ea,null,[$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-plus",onClick:t.openCreateDialog},null,8,["onClick"]),$t(dC,{modelValue:t.createDialogVisible,"onUpdate:modelValue":e[2]||(e[2]=s=>t.createDialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Create New Folder or File")]),_:1}),$t(hC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newItemName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newItemName=s),label:"Name","error-messages":t.nameError,onInput:t.validateName},null,8,["modelValue","error-messages","onInput"]),$t(DM,{modelValue:t.newItemType,"onUpdate:modelValue":e[1]||(e[1]=s=>t.newItemType=s),items:t.itemTypes,"item-title":"text","item-value":"value",label:"Type"},null,8,["modelValue","items"])]),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"primary",onClick:t.createNewItem,disabled:!t.isValid},{default:ao(()=>[Ua("Create")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[4]||(e[4]=s=>t.showError=s),color:"error",timeout:3e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[3]||(e[3]=s=>t.showError=!1)},{default:ao(()=>[Ua("Close")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])],64)}const mje=mp(hje,[["render",pje]]),gje=em({name:"RenameDialog",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemRenamed"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo(null),d=qo(""),s=qo(!1),n=S=>{t.isProtectedFile(S.title)||(E.value=S,f.value=S.title,o.value=!0)},u=()=>{o.value=!1,f.value="",E.value=null},b=S=>{d.value=S,s.value=!0};return{dialogVisible:o,newName:f,openDialog:n,closeDialog:u,renameItem:async()=>{if(!f.value.trim()){b("New name cannot be empty.");return}try{const S=await ou.post("api/rename_item",{path:t.currentPath,oldName:E.value.title,newName:f.value});S.data.success?(e("itemRenamed"),u()):b(S.data.message||"Failed to rename item. Please try again.")}catch(S){b("Error connecting to the server. Please try again."),console.error("Error renaming item:",S)}},errorMessage:d,showError:s}}});function vje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(dC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialogVisible=s),"max-width":"300px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Rename Item")]),_:1}),$t(hC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newName=s),label:"New Name",rules:[s=>!!s||"Name is required"],required:"",onKeyup:mce(t.renameItem,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",variant:"text",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"blue-darken-1",variant:"text",onClick:t.renameItem,disabled:!t.newName},{default:ao(()=>[Ua("Rename")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[3]||(e[3]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[2]||(e[2]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const yje=mp(gje,[["render",vje]]),bje=em({name:"DeleteItem",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemDeleted"],setup(t,{emit:e}){const o=qo(!1),f=qo(null),E=qo(""),d=qo(!1),s=i=>{t.isProtectedFile(i.title)||(f.value=i,o.value=!0)},n=()=>{o.value=!1,f.value=null},u=i=>{E.value=i,d.value=!0};return{dialogVisible:o,itemToDelete:f,openDialog:s,closeDialog:n,deleteItem:async()=>{try{const i=await ou.post("api/delete_item",{path:t.currentPath,name:f.value.title});i.data.success?(e("itemDeleted"),n()):u(`Failed to delete item: ${i.data.message}`)}catch(i){u("Error connecting to the server. Please try again."),console.error("Error deleting item:",i)}},errorMessage:E,showError:d}}});function xje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(dC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[0]||(e[0]=s=>t.dialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Confirm Deletion")]),_:1}),$t(hC,null,{default:ao(()=>{var s;return[Ua(' Are you sure you want to delete "'+Dl((s=t.itemToDelete)==null?void 0:s.title)+'"? ',1)]}),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"error",onClick:t.deleteItem},{default:ao(()=>[Ua("Delete")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[1]||(e[1]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const _je=mp(bje,[["render",xje]]),wje=em({name:"SidebarComponent",components:{FileUploader:dje,FileFolderCreator:mje,RenameDialog:yje,DeleteDialog:_je},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=qo(t.drawer),f=qo(t.items||[]),E=qo("."),d=qo([]),s=qo(""),n=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],u=qo(""),b=qo(!1),i=qo(["requirements.txt","notebook.ztnb","zt_db.db","zt_db.db.wal"]),S=O=>i.value.includes(O),w=qo(null),y=qo(null),m=O=>{var C;(C=w.value)==null||C.openDialog(O)},a=O=>{var C;(C=y.value)==null||C.openDialog(O)};ia(()=>t.drawer,O=>{o.value=O}),ia(o,O=>{e("update:drawer",O),O&&v()});const c=async O=>{try{const C=await ou.get("api/get_children",{params:{path:O}});f.value=C.data.files,e("update:items",C.data.files)}catch(C){console.error("Failed to load files:",C)}};pg(()=>{c(E.value)});const h=O=>{O.file==="folder"&&(d.value.push(E.value),E.value=O.id,c(E.value))},p=()=>{d.value.length>0&&(E.value=d.value.pop()||".",c(E.value))},v=()=>{c(E.value)};return{localDrawer:o,localItems:f,handleItemClick:h,goBack:p,pathStack:d,currentPath:E,refreshFiles:v,fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},newItemName:s,itemTypes:n,renameDialog:w,openRenameDialog:m,openDeleteDialog:a,deleteDialog:y,errorMessage:u,showError:b,isProtectedFile:S}}}),Oje={class:"d-flex"};function Sje(t,e,o,f,E,d){const s=Nd("FileFolderCreator"),n=Nd("FileUploader"),u=Nd("RenameDialog"),b=Nd("DeleteDialog");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Uo(),da(bwe,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[3]||(e[3]=i=>t.localDrawer=i),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:ao(()=>[Na("div",Oje,[t.pathStack.length>0?(Uo(),da(Ja,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):za("",!0),$t(BM),$t(s,{"current-path":t.currentPath,onItemCreated:t.refreshFiles},null,8,["current-path","onItemCreated"]),$t(n,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-refresh",onClick:t.refreshFiles},null,8,["onClick"]),$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=i=>t.localDrawer=!1)})]),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(t.localItems,i=>(Uo(),da(Xf,{key:i.id},{prepend:ao(()=>[i.file==="folder"?(Uo(),da(jl,{key:0},{default:ao(()=>[Ua(Dl("mdi-folder"))]),_:1})):(Uo(),da(jl,{key:1},{default:ao(()=>[Ua(Dl(t.fileIcon(i.file)),1)]),_:2},1024))]),append:ao(()=>[t.isProtectedFile(i.title)?za("",!0):(Uo(),da(BO,{key:0},{activator:ao(({props:S})=>[$t(Ja,qi({icon:"",variant:"text",density:"compact",class:"mr-2"},S),{default:ao(()=>[$t(jl,{size:"small"},{default:ao(()=>[Ua("mdi-dots-vertical")]),_:1})]),_:2},1040)]),default:ao(()=>[$t(Ax,null,{default:ao(()=>[$t(Xf,{onClick:S=>t.openRenameDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Rename")]),_:1})]),_:2},1032,["onClick"]),$t(Xf,{onClick:S=>t.openDeleteDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))]),default:ao(()=>[$t(z1,{onClick:S=>t.handleItemClick(i)},{default:ao(()=>[Ua(Dl(i.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=i=>t.showError=i),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[1]||(e[1]=i=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"]),$t(u,{ref:"renameDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemRenamed:t.refreshFiles},null,8,["current-path","is-protected-file","onItemRenamed"]),$t(b,{ref:"deleteDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemDeleted:t.refreshFiles},null,8,["current-path","is-protected-file","onItemDeleted"])]),_:1},8,["modelValue"])):za("",!0)}const kje=mp(wje,[["render",Sje]]);class UL{constructor(e,o={}){pu(this,"socket");pu(this,"pingInterval");pu(this,"pingTimeout");pu(this,"url");pu(this,"options");pu(this,"reconnectAttempts",0);pu(this,"maxReconnectAttempts",3);pu(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,E;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(E=(f=this.options).onOpen)==null||E.call(f),e("")},this.socket.onerror=f=>{var E,d;console.error(`WebSocket error: ${this.url}`,f),(d=(E=this.options).onError)==null||d.call(E,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),(!this.options.isCodeRunning||!this.options.isCodeRunning())&&this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Q0.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const Tje={components:{CodeComponent:Awe,MarkdownComponent:$Oe,EditorComponent:UOe,SQLComponent:XOe,PackageComponent:GOe,CodeCellManager:VUe,CopilotComponent:JUe,ShareComponent:ije,SidebarComponent:kje,Comments:NUe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},lintResults:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:"",requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,showCreateButton:!1,envUserName:"",envProjectName:"",envTeamName:"",concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Mp}},setup(){const t=CD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=que(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Q0.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new UL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.run_socket=new UL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.stop_socket=new UL(this.ws_url+"ws/stop_execution",{isCodeRunning:()=>this.isCodeRunning}),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new UL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.dependency_socket=new UL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,Vc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await ou.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await ou.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:2613/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version,this.showCreateButton=e.show_create_button,Q0.comments_enabled=e.comments_enabled,e!=null&&e.user_name&&(this.envUserName=e.user_name),e!=null&&e.project_name&&(this.envProjectName=e.project_name),e!=null&&e.team_name&&(this.envTeamName=e.team_name)},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),ou.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(E=>console.log("File processed",E.data)).catch(E=>console.error("Error processing file:",E.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let E in this.notebook.cells){const d={id:E,code:this.notebook.cells[E].code,variable_name:this.notebook.cells[E].variable_name||"",nonReactive:this.notebook.cells[E].nonReactive,showTable:this.notebook.cells[E].showTable,cellType:this.notebook.cells[E].cellType};for(const s of this.notebook.cells[E].components)s.component==="v-data-table"?o[s.id]="":o[s.id]=s.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const E=this.requestQueue.findIndex(d=>d.originId===t);E!==-1?this.requestQueue[E]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[],this.lintResults[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);e.cell_id&&(e.completions&&(this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]),e.lint_results&&(this.lintResults[e.cell_id]=Array.isArray(e.lint_results)?e.lint_results:[]))}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let s in this.notebook.cells)for(const n of this.notebook.cells[s].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const E={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const s=this.componentChangeQueue.findIndex(n=>n.componentId===e);s!==-1?this.componentChangeQueue[s]=E:this.componentChangeQueue.push(E);return}const d={originId:E.originId,components:E.components,userId:E.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};ou.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},E=(await ou.post("api/create_cell",o)).data;let d={};t||(d[E.id]=E);for(let s in this.notebook.cells)d[s]=this.notebook.cells[s],t===s&&(d[E.id]=E);E.cellType==="code"&&(this.completions[E.id]=[],this.lintResults[E.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await ou.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&(delete this.completions[t],delete this.lintResults[t]),delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):s+=this.notebook.cells[b].code+` `)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:this.concatenatedCodeCache.length+o,column:f,code_w_context:this.concatenatedCodeCache.code+e+this.concatenatedCodeCache.followingCode};this.save_socket.send(JSON.stringify(E))},async copilotCompletion(t,e,o,f){if(this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):s+=this.notebook.cells[b].code+` -`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E=await ou.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(E)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Q0.timers[t])Q0.timers[t]={};else for(const o in Q0.timers[t])Q0.timers[t][o].stop(),delete Q0.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const E=new i1e(o);Q0.timers[t][e]=E,E.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Q0.timers[t][e]){const E=new i1e(o);Q0.timers[t][e]=E,E.start(f)}}}};const ife=t=>(Wle("data-v-e344242c"),t=t(),Yle(),t),Sje={key:0,class:"click-edit"},kje={key:0,class:"click-edit__show-text"},Tje={key:1,class:"click-edit__edit-field-wrapper"},Cje={key:1,class:"text-ellipsis text-h5"},Aje={key:2,class:"toggle-group"},Mje={key:2,target:"_blank",href:"https://www.zero-true.com/contact"},Eje={class:Gv(["content","px-8","d-flex","justify-center"])},Pje={class:"content__cells flex-grow-1",transition:"slide-x-transition"},Rje={class:"footer__left-container"},Lje={class:"footer__right-container"},Ije={key:0,class:"footer__queue-length-wrapper"},Dje=ife(()=>Na("span",{class:"text-bluegrey"},"Python #2",-1)),Bje={class:"footer__status-wrapper"},zje={key:0,class:"footer__status"},Nje=ife(()=>Na("span",null,"Running",-1)),Fje={key:1,class:"footer__status footer__status--connected"},$je=ife(()=>Na("span",null,"Connected",-1));function Vje(t,e,o,f,E,d){const s=Nd("ShareComponent"),n=Nd("CopilotComponent"),u=Nd("PackageComponent"),b=Nd("SidebarComponent"),i=Nd("CodeCellManager"),S=Nd("Comments");return Uo(),da(iRe,null,{default:ao(()=>[$t(bRe,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:ao(()=>[$t(QT,{class:"d-flex justify-end"},{default:ao(()=>[Na("div",null,[$t(ywe,{text:"Run All",location:"bottom",color:"primary"},{activator:ao(({props:w})=>[t.$devMode&&!d.isAppRoute?(Uo(),da(es,qi({key:0,icon:`ztIcon:${E.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Uo(),da(BO,{key:0,"close-on-content-click":!1},{activator:ao(({props:w})=>[$t(es,qi({icon:`ztIcon:${E.ztAliases.settings}`},w),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,null,{prepend:ao(()=>[$t(N8,{modelValue:E.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>E.reactiveMode=w)},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):za("",!0),t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:1,userName:E.envUserName,projectName:E.envProjectName,teamName:E.envTeamName},null,8,["userName","projectName","teamName"])):za("",!0),E.showCreateButton&&(!t.$devMode||d.isAppRoute)?(Uo(),Ya("a",Mje,"Create your own project")):za("",!0)])]),_:1})]),default:ao(()=>[$t(es,{size:"x-large",ripple:!1,icon:`ztIcon:${E.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Uo(),Ya("div",Sje,[E.editingProjectName?za("",!0):(Uo(),Ya("div",kje,[Na("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},Dl(E.notebookName),1)])),E.editingProjectName?(Uo(),Ya("div",Tje,[$t(Ep,{modelValue:E.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>E.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:pce(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):za("",!0)])):(Uo(),Ya("h5",Cje,Dl(E.notebookName),1)),t.$devMode&&!d.isMobile?(Uo(),Ya("div",Aje,[$t(B2e,{multiple:!1,density:"compact",mandatory:""},{default:ao(()=>[$t(es,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Gv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:ao(()=>[Ua(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),$t(es,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Gv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:ao(()=>[Ua("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Uo(),da(vwe,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:ao(()=>[$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(n,{key:0})):za("",!0)]),_:1}),$t(Xf,null,{default:ao(()=>[$t(es,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>E.drawer=!0),class:"text-bluegrey"})]),_:1}),$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(u,{key:0,dependencies:E.dependencies,dependencyOutput:E.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):za("",!0)]),_:1})]),_:1})):za("",!0),$t(b,{drawer:E.drawer,items:E.items,tree:E.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),$t(TBe,{scrollable:!1,class:"w-100 mx-auto"},{default:ao(()=>[E.errorMessage?(Uo(),da(yM,{key:0},{default:ao(()=>[$t(eM,{type:"error"},{default:ao(()=>[Ua(Dl(E.errorMessage),1)]),_:1})]),_:1})):za("",!0),d.socketsDisconnected?(Uo(),da(yM,{key:1},{default:ao(()=>[$t(eM,{type:"error"},{default:ao(()=>[Ua(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):za("",!0),Na("div",Eje,[Na("div",Pje,[$t(i,{notebook:E.notebook,completions:E.completions,currentlyExecutingCell:E.currentlyExecutingCell,isCodeRunning:E.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),Na("div",{class:Gv(["content__comments",{"content__comments--show":f.showComments}])},[$t(S)],2)])]),_:1}),d.isMobile?za("",!0):(Uo(),da(wBe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:ao(()=>[Na("div",Rje,[Na("span",null,[Na("span",null,"Python "+Dl(E.pythonVersion),1)]),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,"Zero-True "+Dl(E.ztVersion),1),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,Dl(d.cellLength)+" cells",1)]),Na("div",Lje,[E.isCodeRunning?(Uo(),Ya("div",Ije,[$t(sC,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),$t(LM,{density:"comfortable"},{default:ao(()=>[Ua(Dl(E.timer)+"ms",1)]),_:1}),$t(es,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:ao(()=>[Ua(" Queue Length: "+Dl(d.queueLength)+" ",1),$t(BO,{activator:"parent"},{default:ao(()=>[$t(Ax,{class:"footer__queue-list"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(d.runningQueue,(w,y)=>(Uo(),da(Xf,{key:y,class:"footer__queue-list-item"},{append:ao(()=>[$t(jl,{icon:"$done",color:"success"})]),default:ao(()=>[Dje]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):za("",!0),Na("div",Bje,[E.isCodeRunning?(Uo(),Ya("div",zje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),Nje])):za("",!0),E.isCodeRunning?za("",!0):(Uo(),Ya("div",Fje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),$je])),E.isCodeRunning?(Uo(),da(es,{key:2,density:"comfortable",icon:`ztIcon:${E.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):za("",!0)])])]),_:1}))]),_:1})}const Uje=mp(Oje,[["render",Vje],["__scopeId","data-v-e344242c"]]);const jje="modulepreload",Qje=function(t,e){return new URL(t,e).href},a1e={},Cle=function(e,o,f){if(!o||o.length===0)return e();const E=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=Qje(d,f),d in a1e)return;a1e[d]=!0;const s=d.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!f)for(let i=E.length-1;i>=0;i--){const S=E[i];if(S.href===d&&(!s||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=s?"stylesheet":jje,s||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),s)return new Promise((i,S)=>{b.addEventListener("load",i),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=d,window.dispatchEvent(s),!s.defaultPrevented)throw d})};async function Hje(){(await Cle(()=>import("./webfontloader-7255030a.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function JOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Jg(e,o),{aliases:E={},components:d={},directives:s={}}=f,n=F9e(f.defaults),u=rLe(f.display,f.ssr),b=rRe(f.theme),i=TRe(f.icons),S=J9e(f.locale),w=xDe(f.date,S),y=iLe(f.goTo,S);return{install:a=>{for(const c in s)a.directive(c,s[c]);for(const c in d)a.component(c,d[c]);for(const c in E)a.component(c,PM({...E[c],name:c,aliasName:E[c].name}));if(b.install(a),a.provide(gM,n),a.provide(rle,u),a.provide(fZ,b),a.provide(ele,i),a.provide(uZ,S),a.provide(bDe,w.options),a.provide(Xge,w.instance),a.provide(n_e,y),Hu&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:c}=a;a.mount=function(){const h=c(...arguments);return Vc(()=>u.update()),a.mount=c,h}}j1.reset(),a.mixin({computed:{$vuetify(){return Am({defaults:R8.call(this,gM),display:R8.call(this,rle),theme:R8.call(this,fZ),icons:R8.call(this,ele),locale:R8.call(this,uZ),date:R8.call(this,Xge)})}}})},defaults:n,display:u,theme:b,icons:i,locale:S,date:w,goTo:y}}const Zje="3.6.14";JOe.version=Zje;function R8(t){var f,E;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((E=e.vnode.appContext)==null?void 0:E.provides);if(o&&t in o)return o[t]}const qje=JOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:z2e,sets:{mdi:N2e,ztIcon:nze}}}),s1e=[{path:"/",name:"/",component:()=>Cle(()=>import("./index-1be3a95e.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>Cle(()=>import("./app-04fe456a.js"),[],import.meta.url)}];function Wje(t){const{extendRoutes:e}=t;return CTe(Object.assign(t,{routes:typeof e=="function"?e(s1e):s1e}))}async function Yje(t){const o=(await ou.get("base_path")).data,f=Wje({history:j5e(o)});Hje(),t.use(qje).use(f)}const Xje=sze(),OH=S5e(Uje);OH.use(Xje);Yje(OH).then(()=>{OH.config.globalProperties.$devMode=!0,OH.mount("#app")});export{NUe as C,mp as _,da as c,MTe as g,Uo as o,Nd as r}; +`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E=await ou.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(E)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Q0.timers[t])Q0.timers[t]={};else for(const o in Q0.timers[t])Q0.timers[t][o].stop(),delete Q0.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const E=new s1e(o);Q0.timers[t][e]=E,E.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Q0.timers[t][e]){const E=new s1e(o);Q0.timers[t][e]=E,E.start(f)}}}};const sfe=t=>(Yle("data-v-2da37ea1"),t=t(),Xle(),t),Cje={key:0,class:"click-edit"},Aje={key:0,class:"click-edit__show-text"},Mje={key:1,class:"click-edit__edit-field-wrapper"},Eje={key:1,class:"text-ellipsis text-h5"},Pje={key:2,class:"toggle-group"},Rje={key:2,target:"_blank",href:"https://www.zero-true.com/contact"},Lje={class:Gv(["content","px-8","d-flex","justify-center"])},Ije={class:"content__cells flex-grow-1",transition:"slide-x-transition"},Dje={class:"footer__left-container"},Bje={class:"footer__right-container"},zje={key:0,class:"footer__queue-length-wrapper"},Nje=sfe(()=>Na("span",{class:"text-bluegrey"},"Python #2",-1)),Fje={class:"footer__status-wrapper"},$je={key:0,class:"footer__status"},Vje=sfe(()=>Na("span",null,"Running",-1)),Uje={key:1,class:"footer__status footer__status--connected"},jje=sfe(()=>Na("span",null,"Connected",-1));function Qje(t,e,o,f,E,d){const s=Nd("ShareComponent"),n=Nd("CopilotComponent"),u=Nd("PackageComponent"),b=Nd("SidebarComponent"),i=Nd("CodeCellManager"),S=Nd("Comments");return Uo(),da(lRe,null,{default:ao(()=>[$t(wRe,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:ao(()=>[$t(HT,{class:"d-flex justify-end"},{default:ao(()=>[Na("div",null,[$t(xwe,{text:"Run All",location:"bottom",color:"primary"},{activator:ao(({props:w})=>[t.$devMode&&!d.isAppRoute?(Uo(),da(Ja,qi({key:0,icon:`ztIcon:${E.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Uo(),da(BO,{key:0,"close-on-content-click":!1},{activator:ao(({props:w})=>[$t(Ja,qi({icon:`ztIcon:${E.ztAliases.settings}`},w),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,null,{prepend:ao(()=>[$t(F8,{modelValue:E.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>E.reactiveMode=w)},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):za("",!0),t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:1,userName:E.envUserName,projectName:E.envProjectName,teamName:E.envTeamName},null,8,["userName","projectName","teamName"])):za("",!0),E.showCreateButton&&(!t.$devMode||d.isAppRoute)?(Uo(),Ya("a",Rje,"Create your own project")):za("",!0)])]),_:1})]),default:ao(()=>[$t(Ja,{size:"x-large",ripple:!1,icon:`ztIcon:${E.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Uo(),Ya("div",Cje,[E.editingProjectName?za("",!0):(Uo(),Ya("div",Aje,[Na("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},Dl(E.notebookName),1)])),E.editingProjectName?(Uo(),Ya("div",Mje,[$t(Ep,{modelValue:E.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>E.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:mce(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):za("",!0)])):(Uo(),Ya("h5",Eje,Dl(E.notebookName),1)),t.$devMode&&!d.isMobile?(Uo(),Ya("div",Pje,[$t(N2e,{multiple:!1,density:"compact",mandatory:""},{default:ao(()=>[$t(Ja,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Gv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:ao(()=>[Ua(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),$t(Ja,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Gv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:ao(()=>[Ua("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Uo(),da(bwe,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:ao(()=>[$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(n,{key:0})):za("",!0)]),_:1}),$t(Xf,null,{default:ao(()=>[$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>E.drawer=!0),class:"text-bluegrey"})]),_:1}),$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(u,{key:0,dependencies:E.dependencies,dependencyOutput:E.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):za("",!0)]),_:1})]),_:1})):za("",!0),$t(b,{drawer:E.drawer,items:E.items,tree:E.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),$t(MBe,{scrollable:!1,class:"w-100 mx-auto"},{default:ao(()=>[E.errorMessage?(Uo(),da(yM,{key:0},{default:ao(()=>[$t(tM,{type:"error"},{default:ao(()=>[Ua(Dl(E.errorMessage),1)]),_:1})]),_:1})):za("",!0),d.socketsDisconnected?(Uo(),da(yM,{key:1},{default:ao(()=>[$t(tM,{type:"error"},{default:ao(()=>[Ua(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):za("",!0),Na("div",Lje,[Na("div",Ije,[$t(i,{notebook:E.notebook,lintResults:E.lintResults,completions:E.completions,currentlyExecutingCell:E.currentlyExecutingCell,isCodeRunning:E.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","lintResults","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),Na("div",{class:Gv(["content__comments",{"content__comments--show":f.showComments}])},[$t(S)],2)])]),_:1}),d.isMobile?za("",!0):(Uo(),da(kBe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:ao(()=>[Na("div",Dje,[Na("span",null,[Na("span",null,"Python "+Dl(E.pythonVersion),1)]),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,"Zero-True "+Dl(E.ztVersion),1),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,Dl(d.cellLength)+" cells",1)]),Na("div",Bje,[E.isCodeRunning?(Uo(),Ya("div",zje,[$t(lC,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),$t(LM,{density:"comfortable"},{default:ao(()=>[Ua(Dl(E.timer)+"ms",1)]),_:1}),$t(Ja,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:ao(()=>[Ua(" Queue Length: "+Dl(d.queueLength)+" ",1),$t(BO,{activator:"parent"},{default:ao(()=>[$t(Ax,{class:"footer__queue-list"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(d.runningQueue,(w,y)=>(Uo(),da(Xf,{key:y,class:"footer__queue-list-item"},{append:ao(()=>[$t(jl,{icon:"$done",color:"success"})]),default:ao(()=>[Nje]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):za("",!0),Na("div",Fje,[E.isCodeRunning?(Uo(),Ya("div",$je,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),Vje])):za("",!0),E.isCodeRunning?za("",!0):(Uo(),Ya("div",Uje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),jje])),E.isCodeRunning?(Uo(),da(Ja,{key:2,density:"comfortable",icon:`ztIcon:${E.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):za("",!0)])])]),_:1}))]),_:1})}const Hje=mp(Tje,[["render",Qje],["__scopeId","data-v-2da37ea1"]]);const Zje="modulepreload",qje=function(t,e){return new URL(t,e).href},l1e={},Ale=function(e,o,f){if(!o||o.length===0)return e();const E=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=qje(d,f),d in l1e)return;l1e[d]=!0;const s=d.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!f)for(let i=E.length-1;i>=0;i--){const S=E[i];if(S.href===d&&(!s||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=s?"stylesheet":Zje,s||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),s)return new Promise((i,S)=>{b.addEventListener("load",i),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=d,window.dispatchEvent(s),!s.defaultPrevented)throw d})};async function Wje(){(await Ale(()=>import("./webfontloader-e973823d.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function t3e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Jg(e,o),{aliases:E={},components:d={},directives:s={}}=f,n=U9e(f.defaults),u=aLe(f.display,f.ssr),b=aRe(f.theme),i=MRe(f.icons),S=nRe(f.locale),w=ODe(f.date,S),y=lLe(f.goTo,S);return{install:a=>{for(const c in s)a.directive(c,s[c]);for(const c in d)a.component(c,d[c]);for(const c in E)a.component(c,PM({...E[c],name:c,aliasName:E[c].name}));if(b.install(a),a.provide(gM,n),a.provide(ole,u),a.provide(dZ,b),a.provide(tle,i),a.provide(fZ,S),a.provide(wDe,w.options),a.provide(Kge,w.instance),a.provide(o_e,y),Hu&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:c}=a;a.mount=function(){const h=c(...arguments);return Vc(()=>u.update()),a.mount=c,h}}j1.reset(),a.mixin({computed:{$vuetify(){return Am({defaults:L8.call(this,gM),display:L8.call(this,ole),theme:L8.call(this,dZ),icons:L8.call(this,tle),locale:L8.call(this,fZ),date:L8.call(this,Kge)})}}})},defaults:n,display:u,theme:b,icons:i,locale:S,date:w,goTo:y}}const Yje="3.6.14";t3e.version=Yje;function L8(t){var f,E;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((E=e.vnode.appContext)==null?void 0:E.provides);if(o&&t in o)return o[t]}const Xje=t3e({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:F2e,sets:{mdi:$2e,ztIcon:ize}}}),c1e=[{path:"/",name:"/",component:()=>Ale(()=>import("./index-b8b5a264.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>Ale(()=>import("./app-b8b5a264.js"),[],import.meta.url)}];function Gje(t){const{extendRoutes:e}=t;return MTe(Object.assign(t,{routes:typeof e=="function"?e(c1e):c1e}))}async function Kje(t){const o=(await ou.get("base_path")).data,f=Gje({history:H5e(o)});Wje(),t.use(Xje).use(f)}const Jje=uze(),SH=T5e(Hje);SH.use(Jje);Kje(SH).then(()=>{SH.config.globalProperties.$devMode=!1,SH.mount("#app")});export{VUe as C,mp as _,da as c,PTe as g,Uo as o,Nd as r}; diff --git a/zt_backend/dist_app/assets/index-82db29a9.css b/zt_backend/dist_app/assets/index-82db29a9.css new file mode 100644 index 00000000..0ad00ae5 --- /dev/null +++ b/zt_backend/dist_app/assets/index-82db29a9.css @@ -0,0 +1,5 @@ +@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-file-input--hide.v-input .v-field,.v-file-input--hide.v-input .v-input__control,.v-file-input--hide.v-input .v-input__details{display:none}.v-file-input--hide.v-input .v-input__prepend{grid-area:control;margin:0 auto}.v-file-input--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-file-input input[type=file]{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.v-file-input .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-file-input .v-input__details{padding-inline:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-6e515f8e]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-6e515f8e]{margin-bottom:16px}.message-btn--alert[data-v-6e515f8e]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-6e515f8e]{margin-bottom:4px}.delete-cell[data-v-6e515f8e]:hover{background-color:#6e3d41}.content[data-v-6e515f8e]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-6e515f8e]{border-radius:4px}.header[data-v-6e515f8e]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-6e515f8e],.outcome[data-v-6e515f8e]{padding:0}.code--dev[data-v-6e515f8e],.outcome--dev[data-v-6e515f8e]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-6e515f8e]{margin-bottom:16px}.click-edit[data-v-6e515f8e]{width:calc(100% - 135px)}.click-edit__name[data-v-6e515f8e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-6e515f8e],.click-edit__edit-field-wrapper[data-v-6e515f8e]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-6e515f8e]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-6e515f8e]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-6e515f8e]{margin-top:-11px}.click-edit__edit-field[data-v-6e515f8e] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-6e515f8e]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-6e515f8e]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-6e515f8e]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-46d618ae]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-46d618ae] .plot-container{overflow:auto}.markdown-content[data-v-88d8f347]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content[data-v-88d8f347] h1,.markdown-content[data-v-88d8f347] h2,.markdown-content[data-v-88d8f347] h3,.markdown-content[data-v-88d8f347] h4,.markdown-content[data-v-88d8f347] h5,.markdown-content[data-v-88d8f347] h6{margin-bottom:.2em;font-weight:700;line-height:1.3}.markdown-content[data-v-88d8f347] p{margin-top:0;margin-bottom:.2em}.markdown-content[data-v-88d8f347] ul,.markdown-content[data-v-88d8f347] ol{margin-top:.5em;margin-bottom:.5em}.markdown-content[data-v-88d8f347] ul{list-style-type:disc;margin-left:5px}.markdown-content[data-v-88d8f347] ol{list-style-type:decimal;margin-left:20px}.markdown-content[data-v-88d8f347] li{margin-bottom:.25em}.markdown-content[data-v-88d8f347] li>ul,.markdown-content[data-v-88d8f347] li>ol{margin-top:.25em;margin-bottom:.25em;margin-left:20px}.markdown-content[data-v-88d8f347] ul{list-style-type:disc}.markdown-content[data-v-88d8f347] ol{list-style-type:decimal}.markdown-content[data-v-88d8f347] a{color:#007bff;text-decoration:none}.markdown-content[data-v-88d8f347] a:hover{text-decoration:underline}.markdown-content[data-v-88d8f347] img{max-width:100%;height:auto}.markdown-content[data-v-88d8f347] blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent inset;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{min-width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid #f00!important;box-shadow:0 0 0 1px red}.tox .tox-rgb-container{position:relative}.tox .tox-rgb-form .tox-invalid-icon{align-content:center;align-items:center;display:none;height:100%;position:absolute;right:0;top:0}.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid{margin:0}.tox .tox-rgb-warning-note{background-color:#442632;border:1px solid #55212b;border-radius:3px;color:#e68080;padding:3px}.tox input.tox-invalid+.tox-invalid-icon{display:flex}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;-webkit-text-decoration:none;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a3709;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:max-content}.tox .tox-notification a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{align-items:flex-start;display:flex;flex:1 1 auto;height:16px;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;-webkit-text-decoration:none;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0;background-size:calc(100% - 8px) calc(100% + -0)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{display:flex;flex-direction:column;height:100%;min-width:248px;width:316px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{background-color:#222f3e;box-shadow:0 4px 8px #222f3e1a;color:#fff;font-size:20px;font-weight:400;line-height:28px;padding:12px;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{background-color:#2b3b4e;display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:10px 12px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{background-color:#222f3e;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#fff;cursor:pointer;display:flex;flex-direction:column;font-size:14px;gap:12px;padding:12px;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{box-shadow:0 4px 8px #222f3e1a}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{bottom:0;box-shadow:0 0 0 0 transparent #285ec7;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #285ec7;box-shadow:0 0 0 2px #285ec7!important}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#62430b;box-shadow:0 4px 8px #222f3e1a;position:relative}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{bottom:0;box-shadow:0 0 0 0 transparent #cea215;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #cea215}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date{display:flex;gap:12px;justify-content:space-between}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label{font-size:16px;line-height:24px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label{font-size:12px;font-weight:600;line-height:24px;padding:0}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author{align-items:center;display:flex;flex:1 0 0;gap:8px;height:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:18px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon{color:#fff;height:24px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-90a2677a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-018eae28]{position:sticky;top:100px}.message[data-v-018eae28]{padding-top:10px}.message__timestamp[data-v-018eae28]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-018eae28]{font-size:14px;word-break:break-word}.comment__actions[data-v-018eae28]{position:absolute;right:0}.card[data-v-3ad3a67b]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-3ad3a67b]{position:absolute;top:0;right:0}.content[data-v-3ad3a67b]{position:relative;height:100%}.empty-state[data-v-3ad3a67b]{margin-top:200px;text-align:center}.empty-state__text[data-v-3ad3a67b]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-3ad3a67b]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.close-button[data-v-4e4c74a2]{position:absolute;top:10px;right:10px;width:24px;height:24px}.zt-app-bar[data-v-2da37ea1]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-2da37ea1] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-2da37ea1]{height:auto!important}.click-edit[data-v-2da37ea1]{max-width:200px;width:100%}.click-edit__name[data-v-2da37ea1]{font-weight:400;cursor:text}.click-edit__show-text[data-v-2da37ea1],.click-edit__edit-field-wrapper[data-v-2da37ea1]{display:flex;align-items:center}.click-edit__name[data-v-2da37ea1]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-2da37ea1]{margin-top:-11px}.click-edit__edit-field[data-v-2da37ea1] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-2da37ea1]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-2da37ea1]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-2da37ea1]{max-width:600px}}.content[data-v-2da37ea1]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-2da37ea1]{width:0;transition:width .15s ease}.content__comments--show[data-v-2da37ea1]{width:380px}.footer[data-v-2da37ea1]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-2da37ea1],.footer__right-container[data-v-2da37ea1]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-2da37ea1],.footer__right-container[data-v-2da37ea1]{align-items:center;width:auto}}.footer__right-container[data-v-2da37ea1]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-2da37ea1]{flex-direction:row}}.footer__left-container[data-v-2da37ea1]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-2da37ea1]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-2da37ea1]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-2da37ea1]{width:auto}}.footer .dot-divider[data-v-2da37ea1]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-2da37ea1]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-2da37ea1]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-2da37ea1]{margin:0 24px}}.footer__status-wrapper[data-v-2da37ea1]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-2da37ea1]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-2da37ea1]{display:flex}}.footer__code-version-icon[data-v-2da37ea1]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-2da37ea1]{margin-right:12px}}.footer__queue-length-btn[data-v-2da37ea1]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-2da37ea1]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-2da37ea1]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-2da37ea1]{margin-right:10px}}.footer__queue-list[data-v-2da37ea1]{font-size:.625rem}.footer__queue-list-item--pending[data-v-2da37ea1]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-2da37ea1]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-2da37ea1]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-2da37ea1]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-2da37ea1]{flex-direction:row;height:34px}}.toggle-group[data-v-2da37ea1]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! + * ress.css • v2.0.4 + * MIT License + * github.com/filipelinhares/ress + */html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translate(100%)}.picker-transition-leave-to{transform:translate(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-enter-from{transform:translate(-100%)}.picker-reverse-transition-leave-to{transform:translate(100%)}.expand-transition-enter-active,.expand-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-enter-active,.expand-transition-leave-active{transition-property:height!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-property:width!important}.scale-transition-enter-active,.scale-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-leave-to{opacity:0}.scale-transition-leave-active{transition-duration:.1s!important}.scale-transition-enter-from{opacity:0;transform:scale(0)}.scale-transition-enter-active,.scale-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-leave-to{opacity:0}.scale-rotate-transition-leave-active{transition-duration:.1s!important}.scale-rotate-transition-enter-from{opacity:0;transform:scale(0) rotate(-45deg)}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-leave-to{opacity:0}.scale-rotate-reverse-transition-leave-active{transition-duration:.1s!important}.scale-rotate-reverse-transition-enter-from{opacity:0;transform:scale(0) rotate(45deg)}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-property:transform,opacity!important}.message-transition-enter-active,.message-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-enter-from,.message-transition-leave-to{opacity:0;transform:translateY(-15px)}.message-transition-leave-from,.message-transition-leave-active{position:absolute}.message-transition-enter-active,.message-transition-leave-active{transition-property:transform,opacity!important}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-enter-from,.slide-y-transition-leave-to{opacity:0;transform:translateY(-15px)}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-property:transform,opacity!important}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-enter-from,.slide-y-reverse-transition-leave-to{opacity:0;transform:translateY(15px)}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-enter-from,.scroll-y-transition-leave-to{opacity:0}.scroll-y-transition-enter-from{transform:translateY(-15px)}.scroll-y-transition-leave-to{transform:translateY(15px)}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-enter-from,.scroll-y-reverse-transition-leave-to{opacity:0}.scroll-y-reverse-transition-enter-from{transform:translateY(15px)}.scroll-y-reverse-transition-leave-to{transform:translateY(-15px)}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-enter-from,.scroll-x-transition-leave-to{opacity:0}.scroll-x-transition-enter-from{transform:translate(-15px)}.scroll-x-transition-leave-to{transform:translate(15px)}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-enter-from,.scroll-x-reverse-transition-leave-to{opacity:0}.scroll-x-reverse-transition-enter-from{transform:translate(15px)}.scroll-x-reverse-transition-leave-to{transform:translate(-15px)}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-enter-from,.slide-x-transition-leave-to{opacity:0;transform:translate(-15px)}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-property:transform,opacity!important}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-enter-from,.slide-x-reverse-transition-leave-to{opacity:0;transform:translate(15px)}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-enter-from,.fade-transition-leave-to{opacity:0!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-property:opacity!important}.fab-transition-enter-active,.fab-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-enter-from,.fab-transition-leave-to{transform:scale(0) rotate(-45deg)}.fab-transition-enter-active,.fab-transition-leave-active{transition-property:transform!important}.v-locale--is-rtl{direction:rtl}.v-locale--is-ltr{direction:ltr}.blockquote{padding:16px 0 16px 24px;font-size:18px;font-weight:300}html{font-family:Pathway Extreme,sans-serif;line-height:1.5;font-size:1rem;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0)}html.overflow-y-hidden{overflow-y:hidden!important}:root{--v-theme-overlay-multiplier: 1;--v-scrollbar-offset: 0px}@supports (-webkit-touch-callout: none){body{cursor:pointer}}@media only print{.hidden-print-only{display:none!important}}@media only screen{.hidden-screen-only{display:none!important}}@media (max-width: 599.98px){.hidden-xs{display:none!important}}@media (min-width: 600px) and (max-width: 959.98px){.hidden-sm{display:none!important}}@media (min-width: 960px) and (max-width: 1279.98px){.hidden-md{display:none!important}}@media (min-width: 1280px) and (max-width: 1919.98px){.hidden-lg{display:none!important}}@media (min-width: 1920px) and (max-width: 2559.98px){.hidden-xl{display:none!important}}@media (min-width: 2560px){.hidden-xxl{display:none!important}}@media (min-width: 600px){.hidden-sm-and-up{display:none!important}}@media (min-width: 960px){.hidden-md-and-up{display:none!important}}@media (min-width: 1280px){.hidden-lg-and-up{display:none!important}}@media (min-width: 1920px){.hidden-xl-and-up{display:none!important}}@media (max-width: 959.98px){.hidden-sm-and-down{display:none!important}}@media (max-width: 1279.98px){.hidden-md-and-down{display:none!important}}@media (max-width: 1919.98px){.hidden-lg-and-down{display:none!important}}@media (max-width: 2559.98px){.hidden-xl-and-down{display:none!important}}.elevation-24{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-23{box-shadow:0 11px 14px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 23px 36px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 44px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-22{box-shadow:0 10px 14px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 22px 35px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 42px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-21{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 21px 33px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 40px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-20{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 20px 31px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 38px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-19{box-shadow:0 9px 12px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 19px 29px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 36px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-18{box-shadow:0 9px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 18px 28px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 34px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-17{box-shadow:0 8px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 17px 26px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 32px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-16{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-15{box-shadow:0 8px 9px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 15px 22px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 28px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-14{box-shadow:0 7px 9px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 14px 21px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 26px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-13{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 13px 19px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 24px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-12{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 12px 17px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 22px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-11{box-shadow:0 6px 7px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 11px 15px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 20px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-10{box-shadow:0 6px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 10px 14px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 18px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-9{box-shadow:0 5px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 9px 12px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 16px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-8{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-7{box-shadow:0 4px 5px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 7px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 2px 16px 1px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-6{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-5{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 5px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 14px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-4{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-3{box-shadow:0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 8px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-2{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-1{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-0{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.d-sr-only,.d-sr-only-focusable:not(:focus){border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-scroll{overflow-y:scroll!important}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.float-none{float:none!important}.float-left{float:left!important}.float-right{float:right!important}.v-locale--is-rtl .float-end{float:left!important}.v-locale--is-rtl .float-start,.v-locale--is-ltr .float-end{float:right!important}.v-locale--is-ltr .float-start{float:left!important}.flex-fill,.flex-1-1{flex:1 1 auto!important}.flex-1-0{flex:1 0 auto!important}.flex-0-1{flex:0 1 auto!important}.flex-0-0{flex:0 0 auto!important}.flex-1-1-100{flex:1 1 100%!important}.flex-1-0-100{flex:1 0 100%!important}.flex-0-1-100{flex:0 1 100%!important}.flex-0-0-100{flex:0 0 100%!important}.flex-1-1-0{flex:1 1 0!important}.flex-1-0-0{flex:1 0 0!important}.flex-0-1-0{flex:0 1 0!important}.flex-0-0-0{flex:0 0 0!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-space-between{justify-content:space-between!important}.justify-space-around{justify-content:space-around!important}.justify-space-evenly{justify-content:space-evenly!important}.align-start{align-items:flex-start!important}.align-end{align-items:flex-end!important}.align-center{align-items:center!important}.align-baseline{align-items:baseline!important}.align-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-space-between{align-content:space-between!important}.align-content-space-around{align-content:space-around!important}.align-content-space-evenly{align-content:space-evenly!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-6{order:6!important}.order-7{order:7!important}.order-8{order:8!important}.order-9{order:9!important}.order-10{order:10!important}.order-11{order:11!important}.order-12{order:12!important}.order-last{order:13!important}.ga-0{gap:0px!important}.ga-1{gap:4px!important}.ga-2{gap:8px!important}.ga-3{gap:12px!important}.ga-4{gap:16px!important}.ga-5{gap:20px!important}.ga-6{gap:24px!important}.ga-7{gap:28px!important}.ga-8{gap:32px!important}.ga-9{gap:36px!important}.ga-10{gap:40px!important}.ga-11{gap:44px!important}.ga-12{gap:48px!important}.ga-13{gap:52px!important}.ga-14{gap:56px!important}.ga-15{gap:60px!important}.ga-16{gap:64px!important}.ga-auto{gap:auto!important}.gr-0{row-gap:0px!important}.gr-1{row-gap:4px!important}.gr-2{row-gap:8px!important}.gr-3{row-gap:12px!important}.gr-4{row-gap:16px!important}.gr-5{row-gap:20px!important}.gr-6{row-gap:24px!important}.gr-7{row-gap:28px!important}.gr-8{row-gap:32px!important}.gr-9{row-gap:36px!important}.gr-10{row-gap:40px!important}.gr-11{row-gap:44px!important}.gr-12{row-gap:48px!important}.gr-13{row-gap:52px!important}.gr-14{row-gap:56px!important}.gr-15{row-gap:60px!important}.gr-16{row-gap:64px!important}.gr-auto{row-gap:auto!important}.gc-0{column-gap:0px!important}.gc-1{column-gap:4px!important}.gc-2{column-gap:8px!important}.gc-3{column-gap:12px!important}.gc-4{column-gap:16px!important}.gc-5{column-gap:20px!important}.gc-6{column-gap:24px!important}.gc-7{column-gap:28px!important}.gc-8{column-gap:32px!important}.gc-9{column-gap:36px!important}.gc-10{column-gap:40px!important}.gc-11{column-gap:44px!important}.gc-12{column-gap:48px!important}.gc-13{column-gap:52px!important}.gc-14{column-gap:56px!important}.gc-15{column-gap:60px!important}.gc-16{column-gap:64px!important}.gc-auto{column-gap:auto!important}.ma-0{margin:0!important}.ma-1{margin:4px!important}.ma-2{margin:8px!important}.ma-3{margin:12px!important}.ma-4{margin:16px!important}.ma-5{margin:20px!important}.ma-6{margin:24px!important}.ma-7{margin:28px!important}.ma-8{margin:32px!important}.ma-9{margin:36px!important}.ma-10{margin:40px!important}.ma-11{margin:44px!important}.ma-12{margin:48px!important}.ma-13{margin:52px!important}.ma-14{margin:56px!important}.ma-15{margin:60px!important}.ma-16{margin:64px!important}.ma-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:4px!important;margin-left:4px!important}.mx-2{margin-right:8px!important;margin-left:8px!important}.mx-3{margin-right:12px!important;margin-left:12px!important}.mx-4{margin-right:16px!important;margin-left:16px!important}.mx-5{margin-right:20px!important;margin-left:20px!important}.mx-6{margin-right:24px!important;margin-left:24px!important}.mx-7{margin-right:28px!important;margin-left:28px!important}.mx-8{margin-right:32px!important;margin-left:32px!important}.mx-9{margin-right:36px!important;margin-left:36px!important}.mx-10{margin-right:40px!important;margin-left:40px!important}.mx-11{margin-right:44px!important;margin-left:44px!important}.mx-12{margin-right:48px!important;margin-left:48px!important}.mx-13{margin-right:52px!important;margin-left:52px!important}.mx-14{margin-right:56px!important;margin-left:56px!important}.mx-15{margin-right:60px!important;margin-left:60px!important}.mx-16{margin-right:64px!important;margin-left:64px!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:4px!important;margin-bottom:4px!important}.my-2{margin-top:8px!important;margin-bottom:8px!important}.my-3{margin-top:12px!important;margin-bottom:12px!important}.my-4{margin-top:16px!important;margin-bottom:16px!important}.my-5{margin-top:20px!important;margin-bottom:20px!important}.my-6{margin-top:24px!important;margin-bottom:24px!important}.my-7{margin-top:28px!important;margin-bottom:28px!important}.my-8{margin-top:32px!important;margin-bottom:32px!important}.my-9{margin-top:36px!important;margin-bottom:36px!important}.my-10{margin-top:40px!important;margin-bottom:40px!important}.my-11{margin-top:44px!important;margin-bottom:44px!important}.my-12{margin-top:48px!important;margin-bottom:48px!important}.my-13{margin-top:52px!important;margin-bottom:52px!important}.my-14{margin-top:56px!important;margin-bottom:56px!important}.my-15{margin-top:60px!important;margin-bottom:60px!important}.my-16{margin-top:64px!important;margin-bottom:64px!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:20px!important}.mt-6{margin-top:24px!important}.mt-7{margin-top:28px!important}.mt-8{margin-top:32px!important}.mt-9{margin-top:36px!important}.mt-10{margin-top:40px!important}.mt-11{margin-top:44px!important}.mt-12{margin-top:48px!important}.mt-13{margin-top:52px!important}.mt-14{margin-top:56px!important}.mt-15{margin-top:60px!important}.mt-16{margin-top:64px!important}.mt-auto{margin-top:auto!important}.mr-0{margin-right:0!important}.mr-1{margin-right:4px!important}.mr-2{margin-right:8px!important}.mr-3{margin-right:12px!important}.mr-4{margin-right:16px!important}.mr-5{margin-right:20px!important}.mr-6{margin-right:24px!important}.mr-7{margin-right:28px!important}.mr-8{margin-right:32px!important}.mr-9{margin-right:36px!important}.mr-10{margin-right:40px!important}.mr-11{margin-right:44px!important}.mr-12{margin-right:48px!important}.mr-13{margin-right:52px!important}.mr-14{margin-right:56px!important}.mr-15{margin-right:60px!important}.mr-16{margin-right:64px!important}.mr-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:20px!important}.mb-6{margin-bottom:24px!important}.mb-7{margin-bottom:28px!important}.mb-8{margin-bottom:32px!important}.mb-9{margin-bottom:36px!important}.mb-10{margin-bottom:40px!important}.mb-11{margin-bottom:44px!important}.mb-12{margin-bottom:48px!important}.mb-13{margin-bottom:52px!important}.mb-14{margin-bottom:56px!important}.mb-15{margin-bottom:60px!important}.mb-16{margin-bottom:64px!important}.mb-auto{margin-bottom:auto!important}.ml-0{margin-left:0!important}.ml-1{margin-left:4px!important}.ml-2{margin-left:8px!important}.ml-3{margin-left:12px!important}.ml-4{margin-left:16px!important}.ml-5{margin-left:20px!important}.ml-6{margin-left:24px!important}.ml-7{margin-left:28px!important}.ml-8{margin-left:32px!important}.ml-9{margin-left:36px!important}.ml-10{margin-left:40px!important}.ml-11{margin-left:44px!important}.ml-12{margin-left:48px!important}.ml-13{margin-left:52px!important}.ml-14{margin-left:56px!important}.ml-15{margin-left:60px!important}.ml-16{margin-left:64px!important}.ml-auto{margin-left:auto!important}.ms-0{margin-inline-start:0px!important}.ms-1{margin-inline-start:4px!important}.ms-2{margin-inline-start:8px!important}.ms-3{margin-inline-start:12px!important}.ms-4{margin-inline-start:16px!important}.ms-5{margin-inline-start:20px!important}.ms-6{margin-inline-start:24px!important}.ms-7{margin-inline-start:28px!important}.ms-8{margin-inline-start:32px!important}.ms-9{margin-inline-start:36px!important}.ms-10{margin-inline-start:40px!important}.ms-11{margin-inline-start:44px!important}.ms-12{margin-inline-start:48px!important}.ms-13{margin-inline-start:52px!important}.ms-14{margin-inline-start:56px!important}.ms-15{margin-inline-start:60px!important}.ms-16{margin-inline-start:64px!important}.ms-auto{margin-inline-start:auto!important}.me-0{margin-inline-end:0px!important}.me-1{margin-inline-end:4px!important}.me-2{margin-inline-end:8px!important}.me-3{margin-inline-end:12px!important}.me-4{margin-inline-end:16px!important}.me-5{margin-inline-end:20px!important}.me-6{margin-inline-end:24px!important}.me-7{margin-inline-end:28px!important}.me-8{margin-inline-end:32px!important}.me-9{margin-inline-end:36px!important}.me-10{margin-inline-end:40px!important}.me-11{margin-inline-end:44px!important}.me-12{margin-inline-end:48px!important}.me-13{margin-inline-end:52px!important}.me-14{margin-inline-end:56px!important}.me-15{margin-inline-end:60px!important}.me-16{margin-inline-end:64px!important}.me-auto{margin-inline-end:auto!important}.ma-n1{margin:-4px!important}.ma-n2{margin:-8px!important}.ma-n3{margin:-12px!important}.ma-n4{margin:-16px!important}.ma-n5{margin:-20px!important}.ma-n6{margin:-24px!important}.ma-n7{margin:-28px!important}.ma-n8{margin:-32px!important}.ma-n9{margin:-36px!important}.ma-n10{margin:-40px!important}.ma-n11{margin:-44px!important}.ma-n12{margin:-48px!important}.ma-n13{margin:-52px!important}.ma-n14{margin:-56px!important}.ma-n15{margin:-60px!important}.ma-n16{margin:-64px!important}.mx-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-n16{margin-right:-64px!important;margin-left:-64px!important}.my-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-n1{margin-top:-4px!important}.mt-n2{margin-top:-8px!important}.mt-n3{margin-top:-12px!important}.mt-n4{margin-top:-16px!important}.mt-n5{margin-top:-20px!important}.mt-n6{margin-top:-24px!important}.mt-n7{margin-top:-28px!important}.mt-n8{margin-top:-32px!important}.mt-n9{margin-top:-36px!important}.mt-n10{margin-top:-40px!important}.mt-n11{margin-top:-44px!important}.mt-n12{margin-top:-48px!important}.mt-n13{margin-top:-52px!important}.mt-n14{margin-top:-56px!important}.mt-n15{margin-top:-60px!important}.mt-n16{margin-top:-64px!important}.mr-n1{margin-right:-4px!important}.mr-n2{margin-right:-8px!important}.mr-n3{margin-right:-12px!important}.mr-n4{margin-right:-16px!important}.mr-n5{margin-right:-20px!important}.mr-n6{margin-right:-24px!important}.mr-n7{margin-right:-28px!important}.mr-n8{margin-right:-32px!important}.mr-n9{margin-right:-36px!important}.mr-n10{margin-right:-40px!important}.mr-n11{margin-right:-44px!important}.mr-n12{margin-right:-48px!important}.mr-n13{margin-right:-52px!important}.mr-n14{margin-right:-56px!important}.mr-n15{margin-right:-60px!important}.mr-n16{margin-right:-64px!important}.mb-n1{margin-bottom:-4px!important}.mb-n2{margin-bottom:-8px!important}.mb-n3{margin-bottom:-12px!important}.mb-n4{margin-bottom:-16px!important}.mb-n5{margin-bottom:-20px!important}.mb-n6{margin-bottom:-24px!important}.mb-n7{margin-bottom:-28px!important}.mb-n8{margin-bottom:-32px!important}.mb-n9{margin-bottom:-36px!important}.mb-n10{margin-bottom:-40px!important}.mb-n11{margin-bottom:-44px!important}.mb-n12{margin-bottom:-48px!important}.mb-n13{margin-bottom:-52px!important}.mb-n14{margin-bottom:-56px!important}.mb-n15{margin-bottom:-60px!important}.mb-n16{margin-bottom:-64px!important}.ml-n1{margin-left:-4px!important}.ml-n2{margin-left:-8px!important}.ml-n3{margin-left:-12px!important}.ml-n4{margin-left:-16px!important}.ml-n5{margin-left:-20px!important}.ml-n6{margin-left:-24px!important}.ml-n7{margin-left:-28px!important}.ml-n8{margin-left:-32px!important}.ml-n9{margin-left:-36px!important}.ml-n10{margin-left:-40px!important}.ml-n11{margin-left:-44px!important}.ml-n12{margin-left:-48px!important}.ml-n13{margin-left:-52px!important}.ml-n14{margin-left:-56px!important}.ml-n15{margin-left:-60px!important}.ml-n16{margin-left:-64px!important}.ms-n1{margin-inline-start:-4px!important}.ms-n2{margin-inline-start:-8px!important}.ms-n3{margin-inline-start:-12px!important}.ms-n4{margin-inline-start:-16px!important}.ms-n5{margin-inline-start:-20px!important}.ms-n6{margin-inline-start:-24px!important}.ms-n7{margin-inline-start:-28px!important}.ms-n8{margin-inline-start:-32px!important}.ms-n9{margin-inline-start:-36px!important}.ms-n10{margin-inline-start:-40px!important}.ms-n11{margin-inline-start:-44px!important}.ms-n12{margin-inline-start:-48px!important}.ms-n13{margin-inline-start:-52px!important}.ms-n14{margin-inline-start:-56px!important}.ms-n15{margin-inline-start:-60px!important}.ms-n16{margin-inline-start:-64px!important}.me-n1{margin-inline-end:-4px!important}.me-n2{margin-inline-end:-8px!important}.me-n3{margin-inline-end:-12px!important}.me-n4{margin-inline-end:-16px!important}.me-n5{margin-inline-end:-20px!important}.me-n6{margin-inline-end:-24px!important}.me-n7{margin-inline-end:-28px!important}.me-n8{margin-inline-end:-32px!important}.me-n9{margin-inline-end:-36px!important}.me-n10{margin-inline-end:-40px!important}.me-n11{margin-inline-end:-44px!important}.me-n12{margin-inline-end:-48px!important}.me-n13{margin-inline-end:-52px!important}.me-n14{margin-inline-end:-56px!important}.me-n15{margin-inline-end:-60px!important}.me-n16{margin-inline-end:-64px!important}.pa-0{padding:0!important}.pa-1{padding:4px!important}.pa-2{padding:8px!important}.pa-3{padding:12px!important}.pa-4{padding:16px!important}.pa-5{padding:20px!important}.pa-6{padding:24px!important}.pa-7{padding:28px!important}.pa-8{padding:32px!important}.pa-9{padding:36px!important}.pa-10{padding:40px!important}.pa-11{padding:44px!important}.pa-12{padding:48px!important}.pa-13{padding:52px!important}.pa-14{padding:56px!important}.pa-15{padding:60px!important}.pa-16{padding:64px!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:4px!important;padding-left:4px!important}.px-2{padding-right:8px!important;padding-left:8px!important}.px-3{padding-right:12px!important;padding-left:12px!important}.px-4{padding-right:16px!important;padding-left:16px!important}.px-5{padding-right:20px!important;padding-left:20px!important}.px-6{padding-right:24px!important;padding-left:24px!important}.px-7{padding-right:28px!important;padding-left:28px!important}.px-8{padding-right:32px!important;padding-left:32px!important}.px-9{padding-right:36px!important;padding-left:36px!important}.px-10{padding-right:40px!important;padding-left:40px!important}.px-11{padding-right:44px!important;padding-left:44px!important}.px-12{padding-right:48px!important;padding-left:48px!important}.px-13{padding-right:52px!important;padding-left:52px!important}.px-14{padding-right:56px!important;padding-left:56px!important}.px-15{padding-right:60px!important;padding-left:60px!important}.px-16{padding-right:64px!important;padding-left:64px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:4px!important;padding-bottom:4px!important}.py-2{padding-top:8px!important;padding-bottom:8px!important}.py-3{padding-top:12px!important;padding-bottom:12px!important}.py-4{padding-top:16px!important;padding-bottom:16px!important}.py-5{padding-top:20px!important;padding-bottom:20px!important}.py-6{padding-top:24px!important;padding-bottom:24px!important}.py-7{padding-top:28px!important;padding-bottom:28px!important}.py-8{padding-top:32px!important;padding-bottom:32px!important}.py-9{padding-top:36px!important;padding-bottom:36px!important}.py-10{padding-top:40px!important;padding-bottom:40px!important}.py-11{padding-top:44px!important;padding-bottom:44px!important}.py-12{padding-top:48px!important;padding-bottom:48px!important}.py-13{padding-top:52px!important;padding-bottom:52px!important}.py-14{padding-top:56px!important;padding-bottom:56px!important}.py-15{padding-top:60px!important;padding-bottom:60px!important}.py-16{padding-top:64px!important;padding-bottom:64px!important}.pt-0{padding-top:0!important}.pt-1{padding-top:4px!important}.pt-2{padding-top:8px!important}.pt-3{padding-top:12px!important}.pt-4{padding-top:16px!important}.pt-5{padding-top:20px!important}.pt-6{padding-top:24px!important}.pt-7{padding-top:28px!important}.pt-8{padding-top:32px!important}.pt-9{padding-top:36px!important}.pt-10{padding-top:40px!important}.pt-11{padding-top:44px!important}.pt-12{padding-top:48px!important}.pt-13{padding-top:52px!important}.pt-14{padding-top:56px!important}.pt-15{padding-top:60px!important}.pt-16{padding-top:64px!important}.pr-0{padding-right:0!important}.pr-1{padding-right:4px!important}.pr-2{padding-right:8px!important}.pr-3{padding-right:12px!important}.pr-4{padding-right:16px!important}.pr-5{padding-right:20px!important}.pr-6{padding-right:24px!important}.pr-7{padding-right:28px!important}.pr-8{padding-right:32px!important}.pr-9{padding-right:36px!important}.pr-10{padding-right:40px!important}.pr-11{padding-right:44px!important}.pr-12{padding-right:48px!important}.pr-13{padding-right:52px!important}.pr-14{padding-right:56px!important}.pr-15{padding-right:60px!important}.pr-16{padding-right:64px!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:4px!important}.pb-2{padding-bottom:8px!important}.pb-3{padding-bottom:12px!important}.pb-4{padding-bottom:16px!important}.pb-5{padding-bottom:20px!important}.pb-6{padding-bottom:24px!important}.pb-7{padding-bottom:28px!important}.pb-8{padding-bottom:32px!important}.pb-9{padding-bottom:36px!important}.pb-10{padding-bottom:40px!important}.pb-11{padding-bottom:44px!important}.pb-12{padding-bottom:48px!important}.pb-13{padding-bottom:52px!important}.pb-14{padding-bottom:56px!important}.pb-15{padding-bottom:60px!important}.pb-16{padding-bottom:64px!important}.pl-0{padding-left:0!important}.pl-1{padding-left:4px!important}.pl-2{padding-left:8px!important}.pl-3{padding-left:12px!important}.pl-4{padding-left:16px!important}.pl-5{padding-left:20px!important}.pl-6{padding-left:24px!important}.pl-7{padding-left:28px!important}.pl-8{padding-left:32px!important}.pl-9{padding-left:36px!important}.pl-10{padding-left:40px!important}.pl-11{padding-left:44px!important}.pl-12{padding-left:48px!important}.pl-13{padding-left:52px!important}.pl-14{padding-left:56px!important}.pl-15{padding-left:60px!important}.pl-16{padding-left:64px!important}.ps-0{padding-inline-start:0px!important}.ps-1{padding-inline-start:4px!important}.ps-2{padding-inline-start:8px!important}.ps-3{padding-inline-start:12px!important}.ps-4{padding-inline-start:16px!important}.ps-5{padding-inline-start:20px!important}.ps-6{padding-inline-start:24px!important}.ps-7{padding-inline-start:28px!important}.ps-8{padding-inline-start:32px!important}.ps-9{padding-inline-start:36px!important}.ps-10{padding-inline-start:40px!important}.ps-11{padding-inline-start:44px!important}.ps-12{padding-inline-start:48px!important}.ps-13{padding-inline-start:52px!important}.ps-14{padding-inline-start:56px!important}.ps-15{padding-inline-start:60px!important}.ps-16{padding-inline-start:64px!important}.pe-0{padding-inline-end:0px!important}.pe-1{padding-inline-end:4px!important}.pe-2{padding-inline-end:8px!important}.pe-3{padding-inline-end:12px!important}.pe-4{padding-inline-end:16px!important}.pe-5{padding-inline-end:20px!important}.pe-6{padding-inline-end:24px!important}.pe-7{padding-inline-end:28px!important}.pe-8{padding-inline-end:32px!important}.pe-9{padding-inline-end:36px!important}.pe-10{padding-inline-end:40px!important}.pe-11{padding-inline-end:44px!important}.pe-12{padding-inline-end:48px!important}.pe-13{padding-inline-end:52px!important}.pe-14{padding-inline-end:56px!important}.pe-15{padding-inline-end:60px!important}.pe-16{padding-inline-end:64px!important}.rounded-0{border-radius:0!important}.rounded-sm{border-radius:2px!important}.rounded{border-radius:4px!important}.rounded-lg{border-radius:8px!important}.rounded-xl{border-radius:24px!important}.rounded-pill{border-radius:9999px!important}.rounded-circle{border-radius:50%!important}.rounded-shaped{border-radius:24px 0!important}.rounded-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px!important;border-top-right-radius:2px!important}.rounded-t{border-top-left-radius:4px!important;border-top-right-radius:4px!important}.rounded-t-lg{border-top-left-radius:8px!important;border-top-right-radius:8px!important}.rounded-t-xl{border-top-left-radius:24px!important;border-top-right-radius:24px!important}.rounded-t-pill{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-t-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-t-shaped{border-top-left-radius:24px!important;border-top-right-radius:0!important}.v-locale--is-ltr .rounded-e-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-e-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-e-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-e{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-e{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-e-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-e-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-e-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-e-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-e-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-e-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-e-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-e-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-e-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.rounded-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-sm{border-bottom-left-radius:2px!important;border-bottom-right-radius:2px!important}.rounded-b{border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important}.rounded-b-lg{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}.rounded-b-xl{border-bottom-left-radius:24px!important;border-bottom-right-radius:24px!important}.rounded-b-pill{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-b-circle{border-bottom-left-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-b-shaped{border-bottom-left-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-s-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-s{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-s{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-s-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-s-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-s-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-s-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-s-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-s-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-s-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-s-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-s-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-ts-0{border-top-left-radius:0!important}.v-locale--is-rtl .rounded-ts-0{border-top-right-radius:0!important}.v-locale--is-ltr .rounded-ts-sm{border-top-left-radius:2px!important}.v-locale--is-rtl .rounded-ts-sm{border-top-right-radius:2px!important}.v-locale--is-ltr .rounded-ts{border-top-left-radius:4px!important}.v-locale--is-rtl .rounded-ts{border-top-right-radius:4px!important}.v-locale--is-ltr .rounded-ts-lg{border-top-left-radius:8px!important}.v-locale--is-rtl .rounded-ts-lg{border-top-right-radius:8px!important}.v-locale--is-ltr .rounded-ts-xl{border-top-left-radius:24px!important}.v-locale--is-rtl .rounded-ts-xl{border-top-right-radius:24px!important}.v-locale--is-ltr .rounded-ts-pill{border-top-left-radius:9999px!important}.v-locale--is-rtl .rounded-ts-pill{border-top-right-radius:9999px!important}.v-locale--is-ltr .rounded-ts-circle{border-top-left-radius:50%!important}.v-locale--is-rtl .rounded-ts-circle{border-top-right-radius:50%!important}.v-locale--is-ltr .rounded-ts-shaped{border-top-left-radius:24px 0!important}.v-locale--is-rtl .rounded-ts-shaped{border-top-right-radius:24px 0!important}.v-locale--is-ltr .rounded-te-0{border-top-right-radius:0!important}.v-locale--is-rtl .rounded-te-0{border-top-left-radius:0!important}.v-locale--is-ltr .rounded-te-sm{border-top-right-radius:2px!important}.v-locale--is-rtl .rounded-te-sm{border-top-left-radius:2px!important}.v-locale--is-ltr .rounded-te{border-top-right-radius:4px!important}.v-locale--is-rtl .rounded-te{border-top-left-radius:4px!important}.v-locale--is-ltr .rounded-te-lg{border-top-right-radius:8px!important}.v-locale--is-rtl .rounded-te-lg{border-top-left-radius:8px!important}.v-locale--is-ltr .rounded-te-xl{border-top-right-radius:24px!important}.v-locale--is-rtl .rounded-te-xl{border-top-left-radius:24px!important}.v-locale--is-ltr .rounded-te-pill{border-top-right-radius:9999px!important}.v-locale--is-rtl .rounded-te-pill{border-top-left-radius:9999px!important}.v-locale--is-ltr .rounded-te-circle{border-top-right-radius:50%!important}.v-locale--is-rtl .rounded-te-circle{border-top-left-radius:50%!important}.v-locale--is-ltr .rounded-te-shaped{border-top-right-radius:24px 0!important}.v-locale--is-rtl .rounded-te-shaped{border-top-left-radius:24px 0!important}.v-locale--is-ltr .rounded-be-0{border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-be-0{border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-be-sm{border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-be-sm{border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-be{border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-be{border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-be-lg{border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-be-lg{border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-be-xl{border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-be-xl{border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-be-pill{border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-be-pill{border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-be-circle{border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-be-circle{border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-be-shaped{border-bottom-right-radius:24px 0!important}.v-locale--is-rtl .rounded-be-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-ltr .rounded-bs-0{border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-bs-0{border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-bs-sm{border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-bs-sm{border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-bs{border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-bs{border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-bs-lg{border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-bs-lg{border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-bs-xl{border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-bs-xl{border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-bs-pill{border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-bs-pill{border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-bs-circle{border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-bs-circle{border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-bs-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-rtl .rounded-bs-shaped{border-bottom-right-radius:24px 0!important}.border-0{border-width:0!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border,.border-thin{border-width:thin!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-sm{border-width:1px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-md{border-width:2px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-lg{border-width:4px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-xl{border-width:8px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-opacity-0{--v-border-opacity: 0 !important}.border-opacity{--v-border-opacity: .12 !important}.border-opacity-25{--v-border-opacity: .25 !important}.border-opacity-50{--v-border-opacity: .5 !important}.border-opacity-75{--v-border-opacity: .75 !important}.border-opacity-100{--v-border-opacity: 1 !important}.border-t-0{border-block-start-width:0!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t,.border-t-thin{border-block-start-width:thin!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-sm{border-block-start-width:1px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-md{border-block-start-width:2px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-lg{border-block-start-width:4px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-xl{border-block-start-width:8px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-0{border-inline-end-width:0!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e,.border-e-thin{border-inline-end-width:thin!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-sm{border-inline-end-width:1px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-md{border-inline-end-width:2px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-lg{border-inline-end-width:4px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-xl{border-inline-end-width:8px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-0{border-block-end-width:0!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b,.border-b-thin{border-block-end-width:thin!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-sm{border-block-end-width:1px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-md{border-block-end-width:2px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-lg{border-block-end-width:4px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-xl{border-block-end-width:8px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-0{border-inline-start-width:0!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s,.border-s-thin{border-inline-start-width:thin!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-sm{border-inline-start-width:1px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-md{border-inline-start-width:2px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-lg{border-inline-start-width:4px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-xl{border-inline-start-width:8px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-none{border-style:none!important}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-start{text-align:start!important}.text-end{text-align:end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-none{text-decoration:none!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-underline{text-decoration:underline!important}.text-wrap{white-space:normal!important}.text-no-wrap{white-space:nowrap!important}.text-pre{white-space:pre!important}.text-pre-line{white-space:pre-line!important}.text-pre-wrap{white-space:pre-wrap!important}.text-break{overflow-wrap:break-word!important;word-break:break-word!important}.opacity-hover{opacity:var(--v-hover-opacity)!important}.opacity-focus{opacity:var(--v-focus-opacity)!important}.opacity-selected{opacity:var(--v-selected-opacity)!important}.opacity-activated{opacity:var(--v-activated-opacity)!important}.opacity-pressed{opacity:var(--v-pressed-opacity)!important}.opacity-dragged{opacity:var(--v-dragged-opacity)!important}.opacity-0{opacity:0!important}.opacity-10{opacity:.1!important}.opacity-20{opacity:.2!important}.opacity-30{opacity:.3!important}.opacity-40{opacity:.4!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-80{opacity:.8!important}.opacity-90{opacity:.9!important}.opacity-100{opacity:1!important}.text-high-emphasis{color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))!important}.text-medium-emphasis{color:rgba(var(--v-theme-on-background),var(--v-medium-emphasis-opacity))!important}.text-disabled{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity))!important}.text-truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.text-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-none{text-transform:none!important}.text-capitalize{text-transform:capitalize!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.font-weight-thin{font-weight:100!important}.font-weight-light{font-weight:300!important}.font-weight-regular{font-weight:400!important}.font-weight-medium{font-weight:500!important}.font-weight-bold{font-weight:700!important}.font-weight-black{font-weight:900!important}.font-italic{font-style:italic!important}.text-mono{font-family:monospace!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.right-0{right:0!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.cursor-auto{cursor:auto!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-help{cursor:help!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-progress{cursor:progress!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-none{cursor:none!important}.fill-height{height:100%!important}.h-auto{height:auto!important}.h-screen{height:100vh!important}.h-0{height:0!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-screen{height:100dvh!important}.w-auto{width:auto!important}.w-0{width:0!important}.w-25{width:25%!important}.w-33{width:33%!important}.w-50{width:50%!important}.w-66{width:66%!important}.w-75{width:75%!important}.w-100{width:100%!important}@media (min-width: 600px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.float-sm-none{float:none!important}.float-sm-left{float:left!important}.float-sm-right{float:right!important}.v-locale--is-rtl .float-sm-end{float:left!important}.v-locale--is-rtl .float-sm-start,.v-locale--is-ltr .float-sm-end{float:right!important}.v-locale--is-ltr .float-sm-start{float:left!important}.flex-sm-fill,.flex-sm-1-1{flex:1 1 auto!important}.flex-sm-1-0{flex:1 0 auto!important}.flex-sm-0-1{flex:0 1 auto!important}.flex-sm-0-0{flex:0 0 auto!important}.flex-sm-1-1-100{flex:1 1 100%!important}.flex-sm-1-0-100{flex:1 0 100%!important}.flex-sm-0-1-100{flex:0 1 100%!important}.flex-sm-0-0-100{flex:0 0 100%!important}.flex-sm-1-1-0{flex:1 1 0!important}.flex-sm-1-0-0{flex:1 0 0!important}.flex-sm-0-1-0{flex:0 1 0!important}.flex-sm-0-0-0{flex:0 0 0!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-sm-start{justify-content:flex-start!important}.justify-sm-end{justify-content:flex-end!important}.justify-sm-center{justify-content:center!important}.justify-sm-space-between{justify-content:space-between!important}.justify-sm-space-around{justify-content:space-around!important}.justify-sm-space-evenly{justify-content:space-evenly!important}.align-sm-start{align-items:flex-start!important}.align-sm-end{align-items:flex-end!important}.align-sm-center{align-items:center!important}.align-sm-baseline{align-items:baseline!important}.align-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-space-between{align-content:space-between!important}.align-content-sm-space-around{align-content:space-around!important}.align-content-sm-space-evenly{align-content:space-evenly!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-6{order:6!important}.order-sm-7{order:7!important}.order-sm-8{order:8!important}.order-sm-9{order:9!important}.order-sm-10{order:10!important}.order-sm-11{order:11!important}.order-sm-12{order:12!important}.order-sm-last{order:13!important}.ga-sm-0{gap:0px!important}.ga-sm-1{gap:4px!important}.ga-sm-2{gap:8px!important}.ga-sm-3{gap:12px!important}.ga-sm-4{gap:16px!important}.ga-sm-5{gap:20px!important}.ga-sm-6{gap:24px!important}.ga-sm-7{gap:28px!important}.ga-sm-8{gap:32px!important}.ga-sm-9{gap:36px!important}.ga-sm-10{gap:40px!important}.ga-sm-11{gap:44px!important}.ga-sm-12{gap:48px!important}.ga-sm-13{gap:52px!important}.ga-sm-14{gap:56px!important}.ga-sm-15{gap:60px!important}.ga-sm-16{gap:64px!important}.ga-sm-auto{gap:auto!important}.gr-sm-0{row-gap:0px!important}.gr-sm-1{row-gap:4px!important}.gr-sm-2{row-gap:8px!important}.gr-sm-3{row-gap:12px!important}.gr-sm-4{row-gap:16px!important}.gr-sm-5{row-gap:20px!important}.gr-sm-6{row-gap:24px!important}.gr-sm-7{row-gap:28px!important}.gr-sm-8{row-gap:32px!important}.gr-sm-9{row-gap:36px!important}.gr-sm-10{row-gap:40px!important}.gr-sm-11{row-gap:44px!important}.gr-sm-12{row-gap:48px!important}.gr-sm-13{row-gap:52px!important}.gr-sm-14{row-gap:56px!important}.gr-sm-15{row-gap:60px!important}.gr-sm-16{row-gap:64px!important}.gr-sm-auto{row-gap:auto!important}.gc-sm-0{column-gap:0px!important}.gc-sm-1{column-gap:4px!important}.gc-sm-2{column-gap:8px!important}.gc-sm-3{column-gap:12px!important}.gc-sm-4{column-gap:16px!important}.gc-sm-5{column-gap:20px!important}.gc-sm-6{column-gap:24px!important}.gc-sm-7{column-gap:28px!important}.gc-sm-8{column-gap:32px!important}.gc-sm-9{column-gap:36px!important}.gc-sm-10{column-gap:40px!important}.gc-sm-11{column-gap:44px!important}.gc-sm-12{column-gap:48px!important}.gc-sm-13{column-gap:52px!important}.gc-sm-14{column-gap:56px!important}.gc-sm-15{column-gap:60px!important}.gc-sm-16{column-gap:64px!important}.gc-sm-auto{column-gap:auto!important}.ma-sm-0{margin:0!important}.ma-sm-1{margin:4px!important}.ma-sm-2{margin:8px!important}.ma-sm-3{margin:12px!important}.ma-sm-4{margin:16px!important}.ma-sm-5{margin:20px!important}.ma-sm-6{margin:24px!important}.ma-sm-7{margin:28px!important}.ma-sm-8{margin:32px!important}.ma-sm-9{margin:36px!important}.ma-sm-10{margin:40px!important}.ma-sm-11{margin:44px!important}.ma-sm-12{margin:48px!important}.ma-sm-13{margin:52px!important}.ma-sm-14{margin:56px!important}.ma-sm-15{margin:60px!important}.ma-sm-16{margin:64px!important}.ma-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:4px!important;margin-left:4px!important}.mx-sm-2{margin-right:8px!important;margin-left:8px!important}.mx-sm-3{margin-right:12px!important;margin-left:12px!important}.mx-sm-4{margin-right:16px!important;margin-left:16px!important}.mx-sm-5{margin-right:20px!important;margin-left:20px!important}.mx-sm-6{margin-right:24px!important;margin-left:24px!important}.mx-sm-7{margin-right:28px!important;margin-left:28px!important}.mx-sm-8{margin-right:32px!important;margin-left:32px!important}.mx-sm-9{margin-right:36px!important;margin-left:36px!important}.mx-sm-10{margin-right:40px!important;margin-left:40px!important}.mx-sm-11{margin-right:44px!important;margin-left:44px!important}.mx-sm-12{margin-right:48px!important;margin-left:48px!important}.mx-sm-13{margin-right:52px!important;margin-left:52px!important}.mx-sm-14{margin-right:56px!important;margin-left:56px!important}.mx-sm-15{margin-right:60px!important;margin-left:60px!important}.mx-sm-16{margin-right:64px!important;margin-left:64px!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:4px!important;margin-bottom:4px!important}.my-sm-2{margin-top:8px!important;margin-bottom:8px!important}.my-sm-3{margin-top:12px!important;margin-bottom:12px!important}.my-sm-4{margin-top:16px!important;margin-bottom:16px!important}.my-sm-5{margin-top:20px!important;margin-bottom:20px!important}.my-sm-6{margin-top:24px!important;margin-bottom:24px!important}.my-sm-7{margin-top:28px!important;margin-bottom:28px!important}.my-sm-8{margin-top:32px!important;margin-bottom:32px!important}.my-sm-9{margin-top:36px!important;margin-bottom:36px!important}.my-sm-10{margin-top:40px!important;margin-bottom:40px!important}.my-sm-11{margin-top:44px!important;margin-bottom:44px!important}.my-sm-12{margin-top:48px!important;margin-bottom:48px!important}.my-sm-13{margin-top:52px!important;margin-bottom:52px!important}.my-sm-14{margin-top:56px!important;margin-bottom:56px!important}.my-sm-15{margin-top:60px!important;margin-bottom:60px!important}.my-sm-16{margin-top:64px!important;margin-bottom:64px!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:4px!important}.mt-sm-2{margin-top:8px!important}.mt-sm-3{margin-top:12px!important}.mt-sm-4{margin-top:16px!important}.mt-sm-5{margin-top:20px!important}.mt-sm-6{margin-top:24px!important}.mt-sm-7{margin-top:28px!important}.mt-sm-8{margin-top:32px!important}.mt-sm-9{margin-top:36px!important}.mt-sm-10{margin-top:40px!important}.mt-sm-11{margin-top:44px!important}.mt-sm-12{margin-top:48px!important}.mt-sm-13{margin-top:52px!important}.mt-sm-14{margin-top:56px!important}.mt-sm-15{margin-top:60px!important}.mt-sm-16{margin-top:64px!important}.mt-sm-auto{margin-top:auto!important}.mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:4px!important}.mr-sm-2{margin-right:8px!important}.mr-sm-3{margin-right:12px!important}.mr-sm-4{margin-right:16px!important}.mr-sm-5{margin-right:20px!important}.mr-sm-6{margin-right:24px!important}.mr-sm-7{margin-right:28px!important}.mr-sm-8{margin-right:32px!important}.mr-sm-9{margin-right:36px!important}.mr-sm-10{margin-right:40px!important}.mr-sm-11{margin-right:44px!important}.mr-sm-12{margin-right:48px!important}.mr-sm-13{margin-right:52px!important}.mr-sm-14{margin-right:56px!important}.mr-sm-15{margin-right:60px!important}.mr-sm-16{margin-right:64px!important}.mr-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:4px!important}.mb-sm-2{margin-bottom:8px!important}.mb-sm-3{margin-bottom:12px!important}.mb-sm-4{margin-bottom:16px!important}.mb-sm-5{margin-bottom:20px!important}.mb-sm-6{margin-bottom:24px!important}.mb-sm-7{margin-bottom:28px!important}.mb-sm-8{margin-bottom:32px!important}.mb-sm-9{margin-bottom:36px!important}.mb-sm-10{margin-bottom:40px!important}.mb-sm-11{margin-bottom:44px!important}.mb-sm-12{margin-bottom:48px!important}.mb-sm-13{margin-bottom:52px!important}.mb-sm-14{margin-bottom:56px!important}.mb-sm-15{margin-bottom:60px!important}.mb-sm-16{margin-bottom:64px!important}.mb-sm-auto{margin-bottom:auto!important}.ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:4px!important}.ml-sm-2{margin-left:8px!important}.ml-sm-3{margin-left:12px!important}.ml-sm-4{margin-left:16px!important}.ml-sm-5{margin-left:20px!important}.ml-sm-6{margin-left:24px!important}.ml-sm-7{margin-left:28px!important}.ml-sm-8{margin-left:32px!important}.ml-sm-9{margin-left:36px!important}.ml-sm-10{margin-left:40px!important}.ml-sm-11{margin-left:44px!important}.ml-sm-12{margin-left:48px!important}.ml-sm-13{margin-left:52px!important}.ml-sm-14{margin-left:56px!important}.ml-sm-15{margin-left:60px!important}.ml-sm-16{margin-left:64px!important}.ml-sm-auto{margin-left:auto!important}.ms-sm-0{margin-inline-start:0px!important}.ms-sm-1{margin-inline-start:4px!important}.ms-sm-2{margin-inline-start:8px!important}.ms-sm-3{margin-inline-start:12px!important}.ms-sm-4{margin-inline-start:16px!important}.ms-sm-5{margin-inline-start:20px!important}.ms-sm-6{margin-inline-start:24px!important}.ms-sm-7{margin-inline-start:28px!important}.ms-sm-8{margin-inline-start:32px!important}.ms-sm-9{margin-inline-start:36px!important}.ms-sm-10{margin-inline-start:40px!important}.ms-sm-11{margin-inline-start:44px!important}.ms-sm-12{margin-inline-start:48px!important}.ms-sm-13{margin-inline-start:52px!important}.ms-sm-14{margin-inline-start:56px!important}.ms-sm-15{margin-inline-start:60px!important}.ms-sm-16{margin-inline-start:64px!important}.ms-sm-auto{margin-inline-start:auto!important}.me-sm-0{margin-inline-end:0px!important}.me-sm-1{margin-inline-end:4px!important}.me-sm-2{margin-inline-end:8px!important}.me-sm-3{margin-inline-end:12px!important}.me-sm-4{margin-inline-end:16px!important}.me-sm-5{margin-inline-end:20px!important}.me-sm-6{margin-inline-end:24px!important}.me-sm-7{margin-inline-end:28px!important}.me-sm-8{margin-inline-end:32px!important}.me-sm-9{margin-inline-end:36px!important}.me-sm-10{margin-inline-end:40px!important}.me-sm-11{margin-inline-end:44px!important}.me-sm-12{margin-inline-end:48px!important}.me-sm-13{margin-inline-end:52px!important}.me-sm-14{margin-inline-end:56px!important}.me-sm-15{margin-inline-end:60px!important}.me-sm-16{margin-inline-end:64px!important}.me-sm-auto{margin-inline-end:auto!important}.ma-sm-n1{margin:-4px!important}.ma-sm-n2{margin:-8px!important}.ma-sm-n3{margin:-12px!important}.ma-sm-n4{margin:-16px!important}.ma-sm-n5{margin:-20px!important}.ma-sm-n6{margin:-24px!important}.ma-sm-n7{margin:-28px!important}.ma-sm-n8{margin:-32px!important}.ma-sm-n9{margin:-36px!important}.ma-sm-n10{margin:-40px!important}.ma-sm-n11{margin:-44px!important}.ma-sm-n12{margin:-48px!important}.ma-sm-n13{margin:-52px!important}.ma-sm-n14{margin:-56px!important}.ma-sm-n15{margin:-60px!important}.ma-sm-n16{margin:-64px!important}.mx-sm-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-sm-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-sm-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-sm-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-sm-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-sm-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-sm-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-sm-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-sm-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-sm-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-sm-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-sm-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-sm-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-sm-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-sm-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-sm-n16{margin-right:-64px!important;margin-left:-64px!important}.my-sm-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-sm-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-sm-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-sm-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-sm-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-sm-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-sm-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-sm-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-sm-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-sm-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-sm-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-sm-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-sm-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-sm-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-sm-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-sm-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-sm-n1{margin-top:-4px!important}.mt-sm-n2{margin-top:-8px!important}.mt-sm-n3{margin-top:-12px!important}.mt-sm-n4{margin-top:-16px!important}.mt-sm-n5{margin-top:-20px!important}.mt-sm-n6{margin-top:-24px!important}.mt-sm-n7{margin-top:-28px!important}.mt-sm-n8{margin-top:-32px!important}.mt-sm-n9{margin-top:-36px!important}.mt-sm-n10{margin-top:-40px!important}.mt-sm-n11{margin-top:-44px!important}.mt-sm-n12{margin-top:-48px!important}.mt-sm-n13{margin-top:-52px!important}.mt-sm-n14{margin-top:-56px!important}.mt-sm-n15{margin-top:-60px!important}.mt-sm-n16{margin-top:-64px!important}.mr-sm-n1{margin-right:-4px!important}.mr-sm-n2{margin-right:-8px!important}.mr-sm-n3{margin-right:-12px!important}.mr-sm-n4{margin-right:-16px!important}.mr-sm-n5{margin-right:-20px!important}.mr-sm-n6{margin-right:-24px!important}.mr-sm-n7{margin-right:-28px!important}.mr-sm-n8{margin-right:-32px!important}.mr-sm-n9{margin-right:-36px!important}.mr-sm-n10{margin-right:-40px!important}.mr-sm-n11{margin-right:-44px!important}.mr-sm-n12{margin-right:-48px!important}.mr-sm-n13{margin-right:-52px!important}.mr-sm-n14{margin-right:-56px!important}.mr-sm-n15{margin-right:-60px!important}.mr-sm-n16{margin-right:-64px!important}.mb-sm-n1{margin-bottom:-4px!important}.mb-sm-n2{margin-bottom:-8px!important}.mb-sm-n3{margin-bottom:-12px!important}.mb-sm-n4{margin-bottom:-16px!important}.mb-sm-n5{margin-bottom:-20px!important}.mb-sm-n6{margin-bottom:-24px!important}.mb-sm-n7{margin-bottom:-28px!important}.mb-sm-n8{margin-bottom:-32px!important}.mb-sm-n9{margin-bottom:-36px!important}.mb-sm-n10{margin-bottom:-40px!important}.mb-sm-n11{margin-bottom:-44px!important}.mb-sm-n12{margin-bottom:-48px!important}.mb-sm-n13{margin-bottom:-52px!important}.mb-sm-n14{margin-bottom:-56px!important}.mb-sm-n15{margin-bottom:-60px!important}.mb-sm-n16{margin-bottom:-64px!important}.ml-sm-n1{margin-left:-4px!important}.ml-sm-n2{margin-left:-8px!important}.ml-sm-n3{margin-left:-12px!important}.ml-sm-n4{margin-left:-16px!important}.ml-sm-n5{margin-left:-20px!important}.ml-sm-n6{margin-left:-24px!important}.ml-sm-n7{margin-left:-28px!important}.ml-sm-n8{margin-left:-32px!important}.ml-sm-n9{margin-left:-36px!important}.ml-sm-n10{margin-left:-40px!important}.ml-sm-n11{margin-left:-44px!important}.ml-sm-n12{margin-left:-48px!important}.ml-sm-n13{margin-left:-52px!important}.ml-sm-n14{margin-left:-56px!important}.ml-sm-n15{margin-left:-60px!important}.ml-sm-n16{margin-left:-64px!important}.ms-sm-n1{margin-inline-start:-4px!important}.ms-sm-n2{margin-inline-start:-8px!important}.ms-sm-n3{margin-inline-start:-12px!important}.ms-sm-n4{margin-inline-start:-16px!important}.ms-sm-n5{margin-inline-start:-20px!important}.ms-sm-n6{margin-inline-start:-24px!important}.ms-sm-n7{margin-inline-start:-28px!important}.ms-sm-n8{margin-inline-start:-32px!important}.ms-sm-n9{margin-inline-start:-36px!important}.ms-sm-n10{margin-inline-start:-40px!important}.ms-sm-n11{margin-inline-start:-44px!important}.ms-sm-n12{margin-inline-start:-48px!important}.ms-sm-n13{margin-inline-start:-52px!important}.ms-sm-n14{margin-inline-start:-56px!important}.ms-sm-n15{margin-inline-start:-60px!important}.ms-sm-n16{margin-inline-start:-64px!important}.me-sm-n1{margin-inline-end:-4px!important}.me-sm-n2{margin-inline-end:-8px!important}.me-sm-n3{margin-inline-end:-12px!important}.me-sm-n4{margin-inline-end:-16px!important}.me-sm-n5{margin-inline-end:-20px!important}.me-sm-n6{margin-inline-end:-24px!important}.me-sm-n7{margin-inline-end:-28px!important}.me-sm-n8{margin-inline-end:-32px!important}.me-sm-n9{margin-inline-end:-36px!important}.me-sm-n10{margin-inline-end:-40px!important}.me-sm-n11{margin-inline-end:-44px!important}.me-sm-n12{margin-inline-end:-48px!important}.me-sm-n13{margin-inline-end:-52px!important}.me-sm-n14{margin-inline-end:-56px!important}.me-sm-n15{margin-inline-end:-60px!important}.me-sm-n16{margin-inline-end:-64px!important}.pa-sm-0{padding:0!important}.pa-sm-1{padding:4px!important}.pa-sm-2{padding:8px!important}.pa-sm-3{padding:12px!important}.pa-sm-4{padding:16px!important}.pa-sm-5{padding:20px!important}.pa-sm-6{padding:24px!important}.pa-sm-7{padding:28px!important}.pa-sm-8{padding:32px!important}.pa-sm-9{padding:36px!important}.pa-sm-10{padding:40px!important}.pa-sm-11{padding:44px!important}.pa-sm-12{padding:48px!important}.pa-sm-13{padding:52px!important}.pa-sm-14{padding:56px!important}.pa-sm-15{padding:60px!important}.pa-sm-16{padding:64px!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:4px!important;padding-left:4px!important}.px-sm-2{padding-right:8px!important;padding-left:8px!important}.px-sm-3{padding-right:12px!important;padding-left:12px!important}.px-sm-4{padding-right:16px!important;padding-left:16px!important}.px-sm-5{padding-right:20px!important;padding-left:20px!important}.px-sm-6{padding-right:24px!important;padding-left:24px!important}.px-sm-7{padding-right:28px!important;padding-left:28px!important}.px-sm-8{padding-right:32px!important;padding-left:32px!important}.px-sm-9{padding-right:36px!important;padding-left:36px!important}.px-sm-10{padding-right:40px!important;padding-left:40px!important}.px-sm-11{padding-right:44px!important;padding-left:44px!important}.px-sm-12{padding-right:48px!important;padding-left:48px!important}.px-sm-13{padding-right:52px!important;padding-left:52px!important}.px-sm-14{padding-right:56px!important;padding-left:56px!important}.px-sm-15{padding-right:60px!important;padding-left:60px!important}.px-sm-16{padding-right:64px!important;padding-left:64px!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:4px!important;padding-bottom:4px!important}.py-sm-2{padding-top:8px!important;padding-bottom:8px!important}.py-sm-3{padding-top:12px!important;padding-bottom:12px!important}.py-sm-4{padding-top:16px!important;padding-bottom:16px!important}.py-sm-5{padding-top:20px!important;padding-bottom:20px!important}.py-sm-6{padding-top:24px!important;padding-bottom:24px!important}.py-sm-7{padding-top:28px!important;padding-bottom:28px!important}.py-sm-8{padding-top:32px!important;padding-bottom:32px!important}.py-sm-9{padding-top:36px!important;padding-bottom:36px!important}.py-sm-10{padding-top:40px!important;padding-bottom:40px!important}.py-sm-11{padding-top:44px!important;padding-bottom:44px!important}.py-sm-12{padding-top:48px!important;padding-bottom:48px!important}.py-sm-13{padding-top:52px!important;padding-bottom:52px!important}.py-sm-14{padding-top:56px!important;padding-bottom:56px!important}.py-sm-15{padding-top:60px!important;padding-bottom:60px!important}.py-sm-16{padding-top:64px!important;padding-bottom:64px!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:4px!important}.pt-sm-2{padding-top:8px!important}.pt-sm-3{padding-top:12px!important}.pt-sm-4{padding-top:16px!important}.pt-sm-5{padding-top:20px!important}.pt-sm-6{padding-top:24px!important}.pt-sm-7{padding-top:28px!important}.pt-sm-8{padding-top:32px!important}.pt-sm-9{padding-top:36px!important}.pt-sm-10{padding-top:40px!important}.pt-sm-11{padding-top:44px!important}.pt-sm-12{padding-top:48px!important}.pt-sm-13{padding-top:52px!important}.pt-sm-14{padding-top:56px!important}.pt-sm-15{padding-top:60px!important}.pt-sm-16{padding-top:64px!important}.pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:4px!important}.pr-sm-2{padding-right:8px!important}.pr-sm-3{padding-right:12px!important}.pr-sm-4{padding-right:16px!important}.pr-sm-5{padding-right:20px!important}.pr-sm-6{padding-right:24px!important}.pr-sm-7{padding-right:28px!important}.pr-sm-8{padding-right:32px!important}.pr-sm-9{padding-right:36px!important}.pr-sm-10{padding-right:40px!important}.pr-sm-11{padding-right:44px!important}.pr-sm-12{padding-right:48px!important}.pr-sm-13{padding-right:52px!important}.pr-sm-14{padding-right:56px!important}.pr-sm-15{padding-right:60px!important}.pr-sm-16{padding-right:64px!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:4px!important}.pb-sm-2{padding-bottom:8px!important}.pb-sm-3{padding-bottom:12px!important}.pb-sm-4{padding-bottom:16px!important}.pb-sm-5{padding-bottom:20px!important}.pb-sm-6{padding-bottom:24px!important}.pb-sm-7{padding-bottom:28px!important}.pb-sm-8{padding-bottom:32px!important}.pb-sm-9{padding-bottom:36px!important}.pb-sm-10{padding-bottom:40px!important}.pb-sm-11{padding-bottom:44px!important}.pb-sm-12{padding-bottom:48px!important}.pb-sm-13{padding-bottom:52px!important}.pb-sm-14{padding-bottom:56px!important}.pb-sm-15{padding-bottom:60px!important}.pb-sm-16{padding-bottom:64px!important}.pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:4px!important}.pl-sm-2{padding-left:8px!important}.pl-sm-3{padding-left:12px!important}.pl-sm-4{padding-left:16px!important}.pl-sm-5{padding-left:20px!important}.pl-sm-6{padding-left:24px!important}.pl-sm-7{padding-left:28px!important}.pl-sm-8{padding-left:32px!important}.pl-sm-9{padding-left:36px!important}.pl-sm-10{padding-left:40px!important}.pl-sm-11{padding-left:44px!important}.pl-sm-12{padding-left:48px!important}.pl-sm-13{padding-left:52px!important}.pl-sm-14{padding-left:56px!important}.pl-sm-15{padding-left:60px!important}.pl-sm-16{padding-left:64px!important}.ps-sm-0{padding-inline-start:0px!important}.ps-sm-1{padding-inline-start:4px!important}.ps-sm-2{padding-inline-start:8px!important}.ps-sm-3{padding-inline-start:12px!important}.ps-sm-4{padding-inline-start:16px!important}.ps-sm-5{padding-inline-start:20px!important}.ps-sm-6{padding-inline-start:24px!important}.ps-sm-7{padding-inline-start:28px!important}.ps-sm-8{padding-inline-start:32px!important}.ps-sm-9{padding-inline-start:36px!important}.ps-sm-10{padding-inline-start:40px!important}.ps-sm-11{padding-inline-start:44px!important}.ps-sm-12{padding-inline-start:48px!important}.ps-sm-13{padding-inline-start:52px!important}.ps-sm-14{padding-inline-start:56px!important}.ps-sm-15{padding-inline-start:60px!important}.ps-sm-16{padding-inline-start:64px!important}.pe-sm-0{padding-inline-end:0px!important}.pe-sm-1{padding-inline-end:4px!important}.pe-sm-2{padding-inline-end:8px!important}.pe-sm-3{padding-inline-end:12px!important}.pe-sm-4{padding-inline-end:16px!important}.pe-sm-5{padding-inline-end:20px!important}.pe-sm-6{padding-inline-end:24px!important}.pe-sm-7{padding-inline-end:28px!important}.pe-sm-8{padding-inline-end:32px!important}.pe-sm-9{padding-inline-end:36px!important}.pe-sm-10{padding-inline-end:40px!important}.pe-sm-11{padding-inline-end:44px!important}.pe-sm-12{padding-inline-end:48px!important}.pe-sm-13{padding-inline-end:52px!important}.pe-sm-14{padding-inline-end:56px!important}.pe-sm-15{padding-inline-end:60px!important}.pe-sm-16{padding-inline-end:64px!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}.text-sm-justify{text-align:justify!important}.text-sm-start{text-align:start!important}.text-sm-end{text-align:end!important}.text-sm-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-sm-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-sm-auto{height:auto!important}.h-sm-screen{height:100vh!important}.h-sm-0{height:0!important}.h-sm-25{height:25%!important}.h-sm-50{height:50%!important}.h-sm-75{height:75%!important}.h-sm-100{height:100%!important}.w-sm-auto{width:auto!important}.w-sm-0{width:0!important}.w-sm-25{width:25%!important}.w-sm-33{width:33%!important}.w-sm-50{width:50%!important}.w-sm-66{width:66%!important}.w-sm-75{width:75%!important}.w-sm-100{width:100%!important}}@media (min-width: 960px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.float-md-none{float:none!important}.float-md-left{float:left!important}.float-md-right{float:right!important}.v-locale--is-rtl .float-md-end{float:left!important}.v-locale--is-rtl .float-md-start,.v-locale--is-ltr .float-md-end{float:right!important}.v-locale--is-ltr .float-md-start{float:left!important}.flex-md-fill,.flex-md-1-1{flex:1 1 auto!important}.flex-md-1-0{flex:1 0 auto!important}.flex-md-0-1{flex:0 1 auto!important}.flex-md-0-0{flex:0 0 auto!important}.flex-md-1-1-100{flex:1 1 100%!important}.flex-md-1-0-100{flex:1 0 100%!important}.flex-md-0-1-100{flex:0 1 100%!important}.flex-md-0-0-100{flex:0 0 100%!important}.flex-md-1-1-0{flex:1 1 0!important}.flex-md-1-0-0{flex:1 0 0!important}.flex-md-0-1-0{flex:0 1 0!important}.flex-md-0-0-0{flex:0 0 0!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-md-start{justify-content:flex-start!important}.justify-md-end{justify-content:flex-end!important}.justify-md-center{justify-content:center!important}.justify-md-space-between{justify-content:space-between!important}.justify-md-space-around{justify-content:space-around!important}.justify-md-space-evenly{justify-content:space-evenly!important}.align-md-start{align-items:flex-start!important}.align-md-end{align-items:flex-end!important}.align-md-center{align-items:center!important}.align-md-baseline{align-items:baseline!important}.align-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-space-between{align-content:space-between!important}.align-content-md-space-around{align-content:space-around!important}.align-content-md-space-evenly{align-content:space-evenly!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-6{order:6!important}.order-md-7{order:7!important}.order-md-8{order:8!important}.order-md-9{order:9!important}.order-md-10{order:10!important}.order-md-11{order:11!important}.order-md-12{order:12!important}.order-md-last{order:13!important}.ga-md-0{gap:0px!important}.ga-md-1{gap:4px!important}.ga-md-2{gap:8px!important}.ga-md-3{gap:12px!important}.ga-md-4{gap:16px!important}.ga-md-5{gap:20px!important}.ga-md-6{gap:24px!important}.ga-md-7{gap:28px!important}.ga-md-8{gap:32px!important}.ga-md-9{gap:36px!important}.ga-md-10{gap:40px!important}.ga-md-11{gap:44px!important}.ga-md-12{gap:48px!important}.ga-md-13{gap:52px!important}.ga-md-14{gap:56px!important}.ga-md-15{gap:60px!important}.ga-md-16{gap:64px!important}.ga-md-auto{gap:auto!important}.gr-md-0{row-gap:0px!important}.gr-md-1{row-gap:4px!important}.gr-md-2{row-gap:8px!important}.gr-md-3{row-gap:12px!important}.gr-md-4{row-gap:16px!important}.gr-md-5{row-gap:20px!important}.gr-md-6{row-gap:24px!important}.gr-md-7{row-gap:28px!important}.gr-md-8{row-gap:32px!important}.gr-md-9{row-gap:36px!important}.gr-md-10{row-gap:40px!important}.gr-md-11{row-gap:44px!important}.gr-md-12{row-gap:48px!important}.gr-md-13{row-gap:52px!important}.gr-md-14{row-gap:56px!important}.gr-md-15{row-gap:60px!important}.gr-md-16{row-gap:64px!important}.gr-md-auto{row-gap:auto!important}.gc-md-0{column-gap:0px!important}.gc-md-1{column-gap:4px!important}.gc-md-2{column-gap:8px!important}.gc-md-3{column-gap:12px!important}.gc-md-4{column-gap:16px!important}.gc-md-5{column-gap:20px!important}.gc-md-6{column-gap:24px!important}.gc-md-7{column-gap:28px!important}.gc-md-8{column-gap:32px!important}.gc-md-9{column-gap:36px!important}.gc-md-10{column-gap:40px!important}.gc-md-11{column-gap:44px!important}.gc-md-12{column-gap:48px!important}.gc-md-13{column-gap:52px!important}.gc-md-14{column-gap:56px!important}.gc-md-15{column-gap:60px!important}.gc-md-16{column-gap:64px!important}.gc-md-auto{column-gap:auto!important}.ma-md-0{margin:0!important}.ma-md-1{margin:4px!important}.ma-md-2{margin:8px!important}.ma-md-3{margin:12px!important}.ma-md-4{margin:16px!important}.ma-md-5{margin:20px!important}.ma-md-6{margin:24px!important}.ma-md-7{margin:28px!important}.ma-md-8{margin:32px!important}.ma-md-9{margin:36px!important}.ma-md-10{margin:40px!important}.ma-md-11{margin:44px!important}.ma-md-12{margin:48px!important}.ma-md-13{margin:52px!important}.ma-md-14{margin:56px!important}.ma-md-15{margin:60px!important}.ma-md-16{margin:64px!important}.ma-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:4px!important;margin-left:4px!important}.mx-md-2{margin-right:8px!important;margin-left:8px!important}.mx-md-3{margin-right:12px!important;margin-left:12px!important}.mx-md-4{margin-right:16px!important;margin-left:16px!important}.mx-md-5{margin-right:20px!important;margin-left:20px!important}.mx-md-6{margin-right:24px!important;margin-left:24px!important}.mx-md-7{margin-right:28px!important;margin-left:28px!important}.mx-md-8{margin-right:32px!important;margin-left:32px!important}.mx-md-9{margin-right:36px!important;margin-left:36px!important}.mx-md-10{margin-right:40px!important;margin-left:40px!important}.mx-md-11{margin-right:44px!important;margin-left:44px!important}.mx-md-12{margin-right:48px!important;margin-left:48px!important}.mx-md-13{margin-right:52px!important;margin-left:52px!important}.mx-md-14{margin-right:56px!important;margin-left:56px!important}.mx-md-15{margin-right:60px!important;margin-left:60px!important}.mx-md-16{margin-right:64px!important;margin-left:64px!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:4px!important;margin-bottom:4px!important}.my-md-2{margin-top:8px!important;margin-bottom:8px!important}.my-md-3{margin-top:12px!important;margin-bottom:12px!important}.my-md-4{margin-top:16px!important;margin-bottom:16px!important}.my-md-5{margin-top:20px!important;margin-bottom:20px!important}.my-md-6{margin-top:24px!important;margin-bottom:24px!important}.my-md-7{margin-top:28px!important;margin-bottom:28px!important}.my-md-8{margin-top:32px!important;margin-bottom:32px!important}.my-md-9{margin-top:36px!important;margin-bottom:36px!important}.my-md-10{margin-top:40px!important;margin-bottom:40px!important}.my-md-11{margin-top:44px!important;margin-bottom:44px!important}.my-md-12{margin-top:48px!important;margin-bottom:48px!important}.my-md-13{margin-top:52px!important;margin-bottom:52px!important}.my-md-14{margin-top:56px!important;margin-bottom:56px!important}.my-md-15{margin-top:60px!important;margin-bottom:60px!important}.my-md-16{margin-top:64px!important;margin-bottom:64px!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:4px!important}.mt-md-2{margin-top:8px!important}.mt-md-3{margin-top:12px!important}.mt-md-4{margin-top:16px!important}.mt-md-5{margin-top:20px!important}.mt-md-6{margin-top:24px!important}.mt-md-7{margin-top:28px!important}.mt-md-8{margin-top:32px!important}.mt-md-9{margin-top:36px!important}.mt-md-10{margin-top:40px!important}.mt-md-11{margin-top:44px!important}.mt-md-12{margin-top:48px!important}.mt-md-13{margin-top:52px!important}.mt-md-14{margin-top:56px!important}.mt-md-15{margin-top:60px!important}.mt-md-16{margin-top:64px!important}.mt-md-auto{margin-top:auto!important}.mr-md-0{margin-right:0!important}.mr-md-1{margin-right:4px!important}.mr-md-2{margin-right:8px!important}.mr-md-3{margin-right:12px!important}.mr-md-4{margin-right:16px!important}.mr-md-5{margin-right:20px!important}.mr-md-6{margin-right:24px!important}.mr-md-7{margin-right:28px!important}.mr-md-8{margin-right:32px!important}.mr-md-9{margin-right:36px!important}.mr-md-10{margin-right:40px!important}.mr-md-11{margin-right:44px!important}.mr-md-12{margin-right:48px!important}.mr-md-13{margin-right:52px!important}.mr-md-14{margin-right:56px!important}.mr-md-15{margin-right:60px!important}.mr-md-16{margin-right:64px!important}.mr-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:4px!important}.mb-md-2{margin-bottom:8px!important}.mb-md-3{margin-bottom:12px!important}.mb-md-4{margin-bottom:16px!important}.mb-md-5{margin-bottom:20px!important}.mb-md-6{margin-bottom:24px!important}.mb-md-7{margin-bottom:28px!important}.mb-md-8{margin-bottom:32px!important}.mb-md-9{margin-bottom:36px!important}.mb-md-10{margin-bottom:40px!important}.mb-md-11{margin-bottom:44px!important}.mb-md-12{margin-bottom:48px!important}.mb-md-13{margin-bottom:52px!important}.mb-md-14{margin-bottom:56px!important}.mb-md-15{margin-bottom:60px!important}.mb-md-16{margin-bottom:64px!important}.mb-md-auto{margin-bottom:auto!important}.ml-md-0{margin-left:0!important}.ml-md-1{margin-left:4px!important}.ml-md-2{margin-left:8px!important}.ml-md-3{margin-left:12px!important}.ml-md-4{margin-left:16px!important}.ml-md-5{margin-left:20px!important}.ml-md-6{margin-left:24px!important}.ml-md-7{margin-left:28px!important}.ml-md-8{margin-left:32px!important}.ml-md-9{margin-left:36px!important}.ml-md-10{margin-left:40px!important}.ml-md-11{margin-left:44px!important}.ml-md-12{margin-left:48px!important}.ml-md-13{margin-left:52px!important}.ml-md-14{margin-left:56px!important}.ml-md-15{margin-left:60px!important}.ml-md-16{margin-left:64px!important}.ml-md-auto{margin-left:auto!important}.ms-md-0{margin-inline-start:0px!important}.ms-md-1{margin-inline-start:4px!important}.ms-md-2{margin-inline-start:8px!important}.ms-md-3{margin-inline-start:12px!important}.ms-md-4{margin-inline-start:16px!important}.ms-md-5{margin-inline-start:20px!important}.ms-md-6{margin-inline-start:24px!important}.ms-md-7{margin-inline-start:28px!important}.ms-md-8{margin-inline-start:32px!important}.ms-md-9{margin-inline-start:36px!important}.ms-md-10{margin-inline-start:40px!important}.ms-md-11{margin-inline-start:44px!important}.ms-md-12{margin-inline-start:48px!important}.ms-md-13{margin-inline-start:52px!important}.ms-md-14{margin-inline-start:56px!important}.ms-md-15{margin-inline-start:60px!important}.ms-md-16{margin-inline-start:64px!important}.ms-md-auto{margin-inline-start:auto!important}.me-md-0{margin-inline-end:0px!important}.me-md-1{margin-inline-end:4px!important}.me-md-2{margin-inline-end:8px!important}.me-md-3{margin-inline-end:12px!important}.me-md-4{margin-inline-end:16px!important}.me-md-5{margin-inline-end:20px!important}.me-md-6{margin-inline-end:24px!important}.me-md-7{margin-inline-end:28px!important}.me-md-8{margin-inline-end:32px!important}.me-md-9{margin-inline-end:36px!important}.me-md-10{margin-inline-end:40px!important}.me-md-11{margin-inline-end:44px!important}.me-md-12{margin-inline-end:48px!important}.me-md-13{margin-inline-end:52px!important}.me-md-14{margin-inline-end:56px!important}.me-md-15{margin-inline-end:60px!important}.me-md-16{margin-inline-end:64px!important}.me-md-auto{margin-inline-end:auto!important}.ma-md-n1{margin:-4px!important}.ma-md-n2{margin:-8px!important}.ma-md-n3{margin:-12px!important}.ma-md-n4{margin:-16px!important}.ma-md-n5{margin:-20px!important}.ma-md-n6{margin:-24px!important}.ma-md-n7{margin:-28px!important}.ma-md-n8{margin:-32px!important}.ma-md-n9{margin:-36px!important}.ma-md-n10{margin:-40px!important}.ma-md-n11{margin:-44px!important}.ma-md-n12{margin:-48px!important}.ma-md-n13{margin:-52px!important}.ma-md-n14{margin:-56px!important}.ma-md-n15{margin:-60px!important}.ma-md-n16{margin:-64px!important}.mx-md-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-md-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-md-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-md-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-md-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-md-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-md-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-md-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-md-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-md-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-md-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-md-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-md-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-md-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-md-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-md-n16{margin-right:-64px!important;margin-left:-64px!important}.my-md-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-md-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-md-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-md-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-md-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-md-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-md-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-md-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-md-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-md-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-md-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-md-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-md-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-md-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-md-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-md-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-md-n1{margin-top:-4px!important}.mt-md-n2{margin-top:-8px!important}.mt-md-n3{margin-top:-12px!important}.mt-md-n4{margin-top:-16px!important}.mt-md-n5{margin-top:-20px!important}.mt-md-n6{margin-top:-24px!important}.mt-md-n7{margin-top:-28px!important}.mt-md-n8{margin-top:-32px!important}.mt-md-n9{margin-top:-36px!important}.mt-md-n10{margin-top:-40px!important}.mt-md-n11{margin-top:-44px!important}.mt-md-n12{margin-top:-48px!important}.mt-md-n13{margin-top:-52px!important}.mt-md-n14{margin-top:-56px!important}.mt-md-n15{margin-top:-60px!important}.mt-md-n16{margin-top:-64px!important}.mr-md-n1{margin-right:-4px!important}.mr-md-n2{margin-right:-8px!important}.mr-md-n3{margin-right:-12px!important}.mr-md-n4{margin-right:-16px!important}.mr-md-n5{margin-right:-20px!important}.mr-md-n6{margin-right:-24px!important}.mr-md-n7{margin-right:-28px!important}.mr-md-n8{margin-right:-32px!important}.mr-md-n9{margin-right:-36px!important}.mr-md-n10{margin-right:-40px!important}.mr-md-n11{margin-right:-44px!important}.mr-md-n12{margin-right:-48px!important}.mr-md-n13{margin-right:-52px!important}.mr-md-n14{margin-right:-56px!important}.mr-md-n15{margin-right:-60px!important}.mr-md-n16{margin-right:-64px!important}.mb-md-n1{margin-bottom:-4px!important}.mb-md-n2{margin-bottom:-8px!important}.mb-md-n3{margin-bottom:-12px!important}.mb-md-n4{margin-bottom:-16px!important}.mb-md-n5{margin-bottom:-20px!important}.mb-md-n6{margin-bottom:-24px!important}.mb-md-n7{margin-bottom:-28px!important}.mb-md-n8{margin-bottom:-32px!important}.mb-md-n9{margin-bottom:-36px!important}.mb-md-n10{margin-bottom:-40px!important}.mb-md-n11{margin-bottom:-44px!important}.mb-md-n12{margin-bottom:-48px!important}.mb-md-n13{margin-bottom:-52px!important}.mb-md-n14{margin-bottom:-56px!important}.mb-md-n15{margin-bottom:-60px!important}.mb-md-n16{margin-bottom:-64px!important}.ml-md-n1{margin-left:-4px!important}.ml-md-n2{margin-left:-8px!important}.ml-md-n3{margin-left:-12px!important}.ml-md-n4{margin-left:-16px!important}.ml-md-n5{margin-left:-20px!important}.ml-md-n6{margin-left:-24px!important}.ml-md-n7{margin-left:-28px!important}.ml-md-n8{margin-left:-32px!important}.ml-md-n9{margin-left:-36px!important}.ml-md-n10{margin-left:-40px!important}.ml-md-n11{margin-left:-44px!important}.ml-md-n12{margin-left:-48px!important}.ml-md-n13{margin-left:-52px!important}.ml-md-n14{margin-left:-56px!important}.ml-md-n15{margin-left:-60px!important}.ml-md-n16{margin-left:-64px!important}.ms-md-n1{margin-inline-start:-4px!important}.ms-md-n2{margin-inline-start:-8px!important}.ms-md-n3{margin-inline-start:-12px!important}.ms-md-n4{margin-inline-start:-16px!important}.ms-md-n5{margin-inline-start:-20px!important}.ms-md-n6{margin-inline-start:-24px!important}.ms-md-n7{margin-inline-start:-28px!important}.ms-md-n8{margin-inline-start:-32px!important}.ms-md-n9{margin-inline-start:-36px!important}.ms-md-n10{margin-inline-start:-40px!important}.ms-md-n11{margin-inline-start:-44px!important}.ms-md-n12{margin-inline-start:-48px!important}.ms-md-n13{margin-inline-start:-52px!important}.ms-md-n14{margin-inline-start:-56px!important}.ms-md-n15{margin-inline-start:-60px!important}.ms-md-n16{margin-inline-start:-64px!important}.me-md-n1{margin-inline-end:-4px!important}.me-md-n2{margin-inline-end:-8px!important}.me-md-n3{margin-inline-end:-12px!important}.me-md-n4{margin-inline-end:-16px!important}.me-md-n5{margin-inline-end:-20px!important}.me-md-n6{margin-inline-end:-24px!important}.me-md-n7{margin-inline-end:-28px!important}.me-md-n8{margin-inline-end:-32px!important}.me-md-n9{margin-inline-end:-36px!important}.me-md-n10{margin-inline-end:-40px!important}.me-md-n11{margin-inline-end:-44px!important}.me-md-n12{margin-inline-end:-48px!important}.me-md-n13{margin-inline-end:-52px!important}.me-md-n14{margin-inline-end:-56px!important}.me-md-n15{margin-inline-end:-60px!important}.me-md-n16{margin-inline-end:-64px!important}.pa-md-0{padding:0!important}.pa-md-1{padding:4px!important}.pa-md-2{padding:8px!important}.pa-md-3{padding:12px!important}.pa-md-4{padding:16px!important}.pa-md-5{padding:20px!important}.pa-md-6{padding:24px!important}.pa-md-7{padding:28px!important}.pa-md-8{padding:32px!important}.pa-md-9{padding:36px!important}.pa-md-10{padding:40px!important}.pa-md-11{padding:44px!important}.pa-md-12{padding:48px!important}.pa-md-13{padding:52px!important}.pa-md-14{padding:56px!important}.pa-md-15{padding:60px!important}.pa-md-16{padding:64px!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:4px!important;padding-left:4px!important}.px-md-2{padding-right:8px!important;padding-left:8px!important}.px-md-3{padding-right:12px!important;padding-left:12px!important}.px-md-4{padding-right:16px!important;padding-left:16px!important}.px-md-5{padding-right:20px!important;padding-left:20px!important}.px-md-6{padding-right:24px!important;padding-left:24px!important}.px-md-7{padding-right:28px!important;padding-left:28px!important}.px-md-8{padding-right:32px!important;padding-left:32px!important}.px-md-9{padding-right:36px!important;padding-left:36px!important}.px-md-10{padding-right:40px!important;padding-left:40px!important}.px-md-11{padding-right:44px!important;padding-left:44px!important}.px-md-12{padding-right:48px!important;padding-left:48px!important}.px-md-13{padding-right:52px!important;padding-left:52px!important}.px-md-14{padding-right:56px!important;padding-left:56px!important}.px-md-15{padding-right:60px!important;padding-left:60px!important}.px-md-16{padding-right:64px!important;padding-left:64px!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:4px!important;padding-bottom:4px!important}.py-md-2{padding-top:8px!important;padding-bottom:8px!important}.py-md-3{padding-top:12px!important;padding-bottom:12px!important}.py-md-4{padding-top:16px!important;padding-bottom:16px!important}.py-md-5{padding-top:20px!important;padding-bottom:20px!important}.py-md-6{padding-top:24px!important;padding-bottom:24px!important}.py-md-7{padding-top:28px!important;padding-bottom:28px!important}.py-md-8{padding-top:32px!important;padding-bottom:32px!important}.py-md-9{padding-top:36px!important;padding-bottom:36px!important}.py-md-10{padding-top:40px!important;padding-bottom:40px!important}.py-md-11{padding-top:44px!important;padding-bottom:44px!important}.py-md-12{padding-top:48px!important;padding-bottom:48px!important}.py-md-13{padding-top:52px!important;padding-bottom:52px!important}.py-md-14{padding-top:56px!important;padding-bottom:56px!important}.py-md-15{padding-top:60px!important;padding-bottom:60px!important}.py-md-16{padding-top:64px!important;padding-bottom:64px!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:4px!important}.pt-md-2{padding-top:8px!important}.pt-md-3{padding-top:12px!important}.pt-md-4{padding-top:16px!important}.pt-md-5{padding-top:20px!important}.pt-md-6{padding-top:24px!important}.pt-md-7{padding-top:28px!important}.pt-md-8{padding-top:32px!important}.pt-md-9{padding-top:36px!important}.pt-md-10{padding-top:40px!important}.pt-md-11{padding-top:44px!important}.pt-md-12{padding-top:48px!important}.pt-md-13{padding-top:52px!important}.pt-md-14{padding-top:56px!important}.pt-md-15{padding-top:60px!important}.pt-md-16{padding-top:64px!important}.pr-md-0{padding-right:0!important}.pr-md-1{padding-right:4px!important}.pr-md-2{padding-right:8px!important}.pr-md-3{padding-right:12px!important}.pr-md-4{padding-right:16px!important}.pr-md-5{padding-right:20px!important}.pr-md-6{padding-right:24px!important}.pr-md-7{padding-right:28px!important}.pr-md-8{padding-right:32px!important}.pr-md-9{padding-right:36px!important}.pr-md-10{padding-right:40px!important}.pr-md-11{padding-right:44px!important}.pr-md-12{padding-right:48px!important}.pr-md-13{padding-right:52px!important}.pr-md-14{padding-right:56px!important}.pr-md-15{padding-right:60px!important}.pr-md-16{padding-right:64px!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:4px!important}.pb-md-2{padding-bottom:8px!important}.pb-md-3{padding-bottom:12px!important}.pb-md-4{padding-bottom:16px!important}.pb-md-5{padding-bottom:20px!important}.pb-md-6{padding-bottom:24px!important}.pb-md-7{padding-bottom:28px!important}.pb-md-8{padding-bottom:32px!important}.pb-md-9{padding-bottom:36px!important}.pb-md-10{padding-bottom:40px!important}.pb-md-11{padding-bottom:44px!important}.pb-md-12{padding-bottom:48px!important}.pb-md-13{padding-bottom:52px!important}.pb-md-14{padding-bottom:56px!important}.pb-md-15{padding-bottom:60px!important}.pb-md-16{padding-bottom:64px!important}.pl-md-0{padding-left:0!important}.pl-md-1{padding-left:4px!important}.pl-md-2{padding-left:8px!important}.pl-md-3{padding-left:12px!important}.pl-md-4{padding-left:16px!important}.pl-md-5{padding-left:20px!important}.pl-md-6{padding-left:24px!important}.pl-md-7{padding-left:28px!important}.pl-md-8{padding-left:32px!important}.pl-md-9{padding-left:36px!important}.pl-md-10{padding-left:40px!important}.pl-md-11{padding-left:44px!important}.pl-md-12{padding-left:48px!important}.pl-md-13{padding-left:52px!important}.pl-md-14{padding-left:56px!important}.pl-md-15{padding-left:60px!important}.pl-md-16{padding-left:64px!important}.ps-md-0{padding-inline-start:0px!important}.ps-md-1{padding-inline-start:4px!important}.ps-md-2{padding-inline-start:8px!important}.ps-md-3{padding-inline-start:12px!important}.ps-md-4{padding-inline-start:16px!important}.ps-md-5{padding-inline-start:20px!important}.ps-md-6{padding-inline-start:24px!important}.ps-md-7{padding-inline-start:28px!important}.ps-md-8{padding-inline-start:32px!important}.ps-md-9{padding-inline-start:36px!important}.ps-md-10{padding-inline-start:40px!important}.ps-md-11{padding-inline-start:44px!important}.ps-md-12{padding-inline-start:48px!important}.ps-md-13{padding-inline-start:52px!important}.ps-md-14{padding-inline-start:56px!important}.ps-md-15{padding-inline-start:60px!important}.ps-md-16{padding-inline-start:64px!important}.pe-md-0{padding-inline-end:0px!important}.pe-md-1{padding-inline-end:4px!important}.pe-md-2{padding-inline-end:8px!important}.pe-md-3{padding-inline-end:12px!important}.pe-md-4{padding-inline-end:16px!important}.pe-md-5{padding-inline-end:20px!important}.pe-md-6{padding-inline-end:24px!important}.pe-md-7{padding-inline-end:28px!important}.pe-md-8{padding-inline-end:32px!important}.pe-md-9{padding-inline-end:36px!important}.pe-md-10{padding-inline-end:40px!important}.pe-md-11{padding-inline-end:44px!important}.pe-md-12{padding-inline-end:48px!important}.pe-md-13{padding-inline-end:52px!important}.pe-md-14{padding-inline-end:56px!important}.pe-md-15{padding-inline-end:60px!important}.pe-md-16{padding-inline-end:64px!important}.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}.text-md-justify{text-align:justify!important}.text-md-start{text-align:start!important}.text-md-end{text-align:end!important}.text-md-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-md-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-md-auto{height:auto!important}.h-md-screen{height:100vh!important}.h-md-0{height:0!important}.h-md-25{height:25%!important}.h-md-50{height:50%!important}.h-md-75{height:75%!important}.h-md-100{height:100%!important}.w-md-auto{width:auto!important}.w-md-0{width:0!important}.w-md-25{width:25%!important}.w-md-33{width:33%!important}.w-md-50{width:50%!important}.w-md-66{width:66%!important}.w-md-75{width:75%!important}.w-md-100{width:100%!important}}@media (min-width: 1280px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.float-lg-none{float:none!important}.float-lg-left{float:left!important}.float-lg-right{float:right!important}.v-locale--is-rtl .float-lg-end{float:left!important}.v-locale--is-rtl .float-lg-start,.v-locale--is-ltr .float-lg-end{float:right!important}.v-locale--is-ltr .float-lg-start{float:left!important}.flex-lg-fill,.flex-lg-1-1{flex:1 1 auto!important}.flex-lg-1-0{flex:1 0 auto!important}.flex-lg-0-1{flex:0 1 auto!important}.flex-lg-0-0{flex:0 0 auto!important}.flex-lg-1-1-100{flex:1 1 100%!important}.flex-lg-1-0-100{flex:1 0 100%!important}.flex-lg-0-1-100{flex:0 1 100%!important}.flex-lg-0-0-100{flex:0 0 100%!important}.flex-lg-1-1-0{flex:1 1 0!important}.flex-lg-1-0-0{flex:1 0 0!important}.flex-lg-0-1-0{flex:0 1 0!important}.flex-lg-0-0-0{flex:0 0 0!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-lg-start{justify-content:flex-start!important}.justify-lg-end{justify-content:flex-end!important}.justify-lg-center{justify-content:center!important}.justify-lg-space-between{justify-content:space-between!important}.justify-lg-space-around{justify-content:space-around!important}.justify-lg-space-evenly{justify-content:space-evenly!important}.align-lg-start{align-items:flex-start!important}.align-lg-end{align-items:flex-end!important}.align-lg-center{align-items:center!important}.align-lg-baseline{align-items:baseline!important}.align-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-space-between{align-content:space-between!important}.align-content-lg-space-around{align-content:space-around!important}.align-content-lg-space-evenly{align-content:space-evenly!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-6{order:6!important}.order-lg-7{order:7!important}.order-lg-8{order:8!important}.order-lg-9{order:9!important}.order-lg-10{order:10!important}.order-lg-11{order:11!important}.order-lg-12{order:12!important}.order-lg-last{order:13!important}.ga-lg-0{gap:0px!important}.ga-lg-1{gap:4px!important}.ga-lg-2{gap:8px!important}.ga-lg-3{gap:12px!important}.ga-lg-4{gap:16px!important}.ga-lg-5{gap:20px!important}.ga-lg-6{gap:24px!important}.ga-lg-7{gap:28px!important}.ga-lg-8{gap:32px!important}.ga-lg-9{gap:36px!important}.ga-lg-10{gap:40px!important}.ga-lg-11{gap:44px!important}.ga-lg-12{gap:48px!important}.ga-lg-13{gap:52px!important}.ga-lg-14{gap:56px!important}.ga-lg-15{gap:60px!important}.ga-lg-16{gap:64px!important}.ga-lg-auto{gap:auto!important}.gr-lg-0{row-gap:0px!important}.gr-lg-1{row-gap:4px!important}.gr-lg-2{row-gap:8px!important}.gr-lg-3{row-gap:12px!important}.gr-lg-4{row-gap:16px!important}.gr-lg-5{row-gap:20px!important}.gr-lg-6{row-gap:24px!important}.gr-lg-7{row-gap:28px!important}.gr-lg-8{row-gap:32px!important}.gr-lg-9{row-gap:36px!important}.gr-lg-10{row-gap:40px!important}.gr-lg-11{row-gap:44px!important}.gr-lg-12{row-gap:48px!important}.gr-lg-13{row-gap:52px!important}.gr-lg-14{row-gap:56px!important}.gr-lg-15{row-gap:60px!important}.gr-lg-16{row-gap:64px!important}.gr-lg-auto{row-gap:auto!important}.gc-lg-0{column-gap:0px!important}.gc-lg-1{column-gap:4px!important}.gc-lg-2{column-gap:8px!important}.gc-lg-3{column-gap:12px!important}.gc-lg-4{column-gap:16px!important}.gc-lg-5{column-gap:20px!important}.gc-lg-6{column-gap:24px!important}.gc-lg-7{column-gap:28px!important}.gc-lg-8{column-gap:32px!important}.gc-lg-9{column-gap:36px!important}.gc-lg-10{column-gap:40px!important}.gc-lg-11{column-gap:44px!important}.gc-lg-12{column-gap:48px!important}.gc-lg-13{column-gap:52px!important}.gc-lg-14{column-gap:56px!important}.gc-lg-15{column-gap:60px!important}.gc-lg-16{column-gap:64px!important}.gc-lg-auto{column-gap:auto!important}.ma-lg-0{margin:0!important}.ma-lg-1{margin:4px!important}.ma-lg-2{margin:8px!important}.ma-lg-3{margin:12px!important}.ma-lg-4{margin:16px!important}.ma-lg-5{margin:20px!important}.ma-lg-6{margin:24px!important}.ma-lg-7{margin:28px!important}.ma-lg-8{margin:32px!important}.ma-lg-9{margin:36px!important}.ma-lg-10{margin:40px!important}.ma-lg-11{margin:44px!important}.ma-lg-12{margin:48px!important}.ma-lg-13{margin:52px!important}.ma-lg-14{margin:56px!important}.ma-lg-15{margin:60px!important}.ma-lg-16{margin:64px!important}.ma-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:4px!important;margin-left:4px!important}.mx-lg-2{margin-right:8px!important;margin-left:8px!important}.mx-lg-3{margin-right:12px!important;margin-left:12px!important}.mx-lg-4{margin-right:16px!important;margin-left:16px!important}.mx-lg-5{margin-right:20px!important;margin-left:20px!important}.mx-lg-6{margin-right:24px!important;margin-left:24px!important}.mx-lg-7{margin-right:28px!important;margin-left:28px!important}.mx-lg-8{margin-right:32px!important;margin-left:32px!important}.mx-lg-9{margin-right:36px!important;margin-left:36px!important}.mx-lg-10{margin-right:40px!important;margin-left:40px!important}.mx-lg-11{margin-right:44px!important;margin-left:44px!important}.mx-lg-12{margin-right:48px!important;margin-left:48px!important}.mx-lg-13{margin-right:52px!important;margin-left:52px!important}.mx-lg-14{margin-right:56px!important;margin-left:56px!important}.mx-lg-15{margin-right:60px!important;margin-left:60px!important}.mx-lg-16{margin-right:64px!important;margin-left:64px!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:4px!important;margin-bottom:4px!important}.my-lg-2{margin-top:8px!important;margin-bottom:8px!important}.my-lg-3{margin-top:12px!important;margin-bottom:12px!important}.my-lg-4{margin-top:16px!important;margin-bottom:16px!important}.my-lg-5{margin-top:20px!important;margin-bottom:20px!important}.my-lg-6{margin-top:24px!important;margin-bottom:24px!important}.my-lg-7{margin-top:28px!important;margin-bottom:28px!important}.my-lg-8{margin-top:32px!important;margin-bottom:32px!important}.my-lg-9{margin-top:36px!important;margin-bottom:36px!important}.my-lg-10{margin-top:40px!important;margin-bottom:40px!important}.my-lg-11{margin-top:44px!important;margin-bottom:44px!important}.my-lg-12{margin-top:48px!important;margin-bottom:48px!important}.my-lg-13{margin-top:52px!important;margin-bottom:52px!important}.my-lg-14{margin-top:56px!important;margin-bottom:56px!important}.my-lg-15{margin-top:60px!important;margin-bottom:60px!important}.my-lg-16{margin-top:64px!important;margin-bottom:64px!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:4px!important}.mt-lg-2{margin-top:8px!important}.mt-lg-3{margin-top:12px!important}.mt-lg-4{margin-top:16px!important}.mt-lg-5{margin-top:20px!important}.mt-lg-6{margin-top:24px!important}.mt-lg-7{margin-top:28px!important}.mt-lg-8{margin-top:32px!important}.mt-lg-9{margin-top:36px!important}.mt-lg-10{margin-top:40px!important}.mt-lg-11{margin-top:44px!important}.mt-lg-12{margin-top:48px!important}.mt-lg-13{margin-top:52px!important}.mt-lg-14{margin-top:56px!important}.mt-lg-15{margin-top:60px!important}.mt-lg-16{margin-top:64px!important}.mt-lg-auto{margin-top:auto!important}.mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:4px!important}.mr-lg-2{margin-right:8px!important}.mr-lg-3{margin-right:12px!important}.mr-lg-4{margin-right:16px!important}.mr-lg-5{margin-right:20px!important}.mr-lg-6{margin-right:24px!important}.mr-lg-7{margin-right:28px!important}.mr-lg-8{margin-right:32px!important}.mr-lg-9{margin-right:36px!important}.mr-lg-10{margin-right:40px!important}.mr-lg-11{margin-right:44px!important}.mr-lg-12{margin-right:48px!important}.mr-lg-13{margin-right:52px!important}.mr-lg-14{margin-right:56px!important}.mr-lg-15{margin-right:60px!important}.mr-lg-16{margin-right:64px!important}.mr-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:4px!important}.mb-lg-2{margin-bottom:8px!important}.mb-lg-3{margin-bottom:12px!important}.mb-lg-4{margin-bottom:16px!important}.mb-lg-5{margin-bottom:20px!important}.mb-lg-6{margin-bottom:24px!important}.mb-lg-7{margin-bottom:28px!important}.mb-lg-8{margin-bottom:32px!important}.mb-lg-9{margin-bottom:36px!important}.mb-lg-10{margin-bottom:40px!important}.mb-lg-11{margin-bottom:44px!important}.mb-lg-12{margin-bottom:48px!important}.mb-lg-13{margin-bottom:52px!important}.mb-lg-14{margin-bottom:56px!important}.mb-lg-15{margin-bottom:60px!important}.mb-lg-16{margin-bottom:64px!important}.mb-lg-auto{margin-bottom:auto!important}.ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:4px!important}.ml-lg-2{margin-left:8px!important}.ml-lg-3{margin-left:12px!important}.ml-lg-4{margin-left:16px!important}.ml-lg-5{margin-left:20px!important}.ml-lg-6{margin-left:24px!important}.ml-lg-7{margin-left:28px!important}.ml-lg-8{margin-left:32px!important}.ml-lg-9{margin-left:36px!important}.ml-lg-10{margin-left:40px!important}.ml-lg-11{margin-left:44px!important}.ml-lg-12{margin-left:48px!important}.ml-lg-13{margin-left:52px!important}.ml-lg-14{margin-left:56px!important}.ml-lg-15{margin-left:60px!important}.ml-lg-16{margin-left:64px!important}.ml-lg-auto{margin-left:auto!important}.ms-lg-0{margin-inline-start:0px!important}.ms-lg-1{margin-inline-start:4px!important}.ms-lg-2{margin-inline-start:8px!important}.ms-lg-3{margin-inline-start:12px!important}.ms-lg-4{margin-inline-start:16px!important}.ms-lg-5{margin-inline-start:20px!important}.ms-lg-6{margin-inline-start:24px!important}.ms-lg-7{margin-inline-start:28px!important}.ms-lg-8{margin-inline-start:32px!important}.ms-lg-9{margin-inline-start:36px!important}.ms-lg-10{margin-inline-start:40px!important}.ms-lg-11{margin-inline-start:44px!important}.ms-lg-12{margin-inline-start:48px!important}.ms-lg-13{margin-inline-start:52px!important}.ms-lg-14{margin-inline-start:56px!important}.ms-lg-15{margin-inline-start:60px!important}.ms-lg-16{margin-inline-start:64px!important}.ms-lg-auto{margin-inline-start:auto!important}.me-lg-0{margin-inline-end:0px!important}.me-lg-1{margin-inline-end:4px!important}.me-lg-2{margin-inline-end:8px!important}.me-lg-3{margin-inline-end:12px!important}.me-lg-4{margin-inline-end:16px!important}.me-lg-5{margin-inline-end:20px!important}.me-lg-6{margin-inline-end:24px!important}.me-lg-7{margin-inline-end:28px!important}.me-lg-8{margin-inline-end:32px!important}.me-lg-9{margin-inline-end:36px!important}.me-lg-10{margin-inline-end:40px!important}.me-lg-11{margin-inline-end:44px!important}.me-lg-12{margin-inline-end:48px!important}.me-lg-13{margin-inline-end:52px!important}.me-lg-14{margin-inline-end:56px!important}.me-lg-15{margin-inline-end:60px!important}.me-lg-16{margin-inline-end:64px!important}.me-lg-auto{margin-inline-end:auto!important}.ma-lg-n1{margin:-4px!important}.ma-lg-n2{margin:-8px!important}.ma-lg-n3{margin:-12px!important}.ma-lg-n4{margin:-16px!important}.ma-lg-n5{margin:-20px!important}.ma-lg-n6{margin:-24px!important}.ma-lg-n7{margin:-28px!important}.ma-lg-n8{margin:-32px!important}.ma-lg-n9{margin:-36px!important}.ma-lg-n10{margin:-40px!important}.ma-lg-n11{margin:-44px!important}.ma-lg-n12{margin:-48px!important}.ma-lg-n13{margin:-52px!important}.ma-lg-n14{margin:-56px!important}.ma-lg-n15{margin:-60px!important}.ma-lg-n16{margin:-64px!important}.mx-lg-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-lg-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-lg-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-lg-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-lg-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-lg-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-lg-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-lg-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-lg-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-lg-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-lg-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-lg-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-lg-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-lg-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-lg-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-lg-n16{margin-right:-64px!important;margin-left:-64px!important}.my-lg-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-lg-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-lg-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-lg-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-lg-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-lg-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-lg-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-lg-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-lg-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-lg-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-lg-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-lg-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-lg-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-lg-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-lg-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-lg-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-lg-n1{margin-top:-4px!important}.mt-lg-n2{margin-top:-8px!important}.mt-lg-n3{margin-top:-12px!important}.mt-lg-n4{margin-top:-16px!important}.mt-lg-n5{margin-top:-20px!important}.mt-lg-n6{margin-top:-24px!important}.mt-lg-n7{margin-top:-28px!important}.mt-lg-n8{margin-top:-32px!important}.mt-lg-n9{margin-top:-36px!important}.mt-lg-n10{margin-top:-40px!important}.mt-lg-n11{margin-top:-44px!important}.mt-lg-n12{margin-top:-48px!important}.mt-lg-n13{margin-top:-52px!important}.mt-lg-n14{margin-top:-56px!important}.mt-lg-n15{margin-top:-60px!important}.mt-lg-n16{margin-top:-64px!important}.mr-lg-n1{margin-right:-4px!important}.mr-lg-n2{margin-right:-8px!important}.mr-lg-n3{margin-right:-12px!important}.mr-lg-n4{margin-right:-16px!important}.mr-lg-n5{margin-right:-20px!important}.mr-lg-n6{margin-right:-24px!important}.mr-lg-n7{margin-right:-28px!important}.mr-lg-n8{margin-right:-32px!important}.mr-lg-n9{margin-right:-36px!important}.mr-lg-n10{margin-right:-40px!important}.mr-lg-n11{margin-right:-44px!important}.mr-lg-n12{margin-right:-48px!important}.mr-lg-n13{margin-right:-52px!important}.mr-lg-n14{margin-right:-56px!important}.mr-lg-n15{margin-right:-60px!important}.mr-lg-n16{margin-right:-64px!important}.mb-lg-n1{margin-bottom:-4px!important}.mb-lg-n2{margin-bottom:-8px!important}.mb-lg-n3{margin-bottom:-12px!important}.mb-lg-n4{margin-bottom:-16px!important}.mb-lg-n5{margin-bottom:-20px!important}.mb-lg-n6{margin-bottom:-24px!important}.mb-lg-n7{margin-bottom:-28px!important}.mb-lg-n8{margin-bottom:-32px!important}.mb-lg-n9{margin-bottom:-36px!important}.mb-lg-n10{margin-bottom:-40px!important}.mb-lg-n11{margin-bottom:-44px!important}.mb-lg-n12{margin-bottom:-48px!important}.mb-lg-n13{margin-bottom:-52px!important}.mb-lg-n14{margin-bottom:-56px!important}.mb-lg-n15{margin-bottom:-60px!important}.mb-lg-n16{margin-bottom:-64px!important}.ml-lg-n1{margin-left:-4px!important}.ml-lg-n2{margin-left:-8px!important}.ml-lg-n3{margin-left:-12px!important}.ml-lg-n4{margin-left:-16px!important}.ml-lg-n5{margin-left:-20px!important}.ml-lg-n6{margin-left:-24px!important}.ml-lg-n7{margin-left:-28px!important}.ml-lg-n8{margin-left:-32px!important}.ml-lg-n9{margin-left:-36px!important}.ml-lg-n10{margin-left:-40px!important}.ml-lg-n11{margin-left:-44px!important}.ml-lg-n12{margin-left:-48px!important}.ml-lg-n13{margin-left:-52px!important}.ml-lg-n14{margin-left:-56px!important}.ml-lg-n15{margin-left:-60px!important}.ml-lg-n16{margin-left:-64px!important}.ms-lg-n1{margin-inline-start:-4px!important}.ms-lg-n2{margin-inline-start:-8px!important}.ms-lg-n3{margin-inline-start:-12px!important}.ms-lg-n4{margin-inline-start:-16px!important}.ms-lg-n5{margin-inline-start:-20px!important}.ms-lg-n6{margin-inline-start:-24px!important}.ms-lg-n7{margin-inline-start:-28px!important}.ms-lg-n8{margin-inline-start:-32px!important}.ms-lg-n9{margin-inline-start:-36px!important}.ms-lg-n10{margin-inline-start:-40px!important}.ms-lg-n11{margin-inline-start:-44px!important}.ms-lg-n12{margin-inline-start:-48px!important}.ms-lg-n13{margin-inline-start:-52px!important}.ms-lg-n14{margin-inline-start:-56px!important}.ms-lg-n15{margin-inline-start:-60px!important}.ms-lg-n16{margin-inline-start:-64px!important}.me-lg-n1{margin-inline-end:-4px!important}.me-lg-n2{margin-inline-end:-8px!important}.me-lg-n3{margin-inline-end:-12px!important}.me-lg-n4{margin-inline-end:-16px!important}.me-lg-n5{margin-inline-end:-20px!important}.me-lg-n6{margin-inline-end:-24px!important}.me-lg-n7{margin-inline-end:-28px!important}.me-lg-n8{margin-inline-end:-32px!important}.me-lg-n9{margin-inline-end:-36px!important}.me-lg-n10{margin-inline-end:-40px!important}.me-lg-n11{margin-inline-end:-44px!important}.me-lg-n12{margin-inline-end:-48px!important}.me-lg-n13{margin-inline-end:-52px!important}.me-lg-n14{margin-inline-end:-56px!important}.me-lg-n15{margin-inline-end:-60px!important}.me-lg-n16{margin-inline-end:-64px!important}.pa-lg-0{padding:0!important}.pa-lg-1{padding:4px!important}.pa-lg-2{padding:8px!important}.pa-lg-3{padding:12px!important}.pa-lg-4{padding:16px!important}.pa-lg-5{padding:20px!important}.pa-lg-6{padding:24px!important}.pa-lg-7{padding:28px!important}.pa-lg-8{padding:32px!important}.pa-lg-9{padding:36px!important}.pa-lg-10{padding:40px!important}.pa-lg-11{padding:44px!important}.pa-lg-12{padding:48px!important}.pa-lg-13{padding:52px!important}.pa-lg-14{padding:56px!important}.pa-lg-15{padding:60px!important}.pa-lg-16{padding:64px!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:4px!important;padding-left:4px!important}.px-lg-2{padding-right:8px!important;padding-left:8px!important}.px-lg-3{padding-right:12px!important;padding-left:12px!important}.px-lg-4{padding-right:16px!important;padding-left:16px!important}.px-lg-5{padding-right:20px!important;padding-left:20px!important}.px-lg-6{padding-right:24px!important;padding-left:24px!important}.px-lg-7{padding-right:28px!important;padding-left:28px!important}.px-lg-8{padding-right:32px!important;padding-left:32px!important}.px-lg-9{padding-right:36px!important;padding-left:36px!important}.px-lg-10{padding-right:40px!important;padding-left:40px!important}.px-lg-11{padding-right:44px!important;padding-left:44px!important}.px-lg-12{padding-right:48px!important;padding-left:48px!important}.px-lg-13{padding-right:52px!important;padding-left:52px!important}.px-lg-14{padding-right:56px!important;padding-left:56px!important}.px-lg-15{padding-right:60px!important;padding-left:60px!important}.px-lg-16{padding-right:64px!important;padding-left:64px!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:4px!important;padding-bottom:4px!important}.py-lg-2{padding-top:8px!important;padding-bottom:8px!important}.py-lg-3{padding-top:12px!important;padding-bottom:12px!important}.py-lg-4{padding-top:16px!important;padding-bottom:16px!important}.py-lg-5{padding-top:20px!important;padding-bottom:20px!important}.py-lg-6{padding-top:24px!important;padding-bottom:24px!important}.py-lg-7{padding-top:28px!important;padding-bottom:28px!important}.py-lg-8{padding-top:32px!important;padding-bottom:32px!important}.py-lg-9{padding-top:36px!important;padding-bottom:36px!important}.py-lg-10{padding-top:40px!important;padding-bottom:40px!important}.py-lg-11{padding-top:44px!important;padding-bottom:44px!important}.py-lg-12{padding-top:48px!important;padding-bottom:48px!important}.py-lg-13{padding-top:52px!important;padding-bottom:52px!important}.py-lg-14{padding-top:56px!important;padding-bottom:56px!important}.py-lg-15{padding-top:60px!important;padding-bottom:60px!important}.py-lg-16{padding-top:64px!important;padding-bottom:64px!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:4px!important}.pt-lg-2{padding-top:8px!important}.pt-lg-3{padding-top:12px!important}.pt-lg-4{padding-top:16px!important}.pt-lg-5{padding-top:20px!important}.pt-lg-6{padding-top:24px!important}.pt-lg-7{padding-top:28px!important}.pt-lg-8{padding-top:32px!important}.pt-lg-9{padding-top:36px!important}.pt-lg-10{padding-top:40px!important}.pt-lg-11{padding-top:44px!important}.pt-lg-12{padding-top:48px!important}.pt-lg-13{padding-top:52px!important}.pt-lg-14{padding-top:56px!important}.pt-lg-15{padding-top:60px!important}.pt-lg-16{padding-top:64px!important}.pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:4px!important}.pr-lg-2{padding-right:8px!important}.pr-lg-3{padding-right:12px!important}.pr-lg-4{padding-right:16px!important}.pr-lg-5{padding-right:20px!important}.pr-lg-6{padding-right:24px!important}.pr-lg-7{padding-right:28px!important}.pr-lg-8{padding-right:32px!important}.pr-lg-9{padding-right:36px!important}.pr-lg-10{padding-right:40px!important}.pr-lg-11{padding-right:44px!important}.pr-lg-12{padding-right:48px!important}.pr-lg-13{padding-right:52px!important}.pr-lg-14{padding-right:56px!important}.pr-lg-15{padding-right:60px!important}.pr-lg-16{padding-right:64px!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:4px!important}.pb-lg-2{padding-bottom:8px!important}.pb-lg-3{padding-bottom:12px!important}.pb-lg-4{padding-bottom:16px!important}.pb-lg-5{padding-bottom:20px!important}.pb-lg-6{padding-bottom:24px!important}.pb-lg-7{padding-bottom:28px!important}.pb-lg-8{padding-bottom:32px!important}.pb-lg-9{padding-bottom:36px!important}.pb-lg-10{padding-bottom:40px!important}.pb-lg-11{padding-bottom:44px!important}.pb-lg-12{padding-bottom:48px!important}.pb-lg-13{padding-bottom:52px!important}.pb-lg-14{padding-bottom:56px!important}.pb-lg-15{padding-bottom:60px!important}.pb-lg-16{padding-bottom:64px!important}.pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:4px!important}.pl-lg-2{padding-left:8px!important}.pl-lg-3{padding-left:12px!important}.pl-lg-4{padding-left:16px!important}.pl-lg-5{padding-left:20px!important}.pl-lg-6{padding-left:24px!important}.pl-lg-7{padding-left:28px!important}.pl-lg-8{padding-left:32px!important}.pl-lg-9{padding-left:36px!important}.pl-lg-10{padding-left:40px!important}.pl-lg-11{padding-left:44px!important}.pl-lg-12{padding-left:48px!important}.pl-lg-13{padding-left:52px!important}.pl-lg-14{padding-left:56px!important}.pl-lg-15{padding-left:60px!important}.pl-lg-16{padding-left:64px!important}.ps-lg-0{padding-inline-start:0px!important}.ps-lg-1{padding-inline-start:4px!important}.ps-lg-2{padding-inline-start:8px!important}.ps-lg-3{padding-inline-start:12px!important}.ps-lg-4{padding-inline-start:16px!important}.ps-lg-5{padding-inline-start:20px!important}.ps-lg-6{padding-inline-start:24px!important}.ps-lg-7{padding-inline-start:28px!important}.ps-lg-8{padding-inline-start:32px!important}.ps-lg-9{padding-inline-start:36px!important}.ps-lg-10{padding-inline-start:40px!important}.ps-lg-11{padding-inline-start:44px!important}.ps-lg-12{padding-inline-start:48px!important}.ps-lg-13{padding-inline-start:52px!important}.ps-lg-14{padding-inline-start:56px!important}.ps-lg-15{padding-inline-start:60px!important}.ps-lg-16{padding-inline-start:64px!important}.pe-lg-0{padding-inline-end:0px!important}.pe-lg-1{padding-inline-end:4px!important}.pe-lg-2{padding-inline-end:8px!important}.pe-lg-3{padding-inline-end:12px!important}.pe-lg-4{padding-inline-end:16px!important}.pe-lg-5{padding-inline-end:20px!important}.pe-lg-6{padding-inline-end:24px!important}.pe-lg-7{padding-inline-end:28px!important}.pe-lg-8{padding-inline-end:32px!important}.pe-lg-9{padding-inline-end:36px!important}.pe-lg-10{padding-inline-end:40px!important}.pe-lg-11{padding-inline-end:44px!important}.pe-lg-12{padding-inline-end:48px!important}.pe-lg-13{padding-inline-end:52px!important}.pe-lg-14{padding-inline-end:56px!important}.pe-lg-15{padding-inline-end:60px!important}.pe-lg-16{padding-inline-end:64px!important}.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}.text-lg-justify{text-align:justify!important}.text-lg-start{text-align:start!important}.text-lg-end{text-align:end!important}.text-lg-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-lg-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-lg-auto{height:auto!important}.h-lg-screen{height:100vh!important}.h-lg-0{height:0!important}.h-lg-25{height:25%!important}.h-lg-50{height:50%!important}.h-lg-75{height:75%!important}.h-lg-100{height:100%!important}.w-lg-auto{width:auto!important}.w-lg-0{width:0!important}.w-lg-25{width:25%!important}.w-lg-33{width:33%!important}.w-lg-50{width:50%!important}.w-lg-66{width:66%!important}.w-lg-75{width:75%!important}.w-lg-100{width:100%!important}}@media (min-width: 1920px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.float-xl-none{float:none!important}.float-xl-left{float:left!important}.float-xl-right{float:right!important}.v-locale--is-rtl .float-xl-end{float:left!important}.v-locale--is-rtl .float-xl-start,.v-locale--is-ltr .float-xl-end{float:right!important}.v-locale--is-ltr .float-xl-start{float:left!important}.flex-xl-fill,.flex-xl-1-1{flex:1 1 auto!important}.flex-xl-1-0{flex:1 0 auto!important}.flex-xl-0-1{flex:0 1 auto!important}.flex-xl-0-0{flex:0 0 auto!important}.flex-xl-1-1-100{flex:1 1 100%!important}.flex-xl-1-0-100{flex:1 0 100%!important}.flex-xl-0-1-100{flex:0 1 100%!important}.flex-xl-0-0-100{flex:0 0 100%!important}.flex-xl-1-1-0{flex:1 1 0!important}.flex-xl-1-0-0{flex:1 0 0!important}.flex-xl-0-1-0{flex:0 1 0!important}.flex-xl-0-0-0{flex:0 0 0!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xl-start{justify-content:flex-start!important}.justify-xl-end{justify-content:flex-end!important}.justify-xl-center{justify-content:center!important}.justify-xl-space-between{justify-content:space-between!important}.justify-xl-space-around{justify-content:space-around!important}.justify-xl-space-evenly{justify-content:space-evenly!important}.align-xl-start{align-items:flex-start!important}.align-xl-end{align-items:flex-end!important}.align-xl-center{align-items:center!important}.align-xl-baseline{align-items:baseline!important}.align-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-space-between{align-content:space-between!important}.align-content-xl-space-around{align-content:space-around!important}.align-content-xl-space-evenly{align-content:space-evenly!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-6{order:6!important}.order-xl-7{order:7!important}.order-xl-8{order:8!important}.order-xl-9{order:9!important}.order-xl-10{order:10!important}.order-xl-11{order:11!important}.order-xl-12{order:12!important}.order-xl-last{order:13!important}.ga-xl-0{gap:0px!important}.ga-xl-1{gap:4px!important}.ga-xl-2{gap:8px!important}.ga-xl-3{gap:12px!important}.ga-xl-4{gap:16px!important}.ga-xl-5{gap:20px!important}.ga-xl-6{gap:24px!important}.ga-xl-7{gap:28px!important}.ga-xl-8{gap:32px!important}.ga-xl-9{gap:36px!important}.ga-xl-10{gap:40px!important}.ga-xl-11{gap:44px!important}.ga-xl-12{gap:48px!important}.ga-xl-13{gap:52px!important}.ga-xl-14{gap:56px!important}.ga-xl-15{gap:60px!important}.ga-xl-16{gap:64px!important}.ga-xl-auto{gap:auto!important}.gr-xl-0{row-gap:0px!important}.gr-xl-1{row-gap:4px!important}.gr-xl-2{row-gap:8px!important}.gr-xl-3{row-gap:12px!important}.gr-xl-4{row-gap:16px!important}.gr-xl-5{row-gap:20px!important}.gr-xl-6{row-gap:24px!important}.gr-xl-7{row-gap:28px!important}.gr-xl-8{row-gap:32px!important}.gr-xl-9{row-gap:36px!important}.gr-xl-10{row-gap:40px!important}.gr-xl-11{row-gap:44px!important}.gr-xl-12{row-gap:48px!important}.gr-xl-13{row-gap:52px!important}.gr-xl-14{row-gap:56px!important}.gr-xl-15{row-gap:60px!important}.gr-xl-16{row-gap:64px!important}.gr-xl-auto{row-gap:auto!important}.gc-xl-0{column-gap:0px!important}.gc-xl-1{column-gap:4px!important}.gc-xl-2{column-gap:8px!important}.gc-xl-3{column-gap:12px!important}.gc-xl-4{column-gap:16px!important}.gc-xl-5{column-gap:20px!important}.gc-xl-6{column-gap:24px!important}.gc-xl-7{column-gap:28px!important}.gc-xl-8{column-gap:32px!important}.gc-xl-9{column-gap:36px!important}.gc-xl-10{column-gap:40px!important}.gc-xl-11{column-gap:44px!important}.gc-xl-12{column-gap:48px!important}.gc-xl-13{column-gap:52px!important}.gc-xl-14{column-gap:56px!important}.gc-xl-15{column-gap:60px!important}.gc-xl-16{column-gap:64px!important}.gc-xl-auto{column-gap:auto!important}.ma-xl-0{margin:0!important}.ma-xl-1{margin:4px!important}.ma-xl-2{margin:8px!important}.ma-xl-3{margin:12px!important}.ma-xl-4{margin:16px!important}.ma-xl-5{margin:20px!important}.ma-xl-6{margin:24px!important}.ma-xl-7{margin:28px!important}.ma-xl-8{margin:32px!important}.ma-xl-9{margin:36px!important}.ma-xl-10{margin:40px!important}.ma-xl-11{margin:44px!important}.ma-xl-12{margin:48px!important}.ma-xl-13{margin:52px!important}.ma-xl-14{margin:56px!important}.ma-xl-15{margin:60px!important}.ma-xl-16{margin:64px!important}.ma-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:4px!important;margin-left:4px!important}.mx-xl-2{margin-right:8px!important;margin-left:8px!important}.mx-xl-3{margin-right:12px!important;margin-left:12px!important}.mx-xl-4{margin-right:16px!important;margin-left:16px!important}.mx-xl-5{margin-right:20px!important;margin-left:20px!important}.mx-xl-6{margin-right:24px!important;margin-left:24px!important}.mx-xl-7{margin-right:28px!important;margin-left:28px!important}.mx-xl-8{margin-right:32px!important;margin-left:32px!important}.mx-xl-9{margin-right:36px!important;margin-left:36px!important}.mx-xl-10{margin-right:40px!important;margin-left:40px!important}.mx-xl-11{margin-right:44px!important;margin-left:44px!important}.mx-xl-12{margin-right:48px!important;margin-left:48px!important}.mx-xl-13{margin-right:52px!important;margin-left:52px!important}.mx-xl-14{margin-right:56px!important;margin-left:56px!important}.mx-xl-15{margin-right:60px!important;margin-left:60px!important}.mx-xl-16{margin-right:64px!important;margin-left:64px!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:4px!important}.mt-xl-2{margin-top:8px!important}.mt-xl-3{margin-top:12px!important}.mt-xl-4{margin-top:16px!important}.mt-xl-5{margin-top:20px!important}.mt-xl-6{margin-top:24px!important}.mt-xl-7{margin-top:28px!important}.mt-xl-8{margin-top:32px!important}.mt-xl-9{margin-top:36px!important}.mt-xl-10{margin-top:40px!important}.mt-xl-11{margin-top:44px!important}.mt-xl-12{margin-top:48px!important}.mt-xl-13{margin-top:52px!important}.mt-xl-14{margin-top:56px!important}.mt-xl-15{margin-top:60px!important}.mt-xl-16{margin-top:64px!important}.mt-xl-auto{margin-top:auto!important}.mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:4px!important}.mr-xl-2{margin-right:8px!important}.mr-xl-3{margin-right:12px!important}.mr-xl-4{margin-right:16px!important}.mr-xl-5{margin-right:20px!important}.mr-xl-6{margin-right:24px!important}.mr-xl-7{margin-right:28px!important}.mr-xl-8{margin-right:32px!important}.mr-xl-9{margin-right:36px!important}.mr-xl-10{margin-right:40px!important}.mr-xl-11{margin-right:44px!important}.mr-xl-12{margin-right:48px!important}.mr-xl-13{margin-right:52px!important}.mr-xl-14{margin-right:56px!important}.mr-xl-15{margin-right:60px!important}.mr-xl-16{margin-right:64px!important}.mr-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:4px!important}.mb-xl-2{margin-bottom:8px!important}.mb-xl-3{margin-bottom:12px!important}.mb-xl-4{margin-bottom:16px!important}.mb-xl-5{margin-bottom:20px!important}.mb-xl-6{margin-bottom:24px!important}.mb-xl-7{margin-bottom:28px!important}.mb-xl-8{margin-bottom:32px!important}.mb-xl-9{margin-bottom:36px!important}.mb-xl-10{margin-bottom:40px!important}.mb-xl-11{margin-bottom:44px!important}.mb-xl-12{margin-bottom:48px!important}.mb-xl-13{margin-bottom:52px!important}.mb-xl-14{margin-bottom:56px!important}.mb-xl-15{margin-bottom:60px!important}.mb-xl-16{margin-bottom:64px!important}.mb-xl-auto{margin-bottom:auto!important}.ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:4px!important}.ml-xl-2{margin-left:8px!important}.ml-xl-3{margin-left:12px!important}.ml-xl-4{margin-left:16px!important}.ml-xl-5{margin-left:20px!important}.ml-xl-6{margin-left:24px!important}.ml-xl-7{margin-left:28px!important}.ml-xl-8{margin-left:32px!important}.ml-xl-9{margin-left:36px!important}.ml-xl-10{margin-left:40px!important}.ml-xl-11{margin-left:44px!important}.ml-xl-12{margin-left:48px!important}.ml-xl-13{margin-left:52px!important}.ml-xl-14{margin-left:56px!important}.ml-xl-15{margin-left:60px!important}.ml-xl-16{margin-left:64px!important}.ml-xl-auto{margin-left:auto!important}.ms-xl-0{margin-inline-start:0px!important}.ms-xl-1{margin-inline-start:4px!important}.ms-xl-2{margin-inline-start:8px!important}.ms-xl-3{margin-inline-start:12px!important}.ms-xl-4{margin-inline-start:16px!important}.ms-xl-5{margin-inline-start:20px!important}.ms-xl-6{margin-inline-start:24px!important}.ms-xl-7{margin-inline-start:28px!important}.ms-xl-8{margin-inline-start:32px!important}.ms-xl-9{margin-inline-start:36px!important}.ms-xl-10{margin-inline-start:40px!important}.ms-xl-11{margin-inline-start:44px!important}.ms-xl-12{margin-inline-start:48px!important}.ms-xl-13{margin-inline-start:52px!important}.ms-xl-14{margin-inline-start:56px!important}.ms-xl-15{margin-inline-start:60px!important}.ms-xl-16{margin-inline-start:64px!important}.ms-xl-auto{margin-inline-start:auto!important}.me-xl-0{margin-inline-end:0px!important}.me-xl-1{margin-inline-end:4px!important}.me-xl-2{margin-inline-end:8px!important}.me-xl-3{margin-inline-end:12px!important}.me-xl-4{margin-inline-end:16px!important}.me-xl-5{margin-inline-end:20px!important}.me-xl-6{margin-inline-end:24px!important}.me-xl-7{margin-inline-end:28px!important}.me-xl-8{margin-inline-end:32px!important}.me-xl-9{margin-inline-end:36px!important}.me-xl-10{margin-inline-end:40px!important}.me-xl-11{margin-inline-end:44px!important}.me-xl-12{margin-inline-end:48px!important}.me-xl-13{margin-inline-end:52px!important}.me-xl-14{margin-inline-end:56px!important}.me-xl-15{margin-inline-end:60px!important}.me-xl-16{margin-inline-end:64px!important}.me-xl-auto{margin-inline-end:auto!important}.ma-xl-n1{margin:-4px!important}.ma-xl-n2{margin:-8px!important}.ma-xl-n3{margin:-12px!important}.ma-xl-n4{margin:-16px!important}.ma-xl-n5{margin:-20px!important}.ma-xl-n6{margin:-24px!important}.ma-xl-n7{margin:-28px!important}.ma-xl-n8{margin:-32px!important}.ma-xl-n9{margin:-36px!important}.ma-xl-n10{margin:-40px!important}.ma-xl-n11{margin:-44px!important}.ma-xl-n12{margin:-48px!important}.ma-xl-n13{margin:-52px!important}.ma-xl-n14{margin:-56px!important}.ma-xl-n15{margin:-60px!important}.ma-xl-n16{margin:-64px!important}.mx-xl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xl-n1{margin-top:-4px!important}.mt-xl-n2{margin-top:-8px!important}.mt-xl-n3{margin-top:-12px!important}.mt-xl-n4{margin-top:-16px!important}.mt-xl-n5{margin-top:-20px!important}.mt-xl-n6{margin-top:-24px!important}.mt-xl-n7{margin-top:-28px!important}.mt-xl-n8{margin-top:-32px!important}.mt-xl-n9{margin-top:-36px!important}.mt-xl-n10{margin-top:-40px!important}.mt-xl-n11{margin-top:-44px!important}.mt-xl-n12{margin-top:-48px!important}.mt-xl-n13{margin-top:-52px!important}.mt-xl-n14{margin-top:-56px!important}.mt-xl-n15{margin-top:-60px!important}.mt-xl-n16{margin-top:-64px!important}.mr-xl-n1{margin-right:-4px!important}.mr-xl-n2{margin-right:-8px!important}.mr-xl-n3{margin-right:-12px!important}.mr-xl-n4{margin-right:-16px!important}.mr-xl-n5{margin-right:-20px!important}.mr-xl-n6{margin-right:-24px!important}.mr-xl-n7{margin-right:-28px!important}.mr-xl-n8{margin-right:-32px!important}.mr-xl-n9{margin-right:-36px!important}.mr-xl-n10{margin-right:-40px!important}.mr-xl-n11{margin-right:-44px!important}.mr-xl-n12{margin-right:-48px!important}.mr-xl-n13{margin-right:-52px!important}.mr-xl-n14{margin-right:-56px!important}.mr-xl-n15{margin-right:-60px!important}.mr-xl-n16{margin-right:-64px!important}.mb-xl-n1{margin-bottom:-4px!important}.mb-xl-n2{margin-bottom:-8px!important}.mb-xl-n3{margin-bottom:-12px!important}.mb-xl-n4{margin-bottom:-16px!important}.mb-xl-n5{margin-bottom:-20px!important}.mb-xl-n6{margin-bottom:-24px!important}.mb-xl-n7{margin-bottom:-28px!important}.mb-xl-n8{margin-bottom:-32px!important}.mb-xl-n9{margin-bottom:-36px!important}.mb-xl-n10{margin-bottom:-40px!important}.mb-xl-n11{margin-bottom:-44px!important}.mb-xl-n12{margin-bottom:-48px!important}.mb-xl-n13{margin-bottom:-52px!important}.mb-xl-n14{margin-bottom:-56px!important}.mb-xl-n15{margin-bottom:-60px!important}.mb-xl-n16{margin-bottom:-64px!important}.ml-xl-n1{margin-left:-4px!important}.ml-xl-n2{margin-left:-8px!important}.ml-xl-n3{margin-left:-12px!important}.ml-xl-n4{margin-left:-16px!important}.ml-xl-n5{margin-left:-20px!important}.ml-xl-n6{margin-left:-24px!important}.ml-xl-n7{margin-left:-28px!important}.ml-xl-n8{margin-left:-32px!important}.ml-xl-n9{margin-left:-36px!important}.ml-xl-n10{margin-left:-40px!important}.ml-xl-n11{margin-left:-44px!important}.ml-xl-n12{margin-left:-48px!important}.ml-xl-n13{margin-left:-52px!important}.ml-xl-n14{margin-left:-56px!important}.ml-xl-n15{margin-left:-60px!important}.ml-xl-n16{margin-left:-64px!important}.ms-xl-n1{margin-inline-start:-4px!important}.ms-xl-n2{margin-inline-start:-8px!important}.ms-xl-n3{margin-inline-start:-12px!important}.ms-xl-n4{margin-inline-start:-16px!important}.ms-xl-n5{margin-inline-start:-20px!important}.ms-xl-n6{margin-inline-start:-24px!important}.ms-xl-n7{margin-inline-start:-28px!important}.ms-xl-n8{margin-inline-start:-32px!important}.ms-xl-n9{margin-inline-start:-36px!important}.ms-xl-n10{margin-inline-start:-40px!important}.ms-xl-n11{margin-inline-start:-44px!important}.ms-xl-n12{margin-inline-start:-48px!important}.ms-xl-n13{margin-inline-start:-52px!important}.ms-xl-n14{margin-inline-start:-56px!important}.ms-xl-n15{margin-inline-start:-60px!important}.ms-xl-n16{margin-inline-start:-64px!important}.me-xl-n1{margin-inline-end:-4px!important}.me-xl-n2{margin-inline-end:-8px!important}.me-xl-n3{margin-inline-end:-12px!important}.me-xl-n4{margin-inline-end:-16px!important}.me-xl-n5{margin-inline-end:-20px!important}.me-xl-n6{margin-inline-end:-24px!important}.me-xl-n7{margin-inline-end:-28px!important}.me-xl-n8{margin-inline-end:-32px!important}.me-xl-n9{margin-inline-end:-36px!important}.me-xl-n10{margin-inline-end:-40px!important}.me-xl-n11{margin-inline-end:-44px!important}.me-xl-n12{margin-inline-end:-48px!important}.me-xl-n13{margin-inline-end:-52px!important}.me-xl-n14{margin-inline-end:-56px!important}.me-xl-n15{margin-inline-end:-60px!important}.me-xl-n16{margin-inline-end:-64px!important}.pa-xl-0{padding:0!important}.pa-xl-1{padding:4px!important}.pa-xl-2{padding:8px!important}.pa-xl-3{padding:12px!important}.pa-xl-4{padding:16px!important}.pa-xl-5{padding:20px!important}.pa-xl-6{padding:24px!important}.pa-xl-7{padding:28px!important}.pa-xl-8{padding:32px!important}.pa-xl-9{padding:36px!important}.pa-xl-10{padding:40px!important}.pa-xl-11{padding:44px!important}.pa-xl-12{padding:48px!important}.pa-xl-13{padding:52px!important}.pa-xl-14{padding:56px!important}.pa-xl-15{padding:60px!important}.pa-xl-16{padding:64px!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:4px!important;padding-left:4px!important}.px-xl-2{padding-right:8px!important;padding-left:8px!important}.px-xl-3{padding-right:12px!important;padding-left:12px!important}.px-xl-4{padding-right:16px!important;padding-left:16px!important}.px-xl-5{padding-right:20px!important;padding-left:20px!important}.px-xl-6{padding-right:24px!important;padding-left:24px!important}.px-xl-7{padding-right:28px!important;padding-left:28px!important}.px-xl-8{padding-right:32px!important;padding-left:32px!important}.px-xl-9{padding-right:36px!important;padding-left:36px!important}.px-xl-10{padding-right:40px!important;padding-left:40px!important}.px-xl-11{padding-right:44px!important;padding-left:44px!important}.px-xl-12{padding-right:48px!important;padding-left:48px!important}.px-xl-13{padding-right:52px!important;padding-left:52px!important}.px-xl-14{padding-right:56px!important;padding-left:56px!important}.px-xl-15{padding-right:60px!important;padding-left:60px!important}.px-xl-16{padding-right:64px!important;padding-left:64px!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:4px!important}.pt-xl-2{padding-top:8px!important}.pt-xl-3{padding-top:12px!important}.pt-xl-4{padding-top:16px!important}.pt-xl-5{padding-top:20px!important}.pt-xl-6{padding-top:24px!important}.pt-xl-7{padding-top:28px!important}.pt-xl-8{padding-top:32px!important}.pt-xl-9{padding-top:36px!important}.pt-xl-10{padding-top:40px!important}.pt-xl-11{padding-top:44px!important}.pt-xl-12{padding-top:48px!important}.pt-xl-13{padding-top:52px!important}.pt-xl-14{padding-top:56px!important}.pt-xl-15{padding-top:60px!important}.pt-xl-16{padding-top:64px!important}.pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:4px!important}.pr-xl-2{padding-right:8px!important}.pr-xl-3{padding-right:12px!important}.pr-xl-4{padding-right:16px!important}.pr-xl-5{padding-right:20px!important}.pr-xl-6{padding-right:24px!important}.pr-xl-7{padding-right:28px!important}.pr-xl-8{padding-right:32px!important}.pr-xl-9{padding-right:36px!important}.pr-xl-10{padding-right:40px!important}.pr-xl-11{padding-right:44px!important}.pr-xl-12{padding-right:48px!important}.pr-xl-13{padding-right:52px!important}.pr-xl-14{padding-right:56px!important}.pr-xl-15{padding-right:60px!important}.pr-xl-16{padding-right:64px!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:4px!important}.pb-xl-2{padding-bottom:8px!important}.pb-xl-3{padding-bottom:12px!important}.pb-xl-4{padding-bottom:16px!important}.pb-xl-5{padding-bottom:20px!important}.pb-xl-6{padding-bottom:24px!important}.pb-xl-7{padding-bottom:28px!important}.pb-xl-8{padding-bottom:32px!important}.pb-xl-9{padding-bottom:36px!important}.pb-xl-10{padding-bottom:40px!important}.pb-xl-11{padding-bottom:44px!important}.pb-xl-12{padding-bottom:48px!important}.pb-xl-13{padding-bottom:52px!important}.pb-xl-14{padding-bottom:56px!important}.pb-xl-15{padding-bottom:60px!important}.pb-xl-16{padding-bottom:64px!important}.pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:4px!important}.pl-xl-2{padding-left:8px!important}.pl-xl-3{padding-left:12px!important}.pl-xl-4{padding-left:16px!important}.pl-xl-5{padding-left:20px!important}.pl-xl-6{padding-left:24px!important}.pl-xl-7{padding-left:28px!important}.pl-xl-8{padding-left:32px!important}.pl-xl-9{padding-left:36px!important}.pl-xl-10{padding-left:40px!important}.pl-xl-11{padding-left:44px!important}.pl-xl-12{padding-left:48px!important}.pl-xl-13{padding-left:52px!important}.pl-xl-14{padding-left:56px!important}.pl-xl-15{padding-left:60px!important}.pl-xl-16{padding-left:64px!important}.ps-xl-0{padding-inline-start:0px!important}.ps-xl-1{padding-inline-start:4px!important}.ps-xl-2{padding-inline-start:8px!important}.ps-xl-3{padding-inline-start:12px!important}.ps-xl-4{padding-inline-start:16px!important}.ps-xl-5{padding-inline-start:20px!important}.ps-xl-6{padding-inline-start:24px!important}.ps-xl-7{padding-inline-start:28px!important}.ps-xl-8{padding-inline-start:32px!important}.ps-xl-9{padding-inline-start:36px!important}.ps-xl-10{padding-inline-start:40px!important}.ps-xl-11{padding-inline-start:44px!important}.ps-xl-12{padding-inline-start:48px!important}.ps-xl-13{padding-inline-start:52px!important}.ps-xl-14{padding-inline-start:56px!important}.ps-xl-15{padding-inline-start:60px!important}.ps-xl-16{padding-inline-start:64px!important}.pe-xl-0{padding-inline-end:0px!important}.pe-xl-1{padding-inline-end:4px!important}.pe-xl-2{padding-inline-end:8px!important}.pe-xl-3{padding-inline-end:12px!important}.pe-xl-4{padding-inline-end:16px!important}.pe-xl-5{padding-inline-end:20px!important}.pe-xl-6{padding-inline-end:24px!important}.pe-xl-7{padding-inline-end:28px!important}.pe-xl-8{padding-inline-end:32px!important}.pe-xl-9{padding-inline-end:36px!important}.pe-xl-10{padding-inline-end:40px!important}.pe-xl-11{padding-inline-end:44px!important}.pe-xl-12{padding-inline-end:48px!important}.pe-xl-13{padding-inline-end:52px!important}.pe-xl-14{padding-inline-end:56px!important}.pe-xl-15{padding-inline-end:60px!important}.pe-xl-16{padding-inline-end:64px!important}.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}.text-xl-justify{text-align:justify!important}.text-xl-start{text-align:start!important}.text-xl-end{text-align:end!important}.text-xl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xl-auto{height:auto!important}.h-xl-screen{height:100vh!important}.h-xl-0{height:0!important}.h-xl-25{height:25%!important}.h-xl-50{height:50%!important}.h-xl-75{height:75%!important}.h-xl-100{height:100%!important}.w-xl-auto{width:auto!important}.w-xl-0{width:0!important}.w-xl-25{width:25%!important}.w-xl-33{width:33%!important}.w-xl-50{width:50%!important}.w-xl-66{width:66%!important}.w-xl-75{width:75%!important}.w-xl-100{width:100%!important}}@media (min-width: 2560px){.d-xxl-none{display:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.float-xxl-none{float:none!important}.float-xxl-left{float:left!important}.float-xxl-right{float:right!important}.v-locale--is-rtl .float-xxl-end{float:left!important}.v-locale--is-rtl .float-xxl-start,.v-locale--is-ltr .float-xxl-end{float:right!important}.v-locale--is-ltr .float-xxl-start{float:left!important}.flex-xxl-fill,.flex-xxl-1-1{flex:1 1 auto!important}.flex-xxl-1-0{flex:1 0 auto!important}.flex-xxl-0-1{flex:0 1 auto!important}.flex-xxl-0-0{flex:0 0 auto!important}.flex-xxl-1-1-100{flex:1 1 100%!important}.flex-xxl-1-0-100{flex:1 0 100%!important}.flex-xxl-0-1-100{flex:0 1 100%!important}.flex-xxl-0-0-100{flex:0 0 100%!important}.flex-xxl-1-1-0{flex:1 1 0!important}.flex-xxl-1-0-0{flex:1 0 0!important}.flex-xxl-0-1-0{flex:0 1 0!important}.flex-xxl-0-0-0{flex:0 0 0!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xxl-start{justify-content:flex-start!important}.justify-xxl-end{justify-content:flex-end!important}.justify-xxl-center{justify-content:center!important}.justify-xxl-space-between{justify-content:space-between!important}.justify-xxl-space-around{justify-content:space-around!important}.justify-xxl-space-evenly{justify-content:space-evenly!important}.align-xxl-start{align-items:flex-start!important}.align-xxl-end{align-items:flex-end!important}.align-xxl-center{align-items:center!important}.align-xxl-baseline{align-items:baseline!important}.align-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-space-between{align-content:space-between!important}.align-content-xxl-space-around{align-content:space-around!important}.align-content-xxl-space-evenly{align-content:space-evenly!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-6{order:6!important}.order-xxl-7{order:7!important}.order-xxl-8{order:8!important}.order-xxl-9{order:9!important}.order-xxl-10{order:10!important}.order-xxl-11{order:11!important}.order-xxl-12{order:12!important}.order-xxl-last{order:13!important}.ga-xxl-0{gap:0px!important}.ga-xxl-1{gap:4px!important}.ga-xxl-2{gap:8px!important}.ga-xxl-3{gap:12px!important}.ga-xxl-4{gap:16px!important}.ga-xxl-5{gap:20px!important}.ga-xxl-6{gap:24px!important}.ga-xxl-7{gap:28px!important}.ga-xxl-8{gap:32px!important}.ga-xxl-9{gap:36px!important}.ga-xxl-10{gap:40px!important}.ga-xxl-11{gap:44px!important}.ga-xxl-12{gap:48px!important}.ga-xxl-13{gap:52px!important}.ga-xxl-14{gap:56px!important}.ga-xxl-15{gap:60px!important}.ga-xxl-16{gap:64px!important}.ga-xxl-auto{gap:auto!important}.gr-xxl-0{row-gap:0px!important}.gr-xxl-1{row-gap:4px!important}.gr-xxl-2{row-gap:8px!important}.gr-xxl-3{row-gap:12px!important}.gr-xxl-4{row-gap:16px!important}.gr-xxl-5{row-gap:20px!important}.gr-xxl-6{row-gap:24px!important}.gr-xxl-7{row-gap:28px!important}.gr-xxl-8{row-gap:32px!important}.gr-xxl-9{row-gap:36px!important}.gr-xxl-10{row-gap:40px!important}.gr-xxl-11{row-gap:44px!important}.gr-xxl-12{row-gap:48px!important}.gr-xxl-13{row-gap:52px!important}.gr-xxl-14{row-gap:56px!important}.gr-xxl-15{row-gap:60px!important}.gr-xxl-16{row-gap:64px!important}.gr-xxl-auto{row-gap:auto!important}.gc-xxl-0{column-gap:0px!important}.gc-xxl-1{column-gap:4px!important}.gc-xxl-2{column-gap:8px!important}.gc-xxl-3{column-gap:12px!important}.gc-xxl-4{column-gap:16px!important}.gc-xxl-5{column-gap:20px!important}.gc-xxl-6{column-gap:24px!important}.gc-xxl-7{column-gap:28px!important}.gc-xxl-8{column-gap:32px!important}.gc-xxl-9{column-gap:36px!important}.gc-xxl-10{column-gap:40px!important}.gc-xxl-11{column-gap:44px!important}.gc-xxl-12{column-gap:48px!important}.gc-xxl-13{column-gap:52px!important}.gc-xxl-14{column-gap:56px!important}.gc-xxl-15{column-gap:60px!important}.gc-xxl-16{column-gap:64px!important}.gc-xxl-auto{column-gap:auto!important}.ma-xxl-0{margin:0!important}.ma-xxl-1{margin:4px!important}.ma-xxl-2{margin:8px!important}.ma-xxl-3{margin:12px!important}.ma-xxl-4{margin:16px!important}.ma-xxl-5{margin:20px!important}.ma-xxl-6{margin:24px!important}.ma-xxl-7{margin:28px!important}.ma-xxl-8{margin:32px!important}.ma-xxl-9{margin:36px!important}.ma-xxl-10{margin:40px!important}.ma-xxl-11{margin:44px!important}.ma-xxl-12{margin:48px!important}.ma-xxl-13{margin:52px!important}.ma-xxl-14{margin:56px!important}.ma-xxl-15{margin:60px!important}.ma-xxl-16{margin:64px!important}.ma-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:4px!important;margin-left:4px!important}.mx-xxl-2{margin-right:8px!important;margin-left:8px!important}.mx-xxl-3{margin-right:12px!important;margin-left:12px!important}.mx-xxl-4{margin-right:16px!important;margin-left:16px!important}.mx-xxl-5{margin-right:20px!important;margin-left:20px!important}.mx-xxl-6{margin-right:24px!important;margin-left:24px!important}.mx-xxl-7{margin-right:28px!important;margin-left:28px!important}.mx-xxl-8{margin-right:32px!important;margin-left:32px!important}.mx-xxl-9{margin-right:36px!important;margin-left:36px!important}.mx-xxl-10{margin-right:40px!important;margin-left:40px!important}.mx-xxl-11{margin-right:44px!important;margin-left:44px!important}.mx-xxl-12{margin-right:48px!important;margin-left:48px!important}.mx-xxl-13{margin-right:52px!important;margin-left:52px!important}.mx-xxl-14{margin-right:56px!important;margin-left:56px!important}.mx-xxl-15{margin-right:60px!important;margin-left:60px!important}.mx-xxl-16{margin-right:64px!important;margin-left:64px!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xxl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xxl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xxl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xxl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xxl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xxl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xxl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xxl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xxl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xxl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xxl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xxl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xxl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xxl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xxl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:4px!important}.mt-xxl-2{margin-top:8px!important}.mt-xxl-3{margin-top:12px!important}.mt-xxl-4{margin-top:16px!important}.mt-xxl-5{margin-top:20px!important}.mt-xxl-6{margin-top:24px!important}.mt-xxl-7{margin-top:28px!important}.mt-xxl-8{margin-top:32px!important}.mt-xxl-9{margin-top:36px!important}.mt-xxl-10{margin-top:40px!important}.mt-xxl-11{margin-top:44px!important}.mt-xxl-12{margin-top:48px!important}.mt-xxl-13{margin-top:52px!important}.mt-xxl-14{margin-top:56px!important}.mt-xxl-15{margin-top:60px!important}.mt-xxl-16{margin-top:64px!important}.mt-xxl-auto{margin-top:auto!important}.mr-xxl-0{margin-right:0!important}.mr-xxl-1{margin-right:4px!important}.mr-xxl-2{margin-right:8px!important}.mr-xxl-3{margin-right:12px!important}.mr-xxl-4{margin-right:16px!important}.mr-xxl-5{margin-right:20px!important}.mr-xxl-6{margin-right:24px!important}.mr-xxl-7{margin-right:28px!important}.mr-xxl-8{margin-right:32px!important}.mr-xxl-9{margin-right:36px!important}.mr-xxl-10{margin-right:40px!important}.mr-xxl-11{margin-right:44px!important}.mr-xxl-12{margin-right:48px!important}.mr-xxl-13{margin-right:52px!important}.mr-xxl-14{margin-right:56px!important}.mr-xxl-15{margin-right:60px!important}.mr-xxl-16{margin-right:64px!important}.mr-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:4px!important}.mb-xxl-2{margin-bottom:8px!important}.mb-xxl-3{margin-bottom:12px!important}.mb-xxl-4{margin-bottom:16px!important}.mb-xxl-5{margin-bottom:20px!important}.mb-xxl-6{margin-bottom:24px!important}.mb-xxl-7{margin-bottom:28px!important}.mb-xxl-8{margin-bottom:32px!important}.mb-xxl-9{margin-bottom:36px!important}.mb-xxl-10{margin-bottom:40px!important}.mb-xxl-11{margin-bottom:44px!important}.mb-xxl-12{margin-bottom:48px!important}.mb-xxl-13{margin-bottom:52px!important}.mb-xxl-14{margin-bottom:56px!important}.mb-xxl-15{margin-bottom:60px!important}.mb-xxl-16{margin-bottom:64px!important}.mb-xxl-auto{margin-bottom:auto!important}.ml-xxl-0{margin-left:0!important}.ml-xxl-1{margin-left:4px!important}.ml-xxl-2{margin-left:8px!important}.ml-xxl-3{margin-left:12px!important}.ml-xxl-4{margin-left:16px!important}.ml-xxl-5{margin-left:20px!important}.ml-xxl-6{margin-left:24px!important}.ml-xxl-7{margin-left:28px!important}.ml-xxl-8{margin-left:32px!important}.ml-xxl-9{margin-left:36px!important}.ml-xxl-10{margin-left:40px!important}.ml-xxl-11{margin-left:44px!important}.ml-xxl-12{margin-left:48px!important}.ml-xxl-13{margin-left:52px!important}.ml-xxl-14{margin-left:56px!important}.ml-xxl-15{margin-left:60px!important}.ml-xxl-16{margin-left:64px!important}.ml-xxl-auto{margin-left:auto!important}.ms-xxl-0{margin-inline-start:0px!important}.ms-xxl-1{margin-inline-start:4px!important}.ms-xxl-2{margin-inline-start:8px!important}.ms-xxl-3{margin-inline-start:12px!important}.ms-xxl-4{margin-inline-start:16px!important}.ms-xxl-5{margin-inline-start:20px!important}.ms-xxl-6{margin-inline-start:24px!important}.ms-xxl-7{margin-inline-start:28px!important}.ms-xxl-8{margin-inline-start:32px!important}.ms-xxl-9{margin-inline-start:36px!important}.ms-xxl-10{margin-inline-start:40px!important}.ms-xxl-11{margin-inline-start:44px!important}.ms-xxl-12{margin-inline-start:48px!important}.ms-xxl-13{margin-inline-start:52px!important}.ms-xxl-14{margin-inline-start:56px!important}.ms-xxl-15{margin-inline-start:60px!important}.ms-xxl-16{margin-inline-start:64px!important}.ms-xxl-auto{margin-inline-start:auto!important}.me-xxl-0{margin-inline-end:0px!important}.me-xxl-1{margin-inline-end:4px!important}.me-xxl-2{margin-inline-end:8px!important}.me-xxl-3{margin-inline-end:12px!important}.me-xxl-4{margin-inline-end:16px!important}.me-xxl-5{margin-inline-end:20px!important}.me-xxl-6{margin-inline-end:24px!important}.me-xxl-7{margin-inline-end:28px!important}.me-xxl-8{margin-inline-end:32px!important}.me-xxl-9{margin-inline-end:36px!important}.me-xxl-10{margin-inline-end:40px!important}.me-xxl-11{margin-inline-end:44px!important}.me-xxl-12{margin-inline-end:48px!important}.me-xxl-13{margin-inline-end:52px!important}.me-xxl-14{margin-inline-end:56px!important}.me-xxl-15{margin-inline-end:60px!important}.me-xxl-16{margin-inline-end:64px!important}.me-xxl-auto{margin-inline-end:auto!important}.ma-xxl-n1{margin:-4px!important}.ma-xxl-n2{margin:-8px!important}.ma-xxl-n3{margin:-12px!important}.ma-xxl-n4{margin:-16px!important}.ma-xxl-n5{margin:-20px!important}.ma-xxl-n6{margin:-24px!important}.ma-xxl-n7{margin:-28px!important}.ma-xxl-n8{margin:-32px!important}.ma-xxl-n9{margin:-36px!important}.ma-xxl-n10{margin:-40px!important}.ma-xxl-n11{margin:-44px!important}.ma-xxl-n12{margin:-48px!important}.ma-xxl-n13{margin:-52px!important}.ma-xxl-n14{margin:-56px!important}.ma-xxl-n15{margin:-60px!important}.ma-xxl-n16{margin:-64px!important}.mx-xxl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xxl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xxl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xxl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xxl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xxl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xxl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xxl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xxl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xxl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xxl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xxl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xxl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xxl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xxl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xxl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xxl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xxl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xxl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xxl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xxl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xxl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xxl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xxl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xxl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xxl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xxl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xxl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xxl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xxl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xxl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xxl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xxl-n1{margin-top:-4px!important}.mt-xxl-n2{margin-top:-8px!important}.mt-xxl-n3{margin-top:-12px!important}.mt-xxl-n4{margin-top:-16px!important}.mt-xxl-n5{margin-top:-20px!important}.mt-xxl-n6{margin-top:-24px!important}.mt-xxl-n7{margin-top:-28px!important}.mt-xxl-n8{margin-top:-32px!important}.mt-xxl-n9{margin-top:-36px!important}.mt-xxl-n10{margin-top:-40px!important}.mt-xxl-n11{margin-top:-44px!important}.mt-xxl-n12{margin-top:-48px!important}.mt-xxl-n13{margin-top:-52px!important}.mt-xxl-n14{margin-top:-56px!important}.mt-xxl-n15{margin-top:-60px!important}.mt-xxl-n16{margin-top:-64px!important}.mr-xxl-n1{margin-right:-4px!important}.mr-xxl-n2{margin-right:-8px!important}.mr-xxl-n3{margin-right:-12px!important}.mr-xxl-n4{margin-right:-16px!important}.mr-xxl-n5{margin-right:-20px!important}.mr-xxl-n6{margin-right:-24px!important}.mr-xxl-n7{margin-right:-28px!important}.mr-xxl-n8{margin-right:-32px!important}.mr-xxl-n9{margin-right:-36px!important}.mr-xxl-n10{margin-right:-40px!important}.mr-xxl-n11{margin-right:-44px!important}.mr-xxl-n12{margin-right:-48px!important}.mr-xxl-n13{margin-right:-52px!important}.mr-xxl-n14{margin-right:-56px!important}.mr-xxl-n15{margin-right:-60px!important}.mr-xxl-n16{margin-right:-64px!important}.mb-xxl-n1{margin-bottom:-4px!important}.mb-xxl-n2{margin-bottom:-8px!important}.mb-xxl-n3{margin-bottom:-12px!important}.mb-xxl-n4{margin-bottom:-16px!important}.mb-xxl-n5{margin-bottom:-20px!important}.mb-xxl-n6{margin-bottom:-24px!important}.mb-xxl-n7{margin-bottom:-28px!important}.mb-xxl-n8{margin-bottom:-32px!important}.mb-xxl-n9{margin-bottom:-36px!important}.mb-xxl-n10{margin-bottom:-40px!important}.mb-xxl-n11{margin-bottom:-44px!important}.mb-xxl-n12{margin-bottom:-48px!important}.mb-xxl-n13{margin-bottom:-52px!important}.mb-xxl-n14{margin-bottom:-56px!important}.mb-xxl-n15{margin-bottom:-60px!important}.mb-xxl-n16{margin-bottom:-64px!important}.ml-xxl-n1{margin-left:-4px!important}.ml-xxl-n2{margin-left:-8px!important}.ml-xxl-n3{margin-left:-12px!important}.ml-xxl-n4{margin-left:-16px!important}.ml-xxl-n5{margin-left:-20px!important}.ml-xxl-n6{margin-left:-24px!important}.ml-xxl-n7{margin-left:-28px!important}.ml-xxl-n8{margin-left:-32px!important}.ml-xxl-n9{margin-left:-36px!important}.ml-xxl-n10{margin-left:-40px!important}.ml-xxl-n11{margin-left:-44px!important}.ml-xxl-n12{margin-left:-48px!important}.ml-xxl-n13{margin-left:-52px!important}.ml-xxl-n14{margin-left:-56px!important}.ml-xxl-n15{margin-left:-60px!important}.ml-xxl-n16{margin-left:-64px!important}.ms-xxl-n1{margin-inline-start:-4px!important}.ms-xxl-n2{margin-inline-start:-8px!important}.ms-xxl-n3{margin-inline-start:-12px!important}.ms-xxl-n4{margin-inline-start:-16px!important}.ms-xxl-n5{margin-inline-start:-20px!important}.ms-xxl-n6{margin-inline-start:-24px!important}.ms-xxl-n7{margin-inline-start:-28px!important}.ms-xxl-n8{margin-inline-start:-32px!important}.ms-xxl-n9{margin-inline-start:-36px!important}.ms-xxl-n10{margin-inline-start:-40px!important}.ms-xxl-n11{margin-inline-start:-44px!important}.ms-xxl-n12{margin-inline-start:-48px!important}.ms-xxl-n13{margin-inline-start:-52px!important}.ms-xxl-n14{margin-inline-start:-56px!important}.ms-xxl-n15{margin-inline-start:-60px!important}.ms-xxl-n16{margin-inline-start:-64px!important}.me-xxl-n1{margin-inline-end:-4px!important}.me-xxl-n2{margin-inline-end:-8px!important}.me-xxl-n3{margin-inline-end:-12px!important}.me-xxl-n4{margin-inline-end:-16px!important}.me-xxl-n5{margin-inline-end:-20px!important}.me-xxl-n6{margin-inline-end:-24px!important}.me-xxl-n7{margin-inline-end:-28px!important}.me-xxl-n8{margin-inline-end:-32px!important}.me-xxl-n9{margin-inline-end:-36px!important}.me-xxl-n10{margin-inline-end:-40px!important}.me-xxl-n11{margin-inline-end:-44px!important}.me-xxl-n12{margin-inline-end:-48px!important}.me-xxl-n13{margin-inline-end:-52px!important}.me-xxl-n14{margin-inline-end:-56px!important}.me-xxl-n15{margin-inline-end:-60px!important}.me-xxl-n16{margin-inline-end:-64px!important}.pa-xxl-0{padding:0!important}.pa-xxl-1{padding:4px!important}.pa-xxl-2{padding:8px!important}.pa-xxl-3{padding:12px!important}.pa-xxl-4{padding:16px!important}.pa-xxl-5{padding:20px!important}.pa-xxl-6{padding:24px!important}.pa-xxl-7{padding:28px!important}.pa-xxl-8{padding:32px!important}.pa-xxl-9{padding:36px!important}.pa-xxl-10{padding:40px!important}.pa-xxl-11{padding:44px!important}.pa-xxl-12{padding:48px!important}.pa-xxl-13{padding:52px!important}.pa-xxl-14{padding:56px!important}.pa-xxl-15{padding:60px!important}.pa-xxl-16{padding:64px!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:4px!important;padding-left:4px!important}.px-xxl-2{padding-right:8px!important;padding-left:8px!important}.px-xxl-3{padding-right:12px!important;padding-left:12px!important}.px-xxl-4{padding-right:16px!important;padding-left:16px!important}.px-xxl-5{padding-right:20px!important;padding-left:20px!important}.px-xxl-6{padding-right:24px!important;padding-left:24px!important}.px-xxl-7{padding-right:28px!important;padding-left:28px!important}.px-xxl-8{padding-right:32px!important;padding-left:32px!important}.px-xxl-9{padding-right:36px!important;padding-left:36px!important}.px-xxl-10{padding-right:40px!important;padding-left:40px!important}.px-xxl-11{padding-right:44px!important;padding-left:44px!important}.px-xxl-12{padding-right:48px!important;padding-left:48px!important}.px-xxl-13{padding-right:52px!important;padding-left:52px!important}.px-xxl-14{padding-right:56px!important;padding-left:56px!important}.px-xxl-15{padding-right:60px!important;padding-left:60px!important}.px-xxl-16{padding-right:64px!important;padding-left:64px!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xxl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xxl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xxl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xxl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xxl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xxl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xxl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xxl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xxl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xxl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xxl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xxl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xxl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xxl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xxl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:4px!important}.pt-xxl-2{padding-top:8px!important}.pt-xxl-3{padding-top:12px!important}.pt-xxl-4{padding-top:16px!important}.pt-xxl-5{padding-top:20px!important}.pt-xxl-6{padding-top:24px!important}.pt-xxl-7{padding-top:28px!important}.pt-xxl-8{padding-top:32px!important}.pt-xxl-9{padding-top:36px!important}.pt-xxl-10{padding-top:40px!important}.pt-xxl-11{padding-top:44px!important}.pt-xxl-12{padding-top:48px!important}.pt-xxl-13{padding-top:52px!important}.pt-xxl-14{padding-top:56px!important}.pt-xxl-15{padding-top:60px!important}.pt-xxl-16{padding-top:64px!important}.pr-xxl-0{padding-right:0!important}.pr-xxl-1{padding-right:4px!important}.pr-xxl-2{padding-right:8px!important}.pr-xxl-3{padding-right:12px!important}.pr-xxl-4{padding-right:16px!important}.pr-xxl-5{padding-right:20px!important}.pr-xxl-6{padding-right:24px!important}.pr-xxl-7{padding-right:28px!important}.pr-xxl-8{padding-right:32px!important}.pr-xxl-9{padding-right:36px!important}.pr-xxl-10{padding-right:40px!important}.pr-xxl-11{padding-right:44px!important}.pr-xxl-12{padding-right:48px!important}.pr-xxl-13{padding-right:52px!important}.pr-xxl-14{padding-right:56px!important}.pr-xxl-15{padding-right:60px!important}.pr-xxl-16{padding-right:64px!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:4px!important}.pb-xxl-2{padding-bottom:8px!important}.pb-xxl-3{padding-bottom:12px!important}.pb-xxl-4{padding-bottom:16px!important}.pb-xxl-5{padding-bottom:20px!important}.pb-xxl-6{padding-bottom:24px!important}.pb-xxl-7{padding-bottom:28px!important}.pb-xxl-8{padding-bottom:32px!important}.pb-xxl-9{padding-bottom:36px!important}.pb-xxl-10{padding-bottom:40px!important}.pb-xxl-11{padding-bottom:44px!important}.pb-xxl-12{padding-bottom:48px!important}.pb-xxl-13{padding-bottom:52px!important}.pb-xxl-14{padding-bottom:56px!important}.pb-xxl-15{padding-bottom:60px!important}.pb-xxl-16{padding-bottom:64px!important}.pl-xxl-0{padding-left:0!important}.pl-xxl-1{padding-left:4px!important}.pl-xxl-2{padding-left:8px!important}.pl-xxl-3{padding-left:12px!important}.pl-xxl-4{padding-left:16px!important}.pl-xxl-5{padding-left:20px!important}.pl-xxl-6{padding-left:24px!important}.pl-xxl-7{padding-left:28px!important}.pl-xxl-8{padding-left:32px!important}.pl-xxl-9{padding-left:36px!important}.pl-xxl-10{padding-left:40px!important}.pl-xxl-11{padding-left:44px!important}.pl-xxl-12{padding-left:48px!important}.pl-xxl-13{padding-left:52px!important}.pl-xxl-14{padding-left:56px!important}.pl-xxl-15{padding-left:60px!important}.pl-xxl-16{padding-left:64px!important}.ps-xxl-0{padding-inline-start:0px!important}.ps-xxl-1{padding-inline-start:4px!important}.ps-xxl-2{padding-inline-start:8px!important}.ps-xxl-3{padding-inline-start:12px!important}.ps-xxl-4{padding-inline-start:16px!important}.ps-xxl-5{padding-inline-start:20px!important}.ps-xxl-6{padding-inline-start:24px!important}.ps-xxl-7{padding-inline-start:28px!important}.ps-xxl-8{padding-inline-start:32px!important}.ps-xxl-9{padding-inline-start:36px!important}.ps-xxl-10{padding-inline-start:40px!important}.ps-xxl-11{padding-inline-start:44px!important}.ps-xxl-12{padding-inline-start:48px!important}.ps-xxl-13{padding-inline-start:52px!important}.ps-xxl-14{padding-inline-start:56px!important}.ps-xxl-15{padding-inline-start:60px!important}.ps-xxl-16{padding-inline-start:64px!important}.pe-xxl-0{padding-inline-end:0px!important}.pe-xxl-1{padding-inline-end:4px!important}.pe-xxl-2{padding-inline-end:8px!important}.pe-xxl-3{padding-inline-end:12px!important}.pe-xxl-4{padding-inline-end:16px!important}.pe-xxl-5{padding-inline-end:20px!important}.pe-xxl-6{padding-inline-end:24px!important}.pe-xxl-7{padding-inline-end:28px!important}.pe-xxl-8{padding-inline-end:32px!important}.pe-xxl-9{padding-inline-end:36px!important}.pe-xxl-10{padding-inline-end:40px!important}.pe-xxl-11{padding-inline-end:44px!important}.pe-xxl-12{padding-inline-end:48px!important}.pe-xxl-13{padding-inline-end:52px!important}.pe-xxl-14{padding-inline-end:56px!important}.pe-xxl-15{padding-inline-end:60px!important}.pe-xxl-16{padding-inline-end:64px!important}.text-xxl-left{text-align:left!important}.text-xxl-right{text-align:right!important}.text-xxl-center{text-align:center!important}.text-xxl-justify{text-align:justify!important}.text-xxl-start{text-align:start!important}.text-xxl-end{text-align:end!important}.text-xxl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xxl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xxl-auto{height:auto!important}.h-xxl-screen{height:100vh!important}.h-xxl-0{height:0!important}.h-xxl-25{height:25%!important}.h-xxl-50{height:50%!important}.h-xxl-75{height:75%!important}.h-xxl-100{height:100%!important}.w-xxl-auto{width:auto!important}.w-xxl-0{width:0!important}.w-xxl-25{width:25%!important}.w-xxl-33{width:33%!important}.w-xxl-50{width:50%!important}.w-xxl-66{width:66%!important}.w-xxl-75{width:75%!important}.w-xxl-100{width:100%!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.float-print-none{float:none!important}.float-print-left{float:left!important}.float-print-right{float:right!important}.v-locale--is-rtl .float-print-end{float:left!important}.v-locale--is-rtl .float-print-start,.v-locale--is-ltr .float-print-end{float:right!important}.v-locale--is-ltr .float-print-start{float:left!important}} diff --git a/zt_backend/dist_app/assets/index-b8b5a264.js b/zt_backend/dist_app/assets/index-b8b5a264.js new file mode 100644 index 00000000..03ef7dcf --- /dev/null +++ b/zt_backend/dist_app/assets/index-b8b5a264.js @@ -0,0 +1 @@ +import{C as o,_ as r,r as l,o as c,c as u}from"./index-6273e83e.js";const a={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,s,e,C,i,m){const n=l("code-cell-manager");return c(),u(n,{notebook:e.notebook,completions:e.completions,lintResults:e.lintResults,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","lintResults","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(a,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/index-dea2b06b.css b/zt_backend/dist_app/assets/index-dea2b06b.css deleted file mode 100644 index 70c51789..00000000 --- a/zt_backend/dist_app/assets/index-dea2b06b.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-file-input--hide.v-input .v-field,.v-file-input--hide.v-input .v-input__control,.v-file-input--hide.v-input .v-input__details{display:none}.v-file-input--hide.v-input .v-input__prepend{grid-area:control;margin:0 auto}.v-file-input--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-file-input input[type=file]{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.v-file-input .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-file-input .v-input__details{padding-inline:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-6e515f8e]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-6e515f8e]{margin-bottom:16px}.message-btn--alert[data-v-6e515f8e]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-6e515f8e]{margin-bottom:4px}.delete-cell[data-v-6e515f8e]:hover{background-color:#6e3d41}.content[data-v-6e515f8e]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-6e515f8e]{border-radius:4px}.header[data-v-6e515f8e]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-6e515f8e],.outcome[data-v-6e515f8e]{padding:0}.code--dev[data-v-6e515f8e],.outcome--dev[data-v-6e515f8e]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-6e515f8e]{margin-bottom:16px}.click-edit[data-v-6e515f8e]{width:calc(100% - 135px)}.click-edit__name[data-v-6e515f8e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-6e515f8e],.click-edit__edit-field-wrapper[data-v-6e515f8e]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-6e515f8e]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-6e515f8e]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-6e515f8e]{margin-top:-11px}.click-edit__edit-field[data-v-6e515f8e] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-6e515f8e]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-6e515f8e]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-6e515f8e]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-ea931945]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-ea931945] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent inset;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{min-width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid #f00!important;box-shadow:0 0 0 1px red}.tox .tox-rgb-container{position:relative}.tox .tox-rgb-form .tox-invalid-icon{align-content:center;align-items:center;display:none;height:100%;position:absolute;right:0;top:0}.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid{margin:0}.tox .tox-rgb-warning-note{background-color:#442632;border:1px solid #55212b;border-radius:3px;color:#e68080;padding:3px}.tox input.tox-invalid+.tox-invalid-icon{display:flex}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;-webkit-text-decoration:none;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a3709;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:max-content}.tox .tox-notification a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{align-items:flex-start;display:flex;flex:1 1 auto;height:16px;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;-webkit-text-decoration:none;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0;background-size:calc(100% - 8px) calc(100% + -0)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{display:flex;flex-direction:column;height:100%;min-width:248px;width:316px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{background-color:#222f3e;box-shadow:0 4px 8px #222f3e1a;color:#fff;font-size:20px;font-weight:400;line-height:28px;padding:12px;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{background-color:#2b3b4e;display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:10px 12px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{background-color:#222f3e;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#fff;cursor:pointer;display:flex;flex-direction:column;font-size:14px;gap:12px;padding:12px;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{box-shadow:0 4px 8px #222f3e1a}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{bottom:0;box-shadow:0 0 0 0 transparent #285ec7;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #285ec7;box-shadow:0 0 0 2px #285ec7!important}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#62430b;box-shadow:0 4px 8px #222f3e1a;position:relative}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{bottom:0;box-shadow:0 0 0 0 transparent #cea215;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #cea215}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date{display:flex;gap:12px;justify-content:space-between}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label{font-size:16px;line-height:24px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label{font-size:12px;font-weight:600;line-height:24px;padding:0}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author{align-items:center;display:flex;flex:1 0 0;gap:8px;height:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:18px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon{color:#fff;height:24px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-90a2677a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-018eae28]{position:sticky;top:100px}.message[data-v-018eae28]{padding-top:10px}.message__timestamp[data-v-018eae28]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-018eae28]{font-size:14px;word-break:break-word}.comment__actions[data-v-018eae28]{position:absolute;right:0}.card[data-v-3ad3a67b]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-3ad3a67b]{position:absolute;top:0;right:0}.content[data-v-3ad3a67b]{position:relative;height:100%}.empty-state[data-v-3ad3a67b]{margin-top:200px;text-align:center}.empty-state__text[data-v-3ad3a67b]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-3ad3a67b]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.close-button[data-v-4e4c74a2]{position:absolute;top:10px;right:10px;width:24px;height:24px}.zt-app-bar[data-v-e344242c]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-e344242c] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-e344242c]{height:auto!important}.click-edit[data-v-e344242c]{max-width:200px;width:100%}.click-edit__name[data-v-e344242c]{font-weight:400;cursor:text}.click-edit__show-text[data-v-e344242c],.click-edit__edit-field-wrapper[data-v-e344242c]{display:flex;align-items:center}.click-edit__name[data-v-e344242c]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-e344242c]{margin-top:-11px}.click-edit__edit-field[data-v-e344242c] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-e344242c]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-e344242c]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-e344242c]{max-width:600px}}.content[data-v-e344242c]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-e344242c]{width:0;transition:width .15s ease}.content__comments--show[data-v-e344242c]{width:380px}.footer[data-v-e344242c]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-e344242c],.footer__right-container[data-v-e344242c]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-e344242c],.footer__right-container[data-v-e344242c]{align-items:center;width:auto}}.footer__right-container[data-v-e344242c]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-e344242c]{flex-direction:row}}.footer__left-container[data-v-e344242c]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-e344242c]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-e344242c]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-e344242c]{width:auto}}.footer .dot-divider[data-v-e344242c]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-e344242c]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-e344242c]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-e344242c]{margin:0 24px}}.footer__status-wrapper[data-v-e344242c]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-e344242c]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-e344242c]{display:flex}}.footer__code-version-icon[data-v-e344242c]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-e344242c]{margin-right:12px}}.footer__queue-length-btn[data-v-e344242c]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-e344242c]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-e344242c]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-e344242c]{margin-right:10px}}.footer__queue-list[data-v-e344242c]{font-size:.625rem}.footer__queue-list-item--pending[data-v-e344242c]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-e344242c]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-e344242c]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-e344242c]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-e344242c]{flex-direction:row;height:34px}}.toggle-group[data-v-e344242c]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! - * ress.css • v2.0.4 - * MIT License - * github.com/filipelinhares/ress - */html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translate(100%)}.picker-transition-leave-to{transform:translate(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-enter-from{transform:translate(-100%)}.picker-reverse-transition-leave-to{transform:translate(100%)}.expand-transition-enter-active,.expand-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-enter-active,.expand-transition-leave-active{transition-property:height!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-property:width!important}.scale-transition-enter-active,.scale-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-leave-to{opacity:0}.scale-transition-leave-active{transition-duration:.1s!important}.scale-transition-enter-from{opacity:0;transform:scale(0)}.scale-transition-enter-active,.scale-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-leave-to{opacity:0}.scale-rotate-transition-leave-active{transition-duration:.1s!important}.scale-rotate-transition-enter-from{opacity:0;transform:scale(0) rotate(-45deg)}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-leave-to{opacity:0}.scale-rotate-reverse-transition-leave-active{transition-duration:.1s!important}.scale-rotate-reverse-transition-enter-from{opacity:0;transform:scale(0) rotate(45deg)}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-property:transform,opacity!important}.message-transition-enter-active,.message-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-enter-from,.message-transition-leave-to{opacity:0;transform:translateY(-15px)}.message-transition-leave-from,.message-transition-leave-active{position:absolute}.message-transition-enter-active,.message-transition-leave-active{transition-property:transform,opacity!important}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-enter-from,.slide-y-transition-leave-to{opacity:0;transform:translateY(-15px)}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-property:transform,opacity!important}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-enter-from,.slide-y-reverse-transition-leave-to{opacity:0;transform:translateY(15px)}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-enter-from,.scroll-y-transition-leave-to{opacity:0}.scroll-y-transition-enter-from{transform:translateY(-15px)}.scroll-y-transition-leave-to{transform:translateY(15px)}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-enter-from,.scroll-y-reverse-transition-leave-to{opacity:0}.scroll-y-reverse-transition-enter-from{transform:translateY(15px)}.scroll-y-reverse-transition-leave-to{transform:translateY(-15px)}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-enter-from,.scroll-x-transition-leave-to{opacity:0}.scroll-x-transition-enter-from{transform:translate(-15px)}.scroll-x-transition-leave-to{transform:translate(15px)}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-enter-from,.scroll-x-reverse-transition-leave-to{opacity:0}.scroll-x-reverse-transition-enter-from{transform:translate(15px)}.scroll-x-reverse-transition-leave-to{transform:translate(-15px)}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-enter-from,.slide-x-transition-leave-to{opacity:0;transform:translate(-15px)}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-property:transform,opacity!important}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-enter-from,.slide-x-reverse-transition-leave-to{opacity:0;transform:translate(15px)}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-enter-from,.fade-transition-leave-to{opacity:0!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-property:opacity!important}.fab-transition-enter-active,.fab-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-enter-from,.fab-transition-leave-to{transform:scale(0) rotate(-45deg)}.fab-transition-enter-active,.fab-transition-leave-active{transition-property:transform!important}.v-locale--is-rtl{direction:rtl}.v-locale--is-ltr{direction:ltr}.blockquote{padding:16px 0 16px 24px;font-size:18px;font-weight:300}html{font-family:Pathway Extreme,sans-serif;line-height:1.5;font-size:1rem;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0)}html.overflow-y-hidden{overflow-y:hidden!important}:root{--v-theme-overlay-multiplier: 1;--v-scrollbar-offset: 0px}@supports (-webkit-touch-callout: none){body{cursor:pointer}}@media only print{.hidden-print-only{display:none!important}}@media only screen{.hidden-screen-only{display:none!important}}@media (max-width: 599.98px){.hidden-xs{display:none!important}}@media (min-width: 600px) and (max-width: 959.98px){.hidden-sm{display:none!important}}@media (min-width: 960px) and (max-width: 1279.98px){.hidden-md{display:none!important}}@media (min-width: 1280px) and (max-width: 1919.98px){.hidden-lg{display:none!important}}@media (min-width: 1920px) and (max-width: 2559.98px){.hidden-xl{display:none!important}}@media (min-width: 2560px){.hidden-xxl{display:none!important}}@media (min-width: 600px){.hidden-sm-and-up{display:none!important}}@media (min-width: 960px){.hidden-md-and-up{display:none!important}}@media (min-width: 1280px){.hidden-lg-and-up{display:none!important}}@media (min-width: 1920px){.hidden-xl-and-up{display:none!important}}@media (max-width: 959.98px){.hidden-sm-and-down{display:none!important}}@media (max-width: 1279.98px){.hidden-md-and-down{display:none!important}}@media (max-width: 1919.98px){.hidden-lg-and-down{display:none!important}}@media (max-width: 2559.98px){.hidden-xl-and-down{display:none!important}}.elevation-24{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-23{box-shadow:0 11px 14px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 23px 36px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 44px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-22{box-shadow:0 10px 14px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 22px 35px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 42px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-21{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 21px 33px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 40px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-20{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 20px 31px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 38px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-19{box-shadow:0 9px 12px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 19px 29px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 36px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-18{box-shadow:0 9px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 18px 28px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 34px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-17{box-shadow:0 8px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 17px 26px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 32px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-16{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-15{box-shadow:0 8px 9px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 15px 22px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 28px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-14{box-shadow:0 7px 9px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 14px 21px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 26px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-13{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 13px 19px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 24px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-12{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 12px 17px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 22px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-11{box-shadow:0 6px 7px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 11px 15px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 20px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-10{box-shadow:0 6px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 10px 14px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 18px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-9{box-shadow:0 5px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 9px 12px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 16px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-8{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-7{box-shadow:0 4px 5px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 7px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 2px 16px 1px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-6{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-5{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 5px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 14px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-4{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-3{box-shadow:0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 8px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-2{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-1{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-0{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.d-sr-only,.d-sr-only-focusable:not(:focus){border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-scroll{overflow-y:scroll!important}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.float-none{float:none!important}.float-left{float:left!important}.float-right{float:right!important}.v-locale--is-rtl .float-end{float:left!important}.v-locale--is-rtl .float-start,.v-locale--is-ltr .float-end{float:right!important}.v-locale--is-ltr .float-start{float:left!important}.flex-fill,.flex-1-1{flex:1 1 auto!important}.flex-1-0{flex:1 0 auto!important}.flex-0-1{flex:0 1 auto!important}.flex-0-0{flex:0 0 auto!important}.flex-1-1-100{flex:1 1 100%!important}.flex-1-0-100{flex:1 0 100%!important}.flex-0-1-100{flex:0 1 100%!important}.flex-0-0-100{flex:0 0 100%!important}.flex-1-1-0{flex:1 1 0!important}.flex-1-0-0{flex:1 0 0!important}.flex-0-1-0{flex:0 1 0!important}.flex-0-0-0{flex:0 0 0!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-space-between{justify-content:space-between!important}.justify-space-around{justify-content:space-around!important}.justify-space-evenly{justify-content:space-evenly!important}.align-start{align-items:flex-start!important}.align-end{align-items:flex-end!important}.align-center{align-items:center!important}.align-baseline{align-items:baseline!important}.align-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-space-between{align-content:space-between!important}.align-content-space-around{align-content:space-around!important}.align-content-space-evenly{align-content:space-evenly!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-6{order:6!important}.order-7{order:7!important}.order-8{order:8!important}.order-9{order:9!important}.order-10{order:10!important}.order-11{order:11!important}.order-12{order:12!important}.order-last{order:13!important}.ga-0{gap:0px!important}.ga-1{gap:4px!important}.ga-2{gap:8px!important}.ga-3{gap:12px!important}.ga-4{gap:16px!important}.ga-5{gap:20px!important}.ga-6{gap:24px!important}.ga-7{gap:28px!important}.ga-8{gap:32px!important}.ga-9{gap:36px!important}.ga-10{gap:40px!important}.ga-11{gap:44px!important}.ga-12{gap:48px!important}.ga-13{gap:52px!important}.ga-14{gap:56px!important}.ga-15{gap:60px!important}.ga-16{gap:64px!important}.ga-auto{gap:auto!important}.gr-0{row-gap:0px!important}.gr-1{row-gap:4px!important}.gr-2{row-gap:8px!important}.gr-3{row-gap:12px!important}.gr-4{row-gap:16px!important}.gr-5{row-gap:20px!important}.gr-6{row-gap:24px!important}.gr-7{row-gap:28px!important}.gr-8{row-gap:32px!important}.gr-9{row-gap:36px!important}.gr-10{row-gap:40px!important}.gr-11{row-gap:44px!important}.gr-12{row-gap:48px!important}.gr-13{row-gap:52px!important}.gr-14{row-gap:56px!important}.gr-15{row-gap:60px!important}.gr-16{row-gap:64px!important}.gr-auto{row-gap:auto!important}.gc-0{column-gap:0px!important}.gc-1{column-gap:4px!important}.gc-2{column-gap:8px!important}.gc-3{column-gap:12px!important}.gc-4{column-gap:16px!important}.gc-5{column-gap:20px!important}.gc-6{column-gap:24px!important}.gc-7{column-gap:28px!important}.gc-8{column-gap:32px!important}.gc-9{column-gap:36px!important}.gc-10{column-gap:40px!important}.gc-11{column-gap:44px!important}.gc-12{column-gap:48px!important}.gc-13{column-gap:52px!important}.gc-14{column-gap:56px!important}.gc-15{column-gap:60px!important}.gc-16{column-gap:64px!important}.gc-auto{column-gap:auto!important}.ma-0{margin:0!important}.ma-1{margin:4px!important}.ma-2{margin:8px!important}.ma-3{margin:12px!important}.ma-4{margin:16px!important}.ma-5{margin:20px!important}.ma-6{margin:24px!important}.ma-7{margin:28px!important}.ma-8{margin:32px!important}.ma-9{margin:36px!important}.ma-10{margin:40px!important}.ma-11{margin:44px!important}.ma-12{margin:48px!important}.ma-13{margin:52px!important}.ma-14{margin:56px!important}.ma-15{margin:60px!important}.ma-16{margin:64px!important}.ma-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:4px!important;margin-left:4px!important}.mx-2{margin-right:8px!important;margin-left:8px!important}.mx-3{margin-right:12px!important;margin-left:12px!important}.mx-4{margin-right:16px!important;margin-left:16px!important}.mx-5{margin-right:20px!important;margin-left:20px!important}.mx-6{margin-right:24px!important;margin-left:24px!important}.mx-7{margin-right:28px!important;margin-left:28px!important}.mx-8{margin-right:32px!important;margin-left:32px!important}.mx-9{margin-right:36px!important;margin-left:36px!important}.mx-10{margin-right:40px!important;margin-left:40px!important}.mx-11{margin-right:44px!important;margin-left:44px!important}.mx-12{margin-right:48px!important;margin-left:48px!important}.mx-13{margin-right:52px!important;margin-left:52px!important}.mx-14{margin-right:56px!important;margin-left:56px!important}.mx-15{margin-right:60px!important;margin-left:60px!important}.mx-16{margin-right:64px!important;margin-left:64px!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:4px!important;margin-bottom:4px!important}.my-2{margin-top:8px!important;margin-bottom:8px!important}.my-3{margin-top:12px!important;margin-bottom:12px!important}.my-4{margin-top:16px!important;margin-bottom:16px!important}.my-5{margin-top:20px!important;margin-bottom:20px!important}.my-6{margin-top:24px!important;margin-bottom:24px!important}.my-7{margin-top:28px!important;margin-bottom:28px!important}.my-8{margin-top:32px!important;margin-bottom:32px!important}.my-9{margin-top:36px!important;margin-bottom:36px!important}.my-10{margin-top:40px!important;margin-bottom:40px!important}.my-11{margin-top:44px!important;margin-bottom:44px!important}.my-12{margin-top:48px!important;margin-bottom:48px!important}.my-13{margin-top:52px!important;margin-bottom:52px!important}.my-14{margin-top:56px!important;margin-bottom:56px!important}.my-15{margin-top:60px!important;margin-bottom:60px!important}.my-16{margin-top:64px!important;margin-bottom:64px!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:20px!important}.mt-6{margin-top:24px!important}.mt-7{margin-top:28px!important}.mt-8{margin-top:32px!important}.mt-9{margin-top:36px!important}.mt-10{margin-top:40px!important}.mt-11{margin-top:44px!important}.mt-12{margin-top:48px!important}.mt-13{margin-top:52px!important}.mt-14{margin-top:56px!important}.mt-15{margin-top:60px!important}.mt-16{margin-top:64px!important}.mt-auto{margin-top:auto!important}.mr-0{margin-right:0!important}.mr-1{margin-right:4px!important}.mr-2{margin-right:8px!important}.mr-3{margin-right:12px!important}.mr-4{margin-right:16px!important}.mr-5{margin-right:20px!important}.mr-6{margin-right:24px!important}.mr-7{margin-right:28px!important}.mr-8{margin-right:32px!important}.mr-9{margin-right:36px!important}.mr-10{margin-right:40px!important}.mr-11{margin-right:44px!important}.mr-12{margin-right:48px!important}.mr-13{margin-right:52px!important}.mr-14{margin-right:56px!important}.mr-15{margin-right:60px!important}.mr-16{margin-right:64px!important}.mr-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:20px!important}.mb-6{margin-bottom:24px!important}.mb-7{margin-bottom:28px!important}.mb-8{margin-bottom:32px!important}.mb-9{margin-bottom:36px!important}.mb-10{margin-bottom:40px!important}.mb-11{margin-bottom:44px!important}.mb-12{margin-bottom:48px!important}.mb-13{margin-bottom:52px!important}.mb-14{margin-bottom:56px!important}.mb-15{margin-bottom:60px!important}.mb-16{margin-bottom:64px!important}.mb-auto{margin-bottom:auto!important}.ml-0{margin-left:0!important}.ml-1{margin-left:4px!important}.ml-2{margin-left:8px!important}.ml-3{margin-left:12px!important}.ml-4{margin-left:16px!important}.ml-5{margin-left:20px!important}.ml-6{margin-left:24px!important}.ml-7{margin-left:28px!important}.ml-8{margin-left:32px!important}.ml-9{margin-left:36px!important}.ml-10{margin-left:40px!important}.ml-11{margin-left:44px!important}.ml-12{margin-left:48px!important}.ml-13{margin-left:52px!important}.ml-14{margin-left:56px!important}.ml-15{margin-left:60px!important}.ml-16{margin-left:64px!important}.ml-auto{margin-left:auto!important}.ms-0{margin-inline-start:0px!important}.ms-1{margin-inline-start:4px!important}.ms-2{margin-inline-start:8px!important}.ms-3{margin-inline-start:12px!important}.ms-4{margin-inline-start:16px!important}.ms-5{margin-inline-start:20px!important}.ms-6{margin-inline-start:24px!important}.ms-7{margin-inline-start:28px!important}.ms-8{margin-inline-start:32px!important}.ms-9{margin-inline-start:36px!important}.ms-10{margin-inline-start:40px!important}.ms-11{margin-inline-start:44px!important}.ms-12{margin-inline-start:48px!important}.ms-13{margin-inline-start:52px!important}.ms-14{margin-inline-start:56px!important}.ms-15{margin-inline-start:60px!important}.ms-16{margin-inline-start:64px!important}.ms-auto{margin-inline-start:auto!important}.me-0{margin-inline-end:0px!important}.me-1{margin-inline-end:4px!important}.me-2{margin-inline-end:8px!important}.me-3{margin-inline-end:12px!important}.me-4{margin-inline-end:16px!important}.me-5{margin-inline-end:20px!important}.me-6{margin-inline-end:24px!important}.me-7{margin-inline-end:28px!important}.me-8{margin-inline-end:32px!important}.me-9{margin-inline-end:36px!important}.me-10{margin-inline-end:40px!important}.me-11{margin-inline-end:44px!important}.me-12{margin-inline-end:48px!important}.me-13{margin-inline-end:52px!important}.me-14{margin-inline-end:56px!important}.me-15{margin-inline-end:60px!important}.me-16{margin-inline-end:64px!important}.me-auto{margin-inline-end:auto!important}.ma-n1{margin:-4px!important}.ma-n2{margin:-8px!important}.ma-n3{margin:-12px!important}.ma-n4{margin:-16px!important}.ma-n5{margin:-20px!important}.ma-n6{margin:-24px!important}.ma-n7{margin:-28px!important}.ma-n8{margin:-32px!important}.ma-n9{margin:-36px!important}.ma-n10{margin:-40px!important}.ma-n11{margin:-44px!important}.ma-n12{margin:-48px!important}.ma-n13{margin:-52px!important}.ma-n14{margin:-56px!important}.ma-n15{margin:-60px!important}.ma-n16{margin:-64px!important}.mx-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-n16{margin-right:-64px!important;margin-left:-64px!important}.my-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-n1{margin-top:-4px!important}.mt-n2{margin-top:-8px!important}.mt-n3{margin-top:-12px!important}.mt-n4{margin-top:-16px!important}.mt-n5{margin-top:-20px!important}.mt-n6{margin-top:-24px!important}.mt-n7{margin-top:-28px!important}.mt-n8{margin-top:-32px!important}.mt-n9{margin-top:-36px!important}.mt-n10{margin-top:-40px!important}.mt-n11{margin-top:-44px!important}.mt-n12{margin-top:-48px!important}.mt-n13{margin-top:-52px!important}.mt-n14{margin-top:-56px!important}.mt-n15{margin-top:-60px!important}.mt-n16{margin-top:-64px!important}.mr-n1{margin-right:-4px!important}.mr-n2{margin-right:-8px!important}.mr-n3{margin-right:-12px!important}.mr-n4{margin-right:-16px!important}.mr-n5{margin-right:-20px!important}.mr-n6{margin-right:-24px!important}.mr-n7{margin-right:-28px!important}.mr-n8{margin-right:-32px!important}.mr-n9{margin-right:-36px!important}.mr-n10{margin-right:-40px!important}.mr-n11{margin-right:-44px!important}.mr-n12{margin-right:-48px!important}.mr-n13{margin-right:-52px!important}.mr-n14{margin-right:-56px!important}.mr-n15{margin-right:-60px!important}.mr-n16{margin-right:-64px!important}.mb-n1{margin-bottom:-4px!important}.mb-n2{margin-bottom:-8px!important}.mb-n3{margin-bottom:-12px!important}.mb-n4{margin-bottom:-16px!important}.mb-n5{margin-bottom:-20px!important}.mb-n6{margin-bottom:-24px!important}.mb-n7{margin-bottom:-28px!important}.mb-n8{margin-bottom:-32px!important}.mb-n9{margin-bottom:-36px!important}.mb-n10{margin-bottom:-40px!important}.mb-n11{margin-bottom:-44px!important}.mb-n12{margin-bottom:-48px!important}.mb-n13{margin-bottom:-52px!important}.mb-n14{margin-bottom:-56px!important}.mb-n15{margin-bottom:-60px!important}.mb-n16{margin-bottom:-64px!important}.ml-n1{margin-left:-4px!important}.ml-n2{margin-left:-8px!important}.ml-n3{margin-left:-12px!important}.ml-n4{margin-left:-16px!important}.ml-n5{margin-left:-20px!important}.ml-n6{margin-left:-24px!important}.ml-n7{margin-left:-28px!important}.ml-n8{margin-left:-32px!important}.ml-n9{margin-left:-36px!important}.ml-n10{margin-left:-40px!important}.ml-n11{margin-left:-44px!important}.ml-n12{margin-left:-48px!important}.ml-n13{margin-left:-52px!important}.ml-n14{margin-left:-56px!important}.ml-n15{margin-left:-60px!important}.ml-n16{margin-left:-64px!important}.ms-n1{margin-inline-start:-4px!important}.ms-n2{margin-inline-start:-8px!important}.ms-n3{margin-inline-start:-12px!important}.ms-n4{margin-inline-start:-16px!important}.ms-n5{margin-inline-start:-20px!important}.ms-n6{margin-inline-start:-24px!important}.ms-n7{margin-inline-start:-28px!important}.ms-n8{margin-inline-start:-32px!important}.ms-n9{margin-inline-start:-36px!important}.ms-n10{margin-inline-start:-40px!important}.ms-n11{margin-inline-start:-44px!important}.ms-n12{margin-inline-start:-48px!important}.ms-n13{margin-inline-start:-52px!important}.ms-n14{margin-inline-start:-56px!important}.ms-n15{margin-inline-start:-60px!important}.ms-n16{margin-inline-start:-64px!important}.me-n1{margin-inline-end:-4px!important}.me-n2{margin-inline-end:-8px!important}.me-n3{margin-inline-end:-12px!important}.me-n4{margin-inline-end:-16px!important}.me-n5{margin-inline-end:-20px!important}.me-n6{margin-inline-end:-24px!important}.me-n7{margin-inline-end:-28px!important}.me-n8{margin-inline-end:-32px!important}.me-n9{margin-inline-end:-36px!important}.me-n10{margin-inline-end:-40px!important}.me-n11{margin-inline-end:-44px!important}.me-n12{margin-inline-end:-48px!important}.me-n13{margin-inline-end:-52px!important}.me-n14{margin-inline-end:-56px!important}.me-n15{margin-inline-end:-60px!important}.me-n16{margin-inline-end:-64px!important}.pa-0{padding:0!important}.pa-1{padding:4px!important}.pa-2{padding:8px!important}.pa-3{padding:12px!important}.pa-4{padding:16px!important}.pa-5{padding:20px!important}.pa-6{padding:24px!important}.pa-7{padding:28px!important}.pa-8{padding:32px!important}.pa-9{padding:36px!important}.pa-10{padding:40px!important}.pa-11{padding:44px!important}.pa-12{padding:48px!important}.pa-13{padding:52px!important}.pa-14{padding:56px!important}.pa-15{padding:60px!important}.pa-16{padding:64px!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:4px!important;padding-left:4px!important}.px-2{padding-right:8px!important;padding-left:8px!important}.px-3{padding-right:12px!important;padding-left:12px!important}.px-4{padding-right:16px!important;padding-left:16px!important}.px-5{padding-right:20px!important;padding-left:20px!important}.px-6{padding-right:24px!important;padding-left:24px!important}.px-7{padding-right:28px!important;padding-left:28px!important}.px-8{padding-right:32px!important;padding-left:32px!important}.px-9{padding-right:36px!important;padding-left:36px!important}.px-10{padding-right:40px!important;padding-left:40px!important}.px-11{padding-right:44px!important;padding-left:44px!important}.px-12{padding-right:48px!important;padding-left:48px!important}.px-13{padding-right:52px!important;padding-left:52px!important}.px-14{padding-right:56px!important;padding-left:56px!important}.px-15{padding-right:60px!important;padding-left:60px!important}.px-16{padding-right:64px!important;padding-left:64px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:4px!important;padding-bottom:4px!important}.py-2{padding-top:8px!important;padding-bottom:8px!important}.py-3{padding-top:12px!important;padding-bottom:12px!important}.py-4{padding-top:16px!important;padding-bottom:16px!important}.py-5{padding-top:20px!important;padding-bottom:20px!important}.py-6{padding-top:24px!important;padding-bottom:24px!important}.py-7{padding-top:28px!important;padding-bottom:28px!important}.py-8{padding-top:32px!important;padding-bottom:32px!important}.py-9{padding-top:36px!important;padding-bottom:36px!important}.py-10{padding-top:40px!important;padding-bottom:40px!important}.py-11{padding-top:44px!important;padding-bottom:44px!important}.py-12{padding-top:48px!important;padding-bottom:48px!important}.py-13{padding-top:52px!important;padding-bottom:52px!important}.py-14{padding-top:56px!important;padding-bottom:56px!important}.py-15{padding-top:60px!important;padding-bottom:60px!important}.py-16{padding-top:64px!important;padding-bottom:64px!important}.pt-0{padding-top:0!important}.pt-1{padding-top:4px!important}.pt-2{padding-top:8px!important}.pt-3{padding-top:12px!important}.pt-4{padding-top:16px!important}.pt-5{padding-top:20px!important}.pt-6{padding-top:24px!important}.pt-7{padding-top:28px!important}.pt-8{padding-top:32px!important}.pt-9{padding-top:36px!important}.pt-10{padding-top:40px!important}.pt-11{padding-top:44px!important}.pt-12{padding-top:48px!important}.pt-13{padding-top:52px!important}.pt-14{padding-top:56px!important}.pt-15{padding-top:60px!important}.pt-16{padding-top:64px!important}.pr-0{padding-right:0!important}.pr-1{padding-right:4px!important}.pr-2{padding-right:8px!important}.pr-3{padding-right:12px!important}.pr-4{padding-right:16px!important}.pr-5{padding-right:20px!important}.pr-6{padding-right:24px!important}.pr-7{padding-right:28px!important}.pr-8{padding-right:32px!important}.pr-9{padding-right:36px!important}.pr-10{padding-right:40px!important}.pr-11{padding-right:44px!important}.pr-12{padding-right:48px!important}.pr-13{padding-right:52px!important}.pr-14{padding-right:56px!important}.pr-15{padding-right:60px!important}.pr-16{padding-right:64px!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:4px!important}.pb-2{padding-bottom:8px!important}.pb-3{padding-bottom:12px!important}.pb-4{padding-bottom:16px!important}.pb-5{padding-bottom:20px!important}.pb-6{padding-bottom:24px!important}.pb-7{padding-bottom:28px!important}.pb-8{padding-bottom:32px!important}.pb-9{padding-bottom:36px!important}.pb-10{padding-bottom:40px!important}.pb-11{padding-bottom:44px!important}.pb-12{padding-bottom:48px!important}.pb-13{padding-bottom:52px!important}.pb-14{padding-bottom:56px!important}.pb-15{padding-bottom:60px!important}.pb-16{padding-bottom:64px!important}.pl-0{padding-left:0!important}.pl-1{padding-left:4px!important}.pl-2{padding-left:8px!important}.pl-3{padding-left:12px!important}.pl-4{padding-left:16px!important}.pl-5{padding-left:20px!important}.pl-6{padding-left:24px!important}.pl-7{padding-left:28px!important}.pl-8{padding-left:32px!important}.pl-9{padding-left:36px!important}.pl-10{padding-left:40px!important}.pl-11{padding-left:44px!important}.pl-12{padding-left:48px!important}.pl-13{padding-left:52px!important}.pl-14{padding-left:56px!important}.pl-15{padding-left:60px!important}.pl-16{padding-left:64px!important}.ps-0{padding-inline-start:0px!important}.ps-1{padding-inline-start:4px!important}.ps-2{padding-inline-start:8px!important}.ps-3{padding-inline-start:12px!important}.ps-4{padding-inline-start:16px!important}.ps-5{padding-inline-start:20px!important}.ps-6{padding-inline-start:24px!important}.ps-7{padding-inline-start:28px!important}.ps-8{padding-inline-start:32px!important}.ps-9{padding-inline-start:36px!important}.ps-10{padding-inline-start:40px!important}.ps-11{padding-inline-start:44px!important}.ps-12{padding-inline-start:48px!important}.ps-13{padding-inline-start:52px!important}.ps-14{padding-inline-start:56px!important}.ps-15{padding-inline-start:60px!important}.ps-16{padding-inline-start:64px!important}.pe-0{padding-inline-end:0px!important}.pe-1{padding-inline-end:4px!important}.pe-2{padding-inline-end:8px!important}.pe-3{padding-inline-end:12px!important}.pe-4{padding-inline-end:16px!important}.pe-5{padding-inline-end:20px!important}.pe-6{padding-inline-end:24px!important}.pe-7{padding-inline-end:28px!important}.pe-8{padding-inline-end:32px!important}.pe-9{padding-inline-end:36px!important}.pe-10{padding-inline-end:40px!important}.pe-11{padding-inline-end:44px!important}.pe-12{padding-inline-end:48px!important}.pe-13{padding-inline-end:52px!important}.pe-14{padding-inline-end:56px!important}.pe-15{padding-inline-end:60px!important}.pe-16{padding-inline-end:64px!important}.rounded-0{border-radius:0!important}.rounded-sm{border-radius:2px!important}.rounded{border-radius:4px!important}.rounded-lg{border-radius:8px!important}.rounded-xl{border-radius:24px!important}.rounded-pill{border-radius:9999px!important}.rounded-circle{border-radius:50%!important}.rounded-shaped{border-radius:24px 0!important}.rounded-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px!important;border-top-right-radius:2px!important}.rounded-t{border-top-left-radius:4px!important;border-top-right-radius:4px!important}.rounded-t-lg{border-top-left-radius:8px!important;border-top-right-radius:8px!important}.rounded-t-xl{border-top-left-radius:24px!important;border-top-right-radius:24px!important}.rounded-t-pill{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-t-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-t-shaped{border-top-left-radius:24px!important;border-top-right-radius:0!important}.v-locale--is-ltr .rounded-e-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-e-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-e-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-e{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-e{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-e-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-e-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-e-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-e-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-e-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-e-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-e-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-e-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-e-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.rounded-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-sm{border-bottom-left-radius:2px!important;border-bottom-right-radius:2px!important}.rounded-b{border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important}.rounded-b-lg{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}.rounded-b-xl{border-bottom-left-radius:24px!important;border-bottom-right-radius:24px!important}.rounded-b-pill{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-b-circle{border-bottom-left-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-b-shaped{border-bottom-left-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-s-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-s{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-s{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-s-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-s-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-s-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-s-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-s-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-s-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-s-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-s-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-s-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-ts-0{border-top-left-radius:0!important}.v-locale--is-rtl .rounded-ts-0{border-top-right-radius:0!important}.v-locale--is-ltr .rounded-ts-sm{border-top-left-radius:2px!important}.v-locale--is-rtl .rounded-ts-sm{border-top-right-radius:2px!important}.v-locale--is-ltr .rounded-ts{border-top-left-radius:4px!important}.v-locale--is-rtl .rounded-ts{border-top-right-radius:4px!important}.v-locale--is-ltr .rounded-ts-lg{border-top-left-radius:8px!important}.v-locale--is-rtl .rounded-ts-lg{border-top-right-radius:8px!important}.v-locale--is-ltr .rounded-ts-xl{border-top-left-radius:24px!important}.v-locale--is-rtl .rounded-ts-xl{border-top-right-radius:24px!important}.v-locale--is-ltr .rounded-ts-pill{border-top-left-radius:9999px!important}.v-locale--is-rtl .rounded-ts-pill{border-top-right-radius:9999px!important}.v-locale--is-ltr .rounded-ts-circle{border-top-left-radius:50%!important}.v-locale--is-rtl .rounded-ts-circle{border-top-right-radius:50%!important}.v-locale--is-ltr .rounded-ts-shaped{border-top-left-radius:24px 0!important}.v-locale--is-rtl .rounded-ts-shaped{border-top-right-radius:24px 0!important}.v-locale--is-ltr .rounded-te-0{border-top-right-radius:0!important}.v-locale--is-rtl .rounded-te-0{border-top-left-radius:0!important}.v-locale--is-ltr .rounded-te-sm{border-top-right-radius:2px!important}.v-locale--is-rtl .rounded-te-sm{border-top-left-radius:2px!important}.v-locale--is-ltr .rounded-te{border-top-right-radius:4px!important}.v-locale--is-rtl .rounded-te{border-top-left-radius:4px!important}.v-locale--is-ltr .rounded-te-lg{border-top-right-radius:8px!important}.v-locale--is-rtl .rounded-te-lg{border-top-left-radius:8px!important}.v-locale--is-ltr .rounded-te-xl{border-top-right-radius:24px!important}.v-locale--is-rtl .rounded-te-xl{border-top-left-radius:24px!important}.v-locale--is-ltr .rounded-te-pill{border-top-right-radius:9999px!important}.v-locale--is-rtl .rounded-te-pill{border-top-left-radius:9999px!important}.v-locale--is-ltr .rounded-te-circle{border-top-right-radius:50%!important}.v-locale--is-rtl .rounded-te-circle{border-top-left-radius:50%!important}.v-locale--is-ltr .rounded-te-shaped{border-top-right-radius:24px 0!important}.v-locale--is-rtl .rounded-te-shaped{border-top-left-radius:24px 0!important}.v-locale--is-ltr .rounded-be-0{border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-be-0{border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-be-sm{border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-be-sm{border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-be{border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-be{border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-be-lg{border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-be-lg{border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-be-xl{border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-be-xl{border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-be-pill{border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-be-pill{border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-be-circle{border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-be-circle{border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-be-shaped{border-bottom-right-radius:24px 0!important}.v-locale--is-rtl .rounded-be-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-ltr .rounded-bs-0{border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-bs-0{border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-bs-sm{border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-bs-sm{border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-bs{border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-bs{border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-bs-lg{border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-bs-lg{border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-bs-xl{border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-bs-xl{border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-bs-pill{border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-bs-pill{border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-bs-circle{border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-bs-circle{border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-bs-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-rtl .rounded-bs-shaped{border-bottom-right-radius:24px 0!important}.border-0{border-width:0!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border,.border-thin{border-width:thin!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-sm{border-width:1px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-md{border-width:2px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-lg{border-width:4px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-xl{border-width:8px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-opacity-0{--v-border-opacity: 0 !important}.border-opacity{--v-border-opacity: .12 !important}.border-opacity-25{--v-border-opacity: .25 !important}.border-opacity-50{--v-border-opacity: .5 !important}.border-opacity-75{--v-border-opacity: .75 !important}.border-opacity-100{--v-border-opacity: 1 !important}.border-t-0{border-block-start-width:0!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t,.border-t-thin{border-block-start-width:thin!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-sm{border-block-start-width:1px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-md{border-block-start-width:2px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-lg{border-block-start-width:4px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-xl{border-block-start-width:8px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-0{border-inline-end-width:0!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e,.border-e-thin{border-inline-end-width:thin!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-sm{border-inline-end-width:1px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-md{border-inline-end-width:2px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-lg{border-inline-end-width:4px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-xl{border-inline-end-width:8px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-0{border-block-end-width:0!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b,.border-b-thin{border-block-end-width:thin!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-sm{border-block-end-width:1px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-md{border-block-end-width:2px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-lg{border-block-end-width:4px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-xl{border-block-end-width:8px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-0{border-inline-start-width:0!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s,.border-s-thin{border-inline-start-width:thin!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-sm{border-inline-start-width:1px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-md{border-inline-start-width:2px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-lg{border-inline-start-width:4px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-xl{border-inline-start-width:8px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-none{border-style:none!important}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-start{text-align:start!important}.text-end{text-align:end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-none{text-decoration:none!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-underline{text-decoration:underline!important}.text-wrap{white-space:normal!important}.text-no-wrap{white-space:nowrap!important}.text-pre{white-space:pre!important}.text-pre-line{white-space:pre-line!important}.text-pre-wrap{white-space:pre-wrap!important}.text-break{overflow-wrap:break-word!important;word-break:break-word!important}.opacity-hover{opacity:var(--v-hover-opacity)!important}.opacity-focus{opacity:var(--v-focus-opacity)!important}.opacity-selected{opacity:var(--v-selected-opacity)!important}.opacity-activated{opacity:var(--v-activated-opacity)!important}.opacity-pressed{opacity:var(--v-pressed-opacity)!important}.opacity-dragged{opacity:var(--v-dragged-opacity)!important}.opacity-0{opacity:0!important}.opacity-10{opacity:.1!important}.opacity-20{opacity:.2!important}.opacity-30{opacity:.3!important}.opacity-40{opacity:.4!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-80{opacity:.8!important}.opacity-90{opacity:.9!important}.opacity-100{opacity:1!important}.text-high-emphasis{color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))!important}.text-medium-emphasis{color:rgba(var(--v-theme-on-background),var(--v-medium-emphasis-opacity))!important}.text-disabled{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity))!important}.text-truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.text-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-none{text-transform:none!important}.text-capitalize{text-transform:capitalize!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.font-weight-thin{font-weight:100!important}.font-weight-light{font-weight:300!important}.font-weight-regular{font-weight:400!important}.font-weight-medium{font-weight:500!important}.font-weight-bold{font-weight:700!important}.font-weight-black{font-weight:900!important}.font-italic{font-style:italic!important}.text-mono{font-family:monospace!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.right-0{right:0!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.cursor-auto{cursor:auto!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-help{cursor:help!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-progress{cursor:progress!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-none{cursor:none!important}.fill-height{height:100%!important}.h-auto{height:auto!important}.h-screen{height:100vh!important}.h-0{height:0!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-screen{height:100dvh!important}.w-auto{width:auto!important}.w-0{width:0!important}.w-25{width:25%!important}.w-33{width:33%!important}.w-50{width:50%!important}.w-66{width:66%!important}.w-75{width:75%!important}.w-100{width:100%!important}@media (min-width: 600px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.float-sm-none{float:none!important}.float-sm-left{float:left!important}.float-sm-right{float:right!important}.v-locale--is-rtl .float-sm-end{float:left!important}.v-locale--is-rtl .float-sm-start,.v-locale--is-ltr .float-sm-end{float:right!important}.v-locale--is-ltr .float-sm-start{float:left!important}.flex-sm-fill,.flex-sm-1-1{flex:1 1 auto!important}.flex-sm-1-0{flex:1 0 auto!important}.flex-sm-0-1{flex:0 1 auto!important}.flex-sm-0-0{flex:0 0 auto!important}.flex-sm-1-1-100{flex:1 1 100%!important}.flex-sm-1-0-100{flex:1 0 100%!important}.flex-sm-0-1-100{flex:0 1 100%!important}.flex-sm-0-0-100{flex:0 0 100%!important}.flex-sm-1-1-0{flex:1 1 0!important}.flex-sm-1-0-0{flex:1 0 0!important}.flex-sm-0-1-0{flex:0 1 0!important}.flex-sm-0-0-0{flex:0 0 0!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-sm-start{justify-content:flex-start!important}.justify-sm-end{justify-content:flex-end!important}.justify-sm-center{justify-content:center!important}.justify-sm-space-between{justify-content:space-between!important}.justify-sm-space-around{justify-content:space-around!important}.justify-sm-space-evenly{justify-content:space-evenly!important}.align-sm-start{align-items:flex-start!important}.align-sm-end{align-items:flex-end!important}.align-sm-center{align-items:center!important}.align-sm-baseline{align-items:baseline!important}.align-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-space-between{align-content:space-between!important}.align-content-sm-space-around{align-content:space-around!important}.align-content-sm-space-evenly{align-content:space-evenly!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-6{order:6!important}.order-sm-7{order:7!important}.order-sm-8{order:8!important}.order-sm-9{order:9!important}.order-sm-10{order:10!important}.order-sm-11{order:11!important}.order-sm-12{order:12!important}.order-sm-last{order:13!important}.ga-sm-0{gap:0px!important}.ga-sm-1{gap:4px!important}.ga-sm-2{gap:8px!important}.ga-sm-3{gap:12px!important}.ga-sm-4{gap:16px!important}.ga-sm-5{gap:20px!important}.ga-sm-6{gap:24px!important}.ga-sm-7{gap:28px!important}.ga-sm-8{gap:32px!important}.ga-sm-9{gap:36px!important}.ga-sm-10{gap:40px!important}.ga-sm-11{gap:44px!important}.ga-sm-12{gap:48px!important}.ga-sm-13{gap:52px!important}.ga-sm-14{gap:56px!important}.ga-sm-15{gap:60px!important}.ga-sm-16{gap:64px!important}.ga-sm-auto{gap:auto!important}.gr-sm-0{row-gap:0px!important}.gr-sm-1{row-gap:4px!important}.gr-sm-2{row-gap:8px!important}.gr-sm-3{row-gap:12px!important}.gr-sm-4{row-gap:16px!important}.gr-sm-5{row-gap:20px!important}.gr-sm-6{row-gap:24px!important}.gr-sm-7{row-gap:28px!important}.gr-sm-8{row-gap:32px!important}.gr-sm-9{row-gap:36px!important}.gr-sm-10{row-gap:40px!important}.gr-sm-11{row-gap:44px!important}.gr-sm-12{row-gap:48px!important}.gr-sm-13{row-gap:52px!important}.gr-sm-14{row-gap:56px!important}.gr-sm-15{row-gap:60px!important}.gr-sm-16{row-gap:64px!important}.gr-sm-auto{row-gap:auto!important}.gc-sm-0{column-gap:0px!important}.gc-sm-1{column-gap:4px!important}.gc-sm-2{column-gap:8px!important}.gc-sm-3{column-gap:12px!important}.gc-sm-4{column-gap:16px!important}.gc-sm-5{column-gap:20px!important}.gc-sm-6{column-gap:24px!important}.gc-sm-7{column-gap:28px!important}.gc-sm-8{column-gap:32px!important}.gc-sm-9{column-gap:36px!important}.gc-sm-10{column-gap:40px!important}.gc-sm-11{column-gap:44px!important}.gc-sm-12{column-gap:48px!important}.gc-sm-13{column-gap:52px!important}.gc-sm-14{column-gap:56px!important}.gc-sm-15{column-gap:60px!important}.gc-sm-16{column-gap:64px!important}.gc-sm-auto{column-gap:auto!important}.ma-sm-0{margin:0!important}.ma-sm-1{margin:4px!important}.ma-sm-2{margin:8px!important}.ma-sm-3{margin:12px!important}.ma-sm-4{margin:16px!important}.ma-sm-5{margin:20px!important}.ma-sm-6{margin:24px!important}.ma-sm-7{margin:28px!important}.ma-sm-8{margin:32px!important}.ma-sm-9{margin:36px!important}.ma-sm-10{margin:40px!important}.ma-sm-11{margin:44px!important}.ma-sm-12{margin:48px!important}.ma-sm-13{margin:52px!important}.ma-sm-14{margin:56px!important}.ma-sm-15{margin:60px!important}.ma-sm-16{margin:64px!important}.ma-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:4px!important;margin-left:4px!important}.mx-sm-2{margin-right:8px!important;margin-left:8px!important}.mx-sm-3{margin-right:12px!important;margin-left:12px!important}.mx-sm-4{margin-right:16px!important;margin-left:16px!important}.mx-sm-5{margin-right:20px!important;margin-left:20px!important}.mx-sm-6{margin-right:24px!important;margin-left:24px!important}.mx-sm-7{margin-right:28px!important;margin-left:28px!important}.mx-sm-8{margin-right:32px!important;margin-left:32px!important}.mx-sm-9{margin-right:36px!important;margin-left:36px!important}.mx-sm-10{margin-right:40px!important;margin-left:40px!important}.mx-sm-11{margin-right:44px!important;margin-left:44px!important}.mx-sm-12{margin-right:48px!important;margin-left:48px!important}.mx-sm-13{margin-right:52px!important;margin-left:52px!important}.mx-sm-14{margin-right:56px!important;margin-left:56px!important}.mx-sm-15{margin-right:60px!important;margin-left:60px!important}.mx-sm-16{margin-right:64px!important;margin-left:64px!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:4px!important;margin-bottom:4px!important}.my-sm-2{margin-top:8px!important;margin-bottom:8px!important}.my-sm-3{margin-top:12px!important;margin-bottom:12px!important}.my-sm-4{margin-top:16px!important;margin-bottom:16px!important}.my-sm-5{margin-top:20px!important;margin-bottom:20px!important}.my-sm-6{margin-top:24px!important;margin-bottom:24px!important}.my-sm-7{margin-top:28px!important;margin-bottom:28px!important}.my-sm-8{margin-top:32px!important;margin-bottom:32px!important}.my-sm-9{margin-top:36px!important;margin-bottom:36px!important}.my-sm-10{margin-top:40px!important;margin-bottom:40px!important}.my-sm-11{margin-top:44px!important;margin-bottom:44px!important}.my-sm-12{margin-top:48px!important;margin-bottom:48px!important}.my-sm-13{margin-top:52px!important;margin-bottom:52px!important}.my-sm-14{margin-top:56px!important;margin-bottom:56px!important}.my-sm-15{margin-top:60px!important;margin-bottom:60px!important}.my-sm-16{margin-top:64px!important;margin-bottom:64px!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:4px!important}.mt-sm-2{margin-top:8px!important}.mt-sm-3{margin-top:12px!important}.mt-sm-4{margin-top:16px!important}.mt-sm-5{margin-top:20px!important}.mt-sm-6{margin-top:24px!important}.mt-sm-7{margin-top:28px!important}.mt-sm-8{margin-top:32px!important}.mt-sm-9{margin-top:36px!important}.mt-sm-10{margin-top:40px!important}.mt-sm-11{margin-top:44px!important}.mt-sm-12{margin-top:48px!important}.mt-sm-13{margin-top:52px!important}.mt-sm-14{margin-top:56px!important}.mt-sm-15{margin-top:60px!important}.mt-sm-16{margin-top:64px!important}.mt-sm-auto{margin-top:auto!important}.mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:4px!important}.mr-sm-2{margin-right:8px!important}.mr-sm-3{margin-right:12px!important}.mr-sm-4{margin-right:16px!important}.mr-sm-5{margin-right:20px!important}.mr-sm-6{margin-right:24px!important}.mr-sm-7{margin-right:28px!important}.mr-sm-8{margin-right:32px!important}.mr-sm-9{margin-right:36px!important}.mr-sm-10{margin-right:40px!important}.mr-sm-11{margin-right:44px!important}.mr-sm-12{margin-right:48px!important}.mr-sm-13{margin-right:52px!important}.mr-sm-14{margin-right:56px!important}.mr-sm-15{margin-right:60px!important}.mr-sm-16{margin-right:64px!important}.mr-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:4px!important}.mb-sm-2{margin-bottom:8px!important}.mb-sm-3{margin-bottom:12px!important}.mb-sm-4{margin-bottom:16px!important}.mb-sm-5{margin-bottom:20px!important}.mb-sm-6{margin-bottom:24px!important}.mb-sm-7{margin-bottom:28px!important}.mb-sm-8{margin-bottom:32px!important}.mb-sm-9{margin-bottom:36px!important}.mb-sm-10{margin-bottom:40px!important}.mb-sm-11{margin-bottom:44px!important}.mb-sm-12{margin-bottom:48px!important}.mb-sm-13{margin-bottom:52px!important}.mb-sm-14{margin-bottom:56px!important}.mb-sm-15{margin-bottom:60px!important}.mb-sm-16{margin-bottom:64px!important}.mb-sm-auto{margin-bottom:auto!important}.ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:4px!important}.ml-sm-2{margin-left:8px!important}.ml-sm-3{margin-left:12px!important}.ml-sm-4{margin-left:16px!important}.ml-sm-5{margin-left:20px!important}.ml-sm-6{margin-left:24px!important}.ml-sm-7{margin-left:28px!important}.ml-sm-8{margin-left:32px!important}.ml-sm-9{margin-left:36px!important}.ml-sm-10{margin-left:40px!important}.ml-sm-11{margin-left:44px!important}.ml-sm-12{margin-left:48px!important}.ml-sm-13{margin-left:52px!important}.ml-sm-14{margin-left:56px!important}.ml-sm-15{margin-left:60px!important}.ml-sm-16{margin-left:64px!important}.ml-sm-auto{margin-left:auto!important}.ms-sm-0{margin-inline-start:0px!important}.ms-sm-1{margin-inline-start:4px!important}.ms-sm-2{margin-inline-start:8px!important}.ms-sm-3{margin-inline-start:12px!important}.ms-sm-4{margin-inline-start:16px!important}.ms-sm-5{margin-inline-start:20px!important}.ms-sm-6{margin-inline-start:24px!important}.ms-sm-7{margin-inline-start:28px!important}.ms-sm-8{margin-inline-start:32px!important}.ms-sm-9{margin-inline-start:36px!important}.ms-sm-10{margin-inline-start:40px!important}.ms-sm-11{margin-inline-start:44px!important}.ms-sm-12{margin-inline-start:48px!important}.ms-sm-13{margin-inline-start:52px!important}.ms-sm-14{margin-inline-start:56px!important}.ms-sm-15{margin-inline-start:60px!important}.ms-sm-16{margin-inline-start:64px!important}.ms-sm-auto{margin-inline-start:auto!important}.me-sm-0{margin-inline-end:0px!important}.me-sm-1{margin-inline-end:4px!important}.me-sm-2{margin-inline-end:8px!important}.me-sm-3{margin-inline-end:12px!important}.me-sm-4{margin-inline-end:16px!important}.me-sm-5{margin-inline-end:20px!important}.me-sm-6{margin-inline-end:24px!important}.me-sm-7{margin-inline-end:28px!important}.me-sm-8{margin-inline-end:32px!important}.me-sm-9{margin-inline-end:36px!important}.me-sm-10{margin-inline-end:40px!important}.me-sm-11{margin-inline-end:44px!important}.me-sm-12{margin-inline-end:48px!important}.me-sm-13{margin-inline-end:52px!important}.me-sm-14{margin-inline-end:56px!important}.me-sm-15{margin-inline-end:60px!important}.me-sm-16{margin-inline-end:64px!important}.me-sm-auto{margin-inline-end:auto!important}.ma-sm-n1{margin:-4px!important}.ma-sm-n2{margin:-8px!important}.ma-sm-n3{margin:-12px!important}.ma-sm-n4{margin:-16px!important}.ma-sm-n5{margin:-20px!important}.ma-sm-n6{margin:-24px!important}.ma-sm-n7{margin:-28px!important}.ma-sm-n8{margin:-32px!important}.ma-sm-n9{margin:-36px!important}.ma-sm-n10{margin:-40px!important}.ma-sm-n11{margin:-44px!important}.ma-sm-n12{margin:-48px!important}.ma-sm-n13{margin:-52px!important}.ma-sm-n14{margin:-56px!important}.ma-sm-n15{margin:-60px!important}.ma-sm-n16{margin:-64px!important}.mx-sm-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-sm-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-sm-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-sm-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-sm-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-sm-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-sm-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-sm-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-sm-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-sm-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-sm-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-sm-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-sm-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-sm-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-sm-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-sm-n16{margin-right:-64px!important;margin-left:-64px!important}.my-sm-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-sm-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-sm-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-sm-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-sm-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-sm-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-sm-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-sm-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-sm-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-sm-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-sm-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-sm-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-sm-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-sm-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-sm-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-sm-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-sm-n1{margin-top:-4px!important}.mt-sm-n2{margin-top:-8px!important}.mt-sm-n3{margin-top:-12px!important}.mt-sm-n4{margin-top:-16px!important}.mt-sm-n5{margin-top:-20px!important}.mt-sm-n6{margin-top:-24px!important}.mt-sm-n7{margin-top:-28px!important}.mt-sm-n8{margin-top:-32px!important}.mt-sm-n9{margin-top:-36px!important}.mt-sm-n10{margin-top:-40px!important}.mt-sm-n11{margin-top:-44px!important}.mt-sm-n12{margin-top:-48px!important}.mt-sm-n13{margin-top:-52px!important}.mt-sm-n14{margin-top:-56px!important}.mt-sm-n15{margin-top:-60px!important}.mt-sm-n16{margin-top:-64px!important}.mr-sm-n1{margin-right:-4px!important}.mr-sm-n2{margin-right:-8px!important}.mr-sm-n3{margin-right:-12px!important}.mr-sm-n4{margin-right:-16px!important}.mr-sm-n5{margin-right:-20px!important}.mr-sm-n6{margin-right:-24px!important}.mr-sm-n7{margin-right:-28px!important}.mr-sm-n8{margin-right:-32px!important}.mr-sm-n9{margin-right:-36px!important}.mr-sm-n10{margin-right:-40px!important}.mr-sm-n11{margin-right:-44px!important}.mr-sm-n12{margin-right:-48px!important}.mr-sm-n13{margin-right:-52px!important}.mr-sm-n14{margin-right:-56px!important}.mr-sm-n15{margin-right:-60px!important}.mr-sm-n16{margin-right:-64px!important}.mb-sm-n1{margin-bottom:-4px!important}.mb-sm-n2{margin-bottom:-8px!important}.mb-sm-n3{margin-bottom:-12px!important}.mb-sm-n4{margin-bottom:-16px!important}.mb-sm-n5{margin-bottom:-20px!important}.mb-sm-n6{margin-bottom:-24px!important}.mb-sm-n7{margin-bottom:-28px!important}.mb-sm-n8{margin-bottom:-32px!important}.mb-sm-n9{margin-bottom:-36px!important}.mb-sm-n10{margin-bottom:-40px!important}.mb-sm-n11{margin-bottom:-44px!important}.mb-sm-n12{margin-bottom:-48px!important}.mb-sm-n13{margin-bottom:-52px!important}.mb-sm-n14{margin-bottom:-56px!important}.mb-sm-n15{margin-bottom:-60px!important}.mb-sm-n16{margin-bottom:-64px!important}.ml-sm-n1{margin-left:-4px!important}.ml-sm-n2{margin-left:-8px!important}.ml-sm-n3{margin-left:-12px!important}.ml-sm-n4{margin-left:-16px!important}.ml-sm-n5{margin-left:-20px!important}.ml-sm-n6{margin-left:-24px!important}.ml-sm-n7{margin-left:-28px!important}.ml-sm-n8{margin-left:-32px!important}.ml-sm-n9{margin-left:-36px!important}.ml-sm-n10{margin-left:-40px!important}.ml-sm-n11{margin-left:-44px!important}.ml-sm-n12{margin-left:-48px!important}.ml-sm-n13{margin-left:-52px!important}.ml-sm-n14{margin-left:-56px!important}.ml-sm-n15{margin-left:-60px!important}.ml-sm-n16{margin-left:-64px!important}.ms-sm-n1{margin-inline-start:-4px!important}.ms-sm-n2{margin-inline-start:-8px!important}.ms-sm-n3{margin-inline-start:-12px!important}.ms-sm-n4{margin-inline-start:-16px!important}.ms-sm-n5{margin-inline-start:-20px!important}.ms-sm-n6{margin-inline-start:-24px!important}.ms-sm-n7{margin-inline-start:-28px!important}.ms-sm-n8{margin-inline-start:-32px!important}.ms-sm-n9{margin-inline-start:-36px!important}.ms-sm-n10{margin-inline-start:-40px!important}.ms-sm-n11{margin-inline-start:-44px!important}.ms-sm-n12{margin-inline-start:-48px!important}.ms-sm-n13{margin-inline-start:-52px!important}.ms-sm-n14{margin-inline-start:-56px!important}.ms-sm-n15{margin-inline-start:-60px!important}.ms-sm-n16{margin-inline-start:-64px!important}.me-sm-n1{margin-inline-end:-4px!important}.me-sm-n2{margin-inline-end:-8px!important}.me-sm-n3{margin-inline-end:-12px!important}.me-sm-n4{margin-inline-end:-16px!important}.me-sm-n5{margin-inline-end:-20px!important}.me-sm-n6{margin-inline-end:-24px!important}.me-sm-n7{margin-inline-end:-28px!important}.me-sm-n8{margin-inline-end:-32px!important}.me-sm-n9{margin-inline-end:-36px!important}.me-sm-n10{margin-inline-end:-40px!important}.me-sm-n11{margin-inline-end:-44px!important}.me-sm-n12{margin-inline-end:-48px!important}.me-sm-n13{margin-inline-end:-52px!important}.me-sm-n14{margin-inline-end:-56px!important}.me-sm-n15{margin-inline-end:-60px!important}.me-sm-n16{margin-inline-end:-64px!important}.pa-sm-0{padding:0!important}.pa-sm-1{padding:4px!important}.pa-sm-2{padding:8px!important}.pa-sm-3{padding:12px!important}.pa-sm-4{padding:16px!important}.pa-sm-5{padding:20px!important}.pa-sm-6{padding:24px!important}.pa-sm-7{padding:28px!important}.pa-sm-8{padding:32px!important}.pa-sm-9{padding:36px!important}.pa-sm-10{padding:40px!important}.pa-sm-11{padding:44px!important}.pa-sm-12{padding:48px!important}.pa-sm-13{padding:52px!important}.pa-sm-14{padding:56px!important}.pa-sm-15{padding:60px!important}.pa-sm-16{padding:64px!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:4px!important;padding-left:4px!important}.px-sm-2{padding-right:8px!important;padding-left:8px!important}.px-sm-3{padding-right:12px!important;padding-left:12px!important}.px-sm-4{padding-right:16px!important;padding-left:16px!important}.px-sm-5{padding-right:20px!important;padding-left:20px!important}.px-sm-6{padding-right:24px!important;padding-left:24px!important}.px-sm-7{padding-right:28px!important;padding-left:28px!important}.px-sm-8{padding-right:32px!important;padding-left:32px!important}.px-sm-9{padding-right:36px!important;padding-left:36px!important}.px-sm-10{padding-right:40px!important;padding-left:40px!important}.px-sm-11{padding-right:44px!important;padding-left:44px!important}.px-sm-12{padding-right:48px!important;padding-left:48px!important}.px-sm-13{padding-right:52px!important;padding-left:52px!important}.px-sm-14{padding-right:56px!important;padding-left:56px!important}.px-sm-15{padding-right:60px!important;padding-left:60px!important}.px-sm-16{padding-right:64px!important;padding-left:64px!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:4px!important;padding-bottom:4px!important}.py-sm-2{padding-top:8px!important;padding-bottom:8px!important}.py-sm-3{padding-top:12px!important;padding-bottom:12px!important}.py-sm-4{padding-top:16px!important;padding-bottom:16px!important}.py-sm-5{padding-top:20px!important;padding-bottom:20px!important}.py-sm-6{padding-top:24px!important;padding-bottom:24px!important}.py-sm-7{padding-top:28px!important;padding-bottom:28px!important}.py-sm-8{padding-top:32px!important;padding-bottom:32px!important}.py-sm-9{padding-top:36px!important;padding-bottom:36px!important}.py-sm-10{padding-top:40px!important;padding-bottom:40px!important}.py-sm-11{padding-top:44px!important;padding-bottom:44px!important}.py-sm-12{padding-top:48px!important;padding-bottom:48px!important}.py-sm-13{padding-top:52px!important;padding-bottom:52px!important}.py-sm-14{padding-top:56px!important;padding-bottom:56px!important}.py-sm-15{padding-top:60px!important;padding-bottom:60px!important}.py-sm-16{padding-top:64px!important;padding-bottom:64px!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:4px!important}.pt-sm-2{padding-top:8px!important}.pt-sm-3{padding-top:12px!important}.pt-sm-4{padding-top:16px!important}.pt-sm-5{padding-top:20px!important}.pt-sm-6{padding-top:24px!important}.pt-sm-7{padding-top:28px!important}.pt-sm-8{padding-top:32px!important}.pt-sm-9{padding-top:36px!important}.pt-sm-10{padding-top:40px!important}.pt-sm-11{padding-top:44px!important}.pt-sm-12{padding-top:48px!important}.pt-sm-13{padding-top:52px!important}.pt-sm-14{padding-top:56px!important}.pt-sm-15{padding-top:60px!important}.pt-sm-16{padding-top:64px!important}.pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:4px!important}.pr-sm-2{padding-right:8px!important}.pr-sm-3{padding-right:12px!important}.pr-sm-4{padding-right:16px!important}.pr-sm-5{padding-right:20px!important}.pr-sm-6{padding-right:24px!important}.pr-sm-7{padding-right:28px!important}.pr-sm-8{padding-right:32px!important}.pr-sm-9{padding-right:36px!important}.pr-sm-10{padding-right:40px!important}.pr-sm-11{padding-right:44px!important}.pr-sm-12{padding-right:48px!important}.pr-sm-13{padding-right:52px!important}.pr-sm-14{padding-right:56px!important}.pr-sm-15{padding-right:60px!important}.pr-sm-16{padding-right:64px!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:4px!important}.pb-sm-2{padding-bottom:8px!important}.pb-sm-3{padding-bottom:12px!important}.pb-sm-4{padding-bottom:16px!important}.pb-sm-5{padding-bottom:20px!important}.pb-sm-6{padding-bottom:24px!important}.pb-sm-7{padding-bottom:28px!important}.pb-sm-8{padding-bottom:32px!important}.pb-sm-9{padding-bottom:36px!important}.pb-sm-10{padding-bottom:40px!important}.pb-sm-11{padding-bottom:44px!important}.pb-sm-12{padding-bottom:48px!important}.pb-sm-13{padding-bottom:52px!important}.pb-sm-14{padding-bottom:56px!important}.pb-sm-15{padding-bottom:60px!important}.pb-sm-16{padding-bottom:64px!important}.pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:4px!important}.pl-sm-2{padding-left:8px!important}.pl-sm-3{padding-left:12px!important}.pl-sm-4{padding-left:16px!important}.pl-sm-5{padding-left:20px!important}.pl-sm-6{padding-left:24px!important}.pl-sm-7{padding-left:28px!important}.pl-sm-8{padding-left:32px!important}.pl-sm-9{padding-left:36px!important}.pl-sm-10{padding-left:40px!important}.pl-sm-11{padding-left:44px!important}.pl-sm-12{padding-left:48px!important}.pl-sm-13{padding-left:52px!important}.pl-sm-14{padding-left:56px!important}.pl-sm-15{padding-left:60px!important}.pl-sm-16{padding-left:64px!important}.ps-sm-0{padding-inline-start:0px!important}.ps-sm-1{padding-inline-start:4px!important}.ps-sm-2{padding-inline-start:8px!important}.ps-sm-3{padding-inline-start:12px!important}.ps-sm-4{padding-inline-start:16px!important}.ps-sm-5{padding-inline-start:20px!important}.ps-sm-6{padding-inline-start:24px!important}.ps-sm-7{padding-inline-start:28px!important}.ps-sm-8{padding-inline-start:32px!important}.ps-sm-9{padding-inline-start:36px!important}.ps-sm-10{padding-inline-start:40px!important}.ps-sm-11{padding-inline-start:44px!important}.ps-sm-12{padding-inline-start:48px!important}.ps-sm-13{padding-inline-start:52px!important}.ps-sm-14{padding-inline-start:56px!important}.ps-sm-15{padding-inline-start:60px!important}.ps-sm-16{padding-inline-start:64px!important}.pe-sm-0{padding-inline-end:0px!important}.pe-sm-1{padding-inline-end:4px!important}.pe-sm-2{padding-inline-end:8px!important}.pe-sm-3{padding-inline-end:12px!important}.pe-sm-4{padding-inline-end:16px!important}.pe-sm-5{padding-inline-end:20px!important}.pe-sm-6{padding-inline-end:24px!important}.pe-sm-7{padding-inline-end:28px!important}.pe-sm-8{padding-inline-end:32px!important}.pe-sm-9{padding-inline-end:36px!important}.pe-sm-10{padding-inline-end:40px!important}.pe-sm-11{padding-inline-end:44px!important}.pe-sm-12{padding-inline-end:48px!important}.pe-sm-13{padding-inline-end:52px!important}.pe-sm-14{padding-inline-end:56px!important}.pe-sm-15{padding-inline-end:60px!important}.pe-sm-16{padding-inline-end:64px!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}.text-sm-justify{text-align:justify!important}.text-sm-start{text-align:start!important}.text-sm-end{text-align:end!important}.text-sm-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-sm-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-sm-auto{height:auto!important}.h-sm-screen{height:100vh!important}.h-sm-0{height:0!important}.h-sm-25{height:25%!important}.h-sm-50{height:50%!important}.h-sm-75{height:75%!important}.h-sm-100{height:100%!important}.w-sm-auto{width:auto!important}.w-sm-0{width:0!important}.w-sm-25{width:25%!important}.w-sm-33{width:33%!important}.w-sm-50{width:50%!important}.w-sm-66{width:66%!important}.w-sm-75{width:75%!important}.w-sm-100{width:100%!important}}@media (min-width: 960px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.float-md-none{float:none!important}.float-md-left{float:left!important}.float-md-right{float:right!important}.v-locale--is-rtl .float-md-end{float:left!important}.v-locale--is-rtl .float-md-start,.v-locale--is-ltr .float-md-end{float:right!important}.v-locale--is-ltr .float-md-start{float:left!important}.flex-md-fill,.flex-md-1-1{flex:1 1 auto!important}.flex-md-1-0{flex:1 0 auto!important}.flex-md-0-1{flex:0 1 auto!important}.flex-md-0-0{flex:0 0 auto!important}.flex-md-1-1-100{flex:1 1 100%!important}.flex-md-1-0-100{flex:1 0 100%!important}.flex-md-0-1-100{flex:0 1 100%!important}.flex-md-0-0-100{flex:0 0 100%!important}.flex-md-1-1-0{flex:1 1 0!important}.flex-md-1-0-0{flex:1 0 0!important}.flex-md-0-1-0{flex:0 1 0!important}.flex-md-0-0-0{flex:0 0 0!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-md-start{justify-content:flex-start!important}.justify-md-end{justify-content:flex-end!important}.justify-md-center{justify-content:center!important}.justify-md-space-between{justify-content:space-between!important}.justify-md-space-around{justify-content:space-around!important}.justify-md-space-evenly{justify-content:space-evenly!important}.align-md-start{align-items:flex-start!important}.align-md-end{align-items:flex-end!important}.align-md-center{align-items:center!important}.align-md-baseline{align-items:baseline!important}.align-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-space-between{align-content:space-between!important}.align-content-md-space-around{align-content:space-around!important}.align-content-md-space-evenly{align-content:space-evenly!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-6{order:6!important}.order-md-7{order:7!important}.order-md-8{order:8!important}.order-md-9{order:9!important}.order-md-10{order:10!important}.order-md-11{order:11!important}.order-md-12{order:12!important}.order-md-last{order:13!important}.ga-md-0{gap:0px!important}.ga-md-1{gap:4px!important}.ga-md-2{gap:8px!important}.ga-md-3{gap:12px!important}.ga-md-4{gap:16px!important}.ga-md-5{gap:20px!important}.ga-md-6{gap:24px!important}.ga-md-7{gap:28px!important}.ga-md-8{gap:32px!important}.ga-md-9{gap:36px!important}.ga-md-10{gap:40px!important}.ga-md-11{gap:44px!important}.ga-md-12{gap:48px!important}.ga-md-13{gap:52px!important}.ga-md-14{gap:56px!important}.ga-md-15{gap:60px!important}.ga-md-16{gap:64px!important}.ga-md-auto{gap:auto!important}.gr-md-0{row-gap:0px!important}.gr-md-1{row-gap:4px!important}.gr-md-2{row-gap:8px!important}.gr-md-3{row-gap:12px!important}.gr-md-4{row-gap:16px!important}.gr-md-5{row-gap:20px!important}.gr-md-6{row-gap:24px!important}.gr-md-7{row-gap:28px!important}.gr-md-8{row-gap:32px!important}.gr-md-9{row-gap:36px!important}.gr-md-10{row-gap:40px!important}.gr-md-11{row-gap:44px!important}.gr-md-12{row-gap:48px!important}.gr-md-13{row-gap:52px!important}.gr-md-14{row-gap:56px!important}.gr-md-15{row-gap:60px!important}.gr-md-16{row-gap:64px!important}.gr-md-auto{row-gap:auto!important}.gc-md-0{column-gap:0px!important}.gc-md-1{column-gap:4px!important}.gc-md-2{column-gap:8px!important}.gc-md-3{column-gap:12px!important}.gc-md-4{column-gap:16px!important}.gc-md-5{column-gap:20px!important}.gc-md-6{column-gap:24px!important}.gc-md-7{column-gap:28px!important}.gc-md-8{column-gap:32px!important}.gc-md-9{column-gap:36px!important}.gc-md-10{column-gap:40px!important}.gc-md-11{column-gap:44px!important}.gc-md-12{column-gap:48px!important}.gc-md-13{column-gap:52px!important}.gc-md-14{column-gap:56px!important}.gc-md-15{column-gap:60px!important}.gc-md-16{column-gap:64px!important}.gc-md-auto{column-gap:auto!important}.ma-md-0{margin:0!important}.ma-md-1{margin:4px!important}.ma-md-2{margin:8px!important}.ma-md-3{margin:12px!important}.ma-md-4{margin:16px!important}.ma-md-5{margin:20px!important}.ma-md-6{margin:24px!important}.ma-md-7{margin:28px!important}.ma-md-8{margin:32px!important}.ma-md-9{margin:36px!important}.ma-md-10{margin:40px!important}.ma-md-11{margin:44px!important}.ma-md-12{margin:48px!important}.ma-md-13{margin:52px!important}.ma-md-14{margin:56px!important}.ma-md-15{margin:60px!important}.ma-md-16{margin:64px!important}.ma-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:4px!important;margin-left:4px!important}.mx-md-2{margin-right:8px!important;margin-left:8px!important}.mx-md-3{margin-right:12px!important;margin-left:12px!important}.mx-md-4{margin-right:16px!important;margin-left:16px!important}.mx-md-5{margin-right:20px!important;margin-left:20px!important}.mx-md-6{margin-right:24px!important;margin-left:24px!important}.mx-md-7{margin-right:28px!important;margin-left:28px!important}.mx-md-8{margin-right:32px!important;margin-left:32px!important}.mx-md-9{margin-right:36px!important;margin-left:36px!important}.mx-md-10{margin-right:40px!important;margin-left:40px!important}.mx-md-11{margin-right:44px!important;margin-left:44px!important}.mx-md-12{margin-right:48px!important;margin-left:48px!important}.mx-md-13{margin-right:52px!important;margin-left:52px!important}.mx-md-14{margin-right:56px!important;margin-left:56px!important}.mx-md-15{margin-right:60px!important;margin-left:60px!important}.mx-md-16{margin-right:64px!important;margin-left:64px!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:4px!important;margin-bottom:4px!important}.my-md-2{margin-top:8px!important;margin-bottom:8px!important}.my-md-3{margin-top:12px!important;margin-bottom:12px!important}.my-md-4{margin-top:16px!important;margin-bottom:16px!important}.my-md-5{margin-top:20px!important;margin-bottom:20px!important}.my-md-6{margin-top:24px!important;margin-bottom:24px!important}.my-md-7{margin-top:28px!important;margin-bottom:28px!important}.my-md-8{margin-top:32px!important;margin-bottom:32px!important}.my-md-9{margin-top:36px!important;margin-bottom:36px!important}.my-md-10{margin-top:40px!important;margin-bottom:40px!important}.my-md-11{margin-top:44px!important;margin-bottom:44px!important}.my-md-12{margin-top:48px!important;margin-bottom:48px!important}.my-md-13{margin-top:52px!important;margin-bottom:52px!important}.my-md-14{margin-top:56px!important;margin-bottom:56px!important}.my-md-15{margin-top:60px!important;margin-bottom:60px!important}.my-md-16{margin-top:64px!important;margin-bottom:64px!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:4px!important}.mt-md-2{margin-top:8px!important}.mt-md-3{margin-top:12px!important}.mt-md-4{margin-top:16px!important}.mt-md-5{margin-top:20px!important}.mt-md-6{margin-top:24px!important}.mt-md-7{margin-top:28px!important}.mt-md-8{margin-top:32px!important}.mt-md-9{margin-top:36px!important}.mt-md-10{margin-top:40px!important}.mt-md-11{margin-top:44px!important}.mt-md-12{margin-top:48px!important}.mt-md-13{margin-top:52px!important}.mt-md-14{margin-top:56px!important}.mt-md-15{margin-top:60px!important}.mt-md-16{margin-top:64px!important}.mt-md-auto{margin-top:auto!important}.mr-md-0{margin-right:0!important}.mr-md-1{margin-right:4px!important}.mr-md-2{margin-right:8px!important}.mr-md-3{margin-right:12px!important}.mr-md-4{margin-right:16px!important}.mr-md-5{margin-right:20px!important}.mr-md-6{margin-right:24px!important}.mr-md-7{margin-right:28px!important}.mr-md-8{margin-right:32px!important}.mr-md-9{margin-right:36px!important}.mr-md-10{margin-right:40px!important}.mr-md-11{margin-right:44px!important}.mr-md-12{margin-right:48px!important}.mr-md-13{margin-right:52px!important}.mr-md-14{margin-right:56px!important}.mr-md-15{margin-right:60px!important}.mr-md-16{margin-right:64px!important}.mr-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:4px!important}.mb-md-2{margin-bottom:8px!important}.mb-md-3{margin-bottom:12px!important}.mb-md-4{margin-bottom:16px!important}.mb-md-5{margin-bottom:20px!important}.mb-md-6{margin-bottom:24px!important}.mb-md-7{margin-bottom:28px!important}.mb-md-8{margin-bottom:32px!important}.mb-md-9{margin-bottom:36px!important}.mb-md-10{margin-bottom:40px!important}.mb-md-11{margin-bottom:44px!important}.mb-md-12{margin-bottom:48px!important}.mb-md-13{margin-bottom:52px!important}.mb-md-14{margin-bottom:56px!important}.mb-md-15{margin-bottom:60px!important}.mb-md-16{margin-bottom:64px!important}.mb-md-auto{margin-bottom:auto!important}.ml-md-0{margin-left:0!important}.ml-md-1{margin-left:4px!important}.ml-md-2{margin-left:8px!important}.ml-md-3{margin-left:12px!important}.ml-md-4{margin-left:16px!important}.ml-md-5{margin-left:20px!important}.ml-md-6{margin-left:24px!important}.ml-md-7{margin-left:28px!important}.ml-md-8{margin-left:32px!important}.ml-md-9{margin-left:36px!important}.ml-md-10{margin-left:40px!important}.ml-md-11{margin-left:44px!important}.ml-md-12{margin-left:48px!important}.ml-md-13{margin-left:52px!important}.ml-md-14{margin-left:56px!important}.ml-md-15{margin-left:60px!important}.ml-md-16{margin-left:64px!important}.ml-md-auto{margin-left:auto!important}.ms-md-0{margin-inline-start:0px!important}.ms-md-1{margin-inline-start:4px!important}.ms-md-2{margin-inline-start:8px!important}.ms-md-3{margin-inline-start:12px!important}.ms-md-4{margin-inline-start:16px!important}.ms-md-5{margin-inline-start:20px!important}.ms-md-6{margin-inline-start:24px!important}.ms-md-7{margin-inline-start:28px!important}.ms-md-8{margin-inline-start:32px!important}.ms-md-9{margin-inline-start:36px!important}.ms-md-10{margin-inline-start:40px!important}.ms-md-11{margin-inline-start:44px!important}.ms-md-12{margin-inline-start:48px!important}.ms-md-13{margin-inline-start:52px!important}.ms-md-14{margin-inline-start:56px!important}.ms-md-15{margin-inline-start:60px!important}.ms-md-16{margin-inline-start:64px!important}.ms-md-auto{margin-inline-start:auto!important}.me-md-0{margin-inline-end:0px!important}.me-md-1{margin-inline-end:4px!important}.me-md-2{margin-inline-end:8px!important}.me-md-3{margin-inline-end:12px!important}.me-md-4{margin-inline-end:16px!important}.me-md-5{margin-inline-end:20px!important}.me-md-6{margin-inline-end:24px!important}.me-md-7{margin-inline-end:28px!important}.me-md-8{margin-inline-end:32px!important}.me-md-9{margin-inline-end:36px!important}.me-md-10{margin-inline-end:40px!important}.me-md-11{margin-inline-end:44px!important}.me-md-12{margin-inline-end:48px!important}.me-md-13{margin-inline-end:52px!important}.me-md-14{margin-inline-end:56px!important}.me-md-15{margin-inline-end:60px!important}.me-md-16{margin-inline-end:64px!important}.me-md-auto{margin-inline-end:auto!important}.ma-md-n1{margin:-4px!important}.ma-md-n2{margin:-8px!important}.ma-md-n3{margin:-12px!important}.ma-md-n4{margin:-16px!important}.ma-md-n5{margin:-20px!important}.ma-md-n6{margin:-24px!important}.ma-md-n7{margin:-28px!important}.ma-md-n8{margin:-32px!important}.ma-md-n9{margin:-36px!important}.ma-md-n10{margin:-40px!important}.ma-md-n11{margin:-44px!important}.ma-md-n12{margin:-48px!important}.ma-md-n13{margin:-52px!important}.ma-md-n14{margin:-56px!important}.ma-md-n15{margin:-60px!important}.ma-md-n16{margin:-64px!important}.mx-md-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-md-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-md-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-md-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-md-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-md-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-md-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-md-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-md-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-md-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-md-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-md-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-md-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-md-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-md-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-md-n16{margin-right:-64px!important;margin-left:-64px!important}.my-md-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-md-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-md-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-md-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-md-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-md-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-md-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-md-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-md-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-md-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-md-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-md-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-md-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-md-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-md-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-md-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-md-n1{margin-top:-4px!important}.mt-md-n2{margin-top:-8px!important}.mt-md-n3{margin-top:-12px!important}.mt-md-n4{margin-top:-16px!important}.mt-md-n5{margin-top:-20px!important}.mt-md-n6{margin-top:-24px!important}.mt-md-n7{margin-top:-28px!important}.mt-md-n8{margin-top:-32px!important}.mt-md-n9{margin-top:-36px!important}.mt-md-n10{margin-top:-40px!important}.mt-md-n11{margin-top:-44px!important}.mt-md-n12{margin-top:-48px!important}.mt-md-n13{margin-top:-52px!important}.mt-md-n14{margin-top:-56px!important}.mt-md-n15{margin-top:-60px!important}.mt-md-n16{margin-top:-64px!important}.mr-md-n1{margin-right:-4px!important}.mr-md-n2{margin-right:-8px!important}.mr-md-n3{margin-right:-12px!important}.mr-md-n4{margin-right:-16px!important}.mr-md-n5{margin-right:-20px!important}.mr-md-n6{margin-right:-24px!important}.mr-md-n7{margin-right:-28px!important}.mr-md-n8{margin-right:-32px!important}.mr-md-n9{margin-right:-36px!important}.mr-md-n10{margin-right:-40px!important}.mr-md-n11{margin-right:-44px!important}.mr-md-n12{margin-right:-48px!important}.mr-md-n13{margin-right:-52px!important}.mr-md-n14{margin-right:-56px!important}.mr-md-n15{margin-right:-60px!important}.mr-md-n16{margin-right:-64px!important}.mb-md-n1{margin-bottom:-4px!important}.mb-md-n2{margin-bottom:-8px!important}.mb-md-n3{margin-bottom:-12px!important}.mb-md-n4{margin-bottom:-16px!important}.mb-md-n5{margin-bottom:-20px!important}.mb-md-n6{margin-bottom:-24px!important}.mb-md-n7{margin-bottom:-28px!important}.mb-md-n8{margin-bottom:-32px!important}.mb-md-n9{margin-bottom:-36px!important}.mb-md-n10{margin-bottom:-40px!important}.mb-md-n11{margin-bottom:-44px!important}.mb-md-n12{margin-bottom:-48px!important}.mb-md-n13{margin-bottom:-52px!important}.mb-md-n14{margin-bottom:-56px!important}.mb-md-n15{margin-bottom:-60px!important}.mb-md-n16{margin-bottom:-64px!important}.ml-md-n1{margin-left:-4px!important}.ml-md-n2{margin-left:-8px!important}.ml-md-n3{margin-left:-12px!important}.ml-md-n4{margin-left:-16px!important}.ml-md-n5{margin-left:-20px!important}.ml-md-n6{margin-left:-24px!important}.ml-md-n7{margin-left:-28px!important}.ml-md-n8{margin-left:-32px!important}.ml-md-n9{margin-left:-36px!important}.ml-md-n10{margin-left:-40px!important}.ml-md-n11{margin-left:-44px!important}.ml-md-n12{margin-left:-48px!important}.ml-md-n13{margin-left:-52px!important}.ml-md-n14{margin-left:-56px!important}.ml-md-n15{margin-left:-60px!important}.ml-md-n16{margin-left:-64px!important}.ms-md-n1{margin-inline-start:-4px!important}.ms-md-n2{margin-inline-start:-8px!important}.ms-md-n3{margin-inline-start:-12px!important}.ms-md-n4{margin-inline-start:-16px!important}.ms-md-n5{margin-inline-start:-20px!important}.ms-md-n6{margin-inline-start:-24px!important}.ms-md-n7{margin-inline-start:-28px!important}.ms-md-n8{margin-inline-start:-32px!important}.ms-md-n9{margin-inline-start:-36px!important}.ms-md-n10{margin-inline-start:-40px!important}.ms-md-n11{margin-inline-start:-44px!important}.ms-md-n12{margin-inline-start:-48px!important}.ms-md-n13{margin-inline-start:-52px!important}.ms-md-n14{margin-inline-start:-56px!important}.ms-md-n15{margin-inline-start:-60px!important}.ms-md-n16{margin-inline-start:-64px!important}.me-md-n1{margin-inline-end:-4px!important}.me-md-n2{margin-inline-end:-8px!important}.me-md-n3{margin-inline-end:-12px!important}.me-md-n4{margin-inline-end:-16px!important}.me-md-n5{margin-inline-end:-20px!important}.me-md-n6{margin-inline-end:-24px!important}.me-md-n7{margin-inline-end:-28px!important}.me-md-n8{margin-inline-end:-32px!important}.me-md-n9{margin-inline-end:-36px!important}.me-md-n10{margin-inline-end:-40px!important}.me-md-n11{margin-inline-end:-44px!important}.me-md-n12{margin-inline-end:-48px!important}.me-md-n13{margin-inline-end:-52px!important}.me-md-n14{margin-inline-end:-56px!important}.me-md-n15{margin-inline-end:-60px!important}.me-md-n16{margin-inline-end:-64px!important}.pa-md-0{padding:0!important}.pa-md-1{padding:4px!important}.pa-md-2{padding:8px!important}.pa-md-3{padding:12px!important}.pa-md-4{padding:16px!important}.pa-md-5{padding:20px!important}.pa-md-6{padding:24px!important}.pa-md-7{padding:28px!important}.pa-md-8{padding:32px!important}.pa-md-9{padding:36px!important}.pa-md-10{padding:40px!important}.pa-md-11{padding:44px!important}.pa-md-12{padding:48px!important}.pa-md-13{padding:52px!important}.pa-md-14{padding:56px!important}.pa-md-15{padding:60px!important}.pa-md-16{padding:64px!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:4px!important;padding-left:4px!important}.px-md-2{padding-right:8px!important;padding-left:8px!important}.px-md-3{padding-right:12px!important;padding-left:12px!important}.px-md-4{padding-right:16px!important;padding-left:16px!important}.px-md-5{padding-right:20px!important;padding-left:20px!important}.px-md-6{padding-right:24px!important;padding-left:24px!important}.px-md-7{padding-right:28px!important;padding-left:28px!important}.px-md-8{padding-right:32px!important;padding-left:32px!important}.px-md-9{padding-right:36px!important;padding-left:36px!important}.px-md-10{padding-right:40px!important;padding-left:40px!important}.px-md-11{padding-right:44px!important;padding-left:44px!important}.px-md-12{padding-right:48px!important;padding-left:48px!important}.px-md-13{padding-right:52px!important;padding-left:52px!important}.px-md-14{padding-right:56px!important;padding-left:56px!important}.px-md-15{padding-right:60px!important;padding-left:60px!important}.px-md-16{padding-right:64px!important;padding-left:64px!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:4px!important;padding-bottom:4px!important}.py-md-2{padding-top:8px!important;padding-bottom:8px!important}.py-md-3{padding-top:12px!important;padding-bottom:12px!important}.py-md-4{padding-top:16px!important;padding-bottom:16px!important}.py-md-5{padding-top:20px!important;padding-bottom:20px!important}.py-md-6{padding-top:24px!important;padding-bottom:24px!important}.py-md-7{padding-top:28px!important;padding-bottom:28px!important}.py-md-8{padding-top:32px!important;padding-bottom:32px!important}.py-md-9{padding-top:36px!important;padding-bottom:36px!important}.py-md-10{padding-top:40px!important;padding-bottom:40px!important}.py-md-11{padding-top:44px!important;padding-bottom:44px!important}.py-md-12{padding-top:48px!important;padding-bottom:48px!important}.py-md-13{padding-top:52px!important;padding-bottom:52px!important}.py-md-14{padding-top:56px!important;padding-bottom:56px!important}.py-md-15{padding-top:60px!important;padding-bottom:60px!important}.py-md-16{padding-top:64px!important;padding-bottom:64px!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:4px!important}.pt-md-2{padding-top:8px!important}.pt-md-3{padding-top:12px!important}.pt-md-4{padding-top:16px!important}.pt-md-5{padding-top:20px!important}.pt-md-6{padding-top:24px!important}.pt-md-7{padding-top:28px!important}.pt-md-8{padding-top:32px!important}.pt-md-9{padding-top:36px!important}.pt-md-10{padding-top:40px!important}.pt-md-11{padding-top:44px!important}.pt-md-12{padding-top:48px!important}.pt-md-13{padding-top:52px!important}.pt-md-14{padding-top:56px!important}.pt-md-15{padding-top:60px!important}.pt-md-16{padding-top:64px!important}.pr-md-0{padding-right:0!important}.pr-md-1{padding-right:4px!important}.pr-md-2{padding-right:8px!important}.pr-md-3{padding-right:12px!important}.pr-md-4{padding-right:16px!important}.pr-md-5{padding-right:20px!important}.pr-md-6{padding-right:24px!important}.pr-md-7{padding-right:28px!important}.pr-md-8{padding-right:32px!important}.pr-md-9{padding-right:36px!important}.pr-md-10{padding-right:40px!important}.pr-md-11{padding-right:44px!important}.pr-md-12{padding-right:48px!important}.pr-md-13{padding-right:52px!important}.pr-md-14{padding-right:56px!important}.pr-md-15{padding-right:60px!important}.pr-md-16{padding-right:64px!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:4px!important}.pb-md-2{padding-bottom:8px!important}.pb-md-3{padding-bottom:12px!important}.pb-md-4{padding-bottom:16px!important}.pb-md-5{padding-bottom:20px!important}.pb-md-6{padding-bottom:24px!important}.pb-md-7{padding-bottom:28px!important}.pb-md-8{padding-bottom:32px!important}.pb-md-9{padding-bottom:36px!important}.pb-md-10{padding-bottom:40px!important}.pb-md-11{padding-bottom:44px!important}.pb-md-12{padding-bottom:48px!important}.pb-md-13{padding-bottom:52px!important}.pb-md-14{padding-bottom:56px!important}.pb-md-15{padding-bottom:60px!important}.pb-md-16{padding-bottom:64px!important}.pl-md-0{padding-left:0!important}.pl-md-1{padding-left:4px!important}.pl-md-2{padding-left:8px!important}.pl-md-3{padding-left:12px!important}.pl-md-4{padding-left:16px!important}.pl-md-5{padding-left:20px!important}.pl-md-6{padding-left:24px!important}.pl-md-7{padding-left:28px!important}.pl-md-8{padding-left:32px!important}.pl-md-9{padding-left:36px!important}.pl-md-10{padding-left:40px!important}.pl-md-11{padding-left:44px!important}.pl-md-12{padding-left:48px!important}.pl-md-13{padding-left:52px!important}.pl-md-14{padding-left:56px!important}.pl-md-15{padding-left:60px!important}.pl-md-16{padding-left:64px!important}.ps-md-0{padding-inline-start:0px!important}.ps-md-1{padding-inline-start:4px!important}.ps-md-2{padding-inline-start:8px!important}.ps-md-3{padding-inline-start:12px!important}.ps-md-4{padding-inline-start:16px!important}.ps-md-5{padding-inline-start:20px!important}.ps-md-6{padding-inline-start:24px!important}.ps-md-7{padding-inline-start:28px!important}.ps-md-8{padding-inline-start:32px!important}.ps-md-9{padding-inline-start:36px!important}.ps-md-10{padding-inline-start:40px!important}.ps-md-11{padding-inline-start:44px!important}.ps-md-12{padding-inline-start:48px!important}.ps-md-13{padding-inline-start:52px!important}.ps-md-14{padding-inline-start:56px!important}.ps-md-15{padding-inline-start:60px!important}.ps-md-16{padding-inline-start:64px!important}.pe-md-0{padding-inline-end:0px!important}.pe-md-1{padding-inline-end:4px!important}.pe-md-2{padding-inline-end:8px!important}.pe-md-3{padding-inline-end:12px!important}.pe-md-4{padding-inline-end:16px!important}.pe-md-5{padding-inline-end:20px!important}.pe-md-6{padding-inline-end:24px!important}.pe-md-7{padding-inline-end:28px!important}.pe-md-8{padding-inline-end:32px!important}.pe-md-9{padding-inline-end:36px!important}.pe-md-10{padding-inline-end:40px!important}.pe-md-11{padding-inline-end:44px!important}.pe-md-12{padding-inline-end:48px!important}.pe-md-13{padding-inline-end:52px!important}.pe-md-14{padding-inline-end:56px!important}.pe-md-15{padding-inline-end:60px!important}.pe-md-16{padding-inline-end:64px!important}.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}.text-md-justify{text-align:justify!important}.text-md-start{text-align:start!important}.text-md-end{text-align:end!important}.text-md-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-md-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-md-auto{height:auto!important}.h-md-screen{height:100vh!important}.h-md-0{height:0!important}.h-md-25{height:25%!important}.h-md-50{height:50%!important}.h-md-75{height:75%!important}.h-md-100{height:100%!important}.w-md-auto{width:auto!important}.w-md-0{width:0!important}.w-md-25{width:25%!important}.w-md-33{width:33%!important}.w-md-50{width:50%!important}.w-md-66{width:66%!important}.w-md-75{width:75%!important}.w-md-100{width:100%!important}}@media (min-width: 1280px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.float-lg-none{float:none!important}.float-lg-left{float:left!important}.float-lg-right{float:right!important}.v-locale--is-rtl .float-lg-end{float:left!important}.v-locale--is-rtl .float-lg-start,.v-locale--is-ltr .float-lg-end{float:right!important}.v-locale--is-ltr .float-lg-start{float:left!important}.flex-lg-fill,.flex-lg-1-1{flex:1 1 auto!important}.flex-lg-1-0{flex:1 0 auto!important}.flex-lg-0-1{flex:0 1 auto!important}.flex-lg-0-0{flex:0 0 auto!important}.flex-lg-1-1-100{flex:1 1 100%!important}.flex-lg-1-0-100{flex:1 0 100%!important}.flex-lg-0-1-100{flex:0 1 100%!important}.flex-lg-0-0-100{flex:0 0 100%!important}.flex-lg-1-1-0{flex:1 1 0!important}.flex-lg-1-0-0{flex:1 0 0!important}.flex-lg-0-1-0{flex:0 1 0!important}.flex-lg-0-0-0{flex:0 0 0!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-lg-start{justify-content:flex-start!important}.justify-lg-end{justify-content:flex-end!important}.justify-lg-center{justify-content:center!important}.justify-lg-space-between{justify-content:space-between!important}.justify-lg-space-around{justify-content:space-around!important}.justify-lg-space-evenly{justify-content:space-evenly!important}.align-lg-start{align-items:flex-start!important}.align-lg-end{align-items:flex-end!important}.align-lg-center{align-items:center!important}.align-lg-baseline{align-items:baseline!important}.align-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-space-between{align-content:space-between!important}.align-content-lg-space-around{align-content:space-around!important}.align-content-lg-space-evenly{align-content:space-evenly!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-6{order:6!important}.order-lg-7{order:7!important}.order-lg-8{order:8!important}.order-lg-9{order:9!important}.order-lg-10{order:10!important}.order-lg-11{order:11!important}.order-lg-12{order:12!important}.order-lg-last{order:13!important}.ga-lg-0{gap:0px!important}.ga-lg-1{gap:4px!important}.ga-lg-2{gap:8px!important}.ga-lg-3{gap:12px!important}.ga-lg-4{gap:16px!important}.ga-lg-5{gap:20px!important}.ga-lg-6{gap:24px!important}.ga-lg-7{gap:28px!important}.ga-lg-8{gap:32px!important}.ga-lg-9{gap:36px!important}.ga-lg-10{gap:40px!important}.ga-lg-11{gap:44px!important}.ga-lg-12{gap:48px!important}.ga-lg-13{gap:52px!important}.ga-lg-14{gap:56px!important}.ga-lg-15{gap:60px!important}.ga-lg-16{gap:64px!important}.ga-lg-auto{gap:auto!important}.gr-lg-0{row-gap:0px!important}.gr-lg-1{row-gap:4px!important}.gr-lg-2{row-gap:8px!important}.gr-lg-3{row-gap:12px!important}.gr-lg-4{row-gap:16px!important}.gr-lg-5{row-gap:20px!important}.gr-lg-6{row-gap:24px!important}.gr-lg-7{row-gap:28px!important}.gr-lg-8{row-gap:32px!important}.gr-lg-9{row-gap:36px!important}.gr-lg-10{row-gap:40px!important}.gr-lg-11{row-gap:44px!important}.gr-lg-12{row-gap:48px!important}.gr-lg-13{row-gap:52px!important}.gr-lg-14{row-gap:56px!important}.gr-lg-15{row-gap:60px!important}.gr-lg-16{row-gap:64px!important}.gr-lg-auto{row-gap:auto!important}.gc-lg-0{column-gap:0px!important}.gc-lg-1{column-gap:4px!important}.gc-lg-2{column-gap:8px!important}.gc-lg-3{column-gap:12px!important}.gc-lg-4{column-gap:16px!important}.gc-lg-5{column-gap:20px!important}.gc-lg-6{column-gap:24px!important}.gc-lg-7{column-gap:28px!important}.gc-lg-8{column-gap:32px!important}.gc-lg-9{column-gap:36px!important}.gc-lg-10{column-gap:40px!important}.gc-lg-11{column-gap:44px!important}.gc-lg-12{column-gap:48px!important}.gc-lg-13{column-gap:52px!important}.gc-lg-14{column-gap:56px!important}.gc-lg-15{column-gap:60px!important}.gc-lg-16{column-gap:64px!important}.gc-lg-auto{column-gap:auto!important}.ma-lg-0{margin:0!important}.ma-lg-1{margin:4px!important}.ma-lg-2{margin:8px!important}.ma-lg-3{margin:12px!important}.ma-lg-4{margin:16px!important}.ma-lg-5{margin:20px!important}.ma-lg-6{margin:24px!important}.ma-lg-7{margin:28px!important}.ma-lg-8{margin:32px!important}.ma-lg-9{margin:36px!important}.ma-lg-10{margin:40px!important}.ma-lg-11{margin:44px!important}.ma-lg-12{margin:48px!important}.ma-lg-13{margin:52px!important}.ma-lg-14{margin:56px!important}.ma-lg-15{margin:60px!important}.ma-lg-16{margin:64px!important}.ma-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:4px!important;margin-left:4px!important}.mx-lg-2{margin-right:8px!important;margin-left:8px!important}.mx-lg-3{margin-right:12px!important;margin-left:12px!important}.mx-lg-4{margin-right:16px!important;margin-left:16px!important}.mx-lg-5{margin-right:20px!important;margin-left:20px!important}.mx-lg-6{margin-right:24px!important;margin-left:24px!important}.mx-lg-7{margin-right:28px!important;margin-left:28px!important}.mx-lg-8{margin-right:32px!important;margin-left:32px!important}.mx-lg-9{margin-right:36px!important;margin-left:36px!important}.mx-lg-10{margin-right:40px!important;margin-left:40px!important}.mx-lg-11{margin-right:44px!important;margin-left:44px!important}.mx-lg-12{margin-right:48px!important;margin-left:48px!important}.mx-lg-13{margin-right:52px!important;margin-left:52px!important}.mx-lg-14{margin-right:56px!important;margin-left:56px!important}.mx-lg-15{margin-right:60px!important;margin-left:60px!important}.mx-lg-16{margin-right:64px!important;margin-left:64px!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:4px!important;margin-bottom:4px!important}.my-lg-2{margin-top:8px!important;margin-bottom:8px!important}.my-lg-3{margin-top:12px!important;margin-bottom:12px!important}.my-lg-4{margin-top:16px!important;margin-bottom:16px!important}.my-lg-5{margin-top:20px!important;margin-bottom:20px!important}.my-lg-6{margin-top:24px!important;margin-bottom:24px!important}.my-lg-7{margin-top:28px!important;margin-bottom:28px!important}.my-lg-8{margin-top:32px!important;margin-bottom:32px!important}.my-lg-9{margin-top:36px!important;margin-bottom:36px!important}.my-lg-10{margin-top:40px!important;margin-bottom:40px!important}.my-lg-11{margin-top:44px!important;margin-bottom:44px!important}.my-lg-12{margin-top:48px!important;margin-bottom:48px!important}.my-lg-13{margin-top:52px!important;margin-bottom:52px!important}.my-lg-14{margin-top:56px!important;margin-bottom:56px!important}.my-lg-15{margin-top:60px!important;margin-bottom:60px!important}.my-lg-16{margin-top:64px!important;margin-bottom:64px!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:4px!important}.mt-lg-2{margin-top:8px!important}.mt-lg-3{margin-top:12px!important}.mt-lg-4{margin-top:16px!important}.mt-lg-5{margin-top:20px!important}.mt-lg-6{margin-top:24px!important}.mt-lg-7{margin-top:28px!important}.mt-lg-8{margin-top:32px!important}.mt-lg-9{margin-top:36px!important}.mt-lg-10{margin-top:40px!important}.mt-lg-11{margin-top:44px!important}.mt-lg-12{margin-top:48px!important}.mt-lg-13{margin-top:52px!important}.mt-lg-14{margin-top:56px!important}.mt-lg-15{margin-top:60px!important}.mt-lg-16{margin-top:64px!important}.mt-lg-auto{margin-top:auto!important}.mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:4px!important}.mr-lg-2{margin-right:8px!important}.mr-lg-3{margin-right:12px!important}.mr-lg-4{margin-right:16px!important}.mr-lg-5{margin-right:20px!important}.mr-lg-6{margin-right:24px!important}.mr-lg-7{margin-right:28px!important}.mr-lg-8{margin-right:32px!important}.mr-lg-9{margin-right:36px!important}.mr-lg-10{margin-right:40px!important}.mr-lg-11{margin-right:44px!important}.mr-lg-12{margin-right:48px!important}.mr-lg-13{margin-right:52px!important}.mr-lg-14{margin-right:56px!important}.mr-lg-15{margin-right:60px!important}.mr-lg-16{margin-right:64px!important}.mr-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:4px!important}.mb-lg-2{margin-bottom:8px!important}.mb-lg-3{margin-bottom:12px!important}.mb-lg-4{margin-bottom:16px!important}.mb-lg-5{margin-bottom:20px!important}.mb-lg-6{margin-bottom:24px!important}.mb-lg-7{margin-bottom:28px!important}.mb-lg-8{margin-bottom:32px!important}.mb-lg-9{margin-bottom:36px!important}.mb-lg-10{margin-bottom:40px!important}.mb-lg-11{margin-bottom:44px!important}.mb-lg-12{margin-bottom:48px!important}.mb-lg-13{margin-bottom:52px!important}.mb-lg-14{margin-bottom:56px!important}.mb-lg-15{margin-bottom:60px!important}.mb-lg-16{margin-bottom:64px!important}.mb-lg-auto{margin-bottom:auto!important}.ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:4px!important}.ml-lg-2{margin-left:8px!important}.ml-lg-3{margin-left:12px!important}.ml-lg-4{margin-left:16px!important}.ml-lg-5{margin-left:20px!important}.ml-lg-6{margin-left:24px!important}.ml-lg-7{margin-left:28px!important}.ml-lg-8{margin-left:32px!important}.ml-lg-9{margin-left:36px!important}.ml-lg-10{margin-left:40px!important}.ml-lg-11{margin-left:44px!important}.ml-lg-12{margin-left:48px!important}.ml-lg-13{margin-left:52px!important}.ml-lg-14{margin-left:56px!important}.ml-lg-15{margin-left:60px!important}.ml-lg-16{margin-left:64px!important}.ml-lg-auto{margin-left:auto!important}.ms-lg-0{margin-inline-start:0px!important}.ms-lg-1{margin-inline-start:4px!important}.ms-lg-2{margin-inline-start:8px!important}.ms-lg-3{margin-inline-start:12px!important}.ms-lg-4{margin-inline-start:16px!important}.ms-lg-5{margin-inline-start:20px!important}.ms-lg-6{margin-inline-start:24px!important}.ms-lg-7{margin-inline-start:28px!important}.ms-lg-8{margin-inline-start:32px!important}.ms-lg-9{margin-inline-start:36px!important}.ms-lg-10{margin-inline-start:40px!important}.ms-lg-11{margin-inline-start:44px!important}.ms-lg-12{margin-inline-start:48px!important}.ms-lg-13{margin-inline-start:52px!important}.ms-lg-14{margin-inline-start:56px!important}.ms-lg-15{margin-inline-start:60px!important}.ms-lg-16{margin-inline-start:64px!important}.ms-lg-auto{margin-inline-start:auto!important}.me-lg-0{margin-inline-end:0px!important}.me-lg-1{margin-inline-end:4px!important}.me-lg-2{margin-inline-end:8px!important}.me-lg-3{margin-inline-end:12px!important}.me-lg-4{margin-inline-end:16px!important}.me-lg-5{margin-inline-end:20px!important}.me-lg-6{margin-inline-end:24px!important}.me-lg-7{margin-inline-end:28px!important}.me-lg-8{margin-inline-end:32px!important}.me-lg-9{margin-inline-end:36px!important}.me-lg-10{margin-inline-end:40px!important}.me-lg-11{margin-inline-end:44px!important}.me-lg-12{margin-inline-end:48px!important}.me-lg-13{margin-inline-end:52px!important}.me-lg-14{margin-inline-end:56px!important}.me-lg-15{margin-inline-end:60px!important}.me-lg-16{margin-inline-end:64px!important}.me-lg-auto{margin-inline-end:auto!important}.ma-lg-n1{margin:-4px!important}.ma-lg-n2{margin:-8px!important}.ma-lg-n3{margin:-12px!important}.ma-lg-n4{margin:-16px!important}.ma-lg-n5{margin:-20px!important}.ma-lg-n6{margin:-24px!important}.ma-lg-n7{margin:-28px!important}.ma-lg-n8{margin:-32px!important}.ma-lg-n9{margin:-36px!important}.ma-lg-n10{margin:-40px!important}.ma-lg-n11{margin:-44px!important}.ma-lg-n12{margin:-48px!important}.ma-lg-n13{margin:-52px!important}.ma-lg-n14{margin:-56px!important}.ma-lg-n15{margin:-60px!important}.ma-lg-n16{margin:-64px!important}.mx-lg-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-lg-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-lg-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-lg-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-lg-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-lg-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-lg-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-lg-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-lg-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-lg-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-lg-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-lg-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-lg-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-lg-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-lg-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-lg-n16{margin-right:-64px!important;margin-left:-64px!important}.my-lg-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-lg-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-lg-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-lg-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-lg-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-lg-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-lg-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-lg-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-lg-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-lg-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-lg-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-lg-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-lg-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-lg-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-lg-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-lg-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-lg-n1{margin-top:-4px!important}.mt-lg-n2{margin-top:-8px!important}.mt-lg-n3{margin-top:-12px!important}.mt-lg-n4{margin-top:-16px!important}.mt-lg-n5{margin-top:-20px!important}.mt-lg-n6{margin-top:-24px!important}.mt-lg-n7{margin-top:-28px!important}.mt-lg-n8{margin-top:-32px!important}.mt-lg-n9{margin-top:-36px!important}.mt-lg-n10{margin-top:-40px!important}.mt-lg-n11{margin-top:-44px!important}.mt-lg-n12{margin-top:-48px!important}.mt-lg-n13{margin-top:-52px!important}.mt-lg-n14{margin-top:-56px!important}.mt-lg-n15{margin-top:-60px!important}.mt-lg-n16{margin-top:-64px!important}.mr-lg-n1{margin-right:-4px!important}.mr-lg-n2{margin-right:-8px!important}.mr-lg-n3{margin-right:-12px!important}.mr-lg-n4{margin-right:-16px!important}.mr-lg-n5{margin-right:-20px!important}.mr-lg-n6{margin-right:-24px!important}.mr-lg-n7{margin-right:-28px!important}.mr-lg-n8{margin-right:-32px!important}.mr-lg-n9{margin-right:-36px!important}.mr-lg-n10{margin-right:-40px!important}.mr-lg-n11{margin-right:-44px!important}.mr-lg-n12{margin-right:-48px!important}.mr-lg-n13{margin-right:-52px!important}.mr-lg-n14{margin-right:-56px!important}.mr-lg-n15{margin-right:-60px!important}.mr-lg-n16{margin-right:-64px!important}.mb-lg-n1{margin-bottom:-4px!important}.mb-lg-n2{margin-bottom:-8px!important}.mb-lg-n3{margin-bottom:-12px!important}.mb-lg-n4{margin-bottom:-16px!important}.mb-lg-n5{margin-bottom:-20px!important}.mb-lg-n6{margin-bottom:-24px!important}.mb-lg-n7{margin-bottom:-28px!important}.mb-lg-n8{margin-bottom:-32px!important}.mb-lg-n9{margin-bottom:-36px!important}.mb-lg-n10{margin-bottom:-40px!important}.mb-lg-n11{margin-bottom:-44px!important}.mb-lg-n12{margin-bottom:-48px!important}.mb-lg-n13{margin-bottom:-52px!important}.mb-lg-n14{margin-bottom:-56px!important}.mb-lg-n15{margin-bottom:-60px!important}.mb-lg-n16{margin-bottom:-64px!important}.ml-lg-n1{margin-left:-4px!important}.ml-lg-n2{margin-left:-8px!important}.ml-lg-n3{margin-left:-12px!important}.ml-lg-n4{margin-left:-16px!important}.ml-lg-n5{margin-left:-20px!important}.ml-lg-n6{margin-left:-24px!important}.ml-lg-n7{margin-left:-28px!important}.ml-lg-n8{margin-left:-32px!important}.ml-lg-n9{margin-left:-36px!important}.ml-lg-n10{margin-left:-40px!important}.ml-lg-n11{margin-left:-44px!important}.ml-lg-n12{margin-left:-48px!important}.ml-lg-n13{margin-left:-52px!important}.ml-lg-n14{margin-left:-56px!important}.ml-lg-n15{margin-left:-60px!important}.ml-lg-n16{margin-left:-64px!important}.ms-lg-n1{margin-inline-start:-4px!important}.ms-lg-n2{margin-inline-start:-8px!important}.ms-lg-n3{margin-inline-start:-12px!important}.ms-lg-n4{margin-inline-start:-16px!important}.ms-lg-n5{margin-inline-start:-20px!important}.ms-lg-n6{margin-inline-start:-24px!important}.ms-lg-n7{margin-inline-start:-28px!important}.ms-lg-n8{margin-inline-start:-32px!important}.ms-lg-n9{margin-inline-start:-36px!important}.ms-lg-n10{margin-inline-start:-40px!important}.ms-lg-n11{margin-inline-start:-44px!important}.ms-lg-n12{margin-inline-start:-48px!important}.ms-lg-n13{margin-inline-start:-52px!important}.ms-lg-n14{margin-inline-start:-56px!important}.ms-lg-n15{margin-inline-start:-60px!important}.ms-lg-n16{margin-inline-start:-64px!important}.me-lg-n1{margin-inline-end:-4px!important}.me-lg-n2{margin-inline-end:-8px!important}.me-lg-n3{margin-inline-end:-12px!important}.me-lg-n4{margin-inline-end:-16px!important}.me-lg-n5{margin-inline-end:-20px!important}.me-lg-n6{margin-inline-end:-24px!important}.me-lg-n7{margin-inline-end:-28px!important}.me-lg-n8{margin-inline-end:-32px!important}.me-lg-n9{margin-inline-end:-36px!important}.me-lg-n10{margin-inline-end:-40px!important}.me-lg-n11{margin-inline-end:-44px!important}.me-lg-n12{margin-inline-end:-48px!important}.me-lg-n13{margin-inline-end:-52px!important}.me-lg-n14{margin-inline-end:-56px!important}.me-lg-n15{margin-inline-end:-60px!important}.me-lg-n16{margin-inline-end:-64px!important}.pa-lg-0{padding:0!important}.pa-lg-1{padding:4px!important}.pa-lg-2{padding:8px!important}.pa-lg-3{padding:12px!important}.pa-lg-4{padding:16px!important}.pa-lg-5{padding:20px!important}.pa-lg-6{padding:24px!important}.pa-lg-7{padding:28px!important}.pa-lg-8{padding:32px!important}.pa-lg-9{padding:36px!important}.pa-lg-10{padding:40px!important}.pa-lg-11{padding:44px!important}.pa-lg-12{padding:48px!important}.pa-lg-13{padding:52px!important}.pa-lg-14{padding:56px!important}.pa-lg-15{padding:60px!important}.pa-lg-16{padding:64px!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:4px!important;padding-left:4px!important}.px-lg-2{padding-right:8px!important;padding-left:8px!important}.px-lg-3{padding-right:12px!important;padding-left:12px!important}.px-lg-4{padding-right:16px!important;padding-left:16px!important}.px-lg-5{padding-right:20px!important;padding-left:20px!important}.px-lg-6{padding-right:24px!important;padding-left:24px!important}.px-lg-7{padding-right:28px!important;padding-left:28px!important}.px-lg-8{padding-right:32px!important;padding-left:32px!important}.px-lg-9{padding-right:36px!important;padding-left:36px!important}.px-lg-10{padding-right:40px!important;padding-left:40px!important}.px-lg-11{padding-right:44px!important;padding-left:44px!important}.px-lg-12{padding-right:48px!important;padding-left:48px!important}.px-lg-13{padding-right:52px!important;padding-left:52px!important}.px-lg-14{padding-right:56px!important;padding-left:56px!important}.px-lg-15{padding-right:60px!important;padding-left:60px!important}.px-lg-16{padding-right:64px!important;padding-left:64px!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:4px!important;padding-bottom:4px!important}.py-lg-2{padding-top:8px!important;padding-bottom:8px!important}.py-lg-3{padding-top:12px!important;padding-bottom:12px!important}.py-lg-4{padding-top:16px!important;padding-bottom:16px!important}.py-lg-5{padding-top:20px!important;padding-bottom:20px!important}.py-lg-6{padding-top:24px!important;padding-bottom:24px!important}.py-lg-7{padding-top:28px!important;padding-bottom:28px!important}.py-lg-8{padding-top:32px!important;padding-bottom:32px!important}.py-lg-9{padding-top:36px!important;padding-bottom:36px!important}.py-lg-10{padding-top:40px!important;padding-bottom:40px!important}.py-lg-11{padding-top:44px!important;padding-bottom:44px!important}.py-lg-12{padding-top:48px!important;padding-bottom:48px!important}.py-lg-13{padding-top:52px!important;padding-bottom:52px!important}.py-lg-14{padding-top:56px!important;padding-bottom:56px!important}.py-lg-15{padding-top:60px!important;padding-bottom:60px!important}.py-lg-16{padding-top:64px!important;padding-bottom:64px!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:4px!important}.pt-lg-2{padding-top:8px!important}.pt-lg-3{padding-top:12px!important}.pt-lg-4{padding-top:16px!important}.pt-lg-5{padding-top:20px!important}.pt-lg-6{padding-top:24px!important}.pt-lg-7{padding-top:28px!important}.pt-lg-8{padding-top:32px!important}.pt-lg-9{padding-top:36px!important}.pt-lg-10{padding-top:40px!important}.pt-lg-11{padding-top:44px!important}.pt-lg-12{padding-top:48px!important}.pt-lg-13{padding-top:52px!important}.pt-lg-14{padding-top:56px!important}.pt-lg-15{padding-top:60px!important}.pt-lg-16{padding-top:64px!important}.pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:4px!important}.pr-lg-2{padding-right:8px!important}.pr-lg-3{padding-right:12px!important}.pr-lg-4{padding-right:16px!important}.pr-lg-5{padding-right:20px!important}.pr-lg-6{padding-right:24px!important}.pr-lg-7{padding-right:28px!important}.pr-lg-8{padding-right:32px!important}.pr-lg-9{padding-right:36px!important}.pr-lg-10{padding-right:40px!important}.pr-lg-11{padding-right:44px!important}.pr-lg-12{padding-right:48px!important}.pr-lg-13{padding-right:52px!important}.pr-lg-14{padding-right:56px!important}.pr-lg-15{padding-right:60px!important}.pr-lg-16{padding-right:64px!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:4px!important}.pb-lg-2{padding-bottom:8px!important}.pb-lg-3{padding-bottom:12px!important}.pb-lg-4{padding-bottom:16px!important}.pb-lg-5{padding-bottom:20px!important}.pb-lg-6{padding-bottom:24px!important}.pb-lg-7{padding-bottom:28px!important}.pb-lg-8{padding-bottom:32px!important}.pb-lg-9{padding-bottom:36px!important}.pb-lg-10{padding-bottom:40px!important}.pb-lg-11{padding-bottom:44px!important}.pb-lg-12{padding-bottom:48px!important}.pb-lg-13{padding-bottom:52px!important}.pb-lg-14{padding-bottom:56px!important}.pb-lg-15{padding-bottom:60px!important}.pb-lg-16{padding-bottom:64px!important}.pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:4px!important}.pl-lg-2{padding-left:8px!important}.pl-lg-3{padding-left:12px!important}.pl-lg-4{padding-left:16px!important}.pl-lg-5{padding-left:20px!important}.pl-lg-6{padding-left:24px!important}.pl-lg-7{padding-left:28px!important}.pl-lg-8{padding-left:32px!important}.pl-lg-9{padding-left:36px!important}.pl-lg-10{padding-left:40px!important}.pl-lg-11{padding-left:44px!important}.pl-lg-12{padding-left:48px!important}.pl-lg-13{padding-left:52px!important}.pl-lg-14{padding-left:56px!important}.pl-lg-15{padding-left:60px!important}.pl-lg-16{padding-left:64px!important}.ps-lg-0{padding-inline-start:0px!important}.ps-lg-1{padding-inline-start:4px!important}.ps-lg-2{padding-inline-start:8px!important}.ps-lg-3{padding-inline-start:12px!important}.ps-lg-4{padding-inline-start:16px!important}.ps-lg-5{padding-inline-start:20px!important}.ps-lg-6{padding-inline-start:24px!important}.ps-lg-7{padding-inline-start:28px!important}.ps-lg-8{padding-inline-start:32px!important}.ps-lg-9{padding-inline-start:36px!important}.ps-lg-10{padding-inline-start:40px!important}.ps-lg-11{padding-inline-start:44px!important}.ps-lg-12{padding-inline-start:48px!important}.ps-lg-13{padding-inline-start:52px!important}.ps-lg-14{padding-inline-start:56px!important}.ps-lg-15{padding-inline-start:60px!important}.ps-lg-16{padding-inline-start:64px!important}.pe-lg-0{padding-inline-end:0px!important}.pe-lg-1{padding-inline-end:4px!important}.pe-lg-2{padding-inline-end:8px!important}.pe-lg-3{padding-inline-end:12px!important}.pe-lg-4{padding-inline-end:16px!important}.pe-lg-5{padding-inline-end:20px!important}.pe-lg-6{padding-inline-end:24px!important}.pe-lg-7{padding-inline-end:28px!important}.pe-lg-8{padding-inline-end:32px!important}.pe-lg-9{padding-inline-end:36px!important}.pe-lg-10{padding-inline-end:40px!important}.pe-lg-11{padding-inline-end:44px!important}.pe-lg-12{padding-inline-end:48px!important}.pe-lg-13{padding-inline-end:52px!important}.pe-lg-14{padding-inline-end:56px!important}.pe-lg-15{padding-inline-end:60px!important}.pe-lg-16{padding-inline-end:64px!important}.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}.text-lg-justify{text-align:justify!important}.text-lg-start{text-align:start!important}.text-lg-end{text-align:end!important}.text-lg-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-lg-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-lg-auto{height:auto!important}.h-lg-screen{height:100vh!important}.h-lg-0{height:0!important}.h-lg-25{height:25%!important}.h-lg-50{height:50%!important}.h-lg-75{height:75%!important}.h-lg-100{height:100%!important}.w-lg-auto{width:auto!important}.w-lg-0{width:0!important}.w-lg-25{width:25%!important}.w-lg-33{width:33%!important}.w-lg-50{width:50%!important}.w-lg-66{width:66%!important}.w-lg-75{width:75%!important}.w-lg-100{width:100%!important}}@media (min-width: 1920px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.float-xl-none{float:none!important}.float-xl-left{float:left!important}.float-xl-right{float:right!important}.v-locale--is-rtl .float-xl-end{float:left!important}.v-locale--is-rtl .float-xl-start,.v-locale--is-ltr .float-xl-end{float:right!important}.v-locale--is-ltr .float-xl-start{float:left!important}.flex-xl-fill,.flex-xl-1-1{flex:1 1 auto!important}.flex-xl-1-0{flex:1 0 auto!important}.flex-xl-0-1{flex:0 1 auto!important}.flex-xl-0-0{flex:0 0 auto!important}.flex-xl-1-1-100{flex:1 1 100%!important}.flex-xl-1-0-100{flex:1 0 100%!important}.flex-xl-0-1-100{flex:0 1 100%!important}.flex-xl-0-0-100{flex:0 0 100%!important}.flex-xl-1-1-0{flex:1 1 0!important}.flex-xl-1-0-0{flex:1 0 0!important}.flex-xl-0-1-0{flex:0 1 0!important}.flex-xl-0-0-0{flex:0 0 0!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xl-start{justify-content:flex-start!important}.justify-xl-end{justify-content:flex-end!important}.justify-xl-center{justify-content:center!important}.justify-xl-space-between{justify-content:space-between!important}.justify-xl-space-around{justify-content:space-around!important}.justify-xl-space-evenly{justify-content:space-evenly!important}.align-xl-start{align-items:flex-start!important}.align-xl-end{align-items:flex-end!important}.align-xl-center{align-items:center!important}.align-xl-baseline{align-items:baseline!important}.align-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-space-between{align-content:space-between!important}.align-content-xl-space-around{align-content:space-around!important}.align-content-xl-space-evenly{align-content:space-evenly!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-6{order:6!important}.order-xl-7{order:7!important}.order-xl-8{order:8!important}.order-xl-9{order:9!important}.order-xl-10{order:10!important}.order-xl-11{order:11!important}.order-xl-12{order:12!important}.order-xl-last{order:13!important}.ga-xl-0{gap:0px!important}.ga-xl-1{gap:4px!important}.ga-xl-2{gap:8px!important}.ga-xl-3{gap:12px!important}.ga-xl-4{gap:16px!important}.ga-xl-5{gap:20px!important}.ga-xl-6{gap:24px!important}.ga-xl-7{gap:28px!important}.ga-xl-8{gap:32px!important}.ga-xl-9{gap:36px!important}.ga-xl-10{gap:40px!important}.ga-xl-11{gap:44px!important}.ga-xl-12{gap:48px!important}.ga-xl-13{gap:52px!important}.ga-xl-14{gap:56px!important}.ga-xl-15{gap:60px!important}.ga-xl-16{gap:64px!important}.ga-xl-auto{gap:auto!important}.gr-xl-0{row-gap:0px!important}.gr-xl-1{row-gap:4px!important}.gr-xl-2{row-gap:8px!important}.gr-xl-3{row-gap:12px!important}.gr-xl-4{row-gap:16px!important}.gr-xl-5{row-gap:20px!important}.gr-xl-6{row-gap:24px!important}.gr-xl-7{row-gap:28px!important}.gr-xl-8{row-gap:32px!important}.gr-xl-9{row-gap:36px!important}.gr-xl-10{row-gap:40px!important}.gr-xl-11{row-gap:44px!important}.gr-xl-12{row-gap:48px!important}.gr-xl-13{row-gap:52px!important}.gr-xl-14{row-gap:56px!important}.gr-xl-15{row-gap:60px!important}.gr-xl-16{row-gap:64px!important}.gr-xl-auto{row-gap:auto!important}.gc-xl-0{column-gap:0px!important}.gc-xl-1{column-gap:4px!important}.gc-xl-2{column-gap:8px!important}.gc-xl-3{column-gap:12px!important}.gc-xl-4{column-gap:16px!important}.gc-xl-5{column-gap:20px!important}.gc-xl-6{column-gap:24px!important}.gc-xl-7{column-gap:28px!important}.gc-xl-8{column-gap:32px!important}.gc-xl-9{column-gap:36px!important}.gc-xl-10{column-gap:40px!important}.gc-xl-11{column-gap:44px!important}.gc-xl-12{column-gap:48px!important}.gc-xl-13{column-gap:52px!important}.gc-xl-14{column-gap:56px!important}.gc-xl-15{column-gap:60px!important}.gc-xl-16{column-gap:64px!important}.gc-xl-auto{column-gap:auto!important}.ma-xl-0{margin:0!important}.ma-xl-1{margin:4px!important}.ma-xl-2{margin:8px!important}.ma-xl-3{margin:12px!important}.ma-xl-4{margin:16px!important}.ma-xl-5{margin:20px!important}.ma-xl-6{margin:24px!important}.ma-xl-7{margin:28px!important}.ma-xl-8{margin:32px!important}.ma-xl-9{margin:36px!important}.ma-xl-10{margin:40px!important}.ma-xl-11{margin:44px!important}.ma-xl-12{margin:48px!important}.ma-xl-13{margin:52px!important}.ma-xl-14{margin:56px!important}.ma-xl-15{margin:60px!important}.ma-xl-16{margin:64px!important}.ma-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:4px!important;margin-left:4px!important}.mx-xl-2{margin-right:8px!important;margin-left:8px!important}.mx-xl-3{margin-right:12px!important;margin-left:12px!important}.mx-xl-4{margin-right:16px!important;margin-left:16px!important}.mx-xl-5{margin-right:20px!important;margin-left:20px!important}.mx-xl-6{margin-right:24px!important;margin-left:24px!important}.mx-xl-7{margin-right:28px!important;margin-left:28px!important}.mx-xl-8{margin-right:32px!important;margin-left:32px!important}.mx-xl-9{margin-right:36px!important;margin-left:36px!important}.mx-xl-10{margin-right:40px!important;margin-left:40px!important}.mx-xl-11{margin-right:44px!important;margin-left:44px!important}.mx-xl-12{margin-right:48px!important;margin-left:48px!important}.mx-xl-13{margin-right:52px!important;margin-left:52px!important}.mx-xl-14{margin-right:56px!important;margin-left:56px!important}.mx-xl-15{margin-right:60px!important;margin-left:60px!important}.mx-xl-16{margin-right:64px!important;margin-left:64px!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:4px!important}.mt-xl-2{margin-top:8px!important}.mt-xl-3{margin-top:12px!important}.mt-xl-4{margin-top:16px!important}.mt-xl-5{margin-top:20px!important}.mt-xl-6{margin-top:24px!important}.mt-xl-7{margin-top:28px!important}.mt-xl-8{margin-top:32px!important}.mt-xl-9{margin-top:36px!important}.mt-xl-10{margin-top:40px!important}.mt-xl-11{margin-top:44px!important}.mt-xl-12{margin-top:48px!important}.mt-xl-13{margin-top:52px!important}.mt-xl-14{margin-top:56px!important}.mt-xl-15{margin-top:60px!important}.mt-xl-16{margin-top:64px!important}.mt-xl-auto{margin-top:auto!important}.mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:4px!important}.mr-xl-2{margin-right:8px!important}.mr-xl-3{margin-right:12px!important}.mr-xl-4{margin-right:16px!important}.mr-xl-5{margin-right:20px!important}.mr-xl-6{margin-right:24px!important}.mr-xl-7{margin-right:28px!important}.mr-xl-8{margin-right:32px!important}.mr-xl-9{margin-right:36px!important}.mr-xl-10{margin-right:40px!important}.mr-xl-11{margin-right:44px!important}.mr-xl-12{margin-right:48px!important}.mr-xl-13{margin-right:52px!important}.mr-xl-14{margin-right:56px!important}.mr-xl-15{margin-right:60px!important}.mr-xl-16{margin-right:64px!important}.mr-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:4px!important}.mb-xl-2{margin-bottom:8px!important}.mb-xl-3{margin-bottom:12px!important}.mb-xl-4{margin-bottom:16px!important}.mb-xl-5{margin-bottom:20px!important}.mb-xl-6{margin-bottom:24px!important}.mb-xl-7{margin-bottom:28px!important}.mb-xl-8{margin-bottom:32px!important}.mb-xl-9{margin-bottom:36px!important}.mb-xl-10{margin-bottom:40px!important}.mb-xl-11{margin-bottom:44px!important}.mb-xl-12{margin-bottom:48px!important}.mb-xl-13{margin-bottom:52px!important}.mb-xl-14{margin-bottom:56px!important}.mb-xl-15{margin-bottom:60px!important}.mb-xl-16{margin-bottom:64px!important}.mb-xl-auto{margin-bottom:auto!important}.ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:4px!important}.ml-xl-2{margin-left:8px!important}.ml-xl-3{margin-left:12px!important}.ml-xl-4{margin-left:16px!important}.ml-xl-5{margin-left:20px!important}.ml-xl-6{margin-left:24px!important}.ml-xl-7{margin-left:28px!important}.ml-xl-8{margin-left:32px!important}.ml-xl-9{margin-left:36px!important}.ml-xl-10{margin-left:40px!important}.ml-xl-11{margin-left:44px!important}.ml-xl-12{margin-left:48px!important}.ml-xl-13{margin-left:52px!important}.ml-xl-14{margin-left:56px!important}.ml-xl-15{margin-left:60px!important}.ml-xl-16{margin-left:64px!important}.ml-xl-auto{margin-left:auto!important}.ms-xl-0{margin-inline-start:0px!important}.ms-xl-1{margin-inline-start:4px!important}.ms-xl-2{margin-inline-start:8px!important}.ms-xl-3{margin-inline-start:12px!important}.ms-xl-4{margin-inline-start:16px!important}.ms-xl-5{margin-inline-start:20px!important}.ms-xl-6{margin-inline-start:24px!important}.ms-xl-7{margin-inline-start:28px!important}.ms-xl-8{margin-inline-start:32px!important}.ms-xl-9{margin-inline-start:36px!important}.ms-xl-10{margin-inline-start:40px!important}.ms-xl-11{margin-inline-start:44px!important}.ms-xl-12{margin-inline-start:48px!important}.ms-xl-13{margin-inline-start:52px!important}.ms-xl-14{margin-inline-start:56px!important}.ms-xl-15{margin-inline-start:60px!important}.ms-xl-16{margin-inline-start:64px!important}.ms-xl-auto{margin-inline-start:auto!important}.me-xl-0{margin-inline-end:0px!important}.me-xl-1{margin-inline-end:4px!important}.me-xl-2{margin-inline-end:8px!important}.me-xl-3{margin-inline-end:12px!important}.me-xl-4{margin-inline-end:16px!important}.me-xl-5{margin-inline-end:20px!important}.me-xl-6{margin-inline-end:24px!important}.me-xl-7{margin-inline-end:28px!important}.me-xl-8{margin-inline-end:32px!important}.me-xl-9{margin-inline-end:36px!important}.me-xl-10{margin-inline-end:40px!important}.me-xl-11{margin-inline-end:44px!important}.me-xl-12{margin-inline-end:48px!important}.me-xl-13{margin-inline-end:52px!important}.me-xl-14{margin-inline-end:56px!important}.me-xl-15{margin-inline-end:60px!important}.me-xl-16{margin-inline-end:64px!important}.me-xl-auto{margin-inline-end:auto!important}.ma-xl-n1{margin:-4px!important}.ma-xl-n2{margin:-8px!important}.ma-xl-n3{margin:-12px!important}.ma-xl-n4{margin:-16px!important}.ma-xl-n5{margin:-20px!important}.ma-xl-n6{margin:-24px!important}.ma-xl-n7{margin:-28px!important}.ma-xl-n8{margin:-32px!important}.ma-xl-n9{margin:-36px!important}.ma-xl-n10{margin:-40px!important}.ma-xl-n11{margin:-44px!important}.ma-xl-n12{margin:-48px!important}.ma-xl-n13{margin:-52px!important}.ma-xl-n14{margin:-56px!important}.ma-xl-n15{margin:-60px!important}.ma-xl-n16{margin:-64px!important}.mx-xl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xl-n1{margin-top:-4px!important}.mt-xl-n2{margin-top:-8px!important}.mt-xl-n3{margin-top:-12px!important}.mt-xl-n4{margin-top:-16px!important}.mt-xl-n5{margin-top:-20px!important}.mt-xl-n6{margin-top:-24px!important}.mt-xl-n7{margin-top:-28px!important}.mt-xl-n8{margin-top:-32px!important}.mt-xl-n9{margin-top:-36px!important}.mt-xl-n10{margin-top:-40px!important}.mt-xl-n11{margin-top:-44px!important}.mt-xl-n12{margin-top:-48px!important}.mt-xl-n13{margin-top:-52px!important}.mt-xl-n14{margin-top:-56px!important}.mt-xl-n15{margin-top:-60px!important}.mt-xl-n16{margin-top:-64px!important}.mr-xl-n1{margin-right:-4px!important}.mr-xl-n2{margin-right:-8px!important}.mr-xl-n3{margin-right:-12px!important}.mr-xl-n4{margin-right:-16px!important}.mr-xl-n5{margin-right:-20px!important}.mr-xl-n6{margin-right:-24px!important}.mr-xl-n7{margin-right:-28px!important}.mr-xl-n8{margin-right:-32px!important}.mr-xl-n9{margin-right:-36px!important}.mr-xl-n10{margin-right:-40px!important}.mr-xl-n11{margin-right:-44px!important}.mr-xl-n12{margin-right:-48px!important}.mr-xl-n13{margin-right:-52px!important}.mr-xl-n14{margin-right:-56px!important}.mr-xl-n15{margin-right:-60px!important}.mr-xl-n16{margin-right:-64px!important}.mb-xl-n1{margin-bottom:-4px!important}.mb-xl-n2{margin-bottom:-8px!important}.mb-xl-n3{margin-bottom:-12px!important}.mb-xl-n4{margin-bottom:-16px!important}.mb-xl-n5{margin-bottom:-20px!important}.mb-xl-n6{margin-bottom:-24px!important}.mb-xl-n7{margin-bottom:-28px!important}.mb-xl-n8{margin-bottom:-32px!important}.mb-xl-n9{margin-bottom:-36px!important}.mb-xl-n10{margin-bottom:-40px!important}.mb-xl-n11{margin-bottom:-44px!important}.mb-xl-n12{margin-bottom:-48px!important}.mb-xl-n13{margin-bottom:-52px!important}.mb-xl-n14{margin-bottom:-56px!important}.mb-xl-n15{margin-bottom:-60px!important}.mb-xl-n16{margin-bottom:-64px!important}.ml-xl-n1{margin-left:-4px!important}.ml-xl-n2{margin-left:-8px!important}.ml-xl-n3{margin-left:-12px!important}.ml-xl-n4{margin-left:-16px!important}.ml-xl-n5{margin-left:-20px!important}.ml-xl-n6{margin-left:-24px!important}.ml-xl-n7{margin-left:-28px!important}.ml-xl-n8{margin-left:-32px!important}.ml-xl-n9{margin-left:-36px!important}.ml-xl-n10{margin-left:-40px!important}.ml-xl-n11{margin-left:-44px!important}.ml-xl-n12{margin-left:-48px!important}.ml-xl-n13{margin-left:-52px!important}.ml-xl-n14{margin-left:-56px!important}.ml-xl-n15{margin-left:-60px!important}.ml-xl-n16{margin-left:-64px!important}.ms-xl-n1{margin-inline-start:-4px!important}.ms-xl-n2{margin-inline-start:-8px!important}.ms-xl-n3{margin-inline-start:-12px!important}.ms-xl-n4{margin-inline-start:-16px!important}.ms-xl-n5{margin-inline-start:-20px!important}.ms-xl-n6{margin-inline-start:-24px!important}.ms-xl-n7{margin-inline-start:-28px!important}.ms-xl-n8{margin-inline-start:-32px!important}.ms-xl-n9{margin-inline-start:-36px!important}.ms-xl-n10{margin-inline-start:-40px!important}.ms-xl-n11{margin-inline-start:-44px!important}.ms-xl-n12{margin-inline-start:-48px!important}.ms-xl-n13{margin-inline-start:-52px!important}.ms-xl-n14{margin-inline-start:-56px!important}.ms-xl-n15{margin-inline-start:-60px!important}.ms-xl-n16{margin-inline-start:-64px!important}.me-xl-n1{margin-inline-end:-4px!important}.me-xl-n2{margin-inline-end:-8px!important}.me-xl-n3{margin-inline-end:-12px!important}.me-xl-n4{margin-inline-end:-16px!important}.me-xl-n5{margin-inline-end:-20px!important}.me-xl-n6{margin-inline-end:-24px!important}.me-xl-n7{margin-inline-end:-28px!important}.me-xl-n8{margin-inline-end:-32px!important}.me-xl-n9{margin-inline-end:-36px!important}.me-xl-n10{margin-inline-end:-40px!important}.me-xl-n11{margin-inline-end:-44px!important}.me-xl-n12{margin-inline-end:-48px!important}.me-xl-n13{margin-inline-end:-52px!important}.me-xl-n14{margin-inline-end:-56px!important}.me-xl-n15{margin-inline-end:-60px!important}.me-xl-n16{margin-inline-end:-64px!important}.pa-xl-0{padding:0!important}.pa-xl-1{padding:4px!important}.pa-xl-2{padding:8px!important}.pa-xl-3{padding:12px!important}.pa-xl-4{padding:16px!important}.pa-xl-5{padding:20px!important}.pa-xl-6{padding:24px!important}.pa-xl-7{padding:28px!important}.pa-xl-8{padding:32px!important}.pa-xl-9{padding:36px!important}.pa-xl-10{padding:40px!important}.pa-xl-11{padding:44px!important}.pa-xl-12{padding:48px!important}.pa-xl-13{padding:52px!important}.pa-xl-14{padding:56px!important}.pa-xl-15{padding:60px!important}.pa-xl-16{padding:64px!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:4px!important;padding-left:4px!important}.px-xl-2{padding-right:8px!important;padding-left:8px!important}.px-xl-3{padding-right:12px!important;padding-left:12px!important}.px-xl-4{padding-right:16px!important;padding-left:16px!important}.px-xl-5{padding-right:20px!important;padding-left:20px!important}.px-xl-6{padding-right:24px!important;padding-left:24px!important}.px-xl-7{padding-right:28px!important;padding-left:28px!important}.px-xl-8{padding-right:32px!important;padding-left:32px!important}.px-xl-9{padding-right:36px!important;padding-left:36px!important}.px-xl-10{padding-right:40px!important;padding-left:40px!important}.px-xl-11{padding-right:44px!important;padding-left:44px!important}.px-xl-12{padding-right:48px!important;padding-left:48px!important}.px-xl-13{padding-right:52px!important;padding-left:52px!important}.px-xl-14{padding-right:56px!important;padding-left:56px!important}.px-xl-15{padding-right:60px!important;padding-left:60px!important}.px-xl-16{padding-right:64px!important;padding-left:64px!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:4px!important}.pt-xl-2{padding-top:8px!important}.pt-xl-3{padding-top:12px!important}.pt-xl-4{padding-top:16px!important}.pt-xl-5{padding-top:20px!important}.pt-xl-6{padding-top:24px!important}.pt-xl-7{padding-top:28px!important}.pt-xl-8{padding-top:32px!important}.pt-xl-9{padding-top:36px!important}.pt-xl-10{padding-top:40px!important}.pt-xl-11{padding-top:44px!important}.pt-xl-12{padding-top:48px!important}.pt-xl-13{padding-top:52px!important}.pt-xl-14{padding-top:56px!important}.pt-xl-15{padding-top:60px!important}.pt-xl-16{padding-top:64px!important}.pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:4px!important}.pr-xl-2{padding-right:8px!important}.pr-xl-3{padding-right:12px!important}.pr-xl-4{padding-right:16px!important}.pr-xl-5{padding-right:20px!important}.pr-xl-6{padding-right:24px!important}.pr-xl-7{padding-right:28px!important}.pr-xl-8{padding-right:32px!important}.pr-xl-9{padding-right:36px!important}.pr-xl-10{padding-right:40px!important}.pr-xl-11{padding-right:44px!important}.pr-xl-12{padding-right:48px!important}.pr-xl-13{padding-right:52px!important}.pr-xl-14{padding-right:56px!important}.pr-xl-15{padding-right:60px!important}.pr-xl-16{padding-right:64px!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:4px!important}.pb-xl-2{padding-bottom:8px!important}.pb-xl-3{padding-bottom:12px!important}.pb-xl-4{padding-bottom:16px!important}.pb-xl-5{padding-bottom:20px!important}.pb-xl-6{padding-bottom:24px!important}.pb-xl-7{padding-bottom:28px!important}.pb-xl-8{padding-bottom:32px!important}.pb-xl-9{padding-bottom:36px!important}.pb-xl-10{padding-bottom:40px!important}.pb-xl-11{padding-bottom:44px!important}.pb-xl-12{padding-bottom:48px!important}.pb-xl-13{padding-bottom:52px!important}.pb-xl-14{padding-bottom:56px!important}.pb-xl-15{padding-bottom:60px!important}.pb-xl-16{padding-bottom:64px!important}.pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:4px!important}.pl-xl-2{padding-left:8px!important}.pl-xl-3{padding-left:12px!important}.pl-xl-4{padding-left:16px!important}.pl-xl-5{padding-left:20px!important}.pl-xl-6{padding-left:24px!important}.pl-xl-7{padding-left:28px!important}.pl-xl-8{padding-left:32px!important}.pl-xl-9{padding-left:36px!important}.pl-xl-10{padding-left:40px!important}.pl-xl-11{padding-left:44px!important}.pl-xl-12{padding-left:48px!important}.pl-xl-13{padding-left:52px!important}.pl-xl-14{padding-left:56px!important}.pl-xl-15{padding-left:60px!important}.pl-xl-16{padding-left:64px!important}.ps-xl-0{padding-inline-start:0px!important}.ps-xl-1{padding-inline-start:4px!important}.ps-xl-2{padding-inline-start:8px!important}.ps-xl-3{padding-inline-start:12px!important}.ps-xl-4{padding-inline-start:16px!important}.ps-xl-5{padding-inline-start:20px!important}.ps-xl-6{padding-inline-start:24px!important}.ps-xl-7{padding-inline-start:28px!important}.ps-xl-8{padding-inline-start:32px!important}.ps-xl-9{padding-inline-start:36px!important}.ps-xl-10{padding-inline-start:40px!important}.ps-xl-11{padding-inline-start:44px!important}.ps-xl-12{padding-inline-start:48px!important}.ps-xl-13{padding-inline-start:52px!important}.ps-xl-14{padding-inline-start:56px!important}.ps-xl-15{padding-inline-start:60px!important}.ps-xl-16{padding-inline-start:64px!important}.pe-xl-0{padding-inline-end:0px!important}.pe-xl-1{padding-inline-end:4px!important}.pe-xl-2{padding-inline-end:8px!important}.pe-xl-3{padding-inline-end:12px!important}.pe-xl-4{padding-inline-end:16px!important}.pe-xl-5{padding-inline-end:20px!important}.pe-xl-6{padding-inline-end:24px!important}.pe-xl-7{padding-inline-end:28px!important}.pe-xl-8{padding-inline-end:32px!important}.pe-xl-9{padding-inline-end:36px!important}.pe-xl-10{padding-inline-end:40px!important}.pe-xl-11{padding-inline-end:44px!important}.pe-xl-12{padding-inline-end:48px!important}.pe-xl-13{padding-inline-end:52px!important}.pe-xl-14{padding-inline-end:56px!important}.pe-xl-15{padding-inline-end:60px!important}.pe-xl-16{padding-inline-end:64px!important}.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}.text-xl-justify{text-align:justify!important}.text-xl-start{text-align:start!important}.text-xl-end{text-align:end!important}.text-xl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xl-auto{height:auto!important}.h-xl-screen{height:100vh!important}.h-xl-0{height:0!important}.h-xl-25{height:25%!important}.h-xl-50{height:50%!important}.h-xl-75{height:75%!important}.h-xl-100{height:100%!important}.w-xl-auto{width:auto!important}.w-xl-0{width:0!important}.w-xl-25{width:25%!important}.w-xl-33{width:33%!important}.w-xl-50{width:50%!important}.w-xl-66{width:66%!important}.w-xl-75{width:75%!important}.w-xl-100{width:100%!important}}@media (min-width: 2560px){.d-xxl-none{display:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.float-xxl-none{float:none!important}.float-xxl-left{float:left!important}.float-xxl-right{float:right!important}.v-locale--is-rtl .float-xxl-end{float:left!important}.v-locale--is-rtl .float-xxl-start,.v-locale--is-ltr .float-xxl-end{float:right!important}.v-locale--is-ltr .float-xxl-start{float:left!important}.flex-xxl-fill,.flex-xxl-1-1{flex:1 1 auto!important}.flex-xxl-1-0{flex:1 0 auto!important}.flex-xxl-0-1{flex:0 1 auto!important}.flex-xxl-0-0{flex:0 0 auto!important}.flex-xxl-1-1-100{flex:1 1 100%!important}.flex-xxl-1-0-100{flex:1 0 100%!important}.flex-xxl-0-1-100{flex:0 1 100%!important}.flex-xxl-0-0-100{flex:0 0 100%!important}.flex-xxl-1-1-0{flex:1 1 0!important}.flex-xxl-1-0-0{flex:1 0 0!important}.flex-xxl-0-1-0{flex:0 1 0!important}.flex-xxl-0-0-0{flex:0 0 0!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xxl-start{justify-content:flex-start!important}.justify-xxl-end{justify-content:flex-end!important}.justify-xxl-center{justify-content:center!important}.justify-xxl-space-between{justify-content:space-between!important}.justify-xxl-space-around{justify-content:space-around!important}.justify-xxl-space-evenly{justify-content:space-evenly!important}.align-xxl-start{align-items:flex-start!important}.align-xxl-end{align-items:flex-end!important}.align-xxl-center{align-items:center!important}.align-xxl-baseline{align-items:baseline!important}.align-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-space-between{align-content:space-between!important}.align-content-xxl-space-around{align-content:space-around!important}.align-content-xxl-space-evenly{align-content:space-evenly!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-6{order:6!important}.order-xxl-7{order:7!important}.order-xxl-8{order:8!important}.order-xxl-9{order:9!important}.order-xxl-10{order:10!important}.order-xxl-11{order:11!important}.order-xxl-12{order:12!important}.order-xxl-last{order:13!important}.ga-xxl-0{gap:0px!important}.ga-xxl-1{gap:4px!important}.ga-xxl-2{gap:8px!important}.ga-xxl-3{gap:12px!important}.ga-xxl-4{gap:16px!important}.ga-xxl-5{gap:20px!important}.ga-xxl-6{gap:24px!important}.ga-xxl-7{gap:28px!important}.ga-xxl-8{gap:32px!important}.ga-xxl-9{gap:36px!important}.ga-xxl-10{gap:40px!important}.ga-xxl-11{gap:44px!important}.ga-xxl-12{gap:48px!important}.ga-xxl-13{gap:52px!important}.ga-xxl-14{gap:56px!important}.ga-xxl-15{gap:60px!important}.ga-xxl-16{gap:64px!important}.ga-xxl-auto{gap:auto!important}.gr-xxl-0{row-gap:0px!important}.gr-xxl-1{row-gap:4px!important}.gr-xxl-2{row-gap:8px!important}.gr-xxl-3{row-gap:12px!important}.gr-xxl-4{row-gap:16px!important}.gr-xxl-5{row-gap:20px!important}.gr-xxl-6{row-gap:24px!important}.gr-xxl-7{row-gap:28px!important}.gr-xxl-8{row-gap:32px!important}.gr-xxl-9{row-gap:36px!important}.gr-xxl-10{row-gap:40px!important}.gr-xxl-11{row-gap:44px!important}.gr-xxl-12{row-gap:48px!important}.gr-xxl-13{row-gap:52px!important}.gr-xxl-14{row-gap:56px!important}.gr-xxl-15{row-gap:60px!important}.gr-xxl-16{row-gap:64px!important}.gr-xxl-auto{row-gap:auto!important}.gc-xxl-0{column-gap:0px!important}.gc-xxl-1{column-gap:4px!important}.gc-xxl-2{column-gap:8px!important}.gc-xxl-3{column-gap:12px!important}.gc-xxl-4{column-gap:16px!important}.gc-xxl-5{column-gap:20px!important}.gc-xxl-6{column-gap:24px!important}.gc-xxl-7{column-gap:28px!important}.gc-xxl-8{column-gap:32px!important}.gc-xxl-9{column-gap:36px!important}.gc-xxl-10{column-gap:40px!important}.gc-xxl-11{column-gap:44px!important}.gc-xxl-12{column-gap:48px!important}.gc-xxl-13{column-gap:52px!important}.gc-xxl-14{column-gap:56px!important}.gc-xxl-15{column-gap:60px!important}.gc-xxl-16{column-gap:64px!important}.gc-xxl-auto{column-gap:auto!important}.ma-xxl-0{margin:0!important}.ma-xxl-1{margin:4px!important}.ma-xxl-2{margin:8px!important}.ma-xxl-3{margin:12px!important}.ma-xxl-4{margin:16px!important}.ma-xxl-5{margin:20px!important}.ma-xxl-6{margin:24px!important}.ma-xxl-7{margin:28px!important}.ma-xxl-8{margin:32px!important}.ma-xxl-9{margin:36px!important}.ma-xxl-10{margin:40px!important}.ma-xxl-11{margin:44px!important}.ma-xxl-12{margin:48px!important}.ma-xxl-13{margin:52px!important}.ma-xxl-14{margin:56px!important}.ma-xxl-15{margin:60px!important}.ma-xxl-16{margin:64px!important}.ma-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:4px!important;margin-left:4px!important}.mx-xxl-2{margin-right:8px!important;margin-left:8px!important}.mx-xxl-3{margin-right:12px!important;margin-left:12px!important}.mx-xxl-4{margin-right:16px!important;margin-left:16px!important}.mx-xxl-5{margin-right:20px!important;margin-left:20px!important}.mx-xxl-6{margin-right:24px!important;margin-left:24px!important}.mx-xxl-7{margin-right:28px!important;margin-left:28px!important}.mx-xxl-8{margin-right:32px!important;margin-left:32px!important}.mx-xxl-9{margin-right:36px!important;margin-left:36px!important}.mx-xxl-10{margin-right:40px!important;margin-left:40px!important}.mx-xxl-11{margin-right:44px!important;margin-left:44px!important}.mx-xxl-12{margin-right:48px!important;margin-left:48px!important}.mx-xxl-13{margin-right:52px!important;margin-left:52px!important}.mx-xxl-14{margin-right:56px!important;margin-left:56px!important}.mx-xxl-15{margin-right:60px!important;margin-left:60px!important}.mx-xxl-16{margin-right:64px!important;margin-left:64px!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xxl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xxl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xxl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xxl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xxl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xxl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xxl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xxl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xxl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xxl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xxl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xxl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xxl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xxl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xxl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:4px!important}.mt-xxl-2{margin-top:8px!important}.mt-xxl-3{margin-top:12px!important}.mt-xxl-4{margin-top:16px!important}.mt-xxl-5{margin-top:20px!important}.mt-xxl-6{margin-top:24px!important}.mt-xxl-7{margin-top:28px!important}.mt-xxl-8{margin-top:32px!important}.mt-xxl-9{margin-top:36px!important}.mt-xxl-10{margin-top:40px!important}.mt-xxl-11{margin-top:44px!important}.mt-xxl-12{margin-top:48px!important}.mt-xxl-13{margin-top:52px!important}.mt-xxl-14{margin-top:56px!important}.mt-xxl-15{margin-top:60px!important}.mt-xxl-16{margin-top:64px!important}.mt-xxl-auto{margin-top:auto!important}.mr-xxl-0{margin-right:0!important}.mr-xxl-1{margin-right:4px!important}.mr-xxl-2{margin-right:8px!important}.mr-xxl-3{margin-right:12px!important}.mr-xxl-4{margin-right:16px!important}.mr-xxl-5{margin-right:20px!important}.mr-xxl-6{margin-right:24px!important}.mr-xxl-7{margin-right:28px!important}.mr-xxl-8{margin-right:32px!important}.mr-xxl-9{margin-right:36px!important}.mr-xxl-10{margin-right:40px!important}.mr-xxl-11{margin-right:44px!important}.mr-xxl-12{margin-right:48px!important}.mr-xxl-13{margin-right:52px!important}.mr-xxl-14{margin-right:56px!important}.mr-xxl-15{margin-right:60px!important}.mr-xxl-16{margin-right:64px!important}.mr-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:4px!important}.mb-xxl-2{margin-bottom:8px!important}.mb-xxl-3{margin-bottom:12px!important}.mb-xxl-4{margin-bottom:16px!important}.mb-xxl-5{margin-bottom:20px!important}.mb-xxl-6{margin-bottom:24px!important}.mb-xxl-7{margin-bottom:28px!important}.mb-xxl-8{margin-bottom:32px!important}.mb-xxl-9{margin-bottom:36px!important}.mb-xxl-10{margin-bottom:40px!important}.mb-xxl-11{margin-bottom:44px!important}.mb-xxl-12{margin-bottom:48px!important}.mb-xxl-13{margin-bottom:52px!important}.mb-xxl-14{margin-bottom:56px!important}.mb-xxl-15{margin-bottom:60px!important}.mb-xxl-16{margin-bottom:64px!important}.mb-xxl-auto{margin-bottom:auto!important}.ml-xxl-0{margin-left:0!important}.ml-xxl-1{margin-left:4px!important}.ml-xxl-2{margin-left:8px!important}.ml-xxl-3{margin-left:12px!important}.ml-xxl-4{margin-left:16px!important}.ml-xxl-5{margin-left:20px!important}.ml-xxl-6{margin-left:24px!important}.ml-xxl-7{margin-left:28px!important}.ml-xxl-8{margin-left:32px!important}.ml-xxl-9{margin-left:36px!important}.ml-xxl-10{margin-left:40px!important}.ml-xxl-11{margin-left:44px!important}.ml-xxl-12{margin-left:48px!important}.ml-xxl-13{margin-left:52px!important}.ml-xxl-14{margin-left:56px!important}.ml-xxl-15{margin-left:60px!important}.ml-xxl-16{margin-left:64px!important}.ml-xxl-auto{margin-left:auto!important}.ms-xxl-0{margin-inline-start:0px!important}.ms-xxl-1{margin-inline-start:4px!important}.ms-xxl-2{margin-inline-start:8px!important}.ms-xxl-3{margin-inline-start:12px!important}.ms-xxl-4{margin-inline-start:16px!important}.ms-xxl-5{margin-inline-start:20px!important}.ms-xxl-6{margin-inline-start:24px!important}.ms-xxl-7{margin-inline-start:28px!important}.ms-xxl-8{margin-inline-start:32px!important}.ms-xxl-9{margin-inline-start:36px!important}.ms-xxl-10{margin-inline-start:40px!important}.ms-xxl-11{margin-inline-start:44px!important}.ms-xxl-12{margin-inline-start:48px!important}.ms-xxl-13{margin-inline-start:52px!important}.ms-xxl-14{margin-inline-start:56px!important}.ms-xxl-15{margin-inline-start:60px!important}.ms-xxl-16{margin-inline-start:64px!important}.ms-xxl-auto{margin-inline-start:auto!important}.me-xxl-0{margin-inline-end:0px!important}.me-xxl-1{margin-inline-end:4px!important}.me-xxl-2{margin-inline-end:8px!important}.me-xxl-3{margin-inline-end:12px!important}.me-xxl-4{margin-inline-end:16px!important}.me-xxl-5{margin-inline-end:20px!important}.me-xxl-6{margin-inline-end:24px!important}.me-xxl-7{margin-inline-end:28px!important}.me-xxl-8{margin-inline-end:32px!important}.me-xxl-9{margin-inline-end:36px!important}.me-xxl-10{margin-inline-end:40px!important}.me-xxl-11{margin-inline-end:44px!important}.me-xxl-12{margin-inline-end:48px!important}.me-xxl-13{margin-inline-end:52px!important}.me-xxl-14{margin-inline-end:56px!important}.me-xxl-15{margin-inline-end:60px!important}.me-xxl-16{margin-inline-end:64px!important}.me-xxl-auto{margin-inline-end:auto!important}.ma-xxl-n1{margin:-4px!important}.ma-xxl-n2{margin:-8px!important}.ma-xxl-n3{margin:-12px!important}.ma-xxl-n4{margin:-16px!important}.ma-xxl-n5{margin:-20px!important}.ma-xxl-n6{margin:-24px!important}.ma-xxl-n7{margin:-28px!important}.ma-xxl-n8{margin:-32px!important}.ma-xxl-n9{margin:-36px!important}.ma-xxl-n10{margin:-40px!important}.ma-xxl-n11{margin:-44px!important}.ma-xxl-n12{margin:-48px!important}.ma-xxl-n13{margin:-52px!important}.ma-xxl-n14{margin:-56px!important}.ma-xxl-n15{margin:-60px!important}.ma-xxl-n16{margin:-64px!important}.mx-xxl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xxl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xxl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xxl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xxl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xxl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xxl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xxl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xxl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xxl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xxl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xxl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xxl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xxl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xxl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xxl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xxl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xxl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xxl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xxl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xxl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xxl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xxl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xxl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xxl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xxl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xxl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xxl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xxl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xxl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xxl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xxl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xxl-n1{margin-top:-4px!important}.mt-xxl-n2{margin-top:-8px!important}.mt-xxl-n3{margin-top:-12px!important}.mt-xxl-n4{margin-top:-16px!important}.mt-xxl-n5{margin-top:-20px!important}.mt-xxl-n6{margin-top:-24px!important}.mt-xxl-n7{margin-top:-28px!important}.mt-xxl-n8{margin-top:-32px!important}.mt-xxl-n9{margin-top:-36px!important}.mt-xxl-n10{margin-top:-40px!important}.mt-xxl-n11{margin-top:-44px!important}.mt-xxl-n12{margin-top:-48px!important}.mt-xxl-n13{margin-top:-52px!important}.mt-xxl-n14{margin-top:-56px!important}.mt-xxl-n15{margin-top:-60px!important}.mt-xxl-n16{margin-top:-64px!important}.mr-xxl-n1{margin-right:-4px!important}.mr-xxl-n2{margin-right:-8px!important}.mr-xxl-n3{margin-right:-12px!important}.mr-xxl-n4{margin-right:-16px!important}.mr-xxl-n5{margin-right:-20px!important}.mr-xxl-n6{margin-right:-24px!important}.mr-xxl-n7{margin-right:-28px!important}.mr-xxl-n8{margin-right:-32px!important}.mr-xxl-n9{margin-right:-36px!important}.mr-xxl-n10{margin-right:-40px!important}.mr-xxl-n11{margin-right:-44px!important}.mr-xxl-n12{margin-right:-48px!important}.mr-xxl-n13{margin-right:-52px!important}.mr-xxl-n14{margin-right:-56px!important}.mr-xxl-n15{margin-right:-60px!important}.mr-xxl-n16{margin-right:-64px!important}.mb-xxl-n1{margin-bottom:-4px!important}.mb-xxl-n2{margin-bottom:-8px!important}.mb-xxl-n3{margin-bottom:-12px!important}.mb-xxl-n4{margin-bottom:-16px!important}.mb-xxl-n5{margin-bottom:-20px!important}.mb-xxl-n6{margin-bottom:-24px!important}.mb-xxl-n7{margin-bottom:-28px!important}.mb-xxl-n8{margin-bottom:-32px!important}.mb-xxl-n9{margin-bottom:-36px!important}.mb-xxl-n10{margin-bottom:-40px!important}.mb-xxl-n11{margin-bottom:-44px!important}.mb-xxl-n12{margin-bottom:-48px!important}.mb-xxl-n13{margin-bottom:-52px!important}.mb-xxl-n14{margin-bottom:-56px!important}.mb-xxl-n15{margin-bottom:-60px!important}.mb-xxl-n16{margin-bottom:-64px!important}.ml-xxl-n1{margin-left:-4px!important}.ml-xxl-n2{margin-left:-8px!important}.ml-xxl-n3{margin-left:-12px!important}.ml-xxl-n4{margin-left:-16px!important}.ml-xxl-n5{margin-left:-20px!important}.ml-xxl-n6{margin-left:-24px!important}.ml-xxl-n7{margin-left:-28px!important}.ml-xxl-n8{margin-left:-32px!important}.ml-xxl-n9{margin-left:-36px!important}.ml-xxl-n10{margin-left:-40px!important}.ml-xxl-n11{margin-left:-44px!important}.ml-xxl-n12{margin-left:-48px!important}.ml-xxl-n13{margin-left:-52px!important}.ml-xxl-n14{margin-left:-56px!important}.ml-xxl-n15{margin-left:-60px!important}.ml-xxl-n16{margin-left:-64px!important}.ms-xxl-n1{margin-inline-start:-4px!important}.ms-xxl-n2{margin-inline-start:-8px!important}.ms-xxl-n3{margin-inline-start:-12px!important}.ms-xxl-n4{margin-inline-start:-16px!important}.ms-xxl-n5{margin-inline-start:-20px!important}.ms-xxl-n6{margin-inline-start:-24px!important}.ms-xxl-n7{margin-inline-start:-28px!important}.ms-xxl-n8{margin-inline-start:-32px!important}.ms-xxl-n9{margin-inline-start:-36px!important}.ms-xxl-n10{margin-inline-start:-40px!important}.ms-xxl-n11{margin-inline-start:-44px!important}.ms-xxl-n12{margin-inline-start:-48px!important}.ms-xxl-n13{margin-inline-start:-52px!important}.ms-xxl-n14{margin-inline-start:-56px!important}.ms-xxl-n15{margin-inline-start:-60px!important}.ms-xxl-n16{margin-inline-start:-64px!important}.me-xxl-n1{margin-inline-end:-4px!important}.me-xxl-n2{margin-inline-end:-8px!important}.me-xxl-n3{margin-inline-end:-12px!important}.me-xxl-n4{margin-inline-end:-16px!important}.me-xxl-n5{margin-inline-end:-20px!important}.me-xxl-n6{margin-inline-end:-24px!important}.me-xxl-n7{margin-inline-end:-28px!important}.me-xxl-n8{margin-inline-end:-32px!important}.me-xxl-n9{margin-inline-end:-36px!important}.me-xxl-n10{margin-inline-end:-40px!important}.me-xxl-n11{margin-inline-end:-44px!important}.me-xxl-n12{margin-inline-end:-48px!important}.me-xxl-n13{margin-inline-end:-52px!important}.me-xxl-n14{margin-inline-end:-56px!important}.me-xxl-n15{margin-inline-end:-60px!important}.me-xxl-n16{margin-inline-end:-64px!important}.pa-xxl-0{padding:0!important}.pa-xxl-1{padding:4px!important}.pa-xxl-2{padding:8px!important}.pa-xxl-3{padding:12px!important}.pa-xxl-4{padding:16px!important}.pa-xxl-5{padding:20px!important}.pa-xxl-6{padding:24px!important}.pa-xxl-7{padding:28px!important}.pa-xxl-8{padding:32px!important}.pa-xxl-9{padding:36px!important}.pa-xxl-10{padding:40px!important}.pa-xxl-11{padding:44px!important}.pa-xxl-12{padding:48px!important}.pa-xxl-13{padding:52px!important}.pa-xxl-14{padding:56px!important}.pa-xxl-15{padding:60px!important}.pa-xxl-16{padding:64px!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:4px!important;padding-left:4px!important}.px-xxl-2{padding-right:8px!important;padding-left:8px!important}.px-xxl-3{padding-right:12px!important;padding-left:12px!important}.px-xxl-4{padding-right:16px!important;padding-left:16px!important}.px-xxl-5{padding-right:20px!important;padding-left:20px!important}.px-xxl-6{padding-right:24px!important;padding-left:24px!important}.px-xxl-7{padding-right:28px!important;padding-left:28px!important}.px-xxl-8{padding-right:32px!important;padding-left:32px!important}.px-xxl-9{padding-right:36px!important;padding-left:36px!important}.px-xxl-10{padding-right:40px!important;padding-left:40px!important}.px-xxl-11{padding-right:44px!important;padding-left:44px!important}.px-xxl-12{padding-right:48px!important;padding-left:48px!important}.px-xxl-13{padding-right:52px!important;padding-left:52px!important}.px-xxl-14{padding-right:56px!important;padding-left:56px!important}.px-xxl-15{padding-right:60px!important;padding-left:60px!important}.px-xxl-16{padding-right:64px!important;padding-left:64px!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xxl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xxl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xxl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xxl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xxl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xxl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xxl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xxl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xxl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xxl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xxl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xxl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xxl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xxl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xxl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:4px!important}.pt-xxl-2{padding-top:8px!important}.pt-xxl-3{padding-top:12px!important}.pt-xxl-4{padding-top:16px!important}.pt-xxl-5{padding-top:20px!important}.pt-xxl-6{padding-top:24px!important}.pt-xxl-7{padding-top:28px!important}.pt-xxl-8{padding-top:32px!important}.pt-xxl-9{padding-top:36px!important}.pt-xxl-10{padding-top:40px!important}.pt-xxl-11{padding-top:44px!important}.pt-xxl-12{padding-top:48px!important}.pt-xxl-13{padding-top:52px!important}.pt-xxl-14{padding-top:56px!important}.pt-xxl-15{padding-top:60px!important}.pt-xxl-16{padding-top:64px!important}.pr-xxl-0{padding-right:0!important}.pr-xxl-1{padding-right:4px!important}.pr-xxl-2{padding-right:8px!important}.pr-xxl-3{padding-right:12px!important}.pr-xxl-4{padding-right:16px!important}.pr-xxl-5{padding-right:20px!important}.pr-xxl-6{padding-right:24px!important}.pr-xxl-7{padding-right:28px!important}.pr-xxl-8{padding-right:32px!important}.pr-xxl-9{padding-right:36px!important}.pr-xxl-10{padding-right:40px!important}.pr-xxl-11{padding-right:44px!important}.pr-xxl-12{padding-right:48px!important}.pr-xxl-13{padding-right:52px!important}.pr-xxl-14{padding-right:56px!important}.pr-xxl-15{padding-right:60px!important}.pr-xxl-16{padding-right:64px!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:4px!important}.pb-xxl-2{padding-bottom:8px!important}.pb-xxl-3{padding-bottom:12px!important}.pb-xxl-4{padding-bottom:16px!important}.pb-xxl-5{padding-bottom:20px!important}.pb-xxl-6{padding-bottom:24px!important}.pb-xxl-7{padding-bottom:28px!important}.pb-xxl-8{padding-bottom:32px!important}.pb-xxl-9{padding-bottom:36px!important}.pb-xxl-10{padding-bottom:40px!important}.pb-xxl-11{padding-bottom:44px!important}.pb-xxl-12{padding-bottom:48px!important}.pb-xxl-13{padding-bottom:52px!important}.pb-xxl-14{padding-bottom:56px!important}.pb-xxl-15{padding-bottom:60px!important}.pb-xxl-16{padding-bottom:64px!important}.pl-xxl-0{padding-left:0!important}.pl-xxl-1{padding-left:4px!important}.pl-xxl-2{padding-left:8px!important}.pl-xxl-3{padding-left:12px!important}.pl-xxl-4{padding-left:16px!important}.pl-xxl-5{padding-left:20px!important}.pl-xxl-6{padding-left:24px!important}.pl-xxl-7{padding-left:28px!important}.pl-xxl-8{padding-left:32px!important}.pl-xxl-9{padding-left:36px!important}.pl-xxl-10{padding-left:40px!important}.pl-xxl-11{padding-left:44px!important}.pl-xxl-12{padding-left:48px!important}.pl-xxl-13{padding-left:52px!important}.pl-xxl-14{padding-left:56px!important}.pl-xxl-15{padding-left:60px!important}.pl-xxl-16{padding-left:64px!important}.ps-xxl-0{padding-inline-start:0px!important}.ps-xxl-1{padding-inline-start:4px!important}.ps-xxl-2{padding-inline-start:8px!important}.ps-xxl-3{padding-inline-start:12px!important}.ps-xxl-4{padding-inline-start:16px!important}.ps-xxl-5{padding-inline-start:20px!important}.ps-xxl-6{padding-inline-start:24px!important}.ps-xxl-7{padding-inline-start:28px!important}.ps-xxl-8{padding-inline-start:32px!important}.ps-xxl-9{padding-inline-start:36px!important}.ps-xxl-10{padding-inline-start:40px!important}.ps-xxl-11{padding-inline-start:44px!important}.ps-xxl-12{padding-inline-start:48px!important}.ps-xxl-13{padding-inline-start:52px!important}.ps-xxl-14{padding-inline-start:56px!important}.ps-xxl-15{padding-inline-start:60px!important}.ps-xxl-16{padding-inline-start:64px!important}.pe-xxl-0{padding-inline-end:0px!important}.pe-xxl-1{padding-inline-end:4px!important}.pe-xxl-2{padding-inline-end:8px!important}.pe-xxl-3{padding-inline-end:12px!important}.pe-xxl-4{padding-inline-end:16px!important}.pe-xxl-5{padding-inline-end:20px!important}.pe-xxl-6{padding-inline-end:24px!important}.pe-xxl-7{padding-inline-end:28px!important}.pe-xxl-8{padding-inline-end:32px!important}.pe-xxl-9{padding-inline-end:36px!important}.pe-xxl-10{padding-inline-end:40px!important}.pe-xxl-11{padding-inline-end:44px!important}.pe-xxl-12{padding-inline-end:48px!important}.pe-xxl-13{padding-inline-end:52px!important}.pe-xxl-14{padding-inline-end:56px!important}.pe-xxl-15{padding-inline-end:60px!important}.pe-xxl-16{padding-inline-end:64px!important}.text-xxl-left{text-align:left!important}.text-xxl-right{text-align:right!important}.text-xxl-center{text-align:center!important}.text-xxl-justify{text-align:justify!important}.text-xxl-start{text-align:start!important}.text-xxl-end{text-align:end!important}.text-xxl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xxl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xxl-auto{height:auto!important}.h-xxl-screen{height:100vh!important}.h-xxl-0{height:0!important}.h-xxl-25{height:25%!important}.h-xxl-50{height:50%!important}.h-xxl-75{height:75%!important}.h-xxl-100{height:100%!important}.w-xxl-auto{width:auto!important}.w-xxl-0{width:0!important}.w-xxl-25{width:25%!important}.w-xxl-33{width:33%!important}.w-xxl-50{width:50%!important}.w-xxl-66{width:66%!important}.w-xxl-75{width:75%!important}.w-xxl-100{width:100%!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.float-print-none{float:none!important}.float-print-left{float:left!important}.float-print-right{float:right!important}.v-locale--is-rtl .float-print-end{float:left!important}.v-locale--is-rtl .float-print-start,.v-locale--is-ltr .float-print-end{float:right!important}.v-locale--is-ltr .float-print-start{float:left!important}} diff --git a/zt_backend/dist_app/assets/webfontloader-8d8301d2.js b/zt_backend/dist_app/assets/webfontloader-e973823d.js similarity index 99% rename from zt_backend/dist_app/assets/webfontloader-8d8301d2.js rename to zt_backend/dist_app/assets/webfontloader-e973823d.js index 5962f1cb..eef078f2 100644 --- a/zt_backend/dist_app/assets/webfontloader-8d8301d2.js +++ b/zt_backend/dist_app/assets/webfontloader-e973823d.js @@ -1 +1 @@ -import{g as Ft}from"./index-a5f2e252.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f Zero-True - - + + diff --git a/zt_backend/dist_dev/assets/app-04fe456a.js b/zt_backend/dist_dev/assets/app-04fe456a.js deleted file mode 100644 index c67b110d..00000000 --- a/zt_backend/dist_dev/assets/app-04fe456a.js +++ /dev/null @@ -1 +0,0 @@ -import{C as n,_ as r,r as l,o as c,c as a}from"./index-b4ad4230.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:n},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const o=l("code-cell-manager");return c(),a(o,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/app-67a8da19.js b/zt_backend/dist_dev/assets/app-67a8da19.js new file mode 100644 index 00000000..0cb498a6 --- /dev/null +++ b/zt_backend/dist_dev/assets/app-67a8da19.js @@ -0,0 +1 @@ +import{C as o,_ as r,r as l,o as c,c as u}from"./index-1cb69988.js";const a={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,s,e,C,i,m){const n=l("code-cell-manager");return c(),u(n,{notebook:e.notebook,completions:e.completions,lintResults:e.lintResults,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","lintResults","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(a,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/index-1be3a95e.js b/zt_backend/dist_dev/assets/index-1be3a95e.js deleted file mode 100644 index 94a73a86..00000000 --- a/zt_backend/dist_dev/assets/index-1be3a95e.js +++ /dev/null @@ -1 +0,0 @@ -import{C as o,_ as r,r as l,o as c,c as a}from"./index-b4ad4230.js";const u={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,C,e,m,s,i){const n=l("code-cell-manager");return c(),a(n,{notebook:e.notebook,completions:e.completions,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(u,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_app/assets/index-a5f2e252.js b/zt_backend/dist_dev/assets/index-1cb69988.js similarity index 89% rename from zt_backend/dist_app/assets/index-a5f2e252.js rename to zt_backend/dist_dev/assets/index-1cb69988.js index ca259e6c..f6cfe8c2 100644 --- a/zt_backend/dist_app/assets/index-a5f2e252.js +++ b/zt_backend/dist_dev/assets/index-1cb69988.js @@ -1,13 +1,13 @@ -var f3e=Object.defineProperty;var d3e=(t,e,o)=>e in t?f3e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var pu=(t,e,o)=>(d3e(t,typeof e!="symbol"?e+"":e,o),o),h3e=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var uie=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var fQ=(t,e,o)=>(h3e(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))f(E);new MutationObserver(E=>{for(const d of E)if(d.type==="childList")for(const s of d.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function o(E){const d={};return E.integrity&&(d.integrity=E.integrity),E.referrerPolicy&&(d.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?d.credentials="include":E.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(E){if(E.ep)return;E.ep=!0;const d=o(E);fetch(E.href,d)}})();function l1e(t,e){return function(){return t.apply(e,arguments)}}const{toString:p3e}=Object.prototype,{getPrototypeOf:Ale}=Object,MZ=(t=>e=>{const o=p3e.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Mx=t=>(t=t.toLowerCase(),e=>MZ(e)===t),EZ=t=>e=>typeof e===t,{isArray:wM}=Array,hI=EZ("undefined");function m3e(t){return t!==null&&!hI(t)&&t.constructor!==null&&!hI(t.constructor)&&Jv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const c1e=Mx("ArrayBuffer");function g3e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&c1e(t.buffer),e}const v3e=EZ("string"),Jv=EZ("function"),u1e=EZ("number"),PZ=t=>t!==null&&typeof t=="object",y3e=t=>t===!0||t===!1,eH=t=>{if(MZ(t)!=="object")return!1;const e=Ale(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},b3e=Mx("Date"),x3e=Mx("File"),_3e=Mx("Blob"),w3e=Mx("FileList"),O3e=t=>PZ(t)&&Jv(t.pipe),S3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jv(t.append)&&((e=MZ(t))==="formdata"||e==="object"&&Jv(t.toString)&&t.toString()==="[object FormData]"))},k3e=Mx("URLSearchParams"),[T3e,C3e,A3e,M3e]=["ReadableStream","Request","Response","Headers"].map(Mx),E3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,E;if(typeof t!="object"&&(t=[t]),wM(t))for(f=0,E=t.length;f0;)if(E=o[f],e===E.toLowerCase())return E;return null}const DT=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),d1e=t=>!hI(t)&&t!==DT;function Cae(){const{caseless:t}=d1e(this)&&this||{},e={},o=(f,E)=>{const d=t&&f1e(e,E)||E;eH(e[d])&&eH(f)?e[d]=Cae(e[d],f):eH(f)?e[d]=Cae({},f):wM(f)?e[d]=f.slice():e[d]=f};for(let f=0,E=arguments.length;f(nD(e,(E,d)=>{o&&Jv(E)?t[d]=l1e(E,o):t[d]=E},{allOwnKeys:f}),t),R3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),L3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},I3e=(t,e,o,f)=>{let E,d,s;const n={};if(e=e||{},t==null)return e;do{for(E=Object.getOwnPropertyNames(t),d=E.length;d-- >0;)s=E[d],(!f||f(s,t,e))&&!n[s]&&(e[s]=t[s],n[s]=!0);t=o!==!1&&Ale(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},D3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},B3e=t=>{if(!t)return null;if(wM(t))return t;let e=t.length;if(!u1e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},z3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ale(Uint8Array)),N3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let E;for(;(E=f.next())&&!E.done;){const d=E.value;e.call(t,d[0],d[1])}},F3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},$3e=Mx("HTMLFormElement"),V3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,E){return f.toUpperCase()+E}),Ade=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),U3e=Mx("RegExp"),h1e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};nD(o,(E,d)=>{let s;(s=e(E,d,t))!==!1&&(f[d]=s||E)}),Object.defineProperties(t,f)},j3e=t=>{h1e(t,(e,o)=>{if(Jv(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jv(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Q3e=(t,e)=>{const o={},f=E=>{E.forEach(d=>{o[d]=!0})};return wM(t)?f(t):f(String(t).split(e)),o},H3e=()=>{},Z3e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,fie="abcdefghijklmnopqrstuvwxyz",Mde="0123456789",p1e={DIGIT:Mde,ALPHA:fie,ALPHA_DIGIT:fie+fie.toUpperCase()+Mde},q3e=(t=16,e=p1e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function W3e(t){return!!(t&&Jv(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Y3e=t=>{const e=new Array(10),o=(f,E)=>{if(PZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[E]=f;const d=wM(f)?[]:{};return nD(f,(s,n)=>{const u=o(s,E+1);!hI(u)&&(d[n]=u)}),e[E]=void 0,d}}return f};return o(t,0)},X3e=Mx("AsyncFunction"),G3e=t=>t&&(PZ(t)||Jv(t))&&Jv(t.then)&&Jv(t.catch),m1e=((t,e)=>t?setImmediate:e?((o,f)=>(DT.addEventListener("message",({source:E,data:d})=>{E===DT&&d===o&&f.length&&f.shift()()},!1),E=>{f.push(E),DT.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Jv(DT.postMessage)),K3e=typeof queueMicrotask<"u"?queueMicrotask.bind(DT):typeof process<"u"&&process.nextTick||m1e,ci={isArray:wM,isArrayBuffer:c1e,isBuffer:m3e,isFormData:S3e,isArrayBufferView:g3e,isString:v3e,isNumber:u1e,isBoolean:y3e,isObject:PZ,isPlainObject:eH,isReadableStream:T3e,isRequest:C3e,isResponse:A3e,isHeaders:M3e,isUndefined:hI,isDate:b3e,isFile:x3e,isBlob:_3e,isRegExp:U3e,isFunction:Jv,isStream:O3e,isURLSearchParams:k3e,isTypedArray:z3e,isFileList:w3e,forEach:nD,merge:Cae,extend:P3e,trim:E3e,stripBOM:R3e,inherits:L3e,toFlatObject:I3e,kindOf:MZ,kindOfTest:Mx,endsWith:D3e,toArray:B3e,forEachEntry:N3e,matchAll:F3e,isHTMLForm:$3e,hasOwnProperty:Ade,hasOwnProp:Ade,reduceDescriptors:h1e,freezeMethods:j3e,toObjectSet:Q3e,toCamelCase:V3e,noop:H3e,toFiniteNumber:Z3e,findKey:f1e,global:DT,isContextDefined:d1e,ALPHABET:p1e,generateString:q3e,isSpecCompliantForm:W3e,toJSONObject:Y3e,isAsyncFn:X3e,isThenable:G3e,setImmediate:m1e,asap:K3e};function sc(t,e,o,f,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),E&&(this.response=E)}ci.inherits(sc,Error,{toJSON:function(){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:ci.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const g1e=sc.prototype,v1e={};["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(t=>{v1e[t]={value:t}});Object.defineProperties(sc,v1e);Object.defineProperty(g1e,"isAxiosError",{value:!0});sc.from=(t,e,o,f,E,d)=>{const s=Object.create(g1e);return ci.toFlatObject(t,s,function(u){return u!==Error.prototype},n=>n!=="isAxiosError"),sc.call(s,t.message,e,o,f,E),s.cause=t,s.name=t.name,d&&Object.assign(s,d),s};const J3e=null;function Aae(t){return ci.isPlainObject(t)||ci.isArray(t)}function y1e(t){return ci.endsWith(t,"[]")?t.slice(0,-2):t}function Ede(t,e,o){return t?t.concat(e).map(function(E,d){return E=y1e(E),!o&&d?"["+E+"]":E}).join(o?".":""):e}function eSe(t){return ci.isArray(t)&&!t.some(Aae)}const tSe=ci.toFlatObject(ci,{},null,function(e){return/^is[A-Z]/.test(e)});function RZ(t,e,o){if(!ci.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ci.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,c){return!ci.isUndefined(c[a])});const f=o.metaTokens,E=o.visitor||i,d=o.dots,s=o.indexes,u=(o.Blob||typeof Blob<"u"&&Blob)&&ci.isSpecCompliantForm(e);if(!ci.isFunction(E))throw new TypeError("visitor must be a function");function b(m){if(m===null)return"";if(ci.isDate(m))return m.toISOString();if(!u&&ci.isBlob(m))throw new sc("Blob is not supported. Use a Buffer instead.");return ci.isArrayBuffer(m)||ci.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function i(m,a,c){let h=m;if(m&&!c&&typeof m=="object"){if(ci.endsWith(a,"{}"))a=f?a:a.slice(0,-2),m=JSON.stringify(m);else if(ci.isArray(m)&&eSe(m)||(ci.isFileList(m)||ci.endsWith(a,"[]"))&&(h=ci.toArray(m)))return a=y1e(a),h.forEach(function(v,_){!(ci.isUndefined(v)||v===null)&&e.append(s===!0?Ede([a],_,d):s===null?a:a+"[]",b(v))}),!1}return Aae(m)?!0:(e.append(Ede(c,a,d),b(m)),!1)}const S=[],w=Object.assign(tSe,{defaultVisitor:i,convertValue:b,isVisitable:Aae});function y(m,a){if(!ci.isUndefined(m)){if(S.indexOf(m)!==-1)throw Error("Circular reference detected in "+a.join("."));S.push(m),ci.forEach(m,function(h,p){(!(ci.isUndefined(h)||h===null)&&E.call(e,h,ci.isString(p)?p.trim():p,a,w))===!0&&y(h,a?a.concat(p):[p])}),S.pop()}}if(!ci.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Pde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function Mle(t,e){this._pairs=[],t&&RZ(t,this,e)}const b1e=Mle.prototype;b1e.append=function(e,o){this._pairs.push([e,o])};b1e.toString=function(e){const o=e?function(f){return e.call(this,f,Pde)}:Pde;return this._pairs.map(function(E){return o(E[0])+"="+o(E[1])},"").join("&")};function nSe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x1e(t,e,o){if(!e)return t;const f=o&&o.encode||nSe,E=o&&o.serialize;let d;if(E?d=E(e,o):d=ci.isURLSearchParams(e)?e.toString():new Mle(e,o).toString(f),d){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class rSe{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ci.forEach(this.handlers,function(f){f!==null&&e(f)})}}const Rde=rSe,_1e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oSe=typeof URLSearchParams<"u"?URLSearchParams:Mle,iSe=typeof FormData<"u"?FormData:null,aSe=typeof Blob<"u"?Blob:null,sSe={isBrowser:!0,classes:{URLSearchParams:oSe,FormData:iSe,Blob:aSe},protocols:["http","https","file","blob","url","data"]},Ele=typeof window<"u"&&typeof document<"u",lSe=(t=>Ele&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),cSe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),uSe=Ele&&window.location.href||"http://localhost",fSe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ele,hasStandardBrowserEnv:lSe,hasStandardBrowserWebWorkerEnv:cSe,origin:uSe},Symbol.toStringTag,{value:"Module"})),_x={...fSe,...sSe};function dSe(t,e){return RZ(t,new _x.classes.URLSearchParams,Object.assign({visitor:function(o,f,E,d){return _x.isNode&&ci.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function hSe(t){return ci.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pSe(t){const e={},o=Object.keys(t);let f;const E=o.length;let d;for(f=0;f=o.length;return s=!s&&ci.isArray(E)?E.length:s,u?(ci.hasOwnProp(E,s)?E[s]=[E[s],f]:E[s]=f,!n):((!E[s]||!ci.isObject(E[s]))&&(E[s]=[]),e(o,f,E[s],d)&&ci.isArray(E[s])&&(E[s]=pSe(E[s])),!n)}if(ci.isFormData(t)&&ci.isFunction(t.entries)){const o={};return ci.forEachEntry(t,(f,E)=>{e(hSe(f),E,o,0)}),o}return null}function mSe(t,e,o){if(ci.isString(t))try{return(e||JSON.parse)(t),ci.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const Ple={transitional:_1e,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const f=o.getContentType()||"",E=f.indexOf("application/json")>-1,d=ci.isObject(e);if(d&&ci.isHTMLForm(e)&&(e=new FormData(e)),ci.isFormData(e))return E?JSON.stringify(w1e(e)):e;if(ci.isArrayBuffer(e)||ci.isBuffer(e)||ci.isStream(e)||ci.isFile(e)||ci.isBlob(e)||ci.isReadableStream(e))return e;if(ci.isArrayBufferView(e))return e.buffer;if(ci.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return dSe(e,this.formSerializer).toString();if((n=ci.isFileList(e))||f.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return RZ(n?{"files[]":e}:e,u&&new u,this.formSerializer)}}return d||E?(o.setContentType("application/json",!1),mSe(e)):e}],transformResponse:[function(e){const o=this.transitional||Ple.transitional,f=o&&o.forcedJSONParsing,E=this.responseType==="json";if(ci.isResponse(e)||ci.isReadableStream(e))return e;if(e&&ci.isString(e)&&(f&&!this.responseType||E)){const s=!(o&&o.silentJSONParsing)&&E;try{return JSON.parse(e)}catch(n){if(s)throw n.name==="SyntaxError"?sc.from(n,sc.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_x.classes.FormData,Blob:_x.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ci.forEach(["delete","get","head","post","put","patch"],t=>{Ple.headers[t]={}});const Rle=Ple,gSe=ci.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"]),vSe=t=>{const e={};let o,f,E;return t&&t.split(` -`).forEach(function(s){E=s.indexOf(":"),o=s.substring(0,E).trim().toLowerCase(),f=s.substring(E+1).trim(),!(!o||e[o]&&gSe[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},Lde=Symbol("internals");function TL(t){return t&&String(t).trim().toLowerCase()}function tH(t){return t===!1||t==null?t:ci.isArray(t)?t.map(tH):String(t)}function ySe(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const bSe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function die(t,e,o,f,E){if(ci.isFunction(f))return f.call(this,e,o);if(E&&(e=o),!!ci.isString(e)){if(ci.isString(f))return e.indexOf(f)!==-1;if(ci.isRegExp(f))return f.test(e)}}function xSe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function _Se(t,e){const o=ci.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(E,d,s){return this[f].call(this,e,E,d,s)},configurable:!0})})}let LZ=class{constructor(e){e&&this.set(e)}set(e,o,f){const E=this;function d(n,u,b){const i=TL(u);if(!i)throw new Error("header name must be a non-empty string");const S=ci.findKey(E,i);(!S||E[S]===void 0||b===!0||b===void 0&&E[S]!==!1)&&(E[S||u]=tH(n))}const s=(n,u)=>ci.forEach(n,(b,i)=>d(b,i,u));if(ci.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(ci.isString(e)&&(e=e.trim())&&!bSe(e))s(vSe(e),o);else if(ci.isHeaders(e))for(const[n,u]of e.entries())d(u,n,f);else e!=null&&d(o,e,f);return this}get(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);if(f){const E=this[f];if(!o)return E;if(o===!0)return ySe(E);if(ci.isFunction(o))return o.call(this,E,f);if(ci.isRegExp(o))return o.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||die(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let E=!1;function d(s){if(s=TL(s),s){const n=ci.findKey(f,s);n&&(!o||die(f,f[n],n,o))&&(delete f[n],E=!0)}}return ci.isArray(e)?e.forEach(d):d(e),E}clear(e){const o=Object.keys(this);let f=o.length,E=!1;for(;f--;){const d=o[f];(!e||die(this,this[d],d,e,!0))&&(delete this[d],E=!0)}return E}normalize(e){const o=this,f={};return ci.forEach(this,(E,d)=>{const s=ci.findKey(f,d);if(s){o[s]=tH(E),delete o[d];return}const n=e?xSe(d):String(d).trim();n!==d&&delete o[d],o[n]=tH(E),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ci.forEach(this,(f,E)=>{f!=null&&f!==!1&&(o[E]=e&&ci.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(E=>f.set(E)),f}static accessor(e){const f=(this[Lde]=this[Lde]={accessors:{}}).accessors,E=this.prototype;function d(s){const n=TL(s);f[n]||(_Se(E,s),f[n]=!0)}return ci.isArray(e)?e.forEach(d):d(e),this}};LZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ci.reduceDescriptors(LZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ci.freezeMethods(LZ);const wx=LZ;function hie(t,e){const o=this||Rle,f=e||o,E=wx.from(f.headers);let d=f.data;return ci.forEach(t,function(n){d=n.call(o,d,E.normalize(),e?e.status:void 0)}),E.normalize(),d}function O1e(t){return!!(t&&t.__CANCEL__)}function OM(t,e,o){sc.call(this,t??"canceled",sc.ERR_CANCELED,e,o),this.name="CanceledError"}ci.inherits(OM,sc,{__CANCEL__:!0});function S1e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new sc("Request failed with status code "+o.status,[sc.ERR_BAD_REQUEST,sc.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function wSe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function OSe(t,e){t=t||10;const o=new Array(t),f=new Array(t);let E=0,d=0,s;return e=e!==void 0?e:1e3,function(u){const b=Date.now(),i=f[d];s||(s=b),o[E]=u,f[E]=b;let S=d,w=0;for(;S!==E;)w+=o[S++],S=S%t;if(E=(E+1)%t,E===d&&(d=(d+1)%t),b-s{o=i,E=null,d&&(clearTimeout(d),d=null),t.apply(null,b)};return[(...b)=>{const i=Date.now(),S=i-o;S>=f?s(b,i):(E=b,d||(d=setTimeout(()=>{d=null,s(E)},f-S)))},()=>E&&s(E)]}const SH=(t,e,o=3)=>{let f=0;const E=OSe(50,250);return SSe(d=>{const s=d.loaded,n=d.lengthComputable?d.total:void 0,u=s-f,b=E(u),i=s<=n;f=s;const S={loaded:s,total:n,progress:n?s/n:void 0,bytes:u,rate:b||void 0,estimated:b&&n&&i?(n-s)/b:void 0,event:d,lengthComputable:n!=null,[e?"download":"upload"]:!0};t(S)},o)},Ide=(t,e)=>{const o=t!=null;return[f=>e[0]({lengthComputable:o,total:t,loaded:f}),e[1]]},Dde=t=>(...e)=>ci.asap(()=>t(...e)),kSe=_x.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function E(d){let s=d;return e&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=E(window.location.href),function(s){const n=ci.isString(s)?E(s):s;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}(),TSe=_x.hasStandardBrowserEnv?{write(t,e,o,f,E,d){const s=[t+"="+encodeURIComponent(e)];ci.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),ci.isString(f)&&s.push("path="+f),ci.isString(E)&&s.push("domain="+E),d===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CSe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ASe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function k1e(t,e){return t&&!CSe(e)?ASe(t,e):e}const Bde=t=>t instanceof wx?{...t}:t;function HT(t,e){e=e||{};const o={};function f(b,i,S){return ci.isPlainObject(b)&&ci.isPlainObject(i)?ci.merge.call({caseless:S},b,i):ci.isPlainObject(i)?ci.merge({},i):ci.isArray(i)?i.slice():i}function E(b,i,S){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b,S)}else return f(b,i,S)}function d(b,i){if(!ci.isUndefined(i))return f(void 0,i)}function s(b,i){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,S){if(S in e)return f(b,i);if(S in t)return f(void 0,b)}const u={url:d,method:d,data:d,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:n,headers:(b,i)=>E(Bde(b),Bde(i),!0)};return ci.forEach(Object.keys(Object.assign({},t,e)),function(i){const S=u[i]||E,w=S(t[i],e[i],i);ci.isUndefined(w)&&S!==n||(o[i]=w)}),o}const T1e=t=>{const e=HT({},t);let{data:o,withXSRFToken:f,xsrfHeaderName:E,xsrfCookieName:d,headers:s,auth:n}=e;e.headers=s=wx.from(s),e.url=x1e(k1e(e.baseURL,e.url),t.params,t.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let u;if(ci.isFormData(o)){if(_x.hasStandardBrowserEnv||_x.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[b,...i]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...i].join("; "))}}if(_x.hasStandardBrowserEnv&&(f&&ci.isFunction(f)&&(f=f(e)),f||f!==!1&&kSe(e.url))){const b=E&&d&&TSe.read(d);b&&s.set(E,b)}return e},MSe=typeof XMLHttpRequest<"u",ESe=MSe&&function(t){return new Promise(function(o,f){const E=T1e(t);let d=E.data;const s=wx.from(E.headers).normalize();let{responseType:n,onUploadProgress:u,onDownloadProgress:b}=E,i,S,w,y,m;function a(){y&&y(),m&&m(),E.cancelToken&&E.cancelToken.unsubscribe(i),E.signal&&E.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;c.open(E.method.toUpperCase(),E.url,!0),c.timeout=E.timeout;function h(){if(!c)return;const v=wx.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),O={data:!n||n==="text"||n==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};S1e(function(x){o(x),a()},function(x){f(x),a()},O),c=null}"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(f(new sc("Request aborted",sc.ECONNABORTED,t,c)),c=null)},c.onerror=function(){f(new sc("Network Error",sc.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let _=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const O=E.transitional||_1e;E.timeoutErrorMessage&&(_=E.timeoutErrorMessage),f(new sc(_,O.clarifyTimeoutError?sc.ETIMEDOUT:sc.ECONNABORTED,t,c)),c=null},d===void 0&&s.setContentType(null),"setRequestHeader"in c&&ci.forEach(s.toJSON(),function(_,O){c.setRequestHeader(O,_)}),ci.isUndefined(E.withCredentials)||(c.withCredentials=!!E.withCredentials),n&&n!=="json"&&(c.responseType=E.responseType),b&&([w,m]=SH(b,!0),c.addEventListener("progress",w)),u&&c.upload&&([S,y]=SH(u),c.upload.addEventListener("progress",S),c.upload.addEventListener("loadend",y)),(E.cancelToken||E.signal)&&(i=v=>{c&&(f(!v||v.type?new OM(null,t,c):v),c.abort(),c=null)},E.cancelToken&&E.cancelToken.subscribe(i),E.signal&&(E.signal.aborted?i():E.signal.addEventListener("abort",i)));const p=wSe(E.url);if(p&&_x.protocols.indexOf(p)===-1){f(new sc("Unsupported protocol "+p+":",sc.ERR_BAD_REQUEST,t));return}c.send(d||null)})},PSe=(t,e)=>{let o=new AbortController,f;const E=function(u){if(!f){f=!0,s();const b=u instanceof Error?u:this.reason;o.abort(b instanceof sc?b:new OM(b instanceof Error?b.message:b))}};let d=e&&setTimeout(()=>{E(new sc(`timeout ${e} of ms exceeded`,sc.ETIMEDOUT))},e);const s=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",E):u.unsubscribe(E))}),t=null)};t.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",E));const{signal:n}=o;return n.unsubscribe=s,[n,()=>{d&&clearTimeout(d),d=null}]},RSe=PSe,LSe=function*(t,e){let o=t.byteLength;if(!e||o{const d=ISe(t,e,E);let s=0,n,u=b=>{n||(n=!0,f&&f(b))};return new ReadableStream({async pull(b){try{const{done:i,value:S}=await d.next();if(i){u(),b.close();return}let w=S.byteLength;if(o){let y=s+=w;o(y)}b.enqueue(new Uint8Array(S))}catch(i){throw u(i),i}},cancel(b){return u(b),d.return()}},{highWaterMark:2})},IZ=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",C1e=IZ&&typeof ReadableStream=="function",Mae=IZ&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),A1e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DSe=C1e&&A1e(()=>{let t=!1;const e=new Request(_x.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Nde=64*1024,Eae=C1e&&A1e(()=>ci.isReadableStream(new Response("").body)),kH={stream:Eae&&(t=>t.body)};IZ&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kH[e]&&(kH[e]=ci.isFunction(t[e])?o=>o[e]():(o,f)=>{throw new sc(`Response type '${e}' is not supported`,sc.ERR_NOT_SUPPORT,f)})})})(new Response);const BSe=async t=>{if(t==null)return 0;if(ci.isBlob(t))return t.size;if(ci.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(ci.isArrayBufferView(t)||ci.isArrayBuffer(t))return t.byteLength;if(ci.isURLSearchParams(t)&&(t=t+""),ci.isString(t))return(await Mae(t)).byteLength},zSe=async(t,e)=>{const o=ci.toFiniteNumber(t.getContentLength());return o??BSe(e)},NSe=IZ&&(async t=>{let{url:e,method:o,data:f,signal:E,cancelToken:d,timeout:s,onDownloadProgress:n,onUploadProgress:u,responseType:b,headers:i,withCredentials:S="same-origin",fetchOptions:w}=T1e(t);b=b?(b+"").toLowerCase():"text";let[y,m]=E||d||s?RSe([E,d],s):[],a,c;const h=()=>{!a&&setTimeout(()=>{y&&y.unsubscribe()}),a=!0};let p;try{if(u&&DSe&&o!=="get"&&o!=="head"&&(p=await zSe(i,f))!==0){let C=new Request(e,{method:"POST",body:f,duplex:"half"}),x;if(ci.isFormData(f)&&(x=C.headers.get("content-type"))&&i.setContentType(x),C.body){const[R,M]=Ide(p,SH(Dde(u)));f=zde(C.body,Nde,R,M,Mae)}}ci.isString(S)||(S=S?"include":"omit"),c=new Request(e,{...w,signal:y,method:o.toUpperCase(),headers:i.normalize().toJSON(),body:f,duplex:"half",credentials:S});let v=await fetch(c);const _=Eae&&(b==="stream"||b==="response");if(Eae&&(n||_)){const C={};["status","statusText","headers"].forEach(T=>{C[T]=v[T]});const x=ci.toFiniteNumber(v.headers.get("content-length")),[R,M]=n&&Ide(x,SH(Dde(n),!0))||[];v=new Response(zde(v.body,Nde,R,()=>{M&&M(),_&&h()},Mae),C)}b=b||"text";let O=await kH[ci.findKey(kH,b)||"text"](v,t);return!_&&h(),m&&m(),await new Promise((C,x)=>{S1e(C,x,{data:O,headers:wx.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:c})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new sc("Network Error",sc.ERR_NETWORK,t,c),{cause:v.cause||v}):sc.from(v,v&&v.code,t,c)}}),Pae={http:J3e,xhr:ESe,fetch:NSe};ci.forEach(Pae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fde=t=>`- ${t}`,FSe=t=>ci.isFunction(t)||t===null||t===!1,M1e={getAdapter:t=>{t=ci.isArray(t)?t:[t];const{length:e}=t;let o,f;const E={};for(let d=0;d`adapter ${n} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?d.length>1?`since : -`+d.map(Fde).join(` -`):" "+Fde(d[0]):"as no adapter specified";throw new sc("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return f},adapters:Pae};function pie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new OM(null,t)}function $de(t){return pie(t),t.headers=wx.from(t.headers),t.data=hie.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),M1e.getAdapter(t.adapter||Rle.adapter)(t).then(function(f){return pie(t),f.data=hie.call(t,t.transformResponse,f),f.headers=wx.from(f.headers),f},function(f){return O1e(f)||(pie(t),f&&f.response&&(f.response.data=hie.call(t,t.transformResponse,f.response),f.response.headers=wx.from(f.response.headers))),Promise.reject(f)})}const E1e="1.7.4",Lle={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Lle[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const Vde={};Lle.transitional=function(e,o,f){function E(d,s){return"[Axios v"+E1e+"] Transitional option '"+d+"'"+s+(f?". "+f:"")}return(d,s,n)=>{if(e===!1)throw new sc(E(s," has been removed"+(o?" in "+o:"")),sc.ERR_DEPRECATED);return o&&!Vde[s]&&(Vde[s]=!0,console.warn(E(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,s,n):!0}};function $Se(t,e,o){if(typeof t!="object")throw new sc("options must be an object",sc.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let E=f.length;for(;E-- >0;){const d=f[E],s=e[d];if(s){const n=t[d],u=n===void 0||s(n,d,t);if(u!==!0)throw new sc("option "+d+" must be "+u,sc.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new sc("Unknown option "+d,sc.ERR_BAD_OPTION)}}const Rae={assertOptions:$Se,validators:Lle},WS=Rae.validators;let TH=class{constructor(e){this.defaults=e,this.interceptors={request:new Rde,response:new Rde}}async request(e,o){try{return await this._request(e,o)}catch(f){if(f instanceof Error){let E;Error.captureStackTrace?Error.captureStackTrace(E={}):E=new Error;const d=E.stack?E.stack.replace(/^.+\n/,""):"";try{f.stack?d&&!String(f.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(f.stack+=` -`+d):f.stack=d}catch{}}throw f}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=HT(this.defaults,o);const{transitional:f,paramsSerializer:E,headers:d}=o;f!==void 0&&Rae.assertOptions(f,{silentJSONParsing:WS.transitional(WS.boolean),forcedJSONParsing:WS.transitional(WS.boolean),clarifyTimeoutError:WS.transitional(WS.boolean)},!1),E!=null&&(ci.isFunction(E)?o.paramsSerializer={serialize:E}:Rae.assertOptions(E,{encode:WS.function,serialize:WS.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=d&&ci.merge(d.common,d[o.method]);d&&ci.forEach(["delete","get","head","post","put","patch","common"],m=>{delete d[m]}),o.headers=wx.concat(s,d);const n=[];let u=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(u=u&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,S=0,w;if(!u){const m=[$de.bind(this),void 0];for(m.unshift.apply(m,n),m.push.apply(m,b),w=m.length,i=Promise.resolve(o);S{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](E);f._listeners=null}),this.promise.then=E=>{let d;const s=new Promise(n=>{f.subscribe(n),d=n}).then(E);return s.cancel=function(){f.unsubscribe(d)},s},e(function(d,s,n){f.reason||(f.reason=new OM(d,s,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new P1e(function(E){e=E}),cancel:e}}};const USe=VSe;function jSe(t){return function(o){return t.apply(null,o)}}function QSe(t){return ci.isObject(t)&&t.isAxiosError===!0}const Lae={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(Lae).forEach(([t,e])=>{Lae[e]=t});const HSe=Lae;function R1e(t){const e=new nH(t),o=l1e(nH.prototype.request,e);return ci.extend(o,nH.prototype,e,{allOwnKeys:!0}),ci.extend(o,e,null,{allOwnKeys:!0}),o.create=function(E){return R1e(HT(t,E))},o}const Rp=R1e(Rle);Rp.Axios=nH;Rp.CanceledError=OM;Rp.CancelToken=USe;Rp.isCancel=O1e;Rp.VERSION=E1e;Rp.toFormData=RZ;Rp.AxiosError=sc;Rp.Cancel=Rp.CanceledError;Rp.all=function(e){return Promise.all(e)};Rp.spread=jSe;Rp.isAxiosError=QSe;Rp.mergeConfig=HT;Rp.AxiosHeaders=wx;Rp.formToJSON=t=>w1e(ci.isHTMLForm(t)?new FormData(t):t);Rp.getAdapter=M1e.getAdapter;Rp.HttpStatusCode=HSe;Rp.default=Rp;const ou=Rp,{Axios:tQe,AxiosError:Ude,CanceledError:nQe,isCancel:rQe,CancelToken:oQe,VERSION:iQe,all:aQe,Cancel:sQe,isAxiosError:lQe,spread:cQe,toFormData:uQe,AxiosHeaders:fQe,HttpStatusCode:dQe,formToJSON:hQe,getAdapter:pQe,mergeConfig:mQe}=ou;function Ile(t,e){const o=Object.create(null),f=t.split(",");for(let E=0;E!!o[E.toLowerCase()]:E=>!!o[E]}const Jd={},j8=[],Ox=()=>{},ZSe=()=>!1,qSe=/^on[^a-z]/,DZ=t=>qSe.test(t),Dle=t=>t.startsWith("onUpdate:"),pp=Object.assign,Ble=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},WSe=Object.prototype.hasOwnProperty,Du=(t,e)=>WSe.call(t,e),tl=Array.isArray,Q8=t=>BZ(t)==="[object Map]",L1e=t=>BZ(t)==="[object Set]",Ul=t=>typeof t=="function",Yh=t=>typeof t=="string",zle=t=>typeof t=="symbol",Fd=t=>t!==null&&typeof t=="object",I1e=t=>Fd(t)&&Ul(t.then)&&Ul(t.catch),D1e=Object.prototype.toString,BZ=t=>D1e.call(t),YSe=t=>BZ(t).slice(8,-1),B1e=t=>BZ(t)==="[object Object]",Nle=t=>Yh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,rH=Ile(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},XSe=/-(\w)/g,ib=zZ(t=>t.replace(XSe,(e,o)=>o?o.toUpperCase():"")),GSe=/\B([A-Z])/g,KT=zZ(t=>t.replace(GSe,"-$1").toLowerCase()),A_=zZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),GL=zZ(t=>t?`on${A_(t)}`:""),pI=(t,e)=>!Object.is(t,e),oH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},Iae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},z1e=t=>{const e=Yh(t)?Number(t):NaN;return isNaN(e)?t:e};let jde;const Dae=()=>jde||(jde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rD(t){if(tl(t)){const e={};for(let o=0;o{if(o){const f=o.split(JSe);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Gv(t){let e="";if(Yh(t))e=t;else if(tl(t))for(let o=0;oYh(t)?t:t==null?"":tl(t)||Fd(t)&&(t.toString===D1e||!Ul(t.toString))?JSON.stringify(t,F1e,2):String(t),F1e=(t,e)=>e&&e.__v_isRef?F1e(t,e.value):Q8(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,E])=>(o[`${f} =>`]=E,o),{})}:L1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Fd(e)&&!tl(e)&&!B1e(e)?String(e):e;let Hv;class $1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hv,!e&&Hv&&(this.index=(Hv.scopes||(Hv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Hv;try{return Hv=this,e()}finally{Hv=o}}}on(){Hv=this}off(){Hv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},U1e=t=>(t.w&v4)>0,j1e=t=>(t.n&v4)>0,i4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=u)&&n.push(b)})}else switch(o!==void 0&&n.push(s.get(o)),e){case"add":tl(t)?Nle(o)&&n.push(s.get("length")):(n.push(s.get($T)),Q8(t)&&n.push(s.get(zae)));break;case"delete":tl(t)||(n.push(s.get($T)),Q8(t)&&n.push(s.get(zae)));break;case"set":Q8(t)&&n.push(s.get($T));break}if(n.length===1)n[0]&&Nae(n[0]);else{const u=[];for(const b of n)b&&u.push(...b);Nae(Fle(u))}}function Nae(t,e){const o=tl(t)?t:[...t];for(const f of o)f.computed&&Hde(f);for(const f of o)f.computed||Hde(f)}function Hde(t,e){(t!==xx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function s4e(t,e){var o;return(o=AH.get(t))==null?void 0:o.get(e)}const l4e=Ile("__proto__,__v_isRef,__isVue"),Z1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(zle)),c4e=Vle(),u4e=Vle(!1,!0),f4e=Vle(!0),Zde=d4e();function d4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=sl(this);for(let d=0,s=this.length;d{t[e]=function(...o){SM();const f=sl(this)[e].apply(this,o);return kM(),f}}),t}function h4e(t){const e=sl(this);return V1(e,"has",t),e.hasOwnProperty(t)}function Vle(t=!1,e=!1){return function(f,E,d){if(E==="__v_isReactive")return!t;if(E==="__v_isReadonly")return t;if(E==="__v_isShallow")return e;if(E==="__v_raw"&&d===(t?e?M4e:G1e:e?X1e:Y1e).get(f))return f;const s=tl(f);if(!t){if(s&&Du(Zde,E))return Reflect.get(Zde,E,d);if(E==="hasOwnProperty")return h4e}const n=Reflect.get(f,E,d);return(zle(E)?Z1e.has(E):l4e(E))||(t||V1(f,"get",E),e)?n:ku(n)?s&&Nle(E)?n:n.value:Fd(n)?t?TM(n):Am(n):n}}const p4e=q1e(),m4e=q1e(!0);function q1e(t=!1){return function(o,f,E,d){let s=o[f];if(tM(s)&&ku(s)&&!ku(E))return!1;if(!t&&(!MH(E)&&!tM(E)&&(s=sl(s),E=sl(E)),!tl(o)&&ku(s)&&!ku(E)))return s.value=E,!0;const n=tl(o)&&Nle(f)?Number(f)t,NZ=t=>Reflect.getPrototypeOf(t);function dQ(t,e,o=!1,f=!1){t=t.__v_raw;const E=sl(t),d=sl(e);o||(e!==d&&V1(E,"get",e),V1(E,"get",d));const{has:s}=NZ(E),n=f?Ule:o?Hle:mI;if(s.call(E,e))return n(t.get(e));if(s.call(E,d))return n(t.get(d));t!==E&&t.get(e)}function hQ(t,e=!1){const o=this.__v_raw,f=sl(o),E=sl(t);return e||(t!==E&&V1(f,"has",t),V1(f,"has",E)),t===E?o.has(t):o.has(t)||o.has(E)}function pQ(t,e=!1){return t=t.__v_raw,!e&&V1(sl(t),"iterate",$T),Reflect.get(t,"size",t)}function qde(t){t=sl(t);const e=sl(this);return NZ(e).has.call(e,t)||(e.add(t),MO(e,"add",t,t)),this}function Wde(t,e){e=sl(e);const o=sl(this),{has:f,get:E}=NZ(o);let d=f.call(o,t);d||(t=sl(t),d=f.call(o,t));const s=E.call(o,t);return o.set(t,e),d?pI(e,s)&&MO(o,"set",t,e):MO(o,"add",t,e),this}function Yde(t){const e=sl(this),{has:o,get:f}=NZ(e);let E=o.call(e,t);E||(t=sl(t),E=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return E&&MO(e,"delete",t,void 0),d}function Xde(){const t=sl(this),e=t.size!==0,o=t.clear();return e&&MO(t,"clear",void 0,void 0),o}function mQ(t,e){return function(f,E){const d=this,s=d.__v_raw,n=sl(s),u=e?Ule:t?Hle:mI;return!t&&V1(n,"iterate",$T),s.forEach((b,i)=>f.call(E,u(b),u(i),d))}}function gQ(t,e,o){return function(...f){const E=this.__v_raw,d=sl(E),s=Q8(d),n=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,b=E[t](...f),i=o?Ule:e?Hle:mI;return!e&&V1(d,"iterate",u?zae:$T),{next(){const{value:S,done:w}=b.next();return w?{value:S,done:w}:{value:n?[i(S[0]),i(S[1])]:i(S),done:w}},[Symbol.iterator](){return this}}}}function YS(t){return function(...e){return t==="delete"?!1:this}}function _4e(){const t={get(d){return dQ(this,d)},get size(){return pQ(this)},has:hQ,add:qde,set:Wde,delete:Yde,clear:Xde,forEach:mQ(!1,!1)},e={get(d){return dQ(this,d,!1,!0)},get size(){return pQ(this)},has:hQ,add:qde,set:Wde,delete:Yde,clear:Xde,forEach:mQ(!1,!0)},o={get(d){return dQ(this,d,!0)},get size(){return pQ(this,!0)},has(d){return hQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:mQ(!0,!1)},f={get(d){return dQ(this,d,!0,!0)},get size(){return pQ(this,!0)},has(d){return hQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:mQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=gQ(d,!1,!1),o[d]=gQ(d,!0,!1),e[d]=gQ(d,!1,!0),f[d]=gQ(d,!0,!0)}),[t,o,e,f]}const[w4e,O4e,S4e,k4e]=_4e();function jle(t,e){const o=e?t?k4e:S4e:t?O4e:w4e;return(f,E,d)=>E==="__v_isReactive"?!t:E==="__v_isReadonly"?t:E==="__v_raw"?f:Reflect.get(Du(o,E)&&E in f?o:f,E,d)}const T4e={get:jle(!1,!1)},C4e={get:jle(!1,!0)},A4e={get:jle(!0,!1)},Y1e=new WeakMap,X1e=new WeakMap,G1e=new WeakMap,M4e=new WeakMap;function E4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function P4e(t){return t.__v_skip||!Object.isExtensible(t)?0:E4e(YSe(t))}function Am(t){return tM(t)?t:Qle(t,!1,W1e,T4e,Y1e)}function K1e(t){return Qle(t,!1,x4e,C4e,X1e)}function TM(t){return Qle(t,!0,b4e,A4e,G1e)}function Qle(t,e,o,f,E){if(!Fd(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=E.get(t);if(d)return d;const s=P4e(t);if(s===0)return t;const n=new Proxy(t,s===2?f:o);return E.set(t,n),n}function CO(t){return tM(t)?CO(t.__v_raw):!!(t&&t.__v_isReactive)}function tM(t){return!!(t&&t.__v_isReadonly)}function MH(t){return!!(t&&t.__v_isShallow)}function J1e(t){return CO(t)||tM(t)}function sl(t){const e=t&&t.__v_raw;return e?sl(e):t}function iD(t){return CH(t,"__v_skip",!0),t}const mI=t=>Fd(t)?Am(t):t,Hle=t=>Fd(t)?TM(t):t;function eve(t){d4&&xx&&(t=sl(t),H1e(t.dep||(t.dep=Fle())))}function tve(t,e){t=sl(t);const o=t.dep;o&&Nae(o)}function ku(t){return!!(t&&t.__v_isRef===!0)}function qo(t){return nve(t,!1)}function Gi(t){return nve(t,!0)}function nve(t,e){return ku(t)?t:new R4e(t,e)}class R4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:sl(e),this._value=o?e:mI(e)}get value(){return eve(this),this._value}set value(e){const o=this.__v_isShallow||MH(e)||tM(e);e=o?e:sl(e),pI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:mI(e),tve(this))}}function Va(t){return ku(t)?t.value:t}const L4e={get:(t,e,o)=>Va(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const E=t[e];return ku(E)&&!ku(o)?(E.value=o,!0):Reflect.set(t,e,o,f)}};function rve(t){return CO(t)?t:new Proxy(t,L4e)}function CM(t){const e=tl(t)?new Array(t.length):{};for(const o in t)e[o]=ove(t,o);return e}class I4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return s4e(sl(this._object),this._key)}}class D4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ji(t,e,o){return ku(t)?t:Ul(t)?new D4e(t):Fd(t)&&arguments.length>1?ove(t,e,o):qo(t)}function ove(t,e,o){const f=t[e];return ku(f)?f:new I4e(t,e,o)}class B4e{constructor(e,o,f,E){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new $le(e,()=>{this._dirty||(this._dirty=!0,tve(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!E,this.__v_isReadonly=f}get value(){const e=sl(this);return eve(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function z4e(t,e,o=!1){let f,E;const d=Ul(t);return d?(f=t,E=Ox):(f=t.get,E=t.set),new B4e(f,E,d||!E,o)}function h4(t,e,o,f){let E;try{E=f?t(...f):t()}catch(d){aD(d,e,o)}return E}function nb(t,e,o,f){if(Ul(t)){const d=h4(t,e,o,f);return d&&I1e(d)&&d.catch(s=>{aD(s,e,o)}),d}const E=[];for(let d=0;d>>1;vI(Xg[f])m_&&Xg.splice(e,1)}function sve(t){tl(t)?H8.push(...t):(!kO||!kO.includes(t,t.allowRecurse?ET+1:ET))&&H8.push(t),ave()}function Gde(t,e=gI?m_+1:0){for(;evI(o)-vI(f)),ET=0;ETt.id==null?1/0:t.id,V4e=(t,e)=>{const o=vI(t)-vI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function cve(t){Fae=!1,gI=!0,Xg.sort(V4e);const e=Ox;try{for(m_=0;m_Yh(y)?y.trim():y)),S&&(E=o.map(Iae))}let n,u=f[n=GL(e)]||f[n=GL(ib(e))];!u&&d&&(u=f[n=GL(KT(e))]),u&&nb(u,t,6,E);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,nb(b,t,6,E)}}function uve(t,e,o=!1){const f=e.emitsCache,E=f.get(t);if(E!==void 0)return E;const d=t.emits;let s={},n=!1;if(!Ul(t)){const u=b=>{const i=uve(b,e,!0);i&&(n=!0,pp(s,i))};!o&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!d&&!n?(Fd(t)&&f.set(t,null),null):(tl(d)?d.forEach(u=>s[u]=null):pp(s,d),Fd(t)&&f.set(t,s),s)}function FZ(t,e){return!t||!DZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Du(t,e[0].toLowerCase()+e.slice(1))||Du(t,KT(e))||Du(t,e))}let Mm=null,$Z=null;function EH(t){const e=Mm;return Mm=t,$Z=t&&t.type.__scopeId||null,e}function Wle(t){$Z=t}function Yle(){$Z=null}function ao(t,e=Mm,o){if(!e||t._n)return t;const f=(...E)=>{f._d&&fhe(-1);const d=EH(e);let s;try{s=t(...E)}finally{EH(d),f._d&&fhe(1)}return s};return f._n=!0,f._c=!0,f._d=!0,f}function mie(t){const{type:e,vnode:o,proxy:f,withProxy:E,props:d,propsOptions:[s],slots:n,attrs:u,emit:b,render:i,renderCache:S,data:w,setupState:y,ctx:m,inheritAttrs:a}=t;let c,h;const p=EH(t);try{if(o.shapeFlag&4){const _=E||f;c=vx(i.call(_,_,S,d,y,w,m)),h=u}else{const _=e;c=vx(_.length>1?_(d,{attrs:u,slots:n,emit:b}):_(d,null)),h=e.props?u:Q4e(u)}}catch(_){tI.length=0,aD(_,t,1),c=$t(Z0)}let v=c;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:O}=v;_.length&&O&7&&(s&&_.some(Dle)&&(h=H4e(h,s)),v=EO(v,h))}return o.dirs&&(v=EO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),c=v,EH(p),c}function j4e(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||DZ(o))&&((e||(e={}))[o]=t[o]);return e},H4e=(t,e)=>{const o={};for(const f in t)(!Dle(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function Z4e(t,e,o){const{props:f,children:E,component:d}=t,{props:s,children:n,patchFlag:u}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&u>=0){if(u&1024)return!0;if(u&16)return f?Kde(f,s,b):!!s;if(u&8){const i=e.dynamicProps;for(let S=0;St.__isSuspense,W4e={name:"Suspense",__isSuspense:!0,process(t,e,o,f,E,d,s,n,u,b){t==null?X4e(e,o,f,E,d,s,n,u,b):G4e(t,e,o,f,E,s,n,u,b)},hydrate:K4e,create:Gle,normalize:J4e},Y4e=W4e;function yI(t,e){const o=t.props&&t.props[e];Ul(o)&&o()}function X4e(t,e,o,f,E,d,s,n,u){const{p:b,o:{createElement:i}}=u,S=i("div"),w=t.suspense=Gle(t,E,f,e,S,o,d,s,n,u);b(null,w.pendingBranch=t.ssContent,S,null,f,w,d,s),w.deps>0?(yI(t,"onPending"),yI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,s),Z8(w,t.ssFallback)):w.resolve(!1,!0)}function G4e(t,e,o,f,E,d,s,n,{p:u,um:b,o:{createElement:i}}){const S=e.suspense=t.suspense;S.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:m,pendingBranch:a,isInFallback:c,isHydrating:h}=S;if(a)S.pendingBranch=w,g_(w,a)?(u(a,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():c&&(u(m,y,o,f,E,null,d,s,n),Z8(S,y))):(S.pendingId++,h?(S.isHydrating=!1,S.activeBranch=a):b(a,E,S),S.deps=0,S.effects.length=0,S.hiddenContainer=i("div"),c?(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():(u(m,y,o,f,E,null,d,s,n),Z8(S,y))):m&&g_(w,m)?(u(m,w,o,f,E,S,d,s,n),S.resolve(!0)):(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0&&S.resolve()));else if(m&&g_(w,m))u(m,w,o,f,E,S,d,s,n),Z8(S,w);else if(yI(e,"onPending"),S.pendingBranch=w,S.pendingId++,u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0)S.resolve();else{const{timeout:p,pendingId:v}=S;p>0?setTimeout(()=>{S.pendingId===v&&S.fallback(y)},p):p===0&&S.fallback(y)}}function Gle(t,e,o,f,E,d,s,n,u,b,i=!1){const{p:S,m:w,um:y,n:m,o:{parentNode:a,remove:c}}=b;let h;const p=tke(t);p&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?z1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:s,container:f,hiddenContainer:E,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(O=!1,C=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:P,parentComponent:A,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!O){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=m(R),y(R,A,_,!0)),I||w(M,L,z,0)}Z8(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...P),k=!0;break}D=D.parent}k||sve(P),_.effects=[],p&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!C&&e.resolve()),yI(x,"onResolve")},fallback(O){if(!_.pendingBranch)return;const{vnode:C,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;yI(C,"onFallback");const P=m(x),A=()=>{_.isInFallback&&(S(null,O,M,P,R,null,T,n,u),Z8(_,O))},L=O.transition&&O.transition.mode==="out-in";L&&(x.transition.afterLeave=A),_.isInFallback=!0,y(x,R,null,!0),L||A()},move(O,C,x){_.activeBranch&&w(_.activeBranch,O,C,x),_.container=O},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(O,C){const x=!!_.pendingBranch;x&&_.deps++;const R=O.vnode.el;O.asyncDep.catch(M=>{aD(M,O,0)}).then(M=>{if(O.isUnmounted||_.isUnmounted||_.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:T}=O;Zae(O,M,!1),R&&(T.el=R);const P=!R&&O.subTree.el;C(O,T,a(R||O.subTree.el),R?null:m(O.subTree),_,s,u),P&&c(P),Xle(O,T.el),x&&--_.deps===0&&_.resolve()})},unmount(O,C){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,O,C),_.pendingBranch&&y(_.pendingBranch,o,O,C)}};return _}function K4e(t,e,o,f,E,d,s,n,u){const b=e.suspense=Gle(e,f,o,t.parentNode,document.createElement("div"),null,E,d,s,n,!0),i=u(t,b.pendingBranch=e.ssContent,o,b,d,s);return b.deps===0&&b.resolve(!1,!0),i}function J4e(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=Jde(f?o.default:o),t.ssFallback=f?Jde(o.fallback):$t(Z0)}function Jde(t){let e;if(Ul(t)){const o=rM&&t._c;o&&(t._d=!1,Uo()),t=t(),o&&(t._d=!0,e=Ky,Ave())}return tl(t)&&(t=j4e(t)),t=vx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function eke(t,e){e&&e.pendingBranch?tl(t)?e.effects.push(...t):e.effects.push(t):sve(t)}function Z8(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,E=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=E,Xle(f,E))}function tke(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Gp(t,e){return Kle(t,null,e)}const vQ={};function ia(t,e,o){return Kle(t,e,o)}function Kle(t,e,{immediate:o,deep:f,flush:E,onTrack:d,onTrigger:s}=Jd){var n;const u=V1e()===((n=Yp)==null?void 0:n.scope)?Yp:null;let b,i=!1,S=!1;if(ku(t)?(b=()=>t.value,i=MH(t)):CO(t)?(b=()=>t,f=!0):tl(t)?(S=!0,i=t.some(_=>CO(_)||MH(_)),b=()=>t.map(_=>{if(ku(_))return _.value;if(CO(_))return BT(_);if(Ul(_))return h4(_,u,2)})):Ul(t)?e?b=()=>h4(t,u,2):b=()=>{if(!(u&&u.isUnmounted))return w&&w(),nb(t,u,3,[y])}:b=Ox,e&&f){const _=b;b=()=>BT(_())}let w,y=_=>{w=p.onStop=()=>{h4(_,u,4)}},m;if(wI)if(y=Ox,e?o&&nb(e,u,3,[b(),S?[]:void 0,y]):b(),E==="sync"){const _=Hke();m=_.__watcherHandles||(_.__watcherHandles=[])}else return Ox;let a=S?new Array(t.length).fill(vQ):vQ;const c=()=>{if(p.active)if(e){const _=p.run();(f||i||(S?_.some((O,C)=>pI(O,a[C])):pI(_,a)))&&(w&&w(),nb(e,u,3,[_,a===vQ?void 0:S&&a[0]===vQ?[]:a,y]),a=_)}else p.run()};c.allowRecurse=!!e;let h;E==="sync"?h=c:E==="post"?h=()=>D1(c,u&&u.suspense):(c.pre=!0,u&&(c.id=u.uid),h=()=>qle(c));const p=new $le(b,h);e?o?c():a=p.run():E==="post"?D1(p.run.bind(p),u&&u.suspense):p.run();const v=()=>{p.stop(),u&&u.scope&&Ble(u.scope.effects,p)};return m&&m.push(v),v}function nke(t,e,o){const f=this.proxy,E=Yh(t)?t.includes(".")?fve(f,t):()=>f[t]:t.bind(f,f);let d;Ul(e)?d=e:(d=e.handler,o=e);const s=Yp;iM(this);const n=Kle(E,d.bind(f),o);return s?iM(s):VT(),n}function fve(t,e){const o=e.split(".");return()=>{let f=t;for(let E=0;E{BT(o,e)});else if(B1e(t))for(const o in t)BT(t[o],e);return t}function Kp(t,e){const o=Mm;if(o===null)return t;const f=QZ(o)||o.proxy,E=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),Em(()=>{t.isUnmounting=!0}),t}const Xy=[Function,Array],hve={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xy,onEnter:Xy,onAfterEnter:Xy,onEnterCancelled:Xy,onBeforeLeave:Xy,onLeave:Xy,onAfterLeave:Xy,onLeaveCancelled:Xy,onBeforeAppear:Xy,onAppear:Xy,onAfterAppear:Xy,onAppearCancelled:Xy},rke={name:"BaseTransition",props:hve,setup(t,{slots:e}){const o=fce(),f=dve();let E;return()=>{const d=e.default&&Jle(e.default(),!0);if(!d||!d.length)return;let s=d[0];if(d.length>1){for(const a of d)if(a.type!==Z0){s=a;break}}const n=sl(t),{mode:u}=n;if(f.isLeaving)return gie(s);const b=ehe(s);if(!b)return gie(s);const i=bI(b,n,f,o);xI(b,i);const S=o.subTree,w=S&&ehe(S);let y=!1;const{getTransitionKey:m}=b.type;if(m){const a=m();E===void 0?E=a:a!==E&&(E=a,y=!0)}if(w&&w.type!==Z0&&(!g_(b,w)||y)){const a=bI(w,n,f,o);if(xI(w,a),u==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},gie(s);u==="in-out"&&b.type!==Z0&&(a.delayLeave=(c,h,p)=>{const v=pve(f,w);v[String(w.key)]=w,c._leaveCb=()=>{h(),c._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=p})}return s}}},oke=rke;function pve(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function bI(t,e,o,f){const{appear:E,mode:d,persisted:s=!1,onBeforeEnter:n,onEnter:u,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:S,onLeave:w,onAfterLeave:y,onLeaveCancelled:m,onBeforeAppear:a,onAppear:c,onAfterAppear:h,onAppearCancelled:p}=e,v=String(t.key),_=pve(o,t),O=(R,M)=>{R&&nb(R,f,9,M)},C=(R,M)=>{const T=M[1];O(R,M),tl(R)?R.every(P=>P.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:s,beforeEnter(R){let M=n;if(!o.isMounted)if(E)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&g_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),O(M,[R])},enter(R){let M=u,T=b,P=i;if(!o.isMounted)if(E)M=c||u,T=h||b,P=p||i;else return;let A=!1;const L=R._enterCb=D=>{A||(A=!0,D?O(P,[R]):O(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?C(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();O(S,[R]);let P=!1;const A=R._leaveCb=L=>{P||(P=!0,M(),L?O(m,[R]):O(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?C(w,[R,A]):A()},clone(R){return bI(R,e,o,f)}};return x}function gie(t){if(VZ(t))return t=EO(t),t.children=null,t}function ehe(t){return VZ(t)?t.children?t.children[0]:void 0:t}function xI(t,e){t.shapeFlag&6&&t.component?xI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Jle(t,e=!1,o){let f=[],E=0;for(let d=0;d1)for(let d=0;dpp({name:t.name},e,{setup:t}))():t}const KL=t=>!!t.type.__asyncLoader,VZ=t=>t.type.__isKeepAlive;function ece(t,e){mve(t,"a",e)}function tce(t,e){mve(t,"da",e)}function mve(t,e,o=Yp){const f=t.__wdc||(t.__wdc=()=>{let E=o;for(;E;){if(E.isDeactivated)return;E=E.parent}return t()});if(UZ(e,f,o),o){let E=o.parent;for(;E&&E.parent;)VZ(E.parent.vnode)&&ike(f,e,o,E),E=E.parent}}function ike(t,e,o,f){const E=UZ(e,t,f,!0);oce(()=>{Ble(f[e],E)},o)}function UZ(t,e,o=Yp,f=!1){if(o){const E=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...s)=>{if(o.isUnmounted)return;SM(),iM(o);const n=nb(e,o,t,s);return VT(),kM(),n});return f?E.unshift(d):E.push(d),d}}const zO=t=>(e,o=Yp)=>(!wI||t==="sp")&&UZ(t,(...f)=>e(...f),o),nce=zO("bm"),pg=zO("m"),gve=zO("bu"),rce=zO("u"),Em=zO("bum"),oce=zO("um"),ake=zO("sp"),ske=zO("rtg"),lke=zO("rtc");function cke(t,e=Yp){UZ("ec",t,e)}const ice="components",uke="directives";function Nd(t,e){return ace(ice,t,!0,e)||t}const vve=Symbol.for("v-ndc");function nM(t){return Yh(t)?ace(ice,t,!1)||t:t||vve}function M_(t){return ace(uke,t)}function ace(t,e,o=!0,f=!1){const E=Mm||Yp;if(E){const d=E.type;if(t===ice){const n=Uke(d,!1);if(n&&(n===e||n===ib(e)||n===A_(ib(e))))return d}const s=the(E[t]||d[t],e)||the(E.appContext[t],e);return!s&&f?d:s}}function the(t,e){return t&&(t[e]||t[ib(e)]||t[A_(ib(e))])}function ey(t,e,o,f){let E;const d=o&&o[f];if(tl(t)||Yh(t)){E=new Array(t.length);for(let s=0,n=t.length;se(s,n,void 0,d&&d[n]));else{const s=Object.keys(t);E=new Array(s.length);for(let n=0,u=s.length;n{const d=f.fn(...E);return d&&(d.key=f.key),d}:f.fn)}return t}function vie(t,e,o={},f,E){if(Mm.isCE||Mm.parent&&KL(Mm.parent)&&Mm.parent.isCE)return e!=="default"&&(o.name=e),$t("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Uo();const s=d&&bve(d(o)),n=da(Ea,{key:o.key||s&&s.key||`_${e}`},s||(f?f():[]),s&&t._===1?64:-2);return!E&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function bve(t){return t.some(e=>oM(e)?!(e.type===Z0||e.type===Ea&&!bve(e.children)):!0)?t:null}function fke(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:GL(f)]=t[f];return o}const $ae=t=>t?Pve(t)?QZ(t)||t.proxy:$ae(t.parent):null,JL=pp(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>$ae(t.parent),$root:t=>$ae(t.root),$emit:t=>t.emit,$options:t=>sce(t),$forceUpdate:t=>t.f||(t.f=()=>qle(t.update)),$nextTick:t=>t.n||(t.n=Vc.bind(t.proxy)),$watch:t=>nke.bind(t)}),yie=(t,e)=>t!==Jd&&!t.__isScriptSetup&&Du(t,e),dke={get({_:t},e){const{ctx:o,setupState:f,data:E,props:d,accessCache:s,type:n,appContext:u}=t;let b;if(e[0]!=="$"){const y=s[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return E[e];case 4:return o[e];case 3:return d[e]}else{if(yie(f,e))return s[e]=1,f[e];if(E!==Jd&&Du(E,e))return s[e]=2,E[e];if((b=t.propsOptions[0])&&Du(b,e))return s[e]=3,d[e];if(o!==Jd&&Du(o,e))return s[e]=4,o[e];Vae&&(s[e]=0)}}const i=JL[e];let S,w;if(i)return e==="$attrs"&&V1(t,"get",e),i(t);if((S=n.__cssModules)&&(S=S[e]))return S;if(o!==Jd&&Du(o,e))return s[e]=4,o[e];if(w=u.config.globalProperties,Du(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:E,ctx:d}=t;return yie(E,e)?(E[e]=o,!0):f!==Jd&&Du(f,e)?(f[e]=o,!0):Du(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:E,propsOptions:d}},s){let n;return!!o[s]||t!==Jd&&Du(t,s)||yie(e,s)||(n=d[0])&&Du(n,s)||Du(f,s)||Du(JL,s)||Du(E.config.globalProperties,s)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Du(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function nhe(t){return tl(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let Vae=!0;function hke(t){const e=sce(t),o=t.proxy,f=t.ctx;Vae=!1,e.beforeCreate&&rhe(e.beforeCreate,t,"bc");const{data:E,computed:d,methods:s,watch:n,provide:u,inject:b,created:i,beforeMount:S,mounted:w,beforeUpdate:y,updated:m,activated:a,deactivated:c,beforeDestroy:h,beforeUnmount:p,destroyed:v,unmounted:_,render:O,renderTracked:C,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:P,components:A,directives:L,filters:D}=e;if(b&&pke(b,f,null),s)for(const z in s){const $=s[z];Ul($)&&(f[z]=$.bind(o))}if(E){const z=E.call(o,o);Fd(z)&&(t.data=Am(z))}if(Vae=!0,d)for(const z in d){const $=d[z],Q=Ul($)?$.bind(o,o):Ul($.get)?$.get.bind(o,o):Ox,j=!Ul($)&&Ul($.set)?$.set.bind(o):Ox,U=nr({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)xve(n[z],f,o,z);if(u){const z=Ul(u)?u.call(o):u;Reflect.ownKeys(z).forEach($=>{md($,z[$])})}i&&rhe(i,t,"c");function I(z,$){tl($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(nce,S),I(pg,w),I(gve,y),I(rce,m),I(ece,a),I(tce,c),I(cke,R),I(lke,C),I(ske,x),I(Em,p),I(oce,_),I(ake,M),tl(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});O&&t.render===Ox&&(t.render=O),P!=null&&(t.inheritAttrs=P),A&&(t.components=A),L&&(t.directives=L)}function pke(t,e,o=Ox){tl(t)&&(t=Uae(t));for(const f in t){const E=t[f];let d;Fd(E)?"default"in E?d=Kl(E.from||f,E.default,!0):d=Kl(E.from||f):d=Kl(E),ku(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):e[f]=d}}function rhe(t,e,o){nb(tl(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function xve(t,e,o,f){const E=f.includes(".")?fve(o,f):()=>o[f];if(Yh(t)){const d=e[t];Ul(d)&&ia(E,d)}else if(Ul(t))ia(E,t.bind(o));else if(Fd(t))if(tl(t))t.forEach(d=>xve(d,e,o,f));else{const d=Ul(t.handler)?t.handler.bind(o):e[t.handler];Ul(d)&&ia(E,d,t)}}function sce(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:E,optionsCache:d,config:{optionMergeStrategies:s}}=t.appContext,n=d.get(e);let u;return n?u=n:!E.length&&!o&&!f?u=e:(u={},E.length&&E.forEach(b=>PH(u,b,s,!0)),PH(u,e,s)),Fd(e)&&d.set(e,u),u}function PH(t,e,o,f=!1){const{mixins:E,extends:d}=e;d&&PH(t,d,o,!0),E&&E.forEach(s=>PH(t,s,o,!0));for(const s in e)if(!(f&&s==="expose")){const n=mke[s]||o&&o[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const mke={data:ohe,props:ihe,emits:ihe,methods:QL,computed:QL,beforeCreate:j0,created:j0,beforeMount:j0,mounted:j0,beforeUpdate:j0,updated:j0,beforeDestroy:j0,beforeUnmount:j0,destroyed:j0,unmounted:j0,activated:j0,deactivated:j0,errorCaptured:j0,serverPrefetch:j0,components:QL,directives:QL,watch:vke,provide:ohe,inject:gke};function ohe(t,e){return e?t?function(){return pp(Ul(t)?t.call(this,this):t,Ul(e)?e.call(this,this):e)}:e:t}function gke(t,e){return QL(Uae(t),Uae(e))}function Uae(t){if(tl(t)){const e={};for(let o=0;o1)return o&&Ul(e)?e.call(f&&f.proxy):e}}function xke(){return!!(Yp||Mm||_I)}function _ke(t,e,o,f=!1){const E={},d={};CH(d,jZ,1),t.propsDefaults=Object.create(null),wve(t,e,E,d);for(const s in t.propsOptions[0])s in E||(E[s]=void 0);o?t.props=f?E:K1e(E):t.type.props?t.props=E:t.props=d,t.attrs=d}function wke(t,e,o,f){const{props:E,attrs:d,vnode:{patchFlag:s}}=t,n=sl(E),[u]=t.propsOptions;let b=!1;if((f||s>0)&&!(s&16)){if(s&8){const i=t.vnode.dynamicProps;for(let S=0;S{u=!0;const[w,y]=Ove(S,e,!0);pp(s,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!u)return Fd(t)&&f.set(t,j8),j8;if(tl(d))for(let i=0;i-1,y[1]=a<0||m-1||Du(y,"default"))&&n.push(S)}}}const b=[s,n];return Fd(t)&&f.set(t,b),b}function ahe(t){return t[0]!=="$"}function she(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function lhe(t,e){return she(t)===she(e)}function che(t,e){return tl(e)?e.findIndex(o=>lhe(o,t)):Ul(e)&&lhe(e,t)?0:-1}const Sve=t=>t[0]==="_"||t==="$stable",lce=t=>tl(t)?t.map(vx):[vx(t)],Oke=(t,e,o)=>{if(e._n)return e;const f=ao((...E)=>lce(e(...E)),o);return f._c=!1,f},kve=(t,e,o)=>{const f=t._ctx;for(const E in t){if(Sve(E))continue;const d=t[E];if(Ul(d))e[E]=Oke(E,d,f);else if(d!=null){const s=lce(d);e[E]=()=>s}}},Tve=(t,e)=>{const o=lce(e);t.slots.default=()=>o},Ske=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=sl(e),CH(e,"_",o)):kve(e,t.slots={})}else t.slots={},e&&Tve(t,e);CH(t.slots,jZ,1)},kke=(t,e,o)=>{const{vnode:f,slots:E}=t;let d=!0,s=Jd;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(pp(E,e),!o&&n===1&&delete E._):(d=!e.$stable,kve(e,E)),s=e}else e&&(Tve(t,e),s={default:1});if(d)for(const n in E)!Sve(n)&&!(n in s)&&delete E[n]};function Qae(t,e,o,f,E=!1){if(tl(t)){t.forEach((w,y)=>Qae(w,e&&(tl(e)?e[y]:e),o,f,E));return}if(KL(f)&&!E)return;const d=f.shapeFlag&4?QZ(f.component)||f.component.proxy:f.el,s=E?null:d,{i:n,r:u}=t,b=e&&e.r,i=n.refs===Jd?n.refs={}:n.refs,S=n.setupState;if(b!=null&&b!==u&&(Yh(b)?(i[b]=null,Du(S,b)&&(S[b]=null)):ku(b)&&(b.value=null)),Ul(u))h4(u,n,12,[s,i]);else{const w=Yh(u),y=ku(u);if(w||y){const m=()=>{if(t.f){const a=w?Du(S,u)?S[u]:i[u]:u.value;E?tl(a)&&Ble(a,d):tl(a)?a.includes(d)||a.push(d):w?(i[u]=[d],Du(S,u)&&(S[u]=i[u])):(u.value=[d],t.k&&(i[t.k]=u.value))}else w?(i[u]=s,Du(S,u)&&(S[u]=s)):y&&(u.value=s,t.k&&(i[t.k]=s))};s?(m.id=-1,D1(m,o)):m()}}}const D1=eke;function Tke(t){return Cke(t)}function Cke(t,e){const o=Dae();o.__VUE__=!0;const{insert:f,remove:E,patchProp:d,createElement:s,createText:n,createComment:u,setText:b,setElementText:i,parentNode:S,nextSibling:w,setScopeId:y=Ox,insertStaticContent:m}=t,a=(se,ae,ce,de=null,ye=null,ve=null,_e=!1,we=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!g_(se,ae)&&(de=q(se),X(se,ye,ve,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case sD:c(se,ae,ce,de);break;case Z0:h(se,ae,ce,de);break;case bie:se==null&&p(ae,ce,de,_e);break;case Ea:A(se,ae,ce,de,ye,ve,_e,we,Te);break;default:ze&1?O(se,ae,ce,de,ye,ve,_e,we,Te):ze&6?L(se,ae,ce,de,ye,ve,_e,we,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ye,ve,_e,we,Te,ee)}Ie!=null&&ye&&Qae(Ie,se&&se.ref,ve,ae||se,!ae)},c=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ye=ae.el=se.el;ae.children!==se.children&&b(ye,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=u(ae.children||""),ce,de):ae.el=se.el},p=(se,ae,ce,de)=>{[se.el,se.anchor]=m(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ye;for(;se&&se!==ae;)ye=w(se),f(se,ce,de),se=ye;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),E(se),se=ce;E(ae)},O=(se,ae,ce,de,ye,ve,_e,we,Te)=>{_e=_e||ae.type==="svg",se==null?C(ae,ce,de,ye,ve,_e,we,Te):M(se,ae,ye,ve,_e,we,Te)},C=(se,ae,ce,de,ye,ve,_e,we)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:Qe,dirs:Ve}=se;if(Te=se.el=s(se.type,ve,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ye,ve&&Ie!=="foreignObject",_e,we),Ve&&xT(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!rH(Oe)&&d(Te,Oe,null,ze[Oe],ve,se.children,de,ye,re);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&c_(Pe,de,se)}Ve&&xT(se,null,de,"beforeMount");const $e=(!ye||ye&&!ye.pendingBranch)&&Qe&&!Qe.persisted;$e&&Qe.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&D1(()=>{Pe&&c_(Pe,de,se),$e&&Qe.enter(Te),Ve&&xT(se,null,de,"mounted")},ye)},x=(se,ae,ce,de,ye)=>{if(ce&&y(se,ce),de)for(let ve=0;ve{for(let Pe=Te;Pe{const we=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||Jd,De=ae.props||Jd;let Qe;ce&&_T(ce,!1),(Qe=De.onVnodeBeforeUpdate)&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"beforeUpdate"),ce&&_T(ce,!0);const Ve=ye&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,we,ce,de,Ve,ve):_e||$(se,ae,we,null,ce,de,Ve,ve,!1),Te>0){if(Te&16)P(we,ae,ze,De,ce,de,ye);else if(Te&2&&ze.class!==De.class&&d(we,"class",null,De.class,ye),Te&4&&d(we,"style",ze.style,De.style,ye),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Re=ze[ke],We=De[ke];(We!==Re||ke==="value")&&d(we,ke,Re,We,ye,se.children,ce,de,re)}}Te&1&&se.children!==ae.children&&i(we,ae.children)}else!_e&&Pe==null&&P(we,ae,ze,De,ce,de,ye);((Qe=De.onVnodeUpdated)||Ie)&&D1(()=>{Qe&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ye,ve,_e)=>{for(let we=0;we{if(ce!==de){if(ce!==Jd)for(const we in ce)!rH(we)&&!(we in de)&&d(se,we,ce[we],null,_e,ae.children,ye,ve,re);for(const we in de){if(rH(we))continue;const Te=de[we],Pe=ce[we];Te!==Pe&&we!=="value"&&d(se,we,Pe,Te,_e,ae.children,ye,ve,re)}"value"in de&&d(se,"value",ce.value,de.value)}},A=(se,ae,ce,de,ye,ve,_e,we,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:Qe}=ae;Qe&&(we=we?we.concat(Qe):Qe),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ye,ve,_e,we,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ye,ve,_e,we),(ae.key!=null||ye&&ae===ye.subTree)&&cce(se,ae,!0)):$(se,ae,ce,Ie,ye,ve,_e,we,Te)},L=(se,ae,ce,de,ye,ve,_e,we,Te)=>{ae.slotScopeIds=we,se==null?ae.shapeFlag&512?ye.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ye,ve,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ye,ve,_e)=>{const we=se.component=zke(se,de,ye);if(VZ(se)&&(we.ctx.renderer=ee),Nke(we),we.asyncDep){if(ye&&ye.registerDep(we,I),!se.el){const Te=we.subTree=$t(Z0);h(null,Te,ae,ce)}return}I(we,se,ae,ce,ye,ve,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(Z4e(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,$4e(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ye,ve,_e)=>{const we=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:Qe,vnode:Ve}=se,$e=Ie,Oe;_T(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&oH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&c_(Oe,Qe,Ie,Ve),_T(se,!0);const ke=mie(se),Re=se.subTree;se.subTree=ke,a(Re,ke,S(Re.el),q(Re),se,ye,ve),Ie.el=ke.el,$e===null&&Xle(se,ke.el),De&&D1(De,ye),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&D1(()=>c_(Oe,Qe,Ie,Ve),ye)}else{let Ie;const{el:ze,props:De}=ae,{bm:Qe,m:Ve,parent:$e}=se,Oe=KL(ae);if(_T(se,!1),Qe&&oH(Qe),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&c_(Ie,$e,ae),_T(se,!0),ze&&pe){const ke=()=>{se.subTree=mie(se),pe(ze,se.subTree,se,ye,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=mie(se);a(null,ke,ce,de,se,ye,ve),ae.el=ke.el}if(Ve&&D1(Ve,ye),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;D1(()=>c_(Ie,$e,ke),ye)}(ae.shapeFlag&256||$e&&KL($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&D1(se.a,ye),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new $le(we,()=>qle(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,_T(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,wke(se,ae.props,de,ce),kke(se,ae.children,ce),SM(),Gde(),kM()},$=(se,ae,ce,de,ye,ve,_e,we,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:Qe}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ye,ve,_e,we,Te);return}else if(De&256){Q(Pe,ze,ce,de,ye,ve,_e,we,Te);return}}Qe&8?(Ie&16&&re(Pe,ye,ve),ze!==Pe&&i(ce,ze)):Ie&16?Qe&16?j(Pe,ze,ce,de,ye,ve,_e,we,Te):re(Pe,ye,ve,!0):(Ie&8&&i(ce,""),Qe&16&&R(ze,ce,de,ye,ve,_e,we,Te))},Q=(se,ae,ce,de,ye,ve,_e,we,Te)=>{se=se||j8,ae=ae||j8;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?re(se,ye,ve,!0,!1,ze):R(ae,ce,de,ye,ve,_e,we,Te,ze)},j=(se,ae,ce,de,ye,ve,_e,we,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const Qe=se[Pe],Ve=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const Qe=se[ze],Ve=ae[De]=Te?t4(ae[De]):vx(ae[De]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const Qe=De+1,Ve=QeDe)for(;Pe<=ze;)X(se[Pe],ye,ve,!0),Pe++;else{const Qe=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const Je=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);Je.key!=null&&$e.set(Je.key,Pe)}let Oe,ke=0;const Re=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Re);for(Pe=0;Pe=Re){X(Je,ye,ve,!0);continue}let Me;if(Je.key!=null)Me=$e.get(Je.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&g_(Je,ae[Oe])){Me=Oe;break}Me===void 0?X(Je,ye,ve,!0):(Ze[Me-Ve]=Pe+1,Me>=Ue?Ue=Me:We=!0,a(Je,ae[Me],ce,null,ye,ve,_e,we,Te),ke++)}const Ye=We?Ake(Ze):j8;for(Oe=Ye.length-1,Pe=Re-1;Pe>=0;Pe--){const Je=Ve+Pe,Me=ae[Je],Fe=Je+1{const{el:ve,type:_e,transition:we,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===Ea){f(ve,ae,ce);for(let ze=0;zewe.enter(ve),ye);else{const{leave:ze,delayLeave:De,afterLeave:Qe}=we,Ve=()=>f(ve,ae,ce),$e=()=>{ze(ve,()=>{Ve(),Qe&&Qe()})};De?De(ve,Ve,$e):$e()}else f(ve,ae,ce)},X=(se,ae,ce,de=!1,ye=!1)=>{const{type:ve,props:_e,ref:we,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(we!=null&&Qae(we,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const Qe=Ie&1&&De,Ve=!KL(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&c_($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}Qe&&xT(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ye,ee,de):Pe&&(ve!==Ea||ze>0&&ze&64)?re(Pe,ae,ce,!1,!0):(ve===Ea&&ze&384||!ye&&Ie&16)&&re(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||Qe)&&D1(()=>{$e&&c_($e,ae,se),Qe&&xT(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ye}=se;if(ae===Ea){Z(ce,de);return}if(ae===bie){_(se);return}const ve=()=>{E(ce),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(se.shapeFlag&1&&ye&&!ye.persisted){const{leave:_e,delayLeave:we}=ye,Te=()=>_e(ce,ve);we?we(se.el,ve,Te):Te()}else ve()},Z=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),E(se),se=ce;E(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ye,update:ve,subTree:_e,um:we}=se;de&&oH(de),ye.stop(),ve&&(ve.active=!1,X(_e,se,ae,ce)),we&&D1(we,ae),D1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},re=(se,ae,ce,de=!1,ye=!1,ve=0)=>{for(let _e=ve;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Gde(),lve(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,pe;return e&&([me,pe]=e(ee)),{render:Y,hydrate:me,createApp:bke(Y,me)}}function _T({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function cce(t,e,o=!1){const f=t.children,E=e.children;if(tl(f)&&tl(E))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,s=o[d-1];d-- >0;)o[d]=s,s=e[s];return o}const Mke=t=>t.__isTeleport,eI=t=>t&&(t.disabled||t.disabled===""),uhe=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Hae=(t,e)=>{const o=t&&t.to;return Yh(o)?e?e(o):null:o},Eke={__isTeleport:!0,process(t,e,o,f,E,d,s,n,u,b){const{mc:i,pc:S,pbc:w,o:{insert:y,querySelector:m,createText:a,createComment:c}}=b,h=eI(e.props);let{shapeFlag:p,children:v,dynamicChildren:_}=e;if(t==null){const O=e.el=a(""),C=e.anchor=a("");y(O,o,f),y(C,o,f);const x=e.target=Hae(e.props,m),R=e.targetAnchor=a("");x&&(y(R,x),s=s||uhe(x));const M=(T,P)=>{p&16&&i(v,T,P,E,d,s,n,u)};h?M(o,C):x&&M(x,R)}else{e.el=t.el;const O=e.anchor=t.anchor,C=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=eI(t.props),M=R?o:C,T=R?O:x;if(s=s||uhe(C),_?(w(t.dynamicChildren,_,M,E,d,s,n),cce(t,e,!0)):u||S(t,e,M,T,E,d,s,n,!1),h)R||yQ(e,o,O,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=Hae(e.props,m);P&&yQ(e,P,null,b,0)}else R&&yQ(e,C,x,b,1)}Cve(e)},remove(t,e,o,f,{um:E,o:{remove:d}},s){const{shapeFlag:n,children:u,anchor:b,targetAnchor:i,target:S,props:w}=t;if(S&&d(i),(s||!eI(w))&&(d(b),n&16))for(let y=0;y0?Ky||j8:null,Ave(),rM>0&&Ky&&Ky.push(t),t}function Ya(t,e,o,f,E,d){return Mve(Na(t,e,o,f,E,d,!0))}function da(t,e,o,f,E){return Mve($t(t,e,o,f,E,!0))}function oM(t){return t?t.__v_isVNode===!0:!1}function g_(t,e){return t.type===e.type&&t.key===e.key}const jZ="__vInternal",Eve=({key:t})=>t??null,iH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?Yh(t)||ku(t)||Ul(t)?{i:Mm,r:t,k:e,f:!!o}:t:null);function Na(t,e=null,o=null,f=0,E=null,d=t===Ea?0:1,s=!1,n=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Eve(e),ref:e&&iH(e),scopeId:$Z,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:E,dynamicChildren:null,appContext:null,ctx:Mm};return n?(uce(u,o),d&128&&t.normalize(u)):o&&(u.shapeFlag|=Yh(o)?8:16),rM>0&&!s&&Ky&&(u.patchFlag>0||d&6)&&u.patchFlag!==32&&Ky.push(u),u}const $t=Lke;function Lke(t,e=null,o=null,f=0,E=null,d=!1){if((!t||t===vve)&&(t=Z0),oM(t)){const n=EO(t,e,!0);return o&&uce(n,o),rM>0&&!d&&Ky&&(n.shapeFlag&6?Ky[Ky.indexOf(t)]=n:Ky.push(n)),n.patchFlag|=-2,n}if(jke(t)&&(t=t.__vccOpts),e){e=Ike(e);let{class:n,style:u}=e;n&&!Yh(n)&&(e.class=Gv(n)),Fd(u)&&(J1e(u)&&!tl(u)&&(u=pp({},u)),e.style=rD(u))}const s=Yh(t)?1:q4e(t)?128:Mke(t)?64:Fd(t)?4:Ul(t)?2:0;return Na(t,e,o,f,E,s,d,!0)}function Ike(t){return t?J1e(t)||jZ in t?pp({},t):t:null}function EO(t,e,o=!1){const{props:f,ref:E,patchFlag:d,children:s}=t,n=e?qi(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&Eve(n),ref:e&&e.ref?o&&E?tl(E)?E.concat(iH(e)):[E,iH(e)]:iH(e):E,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ea?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&EO(t.ssContent),ssFallback:t.ssFallback&&EO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ua(t=" ",e=0){return $t(sD,null,t,e)}function za(t="",e=!1){return e?(Uo(),da(Z0,null,t)):$t(Z0,null,t)}function vx(t){return t==null||typeof t=="boolean"?$t(Z0):tl(t)?$t(Ea,null,t.slice()):typeof t=="object"?t4(t):$t(sD,null,String(t))}function t4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:EO(t)}function uce(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(tl(e))o=16;else if(typeof e=="object")if(f&65){const E=e.default;E&&(E._c&&(E._d=!1),uce(t,E()),E._c&&(E._d=!0));return}else{o=32;const E=e._;!E&&!(jZ in e)?e._ctx=Mm:E===3&&Mm&&(Mm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ul(e)?(e={default:e,_ctx:Mm},o=32):(e=String(e),f&64?(o=16,e=[Ua(e)]):o=8);t.children=e,t.shapeFlag|=o}function qi(...t){const e={};for(let o=0;oYp||Mm;let dce,T8,dhe="__VUE_INSTANCE_SETTERS__";(T8=Dae()[dhe])||(T8=Dae()[dhe]=[]),T8.push(t=>Yp=t),dce=t=>{T8.length>1?T8.forEach(e=>e(t)):T8[0](t)};const iM=t=>{dce(t),t.scope.on()},VT=()=>{Yp&&Yp.scope.off(),dce(null)};function Pve(t){return t.vnode.shapeFlag&4}let wI=!1;function Nke(t,e=!1){wI=e;const{props:o,children:f}=t.vnode,E=Pve(t);_ke(t,o,E,e),Ske(t,f);const d=E?Fke(t,e):void 0;return wI=!1,d}function Fke(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=iD(new Proxy(t.ctx,dke));const{setup:f}=o;if(f){const E=t.setupContext=f.length>1?Vke(t):null;iM(t),SM();const d=h4(f,t,0,[t.props,E]);if(kM(),VT(),I1e(d)){if(d.then(VT,VT),e)return d.then(s=>{Zae(t,s,e)}).catch(s=>{aD(s,t,0)});t.asyncDep=d}else Zae(t,d,e)}else Rve(t,e)}function Zae(t,e,o){Ul(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Fd(e)&&(t.setupState=rve(e)),Rve(t,o)}let hhe;function Rve(t,e,o){const f=t.type;if(!t.render){if(!e&&hhe&&!f.render){const E=f.template||sce(t).template;if(E){const{isCustomElement:d,compilerOptions:s}=t.appContext.config,{delimiters:n,compilerOptions:u}=f,b=pp(pp({isCustomElement:d,delimiters:n},s),u);f.render=hhe(E,b)}}t.render=f.render||Ox}iM(t),SM(),hke(t),kM(),VT()}function $ke(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return V1(t,"get","$attrs"),e[o]}}))}function Vke(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return $ke(t)},slots:t.slots,emit:t.emit,expose:e}}function QZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(rve(iD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in JL)return JL[o](t)},has(e,o){return o in e||o in JL}}))}function Uke(t,e=!0){return Ul(t)?t.displayName||t.name:t.name||e&&t.__name}function jke(t){return Ul(t)&&"__vccOpts"in t}const nr=(t,e)=>z4e(t,e,wI);function U1(t,e,o){const f=arguments.length;return f===2?Fd(e)&&!tl(e)?oM(e)?$t(t,null,[e]):$t(t,e):$t(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&oM(o)&&(o=[o]),$t(t,e,o))}const Qke=Symbol.for("v-scx"),Hke=()=>Kl(Qke),Zke="3.3.4",qke="http://www.w3.org/2000/svg",PT=typeof document<"u"?document:null,phe=PT&&PT.createElement("template"),Wke={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const E=e?PT.createElementNS(qke,t):PT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&E.setAttribute("multiple",f.multiple),E},createText:t=>PT.createTextNode(t),createComment:t=>PT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>PT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,E,d){const s=o?o.previousSibling:e.lastChild;if(E&&(E===d||E.nextSibling))for(;e.insertBefore(E.cloneNode(!0),o),!(E===d||!(E=E.nextSibling)););else{phe.innerHTML=f?`${t}`:t;const n=phe.content;if(f){const u=n.firstChild;for(;u.firstChild;)n.appendChild(u.firstChild);n.removeChild(u)}e.insertBefore(n,o)}return[s?s.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function Yke(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function Xke(t,e,o){const f=t.style,E=Yh(o);if(o&&!E){if(e&&!Yh(e))for(const d in e)o[d]==null&&qae(f,d,"");for(const d in o)qae(f,d,o[d])}else{const d=f.display;E?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const mhe=/\s*!important$/;function qae(t,e,o){if(tl(o))o.forEach(f=>qae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=Gke(t,e);mhe.test(o)?t.setProperty(KT(f),o.replace(mhe,""),"important"):t[f]=o}}const ghe=["Webkit","Moz","ms"],xie={};function Gke(t,e){const o=xie[e];if(o)return o;let f=ib(e);if(f!=="filter"&&f in t)return xie[e]=f;f=A_(f);for(let E=0;E_ie||(r5e.then(()=>_ie=0),_ie=Date.now());function i5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;nb(a5e(f,o.value),e,5,[f])};return o.value=t,o.attached=o5e(),o}function a5e(t,e){if(tl(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>E=>!E._stopped&&f&&f(E))}else return e}const bhe=/^on[a-z]/,s5e=(t,e,o,f,E=!1,d,s,n,u)=>{e==="class"?Yke(t,f,E):e==="style"?Xke(t,o,f):DZ(e)?Dle(e)||t5e(t,e,o,f,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):l5e(t,e,f,E))?Jke(t,e,f,d,s,n,u):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),Kke(t,e,f,E))};function l5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&bhe.test(e)&&Ul(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||bhe.test(e)&&Yh(o)?!1:e in t}const XS="transition",CL="animation",C_=(t,{slots:e})=>U1(oke,Ive(t),e);C_.displayName="Transition";const Lve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},c5e=C_.props=pp({},hve,Lve),wT=(t,e=[])=>{tl(t)?t.forEach(o=>o(...e)):t&&t(...e)},xhe=t=>t?tl(t)?t.some(e=>e.length>1):t.length>1:!1;function Ive(t){const e={};for(const A in t)A in Lve||(e[A]=t[A]);if(t.css===!1)return e;const{name:o="v",type:f,duration:E,enterFromClass:d=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:u=d,appearActiveClass:b=s,appearToClass:i=n,leaveFromClass:S=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,m=u5e(E),a=m&&m[0],c=m&&m[1],{onBeforeEnter:h,onEnter:p,onEnterCancelled:v,onLeave:_,onLeaveCancelled:O,onBeforeAppear:C=h,onAppear:x=p,onAppearCancelled:R=v}=e,M=(A,L,D)=>{JS(A,L?i:n),JS(A,L?b:s),D&&D()},T=(A,L)=>{A._isLeaving=!1,JS(A,S),JS(A,y),JS(A,w),L&&L()},P=A=>(L,D)=>{const k=A?x:p,I=()=>M(L,A,D);wT(k,[L,I]),_he(()=>{JS(L,A?u:d),SO(L,A?i:n),xhe(k)||whe(L,f,a,I)})};return pp(e,{onBeforeEnter(A){wT(h,[A]),SO(A,d),SO(A,s)},onBeforeAppear(A){wT(C,[A]),SO(A,u),SO(A,b)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){A._isLeaving=!0;const D=()=>T(A,L);SO(A,S),Bve(),SO(A,w),_he(()=>{A._isLeaving&&(JS(A,S),SO(A,y),xhe(_)||whe(A,f,c,D))}),wT(_,[A,D])},onEnterCancelled(A){M(A,!1),wT(v,[A])},onAppearCancelled(A){M(A,!0),wT(R,[A])},onLeaveCancelled(A){T(A),wT(O,[A])}})}function u5e(t){if(t==null)return null;if(Fd(t))return[wie(t.enter),wie(t.leave)];{const e=wie(t);return[e,e]}}function wie(t){return z1e(t)}function SO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function JS(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function _he(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let f5e=0;function whe(t,e,o,f){const E=t._endId=++f5e,d=()=>{E===t._endId&&f()};if(o)return setTimeout(d,o);const{type:s,timeout:n,propCount:u}=Dve(t,e);if(!s)return f();const b=s+"end";let i=0;const S=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=u&&S()};setTimeout(()=>{i(o[m]||"").split(", "),E=f(`${XS}Delay`),d=f(`${XS}Duration`),s=Ohe(E,d),n=f(`${CL}Delay`),u=f(`${CL}Duration`),b=Ohe(n,u);let i=null,S=0,w=0;e===XS?s>0&&(i=XS,S=s,w=d.length):e===CL?b>0&&(i=CL,S=b,w=u.length):(S=Math.max(s,b),i=S>0?s>b?XS:CL:null,w=i?i===XS?d.length:u.length:0);const y=i===XS&&/\b(transform|all)(,|$)/.test(f(`${XS}Property`).toString());return{type:i,timeout:S,propCount:w,hasTransform:y}}function Ohe(t,e){for(;t.lengthShe(o)+She(t[f])))}function She(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Bve(){return document.body.offsetHeight}const zve=new WeakMap,Nve=new WeakMap,Fve={name:"TransitionGroup",props:pp({},c5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=fce(),f=dve();let E,d;return rce(()=>{if(!E.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!g5e(E[0].el,o.vnode.el,s))return;E.forEach(h5e),E.forEach(p5e);const n=E.filter(m5e);Bve(),n.forEach(u=>{const b=u.el,i=b.style;SO(b,s),i.transform=i.webkitTransform=i.transitionDuration="";const S=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",S),b._moveCb=null,JS(b,s))};b.addEventListener("transitionend",S)})}),()=>{const s=sl(t),n=Ive(s);let u=s.tag||Ea;E=d,d=e.default?Jle(e.default()):[];for(let b=0;bdelete t.mode;Fve.props;const hce=Fve;function h5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function p5e(t){Nve.set(t,t.el.getBoundingClientRect())}function m5e(t){const e=zve.get(t),o=Nve.get(t),f=e.left-o.left,E=e.top-o.top;if(f||E){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${E}px)`,d.transitionDuration="0s",t}}function g5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(s=>{s.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(s=>s&&f.classList.add(s)),f.style.display="none";const E=e.nodeType===1?e:e.parentNode;E.appendChild(f);const{hasTransform:d}=Dve(f);return E.removeChild(f),d}const khe=t=>{const e=t.props["onUpdate:modelValue"]||!1;return tl(e)?o=>oH(e,o):e};function v5e(t){t.target.composing=!0}function The(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const y5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},E){t._assign=khe(E);const d=f||E.props&&E.props.type==="number";L8(t,e?"change":"input",s=>{if(s.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=Iae(n)),t._assign(n)}),o&&L8(t,"change",()=>{t.value=t.value.trim()}),e||(L8(t,"compositionstart",v5e),L8(t,"compositionend",The),L8(t,"change",The))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:E}},d){if(t._assign=khe(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(E||t.type==="number")&&Iae(t.value)===e))return;const s=e??"";t.value!==s&&(t.value=s)}},b5e=["ctrl","shift","alt","meta"],x5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>b5e.some(o=>t[`${o}Key`]&&!e.includes(o))},RH=(t,e)=>(o,...f)=>{for(let E=0;Eo=>{if(!("key"in o))return;const f=KT(o.key);if(e.some(E=>E===f||_5e[E]===f))return t(o)},A4={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):AL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),AL(t,!0),f.enter(t)):f.leave(t,()=>{AL(t,!1)}):AL(t,e))},beforeUnmount(t,{value:e}){AL(t,e)}};function AL(t,e){t.style.display=e?t._vod:"none"}const w5e=pp({patchProp:s5e},Wke);let Che;function O5e(){return Che||(Che=Tke(w5e))}const S5e=(...t)=>{const e=O5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const E=k5e(f);if(!E)return;const d=e._component;!Ul(d)&&!d.render&&!d.template&&(d.template=E.innerHTML),E.innerHTML="";const s=o(E,!1,E instanceof SVGElement);return E instanceof Element&&(E.removeAttribute("v-cloak"),E.setAttribute("data-v-app","")),s},e};function k5e(t){return Yh(t)?document.querySelector(t):t}/*! +var h3e=Object.defineProperty;var p3e=(t,e,o)=>e in t?h3e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var pu=(t,e,o)=>(p3e(t,typeof e!="symbol"?e+"":e,o),o),m3e=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)};var fie=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)};var dQ=(t,e,o)=>(m3e(t,e,"access private method"),o);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))f(E);new MutationObserver(E=>{for(const d of E)if(d.type==="childList")for(const s of d.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function o(E){const d={};return E.integrity&&(d.integrity=E.integrity),E.referrerPolicy&&(d.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?d.credentials="include":E.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(E){if(E.ep)return;E.ep=!0;const d=o(E);fetch(E.href,d)}})();function u1e(t,e){return function(){return t.apply(e,arguments)}}const{toString:g3e}=Object.prototype,{getPrototypeOf:Mle}=Object,EZ=(t=>e=>{const o=g3e.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Mx=t=>(t=t.toLowerCase(),e=>EZ(e)===t),PZ=t=>e=>typeof e===t,{isArray:wM}=Array,hI=PZ("undefined");function v3e(t){return t!==null&&!hI(t)&&t.constructor!==null&&!hI(t.constructor)&&Jv(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f1e=Mx("ArrayBuffer");function y3e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&f1e(t.buffer),e}const b3e=PZ("string"),Jv=PZ("function"),d1e=PZ("number"),RZ=t=>t!==null&&typeof t=="object",x3e=t=>t===!0||t===!1,tH=t=>{if(EZ(t)!=="object")return!1;const e=Mle(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},_3e=Mx("Date"),w3e=Mx("File"),O3e=Mx("Blob"),S3e=Mx("FileList"),k3e=t=>RZ(t)&&Jv(t.pipe),T3e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jv(t.append)&&((e=EZ(t))==="formdata"||e==="object"&&Jv(t.toString)&&t.toString()==="[object FormData]"))},C3e=Mx("URLSearchParams"),[A3e,M3e,E3e,P3e]=["ReadableStream","Request","Response","Headers"].map(Mx),R3e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rD(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let f,E;if(typeof t!="object"&&(t=[t]),wM(t))for(f=0,E=t.length;f0;)if(E=o[f],e===E.toLowerCase())return E;return null}const DT=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),p1e=t=>!hI(t)&&t!==DT;function Aae(){const{caseless:t}=p1e(this)&&this||{},e={},o=(f,E)=>{const d=t&&h1e(e,E)||E;tH(e[d])&&tH(f)?e[d]=Aae(e[d],f):tH(f)?e[d]=Aae({},f):wM(f)?e[d]=f.slice():e[d]=f};for(let f=0,E=arguments.length;f(rD(e,(E,d)=>{o&&Jv(E)?t[d]=u1e(E,o):t[d]=E},{allOwnKeys:f}),t),I3e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),D3e=(t,e,o,f)=>{t.prototype=Object.create(e.prototype,f),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},B3e=(t,e,o,f)=>{let E,d,s;const n={};if(e=e||{},t==null)return e;do{for(E=Object.getOwnPropertyNames(t),d=E.length;d-- >0;)s=E[d],(!f||f(s,t,e))&&!n[s]&&(e[s]=t[s],n[s]=!0);t=o!==!1&&Mle(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},z3e=(t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;const f=t.indexOf(e,o);return f!==-1&&f===o},N3e=t=>{if(!t)return null;if(wM(t))return t;let e=t.length;if(!d1e(e))return null;const o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},F3e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mle(Uint8Array)),$3e=(t,e)=>{const f=(t&&t[Symbol.iterator]).call(t);let E;for(;(E=f.next())&&!E.done;){const d=E.value;e.call(t,d[0],d[1])}},V3e=(t,e)=>{let o;const f=[];for(;(o=t.exec(e))!==null;)f.push(o);return f},U3e=Mx("HTMLFormElement"),j3e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,f,E){return f.toUpperCase()+E}),Ede=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Q3e=Mx("RegExp"),m1e=(t,e)=>{const o=Object.getOwnPropertyDescriptors(t),f={};rD(o,(E,d)=>{let s;(s=e(E,d,t))!==!1&&(f[d]=s||E)}),Object.defineProperties(t,f)},H3e=t=>{m1e(t,(e,o)=>{if(Jv(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const f=t[o];if(Jv(f)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Z3e=(t,e)=>{const o={},f=E=>{E.forEach(d=>{o[d]=!0})};return wM(t)?f(t):f(String(t).split(e)),o},q3e=()=>{},W3e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,die="abcdefghijklmnopqrstuvwxyz",Pde="0123456789",g1e={DIGIT:Pde,ALPHA:die,ALPHA_DIGIT:die+die.toUpperCase()+Pde},Y3e=(t=16,e=g1e.ALPHA_DIGIT)=>{let o="";const{length:f}=e;for(;t--;)o+=e[Math.random()*f|0];return o};function X3e(t){return!!(t&&Jv(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const G3e=t=>{const e=new Array(10),o=(f,E)=>{if(RZ(f)){if(e.indexOf(f)>=0)return;if(!("toJSON"in f)){e[E]=f;const d=wM(f)?[]:{};return rD(f,(s,n)=>{const u=o(s,E+1);!hI(u)&&(d[n]=u)}),e[E]=void 0,d}}return f};return o(t,0)},K3e=Mx("AsyncFunction"),J3e=t=>t&&(RZ(t)||Jv(t))&&Jv(t.then)&&Jv(t.catch),v1e=((t,e)=>t?setImmediate:e?((o,f)=>(DT.addEventListener("message",({source:E,data:d})=>{E===DT&&d===o&&f.length&&f.shift()()},!1),E=>{f.push(E),DT.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Jv(DT.postMessage)),eSe=typeof queueMicrotask<"u"?queueMicrotask.bind(DT):typeof process<"u"&&process.nextTick||v1e,ci={isArray:wM,isArrayBuffer:f1e,isBuffer:v3e,isFormData:T3e,isArrayBufferView:y3e,isString:b3e,isNumber:d1e,isBoolean:x3e,isObject:RZ,isPlainObject:tH,isReadableStream:A3e,isRequest:M3e,isResponse:E3e,isHeaders:P3e,isUndefined:hI,isDate:_3e,isFile:w3e,isBlob:O3e,isRegExp:Q3e,isFunction:Jv,isStream:k3e,isURLSearchParams:C3e,isTypedArray:F3e,isFileList:S3e,forEach:rD,merge:Aae,extend:L3e,trim:R3e,stripBOM:I3e,inherits:D3e,toFlatObject:B3e,kindOf:EZ,kindOfTest:Mx,endsWith:z3e,toArray:N3e,forEachEntry:$3e,matchAll:V3e,isHTMLForm:U3e,hasOwnProperty:Ede,hasOwnProp:Ede,reduceDescriptors:m1e,freezeMethods:H3e,toObjectSet:Z3e,toCamelCase:j3e,noop:q3e,toFiniteNumber:W3e,findKey:h1e,global:DT,isContextDefined:p1e,ALPHABET:g1e,generateString:Y3e,isSpecCompliantForm:X3e,toJSONObject:G3e,isAsyncFn:K3e,isThenable:J3e,setImmediate:v1e,asap:eSe};function sc(t,e,o,f,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),f&&(this.request=f),E&&(this.response=E)}ci.inherits(sc,Error,{toJSON:function(){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:ci.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y1e=sc.prototype,b1e={};["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(t=>{b1e[t]={value:t}});Object.defineProperties(sc,b1e);Object.defineProperty(y1e,"isAxiosError",{value:!0});sc.from=(t,e,o,f,E,d)=>{const s=Object.create(y1e);return ci.toFlatObject(t,s,function(u){return u!==Error.prototype},n=>n!=="isAxiosError"),sc.call(s,t.message,e,o,f,E),s.cause=t,s.name=t.name,d&&Object.assign(s,d),s};const tSe=null;function Mae(t){return ci.isPlainObject(t)||ci.isArray(t)}function x1e(t){return ci.endsWith(t,"[]")?t.slice(0,-2):t}function Rde(t,e,o){return t?t.concat(e).map(function(E,d){return E=x1e(E),!o&&d?"["+E+"]":E}).join(o?".":""):e}function nSe(t){return ci.isArray(t)&&!t.some(Mae)}const rSe=ci.toFlatObject(ci,{},null,function(e){return/^is[A-Z]/.test(e)});function LZ(t,e,o){if(!ci.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,o=ci.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,c){return!ci.isUndefined(c[a])});const f=o.metaTokens,E=o.visitor||i,d=o.dots,s=o.indexes,u=(o.Blob||typeof Blob<"u"&&Blob)&&ci.isSpecCompliantForm(e);if(!ci.isFunction(E))throw new TypeError("visitor must be a function");function b(m){if(m===null)return"";if(ci.isDate(m))return m.toISOString();if(!u&&ci.isBlob(m))throw new sc("Blob is not supported. Use a Buffer instead.");return ci.isArrayBuffer(m)||ci.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function i(m,a,c){let h=m;if(m&&!c&&typeof m=="object"){if(ci.endsWith(a,"{}"))a=f?a:a.slice(0,-2),m=JSON.stringify(m);else if(ci.isArray(m)&&nSe(m)||(ci.isFileList(m)||ci.endsWith(a,"[]"))&&(h=ci.toArray(m)))return a=x1e(a),h.forEach(function(v,_){!(ci.isUndefined(v)||v===null)&&e.append(s===!0?Rde([a],_,d):s===null?a:a+"[]",b(v))}),!1}return Mae(m)?!0:(e.append(Rde(c,a,d),b(m)),!1)}const S=[],w=Object.assign(rSe,{defaultVisitor:i,convertValue:b,isVisitable:Mae});function y(m,a){if(!ci.isUndefined(m)){if(S.indexOf(m)!==-1)throw Error("Circular reference detected in "+a.join("."));S.push(m),ci.forEach(m,function(h,p){(!(ci.isUndefined(h)||h===null)&&E.call(e,h,ci.isString(p)?p.trim():p,a,w))===!0&&y(h,a?a.concat(p):[p])}),S.pop()}}if(!ci.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Lde(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(f){return e[f]})}function Ele(t,e){this._pairs=[],t&&LZ(t,this,e)}const _1e=Ele.prototype;_1e.append=function(e,o){this._pairs.push([e,o])};_1e.toString=function(e){const o=e?function(f){return e.call(this,f,Lde)}:Lde;return this._pairs.map(function(E){return o(E[0])+"="+o(E[1])},"").join("&")};function oSe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w1e(t,e,o){if(!e)return t;const f=o&&o.encode||oSe,E=o&&o.serialize;let d;if(E?d=E(e,o):d=ci.isURLSearchParams(e)?e.toString():new Ele(e,o).toString(f),d){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class iSe{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ci.forEach(this.handlers,function(f){f!==null&&e(f)})}}const Ide=iSe,O1e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},aSe=typeof URLSearchParams<"u"?URLSearchParams:Ele,sSe=typeof FormData<"u"?FormData:null,lSe=typeof Blob<"u"?Blob:null,cSe={isBrowser:!0,classes:{URLSearchParams:aSe,FormData:sSe,Blob:lSe},protocols:["http","https","file","blob","url","data"]},Ple=typeof window<"u"&&typeof document<"u",uSe=(t=>Ple&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),fSe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dSe=Ple&&window.location.href||"http://localhost",hSe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ple,hasStandardBrowserEnv:uSe,hasStandardBrowserWebWorkerEnv:fSe,origin:dSe},Symbol.toStringTag,{value:"Module"})),_x={...hSe,...cSe};function pSe(t,e){return LZ(t,new _x.classes.URLSearchParams,Object.assign({visitor:function(o,f,E,d){return _x.isNode&&ci.isBuffer(o)?(this.append(f,o.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function mSe(t){return ci.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gSe(t){const e={},o=Object.keys(t);let f;const E=o.length;let d;for(f=0;f=o.length;return s=!s&&ci.isArray(E)?E.length:s,u?(ci.hasOwnProp(E,s)?E[s]=[E[s],f]:E[s]=f,!n):((!E[s]||!ci.isObject(E[s]))&&(E[s]=[]),e(o,f,E[s],d)&&ci.isArray(E[s])&&(E[s]=gSe(E[s])),!n)}if(ci.isFormData(t)&&ci.isFunction(t.entries)){const o={};return ci.forEachEntry(t,(f,E)=>{e(mSe(f),E,o,0)}),o}return null}function vSe(t,e,o){if(ci.isString(t))try{return(e||JSON.parse)(t),ci.trim(t)}catch(f){if(f.name!=="SyntaxError")throw f}return(o||JSON.stringify)(t)}const Rle={transitional:O1e,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const f=o.getContentType()||"",E=f.indexOf("application/json")>-1,d=ci.isObject(e);if(d&&ci.isHTMLForm(e)&&(e=new FormData(e)),ci.isFormData(e))return E?JSON.stringify(S1e(e)):e;if(ci.isArrayBuffer(e)||ci.isBuffer(e)||ci.isStream(e)||ci.isFile(e)||ci.isBlob(e)||ci.isReadableStream(e))return e;if(ci.isArrayBufferView(e))return e.buffer;if(ci.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(d){if(f.indexOf("application/x-www-form-urlencoded")>-1)return pSe(e,this.formSerializer).toString();if((n=ci.isFileList(e))||f.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return LZ(n?{"files[]":e}:e,u&&new u,this.formSerializer)}}return d||E?(o.setContentType("application/json",!1),vSe(e)):e}],transformResponse:[function(e){const o=this.transitional||Rle.transitional,f=o&&o.forcedJSONParsing,E=this.responseType==="json";if(ci.isResponse(e)||ci.isReadableStream(e))return e;if(e&&ci.isString(e)&&(f&&!this.responseType||E)){const s=!(o&&o.silentJSONParsing)&&E;try{return JSON.parse(e)}catch(n){if(s)throw n.name==="SyntaxError"?sc.from(n,sc.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_x.classes.FormData,Blob:_x.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ci.forEach(["delete","get","head","post","put","patch"],t=>{Rle.headers[t]={}});const Lle=Rle,ySe=ci.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"]),bSe=t=>{const e={};let o,f,E;return t&&t.split(` +`).forEach(function(s){E=s.indexOf(":"),o=s.substring(0,E).trim().toLowerCase(),f=s.substring(E+1).trim(),!(!o||e[o]&&ySe[o])&&(o==="set-cookie"?e[o]?e[o].push(f):e[o]=[f]:e[o]=e[o]?e[o]+", "+f:f)}),e},Dde=Symbol("internals");function TL(t){return t&&String(t).trim().toLowerCase()}function nH(t){return t===!1||t==null?t:ci.isArray(t)?t.map(nH):String(t)}function xSe(t){const e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=o.exec(t);)e[f[1]]=f[2];return e}const _Se=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hie(t,e,o,f,E){if(ci.isFunction(f))return f.call(this,e,o);if(E&&(e=o),!!ci.isString(e)){if(ci.isString(f))return e.indexOf(f)!==-1;if(ci.isRegExp(f))return f.test(e)}}function wSe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f)}function OSe(t,e){const o=ci.toCamelCase(" "+e);["get","set","has"].forEach(f=>{Object.defineProperty(t,f+o,{value:function(E,d,s){return this[f].call(this,e,E,d,s)},configurable:!0})})}let IZ=class{constructor(e){e&&this.set(e)}set(e,o,f){const E=this;function d(n,u,b){const i=TL(u);if(!i)throw new Error("header name must be a non-empty string");const S=ci.findKey(E,i);(!S||E[S]===void 0||b===!0||b===void 0&&E[S]!==!1)&&(E[S||u]=nH(n))}const s=(n,u)=>ci.forEach(n,(b,i)=>d(b,i,u));if(ci.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(ci.isString(e)&&(e=e.trim())&&!_Se(e))s(bSe(e),o);else if(ci.isHeaders(e))for(const[n,u]of e.entries())d(u,n,f);else e!=null&&d(o,e,f);return this}get(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);if(f){const E=this[f];if(!o)return E;if(o===!0)return xSe(E);if(ci.isFunction(o))return o.call(this,E,f);if(ci.isRegExp(o))return o.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=TL(e),e){const f=ci.findKey(this,e);return!!(f&&this[f]!==void 0&&(!o||hie(this,this[f],f,o)))}return!1}delete(e,o){const f=this;let E=!1;function d(s){if(s=TL(s),s){const n=ci.findKey(f,s);n&&(!o||hie(f,f[n],n,o))&&(delete f[n],E=!0)}}return ci.isArray(e)?e.forEach(d):d(e),E}clear(e){const o=Object.keys(this);let f=o.length,E=!1;for(;f--;){const d=o[f];(!e||hie(this,this[d],d,e,!0))&&(delete this[d],E=!0)}return E}normalize(e){const o=this,f={};return ci.forEach(this,(E,d)=>{const s=ci.findKey(f,d);if(s){o[s]=nH(E),delete o[d];return}const n=e?wSe(d):String(d).trim();n!==d&&delete o[d],o[n]=nH(E),f[n]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return ci.forEach(this,(f,E)=>{f!=null&&f!==!1&&(o[E]=e&&ci.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const f=new this(e);return o.forEach(E=>f.set(E)),f}static accessor(e){const f=(this[Dde]=this[Dde]={accessors:{}}).accessors,E=this.prototype;function d(s){const n=TL(s);f[n]||(OSe(E,s),f[n]=!0)}return ci.isArray(e)?e.forEach(d):d(e),this}};IZ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ci.reduceDescriptors(IZ.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(f){this[o]=f}}});ci.freezeMethods(IZ);const wx=IZ;function pie(t,e){const o=this||Lle,f=e||o,E=wx.from(f.headers);let d=f.data;return ci.forEach(t,function(n){d=n.call(o,d,E.normalize(),e?e.status:void 0)}),E.normalize(),d}function k1e(t){return!!(t&&t.__CANCEL__)}function OM(t,e,o){sc.call(this,t??"canceled",sc.ERR_CANCELED,e,o),this.name="CanceledError"}ci.inherits(OM,sc,{__CANCEL__:!0});function T1e(t,e,o){const f=o.config.validateStatus;!o.status||!f||f(o.status)?t(o):e(new sc("Request failed with status code "+o.status,[sc.ERR_BAD_REQUEST,sc.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function SSe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function kSe(t,e){t=t||10;const o=new Array(t),f=new Array(t);let E=0,d=0,s;return e=e!==void 0?e:1e3,function(u){const b=Date.now(),i=f[d];s||(s=b),o[E]=u,f[E]=b;let S=d,w=0;for(;S!==E;)w+=o[S++],S=S%t;if(E=(E+1)%t,E===d&&(d=(d+1)%t),b-s{o=i,E=null,d&&(clearTimeout(d),d=null),t.apply(null,b)};return[(...b)=>{const i=Date.now(),S=i-o;S>=f?s(b,i):(E=b,d||(d=setTimeout(()=>{d=null,s(E)},f-S)))},()=>E&&s(E)]}const kH=(t,e,o=3)=>{let f=0;const E=kSe(50,250);return TSe(d=>{const s=d.loaded,n=d.lengthComputable?d.total:void 0,u=s-f,b=E(u),i=s<=n;f=s;const S={loaded:s,total:n,progress:n?s/n:void 0,bytes:u,rate:b||void 0,estimated:b&&n&&i?(n-s)/b:void 0,event:d,lengthComputable:n!=null,[e?"download":"upload"]:!0};t(S)},o)},Bde=(t,e)=>{const o=t!=null;return[f=>e[0]({lengthComputable:o,total:t,loaded:f}),e[1]]},zde=t=>(...e)=>ci.asap(()=>t(...e)),CSe=_x.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let f;function E(d){let s=d;return e&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return f=E(window.location.href),function(s){const n=ci.isString(s)?E(s):s;return n.protocol===f.protocol&&n.host===f.host}}():function(){return function(){return!0}}(),ASe=_x.hasStandardBrowserEnv?{write(t,e,o,f,E,d){const s=[t+"="+encodeURIComponent(e)];ci.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),ci.isString(f)&&s.push("path="+f),ci.isString(E)&&s.push("domain="+E),d===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MSe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ESe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function C1e(t,e){return t&&!MSe(e)?ESe(t,e):e}const Nde=t=>t instanceof wx?{...t}:t;function ZT(t,e){e=e||{};const o={};function f(b,i,S){return ci.isPlainObject(b)&&ci.isPlainObject(i)?ci.merge.call({caseless:S},b,i):ci.isPlainObject(i)?ci.merge({},i):ci.isArray(i)?i.slice():i}function E(b,i,S){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b,S)}else return f(b,i,S)}function d(b,i){if(!ci.isUndefined(i))return f(void 0,i)}function s(b,i){if(ci.isUndefined(i)){if(!ci.isUndefined(b))return f(void 0,b)}else return f(void 0,i)}function n(b,i,S){if(S in e)return f(b,i);if(S in t)return f(void 0,b)}const u={url:d,method:d,data:d,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:n,headers:(b,i)=>E(Nde(b),Nde(i),!0)};return ci.forEach(Object.keys(Object.assign({},t,e)),function(i){const S=u[i]||E,w=S(t[i],e[i],i);ci.isUndefined(w)&&S!==n||(o[i]=w)}),o}const A1e=t=>{const e=ZT({},t);let{data:o,withXSRFToken:f,xsrfHeaderName:E,xsrfCookieName:d,headers:s,auth:n}=e;e.headers=s=wx.from(s),e.url=w1e(C1e(e.baseURL,e.url),t.params,t.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let u;if(ci.isFormData(o)){if(_x.hasStandardBrowserEnv||_x.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[b,...i]=u?u.split(";").map(S=>S.trim()).filter(Boolean):[];s.setContentType([b||"multipart/form-data",...i].join("; "))}}if(_x.hasStandardBrowserEnv&&(f&&ci.isFunction(f)&&(f=f(e)),f||f!==!1&&CSe(e.url))){const b=E&&d&&ASe.read(d);b&&s.set(E,b)}return e},PSe=typeof XMLHttpRequest<"u",RSe=PSe&&function(t){return new Promise(function(o,f){const E=A1e(t);let d=E.data;const s=wx.from(E.headers).normalize();let{responseType:n,onUploadProgress:u,onDownloadProgress:b}=E,i,S,w,y,m;function a(){y&&y(),m&&m(),E.cancelToken&&E.cancelToken.unsubscribe(i),E.signal&&E.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;c.open(E.method.toUpperCase(),E.url,!0),c.timeout=E.timeout;function h(){if(!c)return;const v=wx.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),O={data:!n||n==="text"||n==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};T1e(function(x){o(x),a()},function(x){f(x),a()},O),c=null}"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(f(new sc("Request aborted",sc.ECONNABORTED,t,c)),c=null)},c.onerror=function(){f(new sc("Network Error",sc.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let _=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const O=E.transitional||O1e;E.timeoutErrorMessage&&(_=E.timeoutErrorMessage),f(new sc(_,O.clarifyTimeoutError?sc.ETIMEDOUT:sc.ECONNABORTED,t,c)),c=null},d===void 0&&s.setContentType(null),"setRequestHeader"in c&&ci.forEach(s.toJSON(),function(_,O){c.setRequestHeader(O,_)}),ci.isUndefined(E.withCredentials)||(c.withCredentials=!!E.withCredentials),n&&n!=="json"&&(c.responseType=E.responseType),b&&([w,m]=kH(b,!0),c.addEventListener("progress",w)),u&&c.upload&&([S,y]=kH(u),c.upload.addEventListener("progress",S),c.upload.addEventListener("loadend",y)),(E.cancelToken||E.signal)&&(i=v=>{c&&(f(!v||v.type?new OM(null,t,c):v),c.abort(),c=null)},E.cancelToken&&E.cancelToken.subscribe(i),E.signal&&(E.signal.aborted?i():E.signal.addEventListener("abort",i)));const p=SSe(E.url);if(p&&_x.protocols.indexOf(p)===-1){f(new sc("Unsupported protocol "+p+":",sc.ERR_BAD_REQUEST,t));return}c.send(d||null)})},LSe=(t,e)=>{let o=new AbortController,f;const E=function(u){if(!f){f=!0,s();const b=u instanceof Error?u:this.reason;o.abort(b instanceof sc?b:new OM(b instanceof Error?b.message:b))}};let d=e&&setTimeout(()=>{E(new sc(`timeout ${e} of ms exceeded`,sc.ETIMEDOUT))},e);const s=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",E):u.unsubscribe(E))}),t=null)};t.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",E));const{signal:n}=o;return n.unsubscribe=s,[n,()=>{d&&clearTimeout(d),d=null}]},ISe=LSe,DSe=function*(t,e){let o=t.byteLength;if(!e||o{const d=BSe(t,e,E);let s=0,n,u=b=>{n||(n=!0,f&&f(b))};return new ReadableStream({async pull(b){try{const{done:i,value:S}=await d.next();if(i){u(),b.close();return}let w=S.byteLength;if(o){let y=s+=w;o(y)}b.enqueue(new Uint8Array(S))}catch(i){throw u(i),i}},cancel(b){return u(b),d.return()}},{highWaterMark:2})},DZ=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",M1e=DZ&&typeof ReadableStream=="function",Eae=DZ&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),E1e=(t,...e)=>{try{return!!t(...e)}catch{return!1}},zSe=M1e&&E1e(()=>{let t=!1;const e=new Request(_x.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),$de=64*1024,Pae=M1e&&E1e(()=>ci.isReadableStream(new Response("").body)),TH={stream:Pae&&(t=>t.body)};DZ&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!TH[e]&&(TH[e]=ci.isFunction(t[e])?o=>o[e]():(o,f)=>{throw new sc(`Response type '${e}' is not supported`,sc.ERR_NOT_SUPPORT,f)})})})(new Response);const NSe=async t=>{if(t==null)return 0;if(ci.isBlob(t))return t.size;if(ci.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(ci.isArrayBufferView(t)||ci.isArrayBuffer(t))return t.byteLength;if(ci.isURLSearchParams(t)&&(t=t+""),ci.isString(t))return(await Eae(t)).byteLength},FSe=async(t,e)=>{const o=ci.toFiniteNumber(t.getContentLength());return o??NSe(e)},$Se=DZ&&(async t=>{let{url:e,method:o,data:f,signal:E,cancelToken:d,timeout:s,onDownloadProgress:n,onUploadProgress:u,responseType:b,headers:i,withCredentials:S="same-origin",fetchOptions:w}=A1e(t);b=b?(b+"").toLowerCase():"text";let[y,m]=E||d||s?ISe([E,d],s):[],a,c;const h=()=>{!a&&setTimeout(()=>{y&&y.unsubscribe()}),a=!0};let p;try{if(u&&zSe&&o!=="get"&&o!=="head"&&(p=await FSe(i,f))!==0){let C=new Request(e,{method:"POST",body:f,duplex:"half"}),x;if(ci.isFormData(f)&&(x=C.headers.get("content-type"))&&i.setContentType(x),C.body){const[R,M]=Bde(p,kH(zde(u)));f=Fde(C.body,$de,R,M,Eae)}}ci.isString(S)||(S=S?"include":"omit"),c=new Request(e,{...w,signal:y,method:o.toUpperCase(),headers:i.normalize().toJSON(),body:f,duplex:"half",credentials:S});let v=await fetch(c);const _=Pae&&(b==="stream"||b==="response");if(Pae&&(n||_)){const C={};["status","statusText","headers"].forEach(T=>{C[T]=v[T]});const x=ci.toFiniteNumber(v.headers.get("content-length")),[R,M]=n&&Bde(x,kH(zde(n),!0))||[];v=new Response(Fde(v.body,$de,R,()=>{M&&M(),_&&h()},Eae),C)}b=b||"text";let O=await TH[ci.findKey(TH,b)||"text"](v,t);return!_&&h(),m&&m(),await new Promise((C,x)=>{T1e(C,x,{data:O,headers:wx.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:c})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new sc("Network Error",sc.ERR_NETWORK,t,c),{cause:v.cause||v}):sc.from(v,v&&v.code,t,c)}}),Rae={http:tSe,xhr:RSe,fetch:$Se};ci.forEach(Rae,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Vde=t=>`- ${t}`,VSe=t=>ci.isFunction(t)||t===null||t===!1,P1e={getAdapter:t=>{t=ci.isArray(t)?t:[t];const{length:e}=t;let o,f;const E={};for(let d=0;d`adapter ${n} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?d.length>1?`since : +`+d.map(Vde).join(` +`):" "+Vde(d[0]):"as no adapter specified";throw new sc("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return f},adapters:Rae};function mie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new OM(null,t)}function Ude(t){return mie(t),t.headers=wx.from(t.headers),t.data=pie.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),P1e.getAdapter(t.adapter||Lle.adapter)(t).then(function(f){return mie(t),f.data=pie.call(t,t.transformResponse,f),f.headers=wx.from(f.headers),f},function(f){return k1e(f)||(mie(t),f&&f.response&&(f.response.data=pie.call(t,t.transformResponse,f.response),f.response.headers=wx.from(f.response.headers))),Promise.reject(f)})}const R1e="1.7.4",Ile={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ile[t]=function(f){return typeof f===t||"a"+(e<1?"n ":" ")+t}});const jde={};Ile.transitional=function(e,o,f){function E(d,s){return"[Axios v"+R1e+"] Transitional option '"+d+"'"+s+(f?". "+f:"")}return(d,s,n)=>{if(e===!1)throw new sc(E(s," has been removed"+(o?" in "+o:"")),sc.ERR_DEPRECATED);return o&&!jde[s]&&(jde[s]=!0,console.warn(E(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(d,s,n):!0}};function USe(t,e,o){if(typeof t!="object")throw new sc("options must be an object",sc.ERR_BAD_OPTION_VALUE);const f=Object.keys(t);let E=f.length;for(;E-- >0;){const d=f[E],s=e[d];if(s){const n=t[d],u=n===void 0||s(n,d,t);if(u!==!0)throw new sc("option "+d+" must be "+u,sc.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new sc("Unknown option "+d,sc.ERR_BAD_OPTION)}}const Lae={assertOptions:USe,validators:Ile},WS=Lae.validators;let CH=class{constructor(e){this.defaults=e,this.interceptors={request:new Ide,response:new Ide}}async request(e,o){try{return await this._request(e,o)}catch(f){if(f instanceof Error){let E;Error.captureStackTrace?Error.captureStackTrace(E={}):E=new Error;const d=E.stack?E.stack.replace(/^.+\n/,""):"";try{f.stack?d&&!String(f.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(f.stack+=` +`+d):f.stack=d}catch{}}throw f}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=ZT(this.defaults,o);const{transitional:f,paramsSerializer:E,headers:d}=o;f!==void 0&&Lae.assertOptions(f,{silentJSONParsing:WS.transitional(WS.boolean),forcedJSONParsing:WS.transitional(WS.boolean),clarifyTimeoutError:WS.transitional(WS.boolean)},!1),E!=null&&(ci.isFunction(E)?o.paramsSerializer={serialize:E}:Lae.assertOptions(E,{encode:WS.function,serialize:WS.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=d&&ci.merge(d.common,d[o.method]);d&&ci.forEach(["delete","get","head","post","put","patch","common"],m=>{delete d[m]}),o.headers=wx.concat(s,d);const n=[];let u=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(o)===!1||(u=u&&a.synchronous,n.unshift(a.fulfilled,a.rejected))});const b=[];this.interceptors.response.forEach(function(a){b.push(a.fulfilled,a.rejected)});let i,S=0,w;if(!u){const m=[Ude.bind(this),void 0];for(m.unshift.apply(m,n),m.push.apply(m,b),w=m.length,i=Promise.resolve(o);S{if(!f._listeners)return;let d=f._listeners.length;for(;d-- >0;)f._listeners[d](E);f._listeners=null}),this.promise.then=E=>{let d;const s=new Promise(n=>{f.subscribe(n),d=n}).then(E);return s.cancel=function(){f.unsubscribe(d)},s},e(function(d,s,n){f.reason||(f.reason=new OM(d,s,n),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}static source(){let e;return{token:new L1e(function(E){e=E}),cancel:e}}};const QSe=jSe;function HSe(t){return function(o){return t.apply(null,o)}}function ZSe(t){return ci.isObject(t)&&t.isAxiosError===!0}const Iae={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(Iae).forEach(([t,e])=>{Iae[e]=t});const qSe=Iae;function I1e(t){const e=new rH(t),o=u1e(rH.prototype.request,e);return ci.extend(o,rH.prototype,e,{allOwnKeys:!0}),ci.extend(o,e,null,{allOwnKeys:!0}),o.create=function(E){return I1e(ZT(t,E))},o}const Rp=I1e(Lle);Rp.Axios=rH;Rp.CanceledError=OM;Rp.CancelToken=QSe;Rp.isCancel=k1e;Rp.VERSION=R1e;Rp.toFormData=LZ;Rp.AxiosError=sc;Rp.Cancel=Rp.CanceledError;Rp.all=function(e){return Promise.all(e)};Rp.spread=HSe;Rp.isAxiosError=ZSe;Rp.mergeConfig=ZT;Rp.AxiosHeaders=wx;Rp.formToJSON=t=>S1e(ci.isHTMLForm(t)?new FormData(t):t);Rp.getAdapter=P1e.getAdapter;Rp.HttpStatusCode=qSe;Rp.default=Rp;const ou=Rp,{Axios:oQe,AxiosError:Qde,CanceledError:iQe,isCancel:aQe,CancelToken:sQe,VERSION:lQe,all:cQe,Cancel:uQe,isAxiosError:fQe,spread:dQe,toFormData:hQe,AxiosHeaders:pQe,HttpStatusCode:mQe,formToJSON:gQe,getAdapter:vQe,mergeConfig:yQe}=ou;function Dle(t,e){const o=Object.create(null),f=t.split(",");for(let E=0;E!!o[E.toLowerCase()]:E=>!!o[E]}const Jd={},Q8=[],Ox=()=>{},WSe=()=>!1,YSe=/^on[^a-z]/,BZ=t=>YSe.test(t),Ble=t=>t.startsWith("onUpdate:"),pp=Object.assign,zle=(t,e)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1)},XSe=Object.prototype.hasOwnProperty,Du=(t,e)=>XSe.call(t,e),tl=Array.isArray,H8=t=>zZ(t)==="[object Map]",D1e=t=>zZ(t)==="[object Set]",Ul=t=>typeof t=="function",Yh=t=>typeof t=="string",Nle=t=>typeof t=="symbol",Fd=t=>t!==null&&typeof t=="object",B1e=t=>Fd(t)&&Ul(t.then)&&Ul(t.catch),z1e=Object.prototype.toString,zZ=t=>z1e.call(t),GSe=t=>zZ(t).slice(8,-1),N1e=t=>zZ(t)==="[object Object]",Fle=t=>Yh(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,oH=Dle(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),NZ=t=>{const e=Object.create(null);return o=>e[o]||(e[o]=t(o))},KSe=/-(\w)/g,ib=NZ(t=>t.replace(KSe,(e,o)=>o?o.toUpperCase():"")),JSe=/\B([A-Z])/g,JT=NZ(t=>t.replace(JSe,"-$1").toLowerCase()),A_=NZ(t=>t.charAt(0).toUpperCase()+t.slice(1)),GL=NZ(t=>t?`on${A_(t)}`:""),pI=(t,e)=>!Object.is(t,e),iH=(t,e)=>{for(let o=0;o{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:o})},Dae=t=>{const e=parseFloat(t);return isNaN(e)?t:e},F1e=t=>{const e=Yh(t)?Number(t):NaN;return isNaN(e)?t:e};let Hde;const Bae=()=>Hde||(Hde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oD(t){if(tl(t)){const e={};for(let o=0;o{if(o){const f=o.split(t4e);f.length>1&&(e[f[0].trim()]=f[1].trim())}}),e}function Gv(t){let e="";if(Yh(t))e=t;else if(tl(t))for(let o=0;oYh(t)?t:t==null?"":tl(t)||Fd(t)&&(t.toString===z1e||!Ul(t.toString))?JSON.stringify(t,V1e,2):String(t),V1e=(t,e)=>e&&e.__v_isRef?V1e(t,e.value):H8(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((o,[f,E])=>(o[`${f} =>`]=E,o),{})}:D1e(e)?{[`Set(${e.size})`]:[...e.values()]}:Fd(e)&&!tl(e)&&!N1e(e)?String(e):e;let Hv;class U1e{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hv,!e&&Hv&&(this.index=(Hv.scopes||(Hv.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const o=Hv;try{return Hv=this,e()}finally{Hv=o}}}on(){Hv=this}off(){Hv=this.parent}stop(e){if(this._active){let o,f;for(o=0,f=this.effects.length;o{const e=new Set(t);return e.w=0,e.n=0,e},Q1e=t=>(t.w&v4)>0,H1e=t=>(t.n&v4)>0,s4e=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let o=0;for(let f=0;f{(i==="length"||i>=u)&&n.push(b)})}else switch(o!==void 0&&n.push(s.get(o)),e){case"add":tl(t)?Fle(o)&&n.push(s.get("length")):(n.push(s.get(VT)),H8(t)&&n.push(s.get(Nae)));break;case"delete":tl(t)||(n.push(s.get(VT)),H8(t)&&n.push(s.get(Nae)));break;case"set":H8(t)&&n.push(s.get(VT));break}if(n.length===1)n[0]&&Fae(n[0]);else{const u=[];for(const b of n)b&&u.push(...b);Fae($le(u))}}function Fae(t,e){const o=tl(t)?t:[...t];for(const f of o)f.computed&&qde(f);for(const f of o)f.computed||qde(f)}function qde(t,e){(t!==xx||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function c4e(t,e){var o;return(o=MH.get(t))==null?void 0:o.get(e)}const u4e=Dle("__proto__,__v_isRef,__isVue"),W1e=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Nle)),f4e=Ule(),d4e=Ule(!1,!0),h4e=Ule(!0),Wde=p4e();function p4e(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...o){const f=sl(this);for(let d=0,s=this.length;d{t[e]=function(...o){SM();const f=sl(this)[e].apply(this,o);return kM(),f}}),t}function m4e(t){const e=sl(this);return V1(e,"has",t),e.hasOwnProperty(t)}function Ule(t=!1,e=!1){return function(f,E,d){if(E==="__v_isReactive")return!t;if(E==="__v_isReadonly")return t;if(E==="__v_isShallow")return e;if(E==="__v_raw"&&d===(t?e?P4e:J1e:e?K1e:G1e).get(f))return f;const s=tl(f);if(!t){if(s&&Du(Wde,E))return Reflect.get(Wde,E,d);if(E==="hasOwnProperty")return m4e}const n=Reflect.get(f,E,d);return(Nle(E)?W1e.has(E):u4e(E))||(t||V1(f,"get",E),e)?n:ku(n)?s&&Fle(E)?n:n.value:Fd(n)?t?TM(n):Am(n):n}}const g4e=Y1e(),v4e=Y1e(!0);function Y1e(t=!1){return function(o,f,E,d){let s=o[f];if(nM(s)&&ku(s)&&!ku(E))return!1;if(!t&&(!EH(E)&&!nM(E)&&(s=sl(s),E=sl(E)),!tl(o)&&ku(s)&&!ku(E)))return s.value=E,!0;const n=tl(o)&&Fle(f)?Number(f)t,FZ=t=>Reflect.getPrototypeOf(t);function hQ(t,e,o=!1,f=!1){t=t.__v_raw;const E=sl(t),d=sl(e);o||(e!==d&&V1(E,"get",e),V1(E,"get",d));const{has:s}=FZ(E),n=f?jle:o?Zle:mI;if(s.call(E,e))return n(t.get(e));if(s.call(E,d))return n(t.get(d));t!==E&&t.get(e)}function pQ(t,e=!1){const o=this.__v_raw,f=sl(o),E=sl(t);return e||(t!==E&&V1(f,"has",t),V1(f,"has",E)),t===E?o.has(t):o.has(t)||o.has(E)}function mQ(t,e=!1){return t=t.__v_raw,!e&&V1(sl(t),"iterate",VT),Reflect.get(t,"size",t)}function Yde(t){t=sl(t);const e=sl(this);return FZ(e).has.call(e,t)||(e.add(t),MO(e,"add",t,t)),this}function Xde(t,e){e=sl(e);const o=sl(this),{has:f,get:E}=FZ(o);let d=f.call(o,t);d||(t=sl(t),d=f.call(o,t));const s=E.call(o,t);return o.set(t,e),d?pI(e,s)&&MO(o,"set",t,e):MO(o,"add",t,e),this}function Gde(t){const e=sl(this),{has:o,get:f}=FZ(e);let E=o.call(e,t);E||(t=sl(t),E=o.call(e,t)),f&&f.call(e,t);const d=e.delete(t);return E&&MO(e,"delete",t,void 0),d}function Kde(){const t=sl(this),e=t.size!==0,o=t.clear();return e&&MO(t,"clear",void 0,void 0),o}function gQ(t,e){return function(f,E){const d=this,s=d.__v_raw,n=sl(s),u=e?jle:t?Zle:mI;return!t&&V1(n,"iterate",VT),s.forEach((b,i)=>f.call(E,u(b),u(i),d))}}function vQ(t,e,o){return function(...f){const E=this.__v_raw,d=sl(E),s=H8(d),n=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,b=E[t](...f),i=o?jle:e?Zle:mI;return!e&&V1(d,"iterate",u?Nae:VT),{next(){const{value:S,done:w}=b.next();return w?{value:S,done:w}:{value:n?[i(S[0]),i(S[1])]:i(S),done:w}},[Symbol.iterator](){return this}}}}function YS(t){return function(...e){return t==="delete"?!1:this}}function O4e(){const t={get(d){return hQ(this,d)},get size(){return mQ(this)},has:pQ,add:Yde,set:Xde,delete:Gde,clear:Kde,forEach:gQ(!1,!1)},e={get(d){return hQ(this,d,!1,!0)},get size(){return mQ(this)},has:pQ,add:Yde,set:Xde,delete:Gde,clear:Kde,forEach:gQ(!1,!0)},o={get(d){return hQ(this,d,!0)},get size(){return mQ(this,!0)},has(d){return pQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:gQ(!0,!1)},f={get(d){return hQ(this,d,!0,!0)},get size(){return mQ(this,!0)},has(d){return pQ.call(this,d,!0)},add:YS("add"),set:YS("set"),delete:YS("delete"),clear:YS("clear"),forEach:gQ(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=vQ(d,!1,!1),o[d]=vQ(d,!0,!1),e[d]=vQ(d,!1,!0),f[d]=vQ(d,!0,!0)}),[t,o,e,f]}const[S4e,k4e,T4e,C4e]=O4e();function Qle(t,e){const o=e?t?C4e:T4e:t?k4e:S4e;return(f,E,d)=>E==="__v_isReactive"?!t:E==="__v_isReadonly"?t:E==="__v_raw"?f:Reflect.get(Du(o,E)&&E in f?o:f,E,d)}const A4e={get:Qle(!1,!1)},M4e={get:Qle(!1,!0)},E4e={get:Qle(!0,!1)},G1e=new WeakMap,K1e=new WeakMap,J1e=new WeakMap,P4e=new WeakMap;function R4e(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function L4e(t){return t.__v_skip||!Object.isExtensible(t)?0:R4e(GSe(t))}function Am(t){return nM(t)?t:Hle(t,!1,X1e,A4e,G1e)}function eve(t){return Hle(t,!1,w4e,M4e,K1e)}function TM(t){return Hle(t,!0,_4e,E4e,J1e)}function Hle(t,e,o,f,E){if(!Fd(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=E.get(t);if(d)return d;const s=L4e(t);if(s===0)return t;const n=new Proxy(t,s===2?f:o);return E.set(t,n),n}function CO(t){return nM(t)?CO(t.__v_raw):!!(t&&t.__v_isReactive)}function nM(t){return!!(t&&t.__v_isReadonly)}function EH(t){return!!(t&&t.__v_isShallow)}function tve(t){return CO(t)||nM(t)}function sl(t){const e=t&&t.__v_raw;return e?sl(e):t}function aD(t){return AH(t,"__v_skip",!0),t}const mI=t=>Fd(t)?Am(t):t,Zle=t=>Fd(t)?TM(t):t;function nve(t){d4&&xx&&(t=sl(t),q1e(t.dep||(t.dep=$le())))}function rve(t,e){t=sl(t);const o=t.dep;o&&Fae(o)}function ku(t){return!!(t&&t.__v_isRef===!0)}function qo(t){return ove(t,!1)}function Gi(t){return ove(t,!0)}function ove(t,e){return ku(t)?t:new I4e(t,e)}class I4e{constructor(e,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?e:sl(e),this._value=o?e:mI(e)}get value(){return nve(this),this._value}set value(e){const o=this.__v_isShallow||EH(e)||nM(e);e=o?e:sl(e),pI(e,this._rawValue)&&(this._rawValue=e,this._value=o?e:mI(e),rve(this))}}function Va(t){return ku(t)?t.value:t}const D4e={get:(t,e,o)=>Va(Reflect.get(t,e,o)),set:(t,e,o,f)=>{const E=t[e];return ku(E)&&!ku(o)?(E.value=o,!0):Reflect.set(t,e,o,f)}};function ive(t){return CO(t)?t:new Proxy(t,D4e)}function CM(t){const e=tl(t)?new Array(t.length):{};for(const o in t)e[o]=ave(t,o);return e}class B4e{constructor(e,o,f){this._object=e,this._key=o,this._defaultValue=f,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return c4e(sl(this._object),this._key)}}class z4e{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ji(t,e,o){return ku(t)?t:Ul(t)?new z4e(t):Fd(t)&&arguments.length>1?ave(t,e,o):qo(t)}function ave(t,e,o){const f=t[e];return ku(f)?f:new B4e(t,e,o)}class N4e{constructor(e,o,f,E){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Vle(e,()=>{this._dirty||(this._dirty=!0,rve(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!E,this.__v_isReadonly=f}get value(){const e=sl(this);return nve(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function F4e(t,e,o=!1){let f,E;const d=Ul(t);return d?(f=t,E=Ox):(f=t.get,E=t.set),new N4e(f,E,d||!E,o)}function h4(t,e,o,f){let E;try{E=f?t(...f):t()}catch(d){sD(d,e,o)}return E}function rb(t,e,o,f){if(Ul(t)){const d=h4(t,e,o,f);return d&&B1e(d)&&d.catch(s=>{sD(s,e,o)}),d}const E=[];for(let d=0;d>>1;vI(Xg[f])m_&&Xg.splice(e,1)}function cve(t){tl(t)?Z8.push(...t):(!kO||!kO.includes(t,t.allowRecurse?ET+1:ET))&&Z8.push(t),lve()}function Jde(t,e=gI?m_+1:0){for(;evI(o)-vI(f)),ET=0;ETt.id==null?1/0:t.id,j4e=(t,e)=>{const o=vI(t)-vI(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function fve(t){$ae=!1,gI=!0,Xg.sort(j4e);const e=Ox;try{for(m_=0;m_Yh(y)?y.trim():y)),S&&(E=o.map(Dae))}let n,u=f[n=GL(e)]||f[n=GL(ib(e))];!u&&d&&(u=f[n=GL(JT(e))]),u&&rb(u,t,6,E);const b=f[n+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[n])return;t.emitted[n]=!0,rb(b,t,6,E)}}function dve(t,e,o=!1){const f=e.emitsCache,E=f.get(t);if(E!==void 0)return E;const d=t.emits;let s={},n=!1;if(!Ul(t)){const u=b=>{const i=dve(b,e,!0);i&&(n=!0,pp(s,i))};!o&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!d&&!n?(Fd(t)&&f.set(t,null),null):(tl(d)?d.forEach(u=>s[u]=null):pp(s,d),Fd(t)&&f.set(t,s),s)}function $Z(t,e){return!t||!BZ(e)?!1:(e=e.slice(2).replace(/Once$/,""),Du(t,e[0].toLowerCase()+e.slice(1))||Du(t,JT(e))||Du(t,e))}let Mm=null,VZ=null;function PH(t){const e=Mm;return Mm=t,VZ=t&&t.type.__scopeId||null,e}function Yle(t){VZ=t}function Xle(){VZ=null}function ao(t,e=Mm,o){if(!e||t._n)return t;const f=(...E)=>{f._d&&hhe(-1);const d=PH(e);let s;try{s=t(...E)}finally{PH(d),f._d&&hhe(1)}return s};return f._n=!0,f._c=!0,f._d=!0,f}function gie(t){const{type:e,vnode:o,proxy:f,withProxy:E,props:d,propsOptions:[s],slots:n,attrs:u,emit:b,render:i,renderCache:S,data:w,setupState:y,ctx:m,inheritAttrs:a}=t;let c,h;const p=PH(t);try{if(o.shapeFlag&4){const _=E||f;c=vx(i.call(_,_,S,d,y,w,m)),h=u}else{const _=e;c=vx(_.length>1?_(d,{attrs:u,slots:n,emit:b}):_(d,null)),h=e.props?u:Z4e(u)}}catch(_){tI.length=0,sD(_,t,1),c=$t(Z0)}let v=c;if(h&&a!==!1){const _=Object.keys(h),{shapeFlag:O}=v;_.length&&O&7&&(s&&_.some(Ble)&&(h=q4e(h,s)),v=EO(v,h))}return o.dirs&&(v=EO(v),v.dirs=v.dirs?v.dirs.concat(o.dirs):o.dirs),o.transition&&(v.transition=o.transition),c=v,PH(p),c}function H4e(t){let e;for(let o=0;o{let e;for(const o in t)(o==="class"||o==="style"||BZ(o))&&((e||(e={}))[o]=t[o]);return e},q4e=(t,e)=>{const o={};for(const f in t)(!Ble(f)||!(f.slice(9)in e))&&(o[f]=t[f]);return o};function W4e(t,e,o){const{props:f,children:E,component:d}=t,{props:s,children:n,patchFlag:u}=e,b=d.emitsOptions;if(e.dirs||e.transition)return!0;if(o&&u>=0){if(u&1024)return!0;if(u&16)return f?ehe(f,s,b):!!s;if(u&8){const i=e.dynamicProps;for(let S=0;St.__isSuspense,X4e={name:"Suspense",__isSuspense:!0,process(t,e,o,f,E,d,s,n,u,b){t==null?K4e(e,o,f,E,d,s,n,u,b):J4e(t,e,o,f,E,s,n,u,b)},hydrate:eke,create:Kle,normalize:tke},G4e=X4e;function yI(t,e){const o=t.props&&t.props[e];Ul(o)&&o()}function K4e(t,e,o,f,E,d,s,n,u){const{p:b,o:{createElement:i}}=u,S=i("div"),w=t.suspense=Kle(t,E,f,e,S,o,d,s,n,u);b(null,w.pendingBranch=t.ssContent,S,null,f,w,d,s),w.deps>0?(yI(t,"onPending"),yI(t,"onFallback"),b(null,t.ssFallback,e,o,f,null,d,s),q8(w,t.ssFallback)):w.resolve(!1,!0)}function J4e(t,e,o,f,E,d,s,n,{p:u,um:b,o:{createElement:i}}){const S=e.suspense=t.suspense;S.vnode=e,e.el=t.el;const w=e.ssContent,y=e.ssFallback,{activeBranch:m,pendingBranch:a,isInFallback:c,isHydrating:h}=S;if(a)S.pendingBranch=w,g_(w,a)?(u(a,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():c&&(u(m,y,o,f,E,null,d,s,n),q8(S,y))):(S.pendingId++,h?(S.isHydrating=!1,S.activeBranch=a):b(a,E,S),S.deps=0,S.effects.length=0,S.hiddenContainer=i("div"),c?(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0?S.resolve():(u(m,y,o,f,E,null,d,s,n),q8(S,y))):m&&g_(w,m)?(u(m,w,o,f,E,S,d,s,n),S.resolve(!0)):(u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0&&S.resolve()));else if(m&&g_(w,m))u(m,w,o,f,E,S,d,s,n),q8(S,w);else if(yI(e,"onPending"),S.pendingBranch=w,S.pendingId++,u(null,w,S.hiddenContainer,null,E,S,d,s,n),S.deps<=0)S.resolve();else{const{timeout:p,pendingId:v}=S;p>0?setTimeout(()=>{S.pendingId===v&&S.fallback(y)},p):p===0&&S.fallback(y)}}function Kle(t,e,o,f,E,d,s,n,u,b,i=!1){const{p:S,m:w,um:y,n:m,o:{parentNode:a,remove:c}}=b;let h;const p=rke(t);p&&e!=null&&e.pendingBranch&&(h=e.pendingId,e.deps++);const v=t.props?F1e(t.props.timeout):void 0,_={vnode:t,parent:e,parentComponent:o,isSVG:s,container:f,hiddenContainer:E,anchor:d,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:i,isUnmounted:!1,effects:[],resolve(O=!1,C=!1){const{vnode:x,activeBranch:R,pendingBranch:M,pendingId:T,effects:P,parentComponent:A,container:L}=_;if(_.isHydrating)_.isHydrating=!1;else if(!O){const I=R&&M.transition&&M.transition.mode==="out-in";I&&(R.transition.afterLeave=()=>{T===_.pendingId&&w(M,L,z,0)});let{anchor:z}=_;R&&(z=m(R),y(R,A,_,!0)),I||w(M,L,z,0)}q8(_,M),_.pendingBranch=null,_.isInFallback=!1;let D=_.parent,k=!1;for(;D;){if(D.pendingBranch){D.effects.push(...P),k=!0;break}D=D.parent}k||cve(P),_.effects=[],p&&e&&e.pendingBranch&&h===e.pendingId&&(e.deps--,e.deps===0&&!C&&e.resolve()),yI(x,"onResolve")},fallback(O){if(!_.pendingBranch)return;const{vnode:C,activeBranch:x,parentComponent:R,container:M,isSVG:T}=_;yI(C,"onFallback");const P=m(x),A=()=>{_.isInFallback&&(S(null,O,M,P,R,null,T,n,u),q8(_,O))},L=O.transition&&O.transition.mode==="out-in";L&&(x.transition.afterLeave=A),_.isInFallback=!0,y(x,R,null,!0),L||A()},move(O,C,x){_.activeBranch&&w(_.activeBranch,O,C,x),_.container=O},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(O,C){const x=!!_.pendingBranch;x&&_.deps++;const R=O.vnode.el;O.asyncDep.catch(M=>{sD(M,O,0)}).then(M=>{if(O.isUnmounted||_.isUnmounted||_.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:T}=O;qae(O,M,!1),R&&(T.el=R);const P=!R&&O.subTree.el;C(O,T,a(R||O.subTree.el),R?null:m(O.subTree),_,s,u),P&&c(P),Gle(O,T.el),x&&--_.deps===0&&_.resolve()})},unmount(O,C){_.isUnmounted=!0,_.activeBranch&&y(_.activeBranch,o,O,C),_.pendingBranch&&y(_.pendingBranch,o,O,C)}};return _}function eke(t,e,o,f,E,d,s,n,u){const b=e.suspense=Kle(e,f,o,t.parentNode,document.createElement("div"),null,E,d,s,n,!0),i=u(t,b.pendingBranch=e.ssContent,o,b,d,s);return b.deps===0&&b.resolve(!1,!0),i}function tke(t){const{shapeFlag:e,children:o}=t,f=e&32;t.ssContent=the(f?o.default:o),t.ssFallback=f?the(o.fallback):$t(Z0)}function the(t){let e;if(Ul(t)){const o=oM&&t._c;o&&(t._d=!1,Uo()),t=t(),o&&(t._d=!0,e=Jy,Eve())}return tl(t)&&(t=H4e(t)),t=vx(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(o=>o!==t)),t}function nke(t,e){e&&e.pendingBranch?tl(t)?e.effects.push(...t):e.effects.push(t):cve(t)}function q8(t,e){t.activeBranch=e;const{vnode:o,parentComponent:f}=t,E=o.el=e.el;f&&f.subTree===o&&(f.vnode.el=E,Gle(f,E))}function rke(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}function Gp(t,e){return Jle(t,null,e)}const yQ={};function ia(t,e,o){return Jle(t,e,o)}function Jle(t,e,{immediate:o,deep:f,flush:E,onTrack:d,onTrigger:s}=Jd){var n;const u=j1e()===((n=Yp)==null?void 0:n.scope)?Yp:null;let b,i=!1,S=!1;if(ku(t)?(b=()=>t.value,i=EH(t)):CO(t)?(b=()=>t,f=!0):tl(t)?(S=!0,i=t.some(_=>CO(_)||EH(_)),b=()=>t.map(_=>{if(ku(_))return _.value;if(CO(_))return BT(_);if(Ul(_))return h4(_,u,2)})):Ul(t)?e?b=()=>h4(t,u,2):b=()=>{if(!(u&&u.isUnmounted))return w&&w(),rb(t,u,3,[y])}:b=Ox,e&&f){const _=b;b=()=>BT(_())}let w,y=_=>{w=p.onStop=()=>{h4(_,u,4)}},m;if(wI)if(y=Ox,e?o&&rb(e,u,3,[b(),S?[]:void 0,y]):b(),E==="sync"){const _=qke();m=_.__watcherHandles||(_.__watcherHandles=[])}else return Ox;let a=S?new Array(t.length).fill(yQ):yQ;const c=()=>{if(p.active)if(e){const _=p.run();(f||i||(S?_.some((O,C)=>pI(O,a[C])):pI(_,a)))&&(w&&w(),rb(e,u,3,[_,a===yQ?void 0:S&&a[0]===yQ?[]:a,y]),a=_)}else p.run()};c.allowRecurse=!!e;let h;E==="sync"?h=c:E==="post"?h=()=>D1(c,u&&u.suspense):(c.pre=!0,u&&(c.id=u.uid),h=()=>Wle(c));const p=new Vle(b,h);e?o?c():a=p.run():E==="post"?D1(p.run.bind(p),u&&u.suspense):p.run();const v=()=>{p.stop(),u&&u.scope&&zle(u.scope.effects,p)};return m&&m.push(v),v}function oke(t,e,o){const f=this.proxy,E=Yh(t)?t.includes(".")?hve(f,t):()=>f[t]:t.bind(f,f);let d;Ul(e)?d=e:(d=e.handler,o=e);const s=Yp;aM(this);const n=Jle(E,d.bind(f),o);return s?aM(s):UT(),n}function hve(t,e){const o=e.split(".");return()=>{let f=t;for(let E=0;E{BT(o,e)});else if(N1e(t))for(const o in t)BT(t[o],e);return t}function Kp(t,e){const o=Mm;if(o===null)return t;const f=HZ(o)||o.proxy,E=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),Em(()=>{t.isUnmounting=!0}),t}const Gy=[Function,Array],mve={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gy,onEnter:Gy,onAfterEnter:Gy,onEnterCancelled:Gy,onBeforeLeave:Gy,onLeave:Gy,onAfterLeave:Gy,onLeaveCancelled:Gy,onBeforeAppear:Gy,onAppear:Gy,onAfterAppear:Gy,onAppearCancelled:Gy},ike={name:"BaseTransition",props:mve,setup(t,{slots:e}){const o=dce(),f=pve();let E;return()=>{const d=e.default&&ece(e.default(),!0);if(!d||!d.length)return;let s=d[0];if(d.length>1){for(const a of d)if(a.type!==Z0){s=a;break}}const n=sl(t),{mode:u}=n;if(f.isLeaving)return vie(s);const b=nhe(s);if(!b)return vie(s);const i=bI(b,n,f,o);xI(b,i);const S=o.subTree,w=S&&nhe(S);let y=!1;const{getTransitionKey:m}=b.type;if(m){const a=m();E===void 0?E=a:a!==E&&(E=a,y=!0)}if(w&&w.type!==Z0&&(!g_(b,w)||y)){const a=bI(w,n,f,o);if(xI(w,a),u==="out-in")return f.isLeaving=!0,a.afterLeave=()=>{f.isLeaving=!1,o.update.active!==!1&&o.update()},vie(s);u==="in-out"&&b.type!==Z0&&(a.delayLeave=(c,h,p)=>{const v=gve(f,w);v[String(w.key)]=w,c._leaveCb=()=>{h(),c._leaveCb=void 0,delete i.delayedLeave},i.delayedLeave=p})}return s}}},ake=ike;function gve(t,e){const{leavingVNodes:o}=t;let f=o.get(e.type);return f||(f=Object.create(null),o.set(e.type,f)),f}function bI(t,e,o,f){const{appear:E,mode:d,persisted:s=!1,onBeforeEnter:n,onEnter:u,onAfterEnter:b,onEnterCancelled:i,onBeforeLeave:S,onLeave:w,onAfterLeave:y,onLeaveCancelled:m,onBeforeAppear:a,onAppear:c,onAfterAppear:h,onAppearCancelled:p}=e,v=String(t.key),_=gve(o,t),O=(R,M)=>{R&&rb(R,f,9,M)},C=(R,M)=>{const T=M[1];O(R,M),tl(R)?R.every(P=>P.length<=1)&&T():R.length<=1&&T()},x={mode:d,persisted:s,beforeEnter(R){let M=n;if(!o.isMounted)if(E)M=a||n;else return;R._leaveCb&&R._leaveCb(!0);const T=_[v];T&&g_(t,T)&&T.el._leaveCb&&T.el._leaveCb(),O(M,[R])},enter(R){let M=u,T=b,P=i;if(!o.isMounted)if(E)M=c||u,T=h||b,P=p||i;else return;let A=!1;const L=R._enterCb=D=>{A||(A=!0,D?O(P,[R]):O(T,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};M?C(M,[R,L]):L()},leave(R,M){const T=String(t.key);if(R._enterCb&&R._enterCb(!0),o.isUnmounting)return M();O(S,[R]);let P=!1;const A=R._leaveCb=L=>{P||(P=!0,M(),L?O(m,[R]):O(y,[R]),R._leaveCb=void 0,_[T]===t&&delete _[T])};_[T]=t,w?C(w,[R,A]):A()},clone(R){return bI(R,e,o,f)}};return x}function vie(t){if(UZ(t))return t=EO(t),t.children=null,t}function nhe(t){return UZ(t)?t.children?t.children[0]:void 0:t}function xI(t,e){t.shapeFlag&6&&t.component?xI(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ece(t,e=!1,o){let f=[],E=0;for(let d=0;d1)for(let d=0;dpp({name:t.name},e,{setup:t}))():t}const KL=t=>!!t.type.__asyncLoader,UZ=t=>t.type.__isKeepAlive;function tce(t,e){vve(t,"a",e)}function nce(t,e){vve(t,"da",e)}function vve(t,e,o=Yp){const f=t.__wdc||(t.__wdc=()=>{let E=o;for(;E;){if(E.isDeactivated)return;E=E.parent}return t()});if(jZ(e,f,o),o){let E=o.parent;for(;E&&E.parent;)UZ(E.parent.vnode)&&ske(f,e,o,E),E=E.parent}}function ske(t,e,o,f){const E=jZ(e,t,f,!0);ice(()=>{zle(f[e],E)},o)}function jZ(t,e,o=Yp,f=!1){if(o){const E=o[t]||(o[t]=[]),d=e.__weh||(e.__weh=(...s)=>{if(o.isUnmounted)return;SM(),aM(o);const n=rb(e,o,t,s);return UT(),kM(),n});return f?E.unshift(d):E.push(d),d}}const zO=t=>(e,o=Yp)=>(!wI||t==="sp")&&jZ(t,(...f)=>e(...f),o),rce=zO("bm"),pg=zO("m"),yve=zO("bu"),oce=zO("u"),Em=zO("bum"),ice=zO("um"),lke=zO("sp"),cke=zO("rtg"),uke=zO("rtc");function fke(t,e=Yp){jZ("ec",t,e)}const ace="components",dke="directives";function Nd(t,e){return sce(ace,t,!0,e)||t}const bve=Symbol.for("v-ndc");function rM(t){return Yh(t)?sce(ace,t,!1)||t:t||bve}function M_(t){return sce(dke,t)}function sce(t,e,o=!0,f=!1){const E=Mm||Yp;if(E){const d=E.type;if(t===ace){const n=Qke(d,!1);if(n&&(n===e||n===ib(e)||n===A_(ib(e))))return d}const s=rhe(E[t]||d[t],e)||rhe(E.appContext[t],e);return!s&&f?d:s}}function rhe(t,e){return t&&(t[e]||t[ib(e)]||t[A_(ib(e))])}function ty(t,e,o,f){let E;const d=o&&o[f];if(tl(t)||Yh(t)){E=new Array(t.length);for(let s=0,n=t.length;se(s,n,void 0,d&&d[n]));else{const s=Object.keys(t);E=new Array(s.length);for(let n=0,u=s.length;n{const d=f.fn(...E);return d&&(d.key=f.key),d}:f.fn)}return t}function yie(t,e,o={},f,E){if(Mm.isCE||Mm.parent&&KL(Mm.parent)&&Mm.parent.isCE)return e!=="default"&&(o.name=e),$t("slot",o,f&&f());let d=t[e];d&&d._c&&(d._d=!1),Uo();const s=d&&_ve(d(o)),n=da(Ea,{key:o.key||s&&s.key||`_${e}`},s||(f?f():[]),s&&t._===1?64:-2);return!E&&n.scopeId&&(n.slotScopeIds=[n.scopeId+"-s"]),d&&d._c&&(d._d=!0),n}function _ve(t){return t.some(e=>iM(e)?!(e.type===Z0||e.type===Ea&&!_ve(e.children)):!0)?t:null}function hke(t,e){const o={};for(const f in t)o[e&&/[A-Z]/.test(f)?`on:${f}`:GL(f)]=t[f];return o}const Vae=t=>t?Lve(t)?HZ(t)||t.proxy:Vae(t.parent):null,JL=pp(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Vae(t.parent),$root:t=>Vae(t.root),$emit:t=>t.emit,$options:t=>lce(t),$forceUpdate:t=>t.f||(t.f=()=>Wle(t.update)),$nextTick:t=>t.n||(t.n=Vc.bind(t.proxy)),$watch:t=>oke.bind(t)}),bie=(t,e)=>t!==Jd&&!t.__isScriptSetup&&Du(t,e),pke={get({_:t},e){const{ctx:o,setupState:f,data:E,props:d,accessCache:s,type:n,appContext:u}=t;let b;if(e[0]!=="$"){const y=s[e];if(y!==void 0)switch(y){case 1:return f[e];case 2:return E[e];case 4:return o[e];case 3:return d[e]}else{if(bie(f,e))return s[e]=1,f[e];if(E!==Jd&&Du(E,e))return s[e]=2,E[e];if((b=t.propsOptions[0])&&Du(b,e))return s[e]=3,d[e];if(o!==Jd&&Du(o,e))return s[e]=4,o[e];Uae&&(s[e]=0)}}const i=JL[e];let S,w;if(i)return e==="$attrs"&&V1(t,"get",e),i(t);if((S=n.__cssModules)&&(S=S[e]))return S;if(o!==Jd&&Du(o,e))return s[e]=4,o[e];if(w=u.config.globalProperties,Du(w,e))return w[e]},set({_:t},e,o){const{data:f,setupState:E,ctx:d}=t;return bie(E,e)?(E[e]=o,!0):f!==Jd&&Du(f,e)?(f[e]=o,!0):Du(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=o,!0)},has({_:{data:t,setupState:e,accessCache:o,ctx:f,appContext:E,propsOptions:d}},s){let n;return!!o[s]||t!==Jd&&Du(t,s)||bie(e,s)||(n=d[0])&&Du(n,s)||Du(f,s)||Du(JL,s)||Du(E.config.globalProperties,s)},defineProperty(t,e,o){return o.get!=null?t._.accessCache[e]=0:Du(o,"value")&&this.set(t,e,o.value,null),Reflect.defineProperty(t,e,o)}};function ohe(t){return tl(t)?t.reduce((e,o)=>(e[o]=null,e),{}):t}let Uae=!0;function mke(t){const e=lce(t),o=t.proxy,f=t.ctx;Uae=!1,e.beforeCreate&&ihe(e.beforeCreate,t,"bc");const{data:E,computed:d,methods:s,watch:n,provide:u,inject:b,created:i,beforeMount:S,mounted:w,beforeUpdate:y,updated:m,activated:a,deactivated:c,beforeDestroy:h,beforeUnmount:p,destroyed:v,unmounted:_,render:O,renderTracked:C,renderTriggered:x,errorCaptured:R,serverPrefetch:M,expose:T,inheritAttrs:P,components:A,directives:L,filters:D}=e;if(b&&gke(b,f,null),s)for(const z in s){const $=s[z];Ul($)&&(f[z]=$.bind(o))}if(E){const z=E.call(o,o);Fd(z)&&(t.data=Am(z))}if(Uae=!0,d)for(const z in d){const $=d[z],Q=Ul($)?$.bind(o,o):Ul($.get)?$.get.bind(o,o):Ox,j=!Ul($)&&Ul($.set)?$.set.bind(o):Ox,U=nr({get:Q,set:j});Object.defineProperty(f,z,{enumerable:!0,configurable:!0,get:()=>U.value,set:X=>U.value=X})}if(n)for(const z in n)wve(n[z],f,o,z);if(u){const z=Ul(u)?u.call(o):u;Reflect.ownKeys(z).forEach($=>{md($,z[$])})}i&&ihe(i,t,"c");function I(z,$){tl($)?$.forEach(Q=>z(Q.bind(o))):$&&z($.bind(o))}if(I(rce,S),I(pg,w),I(yve,y),I(oce,m),I(tce,a),I(nce,c),I(fke,R),I(uke,C),I(cke,x),I(Em,p),I(ice,_),I(lke,M),tl(T))if(T.length){const z=t.exposed||(t.exposed={});T.forEach($=>{Object.defineProperty(z,$,{get:()=>o[$],set:Q=>o[$]=Q})})}else t.exposed||(t.exposed={});O&&t.render===Ox&&(t.render=O),P!=null&&(t.inheritAttrs=P),A&&(t.components=A),L&&(t.directives=L)}function gke(t,e,o=Ox){tl(t)&&(t=jae(t));for(const f in t){const E=t[f];let d;Fd(E)?"default"in E?d=Kl(E.from||f,E.default,!0):d=Kl(E.from||f):d=Kl(E),ku(d)?Object.defineProperty(e,f,{enumerable:!0,configurable:!0,get:()=>d.value,set:s=>d.value=s}):e[f]=d}}function ihe(t,e,o){rb(tl(t)?t.map(f=>f.bind(e.proxy)):t.bind(e.proxy),e,o)}function wve(t,e,o,f){const E=f.includes(".")?hve(o,f):()=>o[f];if(Yh(t)){const d=e[t];Ul(d)&&ia(E,d)}else if(Ul(t))ia(E,t.bind(o));else if(Fd(t))if(tl(t))t.forEach(d=>wve(d,e,o,f));else{const d=Ul(t.handler)?t.handler.bind(o):e[t.handler];Ul(d)&&ia(E,d,t)}}function lce(t){const e=t.type,{mixins:o,extends:f}=e,{mixins:E,optionsCache:d,config:{optionMergeStrategies:s}}=t.appContext,n=d.get(e);let u;return n?u=n:!E.length&&!o&&!f?u=e:(u={},E.length&&E.forEach(b=>RH(u,b,s,!0)),RH(u,e,s)),Fd(e)&&d.set(e,u),u}function RH(t,e,o,f=!1){const{mixins:E,extends:d}=e;d&&RH(t,d,o,!0),E&&E.forEach(s=>RH(t,s,o,!0));for(const s in e)if(!(f&&s==="expose")){const n=vke[s]||o&&o[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const vke={data:ahe,props:she,emits:she,methods:QL,computed:QL,beforeCreate:j0,created:j0,beforeMount:j0,mounted:j0,beforeUpdate:j0,updated:j0,beforeDestroy:j0,beforeUnmount:j0,destroyed:j0,unmounted:j0,activated:j0,deactivated:j0,errorCaptured:j0,serverPrefetch:j0,components:QL,directives:QL,watch:bke,provide:ahe,inject:yke};function ahe(t,e){return e?t?function(){return pp(Ul(t)?t.call(this,this):t,Ul(e)?e.call(this,this):e)}:e:t}function yke(t,e){return QL(jae(t),jae(e))}function jae(t){if(tl(t)){const e={};for(let o=0;o1)return o&&Ul(e)?e.call(f&&f.proxy):e}}function wke(){return!!(Yp||Mm||_I)}function Oke(t,e,o,f=!1){const E={},d={};AH(d,QZ,1),t.propsDefaults=Object.create(null),Sve(t,e,E,d);for(const s in t.propsOptions[0])s in E||(E[s]=void 0);o?t.props=f?E:eve(E):t.type.props?t.props=E:t.props=d,t.attrs=d}function Ske(t,e,o,f){const{props:E,attrs:d,vnode:{patchFlag:s}}=t,n=sl(E),[u]=t.propsOptions;let b=!1;if((f||s>0)&&!(s&16)){if(s&8){const i=t.vnode.dynamicProps;for(let S=0;S{u=!0;const[w,y]=kve(S,e,!0);pp(s,w),y&&n.push(...y)};!o&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!d&&!u)return Fd(t)&&f.set(t,Q8),Q8;if(tl(d))for(let i=0;i-1,y[1]=a<0||m-1||Du(y,"default"))&&n.push(S)}}}const b=[s,n];return Fd(t)&&f.set(t,b),b}function lhe(t){return t[0]!=="$"}function che(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function uhe(t,e){return che(t)===che(e)}function fhe(t,e){return tl(e)?e.findIndex(o=>uhe(o,t)):Ul(e)&&uhe(e,t)?0:-1}const Tve=t=>t[0]==="_"||t==="$stable",cce=t=>tl(t)?t.map(vx):[vx(t)],kke=(t,e,o)=>{if(e._n)return e;const f=ao((...E)=>cce(e(...E)),o);return f._c=!1,f},Cve=(t,e,o)=>{const f=t._ctx;for(const E in t){if(Tve(E))continue;const d=t[E];if(Ul(d))e[E]=kke(E,d,f);else if(d!=null){const s=cce(d);e[E]=()=>s}}},Ave=(t,e)=>{const o=cce(e);t.slots.default=()=>o},Tke=(t,e)=>{if(t.vnode.shapeFlag&32){const o=e._;o?(t.slots=sl(e),AH(e,"_",o)):Cve(e,t.slots={})}else t.slots={},e&&Ave(t,e);AH(t.slots,QZ,1)},Cke=(t,e,o)=>{const{vnode:f,slots:E}=t;let d=!0,s=Jd;if(f.shapeFlag&32){const n=e._;n?o&&n===1?d=!1:(pp(E,e),!o&&n===1&&delete E._):(d=!e.$stable,Cve(e,E)),s=e}else e&&(Ave(t,e),s={default:1});if(d)for(const n in E)!Tve(n)&&!(n in s)&&delete E[n]};function Hae(t,e,o,f,E=!1){if(tl(t)){t.forEach((w,y)=>Hae(w,e&&(tl(e)?e[y]:e),o,f,E));return}if(KL(f)&&!E)return;const d=f.shapeFlag&4?HZ(f.component)||f.component.proxy:f.el,s=E?null:d,{i:n,r:u}=t,b=e&&e.r,i=n.refs===Jd?n.refs={}:n.refs,S=n.setupState;if(b!=null&&b!==u&&(Yh(b)?(i[b]=null,Du(S,b)&&(S[b]=null)):ku(b)&&(b.value=null)),Ul(u))h4(u,n,12,[s,i]);else{const w=Yh(u),y=ku(u);if(w||y){const m=()=>{if(t.f){const a=w?Du(S,u)?S[u]:i[u]:u.value;E?tl(a)&&zle(a,d):tl(a)?a.includes(d)||a.push(d):w?(i[u]=[d],Du(S,u)&&(S[u]=i[u])):(u.value=[d],t.k&&(i[t.k]=u.value))}else w?(i[u]=s,Du(S,u)&&(S[u]=s)):y&&(u.value=s,t.k&&(i[t.k]=s))};s?(m.id=-1,D1(m,o)):m()}}}const D1=nke;function Ake(t){return Mke(t)}function Mke(t,e){const o=Bae();o.__VUE__=!0;const{insert:f,remove:E,patchProp:d,createElement:s,createText:n,createComment:u,setText:b,setElementText:i,parentNode:S,nextSibling:w,setScopeId:y=Ox,insertStaticContent:m}=t,a=(se,ae,ce,de=null,ye=null,ve=null,_e=!1,we=null,Te=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!g_(se,ae)&&(de=q(se),X(se,ye,ve,!0),se=null),ae.patchFlag===-2&&(Te=!1,ae.dynamicChildren=null);const{type:Pe,ref:Ie,shapeFlag:ze}=ae;switch(Pe){case lD:c(se,ae,ce,de);break;case Z0:h(se,ae,ce,de);break;case xie:se==null&&p(ae,ce,de,_e);break;case Ea:A(se,ae,ce,de,ye,ve,_e,we,Te);break;default:ze&1?O(se,ae,ce,de,ye,ve,_e,we,Te):ze&6?L(se,ae,ce,de,ye,ve,_e,we,Te):(ze&64||ze&128)&&Pe.process(se,ae,ce,de,ye,ve,_e,we,Te,ee)}Ie!=null&&ye&&Hae(Ie,se&&se.ref,ve,ae||se,!ae)},c=(se,ae,ce,de)=>{if(se==null)f(ae.el=n(ae.children),ce,de);else{const ye=ae.el=se.el;ae.children!==se.children&&b(ye,ae.children)}},h=(se,ae,ce,de)=>{se==null?f(ae.el=u(ae.children||""),ce,de):ae.el=se.el},p=(se,ae,ce,de)=>{[se.el,se.anchor]=m(se.children,ae,ce,de,se.el,se.anchor)},v=({el:se,anchor:ae},ce,de)=>{let ye;for(;se&&se!==ae;)ye=w(se),f(se,ce,de),se=ye;f(ae,ce,de)},_=({el:se,anchor:ae})=>{let ce;for(;se&&se!==ae;)ce=w(se),E(se),se=ce;E(ae)},O=(se,ae,ce,de,ye,ve,_e,we,Te)=>{_e=_e||ae.type==="svg",se==null?C(ae,ce,de,ye,ve,_e,we,Te):M(se,ae,ye,ve,_e,we,Te)},C=(se,ae,ce,de,ye,ve,_e,we)=>{let Te,Pe;const{type:Ie,props:ze,shapeFlag:De,transition:Qe,dirs:Ve}=se;if(Te=se.el=s(se.type,ve,ze&&ze.is,ze),De&8?i(Te,se.children):De&16&&R(se.children,Te,null,de,ye,ve&&Ie!=="foreignObject",_e,we),Ve&&xT(se,null,de,"created"),x(Te,se,se.scopeId,_e,de),ze){for(const Oe in ze)Oe!=="value"&&!oH(Oe)&&d(Te,Oe,null,ze[Oe],ve,se.children,de,ye,re);"value"in ze&&d(Te,"value",null,ze.value),(Pe=ze.onVnodeBeforeMount)&&c_(Pe,de,se)}Ve&&xT(se,null,de,"beforeMount");const $e=(!ye||ye&&!ye.pendingBranch)&&Qe&&!Qe.persisted;$e&&Qe.beforeEnter(Te),f(Te,ae,ce),((Pe=ze&&ze.onVnodeMounted)||$e||Ve)&&D1(()=>{Pe&&c_(Pe,de,se),$e&&Qe.enter(Te),Ve&&xT(se,null,de,"mounted")},ye)},x=(se,ae,ce,de,ye)=>{if(ce&&y(se,ce),de)for(let ve=0;ve{for(let Pe=Te;Pe{const we=ae.el=se.el;let{patchFlag:Te,dynamicChildren:Pe,dirs:Ie}=ae;Te|=se.patchFlag&16;const ze=se.props||Jd,De=ae.props||Jd;let Qe;ce&&_T(ce,!1),(Qe=De.onVnodeBeforeUpdate)&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"beforeUpdate"),ce&&_T(ce,!0);const Ve=ye&&ae.type!=="foreignObject";if(Pe?T(se.dynamicChildren,Pe,we,ce,de,Ve,ve):_e||$(se,ae,we,null,ce,de,Ve,ve,!1),Te>0){if(Te&16)P(we,ae,ze,De,ce,de,ye);else if(Te&2&&ze.class!==De.class&&d(we,"class",null,De.class,ye),Te&4&&d(we,"style",ze.style,De.style,ye),Te&8){const $e=ae.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const ke=$e[Oe],Re=ze[ke],We=De[ke];(We!==Re||ke==="value")&&d(we,ke,Re,We,ye,se.children,ce,de,re)}}Te&1&&se.children!==ae.children&&i(we,ae.children)}else!_e&&Pe==null&&P(we,ae,ze,De,ce,de,ye);((Qe=De.onVnodeUpdated)||Ie)&&D1(()=>{Qe&&c_(Qe,ce,ae,se),Ie&&xT(ae,se,ce,"updated")},de)},T=(se,ae,ce,de,ye,ve,_e)=>{for(let we=0;we{if(ce!==de){if(ce!==Jd)for(const we in ce)!oH(we)&&!(we in de)&&d(se,we,ce[we],null,_e,ae.children,ye,ve,re);for(const we in de){if(oH(we))continue;const Te=de[we],Pe=ce[we];Te!==Pe&&we!=="value"&&d(se,we,Pe,Te,_e,ae.children,ye,ve,re)}"value"in de&&d(se,"value",ce.value,de.value)}},A=(se,ae,ce,de,ye,ve,_e,we,Te)=>{const Pe=ae.el=se?se.el:n(""),Ie=ae.anchor=se?se.anchor:n("");let{patchFlag:ze,dynamicChildren:De,slotScopeIds:Qe}=ae;Qe&&(we=we?we.concat(Qe):Qe),se==null?(f(Pe,ce,de),f(Ie,ce,de),R(ae.children,ce,Ie,ye,ve,_e,we,Te)):ze>0&&ze&64&&De&&se.dynamicChildren?(T(se.dynamicChildren,De,ce,ye,ve,_e,we),(ae.key!=null||ye&&ae===ye.subTree)&&uce(se,ae,!0)):$(se,ae,ce,Ie,ye,ve,_e,we,Te)},L=(se,ae,ce,de,ye,ve,_e,we,Te)=>{ae.slotScopeIds=we,se==null?ae.shapeFlag&512?ye.ctx.activate(ae,ce,de,_e,Te):D(ae,ce,de,ye,ve,_e,Te):k(se,ae,Te)},D=(se,ae,ce,de,ye,ve,_e)=>{const we=se.component=Fke(se,de,ye);if(UZ(se)&&(we.ctx.renderer=ee),$ke(we),we.asyncDep){if(ye&&ye.registerDep(we,I),!se.el){const Te=we.subTree=$t(Z0);h(null,Te,ae,ce)}return}I(we,se,ae,ce,ye,ve,_e)},k=(se,ae,ce)=>{const de=ae.component=se.component;if(W4e(se,ae,ce))if(de.asyncDep&&!de.asyncResolved){z(de,ae,ce);return}else de.next=ae,U4e(de.update),de.update();else ae.el=se.el,de.vnode=ae},I=(se,ae,ce,de,ye,ve,_e)=>{const we=()=>{if(se.isMounted){let{next:Ie,bu:ze,u:De,parent:Qe,vnode:Ve}=se,$e=Ie,Oe;_T(se,!1),Ie?(Ie.el=Ve.el,z(se,Ie,_e)):Ie=Ve,ze&&iH(ze),(Oe=Ie.props&&Ie.props.onVnodeBeforeUpdate)&&c_(Oe,Qe,Ie,Ve),_T(se,!0);const ke=gie(se),Re=se.subTree;se.subTree=ke,a(Re,ke,S(Re.el),q(Re),se,ye,ve),Ie.el=ke.el,$e===null&&Gle(se,ke.el),De&&D1(De,ye),(Oe=Ie.props&&Ie.props.onVnodeUpdated)&&D1(()=>c_(Oe,Qe,Ie,Ve),ye)}else{let Ie;const{el:ze,props:De}=ae,{bm:Qe,m:Ve,parent:$e}=se,Oe=KL(ae);if(_T(se,!1),Qe&&iH(Qe),!Oe&&(Ie=De&&De.onVnodeBeforeMount)&&c_(Ie,$e,ae),_T(se,!0),ze&&pe){const ke=()=>{se.subTree=gie(se),pe(ze,se.subTree,se,ye,null)};Oe?ae.type.__asyncLoader().then(()=>!se.isUnmounted&&ke()):ke()}else{const ke=se.subTree=gie(se);a(null,ke,ce,de,se,ye,ve),ae.el=ke.el}if(Ve&&D1(Ve,ye),!Oe&&(Ie=De&&De.onVnodeMounted)){const ke=ae;D1(()=>c_(Ie,$e,ke),ye)}(ae.shapeFlag&256||$e&&KL($e.vnode)&&$e.vnode.shapeFlag&256)&&se.a&&D1(se.a,ye),se.isMounted=!0,ae=ce=de=null}},Te=se.effect=new Vle(we,()=>Wle(Pe),se.scope),Pe=se.update=()=>Te.run();Pe.id=se.uid,_T(se,!0),Pe()},z=(se,ae,ce)=>{ae.component=se;const de=se.vnode.props;se.vnode=ae,se.next=null,Ske(se,ae.props,de,ce),Cke(se,ae.children,ce),SM(),Jde(),kM()},$=(se,ae,ce,de,ye,ve,_e,we,Te=!1)=>{const Pe=se&&se.children,Ie=se?se.shapeFlag:0,ze=ae.children,{patchFlag:De,shapeFlag:Qe}=ae;if(De>0){if(De&128){j(Pe,ze,ce,de,ye,ve,_e,we,Te);return}else if(De&256){Q(Pe,ze,ce,de,ye,ve,_e,we,Te);return}}Qe&8?(Ie&16&&re(Pe,ye,ve),ze!==Pe&&i(ce,ze)):Ie&16?Qe&16?j(Pe,ze,ce,de,ye,ve,_e,we,Te):re(Pe,ye,ve,!0):(Ie&8&&i(ce,""),Qe&16&&R(ze,ce,de,ye,ve,_e,we,Te))},Q=(se,ae,ce,de,ye,ve,_e,we,Te)=>{se=se||Q8,ae=ae||Q8;const Pe=se.length,Ie=ae.length,ze=Math.min(Pe,Ie);let De;for(De=0;DeIe?re(se,ye,ve,!0,!1,ze):R(ae,ce,de,ye,ve,_e,we,Te,ze)},j=(se,ae,ce,de,ye,ve,_e,we,Te)=>{let Pe=0;const Ie=ae.length;let ze=se.length-1,De=Ie-1;for(;Pe<=ze&&Pe<=De;){const Qe=se[Pe],Ve=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;Pe++}for(;Pe<=ze&&Pe<=De;){const Qe=se[ze],Ve=ae[De]=Te?t4(ae[De]):vx(ae[De]);if(g_(Qe,Ve))a(Qe,Ve,ce,null,ye,ve,_e,we,Te);else break;ze--,De--}if(Pe>ze){if(Pe<=De){const Qe=De+1,Ve=QeDe)for(;Pe<=ze;)X(se[Pe],ye,ve,!0),Pe++;else{const Qe=Pe,Ve=Pe,$e=new Map;for(Pe=Ve;Pe<=De;Pe++){const Je=ae[Pe]=Te?t4(ae[Pe]):vx(ae[Pe]);Je.key!=null&&$e.set(Je.key,Pe)}let Oe,ke=0;const Re=De-Ve+1;let We=!1,Ue=0;const Ze=new Array(Re);for(Pe=0;Pe=Re){X(Je,ye,ve,!0);continue}let Me;if(Je.key!=null)Me=$e.get(Je.key);else for(Oe=Ve;Oe<=De;Oe++)if(Ze[Oe-Ve]===0&&g_(Je,ae[Oe])){Me=Oe;break}Me===void 0?X(Je,ye,ve,!0):(Ze[Me-Ve]=Pe+1,Me>=Ue?Ue=Me:We=!0,a(Je,ae[Me],ce,null,ye,ve,_e,we,Te),ke++)}const Ye=We?Eke(Ze):Q8;for(Oe=Ye.length-1,Pe=Re-1;Pe>=0;Pe--){const Je=Ve+Pe,Me=ae[Je],Fe=Je+1{const{el:ve,type:_e,transition:we,children:Te,shapeFlag:Pe}=se;if(Pe&6){U(se.component.subTree,ae,ce,de);return}if(Pe&128){se.suspense.move(ae,ce,de);return}if(Pe&64){_e.move(se,ae,ce,ee);return}if(_e===Ea){f(ve,ae,ce);for(let ze=0;zewe.enter(ve),ye);else{const{leave:ze,delayLeave:De,afterLeave:Qe}=we,Ve=()=>f(ve,ae,ce),$e=()=>{ze(ve,()=>{Ve(),Qe&&Qe()})};De?De(ve,Ve,$e):$e()}else f(ve,ae,ce)},X=(se,ae,ce,de=!1,ye=!1)=>{const{type:ve,props:_e,ref:we,children:Te,dynamicChildren:Pe,shapeFlag:Ie,patchFlag:ze,dirs:De}=se;if(we!=null&&Hae(we,null,ce,se,!0),Ie&256){ae.ctx.deactivate(se);return}const Qe=Ie&1&&De,Ve=!KL(se);let $e;if(Ve&&($e=_e&&_e.onVnodeBeforeUnmount)&&c_($e,ae,se),Ie&6)K(se.component,ce,de);else{if(Ie&128){se.suspense.unmount(ce,de);return}Qe&&xT(se,null,ae,"beforeUnmount"),Ie&64?se.type.remove(se,ae,ce,ye,ee,de):Pe&&(ve!==Ea||ze>0&&ze&64)?re(Pe,ae,ce,!1,!0):(ve===Ea&&ze&384||!ye&&Ie&16)&&re(Te,ae,ce),de&&te(se)}(Ve&&($e=_e&&_e.onVnodeUnmounted)||Qe)&&D1(()=>{$e&&c_($e,ae,se),Qe&&xT(se,null,ae,"unmounted")},ce)},te=se=>{const{type:ae,el:ce,anchor:de,transition:ye}=se;if(ae===Ea){Z(ce,de);return}if(ae===xie){_(se);return}const ve=()=>{E(ce),ye&&!ye.persisted&&ye.afterLeave&&ye.afterLeave()};if(se.shapeFlag&1&&ye&&!ye.persisted){const{leave:_e,delayLeave:we}=ye,Te=()=>_e(ce,ve);we?we(se.el,ve,Te):Te()}else ve()},Z=(se,ae)=>{let ce;for(;se!==ae;)ce=w(se),E(se),se=ce;E(ae)},K=(se,ae,ce)=>{const{bum:de,scope:ye,update:ve,subTree:_e,um:we}=se;de&&iH(de),ye.stop(),ve&&(ve.active=!1,X(_e,se,ae,ce)),we&&D1(we,ae),D1(()=>{se.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&se.asyncDep&&!se.asyncResolved&&se.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},re=(se,ae,ce,de=!1,ye=!1,ve=0)=>{for(let _e=ve;_ese.shapeFlag&6?q(se.component.subTree):se.shapeFlag&128?se.suspense.next():w(se.anchor||se.el),Y=(se,ae,ce)=>{se==null?ae._vnode&&X(ae._vnode,null,null,!0):a(ae._vnode||null,se,ae,null,null,null,ce),Jde(),uve(),ae._vnode=se},ee={p:a,um:X,m:U,r:te,mt:D,mc:R,pc:$,pbc:T,n:q,o:t};let me,pe;return e&&([me,pe]=e(ee)),{render:Y,hydrate:me,createApp:_ke(Y,me)}}function _T({effect:t,update:e},o){t.allowRecurse=e.allowRecurse=o}function uce(t,e,o=!1){const f=t.children,E=e.children;if(tl(f)&&tl(E))for(let d=0;d>1,t[o[n]]0&&(e[f]=o[d-1]),o[d]=f)}}for(d=o.length,s=o[d-1];d-- >0;)o[d]=s,s=e[s];return o}const Pke=t=>t.__isTeleport,eI=t=>t&&(t.disabled||t.disabled===""),dhe=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Zae=(t,e)=>{const o=t&&t.to;return Yh(o)?e?e(o):null:o},Rke={__isTeleport:!0,process(t,e,o,f,E,d,s,n,u,b){const{mc:i,pc:S,pbc:w,o:{insert:y,querySelector:m,createText:a,createComment:c}}=b,h=eI(e.props);let{shapeFlag:p,children:v,dynamicChildren:_}=e;if(t==null){const O=e.el=a(""),C=e.anchor=a("");y(O,o,f),y(C,o,f);const x=e.target=Zae(e.props,m),R=e.targetAnchor=a("");x&&(y(R,x),s=s||dhe(x));const M=(T,P)=>{p&16&&i(v,T,P,E,d,s,n,u)};h?M(o,C):x&&M(x,R)}else{e.el=t.el;const O=e.anchor=t.anchor,C=e.target=t.target,x=e.targetAnchor=t.targetAnchor,R=eI(t.props),M=R?o:C,T=R?O:x;if(s=s||dhe(C),_?(w(t.dynamicChildren,_,M,E,d,s,n),uce(t,e,!0)):u||S(t,e,M,T,E,d,s,n,!1),h)R||bQ(e,o,O,b,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const P=e.target=Zae(e.props,m);P&&bQ(e,P,null,b,0)}else R&&bQ(e,C,x,b,1)}Mve(e)},remove(t,e,o,f,{um:E,o:{remove:d}},s){const{shapeFlag:n,children:u,anchor:b,targetAnchor:i,target:S,props:w}=t;if(S&&d(i),(s||!eI(w))&&(d(b),n&16))for(let y=0;y0?Jy||Q8:null,Eve(),oM>0&&Jy&&Jy.push(t),t}function Ya(t,e,o,f,E,d){return Pve(Na(t,e,o,f,E,d,!0))}function da(t,e,o,f,E){return Pve($t(t,e,o,f,E,!0))}function iM(t){return t?t.__v_isVNode===!0:!1}function g_(t,e){return t.type===e.type&&t.key===e.key}const QZ="__vInternal",Rve=({key:t})=>t??null,aH=({ref:t,ref_key:e,ref_for:o})=>(typeof t=="number"&&(t=""+t),t!=null?Yh(t)||ku(t)||Ul(t)?{i:Mm,r:t,k:e,f:!!o}:t:null);function Na(t,e=null,o=null,f=0,E=null,d=t===Ea?0:1,s=!1,n=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Rve(e),ref:e&&aH(e),scopeId:VZ,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:f,dynamicProps:E,dynamicChildren:null,appContext:null,ctx:Mm};return n?(fce(u,o),d&128&&t.normalize(u)):o&&(u.shapeFlag|=Yh(o)?8:16),oM>0&&!s&&Jy&&(u.patchFlag>0||d&6)&&u.patchFlag!==32&&Jy.push(u),u}const $t=Dke;function Dke(t,e=null,o=null,f=0,E=null,d=!1){if((!t||t===bve)&&(t=Z0),iM(t)){const n=EO(t,e,!0);return o&&fce(n,o),oM>0&&!d&&Jy&&(n.shapeFlag&6?Jy[Jy.indexOf(t)]=n:Jy.push(n)),n.patchFlag|=-2,n}if(Hke(t)&&(t=t.__vccOpts),e){e=Bke(e);let{class:n,style:u}=e;n&&!Yh(n)&&(e.class=Gv(n)),Fd(u)&&(tve(u)&&!tl(u)&&(u=pp({},u)),e.style=oD(u))}const s=Yh(t)?1:Y4e(t)?128:Pke(t)?64:Fd(t)?4:Ul(t)?2:0;return Na(t,e,o,f,E,s,d,!0)}function Bke(t){return t?tve(t)||QZ in t?pp({},t):t:null}function EO(t,e,o=!1){const{props:f,ref:E,patchFlag:d,children:s}=t,n=e?qi(f||{},e):f;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:n,key:n&&Rve(n),ref:e&&e.ref?o&&E?tl(E)?E.concat(aH(e)):[E,aH(e)]:aH(e):E,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ea?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&EO(t.ssContent),ssFallback:t.ssFallback&&EO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Ua(t=" ",e=0){return $t(lD,null,t,e)}function za(t="",e=!1){return e?(Uo(),da(Z0,null,t)):$t(Z0,null,t)}function vx(t){return t==null||typeof t=="boolean"?$t(Z0):tl(t)?$t(Ea,null,t.slice()):typeof t=="object"?t4(t):$t(lD,null,String(t))}function t4(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:EO(t)}function fce(t,e){let o=0;const{shapeFlag:f}=t;if(e==null)e=null;else if(tl(e))o=16;else if(typeof e=="object")if(f&65){const E=e.default;E&&(E._c&&(E._d=!1),fce(t,E()),E._c&&(E._d=!0));return}else{o=32;const E=e._;!E&&!(QZ in e)?e._ctx=Mm:E===3&&Mm&&(Mm.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ul(e)?(e={default:e,_ctx:Mm},o=32):(e=String(e),f&64?(o=16,e=[Ua(e)]):o=8);t.children=e,t.shapeFlag|=o}function qi(...t){const e={};for(let o=0;oYp||Mm;let hce,C8,phe="__VUE_INSTANCE_SETTERS__";(C8=Bae()[phe])||(C8=Bae()[phe]=[]),C8.push(t=>Yp=t),hce=t=>{C8.length>1?C8.forEach(e=>e(t)):C8[0](t)};const aM=t=>{hce(t),t.scope.on()},UT=()=>{Yp&&Yp.scope.off(),hce(null)};function Lve(t){return t.vnode.shapeFlag&4}let wI=!1;function $ke(t,e=!1){wI=e;const{props:o,children:f}=t.vnode,E=Lve(t);Oke(t,o,E,e),Tke(t,f);const d=E?Vke(t,e):void 0;return wI=!1,d}function Vke(t,e){const o=t.type;t.accessCache=Object.create(null),t.proxy=aD(new Proxy(t.ctx,pke));const{setup:f}=o;if(f){const E=t.setupContext=f.length>1?jke(t):null;aM(t),SM();const d=h4(f,t,0,[t.props,E]);if(kM(),UT(),B1e(d)){if(d.then(UT,UT),e)return d.then(s=>{qae(t,s,e)}).catch(s=>{sD(s,t,0)});t.asyncDep=d}else qae(t,d,e)}else Ive(t,e)}function qae(t,e,o){Ul(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Fd(e)&&(t.setupState=ive(e)),Ive(t,o)}let mhe;function Ive(t,e,o){const f=t.type;if(!t.render){if(!e&&mhe&&!f.render){const E=f.template||lce(t).template;if(E){const{isCustomElement:d,compilerOptions:s}=t.appContext.config,{delimiters:n,compilerOptions:u}=f,b=pp(pp({isCustomElement:d,delimiters:n},s),u);f.render=mhe(E,b)}}t.render=f.render||Ox}aM(t),SM(),mke(t),kM(),UT()}function Uke(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,o){return V1(t,"get","$attrs"),e[o]}}))}function jke(t){const e=o=>{t.exposed=o||{}};return{get attrs(){return Uke(t)},slots:t.slots,emit:t.emit,expose:e}}function HZ(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ive(aD(t.exposed)),{get(e,o){if(o in e)return e[o];if(o in JL)return JL[o](t)},has(e,o){return o in e||o in JL}}))}function Qke(t,e=!0){return Ul(t)?t.displayName||t.name:t.name||e&&t.__name}function Hke(t){return Ul(t)&&"__vccOpts"in t}const nr=(t,e)=>F4e(t,e,wI);function U1(t,e,o){const f=arguments.length;return f===2?Fd(e)&&!tl(e)?iM(e)?$t(t,null,[e]):$t(t,e):$t(t,null,e):(f>3?o=Array.prototype.slice.call(arguments,2):f===3&&iM(o)&&(o=[o]),$t(t,e,o))}const Zke=Symbol.for("v-scx"),qke=()=>Kl(Zke),Wke="3.3.4",Yke="http://www.w3.org/2000/svg",PT=typeof document<"u"?document:null,ghe=PT&&PT.createElement("template"),Xke={insert:(t,e,o)=>{e.insertBefore(t,o||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,o,f)=>{const E=e?PT.createElementNS(Yke,t):PT.createElement(t,o?{is:o}:void 0);return t==="select"&&f&&f.multiple!=null&&E.setAttribute("multiple",f.multiple),E},createText:t=>PT.createTextNode(t),createComment:t=>PT.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>PT.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,o,f,E,d){const s=o?o.previousSibling:e.lastChild;if(E&&(E===d||E.nextSibling))for(;e.insertBefore(E.cloneNode(!0),o),!(E===d||!(E=E.nextSibling)););else{ghe.innerHTML=f?`${t}`:t;const n=ghe.content;if(f){const u=n.firstChild;for(;u.firstChild;)n.appendChild(u.firstChild);n.removeChild(u)}e.insertBefore(n,o)}return[s?s.nextSibling:e.firstChild,o?o.previousSibling:e.lastChild]}};function Gke(t,e,o){const f=t._vtc;f&&(e=(e?[e,...f]:[...f]).join(" ")),e==null?t.removeAttribute("class"):o?t.setAttribute("class",e):t.className=e}function Kke(t,e,o){const f=t.style,E=Yh(o);if(o&&!E){if(e&&!Yh(e))for(const d in e)o[d]==null&&Wae(f,d,"");for(const d in o)Wae(f,d,o[d])}else{const d=f.display;E?e!==o&&(f.cssText=o):e&&t.removeAttribute("style"),"_vod"in t&&(f.display=d)}}const vhe=/\s*!important$/;function Wae(t,e,o){if(tl(o))o.forEach(f=>Wae(t,e,f));else if(o==null&&(o=""),e.startsWith("--"))t.setProperty(e,o);else{const f=Jke(t,e);vhe.test(o)?t.setProperty(JT(f),o.replace(vhe,""),"important"):t[f]=o}}const yhe=["Webkit","Moz","ms"],_ie={};function Jke(t,e){const o=_ie[e];if(o)return o;let f=ib(e);if(f!=="filter"&&f in t)return _ie[e]=f;f=A_(f);for(let E=0;Ewie||(i5e.then(()=>wie=0),wie=Date.now());function s5e(t,e){const o=f=>{if(!f._vts)f._vts=Date.now();else if(f._vts<=o.attached)return;rb(l5e(f,o.value),e,5,[f])};return o.value=t,o.attached=a5e(),o}function l5e(t,e){if(tl(e)){const o=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{o.call(t),t._stopped=!0},e.map(f=>E=>!E._stopped&&f&&f(E))}else return e}const _he=/^on[a-z]/,c5e=(t,e,o,f,E=!1,d,s,n,u)=>{e==="class"?Gke(t,f,E):e==="style"?Kke(t,o,f):BZ(e)?Ble(e)||r5e(t,e,o,f,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):u5e(t,e,f,E))?t5e(t,e,f,d,s,n,u):(e==="true-value"?t._trueValue=f:e==="false-value"&&(t._falseValue=f),e5e(t,e,f,E))};function u5e(t,e,o,f){return f?!!(e==="innerHTML"||e==="textContent"||e in t&&_he.test(e)&&Ul(o)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||_he.test(e)&&Yh(o)?!1:e in t}const XS="transition",CL="animation",C_=(t,{slots:e})=>U1(ake,Bve(t),e);C_.displayName="Transition";const Dve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},f5e=C_.props=pp({},mve,Dve),wT=(t,e=[])=>{tl(t)?t.forEach(o=>o(...e)):t&&t(...e)},whe=t=>t?tl(t)?t.some(e=>e.length>1):t.length>1:!1;function Bve(t){const e={};for(const A in t)A in Dve||(e[A]=t[A]);if(t.css===!1)return e;const{name:o="v",type:f,duration:E,enterFromClass:d=`${o}-enter-from`,enterActiveClass:s=`${o}-enter-active`,enterToClass:n=`${o}-enter-to`,appearFromClass:u=d,appearActiveClass:b=s,appearToClass:i=n,leaveFromClass:S=`${o}-leave-from`,leaveActiveClass:w=`${o}-leave-active`,leaveToClass:y=`${o}-leave-to`}=t,m=d5e(E),a=m&&m[0],c=m&&m[1],{onBeforeEnter:h,onEnter:p,onEnterCancelled:v,onLeave:_,onLeaveCancelled:O,onBeforeAppear:C=h,onAppear:x=p,onAppearCancelled:R=v}=e,M=(A,L,D)=>{JS(A,L?i:n),JS(A,L?b:s),D&&D()},T=(A,L)=>{A._isLeaving=!1,JS(A,S),JS(A,y),JS(A,w),L&&L()},P=A=>(L,D)=>{const k=A?x:p,I=()=>M(L,A,D);wT(k,[L,I]),Ohe(()=>{JS(L,A?u:d),SO(L,A?i:n),whe(k)||She(L,f,a,I)})};return pp(e,{onBeforeEnter(A){wT(h,[A]),SO(A,d),SO(A,s)},onBeforeAppear(A){wT(C,[A]),SO(A,u),SO(A,b)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){A._isLeaving=!0;const D=()=>T(A,L);SO(A,S),Nve(),SO(A,w),Ohe(()=>{A._isLeaving&&(JS(A,S),SO(A,y),whe(_)||She(A,f,c,D))}),wT(_,[A,D])},onEnterCancelled(A){M(A,!1),wT(v,[A])},onAppearCancelled(A){M(A,!0),wT(R,[A])},onLeaveCancelled(A){T(A),wT(O,[A])}})}function d5e(t){if(t==null)return null;if(Fd(t))return[Oie(t.enter),Oie(t.leave)];{const e=Oie(t);return[e,e]}}function Oie(t){return F1e(t)}function SO(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.add(o)),(t._vtc||(t._vtc=new Set)).add(e)}function JS(t,e){e.split(/\s+/).forEach(f=>f&&t.classList.remove(f));const{_vtc:o}=t;o&&(o.delete(e),o.size||(t._vtc=void 0))}function Ohe(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let h5e=0;function She(t,e,o,f){const E=t._endId=++h5e,d=()=>{E===t._endId&&f()};if(o)return setTimeout(d,o);const{type:s,timeout:n,propCount:u}=zve(t,e);if(!s)return f();const b=s+"end";let i=0;const S=()=>{t.removeEventListener(b,w),d()},w=y=>{y.target===t&&++i>=u&&S()};setTimeout(()=>{i(o[m]||"").split(", "),E=f(`${XS}Delay`),d=f(`${XS}Duration`),s=khe(E,d),n=f(`${CL}Delay`),u=f(`${CL}Duration`),b=khe(n,u);let i=null,S=0,w=0;e===XS?s>0&&(i=XS,S=s,w=d.length):e===CL?b>0&&(i=CL,S=b,w=u.length):(S=Math.max(s,b),i=S>0?s>b?XS:CL:null,w=i?i===XS?d.length:u.length:0);const y=i===XS&&/\b(transform|all)(,|$)/.test(f(`${XS}Property`).toString());return{type:i,timeout:S,propCount:w,hasTransform:y}}function khe(t,e){for(;t.lengthThe(o)+The(t[f])))}function The(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Nve(){return document.body.offsetHeight}const Fve=new WeakMap,$ve=new WeakMap,Vve={name:"TransitionGroup",props:pp({},f5e,{tag:String,moveClass:String}),setup(t,{slots:e}){const o=dce(),f=pve();let E,d;return oce(()=>{if(!E.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!y5e(E[0].el,o.vnode.el,s))return;E.forEach(m5e),E.forEach(g5e);const n=E.filter(v5e);Nve(),n.forEach(u=>{const b=u.el,i=b.style;SO(b,s),i.transform=i.webkitTransform=i.transitionDuration="";const S=b._moveCb=w=>{w&&w.target!==b||(!w||/transform$/.test(w.propertyName))&&(b.removeEventListener("transitionend",S),b._moveCb=null,JS(b,s))};b.addEventListener("transitionend",S)})}),()=>{const s=sl(t),n=Bve(s);let u=s.tag||Ea;E=d,d=e.default?ece(e.default()):[];for(let b=0;bdelete t.mode;Vve.props;const pce=Vve;function m5e(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function g5e(t){$ve.set(t,t.el.getBoundingClientRect())}function v5e(t){const e=Fve.get(t),o=$ve.get(t),f=e.left-o.left,E=e.top-o.top;if(f||E){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${f}px,${E}px)`,d.transitionDuration="0s",t}}function y5e(t,e,o){const f=t.cloneNode();t._vtc&&t._vtc.forEach(s=>{s.split(/\s+/).forEach(n=>n&&f.classList.remove(n))}),o.split(/\s+/).forEach(s=>s&&f.classList.add(s)),f.style.display="none";const E=e.nodeType===1?e:e.parentNode;E.appendChild(f);const{hasTransform:d}=zve(f);return E.removeChild(f),d}const Che=t=>{const e=t.props["onUpdate:modelValue"]||!1;return tl(e)?o=>iH(e,o):e};function b5e(t){t.target.composing=!0}function Ahe(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const x5e={created(t,{modifiers:{lazy:e,trim:o,number:f}},E){t._assign=Che(E);const d=f||E.props&&E.props.type==="number";I8(t,e?"change":"input",s=>{if(s.target.composing)return;let n=t.value;o&&(n=n.trim()),d&&(n=Dae(n)),t._assign(n)}),o&&I8(t,"change",()=>{t.value=t.value.trim()}),e||(I8(t,"compositionstart",b5e),I8(t,"compositionend",Ahe),I8(t,"change",Ahe))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:o,trim:f,number:E}},d){if(t._assign=Che(d),t.composing||document.activeElement===t&&t.type!=="range"&&(o||f&&t.value.trim()===e||(E||t.type==="number")&&Dae(t.value)===e))return;const s=e??"";t.value!==s&&(t.value=s)}},_5e=["ctrl","shift","alt","meta"],w5e={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>_5e.some(o=>t[`${o}Key`]&&!e.includes(o))},LH=(t,e)=>(o,...f)=>{for(let E=0;Eo=>{if(!("key"in o))return;const f=JT(o.key);if(e.some(E=>E===f||O5e[E]===f))return t(o)},A4={beforeMount(t,{value:e},{transition:o}){t._vod=t.style.display==="none"?"":t.style.display,o&&e?o.beforeEnter(t):AL(t,e)},mounted(t,{value:e},{transition:o}){o&&e&&o.enter(t)},updated(t,{value:e,oldValue:o},{transition:f}){!e!=!o&&(f?e?(f.beforeEnter(t),AL(t,!0),f.enter(t)):f.leave(t,()=>{AL(t,!1)}):AL(t,e))},beforeUnmount(t,{value:e}){AL(t,e)}};function AL(t,e){t.style.display=e?t._vod:"none"}const S5e=pp({patchProp:c5e},Xke);let Mhe;function k5e(){return Mhe||(Mhe=Ake(S5e))}const T5e=(...t)=>{const e=k5e().createApp(...t),{mount:o}=e;return e.mount=f=>{const E=C5e(f);if(!E)return;const d=e._component;!Ul(d)&&!d.render&&!d.template&&(d.template=E.innerHTML),E.innerHTML="";const s=o(E,!1,E instanceof SVGElement);return E instanceof Element&&(E.removeAttribute("v-cloak"),E.setAttribute("data-v-app","")),s},e};function C5e(t){return Yh(t)?document.querySelector(t):t}/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const I8=typeof window<"u";function T5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const If=Object.assign;function Oie(t,e){const o={};for(const f in e){const E=e[f];o[f]=Sx(E)?E.map(t):t(E)}return o}const nI=()=>{},Sx=Array.isArray,C5e=/\/$/,A5e=t=>t.replace(C5e,"");function Sie(t,e,o="/"){let f,E={},d="",s="";const n=e.indexOf("#");let u=e.indexOf("?");return n=0&&(u=-1),u>-1&&(f=e.slice(0,u),d=e.slice(u+1,n>-1?n:e.length),E=t(d)),n>-1&&(f=f||e.slice(0,n),s=e.slice(n,e.length)),f=R5e(f??e,o),{fullPath:f+(d&&"?")+d+s,path:f,query:E,hash:s}}function M5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function Ahe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function E5e(t,e,o){const f=e.matched.length-1,E=o.matched.length-1;return f>-1&&f===E&&aM(e.matched[f],o.matched[E])&&$ve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function aM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function $ve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!P5e(t[o],e[o]))return!1;return!0}function P5e(t,e){return Sx(t)?Mhe(t,e):Sx(e)?Mhe(e,t):t===e}function Mhe(t,e){return Sx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function R5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),E=f[f.length-1];(E===".."||E===".")&&f.push("");let d=o.length-1,s,n;for(s=0;s1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(s-(s===f.length?1:0)).join("/")}var OI;(function(t){t.pop="pop",t.push="push"})(OI||(OI={}));var rI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(rI||(rI={}));function L5e(t){if(!t)if(I8){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),A5e(t)}const I5e=/^[^#]+#/;function D5e(t,e){return t.replace(I5e,"#")+e}function B5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const HZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function z5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),E=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!E)return;e=B5e(E,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Ehe(t,e){return(history.state?history.state.position-e:-1)+t}const Wae=new Map;function N5e(t,e){Wae.set(t,e)}function F5e(t){const e=Wae.get(t);return Wae.delete(t),e}let $5e=()=>location.protocol+"//"+location.host;function Vve(t,e){const{pathname:o,search:f,hash:E}=e,d=t.indexOf("#");if(d>-1){let n=E.includes(t.slice(d))?t.slice(d).length:1,u=E.slice(n);return u[0]!=="/"&&(u="/"+u),Ahe(u,"")}return Ahe(o,t)+f+E}function V5e(t,e,o,f){let E=[],d=[],s=null;const n=({state:w})=>{const y=Vve(t,location),m=o.value,a=e.value;let c=0;if(w){if(o.value=y,e.value=w,s&&s===m){s=null;return}c=a?w.position-a.position:0}else f(y);E.forEach(h=>{h(o.value,m,{delta:c,type:OI.pop,direction:c?c>0?rI.forward:rI.back:rI.unknown})})};function u(){s=o.value}function b(w){E.push(w);const y=()=>{const m=E.indexOf(w);m>-1&&E.splice(m,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState(If({},w.state,{scroll:HZ()}),"")}function S(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:u,listen:b,destroy:S}}function Phe(t,e,o,f=!1,E=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:E?HZ():null}}function U5e(t){const{history:e,location:o}=window,f={value:Vve(t,o)},E={value:e.state};E.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(u,b,i){const S=t.indexOf("#"),w=S>-1?(o.host&&document.querySelector("base")?t:t.slice(S))+u:$5e()+t+u;try{e[i?"replaceState":"pushState"](b,"",w),E.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function s(u,b){const i=If({},e.state,Phe(E.value.back,u,E.value.forward,!0),b,{position:E.value.position});d(u,i,!0),f.value=u}function n(u,b){const i=If({},E.value,e.state,{forward:u,scroll:HZ()});d(i.current,i,!0);const S=If({},Phe(f.value,u,null),{position:i.position+1},b);d(u,S,!1),f.value=u}return{location:f,state:E,push:n,replace:s}}function j5e(t){t=L5e(t);const e=U5e(t),o=V5e(t,e.state,e.location,e.replace);function f(d,s=!0){s||o.pauseListeners(),history.go(d)}const E=If({location:"",base:t,go:f,createHref:D5e.bind(null,t)},e,o);return Object.defineProperty(E,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(E,"state",{enumerable:!0,get:()=>e.state.value}),E}function Q5e(t){return typeof t=="string"||t&&typeof t=="object"}function Uve(t){return typeof t=="string"||typeof t=="symbol"}const GS={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jve=Symbol("");var Rhe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Rhe||(Rhe={}));function sM(t,e){return If(new Error,{type:t,[jve]:!0},e)}function OO(t,e){return t instanceof Error&&jve in t&&(e==null||!!(t.type&e))}const Lhe="[^/]+?",H5e={sensitive:!1,strict:!1,start:!0,end:!0},Z5e=/[.+*?^${}()[\]/\\]/g;function q5e(t,e){const o=If({},H5e,e),f=[];let E=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(E+="/");for(let S=0;Se.length?e.length===1&&e[0]===40+40?1:-1:0}function Y5e(t,e){let o=0;const f=t.score,E=e.score;for(;o0&&e[e.length-1]<0}const X5e={type:0,value:""},G5e=/[a-zA-Z0-9_]/;function K5e(t){if(!t)return[[]];if(t==="/")return[[X5e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const E=[];let d;function s(){d&&E.push(d),d=[]}let n=0,u,b="",i="";function S(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=u}for(;n{s(p)}:nI}function s(i){if(Uve(i)){const S=f.get(i);S&&(f.delete(i),o.splice(o.indexOf(S),1),S.children.forEach(s),S.alias.forEach(s))}else{const S=o.indexOf(i);S>-1&&(o.splice(S,1),i.record.name&&f.delete(i.record.name),i.children.forEach(s),i.alias.forEach(s))}}function n(){return o}function u(i){let S=0;for(;S=0&&(i.record.path!==o[S].record.path||!Qve(i,o[S]));)S++;o.splice(S,0,i),i.record.name&&!Bhe(i)&&f.set(i.record.name,i)}function b(i,S){let w,y={},m,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw sM(1,{location:i});a=w.record.name,y=If(Dhe(S.params,w.keys.filter(p=>!p.optional).map(p=>p.name)),i.params&&Dhe(i.params,w.keys.map(p=>p.name))),m=w.stringify(y)}else if("path"in i)m=i.path,w=o.find(p=>p.re.test(m)),w&&(y=w.parse(m),a=w.record.name);else{if(w=S.name?f.get(S.name):o.find(p=>p.re.test(S.path)),!w)throw sM(1,{location:i,currentLocation:S});a=w.record.name,y=If({},S.params,i.params),m=w.stringify(y)}const c=[];let h=w;for(;h;)c.unshift(h.record),h=h.parent;return{name:a,path:m,params:y,matched:c,meta:rTe(c)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:s,getRoutes:n,getRecordMatcher:E}}function Dhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function tTe(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:nTe(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function nTe(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function Bhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function rTe(t){return t.reduce((e,o)=>If(e,o.meta),{})}function zhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function Qve(t,e){return e.children.some(o=>o===t||Qve(t,o))}const Hve=/#/g,oTe=/&/g,iTe=/\//g,aTe=/=/g,sTe=/\?/g,Zve=/\+/g,lTe=/%5B/g,cTe=/%5D/g,qve=/%5E/g,uTe=/%60/g,Wve=/%7B/g,fTe=/%7C/g,Yve=/%7D/g,dTe=/%20/g;function mce(t){return encodeURI(""+t).replace(fTe,"|").replace(lTe,"[").replace(cTe,"]")}function hTe(t){return mce(t).replace(Wve,"{").replace(Yve,"}").replace(qve,"^")}function Yae(t){return mce(t).replace(Zve,"%2B").replace(dTe,"+").replace(Hve,"%23").replace(oTe,"%26").replace(uTe,"`").replace(Wve,"{").replace(Yve,"}").replace(qve,"^")}function pTe(t){return Yae(t).replace(aTe,"%3D")}function mTe(t){return mce(t).replace(Hve,"%23").replace(sTe,"%3F")}function gTe(t){return t==null?"":mTe(t).replace(iTe,"%2F")}function LH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function vTe(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let E=0;Ed&&Yae(d)):[f&&Yae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function yTe(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=Sx(f)?f.map(E=>E==null?null:""+E):f==null?f:""+f)}return e}const bTe=Symbol(""),Fhe=Symbol(""),gce=Symbol(""),vce=Symbol(""),Xae=Symbol("");function ML(){let t=[];function e(f){return t.push(f),()=>{const E=t.indexOf(f);E>-1&&t.splice(E,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function n4(t,e,o,f,E){const d=f&&(f.enterCallbacks[E]=f.enterCallbacks[E]||[]);return()=>new Promise((s,n)=>{const u=S=>{S===!1?n(sM(4,{from:o,to:e})):S instanceof Error?n(S):Q5e(S)?n(sM(2,{from:e,to:S})):(d&&f.enterCallbacks[E]===d&&typeof S=="function"&&d.push(S),s())},b=t.call(f&&f.instances[E],e,o,u);let i=Promise.resolve(b);t.length<3&&(i=i.then(u)),i.catch(S=>n(S))})}function kie(t,e,o,f){const E=[];for(const d of t)for(const s in d.components){let n=d.components[s];if(!(e!=="beforeRouteEnter"&&!d.instances[s]))if(xTe(n)){const b=(n.__vccOpts||n)[e];b&&E.push(n4(b,o,f,d,s))}else{let u=n();E.push(()=>u.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${d.path}"`));const i=T5e(b)?b.default:b;d.components[s]=i;const w=(i.__vccOpts||i)[e];return w&&n4(w,o,f,d,s)()}))}}return E}function xTe(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function $he(t){const e=Kl(gce),o=Kl(vce),f=nr(()=>e.resolve(Va(t.to))),E=nr(()=>{const{matched:u}=f.value,{length:b}=u,i=u[b-1],S=o.matched;if(!i||!S.length)return-1;const w=S.findIndex(aM.bind(null,i));if(w>-1)return w;const y=Vhe(u[b-2]);return b>1&&Vhe(i)===y&&S[S.length-1].path!==y?S.findIndex(aM.bind(null,u[b-2])):w}),d=nr(()=>E.value>-1&&STe(o.params,f.value.params)),s=nr(()=>E.value>-1&&E.value===o.matched.length-1&&$ve(o.params,f.value.params));function n(u={}){return OTe(u)?e[Va(t.replace)?"replace":"push"](Va(t.to)).catch(nI):Promise.resolve()}return{route:f,href:nr(()=>f.value.href),isActive:d,isExactActive:s,navigate:n}}const _Te=em({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$he,setup(t,{slots:e}){const o=Am($he(t)),{options:f}=Kl(gce),E=nr(()=>({[Uhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[Uhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:U1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:E.value},d)}}}),wTe=_Te;function OTe(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function STe(t,e){for(const o in e){const f=e[o],E=t[o];if(typeof f=="string"){if(f!==E)return!1}else if(!Sx(E)||E.length!==f.length||f.some((d,s)=>d!==E[s]))return!1}return!0}function Vhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Uhe=(t,e,o)=>t??e??o,kTe=em({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=Kl(Xae),E=nr(()=>t.route||f.value),d=Kl(Fhe,0),s=nr(()=>{let b=Va(d);const{matched:i}=E.value;let S;for(;(S=i[b])&&!S.components;)b++;return b}),n=nr(()=>E.value.matched[s.value]);md(Fhe,nr(()=>s.value+1)),md(bTe,n),md(Xae,E);const u=qo();return ia(()=>[u.value,n.value,t.name],([b,i,S],[w,y,m])=>{i&&(i.instances[S]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!aM(i,y)||!w)&&(i.enterCallbacks[S]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=E.value,i=t.name,S=n.value,w=S&&S.components[i];if(!w)return jhe(o.default,{Component:w,route:b});const y=S.props[i],m=y?y===!0?b.params:typeof y=="function"?y(b):y:null,c=U1(w,If({},m,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(S.instances[i]=null)},ref:u}));return jhe(o.default,{Component:c,route:b})||c}}});function jhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const TTe=kTe;function CTe(t){const e=eTe(t.routes,t),o=t.parseQuery||vTe,f=t.stringifyQuery||Nhe,E=t.history,d=ML(),s=ML(),n=ML(),u=Gi(GS);let b=GS;I8&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Oie.bind(null,q=>""+q),S=Oie.bind(null,gTe),w=Oie.bind(null,LH);function y(q,Y){let ee,me;return Uve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function m(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function c(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=If({},Y||u.value),typeof q=="string"){const ce=Sie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ye=E.createHref(ce.fullPath);return If(ce,de,{params:w(de.params),hash:LH(ce.hash),redirectedFrom:void 0,href:ye})}let ee;if("path"in q)ee=If({},q,{path:Sie(o,q.path,Y.path).path});else{const ce=If({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=If({},q,{params:S(ce)}),Y.params=S(Y.params)}const me=e.resolve(ee,Y),pe=q.hash||"";me.params=i(w(me.params));const se=M5e(f,If({},q,{hash:hTe(pe),path:me.path})),ae=E.createHref(se);return If({fullPath:se,hash:pe,query:f===Nhe?yTe(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function p(q){return typeof q=="string"?Sie(o,q,u.value.path):If({},q)}function v(q,Y){if(b!==q)return sM(8,{from:Y,to:q})}function _(q){return x(q)}function O(q){return _(If(p(q),{replace:!0}))}function C(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=p(me):{path:me},me.params={}),If({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=u.value,pe=q.state,se=q.force,ae=q.replace===!0,ce=C(ee);if(ce)return x(If(p(ce),{state:typeof ce=="object"?If({},pe,ce.state):pe,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ye;return!se&&E5e(f,me,ee)&&(ye=sM(16,{to:de,from:me}),U(me,me,!0,!1)),(ye?Promise.resolve(ye):T(de,me)).catch(ve=>OO(ve)?OO(ve,2)?ve:j(ve):$(ve,de,me)).then(ve=>{if(ve){if(OO(ve,2))return x(If({replace:ae},p(ve.to),{state:typeof ve.to=="object"?If({},pe,ve.to.state):pe,force:se}),Y||de)}else ve=A(de,me,!0,ae,pe);return P(de,me,ve),ve})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=Z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,pe,se]=ATe(q,Y);ee=kie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(n4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),re(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).then(()=>{ee=kie(pe,"beforeRouteUpdate",q,Y);for(const ce of pe)ce.updateGuards.forEach(de=>{ee.push(n4(de,q,Y))});return ee.push(ae),re(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(Sx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(n4(de,q,Y));else ee.push(n4(ce.beforeEnter,q,Y));return ee.push(ae),re(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=kie(se,"beforeRouteEnter",q,Y),ee.push(ae),re(ee))).then(()=>{ee=[];for(const ce of s.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).catch(ce=>OO(ce,8)?ce:Promise.reject(ce))}function P(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function A(q,Y,ee,me,pe){const se=v(q,Y);if(se)return se;const ae=Y===GS,ce=I8?history.state:{};ee&&(me||ae?E.replace(q.fullPath,If({scroll:ae&&ce&&ce.scroll},pe)):E.push(q.fullPath,pe)),u.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=E.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),pe=C(me);if(pe){x(If(pe,{replace:!0}),me).catch(nI);return}b=me;const se=u.value;I8&&N5e(Ehe(se.fullPath,ee.delta),HZ()),T(me,se).catch(ae=>OO(ae,12)?ae:OO(ae,2)?(x(ae.to,me).then(ce=>{OO(ce,20)&&!ee.delta&&ee.type===OI.pop&&E.go(-1,!1)}).catch(nI),Promise.reject()):(ee.delta&&E.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||A(me,se,!1),ae&&(ee.delta&&!OO(ae,8)?E.go(-ee.delta,!1):ee.type===OI.pop&&OO(ae,20)&&E.go(-1,!1)),P(me,se,ae)}).catch(nI)}))}let k=ML(),I=ML(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(pe=>pe(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&u.value!==GS?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:pe}=t;if(!I8||!pe)return Promise.resolve();const se=!ee&&F5e(Ehe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return Vc().then(()=>pe(q,Y,se)).then(ae=>ae&&z5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>E.go(q);let te;const Z=new Set,K={currentRoute:u,listening:!0,addRoute:y,removeRoute:m,hasRoute:c,getRoutes:a,resolve:h,options:t,push:_,replace:O,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:s.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",wTe),q.component("RouterView",TTe),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>Va(u)}),I8&&!te&&u.value===GS&&(te=!0,_(E.location).catch(pe=>{}));const ee={};for(const pe in GS)Object.defineProperty(ee,pe,{get:()=>u.value[pe],enumerable:!0});q.provide(gce,Y),q.provide(vce,K1e(ee)),q.provide(Xae,u);const me=q.unmount;Z.add(q),q.unmount=function(){Z.delete(q),Z.size<1&&(b=GS,L&&L(),L=null,u.value=GS,te=!1,z=!1),me()}}};function re(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function ATe(t,e){const o=[],f=[],E=[],d=Math.max(e.matched.length,t.matched.length);for(let s=0;saM(b,n))?f.push(n):o.push(n));const u=t.matched[s];u&&(e.matched.find(b=>aM(b,u))||E.push(u))}return[o,f,E]}function JT(){return Kl(vce)}function MTe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,s,n){var u=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var S=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");u.addStyleRule(S,b[i])}},86712:function(d,s,n){d.exports=n(84224)},37240:function(d,s,n){d.exports=n(51132)},29744:function(d,s,n){d.exports=n(94456)},29352:function(d,s,n){d.exports=n(67244)},96144:function(d,s,n){d.exports=n(97776)},53219:function(d,s,n){d.exports=n(61712)},4624:function(d,s,n){d.exports=n(95856)},54543:function(d,s,n){d.exports=n(54272)},45e3:function(d,s,n){d.exports=n(85404)},62300:function(d,s,n){d.exports=n(26048)},6920:function(d,s,n){d.exports=n(66240)},10264:function(d,s,n){d.exports=n(40448)},32016:function(d,s,n){d.exports=n(64884)},27528:function(d,s,n){d.exports=n(15088)},75556:function(d,s,n){d.exports=n(76744)},39204:function(d,s,n){d.exports=n(94704)},73996:function(d,s,n){d.exports=n(62396)},16489:function(d,s,n){d.exports=n(32028)},5e3:function(d,s,n){d.exports=n(81932)},77280:function(d,s,n){d.exports=n(45536)},33992:function(d,s,n){d.exports=n(42600)},17600:function(d,s,n){d.exports=n(21536)},49116:function(d,s,n){d.exports=n(65664)},46808:function(d,s,n){d.exports=n(29044)},36168:function(d,s,n){d.exports=n(48928)},13792:function(d,s,n){var u=n(32016);u.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=u},3920:function(d,s,n){d.exports=n(43480)},25120:function(d,s,n){d.exports=n(6296)},4340:function(d,s,n){d.exports=n(7404)},86152:function(d,s,n){d.exports=n(65456)},56816:function(d,s,n){d.exports=n(22020)},89296:function(d,s,n){d.exports=n(29928)},20260:function(d,s,n){d.exports=n(75792)},32140:function(d,s,n){d.exports=n(156)},84764:function(d,s,n){d.exports=n(45499)},48824:function(d,s,n){d.exports=n(3296)},69967:function(d,s,n){d.exports=n(4184)},8363:function(d,s,n){d.exports=n(36952)},86636:function(d,s,n){d.exports=n(38983)},70192:function(d,s,n){d.exports=n(11572)},81604:function(d,s,n){d.exports=n(76924)},63796:function(d,s,n){d.exports=n(62944)},89336:function(d,s,n){d.exports=n(95443)},67484:function(d,s,n){d.exports=n(34864)},97312:function(d,s,n){d.exports=n(76272)},42192:function(d,s,n){d.exports=n(97924)},29800:function(d,s,n){d.exports=n(15436)},63560:function(d,s,n){d.exports=n(5621)},89904:function(d,s,n){d.exports=n(91304)},50248:function(d,s,n){d.exports=n(41724)},65832:function(d,s,n){d.exports=n(31991)},79440:function(d,s,n){d.exports=n(22869)},13752:function(d,s,n){d.exports=n(67776)},83096:function(d,s,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,s,n){var u=n(72196),b=n(25376),i=n(33816),S=n(31780).templatedArray;n(36208),d.exports=S("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,s,n){var u=n(3400),b=n(54460),i=n(23816).draw;function S(y){var m=y._fullLayout;u.filterVisible(m.annotations).forEach(function(a){var c=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),p=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},p==="range"&&w(a,c),v==="range"&&w(a,h)})}function w(y,m){var a,c=m._id,h=c.charAt(0),p=y[h],v=y["a"+h],_=y[h+"ref"],O=y["a"+h+"ref"],C=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,P=M-R,A=3*y.startarrowsize*y.arrowwidth||0,L=A+R,D=A-R;if(O===_){var k=b.findExtremes(m,[m.r2c(p)],{ppadplus:T,ppadminus:P}),I=b.findExtremes(m,[m.r2c(v)],{ppadplus:Math.max(C,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(m,[m.r2c(p)],{ppadplus:Math.max(C,T,L),ppadminus:Math.max(x,P,D)});y._extremes[c]=a}d.exports=function(y){var m=y._fullLayout;if(u.filterVisible(m.annotations).length&&y._fullData.length)return u.syncOrAsync([i,S],y)}},42300:function(d,s,n){var u=n(3400),b=n(24040),i=n(31780).arrayEditor;function S(y,m){var a,c,h,p,v,_,O,C=y._fullLayout.annotations,x=[],R=[],M=[],T=(m||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,m){var a,c,h=S(y,m),p=h.on,v=h.off.concat(h.explicitOff),_={},O=y._fullLayout.annotations;if(p.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Zt]}for(var Je=!1,Me=["x","y"],Fe=0;Fe1)&&(Ft===St?((Sn=zt.r2fraction(T["a"+pt]))<0||Sn>1)&&(Je=!0):Je=!0),je=zt._offset+zt.r2p(T[pt]),Ge=.5}else{var vt=Pn==="domain";pt==="x"?(ot=T[pt],je=vt?zt._offset+zt._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?zt._offset+zt._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){Cn.head=je;var xt=T["a"+pt];if(ht=ln*Ye(.5,T.xanchor)-tn*Ye(.5,T.yanchor),Ft===St){var st=y.getRefType(Ft);st==="domain"?(pt==="y"&&(xt=1-xt),Cn.tail=zt._offset+zt._length*xt):st==="paper"?pt==="y"?(xt=1-xt,Cn.tail=$.t+$.h*xt):Cn.tail=$.l+$.w*xt:Cn.tail=zt._offset+zt.r2p(xt),tt=ht}else Cn.tail=je+xt,tt=ht+xt;Cn.text=Cn.tail+ht;var bt=z[pt==="x"?"width":"height"];if(St==="paper"&&(Cn.head=S.constrain(Cn.head,1,bt-1)),Ft==="pixel"){var Vt=-Math.max(Cn.tail-3,Cn.text),Dt=Math.min(Cn.tail+3,Cn.text)-bt;Vt>0?(Cn.tail+=Vt,Cn.text+=Vt):Dt>0&&(Cn.tail-=Dt,Cn.text-=Dt)}Cn.tail+=cn,Cn.head+=cn}else tt=ht=Et*Ye(Ge,Ot),Cn.text=je+ht;Cn.text+=cn,ht+=cn,tt+=cn,T["_"+pt+"padplus"]=Et/2+tt,T["_"+pt+"padminus"]=Et/2-tt,T["_"+pt+"size"]=Et,T["_"+pt+"shift"]=ht}if(Je)pe.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Re-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)Qe.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ye?Z:null,M);else{var Bt=ce+at-$e.top,_t=ce+it-$e.left;Te.call(h.positionText,_t,Bt).call(a.setClipUrl,ye?Z:null,M)}ve.select("rect").call(a.setRect,ce,ce,Re,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),pe.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+re+","+K.x.text+","+K.y.text+")"});var qt,en=function(Jt,Zt){q.selectAll(".annotation-arrow-g").remove();var Nt=K.x.head,sn=K.y.head,rn=K.x.tail+Jt,_n=K.y.tail+Zt,wn=K.x.text+Jt,An=K.y.text+Zt,Kn=S.rotationXYMatrix(re,wn,An),fr=S.apply2DTransform(Kn),Un=S.apply2DTransform2(Kn),Zn=+de.attr("width"),tr=+de.attr("height"),Br=wn-.5*Zn,$r=Br+Zn,vr=An-.5*tr,qn=vr+tr,gr=[[Br,vr,Br,qn],[Br,qn,$r,qn],[$r,qn,$r,vr],[$r,vr,Br,vr]].map(Un);if(!gr.reduce(function($o,Mo){return $o^!!S.segmentsIntersect(Nt,sn,Nt+1e6,sn+1e6,Mo[0],Mo[1],Mo[2],Mo[3])},!1)){gr.forEach(function($o){var Mo=S.segmentsIntersect(rn,_n,Nt,sn,$o[0],$o[1],$o[2],$o[3]);Mo&&(rn=Mo.x,_n=Mo.y)});var sr=T.arrowwidth,lr=T.arrowcolor,zr=T.arrowside,Vr=q.append("g").style({opacity:m.opacity(lr)}).classed("annotation-arrow-g",!0),eo=Vr.append("path").attr("d","M"+rn+","+_n+"L"+Nt+","+sn).style("stroke-width",sr+"px").call(m.stroke,m.rgb(lr));if(O(eo,zr,T),Q.annotationPosition&&eo.node().parentNode&&!A){var Jr=Nt,Yr=sn;if(T.standoff){var to=Math.sqrt(Math.pow(Nt-rn,2)+Math.pow(sn-_n,2));Jr+=T.standoff*(rn-Nt)/to,Yr+=T.standoff*(_n-sn)/to}var co,Fo,_o=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rn-Jr)+","+(_n-Yr),transform:w(Jr,Yr)}).style("stroke-width",sr+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");v.init({element:_o.node(),gd:M,prepFn:function(){var $o=a.getTranslate(pe);co=$o.x,Fo=$o.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function($o,Mo){var pi=fr(co,Fo),Hn=pi[0]+$o,ar=pi[1]+Mo;pe.call(a.setTranslate,Hn,ar),X("x",x(L,$o,"x",$,T)),X("y",x(D,Mo,"y",$,T)),T.axref===T.xref&&X("ax",x(L,$o,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,Mo,"ay",$,T)),Vr.attr("transform",w($o,Mo)),Y.attr({transform:"rotate("+re+","+Hn+","+ar+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var $o=document.querySelector(".js-notes-box-panel");$o&&$o.redraw($o.selectedObj)}})}}};T.showarrow&&en(0,0),ee&&v.init({element:pe.node(),gd:M,prepFn:function(){qt=Y.attr("transform")},moveFn:function(Jt,Zt){var Nt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Jt,"ax",$,T)):X("ax",T.ax+Jt),T.ayref===T.yref?X("ay",x(D,Zt,"ay",$.w,T)):X("ay",T.ay+Zt),en(Jt,Zt);else{if(A)return;var sn,rn;if(L)sn=x(L,Jt,"x",$,T);else{var _n=T._xsize/$.w,wn=T.x+(T._xshift-T.xshift)/$.w-_n/2;sn=v.align(wn+Jt/$.w,_n,0,1,T.xanchor)}if(D)rn=x(D,Zt,"y",$,T);else{var An=T._ysize/$.h,Kn=T.y-(T._yshift+T.yshift)/$.h-An/2;rn=v.align(Kn-Zt/$.h,An,0,1,T.yanchor)}X("x",sn),X("y",rn),L&&D||(Nt=v.getCursor(L?.5:sn,D?.5:rn,T.xanchor,T.yanchor))}Y.attr({transform:w(Jt,Zt)+qt}),p(pe,Nt)},clickFn:function(Jt,Zt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Zt))},doneFn:function(){p(pe),b.call("_guiRelayout",M,te());var Jt=document.querySelector(".js-notes-box-panel");Jt&&Jt.redraw(Jt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var P=0;P=0,A=c.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(C.nodeName==="line"){p={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=p.x-v.x,I=p.y-v.y;if(O=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);p.x-=Q,p.y-=j,a.attr({x1:p.x,y1:p.y})}}else if(C.nodeName==="path"){var U=C.getTotalLength(),X="";if(U1){h=!0;break}}h?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+a+'"]').remove():(c._pdata=b(S.glplot.cameraParams,[w.xaxis.r2l(c.x)*y[0],w.yaxis.r2l(c.y)*y[1],w.zaxis.r2l(c.z)*y[2]]),u(S.graphDiv,c,a,S.id,c._xa,c._ya))}}},56864:function(d,s,n){var u=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,S){var w=u.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,m=Object.keys(i),a=0;a=0)))return c;if(O===3)v[O]>1&&(v[O]=1);else if(v[O]>=1)return c}var C=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+C+", "+v[3]+")":"rgb("+C+")"}S.tinyRGB=function(c){var h=c.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},S.rgb=function(c){return S.tinyRGB(u(c))},S.opacity=function(c){return c?u(c).getAlpha():0},S.addOpacity=function(c,h){var p=u(c).toRgb();return"rgba("+Math.round(p.r)+", "+Math.round(p.g)+", "+Math.round(p.b)+", "+h+")"},S.combine=function(c,h){var p=u(c).toRgb();if(p.a===1)return u(c).toRgbString();var v=u(h||m).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},O={r:_.r*(1-p.a)+p.r*p.a,g:_.g*(1-p.a)+p.g*p.a,b:_.b*(1-p.a)+p.b*p.a};return u(O).toRgbString()},S.contrast=function(c,h,p){var v=u(c);return v.getAlpha()!==1&&(v=u(S.combine(c,m))),(v.isDark()?h?v.lighten(h):m:p?v.darken(p):y).toString()},S.stroke=function(c,h){var p=u(h);c.style({stroke:S.tinyRGB(p),"stroke-opacity":p.getAlpha()})},S.fill=function(c,h){var p=u(h);c.style({fill:S.tinyRGB(p),"fill-opacity":p.getAlpha()})},S.clean=function(c){if(c&&typeof c=="object"){var h,p,v,_,O=Object.keys(c);for(h=0;h0?Dt>=qt:Dt<=qt));it++)Dt>Jt&&Dt0?Dt>=qt:Dt<=qt));it++)Dt>Vt[0]&&Dt1){var tn=Math.pow(10,Math.floor(Math.log(ln)/Math.LN10));zt*=tn*m.roundUp(ln/tn,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(St.tick0=0)}St.dtick=zt}St.domain=te?[ht+ce/Te.h,ht+Je-ce/Te.h]:[ht+ae/Te.w,ht+Je-ae/Te.w],St.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Et,Ot=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),cn=St.ticklabelposition,Cn=St.title.font.size,Pn=j.select("."+D.cbaxis),Sn=0,vt=0;function xt(st,bt){var Vt={propContainer:St,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:we._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Dt=st.charAt(0)==="h"?st.substr(1):"h"+st;j.selectAll("."+Dt+",."+Dt+"-math-group").remove(),_.draw(X,st,c(Vt,bt||{}))}return m.syncOrAsync([i.previousPromises,function(){var st,bt;(te&&Ft||!te&&!Ft)&&(De==="top"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht-Je)+3+.75*Cn),De==="bottom"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht)-3-.25*Cn),De==="right"&&(bt=ce+Te.t+Fe*ye+3+.75*Cn,st=ae+Te.l+Me*ht),xt(St._id+"title",{attributes:{x:st,y:bt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Ft||te&&Ft){var st,bt=j.select("."+D.cbtitle),Vt=bt.select("text"),Dt=[-Y/2,Y/2],it=bt.select(".h"+St._id+"title-math-group").node(),at=15.6;if(Vt.node()&&(at=parseInt(Vt.node().style.fontSize,10)*P),it?(st=p.bBox(it),vt=st.width,(Sn=st.height)>at&&(Dt[1]-=(Sn-at)/2)):Vt.node()&&!Vt.classed(D.jsPlaceholder)&&(st=p.bBox(Vt.node()),vt=st.width,Sn=st.height),te){if(Sn){if(Sn+=5,De==="top")St.domain[1]-=Sn/Te.h,Dt[1]*=-1;else{St.domain[0]+=Sn/Te.h;var Bt=O.lineCount(Vt);Dt[1]+=(1-Bt)*at}bt.attr("transform",a(Dt[0],Dt[1])),St.setScale()}}else vt&&(De==="right"&&(St.domain[0]+=(vt+Cn/2)/Te.w),bt.attr("transform",a(Dt[0],Dt[1])),St.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-St.domain[1]))):a(Math.round(Te.w*St.domain[0]),0)),Pn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var _t=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Re);_t.enter().append("rect").classed(D.cbfill,!0).attr("style",""),_t.exit().remove();var qt=Qe.map(St.c2p).map(Math.round).sort(function(sn,rn){return sn-rn});_t.each(function(sn,rn){var _n=[rn===0?Qe[0]:(Re[rn]+Re[rn-1])/2,rn===Re.length-1?Qe[1]:(Re[rn]+Re[rn+1])/2].map(St.c2p).map(Math.round);te&&(_n[1]=m.constrain(_n[1]+(_n[1]>_n[0])?1:-1,qt[0],qt[1]));var wn=u.select(this).attr(te?"x":"y",je).attr(te?"y":"x",u.min(_n)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(u.max(_n)-u.min(_n),2));if(U._fillgradient)p.gradient(wn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var An=$e(sn).replace("e-","");wn.attr("fill",b(An).toHexString())}});var en=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);en.enter().append("path").classed(D.cbline,!0),en.exit().remove(),en.each(function(sn){var rn=je,_n=Math.round(St.c2p(sn))+Ie.width/2%1;u.select(this).attr("d","M"+(te?rn+","+_n:_n+","+rn)+(te?"h":"v")+Ue).call(p.lineGroupStyle,Ie.width,Ve(sn),Ie.dash)}),Pn.selectAll("g."+St._id+"tick,path").remove();var Jt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Zt=w.calcTicks(St),Nt=w.getTickSigns(St)[2];return w.drawTicks(X,St,{vals:St.ticks==="inside"?w.clipEnds(St,Zt):Zt,layer:Pn,path:w.makeTickPath(St,Jt,Nt),transFn:w.makeTransTickFn(St)}),w.drawLabels(X,St,{vals:Zt,layer:Pn,transFn:w.makeTransTickLabelFn(St),labelFns:w.makeLabelFns(St,Jt)})},function(){if(te&&!Ft||!te&&Ft){var st,bt,Vt=St.position||0,Dt=St._offset+St._length/2;if(De==="right")bt=Dt,st=Te.l+Me*Vt+10+Cn*(St.showticklabels?1:.5);else if(st=Dt,De==="bottom"&&(bt=Te.t+Fe*Vt+10+(cn.indexOf("inside")===-1?St.tickfont.size:0)+(St.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
    ").length;bt=Te.t+Fe*Vt+10-Ue-P*Cn*it}xt((te?"h":"v")+St._id+"title",{avoid:{selection:u.select(X).selectAll("g."+St._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?we.width:we.height},attributes:{x:st,y:bt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var st,bt=Ue+Y/2;cn.indexOf("inside")===-1&&(st=p.bBox(Pn.node()),bt+=te?st.width:st.height),Et=Ot.select("text");var Vt=0,Dt=te&&De==="top",it=!te&&De==="right",at=0;if(Et.node()&&!Et.classed(D.jsPlaceholder)){var Bt,_t=Ot.select(".h"+St._id+"title-math-group").node();_t&&(te&&Ft||!te&&!Ft)?(Vt=(st=p.bBox(_t)).width,Bt=st.height):(Vt=(st=p.bBox(Ot.node())).right-Te.l-(te?je:pt),Bt=st.bottom-Te.t-(te?pt:je),te||De!=="top"||(bt+=st.height,at=st.height)),it&&(Et.attr("transform",a(Vt/2+Cn/2,0)),Vt*=2),bt=Math.max(bt,te?Vt:Bt)}var qt=2*(te?ae:ce)+bt+ee+Y/2,en=0;!te&&ze.text&&se==="bottom"&&ye<=0&&(qt+=en=qt/2,at+=en),we._hColorbarMoveTitle=en,we._hColorbarMoveCBTitle=at;var Jt=ee+Y,Zt=(te?je:pt)-Jt/2-(te?ae:0),Nt=(te?pt:je)-(te?Ye:ce+at-en);j.select("."+D.cbbg).attr("x",Zt).attr("y",Nt).attr(te?"width":"height",Math.max(qt-en,2)).attr(te?"height":"width",Math.max(Ye+Jt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var sn=it?Math.max(Vt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+sn).attr("y",(te?pt+ce-Ye:je)+(Dt?Sn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Ye-(te?2*ce+Sn:2*ae+sn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var rn=te?tt*qt:0,_n=te?0:(1-ot)*qt-at;if(rn=_e?Te.l-rn:-rn,_n=ve?Te.t-_n:-_n,j.attr("transform",a(rn,_n)),!te&&(ee||b(me).getAlpha()&&!b.equals(we.paper_bgcolor,me))){var wn=Pn.selectAll("text"),An=wn[0].length,Kn=j.select("."+D.cbbg).node(),fr=p.bBox(Kn),Un=p.getTranslate(j);wn.each(function(zr,Vr){var eo=An-1;if(Vr===0||Vr===eo){var Jr,Yr=p.bBox(this),to=p.getTranslate(this);if(Vr===eo){var co=Yr.right+to.x;(Jr=fr.right+Un.x+pt-ee-2+de-co)>0&&(Jr=0)}else if(Vr===0){var Fo=Yr.left+to.x;(Jr=fr.left+Un.x+pt+ee+2-Fo)<0&&(Jr=0)}Jr&&(An<3?this.setAttribute("transform","translate("+Jr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Zn={},tr=A[pe],Br=L[pe],$r=A[se],vr=L[se],qn=qt-Ue;te?(K==="pixels"?(Zn.y=ye,Zn.t=Ye*$r,Zn.b=Ye*vr):(Zn.t=Zn.b=0,Zn.yt=ye+Z*$r,Zn.yb=ye-Z*vr),q==="pixels"?(Zn.x=de,Zn.l=qt*tr,Zn.r=qt*Br):(Zn.l=qn*tr,Zn.r=qn*Br,Zn.xl=de-re*tr,Zn.xr=de+re*Br)):(K==="pixels"?(Zn.x=de,Zn.l=Ye*tr,Zn.r=Ye*Br):(Zn.l=Zn.r=0,Zn.xl=de+Z*tr,Zn.xr=de-Z*Br),q==="pixels"?(Zn.y=1-ye,Zn.t=qt*$r,Zn.b=qt*vr):(Zn.t=qn*$r,Zn.b=qn*vr,Zn.yt=ye-re*$r,Zn.yb=ye+re*vr));var gr=U.y<.5?"b":"t",sr=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var lr={r:we.width-Zt-rn,l:Zt+Zn.r,b:we.height-Nt-_n,t:Nt+Zn.b};_e&&ve?i.autoMargin(X,U._id,Zn):_e?X._fullLayout._reservedMargin[U._id][gr]=lr[gr]:ve||te?X._fullLayout._reservedMargin[U._id][sr]=lr[sr]:X._fullLayout._reservedMargin[U._id][gr]=lr[gr]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,Z,K,re=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),Z=y.align((re?U._uFrac:U._vFrac)+Y/q.w,re?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((re?U._vFrac:1-U._uFrac)-ee/q.h,re?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(Z,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),Z!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=Z,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?S.call("_guiRestyle",X,Y,U._traceIndex):S.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,s,n){var u=n(3400);d.exports=function(b){return u.isPlainObject(b.colorbar)}},55080:function(d,s,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,s,n){var u=n(42996),b=n(53756).counter,i=n(95376),S=n(88304).scales;function w(y){return"`"+y+"`"}i(S),d.exports=function(y,m){y=y||"";var a,c=(m=m||{}).cLetter||"c",h=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:y==="marker.line"),p="showScaleDflt"in m?m.showScaleDflt:c==="z",v=typeof m.colorscaleDflt=="string"?S[m.colorscaleDflt]:null,_=m.editTypeOverride||"",O=y?y+".":"";"colorAttr"in m?(a=m.colorAttr,m.colorAttr):w(O+(a={z:"z",c:"color"}[c]));var C=c+"auto",x=c+"min",R=c+"max",M=c+"mid",T={};T[x]=T[R]=void 0;var P={};P[C]=!1;var A={};return a==="color"&&(A.color={valType:"color",arrayOk:!0,editType:_||"style"},m.anim&&(A.color.anim=!0)),A[C]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(A.showscale={valType:"boolean",dflt:p,editType:"calc"},A.colorbar=u),m.noColorAxis||(A.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),A}},47128:function(d,s,n){var u=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(S,w,y){var m,a=S._fullLayout,c=y.vals,h=y.containerStr,p=h?b.nestedProperty(w,h).get():w,v=i(p),_=v.auto!==!1,O=v.min,C=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,c)},M=function(){return b.aggNums(Math.max,null,c)};O===void 0?O=R():_&&(O=p._colorAx&&u(O)?Math.min(O,R()):R()),C===void 0?C=M():_&&(C=p._colorAx&&u(C)?Math.max(C,M()):M()),_&&x!==void 0&&(C-x>x-O?O=x-(C-x):C-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",m))}},95504:function(d,s,n){var u=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(S,w){function y(_,O){var C=_["_"+O];C!==void 0&&(_[O]=C)}function m(_,O){var C=O.container?u.nestedProperty(_,O.container).get():_;if(C)if(C.coloraxis)C._colorAx=w[C.coloraxis];else{var x=i(C),R=x.auto;(R||x.min===void 0)&&y(C,O.min),(R||x.max===void 0)&&y(C,O.max),x.autocolorscale&&y(C,"colorscale")}}for(var a=0;a=0;R--,M++){var T=O[R];x[M]=[1-T[0],T[1]]}return x}function v(O,C){C=C||{};for(var x=O.domain,R=O.range,M=R.length,T=new Array(M),P=0;P1.3333333333333333-y?w:y}},67416:function(d,s,n){var u=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,S,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:u.constrain(Math.floor(3*i),0,2),S=y==="bottom"?0:y==="middle"?1:y==="top"?2:u.constrain(Math.floor(3*S),0,2),b[S][i]}},72760:function(d,s){s.selectMode=function(n){return n==="lasso"||n==="select"},s.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.openMode=function(n){return n==="drawline"||n==="drawopenpath"},s.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},s.selectingOrDrawing=function(n){return s.freeMode(n)||s.rectMode(n)}},86476:function(d,s,n){var u=n(29128),b=n(52264),i=n(89184),S=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var m=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var p=h.style;return p.position="fixed",p.left=0,p.right=0,p.top=0,p.bottom=0,p.zIndex=999999999,p.background="none",document.body.appendChild(h),h}function c(h){return u(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=m.wrapped,y.unhoverRaw=m.raw,y.init=function(h){var p,v,_,O,C,x,R,M,T=h.gd,P=1,A=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)A&&(P=Math.max(P-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(P,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=c($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,s,n){var u=n(95924),b=n(91200),i=n(52200).getGraphDiv,S=n(92456),w=d.exports={};w.wrapped=function(y,m,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+S.HOVERID),w.raw(y,m,a)},w.raw=function(y,m){var a=y._fullLayout,c=y._hoverdata;m||(m={}),m.target&&!y._dragged&&u.triggerHandler(y,"plotly_beforehover",m)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,m.target&&c&&y.emit("plotly_unhover",{event:m,points:c}))}},98192:function(d,s){s.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},s.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,s,n){var u=n(33428),b=n(3400),i=b.numberFormat,S=n(38248),w=n(49760),y=n(24040),m=n(76308),a=n(8932),c=b.strTranslate,h=n(72736),p=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,O=n(43028),C=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Re=ke&&R.getPatternAttr(ke.shape,0,"");if(Re){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Ye=R.getPatternAttr(ke.size,0,8),Je=R.getPatternAttr(ke.solidity,0,.3),Me=$e.uid;R.pattern(Ve,"point",Oe,Me,Re,Ye,Je,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(m.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(m.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Re){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Re)},R.translatePoint=function(Ve,$e,Oe,ke){var Re=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(S(Re)&&S(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Re).attr("y",We):$e.attr("transform",c(Re,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Re=u.select(this);R.translatePoint(ke,Re,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Re,We){$e.attr("display",Oe.isPtWithinRange(Ve,Re)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Re){var We=Re[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Ye=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Ye).each(function(Je){R.hideOutsideRangePoint(Je,u.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&S($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Re){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Re||We.dash||"";m.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Re){var We=(((Re||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";u.select(this).call(m.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=u.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=u.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var P=R.symbolNames.length;function A(Ve,$e,Oe,ke){var Re=Ve%100;return R.symbolFuncs[Re]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(S(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=P||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Re,We){for(var Ue=Re.length,Ze=I[ke],Ye=new Array(Ue),Je=0;Je=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Ye;Ye=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Ye,ke.selectedSizeFn&&(Ye=Ve.mrc=ke.selectedSizeFn(Ve));var Je=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=Je%200>=100;var Me=Qe(Ve,Oe),Fe=ce(Ve,Oe);$e.attr("d",A(Je,Ye,Me,Fe))}var je,tt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,tt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,tt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?m.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=m.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(m.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,St=Ve.mgt;St?Ge=!0:St=pt&&pt.type,b.isArrayOrTypedArray(St)&&(St=St[0],I[St]||(St=0));var Ft=Ue.pattern,zt=Ft&&R.getPatternAttr(Ft.shape,Ve.i,"");if(St&&St!=="none"){var Yt=Ve.mgc;Yt?Ge=!0:Yt=pt.color;var ln=Oe.uid;Ge&&(ln+="-"+Ve.i),R.gradient($e,Re,ln,St,[[0,Yt],[1,je]],"fill")}else if(zt){var tn=!1,Et=Ft.fgcolor;!Et&&We&&We.color&&(Et=We.color,tn=!0);var Ot=R.getPatternAttr(Et,Ve.i,We&&We.color||null),cn=R.getPatternAttr(Ft.bgcolor,Ve.i,null),Cn=Ft.fgopacity,Pn=R.getPatternAttr(Ft.size,Ve.i,8),Sn=R.getPatternAttr(Ft.solidity,Ve.i,.3);tn=tn||Ve.mcc||b.isArrayOrTypedArray(Ft.shape)||b.isArrayOrTypedArray(Ft.bgcolor)||b.isArrayOrTypedArray(Ft.fgcolor)||b.isArrayOrTypedArray(Ft.size)||b.isArrayOrTypedArray(Ft.solidity);var vt=Oe.uid;tn&&(vt+="-"+Ve.i),R.pattern($e,"point",Re,vt,zt,Pn,Sn,Ve.mcc,Ft.fillmode,cn,Ot,Cn)}else b.isArrayOrTypedArray(je)?m.fill($e,je[Ve.i]):m.fill($e,je);ot&&m.stroke($e,tt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=O.isBubble(Ve)?C(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Re.opacity,Ye=We.opacity,Je=Ue.opacity,Me=Ye!==void 0,Fe=Je!==void 0;(b.isArrayOrTypedArray(Ze)||Me||Fe)&&($e.selectedOpacityFn=function(zt){var Yt=zt.mo===void 0?Re.opacity:zt.mo;return zt.selected?Me?Ye:Yt:Fe?Je:_*Yt});var je=Re.color,tt=We.color,ot=Ue.color;(tt||ot)&&($e.selectedColorFn=function(zt){var Yt=zt.mcc||je;return zt.selected?tt||Yt:ot||Yt});var Ge=Re.size,ht=We.size,pt=Ue.size,St=ht!==void 0,Ft=pt!==void 0;return y.traceIs(Ve,"symbols")&&(St||Ft)&&($e.selectedSizeFn=function(zt){var Yt=zt.mrc||Ge/2;return zt.selected?St?ht/2:Yt:Ft?pt/2:Yt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Re.color,Ye=We.color,Je=Ue.color;return $e.selectedTextColorFn=function(Me){var Fe=Me.tc||Ze;return Me.selected?Ye||Fe:Je||(Ye?Fe:m.addOpacity(Fe,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Re=[];Oe.selectedOpacityFn&&Re.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Re.push(function(We,Ue){m.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Re.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Ye=Oe.selectedSizeFn(Ue);We.attr("d",A(R.symbolNumber(Ze),Ye,Qe(Ue,$e),ce(Ue,$e))),Ue.mrc2=Ye}),Re.length&&Ve.each(function(We){for(var Ue=u.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?Z(Ve[1]):te(Ve[0])}function te(Ve){var $e=u.round(Ve,2);return z=$e,$e}function Z(Ve){var $e=u.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Re=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Ye=Math.pow(Re*Re+We*We,.25),Je=Math.pow(Ue*Ue+Ze*Ze,.25),Me=(Je*Je*Re-Ye*Ye*Ue)*ke,Fe=(Je*Je*We-Ye*Ye*Ze)*ke,je=3*Je*(Ye+Je),tt=3*Ye*(Ye+Je);return[[te($e[0]+(je&&Me/je)),Z($e[1]+(je&&Fe/je))],[te($e[0]-(tt&&Me/tt)),Z($e[1]-(tt&&Fe/tt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Re=R.makeSelectedTextStyleFns($e);ke=Re.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Ye=u.select(this),Je=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(Je||Je===0){if(We){var Me=$e._module.formatLabels,Fe=Me?Me(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var tt=$e._meta||{};Je=b.texttemplateString(Je,Fe,Ue._d3locale,je,Ze,tt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Ye.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(Je).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Ye.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Re=u.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);m.fill(Re,We);var Ye=y.traceIs($e,"bar-like");j(Re,Ue,Ze,ke.mrc2||ke.mrc,Ye)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Re=[];for(Oe=1;Oe=Ye||zt>=Me&&zt<=Ye)&&(Yt<=Fe&&Yt>=Je||Yt>=Fe&&Yt<=Je)&&(Ve=[zt,Yt])}return Ve}R.steps=function(Ve){var $e=re[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+Z(Oe[0][1]),Re=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=tt),ee++,b.extendFlat({},tt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",pe($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=c($e,Oe)).trim(),Ve[Re]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Re]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Re=(this.getAttribute("transform")||"").replace(se,"");Re=(Re+=ke).trim(),this.setAttribute("transform",Re)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Re=u.select(this),We=Re.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Ye=(Re.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[c(Ue,Ze),"scale("+$e+","+Oe+")",c(-Ue,-Ze)],Ye&&ke.push(Ye),Re.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ye,ve,_e,we,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function Qe(Ve,$e){var Oe,ke,Re=Ve.ma;Re===void 0&&((Re=$e.marker.angle)&&!b.isArrayOrTypedArray(Re)||(Re=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Ye=$e._yA;if(!Ze||!Ye)return 90;Oe=Ze.c2p(Ve.x),ke=Ye.c2p(Ve.y)}if($e._geo){var Je,Me=Ve.lonlat[0],Fe=Ve.lonlat[1],je=$e._geo.project([Me,Fe+1e-5]),tt=$e._geo.project([Me+1e-5,Fe]),ot=Pe(tt[1]-ke,tt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")Je=Re/180*Math.PI;else if(We==="previous"){var ht=Me/180*Math.PI,pt=Fe/180*Math.PI,St=de/180*Math.PI,Ft=ye/180*Math.PI,zt=St-ht,Yt=Ie(Ft)*ze(zt),ln=ze(Ft)*Ie(pt)-Ie(Ft)*ze(pt)*Ie(zt);Je=-Pe(Yt,ln)-Math.PI,de=Me,ye=Fe}var tn=De(ot,[Ie(Je),0]),Et=De(Ge,[ze(Je),0]);Re=Pe(tn[1]+Et[1],tn[0]+Et[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===we+1||(Re=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===we+1&&S(Oe)&&S(ke)){var Ot=Oe-ve,cn=ke-_e,Cn=$e.line&&$e.line.shape||"",Pn=Cn.slice(Cn.length-1);Pn==="h"&&(cn=0),Pn==="v"&&(Ot=0),Re+=Pe(cn,Ot)/Math.PI*180+90}else Re=null}return ve=Oe,_e=ke,we=Ve.i,Te=$e.uid,Re}R.getMarkerAngle=Qe},71984:function(d,s,n){var u,b,i,S,w=n(21984),y=n(33428).round,m="M0,0Z",a=Math.sqrt(2),c=Math.sqrt(3),h=Math.PI,p=Math.cos,v=Math.sin;function _(C){return C===null}function O(C,x,R){if(!(C&&C%360!=0||x))return R;if(i===C&&S===x&&u===R)return b;function M(X,te){var Z=p(X),K=v(X),re=te[0],q=te[1]+(x||0);return[re*Z-q*K,re*K+q*Z]}i=C,S=x,u=R;for(var T=C/180*h,P=0,A=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var O,C=_[0].trace,x=C.error_x||{},R=C.error_y||{};C.ids&&(O=function(A){return A.id});var M=S.hasMarkers(C)&&C.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=u.select(this).selectAll("g.errorbar").data(_,O);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var P=T.enter().append("g").classed("errorbar",!0);p&&P.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,m.layerClipId,w),T.each(function(A){var L=u.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(A,c,h);if(!M||A.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?p&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?p&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,s,n){var u=n(33428),b=n(76308);d.exports=function(i){i.each(function(S){var w=S[0].trace,y=w.error_y||{},m=w.error_x||{},a=u.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),m.copy_ystyle&&(m=y),a.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(b.stroke,m.color)})}},55756:function(d,s,n){var u=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:u({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,s,n){var u=n(3400),b=n(24040);function i(S,w,y,m){m=m||u.identity,Array.isArray(S)&&(w[0][y]=m(S))}d.exports=function(S){var w=S.calcdata,y=S._fullLayout;function m(v){return function(_){return u.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&c.indexRe[0]._length||xt<0||xt>We[0]._length)return v.unhoverRaw(_e,we)}else vt="xpx"in we?we.xpx:Re[0]._length/2,xt="ypx"in we?we.ypx:We[0]._length/2;if(we.pointerX=vt+Re[0]._offset,we.pointerY=xt+We[0]._offset,tt="xval"in we?C.flat(ze,we.xval):C.p2c(Re,vt),ot="yval"in we?C.flat(ze,we.yval):C.p2c(We,xt),!b(tt[0])||!b(ot[0]))return S.warn("Fx.hover failed",we,_e),v.unhoverRaw(_e,we)}var Vt=1/0;function Dt(Hn,ar){for(ht=0;htOt&&(cn.splice(0,Ot),Vt=cn[0].distance),$e&&je!==0&&cn.length===0){Et.distance=je,Et.index=!1;var oo=St._module.hoverPoints(Et,ln,tn,"closest",{hoverLayer:De._hoverlayer});if(oo&&(oo=oo.filter(function(Yn){return Yn.spikeDistance<=je})),oo&&oo.length){var io,Do=oo.filter(function(Yn){return Yn.xa.showspikes&&Yn.xa.spikesnap!=="hovered data"});if(Do.length){var jn=Do[0];b(jn.x0)&&b(jn.y0)&&(io=at(jn),(!Pn.vLinePoint||Pn.vLinePoint.spikeDistance>io.spikeDistance)&&(Pn.vLinePoint=io))}var Rr=oo.filter(function(Yn){return Yn.ya.showspikes&&Yn.ya.spikesnap!=="hovered data"});if(Rr.length){var On=Rr[0];b(On.x0)&&b(On.y0)&&(io=at(On),(!Pn.hLinePoint||Pn.hLinePoint.spikeDistance>io.spikeDistance)&&(Pn.hLinePoint=io))}}}}}function it(Hn,ar,Dr){for(var Sr,Zr=null,go=1/0,oo=0;oo0&&Math.abs(Hn.distance)wn-1;An--)Zn(cn[An]);cn=Kn,en()}var tr=_e._hoverdata,Br=[],$r=me(_e),vr=pe(_e);for(Ge=0;Ge1||cn.length>1)||Me==="closest"&&Sn&&cn.length>1,_o=p.combine(De.plot_bgcolor||p.background,De.paper_bgcolor),$o=U(cn,{gd:_e,hovermode:Me,rotateLabels:Fo,bgColor:_o,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),Mo=$o.hoverLabels;if(C.isUnifiedHover(Me)||(function(Hn,ar,Dr,Sr){var Zr,go,oo,io,Do,jn,Rr,On=ar?"xa":"ya",Yn=ar?"ya":"xa",ir=0,kr=1,Er=Hn.size(),Gt=new Array(Er),on=0,an=Sr.minX,Tn=Sr.maxX,zn=Sr.minY,Gn=Sr.maxY,Lr=function(Fn){return Fn*Dr._invScaleX},Ur=function(Fn){return Fn*Dr._invScaleY};function qr(Fn){var dr=Fn[0],xr=Fn[Fn.length-1];if(go=dr.pmin-dr.pos-dr.dp+dr.size,oo=xr.pos+xr.dp+xr.size-dr.pmax,go>.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp+=go;Zr=!1}if(!(oo<.01)){if(go<-.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp-=oo;Zr=!1}if(Zr){var Oo=0;for(io=0;iodr.pmax&&Oo++;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos>dr.pmax-1&&(jn.del=!0,Oo--);for(io=0;io=0;Do--)Fn[Do].dp-=oo;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos+jn.dp+jn.size>dr.pmax&&(jn.del=!0,Oo--)}}}for(Hn.each(function(Fn){var dr=Fn[On],xr=Fn[Yn],Oo=dr._id.charAt(0)==="x",mi=dr.range;on===0&&mi&&mi[0]>mi[1]!==Oo&&(kr=-1);var Di=0,To=Oo?Dr.width:Dr.height;if(Dr.hovermode==="x"||Dr.hovermode==="y"){var Ia,Ds,fs=te(Fn,ar),zi=Fn.anchor,yl=zi==="end"?-1:1;if(zi==="middle")Ds=(Ia=Fn.crossPos+(Oo?Ur(fs.y-Fn.by/2):Lr(Fn.bx/2+Fn.tx2width/2)))+(Oo?Ur(Fn.by):Lr(Fn.bx));else if(Oo)Ds=(Ia=Fn.crossPos+Ur(k+fs.y)-Ur(Fn.by/2-k))+Ur(Fn.by);else{var Bs=Lr(yl*k+fs.x),yf=Bs+Lr(yl*Fn.bx);Ia=Fn.crossPos+Math.min(Bs,yf),Ds=Fn.crossPos+Math.max(Bs,yf)}Oo?zn!==void 0&&Gn!==void 0&&Math.min(Ds,Gn)-Math.max(Ia,zn)>1&&(xr.side==="left"?(Di=xr._mainLinePosition,To=Dr.width):To=xr._mainLinePosition):an!==void 0&&Tn!==void 0&&Math.min(Ds,Tn)-Math.max(Ia,an)>1&&(xr.side==="top"?(Di=xr._mainLinePosition,To=Dr.height):To=xr._mainLinePosition)}Gt[on++]=[{datum:Fn,traceIndex:Fn.trace.index,dp:0,pos:Fn.pos,posref:Fn.posref,size:Fn.by*(Oo?A:1)/2,pmin:Di,pmax:To}]}),Gt.sort(function(Fn,dr){return Fn[0].posref-dr[0].posref||kr*(dr[0].traceIndex-Fn[0].traceIndex)});!Zr&&ir<=Er;){for(ir++,Zr=!0,io=0;io.01&&Nr.pmin===Eo.pmin&&Nr.pmax===Eo.pmax){for(Do=wo.length-1;Do>=0;Do--)wo[Do].dp+=go;for(Cr.push.apply(Cr,wo),Gt.splice(io+1,1),Rr=0,Do=Cr.length-1;Do>=0;Do--)Rr+=Cr[Do].dp;for(oo=Rr/Cr.length,Do=Cr.length-1;Do>=0;Do--)Cr[Do].dp-=oo;Zr=!1}else io++}Gt.forEach(qr)}for(io=Gt.length-1;io>=0;io--){var zo=Gt[io];for(Do=zo.length-1;Do>=0;Do--){var Qt=zo[Do],Mn=Qt.datum;Mn.offset=Qt.dp,Mn.del=Qt.del}}}(Mo,Fo,De,$o.commonLabelBoundingBox),Z(Mo,Fo,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var pi=O.getComponentMethod("annotations","hasClickToShow")(_e,Br);c(u.select(Ie),pi?"pointer":"")}Ie&&!Pe&&function(Hn,ar,Dr){if(!Dr||Dr.length!==Hn._hoverdata.length)return!0;for(var Sr=Dr.length-1;Sr>=0;Sr--){var Zr=Dr[Sr],go=Hn._hoverdata[Sr];if(Zr.curveNumber!==go.curveNumber||String(Zr.pointNumber)!==String(go.pointNumber)||String(Zr.pointNumbers)!==String(go.pointNumbers))return!0}return!1}(_e,0,tr)&&(tr&&_e.emit("plotly_unhover",{event:we,points:tr}),_e.emit("plotly_hover",{event:we,points:_e._hoverdata,xaxes:Re,yaxes:We,xvals:tt,yvals:ot}))})(ae,ce,de,ye,ve)})},s.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ye=ce.gd,ve=me(ye),_e=pe(ye),we=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,Qe=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Re=Math.min(Qe,Ve),We=Math.max(Qe,Ve),Ue=Ie.trace;if(O.traceIs(Ue,"gl3d")){var Ze=ye._fullLayout[Ue.scene]._scene.container,Ye=Ze.offsetLeft,Je=Ze.offsetTop;Oe+=Ye,ke+=Ye,Re+=Je,We+=Je}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Re+ve,y1:We+ve},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||p.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ye,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||p.background,container:u.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return we.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ye=de._fullLayout,ve=ce.hovermode,_e=ce.rotateLabels,we=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,Qe=ae[0],Ve=Qe.xa,$e=Qe.ya,Oe=ve.charAt(0),ke=Oe+"Label",Re=Qe[ke];if(Re===void 0&&Ve.type==="multicategory")for(var We=0;Weye.width-vr?(Zn=ye.width-vr,_n.attr("d","M"+(vr-k)+",0L"+vr+","+$r+k+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H"+(vr-2*k)+"Z")):_n.attr("d","M0,0L"+k+","+$r+k+"H"+vr+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H-"+k+"Z"),ht.minX=Zn-vr,ht.maxX=Zn+vr,Ve.side==="top"?(ht.minY=tr-(2*I+Br.height),ht.maxY=tr-I):(ht.minY=tr+I,ht.maxY=tr+(2*I+Br.height))}else{var qn,gr,sr;$e.side==="right"?(qn="start",gr=1,sr="",Zn=Ve._offset+Ve._length):(qn="end",gr=-1,sr="-",Zn=Ve._offset),tr=$e._offset+(Qe.y0+Qe.y1)/2,wn.attr("text-anchor",qn),_n.attr("d","M0,0L"+sr+k+","+k+"V"+(I+Br.height/2)+"h"+sr+(2*I+Br.width)+"V-"+(I+Br.height/2)+"H"+sr+k+"V-"+k+"Z"),ht.minY=tr-(I+Br.height/2),ht.maxY=tr+(I+Br.height/2),$e.side==="right"?(ht.minX=Zn+k,ht.maxX=Zn+k+(2*I+Br.width)):(ht.minX=Zn-k-(2*I+Br.width),ht.maxX=Zn-k);var lr,zr=Br.height/2,Vr=Ze-Br.top-zr,eo="clip"+ye._uid+"commonlabel"+$e._id;if(Zn=0?xt:st+Dt=0?st:Zt+Dt=0?Sn:vt+it=0?vt:Nt+it=0,rn.idealAlign!=="top"&&co||!Fo?co?(zr+=eo/2,rn.anchor="start"):rn.anchor="middle":(zr-=eo/2,rn.anchor="end"),rn.crossPos=zr;else{if(rn.pos=zr,co=lr+Vr/2+_o<=Ye,Fo=lr-Vr/2-_o>=0,rn.idealAlign!=="left"&&co||!Fo)if(co)lr+=Vr/2,rn.anchor="start";else{rn.anchor="middle";var $o=_o/2,Mo=lr+$o-Ye,pi=lr-$o;Mo>0&&(lr-=Mo),pi<0&&(lr+=-pi)}else lr-=Vr/2,rn.anchor="end";rn.crossPos=lr}$r.attr("text-anchor",rn.anchor),qn&&vr.attr("text-anchor",rn.anchor),_n.attr("transform",w(lr,zr)+(_e?y(T):""))}),{hoverLabels:sn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ye,ve,_e){var we="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=S.templateString(ae.name,ae.trace._meta)),we=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
    "),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
    "),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ve?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
    ":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
    ":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(we===""&&_e.remove(),Te=we);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ve&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=S.hovertemplateString(ze,De,ye._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(Qe,Ve){return we=Y(Ve,ae.nameLength),""})}return[Te,we]}function te(ae,ce){var de=0,ye=ae.offset;return ce&&(ye*=-D,de=ae.offset*L),{x:de,y:ye}}function Z(ae,ce,de,ye){var ve=function(we){return we*de},_e=function(we){return we*ye};ae.each(function(we){var Te=u.select(this);if(we.del)return Te.remove();var Pe,Ie,ze,De,Qe=Te.select("text.nums"),Ve=we.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=we).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(we,ce),Re=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ve(we.bx/2+we.tx2width/2)+","+_e(We-we.by/2)+"h"+ve(we.bx)+"v"+_e(we.by)+"h-"+ve(we.bx)+"Z":"M0,0L"+ve($e*k+Re)+","+_e(k+We)+"v"+_e(we.by/2-k)+"h"+ve($e*we.bx)+"v-"+_e(we.by)+"H"+ve($e*k+Re)+"V"+_e(We-k)+"Z");var Ze=Re+Oe.textShiftX,Ye=We+we.ty0-we.by/2+I,Je=we.textAlign||"auto";Je!=="auto"&&(Je==="left"&&Ve!=="start"?(Qe.attr("text-anchor","start"),Ze=Ue?-we.bx/2-we.tx2width/2+I:-we.bx-I):Je==="right"&&Ve!=="end"&&(Qe.attr("text-anchor","end"),Ze=Ue?we.bx/2-we.tx2width/2-I:we.bx+I)),Qe.call(a.positionText,ve(Ze),_e(Ye)),we.tx2width&&(Te.select("text.name").call(a.positionText,ve(Oe.text2ShiftX+Oe.alignShift*I+Re),_e(We+we.ty0-we.by/2+I)),Te.select("rect").call(h.setRect,ve(Oe.text2ShiftX+(Oe.alignShift-1)*we.tx2width/2+Re),_e(We-we.by/2-1),ve(we.tx2width),_e(we.by+2)))})}function K(ae,ce){var de=ae.index,ye=ae.trace||{},ve=ae.cd[0],_e=ae.cd[de]||{};function we(Qe){return Qe||b(Qe)&&Qe===0}var Te=Array.isArray(de)?function(Qe,Ve){var $e=S.castOption(ve,de,Qe);return we($e)?$e:S.extractOption({},ye,"",Ve)}:function(Qe,Ve){return S.extractOption(_e,ye,Qe,Ve)};function Pe(Qe,Ve,$e){var Oe=Te(Ve,$e);we(Oe)&&(ae[Qe]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ye.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=S.constrain(ae.x0,0,ae.xa._length),ae.x1=S.constrain(ae.x1,0,ae.xa._length),ae.y0=S.constrain(ae.y0,0,ae.ya._length),ae.y1=S.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ye.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ye.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function re(ae,ce,de){var ye,ve,_e=de.container,we=de.fullLayout,Te=we._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=p.combine(we.plot_bgcolor,we.paper_bgcolor);if(Ie){var Qe,Ve,$e=ce.hLinePoint;ye=$e&&$e.xa,(ve=$e&&$e.ya).spikesnap==="cursor"?(Qe=Pe.pointerX,Ve=Pe.pointerY):(Qe=ye._offset+$e.x,Ve=ve._offset+$e.y);var Oe,ke,Re=i.readability($e.color,De)<1.5?p.contrast(De):$e.color,We=ve.spikemode,Ue=ve.spikethickness,Ze=ve.spikecolor||Re,Ye=_.getPxPosition(ae,ve);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Ye,ke=Qe),We.indexOf("across")!==-1){var Je=ve._counterDomainMin,Me=ve._counterDomainMax;ve.anchor==="free"&&(Je=Math.min(Je,ve.position),Me=Math.max(Me,ve.position)),Oe=Te.l+Je*Te.w,ke=Te.l+Me*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ve.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ye+(ve.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Fe,je,tt=ce.vLinePoint;ye=tt&&tt.xa,ve=tt&&tt.ya,ye.spikesnap==="cursor"?(Fe=Pe.pointerX,je=Pe.pointerY):(Fe=ye._offset+tt.x,je=ve._offset+tt.y);var ot,Ge,ht=i.readability(tt.color,De)<1.5?p.contrast(De):tt.color,pt=ye.spikemode,St=ye.spikethickness,Ft=ye.spikecolor||ht,zt=_.getPxPosition(ae,ye);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=zt,Ge=je),pt.indexOf("across")!==-1){var Yt=ye._counterDomainMin,ln=ye._counterDomainMax;ye.anchor==="free"&&(Yt=Math.min(Yt,ye.position),ln=Math.max(ln,ye.position)),ot=Te.t+(1-ln)*Te.h,Ge=Te.t+(1-Yt)*Te.h}_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St,stroke:Ft,"stroke-dasharray":h.dashStyle(ye.spikedash,St)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Fe,cy:zt-(ye.side!=="top"?St:-St),r:St,fill:Ft}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ye=ce[ae+"a"],ve=ce[ae+"Val"],_e=ce.cd[0];if(ye.type==="category"||ye.type==="multicategory")ve=ye._categoriesMap[ve];else if(ye.type==="date"){var we=ce.trace[ae+"periodalignment"];if(we){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;we==="end"?ve+=ze:we==="middle"&&(ve+=ze/2)}ve=ye.d2c(ve)}return _e&&_e.t&&_e.t.posLetter===ye._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ve+=_e.t.dPos)),ve}function me(ae){return ae.offsetTop+ae.clientTop}function pe(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ye=ce.getBoundingClientRect(),ve=ye.left,_e=ye.top,we=ve+ye.width,Te=_e+ye.height,Pe=S.apply3DTransform(de._invTransform)(ve,_e),Ie=S.apply3DTransform(de._invTransform)(we,Te),ze=Pe[0],De=Pe[1],Qe=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:Qe-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,Qe),right:Math.max(ze,Qe),bottom:Math.max(De,Ve)}}},16132:function(d,s,n){var u=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(S,w,y,m){m=m||{};var a=w.legend;function c(h){m.font[h]||(m.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(m.font||(m.font={}),c("size"),c("family"),c("color"),a?(m.bgcolor||(m.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),m.bordercolor||(m.bordercolor=w.legend.bordercolor)):m.bgcolor||(m.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",m.bgcolor),y("hoverlabel.bordercolor",m.bordercolor),y("hoverlabel.namelength",m.namelength),u.coerceFont(y,"hoverlabel.font",m.font),y("hoverlabel.align",m.align)}},41008:function(d,s,n){var u=n(3400),b=n(65460);d.exports=function(i,S){function w(y,m){return S[y]!==void 0?S[y]:u.coerce(i,S,b,y,m)}return w("clickmode"),w("hovermode")}},93024:function(d,s,n){var u=n(33428),b=n(3400),i=n(86476),S=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:S.getDistanceFunction,getClosest:S.getClosest,inbox:S.inbox,quadrature:S.quadrature,appendArrayPointValue:S.appendArrayPointValue,castHoverOption:function(m,a,c){return b.castOption(m,a,"hoverlabel."+c)},castHoverinfo:function(m,a,c){return b.castOption(m,c,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:m._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(m){var a=b.isD3Selection(m)?m:u.select(m);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,s,n){var u=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=u.HOVERFONT,i.size.dflt=u.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,s,n){var u=n(3400),b=n(65460),i=n(41008),S=n(16132);d.exports=function(w,y){function m(p,v){return u.coerce(w,y,b,p,v)}i(w,y)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var a=y._has("mapbox"),c=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||c)&&h===1||a&&c&&h===2)&&(y.dragmode="pan"),S(w,y,m),u.coerceFont(m,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,s,n){var u=n(3400),b=n(16132),i=n(65460);d.exports=function(S,w){b(S,w,function(y,m){return u.coerce(S,w,i,y,m)})}},12704:function(d,s,n){var u=n(3400),b=n(53756).counter,i=n(86968).u,S=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(h,p,v){var _=p[v+"axes"],O=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:O.length?O:void 0}function a(h,p,v,_,O,C){var x=p(h+"gap",v),R=p("domain."+h);p(h+"side",_);for(var M=new Array(O),T=R[0],P=(R[1]-T)/(O-x),A=P*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),A._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;P&&p._splomGridDflt&&(k=p._splomGridDflt.xside,I=p._splomGridDflt.yside),A._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete p.grid}function j(U,X){return u.coerce(v,A,y,U,X)}},contentDefaults:function(h,p){var v=p.grid;if(v&&v._domains){var _,O,C,x,R,M,T,P=h.grid||{},A=p._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=P.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(c==="legend"?1:0));if(Q===!1&&(p[c]=void 0),(Q!==!1||_.uirevision)&&(C("uirevision",p.uirevision),Q!==!1)){C("borderwidth");var j,U,X,te=C("orientation")==="h",Z=C("yref")==="paper",K=C("xref")==="paper",re="left";if(te?(j=0,u.getComponentMethod("rangeslider","isVisible")(h.xaxis)?Z?(U=1.1,X="bottom"):(U=1,X="top"):Z?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,re="right")),b.coerce(_,O,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,O,{y:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:U}},"y"),C("traceorder",D),m.isGrouped(p[c])&&C("tracegroupgap"),C("entrywidth"),C("entrywidthmode"),C("itemsizing"),C("itemwidth"),C("itemclick"),C("itemdoubleclick"),C("groupclick"),C("xanchor",re),C("yanchor",X),C("valign"),b.noneOrAll(_,O,["x","y"]),C("title.text")){C("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(C,"title.font",q)}}}}d.exports=function(c,h,p){var v,_=p.slice(),O=h.shapes;if(O)for(v=0;v1)}var ye=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+Z).remove(),i.autoMargin(X,Y);var ve=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",Z,function(Ve){Ve.append("rect")}),we=b.ensureSingle(ve,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});we.call(a.stroke,re.bordercolor).call(a.fill,re.bgcolor).style("stroke-width",re.borderwidth+"px");var Te,Pe=b.ensureSingle(ve,"g","scrollbox"),Ie=re.title;re._titleWidth=0,re._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(m.font,Ie.font).text(Ie.text),$(Te,Pe,X,re,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ve,"rect","scrollbar",function(Ve){Ve.attr(p.scrollBarEnterAttrs).call(a.fill,p.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var Qe=De.selectAll("g.traces").data(b.identity);Qe.enter().append("g").attr("class","traces"),Qe.exit().remove(),Qe.style("opacity",function(Ve){var $e=Ve[0].trace;return S.traceIs($e,"pie-like")?ye.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){u.select(this).call(k,X,re)}).call(R,X,re).each(function(){ee||u.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Re=Ve._fullLayout,We=U(ke);ke||(ke=Re[We]);var Ue=Re._size,Ze=M.isVertical(ke),Ye=M.isGrouped(ke),Je=ke.entrywidthmode==="fraction",Me=ke.borderwidth,Fe=2*Me,je=p.itemGap,tt=ke.itemwidth+2*je,ot=2*(Me+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",St=ke.tracegroupgap,Ft={};ke._maxHeight=Math.max(ht||pt?Re.height/2:Ue.h,30);var zt=0;ke._width=0,ke._height=0;var Yt=function(en){var Jt=0,Zt=0,Nt=en.title.side;return Nt&&(Nt.indexOf("left")!==-1&&(Jt=en._titleWidth),Nt.indexOf("top")!==-1&&(Zt=en._titleHeight)),[Jt,Zt]}(ke);if(Ze)Oe.each(function(en){var Jt=en[0].height;m.setTranslate(this,Me+Yt[0],Me+Yt[1]+ke._height+Jt/2+je),ke._height+=Jt,ke._width=Math.max(ke._width,en[0].width)}),zt=tt+ke._width,ke._width+=je+tt+Fe,ke._height+=ot,Ye&&($e.each(function(en,Jt){m.setTranslate(this,0,Jt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var ln=Q(ke),tn=ke.x<0||ke.x===0&&ln==="right",Et=ke.x>1||ke.x===1&&ln==="left",Ot=pt||ht,cn=Re.width/2;ke._maxWidth=Math.max(tn?Ot&&ln==="left"?Ue.l+Ue.w:cn:Et?Ot&&ln==="right"?Ue.r+Ue.w:cn:Ue.w,2*tt);var Cn=0,Pn=0;Oe.each(function(en){var Jt=L(en,ke,tt);Cn=Math.max(Cn,Jt),Pn+=Jt}),zt=null;var Sn=0;if(Ye){var vt=0,xt=0,st=0;$e.each(function(){var en=0,Jt=0;u.select(this).selectAll("g.traces").each(function(Nt){var sn=L(Nt,ke,tt),rn=Nt[0].height;m.setTranslate(this,Yt[0],Yt[1]+Me+je+rn/2+Jt),Jt+=rn,en=Math.max(en,sn),Ft[Nt[0].trace.legendgroup]=en});var Zt=en+je;xt>0&&Zt+Me+xt>ke._maxWidth?(Sn=Math.max(Sn,xt),xt=0,st+=vt+St,vt=Jt):vt=Math.max(vt,Jt),m.setTranslate(this,xt,st),xt+=Zt}),ke._width=Math.max(Sn,xt)+Me,ke._height=st+vt+ot}else{var bt=Oe.size(),Vt=Pn+Fe+(bt-1)*je=ke._maxWidth&&(Sn=Math.max(Sn,Bt),it=0,at+=Dt,ke._height+=Dt,Dt=0),m.setTranslate(this,Yt[0]+Me+it,Yt[1]+Me+at+Jt/2+je),Bt=it+Zt+je,it+=Nt,Dt=Math.max(Dt,Jt)}),Vt?(ke._width=it+Fe,ke._height=Dt+ot):(ke._width=Math.max(Sn,Bt)+Fe,ke._height+=Dt+ot)}}ke._width=Math.ceil(Math.max(ke._width+Yt[0],ke._titleWidth+2*(Me+p.titlePad))),ke._height=Math.ceil(Math.max(ke._height+Yt[1],ke._titleHeight+2*(Me+p.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var _t=Ve._context.edits,qt=_t.legendText||_t.legendPosition;Oe.each(function(en){var Jt=u.select(this).select("."+We+"toggle"),Zt=en[0].height,Nt=en[0].trace.legendgroup,sn=L(en,ke,tt);Ye&&Nt!==""&&(sn=Ft[Nt]);var rn=qt?tt:zt||sn;Ze||Je||(rn+=je/2),m.setRect(Jt,0,-Zt/2,rn,Zt)})}(X,De,Qe,re)},function(){var Ve,$e,Oe,ke,Re=q._size,We=re.borderwidth,Ue=re.xref==="paper",Ze=re.yref==="paper";if(Ie.text&&function(Ot,cn,Cn){if(cn.title.side==="top center"||cn.title.side==="top right"){var Pn=cn.title.font.size*_,Sn=0,vt=Ot.node(),xt=m.bBox(vt).width;cn.title.side==="top center"?Sn=.5*(cn._width-2*Cn-2*p.titlePad-xt):cn.title.side==="top right"&&(Sn=cn._width-2*Cn-2*p.titlePad-xt),c.positionText(Ot,Cn+p.titlePad+Sn,Cn+Pn)}}(Te,re,We),!ee){var Ye,Je;Ye=Ue?Re.l+Re.w*re.x-O[Q(re)]*re._width:q.width*re.x-O[Q(re)]*re._width,Je=Ze?Re.t+Re.h*(1-re.y)-O[j(re)]*re._effHeight:q.height*(1-re.y)-O[j(re)]*re._effHeight;var Me=function(Ot,cn,Cn,Pn){var Sn=Ot._fullLayout,vt=Sn[cn],xt=Q(vt),st=j(vt),bt=vt.xref==="paper",Vt=vt.yref==="paper";Ot._fullLayout._reservedMargin[cn]={};var Dt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:Sn.width-Cn,l:Cn+vt._width,b:Sn.height-Pn,t:Pn+vt._effHeight};if(bt&&Vt)return i.autoMargin(Ot,cn,{x:vt.x,y:vt.y,l:vt._width*O[xt],r:vt._width*C[xt],b:vt._effHeight*C[st],t:vt._effHeight*O[st]});bt?Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]:Vt||vt.orientation==="v"?Ot._fullLayout._reservedMargin[cn][it]=at[it]:Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]}(X,Y,Ye,Je);if(Me)return;if(q.margin.autoexpand){var Fe=Ye,je=Je;Ye=Ue?b.constrain(Ye,0,q.width-re._width):Fe,Je=Ze?b.constrain(Je,0,q.height-re._effHeight):je,Ye!==Fe&&b.log("Constrain "+Y+".x to make legend fit inside graph"),Je!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}m.setTranslate(ve,Ye,Je)}if(ze.on(".drag",null),ve.on("wheel",null),ee||re._height<=re._maxHeight||X._context.staticPlot){var tt=re._effHeight;ee&&(tt=re._height),we.attr({width:re._width-We,height:tt-We,x:We/2,y:We/2}),m.setTranslate(Pe,0,0),_e.select("rect").attr({width:re._width-2*We,height:tt-2*We,x:We,y:We}),m.setClipUrl(Pe,Z,X),m.setRect(ze,0,0,0,0),delete re._scrollY}else{var ot,Ge,ht,pt=Math.max(p.scrollBarMinHeight,re._effHeight*re._effHeight/re._height),St=re._effHeight-pt-2*p.scrollBarMargin,Ft=re._height-re._effHeight,zt=St/Ft,Yt=Math.min(re._scrollY||0,Ft);we.attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-2*We,x:We,y:We+Yt}),m.setClipUrl(Pe,Z,X),Et(Yt,pt,zt),ve.on("wheel",function(){Et(Yt=b.constrain(re._scrollY+u.event.deltaY/St*Ft,0,Ft),pt,zt),Yt!==0&&Yt!==Ft&&u.event.preventDefault()});var ln=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;ot=Ot.type==="touchstart"?Ot.changedTouches[0].clientY:Ot.clientY,ht=Yt}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.buttons===2||Ot.ctrlKey||(Ge=Ot.type==="touchmove"?Ot.changedTouches[0].clientY:Ot.clientY,Yt=function(cn,Cn,Pn){var Sn=(Pn-Cn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});ze.call(ln);var tn=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;Ot.type==="touchstart"&&(ot=Ot.changedTouches[0].clientY,ht=Yt)}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.type==="touchmove"&&(Ge=Ot.changedTouches[0].clientY,Yt=function(cn,Cn,Pn){var Sn=(Cn-Pn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});Pe.call(tn)}function Et(Ot,cn,Cn){re._scrollY=X._fullLayout[Y]._scrollY=Ot,m.setTranslate(Pe,0,-Ot),m.setRect(ze,re._width,p.scrollBarMargin+Ot*Cn,p.scrollBarWidth,cn),_e.select("rect").attr("y",We+Ot)}X._context.edits.legendPosition&&(ve.classed("cursor-move",!0),y.init({element:ve.node(),gd:X,prepFn:function(){var Ot=m.getTranslate(ve);Oe=Ot.x,ke=Ot.y},moveFn:function(Ot,cn){var Cn=Oe+Ot,Pn=ke+cn;m.setTranslate(ve,Cn,Pn),Ve=y.align(Cn,re._width,Re.l,Re.l+Re.w,re.xanchor),$e=y.align(Pn+re._height,-re._height,Re.t+Re.h,Re.t,re.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var Ot={};Ot[Y+".x"]=Ve,Ot[Y+".y"]=$e,S.call("_guiRelayout",X,Ot)}},clickFn:function(Ot,cn){var Cn=K.selectAll("g.traces").filter(function(){var Pn=this.getBoundingClientRect();return cn.clientX>=Pn.left&&cn.clientX<=Pn.right&&cn.clientY>=Pn.top&&cn.clientY<=Pn.bottom});Cn.size()>0&&D(X,ve,Cn,Ot,cn)}}))}],X)}}function L(X,te,Z){var K=X[0],re=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:Z+(Y||re)}function D(X,te,Z,K,re){var q=Z.data()[0][0].trace,Y={event:re,node:Z.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),S.traceIs(q,"pie-like")&&(Y.label=Z.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(Z,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(Z,X,K))}function k(X,te,Z){var K,re,q=U(Z),Y=X.data()[0][0],ee=Y.trace,me=S.traceIs(ee,"pie-like"),pe=!Z._inHover&&te._context.edits.legendText&&!me,se=Z._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,re=Y.groupTitle.font):(re=Z.font,Z.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(m.font,re).text(pe?I(K,se):K);var ce=Z.itemwidth+2*p.itemGap;c.positionText(ae,ce,0),pe?ae.call(c.makeEditable,{gd:te,text:K}).call($,X,te,Z).on("edit",function(de){this.text(I(de,se)).call($,X,te,Z);var ye=Y.trace._fullInput||{},ve={};if(S.hasTransform(ye,"groupby")){var _e=S.getTransformIndices(ye,"groupby"),we=_e[_e.length-1],Te=b.keyedContainer(ye,"transforms["+we+"].styles","target","value.name");Te.set(Y.trace._group,de),ve=Te.constructUpdate()}else ve.name=de;return ye._isShape?S.call("_guiRelayout",te,"shapes["+ee.index+"].name",ve.name):S.call("_guiRestyle",te,ve,ee.index)}):$(ae,X,te,Z)}function I(X,te){var Z=Math.max(4,te);if(X&&X.trim().length>=Z/2)return X;for(var K=Z-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,Z){var K,re=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",Z+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimere&&(q=Math.max(q-1,1)),D(te,ee,X,q,u.event)}}))}function $(X,te,Z,K,re){K._inHover&&X.attr("data-notex",!0),c.convertToTspans(X,Z,function(){(function(q,Y,ee,me){var pe=q.data()[0][0];if(ee._inHover||!pe||pe.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ye,ve=ee.borderwidth,_e=(me===T?ee.title.font:pe.groupTitle?pe.groupTitle.font:ee.font).size*_;if(ae){var we=m.bBox(ae);de=we.height,ye=we.width,me===T?m.setTranslate(se,ve,ve+.75*de):m.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=c.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ye=ze?m.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ye+=2*p.itemGap),c.positionText(Pe,ve+p.titlePad,ve+_e);else{var De=2*p.itemGap+ee.itemwidth;pe.groupTitle&&(De=p.itemGap,ye-=ee.itemwidth),c.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ye,ee._titleHeight=de):(pe.lineHeight=_e,pe.height=Math.max(de,16)+3,pe.width=ye)}else q.remove()})(te,Z,K,re)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)A(X,te);else{var Z=X._fullLayout,K=Z._legends;Z._infolayer.selectAll('[class^="legend"]').each(function(){var Y=u.select(this),ee=Y.attr("class").split(" ")[0];ee.match(P)&&K.indexOf(ee)===-1&&Y.remove()});for(var re=0;reQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,re){return K.trace.legendrank-re.trace.legendrank||K._preSort-re._preSort};for(I.forEach(function(K,re){K[0]._preGroupSort=re}),I.sort(function(K,re){return K[0]._groupMinRank-re[0]._groupMinRank||K[0]._preGroupSort-re[0]._preGroupSort}),y=0;yR?R:C}d.exports=function(C,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",P=R.itemwidth,A=(P+2*p.itemGap)/2,L=S(A,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(Z?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(re){var q=u.select(this),Y=re[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var pe=m(U),se=pe.mid;se===void 0&&(se=(pe.max+pe.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ye=w.getPatternAttr(ce.bgcolor,0,null),ve=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,we=O(ce.size,8,10),Te=O(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,we,Te,me,ce.fillmode,ye,ve,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var Z=U.marker||{},K=D(h(Z.line.width,j.pts),Z.line,5,2),re="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},re),Y=i.minExtend(j,{trace:q},re);c(te,Y,q,x)}}C.each(function(z){var $=u.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",S(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Z=Q.selectAll("g.legendsymbols").data([z]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=u.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var Z,K=u.select(this),re=m(Q),q=re.colorscale,Y=re.reversescale;if(q){if(!$){var ee=q.length;Z=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;Z=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),Z?K.call(y.fill,Z):K.call(function(pe){if(pe.size()){var se="legendfill-"+Q.uid;w.gradient(pe,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=u.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var Z=u.select(this),K=$[te[0]].marker,re=D(void 0,K.line,5,2);Z.attr("d",te[1]).style("stroke-width",re+"px").call(y.fill,K.color),re&&Z.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=u.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,Z=j.showGradientFill,K=j.anyFill,re=j.anyLine,q=z[0],Y=q.trace,ee=m(Y),me=ee.colorscale,pe=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":re?"M5,-2":"M5,-3",ae=u.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||Z?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+P+"v6h-"+P+"z").call(function(ve){if(ve.size())if(U)w.fillGroupStyle(ve,x);else{var _e="legendfill-"+Y.uid;w.gradient(ve,x,_e,v(pe),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ye=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ye.enter().append("path").classed("js-line",!0),ye.exit().remove(),ye.attr("d",se+(te?"l"+P+",0.0001":"h"+P)).call(X?w.lineGroupStyle:function(ve){if(ve.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ve),w.gradient(ve,x,_e,v(pe),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,Z=j.showMarker,K=z[0],re=K.trace,q=!Z&&!X&&!U&&a.hasText(re);function Y(ye,ve,_e,we){var Te=i.nestedProperty(re,ye).get(),Pe=i.isArrayOrTypedArray(Te)&&ve?ve(Te):Te;if(T&&Pe&&we!==void 0&&(Pe=we),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ye){return K._distinct&&K.index&&ye[K.index]?ye[K.index]:ye[0]}if(Z||q||te){var me={},pe={};if(Z){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),pe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,pe.marker.size=se}te&&(pe.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(re,pe)).selectedpoints=null,Q.texttemplate=null}var ae=u.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(Z?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),Z&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("stroke-width",Z+"px").call(y.fill,te.fillcolor),Z&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,Z),Z&&y.stroke(X,te.line.color)})})}},66540:function(d,s,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,s,n){var u=n(24040),b=n(7316),i=n(79811),S=n(9224),w=n(4016).eraseActiveShape,y=n(3400),m=y._,a=d.exports={};function c(M,T){var P,A,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(A=0;A<$.length;A++)if(!(P=$[A]).fixedrange)if(j=P._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")P._rangeInitial0===void 0&&P._rangeInitial1===void 0?z[j+".autorange"]=!0:P._rangeInitial0===void 0?(z[j+".autorange"]=P._autorangeInitial,z[j+".range"]=[null,P._rangeInitial1]):P._rangeInitial1===void 0?(z[j+".range"]=[P._rangeInitial0,null],z[j+".autorange"]=P._autorangeInitial):z[j+".range"]=[P._rangeInitial0,P._rangeInitial1],P._showSpikeInitial!==void 0&&(z[j+".showspikes"]=P._showSpikeInitial,Q!=="on"||P._showSpikeInitial||(Q="off"));else{var Z=[P.r2l(P.range[0]),P.r2l(P.range[1])],K=[X*Z[0]+te*Z[1],X*Z[1]+te*Z[0]];z[j+".range[0]"]=P.l2r(K[0]),z[j+".range[1]"]=P.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,u.call("_guiRelayout",M,z)}function h(M,T){for(var P=T.currentTarget,A=P.getAttribute("data-attr"),L=P.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=A.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(pe=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(pe=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,P){for(var A=P.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?A.touches[0].clientX:0}function C(A,L,D,k){var I=S.ensureSingle(A,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(m.stroke,k.bordercolor).call(m.fill,k.bgcolor)}function x(A,L,D,k){var I=L._fullLayout;S.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(A,L,D,k){var I,z=L.calcdata,$=A.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,S.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=u.select(this),X=j===0,te=h.getFromId(L,Q,"y"),Z=te._name,K=k[Z],re={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(re.layout.xaxis.rangebreaks=D.rangebreaks),re.layout[Z]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(re.layout[Z].rangebreaks=te.rangebreaks),i.supplyDefaults(re);var q=re._fullLayout.xaxis,Y=re._fullLayout[Z];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),c.rangePlot(L,ee,function(me,pe){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Ye+ht<0)return;tt=Ze+ht,ot=Ye+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;tt=Ze+ht,ot=Ye;break;case $e:if(Ge="col-resize",Ye+ht<0)return;tt=Ze,ot=Ye+ht;break;default:Ge="ew-resize",tt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(A).style("opacity",j?.1:L).call(S.stroke,k).call(S.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,O,R),$){var X=y(O.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:O,editHelpers:X,isActiveSelection:!0},Z=u(P,O);b(Z,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(re,q){if(h(re)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===re._fullLayout._activeSelectionIndex)return void _(re);re._fullLayout._activeSelectionIndex=Y,re._fullLayout._deactivateSelection=_,c(re)}}}(O,K)})}(O._fullLayout._selectionLayer)}function v(O,C,x){var R=x.xref+x.yref;w.setClipUrl(O,"clip"+C._fullLayout._uid+R,C)}function _(O){h(O)&&O._fullLayout._activeSelectionIndex>=0&&(i(O),delete O._fullLayout._activeSelectionIndex,c(O))}d.exports={draw:c,drawOne:p,activateLastSelection:function(O){if(h(O)){var C=O._fullLayout.selections.length-1;O._fullLayout._activeSelectionIndex=C,O._fullLayout._deactivateSelection=_,c(O)}}}},34200:function(d,s,n){var u=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},u,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(s,n,u){u("newselection.mode"),u("newselection.line.width")&&(u("newselection.line.color"),u("newselection.line.dash")),u("activeselection.fillcolor"),u("activeselection.opacity")}},5968:function(d,s,n){var u=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),S=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(m,a){if(m.length){var c=m[0][0];if(c){var h=c.getAttribute("d"),p=a.gd,v=p._fullLayout.newselection,_=a.plotinfo,O=_.xaxis,C=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(p.layout||{}).selections||[];if(!u(R)&&x!==void 0){var T=p._fullLayout._activeSelectionIndex;if(T-1,Pn=[];if(function(bt){return bt&&Array.isArray(bt)&&bt[0].hoverOnBox!==!0}(cn)){de(Me,Fe,Ge);var Sn=function(bt,Vt){var Dt,it,at=bt[0],Bt=-1,_t=[];for(it=0;it0?function(bt,Vt){var Dt,it,at,Bt=[];for(at=0;at0&&Bt.push(Dt);if(Bt.length===1&&Bt[0]===Vt.searchInfo&&(it=Vt.searchInfo.cd[0].trace).selectedpoints.length===Vt.pointNumbers.length){for(at=0;at1||(it+=Vt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(ln=Te(Sn))){for(ht&&ht.remove(),Ot=0;Ot=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(Yt){return Yt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=p(je),pt=_(je);if(ht||pt){var St,Ft,zt=Ge.selectAll(".select-outline-"+tt.id);zt&&ot._fullLayout._outlining&&(ht&&(St=A(zt,Me)),St&&i.call("_guiRelayout",ot,{shapes:St}),pt&&!me(Me)&&(Ft=L(zt,Me)),Ft&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Ft}).then(function(){Fe&&D(ot)})),ot._fullLayout._outlining=!1)}tt.selection={},tt.selection.selectionDefs=Me.selectionDefs=[],tt.selection.mergedPolygons=Me.mergedPolygons=[]}function ve(Me){return Me._id}function _e(Me,Fe,je,tt){if(!Me.calcdata)return[];var ot,Ge,ht,pt=[],St=Fe.map(ve),Ft=je.map(ve);for(ht=0;ht0?tt[0]:je;return!!Fe.selectedpoints&&Fe.selectedpoints.indexOf(ot)>-1}function Pe(Me,Fe,je){var tt,ot;for(tt=0;tt-1&&Fe;if(!Ge&&Fe){var gr=ke(Me,!0);if(gr.length){var sr=gr[0].xref,lr=gr[0].yref;if(sr&&lr){var zr=Ue(gr);Ze([Q(Me,sr,"x"),Q(Me,lr,"y")])(vr,zr)}}Me._fullLayout._noEmitSelectedAtStart?Me._fullLayout._noEmitSelectedAtStart=!1:qn&&Ye(Me,vr),ln._reselect=!1}if(!Ge&&ln._deselect){var Vr=ln._deselect;(function(eo,Jr,Yr){for(var to=0;to=0)tn._fullLayout._deactivateShape(tn);else if(!Ft){var zr=Et.clickmode;$.done($r).then(function(){if($.clear($r),sr===2){for(Kn.remove(),at=0;at-1&&pe(lr,tn,tt.xaxes,tt.yaxes,tt.subplot,tt,Kn),zr==="event"&&Ye(tn,void 0);y.click(tn,lr,Pn.id)}).catch(k.error)}},tt.doneFn=function(){tr.remove(),$.done($r).then(function(){$.clear($r),!Ot&&it&&tt.selectionDefs&&(it.subtract=An,tt.selectionDefs.push(it),tt.mergedPolygons.length=0,[].push.apply(tt.mergedPolygons,Dt)),(Ot||Ft)&&ye(tt,Ot),tt.doneFnCompleted&&tt.doneFnCompleted(vr),zt&&Ye(tn,_t)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ye,selectOnClick:pe}},46056:function(d,s,n){var u=n(13916),b=n(25376),i=n(52904).line,S=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,m=(n(36208),n(45464)),a=n(21776).ye,c=n(97728);d.exports=y("shape",{visible:w({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},m.legend,{editType:"calc+arraydraw"}),legendgroup:w({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},u.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},u.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},S,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(c)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,s,n){var u=n(3400),b=n(54460),i=n(85448),S=n(65152);function w(c){return m(c.line.width,c.xsizemode,c.x0,c.x1,c.path,!1)}function y(c){return m(c.line.width,c.ysizemode,c.y0,c.y1,c.path,!0)}function m(c,h,p,v,_,O){var C=c/2,x=O;if(h==="pixel"){var R=_?S.extractPathCoords(_,O?i.paramIsY:i.paramIsX):[p,v],M=u.aggNums(Math.max,null,R),T=u.aggNums(Math.min,null,R),P=T<0?Math.abs(T)+C:C,A=M>0?M+C:C;return{ppad:C,ppadplus:x?P:A,ppadminus:x?A:P}}return{ppad:C}}function a(c,h,p,v,_){var O=c.type==="category"||c.type==="multicategory"?c.r2c:c.d2c;if(h!==void 0)return[O(h),O(p)];if(v){var C,x,R,M,T=1/0,P=-1/0,A=v.match(i.segmentRE);for(c.type==="date"&&(O=S.decodeDate(O)),C=0;CP&&(P=M)));return P>=T?[T,P]:void 0}}d.exports=function(c){var h=c._fullLayout,p=u.filterVisible(h.shapes);if(p.length&&c._fullData.length)for(var v=0;v=ve?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(P,L,A,D):0),z.call(function(ve){return ve.call(S.font,I).attr({}),i.convertToTspans(ve,h),ve});var ae=function(ve,_e,we,Te,Pe,Ie,ze){var De,Qe,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Re=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Ye=Math.cos(Ue),Je=Pe.label.xanchor,Me=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ve,Qe=_e):Oe==="end"?(De=we,Qe=Te):(De=(ve+we)/2,Qe=(_e+Te)/2),Je==="auto"&&(Je=Oe==="start"?ke==="auto"?we>ve?"left":weve?"right":weve?"right":weve?"left":we1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[Z]=De,j(),U())}}()}}function ve(Pe,Ie){(function(ze,De){if(k.length)for(var Qe=0;QeQe?(Oe=ze,Ue="y0",ke=Qe,Ze="y1"):(Oe=Qe,Ue="y1",ke=ze,Ze="y0"),vt(Dt),bt(Te,_e),function(it,at,Bt){var _t=at.xref,qt=at.yref,en=S.getFromId(Bt,_t),Jt=S.getFromId(Bt,qt),Zt="";_t==="paper"||en.autorange||(Zt+=_t),qt==="paper"||Jt.autorange||(Zt+=qt),h.setClipUrl(it,Zt?"clip"+Bt._fullLayout._uid+Zt:null,Bt)}(ve,_e,ye),Sn.moveFn=Fe==="move"?xt:st,Sn.altKey=Dt.altKey)},doneFn:function(){M(ye)||(_(ve),Vt(Te),A(ve,ye,_e),b.call("_guiRelayout",ye,Pe.getUpdateObj()))},clickFn:function(){M(ye)||Vt(Te)}};function vt(Dt){if(M(ye))Fe=null;else if(ht)Fe=Dt.target.tagName==="path"?"move":Dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=Sn.element.getBoundingClientRect(),at=it.right-it.left,Bt=it.bottom-it.top,_t=Dt.clientX-it.left,qt=Dt.clientY-it.top,en=!pt&&at>je&&Bt>tt&&!Dt.shiftKey?v.getCursor(_t/at,1-qt/Bt):"move";_(ve,en),Fe=en.split("-")[0]}}function xt(Dt,it){if(_e.type==="path"){var at=function(qt){return qt},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(qt){return cn(Et(qt)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(qt){return Cn(Ot(qt)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(St("x0",_e.x0=cn(Ie+Dt)),St("x1",_e.x1=cn(De+Dt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(St("y0",_e.y0=Cn(ze+it)),St("y1",_e.y1=Cn(Qe+it)));ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function st(Dt,it){if(pt){var at=function(Zn){return Zn},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(Zn){return cn(Et(Zn)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(Zn){return Cn(Ot(Zn)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else if(ht){if(Fe==="resize-over-start-point"){var qt=Ie+Dt,en=Ge?ze-it:ze+it;St("x0",_e.x0=ot?qt:cn(qt)),St("y0",_e.y0=Ge?en:Cn(en))}else if(Fe==="resize-over-end-point"){var Jt=De+Dt,Zt=Ge?Qe-it:Qe+it;St("x1",_e.x1=ot?Jt:cn(Jt)),St("y1",_e.y1=Ge?Zt:Cn(Zt))}}else{var Nt=function(Zn){return Fe.indexOf(Zn)!==-1},sn=Nt("n"),rn=Nt("s"),_n=Nt("w"),wn=Nt("e"),An=sn?Oe+it:Oe,Kn=rn?ke+it:ke,fr=_n?Re+Dt:Re,Un=wn?We+Dt:We;Ge&&(sn&&(An=Oe-it),rn&&(Kn=ke-it)),(!Ge&&Kn-An>tt||Ge&&An-Kn>tt)&&(St(Ue,_e[Ue]=Ge?An:Cn(An)),St(Ze,_e[Ze]=Ge?Kn:Cn(Kn))),Un-fr>je&&(St(Ye,_e[Ye]=ot?fr:cn(fr)),St(Je,_e[Je]=ot?Un:cn(Un)))}ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function bt(Dt,it){(ot||Ge)&&function(){var at=it.type!=="path",Bt=Dt.selectAll(".visual-cue").data([0]);Bt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var _t=Et(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:C.extractPathCoords(it.path,O.paramIsX))),qt=Ot(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:C.extractPathCoords(it.path,O.paramIsY)));if(_t=C.roundPositionForSharpStrokeRendering(_t,1),qt=C.roundPositionForSharpStrokeRendering(qt,1),ot&&Ge){var en="M"+(_t-1-1)+","+(qt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Bt.attr("d",en)}else if(ot){var Jt="M"+(_t-1-1)+","+(qt-9-1)+"v18 h2 v-18 Z";Bt.attr("d",Jt)}else{var Zt="M"+(_t-9-1)+","+(qt-1-1)+"h18 v2 h-18 Z";Bt.attr("d",Zt)}}()}function Vt(Dt){Dt.selectAll(".visual-cue").remove()}v.init(Sn),Pn.node().onmousemove=vt}(k,ae,$,I,U,pe):$.editable===!0&&ae.style("pointer-events",ee||c.opacity(K)*Z<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ye,ve){if(T(ye)){var _e=+ve.node().getAttribute("data-index");if(_e>=0){if(_e===ye._fullLayout._activeShapeIndex)return void D(ye);ye._fullLayout._activeShapeIndex=_e,ye._fullLayout._deactivateShape=D,R(ye)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function A(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(O.segmentRE,function($){var Q=0,j=$.charAt(0),U=O.paramIsX[j],X=O.paramIsY[j],te=O.numParams[j];return j+$.substr(1).replace(O.paramRE,function(Z){return Q>=te||(U[Q]?Z=I(Z):X[Q]&&(Z=z(Z)),Q++),Z})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:P,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Pse&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,m,c);if(w.xsizemode==="pixel"){var P=m(w.xanchor);h=P+w.x0,p=P+w.x1}else h=m(w.x0),p=m(w.x1);if(w.ysizemode==="pixel"){var A=c(w.yanchor);v=A-w.y0,_=A-w.y1}else v=c(w.y0),_=c(w.y1);if(O==="line")return"M"+h+","+v+"L"+p+","+_;if(O==="rect")return"M"+h+","+v+"H"+p+"V"+_+"H"+h+"Z";var L=(h+p)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,s,n){var u=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:u.draw,drawOne:u.drawOne}},97728:function(d){function s(i,S){return S?S.d2l(i):i}function n(i,S){return S?S.l2d(i):i}function u(i,S){return s(i.x1,S)-s(i.x0,S)}function b(i,S,w){return s(i.y1,w)-s(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,S,w){return i.type!=="line"?void 0:b(i,0,w)/u(i,S)},dx:u,dy:b,width:function(i,S){return Math.abs(u(i,S))},height:function(i,S,w){return Math.abs(b(i,0,w))},length:function(i,S,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(u(i,S),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,S){return n((s(i.x1,S)+s(i.x0,S))/2,S)},ycenter:function(i,S,w){return n((s(i.y1,w)+s(i.y0,w))/2,w)}}},89861:function(d,s,n){var u=n(25376),b=n(66741),i=n(92880).extendDeepAll,S=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,m=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:u({})},font:u({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,s,n){var u=n(3400),b=n(51272),i=n(89861),S=n(60876).name,w=i.steps;function y(a,c,h){function p(x,R){return u.coerce(a,c,i,x,R)}for(var v=b(a,c,{name:"steps",handleItemDefaults:m}),_=0,O=0;O0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*c.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+c.stepInset+(te.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-c.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*c.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var Z=te._dims,K=w.ensureSingle(U,"rect",c.railTouchRectClass,function(re){re.call(D,X,U,te).style("pointer-events","all")});K.attr({width:Z.inputAreaLength,height:Math.max(Z.inputAreaWidth,c.tickOffset+te.ticklen+Z.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),S.setTranslate(K,0,Z.currentValueTotalHeight)}function j(U,X){var te=X._dims,Z=te.inputAreaLength-2*c.railInset,K=w.ensureSingle(U,"rect",c.railRectClass);K.attr({width:Z,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),S.setTranslate(K,c.railInset,.5*(te.inputAreaWidth-c.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,Z=function(me,pe){for(var se=me[c.name],ae=[],ce=0;ce0?[0]:[]);function re(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,O(me))}if(K.enter().append("g").classed(c.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){u.select(this).selectAll("g."+c.groupClassName).each(re)}).remove(),Z.length!==0){var q=K.selectAll("g."+c.groupClassName).data(Z,C);q.enter().append("g").classed(c.groupClassName,!0),q.exit().each(re).remove();for(var Y=0;Y0||De<0){var Oe={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[A.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){u.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){u.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(c.makeEditable,{gd:_}).on("edit",function(se){P!==void 0?S.call("_guiRestyle",_,M,se,P):S.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(c.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,s,n){var u=n(25376),b=n(22548),i=n(92880).extendFlat,S=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,m=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:u({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,s,n){var u=n(3400),b=n(51272),i=n(88444),S=n(73712).name,w=i.buttons;function y(a,c,h){function p(v,_){return u.coerce(a,c,i,v,_)}p("visible",b(a,c,{name:"buttons",handleItemDefaults:m}).length>0)&&(p("active"),p("direction"),p("type"),p("showactive"),p("x"),p("y"),u.noneOrAll(a,c,["x","y"]),p("xanchor"),p("yanchor"),p("pad.t"),p("pad.r"),p("pad.b"),p("pad.l"),u.coerceFont(p,"font",h.font),p("bgcolor",h.paper_bgcolor),p("bordercolor"),p("borderwidth"))}function m(a,c){function h(p,v){return u.coerce(a,c,w,p,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,c){b(a,c,{name:S,handleItemDefaults:y})}},14420:function(d,s,n){var u=n(33428),b=n(7316),i=n(76308),S=n(43616),w=n(3400),y=n(72736),m=n(31780).arrayEditor,a=n(84284).LINE_SPACING,c=n(73712),h=n(37400);function p(z){return z._index}function v(z,$){return+z.attr(c.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,Z){$.active=te,m(z.layout,c.name,$).applyUpdate("active",te),$.type==="buttons"?C(z,j,null,null,$):$.type==="dropdown"&&(U.attr(c.menuIndexAttrName,"-1"),O(z,j,U,X,$),Z||C(z,j,U,X,$))}function O(z,$,Q,j,U){var X=w.ensureSingle($,"g",c.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,Z=U.active,K=U.buttons[Z]||c.blankHeaderOpts,re={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,re,q),w.ensureSingle($,"text",c.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(S.font,U.font).text(c.arrowSymbol[U.direction])}).attr({x:te.headerWidth-c.arrowOffsetX+U.pad.l,y:te.headerHeight/2+c.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),C(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(P)}),X.on("mouseout",function(){X.call(A,U)}),S.setTranslate($,te.lx,te.ly)}function C(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(c.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?c.dropdownButtonClassName:c.buttonClassName,Z=Q.selectAll("g."+te).data(w.filterVisible(X)),K=Z.enter().append("g").classed(te,!0),re=Z.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),re.transition().attr("opacity","0").remove()):re.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+c.gapButtonHeader:q=ee.headerWidth+c.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-c.gapButtonHeader+c.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-c.gapButtonHeader+c.gapButton-ee.openWidth);var pe={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},se={l:pe.x+U.borderwidth,t:pe.y+U.borderwidth};Z.each(function(ae,ce){var de=u.select(this);de.call(x,U,ae,z).call(k,U,pe),de.on("click",function(){u.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(P)}),de.on("mouseout",function(){de.call(A,U),Z.call(T,U)})}),Z.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=pe.y-se.t):(se.w=pe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(Z.size()?function(ae,ce,de,ye,ve,_e){var we,Te,Pe,Ie=ve.direction,ze=Ie==="up"||Ie==="down",De=ve._dims,Qe=ve.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){u.select(this).selectAll("g."+c.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+c.headerGroupClassName).data(Q,p);X.enter().append("g").classed(c.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",c.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),Z=0;Zk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>p&&(U=p-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,Z=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,re=x+R,q=M;re+Z>h&&(re=h-Z);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:re,y:q,width:Z,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,pe=te?_+Z+.5:_+.5,se=O-.5,ae=z?C+Q+.5:C+.5,ce=c._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(pe)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ye=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault(),u.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ye),te&&this.vbar.on(".drag",null).call(ye)}this.setTranslate(m,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y-=u.event.dx),this.vbar&&(m-=u.event.dy),this.setTranslate(y,m)},w.prototype._onBoxWheel=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y+=u.event.deltaY),this.vbar&&(m+=u.event.deltaY),this.setTranslate(y,m)},w.prototype._onBarDrag=function(){var y=this.translateX,m=this.translateY;if(this.hbar){var a=y+this._hbarXMin,c=a+this._hbarTranslateMax;y=(S.constrain(u.event.x,a,c)-a)/(c-a)*(this.position.w-this._box.w)}if(this.vbar){var h=m+this._vbarYMin,p=h+this._vbarTranslateMax;m=(S.constrain(u.event.y,h,p)-h)/(p-h)*(this.position.h-this._box.h)}this.setTranslate(y,m)},w.prototype.setTranslate=function(y,m){var a=this.position.w-this._box.w,c=this.position.h-this._box.h;if(y=S.constrain(y||0,0,a),m=S.constrain(m||0,0,c),this.translateX=y,this.translateY=m,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,m)}if(this.vbar){var p=m/c;this.vbar.call(i.setTranslate,y,m+p*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(s,n,u){return["If set to a",s,"axis id (e.g. *"+s+"* or","*"+s+"2*), the `"+s+"` position refers to a",s,"coordinate. If set to *paper*, the `"+s+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+u+"). If set to a",s,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+s+"2 domain* refers to the domain of the second",s," axis and a",s,"position of 0.5 refers to the","point between the",n,"and the",u,"of the domain of the","second",s,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,s){s.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],s.STYLE=s.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,s){s.xmlns="http://www.w3.org/2000/xmlns/",s.svg="http://www.w3.org/2000/svg",s.xlink="http://www.w3.org/1999/xlink",s.svgAttrs={xmlns:s.svg,"xmlns:xlink":s.xlink}},64884:function(d,s,n){s.version=n(25788).version,n(88324),n(79288);for(var u=n(24040),b=s.register=u.register,i=n(22448),S=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,s){s.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},s.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},s.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},s.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},s.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},s.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,s,n){var u=n(20435),b=u.mod,i=u.modHalf,S=Math.PI,w=2*S;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function m(h,p){return i(p-h,w)}function a(h,p){if(y(p))return!0;var v,_;p[0](_=b(_,w))&&(_+=w);var O=b(h,w),C=O+w;return O>=v&&O<=_||C>=v&&C<=_}function c(h,p,v,_,O,C,x){O=O||0,C=C||0;var R,M,T,P,A,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+O,C-$*Math.sin(Q)]}L?(R=0,M=S,T=w):v<_?(R=v,T=_):(R=_,T=v),h=O&&h<=C);var O,C},pathArc:function(h,p,v,_,O){return c(null,h,p,v,_,O,0)},pathSector:function(h,p,v,_,O){return c(null,h,p,v,_,O,1)},pathAnnulus:function(h,p,v,_,O,C){return c(h,p,v,_,O,C,1)}}},38116:function(d,s,n){var u=n(83160).decode,b=n(63620),i=Array.isArray,S=ArrayBuffer,w=DataView;function y(p){return S.isView(p)&&!(p instanceof w)}function m(p){return i(p)||y(p)}s.isTypedArray=y,s.isArrayOrTypedArray=m,s.isArray1D=function(p){return!m(p[0])},s.ensureArray=function(p,v){return i(p)||(p=[]),p.length=v,p};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function c(p){return p.constructor===ArrayBuffer}function h(p,v,_){if(m(p)){if(m(p[0])){for(var O=_,C=0;CR.max?C.set(x):C.set(+O)}},integer:{coerceFunction:function(O,C,x,R){O%1||!u(O)||R.min!==void 0&&OR.max?C.set(x):C.set(+O)}},string:{coerceFunction:function(O,C,x,R){if(typeof O!="string"){var M=typeof O=="number";R.strict!==!0&&M?C.set(String(O)):C.set(x)}else R.noBlank&&!O?C.set(x):C.set(O)}},color:{coerceFunction:function(O,C,x){b(O).isValid()?C.set(O):C.set(x)}},colorlist:{coerceFunction:function(O,C,x){Array.isArray(O)&&O.length&&O.every(function(R){return b(R).isValid()})?C.set(O):C.set(x)}},colorscale:{coerceFunction:function(O,C,x){C.set(S.get(O,x))}},angle:{coerceFunction:function(O,C,x){O==="auto"?C.set("auto"):u(O)?C.set(c(+O,360)):C.set(x)}},subplotid:{coerceFunction:function(O,C,x,R){var M=R.regex||a(x);typeof O=="string"&&M.test(O)?C.set(O):C.set(x)},validateFunction:function(O,C){var x=C.dflt;return O===x||typeof O=="string"&&!!a(x).test(O)}},flaglist:{coerceFunction:function(O,C,x,R){if((R.extras||[]).indexOf(O)===-1)if(typeof O=="string"){for(var M=O.split("+"),T=0;T=u&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var pe=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ye=Number(me[11]||0);if(q){if(pe.length===2)return a;var ve;pe=Number(pe);try{var _e=O.getComponentMethod("calendars","getCal")(te);if(ee){var we=se.charAt(se.length-1)==="i";se=parseInt(se,10),ve=_e.newDate(pe,_e.toMonthIndex(pe,se,we),ae)}else ve=_e.newDate(pe,Number(se),ae)}catch{return a}return ve?(ve.toJD()-_)*c+ce*h+de*p+ye*v:a}pe=pe.length===2?(Number(pe)+2e3-M)%100+M:Number(pe),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(pe),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ye*v},u=s.MIN_MS=s.dateTime2ms("-9999"),b=s.MAX_MS=s.dateTime2ms("9999-12-31 23:59:59.9999"),s.isDateTime=function(X,te){return s.dateTime2ms(X,te)!==a};var A=90*c,L=3*h,D=5*p;function k(X,te,Z,K,re){if((te||Z||K||re)&&(X+=" "+P(te,2)+":"+P(Z,2),(K||re)&&(X+=":"+P(K,2),re))){for(var q=4;re%10==0;)q-=1,re/=10;X+="."+P(re,q)}return X}s.ms2DateTime=function(X,te,Z){if(typeof X!="number"||!(X>=u&&X<=b))return a;te||(te=0);var K,re,q,Y,ee,me,pe=Math.floor(10*y(X+.05,1)),se=Math.round(X-pe/10);if(T(Z)){var ae=Math.floor(se/c)+_,ce=Math.floor(y(X,c));try{K=O.getComponentMethod("calendars","getCal")(Z).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=C("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;re=te=u+c&&X<=b-c))return a;var te=Math.floor(10*y(X+.05,1)),Z=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(Z),Z.getHours(),Z.getMinutes(),Z.getSeconds(),10*Z.getUTCMilliseconds()+te)},s.cleanDate=function(X,te,Z){if(X===a)return te;if(s.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(Z))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=s.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!s.isDateTime(X,Z))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,Z,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var re=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[Z("%q")(re)]}),T(K))try{X=O.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return Z(X)(re)}var j=[59,59.9,59.99,59.999,59.9999];s.formatDate=function(X,te,Z,K,re,q){if(re=T(re)&&re,!te)if(Z==="y")te=q.year;else if(Z==="m")te=q.month;else{if(Z!=="d")return function(Y,ee){var me=y(Y+.05,c),pe=P(Math.floor(me/h),2)+":"+P(y(Math.floor(me/p),60),2);if(ee!=="M"){S(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),pe+=":"+se}return pe}(X,Z)+` + */const D8=typeof window<"u";function A5e(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const If=Object.assign;function Sie(t,e){const o={};for(const f in e){const E=e[f];o[f]=Sx(E)?E.map(t):t(E)}return o}const nI=()=>{},Sx=Array.isArray,M5e=/\/$/,E5e=t=>t.replace(M5e,"");function kie(t,e,o="/"){let f,E={},d="",s="";const n=e.indexOf("#");let u=e.indexOf("?");return n=0&&(u=-1),u>-1&&(f=e.slice(0,u),d=e.slice(u+1,n>-1?n:e.length),E=t(d)),n>-1&&(f=f||e.slice(0,n),s=e.slice(n,e.length)),f=I5e(f??e,o),{fullPath:f+(d&&"?")+d+s,path:f,query:E,hash:s}}function P5e(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function Ehe(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function R5e(t,e,o){const f=e.matched.length-1,E=o.matched.length-1;return f>-1&&f===E&&sM(e.matched[f],o.matched[E])&&Uve(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function sM(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Uve(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!L5e(t[o],e[o]))return!1;return!0}function L5e(t,e){return Sx(t)?Phe(t,e):Sx(e)?Phe(e,t):t===e}function Phe(t,e){return Sx(e)?t.length===e.length&&t.every((o,f)=>o===e[f]):t.length===1&&t[0]===e}function I5e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),f=t.split("/"),E=f[f.length-1];(E===".."||E===".")&&f.push("");let d=o.length-1,s,n;for(s=0;s1&&d--;else break;return o.slice(0,d).join("/")+"/"+f.slice(s-(s===f.length?1:0)).join("/")}var OI;(function(t){t.pop="pop",t.push="push"})(OI||(OI={}));var rI;(function(t){t.back="back",t.forward="forward",t.unknown=""})(rI||(rI={}));function D5e(t){if(!t)if(D8){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),E5e(t)}const B5e=/^[^#]+#/;function z5e(t,e){return t.replace(B5e,"#")+e}function N5e(t,e){const o=document.documentElement.getBoundingClientRect(),f=t.getBoundingClientRect();return{behavior:e.behavior,left:f.left-o.left-(e.left||0),top:f.top-o.top-(e.top||0)}}const ZZ=()=>({left:window.pageXOffset,top:window.pageYOffset});function F5e(t){let e;if("el"in t){const o=t.el,f=typeof o=="string"&&o.startsWith("#"),E=typeof o=="string"?f?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!E)return;e=N5e(E,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Rhe(t,e){return(history.state?history.state.position-e:-1)+t}const Yae=new Map;function $5e(t,e){Yae.set(t,e)}function V5e(t){const e=Yae.get(t);return Yae.delete(t),e}let U5e=()=>location.protocol+"//"+location.host;function jve(t,e){const{pathname:o,search:f,hash:E}=e,d=t.indexOf("#");if(d>-1){let n=E.includes(t.slice(d))?t.slice(d).length:1,u=E.slice(n);return u[0]!=="/"&&(u="/"+u),Ehe(u,"")}return Ehe(o,t)+f+E}function j5e(t,e,o,f){let E=[],d=[],s=null;const n=({state:w})=>{const y=jve(t,location),m=o.value,a=e.value;let c=0;if(w){if(o.value=y,e.value=w,s&&s===m){s=null;return}c=a?w.position-a.position:0}else f(y);E.forEach(h=>{h(o.value,m,{delta:c,type:OI.pop,direction:c?c>0?rI.forward:rI.back:rI.unknown})})};function u(){s=o.value}function b(w){E.push(w);const y=()=>{const m=E.indexOf(w);m>-1&&E.splice(m,1)};return d.push(y),y}function i(){const{history:w}=window;w.state&&w.replaceState(If({},w.state,{scroll:ZZ()}),"")}function S(){for(const w of d)w();d=[],window.removeEventListener("popstate",n),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",n),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:u,listen:b,destroy:S}}function Lhe(t,e,o,f=!1,E=!1){return{back:t,current:e,forward:o,replaced:f,position:window.history.length,scroll:E?ZZ():null}}function Q5e(t){const{history:e,location:o}=window,f={value:jve(t,o)},E={value:e.state};E.value||d(f.value,{back:null,current:f.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function d(u,b,i){const S=t.indexOf("#"),w=S>-1?(o.host&&document.querySelector("base")?t:t.slice(S))+u:U5e()+t+u;try{e[i?"replaceState":"pushState"](b,"",w),E.value=b}catch(y){console.error(y),o[i?"replace":"assign"](w)}}function s(u,b){const i=If({},e.state,Lhe(E.value.back,u,E.value.forward,!0),b,{position:E.value.position});d(u,i,!0),f.value=u}function n(u,b){const i=If({},E.value,e.state,{forward:u,scroll:ZZ()});d(i.current,i,!0);const S=If({},Lhe(f.value,u,null),{position:i.position+1},b);d(u,S,!1),f.value=u}return{location:f,state:E,push:n,replace:s}}function H5e(t){t=D5e(t);const e=Q5e(t),o=j5e(t,e.state,e.location,e.replace);function f(d,s=!0){s||o.pauseListeners(),history.go(d)}const E=If({location:"",base:t,go:f,createHref:z5e.bind(null,t)},e,o);return Object.defineProperty(E,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(E,"state",{enumerable:!0,get:()=>e.state.value}),E}function Z5e(t){return typeof t=="string"||t&&typeof t=="object"}function Qve(t){return typeof t=="string"||typeof t=="symbol"}const GS={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hve=Symbol("");var Ihe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Ihe||(Ihe={}));function lM(t,e){return If(new Error,{type:t,[Hve]:!0},e)}function OO(t,e){return t instanceof Error&&Hve in t&&(e==null||!!(t.type&e))}const Dhe="[^/]+?",q5e={sensitive:!1,strict:!1,start:!0,end:!0},W5e=/[.+*?^${}()[\]/\\]/g;function Y5e(t,e){const o=If({},q5e,e),f=[];let E=o.start?"^":"";const d=[];for(const b of t){const i=b.length?[]:[90];o.strict&&!b.length&&(E+="/");for(let S=0;Se.length?e.length===1&&e[0]===40+40?1:-1:0}function G5e(t,e){let o=0;const f=t.score,E=e.score;for(;o0&&e[e.length-1]<0}const K5e={type:0,value:""},J5e=/[a-zA-Z0-9_]/;function eTe(t){if(!t)return[[]];if(t==="/")return[[K5e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${o})/"${b}": ${y}`)}let o=0,f=o;const E=[];let d;function s(){d&&E.push(d),d=[]}let n=0,u,b="",i="";function S(){b&&(o===0?d.push({type:0,value:b}):o===1||o===2||o===3?(d.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),d.push({type:1,value:b,regexp:i,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),b="")}function w(){b+=u}for(;n{s(p)}:nI}function s(i){if(Qve(i)){const S=f.get(i);S&&(f.delete(i),o.splice(o.indexOf(S),1),S.children.forEach(s),S.alias.forEach(s))}else{const S=o.indexOf(i);S>-1&&(o.splice(S,1),i.record.name&&f.delete(i.record.name),i.children.forEach(s),i.alias.forEach(s))}}function n(){return o}function u(i){let S=0;for(;S=0&&(i.record.path!==o[S].record.path||!Zve(i,o[S]));)S++;o.splice(S,0,i),i.record.name&&!Nhe(i)&&f.set(i.record.name,i)}function b(i,S){let w,y={},m,a;if("name"in i&&i.name){if(w=f.get(i.name),!w)throw lM(1,{location:i});a=w.record.name,y=If(zhe(S.params,w.keys.filter(p=>!p.optional).map(p=>p.name)),i.params&&zhe(i.params,w.keys.map(p=>p.name))),m=w.stringify(y)}else if("path"in i)m=i.path,w=o.find(p=>p.re.test(m)),w&&(y=w.parse(m),a=w.record.name);else{if(w=S.name?f.get(S.name):o.find(p=>p.re.test(S.path)),!w)throw lM(1,{location:i,currentLocation:S});a=w.record.name,y=If({},S.params,i.params),m=w.stringify(y)}const c=[];let h=w;for(;h;)c.unshift(h.record),h=h.parent;return{name:a,path:m,params:y,matched:c,meta:iTe(c)}}return t.forEach(i=>d(i)),{addRoute:d,resolve:b,removeRoute:s,getRoutes:n,getRecordMatcher:E}}function zhe(t,e){const o={};for(const f of e)f in t&&(o[f]=t[f]);return o}function rTe(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:oTe(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function oTe(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const f in t.components)e[f]=typeof o=="object"?o[f]:o;return e}function Nhe(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function iTe(t){return t.reduce((e,o)=>If(e,o.meta),{})}function Fhe(t,e){const o={};for(const f in t)o[f]=f in e?e[f]:t[f];return o}function Zve(t,e){return e.children.some(o=>o===t||Zve(t,o))}const qve=/#/g,aTe=/&/g,sTe=/\//g,lTe=/=/g,cTe=/\?/g,Wve=/\+/g,uTe=/%5B/g,fTe=/%5D/g,Yve=/%5E/g,dTe=/%60/g,Xve=/%7B/g,hTe=/%7C/g,Gve=/%7D/g,pTe=/%20/g;function gce(t){return encodeURI(""+t).replace(hTe,"|").replace(uTe,"[").replace(fTe,"]")}function mTe(t){return gce(t).replace(Xve,"{").replace(Gve,"}").replace(Yve,"^")}function Xae(t){return gce(t).replace(Wve,"%2B").replace(pTe,"+").replace(qve,"%23").replace(aTe,"%26").replace(dTe,"`").replace(Xve,"{").replace(Gve,"}").replace(Yve,"^")}function gTe(t){return Xae(t).replace(lTe,"%3D")}function vTe(t){return gce(t).replace(qve,"%23").replace(cTe,"%3F")}function yTe(t){return t==null?"":vTe(t).replace(sTe,"%2F")}function IH(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function bTe(t){const e={};if(t===""||t==="?")return e;const f=(t[0]==="?"?t.slice(1):t).split("&");for(let E=0;Ed&&Xae(d)):[f&&Xae(f)]).forEach(d=>{d!==void 0&&(e+=(e.length?"&":"")+o,d!=null&&(e+="="+d))})}return e}function xTe(t){const e={};for(const o in t){const f=t[o];f!==void 0&&(e[o]=Sx(f)?f.map(E=>E==null?null:""+E):f==null?f:""+f)}return e}const _Te=Symbol(""),Vhe=Symbol(""),vce=Symbol(""),yce=Symbol(""),Gae=Symbol("");function ML(){let t=[];function e(f){return t.push(f),()=>{const E=t.indexOf(f);E>-1&&t.splice(E,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function n4(t,e,o,f,E){const d=f&&(f.enterCallbacks[E]=f.enterCallbacks[E]||[]);return()=>new Promise((s,n)=>{const u=S=>{S===!1?n(lM(4,{from:o,to:e})):S instanceof Error?n(S):Z5e(S)?n(lM(2,{from:e,to:S})):(d&&f.enterCallbacks[E]===d&&typeof S=="function"&&d.push(S),s())},b=t.call(f&&f.instances[E],e,o,u);let i=Promise.resolve(b);t.length<3&&(i=i.then(u)),i.catch(S=>n(S))})}function Tie(t,e,o,f){const E=[];for(const d of t)for(const s in d.components){let n=d.components[s];if(!(e!=="beforeRouteEnter"&&!d.instances[s]))if(wTe(n)){const b=(n.__vccOpts||n)[e];b&&E.push(n4(b,o,f,d,s))}else{let u=n();E.push(()=>u.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${d.path}"`));const i=A5e(b)?b.default:b;d.components[s]=i;const w=(i.__vccOpts||i)[e];return w&&n4(w,o,f,d,s)()}))}}return E}function wTe(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Uhe(t){const e=Kl(vce),o=Kl(yce),f=nr(()=>e.resolve(Va(t.to))),E=nr(()=>{const{matched:u}=f.value,{length:b}=u,i=u[b-1],S=o.matched;if(!i||!S.length)return-1;const w=S.findIndex(sM.bind(null,i));if(w>-1)return w;const y=jhe(u[b-2]);return b>1&&jhe(i)===y&&S[S.length-1].path!==y?S.findIndex(sM.bind(null,u[b-2])):w}),d=nr(()=>E.value>-1&&TTe(o.params,f.value.params)),s=nr(()=>E.value>-1&&E.value===o.matched.length-1&&Uve(o.params,f.value.params));function n(u={}){return kTe(u)?e[Va(t.replace)?"replace":"push"](Va(t.to)).catch(nI):Promise.resolve()}return{route:f,href:nr(()=>f.value.href),isActive:d,isExactActive:s,navigate:n}}const OTe=em({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uhe,setup(t,{slots:e}){const o=Am(Uhe(t)),{options:f}=Kl(vce),E=nr(()=>({[Qhe(t.activeClass,f.linkActiveClass,"router-link-active")]:o.isActive,[Qhe(t.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const d=e.default&&e.default(o);return t.custom?d:U1("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:E.value},d)}}}),STe=OTe;function kTe(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function TTe(t,e){for(const o in e){const f=e[o],E=t[o];if(typeof f=="string"){if(f!==E)return!1}else if(!Sx(E)||E.length!==f.length||f.some((d,s)=>d!==E[s]))return!1}return!0}function jhe(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Qhe=(t,e,o)=>t??e??o,CTe=em({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const f=Kl(Gae),E=nr(()=>t.route||f.value),d=Kl(Vhe,0),s=nr(()=>{let b=Va(d);const{matched:i}=E.value;let S;for(;(S=i[b])&&!S.components;)b++;return b}),n=nr(()=>E.value.matched[s.value]);md(Vhe,nr(()=>s.value+1)),md(_Te,n),md(Gae,E);const u=qo();return ia(()=>[u.value,n.value,t.name],([b,i,S],[w,y,m])=>{i&&(i.instances[S]=b,y&&y!==i&&b&&b===w&&(i.leaveGuards.size||(i.leaveGuards=y.leaveGuards),i.updateGuards.size||(i.updateGuards=y.updateGuards))),b&&i&&(!y||!sM(i,y)||!w)&&(i.enterCallbacks[S]||[]).forEach(a=>a(b))},{flush:"post"}),()=>{const b=E.value,i=t.name,S=n.value,w=S&&S.components[i];if(!w)return Hhe(o.default,{Component:w,route:b});const y=S.props[i],m=y?y===!0?b.params:typeof y=="function"?y(b):y:null,c=U1(w,If({},m,e,{onVnodeUnmounted:h=>{h.component.isUnmounted&&(S.instances[i]=null)},ref:u}));return Hhe(o.default,{Component:c,route:b})||c}}});function Hhe(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const ATe=CTe;function MTe(t){const e=nTe(t.routes,t),o=t.parseQuery||bTe,f=t.stringifyQuery||$he,E=t.history,d=ML(),s=ML(),n=ML(),u=Gi(GS);let b=GS;D8&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=Sie.bind(null,q=>""+q),S=Sie.bind(null,yTe),w=Sie.bind(null,IH);function y(q,Y){let ee,me;return Qve(q)?(ee=e.getRecordMatcher(q),me=Y):me=q,e.addRoute(me,ee)}function m(q){const Y=e.getRecordMatcher(q);Y&&e.removeRoute(Y)}function a(){return e.getRoutes().map(q=>q.record)}function c(q){return!!e.getRecordMatcher(q)}function h(q,Y){if(Y=If({},Y||u.value),typeof q=="string"){const ce=kie(o,q,Y.path),de=e.resolve({path:ce.path},Y),ye=E.createHref(ce.fullPath);return If(ce,de,{params:w(de.params),hash:IH(ce.hash),redirectedFrom:void 0,href:ye})}let ee;if("path"in q)ee=If({},q,{path:kie(o,q.path,Y.path).path});else{const ce=If({},q.params);for(const de in ce)ce[de]==null&&delete ce[de];ee=If({},q,{params:S(ce)}),Y.params=S(Y.params)}const me=e.resolve(ee,Y),pe=q.hash||"";me.params=i(w(me.params));const se=P5e(f,If({},q,{hash:mTe(pe),path:me.path})),ae=E.createHref(se);return If({fullPath:se,hash:pe,query:f===$he?xTe(q.query):q.query||{}},me,{redirectedFrom:void 0,href:ae})}function p(q){return typeof q=="string"?kie(o,q,u.value.path):If({},q)}function v(q,Y){if(b!==q)return lM(8,{from:Y,to:q})}function _(q){return x(q)}function O(q){return _(If(p(q),{replace:!0}))}function C(q){const Y=q.matched[q.matched.length-1];if(Y&&Y.redirect){const{redirect:ee}=Y;let me=typeof ee=="function"?ee(q):ee;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=p(me):{path:me},me.params={}),If({query:q.query,hash:q.hash,params:"path"in me?{}:q.params},me)}}function x(q,Y){const ee=b=h(q),me=u.value,pe=q.state,se=q.force,ae=q.replace===!0,ce=C(ee);if(ce)return x(If(p(ce),{state:typeof ce=="object"?If({},pe,ce.state):pe,force:se,replace:ae}),Y||ee);const de=ee;de.redirectedFrom=Y;let ye;return!se&&R5e(f,me,ee)&&(ye=lM(16,{to:de,from:me}),U(me,me,!0,!1)),(ye?Promise.resolve(ye):T(de,me)).catch(ve=>OO(ve)?OO(ve,2)?ve:j(ve):$(ve,de,me)).then(ve=>{if(ve){if(OO(ve,2))return x(If({replace:ae},p(ve.to),{state:typeof ve.to=="object"?If({},pe,ve.to.state):pe,force:se}),Y||de)}else ve=A(de,me,!0,ae,pe);return P(de,me,ve),ve})}function R(q,Y){const ee=v(q,Y);return ee?Promise.reject(ee):Promise.resolve()}function M(q){const Y=Z.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(q):q()}function T(q,Y){let ee;const[me,pe,se]=ETe(q,Y);ee=Tie(me.reverse(),"beforeRouteLeave",q,Y);for(const ce of me)ce.leaveGuards.forEach(de=>{ee.push(n4(de,q,Y))});const ae=R.bind(null,q,Y);return ee.push(ae),re(ee).then(()=>{ee=[];for(const ce of d.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).then(()=>{ee=Tie(pe,"beforeRouteUpdate",q,Y);for(const ce of pe)ce.updateGuards.forEach(de=>{ee.push(n4(de,q,Y))});return ee.push(ae),re(ee)}).then(()=>{ee=[];for(const ce of se)if(ce.beforeEnter)if(Sx(ce.beforeEnter))for(const de of ce.beforeEnter)ee.push(n4(de,q,Y));else ee.push(n4(ce.beforeEnter,q,Y));return ee.push(ae),re(ee)}).then(()=>(q.matched.forEach(ce=>ce.enterCallbacks={}),ee=Tie(se,"beforeRouteEnter",q,Y),ee.push(ae),re(ee))).then(()=>{ee=[];for(const ce of s.list())ee.push(n4(ce,q,Y));return ee.push(ae),re(ee)}).catch(ce=>OO(ce,8)?ce:Promise.reject(ce))}function P(q,Y,ee){n.list().forEach(me=>M(()=>me(q,Y,ee)))}function A(q,Y,ee,me,pe){const se=v(q,Y);if(se)return se;const ae=Y===GS,ce=D8?history.state:{};ee&&(me||ae?E.replace(q.fullPath,If({scroll:ae&&ce&&ce.scroll},pe)):E.push(q.fullPath,pe)),u.value=q,U(q,Y,ee,ae),j()}let L;function D(){L||(L=E.listen((q,Y,ee)=>{if(!K.listening)return;const me=h(q),pe=C(me);if(pe){x(If(pe,{replace:!0}),me).catch(nI);return}b=me;const se=u.value;D8&&$5e(Rhe(se.fullPath,ee.delta),ZZ()),T(me,se).catch(ae=>OO(ae,12)?ae:OO(ae,2)?(x(ae.to,me).then(ce=>{OO(ce,20)&&!ee.delta&&ee.type===OI.pop&&E.go(-1,!1)}).catch(nI),Promise.reject()):(ee.delta&&E.go(-ee.delta,!1),$(ae,me,se))).then(ae=>{ae=ae||A(me,se,!1),ae&&(ee.delta&&!OO(ae,8)?E.go(-ee.delta,!1):ee.type===OI.pop&&OO(ae,20)&&E.go(-1,!1)),P(me,se,ae)}).catch(nI)}))}let k=ML(),I=ML(),z;function $(q,Y,ee){j(q);const me=I.list();return me.length?me.forEach(pe=>pe(q,Y,ee)):console.error(q),Promise.reject(q)}function Q(){return z&&u.value!==GS?Promise.resolve():new Promise((q,Y)=>{k.add([q,Y])})}function j(q){return z||(z=!q,D(),k.list().forEach(([Y,ee])=>q?ee(q):Y()),k.reset()),q}function U(q,Y,ee,me){const{scrollBehavior:pe}=t;if(!D8||!pe)return Promise.resolve();const se=!ee&&V5e(Rhe(q.fullPath,0))||(me||!ee)&&history.state&&history.state.scroll||null;return Vc().then(()=>pe(q,Y,se)).then(ae=>ae&&F5e(ae)).catch(ae=>$(ae,q,Y))}const X=q=>E.go(q);let te;const Z=new Set,K={currentRoute:u,listening:!0,addRoute:y,removeRoute:m,hasRoute:c,getRoutes:a,resolve:h,options:t,push:_,replace:O,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:d.add,beforeResolve:s.add,afterEach:n.add,onError:I.add,isReady:Q,install(q){const Y=this;q.component("RouterLink",STe),q.component("RouterView",ATe),q.config.globalProperties.$router=Y,Object.defineProperty(q.config.globalProperties,"$route",{enumerable:!0,get:()=>Va(u)}),D8&&!te&&u.value===GS&&(te=!0,_(E.location).catch(pe=>{}));const ee={};for(const pe in GS)Object.defineProperty(ee,pe,{get:()=>u.value[pe],enumerable:!0});q.provide(vce,Y),q.provide(yce,eve(ee)),q.provide(Gae,u);const me=q.unmount;Z.add(q),q.unmount=function(){Z.delete(q),Z.size<1&&(b=GS,L&&L(),L=null,u.value=GS,te=!1,z=!1),me()}}};function re(q){return q.reduce((Y,ee)=>Y.then(()=>M(ee)),Promise.resolve())}return K}function ETe(t,e){const o=[],f=[],E=[],d=Math.max(e.matched.length,t.matched.length);for(let s=0;ssM(b,n))?f.push(n):o.push(n));const u=t.matched[s];u&&(e.matched.find(b=>sM(b,u))||E.push(u))}return[o,f,E]}function eC(){return Kl(yce)}function PTe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kve={exports:{}};(function(t,e){/*! For license information please see plotly.min.js.LICENSE.txt */(function(o,f){t.exports=f()})(self,function(){return function(){var o={79288:function(d,s,n){var u=n(3400),b={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in b){var S=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");u.addStyleRule(S,b[i])}},86712:function(d,s,n){d.exports=n(84224)},37240:function(d,s,n){d.exports=n(51132)},29744:function(d,s,n){d.exports=n(94456)},29352:function(d,s,n){d.exports=n(67244)},96144:function(d,s,n){d.exports=n(97776)},53219:function(d,s,n){d.exports=n(61712)},4624:function(d,s,n){d.exports=n(95856)},54543:function(d,s,n){d.exports=n(54272)},45e3:function(d,s,n){d.exports=n(85404)},62300:function(d,s,n){d.exports=n(26048)},6920:function(d,s,n){d.exports=n(66240)},10264:function(d,s,n){d.exports=n(40448)},32016:function(d,s,n){d.exports=n(64884)},27528:function(d,s,n){d.exports=n(15088)},75556:function(d,s,n){d.exports=n(76744)},39204:function(d,s,n){d.exports=n(94704)},73996:function(d,s,n){d.exports=n(62396)},16489:function(d,s,n){d.exports=n(32028)},5e3:function(d,s,n){d.exports=n(81932)},77280:function(d,s,n){d.exports=n(45536)},33992:function(d,s,n){d.exports=n(42600)},17600:function(d,s,n){d.exports=n(21536)},49116:function(d,s,n){d.exports=n(65664)},46808:function(d,s,n){d.exports=n(29044)},36168:function(d,s,n){d.exports=n(48928)},13792:function(d,s,n){var u=n(32016);u.register([n(37240),n(29352),n(5e3),n(33992),n(17600),n(49116),n(6920),n(67484),n(79440),n(39204),n(83096),n(36168),n(20260),n(63560),n(65832),n(46808),n(73996),n(48824),n(89904),n(25120),n(13752),n(4340),n(62300),n(29800),n(8363),n(54543),n(86636),n(42192),n(32140),n(77280),n(89296),n(56816),n(70192),n(45e3),n(27528),n(84764),n(3920),n(50248),n(4624),n(69967),n(10264),n(86152),n(53219),n(81604),n(63796),n(29744),n(89336),n(86712),n(75556),n(16489),n(97312),n(96144)]),d.exports=u},3920:function(d,s,n){d.exports=n(43480)},25120:function(d,s,n){d.exports=n(6296)},4340:function(d,s,n){d.exports=n(7404)},86152:function(d,s,n){d.exports=n(65456)},56816:function(d,s,n){d.exports=n(22020)},89296:function(d,s,n){d.exports=n(29928)},20260:function(d,s,n){d.exports=n(75792)},32140:function(d,s,n){d.exports=n(156)},84764:function(d,s,n){d.exports=n(45499)},48824:function(d,s,n){d.exports=n(3296)},69967:function(d,s,n){d.exports=n(4184)},8363:function(d,s,n){d.exports=n(36952)},86636:function(d,s,n){d.exports=n(38983)},70192:function(d,s,n){d.exports=n(11572)},81604:function(d,s,n){d.exports=n(76924)},63796:function(d,s,n){d.exports=n(62944)},89336:function(d,s,n){d.exports=n(95443)},67484:function(d,s,n){d.exports=n(34864)},97312:function(d,s,n){d.exports=n(76272)},42192:function(d,s,n){d.exports=n(97924)},29800:function(d,s,n){d.exports=n(15436)},63560:function(d,s,n){d.exports=n(5621)},89904:function(d,s,n){d.exports=n(91304)},50248:function(d,s,n){d.exports=n(41724)},65832:function(d,s,n){d.exports=n(31991)},79440:function(d,s,n){d.exports=n(22869)},13752:function(d,s,n){d.exports=n(67776)},83096:function(d,s,n){d.exports=n(95952)},72196:function(d){d.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},13916:function(d,s,n){var u=n(72196),b=n(25376),i=n(33816),S=n(31780).templatedArray;n(36208),d.exports=S("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:u.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",i.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:b({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(d,s,n){var u=n(3400),b=n(54460),i=n(23816).draw;function S(y){var m=y._fullLayout;u.filterVisible(m.annotations).forEach(function(a){var c=b.getFromId(y,a.xref),h=b.getFromId(y,a.yref),p=b.getRefType(a.xref),v=b.getRefType(a.yref);a._extremes={},p==="range"&&w(a,c),v==="range"&&w(a,h)})}function w(y,m){var a,c=m._id,h=c.charAt(0),p=y[h],v=y["a"+h],_=y[h+"ref"],O=y["a"+h+"ref"],C=y["_"+h+"padplus"],x=y["_"+h+"padminus"],R={x:1,y:-1}[h]*y[h+"shift"],M=3*y.arrowsize*y.arrowwidth||0,T=M+R,P=M-R,A=3*y.startarrowsize*y.arrowwidth||0,L=A+R,D=A-R;if(O===_){var k=b.findExtremes(m,[m.r2c(p)],{ppadplus:T,ppadminus:P}),I=b.findExtremes(m,[m.r2c(v)],{ppadplus:Math.max(C,L),ppadminus:Math.max(x,D)});a={min:[k.min[0],I.min[0]],max:[k.max[0],I.max[0]]}}else L=v?L+v:L,D=v?D-v:D,a=b.findExtremes(m,[m.r2c(p)],{ppadplus:Math.max(C,T,L),ppadminus:Math.max(x,P,D)});y._extremes[c]=a}d.exports=function(y){var m=y._fullLayout;if(u.filterVisible(m.annotations).length&&y._fullData.length)return u.syncOrAsync([i,S],y)}},42300:function(d,s,n){var u=n(3400),b=n(24040),i=n(31780).arrayEditor;function S(y,m){var a,c,h,p,v,_,O,C=y._fullLayout.annotations,x=[],R=[],M=[],T=(m||[]).length;for(a=0;a0||a.explicitOff.length>0},onClick:function(y,m){var a,c,h=S(y,m),p=h.on,v=h.off.concat(h.explicitOff),_={},O=y._fullLayout.annotations;if(p.length||v.length){for(a=0;a.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Zt]}for(var Je=!1,Me=["x","y"],Fe=0;Fe1)&&(Ft===St?((Sn=zt.r2fraction(T["a"+pt]))<0||Sn>1)&&(Je=!0):Je=!0),je=zt._offset+zt.r2p(T[pt]),Ge=.5}else{var vt=Pn==="domain";pt==="x"?(ot=T[pt],je=vt?zt._offset+zt._length*ot:je=$.l+$.w*ot):(ot=1-T[pt],je=vt?zt._offset+zt._length*ot:je=$.t+$.h*ot),Ge=T.showarrow?.5:ot}if(T.showarrow){Cn.head=je;var xt=T["a"+pt];if(ht=ln*Ye(.5,T.xanchor)-tn*Ye(.5,T.yanchor),Ft===St){var st=y.getRefType(Ft);st==="domain"?(pt==="y"&&(xt=1-xt),Cn.tail=zt._offset+zt._length*xt):st==="paper"?pt==="y"?(xt=1-xt,Cn.tail=$.t+$.h*xt):Cn.tail=$.l+$.w*xt:Cn.tail=zt._offset+zt.r2p(xt),tt=ht}else Cn.tail=je+xt,tt=ht+xt;Cn.text=Cn.tail+ht;var bt=z[pt==="x"?"width":"height"];if(St==="paper"&&(Cn.head=S.constrain(Cn.head,1,bt-1)),Ft==="pixel"){var Vt=-Math.max(Cn.tail-3,Cn.text),Dt=Math.min(Cn.tail+3,Cn.text)-bt;Vt>0?(Cn.tail+=Vt,Cn.text+=Vt):Dt>0&&(Cn.tail-=Dt,Cn.text-=Dt)}Cn.tail+=cn,Cn.head+=cn}else tt=ht=Et*Ye(Ge,Ot),Cn.text=je+ht;Cn.text+=cn,ht+=cn,tt+=cn,T["_"+pt+"padplus"]=Et/2+tt,T["_"+pt+"padminus"]=Et/2-tt,T["_"+pt+"size"]=Et,T["_"+pt+"shift"]=ht}if(Je)pe.remove();else{var it=0,at=0;if(T.align!=="left"&&(it=(Re-Oe)*(T.align==="center"?.5:1)),T.valign!=="top"&&(at=(We-ke)*(T.valign==="middle"?.5:1)),Ve)Qe.select("svg").attr({x:ce+it-1,y:ce+at}).call(a.setClipUrl,ye?Z:null,M);else{var Bt=ce+at-$e.top,_t=ce+it-$e.left;Te.call(h.positionText,_t,Bt).call(a.setClipUrl,ye?Z:null,M)}ve.select("rect").call(a.setRect,ce,ce,Re,We),de.call(a.setRect,se/2,se/2,Ue-se,Ze-se),pe.call(a.setTranslate,Math.round(K.x.text-Ue/2),Math.round(K.y.text-Ze/2)),Y.attr({transform:"rotate("+re+","+K.x.text+","+K.y.text+")"});var qt,en=function(Jt,Zt){q.selectAll(".annotation-arrow-g").remove();var Nt=K.x.head,sn=K.y.head,rn=K.x.tail+Jt,_n=K.y.tail+Zt,wn=K.x.text+Jt,An=K.y.text+Zt,Kn=S.rotationXYMatrix(re,wn,An),fr=S.apply2DTransform(Kn),Un=S.apply2DTransform2(Kn),Zn=+de.attr("width"),tr=+de.attr("height"),Br=wn-.5*Zn,$r=Br+Zn,vr=An-.5*tr,qn=vr+tr,gr=[[Br,vr,Br,qn],[Br,qn,$r,qn],[$r,qn,$r,vr],[$r,vr,Br,vr]].map(Un);if(!gr.reduce(function($o,Mo){return $o^!!S.segmentsIntersect(Nt,sn,Nt+1e6,sn+1e6,Mo[0],Mo[1],Mo[2],Mo[3])},!1)){gr.forEach(function($o){var Mo=S.segmentsIntersect(rn,_n,Nt,sn,$o[0],$o[1],$o[2],$o[3]);Mo&&(rn=Mo.x,_n=Mo.y)});var sr=T.arrowwidth,lr=T.arrowcolor,zr=T.arrowside,Vr=q.append("g").style({opacity:m.opacity(lr)}).classed("annotation-arrow-g",!0),eo=Vr.append("path").attr("d","M"+rn+","+_n+"L"+Nt+","+sn).style("stroke-width",sr+"px").call(m.stroke,m.rgb(lr));if(O(eo,zr,T),Q.annotationPosition&&eo.node().parentNode&&!A){var Jr=Nt,Yr=sn;if(T.standoff){var to=Math.sqrt(Math.pow(Nt-rn,2)+Math.pow(sn-_n,2));Jr+=T.standoff*(rn-Nt)/to,Yr+=T.standoff*(_n-sn)/to}var co,Fo,_o=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rn-Jr)+","+(_n-Yr),transform:w(Jr,Yr)}).style("stroke-width",sr+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");v.init({element:_o.node(),gd:M,prepFn:function(){var $o=a.getTranslate(pe);co=$o.x,Fo=$o.y,L&&L.autorange&&U(L._name+".autorange",!0),D&&D.autorange&&U(D._name+".autorange",!0)},moveFn:function($o,Mo){var pi=fr(co,Fo),Hn=pi[0]+$o,ar=pi[1]+Mo;pe.call(a.setTranslate,Hn,ar),X("x",x(L,$o,"x",$,T)),X("y",x(D,Mo,"y",$,T)),T.axref===T.xref&&X("ax",x(L,$o,"ax",$,T)),T.ayref===T.yref&&X("ay",x(D,Mo,"ay",$,T)),Vr.attr("transform",w($o,Mo)),Y.attr({transform:"rotate("+re+","+Hn+","+ar+")"})},doneFn:function(){b.call("_guiRelayout",M,te());var $o=document.querySelector(".js-notes-box-panel");$o&&$o.redraw($o.selectedObj)}})}}};T.showarrow&&en(0,0),ee&&v.init({element:pe.node(),gd:M,prepFn:function(){qt=Y.attr("transform")},moveFn:function(Jt,Zt){var Nt="pointer";if(T.showarrow)T.axref===T.xref?X("ax",x(L,Jt,"ax",$,T)):X("ax",T.ax+Jt),T.ayref===T.yref?X("ay",x(D,Zt,"ay",$.w,T)):X("ay",T.ay+Zt),en(Jt,Zt);else{if(A)return;var sn,rn;if(L)sn=x(L,Jt,"x",$,T);else{var _n=T._xsize/$.w,wn=T.x+(T._xshift-T.xshift)/$.w-_n/2;sn=v.align(wn+Jt/$.w,_n,0,1,T.xanchor)}if(D)rn=x(D,Zt,"y",$,T);else{var An=T._ysize/$.h,Kn=T.y-(T._yshift+T.yshift)/$.h-An/2;rn=v.align(Kn-Zt/$.h,An,0,1,T.yanchor)}X("x",sn),X("y",rn),L&&D||(Nt=v.getCursor(L?.5:sn,D?.5:rn,T.xanchor,T.yanchor))}Y.attr({transform:w(Jt,Zt)+qt}),p(pe,Nt)},clickFn:function(Jt,Zt){T.captureevents&&M.emit("plotly_clickannotation",Pe(Zt))},doneFn:function(){p(pe),b.call("_guiRelayout",M,te());var Jt=document.querySelector(".js-notes-box-panel");Jt&&Jt.redraw(Jt.selectedObj)}})}}}d.exports={draw:function(M){var T=M._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var P=0;P=0,A=c.indexOf("end")>=0,L=x.backoff*M+h.standoff,D=R.backoff*T+h.startstandoff;if(C.nodeName==="line"){p={x:+a.attr("x1"),y:+a.attr("y1")},v={x:+a.attr("x2"),y:+a.attr("y2")};var k=p.x-v.x,I=p.y-v.y;if(O=(_=Math.atan2(I,k))+Math.PI,L&&D&&L+D>Math.sqrt(k*k+I*I))return void q();if(L){if(L*L>k*k+I*I)return void q();var z=L*Math.cos(_),$=L*Math.sin(_);v.x+=z,v.y+=$,a.attr({x2:v.x,y2:v.y})}if(D){if(D*D>k*k+I*I)return void q();var Q=D*Math.cos(_),j=D*Math.sin(_);p.x-=Q,p.y-=j,a.attr({x1:p.x,y1:p.y})}}else if(C.nodeName==="path"){var U=C.getTotalLength(),X="";if(U1){h=!0;break}}h?S.fullLayout._infolayer.select(".annotation-"+S.id+'[data-index="'+a+'"]').remove():(c._pdata=b(S.glplot.cameraParams,[w.xaxis.r2l(c.x)*y[0],w.yaxis.r2l(c.y)*y[1],w.zaxis.r2l(c.z)*y[2]]),u(S.graphDiv,c,a,S.id,c._xa,c._ya))}}},56864:function(d,s,n){var u=n(24040),b=n(3400);d.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(45899)}}},layoutAttributes:n(45899),handleDefaults:n(52808),includeBasePlot:function(i,S){var w=u.subplotsRegistry.gl3d;if(w)for(var y=w.attrRegex,m=Object.keys(i),a=0;a=0)))return c;if(O===3)v[O]>1&&(v[O]=1);else if(v[O]>=1)return c}var C=Math.round(255*v[0])+", "+Math.round(255*v[1])+", "+Math.round(255*v[2]);return _?"rgba("+C+", "+v[3]+")":"rgb("+C+")"}S.tinyRGB=function(c){var h=c.toRgb();return"rgb("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+")"},S.rgb=function(c){return S.tinyRGB(u(c))},S.opacity=function(c){return c?u(c).getAlpha():0},S.addOpacity=function(c,h){var p=u(c).toRgb();return"rgba("+Math.round(p.r)+", "+Math.round(p.g)+", "+Math.round(p.b)+", "+h+")"},S.combine=function(c,h){var p=u(c).toRgb();if(p.a===1)return u(c).toRgbString();var v=u(h||m).toRgb(),_=v.a===1?v:{r:255*(1-v.a)+v.r*v.a,g:255*(1-v.a)+v.g*v.a,b:255*(1-v.a)+v.b*v.a},O={r:_.r*(1-p.a)+p.r*p.a,g:_.g*(1-p.a)+p.g*p.a,b:_.b*(1-p.a)+p.b*p.a};return u(O).toRgbString()},S.contrast=function(c,h,p){var v=u(c);return v.getAlpha()!==1&&(v=u(S.combine(c,m))),(v.isDark()?h?v.lighten(h):m:p?v.darken(p):y).toString()},S.stroke=function(c,h){var p=u(h);c.style({stroke:S.tinyRGB(p),"stroke-opacity":p.getAlpha()})},S.fill=function(c,h){var p=u(h);c.style({fill:S.tinyRGB(p),"fill-opacity":p.getAlpha()})},S.clean=function(c){if(c&&typeof c=="object"){var h,p,v,_,O=Object.keys(c);for(h=0;h0?Dt>=qt:Dt<=qt));it++)Dt>Jt&&Dt0?Dt>=qt:Dt<=qt));it++)Dt>Vt[0]&&Dt1){var tn=Math.pow(10,Math.floor(Math.log(ln)/Math.LN10));zt*=tn*m.roundUp(ln/tn,[2,5,10]),(Math.abs(Oe.start)/Oe.size+1e-6)%1<2e-6&&(St.tick0=0)}St.dtick=zt}St.domain=te?[ht+ce/Te.h,ht+Je-ce/Te.h]:[ht+ae/Te.w,ht+Je-ae/Te.w],St.setScale(),j.attr("transform",a(Math.round(Te.l),Math.round(Te.t)));var Et,Ot=j.select("."+D.cbtitleunshift).attr("transform",a(-Math.round(Te.l),-Math.round(Te.t))),cn=St.ticklabelposition,Cn=St.title.font.size,Pn=j.select("."+D.cbaxis),Sn=0,vt=0;function xt(st,bt){var Vt={propContainer:St,propName:U._propPrefix+"title",traceIndex:U._traceIndex,_meta:U._meta,placeholder:we._dfltTitle.colorbar,containerGroup:j.select("."+D.cbtitle)},Dt=st.charAt(0)==="h"?st.substr(1):"h"+st;j.selectAll("."+Dt+",."+Dt+"-math-group").remove(),_.draw(X,st,c(Vt,bt||{}))}return m.syncOrAsync([i.previousPromises,function(){var st,bt;(te&&Ft||!te&&!Ft)&&(De==="top"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht-Je)+3+.75*Cn),De==="bottom"&&(st=ae+Te.l+Me*de,bt=ce+Te.t+Fe*(1-ht)-3-.25*Cn),De==="right"&&(bt=ce+Te.t+Fe*ye+3+.75*Cn,st=ae+Te.l+Me*ht),xt(St._id+"title",{attributes:{x:st,y:bt,"text-anchor":te?"start":"middle"}}))},function(){if(!te&&!Ft||te&&Ft){var st,bt=j.select("."+D.cbtitle),Vt=bt.select("text"),Dt=[-Y/2,Y/2],it=bt.select(".h"+St._id+"title-math-group").node(),at=15.6;if(Vt.node()&&(at=parseInt(Vt.node().style.fontSize,10)*P),it?(st=p.bBox(it),vt=st.width,(Sn=st.height)>at&&(Dt[1]-=(Sn-at)/2)):Vt.node()&&!Vt.classed(D.jsPlaceholder)&&(st=p.bBox(Vt.node()),vt=st.width,Sn=st.height),te){if(Sn){if(Sn+=5,De==="top")St.domain[1]-=Sn/Te.h,Dt[1]*=-1;else{St.domain[0]+=Sn/Te.h;var Bt=O.lineCount(Vt);Dt[1]+=(1-Bt)*at}bt.attr("transform",a(Dt[0],Dt[1])),St.setScale()}}else vt&&(De==="right"&&(St.domain[0]+=(vt+Cn/2)/Te.w),bt.attr("transform",a(Dt[0],Dt[1])),St.setScale())}j.selectAll("."+D.cbfills+",."+D.cblines).attr("transform",te?a(0,Math.round(Te.h*(1-St.domain[1]))):a(Math.round(Te.w*St.domain[0]),0)),Pn.attr("transform",te?a(0,Math.round(-Te.t)):a(Math.round(-Te.l),0));var _t=j.select("."+D.cbfills).selectAll("rect."+D.cbfill).attr("style","").data(Re);_t.enter().append("rect").classed(D.cbfill,!0).attr("style",""),_t.exit().remove();var qt=Qe.map(St.c2p).map(Math.round).sort(function(sn,rn){return sn-rn});_t.each(function(sn,rn){var _n=[rn===0?Qe[0]:(Re[rn]+Re[rn-1])/2,rn===Re.length-1?Qe[1]:(Re[rn]+Re[rn+1])/2].map(St.c2p).map(Math.round);te&&(_n[1]=m.constrain(_n[1]+(_n[1]>_n[0])?1:-1,qt[0],qt[1]));var wn=u.select(this).attr(te?"x":"y",je).attr(te?"y":"x",u.min(_n)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(u.max(_n)-u.min(_n),2));if(U._fillgradient)p.gradient(wn,X,U._id,te?"vertical":"horizontalreversed",U._fillgradient,"fill");else{var An=$e(sn).replace("e-","");wn.attr("fill",b(An).toHexString())}});var en=j.select("."+D.cblines).selectAll("path."+D.cbline).data(Ie.color&&Ie.width?We:[]);en.enter().append("path").classed(D.cbline,!0),en.exit().remove(),en.each(function(sn){var rn=je,_n=Math.round(St.c2p(sn))+Ie.width/2%1;u.select(this).attr("d","M"+(te?rn+","+_n:_n+","+rn)+(te?"h":"v")+Ue).call(p.lineGroupStyle,Ie.width,Ve(sn),Ie.dash)}),Pn.selectAll("g."+St._id+"tick,path").remove();var Jt=je+Ue+(Y||0)/2-(U.ticks==="outside"?1:0),Zt=w.calcTicks(St),Nt=w.getTickSigns(St)[2];return w.drawTicks(X,St,{vals:St.ticks==="inside"?w.clipEnds(St,Zt):Zt,layer:Pn,path:w.makeTickPath(St,Jt,Nt),transFn:w.makeTransTickFn(St)}),w.drawLabels(X,St,{vals:Zt,layer:Pn,transFn:w.makeTransTickLabelFn(St),labelFns:w.makeLabelFns(St,Jt)})},function(){if(te&&!Ft||!te&&Ft){var st,bt,Vt=St.position||0,Dt=St._offset+St._length/2;if(De==="right")bt=Dt,st=Te.l+Me*Vt+10+Cn*(St.showticklabels?1:.5);else if(st=Dt,De==="bottom"&&(bt=Te.t+Fe*Vt+10+(cn.indexOf("inside")===-1?St.tickfont.size:0)+(St.ticks!=="intside"&&U.ticklen||0)),De==="top"){var it=ze.text.split("
    ").length;bt=Te.t+Fe*Vt+10-Ue-P*Cn*it}xt((te?"h":"v")+St._id+"title",{avoid:{selection:u.select(X).selectAll("g."+St._id+"tick"),side:De,offsetTop:te?0:Te.t,offsetLeft:te?Te.l:0,maxShift:te?we.width:we.height},attributes:{x:st,y:bt,"text-anchor":"middle"},transform:{rotate:te?-90:0,offset:0}})}},i.previousPromises,function(){var st,bt=Ue+Y/2;cn.indexOf("inside")===-1&&(st=p.bBox(Pn.node()),bt+=te?st.width:st.height),Et=Ot.select("text");var Vt=0,Dt=te&&De==="top",it=!te&&De==="right",at=0;if(Et.node()&&!Et.classed(D.jsPlaceholder)){var Bt,_t=Ot.select(".h"+St._id+"title-math-group").node();_t&&(te&&Ft||!te&&!Ft)?(Vt=(st=p.bBox(_t)).width,Bt=st.height):(Vt=(st=p.bBox(Ot.node())).right-Te.l-(te?je:pt),Bt=st.bottom-Te.t-(te?pt:je),te||De!=="top"||(bt+=st.height,at=st.height)),it&&(Et.attr("transform",a(Vt/2+Cn/2,0)),Vt*=2),bt=Math.max(bt,te?Vt:Bt)}var qt=2*(te?ae:ce)+bt+ee+Y/2,en=0;!te&&ze.text&&se==="bottom"&&ye<=0&&(qt+=en=qt/2,at+=en),we._hColorbarMoveTitle=en,we._hColorbarMoveCBTitle=at;var Jt=ee+Y,Zt=(te?je:pt)-Jt/2-(te?ae:0),Nt=(te?pt:je)-(te?Ye:ce+at-en);j.select("."+D.cbbg).attr("x",Zt).attr("y",Nt).attr(te?"width":"height",Math.max(qt-en,2)).attr(te?"height":"width",Math.max(Ye+Jt,2)).call(v.fill,me).call(v.stroke,U.bordercolor).style("stroke-width",ee);var sn=it?Math.max(Vt-10,0):0;j.selectAll("."+D.cboutline).attr("x",(te?je:pt+ae)+sn).attr("y",(te?pt+ce-Ye:je)+(Dt?Sn:0)).attr(te?"width":"height",Math.max(Ue,2)).attr(te?"height":"width",Math.max(Ye-(te?2*ce+Sn:2*ae+sn),2)).call(v.stroke,U.outlinecolor).style({fill:"none","stroke-width":Y});var rn=te?tt*qt:0,_n=te?0:(1-ot)*qt-at;if(rn=_e?Te.l-rn:-rn,_n=ve?Te.t-_n:-_n,j.attr("transform",a(rn,_n)),!te&&(ee||b(me).getAlpha()&&!b.equals(we.paper_bgcolor,me))){var wn=Pn.selectAll("text"),An=wn[0].length,Kn=j.select("."+D.cbbg).node(),fr=p.bBox(Kn),Un=p.getTranslate(j);wn.each(function(zr,Vr){var eo=An-1;if(Vr===0||Vr===eo){var Jr,Yr=p.bBox(this),to=p.getTranslate(this);if(Vr===eo){var co=Yr.right+to.x;(Jr=fr.right+Un.x+pt-ee-2+de-co)>0&&(Jr=0)}else if(Vr===0){var Fo=Yr.left+to.x;(Jr=fr.left+Un.x+pt+ee+2-Fo)<0&&(Jr=0)}Jr&&(An<3?this.setAttribute("transform","translate("+Jr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Zn={},tr=A[pe],Br=L[pe],$r=A[se],vr=L[se],qn=qt-Ue;te?(K==="pixels"?(Zn.y=ye,Zn.t=Ye*$r,Zn.b=Ye*vr):(Zn.t=Zn.b=0,Zn.yt=ye+Z*$r,Zn.yb=ye-Z*vr),q==="pixels"?(Zn.x=de,Zn.l=qt*tr,Zn.r=qt*Br):(Zn.l=qn*tr,Zn.r=qn*Br,Zn.xl=de-re*tr,Zn.xr=de+re*Br)):(K==="pixels"?(Zn.x=de,Zn.l=Ye*tr,Zn.r=Ye*Br):(Zn.l=Zn.r=0,Zn.xl=de+Z*tr,Zn.xr=de-Z*Br),q==="pixels"?(Zn.y=1-ye,Zn.t=qt*$r,Zn.b=qt*vr):(Zn.t=qn*$r,Zn.b=qn*vr,Zn.yt=ye-re*$r,Zn.yb=ye+re*vr));var gr=U.y<.5?"b":"t",sr=U.x<.5?"l":"r";X._fullLayout._reservedMargin[U._id]={};var lr={r:we.width-Zt-rn,l:Zt+Zn.r,b:we.height-Nt-_n,t:Nt+Zn.b};_e&&ve?i.autoMargin(X,U._id,Zn):_e?X._fullLayout._reservedMargin[U._id][gr]=lr[gr]:ve||te?X._fullLayout._reservedMargin[U._id][sr]=lr[sr]:X._fullLayout._reservedMargin[U._id][gr]=lr[gr]}],X)}($,z,k);Q&&Q.then&&(k._promises||[]).push(Q),k._context.edits.colorbarPosition&&function(j,U,X){var te,Z,K,re=U.orientation==="v",q=X._fullLayout._size;y.init({element:j.node(),gd:X,prepFn:function(){te=j.attr("transform"),h(j)},moveFn:function(Y,ee){j.attr("transform",te+a(Y,ee)),Z=y.align((re?U._uFrac:U._vFrac)+Y/q.w,re?U._thickFrac:U._lenFrac,0,1,U.xanchor),K=y.align((re?U._vFrac:1-U._uFrac)-ee/q.h,re?U._lenFrac:U._thickFrac,0,1,U.yanchor);var me=y.getCursor(Z,K,U.xanchor,U.yanchor);h(j,me)},doneFn:function(){if(h(j),Z!==void 0&&K!==void 0){var Y={};Y[U._propPrefix+"x"]=Z,Y[U._propPrefix+"y"]=K,U._traceIndex!==void 0?S.call("_guiRestyle",X,Y,U._traceIndex):S.call("_guiRelayout",X,Y)}}})}($,z,k)}),I.exit().each(function(z){i.autoMargin(k,z._id)}).remove(),I.order()}}},90553:function(d,s,n){var u=n(3400);d.exports=function(b){return u.isPlainObject(b.colorbar)}},55080:function(d,s,n){d.exports={moduleType:"component",name:"colorbar",attributes:n(42996),supplyDefaults:n(64013),draw:n(37848).draw,hasColorbar:n(90553)}},49084:function(d,s,n){var u=n(42996),b=n(53756).counter,i=n(95376),S=n(88304).scales;function w(y){return"`"+y+"`"}i(S),d.exports=function(y,m){y=y||"";var a,c=(m=m||{}).cLetter||"c",h=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:y==="marker.line"),p="showScaleDflt"in m?m.showScaleDflt:c==="z",v=typeof m.colorscaleDflt=="string"?S[m.colorscaleDflt]:null,_=m.editTypeOverride||"",O=y?y+".":"";"colorAttr"in m?(a=m.colorAttr,m.colorAttr):w(O+(a={z:"z",c:"color"}[c]));var C=c+"auto",x=c+"min",R=c+"max",M=c+"mid",T={};T[x]=T[R]=void 0;var P={};P[C]=!1;var A={};return a==="color"&&(A.color={valType:"color",arrayOk:!0,editType:_||"style"},m.anim&&(A.color.anim=!0)),A[C]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[R]={valType:"number",dflt:null,editType:_||"plot",impliedEdits:P},A[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:v,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},h||(A.showscale={valType:"boolean",dflt:p,editType:"calc"},A.colorbar=u),m.noColorAxis||(A.coloraxis={valType:"subplotid",regex:b("coloraxis"),dflt:null,editType:"calc"}),A}},47128:function(d,s,n){var u=n(38248),b=n(3400),i=n(94288).extractOpts;d.exports=function(S,w,y){var m,a=S._fullLayout,c=y.vals,h=y.containerStr,p=h?b.nestedProperty(w,h).get():w,v=i(p),_=v.auto!==!1,O=v.min,C=v.max,x=v.mid,R=function(){return b.aggNums(Math.min,null,c)},M=function(){return b.aggNums(Math.max,null,c)};O===void 0?O=R():_&&(O=p._colorAx&&u(O)?Math.min(O,R()):R()),C===void 0?C=M():_&&(C=p._colorAx&&u(C)?Math.max(C,M()):M()),_&&x!==void 0&&(C-x>x-O?O=x-(C-x):C-x=0?a.colorscale.sequential:a.colorscale.sequentialminus,v._sync("colorscale",m))}},95504:function(d,s,n){var u=n(3400),b=n(94288).hasColorscale,i=n(94288).extractOpts;d.exports=function(S,w){function y(_,O){var C=_["_"+O];C!==void 0&&(_[O]=C)}function m(_,O){var C=O.container?u.nestedProperty(_,O.container).get():_;if(C)if(C.coloraxis)C._colorAx=w[C.coloraxis];else{var x=i(C),R=x.auto;(R||x.min===void 0)&&y(C,O.min),(R||x.max===void 0)&&y(C,O.max),x.autocolorscale&&y(C,"colorscale")}}for(var a=0;a=0;R--,M++){var T=O[R];x[M]=[1-T[0],T[1]]}return x}function v(O,C){C=C||{};for(var x=O.domain,R=O.range,M=R.length,T=new Array(M),P=0;P1.3333333333333333-y?w:y}},67416:function(d,s,n){var u=n(3400),b=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];d.exports=function(i,S,w,y){return i=w==="left"?0:w==="center"?1:w==="right"?2:u.constrain(Math.floor(3*i),0,2),S=y==="bottom"?0:y==="middle"?1:y==="top"?2:u.constrain(Math.floor(3*S),0,2),b[S][i]}},72760:function(d,s){s.selectMode=function(n){return n==="lasso"||n==="select"},s.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.openMode=function(n){return n==="drawline"||n==="drawopenpath"},s.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},s.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},s.selectingOrDrawing=function(n){return s.freeMode(n)||s.rectMode(n)}},86476:function(d,s,n){var u=n(29128),b=n(52264),i=n(89184),S=n(3400).removeElement,w=n(33816),y=d.exports={};y.align=n(78316),y.getCursor=n(67416);var m=n(2616);function a(){var h=document.createElement("div");h.className="dragcover";var p=h.style;return p.position="fixed",p.left=0,p.right=0,p.top=0,p.bottom=0,p.zIndex=999999999,p.background="none",document.body.appendChild(h),h}function c(h){return u(h.changedTouches?h.changedTouches[0]:h,document.body)}y.unhover=m.wrapped,y.unhoverRaw=m.raw,y.init=function(h){var p,v,_,O,C,x,R,M,T=h.gd,P=1,A=T._context.doubleClickDelay,L=h.element;T._mouseDownTime||(T._mouseDownTime=0),L.style.pointerEvents="all",L.onmousedown=k,i?(L._ontouchstart&&L.removeEventListener("touchstart",L._ontouchstart),L._ontouchstart=k,L.addEventListener("touchstart",k,{passive:!1})):L.ontouchstart=k;var D=h.clampFn||function($,Q,j){return Math.abs($)A&&(P=Math.max(P-1,1)),T._dragged)h.doneFn&&h.doneFn();else if(h.clickFn&&h.clickFn(P,x),!M){var Q;try{Q=new MouseEvent("click",$)}catch{var j=c($);(Q=document.createEvent("MouseEvents")).initMouseEvent("click",$.bubbles,$.cancelable,$.view,$.detail,$.screenX,$.screenY,j[0],j[1],$.ctrlKey,$.altKey,$.shiftKey,$.metaKey,$.button,$.relatedTarget)}R.dispatchEvent(Q)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},y.coverSlip=a},2616:function(d,s,n){var u=n(95924),b=n(91200),i=n(52200).getGraphDiv,S=n(92456),w=d.exports={};w.wrapped=function(y,m,a){(y=i(y))._fullLayout&&b.clear(y._fullLayout._uid+S.HOVERID),w.raw(y,m,a)},w.raw=function(y,m){var a=y._fullLayout,c=y._hoverdata;m||(m={}),m.target&&!y._dragged&&u.triggerHandler(y,"plotly_beforehover",m)===!1||(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),y._hoverdata=void 0,m.target&&c&&y.emit("plotly_unhover",{event:m,points:c}))}},98192:function(d,s){s.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},s.c={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},43616:function(d,s,n){var u=n(33428),b=n(3400),i=b.numberFormat,S=n(38248),w=n(49760),y=n(24040),m=n(76308),a=n(8932),c=b.strTranslate,h=n(72736),p=n(9616),v=n(84284).LINE_SPACING,_=n(13448).DESELECTDIM,O=n(43028),C=n(7152),x=n(10624).appendArrayPointValue,R=d.exports={};function M(Ve,$e,Oe){var ke=$e.fillpattern,Re=ke&&R.getPatternAttr(ke.shape,0,"");if(Re){var We=R.getPatternAttr(ke.bgcolor,0,null),Ue=R.getPatternAttr(ke.fgcolor,0,null),Ze=ke.fgopacity,Ye=R.getPatternAttr(ke.size,0,8),Je=R.getPatternAttr(ke.solidity,0,.3),Me=$e.uid;R.pattern(Ve,"point",Oe,Me,Re,Ye,Je,void 0,ke.fillmode,We,Ue,Ze)}else $e.fillcolor&&Ve.call(m.fill,$e.fillcolor)}R.font=function(Ve,$e,Oe,ke){b.isPlainObject($e)&&(ke=$e.color,Oe=$e.size,$e=$e.family),$e&&Ve.style("font-family",$e),Oe+1&&Ve.style("font-size",Oe+"px"),ke&&Ve.call(m.fill,ke)},R.setPosition=function(Ve,$e,Oe){Ve.attr("x",$e).attr("y",Oe)},R.setSize=function(Ve,$e,Oe){Ve.attr("width",$e).attr("height",Oe)},R.setRect=function(Ve,$e,Oe,ke,Re){Ve.call(R.setPosition,$e,Oe).call(R.setSize,ke,Re)},R.translatePoint=function(Ve,$e,Oe,ke){var Re=Oe.c2p(Ve.x),We=ke.c2p(Ve.y);return!!(S(Re)&&S(We)&&$e.node())&&($e.node().nodeName==="text"?$e.attr("x",Re).attr("y",We):$e.attr("transform",c(Re,We)),!0)},R.translatePoints=function(Ve,$e,Oe){Ve.each(function(ke){var Re=u.select(this);R.translatePoint(ke,Re,$e,Oe)})},R.hideOutsideRangePoint=function(Ve,$e,Oe,ke,Re,We){$e.attr("display",Oe.isPtWithinRange(Ve,Re)&&ke.isPtWithinRange(Ve,We)?null:"none")},R.hideOutsideRangePoints=function(Ve,$e){if($e._hasClipOnAxisFalse){var Oe=$e.xaxis,ke=$e.yaxis;Ve.each(function(Re){var We=Re[0].trace,Ue=We.xcalendar,Ze=We.ycalendar,Ye=y.traceIs(We,"bar-like")?".bartext":".point,.textpoint";Ve.selectAll(Ye).each(function(Je){R.hideOutsideRangePoint(Je,u.select(this),Oe,ke,Ue,Ze)})})}},R.crispRound=function(Ve,$e,Oe){return $e&&S($e)?Ve._context.staticPlot?$e:$e<1?1:Math.round($e):Oe||0},R.singleLineStyle=function(Ve,$e,Oe,ke,Re){$e.style("fill","none");var We=(((Ve||[])[0]||{}).trace||{}).line||{},Ue=Oe||We.width||0,Ze=Re||We.dash||"";m.stroke($e,ke||We.color),R.dashLine($e,Ze,Ue)},R.lineGroupStyle=function(Ve,$e,Oe,ke){Ve.style("fill","none").each(function(Re){var We=(((Re||[])[0]||{}).trace||{}).line||{},Ue=$e||We.width||0,Ze=ke||We.dash||"";u.select(this).call(m.stroke,Oe||We.color).call(R.dashLine,Ze,Ue)})},R.dashLine=function(Ve,$e,Oe){Oe=+Oe||0,$e=R.dashStyle($e,Oe),Ve.style({"stroke-dasharray":$e,"stroke-width":Oe+"px"})},R.dashStyle=function(Ve,$e){$e=+$e||1;var Oe=Math.max($e,3);return Ve==="solid"?Ve="":Ve==="dot"?Ve=Oe+"px,"+Oe+"px":Ve==="dash"?Ve=3*Oe+"px,"+3*Oe+"px":Ve==="longdash"?Ve=5*Oe+"px,"+5*Oe+"px":Ve==="dashdot"?Ve=3*Oe+"px,"+Oe+"px,"+Oe+"px,"+Oe+"px":Ve==="longdashdot"&&(Ve=5*Oe+"px,"+2*Oe+"px,"+Oe+"px,"+2*Oe+"px"),Ve},R.singleFillStyle=function(Ve,$e){var Oe=u.select(Ve.node());M(Ve,((Oe.data()[0]||[])[0]||{}).trace||{},$e)},R.fillGroupStyle=function(Ve,$e){Ve.style("stroke-width",0).each(function(Oe){var ke=u.select(this);Oe[0].trace&&M(ke,Oe[0].trace,$e)})};var T=n(71984);R.symbolNames=[],R.symbolFuncs=[],R.symbolBackOffs=[],R.symbolNeedLines={},R.symbolNoDot={},R.symbolNoFill={},R.symbolList=[],Object.keys(T).forEach(function(Ve){var $e=T[Ve],Oe=$e.n;R.symbolList.push(Oe,String(Oe),Ve,Oe+100,String(Oe+100),Ve+"-open"),R.symbolNames[Oe]=Ve,R.symbolFuncs[Oe]=$e.f,R.symbolBackOffs[Oe]=$e.backoff||0,$e.needLine&&(R.symbolNeedLines[Oe]=!0),$e.noDot?R.symbolNoDot[Oe]=!0:R.symbolList.push(Oe+200,String(Oe+200),Ve+"-dot",Oe+300,String(Oe+300),Ve+"-open-dot"),$e.noFill&&(R.symbolNoFill[Oe]=!0)});var P=R.symbolNames.length;function A(Ve,$e,Oe,ke){var Re=Ve%100;return R.symbolFuncs[Re]($e,Oe,ke)+(Ve>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}R.symbolNumber=function(Ve){if(S(Ve))Ve=+Ve;else if(typeof Ve=="string"){var $e=0;Ve.indexOf("-open")>0&&($e=100,Ve=Ve.replace("-open","")),Ve.indexOf("-dot")>0&&($e+=200,Ve=Ve.replace("-dot","")),(Ve=R.symbolNames.indexOf(Ve))>=0&&(Ve+=$e)}return Ve%100>=P||Ve>=400?0:Math.floor(Math.max(Ve,0))};var L={x1:1,x2:0,y1:0,y2:0},D={x1:0,x2:0,y1:1,y2:0},k=i("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:D},verticalreversed:{node:"linearGradient",attrs:D,reversed:!0}};R.gradient=function(Ve,$e,Oe,ke,Re,We){for(var Ue=Re.length,Ze=I[ke],Ye=new Array(Ue),Je=0;Je=0&&Ve.i===void 0&&(Ve.i=We.i),$e.style("opacity",ke.selectedOpacityFn?ke.selectedOpacityFn(Ve):Ve.mo===void 0?Ue.opacity:Ve.mo),ke.ms2mrc){var Ye;Ye=Ve.ms==="various"||Ue.size==="various"?3:ke.ms2mrc(Ve.ms),Ve.mrc=Ye,ke.selectedSizeFn&&(Ye=Ve.mrc=ke.selectedSizeFn(Ve));var Je=R.symbolNumber(Ve.mx||Ue.symbol)||0;Ve.om=Je%200>=100;var Me=Qe(Ve,Oe),Fe=ce(Ve,Oe);$e.attr("d",A(Je,Ye,Me,Fe))}var je,tt,ot,Ge=!1;if(Ve.so)ot=Ze.outlierwidth,tt=Ze.outliercolor,je=Ue.outliercolor;else{var ht=(Ze||{}).width;ot=(Ve.mlw+1||ht+1||(Ve.trace?(Ve.trace.marker.line||{}).width:0)+1)-1||0,tt="mlc"in Ve?Ve.mlcc=ke.lineScale(Ve.mlc):b.isArrayOrTypedArray(Ze.color)?m.defaultLine:Ze.color,b.isArrayOrTypedArray(Ue.color)&&(je=m.defaultLine,Ge=!0),je="mc"in Ve?Ve.mcc=ke.markerScale(Ve.mc):Ue.color||Ue.colors||"rgba(0,0,0,0)",ke.selectedColorFn&&(je=ke.selectedColorFn(Ve))}if(Ve.om)$e.call(m.stroke,je).style({"stroke-width":(ot||1)+"px",fill:"none"});else{$e.style("stroke-width",(Ve.isBlank?0:ot)+"px");var pt=Ue.gradient,St=Ve.mgt;St?Ge=!0:St=pt&&pt.type,b.isArrayOrTypedArray(St)&&(St=St[0],I[St]||(St=0));var Ft=Ue.pattern,zt=Ft&&R.getPatternAttr(Ft.shape,Ve.i,"");if(St&&St!=="none"){var Yt=Ve.mgc;Yt?Ge=!0:Yt=pt.color;var ln=Oe.uid;Ge&&(ln+="-"+Ve.i),R.gradient($e,Re,ln,St,[[0,Yt],[1,je]],"fill")}else if(zt){var tn=!1,Et=Ft.fgcolor;!Et&&We&&We.color&&(Et=We.color,tn=!0);var Ot=R.getPatternAttr(Et,Ve.i,We&&We.color||null),cn=R.getPatternAttr(Ft.bgcolor,Ve.i,null),Cn=Ft.fgopacity,Pn=R.getPatternAttr(Ft.size,Ve.i,8),Sn=R.getPatternAttr(Ft.solidity,Ve.i,.3);tn=tn||Ve.mcc||b.isArrayOrTypedArray(Ft.shape)||b.isArrayOrTypedArray(Ft.bgcolor)||b.isArrayOrTypedArray(Ft.fgcolor)||b.isArrayOrTypedArray(Ft.size)||b.isArrayOrTypedArray(Ft.solidity);var vt=Oe.uid;tn&&(vt+="-"+Ve.i),R.pattern($e,"point",Re,vt,zt,Pn,Sn,Ve.mcc,Ft.fillmode,cn,Ot,Cn)}else b.isArrayOrTypedArray(je)?m.fill($e,je[Ve.i]):m.fill($e,je);ot&&m.stroke($e,tt)}},R.makePointStyleFns=function(Ve){var $e={},Oe=Ve.marker;return $e.markerScale=R.tryColorscale(Oe,""),$e.lineScale=R.tryColorscale(Oe,"line"),y.traceIs(Ve,"symbols")&&($e.ms2mrc=O.isBubble(Ve)?C(Ve):function(){return(Oe.size||6)/2}),Ve.selectedpoints&&b.extendFlat($e,R.makeSelectedPointStyleFns(Ve)),$e},R.makeSelectedPointStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.marker||{},We=Oe.marker||{},Ue=ke.marker||{},Ze=Re.opacity,Ye=We.opacity,Je=Ue.opacity,Me=Ye!==void 0,Fe=Je!==void 0;(b.isArrayOrTypedArray(Ze)||Me||Fe)&&($e.selectedOpacityFn=function(zt){var Yt=zt.mo===void 0?Re.opacity:zt.mo;return zt.selected?Me?Ye:Yt:Fe?Je:_*Yt});var je=Re.color,tt=We.color,ot=Ue.color;(tt||ot)&&($e.selectedColorFn=function(zt){var Yt=zt.mcc||je;return zt.selected?tt||Yt:ot||Yt});var Ge=Re.size,ht=We.size,pt=Ue.size,St=ht!==void 0,Ft=pt!==void 0;return y.traceIs(Ve,"symbols")&&(St||Ft)&&($e.selectedSizeFn=function(zt){var Yt=zt.mrc||Ge/2;return zt.selected?St?ht/2:Yt:Ft?pt/2:Yt}),$e},R.makeSelectedTextStyleFns=function(Ve){var $e={},Oe=Ve.selected||{},ke=Ve.unselected||{},Re=Ve.textfont||{},We=Oe.textfont||{},Ue=ke.textfont||{},Ze=Re.color,Ye=We.color,Je=Ue.color;return $e.selectedTextColorFn=function(Me){var Fe=Me.tc||Ze;return Me.selected?Ye||Fe:Je||(Ye?Fe:m.addOpacity(Fe,_))},$e},R.selectedPointStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedPointStyleFns($e),ke=$e.marker||{},Re=[];Oe.selectedOpacityFn&&Re.push(function(We,Ue){We.style("opacity",Oe.selectedOpacityFn(Ue))}),Oe.selectedColorFn&&Re.push(function(We,Ue){m.fill(We,Oe.selectedColorFn(Ue))}),Oe.selectedSizeFn&&Re.push(function(We,Ue){var Ze=Ue.mx||ke.symbol||0,Ye=Oe.selectedSizeFn(Ue);We.attr("d",A(R.symbolNumber(Ze),Ye,Qe(Ue,$e),ce(Ue,$e))),Ue.mrc2=Ye}),Re.length&&Ve.each(function(We){for(var Ue=u.select(this),Ze=0;Ze0?Oe:0}function X(Ve,$e,Oe){return Oe&&(Ve=Y(Ve)),$e?Z(Ve[1]):te(Ve[0])}function te(Ve){var $e=u.round(Ve,2);return z=$e,$e}function Z(Ve){var $e=u.round(Ve,2);return $=$e,$e}function K(Ve,$e,Oe,ke){var Re=Ve[0]-$e[0],We=Ve[1]-$e[1],Ue=Oe[0]-$e[0],Ze=Oe[1]-$e[1],Ye=Math.pow(Re*Re+We*We,.25),Je=Math.pow(Ue*Ue+Ze*Ze,.25),Me=(Je*Je*Re-Ye*Ye*Ue)*ke,Fe=(Je*Je*We-Ye*Ye*Ze)*ke,je=3*Je*(Ye+Je),tt=3*Ye*(Ye+Je);return[[te($e[0]+(je&&Me/je)),Z($e[1]+(je&&Fe/je))],[te($e[0]-(tt&&Me/tt)),Z($e[1]-(tt&&Fe/tt))]]}R.textPointStyle=function(Ve,$e,Oe){if(Ve.size()){var ke;if($e.selectedpoints){var Re=R.makeSelectedTextStyleFns($e);ke=Re.selectedTextColorFn}var We=$e.texttemplate,Ue=Oe._fullLayout;Ve.each(function(Ze){var Ye=u.select(this),Je=We?b.extractOption(Ze,$e,"txt","texttemplate"):b.extractOption(Ze,$e,"tx","text");if(Je||Je===0){if(We){var Me=$e._module.formatLabels,Fe=Me?Me(Ze,$e,Ue):{},je={};x(je,$e,Ze.i);var tt=$e._meta||{};Je=b.texttemplateString(Je,Fe,Ue._d3locale,je,Ze,tt)}var ot=Ze.tp||$e.textposition,Ge=U(Ze,$e),ht=ke?ke(Ze):Ze.tc||$e.textfont.color;Ye.call(R.font,Ze.tf||$e.textfont.family,Ge,ht).text(Je).call(h.convertToTspans,Oe).call(j,ot,Ge,Ze.mrc)}else Ye.remove()})}},R.selectedTextStyle=function(Ve,$e){if(Ve.size()&&$e.selectedpoints){var Oe=R.makeSelectedTextStyleFns($e);Ve.each(function(ke){var Re=u.select(this),We=Oe.selectedTextColorFn(ke),Ue=ke.tp||$e.textposition,Ze=U(ke,$e);m.fill(Re,We);var Ye=y.traceIs($e,"bar-like");j(Re,Ue,Ze,ke.mrc2||ke.mrc,Ye)})}},R.smoothopen=function(Ve,$e){if(Ve.length<3)return"M"+Ve.join("L");var Oe,ke="M"+Ve[0],Re=[];for(Oe=1;Oe=Ye||zt>=Me&&zt<=Ye)&&(Yt<=Fe&&Yt>=Je||Yt>=Fe&&Yt<=Je)&&(Ve=[zt,Yt])}return Ve}R.steps=function(Ve){var $e=re[Ve]||q;return function(Oe){for(var ke="M"+te(Oe[0][0])+","+Z(Oe[0][1]),Re=Oe.length,We=1;We=1e4&&(R.savedBBoxes={},ee=0),Oe&&(R.savedBBoxes[Oe]=tt),ee++,b.extendFlat({},tt)},R.setClipUrl=function(Ve,$e,Oe){Ve.attr("clip-path",pe($e,Oe))},R.getTranslate=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||0,y:+$e[1]||0}},R.setTranslate=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||0,Oe=Oe||0,We=We.replace(/(\btranslate\(.*?\);?)/,"").trim(),We=(We+=c($e,Oe)).trim(),Ve[Re]("transform",We),We},R.getScale=function(Ve){var $e=(Ve[Ve.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Oe,ke,Re){return[ke,Re].join(" ")}).split(" ");return{x:+$e[0]||1,y:+$e[1]||1}},R.setScale=function(Ve,$e,Oe){var ke=Ve.attr?"attr":"getAttribute",Re=Ve.attr?"attr":"setAttribute",We=Ve[ke]("transform")||"";return $e=$e||1,Oe=Oe||1,We=We.replace(/(\bscale\(.*?\);?)/,"").trim(),We=(We+="scale("+$e+","+Oe+")").trim(),Ve[Re]("transform",We),We};var se=/\s*sc.*/;R.setPointGroupScale=function(Ve,$e,Oe){if($e=$e||1,Oe=Oe||1,Ve){var ke=$e===1&&Oe===1?"":"scale("+$e+","+Oe+")";Ve.each(function(){var Re=(this.getAttribute("transform")||"").replace(se,"");Re=(Re+=ke).trim(),this.setAttribute("transform",Re)})}};var ae=/translate\([^)]*\)\s*$/;function ce(Ve,$e){var Oe;return Ve&&(Oe=Ve.mf),Oe===void 0&&(Oe=$e.marker&&$e.marker.standoff||0),$e._geo||$e._xA?Oe:-Oe}R.setTextPointsScale=function(Ve,$e,Oe){Ve&&Ve.each(function(){var ke,Re=u.select(this),We=Re.select("text");if(We.node()){var Ue=parseFloat(We.attr("x")||0),Ze=parseFloat(We.attr("y")||0),Ye=(Re.attr("transform")||"").match(ae);ke=$e===1&&Oe===1?[]:[c(Ue,Ze),"scale("+$e+","+Oe+")",c(-Ue,-Ze)],Ye&&ke.push(Ye),Re.attr("transform",ke.join(""))}})},R.getMarkerStandoff=ce;var de,ye,ve,_e,we,Te,Pe=Math.atan2,Ie=Math.cos,ze=Math.sin;function De(Ve,$e){var Oe=$e[0],ke=$e[1];return[Oe*Ie(Ve)-ke*ze(Ve),Oe*ze(Ve)+ke*Ie(Ve)]}function Qe(Ve,$e){var Oe,ke,Re=Ve.ma;Re===void 0&&((Re=$e.marker.angle)&&!b.isArrayOrTypedArray(Re)||(Re=0));var We=$e.marker.angleref;if(We==="previous"||We==="north"){if($e._geo){var Ue=$e._geo.project(Ve.lonlat);Oe=Ue[0],ke=Ue[1]}else{var Ze=$e._xA,Ye=$e._yA;if(!Ze||!Ye)return 90;Oe=Ze.c2p(Ve.x),ke=Ye.c2p(Ve.y)}if($e._geo){var Je,Me=Ve.lonlat[0],Fe=Ve.lonlat[1],je=$e._geo.project([Me,Fe+1e-5]),tt=$e._geo.project([Me+1e-5,Fe]),ot=Pe(tt[1]-ke,tt[0]-Oe),Ge=Pe(je[1]-ke,je[0]-Oe);if(We==="north")Je=Re/180*Math.PI;else if(We==="previous"){var ht=Me/180*Math.PI,pt=Fe/180*Math.PI,St=de/180*Math.PI,Ft=ye/180*Math.PI,zt=St-ht,Yt=Ie(Ft)*ze(zt),ln=ze(Ft)*Ie(pt)-Ie(Ft)*ze(pt)*Ie(zt);Je=-Pe(Yt,ln)-Math.PI,de=Me,ye=Fe}var tn=De(ot,[Ie(Je),0]),Et=De(Ge,[ze(Je),0]);Re=Pe(tn[1]+Et[1],tn[0]+Et[0])/Math.PI*180,We!=="previous"||Te===$e.uid&&Ve.i===we+1||(Re=null)}if(We==="previous"&&!$e._geo)if(Te===$e.uid&&Ve.i===we+1&&S(Oe)&&S(ke)){var Ot=Oe-ve,cn=ke-_e,Cn=$e.line&&$e.line.shape||"",Pn=Cn.slice(Cn.length-1);Pn==="h"&&(cn=0),Pn==="v"&&(Ot=0),Re+=Pe(cn,Ot)/Math.PI*180+90}else Re=null}return ve=Oe,_e=ke,we=Ve.i,Te=$e.uid,Re}R.getMarkerAngle=Qe},71984:function(d,s,n){var u,b,i,S,w=n(21984),y=n(33428).round,m="M0,0Z",a=Math.sqrt(2),c=Math.sqrt(3),h=Math.PI,p=Math.cos,v=Math.sin;function _(C){return C===null}function O(C,x,R){if(!(C&&C%360!=0||x))return R;if(i===C&&S===x&&u===R)return b;function M(X,te){var Z=p(X),K=v(X),re=te[0],q=te[1]+(x||0);return[re*Z-q*K,re*K+q*Z]}i=C,S=x,u=R;for(var T=C/180*h,P=0,A=0,L=w(R),D="",k=0;k0,v=w._context.staticPlot;y.each(function(_){var O,C=_[0].trace,x=C.error_x||{},R=C.error_y||{};C.ids&&(O=function(A){return A.id});var M=S.hasMarkers(C)&&C.marker.maxdisplayed>0;R.visible||x.visible||(_=[]);var T=u.select(this).selectAll("g.errorbar").data(_,O);if(T.exit().remove(),_.length){x.visible||T.selectAll("path.xerror").remove(),R.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var P=T.enter().append("g").classed("errorbar",!0);p&&P.style("opacity",0).transition().duration(a.duration).style("opacity",1),i.setClipUrl(T,m.layerClipId,w),T.each(function(A){var L=u.select(this),D=function(j,U,X){var te={x:U.c2p(j.x),y:X.c2p(j.y)};return j.yh!==void 0&&(te.yh=X.c2p(j.yh),te.ys=X.c2p(j.ys),b(te.ys)||(te.noYS=!0,te.ys=X.c2p(j.ys,!0))),j.xh!==void 0&&(te.xh=U.c2p(j.xh),te.xs=U.c2p(j.xs),b(te.xs)||(te.noXS=!0,te.xs=U.c2p(j.xs,!0))),te}(A,c,h);if(!M||A.vis){var k,I=L.select("path.yerror");if(R.visible&&b(D.x)&&b(D.yh)&&b(D.ys)){var z=R.width;k="M"+(D.x-z)+","+D.yh+"h"+2*z+"m-"+z+",0V"+D.ys,D.noYS||(k+="m-"+z+",0h"+2*z),I.size()?p&&(I=I.transition().duration(a.duration).ease(a.easing)):I=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",k)}else I.remove();var $=L.select("path.xerror");if(x.visible&&b(D.y)&&b(D.xh)&&b(D.xs)){var Q=(x.copy_ystyle?R:x).width;k="M"+D.xh+","+(D.y-Q)+"v"+2*Q+"m0,-"+Q+"H"+D.xs,D.noXS||(k+="m0,-"+Q+"v"+2*Q),$.size()?p&&($=$.transition().duration(a.duration).ease(a.easing)):$=L.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0),$.attr("d",k)}else $.remove()}})}})}},92036:function(d,s,n){var u=n(33428),b=n(76308);d.exports=function(i){i.each(function(S){var w=S[0].trace,y=w.error_y||{},m=w.error_x||{},a=u.select(this);a.selectAll("path.yerror").style("stroke-width",y.thickness+"px").call(b.stroke,y.color),m.copy_ystyle&&(m=y),a.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(b.stroke,m.color)})}},55756:function(d,s,n){var u=n(25376),b=n(65460).hoverlabel,i=n(92880).extendFlat;d.exports={hoverlabel:{bgcolor:i({},b.bgcolor,{arrayOk:!0}),bordercolor:i({},b.bordercolor,{arrayOk:!0}),font:u({arrayOk:!0,editType:"none"}),align:i({},b.align,{arrayOk:!0}),namelength:i({},b.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(d,s,n){var u=n(3400),b=n(24040);function i(S,w,y,m){m=m||u.identity,Array.isArray(S)&&(w[0][y]=m(S))}d.exports=function(S){var w=S.calcdata,y=S._fullLayout;function m(v){return function(_){return u.coerceHoverinfo({hoverinfo:_},{_module:v._module},y)}}for(var a=0;a=0&&c.indexRe[0]._length||xt<0||xt>We[0]._length)return v.unhoverRaw(_e,we)}else vt="xpx"in we?we.xpx:Re[0]._length/2,xt="ypx"in we?we.ypx:We[0]._length/2;if(we.pointerX=vt+Re[0]._offset,we.pointerY=xt+We[0]._offset,tt="xval"in we?C.flat(ze,we.xval):C.p2c(Re,vt),ot="yval"in we?C.flat(ze,we.yval):C.p2c(We,xt),!b(tt[0])||!b(ot[0]))return S.warn("Fx.hover failed",we,_e),v.unhoverRaw(_e,we)}var Vt=1/0;function Dt(Hn,ar){for(ht=0;htOt&&(cn.splice(0,Ot),Vt=cn[0].distance),$e&&je!==0&&cn.length===0){Et.distance=je,Et.index=!1;var oo=St._module.hoverPoints(Et,ln,tn,"closest",{hoverLayer:De._hoverlayer});if(oo&&(oo=oo.filter(function(Yn){return Yn.spikeDistance<=je})),oo&&oo.length){var io,Do=oo.filter(function(Yn){return Yn.xa.showspikes&&Yn.xa.spikesnap!=="hovered data"});if(Do.length){var jn=Do[0];b(jn.x0)&&b(jn.y0)&&(io=at(jn),(!Pn.vLinePoint||Pn.vLinePoint.spikeDistance>io.spikeDistance)&&(Pn.vLinePoint=io))}var Rr=oo.filter(function(Yn){return Yn.ya.showspikes&&Yn.ya.spikesnap!=="hovered data"});if(Rr.length){var On=Rr[0];b(On.x0)&&b(On.y0)&&(io=at(On),(!Pn.hLinePoint||Pn.hLinePoint.spikeDistance>io.spikeDistance)&&(Pn.hLinePoint=io))}}}}}function it(Hn,ar,Dr){for(var Sr,Zr=null,go=1/0,oo=0;oo0&&Math.abs(Hn.distance)wn-1;An--)Zn(cn[An]);cn=Kn,en()}var tr=_e._hoverdata,Br=[],$r=me(_e),vr=pe(_e);for(Ge=0;Ge1||cn.length>1)||Me==="closest"&&Sn&&cn.length>1,_o=p.combine(De.plot_bgcolor||p.background,De.paper_bgcolor),$o=U(cn,{gd:_e,hovermode:Me,rotateLabels:Fo,bgColor:_o,container:De._hoverlayer,outerContainer:De._paper.node(),commonLabelOpts:De.hoverlabel,hoverdistance:De.hoverdistance}),Mo=$o.hoverLabels;if(C.isUnifiedHover(Me)||(function(Hn,ar,Dr,Sr){var Zr,go,oo,io,Do,jn,Rr,On=ar?"xa":"ya",Yn=ar?"ya":"xa",ir=0,kr=1,Er=Hn.size(),Gt=new Array(Er),on=0,an=Sr.minX,Tn=Sr.maxX,zn=Sr.minY,Gn=Sr.maxY,Lr=function(Fn){return Fn*Dr._invScaleX},Ur=function(Fn){return Fn*Dr._invScaleY};function qr(Fn){var dr=Fn[0],xr=Fn[Fn.length-1];if(go=dr.pmin-dr.pos-dr.dp+dr.size,oo=xr.pos+xr.dp+xr.size-dr.pmax,go>.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp+=go;Zr=!1}if(!(oo<.01)){if(go<-.01){for(Do=Fn.length-1;Do>=0;Do--)Fn[Do].dp-=oo;Zr=!1}if(Zr){var Oo=0;for(io=0;iodr.pmax&&Oo++;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos>dr.pmax-1&&(jn.del=!0,Oo--);for(io=0;io=0;Do--)Fn[Do].dp-=oo;for(io=Fn.length-1;io>=0&&!(Oo<=0);io--)(jn=Fn[io]).pos+jn.dp+jn.size>dr.pmax&&(jn.del=!0,Oo--)}}}for(Hn.each(function(Fn){var dr=Fn[On],xr=Fn[Yn],Oo=dr._id.charAt(0)==="x",mi=dr.range;on===0&&mi&&mi[0]>mi[1]!==Oo&&(kr=-1);var Di=0,To=Oo?Dr.width:Dr.height;if(Dr.hovermode==="x"||Dr.hovermode==="y"){var Ia,Ds,fs=te(Fn,ar),zi=Fn.anchor,yl=zi==="end"?-1:1;if(zi==="middle")Ds=(Ia=Fn.crossPos+(Oo?Ur(fs.y-Fn.by/2):Lr(Fn.bx/2+Fn.tx2width/2)))+(Oo?Ur(Fn.by):Lr(Fn.bx));else if(Oo)Ds=(Ia=Fn.crossPos+Ur(k+fs.y)-Ur(Fn.by/2-k))+Ur(Fn.by);else{var Bs=Lr(yl*k+fs.x),yf=Bs+Lr(yl*Fn.bx);Ia=Fn.crossPos+Math.min(Bs,yf),Ds=Fn.crossPos+Math.max(Bs,yf)}Oo?zn!==void 0&&Gn!==void 0&&Math.min(Ds,Gn)-Math.max(Ia,zn)>1&&(xr.side==="left"?(Di=xr._mainLinePosition,To=Dr.width):To=xr._mainLinePosition):an!==void 0&&Tn!==void 0&&Math.min(Ds,Tn)-Math.max(Ia,an)>1&&(xr.side==="top"?(Di=xr._mainLinePosition,To=Dr.height):To=xr._mainLinePosition)}Gt[on++]=[{datum:Fn,traceIndex:Fn.trace.index,dp:0,pos:Fn.pos,posref:Fn.posref,size:Fn.by*(Oo?A:1)/2,pmin:Di,pmax:To}]}),Gt.sort(function(Fn,dr){return Fn[0].posref-dr[0].posref||kr*(dr[0].traceIndex-Fn[0].traceIndex)});!Zr&&ir<=Er;){for(ir++,Zr=!0,io=0;io.01&&Nr.pmin===Eo.pmin&&Nr.pmax===Eo.pmax){for(Do=wo.length-1;Do>=0;Do--)wo[Do].dp+=go;for(Cr.push.apply(Cr,wo),Gt.splice(io+1,1),Rr=0,Do=Cr.length-1;Do>=0;Do--)Rr+=Cr[Do].dp;for(oo=Rr/Cr.length,Do=Cr.length-1;Do>=0;Do--)Cr[Do].dp-=oo;Zr=!1}else io++}Gt.forEach(qr)}for(io=Gt.length-1;io>=0;io--){var zo=Gt[io];for(Do=zo.length-1;Do>=0;Do--){var Qt=zo[Do],Mn=Qt.datum;Mn.offset=Qt.dp,Mn.del=Qt.del}}}(Mo,Fo,De,$o.commonLabelBoundingBox),Z(Mo,Fo,De._invScaleX,De._invScaleY)),Ie&&Ie.tagName){var pi=O.getComponentMethod("annotations","hasClickToShow")(_e,Br);c(u.select(Ie),pi?"pointer":"")}Ie&&!Pe&&function(Hn,ar,Dr){if(!Dr||Dr.length!==Hn._hoverdata.length)return!0;for(var Sr=Dr.length-1;Sr>=0;Sr--){var Zr=Dr[Sr],go=Hn._hoverdata[Sr];if(Zr.curveNumber!==go.curveNumber||String(Zr.pointNumber)!==String(go.pointNumber)||String(Zr.pointNumbers)!==String(go.pointNumbers))return!0}return!1}(_e,0,tr)&&(tr&&_e.emit("plotly_unhover",{event:we,points:tr}),_e.emit("plotly_hover",{event:we,points:_e._hoverdata,xaxes:Re,yaxes:We,xvals:tt,yvals:ot}))})(ae,ce,de,ye,ve)})},s.loneHover=function(ae,ce){var de=!0;Array.isArray(ae)||(de=!1,ae=[ae]);var ye=ce.gd,ve=me(ye),_e=pe(ye),we=U(ae.map(function(Ie){var ze=Ie._x0||Ie.x0||Ie.x||0,De=Ie._x1||Ie.x1||Ie.x||0,Qe=Ie._y0||Ie.y0||Ie.y||0,Ve=Ie._y1||Ie.y1||Ie.y||0,$e=Ie.eventData;if($e){var Oe=Math.min(ze,De),ke=Math.max(ze,De),Re=Math.min(Qe,Ve),We=Math.max(Qe,Ve),Ue=Ie.trace;if(O.traceIs(Ue,"gl3d")){var Ze=ye._fullLayout[Ue.scene]._scene.container,Ye=Ze.offsetLeft,Je=Ze.offsetTop;Oe+=Ye,ke+=Ye,Re+=Je,We+=Je}$e.bbox={x0:Oe+_e,x1:ke+_e,y0:Re+ve,y1:We+ve},ce.inOut_bbox&&ce.inOut_bbox.push($e.bbox)}else $e=!1;return{color:Ie.color||p.defaultLine,x0:Ie.x0||Ie.x||0,x1:Ie.x1||Ie.x||0,y0:Ie.y0||Ie.y||0,y1:Ie.y1||Ie.y||0,xLabel:Ie.xLabel,yLabel:Ie.yLabel,zLabel:Ie.zLabel,text:Ie.text,name:Ie.name,idealAlign:Ie.idealAlign,borderColor:Ie.borderColor,fontFamily:Ie.fontFamily,fontSize:Ie.fontSize,fontColor:Ie.fontColor,nameLength:Ie.nameLength,textAlign:Ie.textAlign,trace:Ie.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Ie.hovertemplate||!1,hovertemplateLabels:Ie.hovertemplateLabels||!1,eventData:$e}}),{gd:ye,hovermode:"closest",rotateLabels:!1,bgColor:ce.bgColor||p.background,container:u.select(ce.container),outerContainer:ce.outerContainer||ce.container}).hoverLabels,Te=0,Pe=0;return we.sort(function(Ie,ze){return Ie.y0-ze.y0}).each(function(Ie,ze){var De=Ie.y0-Ie.by/2;Ie.offset=De-5([\s\S]*)<\/extra>/;function U(ae,ce){var de=ce.gd,ye=de._fullLayout,ve=ce.hovermode,_e=ce.rotateLabels,we=ce.bgColor,Te=ce.container,Pe=ce.outerContainer,Ie=ce.commonLabelOpts||{};if(ae.length===0)return[[]];var ze=ce.fontFamily||x.HOVERFONT,De=ce.fontSize||x.HOVERFONTSIZE,Qe=ae[0],Ve=Qe.xa,$e=Qe.ya,Oe=ve.charAt(0),ke=Oe+"Label",Re=Qe[ke];if(Re===void 0&&Ve.type==="multicategory")for(var We=0;Weye.width-vr?(Zn=ye.width-vr,_n.attr("d","M"+(vr-k)+",0L"+vr+","+$r+k+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H"+(vr-2*k)+"Z")):_n.attr("d","M0,0L"+k+","+$r+k+"H"+vr+"v"+$r+(2*I+Br.height)+"H-"+vr+"V"+$r+k+"H-"+k+"Z"),ht.minX=Zn-vr,ht.maxX=Zn+vr,Ve.side==="top"?(ht.minY=tr-(2*I+Br.height),ht.maxY=tr-I):(ht.minY=tr+I,ht.maxY=tr+(2*I+Br.height))}else{var qn,gr,sr;$e.side==="right"?(qn="start",gr=1,sr="",Zn=Ve._offset+Ve._length):(qn="end",gr=-1,sr="-",Zn=Ve._offset),tr=$e._offset+(Qe.y0+Qe.y1)/2,wn.attr("text-anchor",qn),_n.attr("d","M0,0L"+sr+k+","+k+"V"+(I+Br.height/2)+"h"+sr+(2*I+Br.width)+"V-"+(I+Br.height/2)+"H"+sr+k+"V-"+k+"Z"),ht.minY=tr-(I+Br.height/2),ht.maxY=tr+(I+Br.height/2),$e.side==="right"?(ht.minX=Zn+k,ht.maxX=Zn+k+(2*I+Br.width)):(ht.minX=Zn-k-(2*I+Br.width),ht.maxX=Zn-k);var lr,zr=Br.height/2,Vr=Ze-Br.top-zr,eo="clip"+ye._uid+"commonlabel"+$e._id;if(Zn=0?xt:st+Dt=0?st:Zt+Dt=0?Sn:vt+it=0?vt:Nt+it=0,rn.idealAlign!=="top"&&co||!Fo?co?(zr+=eo/2,rn.anchor="start"):rn.anchor="middle":(zr-=eo/2,rn.anchor="end"),rn.crossPos=zr;else{if(rn.pos=zr,co=lr+Vr/2+_o<=Ye,Fo=lr-Vr/2-_o>=0,rn.idealAlign!=="left"&&co||!Fo)if(co)lr+=Vr/2,rn.anchor="start";else{rn.anchor="middle";var $o=_o/2,Mo=lr+$o-Ye,pi=lr-$o;Mo>0&&(lr-=Mo),pi<0&&(lr+=-pi)}else lr-=Vr/2,rn.anchor="end";rn.crossPos=lr}$r.attr("text-anchor",rn.anchor),qn&&vr.attr("text-anchor",rn.anchor),_n.attr("transform",w(lr,zr)+(_e?y(T):""))}),{hoverLabels:sn,commonLabelBoundingBox:ht}}function X(ae,ce,de,ye,ve,_e){var we="",Te="";ae.nameOverride!==void 0&&(ae.name=ae.nameOverride),ae.name&&(ae.trace._meta&&(ae.name=S.templateString(ae.name,ae.trace._meta)),we=Y(ae.name,ae.nameLength));var Pe=de.charAt(0),Ie=Pe==="x"?"y":"x";ae.zLabel!==void 0?(ae.xLabel!==void 0&&(Te+="x: "+ae.xLabel+"
    "),ae.yLabel!==void 0&&(Te+="y: "+ae.yLabel+"
    "),ae.trace.type!=="choropleth"&&ae.trace.type!=="choroplethmapbox"&&(Te+=(Te?"z: ":"")+ae.zLabel)):ce&&ae[Pe+"Label"]===ve?Te=ae[Ie+"Label"]||"":ae.xLabel===void 0?ae.yLabel!==void 0&&ae.trace.type!=="scattercarpet"&&(Te=ae.yLabel):Te=ae.yLabel===void 0?ae.xLabel:"("+ae.xLabel+", "+ae.yLabel+")",!ae.text&&ae.text!==0||Array.isArray(ae.text)||(Te+=(Te?"
    ":"")+ae.text),ae.extraText!==void 0&&(Te+=(Te?"
    ":"")+ae.extraText),_e&&Te===""&&!ae.hovertemplate&&(we===""&&_e.remove(),Te=we);var ze=ae.hovertemplate||!1;if(ze){var De=ae.hovertemplateLabels||ae;ae[Pe+"Label"]!==ve&&(De[Pe+"other"]=De[Pe+"Val"],De[Pe+"otherLabel"]=De[Pe+"Label"]),Te=(Te=S.hovertemplateString(ze,De,ye._d3locale,ae.eventData[0]||{},ae.trace._meta)).replace(j,function(Qe,Ve){return we=Y(Ve,ae.nameLength),""})}return[Te,we]}function te(ae,ce){var de=0,ye=ae.offset;return ce&&(ye*=-D,de=ae.offset*L),{x:de,y:ye}}function Z(ae,ce,de,ye){var ve=function(we){return we*de},_e=function(we){return we*ye};ae.each(function(we){var Te=u.select(this);if(we.del)return Te.remove();var Pe,Ie,ze,De,Qe=Te.select("text.nums"),Ve=we.anchor,$e=Ve==="end"?-1:1,Oe=(De=(ze=(Ie={start:1,end:-1,middle:0}[(Pe=we).anchor])*(k+I))+Ie*(Pe.txwidth+I),Pe.anchor==="middle"&&(ze-=Pe.tx2width/2,De+=Pe.txwidth/2+I),{alignShift:Ie,textShiftX:ze,text2ShiftX:De}),ke=te(we,ce),Re=ke.x,We=ke.y,Ue=Ve==="middle";Te.select("path").attr("d",Ue?"M-"+ve(we.bx/2+we.tx2width/2)+","+_e(We-we.by/2)+"h"+ve(we.bx)+"v"+_e(we.by)+"h-"+ve(we.bx)+"Z":"M0,0L"+ve($e*k+Re)+","+_e(k+We)+"v"+_e(we.by/2-k)+"h"+ve($e*we.bx)+"v-"+_e(we.by)+"H"+ve($e*k+Re)+"V"+_e(We-k)+"Z");var Ze=Re+Oe.textShiftX,Ye=We+we.ty0-we.by/2+I,Je=we.textAlign||"auto";Je!=="auto"&&(Je==="left"&&Ve!=="start"?(Qe.attr("text-anchor","start"),Ze=Ue?-we.bx/2-we.tx2width/2+I:-we.bx-I):Je==="right"&&Ve!=="end"&&(Qe.attr("text-anchor","end"),Ze=Ue?we.bx/2-we.tx2width/2-I:we.bx+I)),Qe.call(a.positionText,ve(Ze),_e(Ye)),we.tx2width&&(Te.select("text.name").call(a.positionText,ve(Oe.text2ShiftX+Oe.alignShift*I+Re),_e(We+we.ty0-we.by/2+I)),Te.select("rect").call(h.setRect,ve(Oe.text2ShiftX+(Oe.alignShift-1)*we.tx2width/2+Re),_e(We-we.by/2-1),ve(we.tx2width),_e(we.by+2)))})}function K(ae,ce){var de=ae.index,ye=ae.trace||{},ve=ae.cd[0],_e=ae.cd[de]||{};function we(Qe){return Qe||b(Qe)&&Qe===0}var Te=Array.isArray(de)?function(Qe,Ve){var $e=S.castOption(ve,de,Qe);return we($e)?$e:S.extractOption({},ye,"",Ve)}:function(Qe,Ve){return S.extractOption(_e,ye,Qe,Ve)};function Pe(Qe,Ve,$e){var Oe=Te(Ve,$e);we(Oe)&&(ae[Qe]=Oe)}if(Pe("hoverinfo","hi","hoverinfo"),Pe("bgcolor","hbg","hoverlabel.bgcolor"),Pe("borderColor","hbc","hoverlabel.bordercolor"),Pe("fontFamily","htf","hoverlabel.font.family"),Pe("fontSize","hts","hoverlabel.font.size"),Pe("fontColor","htc","hoverlabel.font.color"),Pe("nameLength","hnl","hoverlabel.namelength"),Pe("textAlign","hta","hoverlabel.align"),ae.posref=ce==="y"||ce==="closest"&&ye.orientation==="h"?ae.xa._offset+(ae.x0+ae.x1)/2:ae.ya._offset+(ae.y0+ae.y1)/2,ae.x0=S.constrain(ae.x0,0,ae.xa._length),ae.x1=S.constrain(ae.x1,0,ae.xa._length),ae.y0=S.constrain(ae.y0,0,ae.ya._length),ae.y1=S.constrain(ae.y1,0,ae.ya._length),ae.xLabelVal!==void 0&&(ae.xLabel="xLabel"in ae?ae.xLabel:_.hoverLabelText(ae.xa,ae.xLabelVal,ye.xhoverformat),ae.xVal=ae.xa.c2d(ae.xLabelVal)),ae.yLabelVal!==void 0&&(ae.yLabel="yLabel"in ae?ae.yLabel:_.hoverLabelText(ae.ya,ae.yLabelVal,ye.yhoverformat),ae.yVal=ae.ya.c2d(ae.yLabelVal)),ae.zLabelVal!==void 0&&ae.zLabel===void 0&&(ae.zLabel=String(ae.zLabelVal)),!(isNaN(ae.xerr)||ae.xa.type==="log"&&ae.xerr<=0)){var Ie=_.tickText(ae.xa,ae.xa.c2l(ae.xerr),"hover").text;ae.xerrneg!==void 0?ae.xLabel+=" +"+Ie+" / -"+_.tickText(ae.xa,ae.xa.c2l(ae.xerrneg),"hover").text:ae.xLabel+=" ± "+Ie,ce==="x"&&(ae.distance+=1)}if(!(isNaN(ae.yerr)||ae.ya.type==="log"&&ae.yerr<=0)){var ze=_.tickText(ae.ya,ae.ya.c2l(ae.yerr),"hover").text;ae.yerrneg!==void 0?ae.yLabel+=" +"+ze+" / -"+_.tickText(ae.ya,ae.ya.c2l(ae.yerrneg),"hover").text:ae.yLabel+=" ± "+ze,ce==="y"&&(ae.distance+=1)}var De=ae.hoverinfo||ae.trace.hoverinfo;return De&&De!=="all"&&((De=Array.isArray(De)?De:De.split("+")).indexOf("x")===-1&&(ae.xLabel=void 0),De.indexOf("y")===-1&&(ae.yLabel=void 0),De.indexOf("z")===-1&&(ae.zLabel=void 0),De.indexOf("text")===-1&&(ae.text=void 0),De.indexOf("name")===-1&&(ae.name=void 0)),ae}function re(ae,ce,de){var ye,ve,_e=de.container,we=de.fullLayout,Te=we._size,Pe=de.event,Ie=!!ce.hLinePoint,ze=!!ce.vLinePoint;if(_e.selectAll(".spikeline").remove(),ze||Ie){var De=p.combine(we.plot_bgcolor,we.paper_bgcolor);if(Ie){var Qe,Ve,$e=ce.hLinePoint;ye=$e&&$e.xa,(ve=$e&&$e.ya).spikesnap==="cursor"?(Qe=Pe.pointerX,Ve=Pe.pointerY):(Qe=ye._offset+$e.x,Ve=ve._offset+$e.y);var Oe,ke,Re=i.readability($e.color,De)<1.5?p.contrast(De):$e.color,We=ve.spikemode,Ue=ve.spikethickness,Ze=ve.spikecolor||Re,Ye=_.getPxPosition(ae,ve);if(We.indexOf("toaxis")!==-1||We.indexOf("across")!==-1){if(We.indexOf("toaxis")!==-1&&(Oe=Ye,ke=Qe),We.indexOf("across")!==-1){var Je=ve._counterDomainMin,Me=ve._counterDomainMax;ve.anchor==="free"&&(Je=Math.min(Je,ve.position),Me=Math.max(Me,ve.position)),Oe=Te.l+Je*Te.w,ke=Te.l+Me*Te.w}_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue,stroke:Ze,"stroke-dasharray":h.dashStyle(ve.spikedash,Ue)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Oe,x2:ke,y1:Ve,y2:Ve,"stroke-width":Ue+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}We.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ye+(ve.side!=="right"?Ue:-Ue),cy:Ve,r:Ue,fill:Ze}).classed("spikeline",!0)}if(ze){var Fe,je,tt=ce.vLinePoint;ye=tt&&tt.xa,ve=tt&&tt.ya,ye.spikesnap==="cursor"?(Fe=Pe.pointerX,je=Pe.pointerY):(Fe=ye._offset+tt.x,je=ve._offset+tt.y);var ot,Ge,ht=i.readability(tt.color,De)<1.5?p.contrast(De):tt.color,pt=ye.spikemode,St=ye.spikethickness,Ft=ye.spikecolor||ht,zt=_.getPxPosition(ae,ye);if(pt.indexOf("toaxis")!==-1||pt.indexOf("across")!==-1){if(pt.indexOf("toaxis")!==-1&&(ot=zt,Ge=je),pt.indexOf("across")!==-1){var Yt=ye._counterDomainMin,ln=ye._counterDomainMax;ye.anchor==="free"&&(Yt=Math.min(Yt,ye.position),ln=Math.max(ln,ye.position)),ot=Te.t+(1-ln)*Te.h,Ge=Te.t+(1-Yt)*Te.h}_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St,stroke:Ft,"stroke-dasharray":h.dashStyle(ye.spikedash,St)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Fe,x2:Fe,y1:ot,y2:Ge,"stroke-width":St+2,stroke:De}).classed("spikeline",!0).classed("crisp",!0)}pt.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Fe,cy:zt-(ye.side!=="top"?St:-St),r:St,fill:Ft}).classed("spikeline",!0)}}}function q(ae,ce){return!ce||ce.vLinePoint!==ae._spikepoints.vLinePoint||ce.hLinePoint!==ae._spikepoints.hLinePoint}function Y(ae,ce){return a.plainText(ae||"",{len:ce,allowedTags:["br","sub","sup","b","i","em"]})}function ee(ae,ce,de){var ye=ce[ae+"a"],ve=ce[ae+"Val"],_e=ce.cd[0];if(ye.type==="category"||ye.type==="multicategory")ve=ye._categoriesMap[ve];else if(ye.type==="date"){var we=ce.trace[ae+"periodalignment"];if(we){var Te=ce.cd[ce.index],Pe=Te[ae+"Start"];Pe===void 0&&(Pe=Te[ae]);var Ie=Te[ae+"End"];Ie===void 0&&(Ie=Te[ae]);var ze=Ie-Pe;we==="end"?ve+=ze:we==="middle"&&(ve+=ze/2)}ve=ye.d2c(ve)}return _e&&_e.t&&_e.t.posLetter===ye._id&&(de.boxmode!=="group"&&de.violinmode!=="group"||(ve+=_e.t.dPos)),ve}function me(ae){return ae.offsetTop+ae.clientTop}function pe(ae){return ae.offsetLeft+ae.clientLeft}function se(ae,ce){var de=ae._fullLayout,ye=ce.getBoundingClientRect(),ve=ye.left,_e=ye.top,we=ve+ye.width,Te=_e+ye.height,Pe=S.apply3DTransform(de._invTransform)(ve,_e),Ie=S.apply3DTransform(de._invTransform)(we,Te),ze=Pe[0],De=Pe[1],Qe=Ie[0],Ve=Ie[1];return{x:ze,y:De,width:Qe-ze,height:Ve-De,top:Math.min(De,Ve),left:Math.min(ze,Qe),right:Math.max(ze,Qe),bottom:Math.max(De,Ve)}}},16132:function(d,s,n){var u=n(3400),b=n(76308),i=n(10624).isUnifiedHover;d.exports=function(S,w,y,m){m=m||{};var a=w.legend;function c(h){m.font[h]||(m.font[h]=a?w.legend.font[h]:w.font[h])}w&&i(w.hovermode)&&(m.font||(m.font={}),c("size"),c("family"),c("color"),a?(m.bgcolor||(m.bgcolor=b.combine(w.legend.bgcolor,w.paper_bgcolor)),m.bordercolor||(m.bordercolor=w.legend.bordercolor)):m.bgcolor||(m.bgcolor=w.paper_bgcolor)),y("hoverlabel.bgcolor",m.bgcolor),y("hoverlabel.bordercolor",m.bordercolor),y("hoverlabel.namelength",m.namelength),u.coerceFont(y,"hoverlabel.font",m.font),y("hoverlabel.align",m.align)}},41008:function(d,s,n){var u=n(3400),b=n(65460);d.exports=function(i,S){function w(y,m){return S[y]!==void 0?S[y]:u.coerce(i,S,b,y,m)}return w("clickmode"),w("hovermode")}},93024:function(d,s,n){var u=n(33428),b=n(3400),i=n(86476),S=n(10624),w=n(65460),y=n(83292);d.exports={moduleType:"component",name:"fx",constants:n(92456),schema:{layout:w},attributes:n(55756),layoutAttributes:w,supplyLayoutGlobalDefaults:n(81976),supplyDefaults:n(95448),supplyLayoutDefaults:n(88336),calc:n(55056),getDistanceFunction:S.getDistanceFunction,getClosest:S.getClosest,inbox:S.inbox,quadrature:S.quadrature,appendArrayPointValue:S.appendArrayPointValue,castHoverOption:function(m,a,c){return b.castOption(m,a,"hoverlabel."+c)},castHoverinfo:function(m,a,c){return b.castOption(m,c,"hoverinfo",function(h){return b.coerceHoverinfo({hoverinfo:h},{_module:m._module},a)})},hover:y.hover,unhover:i.unhover,loneHover:y.loneHover,loneUnhover:function(m){var a=b.isD3Selection(m)?m:u.select(m);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()},click:n(62376)}},65460:function(d,s,n){var u=n(92456),b=n(25376),i=b({editType:"none"});i.family.dflt=u.HOVERFONT,i.size.dflt=u.HOVERFONTSIZE,d.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:i,grouptitlefont:b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},88336:function(d,s,n){var u=n(3400),b=n(65460),i=n(41008),S=n(16132);d.exports=function(w,y){function m(p,v){return u.coerce(w,y,b,p,v)}i(w,y)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var a=y._has("mapbox"),c=y._has("geo"),h=y._basePlotModules.length;y.dragmode==="zoom"&&((a||c)&&h===1||a&&c&&h===2)&&(y.dragmode="pan"),S(w,y,m),u.coerceFont(m,"hoverlabel.grouptitlefont",y.hoverlabel.font)}},81976:function(d,s,n){var u=n(3400),b=n(16132),i=n(65460);d.exports=function(S,w){b(S,w,function(y,m){return u.coerce(S,w,i,y,m)})}},12704:function(d,s,n){var u=n(3400),b=n(53756).counter,i=n(86968).u,S=n(33816).idRegex,w=n(31780),y={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[b("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[S.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:i({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(h,p,v){var _=p[v+"axes"],O=Object.keys((h._splomAxes||{})[v]||{});return Array.isArray(_)?_:O.length?O:void 0}function a(h,p,v,_,O,C){var x=p(h+"gap",v),R=p("domain."+h);p(h+"side",_);for(var M=new Array(O),T=R[0],P=(R[1]-T)/(O-x),A=P*(1-x),L=0;L1){R||M||T||j("pattern")==="independent"&&(R=!0),A._hasSubplotGrid=R;var k,I,z=j("roworder")==="top to bottom",$=R?.2:.1,Q=R?.3:.1;P&&p._splomGridDflt&&(k=p._splomGridDflt.xside,I=p._splomGridDflt.yside),A._domains={x:a("x",j,$,k,D),y:a("y",j,Q,I,L,z)}}else delete p.grid}function j(U,X){return u.coerce(v,A,y,U,X)}},contentDefaults:function(h,p){var v=p.grid;if(v&&v._domains){var _,O,C,x,R,M,T,P=h.grid||{},A=p._subplots,L=v._hasSubplotGrid,D=v.rows,k=v.columns,I=v.pattern==="independent",z=v._axisMap={};if(L){var $=P.subplots||[];M=v.subplots=new Array(D);var Q=1;for(_=0;_(c==="legend"?1:0));if(Q===!1&&(p[c]=void 0),(Q!==!1||_.uirevision)&&(C("uirevision",p.uirevision),Q!==!1)){C("borderwidth");var j,U,X,te=C("orientation")==="h",Z=C("yref")==="paper",K=C("xref")==="paper",re="left";if(te?(j=0,u.getComponentMethod("rangeslider","isVisible")(h.xaxis)?Z?(U=1.1,X="bottom"):(U=1,X="top"):Z?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",K?j=1.02:(j=1,re="right")),b.coerce(_,O,{x:{valType:"number",editType:"legend",min:K?-2:0,max:K?3:1,dflt:j}},"x"),b.coerce(_,O,{y:{valType:"number",editType:"legend",min:Z?-2:0,max:Z?3:1,dflt:U}},"y"),C("traceorder",D),m.isGrouped(p[c])&&C("tracegroupgap"),C("entrywidth"),C("entrywidthmode"),C("itemsizing"),C("itemwidth"),C("itemclick"),C("itemdoubleclick"),C("groupclick"),C("xanchor",re),C("yanchor",X),C("valign"),b.noneOrAll(_,O,["x","y"]),C("title.text")){C("title.side",te?"left":"top");var q=b.extendFlat({},x,{size:b.bigFont(x.size)});b.coerceFont(C,"title.font",q)}}}}d.exports=function(c,h,p){var v,_=p.slice(),O=h.shapes;if(O)for(v=0;v1)}var ye=q.hiddenlabels||[];if(!(ee||q.showlegend&&me.length))return K.selectAll("."+Y).remove(),q._topdefs.select("#"+Z).remove(),i.autoMargin(X,Y);var ve=b.ensureSingle(K,"g",Y,function(Ve){ee||Ve.attr("pointer-events","all")}),_e=b.ensureSingleById(q._topdefs,"clipPath",Z,function(Ve){Ve.append("rect")}),we=b.ensureSingle(ve,"rect","bg",function(Ve){Ve.attr("shape-rendering","crispEdges")});we.call(a.stroke,re.bordercolor).call(a.fill,re.bgcolor).style("stroke-width",re.borderwidth+"px");var Te,Pe=b.ensureSingle(ve,"g","scrollbox"),Ie=re.title;re._titleWidth=0,re._titleHeight=0,Ie.text?((Te=b.ensureSingle(Pe,"text",Y+"titletext")).attr("text-anchor","start").call(m.font,Ie.font).text(Ie.text),$(Te,Pe,X,re,T)):Pe.selectAll("."+Y+"titletext").remove();var ze=b.ensureSingle(ve,"rect","scrollbar",function(Ve){Ve.attr(p.scrollBarEnterAttrs).call(a.fill,p.scrollBarColor)}),De=Pe.selectAll("g.groups").data(me);De.enter().append("g").attr("class","groups"),De.exit().remove();var Qe=De.selectAll("g.traces").data(b.identity);Qe.enter().append("g").attr("class","traces"),Qe.exit().remove(),Qe.style("opacity",function(Ve){var $e=Ve[0].trace;return S.traceIs($e,"pie-like")?ye.indexOf(Ve[0].label)!==-1?.5:1:$e.visible==="legendonly"?.5:1}).each(function(){u.select(this).call(k,X,re)}).call(R,X,re).each(function(){ee||u.select(this).call(z,X,Y)}),b.syncOrAsync([i.previousPromises,function(){return function(Ve,$e,Oe,ke){var Re=Ve._fullLayout,We=U(ke);ke||(ke=Re[We]);var Ue=Re._size,Ze=M.isVertical(ke),Ye=M.isGrouped(ke),Je=ke.entrywidthmode==="fraction",Me=ke.borderwidth,Fe=2*Me,je=p.itemGap,tt=ke.itemwidth+2*je,ot=2*(Me+je),Ge=j(ke),ht=ke.y<0||ke.y===0&&Ge==="top",pt=ke.y>1||ke.y===1&&Ge==="bottom",St=ke.tracegroupgap,Ft={};ke._maxHeight=Math.max(ht||pt?Re.height/2:Ue.h,30);var zt=0;ke._width=0,ke._height=0;var Yt=function(en){var Jt=0,Zt=0,Nt=en.title.side;return Nt&&(Nt.indexOf("left")!==-1&&(Jt=en._titleWidth),Nt.indexOf("top")!==-1&&(Zt=en._titleHeight)),[Jt,Zt]}(ke);if(Ze)Oe.each(function(en){var Jt=en[0].height;m.setTranslate(this,Me+Yt[0],Me+Yt[1]+ke._height+Jt/2+je),ke._height+=Jt,ke._width=Math.max(ke._width,en[0].width)}),zt=tt+ke._width,ke._width+=je+tt+Fe,ke._height+=ot,Ye&&($e.each(function(en,Jt){m.setTranslate(this,0,Jt*ke.tracegroupgap)}),ke._height+=(ke._lgroupsLength-1)*ke.tracegroupgap);else{var ln=Q(ke),tn=ke.x<0||ke.x===0&&ln==="right",Et=ke.x>1||ke.x===1&&ln==="left",Ot=pt||ht,cn=Re.width/2;ke._maxWidth=Math.max(tn?Ot&&ln==="left"?Ue.l+Ue.w:cn:Et?Ot&&ln==="right"?Ue.r+Ue.w:cn:Ue.w,2*tt);var Cn=0,Pn=0;Oe.each(function(en){var Jt=L(en,ke,tt);Cn=Math.max(Cn,Jt),Pn+=Jt}),zt=null;var Sn=0;if(Ye){var vt=0,xt=0,st=0;$e.each(function(){var en=0,Jt=0;u.select(this).selectAll("g.traces").each(function(Nt){var sn=L(Nt,ke,tt),rn=Nt[0].height;m.setTranslate(this,Yt[0],Yt[1]+Me+je+rn/2+Jt),Jt+=rn,en=Math.max(en,sn),Ft[Nt[0].trace.legendgroup]=en});var Zt=en+je;xt>0&&Zt+Me+xt>ke._maxWidth?(Sn=Math.max(Sn,xt),xt=0,st+=vt+St,vt=Jt):vt=Math.max(vt,Jt),m.setTranslate(this,xt,st),xt+=Zt}),ke._width=Math.max(Sn,xt)+Me,ke._height=st+vt+ot}else{var bt=Oe.size(),Vt=Pn+Fe+(bt-1)*je=ke._maxWidth&&(Sn=Math.max(Sn,Bt),it=0,at+=Dt,ke._height+=Dt,Dt=0),m.setTranslate(this,Yt[0]+Me+it,Yt[1]+Me+at+Jt/2+je),Bt=it+Zt+je,it+=Nt,Dt=Math.max(Dt,Jt)}),Vt?(ke._width=it+Fe,ke._height=Dt+ot):(ke._width=Math.max(Sn,Bt)+Fe,ke._height+=Dt+ot)}}ke._width=Math.ceil(Math.max(ke._width+Yt[0],ke._titleWidth+2*(Me+p.titlePad))),ke._height=Math.ceil(Math.max(ke._height+Yt[1],ke._titleHeight+2*(Me+p.itemGap))),ke._effHeight=Math.min(ke._height,ke._maxHeight);var _t=Ve._context.edits,qt=_t.legendText||_t.legendPosition;Oe.each(function(en){var Jt=u.select(this).select("."+We+"toggle"),Zt=en[0].height,Nt=en[0].trace.legendgroup,sn=L(en,ke,tt);Ye&&Nt!==""&&(sn=Ft[Nt]);var rn=qt?tt:zt||sn;Ze||Je||(rn+=je/2),m.setRect(Jt,0,-Zt/2,rn,Zt)})}(X,De,Qe,re)},function(){var Ve,$e,Oe,ke,Re=q._size,We=re.borderwidth,Ue=re.xref==="paper",Ze=re.yref==="paper";if(Ie.text&&function(Ot,cn,Cn){if(cn.title.side==="top center"||cn.title.side==="top right"){var Pn=cn.title.font.size*_,Sn=0,vt=Ot.node(),xt=m.bBox(vt).width;cn.title.side==="top center"?Sn=.5*(cn._width-2*Cn-2*p.titlePad-xt):cn.title.side==="top right"&&(Sn=cn._width-2*Cn-2*p.titlePad-xt),c.positionText(Ot,Cn+p.titlePad+Sn,Cn+Pn)}}(Te,re,We),!ee){var Ye,Je;Ye=Ue?Re.l+Re.w*re.x-O[Q(re)]*re._width:q.width*re.x-O[Q(re)]*re._width,Je=Ze?Re.t+Re.h*(1-re.y)-O[j(re)]*re._effHeight:q.height*(1-re.y)-O[j(re)]*re._effHeight;var Me=function(Ot,cn,Cn,Pn){var Sn=Ot._fullLayout,vt=Sn[cn],xt=Q(vt),st=j(vt),bt=vt.xref==="paper",Vt=vt.yref==="paper";Ot._fullLayout._reservedMargin[cn]={};var Dt=vt.y<.5?"b":"t",it=vt.x<.5?"l":"r",at={r:Sn.width-Cn,l:Cn+vt._width,b:Sn.height-Pn,t:Pn+vt._effHeight};if(bt&&Vt)return i.autoMargin(Ot,cn,{x:vt.x,y:vt.y,l:vt._width*O[xt],r:vt._width*C[xt],b:vt._effHeight*C[st],t:vt._effHeight*O[st]});bt?Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]:Vt||vt.orientation==="v"?Ot._fullLayout._reservedMargin[cn][it]=at[it]:Ot._fullLayout._reservedMargin[cn][Dt]=at[Dt]}(X,Y,Ye,Je);if(Me)return;if(q.margin.autoexpand){var Fe=Ye,je=Je;Ye=Ue?b.constrain(Ye,0,q.width-re._width):Fe,Je=Ze?b.constrain(Je,0,q.height-re._effHeight):je,Ye!==Fe&&b.log("Constrain "+Y+".x to make legend fit inside graph"),Je!==je&&b.log("Constrain "+Y+".y to make legend fit inside graph")}m.setTranslate(ve,Ye,Je)}if(ze.on(".drag",null),ve.on("wheel",null),ee||re._height<=re._maxHeight||X._context.staticPlot){var tt=re._effHeight;ee&&(tt=re._height),we.attr({width:re._width-We,height:tt-We,x:We/2,y:We/2}),m.setTranslate(Pe,0,0),_e.select("rect").attr({width:re._width-2*We,height:tt-2*We,x:We,y:We}),m.setClipUrl(Pe,Z,X),m.setRect(ze,0,0,0,0),delete re._scrollY}else{var ot,Ge,ht,pt=Math.max(p.scrollBarMinHeight,re._effHeight*re._effHeight/re._height),St=re._effHeight-pt-2*p.scrollBarMargin,Ft=re._height-re._effHeight,zt=St/Ft,Yt=Math.min(re._scrollY||0,Ft);we.attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-We,x:We/2,y:We/2}),_e.select("rect").attr({width:re._width-2*We+p.scrollBarWidth+p.scrollBarMargin,height:re._effHeight-2*We,x:We,y:We+Yt}),m.setClipUrl(Pe,Z,X),Et(Yt,pt,zt),ve.on("wheel",function(){Et(Yt=b.constrain(re._scrollY+u.event.deltaY/St*Ft,0,Ft),pt,zt),Yt!==0&&Yt!==Ft&&u.event.preventDefault()});var ln=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;ot=Ot.type==="touchstart"?Ot.changedTouches[0].clientY:Ot.clientY,ht=Yt}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.buttons===2||Ot.ctrlKey||(Ge=Ot.type==="touchmove"?Ot.changedTouches[0].clientY:Ot.clientY,Yt=function(cn,Cn,Pn){var Sn=(Pn-Cn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});ze.call(ln);var tn=u.behavior.drag().on("dragstart",function(){var Ot=u.event.sourceEvent;Ot.type==="touchstart"&&(ot=Ot.changedTouches[0].clientY,ht=Yt)}).on("drag",function(){var Ot=u.event.sourceEvent;Ot.type==="touchmove"&&(Ge=Ot.changedTouches[0].clientY,Yt=function(cn,Cn,Pn){var Sn=(Cn-Pn)/zt+cn;return b.constrain(Sn,0,Ft)}(ht,ot,Ge),Et(Yt,pt,zt))});Pe.call(tn)}function Et(Ot,cn,Cn){re._scrollY=X._fullLayout[Y]._scrollY=Ot,m.setTranslate(Pe,0,-Ot),m.setRect(ze,re._width,p.scrollBarMargin+Ot*Cn,p.scrollBarWidth,cn),_e.select("rect").attr("y",We+Ot)}X._context.edits.legendPosition&&(ve.classed("cursor-move",!0),y.init({element:ve.node(),gd:X,prepFn:function(){var Ot=m.getTranslate(ve);Oe=Ot.x,ke=Ot.y},moveFn:function(Ot,cn){var Cn=Oe+Ot,Pn=ke+cn;m.setTranslate(ve,Cn,Pn),Ve=y.align(Cn,re._width,Re.l,Re.l+Re.w,re.xanchor),$e=y.align(Pn+re._height,-re._height,Re.t+Re.h,Re.t,re.yanchor)},doneFn:function(){if(Ve!==void 0&&$e!==void 0){var Ot={};Ot[Y+".x"]=Ve,Ot[Y+".y"]=$e,S.call("_guiRelayout",X,Ot)}},clickFn:function(Ot,cn){var Cn=K.selectAll("g.traces").filter(function(){var Pn=this.getBoundingClientRect();return cn.clientX>=Pn.left&&cn.clientX<=Pn.right&&cn.clientY>=Pn.top&&cn.clientY<=Pn.bottom});Cn.size()>0&&D(X,ve,Cn,Ot,cn)}}))}],X)}}function L(X,te,Z){var K=X[0],re=K.width,q=te.entrywidthmode,Y=K.trace.legendwidth||te.entrywidth;return q==="fraction"?te._maxWidth*Y:Z+(Y||re)}function D(X,te,Z,K,re){var q=Z.data()[0][0].trace,Y={event:re,node:Z.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};q._group&&(Y.group=q._group),S.traceIs(q,"pie-like")&&(Y.label=Z.datum()[0].label);var ee=w.triggerHandler(X,"plotly_legendclick",Y);if(K===1){if(ee===!1)return;te._clickTimeout=setTimeout(function(){X._fullLayout&&h(Z,X,K)},X._context.doubleClickDelay)}else K===2&&(te._clickTimeout&&clearTimeout(te._clickTimeout),X._legendMouseDownTime=0,w.triggerHandler(X,"plotly_legenddoubleclick",Y)!==!1&&ee!==!1&&h(Z,X,K))}function k(X,te,Z){var K,re,q=U(Z),Y=X.data()[0][0],ee=Y.trace,me=S.traceIs(ee,"pie-like"),pe=!Z._inHover&&te._context.edits.legendText&&!me,se=Z._maxNameLength;Y.groupTitle?(K=Y.groupTitle.text,re=Y.groupTitle.font):(re=Z.font,Z.entries?K=Y.text:(K=me?Y.label:ee.name,ee._meta&&(K=b.templateString(K,ee._meta))));var ae=b.ensureSingle(X,"text",q+"text");ae.attr("text-anchor","start").call(m.font,re).text(pe?I(K,se):K);var ce=Z.itemwidth+2*p.itemGap;c.positionText(ae,ce,0),pe?ae.call(c.makeEditable,{gd:te,text:K}).call($,X,te,Z).on("edit",function(de){this.text(I(de,se)).call($,X,te,Z);var ye=Y.trace._fullInput||{},ve={};if(S.hasTransform(ye,"groupby")){var _e=S.getTransformIndices(ye,"groupby"),we=_e[_e.length-1],Te=b.keyedContainer(ye,"transforms["+we+"].styles","target","value.name");Te.set(Y.trace._group,de),ve=Te.constructUpdate()}else ve.name=de;return ye._isShape?S.call("_guiRelayout",te,"shapes["+ee.index+"].name",ve.name):S.call("_guiRestyle",te,ve,ee.index)}):$(ae,X,te,Z)}function I(X,te){var Z=Math.max(4,te);if(X&&X.trim().length>=Z/2)return X;for(var K=Z-(X=X||"").length;K>0;K--)X+=" ";return X}function z(X,te,Z){var K,re=te._context.doubleClickDelay,q=1,Y=b.ensureSingle(X,"rect",Z+"toggle",function(ee){te._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(a.fill,"rgba(0,0,0,0)")});te._context.staticPlot||(Y.on("mousedown",function(){(K=new Date().getTime())-te._legendMouseDownTimere&&(q=Math.max(q-1,1)),D(te,ee,X,q,u.event)}}))}function $(X,te,Z,K,re){K._inHover&&X.attr("data-notex",!0),c.convertToTspans(X,Z,function(){(function(q,Y,ee,me){var pe=q.data()[0][0];if(ee._inHover||!pe||pe.trace.showlegend){var se=q.select("g[class*=math-group]"),ae=se.node(),ce=U(ee);ee||(ee=Y._fullLayout[ce]);var de,ye,ve=ee.borderwidth,_e=(me===T?ee.title.font:pe.groupTitle?pe.groupTitle.font:ee.font).size*_;if(ae){var we=m.bBox(ae);de=we.height,ye=we.width,me===T?m.setTranslate(se,ve,ve+.75*de):m.setTranslate(se,0,.25*de)}else{var Te="."+ce+(me===T?"title":"")+"text",Pe=q.select(Te),Ie=c.lineCount(Pe),ze=Pe.node();if(de=_e*Ie,ye=ze?m.bBox(ze).width:0,me===T)ee.title.side==="left"&&(ye+=2*p.itemGap),c.positionText(Pe,ve+p.titlePad,ve+_e);else{var De=2*p.itemGap+ee.itemwidth;pe.groupTitle&&(De=p.itemGap,ye-=ee.itemwidth),c.positionText(Pe,De,-_e*((Ie-1)/2-.3))}}me===T?(ee._titleWidth=ye,ee._titleHeight=de):(pe.lineHeight=_e,pe.height=Math.max(de,16)+3,pe.width=ye)}else q.remove()})(te,Z,K,re)})}function Q(X){return b.isRightAnchor(X)?"right":b.isCenterAnchor(X)?"center":"left"}function j(X){return b.isBottomAnchor(X)?"bottom":b.isMiddleAnchor(X)?"middle":"top"}function U(X){return X._id||"legend"}d.exports=function(X,te){if(te)A(X,te);else{var Z=X._fullLayout,K=Z._legends;Z._infolayer.selectAll('[class^="legend"]').each(function(){var Y=u.select(this),ee=Y.attr("class").split(" ")[0];ee.match(P)&&K.indexOf(ee)===-1&&Y.remove()});for(var re=0;reQ&&($=Q)}I[y][0]._groupMinRank=$,I[y][0]._preGroupSort=y}var j=function(K,re){return K.trace.legendrank-re.trace.legendrank||K._preSort-re._preSort};for(I.forEach(function(K,re){K[0]._preGroupSort=re}),I.sort(function(K,re){return K[0]._groupMinRank-re[0]._groupMinRank||K[0]._preGroupSort-re[0]._preGroupSort}),y=0;yR?R:C}d.exports=function(C,x,R){var M=x._fullLayout;R||(R=M.legend);var T=R.itemsizing==="constant",P=R.itemwidth,A=(P+2*p.itemGap)/2,L=S(A,0),D=function(z,$,Q,j){var U;if(z+1)U=z;else{if(!($&&$.width>0))return 0;U=$.width}return T?j:Math.min(U,Q)};function k(z,$,Q){var j=z[0].trace,U=j.marker||{},X=U.line||{},te=U.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=Q?j.visible&&j.type===Q:b.traceIs(j,"bar"),K=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(Z?[z]:[]);K.enter().append("path").classed("legend"+Q,!0).attr("d",te).attr("transform",L),K.exit().remove(),K.each(function(re){var q=u.select(this),Y=re[0],ee=D(Y.mlw,U.line,5,2);q.style("stroke-width",ee+"px");var me=Y.mcc;if(!R._inHover&&"mc"in Y){var pe=m(U),se=pe.mid;se===void 0&&(se=(pe.max+pe.min)/2),me=w.tryColorscale(U,"")(se)}var ae=me||Y.mc||U.color,ce=U.pattern,de=ce&&w.getPatternAttr(ce.shape,0,"");if(de){var ye=w.getPatternAttr(ce.bgcolor,0,null),ve=w.getPatternAttr(ce.fgcolor,0,null),_e=ce.fgopacity,we=O(ce.size,8,10),Te=O(ce.solidity,.5,1),Pe="legend-"+j.uid;q.call(w.pattern,"legend",x,Pe,de,we,Te,me,ce.fillmode,ye,ve,_e)}else q.call(y.fill,ae);ee&&y.stroke(q,Y.mlc||X.color)})}function I(z,$,Q){var j=z[0],U=j.trace,X=Q?U.visible&&U.type===Q:b.traceIs(U,Q),te=u.select($).select("g.legendpoints").selectAll("path.legend"+Q).data(X?[z]:[]);if(te.enter().append("path").classed("legend"+Q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),te.exit().remove(),te.size()){var Z=U.marker||{},K=D(h(Z.line.width,j.pts),Z.line,5,2),re="pieLike",q=i.minExtend(U,{marker:{line:{width:K}}},re),Y=i.minExtend(j,{trace:q},re);c(te,Y,q,x)}}C.each(function(z){var $=u.select(this),Q=i.ensureSingle($,"g","layers");Q.style("opacity",z[0].trace.opacity);var j=R.valign,U=z[0].lineHeight,X=z[0].height;if(j!=="middle"&&U&&X){var te={top:1,bottom:-1}[j]*(.5*(U-X+3));Q.attr("transform",S(0,te))}else Q.attr("transform",null);Q.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),Q.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Z=Q.selectAll("g.legendsymbols").data([z]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var $,Q=z[0].trace,j=[];if(Q.visible)switch(Q.type){case"histogram2d":case"heatmap":j=[["M-15,-2V4H15V-2Z"]],$=!0;break;case"choropleth":case"choroplethmapbox":j=[["M-6,-6V6H6V-6Z"]],$=!0;break;case"densitymapbox":j=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],$="radial";break;case"cone":j=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],$=!1;break;case"streamtube":j=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],$=!1;break;case"surface":j=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],$=!0;break;case"mesh3d":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!1;break;case"volume":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],$=!0;break;case"isosurface":j=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],$=!1}var U=u.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(j);U.enter().append("path").classed("legend3dandfriends",!0).attr("transform",L).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(X,te){var Z,K=u.select(this),re=m(Q),q=re.colorscale,Y=re.reversescale;if(q){if(!$){var ee=q.length;Z=te===0?q[Y?ee-1:0][1]:te===1?q[Y?0:ee-1][1]:q[Math.floor((ee-1)/2)][1]}}else{var me=Q.vertexcolor||Q.facecolor||Q.color;Z=i.isArrayOrTypedArray(me)?me[te]||me[0]:me}K.attr("d",X[0]),Z?K.call(y.fill,Z):K.call(function(pe){if(pe.size()){var se="legendfill-"+Q.uid;w.gradient(pe,x,se,v(Y,$==="radial"),q,"fill")}})})}).each(function(z){var $=z[0].trace,Q=$.type==="waterfall";if(z[0]._distinct&&Q){var j=z[0].trace[z[0].dir].marker;return z[0].mc=j.color,z[0].mlw=j.line.width,z[0].mlc=j.line.color,k(z,this,"waterfall")}var U=[];$.visible&&Q&&(U=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=u.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(U);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",L).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(te){var Z=u.select(this),K=$[te[0]].marker,re=D(void 0,K.line,5,2);Z.attr("d",te[1]).style("stroke-width",re+"px").call(y.fill,K.color),re&&Z.call(y.stroke,K.line.color)})}).each(function(z){k(z,this,"funnel")}).each(function(z){k(z,this)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendbox").data($.visible&&b.traceIs($,"box-violin")?[z]:[]);Q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",L),Q.exit().remove(),Q.each(function(){var j=u.select(this);if($.boxpoints!=="all"&&$.points!=="all"||y.opacity($.fillcolor)!==0||y.opacity(($.line||{}).color)!==0){var U=D(void 0,$.line,5,2);j.style("stroke-width",U+"px").call(y.fill,$.fillcolor),U&&y.stroke(j,$.line.color)}else{var X=i.minExtend($,{marker:{size:T?12:i.constrain($.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});Q.call(w.pointStyle,X,x)}})}).each(function(z){I(z,this,"funnelarea")}).each(function(z){I(z,this,"pie")}).each(function(z){var $,Q,j=_(z),U=j.showFill,X=j.showLine,te=j.showGradientLine,Z=j.showGradientFill,K=j.anyFill,re=j.anyLine,q=z[0],Y=q.trace,ee=m(Y),me=ee.colorscale,pe=ee.reversescale,se=a.hasMarkers(Y)||!K?"M5,0":re?"M5,-2":"M5,-3",ae=u.select(this),ce=ae.select(".legendfill").selectAll("path").data(U||Z?[z]:[]);if(ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",se+"h"+P+"v6h-"+P+"z").call(function(ve){if(ve.size())if(U)w.fillGroupStyle(ve,x);else{var _e="legendfill-"+Y.uid;w.gradient(ve,x,_e,v(pe),me,"fill")}}),X||te){var de=D(void 0,Y.line,10,5);Q=i.minExtend(Y,{line:{width:de}}),$=[i.minExtend(q,{trace:Q})]}var ye=ae.select(".legendlines").selectAll("path").data(X||te?[$]:[]);ye.enter().append("path").classed("js-line",!0),ye.exit().remove(),ye.attr("d",se+(te?"l"+P+",0.0001":"h"+P)).call(X?w.lineGroupStyle:function(ve){if(ve.size()){var _e="legendline-"+Y.uid;w.lineGroupStyle(ve),w.gradient(ve,x,_e,v(pe),me,"stroke")}})}).each(function(z){var $,Q,j=_(z),U=j.anyFill,X=j.anyLine,te=j.showLine,Z=j.showMarker,K=z[0],re=K.trace,q=!Z&&!X&&!U&&a.hasText(re);function Y(ye,ve,_e,we){var Te=i.nestedProperty(re,ye).get(),Pe=i.isArrayOrTypedArray(Te)&&ve?ve(Te):Te;if(T&&Pe&&we!==void 0&&(Pe=we),_e){if(Pe<_e[0])return _e[0];if(Pe>_e[1])return _e[1]}return Pe}function ee(ye){return K._distinct&&K.index&&ye[K.index]?ye[K.index]:ye[0]}if(Z||q||te){var me={},pe={};if(Z){me.mc=Y("marker.color",ee),me.mx=Y("marker.symbol",ee),me.mo=Y("marker.opacity",i.mean,[.2,1]),me.mlc=Y("marker.line.color",ee),me.mlw=Y("marker.line.width",i.mean,[0,5],2),pe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=Y("marker.size",i.mean,[2,16],12);me.ms=se,pe.marker.size=se}te&&(pe.line={width:Y("line.width",ee,[0,10],5)}),q&&(me.tx="Aa",me.tp=Y("textposition",ee),me.ts=10,me.tc=Y("textfont.color",ee),me.tf=Y("textfont.family",ee)),$=[i.minExtend(K,me)],(Q=i.minExtend(re,pe)).selectedpoints=null,Q.texttemplate=null}var ae=u.select(this).select("g.legendpoints"),ce=ae.selectAll("path.scatterpts").data(Z?$:[]);ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",L),ce.exit().remove(),ce.call(w.pointStyle,Q,x),Z&&($[0].mrc=3);var de=ae.selectAll("g.pointtext").data(q?$:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",L),de.exit().remove(),de.selectAll("text").call(w.textPointStyle,Q,x)}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendcandle").data($.visible&&$.type==="candlestick"?[z,z]:[]);Q.enter().append("path").classed("legendcandle",!0).attr("d",function(j,U){return U?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("stroke-width",Z+"px").call(y.fill,te.fillcolor),Z&&y.stroke(X,te.line.color)})}).each(function(z){var $=z[0].trace,Q=u.select(this).select("g.legendpoints").selectAll("path.legendohlc").data($.visible&&$.type==="ohlc"?[z,z]:[]);Q.enter().append("path").classed("legendohlc",!0).attr("d",function(j,U){return U?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",L).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(j,U){var X=u.select(this),te=$[U?"increasing":"decreasing"],Z=D(void 0,te.line,5,2);X.style("fill","none").call(w.dashLine,te.line.dash,Z),Z&&y.stroke(X,te.line.color)})})}},66540:function(d,s,n){n(76052),d.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},44248:function(d,s,n){var u=n(24040),b=n(7316),i=n(79811),S=n(9224),w=n(4016).eraseActiveShape,y=n(3400),m=y._,a=d.exports={};function c(M,T){var P,A,L=T.currentTarget,D=L.getAttribute("data-attr"),k=L.getAttribute("data-val")||!0,I=M._fullLayout,z={},$=i.list(M,null,!0),Q=I._cartesianSpikesEnabled;if(D==="zoom"){var j,U=k==="in"?.5:2,X=(1+U)/2,te=(1-U)/2;for(A=0;A<$.length;A++)if(!(P=$[A]).fixedrange)if(j=P._name,k==="auto")z[j+".autorange"]=!0;else if(k==="reset")P._rangeInitial0===void 0&&P._rangeInitial1===void 0?z[j+".autorange"]=!0:P._rangeInitial0===void 0?(z[j+".autorange"]=P._autorangeInitial,z[j+".range"]=[null,P._rangeInitial1]):P._rangeInitial1===void 0?(z[j+".range"]=[P._rangeInitial0,null],z[j+".autorange"]=P._autorangeInitial):z[j+".range"]=[P._rangeInitial0,P._rangeInitial1],P._showSpikeInitial!==void 0&&(z[j+".showspikes"]=P._showSpikeInitial,Q!=="on"||P._showSpikeInitial||(Q="off"));else{var Z=[P.r2l(P.range[0]),P.r2l(P.range[1])],K=[X*Z[0]+te*Z[1],X*Z[1]+te*Z[0]];z[j+".range[0]"]=P.l2r(K[0]),z[j+".range[1]"]=P.l2r(K[1])}}else D!=="hovermode"||k!=="x"&&k!=="y"||(k=I._isHoriz?"y":"x",L.setAttribute("data-val",k)),z[D]=k;I._cartesianSpikesEnabled=Q,u.call("_guiRelayout",M,z)}function h(M,T){for(var P=T.currentTarget,A=P.getAttribute("data-attr"),L=P.getAttribute("data-val")||!0,D=M._fullLayout._subplots.gl3d||[],k={},I=A.split("."),z=0;z1?(se=["toggleHover"],ae=["resetViews"]):z?(pe=["zoomInGeo","zoomOutGeo"],se=["hoverClosestGeo"],ae=["resetGeo"]):I?(se=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):X?(pe=["zoomInMapbox","zoomOutMapbox"],se=["toggleHover"],ae=["resetViewMapbox"]):j?se=["hoverClosestGl2d"]:$?se=["hoverClosestPie"]:K?(se=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):se=["toggleHover"],k&&(se=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(Te){for(var Pe=0;Pe0)){var x=function(M,T,P){for(var A=P.filter(function(I){return T[I].anchor===M._id}),L=0,D=0;D0?A.touches[0].clientX:0}function C(A,L,D,k){var I=S.ensureSingle(A,"rect",_.bgClassName,function(j){j.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=k.borderwidth%2==0?k.borderwidth:k.borderwidth-1,$=-k._offsetShift,Q=y.crispRound(L,k.borderwidth);I.attr({width:k._width+z,height:k._height+z,transform:w($,$),"stroke-width":Q}).call(m.stroke,k.bordercolor).call(m.fill,k.bgcolor)}function x(A,L,D,k){var I=L._fullLayout;S.ensureSingleById(I._topdefs,"clipPath",k._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:k._width,height:k._height})}function R(A,L,D,k){var I,z=L.calcdata,$=A.selectAll("g."+_.rangePlotClassName).data(D._subplotsWith,S.identity);$.enter().append("g").attr("class",function(Q){return _.rangePlotClassName+" "+Q}).call(y.setClipUrl,k._clipId,L),$.order(),$.exit().remove(),$.each(function(Q,j){var U=u.select(this),X=j===0,te=h.getFromId(L,Q,"y"),Z=te._name,K=k[Z],re={data:[],layout:{xaxis:{type:D.type,domain:[0,1],range:k.range.slice(),calendar:D.calendar},width:k._width,height:k._height,margin:{t:0,b:0,l:0,r:0}},_context:L._context};D.rangebreaks&&(re.layout.xaxis.rangebreaks=D.rangebreaks),re.layout[Z]={type:te.type,domain:[0,1],range:K.rangemode!=="match"?K.range.slice():te.range.slice(),calendar:te.calendar},te.rangebreaks&&(re.layout[Z].rangebreaks=te.rangebreaks),i.supplyDefaults(re);var q=re._fullLayout.xaxis,Y=re._fullLayout[Z];q.clearCalc(),q.setScale(),Y.clearCalc(),Y.setScale();var ee={id:Q,plotgroup:U,xaxis:q,yaxis:Y,isRangePlot:!0};X?I=ee:(ee.mainplot="xy",ee.mainplotinfo=I),c.rangePlot(L,ee,function(me,pe){for(var se=[],ae=0;ae=De.max)Ie=_e[ze+1];else if(Pe=De.pmax)Ie=_e[ze+1];else if(Peze._length||Ye+ht<0)return;tt=Ze+ht,ot=Ye+ht;break;case Ve:if(Ge="col-resize",Ze+ht>ze._length)return;tt=Ze+ht,ot=Ye;break;case $e:if(Ge="col-resize",Ye+ht<0)return;tt=Ze,ot=Ye+ht;break;default:Ge="ew-resize",tt=Ue,ot=Ue+ht}if(ot=0;j--){var U=T.append("path").attr(A).style("opacity",j?.1:L).call(S.stroke,k).call(S.fill,D).call(w.dashLine,j?"solid":z,j?4+I:I);if(v(U,O,R),$){var X=y(O.layout,"selections",R);U.style({cursor:"move"});var te={element:U.node(),plotinfo:M,gd:O,editHelpers:X,isActiveSelection:!0},Z=u(P,O);b(Z,U,te)}else U.style("pointer-events",j?"all":"none");Q[j]=U}var K=Q[0];Q[1].node().addEventListener("click",function(){return function(re,q){if(h(re)){var Y=+q.node().getAttribute("data-index");if(Y>=0){if(Y===re._fullLayout._activeSelectionIndex)return void _(re);re._fullLayout._activeSelectionIndex=Y,re._fullLayout._deactivateSelection=_,c(re)}}}(O,K)})}(O._fullLayout._selectionLayer)}function v(O,C,x){var R=x.xref+x.yref;w.setClipUrl(O,"clip"+C._fullLayout._uid+R,C)}function _(O){h(O)&&O._fullLayout._activeSelectionIndex>=0&&(i(O),delete O._fullLayout._activeSelectionIndex,c(O))}d.exports={draw:c,drawOne:p,activateLastSelection:function(O){if(h(O)){var C=O._fullLayout.selections.length-1;O._fullLayout._activeSelectionIndex=C,O._fullLayout._deactivateSelection=_,c(O)}}}},34200:function(d,s,n){var u=n(98192).u,b=n(92880).extendFlat;d.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:b({},u,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},81004:function(d){d.exports=function(s,n,u){u("newselection.mode"),u("newselection.line.width")&&(u("newselection.line.color"),u("newselection.line.dash")),u("activeselection.fillcolor"),u("activeselection.opacity")}},5968:function(d,s,n){var u=n(72760).selectMode,b=n(1936).clearOutline,i=n(9856),S=i.readPaths,w=i.writePaths,y=i.fixDatesForPaths;d.exports=function(m,a){if(m.length){var c=m[0][0];if(c){var h=c.getAttribute("d"),p=a.gd,v=p._fullLayout.newselection,_=a.plotinfo,O=_.xaxis,C=_.yaxis,x=a.isActiveSelection,R=a.dragmode,M=(p.layout||{}).selections||[];if(!u(R)&&x!==void 0){var T=p._fullLayout._activeSelectionIndex;if(T-1,Pn=[];if(function(bt){return bt&&Array.isArray(bt)&&bt[0].hoverOnBox!==!0}(cn)){de(Me,Fe,Ge);var Sn=function(bt,Vt){var Dt,it,at=bt[0],Bt=-1,_t=[];for(it=0;it0?function(bt,Vt){var Dt,it,at,Bt=[];for(at=0;at0&&Bt.push(Dt);if(Bt.length===1&&Bt[0]===Vt.searchInfo&&(it=Vt.searchInfo.cd[0].trace).selectedpoints.length===Vt.pointNumbers.length){for(at=0;at1||(it+=Vt.selectedpoints.length)>1))return!1;return it===1}(pt)&&(ln=Te(Sn))){for(ht&&ht.remove(),Ot=0;Ot=0})(ot)&&ot._fullLayout._deactivateShape(ot),function(Yt){return Yt._fullLayout._activeSelectionIndex>=0}(ot)&&ot._fullLayout._deactivateSelection(ot);var Ge=ot._fullLayout._zoomlayer,ht=p(je),pt=_(je);if(ht||pt){var St,Ft,zt=Ge.selectAll(".select-outline-"+tt.id);zt&&ot._fullLayout._outlining&&(ht&&(St=A(zt,Me)),St&&i.call("_guiRelayout",ot,{shapes:St}),pt&&!me(Me)&&(Ft=L(zt,Me)),Ft&&(ot._fullLayout._noEmitSelectedAtStart=!0,i.call("_guiRelayout",ot,{selections:Ft}).then(function(){Fe&&D(ot)})),ot._fullLayout._outlining=!1)}tt.selection={},tt.selection.selectionDefs=Me.selectionDefs=[],tt.selection.mergedPolygons=Me.mergedPolygons=[]}function ve(Me){return Me._id}function _e(Me,Fe,je,tt){if(!Me.calcdata)return[];var ot,Ge,ht,pt=[],St=Fe.map(ve),Ft=je.map(ve);for(ht=0;ht0?tt[0]:je;return!!Fe.selectedpoints&&Fe.selectedpoints.indexOf(ot)>-1}function Pe(Me,Fe,je){var tt,ot;for(tt=0;tt-1&&Fe;if(!Ge&&Fe){var gr=ke(Me,!0);if(gr.length){var sr=gr[0].xref,lr=gr[0].yref;if(sr&&lr){var zr=Ue(gr);Ze([Q(Me,sr,"x"),Q(Me,lr,"y")])(vr,zr)}}Me._fullLayout._noEmitSelectedAtStart?Me._fullLayout._noEmitSelectedAtStart=!1:qn&&Ye(Me,vr),ln._reselect=!1}if(!Ge&&ln._deselect){var Vr=ln._deselect;(function(eo,Jr,Yr){for(var to=0;to=0)tn._fullLayout._deactivateShape(tn);else if(!Ft){var zr=Et.clickmode;$.done($r).then(function(){if($.clear($r),sr===2){for(Kn.remove(),at=0;at-1&&pe(lr,tn,tt.xaxes,tt.yaxes,tt.subplot,tt,Kn),zr==="event"&&Ye(tn,void 0);y.click(tn,lr,Pn.id)}).catch(k.error)}},tt.doneFn=function(){tr.remove(),$.done($r).then(function(){$.clear($r),!Ot&&it&&tt.selectionDefs&&(it.subtract=An,tt.selectionDefs.push(it),tt.mergedPolygons.length=0,[].push.apply(tt.mergedPolygons,Dt)),(Ot||Ft)&&ye(tt,Ot),tt.doneFnCompleted&&tt.doneFnCompleted(vr),zt&&Ye(tn,_t)}).catch(k.error)}},clearOutline:R,clearSelectionsCache:ye,selectOnClick:pe}},46056:function(d,s,n){var u=n(13916),b=n(25376),i=n(52904).line,S=n(98192).u,w=n(92880).extendFlat,y=n(31780).templatedArray,m=(n(36208),n(45464)),a=n(21776).ye,c=n(97728);d.exports=y("shape",{visible:w({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},m.legend,{editType:"calc+arraydraw"}),legendgroup:w({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:w({},u.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:w({},u.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},i.color,{editType:"arraydraw"}),width:w({},i.width,{editType:"calc+arraydraw"}),dash:w({},S,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a({},{keys:Object.keys(c)}),font:b({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},96084:function(d,s,n){var u=n(3400),b=n(54460),i=n(85448),S=n(65152);function w(c){return m(c.line.width,c.xsizemode,c.x0,c.x1,c.path,!1)}function y(c){return m(c.line.width,c.ysizemode,c.y0,c.y1,c.path,!0)}function m(c,h,p,v,_,O){var C=c/2,x=O;if(h==="pixel"){var R=_?S.extractPathCoords(_,O?i.paramIsY:i.paramIsX):[p,v],M=u.aggNums(Math.max,null,R),T=u.aggNums(Math.min,null,R),P=T<0?Math.abs(T)+C:C,A=M>0?M+C:C;return{ppad:C,ppadplus:x?P:A,ppadminus:x?A:P}}return{ppad:C}}function a(c,h,p,v,_){var O=c.type==="category"||c.type==="multicategory"?c.r2c:c.d2c;if(h!==void 0)return[O(h),O(p)];if(v){var C,x,R,M,T=1/0,P=-1/0,A=v.match(i.segmentRE);for(c.type==="date"&&(O=S.decodeDate(O)),C=0;CP&&(P=M)));return P>=T?[T,P]:void 0}}d.exports=function(c){var h=c._fullLayout,p=u.filterVisible(h.shapes);if(p.length&&c._fullData.length)for(var v=0;v=ve?_e-Te:Te-_e,-180/Math.PI*Math.atan2(Pe,Ie)}(P,L,A,D):0),z.call(function(ve){return ve.call(S.font,I).attr({}),i.convertToTspans(ve,h),ve});var ae=function(ve,_e,we,Te,Pe,Ie,ze){var De,Qe,Ve,$e,Oe=Pe.label.textposition,ke=Pe.label.textangle,Re=Pe.label.padding,We=Pe.type,Ue=Math.PI/180*Ie,Ze=Math.sin(Ue),Ye=Math.cos(Ue),Je=Pe.label.xanchor,Me=Pe.label.yanchor;if(We==="line"){Oe==="start"?(De=ve,Qe=_e):Oe==="end"?(De=we,Qe=Te):(De=(ve+we)/2,Qe=(_e+Te)/2),Je==="auto"&&(Je=Oe==="start"?ke==="auto"?we>ve?"left":weve?"right":weve?"right":weve?"left":we1&&(De.length!==2||De[1][0]!=="Z")&&(K===0&&(De[0][0]="M"),k[Z]=De,j(),U())}}()}}function ve(Pe,Ie){(function(ze,De){if(k.length)for(var Qe=0;QeQe?(Oe=ze,Ue="y0",ke=Qe,Ze="y1"):(Oe=Qe,Ue="y1",ke=ze,Ze="y0"),vt(Dt),bt(Te,_e),function(it,at,Bt){var _t=at.xref,qt=at.yref,en=S.getFromId(Bt,_t),Jt=S.getFromId(Bt,qt),Zt="";_t==="paper"||en.autorange||(Zt+=_t),qt==="paper"||Jt.autorange||(Zt+=qt),h.setClipUrl(it,Zt?"clip"+Bt._fullLayout._uid+Zt:null,Bt)}(ve,_e,ye),Sn.moveFn=Fe==="move"?xt:st,Sn.altKey=Dt.altKey)},doneFn:function(){M(ye)||(_(ve),Vt(Te),A(ve,ye,_e),b.call("_guiRelayout",ye,Pe.getUpdateObj()))},clickFn:function(){M(ye)||Vt(Te)}};function vt(Dt){if(M(ye))Fe=null;else if(ht)Fe=Dt.target.tagName==="path"?"move":Dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var it=Sn.element.getBoundingClientRect(),at=it.right-it.left,Bt=it.bottom-it.top,_t=Dt.clientX-it.left,qt=Dt.clientY-it.top,en=!pt&&at>je&&Bt>tt&&!Dt.shiftKey?v.getCursor(_t/at,1-qt/Bt):"move";_(ve,en),Fe=en.split("-")[0]}}function xt(Dt,it){if(_e.type==="path"){var at=function(qt){return qt},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(qt){return cn(Et(qt)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(qt){return Cn(Ot(qt)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(St("x0",_e.x0=cn(Ie+Dt)),St("x1",_e.x1=cn(De+Dt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(St("y0",_e.y0=Cn(ze+it)),St("y1",_e.y1=Cn(Qe+it)));ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function st(Dt,it){if(pt){var at=function(Zn){return Zn},Bt=at,_t=at;ot?St("xanchor",_e.xanchor=cn(Ve+Dt)):(Bt=function(Zn){return cn(Et(Zn)+Dt)},zt&&zt.type==="date"&&(Bt=C.encodeDate(Bt))),Ge?St("yanchor",_e.yanchor=Cn($e+it)):(_t=function(Zn){return Cn(Ot(Zn)+it)},ln&&ln.type==="date"&&(_t=C.encodeDate(_t))),St("path",_e.path=L(Me,Bt,_t))}else if(ht){if(Fe==="resize-over-start-point"){var qt=Ie+Dt,en=Ge?ze-it:ze+it;St("x0",_e.x0=ot?qt:cn(qt)),St("y0",_e.y0=Ge?en:Cn(en))}else if(Fe==="resize-over-end-point"){var Jt=De+Dt,Zt=Ge?Qe-it:Qe+it;St("x1",_e.x1=ot?Jt:cn(Jt)),St("y1",_e.y1=Ge?Zt:Cn(Zt))}}else{var Nt=function(Zn){return Fe.indexOf(Zn)!==-1},sn=Nt("n"),rn=Nt("s"),_n=Nt("w"),wn=Nt("e"),An=sn?Oe+it:Oe,Kn=rn?ke+it:ke,fr=_n?Re+Dt:Re,Un=wn?We+Dt:We;Ge&&(sn&&(An=Oe-it),rn&&(Kn=ke-it)),(!Ge&&Kn-An>tt||Ge&&An-Kn>tt)&&(St(Ue,_e[Ue]=Ge?An:Cn(An)),St(Ze,_e[Ze]=Ge?Kn:Cn(Kn))),Un-fr>je&&(St(Ye,_e[Ye]=ot?fr:cn(fr)),St(Je,_e[Je]=ot?Un:cn(Un)))}ve.attr("d",x(ye,_e)),bt(Te,_e),m(ye,we,_e,Ft)}function bt(Dt,it){(ot||Ge)&&function(){var at=it.type!=="path",Bt=Dt.selectAll(".visual-cue").data([0]);Bt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var _t=Et(ot?it.xanchor:i.midRange(at?[it.x0,it.x1]:C.extractPathCoords(it.path,O.paramIsX))),qt=Ot(Ge?it.yanchor:i.midRange(at?[it.y0,it.y1]:C.extractPathCoords(it.path,O.paramIsY)));if(_t=C.roundPositionForSharpStrokeRendering(_t,1),qt=C.roundPositionForSharpStrokeRendering(qt,1),ot&&Ge){var en="M"+(_t-1-1)+","+(qt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Bt.attr("d",en)}else if(ot){var Jt="M"+(_t-1-1)+","+(qt-9-1)+"v18 h2 v-18 Z";Bt.attr("d",Jt)}else{var Zt="M"+(_t-9-1)+","+(qt-1-1)+"h18 v2 h-18 Z";Bt.attr("d",Zt)}}()}function Vt(Dt){Dt.selectAll(".visual-cue").remove()}v.init(Sn),Pn.node().onmousemove=vt}(k,ae,$,I,U,pe):$.editable===!0&&ae.style("pointer-events",ee||c.opacity(K)*Z<=.5?"stroke":"all");ae.node().addEventListener("click",function(){return function(ye,ve){if(T(ye)){var _e=+ve.node().getAttribute("data-index");if(_e>=0){if(_e===ye._fullLayout._activeShapeIndex)return void D(ye);ye._fullLayout._activeShapeIndex=_e,ye._fullLayout._deactivateShape=D,R(ye)}}}(k,ae)})}$._input&&$.visible===!0&&($.layer!=="below"?j(k._fullLayout._shapeUpperLayer):$.xref==="paper"||$.yref==="paper"?j(k._fullLayout._shapeLowerLayer):Q._hadPlotinfo?j((Q.mainplotinfo||Q).shapelayer):j(k._fullLayout._shapeLowerLayer))}function A(k,I,z){var $=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");h.setClipUrl(k,$?"clip"+I._fullLayout._uid+$:null,I)}function L(k,I,z){return k.replace(O.segmentRE,function($){var Q=0,j=$.charAt(0),U=O.paramIsX[j],X=O.paramIsY[j],te=O.numParams[j];return j+$.substr(1).replace(O.paramRE,function(Z){return Q>=te||(U[Q]?Z=I(Z):X[Q]&&(Z=z(Z)),Q++),Z})})}function D(k){T(k)&&k._fullLayout._activeShapeIndex>=0&&(a(k),delete k._fullLayout._activeShapeIndex,R(k))}d.exports={draw:R,drawOne:P,eraseActiveShape:function(k){if(T(k)){a(k);var I=k._fullLayout._activeShapeIndex,z=(k.layout||{}).shapes||[];if(I0&&Pse&&(ce="X"),ce});return Y>se&&(ae=ae.replace(/[\s,]*X.*/,""),b.log("Ignoring extra params in segment "+q)),ee+ae})}(w,m,c);if(w.xsizemode==="pixel"){var P=m(w.xanchor);h=P+w.x0,p=P+w.x1}else h=m(w.x0),p=m(w.x1);if(w.ysizemode==="pixel"){var A=c(w.yanchor);v=A-w.y0,_=A-w.y1}else v=c(w.y0),_=c(w.y1);if(O==="line")return"M"+h+","+v+"L"+p+","+_;if(O==="rect")return"M"+h+","+v+"H"+p+"V"+_+"H"+h+"Z";var L=(h+p)/2,D=(v+_)/2,k=Math.abs(L-h),I=Math.abs(D-v),z="A"+k+","+I,$=L+k+","+D;return"M"+$+z+" 0 1,1 "+L+","+(D-I)+z+" 0 0,1 "+$+"Z"}},41592:function(d,s,n){var u=n(4016);d.exports={moduleType:"component",name:"shapes",layoutAttributes:n(46056),supplyLayoutDefaults:n(43712),supplyDrawNewShapeDefaults:n(65144),includeBasePlot:n(36632)("shapes"),calcAutorange:n(96084),draw:u.draw,drawOne:u.drawOne}},97728:function(d){function s(i,S){return S?S.d2l(i):i}function n(i,S){return S?S.l2d(i):i}function u(i,S){return s(i.x1,S)-s(i.x0,S)}function b(i,S,w){return s(i.y1,w)-s(i.y0,w)}d.exports={x0:function(i){return i.x0},x1:function(i){return i.x1},y0:function(i){return i.y0},y1:function(i){return i.y1},slope:function(i,S,w){return i.type!=="line"?void 0:b(i,0,w)/u(i,S)},dx:u,dy:b,width:function(i,S){return Math.abs(u(i,S))},height:function(i,S,w){return Math.abs(b(i,0,w))},length:function(i,S,w){return i.type!=="line"?void 0:Math.sqrt(Math.pow(u(i,S),2)+Math.pow(b(i,0,w),2))},xcenter:function(i,S){return n((s(i.x1,S)+s(i.x0,S))/2,S)},ycenter:function(i,S,w){return n((s(i.y1,w)+s(i.y0,w))/2,w)}}},89861:function(d,s,n){var u=n(25376),b=n(66741),i=n(92880).extendDeepAll,S=n(67824).overrideAll,w=n(85656),y=n(31780).templatedArray,m=n(60876),a=y("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:a,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:i(b({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:u({})},font:u({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},60876:function(d){d.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},8132:function(d,s,n){var u=n(3400),b=n(51272),i=n(89861),S=n(60876).name,w=i.steps;function y(a,c,h){function p(x,R){return u.coerce(a,c,i,x,R)}for(var v=b(a,c,{name:"steps",handleItemDefaults:m}),_=0,O=0;O0&&(Y=Y.transition().duration(X.transition.duration).ease(X.transition.easing)),Y.attr("transform",y(q-.5*c.gripWidth,X._dims.currentValueTotalHeight))}}function z(U,X){var te=U._dims;return te.inputAreaStart+c.stepInset+(te.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,X))}function $(U,X){var te=U._dims;return Math.min(1,Math.max(0,(X-c.stepInset-te.inputAreaStart)/(te.inputAreaLength-2*c.stepInset-2*te.inputAreaStart)))}function Q(U,X,te){var Z=te._dims,K=w.ensureSingle(U,"rect",c.railTouchRectClass,function(re){re.call(D,X,U,te).style("pointer-events","all")});K.attr({width:Z.inputAreaLength,height:Math.max(Z.inputAreaWidth,c.tickOffset+te.ticklen+Z.labelHeight)}).call(i.fill,te.bgcolor).attr("opacity",0),S.setTranslate(K,0,Z.currentValueTotalHeight)}function j(U,X){var te=X._dims,Z=te.inputAreaLength-2*c.railInset,K=w.ensureSingle(U,"rect",c.railRectClass);K.attr({width:Z,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px"),S.setTranslate(K,c.railInset,.5*(te.inputAreaWidth-c.railWidth)+te.currentValueTotalHeight)}d.exports=function(U){var X=U._context.staticPlot,te=U._fullLayout,Z=function(me,pe){for(var se=me[c.name],ae=[],ce=0;ce0?[0]:[]);function re(me){me._commandObserver&&(me._commandObserver.remove(),delete me._commandObserver),b.autoMargin(U,O(me))}if(K.enter().append("g").classed(c.containerClassName,!0).style("cursor",X?null:"ew-resize"),K.exit().each(function(){u.select(this).selectAll("g."+c.groupClassName).each(re)}).remove(),Z.length!==0){var q=K.selectAll("g."+c.groupClassName).data(Z,C);q.enter().append("g").classed(c.groupClassName,!0),q.exit().each(re).remove();for(var Y=0;Y0||De<0){var Oe={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[A.side];ae.attr("transform",y(Oe[0],Oe[1]))}}}return Y.call(ee),K&&(j?Y.on(".opacity",null):(z=0,$=!0,Y.text(T).on("mouseover.opacity",function(){u.select(this).transition().duration(h.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){u.select(this).transition().duration(h.HIDE_PLACEHOLDER).style("opacity",0)})),Y.call(c.makeEditable,{gd:_}).on("edit",function(se){P!==void 0?S.call("_guiRestyle",_,M,se,P):S.call("_guiRelayout",_,M,se)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ee)}).on("input",function(se){this.text(se||" ").call(c.positionText,L.x,L.y)})),Y.classed("js-placeholder",$),k}}},88444:function(d,s,n){var u=n(25376),b=n(22548),i=n(92880).extendFlat,S=n(67824).overrideAll,w=n(66741),y=n(31780).templatedArray,m=y("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});d.exports=S(y("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:i(w({editType:"arraydraw"}),{}),font:u({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:b.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(d){d.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},91384:function(d,s,n){var u=n(3400),b=n(51272),i=n(88444),S=n(73712).name,w=i.buttons;function y(a,c,h){function p(v,_){return u.coerce(a,c,i,v,_)}p("visible",b(a,c,{name:"buttons",handleItemDefaults:m}).length>0)&&(p("active"),p("direction"),p("type"),p("showactive"),p("x"),p("y"),u.noneOrAll(a,c,["x","y"]),p("xanchor"),p("yanchor"),p("pad.t"),p("pad.r"),p("pad.b"),p("pad.l"),u.coerceFont(p,"font",h.font),p("bgcolor",h.paper_bgcolor),p("bordercolor"),p("borderwidth"))}function m(a,c){function h(p,v){return u.coerce(a,c,w,p,v)}h("visible",a.method==="skip"||Array.isArray(a.args))&&(h("method"),h("args"),h("args2"),h("label"),h("execute"))}d.exports=function(a,c){b(a,c,{name:S,handleItemDefaults:y})}},14420:function(d,s,n){var u=n(33428),b=n(7316),i=n(76308),S=n(43616),w=n(3400),y=n(72736),m=n(31780).arrayEditor,a=n(84284).LINE_SPACING,c=n(73712),h=n(37400);function p(z){return z._index}function v(z,$){return+z.attr(c.menuIndexAttrName)===$._index}function _(z,$,Q,j,U,X,te,Z){$.active=te,m(z.layout,c.name,$).applyUpdate("active",te),$.type==="buttons"?C(z,j,null,null,$):$.type==="dropdown"&&(U.attr(c.menuIndexAttrName,"-1"),O(z,j,U,X,$),Z||C(z,j,U,X,$))}function O(z,$,Q,j,U){var X=w.ensureSingle($,"g",c.headerClassName,function(Y){Y.style("pointer-events","all")}),te=U._dims,Z=U.active,K=U.buttons[Z]||c.blankHeaderOpts,re={y:U.pad.t,yPad:0,x:U.pad.l,xPad:0,index:0},q={width:te.headerWidth,height:te.headerHeight};X.call(x,U,K,z).call(k,U,re,q),w.ensureSingle($,"text",c.headerArrowClassName,function(Y){Y.attr("text-anchor","end").call(S.font,U.font).text(c.arrowSymbol[U.direction])}).attr({x:te.headerWidth-c.arrowOffsetX+U.pad.l,y:te.headerHeight/2+c.textOffsetY+U.pad.t}),X.on("click",function(){Q.call(I,String(v(Q,U)?-1:U._index)),C(z,$,Q,j,U)}),X.on("mouseover",function(){X.call(P)}),X.on("mouseout",function(){X.call(A,U)}),S.setTranslate($,te.lx,te.ly)}function C(z,$,Q,j,U){Q||(Q=$).attr("pointer-events","all");var X=function(ae){return+ae.attr(c.menuIndexAttrName)==-1}(Q)&&U.type!=="buttons"?[]:U.buttons,te=U.type==="dropdown"?c.dropdownButtonClassName:c.buttonClassName,Z=Q.selectAll("g."+te).data(w.filterVisible(X)),K=Z.enter().append("g").classed(te,!0),re=Z.exit();U.type==="dropdown"?(K.attr("opacity","0").transition().attr("opacity","1"),re.transition().attr("opacity","0").remove()):re.remove();var q=0,Y=0,ee=U._dims,me=["up","down"].indexOf(U.direction)!==-1;U.type==="dropdown"&&(me?Y=ee.headerHeight+c.gapButtonHeader:q=ee.headerWidth+c.gapButtonHeader),U.type==="dropdown"&&U.direction==="up"&&(Y=-c.gapButtonHeader+c.gapButton-ee.openHeight),U.type==="dropdown"&&U.direction==="left"&&(q=-c.gapButtonHeader+c.gapButton-ee.openWidth);var pe={x:ee.lx+q+U.pad.l,y:ee.ly+Y+U.pad.t,yPad:c.gapButton,xPad:c.gapButton,index:0},se={l:pe.x+U.borderwidth,t:pe.y+U.borderwidth};Z.each(function(ae,ce){var de=u.select(this);de.call(x,U,ae,z).call(k,U,pe),de.on("click",function(){u.event.defaultPrevented||(ae.execute&&(ae.args2&&U.active===ce?(_(z,U,0,$,Q,j,-1),b.executeAPICommand(z,ae.method,ae.args2)):(_(z,U,0,$,Q,j,ce),b.executeAPICommand(z,ae.method,ae.args))),z.emit("plotly_buttonclicked",{menu:U,button:ae,active:U.active}))}),de.on("mouseover",function(){de.call(P)}),de.on("mouseout",function(){de.call(A,U),Z.call(T,U)})}),Z.call(T,U),me?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=pe.y-se.t):(se.w=pe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=U.direction,j&&(Z.size()?function(ae,ce,de,ye,ve,_e){var we,Te,Pe,Ie=ve.direction,ze=Ie==="up"||Ie==="down",De=ve._dims,Qe=ve.active;if(ze)for(Te=0,Pe=0;Pe0?[0]:[]);if(U.enter().append("g").classed(c.containerClassName,!0).style("cursor","pointer"),U.exit().each(function(){u.select(this).selectAll("g."+c.headerGroupClassName).each(j)}).remove(),Q.length!==0){var X=U.selectAll("g."+c.headerGroupClassName).data(Q,p);X.enter().append("g").classed(c.headerGroupClassName,!0);for(var te=w.ensureSingle(U,"g",c.dropdownButtonGroupClassName,function(Y){Y.style("pointer-events","all")}),Z=0;Zk,$=w.barLength+2*w.barPad,Q=w.barWidth+2*w.barPad,j=x,U=M+T;U+Q>p&&(U=p-Q);var X=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(b.fill,w.barColor),z?(this.hbar=X.attr({rx:w.barRadius,ry:w.barRadius,x:j,y:U,width:$,height:Q}),this._hbarXMin=j+$/2,this._hbarTranslateMax=k-$):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var te=T>I,Z=w.barWidth+2*w.barPad,K=w.barLength+2*w.barPad,re=x+R,q=M;re+Z>h&&(re=h-Z);var Y=this.container.selectAll("rect.scrollbar-vertical").data(te?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(b.fill,w.barColor),te?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:re,y:q,width:Z,height:K}),this._vbarYMin=q+K/2,this._vbarTranslateMax=I-K):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,me=v-.5,pe=te?_+Z+.5:_+.5,se=O-.5,ae=z?C+Q+.5:C+.5,ce=c._topdefs.selectAll("#"+ee).data(z||te?[0]:[]);if(ce.exit().remove(),ce.enter().append("clipPath").attr("id",ee).append("rect"),z||te?(this._clipRect=ce.select("rect").attr({x:Math.floor(me),y:Math.floor(se),width:Math.ceil(pe)-Math.floor(me),height:Math.ceil(ae)-Math.floor(se)}),this.container.call(i.setClipUrl,ee,this.gd),this.bg.attr({x,y:M,width:R,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),z||te){var de=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var ye=u.behavior.drag().on("dragstart",function(){u.event.sourceEvent.preventDefault(),u.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ye),te&&this.vbar.on(".drag",null).call(ye)}this.setTranslate(m,a)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(i.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y-=u.event.dx),this.vbar&&(m-=u.event.dy),this.setTranslate(y,m)},w.prototype._onBoxWheel=function(){var y=this.translateX,m=this.translateY;this.hbar&&(y+=u.event.deltaY),this.vbar&&(m+=u.event.deltaY),this.setTranslate(y,m)},w.prototype._onBarDrag=function(){var y=this.translateX,m=this.translateY;if(this.hbar){var a=y+this._hbarXMin,c=a+this._hbarTranslateMax;y=(S.constrain(u.event.x,a,c)-a)/(c-a)*(this.position.w-this._box.w)}if(this.vbar){var h=m+this._vbarYMin,p=h+this._vbarTranslateMax;m=(S.constrain(u.event.y,h,p)-h)/(p-h)*(this.position.h-this._box.h)}this.setTranslate(y,m)},w.prototype.setTranslate=function(y,m){var a=this.position.w-this._box.w,c=this.position.h-this._box.h;if(y=S.constrain(y||0,0,a),m=S.constrain(m||0,0,c),this.translateX=y,this.translateY=m,this.container.call(i.setTranslate,this._box.l-this.position.l-y,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+y-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var h=y/a;this.hbar.call(i.setTranslate,y+h*this._hbarTranslateMax,m)}if(this.vbar){var p=m/c;this.vbar.call(i.setTranslate,y,m+p*this._vbarTranslateMax)}}},84284:function(d){d.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},36208:function(d){d.exports={axisRefDescription:function(s,n,u){return["If set to a",s,"axis id (e.g. *"+s+"* or","*"+s+"2*), the `"+s+"` position refers to a",s,"coordinate. If set to *paper*, the `"+s+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+u+"). If set to a",s,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+s+"2 domain* refers to the domain of the second",s," axis and a",s,"position of 0.5 refers to the","point between the",n,"and the",u,"of the domain of the","second",s,"axis."].join(" ")}}},48164:function(d){d.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(d){d.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},69104:function(d){d.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(d){d.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},87792:function(d){d.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(d){d.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(d){d.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(d,s){s.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],s.STYLE=s.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},9616:function(d,s){s.xmlns="http://www.w3.org/2000/xmlns/",s.svg="http://www.w3.org/2000/svg",s.xlink="http://www.w3.org/1999/xlink",s.svgAttrs={xmlns:s.svg,"xmlns:xlink":s.xlink}},64884:function(d,s,n){s.version=n(25788).version,n(88324),n(79288);for(var u=n(24040),b=s.register=u.register,i=n(22448),S=Object.keys(i),w=0;w",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},98308:function(d,s){s.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},s.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},s.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},s.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},s.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},s.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},11864:function(d,s,n){var u=n(20435),b=u.mod,i=u.modHalf,S=Math.PI,w=2*S;function y(h){return Math.abs(h[1]-h[0])>w-1e-14}function m(h,p){return i(p-h,w)}function a(h,p){if(y(p))return!0;var v,_;p[0](_=b(_,w))&&(_+=w);var O=b(h,w),C=O+w;return O>=v&&O<=_||C>=v&&C<=_}function c(h,p,v,_,O,C,x){O=O||0,C=C||0;var R,M,T,P,A,L=y([v,_]);function D($,Q){return[$*Math.cos(Q)+O,C-$*Math.sin(Q)]}L?(R=0,M=S,T=w):v<_?(R=v,T=_):(R=_,T=v),h=O&&h<=C);var O,C},pathArc:function(h,p,v,_,O){return c(null,h,p,v,_,O,0)},pathSector:function(h,p,v,_,O){return c(null,h,p,v,_,O,1)},pathAnnulus:function(h,p,v,_,O,C){return c(h,p,v,_,O,C,1)}}},38116:function(d,s,n){var u=n(83160).decode,b=n(63620),i=Array.isArray,S=ArrayBuffer,w=DataView;function y(p){return S.isView(p)&&!(p instanceof w)}function m(p){return i(p)||y(p)}s.isTypedArray=y,s.isArrayOrTypedArray=m,s.isArray1D=function(p){return!m(p[0])},s.ensureArray=function(p,v){return i(p)||(p=[]),p.length=v,p};var a={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function c(p){return p.constructor===ArrayBuffer}function h(p,v,_){if(m(p)){if(m(p[0])){for(var O=_,C=0;CR.max?C.set(x):C.set(+O)}},integer:{coerceFunction:function(O,C,x,R){O%1||!u(O)||R.min!==void 0&&OR.max?C.set(x):C.set(+O)}},string:{coerceFunction:function(O,C,x,R){if(typeof O!="string"){var M=typeof O=="number";R.strict!==!0&&M?C.set(String(O)):C.set(x)}else R.noBlank&&!O?C.set(x):C.set(O)}},color:{coerceFunction:function(O,C,x){b(O).isValid()?C.set(O):C.set(x)}},colorlist:{coerceFunction:function(O,C,x){Array.isArray(O)&&O.length&&O.every(function(R){return b(R).isValid()})?C.set(O):C.set(x)}},colorscale:{coerceFunction:function(O,C,x){C.set(S.get(O,x))}},angle:{coerceFunction:function(O,C,x){O==="auto"?C.set("auto"):u(O)?C.set(c(+O,360)):C.set(x)}},subplotid:{coerceFunction:function(O,C,x,R){var M=R.regex||a(x);typeof O=="string"&&M.test(O)?C.set(O):C.set(x)},validateFunction:function(O,C){var x=C.dflt;return O===x||typeof O=="string"&&!!a(x).test(O)}},flaglist:{coerceFunction:function(O,C,x,R){if((R.extras||[]).indexOf(O)===-1)if(typeof O=="string"){for(var M=O.split("+"),T=0;T=u&&X<=b?X:a}if(typeof X!="string"&&typeof X!="number")return a;X=String(X);var q=T(te),Y=X.charAt(0);!q||Y!=="G"&&Y!=="g"||(X=X.substr(1),te="");var ee=q&&te.substr(0,7)==="chinese",me=X.match(ee?R:x);if(!me)return a;var pe=me[1],se=me[3]||"1",ae=Number(me[5]||1),ce=Number(me[7]||0),de=Number(me[9]||0),ye=Number(me[11]||0);if(q){if(pe.length===2)return a;var ve;pe=Number(pe);try{var _e=O.getComponentMethod("calendars","getCal")(te);if(ee){var we=se.charAt(se.length-1)==="i";se=parseInt(se,10),ve=_e.newDate(pe,_e.toMonthIndex(pe,se,we),ae)}else ve=_e.newDate(pe,Number(se),ae)}catch{return a}return ve?(ve.toJD()-_)*c+ce*h+de*p+ye*v:a}pe=pe.length===2?(Number(pe)+2e3-M)%100+M:Number(pe),se-=1;var Te=new Date(Date.UTC(2e3,se,ae,ce,de));return Te.setUTCFullYear(pe),Te.getUTCMonth()!==se||Te.getUTCDate()!==ae?a:Te.getTime()+ye*v},u=s.MIN_MS=s.dateTime2ms("-9999"),b=s.MAX_MS=s.dateTime2ms("9999-12-31 23:59:59.9999"),s.isDateTime=function(X,te){return s.dateTime2ms(X,te)!==a};var A=90*c,L=3*h,D=5*p;function k(X,te,Z,K,re){if((te||Z||K||re)&&(X+=" "+P(te,2)+":"+P(Z,2),(K||re)&&(X+=":"+P(K,2),re))){for(var q=4;re%10==0;)q-=1,re/=10;X+="."+P(re,q)}return X}s.ms2DateTime=function(X,te,Z){if(typeof X!="number"||!(X>=u&&X<=b))return a;te||(te=0);var K,re,q,Y,ee,me,pe=Math.floor(10*y(X+.05,1)),se=Math.round(X-pe/10);if(T(Z)){var ae=Math.floor(se/c)+_,ce=Math.floor(y(X,c));try{K=O.getComponentMethod("calendars","getCal")(Z).fromJD(ae).formatDate("yyyy-mm-dd")}catch{K=C("G%Y-%m-%d")(new Date(se))}if(K.charAt(0)==="-")for(;K.length<11;)K="-0"+K.substr(1);else for(;K.length<10;)K="0"+K;re=te=u+c&&X<=b-c))return a;var te=Math.floor(10*y(X+.05,1)),Z=new Date(Math.round(X-te/10));return k(i("%Y-%m-%d")(Z),Z.getHours(),Z.getMinutes(),Z.getSeconds(),10*Z.getUTCMilliseconds()+te)},s.cleanDate=function(X,te,Z){if(X===a)return te;if(s.isJSDate(X)||typeof X=="number"&&isFinite(X)){if(T(Z))return w.error("JS Dates and milliseconds are incompatible with world calendars",X),te;if(!(X=s.ms2DateTimeLocal(+X))&&te!==void 0)return te}else if(!s.isDateTime(X,Z))return w.error("unrecognized date",X),te;return X};var I=/%\d?f/g,z=/%h/g,$={1:"1",2:"1",3:"2",4:"2"};function Q(X,te,Z,K){X=X.replace(I,function(q){var Y=Math.min(+q.charAt(1)||6,6);return(te/1e3%1+2).toFixed(Y).substr(2).replace(/0+$/,"")||"0"});var re=new Date(Math.floor(te+.05));if(X=X.replace(z,function(){return $[Z("%q")(re)]}),T(K))try{X=O.getComponentMethod("calendars","worldCalFmt")(X,te,K)}catch{return"Invalid"}return Z(X)(re)}var j=[59,59.9,59.99,59.999,59.9999];s.formatDate=function(X,te,Z,K,re,q){if(re=T(re)&&re,!te)if(Z==="y")te=q.year;else if(Z==="m")te=q.month;else{if(Z!=="d")return function(Y,ee){var me=y(Y+.05,c),pe=P(Math.floor(me/h),2)+":"+P(y(Math.floor(me/p),60),2);if(ee!=="M"){S(ee)||(ee=0);var se=(100+Math.min(y(Y/v,60),j[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),pe+=":"+se}return pe}(X,Z)+` `+Q(q.dayMonthYear,X,K,re);te=q.dayMonth+` `+q.year}return Q(te,X,K,re)};var U=3*c;s.incrementMonth=function(X,te,Z){Z=T(Z)&&Z;var K=y(X,c);if(X=Math.round(X-K),Z)try{var re=Math.round(X/c)+_,q=O.getComponentMethod("calendars","getCal")(Z),Y=q.fromJD(re);return te%12?q.add(Y,te,"m"):q.add(Y,te/12,"y"),(Y.toJD()-_)*c+K}catch{w.error("invalid ms "+X+" in calendar "+Z)}var ee=new Date(X+U);return ee.setUTCMonth(ee.getUTCMonth()+te)+K-U},s.findExactDates=function(X,te){for(var Z,K,re=0,q=0,Y=0,ee=0,me=T(te)&&O.getComponentMethod("calendars","getCal")(te),pe=0;pe0&&k[I+1][0]<0)return I;return null}switch(C=A==="RUS"||A==="FJI"?function(k){var I;if(D(k)===null)I=k;else for(I=new Array(k.length),M=0;MI?z[$++]=[k[M][0]+360,k[M][1]]:M===I?(z[$++]=k[M],z[$++]=[k[M][0],-90]):z[$++]=k[M];var Q=h.tester(z);Q.pts.pop(),L.push(Q)}:function(k){L.push(h.tester(k))},T.type){case"MultiPolygon":for(x=0;xZ&&(Z=q,U=re)}else U=X;return S.default(U).geometry.coordinates}(Q),z.fIn=k,z.fOut=Q,T.push(Q)}else m.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete M[I]}switch(x.type){case"FeatureCollection":var L=x.features;for(R=0;R100?(clearInterval(I),D("Unexpected error while fetching from "+A)):void k++},50)})}for(var T=0;T0&&(S.push(w),w=[])}return w.length>0&&S.push(w),S},s.makeLine=function(b){return b.length===1?{type:"LineString",coordinates:b[0]}:{type:"MultiLineString",coordinates:b}},s.makePolygon=function(b){if(b.length===1)return{type:"Polygon",coordinates:b};for(var i=new Array(b.length),S=0;S1||L<0||L>1?null:{x:m+C*L,y:a+M*L}}function y(m,a,c,h,p){var v=h*m+p*a;if(v<0)return h*h+p*p;if(v>c){var _=h-m,O=p-a;return _*_+O*O}var C=h*a-p*m;return C*C/c}s.segmentsIntersect=w,s.segmentDistance=function(m,a,c,h,p,v,_,O){if(w(m,a,c,h,p,v,_,O))return 0;var C=c-m,x=h-a,R=_-p,M=O-v,T=C*C+x*x,P=R*R+M*M,A=Math.min(y(C,x,T,p-m,v-a),y(C,x,T,_-m,O-a),y(R,M,P,m-p,a-v),y(R,M,P,c-p,h-v));return Math.sqrt(A)},s.getTextLocation=function(m,a,c,h){if(m===b&&h===i||(u={},b=m,i=h),u[c])return u[c];var p=m.getPointAtLength(S(c-h/2,a)),v=m.getPointAtLength(S(c+h/2,a)),_=Math.atan((v.y-p.y)/(v.x-p.x)),O=m.getPointAtLength(S(c,a)),C={x:(4*O.x+p.x+v.x)/6,y:(4*O.y+p.y+v.y)/6,theta:_};return u[c]=C,C},s.clearLocationCache=function(){b=null},s.getVisibleSegment=function(m,a,c){var h,p,v=a.left,_=a.right,O=a.top,C=a.bottom,x=0,R=m.getTotalLength(),M=R;function T(A){var L=m.getPointAtLength(A);A===0?h=L:A===R&&(p=L);var D=L.x_?L.x-_:0,k=L.yC?L.y-C:0;return Math.sqrt(D*D+k*k)}for(var P=T(x);P;){if((x+=P+c)>M)return;P=T(x)}for(P=T(M);P;){if(x>(M-=P+c))return;P=T(M)}return{min:x,max:M,len:M-x,total:R,isClosed:x===0&&M===R&&Math.abs(h.x-p.x)<.1&&Math.abs(h.y-p.y)<.1}},s.findPointOnPath=function(m,a,c,h){for(var p,v,_,O=(h=h||{}).pathLength||m.getTotalLength(),C=h.tolerance||.001,x=h.iterationLimit||30,R=m.getPointAtLength(0)[c]>m.getPointAtLength(O)[c]?-1:1,M=0,T=0,P=O;M0?P=p:T=p,M++}return v}},33040:function(d,s,n){var u=n(38248),b=n(49760),i=n(72160),S=n(8932),w=n(22548).defaultLine,y=n(38116).isArrayOrTypedArray,m=i(w);function a(p,v){var _=p;return _[3]*=v,_}function c(p){if(u(p))return m;var v=i(p);return v.length?v:m}function h(p){return u(p)?p:1}d.exports={formatColor:function(p,v,_){var O=p.color;O&&O._inputArray&&(O=O._inputArray);var C,x,R,M,T,P=y(O),A=y(v),L=S.extractOpts(p),D=[];if(C=L.colorscale!==void 0?S.makeColorScaleFuncFromTrace(p):c,x=P?function(I,z){return I[z]===void 0?m:i(C(I[z]))}:c,R=A?function(I,z){return I[z]===void 0?1:h(I[z])}:h,P||A)for(var k=0;k<_;k++)M=x(O,k),T=R(v,k),D[k]=a(M,T);else D=a(i(O),v);return D},parseColorScale:function(p){var v=S.extractOpts(p),_=v.colorscale;return v.reversescale&&(_=S.flipScale(v.colorscale)),_.map(function(O){var C=O[0],x=b(O[1]).toRgb();return{index:C,rgb:[x.r,x.g,x.b,x.a]}})}}},71688:function(d,s,n){var u=n(35536);function b(i){return[i]}d.exports={keyFun:function(i){return i.key},repeat:b,descend:u,wrap:b,unwrap:function(i){return i[0]}}},35536:function(d){d.exports=function(s){return s}},1396:function(d){d.exports=function(s,n){if(!n)return s;var u=1/Math.abs(n),b=u>1?(u*s+u*n)/u:s+n,i=String(b).length;if(i>16){var S=String(n).length;if(i>=String(s).length+S){var w=parseFloat(b).toPrecision(12);w.indexOf("e+")===-1&&(b=+w)}}return b}},3400:function(d,s,n){var u=n(33428),b=n(94336).E9,i=n(57624).E9,S=n(38248),w=n(39032),y=w.FP_SAFE,m=-y,a=w.BADNUM,c=d.exports={};c.adjustFormat=function(ce){return!ce||/^\d[.]\df/.test(ce)||/[.]\d%/.test(ce)?ce:ce==="0.f"?"~f":/^\d%/.test(ce)?"~%":/^\ds/.test(ce)?"~s":!/^[~,.0$]/.test(ce)&&/[&fps]/.test(ce)?"~"+ce:ce};var h={};c.warnBadFormat=function(ce){var de=String(ce);h[de]||(h[de]=1,c.warn('encountered bad format: "'+de+'"'))},c.noFormat=function(ce){return String(ce)},c.numberFormat=function(ce){var de;try{de=i(c.adjustFormat(ce))}catch{return c.warnBadFormat(ce),c.noFormat}return de},c.nestedProperty=n(22296),c.keyedContainer=n(37804),c.relativeAttr=n(23193),c.isPlainObject=n(63620),c.toLogRange=n(36896),c.relinkPrivateKeys=n(51528);var p=n(38116);c.isArrayBuffer=p.isArrayBuffer,c.isTypedArray=p.isTypedArray,c.isArrayOrTypedArray=p.isArrayOrTypedArray,c.isArray1D=p.isArray1D,c.ensureArray=p.ensureArray,c.concat=p.concat,c.maxRowLength=p.maxRowLength,c.minRowLength=p.minRowLength;var v=n(20435);c.mod=v.mod,c.modHalf=v.modHalf;var _=n(63064);c.valObjectMeta=_.valObjectMeta,c.coerce=_.coerce,c.coerce2=_.coerce2,c.coerceFont=_.coerceFont,c.coercePattern=_.coercePattern,c.coerceHoverinfo=_.coerceHoverinfo,c.coerceSelectionMarkerOpacity=_.coerceSelectionMarkerOpacity,c.validate=_.validate;var O=n(67555);c.dateTime2ms=O.dateTime2ms,c.isDateTime=O.isDateTime,c.ms2DateTime=O.ms2DateTime,c.ms2DateTimeLocal=O.ms2DateTimeLocal,c.cleanDate=O.cleanDate,c.isJSDate=O.isJSDate,c.formatDate=O.formatDate,c.incrementMonth=O.incrementMonth,c.dateTick0=O.dateTick0,c.dfltRange=O.dfltRange,c.findExactDates=O.findExactDates,c.MIN_MS=O.MIN_MS,c.MAX_MS=O.MAX_MS;var C=n(14952);c.findBin=C.findBin,c.sorterAsc=C.sorterAsc,c.sorterDes=C.sorterDes,c.distinctVals=C.distinctVals,c.roundUp=C.roundUp,c.sort=C.sort,c.findIndexOfMin=C.findIndexOfMin,c.sortObjectKeys=n(95376);var x=n(63084);c.aggNums=x.aggNums,c.len=x.len,c.mean=x.mean,c.median=x.median,c.midRange=x.midRange,c.variance=x.variance,c.stdev=x.stdev,c.interp=x.interp;var R=n(52248);c.init2dArray=R.init2dArray,c.transposeRagged=R.transposeRagged,c.dot=R.dot,c.translationMatrix=R.translationMatrix,c.rotationMatrix=R.rotationMatrix,c.rotationXYMatrix=R.rotationXYMatrix,c.apply3DTransform=R.apply3DTransform,c.apply2DTransform=R.apply2DTransform,c.apply2DTransform2=R.apply2DTransform2,c.convertCssMatrix=R.convertCssMatrix,c.inverseTransformMatrix=R.inverseTransformMatrix;var M=n(11864);c.deg2rad=M.deg2rad,c.rad2deg=M.rad2deg,c.angleDelta=M.angleDelta,c.angleDist=M.angleDist,c.isFullCircle=M.isFullCircle,c.isAngleInsideSector=M.isAngleInsideSector,c.isPtInsideSector=M.isPtInsideSector,c.pathArc=M.pathArc,c.pathSector=M.pathSector,c.pathAnnulus=M.pathAnnulus;var T=n(98308);c.isLeftAnchor=T.isLeftAnchor,c.isCenterAnchor=T.isCenterAnchor,c.isRightAnchor=T.isRightAnchor,c.isTopAnchor=T.isTopAnchor,c.isMiddleAnchor=T.isMiddleAnchor,c.isBottomAnchor=T.isBottomAnchor;var P=n(92348);c.segmentsIntersect=P.segmentsIntersect,c.segmentDistance=P.segmentDistance,c.getTextLocation=P.getTextLocation,c.clearLocationCache=P.clearLocationCache,c.getVisibleSegment=P.getVisibleSegment,c.findPointOnPath=P.findPointOnPath;var A=n(92880);c.extendFlat=A.extendFlat,c.extendDeep=A.extendDeep,c.extendDeepAll=A.extendDeepAll,c.extendDeepNoArrays=A.extendDeepNoArrays;var L=n(24248);c.log=L.log,c.warn=L.warn,c.error=L.error;var D=n(53756);c.counterRegex=D.counter;var k=n(91200);c.throttle=k.throttle,c.throttleDone=k.done,c.clearThrottle=k.clear;var I=n(52200);function z(ce){var de={};for(var ye in ce)for(var ve=ce[ye],_e=0;_ey||ce=de)&&S(ce)&&ce>=0&&ce%1==0},c.noop=n(16628),c.identity=n(35536),c.repeat=function(ce,de){for(var ye=new Array(de),ve=0;veye?Math.max(ye,Math.min(de,ce)):Math.max(de,Math.min(ye,ce))},c.bBoxIntersect=function(ce,de,ye){return ye=ye||0,ce.left<=de.right+ye&&de.left<=ce.right+ye&&ce.top<=de.bottom+ye&&de.top<=ce.bottom+ye},c.simpleMap=function(ce,de,ye,ve,_e){for(var we=ce.length,Te=new Array(we),Pe=0;Pe=Math.pow(2,ye)?_e>10?(c.warn("randstr failed uniqueness"),Ie):ce(de,ye,ve,(_e||0)+1):Ie},c.OptionControl=function(ce,de){ce||(ce={}),de||(de="opt");var ye={optionList:[],_newoption:function(ve){ve[de]=ce,ye[ve.name]=ve,ye.optionList.push(ve)}};return ye["_"+de]=ce,ye},c.smooth=function(ce,de){if((de=Math.round(de)||0)<2)return ce;var ye,ve,_e,we,Te=ce.length,Pe=2*Te,Ie=2*de-1,ze=new Array(Ie),De=new Array(Te);for(ye=0;ye=Pe&&(_e-=Pe*Math.floor(_e/Pe)),_e<0?_e=-1-_e:_e>=Te&&(_e=Pe-1-_e),we+=ce[_e]*ze[ve];De[ye]=we}return De},c.syncOrAsync=function(ce,de,ye){var ve;function _e(){return c.syncOrAsync(ce,de,ye)}for(;ce.length;)if((ve=(0,ce.splice(0,1)[0])(de))&&ve.then)return ve.then(_e);return ye&&ye(de)},c.stripTrailingSlash=function(ce){return ce.substr(-1)==="/"?ce.substr(0,ce.length-1):ce},c.noneOrAll=function(ce,de,ye){if(ce){var ve,_e=!1,we=!0;for(ve=0;ve0?_e:0})},c.fillArray=function(ce,de,ye,ve){if(ve=ve||c.identity,c.isArrayOrTypedArray(ce))for(var _e=0;_e1?_e+Te[1]:"";if(we&&(Te.length>1||Pe.length>4||ye))for(;ve.test(Pe);)Pe=Pe.replace(ve,"$1"+we+"$2");return Pe+Ie},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Z=/^\w*$/;c.templateString=function(ce,de){var ye={};return ce.replace(c.TEMPLATE_STRING_REGEX,function(ve,_e){var we;return Z.test(_e)?we=de[_e]:(ye[_e]=ye[_e]||c.nestedProperty(de,_e).get,we=ye[_e]()),c.isValidTextValue(we)?we:""})};var K={max:10,count:0,name:"hovertemplate"};c.hovertemplateString=function(){return me.apply(K,arguments)};var re={max:10,count:0,name:"texttemplate"};c.texttemplateString=function(){return me.apply(re,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};c.texttemplateStringForShapes=function(){return me.apply(Y,arguments)};var ee=/^[:|\|]/;function me(ce,de,ye){var ve=this,_e=arguments;de||(de={});var we={};return ce.replace(c.TEMPLATE_STRING_REGEX,function(Te,Pe,Ie){var ze=Pe==="_xother"||Pe==="_yother",De=Pe==="_xother_"||Pe==="_yother_",Qe=Pe==="xother_"||Pe==="yother_",Ve=Pe==="xother"||Pe==="yother"||ze||Qe||De,$e=Pe;(ze||De)&&($e=$e.substring(1)),(Qe||De)&&($e=$e.substring(0,$e.length-1));var Oe,ke,Re,We=null,Ue=null;if(ve.parseMultDiv){var Ze=function(Fe){var je=Fe.match(q);return je?{key:je[1],op:je[2],number:Number(je[3])}:{key:Fe,op:null,number:null}}($e);$e=Ze.key,We=Ze.op,Ue=Ze.number}if(Ve){if((Oe=de[$e])===void 0)return""}else for(Re=3;Re<_e.length;Re++)if(ke=_e[Re]){if(ke.hasOwnProperty($e)){Oe=ke[$e];break}if(Z.test($e)||(Oe=c.nestedProperty(ke,$e).get(),(Oe=we[$e]||c.nestedProperty(ke,$e).get())&&(we[$e]=Oe)),Oe!==void 0)break}if(Oe!==void 0&&(We==="*"&&(Oe*=Ue),We==="/"&&(Oe/=Ue)),Oe===void 0&&ve)return ve.count=48&&Te<=57,ze=Pe>=48&&Pe<=57;if(Ie&&(ve=10*ve+Te-48),ze&&(_e=10*_e+Pe-48),!Ie||!ze){if(ve!==_e)return ve-_e;if(Te!==Pe)return Te-Pe}}return _e-ve};var pe=2e9;c.seedPseudoRandom=function(){pe=2e9},c.pseudoRandom=function(){var ce=pe;return pe=(69069*pe+1)%4294967296,Math.abs(pe-ce)<429496729?c.pseudoRandom():pe/4294967296},c.fillText=function(ce,de,ye){var ve=Array.isArray(ye)?function(Te){ye.push(Te)}:function(Te){ye.text=Te},_e=c.extractOption(ce,de,"htx","hovertext");if(c.isValidTextValue(_e))return ve(_e);var we=c.extractOption(ce,de,"tx","text");return c.isValidTextValue(we)?ve(we):void 0},c.isValidTextValue=function(ce){return ce||ce===0},c.formatPercent=function(ce,de){de=de||0;for(var ye=(Math.round(100*ce*Math.pow(10,de))*Math.pow(.1,de)).toFixed(de)+"%",ve=0;ve1&&(ze=1):ze=0,c.strTranslate(_e-ze*(ye+Te),we-ze*(ve+Pe))+c.strScale(ze)+(Ie?"rotate("+Ie+(de?"":" "+ye+" "+ve)+")":"")},c.setTransormAndDisplay=function(ce,de){ce.attr("transform",c.getTextTransform(de)),ce.style("display",de.scale?null:"none")},c.ensureUniformFontSize=function(ce,de){var ye=c.extendFlat({},de);return ye.size=Math.max(de.size,ce._fullLayout.uniformtext.minsize||0),ye},c.join2=function(ce,de,ye){var ve=ce.length;return ve>1?ce.slice(0,-1).join(de)+ye+ce[ve-1]:ce.join(de)},c.bigFont=function(ce){return Math.round(1.2*ce)};var se=c.getFirefoxVersion(),ae=se!==null&&se<86;c.getPositionFromD3Event=function(){return ae?[u.event.layerX,u.event.layerY]:[u.event.offsetX,u.event.offsetY]}},63620:function(d){d.exports=function(s){return window&&window.process&&window.process.versions?Object.prototype.toString.call(s)==="[object Object]":Object.prototype.toString.call(s)==="[object Object]"&&Object.getPrototypeOf(s).hasOwnProperty("hasOwnProperty")}},37804:function(d,s,n){var u=n(22296),b=/^\w*$/;d.exports=function(i,S,w,y){var m,a,c;w=w||"name",y=y||"value";var h={};S&&S.length?(c=u(i,S),a=c.get()):a=i,S=S||"";var p={};if(a)for(m=0;m2)return h[C]=2|h[C],_.set(O,null);if(v){for(m=C;m1){var w=["LOG:"];for(S=0;S1){var y=[];for(S=0;S"),"long")}},i.warn=function(){var S;if(u.logging>0){var w=["WARN:"];for(S=0;S0){var y=[];for(S=0;S"),"stick")}},i.error=function(){var S;if(u.logging>0){var w=["ERROR:"];for(S=0;S0){var y=[];for(S=0;S"),"stick")}}},30988:function(d,s,n){var u=n(33428);d.exports=function(b,i,S){var w=b.selectAll("g."+S.replace(/\s/g,".")).data(i,function(m){return m[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",S),w.order();var y=b.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(m){m[0][y]=u.select(this)}),w}},52248:function(d,s,n){var u=n(36524);s.init2dArray=function(b,i){for(var S=new Array(b),w=0;wn/2?s-Math.round(s/n)*n:s}}},22296:function(d,s,n){var u=n(38248),b=n(38116).isArrayOrTypedArray;function i(h,p){return function(){var v,_,O,C,x,R=h;for(C=0;C/g),_=0;_a||M===b||Mh||x&&p(C))}:function(C,x){var R=C[0],M=C[1];if(R===b||Ra||M===b||Mh)return!1;var T,P,A,L,D,k=y.length,I=y[0][0],z=y[0][1],$=0;for(T=1;TMath.max(P,I)||M>Math.max(A,z)))if(M_||Math.abs(u(c,C))>m)return!0;return!1},i.filter=function(S,w){var y=[S[0]],m=0,a=0;function c(h){S.push(h);var p=y.length,v=m;y.splice(a+1);for(var _=v+1;_1&&c(S.pop()),{addPt:c,raw:S,filtered:y}}},5048:function(d,s,n){var u=n(16576),b=n(28624);d.exports=function(i,S,w){var y=i._fullLayout,m=!0;return y._glcanvas.each(function(a){if(a.regl)a.regl.preloadCachedCode(w);else if(!a.pick||y._has("parcoords")){try{a.regl=b({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:i._context.plotGlPixelRatio||n.g.devicePixelRatio,extensions:S||[],cachedCode:w||{}})}catch{m=!1}a.regl||(m=!1),m&&this.addEventListener("webglcontextlost",function(c){i&&i.emit&&i.emit("plotly_webglcontextlost",{event:c,layer:a.key})},!1)}}),m||u({container:y._glcontainer.node()}),m}},34296:function(d,s,n){var u=n(38248),b=n(25928);d.exports=function(i){var S;if(typeof(S=i&&i.hasOwnProperty("userAgent")?i.userAgent:function(){var p;return typeof navigator<"u"&&(p=navigator.userAgent),p&&p.headers&&typeof p.headers["user-agent"]=="string"&&(p=p.headers["user-agent"]),p}())!="string")return!0;var w=b({ua:{headers:{"user-agent":S}},tablet:!0,featureDetect:!1});if(!w){for(var y=S.split(" "),m=1;m-1;a--){var c=y[a];if(c.substr(0,8)==="Version/"){var h=c.substr(8).split(".")[0];if(u(h)&&(h=+h),h>=13)return!0}}}return w}},52416:function(d){d.exports=function(s,n){if(n instanceof RegExp){for(var u=n.toString(),b=0;bb.queueLength&&(S.undoQueue.queue.shift(),S.undoQueue.index--))},startSequence:function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!0,S.undoQueue.beginSequence=!0},stopSequence:function(S){S.undoQueue=S.undoQueue||{index:0,queue:[],sequence:!1},S.undoQueue.sequence=!1,S.undoQueue.beginSequence=!1},undo:function(S){var w,y;if(!(S.undoQueue===void 0||isNaN(S.undoQueue.index)||S.undoQueue.index<=0)){for(S.undoQueue.index--,w=S.undoQueue.queue[S.undoQueue.index],S.undoQueue.inSequence=!0,y=0;y=S.undoQueue.queue.length)){for(w=S.undoQueue.queue[S.undoQueue.index],S.undoQueue.inSequence=!0,y=0;yp}function c(h,p){return h>=p}s.findBin=function(h,p,v){if(u(p.start))return v?Math.ceil((h-p.start)/p.size-w)-1:Math.floor((h-p.start)/p.size+w);var _,O,C=0,x=p.length,R=0,M=x>1?(p[x-1]-p[0])/(x-1):1;for(O=M>=0?v?y:m:v?c:a,h+=M*w*(v?-1:1)*(M>=0?1:-1);C90&&b.log("Long binary search..."),C-1},s.sorterAsc=function(h,p){return h-p},s.sorterDes=function(h,p){return p-h},s.distinctVals=function(h){var p,v=h.slice();for(v.sort(s.sorterAsc),p=v.length-1;p>-1&&v[p]===S;p--);for(var _,O=v[p]-v[0]||1,C=O/(p||1)/1e4,x=[],R=0;R<=p;R++){var M=v[R],T=M-_;_===void 0?(x.push(M),_=M):T>C&&(O=Math.min(O,T),x.push(M),_=M)}return{vals:x,minDiff:O}},s.roundUp=function(h,p,v){for(var _,O=0,C=p.length-1,x=0,R=v?0:1,M=v?1:0,T=v?Math.ceil:Math.floor;O0&&(_=1),v&&_)return h.sort(p)}return _?h:h.reverse()},s.findIndexOfMin=function(h,p){p=p||i;for(var v,_=1/0,O=0;Ow.length)&&(y=w.length),u(S)||(S=!1),b(w[0])){for(a=new Array(y),m=0;mi.length-1)return i[i.length-1];var w=S%1;return w*i[Math.ceil(S)]+(1-w)*i[Math.floor(S)]}},43080:function(d,s,n){var u=n(72160);d.exports=function(b){return b?u(b):[0,0,0,1]}},9188:function(d,s,n){var u=n(2264),b=n(43616),i=n(3400),S=null;d.exports=function(){if(S!==null)return S;S=!1;var w=i.isIE()||i.isSafari()||i.isIOS();if(window.navigator.userAgent&&!w){var y=Array.from(u.CSS_DECLARATIONS).reverse(),m=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof m=="function")S=y.some(function(h){return m.apply(null,h)});else{var a=b.tester.append("image").attr("style",u.STYLE),c=window.getComputedStyle(a.node()).imageRendering;S=y.some(function(h){var p=h[1];return c===p||c===p.toLowerCase()}),a.remove()}}return S}},72736:function(d,s,n){var u=n(33428),b=n(3400),i=b.strTranslate,S=n(9616),w=n(84284).LINE_SPACING,y=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;s.convertToTspans=function(X,te,Z){var K=X.text(),re=!X.attr("data-notex")&&te&&te._context.typesetMath&&typeof MathJax<"u"&&K.match(y),q=u.select(X.node().parentNode);if(!q.empty()){var Y=X.attr("class")?X.attr("class").split(" ")[0]:"text";return Y+="-math",q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove(),X.style("display",null).attr({"data-unformatted":K,"data-math":"N"}),re?(te&&te._promises||[]).push(new Promise(function(me){X.style("display","none");var pe=parseInt(X.node().style.fontSize,10),se={fontSize:pe};(function(ae,ce,de){var ye,ve,_e,we,Te=parseInt((MathJax.version||"").split(".")[0]);if(Te===2||Te===3){var Pe=function(){var ze="math-output-"+b.randstr({},64),De=(we=u.select("body").append("div").attr({id:ze}).style({visibility:"hidden",position:"absolute","font-size":ce.fontSize+"px"}).text(ae.replace(m,"\\lt ").replace(a,"\\gt "))).node();return Te===2?MathJax.Hub.Typeset(De):MathJax.typeset([De])},Ie=function(){var ze=we.select(Te===2?".MathJax_SVG":".MathJax"),De=!ze.empty()&&we.select("svg").node();if(De){var Qe,Ve=De.getBoundingClientRect();Qe=Te===2?u.select("body").select("#MathJax_SVG_glyphs"):ze.select("defs"),de(ze,Qe,Ve)}else b.log("There was an error in the tex syntax.",ae),de();we.remove()};Te===2?MathJax.Hub.Queue(function(){return ve=b.extendDeepAll({},MathJax.Hub.config),_e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:c},displayAlign:"left"})},function(){if((ye=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},Pe,Ie,function(){if(ye!=="SVG")return MathJax.Hub.setRenderer(ye)},function(){return _e!==void 0&&(MathJax.Hub.processSectionDelay=_e),MathJax.Hub.Config(ve)}):Te===3&&(ve=b.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=c,(ye=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Pe(),Ie(),ye!=="svg"&&(MathJax.config.startup.output=ye),MathJax.config=ve}))}else b.warn("No MathJax version:",MathJax.version)})(re[2],se,function(ae,ce,de){q.selectAll("svg."+Y).remove(),q.selectAll("g."+Y+"-group").remove();var ye=ae&&ae.select("svg");if(!ye||!ye.node())return ee(),void me();var ve=q.append("g").classed(Y+"-group",!0).attr({"pointer-events":"none","data-unformatted":K,"data-math":"Y"});ve.node().appendChild(ye.node()),ce&&ce.node()&&ye.node().insertBefore(ce.node().cloneNode(!0),ye.node().firstChild);var _e=de.width,we=de.height;ye.attr({class:Y,height:we,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Te=X.node().style.fill||"black",Pe=ye.select("g");Pe.attr({fill:Te,stroke:Te});var Ie=Pe.node().getBoundingClientRect(),ze=Ie.width,De=Ie.height;(ze>_e||De>we)&&(ye.style("overflow","hidden"),ze=(Ie=ye.node().getBoundingClientRect()).width,De=Ie.height);var Qe=+X.attr("x"),Ve=+X.attr("y"),$e=-(pe||X.node().getBoundingClientRect().height)/4;if(Y[0]==="y")ve.attr({transform:"rotate("+[-90,Qe,Ve]+")"+i(-ze/2,$e-De/2)});else if(Y[0]==="l")Ve=$e-De/2;else if(Y[0]==="a"&&Y.indexOf("atitle")!==0)Qe=0,Ve=$e;else{var Oe=X.attr("text-anchor");Qe-=ze*(Oe==="middle"?.5:Oe==="end"?1:0),Ve=Ve+$e-De/2}ye.attr({x:Qe,y:Ve}),Z&&Z.call(X,ve),me(ve)})})):ee(),X}function ee(){q.empty()||(Y=X.attr("class")+"-math",q.select("svg."+Y).remove()),X.text("").style("white-space","pre");var me=function(pe,se){se=se.replace(C," ");var ae,ce=!1,de=[],ye=-1;function ve(){ye++;var Ue=document.createElementNS(S.svg,"tspan");u.select(Ue).attr({class:"line",dy:ye*w+"em"}),pe.appendChild(Ue),ae=Ue;var Ze=de;if(de=[{node:Ue}],Ze.length>1)for(var Ye=1;Ye doesnt match end tag <"+Ue+">. Pretending it did match.",se),ae=de[de.length-1].node}else b.log("Ignoring unexpected end tag .",se)}M.test(se)?ve():(ae=pe,de=[{node:pe}]);for(var Pe=se.split(x),Ie=0;Ie|>|>)/g,c=[["$","$"],["\\(","\\)"]],h={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},p={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},_="​",O=["http:","https:","mailto:","",void 0,":"],C=s.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,R=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;s.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,P=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function D(X,te){if(!X)return null;var Z=X.match(te),K=Z&&(Z[3]||Z[4]);return K&&$(K)}var k=/(^|;)\s*color:/;s.plainText=function(X,te){for(var Z=(te=te||{}).len!==void 0&&te.len!==-1?te.len:1/0,K=te.allowedTags!==void 0?te.allowedTags:["br"],re=X.split(x),q=[],Y="",ee=0,me=0;me3?q.push(pe.substr(0,de-3)+"..."):q.push(pe.substr(0,de));break}Y=""}}return q.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $(X){return X.replace(z,function(te,Z){return(Z.charAt(0)==="#"?function(K){if(!(K>1114111)){var re=String.fromCodePoint;if(re)return re(K);var q=String.fromCharCode;return K<=65535?q(K):q(55232+(K>>10),K%1024+56320)}}(Z.charAt(1)==="x"?parseInt(Z.substr(2),16):parseInt(Z.substr(1),10)):I[Z])||te})}function Q(X){var te=encodeURI(decodeURI(X)),Z=document.createElement("a"),K=document.createElement("a");Z.href=X,K.href=te;var re=Z.protocol,q=K.protocol;return O.indexOf(re)!==-1&&O.indexOf(q)!==-1?te:""}function j(X,te,Z){var K,re,q,Y=Z.horizontalAlign,ee=Z.verticalAlign||"top",me=X.node().getBoundingClientRect(),pe=te.node().getBoundingClientRect();return re=ee==="bottom"?function(){return me.bottom-K.height}:ee==="middle"?function(){return me.top+(me.height-K.height)/2}:function(){return me.top},q=Y==="right"?function(){return me.right-K.width}:Y==="center"?function(){return me.left+(me.width-K.width)/2}:function(){return me.left},function(){K=this.node().getBoundingClientRect();var se=q()-pe.left,ae=re()-pe.top,ce=Z.gd||{};if(Z.gd){ce._fullLayout._calcInverseTransform(ce);var de=b.apply3DTransform(ce._fullLayout._invTransform)(se,ae);se=de[0],ae=de[1]}return this.style({top:ae+"px",left:se+"px","z-index":1e3}),this}}s.convertEntities=$,s.sanitizeHTML=function(X){X=X.replace(C," ");for(var te=document.createElement("p"),Z=te,K=[],re=X.split(x),q=0;qw.ts+i?a():w.timer=setTimeout(function(){a(),w.timer=null},i)},s.done=function(b){var i=n[b];return i&&i.timer?new Promise(function(S){var w=i.onDone;i.onDone=function(){w&&w(),S(),i.onDone=null}}):Promise.resolve()},s.clear=function(b){if(b)u(n[b]),delete n[b];else for(var i in n)s.clear(i)}},36896:function(d,s,n){var u=n(38248);d.exports=function(b,i){if(b>0)return Math.log(b)/Math.LN10;var S=Math.log(Math.min(i[0],i[1]))/Math.LN10;return u(S)||(S=Math.log(Math.max(i[0],i[1]))/Math.LN10-6),S}},59972:function(d,s,n){var u=d.exports={},b=n(79552).locationmodeToLayer,i=n(55712).NO;u.getTopojsonName=function(S){return[S.scope.replace(/ /g,"-"),"_",S.resolution.toString(),"m"].join("")},u.getTopojsonPath=function(S,w){return S+w+".json"},u.getTopojsonFeatures=function(S,w){var y=b[S.locationmode],m=w.objects[y];return i(w,m).features}},11680:function(d){d.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(d){d.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},69820:function(d,s,n){var u=n(24040);d.exports=function(b){for(var i,S,w=u.layoutArrayContainers,y=u.layoutArrayRegexes,m=b.split("[")[0],a=0;a0&&S.log("Clearing previous rejected promises from queue."),P._promises=[]},s.cleanLayout=function(P){var A,L;P||(P={}),P.xaxis1&&(P.xaxis||(P.xaxis=P.xaxis1),delete P.xaxis1),P.yaxis1&&(P.yaxis||(P.yaxis=P.yaxis1),delete P.yaxis1),P.scene1&&(P.scene||(P.scene=P.scene1),delete P.scene1);var D=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,I=(w.subplotsRegistry.ternary||{}).attrRegex,z=(w.subplotsRegistry.gl3d||{}).attrRegex,$=Object.keys(P);for(A=0;A<$.length;A++){var Q=$[A];if(D&&D.test(Q)){var j=P[Q];j.anchor&&j.anchor!=="free"&&(j.anchor=a(j.anchor)),j.overlaying&&(j.overlaying=a(j.overlaying)),j.type||(j.isdate?j.type="date":j.islog?j.type="log":j.isdate===!1&&j.islog===!1&&(j.type="linear")),j.autorange!=="withzero"&&j.autorange!=="tozero"||(j.autorange=!0,j.rangemode="tozero"),j.insiderange&&delete j.range,delete j.islog,delete j.isdate,delete j.categories,x(j,"domain")&&delete j.domain,j.autotick!==void 0&&(j.tickmode===void 0&&(j.tickmode=j.autotick?"auto":"linear"),delete j.autotick),v(j)}else if(k&&k.test(Q))v(P[Q].radialaxis);else if(I&&I.test(Q)){var U=P[Q];v(U.aaxis),v(U.baxis),v(U.caxis)}else if(z&&z.test(Q)){var X=P[Q],te=X.cameraposition;if(Array.isArray(te)&&te[0].length===4){var Z=te[0],K=te[1],re=te[2],q=b([],Z),Y=[];for(L=0;L<3;++L)Y[L]=K[L]+re*q[2+4*L];X.camera={eye:{x:Y[0],y:Y[1],z:Y[2]},center:{x:K[0],y:K[1],z:K[2]},up:{x:0,y:0,z:1}},delete X.cameraposition}v(X.xaxis),v(X.yaxis),v(X.zaxis)}}var ee=Array.isArray(P.annotations)?P.annotations.length:0;for(A=0;A3?(de.x=1.02,de.xanchor="left"):de.x<-2&&(de.x=-.02,de.xanchor="right"),de.y>3?(de.y=1.02,de.yanchor="bottom"):de.y<-2&&(de.y=-.02,de.yanchor="top")),v(P),P.dragmode==="rotate"&&(P.dragmode="orbit"),m.clean(P),P.template&&P.template.layout&&s.cleanLayout(P.template.layout),P},s.cleanData=function(P){for(var A=0;A0)return P.substr(0,A)}s.hasParent=function(P,A){for(var L=M(A);L;){if(L in P)return!0;L=M(L)}return!1};var T=["x","y","z"];s.clearAxisTypes=function(P,A,L){for(var D=0;D1&&i.warn("Full array edits are incompatible with other edits",_);var P=h[""][""];if(m(P))c.set(null);else{if(!Array.isArray(P))return i.warn("Unrecognized full array edit value",_,P),!0;c.set(P)}return!R&&(O(M,T),C(a),!0)}var A,L,D,k,I,z,$,Q,j=Object.keys(h).map(Number).sort(S),U=c.get(),X=U||[],te=v(T,_).get(),Z=[],K=-1,re=X.length;for(A=0;AX.length-($?0:1))i.warn("index out of range",_,D);else if(z!==void 0)I.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",_,D),m(z)?Z.push(D):$?(z==="add"&&(z={}),X.splice(D,0,z),te&&te.splice(D,0,{})):i.warn("Unrecognized full object edit value",_,D,z),K===-1&&(K=D);else for(L=0;L=0;A--)X.splice(Z[A],1),te&&te.splice(Z[A],1);if(X.length?U||c.set(X):c.set(null),R)return!1;if(O(M,T),x!==b){var q;if(K===-1)q=j;else{for(re=Math.max(X.length,re),q=[],A=0;A=K);A++)q.push(D);for(A=K;A=Ue.data.length||Me<-Ue.data.length)throw new Error(Ye+" must be valid indices for gd.data.");if(Ze.indexOf(Me,Je+1)>-1||Me>=0&&Ze.indexOf(-Ue.data.length+Me)>-1||Me<0&&Ze.indexOf(Ue.data.length+Me)>-1)throw new Error("each index in "+Ye+" must be unique.")}}function te(Ue,Ze,Ye){if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(Ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ze)||(Ze=[Ze]),X(Ue,Ze,"currentIndices"),Ye===void 0||Array.isArray(Ye)||(Ye=[Ye]),Ye!==void 0&&X(Ue,Ye,"newIndices"),Ye!==void 0&&Ze.length!==Ye.length)throw new Error("current and new indices must be of equal length.")}function Z(Ue,Ze,Ye,Je,Me){(function(St,Ft,zt,Yt){var ln=S.isPlainObject(Yt);if(!Array.isArray(St.data))throw new Error("gd.data must be an array");if(!S.isPlainObject(Ft))throw new Error("update must be a key:value object");if(zt===void 0)throw new Error("indices must be an integer or array of integers");for(var tn in X(St,zt,"indices"),Ft){if(!Array.isArray(Ft[tn])||Ft[tn].length!==zt.length)throw new Error("attribute "+tn+" must be an array of length equal to indices array length");if(ln&&(!(tn in Yt)||!Array.isArray(Yt[tn])||Yt[tn].length!==Ft[tn].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Ue,Ze,Ye,Je);for(var Fe=function(St,Ft,zt,Yt){var ln,tn,Et,Ot,cn,Cn=S.isPlainObject(Yt),Pn=[];for(var Sn in Array.isArray(zt)||(zt=[zt]),zt=U(zt,St.data.length-1),Ft)for(var vt=0;vt-1&&Ye.indexOf("grouptitlefont")===-1?tt(Ye,Ye.replace("titlefont","title.font")):Ye.indexOf("titleposition")>-1?tt(Ye,Ye.replace("titleposition","title.position")):Ye.indexOf("titleside")>-1?tt(Ye,Ye.replace("titleside","title.side")):Ye.indexOf("titleoffset")>-1&&tt(Ye,Ye.replace("titleoffset","title.offset")):tt(Ye,Ye.replace("title","title.text"));function tt(ot,Ge){Ue[Ge]=Ue[ot],delete Ue[ot]}}function se(Ue,Ze,Ye){Ue=S.getGraphDiv(Ue),A.clearPromiseQueue(Ue);var Je={};if(typeof Ze=="string")Je[Ze]=Ye;else{if(!S.isPlainObject(Ze))return S.warn("Relayout fail.",Ze,Ye),Promise.reject();Je=S.extendFlat({},Ze)}Object.keys(Je).length&&(Ue.changed=!0);var Me=_e(Ue,Je),Fe=Me.flags;Fe.calc&&(Ue.calcdata=void 0);var je=[h.previousPromises];Fe.layoutReplot?je.push(L.layoutReplot):Object.keys(Je).length&&(ae(Ue,Fe,Me)||h.supplyDefaults(Ue),Fe.legend&&je.push(L.doLegend),Fe.layoutstyle&&je.push(L.layoutStyles),Fe.axrange&&ce(je,Me.rangesAltered),Fe.ticks&&je.push(L.doTicksRelayout),Fe.modebar&&je.push(L.doModeBar),Fe.camera&&je.push(L.doCamera),Fe.colorbars&&je.push(L.doColorBars),je.push(z)),je.push(h.rehover,h.redrag,h.reselect),m.add(Ue,se,[Ue,Me.undoit],se,[Ue,Me.redoit]);var tt=S.syncOrAsync(je,Ue);return tt&&tt.then||(tt=Promise.resolve(Ue)),tt.then(function(){return Ue.emit("plotly_relayout",Me.eventData),Ue})}function ae(Ue,Ze,Ye){var Je,Me,Fe=Ue._fullLayout;if(!Ze.axrange)return!1;for(var je in Ze)if(je!=="axrange"&&Ze[je])return!1;var tt=function(Ft,zt){return S.coerce(Je,Me,_,Ft,zt)},ot={};for(var Ge in Ye.rangesAltered){var ht=p.id2name(Ge);if(Je=Ue.layout[ht],Me=Fe[ht],v(Je,Me,tt,ot),Me._matchGroup){for(var pt in Me._matchGroup)if(pt!==Ge){var St=Fe[p.id2name(pt)];St.autorange=Me.autorange,St.range=Me.range.slice(),St._input.range=Me.range.slice()}}}return!0}function ce(Ue,Ze){var Ye=Ze?function(Je){var Me=[];for(var Fe in Ze){var je=p.getFromId(Je,Fe);if(Me.push(Fe),(je.ticklabelposition||"").indexOf("inside")!==-1&&je._anchorAxis&&Me.push(je._anchorAxis._id),je._matchGroup)for(var tt in je._matchGroup)Ze[tt]||Me.push(tt)}return p.draw(Je,Me,{skipTitle:!0})}:function(Je){return p.draw(Je,"redraw")};Ue.push(M,L.doAutoRangeAndConstraints,Ye,L.drawData,L.finalDraw)}var de=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ye=/^[xyz]axis[0-9]*\.autorange$/,ve=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function _e(Ue,Ze){var Ye,Je,Me,Fe=Ue.layout,je=Ue._fullLayout,tt=je._guiEditing,ot=Y(je._preGUI,tt),Ge=Object.keys(Ze),ht=p.list(Ue),pt=S.extendDeepAll({},Ze),St={};for(pe(Ze),Ge=Object.keys(Ze),Je=0;Je0&&typeof vt.parts[st]!="string";)st--;var bt=vt.parts[st],Vt=vt.parts[st-1]+"."+bt,Dt=vt.parts.slice(0,st).join("."),it=w(Ue.layout,Dt).get(),at=w(je,Dt).get(),Bt=vt.get();if(xt!==void 0){tn[Sn]=xt,Et[Sn]=bt==="reverse"?xt:q(Bt);var _t=c.getLayoutValObject(je,vt.parts);if(_t&&_t.impliedEdits&&xt!==null)for(var qt in _t.impliedEdits)Ot(S.relativeAttr(Sn,qt),_t.impliedEdits[qt]);if(["width","height"].indexOf(Sn)!==-1)if(xt){Ot("autosize",null);var en=Sn==="height"?"width":"height";Ot(en,je[en])}else je[Sn]=Ue._initialAutoSize[Sn];else if(Sn==="autosize")Ot("width",xt?null:je.width),Ot("height",xt?null:je.height);else if(Vt.match(de))Pn(Vt),w(je,Dt+"._inputRange").set(null);else if(Vt.match(ye)){Pn(Vt),w(je,Dt+"._inputRange").set(null);var Jt=w(je,Dt).get();Jt._inputDomain&&(Jt._input.domain=Jt._inputDomain.slice())}else Vt.match(ve)&&w(je,Dt+"._inputDomain").set(null);if(bt==="type"){cn=it;var Zt=at.type==="linear"&&xt==="log",Nt=at.type==="log"&&xt==="linear";if(Zt||Nt){if(cn&&cn.range)if(at.autorange)Zt&&(cn.range=cn.range[1]>cn.range[0]?[1,2]:[2,1]);else{var sn=cn.range[0],rn=cn.range[1];Zt?(sn<=0&&rn<=0&&Ot(Dt+".autorange",!0),sn<=0?sn=rn/1e6:rn<=0&&(rn=sn/1e6),Ot(Dt+".range[0]",Math.log(sn)/Math.LN10),Ot(Dt+".range[1]",Math.log(rn)/Math.LN10)):(Ot(Dt+".range[0]",Math.pow(10,sn)),Ot(Dt+".range[1]",Math.pow(10,rn)))}else Ot(Dt+".autorange",!0);Array.isArray(je._subplots.polar)&&je._subplots.polar.length&&je[vt.parts[0]]&&vt.parts[1]==="radialaxis"&&delete je[vt.parts[0]]._subplot.viewInitial["radialaxis.range"],a.getComponentMethod("annotations","convertCoords")(Ue,at,xt,Ot),a.getComponentMethod("images","convertCoords")(Ue,at,xt,Ot)}else Ot(Dt+".autorange",!0),Ot(Dt+".range",null);w(je,Dt+"._inputRange").set(null)}else if(bt.match(k)){var _n=w(je,Sn).get(),wn=(xt||{}).type;wn&&wn!=="-"||(wn="linear"),a.getComponentMethod("annotations","convertCoords")(Ue,_n,wn,Ot),a.getComponentMethod("images","convertCoords")(Ue,_n,wn,Ot)}var An=P.containerArrayMatch(Sn);if(An){Ye=An.array,Je=An.index;var Kn=An.property,fr=_t||{editType:"calc"};Je!==""&&Kn===""&&(P.isAddVal(xt)?Et[Sn]=null:P.isRemoveVal(xt)?Et[Sn]=(w(Fe,Ye).get()||[])[Je]:S.warn("unrecognized full object value",Ze)),D.update(ln,fr),St[Ye]||(St[Ye]={});var Un=St[Ye][Je];Un||(Un=St[Ye][Je]={}),Un[Kn]=xt,delete Ze[Sn]}else bt==="reverse"?(it.range?it.range.reverse():(Ot(Dt+".autorange",!0),it.range=[1,0]),at.autorange?ln.calc=!0:ln.plot=!0):(Sn==="dragmode"&&(xt===!1&&Bt!==!1||xt!==!1&&Bt===!1)||je._has("scatter-like")&&je._has("regl")&&Sn==="dragmode"&&(xt==="lasso"||xt==="select")&&Bt!=="lasso"&&Bt!=="select"||je._has("gl2d")?ln.plot=!0:_t?D.update(ln,_t):ln.calc=!0,vt.set(xt))}}for(Ye in St)P.applyContainerArrayChanges(Ue,ot(Fe,Ye),St[Ye],ln,ot)||(ln.plot=!0);for(var Zn in Cn){var tr=(cn=p.getFromId(Ue,Zn))&&cn._constraintGroup;if(tr)for(var Br in ln.calc=!0,tr)Cn[Br]||(p.getFromId(Ue,Br)._constraintShrinkable=!0)}(we(Ue)||Ze.height||Ze.width)&&(ln.plot=!0);var $r=je.shapes;for(Je=0;Je<$r.length;Je++)if($r[Je].showlegend){ln.calc=!0;break}return(ln.plot||ln.calc)&&(ln.layoutReplot=!0),{flags:ln,rangesAltered:Cn,undoit:Et,redoit:tn,eventData:pt}}function we(Ue){var Ze=Ue._fullLayout,Ye=Ze.width,Je=Ze.height;return Ue.layout.autosize&&h.plotAutoSize(Ue,Ue.layout,Ze),Ze.width!==Ye||Ze.height!==Je}function Te(Ue,Ze,Ye,Je){Ue=S.getGraphDiv(Ue),A.clearPromiseQueue(Ue),S.isPlainObject(Ze)||(Ze={}),S.isPlainObject(Ye)||(Ye={}),Object.keys(Ze).length&&(Ue.changed=!0),Object.keys(Ye).length&&(Ue.changed=!0);var Me=A.coerceTraceIndices(Ue,Je),Fe=me(Ue,S.extendFlat({},Ze),Me),je=Fe.flags,tt=_e(Ue,S.extendFlat({},Ye)),ot=tt.flags;(je.calc||ot.calc)&&(Ue.calcdata=void 0),je.clearAxisTypes&&A.clearAxisTypes(Ue,Me,Ye);var Ge=[];ot.layoutReplot?Ge.push(L.layoutReplot):je.fullReplot?Ge.push(s._doPlot):(Ge.push(h.previousPromises),ae(Ue,ot,tt)||h.supplyDefaults(Ue),je.style&&Ge.push(L.doTraceStyle),(je.colorbars||ot.colorbars)&&Ge.push(L.doColorBars),ot.legend&&Ge.push(L.doLegend),ot.layoutstyle&&Ge.push(L.layoutStyles),ot.axrange&&ce(Ge,tt.rangesAltered),ot.ticks&&Ge.push(L.doTicksRelayout),ot.modebar&&Ge.push(L.doModeBar),ot.camera&&Ge.push(L.doCamera),Ge.push(z)),Ge.push(h.rehover,h.redrag,h.reselect),m.add(Ue,Te,[Ue,Fe.undoit,tt.undoit,Fe.traces],Te,[Ue,Fe.redoit,tt.redoit,Fe.traces]);var ht=S.syncOrAsync(Ge,Ue);return ht&&ht.then||(ht=Promise.resolve(Ue)),ht.then(function(){return Ue.emit("plotly_update",{data:Fe.eventData,layout:tt.eventData}),Ue})}function Pe(Ue){return function(Ze){Ze._fullLayout._guiEditing=!0;var Ye=Ue.apply(null,arguments);return Ze._fullLayout._guiEditing=!1,Ye}}var Ie=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ze=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function De(Ue,Ze){for(var Ye=0;Ye1;)if(Je.pop(),(Ye=w(Ze,Je.join(".")+".uirevision").get())!==void 0)return Ye;return Ze.uirevision}function Ve(Ue,Ze){for(var Ye=0;Ye=Me.length?Me[0]:Me[Ge]:Me}function tt(Ge){return Array.isArray(Fe)?Ge>=Fe.length?Fe[0]:Fe[Ge]:Fe}function ot(Ge,ht){var pt=0;return function(){if(Ge&&++pt===ht)return Ge()}}return Je._frameWaitingCnt===void 0&&(Je._frameWaitingCnt=0),new Promise(function(Ge,ht){function pt(){Ue.emit("plotly_animating"),Je._lastFrameAt=-1/0,Je._timeToNext=0,Je._runningTransitions=0,Je._currentFrame=null;var Sn=function(){Je._animationRaf=window.requestAnimationFrame(Sn),Date.now()-Je._lastFrameAt>Je._timeToNext&&function(){Je._currentFrame&&Je._currentFrame.onComplete&&Je._currentFrame.onComplete();var vt=Je._currentFrame=Je._frameQueue.shift();if(vt){var xt=vt.name?vt.name.toString():null;Ue._fullLayout._currentFrame=xt,Je._lastFrameAt=Date.now(),Je._timeToNext=vt.frameOpts.duration,h.transition(Ue,vt.frame.data,vt.frame.layout,A.coerceTraceIndices(Ue,vt.frame.traces),vt.frameOpts,vt.transitionOpts).then(function(){vt.onComplete&&vt.onComplete()}),Ue.emit("plotly_animatingframe",{name:xt,frame:vt.frame,animation:{frame:vt.frameOpts,transition:vt.transitionOpts}})}else Ue.emit("plotly_animated"),window.cancelAnimationFrame(Je._animationRaf),Je._animationRaf=null}()};Sn()}var St,Ft,zt=0;function Yt(Sn){return Array.isArray(Me)?zt>=Me.length?Sn.transitionOpts=Me[zt]:Sn.transitionOpts=Me[0]:Sn.transitionOpts=Me,zt++,Sn}var ln=[],tn=Ze==null,Et=Array.isArray(Ze);if(tn||Et||!S.isPlainObject(Ze)){if(tn||["string","number"].indexOf(typeof Ze)!==-1)for(St=0;St0&&CnCn)&&Pn.push(Ft);ln=Pn}}ln.length>0?function(Sn){if(Sn.length!==0){for(var vt=0;vt=0;Je--)if(S.isPlainObject(Ze[Je])){var St=Ze[Je].name,Ft=(ot[St]||pt[St]||{}).name,zt=Ze[Je].name,Yt=ot[Ft]||pt[Ft];Ft&&zt&&typeof zt=="number"&&Yt&&I<5&&(I++,S.warn('addFrames: overwriting frame "'+(ot[Ft]||pt[Ft]).name+'" with a frame whose name of type "number" also equates to "'+Ft+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&S.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),pt[St]={name:St},ht.push({frame:h.supplyFrameDefaults(Ze[Je]),index:Ye&&Ye[Je]!==void 0&&Ye[Je]!==null?Ye[Je]:Ge+Je})}ht.sort(function(Sn,vt){return Sn.index>vt.index?-1:Sn.index=0;Je--){if(typeof(Me=ht[Je].frame).name=="number"&&S.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Me.name)for(;ot[Me.name="frame "+Ue._transitionData._counter++];);if(ot[Me.name]){for(Fe=0;Fe=0;Ye--)Je=Ze[Ye],Fe.push({type:"delete",index:Je}),je.unshift({type:"insert",index:Je,value:Me[Je]});var tt=h.modifyFrames,ot=h.modifyFrames,Ge=[Ue,je],ht=[Ue,Fe];return m&&m.add(Ue,tt,Ge,ot,ht),h.modifyFrames(Ue,Fe)},s.addTraces=function Ue(Ze,Ye,Je){Ze=S.getGraphDiv(Ze);var Me,Fe,je=[],tt=s.deleteTraces,ot=Ue,Ge=[Ze,je],ht=[Ze,Ye];for(function(pt,St,Ft){var zt,Yt;if(!Array.isArray(pt.data))throw new Error("gd.data must be an array.");if(St===void 0)throw new Error("traces must be defined.");for(Array.isArray(St)||(St=[St]),zt=0;zt=0&&ht=0&&ht=j.length)return!1;if(k.dimensions===2){if(z++,I.length===z)return k;var U=I[z];if(!T(U))return!1;k=j[Q][U]}else k=j[Q]}else k=j}}return k}function T(k){return k===Math.round(k)&&k>=0}function P(){var k,I,z={};for(k in c(z,S),u.subplotsRegistry)if((I=u.subplotsRegistry[k]).layoutAttributes)if(Array.isArray(I.attr))for(var $=0;$=U.length)return!1;$=(z=(u.transformsRegistry[U[X].type]||{}).attributes)&&z[I[2]],j=3}else{var te=k._module;if(te||(te=(u.modules[k.type||i.type.dflt]||{})._module),!te)return!1;if(!($=(z=te.attributes)&&z[Q])){var Z=te.basePlotModule;Z&&Z.attributes&&($=Z.attributes[Q])}$||($=i[Q])}return M($,I,j)},s.getLayoutValObject=function(k,I){var z=function($,Q){var j,U,X,te,Z=$._basePlotModules;if(Z){var K;for(j=0;j=h&&(c._input||{})._templateitemname;v&&(p=h);var _,O=a+"["+p+"]";function C(){_={},v&&(_[O]={},_[O][i]=v)}function x(M,T){v?u.nestedProperty(_[O],M).set(T):_[O+"."+M]=T}function R(){var M=_;return C(),M}return C(),{modifyBase:function(M,T){_[M]=T},modifyItem:x,getUpdateObj:R,applyUpdate:function(M,T){M&&x(M,T);var P=R();for(var A in P)u.nestedProperty(m,A).set(P[A])}}}},39172:function(d,s,n){var u=n(33428),b=n(24040),i=n(7316),S=n(3400),w=n(72736),y=n(73696),m=n(76308),a=n(43616),c=n(81668),h=n(45460),p=n(54460),v=n(84284),_=n(71888),O=_.enforce,C=_.clean,x=n(19280).doAutoRange,R="start";function M(D,k,I){for(var z=0;z=D[1]||$[1]<=D[0])&&Q[0]k[0])return!0}return!1}function T(D){var k,I,z,$,Q,j,U=D._fullLayout,X=U._size,te=X.p,Z=p.list(D,"",!0);if(U._paperdiv.style({width:D._context.responsive&&U.autosize&&!D._context._hasZeroWidth&&!D.layout.width?"100%":U.width+"px",height:D._context.responsive&&U.autosize&&!D._context._hasZeroHeight&&!D.layout.height?"100%":U.height+"px"}).selectAll(".main-svg").call(a.setSize,U.width,U.height),D._context.setBackground(D,U.paper_bgcolor),s.drawMainTitle(D),h.manage(D),!U._has("cartesian"))return i.previousPromises(D);function K(Ge,ht,pt){var St=Ge._lw/2;return Ge._id.charAt(0)==="x"?ht?pt==="top"?ht._offset-te-St:ht._offset+ht._length+te+St:X.t+X.h*(1-(Ge.position||0))+St%1:ht?pt==="right"?ht._offset+ht._length+te+St:ht._offset-te-St:X.l+X.w*(Ge.position||0)+St%1}for(k=0;k.5?"t":"b",ae=q._fullLayout.margin[se],ce=0;return Y.yref==="paper"?ce=ee+Y.pad.t+Y.pad.b:Y.yref==="container"&&(ce=function(de,ye,ve,_e,we){var Te=0;return ve==="middle"&&(Te+=we/2),de==="t"?(ve==="top"&&(Te+=we),Te+=_e-ye*_e):(ve==="bottom"&&(Te+=we),Te+=ye*_e),Te}(se,me,pe,q._fullLayout.height,ee)+Y.pad.t+Y.pad.b),ce>ae?ce:0}(D,I,te);if(Z>0){(function(q,Y,ee,me){var pe="title.automargin",se=q._fullLayout.title,ae=se.y>.5?"t":"b",ce={x:se.x,y:se.y,t:0,b:0},de={};se.yref==="paper"&&function(ye,ve,_e,we,Te){var Pe=ve.yref==="paper"?ye._fullLayout._size.h:ye._fullLayout.height,Ie=S.isTopAnchor(ve)?we:we-Te,ze=_e==="b"?Pe-Ie:Ie;return!(S.isTopAnchor(ve)&&_e==="t"||S.isBottomAnchor(ve)&&_e==="b")&&zeX?L.push({code:"unused",traceType:z,templateCount:U,dataCount:X}):X>U&&L.push({code:"reused",traceType:z,templateCount:U,dataCount:X})}}else L.push({code:"data"});if(function te(Z,K){for(var re in Z)if(re.charAt(0)!=="_"){var q=Z[re],Y=_(Z,re,K);b(q)?(Array.isArray(Z)&&q._template===!1&&q.templateitemname&&L.push({code:"missing",path:Y,templateitemname:q.templateitemname}),te(q,Y)):Array.isArray(q)&&O(q)&&te(q,Y)}}({data:k,layout:D},""),L.length)return L.map(C)}},67024:function(d,s,n){var u=n(38248),b=n(36424),i=n(7316),S=n(3400),w=n(81792),y=n(37164),m=n(63268),a=n(25788).version,c={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};d.exports=function(h,p){var v,_,O,C;function x(X){return!(X in p)||S.validate(p[X],c[X])}if(p=p||{},S.isPlainObject(h)?(v=h.data||[],_=h.layout||{},O=h.config||{},C={}):(h=S.getGraphDiv(h),v=S.extendDeep([],h.data),_=S.extendDeep({},h.layout),O=h._context,C=h._fullLayout||{}),!x("width")&&p.width!==null||!x("height")&&p.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+S.join2(c.format.values,", "," or ")+".");var R={};function M(X,te){return S.coerce(p,R,c,X,te)}var T=M("format"),P=M("width"),A=M("height"),L=M("scale"),D=M("setBackground"),k=M("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var z=S.extendFlat({},_);P?z.width=P:p.width===null&&u(C.width)&&(z.width=C.width),A?z.height=A:p.height===null&&u(C.height)&&(z.height=C.height);var $=S.extendFlat({},O,{_exportedPlot:!0,staticPlot:!0,setBackground:D}),Q=w.getRedrawFunc(I);function j(){return new Promise(function(X){setTimeout(X,w.getDelay(I._fullLayout))})}function U(){return new Promise(function(X,te){var Z=y(I,T,L),K=I._fullLayout.width,re=I._fullLayout.height;function q(){b.purge(I),document.body.removeChild(I)}if(T==="full-json"){var Y=i.graphJson(I,!1,"keepdata","object",!0,!0);return Y.version=a,Y=JSON.stringify(Y),q(),X(k?Y:w.encodeJSON(Y))}if(q(),T==="svg")return X(k?Z:w.encodeSVG(Z));var ee=document.createElement("canvas");ee.id=S.randstr(),m({format:T,width:K,height:re,scale:L,canvas:ee,svg:Z,promise:!0}).then(X).catch(te)})}return new Promise(function(X,te){b.newPlot(I,v,z,$).then(Q).then(j).then(U).then(function(Z){X(function(K){return k?K.replace(w.IMAGE_URL_PREFIX,""):K}(Z))}).catch(function(Z){te(Z)})})}},21480:function(d,s,n){var u=n(3400),b=n(7316),i=n(73060),S=n(20556).dfltConfig,w=u.isPlainObject,y=Array.isArray,m=u.isArrayOrTypedArray;function a(x,R,M,T,P,A){A=A||[];for(var L=Object.keys(x),D=0;D$.length&&T.push(p("unused",P,I.concat($.length)));var Z,K,re,q,Y,ee=$.length,me=Array.isArray(te);if(me&&(ee=Math.min(ee,te.length)),Q.dimensions===2)for(K=0;K$[K].length&&T.push(p("unused",P,I.concat(K,$[K].length)));var pe=$[K].length;for(Z=0;Z<(me?Math.min(pe,te[K].length):pe);Z++)re=me?te[K][Z]:te,q=z[K][Z],Y=$[K][Z],u.validate(q,re)?Y!==q&&Y!==+q&&T.push(p("dynamic",P,I.concat(K,Z),q,Y)):T.push(p("value",P,I.concat(K,Z),q))}else T.push(p("array",P,I.concat(K),z[K]));else for(K=0;K1&&A.push(p("object","layout"))),b.supplyDefaults(L);for(var D=L._fullData,k=M.length,I=0;I0&&Math.round(_)===_))return{vals:c};p=_}for(var O=m.calendar,C=h==="start",x=h==="end",R=y[a+"period0"],M=i(R,O)||0,T=[],P=[],A=[],L=c.length,D=0;D$;)z=S(z,-p,O);for(;z<=$;)z=S(z,p,O);I=S(z,-p,O)}else{for(z=M+(k=Math.round(($-M)/v))*v;z>$;)z-=v;for(;z<=$;)z+=v;I=z-v}T[D]=C?I:x?z:(I+z)/2,P[D]=I,A[D]=z}return{vals:T,starts:P,ends:A}}},26720:function(d){d.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(d,s,n){var u=n(33428),b=n(38248),i=n(3400),S=n(39032).FP_SAFE,w=n(24040),y=n(43616),m=n(79811),a=m.getFromId,c=m.isLinked;function h(D,k){var I,z,$=[],Q=D._fullLayout,j=v(Q,k,0),U=v(Q,k,1),X=O(D,k),te=X.min,Z=X.max;if(te.length===0||Z.length===0)return i.simpleMap(k.range,k.r2l);var K=te[0].val,re=Z[0].val;for(I=1;I0&&((ce=we-j(me)-U(pe))>Te?de/ce>Pe&&(se=me,ae=pe,Pe=de/ce):de/we>Pe&&(se={val:me.val,nopad:1},ae={val:pe.val,nopad:1},Pe=de/we));if(K===re){var Ie=K-1,ze=K+1;if(ve)if(K===0)$=[0,1];else{var De=(K>0?Z:te).reduce(function(Ve,$e){return Math.max(Ve,U($e))},0),Qe=K/(1-Math.min(.5,De/we));$=K>0?[0,Qe]:[Qe,0]}else $=_e?[Math.max(0,Ie),Math.max(1,ze)]:[Ie,ze]}else ve?(se.val>=0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:0,nopad:1})):_e&&(se.val-Pe*j(se)<0&&(se={val:0,nopad:1}),ae.val<=0&&(ae={val:1,nopad:1})),Pe=(ae.val-se.val-p(k,me.val,pe.val))/(we-j(se)-U(ae)),$=[se.val-Pe*j(se),ae.val+Pe*U(ae)];return $=L($,k),k.limitRange&&k.limitRange(),Y&&$.reverse(),i.simpleMap($,k.l2r||Number)}function p(D,k,I){var z=0;if(D.rangebreaks)for(var $=D.locateBreaks(k,I),Q=0;Q<$.length;Q++){var j=$[Q];z+=j.max-j.min}return z}function v(D,k,I){var z=.05*k._length,$=k._anchorAxis||{};if((k.ticklabelposition||"").indexOf("inside")!==-1||($.ticklabelposition||"").indexOf("inside")!==-1){var Q=k.isReversed();if(!Q){var j=i.simpleMap(k.range,k.r2l);Q=j[1]0?I.ppadplus:I.ppadminus)||I.ppad||0),ye=ce((D._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ve=ce(I.vpadplus||I.vpad),_e=ce(I.vpadminus||I.vpad);if(!se){if(Z=1/0,K=-1/0,pe)for(z=0;z0&&(Z=$),$>K&&$-S&&(Z=$),$>K&&$=Pe;z--)Te(z);return{min:re,max:q,opts:I}},concatExtremes:O};var _=3;function O(D,k,I){var z,$,Q,j=k._id,U=D._fullData,X=D._fullLayout,te=[],Z=[];function K(me,pe){for(z=0;z=I&&(te.extrapad||!j)){U=!1;break}$(k,te.val)&&te.pad<=I&&(j||!te.extrapad)&&(D.splice(X,1),X--)}if(U){var Z=Q&&k===0;D.push({val:k,pad:Z?0:I,extrapad:!Z&&j})}}function M(D){return b(D)&&Math.abs(D)=k}function A(D,k,I){return k===void 0||I===void 0||(k=D.d2l(k))=X&&(Q=X,I=X),j<=X&&(j=X,z=X)}}return I=function(te,Z){var K=Z.autorangeoptions;return K&&K.minallowed!==void 0&&A(Z,K.minallowed,K.maxallowed)?K.minallowed:K&&K.clipmin!==void 0&&A(Z,K.clipmin,K.clipmax)?Math.max(te,Z.d2l(K.clipmin)):te}(I,k),z=function(te,Z){var K=Z.autorangeoptions;return K&&K.maxallowed!==void 0&&A(Z,K.minallowed,K.maxallowed)?K.maxallowed:K&&K.clipmax!==void 0&&A(Z,K.clipmin,K.clipmax)?Math.min(te,Z.d2l(K.clipmax)):te}(z,k),[I,z]}},76808:function(d){d.exports=function(s,n,u){var b,i;if(u){var S=n==="reversed"||n==="min reversed"||n==="max reversed";b=u[S?1:0],i=u[S?0:1]}var w=s("autorangeoptions.minallowed",i===null?b:void 0),y=s("autorangeoptions.maxallowed",b===null?i:void 0);w===void 0&&s("autorangeoptions.clipmin"),y===void 0&&s("autorangeoptions.clipmax"),s("autorangeoptions.include")}},54460:function(d,s,n){var u=n(33428),b=n(38248),i=n(7316),S=n(24040),w=n(3400),y=w.strTranslate,m=n(72736),a=n(81668),c=n(76308),h=n(43616),p=n(94724),v=n(98728),_=n(39032),O=_.ONEMAXYEAR,C=_.ONEAVGYEAR,x=_.ONEMINYEAR,R=_.ONEMAXQUARTER,M=_.ONEAVGQUARTER,T=_.ONEMINQUARTER,P=_.ONEMAXMONTH,A=_.ONEAVGMONTH,L=_.ONEMINMONTH,D=_.ONEWEEK,k=_.ONEDAY,I=k/2,z=_.ONEHOUR,$=_.ONEMIN,Q=_.ONESEC,j=_.MINUS_SIGN,U=_.BADNUM,X={K:"zeroline"},te={K:"gridline",L:"path"},Z={K:"minor-gridline",L:"path"},K={K:"tick",L:"path"},re={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Y=n(84284),ee=Y.MID_SHIFT,me=Y.CAP_SHIFT,pe=Y.LINE_SPACING,se=Y.OPPOSITE_SIDE,ae=d.exports={};ae.setConvert=n(78344);var ce=n(52976),de=n(79811),ye=de.idSort,ve=de.isLinked;ae.id2name=de.id2name,ae.name2id=de.name2id,ae.cleanId=de.cleanId,ae.list=de.list,ae.listIds=de.listIds,ae.getFromId=de.getFromId,ae.getFromTrace=de.getFromTrace;var _e=n(19280);ae.getAutoRange=_e.getAutoRange,ae.findExtremes=_e.findExtremes;var we=1e-4;function Te(it){var at=(it[1]-it[0])*we;return[it[0]-at,it[1]+at]}ae.coerceRef=function(it,at,Bt,_t,qt,en){var Jt=_t.charAt(_t.length-1),Zt=Bt._fullLayout._subplots[Jt+"axis"],Nt=_t+"ref",sn={};return qt||(qt=Zt[0]||(typeof en=="string"?en:en[0])),en||(en=qt),Zt=Zt.concat(Zt.map(function(rn){return rn+" domain"})),sn[Nt]={valType:"enumerated",values:Zt.concat(en?typeof en=="string"?[en]:en:[]),dflt:qt},w.coerce(it,at,sn,Nt)},ae.getRefType=function(it){return it===void 0?it:it==="paper"?"paper":it==="pixel"?"pixel":/( domain)$/.test(it)?"domain":"range"},ae.coercePosition=function(it,at,Bt,_t,qt,en){var Jt,Zt;if(ae.getRefType(_t)!=="range")Jt=w.ensureNumber,Zt=Bt(qt,en);else{var Nt=ae.getFromId(at,_t);Zt=Bt(qt,en=Nt.fraction2r(en)),Jt=Nt.cleanPos}it[qt]=Jt(Zt)},ae.cleanPosition=function(it,at,Bt){return(Bt==="paper"||Bt==="pixel"?w.ensureNumber:ae.getFromId(at,Bt).cleanPos)(it)},ae.redrawComponents=function(it,at){at=at||ae.listIds(it);var Bt=it._fullLayout;function _t(qt,en,Jt,Zt){for(var Nt=S.getComponentMethod(qt,en),sn={},rn=0;rn_t&&_n2e-6||((Bt-it._forceTick0)/it._minDtick%1+1.000001)%1>2e-6)&&(it._minDtick=0)):it._minDtick=0},ae.saveRangeInitial=function(it,at){for(var Bt=ae.list(it,"",!0),_t=!1,qt=0;qt.3*Vr||lr(Br)||lr($r))){var eo=tr.dtick/2;Un+=Un+eo.8){var qn=Number(tr.substr(1));vr.exactYears>.8&&qn%12==0?Un=ae.tickIncrement(Un,"M6","reverse")+1.5*k:vr.exactMonths>.8?Un=ae.tickIncrement(Un,"M1","reverse")+15.5*k:Un-=I;var gr=ae.tickIncrement(Un,tr);if(gr<=Br)return gr}return Un}(fr,it,Kn,Zt,qt)),An=fr;An<=Nt;)An=ae.tickIncrement(An,Kn,!1,qt);return{start:at.c2r(fr,0,qt),end:at.c2r(An,0,qt),size:Kn,_dataSpan:Nt-Zt}},ae.prepMinorTicks=function(it,at,Bt){if(!at.minor.dtick){delete it.dtick;var _t,qt=at.dtick&&b(at._tmin);if(qt){var en=ae.tickIncrement(at._tmin,at.dtick,!0);_t=[at._tmin,.99*en+.01*at._tmin]}else{var Jt=w.simpleMap(at.range,at.r2l);_t=[Jt[0],.8*Jt[0]+.2*Jt[1]]}if(it.range=w.simpleMap(_t,at.l2r),it._isMinor=!0,ae.prepTicks(it,Bt),qt){var Zt=b(at.dtick),Nt=b(it.dtick),sn=Zt?at.dtick:+at.dtick.substring(1),rn=Nt?it.dtick:+it.dtick.substring(1);Zt&&Nt?De(sn,rn)?sn===2*D&&rn===2*k&&(it.dtick=D):sn===2*D&&rn===3*k?it.dtick=D:sn!==D||(at._input.minor||{}).nticks?Qe(sn/rn,2.5)?it.dtick=sn/2:it.dtick=sn:it.dtick=k:String(at.dtick).charAt(0)==="M"?Nt?it.dtick="M1":De(sn,rn)?sn>=12&&rn===2&&(it.dtick="M3"):it.dtick=at.dtick:String(it.dtick).charAt(0)==="L"?String(at.dtick).charAt(0)==="L"?De(sn,rn)||(it.dtick=Qe(sn/rn,2.5)?at.dtick/2:at.dtick):it.dtick="D1":it.dtick==="D2"&&+at.dtick>1&&(it.dtick=1)}it.range=at.range}at.minor._tick0Init===void 0&&(it.tick0=at.tick0)},ae.prepTicks=function(it,at){var Bt=w.simpleMap(it.range,it.r2l,void 0,void 0,at);if(it.tickmode==="auto"||!it.dtick){var _t,qt=it.nticks;qt||(it.type==="category"||it.type==="multicategory"?(_t=it.tickfont?w.bigFont(it.tickfont.size||12):15,qt=it._length/_t):(_t=it._id.charAt(0)==="y"?40:80,qt=w.constrain(it._length/_t,4,9)+1),it._name==="radialaxis"&&(qt*=2)),it.minor&&it.minor.tickmode!=="array"||it.tickmode==="array"&&(qt*=100),it._roughDTick=Math.abs(Bt[1]-Bt[0])/qt,ae.autoTicks(it,it._roughDTick),it._minDtick>0&&it.dtick<2*it._minDtick&&(it.dtick=it._minDtick,it.tick0=it.l2r(it._forceTick0))}it.ticklabelmode==="period"&&function(en){var Jt;function Zt(){return!(b(en.dtick)||en.dtick.charAt(0)!=="M")}var Nt=Zt(),sn=ae.getTickFormat(en);if(sn){var rn=en._dtickInit!==en.dtick;/%[fLQsSMX]/.test(sn)||(/%[HI]/.test(sn)?(Jt=z,rn&&!Nt&&en.dtick=(Zn?0:1);tr--){var Br=!tr;tr?(it._dtickInit=it.dtick,it._tick0Init=it.tick0):(it.minor._dtickInit=it.minor.dtick,it.minor._tick0Init=it.minor.tick0);var $r=tr?it:w.extendFlat({},it,it.minor);if(Br?ae.prepMinorTicks($r,it,at):ae.prepTicks($r,at),$r.tickmode!=="array")if($r.tickmode!=="sync"){var vr=Te(Nt),qn=vr[0],gr=vr[1],sr=b($r.dtick),lr=qt==="log"&&!(sr||$r.dtick.charAt(0)==="L"),zr=ae.tickFirst($r,at);if(tr){if(it._tmin=zr,zr=gr:Yr<=gr;Yr=ae.tickIncrement(Yr,to,sn,en)){if(tr&&Vr++,$r.rangebreaks&&!sn){if(Yr=_n)break}if(fr.length>wn||Yr===Jr)break;Jr=Yr;var co={value:Yr};tr?(lr&&Yr!==(0|Yr)&&(co.simpleLabel=!0),Jt>1&&Vr%Jt&&(co.skipLabel=!0),fr.push(co)):(co.minor=!0,Un.push(co))}}else fr=[],An=Oe(it);else tr?(fr=[],An=ke(it,!Br)):(Un=[],Kn=ke(it,!Br))}if(Zn&&!(it.minor.ticks==="inside"&&it.ticks==="outside"||it.minor.ticks==="outside"&&it.ticks==="inside")){for(var Fo=fr.map(function(On){return On.value}),_o=[],$o=0;$o0?(Gt=kr-1,on=kr):(Gt=kr,on=kr);var an,Tn=On[Gt].value,zn=On[on].value,Gn=Math.abs(zn-Tn),Lr=ir||Gn,Ur=0;Lr>=x?Ur=Gn>=x&&Gn<=O?Gn:C:ir===M&&Lr>=T?Ur=Gn>=T&&Gn<=R?Gn:M:Lr>=L?Ur=Gn>=L&&Gn<=P?Gn:A:ir===D&&Lr>=D?Ur=D:Lr>=k?Ur=k:ir===I&&Lr>=I?Ur=I:ir===z&&Lr>=z&&(Ur=z),Ur>=Gn&&(Ur=Gn,an=!0);var qr=Er+Ur;if(Yn.rangebreaks&&Ur>0){for(var Cr=0,wo=0;wo<84;wo++){var Nr=(wo+.5)/84;Yn.maskBreaks(Er*(1-Nr)+Nr*qr)!==U&&Cr++}(Ur*=Cr/84)||(On[kr].drop=!0),an&&Gn>D&&(Ur=Gn)}(Ur>0||kr===0)&&(On[kr].periodX=Er+Ur/2)}}(fr,it,it._definedDelta),it.rangebreaks){var Dr=it._id.charAt(0)==="y",Sr=1;it.tickmode==="auto"&&(Sr=it.tickfont?it.tickfont.size:12);var Zr=NaN;for(Bt=fr.length-1;Bt>-1;Bt--)if(fr[Bt].drop)fr.splice(Bt,1);else{fr[Bt].value=st(fr[Bt].value,it);var go=it.c2p(fr[Bt].value);(Dr?Zr>go-Sr:Zr_n||io_n&&(oo.periodX=_n),io10||_t.substr(5)!=="01-01"?it._tickround="d":it._tickround=+at.substr(1)%12==0?"y":"m";else if(at>=k&&qt<=10||at>=15*k)it._tickround="d";else if(at>=$&&qt<=16||at>=z)it._tickround="M";else if(at>=Q&&qt<=19||at>=$)it._tickround="S";else{var en=it.l2r(Bt+at).replace(/^-/,"").length;it._tickround=Math.max(qt,en)-20,it._tickround<0&&(it._tickround=4)}}else if(b(at)||at.charAt(0)==="L"){var Jt=it.range.map(it.r2d||Number);b(at)||(at=Number(at.substr(1))),it._tickround=2-Math.floor(Math.log(at)/Math.LN10+.01);var Zt=Math.max(Math.abs(Jt[0]),Math.abs(Jt[1])),Nt=Math.floor(Math.log(Zt)/Math.LN10+.01),sn=it.minexponent===void 0?3:it.minexponent;Math.abs(Nt)>sn&&(Ge(it.exponentformat)&&!ht(Nt)?it._tickexponent=3*Math.round((Nt-1)/3):it._tickexponent=Nt)}else it._tickround=null}function tt(it,at,Bt){var _t=it.tickfont||{};return{x:at,dx:0,dy:0,text:Bt||"",fontSize:_t.size,font:_t.family,fontColor:_t.color}}ae.autoTicks=function(it,at,Bt){var _t;function qt(_n){return Math.pow(_n,Math.floor(Math.log(at)/Math.LN10))}if(it.type==="date"){it.tick0=w.dateTick0(it.calendar,0);var en=2*at;if(en>C)at/=C,_t=qt(10),it.dtick="M"+12*Fe(at,_t,Re);else if(en>A)at/=A,it.dtick="M"+Fe(at,1,We);else if(en>k){if(it.dtick=Fe(at,k,it._hasDayOfWeekBreaks?[1,2,7,14]:Ze),!Bt){var Jt=ae.getTickFormat(it),Zt=it.ticklabelmode==="period";Zt&&(it._rawTick0=it.tick0),/%[uVW]/.test(Jt)?it.tick0=w.dateTick0(it.calendar,2):it.tick0=w.dateTick0(it.calendar,1),Zt&&(it._dowTick0=it.tick0)}}else en>z?it.dtick=Fe(at,z,We):en>$?it.dtick=Fe(at,$,Ue):en>Q?it.dtick=Fe(at,Q,Ue):(_t=qt(10),it.dtick=Fe(at,_t,Re))}else if(it.type==="log"){it.tick0=0;var Nt=w.simpleMap(it.range,it.r2l);if(it._isMinor&&(at*=1.5),at>.7)it.dtick=Math.ceil(at);else if(Math.abs(Nt[1]-Nt[0])<1){var sn=1.5*Math.abs((Nt[1]-Nt[0])/at);at=Math.abs(Math.pow(10,Nt[1])-Math.pow(10,Nt[0]))/sn,_t=qt(10),it.dtick="L"+Fe(at,_t,Re)}else it.dtick=at>.3?"D2":"D1"}else it.type==="category"||it.type==="multicategory"?(it.tick0=0,it.dtick=Math.ceil(Math.max(at,1))):xt(it)?(it.tick0=0,_t=1,it.dtick=Fe(at,_t,Me)):(it.tick0=0,_t=qt(10),it.dtick=Fe(at,_t,Re));if(it.dtick===0&&(it.dtick=1),!b(it.dtick)&&typeof it.dtick!="string"){var rn=it.dtick;throw it.dtick=1,"ax.dtick error: "+String(rn)}},ae.tickIncrement=function(it,at,Bt,_t){var qt=Bt?-1:1;if(b(at))return w.increment(it,qt*at);var en=at.charAt(0),Jt=qt*Number(at.substr(1));if(en==="M")return w.incrementMonth(it,Jt,_t);if(en==="L")return Math.log(Math.pow(10,it)+Jt)/Math.LN10;if(en==="D"){var Zt=at==="D2"?Je:Ye,Nt=it+.01*qt,sn=w.roundUp(w.mod(Nt,1),Zt,Bt);return Math.floor(Nt)+Math.log(u.round(Math.pow(10,sn),1))/Math.LN10}throw"unrecognized dtick "+String(at)},ae.tickFirst=function(it,at){var Bt=it.r2l||Number,_t=w.simpleMap(it.range,Bt,void 0,void 0,at),qt=_t[1]<_t[0],en=qt?Math.floor:Math.ceil,Jt=Te(_t)[0],Zt=it.dtick,Nt=Bt(it.tick0);if(b(Zt)){var sn=en((Jt-Nt)/Zt)*Zt+Nt;return it.type!=="category"&&it.type!=="multicategory"||(sn=w.constrain(sn,0,it._categories.length-1)),sn}var rn=Zt.charAt(0),_n=Number(Zt.substr(1));if(rn==="M"){for(var wn,An,Kn,fr=0,Un=Nt;fr<10;){if(((wn=ae.tickIncrement(Un,Zt,qt,it.calendar))-Jt)*(Un-Jt)<=0)return qt?Math.min(Un,wn):Math.max(Un,wn);An=(Jt-(Un+wn)/2)/(wn-Un),Kn=rn+(Math.abs(Math.round(An))||1)*_n,Un=ae.tickIncrement(Un,Kn,An<0?!qt:qt,it.calendar),fr++}return w.error("tickFirst did not converge",it),Un}if(rn==="L")return Math.log(en((Math.pow(10,Jt)-Nt)/_n)*_n+Nt)/Math.LN10;if(rn==="D"){var Zn=Zt==="D2"?Je:Ye,tr=w.roundUp(w.mod(Jt,1),Zn,qt);return Math.floor(Jt)+Math.log(u.round(Math.pow(10,tr),1))/Math.LN10}throw"unrecognized dtick "+String(Zt)},ae.tickText=function(it,at,Bt,_t){var qt,en=tt(it,at),Jt=it.tickmode==="array",Zt=Bt||Jt,Nt=it.type,sn=Nt==="category"?it.d2l_noadd:it.d2l;if(Jt&&w.isArrayOrTypedArray(it.ticktext)){var rn=w.simpleMap(it.range,it.r2l),_n=(Math.abs(rn[1]-rn[0])-(it._lBreaks||0))/1e4;for(qt=0;qt ")}else Un._prevDateHead=qn,gr+="
    "+qn;Zn.text=gr}(it,en,Bt,Zt):Nt==="log"?function(Un,Zn,tr,Br,$r){var vr=Un.dtick,qn=Zn.x,gr=Un.tickformat,sr=typeof vr=="string"&&vr.charAt(0);if($r==="never"&&($r=""),Br&&sr!=="L"&&(vr="L3",sr="L"),gr||sr==="L")Zn.text=pt(Math.pow(10,qn),Un,$r,Br);else if(b(vr)||sr==="D"&&w.mod(qn+.01,1)<.1){var lr=Math.round(qn),zr=Math.abs(lr),Vr=Un.exponentformat;Vr==="power"||Ge(Vr)&&ht(lr)?(Zn.text=lr===0?1:lr===1?"10":"10"+(lr>1?"":j)+zr+"",Zn.fontSize*=1.25):(Vr==="e"||Vr==="E")&&zr>2?Zn.text="1"+Vr+(lr>0?"+":j)+zr:(Zn.text=pt(Math.pow(10,qn),Un,"","fakehover"),vr==="D1"&&Un._id.charAt(0)==="y"&&(Zn.dy-=Zn.fontSize/6))}else{if(sr!=="D")throw"unrecognized dtick "+String(vr);Zn.text=String(Math.round(Math.pow(10,w.mod(qn,1)))),Zn.fontSize*=.75}if(Un.dtick==="D1"){var eo=String(Zn.text).charAt(0);eo!=="0"&&eo!=="1"||(Un._id.charAt(0)==="y"?Zn.dx-=Zn.fontSize/4:(Zn.dy+=Zn.fontSize/2,Zn.dx+=(Un.range[1]>Un.range[0]?1:-1)*Zn.fontSize*(qn<0?.5:.25)))}}(it,en,0,Zt,An):Nt==="category"?function(Un,Zn){var tr=Un._categories[Math.round(Zn.x)];tr===void 0&&(tr=""),Zn.text=String(tr)}(it,en):Nt==="multicategory"?function(Un,Zn,tr){var Br=Math.round(Zn.x),$r=Un._categories[Br]||[],vr=$r[1]===void 0?"":String($r[1]),qn=$r[0]===void 0?"":String($r[0]);tr?Zn.text=qn+" - "+vr:(Zn.text=vr,Zn.text2=qn)}(it,en,Bt):xt(it)?function(Un,Zn,tr,Br,$r){if(Un.thetaunit!=="radians"||tr)Zn.text=pt(Zn.x,Un,$r,Br);else{var vr=Zn.x/180;if(vr===0)Zn.text="0";else{var qn=function(sr){function lr(Jr,Yr){return Math.abs(Jr-Yr)<=1e-6}var zr=function(Jr){for(var Yr=1;!lr(Math.round(Jr*Yr)/Yr,Jr);)Yr*=10;return Yr}(sr),Vr=sr*zr,eo=Math.abs(function Jr(Yr,to){return lr(to,0)?Yr:Jr(to,Yr%to)}(Vr,zr));return[Math.round(Vr/eo),Math.round(zr/eo)]}(vr);if(qn[1]>=100)Zn.text=pt(w.deg2rad(Zn.x),Un,$r,Br);else{var gr=Zn.x<0;qn[1]===1?qn[0]===1?Zn.text="π":Zn.text=qn[0]+"π":Zn.text=["",qn[0],"","⁄","",qn[1],"","π"].join(""),gr&&(Zn.text=j+Zn.text)}}}}(it,en,Bt,Zt,An):function(Un,Zn,tr,Br,$r){$r==="never"?$r="":Un.showexponent==="all"&&Math.abs(Zn.x/Un.dtick)<1e-6&&($r="hide"),Zn.text=pt(Zn.x,Un,$r,Br)}(it,en,0,Zt,An),_t||(it.tickprefix&&!wn(it.showtickprefix)&&(en.text=it.tickprefix+en.text),it.ticksuffix&&!wn(it.showticksuffix)&&(en.text+=it.ticksuffix)),it.labelalias&&it.labelalias.hasOwnProperty(en.text)){var Kn=it.labelalias[en.text];typeof Kn=="string"&&(en.text=Kn)}if(it.tickson==="boundaries"||it.showdividers){var fr=function(Un){var Zn=it.l2p(Un);return Zn>=0&&Zn<=it._length?Un:null};en.xbnd=[fr(en.x-.5),fr(en.x+it.dtick-.5)]}return en},ae.hoverLabelText=function(it,at,Bt){Bt&&(it=w.extendFlat({},it,{hoverformat:Bt}));var _t=w.isArrayOrTypedArray(at)?at[0]:at,qt=w.isArrayOrTypedArray(at)?at[1]:void 0;if(qt!==void 0&&qt!==_t)return ae.hoverLabelText(it,_t,Bt)+" - "+ae.hoverLabelText(it,qt,Bt);var en=it.type==="log"&&_t<=0,Jt=ae.tickText(it,it.c2l(en?-_t:_t),"hover").text;return en?_t===0?"0":j+Jt:Jt};var ot=["f","p","n","μ","m","","k","M","G","T"];function Ge(it){return it==="SI"||it==="B"}function ht(it){return it>14||it<-15}function pt(it,at,Bt,_t){var qt=it<0,en=at._tickround,Jt=Bt||at.exponentformat||"B",Zt=at._tickexponent,Nt=ae.getTickFormat(at),sn=at.separatethousands;if(_t){var rn={exponentformat:Jt,minexponent:at.minexponent,dtick:at.showexponent==="none"?at.dtick:b(it)&&Math.abs(it)||1,range:at.showexponent==="none"?at.range.map(at.r2d):[0,it||1]};je(rn),en=(Number(rn._tickround)||0)+4,Zt=rn._tickexponent,at.hoverformat&&(Nt=at.hoverformat)}if(Nt)return at._numFormat(Nt)(it).replace(/-/g,j);var _n,wn=Math.pow(10,-en)/2;if(Jt==="none"&&(Zt=0),(it=Math.abs(it))"+_n+"":Jt==="B"&&Zt===9?it+="B":Ge(Jt)&&(it+=ot[Zt/3+5])),qt?j+it:it}function St(it,at){if(it){var Bt=Object.keys(q).reduce(function(_t,qt){return at.indexOf(qt)!==-1&&q[qt].forEach(function(en){_t[en]=1}),_t},{});Object.keys(it).forEach(function(_t){Bt[_t]||(_t.length===1?it[_t]=0:delete it[_t])})}}function Ft(it,at){for(var Bt=[],_t={},qt=0;qt1&&Bt=qt.min&&it=0,Zn=rn(wn,An[1])<=0;return(Kn||Un)&&(fr||Zn)}if(it.tickformatstops&&it.tickformatstops.length>0)switch(it.type){case"date":case"linear":for(at=0;at=Jt(qt)))){Bt=_t;break}break;case"log":for(at=0;at=0&&qt.unshift(qt.splice(sn,1).shift())}});var Jt={false:{left:0,right:0}};return w.syncOrAsync(qt.map(function(Zt){return function(){if(Zt){var Nt=ae.getFromId(it,Zt);Bt||(Bt={}),Bt.axShifts=Jt,Bt.overlayingShiftedAx=en;var sn=ae.drawOne(it,Nt,Bt);return Nt._shiftPusher&&Dt(Nt,Nt._fullDepth||0,Jt,!0),Nt._r=Nt.range.slice(),Nt._rl=w.simpleMap(Nt._r,Nt.r2l),sn}}}))},ae.drawOne=function(it,at,Bt){var _t,qt,en,Jt=(Bt=Bt||{}).axShifts||{},Zt=Bt.overlayingShiftedAx||[];at.setScale();var Nt=it._fullLayout,sn=at._id,rn=sn.charAt(0),_n=ae.counterLetter(sn),wn=Nt._plots[at._mainSubplot];if(wn){if(at._shiftPusher=at.autoshift||Zt.indexOf(at._id)!==-1||Zt.indexOf(at.overlaying)!==-1,at._shiftPusher&at.anchor==="free"){var An=at.linewidth/2||0;at.ticks==="inside"&&(An+=at.ticklen),Dt(at,An,Jt,!0),Dt(at,at.shift||0,Jt,!1)}Bt.skipTitle===!0&&at._shift!==void 0||(at._shift=function(on,an){return on.autoshift?an[on.overlaying][on.side]:on.shift||0}(at,Jt));var Kn=wn[rn+"axislayer"],fr=at._mainLinePosition,Un=fr+=at._shift,Zn=at._mainMirrorPosition,tr=at._vals=ae.calcTicks(at),Br=[at.mirror,Un,Zn].join("_");for(_t=0;_t0?on.bottom-Ur:0,qr))));var Cr=0,wo=0;if(at._shiftPusher&&(Cr=Math.max(qr,on.height>0?Gn==="l"?Ur-on.left:on.right-Ur:0),at.title.text!==Nt._dfltTitle[rn]&&(wo=(at._titleStandoff||0)+(at._titleScoot||0),Gn==="l"&&(wo+=ln(at))),at._fullDepth=Math.max(Cr,wo)),at.automargin){an={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Eo=typeof at._shift=="number"?at._shift:0;if(rn==="x"){if(Gn==="b"?an[Gn]=at._depth:(an[Gn]=at._depth=Math.max(on.width>0?Ur-on.top:0,qr),Nr.reverse()),on.width>0){var zo=on.right-(at._offset+at._length);zo>0&&(an.xr=1,an.r=zo);var Qt=at._offset-on.left;Qt>0&&(an.xl=0,an.l=Qt)}}else if(Gn==="l"?(at._depth=Math.max(on.height>0?Ur-on.left:0,qr),an[Gn]=at._depth-Eo):(at._depth=Math.max(on.height>0?on.right-Ur:0,qr),an[Gn]=at._depth+Eo,Nr.reverse()),on.height>0){var Mn=on.bottom-(at._offset+at._length);Mn>0&&(an.yb=0,an.b=Mn);var Fn=at._offset-on.top;Fn>0&&(an.yt=1,an.t=Fn)}an[_n]=at.anchor==="free"?at.position:at._anchorAxis.domain[Nr[0]],at.title.text!==Nt._dfltTitle[rn]&&(an[Gn]+=ln(at)+(at.title.standoff||0)),at.mirror&&at.anchor!=="free"&&((Tn={x:0,y:0,r:0,l:0,t:0,b:0})[Lr]=at.linewidth,at.mirror&&at.mirror!==!0&&(Tn[Lr]+=qr),at.mirror===!0||at.mirror==="ticks"?Tn[_n]=at._anchorAxis.domain[Nr[1]]:at.mirror!=="all"&&at.mirror!=="allticks"||(Tn[_n]=[at._counterDomainMin,at._counterDomainMax][Nr[1]]))}Er&&(zn=S.getComponentMethod("rangeslider","autoMarginOpts")(it,at)),typeof at.automargin=="string"&&(St(an,at.automargin),St(Tn,at.automargin)),i.autoMargin(it,Ot(at),an),i.autoMargin(it,cn(at),Tn),i.autoMargin(it,Cn(at),zn)}),w.syncOrAsync(ir)}}function Gt(on){var an=sn+(on||"tick");return $r[an]||($r[an]=function(Tn,zn){var Gn,Lr,Ur,qr;return Tn._selections[zn].size()?(Gn=1/0,Lr=-1/0,Ur=1/0,qr=-1/0,Tn._selections[zn].each(function(){var Cr=Et(this),wo=h.bBox(Cr.node().parentNode);Gn=Math.min(Gn,wo.top),Lr=Math.max(Lr,wo.bottom),Ur=Math.min(Ur,wo.left),qr=Math.max(qr,wo.right)})):(Gn=0,Lr=0,Ur=0,qr=0),{top:Gn,bottom:Lr,left:Ur,right:qr,height:Lr-Gn,width:qr-Ur}}(at,an)),$r[an]}},ae.getTickSigns=function(it,at){var Bt=it._id.charAt(0),_t={x:"top",y:"right"}[Bt],qt=it.side===_t?1:-1,en=[-1,1,qt,-qt];return(at?(it.minor||{}).ticks:it.ticks)!=="inside"==(Bt==="x")&&(en=en.map(function(Jt){return-Jt})),it.side&&en.push({l:-1,t:-1,r:1,b:1}[it.side.charAt(0)]),en},ae.makeTransTickFn=function(it){return it._id.charAt(0)==="x"?function(at){return y(it._offset+it.l2p(at.x),0)}:function(at){return y(0,it._offset+it.l2p(at.x))}},ae.makeTransTickLabelFn=function(it){var at=function(qt){var en=qt.ticklabelposition||"",Jt=function(Zn){return en.indexOf(Zn)!==-1},Zt=Jt("top"),Nt=Jt("left"),sn=Jt("right"),rn=Jt("bottom"),_n=Jt("inside"),wn=rn||Nt||Zt||sn;if(!wn&&!_n)return[0,0];var An=qt.side,Kn=wn?(qt.tickwidth||0)/2:0,fr=3,Un=qt.tickfont?qt.tickfont.size:12;return(rn||Zt)&&(Kn+=Un*me,fr+=(qt.linewidth||0)/2),(Nt||sn)&&(Kn+=(qt.linewidth||0)/2,fr+=3),_n&&An==="top"&&(fr-=Un*(1-me)),(Nt||Zt)&&(Kn=-Kn),An!=="bottom"&&An!=="right"||(fr=-fr),[wn?Kn:0,_n?fr:0]}(it),Bt=at[0],_t=at[1];return it._id.charAt(0)==="x"?function(qt){return y(Bt+it._offset+it.l2p(zt(qt)),_t)}:function(qt){return y(_t,Bt+it._offset+it.l2p(zt(qt)))}},ae.makeTickPath=function(it,at,Bt,_t){_t||(_t={});var qt=_t.minor;if(qt&&!it.minor)return"";var en=_t.len!==void 0?_t.len:qt?it.minor.ticklen:it.ticklen,Jt=it._id.charAt(0),Zt=(it.linewidth||1)/2;return Jt==="x"?"M0,"+(at+Zt*Bt)+"v"+en*Bt:"M"+(at+Zt*Bt)+",0h"+en*Bt},ae.makeLabelFns=function(it,at,Bt){var _t=it.ticklabelposition||"",qt=function(Vr){return _t.indexOf(Vr)!==-1},en=qt("top"),Jt=qt("left"),Zt=qt("right"),Nt=qt("bottom")||Jt||en||Zt,sn=qt("inside"),rn=_t==="inside"&&it.ticks==="inside"||!sn&&it.ticks==="outside"&&it.tickson!=="boundaries",_n=0,wn=0,An=rn?it.ticklen:0;if(sn?An*=-1:Nt&&(An=0),rn&&(_n+=An,Bt)){var Kn=w.deg2rad(Bt);_n=An*Math.cos(Kn)+1,wn=An*Math.sin(Kn)}it.showticklabels&&(rn||it.showline)&&(_n+=.2*it.tickfont.size);var fr,Un,Zn,tr,Br,$r={labelStandoff:_n+=(it.linewidth||1)/2*(sn?-1:1),labelShift:wn},vr=0,qn=it.side,gr=it._id.charAt(0),sr=it.tickangle;if(gr==="x")tr=(Br=!sn&&qn==="bottom"||sn&&qn==="top")?1:-1,sn&&(tr*=-1),fr=wn*tr,Un=at+_n*tr,Zn=Br?1:-.2,Math.abs(sr)===90&&(sn?Zn+=ee:Zn=sr===-90&&qn==="bottom"?me:sr===90&&qn==="top"?ee:.5,vr=ee/2*(sr/90)),$r.xFn=function(Vr){return Vr.dx+fr+vr*Vr.fontSize},$r.yFn=function(Vr){return Vr.dy+Un+Vr.fontSize*Zn},$r.anchorFn=function(Vr,eo){if(Nt){if(Jt)return"end";if(Zt)return"start"}return b(eo)&&eo!==0&&eo!==180?eo*tr<0!==sn?"end":"start":"middle"},$r.heightFn=function(Vr,eo,Jr){return eo<-60||eo>60?-.5*Jr:it.side==="top"!==sn?-Jr:0};else if(gr==="y"){if(tr=(Br=!sn&&qn==="left"||sn&&qn==="right")?1:-1,sn&&(tr*=-1),fr=_n,Un=wn*tr,Zn=0,sn||Math.abs(sr)!==90||(Zn=sr===-90&&qn==="left"||sr===90&&qn==="right"?me:.5),sn){var lr=b(sr)?+sr:0;if(lr!==0){var zr=w.deg2rad(lr);vr=Math.abs(Math.sin(zr))*me*tr,Zn=0}}$r.xFn=function(Vr){return Vr.dx+at-(fr+Vr.fontSize*Zn)*tr+vr*Vr.fontSize},$r.yFn=function(Vr){return Vr.dy+Un+Vr.fontSize*ee},$r.anchorFn=function(Vr,eo){return b(eo)&&Math.abs(eo)===90?"middle":Br?"end":"start"},$r.heightFn=function(Vr,eo,Jr){return it.side==="right"&&(eo*=-1),eo<-30?-Jr:eo<30?-.5*Jr:0}}return $r},ae.drawTicks=function(it,at,Bt){Bt=Bt||{};var _t=at._id+"tick",qt=[].concat(at.minor&&at.minor.ticks?Bt.vals.filter(function(Jt){return Jt.minor&&!Jt.noTick}):[]).concat(at.ticks?Bt.vals.filter(function(Jt){return!Jt.minor&&!Jt.noTick}):[]),en=Bt.layer.selectAll("path."+_t).data(qt,Yt);en.exit().remove(),en.enter().append("path").classed(_t,1).classed("ticks",1).classed("crisp",Bt.crisp!==!1).each(function(Jt){return c.stroke(u.select(this),Jt.minor?at.minor.tickcolor:at.tickcolor)}).style("stroke-width",function(Jt){return h.crispRound(it,Jt.minor?at.minor.tickwidth:at.tickwidth,1)+"px"}).attr("d",Bt.path).style("display",null),Vt(at,[K]),en.attr("transform",Bt.transFn)},ae.drawGrid=function(it,at,Bt){if(Bt=Bt||{},at.tickmode!=="sync"){var _t=at._id+"grid",qt=at.minor&&at.minor.showgrid,en=qt?Bt.vals.filter(function(Zn){return Zn.minor}):[],Jt=at.showgrid?Bt.vals.filter(function(Zn){return!Zn.minor}):[],Zt=Bt.counterAxis;if(Zt&&ae.shouldShowZeroLine(it,at,Zt))for(var Nt=at.tickmode==="array",sn=0;sn=0;Kn--){var fr=Kn?wn:An;if(fr){var Un=fr.selectAll("path."+_t).data(Kn?Jt:en,Yt);Un.exit().remove(),Un.enter().append("path").classed(_t,1).classed("crisp",Bt.crisp!==!1),Un.attr("transform",Bt.transFn).attr("d",Bt.path).each(function(Zn){return c.stroke(u.select(this),Zn.minor?at.minor.gridcolor:at.gridcolor||"#ddd")}).style("stroke-dasharray",function(Zn){return h.dashStyle(Zn.minor?at.minor.griddash:at.griddash,Zn.minor?at.minor.gridwidth:at.gridwidth)}).style("stroke-width",function(Zn){return(Zn.minor?_n:at._gw)+"px"}).style("display",null),typeof Bt.path=="function"&&Un.attr("d",Bt.path)}}Vt(at,[te,Z])}},ae.drawZeroLine=function(it,at,Bt){Bt=Bt||Bt;var _t=at._id+"zl",qt=ae.shouldShowZeroLine(it,at,Bt.counterAxis),en=Bt.layer.selectAll("path."+_t).data(qt?[{x:0,id:at._id}]:[]);en.exit().remove(),en.enter().append("path").classed(_t,1).classed("zl",1).classed("crisp",Bt.crisp!==!1).each(function(){Bt.layer.selectAll("path").sort(function(Jt,Zt){return ye(Jt.id,Zt.id)})}),en.attr("transform",Bt.transFn).attr("d",Bt.path).call(c.stroke,at.zerolinecolor||c.defaultLine).style("stroke-width",h.crispRound(it,at.zerolinewidth,at._gw||1)+"px").style("display",null),Vt(at,[X])},ae.drawLabels=function(it,at,Bt){Bt=Bt||{};var _t=it._fullLayout,qt=at._id,en=Bt.cls||qt+"tick",Jt=Bt.vals.filter(function(co){return co.text}),Zt=Bt.labelFns,Nt=Bt.secondary?0:at.tickangle,sn=(at._prevTickAngles||{})[en],rn=Bt.layer.selectAll("g."+en).data(at.showticklabels?Jt:[],Yt),_n=[];function wn(co,Fo){co.each(function(_o){var $o=u.select(this),Mo=$o.select(".text-math-group"),pi=Zt.anchorFn(_o,Fo),Hn=Bt.transFn.call($o.node(),_o)+(b(Fo)&&+Fo!=0?" rotate("+Fo+","+Zt.xFn(_o)+","+(Zt.yFn(_o)-_o.fontSize/2)+")":""),ar=m.lineCount($o),Dr=pe*_o.fontSize,Sr=Zt.heightFn(_o,b(Fo)?+Fo:0,(ar-1)*Dr);if(Sr&&(Hn+=y(0,Sr)),Mo.empty()){var Zr=$o.select("text");Zr.attr({transform:Hn,"text-anchor":pi}),Zr.style("opacity",1),at._adjustTickLabelsOverflow&&at._adjustTickLabelsOverflow()}else{var go=h.bBox(Mo.node()).width*{end:-.5,start:.5}[pi];Mo.attr("transform",Hn+y(go,0))}})}rn.enter().append("g").classed(en,1).append("text").attr("text-anchor","middle").each(function(co){var Fo=u.select(this),_o=it._promises.length;Fo.call(m.positionText,Zt.xFn(co),Zt.yFn(co)).call(h.font,co.font,co.fontSize,co.fontColor).text(co.text).call(m.convertToTspans,it),it._promises[_o]?_n.push(it._promises.pop().then(function(){wn(Fo,Nt)})):wn(Fo,Nt)}),Vt(at,[re]),rn.exit().remove(),Bt.repositionOnUpdate&&rn.each(function(co){u.select(this).select("text").call(m.positionText,Zt.xFn(co),Zt.yFn(co))}),at._adjustTickLabelsOverflow=function(){var co=at.ticklabeloverflow;if(co&&co!=="allow"){var Fo=co.indexOf("hide")!==-1,_o=at._id.charAt(0)==="x",$o=0,Mo=_o?it._fullLayout.width:it._fullLayout.height;if(co.indexOf("domain")!==-1){var pi=w.simpleMap(at.range,at.r2l);$o=at.l2p(pi[0])+at._offset,Mo=at.l2p(pi[1])+at._offset}var Hn=Math.min($o,Mo),ar=Math.max($o,Mo),Dr=at.side,Sr=1/0,Zr=-1/0;for(var go in rn.each(function(Do){var jn=u.select(this);if(jn.select(".text-math-group").empty()){var Rr=h.bBox(jn.node()),On=0;_o?(Rr.right>ar||Rr.leftar||Rr.top+(at.tickangle?0:Do.fontSize/4)at["_visibleLabelMin_"+pi._id]?io.style("display","none"):ar.K!=="tick"||Hn||io.style("display",null)})})})})},wn(rn,sn+1?sn:Nt);var An=null;at._selections&&(at._selections[en]=rn);var Kn=[function(){return _n.length&&Promise.all(_n)}];at.automargin&&_t._redrawFromAutoMarginCount&&sn===90?(An=sn,Kn.push(function(){wn(rn,sn)})):Kn.push(function(){if(wn(rn,Nt),Jt.length&&at.autotickangles&&(at.type!=="log"||String(at.dtick).charAt(0)!=="D")){An=at.autotickangles[0];var co,Fo=0,_o=[],$o=1;if(rn.each(function(Er){Fo=Math.max(Fo,Er.fontSize);var Gt=at.l2p(Er.x),on=Et(this),an=h.bBox(on.node());$o=Math.max($o,m.lineCount(on)),_o.push({top:0,bottom:10,height:10,left:Gt-an.width/2,right:Gt+an.width/2+2,width:an.width+2})}),at.tickson!=="boundaries"&&!at.showdividers||Bt.secondary){var Mo=Jt.length,pi=Math.abs((Jt[Mo-1].x-Jt[0].x)*at._m)/(Mo-1),Hn=at.ticklabelposition||"",ar=function(Er){return Hn.indexOf(Er)!==-1},Dr=ar("top"),Sr=ar("left"),Zr=ar("right"),go=ar("bottom")||Sr||Dr||Zr?(at.tickwidth||0)+6:0,oo=pi,io=1.25*Fo*$o,Do=oo/Math.sqrt(Math.pow(oo,2)+Math.pow(io,2)),jn=at.autotickangles.map(function(Er){return Er*Math.PI/180}),Rr=jn.find(function(Er){return Math.abs(Math.cos(Er))<=Do});Rr===void 0&&(Rr=jn.reduce(function(Er,Gt){return Math.abs(Math.cos(Er))Jr*eo&&(lr=eo,qn[vr]=gr[vr]=zr[vr])}var Yr=Math.abs(lr-sr);Yr-tr>0?tr*=1+tr/(Yr-=tr):tr=0,at._id.charAt(0)!=="y"&&(tr=-tr),qn[$r]=Un.p2d(Un.d2p(gr[$r])+Br*tr),Un.autorange==="min"||Un.autorange==="max reversed"?(qn[0]=null,Un._rangeInitial0=void 0,Un._rangeInitial1=void 0):Un.autorange!=="max"&&Un.autorange!=="min reversed"||(qn[1]=null,Un._rangeInitial0=void 0,Un._rangeInitial1=void 0),_t._insideTickLabelsUpdaterange[Un._name+".range"]=qn}var to=w.syncOrAsync(Kn);return to&&to.then&&it._promises.push(to),to},ae.getPxPosition=function(it,at){var Bt,_t=it._fullLayout._size,qt=at._id.charAt(0),en=at.side;return at.anchor!=="free"?Bt=at._anchorAxis:qt==="x"?Bt={_offset:_t.t+(1-(at.position||0))*_t.h,_length:0}:qt==="y"&&(Bt={_offset:_t.l+(at.position||0)*_t.w+at._shift,_length:0}),en==="top"||en==="left"?Bt._offset:en==="bottom"||en==="right"?Bt._offset+Bt._length:void 0},ae.shouldShowZeroLine=function(it,at,Bt){var _t=w.simpleMap(at.range,at.r2l);return _t[0]*_t[1]<=0&&at.zeroline&&(at.type==="linear"||at.type==="-")&&!(at.rangebreaks&&at.maskBreaks(0)===U)&&(tn(at,0)||!function(qt,en,Jt,Zt){var Nt=Jt._mainAxis;if(Nt){var sn=qt._fullLayout,rn=en._id.charAt(0),_n=ae.counterLetter(en._id),wn=en._offset+(Math.abs(Zt[0])1)for(Zt=1;Zt2*k}(_,p))return"date";var M=v.autotypenumbers!=="strict";return function(T,P){for(var A=T.length,L=c(A),D=0,k=0,I={},z=0;z2*D}(_,M)?"category":function(T,P){for(var A=T.length,L=0;L=2){var I,z,$="";if(k.length===2){for(I=0;I<2;I++)if(z=T(k[I])){$=C;break}}var Q=D("pattern",$);if(Q===C)for(I=0;I<2;I++)(z=T(k[I]))&&(A.bounds[I]=k[I]=z-1);if(Q)for(I=0;I<2;I++)switch(z=k[I],Q){case C:if(!u(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(A.enabled=!1);A.bounds[I]=k[I]=z;break;case x:if(!u(z)||(z=+z)<0||z>24)return void(A.enabled=!1);A.bounds[I]=k[I]=z}if(L.autorange===!1){var j=L.range;if(j[0]j[1])return void(A.enabled=!1)}else if(k[0]>j[0]&&k[1]m?1:-1:+(S.substr(1)||1)-+(w.substr(1)||1)},s.ref2id=function(S){return!!/^[xyz]/.test(S)&&S.split(" ")[0]},s.isLinked=function(S,w){return i(w,S._axisMatchGroups)||i(w,S._axisConstraintGroups)}},22416:function(d,s,n){var u=n(38116).isTypedArraySpec;d.exports=function(b,i,S,w){if(i.type==="category"){var y,m=b.categoryarray,a=Array.isArray(m)&&m.length>0||u(m);a&&(y="array");var c,h=S("categoryorder",y);h==="array"&&(c=S("categoryarray")),a||h!=="array"||(h=i.categoryorder="trace"),h==="trace"?i._initialCategories=[]:h==="array"?i._initialCategories=c.slice():(c=function(p,v){var _,O,C,x=v.dataAttr||p._id.charAt(0),R={};if(v.axData)_=v.axData;else for(_=[],O=0;OT?P.substr(T):A.substr(M))+L:P+A+x*R:L}function O(x,R){for(var M=R._size,T=M.h/M.w,P={},A=Object.keys(x),L=0;Lm*j)||Z){for(M=0;M<$.length;M++)if(L=X[P=$[M]],D=(A=te[P]).constrain,L!==U||D==="domain")if(k=L/U,D==="range")w(A,k);else{var K=A._inputDomain,re=(A.domain[1]-A.domain[0])/(K[1]-K[0]),q=(A.r2l(A.range[1])-A.r2l(A.range[0]))/(A.r2l(A._inputRange[1])-A.r2l(A._inputRange[0]));if((k/=re)*q<1){A.domain=A._input.domain=K.slice(),w(A,k);continue}if(q<1&&(A.range=A._input.range=A._inputRange.slice(),k*=q),A.autorange){var Y=A.r2l(A.range[0]),ee=A.r2l(A.range[1]),me=(Y+ee)/2,pe=me,se=me,ae=Math.abs(ee-me),ce=me-ae*k*1.0001,de=me+ae*k*1.0001,ye=b.makePadFn(I,A,0),ve=b.makePadFn(I,A,1);C(A,k);var _e,we,Te=Math.abs(A._m),Pe=b.concatExtremes(x,A),Ie=Pe.min,ze=Pe.max;for(we=0;wece&&_ese&&(se=_e);k/=(se-pe)/(2*ae),pe=A.l2r(pe),se=A.l2r(se),A.range=A._input.range=Y=0?Math.min(_e,.9):1/(1/Math.max(_e,-.3)+3.222))}function Y(_e,we,Te,Pe,Ie){return _e.append("path").attr("class","zoombox").style({fill:we>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(Te,Pe)).attr("d",Ie+"Z")}function ee(_e,we,Te){return _e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(we,Te)).attr("d","M0,0Z")}function me(_e,we,Te,Pe,Ie,ze){_e.attr("d",Pe+"M"+Te.l+","+Te.t+"v"+Te.h+"h"+Te.w+"v-"+Te.h+"h-"+Te.w+"Z"),pe(_e,we,Ie,ze)}function pe(_e,we,Te,Pe){Te||(_e.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),we.transition().style("opacity",1).duration(200))}function se(_e){u.select(_e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ae(_e){U&&_e.data&&_e._context.showTips&&(b.notifier(b._(_e,"Double-click to zoom back out"),"long"),U=!1)}function ce(_e){var we=Math.floor(Math.min(_e.b-_e.t,_e.r-_e.l,j)/2);return"M"+(_e.l-3.5)+","+(_e.t-.5+we)+"h3v"+-we+"h"+we+"v-3h-"+(we+3)+"ZM"+(_e.r+3.5)+","+(_e.t-.5+we)+"h-3v"+-we+"h"+-we+"v-3h"+(we+3)+"ZM"+(_e.r+3.5)+","+(_e.b+.5-we)+"h-3v"+we+"h"+-we+"v3h"+(we+3)+"ZM"+(_e.l-3.5)+","+(_e.b+.5-we)+"h3v"+we+"h"+we+"v3h-"+(we+3)+"Z"}function de(_e,we,Te,Pe,Ie){for(var ze,De,Qe,Ve,$e=!1,Oe={},ke={},Re=(Ie||{}).xaHash,We=(Ie||{}).yaHash,Ue=0;Ue=0)sr._fullLayout._deactivateShape(sr);else{var lr=sr._fullLayout.clickmode;if(se(sr),qn!==2||Ot||Un(),Et)lr.indexOf("select")>-1&&I(gr,sr,Re,We,we.id,_t),lr.indexOf("event")>-1&&p.click(sr,gr,we.id);else if(qn===1&&Ot){var zr=De?$e:Ve,Vr=De==="s"||Qe==="w"?0:1,eo=zr._name+".range["+Vr+"]",Jr=function(co,Fo){var _o,$o=co.range[Fo],Mo=Math.abs($o-co.range[1-Fo]);return co.type==="date"?$o:co.type==="log"?(_o=Math.ceil(Math.max(0,-Math.log(Mo)/Math.LN10))+3,i("."+_o+"g")(Math.pow(10,$o))):(_o=Math.floor(Math.log(Math.abs($o))/Math.LN10)-Math.floor(Math.log(Mo)/Math.LN10)+4,i("."+String(_o)+"g")($o))}(zr,Vr),Yr="left",to="middle";if(zr.fixedrange)return;De?(to=De==="n"?"top":"bottom",zr.side==="right"&&(Yr="right")):Qe==="e"&&(Yr="right"),sr._context.showAxisRangeEntryBoxes&&u.select(Pn).call(a.makeEditable,{gd:sr,immediate:!0,background:sr._fullLayout.paper_bgcolor,text:String(Jr),fill:zr.tickfont?zr.tickfont.color:"#444",horizontalAlign:Yr,verticalAlign:to}).on("edit",function(co){var Fo=zr.d2r(co);Fo!==void 0&&y.call("_guiRelayout",sr,eo,Fo)})}}}function Jt(qn,gr){if(_e._transitioningWithDuration)return!1;var sr=Math.max(0,Math.min(Ye,Yt*qn+Sn)),lr=Math.max(0,Math.min(Je,ln*gr+vt)),zr=Math.abs(sr-Sn),Vr=Math.abs(lr-vt);function eo(){Dt="",xt.r=xt.l,xt.t=xt.b,at.attr("d","M0,0Z")}if(xt.l=Math.min(Sn,sr),xt.r=Math.max(Sn,sr),xt.t=Math.min(vt,lr),xt.b=Math.max(vt,lr),Me.isSubplotConstrained)zr>j||Vr>j?(Dt="xy",zr/Ye>Vr/Je?(Vr=zr*Je/Ye,vt>lr?xt.t=vt-Vr:xt.b=vt+Vr):(zr=Vr*Ye/Je,Sn>sr?xt.l=Sn-zr:xt.r=Sn+zr),at.attr("d",ce(xt))):eo();else if(Fe.isSubplotConstrained)if(zr>j||Vr>j){Dt="xy";var Jr=Math.min(xt.l/Ye,(Je-xt.b)/Je),Yr=Math.max(xt.r/Ye,(Je-xt.t)/Je);xt.l=Jr*Ye,xt.r=Yr*Ye,xt.b=(1-Jr)*Je,xt.t=(1-Yr)*Je,at.attr("d",ce(xt))}else eo();else!tt||Vr0){var to;if(Fe.isSubplotConstrained||!je&&tt.length===1){for(to=0;to1&&(lr.maxallowed!==void 0&&Ge===(lr.range[0]1&&(zr.maxallowed!==void 0&&ht===(zr.range[0]A[1]-.000244140625&&(S.domain=a),b.noneOrAll(i.domain,S.domain,a),S.tickmode==="sync"&&(S.tickmode="auto")}return w("layer"),S}},42568:function(d,s,n){var u=n(85024);d.exports=function(b,i,S,w,y){y||(y={});var m=y.tickSuffixDflt,a=u(b);S("tickprefix")&&S("showtickprefix",a),S("ticksuffix",m)&&S("showticksuffix",a)}},96312:function(d,s,n){var u=n(76808);d.exports=function(b,i,S,w){var y=i._template||{},m=i.type||y.type||"-";S("minallowed"),S("maxallowed");var a,c=S("range");c||w.noInsiderange||m==="log"||(!(a=S("insiderange"))||a[0]!==null&&a[1]!==null||(i.insiderange=!1,a=void 0),a&&(c=S("range",a)));var h,p=i.getAutorangeDflt(c,w),v=S("autorange",p);!c||(c[0]!==null||c[1]!==null)&&(c[0]!==null&&c[1]!==null||v!=="reversed"&&v!==!0)&&(c[0]===null||v!=="min"&&v!=="max reversed")&&(c[1]===null||v!=="max"&&v!=="min reversed")||(c=void 0,delete i.range,i.autorange=!0,h=!0),h||(v=S("autorange",p=i.getAutorangeDflt(c,w))),v&&(u(S,v,c),m!=="linear"&&m!=="-"||S("rangemode")),i.cleanRange()}},21160:function(d,s,n){var u=n(84284).FROM_BL;d.exports=function(b,i,S){S===void 0&&(S=u[b.constraintoward||"center"]);var w=[b.r2l(b.range[0]),b.r2l(b.range[1])],y=w[0]+(w[1]-w[0])*S;b.range=b._input.range=[b.l2r(y+(w[0]-y)*i),b.l2r(y+(w[1]-y)*i)],b.setScale()}},78344:function(d,s,n){var u=n(33428),b=n(94336).E9,i=n(3400),S=i.numberFormat,w=n(38248),y=i.cleanNumber,m=i.ms2DateTime,a=i.dateTime2ms,c=i.ensureNumber,h=i.isArrayOrTypedArray,p=n(39032),v=p.FP_SAFE,_=p.BADNUM,O=p.LOG_CLIP,C=p.ONEWEEK,x=p.ONEDAY,R=p.ONEHOUR,M=p.ONEMIN,T=p.ONESEC,P=n(79811),A=n(33816),L=A.HOUR_PATTERN,D=A.WEEKDAY_PATTERN;function k(z){return Math.pow(10,z)}function I(z){return z!=null}d.exports=function(z,$){$=$||{};var Q=z._id||"x",j=Q.charAt(0);function U(de,ye){if(de>0)return Math.log(de)/Math.LN10;if(de<=0&&ye&&z.range&&z.range.length===2){var ve=z.range[0],_e=z.range[1];return .5*(ve+_e-2*O*Math.abs(ve-_e))}return _}function X(de,ye,ve,_e){if((_e||{}).msUTC&&w(de))return+de;var we=a(de,ve||z.calendar);if(we===_){if(!w(de))return _;de=+de;var Te=Math.floor(10*i.mod(de+.05,1)),Pe=Math.round(de-Te/10);we=a(new Date(Pe))+Te/10}return we}function te(de,ye,ve){return m(de,ye,ve||z.calendar)}function Z(de){return z._categories[Math.round(de)]}function K(de){if(I(de)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[de]!==void 0)return z._categoriesMap[de];z._categories.push(typeof de=="number"?String(de):de);var ye=z._categories.length-1;return z._categoriesMap[de]=ye,ye}return _}function re(de){if(z._categoriesMap)return z._categoriesMap[de]}function q(de){var ye=re(de);return ye!==void 0?ye:w(de)?+de:void 0}function Y(de){return w(de)?+de:re(de)}function ee(de,ye,ve){return u.round(ve+ye*de,2)}function me(de,ye,ve){return(de-ve)/ye}var pe=function(de){return w(de)?ee(de,z._m,z._b):_},se=function(de){return me(de,z._m,z._b)};if(z.rangebreaks){var ae=j==="y";pe=function(de){if(!w(de))return _;var ye=z._rangebreaks.length;if(!ye)return ee(de,z._m,z._b);var ve=ae;z.range[0]>z.range[1]&&(ve=!ve);for(var _e=ve?-1:1,we=_e*de,Te=0,Pe=0;Peze)){Te=we<(Ie+ze)/2?Pe:Pe+1;break}Te=Pe+1}var De=z._B[Te]||0;return isFinite(De)?ee(de,z._m2,De):0},se=function(de){var ye=z._rangebreaks.length;if(!ye)return me(de,z._m,z._b);for(var ve=0,_e=0;_ez._rangebreaks[_e].pmax&&(ve=_e+1);return me(de,z._m2,z._B[ve])}}z.c2l=z.type==="log"?U:c,z.l2c=z.type==="log"?k:c,z.l2p=pe,z.p2l=se,z.c2p=z.type==="log"?function(de,ye){return pe(U(de,ye))}:pe,z.p2c=z.type==="log"?function(de){return k(se(de))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=y,z.c2d=z.c2r=z.l2d=z.l2r=c,z.d2p=z.r2p=function(de){return z.l2p(y(de))},z.p2d=z.p2r=se,z.cleanPos=c):z.type==="log"?(z.d2r=z.d2l=function(de,ye){return U(y(de),ye)},z.r2d=z.r2c=function(de){return k(y(de))},z.d2c=z.r2l=y,z.c2d=z.l2r=c,z.c2r=U,z.l2d=k,z.d2p=function(de,ye){return z.l2p(z.d2r(de,ye))},z.p2d=function(de){return k(se(de))},z.r2p=function(de){return z.l2p(y(de))},z.p2r=se,z.cleanPos=c):z.type==="date"?(z.d2r=z.r2d=i.identity,z.d2c=z.r2c=z.d2l=z.r2l=X,z.c2d=z.c2r=z.l2d=z.l2r=te,z.d2p=z.r2p=function(de,ye,ve){return z.l2p(X(de,0,ve))},z.p2d=z.p2r=function(de,ye,ve){return te(se(de),ye,ve)},z.cleanPos=function(de){return i.cleanDate(de,_,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=K,z.r2d=z.c2d=z.l2d=Z,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ye=Y(de);return ye!==void 0?ye:z.fraction2r(.5)},z.l2r=z.c2r=c,z.r2l=Y,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return Z(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return typeof de=="string"&&de!==""?de:c(de)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=Z,z.d2r=z.d2l_noadd=q,z.r2c=function(de){var ye=q(de);return ye!==void 0?ye:z.fraction2r(.5)},z.r2c_just_indices=re,z.l2r=z.c2r=c,z.r2l=q,z.d2p=function(de){return z.l2p(z.r2c(de))},z.p2d=function(de){return Z(se(de))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(de){return Array.isArray(de)||typeof de=="string"&&de!==""?de:c(de)},z.setupMultiCategory=function(de){var ye,ve,_e=z._traceIndices,we=z._matchGroup;if(we&&z._categories.length===0){for(var Te in we)if(Te!==Q){var Pe=$[P.id2name(Te)];_e=_e.concat(Pe._traceIndices)}}var Ie=[[0,{}],[0,{}]],ze=[];for(ye=0;ye<_e.length;ye++){var De=de[_e[ye]];if(j in De){var Qe=De[j],Ve=De._length||i.minRowLength(Qe);if(h(Qe[0])&&h(Qe[1]))for(ve=0;vePe[1]&&(_e[Te?0:1]=ve),_e[0]===_e[1]){var Ie=z.l2r(ye),ze=z.l2r(ve);if(ye!==void 0){var De=Ie+1;ve!==void 0&&(De=Math.min(De,ze)),_e[Te?1:0]=De}if(ve!==void 0){var Qe=ze+1;ye!==void 0&&(Qe=Math.max(Qe,Ie)),_e[Te?0:1]=Qe}}}},z.cleanRange=function(de,ye){z._cleanRange(de,ye),z.limitRange(de)},z._cleanRange=function(de,ye){ye||(ye={}),de||(de="range");var ve,_e,we=i.nestedProperty(z,de).get();if(_e=(_e=z.type==="date"?i.dfltRange(z.calendar):j==="y"?A.DFLTRANGEY:z._name==="realaxis"?[0,1]:ye.dfltRange||A.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(_e[0]=0),we&&we.length===2){var Te=we[0]===null,Pe=we[1]===null;for(z.type!=="date"||z.autorange||(we[0]=i.cleanDate(we[0],_,z.calendar),we[1]=i.cleanDate(we[1],_,z.calendar)),ve=0;ve<2;ve++)if(z.type==="date"){if(!i.isDateTime(we[ve],z.calendar)){z[de]=_e;break}if(z.r2l(we[0])===z.r2l(we[1])){var Ie=i.constrain(z.r2l(we[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);we[0]=z.l2r(Ie-1e3),we[1]=z.l2r(Ie+1e3);break}}else{if(!w(we[ve])){if(Te||Pe||!w(we[1-ve])){z[de]=_e;break}we[ve]=we[1-ve]*(ve?10:.1)}if(we[ve]<-v?we[ve]=-v:we[ve]>v&&(we[ve]=v),we[0]===we[1]){var ze=Math.max(1,Math.abs(1e-6*we[0]));we[0]-=ze,we[1]+=ze}}}else i.nestedProperty(z,de).set(_e)},z.setScale=function(de){var ye=$._size;if(z.overlaying){var ve=P.getFromId({_fullLayout:$},z.overlaying);z.domain=ve.domain}var _e=de&&z._r?"_r":"range",we=z.calendar;z.cleanRange(_e);var Te,Pe,Ie=z.r2l(z[_e][0],we),ze=z.r2l(z[_e][1],we),De=j==="y";if(De?(z._offset=ye.t+(1-z.domain[1])*ye.h,z._length=ye.h*(z.domain[1]-z.domain[0]),z._m=z._length/(Ie-ze),z._b=-z._m*ze):(z._offset=ye.l+z.domain[0]*ye.w,z._length=ye.w*(z.domain[1]-z.domain[0]),z._m=z._length/(ze-Ie),z._b=-z._m*Ie),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(Ie,ze),Math.max(Ie,ze)),z._rangebreaks.length)){for(Te=0;Teze&&(Qe=!Qe),Qe&&z._rangebreaks.reverse();var Ve=Qe?-1:1;for(z._m2=Ve*z._length/(Math.abs(ze-Ie)-z._lBreaks),z._B.push(-z._m2*(De?ze:Ie)),Te=0;Te_e&&(_e+=7,we_e&&(_e+=24,we=ve&&we<_e)return _}else for(var Qe=Pe._cachedValues[Ie],Ve=0;Ve=ve&&de<_e)return _}}return de},z.locateBreaks=function(de,ye){var ve,_e,we,Te,Pe=[];if(!z.rangebreaks)return Pe;var Ie=z.rangebreaks.slice().sort(function(Ze,Ye){return Ze.pattern===D&&Ye.pattern===L?-1:Ye.pattern===D&&Ze.pattern===L?1:0}),ze=function(Ze,Ye){if((Ze=i.constrain(Ze,de,ye))!==(Ye=i.constrain(Ye,de,ye))){for(var Je=!0,Me=0;Me=Fe.min&&(ZeFe.max&&(Fe.max=Ye),Je=!1)}Je&&Pe.push({min:Ze,max:Ye})}};for(ve=0;vea.duration?(function(){for(var L={},D=0;D rect").call(S.setTranslate,0,0).call(S.setScale,1,1),M.plot.call(S.setTranslate,T._offset,P._offset).call(S.setScale,1,1);var A=M.plot.selectAll(".scatterlayer .trace");A.selectAll(".point").call(S.setPointGroupScale,1,1),A.selectAll(".textpoint").call(S.setTextPointsScale,1,1),A.call(S.hideOutsideRangePoints,M)}function R(M,T){var P=M.plotinfo,A=P.xaxis,L=P.yaxis,D=A._length,k=L._length,I=!!M.xr1,z=!!M.yr1,$=[];if(I){var Q=i.simpleMap(M.xr0,A.r2l),j=i.simpleMap(M.xr1,A.r2l),U=Q[1]-Q[0],X=j[1]-j[0];$[0]=(Q[0]*(1-T)+T*j[0]-Q[0])/(Q[1]-Q[0])*D,$[2]=D*(1-T+T*X/U),A.range[0]=A.l2r(Q[0]*(1-T)+T*j[0]),A.range[1]=A.l2r(Q[1]*(1-T)+T*j[1])}else $[0]=0,$[2]=D;if(z){var te=i.simpleMap(M.yr0,L.r2l),Z=i.simpleMap(M.yr1,L.r2l),K=te[1]-te[0],re=Z[1]-Z[0];$[1]=(te[1]*(1-T)+T*Z[1]-te[1])/(te[0]-te[1])*k,$[3]=k*(1-T+T*re/K),L.range[0]=A.l2r(te[0]*(1-T)+T*Z[0]),L.range[1]=L.l2r(te[1]*(1-T)+T*Z[1])}else $[1]=0,$[3]=k;w.drawOne(y,A,{skipTitle:!0}),w.drawOne(y,L,{skipTitle:!0}),w.redrawComponents(y,[A._id,L._id]);var q=I?D/$[2]:1,Y=z?k/$[3]:1,ee=I?$[0]:0,me=z?$[1]:0,pe=I?$[0]/$[2]*D:0,se=z?$[1]/$[3]*k:0,ae=A._offset-pe,ce=L._offset-se;P.clipRect.call(S.setTranslate,ee,me).call(S.setScale,1/q,1/Y),P.plot.call(S.setTranslate,ae,ce).call(S.setScale,q,Y),S.setPointGroupScale(P.zoomScalePts,1/q,1/Y),S.setTextPointsScale(P.zoomScaleTxt,1/q,1/Y)}w.redrawComponents(y)}},14944:function(d,s,n){var u=n(24040).traceIs,b=n(52976);function i(w){return{v:"x",h:"y"}[w.orientation||"v"]}function S(w,y){var m=i(w),a=u(w,"box-violin"),c=u(w._fullInput||{},"candlestick");return a&&!c&&y===m&&w[m]===void 0&&w[m+"0"]===void 0}d.exports=function(w,y,m,a){m("autotypenumbers",a.autotypenumbersDflt),m("type",(a.splomStash||{}).type)==="-"&&(function(c,h){if(c.type==="-"){var p,v=c._id,_=v.charAt(0);v.indexOf("scene")!==-1&&(v=_);var O=function(L,D,k){for(var I=0;I0&&(z["_"+k+"axes"]||{})[D]||(z[k+"axis"]||k)===D&&(S(z,k)||(z[k]||[]).length||z[k+"0"]))return z}}(h,v,_);if(O)if(O.type!=="histogram"||_!=={v:"y",h:"x"}[O.orientation||"v"]){var C=_+"calendar",x=O[C],R={noMultiCategory:!u(O,"cartesian")||u(O,"noMultiCategory")};if(O.type==="box"&&O._hasPreCompStats&&_==={h:"x",v:"y"}[O.orientation||"v"]&&(R.noMultiCategory=!0),R.autotypenumbers=c.autotypenumbers,S(O,_)){var M=i(O),T=[];for(p=0;p0?".":"")+p;b.isPlainObject(v)?y(v,a,_,h+1):a(_,p,v)}})}s.manageCommandObserver=function(m,a,c,h){var p={},v=!0;a&&a._commandObserver&&(p=a._commandObserver),p.cache||(p.cache={}),p.lookupTable={};var _=s.hasSimpleAPICommandBindings(m,c,p.lookupTable);if(a&&a._commandObserver){if(_)return p;if(a._commandObserver.remove)return a._commandObserver.remove(),a._commandObserver=null,p}if(_){i(m,_,p.cache),p.check=function(){if(v){var x=i(m,_,p.cache);return x.changed&&h&&p.lookupTable[x.value]!==void 0&&(p.disable(),Promise.resolve(h({value:x.value,type:_.type,prop:_.prop,traces:_.traces,index:p.lookupTable[x.value]})).then(p.enable,p.enable)),x.changed}};for(var O=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],C=0;C0&&X<0&&(X+=360);var K=(X-U)/4;return{type:"Polygon",coordinates:[[[U,te],[U,Z],[U+K,Z],[U+2*K,Z],[U+3*K,Z],[X,Z],[X,te],[X-K,te],[X-2*K,te],[X-3*K,te],[U,te]]]}}d.exports=function($){return new k($)},I.plot=function($,Q,j,U){var X=this;if(U)return X.update($,Q,!0);X._geoCalcData=$,X._fullLayout=Q;var te=Q[this.id],Z=[],K=!1;for(var re in P.layerNameToAdjective)if(re!=="frame"&&te["show"+re]){K=!0;break}for(var q=!1,Y=0;Y<$.length;Y++){var ee=$[0][0].trace;ee._geo=X,ee.locationmode&&(K=!0);var me=ee.marker;if(me){var pe=me.angle,se=me.angleref;(pe||se==="north"||se==="previous")&&(q=!0)}}if(this._hasMarkerAngles=q,K){var ae=L.getTopojsonName(te);X.topojson!==null&&ae===X.topojsonName||(X.topojsonName=ae,PlotlyGeoAssets.topojson[X.topojsonName]===void 0&&Z.push(X.fetchTopojson()))}Z=Z.concat(A.fetchTraceGeoData($)),j.push(new Promise(function(ce,de){Promise.all(Z).then(function(){X.topojson=PlotlyGeoAssets.topojson[X.topojsonName],X.update($,Q),ce()}).catch(de)}))},I.fetchTopojson=function(){var $=this,Q=L.getTopojsonPath($.topojsonURL,$.topojsonName);return new Promise(function(j,U){u.json(Q,function(X,te){if(X)return X.status===404?U(new Error(["plotly.js could not find topojson file at",Q+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):U(new Error(["unexpected error while fetching topojson file at",Q].join(" ")));PlotlyGeoAssets.topojson[$.topojsonName]=te,j()})})},I.update=function($,Q,j){var U=Q[this.id];this.hasChoropleth=!1;for(var X=0;X<$.length;X++){var te=$[X],Z=te[0].trace;Z.type==="choropleth"&&(this.hasChoropleth=!0),Z.visible===!0&&Z._length>0&&Z._module.calcGeoJSON(te,Q)}if(!j){if(this.updateProjection($,Q))return;this.viewInitial&&this.scope===U.scope||this.saveViewInitial(U)}this.scope=U.scope,this.updateBaseLayers(Q,U),this.updateDims(Q,U),this.updateFx(Q,U),v.generalUpdatePerTraceModule(this.graphDiv,this,$,U);var K=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=K.selectAll(".point"),this.dataPoints.text=K.selectAll("text"),this.dataPaths.line=K.selectAll(".js-line");var re=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=re.selectAll("path"),this._render()},I.updateProjection=function($,Q){var j=this.graphDiv,U=Q[this.id],X=Q._size,te=U.domain,Z=U.projection,K=U.lonaxis,re=U.lataxis,q=K._ax,Y=re._ax,ee=this.projection=function(ke){var Re=ke.projection,We=Re.type,Ue=P.projNames[We];Ue="geo"+m.titleCase(Ue);for(var Ze=(b[Ue]||w[Ue])(),Ye=ke._isSatellite?180*Math.acos(1/Re.distance)/Math.PI:ke._isClipped?P.lonaxisSpan[We]/2:null,Je=["center","rotate","parallels","clipExtent"],Me=function(tt){return tt?Ze:[]},Fe=0;FeYe*Math.PI/180}return!1},Ze.getPath=function(){return i().projection(Ze)},Ze.getBounds=function(tt){return Ze.getPath().bounds(tt)},Ze.precision(P.precision),ke._isSatellite&&Ze.tilt(Re.tilt).distance(Re.distance),Ye&&Ze.clipAngle(Ye-P.clipPad),Ze}(U),me=[[X.l+X.w*te.x[0],X.t+X.h*(1-te.y[1])],[X.l+X.w*te.x[1],X.t+X.h*(1-te.y[0])]],pe=U.center||{},se=Z.rotation||{},ae=K.range||[],ce=re.range||[];if(U.fitbounds){q._length=me[1][0]-me[0][0],Y._length=me[1][1]-me[0][1],q.range=O(j,q),Y.range=O(j,Y);var de=(q.range[0]+q.range[1])/2,ye=(Y.range[0]+Y.range[1])/2;if(U._isScoped)pe={lon:de,lat:ye};else if(U._isClipped){pe={lon:de,lat:ye},se={lon:de,lat:ye,roll:se.roll};var ve=Z.type,_e=P.lonaxisSpan[ve]/2||180,we=P.lataxisSpan[ve]/2||90;ae=[de-_e,de+_e],ce=[ye-we,ye+we]}else pe={lon:de,lat:ye},se={lon:de,lat:se.lat,roll:se.roll}}ee.center([pe.lon-se.lon,pe.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(Z.parallels);var Te=z(ae,ce);ee.fitExtent(me,Te);var Pe=this.bounds=ee.getBounds(Te),Ie=this.fitScale=ee.scale(),ze=ee.translate();if(U.fitbounds){var De=ee.getBounds(z(q.range,Y.range)),Qe=Math.min((Pe[1][0]-Pe[0][0])/(De[1][0]-De[0][0]),(Pe[1][1]-Pe[0][1])/(De[1][1]-De[0][1]));isFinite(Qe)?ee.scale(Qe*Ie):m.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(Z.scale*Ie);var Ve=this.midPt=[(Pe[0][0]+Pe[1][0])/2,(Pe[0][1]+Pe[1][1])/2];if(ee.translate([ze[0]+(Ve[0]-ze[0]),ze[1]+(Ve[1]-ze[1])]).clipExtent(Pe),U._isAlbersUsa){var $e=ee([pe.lon,pe.lat]),Oe=ee.translate();ee.translate([Oe[0]-($e[0]-Oe[0]),Oe[1]-($e[1]-Oe[1])])}},I.updateBaseLayers=function($,Q){var j=this,U=j.topojson,X=j.layers,te=j.basePaths;function Z(ee){return ee==="lonaxis"||ee==="lataxis"}function K(ee){return!!P.lineLayers[ee]}function re(ee){return!!P.fillLayers[ee]}var q=(this.hasChoropleth?P.layersForChoropleth:P.layers).filter(function(ee){return K(ee)||re(ee)?Q["show"+ee]:!Z(ee)||Q[ee].showgrid}),Y=j.framework.selectAll(".layer").data(q,String);Y.exit().each(function(ee){delete X[ee],delete te[ee],u.select(this).remove()}),Y.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var me=X[ee]=u.select(this);ee==="bg"?j.bgRect=me.append("rect").style("pointer-events","all"):Z(ee)?te[ee]=me.append("path").style("fill","none"):ee==="backplot"?me.append("g").classed("choroplethlayer",!0):ee==="frontplot"?me.append("g").classed("scatterlayer",!0):K(ee)?te[ee]=me.append("path").style("fill","none").style("stroke-miterlimit",2):re(ee)&&(te[ee]=me.append("path").style("stroke","none"))}),Y.order(),Y.each(function(ee){var me=te[ee],pe=P.layerNameToAdjective[ee];ee==="frame"?me.datum(P.sphereSVG):K(ee)||re(ee)?me.datum(D(U,U.objects[ee])):Z(ee)&&me.datum(function(se,ae,ce){var de,ye,ve,_e=ae[se],we=P.scopeDefaults[ae.scope];se==="lonaxis"?(de=we.lonaxisRange,ye=we.lataxisRange,ve=function(Oe,ke){return[Oe,ke]}):se==="lataxis"&&(de=we.lataxisRange,ye=we.lonaxisRange,ve=function(Oe,ke){return[ke,Oe]});var Te={type:"linear",range:[de[0],de[1]-1e-6],tick0:_e.tick0,dtick:_e.dtick};_.setConvert(Te,ce);var Pe=_.calcTicks(Te);ae.isScoped||se!=="lonaxis"||Pe.pop();for(var Ie=Pe.length,ze=new Array(Ie),De=0;De-1&&M(u.event,U,[j.xaxis],[j.yaxis],j.id,K),Z.indexOf("event")>-1&&p.click(U,u.event))})}function re(q){return j.projection.invert([q[0]+j.xaxis._offset,q[1]+j.yaxis._offset])}},I.makeFramework=function(){var $=this,Q=$.graphDiv,j=Q._fullLayout,U="clip"+j._uid+$.id;$.clipDef=j._clips.append("clipPath").attr("id",U),$.clipRect=$.clipDef.append("rect"),$.framework=u.select($.container).append("g").attr("class","geo "+$.id).call(h.setClipUrl,U,Q),$.project=function(X){var te=$.projection(X);return te?[te[0]-$.xaxis._offset,te[1]-$.yaxis._offset]:[null,null]},$.xaxis={_id:"x",c2p:function(X){return $.project(X)[0]}},$.yaxis={_id:"y",c2p:function(X){return $.project(X)[1]}},$.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_.setConvert($.mockAxis,j)},I.saveViewInitial=function($){var Q,j=$.center||{},U=$.projection,X=U.rotation||{};this.viewInitial={fitbounds:$.fitbounds,"projection.scale":U.scale},Q=$._isScoped?{"center.lon":j.lon,"center.lat":j.lat}:$._isClipped?{"projection.rotation.lon":X.lon,"projection.rotation.lat":X.lat}:{"center.lon":j.lon,"center.lat":j.lat,"projection.rotation.lon":X.lon},m.extendFlat(this.viewInitial,Q)},I.render=function($){this._hasMarkerAngles&&$?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},I._render=function(){var $,Q=this.projection,j=Q.getPath();function U(te){var Z=Q(te.lonlat);return Z?a(Z[0],Z[1]):null}function X(te){return Q.isLonLatOverEdges(te.lonlat)?"none":null}for($ in this.basePaths)this.basePaths[$].attr("d",j);for($ in this.dataPaths)this.dataPaths[$].attr("d",function(te){return j(te.geojson)});for($ in this.dataPoints)this.dataPoints[$].attr("display",X).attr("transform",U)}},10816:function(d,s,n){var u=n(84888).KY,b=n(3400).counterRegex,i=n(43520),S="geo",w=b(S),y={};y[S]={valType:"subplotid",dflt:S,editType:"calc"},d.exports={attr:S,name:S,idRoot:S,idRegex:w,attrRegex:w,attributes:y,layoutAttributes:n(40384),supplyLayoutDefaults:n(86920),plot:function(m){for(var a=m._fullLayout,c=m.calcdata,h=a._subplots[S],p=0;p0&&re<0&&(re+=360);var q,Y,ee,me=(K+re)/2;if(!R){var pe=M?C.projRotate:[me,0,0];q=h("projection.rotation.lon",pe[0]),h("projection.rotation.lat",pe[1]),h("projection.rotation.roll",pe[2]),h("showcoastlines",!M&&D)&&(h("coastlinecolor"),h("coastlinewidth")),h("showocean",!!D&&void 0)&&h("oceancolor")}R?(Y=-96.6,ee=38.7):(Y=M?me:q,ee=(Z[0]+Z[1])/2),h("center.lon",Y),h("center.lat",ee),T&&(h("projection.tilt"),h("projection.distance")),P&&h("projection.parallels",C.projParallels||[0,60]),h("projection.scale"),h("showland",!!D&&void 0)&&h("landcolor"),h("showlakes",!!D&&void 0)&&h("lakecolor"),h("showrivers",!!D&&void 0)&&(h("rivercolor"),h("riverwidth")),h("showcountries",M&&O!=="usa"&&D)&&(h("countrycolor"),h("countrywidth")),(O==="usa"||O==="north america"&&_===50)&&(h("showsubunits",D),h("subunitcolor"),h("subunitwidth")),M||h("showframe",D)&&(h("framecolor"),h("framewidth")),h("bgcolor"),h("fitbounds")&&(delete c.projection.scale,M?(delete c.center.lon,delete c.center.lat):A?(delete c.center.lon,delete c.center.lat,delete c.projection.rotation.lon,delete c.projection.rotation.lat,delete c.lonaxis.range,delete c.lataxis.range):(delete c.center.lon,delete c.center.lat,delete c.projection.rotation.lon))}d.exports=function(a,c,h){b(a,c,h,{type:"geo",attributes:w,handleDefaults:m,fullData:h,partition:"y"})}},79248:function(d,s,n){var u=n(33428),b=n(3400),i=n(24040),S=Math.PI/180,w=180/Math.PI,y={cursor:"pointer"},m={cursor:"auto"};function a(M,T){return u.behavior.zoom().translate(T.translate()).scale(T.scale())}function c(M,T,P){var A=M.id,L=M.graphDiv,D=L.layout,k=D[A],I=L._fullLayout,z=I[A],$={},Q={};function j(U,X){$[A+"."+U]=b.nestedProperty(k,U).get(),i.call("_storeDirectGUIEdit",D,I._preGUI,$);var te=b.nestedProperty(z,U);te.get()!==X&&(te.set(X),b.nestedProperty(k,U).set(X),Q[A+"."+U]=X)}P(j),j("projection.scale",T.scale()/M.fitScale),j("fitbounds",!1),L.emit("plotly_relayout",Q)}function h(M,T){var P=a(0,T);function A(L){var D=T.invert(M.midPt);L("center.lon",D[0]),L("center.lat",D[1])}return P.on("zoomstart",function(){u.select(this).style(y)}).on("zoom",function(){T.scale(u.event.scale).translate(u.event.translate),M.render(!0);var L=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":L[0],"geo.center.lat":L[1]})}).on("zoomend",function(){u.select(this).style(m),c(M,T,A)}),P}function p(M,T){var P,A,L,D,k,I,z,$,Q,j=a(0,T);function U(te){return T.invert(te)}function X(te){var Z=T.rotate(),K=T.invert(M.midPt);te("projection.rotation.lon",-Z[0]),te("center.lon",K[0]),te("center.lat",K[1])}return j.on("zoomstart",function(){u.select(this).style(y),P=u.mouse(this),A=T.rotate(),L=T.translate(),D=A,k=U(P)}).on("zoom",function(){if(I=u.mouse(this),function(K){var re=U(K);if(!re)return!0;var q=T(re);return Math.abs(q[0]-K[0])>2||Math.abs(q[1]-K[1])>2}(P))return j.scale(T.scale()),void j.translate(T.translate());T.scale(u.event.scale),T.translate([L[0],u.event.translate[1]]),k?U(I)&&($=U(I),z=[D[0]+($[0]-k[0]),A[1],A[2]],T.rotate(z),D=z):k=U(P=I),Q=!0,M.render(!0);var te=T.rotate(),Z=T.invert(M.midPt);M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.center.lon":Z[0],"geo.center.lat":Z[1],"geo.projection.rotation.lon":-te[0]})}).on("zoomend",function(){u.select(this).style(m),Q&&c(M,T,X)}),j}function v(M,T){var P;T.rotate(),T.scale();var A=a(0,T),L=function(z){for(var $=0,Q=arguments.length,j=[];++$Ge?(Ze=(je>0?90:-90)-ot,Ue=0):(Ze=Math.asin(je/Ge)*w-ot,Ue=Math.sqrt(Ge*Ge-je*je));var ht=180-Ze-2*ot,pt=(Math.atan2(tt,Fe)-Math.atan2(Me,Ue))*w,St=(Math.atan2(tt,Fe)-Math.atan2(Me,-Ue))*w;return O(Re[0],Re[1],Ze,pt)<=O(Re[0],Re[1],ht,St)?[Ze,pt,Re[2]]:[ht,St,Re[2]]}(Ve,P,me);isFinite($e[0])&&isFinite($e[1])&&isFinite($e[2])||($e=me),T.rotate($e),me=$e}}else P=_(T,Y=ze);L.of(this,arguments)({type:"zoom"})}),q=L.of(this,arguments),D++||q({type:"zoomstart"})}).on("zoomend",function(){var z;u.select(this).style(m),k.call(A,"zoom",null),z=L.of(this,arguments),--D||z({type:"zoomend"}),c(M,T,I)}).on("zoom.redraw",function(){M.render(!0);var z=T.rotate();M.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/M.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),u.rebind(A,L,"on")}function _(M,T){var P=M.invert(T);return P&&isFinite(P[0])&&isFinite(P[1])&&function(A){var L=A[0]*S,D=A[1]*S,k=Math.cos(D);return[k*Math.cos(L),k*Math.sin(L),Math.sin(D)]}(P)}function O(M,T,P,A){var L=C(P-M),D=C(A-T);return Math.sqrt(L*L+D*D)}function C(M){return(M%360+540)%360-180}function x(M,T,P){var A=P*S,L=M.slice(),D=T===0?1:0,k=T===2?1:2,I=Math.cos(A),z=Math.sin(A);return L[D]=M[D]*I-M[k]*z,L[k]=M[k]*I+M[D]*z,L}function R(M,T){for(var P=0,A=0,L=M.length;AMath.abs(R)?(h.boxEnd[1]=h.boxStart[1]+Math.abs(x)*j*(R>=0?1:-1),h.boxEnd[1]M[3]&&(h.boxEnd[1]=M[3],h.boxEnd[0]=h.boxStart[0]+(M[3]-h.boxStart[1])/Math.abs(j))):(h.boxEnd[0]=h.boxStart[0]+Math.abs(R)/j*(x>=0?1:-1),h.boxEnd[0]M[2]&&(h.boxEnd[0]=M[2],h.boxEnd[1]=h.boxStart[1]+(M[2]-h.boxStart[0])*Math.abs(j)))}}else h.boxEnabled?(x=h.boxStart[0]!==h.boxEnd[0],R=h.boxStart[1]!==h.boxEnd[1],x||R?(x&&(k(0,h.boxStart[0],h.boxEnd[0]),m.xaxis.autorange=!1),R&&(k(1,h.boxStart[1],h.boxEnd[1]),m.yaxis.autorange=!1),m.relayoutCallback()):m.glplot.setDirty(),h.boxEnabled=!1,h.boxInited=!1):h.boxInited&&(h.boxInited=!1);break;case"pan":h.boxEnabled=!1,h.boxInited=!1,_?(h.panning||(h.dragStart[0]=O,h.dragStart[1]=C),Math.abs(h.dragStart[0]-O).999&&(A="turntable"):A="turntable")}else A="turntable";v("dragmode",A),v("hovermode",_.getDfltFromLayout("hovermode"))}d.exports=function(h,p,v){var _=p._basePlotModules.length>1;S(h,p,v,{type:a,attributes:y,handleDefaults:c,fullLayout:p,font:p.font,fullData:v,getDfltFromLayout:function(O){if(!_)return u.validate(h[O],y[O])?h[O]:void 0},autotypenumbersDflt:p.autotypenumbers,paper_bgcolor:p.paper_bgcolor,calendar:p.calendar})}},346:function(d,s,n){var u=n(86140),b=n(86968).u,i=n(92880).extendFlat,S=n(3400).counterRegex;function w(y,m,a){return{x:{valType:"number",dflt:y,editType:"camera"},y:{valType:"number",dflt:m,editType:"camera"},z:{valType:"number",dflt:a,editType:"camera"},editType:"camera"}}d.exports={_arrayAttrRegexps:[S("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:i(w(0,0,1),{}),center:i(w(0,0,0),{}),eye:i(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:b({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:u,yaxis:u,zaxis:u,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},9020:function(d,s,n){var u=n(43080),b=["xaxis","yaxis","zaxis"];function i(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}i.prototype.merge=function(S){for(var w=0;w<3;++w){var y=S[b[w]];y.visible?(this.enabled[w]=y.showspikes,this.colors[w]=u(y.spikecolor),this.drawSides[w]=y.spikesides,this.lineWidth[w]=y.spikethickness):(this.enabled[w]=!1,this.drawSides[w]=!1)}},d.exports=function(S){var w=new i;return w.merge(S),w}},87152:function(d,s,n){d.exports=function(w){for(var y=w.axesOptions,m=w.glplot.axesPixels,a=w.fullSceneLayout,c=[[],[],[]],h=0;h<3;++h){var p=a[i[h]];if(p._length=(m[h].hi-m[h].lo)*m[h].pixelsPerDataUnit/w.dataScale[h],Math.abs(p._length)===1/0||isNaN(p._length))c[h]=[];else{p._input_range=p.range.slice(),p.range[0]=m[h].lo/w.dataScale[h],p.range[1]=m[h].hi/w.dataScale[h],p._m=1/(w.dataScale[h]*m[h].pixelsPerDataUnit),p.range[0]===p.range[1]&&(p.range[0]-=1,p.range[1]+=1);var v=p.tickmode;if(p.tickmode==="auto"){p.tickmode="linear";var _=p.nticks||b.constrain(p._length/40,4,9);u.autoTicks(p,Math.abs(p.range[1]-p.range[0])/_)}for(var O=u.calcTicks(p,{msUTC:!0}),C=0;C/g," "));c[h]=O,p.tickmode=v}}for(y.ticks=c,h=0;h<3;++h)for(S[h]=.5*(w.glplot.bounds[0][h]+w.glplot.bounds[1][h]),C=0;C<2;++C)y.bounds[C][h]=w.glplot.bounds[C][h];w.contourLevels=function(x){for(var R=new Array(3),M=0;M<3;++M){for(var T=x[M],P=new Array(T.length),A=0;AX.deltaY?1.1:.9090909090909091,Z=z.glplot.getAspectratio();z.glplot.setAspectratio({x:te*Z.x,y:te*Z.y,z:te*Z.z})}U(z)}},!!m&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var X=j();z.graphDiv.emit("plotly_relayouting",X)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(X){$&&$.emit&&$.emit("plotly_webglcontextlost",{event:X,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},L.render=function(){var z,$=this,Q=$.graphDiv,j=$.svgContainer,U=$.container.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var X=Q._fullLayout._invScaleX,te=Q._fullLayout._invScaleY,Z=U.width*X,K=U.height*te;j.setAttributeNS(null,"viewBox","0 0 "+Z+" "+K),j.setAttributeNS(null,"width",Z),j.setAttributeNS(null,"height",K),M($),$.glplot.axes.update($.axesOptions);for(var re=Object.keys($.traces),q=null,Y=$.glplot.selection,ee=0;ee")):z.type==="isosurface"||z.type==="volume"?(de.valueLabel=p.hoverLabelText($._mockAxis,$._mockAxis.d2l(Y.traceCoordinate[3]),z.valuehoverformat),we.push("value: "+de.valueLabel),Y.textLabel&&we.push(Y.textLabel),se=we.join("
    ")):se=Y.textLabel;var Te={x:Y.traceCoordinate[0],y:Y.traceCoordinate[1],z:Y.traceCoordinate[2],data:ae._input,fullData:ae,curveNumber:ae.index,pointNumber:ce};v.appendArrayPointValue(Te,ae,ce),z._module.eventData&&(Te=ae._module.eventData(Te,Y,ae,{},ce));var Pe={points:[Te]};if($.fullSceneLayout.hovermode){var Ie=[];v.loneHover({trace:ae,x:(.5+.5*pe[0]/pe[3])*Z,y:(.5-.5*pe[1]/pe[3])*K,xLabel:de.xLabel,yLabel:de.yLabel,zLabel:de.zLabel,text:se,name:q.name,color:v.castHoverOption(ae,ce,"bgcolor")||q.color,borderColor:v.castHoverOption(ae,ce,"bordercolor"),fontFamily:v.castHoverOption(ae,ce,"font.family"),fontSize:v.castHoverOption(ae,ce,"font.size"),fontColor:v.castHoverOption(ae,ce,"font.color"),nameLength:v.castHoverOption(ae,ce,"namelength"),textAlign:v.castHoverOption(ae,ce,"align"),hovertemplate:c.castOption(ae,ce,"hovertemplate"),hovertemplateLabels:c.extendFlat({},Te,de),eventData:[Te]},{container:j,gd:Q,inOut_bbox:Ie}),Te.bbox=Ie[0]}Y.distance<5&&(Y.buttons||P)?Q.emit("plotly_click",Pe):Q.emit("plotly_hover",Pe),this.oldEventData=Pe}else v.loneUnhover(j),this.oldEventData&&Q.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;$.drawAnnotations($)},L.recoverContext=function(){var z=this;z.glplot.dispose();var $=function(){z.glplot.gl.isContextLost()?requestAnimationFrame($):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):c.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame($)};var k=["xaxis","yaxis","zaxis"];function I(z,$,Q){for(var j=z.fullSceneLayout,U=0;U<3;U++){var X=k[U],te=X.charAt(0),Z=j[X],K=$[te],re=$[te+"calendar"],q=$["_"+te+"length"];if(c.isArrayOrTypedArray(K))for(var Y,ee=0;ee<(q||K.length);ee++)if(c.isArrayOrTypedArray(K[ee]))for(var me=0;meae[1][te])ae[0][te]=-1,ae[1][te]=1;else{var Qe=ae[1][te]-ae[0][te];ae[0][te]-=Qe/32,ae[1][te]+=Qe/32}if(ye=[ae[0][te],ae[1][te]],ye=T(ye,K),ae[0][te]=ye[0],ae[1][te]=ye[1],K.isReversed()){var Ve=ae[0][te];ae[0][te]=ae[1][te],ae[1][te]=Ve}}else ye=K.range,ae[0][te]=K.r2l(ye[0]),ae[1][te]=K.r2l(ye[1]);ae[0][te]===ae[1][te]&&(ae[0][te]-=1,ae[1][te]+=1),ce[te]=ae[1][te]-ae[0][te],K.range=[ae[0][te],ae[1][te]],K.limitRange(),j.glplot.setBounds(te,{min:K.range[0]*me[te],max:K.range[1]*me[te]})}var $e=q.aspectmode;if($e==="cube")se=[1,1,1];else if($e==="manual"){var Oe=q.aspectratio;se=[Oe.x,Oe.y,Oe.z]}else{if($e!=="auto"&&$e!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ke=[1,1,1];for(te=0;te<3;++te){var Re=de[re=(K=q[k[te]]).type];ke[te]=Math.pow(Re.acc,1/Re.count)/me[te]}se=$e==="data"||Math.max.apply(null,ke)/Math.min.apply(null,ke)<=4?ke:[1,1,1]}q.aspectratio.x=Y.aspectratio.x=se[0],q.aspectratio.y=Y.aspectratio.y=se[1],q.aspectratio.z=Y.aspectratio.z=se[2],j.glplot.setAspectratio(q.aspectratio),j.viewInitial.aspectratio||(j.viewInitial.aspectratio={x:q.aspectratio.x,y:q.aspectratio.y,z:q.aspectratio.z}),j.viewInitial.aspectmode||(j.viewInitial.aspectmode=q.aspectmode);var We=q.domain||null,Ue=$._size||null;if(We&&Ue){var Ze=j.container.style;Ze.position="absolute",Ze.left=Ue.l+We.x[0]*Ue.w+"px",Ze.top=Ue.t+(1-We.y[1])*Ue.h+"px",Ze.width=Ue.w*(We.x[1]-We.x[0])+"px",Ze.height=Ue.h*(We.y[1]-We.y[0])+"px"}j.glplot.redraw()}},L.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},L.getCamera=function(){var z,$=this;return $.camera.view.recalcMatrix($.camera.view.lastT()),{up:{x:(z=$.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},L.setViewport=function(z){var $,Q=this,j=z.camera;Q.camera.lookAt.apply(this,[[($=j).eye.x,$.eye.y,$.eye.z],[$.center.x,$.center.y,$.center.z],[$.up.x,$.up.y,$.up.z]]),Q.glplot.setAspectratio(z.aspectratio),j.projection.type==="orthographic"!==Q.camera._ortho&&(Q.glplot.redraw(),Q.glplot.clearRGBA(),Q.glplot.dispose(),Q.initializeGLPlot())},L.isCameraChanged=function(z){var $=this.getCamera(),Q=c.nestedProperty(z,this.id+".camera").get();function j(Z,K,re,q){var Y=["up","center","eye"],ee=["x","y","z"];return K[Y[re]]&&Z[Y[re]][ee[q]]===K[Y[re]][ee[q]]}var U=!1;if(Q===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!j($,Q,X,te)){U=!0;break}(!Q.projection||$.projection&&$.projection.type!==Q.projection.type)&&(U=!0)}return U},L.isAspectChanged=function(z){var $=this.glplot.getAspectratio(),Q=c.nestedProperty(z,this.id+".aspectratio").get();return Q===void 0||Q.x!==$.x||Q.y!==$.y||Q.z!==$.z},L.saveLayout=function(z){var $,Q,j,U,X,te,Z=this,K=Z.fullLayout,re=Z.isCameraChanged(z),q=Z.isAspectChanged(z),Y=re||q;if(Y){var ee={};re&&($=Z.getCamera(),j=(Q=c.nestedProperty(z,Z.id+".camera")).get(),ee[Z.id+".camera"]=j),q&&(U=Z.glplot.getAspectratio(),te=(X=c.nestedProperty(z,Z.id+".aspectratio")).get(),ee[Z.id+".aspectratio"]=te),a.call("_storeDirectGUIEdit",z,K._preGUI,ee),re&&(Q.set($),c.nestedProperty(K,Z.id+".camera").set($)),q&&(X.set(U),c.nestedProperty(K,Z.id+".aspectratio").set(U),Z.glplot.redraw())}return Y},L.updateFx=function(z,$){var Q=this,j=Q.camera;if(j)if(z==="orbit")j.mode="orbit",j.keyBindingMode="rotate";else if(z==="turntable"){j.up=[0,0,1],j.mode="turntable",j.keyBindingMode="rotate";var U=Q.graphDiv,X=U._fullLayout,te=Q.fullSceneLayout.camera,Z=te.up.x,K=te.up.y,re=te.up.z;if(re/Math.sqrt(Z*Z+K*K+re*re)<.999){var q=Q.id+".camera.up",Y={x:0,y:0,z:1},ee={};ee[q]=Y;var me=U.layout;a.call("_storeDirectGUIEdit",me,X._preGUI,ee),te.up=Y,c.nestedProperty(me,q).set(Y)}}else j.keyBindingMode=z;Q.fullSceneLayout.hovermode=$},L.toImage=function(z){var $=this;z||(z="png"),$.staticMode&&$.container.appendChild(u),$.glplot.redraw();var Q=$.glplot.gl,j=Q.drawingBufferWidth,U=Q.drawingBufferHeight;Q.bindFramebuffer(Q.FRAMEBUFFER,null);var X=new Uint8Array(j*U*4);Q.readPixels(0,0,j,U,Q.RGBA,Q.UNSIGNED_BYTE,X),function(q,Y,ee){for(var me=0,pe=ee-1;me0)for(var ce=255/ae,de=0;de<3;++de)q[se+de]=Math.min(ce*q[se+de],255)}}(X,j,U);var te=document.createElement("canvas");te.width=j,te.height=U;var Z,K=te.getContext("2d",{willReadFrequently:!0}),re=K.createImageData(j,U);switch(re.data.set(X),K.putImageData(re,0,0),z){case"jpeg":Z=te.toDataURL("image/jpeg");break;case"webp":Z=te.toDataURL("image/webp");break;default:Z=te.toDataURL("image/png")}return $.staticMode&&$.container.removeChild(u),Z},L.setConvert=function(){for(var z=0;z<3;z++){var $=this.fullSceneLayout[k[z]];p.setConvert($,this.fullLayout),$.setScale=c.noop}},L.make4thDimension=function(){var z=this,$=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},p.setConvert(z._mockAxis,$)},d.exports=A},52094:function(d){d.exports=function(s,n,u,b){b=b||s.length;for(var i=new Array(b),S=0;SOpenStreetMap
    contributors',S=['© Carto',i].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),y={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:i,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:S,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},m=u(y);d.exports={requiredVersion:b,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:y,styleValuesNonMapbox:m,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+b+"."].join(` @@ -2317,10 +2317,10 @@ void main() { `||X==="\\"?(q.push(U),X=U,Z+1):(we(q.join("")),re=O,Z)}function ze(){return U==="/"&&X==="*"?(q.push(U),we(q.join("")),re=O,Z+1):(q.push(U),X=U,Z+1)}function De(){if(X==="."&&/\d/.test(U))return re=A,Z;if(X==="/"&&U==="*")return re=x,Z;if(X==="/"&&U==="/")return re=R,Z;if(U==="."&&q.length){for(;Qe(q););return re=A,Z}if(U===";"||U===")"||U==="("){if(q.length)for(;Qe(q););return we(U),re=O,Z+1}var Re=q.length===2&&U!=="=";if(/[\w_\d\s]/.test(U)||Re){for(;Qe(q););return re=O,Z}return q.push(U),X=U,Z+1}function Qe(Re){for(var We,Ue,Ze=0;;){if(We=h.indexOf(Re.slice(0,Re.length+Ze).join("")),Ue=h[We],We===-1){if(Ze--+Re.length>0)continue;Ue=Re.slice(0,1).join("")}return we(Ue),pe+=Ue.length,(q=q.slice(Ue.length)).length}}function Ve(){return/[^a-fA-F0-9]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function $e(){return U==="."||/[eE]/.test(U)?(q.push(U),re=A,X=U,Z+1):U==="x"&&q.length===1&&q[0]==="0"?(re=$,q.push(U),X=U,Z+1):/[^\d]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function Oe(){return U==="f"&&(q.push(U),X=U,Z+=1),/[eE]/.test(U)?(q.push(U),X=U,Z+1):(U!=="-"&&U!=="+"||!/[eE]/.test(X))&&/[^\d]/.test(U)?(we(q.join("")),re=O,Z):(q.push(U),X=U,Z+1)}function ke(){if(/[^\d\w_]/.test(U)){var Re=q.join("");return re=_e[Re]?k:ve[Re]?D:L,we(q.join("")),re=O,Z}return q.push(U),X=U,Z+1}};var c=a(399),h=a(9746),p=a(9525),v=a(9458),_=a(3585),O=999,C=9999,x=0,R=1,M=2,T=3,P=4,A=5,L=6,D=7,k=8,I=9,z=10,$=11,Q=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"]},3585:function(y,m,a){var c=a(9525);c=c.slice().filter(function(h){return!/^(gl\_|texture)/.test(h)}),y.exports=c.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},9525:function(y){y.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},9458:function(y,m,a){var c=a(399);y.exports=c.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},399:function(y){y.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},9746:function(y){y.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},8096:function(y,m,a){var c=a(3193);y.exports=function(h,p){var v=c(p),_=[];return(_=_.concat(v(h))).concat(v(null))}},6832:function(y){y.exports=function(m){typeof m=="string"&&(m=[m]);for(var a=[].slice.call(arguments,1),c=[],h=0;h0;)for(var k=(R=D.pop()).adjacent,I=0;I<=T;++I){var z=k[I];if(z.boundary&&!(z.lastVisited<=-P)){for(var $=z.vertices,Q=0;Q<=T;++Q){var j=$[Q];A[Q]=j<0?M:L[j]}var U=this.orient();if(U>0)return z;z.lastVisited=-P,U===0&&D.push(z)}}return null},x.walk=function(R,M){var T=this.vertices.length-1,P=this.dimension,A=this.vertices,L=this.tuple,D=M?this.interior.length*Math.random()|0:this.interior.length-1,k=this.interior[D];e:for(;!k.boundary;){for(var I=k.vertices,z=k.adjacent,$=0;$<=P;++$)L[$]=A[I[$]];for(k.lastVisited=T,$=0;$<=P;++$){var Q=z[$];if(!(Q.lastVisited>=T)){var j=L[$];L[$]=R;var U=this.orient();if(L[$]=j,U<0){k=Q;continue e}Q.boundary?Q.lastVisited=-T:Q.lastVisited=T}}return}return k},x.addPeaks=function(R,M){var T=this.vertices.length-1,P=this.dimension,A=this.vertices,L=this.tuple,D=this.interior,k=this.simplices,I=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,D.push(M);for(var z=[];I.length>0;){var $=(M=I.pop()).vertices,Q=M.adjacent,j=$.indexOf(T);if(!(j<0)){for(var U=0;U<=P;++U)if(U!==j){var X=Q[U];if(X.boundary&&!(X.lastVisited>=T)){var te=X.vertices;if(X.lastVisited!==-T){for(var Z=0,K=0;K<=P;++K)te[K]<0?(Z=K,L[K]=R):L[K]=A[te[K]];if(this.orient()>0){te[Z]=T,X.boundary=!1,D.push(X),I.push(X),X.lastVisited=T;continue}X.lastVisited=-T}var re=X.adjacent,q=$.slice(),Y=Q.slice(),ee=new p(q,Y,!0);k.push(ee);var me=re.indexOf(M);if(!(me<0))for(re[me]=ee,Y[j]=X,q[U]=-1,Y[U]=M,Q[U]=ee,ee.flip(),K=0;K<=P;++K){var pe=q[K];if(!(pe<0||pe===T)){for(var se=new Array(P-1),ae=0,ce=0;ce<=P;++ce){var de=q[ce];de<0||ce===K||(se[ae++]=de)}z.push(new v(se,ee,K))}}}}}}for(z.sort(_),U=0;U+1=0?D[I++]=k[$]:z=1&$;if(z===(1&R)){var Q=D[0];D[0]=D[1],D[1]=Q}M.push(D)}}return M}},9014:function(y,m,a){var c=a(5070);function h(I,z,$,Q,j){this.mid=I,this.left=z,this.right=$,this.leftPoints=Q,this.rightPoints=j,this.count=(z?z.count:0)+($?$.count:0)+Q.length}y.exports=function(I){return I&&I.length!==0?new D(L(I)):new D(null)};var p=h.prototype;function v(I,z){I.mid=z.mid,I.left=z.left,I.right=z.right,I.leftPoints=z.leftPoints,I.rightPoints=z.rightPoints,I.count=z.count}function _(I,z){var $=L(z);I.mid=$.mid,I.left=$.left,I.right=$.right,I.leftPoints=$.leftPoints,I.rightPoints=$.rightPoints,I.count=$.count}function O(I,z){var $=I.intervals([]);$.push(z),_(I,$)}function C(I,z){var $=I.intervals([]),Q=$.indexOf(z);return Q<0?0:($.splice(Q,1),_(I,$),1)}function x(I,z,$){for(var Q=0;Q=0&&I[Q][1]>=z;--Q){var j=$(I[Q]);if(j)return j}}function M(I,z){for(var $=0;$>1],j=[],U=[],X=[];for($=0;$3*(z+1)?O(this,I):this.left.insert(I):this.left=L([I]);else if(I[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?O(this,I):this.right.insert(I):this.right=L([I]);else{var $=c.ge(this.leftPoints,I,P),Q=c.ge(this.rightPoints,I,A);this.leftPoints.splice($,0,I),this.rightPoints.splice(Q,0,I)}},p.remove=function(I){var z=this.count-this.leftPoints;if(I[1]3*(z-1)?C(this,I):(U=this.left.remove(I))===2?(this.left=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(I[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(z-1)?C(this,I):(U=this.right.remove(I))===2?(this.right=null,this.count-=1,1):(U===1&&(this.count-=1),U):0;if(this.count===1)return this.leftPoints[0]===I?2:0;if(this.leftPoints.length===1&&this.leftPoints[0]===I){if(this.left&&this.right){for(var $=this,Q=this.left;Q.right;)$=Q,Q=Q.right;if($===this)Q.right=this.right;else{var j=this.left,U=this.right;$.count-=Q.count,$.right=Q.left,Q.left=j,Q.right=U}v(this,Q),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?v(this,this.left):v(this,this.right);return 1}for(j=c.ge(this.leftPoints,I,P);jthis.mid?this.right&&($=this.right.queryPoint(I,z))?$:R(this.rightPoints,I,z):M(this.leftPoints,z);var $},p.queryInterval=function(I,z,$){var Q;return Ithis.mid&&this.right&&(Q=this.right.queryInterval(I,z,$))?Q:zthis.mid?R(this.rightPoints,I,$):M(this.leftPoints,$)};var k=D.prototype;k.insert=function(I){this.root?this.root.insert(I):this.root=new h(I[0],null,null,[I],[I])},k.remove=function(I){if(this.root){var z=this.root.remove(I);return z===2&&(this.root=null),z!==0}return!1},k.queryPoint=function(I,z){if(this.root)return this.root.queryPoint(I,z)},k.queryInterval=function(I,z,$){if(I<=z&&this.root)return this.root.queryInterval(I,z,$)},Object.defineProperty(k,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(k,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},9560:function(y){y.exports=function(m){for(var a=new Array(m),c=0;c13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},3578:function(y){y.exports=function(m,a,c){return m*(1-c)+a*c}},7191:function(y,m,a){var c=a(4690),h=a(9823),p=a(7332),v=a(7787),_=a(7437),O=a(2142),C={length:a(4693),normalize:a(899),dot:a(9305),cross:a(903)},x=h(),R=h(),M=[0,0,0,0],T=[[0,0,0],[0,0,0],[0,0,0]],P=[0,0,0];function A(L,D,k,I,z){L[0]=D[0]*I+k[0]*z,L[1]=D[1]*I+k[1]*z,L[2]=D[2]*I+k[2]*z}y.exports=function(L,D,k,I,z,$){if(D||(D=[0,0,0]),k||(k=[0,0,0]),I||(I=[0,0,0]),z||(z=[0,0,0,1]),$||($=[0,0,0,1]),!c(x,L)||(p(R,x),R[3]=0,R[7]=0,R[11]=0,R[15]=1,Math.abs(v(R)<1e-8)))return!1;var Q,j,U,X,te,Z,K,re=x[3],q=x[7],Y=x[11],ee=x[12],me=x[13],pe=x[14],se=x[15];if(re!==0||q!==0||Y!==0){if(M[0]=re,M[1]=q,M[2]=Y,M[3]=se,!_(R,R))return!1;O(R,R),Q=z,U=R,X=(j=M)[0],te=j[1],Z=j[2],K=j[3],Q[0]=U[0]*X+U[4]*te+U[8]*Z+U[12]*K,Q[1]=U[1]*X+U[5]*te+U[9]*Z+U[13]*K,Q[2]=U[2]*X+U[6]*te+U[10]*Z+U[14]*K,Q[3]=U[3]*X+U[7]*te+U[11]*Z+U[15]*K}else z[0]=z[1]=z[2]=0,z[3]=1;if(D[0]=ee,D[1]=me,D[2]=pe,function(ce,de){ce[0][0]=de[0],ce[0][1]=de[1],ce[0][2]=de[2],ce[1][0]=de[4],ce[1][1]=de[5],ce[1][2]=de[6],ce[2][0]=de[8],ce[2][1]=de[9],ce[2][2]=de[10]}(T,x),k[0]=C.length(T[0]),C.normalize(T[0],T[0]),I[0]=C.dot(T[0],T[1]),A(T[1],T[1],T[0],1,-I[0]),k[1]=C.length(T[1]),C.normalize(T[1],T[1]),I[0]/=k[1],I[1]=C.dot(T[0],T[2]),A(T[2],T[2],T[0],1,-I[1]),I[2]=C.dot(T[1],T[2]),A(T[2],T[2],T[1],1,-I[2]),k[2]=C.length(T[2]),C.normalize(T[2],T[2]),I[1]/=k[2],I[2]/=k[2],C.cross(P,T[1],T[2]),C.dot(T[0],P)<0)for(var ae=0;ae<3;ae++)k[ae]*=-1,T[ae][0]*=-1,T[ae][1]*=-1,T[ae][2]*=-1;return $[0]=.5*Math.sqrt(Math.max(1+T[0][0]-T[1][1]-T[2][2],0)),$[1]=.5*Math.sqrt(Math.max(1-T[0][0]+T[1][1]-T[2][2],0)),$[2]=.5*Math.sqrt(Math.max(1-T[0][0]-T[1][1]+T[2][2],0)),$[3]=.5*Math.sqrt(Math.max(1+T[0][0]+T[1][1]+T[2][2],0)),T[2][1]>T[1][2]&&($[0]=-$[0]),T[0][2]>T[2][0]&&($[1]=-$[1]),T[1][0]>T[0][1]&&($[2]=-$[2]),!0}},4690:function(y){y.exports=function(m,a){var c=a[15];if(c===0)return!1;for(var h=1/c,p=0;p<16;p++)m[p]=a[p]*h;return!0}},7649:function(y,m,a){var c=a(1868),h=a(1102),p=a(7191),v=a(7787),_=a(1116),O=R(),C=R(),x=R();function R(){return{translate:M(),scale:M(1),skew:M(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function M(T){return[T||0,T||0,T||0]}y.exports=function(T,P,A,L){if(v(P)===0||v(A)===0)return!1;var D=p(P,O.translate,O.scale,O.skew,O.perspective,O.quaternion),k=p(A,C.translate,C.scale,C.skew,C.perspective,C.quaternion);return!(!D||!k||(c(x.translate,O.translate,C.translate,L),c(x.skew,O.skew,C.skew,L),c(x.scale,O.scale,C.scale,L),c(x.perspective,O.perspective,C.perspective,L),_(x.quaternion,O.quaternion,C.quaternion,L),h(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion),0))}},1102:function(y,m,a){var c={identity:a(9947),translate:a(998),multiply:a(104),create:a(9823),scale:a(3668),fromRotationTranslation:a(7280)},h=(c.create(),c.create());y.exports=function(p,v,_,O,C,x){return c.identity(p),c.fromRotationTranslation(p,x,v),p[3]=C[0],p[7]=C[1],p[11]=C[2],p[15]=C[3],c.identity(h),O[2]!==0&&(h[9]=O[2],c.multiply(p,p,h)),O[1]!==0&&(h[9]=0,h[8]=O[1],c.multiply(p,p,h)),O[0]!==0&&(h[8]=0,h[4]=O[0],c.multiply(p,p,h)),c.scale(p,p,_),p}},9298:function(y,m,a){var c=a(5070),h=a(7649),p=a(7437),v=a(6109),_=a(7115),O=a(5240),C=a(3012),x=a(998),R=(a(3668),a(899)),M=[0,0,0];function T(L){this._components=L.slice(),this._time=[0],this.prevMatrix=L.slice(),this.nextMatrix=L.slice(),this.computedMatrix=L.slice(),this.computedInverse=L.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}y.exports=function(L){return new T((L=L||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var P=T.prototype;P.recalcMatrix=function(L){var D=this._time,k=c.le(D,L),I=this.computedMatrix;if(!(k<0)){var z=this._components;if(k===D.length-1)for(var $=16*k,Q=0;Q<16;++Q)I[Q]=z[$++];else{var j=D[k+1]-D[k],U=($=16*k,this.prevMatrix),X=!0;for(Q=0;Q<16;++Q)U[Q]=z[$++];var te=this.nextMatrix;for(Q=0;Q<16;++Q)te[Q]=z[$++],X=X&&U[Q]===te[Q];if(j<1e-6||X)for(Q=0;Q<16;++Q)I[Q]=U[Q];else h(I,U,te,(L-D[k])/j)}var Z=this.computedUp;Z[0]=I[1],Z[1]=I[5],Z[2]=I[9],R(Z,Z);var K=this.computedInverse;p(K,I);var re=this.computedEye,q=K[15];re[0]=K[12]/q,re[1]=K[13]/q,re[2]=K[14]/q;var Y=this.computedCenter,ee=Math.exp(this.computedRadius[0]);for(Q=0;Q<3;++Q)Y[Q]=re[Q]-I[2+4*Q]*ee}},P.idle=function(L){if(!(L1&&c(h[C[T-2]],h[C[T-1]],M)<=0;)T-=1,C.pop();for(C.push(R),T=x.length;T>1&&c(h[x[T-2]],h[x[T-1]],M)>=0;)T-=1,x.pop();x.push(R)}v=new Array(x.length+C.length-2);for(var P=0,A=(_=0,C.length);_0;--L)v[P++]=x[L];return v};var c=a(417)[3]},6145:function(y,m,a){y.exports=function(h,p){p||(p=h,h=window);var v=0,_=0,O=0,C={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function R($){var Q=!1;return"altKey"in $&&(Q=Q||$.altKey!==C.alt,C.alt=!!$.altKey),"shiftKey"in $&&(Q=Q||$.shiftKey!==C.shift,C.shift=!!$.shiftKey),"ctrlKey"in $&&(Q=Q||$.ctrlKey!==C.control,C.control=!!$.ctrlKey),"metaKey"in $&&(Q=Q||$.metaKey!==C.meta,C.meta=!!$.metaKey),Q}function M($,Q){var j=c.x(Q),U=c.y(Q);"buttons"in Q&&($=0|Q.buttons),($!==v||j!==_||U!==O||R(Q))&&(v=0|$,_=j||0,O=U||0,p&&p(v,_,O,C))}function T($){M(0,$)}function P(){(v||_||O||C.shift||C.alt||C.meta||C.control)&&(_=O=0,v=0,C.shift=C.alt=C.control=C.meta=!1,p&&p(0,0,0,C))}function A($){R($)&&p&&p(v,_,O,C)}function L($){c.buttons($)===0?M(0,$):M(v,$)}function D($){M(v|c.buttons($),$)}function k($){M(v&~c.buttons($),$)}function I(){x||(x=!0,h.addEventListener("mousemove",L),h.addEventListener("mousedown",D),h.addEventListener("mouseup",k),h.addEventListener("mouseleave",T),h.addEventListener("mouseenter",T),h.addEventListener("mouseout",T),h.addEventListener("mouseover",T),h.addEventListener("blur",P),h.addEventListener("keyup",A),h.addEventListener("keydown",A),h.addEventListener("keypress",A),h!==window&&(window.addEventListener("blur",P),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}I();var z={element:h};return Object.defineProperties(z,{enabled:{get:function(){return x},set:function($){$?I():x&&(x=!1,h.removeEventListener("mousemove",L),h.removeEventListener("mousedown",D),h.removeEventListener("mouseup",k),h.removeEventListener("mouseleave",T),h.removeEventListener("mouseenter",T),h.removeEventListener("mouseout",T),h.removeEventListener("mouseover",T),h.removeEventListener("blur",P),h.removeEventListener("keyup",A),h.removeEventListener("keydown",A),h.removeEventListener("keypress",A),h!==window&&(window.removeEventListener("blur",P),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return _},enumerable:!0},y:{get:function(){return O},enumerable:!0},mods:{get:function(){return C},enumerable:!0}}),z};var c=a(4110)},2565:function(y){var m={left:0,top:0};y.exports=function(a,c,h){c=c||a.currentTarget||a.srcElement,Array.isArray(h)||(h=[0,0]);var p,v=a.clientX||0,_=a.clientY||0,O=(p=c)===window||p===document||p===document.body?m:p.getBoundingClientRect();return h[0]=v-O.left,h[1]=_-O.top,h}},4110:function(y,m){function a(c){return c.target||c.srcElement||window}m.buttons=function(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){if((h=c.which)===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1< 0"),typeof p.vertex!="function"&&v("Must specify vertex creation function"),typeof p.cell!="function"&&v("Must specify cell creation function"),typeof p.phase!="function"&&v("Must specify phase function");for(var C=p.getters||[],x=new Array(O),R=0;R=0?x[R]=!0:x[R]=!1;return function(M,T,P,A,L,D){var k=[D,L].join(",");return(0,h[k])(M,T,P,c.mallocUint32,c.freeUint32)}(p.vertex,p.cell,p.phase,0,_,x)};var h={"false,0,1":function(p,v,_,O,C){return function(x,R,M,T){var P,A=0|x.shape[0],L=0|x.shape[1],D=x.data,k=0|x.offset,I=0|x.stride[0],z=0|x.stride[1],$=k,Q=0|-I,j=0,U=0|-z,X=0,te=-I-z|0,Z=0,K=0|I,re=z-I*A|0,q=0,Y=0,ee=0,me=2*A|0,pe=O(me),se=O(me),ae=0,ce=0,de=-1,ye=-1,ve=0,_e=0|-A,we=0|A,Te=0,Pe=-A-1|0,Ie=A-1|0,ze=0,De=0,Qe=0;for(q=0;q0){if(Y=1,pe[ae++]=_(D[$],R,M,T),$+=K,A>0)for(q=1,P=D[$],ce=pe[ae]=_(P,R,M,T),ve=pe[ae+de],Te=pe[ae+_e],ze=pe[ae+Pe],ce===ve&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,ve,Te,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,q=2;q0)for(q=1,P=D[$],ce=pe[ae]=_(P,R,M,T),ve=pe[ae+de],Te=pe[ae+_e],ze=pe[ae+Pe],ce===ve&&ce===Te&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,ve,Te,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,X,Z,Te,ze,R,M,T)),ae+=1,$+=K,q=2;q0){if(q=1,pe[ae++]=_(D[$],R,M,T),$+=K,L>0)for(Y=1,P=D[$],ce=pe[ae]=_(P,R,M,T),Te=pe[ae+_e],ve=pe[ae+de],ze=pe[ae+Pe],ce===Te&&ce===ve&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,Te,ve,ze,R,M,T),De=se[ae]=ee++),ae+=1,$+=K,Y=2;Y0)for(Y=1,P=D[$],ce=pe[ae]=_(P,R,M,T),Te=pe[ae+_e],ve=pe[ae+de],ze=pe[ae+Pe],ce===Te&&ce===ve&&ce===ze||(j=D[$+Q],X=D[$+U],Z=D[$+te],p(q,Y,P,j,X,Z,ce,Te,ve,ze,R,M,T),De=se[ae]=ee++,ze!==Te&&v(se[ae+_e],De,Z,j,ze,Te,R,M,T)),ae+=1,$+=K,Y=2;Y2&&$[1]>2&&k(z.pick(-1,-1).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,0).lo(1,1).hi($[0]-2,$[1]-2),I.pick(-1,-1,1).lo(1,1).hi($[0]-2,$[1]-2)),$[1]>2&&(D(z.pick(0,-1).lo(1).hi($[1]-2),I.pick(0,-1,1).lo(1).hi($[1]-2)),L(I.pick(0,-1,0).lo(1).hi($[1]-2))),$[1]>2&&(D(z.pick($[0]-1,-1).lo(1).hi($[1]-2),I.pick($[0]-1,-1,1).lo(1).hi($[1]-2)),L(I.pick($[0]-1,-1,0).lo(1).hi($[1]-2))),$[0]>2&&(D(z.pick(-1,0).lo(1).hi($[0]-2),I.pick(-1,0,0).lo(1).hi($[0]-2)),L(I.pick(-1,0,1).lo(1).hi($[0]-2))),$[0]>2&&(D(z.pick(-1,$[1]-1).lo(1).hi($[0]-2),I.pick(-1,$[1]-1,0).lo(1).hi($[0]-2)),L(I.pick(-1,$[1]-1,1).lo(1).hi($[0]-2))),I.set(0,0,0,0),I.set(0,0,1,0),I.set($[0]-1,0,0,0),I.set($[0]-1,0,1,0),I.set(0,$[1]-1,0,0),I.set(0,$[1]-1,1,0),I.set($[0]-1,$[1]-1,0,0),I.set($[0]-1,$[1]-1,1,0),I}}y.exports=function(A,L,D){return Array.isArray(D)||(D=c(L.dimension,typeof D=="string"?D:"clamp")),L.size===0?A:L.dimension===0?(A.set(0),A):function(k){var I=k.join();if(j=x[I])return j;for(var z=k.length,$=[R,M],Q=1;Q<=z;++Q)$.push(T(Q));var j=P.apply(void 0,$);return x[I]=j,j}(D)(A,L)}},3581:function(y){function m(p,v){var _=Math.floor(v),O=v-_,C=0<=_&&_0;){te<64?(A=te,te=0):(A=64,te-=64);for(var Z=0|_[1];Z>0;){Z<64?(L=Z,Z=0):(L=64,Z-=64),x=U+te*k+Z*I,T=X+te*$+Z*Q;var K=0,re=0,q=0,Y=z,ee=k-D*z,me=I-A*k,pe=j,se=$-D*j,ae=Q-A*$;for(q=0;q0;){Q<64?(A=Q,Q=0):(A=64,Q-=64);for(var j=0|_[0];j>0;){j<64?(P=j,j=0):(P=64,j-=64),x=z+Q*D+j*L,T=$+Q*I+j*k;var U=0,X=0,te=D,Z=L-A*D,K=I,re=k-A*I;for(X=0;X0;){X<64?(L=X,X=0):(L=64,X-=64);for(var te=0|_[0];te>0;){te<64?(P=te,te=0):(P=64,te-=64);for(var Z=0|_[1];Z>0;){Z<64?(A=Z,Z=0):(A=64,Z-=64),x=j+X*I+te*D+Z*k,T=U+X*Q+te*z+Z*$;var K=0,re=0,q=0,Y=I,ee=D-L*I,me=k-P*D,pe=Q,se=z-L*Q,ae=$-P*z;for(q=0;qx;){X=0,te=j-P;t:for(U=0;UK)break t;te+=I,X+=z}for(X=j,te=j-P,U=0;U>1,ke=Oe-Qe,Re=Oe+Qe,We=Ve,Ue=ke,Ze=Oe,Ye=Re,Je=$e,Me=M+1,Fe=T-1,je=!0,tt=0,ot=0,Ge=0,ht=I,pt=C(ht),St=C(ht);me=L*We,pe=L*Ue,De=A;e:for(ee=0;ee0){U=We,We=Ue,Ue=U;break e}if(Ge<0)break e;De+=$}me=L*Ye,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ye,Ye=Je,Je=U;break e}if(Ge<0)break e;De+=$}me=L*We,pe=L*Ze,De=A;e:for(ee=0;ee0){U=We,We=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Ze,De=A;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*We,pe=L*Ye,De=A;e:for(ee=0;ee0){U=We,We=Ye,Ye=U;break e}if(Ge<0)break e;De+=$}me=L*Ze,pe=L*Ye,De=A;e:for(ee=0;ee0){U=Ze,Ze=Ye,Ye=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ue,Ue=Je,Je=U;break e}if(Ge<0)break e;De+=$}me=L*Ue,pe=L*Ze,De=A;e:for(ee=0;ee0){U=Ue,Ue=Ze,Ze=U;break e}if(Ge<0)break e;De+=$}me=L*Ye,pe=L*Je,De=A;e:for(ee=0;ee0){U=Ye,Ye=Je,Je=U;break e}if(Ge<0)break e;De+=$}for(me=L*We,pe=L*Ue,se=L*Ze,ae=L*Ye,ce=L*Je,de=L*Ve,ye=L*Oe,ve=L*$e,ze=0,De=A,ee=0;ee0)){if(Ge<0){for(me=L*K,pe=L*Me,se=L*Fe,De=A,ee=0;ee0)for(;;){for(re=A+Fe*L,ze=0,ee=0;ee0)){for(re=A+Fe*L,ze=0,ee=0;ee$e){e:for(;;){for(re=A+Me*L,ze=0,De=A,ee=0;ee1&&D?I(L,D[0],D[1]):I(L)}(O,C,M);return R(M,T)}},8729:function(y,m,a){var c=a(8139),h={};y.exports=function(p){var v=p.order,_=p.dtype,O=[v,_].join(":"),C=h[O];return C||(h[O]=C=c(v,_)),C(p),p}},5050:function(y,m,a){var c=a(4780),h=typeof Float64Array<"u";function p(x,R){return x[0]-R[0]}function v(){var x,R=this.stride,M=new Array(R.length);for(x=0;x=0&&(L+=I*(D=0|A),k-=D),new T(this.data,k,I,L)},P.step=function(A){var L=this.shape[0],D=this.stride[0],k=this.offset,I=0,z=Math.ceil;return typeof A=="number"&&((I=0|A)<0?(k+=D*(L-1),L=z(-L/I)):L=z(L/I),D*=I),new T(this.data,L,D,k)},P.transpose=function(A){A=A===void 0?0:0|A;var L=this.shape,D=this.stride;return new T(this.data,L[A],D[A],this.offset)},P.pick=function(A){var L=[],D=[],k=this.offset;return typeof A=="number"&&A>=0?k=k+this.stride[0]*A|0:(L.push(this.shape[0]),D.push(this.stride[0])),(0,R[L.length+1])(this.data,L,D,k)},function(A,L,D,k){return new T(A,L[0],D[0],k)}},2:function(x,R,M){function T(A,L,D,k,I,z){this.data=A,this.shape=[L,D],this.stride=[k,I],this.offset=0|z}var P=T.prototype;return P.dtype=x,P.dimension=2,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(P,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),P.set=function(A,L,D){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L,D):this.data[this.offset+this.stride[0]*A+this.stride[1]*L]=D},P.get=function(A,L){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L):this.data[this.offset+this.stride[0]*A+this.stride[1]*L]},P.index=function(A,L){return this.offset+this.stride[0]*A+this.stride[1]*L},P.hi=function(A,L){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,this.stride[0],this.stride[1],this.offset)},P.lo=function(A,L){var D=this.offset,k=0,I=this.shape[0],z=this.shape[1],$=this.stride[0],Q=this.stride[1];return typeof A=="number"&&A>=0&&(D+=$*(k=0|A),I-=k),typeof L=="number"&&L>=0&&(D+=Q*(k=0|L),z-=k),new T(this.data,I,z,$,Q,D)},P.step=function(A,L){var D=this.shape[0],k=this.shape[1],I=this.stride[0],z=this.stride[1],$=this.offset,Q=0,j=Math.ceil;return typeof A=="number"&&((Q=0|A)<0?($+=I*(D-1),D=j(-D/Q)):D=j(D/Q),I*=Q),typeof L=="number"&&((Q=0|L)<0?($+=z*(k-1),k=j(-k/Q)):k=j(k/Q),z*=Q),new T(this.data,D,k,I,z,$)},P.transpose=function(A,L){A=A===void 0?0:0|A,L=L===void 0?1:0|L;var D=this.shape,k=this.stride;return new T(this.data,D[A],D[L],k[A],k[L],this.offset)},P.pick=function(A,L){var D=[],k=[],I=this.offset;return typeof A=="number"&&A>=0?I=I+this.stride[0]*A|0:(D.push(this.shape[0]),k.push(this.stride[0])),typeof L=="number"&&L>=0?I=I+this.stride[1]*L|0:(D.push(this.shape[1]),k.push(this.stride[1])),(0,R[D.length+1])(this.data,D,k,I)},function(A,L,D,k){return new T(A,L[0],L[1],D[0],D[1],k)}},3:function(x,R,M){function T(A,L,D,k,I,z,$,Q){this.data=A,this.shape=[L,D,k],this.stride=[I,z,$],this.offset=0|Q}var P=T.prototype;return P.dtype=x,P.dimension=3,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(P,"order",{get:function(){var A=Math.abs(this.stride[0]),L=Math.abs(this.stride[1]),D=Math.abs(this.stride[2]);return A>L?L>D?[2,1,0]:A>D?[1,2,0]:[1,0,2]:A>D?[2,0,1]:D>L?[0,1,2]:[0,2,1]}}),P.set=function(A,L,D,k){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D,k):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D]=k},P.get=function(A,L,D){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D]},P.index=function(A,L,D){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D},P.hi=function(A,L,D){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,this.stride[0],this.stride[1],this.stride[2],this.offset)},P.lo=function(A,L,D){var k=this.offset,I=0,z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.stride[0],U=this.stride[1],X=this.stride[2];return typeof A=="number"&&A>=0&&(k+=j*(I=0|A),z-=I),typeof L=="number"&&L>=0&&(k+=U*(I=0|L),$-=I),typeof D=="number"&&D>=0&&(k+=X*(I=0|D),Q-=I),new T(this.data,z,$,Q,j,U,X,k)},P.step=function(A,L,D){var k=this.shape[0],I=this.shape[1],z=this.shape[2],$=this.stride[0],Q=this.stride[1],j=this.stride[2],U=this.offset,X=0,te=Math.ceil;return typeof A=="number"&&((X=0|A)<0?(U+=$*(k-1),k=te(-k/X)):k=te(k/X),$*=X),typeof L=="number"&&((X=0|L)<0?(U+=Q*(I-1),I=te(-I/X)):I=te(I/X),Q*=X),typeof D=="number"&&((X=0|D)<0?(U+=j*(z-1),z=te(-z/X)):z=te(z/X),j*=X),new T(this.data,k,I,z,$,Q,j,U)},P.transpose=function(A,L,D){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D;var k=this.shape,I=this.stride;return new T(this.data,k[A],k[L],k[D],I[A],I[L],I[D],this.offset)},P.pick=function(A,L,D){var k=[],I=[],z=this.offset;return typeof A=="number"&&A>=0?z=z+this.stride[0]*A|0:(k.push(this.shape[0]),I.push(this.stride[0])),typeof L=="number"&&L>=0?z=z+this.stride[1]*L|0:(k.push(this.shape[1]),I.push(this.stride[1])),typeof D=="number"&&D>=0?z=z+this.stride[2]*D|0:(k.push(this.shape[2]),I.push(this.stride[2])),(0,R[k.length+1])(this.data,k,I,z)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],D[0],D[1],D[2],k)}},4:function(x,R,M){function T(A,L,D,k,I,z,$,Q,j,U){this.data=A,this.shape=[L,D,k,I],this.stride=[z,$,Q,j],this.offset=0|U}var P=T.prototype;return P.dtype=x,P.dimension=4,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(P,"order",{get:M}),P.set=function(A,L,D,k,I){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k,I):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]=I},P.get=function(A,L,D,k){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k]},P.index=function(A,L,D,k){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k},P.hi=function(A,L,D,k){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},P.lo=function(A,L,D,k){var I=this.offset,z=0,$=this.shape[0],Q=this.shape[1],j=this.shape[2],U=this.shape[3],X=this.stride[0],te=this.stride[1],Z=this.stride[2],K=this.stride[3];return typeof A=="number"&&A>=0&&(I+=X*(z=0|A),$-=z),typeof L=="number"&&L>=0&&(I+=te*(z=0|L),Q-=z),typeof D=="number"&&D>=0&&(I+=Z*(z=0|D),j-=z),typeof k=="number"&&k>=0&&(I+=K*(z=0|k),U-=z),new T(this.data,$,Q,j,U,X,te,Z,K,I)},P.step=function(A,L,D,k){var I=this.shape[0],z=this.shape[1],$=this.shape[2],Q=this.shape[3],j=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],Z=this.offset,K=0,re=Math.ceil;return typeof A=="number"&&((K=0|A)<0?(Z+=j*(I-1),I=re(-I/K)):I=re(I/K),j*=K),typeof L=="number"&&((K=0|L)<0?(Z+=U*(z-1),z=re(-z/K)):z=re(z/K),U*=K),typeof D=="number"&&((K=0|D)<0?(Z+=X*($-1),$=re(-$/K)):$=re($/K),X*=K),typeof k=="number"&&((K=0|k)<0?(Z+=te*(Q-1),Q=re(-Q/K)):Q=re(Q/K),te*=K),new T(this.data,I,z,$,Q,j,U,X,te,Z)},P.transpose=function(A,L,D,k){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k;var I=this.shape,z=this.stride;return new T(this.data,I[A],I[L],I[D],I[k],z[A],z[L],z[D],z[k],this.offset)},P.pick=function(A,L,D,k){var I=[],z=[],$=this.offset;return typeof A=="number"&&A>=0?$=$+this.stride[0]*A|0:(I.push(this.shape[0]),z.push(this.stride[0])),typeof L=="number"&&L>=0?$=$+this.stride[1]*L|0:(I.push(this.shape[1]),z.push(this.stride[1])),typeof D=="number"&&D>=0?$=$+this.stride[2]*D|0:(I.push(this.shape[2]),z.push(this.stride[2])),typeof k=="number"&&k>=0?$=$+this.stride[3]*k|0:(I.push(this.shape[3]),z.push(this.stride[3])),(0,R[I.length+1])(this.data,I,z,$)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],L[3],D[0],D[1],D[2],D[3],k)}},5:function(x,R,M){function T(A,L,D,k,I,z,$,Q,j,U,X,te){this.data=A,this.shape=[L,D,k,I,z],this.stride=[$,Q,j,U,X],this.offset=0|te}var P=T.prototype;return P.dtype=x,P.dimension=5,Object.defineProperty(P,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(P,"order",{get:M}),P.set=function(A,L,D,k,I,z){return x==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I,z):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]=z},P.get=function(A,L,D,k,I){return x==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I):this.data[this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I]},P.index=function(A,L,D,k,I){return this.offset+this.stride[0]*A+this.stride[1]*L+this.stride[2]*D+this.stride[3]*k+this.stride[4]*I},P.hi=function(A,L,D,k,I){return new T(this.data,typeof A!="number"||A<0?this.shape[0]:0|A,typeof L!="number"||L<0?this.shape[1]:0|L,typeof D!="number"||D<0?this.shape[2]:0|D,typeof k!="number"||k<0?this.shape[3]:0|k,typeof I!="number"||I<0?this.shape[4]:0|I,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},P.lo=function(A,L,D,k,I){var z=this.offset,$=0,Q=this.shape[0],j=this.shape[1],U=this.shape[2],X=this.shape[3],te=this.shape[4],Z=this.stride[0],K=this.stride[1],re=this.stride[2],q=this.stride[3],Y=this.stride[4];return typeof A=="number"&&A>=0&&(z+=Z*($=0|A),Q-=$),typeof L=="number"&&L>=0&&(z+=K*($=0|L),j-=$),typeof D=="number"&&D>=0&&(z+=re*($=0|D),U-=$),typeof k=="number"&&k>=0&&(z+=q*($=0|k),X-=$),typeof I=="number"&&I>=0&&(z+=Y*($=0|I),te-=$),new T(this.data,Q,j,U,X,te,Z,K,re,q,Y,z)},P.step=function(A,L,D,k,I){var z=this.shape[0],$=this.shape[1],Q=this.shape[2],j=this.shape[3],U=this.shape[4],X=this.stride[0],te=this.stride[1],Z=this.stride[2],K=this.stride[3],re=this.stride[4],q=this.offset,Y=0,ee=Math.ceil;return typeof A=="number"&&((Y=0|A)<0?(q+=X*(z-1),z=ee(-z/Y)):z=ee(z/Y),X*=Y),typeof L=="number"&&((Y=0|L)<0?(q+=te*($-1),$=ee(-$/Y)):$=ee($/Y),te*=Y),typeof D=="number"&&((Y=0|D)<0?(q+=Z*(Q-1),Q=ee(-Q/Y)):Q=ee(Q/Y),Z*=Y),typeof k=="number"&&((Y=0|k)<0?(q+=K*(j-1),j=ee(-j/Y)):j=ee(j/Y),K*=Y),typeof I=="number"&&((Y=0|I)<0?(q+=re*(U-1),U=ee(-U/Y)):U=ee(U/Y),re*=Y),new T(this.data,z,$,Q,j,U,X,te,Z,K,re,q)},P.transpose=function(A,L,D,k,I){A=A===void 0?0:0|A,L=L===void 0?1:0|L,D=D===void 0?2:0|D,k=k===void 0?3:0|k,I=I===void 0?4:0|I;var z=this.shape,$=this.stride;return new T(this.data,z[A],z[L],z[D],z[k],z[I],$[A],$[L],$[D],$[k],$[I],this.offset)},P.pick=function(A,L,D,k,I){var z=[],$=[],Q=this.offset;return typeof A=="number"&&A>=0?Q=Q+this.stride[0]*A|0:(z.push(this.shape[0]),$.push(this.stride[0])),typeof L=="number"&&L>=0?Q=Q+this.stride[1]*L|0:(z.push(this.shape[1]),$.push(this.stride[1])),typeof D=="number"&&D>=0?Q=Q+this.stride[2]*D|0:(z.push(this.shape[2]),$.push(this.stride[2])),typeof k=="number"&&k>=0?Q=Q+this.stride[3]*k|0:(z.push(this.shape[3]),$.push(this.stride[3])),typeof I=="number"&&I>=0?Q=Q+this.stride[4]*I|0:(z.push(this.shape[4]),$.push(this.stride[4])),(0,R[z.length+1])(this.data,z,$,Q)},function(A,L,D,k){return new T(A,L[0],L[1],L[2],L[3],L[4],D[0],D[1],D[2],D[3],D[4],k)}}};function O(x,R){var M=R===-1?"T":String(R),T=_[M];return R===-1?T(x):R===0?T(x,C[x][0]):T(x,C[x],v)}var C={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};y.exports=function(x,R,M,T){if(x===void 0)return(0,C.array[0])([]);typeof x=="number"&&(x=[x]),R===void 0&&(R=[x.length]);var P=R.length;if(M===void 0){M=new Array(P);for(var A=P-1,L=1;A>=0;--A)M[A]=L,L*=R[A]}if(T===void 0)for(T=0,A=0;A>>0;y.exports=function(v,_){if(isNaN(v)||isNaN(_))return NaN;if(v===_)return v;if(v===0)return _<0?-h:h;var O=c.hi(v),C=c.lo(v);return _>v==v>0?C===p?(O+=1,C=0):C+=1:C===0?(C=p,O-=1):C-=1,c.pack(C,O)}},115:function(y,m){m.vertexNormals=function(a,c,h){for(var p=c.length,v=new Array(p),_=h===void 0?1e-6:h,O=0;O_){var Q=v[R],j=1/Math.sqrt(k*z);for($=0;$<3;++$){var U=($+1)%3,X=($+2)%3;Q[$]+=j*(I[U]*D[X]-I[X]*D[U])}}}for(O=0;O_)for(j=1/Math.sqrt(te),$=0;$<3;++$)Q[$]*=j;else for($=0;$<3;++$)Q[$]=0}return v},m.faceNormals=function(a,c,h){for(var p=a.length,v=new Array(p),_=h===void 0?1e-6:h,O=0;O_?1/Math.sqrt(A):0,R=0;R<3;++R)P[R]*=A;v[O]=P}return v}},567:function(y){y.exports=function(m,a,c,h,p,v,_,O,C,x){var R=a+v+x;if(M>0){var M=Math.sqrt(R+1);m[0]=.5*(_-C)/M,m[1]=.5*(O-h)/M,m[2]=.5*(c-v)/M,m[3]=.5*M}else{var T=Math.max(a,v,x);M=Math.sqrt(2*T-R+1),a>=T?(m[0]=.5*M,m[1]=.5*(p+c)/M,m[2]=.5*(O+h)/M,m[3]=.5*(_-C)/M):v>=T?(m[0]=.5*(c+p)/M,m[1]=.5*M,m[2]=.5*(C+_)/M,m[3]=.5*(O-h)/M):(m[0]=.5*(h+O)/M,m[1]=.5*(_+C)/M,m[2]=.5*M,m[3]=.5*(c-p)/M)}return m}},7774:function(y,m,a){y.exports=function(T){var P=(T=T||{}).center||[0,0,0],A=T.rotation||[0,0,0,1],L=T.radius||1;P=[].slice.call(P,0,3),x(A=[].slice.call(A,0,4),A);var D=new R(A,P,Math.log(L));return D.setDistanceLimits(T.zoomMin,T.zoomMax),("eye"in T||"up"in T)&&D.lookAt(0,T.eye,T.center,T.up),D};var c=a(8444),h=a(3012),p=a(5950),v=a(7437),_=a(567);function O(T,P,A){return Math.sqrt(Math.pow(T,2)+Math.pow(P,2)+Math.pow(A,2))}function C(T,P,A,L){return Math.sqrt(Math.pow(T,2)+Math.pow(P,2)+Math.pow(A,2)+Math.pow(L,2))}function x(T,P){var A=P[0],L=P[1],D=P[2],k=P[3],I=C(A,L,D,k);I>1e-6?(T[0]=A/I,T[1]=L/I,T[2]=D/I,T[3]=k/I):(T[0]=T[1]=T[2]=0,T[3]=1)}function R(T,P,A){this.radius=c([A]),this.center=c(P),this.rotation=c(T),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=R.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(T){this.radius.curve(T),this.center.curve(T),this.rotation.curve(T);var P=this.computedRotation;x(P,P);var A=this.computedMatrix;p(A,P);var L=this.computedCenter,D=this.computedEye,k=this.computedUp,I=Math.exp(this.computedRadius[0]);D[0]=L[0]+I*A[2],D[1]=L[1]+I*A[6],D[2]=L[2]+I*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var z=0;z<3;++z){for(var $=0,Q=0;Q<3;++Q)$+=A[z+4*Q]*D[Q];A[12+z]=-$}},M.getMatrix=function(T,P){this.recalcMatrix(T);var A=this.computedMatrix;if(P){for(var L=0;L<16;++L)P[L]=A[L];return P}return A},M.idle=function(T){this.center.idle(T),this.radius.idle(T),this.rotation.idle(T)},M.flush=function(T){this.center.flush(T),this.radius.flush(T),this.rotation.flush(T)},M.pan=function(T,P,A,L){P=P||0,A=A||0,L=L||0,this.recalcMatrix(T);var D=this.computedMatrix,k=D[1],I=D[5],z=D[9],$=O(k,I,z);k/=$,I/=$,z/=$;var Q=D[0],j=D[4],U=D[8],X=Q*k+j*I+U*z,te=O(Q-=k*X,j-=I*X,U-=z*X);Q/=te,j/=te,U/=te,D[2],D[6],D[10];var Z=Q*P+k*A,K=j*P+I*A,re=U*P+z*A;this.center.move(T,Z,K,re);var q=Math.exp(this.computedRadius[0]);q=Math.max(1e-4,q+L),this.radius.set(T,Math.log(q))},M.rotate=function(T,P,A,L){this.recalcMatrix(T),P=P||0,A=A||0;var D=this.computedMatrix,k=D[0],I=D[4],z=D[8],$=D[1],Q=D[5],j=D[9],U=D[2],X=D[6],te=D[10],Z=P*k+A*$,K=P*I+A*Q,re=P*z+A*j,q=-(X*re-te*K),Y=-(te*Z-U*re),ee=-(U*K-X*Z),me=Math.sqrt(Math.max(0,1-Math.pow(q,2)-Math.pow(Y,2)-Math.pow(ee,2))),pe=C(q,Y,ee,me);pe>1e-6?(q/=pe,Y/=pe,ee/=pe,me/=pe):(q=Y=ee=0,me=1);var se=this.computedRotation,ae=se[0],ce=se[1],de=se[2],ye=se[3],ve=ae*me+ye*q+ce*ee-de*Y,_e=ce*me+ye*Y+de*q-ae*ee,we=de*me+ye*ee+ae*Y-ce*q,Te=ye*me-ae*q-ce*Y-de*ee;if(L){q=U,Y=X,ee=te;var Pe=Math.sin(L)/O(q,Y,ee);q*=Pe,Y*=Pe,ee*=Pe,Te=Te*(me=Math.cos(P))-(ve=ve*me+Te*q+_e*ee-we*Y)*q-(_e=_e*me+Te*Y+we*q-ve*ee)*Y-(we=we*me+Te*ee+ve*Y-_e*q)*ee}var Ie=C(ve,_e,we,Te);Ie>1e-6?(ve/=Ie,_e/=Ie,we/=Ie,Te/=Ie):(ve=_e=we=0,Te=1),this.rotation.set(T,ve,_e,we,Te)},M.lookAt=function(T,P,A,L){this.recalcMatrix(T),A=A||this.computedCenter,P=P||this.computedEye,L=L||this.computedUp;var D=this.computedMatrix;h(D,P,A,L);var k=this.computedRotation;_(k,D[0],D[1],D[2],D[4],D[5],D[6],D[8],D[9],D[10]),x(k,k),this.rotation.set(T,k[0],k[1],k[2],k[3]);for(var I=0,z=0;z<3;++z)I+=Math.pow(A[z]-P[z],2);this.radius.set(T,.5*Math.log(Math.max(I,1e-6))),this.center.set(T,A[0],A[1],A[2])},M.translate=function(T,P,A,L){this.center.move(T,P||0,A||0,L||0)},M.setMatrix=function(T,P){var A=this.computedRotation;_(A,P[0],P[1],P[2],P[4],P[5],P[6],P[8],P[9],P[10]),x(A,A),this.rotation.set(T,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;v(L,P);var D=L[15];if(Math.abs(D)>1e-6){var k=L[12]/D,I=L[13]/D,z=L[14]/D;this.recalcMatrix(T);var $=Math.exp(this.computedRadius[0]);this.center.set(T,k-L[2]*$,I-L[6]*$,z-L[10]*$),this.radius.idle(T)}else this.center.idle(T),this.radius.idle(T)},M.setDistance=function(T,P){P>0&&this.radius.set(T,Math.log(P))},M.setDistanceLimits=function(T,P){T=T>0?Math.log(T):-1/0,P=P>0?Math.log(P):1/0,P=Math.max(P,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=P},M.getDistanceLimits=function(T){var P=this.radius.bounds;return T?(T[0]=Math.exp(P[0][0]),T[1]=Math.exp(P[1][0]),T):[Math.exp(P[0][0]),Math.exp(P[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(T){var P=this.lastT(),A=T.center;A&&this.center.set(P,A[0],A[1],A[2]);var L=T.rotation;L&&this.rotation.set(P,L[0],L[1],L[2],L[3]);var D=T.distance;D&&D>0&&this.radius.set(P,Math.log(D)),this.setDistanceLimits(T.zoomMin,T.zoomMax)}},4930:function(y,m,a){var c=a(6184);y.exports=function(h,p,v){return c(v=v!==void 0?v+"":" ",p)+h}},4405:function(y){y.exports=function(m,a){a||(a=[0,""]),m=String(m);var c=parseFloat(m,10);return a[0]=c,a[1]=m.match(/[\d.\-\+]*\s*(.*)/)[1]||"",a}},4166:function(y,m,a){y.exports=function(h,p){for(var v=0|p.length,_=h.length,O=[new Array(v),new Array(v)],C=0;C0){Q=O[X][z][0],U=X;break}j=Q[1^U];for(var te=0;te<2;++te)for(var Z=O[te][z],K=0;K0&&(Q=re,j=q,U=te)}return $||Q&&M(Q,U),j}function P(I,z){var $=O[z][I][0],Q=[I];M($,z);for(var j=$[1^z];;){for(;j!==I;)Q.push(j),j=T(Q[Q.length-2],j,!1);if(O[0][I].length+O[1][I].length===0)break;var U=Q[Q.length-1],X=I,te=Q[1],Z=T(U,X,!0);if(c(p[U],p[X],p[te],p[Z])<0)break;Q.push(I),j=T(U,X)}return Q}function A(I,z){return z[1]===z[z.length-1]}for(C=0;C0;){O[0][C].length;var k=P(C,L);A(0,k)?D.push.apply(D,k):(D.length>0&&R.push(D),D=k)}D.length>0&&R.push(D)}return R};var c=a(9398)},3959:function(y,m,a){y.exports=function(h,p){for(var v=c(h,p.length),_=new Array(p.length),O=new Array(p.length),C=[],x=0;x0;){_[L=C.pop()]=!1;var M=v[L];for(x=0;x0})).length,I=new Array(k),z=new Array(k);for(L=0;L0;){var _e=ye.pop(),we=Y[_e];O(we,function(Qe,Ve){return Qe-Ve});var Te,Pe=we.length,Ie=ve[_e];for(Ie===0&&(Te=[ze=D[_e]]),L=0;L=0||(ve[De]=1^Ie,ye.push(De),Ie===0&&(de(ze=D[De])||(ze.reverse(),Te.push(ze))))}Ie===0&&T.push(Te)}return T};var c=a(8348),h=a(4166),p=a(211),v=a(9660),_=a(9662),O=a(1215),C=a(3959);function x(R,M){for(var T=new Array(R),P=0;P0&&X[Z]===te[0]))return 1;K=U[Z-1]}for(var re=1;K;){var q=K.key,Y=c(te,q[0],q[1]);if(q[0][0]0))return 0;re=-1,K=K.right}else if(Y>0)K=K.left;else{if(!(Y<0))return 0;re=1,K=K.right}}return re}}(Q.slabs,Q.coordinates);return T.length===0?j:function(U,X){return function(te){return U(te[0],te[1])?0:X(te)}}(O(T),j)};var c=a(417)[3],h=a(4385),p=a(9014),v=a(5070);function _(){return!0}function O(x){for(var R={},M=0;M=x?(X=1,I=x+2*T+A):I=T*(X=-T/x)+A):(X=0,P>=0?(te=0,I=A):-P>=M?(te=1,I=M+2*P+A):I=P*(te=-P/M)+A);else if(te<0)te=0,T>=0?(X=0,I=A):-T>=x?(X=1,I=x+2*T+A):I=T*(X=-T/x)+A;else{var Z=1/U;I=(X*=Z)*(x*X+R*(te*=Z)+2*T)+te*(R*X+M*te+2*P)+A}else X<0?($=M+P)>(z=R+T)?(Q=$-z)>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+A):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*P)+A:(X=0,$<=0?(te=1,I=M+2*P+A):P>=0?(te=0,I=A):I=P*(te=-P/M)+A):te<0?($=x+T)>(z=R+P)?(Q=$-z)>=(j=x-2*R+M)?(te=1,X=0,I=M+2*P+A):I=(X=1-(te=Q/j))*(x*X+R*te+2*T)+te*(R*X+M*te+2*P)+A:(te=0,$<=0?(X=1,I=x+2*T+A):T>=0?(X=0,I=A):I=T*(X=-T/x)+A):(Q=M+P-R-T)<=0?(X=0,te=1,I=M+2*P+A):Q>=(j=x-2*R+M)?(X=1,te=0,I=x+2*T+A):I=(X=Q/j)*(x*X+R*(te=1-X)+2*T)+te*(R*X+M*te+2*P)+A;var K=1-X-te;for(C=0;C<_.length;++C)O[C]=K*h[C]+X*p[C]+te*v[C];return I<0?0:I}},1116:function(y,m,a){y.exports=a(6093)},7584:function(y,m,a){var c=a(1539);y.exports=function(h,p){for(var v=h.length,_=new Array(v),O=0;O0){var M=v[O-1];if(c(x,M)===0&&p(M)!==R){O-=1;continue}}v[O++]=x}}return v.length=O,v}},6184:function(y){var m,a="";y.exports=function(c,h){if(typeof c!="string")throw new TypeError("expected a string");if(h===1)return c;if(h===2)return c+c;var p=c.length*h;if(m!==c||m===void 0)m=c,a="";else if(a.length>=p)return a.substr(0,p);for(;p>a.length&&h>1;)1&h&&(a+=c),h>>=1,c+=c;return a=(a+=c).substr(0,p)}},8161:function(y,m,a){y.exports=a.g.performance&&a.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},402:function(y){y.exports=function(m){for(var a=m.length,c=m[m.length-1],h=a,p=a-2;p>=0;--p){var v=c;(C=(O=m[p])-((c=v+O)-v))&&(m[--h]=c,c=C)}var _=0;for(p=h;p0){if($<=0)return Q;I=z+$}else{if(!(z<0)||$>=0)return Q;I=-(z+$)}var j=33306690738754716e-32*I;return Q>=j||Q<=-j?Q:R(L,D,k)},function(L,D,k,I){var z=L[0]-I[0],$=D[0]-I[0],Q=k[0]-I[0],j=L[1]-I[1],U=D[1]-I[1],X=k[1]-I[1],te=L[2]-I[2],Z=D[2]-I[2],K=k[2]-I[2],re=$*X,q=Q*U,Y=Q*j,ee=z*X,me=z*U,pe=$*j,se=te*(re-q)+Z*(Y-ee)+K*(me-pe),ae=7771561172376103e-31*((Math.abs(re)+Math.abs(q))*Math.abs(te)+(Math.abs(Y)+Math.abs(ee))*Math.abs(Z)+(Math.abs(me)+Math.abs(pe))*Math.abs(K));return se>ae||-se>ae?se:M(L,D,k,I)}];function P(L){var D=T[L.length];return D||(D=T[L.length]=x(L.length)),D.apply(void 0,L)}function A(L,D,k,I,z,$,Q){return function(j,U,X,te,Z){switch(arguments.length){case 0:case 1:return 0;case 2:return I(j,U);case 3:return z(j,U,X);case 4:return $(j,U,X,te);case 5:return Q(j,U,X,te,Z)}for(var K=new Array(arguments.length),re=0;re0&&C>0||O<0&&C<0)return!1;var x=c(v,h,p),R=c(_,h,p);return!(x>0&&R>0||x<0&&R<0)&&(O!==0||C!==0||x!==0||R!==0||function(M,T,P,A){for(var L=0;L<2;++L){var D=M[L],k=T[L],I=Math.min(D,k),z=Math.max(D,k),$=P[L],Q=A[L],j=Math.min($,Q);if(Math.max($,Q)=h?(p=M,(C+=1)=h?(p=M,(C+=1)>1,M=h[2*R+1];if(M===O)return R;O>1,M=h[2*R+1];if(M===O)return R;O>1,M=h[2*R+1];if(M===O)return R;O0)-(h<0)},m.abs=function(h){var p=h>>31;return(h^p)-p},m.min=function(h,p){return p^(h^p)&-(h65535)<<4,p|=v=((h>>>=p)>255)<<3,p|=v=((h>>>=v)>15)<<2,(p|=v=((h>>>=v)>3)<<1)|(h>>>=v)>>1},m.log10=function(h){return h>=1e9?9:h>=1e8?8:h>=1e7?7:h>=1e6?6:h>=1e5?5:h>=1e4?4:h>=1e3?3:h>=100?2:h>=10?1:0},m.popCount=function(h){return 16843009*((h=(858993459&(h-=h>>>1&1431655765))+(h>>>2&858993459))+(h>>>4)&252645135)>>>24},m.countTrailingZeros=a,m.nextPow2=function(h){return h+=h===0,--h,h|=h>>>1,h|=h>>>2,h|=h>>>4,1+((h|=h>>>8)|h>>>16)},m.prevPow2=function(h){return h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,(h|=h>>>16)-(h>>>1)},m.parity=function(h){return h^=h>>>16,h^=h>>>8,h^=h>>>4,27030>>>(h&=15)&1};var c=new Array(256);(function(h){for(var p=0;p<256;++p){var v=p,_=p,O=7;for(v>>>=1;v;v>>>=1)_<<=1,_|=1&v,--O;h[p]=_<>>8&255]<<16|c[h>>>16&255]<<8|c[h>>>24&255]},m.interleave2=function(h,p){return(h=1431655765&((h=858993459&((h=252645135&((h=16711935&((h&=65535)|h<<8))|h<<4))|h<<2))|h<<1))|(p=1431655765&((p=858993459&((p=252645135&((p=16711935&((p&=65535)|p<<8))|p<<4))|p<<2))|p<<1))<<1},m.deinterleave2=function(h,p){return(h=65535&((h=16711935&((h=252645135&((h=858993459&((h=h>>>p&1431655765)|h>>>1))|h>>>2))|h>>>4))|h>>>16))<<16>>16},m.interleave3=function(h,p,v){return h=1227133513&((h=3272356035&((h=251719695&((h=4278190335&((h&=1023)|h<<16))|h<<8))|h<<4))|h<<2),(h|=(p=1227133513&((p=3272356035&((p=251719695&((p=4278190335&((p&=1023)|p<<16))|p<<8))|p<<4))|p<<2))<<1)|(v=1227133513&((v=3272356035&((v=251719695&((v=4278190335&((v&=1023)|v<<16))|v<<8))|v<<4))|v<<2))<<2},m.deinterleave3=function(h,p){return(h=1023&((h=4278190335&((h=251719695&((h=3272356035&((h=h>>>p&1227133513)|h>>>2))|h>>>4))|h>>>8))|h>>>16))<<22>>22},m.nextCombination=function(h){var p=h|h-1;return p+1|(~p&-~p)-1>>>a(h)+1}},6656:function(y,m,a){var c=a(9392),h=a(9521);function p(M,T){var P=M.length,A=M.length-T.length,L=Math.min;if(A)return A;switch(P){case 0:return 0;case 1:return M[0]-T[0];case 2:return(I=M[0]+M[1]-T[0]-T[1])||L(M[0],M[1])-L(T[0],T[1]);case 3:var D=M[0]+M[1],k=T[0]+T[1];if(I=D+M[2]-(k+T[2]))return I;var I,z=L(M[0],M[1]),$=L(T[0],T[1]);return(I=L(z,M[2])-L($,T[2]))||L(z+M[2],D)-L($+T[2],k);default:var Q=M.slice(0);Q.sort();var j=T.slice(0);j.sort();for(var U=0;U>1,k=p(M[D],T);k<=0?(k===0&&(L=D),P=D+1):k>0&&(A=D-1)}return L}function x(M,T){for(var P=new Array(M.length),A=0,L=P.length;A=M.length||p(M[X],D)!==0););}return P}function R(M,T){if(T<0)return[];for(var P=[],A=(1<>>$&1&&z.push(L[$]);T.push(z)}return _(T)},m.skeleton=R,m.boundary=function(M){for(var T=[],P=0,A=M.length;P>1:(pe>>1)-1}function Q(pe){for(var se=z(pe);;){var ae=se,ce=2*pe+1,de=2*(pe+1),ye=pe;if(ce0;){var ae=$(pe);if(!(ae>=0&&se0){var pe=Z[0];return I(0,re-1),re-=1,Q(0),pe}return-1}function X(pe,se){var ae=Z[pe];return M[ae]===se?pe:(M[ae]=-1/0,j(pe),U(),M[ae]=se,j((re+=1)-1))}function te(pe){if(!T[pe]){T[pe]=!0;var se=x[pe],ae=R[pe];x[ae]>=0&&(x[ae]=se),R[se]>=0&&(R[se]=ae),K[se]>=0&&X(K[se],k(se)),K[ae]>=0&&X(K[ae],k(ae))}}var Z=[],K=new Array(O);for(P=0;P>1;P>=0;--P)Q(P);for(;;){var q=U();if(q<0||M[q]>_)break;te(q)}var Y=[];for(P=0;P=0&&ae>=0&&se!==ae){var ce=K[se],de=K[ae];ce!==de&&me.push([ce,de])}}),h.unique(h.normalize(me)),{positions:Y,edges:me}};var c=a(417),h=a(6656)},6638:function(y,m,a){y.exports=function(p,v){var _,O,C,x;if(v[0][0]v[1][0]))return h(v,p);_=v[1],O=v[0]}if(p[0][0]p[1][0]))return-h(p,v);C=p[1],x=p[0]}var R=c(_,O,x),M=c(_,O,C);if(R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;if(R=c(x,C,O),M=c(x,C,_),R<0){if(M<=0)return R}else if(R>0){if(M>=0)return R}else if(M)return M;return O[0]-x[0]};var c=a(417);function h(p,v){var _,O,C,x;if(v[0][0]v[1][0])){var R=Math.min(p[0][1],p[1][1]),M=Math.max(p[0][1],p[1][1]),T=Math.min(v[0][1],v[1][1]),P=Math.max(v[0][1],v[1][1]);return MP?R-P:M-P}_=v[1],O=v[0]}p[0][1]0)if(T[0]!==D[1][0])P=M,M=M.right;else{if(I=C(M.right,T))return I;M=M.left}else{if(T[0]!==D[1][0])return M;var I;if(I=C(M.right,T))return I;M=M.left}}return P}function x(M,T,P,A){this.y=M,this.index=T,this.start=P,this.closed=A}function R(M,T,P,A){this.x=M,this.segment=T,this.create=P,this.index=A}_.prototype.castUp=function(M){var T=c.le(this.coordinates,M[0]);if(T<0)return-1;this.slabs[T];var P=C(this.slabs[T],M),A=-1;if(P&&(A=P.value),this.coordinates[T]===M[0]){var L=null;if(P&&(L=P.key),T>0){var D=C(this.slabs[T-1],M);D&&(L?v(D.key,L)>0&&(L=D.key,A=D.value):(A=D.value,L=D.key))}var k=this.horizontal[T];if(k.length>0){var I=c.ge(k,M[1],O);if(I=k.length)return A;z=k[I]}}if(z.start)if(L){var $=p(L[0],L[1],[M[0],z.y]);L[0][0]>L[1][0]&&($=-$),$>0&&(A=z.index)}else A=z.index;else z.y!==M[1]&&(A=z.index)}}}return A}},4670:function(y,m,a){var c=a(9130),h=a(9662);function p(_,O){var C=h(c(_,O),[O[O.length-1]]);return C[C.length-1]}function v(_,O,C,x){var R=-O/(x-O);R<0?R=0:R>1&&(R=1);for(var M=1-R,T=_.length,P=new Array(T),A=0;A0||R>0&&A<0){var L=v(M,A,T,R);C.push(L),x.push(L.slice())}A<0?x.push(T.slice()):A>0?C.push(T.slice()):(C.push(T.slice()),x.push(T.slice())),R=A}return{positive:C,negative:x}},y.exports.positive=function(_,O){for(var C=[],x=p(_[_.length-1],O),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var P=p(M=_[T],O);(x<0&&P>0||x>0&&P<0)&&C.push(v(R,P,M,x)),P>=0&&C.push(M.slice()),x=P}return C},y.exports.negative=function(_,O){for(var C=[],x=p(_[_.length-1],O),R=_[_.length-1],M=_[0],T=0;T<_.length;++T,R=M){var P=p(M=_[T],O);(x<0&&P>0||x>0&&P<0)&&C.push(v(R,P,M,x)),P<=0&&C.push(M.slice()),x=P}return C}},8974:function(y,m,a){var c;(function(){var h={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(O){return function(C,x){var R,M,T,P,A,L,D,k,I,z=1,$=C.length,Q="";for(M=0;M<$;M++)if(typeof C[M]=="string")Q+=C[M];else if(typeof C[M]=="object"){if((P=C[M]).keys)for(R=x[z],T=0;T=0),P.type){case"b":R=parseInt(R,10).toString(2);break;case"c":R=String.fromCharCode(parseInt(R,10));break;case"d":case"i":R=parseInt(R,10);break;case"j":R=JSON.stringify(R,null,P.width?parseInt(P.width):0);break;case"e":R=P.precision?parseFloat(R).toExponential(P.precision):parseFloat(R).toExponential();break;case"f":R=P.precision?parseFloat(R).toFixed(P.precision):parseFloat(R);break;case"g":R=P.precision?String(Number(R.toPrecision(P.precision))):parseFloat(R);break;case"o":R=(parseInt(R,10)>>>0).toString(8);break;case"s":R=String(R),R=P.precision?R.substring(0,P.precision):R;break;case"t":R=String(!!R),R=P.precision?R.substring(0,P.precision):R;break;case"T":R=Object.prototype.toString.call(R).slice(8,-1).toLowerCase(),R=P.precision?R.substring(0,P.precision):R;break;case"u":R=parseInt(R,10)>>>0;break;case"v":R=R.valueOf(),R=P.precision?R.substring(0,P.precision):R;break;case"x":R=(parseInt(R,10)>>>0).toString(16);break;case"X":R=(parseInt(R,10)>>>0).toString(16).toUpperCase()}h.json.test(P.type)?Q+=R:(!h.number.test(P.type)||k&&!P.sign?I="":(I=k?"+":"-",R=R.toString().replace(h.sign,"")),L=P.pad_char?P.pad_char==="0"?"0":P.pad_char.charAt(1):" ",D=P.width-(I+R).length,A=P.width&&D>0?L.repeat(D):"",Q+=P.align?I+R+A:L==="0"?I+A+R:A+I+R)}return Q}(function(C){if(_[C])return _[C];for(var x,R=C,M=[],T=0;R;){if((x=h.text.exec(R))!==null)M.push(x[0]);else if((x=h.modulo.exec(R))!==null)M.push("%");else{if((x=h.placeholder.exec(R))===null)throw new SyntaxError("[sprintf] unexpected placeholder");if(x[2]){T|=1;var P=[],A=x[2],L=[];if((L=h.key.exec(A))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");for(P.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=h.key_access.exec(A))!==null)P.push(L[1]);else{if((L=h.index_access.exec(A))===null)throw new SyntaxError("[sprintf] failed to parse named argument key");P.push(L[1])}x[2]=P}else T|=2;if(T===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");M.push({placeholder:x[0],param_no:x[1],keys:x[2],sign:x[3],pad_char:x[4],align:x[5],width:x[6],precision:x[7],type:x[8]})}R=R.substring(x[0].length)}return _[C]=M}(O),arguments)}function v(O,C){return p.apply(null,[O].concat(C||[]))}var _=Object.create(null);m.sprintf=p,m.vsprintf=v,typeof window<"u"&&(window.sprintf=p,window.vsprintf=v,(c=(function(){return{sprintf:p,vsprintf:v}}).call(m,a,m,y))===void 0||(y.exports=c))})()},4162:function(y,m,a){y.exports=function(_,O){if(_.dimension<=0)return{positions:[],cells:[]};if(_.dimension===1)return function(R,M){for(var T=h(R,M),P=T.length,A=new Array(P),L=new Array(P),D=0;DP|0},vertex:function(R,M,T,P,A,L,D,k,I,z,$,Q,j){var U=(D<<0)+(k<<1)+(I<<2)+(z<<3)|0;if(U!==0&&U!==15)switch(U){case 0:case 15:$.push([R-.5,M-.5]);break;case 1:$.push([R-.25-.25*(P+T-2*j)/(T-P),M-.25-.25*(A+T-2*j)/(T-A)]);break;case 2:$.push([R-.75-.25*(-P-T+2*j)/(P-T),M-.25-.25*(L+P-2*j)/(P-L)]);break;case 3:$.push([R-.5,M-.5-.5*(A+T+L+P-4*j)/(T-A+P-L)]);break;case 4:$.push([R-.25-.25*(L+A-2*j)/(A-L),M-.75-.25*(-A-T+2*j)/(A-T)]);break;case 5:$.push([R-.5-.5*(P+T+L+A-4*j)/(T-P+A-L),M-.5]);break;case 6:$.push([R-.5-.25*(-P-T+L+A)/(P-T+A-L),M-.5-.25*(-A-T+L+P)/(A-T+P-L)]);break;case 7:$.push([R-.75-.25*(L+A-2*j)/(A-L),M-.75-.25*(L+P-2*j)/(P-L)]);break;case 8:$.push([R-.75-.25*(-L-A+2*j)/(L-A),M-.75-.25*(-L-P+2*j)/(L-P)]);break;case 9:$.push([R-.5-.25*(P+T+-L-A)/(T-P+L-A),M-.5-.25*(A+T+-L-P)/(T-A+L-P)]);break;case 10:$.push([R-.5-.5*(-P-T-L-A+4*j)/(P-T+L-A),M-.5]);break;case 11:$.push([R-.25-.25*(-L-A+2*j)/(L-A),M-.75-.25*(A+T-2*j)/(T-A)]);break;case 12:$.push([R-.5,M-.5-.5*(-A-T-L-P+4*j)/(A-T+L-P)]);break;case 13:$.push([R-.75-.25*(P+T-2*j)/(T-P),M-.25-.25*(-L-P+2*j)/(L-P)]);break;case 14:$.push([R-.25-.25*(-P-T+2*j)/(P-T),M-.25-.25*(-A-T+2*j)/(A-T)])}},cell:function(R,M,T,P,A,L,D,k,I){A?k.push([R,M]):k.push([M,R])}});return function(R,M){var T=[],P=[];return x(R,T,P,M),{positions:T,cells:P}}}},v={}},6946:function(y,m,a){y.exports=function v(_,O,C){C=C||{};var x=p[_];x||(x=p[_]={" ":{data:new Float32Array(0),shape:.2}});var R=x[O];if(!R)if(O.length<=1||!/\d/.test(O))R=x[O]=function(Q){for(var j=Q.cells,U=Q.positions,X=new Float32Array(6*j.length),te=0,Z=0,K=0;K0&&(A+=.02);var D=new Float32Array(P),k=0,I=-.5*A;for(L=0;LMath.max(D,k)?I[2]=1:D>Math.max(L,k)?I[0]=1:I[1]=1;for(var z=0,$=0,Q=0;Q<3;++Q)z+=A[Q]*A[Q],$+=I[Q]*A[Q];for(Q=0;Q<3;++Q)I[Q]-=$/z*A[Q];return _(I,I),I}function M(A,L,D,k,I,z,$,Q){this.center=c(D),this.up=c(k),this.right=c(I),this.radius=c([z]),this.angle=c([$,Q]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var j=0;j<16;++j)this.computedMatrix[j]=.5;this.recalcMatrix(0)}var T=M.prototype;T.setDistanceLimits=function(A,L){A=A>0?Math.log(A):-1/0,L=L>0?Math.log(L):1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},T.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},T.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,D=this.computedRight,k=0,I=0,z=0;z<3;++z)I+=L[z]*D[z],k+=L[z]*L[z];var $=Math.sqrt(k),Q=0;for(z=0;z<3;++z)D[z]-=L[z]*I/k,Q+=D[z]*D[z],L[z]/=$;var j=Math.sqrt(Q);for(z=0;z<3;++z)D[z]/=j;var U=this.computedToward;v(U,L,D),_(U,U);var X=Math.exp(this.computedRadius[0]),te=this.computedAngle[0],Z=this.computedAngle[1],K=Math.cos(te),re=Math.sin(te),q=Math.cos(Z),Y=Math.sin(Z),ee=this.computedCenter,me=K*q,pe=re*q,se=Y,ae=-K*Y,ce=-re*Y,de=q,ye=this.computedEye,ve=this.computedMatrix;for(z=0;z<3;++z){var _e=me*D[z]+pe*U[z]+se*L[z];ve[4*z+1]=ae*D[z]+ce*U[z]+de*L[z],ve[4*z+2]=_e,ve[4*z+3]=0}var we=ve[1],Te=ve[5],Pe=ve[9],Ie=ve[2],ze=ve[6],De=ve[10],Qe=Te*De-Pe*ze,Ve=Pe*Ie-we*De,$e=we*ze-Te*Ie,Oe=C(Qe,Ve,$e);for(Qe/=Oe,Ve/=Oe,$e/=Oe,ve[0]=Qe,ve[4]=Ve,ve[8]=$e,z=0;z<3;++z)ye[z]=ee[z]+ve[2+4*z]*X;for(z=0;z<3;++z){Q=0;for(var ke=0;ke<3;++ke)Q+=ve[z+4*ke]*ye[ke];ve[12+z]=-Q}ve[15]=1},T.getMatrix=function(A,L){this.recalcMatrix(A);var D=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=D[k];return L}return D};var P=[0,0,0];T.rotate=function(A,L,D,k){if(this.angle.move(A,L,D),k){this.recalcMatrix(A);var I=this.computedMatrix;P[0]=I[2],P[1]=I[6],P[2]=I[10];for(var z=this.computedUp,$=this.computedRight,Q=this.computedToward,j=0;j<3;++j)I[4*j]=z[j],I[4*j+1]=$[j],I[4*j+2]=Q[j];for(p(I,I,k,P),j=0;j<3;++j)z[j]=I[4*j],$[j]=I[4*j+1];this.up.set(A,z[0],z[1],z[2]),this.right.set(A,$[0],$[1],$[2])}},T.pan=function(A,L,D,k){L=L||0,D=D||0,k=k||0,this.recalcMatrix(A);var I=this.computedMatrix,z=(Math.exp(this.computedRadius[0]),I[1]),$=I[5],Q=I[9],j=C(z,$,Q);z/=j,$/=j,Q/=j;var U=I[0],X=I[4],te=I[8],Z=U*z+X*$+te*Q,K=C(U-=z*Z,X-=$*Z,te-=Q*Z),re=(U/=K)*L+z*D,q=(X/=K)*L+$*D,Y=(te/=K)*L+Q*D;this.center.move(A,re,q,Y);var ee=Math.exp(this.computedRadius[0]);ee=Math.max(1e-4,ee+k),this.radius.set(A,Math.log(ee))},T.translate=function(A,L,D,k){this.center.move(A,L||0,D||0,k||0)},T.setMatrix=function(A,L,D,k){var I=1;typeof D=="number"&&(I=0|D),(I<0||I>3)&&(I=1);var z=(I+2)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var $=L[I],Q=L[I+4],j=L[I+8];if(k){var U=Math.abs($),X=Math.abs(Q),te=Math.abs(j),Z=Math.max(U,X,te);U===Z?($=$<0?-1:1,Q=j=0):te===Z?(j=j<0?-1:1,$=Q=0):(Q=Q<0?-1:1,$=j=0)}else{var K=C($,Q,j);$/=K,Q/=K,j/=K}var re,q,Y=L[z],ee=L[z+4],me=L[z+8],pe=Y*$+ee*Q+me*j,se=C(Y-=$*pe,ee-=Q*pe,me-=j*pe),ae=Q*(me/=se)-j*(ee/=se),ce=j*(Y/=se)-$*me,de=$*ee-Q*Y,ye=C(ae,ce,de);if(ae/=ye,ce/=ye,de/=ye,this.center.jump(A,Ze,Ye,Je),this.radius.idle(A),this.up.jump(A,$,Q,j),this.right.jump(A,Y,ee,me),I===2){var ve=L[1],_e=L[5],we=L[9],Te=ve*Y+_e*ee+we*me,Pe=ve*ae+_e*ce+we*de;re=Qe<0?-Math.PI/2:Math.PI/2,q=Math.atan2(Pe,Te)}else{var Ie=L[2],ze=L[6],De=L[10],Qe=Ie*$+ze*Q+De*j,Ve=Ie*Y+ze*ee+De*me,$e=Ie*ae+ze*ce+De*de;re=Math.asin(x(Qe)),q=Math.atan2($e,Ve)}this.angle.jump(A,q,re),this.recalcMatrix(A);var Oe=L[2],ke=L[6],Re=L[10],We=this.computedMatrix;h(We,L);var Ue=We[15],Ze=We[12]/Ue,Ye=We[13]/Ue,Je=We[14]/Ue,Me=Math.exp(this.computedRadius[0]);this.center.jump(A,Ze-Oe*Me,Ye-ke*Me,Je-Re*Me)},T.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},T.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},T.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},T.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},T.lookAt=function(A,L,D,k){this.recalcMatrix(A),L=L||this.computedEye,D=D||this.computedCenter;var I=(k=k||this.computedUp)[0],z=k[1],$=k[2],Q=C(I,z,$);if(!(Q<1e-6)){I/=Q,z/=Q,$/=Q;var j=L[0]-D[0],U=L[1]-D[1],X=L[2]-D[2],te=C(j,U,X);if(!(te<1e-6)){j/=te,U/=te,X/=te;var Z=this.computedRight,K=Z[0],re=Z[1],q=Z[2],Y=I*K+z*re+$*q,ee=C(K-=Y*I,re-=Y*z,q-=Y*$);if(!(ee<.01&&(ee=C(K=z*X-$*U,re=$*j-I*X,q=I*U-z*j))<1e-6)){K/=ee,re/=ee,q/=ee,this.up.set(A,I,z,$),this.right.set(A,K,re,q),this.center.set(A,D[0],D[1],D[2]),this.radius.set(A,Math.log(te));var me=z*q-$*re,pe=$*K-I*q,se=I*re-z*K,ae=C(me,pe,se),ce=I*j+z*U+$*X,de=K*j+re*U+q*X,ye=(me/=ae)*j+(pe/=ae)*U+(se/=ae)*X,ve=Math.asin(x(ce)),_e=Math.atan2(ye,de),we=this.angle._state,Te=we[we.length-1],Pe=we[we.length-2];Te%=2*Math.PI;var Ie=Math.abs(Te+2*Math.PI-_e),ze=Math.abs(Te-_e),De=Math.abs(Te-2*Math.PI-_e);Ie0?re.pop():new ArrayBuffer(Z)}function P(Z){return new Uint8Array(T(Z),0,Z)}function A(Z){return new Uint16Array(T(2*Z),0,Z)}function L(Z){return new Uint32Array(T(4*Z),0,Z)}function D(Z){return new Int8Array(T(Z),0,Z)}function k(Z){return new Int16Array(T(2*Z),0,Z)}function I(Z){return new Int32Array(T(4*Z),0,Z)}function z(Z){return new Float32Array(T(4*Z),0,Z)}function $(Z){return new Float64Array(T(8*Z),0,Z)}function Q(Z){return v?new Uint8ClampedArray(T(Z),0,Z):P(Z)}function j(Z){return _?new BigUint64Array(T(8*Z),0,Z):null}function U(Z){return O?new BigInt64Array(T(8*Z),0,Z):null}function X(Z){return new DataView(T(Z),0,Z)}function te(Z){Z=c.nextPow2(Z);var K=c.log2(Z),re=R[K];return re.length>0?re.pop():new p(Z)}m.free=function(Z){if(p.isBuffer(Z))R[c.log2(Z.length)].push(Z);else{if(Object.prototype.toString.call(Z)!=="[object ArrayBuffer]"&&(Z=Z.buffer),!Z)return;var K=Z.length||Z.byteLength,re=0|c.log2(K);x[re].push(Z)}},m.freeUint8=m.freeUint16=m.freeUint32=m.freeBigUint64=m.freeInt8=m.freeInt16=m.freeInt32=m.freeBigInt64=m.freeFloat32=m.freeFloat=m.freeFloat64=m.freeDouble=m.freeUint8Clamped=m.freeDataView=function(Z){M(Z.buffer)},m.freeArrayBuffer=M,m.freeBuffer=function(Z){R[c.log2(Z.length)].push(Z)},m.malloc=function(Z,K){if(K===void 0||K==="arraybuffer")return T(Z);switch(K){case"uint8":return P(Z);case"uint16":return A(Z);case"uint32":return L(Z);case"int8":return D(Z);case"int16":return k(Z);case"int32":return I(Z);case"float":case"float32":return z(Z);case"double":case"float64":return $(Z);case"uint8_clamped":return Q(Z);case"bigint64":return U(Z);case"biguint64":return j(Z);case"buffer":return te(Z);case"data":case"dataview":return X(Z);default:return null}return null},m.mallocArrayBuffer=T,m.mallocUint8=P,m.mallocUint16=A,m.mallocUint32=L,m.mallocInt8=D,m.mallocInt16=k,m.mallocInt32=I,m.mallocFloat32=m.mallocFloat=z,m.mallocFloat64=m.mallocDouble=$,m.mallocUint8Clamped=Q,m.mallocBigUint64=j,m.mallocBigInt64=U,m.mallocDataView=X,m.mallocBuffer=te,m.clearCache=function(){for(var Z=0;Z<32;++Z)C.UINT8[Z].length=0,C.UINT16[Z].length=0,C.UINT32[Z].length=0,C.INT8[Z].length=0,C.INT16[Z].length=0,C.INT32[Z].length=0,C.FLOAT[Z].length=0,C.DOUBLE[Z].length=0,C.BIGUINT64[Z].length=0,C.BIGINT64[Z].length=0,C.UINT8C[Z].length=0,x[Z].length=0,R[Z].length=0}},1731:function(y){function m(c){this.roots=new Array(c),this.ranks=new Array(c);for(var h=0;h0&&(Z=te.size),te.lineSpacing&&te.lineSpacing>0&&(K=te.lineSpacing),te.styletags&&te.styletags.breaklines&&(re.breaklines=!!te.styletags.breaklines),te.styletags&&te.styletags.bolds&&(re.bolds=!!te.styletags.bolds),te.styletags&&te.styletags.italics&&(re.italics=!!te.styletags.italics),te.styletags&&te.styletags.subscripts&&(re.subscripts=!!te.styletags.subscripts),te.styletags&&te.styletags.superscripts&&(re.superscripts=!!te.styletags.superscripts)),X.font=[te.fontStyle,te.fontVariant,te.fontWeight,Z+"px",te.font].filter(function(q){return q}).join(" "),X.textAlign="start",X.textBaseline="alphabetic",X.direction="ltr",Q(function(q,Y,ee,me,pe,se){ee=ee.replace(/\n/g,""),ee=se.breaklines===!0?ee.replace(/\/g,` `):ee.replace(/\/g," ");var ae="",ce=[];for(_e=0;_e-1?parseInt(tt[1+ht]):0,Ft=pt>-1?parseInt(ot[1+pt]):0;St!==Ft&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,Ft-St),Ge=Ge.replace("?px ",Ue())),Te+=.25*De*(Ft-St)}if(se.superscripts===!0){var zt=tt.indexOf(P),Yt=ot.indexOf(P),ln=zt>-1?parseInt(tt[1+zt]):0,tn=Yt>-1?parseInt(ot[1+Yt]):0;ln!==tn&&(Ge=Ge.replace(Ue(),"?px "),Pe*=Math.pow(.75,tn-ln),Ge=Ge.replace("?px ",Ue())),Te-=.25*De*(tn-ln)}if(se.bolds===!0){var Et=tt.indexOf(x)>-1,Ot=ot.indexOf(x)>-1;!Et&&Ot&&(Ge=cn?Ge.replace("italic ","italic bold "):"bold "+Ge),Et&&!Ot&&(Ge=Ge.replace("bold ",""))}if(se.italics===!0){var cn=tt.indexOf(M)>-1,Cn=ot.indexOf(M)>-1;!cn&&Cn&&(Ge="italic "+Ge),cn&&!Cn&&(Ge=Ge.replace("italic ",""))}Y.font=Ge}for(ve=0;ve",K="",re=Z.length,q=K.length,Y=U[0]===P||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(Z,ee))!==-1&&(me=X.indexOf(K,ee+re))!==-1&&!(me<=ee);){for(var pe=ee;pe=me)te[pe]=null,X=X.substr(0,pe)+" "+X.substr(pe+1);else if(te[pe]!==null){var se=te[pe].indexOf(U[0]);se===-1?te[pe]+=U:Y&&(te[pe]=te[pe].substr(0,se+1)+(1+parseInt(te[pe][se+1]))+te[pe].substr(se+2))}var ae=ee+re,ce=X.substr(ae,me-ae).indexOf(Z);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=c(j,128);return U?p(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var Z=z(j,te),K=function(ve,_e,we){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ve.length,Qe=0;Qe"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var m=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var c=new a,h=Object.freeze({});if(c.set(h,1),c.get(h)===1)return void(y.exports=WeakMap);m=!0}}var p=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,O="weakmap:",C=O+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),C=O+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return p($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,P=0,A=function(){this instanceof A||z();var $=[],Q=[],j=P++;return Object.create(A.prototype,{get___:{value:I(function(U,X){var te,Z=k(U);return Z?j in Z?Z[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,Z=k(U);return Z?Z[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,Z=k(U);return Z?j in Z&&delete Z[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};A.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof A||z();var Q,j=new a,U=void 0,X=!1;return Q=m?function(te,Z){return j.set(te,Z),j.has(te)||(U||(U=new A),U.set(te,Z)),this}:function(te,Z){if(X)try{j.set(te,Z)}catch{U||(U=new A),U.set___(te,Z)}else j.set(te,Z);return this},Object.create(A.prototype,{get___:{value:I(function(te,Z){return U?j.has(te)?j.get(te):U.get___(te,Z):j.get(te,Z)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var Z=!!j.delete(te);return U&&U.delete___(te)||Z})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}m&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=A.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=A)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==O&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[C];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,C,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,m,a){var c=a(7178);y.exports=function(){var h={};return function(p){if((typeof p!="object"||p===null)&&typeof p!="function")throw new Error("Weakmap-shim: Key must be object");var v=p.valueOf(h);return v&&v.identity===h?v:c(p,h)}}},7178:function(y){y.exports=function(m,a){var c={identity:a},h=m.valueOf;return Object.defineProperty(m,"valueOf",{value:function(p){return p!==a?h.apply(this,arguments):c},writable:!0}),c}},4037:function(y,m,a){var c=a(9222);y.exports=function(){var h=c();return{get:function(p,v){var _=h(p);return _.hasOwnProperty("value")?_.value:v},set:function(p,v){return h(p).value=v,this},has:function(p){return"value"in h(p)},delete:function(p){return delete h(p).value}}}},6183:function(y){y.exports=function(m){var a={};return function(c,h,p){var v=c.dtype,_=c.order,O=[v,_.join()].join(),C=a[O];return C||(a[O]=C=m([v,_])),C(c.shape.slice(0),c.data,c.stride,0|c.offset,h,p)}}((function(){return function(m,a,c,h,p,v){var _=m[0],O=c[0],C=[0],x=O;h|=0;var R=0,M=O;for(R=0;R<_;++R){var T=a[h]-v,P=a[h+x]-v;T>=0!=P>=0&&p.push(C[0]+.5+.5*(T+P)/(T-P)),h+=M,++C[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,m,a){y.exports=function(h,p){var v=[];return p=+p||0,c(h.hi(h.shape[0]-1),v,p),v};var c=a(6183)},6601:function(){}},S={};function w(y){var m=S[y];if(m!==void 0)return m.exports;var a=S[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=u()},33576:function(d,s,n){function u(Oe,ke){for(var Re=0;Rec)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,p.prototype),ke}function p(Oe,ke,Re){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Oe)}return v(Oe,ke,Re)}function v(Oe,ke,Re){if(typeof Oe=="string")return function(Ze,Ye){if(typeof Ye=="string"&&Ye!==""||(Ye="utf8"),!p.isEncoding(Ye))throw new TypeError("Unknown encoding: "+Ye);var Je=0|M(Ze,Ye),Me=h(Je),Fe=Me.write(Ze,Ye);return Fe!==Je&&(Me=Me.slice(0,Fe)),Me}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Ye=new Uint8Array(Ze);return x(Ye.buffer,Ye.byteOffset,Ye.byteLength)}return C(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Re);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return p.from(We,ke,Re);var Ue=function(Ze){if(p.isBuffer(Ze)){var Ye=0|R(Ze.length),Je=h(Ye);return Je.length===0||Ze.copy(Je,0,0,Ye),Je}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):C(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?C(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return p.from(Oe[Symbol.toPrimitive]("string"),ke,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function O(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function C(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Re=h(ke),We=0;We=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(p.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Re=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Re===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Re;case"hex":return Re>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Re){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Z(this,ke,Re);case"utf8":case"utf-8":return j(this,ke,Re);case"ascii":return X(this,ke,Re);case"latin1":case"binary":return te(this,ke,Re);case"base64":return Q(this,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Re);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function P(Oe,ke,Re){var We=Oe[ke];Oe[ke]=Oe[Re],Oe[Re]=We}function A(Oe,ke,Re,We,Ue){if(Oe.length===0)return-1;if(typeof Re=="string"?(We=Re,Re=0):Re>2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),De(Re=+Re)&&(Re=Ue?0:Oe.length-1),Re<0&&(Re=Oe.length+Re),Re>=Oe.length){if(Ue)return-1;Re=Oe.length-1}else if(Re<0){if(!Ue)return-1;Re=0}if(typeof ke=="string"&&(ke=p.from(ke,We)),p.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Re,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Re):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Re):L(Oe,[ke],Re,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Re,We,Ue){var Ze,Ye=1,Je=Oe.length,Me=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Ye=2,Je/=2,Me/=2,Re/=2}function Fe(Ge,ht){return Ye===1?Ge[ht]:Ge.readUInt16BE(ht*Ye)}if(Ue){var je=-1;for(Ze=Re;ZeJe&&(Re=Je-Me),Ze=Re;Ze>=0;Ze--){for(var tt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Ye=ke.length;for(We>Ye/2&&(We=Ye/2),Ze=0;Ze>8,Me=Ye%256,Fe.push(Me),Fe.push(Je);return Fe}(ke,Oe.length-Re),Oe,Re,We)}function Q(Oe,ke,Re){return ke===0&&Re===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Re))}function j(Oe,ke,Re){Re=Math.min(Oe.length,Re);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+Je<=Re){var Me=void 0,Fe=void 0,je=void 0,tt=void 0;switch(Je){case 1:Ze<128&&(Ye=Ze);break;case 2:(192&(Me=Oe[Ue+1]))==128&&(tt=(31&Ze)<<6|63&Me)>127&&(Ye=tt);break;case 3:Me=Oe[Ue+1],Fe=Oe[Ue+2],(192&Me)==128&&(192&Fe)==128&&(tt=(15&Ze)<<12|(63&Me)<<6|63&Fe)>2047&&(tt<55296||tt>57343)&&(Ye=tt);break;case 4:Me=Oe[Ue+1],Fe=Oe[Ue+2],je=Oe[Ue+3],(192&Me)==128&&(192&Fe)==128&&(192&je)==128&&(tt=(15&Ze)<<18|(63&Me)<<12|(63&Fe)<<6|63&je)>65535&&tt<1114112&&(Ye=tt)}}Ye===null?(Ye=65533,Je=1):Ye>65535&&(Ye-=65536,We.push(Ye>>>10&1023|55296),Ye=56320|1023&Ye),We.push(Ye),Ue+=Je}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(Oe,ke,Re){return v(Oe,ke,Re)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(Oe,ke,Re){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Re)},p.allocUnsafe=function(Oe){return O(Oe)},p.allocUnsafeSlow=function(Oe){return O(Oe)},p.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==p.prototype},p.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=p.from(ke,ke.offset,ke.byteLength)),!p.isBuffer(Oe)||!p.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Re=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Re,We);UeWe.length?(p.isBuffer(Ze)||(Ze=p.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!p.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},p.byteLength=M,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(p.prototype[a]=p.prototype.inspect),p.prototype.compare=function(Oe,ke,Re,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),!p.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Re===void 0&&(Re=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Re>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Re)return 0;if(We>=Ue)return-1;if(ke>=Re)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Ye=(Re>>>=0)-(ke>>>=0),Je=Math.min(Ze,Ye),Me=this.slice(We,Ue),Fe=Oe.slice(ke,Re),je=0;je>>=0,isFinite(Re)?(Re>>>=0,We===void 0&&(We="utf8")):(We=Re,Re=void 0)}var Ue=this.length-ke;if((Re===void 0||Re>Ue)&&(Re=Ue),Oe.length>0&&(Re<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Re);case"utf8":case"utf-8":return k(this,Oe,ke,Re);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Re);case"base64":return z(this,Oe,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Re);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Re){var We="";Re=Math.min(Oe.length,Re);for(var Ue=ke;UeWe)&&(Re=We);for(var Ue="",Ze=ke;ZeRe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Re,We,Ue,Ze){if(!p.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Re}function ee(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re+7]=Ze,Ze>>=8,Oe[Re+6]=Ze,Ze>>=8,Oe[Re+5]=Ze,Ze>>=8,Oe[Re+4]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re+3]=Ye,Ye>>=8,Oe[Re+2]=Ye,Ye>>=8,Oe[Re+1]=Ye,Ye>>=8,Oe[Re]=Ye,Re+8}function me(Oe,ke,Re,We,Ue,Ze){if(Re+We>Oe.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function pe(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,4),m.write(Oe,ke,Re,We,23,4),Re+4}function se(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,8),m.write(Oe,ke,Re,We,52,8),Re+8}p.prototype.slice=function(Oe,ke){var Re=this.length;(Oe=~~Oe)<0?(Oe+=Re)<0&&(Oe=0):Oe>Re&&(Oe=Re),(ke=ke===void 0?Re:~~ke)<0?(ke+=Re)<0&&(ke=0):ke>Re&&(ke=Re),ke>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},p.prototype.readUint8=p.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),this[Oe]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},p.prototype.readBigUInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Re*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Re;return(BigInt(We)<>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},p.prototype.readIntBE=function(Oe,ke,Re){Oe>>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},p.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},p.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe]|this[Oe+1]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe+1]|this[Oe]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},p.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},p.prototype.readBigInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Re<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!0,23,4)},p.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!1,23,4)},p.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!0,52,8)},p.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Oe,ke,Re,We){Oe=+Oe,ke>>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=Re-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Re},p.prototype.writeUint8=p.prototype.writeUInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=0,Ye=1,Je=0;for(this[ke]=255&Oe;++Ze>0)-Je&255;return ke+Re},p.prototype.writeIntBE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=Re-1,Ye=1,Je=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Ye*=256);)Oe<0&&Je===0&&this[ke+Ze+1]!==0&&(Je=1),this[ke+Ze]=(Oe/Ye>>0)-Je&255;return ke+Re},p.prototype.writeInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},p.prototype.writeInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},p.prototype.writeInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(Oe,ke,Re){return pe(this,Oe,ke,!0,Re)},p.prototype.writeFloatBE=function(Oe,ke,Re){return pe(this,Oe,ke,!1,Re)},p.prototype.writeDoubleLE=function(Oe,ke,Re){return se(this,Oe,ke,!0,Re)},p.prototype.writeDoubleBE=function(Oe,ke,Re){return se(this,Oe,ke,!1,Re)},p.prototype.copy=function(Oe,ke,Re,We){if(!p.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Re=Re===void 0?this.length:Re>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Fe,je||[],b(Me).constructor):Fe.apply(Me,je))}(this,Ue),Object.defineProperty(i(Je),"message",{value:ke.apply(i(Je),arguments),writable:!0,configurable:!0}),Je.name="".concat(Je.name," [").concat(Oe,"]"),Je.stack,delete Je.name,Je}var Ze,Ye;return function(Je,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");Je.prototype=Object.create(Me&&Me.prototype,{constructor:{value:Je,writable:!0,configurable:!0}}),Object.defineProperty(Je,"prototype",{writable:!1}),Me&&S(Je,Me)}(Ue,We),Ze=Ue,(Ye=[{key:"code",get:function(){return Oe},set:function(Je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Je,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&u(Ze.prototype,Ye),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Re)}function de(Oe){for(var ke="",Re=Oe.length,We=Oe[0]==="-"?1:0;Re>=We+4;Re-=3)ke="_".concat(Oe.slice(Re-3,Re)).concat(ke);return"".concat(Oe.slice(0,Re)).concat(ke)}function ye(Oe,ke,Re,We,Ue,Ze){if(Oe>Re||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(Je," and < 2").concat(Je," ** ").concat(8*(Ze+1)).concat(Je):">= -(2".concat(Je," ** ").concat(8*(Ze+1)-1).concat(Je,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(Je):">= ".concat(ke).concat(Je," and <= ").concat(Re).concat(Je),new ae.ERR_OUT_OF_RANGE("value",Ye,Oe)}(function(Me,Fe,je){ve(Fe,"offset"),Me[Fe]!==void 0&&Me[Fe+je]!==void 0||_e(Fe,Me.length-(je+1))})(We,Ue,Ze)}function ve(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Re){throw Math.floor(Oe)!==Oe?(ve(Oe,Re),new ae.ERR_OUT_OF_RANGE(Re||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Re||"offset",">= ".concat(Re?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Re){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Re;return Number.isInteger(Re)&&Math.abs(Re)>Math.pow(2,32)?Ue=de(String(Re)):typeof Re=="bigint"&&(Ue=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var we=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Re;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Ye=0;Ye55295&&Re<57344){if(!Ue){if(Re>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Ye+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Re;continue}if(Re<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Re;continue}Re=65536+(Ue-55296<<10|Re-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Re<128){if((ke-=1)<0)break;Ze.push(Re)}else if(Re<2048){if((ke-=2)<0)break;Ze.push(Re>>6|192,63&Re|128)}else if(Re<65536){if((ke-=3)<0)break;Ze.push(Re>>12|224,Re>>6&63|128,63&Re|128)}else{if(!(Re<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,63&Re|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(we,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Re,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Re]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var Qe=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Re=0;Re<16;++Re)for(var We=16*Re,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Re]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var s=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,u=/android|ipad|playbook|silk/i;function b(i){i||(i={});var S=i.ua;if(S||typeof navigator>"u"||(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),typeof S!="string")return!1;var w=s.test(S)&&!n.test(S)||!!i.tablet&&u.test(S);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&S.indexOf("Macintosh")!==-1&&S.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,s,n){n.r(s),n.d(s,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return c},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var u=n(84706),b=n(34712),i=n(10132),S=n(6688),w=n.n(S);function y(Ie){return Ie.target.depth}function m(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function c(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,u.SY)(Ie.sourceLinks,y)-1:0}function p(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return C(Ie.source,ze.source)||Ie.index-ze.index}function O(Ie,ze){return C(Ie.target,ze.target)||Ie.index-ze.index}function C(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function P(Ie){return Ie.index}function A(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,Qe=0,Ve=1,$e=1,Oe=24,ke=P,Re=c,We=A,Ue=L,Ze=32,Ye=2,Je=null;function Me(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var St=ht.source,Ft=ht.target;(St===void 0?"undefined":v(St))!=="object"&&(St=ht.source=D(Ge,St)),(Ft===void 0?"undefined":v(Ft))!=="object"&&(Ft=ht.target=D(Ge,Ft)),St.sourceLinks.push(ht),Ft.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var St=[],Ft=0;Ft0?Pn+I+z:Pn,bottom:Sn=Sn>0?Sn+I+z:Sn,left:xt=xt>0?xt+I+z:xt,right:vt=vt>0?vt+I+z:vt}}(ot),cn=function(Cn,Pn){var Sn=(0,u.kv)(Cn.nodes,function(Vt){return Vt.column}),vt=Ve-De,xt=$e-Qe,st=vt/(vt+Pn.right+Pn.left),bt=xt/(xt+Pn.top+Pn.bottom);return De=De*st+Pn.left,Ve=Pn.right==0?Ve:Ve*st,Qe=Qe*bt+Pn.top,$e*=bt,Cn.nodes.forEach(function(Vt){Vt.x0=De+Vt.column*((Ve-De-Oe)/Sn),Vt.x1=Vt.x0+Oe}),bt}(ot,Ot);Et*=cn,ot.links.forEach(function(Cn){Cn.width=Cn.value*Et}),pt.forEach(function(Cn){var Pn=Cn.length;Cn.forEach(function(Sn,vt){Sn.depth==pt.length-1&&Pn==1||Sn.depth==0&&Pn==1?(Sn.y0=$e/2-Sn.value*Et,Sn.y1=Sn.y0+Sn.value*Et):Sn.partOfCycle?X(Sn,ln)==0?(Sn.y0=$e/2+vt,Sn.y1=Sn.y0+Sn.value*Et):Sn.circularLinkType=="top"?(Sn.y0=Qe+vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=$e-Sn.value*Et-vt,Sn.y1=Sn.y0+Sn.value*Et):Ot.top==0||Ot.bottom==0?(Sn.y0=($e-Qe)/Pn*vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=($e-Qe)/2-Pn/2+vt,Sn.y1=Sn.y0+Sn.value*Et)})})})(ht),Yt();for(var St=1,Ft=Ge;Ft>0;--Ft)zt(St*=.99,ht),Yt();function zt(ln,tn){var Et=pt.length;pt.forEach(function(Ot){var cn=Ot.length,Cn=Ot[0].depth;Ot.forEach(function(Pn){var Sn;if((Pn.sourceLinks.length||Pn.targetLinks.length)&&!(Pn.partOfCycle&&X(Pn,tn)>0))if(Cn==0&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else if(Cn==Et-1&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else{var vt=(0,u.mo)(Pn.sourceLinks,T),xt=(0,u.mo)(Pn.targetLinks,M),st=((vt&&xt?(vt+xt)/2:vt||xt)-R(Pn))*ln;Pn.y0+=st,Pn.y1+=st}})})}function Yt(){pt.forEach(function(ln){var tn,Et,Ot,cn=Qe,Cn=ln.length;for(ln.sort(C),Ot=0;Ot0&&(tn.y0+=Et,tn.y1+=Et),cn=tn.y1+Ie;if((Et=cn-Ie-$e)>0)for(cn=tn.y0-=Et,tn.y1-=Et,Ot=Cn-2;Ot>=0;--Ot)(Et=(tn=ln[Ot]).y1+Ie-cn)>0&&(tn.y0-=Et,tn.y1-=Et),cn=tn.y0})}}(je,Ze,ke),Fe(je);for(var tt=0;tt<4;tt++)ve(je,$e,ke),_e(je,0,ke),de(je,Qe,$e,ke),ve(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,St=ot.links,Ft=!1,zt=!1;if(St.forEach(function(tn){tn.circularLinkType=="top"?Ft=!0:tn.circularLinkType=="bottom"&&(zt=!0)}),Ft==0||zt==0){var Yt=(0,u.SY)(pt,function(tn){return tn.y0}),ln=(ht-Ge)/((0,u.kv)(pt,function(tn){return tn.y1})-Yt);pt.forEach(function(tn){var Et=(tn.y1-tn.y0)*ln;tn.y0=(tn.y0-Yt)*ln,tn.y1=tn.y0+Et}),St.forEach(function(tn){tn.y0=(tn.y0-Yt)*ln,tn.y1=(tn.y1-Yt)*ln,tn.width=tn.width*ln})}}(je,Qe,$e),K(je,Ye,$e,ke),je}function Fe(je){je.nodes.forEach(function(tt){tt.sourceLinks.sort(O),tt.targetLinks.sort(_)}),je.nodes.forEach(function(tt){var ot=tt.y0,Ge=ot,ht=tt.y1,pt=ht;tt.sourceLinks.forEach(function(St){St.circular?(St.y0=ht-St.width/2,ht-=St.width):(St.y0=ot+St.width/2,ot+=St.width)}),tt.targetLinks.forEach(function(St){St.circular?(St.y1=pt-St.width/2,pt-=St.width):(St.y1=Ge+St.width/2,Ge+=St.width)})})}return Me.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:p(je),Me):ke},Me.nodeAlign=function(je){return arguments.length?(Re=typeof je=="function"?je:p(je),Me):Re},Me.nodeWidth=function(je){return arguments.length?(Oe=+je,Me):Oe},Me.nodePadding=function(je){return arguments.length?(Ie=+je,Me):Ie},Me.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:p(je),Me):We},Me.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:p(je),Me):Ue},Me.size=function(je){return arguments.length?(De=Qe=0,Ve=+je[0],$e=+je[1],Me):[Ve-De,$e-Qe]},Me.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],Qe=+je[0][1],$e=+je[1][1],Me):[[De,Qe],[Ve,$e]]},Me.iterations=function(je){return arguments.length?(Ze=+je,Me):Ze},Me.circularLinkGap=function(je){return arguments.length?(Ye=+je,Me):Ye},Me.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Me):ze},Me.sortNodes=function(je){return arguments.length?(Je=je,Me):Je},Me.update=function(je){return j(je,ke),Fe(je),je.links.forEach(function(tt){tt.circular&&(tt.circularLinkType=tt.y0+tt.y1<$e?"top":"bottom",tt.source.circularLinkType=tt.circularLinkType,tt.target.circularLinkType=tt.circularLinkType)}),ve(je,$e,ke,!1),_e(je,0,ke),K(je,Ye,$e,ke),je},Me}function j(Ie,ze){var De=0,Qe=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function Z(Ie,ze,De){return Ie.sort(re),Ie.forEach(function(Qe,Ve){var $e,Oe,ke=0;if(Pe(Qe,De)&&te(Qe))Qe.circularPathData.verticalBuffer=ke+Qe.width/2;else{for(var Re=0;ReOe.source.column)){var We=Ie[Re].circularPathData.verticalBuffer+Ie[Re].width/2+ze;ke=We>ke?We:ke}Qe.circularPathData.verticalBuffer=ke+Qe.width/2}}),Ie}function K(Ie,ze,De,Qe){var Ve=(0,u.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),Z(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,Qe),Z(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,Qe),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,Qe)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Re=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Re.sort(Y):Re.sort(q);var We=0;Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),Oe=$e.target.column,Re=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Re.sort(me):Re.sort(ee),We=0,Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function re(Ie,ze){return pe(Ie)==pe(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):pe(ze)-pe(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function pe(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+Qe:Ie.y1-Qe}function ce(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-Qe:Ie.y1+Qe}function de(Ie,ze,De,Qe){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Re=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Re+1),Ye=Math.pow(1-Ze,3),Je=3*Ze*Math.pow(1-Ze,2),Me=3*Math.pow(Ze,2)*(1-Ze),Fe=Math.pow(Ze,3),je=Ye*Ve.y0+Je*Ve.y0+Me*Ve.y1+Fe*Ve.y1,tt=je-Ve.width/2,ot=je+Ve.width/2;tt>We.y0&&ttpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ye(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ye(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,Qe)!=k(We,Qe)&&Ge.column==We.column&&Ge.y0We.y1&&ye(Ge,Ue,ze,De)}))}})}})}function ye(Ie,ze,De,Qe){return Ie.y0+ze>=De&&Ie.y1+ze<=Qe&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ve(Ie,ze,De,Qe){Ie.nodes.forEach(function(Ve){Qe&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Re){return k(Re.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Re,We){if(!Re.circular&&!We.circular){if(Re.target.column==We.target.column||!we(Re,We))return Re.y1-We.y1;if(Re.target.column>We.target.column){var Ue=ce(We,Re);return Re.y1-Ue}if(We.target.column>Re.target.column)return ce(Re,We)-We.y1}return Re.circular&&!We.circular?Re.circularLinkType=="top"?-1:1:We.circular&&!Re.circular?We.circularLinkType=="top"?1:-1:Re.circular&&We.circular?Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="top"?Re.target.column===We.target.column?Re.target.y1-We.target.y1:We.target.column-Re.target.column:Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="bottom"?Re.target.column===We.target.column?We.target.y1-Re.target.y1:Re.target.column-We.target.column:Re.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Re){Re.y0=ke+Re.width/2,ke+=Re.width}),$e.forEach(function(Re,We){if(Re.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Re){if(!ke.circular&&!Re.circular){if(ke.source.column==Re.source.column||!we(ke,Re))return ke.y0-Re.y0;if(Re.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,s,n){n.r(s),n.d(s,{sankey:function(){return P},sankeyCenter:function(){return m},sankeyJustify:function(){return y},sankeyLeft:function(){return S},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var u=n(84706),b=n(34712);function i(I){return I.target.depth}function S(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function m(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,u.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function c(I,z){return p(I.source,z.source)||I.index-z.index}function h(I,z){return p(I.target,z.target)||I.index-z.index}function p(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function O(I){return _(I.source)*I.value}function C(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function P(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,Z=R,K=M,re=32;function q(){var ee={nodes:Z.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var pe=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(pe,ce)),typeof de!="object"&&(de=se.target=T(pe,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(pe){pe.value=Math.max((0,u.oh)(pe.sourceLinks,v),(0,u.oh)(pe.targetLinks,v))})}(ee),function(me){var pe,se,ae;for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ye){se.indexOf(ye.target)<0&&se.push(ye.target)})});for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ye){se.indexOf(ye.source)<0&&se.push(ye.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var pe=(0,b.UJ)().key(function(ve){return ve.x0}).sortKeys(u.XE).entries(me.nodes).map(function(ve){return ve.values});(function(){var ve=(0,u.kv)(pe,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ve-1);U>_e&&(U=_e);var we=(0,u.SY)(pe,function(Te){return(Q-z-(Te.length-1)*U)/(0,u.oh)(Te,v)});pe.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*we})}),me.links.forEach(function(Te){Te.width=Te.value*we})})(),ye();for(var se=1,ae=re;ae>0;--ae)de(se*=.99),ye(),ce(se),ye();function ce(ve){pe.forEach(function(_e){_e.forEach(function(we){if(we.targetLinks.length){var Te=((0,u.oh)(we.targetLinks,O)/(0,u.oh)(we.targetLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function de(ve){pe.slice().reverse().forEach(function(_e){_e.forEach(function(we){if(we.sourceLinks.length){var Te=((0,u.oh)(we.sourceLinks,C)/(0,u.oh)(we.sourceLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function ye(){pe.forEach(function(ve){var _e,we,Te,Pe=z,Ie=ve.length;for(ve.sort(p),Te=0;Te0&&(_e.y0+=we,_e.y1+=we),Pe=_e.y1+U;if((we=Pe-U-Q)>0)for(Pe=_e.y0-=we,_e.y1-=we,Te=Ie-2;Te>=0;--Te)(we=(_e=ve[Te]).y1+U-Pe)>0&&(_e.y0-=we,_e.y1-=we),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(c)}),ee.nodes.forEach(function(me){var pe=me.y0,se=pe;me.sourceLinks.forEach(function(ae){ae.y0=pe+ae.width/2,pe+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(Z=typeof ee=="function"?ee:a(ee),q):Z},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(re=+ee,q):re},q}var A=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,A.ak)().source(L).target(D)}},33428:function(d,s,n){var u,b;(function(){var i={version:"3.8.0"},S=[].slice,w=function(V){return S.call(V)},y=self.document;function m(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=ie[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var c=this.Element.prototype,h=c.setAttribute,p=c.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;c.setAttribute=function(ie,ge){h.call(this,ie,ge+"")},c.setAttributeNS=function(ie,ge,xe){p.call(this,ie,ge,xe+"")},v.setProperty=function(ie,ge,xe){_.call(this,ie,ge+"",xe)}}function O(V,ie){return Vie?1:V>=ie?0:NaN}function C(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)<0?xe=Ne+1:Ee=Ne}return xe},right:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)>0?Ee=Ne:xe=Ne+1}return xe}}}i.ascending=O,i.descending=function(V,ie){return ieV?1:ie>=V?0:NaN},i.min=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}return ge},i.max=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}return ge},i.extent=function(V,ie){var ge,xe,Ee,Ne=-1,et=V.length;if(arguments.length===1){for(;++Ne=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee1)return et/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(O);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ie,ge){return O(V(ie),ge)}:V)},i.shuffle=function(V,ie,ge){(Ne=arguments.length)<3&&(ge=V.length,Ne<2&&(ie=0));for(var xe,Ee,Ne=ge-ie;Ne;)Ee=Math.random()*Ne--|0,xe=V[Ne+ie],V[Ne+ie]=V[Ee+ie],V[Ee+ie]=xe;return V},i.permute=function(V,ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=V[ie[ge]];return xe},i.pairs=function(V){for(var ie=0,ge=V.length-1,xe=V[0],Ee=new Array(ge<0?0:ge);ie=0;)for(ie=(xe=V[Ee]).length;--ie>=0;)ge[--et]=xe[ie];return ge};var P=Math.abs;function A(V,ie){for(var ge in ie)Object.defineProperty(V.prototype,ge,{value:ie[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ie,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ie=V,V=0)),(ie-V)/ge==1/0)throw new Error("infinite range");var xe,Ee=[],Ne=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(P(ge)),et=-1;if(V*=Ne,ie*=Ne,(ge*=Ne)<0)for(;(xe=V+ge*++et)>ie;)Ee.push(xe/Ne);else for(;(xe=V+ge*++et)=xe.length)return ie?ie.call(ge,dt):V?dt.sort(V):dt;for(var Rt,Mt,Xt,dn,bn=-1,vn=dt.length,Ln=xe[gt++],gn=new L;++bn=xe.length)return rt;var gt=[],Rt=Ee[dt++];return rt.forEach(function(Mt,Xt){gt.push({key:Mt,values:et(Xt,dt)})}),Rt?gt.sort(function(Mt,Xt){return Rt(Mt.key,Xt.key)}):gt}return ge.map=function(rt,dt){return Ne(dt,rt,0)},ge.entries=function(rt){return et(Ne(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Ee[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ie=rt,ge},ge},i.set=function(V){var ie=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ie);if(arguments.length===2){if(ie==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ie){V.__proto__=ie}:function(V,ie){for(var ge in ie)V[ge]=ie[ge]};function ye(V){return de(V,Te),V}var ve=function(V,ie){return ie.querySelector(V)},_e=function(V,ie){return ie.querySelectorAll(V)},we=function(V,ie){var ge=V.matches||V[re(V,"matchesSelector")];return we=function(xe,Ee){return ge.call(xe,Ee)},we(V,ie)};typeof Sizzle=="function"&&(ve=function(V,ie){return Sizzle(V,ie)[0]||null},_e=Sizzle,we=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ve(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ie,ge,xe,Ee,Ne=[];V=Pe(V);for(var et=-1,rt=this.length;++et=0&&(ge=V.slice(0,ie))!=="xmlns"&&(V=V.slice(ie+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ie in V)this.each(Qe(ie,V[ie]));return this}return this.each(Qe(V,ie))},Te.classed=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Ee=-1;if(ie=ge.classList){for(;++Ee=0;)(ge=xe[Ee])&&(Ne&&Ne!==ge.nextSibling&&Ne.parentNode.insertBefore(ge,Ne),Ne=ge);return this},Te.sort=function(V){V=Fe.apply(this,arguments);for(var ie=-1,ge=this.length;++ie0&&(V=V.slice(0,Ee));var et=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return et&&(V=et,Ne=St),Ee?ie?function(){var dt=Ne(ie,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ie}:rt:ie?Y:function(){var dt,gt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Rt in this)if(dt=Rt.match(gt)){var Mt=this[Rt];this.removeEventListener(dt[1],Mt,Mt.$),delete this[Rt]}}}i.selection.enter=tt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ie,ge,xe,Ee,Ne,et=[],rt=-1,dt=this.length;++rt=xe&&(xe=et+1);!(dt=gt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function Vt(V){return((V=Math.exp(V))+1/V)/2}var Dt=Math.SQRT2;i.interpolateZoom=function(V,ie){var ge,xe,Ee=V[0],Ne=V[1],et=V[2],rt=ie[0],dt=ie[1],gt=ie[2],Rt=rt-Ee,Mt=dt-Ne,Xt=Rt*Rt+Mt*Mt;if(Xt0&&(Ho=Ho.transition().duration(Xt)),Ho.call(pn.event)}function ro(){et&&et.domain(Ne.range().map(function(Ho){return(Ho-gt.x)/gt.k}).map(Ne.invert)),dt&&dt.domain(rt.range().map(function(Ho){return(Ho-gt.y)/gt.k}).map(rt.invert))}function po(Ho){dn++||Ho({type:"zoomstart"})}function Wo(Ho){ro(),Ho({type:"zoom",scale:gt.k,translate:[gt.x,gt.y]})}function si(Ho){--dn||(Ho({type:"zoomend"}),ie=null)}function Bo(){var Ho=this,jo=Jn.of(Ho,arguments),Yi=0,ai=i.select(a(Ho)).on(vn,function(){Yi=1,Pr(i.mouse(Ho),Hi),Wo(jo)}).on(Ln,function(){ai.on(vn,null).on(Ln,null),Ai(Yi),si(jo)}),Hi=In(i.mouse(Ho)),Ai=Yt(Ho);Pl.call(Ho),po(jo)}function Go(){var Ho,jo=this,Yi=Jn.of(jo,arguments),ai={},Hi=0,Ai=".zoom-"+i.event.changedTouches[0].identifier,Ja="touchmove"+Ai,Ar="touchend"+Ai,ns=[],$s=i.select(jo),Ts=Yt(jo);function rl(){var mt=i.touches(jo);return Ho=gt.k,mt.forEach(function(Tt){Tt.identifier in ai&&(ai[Tt.identifier]=In(Tt))}),mt}function Hs(){var mt=i.event.target;i.select(mt).on(Ja,ys).on(Ar,Yu),ns.push(mt);for(var Tt=i.event.changedTouches,xn=0,Nn=Tt.length;xn1){No=yr[0];var ui=yr[1],ga=No[0]-ui[0],Sa=No[1]-ui[1];Hi=ga*ga+Sa*Sa}}function ys(){var mt,Tt,xn,Nn,yr=i.touches(jo);Pl.call(jo);for(var so=0,No=yr.length;so360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Ee-xe)*rt/60:rt<180?Ee:rt<240?xe+(Ee-xe)*(240-rt)/60:xe}(et))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ie=isNaN(ie)||ie<0?0:ie>1?1:ie,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Ee=ge<=.5?ge*(1+ie):ge+ie-ge*ie),new $r(Ne(V+120),Ne(V),Ne(V-120))}function Zt(V,ie,ge){return this instanceof Zt?(this.h=+V,this.c=+ie,void(this.l=+ge)):arguments.length<2?V instanceof Zt?new Zt(V.h,V.c,V.l):function(xe,Ee,Ne){return xe>0?new Zt(Math.atan2(Ne,Ee)*st,Math.sqrt(Ee*Ee+Ne*Ne),xe):new Zt(NaN,NaN,xe)}(V instanceof rn?V.l:(V=Vr((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Zt(V,ie,ge)}en.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,this.l/V)},en.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,V*this.l)},en.rgb=function(){return Jt(this.h,this.s,this.l)},i.hcl=Zt;var Nt=Zt.prototype=new _t;function sn(V,ie,ge){return isNaN(V)&&(V=0),isNaN(ie)&&(ie=0),new rn(ge,Math.cos(V*=xt)*ie,Math.sin(V)*ie)}function rn(V,ie,ge){return this instanceof rn?(this.l=+V,this.a=+ie,void(this.b=+ge)):arguments.length<2?V instanceof rn?new rn(V.l,V.a,V.b):V instanceof Zt?sn(V.h,V.c,V.l):Vr((V=$r(V)).r,V.g,V.b):new rn(V,ie,ge)}Nt.brighter=function(V){return new Zt(this.h,this.c,Math.min(100,this.l+_n*(arguments.length?V:1)))},Nt.darker=function(V){return new Zt(this.h,this.c,Math.max(0,this.l-_n*(arguments.length?V:1)))},Nt.rgb=function(){return sn(this.h,this.c,this.l).rgb()},i.lab=rn;var _n=18,wn=.95047,An=1,Kn=1.08883,fr=rn.prototype=new _t;function Un(V,ie,ge){var xe=(V+16)/116,Ee=xe+ie/500,Ne=xe-ge/200;return new $r(Br(3.2404542*(Ee=Zn(Ee)*wn)-1.5371385*(xe=Zn(xe)*An)-.4985314*(Ne=Zn(Ne)*Kn)),Br(-.969266*Ee+1.8760108*xe+.041556*Ne),Br(.0556434*Ee-.2040259*xe+1.0572252*Ne))}function Zn(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function tr(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function Br(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function $r(V,ie,ge){return this instanceof $r?(this.r=~~V,this.g=~~ie,void(this.b=~~ge)):arguments.length<2?V instanceof $r?new $r(V.r,V.g,V.b):lr(""+V,$r,Jt):new $r(V,ie,ge)}function vr(V){return new $r(V>>16,V>>8&255,255&V)}function qn(V){return vr(V)+""}fr.brighter=function(V){return new rn(Math.min(100,this.l+_n*(arguments.length?V:1)),this.a,this.b)},fr.darker=function(V){return new rn(Math.max(0,this.l-_n*(arguments.length?V:1)),this.a,this.b)},fr.rgb=function(){return Un(this.l,this.a,this.b)},i.rgb=$r;var gr=$r.prototype=new _t;function sr(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function lr(V,ie,ge){var xe,Ee,Ne,et=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Ee=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Ee[0]),parseFloat(Ee[1])/100,parseFloat(Ee[2])/100);case"rgb":return ie(Jr(Ee[0]),Jr(Ee[1]),Jr(Ee[2]))}return(Ne=Yr.get(V))?ie(Ne.r,Ne.g,Ne.b):(V==null||V.charAt(0)!=="#"||isNaN(Ne=parseInt(V.slice(1),16))||(V.length===4?(et=(3840&Ne)>>4,et|=et>>4,rt=240&Ne,rt|=rt>>4,dt=15&Ne,dt|=dt<<4):V.length===7&&(et=(16711680&Ne)>>16,rt=(65280&Ne)>>8,dt=255&Ne)),ie(et,rt,dt))}function zr(V,ie,ge){var xe,Ee,Ne=Math.min(V/=255,ie/=255,ge/=255),et=Math.max(V,ie,ge),rt=et-Ne,dt=(et+Ne)/2;return rt?(Ee=dt<.5?rt/(et+Ne):rt/(2-et-Ne),xe=V==et?(ie-ge)/rt+(ie0&&dt<1?0:xe),new qt(xe,Ee,dt)}function Vr(V,ie,ge){var xe=tr((.4124564*(V=eo(V))+.3575761*(ie=eo(ie))+.1804375*(ge=eo(ge)))/wn),Ee=tr((.2126729*V+.7151522*ie+.072175*ge)/An);return rn(116*Ee-16,500*(xe-Ee),200*(Ee-tr((.0193339*V+.119192*ie+.9503041*ge)/Kn)))}function eo(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Jr(V){var ie=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ie):ie}gr.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ie=this.r,ge=this.g,xe=this.b,Ee=30;return ie||ge||xe?(ie&&ie=200&&Mt<300||Mt===304){try{Rt=ge.call(Ee,rt)}catch(Xt){return void Ne.error.call(Ee,Xt)}Ne.load.call(Ee,Rt)}else Ne.error.call(Ee,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=gt:rt.onreadystatechange=function(){rt.readyState>3&>()},rt.onprogress=function(Rt){var Mt=i.event;i.event=Rt;try{Ne.progress.call(Ee,rt)}finally{i.event=Mt}},Ee.header=function(Rt,Mt){return Rt=(Rt+"").toLowerCase(),arguments.length<2?et[Rt]:(Mt==null?delete et[Rt]:et[Rt]=Mt+"",Ee)},Ee.mimeType=function(Rt){return arguments.length?(ie=Rt==null?null:Rt+"",Ee):ie},Ee.responseType=function(Rt){return arguments.length?(dt=Rt,Ee):dt},Ee.response=function(Rt){return ge=Rt,Ee},["get","post"].forEach(function(Rt){Ee[Rt]=function(){return Ee.send.apply(Ee,[Rt].concat(w(arguments)))}}),Ee.send=function(Rt,Mt,Xt){if(arguments.length===2&&typeof Mt=="function"&&(Xt=Mt,Mt=null),rt.open(Rt,V,!0),ie==null||"accept"in et||(et.accept=ie+",*/*"),rt.setRequestHeader)for(var dn in et)rt.setRequestHeader(dn,et[dn]);return ie!=null&&rt.overrideMimeType&&rt.overrideMimeType(ie),dt!=null&&(rt.responseType=dt),Xt!=null&&Ee.on("error",Xt).on("load",function(bn){Xt(null,bn)}),Ne.beforesend.call(Ee,rt),rt.send(Mt??null),Ee},Ee.abort=function(){return rt.abort(),Ee},i.rebind(Ee,Ne,"on"),xe==null?Ee:Ee.get(function(Rt){return Rt.length===1?function(Mt,Xt){Rt(Mt==null?Xt:null)}:Rt}(xe))}Yr.forEach(function(V,ie){Yr.set(V,vr(ie))}),i.functor=to,i.xhr=co(Z),i.dsv=function(V,ie){var ge=new RegExp('["'+V+` +`;for(we=0,Te=ve*De,Pe=me,Re="",_e=0;_e",K="",re=Z.length,q=K.length,Y=U[0]===P||U[0]===D,ee=0,me=-q;ee>-1&&(ee=X.indexOf(Z,ee))!==-1&&(me=X.indexOf(K,ee+re))!==-1&&!(me<=ee);){for(var pe=ee;pe=me)te[pe]=null,X=X.substr(0,pe)+" "+X.substr(pe+1);else if(te[pe]!==null){var se=te[pe].indexOf(U[0]);se===-1?te[pe]+=U:Y&&(te[pe]=te[pe].substr(0,se+1)+(1+parseInt(te[pe][se+1]))+te[pe].substr(se+2))}var ae=ee+re,ce=X.substr(ae,me-ae).indexOf(Z);ee=ce!==-1?ce:me+q}return te}function z(j,U){var X=c(j,128);return U?p(X.cells,X.positions,.25):{edges:X.cells,positions:X.positions}}function $(j,U,X,te){var Z=z(j,te),K=function(ve,_e,we){for(var Te=_e.textAlign||"start",Pe=_e.textBaseline||"alphabetic",Ie=[1<<30,1<<30],ze=[0,0],De=ve.length,Qe=0;Qe"u"||!ses.ok||ses.ok()){typeof ses<"u"&&(ses.weakMapPermitHostObjects=L);var m=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var c=new a,h=Object.freeze({});if(c.set(h,1),c.get(h)===1)return void(y.exports=WeakMap);m=!0}}var p=Object.getOwnPropertyNames,v=Object.defineProperty,_=Object.isExtensible,O="weakmap:",C=O+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var x=new ArrayBuffer(25),R=new Uint8Array(x);crypto.getRandomValues(R),C=O+"rand:"+Array.prototype.map.call(R,function($){return($%36).toString(36)}).join("")+"___"}if(v(Object,"getOwnPropertyNames",{value:function($){return p($).filter(D)}}),"getPropertyNames"in Object){var M=Object.getPropertyNames;v(Object,"getPropertyNames",{value:function($){return M($).filter(D)}})}(function(){var $=Object.freeze;v(Object,"freeze",{value:function(U){return k(U),$(U)}});var Q=Object.seal;v(Object,"seal",{value:function(U){return k(U),Q(U)}});var j=Object.preventExtensions;v(Object,"preventExtensions",{value:function(U){return k(U),j(U)}})})();var T=!1,P=0,A=function(){this instanceof A||z();var $=[],Q=[],j=P++;return Object.create(A.prototype,{get___:{value:I(function(U,X){var te,Z=k(U);return Z?j in Z?Z[j]:X:(te=$.indexOf(U))>=0?Q[te]:X})},has___:{value:I(function(U){var X=k(U);return X?j in X:$.indexOf(U)>=0})},set___:{value:I(function(U,X){var te,Z=k(U);return Z?Z[j]=X:(te=$.indexOf(U))>=0?Q[te]=X:(te=$.length,Q[te]=X,$[te]=U),this})},delete___:{value:I(function(U){var X,te,Z=k(U);return Z?j in Z&&delete Z[j]:!((X=$.indexOf(U))<0||(te=$.length-1,$[X]=void 0,Q[X]=Q[te],$[X]=$[te],$.length=te,Q.length=te,0))})}})};A.prototype=Object.create(Object.prototype,{get:{value:function($,Q){return this.get___($,Q)},writable:!0,configurable:!0},has:{value:function($){return this.has___($)},writable:!0,configurable:!0},set:{value:function($,Q){return this.set___($,Q)},writable:!0,configurable:!0},delete:{value:function($){return this.delete___($)},writable:!0,configurable:!0}}),typeof a=="function"?function(){function $(){this instanceof A||z();var Q,j=new a,U=void 0,X=!1;return Q=m?function(te,Z){return j.set(te,Z),j.has(te)||(U||(U=new A),U.set(te,Z)),this}:function(te,Z){if(X)try{j.set(te,Z)}catch{U||(U=new A),U.set___(te,Z)}else j.set(te,Z);return this},Object.create(A.prototype,{get___:{value:I(function(te,Z){return U?j.has(te)?j.get(te):U.get___(te,Z):j.get(te,Z)})},has___:{value:I(function(te){return j.has(te)||!!U&&U.has___(te)})},set___:{value:I(Q)},delete___:{value:I(function(te){var Z=!!j.delete(te);return U&&U.delete___(te)||Z})},permitHostObjects___:{value:I(function(te){if(te!==L)throw new Error("bogus call to permitHostObjects___");X=!0})}})}m&&typeof Proxy<"u"&&(Proxy=void 0),$.prototype=A.prototype,y.exports=$,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),y.exports=A)}function L($){$.permitHostObjects___&&$.permitHostObjects___(L)}function D($){return!($.substr(0,8)==O&&$.substr($.length-3)==="___")}function k($){if($!==Object($))throw new TypeError("Not an object: "+$);var Q=$[C];if(Q&&Q.key===$)return Q;if(_($)){Q={key:$};try{return v($,C,{value:Q,writable:!1,enumerable:!1,configurable:!1}),Q}catch{return}}}function I($){return $.prototype=null,Object.freeze($)}function z(){T||typeof console>"u"||(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},9222:function(y,m,a){var c=a(7178);y.exports=function(){var h={};return function(p){if((typeof p!="object"||p===null)&&typeof p!="function")throw new Error("Weakmap-shim: Key must be object");var v=p.valueOf(h);return v&&v.identity===h?v:c(p,h)}}},7178:function(y){y.exports=function(m,a){var c={identity:a},h=m.valueOf;return Object.defineProperty(m,"valueOf",{value:function(p){return p!==a?h.apply(this,arguments):c},writable:!0}),c}},4037:function(y,m,a){var c=a(9222);y.exports=function(){var h=c();return{get:function(p,v){var _=h(p);return _.hasOwnProperty("value")?_.value:v},set:function(p,v){return h(p).value=v,this},has:function(p){return"value"in h(p)},delete:function(p){return delete h(p).value}}}},6183:function(y){y.exports=function(m){var a={};return function(c,h,p){var v=c.dtype,_=c.order,O=[v,_.join()].join(),C=a[O];return C||(a[O]=C=m([v,_])),C(c.shape.slice(0),c.data,c.stride,0|c.offset,h,p)}}((function(){return function(m,a,c,h,p,v){var _=m[0],O=c[0],C=[0],x=O;h|=0;var R=0,M=O;for(R=0;R<_;++R){var T=a[h]-v,P=a[h+x]-v;T>=0!=P>=0&&p.push(C[0]+.5+.5*(T+P)/(T-P)),h+=M,++C[0]}}}).bind(void 0,{funcName:"zeroCrossings"}))},9584:function(y,m,a){y.exports=function(h,p){var v=[];return p=+p||0,c(h.hi(h.shape[0]-1),v,p),v};var c=a(6183)},6601:function(){}},S={};function w(y){var m=S[y];if(m!==void 0)return m.exports;var a=S[y]={id:y,loaded:!1,exports:{}};return i[y].call(a.exports,a,a.exports,w),a.loaded=!0,a.exports}return w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.nmd=function(y){return y.paths=[],y.children||(y.children=[]),y},w(7386)}()},d.exports=u()},33576:function(d,s,n){function u(Oe,ke){for(var Re=0;Rec)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var ke=new Uint8Array(Oe);return Object.setPrototypeOf(ke,p.prototype),ke}function p(Oe,ke,Re){if(typeof Oe=="number"){if(typeof ke=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Oe)}return v(Oe,ke,Re)}function v(Oe,ke,Re){if(typeof Oe=="string")return function(Ze,Ye){if(typeof Ye=="string"&&Ye!==""||(Ye="utf8"),!p.isEncoding(Ye))throw new TypeError("Unknown encoding: "+Ye);var Je=0|M(Ze,Ye),Me=h(Je),Fe=Me.write(Ze,Ye);return Fe!==Je&&(Me=Me.slice(0,Fe)),Me}(Oe,ke);if(ArrayBuffer.isView(Oe))return function(Ze){if(ze(Ze,Uint8Array)){var Ye=new Uint8Array(Ze);return x(Ye.buffer,Ye.byteOffset,Ye.byteLength)}return C(Ze)}(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe));if(ze(Oe,ArrayBuffer)||Oe&&ze(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(Oe,SharedArrayBuffer)||Oe&&ze(Oe.buffer,SharedArrayBuffer)))return x(Oe,ke,Re);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=Oe.valueOf&&Oe.valueOf();if(We!=null&&We!==Oe)return p.from(We,ke,Re);var Ue=function(Ze){if(p.isBuffer(Ze)){var Ye=0|R(Ze.length),Je=h(Ye);return Je.length===0||Ze.copy(Je,0,0,Ye),Je}return Ze.length!==void 0?typeof Ze.length!="number"||De(Ze.length)?h(0):C(Ze):Ze.type==="Buffer"&&Array.isArray(Ze.data)?C(Ze.data):void 0}(Oe);if(Ue)return Ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return p.from(Oe[Symbol.toPrimitive]("string"),ke,Re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(Oe))}function _(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function O(Oe){return _(Oe),h(Oe<0?0:0|R(Oe))}function C(Oe){for(var ke=Oe.length<0?0:0|R(Oe.length),Re=h(ke),We=0;We=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|Oe}function M(Oe,ke){if(p.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||ze(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(Oe));var Re=Oe.length,We=arguments.length>2&&arguments[2]===!0;if(!We&&Re===0)return 0;for(var Ue=!1;;)switch(ke){case"ascii":case"latin1":case"binary":return Re;case"utf8":case"utf-8":return Te(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Re;case"hex":return Re>>>1;case"base64":return Pe(Oe).length;default:if(Ue)return We?-1:Te(Oe).length;ke=(""+ke).toLowerCase(),Ue=!0}}function T(Oe,ke,Re){var We=!1;if((ke===void 0||ke<0)&&(ke=0),ke>this.length||((Re===void 0||Re>this.length)&&(Re=this.length),Re<=0)||(Re>>>=0)<=(ke>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Z(this,ke,Re);case"utf8":case"utf-8":return j(this,ke,Re);case"ascii":return X(this,ke,Re);case"latin1":case"binary":return te(this,ke,Re);case"base64":return Q(this,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,ke,Re);default:if(We)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),We=!0}}function P(Oe,ke,Re){var We=Oe[ke];Oe[ke]=Oe[Re],Oe[Re]=We}function A(Oe,ke,Re,We,Ue){if(Oe.length===0)return-1;if(typeof Re=="string"?(We=Re,Re=0):Re>2147483647?Re=2147483647:Re<-2147483648&&(Re=-2147483648),De(Re=+Re)&&(Re=Ue?0:Oe.length-1),Re<0&&(Re=Oe.length+Re),Re>=Oe.length){if(Ue)return-1;Re=Oe.length-1}else if(Re<0){if(!Ue)return-1;Re=0}if(typeof ke=="string"&&(ke=p.from(ke,We)),p.isBuffer(ke))return ke.length===0?-1:L(Oe,ke,Re,We,Ue);if(typeof ke=="number")return ke&=255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(Oe,ke,Re):Uint8Array.prototype.lastIndexOf.call(Oe,ke,Re):L(Oe,[ke],Re,We,Ue);throw new TypeError("val must be string, number or Buffer")}function L(Oe,ke,Re,We,Ue){var Ze,Ye=1,Je=Oe.length,Me=ke.length;if(We!==void 0&&((We=String(We).toLowerCase())==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(Oe.length<2||ke.length<2)return-1;Ye=2,Je/=2,Me/=2,Re/=2}function Fe(Ge,ht){return Ye===1?Ge[ht]:Ge.readUInt16BE(ht*Ye)}if(Ue){var je=-1;for(Ze=Re;ZeJe&&(Re=Je-Me),Ze=Re;Ze>=0;Ze--){for(var tt=!0,ot=0;otUe&&(We=Ue):We=Ue;var Ze,Ye=ke.length;for(We>Ye/2&&(We=Ye/2),Ze=0;Ze>8,Me=Ye%256,Fe.push(Me),Fe.push(Je);return Fe}(ke,Oe.length-Re),Oe,Re,We)}function Q(Oe,ke,Re){return ke===0&&Re===Oe.length?y.fromByteArray(Oe):y.fromByteArray(Oe.slice(ke,Re))}function j(Oe,ke,Re){Re=Math.min(Oe.length,Re);for(var We=[],Ue=ke;Ue239?4:Ze>223?3:Ze>191?2:1;if(Ue+Je<=Re){var Me=void 0,Fe=void 0,je=void 0,tt=void 0;switch(Je){case 1:Ze<128&&(Ye=Ze);break;case 2:(192&(Me=Oe[Ue+1]))==128&&(tt=(31&Ze)<<6|63&Me)>127&&(Ye=tt);break;case 3:Me=Oe[Ue+1],Fe=Oe[Ue+2],(192&Me)==128&&(192&Fe)==128&&(tt=(15&Ze)<<12|(63&Me)<<6|63&Fe)>2047&&(tt<55296||tt>57343)&&(Ye=tt);break;case 4:Me=Oe[Ue+1],Fe=Oe[Ue+2],je=Oe[Ue+3],(192&Me)==128&&(192&Fe)==128&&(192&je)==128&&(tt=(15&Ze)<<18|(63&Me)<<12|(63&Fe)<<6|63&je)>65535&&tt<1114112&&(Ye=tt)}}Ye===null?(Ye=65533,Je=1):Ye>65535&&(Ye-=65536,We.push(Ye>>>10&1023|55296),Ye=56320|1023&Ye),We.push(Ye),Ue+=Je}return function(ot){var Ge=ot.length;if(Ge<=U)return String.fromCharCode.apply(String,ot);for(var ht="",pt=0;pt"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(Oe,ke,Re){return v(Oe,ke,Re)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(Oe,ke,Re){return function(We,Ue,Ze){return _(We),We<=0?h(We):Ue!==void 0?typeof Ze=="string"?h(We).fill(Ue,Ze):h(We).fill(Ue):h(We)}(Oe,ke,Re)},p.allocUnsafe=function(Oe){return O(Oe)},p.allocUnsafeSlow=function(Oe){return O(Oe)},p.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==p.prototype},p.compare=function(Oe,ke){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),ze(ke,Uint8Array)&&(ke=p.from(ke,ke.offset,ke.byteLength)),!p.isBuffer(Oe)||!p.isBuffer(ke))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===ke)return 0;for(var Re=Oe.length,We=ke.length,Ue=0,Ze=Math.min(Re,We);UeWe.length?(p.isBuffer(Ze)||(Ze=p.from(Ze)),Ze.copy(We,Ue)):Uint8Array.prototype.set.call(We,Ze,Ue);else{if(!p.isBuffer(Ze))throw new TypeError('"list" argument must be an Array of Buffers');Ze.copy(We,Ue)}Ue+=Ze.length}return We},p.byteLength=M,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var Oe=this.length;if(Oe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ke=0;keke&&(Oe+=" ... "),""},a&&(p.prototype[a]=p.prototype.inspect),p.prototype.compare=function(Oe,ke,Re,We,Ue){if(ze(Oe,Uint8Array)&&(Oe=p.from(Oe,Oe.offset,Oe.byteLength)),!p.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(Oe));if(ke===void 0&&(ke=0),Re===void 0&&(Re=Oe?Oe.length:0),We===void 0&&(We=0),Ue===void 0&&(Ue=this.length),ke<0||Re>Oe.length||We<0||Ue>this.length)throw new RangeError("out of range index");if(We>=Ue&&ke>=Re)return 0;if(We>=Ue)return-1;if(ke>=Re)return 1;if(this===Oe)return 0;for(var Ze=(Ue>>>=0)-(We>>>=0),Ye=(Re>>>=0)-(ke>>>=0),Je=Math.min(Ze,Ye),Me=this.slice(We,Ue),Fe=Oe.slice(ke,Re),je=0;je>>=0,isFinite(Re)?(Re>>>=0,We===void 0&&(We="utf8")):(We=Re,Re=void 0)}var Ue=this.length-ke;if((Re===void 0||Re>Ue)&&(Re=Ue),Oe.length>0&&(Re<0||ke<0)||ke>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Ze=!1;;)switch(We){case"hex":return D(this,Oe,ke,Re);case"utf8":case"utf-8":return k(this,Oe,ke,Re);case"ascii":case"latin1":case"binary":return I(this,Oe,ke,Re);case"base64":return z(this,Oe,ke,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,Oe,ke,Re);default:if(Ze)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Ze=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function X(Oe,ke,Re){var We="";Re=Math.min(Oe.length,Re);for(var Ue=ke;UeWe)&&(Re=We);for(var Ue="",Ze=ke;ZeRe)throw new RangeError("Trying to access beyond buffer length")}function q(Oe,ke,Re,We,Ue,Ze){if(!p.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ke>Ue||keOe.length)throw new RangeError("Index out of range")}function Y(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze,Ze>>=8,Oe[Re++]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Ye>>=8,Oe[Re++]=Ye,Re}function ee(Oe,ke,Re,We,Ue){ye(ke,We,Ue,Oe,Re,7);var Ze=Number(ke&BigInt(4294967295));Oe[Re+7]=Ze,Ze>>=8,Oe[Re+6]=Ze,Ze>>=8,Oe[Re+5]=Ze,Ze>>=8,Oe[Re+4]=Ze;var Ye=Number(ke>>BigInt(32)&BigInt(4294967295));return Oe[Re+3]=Ye,Ye>>=8,Oe[Re+2]=Ye,Ye>>=8,Oe[Re+1]=Ye,Ye>>=8,Oe[Re]=Ye,Re+8}function me(Oe,ke,Re,We,Ue,Ze){if(Re+We>Oe.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("Index out of range")}function pe(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,4),m.write(Oe,ke,Re,We,23,4),Re+4}function se(Oe,ke,Re,We,Ue){return ke=+ke,Re>>>=0,Ue||me(Oe,0,Re,8),m.write(Oe,ke,Re,We,52,8),Re+8}p.prototype.slice=function(Oe,ke){var Re=this.length;(Oe=~~Oe)<0?(Oe+=Re)<0&&(Oe=0):Oe>Re&&(Oe=Re),(ke=ke===void 0?Re:~~ke)<0?(ke+=Re)<0&&(ke=0):ke>Re&&(ke=Re),ke>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe+--ke],Ue=1;ke>0&&(Ue*=256);)We+=this[Oe+--ke]*Ue;return We},p.prototype.readUint8=p.prototype.readUInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),this[Oe]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+16777216*this[Oe+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),16777216*this[Oe]+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},p.prototype.readBigUInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,24),Ue=this[++Oe]+this[++Oe]*Math.pow(2,8)+this[++Oe]*Math.pow(2,16)+Re*Math.pow(2,24);return BigInt(We)+(BigInt(Ue)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=ke*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe],Ue=this[++Oe]*Math.pow(2,24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+Re;return(BigInt(We)<>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=this[Oe],Ue=1,Ze=0;++Ze=(Ue*=128)&&(We-=Math.pow(2,8*ke)),We},p.prototype.readIntBE=function(Oe,ke,Re){Oe>>>=0,ke>>>=0,Re||re(Oe,ke,this.length);for(var We=ke,Ue=1,Ze=this[Oe+--We];We>0&&(Ue*=256);)Ze+=this[Oe+--We]*Ue;return Ze>=(Ue*=128)&&(Ze-=Math.pow(2,8*ke)),Ze},p.prototype.readInt8=function(Oe,ke){return Oe>>>=0,ke||re(Oe,1,this.length),128&this[Oe]?-1*(255-this[Oe]+1):this[Oe]},p.prototype.readInt16LE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe]|this[Oe+1]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt16BE=function(Oe,ke){Oe>>>=0,ke||re(Oe,2,this.length);var Re=this[Oe+1]|this[Oe]<<8;return 32768&Re?4294901760|Re:Re},p.prototype.readInt32LE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},p.prototype.readInt32BE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},p.prototype.readBigInt64LE=Ve(function(Oe){ve(Oe>>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=this[Oe+4]+this[Oe+5]*Math.pow(2,8)+this[Oe+6]*Math.pow(2,16)+(Re<<24);return(BigInt(We)<>>=0,"offset");var ke=this[Oe],Re=this[Oe+7];ke!==void 0&&Re!==void 0||_e(Oe,this.length-8);var We=(ke<<24)+this[++Oe]*Math.pow(2,16)+this[++Oe]*Math.pow(2,8)+this[++Oe];return(BigInt(We)<>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!0,23,4)},p.prototype.readFloatBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,4,this.length),m.read(this,Oe,!1,23,4)},p.prototype.readDoubleLE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!0,52,8)},p.prototype.readDoubleBE=function(Oe,ke){return Oe>>>=0,ke||re(Oe,8,this.length),m.read(this,Oe,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Oe,ke,Re,We){Oe=+Oe,ke>>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=1,Ze=0;for(this[ke]=255&Oe;++Ze>>=0,Re>>>=0,We||q(this,Oe,ke,Re,Math.pow(2,8*Re)-1,0);var Ue=Re-1,Ze=1;for(this[ke+Ue]=255&Oe;--Ue>=0&&(Ze*=256);)this[ke+Ue]=Oe/Ze&255;return ke+Re},p.prototype.writeUint8=p.prototype.writeUInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,255,0),this[ke]=255&Oe,ke+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,65535,0),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke+3]=Oe>>>24,this[ke+2]=Oe>>>16,this[ke+1]=Oe>>>8,this[ke]=255&Oe,ke+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,4294967295,0),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigUInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=0,Ye=1,Je=0;for(this[ke]=255&Oe;++Ze>0)-Je&255;return ke+Re},p.prototype.writeIntBE=function(Oe,ke,Re,We){if(Oe=+Oe,ke>>>=0,!We){var Ue=Math.pow(2,8*Re-1);q(this,Oe,ke,Re,Ue-1,-Ue)}var Ze=Re-1,Ye=1,Je=0;for(this[ke+Ze]=255&Oe;--Ze>=0&&(Ye*=256);)Oe<0&&Je===0&&this[ke+Ze+1]!==0&&(Je=1),this[ke+Ze]=(Oe/Ye>>0)-Je&255;return ke+Re},p.prototype.writeInt8=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[ke]=255&Oe,ke+1},p.prototype.writeInt16LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=255&Oe,this[ke+1]=Oe>>>8,ke+2},p.prototype.writeInt16BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,2,32767,-32768),this[ke]=Oe>>>8,this[ke+1]=255&Oe,ke+2},p.prototype.writeInt32LE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),this[ke]=255&Oe,this[ke+1]=Oe>>>8,this[ke+2]=Oe>>>16,this[ke+3]=Oe>>>24,ke+4},p.prototype.writeInt32BE=function(Oe,ke,Re){return Oe=+Oe,ke>>>=0,Re||q(this,Oe,ke,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[ke]=Oe>>>24,this[ke+1]=Oe>>>16,this[ke+2]=Oe>>>8,this[ke+3]=255&Oe,ke+4},p.prototype.writeBigInt64LE=Ve(function(Oe){return Y(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=Ve(function(Oe){return ee(this,Oe,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeFloatLE=function(Oe,ke,Re){return pe(this,Oe,ke,!0,Re)},p.prototype.writeFloatBE=function(Oe,ke,Re){return pe(this,Oe,ke,!1,Re)},p.prototype.writeDoubleLE=function(Oe,ke,Re){return se(this,Oe,ke,!0,Re)},p.prototype.writeDoubleBE=function(Oe,ke,Re){return se(this,Oe,ke,!1,Re)},p.prototype.copy=function(Oe,ke,Re,We){if(!p.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),We||We===0||(We=this.length),ke>=Oe.length&&(ke=Oe.length),ke||(ke=0),We>0&&We=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),Oe.length-ke>>=0,Re=Re===void 0?this.length:Re>>>0,Oe||(Oe=0),typeof Oe=="number")for(Ze=ke;Ze"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{return!1}}()?Reflect.construct(Fe,je||[],b(Me).constructor):Fe.apply(Me,je))}(this,Ue),Object.defineProperty(i(Je),"message",{value:ke.apply(i(Je),arguments),writable:!0,configurable:!0}),Je.name="".concat(Je.name," [").concat(Oe,"]"),Je.stack,delete Je.name,Je}var Ze,Ye;return function(Je,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");Je.prototype=Object.create(Me&&Me.prototype,{constructor:{value:Je,writable:!0,configurable:!0}}),Object.defineProperty(Je,"prototype",{writable:!1}),Me&&S(Je,Me)}(Ue,We),Ze=Ue,(Ye=[{key:"code",get:function(){return Oe},set:function(Je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Je,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Oe,"]: ").concat(this.message)}}])&&u(Ze.prototype,Ye),Object.defineProperty(Ze,"prototype",{writable:!1}),Ue}(Re)}function de(Oe){for(var ke="",Re=Oe.length,We=Oe[0]==="-"?1:0;Re>=We+4;Re-=3)ke="_".concat(Oe.slice(Re-3,Re)).concat(ke);return"".concat(Oe.slice(0,Re)).concat(ke)}function ye(Oe,ke,Re,We,Ue,Ze){if(Oe>Re||Oe3?ke===0||ke===BigInt(0)?">= 0".concat(Je," and < 2").concat(Je," ** ").concat(8*(Ze+1)).concat(Je):">= -(2".concat(Je," ** ").concat(8*(Ze+1)-1).concat(Je,") and < 2 ** ")+"".concat(8*(Ze+1)-1).concat(Je):">= ".concat(ke).concat(Je," and <= ").concat(Re).concat(Je),new ae.ERR_OUT_OF_RANGE("value",Ye,Oe)}(function(Me,Fe,je){ve(Fe,"offset"),Me[Fe]!==void 0&&Me[Fe+je]!==void 0||_e(Fe,Me.length-(je+1))})(We,Ue,Ze)}function ve(Oe,ke){if(typeof Oe!="number")throw new ae.ERR_INVALID_ARG_TYPE(ke,"number",Oe)}function _e(Oe,ke,Re){throw Math.floor(Oe)!==Oe?(ve(Oe,Re),new ae.ERR_OUT_OF_RANGE(Re||"offset","an integer",Oe)):ke<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE(Re||"offset",">= ".concat(Re?1:0," and <= ").concat(ke),Oe)}ce("ERR_BUFFER_OUT_OF_BOUNDS",function(Oe){return Oe?"".concat(Oe," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),ce("ERR_INVALID_ARG_TYPE",function(Oe,ke){return'The "'.concat(Oe,'" argument must be of type number. Received type ').concat(w(ke))},TypeError),ce("ERR_OUT_OF_RANGE",function(Oe,ke,Re){var We='The value of "'.concat(Oe,'" is out of range.'),Ue=Re;return Number.isInteger(Re)&&Math.abs(Re)>Math.pow(2,32)?Ue=de(String(Re)):typeof Re=="bigint"&&(Ue=String(Re),(Re>Math.pow(BigInt(2),BigInt(32))||Re<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=de(Ue)),Ue+="n"),We+" It must be ".concat(ke,". Received ").concat(Ue)},RangeError);var we=/[^+/0-9A-Za-z-_]/g;function Te(Oe,ke){var Re;ke=ke||1/0;for(var We=Oe.length,Ue=null,Ze=[],Ye=0;Ye55295&&Re<57344){if(!Ue){if(Re>56319){(ke-=3)>-1&&Ze.push(239,191,189);continue}if(Ye+1===We){(ke-=3)>-1&&Ze.push(239,191,189);continue}Ue=Re;continue}if(Re<56320){(ke-=3)>-1&&Ze.push(239,191,189),Ue=Re;continue}Re=65536+(Ue-55296<<10|Re-56320)}else Ue&&(ke-=3)>-1&&Ze.push(239,191,189);if(Ue=null,Re<128){if((ke-=1)<0)break;Ze.push(Re)}else if(Re<2048){if((ke-=2)<0)break;Ze.push(Re>>6|192,63&Re|128)}else if(Re<65536){if((ke-=3)<0)break;Ze.push(Re>>12|224,Re>>6&63|128,63&Re|128)}else{if(!(Re<1114112))throw new Error("Invalid code point");if((ke-=4)<0)break;Ze.push(Re>>18|240,Re>>12&63|128,Re>>6&63|128,63&Re|128)}}return Ze}function Pe(Oe){return y.toByteArray(function(ke){if((ke=(ke=ke.split("=")[0]).trim().replace(we,"")).length<2)return"";for(;ke.length%4!=0;)ke+="=";return ke}(Oe))}function Ie(Oe,ke,Re,We){var Ue;for(Ue=0;Ue=ke.length||Ue>=Oe.length);++Ue)ke[Ue+Re]=Oe[Ue];return Ue}function ze(Oe,ke){return Oe instanceof ke||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===ke.name}function De(Oe){return Oe!=Oe}var Qe=function(){for(var Oe="0123456789abcdef",ke=new Array(256),Re=0;Re<16;++Re)for(var We=16*Re,Ue=0;Ue<16;++Ue)ke[We+Ue]=Oe[Re]+Oe[Ue];return ke}();function Ve(Oe){return typeof BigInt>"u"?$e:Oe}function $e(){throw new Error("BigInt not supported")}},25928:function(d){d.exports=b,d.exports.isMobile=b,d.exports.default=b;var s=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,u=/android|ipad|playbook|silk/i;function b(i){i||(i={});var S=i.ua;if(S||typeof navigator>"u"||(S=navigator.userAgent),S&&S.headers&&typeof S.headers["user-agent"]=="string"&&(S=S.headers["user-agent"]),typeof S!="string")return!1;var w=s.test(S)&&!n.test(S)||!!i.tablet&&u.test(S);return!w&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&S.indexOf("Macintosh")!==-1&&S.indexOf("Safari")!==-1&&(w=!0),w}},48932:function(d,s,n){n.r(s),n.d(s,{sankeyCenter:function(){return h},sankeyCircular:function(){return Q},sankeyJustify:function(){return c},sankeyLeft:function(){return m},sankeyRight:function(){return a}});var u=n(84706),b=n(34712),i=n(10132),S=n(6688),w=n.n(S);function y(Ie){return Ie.target.depth}function m(Ie){return Ie.depth}function a(Ie,ze){return ze-1-Ie.height}function c(Ie,ze){return Ie.sourceLinks.length?Ie.depth:ze-1}function h(Ie){return Ie.targetLinks.length?Ie.depth:Ie.sourceLinks.length?(0,u.SY)(Ie.sourceLinks,y)-1:0}function p(Ie){return function(){return Ie}}var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie};function _(Ie,ze){return C(Ie.source,ze.source)||Ie.index-ze.index}function O(Ie,ze){return C(Ie.target,ze.target)||Ie.index-ze.index}function C(Ie,ze){return Ie.partOfCycle===ze.partOfCycle?Ie.y0-ze.y0:Ie.circularLinkType==="top"||ze.circularLinkType==="bottom"?-1:1}function x(Ie){return Ie.value}function R(Ie){return(Ie.y0+Ie.y1)/2}function M(Ie){return R(Ie.source)}function T(Ie){return R(Ie.target)}function P(Ie){return Ie.index}function A(Ie){return Ie.nodes}function L(Ie){return Ie.links}function D(Ie,ze){var De=Ie.get(ze);if(!De)throw new Error("missing: "+ze);return De}function k(Ie,ze){return ze(Ie)}var I=25,z=10,$=.3;function Q(){var Ie,ze,De=0,Qe=0,Ve=1,$e=1,Oe=24,ke=P,Re=c,We=A,Ue=L,Ze=32,Ye=2,Je=null;function Me(){var je={nodes:We.apply(null,arguments),links:Ue.apply(null,arguments)};(function(ot){ot.nodes.forEach(function(ht,pt){ht.index=pt,ht.sourceLinks=[],ht.targetLinks=[]});var Ge=(0,b.kH)(ot.nodes,ke);ot.links.forEach(function(ht,pt){ht.index=pt;var St=ht.source,Ft=ht.target;(St===void 0?"undefined":v(St))!=="object"&&(St=ht.source=D(Ge,St)),(Ft===void 0?"undefined":v(Ft))!=="object"&&(Ft=ht.target=D(Ge,Ft)),St.sourceLinks.push(ht),Ft.targetLinks.push(ht)})})(je),function(ot,Ge,ht){var pt=0;if(ht===null){for(var St=[],Ft=0;Ft0?Pn+I+z:Pn,bottom:Sn=Sn>0?Sn+I+z:Sn,left:xt=xt>0?xt+I+z:xt,right:vt=vt>0?vt+I+z:vt}}(ot),cn=function(Cn,Pn){var Sn=(0,u.kv)(Cn.nodes,function(Vt){return Vt.column}),vt=Ve-De,xt=$e-Qe,st=vt/(vt+Pn.right+Pn.left),bt=xt/(xt+Pn.top+Pn.bottom);return De=De*st+Pn.left,Ve=Pn.right==0?Ve:Ve*st,Qe=Qe*bt+Pn.top,$e*=bt,Cn.nodes.forEach(function(Vt){Vt.x0=De+Vt.column*((Ve-De-Oe)/Sn),Vt.x1=Vt.x0+Oe}),bt}(ot,Ot);Et*=cn,ot.links.forEach(function(Cn){Cn.width=Cn.value*Et}),pt.forEach(function(Cn){var Pn=Cn.length;Cn.forEach(function(Sn,vt){Sn.depth==pt.length-1&&Pn==1||Sn.depth==0&&Pn==1?(Sn.y0=$e/2-Sn.value*Et,Sn.y1=Sn.y0+Sn.value*Et):Sn.partOfCycle?X(Sn,ln)==0?(Sn.y0=$e/2+vt,Sn.y1=Sn.y0+Sn.value*Et):Sn.circularLinkType=="top"?(Sn.y0=Qe+vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=$e-Sn.value*Et-vt,Sn.y1=Sn.y0+Sn.value*Et):Ot.top==0||Ot.bottom==0?(Sn.y0=($e-Qe)/Pn*vt,Sn.y1=Sn.y0+Sn.value*Et):(Sn.y0=($e-Qe)/2-Pn/2+vt,Sn.y1=Sn.y0+Sn.value*Et)})})})(ht),Yt();for(var St=1,Ft=Ge;Ft>0;--Ft)zt(St*=.99,ht),Yt();function zt(ln,tn){var Et=pt.length;pt.forEach(function(Ot){var cn=Ot.length,Cn=Ot[0].depth;Ot.forEach(function(Pn){var Sn;if((Pn.sourceLinks.length||Pn.targetLinks.length)&&!(Pn.partOfCycle&&X(Pn,tn)>0))if(Cn==0&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else if(Cn==Et-1&&cn==1)Sn=Pn.y1-Pn.y0,Pn.y0=$e/2-Sn/2,Pn.y1=$e/2+Sn/2;else{var vt=(0,u.mo)(Pn.sourceLinks,T),xt=(0,u.mo)(Pn.targetLinks,M),st=((vt&&xt?(vt+xt)/2:vt||xt)-R(Pn))*ln;Pn.y0+=st,Pn.y1+=st}})})}function Yt(){pt.forEach(function(ln){var tn,Et,Ot,cn=Qe,Cn=ln.length;for(ln.sort(C),Ot=0;Ot0&&(tn.y0+=Et,tn.y1+=Et),cn=tn.y1+Ie;if((Et=cn-Ie-$e)>0)for(cn=tn.y0-=Et,tn.y1-=Et,Ot=Cn-2;Ot>=0;--Ot)(Et=(tn=ln[Ot]).y1+Ie-cn)>0&&(tn.y0-=Et,tn.y1-=Et),cn=tn.y0})}}(je,Ze,ke),Fe(je);for(var tt=0;tt<4;tt++)ve(je,$e,ke),_e(je,0,ke),de(je,Qe,$e,ke),ve(je,$e,ke),_e(je,0,ke);return function(ot,Ge,ht){var pt=ot.nodes,St=ot.links,Ft=!1,zt=!1;if(St.forEach(function(tn){tn.circularLinkType=="top"?Ft=!0:tn.circularLinkType=="bottom"&&(zt=!0)}),Ft==0||zt==0){var Yt=(0,u.SY)(pt,function(tn){return tn.y0}),ln=(ht-Ge)/((0,u.kv)(pt,function(tn){return tn.y1})-Yt);pt.forEach(function(tn){var Et=(tn.y1-tn.y0)*ln;tn.y0=(tn.y0-Yt)*ln,tn.y1=tn.y0+Et}),St.forEach(function(tn){tn.y0=(tn.y0-Yt)*ln,tn.y1=(tn.y1-Yt)*ln,tn.width=tn.width*ln})}}(je,Qe,$e),K(je,Ye,$e,ke),je}function Fe(je){je.nodes.forEach(function(tt){tt.sourceLinks.sort(O),tt.targetLinks.sort(_)}),je.nodes.forEach(function(tt){var ot=tt.y0,Ge=ot,ht=tt.y1,pt=ht;tt.sourceLinks.forEach(function(St){St.circular?(St.y0=ht-St.width/2,ht-=St.width):(St.y0=ot+St.width/2,ot+=St.width)}),tt.targetLinks.forEach(function(St){St.circular?(St.y1=pt-St.width/2,pt-=St.width):(St.y1=Ge+St.width/2,Ge+=St.width)})})}return Me.nodeId=function(je){return arguments.length?(ke=typeof je=="function"?je:p(je),Me):ke},Me.nodeAlign=function(je){return arguments.length?(Re=typeof je=="function"?je:p(je),Me):Re},Me.nodeWidth=function(je){return arguments.length?(Oe=+je,Me):Oe},Me.nodePadding=function(je){return arguments.length?(Ie=+je,Me):Ie},Me.nodes=function(je){return arguments.length?(We=typeof je=="function"?je:p(je),Me):We},Me.links=function(je){return arguments.length?(Ue=typeof je=="function"?je:p(je),Me):Ue},Me.size=function(je){return arguments.length?(De=Qe=0,Ve=+je[0],$e=+je[1],Me):[Ve-De,$e-Qe]},Me.extent=function(je){return arguments.length?(De=+je[0][0],Ve=+je[1][0],Qe=+je[0][1],$e=+je[1][1],Me):[[De,Qe],[Ve,$e]]},Me.iterations=function(je){return arguments.length?(Ze=+je,Me):Ze},Me.circularLinkGap=function(je){return arguments.length?(Ye=+je,Me):Ye},Me.nodePaddingRatio=function(je){return arguments.length?(ze=+je,Me):ze},Me.sortNodes=function(je){return arguments.length?(Je=je,Me):Je},Me.update=function(je){return j(je,ke),Fe(je),je.links.forEach(function(tt){tt.circular&&(tt.circularLinkType=tt.y0+tt.y1<$e?"top":"bottom",tt.source.circularLinkType=tt.circularLinkType,tt.target.circularLinkType=tt.circularLinkType)}),ve(je,$e,ke,!1),_e(je,0,ke),K(je,Ye,$e,ke),je},Me}function j(Ie,ze){var De=0,Qe=0;Ie.links.forEach(function(Ve){Ve.circular&&(Ve.source.circularLinkType||Ve.target.circularLinkType?Ve.circularLinkType=Ve.source.circularLinkType?Ve.source.circularLinkType:Ve.target.circularLinkType:Ve.circularLinkType=De1||Ve>1)}function Z(Ie,ze,De){return Ie.sort(re),Ie.forEach(function(Qe,Ve){var $e,Oe,ke=0;if(Pe(Qe,De)&&te(Qe))Qe.circularPathData.verticalBuffer=ke+Qe.width/2;else{for(var Re=0;ReOe.source.column)){var We=Ie[Re].circularPathData.verticalBuffer+Ie[Re].width/2+ze;ke=We>ke?We:ke}Qe.circularPathData.verticalBuffer=ke+Qe.width/2}}),Ie}function K(Ie,ze,De,Qe){var Ve=(0,u.SY)(Ie.links,function($e){return $e.source.y0});Ie.links.forEach(function($e){$e.circular&&($e.circularPathData={})}),Z(Ie.links.filter(function($e){return $e.circularLinkType=="top"}),ze,Qe),Z(Ie.links.filter(function($e){return $e.circularLinkType=="bottom"}),ze,Qe),Ie.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+z,$e.circularPathData.leftNodeBuffer=5,$e.circularPathData.rightNodeBuffer=5,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,Pe($e,Qe)&&te($e))$e.circularPathData.leftSmallArcRadius=z+$e.width/2,$e.circularPathData.leftLargeArcRadius=z+$e.width/2,$e.circularPathData.rightSmallArcRadius=z+$e.width/2,$e.circularPathData.rightLargeArcRadius=z+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Oe=$e.source.column,ke=$e.circularLinkType,Re=Ie.links.filter(function(Ze){return Ze.source.column==Oe&&Ze.circularLinkType==ke});$e.circularLinkType=="bottom"?Re.sort(Y):Re.sort(q);var We=0;Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=z+$e.width/2+We,$e.circularPathData.leftLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),Oe=$e.target.column,Re=Ie.links.filter(function(Ze){return Ze.target.column==Oe&&Ze.circularLinkType==ke}),$e.circularLinkType=="bottom"?Re.sort(me):Re.sort(ee),We=0,Re.forEach(function(Ze,Ye){Ze.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=z+$e.width/2+We,$e.circularPathData.rightLargeArcRadius=z+$e.width/2+Ye*ze+We),We+=Ze.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(De,$e.source.y1,$e.target.y1)+I+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=Ve-I-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=function(Ze){return Ze.circularLinkType=="top"?"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 0 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY-Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 0 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 0 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY-Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 0 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY:"M"+Ze.circularPathData.sourceX+" "+Ze.circularPathData.sourceY+" L"+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.sourceY+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftSmallArcRadius+" 0 0 1 "+Ze.circularPathData.leftFullExtent+" "+(Ze.circularPathData.sourceY+Ze.circularPathData.leftSmallArcRadius)+" L"+Ze.circularPathData.leftFullExtent+" "+Ze.circularPathData.verticalLeftInnerExtent+" A"+Ze.circularPathData.leftLargeArcRadius+" "+Ze.circularPathData.leftLargeArcRadius+" 0 0 1 "+Ze.circularPathData.leftInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" L"+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.verticalFullExtent+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightLargeArcRadius+" 0 0 1 "+Ze.circularPathData.rightFullExtent+" "+Ze.circularPathData.verticalRightInnerExtent+" L"+Ze.circularPathData.rightFullExtent+" "+(Ze.circularPathData.targetY+Ze.circularPathData.rightSmallArcRadius)+" A"+Ze.circularPathData.rightLargeArcRadius+" "+Ze.circularPathData.rightSmallArcRadius+" 0 0 1 "+Ze.circularPathData.rightInnerExtent+" "+Ze.circularPathData.targetY+" L"+Ze.circularPathData.targetX+" "+Ze.circularPathData.targetY}($e);else{var Ue=(0,i.ak)().source(function(Ze){return[Ze.source.x0+(Ze.source.x1-Ze.source.x0),Ze.y0]}).target(function(Ze){return[Ze.target.x0,Ze.y1]});$e.path=Ue($e)}})}function re(Ie,ze){return pe(Ie)==pe(ze)?Ie.circularLinkType=="bottom"?Y(Ie,ze):q(Ie,ze):pe(ze)-pe(Ie)}function q(Ie,ze){return Ie.y0-ze.y0}function Y(Ie,ze){return ze.y0-Ie.y0}function ee(Ie,ze){return Ie.y1-ze.y1}function me(Ie,ze){return ze.y1-Ie.y1}function pe(Ie){return Ie.target.column-Ie.source.column}function se(Ie){return Ie.target.x0-Ie.source.x1}function ae(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1+Qe:Ie.y1-Qe}function ce(Ie,ze){var De=U(Ie),Qe=se(ze)/Math.tan(De);return Te(Ie)=="up"?Ie.y1-Qe:Ie.y1+Qe}function de(Ie,ze,De,Qe){Ie.links.forEach(function(Ve){if(!Ve.circular&&Ve.target.column-Ve.source.column>1){var $e=Ve.source.column+1,Oe=Ve.target.column-1,ke=1,Re=Oe-$e+1;for(ke=1;$e<=Oe;$e++,ke++)Ie.nodes.forEach(function(We){if(We.column==$e){var Ue,Ze=ke/(Re+1),Ye=Math.pow(1-Ze,3),Je=3*Ze*Math.pow(1-Ze,2),Me=3*Math.pow(Ze,2)*(1-Ze),Fe=Math.pow(Ze,3),je=Ye*Ve.y0+Je*Ve.y0+Me*Ve.y1+Fe*Ve.y1,tt=je-Ve.width/2,ot=je+Ve.width/2;tt>We.y0&&ttpt.y0&&ht.y0pt.y0&&ht.y1pt.y1)&&ye(Ge,Ue,ze,De)})):(ot>We.y0&&otWe.y1)&&(Ue=ot-We.y0+10,We=ye(We,Ue,ze,De),Ie.nodes.forEach(function(Ge){k(Ge,Qe)!=k(We,Qe)&&Ge.column==We.column&&Ge.y0We.y1&&ye(Ge,Ue,ze,De)}))}})}})}function ye(Ie,ze,De,Qe){return Ie.y0+ze>=De&&Ie.y1+ze<=Qe&&(Ie.y0=Ie.y0+ze,Ie.y1=Ie.y1+ze,Ie.targetLinks.forEach(function(Ve){Ve.y1=Ve.y1+ze}),Ie.sourceLinks.forEach(function(Ve){Ve.y0=Ve.y0+ze})),Ie}function ve(Ie,ze,De,Qe){Ie.nodes.forEach(function(Ve){Qe&&Ve.y+(Ve.y1-Ve.y0)>ze&&(Ve.y=Ve.y-(Ve.y+(Ve.y1-Ve.y0)-ze));var $e=Ie.links.filter(function(Re){return k(Re.source,De)==k(Ve,De)}),Oe=$e.length;Oe>1&&$e.sort(function(Re,We){if(!Re.circular&&!We.circular){if(Re.target.column==We.target.column||!we(Re,We))return Re.y1-We.y1;if(Re.target.column>We.target.column){var Ue=ce(We,Re);return Re.y1-Ue}if(We.target.column>Re.target.column)return ce(Re,We)-We.y1}return Re.circular&&!We.circular?Re.circularLinkType=="top"?-1:1:We.circular&&!Re.circular?We.circularLinkType=="top"?1:-1:Re.circular&&We.circular?Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="top"?Re.target.column===We.target.column?Re.target.y1-We.target.y1:We.target.column-Re.target.column:Re.circularLinkType===We.circularLinkType&&Re.circularLinkType=="bottom"?Re.target.column===We.target.column?We.target.y1-Re.target.y1:Re.target.column-We.target.column:Re.circularLinkType=="top"?-1:1:void 0});var ke=Ve.y0;$e.forEach(function(Re){Re.y0=ke+Re.width/2,ke+=Re.width}),$e.forEach(function(Re,We){if(Re.circularLinkType=="bottom"){for(var Ue=We+1,Ze=0;Ue1&&Ve.sort(function(ke,Re){if(!ke.circular&&!Re.circular){if(ke.source.column==Re.source.column||!we(ke,Re))return ke.y0-Re.y0;if(Re.source.column0?"up":"down"}function Pe(Ie,ze){return k(Ie.source,ze)==k(Ie.target,ze)}},26800:function(d,s,n){n.r(s),n.d(s,{sankey:function(){return P},sankeyCenter:function(){return m},sankeyJustify:function(){return y},sankeyLeft:function(){return S},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var u=n(84706),b=n(34712);function i(I){return I.target.depth}function S(I){return I.depth}function w(I,z){return z-1-I.height}function y(I,z){return I.sourceLinks.length?I.depth:z-1}function m(I){return I.targetLinks.length?I.depth:I.sourceLinks.length?(0,u.SY)(I.sourceLinks,i)-1:0}function a(I){return function(){return I}}function c(I,z){return p(I.source,z.source)||I.index-z.index}function h(I,z){return p(I.target,z.target)||I.index-z.index}function p(I,z){return I.y0-z.y0}function v(I){return I.value}function _(I){return(I.y0+I.y1)/2}function O(I){return _(I.source)*I.value}function C(I){return _(I.target)*I.value}function x(I){return I.index}function R(I){return I.nodes}function M(I){return I.links}function T(I,z){var $=I.get(z);if(!$)throw new Error("missing: "+z);return $}function P(){var I=0,z=0,$=1,Q=1,j=24,U=8,X=x,te=y,Z=R,K=M,re=32;function q(){var ee={nodes:Z.apply(null,arguments),links:K.apply(null,arguments)};return function(me){me.nodes.forEach(function(se,ae){se.index=ae,se.sourceLinks=[],se.targetLinks=[]});var pe=(0,b.kH)(me.nodes,X);me.links.forEach(function(se,ae){se.index=ae;var ce=se.source,de=se.target;typeof ce!="object"&&(ce=se.source=T(pe,ce)),typeof de!="object"&&(de=se.target=T(pe,de)),ce.sourceLinks.push(se),de.targetLinks.push(se)})}(ee),function(me){me.nodes.forEach(function(pe){pe.value=Math.max((0,u.oh)(pe.sourceLinks,v),(0,u.oh)(pe.targetLinks,v))})}(ee),function(me){var pe,se,ae;for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.depth=ae,de.sourceLinks.forEach(function(ye){se.indexOf(ye.target)<0&&se.push(ye.target)})});for(pe=me.nodes,se=[],ae=0;pe.length;++ae,pe=se,se=[])pe.forEach(function(de){de.height=ae,de.targetLinks.forEach(function(ye){se.indexOf(ye.source)<0&&se.push(ye.source)})});var ce=($-I-j)/(ae-1);me.nodes.forEach(function(de){de.x1=(de.x0=I+Math.max(0,Math.min(ae-1,Math.floor(te.call(null,de,ae))))*ce)+j})}(ee),function(me){var pe=(0,b.UJ)().key(function(ve){return ve.x0}).sortKeys(u.XE).entries(me.nodes).map(function(ve){return ve.values});(function(){var ve=(0,u.kv)(pe,function(Te){return Te.length}),_e=.6666666666666666*(Q-z)/(ve-1);U>_e&&(U=_e);var we=(0,u.SY)(pe,function(Te){return(Q-z-(Te.length-1)*U)/(0,u.oh)(Te,v)});pe.forEach(function(Te){Te.forEach(function(Pe,Ie){Pe.y1=(Pe.y0=Ie)+Pe.value*we})}),me.links.forEach(function(Te){Te.width=Te.value*we})})(),ye();for(var se=1,ae=re;ae>0;--ae)de(se*=.99),ye(),ce(se),ye();function ce(ve){pe.forEach(function(_e){_e.forEach(function(we){if(we.targetLinks.length){var Te=((0,u.oh)(we.targetLinks,O)/(0,u.oh)(we.targetLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function de(ve){pe.slice().reverse().forEach(function(_e){_e.forEach(function(we){if(we.sourceLinks.length){var Te=((0,u.oh)(we.sourceLinks,C)/(0,u.oh)(we.sourceLinks,v)-_(we))*ve;we.y0+=Te,we.y1+=Te}})})}function ye(){pe.forEach(function(ve){var _e,we,Te,Pe=z,Ie=ve.length;for(ve.sort(p),Te=0;Te0&&(_e.y0+=we,_e.y1+=we),Pe=_e.y1+U;if((we=Pe-U-Q)>0)for(Pe=_e.y0-=we,_e.y1-=we,Te=Ie-2;Te>=0;--Te)(we=(_e=ve[Te]).y1+U-Pe)>0&&(_e.y0-=we,_e.y1-=we),Pe=_e.y0})}}(ee),Y(ee),ee}function Y(ee){ee.nodes.forEach(function(me){me.sourceLinks.sort(h),me.targetLinks.sort(c)}),ee.nodes.forEach(function(me){var pe=me.y0,se=pe;me.sourceLinks.forEach(function(ae){ae.y0=pe+ae.width/2,pe+=ae.width}),me.targetLinks.forEach(function(ae){ae.y1=se+ae.width/2,se+=ae.width})})}return q.update=function(ee){return Y(ee),ee},q.nodeId=function(ee){return arguments.length?(X=typeof ee=="function"?ee:a(ee),q):X},q.nodeAlign=function(ee){return arguments.length?(te=typeof ee=="function"?ee:a(ee),q):te},q.nodeWidth=function(ee){return arguments.length?(j=+ee,q):j},q.nodePadding=function(ee){return arguments.length?(U=+ee,q):U},q.nodes=function(ee){return arguments.length?(Z=typeof ee=="function"?ee:a(ee),q):Z},q.links=function(ee){return arguments.length?(K=typeof ee=="function"?ee:a(ee),q):K},q.size=function(ee){return arguments.length?(I=z=0,$=+ee[0],Q=+ee[1],q):[$-I,Q-z]},q.extent=function(ee){return arguments.length?(I=+ee[0][0],$=+ee[1][0],z=+ee[0][1],Q=+ee[1][1],q):[[I,z],[$,Q]]},q.iterations=function(ee){return arguments.length?(re=+ee,q):re},q}var A=n(10132);function L(I){return[I.source.x1,I.y0]}function D(I){return[I.target.x0,I.y1]}function k(){return(0,A.ak)().source(L).target(D)}},33428:function(d,s,n){var u,b;(function(){var i={version:"3.8.0"},S=[].slice,w=function(V){return S.call(V)},y=self.document;function m(V){return V&&(V.ownerDocument||V.document||V).documentElement}function a(V){return V&&(V.ownerDocument&&V.ownerDocument.defaultView||V.document&&V||V.defaultView)}if(y)try{w(y.documentElement.childNodes)[0].nodeType}catch{w=function(ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=ie[ge];return xe}}if(Date.now||(Date.now=function(){return+new Date}),y)try{y.createElement("DIV").style.setProperty("opacity",0,"")}catch{var c=this.Element.prototype,h=c.setAttribute,p=c.setAttributeNS,v=this.CSSStyleDeclaration.prototype,_=v.setProperty;c.setAttribute=function(ie,ge){h.call(this,ie,ge+"")},c.setAttributeNS=function(ie,ge,xe){p.call(this,ie,ge,xe+"")},v.setProperty=function(ie,ge,xe){_.call(this,ie,ge+"",xe)}}function O(V,ie){return Vie?1:V>=ie?0:NaN}function C(V){return V===null?NaN:+V}function x(V){return!isNaN(V)}function R(V){return{left:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)<0?xe=Ne+1:Ee=Ne}return xe},right:function(ie,ge,xe,Ee){for(arguments.length<3&&(xe=0),arguments.length<4&&(Ee=ie.length);xe>>1;V(ie[Ne],ge)>0?Ee=Ne:xe=Ne+1}return xe}}}i.ascending=O,i.descending=function(V,ie){return ieV?1:ie>=V?0:NaN},i.min=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eexe&&(ge=xe)}return ge},i.max=function(V,ie){var ge,xe,Ee=-1,Ne=V.length;if(arguments.length===1){for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}else{for(;++Ee=xe){ge=xe;break}for(;++Eege&&(ge=xe)}return ge},i.extent=function(V,ie){var ge,xe,Ee,Ne=-1,et=V.length;if(arguments.length===1){for(;++Ne=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee=xe){ge=Ee=xe;break}for(;++Nexe&&(ge=xe),Ee1)return et/(dt-1)},i.deviation=function(){var V=i.variance.apply(this,arguments);return V&&Math.sqrt(V)};var M=R(O);function T(V){return V.length}i.bisectLeft=M.left,i.bisect=i.bisectRight=M.right,i.bisector=function(V){return R(V.length===1?function(ie,ge){return O(V(ie),ge)}:V)},i.shuffle=function(V,ie,ge){(Ne=arguments.length)<3&&(ge=V.length,Ne<2&&(ie=0));for(var xe,Ee,Ne=ge-ie;Ne;)Ee=Math.random()*Ne--|0,xe=V[Ne+ie],V[Ne+ie]=V[Ee+ie],V[Ee+ie]=xe;return V},i.permute=function(V,ie){for(var ge=ie.length,xe=new Array(ge);ge--;)xe[ge]=V[ie[ge]];return xe},i.pairs=function(V){for(var ie=0,ge=V.length-1,xe=V[0],Ee=new Array(ge<0?0:ge);ie=0;)for(ie=(xe=V[Ee]).length;--ie>=0;)ge[--et]=xe[ie];return ge};var P=Math.abs;function A(V,ie){for(var ge in ie)Object.defineProperty(V.prototype,ge,{value:ie[ge],enumerable:!1})}function L(){this._=Object.create(null)}i.range=function(V,ie,ge){if(arguments.length<3&&(ge=1,arguments.length<2&&(ie=V,V=0)),(ie-V)/ge==1/0)throw new Error("infinite range");var xe,Ee=[],Ne=function(rt){for(var dt=1;rt*dt%1;)dt*=10;return dt}(P(ge)),et=-1;if(V*=Ne,ie*=Ne,(ge*=Ne)<0)for(;(xe=V+ge*++et)>ie;)Ee.push(xe/Ne);else for(;(xe=V+ge*++et)=xe.length)return ie?ie.call(ge,dt):V?dt.sort(V):dt;for(var Rt,Mt,Xt,dn,bn=-1,vn=dt.length,Ln=xe[gt++],gn=new L;++bn=xe.length)return rt;var gt=[],Rt=Ee[dt++];return rt.forEach(function(Mt,Xt){gt.push({key:Mt,values:et(Xt,dt)})}),Rt?gt.sort(function(Mt,Xt){return Rt(Mt.key,Xt.key)}):gt}return ge.map=function(rt,dt){return Ne(dt,rt,0)},ge.entries=function(rt){return et(Ne(i.map,rt,0),0)},ge.key=function(rt){return xe.push(rt),ge},ge.sortKeys=function(rt){return Ee[xe.length-1]=rt,ge},ge.sortValues=function(rt){return V=rt,ge},ge.rollup=function(rt){return ie=rt,ge},ge},i.set=function(V){var ie=new te;if(V)for(var ge=0,xe=V.length;ge=0&&(xe=V.slice(ge+1),V=V.slice(0,ge)),V)return arguments.length<2?this[V].on(xe):this[V].on(xe,ie);if(arguments.length===2){if(ie==null)for(V in this)this.hasOwnProperty(V)&&this[V].on(xe,null);return this}},i.event=null,i.requote=function(V){return V.replace(ce,"\\$&")};var ce=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,de={}.__proto__?function(V,ie){V.__proto__=ie}:function(V,ie){for(var ge in ie)V[ge]=ie[ge]};function ye(V){return de(V,Te),V}var ve=function(V,ie){return ie.querySelector(V)},_e=function(V,ie){return ie.querySelectorAll(V)},we=function(V,ie){var ge=V.matches||V[re(V,"matchesSelector")];return we=function(xe,Ee){return ge.call(xe,Ee)},we(V,ie)};typeof Sizzle=="function"&&(ve=function(V,ie){return Sizzle(V,ie)[0]||null},_e=Sizzle,we=Sizzle.matchesSelector),i.selection=function(){return i.select(y.documentElement)};var Te=i.selection.prototype=[];function Pe(V){return typeof V=="function"?V:function(){return ve(V,this)}}function Ie(V){return typeof V=="function"?V:function(){return _e(V,this)}}Te.select=function(V){var ie,ge,xe,Ee,Ne=[];V=Pe(V);for(var et=-1,rt=this.length;++et=0&&(ge=V.slice(0,ie))!=="xmlns"&&(V=V.slice(ie+1)),De.hasOwnProperty(ge)?{space:De[ge],local:V}:V}},Te.attr=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node();return(V=i.ns.qualify(V)).local?ge.getAttributeNS(V.space,V.local):ge.getAttribute(V)}for(ie in V)this.each(Qe(ie,V[ie]));return this}return this.each(Qe(V,ie))},Te.classed=function(V,ie){if(arguments.length<2){if(typeof V=="string"){var ge=this.node(),xe=(V=Oe(V)).length,Ee=-1;if(ie=ge.classList){for(;++Ee=0;)(ge=xe[Ee])&&(Ne&&Ne!==ge.nextSibling&&Ne.parentNode.insertBefore(ge,Ne),Ne=ge);return this},Te.sort=function(V){V=Fe.apply(this,arguments);for(var ie=-1,ge=this.length;++ie0&&(V=V.slice(0,Ee));var et=ht.get(V);function rt(){var dt=this[xe];dt&&(this.removeEventListener(V,dt,dt.$),delete this[xe])}return et&&(V=et,Ne=St),Ee?ie?function(){var dt=Ne(ie,w(arguments));rt.call(this),this.addEventListener(V,this[xe]=dt,dt.$=ge),dt._=ie}:rt:ie?Y:function(){var dt,gt=new RegExp("^__on([^.]+)"+i.requote(V)+"$");for(var Rt in this)if(dt=Rt.match(gt)){var Mt=this[Rt];this.removeEventListener(dt[1],Mt,Mt.$),delete this[Rt]}}}i.selection.enter=tt,i.selection.enter.prototype=ot,ot.append=Te.append,ot.empty=Te.empty,ot.node=Te.node,ot.call=Te.call,ot.size=Te.size,ot.select=function(V){for(var ie,ge,xe,Ee,Ne,et=[],rt=-1,dt=this.length;++rt=xe&&(xe=et+1);!(dt=gt[xe])&&++xe1?vt:V<-1?-vt:Math.asin(V)}function Vt(V){return((V=Math.exp(V))+1/V)/2}var Dt=Math.SQRT2;i.interpolateZoom=function(V,ie){var ge,xe,Ee=V[0],Ne=V[1],et=V[2],rt=ie[0],dt=ie[1],gt=ie[2],Rt=rt-Ee,Mt=dt-Ne,Xt=Rt*Rt+Mt*Mt;if(Xt0&&(Ho=Ho.transition().duration(Xt)),Ho.call(pn.event)}function ro(){et&&et.domain(Ne.range().map(function(Ho){return(Ho-gt.x)/gt.k}).map(Ne.invert)),dt&&dt.domain(rt.range().map(function(Ho){return(Ho-gt.y)/gt.k}).map(rt.invert))}function po(Ho){dn++||Ho({type:"zoomstart"})}function Wo(Ho){ro(),Ho({type:"zoom",scale:gt.k,translate:[gt.x,gt.y]})}function si(Ho){--dn||(Ho({type:"zoomend"}),ie=null)}function Bo(){var Ho=this,jo=Jn.of(Ho,arguments),Yi=0,ai=i.select(a(Ho)).on(vn,function(){Yi=1,Pr(i.mouse(Ho),Hi),Wo(jo)}).on(Ln,function(){ai.on(vn,null).on(Ln,null),Ai(Yi),si(jo)}),Hi=In(i.mouse(Ho)),Ai=Yt(Ho);Pl.call(Ho),po(jo)}function Go(){var Ho,jo=this,Yi=Jn.of(jo,arguments),ai={},Hi=0,Ai=".zoom-"+i.event.changedTouches[0].identifier,es="touchmove"+Ai,Ar="touchend"+Ai,ns=[],$s=i.select(jo),Ts=Yt(jo);function rl(){var mt=i.touches(jo);return Ho=gt.k,mt.forEach(function(Tt){Tt.identifier in ai&&(ai[Tt.identifier]=In(Tt))}),mt}function Hs(){var mt=i.event.target;i.select(mt).on(es,ys).on(Ar,Yu),ns.push(mt);for(var Tt=i.event.changedTouches,xn=0,Nn=Tt.length;xn1){No=yr[0];var ui=yr[1],ga=No[0]-ui[0],Sa=No[1]-ui[1];Hi=ga*ga+Sa*Sa}}function ys(){var mt,Tt,xn,Nn,yr=i.touches(jo);Pl.call(jo);for(var so=0,No=yr.length;so360?rt-=360:rt<0&&(rt+=360),rt<60?xe+(Ee-xe)*rt/60:rt<180?Ee:rt<240?xe+(Ee-xe)*(240-rt)/60:xe}(et))}return V=isNaN(V)?0:(V%=360)<0?V+360:V,ie=isNaN(ie)||ie<0?0:ie>1?1:ie,xe=2*(ge=ge<0?0:ge>1?1:ge)-(Ee=ge<=.5?ge*(1+ie):ge+ie-ge*ie),new $r(Ne(V+120),Ne(V),Ne(V-120))}function Zt(V,ie,ge){return this instanceof Zt?(this.h=+V,this.c=+ie,void(this.l=+ge)):arguments.length<2?V instanceof Zt?new Zt(V.h,V.c,V.l):function(xe,Ee,Ne){return xe>0?new Zt(Math.atan2(Ne,Ee)*st,Math.sqrt(Ee*Ee+Ne*Ne),xe):new Zt(NaN,NaN,xe)}(V instanceof rn?V.l:(V=Vr((V=i.rgb(V)).r,V.g,V.b)).l,V.a,V.b):new Zt(V,ie,ge)}en.brighter=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,this.l/V)},en.darker=function(V){return V=Math.pow(.7,arguments.length?V:1),new qt(this.h,this.s,V*this.l)},en.rgb=function(){return Jt(this.h,this.s,this.l)},i.hcl=Zt;var Nt=Zt.prototype=new _t;function sn(V,ie,ge){return isNaN(V)&&(V=0),isNaN(ie)&&(ie=0),new rn(ge,Math.cos(V*=xt)*ie,Math.sin(V)*ie)}function rn(V,ie,ge){return this instanceof rn?(this.l=+V,this.a=+ie,void(this.b=+ge)):arguments.length<2?V instanceof rn?new rn(V.l,V.a,V.b):V instanceof Zt?sn(V.h,V.c,V.l):Vr((V=$r(V)).r,V.g,V.b):new rn(V,ie,ge)}Nt.brighter=function(V){return new Zt(this.h,this.c,Math.min(100,this.l+_n*(arguments.length?V:1)))},Nt.darker=function(V){return new Zt(this.h,this.c,Math.max(0,this.l-_n*(arguments.length?V:1)))},Nt.rgb=function(){return sn(this.h,this.c,this.l).rgb()},i.lab=rn;var _n=18,wn=.95047,An=1,Kn=1.08883,fr=rn.prototype=new _t;function Un(V,ie,ge){var xe=(V+16)/116,Ee=xe+ie/500,Ne=xe-ge/200;return new $r(Br(3.2404542*(Ee=Zn(Ee)*wn)-1.5371385*(xe=Zn(xe)*An)-.4985314*(Ne=Zn(Ne)*Kn)),Br(-.969266*Ee+1.8760108*xe+.041556*Ne),Br(.0556434*Ee-.2040259*xe+1.0572252*Ne))}function Zn(V){return V>.206893034?V*V*V:(V-.13793103448275862)/7.787037}function tr(V){return V>.008856?Math.pow(V,.3333333333333333):7.787037*V+.13793103448275862}function Br(V){return Math.round(255*(V<=.00304?12.92*V:1.055*Math.pow(V,.4166666666666667)-.055))}function $r(V,ie,ge){return this instanceof $r?(this.r=~~V,this.g=~~ie,void(this.b=~~ge)):arguments.length<2?V instanceof $r?new $r(V.r,V.g,V.b):lr(""+V,$r,Jt):new $r(V,ie,ge)}function vr(V){return new $r(V>>16,V>>8&255,255&V)}function qn(V){return vr(V)+""}fr.brighter=function(V){return new rn(Math.min(100,this.l+_n*(arguments.length?V:1)),this.a,this.b)},fr.darker=function(V){return new rn(Math.max(0,this.l-_n*(arguments.length?V:1)),this.a,this.b)},fr.rgb=function(){return Un(this.l,this.a,this.b)},i.rgb=$r;var gr=$r.prototype=new _t;function sr(V){return V<16?"0"+Math.max(0,V).toString(16):Math.min(255,V).toString(16)}function lr(V,ie,ge){var xe,Ee,Ne,et=0,rt=0,dt=0;if(xe=/([a-z]+)\((.*)\)/.exec(V=V.toLowerCase()))switch(Ee=xe[2].split(","),xe[1]){case"hsl":return ge(parseFloat(Ee[0]),parseFloat(Ee[1])/100,parseFloat(Ee[2])/100);case"rgb":return ie(Jr(Ee[0]),Jr(Ee[1]),Jr(Ee[2]))}return(Ne=Yr.get(V))?ie(Ne.r,Ne.g,Ne.b):(V==null||V.charAt(0)!=="#"||isNaN(Ne=parseInt(V.slice(1),16))||(V.length===4?(et=(3840&Ne)>>4,et|=et>>4,rt=240&Ne,rt|=rt>>4,dt=15&Ne,dt|=dt<<4):V.length===7&&(et=(16711680&Ne)>>16,rt=(65280&Ne)>>8,dt=255&Ne)),ie(et,rt,dt))}function zr(V,ie,ge){var xe,Ee,Ne=Math.min(V/=255,ie/=255,ge/=255),et=Math.max(V,ie,ge),rt=et-Ne,dt=(et+Ne)/2;return rt?(Ee=dt<.5?rt/(et+Ne):rt/(2-et-Ne),xe=V==et?(ie-ge)/rt+(ie0&&dt<1?0:xe),new qt(xe,Ee,dt)}function Vr(V,ie,ge){var xe=tr((.4124564*(V=eo(V))+.3575761*(ie=eo(ie))+.1804375*(ge=eo(ge)))/wn),Ee=tr((.2126729*V+.7151522*ie+.072175*ge)/An);return rn(116*Ee-16,500*(xe-Ee),200*(Ee-tr((.0193339*V+.119192*ie+.9503041*ge)/Kn)))}function eo(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function Jr(V){var ie=parseFloat(V);return V.charAt(V.length-1)==="%"?Math.round(2.55*ie):ie}gr.brighter=function(V){V=Math.pow(.7,arguments.length?V:1);var ie=this.r,ge=this.g,xe=this.b,Ee=30;return ie||ge||xe?(ie&&ie=200&&Mt<300||Mt===304){try{Rt=ge.call(Ee,rt)}catch(Xt){return void Ne.error.call(Ee,Xt)}Ne.load.call(Ee,Rt)}else Ne.error.call(Ee,rt)}return self.XDomainRequest&&!("withCredentials"in rt)&&/^(http(s)?:)?\/\//.test(V)&&(rt=new XDomainRequest),"onload"in rt?rt.onload=rt.onerror=gt:rt.onreadystatechange=function(){rt.readyState>3&>()},rt.onprogress=function(Rt){var Mt=i.event;i.event=Rt;try{Ne.progress.call(Ee,rt)}finally{i.event=Mt}},Ee.header=function(Rt,Mt){return Rt=(Rt+"").toLowerCase(),arguments.length<2?et[Rt]:(Mt==null?delete et[Rt]:et[Rt]=Mt+"",Ee)},Ee.mimeType=function(Rt){return arguments.length?(ie=Rt==null?null:Rt+"",Ee):ie},Ee.responseType=function(Rt){return arguments.length?(dt=Rt,Ee):dt},Ee.response=function(Rt){return ge=Rt,Ee},["get","post"].forEach(function(Rt){Ee[Rt]=function(){return Ee.send.apply(Ee,[Rt].concat(w(arguments)))}}),Ee.send=function(Rt,Mt,Xt){if(arguments.length===2&&typeof Mt=="function"&&(Xt=Mt,Mt=null),rt.open(Rt,V,!0),ie==null||"accept"in et||(et.accept=ie+",*/*"),rt.setRequestHeader)for(var dn in et)rt.setRequestHeader(dn,et[dn]);return ie!=null&&rt.overrideMimeType&&rt.overrideMimeType(ie),dt!=null&&(rt.responseType=dt),Xt!=null&&Ee.on("error",Xt).on("load",function(bn){Xt(null,bn)}),Ne.beforesend.call(Ee,rt),rt.send(Mt??null),Ee},Ee.abort=function(){return rt.abort(),Ee},i.rebind(Ee,Ne,"on"),xe==null?Ee:Ee.get(function(Rt){return Rt.length===1?function(Mt,Xt){Rt(Mt==null?Xt:null)}:Rt}(xe))}Yr.forEach(function(V,ie){Yr.set(V,vr(ie))}),i.functor=to,i.xhr=co(Z),i.dsv=function(V,ie){var ge=new RegExp('["'+V+` ]`),xe=V.charCodeAt(0);function Ee(gt,Rt,Mt){arguments.length<3&&(Mt=Rt,Rt=null);var Xt=Fo(gt,ie,Rt==null?Ne:et(Rt),Mt);return Xt.row=function(dn){return arguments.length?Xt.response((Rt=dn)==null?Ne:et(dn)):Rt},Xt}function Ne(gt){return Ee.parse(gt.responseText)}function et(gt){return function(Rt){return Ee.parse(Rt.responseText,gt)}}function rt(gt){return gt.map(dt).join(V)}function dt(gt){return ge.test(gt)?'"'+gt.replace(/\"/g,'""')+'"':gt}return Ee.parse=function(gt,Rt){var Mt;return Ee.parseRows(gt,function(Xt,dn){if(Mt)return Mt(Xt,dn-1);var bn=function(vn){for(var Ln={},gn=Xt.length,Jn=0;Jn=Ln)return bn;if(Xt)return Xt=!1,dn;var Ir=gn;if(gt.charCodeAt(Ir)===34){for(var Pr=Ir;Pr++24?(isFinite(ie)&&(clearTimeout(pi),pi=setTimeout(Dr,ie)),Mo=0):(Mo=1,Hn(Dr))}function Sr(){for(var V=Date.now(),ie=_o;ie;)V>=ie.t&&ie.c(V-ie.t)&&(ie.c=null),ie=ie.n;return V}function Zr(){for(var V,ie=_o,ge=1/0;ie;)ie.c?(ie.t1&&(ie=V[Ne[et-2]],ge=V[Ne[et-1]],xe=V[rt],(ge[0]-ie[0])*(xe[1]-ie[1])-(ge[1]-ie[1])*(xe[0]-ie[0])<=0);)--et;Ne[et++]=rt}return Ne.slice(0,et)}function Do(V,ie){return V[0]-ie[0]||V[1]-ie[1]}i.timer=function(){ar.apply(this,arguments)},i.timer.flush=function(){Sr(),Zr()},i.round=function(V,ie){return ie?Math.round(V*(ie=Math.pow(10,ie)))/ie:Math.round(V)},i.geom={},i.geom.hull=function(V){var ie=go,ge=oo;if(arguments.length)return xe(V);function xe(Ee){if(Ee.length<3)return[];var Ne,et=to(ie),rt=to(ge),dt=Ee.length,gt=[],Rt=[];for(Ne=0;Ne=0;--Ne)vn.push(Ee[gt[Mt[Ne]][2]]);for(Ne=+dn;NeOt)rt=rt.L;else{if(!((Ee=Ne-wo(rt,et))>Ot)){xe>-Ot?(ie=rt.P,ge=rt):Ee>-Ot?(ie=rt,ge=rt.N):ie=ge=rt;break}if(!rt.R){ie=rt;break}rt=rt.R}var dt=Gn(V);if(Er.insert(ie,dt),ie||ge){if(ie===ge)return Mn(ie),ge=Gn(ie.site),Er.insert(dt,ge),dt.edge=ge.edge=xr(ie.site,dt.site),Qt(ie),void Qt(ge);if(ge){Mn(ie),Mn(ge);var gt=ie.site,Rt=gt.x,Mt=gt.y,Xt=V.x-Rt,dn=V.y-Mt,bn=ge.site,vn=bn.x-Rt,Ln=bn.y-Mt,gn=2*(Xt*Ln-dn*vn),Jn=Xt*Xt+dn*dn,pn=vn*vn+Ln*Ln,In={x:(Ln*Jn-dn*pn)/gn+Rt,y:(Xt*pn-vn*Jn)/gn+Mt};Oo(ge.edge,gt,bn,In),dt.edge=xr(gt,V,null,In),ge.edge=xr(V,bn,null,In),Qt(ie),Qt(ge)}else dt.edge=xr(ie.site,dt.site)}}function Cr(V,ie){var ge=V.site,xe=ge.x,Ee=ge.y,Ne=Ee-ie;if(!Ne)return xe;var et=V.P;if(!et)return-1/0;var rt=(ge=et.site).x,dt=ge.y,gt=dt-ie;if(!gt)return rt;var Rt=rt-xe,Mt=1/Ne-1/gt,Xt=Rt/gt;return Mt?(-Xt+Math.sqrt(Xt*Xt-2*Mt*(Rt*Rt/(-2*gt)-dt+gt/2+Ee-Ne/2)))/Mt+xe:(xe+rt)/2}function wo(V,ie){var ge=V.N;if(ge)return Cr(ge,ie);var xe=V.site;return xe.y===ie?xe.x:1/0}function Nr(V){this.site=V,this.edges=[]}function Eo(V,ie){return ie.angle-V.angle}function zo(){To(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(V){var ie=V.P,ge=V.N;if(ie&&ge){var xe=ie.site,Ee=V.site,Ne=ge.site;if(xe!==Ne){var et=Ee.x,rt=Ee.y,dt=xe.x-et,gt=xe.y-rt,Rt=Ne.x-et,Mt=2*(dt*(Ln=Ne.y-rt)-gt*Rt);if(!(Mt>=-cn)){var Xt=dt*dt+gt*gt,dn=Rt*Rt+Ln*Ln,bn=(Ln*Xt-gt*dn)/Mt,vn=(dt*dn-Rt*Xt)/Mt,Ln=vn+rt,gn=Tn.pop()||new zo;gn.arc=V,gn.site=Ee,gn.x=bn+et,gn.y=Ln+Math.sqrt(bn*bn+vn*vn),gn.cy=Ln,V.circle=gn;for(var Jn=null,pn=on._;pn;)if(gn.y=rt)return;if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:Ln,y:dt};ge={x:Ln,y:gt}}else{if(Ne){if(Ne.y1)if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:(dt-Ee)/xe,y:dt};ge={x:(gt-Ee)/xe,y:gt}}else{if(Ne){if(Ne.y=rt)return}else Ne={x:et,y:xe*et+Ee};ge={x:rt,y:xe*rt+Ee}}else{if(Ne){if(Ne.x0)){if(gn/=ro,ro<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Mt-In,ro||!(gn<0)){if(gn/=ro,ro<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(ro>0){if(gn0)){if(gn/=po,po<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Xt-Ir,po||!(gn<0)){if(gn/=po,po<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(po>0){if(gn0&&(Ln.a={x:In+Pr*ro,y:Ir+Pr*po}),Gr<1&&(Ln.b={x:In+Gr*ro,y:Ir+Gr*po}),Ln}}}}}),vn=dn.length;vn--;)(!Fn(dt=dn[vn],rt)||!bn(dt)||P(dt.a.x-dt.b.x)Ot||P(Mt-gt)>Ot)&&(bn.splice(dn,0,new mi((ro=Xt.site,po=gn,Wo=P(Rt-Jn)Ot?{x:Jn,y:P(dt-Jn)Ot?{x:P(gt-Ir)Ot?{x:pn,y:P(dt-pn)Ot?{x:P(gt-In)=Rt&&gn.x<=Xt&&gn.y>=Mt&&gn.y<=dn?[[Rt,dn],[Xt,dn],[Xt,Mt],[Rt,Mt]]:[]).point=dt[vn]}),gt}function rt(dt){return dt.map(function(gt,Rt){return{x:Math.round(xe(gt,Rt)/Ot)*Ot,y:Math.round(Ee(gt,Rt)/Ot)*Ot,i:Rt}})}return et.links=function(dt){return zi(rt(dt)).edges.filter(function(gt){return gt.l&>.r}).map(function(gt){return{source:dt[gt.l.i],target:dt[gt.r.i]}})},et.triangles=function(dt){var gt=[];return zi(rt(dt)).cells.forEach(function(Rt,Mt){for(var Xt,dn,bn,vn,Ln=Rt.site,gn=Rt.edges.sort(Eo),Jn=-1,pn=gn.length,In=gn[pn-1].edge,Ir=In.l===Ln?In.r:In.l;++JnNe&&(Ee=ie.slice(Ne,Ee),rt[et]?rt[et]+=Ee:rt[++et]=Ee),(ge=ge[0])===(xe=xe[0])?rt[et]?rt[et]+=xe:rt[++et]=xe:(rt[++et]=null,dt.push({i:et,x:Qs(ge,xe)})),Ne=Tc.lastIndex;return Negn&&(gn=Rt.x),Rt.y>Jn&&(Jn=Rt.y),Mt.push(Rt.x),Xt.push(Rt.y);else for(dn=0;dngn&&(gn=Ir),Pr>Jn&&(Jn=Pr),Mt.push(Ir),Xt.push(Pr)}var Gr=gn-vn,ro=Jn-Ln;function po(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){if(!isNaN(Yo)&&!isNaN(Wi))if(Bo.leaf){var Hi=Bo.x,Ai=Bo.y;if(Hi!=null)if(P(Hi-Yo)+P(Ai-Wi)<.01)Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai);else{var Ja=Bo.point;Bo.x=Bo.y=Bo.point=null,Wo(Bo,Ja,Hi,Ai,Ho,jo,Yi,ai),Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}else Bo.x=Yo,Bo.y=Wi,Bo.point=Go}else Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}function Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){var Hi=.5*(Ho+Yi),Ai=.5*(jo+ai),Ja=Yo>=Hi,Ar=Wi>=Ai,ns=Ar<<1|Ja;Bo.leaf=!1,Ja?Ho=Hi:Yi=Hi,Ar?jo=Ai:ai=Ai,po(Bo=Bo.nodes[ns]||(Bo.nodes[ns]={leaf:!0,nodes:[],point:null,x:null,y:null}),Go,Yo,Wi,Ho,jo,Yi,ai)}Gr>ro?Jn=Ln+Gr:gn=vn+ro;var si={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Bo){po(si,Bo,+pn(Bo,++dn),+In(Bo,dn),vn,Ln,gn,Jn)}};if(si.visit=function(Bo){nf(Bo,si,vn,Ln,gn,Jn)},si.find=function(Bo){return function(Go,Yo,Wi,Ho,jo,Yi,ai){var Hi,Ai=1/0;return function Ja(Ar,ns,$s,Ts,rl){if(!(ns>Yi||$s>ai||Ts=yr)<<1|Yo>=Nn,No=so+4;so=0&&!(ge=i.interpolators[xe](V,ie)););return ge}function au(V,ie){var ge,xe=[],Ee=[],Ne=V.length,et=ie.length,rt=Math.min(V.length,ie.length);for(ge=0;ge=1)return 1;var ie=V*V,ge=ie*V;return 4*(V<.5?ge:3*(V-ie)+ge-.75)}function Ml(V){return 1-Math.cos(V*vt)}function Jf(V){return Math.pow(2,10*(V-1))}function Nf(V){return 1-Math.sqrt(1-V*V)}function Jl(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function Gh(V,ie){return ie-=V,function(ge){return Math.round(V+ie*ge)}}function ll(V){var ie,ge,xe,Ee=[V.a,V.b],Ne=[V.c,V.d],et=gu(Ee),rt=Tu(Ee,Ne),dt=gu(((ie=Ne)[0]+=(xe=-rt)*(ge=Ee)[0],ie[1]+=xe*ge[1],ie))||0;Ee[0]*Ne[1]=0?V.slice(0,ge):V,Ee=ge>=0?V.slice(ge+1):"in";return xe=_s.get(xe)||zf,Ee=ma.get(Ee)||Z,ie=Ee(xe.apply(null,S.call(arguments,1))),function(Ne){return Ne<=0?0:Ne>=1?1:ie(Ne)}},i.interpolateHcl=function(V,ie){V=i.hcl(V),ie=i.hcl(ie);var ge=V.h,xe=V.c,Ee=V.l,Ne=ie.h-ge,et=ie.c-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.c:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return sn(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateHsl=function(V,ie){V=i.hsl(V),ie=i.hsl(ie);var ge=V.h,xe=V.s,Ee=V.l,Ne=ie.h-ge,et=ie.s-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.s:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return Jt(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateLab=function(V,ie){V=i.lab(V),ie=i.lab(ie);var ge=V.l,xe=V.a,Ee=V.b,Ne=ie.l-ge,et=ie.a-xe,rt=ie.b-Ee;return function(dt){return Un(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateRound=Gh,i.transform=function(V){var ie=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ie.setAttribute("transform",ge);var xe=ie.transform.baseVal.consolidate()}return new ll(xe?xe.matrix:ec)})(V)},ll.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ec={a:1,b:0,c:0,d:1,e:0,f:0};function Dc(V){return V.length?V.pop()+",":""}function tc(V,ie){var ge=[],xe=[];return V=i.transform(V),ie=i.transform(ie),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else(Ne[0]||Ne[1])&&et.push("translate("+Ne+")")}(V.translate,ie.translate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?(Ee-Ne>180?Ne+=360:Ne-Ee>180&&(Ee+=360),rt.push({i:et.push(Dc(et)+"rotate(",null,")")-2,x:Qs(Ee,Ne)})):Ne&&et.push(Dc(et)+"rotate("+Ne+")")}(V.rotate,ie.rotate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?rt.push({i:et.push(Dc(et)+"skewX(",null,")")-2,x:Qs(Ee,Ne)}):Ne&&et.push(Dc(et)+"skewX("+Ne+")")}(V.skew,ie.skew,ge,xe),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push(Dc(et)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else Ne[0]===1&&Ne[1]===1||et.push(Dc(et)+"scale("+Ne+")")}(V.scale,ie.scale,ge,xe),V=ie=null,function(Ee){for(var Ne,et=-1,rt=xe.length;++et0?ge=In:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):In>0&&(rt.start({type:"start",alpha:ge=In}),V=ar(et.tick)),et):ge},et.start=function(){var In,Ir,Pr,Gr=Ln.length,ro=gn.length,po=dt[0],Wo=dt[1];for(In=0;In=0;)ge.push(Ee[xe])}function cs(V,ie){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Ne=V.children)&&(Ee=Ne.length))for(var Ee,Ne,et=-1;++et=0;)et.push(Rt=gt[dt]),Rt.parent=Ne,Rt.depth=Ne.depth+1;ge&&(Ne.value=0),Ne.children=gt}else ge&&(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),delete Ne.children;return cs(Ee,function(Mt){var Xt,dn;V&&(Xt=Mt.children)&&Xt.sort(V),ge&&(dn=Mt.parent)&&(dn.value+=Mt.value)}),rt}return xe.sort=function(Ee){return arguments.length?(V=Ee,xe):V},xe.children=function(Ee){return arguments.length?(ie=Ee,xe):ie},xe.value=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe.revalue=function(Ee){return ge&&(vd(Ee,function(Ne){Ne.children&&(Ne.value=0)}),cs(Ee,function(Ne){var et;Ne.children||(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),(et=Ne.parent)&&(et.value+=Ne.value)})),Ee},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ie=[1,1];function ge(Ne,et,rt,dt){var gt=Ne.children;if(Ne.x=et,Ne.y=Ne.depth*dt,Ne.dx=rt,Ne.dy=dt,gt&&(Rt=gt.length)){var Rt,Mt,Xt,dn=-1;for(rt=Ne.value?rt/Ne.value:0;++dnrt&&(rt=xe),et.push(xe)}for(ge=0;geEe&&(xe=ge,Ee=ie);return xe}function _f(V){return V.reduce($f,0)}function $f(V,ie){return V+ie[1]}function ih(V,ie){return yu(V,Math.ceil(Math.log(ie.length)/Math.LN2+1))}function yu(V,ie){for(var ge=-1,xe=+V[0],Ee=(V[1]-xe)/ie,Ne=[];++ge<=ie;)Ne[ge]=Ee*ge+xe;return Ne}function jc(V){return[i.min(V),i.max(V)]}function Nh(V,ie){return V.value-ie.value}function af(V,ie){var ge=V._pack_next;V._pack_next=ie,ie._pack_prev=V,ie._pack_next=ge,ge._pack_prev=ie}function td(V,ie){V._pack_next=ie,ie._pack_prev=V}function sf(V,ie){var ge=ie.x-V.x,xe=ie.y-V.y,Ee=V.r+ie.r;return .999*Ee*Ee>ge*ge+xe*xe}function Bc(V){if((ie=V.children)&&(dt=ie.length)){var ie,ge,xe,Ee,Ne,et,rt,dt,gt=1/0,Rt=-1/0,Mt=1/0,Xt=-1/0;if(ie.forEach(Vd),(ge=ie[0]).x=-ge.r,ge.y=0,pn(ge),dt>1&&((xe=ie[1]).x=xe.r,xe.y=0,pn(xe),dt>2))for(gs(ge,xe,Ee=ie[2]),pn(Ee),af(ge,Ee),ge._pack_prev=Ee,af(Ee,xe),xe=ge._pack_next,Ne=3;Ne0)for(et=-1;++et=Mt[0]&&dt<=Mt[1]&&((rt=gt[i.bisect(Xt,dt,1,bn)-1]).y+=vn,rt.push(Ne[et]));return gt}return Ee.value=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.range=function(Ne){return arguments.length?(ge=to(Ne),Ee):ge},Ee.bins=function(Ne){return arguments.length?(xe=typeof Ne=="number"?function(et){return yu(et,Ne)}:to(Ne),Ee):xe},Ee.frequency=function(Ne){return arguments.length?(V=!!Ne,Ee):V},Ee},i.layout.pack=function(){var V,ie=i.layout.hierarchy().sort(Nh),ge=0,xe=[1,1];function Ee(Ne,et){var rt=ie.call(this,Ne,et),dt=rt[0],gt=xe[0],Rt=xe[1],Mt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,cs(dt,function(dn){dn.r=+Mt(dn.value)}),cs(dt,Bc),ge){var Xt=ge*(V?1:Math.max(2*dt.r/gt,2*dt.r/Rt))/2;cs(dt,function(dn){dn.r+=Xt}),cs(dt,Bc),cs(dt,function(dn){dn.r-=Xt})}return vc(dt,gt/2,Rt/2,V?1:1/Math.max(2*dt.r/gt,2*dt.r/Rt)),rt}return Ee.size=function(Ne){return arguments.length?(xe=Ne,Ee):xe},Ee.radius=function(Ne){return arguments.length?(V=Ne==null||typeof Ne=="function"?Ne:+Ne,Ee):V},Ee.padding=function(Ne){return arguments.length?(ge=+Ne,Ee):ge},Bu(Ee,ie)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=null;function Ee(dt,gt){var Rt=V.call(this,dt,gt),Mt=Rt[0],Xt=function(pn){for(var In,Ir={A:null,children:[pn]},Pr=[Ir];(In=Pr.pop())!=null;)for(var Gr,ro=In.children,po=0,Wo=ro.length;pobn.x&&(bn=pn),pn.depth>vn.depth&&(vn=pn)});var Ln=ie(dn,bn)/2-dn.x,gn=ge[0]/(bn.x+ie(bn,dn)/2+Ln),Jn=ge[1]/(vn.depth||1);vd(Mt,function(pn){pn.x=(pn.x+Ln)*gn,pn.y=pn.depth*Jn})}return Rt}function Ne(dt){var gt=dt.children,Rt=dt.parent.children,Mt=dt.i?Rt[dt.i-1]:null;if(gt.length){(function(dn){for(var bn,vn=0,Ln=0,gn=dn.children,Jn=gn.length;--Jn>=0;)(bn=gn[Jn]).z+=vn,bn.m+=vn,vn+=bn.s+(Ln+=bn.c)})(dt);var Xt=(gt[0].z+gt[gt.length-1].z)/2;Mt?(dt.z=Mt.z+ie(dt._,Mt._),dt.m=dt.z-Xt):dt.z=Xt}else Mt&&(dt.z=Mt.z+ie(dt._,Mt._));dt.parent.A=function(dn,bn,vn){if(bn){for(var Ln,gn=dn,Jn=dn,pn=bn,In=gn.parent.children[0],Ir=gn.m,Pr=Jn.m,Gr=pn.m,ro=In.m;pn=Nu(pn),gn=Cc(gn),pn&&gn;)In=Cc(In),(Jn=Nu(Jn)).a=dn,(Ln=pn.z+Gr-gn.z-Ir+ie(pn._,gn._))>0&&(Gs(Ks(pn,dn,vn),dn,Ln),Ir+=Ln,Pr+=Ln),Gr+=pn.m,Ir+=gn.m,ro+=In.m,Pr+=Jn.m;pn&&!Nu(Jn)&&(Jn.t=pn,Jn.m+=Gr-Pr),gn&&!Cc(In)&&(In.t=gn,In.m+=Ir-ro,vn=dn)}return vn}(dt,Mt,dt.parent.A||Rt[0])}function et(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Ee.separation=function(dt){return arguments.length?(ie=dt,Ee):ie},Ee.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Ee):xe?null:ge},Ee.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Ee):xe?ge:null},Bu(Ee,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=!1;function Ee(Ne,et){var rt,dt=V.call(this,Ne,et),gt=dt[0],Rt=0;cs(gt,function(vn){var Ln=vn.children;Ln&&Ln.length?(vn.x=function(gn){return gn.reduce(function(Jn,pn){return Jn+pn.x},0)/gn.length}(Ln),vn.y=function(gn){return 1+i.max(gn,function(Jn){return Jn.y})}(Ln)):(vn.x=rt?Rt+=ie(vn,rt):0,vn.y=0,rt=vn)});var Mt=Ac(gt),Xt=_d(gt),dn=Mt.x-ie(Mt,Xt)/2,bn=Xt.x+ie(Xt,Mt)/2;return cs(gt,xe?function(vn){vn.x=(vn.x-gt.x)*ge[0],vn.y=(gt.y-vn.y)*ge[1]}:function(vn){vn.x=(vn.x-dn)/(bn-dn)*ge[0],vn.y=(1-(gt.y?vn.y/gt.y:1))*ge[1]}),dt}return Ee.separation=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.size=function(Ne){return arguments.length?(xe=(ge=Ne)==null,Ee):xe?null:ge},Ee.nodeSize=function(Ne){return arguments.length?(xe=(ge=Ne)!=null,Ee):xe?ge:null},Bu(Ee,V)},i.layout.treemap=function(){var V,ie=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Ee=null,Ne=Fh,et=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function gt(vn,Ln){for(var gn,Jn,pn=-1,In=vn.length;++pn0;)Ir.push(gn=Pr[pn-1]),Ir.area+=gn.area,rt!=="squarify"||(Jn=Xt(Ir,ro))<=Gr?(Pr.pop(),Gr=Jn):(Ir.area-=Ir.pop().area,dn(Ir,ro,In,!1),ro=Math.min(In.dx,In.dy),Ir.length=Ir.area=0,Gr=1/0);Ir.length&&(dn(Ir,ro,In,!0),Ir.length=Ir.area=0),Ln.forEach(Rt)}}function Mt(vn){var Ln=vn.children;if(Ln&&Ln.length){var gn,Jn=Ne(vn),pn=Ln.slice(),In=[];for(gt(pn,Jn.dx*Jn.dy/vn.value),In.area=0;gn=pn.pop();)In.push(gn),In.area+=gn.area,gn.z!=null&&(dn(In,gn.z?Jn.dx:Jn.dy,Jn,!pn.length),In.length=In.area=0);Ln.forEach(Mt)}}function Xt(vn,Ln){for(var gn,Jn=vn.area,pn=0,In=1/0,Ir=-1,Pr=vn.length;++Irpn&&(pn=gn));return Ln*=Ln,(Jn*=Jn)?Math.max(Ln*pn*dt/Jn,Jn/(Ln*In*dt)):1/0}function dn(vn,Ln,gn,Jn){var pn,In=-1,Ir=vn.length,Pr=gn.x,Gr=gn.y,ro=Ln?ge(vn.area/Ln):0;if(Ln==gn.dx){for((Jn||ro>gn.dy)&&(ro=gn.dy);++Ingn.dx)&&(ro=gn.dx);++In1);return V+ie*xe*Math.sqrt(-2*Math.log(Ne)/Ne)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ie=i.random.irwinHall(V);return function(){return ie()/V}},irwinHall:function(V){return function(){for(var ie=0,ge=0;ge2?cl:Au,gt=xe?rh:Lp;return Ee=dt(V,ie,gt,ge),Ne=dt(ie,V,gt,iu),rt}function rt(dt){return Ee(dt)}return rt.invert=function(dt){return Ne(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),et()):V},rt.range=function(dt){return arguments.length?(ie=dt,et()):ie},rt.rangeRound=function(dt){return rt.range(dt).interpolate(Gh)},rt.clamp=function(dt){return arguments.length?(xe=dt,et()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,et()):ge},rt.ticks=function(dt){return wi(V,dt)},rt.tickFormat=function(dt,gt){return d3_scale_linearTickFormat(V,dt,gt)},rt.nice=function(dt){return Qc(V,dt),et()},rt.copy=function(){return bc(V,ie,ge,xe)},et()}function nc(V,ie){return i.rebind(V,ie,"range","rangeRound","interpolate","clamp")}function Qc(V,ie){return lf(V,wf(ts(V,ie)[2])),lf(V,wf(ts(V,ie)[2])),V}function ts(V,ie){ie==null&&(ie=10);var ge=vp(V),xe=ge[1]-ge[0],Ee=Math.pow(10,Math.floor(Math.log(xe/ie)/Math.LN10)),Ne=ie/xe*Ee;return Ne<=.15?Ee*=10:Ne<=.35?Ee*=5:Ne<=.75&&(Ee*=2),ge[0]=Math.ceil(ge[0]/Ee)*Ee,ge[1]=Math.floor(ge[1]/Ee)*Ee+.5*Ee,ge[2]=Ee,ge}function wi(V,ie){return i.range.apply(i,ts(V,ie))}function bu(V,ie,ge,xe){function Ee(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ie)}function Ne(rt){return ge?Math.pow(ie,rt):-Math.pow(ie,-rt)}function et(rt){return V(Ee(rt))}return et.invert=function(rt){return Ne(V.invert(rt))},et.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Ee)),et):xe},et.base=function(rt){return arguments.length?(ie=+rt,V.domain(xe.map(Ee)),et):ie},et.nice=function(){var rt=lf(xe.map(Ee),ge?Math:wd);return V.domain(rt),xe=rt.map(Ne),et},et.ticks=function(){var rt=vp(xe),dt=[],gt=rt[0],Rt=rt[1],Mt=Math.floor(Ee(gt)),Xt=Math.ceil(Ee(Rt)),dn=ie%1?2:ie;if(isFinite(Xt-Mt)){if(ge){for(;Mt0;bn--)dt.push(Ne(Mt)*bn);for(Mt=0;dt[Mt]Rt;Xt--);dt=dt.slice(Mt,Xt)}return dt},et.copy=function(){return bu(V.copy(),ie,ge,xe)},nc(et,V)}i.scale.linear=function(){return bc([0,1],[0,1],iu,!1)},i.scale.log=function(){return bu(i.scale.linear().domain([0,1]),10,!0,[1,10])};var wd={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function Ol(V,ie,ge){var xe=ds(ie),Ee=ds(1/ie);function Ne(et){return V(xe(et))}return Ne.invert=function(et){return Ee(V.invert(et))},Ne.domain=function(et){return arguments.length?(V.domain((ge=et.map(Number)).map(xe)),Ne):ge},Ne.ticks=function(et){return wi(ge,et)},Ne.tickFormat=function(et,rt){return d3_scale_linearTickFormat(ge,et,rt)},Ne.nice=function(et){return Ne.domain(Qc(ge,et))},Ne.exponent=function(et){return arguments.length?(xe=ds(ie=et),Ee=ds(1/ie),V.domain(ge.map(xe)),Ne):ie},Ne.copy=function(){return Ol(V.copy(),ie,ge)},nc(Ne,V)}function ds(V){return function(ie){return ie<0?-Math.pow(-ie,V):Math.pow(ie,V)}}function zc(V,ie){var ge,xe,Ee;function Ne(rt){return xe[((ge.get(rt)||(ie.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function et(rt,dt){return i.range(V.length).map(function(gt){return rt+dt*gt})}return Ne.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,gt=-1,Rt=rt.length;++gt0?ge[Ne-1]:V[0],NeXt?0:1;if(Rt=Sn)return dt(Rt,bn)+(gt?dt(gt,1-bn):"")+"Z";var vn,Ln,gn,Jn,pn,In,Ir,Pr,Gr,ro,po,Wo,si=0,Bo=0,Go=[];if((Jn=(+et.apply(this,arguments)||0)/2)&&(gn=xe===zl?Math.sqrt(gt*gt+Rt*Rt):+xe.apply(this,arguments),bn||(Bo*=-1),Rt&&(Bo=bt(gn/Rt*Math.sin(Jn))),gt&&(si=bt(gn/gt*Math.sin(Jn)))),Rt){pn=Rt*Math.cos(Mt+Bo),In=Rt*Math.sin(Mt+Bo),Ir=Rt*Math.cos(Xt-Bo),Pr=Rt*Math.sin(Xt-Bo);var Yo=Math.abs(Xt-Mt-2*Bo)<=Cn?0:1;if(Bo&&al(pn,In,Ir,Pr)===bn^Yo){var Wi=(Mt+Xt)/2;pn=Rt*Math.cos(Wi),In=Rt*Math.sin(Wi),Ir=Pr=null}}else pn=In=0;if(gt){Gr=gt*Math.cos(Xt-si),ro=gt*Math.sin(Xt-si),po=gt*Math.cos(Mt+si),Wo=gt*Math.sin(Mt+si);var Ho=Math.abs(Mt-Xt+2*si)<=Cn?0:1;if(si&&al(Gr,ro,po,Wo)===1-bn^Ho){var jo=(Mt+Xt)/2;Gr=gt*Math.cos(jo),ro=gt*Math.sin(jo),po=Wo=null}}else Gr=ro=0;if(dn>Ot&&(vn=Math.min(Math.abs(Rt-gt)/2,+ge.apply(this,arguments)))>.001){Ln=gt0?0:1}function Yl(V,ie,ge,xe,Ee){var Ne=V[0]-ie[0],et=V[1]-ie[1],rt=(Ee?xe:-xe)/Math.sqrt(Ne*Ne+et*et),dt=rt*et,gt=-rt*Ne,Rt=V[0]+dt,Mt=V[1]+gt,Xt=ie[0]+dt,dn=ie[1]+gt,bn=(Rt+Xt)/2,vn=(Mt+dn)/2,Ln=Xt-Rt,gn=dn-Mt,Jn=Ln*Ln+gn*gn,pn=ge-xe,In=Rt*dn-Xt*Mt,Ir=(gn<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*Jn-In*In)),Pr=(In*gn-Ln*Ir)/Jn,Gr=(-In*Ln-gn*Ir)/Jn,ro=(In*gn+Ln*Ir)/Jn,po=(-In*Ln+gn*Ir)/Jn,Wo=Pr-bn,si=Gr-vn,Bo=ro-bn,Go=po-vn;return Wo*Wo+si*si>Bo*Bo+Go*Go&&(Pr=ro,Gr=po),[[Pr-dt,Gr-gt],[Pr*ge/pn,Gr*ge/pn]]}function uf(){return!0}function hs(V){var ie=go,ge=oo,xe=uf,Ee=Eu,Ne=Ee.key,et=.7;function rt(dt){var gt,Rt=[],Mt=[],Xt=-1,dn=dt.length,bn=to(ie),vn=to(ge);function Ln(){Rt.push("M",Ee(V(Mt),et))}for(;++Xt1&&Ee.push("H",xe[0]),Ee.join("")},"step-before":ws,"step-after":Fu,basis:Ls,"basis-open":function(V){if(V.length<4)return Eu(V);for(var ie,ge=[],xe=-1,Ee=V.length,Ne=[0],et=[0];++xe<3;)ie=V[xe],Ne.push(ie[0]),et.push(ie[1]);for(ge.push(Ec(Kt,Ne)+","+Ec(Kt,et)),--xe;++xe9&&(Ne=3*ge/Math.sqrt(Ne),rt[dt]=Ne*xe,rt[dt+1]=Ne*Ee);for(dt=-1;++dt<=gt;)Ne=(ie[Math.min(gt,dt+1)][0]-ie[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),et.push([Ne||0,rt[dt]*Ne||0]);return et}(V))}});function Eu(V){return V.length>1?V.join("L"):V+"Z"}function xu(V){return V.join("L")+"Z"}function ws(V){for(var ie=0,ge=V.length,xe=V[0],Ee=[xe[0],",",xe[1]];++ie1){rt=ie[1],Ne=V[dt],dt++,xe+="C"+(Ee[0]+et[0])+","+(Ee[1]+et[1])+","+(Ne[0]-rt[0])+","+(Ne[1]-rt[1])+","+Ne[0]+","+Ne[1];for(var gt=2;gtCn)+",1 "+Rt}function dt(gt,Rt,Mt,Xt){return"Q 0,0 "+Xt}return Ne.radius=function(gt){return arguments.length?(ge=to(gt),Ne):ge},Ne.source=function(gt){return arguments.length?(V=to(gt),Ne):V},Ne.target=function(gt){return arguments.length?(ie=to(gt),Ne):ie},Ne.startAngle=function(gt){return arguments.length?(xe=to(gt),Ne):xe},Ne.endAngle=function(gt){return arguments.length?(Ee=to(gt),Ne):Ee},Ne},i.svg.diagonal=function(){var V=Bi,ie=ya,ge=Qi;function xe(Ee,Ne){var et=V.call(this,Ee,Ne),rt=ie.call(this,Ee,Ne),dt=(et.y+rt.y)/2,gt=[et,{x:et.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(gt=gt.map(ge))[0]+"C"+gt[1]+" "+gt[2]+" "+gt[3]}return xe.source=function(Ee){return arguments.length?(V=to(Ee),xe):V},xe.target=function(Ee){return arguments.length?(ie=to(Ee),xe):ie},xe.projection=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ie=Qi,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Ee){return function(){var Ne=Ee.apply(this,arguments),et=Ne[0],rt=Ne[1]-vt;return[et*Math.cos(rt),et*Math.sin(rt)]}}(ie=xe)):ie},V},i.svg.symbol=function(){var V=nl,ie=Ws;function ge(xe,Ee){return(Wu.get(V.call(this,xe,Ee))||Fs)(ie.call(this,xe,Ee))}return ge.type=function(xe){return arguments.length?(V=to(xe),ge):V},ge.size=function(xe){return arguments.length?(ie=to(xe),ge):ie},ge};var Wu=i.map({circle:Fs,cross:function(V){var ie=Math.sqrt(V/5)/2;return"M"+-3*ie+","+-ie+"H"+-ie+"V"+-3*ie+"H"+ie+"V"+-ie+"H"+3*ie+"V"+ie+"H"+ie+"V"+3*ie+"H"+-ie+"V"+ie+"H"+-3*ie+"Z"},diamond:function(V){var ie=Math.sqrt(V/(2*Aa)),ge=ie*Aa;return"M0,"+-ie+"L"+ge+",0 0,"+ie+" "+-ge+",0Z"},square:function(V){var ie=Math.sqrt(V)/2;return"M"+-ie+","+-ie+"L"+ie+","+-ie+" "+ie+","+ie+" "+-ie+","+ie+"Z"},"triangle-down":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+ge+"L"+ie+","+-ge+" "+-ie+","+-ge+"Z"},"triangle-up":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+-ge+"L"+ie+","+ge+" "+-ie+","+ge+"Z"}});i.svg.symbolTypes=Wu.keys();var Ki=Math.sqrt(3),Aa=Math.tan(30*xt);Te.transition=function(V){for(var ie,ge,xe=_c||++Pc,Ee=Si(V),Ne=[],et=Xl||{time:Date.now(),ease:Wl,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)gt[--gn].call(V,Ln);if(vn>=1)return Mt.event&&Mt.event.end.call(V,V.__data__,ie),--Rt.count?delete Rt[xe]:delete V[ge],1}Mt||(Ne=Ee.time,et=ar(function(bn){var vn=Mt.delay;if(et.t=vn+Ne,vn<=bn)return Xt(bn-vn);et.c=Xt},0,Ne),Mt=Rt[xe]={tween:new L,time:Ne,timer:et,delay:Ee.delay,duration:Ee.duration,ease:Ee.ease,index:ie},Ee=null,++Rt.count)}pl.call=Te.call,pl.empty=Te.empty,pl.node=Te.node,pl.size=Te.size,i.transition=function(V,ie){return V&&V.transition?_c?V.transition(ie):V:i.selection().transition(V)},i.transition.prototype=pl,pl.select=function(V){var ie,ge,xe,Ee=this.id,Ne=this.namespace,et=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Ne[1]-Ne[0])}function dn(vn){vn.select(".extent").attr("y",et[0]),vn.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function bn(){var vn,Ln,gn=this,Jn=i.select(i.event.target),pn=ge.of(gn,arguments),In=i.select(gn),Ir=Jn.datum(),Pr=!/^(n|s)$/.test(Ir)&&xe,Gr=!/^(e|w)$/.test(Ir)&&Ee,ro=Jn.classed("extent"),po=Yt(gn),Wo=i.mouse(gn),si=i.select(a(gn)).on("keydown.brush",function(){i.event.keyCode==32&&(ro||(vn=null,Wo[0]-=Ne[1],Wo[1]-=et[1],ro=2),pe())}).on("keyup.brush",function(){i.event.keyCode==32&&ro==2&&(Wo[0]+=Ne[1],Wo[1]+=et[1],ro=0,pe())});if(i.event.changedTouches?si.on("touchmove.brush",Yo).on("touchend.brush",Ho):si.on("mousemove.brush",Yo).on("mouseup.brush",Ho),In.interrupt().selectAll("*").interrupt(),ro)Wo[0]=Ne[0]-Wo[0],Wo[1]=et[0]-Wo[1];else if(Ir){var Bo=+/w$/.test(Ir),Go=+/^n/.test(Ir);Ln=[Ne[1-Bo]-Wo[0],et[1-Go]-Wo[1]],Wo[0]=Ne[Bo],Wo[1]=et[Go]}else i.event.altKey&&(vn=Wo.slice());function Yo(){var jo=i.mouse(gn),Yi=!1;Ln&&(jo[0]+=Ln[0],jo[1]+=Ln[1]),ro||(i.event.altKey?(vn||(vn=[(Ne[0]+Ne[1])/2,(et[0]+et[1])/2]),Wo[0]=Ne[+(jo[0](Ae=1))return Ae;for(;uent?ue=He:Ae=He,He=.5*(Ae-ue)+ue}return He},m.prototype.solve=function(F,G){return this.sampleCurveY(this.solveCurveX(F,G))};var a=c;function c(F,G){this.x=F,this.y=G}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(F){return this.clone()._add(F)},sub:function(F){return this.clone()._sub(F)},multByPoint:function(F){return this.clone()._multByPoint(F)},divByPoint:function(F){return this.clone()._divByPoint(F)},mult:function(F){return this.clone()._mult(F)},div:function(F){return this.clone()._div(F)},rotate:function(F){return this.clone()._rotate(F)},rotateAround:function(F,G){return this.clone()._rotateAround(F,G)},matMult:function(F){return this.clone()._matMult(F)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(F){return this.x===F.x&&this.y===F.y},dist:function(F){return Math.sqrt(this.distSqr(F))},distSqr:function(F){var G=F.x-this.x,ue=F.y-this.y;return G*G+ue*ue},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(F){return Math.atan2(this.y-F.y,this.x-F.x)},angleWith:function(F){return this.angleWithSep(F.x,F.y)},angleWithSep:function(F,G){return Math.atan2(this.x*G-this.y*F,this.x*F+this.y*G)},_matMult:function(F){var G=F[0]*this.x+F[1]*this.y,ue=F[2]*this.x+F[3]*this.y;return this.x=G,this.y=ue,this},_add:function(F){return this.x+=F.x,this.y+=F.y,this},_sub:function(F){return this.x-=F.x,this.y-=F.y,this},_mult:function(F){return this.x*=F,this.y*=F,this},_div:function(F){return this.x/=F,this.y/=F,this},_multByPoint:function(F){return this.x*=F.x,this.y*=F.y,this},_divByPoint:function(F){return this.x/=F.x,this.y/=F.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var F=this.y;return this.y=this.x,this.x=-F,this},_rotate:function(F){var G=Math.cos(F),ue=Math.sin(F),Ae=G*this.x-ue*this.y,He=ue*this.x+G*this.y;return this.x=Ae,this.y=He,this},_rotateAround:function(F,G){var ue=Math.cos(F),Ae=Math.sin(F),He=G.x+ue*(this.x-G.x)-Ae*(this.y-G.y),nt=G.y+Ae*(this.x-G.x)+ue*(this.y-G.y);return this.x=He,this.y=nt,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(F){return F instanceof c?F:Array.isArray(F)?new c(F[0],F[1]):F};var h=typeof self<"u"?self:{},p=Math.pow(2,53)-1;function v(F,G,ue,Ae){var He=new y(F,G,ue,Ae);return function(nt){return He.solve(nt)}}var _=v(.25,.1,.25,1);function O(F,G,ue){return Math.min(ue,Math.max(G,F))}function C(F,G,ue){var Ae=ue-G,He=((F-G)%Ae+Ae)%Ae+G;return He===G?ue:He}function x(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,F)}()}function P(F){return!!F&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(F)}function A(F,G){F.forEach(function(ue){G[ue]&&(G[ue]=G[ue].bind(G))})}function L(F,G){return F.indexOf(G,F.length-G.length)!==-1}function D(F,G,ue){var Ae={};for(var He in F)Ae[He]=G.call(ue||this,F[He],He,F);return Ae}function k(F,G,ue){var Ae={};for(var He in F)G.call(ue||this,F[He],He,F)&&(Ae[He]=F[He]);return Ae}function I(F){return Array.isArray(F)?F.map(I):typeof F=="object"&&F?D(F,I):F}var z={};function $(F){z[F]||(typeof console<"u"&&console.warn(F),z[F]=!0)}function Q(F,G,ue){return(ue.y-F.y)*(G.x-F.x)>(G.y-F.y)*(ue.x-F.x)}function j(F){for(var G=0,ue=0,Ae=F.length,He=Ae-1,nt=void 0,ct=void 0;ue@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,He,nt,ct){var Pt=nt||ct;return G[He]=!Pt||Pt.toLowerCase(),""}),G["max-age"]){var ue=parseInt(G["max-age"],10);isNaN(ue)?delete G["max-age"]:G["max-age"]=ue}return G}var te=null;function Z(F){if(te==null){var G=F.navigator?F.navigator.userAgent:null;te=!!F.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(F){try{var G=h[F];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var re,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),pe=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(F){var G=pe(F);return{cancel:function(){return se(G)}}},getImageData:function(F,G){G===void 0&&(G=0);var ue=h.document.createElement("canvas"),Ae=ue.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return ue.width=F.width,ue.height=F.height,Ae.drawImage(F,0,0,F.width,F.height),Ae.getImageData(-G,-G,F.width+2*G,F.height+2*G)},resolveURL:function(F){return re||(re=h.document.createElement("a")),re.href=F,re.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(F){!ye&&ee&&(ve?_e(F):Y=F)}},ye=!1,ve=!1;function _e(F){var G=F.createTexture();F.bindTexture(F.TEXTURE_2D,G);try{if(F.texImage2D(F.TEXTURE_2D,0,F.RGBA,F.RGBA,F.UNSIGNED_BYTE,ee),F.isContextLost())return;de.supported=!0}catch{}F.deleteTexture(G),ye=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ve=!0},ee.onerror=function(){ye=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var we="01",Te=function(F,G){this._transformRequestFn=F,this._customAccessToken=G,this._createSkuToken()};function Pe(F){return F.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var F=function(){for(var G="",ue=0;ue<10;ue++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",we,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=F.token,this._skuTokenExpiresAt=F.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(F,G){return this._transformRequestFn&&this._transformRequestFn(F,G)||{url:F}},Te.prototype.normalizeStyleURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(F,G,ue,Ae){var He=Qe(F);return Pe(F)?(He.path="/styles/v1"+He.path+"/sprite"+G+ue,this._makeAPIURL(He,this._customAccessToken||Ae)):(He.path+=""+G+ue,Ve(He))},Te.prototype.normalizeTileURL=function(F,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),F&&!Pe(F))return F;var ue=Qe(F),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",He=de.supported?".webp":"$1";ue.path=ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+He),ue.path=ue.path.replace(/^.+\/v4\//,"/"),ue.path="/v4"+ue.path;var nt=this._customAccessToken||function(ct){for(var Pt=0,jt=ct;Pt=0&&F.params.splice(He,1)}if(Ae.path!=="/"&&(F.path=""+Ae.path+F.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(F);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+ue);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return F.params=F.params.filter(function(nt){return nt.indexOf("access_token")===-1}),F.params.push("access_token="+G),Ve(F)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(F){return Ie.test(F)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Qe(F){var G=F.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(F){var G=F.params.length?"?"+F.params.join("&"):"";return F.protocol+"://"+F.authority+F.path+G}var $e="mapbox.eventData";function Oe(F){if(!F)return null;var G,ue=F.split(".");if(!ue||ue.length!==3)return null;try{return JSON.parse((G=ue[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(F){this.type=F,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(F){var G,ue,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(ue=Ae.u,h.btoa(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(He,nt){return String.fromCharCode(+("0x"+nt))}))):ce.ACCESS_TOKEN||"",F?$e+"."+F+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var He=h.localStorage.getItem(ue);He&&(this.anonId=He)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{h.localStorage.setItem(ue,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(F){},ke.prototype.postEvent=function(F,G,ue,Ae){var He=this;if(ce.EVENTS_URL){var nt=Qe(ce.EVENTS_URL);nt.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(F).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:we,userId:this.anonId},Pt=G?x(ct,G):ct,jt={url:Ve(nt),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Sn(jt,function(hn){He.pendingRequest=null,ue(hn),He.saveEventData(),He.processRequests(Ae)})}},ke.prototype.queueRequest=function(F,G){this.queue.push(F),this.processRequests(G)};var Re,We,Ue=function(F){function G(){F.call(this,"map.load"),this.success={},this.skuToken=""}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(ue,Ae,He,nt){this.skuToken=He,(ce.EVENTS_URL&&nt||ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(ct){return Pe(ct)||ze(ct)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},nt)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var He=this.queue.shift(),nt=He.id,ct=He.timestamp;nt&&this.success[nt]||(this.anonId||this.fetchEventData(),P(this.anonId)||(this.anonId=T()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||nt&&(Ae.success[nt]=!0)},ue))}},G}(ke),Ze=function(F){function G(ue){F.call(this,"appUserTurnstile"),this._customAccessToken=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(ue,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(He){return Pe(He)||ze(He)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var He=Oe(ce.ACCESS_TOKEN),nt=He?He.u:ce.ACCESS_TOKEN,ct=nt!==this.eventData.tokenU;P(this.anonId)||(this.anonId=T(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var jt=new Date(this.eventData.lastSuccess),hn=new Date(Pt),mn=(Pt-this.eventData.lastSuccess)/864e5;ct=ct||mn>=1||mn<-1||jt.getDate()!==hn.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Dn){Dn||(Ae.eventData.lastSuccess=Pt,Ae.eventData.tokenU=nt)},ue)}},G}(ke),Ye=new Ze,Je=Ye.postTurnstileEvent.bind(Ye),Me=new Ue,Fe=Me.postMapLoadEvent.bind(Me),je="mapbox-tiles",tt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Re&&(Re=h.caches.open(je))}function pt(F,G,ue){if(ht(),Re){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(nt,ct){return Ae.headers.set(ct,nt)});var He=X(G.headers.get("Cache-Control")||"");He["no-store"]||(He["max-age"]&&Ae.headers.set("Expires",new Date(ue+1e3*He["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-ueDate.now()&&!jt["no-cache"]}(He);Ae.delete(ue),nt&&Ae.put(ue,He.clone()),G(null,He,nt)}).catch(G)}).catch(G)}var zt,Yt=1/0;function ln(){return zt==null&&(zt=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),zt}var tn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(tn);var Et=function(F){function G(ue,Ae,He){Ae===401&&ze(He)&&(ue+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),F.call(this,ue),this.status=Ae,this.url=He,this.name=this.constructor.name,this.message=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),Ot=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function cn(F,G){var ue,Ae=new h.AbortController,He=new h.Request(F.url,{method:F.method||"GET",body:F.body,credentials:F.credentials,headers:F.headers,referrer:Ot(),signal:Ae.signal}),nt=!1,ct=!1,Pt=(ue=He.url).indexOf("sku=")>0&&ze(ue);F.type==="json"&&He.headers.set("Accept","application/json");var jt=function(mn,Dn,Xn){if(!ct){if(mn&&mn.message!=="SecurityError"&&$(mn),Dn&&Xn)return hn(Dn);var $n=Date.now();h.fetch(He).then(function(mr){if(mr.ok){var Or=Pt?mr.clone():null;return hn(mr,Or,$n)}return G(new Et(mr.statusText,mr.status,F.url))}).catch(function(mr){mr.code!==20&&G(new Error(mr.message))})}},hn=function(mn,Dn,Xn){(F.type==="arrayBuffer"?mn.arrayBuffer():F.type==="json"?mn.json():mn.text()).then(function($n){ct||(Dn&&Xn&&pt(He,Dn,Xn),nt=!0,G(null,$n,mn.headers.get("Cache-Control"),mn.headers.get("Expires")))}).catch(function($n){ct||G(new Error($n.message))})};return Pt?Ft(He,jt):jt(null,null),{cancel:function(){ct=!0,nt||Ae.abort()}}}var Cn=function(F,G){if(ue=F.url,!(/^file:/.test(ue)||/^file:/.test(Ot())&&!/^\w+:/.test(ue))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return cn(F,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",F,G,void 0,!0)}var ue;return function(Ae,He){var nt=new h.XMLHttpRequest;for(var ct in nt.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(nt.responseType="arraybuffer"),Ae.headers)nt.setRequestHeader(ct,Ae.headers[ct]);return Ae.type==="json"&&(nt.responseType="text",nt.setRequestHeader("Accept","application/json")),nt.withCredentials=Ae.credentials==="include",nt.onerror=function(){He(new Error(nt.statusText))},nt.onload=function(){if((nt.status>=200&&nt.status<300||nt.status===0)&&nt.response!==null){var Pt=nt.response;if(Ae.type==="json")try{Pt=JSON.parse(nt.response)}catch(jt){return He(jt)}He(null,Pt,nt.getResponseHeader("Cache-Control"),nt.getResponseHeader("Expires"))}else He(new Et(nt.statusText,nt.status,Ae.url))},nt.send(Ae.body),{cancel:function(){return nt.abort()}}}(F,G)},Pn=function(F,G){return Cn(x(F,{type:"arrayBuffer"}),G)},Sn=function(F,G){return Cn(x(F,{method:"POST"}),G)},vt,xt,st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],xt=0;var bt=function(F,G){if(de.supported&&(F.headers||(F.headers={}),F.headers.accept="image/webp,*/*"),xt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var ue={requestParameters:F,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(ue),ue}xt++;var Ae=!1,He=function(){if(!Ae)for(Ae=!0,xt--;vt.length&&xt0||this._oneTimeListeners&&this._oneTimeListeners[F]&&this._oneTimeListeners[F].length>0||this._eventedParent&&this._eventedParent.listens(F)},Bt.prototype.setEventedParent=function(F,G){return this._eventedParent=F,this._eventedParentData=G,this};var _t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},qt=function(F,G,ue,Ae){this.message=(F?F+": ":"")+ue,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function en(F){var G=F.key,ue=F.value;return ue?[new qt(G,ue,"constants have been deprecated as of v8")]:[]}function Jt(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae":F.itemType.kind==="value"?"array":"array<"+G+">"}return F.kind}var gr=[_n,wn,An,Kn,fr,Br,Un,vr(Zn),$r];function sr(F,G){if(G.kind==="error")return null;if(F.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!sr(F.itemType,G.itemType))&&(typeof F.N!="number"||F.N===G.N))return null}else{if(F.kind===G.kind)return null;if(F.kind==="value"){for(var ue=0,Ae=gr;ue255?255:jt}function He(jt){return jt<0?0:jt>1?1:jt}function nt(jt){return jt[jt.length-1]==="%"?Ae(parseFloat(jt)/100*255):Ae(parseInt(jt))}function ct(jt){return jt[jt.length-1]==="%"?He(parseFloat(jt)/100):He(parseFloat(jt))}function Pt(jt,hn,mn){return mn<0?mn+=1:mn>1&&(mn-=1),6*mn<1?jt+(hn-jt)*mn*6:2*mn<1?hn:3*mn<2?jt+(hn-jt)*(2/3-mn)*6:jt}try{G.parseCSSColor=function(jt){var hn,mn=jt.replace(/ /g,"").toLowerCase();if(mn in ue)return ue[mn].slice();if(mn[0]==="#")return mn.length===4?(hn=parseInt(mn.substr(1),16))>=0&&hn<=4095?[(3840&hn)>>4|(3840&hn)>>8,240&hn|(240&hn)>>4,15&hn|(15&hn)<<4,1]:null:mn.length===7&&(hn=parseInt(mn.substr(1),16))>=0&&hn<=16777215?[(16711680&hn)>>16,(65280&hn)>>8,255&hn,1]:null;var Dn=mn.indexOf("("),Xn=mn.indexOf(")");if(Dn!==-1&&Xn+1===mn.length){var $n=mn.substr(0,Dn),mr=mn.substr(Dn+1,Xn-(Dn+1)).split(","),Or=1;switch($n){case"rgba":if(mr.length!==4)return null;Or=ct(mr.pop());case"rgb":return mr.length!==3?null:[nt(mr[0]),nt(mr[1]),nt(mr[2]),Or];case"hsla":if(mr.length!==4)return null;Or=ct(mr.pop());case"hsl":if(mr.length!==3)return null;var Kr=(parseFloat(mr[0])%360+360)%360/360,Hr=ct(mr[1]),fo=ct(mr[2]),mo=fo<=.5?fo*(Hr+1):fo+Hr-fo*Hr,Io=2*fo-mo;return[Ae(255*Pt(Io,mo,Kr+1/3)),Ae(255*Pt(Io,mo,Kr)),Ae(255*Pt(Io,mo,Kr-1/3)),Or];default:return null}}return null}}catch{}}),eo=Vr.parseCSSColor,Jr=function(F,G,ue,Ae){Ae===void 0&&(Ae=1),this.r=F,this.g=G,this.b=ue,this.a=Ae};Jr.parse=function(F){if(F){if(F instanceof Jr)return F;if(typeof F=="string"){var G=eo(F);if(G)return new Jr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Jr.prototype.toString=function(){var F=this.toArray(),G=F[0],ue=F[1],Ae=F[2],He=F[3];return"rgba("+Math.round(G)+","+Math.round(ue)+","+Math.round(Ae)+","+He+")"},Jr.prototype.toArray=function(){var F=this,G=F.r,ue=F.g,Ae=F.b,He=F.a;return He===0?[0,0,0,0]:[255*G/He,255*ue/He,255*Ae/He,He]},Jr.black=new Jr(0,0,0,1),Jr.white=new Jr(1,1,1,1),Jr.transparent=new Jr(0,0,0,0),Jr.red=new Jr(1,0,0,1);var Yr=function(F,G,ue){this.sensitivity=F?G?"variant":"case":G?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yr.prototype.compare=function(F,G){return this.collator.compare(F,G)},Yr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var to=function(F,G,ue,Ae,He){this.text=F,this.image=G,this.scale=ue,this.fontStack=Ae,this.textColor=He},co=function(F){this.sections=F};co.fromString=function(F){return new co([new to(F,null,null,null,null)])},co.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(F){return F.text.length!==0||F.image&&F.image.name.length!==0})},co.factory=function(F){return F instanceof co?F:co.fromString(F)},co.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(F){return F.text}).join("")},co.prototype.serialize=function(){for(var F=["format"],G=0,ue=this.sections;G=0&&F<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof ue=="number"&&ue>=0&&ue<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[F,G,ue,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[F,G,ue,Ae]:[F,G,ue]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function $o(F){if(F===null||typeof F=="string"||typeof F=="boolean"||typeof F=="number"||F instanceof Jr||F instanceof Yr||F instanceof co||F instanceof Fo)return!0;if(Array.isArray(F)){for(var G=0,ue=F;G2){var Pt=F[1];if(typeof Pt!="string"||!(Pt in Dr)||Pt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);nt=Dr[Pt],Ae++}else nt=Zn;if(F.length>3){if(F[2]!==null&&(typeof F[2]!="number"||F[2]<0||F[2]!==Math.floor(F[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ct=F[2],Ae++}ue=vr(nt,ct)}else ue=Dr[He];for(var jt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(He){return He.serialize()}))};var Zr=function(F){this.type=Br,this.sections=F};Zr.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[1];if(!Array.isArray(ue)&&typeof ue=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],He=!1,nt=1;nt<=F.length-1;++nt){var ct=F[nt];if(He&&typeof ct=="object"&&!Array.isArray(ct)){He=!1;var Pt=null;if(ct["font-scale"]&&!(Pt=G.parse(ct["font-scale"],1,wn)))return null;var jt=null;if(ct["text-font"]&&!(jt=G.parse(ct["text-font"],1,vr(An))))return null;var hn=null;if(ct["text-color"]&&!(hn=G.parse(ct["text-color"],1,fr)))return null;var mn=Ae[Ae.length-1];mn.scale=Pt,mn.font=jt,mn.textColor=hn}else{var Dn=G.parse(F[nt],1,Zn);if(!Dn)return null;var Xn=Dn.type.kind;if(Xn!=="string"&&Xn!=="value"&&Xn!=="null"&&Xn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");He=!0,Ae.push({content:Dn,scale:null,font:null,textColor:null})}}return new Zr(Ae)},Zr.prototype.evaluate=function(F){return new co(this.sections.map(function(G){var ue=G.content.evaluate(F);return Mo(ue)===$r?new to("",ue,null,null,null):new to(pi(ue),null,G.scale?G.scale.evaluate(F):null,G.font?G.font.evaluate(F).join(","):null,G.textColor?G.textColor.evaluate(F):null)}))},Zr.prototype.eachChild=function(F){for(var G=0,ue=this.sections;G-1),ue},go.prototype.eachChild=function(F){F(this.input)},go.prototype.outputDefined=function(){return!1},go.prototype.serialize=function(){return["image",this.input.serialize()]};var oo={"to-boolean":Kn,"to-color":fr,"to-number":wn,"to-string":An},io=function(F,G){this.type=F,this.args=G};io.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[0];if((ue==="to-boolean"||ue==="to-string")&&F.length!==2)return G.error("Expected one argument.");for(var Ae=oo[ue],He=[],nt=1;nt4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":_o(G[0],G[1],G[2],G[3])))return new Jr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new ar(ue||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ct=null,Pt=0,jt=this.args;Pt=G[2]||F[1]<=G[1]||F[3]>=G[3])}function Er(F,G){var ue,Ae=(180+F[0])/360,He=(ue=F[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ue*Math.PI/360)))/360),nt=Math.pow(2,G.z);return[Math.round(Ae*nt*Yn),Math.round(He*nt*Yn)]}function Gt(F,G,ue){return G[1]>F[1]!=ue[1]>F[1]&&F[0]<(ue[0]-G[0])*(F[1]-G[1])/(ue[1]-G[1])+G[0]}function on(F,G){for(var ue=!1,Ae=0,He=G.length;Ae0&&Dn<0||mn<0&&Dn>0}function zn(F,G,ue){for(var Ae=0,He=ue;Aeue[2]){var He=.5*Ae,nt=F[0]-ue[0]>He?-Ae:ue[0]-F[0]>He?Ae:0;nt===0&&(nt=F[0]-ue[2]>He?-Ae:ue[2]-F[0]>He?Ae:0),F[0]+=nt}ir(G,F)}function wo(F,G,ue,Ae){for(var He=Math.pow(2,Ae.z)*Yn,nt=[Ae.x*Yn,Ae.y*Yn],ct=[],Pt=0,jt=F;Pt=0)return!1;var ue=!0;return F.eachChild(function(Ae){ue&&!Mn(Ae,G)&&(ue=!1)}),ue}Eo.parse=function(F,G){if(F.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(F.length-1)+" instead.");if($o(F[1])){var ue=F[1];if(ue.type==="FeatureCollection")for(var Ae=0;AeG))throw new ar("Input is not a number.");ct=Pt-1}return 0}dr.prototype.parse=function(F,G,ue,Ae,He){return He===void 0&&(He={}),G?this.concat(G,ue,Ae)._parse(F,He):this._parse(F,He)},dr.prototype._parse=function(F,G){function ue(hn,mn,Dn){return Dn==="assert"?new Sr(mn,[hn]):Dn==="coerce"?new io(mn,[hn]):hn}if(F!==null&&typeof F!="string"&&typeof F!="boolean"&&typeof F!="number"||(F=["literal",F]),Array.isArray(F)){if(F.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=F[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var He=this.registry[Ae];if(He){var nt=He.parse(F,this);if(!nt)return null;if(this.expectedType){var ct=this.expectedType,Pt=nt.type;if(ct.kind!=="string"&&ct.kind!=="number"&&ct.kind!=="boolean"&&ct.kind!=="object"&&ct.kind!=="array"||Pt.kind!=="value")if(ct.kind!=="color"&&ct.kind!=="formatted"&&ct.kind!=="resolvedImage"||Pt.kind!=="value"&&Pt.kind!=="string"){if(this.checkSubtype(ct,Pt))return null}else nt=ue(nt,ct,G.typeAnnotation||"coerce");else nt=ue(nt,ct,G.typeAnnotation||"assert")}if(!(nt instanceof Hn)&&nt.type.kind!=="resolvedImage"&&xr(nt)){var jt=new jn;try{nt=new Hn(nt.type,nt.evaluate(jt))}catch(hn){return this.error(hn.message),null}}return nt}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return F===void 0?this.error("'undefined' value invalid. Use null instead."):typeof F=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof F+" instead.")},dr.prototype.concat=function(F,G,ue){var Ae=typeof F=="number"?this.path.concat(F):this.path,He=ue?this.scope.concat(ue):this.scope;return new dr(this.registry,Ae,G||null,He,this.errors)},dr.prototype.error=function(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];var Ae=""+this.key+G.map(function(He){return"["+He+"]"}).join("");this.errors.push(new sn(Ae,F))},dr.prototype.checkSubtype=function(F,G){var ue=sr(F,G);return ue&&this.error(ue),ue};var mi=function(F,G,ue){this.type=F,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,He=ue;Ae=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',jt);var mn=G.parse(Pt,hn,He);if(!mn)return null;He=He||mn.type,Ae.push([ct,mn])}return new mi(He,ue,Ae)},mi.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;return Ae>=G[He-1]?ue[He-1].evaluate(F):ue[Oo(G,Ae)].evaluate(F)},mi.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G0&&F.push(this.labels[G]),F.push(this.outputs[G].serialize());return F};var To=Object.freeze({__proto__:null,number:Di,color:function(F,G,ue){return new Jr(Di(F.r,G.r,ue),Di(F.g,G.g,ue),Di(F.b,G.b,ue),Di(F.a,G.a,ue))},array:function(F,G,ue){return F.map(function(Ae,He){return Di(Ae,G[He],ue)})}}),Ia=.95047,Ds=1,fs=1.08883,zi=4/29,yl=6/29,Bs=3*yl*yl,yf=yl*yl*yl,il=Math.PI/180,nf=180/Math.PI;function nh(F){return F>yf?Math.pow(F,.3333333333333333):F/Bs+zi}function gp(F){return F>yl?F*F*F:Bs*(F-zi)}function Qs(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,.4166666666666667)-.055)}function bh(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}function Bl(F){var G=bh(F.r),ue=bh(F.g),Ae=bh(F.b),He=nh((.4124564*G+.3575761*ue+.1804375*Ae)/Ia),nt=nh((.2126729*G+.7151522*ue+.072175*Ae)/Ds);return{l:116*nt-16,a:500*(He-nt),b:200*(nt-nh((.0193339*G+.119192*ue+.9503041*Ae)/fs)),alpha:F.a}}function Tc(F){var G=(F.l+16)/116,ue=isNaN(F.a)?G:G+F.a/500,Ae=isNaN(F.b)?G:G-F.b/200;return G=Ds*gp(G),ue=Ia*gp(ue),Ae=fs*gp(Ae),new Jr(Qs(3.2404542*ue-1.5371385*G-.4985314*Ae),Qs(-.969266*ue+1.8760108*G+.041556*Ae),Qs(.0556434*ue-.2040259*G+1.0572252*Ae),F.alpha)}function iu(F,G,ue){var Ae=G-F;return F+ue*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var au={forward:Bl,reverse:Tc,interpolate:function(F,G,ue){return{l:Di(F.l,G.l,ue),a:Di(F.a,G.a,ue),b:Di(F.b,G.b,ue),alpha:Di(F.alpha,G.alpha,ue)}}},zf={forward:function(F){var G=Bl(F),ue=G.l,Ae=G.a,He=G.b,nt=Math.atan2(He,Ae)*nf;return{h:nt<0?nt+360:nt,c:Math.sqrt(Ae*Ae+He*He),l:ue,alpha:F.a}},reverse:function(F){var G=F.h*il,ue=F.c;return Tc({l:F.l,a:Math.cos(G)*ue,b:Math.sin(G)*ue,alpha:F.alpha})},interpolate:function(F,G,ue){return{h:iu(F.h,G.h,ue),c:Di(F.c,G.c,ue),l:Di(F.l,G.l,ue),alpha:Di(F.alpha,G.alpha,ue)}}},_s=Object.freeze({__proto__:null,lab:au,hcl:zf}),ma=function(F,G,ue,Ae,He){this.type=F,this.operator=G,this.interpolation=ue,this.input=Ae,this.labels=[],this.outputs=[];for(var nt=0,ct=He;nt1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Pt}}if(F.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if((F.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(He=G.parse(He,2,wn)))return null;var jt=[],hn=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?hn=fr:G.expectedType&&G.expectedType.kind!=="value"&&(hn=G.expectedType);for(var mn=0;mn=Dn)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',$n);var Or=G.parse(Xn,mr,hn);if(!Or)return null;hn=hn||Or.type,jt.push([Dn,Or])}return hn.kind==="number"||hn.kind==="color"||hn.kind==="array"&&hn.itemType.kind==="number"&&typeof hn.N=="number"?new ma(hn,ue,Ae,He,jt):G.error("Type "+qn(hn)+" is not interpolatable.")},ma.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;if(Ae>=G[He-1])return ue[He-1].evaluate(F);var nt=Oo(G,Ae),ct=G[nt],Pt=G[nt+1],jt=ma.interpolationFactor(this.interpolation,Ae,ct,Pt),hn=ue[nt].evaluate(F),mn=ue[nt+1].evaluate(F);return this.operator==="interpolate"?To[this.type.kind.toLowerCase()](hn,mn,jt):this.operator==="interpolate-hcl"?zf.reverse(zf.interpolate(zf.forward(hn),zf.forward(mn),jt)):au.reverse(au.interpolate(au.forward(hn),au.forward(mn),jt))},ma.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G=ue.length)throw new ar("Array index out of bounds: "+G+" > "+(ue.length-1)+".");if(G!==Math.floor(G))throw new ar("Array index must be an integer, but found "+G+" instead.");return ue[G]},Al.prototype.eachChild=function(F){F(this.index),F(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Wl=function(F,G){this.type=Kn,this.needle=F,this.haystack=G};Wl.parse=function(F,G){if(F.length!==3)return G.error("Expected 2 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);return ue&&Ae?lr(ue.type,[Kn,An,wn,_n,Zn])?new Wl(ue,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead"):null},Wl.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!ue)return!1;if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");return ue.indexOf(G)>=0},Wl.prototype.eachChild=function(F){F(this.needle),F(this.haystack)},Wl.prototype.outputDefined=function(){return!0},Wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ml=function(F,G,ue){this.type=wn,this.needle=F,this.haystack=G,this.fromIndex=ue};Ml.parse=function(F,G){if(F.length<=2||F.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);if(!ue||!Ae)return null;if(!lr(ue.type,[Kn,An,wn,_n,Zn]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Ml(ue,Ae,He):null}return new Ml(ue,Ae)},Ml.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(F);return ue.indexOf(G,Ae)}return ue.indexOf(G)},Ml.prototype.eachChild=function(F){F(this.needle),F(this.haystack),this.fromIndex&&F(this.fromIndex)},Ml.prototype.outputDefined=function(){return!1},Ml.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var F=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),F]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Jf=function(F,G,ue,Ae,He,nt){this.inputType=F,this.type=G,this.input=ue,this.cases=Ae,this.outputs=He,this.otherwise=nt};Jf.parse=function(F,G){if(F.length<5)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if(F.length%2!=1)return G.error("Expected an even number of arguments.");var ue,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var He={},nt=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return hn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Xn=="number"&&Math.floor(Xn)!==Xn)return hn.error("Numeric branch labels must be integer values.");if(ue){if(hn.checkSubtype(ue,Mo(Xn)))return null}else ue=Mo(Xn);if(He[String(Xn)]!==void 0)return hn.error("Branch labels must be unique.");He[String(Xn)]=nt.length}var $n=G.parse(jt,ct,Ae);if(!$n)return null;Ae=Ae||$n.type,nt.push($n)}var mr=G.parse(F[1],1,Zn);if(!mr)return null;var Or=G.parse(F[F.length-1],F.length-1,Ae);return Or?mr.type.kind!=="value"&&G.concat(1).checkSubtype(ue,mr.type)?null:new Jf(ue,Ae,mr,He,nt,Or):null},Jf.prototype.evaluate=function(F){var G=this.input.evaluate(F);return(Mo(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(F)},Jf.prototype.eachChild=function(F){F(this.input),this.outputs.forEach(F),F(this.otherwise)},Jf.prototype.outputDefined=function(){return this.outputs.every(function(F){return F.outputDefined()})&&this.otherwise.outputDefined()},Jf.prototype.serialize=function(){for(var F=this,G=["match",this.input.serialize()],ue=[],Ae={},He=0,nt=Object.keys(this.cases).sort();He=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,wn);if(!ue||!Ae)return null;if(!lr(ue.type,[vr(Zn),An,Zn]))return G.error("Expected first argument to be of type array or string, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Jl(ue.type,ue,Ae,He):null}return new Jl(ue.type,ue,Ae)},Jl.prototype.evaluate=function(F){var G=this.input.evaluate(F),ue=this.beginIndex.evaluate(F);if(!zr(G,["string","array"]))throw new ar("Expected first argument to be of type array or string, but found "+qn(Mo(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(F);return G.slice(ue,Ae)}return G.slice(ue)},Jl.prototype.eachChild=function(F){F(this.input),F(this.beginIndex),this.endIndex&&F(this.endIndex)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var F=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),F]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var gu=Tu("==",function(F,G,ue){return G===ue},ll),ec=Tu("!=",function(F,G,ue){return G!==ue},function(F,G,ue,Ae){return!ll(0,G,ue,Ae)}),Dc=Tu("<",function(F,G,ue){return G",function(F,G,ue){return G>ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>0}),Lp=Tu("<=",function(F,G,ue){return G<=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)<=0}),rh=Tu(">=",function(F,G,ue){return G>=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>=0}),rf=function(F,G,ue,Ae,He){this.type=An,this.number=F,this.locale=G,this.currency=ue,this.minFractionDigits=Ae,this.maxFractionDigits=He};rf.parse=function(F,G){if(F.length!==3)return G.error("Expected two arguments.");var ue=G.parse(F[1],1,wn);if(!ue)return null;var Ae=F[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var He=null;if(Ae.locale&&!(He=G.parse(Ae.locale,1,An)))return null;var nt=null;if(Ae.currency&&!(nt=G.parse(Ae.currency,1,An)))return null;var ct=null;if(Ae["min-fraction-digits"]&&!(ct=G.parse(Ae["min-fraction-digits"],1,wn)))return null;var Pt=null;return Ae["max-fraction-digits"]&&!(Pt=G.parse(Ae["max-fraction-digits"],1,wn))?null:new rf(ue,He,nt,ct,Pt)},rf.prototype.evaluate=function(F){return new Intl.NumberFormat(this.locale?this.locale.evaluate(F):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(F):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(F):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(F):void 0}).format(this.number.evaluate(F))},rf.prototype.eachChild=function(F){F(this.number),this.locale&&F(this.locale),this.currency&&F(this.currency),this.minFractionDigits&&F(this.minFractionDigits),this.maxFractionDigits&&F(this.maxFractionDigits)},rf.prototype.outputDefined=function(){return!1},rf.prototype.serialize=function(){var F={};return this.locale&&(F.locale=this.locale.serialize()),this.currency&&(F.currency=this.currency.serialize()),this.minFractionDigits&&(F["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(F["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),F]};var of=function(F){this.type=wn,this.input=F};of.parse=function(F,G){if(F.length!==2)return G.error("Expected 1 argument, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+qn(ue.type)+" instead."):new of(ue):null},of.prototype.evaluate=function(F){var G=this.input.evaluate(F);if(typeof G=="string"||Array.isArray(G))return G.length;throw new ar("Expected value to be of type string or array, but found "+qn(Mo(G))+" instead.")},of.prototype.eachChild=function(F){F(this.input)},of.prototype.outputDefined=function(){return!1},of.prototype.serialize=function(){var F=["length"];return this.eachChild(function(G){F.push(G.serialize())}),F};var bf={"==":gu,"!=":ec,">":tc,"<":Dc,">=":rh,"<=":Lp,array:Sr,at:Al,boolean:Sr,case:Nf,coalesce:Uc,collator:On,format:Zr,image:go,in:Wl,"index-of":Ml,interpolate:ma,"interpolate-hcl":ma,"interpolate-lab":ma,length:of,let:Kf,literal:Hn,match:Jf,number:Sr,"number-format":rf,object:Sr,slice:Jl,step:mi,string:Sr,"to-boolean":io,"to-color":io,"to-number":io,"to-string":io,var:Fn,within:Eo};function vu(F,G){var ue=G[0],Ae=G[1],He=G[2],nt=G[3];ue=ue.evaluate(F),Ae=Ae.evaluate(F),He=He.evaluate(F);var ct=nt?nt.evaluate(F):1,Pt=_o(ue,Ae,He,ct);if(Pt)throw new ar(Pt);return new Jr(ue/255*ct,Ae/255*ct,He/255*ct,ct)}function $d(F,G){return F in G}function bl(F,G){var ue=G[F];return ue===void 0?null:ue}function Zu(F){return{type:F}}function Kh(F){return{result:"success",value:F}}function Cu(F){return{result:"error",value:F}}function ed(F){return F["property-type"]==="data-driven"||F["property-type"]==="cross-faded-data-driven"}function Bu(F){return!!F.expression&&F.expression.parameters.indexOf("zoom")>-1}function vd(F){return!!F.expression&&F.expression.interpolated}function cs(F){return F instanceof Number?"number":F instanceof String?"string":F instanceof Boolean?"boolean":Array.isArray(F)?"array":F===null?"null":typeof F}function oh(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)}function Jh(F){return F}function xh(F,G){var ue,Ae,He,nt=G.type==="color",ct=F.stops&&typeof F.stops[0][0]=="object",Pt=ct||F.property!==void 0,jt=ct||!Pt,hn=F.type||(vd(G)?"exponential":"interval");if(nt&&((F=Jt({},F)).stops&&(F.stops=F.stops.map(function(bi){return[bi[0],Jr.parse(bi[1])]})),F.default?F.default=Jr.parse(F.default):F.default=Jr.parse(G.default)),F.colorSpace&&F.colorSpace!=="rgb"&&!_s[F.colorSpace])throw new Error("Unknown color space: "+F.colorSpace);if(hn==="exponential")ue=Ff;else if(hn==="interval")ue=_r;else if(hn==="categorical"){ue=ep,Ae=Object.create(null);for(var mn=0,Dn=F.stops;mn=F.stops[Ae-1][0])return F.stops[Ae-1][1];var He=Oo(F.stops.map(function(nt){return nt[0]}),ue);return F.stops[He][1]}function Ff(F,G,ue){var Ae=F.base!==void 0?F.base:1;if(cs(ue)!=="number")return xf(F.default,G.default);var He=F.stops.length;if(He===1||ue<=F.stops[0][0])return F.stops[0][1];if(ue>=F.stops[He-1][0])return F.stops[He-1][1];var nt=Oo(F.stops.map(function(Dn){return Dn[0]}),ue),ct=function(Dn,Xn,$n,mr){var Or=mr-$n,Kr=Dn-$n;return Or===0?0:Xn===1?Kr/Or:(Math.pow(Xn,Kr)-1)/(Math.pow(Xn,Or)-1)}(ue,Ae,F.stops[nt][0],F.stops[nt+1][0]),Pt=F.stops[nt][1],jt=F.stops[nt+1][1],hn=To[G.type]||Jh;if(F.colorSpace&&F.colorSpace!=="rgb"){var mn=_s[F.colorSpace];hn=function(Dn,Xn){return mn.reverse(mn.interpolate(mn.forward(Dn),mn.forward(Xn),ct))}}return typeof Pt.evaluate=="function"?{evaluate:function(){for(var Dn=[],Xn=arguments.length;Xn--;)Dn[Xn]=arguments[Xn];var $n=Pt.evaluate.apply(void 0,Dn),mr=jt.evaluate.apply(void 0,Dn);if($n!==void 0&&mr!==void 0)return hn($n,mr,ct)}}:hn(Pt,jt,ct)}function yd(F,G,ue){return G.type==="color"?ue=Jr.parse(ue):G.type==="formatted"?ue=co.fromString(ue.toString()):G.type==="resolvedImage"?ue=Fo.fromString(ue.toString()):cs(ue)===G.type||G.type==="enum"&&G.values[ue]||(ue=void 0),xf(ue,F.default,G.default)}Rr.register(bf,{error:[{kind:"error"},[An],function(F,G){var ue=G[0];throw new ar(ue.evaluate(F))}],typeof:[An,[Zn],function(F,G){return qn(Mo(G[0].evaluate(F)))}],"to-rgba":[vr(wn,4),[fr],function(F,G){return G[0].evaluate(F).toArray()}],rgb:[fr,[wn,wn,wn],vu],rgba:[fr,[wn,wn,wn,wn],vu],has:{type:Kn,overloads:[[[An],function(F,G){return $d(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return $d(ue.evaluate(F),Ae.evaluate(F))}]]},get:{type:Zn,overloads:[[[An],function(F,G){return bl(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return bl(ue.evaluate(F),Ae.evaluate(F))}]]},"feature-state":[Zn,[An],function(F,G){return bl(G[0].evaluate(F),F.featureState||{})}],properties:[Un,[],function(F){return F.properties()}],"geometry-type":[An,[],function(F){return F.geometryType()}],id:[Zn,[],function(F){return F.id()}],zoom:[wn,[],function(F){return F.globals.zoom}],"heatmap-density":[wn,[],function(F){return F.globals.heatmapDensity||0}],"line-progress":[wn,[],function(F){return F.globals.lineProgress||0}],accumulated:[Zn,[],function(F){return F.globals.accumulated===void 0?null:F.globals.accumulated}],"+":[wn,Zu(wn),function(F,G){for(var ue=0,Ae=0,He=G;Ae":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>nt}],"filter-id->":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>He}],"filter-<=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He<=nt}],"filter-id-<=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae<=He}],"filter->=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>=nt}],"filter-id->=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>=He}],"filter-has":[Kn,[Zn],function(F,G){return G[0].value in F.properties()}],"filter-has-id":[Kn,[],function(F){return F.id()!==null&&F.id()!==void 0}],"filter-type-in":[Kn,[vr(An)],function(F,G){return G[0].value.indexOf(F.geometryType())>=0}],"filter-id-in":[Kn,[vr(Zn)],function(F,G){return G[0].value.indexOf(F.id())>=0}],"filter-in-small":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0];return G[1].value.indexOf(F.properties()[ue.value])>=0}],"filter-in-large":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0],Ae=G[1];return function(He,nt,ct,Pt){for(;ct<=Pt;){var jt=ct+Pt>>1;if(nt[jt]===He)return!0;nt[jt]>He?Pt=jt-1:ct=jt+1}return!1}(F.properties()[ue.value],Ae.value,0,Ae.value.length-1)}],all:{type:Kn,overloads:[[[Kn,Kn],function(F,G){var ue=G[0],Ae=G[1];return ue.evaluate(F)&&Ae.evaluate(F)}],[Zu(Kn),function(F,G){for(var ue=0,Ae=G;ue0&&typeof F[0]=="string"&&F[0]in bf}function zu(F,G){var ue=new dr(bf,[],G?function(He){var nt={color:fr,string:An,number:wn,enum:An,boolean:Kn,formatted:Br,resolvedImage:$r};return He.type==="array"?vr(nt[He.value]||Zn,He.length):nt[He.type]}(G):void 0),Ae=ue.parse(F,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Kh(new bd(Ae,G)):Cu(ue.errors)}bd.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._evaluator.globals=F,this._evaluator.feature=G,this._evaluator.featureState=ue,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt,this.expression.evaluate(this._evaluator)},bd.prototype.evaluate=function(F,G,ue,Ae,He,nt){this._evaluator.globals=F,this._evaluator.feature=G||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!=ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new ar("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};var va=function(F,G){this.kind=F,this._styleExpression=G,this.isStateDependent=F!=="constant"&&!Qt(G.expression)};va.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},va.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)};var El=function(F,G,ue,Ae){this.kind=F,this.zoomStops=ue,this._styleExpression=G,this.isStateDependent=F!=="camera"&&!Qt(G.expression),this.interpolationType=Ae};function _f(F,G){if((F=zu(F,G)).result==="error")return F;var ue=F.value.expression,Ae=zo(ue);if(!Ae&&!ed(G))return Cu([new sn("","data expressions not supported")]);var He=Mn(ue,["zoom"]);if(!He&&!Bu(G))return Cu([new sn("","zoom expressions not supported")]);var nt=ih(ue);if(!nt&&!He)return Cu([new sn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(nt instanceof sn)return Cu([nt]);if(nt instanceof ma&&!vd(G))return Cu([new sn("",'"interpolate" expressions cannot be used with this property')]);if(!nt)return Kh(new va(Ae?"constant":"source",F.value));var ct=nt instanceof ma?nt.interpolation:void 0;return Kh(new El(Ae?"camera":"composite",F.value,nt.labels,ct))}El.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},El.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)},El.prototype.interpolationFactor=function(F,G,ue){return this.interpolationType?ma.interpolationFactor(this.interpolationType,F,G,ue):0};var $f=function(F,G){this._parameters=F,this._specification=G,Jt(this,xh(this._parameters,this._specification))};function ih(F){var G=null;if(F instanceof Kf)G=ih(F.result);else if(F instanceof Uc)for(var ue=0,Ae=F.args;ueAe.maximum?[new qt(G,ue,ue+" is greater than the maximum value "+Ae.maximum)]:[]}function af(F){var G,ue,Ae,He=F.valueSpec,nt=Zt(F.value.type),ct={},Pt=nt!=="categorical"&&F.value.property===void 0,jt=!Pt,hn=cs(F.value.stops)==="array"&&cs(F.value.stops[0])==="array"&&cs(F.value.stops[0][0])==="object",mn=yu({key:F.key,value:F.value,valueSpec:F.styleSpec.function,style:F.style,styleSpec:F.styleSpec,objectElementValidators:{stops:function($n){if(nt==="identity")return[new qt($n.key,$n.value,'identity function may not have a "stops" property')];var mr=[],Or=$n.value;return mr=mr.concat(jc({key:$n.key,value:Or,valueSpec:$n.valueSpec,style:$n.style,styleSpec:$n.styleSpec,arrayElementValidator:Dn})),cs(Or)==="array"&&Or.length===0&&mr.push(new qt($n.key,Or,"array must have at least one stop")),mr},default:function($n){return bc({key:$n.key,value:$n.value,valueSpec:He,style:$n.style,styleSpec:$n.styleSpec})}}});return nt==="identity"&&Pt&&mn.push(new qt(F.key,F.value,'missing required property "property"')),nt==="identity"||F.value.stops||mn.push(new qt(F.key,F.value,'missing required property "stops"')),nt==="exponential"&&F.valueSpec.expression&&!vd(F.valueSpec)&&mn.push(new qt(F.key,F.value,"exponential functions not supported")),F.styleSpec.$version>=8&&(jt&&!ed(F.valueSpec)?mn.push(new qt(F.key,F.value,"property functions not supported")):Pt&&!Bu(F.valueSpec)&&mn.push(new qt(F.key,F.value,"zoom functions not supported"))),nt!=="categorical"&&!hn||F.value.property!==void 0||mn.push(new qt(F.key,F.value,'"property" property is required')),mn;function Dn($n){var mr=[],Or=$n.value,Kr=$n.key;if(cs(Or)!=="array")return[new qt(Kr,Or,"array expected, "+cs(Or)+" found")];if(Or.length!==2)return[new qt(Kr,Or,"array length 2 expected, length "+Or.length+" found")];if(hn){if(cs(Or[0])!=="object")return[new qt(Kr,Or,"object expected, "+cs(Or[0])+" found")];if(Or[0].zoom===void 0)return[new qt(Kr,Or,"object stop key must have zoom")];if(Or[0].value===void 0)return[new qt(Kr,Or,"object stop key must have value")];if(Ae&&Ae>Zt(Or[0].zoom))return[new qt(Kr,Or[0].zoom,"stop zoom values must appear in ascending order")];Zt(Or[0].zoom)!==Ae&&(Ae=Zt(Or[0].zoom),ue=void 0,ct={}),mr=mr.concat(yu({key:Kr+"[0]",value:Or[0],valueSpec:{zoom:{}},style:$n.style,styleSpec:$n.styleSpec,objectElementValidators:{zoom:Nh,value:Xn}}))}else mr=mr.concat(Xn({key:Kr+"[0]",value:Or[0],valueSpec:{},style:$n.style,styleSpec:$n.styleSpec},Or));return _h(Nt(Or[1]))?mr.concat([new qt(Kr+"[1]",Or[1],"expressions are not allowed in function stops.")]):mr.concat(bc({key:Kr+"[1]",value:Or[1],valueSpec:He,style:$n.style,styleSpec:$n.styleSpec}))}function Xn($n,mr){var Or=cs($n.value),Kr=Zt($n.value),Hr=$n.value!==null?$n.value:mr;if(G){if(Or!==G)return[new qt($n.key,Hr,Or+" stop domain type must match previous stop domain type "+G)]}else G=Or;if(Or!=="number"&&Or!=="string"&&Or!=="boolean")return[new qt($n.key,Hr,"stop domain value must be a number, string, or boolean")];if(Or!=="number"&&nt!=="categorical"){var fo="number expected, "+Or+" found";return ed(He)&&nt===void 0&&(fo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new qt($n.key,Hr,fo)]}return nt!=="categorical"||Or!=="number"||isFinite(Kr)&&Math.floor(Kr)===Kr?nt!=="categorical"&&Or==="number"&&ue!==void 0&&Kr=2&&F[1]!=="$id"&&F[1]!=="$type";case"in":return F.length>=3&&(typeof F[1]!="string"||Array.isArray(F[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return F.length!==3||Array.isArray(F[1])||Array.isArray(F[2]);case"any":case"all":for(var G=0,ue=F.slice(1);GG?1:0}function gs(F){if(!Array.isArray(F))return!1;if(F[0]==="within")return!0;for(var G=1;G"||ue==="<="||ue===">="?Cc(F[1],F[2],ue):ue==="any"?(G=F.slice(1),["any"].concat(G.map(yc))):ue==="all"?["all"].concat(F.slice(1).map(yc)):ue==="none"?["all"].concat(F.slice(1).map(yc).map(Ks)):ue==="in"?Nu(F[1],F.slice(2)):ue==="!in"?Ks(Nu(F[1],F.slice(2))):ue==="has"?Gs(F[1]):ue==="!has"?Ks(Gs(F[1])):ue!=="within"||F}function Cc(F,G,ue){switch(F){case"$type":return["filter-type-"+ue,G];case"$id":return["filter-id-"+ue,G];default:return["filter-"+ue,F,G]}}function Nu(F,G){if(G.length===0)return!1;switch(F){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(ue){return typeof ue!=typeof G[0]})?["filter-in-large",F,["literal",G.sort(vc)]]:["filter-in-small",F,["literal",G]]}}function Gs(F){switch(F){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",F]}}function Ks(F){return["!",F]}function Ac(F){return Bc(Nt(F.value))?td(Jt({},F,{expressionContext:"filter",valueSpec:{value:"boolean"}})):_d(F)}function _d(F){var G=F.value,ue=F.key;if(cs(G)!=="array")return[new qt(ue,G,"array expected, "+cs(G)+" found")];var Ae,He=F.styleSpec,nt=[];if(G.length<1)return[new qt(ue,G,"filter array must have at least 1 element")];switch(nt=nt.concat(sf({key:ue+"[0]",value:G[0],valueSpec:He.filter_operator,style:F.style,styleSpec:F.styleSpec})),Zt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Zt(G[1])==="$type"&&nt.push(new qt(ue,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&nt.push(new qt(ue,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=cs(G[1]))!=="string"&&nt.push(new qt(ue+"[1]",G[1],"string expected, "+Ae+" found"));for(var ct=2;ct=mn[$n+0]&&Ae>=mn[$n+1])?(ct[Xn]=!0,nt.push(hn[Xn])):ct[Xn]=!1}}},Of.prototype._forEachCell=function(F,G,ue,Ae,He,nt,ct,Pt){for(var jt=this._convertToCellCoord(F),hn=this._convertToCellCoord(G),mn=this._convertToCellCoord(ue),Dn=this._convertToCellCoord(Ae),Xn=jt;Xn<=mn;Xn++)for(var $n=hn;$n<=Dn;$n++){var mr=this.d*$n+Xn;if((!Pt||Pt(this._convertFromCellCoord(Xn),this._convertFromCellCoord($n),this._convertFromCellCoord(Xn+1),this._convertFromCellCoord($n+1)))&&He.call(this,F,G,ue,Ae,mr,nt,ct,Pt))return}},Of.prototype._convertFromCellCoord=function(F){return(F-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(F){return Math.max(0,Math.min(this.d-1,Math.floor(F*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var F=this.cells,G=cf+this.cells.length+1+1,ue=0,Ae=0;Ae=0)){var Dn=F[mn];hn[mn]=Mu[jt].shallow.indexOf(mn)>=0?Dn:xc(Dn,G)}F instanceof Error&&(hn.message=F.message)}if(hn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(hn.$name=jt),hn}throw new Error("can't serialize object of type "+typeof F)}function Kc(F){if(F==null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||F instanceof Boolean||F instanceof Number||F instanceof String||F instanceof Date||F instanceof RegExp||qu(F)||zl(F)||ArrayBuffer.isView(F)||F instanceof aa)return F;if(Array.isArray(F))return F.map(Kc);if(typeof F=="object"){var G=F.$name||"Object",ue=Mu[G].klass;if(!ue)throw new Error("can't deserialize unregistered class "+G);if(ue.deserialize)return ue.deserialize(F);for(var Ae=Object.create(ue.prototype),He=0,nt=Object.keys(F);He=0?Pt:Kc(Pt)}}return Ae}throw new Error("can't deserialize object of type "+typeof F)}var jd=function(){this.first=!0};jd.prototype.update=function(F,G){var ue=Math.floor(F);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=F,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&F<=255},Arabic:function(F){return F>=1536&&F<=1791},"Arabic Supplement":function(F){return F>=1872&&F<=1919},"Arabic Extended-A":function(F){return F>=2208&&F<=2303},"Hangul Jamo":function(F){return F>=4352&&F<=4607},"Unified Canadian Aboriginal Syllabics":function(F){return F>=5120&&F<=5759},Khmer:function(F){return F>=6016&&F<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(F){return F>=6320&&F<=6399},"General Punctuation":function(F){return F>=8192&&F<=8303},"Letterlike Symbols":function(F){return F>=8448&&F<=8527},"Number Forms":function(F){return F>=8528&&F<=8591},"Miscellaneous Technical":function(F){return F>=8960&&F<=9215},"Control Pictures":function(F){return F>=9216&&F<=9279},"Optical Character Recognition":function(F){return F>=9280&&F<=9311},"Enclosed Alphanumerics":function(F){return F>=9312&&F<=9471},"Geometric Shapes":function(F){return F>=9632&&F<=9727},"Miscellaneous Symbols":function(F){return F>=9728&&F<=9983},"Miscellaneous Symbols and Arrows":function(F){return F>=11008&&F<=11263},"CJK Radicals Supplement":function(F){return F>=11904&&F<=12031},"Kangxi Radicals":function(F){return F>=12032&&F<=12255},"Ideographic Description Characters":function(F){return F>=12272&&F<=12287},"CJK Symbols and Punctuation":function(F){return F>=12288&&F<=12351},Hiragana:function(F){return F>=12352&&F<=12447},Katakana:function(F){return F>=12448&&F<=12543},Bopomofo:function(F){return F>=12544&&F<=12591},"Hangul Compatibility Jamo":function(F){return F>=12592&&F<=12687},Kanbun:function(F){return F>=12688&&F<=12703},"Bopomofo Extended":function(F){return F>=12704&&F<=12735},"CJK Strokes":function(F){return F>=12736&&F<=12783},"Katakana Phonetic Extensions":function(F){return F>=12784&&F<=12799},"Enclosed CJK Letters and Months":function(F){return F>=12800&&F<=13055},"CJK Compatibility":function(F){return F>=13056&&F<=13311},"CJK Unified Ideographs Extension A":function(F){return F>=13312&&F<=19903},"Yijing Hexagram Symbols":function(F){return F>=19904&&F<=19967},"CJK Unified Ideographs":function(F){return F>=19968&&F<=40959},"Yi Syllables":function(F){return F>=40960&&F<=42127},"Yi Radicals":function(F){return F>=42128&&F<=42191},"Hangul Jamo Extended-A":function(F){return F>=43360&&F<=43391},"Hangul Syllables":function(F){return F>=44032&&F<=55215},"Hangul Jamo Extended-B":function(F){return F>=55216&&F<=55295},"Private Use Area":function(F){return F>=57344&&F<=63743},"CJK Compatibility Ideographs":function(F){return F>=63744&&F<=64255},"Arabic Presentation Forms-A":function(F){return F>=64336&&F<=65023},"Vertical Forms":function(F){return F>=65040&&F<=65055},"CJK Compatibility Forms":function(F){return F>=65072&&F<=65103},"Small Form Variants":function(F){return F>=65104&&F<=65135},"Arabic Presentation Forms-B":function(F){return F>=65136&&F<=65279},"Halfwidth and Fullwidth Forms":function(F){return F>=65280&&F<=65519}};function nd(F){for(var G=0,ue=F;G=65097&&F<=65103)||ii["CJK Compatibility Ideographs"](F)||ii["CJK Compatibility"](F)||ii["CJK Radicals Supplement"](F)||ii["CJK Strokes"](F)||!(!ii["CJK Symbols and Punctuation"](F)||F>=12296&&F<=12305||F>=12308&&F<=12319||F===12336)||ii["CJK Unified Ideographs Extension A"](F)||ii["CJK Unified Ideographs"](F)||ii["Enclosed CJK Letters and Months"](F)||ii["Hangul Compatibility Jamo"](F)||ii["Hangul Jamo Extended-A"](F)||ii["Hangul Jamo Extended-B"](F)||ii["Hangul Jamo"](F)||ii["Hangul Syllables"](F)||ii.Hiragana(F)||ii["Ideographic Description Characters"](F)||ii.Kanbun(F)||ii["Kangxi Radicals"](F)||ii["Katakana Phonetic Extensions"](F)||ii.Katakana(F)&&F!==12540||!(!ii["Halfwidth and Fullwidth Forms"](F)||F===65288||F===65289||F===65293||F>=65306&&F<=65310||F===65339||F===65341||F===65343||F>=65371&&F<=65503||F===65507||F>=65512&&F<=65519)||!(!ii["Small Form Variants"](F)||F>=65112&&F<=65118||F>=65123&&F<=65126)||ii["Unified Canadian Aboriginal Syllabics"](F)||ii["Unified Canadian Aboriginal Syllabics Extended"](F)||ii["Vertical Forms"](F)||ii["Yijing Hexagram Symbols"](F)||ii["Yi Syllables"](F)||ii["Yi Radicals"](F))))}function Yl(F){return!(al(F)||function(G){return!!(ii["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||ii["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||ii["Letterlike Symbols"](G)||ii["Number Forms"](G)||ii["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||ii["Control Pictures"](G)&&G!==9251||ii["Optical Character Recognition"](G)||ii["Enclosed Alphanumerics"](G)||ii["Geometric Shapes"](G)||ii["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||ii["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||ii["CJK Symbols and Punctuation"](G)||ii.Katakana(G)||ii["Private Use Area"](G)||ii["CJK Compatibility Forms"](G)||ii["Small Form Variants"](G)||ii["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(F))}function uf(F){return ii.Arabic(F)||ii["Arabic Supplement"](F)||ii["Arabic Extended-A"](F)||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function hs(F){return F>=1424&&F<=2303||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function Mc(F,G){return!(!G&&hs(F)||F>=2304&&F<=3583||F>=3840&&F<=4255||ii.Khmer(F))}function Eu(F){for(var G=0,ue=F;G-1&&(Ls=su),Ca&&Ca(F)};function wt(){Kt.fire(new it("pluginStateChange",{pluginStatus:Ls,pluginURL:Ec}))}var Kt=new Bt,En=function(){return Ls},pr=function(){if(Ls!==xu||!Ec)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ls=ws,wt(),Ec&&Pn({url:Ec},function(F){F?_u(F):(Ls=Fu,wt())})},wr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ls===Fu||wr.applyArabicShaping!=null},isLoading:function(){return Ls===ws},setState:function(F){Ls=F.pluginStatus,Ec=F.pluginURL},isParsed:function(){return wr.applyArabicShaping!=null&&wr.processBidirectionalText!=null&&wr.processStyledBidirectionalText!=null},getPluginURL:function(){return Ec}},uo=function(F,G){this.zoom=F,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jd,this.transition={})};uo.prototype.isSupportedScript=function(F){return function(G,ue){for(var Ae=0,He=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*G}};var Bi=function(F,G){this.property=F,this.value=G,this.expression=function(ue,Ae){if(oh(ue))return new $f(ue,Ae);if(_h(ue)){var He=_f(ue,Ae);if(He.result==="error")throw new Error(He.value.map(function(ct){return ct.key+": "+ct.message}).join(", "));return He.value}var nt=ue;return typeof ue=="string"&&Ae.type==="color"&&(nt=Jr.parse(ue)),{kind:"constant",evaluate:function(){return nt}}}(G===void 0?F.specification.default:G,F.specification)};Bi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Bi.prototype.possiblyEvaluate=function(F,G,ue){return this.property.possiblyEvaluate(this,F,G,ue)};var ya=function(F){this.property=F,this.value=new Bi(F,void 0)};ya.prototype.transitioned=function(F,G){return new Qi(this.property,this.value,G,x({},F.transition,this.transition),F.now)},ya.prototype.untransitioned=function(){return new Qi(this.property,this.value,null,{},0)};var Ni=function(F){this._properties=F,this._values=Object.create(F.defaultTransitionablePropertyValues)};Ni.prototype.getValue=function(F){return I(this._values[F].value.value)},Ni.prototype.setValue=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].value=new Bi(this._values[F].property,G===null?void 0:I(G))},Ni.prototype.getTransition=function(F){return I(this._values[F].transition)},Ni.prototype.setTransition=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].transition=I(G)||void 0},Ni.prototype.serialize=function(){for(var F={},G=0,ue=Object.keys(this._values);Gthis.end)return this.prior=null,He;if(this.value.isDataDriven())return this.prior=null,He;if(Ae=1)return 1;var jt=Pt*Pt,hn=jt*Pt;return 4*(Pt<.5?hn:3*(Pt-jt)+hn-.75)}(ct))}return He};var Ws=function(F){this._properties=F,this._values=Object.create(F.defaultTransitioningPropertyValues)};Ws.prototype.possiblyEvaluate=function(F,G,ue){for(var Ae=new Wu(this._properties),He=0,nt=Object.keys(this._values);Hent.zoomHistory.lastIntegerZoom?{from:ue,to:Ae}:{from:He,to:Ae}},G.prototype.interpolate=function(ue){return ue},G}(Aa),Vf=function(F){this.specification=F};Vf.prototype.possiblyEvaluate=function(F,G,ue,Ae){if(F.value!==void 0){if(F.expression.kind==="constant"){var He=F.expression.evaluate(G,null,{},ue,Ae);return this._calculate(He,He,He,G)}return this._calculate(F.expression.evaluate(new uo(Math.floor(G.zoom-1),G)),F.expression.evaluate(new uo(Math.floor(G.zoom),G)),F.expression.evaluate(new uo(Math.floor(G.zoom+1),G)),G)}},Vf.prototype._calculate=function(F,G,ue,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:F,to:G}:{from:ue,to:G}},Vf.prototype.interpolate=function(F){return F};var sh=function(F){this.specification=F};sh.prototype.possiblyEvaluate=function(F,G,ue,Ae){return!!F.expression.evaluate(G,null,{},ue,Ae)},sh.prototype.interpolate=function(){return!1};var _c=function(F){for(var G in this.properties=F,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],F){var ue=F[G];ue.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Bi(ue,void 0),He=this.defaultTransitionablePropertyValues[G]=new ya(ue);this.defaultTransitioningPropertyValues[G]=He.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};Ri("DataDrivenProperty",Aa),Ri("DataConstantProperty",Ki),Ri("CrossFadedDataDrivenProperty",Pl),Ri("CrossFadedProperty",Vf),Ri("ColorRampProperty",sh);var Xl="-transition",pl=function(F){function G(ue,Ae){if(F.call(this),this.id=ue.id,this.type=ue.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},ue.type!=="custom"&&(this.metadata=ue.metadata,this.minzoom=ue.minzoom,this.maxzoom=ue.maxzoom,ue.type!=="background"&&(this.source=ue.source,this.sourceLayer=ue["source-layer"],this.filter=ue.filter),Ae.layout&&(this._unevaluatedLayout=new nl(Ae.layout)),Ae.paint)){for(var He in this._transitionablePaint=new Ni(Ae.paint),ue.paint)this.setPaintProperty(He,ue.paint[He],{validate:!1});for(var nt in ue.layout)this.setLayoutProperty(nt,ue.layout[nt],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wu(Ae.paint)}}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},G.prototype.setLayoutProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".layout."+ue;if(this._validate(ds,nt,ue,Ae,He))return}ue!=="visibility"?this._unevaluatedLayout.setValue(ue,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(ue){return L(ue,Xl)?this._transitionablePaint.getTransition(ue.slice(0,-11)):this._transitionablePaint.getValue(ue)},G.prototype.setPaintProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".paint."+ue;if(this._validate(Ol,nt,ue,Ae,He))return!1}if(L(ue,Xl))return this._transitionablePaint.setTransition(ue.slice(0,-11),Ae||void 0),!1;var ct=this._transitionablePaint._values[ue],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",jt=ct.value.isDataDriven(),hn=ct.value;this._transitionablePaint.setValue(ue,Ae),this._handleSpecialPaintPropertyUpdate(ue);var mn=this._transitionablePaint._values[ue].value;return mn.isDataDriven()||jt||Pt||this._handleOverridablePaintPropertyUpdate(ue,hn,mn)},G.prototype._handleSpecialPaintPropertyUpdate=function(ue){},G.prototype._handleOverridablePaintPropertyUpdate=function(ue,Ae,He){return!1},G.prototype.isHidden=function(ue){return!!(this.minzoom&&ue=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(ue,Ae){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,Ae)},G.prototype.serialize=function(){var ue={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),k(ue,function(Ae,He){return!(Ae===void 0||He==="layout"&&!Object.keys(Ae).length||He==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(ue,Ae,He,nt,ct){return ct===void 0&&(ct={}),(!ct||ct.validate!==!1)&&zc(this,ue.call(bu,{key:Ae,layerType:this.type,objectKey:He,value:nt,styleSpec:_t,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var ue in this.paint._values){var Ae=this.paint.get(ue);if(Ae instanceof Fs&&ed(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Bt),Pc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Uf=function(F,G){this._structArray=F,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Os=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Si(F,G){G===void 0&&(G=1);var ue=0,Ae=0;return{members:F.map(function(He){var nt,ct=(nt=He.type,Pc[nt].BYTES_PER_ELEMENT),Pt=ue=lc(ue,Math.max(G,ct)),jt=He.components||1;return Ae=Math.max(Ae,ct),ue+=ct*jt,{name:He.name,type:He.type,components:jt,offset:Pt}}),size:lc(ue,Math.max(Ae,G)),alignment:G}}function lc(F,G){return Math.ceil(F/G)*G}Os.serialize=function(F,G){return F._trim(),G&&(F.isTransferred=!0,G.push(F.arrayBuffer)),{length:F.length,arrayBuffer:F.arrayBuffer}},Os.deserialize=function(F){var G=Object.create(this.prototype);return G.arrayBuffer=F.arrayBuffer,G.length=F.length,G.capacity=F.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Os.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Os.prototype.clear=function(){this.length=0},Os.prototype.resize=function(F){this.reserve(F),this.length=F},Os.prototype.reserve=function(F){if(F>this.capacity){this.capacity=Math.max(F,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Os.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var rd=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.int16[nt+0]=Ae,this.int16[nt+1]=He,ue},G}(Os);rd.prototype.bytesPerElement=4,Ri("StructArrayLayout2i4",rd);var tp=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.int16[Pt+0]=Ae,this.int16[Pt+1]=He,this.int16[Pt+2]=nt,this.int16[Pt+3]=ct,ue},G}(Os);tp.prototype.bytesPerElement=8,Ri("StructArrayLayout4i8",tp);var kt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);kt.prototype.bytesPerElement=12,Ri("StructArrayLayout2i4i12",kt);var It=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=4*ue,mn=8*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.uint8[mn+4]=nt,this.uint8[mn+5]=ct,this.uint8[mn+6]=Pt,this.uint8[mn+7]=jt,ue},G}(Os);It.prototype.bytesPerElement=8,Ri("StructArrayLayout2i4ub8",It);var Ut=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.float32[nt+0]=Ae,this.float32[nt+1]=He,ue},G}(Os);Ut.prototype.bytesPerElement=8,Ri("StructArrayLayout2f8",Ut);var J=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=this.length;return this.resize(Xn+1),this.emplace(Xn,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn){var $n=10*ue;return this.uint16[$n+0]=Ae,this.uint16[$n+1]=He,this.uint16[$n+2]=nt,this.uint16[$n+3]=ct,this.uint16[$n+4]=Pt,this.uint16[$n+5]=jt,this.uint16[$n+6]=hn,this.uint16[$n+7]=mn,this.uint16[$n+8]=Dn,this.uint16[$n+9]=Xn,ue},G}(Os);J.prototype.bytesPerElement=20,Ri("StructArrayLayout10ui20",J);var le=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=12*ue;return this.int16[Or+0]=Ae,this.int16[Or+1]=He,this.int16[Or+2]=nt,this.int16[Or+3]=ct,this.uint16[Or+4]=Pt,this.uint16[Or+5]=jt,this.uint16[Or+6]=hn,this.uint16[Or+7]=mn,this.int16[Or+8]=Dn,this.int16[Or+9]=Xn,this.int16[Or+10]=$n,this.int16[Or+11]=mr,ue},G}(Os);le.prototype.bytesPerElement=24,Ri("StructArrayLayout4i4ui4i24",le);var ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.float32[ct+0]=Ae,this.float32[ct+1]=He,this.float32[ct+2]=nt,ue},G}(Os);ne.prototype.bytesPerElement=12,Ri("StructArrayLayout3f12",ne);var V=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint32[He+0]=Ae,ue},G}(Os);V.prototype.bytesPerElement=4,Ri("StructArrayLayout1ul4",V);var ie=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,ue,Ae,He,nt,ct,Pt,jt,hn,mn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=10*ue,$n=5*ue;return this.int16[Xn+0]=Ae,this.int16[Xn+1]=He,this.int16[Xn+2]=nt,this.int16[Xn+3]=ct,this.int16[Xn+4]=Pt,this.int16[Xn+5]=jt,this.uint32[$n+3]=hn,this.uint16[Xn+8]=mn,this.uint16[Xn+9]=Dn,ue},G}(Os);ie.prototype.bytesPerElement=20,Ri("StructArrayLayout6i1ul2ui20",ie);var ge=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);ge.prototype.bytesPerElement=12,Ri("StructArrayLayout2i2i2i12",ge);var xe=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,Ae,He,nt,ct)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt){var jt=4*ue,hn=8*ue;return this.float32[jt+0]=Ae,this.float32[jt+1]=He,this.float32[jt+2]=nt,this.int16[hn+6]=ct,this.int16[hn+7]=Pt,ue},G}(Os);xe.prototype.bytesPerElement=16,Ri("StructArrayLayout2f1f2i16",xe);var Ee=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=12*ue,jt=3*ue;return this.uint8[Pt+0]=Ae,this.uint8[Pt+1]=He,this.float32[jt+1]=nt,this.float32[jt+2]=ct,ue},G}(Os);Ee.prototype.bytesPerElement=12,Ri("StructArrayLayout2ub2f12",Ee);var Ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.uint16[ct+0]=Ae,this.uint16[ct+1]=He,this.uint16[ct+2]=nt,ue},G}(Os);Ne.prototype.bytesPerElement=6,Ri("StructArrayLayout3ui6",Ne);var et=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo){var mo=this.length;return this.resize(mo+1),this.emplace(mo,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo){var Io=24*ue,Qo=12*ue,Po=48*ue;return this.int16[Io+0]=Ae,this.int16[Io+1]=He,this.uint16[Io+2]=nt,this.uint16[Io+3]=ct,this.uint32[Qo+2]=Pt,this.uint32[Qo+3]=jt,this.uint32[Qo+4]=hn,this.uint16[Io+10]=mn,this.uint16[Io+11]=Dn,this.uint16[Io+12]=Xn,this.float32[Qo+7]=$n,this.float32[Qo+8]=mr,this.uint8[Po+36]=Or,this.uint8[Po+37]=Kr,this.uint8[Po+38]=Hr,this.uint32[Qo+10]=fo,this.int16[Io+22]=mo,ue},G}(Os);et.prototype.bytesPerElement=48,Ri("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",et);var rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as){var Da=this.length;return this.resize(Da+1),this.emplace(Da,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as,Da){var ba=34*ue,fl=17*ue;return this.int16[ba+0]=Ae,this.int16[ba+1]=He,this.int16[ba+2]=nt,this.int16[ba+3]=ct,this.int16[ba+4]=Pt,this.int16[ba+5]=jt,this.int16[ba+6]=hn,this.int16[ba+7]=mn,this.uint16[ba+8]=Dn,this.uint16[ba+9]=Xn,this.uint16[ba+10]=$n,this.uint16[ba+11]=mr,this.uint16[ba+12]=Or,this.uint16[ba+13]=Kr,this.uint16[ba+14]=Hr,this.uint16[ba+15]=fo,this.uint16[ba+16]=mo,this.uint16[ba+17]=Io,this.uint16[ba+18]=Qo,this.uint16[ba+19]=Po,this.uint16[ba+20]=Ii,this.uint16[ba+21]=bi,this.uint16[ba+22]=Zi,this.uint32[fl+12]=ra,this.float32[fl+13]=ka,this.float32[fl+14]=ea,this.float32[fl+15]=as,this.float32[fl+16]=Da,ue},G}(Os);rt.prototype.bytesPerElement=68,Ri("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.float32[He+0]=Ae,ue},G}(Os);dt.prototype.bytesPerElement=4,Ri("StructArrayLayout1f4",dt);var gt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.int16[ct+0]=Ae,this.int16[ct+1]=He,this.int16[ct+2]=nt,ue},G}(Os);gt.prototype.bytesPerElement=6,Ri("StructArrayLayout3i6",gt);var Rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=2*ue,Pt=4*ue;return this.uint32[ct+0]=Ae,this.uint16[Pt+2]=He,this.uint16[Pt+3]=nt,ue},G}(Os);Rt.prototype.bytesPerElement=8,Ri("StructArrayLayout1ul2ui8",Rt);var Mt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.uint16[nt+0]=Ae,this.uint16[nt+1]=He,ue},G}(Os);Mt.prototype.bytesPerElement=4,Ri("StructArrayLayout2ui4",Mt);var Xt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint16[He+0]=Ae,ue},G}(Os);Xt.prototype.bytesPerElement=2,Ri("StructArrayLayout1ui2",Xt);var dn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.float32[Pt+0]=Ae,this.float32[Pt+1]=He,this.float32[Pt+2]=nt,this.float32[Pt+3]=ct,ue},G}(Os);dn.prototype.bytesPerElement=16,Ri("StructArrayLayout4f16",dn);var bn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return ue.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ue.x1.get=function(){return this._structArray.int16[this._pos2+2]},ue.y1.get=function(){return this._structArray.int16[this._pos2+3]},ue.x2.get=function(){return this._structArray.int16[this._pos2+4]},ue.y2.get=function(){return this._structArray.int16[this._pos2+5]},ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,ue),G}(Uf);bn.prototype.size=20;var vn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new bn(this,ue)},G}(ie);Ri("CollisionBoxArray",vn);var Ln=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ue.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ue.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ue.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ue.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ue.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ue.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ue.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ue.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ue.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ue.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},ue.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ue.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},ue.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,ue),G}(Uf);Ln.prototype.size=48;var gn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Ln(this,ue)},G}(et);Ri("PlacedSymbolArray",gn);var Jn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ue.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ue.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ue.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ue.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},ue.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},ue.key.get=function(){return this._structArray.uint16[this._pos2+8]},ue.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ue.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ue.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ue.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ue.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},ue.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},ue.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},ue.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},ue.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},ue.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},ue.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},ue.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},ue.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},ue.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},ue.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},ue.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},ue.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,ue),G}(Uf);Jn.prototype.size=68;var pn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Jn(this,ue)},G}(rt);Ri("SymbolInstanceArray",pn);var In=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(ue){return this.float32[1*ue+0]},G}(dt);Ri("GlyphOffsetArray",In);var Ir=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getx=function(ue){return this.int16[3*ue+0]},G.prototype.gety=function(ue){return this.int16[3*ue+1]},G.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[3*ue+2]},G}(gt);Ri("SymbolLineVertexArray",Ir);var Pr=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,ue),G}(Uf);Pr.prototype.size=8;var Gr=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Pr(this,ue)},G}(Rt);Ri("FeatureIndexArray",Gr);var ro=Si([{name:"a_pos",components:2,type:"Int16"}],4).members,po=function(F){F===void 0&&(F=[]),this.segments=F};function Wo(F,G){return 256*(F=O(Math.floor(F),0,255))+O(Math.floor(G),0,255)}po.prototype.prepareSegment=function(F,G,ue,Ae){var He=this.segments[this.segments.length-1];return F>po.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+po.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+F),(!He||He.vertexLength+F>po.MAX_VERTEX_ARRAY_LENGTH||He.sortKey!==Ae)&&(He={vertexOffset:G.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(He.sortKey=Ae),this.segments.push(He)),He},po.prototype.get=function(){return this.segments},po.prototype.destroy=function(){for(var F=0,G=this.segments;F>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295)<<13|nt>>>19))+((5*(nt>>>16)&65535)<<16)&4294967295))+((58964+(ct>>>16)&65535)<<16);switch(hn=0,Ae){case 3:hn^=(255&G.charCodeAt(mn+2))<<16;case 2:hn^=(255&G.charCodeAt(mn+1))<<8;case 1:nt^=hn=(65535&(hn=(hn=(65535&(hn^=255&G.charCodeAt(mn)))*Pt+(((hn>>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295}return nt^=G.length,nt=2246822507*(65535&(nt^=nt>>>16))+((2246822507*(nt>>>16)&65535)<<16)&4294967295,nt=3266489909*(65535&(nt^=nt>>>13))+((3266489909*(nt>>>16)&65535)<<16)&4294967295,(nt^=nt>>>16)>>>0}}),Go=S(function(F){F.exports=function(G,ue){for(var Ae,He=G.length,nt=ue^He,ct=0;He>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ct)|(255&G.charCodeAt(++ct))<<8|(255&G.charCodeAt(++ct))<<16|(255&G.charCodeAt(++ct))<<24))+((1540483477*(Ae>>>16)&65535)<<16),nt=1540483477*(65535&nt)+((1540483477*(nt>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),He-=4,++ct;switch(He){case 3:nt^=(255&G.charCodeAt(ct+2))<<16;case 2:nt^=(255&G.charCodeAt(ct+1))<<8;case 1:nt=1540483477*(65535&(nt^=255&G.charCodeAt(ct)))+((1540483477*(nt>>>16)&65535)<<16)}return nt=1540483477*(65535&(nt^=nt>>>13))+((1540483477*(nt>>>16)&65535)<<16),(nt^=nt>>>15)>>>0}}),Yo=Bo,Wi=Bo,Ho=Go;Yo.murmur3=Wi,Yo.murmur2=Ho;var jo=function(){this.ids=[],this.positions=[],this.indexed=!1};jo.prototype.add=function(F,G,ue,Ae){this.ids.push(ai(F)),this.positions.push(G,ue,Ae)},jo.prototype.getPositions=function(F){for(var G=ai(F),ue=0,Ae=this.ids.length-1;ue>1;this.ids[He]>=G?Ae=He:ue=He+1}for(var nt=[];this.ids[ue]===G;){var ct=this.positions[3*ue],Pt=this.positions[3*ue+1],jt=this.positions[3*ue+2];nt.push({index:ct,start:Pt,end:jt}),ue++}return nt},jo.serialize=function(F,G){var ue=new Float64Array(F.ids),Ae=new Uint32Array(F.positions);return Hi(ue,Ae,0,ue.length-1),G&&G.push(ue.buffer,Ae.buffer),{ids:ue,positions:Ae}},jo.deserialize=function(F){var G=new jo;return G.ids=F.ids,G.positions=F.positions,G.indexed=!0,G};var Yi=Math.pow(2,53)-1;function ai(F){var G=+F;return!isNaN(G)&&G<=Yi?G:Yo(String(F))}function Hi(F,G,ue,Ae){for(;ue>1],nt=ue-1,ct=Ae+1;;){do nt++;while(F[nt]He);if(nt>=ct)break;Ai(F,nt,ct),Ai(G,3*nt,3*ct),Ai(G,3*nt+1,3*ct+1),Ai(G,3*nt+2,3*ct+2)}ct-uect.x+1||jtct.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return ue}function Is(F,G){return{type:F.type,id:F.id,properties:F.properties,geometry:G?Jc(F):[]}}function Hc(F,G,ue,Ae,He){F.emplaceBack(2*G+(Ae+1)/2,2*ue+(He+1)/2)}var Nl=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new rd,this.indexArray=new Ne,this.segments=new po,this.programConfigurations=new ui(F.layers,F.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lh(F,G){for(var ue=0;ue1){if(Ip(F,G))return!0;for(var Ae=0;Ae1?F.distSqr(ue):F.distSqr(ue.sub(G)._mult(He)._add(G))}function Uh(F,G){for(var ue,Ae,He,nt=!1,ct=0;ctG.y!=He.y>G.y&&G.x<(He.x-Ae.x)*(G.y-Ae.y)/(He.y-Ae.y)+Ae.x&&(nt=!nt);return nt}function ss(F,G){for(var ue=!1,Ae=0,He=F.length-1;AeG.y!=ct.y>G.y&&G.x<(ct.x-nt.x)*(G.y-nt.y)/(ct.y-nt.y)+nt.x&&(ue=!ue)}return ue}function Gl(F,G,ue){var Ae=ue[0],He=ue[2];if(F.xHe.x&&G.x>He.x||F.yHe.y&&G.y>He.y)return!1;var nt=Q(F,G,ue[0]);return nt!==Q(F,G,ue[1])||nt!==Q(F,G,ue[2])||nt!==Q(F,G,ue[3])}function Sf(F,G,ue){var Ae=G.paint.get(F).value;return Ae.kind==="constant"?Ae.value:ue.programConfigurations.get(G.id).getMaxValue(F)}function Nc(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1])}function o0(F,G,ue,Ae,He){if(!G[0]&&!G[1])return F;var nt=a.convert(G)._mult(He);ue==="viewport"&&nt._rotate(-Ae);for(var ct=[],Pt=0;Pt=ua||mn<0||mn>=ua)){var Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,F.sortKey),Xn=Dn.vertexLength;Hc(this.layoutVertexArray,hn,mn,-1,-1),Hc(this.layoutVertexArray,hn,mn,1,-1),Hc(this.layoutVertexArray,hn,mn,1,1),Hc(this.layoutVertexArray,hn,mn,-1,1),this.indexArray.emplaceBack(Xn,Xn+1,Xn+2),this.indexArray.emplaceBack(Xn,Xn+3,Xn+2),Dn.vertexLength+=4,Dn.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,F,ue,{},Ae)},Ri("CircleBucket",Nl,{omit:["layers"]});var i0=new _c({"circle-sort-key":new Aa(_t.layout_circle["circle-sort-key"])}),a0={paint:new _c({"circle-radius":new Aa(_t.paint_circle["circle-radius"]),"circle-color":new Aa(_t.paint_circle["circle-color"]),"circle-blur":new Aa(_t.paint_circle["circle-blur"]),"circle-opacity":new Aa(_t.paint_circle["circle-opacity"]),"circle-translate":new Ki(_t.paint_circle["circle-translate"]),"circle-translate-anchor":new Ki(_t.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ki(_t.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ki(_t.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Aa(_t.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Aa(_t.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Aa(_t.paint_circle["circle-stroke-opacity"])}),layout:i0},wu=typeof Float32Array<"u"?Float32Array:Array;function Dp(F){return F[0]=1,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=1,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=1,F[11]=0,F[12]=0,F[13]=0,F[14]=0,F[15]=1,F}function Rm(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3],Pt=G[4],jt=G[5],hn=G[6],mn=G[7],Dn=G[8],Xn=G[9],$n=G[10],mr=G[11],Or=G[12],Kr=G[13],Hr=G[14],fo=G[15],mo=ue[0],Io=ue[1],Qo=ue[2],Po=ue[3];return F[0]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[1]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[2]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[3]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[4],Io=ue[5],Qo=ue[6],Po=ue[7],F[4]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[5]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[6]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[7]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[8],Io=ue[9],Qo=ue[10],Po=ue[11],F[8]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[9]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[10]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[11]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[12],Io=ue[13],Qo=ue[14],Po=ue[15],F[12]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[13]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[14]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[15]=mo*ct+Io*mn+Qo*mr+Po*fo,F}Math.hypot||(Math.hypot=function(){for(var F=arguments,G=0,ue=arguments.length;ue--;)G+=F[ue]*F[ue];return Math.sqrt(G)});var nm=Rm,G0,vg=function(F,G,ue){return F[0]=G[0]-ue[0],F[1]=G[1]-ue[1],F[2]=G[2]-ue[2],F};function s0(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3];return F[0]=ue[0]*Ae+ue[4]*He+ue[8]*nt+ue[12]*ct,F[1]=ue[1]*Ae+ue[5]*He+ue[9]*nt+ue[13]*ct,F[2]=ue[2]*Ae+ue[6]*He+ue[10]*nt+ue[14]*ct,F[3]=ue[3]*Ae+ue[7]*He+ue[11]*nt+ue[15]*ct,F}G0=new wu(3),wu!=Float32Array&&(G0[0]=0,G0[1]=0,G0[2]=0),function(){var F=new wu(4);wu!=Float32Array&&(F[0]=0,F[1]=0,F[2]=0,F[3]=0)}();var H1=function(F){var G=F[0],ue=F[1];return G*G+ue*ue},VO=(function(){var F=new wu(2);wu!=Float32Array&&(F[0]=0,F[1]=0)}(),function(F){function G(ue){F.call(this,ue,a0)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(ue){return new Nl(ue)},G.prototype.queryRadius=function(ue){var Ae=ue;return Sf("circle-radius",this,Ae)+Sf("circle-stroke-width",this,Ae)+Nc(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt,hn){for(var mn=o0(ue,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Pt.angle,jt),Dn=this.paint.get("circle-radius").evaluate(Ae,He)+this.paint.get("circle-stroke-width").evaluate(Ae,He),Xn=this.paint.get("circle-pitch-alignment")==="map",$n=Xn?mn:function(Ii,bi){return Ii.map(function(Zi){return rm(Zi,bi)})}(mn,hn),mr=Xn?Dn*jt:Dn,Or=0,Kr=nt;OrF.width||He.height>F.height||ue.x>F.width-He.width||ue.y>F.height-He.height)throw new RangeError("out of range source coordinates for image copy");if(He.width>G.width||He.height>G.height||Ae.x>G.width-He.width||Ae.y>G.height-He.height)throw new RangeError("out of range destination coordinates for image copy");for(var ct=F.data,Pt=G.data,jt=0;jt80*ue){Ae=nt=F[0],He=ct=F[1];for(var mr=ue;mrnt&&(nt=Pt),jt>ct&&(ct=jt);hn=(hn=Math.max(nt-Ae,ct-He))!==0?1/hn:0}return Im(Xn,$n,ue,Ae,He,hn),$n}function sy(F,G,ue,Ae,He){var nt,ct;if(He===pb(F,G,ue,Ae)>0)for(nt=G;nt=G;nt-=Ae)ct=zm(nt,F[nt],F[nt+1],ct);return ct&&Za(ct,ct.next)&&(Rl(ct),ct=ct.next),ct}function yg(F,G){if(!F)return F;G||(G=F);var ue,Ae=F;do if(ue=!1,Ae.steiner||!Za(Ae,Ae.next)&&cu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(Rl(Ae),(Ae=G=Ae.prev)===Ae.next)break;ue=!0}while(ue||Ae!==G);return G}function Im(F,G,ue,Ae,He,nt,ct){if(F){!ct&&nt&&function(mn,Dn,Xn,$n){var mr=mn;do mr.z===null&&(mr.z=Dx(mr.x,mr.y,Dn,Xn,$n)),mr.prevZ=mr.prev,mr.nextZ=mr.next,mr=mr.next;while(mr!==mn);mr.prevZ.nextZ=null,mr.prevZ=null,function(Or){var Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi=1;do{for(Hr=Or,Or=null,Io=null,Qo=0;Hr;){for(Qo++,fo=Hr,Po=0,Kr=0;Kr0||Ii>0&&fo;)Po!==0&&(Ii===0||!fo||Hr.z<=fo.z)?(mo=Hr,Hr=Hr.nextZ,Po--):(mo=fo,fo=fo.nextZ,Ii--),Io?Io.nextZ=mo:Or=mo,mo.prevZ=Io,Io=mo;Hr=fo}Io.nextZ=null,bi*=2}while(Qo>1)}(mr)}(F,Ae,He,nt);for(var Pt,jt,hn=F;F.prev!==F.next;)if(Pt=F.prev,jt=F.next,nt?Oh(F,Ae,He,nt):Dm(F))G.push(Pt.i/ue),G.push(F.i/ue),G.push(jt.i/ue),Rl(F),F=jt.next,hn=jt.next;else if((F=jt)===hn){ct?ct===1?Im(F=zp(yg(F),G,ue),G,ue,Ae,He,nt,2):ct===2&&J0(F,G,ue,Ae,He,nt):Im(yg(F),G,ue,Ae,He,nt,1);break}}}function Dm(F){var G=F.prev,ue=F,Ae=F.next;if(cu(G,ue,Ae)>=0)return!1;for(var He=F.next.next;He!==F.prev;){if(W1(G.x,G.y,ue.x,ue.y,Ae.x,Ae.y,He.x,He.y)&&cu(He.prev,He,He.next)>=0)return!1;He=He.next}return!0}function Oh(F,G,ue,Ae){var He=F.prev,nt=F,ct=F.next;if(cu(He,nt,ct)>=0)return!1;for(var Pt=He.xnt.x?He.x>ct.x?He.x:ct.x:nt.x>ct.x?nt.x:ct.x,mn=He.y>nt.y?He.y>ct.y?He.y:ct.y:nt.y>ct.y?nt.y:ct.y,Dn=Dx(Pt,jt,G,ue,Ae),Xn=Dx(hn,mn,G,ue,Ae),$n=F.prevZ,mr=F.nextZ;$n&&$n.z>=Dn&&mr&&mr.z<=Xn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0||($n=$n.prevZ,mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0))return!1;mr=mr.nextZ}for(;$n&&$n.z>=Dn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0)return!1;$n=$n.prevZ}for(;mr&&mr.z<=Xn;){if(mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0)return!1;mr=mr.nextZ}return!0}function zp(F,G,ue){var Ae=F;do{var He=Ae.prev,nt=Ae.next.next;!Za(He,nt)&&sa(He,Ae,Ae.next,nt)&&n1(He,nt)&&n1(nt,He)&&(G.push(He.i/ue),G.push(Ae.i/ue),G.push(nt.i/ue),Rl(Ae),Rl(Ae.next),Ae=F=nt),Ae=Ae.next}while(Ae!==F);return yg(Ae)}function J0(F,G,ue,Ae,He,nt){var ct=F;do{for(var Pt=ct.next.next;Pt!==ct.prev;){if(ct.i!==Pt.i&&e1(ct,Pt)){var jt=Bx(ct,Pt);return ct=yg(ct,ct.next),jt=yg(jt,jt.next),Im(ct,G,ue,Ae,He,nt),void Im(jt,G,ue,Ae,He,nt)}Pt=Pt.next}ct=ct.next}while(ct!==F)}function F_(F,G){return F.x-G.x}function q1(F,G){if(G=function(Ae,He){var nt,ct=He,Pt=Ae.x,jt=Ae.y,hn=-1/0;do{if(jt<=ct.y&&jt>=ct.next.y&&ct.next.y!==ct.y){var mn=ct.x+(jt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(mn<=Pt&&mn>hn){if(hn=mn,mn===Pt){if(jt===ct.y)return ct;if(jt===ct.next.y)return ct.next}nt=ct.x=ct.x&&ct.x>=$n&&Pt!==ct.x&&W1(jtnt.x||ct.x===nt.x&&$_(nt,ct)))&&(nt=ct,Or=Dn)),ct=ct.next;while(ct!==Xn);return nt}(F,G)){var ue=Bx(G,F);yg(G,G.next),yg(ue,ue.next)}}function $_(F,G){return cu(F.prev,F,G.prev)<0&&cu(G.next,F,F.next)<0}function Dx(F,G,ue,Ae,He){return(F=1431655765&((F=858993459&((F=252645135&((F=16711935&((F=32767*(F-ue)*He)|F<<8))|F<<4))|F<<2))|F<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*He)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function UO(F){var G=F,ue=F;do(G.x=0&&(F-ct)*(Ae-Pt)-(ue-ct)*(G-Pt)>=0&&(ue-ct)*(nt-Pt)-(He-ct)*(Ae-Pt)>=0}function e1(F,G){return F.next.i!==G.i&&F.prev.i!==G.i&&!function(ue,Ae){var He=ue;do{if(He.i!==ue.i&&He.next.i!==ue.i&&He.i!==Ae.i&&He.next.i!==Ae.i&&sa(He,He.next,ue,Ae))return!0;He=He.next}while(He!==ue);return!1}(F,G)&&(n1(F,G)&&n1(G,F)&&function(ue,Ae){var He=ue,nt=!1,ct=(ue.x+Ae.x)/2,Pt=(ue.y+Ae.y)/2;do He.y>Pt!=He.next.y>Pt&&He.next.y!==He.y&&ct<(He.next.x-He.x)*(Pt-He.y)/(He.next.y-He.y)+He.x&&(nt=!nt),He=He.next;while(He!==ue);return nt}(F,G)&&(cu(F.prev,F,G.prev)||cu(F,G.prev,G))||Za(F,G)&&cu(F.prev,F,F.next)>0&&cu(G.prev,G,G.next)>0)}function cu(F,G,ue){return(G.y-F.y)*(ue.x-G.x)-(G.x-F.x)*(ue.y-G.y)}function Za(F,G){return F.x===G.x&&F.y===G.y}function sa(F,G,ue,Ae){var He=t1(cu(F,G,ue)),nt=t1(cu(F,G,Ae)),ct=t1(cu(ue,Ae,F)),Pt=t1(cu(ue,Ae,G));return He!==nt&&ct!==Pt||!(He!==0||!Bm(F,ue,G))||!(nt!==0||!Bm(F,Ae,G))||!(ct!==0||!Bm(ue,F,Ae))||!(Pt!==0||!Bm(ue,G,Ae))}function Bm(F,G,ue){return G.x<=Math.max(F.x,ue.x)&&G.x>=Math.min(F.x,ue.x)&&G.y<=Math.max(F.y,ue.y)&&G.y>=Math.min(F.y,ue.y)}function t1(F){return F>0?1:F<0?-1:0}function n1(F,G){return cu(F.prev,F,F.next)<0?cu(F,G,F.next)>=0&&cu(F,F.prev,G)>=0:cu(F,G,F.prev)<0||cu(F,F.next,G)<0}function Bx(F,G){var ue=new zx(F.i,F.x,F.y),Ae=new zx(G.i,G.x,G.y),He=F.next,nt=G.prev;return F.next=G,G.prev=F,ue.next=He,He.prev=ue,Ae.next=ue,ue.prev=Ae,nt.next=Ae,Ae.prev=nt,Ae}function zm(F,G,ue,Ae){var He=new zx(F,G,ue);return Ae?(He.next=Ae.next,He.prev=Ae,Ae.next.prev=He,Ae.next=He):(He.prev=He,He.next=He),He}function Rl(F){F.next.prev=F.prev,F.prev.next=F.next,F.prevZ&&(F.prevZ.nextZ=F.nextZ),F.nextZ&&(F.nextZ.prevZ=F.prevZ)}function zx(F,G,ue){this.i=F,this.x=G,this.y=ue,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pb(F,G,ue,Ae){for(var He=0,nt=G,ct=ue-Ae;ntue;){if(Ae-ue>600){var nt=Ae-ue+1,ct=G-ue+1,Pt=Math.log(nt),jt=.5*Math.exp(2*Pt/3),hn=.5*Math.sqrt(Pt*jt*(nt-jt)/nt)*(ct-nt/2<0?-1:1);Lo(F,G,Math.max(ue,Math.floor(G-ct*jt/nt+hn)),Math.min(Ae,Math.floor(G+(nt-ct)*jt/nt+hn)),He)}var mn=F[G],Dn=ue,Xn=Ae;for(Nm(F,ue,G),He(F[Ae],mn)>0&&Nm(F,ue,Ae);Dn0;)Xn--}He(F[ue],mn)===0?Nm(F,ue,Xn):Nm(F,++Xn,Ae),Xn<=G&&(ue=Xn+1),G<=Xn&&(Ae=Xn-1)}}function Nm(F,G,ue){var Ae=F[G];F[G]=F[ue],F[ue]=Ae}function D4(F,G){return FG?1:0}function bg(F,G){var ue=F.length;if(ue<=1)return[F];for(var Ae,He,nt=[],ct=0;ct1)for(var jt=0;jt0&&(Ae+=F[He-1].length,ue.holes.push(Ae))}return ue},Z1.default=N_;var od=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rd,this.indexArray=new Ne,this.indexArray2=new Mt,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.segments2=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};od.prototype.populate=function(F,G,ue){this.hasPattern=c0("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),He=[],nt=0,ct=F;nt>3}if(He--,Ae===1||Ae===2)nt+=F.readSVarint(),ct+=F.readSVarint(),Ae===1&&(G&&Pt.push(G),G=[]),G.push(new a(nt,ct));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Pt.push(G),Pt},Sh.prototype.bbox=function(){var F=this._pbf;F.pos=this._geometry;for(var G=F.readVarint()+F.pos,ue=1,Ae=0,He=0,nt=0,ct=1/0,Pt=-1/0,jt=1/0,hn=-1/0;F.pos>3}if(Ae--,ue===1||ue===2)(He+=F.readSVarint())Pt&&(Pt=He),(nt+=F.readSVarint())hn&&(hn=nt);else if(ue!==7)throw new Error("unknown command "+ue)}return[ct,jt,Pt,hn]},Sh.prototype.toGeoJSON=function(F,G,ue){var Ae,He,nt=this.extent*Math.pow(2,ue),ct=this.extent*F,Pt=this.extent*G,jt=this.loadGeometry(),hn=Sh.types[this.type];function mn($n){for(var mr=0;mr<$n.length;mr++){var Or=$n[mr],Kr=180-360*(Or.y+Pt)/nt;$n[mr]=[360*(Or.x+ct)/nt-180,360/Math.PI*Math.atan(Math.exp(Kr*Math.PI/180))-90]}}switch(this.type){case 1:var Dn=[];for(Ae=0;Ae>3;He=ct===1?Ae.readString():ct===2?Ae.readFloat():ct===3?Ae.readDouble():ct===4?Ae.readVarint64():ct===5?Ae.readVarint():ct===6?Ae.readSVarint():ct===7?Ae.readBoolean():null}return He}(ue))}function jO(F,G,ue){if(F===3){var Ae=new Y1(ue,ue.readVarint()+ue.pos);Ae.length&&(G[Ae.name]=Ae)}}cy.prototype.feature=function(F){if(F<0||F>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[F];var G=this._pbf.readVarint()+this._pbf.pos;return new Nx(this._pbf,G,this.extent,this._keys,this._values)};var _g={VectorTile:function(F,G){this.layers=F.readFields(jO,{},G)},VectorTileFeature:Nx,VectorTileLayer:Y1},Q_=_g.VectorTileFeature.types,wg=Math.pow(2,13);function X1(F,G,ue,Ae,He,nt,ct,Pt){F.emplaceBack(G,ue,2*Math.floor(Ae*wg)+ct,He*wg*2,nt*wg*2,Math.round(Pt))}var om=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new kt,this.indexArray=new Ne,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function H_(F,G){return F.x===G.x&&(F.x<0||F.x>ua)||F.y===G.y&&(F.y<0||F.y>ua)}om.prototype.populate=function(F,G,ue){this.features=[],this.hasPattern=c0("fill-extrusion",this.layers,G);for(var Ae=0,He=F;Aeua})||fl.every(function(As){return As.y<0})||fl.every(function(As){return As.y>ua})))for(var Or=0,Kr=0;Kr=1){var fo=mr[Kr-1];if(!H_(Hr,fo)){Dn.vertexLength+4>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var mo=Hr.sub(fo)._perp()._unit(),Io=fo.dist(Hr);Or+Io>32768&&(Or=0),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,1,Or),Or+=Io,X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,1,Or);var Qo=Dn.vertexLength;this.indexArray.emplaceBack(Qo,Qo+2,Qo+1),this.indexArray.emplaceBack(Qo+1,Qo+2,Qo+3),Dn.vertexLength+=4,Dn.primitiveLength+=2}}}}if(Dn.vertexLength+jt>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(jt,this.layoutVertexArray,this.indexArray)),Q_[F.type]==="Polygon"){for(var Po=[],Ii=[],bi=Dn.vertexLength,Zi=0,ra=Pt;Zi=2&&F[jt-1].equals(F[jt-2]);)jt--;for(var hn=0;hn0;if(Ii&&Hr>hn){var Zi=mn.dist($n);if(Zi>2*Dn){var ra=mn.sub(mn.sub($n)._mult(Dn/Zi)._round());this.updateDistance($n,ra),this.addCurrentVertex(ra,Or,0,0,Xn),$n=ra}}var ka=$n&&mr,ea=ka?ue:Pt?"butt":Ae;if(ka&&ea==="round"&&(QoHe&&(ea="bevel"),ea==="bevel"&&(Qo>2&&(ea="flipbevel"),Qo100)fo=Kr.mult(-1);else{var as=Qo*Or.add(Kr).mag()/Or.sub(Kr).mag();fo._perp()._mult(as*(bi?-1:1))}this.addCurrentVertex(mn,fo,0,0,Xn),this.addCurrentVertex(mn,fo.mult(-1),0,0,Xn)}else if(ea==="bevel"||ea==="fakeround"){var Da=-Math.sqrt(Qo*Qo-1),ba=bi?Da:0,fl=bi?0:Da;if($n&&this.addCurrentVertex(mn,Or,ba,fl,Xn),ea==="fakeround")for(var As=Math.round(180*Po/Math.PI/20),hc=1;hc2*Dn){var qa=mn.add(mr.sub(mn)._mult(Dn/Fc)._round());this.updateDistance(mn,qa),this.addCurrentVertex(qa,Kr,0,0,Xn),mn=qa}}}}},Xu.prototype.addCurrentVertex=function(F,G,ue,Ae,He,nt){nt===void 0&&(nt=!1);var ct=G.x+G.y*ue,Pt=G.y-G.x*ue,jt=-G.x+G.y*Ae,hn=-G.y-G.x*Ae;this.addHalfVertex(F,ct,Pt,nt,!1,ue,He),this.addHalfVertex(F,jt,hn,nt,!0,-Ae,He),this.distance>cc/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(F,G,ue,Ae,He,nt))},Xu.prototype.addHalfVertex=function(F,G,ue,Ae,He,nt,ct){var Pt=F.x,jt=F.y,hn=.5*(this.lineClips?this.scaledDistance*(cc-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Pt<<1)+(Ae?1:0),(jt<<1)+(He?1:0),Math.round(63*G)+128,Math.round(63*ue)+128,1+(nt===0?0:nt<0?-1:1)|(63&hn)<<2,hn>>6),this.lineClips){var mn=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(mn,this.lineClipsArray.length)}var Dn=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Dn),ct.primitiveLength++),He?this.e2=Dn:this.e1=Dn},Xu.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Xu.prototype.updateDistance=function(F,G){this.distance+=F.dist(G),this.updateScaledDistance()},Ri("LineBucket",Xu,{omit:["layers","patternFeatures"]});var Vx=new _c({"line-cap":new Ki(_t.layout_line["line-cap"]),"line-join":new Aa(_t.layout_line["line-join"]),"line-miter-limit":new Ki(_t.layout_line["line-miter-limit"]),"line-round-limit":new Ki(_t.layout_line["line-round-limit"]),"line-sort-key":new Aa(_t.layout_line["line-sort-key"])}),ZO={paint:new _c({"line-opacity":new Aa(_t.paint_line["line-opacity"]),"line-color":new Aa(_t.paint_line["line-color"]),"line-translate":new Ki(_t.paint_line["line-translate"]),"line-translate-anchor":new Ki(_t.paint_line["line-translate-anchor"]),"line-width":new Aa(_t.paint_line["line-width"]),"line-gap-width":new Aa(_t.paint_line["line-gap-width"]),"line-offset":new Aa(_t.paint_line["line-offset"]),"line-blur":new Aa(_t.paint_line["line-blur"]),"line-dasharray":new Vf(_t.paint_line["line-dasharray"]),"line-pattern":new Pl(_t.paint_line["line-pattern"]),"line-gradient":new sh(_t.paint_line["line-gradient"])}),layout:Vx},u0=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(ue,Ae){return Ae=new uo(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),F.prototype.possiblyEvaluate.call(this,ue,Ae)},G.prototype.evaluate=function(ue,Ae,He,nt){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),F.prototype.evaluate.call(this,ue,Ae,He,nt)},G}(Aa),vb=new u0(ZO.paint.properties["line-width"].specification);vb.useIntegerZoom=!0;var Fm=function(F){function G(ue){F.call(this,ue,ZO),this.gradientVersion=0}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof mi,this.gradientVersion=(this.gradientVersion+1)%p}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(ue,Ae){F.prototype.recalculate.call(this,ue,Ae),this.paint._values["line-floorwidth"]=vb.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},G.prototype.createBucket=function(ue){return new Xu(ue)},G.prototype.queryRadius=function(ue){var Ae=ue,He=Z_(Sf("line-width",this,Ae),Sf("line-gap-width",this,Ae)),nt=Sf("line-offset",this,Ae);return He/2+Math.abs(nt)+Nc(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt){var hn=o0(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,jt),mn=jt/2*Z_(this.paint.get("line-width").evaluate(Ae,He),this.paint.get("line-gap-width").evaluate(Ae,He)),Dn=this.paint.get("line-offset").evaluate(Ae,He);return Dn&&(nt=function(Xn,$n){for(var mr=[],Or=new a(0,0),Kr=0;Kr=3){for(var Hr=0;Hr0?G+2*F:F}var q_=Si([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),uc=Si([{name:"a_projected_pos",components:3,type:"Float32"}],4),uy=(Si([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Si([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zc=(Si([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Si([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qO=Si([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function rp(F,G,ue){return F.sections.forEach(function(Ae){Ae.text=function(He,nt,ct){var Pt=nt.layout.get("text-transform").evaluate(ct,{});return Pt==="uppercase"?He=He.toLocaleUpperCase():Pt==="lowercase"&&(He=He.toLocaleLowerCase()),wr.applyArabicShaping&&(He=wr.applyArabicShaping(He)),He}(Ae.text,G,ue)}),F}Si([{name:"triangle",components:3,type:"Uint16"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Si([{type:"Float32",name:"offsetX"}]),Si([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Og={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Oc=24,WO=function(F,G,ue,Ae,He){var nt,ct,Pt=8*He-Ae-1,jt=(1<>1,mn=-7,Dn=ue?He-1:0,Xn=ue?-1:1,$n=F[G+Dn];for(Dn+=Xn,nt=$n&(1<<-mn)-1,$n>>=-mn,mn+=Pt;mn>0;nt=256*nt+F[G+Dn],Dn+=Xn,mn-=8);for(ct=nt&(1<<-mn)-1,nt>>=-mn,mn+=Ae;mn>0;ct=256*ct+F[G+Dn],Dn+=Xn,mn-=8);if(nt===0)nt=1-hn;else{if(nt===jt)return ct?NaN:1/0*($n?-1:1);ct+=Math.pow(2,Ae),nt-=hn}return($n?-1:1)*ct*Math.pow(2,nt-Ae)},YO=function(F,G,ue,Ae,He,nt){var ct,Pt,jt,hn=8*nt-He-1,mn=(1<>1,Xn=He===23?Math.pow(2,-24)-Math.pow(2,-77):0,$n=Ae?0:nt-1,mr=Ae?1:-1,Or=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Pt=isNaN(G)?1:0,ct=mn):(ct=Math.floor(Math.log(G)/Math.LN2),G*(jt=Math.pow(2,-ct))<1&&(ct--,jt*=2),(G+=ct+Dn>=1?Xn/jt:Xn*Math.pow(2,1-Dn))*jt>=2&&(ct++,jt/=2),ct+Dn>=mn?(Pt=0,ct=mn):ct+Dn>=1?(Pt=(G*jt-1)*Math.pow(2,He),ct+=Dn):(Pt=G*Math.pow(2,Dn-1)*Math.pow(2,He),ct=0));He>=8;F[ue+$n]=255&Pt,$n+=mr,Pt/=256,He-=8);for(ct=ct<0;F[ue+$n]=255&ct,$n+=mr,ct/=256,hn-=8);F[ue+$n-mr]|=128*Or},Ux=qc;function qc(F){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(F)?F:new Uint8Array(F||0),this.pos=0,this.type=0,this.length=this.buf.length}qc.Varint=0,qc.Fixed64=1,qc.Bytes=2,qc.Fixed32=5;var ff=4294967296,fh=1/ff,fy=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function jh(F){return F.type===qc.Bytes?F.readVarint()+F.pos:F.pos+1}function r1(F,G,ue){return ue?4294967296*G+(F>>>0):4294967296*(G>>>0)+(F>>>0)}function G1(F,G,ue){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));ue.realloc(Ae);for(var He=ue.pos-1;He>=F;He--)ue.buf[He+Ae]=ue.buf[He]}function Sg(F,G){for(var ue=0;ue>>8,F[ue+2]=G>>>16,F[ue+3]=G>>>24}function jx(F,G){return(F[G]|F[G+1]<<8|F[G+2]<<16)+(F[G+3]<<24)}qc.prototype={destroy:function(){this.buf=null},readFields:function(F,G,ue){for(ue=ue||this.length;this.pos>3,nt=this.pos;this.type=7&Ae,F(He,G,this),this.pos===nt&&this.skip(Ae)}return G},readMessage:function(F,G){return this.readFields(F,G,this.readVarint()+this.pos)},readFixed32:function(){var F=tv(this.buf,this.pos);return this.pos+=4,F},readSFixed32:function(){var F=jx(this.buf,this.pos);return this.pos+=4,F},readFixed64:function(){var F=tv(this.buf,this.pos)+tv(this.buf,this.pos+4)*ff;return this.pos+=8,F},readSFixed64:function(){var F=tv(this.buf,this.pos)+jx(this.buf,this.pos+4)*ff;return this.pos+=8,F},readFloat:function(){var F=WO(this.buf,this.pos,!0,23,4);return this.pos+=4,F},readDouble:function(){var F=WO(this.buf,this.pos,!0,52,8);return this.pos+=8,F},readVarint:function(F){var G,ue,Ae=this.buf;return G=127&(ue=Ae[this.pos++]),ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<7,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<14,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<21,ue<128?G:function(He,nt,ct){var Pt,jt,hn=ct.buf;if(Pt=(112&(jt=hn[ct.pos++]))>>4,jt<128||(Pt|=(127&(jt=hn[ct.pos++]))<<3,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<10,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<17,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<24,jt<128)||(Pt|=(1&(jt=hn[ct.pos++]))<<31,jt<128))return r1(He,Pt,nt);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(ue=Ae[this.pos]))<<28,F,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var F=this.readVarint();return F%2==1?(F+1)/-2:F/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var F=this.readVarint()+this.pos,G=this.pos;return this.pos=F,F-G>=12&&fy?function(ue,Ae,He){return fy.decode(ue.subarray(Ae,He))}(this.buf,G,F):function(ue,Ae,He){for(var nt="",ct=Ae;ct239?4:mn>223?3:mn>191?2:1;if(ct+Xn>He)break;Xn===1?mn<128&&(Dn=mn):Xn===2?(192&(Pt=ue[ct+1]))==128&&(Dn=(31&mn)<<6|63&Pt)<=127&&(Dn=null):Xn===3?(Pt=ue[ct+1],jt=ue[ct+2],(192&Pt)==128&&(192&jt)==128&&((Dn=(15&mn)<<12|(63&Pt)<<6|63&jt)<=2047||Dn>=55296&&Dn<=57343)&&(Dn=null)):Xn===4&&(Pt=ue[ct+1],jt=ue[ct+2],hn=ue[ct+3],(192&Pt)==128&&(192&jt)==128&&(192&hn)==128&&((Dn=(15&mn)<<18|(63&Pt)<<12|(63&jt)<<6|63&hn)<=65535||Dn>=1114112)&&(Dn=null)),Dn===null?(Dn=65533,Xn=1):Dn>65535&&(Dn-=65536,nt+=String.fromCharCode(Dn>>>10&1023|55296),Dn=56320|1023&Dn),nt+=String.fromCharCode(Dn),ct+=Xn}return nt}(this.buf,G,F)},readBytes:function(){var F=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,F);return this.pos=F,G},readPackedVarint:function(F,G){if(this.type!==qc.Bytes)return F.push(this.readVarint(G));var ue=jh(this);for(F=F||[];this.pos127;);else if(G===qc.Bytes)this.pos=this.readVarint()+this.pos;else if(G===qc.Fixed32)this.pos+=4;else{if(G!==qc.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(F,G){this.writeVarint(F<<3|G)},realloc:function(F){for(var G=this.length||16;G268435455||F<0?function(G,ue){var Ae,He;if(G>=0?(Ae=G%4294967296|0,He=G/4294967296|0):(He=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,He=He+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");ue.realloc(10),function(nt,ct,Pt){Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos]=127&nt}(Ae,0,ue),function(nt,ct){var Pt=(7&nt)<<4;ct.buf[ct.pos++]|=Pt|((nt>>>=3)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt)))))}(He,ue)}(F,this):(this.realloc(4),this.buf[this.pos++]=127&F|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=F>>>7&127))))},writeSVarint:function(F){this.writeVarint(F<0?2*-F-1:2*F)},writeBoolean:function(F){this.writeVarint(!!F)},writeString:function(F){F=String(F),this.realloc(4*F.length),this.pos++;var G=this.pos;this.pos=function(Ae,He,nt){for(var ct,Pt,jt=0;jt55295&&ct<57344){if(!Pt){ct>56319||jt+1===He.length?(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189):Pt=ct;continue}if(ct<56320){Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=ct;continue}ct=Pt-55296<<10|ct-56320|65536,Pt=null}else Pt&&(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=null);ct<128?Ae[nt++]=ct:(ct<2048?Ae[nt++]=ct>>6|192:(ct<65536?Ae[nt++]=ct>>12|224:(Ae[nt++]=ct>>18|240,Ae[nt++]=ct>>12&63|128),Ae[nt++]=ct>>6&63|128),Ae[nt++]=63&ct|128)}return nt}(this.buf,F,this.pos);var ue=this.pos-G;ue>=128&&G1(G,ue,this),this.pos=G-1,this.writeVarint(ue),this.pos+=ue},writeFloat:function(F){this.realloc(4),YO(this.buf,F,this.pos,!0,23,4),this.pos+=4},writeDouble:function(F){this.realloc(8),YO(this.buf,F,this.pos,!0,52,8),this.pos+=8},writeBytes:function(F){var G=F.length;this.writeVarint(G),this.realloc(G);for(var ue=0;ue=128&&G1(ue,Ae,this),this.pos=ue-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(F,G,ue){this.writeTag(F,qc.Bytes),this.writeRawMessage(G,ue)},writePackedVarint:function(F,G){G.length&&this.writeMessage(F,Sg,G)},writePackedSVarint:function(F,G){G.length&&this.writeMessage(F,dy,G)},writePackedBoolean:function(F,G){G.length&&this.writeMessage(F,kg,G)},writePackedFloat:function(F,G){G.length&&this.writeMessage(F,K1,G)},writePackedDouble:function(F,G){G.length&&this.writeMessage(F,o1,G)},writePackedFixed32:function(F,G){G.length&&this.writeMessage(F,J1,G)},writePackedSFixed32:function(F,G){G.length&&this.writeMessage(F,ev,G)},writePackedFixed64:function(F,G){G.length&&this.writeMessage(F,z4,G)},writePackedSFixed64:function(F,G){G.length&&this.writeMessage(F,W_,G)},writeBytesField:function(F,G){this.writeTag(F,qc.Bytes),this.writeBytes(G)},writeFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeSFixed64(G)},writeVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeVarint(G)},writeSVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeSVarint(G)},writeStringField:function(F,G){this.writeTag(F,qc.Bytes),this.writeString(G)},writeFloatField:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFloat(G)},writeDoubleField:function(F,G){this.writeTag(F,qc.Fixed64),this.writeDouble(G)},writeBooleanField:function(F,G){this.writeVarintField(F,!!G)}};var hy=3;function Y_(F,G,ue){F===1&&ue.readMessage(X_,G)}function X_(F,G,ue){if(F===3){var Ae=ue.readMessage(G_,{}),He=Ae.id,nt=Ae.bitmap,ct=Ae.width,Pt=Ae.height,jt=Ae.left,hn=Ae.top,mn=Ae.advance;G.push({id:He,bitmap:new wh({width:ct+2*hy,height:Pt+2*hy},nt),metrics:{width:ct,height:Pt,left:jt,top:hn,advance:mn}})}}function G_(F,G,ue){F===1?G.id=ue.readVarint():F===2?G.bitmap=ue.readBytes():F===3?G.width=ue.readVarint():F===4?G.height=ue.readVarint():F===5?G.left=ue.readSVarint():F===6?G.top=ue.readSVarint():F===7&&(G.advance=ue.readVarint())}var py=hy;function yb(F){for(var G=0,ue=0,Ae=0,He=F;Ae=0;Xn--){var $n=ct[Xn];if(!(Dn.w>$n.w||Dn.h>$n.h)){if(Dn.x=$n.x,Dn.y=$n.y,jt=Math.max(jt,Dn.y+Dn.h),Pt=Math.max(Pt,Dn.x+Dn.w),Dn.w===$n.w&&Dn.h===$n.h){var mr=ct.pop();Xn0&&d1>Wc&&(Wc=d1)}else{var t2=As[$l.fontStack],gv=t2&&t2[Mh];if(gv&&gv.rect)hh=gv.rect,dh=gv.metrics;else{var Lu=fl[$l.fontStack],$c=Lu&&Lu[Mh];if(!$c)continue;dh=$c.metrics}mc=(Us-$l.scale)*Oc}tu?(ba.verticalizable=!0,ni.push({glyph:Mh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=Qf*$l.scale+qa):(ni.push({glyph:Mh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=dh.advance*$l.scale+qa)}if(ni.length!==0){var dl=sd-qa;cd=Math.max(dl,cd),pC(ni,0,ni.length-1,xl,Wc)}sd=0;var Mf=Vs*Us+Wc;fu.lineOffset=Math.max(Wc,_l),ld+=Mf,Cf=Math.max(Mf,Cf),++eu}else ld+=Vs,++eu}var du=ld-rv,Iu=ad(Fl),vv=Iu.horizontalAlign,h1=Iu.verticalAlign;(function(n2,yy,p1,b0,Hm,yv,by,x0,r2){var Mb=(yy-p1)*Hm,Ad=0;Ad=yv!==by?-x0*b0-rv:(-b0*r2+.5)*by;for(var xy=0,_y=n2;xy<_y.length;xy+=1)for(var Md=0,m1=_y[xy].positionedGlyphs;Md=0&&Ae>=F&&Qx[this.text.charCodeAt(Ae)];Ae--)ue--;this.text=this.text.substring(F,ue),this.sectionIndex=this.sectionIndex.slice(F,ue)},Od.prototype.substring=function(F,G){var ue=new Od;return ue.text=this.text.substring(F,G),ue.sectionIndex=this.sectionIndex.slice(F,G),ue.sections=this.sections,ue},Od.prototype.toString=function(){return this.text},Od.prototype.getMaxScale=function(){var F=this;return this.sectionIndex.reduce(function(G,ue){return Math.max(G,F.sections[ue].scale)},0)},Od.prototype.addTextSection=function(F,G){this.text+=F.text,this.sections.push(ov.forText(F.scale,F.fontStack||G));for(var ue=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Qx={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},kh={};function f0(F,G,ue,Ae,He,nt){if(G.imageName){var ct=Ae[G.imageName];return ct?ct.displaySize[0]*G.scale*Oc/nt+He:0}var Pt=ue[G.fontStack],jt=Pt&&Pt[F];return jt?jt.metrics.advance*G.scale+He:0}function iv(F,G,ue,Ae){var He=Math.pow(F-G,2);return Ae?F=0,mn=0,Dn=0;Dn-ue/2;){if(--ct<0)return!1;Pt-=F[ct].dist(nt),nt=F[ct]}Pt+=F[ct].dist(F[ct+1]),ct++;for(var jt=[],hn=0;PtAe;)hn-=jt.shift().angleDelta;if(hn>He)return!1;ct++,Pt+=Dn.dist(Xn)}return!0}function my(F){for(var G=0,ue=0;uehn){var mr=(hn-jt)/$n,Or=Di(Dn.x,Xn.x,mr),Kr=Di(Dn.y,Xn.y,mr),Hr=new Ag(Or,Kr,Xn.angleTo(Dn),mn);return Hr._round(),!ct||J_(F,Hr,Pt,ct,G)?Hr:void 0}jt+=$n}}function sv(F,G,ue,Ae,He,nt,ct,Pt,jt){var hn=xb(Ae,nt,ct),mn=ew(Ae,He),Dn=mn*ct,Xn=F[0].x===0||F[0].x===jt||F[0].y===0||F[0].y===jt;return G-Dn=0&&Io=0&&Qo=0&&Xn+hn<=mn){var Po=new Ag(Io,Qo,fo,mr);Po._round(),Ae&&!J_(F,Po,nt,Ae,He)||$n.push(Po)}}Dn+=Hr}return Pt||$n.length||ct||($n=xp(F,Dn/2,ue,Ae,He,nt,ct,!0,jt)),$n}function _b(F,G,ue,Ae,He){for(var nt=[],ct=0;ct=Ae&&Dn.x>=Ae||(mn.x>=Ae?mn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round():Dn.x>=Ae&&(Dn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round()),mn.y>=He&&Dn.y>=He||(mn.y>=He?mn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round():Dn.y>=He&&(Dn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round()),jt&&mn.equals(jt[jt.length-1])||(jt=[mn],nt.push(jt)),jt.push(Dn)))))}return nt}var Ou=bp;function Wx(F,G,ue,Ae){var He=[],nt=F.image,ct=nt.pixelRatio,Pt=nt.paddedRect.w-2*Ou,jt=nt.paddedRect.h-2*Ou,hn=F.right-F.left,mn=F.bottom-F.top,Dn=nt.stretchX||[[0,Pt]],Xn=nt.stretchY||[[0,jt]],$n=function(Vs,Fl){return Vs+Fl[1]-Fl[0]},mr=Dn.reduce($n,0),Or=Xn.reduce($n,0),Kr=Pt-mr,Hr=jt-Or,fo=0,mo=mr,Io=0,Qo=Or,Po=0,Ii=Kr,bi=0,Zi=Hr;if(nt.content&&Ae){var ra=nt.content;fo=Sd(Dn,0,ra[0]),Io=Sd(Xn,0,ra[1]),mo=Sd(Dn,ra[0],ra[2]),Qo=Sd(Xn,ra[1],ra[3]),Po=ra[0]-fo,bi=ra[1]-Io,Ii=ra[2]-ra[0]-mo,Zi=ra[3]-ra[1]-Qo}var ka=function(Vs,Fl,kl,Fc){var qa=wb(Vs.stretch-fo,mo,hn,F.left),Sc=am(Vs.fixed-Po,Ii,Vs.stretch,mr),pc=wb(Fl.stretch-Io,Qo,mn,F.top),sd=am(Fl.fixed-bi,Zi,Fl.stretch,Or),ld=wb(kl.stretch-fo,mo,hn,F.left),cd=am(kl.fixed-Po,Ii,kl.stretch,mr),Cf=wb(Fc.stretch-Io,Qo,mn,F.top),xl=am(Fc.fixed-bi,Zi,Fc.stretch,Or),eu=new a(qa,pc),Td=new a(ld,pc),Af=new a(ld,Cf),jf=new a(qa,Cf),Us=new a(Sc/ct,sd/ct),_l=new a(cd/ct,xl/ct),fu=G*Math.PI/180;if(fu){var ni=Math.sin(fu),Wc=Math.cos(fu),Yc=[Wc,-ni,ni,Wc];eu._matMult(Yc),Td._matMult(Yc),jf._matMult(Yc),Af._matMult(Yc)}var $l=Vs.stretch+Vs.fixed,Ru=kl.stretch+kl.fixed,Mh=Fl.stretch+Fl.fixed,mc=Fc.stretch+Fc.fixed;return{tl:eu,tr:Td,bl:jf,br:Af,tex:{x:nt.paddedRect.x+Ou+$l,y:nt.paddedRect.y+Ou+Mh,w:Ru-$l,h:mc-Mh},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Us,pixelOffsetBR:_l,minFontScaleX:Ii/ct/hn,minFontScaleY:Zi/ct/mn,isSDF:ue}};if(Ae&&(nt.stretchX||nt.stretchY))for(var ea=XO(Dn,Kr,mr),as=XO(Xn,Hr,Or),Da=0;Da0&&($n=Math.max(10,$n),this.circleDiameter=$n)}else{var mr=nt.top*ct-Pt,Or=nt.bottom*ct+Pt,Kr=nt.left*ct-Pt,Hr=nt.right*ct+Pt,fo=nt.collisionPadding;if(fo&&(Kr-=fo[0]*ct,mr-=fo[1]*ct,Hr+=fo[2]*ct,Or+=fo[3]*ct),hn){var mo=new a(Kr,mr),Io=new a(Hr,mr),Qo=new a(Kr,Or),Po=new a(Hr,Or),Ii=hn*Math.PI/180;mo._rotate(Ii),Io._rotate(Ii),Qo._rotate(Ii),Po._rotate(Ii),Kr=Math.min(mo.x,Io.x,Qo.x,Po.x),Hr=Math.max(mo.x,Io.x,Qo.x,Po.x),mr=Math.min(mo.y,Io.y,Qo.y,Po.y),Or=Math.max(mo.y,Io.y,Qo.y,Po.y)}F.emplaceBack(G.x,G.y,Kr,mr,Hr,Or,ue,Ae,He)}this.boxEndIndex=F.length},_p=function(F,G){if(F===void 0&&(F=[]),G===void 0&&(G=op),this.data=F,this.length=this.data.length,this.compare=G,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};function op(F,G){return FG?1:0}function GO(F,G,ue){G===void 0&&(G=1),ue===void 0&&(ue=!1);for(var Ae=1/0,He=1/0,nt=-1/0,ct=-1/0,Pt=F[0],jt=0;jtnt)&&(nt=hn.x),(!jt||hn.y>ct)&&(ct=hn.y)}var mn=nt-Ae,Dn=ct-He,Xn=Math.min(mn,Dn),$n=Xn/2,mr=new _p([],Ob);if(Xn===0)return new a(Ae,He);for(var Or=Ae;OrHr.d||!Hr.d)&&(Hr=mo,ue&&console.log("found best %d after %d probes",Math.round(1e4*mo.d)/1e4,fo)),mo.max-Hr.d<=G||($n=mo.h/2,mr.push(new s1(mo.p.x-$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x-$n,mo.p.y+$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y+$n,$n,F)),fo+=4)}return ue&&(console.log("num probes: "+fo),console.log("best distance: "+Hr.d)),Hr.p}function Ob(F,G){return G.max-F.max}function s1(F,G,ue,Ae){this.p=new a(F,G),this.h=ue,this.d=function(He,nt){for(var ct=!1,Pt=1/0,jt=0;jtHe.y!=mr.y>He.y&&He.x<(mr.x-$n.x)*(He.y-$n.y)/(mr.y-$n.y)+$n.x&&(ct=!ct),Pt=Math.min(Pt,Pu(He,$n,mr))}return(ct?1:-1)*Math.sqrt(Pt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}_p.prototype.push=function(F){this.data.push(F),this.length++,this._up(this.length-1)},_p.prototype.pop=function(){if(this.length!==0){var F=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),F}},_p.prototype.peek=function(){return this.data[0]},_p.prototype._up=function(F){for(var G=this.data,ue=this.compare,Ae=G[F];F>0;){var He=F-1>>1,nt=G[He];if(ue(Ae,nt)>=0)break;G[F]=nt,F=He}G[F]=Ae},_p.prototype._down=function(F){for(var G=this.data,ue=this.compare,Ae=this.length>>1,He=G[F];F=0)break;G[F]=ct,F=nt}G[F]=He};var Um=7,h0=Number.POSITIVE_INFINITY;function p0(F,G){return G[1]!==h0?function(ue,Ae,He){var nt=0,ct=0;switch(Ae=Math.abs(Ae),He=Math.abs(He),ue){case"top-right":case"top-left":case"top":ct=He-Um;break;case"bottom-right":case"bottom-left":case"bottom":ct=-He+Um}switch(ue){case"top-right":case"bottom-right":case"right":nt=-Ae;break;case"top-left":case"bottom-left":case"left":nt=Ae}return[nt,ct]}(F,G[0],G[1]):function(ue,Ae){var He=0,nt=0;Ae<0&&(Ae=0);var ct=Ae/Math.sqrt(2);switch(ue){case"top-right":case"top-left":nt=ct-Um;break;case"bottom-right":case"bottom-left":nt=-ct+Um;break;case"bottom":nt=-Ae+Um;break;case"top":nt=Ae-Um}switch(ue){case"top-right":case"bottom-right":He=-ct;break;case"top-left":case"bottom-left":He=ct;break;case"left":He=Ae;break;case"right":He=-Ae}return[He,nt]}(F,G[0])}function Ss(F){switch(F){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var kd=255,Ch=kd*$m;function Sb(F,G,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=function(Io,Qo,Po,Ii,bi,Zi,ra,ka){for(var ea=Ii.layout.get("text-rotate").evaluate(Zi,{})*Math.PI/180,as=[],Da=0,ba=Qo.positionedLines;DaCh&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'):Kr.kind==="composite"&&((Hr=[$m*$n.compositeTextSizes[0].evaluate(ct,{},mr),$m*$n.compositeTextSizes[1].evaluate(ct,{},mr)])[0]>Ch||Hr[1]>Ch)&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'),F.addSymbols(F.text,Or,Hr,Pt,nt,ct,hn,G,jt.lineStartIndex,jt.lineLength,Xn,mr);for(var fo=0,mo=mn;fo=0;ct--)if(Ae.dist(nt[ct])0)&&(nt.value.kind!=="constant"||nt.value.value.length>0),hn=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,mn=He.get("symbol-sort-key");if(this.features=[],jt||hn){for(var Dn=G.iconDependencies,Xn=G.glyphDependencies,$n=G.availableImages,mr=new uo(this.zoom),Or=0,Kr=F;Or=0;for(var As=0,hc=bi.sections;As=0;Pt--)nt[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:He},Pt>0&&(He+=G[Pt-1].dist(G[Pt]));for(var jt=0;jt0},dc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},dc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},dc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},dc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},dc.prototype.addIndicesForPlacedSymbol=function(F,G){for(var ue=F.placedSymbolArray.get(G),Ae=ue.vertexStartIndex+4*ue.numGlyphs,He=ue.vertexStartIndex;He1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(F),this.sortedAngle=F,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,Ae=this.symbolInstanceIndexes;ue=0&&jt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),nt.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,nt.verticalPlacedTextSymbolIndex),nt.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.placedIconSymbolIndex),nt.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Ri("SymbolBucket",dc,{omit:["layers","collisionBoxArray","features","compareText"]}),dc.MAX_GLYPHS=65535,dc.addDynamicAttributes=lv;var uv=new _c({"symbol-placement":new Ki(_t.layout_symbol["symbol-placement"]),"symbol-spacing":new Ki(_t.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ki(_t.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Aa(_t.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ki(_t.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ki(_t.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ki(_t.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ki(_t.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ki(_t.layout_symbol["icon-rotation-alignment"]),"icon-size":new Aa(_t.layout_symbol["icon-size"]),"icon-text-fit":new Ki(_t.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ki(_t.layout_symbol["icon-text-fit-padding"]),"icon-image":new Aa(_t.layout_symbol["icon-image"]),"icon-rotate":new Aa(_t.layout_symbol["icon-rotate"]),"icon-padding":new Ki(_t.layout_symbol["icon-padding"]),"icon-keep-upright":new Ki(_t.layout_symbol["icon-keep-upright"]),"icon-offset":new Aa(_t.layout_symbol["icon-offset"]),"icon-anchor":new Aa(_t.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ki(_t.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ki(_t.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ki(_t.layout_symbol["text-rotation-alignment"]),"text-field":new Aa(_t.layout_symbol["text-field"]),"text-font":new Aa(_t.layout_symbol["text-font"]),"text-size":new Aa(_t.layout_symbol["text-size"]),"text-max-width":new Aa(_t.layout_symbol["text-max-width"]),"text-line-height":new Ki(_t.layout_symbol["text-line-height"]),"text-letter-spacing":new Aa(_t.layout_symbol["text-letter-spacing"]),"text-justify":new Aa(_t.layout_symbol["text-justify"]),"text-radial-offset":new Aa(_t.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ki(_t.layout_symbol["text-variable-anchor"]),"text-anchor":new Aa(_t.layout_symbol["text-anchor"]),"text-max-angle":new Ki(_t.layout_symbol["text-max-angle"]),"text-writing-mode":new Ki(_t.layout_symbol["text-writing-mode"]),"text-rotate":new Aa(_t.layout_symbol["text-rotate"]),"text-padding":new Ki(_t.layout_symbol["text-padding"]),"text-keep-upright":new Ki(_t.layout_symbol["text-keep-upright"]),"text-transform":new Aa(_t.layout_symbol["text-transform"]),"text-offset":new Aa(_t.layout_symbol["text-offset"]),"text-allow-overlap":new Ki(_t.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ki(_t.layout_symbol["text-ignore-placement"]),"text-optional":new Ki(_t.layout_symbol["text-optional"])}),Ah={paint:new _c({"icon-opacity":new Aa(_t.paint_symbol["icon-opacity"]),"icon-color":new Aa(_t.paint_symbol["icon-color"]),"icon-halo-color":new Aa(_t.paint_symbol["icon-halo-color"]),"icon-halo-width":new Aa(_t.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Aa(_t.paint_symbol["icon-halo-blur"]),"icon-translate":new Ki(_t.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ki(_t.paint_symbol["icon-translate-anchor"]),"text-opacity":new Aa(_t.paint_symbol["text-opacity"]),"text-color":new Aa(_t.paint_symbol["text-color"],{runtimeType:fr,getOverride:function(F){return F.textColor},hasOverride:function(F){return!!F.textColor}}),"text-halo-color":new Aa(_t.paint_symbol["text-halo-color"]),"text-halo-width":new Aa(_t.paint_symbol["text-halo-width"]),"text-halo-blur":new Aa(_t.paint_symbol["text-halo-blur"]),"text-translate":new Ki(_t.paint_symbol["text-translate"]),"text-translate-anchor":new Ki(_t.paint_symbol["text-translate-anchor"])}),layout:uv},Fp=function(F){this.type=F.property.overrides?F.property.overrides.runtimeType:_n,this.defaultValue=F};Fp.prototype.evaluate=function(F){if(F.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(F.formattedSection))return G.getOverride(F.formattedSection)}return F.feature&&F.featureState?this.defaultValue.evaluate(F.feature,F.featureState):this.defaultValue.property.specification.default},Fp.prototype.eachChild=function(F){this.defaultValue.isConstant()||F(this.defaultValue.value._styleExpression.expression)},Fp.prototype.outputDefined=function(){return!1},Fp.prototype.serialize=function(){return null},Ri("FormatSectionOverride",Fp,{omit:["defaultValue"]});var tw=function(F){function G(ue){F.call(this,ue,Ah)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(ue,Ae){if(F.prototype.recalculate.call(this,ue,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var He=this.layout.get("text-writing-mode");if(He){for(var nt=[],ct=0,Pt=He;ct",targetMapId:Ae,sourceMapId:nt.mapId})}}},hv.prototype.receive=function(F){var G=F.data,ue=G.id;if(ue&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[ue];var Ae=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[ue]=G,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,G)},hv.prototype.process=function(){if(this.taskQueue.length){var F=this.taskQueue.shift(),G=this.tasks[F];delete this.tasks[F],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(F,G)}},hv.prototype.processTask=function(F,G){var ue=this;if(G.type===""){var Ae=this.callbacks[F];delete this.callbacks[F],Ae&&(G.error?Ae(Kc(G.error)):Ae(null,Kc(G.data)))}else{var He=!1,nt=Z(this.globalScope)?void 0:[],ct=G.hasCallback?function(mn,Dn){He=!0,delete ue.cancelCallbacks[F],ue.target.postMessage({id:F,type:"",sourceMapId:ue.mapId,error:mn?xc(mn):null,data:xc(Dn,nt)},nt)}:function(mn){He=!0},Pt=null,jt=Kc(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,jt,ct);else if(this.parent.getWorkerSource){var hn=G.type.split(".");Pt=this.parent.getWorkerSource(G.sourceMapId,hn[0],jt.source)[hn[1]](jt,ct)}else ct(new Error("Could not find function "+G.type));!He&&Pt&&Pt.cancel&&(this.cancelCallbacks[F]=Pt.cancel)}},hv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var df=function(F,G){F&&(G?this.setSouthWest(F).setNorthEast(G):F.length===4?this.setSouthWest([F[0],F[1]]).setNorthEast([F[2],F[3]]):this.setSouthWest(F[0]).setNorthEast(F[1]))};df.prototype.setNorthEast=function(F){return this._ne=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.setSouthWest=function(F){return this._sw=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.extend=function(F){var G,ue,Ae=this._sw,He=this._ne;if(F instanceof uu)G=F,ue=F;else{if(!(F instanceof df)){if(Array.isArray(F)){if(F.length===4||F.every(Array.isArray)){var nt=F;return this.extend(df.convert(nt))}var ct=F;return this.extend(uu.convert(ct))}return this}if(G=F._sw,ue=F._ne,!G||!ue)return this}return Ae||He?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),He.lng=Math.max(ue.lng,He.lng),He.lat=Math.max(ue.lat,He.lat)):(this._sw=new uu(G.lng,G.lat),this._ne=new uu(ue.lng,ue.lat)),this},df.prototype.getCenter=function(){return new uu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},df.prototype.getSouthWest=function(){return this._sw},df.prototype.getNorthEast=function(){return this._ne},df.prototype.getNorthWest=function(){return new uu(this.getWest(),this.getNorth())},df.prototype.getSouthEast=function(){return new uu(this.getEast(),this.getSouth())},df.prototype.getWest=function(){return this._sw.lng},df.prototype.getSouth=function(){return this._sw.lat},df.prototype.getEast=function(){return this._ne.lng},df.prototype.getNorth=function(){return this._ne.lat},df.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},df.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},df.prototype.isEmpty=function(){return!(this._sw&&this._ne)},df.prototype.contains=function(F){var G=uu.convert(F),ue=G.lng,Ae=G.lat,He=this._sw.lat<=Ae&&Ae<=this._ne.lat,nt=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(nt=this._sw.lng>=ue&&ue>=this._ne.lng),He&&nt},df.convert=function(F){return!F||F instanceof df?F:new df(F)};var Tb=63710088e-1,uu=function(F,G){if(isNaN(F)||isNaN(G))throw new Error("Invalid LngLat object: ("+F+", "+G+")");if(this.lng=+F,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};uu.prototype.wrap=function(){return new uu(C(this.lng,-180,180),this.lat)},uu.prototype.toArray=function(){return[this.lng,this.lat]},uu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},uu.prototype.distanceTo=function(F){var G=Math.PI/180,ue=this.lat*G,Ae=F.lat*G,He=Math.sin(ue)*Math.sin(Ae)+Math.cos(ue)*Math.cos(Ae)*Math.cos((F.lng-this.lng)*G);return Tb*Math.acos(Math.min(He,1))},uu.prototype.toBounds=function(F){F===void 0&&(F=0);var G=360*F/40075017,ue=G/Math.cos(Math.PI/180*this.lat);return new df(new uu(this.lng-ue,this.lat-G),new uu(this.lng+ue,this.lat+G))},uu.convert=function(F){if(F instanceof uu)return F;if(Array.isArray(F)&&(F.length===2||F.length===3))return new uu(Number(F[0]),Number(F[1]));if(!Array.isArray(F)&&typeof F=="object"&&F!==null)return new uu(Number("lng"in F?F.lng:F.lon),Number(F.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Cb=2*Math.PI*Tb;function Kx(F){return Cb*Math.cos(F*Math.PI/180)}function Jx(F){return(180+F)/360}function iw(F){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+F*Math.PI/360)))/360}function e3(F,G){return F/Kx(G)}function lm(F){var G=180-360*F;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var u1=function(F,G,ue){ue===void 0&&(ue=0),this.x=+F,this.y=+G,this.z=+ue};u1.fromLngLat=function(F,G){G===void 0&&(G=0);var ue=uu.convert(F);return new u1(Jx(ue.lng),iw(ue.lat),e3(G,ue.lat))},u1.prototype.toLngLat=function(){return new uu(360*this.x-180,lm(this.y))},u1.prototype.toAltitude=function(){return F=this.z,G=this.y,F*Kx(lm(G));var F,G},u1.prototype.meterInMercatorCoordinateUnits=function(){return 1/Cb*(F=lm(this.y),1/Math.cos(F*Math.PI/180));var F};var cm=function(F,G,ue){this.z=F,this.x=G,this.y=ue,this.key=f1(0,F,F,G,ue)};cm.prototype.equals=function(F){return this.z===F.z&&this.x===F.x&&this.y===F.y},cm.prototype.url=function(F,G){var ue,Ae,He,nt,ct,Pt=(ue=this.x,Ae=this.y,He=this.z,nt=Gx(256*ue,256*(Ae=Math.pow(2,He)-Ae-1),He),ct=Gx(256*(ue+1),256*(Ae+1),He),nt[0]+","+nt[1]+","+ct[0]+","+ct[1]),jt=function(hn,mn,Dn){for(var Xn,$n="",mr=hn;mr>0;mr--)$n+=(mn&(Xn=1<this.canonical.z?new hf(F,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hf(F,this.wrap,F,this.canonical.x>>G,this.canonical.y>>G)},hf.prototype.calculateScaledKey=function(F,G){var ue=this.canonical.z-F;return F>this.canonical.z?f1(this.wrap*+G,F,this.canonical.z,this.canonical.x,this.canonical.y):f1(this.wrap*+G,F,F,this.canonical.x>>ue,this.canonical.y>>ue)},hf.prototype.isChildOf=function(F){if(F.wrap!==this.wrap)return!1;var G=this.canonical.z-F.canonical.z;return F.overscaledZ===0||F.overscaledZ>G&&F.canonical.y===this.canonical.y>>G},hf.prototype.children=function(F){if(this.overscaledZ>=F)return[new hf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,ue=2*this.canonical.x,Ae=2*this.canonical.y;return[new hf(G,this.wrap,G,ue,Ae),new hf(G,this.wrap,G,ue+1,Ae),new hf(G,this.wrap,G,ue,Ae+1),new hf(G,this.wrap,G,ue+1,Ae+1)]},hf.prototype.isLessThan=function(F){return this.wrapF.wrap)&&(this.overscaledZF.overscaledZ)&&(this.canonical.xF.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(F+1)},jm.prototype._unpackMapbox=function(F,G,ue){return(256*F*256+256*G+ue)/10-1e4},jm.prototype._unpackTerrarium=function(F,G,ue){return 256*F+G+ue/256-32768},jm.prototype.getPixels=function(){return new kf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jm.prototype.backfillBorder=function(F,G,ue){if(this.dim!==F.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,He=G*this.dim+this.dim,nt=ue*this.dim,ct=ue*this.dim+this.dim;switch(G){case-1:Ae=He-1;break;case 1:He=Ae+1}switch(ue){case-1:nt=ct-1;break;case 1:ct=nt+1}for(var Pt=-G*this.dim,jt=-ue*this.dim,hn=nt;hn=0&&mn[3]>=0&&Pt.insert(ct,mn[0],mn[1],mn[2],mn[3])}},m0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _g.VectorTile(new Ux(this.rawTileData)).layers,this.sourceLayerCoder=new mv(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},m0.prototype.query=function(F,G,ue,Ae){var He=this;this.loadVTLayers();for(var nt=F.params||{},ct=ua/F.tileSize/F.scale,Pt=xd(nt.filter),jt=F.queryGeometry,hn=F.queryPadding*ct,mn=v0(jt),Dn=this.grid.query(mn.minX-hn,mn.minY-hn,mn.maxX+hn,mn.maxY+hn),Xn=v0(F.cameraQueryGeometry),$n=0,mr=this.grid3D.query(Xn.minX-hn,Xn.minY-hn,Xn.maxX+hn,Xn.maxY+hn,function(Io,Qo,Po,Ii){return function(bi,Zi,ra,ka,ea){for(var as=0,Da=bi;as=ba.x&&ea>=ba.y)return!0}var fl=[new a(Zi,ra),new a(Zi,ea),new a(ka,ea),new a(ka,ra)];if(bi.length>2){for(var As=0,hc=fl;As=0)return!0;return!1}(nt,Dn)){var Xn=this.sourceLayerCoder.decode(ue),$n=this.vtLayers[Xn].feature(Ae);if(He.needGeometry){var mr=Is($n,!0);if(!He.filter(new uo(this.tileID.overscaledZ),mr,this.tileID.canonical))return}else if(!He.filter(new uo(this.tileID.overscaledZ),$n))return;for(var Or=this.getId($n,Xn),Kr=0;KrAe)He=!1;else if(G)if(this.expirationTimeot&&(F.getActor().send("enforceCacheSizeLimit",tt),Yt=0)},i.clamp=O,i.clearTileCache=function(F){var G=h.caches.delete(je);F&&G.catch(F).then(function(){return F()})},i.clipLine=_b,i.clone=function(F){var G=new wu(16);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G[3]=F[3],G[4]=F[4],G[5]=F[5],G[6]=F[6],G[7]=F[7],G[8]=F[8],G[9]=F[9],G[10]=F[10],G[11]=F[11],G[12]=F[12],G[13]=F[13],G[14]=F[14],G[15]=F[15],G},i.clone$1=I,i.clone$2=function(F){var G=new wu(3);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G},i.collisionCircleLayout=qO,i.config=ce,i.create=function(){var F=new wu(16);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[11]=0,F[12]=0,F[13]=0,F[14]=0),F[0]=1,F[5]=1,F[10]=1,F[15]=1,F},i.create$1=function(){var F=new wu(9);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[5]=0,F[6]=0,F[7]=0),F[0]=1,F[4]=1,F[8]=1,F},i.create$2=function(){var F=new wu(4);return wu!=Float32Array&&(F[1]=0,F[2]=0),F[0]=1,F[3]=1,F},i.createCommonjsModule=S,i.createExpression=zu,i.createLayout=Si,i.createStyleLayer=function(F){return F.type==="custom"?new rw(F):new JO[F.type](F)},i.cross=function(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=ue[0],Pt=ue[1],jt=ue[2];return F[0]=He*jt-nt*Pt,F[1]=nt*ct-Ae*jt,F[2]=Ae*Pt-He*ct,F},i.deepEqual=function F(G,ue){if(Array.isArray(G)){if(!Array.isArray(ue)||G.length!==ue.length)return!1;for(var Ae=0;Ae0&&(nt=1/Math.sqrt(nt)),F[0]=G[0]*nt,F[1]=G[1]*nt,F[2]=G[2]*nt,F},i.number=Di,i.offscreenCanvasSupported=ln,i.ortho=function(F,G,ue,Ae,He,nt,ct){var Pt=1/(G-ue),jt=1/(Ae-He),hn=1/(nt-ct);return F[0]=-2*Pt,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=-2*jt,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=2*hn,F[11]=0,F[12]=(G+ue)*Pt,F[13]=(He+Ae)*jt,F[14]=(ct+nt)*hn,F[15]=1,F},i.parseGlyphPBF=function(F){return new Ux(F).readFields(Y_,[])},i.pbf=Ux,i.performSymbolLayout=function(F,G,ue,Ae,He,nt,ct){F.createArrays();var Pt=512*F.overscaling;F.tilePixelRatio=ua/Pt,F.compareText={},F.iconsNeedLinear=!1;var jt=F.layers[0].layout,hn=F.layers[0]._unevaluatedLayout._values,mn={};if(F.textSizeData.kind==="composite"){var Dn=F.textSizeData,Xn=Dn.minZoom,$n=Dn.maxZoom;mn.compositeTextSizes=[hn["text-size"].possiblyEvaluate(new uo(Xn),ct),hn["text-size"].possiblyEvaluate(new uo($n),ct)]}if(F.iconSizeData.kind==="composite"){var mr=F.iconSizeData,Or=mr.minZoom,Kr=mr.maxZoom;mn.compositeIconSizes=[hn["icon-size"].possiblyEvaluate(new uo(Or),ct),hn["icon-size"].possiblyEvaluate(new uo(Kr),ct)]}mn.layoutTextSize=hn["text-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.layoutIconSize=hn["icon-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.textMaxSize=hn["text-size"].possiblyEvaluate(new uo(18));for(var Hr=jt.get("text-line-height")*Oc,fo=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",mo=jt.get("text-keep-upright"),Io=jt.get("text-size"),Qo=function(){var bi=Ii[Po],Zi=jt.get("text-font").evaluate(bi,{},ct).join(","),ra=Io.evaluate(bi,{},ct),ka=mn.layoutTextSize.evaluate(bi,{},ct),ea=mn.layoutIconSize.evaluate(bi,{},ct),as={horizontal:{},vertical:void 0},Da=bi.text,ba=[0,0];if(Da){var fl=Da.toString(),As=jt.get("text-letter-spacing").evaluate(bi,{},ct)*Oc,hc=function(Us){for(var _l=0,fu=Us;_l=ua||O0.y<0||O0.y>=ua||function(hu,ip,$4,qm,lw,cw,o2,$p,Rb,Lb,Oy,bv,uw,fw,ud,i2,a2,s2,Ib,n3,Eh,Db,l2,fm,r3){var xv,g1,_v,wv,Sy,Ov=hu.addToLineVertexArray(ip,$4),dw=0,o3=0,Bb=0,hw=0,v1=-1,c2=-1,Wm={},pw=Yo(""),mw=0,wp=0;if($p._unevaluatedLayout.getValue("text-radial-offset")===void 0?(mw=(xv=$p.layout.get("text-offset").evaluate(Eh,{},fm).map(function(y1){return y1*Oc}))[0],wp=xv[1]):(mw=$p.layout.get("text-radial-offset").evaluate(Eh,{},fm)*Oc,wp=h0),hu.allowVerticalPlacement&&qm.vertical){var zb=$p.layout.get("text-rotate").evaluate(Eh,{},fm)+90,u2=qm.vertical;wv=new Vm(Rb,ip,Lb,Oy,bv,u2,uw,fw,ud,zb),o2&&(Sy=new Vm(Rb,ip,Lb,Oy,bv,o2,a2,s2,ud,zb))}if(lw){var Hf=$p.layout.get("icon-rotate").evaluate(Eh,{}),V4=$p.layout.get("icon-text-fit")!=="none",ap=Wx(lw,Hf,l2,V4),Nb=o2?Wx(o2,Hf,l2,V4):void 0;_v=new Vm(Rb,ip,Lb,Oy,bv,lw,a2,s2,!1,Hf),dw=4*ap.length;var i3=hu.iconSizeData,dm=null;i3.kind==="source"?(dm=[$m*$p.layout.get("icon-size").evaluate(Eh,{})])[0]>Ch&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'):i3.kind==="composite"&&((dm=[$m*Db.compositeIconSizes[0].evaluate(Eh,{},fm),$m*Db.compositeIconSizes[1].evaluate(Eh,{},fm)])[0]>Ch||dm[1]>Ch)&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'),hu.addSymbols(hu.icon,ap,dm,n3,Ib,Eh,!1,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),v1=hu.icon.placedSymbolArray.length-1,Nb&&(o3=4*Nb.length,hu.addSymbols(hu.icon,Nb,dm,n3,Ib,Eh,Qh.vertical,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),c2=hu.icon.placedSymbolArray.length-1)}for(var ky in qm.horizontal){var f2=qm.horizontal[ky];if(!g1){pw=Yo(f2.text);var a3=$p.layout.get("text-rotate").evaluate(Eh,{},fm);g1=new Vm(Rb,ip,Lb,Oy,bv,f2,uw,fw,ud,a3)}var d2=f2.positionedLines.length===1;if(Bb+=Sb(hu,ip,f2,cw,$p,ud,Eh,i2,Ov,qm.vertical?Qh.horizontal:Qh.horizontalOnly,d2?Object.keys(qm.horizontal):[ky],Wm,v1,Db,fm),d2)break}qm.vertical&&(hw+=Sb(hu,ip,qm.vertical,cw,$p,ud,Eh,i2,Ov,Qh.vertical,["vertical"],Wm,c2,Db,fm));var s3=g1?g1.boxStartIndex:hu.collisionBoxArray.length,h2=g1?g1.boxEndIndex:hu.collisionBoxArray.length,Fb=wv?wv.boxStartIndex:hu.collisionBoxArray.length,l3=wv?wv.boxEndIndex:hu.collisionBoxArray.length,c3=_v?_v.boxStartIndex:hu.collisionBoxArray.length,U4=_v?_v.boxEndIndex:hu.collisionBoxArray.length,p2=Sy?Sy.boxStartIndex:hu.collisionBoxArray.length,m2=Sy?Sy.boxEndIndex:hu.collisionBoxArray.length,Mg=-1,S0=function(y1,g2){return y1&&y1.circleDiameter?Math.max(y1.circleDiameter,g2):g2};Mg=S0(g1,Mg),Mg=S0(wv,Mg),Mg=S0(_v,Mg);var gw=(Mg=S0(Sy,Mg))>-1?1:0;gw&&(Mg*=r3/Oc),hu.glyphOffsetArray.length>=dc.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Eh.sortKey!==void 0&&hu.addToSortKeyRanges(hu.symbolInstances.length,Eh.sortKey),hu.symbolInstances.emplaceBack(ip.x,ip.y,Wm.right>=0?Wm.right:-1,Wm.center>=0?Wm.center:-1,Wm.left>=0?Wm.left:-1,Wm.vertical||-1,v1,c2,pw,s3,h2,Fb,l3,c3,U4,p2,m2,Lb,Bb,hw,dw,o3,gw,0,uw,mw,wp,Mg)}(Us,O0,t3,fu,ni,Wc,Qm,Us.layers[0],Us.collisionBoxArray,_l.index,_l.sourceLayerIndex,Us.index,t2,dl,Iu,Mh,Lu,Mf,vv,tu,_l,Yc,mc,dh,$l)};if(h1==="line")for(var b0=0,Hm=_b(_l.geometry,0,0,ua,ua);b01){var _y=a1(xy,du,fu.vertical||qd,ni,Cd,gv);_y&&p1(xy,_y)}}else if(_l.type==="Polygon")for(var Md=0,m1=bg(_l.geometry,0);Md=Br.maxzoom||Br.visibility!=="none"&&(c(tr,this.zoom,st),(Jt[Br.id]=Br.createBucket({index:at.bucketLayerIDs.length,layers:tr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_n,sourceID:this.source})).populate(wn,Zt,this.tileID.canonical),at.bucketLayerIDs.push(tr.map(function(sr){return sr.id})))}}}var $r=i.mapObject(Zt.glyphDependencies,function(sr){return Object.keys(sr).map(Number)});Object.keys($r).length?bt.send("getGlyphs",{uid:this.uid,stacks:$r},function(sr,lr){Bt||(Bt=sr,_t=lr,gr.call(Dt))}):_t={};var vr=Object.keys(Zt.iconDependencies);vr.length?bt.send("getImages",{icons:vr,source:this.source,tileID:this.tileID,type:"icons"},function(sr,lr){Bt||(Bt=sr,qt=lr,gr.call(Dt))}):qt={};var qn=Object.keys(Zt.patternDependencies);function gr(){if(Bt)return Vt(Bt);if(_t&&qt&&en){var sr=new m(_t),lr=new i.ImageAtlas(qt,en);for(var zr in Jt){var Vr=Jt[zr];Vr instanceof i.SymbolBucket?(c(Vr.layers,this.zoom,st),i.performSymbolLayout(Vr,_t,sr.positions,qt,lr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vr.hasPattern&&(Vr instanceof i.LineBucket||Vr instanceof i.FillBucket||Vr instanceof i.FillExtrusionBucket)&&(c(Vr.layers,this.zoom,st),Vr.addFeatures(Zt,this.tileID.canonical,lr.patternPositions))}this.status="done",Vt(null,{buckets:i.values(Jt).filter(function(eo){return!eo.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:sr.image,imageAtlas:lr,glyphMap:this.returnDependencies?_t:null,iconMap:this.returnDependencies?qt:null,glyphPositions:this.returnDependencies?sr.positions:null})}}qn.length?bt.send("getImages",{icons:qn,source:this.source,tileID:this.tileID,type:"patterns"},function(sr,lr){Bt||(Bt=sr,en=lr,gr.call(Dt))}):en={},gr.call(this)};var p=function(vt,xt,st,bt){this.actor=vt,this.layerIndex=xt,this.availableImages=st,this.loadVectorData=bt||h,this.loading={},this.loaded={}};p.prototype.loadTile=function(vt,xt){var st=this,bt=vt.uid;this.loading||(this.loading={});var Vt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Dt=this.loading[bt]=new a(vt);Dt.abort=this.loadVectorData(vt,function(it,at){if(delete st.loading[bt],it||!at)return Dt.status="done",st.loaded[bt]=Dt,xt(it);var Bt=at.rawData,_t={};at.expires&&(_t.expires=at.expires),at.cacheControl&&(_t.cacheControl=at.cacheControl);var qt={};if(Vt){var en=Vt.finish();en&&(qt.resourceTiming=JSON.parse(JSON.stringify(en)))}Dt.vectorTile=at.vectorTile,Dt.parse(at.vectorTile,st.layerIndex,st.availableImages,st.actor,function(Jt,Zt){if(Jt||!Zt)return xt(Jt);xt(null,i.extend({rawTileData:Bt.slice(0)},Zt,_t,qt))}),st.loaded=st.loaded||{},st.loaded[bt]=Dt})},p.prototype.reloadTile=function(vt,xt){var st=this,bt=this.loaded,Vt=vt.uid,Dt=this;if(bt&&bt[Vt]){var it=bt[Vt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Bt,_t){var qt=it.reloadCallback;qt&&(delete it.reloadCallback,it.parse(it.vectorTile,Dt.layerIndex,st.availableImages,Dt.actor,qt)),xt(Bt,_t)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},p.prototype.abortTile=function(vt,xt){var st=this.loading,bt=vt.uid;st&&st[bt]&&st[bt].abort&&(st[bt].abort(),delete st[bt]),xt()},p.prototype.removeTile=function(vt,xt){var st=this.loaded,bt=vt.uid;st&&st[bt]&&delete st[bt],xt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,xt){var st=vt.uid,bt=vt.encoding,Vt=vt.rawImageData,Dt=v&&Vt instanceof v?this.getImageData(Vt):Vt,it=new i.DEMData(st,Dt,bt);this.loaded=this.loaded||{},this.loaded[st]=it,xt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var xt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:xt.width,height:xt.height},xt.data)},_.prototype.removeTile=function(vt){var xt=this.loaded,st=vt.uid;xt&&xt[st]&&delete xt[st]};var O=function vt(xt,st){var bt,Vt=xt&&xt.type;if(Vt==="FeatureCollection")for(bt=0;bt=0!=!!xt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],xt=0,st=this._feature.geometry;xt>31}function K(vt,xt){for(var st=vt.loadGeometry(),bt=vt.type,Vt=0,Dt=0,it=st.length,at=0;at>1;Y(vt,xt,it,bt,Vt,Dt%2),q(vt,xt,st,bt,it-1,Dt+1),q(vt,xt,st,it+1,Vt,Dt+1)}}function Y(vt,xt,st,bt,Vt,Dt){for(;Vt>bt;){if(Vt-bt>600){var it=Vt-bt+1,at=st-bt+1,Bt=Math.log(it),_t=.5*Math.exp(2*Bt/3),qt=.5*Math.sqrt(Bt*_t*(it-_t)/it)*(at-it/2<0?-1:1);Y(vt,xt,st,Math.max(bt,Math.floor(st-at*_t/it+qt)),Math.min(Vt,Math.floor(st+(it-at)*_t/it+qt)),Dt)}var en=xt[2*st+Dt],Jt=bt,Zt=Vt;for(ee(vt,xt,bt,st),xt[2*Vt+Dt]>en&&ee(vt,xt,bt,Vt);Jten;)Zt--}xt[2*bt+Dt]===en?ee(vt,xt,bt,Zt):ee(vt,xt,++Zt,Vt),Zt<=st&&(bt=Zt+1),st<=Zt&&(Vt=Zt-1)}}function ee(vt,xt,st,bt){me(vt,st,bt),me(xt,2*st,2*bt),me(xt,2*st+1,2*bt+1)}function me(vt,xt,st){var bt=vt[xt];vt[xt]=vt[st],vt[st]=bt}function pe(vt,xt,st,bt){var Vt=vt-st,Dt=xt-bt;return Vt*Vt+Dt*Dt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,xt,st,bt,Vt){xt===void 0&&(xt=se),st===void 0&&(st=ae),bt===void 0&&(bt=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=bt,this.points=vt;for(var Dt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Dt(vt.length),at=this.coords=new Vt(2*vt.length),Bt=0;Bt=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[wn]);else{var An=Math.floor((_n+rn)/2);en=Dt[2*An],Jt=Dt[2*An+1],en>=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[An]);var Kn=(sn+1)%2;(sn===0?it<=en:at<=Jt)&&(Zt.push(_n),Zt.push(An-1),Zt.push(Kn)),(sn===0?Bt>=en:_t>=Jt)&&(Zt.push(An+1),Zt.push(rn),Zt.push(Kn))}}return Nt}(this.ids,this.coords,vt,xt,st,bt,this.nodeSize)},ce.prototype.within=function(vt,xt,st){return function(bt,Vt,Dt,it,at,Bt){for(var _t=[0,bt.length-1,0],qt=[],en=at*at;_t.length;){var Jt=_t.pop(),Zt=_t.pop(),Nt=_t.pop();if(Zt-Nt<=Bt)for(var sn=Nt;sn<=Zt;sn++)pe(Vt[2*sn],Vt[2*sn+1],Dt,it)<=en&&qt.push(bt[sn]);else{var rn=Math.floor((Nt+Zt)/2),_n=Vt[2*rn],wn=Vt[2*rn+1];pe(_n,wn,Dt,it)<=en&&qt.push(bt[rn]);var An=(Jt+1)%2;(Jt===0?Dt-at<=_n:it-at<=wn)&&(_t.push(Nt),_t.push(rn-1),_t.push(An)),(Jt===0?Dt+at>=_n:it+at>=wn)&&(_t.push(rn+1),_t.push(Zt),_t.push(An))}}return qt}(this.ids,this.coords,vt,xt,st,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ye=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ve(vt,xt,st,bt,Vt){return{x:vt,y:xt,zoom:1/0,id:st,parentId:-1,numPoints:bt,properties:Vt}}function _e(vt,xt){var st=vt.geometry.coordinates,bt=st[0],Vt=st[1];return{x:Pe(bt),y:Ie(Vt),zoom:1/0,index:xt,parentId:-1}}function we(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(bt=vt.x,360*(bt-.5)),(xt=vt.y,st=(180-360*xt)*Math.PI/180,360*Math.atan(Math.exp(st))/Math.PI-90)]}};var xt,st,bt}function Te(vt){var xt=vt.numPoints,st=xt>=1e4?Math.round(xt/1e3)+"k":xt>=1e3?Math.round(xt/100)/10+"k":xt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:xt,point_count_abbreviated:st})}function Pe(vt){return vt/360+.5}function Ie(vt){var xt=Math.sin(vt*Math.PI/180),st=.5-.25*Math.log((1+xt)/(1-xt))/Math.PI;return st<0?0:st>1?1:st}function ze(vt,xt){for(var st in xt)vt[st]=xt[st];return vt}function De(vt){return vt.x}function Qe(vt){return vt.y}function Ve(vt,xt,st,bt){for(var Vt,Dt=bt,it=st-xt>>1,at=st-xt,Bt=vt[xt],_t=vt[xt+1],qt=vt[st],en=vt[st+1],Jt=xt+3;JtDt)Vt=Jt,Dt=Zt;else if(Zt===Dt){var Nt=Math.abs(Jt-it);Ntbt&&(Vt-xt>3&&Ve(vt,xt,Vt,bt),vt[Vt+2]=Dt,st-Vt>3&&Ve(vt,Vt,st,bt))}function $e(vt,xt,st,bt,Vt,Dt){var it=Vt-st,at=Dt-bt;if(it!==0||at!==0){var Bt=((vt-st)*it+(xt-bt)*at)/(it*it+at*at);Bt>1?(st=Vt,bt=Dt):Bt>0&&(st+=it*Bt,bt+=at*Bt)}return(it=vt-st)*it+(at=xt-bt)*at}function Oe(vt,xt,st,bt){var Vt={id:vt===void 0?null:vt,type:xt,geometry:st,tags:bt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dt){var it=Dt.geometry,at=Dt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Dt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Bt=0;Bt0&&(it+=bt?(Vt*_t-Bt*Dt)/2:Math.sqrt(Math.pow(Bt-Vt,2)+Math.pow(_t-Dt,2))),Vt=Bt,Dt=_t}var qt=xt.length-3;xt[2]=1,Ve(xt,0,qt,st),xt[qt+2]=1,xt.size=Math.abs(it),xt.start=0,xt.end=xt.size}function Ze(vt,xt,st,bt){for(var Vt=0;Vt1?1:st}function Me(vt,xt,st,bt,Vt,Dt,it,at){if(bt/=xt,Dt>=(st/=xt)&&it=bt)return null;for(var Bt=[],_t=0;_t=st&&Nt=bt)){var sn=[];if(Jt==="Point"||Jt==="MultiPoint")Fe(en,sn,st,bt,Vt);else if(Jt==="LineString")je(en,sn,st,bt,Vt,!1,at.lineMetrics);else if(Jt==="MultiLineString")ot(en,sn,st,bt,Vt,!1);else if(Jt==="Polygon")ot(en,sn,st,bt,Vt,!0);else if(Jt==="MultiPolygon")for(var rn=0;rn=st&&it<=bt&&(xt.push(vt[Dt]),xt.push(vt[Dt+1]),xt.push(vt[Dt+2]))}}function je(vt,xt,st,bt,Vt,Dt,it){for(var at,Bt,_t=tt(vt),qt=Vt===0?ht:pt,en=vt.start,Jt=0;Jtst&&(Bt=qt(_t,Zt,Nt,rn,_n,st),it&&(_t.start=en+at*Bt)):wn>bt?An=st&&(Bt=qt(_t,Zt,Nt,rn,_n,st),Kn=!0),An>bt&&wn<=bt&&(Bt=qt(_t,Zt,Nt,rn,_n,bt),Kn=!0),!Dt&&Kn&&(it&&(_t.end=en+at*Bt),xt.push(_t),_t=tt(vt)),it&&(en+=at)}var fr=vt.length-3;Zt=vt[fr],Nt=vt[fr+1],sn=vt[fr+2],(wn=Vt===0?Zt:Nt)>=st&&wn<=bt&&Ge(_t,Zt,Nt,sn),fr=_t.length-3,Dt&&fr>=3&&(_t[fr]!==_t[0]||_t[fr+1]!==_t[1])&&Ge(_t,_t[0],_t[1],_t[2]),_t.length&&xt.push(_t)}function tt(vt){var xt=[];return xt.size=vt.size,xt.start=vt.start,xt.end=vt.end,xt}function ot(vt,xt,st,bt,Vt,Dt){for(var it=0;itit.maxX&&(it.maxX=qt),en>it.maxY&&(it.maxY=en)}return it}function tn(vt,xt,st,bt){var Vt=xt.geometry,Dt=xt.type,it=[];if(Dt==="Point"||Dt==="MultiPoint")for(var at=0;at0&&xt.size<(Vt?it:bt))st.numPoints+=xt.length/3;else{for(var at=[],Bt=0;Btit)&&(st.numSimplified++,at.push(xt[Bt]),at.push(xt[Bt+1])),st.numPoints++;Vt&&function(_t,qt){for(var en=0,Jt=0,Zt=_t.length,Nt=Zt-2;Jt0===qt)for(Jt=0,Zt=_t.length;Jt24)throw new Error("maxZoom should be in the 0-24 range");if(xt.promoteId&&xt.generateId)throw new Error("promoteId and generateId cannot be used together.");var bt=function(Vt,Dt){var it=[];if(Vt.type==="FeatureCollection")for(var at=0;at=bt;_t--){var qt=+Date.now();at=this._cluster(at,_t),this.trees[_t]=new ce(at,De,Qe,Dt,Float32Array),st&&console.log("z%d: %d clusters in %dms",_t,at.length,+Date.now()-qt)}return st&&console.timeEnd("total time"),this},ye.prototype.getClusters=function(vt,xt){var st=((vt[0]+180)%360+360)%360-180,bt=Math.max(-90,Math.min(90,vt[1])),Vt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Dt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)st=-180,Vt=180;else if(st>Vt){var it=this.getClusters([st,bt,180,Dt],xt),at=this.getClusters([-180,bt,Vt,Dt],xt);return it.concat(at)}for(var Bt=this.trees[this._limitZoom(xt)],_t=[],qt=0,en=Bt.range(Pe(st),Ie(Dt),Pe(Vt),Ie(bt));qtxt&&(Nt+=wn.numPoints||1)}if(Nt>=at){for(var An=qt.x*Zt,Kn=qt.y*Zt,fr=it&&Zt>1?this._map(qt,!0):null,Un=(_t<<5)+(xt+1)+this.points.length,Zn=0,tr=Jt;Zn1)for(var qn=0,gr=Jt;qn>5},ye.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ye.prototype._map=function(vt,xt){if(vt.numPoints)return xt?ze({},vt.properties):vt.properties;var st=this.points[vt.index].properties,bt=this.options.map(st);return xt&&bt===st?ze({},bt):bt},Ot.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ot.prototype.splitTile=function(vt,xt,st,bt,Vt,Dt,it){for(var at=[vt,xt,st,bt],Bt=this.options,_t=Bt.debug;at.length;){bt=at.pop(),st=at.pop(),xt=at.pop(),vt=at.pop();var qt=1<1&&console.time("creation"),Jt=this.tiles[en]=ln(vt,xt,st,bt,Bt),this.tileCoords.push({z:xt,x:st,y:bt}),_t)){_t>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",xt,st,bt,Jt.numFeatures,Jt.numPoints,Jt.numSimplified),console.timeEnd("creation"));var Zt="z"+xt;this.stats[Zt]=(this.stats[Zt]||0)+1,this.total++}if(Jt.source=vt,Vt){if(xt===Bt.maxZoom||xt===Vt)continue;var Nt=1<1&&console.time("clipping");var sn,rn,_n,wn,An,Kn,fr=.5*Bt.buffer/Bt.extent,Un=.5-fr,Zn=.5+fr,tr=1+fr;sn=rn=_n=wn=null,An=Me(vt,qt,st-fr,st+Zn,0,Jt.minX,Jt.maxX,Bt),Kn=Me(vt,qt,st+Un,st+tr,0,Jt.minX,Jt.maxX,Bt),vt=null,An&&(sn=Me(An,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),rn=Me(An,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),An=null),Kn&&(_n=Me(Kn,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),wn=Me(Kn,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),Kn=null),_t>1&&console.timeEnd("clipping"),at.push(sn||[],xt+1,2*st,2*bt),at.push(rn||[],xt+1,2*st,2*bt+1),at.push(_n||[],xt+1,2*st+1,2*bt),at.push(wn||[],xt+1,2*st+1,2*bt+1)}}},Ot.prototype.getTile=function(vt,xt,st){var bt=this.options,Vt=bt.extent,Dt=bt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,xt,st);for(var Bt,_t=vt,qt=xt,en=st;!Bt&&_t>0;)_t--,qt=Math.floor(qt/2),en=Math.floor(en/2),Bt=this.tiles[cn(_t,qt,en)];return Bt&&Bt.source?(Dt>1&&console.log("found parent tile z%d-%d-%d",_t,qt,en),Dt>1&&console.time("drilling down"),this.splitTile(Bt.source,_t,qt,en,vt,xt,st),Dt>1&&console.timeEnd("drilling down"),this.tiles[at]?zt(this.tiles[at],Vt):null):null};var Pn=function(vt){function xt(st,bt,Vt,Dt){vt.call(this,st,bt,Vt,Cn),Dt&&(this.loadGeoJSON=Dt)}return vt&&(xt.__proto__=vt),xt.prototype=Object.create(vt&&vt.prototype),xt.prototype.constructor=xt,xt.prototype.loadData=function(st,bt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=bt,this._pendingLoadDataParams=st,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},xt.prototype._loadData=function(){var st=this;if(this._pendingCallback&&this._pendingLoadDataParams){var bt=this._pendingCallback,Vt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dt=!!(Vt&&Vt.request&&Vt.request.collectResourceTiming)&&new i.RequestPerformance(Vt.request);this.loadGeoJSON(Vt,function(it,at){if(it||!at)return bt(it);if(typeof at!="object")return bt(new Error("Input data given to '"+Vt.source+"' is not a valid GeoJSON object."));O(at,!0);try{if(Vt.filter){var Bt=i.createExpression(Vt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Bt.result==="error")throw new Error(Bt.value.map(function(Jt){return Jt.key+": "+Jt.message}).join(", "));var _t=at.features.filter(function(Jt){return Bt.value.evaluate({zoom:0},Jt)});at={type:"FeatureCollection",features:_t}}st._geoJSONIndex=Vt.cluster?new ye(function(Jt){var Zt=Jt.superclusterOptions,Nt=Jt.clusterProperties;if(!Nt||!Zt)return Zt;for(var sn={},rn={},_n={accumulated:null,zoom:0},wn={properties:null},An=Object.keys(Nt),Kn=0,fr=An;Kn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var C=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ne){if(this.loaded!==ne&&(this.loaded=ne,ne)){for(var V=0,ie=this.requestors;V=0?1.2:1))}function P(J,le,ne,V,ie,ge,xe){for(var Ee=0;Ee65535)et(new Error("glyphs > 65535 not supported"));else if(gt.ranges[Mt])et(null,{stack:rt,id:dt,glyph:Rt});else{var Xt=gt.requests[Mt];Xt||(Xt=gt.requests[Mt]=[],L.loadGlyphRange(rt,Mt,ne.url,ne.requestManager,function(dn,bn){if(bn){for(var vn in bn)ne._doesCharSupportLocalGlyph(+vn)||(gt.glyphs[+vn]=bn[+vn]);gt.ranges[Mt]=!0}for(var Ln=0,gn=Xt;Ln1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=void 0,Mt=ie/ne*(V+1);if(Ne.isDash){var Xt=V-Math.abs(Mt);Rt=Math.sqrt(gt*gt+Xt*Xt)}else Rt=V-Math.sqrt(gt*gt+Mt*Mt);this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ne=J[le],V=J[le+1];ne.zeroLength?J.splice(le,1):V&&V.isDash===ne.isDash&&(V.left=ne.left,J.splice(le,1))}var ie=J[0],ge=J[J.length-1];ie.isDash===ge.isDash&&(ie.left=ge.left-this.width,ge.right=ie.right+this.width);for(var xe=this.width*this.nextRow,Ee=0,Ne=J[Ee],et=0;et1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=Ne.isDash?gt:-gt;this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addDash=function(J,le){var ne=le?7:0,V=2*ne+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ie=0,ge=0;ge=ne&&J.x=V&&J.y0&&(et[new i.OverscaledTileID(ne.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,ne.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,Ne,V.z,Ee,V.y-1).key]={backfilled:!1}),V.y+10&&(ie.resourceTiming=ne._resourceTiming,ne._resourceTiming=[]),ne.fire(new i.Event("data",ie))}})},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setData=function(ne){var V=this;return this._data=ne,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ie){if(ie)V.fire(new i.ErrorEvent(ie));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ne,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterChildren=function(ne,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterLeaves=function(ne,V,ie,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ne,limit:V,offset:ie},ge),this},le.prototype._updateWorkerData=function(ne){var V=this;this._loaded=!1;var ie=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ie.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ie.request.collectResourceTiming=this._collectResourceTiming):ie.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ie,function(xe,Ee){V._removed||Ee&&Ee.abandoned||(V._loaded=!0,Ee&&Ee.resourceTiming&&Ee.resourceTiming[V.id]&&(V._resourceTiming=Ee.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ie.source},null),ne(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ne,V){var ie=this,ge=ne.actor?"reloadTile":"loadTile";ne.actor=this.actor;var xe={type:this.type,uid:ne.uid,tileID:ne.tileID,zoom:ne.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ne.request=this.actor.send(ge,xe,function(Ee,Ne){return delete ne.request,ne.unloadVectorData(),ne.aborted?V(null):Ee?V(Ee):(ne.loadVectorData(Ne,ie.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ne){ne.request&&(ne.request.cancel(),delete ne.request),ne.aborted=!0},le.prototype.unloadTile=function(ne){ne.unloadVectorData(),this.actor.send("removeTile",{uid:ne.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),re=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ne,V,ie,ge){J.call(this),this.id=ne,this.dispatcher=ie,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ne,V){var ie=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ie._loaded=!0,ge?ie.fire(new i.ErrorEvent(ge)):xe&&(ie.image=xe,ne&&(ie.coordinates=ne),V&&V(),ie._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ne){var V=this;return this.image&&ne.url?(this.options.url=ne.url,this.load(ne.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setCoordinates=function(ne){var V=this;this.coordinates=ne;var ie=ne.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Ee=1/0,Ne=1/0,et=-1/0,rt=-1/0,dt=0,gt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ne}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ne){this.map||(this.map=ne,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ne=this.map.painter.context,V=ne.gl;for(var ie in this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ne,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ie];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ne,V,ie,ge){J.call(this,ne,V,ie,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Ee){return typeof Ee!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ne){this.map=ne,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ne=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ne=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ne=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ie=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ne||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ie.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ne=0,V=[this.canvas.width,this.canvas.height];nethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ne=J.wrapped().key,V=le===void 0?0:this.data[ne].indexOf(le),ie=this.data[ne][V];return this.data[ne].splice(V,1),ie.timeout&&clearTimeout(ie.timeout),this.data[ne].length===0&&delete this.data[ne],this.onRemove(ie.value),this.order.splice(this.order.indexOf(ne),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ne in this.data)for(var V=0,ie=this.data[ne];V1||(Math.abs(rt)>1&&(Math.abs(rt+gt)===1?rt+=gt:Math.abs(rt-gt)===1&&(rt-=gt)),et.dem&&Ne.dem&&(Ne.dem.backfillBorder(et.dem,rt,dt),Ne.neighboringTiles&&Ne.neighboringTiles[Rt]&&(Ne.neighboringTiles[Rt].backfilled=!0)))}},le.prototype.getTile=function(ne){return this.getTileByID(ne.key)},le.prototype.getTileByID=function(ne){return this._tiles[ne]},le.prototype._retainLoadedChildren=function(ne,V,ie,ge){for(var xe in this._tiles){var Ee=this._tiles[xe];if(!(ge[xe]||!Ee.hasData()||Ee.tileID.overscaledZ<=V||Ee.tileID.overscaledZ>ie)){for(var Ne=Ee.tileID;Ee&&Ee.tileID.overscaledZ>V+1;){var et=Ee.tileID.scaledTo(Ee.tileID.overscaledZ-1);(Ee=this._tiles[et.key])&&Ee.hasData()&&(Ne=et)}for(var rt=Ne;rt.overscaledZ>V;)if(ne[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Ne.key]=Ne;break}}}},le.prototype.findLoadedParent=function(ne,V){if(ne.key in this._loadedParentTiles){var ie=this._loadedParentTiles[ne.key];return ie&&ie.tileID.overscaledZ>=V?ie:null}for(var ge=ne.overscaledZ-1;ge>=V;ge--){var xe=ne.scaledTo(ge),Ee=this._getLoadedTile(xe);if(Ee)return Ee}},le.prototype._getLoadedTile=function(ne){var V=this._tiles[ne.key];return V&&V.hasData()?V:this._cache.getByKey(ne.wrapped().key)},le.prototype.updateCacheSize=function(ne){var V=(Math.ceil(ne.width/this._source.tileSize)+1)*(Math.ceil(ne.height/this._source.tileSize)+1),ie=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ie):ie;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ne){var V=(ne-(this._prevLng===void 0?ne:this._prevLng))/360,ie=Math.round(V);if(this._prevLng=ne,ie){var ge={};for(var xe in this._tiles){var Ee=this._tiles[xe];Ee.tileID=Ee.tileID.unwrapTo(Ee.tileID.wrap+ie),ge[Ee.tileID.key]=Ee}for(var Ne in this._tiles=ge,this._timers)clearTimeout(this._timers[Ne]),delete this._timers[Ne];for(var et in this._tiles){var rt=this._tiles[et];this._setTileReloadTimer(et,rt)}}},le.prototype.update=function(ne){var V=this;if(this.transform=ne,this._sourceLoaded&&!this._paused){var ie;this.updateCacheSize(ne),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ie=ne.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(In){return new i.OverscaledTileID(In.canonical.z,In.wrap,In.canonical.z,In.canonical.x,In.canonical.y)}):(ie=ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ie=ie.filter(function(In){return V._source.hasTile(In)}))):ie=[];var ge=ne.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Ee=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Ne=this._updateRetainedTiles(ie,ge);if(it(this._source.type)){for(var et={},rt={},dt=0,gt=Object.keys(Ne);dtthis._source.maxzoom){var bn=Xt.children(this._source.maxzoom)[0],vn=this.getTile(bn);if(vn&&vn.hasData()){ie[bn.key]=bn;continue}}else{var Ln=Xt.children(this._source.maxzoom);if(ie[Ln[0].key]&&ie[Ln[1].key]&&ie[Ln[2].key]&&ie[Ln[3].key])continue}for(var gn=dn.wasRequested(),Jn=Xt.overscaledZ-1;Jn>=xe;--Jn){var pn=Xt.scaledTo(Jn);if(ge[pn.key]||(ge[pn.key]=!0,!(dn=this.getTile(pn))&&gn&&(dn=this._addTile(pn)),dn&&(ie[pn.key]=pn,gn=dn.wasRequested(),dn.hasData())))break}}}return ie},le.prototype._updateLoadedParentTileCache=function(){for(var ne in this._loadedParentTiles={},this._tiles){for(var V=[],ie=void 0,ge=this._tiles[ne].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ie=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ie=this._getLoadedTile(xe))break;ge=xe}for(var Ee=0,Ne=V;Ee0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ne in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ne);this._cache.reset()},le.prototype.tilesIn=function(ne,V,ie){var ge=this,xe=[],Ee=this.transform;if(!Ee)return xe;for(var Ne=ie?Ee.getCameraQueryGeometry(ne):ne,et=ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),rt=Ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),dt=this.getIds(),gt=1/0,Rt=1/0,Mt=-1/0,Xt=-1/0,dn=0,bn=rt;dn=0&&Gr[1].y+Pr>=0){var ro=et.map(function(Wo){return In.getTilePoint(Wo)}),po=rt.map(function(Wo){return In.getTilePoint(Wo)});xe.push({tile:pn,tileID:In,queryGeometry:ro,cameraQueryGeometry:po,scale:Ir})}}},gn=0;gn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.updateState(ne,V,ie)},le.prototype.removeFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.removeFeatureState(ne,V,ie)},le.prototype.getFeatureState=function(ne,V){return ne=ne||"_geojsonTileLayer",this._state.getState(ne,V)},le.prototype.setDependencies=function(ne,V,ie){var ge=this._tiles[ne];ge&&ge.setDependencies(V,ie)},le.prototype.reloadTilesForDependencies=function(ne,V){for(var ie in this._tiles)this._tiles[ie].hasDependency(ne,V)&&this._reloadTile(ie,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ne,V)})},le}(i.Evented);function Dt(J,le){var ne=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ne||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ut.workerUrl)}Vt.maxOverzooming=10,Vt.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",_t=function(){this.active={}};_t.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length<_t.workerCount;)this.workers.push(new at);return this.active[J]=!0,this.workers.slice()},_t.prototype.release=function(J){delete this.active[J],this.numActive()===0&&(this.workers.forEach(function(le){le.terminate()}),this.workers=null)},_t.prototype.isPreloaded=function(){return!!this.active[Bt]},_t.prototype.numActive=function(){return Object.keys(this.active).length};var qt,en=Math.floor(i.browser.hardwareConcurrency/2);function Jt(){return qt||(qt=new _t),qt}function Zt(J,le){var ne={};for(var V in J)V!=="ref"&&(ne[V]=J[V]);return i.refProperties.forEach(function(ie){ie in le&&(ne[ie]=le[ie])}),ne}function Nt(J){J=J.slice();for(var le=Object.create(null),ne=0;ne0?(V-ge)/xe:0;return this.points[ie].mult(1-Ee).add(this.points[le].mult(Ee))};var Br=function(J,le,ne){var V=this.boxCells=[],ie=this.circleCells=[];this.xCellCount=Math.ceil(J/ne),this.yCellCount=Math.ceil(le/ne);for(var ge=0;ge=-le[0]&&ne<=le[0]&&V>=-le[1]&&V<=le[1]}function lr(J,le,ne,V,ie,ge,xe,Ee){var Ne=V?J.textSizeData:J.iconSizeData,et=i.evaluateSizeForZoom(Ne,ne.transform.zoom),rt=[256/ne.width*2+1,256/ne.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var gt=J.lineVertexArray,Rt=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Mt=ne.transform.width/ne.transform.height,Xt=!1,dn=0;dnMath.abs(ne.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yne.x)?{needsFlipping:!0}:null}function eo(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt){var Mt,Xt=le/24,dn=J.lineOffsetX*Xt,bn=J.lineOffsetY*Xt;if(J.numGlyphs>1){var vn=J.glyphStartIndex+J.numGlyphs,Ln=J.lineStartIndex,gn=J.lineStartIndex+J.lineLength,Jn=zr(Xt,Ee,dn,bn,ne,rt,dt,J,Ne,ge,gt);if(!Jn)return{notEnoughRoom:!0};var pn=qn(Jn.first.point,xe).point,In=qn(Jn.last.point,xe).point;if(V&&!ne){var Ir=Vr(J.writingMode,pn,In,Rt);if(Ir)return Ir}Mt=[Jn.first];for(var Pr=J.glyphStartIndex+1;Pr0?Wo.point:Jr(dt,po,Gr,1,ie),Bo=Vr(J.writingMode,Gr,si,Rt);if(Bo)return Bo}var Go=Yr(Xt*Ee.getoffsetX(J.glyphStartIndex),dn,bn,ne,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Ne,ge,gt);if(!Go)return{notEnoughRoom:!0};Mt=[Go]}for(var Yo=0,Wi=Mt;Yo0?1:-1,Mt=0;V&&(Rt*=-1,Mt=Math.PI),Rt<0&&(Mt+=Math.PI);for(var Xt=Rt>0?Ee+xe:Ee+xe+1,dn=ie,bn=ie,vn=0,Ln=0,gn=Math.abs(gt),Jn=[];vn+Ln<=gn;){if((Xt+=Rt)=Ne)return null;if(bn=dn,Jn.push(dn),(dn=dt[Xt])===void 0){var pn=new i.Point(et.getx(Xt),et.gety(Xt)),In=qn(pn,rt);if(In.signedDistanceFromCamera>0)dn=dt[Xt]=In.point;else{var Ir=Xt-Rt;dn=Jr(vn===0?ge:new i.Point(et.getx(Ir),et.gety(Ir)),pn,bn,gn-vn+1,rt)}}vn+=Ln,Ln=bn.dist(dn)}var Pr=(gn-vn)/Ln,Gr=dn.sub(bn),ro=Gr.mult(Pr)._add(bn);ro._add(Gr._unit()._perp()._mult(ne*Rt));var po=Mt+Math.atan2(dn.y-bn.y,dn.x-bn.x);return Jn.push(ro),{point:ro,angle:po,path:Jn}}Br.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Br.prototype.insert=function(J,le,ne,V,ie){this._forEachCell(le,ne,V,ie,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ne),this.bboxes.push(V),this.bboxes.push(ie)},Br.prototype.insertCircle=function(J,le,ne,V){this._forEachCell(le-V,ne-V,le+V,ne+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ne),this.circles.push(V)},Br.prototype._insertBoxCell=function(J,le,ne,V,ie,ge){this.boxCells[ie].push(ge)},Br.prototype._insertCircleCell=function(J,le,ne,V,ie,ge){this.circleCells[ie].push(ge)},Br.prototype._query=function(J,le,ne,V,ie,ge){if(ne<0||J>this.width||V<0||le>this.height)return!ie&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ne&&this.height<=V){if(ie)return!0;for(var Ee=0;Ee0:xe},Br.prototype._queryCircle=function(J,le,ne,V,ie){var ge=J-ne,xe=J+ne,Ee=le-ne,Ne=le+ne;if(xe<0||ge>this.width||Ne<0||Ee>this.height)return!V&&[];var et=[],rt={hitTest:V,circle:{x:J,y:le,radius:ne},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Ee,xe,Ne,this._queryCellCircle,et,rt,ie),V?et.length>0:et},Br.prototype.query=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!1,ie)},Br.prototype.hitTest=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!0,ie)},Br.prototype.hitTestCircle=function(J,le,ne,V){return this._queryCircle(J,le,ne,!0,V)},Br.prototype._queryCell=function(J,le,ne,V,ie,ge,xe,Ee){var Ne=xe.seenUids,et=this.boxCells[ie];if(et!==null)for(var rt=this.bboxes,dt=0,gt=et;dt=rt[Mt+0]&&V>=rt[Mt+1]&&(!Ee||Ee(this.boxKeys[Rt]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Rt],x1:rt[Mt],y1:rt[Mt+1],x2:rt[Mt+2],y2:rt[Mt+3]})}}}var Xt=this.circleCells[ie];if(Xt!==null)for(var dn=this.circles,bn=0,vn=Xt;bnxe*xe+Ee*Ee},Br.prototype._circleAndRectCollide=function(J,le,ne,V,ie,ge,xe){var Ee=(ge-V)/2,Ne=Math.abs(J-(V+Ee));if(Ne>Ee+ne)return!1;var et=(xe-ie)/2,rt=Math.abs(le-(ie+et));if(rt>et+ne)return!1;if(Ne<=Ee||rt<=et)return!0;var dt=Ne-Ee,gt=rt-et;return dt*dt+gt*gt<=ne*ne};var to=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function co(J,le){for(var ne=0;ne=1;si--)Wo.push(ro.path[si]);for(var Bo=1;Bo0){for(var Ho=Wo[0].clone(),jo=Wo[0].clone(),Yi=1;Yi=Ir.x&&jo.x<=Pr.x&&Ho.y>=Ir.y&&jo.y<=Pr.y?[Wo]:jo.xPr.x||jo.yPr.y?[]:i.clipLine([Wo],Ir.x,Ir.y,Pr.x,Pr.y)}for(var ai=0,Hi=Wi;ai=this.screenRightBoundary||V<_o||le>this.screenBottomBoundary},$o.prototype.isInsideGrid=function(J,le,ne,V){return ne>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(Xt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:dn,width:ne,height:V,anchor:J,textBoxScale:ie,prevAnchor:Xt},this.markUsedJustification(gt,J,dt,Rt),gt.allowVerticalPlacement&&(this.markUsedOrientation(gt,Rt,dt),this.placedOrientations[dt.crossTileID]=Rt),{shift:bn,placedGlyphBoxes:vn}):void 0},io.prototype.placeLayerBucketPart=function(J,le,ne){var V=this,ie=J.parameters,ge=ie.bucket,xe=ie.layout,Ee=ie.posMatrix,Ne=ie.textLabelPlaneMatrix,et=ie.labelToScreenMatrix,rt=ie.textPixelRatio,dt=ie.holdingForFade,gt=ie.collisionBoxArray,Rt=ie.partiallyEvaluatedTextSize,Mt=ie.collisionGroup,Xt=xe.get("text-optional"),dn=xe.get("icon-optional"),bn=xe.get("text-allow-overlap"),vn=xe.get("icon-allow-overlap"),Ln=xe.get("text-rotation-alignment")==="map",gn=xe.get("text-pitch-alignment")==="map",Jn=xe.get("icon-text-fit")!=="none",pn=xe.get("symbol-z-order")==="viewport-y",In=bn&&(vn||!ge.hasIconData()||dn),Ir=vn&&(bn||!ge.hasTextData()||Xt);!ge.collisionArrays&>&&ge.deserializeCollisionBoxes(gt);var Pr=function(Bo,Go){if(!le[Bo.crossTileID])if(dt)V.placements[Bo.crossTileID]=new ar(!1,!1,!1);else{var Yo,Wi=!1,Ho=!1,jo=!0,Yi=null,ai={box:null,offscreen:null},Hi={box:null,offscreen:null},Ai=null,Ja=null,Ar=0,ns=0,$s=0;Go.textFeatureIndex?Ar=Go.textFeatureIndex:Bo.useRuntimeCollisionCircles&&(Ar=Bo.featureIndex),Go.verticalTextFeatureIndex&&(ns=Go.verticalTextFeatureIndex);var Ts=Go.textBox;if(Ts){var rl=function(Is){var Hc=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!Is&&V.prevPlacement){var Nl=V.prevPlacement.placedOrientations[Bo.crossTileID];Nl&&(V.placedOrientations[Bo.crossTileID]=Nl,Hc=Nl,V.markUsedOrientation(ge,Hc,Bo))}return Hc},Hs=function(Is,Hc){if(ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Go.verticalTextBox)for(var Nl=0,lh=ge.writingModes;Nl0&&(ys=ys.filter(function(Is){return Is!==Yu.anchor})).unshift(Yu.anchor)}var mt=function(Is,Hc,Nl){for(var lh=Is.x2-Is.x1,r0=Is.y2-Is.y1,ch=Bo.textBoxScale,gg=Jn&&!vn?Hc:null,Ip={box:[],offscreen:!1},X0=bn?2*ys.length:ys.length,Vh=0;Vh=ys.length,ss=V.attemptAnchorPlacement(Pu,Is,lh,r0,ch,Ln,gn,rt,Ee,Mt,Uh,Bo,ge,Nl,gg);if(ss&&(Ip=ss.placedGlyphBoxes)&&Ip.box&&Ip.box.length){Wi=!0,Yi=ss.shift;break}}return Ip};Hs(function(){return mt(Ts,Go.iconBox,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox,Hc=ai&&ai.box&&ai.box.length;return ge.allowVerticalPlacement&&!Hc&&Bo.numVerticalGlyphVertices>0&&Is?mt(Is,Go.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),ai&&(Wi=ai.box,jo=ai.offscreen);var Tt=rl(ai&&ai.box);if(!Wi&&V.prevPlacement){var xn=V.prevPlacement.variableOffsets[Bo.crossTileID];xn&&(V.variableOffsets[Bo.crossTileID]=xn,V.markUsedJustification(ge,xn.anchor,Bo,Tt))}}else{var Nn=function(Is,Hc){var Nl=V.collisionIndex.placeCollisionBox(Is,bn,rt,Ee,Mt.predicate);return Nl&&Nl.box&&Nl.box.length&&(V.markUsedOrientation(ge,Hc,Bo),V.placedOrientations[Bo.crossTileID]=Hc),Nl};Hs(function(){return Nn(Ts,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox;return ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Is?Nn(Is,i.WritingMode.vertical):{box:null,offscreen:null}}),rl(ai&&ai.box&&ai.box.length)}}if(Wi=(Yo=ai)&&Yo.box&&Yo.box.length>0,jo=Yo&&Yo.offscreen,Bo.useRuntimeCollisionCircles){var yr=ge.text.placedSymbolArray.get(Bo.centerJustifiedTextSymbolIndex),so=i.evaluateSizeForFeature(ge.textSizeData,Rt,yr),No=xe.get("text-padding"),ui=Bo.collisionCircleDiameter;Ai=V.collisionIndex.placeCollisionCircles(bn,yr,ge.lineVertexArray,ge.glyphOffsetArray,so,Ee,Ne,et,ne,gn,Mt.predicate,ui,No),Wi=bn||Ai.circles.length>0&&!Ai.collisionDetected,jo=jo&&Ai.offscreen}if(Go.iconFeatureIndex&&($s=Go.iconFeatureIndex),Go.iconBox){var ga=function(Is){var Hc=Jn&&Yi?oo(Is,Yi.x,Yi.y,Ln,gn,V.transform.angle):Is;return V.collisionIndex.placeCollisionBox(Hc,vn,rt,Ee,Mt.predicate)};Ho=Hi&&Hi.box&&Hi.box.length&&Go.verticalIconBox?(Ja=ga(Go.verticalIconBox)).box.length>0:(Ja=ga(Go.iconBox)).box.length>0,jo=jo&&Ja.offscreen}var Sa=Xt||Bo.numHorizontalGlyphVertices===0&&Bo.numVerticalGlyphVertices===0,ua=dn||Bo.numIconVertices===0;if(Sa||ua?ua?Sa||(Ho=Ho&&Wi):Wi=Ho&&Wi:Ho=Wi=Ho&&Wi,Wi&&Yo&&Yo.box&&(Hi&&Hi.box&&ns?V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ns,Mt.ID):V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID)),Ho&&Ja&&V.collisionIndex.insertCollisionBox(Ja.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,$s,Mt.ID),Ai&&(Wi&&V.collisionIndex.insertCollisionCircles(Ai.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID),ne)){var Cs=ge.bucketInstanceId,ul=V.collisionCircleArrays[Cs];ul===void 0&&(ul=V.collisionCircleArrays[Cs]=new Dr);for(var Jc=0;Jc=0;--ro){var po=Gr[ro];Pr(ge.symbolInstances.get(po),ge.collisionArrays[po])}else for(var Wo=J.symbolInstanceStart;Wo=0&&(J.text.placedSymbolArray.get(Ne).crossTileID=ie>=0&&Ne!==ie?0:ne.crossTileID)}},io.prototype.markUsedOrientation=function(J,le,ne){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ie=le===i.WritingMode.vertical?le:0,ge=0,xe=[ne.leftJustifiedTextSymbolIndex,ne.centerJustifiedTextSymbolIndex,ne.rightJustifiedTextSymbolIndex];ge0||gn>0,Pr=vn.numIconVertices>0,Gr=V.placedOrientations[vn.crossTileID],ro=Gr===i.WritingMode.vertical,po=Gr===i.WritingMode.horizontal||Gr===i.WritingMode.horizontalOnly;if(Ir){var Wo=Gt(In.text),si=ro?on:Wo;Rt(J.text,Ln,si);var Bo=po?on:Wo;Rt(J.text,gn,Bo);var Go=In.text.isHidden();[vn.rightJustifiedTextSymbolIndex,vn.centerJustifiedTextSymbolIndex,vn.leftJustifiedTextSymbolIndex].forEach(function($s){$s>=0&&(J.text.placedSymbolArray.get($s).hidden=Go||ro?1:0)}),vn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(vn.verticalPlacedTextSymbolIndex).hidden=Go||po?1:0);var Yo=V.variableOffsets[vn.crossTileID];Yo&&V.markUsedJustification(J,Yo.anchor,vn,Gr);var Wi=V.placedOrientations[vn.crossTileID];Wi&&(V.markUsedJustification(J,"left",vn,Wi),V.markUsedOrientation(J,Wi,vn))}if(Pr){var Ho=Gt(In.icon),jo=!(dt&&vn.verticalPlacedIconSymbolIndex&&ro);if(vn.placedIconSymbolIndex>=0){var Yi=jo?Ho:on;Rt(J.icon,vn.numIconVertices,Yi),J.icon.placedSymbolArray.get(vn.placedIconSymbolIndex).hidden=In.icon.isHidden()}if(vn.verticalPlacedIconSymbolIndex>=0){var ai=jo?on:Ho;Rt(J.icon,vn.numVerticalIconVertices,ai),J.icon.placedSymbolArray.get(vn.verticalPlacedIconSymbolIndex).hidden=In.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var Hi=J.collisionArrays[bn];if(Hi){var Ai=new i.Point(0,0);if(Hi.textBox||Hi.verticalTextBox){var Ja=!0;if(Ne){var Ar=V.variableOffsets[Jn];Ar?(Ai=go(Ar.anchor,Ar.width,Ar.height,Ar.textOffset,Ar.textBoxScale),et&&Ai._rotate(rt?V.transform.angle:-V.transform.angle)):Ja=!1}Hi.textBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!Ja||ro,Ai.x,Ai.y),Hi.verticalTextBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!Ja||po,Ai.x,Ai.y)}var ns=!!(!po&&Hi.verticalIconBox);Hi.iconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,ns,dt?Ai.x:0,dt?Ai.y:0),Hi.verticalIconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,!ns,dt?Ai.x:0,dt?Ai.y:0)}}},Xt=0;XtJ},io.prototype.setStale=function(){this.stale=!0};var jn=Math.pow(2,25),Rr=Math.pow(2,24),On=Math.pow(2,17),Yn=Math.pow(2,16),ir=Math.pow(2,9),kr=Math.pow(2,8),Er=Math.pow(2,1);function Gt(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ne=Math.floor(127*J.opacity);return ne*jn+le*Rr+ne*On+le*Yn+ne*ir+le*kr+ne*Er+le}var on=0,an=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};an.prototype.continuePlacement=function(J,le,ne,V,ie){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Ee=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Ee)&&(!xe.maxzoom||xe.maxzoom>Ee)){if(this._inProgressLayer||(this._inProgressLayer=new an(xe)),this._inProgressLayer.continuePlacement(ne[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Tn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var zn=512/i.EXTENT/2,Gn=function(J,le,ne){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ne;for(var V=0;VJ.overscaledZ)for(var Ee in xe){var Ne=xe[Ee];Ne.tileID.isChildOf(J)&&Ne.findMatches(le.symbolInstances,J,ie)}else{var et=xe[J.scaledTo(Number(ge)).key];et&&et.findMatches(le.symbolInstances,J,ie)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".json"),i.ResourceType.SpriteJSON),function(Mt,Xt){dt=null,et||(et=Mt,Ee=Xt,Rt())}),gt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".png"),i.ResourceType.SpriteImage),function(Mt,Xt){gt=null,et||(et=Mt,Ne=Xt,Rt())});function Rt(){if(et)xe(et);else if(Ee&&Ne){var Mt=i.browser.getImageData(Ne),Xt={};for(var dn in Ee){var bn=Ee[dn],vn=bn.width,Ln=bn.height,gn=bn.x,Jn=bn.y,pn=bn.sdf,In=bn.pixelRatio,Ir=bn.stretchX,Pr=bn.stretchY,Gr=bn.content,ro=new i.RGBAImage({width:vn,height:Ln});i.RGBAImage.copy(Mt,ro,{x:gn,y:Jn},{x:0,y:0},{width:vn,height:Ln}),Xt[dn]={data:ro,pixelRatio:In,sdf:pn,stretchX:Ir,stretchY:Pr,content:Gr}}xe(null,Xt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),gt&&(gt.cancel(),gt=null)}}}(ne,this.map._requestManager,function(ie,ge){if(V._spriteRequest=null,ie)V.fire(new i.ErrorEvent(ie));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ne){var V=this.sourceCaches[ne.source];if(V){var ie=ne.sourceLayer;if(ie){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ie)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ie+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ne.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ne in this.sourceCaches)if(!this.sourceCaches[ne].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ne){for(var V=[],ie=0,ge=ne;ie0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ie.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ne,!0},le.prototype.addImage=function(ne,V){if(this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ne,V),this._afterImageUpdated(ne)},le.prototype.updateImage=function(ne,V){this.imageManager.updateImage(ne,V)},le.prototype.getImage=function(ne){return this.imageManager.getImage(ne)},le.prototype.removeImage=function(ne){if(!this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ne),this._afterImageUpdated(ne)},le.prototype._afterImageUpdated=function(ne){this._availableImages=this.imageManager.listImages(),this._changedImages[ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ne,V,ie){var ge=this;if(ie===void 0&&(ie={}),this._checkLoaded(),this.sourceCaches[ne]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ne,V,null,ie))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ne]=new Vt(ne,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ne}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ne){if(this._checkLoaded(),this.sourceCaches[ne]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ne)return this.fire(new i.ErrorEvent(new Error('Source "'+ne+'" cannot be removed while layer "'+V+'" is using it.')));var ie=this.sourceCaches[ne];delete this.sourceCaches[ne],delete this._updatedSources[ne],ie.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ne})),ie.setEventedParent(null),ie.clearTiles(),ie.onRemove&&ie.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ne,V){this._checkLoaded(),this.sourceCaches[ne].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ne){return this.sourceCaches[ne]&&this.sourceCaches[ne].getSource()},le.prototype.addLayer=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=ne.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ne.type==="custom"){if(Cr(this,i.validateCustomStyleLayer(ne)))return;xe=i.createStyleLayer(ne)}else{if(typeof ne.source=="object"&&(this.addSource(ge,ne.source),ne=i.clone$1(ne),ne=i.extend(ne,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ne,{arrayIndex:-1},ie))return;xe=i.createStyleLayer(ne),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Ee=V?this._order.indexOf(V):this._order.length;if(V&&Ee===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Ee,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Ne=this._removedLayers[ge];delete this._removedLayers[ge],Ne.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ne,V){if(this._checkLoaded(),this._changed=!0,this._layers[ne]){if(ne!==V){var ie=this._order.indexOf(ne);this._order.splice(ie,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ne),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ne){this._checkLoaded();var V=this._layers[ne];if(V){V.setEventedParent(null);var ie=this._order.indexOf(ne);this._order.splice(ie,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ne]=V,delete this._layers[ne],delete this._serializedLayers[ne],delete this._updatedLayers[ne],delete this._updatedPaintProps[ne],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ne){return this._layers[ne]},le.prototype.hasLayer=function(ne){return ne in this._layers},le.prototype.setLayerZoomRange=function(ne,V,ie){this._checkLoaded();var ge=this.getLayer(ne);ge?ge.minzoom===V&&ge.maxzoom===ie||(V!=null&&(ge.minzoom=V),ie!=null&&(ge.maxzoom=ie),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=this.getLayer(ne);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ie)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ne){return i.clone$1(this.getLayer(ne).filter)},le.prototype.setLayoutProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getLayoutProperty(V),ie)||(xe.setLayoutProperty(V,ie,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ne,V){var ie=this.getLayer(ne);if(ie)return ie.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getPaintProperty(V),ie)||(xe.setPaintProperty(V,ie,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ne]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ne,V){return this.getLayer(ne).getPaintProperty(V)},le.prototype.setFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=ne.sourceLayer,xe=this.sourceCaches[ie];if(xe!==void 0){var Ee=xe.getSource().type;Ee==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ee!=="vector"||ge?(ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ne.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=this.sourceCaches[ie];if(ge!==void 0){var xe=ge.getSource().type,Ee=xe==="vector"?ne.sourceLayer:void 0;xe!=="vector"||Ee?V&&typeof ne.id!="string"&&typeof ne.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Ee,ne.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ne){this._checkLoaded();var V=ne.source,ie=ne.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ie)return ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ie,ne.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ne){return ne.serialize()}),layers:this._serializeLayers(this._order)},function(ne){return ne!==void 0})},le.prototype._updateLayer=function(ne){this._updatedLayers[ne.id]=!0,ne.source&&!this._updatedSources[ne.source]&&this.sourceCaches[ne.source].getSource().type!=="raster"&&(this._updatedSources[ne.source]="reload",this.sourceCaches[ne.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ne){for(var V=this,ie=function(Gr){return V._layers[Gr].type==="fill-extrusion"},ge={},xe=[],Ee=this._order.length-1;Ee>=0;Ee--){var Ne=this._order[Ee];if(ie(Ne)){ge[Ne]=Ee;for(var et=0,rt=ne;et=0;dn--){var bn=this._order[dn];if(ie(bn))for(var vn=xe.length-1;vn>=0;vn--){var Ln=xe[vn].feature;if(ge[Ln.layer.id]24?(isFinite(ie)&&(clearTimeout(pi),pi=setTimeout(Dr,ie)),Mo=0):(Mo=1,Hn(Dr))}function Sr(){for(var V=Date.now(),ie=_o;ie;)V>=ie.t&&ie.c(V-ie.t)&&(ie.c=null),ie=ie.n;return V}function Zr(){for(var V,ie=_o,ge=1/0;ie;)ie.c?(ie.t1&&(ie=V[Ne[et-2]],ge=V[Ne[et-1]],xe=V[rt],(ge[0]-ie[0])*(xe[1]-ie[1])-(ge[1]-ie[1])*(xe[0]-ie[0])<=0);)--et;Ne[et++]=rt}return Ne.slice(0,et)}function Do(V,ie){return V[0]-ie[0]||V[1]-ie[1]}i.timer=function(){ar.apply(this,arguments)},i.timer.flush=function(){Sr(),Zr()},i.round=function(V,ie){return ie?Math.round(V*(ie=Math.pow(10,ie)))/ie:Math.round(V)},i.geom={},i.geom.hull=function(V){var ie=go,ge=oo;if(arguments.length)return xe(V);function xe(Ee){if(Ee.length<3)return[];var Ne,et=to(ie),rt=to(ge),dt=Ee.length,gt=[],Rt=[];for(Ne=0;Ne=0;--Ne)vn.push(Ee[gt[Mt[Ne]][2]]);for(Ne=+dn;NeOt)rt=rt.L;else{if(!((Ee=Ne-wo(rt,et))>Ot)){xe>-Ot?(ie=rt.P,ge=rt):Ee>-Ot?(ie=rt,ge=rt.N):ie=ge=rt;break}if(!rt.R){ie=rt;break}rt=rt.R}var dt=Gn(V);if(Er.insert(ie,dt),ie||ge){if(ie===ge)return Mn(ie),ge=Gn(ie.site),Er.insert(dt,ge),dt.edge=ge.edge=xr(ie.site,dt.site),Qt(ie),void Qt(ge);if(ge){Mn(ie),Mn(ge);var gt=ie.site,Rt=gt.x,Mt=gt.y,Xt=V.x-Rt,dn=V.y-Mt,bn=ge.site,vn=bn.x-Rt,Ln=bn.y-Mt,gn=2*(Xt*Ln-dn*vn),Jn=Xt*Xt+dn*dn,pn=vn*vn+Ln*Ln,In={x:(Ln*Jn-dn*pn)/gn+Rt,y:(Xt*pn-vn*Jn)/gn+Mt};Oo(ge.edge,gt,bn,In),dt.edge=xr(gt,V,null,In),ge.edge=xr(V,bn,null,In),Qt(ie),Qt(ge)}else dt.edge=xr(ie.site,dt.site)}}function Cr(V,ie){var ge=V.site,xe=ge.x,Ee=ge.y,Ne=Ee-ie;if(!Ne)return xe;var et=V.P;if(!et)return-1/0;var rt=(ge=et.site).x,dt=ge.y,gt=dt-ie;if(!gt)return rt;var Rt=rt-xe,Mt=1/Ne-1/gt,Xt=Rt/gt;return Mt?(-Xt+Math.sqrt(Xt*Xt-2*Mt*(Rt*Rt/(-2*gt)-dt+gt/2+Ee-Ne/2)))/Mt+xe:(xe+rt)/2}function wo(V,ie){var ge=V.N;if(ge)return Cr(ge,ie);var xe=V.site;return xe.y===ie?xe.x:1/0}function Nr(V){this.site=V,this.edges=[]}function Eo(V,ie){return ie.angle-V.angle}function zo(){To(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qt(V){var ie=V.P,ge=V.N;if(ie&&ge){var xe=ie.site,Ee=V.site,Ne=ge.site;if(xe!==Ne){var et=Ee.x,rt=Ee.y,dt=xe.x-et,gt=xe.y-rt,Rt=Ne.x-et,Mt=2*(dt*(Ln=Ne.y-rt)-gt*Rt);if(!(Mt>=-cn)){var Xt=dt*dt+gt*gt,dn=Rt*Rt+Ln*Ln,bn=(Ln*Xt-gt*dn)/Mt,vn=(dt*dn-Rt*Xt)/Mt,Ln=vn+rt,gn=Tn.pop()||new zo;gn.arc=V,gn.site=Ee,gn.x=bn+et,gn.y=Ln+Math.sqrt(bn*bn+vn*vn),gn.cy=Ln,V.circle=gn;for(var Jn=null,pn=on._;pn;)if(gn.y=rt)return;if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:Ln,y:dt};ge={x:Ln,y:gt}}else{if(Ne){if(Ne.y1)if(Xt>bn){if(Ne){if(Ne.y>=gt)return}else Ne={x:(dt-Ee)/xe,y:dt};ge={x:(gt-Ee)/xe,y:gt}}else{if(Ne){if(Ne.y=rt)return}else Ne={x:et,y:xe*et+Ee};ge={x:rt,y:xe*rt+Ee}}else{if(Ne){if(Ne.x0)){if(gn/=ro,ro<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Mt-In,ro||!(gn<0)){if(gn/=ro,ro<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(ro>0){if(gn0)){if(gn/=po,po<0){if(gn0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}if(gn=Xt-Ir,po||!(gn<0)){if(gn/=po,po<0){if(gn>Gr)return;gn>Pr&&(Pr=gn)}else if(po>0){if(gn0&&(Ln.a={x:In+Pr*ro,y:Ir+Pr*po}),Gr<1&&(Ln.b={x:In+Gr*ro,y:Ir+Gr*po}),Ln}}}}}),vn=dn.length;vn--;)(!Fn(dt=dn[vn],rt)||!bn(dt)||P(dt.a.x-dt.b.x)Ot||P(Mt-gt)>Ot)&&(bn.splice(dn,0,new mi((ro=Xt.site,po=gn,Wo=P(Rt-Jn)Ot?{x:Jn,y:P(dt-Jn)Ot?{x:P(gt-Ir)Ot?{x:pn,y:P(dt-pn)Ot?{x:P(gt-In)=Rt&&gn.x<=Xt&&gn.y>=Mt&&gn.y<=dn?[[Rt,dn],[Xt,dn],[Xt,Mt],[Rt,Mt]]:[]).point=dt[vn]}),gt}function rt(dt){return dt.map(function(gt,Rt){return{x:Math.round(xe(gt,Rt)/Ot)*Ot,y:Math.round(Ee(gt,Rt)/Ot)*Ot,i:Rt}})}return et.links=function(dt){return zi(rt(dt)).edges.filter(function(gt){return gt.l&>.r}).map(function(gt){return{source:dt[gt.l.i],target:dt[gt.r.i]}})},et.triangles=function(dt){var gt=[];return zi(rt(dt)).cells.forEach(function(Rt,Mt){for(var Xt,dn,bn,vn,Ln=Rt.site,gn=Rt.edges.sort(Eo),Jn=-1,pn=gn.length,In=gn[pn-1].edge,Ir=In.l===Ln?In.r:In.l;++JnNe&&(Ee=ie.slice(Ne,Ee),rt[et]?rt[et]+=Ee:rt[++et]=Ee),(ge=ge[0])===(xe=xe[0])?rt[et]?rt[et]+=xe:rt[++et]=xe:(rt[++et]=null,dt.push({i:et,x:Qs(ge,xe)})),Ne=Tc.lastIndex;return Negn&&(gn=Rt.x),Rt.y>Jn&&(Jn=Rt.y),Mt.push(Rt.x),Xt.push(Rt.y);else for(dn=0;dngn&&(gn=Ir),Pr>Jn&&(Jn=Pr),Mt.push(Ir),Xt.push(Pr)}var Gr=gn-vn,ro=Jn-Ln;function po(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){if(!isNaN(Yo)&&!isNaN(Wi))if(Bo.leaf){var Hi=Bo.x,Ai=Bo.y;if(Hi!=null)if(P(Hi-Yo)+P(Ai-Wi)<.01)Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai);else{var es=Bo.point;Bo.x=Bo.y=Bo.point=null,Wo(Bo,es,Hi,Ai,Ho,jo,Yi,ai),Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}else Bo.x=Yo,Bo.y=Wi,Bo.point=Go}else Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai)}function Wo(Bo,Go,Yo,Wi,Ho,jo,Yi,ai){var Hi=.5*(Ho+Yi),Ai=.5*(jo+ai),es=Yo>=Hi,Ar=Wi>=Ai,ns=Ar<<1|es;Bo.leaf=!1,es?Ho=Hi:Yi=Hi,Ar?jo=Ai:ai=Ai,po(Bo=Bo.nodes[ns]||(Bo.nodes[ns]={leaf:!0,nodes:[],point:null,x:null,y:null}),Go,Yo,Wi,Ho,jo,Yi,ai)}Gr>ro?Jn=Ln+Gr:gn=vn+ro;var si={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Bo){po(si,Bo,+pn(Bo,++dn),+In(Bo,dn),vn,Ln,gn,Jn)}};if(si.visit=function(Bo){nf(Bo,si,vn,Ln,gn,Jn)},si.find=function(Bo){return function(Go,Yo,Wi,Ho,jo,Yi,ai){var Hi,Ai=1/0;return function es(Ar,ns,$s,Ts,rl){if(!(ns>Yi||$s>ai||Ts=yr)<<1|Yo>=Nn,No=so+4;so=0&&!(ge=i.interpolators[xe](V,ie)););return ge}function au(V,ie){var ge,xe=[],Ee=[],Ne=V.length,et=ie.length,rt=Math.min(V.length,ie.length);for(ge=0;ge=1)return 1;var ie=V*V,ge=ie*V;return 4*(V<.5?ge:3*(V-ie)+ge-.75)}function Ml(V){return 1-Math.cos(V*vt)}function Jf(V){return Math.pow(2,10*(V-1))}function Nf(V){return 1-Math.sqrt(1-V*V)}function Jl(V){return V<.36363636363636365?7.5625*V*V:V<.7272727272727273?7.5625*(V-=.5454545454545454)*V+.75:V<.9090909090909091?7.5625*(V-=.8181818181818182)*V+.9375:7.5625*(V-=.9545454545454546)*V+.984375}function Gh(V,ie){return ie-=V,function(ge){return Math.round(V+ie*ge)}}function ll(V){var ie,ge,xe,Ee=[V.a,V.b],Ne=[V.c,V.d],et=gu(Ee),rt=Tu(Ee,Ne),dt=gu(((ie=Ne)[0]+=(xe=-rt)*(ge=Ee)[0],ie[1]+=xe*ge[1],ie))||0;Ee[0]*Ne[1]=0?V.slice(0,ge):V,Ee=ge>=0?V.slice(ge+1):"in";return xe=_s.get(xe)||zf,Ee=ma.get(Ee)||Z,ie=Ee(xe.apply(null,S.call(arguments,1))),function(Ne){return Ne<=0?0:Ne>=1?1:ie(Ne)}},i.interpolateHcl=function(V,ie){V=i.hcl(V),ie=i.hcl(ie);var ge=V.h,xe=V.c,Ee=V.l,Ne=ie.h-ge,et=ie.c-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.c:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return sn(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateHsl=function(V,ie){V=i.hsl(V),ie=i.hsl(ie);var ge=V.h,xe=V.s,Ee=V.l,Ne=ie.h-ge,et=ie.s-xe,rt=ie.l-Ee;return isNaN(et)&&(et=0,xe=isNaN(xe)?ie.s:xe),isNaN(Ne)?(Ne=0,ge=isNaN(ge)?ie.h:ge):Ne>180?Ne-=360:Ne<-180&&(Ne+=360),function(dt){return Jt(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateLab=function(V,ie){V=i.lab(V),ie=i.lab(ie);var ge=V.l,xe=V.a,Ee=V.b,Ne=ie.l-ge,et=ie.a-xe,rt=ie.b-Ee;return function(dt){return Un(ge+Ne*dt,xe+et*dt,Ee+rt*dt)+""}},i.interpolateRound=Gh,i.transform=function(V){var ie=y.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(ge){if(ge!=null){ie.setAttribute("transform",ge);var xe=ie.transform.baseVal.consolidate()}return new ll(xe?xe.matrix:ec)})(V)},ll.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ec={a:1,b:0,c:0,d:1,e:0,f:0};function Dc(V){return V.length?V.pop()+",":""}function tc(V,ie){var ge=[],xe=[];return V=i.transform(V),ie=i.transform(ie),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push("translate(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else(Ne[0]||Ne[1])&&et.push("translate("+Ne+")")}(V.translate,ie.translate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?(Ee-Ne>180?Ne+=360:Ne-Ee>180&&(Ee+=360),rt.push({i:et.push(Dc(et)+"rotate(",null,")")-2,x:Qs(Ee,Ne)})):Ne&&et.push(Dc(et)+"rotate("+Ne+")")}(V.rotate,ie.rotate,ge,xe),function(Ee,Ne,et,rt){Ee!==Ne?rt.push({i:et.push(Dc(et)+"skewX(",null,")")-2,x:Qs(Ee,Ne)}):Ne&&et.push(Dc(et)+"skewX("+Ne+")")}(V.skew,ie.skew,ge,xe),function(Ee,Ne,et,rt){if(Ee[0]!==Ne[0]||Ee[1]!==Ne[1]){var dt=et.push(Dc(et)+"scale(",null,",",null,")");rt.push({i:dt-4,x:Qs(Ee[0],Ne[0])},{i:dt-2,x:Qs(Ee[1],Ne[1])})}else Ne[0]===1&&Ne[1]===1||et.push(Dc(et)+"scale("+Ne+")")}(V.scale,ie.scale,ge,xe),V=ie=null,function(Ee){for(var Ne,et=-1,rt=xe.length;++et0?ge=In:(V.c=null,V.t=NaN,V=null,rt.end({type:"end",alpha:ge=0})):In>0&&(rt.start({type:"start",alpha:ge=In}),V=ar(et.tick)),et):ge},et.start=function(){var In,Ir,Pr,Gr=Ln.length,ro=gn.length,po=dt[0],Wo=dt[1];for(In=0;In=0;)ge.push(Ee[xe])}function cs(V,ie){for(var ge=[V],xe=[];(V=ge.pop())!=null;)if(xe.push(V),(Ne=V.children)&&(Ee=Ne.length))for(var Ee,Ne,et=-1;++et=0;)et.push(Rt=gt[dt]),Rt.parent=Ne,Rt.depth=Ne.depth+1;ge&&(Ne.value=0),Ne.children=gt}else ge&&(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),delete Ne.children;return cs(Ee,function(Mt){var Xt,dn;V&&(Xt=Mt.children)&&Xt.sort(V),ge&&(dn=Mt.parent)&&(dn.value+=Mt.value)}),rt}return xe.sort=function(Ee){return arguments.length?(V=Ee,xe):V},xe.children=function(Ee){return arguments.length?(ie=Ee,xe):ie},xe.value=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe.revalue=function(Ee){return ge&&(vd(Ee,function(Ne){Ne.children&&(Ne.value=0)}),cs(Ee,function(Ne){var et;Ne.children||(Ne.value=+ge.call(xe,Ne,Ne.depth)||0),(et=Ne.parent)&&(et.value+=Ne.value)})),Ee},xe},i.layout.partition=function(){var V=i.layout.hierarchy(),ie=[1,1];function ge(Ne,et,rt,dt){var gt=Ne.children;if(Ne.x=et,Ne.y=Ne.depth*dt,Ne.dx=rt,Ne.dy=dt,gt&&(Rt=gt.length)){var Rt,Mt,Xt,dn=-1;for(rt=Ne.value?rt/Ne.value:0;++dnrt&&(rt=xe),et.push(xe)}for(ge=0;geEe&&(xe=ge,Ee=ie);return xe}function _f(V){return V.reduce($f,0)}function $f(V,ie){return V+ie[1]}function ih(V,ie){return yu(V,Math.ceil(Math.log(ie.length)/Math.LN2+1))}function yu(V,ie){for(var ge=-1,xe=+V[0],Ee=(V[1]-xe)/ie,Ne=[];++ge<=ie;)Ne[ge]=Ee*ge+xe;return Ne}function jc(V){return[i.min(V),i.max(V)]}function Nh(V,ie){return V.value-ie.value}function af(V,ie){var ge=V._pack_next;V._pack_next=ie,ie._pack_prev=V,ie._pack_next=ge,ge._pack_prev=ie}function td(V,ie){V._pack_next=ie,ie._pack_prev=V}function sf(V,ie){var ge=ie.x-V.x,xe=ie.y-V.y,Ee=V.r+ie.r;return .999*Ee*Ee>ge*ge+xe*xe}function Bc(V){if((ie=V.children)&&(dt=ie.length)){var ie,ge,xe,Ee,Ne,et,rt,dt,gt=1/0,Rt=-1/0,Mt=1/0,Xt=-1/0;if(ie.forEach(Vd),(ge=ie[0]).x=-ge.r,ge.y=0,pn(ge),dt>1&&((xe=ie[1]).x=xe.r,xe.y=0,pn(xe),dt>2))for(gs(ge,xe,Ee=ie[2]),pn(Ee),af(ge,Ee),ge._pack_prev=Ee,af(Ee,xe),xe=ge._pack_next,Ne=3;Ne0)for(et=-1;++et=Mt[0]&&dt<=Mt[1]&&((rt=gt[i.bisect(Xt,dt,1,bn)-1]).y+=vn,rt.push(Ne[et]));return gt}return Ee.value=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.range=function(Ne){return arguments.length?(ge=to(Ne),Ee):ge},Ee.bins=function(Ne){return arguments.length?(xe=typeof Ne=="number"?function(et){return yu(et,Ne)}:to(Ne),Ee):xe},Ee.frequency=function(Ne){return arguments.length?(V=!!Ne,Ee):V},Ee},i.layout.pack=function(){var V,ie=i.layout.hierarchy().sort(Nh),ge=0,xe=[1,1];function Ee(Ne,et){var rt=ie.call(this,Ne,et),dt=rt[0],gt=xe[0],Rt=xe[1],Mt=V==null?Math.sqrt:typeof V=="function"?V:function(){return V};if(dt.x=dt.y=0,cs(dt,function(dn){dn.r=+Mt(dn.value)}),cs(dt,Bc),ge){var Xt=ge*(V?1:Math.max(2*dt.r/gt,2*dt.r/Rt))/2;cs(dt,function(dn){dn.r+=Xt}),cs(dt,Bc),cs(dt,function(dn){dn.r-=Xt})}return vc(dt,gt/2,Rt/2,V?1:1/Math.max(2*dt.r/gt,2*dt.r/Rt)),rt}return Ee.size=function(Ne){return arguments.length?(xe=Ne,Ee):xe},Ee.radius=function(Ne){return arguments.length?(V=Ne==null||typeof Ne=="function"?Ne:+Ne,Ee):V},Ee.padding=function(Ne){return arguments.length?(ge=+Ne,Ee):ge},Bu(Ee,ie)},i.layout.tree=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=null;function Ee(dt,gt){var Rt=V.call(this,dt,gt),Mt=Rt[0],Xt=function(pn){for(var In,Ir={A:null,children:[pn]},Pr=[Ir];(In=Pr.pop())!=null;)for(var Gr,ro=In.children,po=0,Wo=ro.length;pobn.x&&(bn=pn),pn.depth>vn.depth&&(vn=pn)});var Ln=ie(dn,bn)/2-dn.x,gn=ge[0]/(bn.x+ie(bn,dn)/2+Ln),Jn=ge[1]/(vn.depth||1);vd(Mt,function(pn){pn.x=(pn.x+Ln)*gn,pn.y=pn.depth*Jn})}return Rt}function Ne(dt){var gt=dt.children,Rt=dt.parent.children,Mt=dt.i?Rt[dt.i-1]:null;if(gt.length){(function(dn){for(var bn,vn=0,Ln=0,gn=dn.children,Jn=gn.length;--Jn>=0;)(bn=gn[Jn]).z+=vn,bn.m+=vn,vn+=bn.s+(Ln+=bn.c)})(dt);var Xt=(gt[0].z+gt[gt.length-1].z)/2;Mt?(dt.z=Mt.z+ie(dt._,Mt._),dt.m=dt.z-Xt):dt.z=Xt}else Mt&&(dt.z=Mt.z+ie(dt._,Mt._));dt.parent.A=function(dn,bn,vn){if(bn){for(var Ln,gn=dn,Jn=dn,pn=bn,In=gn.parent.children[0],Ir=gn.m,Pr=Jn.m,Gr=pn.m,ro=In.m;pn=Nu(pn),gn=Cc(gn),pn&&gn;)In=Cc(In),(Jn=Nu(Jn)).a=dn,(Ln=pn.z+Gr-gn.z-Ir+ie(pn._,gn._))>0&&(Gs(Ks(pn,dn,vn),dn,Ln),Ir+=Ln,Pr+=Ln),Gr+=pn.m,Ir+=gn.m,ro+=In.m,Pr+=Jn.m;pn&&!Nu(Jn)&&(Jn.t=pn,Jn.m+=Gr-Pr),gn&&!Cc(In)&&(In.t=gn,In.m+=Ir-ro,vn=dn)}return vn}(dt,Mt,dt.parent.A||Rt[0])}function et(dt){dt._.x=dt.z+dt.parent.m,dt.m+=dt.parent.m}function rt(dt){dt.x*=ge[0],dt.y=dt.depth*ge[1]}return Ee.separation=function(dt){return arguments.length?(ie=dt,Ee):ie},Ee.size=function(dt){return arguments.length?(xe=(ge=dt)==null?rt:null,Ee):xe?null:ge},Ee.nodeSize=function(dt){return arguments.length?(xe=(ge=dt)==null?null:rt,Ee):xe?ge:null},Bu(Ee,V)},i.layout.cluster=function(){var V=i.layout.hierarchy().sort(null).value(null),ie=yc,ge=[1,1],xe=!1;function Ee(Ne,et){var rt,dt=V.call(this,Ne,et),gt=dt[0],Rt=0;cs(gt,function(vn){var Ln=vn.children;Ln&&Ln.length?(vn.x=function(gn){return gn.reduce(function(Jn,pn){return Jn+pn.x},0)/gn.length}(Ln),vn.y=function(gn){return 1+i.max(gn,function(Jn){return Jn.y})}(Ln)):(vn.x=rt?Rt+=ie(vn,rt):0,vn.y=0,rt=vn)});var Mt=Ac(gt),Xt=_d(gt),dn=Mt.x-ie(Mt,Xt)/2,bn=Xt.x+ie(Xt,Mt)/2;return cs(gt,xe?function(vn){vn.x=(vn.x-gt.x)*ge[0],vn.y=(gt.y-vn.y)*ge[1]}:function(vn){vn.x=(vn.x-dn)/(bn-dn)*ge[0],vn.y=(1-(gt.y?vn.y/gt.y:1))*ge[1]}),dt}return Ee.separation=function(Ne){return arguments.length?(ie=Ne,Ee):ie},Ee.size=function(Ne){return arguments.length?(xe=(ge=Ne)==null,Ee):xe?null:ge},Ee.nodeSize=function(Ne){return arguments.length?(xe=(ge=Ne)!=null,Ee):xe?ge:null},Bu(Ee,V)},i.layout.treemap=function(){var V,ie=i.layout.hierarchy(),ge=Math.round,xe=[1,1],Ee=null,Ne=Fh,et=!1,rt="squarify",dt=.5*(1+Math.sqrt(5));function gt(vn,Ln){for(var gn,Jn,pn=-1,In=vn.length;++pn0;)Ir.push(gn=Pr[pn-1]),Ir.area+=gn.area,rt!=="squarify"||(Jn=Xt(Ir,ro))<=Gr?(Pr.pop(),Gr=Jn):(Ir.area-=Ir.pop().area,dn(Ir,ro,In,!1),ro=Math.min(In.dx,In.dy),Ir.length=Ir.area=0,Gr=1/0);Ir.length&&(dn(Ir,ro,In,!0),Ir.length=Ir.area=0),Ln.forEach(Rt)}}function Mt(vn){var Ln=vn.children;if(Ln&&Ln.length){var gn,Jn=Ne(vn),pn=Ln.slice(),In=[];for(gt(pn,Jn.dx*Jn.dy/vn.value),In.area=0;gn=pn.pop();)In.push(gn),In.area+=gn.area,gn.z!=null&&(dn(In,gn.z?Jn.dx:Jn.dy,Jn,!pn.length),In.length=In.area=0);Ln.forEach(Mt)}}function Xt(vn,Ln){for(var gn,Jn=vn.area,pn=0,In=1/0,Ir=-1,Pr=vn.length;++Irpn&&(pn=gn));return Ln*=Ln,(Jn*=Jn)?Math.max(Ln*pn*dt/Jn,Jn/(Ln*In*dt)):1/0}function dn(vn,Ln,gn,Jn){var pn,In=-1,Ir=vn.length,Pr=gn.x,Gr=gn.y,ro=Ln?ge(vn.area/Ln):0;if(Ln==gn.dx){for((Jn||ro>gn.dy)&&(ro=gn.dy);++Ingn.dx)&&(ro=gn.dx);++In1);return V+ie*xe*Math.sqrt(-2*Math.log(Ne)/Ne)}},logNormal:function(){var V=i.random.normal.apply(i,arguments);return function(){return Math.exp(V())}},bates:function(V){var ie=i.random.irwinHall(V);return function(){return ie()/V}},irwinHall:function(V){return function(){for(var ie=0,ge=0;ge2?cl:Au,gt=xe?rh:Lp;return Ee=dt(V,ie,gt,ge),Ne=dt(ie,V,gt,iu),rt}function rt(dt){return Ee(dt)}return rt.invert=function(dt){return Ne(dt)},rt.domain=function(dt){return arguments.length?(V=dt.map(Number),et()):V},rt.range=function(dt){return arguments.length?(ie=dt,et()):ie},rt.rangeRound=function(dt){return rt.range(dt).interpolate(Gh)},rt.clamp=function(dt){return arguments.length?(xe=dt,et()):xe},rt.interpolate=function(dt){return arguments.length?(ge=dt,et()):ge},rt.ticks=function(dt){return wi(V,dt)},rt.tickFormat=function(dt,gt){return d3_scale_linearTickFormat(V,dt,gt)},rt.nice=function(dt){return Qc(V,dt),et()},rt.copy=function(){return bc(V,ie,ge,xe)},et()}function nc(V,ie){return i.rebind(V,ie,"range","rangeRound","interpolate","clamp")}function Qc(V,ie){return lf(V,wf(ts(V,ie)[2])),lf(V,wf(ts(V,ie)[2])),V}function ts(V,ie){ie==null&&(ie=10);var ge=vp(V),xe=ge[1]-ge[0],Ee=Math.pow(10,Math.floor(Math.log(xe/ie)/Math.LN10)),Ne=ie/xe*Ee;return Ne<=.15?Ee*=10:Ne<=.35?Ee*=5:Ne<=.75&&(Ee*=2),ge[0]=Math.ceil(ge[0]/Ee)*Ee,ge[1]=Math.floor(ge[1]/Ee)*Ee+.5*Ee,ge[2]=Ee,ge}function wi(V,ie){return i.range.apply(i,ts(V,ie))}function bu(V,ie,ge,xe){function Ee(rt){return(ge?Math.log(rt<0?0:rt):-Math.log(rt>0?0:-rt))/Math.log(ie)}function Ne(rt){return ge?Math.pow(ie,rt):-Math.pow(ie,-rt)}function et(rt){return V(Ee(rt))}return et.invert=function(rt){return Ne(V.invert(rt))},et.domain=function(rt){return arguments.length?(ge=rt[0]>=0,V.domain((xe=rt.map(Number)).map(Ee)),et):xe},et.base=function(rt){return arguments.length?(ie=+rt,V.domain(xe.map(Ee)),et):ie},et.nice=function(){var rt=lf(xe.map(Ee),ge?Math:wd);return V.domain(rt),xe=rt.map(Ne),et},et.ticks=function(){var rt=vp(xe),dt=[],gt=rt[0],Rt=rt[1],Mt=Math.floor(Ee(gt)),Xt=Math.ceil(Ee(Rt)),dn=ie%1?2:ie;if(isFinite(Xt-Mt)){if(ge){for(;Mt0;bn--)dt.push(Ne(Mt)*bn);for(Mt=0;dt[Mt]Rt;Xt--);dt=dt.slice(Mt,Xt)}return dt},et.copy=function(){return bu(V.copy(),ie,ge,xe)},nc(et,V)}i.scale.linear=function(){return bc([0,1],[0,1],iu,!1)},i.scale.log=function(){return bu(i.scale.linear().domain([0,1]),10,!0,[1,10])};var wd={floor:function(V){return-Math.ceil(-V)},ceil:function(V){return-Math.floor(-V)}};function Ol(V,ie,ge){var xe=ds(ie),Ee=ds(1/ie);function Ne(et){return V(xe(et))}return Ne.invert=function(et){return Ee(V.invert(et))},Ne.domain=function(et){return arguments.length?(V.domain((ge=et.map(Number)).map(xe)),Ne):ge},Ne.ticks=function(et){return wi(ge,et)},Ne.tickFormat=function(et,rt){return d3_scale_linearTickFormat(ge,et,rt)},Ne.nice=function(et){return Ne.domain(Qc(ge,et))},Ne.exponent=function(et){return arguments.length?(xe=ds(ie=et),Ee=ds(1/ie),V.domain(ge.map(xe)),Ne):ie},Ne.copy=function(){return Ol(V.copy(),ie,ge)},nc(Ne,V)}function ds(V){return function(ie){return ie<0?-Math.pow(-ie,V):Math.pow(ie,V)}}function zc(V,ie){var ge,xe,Ee;function Ne(rt){return xe[((ge.get(rt)||(ie.t==="range"?ge.set(rt,V.push(rt)):NaN))-1)%xe.length]}function et(rt,dt){return i.range(V.length).map(function(gt){return rt+dt*gt})}return Ne.domain=function(rt){if(!arguments.length)return V;V=[],ge=new L;for(var dt,gt=-1,Rt=rt.length;++gt0?ge[Ne-1]:V[0],NeXt?0:1;if(Rt=Sn)return dt(Rt,bn)+(gt?dt(gt,1-bn):"")+"Z";var vn,Ln,gn,Jn,pn,In,Ir,Pr,Gr,ro,po,Wo,si=0,Bo=0,Go=[];if((Jn=(+et.apply(this,arguments)||0)/2)&&(gn=xe===zl?Math.sqrt(gt*gt+Rt*Rt):+xe.apply(this,arguments),bn||(Bo*=-1),Rt&&(Bo=bt(gn/Rt*Math.sin(Jn))),gt&&(si=bt(gn/gt*Math.sin(Jn)))),Rt){pn=Rt*Math.cos(Mt+Bo),In=Rt*Math.sin(Mt+Bo),Ir=Rt*Math.cos(Xt-Bo),Pr=Rt*Math.sin(Xt-Bo);var Yo=Math.abs(Xt-Mt-2*Bo)<=Cn?0:1;if(Bo&&al(pn,In,Ir,Pr)===bn^Yo){var Wi=(Mt+Xt)/2;pn=Rt*Math.cos(Wi),In=Rt*Math.sin(Wi),Ir=Pr=null}}else pn=In=0;if(gt){Gr=gt*Math.cos(Xt-si),ro=gt*Math.sin(Xt-si),po=gt*Math.cos(Mt+si),Wo=gt*Math.sin(Mt+si);var Ho=Math.abs(Mt-Xt+2*si)<=Cn?0:1;if(si&&al(Gr,ro,po,Wo)===1-bn^Ho){var jo=(Mt+Xt)/2;Gr=gt*Math.cos(jo),ro=gt*Math.sin(jo),po=Wo=null}}else Gr=ro=0;if(dn>Ot&&(vn=Math.min(Math.abs(Rt-gt)/2,+ge.apply(this,arguments)))>.001){Ln=gt0?0:1}function Yl(V,ie,ge,xe,Ee){var Ne=V[0]-ie[0],et=V[1]-ie[1],rt=(Ee?xe:-xe)/Math.sqrt(Ne*Ne+et*et),dt=rt*et,gt=-rt*Ne,Rt=V[0]+dt,Mt=V[1]+gt,Xt=ie[0]+dt,dn=ie[1]+gt,bn=(Rt+Xt)/2,vn=(Mt+dn)/2,Ln=Xt-Rt,gn=dn-Mt,Jn=Ln*Ln+gn*gn,pn=ge-xe,In=Rt*dn-Xt*Mt,Ir=(gn<0?-1:1)*Math.sqrt(Math.max(0,pn*pn*Jn-In*In)),Pr=(In*gn-Ln*Ir)/Jn,Gr=(-In*Ln-gn*Ir)/Jn,ro=(In*gn+Ln*Ir)/Jn,po=(-In*Ln+gn*Ir)/Jn,Wo=Pr-bn,si=Gr-vn,Bo=ro-bn,Go=po-vn;return Wo*Wo+si*si>Bo*Bo+Go*Go&&(Pr=ro,Gr=po),[[Pr-dt,Gr-gt],[Pr*ge/pn,Gr*ge/pn]]}function uf(){return!0}function hs(V){var ie=go,ge=oo,xe=uf,Ee=Eu,Ne=Ee.key,et=.7;function rt(dt){var gt,Rt=[],Mt=[],Xt=-1,dn=dt.length,bn=to(ie),vn=to(ge);function Ln(){Rt.push("M",Ee(V(Mt),et))}for(;++Xt1&&Ee.push("H",xe[0]),Ee.join("")},"step-before":ws,"step-after":Fu,basis:Ls,"basis-open":function(V){if(V.length<4)return Eu(V);for(var ie,ge=[],xe=-1,Ee=V.length,Ne=[0],et=[0];++xe<3;)ie=V[xe],Ne.push(ie[0]),et.push(ie[1]);for(ge.push(Ec(Kt,Ne)+","+Ec(Kt,et)),--xe;++xe9&&(Ne=3*ge/Math.sqrt(Ne),rt[dt]=Ne*xe,rt[dt+1]=Ne*Ee);for(dt=-1;++dt<=gt;)Ne=(ie[Math.min(gt,dt+1)][0]-ie[Math.max(0,dt-1)][0])/(6*(1+rt[dt]*rt[dt])),et.push([Ne||0,rt[dt]*Ne||0]);return et}(V))}});function Eu(V){return V.length>1?V.join("L"):V+"Z"}function xu(V){return V.join("L")+"Z"}function ws(V){for(var ie=0,ge=V.length,xe=V[0],Ee=[xe[0],",",xe[1]];++ie1){rt=ie[1],Ne=V[dt],dt++,xe+="C"+(Ee[0]+et[0])+","+(Ee[1]+et[1])+","+(Ne[0]-rt[0])+","+(Ne[1]-rt[1])+","+Ne[0]+","+Ne[1];for(var gt=2;gtCn)+",1 "+Rt}function dt(gt,Rt,Mt,Xt){return"Q 0,0 "+Xt}return Ne.radius=function(gt){return arguments.length?(ge=to(gt),Ne):ge},Ne.source=function(gt){return arguments.length?(V=to(gt),Ne):V},Ne.target=function(gt){return arguments.length?(ie=to(gt),Ne):ie},Ne.startAngle=function(gt){return arguments.length?(xe=to(gt),Ne):xe},Ne.endAngle=function(gt){return arguments.length?(Ee=to(gt),Ne):Ee},Ne},i.svg.diagonal=function(){var V=Bi,ie=ya,ge=Qi;function xe(Ee,Ne){var et=V.call(this,Ee,Ne),rt=ie.call(this,Ee,Ne),dt=(et.y+rt.y)/2,gt=[et,{x:et.x,y:dt},{x:rt.x,y:dt},rt];return"M"+(gt=gt.map(ge))[0]+"C"+gt[1]+" "+gt[2]+" "+gt[3]}return xe.source=function(Ee){return arguments.length?(V=to(Ee),xe):V},xe.target=function(Ee){return arguments.length?(ie=to(Ee),xe):ie},xe.projection=function(Ee){return arguments.length?(ge=Ee,xe):ge},xe},i.svg.diagonal.radial=function(){var V=i.svg.diagonal(),ie=Qi,ge=V.projection;return V.projection=function(xe){return arguments.length?ge(function(Ee){return function(){var Ne=Ee.apply(this,arguments),et=Ne[0],rt=Ne[1]-vt;return[et*Math.cos(rt),et*Math.sin(rt)]}}(ie=xe)):ie},V},i.svg.symbol=function(){var V=nl,ie=Ws;function ge(xe,Ee){return(Wu.get(V.call(this,xe,Ee))||Fs)(ie.call(this,xe,Ee))}return ge.type=function(xe){return arguments.length?(V=to(xe),ge):V},ge.size=function(xe){return arguments.length?(ie=to(xe),ge):ie},ge};var Wu=i.map({circle:Fs,cross:function(V){var ie=Math.sqrt(V/5)/2;return"M"+-3*ie+","+-ie+"H"+-ie+"V"+-3*ie+"H"+ie+"V"+-ie+"H"+3*ie+"V"+ie+"H"+ie+"V"+3*ie+"H"+-ie+"V"+ie+"H"+-3*ie+"Z"},diamond:function(V){var ie=Math.sqrt(V/(2*Aa)),ge=ie*Aa;return"M0,"+-ie+"L"+ge+",0 0,"+ie+" "+-ge+",0Z"},square:function(V){var ie=Math.sqrt(V)/2;return"M"+-ie+","+-ie+"L"+ie+","+-ie+" "+ie+","+ie+" "+-ie+","+ie+"Z"},"triangle-down":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+ge+"L"+ie+","+-ge+" "+-ie+","+-ge+"Z"},"triangle-up":function(V){var ie=Math.sqrt(V/Ki),ge=ie*Ki/2;return"M0,"+-ge+"L"+ie+","+ge+" "+-ie+","+ge+"Z"}});i.svg.symbolTypes=Wu.keys();var Ki=Math.sqrt(3),Aa=Math.tan(30*xt);Te.transition=function(V){for(var ie,ge,xe=_c||++Pc,Ee=Si(V),Ne=[],et=Xl||{time:Date.now(),ease:Wl,delay:0,duration:250},rt=-1,dt=this.length;++rt0;)gt[--gn].call(V,Ln);if(vn>=1)return Mt.event&&Mt.event.end.call(V,V.__data__,ie),--Rt.count?delete Rt[xe]:delete V[ge],1}Mt||(Ne=Ee.time,et=ar(function(bn){var vn=Mt.delay;if(et.t=vn+Ne,vn<=bn)return Xt(bn-vn);et.c=Xt},0,Ne),Mt=Rt[xe]={tween:new L,time:Ne,timer:et,delay:Ee.delay,duration:Ee.duration,ease:Ee.ease,index:ie},Ee=null,++Rt.count)}pl.call=Te.call,pl.empty=Te.empty,pl.node=Te.node,pl.size=Te.size,i.transition=function(V,ie){return V&&V.transition?_c?V.transition(ie):V:i.selection().transition(V)},i.transition.prototype=pl,pl.select=function(V){var ie,ge,xe,Ee=this.id,Ne=this.namespace,et=[];V=Pe(V);for(var rt=-1,dt=this.length;++rtrect,.s>rect").attr("width",Ne[1]-Ne[0])}function dn(vn){vn.select(".extent").attr("y",et[0]),vn.selectAll(".extent,.e>rect,.w>rect").attr("height",et[1]-et[0])}function bn(){var vn,Ln,gn=this,Jn=i.select(i.event.target),pn=ge.of(gn,arguments),In=i.select(gn),Ir=Jn.datum(),Pr=!/^(n|s)$/.test(Ir)&&xe,Gr=!/^(e|w)$/.test(Ir)&&Ee,ro=Jn.classed("extent"),po=Yt(gn),Wo=i.mouse(gn),si=i.select(a(gn)).on("keydown.brush",function(){i.event.keyCode==32&&(ro||(vn=null,Wo[0]-=Ne[1],Wo[1]-=et[1],ro=2),pe())}).on("keyup.brush",function(){i.event.keyCode==32&&ro==2&&(Wo[0]+=Ne[1],Wo[1]+=et[1],ro=0,pe())});if(i.event.changedTouches?si.on("touchmove.brush",Yo).on("touchend.brush",Ho):si.on("mousemove.brush",Yo).on("mouseup.brush",Ho),In.interrupt().selectAll("*").interrupt(),ro)Wo[0]=Ne[0]-Wo[0],Wo[1]=et[0]-Wo[1];else if(Ir){var Bo=+/w$/.test(Ir),Go=+/^n/.test(Ir);Ln=[Ne[1-Bo]-Wo[0],et[1-Go]-Wo[1]],Wo[0]=Ne[Bo],Wo[1]=et[Go]}else i.event.altKey&&(vn=Wo.slice());function Yo(){var jo=i.mouse(gn),Yi=!1;Ln&&(jo[0]+=Ln[0],jo[1]+=Ln[1]),ro||(i.event.altKey?(vn||(vn=[(Ne[0]+Ne[1])/2,(et[0]+et[1])/2]),Wo[0]=Ne[+(jo[0](Ae=1))return Ae;for(;uent?ue=He:Ae=He,He=.5*(Ae-ue)+ue}return He},m.prototype.solve=function(F,G){return this.sampleCurveY(this.solveCurveX(F,G))};var a=c;function c(F,G){this.x=F,this.y=G}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(F){return this.clone()._add(F)},sub:function(F){return this.clone()._sub(F)},multByPoint:function(F){return this.clone()._multByPoint(F)},divByPoint:function(F){return this.clone()._divByPoint(F)},mult:function(F){return this.clone()._mult(F)},div:function(F){return this.clone()._div(F)},rotate:function(F){return this.clone()._rotate(F)},rotateAround:function(F,G){return this.clone()._rotateAround(F,G)},matMult:function(F){return this.clone()._matMult(F)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(F){return this.x===F.x&&this.y===F.y},dist:function(F){return Math.sqrt(this.distSqr(F))},distSqr:function(F){var G=F.x-this.x,ue=F.y-this.y;return G*G+ue*ue},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(F){return Math.atan2(this.y-F.y,this.x-F.x)},angleWith:function(F){return this.angleWithSep(F.x,F.y)},angleWithSep:function(F,G){return Math.atan2(this.x*G-this.y*F,this.x*F+this.y*G)},_matMult:function(F){var G=F[0]*this.x+F[1]*this.y,ue=F[2]*this.x+F[3]*this.y;return this.x=G,this.y=ue,this},_add:function(F){return this.x+=F.x,this.y+=F.y,this},_sub:function(F){return this.x-=F.x,this.y-=F.y,this},_mult:function(F){return this.x*=F,this.y*=F,this},_div:function(F){return this.x/=F,this.y/=F,this},_multByPoint:function(F){return this.x*=F.x,this.y*=F.y,this},_divByPoint:function(F){return this.x/=F.x,this.y/=F.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var F=this.y;return this.y=this.x,this.x=-F,this},_rotate:function(F){var G=Math.cos(F),ue=Math.sin(F),Ae=G*this.x-ue*this.y,He=ue*this.x+G*this.y;return this.x=Ae,this.y=He,this},_rotateAround:function(F,G){var ue=Math.cos(F),Ae=Math.sin(F),He=G.x+ue*(this.x-G.x)-Ae*(this.y-G.y),nt=G.y+Ae*(this.x-G.x)+ue*(this.y-G.y);return this.x=He,this.y=nt,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(F){return F instanceof c?F:Array.isArray(F)?new c(F[0],F[1]):F};var h=typeof self<"u"?self:{},p=Math.pow(2,53)-1;function v(F,G,ue,Ae){var He=new y(F,G,ue,Ae);return function(nt){return He.solve(nt)}}var _=v(.25,.1,.25,1);function O(F,G,ue){return Math.min(ue,Math.max(G,F))}function C(F,G,ue){var Ae=ue-G,He=((F-G)%Ae+Ae)%Ae+G;return He===G?ue:He}function x(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae>G/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,F)}()}function P(F){return!!F&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(F)}function A(F,G){F.forEach(function(ue){G[ue]&&(G[ue]=G[ue].bind(G))})}function L(F,G){return F.indexOf(G,F.length-G.length)!==-1}function D(F,G,ue){var Ae={};for(var He in F)Ae[He]=G.call(ue||this,F[He],He,F);return Ae}function k(F,G,ue){var Ae={};for(var He in F)G.call(ue||this,F[He],He,F)&&(Ae[He]=F[He]);return Ae}function I(F){return Array.isArray(F)?F.map(I):typeof F=="object"&&F?D(F,I):F}var z={};function $(F){z[F]||(typeof console<"u"&&console.warn(F),z[F]=!0)}function Q(F,G,ue){return(ue.y-F.y)*(G.x-F.x)>(G.y-F.y)*(ue.x-F.x)}function j(F){for(var G=0,ue=0,Ae=F.length,He=Ae-1,nt=void 0,ct=void 0;ue@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(Ae,He,nt,ct){var Pt=nt||ct;return G[He]=!Pt||Pt.toLowerCase(),""}),G["max-age"]){var ue=parseInt(G["max-age"],10);isNaN(ue)?delete G["max-age"]:G["max-age"]=ue}return G}var te=null;function Z(F){if(te==null){var G=F.navigator?F.navigator.userAgent:null;te=!!F.safari||!(!G||!(/\b(iPad|iPhone|iPod)\b/.test(G)||G.match("Safari")&&!G.match("Chrome")))}return te}function K(F){try{var G=h[F];return G.setItem("_mapbox_test_",1),G.removeItem("_mapbox_test_"),!0}catch{return!1}}var re,q,Y,ee,me=h.performance&&h.performance.now?h.performance.now.bind(h.performance):Date.now.bind(Date),pe=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame,se=h.cancelAnimationFrame||h.mozCancelAnimationFrame||h.webkitCancelAnimationFrame||h.msCancelAnimationFrame,ae={now:me,frame:function(F){var G=pe(F);return{cancel:function(){return se(G)}}},getImageData:function(F,G){G===void 0&&(G=0);var ue=h.document.createElement("canvas"),Ae=ue.getContext("2d");if(!Ae)throw new Error("failed to create canvas 2d context");return ue.width=F.width,ue.height=F.height,Ae.drawImage(F,0,0,F.width,F.height),Ae.getImageData(-G,-G,F.width+2*G,F.height+2*G)},resolveURL:function(F){return re||(re=h.document.createElement("a")),re.href=F,re.href},hardwareConcurrency:h.navigator&&h.navigator.hardwareConcurrency||4,get devicePixelRatio(){return h.devicePixelRatio},get prefersReducedMotion(){return!!h.matchMedia&&(q==null&&(q=h.matchMedia("(prefers-reduced-motion: reduce)")),q.matches)}},ce={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},de={supported:!1,testSupport:function(F){!ye&&ee&&(ve?_e(F):Y=F)}},ye=!1,ve=!1;function _e(F){var G=F.createTexture();F.bindTexture(F.TEXTURE_2D,G);try{if(F.texImage2D(F.TEXTURE_2D,0,F.RGBA,F.RGBA,F.UNSIGNED_BYTE,ee),F.isContextLost())return;de.supported=!0}catch{}F.deleteTexture(G),ye=!0}h.document&&((ee=h.document.createElement("img")).onload=function(){Y&&_e(Y),Y=null,ve=!0},ee.onerror=function(){ye=!0,Y=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var we="01",Te=function(F,G){this._transformRequestFn=F,this._customAccessToken=G,this._createSkuToken()};function Pe(F){return F.indexOf("mapbox:")===0}Te.prototype._createSkuToken=function(){var F=function(){for(var G="",ue=0;ue<10;ue++)G+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",we,G].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=F.token,this._skuTokenExpiresAt=F.tokenExpiresAt},Te.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Te.prototype.transformRequest=function(F,G){return this._transformRequestFn&&this._transformRequestFn(F,G)||{url:F}},Te.prototype.normalizeStyleURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/styles/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeGlyphsURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/fonts/v1"+ue.path,this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSourceURL=function(F,G){if(!Pe(F))return F;var ue=Qe(F);return ue.path="/v4/"+ue.authority+".json",ue.params.push("secure"),this._makeAPIURL(ue,this._customAccessToken||G)},Te.prototype.normalizeSpriteURL=function(F,G,ue,Ae){var He=Qe(F);return Pe(F)?(He.path="/styles/v1"+He.path+"/sprite"+G+ue,this._makeAPIURL(He,this._customAccessToken||Ae)):(He.path+=""+G+ue,Ve(He))},Te.prototype.normalizeTileURL=function(F,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),F&&!Pe(F))return F;var ue=Qe(F),Ae=ae.devicePixelRatio>=2||G===512?"@2x":"",He=de.supported?".webp":"$1";ue.path=ue.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+Ae+He),ue.path=ue.path.replace(/^.+\/v4\//,"/"),ue.path="/v4"+ue.path;var nt=this._customAccessToken||function(ct){for(var Pt=0,jt=ct;Pt=0&&F.params.splice(He,1)}if(Ae.path!=="/"&&(F.path=""+Ae.path+F.path),!ce.REQUIRE_ACCESS_TOKEN)return Ve(F);if(!(G=G||ce.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+ue);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+ue);return F.params=F.params.filter(function(nt){return nt.indexOf("access_token")===-1}),F.params.push("access_token="+G),Ve(F)};var Ie=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function ze(F){return Ie.test(F)}var De=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Qe(F){var G=F.match(De);if(!G)throw new Error("Unable to parse URL object");return{protocol:G[1],authority:G[2],path:G[3]||"/",params:G[4]?G[4].split("&"):[]}}function Ve(F){var G=F.params.length?"?"+F.params.join("&"):"";return F.protocol+"://"+F.authority+F.path+G}var $e="mapbox.eventData";function Oe(F){if(!F)return null;var G,ue=F.split(".");if(!ue||ue.length!==3)return null;try{return JSON.parse((G=ue[1],decodeURIComponent(h.atob(G).split("").map(function(Ae){return"%"+("00"+Ae.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch{return null}}var ke=function(F){this.type=F,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};ke.prototype.getStorageKey=function(F){var G,ue,Ae=Oe(ce.ACCESS_TOKEN);return G=Ae&&Ae.u?(ue=Ae.u,h.btoa(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(He,nt){return String.fromCharCode(+("0x"+nt))}))):ce.ACCESS_TOKEN||"",F?$e+"."+F+":"+G:$e+":"+G},ke.prototype.fetchEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{var Ae=h.localStorage.getItem(G);Ae&&(this.eventData=JSON.parse(Ae));var He=h.localStorage.getItem(ue);He&&(this.anonId=He)}catch{$("Unable to read from LocalStorage")}},ke.prototype.saveEventData=function(){var F=K("localStorage"),G=this.getStorageKey(),ue=this.getStorageKey("uuid");if(F)try{h.localStorage.setItem(ue,this.anonId),Object.keys(this.eventData).length>=1&&h.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{$("Unable to write to LocalStorage")}},ke.prototype.processRequests=function(F){},ke.prototype.postEvent=function(F,G,ue,Ae){var He=this;if(ce.EVENTS_URL){var nt=Qe(ce.EVENTS_URL);nt.params.push("access_token="+(Ae||ce.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(F).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:we,userId:this.anonId},Pt=G?x(ct,G):ct,jt={url:Ve(nt),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Sn(jt,function(hn){He.pendingRequest=null,ue(hn),He.saveEventData(),He.processRequests(Ae)})}},ke.prototype.queueRequest=function(F,G){this.queue.push(F),this.processRequests(G)};var Re,We,Ue=function(F){function G(){F.call(this,"map.load"),this.success={},this.skuToken=""}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postMapLoadEvent=function(ue,Ae,He,nt){this.skuToken=He,(ce.EVENTS_URL&&nt||ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(ct){return Pe(ct)||ze(ct)}))&&this.queueRequest({id:Ae,timestamp:Date.now()},nt)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){var He=this.queue.shift(),nt=He.id,ct=He.timestamp;nt&&this.success[nt]||(this.anonId||this.fetchEventData(),P(this.anonId)||(this.anonId=T()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||nt&&(Ae.success[nt]=!0)},ue))}},G}(ke),Ze=function(F){function G(ue){F.call(this,"appUserTurnstile"),this._customAccessToken=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.postTurnstileEvent=function(ue,Ae){ce.EVENTS_URL&&ce.ACCESS_TOKEN&&Array.isArray(ue)&&ue.some(function(He){return Pe(He)||ze(He)})&&this.queueRequest(Date.now(),Ae)},G.prototype.processRequests=function(ue){var Ae=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var He=Oe(ce.ACCESS_TOKEN),nt=He?He.u:ce.ACCESS_TOKEN,ct=nt!==this.eventData.tokenU;P(this.anonId)||(this.anonId=T(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var jt=new Date(this.eventData.lastSuccess),hn=new Date(Pt),mn=(Pt-this.eventData.lastSuccess)/864e5;ct=ct||mn>=1||mn<-1||jt.getDate()!==hn.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Dn){Dn||(Ae.eventData.lastSuccess=Pt,Ae.eventData.tokenU=nt)},ue)}},G}(ke),Ye=new Ze,Je=Ye.postTurnstileEvent.bind(Ye),Me=new Ue,Fe=Me.postMapLoadEvent.bind(Me),je="mapbox-tiles",tt=500,ot=50,Ge=42e4;function ht(){h.caches&&!Re&&(Re=h.caches.open(je))}function pt(F,G,ue){if(ht(),Re){var Ae={status:G.status,statusText:G.statusText,headers:new h.Headers};G.headers.forEach(function(nt,ct){return Ae.headers.set(ct,nt)});var He=X(G.headers.get("Cache-Control")||"");He["no-store"]||(He["max-age"]&&Ae.headers.set("Expires",new Date(ue+1e3*He["max-age"]).toUTCString()),new Date(Ae.headers.get("Expires")).getTime()-ueDate.now()&&!jt["no-cache"]}(He);Ae.delete(ue),nt&&Ae.put(ue,He.clone()),G(null,He,nt)}).catch(G)}).catch(G)}var zt,Yt=1/0;function ln(){return zt==null&&(zt=h.OffscreenCanvas&&new h.OffscreenCanvas(1,1).getContext("2d")&&typeof h.createImageBitmap=="function"),zt}var tn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(tn);var Et=function(F){function G(ue,Ae,He){Ae===401&&ze(He)&&(ue+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),F.call(this,ue),this.status=Ae,this.url=He,this.name=this.constructor.name,this.message=ue}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},G}(Error),Ot=U()?function(){return self.worker&&self.worker.referrer}:function(){return(h.location.protocol==="blob:"?h.parent:h).location.href};function cn(F,G){var ue,Ae=new h.AbortController,He=new h.Request(F.url,{method:F.method||"GET",body:F.body,credentials:F.credentials,headers:F.headers,referrer:Ot(),signal:Ae.signal}),nt=!1,ct=!1,Pt=(ue=He.url).indexOf("sku=")>0&&ze(ue);F.type==="json"&&He.headers.set("Accept","application/json");var jt=function(mn,Dn,Xn){if(!ct){if(mn&&mn.message!=="SecurityError"&&$(mn),Dn&&Xn)return hn(Dn);var $n=Date.now();h.fetch(He).then(function(mr){if(mr.ok){var Or=Pt?mr.clone():null;return hn(mr,Or,$n)}return G(new Et(mr.statusText,mr.status,F.url))}).catch(function(mr){mr.code!==20&&G(new Error(mr.message))})}},hn=function(mn,Dn,Xn){(F.type==="arrayBuffer"?mn.arrayBuffer():F.type==="json"?mn.json():mn.text()).then(function($n){ct||(Dn&&Xn&&pt(He,Dn,Xn),nt=!0,G(null,$n,mn.headers.get("Cache-Control"),mn.headers.get("Expires")))}).catch(function($n){ct||G(new Error($n.message))})};return Pt?Ft(He,jt):jt(null,null),{cancel:function(){ct=!0,nt||Ae.abort()}}}var Cn=function(F,G){if(ue=F.url,!(/^file:/.test(ue)||/^file:/.test(Ot())&&!/^\w+:/.test(ue))){if(h.fetch&&h.Request&&h.AbortController&&h.Request.prototype.hasOwnProperty("signal"))return cn(F,G);if(U()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",F,G,void 0,!0)}var ue;return function(Ae,He){var nt=new h.XMLHttpRequest;for(var ct in nt.open(Ae.method||"GET",Ae.url,!0),Ae.type==="arrayBuffer"&&(nt.responseType="arraybuffer"),Ae.headers)nt.setRequestHeader(ct,Ae.headers[ct]);return Ae.type==="json"&&(nt.responseType="text",nt.setRequestHeader("Accept","application/json")),nt.withCredentials=Ae.credentials==="include",nt.onerror=function(){He(new Error(nt.statusText))},nt.onload=function(){if((nt.status>=200&&nt.status<300||nt.status===0)&&nt.response!==null){var Pt=nt.response;if(Ae.type==="json")try{Pt=JSON.parse(nt.response)}catch(jt){return He(jt)}He(null,Pt,nt.getResponseHeader("Cache-Control"),nt.getResponseHeader("Expires"))}else He(new Et(nt.statusText,nt.status,Ae.url))},nt.send(Ae.body),{cancel:function(){return nt.abort()}}}(F,G)},Pn=function(F,G){return Cn(x(F,{type:"arrayBuffer"}),G)},Sn=function(F,G){return Cn(x(F,{method:"POST"}),G)},vt,xt,st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";vt=[],xt=0;var bt=function(F,G){if(de.supported&&(F.headers||(F.headers={}),F.headers.accept="image/webp,*/*"),xt>=ce.MAX_PARALLEL_IMAGE_REQUESTS){var ue={requestParameters:F,callback:G,cancelled:!1,cancel:function(){this.cancelled=!0}};return vt.push(ue),ue}xt++;var Ae=!1,He=function(){if(!Ae)for(Ae=!0,xt--;vt.length&&xt0||this._oneTimeListeners&&this._oneTimeListeners[F]&&this._oneTimeListeners[F].length>0||this._eventedParent&&this._eventedParent.listens(F)},Bt.prototype.setEventedParent=function(F,G){return this._eventedParent=F,this._eventedParentData=G,this};var _t={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},qt=function(F,G,ue,Ae){this.message=(F?F+": ":"")+ue,Ae&&(this.identifier=Ae),G!=null&&G.__line__&&(this.line=G.__line__)};function en(F){var G=F.key,ue=F.value;return ue?[new qt(G,ue,"constants have been deprecated as of v8")]:[]}function Jt(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];for(var Ae=0,He=G;Ae":F.itemType.kind==="value"?"array":"array<"+G+">"}return F.kind}var gr=[_n,wn,An,Kn,fr,Br,Un,vr(Zn),$r];function sr(F,G){if(G.kind==="error")return null;if(F.kind==="array"){if(G.kind==="array"&&(G.N===0&&G.itemType.kind==="value"||!sr(F.itemType,G.itemType))&&(typeof F.N!="number"||F.N===G.N))return null}else{if(F.kind===G.kind)return null;if(F.kind==="value"){for(var ue=0,Ae=gr;ue255?255:jt}function He(jt){return jt<0?0:jt>1?1:jt}function nt(jt){return jt[jt.length-1]==="%"?Ae(parseFloat(jt)/100*255):Ae(parseInt(jt))}function ct(jt){return jt[jt.length-1]==="%"?He(parseFloat(jt)/100):He(parseFloat(jt))}function Pt(jt,hn,mn){return mn<0?mn+=1:mn>1&&(mn-=1),6*mn<1?jt+(hn-jt)*mn*6:2*mn<1?hn:3*mn<2?jt+(hn-jt)*(2/3-mn)*6:jt}try{G.parseCSSColor=function(jt){var hn,mn=jt.replace(/ /g,"").toLowerCase();if(mn in ue)return ue[mn].slice();if(mn[0]==="#")return mn.length===4?(hn=parseInt(mn.substr(1),16))>=0&&hn<=4095?[(3840&hn)>>4|(3840&hn)>>8,240&hn|(240&hn)>>4,15&hn|(15&hn)<<4,1]:null:mn.length===7&&(hn=parseInt(mn.substr(1),16))>=0&&hn<=16777215?[(16711680&hn)>>16,(65280&hn)>>8,255&hn,1]:null;var Dn=mn.indexOf("("),Xn=mn.indexOf(")");if(Dn!==-1&&Xn+1===mn.length){var $n=mn.substr(0,Dn),mr=mn.substr(Dn+1,Xn-(Dn+1)).split(","),Or=1;switch($n){case"rgba":if(mr.length!==4)return null;Or=ct(mr.pop());case"rgb":return mr.length!==3?null:[nt(mr[0]),nt(mr[1]),nt(mr[2]),Or];case"hsla":if(mr.length!==4)return null;Or=ct(mr.pop());case"hsl":if(mr.length!==3)return null;var Kr=(parseFloat(mr[0])%360+360)%360/360,Hr=ct(mr[1]),fo=ct(mr[2]),mo=fo<=.5?fo*(Hr+1):fo+Hr-fo*Hr,Io=2*fo-mo;return[Ae(255*Pt(Io,mo,Kr+1/3)),Ae(255*Pt(Io,mo,Kr)),Ae(255*Pt(Io,mo,Kr-1/3)),Or];default:return null}}return null}}catch{}}),eo=Vr.parseCSSColor,Jr=function(F,G,ue,Ae){Ae===void 0&&(Ae=1),this.r=F,this.g=G,this.b=ue,this.a=Ae};Jr.parse=function(F){if(F){if(F instanceof Jr)return F;if(typeof F=="string"){var G=eo(F);if(G)return new Jr(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},Jr.prototype.toString=function(){var F=this.toArray(),G=F[0],ue=F[1],Ae=F[2],He=F[3];return"rgba("+Math.round(G)+","+Math.round(ue)+","+Math.round(Ae)+","+He+")"},Jr.prototype.toArray=function(){var F=this,G=F.r,ue=F.g,Ae=F.b,He=F.a;return He===0?[0,0,0,0]:[255*G/He,255*ue/He,255*Ae/He,He]},Jr.black=new Jr(0,0,0,1),Jr.white=new Jr(1,1,1,1),Jr.transparent=new Jr(0,0,0,0),Jr.red=new Jr(1,0,0,1);var Yr=function(F,G,ue){this.sensitivity=F?G?"variant":"case":G?"accent":"base",this.locale=ue,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yr.prototype.compare=function(F,G){return this.collator.compare(F,G)},Yr.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var to=function(F,G,ue,Ae,He){this.text=F,this.image=G,this.scale=ue,this.fontStack=Ae,this.textColor=He},co=function(F){this.sections=F};co.fromString=function(F){return new co([new to(F,null,null,null,null)])},co.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(F){return F.text.length!==0||F.image&&F.image.name.length!==0})},co.factory=function(F){return F instanceof co?F:co.fromString(F)},co.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(F){return F.text}).join("")},co.prototype.serialize=function(){for(var F=["format"],G=0,ue=this.sections;G=0&&F<=255&&typeof G=="number"&&G>=0&&G<=255&&typeof ue=="number"&&ue>=0&&ue<=255?Ae===void 0||typeof Ae=="number"&&Ae>=0&&Ae<=1?null:"Invalid rgba value ["+[F,G,ue,Ae].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof Ae=="number"?[F,G,ue,Ae]:[F,G,ue]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function $o(F){if(F===null||typeof F=="string"||typeof F=="boolean"||typeof F=="number"||F instanceof Jr||F instanceof Yr||F instanceof co||F instanceof Fo)return!0;if(Array.isArray(F)){for(var G=0,ue=F;G2){var Pt=F[1];if(typeof Pt!="string"||!(Pt in Dr)||Pt==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);nt=Dr[Pt],Ae++}else nt=Zn;if(F.length>3){if(F[2]!==null&&(typeof F[2]!="number"||F[2]<0||F[2]!==Math.floor(F[2])))return G.error('The length argument to "array" must be a positive integer literal',2);ct=F[2],Ae++}ue=vr(nt,ct)}else ue=Dr[He];for(var jt=[];Ae1)&&G.push(Ae)}}return G.concat(this.args.map(function(He){return He.serialize()}))};var Zr=function(F){this.type=Br,this.sections=F};Zr.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[1];if(!Array.isArray(ue)&&typeof ue=="object")return G.error("First argument must be an image or text section.");for(var Ae=[],He=!1,nt=1;nt<=F.length-1;++nt){var ct=F[nt];if(He&&typeof ct=="object"&&!Array.isArray(ct)){He=!1;var Pt=null;if(ct["font-scale"]&&!(Pt=G.parse(ct["font-scale"],1,wn)))return null;var jt=null;if(ct["text-font"]&&!(jt=G.parse(ct["text-font"],1,vr(An))))return null;var hn=null;if(ct["text-color"]&&!(hn=G.parse(ct["text-color"],1,fr)))return null;var mn=Ae[Ae.length-1];mn.scale=Pt,mn.font=jt,mn.textColor=hn}else{var Dn=G.parse(F[nt],1,Zn);if(!Dn)return null;var Xn=Dn.type.kind;if(Xn!=="string"&&Xn!=="value"&&Xn!=="null"&&Xn!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");He=!0,Ae.push({content:Dn,scale:null,font:null,textColor:null})}}return new Zr(Ae)},Zr.prototype.evaluate=function(F){return new co(this.sections.map(function(G){var ue=G.content.evaluate(F);return Mo(ue)===$r?new to("",ue,null,null,null):new to(pi(ue),null,G.scale?G.scale.evaluate(F):null,G.font?G.font.evaluate(F).join(","):null,G.textColor?G.textColor.evaluate(F):null)}))},Zr.prototype.eachChild=function(F){for(var G=0,ue=this.sections;G-1),ue},go.prototype.eachChild=function(F){F(this.input)},go.prototype.outputDefined=function(){return!1},go.prototype.serialize=function(){return["image",this.input.serialize()]};var oo={"to-boolean":Kn,"to-color":fr,"to-number":wn,"to-string":An},io=function(F,G){this.type=F,this.args=G};io.parse=function(F,G){if(F.length<2)return G.error("Expected at least one argument.");var ue=F[0];if((ue==="to-boolean"||ue==="to-string")&&F.length!==2)return G.error("Expected one argument.");for(var Ae=oo[ue],He=[],nt=1;nt4?"Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":_o(G[0],G[1],G[2],G[3])))return new Jr(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new ar(ue||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}if(this.type.kind==="number"){for(var ct=null,Pt=0,jt=this.args;Pt=G[2]||F[1]<=G[1]||F[3]>=G[3])}function Er(F,G){var ue,Ae=(180+F[0])/360,He=(ue=F[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+ue*Math.PI/360)))/360),nt=Math.pow(2,G.z);return[Math.round(Ae*nt*Yn),Math.round(He*nt*Yn)]}function Gt(F,G,ue){return G[1]>F[1]!=ue[1]>F[1]&&F[0]<(ue[0]-G[0])*(F[1]-G[1])/(ue[1]-G[1])+G[0]}function on(F,G){for(var ue=!1,Ae=0,He=G.length;Ae0&&Dn<0||mn<0&&Dn>0}function zn(F,G,ue){for(var Ae=0,He=ue;Aeue[2]){var He=.5*Ae,nt=F[0]-ue[0]>He?-Ae:ue[0]-F[0]>He?Ae:0;nt===0&&(nt=F[0]-ue[2]>He?-Ae:ue[2]-F[0]>He?Ae:0),F[0]+=nt}ir(G,F)}function wo(F,G,ue,Ae){for(var He=Math.pow(2,Ae.z)*Yn,nt=[Ae.x*Yn,Ae.y*Yn],ct=[],Pt=0,jt=F;Pt=0)return!1;var ue=!0;return F.eachChild(function(Ae){ue&&!Mn(Ae,G)&&(ue=!1)}),ue}Eo.parse=function(F,G){if(F.length!==2)return G.error("'within' expression requires exactly one argument, but found "+(F.length-1)+" instead.");if($o(F[1])){var ue=F[1];if(ue.type==="FeatureCollection")for(var Ae=0;AeG))throw new ar("Input is not a number.");ct=Pt-1}return 0}dr.prototype.parse=function(F,G,ue,Ae,He){return He===void 0&&(He={}),G?this.concat(G,ue,Ae)._parse(F,He):this._parse(F,He)},dr.prototype._parse=function(F,G){function ue(hn,mn,Dn){return Dn==="assert"?new Sr(mn,[hn]):Dn==="coerce"?new io(mn,[hn]):hn}if(F!==null&&typeof F!="string"&&typeof F!="boolean"&&typeof F!="number"||(F=["literal",F]),Array.isArray(F)){if(F.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var Ae=F[0];if(typeof Ae!="string")return this.error("Expression name must be a string, but found "+typeof Ae+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var He=this.registry[Ae];if(He){var nt=He.parse(F,this);if(!nt)return null;if(this.expectedType){var ct=this.expectedType,Pt=nt.type;if(ct.kind!=="string"&&ct.kind!=="number"&&ct.kind!=="boolean"&&ct.kind!=="object"&&ct.kind!=="array"||Pt.kind!=="value")if(ct.kind!=="color"&&ct.kind!=="formatted"&&ct.kind!=="resolvedImage"||Pt.kind!=="value"&&Pt.kind!=="string"){if(this.checkSubtype(ct,Pt))return null}else nt=ue(nt,ct,G.typeAnnotation||"coerce");else nt=ue(nt,ct,G.typeAnnotation||"assert")}if(!(nt instanceof Hn)&&nt.type.kind!=="resolvedImage"&&xr(nt)){var jt=new jn;try{nt=new Hn(nt.type,nt.evaluate(jt))}catch(hn){return this.error(hn.message),null}}return nt}return this.error('Unknown expression "'+Ae+'". If you wanted a literal array, use ["literal", [...]].',0)}return F===void 0?this.error("'undefined' value invalid. Use null instead."):typeof F=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof F+" instead.")},dr.prototype.concat=function(F,G,ue){var Ae=typeof F=="number"?this.path.concat(F):this.path,He=ue?this.scope.concat(ue):this.scope;return new dr(this.registry,Ae,G||null,He,this.errors)},dr.prototype.error=function(F){for(var G=[],ue=arguments.length-1;ue-- >0;)G[ue]=arguments[ue+1];var Ae=""+this.key+G.map(function(He){return"["+He+"]"}).join("");this.errors.push(new sn(Ae,F))},dr.prototype.checkSubtype=function(F,G){var ue=sr(F,G);return ue&&this.error(ue),ue};var mi=function(F,G,ue){this.type=F,this.input=G,this.labels=[],this.outputs=[];for(var Ae=0,He=ue;Ae=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',jt);var mn=G.parse(Pt,hn,He);if(!mn)return null;He=He||mn.type,Ae.push([ct,mn])}return new mi(He,ue,Ae)},mi.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;return Ae>=G[He-1]?ue[He-1].evaluate(F):ue[Oo(G,Ae)].evaluate(F)},mi.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G0&&F.push(this.labels[G]),F.push(this.outputs[G].serialize());return F};var To=Object.freeze({__proto__:null,number:Di,color:function(F,G,ue){return new Jr(Di(F.r,G.r,ue),Di(F.g,G.g,ue),Di(F.b,G.b,ue),Di(F.a,G.a,ue))},array:function(F,G,ue){return F.map(function(Ae,He){return Di(Ae,G[He],ue)})}}),Ia=.95047,Ds=1,fs=1.08883,zi=4/29,yl=6/29,Bs=3*yl*yl,yf=yl*yl*yl,il=Math.PI/180,nf=180/Math.PI;function nh(F){return F>yf?Math.pow(F,.3333333333333333):F/Bs+zi}function gp(F){return F>yl?F*F*F:Bs*(F-zi)}function Qs(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,.4166666666666667)-.055)}function xh(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}function Bl(F){var G=xh(F.r),ue=xh(F.g),Ae=xh(F.b),He=nh((.4124564*G+.3575761*ue+.1804375*Ae)/Ia),nt=nh((.2126729*G+.7151522*ue+.072175*Ae)/Ds);return{l:116*nt-16,a:500*(He-nt),b:200*(nt-nh((.0193339*G+.119192*ue+.9503041*Ae)/fs)),alpha:F.a}}function Tc(F){var G=(F.l+16)/116,ue=isNaN(F.a)?G:G+F.a/500,Ae=isNaN(F.b)?G:G-F.b/200;return G=Ds*gp(G),ue=Ia*gp(ue),Ae=fs*gp(Ae),new Jr(Qs(3.2404542*ue-1.5371385*G-.4985314*Ae),Qs(-.969266*ue+1.8760108*G+.041556*Ae),Qs(.0556434*ue-.2040259*G+1.0572252*Ae),F.alpha)}function iu(F,G,ue){var Ae=G-F;return F+ue*(Ae>180||Ae<-180?Ae-360*Math.round(Ae/360):Ae)}var au={forward:Bl,reverse:Tc,interpolate:function(F,G,ue){return{l:Di(F.l,G.l,ue),a:Di(F.a,G.a,ue),b:Di(F.b,G.b,ue),alpha:Di(F.alpha,G.alpha,ue)}}},zf={forward:function(F){var G=Bl(F),ue=G.l,Ae=G.a,He=G.b,nt=Math.atan2(He,Ae)*nf;return{h:nt<0?nt+360:nt,c:Math.sqrt(Ae*Ae+He*He),l:ue,alpha:F.a}},reverse:function(F){var G=F.h*il,ue=F.c;return Tc({l:F.l,a:Math.cos(G)*ue,b:Math.sin(G)*ue,alpha:F.alpha})},interpolate:function(F,G,ue){return{h:iu(F.h,G.h,ue),c:Di(F.c,G.c,ue),l:Di(F.l,G.l,ue),alpha:Di(F.alpha,G.alpha,ue)}}},_s=Object.freeze({__proto__:null,lab:au,hcl:zf}),ma=function(F,G,ue,Ae,He){this.type=F,this.operator=G,this.interpolation=ue,this.input=Ae,this.labels=[],this.outputs=[];for(var nt=0,ct=He;nt1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ae={name:"cubic-bezier",controlPoints:Pt}}if(F.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if((F.length-1)%2!=0)return G.error("Expected an even number of arguments.");if(!(He=G.parse(He,2,wn)))return null;var jt=[],hn=null;ue==="interpolate-hcl"||ue==="interpolate-lab"?hn=fr:G.expectedType&&G.expectedType.kind!=="value"&&(hn=G.expectedType);for(var mn=0;mn=Dn)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',$n);var Or=G.parse(Xn,mr,hn);if(!Or)return null;hn=hn||Or.type,jt.push([Dn,Or])}return hn.kind==="number"||hn.kind==="color"||hn.kind==="array"&&hn.itemType.kind==="number"&&typeof hn.N=="number"?new ma(hn,ue,Ae,He,jt):G.error("Type "+qn(hn)+" is not interpolatable.")},ma.prototype.evaluate=function(F){var G=this.labels,ue=this.outputs;if(G.length===1)return ue[0].evaluate(F);var Ae=this.input.evaluate(F);if(Ae<=G[0])return ue[0].evaluate(F);var He=G.length;if(Ae>=G[He-1])return ue[He-1].evaluate(F);var nt=Oo(G,Ae),ct=G[nt],Pt=G[nt+1],jt=ma.interpolationFactor(this.interpolation,Ae,ct,Pt),hn=ue[nt].evaluate(F),mn=ue[nt+1].evaluate(F);return this.operator==="interpolate"?To[this.type.kind.toLowerCase()](hn,mn,jt):this.operator==="interpolate-hcl"?zf.reverse(zf.interpolate(zf.forward(hn),zf.forward(mn),jt)):au.reverse(au.interpolate(au.forward(hn),au.forward(mn),jt))},ma.prototype.eachChild=function(F){F(this.input);for(var G=0,ue=this.outputs;G=ue.length)throw new ar("Array index out of bounds: "+G+" > "+(ue.length-1)+".");if(G!==Math.floor(G))throw new ar("Array index must be an integer, but found "+G+" instead.");return ue[G]},Al.prototype.eachChild=function(F){F(this.index),F(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Wl=function(F,G){this.type=Kn,this.needle=F,this.haystack=G};Wl.parse=function(F,G){if(F.length!==3)return G.error("Expected 2 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);return ue&&Ae?lr(ue.type,[Kn,An,wn,_n,Zn])?new Wl(ue,Ae):G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead"):null},Wl.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!ue)return!1;if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");return ue.indexOf(G)>=0},Wl.prototype.eachChild=function(F){F(this.needle),F(this.haystack)},Wl.prototype.outputDefined=function(){return!0},Wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ml=function(F,G,ue){this.type=wn,this.needle=F,this.haystack=G,this.fromIndex=ue};Ml.parse=function(F,G){if(F.length<=2||F.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,Zn);if(!ue||!Ae)return null;if(!lr(ue.type,[Kn,An,wn,_n,Zn]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Ml(ue,Ae,He):null}return new Ml(ue,Ae)},Ml.prototype.evaluate=function(F){var G=this.needle.evaluate(F),ue=this.haystack.evaluate(F);if(!zr(G,["boolean","string","number","null"]))throw new ar("Expected first argument to be of type boolean, string, number or null, but found "+qn(Mo(G))+" instead.");if(!zr(ue,["string","array"]))throw new ar("Expected second argument to be of type array or string, but found "+qn(Mo(ue))+" instead.");if(this.fromIndex){var Ae=this.fromIndex.evaluate(F);return ue.indexOf(G,Ae)}return ue.indexOf(G)},Ml.prototype.eachChild=function(F){F(this.needle),F(this.haystack),this.fromIndex&&F(this.fromIndex)},Ml.prototype.outputDefined=function(){return!1},Ml.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var F=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),F]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Jf=function(F,G,ue,Ae,He,nt){this.inputType=F,this.type=G,this.input=ue,this.cases=Ae,this.outputs=He,this.otherwise=nt};Jf.parse=function(F,G){if(F.length<5)return G.error("Expected at least 4 arguments, but found only "+(F.length-1)+".");if(F.length%2!=1)return G.error("Expected an even number of arguments.");var ue,Ae;G.expectedType&&G.expectedType.kind!=="value"&&(Ae=G.expectedType);for(var He={},nt=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return hn.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Xn=="number"&&Math.floor(Xn)!==Xn)return hn.error("Numeric branch labels must be integer values.");if(ue){if(hn.checkSubtype(ue,Mo(Xn)))return null}else ue=Mo(Xn);if(He[String(Xn)]!==void 0)return hn.error("Branch labels must be unique.");He[String(Xn)]=nt.length}var $n=G.parse(jt,ct,Ae);if(!$n)return null;Ae=Ae||$n.type,nt.push($n)}var mr=G.parse(F[1],1,Zn);if(!mr)return null;var Or=G.parse(F[F.length-1],F.length-1,Ae);return Or?mr.type.kind!=="value"&&G.concat(1).checkSubtype(ue,mr.type)?null:new Jf(ue,Ae,mr,He,nt,Or):null},Jf.prototype.evaluate=function(F){var G=this.input.evaluate(F);return(Mo(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise).evaluate(F)},Jf.prototype.eachChild=function(F){F(this.input),this.outputs.forEach(F),F(this.otherwise)},Jf.prototype.outputDefined=function(){return this.outputs.every(function(F){return F.outputDefined()})&&this.otherwise.outputDefined()},Jf.prototype.serialize=function(){for(var F=this,G=["match",this.input.serialize()],ue=[],Ae={},He=0,nt=Object.keys(this.cases).sort();He=5)return G.error("Expected 3 or 4 arguments, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1,Zn),Ae=G.parse(F[2],2,wn);if(!ue||!Ae)return null;if(!lr(ue.type,[vr(Zn),An,Zn]))return G.error("Expected first argument to be of type array or string, but found "+qn(ue.type)+" instead");if(F.length===4){var He=G.parse(F[3],3,wn);return He?new Jl(ue.type,ue,Ae,He):null}return new Jl(ue.type,ue,Ae)},Jl.prototype.evaluate=function(F){var G=this.input.evaluate(F),ue=this.beginIndex.evaluate(F);if(!zr(G,["string","array"]))throw new ar("Expected first argument to be of type array or string, but found "+qn(Mo(G))+" instead.");if(this.endIndex){var Ae=this.endIndex.evaluate(F);return G.slice(ue,Ae)}return G.slice(ue)},Jl.prototype.eachChild=function(F){F(this.input),F(this.beginIndex),this.endIndex&&F(this.endIndex)},Jl.prototype.outputDefined=function(){return!1},Jl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var F=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),F]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var gu=Tu("==",function(F,G,ue){return G===ue},ll),ec=Tu("!=",function(F,G,ue){return G!==ue},function(F,G,ue,Ae){return!ll(0,G,ue,Ae)}),Dc=Tu("<",function(F,G,ue){return G",function(F,G,ue){return G>ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>0}),Lp=Tu("<=",function(F,G,ue){return G<=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)<=0}),rh=Tu(">=",function(F,G,ue){return G>=ue},function(F,G,ue,Ae){return Ae.compare(G,ue)>=0}),rf=function(F,G,ue,Ae,He){this.type=An,this.number=F,this.locale=G,this.currency=ue,this.minFractionDigits=Ae,this.maxFractionDigits=He};rf.parse=function(F,G){if(F.length!==3)return G.error("Expected two arguments.");var ue=G.parse(F[1],1,wn);if(!ue)return null;var Ae=F[2];if(typeof Ae!="object"||Array.isArray(Ae))return G.error("NumberFormat options argument must be an object.");var He=null;if(Ae.locale&&!(He=G.parse(Ae.locale,1,An)))return null;var nt=null;if(Ae.currency&&!(nt=G.parse(Ae.currency,1,An)))return null;var ct=null;if(Ae["min-fraction-digits"]&&!(ct=G.parse(Ae["min-fraction-digits"],1,wn)))return null;var Pt=null;return Ae["max-fraction-digits"]&&!(Pt=G.parse(Ae["max-fraction-digits"],1,wn))?null:new rf(ue,He,nt,ct,Pt)},rf.prototype.evaluate=function(F){return new Intl.NumberFormat(this.locale?this.locale.evaluate(F):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(F):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(F):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(F):void 0}).format(this.number.evaluate(F))},rf.prototype.eachChild=function(F){F(this.number),this.locale&&F(this.locale),this.currency&&F(this.currency),this.minFractionDigits&&F(this.minFractionDigits),this.maxFractionDigits&&F(this.maxFractionDigits)},rf.prototype.outputDefined=function(){return!1},rf.prototype.serialize=function(){var F={};return this.locale&&(F.locale=this.locale.serialize()),this.currency&&(F.currency=this.currency.serialize()),this.minFractionDigits&&(F["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(F["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),F]};var of=function(F){this.type=wn,this.input=F};of.parse=function(F,G){if(F.length!==2)return G.error("Expected 1 argument, but found "+(F.length-1)+" instead.");var ue=G.parse(F[1],1);return ue?ue.type.kind!=="array"&&ue.type.kind!=="string"&&ue.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+qn(ue.type)+" instead."):new of(ue):null},of.prototype.evaluate=function(F){var G=this.input.evaluate(F);if(typeof G=="string"||Array.isArray(G))return G.length;throw new ar("Expected value to be of type string or array, but found "+qn(Mo(G))+" instead.")},of.prototype.eachChild=function(F){F(this.input)},of.prototype.outputDefined=function(){return!1},of.prototype.serialize=function(){var F=["length"];return this.eachChild(function(G){F.push(G.serialize())}),F};var bf={"==":gu,"!=":ec,">":tc,"<":Dc,">=":rh,"<=":Lp,array:Sr,at:Al,boolean:Sr,case:Nf,coalesce:Uc,collator:On,format:Zr,image:go,in:Wl,"index-of":Ml,interpolate:ma,"interpolate-hcl":ma,"interpolate-lab":ma,length:of,let:Kf,literal:Hn,match:Jf,number:Sr,"number-format":rf,object:Sr,slice:Jl,step:mi,string:Sr,"to-boolean":io,"to-color":io,"to-number":io,"to-string":io,var:Fn,within:Eo};function vu(F,G){var ue=G[0],Ae=G[1],He=G[2],nt=G[3];ue=ue.evaluate(F),Ae=Ae.evaluate(F),He=He.evaluate(F);var ct=nt?nt.evaluate(F):1,Pt=_o(ue,Ae,He,ct);if(Pt)throw new ar(Pt);return new Jr(ue/255*ct,Ae/255*ct,He/255*ct,ct)}function $d(F,G){return F in G}function bl(F,G){var ue=G[F];return ue===void 0?null:ue}function Zu(F){return{type:F}}function Kh(F){return{result:"success",value:F}}function Cu(F){return{result:"error",value:F}}function ed(F){return F["property-type"]==="data-driven"||F["property-type"]==="cross-faded-data-driven"}function Bu(F){return!!F.expression&&F.expression.parameters.indexOf("zoom")>-1}function vd(F){return!!F.expression&&F.expression.interpolated}function cs(F){return F instanceof Number?"number":F instanceof String?"string":F instanceof Boolean?"boolean":Array.isArray(F)?"array":F===null?"null":typeof F}function oh(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)}function Jh(F){return F}function _h(F,G){var ue,Ae,He,nt=G.type==="color",ct=F.stops&&typeof F.stops[0][0]=="object",Pt=ct||F.property!==void 0,jt=ct||!Pt,hn=F.type||(vd(G)?"exponential":"interval");if(nt&&((F=Jt({},F)).stops&&(F.stops=F.stops.map(function(bi){return[bi[0],Jr.parse(bi[1])]})),F.default?F.default=Jr.parse(F.default):F.default=Jr.parse(G.default)),F.colorSpace&&F.colorSpace!=="rgb"&&!_s[F.colorSpace])throw new Error("Unknown color space: "+F.colorSpace);if(hn==="exponential")ue=Ff;else if(hn==="interval")ue=_r;else if(hn==="categorical"){ue=ep,Ae=Object.create(null);for(var mn=0,Dn=F.stops;mn=F.stops[Ae-1][0])return F.stops[Ae-1][1];var He=Oo(F.stops.map(function(nt){return nt[0]}),ue);return F.stops[He][1]}function Ff(F,G,ue){var Ae=F.base!==void 0?F.base:1;if(cs(ue)!=="number")return xf(F.default,G.default);var He=F.stops.length;if(He===1||ue<=F.stops[0][0])return F.stops[0][1];if(ue>=F.stops[He-1][0])return F.stops[He-1][1];var nt=Oo(F.stops.map(function(Dn){return Dn[0]}),ue),ct=function(Dn,Xn,$n,mr){var Or=mr-$n,Kr=Dn-$n;return Or===0?0:Xn===1?Kr/Or:(Math.pow(Xn,Kr)-1)/(Math.pow(Xn,Or)-1)}(ue,Ae,F.stops[nt][0],F.stops[nt+1][0]),Pt=F.stops[nt][1],jt=F.stops[nt+1][1],hn=To[G.type]||Jh;if(F.colorSpace&&F.colorSpace!=="rgb"){var mn=_s[F.colorSpace];hn=function(Dn,Xn){return mn.reverse(mn.interpolate(mn.forward(Dn),mn.forward(Xn),ct))}}return typeof Pt.evaluate=="function"?{evaluate:function(){for(var Dn=[],Xn=arguments.length;Xn--;)Dn[Xn]=arguments[Xn];var $n=Pt.evaluate.apply(void 0,Dn),mr=jt.evaluate.apply(void 0,Dn);if($n!==void 0&&mr!==void 0)return hn($n,mr,ct)}}:hn(Pt,jt,ct)}function yd(F,G,ue){return G.type==="color"?ue=Jr.parse(ue):G.type==="formatted"?ue=co.fromString(ue.toString()):G.type==="resolvedImage"?ue=Fo.fromString(ue.toString()):cs(ue)===G.type||G.type==="enum"&&G.values[ue]||(ue=void 0),xf(ue,F.default,G.default)}Rr.register(bf,{error:[{kind:"error"},[An],function(F,G){var ue=G[0];throw new ar(ue.evaluate(F))}],typeof:[An,[Zn],function(F,G){return qn(Mo(G[0].evaluate(F)))}],"to-rgba":[vr(wn,4),[fr],function(F,G){return G[0].evaluate(F).toArray()}],rgb:[fr,[wn,wn,wn],vu],rgba:[fr,[wn,wn,wn,wn],vu],has:{type:Kn,overloads:[[[An],function(F,G){return $d(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return $d(ue.evaluate(F),Ae.evaluate(F))}]]},get:{type:Zn,overloads:[[[An],function(F,G){return bl(G[0].evaluate(F),F.properties())}],[[An,Un],function(F,G){var ue=G[0],Ae=G[1];return bl(ue.evaluate(F),Ae.evaluate(F))}]]},"feature-state":[Zn,[An],function(F,G){return bl(G[0].evaluate(F),F.featureState||{})}],properties:[Un,[],function(F){return F.properties()}],"geometry-type":[An,[],function(F){return F.geometryType()}],id:[Zn,[],function(F){return F.id()}],zoom:[wn,[],function(F){return F.globals.zoom}],"heatmap-density":[wn,[],function(F){return F.globals.heatmapDensity||0}],"line-progress":[wn,[],function(F){return F.globals.lineProgress||0}],accumulated:[Zn,[],function(F){return F.globals.accumulated===void 0?null:F.globals.accumulated}],"+":[wn,Zu(wn),function(F,G){for(var ue=0,Ae=0,He=G;Ae":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>nt}],"filter-id->":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>He}],"filter-<=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He<=nt}],"filter-id-<=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae<=He}],"filter->=":[Kn,[An,Zn],function(F,G){var ue=G[0],Ae=G[1],He=F.properties()[ue.value],nt=Ae.value;return typeof He==typeof nt&&He>=nt}],"filter-id->=":[Kn,[Zn],function(F,G){var ue=G[0],Ae=F.id(),He=ue.value;return typeof Ae==typeof He&&Ae>=He}],"filter-has":[Kn,[Zn],function(F,G){return G[0].value in F.properties()}],"filter-has-id":[Kn,[],function(F){return F.id()!==null&&F.id()!==void 0}],"filter-type-in":[Kn,[vr(An)],function(F,G){return G[0].value.indexOf(F.geometryType())>=0}],"filter-id-in":[Kn,[vr(Zn)],function(F,G){return G[0].value.indexOf(F.id())>=0}],"filter-in-small":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0];return G[1].value.indexOf(F.properties()[ue.value])>=0}],"filter-in-large":[Kn,[An,vr(Zn)],function(F,G){var ue=G[0],Ae=G[1];return function(He,nt,ct,Pt){for(;ct<=Pt;){var jt=ct+Pt>>1;if(nt[jt]===He)return!0;nt[jt]>He?Pt=jt-1:ct=jt+1}return!1}(F.properties()[ue.value],Ae.value,0,Ae.value.length-1)}],all:{type:Kn,overloads:[[[Kn,Kn],function(F,G){var ue=G[0],Ae=G[1];return ue.evaluate(F)&&Ae.evaluate(F)}],[Zu(Kn),function(F,G){for(var ue=0,Ae=G;ue0&&typeof F[0]=="string"&&F[0]in bf}function zu(F,G){var ue=new dr(bf,[],G?function(He){var nt={color:fr,string:An,number:wn,enum:An,boolean:Kn,formatted:Br,resolvedImage:$r};return He.type==="array"?vr(nt[He.value]||Zn,He.length):nt[He.type]}(G):void 0),Ae=ue.parse(F,void 0,void 0,void 0,G&&G.type==="string"?{typeAnnotation:"coerce"}:void 0);return Ae?Kh(new bd(Ae,G)):Cu(ue.errors)}bd.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._evaluator.globals=F,this._evaluator.feature=G,this._evaluator.featureState=ue,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt,this.expression.evaluate(this._evaluator)},bd.prototype.evaluate=function(F,G,ue,Ae,He,nt){this._evaluator.globals=F,this._evaluator.feature=G||null,this._evaluator.featureState=ue||null,this._evaluator.canonical=Ae,this._evaluator.availableImages=He||null,this._evaluator.formattedSection=nt||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!=ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new ar("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};var va=function(F,G){this.kind=F,this._styleExpression=G,this.isStateDependent=F!=="constant"&&!Qt(G.expression)};va.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},va.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)};var El=function(F,G,ue,Ae){this.kind=F,this.zoomStops=ue,this._styleExpression=G,this.isStateDependent=F!=="camera"&&!Qt(G.expression),this.interpolationType=Ae};function _f(F,G){if((F=zu(F,G)).result==="error")return F;var ue=F.value.expression,Ae=zo(ue);if(!Ae&&!ed(G))return Cu([new sn("","data expressions not supported")]);var He=Mn(ue,["zoom"]);if(!He&&!Bu(G))return Cu([new sn("","zoom expressions not supported")]);var nt=ih(ue);if(!nt&&!He)return Cu([new sn("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(nt instanceof sn)return Cu([nt]);if(nt instanceof ma&&!vd(G))return Cu([new sn("",'"interpolate" expressions cannot be used with this property')]);if(!nt)return Kh(new va(Ae?"constant":"source",F.value));var ct=nt instanceof ma?nt.interpolation:void 0;return Kh(new El(Ae?"camera":"composite",F.value,nt.labels,ct))}El.prototype.evaluateWithoutErrorHandling=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluateWithoutErrorHandling(F,G,ue,Ae,He,nt)},El.prototype.evaluate=function(F,G,ue,Ae,He,nt){return this._styleExpression.evaluate(F,G,ue,Ae,He,nt)},El.prototype.interpolationFactor=function(F,G,ue){return this.interpolationType?ma.interpolationFactor(this.interpolationType,F,G,ue):0};var $f=function(F,G){this._parameters=F,this._specification=G,Jt(this,_h(this._parameters,this._specification))};function ih(F){var G=null;if(F instanceof Kf)G=ih(F.result);else if(F instanceof Uc)for(var ue=0,Ae=F.args;ueAe.maximum?[new qt(G,ue,ue+" is greater than the maximum value "+Ae.maximum)]:[]}function af(F){var G,ue,Ae,He=F.valueSpec,nt=Zt(F.value.type),ct={},Pt=nt!=="categorical"&&F.value.property===void 0,jt=!Pt,hn=cs(F.value.stops)==="array"&&cs(F.value.stops[0])==="array"&&cs(F.value.stops[0][0])==="object",mn=yu({key:F.key,value:F.value,valueSpec:F.styleSpec.function,style:F.style,styleSpec:F.styleSpec,objectElementValidators:{stops:function($n){if(nt==="identity")return[new qt($n.key,$n.value,'identity function may not have a "stops" property')];var mr=[],Or=$n.value;return mr=mr.concat(jc({key:$n.key,value:Or,valueSpec:$n.valueSpec,style:$n.style,styleSpec:$n.styleSpec,arrayElementValidator:Dn})),cs(Or)==="array"&&Or.length===0&&mr.push(new qt($n.key,Or,"array must have at least one stop")),mr},default:function($n){return bc({key:$n.key,value:$n.value,valueSpec:He,style:$n.style,styleSpec:$n.styleSpec})}}});return nt==="identity"&&Pt&&mn.push(new qt(F.key,F.value,'missing required property "property"')),nt==="identity"||F.value.stops||mn.push(new qt(F.key,F.value,'missing required property "stops"')),nt==="exponential"&&F.valueSpec.expression&&!vd(F.valueSpec)&&mn.push(new qt(F.key,F.value,"exponential functions not supported")),F.styleSpec.$version>=8&&(jt&&!ed(F.valueSpec)?mn.push(new qt(F.key,F.value,"property functions not supported")):Pt&&!Bu(F.valueSpec)&&mn.push(new qt(F.key,F.value,"zoom functions not supported"))),nt!=="categorical"&&!hn||F.value.property!==void 0||mn.push(new qt(F.key,F.value,'"property" property is required')),mn;function Dn($n){var mr=[],Or=$n.value,Kr=$n.key;if(cs(Or)!=="array")return[new qt(Kr,Or,"array expected, "+cs(Or)+" found")];if(Or.length!==2)return[new qt(Kr,Or,"array length 2 expected, length "+Or.length+" found")];if(hn){if(cs(Or[0])!=="object")return[new qt(Kr,Or,"object expected, "+cs(Or[0])+" found")];if(Or[0].zoom===void 0)return[new qt(Kr,Or,"object stop key must have zoom")];if(Or[0].value===void 0)return[new qt(Kr,Or,"object stop key must have value")];if(Ae&&Ae>Zt(Or[0].zoom))return[new qt(Kr,Or[0].zoom,"stop zoom values must appear in ascending order")];Zt(Or[0].zoom)!==Ae&&(Ae=Zt(Or[0].zoom),ue=void 0,ct={}),mr=mr.concat(yu({key:Kr+"[0]",value:Or[0],valueSpec:{zoom:{}},style:$n.style,styleSpec:$n.styleSpec,objectElementValidators:{zoom:Nh,value:Xn}}))}else mr=mr.concat(Xn({key:Kr+"[0]",value:Or[0],valueSpec:{},style:$n.style,styleSpec:$n.styleSpec},Or));return wh(Nt(Or[1]))?mr.concat([new qt(Kr+"[1]",Or[1],"expressions are not allowed in function stops.")]):mr.concat(bc({key:Kr+"[1]",value:Or[1],valueSpec:He,style:$n.style,styleSpec:$n.styleSpec}))}function Xn($n,mr){var Or=cs($n.value),Kr=Zt($n.value),Hr=$n.value!==null?$n.value:mr;if(G){if(Or!==G)return[new qt($n.key,Hr,Or+" stop domain type must match previous stop domain type "+G)]}else G=Or;if(Or!=="number"&&Or!=="string"&&Or!=="boolean")return[new qt($n.key,Hr,"stop domain value must be a number, string, or boolean")];if(Or!=="number"&&nt!=="categorical"){var fo="number expected, "+Or+" found";return ed(He)&&nt===void 0&&(fo+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new qt($n.key,Hr,fo)]}return nt!=="categorical"||Or!=="number"||isFinite(Kr)&&Math.floor(Kr)===Kr?nt!=="categorical"&&Or==="number"&&ue!==void 0&&Kr=2&&F[1]!=="$id"&&F[1]!=="$type";case"in":return F.length>=3&&(typeof F[1]!="string"||Array.isArray(F[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return F.length!==3||Array.isArray(F[1])||Array.isArray(F[2]);case"any":case"all":for(var G=0,ue=F.slice(1);GG?1:0}function gs(F){if(!Array.isArray(F))return!1;if(F[0]==="within")return!0;for(var G=1;G"||ue==="<="||ue===">="?Cc(F[1],F[2],ue):ue==="any"?(G=F.slice(1),["any"].concat(G.map(yc))):ue==="all"?["all"].concat(F.slice(1).map(yc)):ue==="none"?["all"].concat(F.slice(1).map(yc).map(Ks)):ue==="in"?Nu(F[1],F.slice(2)):ue==="!in"?Ks(Nu(F[1],F.slice(2))):ue==="has"?Gs(F[1]):ue==="!has"?Ks(Gs(F[1])):ue!=="within"||F}function Cc(F,G,ue){switch(F){case"$type":return["filter-type-"+ue,G];case"$id":return["filter-id-"+ue,G];default:return["filter-"+ue,F,G]}}function Nu(F,G){if(G.length===0)return!1;switch(F){case"$type":return["filter-type-in",["literal",G]];case"$id":return["filter-id-in",["literal",G]];default:return G.length>200&&!G.some(function(ue){return typeof ue!=typeof G[0]})?["filter-in-large",F,["literal",G.sort(vc)]]:["filter-in-small",F,["literal",G]]}}function Gs(F){switch(F){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",F]}}function Ks(F){return["!",F]}function Ac(F){return Bc(Nt(F.value))?td(Jt({},F,{expressionContext:"filter",valueSpec:{value:"boolean"}})):_d(F)}function _d(F){var G=F.value,ue=F.key;if(cs(G)!=="array")return[new qt(ue,G,"array expected, "+cs(G)+" found")];var Ae,He=F.styleSpec,nt=[];if(G.length<1)return[new qt(ue,G,"filter array must have at least 1 element")];switch(nt=nt.concat(sf({key:ue+"[0]",value:G[0],valueSpec:He.filter_operator,style:F.style,styleSpec:F.styleSpec})),Zt(G[0])){case"<":case"<=":case">":case">=":G.length>=2&&Zt(G[1])==="$type"&&nt.push(new qt(ue,G,'"$type" cannot be use with operator "'+G[0]+'"'));case"==":case"!=":G.length!==3&&nt.push(new qt(ue,G,'filter array for operator "'+G[0]+'" must have 3 elements'));case"in":case"!in":G.length>=2&&(Ae=cs(G[1]))!=="string"&&nt.push(new qt(ue+"[1]",G[1],"string expected, "+Ae+" found"));for(var ct=2;ct=mn[$n+0]&&Ae>=mn[$n+1])?(ct[Xn]=!0,nt.push(hn[Xn])):ct[Xn]=!1}}},Of.prototype._forEachCell=function(F,G,ue,Ae,He,nt,ct,Pt){for(var jt=this._convertToCellCoord(F),hn=this._convertToCellCoord(G),mn=this._convertToCellCoord(ue),Dn=this._convertToCellCoord(Ae),Xn=jt;Xn<=mn;Xn++)for(var $n=hn;$n<=Dn;$n++){var mr=this.d*$n+Xn;if((!Pt||Pt(this._convertFromCellCoord(Xn),this._convertFromCellCoord($n),this._convertFromCellCoord(Xn+1),this._convertFromCellCoord($n+1)))&&He.call(this,F,G,ue,Ae,mr,nt,ct,Pt))return}},Of.prototype._convertFromCellCoord=function(F){return(F-this.padding)/this.scale},Of.prototype._convertToCellCoord=function(F){return Math.max(0,Math.min(this.d-1,Math.floor(F*this.scale)+this.padding))},Of.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var F=this.cells,G=cf+this.cells.length+1+1,ue=0,Ae=0;Ae=0)){var Dn=F[mn];hn[mn]=Mu[jt].shallow.indexOf(mn)>=0?Dn:xc(Dn,G)}F instanceof Error&&(hn.message=F.message)}if(hn.$name)throw new Error("$name property is reserved for worker serialization logic.");return jt!=="Object"&&(hn.$name=jt),hn}throw new Error("can't serialize object of type "+typeof F)}function Kc(F){if(F==null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||F instanceof Boolean||F instanceof Number||F instanceof String||F instanceof Date||F instanceof RegExp||qu(F)||zl(F)||ArrayBuffer.isView(F)||F instanceof aa)return F;if(Array.isArray(F))return F.map(Kc);if(typeof F=="object"){var G=F.$name||"Object",ue=Mu[G].klass;if(!ue)throw new Error("can't deserialize unregistered class "+G);if(ue.deserialize)return ue.deserialize(F);for(var Ae=Object.create(ue.prototype),He=0,nt=Object.keys(F);He=0?Pt:Kc(Pt)}}return Ae}throw new Error("can't deserialize object of type "+typeof F)}var jd=function(){this.first=!0};jd.prototype.update=function(F,G){var ue=Math.floor(F);return this.first?(this.first=!1,this.lastIntegerZoom=ue,this.lastIntegerZoomTime=0,this.lastZoom=F,this.lastFloorZoom=ue,!0):(this.lastFloorZoom>ue?(this.lastIntegerZoom=ue+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&F<=255},Arabic:function(F){return F>=1536&&F<=1791},"Arabic Supplement":function(F){return F>=1872&&F<=1919},"Arabic Extended-A":function(F){return F>=2208&&F<=2303},"Hangul Jamo":function(F){return F>=4352&&F<=4607},"Unified Canadian Aboriginal Syllabics":function(F){return F>=5120&&F<=5759},Khmer:function(F){return F>=6016&&F<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(F){return F>=6320&&F<=6399},"General Punctuation":function(F){return F>=8192&&F<=8303},"Letterlike Symbols":function(F){return F>=8448&&F<=8527},"Number Forms":function(F){return F>=8528&&F<=8591},"Miscellaneous Technical":function(F){return F>=8960&&F<=9215},"Control Pictures":function(F){return F>=9216&&F<=9279},"Optical Character Recognition":function(F){return F>=9280&&F<=9311},"Enclosed Alphanumerics":function(F){return F>=9312&&F<=9471},"Geometric Shapes":function(F){return F>=9632&&F<=9727},"Miscellaneous Symbols":function(F){return F>=9728&&F<=9983},"Miscellaneous Symbols and Arrows":function(F){return F>=11008&&F<=11263},"CJK Radicals Supplement":function(F){return F>=11904&&F<=12031},"Kangxi Radicals":function(F){return F>=12032&&F<=12255},"Ideographic Description Characters":function(F){return F>=12272&&F<=12287},"CJK Symbols and Punctuation":function(F){return F>=12288&&F<=12351},Hiragana:function(F){return F>=12352&&F<=12447},Katakana:function(F){return F>=12448&&F<=12543},Bopomofo:function(F){return F>=12544&&F<=12591},"Hangul Compatibility Jamo":function(F){return F>=12592&&F<=12687},Kanbun:function(F){return F>=12688&&F<=12703},"Bopomofo Extended":function(F){return F>=12704&&F<=12735},"CJK Strokes":function(F){return F>=12736&&F<=12783},"Katakana Phonetic Extensions":function(F){return F>=12784&&F<=12799},"Enclosed CJK Letters and Months":function(F){return F>=12800&&F<=13055},"CJK Compatibility":function(F){return F>=13056&&F<=13311},"CJK Unified Ideographs Extension A":function(F){return F>=13312&&F<=19903},"Yijing Hexagram Symbols":function(F){return F>=19904&&F<=19967},"CJK Unified Ideographs":function(F){return F>=19968&&F<=40959},"Yi Syllables":function(F){return F>=40960&&F<=42127},"Yi Radicals":function(F){return F>=42128&&F<=42191},"Hangul Jamo Extended-A":function(F){return F>=43360&&F<=43391},"Hangul Syllables":function(F){return F>=44032&&F<=55215},"Hangul Jamo Extended-B":function(F){return F>=55216&&F<=55295},"Private Use Area":function(F){return F>=57344&&F<=63743},"CJK Compatibility Ideographs":function(F){return F>=63744&&F<=64255},"Arabic Presentation Forms-A":function(F){return F>=64336&&F<=65023},"Vertical Forms":function(F){return F>=65040&&F<=65055},"CJK Compatibility Forms":function(F){return F>=65072&&F<=65103},"Small Form Variants":function(F){return F>=65104&&F<=65135},"Arabic Presentation Forms-B":function(F){return F>=65136&&F<=65279},"Halfwidth and Fullwidth Forms":function(F){return F>=65280&&F<=65519}};function nd(F){for(var G=0,ue=F;G=65097&&F<=65103)||ii["CJK Compatibility Ideographs"](F)||ii["CJK Compatibility"](F)||ii["CJK Radicals Supplement"](F)||ii["CJK Strokes"](F)||!(!ii["CJK Symbols and Punctuation"](F)||F>=12296&&F<=12305||F>=12308&&F<=12319||F===12336)||ii["CJK Unified Ideographs Extension A"](F)||ii["CJK Unified Ideographs"](F)||ii["Enclosed CJK Letters and Months"](F)||ii["Hangul Compatibility Jamo"](F)||ii["Hangul Jamo Extended-A"](F)||ii["Hangul Jamo Extended-B"](F)||ii["Hangul Jamo"](F)||ii["Hangul Syllables"](F)||ii.Hiragana(F)||ii["Ideographic Description Characters"](F)||ii.Kanbun(F)||ii["Kangxi Radicals"](F)||ii["Katakana Phonetic Extensions"](F)||ii.Katakana(F)&&F!==12540||!(!ii["Halfwidth and Fullwidth Forms"](F)||F===65288||F===65289||F===65293||F>=65306&&F<=65310||F===65339||F===65341||F===65343||F>=65371&&F<=65503||F===65507||F>=65512&&F<=65519)||!(!ii["Small Form Variants"](F)||F>=65112&&F<=65118||F>=65123&&F<=65126)||ii["Unified Canadian Aboriginal Syllabics"](F)||ii["Unified Canadian Aboriginal Syllabics Extended"](F)||ii["Vertical Forms"](F)||ii["Yijing Hexagram Symbols"](F)||ii["Yi Syllables"](F)||ii["Yi Radicals"](F))))}function Yl(F){return!(al(F)||function(G){return!!(ii["Latin-1 Supplement"](G)&&(G===167||G===169||G===174||G===177||G===188||G===189||G===190||G===215||G===247)||ii["General Punctuation"](G)&&(G===8214||G===8224||G===8225||G===8240||G===8241||G===8251||G===8252||G===8258||G===8263||G===8264||G===8265||G===8273)||ii["Letterlike Symbols"](G)||ii["Number Forms"](G)||ii["Miscellaneous Technical"](G)&&(G>=8960&&G<=8967||G>=8972&&G<=8991||G>=8996&&G<=9e3||G===9003||G>=9085&&G<=9114||G>=9150&&G<=9165||G===9167||G>=9169&&G<=9179||G>=9186&&G<=9215)||ii["Control Pictures"](G)&&G!==9251||ii["Optical Character Recognition"](G)||ii["Enclosed Alphanumerics"](G)||ii["Geometric Shapes"](G)||ii["Miscellaneous Symbols"](G)&&!(G>=9754&&G<=9759)||ii["Miscellaneous Symbols and Arrows"](G)&&(G>=11026&&G<=11055||G>=11088&&G<=11097||G>=11192&&G<=11243)||ii["CJK Symbols and Punctuation"](G)||ii.Katakana(G)||ii["Private Use Area"](G)||ii["CJK Compatibility Forms"](G)||ii["Small Form Variants"](G)||ii["Halfwidth and Fullwidth Forms"](G)||G===8734||G===8756||G===8757||G>=9984&&G<=10087||G>=10102&&G<=10131||G===65532||G===65533)}(F))}function uf(F){return ii.Arabic(F)||ii["Arabic Supplement"](F)||ii["Arabic Extended-A"](F)||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function hs(F){return F>=1424&&F<=2303||ii["Arabic Presentation Forms-A"](F)||ii["Arabic Presentation Forms-B"](F)}function Mc(F,G){return!(!G&&hs(F)||F>=2304&&F<=3583||F>=3840&&F<=4255||ii.Khmer(F))}function Eu(F){for(var G=0,ue=F;G-1&&(Ls=su),Ca&&Ca(F)};function wt(){Kt.fire(new it("pluginStateChange",{pluginStatus:Ls,pluginURL:Ec}))}var Kt=new Bt,En=function(){return Ls},pr=function(){if(Ls!==xu||!Ec)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ls=ws,wt(),Ec&&Pn({url:Ec},function(F){F?_u(F):(Ls=Fu,wt())})},wr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ls===Fu||wr.applyArabicShaping!=null},isLoading:function(){return Ls===ws},setState:function(F){Ls=F.pluginStatus,Ec=F.pluginURL},isParsed:function(){return wr.applyArabicShaping!=null&&wr.processBidirectionalText!=null&&wr.processStyledBidirectionalText!=null},getPluginURL:function(){return Ec}},uo=function(F,G){this.zoom=F,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jd,this.transition={})};uo.prototype.isSupportedScript=function(F){return function(G,ue){for(var Ae=0,He=G;Aethis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*ue}:{fromScale:.5,toScale:1,t:1-(1-ue)*G}};var Bi=function(F,G){this.property=F,this.value=G,this.expression=function(ue,Ae){if(oh(ue))return new $f(ue,Ae);if(wh(ue)){var He=_f(ue,Ae);if(He.result==="error")throw new Error(He.value.map(function(ct){return ct.key+": "+ct.message}).join(", "));return He.value}var nt=ue;return typeof ue=="string"&&Ae.type==="color"&&(nt=Jr.parse(ue)),{kind:"constant",evaluate:function(){return nt}}}(G===void 0?F.specification.default:G,F.specification)};Bi.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Bi.prototype.possiblyEvaluate=function(F,G,ue){return this.property.possiblyEvaluate(this,F,G,ue)};var ya=function(F){this.property=F,this.value=new Bi(F,void 0)};ya.prototype.transitioned=function(F,G){return new Qi(this.property,this.value,G,x({},F.transition,this.transition),F.now)},ya.prototype.untransitioned=function(){return new Qi(this.property,this.value,null,{},0)};var Ni=function(F){this._properties=F,this._values=Object.create(F.defaultTransitionablePropertyValues)};Ni.prototype.getValue=function(F){return I(this._values[F].value.value)},Ni.prototype.setValue=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].value=new Bi(this._values[F].property,G===null?void 0:I(G))},Ni.prototype.getTransition=function(F){return I(this._values[F].transition)},Ni.prototype.setTransition=function(F,G){this._values.hasOwnProperty(F)||(this._values[F]=new ya(this._values[F].property)),this._values[F].transition=I(G)||void 0},Ni.prototype.serialize=function(){for(var F={},G=0,ue=Object.keys(this._values);Gthis.end)return this.prior=null,He;if(this.value.isDataDriven())return this.prior=null,He;if(Ae=1)return 1;var jt=Pt*Pt,hn=jt*Pt;return 4*(Pt<.5?hn:3*(Pt-jt)+hn-.75)}(ct))}return He};var Ws=function(F){this._properties=F,this._values=Object.create(F.defaultTransitioningPropertyValues)};Ws.prototype.possiblyEvaluate=function(F,G,ue){for(var Ae=new Wu(this._properties),He=0,nt=Object.keys(this._values);Hent.zoomHistory.lastIntegerZoom?{from:ue,to:Ae}:{from:He,to:Ae}},G.prototype.interpolate=function(ue){return ue},G}(Aa),Vf=function(F){this.specification=F};Vf.prototype.possiblyEvaluate=function(F,G,ue,Ae){if(F.value!==void 0){if(F.expression.kind==="constant"){var He=F.expression.evaluate(G,null,{},ue,Ae);return this._calculate(He,He,He,G)}return this._calculate(F.expression.evaluate(new uo(Math.floor(G.zoom-1),G)),F.expression.evaluate(new uo(Math.floor(G.zoom),G)),F.expression.evaluate(new uo(Math.floor(G.zoom+1),G)),G)}},Vf.prototype._calculate=function(F,G,ue,Ae){return Ae.zoom>Ae.zoomHistory.lastIntegerZoom?{from:F,to:G}:{from:ue,to:G}},Vf.prototype.interpolate=function(F){return F};var sh=function(F){this.specification=F};sh.prototype.possiblyEvaluate=function(F,G,ue,Ae){return!!F.expression.evaluate(G,null,{},ue,Ae)},sh.prototype.interpolate=function(){return!1};var _c=function(F){for(var G in this.properties=F,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],F){var ue=F[G];ue.specification.overridable&&this.overridableProperties.push(G);var Ae=this.defaultPropertyValues[G]=new Bi(ue,void 0),He=this.defaultTransitionablePropertyValues[G]=new ya(ue);this.defaultTransitioningPropertyValues[G]=He.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=Ae.possiblyEvaluate({})}};Ri("DataDrivenProperty",Aa),Ri("DataConstantProperty",Ki),Ri("CrossFadedDataDrivenProperty",Pl),Ri("CrossFadedProperty",Vf),Ri("ColorRampProperty",sh);var Xl="-transition",pl=function(F){function G(ue,Ae){if(F.call(this),this.id=ue.id,this.type=ue.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},ue.type!=="custom"&&(this.metadata=ue.metadata,this.minzoom=ue.minzoom,this.maxzoom=ue.maxzoom,ue.type!=="background"&&(this.source=ue.source,this.sourceLayer=ue["source-layer"],this.filter=ue.filter),Ae.layout&&(this._unevaluatedLayout=new nl(Ae.layout)),Ae.paint)){for(var He in this._transitionablePaint=new Ni(Ae.paint),ue.paint)this.setPaintProperty(He,ue.paint[He],{validate:!1});for(var nt in ue.layout)this.setLayoutProperty(nt,ue.layout[nt],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wu(Ae.paint)}}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},G.prototype.getLayoutProperty=function(ue){return ue==="visibility"?this.visibility:this._unevaluatedLayout.getValue(ue)},G.prototype.setLayoutProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".layout."+ue;if(this._validate(ds,nt,ue,Ae,He))return}ue!=="visibility"?this._unevaluatedLayout.setValue(ue,Ae):this.visibility=Ae},G.prototype.getPaintProperty=function(ue){return L(ue,Xl)?this._transitionablePaint.getTransition(ue.slice(0,-11)):this._transitionablePaint.getValue(ue)},G.prototype.setPaintProperty=function(ue,Ae,He){if(He===void 0&&(He={}),Ae!=null){var nt="layers."+this.id+".paint."+ue;if(this._validate(Ol,nt,ue,Ae,He))return!1}if(L(ue,Xl))return this._transitionablePaint.setTransition(ue.slice(0,-11),Ae||void 0),!1;var ct=this._transitionablePaint._values[ue],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",jt=ct.value.isDataDriven(),hn=ct.value;this._transitionablePaint.setValue(ue,Ae),this._handleSpecialPaintPropertyUpdate(ue);var mn=this._transitionablePaint._values[ue].value;return mn.isDataDriven()||jt||Pt||this._handleOverridablePaintPropertyUpdate(ue,hn,mn)},G.prototype._handleSpecialPaintPropertyUpdate=function(ue){},G.prototype._handleOverridablePaintPropertyUpdate=function(ue,Ae,He){return!1},G.prototype.isHidden=function(ue){return!!(this.minzoom&&ue=this.maxzoom)||this.visibility==="none"},G.prototype.updateTransitions=function(ue){this._transitioningPaint=this._transitionablePaint.transitioned(ue,this._transitioningPaint)},G.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},G.prototype.recalculate=function(ue,Ae){ue.getCrossfadeParameters&&(this._crossfadeParameters=ue.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(ue,void 0,Ae)),this.paint=this._transitioningPaint.possiblyEvaluate(ue,void 0,Ae)},G.prototype.serialize=function(){var ue={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(ue.layout=ue.layout||{},ue.layout.visibility=this.visibility),k(ue,function(Ae,He){return!(Ae===void 0||He==="layout"&&!Object.keys(Ae).length||He==="paint"&&!Object.keys(Ae).length)})},G.prototype._validate=function(ue,Ae,He,nt,ct){return ct===void 0&&(ct={}),(!ct||ct.validate!==!1)&&zc(this,ue.call(bu,{key:Ae,layerType:this.type,objectKey:He,value:nt,styleSpec:_t,style:{glyphs:!0,sprite:!0}}))},G.prototype.is3D=function(){return!1},G.prototype.isTileClipped=function(){return!1},G.prototype.hasOffscreenPass=function(){return!1},G.prototype.resize=function(){},G.prototype.isStateDependent=function(){for(var ue in this.paint._values){var Ae=this.paint.get(ue);if(Ae instanceof Fs&&ed(Ae.property.specification)&&(Ae.value.kind==="source"||Ae.value.kind==="composite")&&Ae.value.isStateDependent)return!0}return!1},G}(Bt),Pc={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Uf=function(F,G){this._structArray=F,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Os=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Si(F,G){G===void 0&&(G=1);var ue=0,Ae=0;return{members:F.map(function(He){var nt,ct=(nt=He.type,Pc[nt].BYTES_PER_ELEMENT),Pt=ue=lc(ue,Math.max(G,ct)),jt=He.components||1;return Ae=Math.max(Ae,ct),ue+=ct*jt,{name:He.name,type:He.type,components:jt,offset:Pt}}),size:lc(ue,Math.max(Ae,G)),alignment:G}}function lc(F,G){return Math.ceil(F/G)*G}Os.serialize=function(F,G){return F._trim(),G&&(F.isTransferred=!0,G.push(F.arrayBuffer)),{length:F.length,arrayBuffer:F.arrayBuffer}},Os.deserialize=function(F){var G=Object.create(this.prototype);return G.arrayBuffer=F.arrayBuffer,G.length=F.length,G.capacity=F.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Os.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Os.prototype.clear=function(){this.length=0},Os.prototype.resize=function(F){this.reserve(F),this.length=F},Os.prototype.reserve=function(F){if(F>this.capacity){this.capacity=Math.max(F,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Os.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var rd=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.int16[nt+0]=Ae,this.int16[nt+1]=He,ue},G}(Os);rd.prototype.bytesPerElement=4,Ri("StructArrayLayout2i4",rd);var tp=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.int16[Pt+0]=Ae,this.int16[Pt+1]=He,this.int16[Pt+2]=nt,this.int16[Pt+3]=ct,ue},G}(Os);tp.prototype.bytesPerElement=8,Ri("StructArrayLayout4i8",tp);var kt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);kt.prototype.bytesPerElement=12,Ri("StructArrayLayout2i4i12",kt);var It=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=4*ue,mn=8*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.uint8[mn+4]=nt,this.uint8[mn+5]=ct,this.uint8[mn+6]=Pt,this.uint8[mn+7]=jt,ue},G}(Os);It.prototype.bytesPerElement=8,Ri("StructArrayLayout2i4ub8",It);var Ut=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.float32[nt+0]=Ae,this.float32[nt+1]=He,ue},G}(Os);Ut.prototype.bytesPerElement=8,Ri("StructArrayLayout2f8",Ut);var J=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=this.length;return this.resize(Xn+1),this.emplace(Xn,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn){var $n=10*ue;return this.uint16[$n+0]=Ae,this.uint16[$n+1]=He,this.uint16[$n+2]=nt,this.uint16[$n+3]=ct,this.uint16[$n+4]=Pt,this.uint16[$n+5]=jt,this.uint16[$n+6]=hn,this.uint16[$n+7]=mn,this.uint16[$n+8]=Dn,this.uint16[$n+9]=Xn,ue},G}(Os);J.prototype.bytesPerElement=20,Ri("StructArrayLayout10ui20",J);var le=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n){var mr=this.length;return this.resize(mr+1),this.emplace(mr,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=12*ue;return this.int16[Or+0]=Ae,this.int16[Or+1]=He,this.int16[Or+2]=nt,this.int16[Or+3]=ct,this.uint16[Or+4]=Pt,this.uint16[Or+5]=jt,this.uint16[Or+6]=hn,this.uint16[Or+7]=mn,this.int16[Or+8]=Dn,this.int16[Or+9]=Xn,this.int16[Or+10]=$n,this.int16[Or+11]=mr,ue},G}(Os);le.prototype.bytesPerElement=24,Ri("StructArrayLayout4i4ui4i24",le);var ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.float32[ct+0]=Ae,this.float32[ct+1]=He,this.float32[ct+2]=nt,ue},G}(Os);ne.prototype.bytesPerElement=12,Ri("StructArrayLayout3f12",ne);var V=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint32[He+0]=Ae,ue},G}(Os);V.prototype.bytesPerElement=4,Ri("StructArrayLayout1ul4",V);var ie=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn){var Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,ue,Ae,He,nt,ct,Pt,jt,hn,mn)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn){var Xn=10*ue,$n=5*ue;return this.int16[Xn+0]=Ae,this.int16[Xn+1]=He,this.int16[Xn+2]=nt,this.int16[Xn+3]=ct,this.int16[Xn+4]=Pt,this.int16[Xn+5]=jt,this.uint32[$n+3]=hn,this.uint16[Xn+8]=mn,this.uint16[Xn+9]=Dn,ue},G}(Os);ie.prototype.bytesPerElement=20,Ri("StructArrayLayout6i1ul2ui20",ie);var ge=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt){var jt=this.length;return this.resize(jt+1),this.emplace(jt,ue,Ae,He,nt,ct,Pt)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt){var hn=6*ue;return this.int16[hn+0]=Ae,this.int16[hn+1]=He,this.int16[hn+2]=nt,this.int16[hn+3]=ct,this.int16[hn+4]=Pt,this.int16[hn+5]=jt,ue},G}(Os);ge.prototype.bytesPerElement=12,Ri("StructArrayLayout2i2i2i12",ge);var xe=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,ue,Ae,He,nt,ct)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt){var jt=4*ue,hn=8*ue;return this.float32[jt+0]=Ae,this.float32[jt+1]=He,this.float32[jt+2]=nt,this.int16[hn+6]=ct,this.int16[hn+7]=Pt,ue},G}(Os);xe.prototype.bytesPerElement=16,Ri("StructArrayLayout2f1f2i16",xe);var Ee=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=12*ue,jt=3*ue;return this.uint8[Pt+0]=Ae,this.uint8[Pt+1]=He,this.float32[jt+1]=nt,this.float32[jt+2]=ct,ue},G}(Os);Ee.prototype.bytesPerElement=12,Ri("StructArrayLayout2ub2f12",Ee);var Ne=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.uint16[ct+0]=Ae,this.uint16[ct+1]=He,this.uint16[ct+2]=nt,ue},G}(Os);Ne.prototype.bytesPerElement=6,Ri("StructArrayLayout3ui6",Ne);var et=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo){var mo=this.length;return this.resize(mo+1),this.emplace(mo,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo){var Io=24*ue,Qo=12*ue,Po=48*ue;return this.int16[Io+0]=Ae,this.int16[Io+1]=He,this.uint16[Io+2]=nt,this.uint16[Io+3]=ct,this.uint32[Qo+2]=Pt,this.uint32[Qo+3]=jt,this.uint32[Qo+4]=hn,this.uint16[Io+10]=mn,this.uint16[Io+11]=Dn,this.uint16[Io+12]=Xn,this.float32[Qo+7]=$n,this.float32[Qo+8]=mr,this.uint8[Po+36]=Or,this.uint8[Po+37]=Kr,this.uint8[Po+38]=Hr,this.uint32[Qo+10]=fo,this.int16[Io+22]=mo,ue},G}(Os);et.prototype.bytesPerElement=48,Ri("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",et);var rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as){var Da=this.length;return this.resize(Da+1),this.emplace(Da,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as)},G.prototype.emplace=function(ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr,Or,Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi,Zi,ra,ka,ea,as,Da){var ba=34*ue,fl=17*ue;return this.int16[ba+0]=Ae,this.int16[ba+1]=He,this.int16[ba+2]=nt,this.int16[ba+3]=ct,this.int16[ba+4]=Pt,this.int16[ba+5]=jt,this.int16[ba+6]=hn,this.int16[ba+7]=mn,this.uint16[ba+8]=Dn,this.uint16[ba+9]=Xn,this.uint16[ba+10]=$n,this.uint16[ba+11]=mr,this.uint16[ba+12]=Or,this.uint16[ba+13]=Kr,this.uint16[ba+14]=Hr,this.uint16[ba+15]=fo,this.uint16[ba+16]=mo,this.uint16[ba+17]=Io,this.uint16[ba+18]=Qo,this.uint16[ba+19]=Po,this.uint16[ba+20]=Ii,this.uint16[ba+21]=bi,this.uint16[ba+22]=Zi,this.uint32[fl+12]=ra,this.float32[fl+13]=ka,this.float32[fl+14]=ea,this.float32[fl+15]=as,this.float32[fl+16]=Da,ue},G}(Os);rt.prototype.bytesPerElement=68,Ri("StructArrayLayout8i15ui1ul4f68",rt);var dt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.float32[He+0]=Ae,ue},G}(Os);dt.prototype.bytesPerElement=4,Ri("StructArrayLayout1f4",dt);var gt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=3*ue;return this.int16[ct+0]=Ae,this.int16[ct+1]=He,this.int16[ct+2]=nt,ue},G}(Os);gt.prototype.bytesPerElement=6,Ri("StructArrayLayout3i6",gt);var Rt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He){var nt=this.length;return this.resize(nt+1),this.emplace(nt,ue,Ae,He)},G.prototype.emplace=function(ue,Ae,He,nt){var ct=2*ue,Pt=4*ue;return this.uint32[ct+0]=Ae,this.uint16[Pt+2]=He,this.uint16[Pt+3]=nt,ue},G}(Os);Rt.prototype.bytesPerElement=8,Ri("StructArrayLayout1ul2ui8",Rt);var Mt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae){var He=this.length;return this.resize(He+1),this.emplace(He,ue,Ae)},G.prototype.emplace=function(ue,Ae,He){var nt=2*ue;return this.uint16[nt+0]=Ae,this.uint16[nt+1]=He,ue},G}(Os);Mt.prototype.bytesPerElement=4,Ri("StructArrayLayout2ui4",Mt);var Xt=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue){var Ae=this.length;return this.resize(Ae+1),this.emplace(Ae,ue)},G.prototype.emplace=function(ue,Ae){var He=1*ue;return this.uint16[He+0]=Ae,ue},G}(Os);Xt.prototype.bytesPerElement=2,Ri("StructArrayLayout1ui2",Xt);var dn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},G.prototype.emplaceBack=function(ue,Ae,He,nt){var ct=this.length;return this.resize(ct+1),this.emplace(ct,ue,Ae,He,nt)},G.prototype.emplace=function(ue,Ae,He,nt,ct){var Pt=4*ue;return this.float32[Pt+0]=Ae,this.float32[Pt+1]=He,this.float32[Pt+2]=nt,this.float32[Pt+3]=ct,ue},G}(Os);dn.prototype.bytesPerElement=16,Ri("StructArrayLayout4f16",dn);var bn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return ue.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},ue.x1.get=function(){return this._structArray.int16[this._pos2+2]},ue.y1.get=function(){return this._structArray.int16[this._pos2+3]},ue.x2.get=function(){return this._structArray.int16[this._pos2+4]},ue.y2.get=function(){return this._structArray.int16[this._pos2+5]},ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(G.prototype,ue),G}(Uf);bn.prototype.size=20;var vn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new bn(this,ue)},G}(ie);Ri("CollisionBoxArray",vn);var Ln=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},ue.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},ue.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},ue.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},ue.segment.get=function(){return this._structArray.uint16[this._pos2+10]},ue.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},ue.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},ue.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},ue.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},ue.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},ue.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},ue.placedOrientation.set=function(Ae){this._structArray.uint8[this._pos1+37]=Ae},ue.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},ue.hidden.set=function(Ae){this._structArray.uint8[this._pos1+38]=Ae},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+10]=Ae},ue.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(G.prototype,ue),G}(Uf);Ln.prototype.size=48;var gn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Ln(this,ue)},G}(et);Ri("PlacedSymbolArray",gn);var Jn=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return ue.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},ue.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},ue.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},ue.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},ue.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},ue.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},ue.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},ue.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},ue.key.get=function(){return this._structArray.uint16[this._pos2+8]},ue.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},ue.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},ue.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},ue.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},ue.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},ue.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},ue.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},ue.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},ue.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},ue.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},ue.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},ue.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},ue.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},ue.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},ue.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},ue.crossTileID.set=function(Ae){this._structArray.uint32[this._pos4+12]=Ae},ue.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},ue.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},ue.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},ue.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(G.prototype,ue),G}(Uf);Jn.prototype.size=68;var pn=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Jn(this,ue)},G}(rt);Ri("SymbolInstanceArray",pn);var In=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getoffsetX=function(ue){return this.float32[1*ue+0]},G}(dt);Ri("GlyphOffsetArray",In);var Ir=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.getx=function(ue){return this.int16[3*ue+0]},G.prototype.gety=function(ue){return this.int16[3*ue+1]},G.prototype.gettileUnitDistanceFromAnchor=function(ue){return this.int16[3*ue+2]},G}(gt);Ri("SymbolLineVertexArray",Ir);var Pr=function(F){function G(){F.apply(this,arguments)}F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G;var ue={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return ue.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},ue.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},ue.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(G.prototype,ue),G}(Uf);Pr.prototype.size=8;var Gr=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.get=function(ue){return new Pr(this,ue)},G}(Rt);Ri("FeatureIndexArray",Gr);var ro=Si([{name:"a_pos",components:2,type:"Int16"}],4).members,po=function(F){F===void 0&&(F=[]),this.segments=F};function Wo(F,G){return 256*(F=O(Math.floor(F),0,255))+O(Math.floor(G),0,255)}po.prototype.prepareSegment=function(F,G,ue,Ae){var He=this.segments[this.segments.length-1];return F>po.MAX_VERTEX_ARRAY_LENGTH&&$("Max vertices per segment is "+po.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+F),(!He||He.vertexLength+F>po.MAX_VERTEX_ARRAY_LENGTH||He.sortKey!==Ae)&&(He={vertexOffset:G.length,primitiveOffset:ue.length,vertexLength:0,primitiveLength:0},Ae!==void 0&&(He.sortKey=Ae),this.segments.push(He)),He},po.prototype.get=function(){return this.segments},po.prototype.destroy=function(){for(var F=0,G=this.segments;F>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295)<<13|nt>>>19))+((5*(nt>>>16)&65535)<<16)&4294967295))+((58964+(ct>>>16)&65535)<<16);switch(hn=0,Ae){case 3:hn^=(255&G.charCodeAt(mn+2))<<16;case 2:hn^=(255&G.charCodeAt(mn+1))<<8;case 1:nt^=hn=(65535&(hn=(hn=(65535&(hn^=255&G.charCodeAt(mn)))*Pt+(((hn>>>16)*Pt&65535)<<16)&4294967295)<<15|hn>>>17))*jt+(((hn>>>16)*jt&65535)<<16)&4294967295}return nt^=G.length,nt=2246822507*(65535&(nt^=nt>>>16))+((2246822507*(nt>>>16)&65535)<<16)&4294967295,nt=3266489909*(65535&(nt^=nt>>>13))+((3266489909*(nt>>>16)&65535)<<16)&4294967295,(nt^=nt>>>16)>>>0}}),Go=S(function(F){F.exports=function(G,ue){for(var Ae,He=G.length,nt=ue^He,ct=0;He>=4;)Ae=1540483477*(65535&(Ae=255&G.charCodeAt(ct)|(255&G.charCodeAt(++ct))<<8|(255&G.charCodeAt(++ct))<<16|(255&G.charCodeAt(++ct))<<24))+((1540483477*(Ae>>>16)&65535)<<16),nt=1540483477*(65535&nt)+((1540483477*(nt>>>16)&65535)<<16)^(Ae=1540483477*(65535&(Ae^=Ae>>>24))+((1540483477*(Ae>>>16)&65535)<<16)),He-=4,++ct;switch(He){case 3:nt^=(255&G.charCodeAt(ct+2))<<16;case 2:nt^=(255&G.charCodeAt(ct+1))<<8;case 1:nt=1540483477*(65535&(nt^=255&G.charCodeAt(ct)))+((1540483477*(nt>>>16)&65535)<<16)}return nt=1540483477*(65535&(nt^=nt>>>13))+((1540483477*(nt>>>16)&65535)<<16),(nt^=nt>>>15)>>>0}}),Yo=Bo,Wi=Bo,Ho=Go;Yo.murmur3=Wi,Yo.murmur2=Ho;var jo=function(){this.ids=[],this.positions=[],this.indexed=!1};jo.prototype.add=function(F,G,ue,Ae){this.ids.push(ai(F)),this.positions.push(G,ue,Ae)},jo.prototype.getPositions=function(F){for(var G=ai(F),ue=0,Ae=this.ids.length-1;ue>1;this.ids[He]>=G?Ae=He:ue=He+1}for(var nt=[];this.ids[ue]===G;){var ct=this.positions[3*ue],Pt=this.positions[3*ue+1],jt=this.positions[3*ue+2];nt.push({index:ct,start:Pt,end:jt}),ue++}return nt},jo.serialize=function(F,G){var ue=new Float64Array(F.ids),Ae=new Uint32Array(F.positions);return Hi(ue,Ae,0,ue.length-1),G&&G.push(ue.buffer,Ae.buffer),{ids:ue,positions:Ae}},jo.deserialize=function(F){var G=new jo;return G.ids=F.ids,G.positions=F.positions,G.indexed=!0,G};var Yi=Math.pow(2,53)-1;function ai(F){var G=+F;return!isNaN(G)&&G<=Yi?G:Yo(String(F))}function Hi(F,G,ue,Ae){for(;ue>1],nt=ue-1,ct=Ae+1;;){do nt++;while(F[nt]He);if(nt>=ct)break;Ai(F,nt,ct),Ai(G,3*nt,3*ct),Ai(G,3*nt+1,3*ct+1),Ai(G,3*nt+2,3*ct+2)}ct-uect.x+1||jtct.y+1)&&$("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return ue}function Is(F,G){return{type:F.type,id:F.id,properties:F.properties,geometry:G?Jc(F):[]}}function Hc(F,G,ue,Ae,He){F.emplaceBack(2*G+(Ae+1)/2,2*ue+(He+1)/2)}var Nl=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new rd,this.indexArray=new Ne,this.segments=new po,this.programConfigurations=new ui(F.layers,F.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function lh(F,G){for(var ue=0;ue1){if(Ip(F,G))return!0;for(var Ae=0;Ae1?F.distSqr(ue):F.distSqr(ue.sub(G)._mult(He)._add(G))}function Uh(F,G){for(var ue,Ae,He,nt=!1,ct=0;ctG.y!=He.y>G.y&&G.x<(He.x-Ae.x)*(G.y-Ae.y)/(He.y-Ae.y)+Ae.x&&(nt=!nt);return nt}function ss(F,G){for(var ue=!1,Ae=0,He=F.length-1;AeG.y!=ct.y>G.y&&G.x<(ct.x-nt.x)*(G.y-nt.y)/(ct.y-nt.y)+nt.x&&(ue=!ue)}return ue}function Gl(F,G,ue){var Ae=ue[0],He=ue[2];if(F.xHe.x&&G.x>He.x||F.yHe.y&&G.y>He.y)return!1;var nt=Q(F,G,ue[0]);return nt!==Q(F,G,ue[1])||nt!==Q(F,G,ue[2])||nt!==Q(F,G,ue[3])}function Sf(F,G,ue){var Ae=G.paint.get(F).value;return Ae.kind==="constant"?Ae.value:ue.programConfigurations.get(G.id).getMaxValue(F)}function Nc(F){return Math.sqrt(F[0]*F[0]+F[1]*F[1])}function o0(F,G,ue,Ae,He){if(!G[0]&&!G[1])return F;var nt=a.convert(G)._mult(He);ue==="viewport"&&nt._rotate(-Ae);for(var ct=[],Pt=0;Pt=ua||mn<0||mn>=ua)){var Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,F.sortKey),Xn=Dn.vertexLength;Hc(this.layoutVertexArray,hn,mn,-1,-1),Hc(this.layoutVertexArray,hn,mn,1,-1),Hc(this.layoutVertexArray,hn,mn,1,1),Hc(this.layoutVertexArray,hn,mn,-1,1),this.indexArray.emplaceBack(Xn,Xn+1,Xn+2),this.indexArray.emplaceBack(Xn,Xn+3,Xn+2),Dn.vertexLength+=4,Dn.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,F,ue,{},Ae)},Ri("CircleBucket",Nl,{omit:["layers"]});var i0=new _c({"circle-sort-key":new Aa(_t.layout_circle["circle-sort-key"])}),a0={paint:new _c({"circle-radius":new Aa(_t.paint_circle["circle-radius"]),"circle-color":new Aa(_t.paint_circle["circle-color"]),"circle-blur":new Aa(_t.paint_circle["circle-blur"]),"circle-opacity":new Aa(_t.paint_circle["circle-opacity"]),"circle-translate":new Ki(_t.paint_circle["circle-translate"]),"circle-translate-anchor":new Ki(_t.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ki(_t.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ki(_t.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Aa(_t.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Aa(_t.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Aa(_t.paint_circle["circle-stroke-opacity"])}),layout:i0},wu=typeof Float32Array<"u"?Float32Array:Array;function Dp(F){return F[0]=1,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=1,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=1,F[11]=0,F[12]=0,F[13]=0,F[14]=0,F[15]=1,F}function Rm(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3],Pt=G[4],jt=G[5],hn=G[6],mn=G[7],Dn=G[8],Xn=G[9],$n=G[10],mr=G[11],Or=G[12],Kr=G[13],Hr=G[14],fo=G[15],mo=ue[0],Io=ue[1],Qo=ue[2],Po=ue[3];return F[0]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[1]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[2]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[3]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[4],Io=ue[5],Qo=ue[6],Po=ue[7],F[4]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[5]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[6]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[7]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[8],Io=ue[9],Qo=ue[10],Po=ue[11],F[8]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[9]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[10]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[11]=mo*ct+Io*mn+Qo*mr+Po*fo,mo=ue[12],Io=ue[13],Qo=ue[14],Po=ue[15],F[12]=mo*Ae+Io*Pt+Qo*Dn+Po*Or,F[13]=mo*He+Io*jt+Qo*Xn+Po*Kr,F[14]=mo*nt+Io*hn+Qo*$n+Po*Hr,F[15]=mo*ct+Io*mn+Qo*mr+Po*fo,F}Math.hypot||(Math.hypot=function(){for(var F=arguments,G=0,ue=arguments.length;ue--;)G+=F[ue]*F[ue];return Math.sqrt(G)});var nm=Rm,G0,vg=function(F,G,ue){return F[0]=G[0]-ue[0],F[1]=G[1]-ue[1],F[2]=G[2]-ue[2],F};function s0(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=G[3];return F[0]=ue[0]*Ae+ue[4]*He+ue[8]*nt+ue[12]*ct,F[1]=ue[1]*Ae+ue[5]*He+ue[9]*nt+ue[13]*ct,F[2]=ue[2]*Ae+ue[6]*He+ue[10]*nt+ue[14]*ct,F[3]=ue[3]*Ae+ue[7]*He+ue[11]*nt+ue[15]*ct,F}G0=new wu(3),wu!=Float32Array&&(G0[0]=0,G0[1]=0,G0[2]=0),function(){var F=new wu(4);wu!=Float32Array&&(F[0]=0,F[1]=0,F[2]=0,F[3]=0)}();var H1=function(F){var G=F[0],ue=F[1];return G*G+ue*ue},VO=(function(){var F=new wu(2);wu!=Float32Array&&(F[0]=0,F[1]=0)}(),function(F){function G(ue){F.call(this,ue,a0)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.createBucket=function(ue){return new Nl(ue)},G.prototype.queryRadius=function(ue){var Ae=ue;return Sf("circle-radius",this,Ae)+Sf("circle-stroke-width",this,Ae)+Nc(this.paint.get("circle-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt,hn){for(var mn=o0(ue,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),Pt.angle,jt),Dn=this.paint.get("circle-radius").evaluate(Ae,He)+this.paint.get("circle-stroke-width").evaluate(Ae,He),Xn=this.paint.get("circle-pitch-alignment")==="map",$n=Xn?mn:function(Ii,bi){return Ii.map(function(Zi){return rm(Zi,bi)})}(mn,hn),mr=Xn?Dn*jt:Dn,Or=0,Kr=nt;OrF.width||He.height>F.height||ue.x>F.width-He.width||ue.y>F.height-He.height)throw new RangeError("out of range source coordinates for image copy");if(He.width>G.width||He.height>G.height||Ae.x>G.width-He.width||Ae.y>G.height-He.height)throw new RangeError("out of range destination coordinates for image copy");for(var ct=F.data,Pt=G.data,jt=0;jt80*ue){Ae=nt=F[0],He=ct=F[1];for(var mr=ue;mrnt&&(nt=Pt),jt>ct&&(ct=jt);hn=(hn=Math.max(nt-Ae,ct-He))!==0?1/hn:0}return Im(Xn,$n,ue,Ae,He,hn),$n}function ly(F,G,ue,Ae,He){var nt,ct;if(He===pb(F,G,ue,Ae)>0)for(nt=G;nt=G;nt-=Ae)ct=zm(nt,F[nt],F[nt+1],ct);return ct&&Za(ct,ct.next)&&(Rl(ct),ct=ct.next),ct}function yg(F,G){if(!F)return F;G||(G=F);var ue,Ae=F;do if(ue=!1,Ae.steiner||!Za(Ae,Ae.next)&&cu(Ae.prev,Ae,Ae.next)!==0)Ae=Ae.next;else{if(Rl(Ae),(Ae=G=Ae.prev)===Ae.next)break;ue=!0}while(ue||Ae!==G);return G}function Im(F,G,ue,Ae,He,nt,ct){if(F){!ct&&nt&&function(mn,Dn,Xn,$n){var mr=mn;do mr.z===null&&(mr.z=Dx(mr.x,mr.y,Dn,Xn,$n)),mr.prevZ=mr.prev,mr.nextZ=mr.next,mr=mr.next;while(mr!==mn);mr.prevZ.nextZ=null,mr.prevZ=null,function(Or){var Kr,Hr,fo,mo,Io,Qo,Po,Ii,bi=1;do{for(Hr=Or,Or=null,Io=null,Qo=0;Hr;){for(Qo++,fo=Hr,Po=0,Kr=0;Kr0||Ii>0&&fo;)Po!==0&&(Ii===0||!fo||Hr.z<=fo.z)?(mo=Hr,Hr=Hr.nextZ,Po--):(mo=fo,fo=fo.nextZ,Ii--),Io?Io.nextZ=mo:Or=mo,mo.prevZ=Io,Io=mo;Hr=fo}Io.nextZ=null,bi*=2}while(Qo>1)}(mr)}(F,Ae,He,nt);for(var Pt,jt,hn=F;F.prev!==F.next;)if(Pt=F.prev,jt=F.next,nt?Sh(F,Ae,He,nt):Dm(F))G.push(Pt.i/ue),G.push(F.i/ue),G.push(jt.i/ue),Rl(F),F=jt.next,hn=jt.next;else if((F=jt)===hn){ct?ct===1?Im(F=zp(yg(F),G,ue),G,ue,Ae,He,nt,2):ct===2&&J0(F,G,ue,Ae,He,nt):Im(yg(F),G,ue,Ae,He,nt,1);break}}}function Dm(F){var G=F.prev,ue=F,Ae=F.next;if(cu(G,ue,Ae)>=0)return!1;for(var He=F.next.next;He!==F.prev;){if(W1(G.x,G.y,ue.x,ue.y,Ae.x,Ae.y,He.x,He.y)&&cu(He.prev,He,He.next)>=0)return!1;He=He.next}return!0}function Sh(F,G,ue,Ae){var He=F.prev,nt=F,ct=F.next;if(cu(He,nt,ct)>=0)return!1;for(var Pt=He.xnt.x?He.x>ct.x?He.x:ct.x:nt.x>ct.x?nt.x:ct.x,mn=He.y>nt.y?He.y>ct.y?He.y:ct.y:nt.y>ct.y?nt.y:ct.y,Dn=Dx(Pt,jt,G,ue,Ae),Xn=Dx(hn,mn,G,ue,Ae),$n=F.prevZ,mr=F.nextZ;$n&&$n.z>=Dn&&mr&&mr.z<=Xn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0||($n=$n.prevZ,mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0))return!1;mr=mr.nextZ}for(;$n&&$n.z>=Dn;){if($n!==F.prev&&$n!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,$n.x,$n.y)&&cu($n.prev,$n,$n.next)>=0)return!1;$n=$n.prevZ}for(;mr&&mr.z<=Xn;){if(mr!==F.prev&&mr!==F.next&&W1(He.x,He.y,nt.x,nt.y,ct.x,ct.y,mr.x,mr.y)&&cu(mr.prev,mr,mr.next)>=0)return!1;mr=mr.nextZ}return!0}function zp(F,G,ue){var Ae=F;do{var He=Ae.prev,nt=Ae.next.next;!Za(He,nt)&&sa(He,Ae,Ae.next,nt)&&n1(He,nt)&&n1(nt,He)&&(G.push(He.i/ue),G.push(Ae.i/ue),G.push(nt.i/ue),Rl(Ae),Rl(Ae.next),Ae=F=nt),Ae=Ae.next}while(Ae!==F);return yg(Ae)}function J0(F,G,ue,Ae,He,nt){var ct=F;do{for(var Pt=ct.next.next;Pt!==ct.prev;){if(ct.i!==Pt.i&&e1(ct,Pt)){var jt=Bx(ct,Pt);return ct=yg(ct,ct.next),jt=yg(jt,jt.next),Im(ct,G,ue,Ae,He,nt),void Im(jt,G,ue,Ae,He,nt)}Pt=Pt.next}ct=ct.next}while(ct!==F)}function F_(F,G){return F.x-G.x}function q1(F,G){if(G=function(Ae,He){var nt,ct=He,Pt=Ae.x,jt=Ae.y,hn=-1/0;do{if(jt<=ct.y&&jt>=ct.next.y&&ct.next.y!==ct.y){var mn=ct.x+(jt-ct.y)*(ct.next.x-ct.x)/(ct.next.y-ct.y);if(mn<=Pt&&mn>hn){if(hn=mn,mn===Pt){if(jt===ct.y)return ct;if(jt===ct.next.y)return ct.next}nt=ct.x=ct.x&&ct.x>=$n&&Pt!==ct.x&&W1(jtnt.x||ct.x===nt.x&&$_(nt,ct)))&&(nt=ct,Or=Dn)),ct=ct.next;while(ct!==Xn);return nt}(F,G)){var ue=Bx(G,F);yg(G,G.next),yg(ue,ue.next)}}function $_(F,G){return cu(F.prev,F,G.prev)<0&&cu(G.next,F,F.next)<0}function Dx(F,G,ue,Ae,He){return(F=1431655765&((F=858993459&((F=252645135&((F=16711935&((F=32767*(F-ue)*He)|F<<8))|F<<4))|F<<2))|F<<1))|(G=1431655765&((G=858993459&((G=252645135&((G=16711935&((G=32767*(G-Ae)*He)|G<<8))|G<<4))|G<<2))|G<<1))<<1}function UO(F){var G=F,ue=F;do(G.x=0&&(F-ct)*(Ae-Pt)-(ue-ct)*(G-Pt)>=0&&(ue-ct)*(nt-Pt)-(He-ct)*(Ae-Pt)>=0}function e1(F,G){return F.next.i!==G.i&&F.prev.i!==G.i&&!function(ue,Ae){var He=ue;do{if(He.i!==ue.i&&He.next.i!==ue.i&&He.i!==Ae.i&&He.next.i!==Ae.i&&sa(He,He.next,ue,Ae))return!0;He=He.next}while(He!==ue);return!1}(F,G)&&(n1(F,G)&&n1(G,F)&&function(ue,Ae){var He=ue,nt=!1,ct=(ue.x+Ae.x)/2,Pt=(ue.y+Ae.y)/2;do He.y>Pt!=He.next.y>Pt&&He.next.y!==He.y&&ct<(He.next.x-He.x)*(Pt-He.y)/(He.next.y-He.y)+He.x&&(nt=!nt),He=He.next;while(He!==ue);return nt}(F,G)&&(cu(F.prev,F,G.prev)||cu(F,G.prev,G))||Za(F,G)&&cu(F.prev,F,F.next)>0&&cu(G.prev,G,G.next)>0)}function cu(F,G,ue){return(G.y-F.y)*(ue.x-G.x)-(G.x-F.x)*(ue.y-G.y)}function Za(F,G){return F.x===G.x&&F.y===G.y}function sa(F,G,ue,Ae){var He=t1(cu(F,G,ue)),nt=t1(cu(F,G,Ae)),ct=t1(cu(ue,Ae,F)),Pt=t1(cu(ue,Ae,G));return He!==nt&&ct!==Pt||!(He!==0||!Bm(F,ue,G))||!(nt!==0||!Bm(F,Ae,G))||!(ct!==0||!Bm(ue,F,Ae))||!(Pt!==0||!Bm(ue,G,Ae))}function Bm(F,G,ue){return G.x<=Math.max(F.x,ue.x)&&G.x>=Math.min(F.x,ue.x)&&G.y<=Math.max(F.y,ue.y)&&G.y>=Math.min(F.y,ue.y)}function t1(F){return F>0?1:F<0?-1:0}function n1(F,G){return cu(F.prev,F,F.next)<0?cu(F,G,F.next)>=0&&cu(F,F.prev,G)>=0:cu(F,G,F.prev)<0||cu(F,F.next,G)<0}function Bx(F,G){var ue=new zx(F.i,F.x,F.y),Ae=new zx(G.i,G.x,G.y),He=F.next,nt=G.prev;return F.next=G,G.prev=F,ue.next=He,He.prev=ue,Ae.next=ue,ue.prev=Ae,nt.next=Ae,Ae.prev=nt,Ae}function zm(F,G,ue,Ae){var He=new zx(F,G,ue);return Ae?(He.next=Ae.next,He.prev=Ae,Ae.next.prev=He,Ae.next=He):(He.prev=He,He.next=He),He}function Rl(F){F.next.prev=F.prev,F.prev.next=F.next,F.prevZ&&(F.prevZ.nextZ=F.nextZ),F.nextZ&&(F.nextZ.prevZ=F.prevZ)}function zx(F,G,ue){this.i=F,this.x=G,this.y=ue,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function pb(F,G,ue,Ae){for(var He=0,nt=G,ct=ue-Ae;ntue;){if(Ae-ue>600){var nt=Ae-ue+1,ct=G-ue+1,Pt=Math.log(nt),jt=.5*Math.exp(2*Pt/3),hn=.5*Math.sqrt(Pt*jt*(nt-jt)/nt)*(ct-nt/2<0?-1:1);Lo(F,G,Math.max(ue,Math.floor(G-ct*jt/nt+hn)),Math.min(Ae,Math.floor(G+(nt-ct)*jt/nt+hn)),He)}var mn=F[G],Dn=ue,Xn=Ae;for(Nm(F,ue,G),He(F[Ae],mn)>0&&Nm(F,ue,Ae);Dn0;)Xn--}He(F[ue],mn)===0?Nm(F,ue,Xn):Nm(F,++Xn,Ae),Xn<=G&&(ue=Xn+1),G<=Xn&&(Ae=Xn-1)}}function Nm(F,G,ue){var Ae=F[G];F[G]=F[ue],F[ue]=Ae}function D4(F,G){return FG?1:0}function bg(F,G){var ue=F.length;if(ue<=1)return[F];for(var Ae,He,nt=[],ct=0;ct1)for(var jt=0;jt0&&(Ae+=F[He-1].length,ue.holes.push(Ae))}return ue},Z1.default=N_;var od=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rd,this.indexArray=new Ne,this.indexArray2=new Mt,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.segments2=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};od.prototype.populate=function(F,G,ue){this.hasPattern=c0("fill",this.layers,G);for(var Ae=this.layers[0].layout.get("fill-sort-key"),He=[],nt=0,ct=F;nt>3}if(He--,Ae===1||Ae===2)nt+=F.readSVarint(),ct+=F.readSVarint(),Ae===1&&(G&&Pt.push(G),G=[]),G.push(new a(nt,ct));else{if(Ae!==7)throw new Error("unknown command "+Ae);G&&G.push(G[0].clone())}}return G&&Pt.push(G),Pt},kh.prototype.bbox=function(){var F=this._pbf;F.pos=this._geometry;for(var G=F.readVarint()+F.pos,ue=1,Ae=0,He=0,nt=0,ct=1/0,Pt=-1/0,jt=1/0,hn=-1/0;F.pos>3}if(Ae--,ue===1||ue===2)(He+=F.readSVarint())Pt&&(Pt=He),(nt+=F.readSVarint())hn&&(hn=nt);else if(ue!==7)throw new Error("unknown command "+ue)}return[ct,jt,Pt,hn]},kh.prototype.toGeoJSON=function(F,G,ue){var Ae,He,nt=this.extent*Math.pow(2,ue),ct=this.extent*F,Pt=this.extent*G,jt=this.loadGeometry(),hn=kh.types[this.type];function mn($n){for(var mr=0;mr<$n.length;mr++){var Or=$n[mr],Kr=180-360*(Or.y+Pt)/nt;$n[mr]=[360*(Or.x+ct)/nt-180,360/Math.PI*Math.atan(Math.exp(Kr*Math.PI/180))-90]}}switch(this.type){case 1:var Dn=[];for(Ae=0;Ae>3;He=ct===1?Ae.readString():ct===2?Ae.readFloat():ct===3?Ae.readDouble():ct===4?Ae.readVarint64():ct===5?Ae.readVarint():ct===6?Ae.readSVarint():ct===7?Ae.readBoolean():null}return He}(ue))}function jO(F,G,ue){if(F===3){var Ae=new Y1(ue,ue.readVarint()+ue.pos);Ae.length&&(G[Ae.name]=Ae)}}uy.prototype.feature=function(F){if(F<0||F>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[F];var G=this._pbf.readVarint()+this._pbf.pos;return new Nx(this._pbf,G,this.extent,this._keys,this._values)};var _g={VectorTile:function(F,G){this.layers=F.readFields(jO,{},G)},VectorTileFeature:Nx,VectorTileLayer:Y1},Q_=_g.VectorTileFeature.types,wg=Math.pow(2,13);function X1(F,G,ue,Ae,He,nt,ct,Pt){F.emplaceBack(G,ue,2*Math.floor(Ae*wg)+ct,He*wg*2,nt*wg*2,Math.round(Pt))}var om=function(F){this.zoom=F.zoom,this.overscaling=F.overscaling,this.layers=F.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=F.index,this.hasPattern=!1,this.layoutVertexArray=new kt,this.indexArray=new Ne,this.programConfigurations=new ui(F.layers,F.zoom),this.segments=new po,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};function H_(F,G){return F.x===G.x&&(F.x<0||F.x>ua)||F.y===G.y&&(F.y<0||F.y>ua)}om.prototype.populate=function(F,G,ue){this.features=[],this.hasPattern=c0("fill-extrusion",this.layers,G);for(var Ae=0,He=F;Aeua})||fl.every(function(As){return As.y<0})||fl.every(function(As){return As.y>ua})))for(var Or=0,Kr=0;Kr=1){var fo=mr[Kr-1];if(!H_(Hr,fo)){Dn.vertexLength+4>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var mo=Hr.sub(fo)._perp()._unit(),Io=fo.dist(Hr);Or+Io>32768&&(Or=0),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,Hr.x,Hr.y,mo.x,mo.y,0,1,Or),Or+=Io,X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,0,Or),X1(this.layoutVertexArray,fo.x,fo.y,mo.x,mo.y,0,1,Or);var Qo=Dn.vertexLength;this.indexArray.emplaceBack(Qo,Qo+2,Qo+1),this.indexArray.emplaceBack(Qo+1,Qo+2,Qo+3),Dn.vertexLength+=4,Dn.primitiveLength+=2}}}}if(Dn.vertexLength+jt>po.MAX_VERTEX_ARRAY_LENGTH&&(Dn=this.segments.prepareSegment(jt,this.layoutVertexArray,this.indexArray)),Q_[F.type]==="Polygon"){for(var Po=[],Ii=[],bi=Dn.vertexLength,Zi=0,ra=Pt;Zi=2&&F[jt-1].equals(F[jt-2]);)jt--;for(var hn=0;hn0;if(Ii&&Hr>hn){var Zi=mn.dist($n);if(Zi>2*Dn){var ra=mn.sub(mn.sub($n)._mult(Dn/Zi)._round());this.updateDistance($n,ra),this.addCurrentVertex(ra,Or,0,0,Xn),$n=ra}}var ka=$n&&mr,ea=ka?ue:Pt?"butt":Ae;if(ka&&ea==="round"&&(QoHe&&(ea="bevel"),ea==="bevel"&&(Qo>2&&(ea="flipbevel"),Qo100)fo=Kr.mult(-1);else{var as=Qo*Or.add(Kr).mag()/Or.sub(Kr).mag();fo._perp()._mult(as*(bi?-1:1))}this.addCurrentVertex(mn,fo,0,0,Xn),this.addCurrentVertex(mn,fo.mult(-1),0,0,Xn)}else if(ea==="bevel"||ea==="fakeround"){var Da=-Math.sqrt(Qo*Qo-1),ba=bi?Da:0,fl=bi?0:Da;if($n&&this.addCurrentVertex(mn,Or,ba,fl,Xn),ea==="fakeround")for(var As=Math.round(180*Po/Math.PI/20),hc=1;hc2*Dn){var qa=mn.add(mr.sub(mn)._mult(Dn/Fc)._round());this.updateDistance(mn,qa),this.addCurrentVertex(qa,Kr,0,0,Xn),mn=qa}}}}},Xu.prototype.addCurrentVertex=function(F,G,ue,Ae,He,nt){nt===void 0&&(nt=!1);var ct=G.x+G.y*ue,Pt=G.y-G.x*ue,jt=-G.x+G.y*Ae,hn=-G.y-G.x*Ae;this.addHalfVertex(F,ct,Pt,nt,!1,ue,He),this.addHalfVertex(F,jt,hn,nt,!0,-Ae,He),this.distance>cc/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(F,G,ue,Ae,He,nt))},Xu.prototype.addHalfVertex=function(F,G,ue,Ae,He,nt,ct){var Pt=F.x,jt=F.y,hn=.5*(this.lineClips?this.scaledDistance*(cc-1):this.scaledDistance);if(this.layoutVertexArray.emplaceBack((Pt<<1)+(Ae?1:0),(jt<<1)+(He?1:0),Math.round(63*G)+128,Math.round(63*ue)+128,1+(nt===0?0:nt<0?-1:1)|(63&hn)<<2,hn>>6),this.lineClips){var mn=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(mn,this.lineClipsArray.length)}var Dn=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Dn),ct.primitiveLength++),He?this.e2=Dn:this.e1=Dn},Xu.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Xu.prototype.updateDistance=function(F,G){this.distance+=F.dist(G),this.updateScaledDistance()},Ri("LineBucket",Xu,{omit:["layers","patternFeatures"]});var Vx=new _c({"line-cap":new Ki(_t.layout_line["line-cap"]),"line-join":new Aa(_t.layout_line["line-join"]),"line-miter-limit":new Ki(_t.layout_line["line-miter-limit"]),"line-round-limit":new Ki(_t.layout_line["line-round-limit"]),"line-sort-key":new Aa(_t.layout_line["line-sort-key"])}),ZO={paint:new _c({"line-opacity":new Aa(_t.paint_line["line-opacity"]),"line-color":new Aa(_t.paint_line["line-color"]),"line-translate":new Ki(_t.paint_line["line-translate"]),"line-translate-anchor":new Ki(_t.paint_line["line-translate-anchor"]),"line-width":new Aa(_t.paint_line["line-width"]),"line-gap-width":new Aa(_t.paint_line["line-gap-width"]),"line-offset":new Aa(_t.paint_line["line-offset"]),"line-blur":new Aa(_t.paint_line["line-blur"]),"line-dasharray":new Vf(_t.paint_line["line-dasharray"]),"line-pattern":new Pl(_t.paint_line["line-pattern"]),"line-gradient":new sh(_t.paint_line["line-gradient"])}),layout:Vx},u0=function(F){function G(){F.apply(this,arguments)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.possiblyEvaluate=function(ue,Ae){return Ae=new uo(Math.floor(Ae.zoom),{now:Ae.now,fadeDuration:Ae.fadeDuration,zoomHistory:Ae.zoomHistory,transition:Ae.transition}),F.prototype.possiblyEvaluate.call(this,ue,Ae)},G.prototype.evaluate=function(ue,Ae,He,nt){return Ae=x({},Ae,{zoom:Math.floor(Ae.zoom)}),F.prototype.evaluate.call(this,ue,Ae,He,nt)},G}(Aa),vb=new u0(ZO.paint.properties["line-width"].specification);vb.useIntegerZoom=!0;var Fm=function(F){function G(ue){F.call(this,ue,ZO),this.gradientVersion=0}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype._handleSpecialPaintPropertyUpdate=function(ue){if(ue==="line-gradient"){var Ae=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=Ae._styleExpression.expression instanceof mi,this.gradientVersion=(this.gradientVersion+1)%p}},G.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},G.prototype.recalculate=function(ue,Ae){F.prototype.recalculate.call(this,ue,Ae),this.paint._values["line-floorwidth"]=vb.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,ue)},G.prototype.createBucket=function(ue){return new Xu(ue)},G.prototype.queryRadius=function(ue){var Ae=ue,He=Z_(Sf("line-width",this,Ae),Sf("line-gap-width",this,Ae)),nt=Sf("line-offset",this,Ae);return He/2+Math.abs(nt)+Nc(this.paint.get("line-translate"))},G.prototype.queryIntersectsFeature=function(ue,Ae,He,nt,ct,Pt,jt){var hn=o0(ue,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,jt),mn=jt/2*Z_(this.paint.get("line-width").evaluate(Ae,He),this.paint.get("line-gap-width").evaluate(Ae,He)),Dn=this.paint.get("line-offset").evaluate(Ae,He);return Dn&&(nt=function(Xn,$n){for(var mr=[],Or=new a(0,0),Kr=0;Kr=3){for(var Hr=0;Hr0?G+2*F:F}var q_=Si([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),uc=Si([{name:"a_projected_pos",components:3,type:"Float32"}],4),fy=(Si([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Si([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zc=(Si([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Si([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),qO=Si([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function rp(F,G,ue){return F.sections.forEach(function(Ae){Ae.text=function(He,nt,ct){var Pt=nt.layout.get("text-transform").evaluate(ct,{});return Pt==="uppercase"?He=He.toLocaleUpperCase():Pt==="lowercase"&&(He=He.toLocaleLowerCase()),wr.applyArabicShaping&&(He=wr.applyArabicShaping(He)),He}(Ae.text,G,ue)}),F}Si([{name:"triangle",components:3,type:"Uint16"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Si([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Si([{type:"Float32",name:"offsetX"}]),Si([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Og={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Oc=24,WO=function(F,G,ue,Ae,He){var nt,ct,Pt=8*He-Ae-1,jt=(1<>1,mn=-7,Dn=ue?He-1:0,Xn=ue?-1:1,$n=F[G+Dn];for(Dn+=Xn,nt=$n&(1<<-mn)-1,$n>>=-mn,mn+=Pt;mn>0;nt=256*nt+F[G+Dn],Dn+=Xn,mn-=8);for(ct=nt&(1<<-mn)-1,nt>>=-mn,mn+=Ae;mn>0;ct=256*ct+F[G+Dn],Dn+=Xn,mn-=8);if(nt===0)nt=1-hn;else{if(nt===jt)return ct?NaN:1/0*($n?-1:1);ct+=Math.pow(2,Ae),nt-=hn}return($n?-1:1)*ct*Math.pow(2,nt-Ae)},YO=function(F,G,ue,Ae,He,nt){var ct,Pt,jt,hn=8*nt-He-1,mn=(1<>1,Xn=He===23?Math.pow(2,-24)-Math.pow(2,-77):0,$n=Ae?0:nt-1,mr=Ae?1:-1,Or=G<0||G===0&&1/G<0?1:0;for(G=Math.abs(G),isNaN(G)||G===1/0?(Pt=isNaN(G)?1:0,ct=mn):(ct=Math.floor(Math.log(G)/Math.LN2),G*(jt=Math.pow(2,-ct))<1&&(ct--,jt*=2),(G+=ct+Dn>=1?Xn/jt:Xn*Math.pow(2,1-Dn))*jt>=2&&(ct++,jt/=2),ct+Dn>=mn?(Pt=0,ct=mn):ct+Dn>=1?(Pt=(G*jt-1)*Math.pow(2,He),ct+=Dn):(Pt=G*Math.pow(2,Dn-1)*Math.pow(2,He),ct=0));He>=8;F[ue+$n]=255&Pt,$n+=mr,Pt/=256,He-=8);for(ct=ct<0;F[ue+$n]=255&ct,$n+=mr,ct/=256,hn-=8);F[ue+$n-mr]|=128*Or},Ux=qc;function qc(F){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(F)?F:new Uint8Array(F||0),this.pos=0,this.type=0,this.length=this.buf.length}qc.Varint=0,qc.Fixed64=1,qc.Bytes=2,qc.Fixed32=5;var ff=4294967296,fh=1/ff,dy=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function jh(F){return F.type===qc.Bytes?F.readVarint()+F.pos:F.pos+1}function r1(F,G,ue){return ue?4294967296*G+(F>>>0):4294967296*(G>>>0)+(F>>>0)}function G1(F,G,ue){var Ae=G<=16383?1:G<=2097151?2:G<=268435455?3:Math.floor(Math.log(G)/(7*Math.LN2));ue.realloc(Ae);for(var He=ue.pos-1;He>=F;He--)ue.buf[He+Ae]=ue.buf[He]}function Sg(F,G){for(var ue=0;ue>>8,F[ue+2]=G>>>16,F[ue+3]=G>>>24}function jx(F,G){return(F[G]|F[G+1]<<8|F[G+2]<<16)+(F[G+3]<<24)}qc.prototype={destroy:function(){this.buf=null},readFields:function(F,G,ue){for(ue=ue||this.length;this.pos>3,nt=this.pos;this.type=7&Ae,F(He,G,this),this.pos===nt&&this.skip(Ae)}return G},readMessage:function(F,G){return this.readFields(F,G,this.readVarint()+this.pos)},readFixed32:function(){var F=tv(this.buf,this.pos);return this.pos+=4,F},readSFixed32:function(){var F=jx(this.buf,this.pos);return this.pos+=4,F},readFixed64:function(){var F=tv(this.buf,this.pos)+tv(this.buf,this.pos+4)*ff;return this.pos+=8,F},readSFixed64:function(){var F=tv(this.buf,this.pos)+jx(this.buf,this.pos+4)*ff;return this.pos+=8,F},readFloat:function(){var F=WO(this.buf,this.pos,!0,23,4);return this.pos+=4,F},readDouble:function(){var F=WO(this.buf,this.pos,!0,52,8);return this.pos+=8,F},readVarint:function(F){var G,ue,Ae=this.buf;return G=127&(ue=Ae[this.pos++]),ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<7,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<14,ue<128?G:(G|=(127&(ue=Ae[this.pos++]))<<21,ue<128?G:function(He,nt,ct){var Pt,jt,hn=ct.buf;if(Pt=(112&(jt=hn[ct.pos++]))>>4,jt<128||(Pt|=(127&(jt=hn[ct.pos++]))<<3,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<10,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<17,jt<128)||(Pt|=(127&(jt=hn[ct.pos++]))<<24,jt<128)||(Pt|=(1&(jt=hn[ct.pos++]))<<31,jt<128))return r1(He,Pt,nt);throw new Error("Expected varint not more than 10 bytes")}(G|=(15&(ue=Ae[this.pos]))<<28,F,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var F=this.readVarint();return F%2==1?(F+1)/-2:F/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var F=this.readVarint()+this.pos,G=this.pos;return this.pos=F,F-G>=12&&dy?function(ue,Ae,He){return dy.decode(ue.subarray(Ae,He))}(this.buf,G,F):function(ue,Ae,He){for(var nt="",ct=Ae;ct239?4:mn>223?3:mn>191?2:1;if(ct+Xn>He)break;Xn===1?mn<128&&(Dn=mn):Xn===2?(192&(Pt=ue[ct+1]))==128&&(Dn=(31&mn)<<6|63&Pt)<=127&&(Dn=null):Xn===3?(Pt=ue[ct+1],jt=ue[ct+2],(192&Pt)==128&&(192&jt)==128&&((Dn=(15&mn)<<12|(63&Pt)<<6|63&jt)<=2047||Dn>=55296&&Dn<=57343)&&(Dn=null)):Xn===4&&(Pt=ue[ct+1],jt=ue[ct+2],hn=ue[ct+3],(192&Pt)==128&&(192&jt)==128&&(192&hn)==128&&((Dn=(15&mn)<<18|(63&Pt)<<12|(63&jt)<<6|63&hn)<=65535||Dn>=1114112)&&(Dn=null)),Dn===null?(Dn=65533,Xn=1):Dn>65535&&(Dn-=65536,nt+=String.fromCharCode(Dn>>>10&1023|55296),Dn=56320|1023&Dn),nt+=String.fromCharCode(Dn),ct+=Xn}return nt}(this.buf,G,F)},readBytes:function(){var F=this.readVarint()+this.pos,G=this.buf.subarray(this.pos,F);return this.pos=F,G},readPackedVarint:function(F,G){if(this.type!==qc.Bytes)return F.push(this.readVarint(G));var ue=jh(this);for(F=F||[];this.pos127;);else if(G===qc.Bytes)this.pos=this.readVarint()+this.pos;else if(G===qc.Fixed32)this.pos+=4;else{if(G!==qc.Fixed64)throw new Error("Unimplemented type: "+G);this.pos+=8}},writeTag:function(F,G){this.writeVarint(F<<3|G)},realloc:function(F){for(var G=this.length||16;G268435455||F<0?function(G,ue){var Ae,He;if(G>=0?(Ae=G%4294967296|0,He=G/4294967296|0):(He=~(-G/4294967296),4294967295^(Ae=~(-G%4294967296))?Ae=Ae+1|0:(Ae=0,He=He+1|0)),G>=18446744073709552e3||G<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");ue.realloc(10),function(nt,ct,Pt){Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos++]=127&nt|128,nt>>>=7,Pt.buf[Pt.pos]=127&nt}(Ae,0,ue),function(nt,ct){var Pt=(7&nt)<<4;ct.buf[ct.pos++]|=Pt|((nt>>>=3)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt|((nt>>>=7)?128:0),nt&&(ct.buf[ct.pos++]=127&nt)))))}(He,ue)}(F,this):(this.realloc(4),this.buf[this.pos++]=127&F|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=127&(F>>>=7)|(F>127?128:0),F<=127||(this.buf[this.pos++]=F>>>7&127))))},writeSVarint:function(F){this.writeVarint(F<0?2*-F-1:2*F)},writeBoolean:function(F){this.writeVarint(!!F)},writeString:function(F){F=String(F),this.realloc(4*F.length),this.pos++;var G=this.pos;this.pos=function(Ae,He,nt){for(var ct,Pt,jt=0;jt55295&&ct<57344){if(!Pt){ct>56319||jt+1===He.length?(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189):Pt=ct;continue}if(ct<56320){Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=ct;continue}ct=Pt-55296<<10|ct-56320|65536,Pt=null}else Pt&&(Ae[nt++]=239,Ae[nt++]=191,Ae[nt++]=189,Pt=null);ct<128?Ae[nt++]=ct:(ct<2048?Ae[nt++]=ct>>6|192:(ct<65536?Ae[nt++]=ct>>12|224:(Ae[nt++]=ct>>18|240,Ae[nt++]=ct>>12&63|128),Ae[nt++]=ct>>6&63|128),Ae[nt++]=63&ct|128)}return nt}(this.buf,F,this.pos);var ue=this.pos-G;ue>=128&&G1(G,ue,this),this.pos=G-1,this.writeVarint(ue),this.pos+=ue},writeFloat:function(F){this.realloc(4),YO(this.buf,F,this.pos,!0,23,4),this.pos+=4},writeDouble:function(F){this.realloc(8),YO(this.buf,F,this.pos,!0,52,8),this.pos+=8},writeBytes:function(F){var G=F.length;this.writeVarint(G),this.realloc(G);for(var ue=0;ue=128&&G1(ue,Ae,this),this.pos=ue-1,this.writeVarint(Ae),this.pos+=Ae},writeMessage:function(F,G,ue){this.writeTag(F,qc.Bytes),this.writeRawMessage(G,ue)},writePackedVarint:function(F,G){G.length&&this.writeMessage(F,Sg,G)},writePackedSVarint:function(F,G){G.length&&this.writeMessage(F,hy,G)},writePackedBoolean:function(F,G){G.length&&this.writeMessage(F,kg,G)},writePackedFloat:function(F,G){G.length&&this.writeMessage(F,K1,G)},writePackedDouble:function(F,G){G.length&&this.writeMessage(F,o1,G)},writePackedFixed32:function(F,G){G.length&&this.writeMessage(F,J1,G)},writePackedSFixed32:function(F,G){G.length&&this.writeMessage(F,ev,G)},writePackedFixed64:function(F,G){G.length&&this.writeMessage(F,z4,G)},writePackedSFixed64:function(F,G){G.length&&this.writeMessage(F,W_,G)},writeBytesField:function(F,G){this.writeTag(F,qc.Bytes),this.writeBytes(G)},writeFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFixed32(G)},writeSFixed32Field:function(F,G){this.writeTag(F,qc.Fixed32),this.writeSFixed32(G)},writeFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeFixed64(G)},writeSFixed64Field:function(F,G){this.writeTag(F,qc.Fixed64),this.writeSFixed64(G)},writeVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeVarint(G)},writeSVarintField:function(F,G){this.writeTag(F,qc.Varint),this.writeSVarint(G)},writeStringField:function(F,G){this.writeTag(F,qc.Bytes),this.writeString(G)},writeFloatField:function(F,G){this.writeTag(F,qc.Fixed32),this.writeFloat(G)},writeDoubleField:function(F,G){this.writeTag(F,qc.Fixed64),this.writeDouble(G)},writeBooleanField:function(F,G){this.writeVarintField(F,!!G)}};var py=3;function Y_(F,G,ue){F===1&&ue.readMessage(X_,G)}function X_(F,G,ue){if(F===3){var Ae=ue.readMessage(G_,{}),He=Ae.id,nt=Ae.bitmap,ct=Ae.width,Pt=Ae.height,jt=Ae.left,hn=Ae.top,mn=Ae.advance;G.push({id:He,bitmap:new Oh({width:ct+2*py,height:Pt+2*py},nt),metrics:{width:ct,height:Pt,left:jt,top:hn,advance:mn}})}}function G_(F,G,ue){F===1?G.id=ue.readVarint():F===2?G.bitmap=ue.readBytes():F===3?G.width=ue.readVarint():F===4?G.height=ue.readVarint():F===5?G.left=ue.readSVarint():F===6?G.top=ue.readSVarint():F===7&&(G.advance=ue.readVarint())}var my=py;function yb(F){for(var G=0,ue=0,Ae=0,He=F;Ae=0;Xn--){var $n=ct[Xn];if(!(Dn.w>$n.w||Dn.h>$n.h)){if(Dn.x=$n.x,Dn.y=$n.y,jt=Math.max(jt,Dn.y+Dn.h),Pt=Math.max(Pt,Dn.x+Dn.w),Dn.w===$n.w&&Dn.h===$n.h){var mr=ct.pop();Xn0&&d1>Wc&&(Wc=d1)}else{var t2=As[$l.fontStack],gv=t2&&t2[Eh];if(gv&&gv.rect)hh=gv.rect,dh=gv.metrics;else{var Lu=fl[$l.fontStack],$c=Lu&&Lu[Eh];if(!$c)continue;dh=$c.metrics}mc=(Us-$l.scale)*Oc}tu?(ba.verticalizable=!0,ni.push({glyph:Eh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=Qf*$l.scale+qa):(ni.push({glyph:Eh,imageName:Qm,x:sd,y:ld+mc,vertical:tu,scale:$l.scale,fontStack:$l.fontStack,sectionIndex:Ru,metrics:dh,rect:hh}),sd+=dh.advance*$l.scale+qa)}if(ni.length!==0){var dl=sd-qa;cd=Math.max(dl,cd),mC(ni,0,ni.length-1,xl,Wc)}sd=0;var Mf=Vs*Us+Wc;fu.lineOffset=Math.max(Wc,_l),ld+=Mf,Cf=Math.max(Mf,Cf),++eu}else ld+=Vs,++eu}var du=ld-rv,Iu=ad(Fl),vv=Iu.horizontalAlign,h1=Iu.verticalAlign;(function(n2,by,p1,b0,Hm,yv,xy,x0,r2){var Mb=(by-p1)*Hm,Ad=0;Ad=yv!==xy?-x0*b0-rv:(-b0*r2+.5)*xy;for(var _y=0,wy=n2;_y=0&&Ae>=F&&Qx[this.text.charCodeAt(Ae)];Ae--)ue--;this.text=this.text.substring(F,ue),this.sectionIndex=this.sectionIndex.slice(F,ue)},Od.prototype.substring=function(F,G){var ue=new Od;return ue.text=this.text.substring(F,G),ue.sectionIndex=this.sectionIndex.slice(F,G),ue.sections=this.sections,ue},Od.prototype.toString=function(){return this.text},Od.prototype.getMaxScale=function(){var F=this;return this.sectionIndex.reduce(function(G,ue){return Math.max(G,F.sections[ue].scale)},0)},Od.prototype.addTextSection=function(F,G){this.text+=F.text,this.sections.push(ov.forText(F.scale,F.fontStack||G));for(var ue=this.sections.length-1,Ae=0;Ae=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Qx={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Th={};function f0(F,G,ue,Ae,He,nt){if(G.imageName){var ct=Ae[G.imageName];return ct?ct.displaySize[0]*G.scale*Oc/nt+He:0}var Pt=ue[G.fontStack],jt=Pt&&Pt[F];return jt?jt.metrics.advance*G.scale+He:0}function iv(F,G,ue,Ae){var He=Math.pow(F-G,2);return Ae?F=0,mn=0,Dn=0;Dn-ue/2;){if(--ct<0)return!1;Pt-=F[ct].dist(nt),nt=F[ct]}Pt+=F[ct].dist(F[ct+1]),ct++;for(var jt=[],hn=0;PtAe;)hn-=jt.shift().angleDelta;if(hn>He)return!1;ct++,Pt+=Dn.dist(Xn)}return!0}function gy(F){for(var G=0,ue=0;uehn){var mr=(hn-jt)/$n,Or=Di(Dn.x,Xn.x,mr),Kr=Di(Dn.y,Xn.y,mr),Hr=new Ag(Or,Kr,Xn.angleTo(Dn),mn);return Hr._round(),!ct||J_(F,Hr,Pt,ct,G)?Hr:void 0}jt+=$n}}function sv(F,G,ue,Ae,He,nt,ct,Pt,jt){var hn=xb(Ae,nt,ct),mn=ew(Ae,He),Dn=mn*ct,Xn=F[0].x===0||F[0].x===jt||F[0].y===0||F[0].y===jt;return G-Dn=0&&Io=0&&Qo=0&&Xn+hn<=mn){var Po=new Ag(Io,Qo,fo,mr);Po._round(),Ae&&!J_(F,Po,nt,Ae,He)||$n.push(Po)}}Dn+=Hr}return Pt||$n.length||ct||($n=xp(F,Dn/2,ue,Ae,He,nt,ct,!0,jt)),$n}function _b(F,G,ue,Ae,He){for(var nt=[],ct=0;ct=Ae&&Dn.x>=Ae||(mn.x>=Ae?mn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round():Dn.x>=Ae&&(Dn=new a(Ae,mn.y+(Dn.y-mn.y)*((Ae-mn.x)/(Dn.x-mn.x)))._round()),mn.y>=He&&Dn.y>=He||(mn.y>=He?mn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round():Dn.y>=He&&(Dn=new a(mn.x+(Dn.x-mn.x)*((He-mn.y)/(Dn.y-mn.y)),He)._round()),jt&&mn.equals(jt[jt.length-1])||(jt=[mn],nt.push(jt)),jt.push(Dn)))))}return nt}var Ou=bp;function Wx(F,G,ue,Ae){var He=[],nt=F.image,ct=nt.pixelRatio,Pt=nt.paddedRect.w-2*Ou,jt=nt.paddedRect.h-2*Ou,hn=F.right-F.left,mn=F.bottom-F.top,Dn=nt.stretchX||[[0,Pt]],Xn=nt.stretchY||[[0,jt]],$n=function(Vs,Fl){return Vs+Fl[1]-Fl[0]},mr=Dn.reduce($n,0),Or=Xn.reduce($n,0),Kr=Pt-mr,Hr=jt-Or,fo=0,mo=mr,Io=0,Qo=Or,Po=0,Ii=Kr,bi=0,Zi=Hr;if(nt.content&&Ae){var ra=nt.content;fo=Sd(Dn,0,ra[0]),Io=Sd(Xn,0,ra[1]),mo=Sd(Dn,ra[0],ra[2]),Qo=Sd(Xn,ra[1],ra[3]),Po=ra[0]-fo,bi=ra[1]-Io,Ii=ra[2]-ra[0]-mo,Zi=ra[3]-ra[1]-Qo}var ka=function(Vs,Fl,kl,Fc){var qa=wb(Vs.stretch-fo,mo,hn,F.left),Sc=am(Vs.fixed-Po,Ii,Vs.stretch,mr),pc=wb(Fl.stretch-Io,Qo,mn,F.top),sd=am(Fl.fixed-bi,Zi,Fl.stretch,Or),ld=wb(kl.stretch-fo,mo,hn,F.left),cd=am(kl.fixed-Po,Ii,kl.stretch,mr),Cf=wb(Fc.stretch-Io,Qo,mn,F.top),xl=am(Fc.fixed-bi,Zi,Fc.stretch,Or),eu=new a(qa,pc),Td=new a(ld,pc),Af=new a(ld,Cf),jf=new a(qa,Cf),Us=new a(Sc/ct,sd/ct),_l=new a(cd/ct,xl/ct),fu=G*Math.PI/180;if(fu){var ni=Math.sin(fu),Wc=Math.cos(fu),Yc=[Wc,-ni,ni,Wc];eu._matMult(Yc),Td._matMult(Yc),jf._matMult(Yc),Af._matMult(Yc)}var $l=Vs.stretch+Vs.fixed,Ru=kl.stretch+kl.fixed,Eh=Fl.stretch+Fl.fixed,mc=Fc.stretch+Fc.fixed;return{tl:eu,tr:Td,bl:jf,br:Af,tex:{x:nt.paddedRect.x+Ou+$l,y:nt.paddedRect.y+Ou+Eh,w:Ru-$l,h:mc-Eh},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Us,pixelOffsetBR:_l,minFontScaleX:Ii/ct/hn,minFontScaleY:Zi/ct/mn,isSDF:ue}};if(Ae&&(nt.stretchX||nt.stretchY))for(var ea=XO(Dn,Kr,mr),as=XO(Xn,Hr,Or),Da=0;Da0&&($n=Math.max(10,$n),this.circleDiameter=$n)}else{var mr=nt.top*ct-Pt,Or=nt.bottom*ct+Pt,Kr=nt.left*ct-Pt,Hr=nt.right*ct+Pt,fo=nt.collisionPadding;if(fo&&(Kr-=fo[0]*ct,mr-=fo[1]*ct,Hr+=fo[2]*ct,Or+=fo[3]*ct),hn){var mo=new a(Kr,mr),Io=new a(Hr,mr),Qo=new a(Kr,Or),Po=new a(Hr,Or),Ii=hn*Math.PI/180;mo._rotate(Ii),Io._rotate(Ii),Qo._rotate(Ii),Po._rotate(Ii),Kr=Math.min(mo.x,Io.x,Qo.x,Po.x),Hr=Math.max(mo.x,Io.x,Qo.x,Po.x),mr=Math.min(mo.y,Io.y,Qo.y,Po.y),Or=Math.max(mo.y,Io.y,Qo.y,Po.y)}F.emplaceBack(G.x,G.y,Kr,mr,Hr,Or,ue,Ae,He)}this.boxEndIndex=F.length},_p=function(F,G){if(F===void 0&&(F=[]),G===void 0&&(G=op),this.data=F,this.length=this.data.length,this.compare=G,this.length>0)for(var ue=(this.length>>1)-1;ue>=0;ue--)this._down(ue)};function op(F,G){return FG?1:0}function GO(F,G,ue){G===void 0&&(G=1),ue===void 0&&(ue=!1);for(var Ae=1/0,He=1/0,nt=-1/0,ct=-1/0,Pt=F[0],jt=0;jtnt)&&(nt=hn.x),(!jt||hn.y>ct)&&(ct=hn.y)}var mn=nt-Ae,Dn=ct-He,Xn=Math.min(mn,Dn),$n=Xn/2,mr=new _p([],Ob);if(Xn===0)return new a(Ae,He);for(var Or=Ae;OrHr.d||!Hr.d)&&(Hr=mo,ue&&console.log("found best %d after %d probes",Math.round(1e4*mo.d)/1e4,fo)),mo.max-Hr.d<=G||($n=mo.h/2,mr.push(new s1(mo.p.x-$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y-$n,$n,F)),mr.push(new s1(mo.p.x-$n,mo.p.y+$n,$n,F)),mr.push(new s1(mo.p.x+$n,mo.p.y+$n,$n,F)),fo+=4)}return ue&&(console.log("num probes: "+fo),console.log("best distance: "+Hr.d)),Hr.p}function Ob(F,G){return G.max-F.max}function s1(F,G,ue,Ae){this.p=new a(F,G),this.h=ue,this.d=function(He,nt){for(var ct=!1,Pt=1/0,jt=0;jtHe.y!=mr.y>He.y&&He.x<(mr.x-$n.x)*(He.y-$n.y)/(mr.y-$n.y)+$n.x&&(ct=!ct),Pt=Math.min(Pt,Pu(He,$n,mr))}return(ct?1:-1)*Math.sqrt(Pt)}(this.p,Ae),this.max=this.d+this.h*Math.SQRT2}_p.prototype.push=function(F){this.data.push(F),this.length++,this._up(this.length-1)},_p.prototype.pop=function(){if(this.length!==0){var F=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),F}},_p.prototype.peek=function(){return this.data[0]},_p.prototype._up=function(F){for(var G=this.data,ue=this.compare,Ae=G[F];F>0;){var He=F-1>>1,nt=G[He];if(ue(Ae,nt)>=0)break;G[F]=nt,F=He}G[F]=Ae},_p.prototype._down=function(F){for(var G=this.data,ue=this.compare,Ae=this.length>>1,He=G[F];F=0)break;G[F]=ct,F=nt}G[F]=He};var Um=7,h0=Number.POSITIVE_INFINITY;function p0(F,G){return G[1]!==h0?function(ue,Ae,He){var nt=0,ct=0;switch(Ae=Math.abs(Ae),He=Math.abs(He),ue){case"top-right":case"top-left":case"top":ct=He-Um;break;case"bottom-right":case"bottom-left":case"bottom":ct=-He+Um}switch(ue){case"top-right":case"bottom-right":case"right":nt=-Ae;break;case"top-left":case"bottom-left":case"left":nt=Ae}return[nt,ct]}(F,G[0],G[1]):function(ue,Ae){var He=0,nt=0;Ae<0&&(Ae=0);var ct=Ae/Math.sqrt(2);switch(ue){case"top-right":case"top-left":nt=ct-Um;break;case"bottom-right":case"bottom-left":nt=-ct+Um;break;case"bottom":nt=-Ae+Um;break;case"top":nt=Ae-Um}switch(ue){case"top-right":case"bottom-right":He=-ct;break;case"top-left":case"bottom-left":He=ct;break;case"left":He=Ae;break;case"right":He=-Ae}return[He,nt]}(F,G[0])}function Ss(F){switch(F){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var kd=255,Ah=kd*$m;function Sb(F,G,ue,Ae,He,nt,ct,Pt,jt,hn,mn,Dn,Xn,$n,mr){var Or=function(Io,Qo,Po,Ii,bi,Zi,ra,ka){for(var ea=Ii.layout.get("text-rotate").evaluate(Zi,{})*Math.PI/180,as=[],Da=0,ba=Qo.positionedLines;DaAh&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'):Kr.kind==="composite"&&((Hr=[$m*$n.compositeTextSizes[0].evaluate(ct,{},mr),$m*$n.compositeTextSizes[1].evaluate(ct,{},mr)])[0]>Ah||Hr[1]>Ah)&&$(F.layerIds[0]+': Value for "text-size" is >= '+kd+'. Reduce your "text-size".'),F.addSymbols(F.text,Or,Hr,Pt,nt,ct,hn,G,jt.lineStartIndex,jt.lineLength,Xn,mr);for(var fo=0,mo=mn;fo=0;ct--)if(Ae.dist(nt[ct])0)&&(nt.value.kind!=="constant"||nt.value.value.length>0),hn=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,mn=He.get("symbol-sort-key");if(this.features=[],jt||hn){for(var Dn=G.iconDependencies,Xn=G.glyphDependencies,$n=G.availableImages,mr=new uo(this.zoom),Or=0,Kr=F;Or=0;for(var As=0,hc=bi.sections;As=0;Pt--)nt[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:He},Pt>0&&(He+=G[Pt-1].dist(G[Pt]));for(var jt=0;jt0},dc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},dc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},dc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},dc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},dc.prototype.addIndicesForPlacedSymbol=function(F,G){for(var ue=F.placedSymbolArray.get(G),Ae=ue.vertexStartIndex+4*ue.numGlyphs,He=ue.vertexStartIndex;He1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(F),this.sortedAngle=F,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var ue=0,Ae=this.symbolInstanceIndexes;ue=0&&jt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),nt.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,nt.verticalPlacedTextSymbolIndex),nt.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.placedIconSymbolIndex),nt.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,nt.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Ri("SymbolBucket",dc,{omit:["layers","collisionBoxArray","features","compareText"]}),dc.MAX_GLYPHS=65535,dc.addDynamicAttributes=lv;var uv=new _c({"symbol-placement":new Ki(_t.layout_symbol["symbol-placement"]),"symbol-spacing":new Ki(_t.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ki(_t.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Aa(_t.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ki(_t.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ki(_t.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ki(_t.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ki(_t.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ki(_t.layout_symbol["icon-rotation-alignment"]),"icon-size":new Aa(_t.layout_symbol["icon-size"]),"icon-text-fit":new Ki(_t.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ki(_t.layout_symbol["icon-text-fit-padding"]),"icon-image":new Aa(_t.layout_symbol["icon-image"]),"icon-rotate":new Aa(_t.layout_symbol["icon-rotate"]),"icon-padding":new Ki(_t.layout_symbol["icon-padding"]),"icon-keep-upright":new Ki(_t.layout_symbol["icon-keep-upright"]),"icon-offset":new Aa(_t.layout_symbol["icon-offset"]),"icon-anchor":new Aa(_t.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ki(_t.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ki(_t.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ki(_t.layout_symbol["text-rotation-alignment"]),"text-field":new Aa(_t.layout_symbol["text-field"]),"text-font":new Aa(_t.layout_symbol["text-font"]),"text-size":new Aa(_t.layout_symbol["text-size"]),"text-max-width":new Aa(_t.layout_symbol["text-max-width"]),"text-line-height":new Ki(_t.layout_symbol["text-line-height"]),"text-letter-spacing":new Aa(_t.layout_symbol["text-letter-spacing"]),"text-justify":new Aa(_t.layout_symbol["text-justify"]),"text-radial-offset":new Aa(_t.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ki(_t.layout_symbol["text-variable-anchor"]),"text-anchor":new Aa(_t.layout_symbol["text-anchor"]),"text-max-angle":new Ki(_t.layout_symbol["text-max-angle"]),"text-writing-mode":new Ki(_t.layout_symbol["text-writing-mode"]),"text-rotate":new Aa(_t.layout_symbol["text-rotate"]),"text-padding":new Ki(_t.layout_symbol["text-padding"]),"text-keep-upright":new Ki(_t.layout_symbol["text-keep-upright"]),"text-transform":new Aa(_t.layout_symbol["text-transform"]),"text-offset":new Aa(_t.layout_symbol["text-offset"]),"text-allow-overlap":new Ki(_t.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ki(_t.layout_symbol["text-ignore-placement"]),"text-optional":new Ki(_t.layout_symbol["text-optional"])}),Mh={paint:new _c({"icon-opacity":new Aa(_t.paint_symbol["icon-opacity"]),"icon-color":new Aa(_t.paint_symbol["icon-color"]),"icon-halo-color":new Aa(_t.paint_symbol["icon-halo-color"]),"icon-halo-width":new Aa(_t.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Aa(_t.paint_symbol["icon-halo-blur"]),"icon-translate":new Ki(_t.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ki(_t.paint_symbol["icon-translate-anchor"]),"text-opacity":new Aa(_t.paint_symbol["text-opacity"]),"text-color":new Aa(_t.paint_symbol["text-color"],{runtimeType:fr,getOverride:function(F){return F.textColor},hasOverride:function(F){return!!F.textColor}}),"text-halo-color":new Aa(_t.paint_symbol["text-halo-color"]),"text-halo-width":new Aa(_t.paint_symbol["text-halo-width"]),"text-halo-blur":new Aa(_t.paint_symbol["text-halo-blur"]),"text-translate":new Ki(_t.paint_symbol["text-translate"]),"text-translate-anchor":new Ki(_t.paint_symbol["text-translate-anchor"])}),layout:uv},Fp=function(F){this.type=F.property.overrides?F.property.overrides.runtimeType:_n,this.defaultValue=F};Fp.prototype.evaluate=function(F){if(F.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(F.formattedSection))return G.getOverride(F.formattedSection)}return F.feature&&F.featureState?this.defaultValue.evaluate(F.feature,F.featureState):this.defaultValue.property.specification.default},Fp.prototype.eachChild=function(F){this.defaultValue.isConstant()||F(this.defaultValue.value._styleExpression.expression)},Fp.prototype.outputDefined=function(){return!1},Fp.prototype.serialize=function(){return null},Ri("FormatSectionOverride",Fp,{omit:["defaultValue"]});var tw=function(F){function G(ue){F.call(this,ue,Mh)}return F&&(G.__proto__=F),G.prototype=Object.create(F&&F.prototype),G.prototype.constructor=G,G.prototype.recalculate=function(ue,Ae){if(F.prototype.recalculate.call(this,ue,Ae),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var He=this.layout.get("text-writing-mode");if(He){for(var nt=[],ct=0,Pt=He;ct",targetMapId:Ae,sourceMapId:nt.mapId})}}},hv.prototype.receive=function(F){var G=F.data,ue=G.id;if(ue&&(!G.targetMapId||this.mapId===G.targetMapId))if(G.type===""){delete this.tasks[ue];var Ae=this.cancelCallbacks[ue];delete this.cancelCallbacks[ue],Ae&&Ae()}else U()||G.mustQueue?(this.tasks[ue]=G,this.taskQueue.push(ue),this.invoker.trigger()):this.processTask(ue,G)},hv.prototype.process=function(){if(this.taskQueue.length){var F=this.taskQueue.shift(),G=this.tasks[F];delete this.tasks[F],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(F,G)}},hv.prototype.processTask=function(F,G){var ue=this;if(G.type===""){var Ae=this.callbacks[F];delete this.callbacks[F],Ae&&(G.error?Ae(Kc(G.error)):Ae(null,Kc(G.data)))}else{var He=!1,nt=Z(this.globalScope)?void 0:[],ct=G.hasCallback?function(mn,Dn){He=!0,delete ue.cancelCallbacks[F],ue.target.postMessage({id:F,type:"",sourceMapId:ue.mapId,error:mn?xc(mn):null,data:xc(Dn,nt)},nt)}:function(mn){He=!0},Pt=null,jt=Kc(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,jt,ct);else if(this.parent.getWorkerSource){var hn=G.type.split(".");Pt=this.parent.getWorkerSource(G.sourceMapId,hn[0],jt.source)[hn[1]](jt,ct)}else ct(new Error("Could not find function "+G.type));!He&&Pt&&Pt.cancel&&(this.cancelCallbacks[F]=Pt.cancel)}},hv.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var df=function(F,G){F&&(G?this.setSouthWest(F).setNorthEast(G):F.length===4?this.setSouthWest([F[0],F[1]]).setNorthEast([F[2],F[3]]):this.setSouthWest(F[0]).setNorthEast(F[1]))};df.prototype.setNorthEast=function(F){return this._ne=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.setSouthWest=function(F){return this._sw=F instanceof uu?new uu(F.lng,F.lat):uu.convert(F),this},df.prototype.extend=function(F){var G,ue,Ae=this._sw,He=this._ne;if(F instanceof uu)G=F,ue=F;else{if(!(F instanceof df)){if(Array.isArray(F)){if(F.length===4||F.every(Array.isArray)){var nt=F;return this.extend(df.convert(nt))}var ct=F;return this.extend(uu.convert(ct))}return this}if(G=F._sw,ue=F._ne,!G||!ue)return this}return Ae||He?(Ae.lng=Math.min(G.lng,Ae.lng),Ae.lat=Math.min(G.lat,Ae.lat),He.lng=Math.max(ue.lng,He.lng),He.lat=Math.max(ue.lat,He.lat)):(this._sw=new uu(G.lng,G.lat),this._ne=new uu(ue.lng,ue.lat)),this},df.prototype.getCenter=function(){return new uu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},df.prototype.getSouthWest=function(){return this._sw},df.prototype.getNorthEast=function(){return this._ne},df.prototype.getNorthWest=function(){return new uu(this.getWest(),this.getNorth())},df.prototype.getSouthEast=function(){return new uu(this.getEast(),this.getSouth())},df.prototype.getWest=function(){return this._sw.lng},df.prototype.getSouth=function(){return this._sw.lat},df.prototype.getEast=function(){return this._ne.lng},df.prototype.getNorth=function(){return this._ne.lat},df.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},df.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},df.prototype.isEmpty=function(){return!(this._sw&&this._ne)},df.prototype.contains=function(F){var G=uu.convert(F),ue=G.lng,Ae=G.lat,He=this._sw.lat<=Ae&&Ae<=this._ne.lat,nt=this._sw.lng<=ue&&ue<=this._ne.lng;return this._sw.lng>this._ne.lng&&(nt=this._sw.lng>=ue&&ue>=this._ne.lng),He&&nt},df.convert=function(F){return!F||F instanceof df?F:new df(F)};var Tb=63710088e-1,uu=function(F,G){if(isNaN(F)||isNaN(G))throw new Error("Invalid LngLat object: ("+F+", "+G+")");if(this.lng=+F,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};uu.prototype.wrap=function(){return new uu(C(this.lng,-180,180),this.lat)},uu.prototype.toArray=function(){return[this.lng,this.lat]},uu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},uu.prototype.distanceTo=function(F){var G=Math.PI/180,ue=this.lat*G,Ae=F.lat*G,He=Math.sin(ue)*Math.sin(Ae)+Math.cos(ue)*Math.cos(Ae)*Math.cos((F.lng-this.lng)*G);return Tb*Math.acos(Math.min(He,1))},uu.prototype.toBounds=function(F){F===void 0&&(F=0);var G=360*F/40075017,ue=G/Math.cos(Math.PI/180*this.lat);return new df(new uu(this.lng-ue,this.lat-G),new uu(this.lng+ue,this.lat+G))},uu.convert=function(F){if(F instanceof uu)return F;if(Array.isArray(F)&&(F.length===2||F.length===3))return new uu(Number(F[0]),Number(F[1]));if(!Array.isArray(F)&&typeof F=="object"&&F!==null)return new uu(Number("lng"in F?F.lng:F.lon),Number(F.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Cb=2*Math.PI*Tb;function Kx(F){return Cb*Math.cos(F*Math.PI/180)}function Jx(F){return(180+F)/360}function iw(F){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+F*Math.PI/360)))/360}function e3(F,G){return F/Kx(G)}function lm(F){var G=180-360*F;return 360/Math.PI*Math.atan(Math.exp(G*Math.PI/180))-90}var u1=function(F,G,ue){ue===void 0&&(ue=0),this.x=+F,this.y=+G,this.z=+ue};u1.fromLngLat=function(F,G){G===void 0&&(G=0);var ue=uu.convert(F);return new u1(Jx(ue.lng),iw(ue.lat),e3(G,ue.lat))},u1.prototype.toLngLat=function(){return new uu(360*this.x-180,lm(this.y))},u1.prototype.toAltitude=function(){return F=this.z,G=this.y,F*Kx(lm(G));var F,G},u1.prototype.meterInMercatorCoordinateUnits=function(){return 1/Cb*(F=lm(this.y),1/Math.cos(F*Math.PI/180));var F};var cm=function(F,G,ue){this.z=F,this.x=G,this.y=ue,this.key=f1(0,F,F,G,ue)};cm.prototype.equals=function(F){return this.z===F.z&&this.x===F.x&&this.y===F.y},cm.prototype.url=function(F,G){var ue,Ae,He,nt,ct,Pt=(ue=this.x,Ae=this.y,He=this.z,nt=Gx(256*ue,256*(Ae=Math.pow(2,He)-Ae-1),He),ct=Gx(256*(ue+1),256*(Ae+1),He),nt[0]+","+nt[1]+","+ct[0]+","+ct[1]),jt=function(hn,mn,Dn){for(var Xn,$n="",mr=hn;mr>0;mr--)$n+=(mn&(Xn=1<this.canonical.z?new hf(F,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new hf(F,this.wrap,F,this.canonical.x>>G,this.canonical.y>>G)},hf.prototype.calculateScaledKey=function(F,G){var ue=this.canonical.z-F;return F>this.canonical.z?f1(this.wrap*+G,F,this.canonical.z,this.canonical.x,this.canonical.y):f1(this.wrap*+G,F,F,this.canonical.x>>ue,this.canonical.y>>ue)},hf.prototype.isChildOf=function(F){if(F.wrap!==this.wrap)return!1;var G=this.canonical.z-F.canonical.z;return F.overscaledZ===0||F.overscaledZ>G&&F.canonical.y===this.canonical.y>>G},hf.prototype.children=function(F){if(this.overscaledZ>=F)return[new hf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,ue=2*this.canonical.x,Ae=2*this.canonical.y;return[new hf(G,this.wrap,G,ue,Ae),new hf(G,this.wrap,G,ue+1,Ae),new hf(G,this.wrap,G,ue,Ae+1),new hf(G,this.wrap,G,ue+1,Ae+1)]},hf.prototype.isLessThan=function(F){return this.wrapF.wrap)&&(this.overscaledZF.overscaledZ)&&(this.canonical.xF.canonical.x)&&this.canonical.y=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(F+1)},jm.prototype._unpackMapbox=function(F,G,ue){return(256*F*256+256*G+ue)/10-1e4},jm.prototype._unpackTerrarium=function(F,G,ue){return 256*F+G+ue/256-32768},jm.prototype.getPixels=function(){return new kf({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},jm.prototype.backfillBorder=function(F,G,ue){if(this.dim!==F.dim)throw new Error("dem dimension mismatch");var Ae=G*this.dim,He=G*this.dim+this.dim,nt=ue*this.dim,ct=ue*this.dim+this.dim;switch(G){case-1:Ae=He-1;break;case 1:He=Ae+1}switch(ue){case-1:nt=ct-1;break;case 1:ct=nt+1}for(var Pt=-G*this.dim,jt=-ue*this.dim,hn=nt;hn=0&&mn[3]>=0&&Pt.insert(ct,mn[0],mn[1],mn[2],mn[3])}},m0.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _g.VectorTile(new Ux(this.rawTileData)).layers,this.sourceLayerCoder=new mv(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},m0.prototype.query=function(F,G,ue,Ae){var He=this;this.loadVTLayers();for(var nt=F.params||{},ct=ua/F.tileSize/F.scale,Pt=xd(nt.filter),jt=F.queryGeometry,hn=F.queryPadding*ct,mn=v0(jt),Dn=this.grid.query(mn.minX-hn,mn.minY-hn,mn.maxX+hn,mn.maxY+hn),Xn=v0(F.cameraQueryGeometry),$n=0,mr=this.grid3D.query(Xn.minX-hn,Xn.minY-hn,Xn.maxX+hn,Xn.maxY+hn,function(Io,Qo,Po,Ii){return function(bi,Zi,ra,ka,ea){for(var as=0,Da=bi;as=ba.x&&ea>=ba.y)return!0}var fl=[new a(Zi,ra),new a(Zi,ea),new a(ka,ea),new a(ka,ra)];if(bi.length>2){for(var As=0,hc=fl;As=0)return!0;return!1}(nt,Dn)){var Xn=this.sourceLayerCoder.decode(ue),$n=this.vtLayers[Xn].feature(Ae);if(He.needGeometry){var mr=Is($n,!0);if(!He.filter(new uo(this.tileID.overscaledZ),mr,this.tileID.canonical))return}else if(!He.filter(new uo(this.tileID.overscaledZ),$n))return;for(var Or=this.getId($n,Xn),Kr=0;KrAe)He=!1;else if(G)if(this.expirationTimeot&&(F.getActor().send("enforceCacheSizeLimit",tt),Yt=0)},i.clamp=O,i.clearTileCache=function(F){var G=h.caches.delete(je);F&&G.catch(F).then(function(){return F()})},i.clipLine=_b,i.clone=function(F){var G=new wu(16);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G[3]=F[3],G[4]=F[4],G[5]=F[5],G[6]=F[6],G[7]=F[7],G[8]=F[8],G[9]=F[9],G[10]=F[10],G[11]=F[11],G[12]=F[12],G[13]=F[13],G[14]=F[14],G[15]=F[15],G},i.clone$1=I,i.clone$2=function(F){var G=new wu(3);return G[0]=F[0],G[1]=F[1],G[2]=F[2],G},i.collisionCircleLayout=qO,i.config=ce,i.create=function(){var F=new wu(16);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[11]=0,F[12]=0,F[13]=0,F[14]=0),F[0]=1,F[5]=1,F[10]=1,F[15]=1,F},i.create$1=function(){var F=new wu(9);return wu!=Float32Array&&(F[1]=0,F[2]=0,F[3]=0,F[5]=0,F[6]=0,F[7]=0),F[0]=1,F[4]=1,F[8]=1,F},i.create$2=function(){var F=new wu(4);return wu!=Float32Array&&(F[1]=0,F[2]=0),F[0]=1,F[3]=1,F},i.createCommonjsModule=S,i.createExpression=zu,i.createLayout=Si,i.createStyleLayer=function(F){return F.type==="custom"?new rw(F):new JO[F.type](F)},i.cross=function(F,G,ue){var Ae=G[0],He=G[1],nt=G[2],ct=ue[0],Pt=ue[1],jt=ue[2];return F[0]=He*jt-nt*Pt,F[1]=nt*ct-Ae*jt,F[2]=Ae*Pt-He*ct,F},i.deepEqual=function F(G,ue){if(Array.isArray(G)){if(!Array.isArray(ue)||G.length!==ue.length)return!1;for(var Ae=0;Ae0&&(nt=1/Math.sqrt(nt)),F[0]=G[0]*nt,F[1]=G[1]*nt,F[2]=G[2]*nt,F},i.number=Di,i.offscreenCanvasSupported=ln,i.ortho=function(F,G,ue,Ae,He,nt,ct){var Pt=1/(G-ue),jt=1/(Ae-He),hn=1/(nt-ct);return F[0]=-2*Pt,F[1]=0,F[2]=0,F[3]=0,F[4]=0,F[5]=-2*jt,F[6]=0,F[7]=0,F[8]=0,F[9]=0,F[10]=2*hn,F[11]=0,F[12]=(G+ue)*Pt,F[13]=(He+Ae)*jt,F[14]=(ct+nt)*hn,F[15]=1,F},i.parseGlyphPBF=function(F){return new Ux(F).readFields(Y_,[])},i.pbf=Ux,i.performSymbolLayout=function(F,G,ue,Ae,He,nt,ct){F.createArrays();var Pt=512*F.overscaling;F.tilePixelRatio=ua/Pt,F.compareText={},F.iconsNeedLinear=!1;var jt=F.layers[0].layout,hn=F.layers[0]._unevaluatedLayout._values,mn={};if(F.textSizeData.kind==="composite"){var Dn=F.textSizeData,Xn=Dn.minZoom,$n=Dn.maxZoom;mn.compositeTextSizes=[hn["text-size"].possiblyEvaluate(new uo(Xn),ct),hn["text-size"].possiblyEvaluate(new uo($n),ct)]}if(F.iconSizeData.kind==="composite"){var mr=F.iconSizeData,Or=mr.minZoom,Kr=mr.maxZoom;mn.compositeIconSizes=[hn["icon-size"].possiblyEvaluate(new uo(Or),ct),hn["icon-size"].possiblyEvaluate(new uo(Kr),ct)]}mn.layoutTextSize=hn["text-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.layoutIconSize=hn["icon-size"].possiblyEvaluate(new uo(F.zoom+1),ct),mn.textMaxSize=hn["text-size"].possiblyEvaluate(new uo(18));for(var Hr=jt.get("text-line-height")*Oc,fo=jt.get("text-rotation-alignment")==="map"&&jt.get("symbol-placement")!=="point",mo=jt.get("text-keep-upright"),Io=jt.get("text-size"),Qo=function(){var bi=Ii[Po],Zi=jt.get("text-font").evaluate(bi,{},ct).join(","),ra=Io.evaluate(bi,{},ct),ka=mn.layoutTextSize.evaluate(bi,{},ct),ea=mn.layoutIconSize.evaluate(bi,{},ct),as={horizontal:{},vertical:void 0},Da=bi.text,ba=[0,0];if(Da){var fl=Da.toString(),As=jt.get("text-letter-spacing").evaluate(bi,{},ct)*Oc,hc=function(Us){for(var _l=0,fu=Us;_l=ua||O0.y<0||O0.y>=ua||function(hu,ip,$4,qm,lw,cw,o2,$p,Rb,Lb,Sy,bv,uw,fw,ud,i2,a2,s2,Ib,n3,Ph,Db,l2,fm,r3){var xv,g1,_v,wv,ky,Ov=hu.addToLineVertexArray(ip,$4),dw=0,o3=0,Bb=0,hw=0,v1=-1,c2=-1,Wm={},pw=Yo(""),mw=0,wp=0;if($p._unevaluatedLayout.getValue("text-radial-offset")===void 0?(mw=(xv=$p.layout.get("text-offset").evaluate(Ph,{},fm).map(function(y1){return y1*Oc}))[0],wp=xv[1]):(mw=$p.layout.get("text-radial-offset").evaluate(Ph,{},fm)*Oc,wp=h0),hu.allowVerticalPlacement&&qm.vertical){var zb=$p.layout.get("text-rotate").evaluate(Ph,{},fm)+90,u2=qm.vertical;wv=new Vm(Rb,ip,Lb,Sy,bv,u2,uw,fw,ud,zb),o2&&(ky=new Vm(Rb,ip,Lb,Sy,bv,o2,a2,s2,ud,zb))}if(lw){var Hf=$p.layout.get("icon-rotate").evaluate(Ph,{}),V4=$p.layout.get("icon-text-fit")!=="none",ap=Wx(lw,Hf,l2,V4),Nb=o2?Wx(o2,Hf,l2,V4):void 0;_v=new Vm(Rb,ip,Lb,Sy,bv,lw,a2,s2,!1,Hf),dw=4*ap.length;var i3=hu.iconSizeData,dm=null;i3.kind==="source"?(dm=[$m*$p.layout.get("icon-size").evaluate(Ph,{})])[0]>Ah&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'):i3.kind==="composite"&&((dm=[$m*Db.compositeIconSizes[0].evaluate(Ph,{},fm),$m*Db.compositeIconSizes[1].evaluate(Ph,{},fm)])[0]>Ah||dm[1]>Ah)&&$(hu.layerIds[0]+': Value for "icon-size" is >= '+kd+'. Reduce your "icon-size".'),hu.addSymbols(hu.icon,ap,dm,n3,Ib,Ph,!1,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),v1=hu.icon.placedSymbolArray.length-1,Nb&&(o3=4*Nb.length,hu.addSymbols(hu.icon,Nb,dm,n3,Ib,Ph,Qh.vertical,ip,Ov.lineStartIndex,Ov.lineLength,-1,fm),c2=hu.icon.placedSymbolArray.length-1)}for(var Ty in qm.horizontal){var f2=qm.horizontal[Ty];if(!g1){pw=Yo(f2.text);var a3=$p.layout.get("text-rotate").evaluate(Ph,{},fm);g1=new Vm(Rb,ip,Lb,Sy,bv,f2,uw,fw,ud,a3)}var d2=f2.positionedLines.length===1;if(Bb+=Sb(hu,ip,f2,cw,$p,ud,Ph,i2,Ov,qm.vertical?Qh.horizontal:Qh.horizontalOnly,d2?Object.keys(qm.horizontal):[Ty],Wm,v1,Db,fm),d2)break}qm.vertical&&(hw+=Sb(hu,ip,qm.vertical,cw,$p,ud,Ph,i2,Ov,Qh.vertical,["vertical"],Wm,c2,Db,fm));var s3=g1?g1.boxStartIndex:hu.collisionBoxArray.length,h2=g1?g1.boxEndIndex:hu.collisionBoxArray.length,Fb=wv?wv.boxStartIndex:hu.collisionBoxArray.length,l3=wv?wv.boxEndIndex:hu.collisionBoxArray.length,c3=_v?_v.boxStartIndex:hu.collisionBoxArray.length,U4=_v?_v.boxEndIndex:hu.collisionBoxArray.length,p2=ky?ky.boxStartIndex:hu.collisionBoxArray.length,m2=ky?ky.boxEndIndex:hu.collisionBoxArray.length,Mg=-1,S0=function(y1,g2){return y1&&y1.circleDiameter?Math.max(y1.circleDiameter,g2):g2};Mg=S0(g1,Mg),Mg=S0(wv,Mg),Mg=S0(_v,Mg);var gw=(Mg=S0(ky,Mg))>-1?1:0;gw&&(Mg*=r3/Oc),hu.glyphOffsetArray.length>=dc.MAX_GLYPHS&&$("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ph.sortKey!==void 0&&hu.addToSortKeyRanges(hu.symbolInstances.length,Ph.sortKey),hu.symbolInstances.emplaceBack(ip.x,ip.y,Wm.right>=0?Wm.right:-1,Wm.center>=0?Wm.center:-1,Wm.left>=0?Wm.left:-1,Wm.vertical||-1,v1,c2,pw,s3,h2,Fb,l3,c3,U4,p2,m2,Lb,Bb,hw,dw,o3,gw,0,uw,mw,wp,Mg)}(Us,O0,t3,fu,ni,Wc,Qm,Us.layers[0],Us.collisionBoxArray,_l.index,_l.sourceLayerIndex,Us.index,t2,dl,Iu,Eh,Lu,Mf,vv,tu,_l,Yc,mc,dh,$l)};if(h1==="line")for(var b0=0,Hm=_b(_l.geometry,0,0,ua,ua);b01){var wy=a1(_y,du,fu.vertical||qd,ni,Cd,gv);wy&&p1(_y,wy)}}else if(_l.type==="Polygon")for(var Md=0,m1=bg(_l.geometry,0);Md=Br.maxzoom||Br.visibility!=="none"&&(c(tr,this.zoom,st),(Jt[Br.id]=Br.createBucket({index:at.bucketLayerIDs.length,layers:tr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_n,sourceID:this.source})).populate(wn,Zt,this.tileID.canonical),at.bucketLayerIDs.push(tr.map(function(sr){return sr.id})))}}}var $r=i.mapObject(Zt.glyphDependencies,function(sr){return Object.keys(sr).map(Number)});Object.keys($r).length?bt.send("getGlyphs",{uid:this.uid,stacks:$r},function(sr,lr){Bt||(Bt=sr,_t=lr,gr.call(Dt))}):_t={};var vr=Object.keys(Zt.iconDependencies);vr.length?bt.send("getImages",{icons:vr,source:this.source,tileID:this.tileID,type:"icons"},function(sr,lr){Bt||(Bt=sr,qt=lr,gr.call(Dt))}):qt={};var qn=Object.keys(Zt.patternDependencies);function gr(){if(Bt)return Vt(Bt);if(_t&&qt&&en){var sr=new m(_t),lr=new i.ImageAtlas(qt,en);for(var zr in Jt){var Vr=Jt[zr];Vr instanceof i.SymbolBucket?(c(Vr.layers,this.zoom,st),i.performSymbolLayout(Vr,_t,sr.positions,qt,lr.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vr.hasPattern&&(Vr instanceof i.LineBucket||Vr instanceof i.FillBucket||Vr instanceof i.FillExtrusionBucket)&&(c(Vr.layers,this.zoom,st),Vr.addFeatures(Zt,this.tileID.canonical,lr.patternPositions))}this.status="done",Vt(null,{buckets:i.values(Jt).filter(function(eo){return!eo.isEmpty()}),featureIndex:at,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:sr.image,imageAtlas:lr,glyphMap:this.returnDependencies?_t:null,iconMap:this.returnDependencies?qt:null,glyphPositions:this.returnDependencies?sr.positions:null})}}qn.length?bt.send("getImages",{icons:qn,source:this.source,tileID:this.tileID,type:"patterns"},function(sr,lr){Bt||(Bt=sr,en=lr,gr.call(Dt))}):en={},gr.call(this)};var p=function(vt,xt,st,bt){this.actor=vt,this.layerIndex=xt,this.availableImages=st,this.loadVectorData=bt||h,this.loading={},this.loaded={}};p.prototype.loadTile=function(vt,xt){var st=this,bt=vt.uid;this.loading||(this.loading={});var Vt=!!(vt&&vt.request&&vt.request.collectResourceTiming)&&new i.RequestPerformance(vt.request),Dt=this.loading[bt]=new a(vt);Dt.abort=this.loadVectorData(vt,function(it,at){if(delete st.loading[bt],it||!at)return Dt.status="done",st.loaded[bt]=Dt,xt(it);var Bt=at.rawData,_t={};at.expires&&(_t.expires=at.expires),at.cacheControl&&(_t.cacheControl=at.cacheControl);var qt={};if(Vt){var en=Vt.finish();en&&(qt.resourceTiming=JSON.parse(JSON.stringify(en)))}Dt.vectorTile=at.vectorTile,Dt.parse(at.vectorTile,st.layerIndex,st.availableImages,st.actor,function(Jt,Zt){if(Jt||!Zt)return xt(Jt);xt(null,i.extend({rawTileData:Bt.slice(0)},Zt,_t,qt))}),st.loaded=st.loaded||{},st.loaded[bt]=Dt})},p.prototype.reloadTile=function(vt,xt){var st=this,bt=this.loaded,Vt=vt.uid,Dt=this;if(bt&&bt[Vt]){var it=bt[Vt];it.showCollisionBoxes=vt.showCollisionBoxes;var at=function(Bt,_t){var qt=it.reloadCallback;qt&&(delete it.reloadCallback,it.parse(it.vectorTile,Dt.layerIndex,st.availableImages,Dt.actor,qt)),xt(Bt,_t)};it.status==="parsing"?it.reloadCallback=at:it.status==="done"&&(it.vectorTile?it.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor,at):at())}},p.prototype.abortTile=function(vt,xt){var st=this.loading,bt=vt.uid;st&&st[bt]&&st[bt].abort&&(st[bt].abort(),delete st[bt]),xt()},p.prototype.removeTile=function(vt,xt){var st=this.loaded,bt=vt.uid;st&&st[bt]&&delete st[bt],xt()};var v=i.window.ImageBitmap,_=function(){this.loaded={}};_.prototype.loadTile=function(vt,xt){var st=vt.uid,bt=vt.encoding,Vt=vt.rawImageData,Dt=v&&Vt instanceof v?this.getImageData(Vt):Vt,it=new i.DEMData(st,Dt,bt);this.loaded=this.loaded||{},this.loaded[st]=it,xt(null,it)},_.prototype.getImageData=function(vt){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(vt.width,vt.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=vt.width,this.offscreenCanvas.height=vt.height,this.offscreenCanvasContext.drawImage(vt,0,0,vt.width,vt.height);var xt=this.offscreenCanvasContext.getImageData(-1,-1,vt.width+2,vt.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new i.RGBAImage({width:xt.width,height:xt.height},xt.data)},_.prototype.removeTile=function(vt){var xt=this.loaded,st=vt.uid;xt&&xt[st]&&delete xt[st]};var O=function vt(xt,st){var bt,Vt=xt&&xt.type;if(Vt==="FeatureCollection")for(bt=0;bt=0!=!!xt&&vt.reverse()}var R=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,M=function(vt){this._feature=vt,this.extent=i.EXTENT,this.type=vt.type,this.properties=vt.tags,"id"in vt&&!isNaN(vt.id)&&(this.id=parseInt(vt.id,10))};M.prototype.loadGeometry=function(){if(this._feature.type===1){for(var vt=[],xt=0,st=this._feature.geometry;xt>31}function K(vt,xt){for(var st=vt.loadGeometry(),bt=vt.type,Vt=0,Dt=0,it=st.length,at=0;at>1;Y(vt,xt,it,bt,Vt,Dt%2),q(vt,xt,st,bt,it-1,Dt+1),q(vt,xt,st,it+1,Vt,Dt+1)}}function Y(vt,xt,st,bt,Vt,Dt){for(;Vt>bt;){if(Vt-bt>600){var it=Vt-bt+1,at=st-bt+1,Bt=Math.log(it),_t=.5*Math.exp(2*Bt/3),qt=.5*Math.sqrt(Bt*_t*(it-_t)/it)*(at-it/2<0?-1:1);Y(vt,xt,st,Math.max(bt,Math.floor(st-at*_t/it+qt)),Math.min(Vt,Math.floor(st+(it-at)*_t/it+qt)),Dt)}var en=xt[2*st+Dt],Jt=bt,Zt=Vt;for(ee(vt,xt,bt,st),xt[2*Vt+Dt]>en&&ee(vt,xt,bt,Vt);Jten;)Zt--}xt[2*bt+Dt]===en?ee(vt,xt,bt,Zt):ee(vt,xt,++Zt,Vt),Zt<=st&&(bt=Zt+1),st<=Zt&&(Vt=Zt-1)}}function ee(vt,xt,st,bt){me(vt,st,bt),me(xt,2*st,2*bt),me(xt,2*st+1,2*bt+1)}function me(vt,xt,st){var bt=vt[xt];vt[xt]=vt[st],vt[st]=bt}function pe(vt,xt,st,bt){var Vt=vt-st,Dt=xt-bt;return Vt*Vt+Dt*Dt}k.fromVectorTileJs=I,k.fromGeojsonVt=z,k.GeoJSONWrapper=$;var se=function(vt){return vt[0]},ae=function(vt){return vt[1]},ce=function(vt,xt,st,bt,Vt){xt===void 0&&(xt=se),st===void 0&&(st=ae),bt===void 0&&(bt=64),Vt===void 0&&(Vt=Float64Array),this.nodeSize=bt,this.points=vt;for(var Dt=vt.length<65536?Uint16Array:Uint32Array,it=this.ids=new Dt(vt.length),at=this.coords=new Vt(2*vt.length),Bt=0;Bt=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[wn]);else{var An=Math.floor((_n+rn)/2);en=Dt[2*An],Jt=Dt[2*An+1],en>=it&&en<=Bt&&Jt>=at&&Jt<=_t&&Nt.push(Vt[An]);var Kn=(sn+1)%2;(sn===0?it<=en:at<=Jt)&&(Zt.push(_n),Zt.push(An-1),Zt.push(Kn)),(sn===0?Bt>=en:_t>=Jt)&&(Zt.push(An+1),Zt.push(rn),Zt.push(Kn))}}return Nt}(this.ids,this.coords,vt,xt,st,bt,this.nodeSize)},ce.prototype.within=function(vt,xt,st){return function(bt,Vt,Dt,it,at,Bt){for(var _t=[0,bt.length-1,0],qt=[],en=at*at;_t.length;){var Jt=_t.pop(),Zt=_t.pop(),Nt=_t.pop();if(Zt-Nt<=Bt)for(var sn=Nt;sn<=Zt;sn++)pe(Vt[2*sn],Vt[2*sn+1],Dt,it)<=en&&qt.push(bt[sn]);else{var rn=Math.floor((Nt+Zt)/2),_n=Vt[2*rn],wn=Vt[2*rn+1];pe(_n,wn,Dt,it)<=en&&qt.push(bt[rn]);var An=(Jt+1)%2;(Jt===0?Dt-at<=_n:it-at<=wn)&&(_t.push(Nt),_t.push(rn-1),_t.push(An)),(Jt===0?Dt+at>=_n:it+at>=wn)&&(_t.push(rn+1),_t.push(Zt),_t.push(An))}}return qt}(this.ids,this.coords,vt,xt,st,this.nodeSize)};var de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(vt){return vt}},ye=function(vt){this.options=ze(Object.create(de),vt),this.trees=new Array(this.options.maxZoom+1)};function ve(vt,xt,st,bt,Vt){return{x:vt,y:xt,zoom:1/0,id:st,parentId:-1,numPoints:bt,properties:Vt}}function _e(vt,xt){var st=vt.geometry.coordinates,bt=st[0],Vt=st[1];return{x:Pe(bt),y:Ie(Vt),zoom:1/0,index:xt,parentId:-1}}function we(vt){return{type:"Feature",id:vt.id,properties:Te(vt),geometry:{type:"Point",coordinates:[(bt=vt.x,360*(bt-.5)),(xt=vt.y,st=(180-360*xt)*Math.PI/180,360*Math.atan(Math.exp(st))/Math.PI-90)]}};var xt,st,bt}function Te(vt){var xt=vt.numPoints,st=xt>=1e4?Math.round(xt/1e3)+"k":xt>=1e3?Math.round(xt/100)/10+"k":xt;return ze(ze({},vt.properties),{cluster:!0,cluster_id:vt.id,point_count:xt,point_count_abbreviated:st})}function Pe(vt){return vt/360+.5}function Ie(vt){var xt=Math.sin(vt*Math.PI/180),st=.5-.25*Math.log((1+xt)/(1-xt))/Math.PI;return st<0?0:st>1?1:st}function ze(vt,xt){for(var st in xt)vt[st]=xt[st];return vt}function De(vt){return vt.x}function Qe(vt){return vt.y}function Ve(vt,xt,st,bt){for(var Vt,Dt=bt,it=st-xt>>1,at=st-xt,Bt=vt[xt],_t=vt[xt+1],qt=vt[st],en=vt[st+1],Jt=xt+3;JtDt)Vt=Jt,Dt=Zt;else if(Zt===Dt){var Nt=Math.abs(Jt-it);Ntbt&&(Vt-xt>3&&Ve(vt,xt,Vt,bt),vt[Vt+2]=Dt,st-Vt>3&&Ve(vt,Vt,st,bt))}function $e(vt,xt,st,bt,Vt,Dt){var it=Vt-st,at=Dt-bt;if(it!==0||at!==0){var Bt=((vt-st)*it+(xt-bt)*at)/(it*it+at*at);Bt>1?(st=Vt,bt=Dt):Bt>0&&(st+=it*Bt,bt+=at*Bt)}return(it=vt-st)*it+(at=xt-bt)*at}function Oe(vt,xt,st,bt){var Vt={id:vt===void 0?null:vt,type:xt,geometry:st,tags:bt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dt){var it=Dt.geometry,at=Dt.type;if(at==="Point"||at==="MultiPoint"||at==="LineString")ke(Dt,it);else if(at==="Polygon"||at==="MultiLineString")for(var Bt=0;Bt0&&(it+=bt?(Vt*_t-Bt*Dt)/2:Math.sqrt(Math.pow(Bt-Vt,2)+Math.pow(_t-Dt,2))),Vt=Bt,Dt=_t}var qt=xt.length-3;xt[2]=1,Ve(xt,0,qt,st),xt[qt+2]=1,xt.size=Math.abs(it),xt.start=0,xt.end=xt.size}function Ze(vt,xt,st,bt){for(var Vt=0;Vt1?1:st}function Me(vt,xt,st,bt,Vt,Dt,it,at){if(bt/=xt,Dt>=(st/=xt)&&it=bt)return null;for(var Bt=[],_t=0;_t=st&&Nt=bt)){var sn=[];if(Jt==="Point"||Jt==="MultiPoint")Fe(en,sn,st,bt,Vt);else if(Jt==="LineString")je(en,sn,st,bt,Vt,!1,at.lineMetrics);else if(Jt==="MultiLineString")ot(en,sn,st,bt,Vt,!1);else if(Jt==="Polygon")ot(en,sn,st,bt,Vt,!0);else if(Jt==="MultiPolygon")for(var rn=0;rn=st&&it<=bt&&(xt.push(vt[Dt]),xt.push(vt[Dt+1]),xt.push(vt[Dt+2]))}}function je(vt,xt,st,bt,Vt,Dt,it){for(var at,Bt,_t=tt(vt),qt=Vt===0?ht:pt,en=vt.start,Jt=0;Jtst&&(Bt=qt(_t,Zt,Nt,rn,_n,st),it&&(_t.start=en+at*Bt)):wn>bt?An=st&&(Bt=qt(_t,Zt,Nt,rn,_n,st),Kn=!0),An>bt&&wn<=bt&&(Bt=qt(_t,Zt,Nt,rn,_n,bt),Kn=!0),!Dt&&Kn&&(it&&(_t.end=en+at*Bt),xt.push(_t),_t=tt(vt)),it&&(en+=at)}var fr=vt.length-3;Zt=vt[fr],Nt=vt[fr+1],sn=vt[fr+2],(wn=Vt===0?Zt:Nt)>=st&&wn<=bt&&Ge(_t,Zt,Nt,sn),fr=_t.length-3,Dt&&fr>=3&&(_t[fr]!==_t[0]||_t[fr+1]!==_t[1])&&Ge(_t,_t[0],_t[1],_t[2]),_t.length&&xt.push(_t)}function tt(vt){var xt=[];return xt.size=vt.size,xt.start=vt.start,xt.end=vt.end,xt}function ot(vt,xt,st,bt,Vt,Dt){for(var it=0;itit.maxX&&(it.maxX=qt),en>it.maxY&&(it.maxY=en)}return it}function tn(vt,xt,st,bt){var Vt=xt.geometry,Dt=xt.type,it=[];if(Dt==="Point"||Dt==="MultiPoint")for(var at=0;at0&&xt.size<(Vt?it:bt))st.numPoints+=xt.length/3;else{for(var at=[],Bt=0;Btit)&&(st.numSimplified++,at.push(xt[Bt]),at.push(xt[Bt+1])),st.numPoints++;Vt&&function(_t,qt){for(var en=0,Jt=0,Zt=_t.length,Nt=Zt-2;Jt0===qt)for(Jt=0,Zt=_t.length;Jt24)throw new Error("maxZoom should be in the 0-24 range");if(xt.promoteId&&xt.generateId)throw new Error("promoteId and generateId cannot be used together.");var bt=function(Vt,Dt){var it=[];if(Vt.type==="FeatureCollection")for(var at=0;at=bt;_t--){var qt=+Date.now();at=this._cluster(at,_t),this.trees[_t]=new ce(at,De,Qe,Dt,Float32Array),st&&console.log("z%d: %d clusters in %dms",_t,at.length,+Date.now()-qt)}return st&&console.timeEnd("total time"),this},ye.prototype.getClusters=function(vt,xt){var st=((vt[0]+180)%360+360)%360-180,bt=Math.max(-90,Math.min(90,vt[1])),Vt=vt[2]===180?180:((vt[2]+180)%360+360)%360-180,Dt=Math.max(-90,Math.min(90,vt[3]));if(vt[2]-vt[0]>=360)st=-180,Vt=180;else if(st>Vt){var it=this.getClusters([st,bt,180,Dt],xt),at=this.getClusters([-180,bt,Vt,Dt],xt);return it.concat(at)}for(var Bt=this.trees[this._limitZoom(xt)],_t=[],qt=0,en=Bt.range(Pe(st),Ie(Dt),Pe(Vt),Ie(bt));qtxt&&(Nt+=wn.numPoints||1)}if(Nt>=at){for(var An=qt.x*Zt,Kn=qt.y*Zt,fr=it&&Zt>1?this._map(qt,!0):null,Un=(_t<<5)+(xt+1)+this.points.length,Zn=0,tr=Jt;Zn1)for(var qn=0,gr=Jt;qn>5},ye.prototype._getOriginZoom=function(vt){return(vt-this.points.length)%32},ye.prototype._map=function(vt,xt){if(vt.numPoints)return xt?ze({},vt.properties):vt.properties;var st=this.points[vt.index].properties,bt=this.options.map(st);return xt&&bt===st?ze({},bt):bt},Ot.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ot.prototype.splitTile=function(vt,xt,st,bt,Vt,Dt,it){for(var at=[vt,xt,st,bt],Bt=this.options,_t=Bt.debug;at.length;){bt=at.pop(),st=at.pop(),xt=at.pop(),vt=at.pop();var qt=1<1&&console.time("creation"),Jt=this.tiles[en]=ln(vt,xt,st,bt,Bt),this.tileCoords.push({z:xt,x:st,y:bt}),_t)){_t>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",xt,st,bt,Jt.numFeatures,Jt.numPoints,Jt.numSimplified),console.timeEnd("creation"));var Zt="z"+xt;this.stats[Zt]=(this.stats[Zt]||0)+1,this.total++}if(Jt.source=vt,Vt){if(xt===Bt.maxZoom||xt===Vt)continue;var Nt=1<1&&console.time("clipping");var sn,rn,_n,wn,An,Kn,fr=.5*Bt.buffer/Bt.extent,Un=.5-fr,Zn=.5+fr,tr=1+fr;sn=rn=_n=wn=null,An=Me(vt,qt,st-fr,st+Zn,0,Jt.minX,Jt.maxX,Bt),Kn=Me(vt,qt,st+Un,st+tr,0,Jt.minX,Jt.maxX,Bt),vt=null,An&&(sn=Me(An,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),rn=Me(An,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),An=null),Kn&&(_n=Me(Kn,qt,bt-fr,bt+Zn,1,Jt.minY,Jt.maxY,Bt),wn=Me(Kn,qt,bt+Un,bt+tr,1,Jt.minY,Jt.maxY,Bt),Kn=null),_t>1&&console.timeEnd("clipping"),at.push(sn||[],xt+1,2*st,2*bt),at.push(rn||[],xt+1,2*st,2*bt+1),at.push(_n||[],xt+1,2*st+1,2*bt),at.push(wn||[],xt+1,2*st+1,2*bt+1)}}},Ot.prototype.getTile=function(vt,xt,st){var bt=this.options,Vt=bt.extent,Dt=bt.debug;if(vt<0||vt>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",vt,xt,st);for(var Bt,_t=vt,qt=xt,en=st;!Bt&&_t>0;)_t--,qt=Math.floor(qt/2),en=Math.floor(en/2),Bt=this.tiles[cn(_t,qt,en)];return Bt&&Bt.source?(Dt>1&&console.log("found parent tile z%d-%d-%d",_t,qt,en),Dt>1&&console.time("drilling down"),this.splitTile(Bt.source,_t,qt,en,vt,xt,st),Dt>1&&console.timeEnd("drilling down"),this.tiles[at]?zt(this.tiles[at],Vt):null):null};var Pn=function(vt){function xt(st,bt,Vt,Dt){vt.call(this,st,bt,Vt,Cn),Dt&&(this.loadGeoJSON=Dt)}return vt&&(xt.__proto__=vt),xt.prototype=Object.create(vt&&vt.prototype),xt.prototype.constructor=xt,xt.prototype.loadData=function(st,bt){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=bt,this._pendingLoadDataParams=st,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},xt.prototype._loadData=function(){var st=this;if(this._pendingCallback&&this._pendingLoadDataParams){var bt=this._pendingCallback,Vt=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Dt=!!(Vt&&Vt.request&&Vt.request.collectResourceTiming)&&new i.RequestPerformance(Vt.request);this.loadGeoJSON(Vt,function(it,at){if(it||!at)return bt(it);if(typeof at!="object")return bt(new Error("Input data given to '"+Vt.source+"' is not a valid GeoJSON object."));O(at,!0);try{if(Vt.filter){var Bt=i.createExpression(Vt.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Bt.result==="error")throw new Error(Bt.value.map(function(Jt){return Jt.key+": "+Jt.message}).join(", "));var _t=at.features.filter(function(Jt){return Bt.value.evaluate({zoom:0},Jt)});at={type:"FeatureCollection",features:_t}}st._geoJSONIndex=Vt.cluster?new ye(function(Jt){var Zt=Jt.superclusterOptions,Nt=Jt.clusterProperties;if(!Nt||!Zt)return Zt;for(var sn={},rn={},_n={accumulated:null,zoom:0},wn={properties:null},An=Object.keys(Nt),Kn=0,fr=An;Kn=0?0:J.button},w.remove=function(J){J.parentNode&&J.parentNode.removeChild(J)};var C=function(J){function le(){J.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.isLoaded=function(){return this.loaded},le.prototype.setLoaded=function(ne){if(this.loaded!==ne&&(this.loaded=ne,ne)){for(var V=0,ie=this.requestors;V=0?1.2:1))}function P(J,le,ne,V,ie,ge,xe){for(var Ee=0;Ee65535)et(new Error("glyphs > 65535 not supported"));else if(gt.ranges[Mt])et(null,{stack:rt,id:dt,glyph:Rt});else{var Xt=gt.requests[Mt];Xt||(Xt=gt.requests[Mt]=[],L.loadGlyphRange(rt,Mt,ne.url,ne.requestManager,function(dn,bn){if(bn){for(var vn in bn)ne._doesCharSupportLocalGlyph(+vn)||(gt.glyphs[+vn]=bn[+vn]);gt.ranges[Mt]=!0}for(var Ln=0,gn=Xt;Ln1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=void 0,Mt=ie/ne*(V+1);if(Ne.isDash){var Xt=V-Math.abs(Mt);Rt=Math.sqrt(gt*gt+Xt*Xt)}else Rt=V-Math.sqrt(gt*gt+Mt*Mt);this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addRegularDash=function(J){for(var le=J.length-1;le>=0;--le){var ne=J[le],V=J[le+1];ne.zeroLength?J.splice(le,1):V&&V.isDash===ne.isDash&&(V.left=ne.left,J.splice(le,1))}var ie=J[0],ge=J[J.length-1];ie.isDash===ge.isDash&&(ie.left=ge.left-this.width,ge.right=ie.right+this.width);for(var xe=this.width*this.nextRow,Ee=0,Ne=J[Ee],et=0;et1&&(Ne=J[++Ee]);var rt=Math.abs(et-Ne.left),dt=Math.abs(et-Ne.right),gt=Math.min(rt,dt),Rt=Ne.isDash?gt:-gt;this.data[xe+et]=Math.max(0,Math.min(255,Rt+128))}},$.prototype.addDash=function(J,le){var ne=le?7:0,V=2*ne+1;if(this.nextRow+V>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ie=0,ge=0;ge=ne&&J.x=V&&J.y0&&(et[new i.OverscaledTileID(ne.overscaledZ,xe,V.z,ge,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,ne.wrap,V.z,V.x,V.y-1).key]={backfilled:!1},et[new i.OverscaledTileID(ne.overscaledZ,Ne,V.z,Ee,V.y-1).key]={backfilled:!1}),V.y+10&&(ie.resourceTiming=ne._resourceTiming,ne._resourceTiming=[]),ne.fire(new i.Event("data",ie))}})},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setData=function(ne){var V=this;return this._data=ne,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ie){if(ie)V.fire(new i.ErrorEvent(ie));else{var ge={dataType:"source",sourceDataType:"content"};V._collectResourceTiming&&V._resourceTiming&&V._resourceTiming.length>0&&(ge.resourceTiming=V._resourceTiming,V._resourceTiming=[]),V.fire(new i.Event("data",ge))}}),this},le.prototype.getClusterExpansionZoom=function(ne,V){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterChildren=function(ne,V){return this.actor.send("geojson.getClusterChildren",{clusterId:ne,source:this.id},V),this},le.prototype.getClusterLeaves=function(ne,V,ie,ge){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:ne,limit:V,offset:ie},ge),this},le.prototype._updateWorkerData=function(ne){var V=this;this._loaded=!1;var ie=i.extend({},this.workerOptions),ge=this._data;typeof ge=="string"?(ie.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ge),i.ResourceType.Source),ie.request.collectResourceTiming=this._collectResourceTiming):ie.data=JSON.stringify(ge),this.actor.send(this.type+".loadData",ie,function(xe,Ee){V._removed||Ee&&Ee.abandoned||(V._loaded=!0,Ee&&Ee.resourceTiming&&Ee.resourceTiming[V.id]&&(V._resourceTiming=Ee.resourceTiming[V.id].slice(0)),V.actor.send(V.type+".coalesce",{source:ie.source},null),ne(xe))})},le.prototype.loaded=function(){return this._loaded},le.prototype.loadTile=function(ne,V){var ie=this,ge=ne.actor?"reloadTile":"loadTile";ne.actor=this.actor;var xe={type:this.type,uid:ne.uid,tileID:ne.tileID,zoom:ne.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};ne.request=this.actor.send(ge,xe,function(Ee,Ne){return delete ne.request,ne.unloadVectorData(),ne.aborted?V(null):Ee?V(Ee):(ne.loadVectorData(Ne,ie.map.painter,ge==="reloadTile"),V(null))})},le.prototype.abortTile=function(ne){ne.request&&(ne.request.cancel(),delete ne.request),ne.aborted=!0},le.prototype.unloadTile=function(ne){ne.unloadVectorData(),this.actor.send("removeTile",{uid:ne.uid,type:this.type,source:this.id})},le.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},le.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},le.prototype.hasTransition=function(){return!1},le}(i.Evented),re=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),q=function(J){function le(ne,V,ie,ge){J.call(this),this.id=ne,this.dispatcher=ie,this.coordinates=V.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=V}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(ne,V){var ie=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ge,xe){ie._loaded=!0,ge?ie.fire(new i.ErrorEvent(ge)):xe&&(ie.image=xe,ne&&(ie.coordinates=ne),V&&V(),ie._finishLoading())})},le.prototype.loaded=function(){return this._loaded},le.prototype.updateImage=function(ne){var V=this;return this.image&&ne.url?(this.options.url=ne.url,this.load(ne.coordinates,function(){V.texture=null}),this):this},le.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},le.prototype.onAdd=function(ne){this.map=ne,this.load()},le.prototype.setCoordinates=function(ne){var V=this;this.coordinates=ne;var ie=ne.map(i.MercatorCoordinate.fromLngLat);this.tileID=function(xe){for(var Ee=1/0,Ne=1/0,et=-1/0,rt=-1/0,dt=0,gt=xe;dtV.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+V.start(0)+" and "+V.end(0)+"-second mark."))):this.video.currentTime=ne}},le.prototype.getVideo=function(){return this.video},le.prototype.onAdd=function(ne){this.map||(this.map=ne,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},le.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var ne=this.map.painter.context,V=ne.gl;for(var ie in this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE),V.texSubImage2D(V.TEXTURE_2D,0,0,0,V.RGBA,V.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(ne,this.video,V.RGBA),this.texture.bind(V.LINEAR,V.CLAMP_TO_EDGE)),this.tiles){var ge=this.tiles[ie];ge.state!=="loaded"&&(ge.state="loaded",ge.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this.video&&!this.video.paused},le}(q),ee=function(J){function le(ne,V,ie,ge){J.call(this,ne,V,ie,ge),V.coordinates?Array.isArray(V.coordinates)&&V.coordinates.length===4&&!V.coordinates.some(function(xe){return!Array.isArray(xe)||xe.length!==2||xe.some(function(Ee){return typeof Ee!="number"})})||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "coordinates"'))),V.animate&&typeof V.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'optional "animate" property must be a boolean value'))),V.canvas?typeof V.canvas=="string"||V.canvas instanceof i.window.HTMLCanvasElement||this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+ne,null,'missing required property "canvas"'))),this.options=V,this.animate=V.animate===void 0||V.animate}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},le.prototype.getCanvas=function(){return this.canvas},le.prototype.onAdd=function(ne){this.map=ne,this.load(),this.canvas&&this.animate&&this.play()},le.prototype.onRemove=function(){this.pause()},le.prototype.prepare=function(){var ne=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,ne=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,ne=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var V=this.map.painter.context,ie=V.gl;for(var ge in this.boundsBuffer||(this.boundsBuffer=V.createVertexBuffer(this._boundsArray,re.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(ne||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(V,this.canvas,ie.RGBA,{premultiply:!0}),this.tiles){var xe=this.tiles[ge];xe.state!=="loaded"&&(xe.state="loaded",xe.texture=this.texture)}}},le.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},le.prototype.hasTransition=function(){return this._playing},le.prototype._hasInvalidDimensions=function(){for(var ne=0,V=[this.canvas.width,this.canvas.height];nethis.max){var xe=this._getAndRemoveByKey(this.order[0]);xe&&this.onRemove(xe)}return this},ce.prototype.has=function(J){return J.wrapped().key in this.data},ce.prototype.getAndRemove=function(J){return this.has(J)?this._getAndRemoveByKey(J.wrapped().key):null},ce.prototype._getAndRemoveByKey=function(J){var le=this.data[J].shift();return le.timeout&&clearTimeout(le.timeout),this.data[J].length===0&&delete this.data[J],this.order.splice(this.order.indexOf(J),1),le.value},ce.prototype.getByKey=function(J){var le=this.data[J];return le?le[0].value:null},ce.prototype.get=function(J){return this.has(J)?this.data[J.wrapped().key][0].value:null},ce.prototype.remove=function(J,le){if(!this.has(J))return this;var ne=J.wrapped().key,V=le===void 0?0:this.data[ne].indexOf(le),ie=this.data[ne][V];return this.data[ne].splice(V,1),ie.timeout&&clearTimeout(ie.timeout),this.data[ne].length===0&&delete this.data[ne],this.onRemove(ie.value),this.order.splice(this.order.indexOf(ne),1),this},ce.prototype.setMaxSize=function(J){for(this.max=J;this.order.length>this.max;){var le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this},ce.prototype.filter=function(J){var le=[];for(var ne in this.data)for(var V=0,ie=this.data[ne];V1||(Math.abs(rt)>1&&(Math.abs(rt+gt)===1?rt+=gt:Math.abs(rt-gt)===1&&(rt-=gt)),et.dem&&Ne.dem&&(Ne.dem.backfillBorder(et.dem,rt,dt),Ne.neighboringTiles&&Ne.neighboringTiles[Rt]&&(Ne.neighboringTiles[Rt].backfilled=!0)))}},le.prototype.getTile=function(ne){return this.getTileByID(ne.key)},le.prototype.getTileByID=function(ne){return this._tiles[ne]},le.prototype._retainLoadedChildren=function(ne,V,ie,ge){for(var xe in this._tiles){var Ee=this._tiles[xe];if(!(ge[xe]||!Ee.hasData()||Ee.tileID.overscaledZ<=V||Ee.tileID.overscaledZ>ie)){for(var Ne=Ee.tileID;Ee&&Ee.tileID.overscaledZ>V+1;){var et=Ee.tileID.scaledTo(Ee.tileID.overscaledZ-1);(Ee=this._tiles[et.key])&&Ee.hasData()&&(Ne=et)}for(var rt=Ne;rt.overscaledZ>V;)if(ne[(rt=rt.scaledTo(rt.overscaledZ-1)).key]){ge[Ne.key]=Ne;break}}}},le.prototype.findLoadedParent=function(ne,V){if(ne.key in this._loadedParentTiles){var ie=this._loadedParentTiles[ne.key];return ie&&ie.tileID.overscaledZ>=V?ie:null}for(var ge=ne.overscaledZ-1;ge>=V;ge--){var xe=ne.scaledTo(ge),Ee=this._getLoadedTile(xe);if(Ee)return Ee}},le.prototype._getLoadedTile=function(ne){var V=this._tiles[ne.key];return V&&V.hasData()?V:this._cache.getByKey(ne.wrapped().key)},le.prototype.updateCacheSize=function(ne){var V=(Math.ceil(ne.width/this._source.tileSize)+1)*(Math.ceil(ne.height/this._source.tileSize)+1),ie=Math.floor(5*V),ge=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ie):ie;this._cache.setMaxSize(ge)},le.prototype.handleWrapJump=function(ne){var V=(ne-(this._prevLng===void 0?ne:this._prevLng))/360,ie=Math.round(V);if(this._prevLng=ne,ie){var ge={};for(var xe in this._tiles){var Ee=this._tiles[xe];Ee.tileID=Ee.tileID.unwrapTo(Ee.tileID.wrap+ie),ge[Ee.tileID.key]=Ee}for(var Ne in this._tiles=ge,this._timers)clearTimeout(this._timers[Ne]),delete this._timers[Ne];for(var et in this._tiles){var rt=this._tiles[et];this._setTileReloadTimer(et,rt)}}},le.prototype.update=function(ne){var V=this;if(this.transform=ne,this._sourceLoaded&&!this._paused){var ie;this.updateCacheSize(ne),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?ie=ne.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(In){return new i.OverscaledTileID(In.canonical.z,In.wrap,In.canonical.z,In.canonical.x,In.canonical.y)}):(ie=ne.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ie=ie.filter(function(In){return V._source.hasTile(In)}))):ie=[];var ge=ne.coveringZoomLevel(this._source),xe=Math.max(ge-le.maxOverzooming,this._source.minzoom),Ee=Math.max(ge+le.maxUnderzooming,this._source.minzoom),Ne=this._updateRetainedTiles(ie,ge);if(it(this._source.type)){for(var et={},rt={},dt=0,gt=Object.keys(Ne);dtthis._source.maxzoom){var bn=Xt.children(this._source.maxzoom)[0],vn=this.getTile(bn);if(vn&&vn.hasData()){ie[bn.key]=bn;continue}}else{var Ln=Xt.children(this._source.maxzoom);if(ie[Ln[0].key]&&ie[Ln[1].key]&&ie[Ln[2].key]&&ie[Ln[3].key])continue}for(var gn=dn.wasRequested(),Jn=Xt.overscaledZ-1;Jn>=xe;--Jn){var pn=Xt.scaledTo(Jn);if(ge[pn.key]||(ge[pn.key]=!0,!(dn=this.getTile(pn))&&gn&&(dn=this._addTile(pn)),dn&&(ie[pn.key]=pn,gn=dn.wasRequested(),dn.hasData())))break}}}return ie},le.prototype._updateLoadedParentTileCache=function(){for(var ne in this._loadedParentTiles={},this._tiles){for(var V=[],ie=void 0,ge=this._tiles[ne].tileID;ge.overscaledZ>0;){if(ge.key in this._loadedParentTiles){ie=this._loadedParentTiles[ge.key];break}V.push(ge.key);var xe=ge.scaledTo(ge.overscaledZ-1);if(ie=this._getLoadedTile(xe))break;ge=xe}for(var Ee=0,Ne=V;Ee0||(V.hasData()&&V.state!=="reloading"?this._cache.add(V.tileID,V,V.getExpiryTimeout()):(V.aborted=!0,this._abortTile(V),this._unloadTile(V))))},le.prototype.clearTiles=function(){for(var ne in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(ne);this._cache.reset()},le.prototype.tilesIn=function(ne,V,ie){var ge=this,xe=[],Ee=this.transform;if(!Ee)return xe;for(var Ne=ie?Ee.getCameraQueryGeometry(ne):ne,et=ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),rt=Ne.map(function(Jn){return Ee.pointCoordinate(Jn)}),dt=this.getIds(),gt=1/0,Rt=1/0,Mt=-1/0,Xt=-1/0,dn=0,bn=rt;dn=0&&Gr[1].y+Pr>=0){var ro=et.map(function(Wo){return In.getTilePoint(Wo)}),po=rt.map(function(Wo){return In.getTilePoint(Wo)});xe.push({tile:pn,tileID:In,queryGeometry:ro,cameraQueryGeometry:po,scale:Ir})}}},gn=0;gn=i.browser.now())return!0}return!1},le.prototype.setFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.updateState(ne,V,ie)},le.prototype.removeFeatureState=function(ne,V,ie){ne=ne||"_geojsonTileLayer",this._state.removeFeatureState(ne,V,ie)},le.prototype.getFeatureState=function(ne,V){return ne=ne||"_geojsonTileLayer",this._state.getState(ne,V)},le.prototype.setDependencies=function(ne,V,ie){var ge=this._tiles[ne];ge&&ge.setDependencies(V,ie)},le.prototype.reloadTilesForDependencies=function(ne,V){for(var ie in this._tiles)this._tiles[ie].hasDependency(ne,V)&&this._reloadTile(ie,"reloading");this._cache.filter(function(ge){return!ge.hasDependency(ne,V)})},le}(i.Evented);function Dt(J,le){var ne=Math.abs(2*J.wrap)-+(J.wrap<0),V=Math.abs(2*le.wrap)-+(le.wrap<0);return J.overscaledZ-le.overscaledZ||V-ne||le.canonical.y-J.canonical.y||le.canonical.x-J.canonical.x}function it(J){return J==="raster"||J==="image"||J==="video"}function at(){return new i.window.Worker(Ut.workerUrl)}Vt.maxOverzooming=10,Vt.maxUnderzooming=3;var Bt="mapboxgl_preloaded_worker_pool",_t=function(){this.active={}};_t.prototype.acquire=function(J){if(!this.workers)for(this.workers=[];this.workers.length<_t.workerCount;)this.workers.push(new at);return this.active[J]=!0,this.workers.slice()},_t.prototype.release=function(J){delete this.active[J],this.numActive()===0&&(this.workers.forEach(function(le){le.terminate()}),this.workers=null)},_t.prototype.isPreloaded=function(){return!!this.active[Bt]},_t.prototype.numActive=function(){return Object.keys(this.active).length};var qt,en=Math.floor(i.browser.hardwareConcurrency/2);function Jt(){return qt||(qt=new _t),qt}function Zt(J,le){var ne={};for(var V in J)V!=="ref"&&(ne[V]=J[V]);return i.refProperties.forEach(function(ie){ie in le&&(ne[ie]=le[ie])}),ne}function Nt(J){J=J.slice();for(var le=Object.create(null),ne=0;ne0?(V-ge)/xe:0;return this.points[ie].mult(1-Ee).add(this.points[le].mult(Ee))};var Br=function(J,le,ne){var V=this.boxCells=[],ie=this.circleCells=[];this.xCellCount=Math.ceil(J/ne),this.yCellCount=Math.ceil(le/ne);for(var ge=0;ge=-le[0]&&ne<=le[0]&&V>=-le[1]&&V<=le[1]}function lr(J,le,ne,V,ie,ge,xe,Ee){var Ne=V?J.textSizeData:J.iconSizeData,et=i.evaluateSizeForZoom(Ne,ne.transform.zoom),rt=[256/ne.width*2+1,256/ne.height*2+1],dt=V?J.text.dynamicLayoutVertexArray:J.icon.dynamicLayoutVertexArray;dt.clear();for(var gt=J.lineVertexArray,Rt=V?J.text.placedSymbolArray:J.icon.placedSymbolArray,Mt=ne.transform.width/ne.transform.height,Xt=!1,dn=0;dnMath.abs(ne.x-le.x)*V?{useVertical:!0}:(J===i.WritingMode.vertical?le.yne.x)?{needsFlipping:!0}:null}function eo(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt){var Mt,Xt=le/24,dn=J.lineOffsetX*Xt,bn=J.lineOffsetY*Xt;if(J.numGlyphs>1){var vn=J.glyphStartIndex+J.numGlyphs,Ln=J.lineStartIndex,gn=J.lineStartIndex+J.lineLength,Jn=zr(Xt,Ee,dn,bn,ne,rt,dt,J,Ne,ge,gt);if(!Jn)return{notEnoughRoom:!0};var pn=qn(Jn.first.point,xe).point,In=qn(Jn.last.point,xe).point;if(V&&!ne){var Ir=Vr(J.writingMode,pn,In,Rt);if(Ir)return Ir}Mt=[Jn.first];for(var Pr=J.glyphStartIndex+1;Pr0?Wo.point:Jr(dt,po,Gr,1,ie),Bo=Vr(J.writingMode,Gr,si,Rt);if(Bo)return Bo}var Go=Yr(Xt*Ee.getoffsetX(J.glyphStartIndex),dn,bn,ne,rt,dt,J.segment,J.lineStartIndex,J.lineStartIndex+J.lineLength,Ne,ge,gt);if(!Go)return{notEnoughRoom:!0};Mt=[Go]}for(var Yo=0,Wi=Mt;Yo0?1:-1,Mt=0;V&&(Rt*=-1,Mt=Math.PI),Rt<0&&(Mt+=Math.PI);for(var Xt=Rt>0?Ee+xe:Ee+xe+1,dn=ie,bn=ie,vn=0,Ln=0,gn=Math.abs(gt),Jn=[];vn+Ln<=gn;){if((Xt+=Rt)=Ne)return null;if(bn=dn,Jn.push(dn),(dn=dt[Xt])===void 0){var pn=new i.Point(et.getx(Xt),et.gety(Xt)),In=qn(pn,rt);if(In.signedDistanceFromCamera>0)dn=dt[Xt]=In.point;else{var Ir=Xt-Rt;dn=Jr(vn===0?ge:new i.Point(et.getx(Ir),et.gety(Ir)),pn,bn,gn-vn+1,rt)}}vn+=Ln,Ln=bn.dist(dn)}var Pr=(gn-vn)/Ln,Gr=dn.sub(bn),ro=Gr.mult(Pr)._add(bn);ro._add(Gr._unit()._perp()._mult(ne*Rt));var po=Mt+Math.atan2(dn.y-bn.y,dn.x-bn.x);return Jn.push(ro),{point:ro,angle:po,path:Jn}}Br.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Br.prototype.insert=function(J,le,ne,V,ie){this._forEachCell(le,ne,V,ie,this._insertBoxCell,this.boxUid++),this.boxKeys.push(J),this.bboxes.push(le),this.bboxes.push(ne),this.bboxes.push(V),this.bboxes.push(ie)},Br.prototype.insertCircle=function(J,le,ne,V){this._forEachCell(le-V,ne-V,le+V,ne+V,this._insertCircleCell,this.circleUid++),this.circleKeys.push(J),this.circles.push(le),this.circles.push(ne),this.circles.push(V)},Br.prototype._insertBoxCell=function(J,le,ne,V,ie,ge){this.boxCells[ie].push(ge)},Br.prototype._insertCircleCell=function(J,le,ne,V,ie,ge){this.circleCells[ie].push(ge)},Br.prototype._query=function(J,le,ne,V,ie,ge){if(ne<0||J>this.width||V<0||le>this.height)return!ie&&[];var xe=[];if(J<=0&&le<=0&&this.width<=ne&&this.height<=V){if(ie)return!0;for(var Ee=0;Ee0:xe},Br.prototype._queryCircle=function(J,le,ne,V,ie){var ge=J-ne,xe=J+ne,Ee=le-ne,Ne=le+ne;if(xe<0||ge>this.width||Ne<0||Ee>this.height)return!V&&[];var et=[],rt={hitTest:V,circle:{x:J,y:le,radius:ne},seenUids:{box:{},circle:{}}};return this._forEachCell(ge,Ee,xe,Ne,this._queryCellCircle,et,rt,ie),V?et.length>0:et},Br.prototype.query=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!1,ie)},Br.prototype.hitTest=function(J,le,ne,V,ie){return this._query(J,le,ne,V,!0,ie)},Br.prototype.hitTestCircle=function(J,le,ne,V){return this._queryCircle(J,le,ne,!0,V)},Br.prototype._queryCell=function(J,le,ne,V,ie,ge,xe,Ee){var Ne=xe.seenUids,et=this.boxCells[ie];if(et!==null)for(var rt=this.bboxes,dt=0,gt=et;dt=rt[Mt+0]&&V>=rt[Mt+1]&&(!Ee||Ee(this.boxKeys[Rt]))){if(xe.hitTest)return ge.push(!0),!0;ge.push({key:this.boxKeys[Rt],x1:rt[Mt],y1:rt[Mt+1],x2:rt[Mt+2],y2:rt[Mt+3]})}}}var Xt=this.circleCells[ie];if(Xt!==null)for(var dn=this.circles,bn=0,vn=Xt;bnxe*xe+Ee*Ee},Br.prototype._circleAndRectCollide=function(J,le,ne,V,ie,ge,xe){var Ee=(ge-V)/2,Ne=Math.abs(J-(V+Ee));if(Ne>Ee+ne)return!1;var et=(xe-ie)/2,rt=Math.abs(le-(ie+et));if(rt>et+ne)return!1;if(Ne<=Ee||rt<=et)return!0;var dt=Ne-Ee,gt=rt-et;return dt*dt+gt*gt<=ne*ne};var to=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function co(J,le){for(var ne=0;ne=1;si--)Wo.push(ro.path[si]);for(var Bo=1;Bo0){for(var Ho=Wo[0].clone(),jo=Wo[0].clone(),Yi=1;Yi=Ir.x&&jo.x<=Pr.x&&Ho.y>=Ir.y&&jo.y<=Pr.y?[Wo]:jo.xPr.x||jo.yPr.y?[]:i.clipLine([Wo],Ir.x,Ir.y,Pr.x,Pr.y)}for(var ai=0,Hi=Wi;ai=this.screenRightBoundary||V<_o||le>this.screenBottomBoundary},$o.prototype.isInsideGrid=function(J,le,ne,V){return ne>=0&&J=0&&le0?(this.prevPlacement&&this.prevPlacement.variableOffsets[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID]&&this.prevPlacement.placements[dt.crossTileID].text&&(Xt=this.prevPlacement.variableOffsets[dt.crossTileID].anchor),this.variableOffsets[dt.crossTileID]={textOffset:dn,width:ne,height:V,anchor:J,textBoxScale:ie,prevAnchor:Xt},this.markUsedJustification(gt,J,dt,Rt),gt.allowVerticalPlacement&&(this.markUsedOrientation(gt,Rt,dt),this.placedOrientations[dt.crossTileID]=Rt),{shift:bn,placedGlyphBoxes:vn}):void 0},io.prototype.placeLayerBucketPart=function(J,le,ne){var V=this,ie=J.parameters,ge=ie.bucket,xe=ie.layout,Ee=ie.posMatrix,Ne=ie.textLabelPlaneMatrix,et=ie.labelToScreenMatrix,rt=ie.textPixelRatio,dt=ie.holdingForFade,gt=ie.collisionBoxArray,Rt=ie.partiallyEvaluatedTextSize,Mt=ie.collisionGroup,Xt=xe.get("text-optional"),dn=xe.get("icon-optional"),bn=xe.get("text-allow-overlap"),vn=xe.get("icon-allow-overlap"),Ln=xe.get("text-rotation-alignment")==="map",gn=xe.get("text-pitch-alignment")==="map",Jn=xe.get("icon-text-fit")!=="none",pn=xe.get("symbol-z-order")==="viewport-y",In=bn&&(vn||!ge.hasIconData()||dn),Ir=vn&&(bn||!ge.hasTextData()||Xt);!ge.collisionArrays&>&&ge.deserializeCollisionBoxes(gt);var Pr=function(Bo,Go){if(!le[Bo.crossTileID])if(dt)V.placements[Bo.crossTileID]=new ar(!1,!1,!1);else{var Yo,Wi=!1,Ho=!1,jo=!0,Yi=null,ai={box:null,offscreen:null},Hi={box:null,offscreen:null},Ai=null,es=null,Ar=0,ns=0,$s=0;Go.textFeatureIndex?Ar=Go.textFeatureIndex:Bo.useRuntimeCollisionCircles&&(Ar=Bo.featureIndex),Go.verticalTextFeatureIndex&&(ns=Go.verticalTextFeatureIndex);var Ts=Go.textBox;if(Ts){var rl=function(Is){var Hc=i.WritingMode.horizontal;if(ge.allowVerticalPlacement&&!Is&&V.prevPlacement){var Nl=V.prevPlacement.placedOrientations[Bo.crossTileID];Nl&&(V.placedOrientations[Bo.crossTileID]=Nl,Hc=Nl,V.markUsedOrientation(ge,Hc,Bo))}return Hc},Hs=function(Is,Hc){if(ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Go.verticalTextBox)for(var Nl=0,lh=ge.writingModes;Nl0&&(ys=ys.filter(function(Is){return Is!==Yu.anchor})).unshift(Yu.anchor)}var mt=function(Is,Hc,Nl){for(var lh=Is.x2-Is.x1,r0=Is.y2-Is.y1,ch=Bo.textBoxScale,gg=Jn&&!vn?Hc:null,Ip={box:[],offscreen:!1},X0=bn?2*ys.length:ys.length,Vh=0;Vh=ys.length,ss=V.attemptAnchorPlacement(Pu,Is,lh,r0,ch,Ln,gn,rt,Ee,Mt,Uh,Bo,ge,Nl,gg);if(ss&&(Ip=ss.placedGlyphBoxes)&&Ip.box&&Ip.box.length){Wi=!0,Yi=ss.shift;break}}return Ip};Hs(function(){return mt(Ts,Go.iconBox,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox,Hc=ai&&ai.box&&ai.box.length;return ge.allowVerticalPlacement&&!Hc&&Bo.numVerticalGlyphVertices>0&&Is?mt(Is,Go.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}}),ai&&(Wi=ai.box,jo=ai.offscreen);var Tt=rl(ai&&ai.box);if(!Wi&&V.prevPlacement){var xn=V.prevPlacement.variableOffsets[Bo.crossTileID];xn&&(V.variableOffsets[Bo.crossTileID]=xn,V.markUsedJustification(ge,xn.anchor,Bo,Tt))}}else{var Nn=function(Is,Hc){var Nl=V.collisionIndex.placeCollisionBox(Is,bn,rt,Ee,Mt.predicate);return Nl&&Nl.box&&Nl.box.length&&(V.markUsedOrientation(ge,Hc,Bo),V.placedOrientations[Bo.crossTileID]=Hc),Nl};Hs(function(){return Nn(Ts,i.WritingMode.horizontal)},function(){var Is=Go.verticalTextBox;return ge.allowVerticalPlacement&&Bo.numVerticalGlyphVertices>0&&Is?Nn(Is,i.WritingMode.vertical):{box:null,offscreen:null}}),rl(ai&&ai.box&&ai.box.length)}}if(Wi=(Yo=ai)&&Yo.box&&Yo.box.length>0,jo=Yo&&Yo.offscreen,Bo.useRuntimeCollisionCircles){var yr=ge.text.placedSymbolArray.get(Bo.centerJustifiedTextSymbolIndex),so=i.evaluateSizeForFeature(ge.textSizeData,Rt,yr),No=xe.get("text-padding"),ui=Bo.collisionCircleDiameter;Ai=V.collisionIndex.placeCollisionCircles(bn,yr,ge.lineVertexArray,ge.glyphOffsetArray,so,Ee,Ne,et,ne,gn,Mt.predicate,ui,No),Wi=bn||Ai.circles.length>0&&!Ai.collisionDetected,jo=jo&&Ai.offscreen}if(Go.iconFeatureIndex&&($s=Go.iconFeatureIndex),Go.iconBox){var ga=function(Is){var Hc=Jn&&Yi?oo(Is,Yi.x,Yi.y,Ln,gn,V.transform.angle):Is;return V.collisionIndex.placeCollisionBox(Hc,vn,rt,Ee,Mt.predicate)};Ho=Hi&&Hi.box&&Hi.box.length&&Go.verticalIconBox?(es=ga(Go.verticalIconBox)).box.length>0:(es=ga(Go.iconBox)).box.length>0,jo=jo&&es.offscreen}var Sa=Xt||Bo.numHorizontalGlyphVertices===0&&Bo.numVerticalGlyphVertices===0,ua=dn||Bo.numIconVertices===0;if(Sa||ua?ua?Sa||(Ho=Ho&&Wi):Wi=Ho&&Wi:Ho=Wi=Ho&&Wi,Wi&&Yo&&Yo.box&&(Hi&&Hi.box&&ns?V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,ns,Mt.ID):V.collisionIndex.insertCollisionBox(Yo.box,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID)),Ho&&es&&V.collisionIndex.insertCollisionBox(es.box,xe.get("icon-ignore-placement"),ge.bucketInstanceId,$s,Mt.ID),Ai&&(Wi&&V.collisionIndex.insertCollisionCircles(Ai.circles,xe.get("text-ignore-placement"),ge.bucketInstanceId,Ar,Mt.ID),ne)){var Cs=ge.bucketInstanceId,ul=V.collisionCircleArrays[Cs];ul===void 0&&(ul=V.collisionCircleArrays[Cs]=new Dr);for(var Jc=0;Jc=0;--ro){var po=Gr[ro];Pr(ge.symbolInstances.get(po),ge.collisionArrays[po])}else for(var Wo=J.symbolInstanceStart;Wo=0&&(J.text.placedSymbolArray.get(Ne).crossTileID=ie>=0&&Ne!==ie?0:ne.crossTileID)}},io.prototype.markUsedOrientation=function(J,le,ne){for(var V=le===i.WritingMode.horizontal||le===i.WritingMode.horizontalOnly?le:0,ie=le===i.WritingMode.vertical?le:0,ge=0,xe=[ne.leftJustifiedTextSymbolIndex,ne.centerJustifiedTextSymbolIndex,ne.rightJustifiedTextSymbolIndex];ge0||gn>0,Pr=vn.numIconVertices>0,Gr=V.placedOrientations[vn.crossTileID],ro=Gr===i.WritingMode.vertical,po=Gr===i.WritingMode.horizontal||Gr===i.WritingMode.horizontalOnly;if(Ir){var Wo=Gt(In.text),si=ro?on:Wo;Rt(J.text,Ln,si);var Bo=po?on:Wo;Rt(J.text,gn,Bo);var Go=In.text.isHidden();[vn.rightJustifiedTextSymbolIndex,vn.centerJustifiedTextSymbolIndex,vn.leftJustifiedTextSymbolIndex].forEach(function($s){$s>=0&&(J.text.placedSymbolArray.get($s).hidden=Go||ro?1:0)}),vn.verticalPlacedTextSymbolIndex>=0&&(J.text.placedSymbolArray.get(vn.verticalPlacedTextSymbolIndex).hidden=Go||po?1:0);var Yo=V.variableOffsets[vn.crossTileID];Yo&&V.markUsedJustification(J,Yo.anchor,vn,Gr);var Wi=V.placedOrientations[vn.crossTileID];Wi&&(V.markUsedJustification(J,"left",vn,Wi),V.markUsedOrientation(J,Wi,vn))}if(Pr){var Ho=Gt(In.icon),jo=!(dt&&vn.verticalPlacedIconSymbolIndex&&ro);if(vn.placedIconSymbolIndex>=0){var Yi=jo?Ho:on;Rt(J.icon,vn.numIconVertices,Yi),J.icon.placedSymbolArray.get(vn.placedIconSymbolIndex).hidden=In.icon.isHidden()}if(vn.verticalPlacedIconSymbolIndex>=0){var ai=jo?on:Ho;Rt(J.icon,vn.numVerticalIconVertices,ai),J.icon.placedSymbolArray.get(vn.verticalPlacedIconSymbolIndex).hidden=In.icon.isHidden()}}if(J.hasIconCollisionBoxData()||J.hasTextCollisionBoxData()){var Hi=J.collisionArrays[bn];if(Hi){var Ai=new i.Point(0,0);if(Hi.textBox||Hi.verticalTextBox){var es=!0;if(Ne){var Ar=V.variableOffsets[Jn];Ar?(Ai=go(Ar.anchor,Ar.width,Ar.height,Ar.textOffset,Ar.textBoxScale),et&&Ai._rotate(rt?V.transform.angle:-V.transform.angle)):es=!1}Hi.textBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!es||ro,Ai.x,Ai.y),Hi.verticalTextBox&&Do(J.textCollisionBox.collisionVertexArray,In.text.placed,!es||po,Ai.x,Ai.y)}var ns=!!(!po&&Hi.verticalIconBox);Hi.iconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,ns,dt?Ai.x:0,dt?Ai.y:0),Hi.verticalIconBox&&Do(J.iconCollisionBox.collisionVertexArray,In.icon.placed,!ns,dt?Ai.x:0,dt?Ai.y:0)}}},Xt=0;XtJ},io.prototype.setStale=function(){this.stale=!0};var jn=Math.pow(2,25),Rr=Math.pow(2,24),On=Math.pow(2,17),Yn=Math.pow(2,16),ir=Math.pow(2,9),kr=Math.pow(2,8),Er=Math.pow(2,1);function Gt(J){if(J.opacity===0&&!J.placed)return 0;if(J.opacity===1&&J.placed)return 4294967295;var le=J.placed?1:0,ne=Math.floor(127*J.opacity);return ne*jn+le*Rr+ne*On+le*Yn+ne*ir+le*kr+ne*Er+le}var on=0,an=function(J){this._sortAcrossTiles=J.layout.get("symbol-z-order")!=="viewport-y"&&J.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};an.prototype.continuePlacement=function(J,le,ne,V,ie){for(var ge=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var xe=le[J[this._currentPlacementIndex]],Ee=this.placement.collisionIndex.transform.zoom;if(xe.type==="symbol"&&(!xe.minzoom||xe.minzoom<=Ee)&&(!xe.maxzoom||xe.maxzoom>Ee)){if(this._inProgressLayer||(this._inProgressLayer=new an(xe)),this._inProgressLayer.continuePlacement(ne[xe.source],this.placement,this._showCollisionBoxes,xe,ge))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Tn.prototype.commit=function(J){return this.placement.commit(J),this.placement};var zn=512/i.EXTENT/2,Gn=function(J,le,ne){this.tileID=J,this.indexedSymbolInstances={},this.bucketInstanceId=ne;for(var V=0;VJ.overscaledZ)for(var Ee in xe){var Ne=xe[Ee];Ne.tileID.isChildOf(J)&&Ne.findMatches(le.symbolInstances,J,ie)}else{var et=xe[J.scaledTo(Number(ge)).key];et&&et.findMatches(le.symbolInstances,J,ie)}}for(var rt=0;rt1?"@2x":"",dt=i.getJSON(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".json"),i.ResourceType.SpriteJSON),function(Mt,Xt){dt=null,et||(et=Mt,Ee=Xt,Rt())}),gt=i.getImage(ge.transformRequest(ge.normalizeSpriteURL(ie,rt,".png"),i.ResourceType.SpriteImage),function(Mt,Xt){gt=null,et||(et=Mt,Ne=Xt,Rt())});function Rt(){if(et)xe(et);else if(Ee&&Ne){var Mt=i.browser.getImageData(Ne),Xt={};for(var dn in Ee){var bn=Ee[dn],vn=bn.width,Ln=bn.height,gn=bn.x,Jn=bn.y,pn=bn.sdf,In=bn.pixelRatio,Ir=bn.stretchX,Pr=bn.stretchY,Gr=bn.content,ro=new i.RGBAImage({width:vn,height:Ln});i.RGBAImage.copy(Mt,ro,{x:gn,y:Jn},{x:0,y:0},{width:vn,height:Ln}),Xt[dn]={data:ro,pixelRatio:In,sdf:pn,stretchX:Ir,stretchY:Pr,content:Gr}}xe(null,Xt)}}return{cancel:function(){dt&&(dt.cancel(),dt=null),gt&&(gt.cancel(),gt=null)}}}(ne,this.map._requestManager,function(ie,ge){if(V._spriteRequest=null,ie)V.fire(new i.ErrorEvent(ie));else if(ge)for(var xe in ge)V.imageManager.addImage(xe,ge[xe]);V.imageManager.setLoaded(!0),V._availableImages=V.imageManager.listImages(),V.dispatcher.broadcast("setImages",V._availableImages),V.fire(new i.Event("data",{dataType:"style"}))})},le.prototype._validateLayer=function(ne){var V=this.sourceCaches[ne.source];if(V){var ie=ne.sourceLayer;if(ie){var ge=V.getSource();(ge.type==="geojson"||ge.vectorLayerIds&&ge.vectorLayerIds.indexOf(ie)===-1)&&this.fire(new i.ErrorEvent(new Error('Source layer "'+ie+'" does not exist on source "'+ge.id+'" as specified by style layer "'+ne.id+'"')))}}},le.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var ne in this.sourceCaches)if(!this.sourceCaches[ne].loaded())return!1;return!!this.imageManager.isLoaded()},le.prototype._serializeLayers=function(ne){for(var V=[],ie=0,ge=ne;ie0)throw new Error("Unimplemented: "+ge.map(function(xe){return xe.command}).join(", ")+".");return ie.forEach(function(xe){xe.command!=="setTransition"&&V[xe.command].apply(V,xe.args)}),this.stylesheet=ne,!0},le.prototype.addImage=function(ne,V){if(this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(ne,V),this._afterImageUpdated(ne)},le.prototype.updateImage=function(ne,V){this.imageManager.updateImage(ne,V)},le.prototype.getImage=function(ne){return this.imageManager.getImage(ne)},le.prototype.removeImage=function(ne){if(!this.getImage(ne))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(ne),this._afterImageUpdated(ne)},le.prototype._afterImageUpdated=function(ne){this._availableImages=this.imageManager.listImages(),this._changedImages[ne]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},le.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},le.prototype.addSource=function(ne,V,ie){var ge=this;if(ie===void 0&&(ie={}),this._checkLoaded(),this.sourceCaches[ne]!==void 0)throw new Error("There is already a source with this ID");if(!V.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(V).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(V.type)>=0&&this._validate(i.validateStyle.source,"sources."+ne,V,null,ie))){this.map&&this.map._collectResourceTiming&&(V.collectResourceTiming=!0);var xe=this.sourceCaches[ne]=new Vt(ne,V,this.dispatcher);xe.style=this,xe.setEventedParent(this,function(){return{isSourceLoaded:ge.loaded(),source:xe.serialize(),sourceId:ne}}),xe.onAdd(this.map),this._changed=!0}},le.prototype.removeSource=function(ne){if(this._checkLoaded(),this.sourceCaches[ne]===void 0)throw new Error("There is no source with this ID");for(var V in this._layers)if(this._layers[V].source===ne)return this.fire(new i.ErrorEvent(new Error('Source "'+ne+'" cannot be removed while layer "'+V+'" is using it.')));var ie=this.sourceCaches[ne];delete this.sourceCaches[ne],delete this._updatedSources[ne],ie.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:ne})),ie.setEventedParent(null),ie.clearTiles(),ie.onRemove&&ie.onRemove(this.map),this._changed=!0},le.prototype.setGeoJSONSourceData=function(ne,V){this._checkLoaded(),this.sourceCaches[ne].getSource().setData(V),this._changed=!0},le.prototype.getSource=function(ne){return this.sourceCaches[ne]&&this.sourceCaches[ne].getSource()},le.prototype.addLayer=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=ne.id;if(this.getLayer(ge))this.fire(new i.ErrorEvent(new Error('Layer with id "'+ge+'" already exists on this map')));else{var xe;if(ne.type==="custom"){if(Cr(this,i.validateCustomStyleLayer(ne)))return;xe=i.createStyleLayer(ne)}else{if(typeof ne.source=="object"&&(this.addSource(ge,ne.source),ne=i.clone$1(ne),ne=i.extend(ne,{source:ge})),this._validate(i.validateStyle.layer,"layers."+ge,ne,{arrayIndex:-1},ie))return;xe=i.createStyleLayer(ne),this._validateLayer(xe),xe.setEventedParent(this,{layer:{id:ge}}),this._serializedLayers[xe.id]=xe.serialize()}var Ee=V?this._order.indexOf(V):this._order.length;if(V&&Ee===-1)this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.')));else{if(this._order.splice(Ee,0,ge),this._layerOrderChanged=!0,this._layers[ge]=xe,this._removedLayers[ge]&&xe.source&&xe.type!=="custom"){var Ne=this._removedLayers[ge];delete this._removedLayers[ge],Ne.type!==xe.type?this._updatedSources[xe.source]="clear":(this._updatedSources[xe.source]="reload",this.sourceCaches[xe.source].pause())}this._updateLayer(xe),xe.onAdd&&xe.onAdd(this.map)}}},le.prototype.moveLayer=function(ne,V){if(this._checkLoaded(),this._changed=!0,this._layers[ne]){if(ne!==V){var ie=this._order.indexOf(ne);this._order.splice(ie,1);var ge=V?this._order.indexOf(V):this._order.length;V&&ge===-1?this.fire(new i.ErrorEvent(new Error('Layer with id "'+V+'" does not exist on this map.'))):(this._order.splice(ge,0,ne),this._layerOrderChanged=!0)}}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be moved.")))},le.prototype.removeLayer=function(ne){this._checkLoaded();var V=this._layers[ne];if(V){V.setEventedParent(null);var ie=this._order.indexOf(ne);this._order.splice(ie,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[ne]=V,delete this._layers[ne],delete this._serializedLayers[ne],delete this._updatedLayers[ne],delete this._updatedPaintProps[ne],V.onRemove&&V.onRemove(this.map)}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be removed.")))},le.prototype.getLayer=function(ne){return this._layers[ne]},le.prototype.hasLayer=function(ne){return ne in this._layers},le.prototype.setLayerZoomRange=function(ne,V,ie){this._checkLoaded();var ge=this.getLayer(ne);ge?ge.minzoom===V&&ge.maxzoom===ie||(V!=null&&(ge.minzoom=V),ie!=null&&(ge.maxzoom=ie),this._updateLayer(ge)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot have zoom extent.")))},le.prototype.setFilter=function(ne,V,ie){ie===void 0&&(ie={}),this._checkLoaded();var ge=this.getLayer(ne);if(ge){if(!i.deepEqual(ge.filter,V))return V==null?(ge.filter=void 0,void this._updateLayer(ge)):void(this._validate(i.validateStyle.filter,"layers."+ge.id+".filter",V,null,ie)||(ge.filter=i.clone$1(V),this._updateLayer(ge)))}else this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be filtered.")))},le.prototype.getFilter=function(ne){return i.clone$1(this.getLayer(ne).filter)},le.prototype.setLayoutProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getLayoutProperty(V),ie)||(xe.setLayoutProperty(V,ie,ge),this._updateLayer(xe)):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getLayoutProperty=function(ne,V){var ie=this.getLayer(ne);if(ie)return ie.getLayoutProperty(V);this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style.")))},le.prototype.setPaintProperty=function(ne,V,ie,ge){ge===void 0&&(ge={}),this._checkLoaded();var xe=this.getLayer(ne);xe?i.deepEqual(xe.getPaintProperty(V),ie)||(xe.setPaintProperty(V,ie,ge)&&this._updateLayer(xe),this._changed=!0,this._updatedPaintProps[ne]=!0):this.fire(new i.ErrorEvent(new Error("The layer '"+ne+"' does not exist in the map's style and cannot be styled.")))},le.prototype.getPaintProperty=function(ne,V){return this.getLayer(ne).getPaintProperty(V)},le.prototype.setFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=ne.sourceLayer,xe=this.sourceCaches[ie];if(xe!==void 0){var Ee=xe.getSource().type;Ee==="geojson"&&ge?this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ee!=="vector"||ge?(ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),xe.setFeatureState(ge,ne.id,V)):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.removeFeatureState=function(ne,V){this._checkLoaded();var ie=ne.source,ge=this.sourceCaches[ie];if(ge!==void 0){var xe=ge.getSource().type,Ee=xe==="vector"?ne.sourceLayer:void 0;xe!=="vector"||Ee?V&&typeof ne.id!="string"&&typeof ne.id!="number"?this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):ge.removeFeatureState(Ee,ne.id,V):this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+ie+"' does not exist in the map's style.")))},le.prototype.getFeatureState=function(ne){this._checkLoaded();var V=ne.source,ie=ne.sourceLayer,ge=this.sourceCaches[V];if(ge!==void 0){if(ge.getSource().type!=="vector"||ie)return ne.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ge.getFeatureState(ie,ne.id);this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new i.ErrorEvent(new Error("The source '"+V+"' does not exist in the map's style.")))},le.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},le.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(ne){return ne.serialize()}),layers:this._serializeLayers(this._order)},function(ne){return ne!==void 0})},le.prototype._updateLayer=function(ne){this._updatedLayers[ne.id]=!0,ne.source&&!this._updatedSources[ne.source]&&this.sourceCaches[ne.source].getSource().type!=="raster"&&(this._updatedSources[ne.source]="reload",this.sourceCaches[ne.source].pause()),this._changed=!0},le.prototype._flattenAndSortRenderedFeatures=function(ne){for(var V=this,ie=function(Gr){return V._layers[Gr].type==="fill-extrusion"},ge={},xe=[],Ee=this._order.length-1;Ee>=0;Ee--){var Ne=this._order[Ee];if(ie(Ne)){ge[Ne]=Ee;for(var et=0,rt=ne;et=0;dn--){var bn=this._order[dn];if(ie(bn))for(var vn=xe.length-1;vn>=0;vn--){var Ln=xe[vn].feature;if(ge[Ln.layer.id] 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),bh=_s(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),xh=_s(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -2814,9 +2814,9 @@ uniform `+rt+" "+dt+" u_"+gt+`; #else `+rt+" "+dt+" "+gt+" = u_"+gt+`; #endif -`}),staticAttributes:V,staticUniforms:xe}}var ma=Object.freeze({__proto__:null,prelude:Mn,background:Fn,backgroundPattern:dr,circle:xr,clippingMask:Oo,heatmap:mi,heatmapTexture:Di,collisionBox:To,collisionCircle:Ia,debug:Ds,fill:fs,fillOutline:zi,fillOutlinePattern:yl,fillPattern:Bs,fillExtrusion:yf,fillExtrusionPattern:il,hillshadePrepare:nf,hillshade:nh,line:gp,lineGradient:Qs,linePattern:bh,lineSDF:Bl,raster:Tc,symbolIcon:iu,symbolSDF:au,symbolTextAndIcon:zf}),mu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Uc(J){for(var le=[],ne=0;ne>16,Ee>>16],u_pixel_coord_lower:[65535&xe,65535&Ee]}}Kf.prototype.draw=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt,Mt,Xt){var dn,bn=J.gl;if(!this.failedToCreate){for(var vn in J.program.set(this.program),J.setDepthMode(ne),J.setStencilMode(V),J.setColorMode(ie),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[vn].set(xe[vn]);Rt&&Rt.setUniforms(J,this.binderUniforms,dt,{zoom:gt});for(var Ln=(dn={},dn[bn.LINES]=2,dn[bn.TRIANGLES]=3,dn[bn.LINE_STRIP]=1,dn)[le],gn=0,Jn=rt.get();gn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ie.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:Cu(ie.paint.get("raster-hue-rotate"))};var ge,xe};function Cu(J){J*=Math.PI/180;var le=Math.sin(J),ne=Math.cos(J);return[(2*ne+1)/3,(-Math.sqrt(3)*le-ne+1)/3,(Math.sqrt(3)*le-ne+1)/3]}var ed,Bu=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){var rt=ie.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:rt.width/rt.height,u_fade_change:ie.options.fadeDuration?ie.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Ee,u_is_text:+Ne,u_pitch_with_map:+V,u_texsize:et,u_texture:0}},vd=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt){var dt=ie.transform;return i.extend(Bu(J,le,ne,V,ie,ge,xe,Ee,Ne,et),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},cs=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){return i.extend(vd(J,le,ne,V,ie,ge,xe,Ee,!0,Ne,!0),{u_texsize_icon:et,u_texture_icon:1})},oh=function(J,le,ne){return{u_matrix:J,u_opacity:le,u_color:ne}},Jh=function(J,le,ne,V,ie,ge){return i.extend(function(xe,Ee,Ne,et){var rt=Ne.imageManager.getPattern(xe.from.toString()),dt=Ne.imageManager.getPattern(xe.to.toString()),gt=Ne.imageManager.getPixelSize(),Rt=gt.width,Mt=gt.height,Xt=Math.pow(2,et.tileID.overscaledZ),dn=et.tileSize*Math.pow(2,Ne.transform.tileZoom)/Xt,bn=dn*(et.tileID.canonical.x+et.tileID.wrap*Xt),vn=dn*et.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Rt,Mt],u_mix:Ee.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Ee.fromScale,u_scale_b:Ee.toScale,u_tile_units_to_pixels:1/Mo(et,1,Ne.transform.tileZoom),u_pixel_coord_upper:[bn>>16,vn>>16],u_pixel_coord_lower:[65535&bn,65535&vn]}}(V,ge,ne,ie),{u_matrix:J,u_opacity:le})},xh={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function xf(J,le,ne,V,ie,ge,xe){for(var Ee=J.context,Ne=Ee.gl,et=J.useProgram("collisionBox"),rt=[],dt=0,gt=0,Rt=0;Rt0){var gn=i.create(),Jn=bn;i.mul(gn,dn.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(gn,gn,dn.placementViewportMatrix),rt.push({circleArray:Ln,circleOffset:gt,transform:Jn,invTransform:gn}),gt=dt+=Ln.length/4}vn&&et.draw(Ee,Ne.LINES,Pn.disabled,vt.disabled,J.colorModeForRenderPass(),st.disabled,Tu(bn,J.transform,Xt),ne.id,vn.layoutVertexBuffer,vn.indexBuffer,vn.segments,null,J.transform.zoom,null,null,vn.collisionVertexBuffer)}}if(xe&&rt.length){var pn=J.useProgram("collisionCircle"),In=new i.StructArrayLayout2f1f2i16;In.resize(4*dt),In._trim();for(var Ir=0,Pr=0,Gr=rt;Pr=0&&(Mt[dn.associatedIconIndex]={shiftedAnchor:Gr,angle:ro})}else co(dn.numGlyphs,gt)}if(rt){Rt.clear();for(var Wo=J.icon.placedSymbolArray,si=0;si0){var xe=i.browser.now(),Ee=(xe-J.timeAdded)/ge,Ne=le?(xe-le.timeAdded)/ge:-1,et=ne.getSource(),rt=ie.coveringZoomLevel({tileSize:et.tileSize,roundZoom:et.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),gt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Ee:1-Ne,0,1);return J.refreshedUponExpiration&&Ee>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-gt}:{opacity:gt,mix:0}}return{opacity:1,mix:0}}var ih=new i.Color(1,0,0,1),yu=new i.Color(0,1,0,1),jc=new i.Color(0,0,1,1),Nh=new i.Color(1,0,1,1),af=new i.Color(0,1,1,1);function td(J){var le=J.transform.padding;sf(J,J.transform.height-(le.top||0),3,ih),sf(J,le.bottom||0,3,yu),Bc(J,le.left||0,3,jc),Bc(J,J.transform.width-(le.right||0),3,Nh);var ne=J.transform.centerPoint;(function(V,ie,ge,xe){var Ee=20,Ne=2;Vd(V,ie-Ne/2,ge-Ee/2,Ne,Ee,xe),Vd(V,ie-Ee/2,ge-Ne/2,Ee,Ne,xe)})(J,ne.x,J.transform.height-ne.y,af)}function sf(J,le,ne,V){Vd(J,0,le+ne/2,J.transform.width,ne,V)}function Bc(J,le,ne,V){Vd(J,le-ne/2,0,ne,J.transform.height,V)}function Vd(J,le,ne,V,ie,ge){var xe=J.context,Ee=xe.gl;Ee.enable(Ee.SCISSOR_TEST),Ee.scissor(le*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio),xe.clear({color:ge}),Ee.disable(Ee.SCISSOR_TEST)}function xd(J,le,ne){var V=J.context,ie=V.gl,ge=ne.posMatrix,xe=J.useProgram("debug"),Ee=Pn.disabled,Ne=vt.disabled,et=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ie.TEXTURE0),J.emptyTexture.bind(ie.LINEAR,ie.CLAMP_TO_EDGE),xe.draw(V,ie.LINE_STRIP,Ee,Ne,et,st.disabled,ec(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ne.key).latestRawTileData,gt=dt&&dt.byteLength||0,Rt=Math.floor(gt/1024),Mt=le.getTile(ne).tileSize,Xt=512/Math.min(Mt,512)*(ne.overscaledZ/J.transform.zoom)*.5,dn=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(dn+=" => "+ne.overscaledZ),function(bn,vn){bn.initDebugOverlayCanvas();var Ln=bn.debugOverlayCanvas,gn=bn.context.gl,Jn=bn.debugOverlayCanvas.getContext("2d");Jn.clearRect(0,0,Ln.width,Ln.height),Jn.shadowColor="white",Jn.shadowBlur=2,Jn.lineWidth=1.5,Jn.strokeStyle="white",Jn.textBaseline="top",Jn.font="bold 36px Open Sans, sans-serif",Jn.fillText(vn,5,5),Jn.strokeText(vn,5,5),bn.debugOverlayTexture.update(Ln),bn.debugOverlayTexture.bind(gn.LINEAR,gn.CLAMP_TO_EDGE)}(J,dn+" "+Rt+"kb"),xe.draw(V,ie.TRIANGLES,Ee,Ne,xt.alphaBlended,st.disabled,ec(ge,i.Color.transparent,Xt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var vc={symbol:function(J,le,ne,V,ie){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ne.layout.get("text-variable-anchor")&&function(Ee,Ne,et,rt,dt,gt,Rt){for(var Mt=Ne.transform,Xt=dt==="map",dn=gt==="map",bn=0,vn=Ee;bn256&&this.clearStencil(),ne.setColorMode(xt.disabled),ne.setDepthMode(Pn.disabled);var ie=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilConfigForOverlap=function(J){var le,ne=this.context.gl,V=J.sort(function(Ne,et){return et.overscaledZ-Ne.overscaledZ}),ie=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ie+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Ee=0;Ee=0;this.currentLayer--){var Jn=this.style._layers[V[this.currentLayer]],pn=ie[Jn.source],In=et[Jn.source];this._renderTileClippingMasks(Jn,In),this.renderLayer(this,pn,Jn,In)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},gs.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ne=this.imageManager.getPattern(J.to.toString());return!le||!ne},gs.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ne=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ne]||(this.cache[ne]=new Kf(this.context,J,ma[J],le,xh[J],this._showOverdrawInspector)),this.cache[ne]},gs.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gs.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},gs.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},gs.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var yc=function(J,le){this.points=J,this.planes=le};yc.fromInvProjectionMatrix=function(J,le,ne){var V=Math.pow(2,ne),ie=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Ee=i.sub([],ie[xe[0]],ie[xe[1]]),Ne=i.sub([],ie[xe[2]],ie[xe[1]]),et=i.normalize([],i.cross([],Ee,Ne)),rt=-i.dot(et,ie[xe[1]]);return et.concat(rt)});return new yc(ie,ge)};var Cc=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Cc.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ne=i.clone$2(this.min),V=i.clone$2(this.max),ie=0;ie=0;if(ge===0)return 0;ge!==le.length&&(ne=!1)}if(ne)return 2;for(var Ee=0;Ee<3;Ee++){for(var Ne=Number.MAX_VALUE,et=-Number.MAX_VALUE,rt=0;rtthis.max[Ee]-this.min[Ee])return 0}return 1};var Nu=function(J,le,ne,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ne===void 0&&(ne=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ne)||ne<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ne,this.right=V};Nu.prototype.interpolate=function(J,le,ne){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ne)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ne)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ne)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ne)),this},Nu.prototype.getCenter=function(J,le){var ne=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ne,V)},Nu.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Nu.prototype.clone=function(){return new Nu(this.top,this.bottom,this.left,this.right)},Nu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Gs=function(J,le,ne,V,ie){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ie===void 0||ie,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ne??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Nu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ks={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Gs.prototype.clone=function(){var J=new Gs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},Ks.minZoom.get=function(){return this._minZoom},Ks.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},Ks.maxZoom.get=function(){return this._maxZoom},Ks.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},Ks.minPitch.get=function(){return this._minPitch},Ks.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},Ks.maxPitch.get=function(){return this._maxPitch},Ks.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},Ks.renderWorldCopies.get=function(){return this._renderWorldCopies},Ks.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},Ks.worldSize.get=function(){return this.tileSize*this.scale},Ks.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ks.size.get=function(){return new i.Point(this.width,this.height)},Ks.bearing.get=function(){return-this.angle/Math.PI*180},Ks.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ks.pitch.get=function(){return this._pitch/Math.PI*180},Ks.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},Ks.fov.get=function(){return this._fov/Math.PI*180},Ks.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},Ks.zoom.get=function(){return this._zoom},Ks.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},Ks.center.get=function(){return this._center},Ks.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},Ks.padding.get=function(){return this._edgeInsets.toJSON()},Ks.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},Ks.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Gs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Gs.prototype.interpolatePadding=function(J,le,ne){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ne),this._constrain(),this._calcMatrices()},Gs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Gs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ne=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ie=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ne.x,V.x,ie.x,ge.x)),Ee=Math.floor(Math.max(ne.x,V.x,ie.x,ge.x)),Ne=xe-1;Ne<=Ee+1;Ne++)Ne!==0&&le.push(new i.UnwrappedTileID(Ne,J));return le},Gs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ne=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ie=Math.pow(2,le),ge=[ie*V.x,ie*V.y,0],xe=yc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Ee=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ee=le);var Ne=function(Gr){return{aabb:new Cc([Gr*ie,0,0],[(Gr+1)*ie,ie,0]),zoom:0,x:0,y:0,wrap:Gr,fullyVisible:!1}},et=[],rt=[],dt=le,gt=J.reparseOverscaled?ne:le;if(this._renderWorldCopies)for(var Rt=1;Rt<=3;Rt++)et.push(Ne(-Rt)),et.push(Ne(Rt));for(et.push(Ne(0));et.length>0;){var Mt=et.pop(),Xt=Mt.x,dn=Mt.y,bn=Mt.fullyVisible;if(!bn){var vn=Mt.aabb.intersects(xe);if(vn===0)continue;bn=vn===2}var Ln=Mt.aabb.distanceX(ge),gn=Mt.aabb.distanceY(ge),Jn=Math.max(Math.abs(Ln),Math.abs(gn)),pn=3+(1<pn&&Mt.zoom>=Ee)rt.push({tileID:new i.OverscaledTileID(Mt.zoom===dt?gt:Mt.zoom,Mt.wrap,Mt.zoom,Xt,dn),distanceSq:i.sqrLen([ge[0]-.5-Xt,ge[1]-.5-dn])});else for(var In=0;In<4;In++){var Ir=(Xt<<1)+In%2,Pr=(dn<<1)+(In>>1);et.push({aabb:Mt.aabb.quadrant(In),zoom:Mt.zoom+1,x:Ir,y:Pr,wrap:Mt.wrap,fullyVisible:bn})}}return rt.sort(function(Gr,ro){return Gr.distanceSq-ro.distanceSq}).map(function(Gr){return Gr.tileID})},Gs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},Ks.unmodified.get=function(){return this._unmodified},Gs.prototype.zoomScale=function(J){return Math.pow(2,J)},Gs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Gs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Gs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},Ks.point.get=function(){return this.project(this.center)},Gs.prototype.setLocationAtPoint=function(J,le){var ne=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ie=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ie.x-(ne.x-V.x),ie.y-(ne.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Gs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Gs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Gs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Gs.prototype.coordinateLocation=function(J){return J.toLngLat()},Gs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ne=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ne,ne,this.pixelMatrixInverse);var V=le[3],ie=ne[3],ge=le[0]/V,xe=ne[0]/ie,Ee=le[1]/V,Ne=ne[1]/ie,et=le[2]/V,rt=ne[2]/ie,dt=et===rt?0:(0-et)/(rt-et);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Ee,Ne,dt)/this.worldSize)},Gs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Gs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Gs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Gs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Gs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ne=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ne])return V[ne];var ie=J.canonical,ge=this.worldSize/this.zoomScale(ie.z),xe=ie.x+Math.pow(2,ie.z)*J.wrap,Ee=i.identity(new Float64Array(16));return i.translate(Ee,Ee,[xe*ge,ie.y*ge,0]),i.scale(Ee,Ee,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Ee,le?this.alignedProjMatrix:this.projMatrix,Ee),V[ne]=new Float32Array(Ee),V[ne]},Gs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Gs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ne,V,ie=-90,ge=90,xe=-180,Ee=180,Ne=this.size,et=this._unmodified;if(this.latRange){var rt=this.latRange;ie=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-iege&&(V=ge-Xt)}if(this.lngRange){var dn=gt.x,bn=Ne.x/2;dn-bnEe&&(ne=Ee-bn)}ne===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ne!==void 0?ne:gt.x,V!==void 0?V:gt.y))),this._unmodified=et,this._constraining=!1}},Gs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ne=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ie=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ne-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Ee=ge.y,Ne=1.01*(Math.cos(Math.PI/2-this._pitch)*ie+this.cameraToCenterDistance),et=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,et,Ne),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Ee,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,gt=this.height%2/2,Rt=Math.cos(this.angle),Mt=Math.sin(this.angle),Xt=xe-Math.round(xe)+Rt*dt+Mt*gt,dn=Ee-Math.round(Ee)+Rt*gt+Mt*dt,bn=new Float64Array(rt);if(i.translate(bn,bn,[Xt>.5?Xt-1:Xt,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=bn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Gs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Gs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Gs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ne=le.x,V=le.y,ie=le.x,ge=le.y,xe=0,Ee=J;xe=3&&!J.some(function(ne){return isNaN(ne)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Ac.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var _d={linearity:.3,easing:i.bezier(0,0,.3,1)},Fh=i.extend({deceleration:2500,maxSpeed:1400},_d),$h=i.extend({deceleration:20,maxSpeed:1400},_d),vp=i.extend({deceleration:1e3,maxSpeed:360},_d),ah=i.extend({deceleration:1e3,maxSpeed:90},_d),Au=function(J){this._map=J,this.clear()};function lf(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Au.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ne=0,V=this._inertiaBuffer;ne=this._clickTolerance||this._map.fire(new vs(J.type,this._map,J))},nc.prototype.dblclick=function(J){return this._firePreventable(new vs(J.type,this._map,J))},nc.prototype.mouseover=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.mouseout=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.touchstart=function(J){return this._firePreventable(new cl(J.type,this._map,J))},nc.prototype.touchmove=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchend=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchcancel=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},nc.prototype.isEnabled=function(){return!0},nc.prototype.isActive=function(){return!1},nc.prototype.enable=function(){},nc.prototype.disable=function(){};var Qc=function(J){this._map=J};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(J){this._map.fire(new vs(J.type,this._map,J))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new vs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new vs(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var ts=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function wi(J,le){for(var ne={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ne.length===this.numTouches&&(this.centroid=function(V){for(var ie=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},bu.prototype.touchend=function(J,le,ne){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ne.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var wd=function(J){this.singleTap=new bu(J),this.numTaps=J.numTaps,this.reset()};wd.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},wd.prototype.touchstart=function(J,le,ne){this.singleTap.touchstart(J,le,ne)},wd.prototype.touchmove=function(J,le,ne){this.singleTap.touchmove(J,le,ne)},wd.prototype.touchend=function(J,le,ne){var V=this.singleTap.touchend(J,le,ne);if(V){var ie=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ie&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var Ol=function(){this._zoomIn=new wd({numTouches:1,numTaps:2}),this._zoomOut=new wd({numTouches:2,numTaps:1}),this.reset()};Ol.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Ol.prototype.touchstart=function(J,le,ne){this._zoomIn.touchstart(J,le,ne),this._zoomOut.touchstart(J,le,ne)},Ol.prototype.touchmove=function(J,le,ne){this._zoomIn.touchmove(J,le,ne),this._zoomOut.touchmove(J,le,ne)},Ol.prototype.touchend=function(J,le,ne){var V=this,ie=this._zoomIn.touchend(J,le,ne),ge=this._zoomOut.touchend(J,le,ne);return ie?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ie)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},Ol.prototype.touchcancel=function(){this.reset()},Ol.prototype.enable=function(){this._enabled=!0},Ol.prototype.disable=function(){this._enabled=!1,this.reset()},Ol.prototype.isEnabled=function(){return this._enabled},Ol.prototype.isActive=function(){return this._active};var ds={};ds[0]=1,ds[2]=2;var zc=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};zc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},zc.prototype._correctButton=function(J,le){return!1},zc.prototype._move=function(J,le){return{}},zc.prototype.mousedown=function(J,le){if(!this._lastPoint){var ne=w.mouseButton(J);this._correctButton(J,ne)&&(this._lastPoint=le,this._eventButton=ne)}},zc.prototype.mousemoveWindow=function(J,le){var ne=this._lastPoint;if(ne){if(J.preventDefault(),function(V,ie){var ge=ds[ie];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ne)0&&(this._active=!0);var V=wi(ne,le),ie=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Ee in V){var Ne=V[Ee],et=this._touches[Ee];et&&(ie._add(Ne),ge._add(Ne.sub(et)),xe++,V[Ee]=Ne)}if(this._touches=V,!(xeMath.abs(J.x)}var Kc=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ne){this._lastPoints=ne,xc(ne[0].sub(ne[1]))&&(this._valid=!1)},le.prototype._move=function(ne,V,ie){var ge=ne[0].sub(this._lastPoints[0]),xe=ne[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ie.timeStamp),this._valid)return this._lastPoints=ne,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ne,V,ie){if(this._valid!==void 0)return this._valid;var ge=ne.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ie),ie-this._firstMove<100&&void 0;var Ee=ne.y>0==V.y>0;return xc(ne)&&xc(V)&&Ee}},le}(rs),jd={panStep:100,bearingStep:15,pitchStep:10},ii=function(){var J=jd;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function nd(J){return J*(2-J)}ii.prototype.reset=function(){this._active=!1},ii.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ne=0,V=0,ie=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ie=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ie=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ie=0),{cameraAnimation:function(Ee){var Ne=Ee.getZoom();Ee.easeTo({duration:300,easeId:"keyboardHandler",easing:nd,zoom:ne?Math.round(Ne)+ne*(J.shiftKey?2:1):Ne,bearing:Ee.getBearing()+V*le._bearingStep,pitch:Ee.getPitch()+ie*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Ee.getCenter()},{originalEvent:J})}}}},ii.prototype.enable=function(){this._enabled=!0},ii.prototype.disable=function(){this._enabled=!1,this.reset()},ii.prototype.isEnabled=function(){return this._enabled},ii.prototype.isActive=function(){return this._active},ii.prototype.disableRotation=function(){this._rotationDisabled=!0},ii.prototype.enableRotation=function(){this._rotationDisabled=!1};var al=4.000244140625,Yl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Yl.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Yl.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Yl.prototype.isEnabled=function(){return!!this._enabled},Yl.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Yl.prototype.isZooming=function(){return!!this._zooming},Yl.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Yl.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yl.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ne=i.browser.now(),V=ne-(this._lastWheelEventTime||0);this._lastWheelEventTime=ne,le!==0&&le%al==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Yl.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Yl.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Yl.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ne=this._type==="wheel"&&Math.abs(this._delta)>al?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ne)));this._delta<0&&V!==0&&(V=1/V);var ie=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ie*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Ee=this._startZoom,Ne=this._easing,et=!1;if(this._type==="wheel"&&Ee&&Ne){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Ne(rt);ge=i.number(Ee,xe,dt),rt<1?this._frameId||(this._frameId=!0):et=!0}else ge=xe,et=!0;return this._active=!0,et&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!et,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Yl.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ne=this._prevEase,V=(i.browser.now()-ne.start)/ne.duration,ie=ne.easing(V+.01)-ne.easing(V),ge=.27/Math.sqrt(ie*ie+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Yl.prototype.reset=function(){this._active=!1};var uf=function(J,le){this._clickZoom=J,this._tapZoom=le};uf.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},uf.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},uf.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},uf.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var hs=function(){this.reset()};hs.prototype.reset=function(){this._active=!1},hs.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ne){ne.easeTo({duration:300,zoom:ne.getZoom()+(J.shiftKey?-1:1),around:ne.unproject(le)},{originalEvent:J})}}},hs.prototype.enable=function(){this._enabled=!0},hs.prototype.disable=function(){this._enabled=!1,this.reset()},hs.prototype.isEnabled=function(){return this._enabled},hs.prototype.isActive=function(){return this._active};var Mc=function(){this._tap=new wd({numTouches:1,numTaps:1}),this.reset()};Mc.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mc.prototype.touchstart=function(J,le,ne){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ne.length>0&&(this._swipePoint=le[0],this._swipeTouch=ne[0].identifier):this._tap.touchstart(J,le,ne))},Mc.prototype.touchmove=function(J,le,ne){if(this._tapTime){if(this._swipePoint){if(ne[0].identifier!==this._swipeTouch)return;var V=le[0],ie=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ie/128}}}else this._tap.touchmove(J,le,ne)},Mc.prototype.touchend=function(J,le,ne){this._tapTime?this._swipePoint&&ne.length===0&&this.reset():this._tap.touchend(J,le,ne)&&(this._tapTime=J.timeStamp)},Mc.prototype.touchcancel=function(){this.reset()},Mc.prototype.enable=function(){this._enabled=!0},Mc.prototype.disable=function(){this._enabled=!1,this.reset()},Mc.prototype.isEnabled=function(){return this._enabled},Mc.prototype.isActive=function(){return this._active};var Eu=function(J,le,ne){this._el=J,this._mousePan=le,this._touchPan=ne};Eu.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Eu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Eu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Eu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xu=function(J,le,ne){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ne};xu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ws=function(J,le,ne,V){this._el=J,this._touchZoom=le,this._touchRotate=ne,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};ws.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ws.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ws.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ws.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ws.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ws.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Fu=function(J){return J.zoom||J.drag||J.pitch||J.rotate},su=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Ca(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ls=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Au(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ne=this._el;this._listeners=[[ne,"touchstart",{passive:!0}],[ne,"touchmove",{passive:!1}],[ne,"touchend",void 0],[ne,"touchcancel",void 0],[ne,"mousedown",void 0],[ne,"mousemove",void 0],[ne,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ne,"mouseover",void 0],[ne,"mouseout",void 0],[ne,"dblclick",void 0],[ne,"click",void 0],[ne,"keydown",{capture:!1}],[ne,"keyup",void 0],[ne,"wheel",{passive:!1}],[ne,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ie=this._listeners;Vxe?Math.min(2,pn):Math.max(.5,pn),ro=Math.pow(Gr,1-Ir),po=ge.unproject(gn.add(Jn.mult(Ir*ro)).mult(Pr));ge.setLocationAtPoint(ge.renderWorldCopies?po.wrap():po,Xt)}ie._fireMoveEvents(V)},function(Ir){ie._afterEase(V,Ir)},ne),this},le.prototype._prepareEase=function(ne,V,ie){ie===void 0&&(ie={}),this._moving=!0,V||ie.moving||this.fire(new i.Event("movestart",ne)),this._zooming&&!ie.zooming&&this.fire(new i.Event("zoomstart",ne)),this._rotating&&!ie.rotating&&this.fire(new i.Event("rotatestart",ne)),this._pitching&&!ie.pitching&&this.fire(new i.Event("pitchstart",ne))},le.prototype._fireMoveEvents=function(ne){this.fire(new i.Event("move",ne)),this._zooming&&this.fire(new i.Event("zoom",ne)),this._rotating&&this.fire(new i.Event("rotate",ne)),this._pitching&&this.fire(new i.Event("pitch",ne))},le.prototype._afterEase=function(ne,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ie=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ie&&this.fire(new i.Event("zoomend",ne)),ge&&this.fire(new i.Event("rotateend",ne)),xe&&this.fire(new i.Event("pitchend",ne)),this.fire(new i.Event("moveend",ne))}},le.prototype.flyTo=function(ne,V){var ie=this;if(!ne.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ne=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ne);var xe=this.transform,Ee=this.getZoom(),Ne=this.getBearing(),et=this.getPitch(),rt=this.getPadding(),dt="zoom"in ne?i.clamp(+ne.zoom,xe.minZoom,xe.maxZoom):Ee,gt="bearing"in ne?this._normalizeBearing(ne.bearing,Ne):Ne,Rt="pitch"in ne?+ne.pitch:et,Mt="padding"in ne?ne.padding:xe.padding,Xt=xe.zoomScale(dt-Ee),dn=i.Point.convert(ne.offset),bn=xe.centerPoint.add(dn),vn=xe.pointLocation(bn),Ln=i.LngLat.convert(ne.center||vn);this._normalizeCenter(Ln);var gn=xe.project(vn),Jn=xe.project(Ln).sub(gn),pn=ne.curve,In=Math.max(xe.width,xe.height),Ir=In/Xt,Pr=Jn.mag();if("minZoom"in ne){var Gr=i.clamp(Math.min(ne.minZoom,Ee,dt),xe.minZoom,xe.maxZoom),ro=In/xe.zoomScale(Gr-Ee);pn=Math.sqrt(ro/Pr*2)}var po=pn*pn;function Wo(ai){var Hi=(Ir*Ir-In*In+(ai?-1:1)*po*po*Pr*Pr)/(2*(ai?Ir:In)*po*Pr);return Math.log(Math.sqrt(Hi*Hi+1)-Hi)}function si(ai){return(Math.exp(ai)-Math.exp(-ai))/2}function Bo(ai){return(Math.exp(ai)+Math.exp(-ai))/2}var Go=Wo(0),Yo=function(ai){return Bo(Go)/Bo(Go+pn*ai)},Wi=function(ai){return In*((Bo(Go)*(si(Hi=Go+pn*ai)/Bo(Hi))-si(Go))/po)/Pr;var Hi},Ho=(Wo(1)-Go)/pn;if(Math.abs(Pr)<1e-6||!isFinite(Ho)){if(Math.abs(In-Ir)<1e-6)return this.easeTo(ne,V);var jo=Irne.maxDuration&&(ne.duration=0),this._zooming=!0,this._rotating=Ne!==gt,this._pitching=Rt!==et,this._padding=!xe.isPaddingEqual(Mt),this._prepareEase(V,!1),this._ease(function(ai){var Hi=ai*Ho,Ai=1/Yo(Hi);xe.zoom=ai===1?dt:Ee+xe.scaleZoom(Ai),ie._rotating&&(xe.bearing=i.number(Ne,gt,ai)),ie._pitching&&(xe.pitch=i.number(et,Rt,ai)),ie._padding&&(xe.interpolatePadding(rt,Mt,ai),bn=xe.centerPoint.add(dn));var Ja=ai===1?Ln:xe.unproject(gn.add(Jn.mult(Wi(Hi))).mult(Ai));xe.setLocationAtPoint(xe.renderWorldCopies?Ja.wrap():Ja,bn),ie._fireMoveEvents(V)},function(){return ie._afterEase(V)},ne),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ne,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ie=this._onEaseEnd;delete this._onEaseEnd,ie.call(this,V)}if(!ne){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ne,V,ie){ie.animate===!1||ie.duration===0?(ne(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ie,this._onEaseFrame=ne,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ne=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ne)),ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ne,V){ne=i.wrap(ne,-180,180);var ie=Math.abs(ne-V);return Math.abs(ne-360-V)180?-360:ie<-180?360:0}},le}(i.Evented),_u=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_u.prototype.getDefaultPosition=function(){return"bottom-right"},_u.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_u.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_u.prototype._setElementTitle=function(J,le){var ne=this._map._getUIString("AttributionControl."+le);J.title=ne,J.setAttribute("aria-label",ne)},_u.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_u.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ne=le.reduce(function(V,ie,ge){return ie.value&&(V+=ie.key+"="+ie.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_u.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wt=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wt.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wt.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wt.prototype.getDefaultPosition=function(){return"bottom-left"},wt.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},wt.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},wt.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var Kt=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Kt.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},Kt.prototype.remove=function(J){for(var le=this._currentlyRunning,ne=0,V=le?this._queue.concat(le):this._queue;neV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Bi)throw new Error("maxPitch must be less than or equal to 60");var ge=new Gs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new Kt,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},En,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof wr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ie._update(!1)}),this.on("moveend",function(){return ie._update(!1)}),this.on("zoom",function(){return ie._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ls(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Ac(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new _u({customAttribution:V.customAttribution})),this.addControl(new wt,V.logoPosition),this.on("style.load",function(){ie.transform.unmodified&&ie.jumpTo(ie.style.stylesheet)}),this.on("data",function(Ee){ie._update(Ee.dataType==="style"),ie.fire(new i.Event(Ee.dataType+"data",Ee))}),this.on("dataloading",function(Ee){ie.fire(new i.Event(Ee.dataType+"dataloading",Ee))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ne={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ie){if(ie===void 0&&(ie=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ie];return ie.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ie=this._controls.indexOf(V);return ie>-1&&this._controls.splice(ie,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ie=this._containerDimensions(),ge=ie[0],xe=ie[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Ee=!this._moving;return Ee&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Ee&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Bi)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ie,ge){var xe,Ee=this;if(V==="mouseenter"||V==="mouseover"){var Ne=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length?Ne||(Ne=!0,ge.call(Ee,new vs(V,Ee,rt.originalEvent,{features:dt}))):Ne=!1},mouseout:function(){Ne=!1}}}}if(V==="mouseleave"||V==="mouseout"){var et=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){(Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[]).length?et=!0:et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))},mouseout:function(rt){et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))}}}}return{layer:ie,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length&&(rt.features=dt,ge.call(Ee,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ie,ge){if(ge===void 0)return J.prototype.on.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Ee,xe.delegates[Ee]);return this},le.prototype.once=function(V,ie,ge){if(ge===void 0)return J.prototype.once.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in xe.delegates)this.once(Ee,xe.delegates[Ee]);return this},le.prototype.off=function(V,ie,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ie):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Ee){for(var Ne=Ee[V],et=0;et180;){var xe=ne.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ne.width&&xe.y<=ne.height)break;J.lng>ne.center.lng?J.lng-=360:J.lng+=360}return J}Fs.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},Fs.prototype.move=function(J,le){var ne=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ne.setBearing(ne.getBearing()+V.bearingDelta),this.mousePitch){var ie=this.mousePitch.mousemoveWindow(J,le);ie&&ie.pitchDelta&&ne.setPitch(ne.getPitch()+ie.pitchDelta)}},Fs.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},Fs.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},Fs.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},Fs.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},Fs.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},Fs.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ne.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ne){this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ne){return this._draggable=!!ne,this._map&&(ne?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ne){return this._rotation=ne||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ne){return this._rotationAlignment=ne||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ne){return this._pitchAlignment=ne&&ne!=="auto"?ne:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),sh={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},_c=0,Xl=!1,pl=function(J){function le(ne){J.call(this),this.options=i.extend({},sh,ne),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ne){return this._map=ne,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,Pl!==void 0?V(Pl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ie){Pl=ie.state!=="denied",V(Pl)}):(Pl=!!i.window.navigator.geolocation,V(Pl)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,_c=0,Xl=!1},le.prototype._isOutOfMapMaxBounds=function(ne){var V=this._map.getMaxBounds(),ie=ne.coords;return V&&(ie.longitudeV.getEast()||ie.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ne){if(this._map){if(this._isOutOfMapMaxBounds(ne))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ne)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ne,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ne),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ne),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ne)),this._finish()}},le.prototype._updateCamera=function(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude),ie=ne.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ie),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ne){if(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ne.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ne=this._map._container.clientHeight/2,V=this._map.unproject([0,ne]),ie=this._map.unproject([1,ne]),ge=V.distanceTo(ie),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ne){if(this._map){if(this.options.trackUserLocation)if(ne.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ne.code===3&&Xl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ne)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ne){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ne===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ie=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ie,this._geolocateButton.setAttribute("aria-label",ie)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Ee=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Ee||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":_c--,Xl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ne;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++_c>1?(ne={maximumAge:6e5,timeout:0},Xl=!0):(ne=this.options.positionOptions,Xl=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ne)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),Pc={maxWidth:100,unit:"metric"},Uf=function(J){this.options=i.extend({},Pc,J),i.bindAll(["_onMove","setUnit"],this)};function Os(J,le,ne){var V=ne&&ne.maxWidth||100,ie=J._container.clientHeight/2,ge=J.unproject([0,ie]),xe=J.unproject([V,ie]),Ee=ge.distanceTo(xe);if(ne&&ne.unit==="imperial"){var Ne=3.2808*Ee;Ne>5280?Si(le,V,Ne/5280,J._getUIString("ScaleControl.Miles")):Si(le,V,Ne,J._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Si(le,V,Ee/1852,J._getUIString("ScaleControl.NauticalMiles")):Ee>=1e3?Si(le,V,Ee/1e3,J._getUIString("ScaleControl.Kilometers")):Si(le,V,Ee,J._getUIString("ScaleControl.Meters"))}function Si(J,le,ne,V){var ie,ge,xe,Ee=(ie=ne,(ge=Math.pow(10,(""+Math.floor(ie)).length-1))*((xe=ie/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(et){var rt=Math.pow(10,Math.ceil(-Math.log(et)/Math.LN10));return Math.round(et*rt)/rt}(xe))),Ne=Ee/ne;J.style.width=le*Ne+"px",J.innerHTML=Ee+" "+V}Uf.prototype.getDefaultPosition=function(){return"bottom-left"},Uf.prototype._onMove=function(){Os(this._map,this._container,this.options)},Uf.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Uf.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Uf.prototype.setUnit=function(J){this.options.unit=J,Os(this._map,this._container,this.options)};var lc=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};lc.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},lc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},lc.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},lc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},lc.prototype._isFullscreen=function(){return this._fullscreen},lc.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},lc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var rd={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),kt=function(J){function le(ne){J.call(this),this.options=i.extend(Object.create(rd),ne),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ne){return this._map&&this.remove(),this._map=ne,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ne){return this._lngLat=i.LngLat.convert(ne),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ne){return this.setDOMContent(i.window.document.createTextNode(ne))},le.prototype.setHTML=function(ne){var V,ie=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ne;V=ge.firstChild;)ie.appendChild(V);return this.setDOMContent(ie)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ne){return this.options.maxWidth=ne,this._update(),this},le.prototype.setDOMContent=function(ne){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ne),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ne){this._container&&this._container.classList.add(ne)},le.prototype.removeClassName=function(ne){this._container&&this._container.classList.remove(ne)},le.prototype.setOffset=function(ne){return this.options.offset=ne,this._update(),this},le.prototype.toggleClassName=function(ne){if(this._container)return this._container.classList.toggle(ne)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ne){this._update(ne.point)},le.prototype._onMouseMove=function(ne){this._update(ne.point)},le.prototype._onDrag=function(ne){this._update(ne.point)},le.prototype._update=function(ne){var V=this,ie=this._lngLat||this._trackPointer;if(this._map&&ie&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(gt){return V._container.classList.add(gt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Wu(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ne)){var ge=this._pos=this._trackPointer&&ne?ne:this._map.project(this._lngLat),xe=this.options.anchor,Ee=It(this.options.offset);if(!xe){var Ne,et=this._container.offsetWidth,rt=this._container.offsetHeight;Ne=ge.y+Ee.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-et/2&&Ne.push("right"),xe=Ne.length===0?"bottom":Ne.join("-")}var dt=ge.add(Ee[xe]).round();w.setTransform(this._container,Ki[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),Aa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ne=this._container.querySelector(tp);ne&&ne.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function It(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ne=i.Point.convert(J);return{center:ne,top:ne,"top-left":ne,"top-right":ne,bottom:ne,"bottom-left":ne,"bottom-right":ne,left:ne,right:ne}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return It(new i.Point(0,0))}var Ut={version:i.version,supported:S,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ni,NavigationControl:nl,GeolocateControl:pl,AttributionControl:_u,ScaleControl:Uf,FullscreenControl:lc,Popup:kt,Marker:Vf,Style:zo,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Jt().acquire(Bt)},clearPrewarmedResources:function(){var J=qt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Bt),qt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return _t.workerCount},set workerCount(J){_t.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ut}),u}()},3108:function(d,s,n){d.exports=n(26099)},26099:function(d,s,n){var u=n(64928),b=n(32420),i=n(51160),S=n(76752),w=n(55616),y=n(31264),m=n(47520),a=n(18400),c=n(72512),h=n(76244);function p(v,_){for(var O=_[0],C=_[1],x=1/(_[2]-O),R=1/(_[3]-C),M=new Array(v.length),T=0,P=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(c(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TO||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ye=_e||Qe===Ve)){var $e=P[De];Ve===void 0&&(Ve=$e.length);for(var Oe=Qe;Oe=ee&&Re<=pe&&We>=me&&We<=se&&we.push(ke)}var Ue=A[De],Ze=Ue[4*Qe+0],Ye=Ue[4*Qe+1],Je=Ue[4*Qe+2],Me=Ue[4*Qe+3],Fe=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,Qe+1),je=.5*ze,tt=De+1;Te(Pe,Ie,je,tt,Ze,Ye||Je||Me||Fe),Te(Pe,Ie+je,je,tt,Ye,Je||Me||Fe),Te(Pe+je,Ie,je,tt,Je,Me||Fe),Te(Pe+je,Ie+je,je,tt,Me,Fe)}}(0,0,1,0,0,1),we},x;function U(X,te,Z){for(var K=1,re=.5,q=.5,Y=.5,ee=0;ee0){m+=Math.abs(S(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(46284);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(S[0]=w[0]),S[1]>w[1]&&(S[1]=w[1]),S[2]=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(76796);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},s.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},s.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},s.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},s.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},s.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},s.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},s.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(49840);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=s[w]),s[w]>16,Ee>>16],u_pixel_coord_lower:[65535&xe,65535&Ee]}}Kf.prototype.draw=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt,dt,gt,Rt,Mt,Xt){var dn,bn=J.gl;if(!this.failedToCreate){for(var vn in J.program.set(this.program),J.setDepthMode(ne),J.setStencilMode(V),J.setColorMode(ie),J.setCullFace(ge),this.fixedUniforms)this.fixedUniforms[vn].set(xe[vn]);Rt&&Rt.setUniforms(J,this.binderUniforms,dt,{zoom:gt});for(var Ln=(dn={},dn[bn.LINES]=2,dn[bn.TRIANGLES]=3,dn[bn.LINE_STRIP]=1,dn)[le],gn=0,Jn=rt.get();gn0?1-1/(1.001-xe):-xe),u_contrast_factor:(ge=ie.paint.get("raster-contrast"),ge>0?1/(1-ge):1+ge),u_spin_weights:Cu(ie.paint.get("raster-hue-rotate"))};var ge,xe};function Cu(J){J*=Math.PI/180;var le=Math.sin(J),ne=Math.cos(J);return[(2*ne+1)/3,(-Math.sqrt(3)*le-ne+1)/3,(Math.sqrt(3)*le-ne+1)/3]}var ed,Bu=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){var rt=ie.transform;return{u_is_size_zoom_constant:+(J==="constant"||J==="source"),u_is_size_feature_constant:+(J==="constant"||J==="camera"),u_size_t:le?le.uSizeT:0,u_size:le?le.uSize:0,u_camera_to_center_distance:rt.cameraToCenterDistance,u_pitch:rt.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:rt.width/rt.height,u_fade_change:ie.options.fadeDuration?ie.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:xe,u_coord_matrix:Ee,u_is_text:+Ne,u_pitch_with_map:+V,u_texsize:et,u_texture:0}},vd=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et,rt){var dt=ie.transform;return i.extend(Bu(J,le,ne,V,ie,ge,xe,Ee,Ne,et),{u_gamma_scale:V?Math.cos(dt._pitch)*dt.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+rt})},cs=function(J,le,ne,V,ie,ge,xe,Ee,Ne,et){return i.extend(vd(J,le,ne,V,ie,ge,xe,Ee,!0,Ne,!0),{u_texsize_icon:et,u_texture_icon:1})},oh=function(J,le,ne){return{u_matrix:J,u_opacity:le,u_color:ne}},Jh=function(J,le,ne,V,ie,ge){return i.extend(function(xe,Ee,Ne,et){var rt=Ne.imageManager.getPattern(xe.from.toString()),dt=Ne.imageManager.getPattern(xe.to.toString()),gt=Ne.imageManager.getPixelSize(),Rt=gt.width,Mt=gt.height,Xt=Math.pow(2,et.tileID.overscaledZ),dn=et.tileSize*Math.pow(2,Ne.transform.tileZoom)/Xt,bn=dn*(et.tileID.canonical.x+et.tileID.wrap*Xt),vn=dn*et.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:rt.tl,u_pattern_br_a:rt.br,u_pattern_tl_b:dt.tl,u_pattern_br_b:dt.br,u_texsize:[Rt,Mt],u_mix:Ee.t,u_pattern_size_a:rt.displaySize,u_pattern_size_b:dt.displaySize,u_scale_a:Ee.fromScale,u_scale_b:Ee.toScale,u_tile_units_to_pixels:1/Mo(et,1,Ne.transform.tileZoom),u_pixel_coord_upper:[bn>>16,vn>>16],u_pixel_coord_lower:[65535&bn,65535&vn]}}(V,ge,ne,ie),{u_matrix:J,u_opacity:le})},_h={fillExtrusion:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fillExtrusionPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_lightpos:new i.Uniform3f(J,le.u_lightpos),u_lightintensity:new i.Uniform1f(J,le.u_lightintensity),u_lightcolor:new i.Uniform3f(J,le.u_lightcolor),u_vertical_gradient:new i.Uniform1f(J,le.u_vertical_gradient),u_height_factor:new i.Uniform1f(J,le.u_height_factor),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade),u_opacity:new i.Uniform1f(J,le.u_opacity)}},fill:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},fillPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},fillOutline:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world)}},fillOutlinePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_texsize:new i.Uniform2f(J,le.u_texsize),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},circle:function(J,le){return{u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(J,le.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},collisionBox:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(J,le.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(J,le.u_extrude_scale),u_overscale_factor:new i.Uniform1f(J,le.u_overscale_factor)}},collisionCircle:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_inv_matrix:new i.UniformMatrix4f(J,le.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(J,le.u_viewport_size)}},debug:function(J,le){return{u_color:new i.UniformColor(J,le.u_color),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_overlay:new i.Uniform1i(J,le.u_overlay),u_overlay_scale:new i.Uniform1f(J,le.u_overlay_scale)}},clippingMask:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmap:function(J,le){return{u_extrude_scale:new i.Uniform1f(J,le.u_extrude_scale),u_intensity:new i.Uniform1f(J,le.u_intensity),u_matrix:new i.UniformMatrix4f(J,le.u_matrix)}},heatmapTexture:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_world:new i.Uniform2f(J,le.u_world),u_image:new i.Uniform1i(J,le.u_image),u_color_ramp:new i.Uniform1i(J,le.u_color_ramp),u_opacity:new i.Uniform1f(J,le.u_opacity)}},hillshade:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_latrange:new i.Uniform2f(J,le.u_latrange),u_light:new i.Uniform2f(J,le.u_light),u_shadow:new i.UniformColor(J,le.u_shadow),u_highlight:new i.UniformColor(J,le.u_highlight),u_accent:new i.UniformColor(J,le.u_accent)}},hillshadePrepare:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_image:new i.Uniform1i(J,le.u_image),u_dimension:new i.Uniform2f(J,le.u_dimension),u_zoom:new i.Uniform1f(J,le.u_zoom),u_unpack:new i.Uniform4f(J,le.u_unpack)}},line:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels)}},lineGradient:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_image:new i.Uniform1i(J,le.u_image),u_image_height:new i.Uniform1f(J,le.u_image_height)}},linePattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_texsize:new i.Uniform2f(J,le.u_texsize),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_image:new i.Uniform1i(J,le.u_image),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_scale:new i.Uniform3f(J,le.u_scale),u_fade:new i.Uniform1f(J,le.u_fade)}},lineSDF:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_ratio:new i.Uniform1f(J,le.u_ratio),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(J,le.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(J,le.u_patternscale_a),u_patternscale_b:new i.Uniform2f(J,le.u_patternscale_b),u_sdfgamma:new i.Uniform1f(J,le.u_sdfgamma),u_image:new i.Uniform1i(J,le.u_image),u_tex_y_a:new i.Uniform1f(J,le.u_tex_y_a),u_tex_y_b:new i.Uniform1f(J,le.u_tex_y_b),u_mix:new i.Uniform1f(J,le.u_mix)}},raster:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_tl_parent:new i.Uniform2f(J,le.u_tl_parent),u_scale_parent:new i.Uniform1f(J,le.u_scale_parent),u_buffer_scale:new i.Uniform1f(J,le.u_buffer_scale),u_fade_t:new i.Uniform1f(J,le.u_fade_t),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image0:new i.Uniform1i(J,le.u_image0),u_image1:new i.Uniform1i(J,le.u_image1),u_brightness_low:new i.Uniform1f(J,le.u_brightness_low),u_brightness_high:new i.Uniform1f(J,le.u_brightness_high),u_saturation_factor:new i.Uniform1f(J,le.u_saturation_factor),u_contrast_factor:new i.Uniform1f(J,le.u_contrast_factor),u_spin_weights:new i.Uniform3f(J,le.u_spin_weights)}},symbolIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture)}},symbolSDF:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texture:new i.Uniform1i(J,le.u_texture),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},symbolTextAndIcon:function(J,le){return{u_is_size_zoom_constant:new i.Uniform1i(J,le.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(J,le.u_is_size_feature_constant),u_size_t:new i.Uniform1f(J,le.u_size_t),u_size:new i.Uniform1f(J,le.u_size),u_camera_to_center_distance:new i.Uniform1f(J,le.u_camera_to_center_distance),u_pitch:new i.Uniform1f(J,le.u_pitch),u_rotate_symbol:new i.Uniform1i(J,le.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(J,le.u_aspect_ratio),u_fade_change:new i.Uniform1f(J,le.u_fade_change),u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(J,le.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(J,le.u_coord_matrix),u_is_text:new i.Uniform1i(J,le.u_is_text),u_pitch_with_map:new i.Uniform1i(J,le.u_pitch_with_map),u_texsize:new i.Uniform2f(J,le.u_texsize),u_texsize_icon:new i.Uniform2f(J,le.u_texsize_icon),u_texture:new i.Uniform1i(J,le.u_texture),u_texture_icon:new i.Uniform1i(J,le.u_texture_icon),u_gamma_scale:new i.Uniform1f(J,le.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(J,le.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(J,le.u_is_halo)}},background:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_color:new i.UniformColor(J,le.u_color)}},backgroundPattern:function(J,le){return{u_matrix:new i.UniformMatrix4f(J,le.u_matrix),u_opacity:new i.Uniform1f(J,le.u_opacity),u_image:new i.Uniform1i(J,le.u_image),u_pattern_tl_a:new i.Uniform2f(J,le.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(J,le.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(J,le.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(J,le.u_pattern_br_b),u_texsize:new i.Uniform2f(J,le.u_texsize),u_mix:new i.Uniform1f(J,le.u_mix),u_pattern_size_a:new i.Uniform2f(J,le.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(J,le.u_pattern_size_b),u_scale_a:new i.Uniform1f(J,le.u_scale_a),u_scale_b:new i.Uniform1f(J,le.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(J,le.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(J,le.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(J,le.u_tile_units_to_pixels)}}};function xf(J,le,ne,V,ie,ge,xe){for(var Ee=J.context,Ne=Ee.gl,et=J.useProgram("collisionBox"),rt=[],dt=0,gt=0,Rt=0;Rt0){var gn=i.create(),Jn=bn;i.mul(gn,dn.placementInvProjMatrix,J.transform.glCoordMatrix),i.mul(gn,gn,dn.placementViewportMatrix),rt.push({circleArray:Ln,circleOffset:gt,transform:Jn,invTransform:gn}),gt=dt+=Ln.length/4}vn&&et.draw(Ee,Ne.LINES,Pn.disabled,vt.disabled,J.colorModeForRenderPass(),st.disabled,Tu(bn,J.transform,Xt),ne.id,vn.layoutVertexBuffer,vn.indexBuffer,vn.segments,null,J.transform.zoom,null,null,vn.collisionVertexBuffer)}}if(xe&&rt.length){var pn=J.useProgram("collisionCircle"),In=new i.StructArrayLayout2f1f2i16;In.resize(4*dt),In._trim();for(var Ir=0,Pr=0,Gr=rt;Pr=0&&(Mt[dn.associatedIconIndex]={shiftedAnchor:Gr,angle:ro})}else co(dn.numGlyphs,gt)}if(rt){Rt.clear();for(var Wo=J.icon.placedSymbolArray,si=0;si0){var xe=i.browser.now(),Ee=(xe-J.timeAdded)/ge,Ne=le?(xe-le.timeAdded)/ge:-1,et=ne.getSource(),rt=ie.coveringZoomLevel({tileSize:et.tileSize,roundZoom:et.roundZoom}),dt=!le||Math.abs(le.tileID.overscaledZ-rt)>Math.abs(J.tileID.overscaledZ-rt),gt=dt&&J.refreshedUponExpiration?1:i.clamp(dt?Ee:1-Ne,0,1);return J.refreshedUponExpiration&&Ee>=1&&(J.refreshedUponExpiration=!1),le?{opacity:1,mix:1-gt}:{opacity:gt,mix:0}}return{opacity:1,mix:0}}var ih=new i.Color(1,0,0,1),yu=new i.Color(0,1,0,1),jc=new i.Color(0,0,1,1),Nh=new i.Color(1,0,1,1),af=new i.Color(0,1,1,1);function td(J){var le=J.transform.padding;sf(J,J.transform.height-(le.top||0),3,ih),sf(J,le.bottom||0,3,yu),Bc(J,le.left||0,3,jc),Bc(J,J.transform.width-(le.right||0),3,Nh);var ne=J.transform.centerPoint;(function(V,ie,ge,xe){var Ee=20,Ne=2;Vd(V,ie-Ne/2,ge-Ee/2,Ne,Ee,xe),Vd(V,ie-Ee/2,ge-Ne/2,Ee,Ne,xe)})(J,ne.x,J.transform.height-ne.y,af)}function sf(J,le,ne,V){Vd(J,0,le+ne/2,J.transform.width,ne,V)}function Bc(J,le,ne,V){Vd(J,le-ne/2,0,ne,J.transform.height,V)}function Vd(J,le,ne,V,ie,ge){var xe=J.context,Ee=xe.gl;Ee.enable(Ee.SCISSOR_TEST),Ee.scissor(le*i.browser.devicePixelRatio,ne*i.browser.devicePixelRatio,V*i.browser.devicePixelRatio,ie*i.browser.devicePixelRatio),xe.clear({color:ge}),Ee.disable(Ee.SCISSOR_TEST)}function xd(J,le,ne){var V=J.context,ie=V.gl,ge=ne.posMatrix,xe=J.useProgram("debug"),Ee=Pn.disabled,Ne=vt.disabled,et=J.colorModeForRenderPass(),rt="$debug";V.activeTexture.set(ie.TEXTURE0),J.emptyTexture.bind(ie.LINEAR,ie.CLAMP_TO_EDGE),xe.draw(V,ie.LINE_STRIP,Ee,Ne,et,st.disabled,ec(ge,i.Color.red),rt,J.debugBuffer,J.tileBorderIndexBuffer,J.debugSegments);var dt=le.getTileByID(ne.key).latestRawTileData,gt=dt&&dt.byteLength||0,Rt=Math.floor(gt/1024),Mt=le.getTile(ne).tileSize,Xt=512/Math.min(Mt,512)*(ne.overscaledZ/J.transform.zoom)*.5,dn=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(dn+=" => "+ne.overscaledZ),function(bn,vn){bn.initDebugOverlayCanvas();var Ln=bn.debugOverlayCanvas,gn=bn.context.gl,Jn=bn.debugOverlayCanvas.getContext("2d");Jn.clearRect(0,0,Ln.width,Ln.height),Jn.shadowColor="white",Jn.shadowBlur=2,Jn.lineWidth=1.5,Jn.strokeStyle="white",Jn.textBaseline="top",Jn.font="bold 36px Open Sans, sans-serif",Jn.fillText(vn,5,5),Jn.strokeText(vn,5,5),bn.debugOverlayTexture.update(Ln),bn.debugOverlayTexture.bind(gn.LINEAR,gn.CLAMP_TO_EDGE)}(J,dn+" "+Rt+"kb"),xe.draw(V,ie.TRIANGLES,Ee,Ne,xt.alphaBlended,st.disabled,ec(ge,i.Color.transparent,Xt),rt,J.debugBuffer,J.quadTriangleIndexBuffer,J.debugSegments)}var vc={symbol:function(J,le,ne,V,ie){if(J.renderPass==="translucent"){var ge=vt.disabled,xe=J.colorModeForRenderPass();ne.layout.get("text-variable-anchor")&&function(Ee,Ne,et,rt,dt,gt,Rt){for(var Mt=Ne.transform,Xt=dt==="map",dn=gt==="map",bn=0,vn=Ee;bn256&&this.clearStencil(),ne.setColorMode(xt.disabled),ne.setDepthMode(Pn.disabled);var ie=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ge=0,xe=le;ge256&&this.clearStencil();var J=this.nextStencilID++,le=this.context.gl;return new vt({func:le.NOTEQUAL,mask:255},J,255,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilModeForClipping=function(J){var le=this.context.gl;return new vt({func:le.EQUAL,mask:255},this._tileClippingMaskIDs[J.key],0,le.KEEP,le.KEEP,le.REPLACE)},gs.prototype.stencilConfigForOverlap=function(J){var le,ne=this.context.gl,V=J.sort(function(Ne,et){return et.overscaledZ-Ne.overscaledZ}),ie=V[V.length-1].overscaledZ,ge=V[0].overscaledZ-ie+1;if(ge>1){this.currentStencilSource=void 0,this.nextStencilID+ge>256&&this.clearStencil();for(var xe={},Ee=0;Ee=0;this.currentLayer--){var Jn=this.style._layers[V[this.currentLayer]],pn=ie[Jn.source],In=et[Jn.source];this._renderTileClippingMasks(Jn,In),this.renderLayer(this,pn,Jn,In)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?le.pop():null},gs.prototype.isPatternMissing=function(J){if(!J)return!1;if(!J.from||!J.to)return!0;var le=this.imageManager.getPattern(J.from.toString()),ne=this.imageManager.getPattern(J.to.toString());return!le||!ne},gs.prototype.useProgram=function(J,le){this.cache=this.cache||{};var ne=""+J+(le?le.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[ne]||(this.cache[ne]=new Kf(this.context,J,ma[J],le,_h[J],this._showOverdrawInspector)),this.cache[ne]},gs.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gs.prototype.setBaseState=function(){var J=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(J.FUNC_ADD)},gs.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var J=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,J.RGBA)}},gs.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var yc=function(J,le){this.points=J,this.planes=le};yc.fromInvProjectionMatrix=function(J,le,ne){var V=Math.pow(2,ne),ie=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(xe){return i.transformMat4([],xe,J)}).map(function(xe){return i.scale$1([],xe,1/xe[3]/le*V)}),ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(xe){var Ee=i.sub([],ie[xe[0]],ie[xe[1]]),Ne=i.sub([],ie[xe[2]],ie[xe[1]]),et=i.normalize([],i.cross([],Ee,Ne)),rt=-i.dot(et,ie[xe[1]]);return et.concat(rt)});return new yc(ie,ge)};var Cc=function(J,le){this.min=J,this.max=le,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Cc.prototype.quadrant=function(J){for(var le=[J%2==0,J<2],ne=i.clone$2(this.min),V=i.clone$2(this.max),ie=0;ie=0;if(ge===0)return 0;ge!==le.length&&(ne=!1)}if(ne)return 2;for(var Ee=0;Ee<3;Ee++){for(var Ne=Number.MAX_VALUE,et=-Number.MAX_VALUE,rt=0;rtthis.max[Ee]-this.min[Ee])return 0}return 1};var Nu=function(J,le,ne,V){if(J===void 0&&(J=0),le===void 0&&(le=0),ne===void 0&&(ne=0),V===void 0&&(V=0),isNaN(J)||J<0||isNaN(le)||le<0||isNaN(ne)||ne<0||isNaN(V)||V<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=J,this.bottom=le,this.left=ne,this.right=V};Nu.prototype.interpolate=function(J,le,ne){return le.top!=null&&J.top!=null&&(this.top=i.number(J.top,le.top,ne)),le.bottom!=null&&J.bottom!=null&&(this.bottom=i.number(J.bottom,le.bottom,ne)),le.left!=null&&J.left!=null&&(this.left=i.number(J.left,le.left,ne)),le.right!=null&&J.right!=null&&(this.right=i.number(J.right,le.right,ne)),this},Nu.prototype.getCenter=function(J,le){var ne=i.clamp((this.left+J-this.right)/2,0,J),V=i.clamp((this.top+le-this.bottom)/2,0,le);return new i.Point(ne,V)},Nu.prototype.equals=function(J){return this.top===J.top&&this.bottom===J.bottom&&this.left===J.left&&this.right===J.right},Nu.prototype.clone=function(){return new Nu(this.top,this.bottom,this.left,this.right)},Nu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Gs=function(J,le,ne,V,ie){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ie===void 0||ie,this._minZoom=J||0,this._maxZoom=le||22,this._minPitch=ne??0,this._maxPitch=V??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Nu,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ks={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Gs.prototype.clone=function(){var J=new Gs(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return J.tileSize=this.tileSize,J.latRange=this.latRange,J.width=this.width,J.height=this.height,J._center=this._center,J.zoom=this.zoom,J.angle=this.angle,J._fov=this._fov,J._pitch=this._pitch,J._unmodified=this._unmodified,J._edgeInsets=this._edgeInsets.clone(),J._calcMatrices(),J},Ks.minZoom.get=function(){return this._minZoom},Ks.minZoom.set=function(J){this._minZoom!==J&&(this._minZoom=J,this.zoom=Math.max(this.zoom,J))},Ks.maxZoom.get=function(){return this._maxZoom},Ks.maxZoom.set=function(J){this._maxZoom!==J&&(this._maxZoom=J,this.zoom=Math.min(this.zoom,J))},Ks.minPitch.get=function(){return this._minPitch},Ks.minPitch.set=function(J){this._minPitch!==J&&(this._minPitch=J,this.pitch=Math.max(this.pitch,J))},Ks.maxPitch.get=function(){return this._maxPitch},Ks.maxPitch.set=function(J){this._maxPitch!==J&&(this._maxPitch=J,this.pitch=Math.min(this.pitch,J))},Ks.renderWorldCopies.get=function(){return this._renderWorldCopies},Ks.renderWorldCopies.set=function(J){J===void 0?J=!0:J===null&&(J=!1),this._renderWorldCopies=J},Ks.worldSize.get=function(){return this.tileSize*this.scale},Ks.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ks.size.get=function(){return new i.Point(this.width,this.height)},Ks.bearing.get=function(){return-this.angle/Math.PI*180},Ks.bearing.set=function(J){var le=-i.wrap(J,-180,180)*Math.PI/180;this.angle!==le&&(this._unmodified=!1,this.angle=le,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ks.pitch.get=function(){return this._pitch/Math.PI*180},Ks.pitch.set=function(J){var le=i.clamp(J,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==le&&(this._unmodified=!1,this._pitch=le,this._calcMatrices())},Ks.fov.get=function(){return this._fov/Math.PI*180},Ks.fov.set=function(J){J=Math.max(.01,Math.min(60,J)),this._fov!==J&&(this._unmodified=!1,this._fov=J/180*Math.PI,this._calcMatrices())},Ks.zoom.get=function(){return this._zoom},Ks.zoom.set=function(J){var le=Math.min(Math.max(J,this.minZoom),this.maxZoom);this._zoom!==le&&(this._unmodified=!1,this._zoom=le,this.scale=this.zoomScale(le),this.tileZoom=Math.floor(le),this.zoomFraction=le-this.tileZoom,this._constrain(),this._calcMatrices())},Ks.center.get=function(){return this._center},Ks.center.set=function(J){J.lat===this._center.lat&&J.lng===this._center.lng||(this._unmodified=!1,this._center=J,this._constrain(),this._calcMatrices())},Ks.padding.get=function(){return this._edgeInsets.toJSON()},Ks.padding.set=function(J){this._edgeInsets.equals(J)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,J,1),this._calcMatrices())},Ks.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Gs.prototype.isPaddingEqual=function(J){return this._edgeInsets.equals(J)},Gs.prototype.interpolatePadding=function(J,le,ne){this._unmodified=!1,this._edgeInsets.interpolate(J,le,ne),this._constrain(),this._calcMatrices()},Gs.prototype.coveringZoomLevel=function(J){var le=(J.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/J.tileSize));return Math.max(0,le)},Gs.prototype.getVisibleUnwrappedCoordinates=function(J){var le=[new i.UnwrappedTileID(0,J)];if(this._renderWorldCopies)for(var ne=this.pointCoordinate(new i.Point(0,0)),V=this.pointCoordinate(new i.Point(this.width,0)),ie=this.pointCoordinate(new i.Point(this.width,this.height)),ge=this.pointCoordinate(new i.Point(0,this.height)),xe=Math.floor(Math.min(ne.x,V.x,ie.x,ge.x)),Ee=Math.floor(Math.max(ne.x,V.x,ie.x,ge.x)),Ne=xe-1;Ne<=Ee+1;Ne++)Ne!==0&&le.push(new i.UnwrappedTileID(Ne,J));return le},Gs.prototype.coveringTiles=function(J){var le=this.coveringZoomLevel(J),ne=le;if(J.minzoom!==void 0&&leJ.maxzoom&&(le=J.maxzoom);var V=i.MercatorCoordinate.fromLngLat(this.center),ie=Math.pow(2,le),ge=[ie*V.x,ie*V.y,0],xe=yc.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,le),Ee=J.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ee=le);var Ne=function(Gr){return{aabb:new Cc([Gr*ie,0,0],[(Gr+1)*ie,ie,0]),zoom:0,x:0,y:0,wrap:Gr,fullyVisible:!1}},et=[],rt=[],dt=le,gt=J.reparseOverscaled?ne:le;if(this._renderWorldCopies)for(var Rt=1;Rt<=3;Rt++)et.push(Ne(-Rt)),et.push(Ne(Rt));for(et.push(Ne(0));et.length>0;){var Mt=et.pop(),Xt=Mt.x,dn=Mt.y,bn=Mt.fullyVisible;if(!bn){var vn=Mt.aabb.intersects(xe);if(vn===0)continue;bn=vn===2}var Ln=Mt.aabb.distanceX(ge),gn=Mt.aabb.distanceY(ge),Jn=Math.max(Math.abs(Ln),Math.abs(gn)),pn=3+(1<pn&&Mt.zoom>=Ee)rt.push({tileID:new i.OverscaledTileID(Mt.zoom===dt?gt:Mt.zoom,Mt.wrap,Mt.zoom,Xt,dn),distanceSq:i.sqrLen([ge[0]-.5-Xt,ge[1]-.5-dn])});else for(var In=0;In<4;In++){var Ir=(Xt<<1)+In%2,Pr=(dn<<1)+(In>>1);et.push({aabb:Mt.aabb.quadrant(In),zoom:Mt.zoom+1,x:Ir,y:Pr,wrap:Mt.wrap,fullyVisible:bn})}}return rt.sort(function(Gr,ro){return Gr.distanceSq-ro.distanceSq}).map(function(Gr){return Gr.tileID})},Gs.prototype.resize=function(J,le){this.width=J,this.height=le,this.pixelsToGLUnits=[2/J,-2/le],this._constrain(),this._calcMatrices()},Ks.unmodified.get=function(){return this._unmodified},Gs.prototype.zoomScale=function(J){return Math.pow(2,J)},Gs.prototype.scaleZoom=function(J){return Math.log(J)/Math.LN2},Gs.prototype.project=function(J){var le=i.clamp(J.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(J.lng)*this.worldSize,i.mercatorYfromLat(le)*this.worldSize)},Gs.prototype.unproject=function(J){return new i.MercatorCoordinate(J.x/this.worldSize,J.y/this.worldSize).toLngLat()},Ks.point.get=function(){return this.project(this.center)},Gs.prototype.setLocationAtPoint=function(J,le){var ne=this.pointCoordinate(le),V=this.pointCoordinate(this.centerPoint),ie=this.locationCoordinate(J),ge=new i.MercatorCoordinate(ie.x-(ne.x-V.x),ie.y-(ne.y-V.y));this.center=this.coordinateLocation(ge),this._renderWorldCopies&&(this.center=this.center.wrap())},Gs.prototype.locationPoint=function(J){return this.coordinatePoint(this.locationCoordinate(J))},Gs.prototype.pointLocation=function(J){return this.coordinateLocation(this.pointCoordinate(J))},Gs.prototype.locationCoordinate=function(J){return i.MercatorCoordinate.fromLngLat(J)},Gs.prototype.coordinateLocation=function(J){return J.toLngLat()},Gs.prototype.pointCoordinate=function(J){var le=[J.x,J.y,0,1],ne=[J.x,J.y,1,1];i.transformMat4(le,le,this.pixelMatrixInverse),i.transformMat4(ne,ne,this.pixelMatrixInverse);var V=le[3],ie=ne[3],ge=le[0]/V,xe=ne[0]/ie,Ee=le[1]/V,Ne=ne[1]/ie,et=le[2]/V,rt=ne[2]/ie,dt=et===rt?0:(0-et)/(rt-et);return new i.MercatorCoordinate(i.number(ge,xe,dt)/this.worldSize,i.number(Ee,Ne,dt)/this.worldSize)},Gs.prototype.coordinatePoint=function(J){var le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix),new i.Point(le[0]/le[3],le[1]/le[3])},Gs.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},Gs.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Gs.prototype.setMaxBounds=function(J){J?(this.lngRange=[J.getWest(),J.getEast()],this.latRange=[J.getSouth(),J.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Gs.prototype.calculatePosMatrix=function(J,le){le===void 0&&(le=!1);var ne=J.key,V=le?this._alignedPosMatrixCache:this._posMatrixCache;if(V[ne])return V[ne];var ie=J.canonical,ge=this.worldSize/this.zoomScale(ie.z),xe=ie.x+Math.pow(2,ie.z)*J.wrap,Ee=i.identity(new Float64Array(16));return i.translate(Ee,Ee,[xe*ge,ie.y*ge,0]),i.scale(Ee,Ee,[ge/i.EXTENT,ge/i.EXTENT,1]),i.multiply(Ee,le?this.alignedProjMatrix:this.projMatrix,Ee),V[ne]=new Float32Array(Ee),V[ne]},Gs.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Gs.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var J,le,ne,V,ie=-90,ge=90,xe=-180,Ee=180,Ne=this.size,et=this._unmodified;if(this.latRange){var rt=this.latRange;ie=i.mercatorYfromLat(rt[1])*this.worldSize,J=(ge=i.mercatorYfromLat(rt[0])*this.worldSize)-iege&&(V=ge-Xt)}if(this.lngRange){var dn=gt.x,bn=Ne.x/2;dn-bnEe&&(ne=Ee-bn)}ne===void 0&&V===void 0||(this.center=this.unproject(new i.Point(ne!==void 0?ne:gt.x,V!==void 0?V:gt.y))),this._unmodified=et,this._constraining=!1}},Gs.prototype._calcMatrices=function(){if(this.height){var J=this._fov/2,le=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(J)*this.height;var ne=Math.PI/2+this._pitch,V=this._fov*(.5+le.y/this.height),ie=Math.sin(V)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-ne-V,.01,Math.PI-.01)),ge=this.point,xe=ge.x,Ee=ge.y,Ne=1.01*(Math.cos(Math.PI/2-this._pitch)*ie+this.cameraToCenterDistance),et=this.height/50,rt=new Float64Array(16);i.perspective(rt,this._fov,this.width/this.height,et,Ne),rt[8]=2*-le.x/this.width,rt[9]=2*le.y/this.height,i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[0,0,-this.cameraToCenterDistance]),i.rotateX(rt,rt,this._pitch),i.rotateZ(rt,rt,this.angle),i.translate(rt,rt,[-xe,-Ee,0]),this.mercatorMatrix=i.scale([],rt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(rt,rt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=rt,this.invProjMatrix=i.invert([],this.projMatrix);var dt=this.width%2/2,gt=this.height%2/2,Rt=Math.cos(this.angle),Mt=Math.sin(this.angle),Xt=xe-Math.round(xe)+Rt*dt+Mt*gt,dn=Ee-Math.round(Ee)+Rt*gt+Mt*dt,bn=new Float64Array(rt);if(i.translate(bn,bn,[Xt>.5?Xt-1:Xt,dn>.5?dn-1:dn,0]),this.alignedProjMatrix=bn,rt=i.create(),i.scale(rt,rt,[this.width/2,-this.height/2,1]),i.translate(rt,rt,[1,-1,0]),this.labelPlaneMatrix=rt,rt=i.create(),i.scale(rt,rt,[1,-1,1]),i.translate(rt,rt,[-1,-1,0]),i.scale(rt,rt,[2/this.width,2/this.height,1]),this.glCoordMatrix=rt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(rt=i.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=rt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Gs.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var J=this.pointCoordinate(new i.Point(0,0)),le=[J.x*this.worldSize,J.y*this.worldSize,0,1];return i.transformMat4(le,le,this.pixelMatrix)[3]/this.cameraToCenterDistance},Gs.prototype.getCameraPoint=function(){var J=this._pitch,le=Math.tan(J)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,le))},Gs.prototype.getCameraQueryGeometry=function(J){var le=this.getCameraPoint();if(J.length===1)return[J[0],le];for(var ne=le.x,V=le.y,ie=le.x,ge=le.y,xe=0,Ee=J;xe=3&&!J.some(function(ne){return isNaN(ne)})){var le=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(J[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+J[2],+J[1]],zoom:+J[0],bearing:le,pitch:+(J[4]||0)}),!0}return!1},Ac.prototype._updateHashUnthrottled=function(){var J=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,J)}catch{}};var _d={linearity:.3,easing:i.bezier(0,0,.3,1)},Fh=i.extend({deceleration:2500,maxSpeed:1400},_d),$h=i.extend({deceleration:20,maxSpeed:1400},_d),vp=i.extend({deceleration:1e3,maxSpeed:360},_d),ah=i.extend({deceleration:1e3,maxSpeed:90},_d),Au=function(J){this._map=J,this.clear()};function lf(J,le){(!J.duration||J.duration0&&le-J[0].time>160;)J.shift()},Au.prototype._onMoveEnd=function(J){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var le={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},ne=0,V=this._inertiaBuffer;ne=this._clickTolerance||this._map.fire(new vs(J.type,this._map,J))},nc.prototype.dblclick=function(J){return this._firePreventable(new vs(J.type,this._map,J))},nc.prototype.mouseover=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.mouseout=function(J){this._map.fire(new vs(J.type,this._map,J))},nc.prototype.touchstart=function(J){return this._firePreventable(new cl(J.type,this._map,J))},nc.prototype.touchmove=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchend=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype.touchcancel=function(J){this._map.fire(new cl(J.type,this._map,J))},nc.prototype._firePreventable=function(J){if(this._map.fire(J),J.defaultPrevented)return{}},nc.prototype.isEnabled=function(){return!0},nc.prototype.isActive=function(){return!1},nc.prototype.enable=function(){},nc.prototype.disable=function(){};var Qc=function(J){this._map=J};Qc.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Qc.prototype.mousemove=function(J){this._map.fire(new vs(J.type,this._map,J))},Qc.prototype.mousedown=function(){this._delayContextMenu=!0},Qc.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new vs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Qc.prototype.contextmenu=function(J){this._delayContextMenu?this._contextMenuEvent=J:this._map.fire(new vs(J.type,this._map,J)),this._map.listens("contextmenu")&&J.preventDefault()},Qc.prototype.isEnabled=function(){return!0},Qc.prototype.isActive=function(){return!1},Qc.prototype.enable=function(){},Qc.prototype.disable=function(){};var ts=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._container=J.getContainer(),this._clickTolerance=le.clickTolerance||1};function wi(J,le){for(var ne={},V=0;Vthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=J.timeStamp),ne.length===this.numTouches&&(this.centroid=function(V){for(var ie=new i.Point(0,0),ge=0,xe=V;ge30)&&(this.aborted=!0)}}},bu.prototype.touchend=function(J,le,ne){if((!this.centroid||J.timeStamp-this.startTime>500)&&(this.aborted=!0),ne.length===0){var V=!this.aborted&&this.centroid;if(this.reset(),V)return V}};var wd=function(J){this.singleTap=new bu(J),this.numTaps=J.numTaps,this.reset()};wd.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},wd.prototype.touchstart=function(J,le,ne){this.singleTap.touchstart(J,le,ne)},wd.prototype.touchmove=function(J,le,ne){this.singleTap.touchmove(J,le,ne)},wd.prototype.touchend=function(J,le,ne){var V=this.singleTap.touchend(J,le,ne);if(V){var ie=J.timeStamp-this.lastTime<500,ge=!this.lastTap||this.lastTap.dist(V)<30;if(ie&&ge||this.reset(),this.count++,this.lastTime=J.timeStamp,this.lastTap=V,this.count===this.numTaps)return this.reset(),V}};var Ol=function(){this._zoomIn=new wd({numTouches:1,numTaps:2}),this._zoomOut=new wd({numTouches:2,numTaps:1}),this.reset()};Ol.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Ol.prototype.touchstart=function(J,le,ne){this._zoomIn.touchstart(J,le,ne),this._zoomOut.touchstart(J,le,ne)},Ol.prototype.touchmove=function(J,le,ne){this._zoomIn.touchmove(J,le,ne),this._zoomOut.touchmove(J,le,ne)},Ol.prototype.touchend=function(J,le,ne){var V=this,ie=this._zoomIn.touchend(J,le,ne),ge=this._zoomOut.touchend(J,le,ne);return ie?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()+1,around:xe.unproject(ie)},{originalEvent:J})}}):ge?(this._active=!0,J.preventDefault(),setTimeout(function(){return V.reset()},0),{cameraAnimation:function(xe){return xe.easeTo({duration:300,zoom:xe.getZoom()-1,around:xe.unproject(ge)},{originalEvent:J})}}):void 0},Ol.prototype.touchcancel=function(){this.reset()},Ol.prototype.enable=function(){this._enabled=!0},Ol.prototype.disable=function(){this._enabled=!1,this.reset()},Ol.prototype.isEnabled=function(){return this._enabled},Ol.prototype.isActive=function(){return this._active};var ds={};ds[0]=1,ds[2]=2;var zc=function(J){this.reset(),this._clickTolerance=J.clickTolerance||1};zc.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},zc.prototype._correctButton=function(J,le){return!1},zc.prototype._move=function(J,le){return{}},zc.prototype.mousedown=function(J,le){if(!this._lastPoint){var ne=w.mouseButton(J);this._correctButton(J,ne)&&(this._lastPoint=le,this._eventButton=ne)}},zc.prototype.mousemoveWindow=function(J,le){var ne=this._lastPoint;if(ne){if(J.preventDefault(),function(V,ie){var ge=ds[ie];return V.buttons===void 0||(V.buttons&ge)!==ge}(J,this._eventButton))this.reset();else if(this._moved||!(le.dist(ne)0&&(this._active=!0);var V=wi(ne,le),ie=new i.Point(0,0),ge=new i.Point(0,0),xe=0;for(var Ee in V){var Ne=V[Ee],et=this._touches[Ee];et&&(ie._add(Ne),ge._add(Ne.sub(et)),xe++,V[Ee]=Ne)}if(this._touches=V,!(xeMath.abs(J.x)}var Kc=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.reset=function(){J.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},le.prototype._start=function(ne){this._lastPoints=ne,xc(ne[0].sub(ne[1]))&&(this._valid=!1)},le.prototype._move=function(ne,V,ie){var ge=ne[0].sub(this._lastPoints[0]),xe=ne[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ge,xe,ie.timeStamp),this._valid)return this._lastPoints=ne,this._active=!0,{pitchDelta:(ge.y+xe.y)/2*-.5}},le.prototype.gestureBeginsVertically=function(ne,V,ie){if(this._valid!==void 0)return this._valid;var ge=ne.mag()>=2,xe=V.mag()>=2;if(ge||xe){if(!ge||!xe)return this._firstMove===void 0&&(this._firstMove=ie),ie-this._firstMove<100&&void 0;var Ee=ne.y>0==V.y>0;return xc(ne)&&xc(V)&&Ee}},le}(rs),jd={panStep:100,bearingStep:15,pitchStep:10},ii=function(){var J=jd;this._panStep=J.panStep,this._bearingStep=J.bearingStep,this._pitchStep=J.pitchStep,this._rotationDisabled=!1};function nd(J){return J*(2-J)}ii.prototype.reset=function(){this._active=!1},ii.prototype.keydown=function(J){var le=this;if(!(J.altKey||J.ctrlKey||J.metaKey)){var ne=0,V=0,ie=0,ge=0,xe=0;switch(J.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:J.shiftKey?V=-1:(J.preventDefault(),ge=-1);break;case 39:J.shiftKey?V=1:(J.preventDefault(),ge=1);break;case 38:J.shiftKey?ie=1:(J.preventDefault(),xe=-1);break;case 40:J.shiftKey?ie=-1:(J.preventDefault(),xe=1);break;default:return}return this._rotationDisabled&&(V=0,ie=0),{cameraAnimation:function(Ee){var Ne=Ee.getZoom();Ee.easeTo({duration:300,easeId:"keyboardHandler",easing:nd,zoom:ne?Math.round(Ne)+ne*(J.shiftKey?2:1):Ne,bearing:Ee.getBearing()+V*le._bearingStep,pitch:Ee.getPitch()+ie*le._pitchStep,offset:[-ge*le._panStep,-xe*le._panStep],center:Ee.getCenter()},{originalEvent:J})}}}},ii.prototype.enable=function(){this._enabled=!0},ii.prototype.disable=function(){this._enabled=!1,this.reset()},ii.prototype.isEnabled=function(){return this._enabled},ii.prototype.isActive=function(){return this._active},ii.prototype.disableRotation=function(){this._rotationDisabled=!0},ii.prototype.enableRotation=function(){this._rotationDisabled=!1};var al=4.000244140625,Yl=function(J,le){this._map=J,this._el=J.getCanvasContainer(),this._handler=le,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,i.bindAll(["_onTimeout"],this)};Yl.prototype.setZoomRate=function(J){this._defaultZoomRate=J},Yl.prototype.setWheelZoomRate=function(J){this._wheelZoomRate=J},Yl.prototype.isEnabled=function(){return!!this._enabled},Yl.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Yl.prototype.isZooming=function(){return!!this._zooming},Yl.prototype.enable=function(J){this.isEnabled()||(this._enabled=!0,this._aroundCenter=J&&J.around==="center")},Yl.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Yl.prototype.wheel=function(J){if(this.isEnabled()){var le=J.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?40*J.deltaY:J.deltaY,ne=i.browser.now(),V=ne-(this._lastWheelEventTime||0);this._lastWheelEventTime=ne,le!==0&&le%al==0?this._type="wheel":le!==0&&Math.abs(le)<4?this._type="trackpad":V>400?(this._type=null,this._lastValue=le,this._timeout=setTimeout(this._onTimeout,40,J)):this._type||(this._type=Math.abs(V*le)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,le+=this._lastValue)),J.shiftKey&&le&&(le/=4),this._type&&(this._lastWheelEvent=J,this._delta-=le,this._active||this._start(J)),J.preventDefault()}},Yl.prototype._onTimeout=function(J){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(J)},Yl.prototype._start=function(J){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var le=w.mousePos(this._el,J);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(le)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Yl.prototype.renderFrame=function(){var J=this;if(this._frameId&&(this._frameId=null,this.isActive())){var le=this._map.transform;if(this._delta!==0){var ne=this._type==="wheel"&&Math.abs(this._delta)>al?this._wheelZoomRate:this._defaultZoomRate,V=2/(1+Math.exp(-Math.abs(this._delta*ne)));this._delta<0&&V!==0&&(V=1/V);var ie=typeof this._targetZoom=="number"?le.zoomScale(this._targetZoom):le.scale;this._targetZoom=Math.min(le.maxZoom,Math.max(le.minZoom,le.scaleZoom(ie*V))),this._type==="wheel"&&(this._startZoom=le.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ge,xe=typeof this._targetZoom=="number"?this._targetZoom:le.zoom,Ee=this._startZoom,Ne=this._easing,et=!1;if(this._type==="wheel"&&Ee&&Ne){var rt=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),dt=Ne(rt);ge=i.number(Ee,xe,dt),rt<1?this._frameId||(this._frameId=!0):et=!0}else ge=xe,et=!0;return this._active=!0,et&&(this._active=!1,this._finishTimeout=setTimeout(function(){J._zooming=!1,J._handler._triggerRenderFrame(),delete J._targetZoom,delete J._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!et,zoomDelta:ge-le.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Yl.prototype._smoothOutEasing=function(J){var le=i.ease;if(this._prevEase){var ne=this._prevEase,V=(i.browser.now()-ne.start)/ne.duration,ie=ne.easing(V+.01)-ne.easing(V),ge=.27/Math.sqrt(ie*ie+1e-4)*.01,xe=Math.sqrt(.0729-ge*ge);le=i.bezier(ge,xe,.25,1)}return this._prevEase={start:i.browser.now(),duration:J,easing:le},le},Yl.prototype.reset=function(){this._active=!1};var uf=function(J,le){this._clickZoom=J,this._tapZoom=le};uf.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},uf.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},uf.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},uf.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var hs=function(){this.reset()};hs.prototype.reset=function(){this._active=!1},hs.prototype.dblclick=function(J,le){return J.preventDefault(),{cameraAnimation:function(ne){ne.easeTo({duration:300,zoom:ne.getZoom()+(J.shiftKey?-1:1),around:ne.unproject(le)},{originalEvent:J})}}},hs.prototype.enable=function(){this._enabled=!0},hs.prototype.disable=function(){this._enabled=!1,this.reset()},hs.prototype.isEnabled=function(){return this._enabled},hs.prototype.isActive=function(){return this._active};var Mc=function(){this._tap=new wd({numTouches:1,numTaps:1}),this.reset()};Mc.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mc.prototype.touchstart=function(J,le,ne){this._swipePoint||(this._tapTime&&J.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?ne.length>0&&(this._swipePoint=le[0],this._swipeTouch=ne[0].identifier):this._tap.touchstart(J,le,ne))},Mc.prototype.touchmove=function(J,le,ne){if(this._tapTime){if(this._swipePoint){if(ne[0].identifier!==this._swipeTouch)return;var V=le[0],ie=V.y-this._swipePoint.y;return this._swipePoint=V,J.preventDefault(),this._active=!0,{zoomDelta:ie/128}}}else this._tap.touchmove(J,le,ne)},Mc.prototype.touchend=function(J,le,ne){this._tapTime?this._swipePoint&&ne.length===0&&this.reset():this._tap.touchend(J,le,ne)&&(this._tapTime=J.timeStamp)},Mc.prototype.touchcancel=function(){this.reset()},Mc.prototype.enable=function(){this._enabled=!0},Mc.prototype.disable=function(){this._enabled=!1,this.reset()},Mc.prototype.isEnabled=function(){return this._enabled},Mc.prototype.isActive=function(){return this._active};var Eu=function(J,le,ne){this._el=J,this._mousePan=le,this._touchPan=ne};Eu.prototype.enable=function(J){this._inertiaOptions=J||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Eu.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Eu.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Eu.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var xu=function(J,le,ne){this._pitchWithRotate=J.pitchWithRotate,this._mouseRotate=le,this._mousePitch=ne};xu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},xu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},xu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},xu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var ws=function(J,le,ne,V){this._el=J,this._touchZoom=le,this._touchRotate=ne,this._tapDragZoom=V,this._rotationDisabled=!1,this._enabled=!0};ws.prototype.enable=function(J){this._touchZoom.enable(J),this._rotationDisabled||this._touchRotate.enable(J),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},ws.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},ws.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},ws.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},ws.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},ws.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Fu=function(J){return J.zoom||J.drag||J.pitch||J.rotate},su=function(J){function le(){J.apply(this,arguments)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le}(i.Event);function Ca(J){return J.panDelta&&J.panDelta.mag()||J.zoomDelta||J.bearingDelta||J.pitchDelta}var Ls=function(J,le){this._map=J,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Au(J),this._bearingSnap=le.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(le),i.bindAll(["handleEvent","handleWindowEvent"],this);var ne=this._el;this._listeners=[[ne,"touchstart",{passive:!0}],[ne,"touchmove",{passive:!1}],[ne,"touchend",void 0],[ne,"touchcancel",void 0],[ne,"mousedown",void 0],[ne,"mousemove",void 0],[ne,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[ne,"mouseover",void 0],[ne,"mouseout",void 0],[ne,"dblclick",void 0],[ne,"click",void 0],[ne,"keydown",{capture:!1}],[ne,"keyup",void 0],[ne,"wheel",{passive:!1}],[ne,"contextmenu",void 0],[i.window,"blur",void 0]];for(var V=0,ie=this._listeners;Vxe?Math.min(2,pn):Math.max(.5,pn),ro=Math.pow(Gr,1-Ir),po=ge.unproject(gn.add(Jn.mult(Ir*ro)).mult(Pr));ge.setLocationAtPoint(ge.renderWorldCopies?po.wrap():po,Xt)}ie._fireMoveEvents(V)},function(Ir){ie._afterEase(V,Ir)},ne),this},le.prototype._prepareEase=function(ne,V,ie){ie===void 0&&(ie={}),this._moving=!0,V||ie.moving||this.fire(new i.Event("movestart",ne)),this._zooming&&!ie.zooming&&this.fire(new i.Event("zoomstart",ne)),this._rotating&&!ie.rotating&&this.fire(new i.Event("rotatestart",ne)),this._pitching&&!ie.pitching&&this.fire(new i.Event("pitchstart",ne))},le.prototype._fireMoveEvents=function(ne){this.fire(new i.Event("move",ne)),this._zooming&&this.fire(new i.Event("zoom",ne)),this._rotating&&this.fire(new i.Event("rotate",ne)),this._pitching&&this.fire(new i.Event("pitch",ne))},le.prototype._afterEase=function(ne,V){if(!this._easeId||!V||this._easeId!==V){delete this._easeId;var ie=this._zooming,ge=this._rotating,xe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ie&&this.fire(new i.Event("zoomend",ne)),ge&&this.fire(new i.Event("rotateend",ne)),xe&&this.fire(new i.Event("pitchend",ne)),this.fire(new i.Event("moveend",ne))}},le.prototype.flyTo=function(ne,V){var ie=this;if(!ne.essential&&i.browser.prefersReducedMotion){var ge=i.pick(ne,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ge,V)}this.stop(),ne=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},ne);var xe=this.transform,Ee=this.getZoom(),Ne=this.getBearing(),et=this.getPitch(),rt=this.getPadding(),dt="zoom"in ne?i.clamp(+ne.zoom,xe.minZoom,xe.maxZoom):Ee,gt="bearing"in ne?this._normalizeBearing(ne.bearing,Ne):Ne,Rt="pitch"in ne?+ne.pitch:et,Mt="padding"in ne?ne.padding:xe.padding,Xt=xe.zoomScale(dt-Ee),dn=i.Point.convert(ne.offset),bn=xe.centerPoint.add(dn),vn=xe.pointLocation(bn),Ln=i.LngLat.convert(ne.center||vn);this._normalizeCenter(Ln);var gn=xe.project(vn),Jn=xe.project(Ln).sub(gn),pn=ne.curve,In=Math.max(xe.width,xe.height),Ir=In/Xt,Pr=Jn.mag();if("minZoom"in ne){var Gr=i.clamp(Math.min(ne.minZoom,Ee,dt),xe.minZoom,xe.maxZoom),ro=In/xe.zoomScale(Gr-Ee);pn=Math.sqrt(ro/Pr*2)}var po=pn*pn;function Wo(ai){var Hi=(Ir*Ir-In*In+(ai?-1:1)*po*po*Pr*Pr)/(2*(ai?Ir:In)*po*Pr);return Math.log(Math.sqrt(Hi*Hi+1)-Hi)}function si(ai){return(Math.exp(ai)-Math.exp(-ai))/2}function Bo(ai){return(Math.exp(ai)+Math.exp(-ai))/2}var Go=Wo(0),Yo=function(ai){return Bo(Go)/Bo(Go+pn*ai)},Wi=function(ai){return In*((Bo(Go)*(si(Hi=Go+pn*ai)/Bo(Hi))-si(Go))/po)/Pr;var Hi},Ho=(Wo(1)-Go)/pn;if(Math.abs(Pr)<1e-6||!isFinite(Ho)){if(Math.abs(In-Ir)<1e-6)return this.easeTo(ne,V);var jo=Irne.maxDuration&&(ne.duration=0),this._zooming=!0,this._rotating=Ne!==gt,this._pitching=Rt!==et,this._padding=!xe.isPaddingEqual(Mt),this._prepareEase(V,!1),this._ease(function(ai){var Hi=ai*Ho,Ai=1/Yo(Hi);xe.zoom=ai===1?dt:Ee+xe.scaleZoom(Ai),ie._rotating&&(xe.bearing=i.number(Ne,gt,ai)),ie._pitching&&(xe.pitch=i.number(et,Rt,ai)),ie._padding&&(xe.interpolatePadding(rt,Mt,ai),bn=xe.centerPoint.add(dn));var es=ai===1?Ln:xe.unproject(gn.add(Jn.mult(Wi(Hi))).mult(Ai));xe.setLocationAtPoint(xe.renderWorldCopies?es.wrap():es,bn),ie._fireMoveEvents(V)},function(){return ie._afterEase(V)},ne),this},le.prototype.isEasing=function(){return!!this._easeFrameId},le.prototype.stop=function(){return this._stop()},le.prototype._stop=function(ne,V){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ie=this._onEaseEnd;delete this._onEaseEnd,ie.call(this,V)}if(!ne){var ge=this.handlers;ge&&ge.stop(!1)}return this},le.prototype._ease=function(ne,V,ie){ie.animate===!1||ie.duration===0?(ne(1),V()):(this._easeStart=i.browser.now(),this._easeOptions=ie,this._onEaseFrame=ne,this._onEaseEnd=V,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},le.prototype._renderFrameCallback=function(){var ne=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(ne)),ne<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},le.prototype._normalizeBearing=function(ne,V){ne=i.wrap(ne,-180,180);var ie=Math.abs(ne-V);return Math.abs(ne-360-V)180?-360:ie<-180?360:0}},le}(i.Evented),_u=function(J){J===void 0&&(J={}),this.options=J,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};_u.prototype.getDefaultPosition=function(){return"bottom-right"},_u.prototype.onAdd=function(J){var le=this.options&&this.options.compact;return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),le&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),le===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},_u.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},_u.prototype._setElementTitle=function(J,le){var ne=this._map._getUIString("AttributionControl."+le);J.title=ne,J.setAttribute("aria-label",ne)},_u.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},_u.prototype._updateEditLink=function(){var J=this._editLink;J||(J=this._editLink=this._container.querySelector(".mapbox-improve-map"));var le=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(J){var ne=le.reduce(function(V,ie,ge){return ie.value&&(V+=ie.key+"="+ie.value+(ge=0)return!1;return!0})).join(" | ");xe!==this._attribHTML&&(this._attribHTML=xe,J.length?(this._innerContainer.innerHTML=xe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},_u.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var wt=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};wt.prototype.onAdd=function(J){this._map=J,this._container=w.create("div","mapboxgl-ctrl");var le=w.create("a","mapboxgl-ctrl-logo");return le.target="_blank",le.rel="noopener nofollow",le.href="https://www.mapbox.com/",le.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),le.setAttribute("rel","noopener nofollow"),this._container.appendChild(le),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},wt.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},wt.prototype.getDefaultPosition=function(){return"bottom-left"},wt.prototype._updateLogo=function(J){J&&J.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},wt.prototype._logoRequired=function(){if(this._map.style){var J=this._map.style.sourceCaches;for(var le in J)if(J[le].getSource().mapbox_logo)return!0;return!1}},wt.prototype._updateCompact=function(){var J=this._container.children;if(J.length){var le=J[0];this._map.getCanvasContainer().offsetWidth<250?le.classList.add("mapboxgl-compact"):le.classList.remove("mapboxgl-compact")}};var Kt=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Kt.prototype.add=function(J){var le=++this._id;return this._queue.push({callback:J,id:le,cancelled:!1}),le},Kt.prototype.remove=function(J){for(var le=this._currentlyRunning,ne=0,V=le?this._queue.concat(le):this._queue;neV.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(V.minPitch!=null&&V.maxPitch!=null&&V.minPitch>V.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(V.minPitch!=null&&V.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(V.maxPitch!=null&&V.maxPitch>Bi)throw new Error("maxPitch must be less than or equal to 60");var ge=new Gs(V.minZoom,V.maxZoom,V.minPitch,V.maxPitch,V.renderWorldCopies);if(J.call(this,ge,V),this._interactive=V.interactive,this._maxTileCacheSize=V.maxTileCacheSize,this._failIfMajorPerformanceCaveat=V.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=V.preserveDrawingBuffer,this._antialias=V.antialias,this._trackResize=V.trackResize,this._bearingSnap=V.bearingSnap,this._refreshExpiredTiles=V.refreshExpiredTiles,this._fadeDuration=V.fadeDuration,this._crossSourceCollisions=V.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=V.collectResourceTiming,this._renderTaskQueue=new Kt,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},En,V.locale),this._clickTolerance=V.clickTolerance,this._requestManager=new i.RequestManager(V.transformRequest,V.accessToken),typeof V.container=="string"){if(this._container=i.window.document.getElementById(V.container),!this._container)throw new Error("Container '"+V.container+"' not found.")}else{if(!(V.container instanceof wr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=V.container}if(V.maxBounds&&this.setMaxBounds(V.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ie._update(!1)}),this.on("moveend",function(){return ie._update(!1)}),this.on("zoom",function(){return ie._update(!0)}),i.window!==void 0&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ls(this,V);var xe=typeof V.hash=="string"&&V.hash||void 0;this._hash=V.hash&&new Ac(xe).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:V.center,zoom:V.zoom,bearing:V.bearing,pitch:V.pitch}),V.bounds&&(this.resize(),this.fitBounds(V.bounds,i.extend({},V.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=V.localIdeographFontFamily,V.style&&this.setStyle(V.style,{localIdeographFontFamily:V.localIdeographFontFamily}),V.attributionControl&&this.addControl(new _u({customAttribution:V.customAttribution})),this.addControl(new wt,V.logoPosition),this.on("style.load",function(){ie.transform.unmodified&&ie.jumpTo(ie.style.stylesheet)}),this.on("data",function(Ee){ie._update(Ee.dataType==="style"),ie.fire(new i.Event(Ee.dataType+"data",Ee))}),this.on("dataloading",function(Ee){ie.fire(new i.Event(Ee.dataType+"dataloading",Ee))})}J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le;var ne={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return le.prototype._getMapId=function(){return this._mapId},le.prototype.addControl=function(V,ie){if(ie===void 0&&(ie=V.getDefaultPosition?V.getDefaultPosition():"top-right"),!V||!V.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=V.onAdd(this);this._controls.push(V);var xe=this._controlPositions[ie];return ie.indexOf("bottom")!==-1?xe.insertBefore(ge,xe.firstChild):xe.appendChild(ge),this},le.prototype.removeControl=function(V){if(!V||!V.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ie=this._controls.indexOf(V);return ie>-1&&this._controls.splice(ie,1),V.onRemove(this),this},le.prototype.hasControl=function(V){return this._controls.indexOf(V)>-1},le.prototype.resize=function(V){var ie=this._containerDimensions(),ge=ie[0],xe=ie[1];this._resizeCanvas(ge,xe),this.transform.resize(ge,xe),this.painter.resize(ge,xe);var Ee=!this._moving;return Ee&&(this.stop(),this.fire(new i.Event("movestart",V)).fire(new i.Event("move",V))),this.fire(new i.Event("resize",V)),Ee&&this.fire(new i.Event("moveend",V)),this},le.prototype.getBounds=function(){return this.transform.getBounds()},le.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},le.prototype.setMaxBounds=function(V){return this.transform.setMaxBounds(i.LngLatBounds.convert(V)),this._update()},le.prototype.setMinZoom=function(V){if((V=V??-2)>=-2&&V<=this.transform.maxZoom)return this.transform.minZoom=V,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=V,this._update(),this.getZoom()>V&&this.setZoom(V),this;throw new Error("maxZoom must be greater than the current minZoom")},le.prototype.getMaxZoom=function(){return this.transform.maxZoom},le.prototype.setMinPitch=function(V){if((V=V??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(V>=0&&V<=this.transform.maxPitch)return this.transform.minPitch=V,this._update(),this.getPitch()Bi)throw new Error("maxPitch must be less than or equal to 60");if(V>=this.transform.minPitch)return this.transform.maxPitch=V,this._update(),this.getPitch()>V&&this.setPitch(V),this;throw new Error("maxPitch must be greater than the current minPitch")},le.prototype.getMaxPitch=function(){return this.transform.maxPitch},le.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},le.prototype.setRenderWorldCopies=function(V){return this.transform.renderWorldCopies=V,this._update()},le.prototype.project=function(V){return this.transform.locationPoint(i.LngLat.convert(V))},le.prototype.unproject=function(V){return this.transform.pointLocation(i.Point.convert(V))},le.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},le.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},le.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},le.prototype._createDelegatedListener=function(V,ie,ge){var xe,Ee=this;if(V==="mouseenter"||V==="mouseover"){var Ne=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length?Ne||(Ne=!0,ge.call(Ee,new vs(V,Ee,rt.originalEvent,{features:dt}))):Ne=!1},mouseout:function(){Ne=!1}}}}if(V==="mouseleave"||V==="mouseout"){var et=!1;return{layer:ie,listener:ge,delegates:{mousemove:function(rt){(Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[]).length?et=!0:et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))},mouseout:function(rt){et&&(et=!1,ge.call(Ee,new vs(V,Ee,rt.originalEvent)))}}}}return{layer:ie,listener:ge,delegates:(xe={},xe[V]=function(rt){var dt=Ee.getLayer(ie)?Ee.queryRenderedFeatures(rt.point,{layers:[ie]}):[];dt.length&&(rt.features=dt,ge.call(Ee,rt),delete rt.features)},xe)}},le.prototype.on=function(V,ie,ge){if(ge===void 0)return J.prototype.on.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[V]=this._delegatedListeners[V]||[],this._delegatedListeners[V].push(xe),xe.delegates)this.on(Ee,xe.delegates[Ee]);return this},le.prototype.once=function(V,ie,ge){if(ge===void 0)return J.prototype.once.call(this,V,ie);var xe=this._createDelegatedListener(V,ie,ge);for(var Ee in xe.delegates)this.once(Ee,xe.delegates[Ee]);return this},le.prototype.off=function(V,ie,ge){var xe=this;return ge===void 0?J.prototype.off.call(this,V,ie):(this._delegatedListeners&&this._delegatedListeners[V]&&function(Ee){for(var Ne=Ee[V],et=0;et180;){var xe=ne.locationPoint(J);if(xe.x>=0&&xe.y>=0&&xe.x<=ne.width&&xe.y<=ne.height)break;J.lng>ne.center.lng?J.lng-=360:J.lng+=360}return J}Fs.prototype.down=function(J,le){this.mouseRotate.mousedown(J,le),this.mousePitch&&this.mousePitch.mousedown(J,le),w.disableDrag()},Fs.prototype.move=function(J,le){var ne=this.map,V=this.mouseRotate.mousemoveWindow(J,le);if(V&&V.bearingDelta&&ne.setBearing(ne.getBearing()+V.bearingDelta),this.mousePitch){var ie=this.mousePitch.mousemoveWindow(J,le);ie&&ie.pitchDelta&&ne.setPitch(ne.getPitch()+ie.pitchDelta)}},Fs.prototype.off=function(){var J=this.element;w.removeEventListener(J,"mousedown",this.mousedown),w.removeEventListener(J,"touchstart",this.touchstart,{passive:!1}),w.removeEventListener(J,"touchmove",this.touchmove),w.removeEventListener(J,"touchend",this.touchend),w.removeEventListener(J,"touchcancel",this.reset),this.offTemp()},Fs.prototype.offTemp=function(){w.enableDrag(),w.removeEventListener(i.window,"mousemove",this.mousemove),w.removeEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousedown=function(J){this.down(i.extend({},J,{ctrlKey:!0,preventDefault:function(){return J.preventDefault()}}),w.mousePos(this.element,J)),w.addEventListener(i.window,"mousemove",this.mousemove),w.addEventListener(i.window,"mouseup",this.mouseup)},Fs.prototype.mousemove=function(J){this.move(J,w.mousePos(this.element,J))},Fs.prototype.mouseup=function(J){this.mouseRotate.mouseupWindow(J),this.mousePitch&&this.mousePitch.mouseupWindow(J),this.offTemp()},Fs.prototype.touchstart=function(J){J.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return J.preventDefault()}},this._startPos))},Fs.prototype.touchmove=function(J){J.targetTouches.length!==1?this.reset():(this._lastPos=w.touchPos(this.element,J.targetTouches)[0],this.move({preventDefault:function(){return J.preventDefault()}},this._lastPos))},Fs.prototype.touchend=function(J){J.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=V}this._isDragging&&(this._pos=ne.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},le.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},le.prototype._addDragHandler=function(ne){this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},le.prototype.setDraggable=function(ne){return this._draggable=!!ne,this._map&&(ne?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},le.prototype.isDraggable=function(){return this._draggable},le.prototype.setRotation=function(ne){return this._rotation=ne||0,this._update(),this},le.prototype.getRotation=function(){return this._rotation},le.prototype.setRotationAlignment=function(ne){return this._rotationAlignment=ne||"auto",this._update(),this},le.prototype.getRotationAlignment=function(){return this._rotationAlignment},le.prototype.setPitchAlignment=function(ne){return this._pitchAlignment=ne&&ne!=="auto"?ne:this._rotationAlignment,this._update(),this},le.prototype.getPitchAlignment=function(){return this._pitchAlignment},le}(i.Evented),sh={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},_c=0,Xl=!1,pl=function(J){function le(ne){J.call(this),this.options=i.extend({},sh,ne),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.onAdd=function(ne){return this._map=ne,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),V=this._setupUI,Pl!==void 0?V(Pl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(ie){Pl=ie.state!=="denied",V(Pl)}):(Pl=!!i.window.navigator.geolocation,V(Pl)),this._container;var V},le.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,_c=0,Xl=!1},le.prototype._isOutOfMapMaxBounds=function(ne){var V=this._map.getMaxBounds(),ie=ne.coords;return V&&(ie.longitudeV.getEast()||ie.latitudeV.getNorth())},le.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},le.prototype._onSuccess=function(ne){if(this._map){if(this._isOutOfMapMaxBounds(ne))return this._setErrorState(),this.fire(new i.Event("outofmaxbounds",ne)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=ne,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(ne),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(ne),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",ne)),this._finish()}},le.prototype._updateCamera=function(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude),ie=ne.coords.accuracy,ge=this._map.getBearing(),xe=i.extend({bearing:ge},this.options.fitBoundsOptions);this._map.fitBounds(V.toBounds(ie),xe,{geolocateSource:!0})},le.prototype._updateMarker=function(ne){if(ne){var V=new i.LngLat(ne.coords.longitude,ne.coords.latitude);this._accuracyCircleMarker.setLngLat(V).addTo(this._map),this._userLocationDotMarker.setLngLat(V).addTo(this._map),this._accuracy=ne.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},le.prototype._updateCircleRadius=function(){var ne=this._map._container.clientHeight/2,V=this._map.unproject([0,ne]),ie=this._map.unproject([1,ne]),ge=V.distanceTo(ie),xe=Math.ceil(2*this._accuracy/ge);this._circleElement.style.width=xe+"px",this._circleElement.style.height=xe+"px"},le.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},le.prototype._onError=function(ne){if(this._map){if(this.options.trackUserLocation)if(ne.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var V=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=V,this._geolocateButton.setAttribute("aria-label",V),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(ne.code===3&&Xl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",ne)),this._finish()}},le.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},le.prototype._setupUI=function(ne){var V=this;if(this._container.addEventListener("contextmenu",function(xe){return xe.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",ne===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ie=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ie,this._geolocateButton.setAttribute("aria-label",ie)}else{var ge=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Vf(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Vf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(xe){var Ee=xe.originalEvent&&xe.originalEvent.type==="resize";xe.geolocateSource||V._watchState!=="ACTIVE_LOCK"||Ee||(V._watchState="BACKGROUND",V._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),V._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),V.fire(new i.Event("trackuserlocationend")))})},le.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":_c--,Xl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var ne;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++_c>1?(ne={maximumAge:6e5,timeout:0},Xl=!0):(ne=this.options.positionOptions,Xl=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ne)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},le.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},le}(i.Evented),Pc={maxWidth:100,unit:"metric"},Uf=function(J){this.options=i.extend({},Pc,J),i.bindAll(["_onMove","setUnit"],this)};function Os(J,le,ne){var V=ne&&ne.maxWidth||100,ie=J._container.clientHeight/2,ge=J.unproject([0,ie]),xe=J.unproject([V,ie]),Ee=ge.distanceTo(xe);if(ne&&ne.unit==="imperial"){var Ne=3.2808*Ee;Ne>5280?Si(le,V,Ne/5280,J._getUIString("ScaleControl.Miles")):Si(le,V,Ne,J._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Si(le,V,Ee/1852,J._getUIString("ScaleControl.NauticalMiles")):Ee>=1e3?Si(le,V,Ee/1e3,J._getUIString("ScaleControl.Kilometers")):Si(le,V,Ee,J._getUIString("ScaleControl.Meters"))}function Si(J,le,ne,V){var ie,ge,xe,Ee=(ie=ne,(ge=Math.pow(10,(""+Math.floor(ie)).length-1))*((xe=ie/ge)>=10?10:xe>=5?5:xe>=3?3:xe>=2?2:xe>=1?1:function(et){var rt=Math.pow(10,Math.ceil(-Math.log(et)/Math.LN10));return Math.round(et*rt)/rt}(xe))),Ne=Ee/ne;J.style.width=le*Ne+"px",J.innerHTML=Ee+" "+V}Uf.prototype.getDefaultPosition=function(){return"bottom-left"},Uf.prototype._onMove=function(){Os(this._map,this._container,this.options)},Uf.prototype.onAdd=function(J){return this._map=J,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",J.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Uf.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Uf.prototype.setUnit=function(J){this.options.unit=J,Os(this._map,this._container,this.options)};var lc=function(J){this._fullscreen=!1,J&&J.container&&(J.container instanceof i.window.HTMLElement?this._container=J.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};lc.prototype.onAdd=function(J){return this._map=J,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},lc.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},lc.prototype._setupUI=function(){var J=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",J).setAttribute("aria-hidden",!0),J.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},lc.prototype._updateTitle=function(){var J=this._getTitle();this._fullscreenButton.setAttribute("aria-label",J),this._fullscreenButton.title=J},lc.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},lc.prototype._isFullscreen=function(){return this._fullscreen},lc.prototype._changeIcon=function(){(i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},lc.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var rd={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},tp=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),kt=function(J){function le(ne){J.call(this),this.options=i.extend(Object.create(rd),ne),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return J&&(le.__proto__=J),le.prototype=Object.create(J&&J.prototype),le.prototype.constructor=le,le.prototype.addTo=function(ne){return this._map&&this.remove(),this._map=ne,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},le.prototype.isOpen=function(){return!!this._map},le.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},le.prototype.getLngLat=function(){return this._lngLat},le.prototype.setLngLat=function(ne){return this._lngLat=i.LngLat.convert(ne),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},le.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},le.prototype.getElement=function(){return this._container},le.prototype.setText=function(ne){return this.setDOMContent(i.window.document.createTextNode(ne))},le.prototype.setHTML=function(ne){var V,ie=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body");for(ge.innerHTML=ne;V=ge.firstChild;)ie.appendChild(V);return this.setDOMContent(ie)},le.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},le.prototype.setMaxWidth=function(ne){return this.options.maxWidth=ne,this._update(),this},le.prototype.setDOMContent=function(ne){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(ne),this._createCloseButton(),this._update(),this._focusFirstElement(),this},le.prototype.addClassName=function(ne){this._container&&this._container.classList.add(ne)},le.prototype.removeClassName=function(ne){this._container&&this._container.classList.remove(ne)},le.prototype.setOffset=function(ne){return this.options.offset=ne,this._update(),this},le.prototype.toggleClassName=function(ne){if(this._container)return this._container.classList.toggle(ne)},le.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},le.prototype._onMouseUp=function(ne){this._update(ne.point)},le.prototype._onMouseMove=function(ne){this._update(ne.point)},le.prototype._onDrag=function(ne){this._update(ne.point)},le.prototype._update=function(ne){var V=this,ie=this._lngLat||this._trackPointer;if(this._map&&ie&&this._content&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(gt){return V._container.classList.add(gt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Wu(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||ne)){var ge=this._pos=this._trackPointer&&ne?ne:this._map.project(this._lngLat),xe=this.options.anchor,Ee=It(this.options.offset);if(!xe){var Ne,et=this._container.offsetWidth,rt=this._container.offsetHeight;Ne=ge.y+Ee.bottom.ythis._map.transform.height-rt?["bottom"]:[],ge.xthis._map.transform.width-et/2&&Ne.push("right"),xe=Ne.length===0?"bottom":Ne.join("-")}var dt=ge.add(Ee[xe]).round();w.setTransform(this._container,Ki[xe]+" translate("+dt.x+"px,"+dt.y+"px)"),Aa(this._container,xe,"popup")}},le.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var ne=this._container.querySelector(tp);ne&&ne.focus()}},le.prototype._onClose=function(){this.remove()},le}(i.Evented);function It(J){if(J){if(typeof J=="number"){var le=Math.round(Math.sqrt(.5*Math.pow(J,2)));return{center:new i.Point(0,0),top:new i.Point(0,J),"top-left":new i.Point(le,le),"top-right":new i.Point(-le,le),bottom:new i.Point(0,-J),"bottom-left":new i.Point(le,-le),"bottom-right":new i.Point(-le,-le),left:new i.Point(J,0),right:new i.Point(-J,0)}}if(J instanceof i.Point||Array.isArray(J)){var ne=i.Point.convert(J);return{center:ne,top:ne,"top-left":ne,"top-right":ne,bottom:ne,"bottom-left":ne,"bottom-right":ne,left:ne,right:ne}}return{center:i.Point.convert(J.center||[0,0]),top:i.Point.convert(J.top||[0,0]),"top-left":i.Point.convert(J["top-left"]||[0,0]),"top-right":i.Point.convert(J["top-right"]||[0,0]),bottom:i.Point.convert(J.bottom||[0,0]),"bottom-left":i.Point.convert(J["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(J["bottom-right"]||[0,0]),left:i.Point.convert(J.left||[0,0]),right:i.Point.convert(J.right||[0,0])}}return It(new i.Point(0,0))}var Ut={version:i.version,supported:S,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ni,NavigationControl:nl,GeolocateControl:pl,AttributionControl:_u,ScaleControl:Uf,FullscreenControl:lc,Popup:kt,Marker:Vf,Style:zo,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:function(){Jt().acquire(Bt)},clearPrewarmedResources:function(){var J=qt;J&&(J.isPreloaded()&&J.numActive()===1?(J.release(Bt),qt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(J){i.config.ACCESS_TOKEN=J},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(J){i.config.API_URL=J},get workerCount(){return _t.workerCount},set workerCount(J){_t.workerCount=J},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(J){i.config.MAX_PARALLEL_IMAGE_REQUESTS=J},clearStorage:function(J){i.clearTileCache(J)},workerUrl:""};return Ut}),u}()},3108:function(d,s,n){d.exports=n(26099)},26099:function(d,s,n){var u=n(64928),b=n(32420),i=n(51160),S=n(76752),w=n(55616),y=n(31264),m=n(47520),a=n(18400),c=n(72512),h=n(76244);function p(v,_){for(var O=_[0],C=_[1],x=1/(_[2]-O),R=1/(_[3]-C),M=new Array(v.length),T=0,P=v.length/2;T>>1;_.dtype||(_.dtype="array"),typeof _.dtype=="string"?x=new(c(_.dtype))(M):_.dtype&&(x=_.dtype,Array.isArray(x)&&(x.length=M));for(var T=0;TO||Y>1073741824){for(var ae=0;aePe+ze||de>Ie+ze||ye=_e||Qe===Ve)){var $e=P[De];Ve===void 0&&(Ve=$e.length);for(var Oe=Qe;Oe=ee&&Re<=pe&&We>=me&&We<=se&&we.push(ke)}var Ue=A[De],Ze=Ue[4*Qe+0],Ye=Ue[4*Qe+1],Je=Ue[4*Qe+2],Me=Ue[4*Qe+3],Fe=function(ot,Ge){for(var ht=null,pt=0;ht===null;)if(ht=ot[4*Ge+pt],++pt>ot.length)return null;return ht}(Ue,Qe+1),je=.5*ze,tt=De+1;Te(Pe,Ie,je,tt,Ze,Ye||Je||Me||Fe),Te(Pe,Ie+je,je,tt,Ye,Je||Me||Fe),Te(Pe+je,Ie,je,tt,Je,Me||Fe),Te(Pe+je,Ie+je,je,tt,Me,Fe)}}(0,0,1,0,0,1),we},x;function U(X,te,Z){for(var K=1,re=.5,q=.5,Y=.5,ee=0;ee0){m+=Math.abs(S(y[0]));for(var a=1;a2){for(v=0;v=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},3256:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(46284);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xw[0]&&(S[0]=w[0]),S[1]>w[1]&&(S[1]=w[1]),S[2]=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")}},84880:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(76796);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;x=0))throw new Error("precision must be a positive number");var O=Math.pow(10,_||0);return Math.round(v*O)/O},s.radiansToLength=a,s.lengthToRadians=c,s.lengthToDegrees=function(v,_){return h(c(v,_))},s.bearingToAzimuth=function(v){var _=v%360;return _<0&&(_+=360),_},s.radiansToDegrees=h,s.degreesToRadians=function(v){return v%360*Math.PI/180},s.convertLength=function(v,_,O){if(_===void 0&&(_="kilometers"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("length must be a positive number");return a(c(v,_),O)},s.convertArea=function(v,_,O){if(_===void 0&&(_="meters"),O===void 0&&(O="kilometers"),!(v>=0))throw new Error("area must be a positive number");var C=s.areaFactors[_];if(!C)throw new Error("invalid original units");var x=s.areaFactors[O];if(!x)throw new Error("invalid final units");return v/C*x},s.isNumber=p,s.isObject=function(v){return!!v&&v.constructor===Object},s.validateBBox=function(v){if(!v)throw new Error("bbox is required");if(!Array.isArray(v))throw new Error("bbox must be an Array");if(v.length!==4&&v.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");v.forEach(function(_){if(!p(_))throw new Error("bbox must only contain numbers")})},s.validateId=function(v){if(!v)throw new Error("id is required");if(["string","number"].indexOf(typeof v)===-1)throw new Error("id must be a number or a string")},s.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},s.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},s.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},s.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},s.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},s.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},s.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},43752:function(d,s,n){Object.defineProperty(s,"__esModule",{value:!0});var u=n(49840);function b(c,h,p){if(c!==null)for(var v,_,O,C,x,R,M,T,P=0,A=0,L=c.type,D=L==="FeatureCollection",k=L==="Feature",I=D?c.features.length:1,z=0;zR||D>M||k>T)return x=P,R=v,M=D,T=k,void(O=0);var I=u.lineString([x,P],p.properties);if(h(I,v,_,k,O)===!1)return!1;O++,x=P})!==!1&&void 0}}})}function a(c,h){if(!c)throw new Error("geojson is required");y(c,function(p,v,_){if(p.geometry!==null){var O=p.geometry.type,C=p.geometry.coordinates;switch(O){case"LineString":if(h(p,v,_,0,0)===!1)return!1;break;case"Polygon":for(var x=0;xi&&(i=s[w]),s[w]1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y1?re-1:0),Y=1;Y2?"one of ".concat(h," ").concat(c.slice(0,p-1).join(", "),", or ")+c[p-1]:p===2?"one of ".concat(h," ").concat(c[0]," or ").concat(c[1]):"of ".concat(h," ").concat(c[0])}return"of ".concat(h," ").concat(String(c))}m("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),m("ERR_INVALID_ARG_TYPE",function(c,h,p){var v,_,O,C,x;if(S===void 0&&(S=n(45408)),S(typeof c=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,P){return(P===void 0||P>M.length)&&(P=M.length),M.substring(P-9,P)===T}(c," argument"))O="The ".concat(c," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(C=c).length||C.indexOf(".",x)===-1?"argument":"property");O='The "'.concat(c,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return O+". Received type ".concat(u(p))},TypeError),m("ERR_INVALID_ARG_VALUE",function(c,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(p,". Received ").concat(v)},TypeError),m("ERR_INVALID_RETURN_VALUE",function(c,h,p){var v;return v=p&&p.constructor&&p.constructor.name?"instance of ".concat(p.constructor.name):"type ".concat(u(p)),"Expected ".concat(c,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),m("ERR_MISSING_ARGS",function(){for(var c=arguments.length,h=new Array(c),p=0;p0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(O){return'"'.concat(O,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,s,n){function u(de,ye){return function(ve){if(Array.isArray(ve))return ve}(de)||function(ve,_e){var we=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ve[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(we.push(ze.value),!_e||we.length!==_e);Te=!0);}catch(Qe){Pe=!0,Ie=Qe}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return we}(de,ye)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},b(de)}var i=/a/g.flags!==void 0,S=function(de){var ye=[];return de.forEach(function(ve){return ye.push(ve)}),ye},w=function(de){var ye=[];return de.forEach(function(ve,_e){return ye.push([_e,ve])}),ye},y=Object.is?Object.is:n(39896),m=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function c(de){return de.call.bind(de)}var h=c(Object.prototype.hasOwnProperty),p=c(Object.prototype.propertyIsEnumerable),v=c(Object.prototype.toString),_=n(35840).types,O=_.isAnyArrayBuffer,C=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,P=_.isNativeError,A=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ye=0;ye57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(m(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ye){if(de===ye)return 0;for(var ve=de.length,_e=ye.length,we=0,Te=Math.min(ve,_e);we"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[u.charCodeAt(i)]=i;var S=function(y){var m,a=new Uint8Array(y),c=a.length,h="";for(m=0;m>2],h+=u[(3&a[m])<<4|a[m+1]>>4],h+=u[(15&a[m+1])<<2|a[m+2]>>6],h+=u[63&a[m+2]];return c%3==2?h=h.substring(0,h.length-1)+"=":c%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var m,a,c,h,p,v=.75*y.length,_=y.length,O=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var C=new ArrayBuffer(v),x=new Uint8Array(C);for(m=0;m<_;m+=4)a=b[y.charCodeAt(m)],c=b[y.charCodeAt(m+1)],h=b[y.charCodeAt(m+2)],p=b[y.charCodeAt(m+3)],x[O++]=a<<2|c>>4,x[O++]=(15&c)<<4|h>>2,x[O++]=(3&h)<<6|63&p;return C}},59968:function(d,s){s.byteLength=function(m){var a=w(m),c=a[0],h=a[1];return 3*(c+h)/4-h},s.toByteArray=function(m){var a,c,h=w(m),p=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,p,v)),O=0,C=v>0?p-4:p;for(c=0;c>16&255,_[O++]=a>>8&255,_[O++]=255&a;return v===2&&(a=u[m.charCodeAt(c)]<<2|u[m.charCodeAt(c+1)]>>4,_[O++]=255&a),v===1&&(a=u[m.charCodeAt(c)]<<10|u[m.charCodeAt(c+1)]<<4|u[m.charCodeAt(c+2)]>>2,_[O++]=a>>8&255,_[O++]=255&a),_},s.fromByteArray=function(m){for(var a,c=m.length,h=c%3,p=[],v=16383,_=0,O=c-h;_O?O:_+v));return h===1?(a=m[c-1],p.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(m[c-2]<<8)+m[c-1],p.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),p.join("")};for(var n=[],u=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)n[S]=i[S],u[i.charCodeAt(S)]=S;function w(m){var a=m.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=m.indexOf("=");return c===-1&&(c=a),[c,c===a?0:4-c%4]}function y(m,a,c){for(var h,p,v=[],_=a;_>18&63]+n[p>>12&63]+n[p>>6&63]+n[63&p]);return v.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},64928:function(d){function s(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>=0?(h=p,c=p-1):a=p+1}return h}function n(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>0?(h=p,c=p-1):a=p+1}return h}function u(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<0?(h=p,a=p+1):c=p-1}return h}function b(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<=0?(h=p,a=p+1):c=p-1}return h}function i(w,y,m,a,c){for(;a<=c;){var h=a+c>>>1,p=w[h],v=m!==void 0?m(p,y):p-y;if(v===0)return h;v<=0?a=h+1:c=h-1}return-1}function S(w,y,m,a,c,h){return typeof m=="function"?h(w,y,m,a===void 0?0:0|a,c===void 0?w.length-1:0|c):h(w,y,void 0,m===void 0?0:0|m,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,m,a,c){return S(w,y,m,a,c,s)},gt:function(w,y,m,a,c){return S(w,y,m,a,c,n)},lt:function(w,y,m,a,c){return S(w,y,m,a,c,u)},le:function(w,y,m,a,c){return S(w,y,m,a,c,b)},eq:function(w,y,m,a,c){return S(w,y,m,a,c,i)}}},308:function(d,s){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}s.INT_BITS=32,s.INT_MAX=2147483647,s.INT_MIN=-2147483648,s.sign=function(b){return(b>0)-(b<0)},s.abs=function(b){var i=b>>31;return(b^i)-i},s.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=S=((b>>>=i)>255)<<3,i|=S=((b>>>=S)>15)<<2,(i|=S=((b>>>=S)>3)<<1)|(b>>>=S)>>1},s.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},s.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},s.countTrailingZeros=n,s.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},s.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},s.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var u=new Array(256);(function(b){for(var i=0;i<256;++i){var S=i,w=i,y=7;for(S>>>=1;S;S>>>=1)w<<=1,w|=1&S,--y;b[i]=w<>>8&255]<<16|u[b>>>16&255]<<8|u[b>>>24&255]},s.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},s.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},s.interleave3=function(b,i,S){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(S=1227133513&((S=3272356035&((S=251719695&((S=4278190335&((S&=1023)|S<<16))|S<<8))|S<<4))|S<<2))<<2},s.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},s.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,s,n){var u=n(32420);d.exports=function(w,y){y||(y={});var m,a,c,h,p,v,_,O,C,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,P=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");m=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/m/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(O=w).getContext("2d"),m=O.width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,m=(O=w.canvas).width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(C=w,m=w.width,a=w.height,h=C.data,v=4);if(c=Math.max(m,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(p=h,h=Array(m*a),x=0,R=p.length;x-1?b(y):y}},57916:function(d,s,n){var u=n(8844),b=n(53664),i=n(14500),S=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),m=b("%Reflect.apply%",!0)||u.call(y,w),a=b("%Object.defineProperty%",!0),c=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(p){if(typeof p!="function")throw new S("a function is required");var v=m(u,y,arguments);return i(v,1+c(0,p.length-(arguments.length-1)),!0)};var h=function(){return m(u,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(s,n,u){return nu?u:s:sn?n:s}},3808:function(d,s,n){var u=n(32420);function b(i,S){S==null&&(S=!0);var w=i[0],y=i[1],m=i[2],a=i[3];return a==null&&(a=S?1:255),S&&(w*=255,y*=255,m*=255,a*=255),16777216*(w=255&u(w,0,255))+((y=255&u(y,0,255))<<16)+((m=255&u(m,0,255))<<8)+(255&u(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,S){var w=(i=+i)>>>24,y=(16711680&i)>>>16,m=(65280&i)>>>8,a=255&i;return S===!1?[w,y,m,a]:[w/255,y/255,m/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,s,n){var u=n(96824),b=n(32420),i=n(72512);d.exports=function(S,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),m=w!=="uint8"&&w!=="uint8_clamped";return S.length&&typeof S!="string"||((S=u(S))[0]/=255,S[1]/=255,S[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(S)?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:255,m&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(m?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:1):(y[0]=b(Math.floor(255*S[0]),0,255),y[1]=b(Math.floor(255*S[1]),0,255),y[2]=b(Math.floor(255*S[2]),0,255),y[3]=S[3]==null?255:b(Math.floor(255*S[3]),0,255)),y)}},81704:function(d,s,n){var u=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,m,a=[],c=1;if(typeof w=="string")if(u[w])a=u[w].slice(),m="rgb";else if(w==="transparent")c=0,m="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);c=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(c=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(c=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),m="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var p=y[1],v=p==="rgb";m=h=p.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(C,x){if(/%$/.test(C))return x===_?parseFloat(C)/100:h==="rgb"?255*parseFloat(C)/100:parseFloat(C);if(h[x]==="h"){if(/deg$/.test(C))return parseFloat(C);if(S[C]!==void 0)return S[C]}return parseFloat(C)}),p===h&&a.push(1),c=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(C){return parseFloat(C)}),m=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var O=i(w.r,w.red,w.R,null);O!==null?(m="rgb",a=[O,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(m="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),c=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(c/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],m="rgb",c=w.length===4?w[3]:1);else m="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:m,values:a,alpha:c}};var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,s,n){var u=n(81704),b=n(53576),i=n(32420);d.exports=function(S){var w,y=u(S);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,s,n){var u=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,S,w,y,m,a=b[0]/360,c=b[1]/100,h=b[2]/100;if(c===0)return[m=255*h,m,m];i=2*h-(S=h<.5?h*(1+c):h+c-h*c),y=[0,0,0];for(var p=0;p<3;p++)(w=a+.3333333333333333*-(p-1))<0?w++:w>1&&w--,m=6*w<1?i+6*(S-i)*w:2*w<1?S:3*w<2?i+(S-i)*(.6666666666666666-w)*6:i,y[p]=255*m;return y}},u.hsl=function(b){var i,S,w=b[0]/255,y=b[1]/255,m=b[2]/255,a=Math.min(w,y,m),c=Math.max(w,y,m),h=c-a;return c===a?i=0:w===c?i=(y-m)/h:y===c?i=2+(m-w)/h:m===c&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),S=(a+c)/2,[i,100*(c===a?0:S<=.5?h/(c+a):h/(2-c-a)),100*S]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,s,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,s,n){var u=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||u.indexOf(b)!==-1}}},46416:function(d,s,n){var u=n(92384),b=n(68194),i=n(3748),S=n(2904),w=n(47916),y=n(7294),m=n(39956),a=n(8744).isSize;d.exports=h;var c=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(c[v])return c[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return c[v]={system:v};for(var _,O={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},C=m(v,/\s+/);_=C.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){O[R]=_}),c[v]=O;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(S.indexOf(_)===-1){if(a(_)){var x=m(_,"/");if(O.size=x[0],x[1]!=null?O.lineHeight=p(x[1]):C[0]==="/"&&(C.shift(),O.lineHeight=p(C.shift())),!C.length)throw new Error("Missing required font-family.");return O.family=m(C.join(" "),/\s*,\s*/).map(u),c[v]=O}throw new Error("Unknown or unsupported font token: "+_)}O.weight=_}else O.stretch=_;else O.variant=_;else O.style=_}throw new Error("Missing required font-size.")}function p(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,s,n){var u=n(55616),b=n(8744).isSize,i=v(n(68194)),S=v(n(3748)),w=v(n(2904)),y=v(n(47916)),m=v(n(7294)),a={normal:1,"small-caps":1},c={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function p(_,O){if(_&&!O[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var O={},C=0;C<_.length;C++)O[_[C]]=1;return O}d.exports=function(_){if((_=u(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&p(_.system,S),_.system;if(p(_.style,y),p(_.variant,a),p(_.weight,w),p(_.stretch,m),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(C){return c[C]?C:'"'+C+'"'}).join(", "));var O=[];return O.push(_.style),_.variant!==_.style&&O.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&O.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&O.push(_.stretch),O.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),O.push(_.family),O.filter(Boolean).join(" ")}},27940:function(d,s,n){var u,b=n(81680),i=n(18496),S=n(87396),w=n(95920),y=n(50868),m=n(84323),a=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;u=function(p,v,_){var O,C=i(v)&&S(v.value);return delete(O=w(v)).writable,delete O.value,O.get=function(){return!_.overwriteDefinition&&h.call(this,p)?C:(v.value=a.call(C,_.resolveContext?_.resolveContext(this):this),c(this,p,v),this[p])},O},d.exports=function(p){var v=y(arguments[1]);return b(v.resolveContext)&&S(v.resolveContext),m(p,function(_,O){return u(O,_,v)})}},21092:function(d,s,n){var u=n(81680),b=n(85488),i=n(38452),S=n(50868),w=n(71056),y=d.exports=function(m,a){var c,h,p,v,_;return arguments.length<2||typeof m!="string"?(v=a,a=m,m=null):v=arguments[2],u(m)?(c=w.call(m,"c"),h=w.call(m,"e"),p=w.call(m,"w")):(c=p=!0,h=!1),_={value:a,configurable:c,enumerable:h,writable:p},v?i(S(v),_):_};y.gs=function(m,a,c){var h,p,v,_;return typeof m!="string"?(v=c,c=a,a=m,m=null):v=arguments[3],u(a)?b(a)?u(c)?b(c)||(v=c,c=void 0):c=void 0:(v=a,a=c=void 0):a=void 0,u(m)?(h=w.call(m,"c"),p=w.call(m,"e")):(h=!0,p=!1),_={get:a,set:c,configurable:h,enumerable:p},v?i(S(v),_):_}},84706:function(d,s,n){function u(p,v){return pv?1:p>=v?0:NaN}n.d(s,{XE:function(){return u},kv:function(){return S},mo:function(){return y},Uf:function(){return m},SY:function(){return a},ik:function(){return c},oh:function(){return h}}),(b=u).length===1&&(i=b,b=function(p,v){return u(i(p),v)});var b,i;function S(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++xO&&(O=_)}else for(;++x=_)for(O=_;++xO&&(O=_);return O}function w(p){return p===null?NaN:+p}function y(p,v){var _,O=p.length,C=O,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(O=p[C]).length;--v>=0;)_[--R]=O[v];return _}function a(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++x_&&(O=_)}else for(;++x=_)for(O=_;++x_&&(O=_);return O}function c(p,v,_){p=+p,v=+v,_=(C=arguments.length)<2?(v=p,p=0,1):C<3?1:+_;for(var O=-1,C=0|Math.max(0,Math.ceil((v-p)/_)),x=new Array(C);++O=C.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=C[P++],j=S(),U=A();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,P,A,L))}),U}function M(T,P){if(++P>C.length)return T;var A,L=x[P-1];return _!=null&&P>=C.length?A=T.entries():(A=[],T.each(function(D,k){A.push({key:k,values:M(D,P)})})),L!=null?A.sort(function(D,k){return L(D.key,k.key)}):A}return O={object:function(T){return R(T,0,y,m)},map:function(T){return R(T,0,a,c)},entries:function(T){return M(R(T,0,a,c),0)},key:function(T){return C.push(T),O},sortKeys:function(T){return x[C.length-1]=T,O},sortValues:function(T){return v=T,O},rollup:function(T){return _=T,O}}}function y(){return{}}function m(v,_,O){v[_]=O}function a(){return S()}function c(v,_,O){v.set(_,O)}function h(){}var p=S.prototype;h.prototype={constructor:h,has:p.has,add:function(v){return this[u+(v+="")]=v,this},remove:p.remove,clear:p.clear,values:p.keys,size:p.size,empty:p.empty,each:p.each}},49812:function(d,s,n){function u(ze,De){var Qe;function Ve(){var $e,Oe,ke=Qe.length,Re=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke,$e=Me,!(Me=Me[Ye=Ze<<1|Ue]))return $e[Ye]=Fe,ze;if(Re=+ze._x.call(null,Me.data),We=+ze._y.call(null,Me.data),De===Re&&Qe===We)return Fe.next=Me,$e?$e[Ye]=Fe:ze._root=Fe,ze;do $e=$e?$e[Ye]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke;while((Ye=Ze<<1|Ue)==(Je=(We>=ke)<<1|Re>=Oe));return $e[Je]=Me,$e[Ye]=Fe,ze}function w(ze,De,Qe,Ve,$e){this.node=ze,this.x0=De,this.y0=Qe,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function m(ze){return ze[1]}function a(ze,De,Qe){var Ve=new c(De??y,Qe??m,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function c(ze,De,Qe,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=Qe,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},Qe=De;ze=ze.next;)Qe=Qe.next={data:ze.data};return De}n.r(s),n.d(s,{forceCenter:function(){return u},forceCollide:function(){return O},forceLink:function(){return M},forceManyBody:function(){return we},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var p=a.prototype=c.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function O(ze){var De,Qe,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Ye,Je,Me,Fe,je=De.length,tt=0;tt<$e;++tt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeYe+ln||StJe+ln||FtZe.index){var tn=Ye-zt.x-zt.vx,Et=Je-zt.y-zt.vy,Ot=tn*tn+Et*Et;OtWe.r&&(We.r=We[Ue].r)}function Re(){if(De){var We,Ue,Ze=De.length;for(Qe=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eYe&&(Ye=$e));if(We>Ze||Ue>Ye)return this;for(this.cover(We,Ue).cover(Ze,Ye),Qe=0;Qeze||ze>=$e||Ve>De||De>=Oe;)switch(Re=(DeJe||(Oe=We.y0)>Me||(ke=We.x1)=ot)<<1|ze>=tt)&&(We=Fe[Fe.length-1],Fe[Fe.length-1]=Fe[Fe.length-1-Ue],Fe[Fe.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Re=(Fe+tt)/2))?Fe=Re:tt=Re,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Me,!(Me=Me[Ye=Ze<<1|Ue]))return this;if(!Me.length)break;(De[Ye+1&3]||De[Ye+2&3]||De[Ye+3&3])&&(Qe=De,Je=Ye)}for(;Me.data!==ze;)if(Ve=Me,!(Me=Me.next))return this;return($e=Me.next)&&delete Me.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Ye]=$e:delete De[Ye],(Me=De[0]||De[1]||De[2]||De[3])&&Me===(De[3]||De[2]||De[1]||De[0])&&!Me.length&&(Qe?Qe[Je]=Me:this._root=Me),this):(this._root=$e,this)},p.removeAll=function(ze){for(var De=0,Qe=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Re=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var Qe,Ve,$e=new Array(Qe),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,Qe=k,Ve=1/0;Qe;)Qe._call?(Ve>Qe._time&&(Ve=Qe._time),ze=Qe,Qe=Qe._next):(De=Qe._next,Qe._next=null,Qe=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(Z-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(pe,ze-K.now()-Z)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,re(pe)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,Qe){if(typeof ze!="function")throw new TypeError("callback is not a function");Qe=(Qe==null?q():+Qe)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=Qe,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ye=10,ve=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,Qe=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Re=(0,C.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Ye(),Ue.call("tick",De),Qe1?(je==null?Re.remove(Fe):Re.set(Fe,Me(je)),De):Re.get(Fe)},find:function(Fe,je,tt){var ot,Ge,ht,pt,St,Ft=0,zt=ze.length;for(tt==null?tt=1/0:tt*=tt,Ft=0;Ft1?(Ue.on(Fe,je),De):Ue.on(Fe)}}}function we(){var ze,De,Qe,Ve,$e=b(-30),Oe=1,ke=1/0,Re=.81;function We(Je){var Me,Fe=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(Qe=Je,Me=0;Me=ke)){(Je.data!==De||Je.next)&&(tt===0&&(ht+=(tt=i())*tt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+O.slice(x+1)]}n.d(s,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(O){if(!(C=i.exec(O)))throw new Error("invalid format: "+O);var C;return new w({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}function w(O){this.fill=O.fill===void 0?" ":O.fill+"",this.align=O.align===void 0?">":O.align+"",this.sign=O.sign===void 0?"-":O.sign+"",this.symbol=O.symbol===void 0?"":O.symbol+"",this.zero=!!O.zero,this.width=O.width===void 0?void 0:+O.width,this.comma=!!O.comma,this.precision=O.precision===void 0?void 0:+O.precision,this.trim=!!O.trim,this.type=O.type===void 0?"":O.type+""}function y(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}S.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var m={"%":function(O,C){return(100*O).toFixed(C)},b:function(O){return Math.round(O).toString(2)},c:function(O){return O+""},d:function(O){return Math.abs(O=Math.round(O))>=1e21?O.toLocaleString("en").replace(/,/g,""):O.toString(10)},e:function(O,C){return O.toExponential(C)},f:function(O,C){return O.toFixed(C)},g:function(O,C){return O.toPrecision(C)},o:function(O){return Math.round(O).toString(8)},p:function(O,C){return y(100*O,C)},r:y,s:function(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,P=R.length;return T===P?R:T>P?R+new Array(T-P+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+u(O,Math.max(0,C+T-1))[0]},X:function(O){return Math.round(O).toString(16).toUpperCase()},x:function(O){return Math.round(O).toString(16)}};function a(O){return O}var c,h,p=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(O){var C,x,R=O.grouping===void 0||O.thousands===void 0?a:(C=p.call(O.grouping,Number),x=O.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=C[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=C[U=(U+1)%C.length];return j.reverse().join(x)}),M=O.currency===void 0?"":O.currency[0]+"",T=O.currency===void 0?"":O.currency[1]+"",P=O.decimal===void 0?".":O.decimal+"",A=O.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(p.call(O.numerals,String)),L=O.percent===void 0?"%":O.percent+"",D=O.minus===void 0?"-":O.minus+"",k=O.nan===void 0?"NaN":O.nan+"";function I(z){var $=(z=S(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,Z=z.comma,K=z.precision,re=z.trim,q=z.type;q==="n"?(Z=!0,q="g"):m[q]||(K===void 0&&(K=12),re=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=m[q],pe=/[defgprs%]/.test(q);function se(ae){var ce,de,ye,ve=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var we=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),re&&(ae=function(Ie){e:for(var ze,De=Ie.length,Qe=1,Ve=-1;Qe0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),we&&+ae==0&&j!=="+"&&(we=!1),ve=(we?j==="("?j:D:j==="-"||j==="("?"":j)+ve,_e=(q==="s"?v[8+b/3]:"")+_e+(we&&j==="("?")":""),pe){for(ce=-1,de=ae.length;++ce(ye=ae.charCodeAt(ce))||ye>57){_e=(ye===46?P+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}Z&&!X&&(ae=R(ae,1/0));var Te=ve.length+ae.length+_e.length,Pe=Te>1)+ve+ae+_e+Pe.slice(Te);break;default:ae=Pe+ve+ae+_e}return A(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=S(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=u(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(Z){return j(X*Z)+te}}}}c=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=c.format,c.formatPrefix},87108:function(d,s,n){n.r(s),n.d(s,{geoAiry:function(){return Z},geoAiryRaw:function(){return te},geoAitoff:function(){return re},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ve},geoBerghausRaw:function(){return ye},geoBertin1953:function(){return Qe},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Fe},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return tt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return Ot},geoChamberlinAfrica:function(){return Et},geoChamberlinRaw:function(){return ln},geoCollignon:function(){return Cn},geoCollignonRaw:function(){return cn},geoCraig:function(){return Sn},geoCraigRaw:function(){return Pn},geoCraster:function(){return st},geoCrasterRaw:function(){return xt},geoCylindricalEqualArea:function(){return Vt},geoCylindricalEqualAreaRaw:function(){return bt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Dt},geoEckert1:function(){return Bt},geoEckert1Raw:function(){return at},geoEckert2:function(){return qt},geoEckert2Raw:function(){return _t},geoEckert3:function(){return Jt},geoEckert3Raw:function(){return en},geoEckert4:function(){return Nt},geoEckert4Raw:function(){return Zt},geoEckert5:function(){return rn},geoEckert5Raw:function(){return sn},geoEckert6:function(){return wn},geoEckert6Raw:function(){return _n},geoEisenlohr:function(){return fr},geoEisenlohrRaw:function(){return Kn},geoFahey:function(){return tr},geoFaheyRaw:function(){return Zn},geoFoucaut:function(){return $r},geoFoucautRaw:function(){return Br},geoFoucautSinusoidal:function(){return qn},geoFoucautSinusoidalRaw:function(){return vr},geoGilbert:function(){return Vr},geoGingery:function(){return to},geoGingeryRaw:function(){return eo},geoGinzburg4:function(){return _o},geoGinzburg4Raw:function(){return Fo},geoGinzburg5:function(){return Mo},geoGinzburg5Raw:function(){return $o},geoGinzburg6:function(){return Hn},geoGinzburg6Raw:function(){return pi},geoGinzburg8:function(){return Dr},geoGinzburg8Raw:function(){return ar},geoGinzburg9:function(){return Zr},geoGinzburg9Raw:function(){return Sr},geoGringorten:function(){return io},geoGringortenQuincuncial:function(){return zc},geoGringortenRaw:function(){return oo},geoGuyou:function(){return On},geoGuyouRaw:function(){return Rr},geoHammer:function(){return Pe},geoHammerRaw:function(){return we},geoHammerRetroazimuthal:function(){return Er},geoHammerRetroazimuthalRaw:function(){return ir},geoHealpix:function(){return qr},geoHealpixRaw:function(){return zn},geoHill:function(){return wo},geoHillRaw:function(){return Cr},geoHomolosine:function(){return Fn},geoHomolosineRaw:function(){return Mn},geoHufnagel:function(){return xr},geoHufnagelRaw:function(){return dr},geoHyperelliptical:function(){return To},geoHyperellipticalRaw:function(){return Di},geoInterrupt:function(){return fs},geoInterruptedBoggs:function(){return yl},geoInterruptedHomolosine:function(){return yf},geoInterruptedMollweide:function(){return nf},geoInterruptedMollweideHemispheres:function(){return gp},geoInterruptedQuarticAuthalic:function(){return _r},geoInterruptedSinuMollweide:function(){return bh},geoInterruptedSinusoidal:function(){return Tc},geoKavrayskiy7:function(){return au},geoKavrayskiy7Raw:function(){return iu},geoLagrange:function(){return _s},geoLagrangeRaw:function(){return zf},geoLarrivee:function(){return Uc},geoLarriveeRaw:function(){return mu},geoLaskowski:function(){return Al},geoLaskowskiRaw:function(){return Kf},geoLittrow:function(){return Ml},geoLittrowRaw:function(){return Wl},geoLoximuthal:function(){return Nf},geoLoximuthalRaw:function(){return Jf},geoMiller:function(){return Gh},geoMillerRaw:function(){return Jl},geoModifiedStereographic:function(){return vu},geoModifiedStereographicAlaska:function(){return Lp},geoModifiedStereographicGs48:function(){return rh},geoModifiedStereographicGs50:function(){return rf},geoModifiedStereographicLee:function(){return bf},geoModifiedStereographicMiller:function(){return of},geoModifiedStereographicRaw:function(){return ll},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Kh},geoMtFlatPolarParabolicRaw:function(){return Zu},geoMtFlatPolarQuartic:function(){return ed},geoMtFlatPolarQuarticRaw:function(){return Cu},geoMtFlatPolarSinusoidal:function(){return vd},geoMtFlatPolarSinusoidalRaw:function(){return Bu},geoNaturalEarth:function(){return cs.c},geoNaturalEarth2:function(){return Jh},geoNaturalEarth2Raw:function(){return oh},geoNaturalEarthRaw:function(){return cs.g},geoNellHammer:function(){return xf},geoNellHammerRaw:function(){return xh},geoNicolosi:function(){return yd},geoNicolosiRaw:function(){return Ff},geoPatterson:function(){return Nh},geoPattersonRaw:function(){return jc},geoPeirceQuincuncial:function(){return Ud},geoPierceQuincuncial:function(){return Ud},geoPolyconic:function(){return td},geoPolyconicRaw:function(){return af},geoPolyhedral:function(){return gs},geoPolyhedralButterfly:function(){return _d},geoPolyhedralCollignon:function(){return vp},geoPolyhedralWaterman:function(){return ah},geoProject:function(){return cl},geoQuantize:function(){return cf},geoQuincuncial:function(){return ds},geoRectangularPolyconic:function(){return aa},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return Ri},geoRobinsonRaw:function(){return Mu},geoSatellite:function(){return qu},geoSatelliteRaw:function(){return Gc},geoSinuMollweide:function(){return Qt},geoSinuMollweideRaw:function(){return zo},geoSinusoidal:function(){return Me},geoSinusoidalRaw:function(){return Je},geoStitch:function(){return Ec},geoTimes:function(){return wt},geoTimesRaw:function(){return _u},geoTwoPointAzimuthal:function(){return wr},geoTwoPointAzimuthalRaw:function(){return En},geoTwoPointAzimuthalUsa:function(){return pr},geoTwoPointEquidistant:function(){return ya},geoTwoPointEquidistantRaw:function(){return uo},geoTwoPointEquidistantUsa:function(){return Bi},geoVanDerGrinten:function(){return Qi},geoVanDerGrinten2:function(){return nl},geoVanDerGrinten2Raw:function(){return Ws},geoVanDerGrinten3:function(){return Wu},geoVanDerGrinten3Raw:function(){return Fs},geoVanDerGrinten4:function(){return Aa},geoVanDerGrinten4Raw:function(){return Ki},geoVanDerGrintenRaw:function(){return Ni},geoWagner:function(){return Vf},geoWagner4:function(){return Pc},geoWagner4Raw:function(){return pl},geoWagner6:function(){return Os},geoWagner6Raw:function(){return Uf},geoWagner7:function(){return sh},geoWagnerRaw:function(){return Pl},geoWiechel:function(){return lc},geoWiechelRaw:function(){return Si},geoWinkel3:function(){return tp},geoWinkel3Raw:function(){return rd}});var u=n(87952),b=Math.abs,i=Math.atan,S=Math.atan2,w=Math.cos,y=Math.exp,m=Math.floor,a=Math.log,c=Math.max,h=Math.min,p=Math.pow,v=Math.round,_=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},O=Math.sin,C=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,P=M/4,A=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(kt){return kt>1?T:kt<-1?-T:Math.asin(kt)}function Q(kt){return kt>1?0:kt<-1?M:Math.acos(kt)}function j(kt){return kt>0?Math.sqrt(kt):0}function U(kt){return(y(kt)-y(-kt))/2}function X(kt){return(y(kt)+y(-kt))/2}function te(kt){var It=C(kt/2),Ut=2*a(w(kt/2))/(It*It);function J(le,ne){var V=w(le),ie=w(ne),ge=O(ne),xe=ie*V,Ee=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ut/(1+xe));return[Ee*ie*O(le),Ee*ge]}return J.invert=function(le,ne){var V,ie=j(le*le+ne*ne),ge=-kt/2,xe=50;if(!ie)return[0,0];do{var Ee=ge/2,Ne=w(Ee),et=O(Ee),rt=et/Ne,dt=-a(b(Ne));ge-=V=(2/rt*dt-Ut*rt-ie)/(-dt/(et*et)+1-Ut/(2*Ne*Ne))*(Ne<0?.7:1)}while(b(V)>x&&--xe>0);var gt=O(ge);return[S(le*gt,ie*w(ge)),$(ne*gt/ie)]},J}function Z(){var kt=T,It=(0,u.U)(te),Ut=It(kt);return Ut.radius=function(J){return arguments.length?It(kt=J*z):kt*I},Ut.scale(179.976).clipAngle(147)}function K(kt,It){var Ut=w(It),J=function(le){return le?le/Math.sin(le):1}(Q(Ut*w(kt/=2)));return[2*Ut*O(kt)*J,O(It)*J]}function re(){return(0,u.c)(K).scale(152.63)}function q(kt){var It=O(kt),Ut=w(kt),J=kt>=0?1:-1,le=C(J*kt),ne=(1+It-Ut)/2;function V(ie,ge){var xe=w(ge),Ee=w(ie/=2);return[(1+xe)*O(ie),(J*ge>-S(Ee,le)-.001?0:10*-J)+ne+O(ge)*Ut-(1+xe)*It*Ee]}return V.invert=function(ie,ge){var xe=0,Ee=0,Ne=50;do{var et=w(xe),rt=O(xe),dt=w(Ee),gt=O(Ee),Rt=1+dt,Mt=Rt*rt-ie,Xt=ne+gt*Ut-Rt*It*et-ge,dn=Rt*et/2,bn=-rt*gt,vn=It*Rt*rt/2,Ln=Ut*dt+It*et*gt,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn/2,pn=(Mt*vn-Xt*dn)/gn;b(pn)>2&&(pn/=2),xe-=Jn,Ee-=pn}while((b(Jn)>x||b(pn)>x)&&--Ne>0);return J*Ee>-S(w(xe),le)-.001?[2*xe,Ee]:null},V}function Y(){var kt=20*z,It=kt>=0?1:-1,Ut=C(It*kt),J=(0,u.U)(q),le=J(kt),ne=le.stream;return le.parallel=function(V){return arguments.length?(Ut=C((It=(kt=V*z)>=0?1:-1)*kt),J(kt)):kt*I},le.stream=function(V){var ie=le.rotate(),ge=ne(V),xe=(le.rotate([0,0]),ne(V)),Ee=le.precision();return le.rotate(ie),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Ne=-180*It;It*Ne<180;Ne+=90*It)xe.point(Ne,90*It);if(kt)for(;It*(Ne-=3*It*Ee)>=-180;)xe.point(Ne,It*-S(w(Ne*z/2),Ut)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(kt,It){var Ut=C(It/2),J=j(1-Ut*Ut),le=1+J*w(kt/=2),ne=O(kt)*J/le,V=Ut/le,ie=ne*ne,ge=V*V;return[1.3333333333333333*ne*(3+ie-3*ge),1.3333333333333333*V*(3+3*ie-ge)]}function me(){return(0,u.c)(ee).scale(66.1603)}K.invert=function(kt,It){if(!(kt*kt+4*It*It>M*M+x)){var Ut=kt,J=It,le=25;do{var ne,V=O(Ut),ie=O(Ut/2),ge=w(Ut/2),xe=O(J),Ee=w(J),Ne=O(2*J),et=xe*xe,rt=Ee*Ee,dt=ie*ie,gt=1-rt*ge*ge,Rt=gt?Q(Ee*ge)*j(ne=1/gt):ne=0,Mt=2*Rt*Ee*ie-kt,Xt=Rt*xe-It,dn=ne*(rt*dt+Rt*Ee*ge*et),bn=ne*(.5*V*Ne-2*Rt*xe*ie),vn=.25*ne*(Ne*ie-Rt*xe*rt*V),Ln=ne*(et*ge+Rt*dt*Ee),gn=bn*vn-Ln*dn;if(!gn)break;var Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},ee.invert=function(kt,It){if(It*=.375,!(kt*=.375)&&b(It)>1)return null;var Ut=1+kt*kt+It*It,J=j((Ut-j(Ut*Ut-4*It*It))/2),le=$(J)/3,ne=J?function(xe){return a(xe+j(xe*xe-1))}(b(It/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(kt))/3,V=w(le),ie=X(ne),ge=ie*ie-V*V;return[2*_(kt)*S(U(ne)*V,.25-ge),2*_(It)*S(ie*O(le),.25+ge)]};var pe=j(8),se=a(1+L);function ae(kt,It){var Ut=b(It);return UtR&&--ne>0);return[kt/(w(le)*(pe-1/O(le))),_(It)*le]};var de=n(69020);function ye(kt){var It=2*M/kt;function Ut(J,le){var ne=(0,de.O)(J,le);if(b(J)>T){var V=S(ne[1],ne[0]),ie=j(ne[0]*ne[0]+ne[1]*ne[1]),ge=It*v((V-T)/It)+T,xe=S(O(V-=ge),2-w(V));V=ge+$(M/ie*O(xe))-xe,ne[0]=ie*w(V),ne[1]=ie*O(V)}return ne}return Ut.invert=function(J,le){var ne=j(J*J+le*le);if(ne>T){var V=S(le,J),ie=It*v((V-T)/It)+T,ge=V>ie?-1:1,xe=ne*w(ie-V),Ee=1/C(ge*Q((xe-M)/j(M*(M-2*xe)+ne*ne)));V=ie+2*i((Ee+ge*j(Ee*Ee-3))/3),J=ne*w(V),le=ne*O(V)}return de.O.invert(J,le)},Ut}function ve(){var kt=5,It=(0,u.U)(ye),Ut=It(kt),J=Ut.stream,le=.01,ne=-w(le*z),V=O(le*z);return Ut.lobes=function(ie){return arguments.length?It(kt=+ie):kt},Ut.stream=function(ie){var ge=Ut.rotate(),xe=J(ie),Ee=(Ut.rotate([0,0]),J(ie));return Ut.rotate(ge),xe.sphere=function(){Ee.polygonStart(),Ee.lineStart();for(var Ne=0,et=360/kt,rt=2*M/kt,dt=90-180/kt,gt=T;Ne0&&b(J)>x);return V<0?NaN:Ut}function ze(kt,It,Ut){return It===void 0&&(It=40),Ut===void 0&&(Ut=R),function(J,le,ne,V){var ie,ge,xe;ne=ne===void 0?0:+ne,V=V===void 0?0:+V;for(var Ee=0;Eeie)ne-=ge/=2,V-=xe/=2;else{ie=dt;var gt=(ne>0?-1:1)*Ut,Rt=(V>0?-1:1)*Ut,Mt=kt(ne+gt,V),Xt=kt(ne,V+Rt),dn=(Mt[0]-Ne[0])/gt,bn=(Mt[1]-Ne[1])/gt,vn=(Xt[0]-Ne[0])/Rt,Ln=(Xt[1]-Ne[1])/Rt,gn=Ln*dn-bn*vn,Jn=(b(gn)<.5?.5:1)/gn;if(ne+=ge=(rt*vn-et*Ln)*Jn,V+=xe=(et*bn-rt*dn)*Jn,b(ge)0&&(ne[1]*=1+V/1.5*ne[0]*ne[0]),ne}return It.invert=ze(It),It}function Qe(){return(0,u.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(kt,It){var Ut,J=kt*O(It),le=30;do It-=Ut=(It+O(It)-J)/(1+w(It));while(b(Ut)>x&&--le>0);return It/2}function $e(kt,It,Ut){function J(le,ne){return[kt*le*w(ne=Ve(Ut,ne)),It*O(ne)]}return J.invert=function(le,ne){return ne=$(ne/It),[le/(kt*w(ne)),$((2*ne+O(2*ne))/Ut)]},J}Te.invert=function(kt,It){var Ut=2*$(It/2);return[kt*w(Ut/2)/w(Ut),Ut]};var Oe=$e(L/T,L,M);function ke(){return(0,u.c)(Oe).scale(169.529)}var Re=2.00276,We=1.11072;function Ue(kt,It){var Ut=Ve(M,It);return[Re*kt/(1/w(It)+We/w(Ut)),(It+L*O(Ut))/Re]}function Ze(){return(0,u.c)(Ue).scale(160.857)}function Ye(kt){var It=0,Ut=(0,u.U)(kt),J=Ut(It);return J.parallel=function(le){return arguments.length?Ut(It=le*z):It*I},J}function Je(kt,It){return[kt*w(It),It]}function Me(){return(0,u.c)(Je).scale(152.63)}function Fe(kt){if(!kt)return Je;var It=1/C(kt);function Ut(J,le){var ne=It+kt-le,V=ne&&J*w(le)/ne;return[ne*O(V),It-ne*w(V)]}return Ut.invert=function(J,le){var ne=j(J*J+(le=It-le)*le),V=It+kt-ne;return[ne/w(V)*S(J,le),V]},Ut}function je(){return Ye(Fe).scale(123.082).center([0,26.1441]).parallel(45)}function tt(kt){function It(Ut,J){var le=T-J,ne=le&&Ut*kt*O(le)/le;return[le*O(ne)/kt,T-le*w(ne)]}return It.invert=function(Ut,J){var le=Ut*kt,ne=T-J,V=j(le*le+ne*ne),ie=S(le,ne);return[(V?V/O(V):1)*ie/kt,T-V]},It}function ot(){var kt=.5,It=(0,u.U)(tt),Ut=It(kt);return Ut.fraction=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(158.837)}Ue.invert=function(kt,It){var Ut,J,le=Re*It,ne=It<0?-P:P,V=25;do J=le-L*O(ne),ne-=Ut=(O(2*ne)+2*ne-M*O(J))/(2*w(2*ne)+2+M*w(J)*L*w(ne));while(b(Ut)>x&&--V>0);return J=le-L*O(ne),[kt*(1/w(J)+We/w(ne))/Re,J]},Je.invert=function(kt,It){return[kt/w(It),It]};var Ge=$e(1,4/M,M);function ht(){return(0,u.c)(Ge).scale(152.63)}var pt=n(24052),St=n(92992);function Ft(kt,It,Ut,J,le,ne){var V,ie=w(ne);if(b(kt)>1||b(ne)>1)V=Q(Ut*le+It*J*ie);else{var ge=O(kt/2),xe=O(ne/2);V=2*$(j(ge*ge+It*J*xe*xe))}return b(V)>x?[V,S(J*O(ne),It*le-Ut*J*ie)]:[0,0]}function zt(kt,It,Ut){return Q((kt*kt+It*It-Ut*Ut)/(2*kt*It))}function Yt(kt){return kt-2*M*m((kt+M)/(2*M))}function ln(kt,It,Ut){for(var J,le=[[kt[0],kt[1],O(kt[1]),w(kt[1])],[It[0],It[1],O(It[1]),w(It[1])],[Ut[0],Ut[1],O(Ut[1]),w(Ut[1])]],ne=le[2],V=0;V<3;++V,ne=J)J=le[V],ne.v=Ft(J[1]-ne[1],ne[3],ne[2],J[3],J[2],J[0]-ne[0]),ne.point=[0,0];var ie=zt(le[0].v[0],le[2].v[0],le[1].v[0]),ge=zt(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ie;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Ee=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ie),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*O(ie))];return function(Ne,et){var rt,dt=O(et),gt=w(et),Rt=new Array(3);for(rt=0;rt<3;++rt){var Mt=le[rt];if(Rt[rt]=Ft(et-Mt[1],Mt[3],Mt[2],gt,dt,Ne-Mt[0]),!Rt[rt][0])return Mt.point;Rt[rt][1]=Yt(Rt[rt][1]-Mt.v[1])}var Xt=Ee.slice();for(rt=0;rt<3;++rt){var dn=rt==2?0:rt+1,bn=zt(le[rt].v[0],Rt[rt][0],Rt[dn][0]);Rt[rt][1]<0&&(bn=-bn),rt?rt==1?(bn=ge-bn,Xt[0]-=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn)):(bn=xe-bn,Xt[0]+=Rt[rt][0]*w(bn),Xt[1]+=Rt[rt][0]*O(bn)):(Xt[0]+=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn))}return Xt[0]/=3,Xt[1]/=3,Xt}}function tn(kt){return kt[0]*=z,kt[1]*=z,kt}function Et(){return Ot([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ot(kt,It,Ut){var J=(0,pt.c)({type:"MultiPoint",coordinates:[kt,It,Ut]}),le=[-J[0],-J[1]],ne=(0,St.c)(le),V=ln(tn(ne(kt)),tn(ne(It)),tn(ne(Ut)));V.invert=ze(V);var ie=(0,u.c)(V).rotate(le),ge=ie.center;return delete ie.rotate,ie.center=function(xe){return arguments.length?ge(ne(xe)):ne.invert(ge())},ie.clipAngle(90)}function cn(kt,It){var Ut=j(1-O(It));return[2/D*kt*Ut,D*(1-Ut)]}function Cn(){return(0,u.c)(cn).scale(95.6464).center([0,30])}function Pn(kt){var It=C(kt);function Ut(J,le){return[J,(J?J/O(J):1)*(O(le)*w(J)-It*w(le))]}return Ut.invert=It?function(J,le){J&&(le*=O(J)/J);var ne=w(J);return[J,2*S(j(ne*ne+It*It-le*le)-ne,It-le)]}:function(J,le){return[J,$(J?le*C(J)/J:le)]},Ut}function Sn(){return Ye(Pn).scale(249.828).clipAngle(90)}cn.invert=function(kt,It){var Ut=(Ut=It/D-1)*Ut;return[Ut>0?kt*j(M/Ut)/2:0,$(1-Ut)]};var vt=j(3);function xt(kt,It){return[vt*kt*(2*w(2*It/3)-1)/D,vt*D*O(It/3)]}function st(){return(0,u.c)(xt).scale(156.19)}function bt(kt){var It=w(kt);function Ut(J,le){return[J*It,O(le)/It]}return Ut.invert=function(J,le){return[J/It,$(le*It)]},Ut}function Vt(){return Ye(bt).parallel(38.58).scale(195.044)}function Dt(kt){var It=w(kt);function Ut(J,le){return[J*It,(1+It)*C(le/2)]}return Ut.invert=function(J,le){return[J/It,2*i(le/(1+It))]},Ut}function it(){return Ye(Dt).scale(124.75)}function at(kt,It){var Ut=j(8/(3*M));return[Ut*kt*(1-b(It)/M),Ut*It]}function Bt(){return(0,u.c)(at).scale(165.664)}function _t(kt,It){var Ut=j(4-3*O(b(It)));return[2/j(6*M)*kt*Ut,_(It)*j(2*M/3)*(2-Ut)]}function qt(){return(0,u.c)(_t).scale(165.664)}function en(kt,It){var Ut=j(M*(4+M));return[2/Ut*kt*(1+j(1-4*It*It/(M*M))),4/Ut*It]}function Jt(){return(0,u.c)(en).scale(180.739)}function Zt(kt,It){var Ut=(2+T)*O(It);It/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ne=w(It);It-=le=(It+O(It)*(ne+2)-Ut)/(2*ne*(1+ne))}return[2/j(M*(4+M))*kt*(1+w(It)),2*j(M/(4+M))*O(It)]}function Nt(){return(0,u.c)(Zt).scale(180.739)}function sn(kt,It){return[kt*(1+w(It))/j(2+M),2*It/j(2+M)]}function rn(){return(0,u.c)(sn).scale(173.044)}function _n(kt,It){for(var Ut=(1+T)*O(It),J=0,le=1/0;J<10&&b(le)>x;J++)It-=le=(It+O(It)-Ut)/(1+w(It));return Ut=j(2+M),[kt*(1+w(It))/Ut,2*It/Ut]}function wn(){return(0,u.c)(_n).scale(173.044)}xt.invert=function(kt,It){var Ut=3*$(It/(vt*D));return[D*kt/(vt*(2*w(2*Ut/3)-1)),Ut]},at.invert=function(kt,It){var Ut=j(8/(3*M)),J=It/Ut;return[kt/(Ut*(1-b(J)/M)),J]},_t.invert=function(kt,It){var Ut=2-b(It)/j(2*M/3);return[kt*j(6*M)/(2*Ut),_(It)*$((4-Ut*Ut)/3)]},en.invert=function(kt,It){var Ut=j(M*(4+M))/2;return[kt*Ut/(1+j(1-It*It*(4+M)/(4*M))),It*Ut/2]},Zt.invert=function(kt,It){var Ut=It*j((4+M)/M)/2,J=$(Ut),le=w(J);return[kt/(2/j(M*(4+M))*(1+le)),$((J+Ut*(le+2))/(2+T))]},sn.invert=function(kt,It){var Ut=j(2+M),J=It*Ut/2;return[Ut*kt/(1+w(J)),J]},_n.invert=function(kt,It){var Ut=1+T,J=j(Ut/2);return[2*kt*J/(1+w(It*=J)),$((It+O(It))/Ut)]};var An=3+2*L;function Kn(kt,It){var Ut=O(kt/=2),J=w(kt),le=j(w(It)),ne=w(It/=2),V=O(It)/(ne+L*J*le),ie=j(2/(1+V*V)),ge=j((L*ne+(J+Ut)*le)/(L*ne+(J-Ut)*le));return[An*(ie*(ge-1/ge)-2*a(ge)),An*(ie*V*(ge+1/ge)-2*i(V))]}function fr(){return(0,u.c)(Kn).scale(62.5271)}Kn.invert=function(kt,It){if(!(Ut=ee.invert(kt/1.2,1.065*It)))return null;var Ut,J=Ut[0],le=Ut[1],ne=20;kt/=An,It/=An;do{var V=J/2,ie=le/2,ge=O(V),xe=w(V),Ee=O(ie),Ne=w(ie),et=w(le),rt=j(et),dt=Ee/(Ne+L*xe*rt),gt=dt*dt,Rt=j(2/(1+gt)),Mt=(L*Ne+(xe+ge)*rt)/(L*Ne+(xe-ge)*rt),Xt=j(Mt),dn=Xt-1/Xt,bn=Xt+1/Xt,vn=Rt*dn-2*a(Xt)-kt,Ln=Rt*dt*bn-2*i(dt)-It,gn=Ee&&A*rt*ge*gt/Ee,Jn=(L*xe*Ne+rt)/(2*(Ne+L*xe*rt)*(Ne+L*xe*rt)*rt),pn=-.5*dt*Rt*Rt*Rt,In=pn*gn,Ir=pn*Jn,Pr=(Pr=2*Ne+L*rt*(xe-ge))*Pr*Xt,Gr=(L*xe*Ne*rt+et)/Pr,ro=-L*ge*Ee/(rt*Pr),po=dn*In-2*Gr/Xt+Rt*(Gr+Gr/Mt),Wo=dn*Ir-2*ro/Xt+Rt*(ro+ro/Mt),si=dt*bn*In-2*gn/(1+gt)+Rt*bn*gn+Rt*dt*(Gr-Gr/Mt),Bo=dt*bn*Ir-2*Jn/(1+gt)+Rt*bn*Jn+Rt*dt*(ro-ro/Mt),Go=Wo*si-Bo*po;if(!Go)break;var Yo=(Ln*Wo-vn*Bo)/Go,Wi=(vn*si-Ln*po)/Go;J-=Yo,le=c(-T,h(T,le-Wi))}while((b(Yo)>x||b(Wi)>x)&&--ne>0);return b(b(le)-T)J){var Ne=j(Ee),et=S(xe,ge),rt=Ut*v(et/Ut),dt=et-rt,gt=kt*w(dt),Rt=(kt*O(dt)-dt*O(gt))/(T-gt),Mt=Jr(dt,Rt),Xt=(M-kt)/Yr(Mt,gt,M);ge=Ne;var dn,bn=50;do ge-=dn=(kt+Yr(Mt,gt,ge)*Xt-Ne)/(Mt(ge)*Xt);while(b(dn)>x&&--bn>0);xe=dt*O(ge),geJ){var ge=j(ie),xe=S(V,ne),Ee=Ut*v(xe/Ut),Ne=xe-Ee;ne=ge*w(Ne),V=ge*O(Ne);for(var et=ne-T,rt=O(ne),dt=V/rt,gt=nex||b(et)>x)&&--gt>0);return[rt,dt]},ge}var Fo=co(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function _o(){return(0,u.c)(Fo).scale(149.995)}var $o=co(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Mo(){return(0,u.c)($o).scale(153.93)}var pi=co(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Hn(){return(0,u.c)(pi).scale(130.945)}function ar(kt,It){var Ut=kt*kt,J=It*It;return[kt*(1-.162388*J)*(.87-952426e-9*Ut*Ut),It*(1+J/12)]}function Dr(){return(0,u.c)(ar).scale(131.747)}ar.invert=function(kt,It){var Ut,J=kt,le=It,ne=50;do{var V=le*le;le-=Ut=(le*(1+V/12)-It)/(1+V/4)}while(b(Ut)>x&&--ne>0);ne=50,kt/=1-.162388*V;do{var ie=(ie=J*J)*ie;J-=Ut=(J*(.87-952426e-9*ie)-kt)/(.87-.00476213*ie)}while(b(Ut)>x&&--ne>0);return[J,le]};var Sr=co(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Zr(){return(0,u.c)(Sr).scale(131.087)}function go(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=J>0?-.5:.5,V=kt(J+ne*M,le);return V[0]-=ne*It,V}return kt.invert&&(Ut.invert=function(J,le){var ne=J>0?-.5:.5,V=kt.invert(J+ne*It,le),ie=V[0]-ne*M;return ie<-M?ie+=2*M:ie>M&&(ie-=2*M),V[0]=ie,V}),Ut}function oo(kt,It){var Ut=_(kt),J=_(It),le=w(It),ne=w(kt)*le,V=O(kt)*le,ie=O(J*It);kt=b(S(V,ie)),It=$(ne),b(kt-T)>x&&(kt%=T);var ge=function(xe,Ee){if(Ee===T)return[0,0];var Ne,et,rt=O(Ee),dt=rt*rt,gt=dt*dt,Rt=1+gt,Mt=1+3*gt,Xt=1-gt,dn=$(1/j(Rt)),bn=Xt+dt*Rt*dn,vn=(1-rt)/bn,Ln=j(vn),gn=vn*Rt,Jn=j(gn),pn=Ln*Xt;if(xe===0)return[0,-(pn+dt*Jn)];var In,Ir=w(Ee),Pr=1/Ir,Gr=2*rt*Ir,ro=(-bn*Ir-(1-rt)*((-3*dt+dn*Mt)*Gr))/(bn*bn),po=-Pr*Gr,Wo=-Pr*(dt*Rt*ro+vn*Mt*Gr),si=-2*Pr*(Xt*(.5*ro/Ln)-2*dt*Ln*Gr),Bo=4*xe/M;if(xe>.222*M||Ee.175*M){if(Ne=(pn+dt*j(gn*(1+gt)-pn*pn))/(1+gt),xe>M/4)return[Ne,Ne];var Go=Ne,Yo=.5*Ne;Ne=.5*(Yo+Go),et=50;do{var Wi=Ne*(si+po*j(gn-Ne*Ne))+Wo*$(Ne/Jn)-Bo;if(!Wi)break;Wi<0?Yo=Ne:Go=Ne,Ne=.5*(Yo+Go)}while(b(Go-Yo)>x&&--et>0)}else{Ne=x,et=25;do{var Ho=Ne*Ne,jo=j(gn-Ho),Yi=si+po*jo,ai=Ne*Yi+Wo*$(Ne/Jn)-Bo;Ne-=In=jo?ai/(Yi+(Wo-po*Ho)/jo):0}while(b(In)>x&&--et>0)}return[Ne,-pn-dt*j(gn-Ne*Ne)]}(kt>M/4?T-kt:kt,It);return kt>M/4&&(ie=ge[0],ge[0]=-ge[1],ge[1]=-ie),ge[0]*=Ut,ge[1]*=-J,ge}function io(){return(0,u.c)(go(oo)).scale(239.75)}function Do(kt,It){var Ut,J,le,ne,V,ie;if(It=1-x)return Ut=(1-It)/4,le=1/(J=X(kt)),[(ne=((ie=y(2*(ie=kt)))-1)/(ie+1))+Ut*((V=J*U(kt))-kt)/(J*J),le-Ut*ne*le*(V-kt),le+Ut*ne*le*(V+kt),2*i(y(kt))-T+Ut*(V-kt)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(It),0,0,0,0,0,0,0,0],Ee=0;for(J=j(1-It),V=1;b(xe[Ee]/ge[Ee])>x&&Ee<8;)Ut=ge[Ee++],xe[Ee]=(Ut-J)/2,ge[Ee]=(Ut+J)/2,J=j(Ut*J),V*=2;le=V*ge[Ee]*kt;do le=($(ne=xe[Ee]*O(J=le)/ge[Ee])+le)/2;while(--Ee);return[O(le),ne=w(le),ne/w(le-J),le]}function jn(kt,It){if(!It)return kt;if(It===1)return a(C(kt/2+P));for(var Ut=1,J=j(1-It),le=j(It),ne=0;b(le)>x;ne++){if(kt%M){var V=i(J*C(kt)/Ut);V<0&&(V+=M),kt+=V+~~(kt/M)*M}else kt+=kt;le=(Ut+J)/2,J=j(Ut*J),le=((Ut=le)-J)/2}return kt/(p(2,ne)*Ut)}function Rr(kt,It){var Ut=(L-1)/(L+1),J=j(1-Ut*Ut),le=jn(T,J*J),ne=a(C(M/4+b(It)/2)),V=y(-1*ne)/j(Ut),ie=function(xe,Ee){var Ne=xe*xe,et=Ee+1,rt=1-Ne-Ee*Ee;return[.5*((xe>=0?T:-T)-S(rt,2*xe)),-.25*a(rt*rt+4*Ne)+.5*a(et*et+Ne)]}(V*w(-1*kt),V*O(-1*kt)),ge=function(xe,Ee,Ne){var et=b(xe),rt=U(b(Ee));if(et){var dt=1/O(et),gt=1/(C(et)*C(et)),Rt=-(gt+Ne*(rt*rt*dt*dt)-1+Ne),Mt=(-Rt+j(Rt*Rt-(Ne-1)*gt*4))/2;return[jn(i(1/j(Mt)),Ne)*_(xe),jn(i(j((Mt/gt-1)/Ne)),1-Ne)*_(Ee)]}return[0,jn(i(rt),1-Ne)*_(Ee)]}(ie[0],ie[1],J*J);return[-ge[1],(It>=0?1:-1)*(.5*le-ge[0])]}function On(){return(0,u.c)(go(Rr)).scale(151.496)}oo.invert=function(kt,It){b(kt)>1&&(kt=2*_(kt)-kt),b(It)>1&&(It=2*_(It)-It);var Ut=_(kt),J=_(It),le=-Ut*kt,ne=-J*It,V=ne/le<1,ie=function(Ne,et){for(var rt=0,dt=1,gt=.5,Rt=50;;){var Mt=gt*gt,Xt=j(gt),dn=$(1/j(1+Mt)),bn=1-Mt+gt*(1+Mt)*dn,vn=(1-Xt)/bn,Ln=j(vn),gn=vn*(1+Mt),Jn=Ln*(1-Mt),pn=j(gn-Ne*Ne),In=et+Jn+gt*pn;if(b(dt-rt)0?rt=gt:dt=gt,gt=.5*(rt+dt)}if(!Rt)return null;var Ir=$(Xt),Pr=w(Ir),Gr=1/Pr,ro=2*Xt*Pr,po=(-bn*Pr-(-3*gt+dn*(1+3*Mt))*ro*(1-Xt))/(bn*bn);return[M/4*(Ne*(-2*Gr*((1-Mt)*(.5*po/Ln)-2*gt*Ln*ro)+-Gr*ro*pn)+-Gr*(gt*(1+Mt)*po+vn*(1+3*Mt)*ro)*$(Ne/j(gn))),Ir]}(V?ne:le,V?le:ne),ge=ie[0],xe=ie[1],Ee=w(xe);return V&&(ge=-T-ge),[Ut*(S(O(ge)*Ee,-O(xe))+M),J*$(w(ge)*Ee)]},Rr.invert=function(kt,It){var Ut,J,le,ne,V,ie,ge=(L-1)/(L+1),xe=j(1-ge*ge),Ee=(J=-kt,le=xe*xe,(Ut=.5*jn(T,xe*xe)-It)?(ne=Do(Ut,le),J?(ie=(V=Do(J,1-le))[1]*V[1]+le*ne[0]*ne[0]*V[0]*V[0],[[ne[0]*V[2]/ie,ne[1]*ne[2]*V[0]*V[1]/ie],[ne[1]*V[1]/ie,-ne[0]*ne[2]*V[0]*V[2]/ie],[ne[2]*V[1]*V[2]/ie,-le*ne[0]*ne[1]*V[0]/ie]]):[[ne[0],0],[ne[1],0],[ne[2],0]]):[[0,(V=Do(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Ne=function(et,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(et[0]*rt[0]+et[1]*rt[1])/dt,(et[1]*rt[0]-et[0]*rt[1])/dt]}(Ee[0],Ee[1]);return[S(Ne[1],Ne[0])/-1,2*i(y(-.5*a(ge*Ne[0]*Ne[0]+ge*Ne[1]*Ne[1])))-T]};var Yn=n(61780);function ir(kt){var It=O(kt),Ut=w(kt),J=kr(kt);function le(ne,V){var ie=J(ne,V);ne=ie[0],V=ie[1];var ge=O(V),xe=w(V),Ee=w(ne),Ne=Q(It*ge+Ut*xe*Ee),et=O(Ne),rt=b(et)>x?Ne/et:1;return[rt*Ut*O(ne),(b(ne)>T?rt:-rt)*(It*xe-Ut*ge*Ee)]}return J.invert=kr(-kt),le.invert=function(ne,V){var ie=j(ne*ne+V*V),ge=-O(ie),xe=w(ie),Ee=ie*xe,Ne=-V*ge,et=ie*It,rt=j(Ee*Ee+Ne*Ne-et*et),dt=S(Ee*et+Ne*rt,Ne*et-Ee*rt),gt=(ie>T?-1:1)*S(ne*ge,ie*w(dt)*xe+V*O(dt)*ge);return J.invert(gt,dt)},le}function kr(kt){var It=O(kt),Ut=w(kt);return function(J,le){var ne=w(le),V=w(J)*ne,ie=O(J)*ne,ge=O(le);return[S(ie,V*Ut-ge*It),$(ge*Ut+V*It)]}}function Er(){var kt=0,It=(0,u.U)(ir),Ut=It(kt),J=Ut.rotate,le=Ut.stream,ne=(0,Yn.c)();return Ut.parallel=function(V){if(!arguments.length)return kt*I;var ie=Ut.rotate();return It(kt=V*z).rotate(ie)},Ut.rotate=function(V){return arguments.length?(J.call(Ut,[V[0],V[1]-kt*I]),ne.center([-V[0],-V[1]]),Ut):((V=J.call(Ut))[1]+=kt*I,V)},Ut.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ie,ge=ne.radius(89.99)().coordinates[0],xe=ge.length-1,Ee=-1;for(V.lineStart();++Ee=0;)V.point((ie=ge[Ee])[0],ie[1]);V.lineEnd(),V.polygonEnd()},V},Ut.scale(79.4187).parallel(45).clipAngle(179.999)}var Gt=n(84706),on=n(16016),an=$(1-1/3)*I,Tn=bt(0);function zn(kt){var It=an*z,Ut=cn(M,It)[0]-cn(-M,It)[0],J=Tn(0,It)[1],le=cn(0,It)[1],ne=D-le,V=k/kt,ie=4/k,ge=J+ne*ne*4/k;function xe(Ee,Ne){var et,rt=b(Ne);if(rt>It){var dt=h(kt-1,c(0,m((Ee+M)/V)));(et=cn(Ee+=M*(kt-1)/kt-dt*V,rt))[0]=et[0]*k/Ut-k*(kt-1)/(2*kt)+dt*k/kt,et[1]=J+4*(et[1]-le)*ne/k,Ne<0&&(et[1]=-et[1])}else et=Tn(Ee,Ne);return et[0]*=ie,et[1]/=ge,et}return xe.invert=function(Ee,Ne){Ee/=ie;var et=b(Ne*=ge);if(et>J){var rt=h(kt-1,c(0,m((Ee+M)/V)));Ee=(Ee+M*(kt-1)/kt-rt*V)*Ut/k;var dt=cn.invert(Ee,.25*(et-J)*k/ne+le);return dt[0]-=M*(kt-1)/kt-rt*V,Ne<0&&(dt[1]=-dt[1]),dt}return Tn.invert(Ee,Ne)},xe}function Gn(kt,It){return[kt,1&It?90-x:an]}function Lr(kt,It){return[kt,1&It?-90+x:-an]}function Ur(kt){return[kt[0]*(1-x),kt[1]]}function qr(){var kt=4,It=(0,u.U)(zn),Ut=It(kt),J=Ut.stream;return Ut.lobes=function(le){return arguments.length?It(kt=+le):kt},Ut.stream=function(le){var ne=Ut.rotate(),V=J(le),ie=(Ut.rotate([0,0]),J(le));return Ut.rotate(ne),V.sphere=function(){var ge,xe;(0,on.c)((ge=180/kt,xe=[].concat((0,Gt.ik)(-180,180+ge/2,ge).map(Gn),(0,Gt.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Ur):xe]}),ie)},V},Ut.scale(239.75)}function Cr(kt){var It,Ut=1+kt,J=$(O(1/Ut)),le=2*j(M/(It=M+4*J*Ut)),ne=.5*le*(Ut+j(kt*(2+kt))),V=kt*kt,ie=Ut*Ut;function ge(xe,Ee){var Ne,et,rt=1-O(Ee);if(rt&&rt<2){var dt,gt=T-Ee,Rt=25;do{var Mt=O(gt),Xt=w(gt),dn=J+S(Mt,Ut-Xt),bn=1+ie-2*Ut*Xt;gt-=dt=(gt-V*J-Ut*Mt+bn*dn-.5*rt*It)/(2*Ut*Mt*dn)}while(b(dt)>R&&--Rt>0);Ne=le*j(bn),et=xe*dn/M}else Ne=le*(kt+rt),et=xe*J/M;return[Ne*O(et),ne-Ne*w(et)]}return ge.invert=function(xe,Ee){var Ne=xe*xe+(Ee-=ne)*Ee,et=(1+ie-Ne/(le*le))/(2*Ut),rt=Q(et),dt=O(rt),gt=J+S(dt,Ut-et);return[$(xe/j(Ne))*M/gt,$(1-2*(rt-V*J-Ut*dt+(1+ie-2*Ut*et)*gt)/It)]},ge}function wo(){var kt=1,It=(0,u.U)(Cr),Ut=It(kt);return Ut.ratio=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(167.774).center([0,18.67])}var Nr=.7109889596207567,Eo=.0528035274542;function zo(kt,It){return It>-Nr?((kt=Oe(kt,It))[1]+=Eo,kt):Je(kt,It)}function Qt(){return(0,u.c)(zo).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Mn(kt,It){return b(It)>Nr?((kt=Oe(kt,It))[1]-=It>0?Eo:-Eo,kt):Je(kt,It)}function Fn(){return(0,u.c)(Mn).scale(152.63)}function dr(kt,It,Ut,J){var le=j(4*M/(2*Ut+(1+kt-It/2)*O(2*Ut)+(kt+It)/2*O(4*Ut)+It/2*O(6*Ut))),ne=j(J*O(Ut)*j((1+kt*w(2*Ut)+It*w(4*Ut))/(1+kt+It))),V=Ut*ge(1);function ie(Ne){return j(1+kt*w(2*Ne)+It*w(4*Ne))}function ge(Ne){var et=Ne*Ut;return(2*et+(1+kt-It/2)*O(2*et)+(kt+It)/2*O(4*et)+It/2*O(6*et))/Ut}function xe(Ne){return ie(Ne)*O(Ne)}var Ee=function(Ne,et){var rt=Ut*Ie(ge,V*O(et)/Ut,et/M);isNaN(rt)&&(rt=Ut*_(et));var dt=le*ie(rt);return[dt*ne*Ne/M*w(rt),dt/ne*O(rt)]};return Ee.invert=function(Ne,et){var rt=Ie(xe,et*ne/le);return[Ne*M/(w(rt)*le*ne*ie(rt)),$(Ut*ge(rt/Ut)/V)]},Ut===0&&(le=j(J/M),(Ee=function(Ne,et){return[Ne*le,O(et)/le]}).invert=function(Ne,et){return[Ne/le,$(et*le)]}),Ee}function xr(){var kt=1,It=0,Ut=45*z,J=2,le=(0,u.U)(dr),ne=le(kt,It,Ut,J);return ne.a=function(V){return arguments.length?le(kt=+V,It,Ut,J):kt},ne.b=function(V){return arguments.length?le(kt,It=+V,Ut,J):It},ne.psiMax=function(V){return arguments.length?le(kt,It,Ut=+V*z,J):Ut*I},ne.ratio=function(V){return arguments.length?le(kt,It,Ut,J=+V):J},ne.scale(180.739)}function Oo(kt,It,Ut,J,le,ne,V,ie,ge,xe,Ee){if(Ee.nanEncountered)return NaN;var Ne,et,rt,dt,gt,Rt,Mt,Xt,dn,bn;if(et=kt(It+.25*(Ne=Ut-It)),rt=kt(Ut-.25*Ne),isNaN(et))Ee.nanEncountered=!0;else{if(!isNaN(rt))return bn=((Rt=(dt=Ne*(J+4*et+le)/12)+(gt=Ne*(le+4*rt+ne)/12))-V)/15,xe>ge?(Ee.maxDepthCount++,Rt+bn):Math.abs(bn)rt?gt=Rt:dt=Rt,Rt=dt+gt>>1;while(Rt>dt);var Mt=ge[Rt+1]-ge[Rt];return Mt&&(Mt=(rt-ge[Rt+1])/Mt),(Rt+1+Mt)/V}var Ne=2*Ee(1)/M*ne/Ut,et=function(rt,dt){var gt=Ee(b(O(dt))),Rt=J(gt)*rt;return gt/=Ne,[Rt,dt>=0?gt:-gt]};return et.invert=function(rt,dt){var gt;return b(dt*=Ne)<1&&(gt=_(dt)*$(le(b(dt))*ne)),[rt/J(b(dt)),gt]},et}function To(){var kt=0,It=2.5,Ut=1.183136,J=(0,u.U)(Di),le=J(kt,It,Ut);return le.alpha=function(ne){return arguments.length?J(kt=+ne,It,Ut):kt},le.k=function(ne){return arguments.length?J(kt,It=+ne,Ut):It},le.gamma=function(ne){return arguments.length?J(kt,It,Ut=+ne):Ut},le.scale(152.63)}function Ia(kt,It){return b(kt[0]-It[0])Ne[et][2][0];++et);var dt=kt(ge-Ne[et][1][0],xe);return dt[0]+=kt(Ne[et][1][0],Ee*xe>Ee*Ne[et][0][1]?Ne[et][0][1]:xe)[0],dt}Ut?ne.invert=Ut(ne):kt.invert&&(ne.invert=function(ge,xe){for(var Ee=le[+(xe<0)],Ne=It[+(xe<0)],et=0,rt=Ee.length;et=0;--Rt)Ne=(Ee=xe[1][Rt])[0][0],et=Ee[0][1],rt=Ee[1][1],dt=Ee[2][0],gt=Ee[2][1],Mt.push(Ds([[dt-x,gt-x],[dt-x,rt+x],[Ne+x,rt+x],[Ne+x,et-x]],30));return{type:"Polygon",coordinates:[(0,Gt.Uf)(Mt)]}}(ge),It=ge.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*z,Ee[0][1]*z],[Ee[1][0]*z,Ee[1][1]*z],[Ee[2][0]*z,Ee[2][1]*z]]})}),le=It.map(function(xe){return xe.map(function(Ee){var Ne,et=kt(Ee[0][0],Ee[0][1])[0],rt=kt(Ee[2][0],Ee[2][1])[0],dt=kt(Ee[1][0],Ee[0][1])[1],gt=kt(Ee[1][0],Ee[1][1])[1];return dt>gt&&(Ne=dt,dt=gt,gt=Ne),[[et,dt],[rt,gt]]})}),V):It.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*I,Ee[0][1]*I],[Ee[1][0]*I,Ee[1][1]*I],[Ee[2][0]*I,Ee[2][1]*I]]})})},It!=null&&V.lobes(It),V}zo.invert=function(kt,It){return It>-Nr?Oe.invert(kt,It-Eo):Je.invert(kt,It)},Mn.invert=function(kt,It){return b(It)>Nr?Oe.invert(kt,It+(It>0?Eo:-Eo)):Je.invert(kt,It)};var zi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yl(){return fs(Ue,zi).scale(160.857)}var Bs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yf(){return fs(Mn,Bs).scale(152.63)}var il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function nf(){return fs(Oe,il).scale(169.529)}var nh=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gp(){return fs(Oe,nh).scale(169.529).rotate([20,0])}var Qs=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function bh(){return fs(zo,Qs,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Bl=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tc(){return fs(Je,Bl).scale(152.63).rotate([-20,0])}function iu(kt,It){return[3/k*kt*j(M*M/3-It*It),It]}function au(){return(0,u.c)(iu).scale(158.837)}function zf(kt){function It(Ut,J){if(b(b(J)-T)2)return null;var ne=(Ut/=2)*Ut,V=(J/=2)*J,ie=2*J/(1+ne+V);return ie=p((1+ie)/(1-ie),1/kt),[S(2*Ut,1-ne-V)/kt,$((ie-1)/(ie+1))]},It}function _s(){var kt=.5,It=(0,u.U)(zf),Ut=It(kt);return Ut.spacing=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(124.75)}iu.invert=function(kt,It){return[k/3*kt/j(M*M/3-It*It),It]};var ma=M/L;function mu(kt,It){return[kt*(1+j(w(It)))/2,It/(w(It/2)*w(kt/6))]}function Uc(){return(0,u.c)(mu).scale(97.2672)}function Kf(kt,It){var Ut=kt*kt,J=It*It;return[kt*(.975534+J*(-.0143059*Ut-.119161+-.0547009*J)),It*(1.00384+Ut*(.0802894+-.02855*J+199025e-9*Ut)+J*(.0998909+-.0491032*J))]}function Al(){return(0,u.c)(Kf).scale(139.98)}function Wl(kt,It){return[O(kt)/w(It),C(It)*w(kt)]}function Ml(){return(0,u.c)(Wl).scale(144.049).clipAngle(89.999)}function Jf(kt){var It=w(kt),Ut=C(P+kt/2);function J(le,ne){var V=ne-kt,ie=b(V)=0;)et=(Ne=kt[Ee])[0]+ge*(ne=et)-xe*rt,rt=Ne[1]+ge*rt+xe*ne;return[et=ge*(ne=et)-xe*rt,rt=ge*rt+xe*ne]}return Ut.invert=function(J,le){var ne=20,V=J,ie=le;do{for(var ge,xe=It,Ee=kt[xe],Ne=Ee[0],et=Ee[1],rt=0,dt=0;--xe>=0;)rt=Ne+V*(ge=rt)-ie*dt,dt=et+V*dt+ie*ge,Ne=(Ee=kt[xe])[0]+V*(ge=Ne)-ie*et,et=Ee[1]+V*et+ie*ge;var gt,Rt,Mt=(rt=Ne+V*(ge=rt)-ie*dt)*rt+(dt=et+V*dt+ie*ge)*dt;V-=gt=((Ne=V*(ge=Ne)-ie*et-J)*rt+(et=V*et+ie*ge-le)*dt)/Mt,ie-=Rt=(et*rt-Ne*dt)/Mt}while(b(gt)+b(Rt)>x*x&&--ne>0);if(ne){var Xt=j(V*V+ie*ie),dn=2*i(.5*Xt),bn=O(dn);return[S(V*bn,Xt*w(dn)),Xt?$(ie*bn/Xt):0]}},Ut}mu.invert=function(kt,It){var Ut=b(kt),J=b(It),le=x,ne=T;Jx||b(Rt)>x)&&--le>0);return le&&[Ut,J]},Wl.invert=function(kt,It){var Ut=kt*kt,J=It*It+1,le=Ut+J,ne=kt?A*j((le-j(le*le-4*Ut))/Ut):1/j(J);return[$(kt*ne),_(It)*Q(ne)]},Jl.invert=function(kt,It){return[kt,2.5*i(y(.8*It))-.625*M]};var Tu=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],gu=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ec=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Dc=[[.9245,0],[0,0],[.01943,0]],tc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Lp(){return vu(Tu,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function rh(){return vu(gu,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function rf(){return vu(ec,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function of(){return vu(Dc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function bf(){return vu(tc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function vu(kt,It){var Ut=(0,u.c)(ll(kt)).rotate(It).clipAngle(90),J=(0,St.c)(It),le=Ut.center;return delete Ut.rotate,Ut.center=function(ne){return arguments.length?le(J(ne)):J.invert(le())},Ut}var $d=j(6),bl=j(7);function Zu(kt,It){var Ut=$(7*O(It)/(3*$d));return[$d*kt*(2*w(2*Ut/3)-1)/bl,9*O(Ut/3)/bl]}function Kh(){return(0,u.c)(Zu).scale(164.859)}function Cu(kt,It){for(var Ut,J=(1+A)*O(It),le=It,ne=0;ne<25&&(le-=Ut=(O(le/2)+O(le)-J)/(.5*w(le/2)+w(le)),!(b(Ut)R&&--ie>0);return[kt/(.84719-.13063*(J=V*V)+(ne=J*(le=J*J))*ne*(.05494*J-.04515-.02326*le+.00331*ne)),V]},xh.invert=function(kt,It){for(var Ut=It/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ne=w(It/2);It-=le=(It-C(It/2)-Ut)/(1-.5/(ne*ne))}return[2*kt/(1+w(It)),It]};var ep=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function _r(){return fs(we(1/0),ep).rotate([20,0]).scale(152.63)}function Ff(kt,It){var Ut=O(It),J=w(It),le=_(kt);if(kt===0||b(It)===T)return[0,It];if(It===0)return[kt,0];if(b(kt)===T)return[kt*J,T*Ut];var ne=M/(2*kt)-2*kt/M,V=2*It/M,ie=(1-V*V)/(Ut-V),ge=ne*ne,xe=ie*ie,Ee=1+ge/xe,Ne=1+xe/ge,et=(ne*Ut/ie-ne/2)/Ee,rt=(xe*Ut/ge+ie/2)/Ne,dt=rt*rt-(xe*Ut*Ut/ge+ie*Ut-1)/Ne;return[T*(et+j(et*et+J*J/Ee)*le),T*(rt+j(dt<0?0:dt)*_(-It*ne)*le)]}function yd(){return(0,u.c)(Ff).scale(127.267)}Ff.invert=function(kt,It){var Ut=(kt/=T)*kt,J=Ut+(It/=T)*It,le=M*M;return[kt?(J-1+j((1-J)*(1-J)+4*Ut))/(2*kt)*T:0,Ie(function(ne){return J*(M*O(ne)-2*ne)*M+4*ne*ne*(It-O(ne))+2*M*ne-le*It},0)]};var bd=1.0148,_h=.23185,zu=-.14499,va=.02406,El=bd,_f=5*_h,$f=7*zu,ih=9*va,yu=1.790857183;function jc(kt,It){var Ut=It*It;return[kt,It*(bd+Ut*Ut*(_h+Ut*(zu+va*Ut)))]}function Nh(){return(0,u.c)(jc).scale(139.319)}function af(kt,It){if(b(It)yu?It=yu:It<-1.790857183&&(It=-1.790857183);var Ut,J=It;do{var le=J*J;J-=Ut=(J*(bd+le*le*(_h+le*(zu+va*le)))-It)/(El+le*le*(_f+le*($f+ih*le)))}while(b(Ut)>x);return[kt,J]},af.invert=function(kt,It){if(b(It)x&&--ne>0);return V=C(le),[(b(It)=0;)if(Jn=Ln[Pr],gn[0]===Jn[0]&&gn[1]===Jn[1]){if(In)return[In,gn];In=gn}}}(ge.face,xe.face),Ne=(gt=Ee.map(xe.project),Rt=Ee.map(ge.project),Mt=xd(gt[1],gt[0]),Xt=xd(Rt[1],Rt[0]),dn=function(vn,Ln){return S(vn[0]*Ln[1]-vn[1]*Ln[0],vn[0]*Ln[0]+vn[1]*Ln[1])}(Mt,Xt),bn=vc(Mt)/vc(Xt),Vd([1,0,gt[0][0],0,1,gt[0][1]],Vd([bn,0,0,0,bn,0],Vd([w(dn),O(dn),0,-O(dn),w(dn),0],[1,0,-Rt[0][0],0,1,-Rt[0][1]]))));ge.transform=xe.transform?Vd(xe.transform,Ne):Ne;for(var et=xe.edges,rt=0,dt=et.length;rt0?[-J[0],0]:[180-J[0],180])};var It=Ac.map(function(Ut){return{face:Ut,project:kt(Ut)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ut,J){var le=It[Ut];le&&(le.children||(le.children=[])).push(It[J])}),gs(It[0],function(Ut,J){return It[Ut<-M/2?J<0?6:4:Ut<0?J<0?2:0:Utge^Xt>ge&&ie<(Mt-dt)*(ge-gt)/(Xt-gt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ut),!0})||kt.push([Ut])}),wi=[],kt.length?kt.length>1?{type:"MultiPolygon",coordinates:kt}:{type:"Polygon",coordinates:kt[0]}:null}};function ds(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=b(J)0?J-M:J+M,le),ie=(V[0]-V[1])*A,ge=(V[0]+V[1])*A;if(ne)return[ie,ge];var xe=It*A,Ee=ie>0^ge>0?-1:1;return[Ee*ie-_(ge)*xe,Ee*ge-_(ie)*xe]}return kt.invert&&(Ut.invert=function(J,le){var ne=(J+le)*A,V=(le-J)*A,ie=b(ne)<.5*It&&b(V)<.5*It;if(!ie){var ge=It*A,xe=ne>0^V>0?-1:1,Ee=-xe*J+(V>0?1:-1)*ge,Ne=-xe*le+(ne>0?1:-1)*ge;ne=(-Ee-Ne)*A,V=(Ee-Ne)*A}var et=kt.invert(ne,V);return ie||(et[0]+=ne>0?M:-M),et}),(0,u.c)(Ut).rotate([-90,-90,45]).clipAngle(179.999)}function zc(){return ds(oo).scale(176.423)}function Ud(){return ds(Rr).scale(111.48)}function cf(kt,It){if(!(0<=(It=+It)&&It<=20))throw new Error("invalid digits");function Ut(xe){var Ee=xe.length,Ne=2,et=new Array(Ee);for(et[0]=+xe[0].toFixed(It),et[1]=+xe[1].toFixed(It);Ne2||rt[0]!=Ee[0]||rt[1]!=Ee[1])&&(Ne.push(rt),Ee=rt)}return Ne.length===1&&xe.length>1&&Ne.push(Ut(xe[xe.length-1])),Ne}function ne(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Ee;switch(xe.type){case"GeometryCollection":Ee={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Ee={type:"Point",coordinates:Ut(xe.coordinates)};break;case"MultiPoint":Ee={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Ee={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Ee={type:xe.type,coordinates:ne(xe.coordinates)};break;case"MultiPolygon":Ee={type:"MultiPolygon",coordinates:xe.coordinates.map(ne)};break;default:return xe}return xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}function ie(xe){var Ee={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Ee.id=xe.id),xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}if(kt!=null)switch(kt.type){case"Feature":return ie(kt);case"FeatureCollection":var ge={type:"FeatureCollection",features:kt.features.map(ie)};return kt.bbox!=null&&(ge.bbox=kt.bbox),ge;default:return V(kt)}return kt}function Of(kt){var It=O(kt);function Ut(J,le){var ne=It?C(J*It/2)/It:J/2;if(!le)return[2*ne,-kt];var V=2*i(ne*O(le)),ie=1/C(le);return[O(V)*ie,le+(1-w(V))*ie-kt]}return Ut.invert=function(J,le){if(b(le+=kt)x&&--ge>0);var et=J*(xe=C(ie)),rt=C(b(le)0?T:-T)*(xe+ne*(Ne-ie)/2+ne*ne*(Ne-2*xe+ie)/2)]}function Ri(){return(0,u.c)(Mu).scale(152.63)}function Gc(kt,It){var Ut=function(V){function ie(ge,xe){var Ee=w(xe),Ne=(V-1)/(V-Ee*w(ge));return[Ne*Ee*O(ge),Ne*O(xe)]}return ie.invert=function(ge,xe){var Ee=ge*ge+xe*xe,Ne=j(Ee),et=(V-j(1-Ee*(V+1)/(V-1)))/((V-1)/Ne+Ne/(V-1));return[S(ge*et,Ne*j(1-et*et)),Ne?$(xe*et/Ne):0]},ie}(kt);if(!It)return Ut;var J=w(It),le=O(It);function ne(V,ie){var ge=Ut(V,ie),xe=ge[1],Ee=xe*le/(kt-1)+J;return[ge[0]*J/Ee,xe/Ee]}return ne.invert=function(V,ie){var ge=(kt-1)/(kt-1-ie*le);return Ut.invert(ge*V,ge*ie*J)},ne}function qu(){var kt=2,It=0,Ut=(0,u.U)(Gc),J=Ut(kt,It);return J.distance=function(le){return arguments.length?Ut(kt=+le,It):kt},J.tilt=function(le){return arguments.length?Ut(kt,It=le*z):It*I},J.scale(432.147).clipAngle(Q(1/kt)*I-1e-6)}rs.forEach(function(kt){kt[1]*=1.0144}),Mu.invert=function(kt,It){var Ut=It/T,J=90*Ut,le=h(18,b(J/5)),ne=c(0,m(le));do{var V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],xe=ge-V,Ee=ge-2*ie+V,Ne=2*(b(Ut)-ie)/xe,et=Ee/xe,rt=Ne*(1-et*Ne*(1-2*et*Ne));if(rt>=0||ne===1){J=(It>=0?5:-5)*(rt+le);var dt,gt=50;do rt=(le=h(18,b(J)/5))-(ne=m(le)),V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],J-=(dt=(It>=0?T:-T)*(ie+rt*(ge-V)/2+rt*rt*(ge-2*ie+V)/2)-It)*I;while(b(dt)>R&&--gt>0);break}}while(--ne>=0);var Rt=rs[ne][0],Mt=rs[ne+1][0],Xt=rs[h(19,ne+2)][0];return[kt/(Mt+rt*(Xt-Rt)/2+rt*rt*(Xt-2*Mt+Rt)/2),J*z]};var zl=1e-4,xc=1e4,Kc=-180,jd=Kc+zl,ii=180,nd=ii-zl,al=-90,Yl=al+zl,uf=90,hs=uf-zl;function Mc(kt){return kt.length>0}function Eu(kt){return kt===al||kt===uf?[0,kt]:[Kc,(It=kt,Math.floor(It*xc)/xc)];var It}function xu(kt){var It=kt[0],Ut=kt[1],J=!1;return It<=jd?(It=Kc,J=!0):It>=nd&&(It=ii,J=!0),Ut<=Yl?(Ut=al,J=!0):Ut>=hs&&(Ut=uf,J=!0),J?[It,Ut]:kt}function ws(kt){return kt.map(xu)}function Fu(kt,It,Ut){for(var J=0,le=kt.length;J=nd||Ee<=Yl||Ee>=hs){ne[V]=xu(ge);for(var Ne=V+1;Nejd&&rtYl&&dt=ie)break;Ut.push({index:-1,polygon:It,ring:ne=ne.slice(Ne-1)}),ne[0]=Eu(ne[0][1]),V=-1,ie=ne.length}}}}function su(kt){var It,Ut,J,le,ne,V,ie=kt.length,ge={},xe={};for(It=0;It0?M-ie:ie)*I],xe=(0,u.c)(kt(V)).rotate(ge),Ee=(0,St.c)(ge),Ne=xe.center;return delete xe.rotate,xe.center=function(et){return arguments.length?Ne(Ee(et)):Ee.invert(Ne())},xe.clipAngle(90)}function En(kt){var It=w(kt);function Ut(J,le){var ne=(0,Gs.Y)(J,le);return ne[0]*=It,ne}return Ut.invert=function(J,le){return Gs.Y.invert(J/It,le)},Ut}function pr(){return wr([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function wr(kt,It){return Kt(En,kt,It)}function uo(kt){if(!(kt*=2))return de.O;var It=-kt/2,Ut=-It,J=kt*kt,le=C(Ut),ne=.5/O(Ut);function V(ie,ge){var xe=Q(w(ge)*w(ie-It)),Ee=Q(w(ge)*w(ie-Ut));return[((xe*=xe)-(Ee*=Ee))/(2*kt),(ge<0?-1:1)*j(4*J*Ee-(J-xe+Ee)*(J-xe+Ee))/(2*kt)]}return V.invert=function(ie,ge){var xe,Ee,Ne=ge*ge,et=w(j(Ne+(xe=ie+It)*xe)),rt=w(j(Ne+(xe=ie+Ut)*xe));return[S(Ee=et-rt,xe=(et+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Ee*Ee)*ne)]},V}function Bi(){return ya([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ya(kt,It){return Kt(uo,kt,It)}function Ni(kt,It){if(b(It)x&&--ie>0);return[_(kt)*(j(le*le+4)+le)*M/4,T*V]};var _c=4*M+3*j(3),Xl=2*j(2*M*j(3)/_c),pl=$e(Xl*j(3)/M,Xl,_c/6);function Pc(){return(0,u.c)(pl).scale(176.84)}function Uf(kt,It){return[kt*j(1-3*It*It/(M*M)),It]}function Os(){return(0,u.c)(Uf).scale(152.63)}function Si(kt,It){var Ut=w(It),J=w(kt)*Ut,le=1-J,ne=w(kt=S(O(kt)*Ut,-O(It))),V=O(kt);return[V*(Ut=j(1-J*J))-ne*le,-ne*Ut-V*le]}function lc(){return(0,u.c)(Si).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function rd(kt,It){var Ut=K(kt,It);return[(Ut[0]+kt/T)/2,(Ut[1]+It)/2]}function tp(){return(0,u.c)(rd).scale(158.837)}Uf.invert=function(kt,It){return[kt/j(1-3*It*It/(M*M)),It]},Si.invert=function(kt,It){var Ut=(kt*kt+It*It)/-2,J=j(-Ut*(2+Ut)),le=It*Ut+kt*J,ne=kt*Ut-It*J,V=j(ne*ne+le*le);return[S(J*le,V*(1+Ut)),V?-$(J*ne/V):0]},rd.invert=function(kt,It){var Ut=kt,J=It,le=25;do{var ne,V=w(J),ie=O(J),ge=O(2*J),xe=ie*ie,Ee=V*V,Ne=O(Ut),et=w(Ut/2),rt=O(Ut/2),dt=rt*rt,gt=1-Ee*et*et,Rt=gt?Q(V*et)*j(ne=1/gt):ne=0,Mt=.5*(2*Rt*V*rt+Ut/T)-kt,Xt=.5*(Rt*ie+J)-It,dn=.5*ne*(Ee*dt+Rt*V*et*xe)+.5/T,bn=ne*(Ne*ge/4-Rt*ie*rt),vn=.125*ne*(ge*rt-Rt*ie*Ee*Ne),Ln=.5*ne*(xe*et+Rt*dt*V)+.5,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},88728:function(d,s,n){function u(){return new b}function b(){this.reset()}n.d(s,{c:function(){return u}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){S(i,w,this.t),S(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function S(w,y,m){var a=w.s=y+m,c=a-y,h=a-c;w.t=y-h+(m-c)}},95384:function(d,s,n){n.d(s,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var u,b,i,S,w,y=n(88728),m=n(64528),a=n(70932),c=n(16016),h=(0,y.c)(),p=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=O},polygonEnd:function(){var M=+h;p.add(M<0?m.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){p.add(m.kD)}};function _(){v.point=C}function O(){x(u,b)}function C(M,T){v.point=x,u=M,b=T,M*=m.qw,T*=m.qw,i=M,S=(0,m.W8)(T=T/2+m.wL),w=(0,m.g$)(T)}function x(M,T){M*=m.qw,T=(T*=m.qw)/2+m.wL;var P=M-i,A=P>=0?1:-1,L=A*P,D=(0,m.W8)(T),k=(0,m.g$)(T),I=w*k,z=S*D+I*(0,m.W8)(L),$=I*A*(0,m.g$)(L);h.add((0,m.WE)($,z)),i=M,S=D,w=k}function R(M){return p.reset(),(0,c.c)(M,v),2*p}},13696:function(d,s,n){n.d(s,{c:function(){return Q}});var u,b,i,S,w,y,m,a,c,h,p=n(88728),v=n(95384),_=n(84220),O=n(64528),C=n(16016),x=(0,p.c)(),R={point:M,lineStart:P,lineEnd:A,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=P,R.lineEnd=A,v.mQ<0?(u=-(i=180),b=-(S=90)):x>O.Gg?S=90:x<-O.Gg&&(b=-90),h[0]=u,h[1]=i},sphere:function(){u=-(i=180),b=-(S=90)}};function M(j,U){c.push(h=[u=j,i=j]),US&&(S=U)}function T(j,U){var X=(0,_.ux)([j*O.qw,U*O.qw]);if(a){var te=(0,_.CW)(a,X),Z=[te[1],-te[0],0],K=(0,_.CW)(Z,te);(0,_.cJ)(K),K=(0,_.G)(K);var re,q=j-w,Y=q>0?1:-1,ee=K[0]*O.oh*Y,me=(0,O.a2)(q)>180;me^(Y*wS&&(S=re):me^(Y*w<(ee=(ee+360)%360-180)&&eeS&&(S=U)),me?jI(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j):i>=u?(ji&&(i=j)):j>w?I(u,j)>I(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j)}else c.push(h=[u=j,i=j]);US&&(S=U),a=X,w=j}function P(){R.point=T}function A(){h[0]=u,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,O.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,m=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,m),v.oB.lineEnd(),(0,O.a2)(x)>O.Gg&&(u=-(i=180)),h[0]=u,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=Z[1]),I(Z[0],te[1])>I(te[0],te[1])&&(te[0]=Z[0])):K.push(te=Z);for(re=-1/0,U=0,te=K[X=K.length-1];U<=X;te=Z,++U)Z=K[U],(q=I(te[1],Z[0]))>re&&(re=q,u=Z[0],i=te[1])}return c=h=null,u===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,b],[i,S]]}},84220:function(d,s,n){n.d(s,{CW:function(){return w},Ez:function(){return S},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return m}});var u=n(64528);function b(c){return[(0,u.WE)(c[1],c[0]),(0,u.qR)(c[2])]}function i(c){var h=c[0],p=c[1],v=(0,u.W8)(p);return[v*(0,u.W8)(h),v*(0,u.g$)(h),(0,u.g$)(p)]}function S(c,h){return c[0]*h[0]+c[1]*h[1]+c[2]*h[2]}function w(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function y(c,h){c[0]+=h[0],c[1]+=h[1],c[2]+=h[2]}function m(c,h){return[c[0]*h,c[1]*h,c[2]*h]}function a(c){var h=(0,u._I)(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]);c[0]/=h,c[1]/=h,c[2]/=h}},24052:function(d,s,n){n.d(s,{c:function(){return X}});var u,b,i,S,w,y,m,a,c,h,p,v,_,O,C,x,R=n(64528),M=n(70932),T=n(16016),P={sphere:M.c,point:A,lineStart:D,lineEnd:z,polygonStart:function(){P.lineStart=$,P.lineEnd=Q},polygonEnd:function(){P.lineStart=D,P.lineEnd=z}};function A(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(Z))}function L(te,Z,K){++u,i+=(te-i)/u,S+=(Z-S)/u,w+=(K-w)/u}function D(){P.point=k}function k(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),P.point=I,L(O,C,x)}function I(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=(0,R.WE)((0,R._I)((ee=C*Y-x*q)*ee+(ee=x*re-O*Y)*ee+(ee=O*q-C*re)*ee),O*re+C*q+x*Y);b+=ee,y+=ee*(O+(O=re)),m+=ee*(C+(C=q)),a+=ee*(x+(x=Y)),L(O,C,x)}function z(){P.point=A}function $(){P.point=j}function Q(){U(v,_),P.point=A}function j(te,Z){v=te,_=Z,te*=R.qw,Z*=R.qw,P.point=U;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),L(O,C,x)}function U(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=C*Y-x*q,me=x*re-O*Y,pe=O*q-C*re,se=(0,R._I)(ee*ee+me*me+pe*pe),ae=(0,R.qR)(se),ce=se&&-ae/se;c+=ce*ee,h+=ce*me,p+=ce*pe,b+=ae,y+=ae*(O+(O=re)),m+=ae*(C+(C=q)),a+=ae*(x+(x=Y)),L(O,C,x)}function X(te){u=b=i=S=w=y=m=a=c=h=p=0,(0,T.c)(te,P);var Z=c,K=h,re=p,q=Z*Z+K*K+re*re;return q0?v<_:v>_)&&(v+=p*i.kD));for(var R,M=v;p>0?M>_:M<_;M-=x)R=(0,u.G)([O,-C*(0,i.W8)(M),-C*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,c){(c=(0,u.ux)(c))[0]-=a,(0,u.cJ)(c);var h=(0,i.mE)(-c[1]);return((-c[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function m(){var a,c,h=b([0,0]),p=b(90),v=b(6),_={point:function(C,x){a.push(C=c(C,x)),C[0]*=i.oh,C[1]*=i.oh}};function O(){var C=h.apply(this,arguments),x=p.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],c=(0,S.O)(-C[0]*i.qw,-C[1]*i.qw,0).invert,w(_,x,R,1),C={type:"Polygon",coordinates:[a]},a=c=null,C}return O.center=function(C){return arguments.length?(h=typeof C=="function"?C:b([+C[0],+C[1]]),O):h},O.radius=function(C){return arguments.length?(p=typeof C=="function"?C:b(+C),O):p},O.precision=function(C){return arguments.length?(v=typeof C=="function"?C:b(+C),O):v},O}},78284:function(d,s,n){var u=n(14229),b=n(64528);s.c=(0,u.c)(function(){return!0},function(i){var S,w=NaN,y=NaN,m=NaN;return{lineStart:function(){i.lineStart(),S=1},point:function(a,c){var h=a>0?b.pi:-b.pi,p=(0,b.a2)(a-w);(0,b.a2)(p-b.pi)0?b.or:-b.or),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),S=0):m!==h&&p>=b.pi&&((0,b.a2)(w-m)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(C))*(0,b.g$)(O)-(0,b.g$)(C)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+C)/2}(w,y,a,c),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),S=0),i.point(w=a,y=c),m=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-S}}},function(i,S,w,y){var m;if(i==null)m=w*b.or,y.point(-b.pi,m),y.point(0,m),y.point(b.pi,m),y.point(b.pi,0),y.point(b.pi,-m),y.point(0,-m),y.point(-b.pi,-m),y.point(-b.pi,0),y.point(-b.pi,m);else if((0,b.a2)(i[0]-S[0])>b.Gg){var a=i[0]1&&S.push(S.pop().concat(S.shift()))},result:function(){var w=S;return S=[],i=null,w}}}},2728:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(84220),b=n(61780),i=n(64528),S=n(41860),w=n(14229);function y(m){var a=(0,i.W8)(m),c=6*i.qw,h=a>0,p=(0,i.a2)(a)>i.Gg;function v(C,x){return(0,i.W8)(C)*(0,i.W8)(x)>a}function _(C,x,R){var M=(0,u.ux)(C),T=(0,u.ux)(x),P=[1,0,0],A=(0,u.CW)(M,T),L=(0,u.Ez)(A,A),D=A[0],k=L-D*D;if(!k)return!R&&C;var I=a*L/k,z=-a*D/k,$=(0,u.CW)(P,A),Q=(0,u.wx)(P,I),j=(0,u.wx)(A,z);(0,u.mg)(Q,j);var U=$,X=(0,u.Ez)(Q,U),te=(0,u.Ez)(U,U),Z=X*X-te*((0,u.Ez)(Q,Q)-1);if(!(Z<0)){var K=(0,i._I)(Z),re=(0,u.wx)(U,(-X-K)/te);if((0,u.mg)(re,Q),re=(0,u.G)(re),!R)return re;var q,Y=C[0],ee=x[0],me=C[1],pe=x[1];ee0^re[1]<((0,i.a2)(re[0]-Y)i.pi^(Y<=re[0]&&re[0]<=ee)){var ce=(0,u.wx)(U,(-X+K)/te);return(0,u.mg)(ce,Q),[re,(0,u.G)(ce)]}}}function O(C,x){var R=h?m:i.pi-m,M=0;return C<-R?M|=1:C>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(C){var x,R,M,T,P;return{lineStart:function(){T=M=!1,P=1},point:function(A,L){var D,k=[A,L],I=v(A,L),z=h?I?0:O(A,L):I?O(A+(A<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&C.lineStart(),I!==M&&(!(D=_(x,k))||(0,S.c)(x,D)||(0,S.c)(k,D))&&(k[2]=1),I!==M)P=0,I?(C.lineStart(),D=_(k,x),C.point(D[0],D[1])):(D=_(x,k),C.point(D[0],D[1],2),C.lineEnd()),x=D;else if(p&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(P=0,h?(C.lineStart(),C.point($[0][0],$[0][1]),C.point($[1][0],$[1][1]),C.lineEnd()):(C.point($[1][0],$[1][1]),C.lineEnd(),C.lineStart(),C.point($[0][0],$[0][1],3)))}!I||x&&(0,S.c)(x,k)||C.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&C.lineEnd(),x=null},clean:function(){return P|(T&&M)<<1}}},function(C,x,R,M){(0,b.Q)(M,m,c,R,C,x)},h?[0,-m]:[-i.pi,m-i.pi])}},14229:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(97208),b=n(32232),i=n(64528),S=n(58196),w=n(84706);function y(c,h,p,v){return function(_){var O,C,x,R=h(_),M=(0,u.c)(),T=h(M),P=!1,A={point:L,lineStart:k,lineEnd:I,polygonStart:function(){A.point=z,A.lineStart=$,A.lineEnd=Q,C=[],O=[]},polygonEnd:function(){A.point=L,A.lineStart=k,A.lineEnd=I,C=(0,w.Uf)(C);var j=(0,S.c)(O,v);C.length?(P||(_.polygonStart(),P=!0),(0,b.c)(C,a,j,p,_)):j&&(P||(_.polygonStart(),P=!0),_.lineStart(),p(null,null,1,_),_.lineEnd()),P&&(_.polygonEnd(),P=!1),C=O=null},sphere:function(){_.polygonStart(),_.lineStart(),p(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){c(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){A.point=D,R.lineStart()}function I(){A.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,Z=T.clean(),K=M.result(),re=K.length;if(x.pop(),O.push(x),x=null,re)if(1&Z){if((U=(X=K[0]).length-1)>0){for(P||(_.polygonStart(),P=!0),_.lineStart(),j=0;j1&&2&Z&&K.push(K.pop().concat(K.shift())),C.push(K.filter(m))}return A}}function m(c){return c.length>1}function a(c,h){return((c=c.x)[0]<0?c[1]-i.or-i.Gg:i.or-c[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,s,n){n.d(s,{c:function(){return m}});var u=n(64528),b=n(97208),i=n(32232),S=n(84706),w=1e9,y=-w;function m(a,c,h,p){function v(R,M){return a<=R&&R<=h&&c<=M&&M<=p}function _(R,M,T,P){var A=0,L=0;if(R==null||(A=O(R,T))!==(L=O(M,T))||x(R,M)<0^T>0)do P.point(A===0||A===3?a:h,A>1?p:c);while((A=(A+T+4)%4)!==L);else P.point(M[0],M[1])}function O(R,M){return(0,u.a2)(R[0]-a)0?0:3:(0,u.a2)(R[0]-h)0?2:1:(0,u.a2)(R[1]-c)0?1:0:M>0?3:2}function C(R,M){return x(R.x,M.x)}function x(R,M){var T=O(R,1),P=O(M,1);return T!==P?T-P:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,P,A,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=Z,T&&T.push(P=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(Z(A,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eep&&(ve-pe)*(p-se)>(_e-se)*(a-pe)&&++Y:_e<=p&&(ve-pe)*(p-se)<(_e-se)*(a-pe)&&--Y;return Y}(),re=Q&&K,q=(M=(0,S.Uf)(M)).length;(re||q)&&(R.polygonStart(),re&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,C,K,_,R),R.polygonEnd()),j=R,M=T=P=null}};function te(K,re){v(K,re)&&j.point(K,re)}function Z(K,re){var q=v(K,re);if(T&&P.push([K,re]),$)A=K,L=re,D=q,$=!1,q&&(j.lineStart(),j.point(K,re));else if(q&&z)j.point(K,re);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),re=Math.max(y,Math.min(w,re))];(function(me,pe,se,ae,ce,de){var ye,ve=me[0],_e=me[1],we=0,Te=1,Pe=pe[0]-ve,Ie=pe[1]-_e;if(ye=se-ve,Pe||!(ye>0)){if(ye/=Pe,Pe<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=ce-ve,Pe||!(ye<0)){if(ye/=Pe,Pe<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Pe>0){if(ye0)){if(ye/=Ie,Ie<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=de-_e,Ie||!(ye<0)){if(ye/=Ie,Ie<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Ie>0){if(ye0&&(me[0]=ve+we*Pe,me[1]=_e+we*Ie),Te<1&&(pe[0]=ve+Te*Pe,pe[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,c,h,p)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,re),Q=!1)}k=K,I=re,z=q}return X}}},32232:function(d,s,n){n.d(s,{c:function(){return S}});var u=n(41860),b=n(64528);function i(y,m,a,c){this.x=y,this.z=m,this.o=a,this.e=c,this.v=!1,this.n=this.p=null}function S(y,m,a,c,h){var p,v,_=[],O=[];if(y.forEach(function(P){if(!((A=P.length-1)<=0)){var A,L,D=P[0],k=P[A];if((0,u.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),p=0;p=0;--p)h.point((x=C[p])[0],x[1]);else c(M.x,M.p.x,-1,h);M=M.p}C=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(m=y.length){for(var m,a,c=0,h=y[0];++c0&&(Zr=I(Hn[go],Hn[go-1]))>0&&Dr<=Zr&&Sr<=Zr&&(Dr+Sr-Zr)*(1-Math.pow((Dr-Sr)/Zr,2))O.Gg}).map(Do)).concat((0,re.ik)((0,O.Km)(go/ir)*ir,Zr,ir).filter(function(Tn){return(0,O.a2)(Tn%Er)>O.Gg}).map(jn))}return on.lines=function(){return an().map(function(Tn){return{type:"LineString",coordinates:Tn}})},on.outline=function(){return{type:"Polygon",coordinates:[Rr(Sr).concat(On(oo).slice(1),Rr(Dr).reverse().slice(1),On(io).reverse().slice(1))]}},on.extent=function(Tn){return arguments.length?on.extentMajor(Tn).extentMinor(Tn):on.extentMinor()},on.extentMajor=function(Tn){return arguments.length?(Sr=+Tn[0][0],Dr=+Tn[1][0],io=+Tn[0][1],oo=+Tn[1][1],Sr>Dr&&(Tn=Sr,Sr=Dr,Dr=Tn),io>oo&&(Tn=io,io=oo,oo=Tn),on.precision(Gt)):[[Sr,io],[Dr,oo]]},on.extentMinor=function(Tn){return arguments.length?(ar=+Tn[0][0],Hn=+Tn[1][0],go=+Tn[0][1],Zr=+Tn[1][1],ar>Hn&&(Tn=ar,ar=Hn,Hn=Tn),go>Zr&&(Tn=go,go=Zr,Zr=Tn),on.precision(Gt)):[[ar,go],[Hn,Zr]]},on.step=function(Tn){return arguments.length?on.stepMajor(Tn).stepMinor(Tn):on.stepMinor()},on.stepMajor=function(Tn){return arguments.length?(kr=+Tn[0],Er=+Tn[1],on):[kr,Er]},on.stepMinor=function(Tn){return arguments.length?(Yn=+Tn[0],ir=+Tn[1],on):[Yn,ir]},on.precision=function(Tn){return arguments.length?(Gt=+Tn,Do=q(go,Zr,90),jn=Y(ar,Hn,Gt),Rr=q(io,oo,90),On=Y(Sr,Dr,Gt),on):Gt},on.extentMajor([[-180,-90+O.Gg],[180,90-O.Gg]]).extentMinor([[-180,-80-O.Gg],[180,80+O.Gg]])}function me(){return ee()()}var pe,se,ae,ce,de=n(27284),ye=n(7376),ve=(0,_.c)(),_e=(0,_.c)(),we={point:C.c,lineStart:C.c,lineEnd:C.c,polygonStart:function(){we.lineStart=Te,we.lineEnd=ze},polygonEnd:function(){we.lineStart=we.lineEnd=we.point=C.c,ve.add((0,O.a2)(_e)),_e.reset()},result:function(){var Hn=ve/2;return ve.reset(),Hn}};function Te(){we.point=Pe}function Pe(Hn,ar){we.point=Ie,pe=ae=Hn,se=ce=ar}function Ie(Hn,ar){_e.add(ce*Hn-ae*ar),ae=Hn,ce=ar}function ze(){Ie(pe,se)}var De,Qe,Ve,$e,Oe=we,ke=n(73784),Re=0,We=0,Ue=0,Ze=0,Ye=0,Je=0,Me=0,Fe=0,je=0,tt={point:ot,lineStart:Ge,lineEnd:St,polygonStart:function(){tt.lineStart=Ft,tt.lineEnd=zt},polygonEnd:function(){tt.point=ot,tt.lineStart=Ge,tt.lineEnd=St},result:function(){var Hn=je?[Me/je,Fe/je]:Je?[Ze/Je,Ye/Je]:Ue?[Re/Ue,We/Ue]:[NaN,NaN];return Re=We=Ue=Ze=Ye=Je=Me=Fe=je=0,Hn}};function ot(Hn,ar){Re+=Hn,We+=ar,++Ue}function Ge(){tt.point=ht}function ht(Hn,ar){tt.point=pt,ot(Ve=Hn,$e=ar)}function pt(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,ot(Ve=Hn,$e=ar)}function St(){tt.point=ot}function Ft(){tt.point=Yt}function zt(){ln(De,Qe)}function Yt(Hn,ar){tt.point=ln,ot(De=Ve=Hn,Qe=$e=ar)}function ln(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,Me+=(Zr=$e*Hn-Ve*ar)*(Ve+Hn),Fe+=Zr*($e+ar),je+=3*Zr,ot(Ve=Hn,$e=ar)}var tn=tt;function Et(Hn){this._context=Hn}Et.prototype={_radius:4.5,pointRadius:function(Hn){return this._radius=Hn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._context.moveTo(Hn,ar),this._point=1;break;case 1:this._context.lineTo(Hn,ar);break;default:this._context.moveTo(Hn+this._radius,ar),this._context.arc(Hn,ar,this._radius,0,O.kD)}},result:C.c};var Ot,cn,Cn,Pn,Sn,vt=(0,_.c)(),xt={point:C.c,lineStart:function(){xt.point=st},lineEnd:function(){Ot&&bt(cn,Cn),xt.point=C.c},polygonStart:function(){Ot=!0},polygonEnd:function(){Ot=null},result:function(){var Hn=+vt;return vt.reset(),Hn}};function st(Hn,ar){xt.point=bt,cn=Pn=Hn,Cn=Sn=ar}function bt(Hn,ar){Pn-=Hn,Sn-=ar,vt.add((0,O._I)(Pn*Pn+Sn*Sn)),Pn=Hn,Sn=ar}var Vt=xt;function Dt(){this._string=[]}function it(Hn){return"m0,"+Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+-2*Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+2*Hn+"z"}function at(Hn,ar){var Dr,Sr,Zr=4.5;function go(oo){return oo&&(typeof Zr=="function"&&Sr.pointRadius(+Zr.apply(this,arguments)),(0,x.c)(oo,Dr(Sr))),Sr.result()}return go.area=function(oo){return(0,x.c)(oo,Dr(Oe)),Oe.result()},go.measure=function(oo){return(0,x.c)(oo,Dr(Vt)),Vt.result()},go.bounds=function(oo){return(0,x.c)(oo,Dr(ke.c)),ke.c.result()},go.centroid=function(oo){return(0,x.c)(oo,Dr(tn)),tn.result()},go.projection=function(oo){return arguments.length?(Dr=oo==null?(Hn=null,ye.c):(Hn=oo).stream,go):Hn},go.context=function(oo){return arguments.length?(Sr=oo==null?(ar=null,new Dt):new Et(ar=oo),typeof Zr!="function"&&Sr.pointRadius(Zr),go):ar},go.pointRadius=function(oo){return arguments.length?(Zr=typeof oo=="function"?oo:(Sr.pointRadius(+oo),+oo),go):Zr},go.projection(Hn).context(ar)}Dt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Hn){return(Hn=+Hn)!==this._radius&&(this._radius=Hn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._string.push("M",Hn,",",ar),this._point=1;break;case 1:this._string.push("L",Hn,",",ar);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Hn,",",ar,this._circle)}},result:function(){if(this._string.length){var Hn=this._string.join("");return this._string=[],Hn}return null}};var Bt=n(87952);function _t(Hn){var ar=0,Dr=O.pi/3,Sr=(0,Bt.U)(Hn),Zr=Sr(ar,Dr);return Zr.parallels=function(go){return arguments.length?Sr(ar=go[0]*O.qw,Dr=go[1]*O.qw):[ar*O.oh,Dr*O.oh]},Zr}function qt(Hn,ar){var Dr=(0,O.g$)(Hn),Sr=(Dr+(0,O.g$)(ar))/2;if((0,O.a2)(Sr)=.12&&Gt<.234&&Er>=-.425&&Er<-.214?io:Gt>=.166&&Gt<.234&&Er>=-.214&&Er<-.115?Do:oo).invert(Yn)},Rr.stream=function(Yn){return Hn&&ar===Yn?Hn:(ir=[oo.stream(ar=Yn),io.stream(Yn),Do.stream(Yn)],kr=ir.length,Hn={point:function(Er,Gt){for(var on=-1;++on0?io<-O.or+O.Gg&&(io=-O.or+O.Gg):io>O.or-O.Gg&&(io=O.or-O.Gg);var Do=Zr/(0,O.g3)(fr(io),Sr);return[Do*(0,O.g$)(Sr*oo),Zr-Do*(0,O.W8)(Sr*oo)]}return go.invert=function(oo,io){var Do=Zr-io,jn=(0,O.kq)(Sr)*(0,O._I)(oo*oo+Do*Do),Rr=(0,O.WE)(oo,(0,O.a2)(Do))*(0,O.kq)(Do);return Do*Sr<0&&(Rr-=O.pi*(0,O.kq)(oo)*(0,O.kq)(Do)),[Rr/Sr,2*(0,O.MQ)((0,O.g3)(Zr/jn,1/Sr))-O.or]},go}function Zn(){return _t(Un).scale(109.5).parallels([30,30])}wn.invert=function(Hn,ar){return[Hn,2*(0,O.MQ)((0,O.oN)(ar))-O.or]};var tr=n(69604);function Br(Hn,ar){var Dr=(0,O.W8)(Hn),Sr=Hn===ar?(0,O.g$)(Hn):(Dr-(0,O.W8)(ar))/(ar-Hn),Zr=Dr/Sr+Hn;if((0,O.a2)(Sr)2?Sr[2]+90:90]):[(Sr=Dr())[0],Sr[1],Sr[2]-90]},Dr([0,0,90]).scale(159.155)}_o.invert=(0,Fo.g)(function(Hn){return 2*(0,O.MQ)(Hn)}),Mo.invert=function(Hn,ar){return[-ar,2*(0,O.MQ)((0,O.oN)(Hn))-O.or]}},27284:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){var w=i[0]*u.qw,y=i[1]*u.qw,m=S[0]*u.qw,a=S[1]*u.qw,c=(0,u.W8)(y),h=(0,u.g$)(y),p=(0,u.W8)(a),v=(0,u.g$)(a),_=c*(0,u.W8)(w),O=c*(0,u.g$)(w),C=p*(0,u.W8)(m),x=p*(0,u.g$)(m),R=2*(0,u.qR)((0,u._I)((0,u.SD)(a-y)+c*p*(0,u.SD)(m-w))),M=(0,u.g$)(R),T=R?function(P){var A=(0,u.g$)(P*=R)/M,L=(0,u.g$)(R-P)/M,D=L*_+A*C,k=L*O+A*x,I=L*h+A*v;return[(0,u.WE)(k,D)*u.oh,(0,u.WE)(I,(0,u._I)(D*D+k*k))*u.oh]}:function(){return[w*u.oh,y*u.oh]};return T.distance=R,T}},64528:function(d,s,n){n.d(s,{Gg:function(){return u},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return p},Yz:function(){return C},_I:function(){return T},a2:function(){return c},a6:function(){return P},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return A},oN:function(){return O},oh:function(){return m},or:function(){return S},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var u=1e-6,b=1e-12,i=Math.PI,S=i/2,w=i/4,y=2*i,m=180/i,a=i/180,c=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,_=Math.ceil,O=Math.exp,C=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,P=Math.tan;function A(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?S:k<-1?-S:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,s,n){function u(){}n.d(s,{c:function(){return u}})},73784:function(d,s,n){var u=n(70932),b=1/0,i=b,S=-b,w=S,y={point:function(m,a){mS&&(S=m),aw&&(w=a)},lineStart:u.c,lineEnd:u.c,polygonStart:u.c,polygonEnd:u.c,result:function(){var m=[[b,i],[S,w]];return S=w=-(i=b=1/0),m}};s.c=y},41860:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){return(0,u.a2)(i[0]-S[0])=0?1:-1,te=X*U,Z=te>i.pi,K=L*Q;if(S.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=Z?U+X*i.kD:U,Z^P>=c^z>=c){var re=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(re);var q=(0,b.CW)(v,re);(0,b.cJ)(q);var Y=(Z^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(re[0]||re[1]))&&(O+=Z^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+Z,ae=Q+K,ce=j+re,de=(0,y._I)(se*se+ae*ae+ce*ce),ye=(0,y.qR)(ce/=de),ve=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/pe-.5)>.3||$*Z+Q*K+j*re2?Pe[2]%360*y.qw:0,we()):[re*y.oh,q*y.oh,Y*y.oh]},ve.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,we()):ee*y.oh},ve.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,we()):me<0},ve.reflectY=function(Pe){return arguments.length?(pe=Pe?-1:1,we()):pe<0},ve.precision=function(Pe){return arguments.length?(I=_(z,ye=Pe*Pe),Te()):(0,y._I)(ye)},ve.fitExtent=function(Pe,Ie){return(0,c.QX)(ve,Pe,Ie)},ve.fitSize=function(Pe,Ie){return(0,c.UV)(ve,Pe,Ie)},ve.fitWidth=function(Pe,Ie){return(0,c.Qx)(ve,Pe,Ie)},ve.fitHeight=function(Pe,Ie){return(0,c.OW)(ve,Pe,Ie)},function(){return P=T.apply(this,arguments),ve.invert=P.invert&&_e,we()}}},47984:function(d,s,n){n.d(s,{c:function(){return S},g:function(){return i}});var u=n(87952),b=n(64528);function i(w,y){var m=y*y,a=m*m;return[w*(.8707-.131979*m+a*(a*(.003971*m-.001529*a)-.013791)),y*(1.007226+m*(.015085+a*(.028874*m-.044475-.005916*a)))]}function S(){return(0,u.c)(i).scale(175.295)}i.invert=function(w,y){var m,a=y,c=25;do{var h=a*a,p=h*h;a-=m=(a*(1.007226+h*(.015085+p*(.028874*h-.044475-.005916*p)))-y)/(1.007226+h*(.045255+p*(.259866*h-.311325-.06507600000000001*p)))}while((0,b.a2)(m)>b.Gg&&--c>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,s,n){n.d(s,{c:function(){return w},t:function(){return S}});var u=n(64528),b=n(62280),i=n(87952);function S(y,m){return[(0,u.W8)(m)*(0,u.g$)(y),(0,u.g$)(m)]}function w(){return(0,i.c)(S).scale(249.5).clipAngle(90+u.Gg)}S.invert=(0,b.g)(u.qR)},92992:function(d,s,n){n.d(s,{O:function(){return S},c:function(){return a}});var u=n(68120),b=n(64528);function i(c,h){return[(0,b.a2)(c)>b.pi?c+Math.round(-c/b.kD)*b.kD:c,h]}function S(c,h,p){return(c%=b.kD)?h||p?(0,u.c)(y(c),m(h,p)):y(c):h||p?m(h,p):i}function w(c){return function(h,p){return[(h+=c)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,p]}}function y(c){var h=w(c);return h.invert=w(-c),h}function m(c,h){var p=(0,b.W8)(c),v=(0,b.g$)(c),_=(0,b.W8)(h),O=(0,b.g$)(h);function C(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*p+T*v;return[(0,b.WE)(P*_-L*O,T*p-A*v),(0,b.qR)(L*_+P*O)]}return C.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*_-P*O;return[(0,b.WE)(P*_+A*O,T*p+L*v),(0,b.qR)(L*p-T*v)]},C}function a(c){function h(p){return(p=c(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p}return c=S(c[0]*b.qw,c[1]*b.qw,c.length>2?c[2]*b.qw:0),h.invert=function(p){return(p=c.invert(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p},h}i.invert=i},16016:function(d,s,n){function u(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}n.d(s,{c:function(){return y}});var b={Feature:function(m,a){u(m.geometry,a)},FeatureCollection:function(m,a){for(var c=m.features,h=-1,p=c.length;++h=0;)Re+=We[Ue].value;else Re=1;ke.value=Re}function y(ke,Re){var We,Ue,Ze,Ye,Je,Me=new h(ke),Fe=+ke.value&&(Me.value=ke.value),je=[Me];for(Re==null&&(Re=m);We=je.pop();)if(Fe&&(We.value=+We.data.value),(Ze=Re(We.data))&&(Je=Ze.length))for(We.children=new Array(Je),Ye=Je-1;Ye>=0;--Ye)je.push(Ue=We.children[Ye]=new h(Ze[Ye])),Ue.parent=We,Ue.depth=We.depth+1;return Me.eachBefore(c)}function m(ke){return ke.children}function a(ke){ke.data=ke.data.data}function c(ke){var Re=0;do ke.height=Re;while((ke=ke.parent)&&ke.height<++Re)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(s),n.d(s,{cluster:function(){return S},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return Qe},treemapBinary:function(){return Ve},treemapDice:function(){return re},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Re,We,Ue,Ze,Ye=this,Je=[Ye];do for(Re=Je.reverse(),Je=[];Ye=Re.pop();)if(ke(Ye),We=Ye.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Re[We]);return this},sum:function(ke){return this.eachAfter(function(Re){for(var We=+ke(Re.data)||0,Ue=Re.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Re.value=We})},sort:function(ke){return this.eachBefore(function(Re){Re.children&&Re.children.sort(ke)})},path:function(ke){for(var Re=this,We=function(Ye,Je){if(Ye===Je)return Ye;var Me=Ye.ancestors(),Fe=Je.ancestors(),je=null;for(Ye=Me.pop(),Je=Fe.pop();Ye===Je;)je=Ye,Ye=Me.pop(),Je=Fe.pop();return je}(Re,ke),Ue=[Re];Re!==We;)Re=Re.parent,Ue.push(Re);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Re=[ke];ke=ke.parent;)Re.push(ke);return Re},descendants:function(){var ke=[];return this.each(function(Re){ke.push(Re)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Re){Re.children||ke.push(Re)}),ke},links:function(){var ke=this,Re=[];return ke.each(function(We){We!==ke&&Re.push({source:We.parent,target:We})}),Re},copy:function(){return y(this).eachBefore(a)}};var p=Array.prototype.slice;function v(ke){for(var Re,We,Ue=0,Ze=(ke=function(Je){for(var Me,Fe,je=Je.length;je;)Fe=Math.random()*je--|0,Me=Je[je],Je[je]=Je[Fe],Je[Fe]=Me;return Je}(p.call(ke))).length,Ye=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Re){for(var We=0;We(Je*=Je)?(Ue=(je+Je-Ze)/(2*je),Ye=Math.sqrt(Math.max(0,Je/je-Ue*Ue)),We.x=ke.x-Ue*Me-Ye*Fe,We.y=ke.y-Ue*Fe+Ye*Me):(Ue=(je+Ze-Je)/(2*je),Ye=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Re.x+Ue*Me-Ye*Fe,We.y=Re.y+Ue*Fe+Ye*Me)):(We.x=Re.x+We.r,We.y=Re.y)}function A(ke,Re){var We=ke.r+Re.r-1e-6,Ue=Re.x-ke.x,Ze=Re.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Re=ke._,We=ke.next._,Ue=Re.r+We.r,Ze=(Re.x*We.r+We.x*Re.r)/Ue,Ye=(Re.y*We.r+We.y*Re.r)/Ue;return Ze*Ze+Ye*Ye}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Re,We,Ue,Ze,Ye,Je,Me,Fe,je,tt,ot;if((Re=ke[0]).x=0,Re.y=0,!(Ze>1))return Re.r;if(We=ke[1],Re.x=-We.r,We.x=Re.r,We.y=0,!(Ze>2))return Re.r+We.r;P(We,Re,Ue=ke[2]),Re=new D(Re),We=new D(We),Ue=new D(Ue),Re.next=Ue.previous=We,We.next=Re.previous=Ue,Ue.next=We.previous=Re;e:for(Me=3;Me0)throw new Error("cycle");return Je}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Re=z(Ue),We):Re},We}function ce(ke,Re){return ke.parent===Re.parent?1:2}function de(ke){var Re=ke.children;return Re?Re[0]:ke.t}function ye(ke){var Re=ke.children;return Re?Re[Re.length-1]:ke.t}function ve(ke,Re,We){var Ue=We/(Re.i-ke.i);Re.c-=Ue,Re.s+=We,ke.c+=Ue,Re.z+=We,Re.m+=We}function _e(ke,Re,We){return ke.a.parent===Re.parent?ke.a:We}function we(ke,Re){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Re}function Te(){var ke=ce,Re=1,We=1,Ue=null;function Ze(Fe){var je=function(zt){for(var Yt,ln,tn,Et,Ot,cn=new we(zt,0),Cn=[cn];Yt=Cn.pop();)if(tn=Yt._.children)for(Yt.children=new Array(Ot=tn.length),Et=Ot-1;Et>=0;--Et)Cn.push(ln=Yt.children[Et]=new we(tn[Et],Et)),ln.parent=Yt;return(cn.parent=new we(null,0)).children=[cn],cn}(Fe);if(je.eachAfter(Ye),je.parent.m=-je.z,je.eachBefore(Je),Ue)Fe.eachBefore(Me);else{var tt=Fe,ot=Fe,Ge=Fe;Fe.eachBefore(function(zt){zt.xot.x&&(ot=zt),zt.depth>Ge.depth&&(Ge=zt)});var ht=tt===ot?1:ke(tt,ot)/2,pt=ht-tt.x,St=Re/(ot.x+ht+pt),Ft=We/(Ge.depth||1);Fe.eachBefore(function(zt){zt.x=(zt.x+pt)*St,zt.y=zt.depth*Ft})}return Fe}function Ye(Fe){var je=Fe.children,tt=Fe.parent.children,ot=Fe.i?tt[Fe.i-1]:null;if(je){(function(ht){for(var pt,St=0,Ft=0,zt=ht.children,Yt=zt.length;--Yt>=0;)(pt=zt[Yt]).z+=St,pt.m+=St,St+=pt.s+(Ft+=pt.c)})(Fe);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Fe.z=ot.z+ke(Fe._,ot._),Fe.m=Fe.z-Ge):Fe.z=Ge}else ot&&(Fe.z=ot.z+ke(Fe._,ot._));Fe.parent.A=function(ht,pt,St){if(pt){for(var Ft,zt=ht,Yt=ht,ln=pt,tn=zt.parent.children[0],Et=zt.m,Ot=Yt.m,cn=ln.m,Cn=tn.m;ln=ye(ln),zt=de(zt),ln&&zt;)tn=de(tn),(Yt=ye(Yt)).a=ht,(Ft=ln.z+cn-zt.z-Et+ke(ln._,zt._))>0&&(ve(_e(ln,ht,St),ht,Ft),Et+=Ft,Ot+=Ft),cn+=ln.m,Et+=zt.m,Cn+=tn.m,Ot+=Yt.m;ln&&!ye(Yt)&&(Yt.t=ln,Yt.m+=cn-Ot),zt&&!de(tn)&&(tn.t=zt,tn.m+=Et-Cn,St=ht)}return St}(Fe,ot,Fe.parent.A||tt[0])}function Je(Fe){Fe._.x=Fe.z+Fe.parent.m,Fe.m+=Fe.parent.m}function Me(Fe){Fe.x*=Re,Fe.y=Fe.depth*We}return Ze.separation=function(Fe){return arguments.length?(ke=Fe,Ze):ke},Ze.size=function(Fe){return arguments.length?(Ue=!1,Re=+Fe[0],We=+Fe[1],Ze):Ue?null:[Re,We]},Ze.nodeSize=function(Fe){return arguments.length?(Ue=!0,Re=+Fe[0],We=+Fe[1],Ze):Ue?[Re,We]:null},Ze}function Pe(ke,Re,We,Ue,Ze){for(var Ye,Je=ke.children,Me=-1,Fe=Je.length,je=ke.value&&(Ze-We)/ke.value;++MeGe&&(Ge=Me),Ft=tt*tt*St,(ht=Math.max(Ge/Ft,Ft/ot))>pt){tt-=Me;break}pt=ht}zt.push(Je={value:tt,dice:Fe1?Ue:1)},We}(Ie);function Qe(){var ke=De,Re=!1,We=1,Ue=1,Ze=[0],Ye=$,Je=$,Me=$,Fe=$,je=$;function tt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Re&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,St=Ge.y0+ht,Ft=Ge.x1-ht,zt=Ge.y1-ht;Ft=Ge-1){var Yt=Me[ot];return Yt.x0=pt,Yt.y0=St,Yt.x1=Ft,void(Yt.y1=zt)}for(var ln=je[ot],tn=ht/2+ln,Et=ot+1,Ot=Ge-1;Et>>1;je[cn]zt-St){var Sn=(pt*Pn+Ft*Cn)/ht;tt(ot,Et,Cn,pt,St,Sn,zt),tt(Et,Ge,Pn,Sn,St,Ft,zt)}else{var vt=(St*Pn+zt*Cn)/ht;tt(ot,Et,Cn,pt,St,Ft,vt),tt(Et,Ge,Pn,pt,vt,Ft,zt)}})(0,Fe,ke.value,Re,We,Ue,Ze)}function $e(ke,Re,We,Ue,Ze){(1&ke.depth?Pe:re)(ke,Re,We,Ue,Ze)}var Oe=function ke(Re){function We(Ue,Ze,Ye,Je,Me){if((Fe=Ue._squarify)&&Fe.ratio===Re)for(var Fe,je,tt,ot,Ge,ht=-1,pt=Fe.length,St=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,s,n){n.d(s,{ak:function(){return C}});var u=Math.PI,b=2*u,i=1e-6,S=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,P,A){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+P)+","+(this._y1=+A)},arcTo:function(x,R,M,T,P){x=+x,R=+R,M=+M,T=+T,P=+P;var A=this._x1,L=this._y1,D=M-x,k=T-R,I=A-x,z=L-R,$=I*I+z*z;if(P<0)throw new Error("negative radius: "+P);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&P){var Q=M-A,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),Z=Math.sqrt($),K=P*Math.tan((u-Math.acos((U+$-X)/(2*te*Z)))/2),re=K/Z,q=K/te;Math.abs(re-1)>i&&(this._+="L"+(x+re*I)+","+(R+re*z)),this._+="A"+P+","+P+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,P,A){x=+x,R=+R,A=!!A;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^A,$=A?T-P:P-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>S?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=u)+","+z+","+(this._x1=x+M*Math.cos(P))+","+(this._y1=R+M*Math.sin(P))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var m=y,a=Array.prototype.slice;function c(x){return function(){return x}}function h(x){return x[0]}function p(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function O(x,R,M,T,P){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,P,T,P)}function C(){return function(x){var R=v,M=_,T=h,P=p,A=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(A||(A=D=m()),x(A,+T.apply(this,(k[0]=I,k)),+P.apply(this,k),+T.apply(this,(k[0]=z,k)),+P.apply(this,k)),D)return A=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:c(+D),L):T},L.y=function(D){return arguments.length?(P=typeof D=="function"?D:c(+D),L):P},L.context=function(D){return arguments.length?(A=D??null,L):A},L}(O)}},94336:function(d,s,n){n.d(s,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var u=n(8208),b=n(58931),i=n(46192),S=n(68936),w=n(32171),y=n(53528);function m(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L);return Ot.setFullYear(Et.y),Ot}return new Date(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L)}function a(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(Date.UTC(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L));return Ot.setUTCFullYear(Et.y),Ot}return new Date(Date.UTC(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L))}function c(Et,Ot,cn){return{y:Et,m:Ot,d:cn,H:0,M:0,S:0,L:0}}function h(Et){var Ot=Et.dateTime,cn=Et.date,Cn=Et.time,Pn=Et.periods,Sn=Et.days,vt=Et.shortDays,xt=Et.months,st=Et.shortMonths,bt=P(Pn),Vt=A(Pn),Dt=P(Sn),it=A(Sn),at=P(vt),Bt=A(vt),_t=P(xt),qt=A(xt),en=P(st),Jt=A(st),Zt={a:function(An){return vt[An.getDay()]},A:function(An){return Sn[An.getDay()]},b:function(An){return st[An.getMonth()]},B:function(An){return xt[An.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ye,L:ve,m:we,M:Te,p:function(An){return Pn[+(An.getHours()>=12)]},q:function(An){return 1+~~(An.getMonth()/3)},Q:ln,s:tn,S:Pe,u:Ie,U:ze,V:De,w:Qe,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":Yt},Nt={a:function(An){return vt[An.getUTCDay()]},A:function(An){return Sn[An.getUTCDay()]},b:function(An){return st[An.getUTCMonth()]},B:function(An){return xt[An.getUTCMonth()]},c:null,d:Re,e:Re,f:Je,H:We,I:Ue,j:Ze,L:Ye,m:Me,M:Fe,p:function(An){return Pn[+(An.getUTCHours()>=12)]},q:function(An){return 1+~~(An.getUTCMonth()/3)},Q:ln,s:tn,S:je,u:tt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:St,Y:Ft,Z:zt,"%":Yt},sn={a:function(An,Kn,fr){var Un=at.exec(Kn.slice(fr));return Un?(An.w=Bt[Un[0].toLowerCase()],fr+Un[0].length):-1},A:function(An,Kn,fr){var Un=Dt.exec(Kn.slice(fr));return Un?(An.w=it[Un[0].toLowerCase()],fr+Un[0].length):-1},b:function(An,Kn,fr){var Un=en.exec(Kn.slice(fr));return Un?(An.m=Jt[Un[0].toLowerCase()],fr+Un[0].length):-1},B:function(An,Kn,fr){var Un=_t.exec(Kn.slice(fr));return Un?(An.m=qt[Un[0].toLowerCase()],fr+Un[0].length):-1},c:function(An,Kn,fr){return wn(An,Ot,Kn,fr)},d:te,e:te,f:ee,H:K,I:K,j:Z,L:Y,m:X,M:re,p:function(An,Kn,fr){var Un=bt.exec(Kn.slice(fr));return Un?(An.p=Vt[Un[0].toLowerCase()],fr+Un[0].length):-1},q:U,Q:pe,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(An,Kn,fr){return wn(An,cn,Kn,fr)},X:function(An,Kn,fr){return wn(An,Cn,Kn,fr)},y:Q,Y:$,Z:j,"%":me};function rn(An,Kn){return function(fr){var Un,Zn,tr,Br=[],$r=-1,vr=0,qn=An.length;for(fr instanceof Date||(fr=new Date(+fr));++$r53)return null;"w"in tr||(tr.w=1),"Z"in tr?(Zn=(Un=a(c(tr.y,0,1))).getUTCDay(),Un=Zn>4||Zn===0?u.ot.ceil(Un):(0,u.ot)(Un),Un=b.c.offset(Un,7*(tr.V-1)),tr.y=Un.getUTCFullYear(),tr.m=Un.getUTCMonth(),tr.d=Un.getUTCDate()+(tr.w+6)%7):(Zn=(Un=m(c(tr.y,0,1))).getDay(),Un=Zn>4||Zn===0?i.qT.ceil(Un):(0,i.qT)(Un),Un=S.c.offset(Un,7*(tr.V-1)),tr.y=Un.getFullYear(),tr.m=Un.getMonth(),tr.d=Un.getDate()+(tr.w+6)%7)}else("W"in tr||"U"in tr)&&("w"in tr||(tr.w="u"in tr?tr.u%7:"W"in tr?1:0),Zn="Z"in tr?a(c(tr.y,0,1)).getUTCDay():m(c(tr.y,0,1)).getDay(),tr.m=0,tr.d="W"in tr?(tr.w+6)%7+7*tr.W-(Zn+5)%7:tr.w+7*tr.U-(Zn+6)%7);return"Z"in tr?(tr.H+=tr.Z/100|0,tr.M+=tr.Z%100,a(tr)):m(tr)}}function wn(An,Kn,fr,Un){for(var Zn,tr,Br=0,$r=Kn.length,vr=fr.length;Br<$r;){if(Un>=vr)return-1;if((Zn=Kn.charCodeAt(Br++))===37){if(Zn=Kn.charAt(Br++),!(tr=sn[Zn in O?Kn.charAt(Br++):Zn])||(Un=tr(An,fr,Un))<0)return-1}else if(Zn!=fr.charCodeAt(Un++))return-1}return Un}return Zt.x=rn(cn,Zt),Zt.X=rn(Cn,Zt),Zt.c=rn(Ot,Zt),Nt.x=rn(cn,Nt),Nt.X=rn(Cn,Nt),Nt.c=rn(Ot,Nt),{format:function(An){var Kn=rn(An+="",Zt);return Kn.toString=function(){return An},Kn},parse:function(An){var Kn=_n(An+="",!1);return Kn.toString=function(){return An},Kn},utcFormat:function(An){var Kn=rn(An+="",Nt);return Kn.toString=function(){return An},Kn},utcParse:function(An){var Kn=_n(An+="",!0);return Kn.toString=function(){return An},Kn}}}var p,v,_,O={"-":"",_:" ",0:"0"},C=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Et,Ot,cn){var Cn=Et<0?"-":"",Pn=(Cn?-Et:Et)+"",Sn=Pn.length;return Cn+(Sn68?1900:2e3),cn+Cn[0].length):-1}function j(Et,Ot,cn){var Cn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ot.slice(cn,cn+6));return Cn?(Et.Z=Cn[1]?0:-(Cn[2]+(Cn[3]||"00")),cn+Cn[0].length):-1}function U(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+1));return Cn?(Et.q=3*Cn[0]-3,cn+Cn[0].length):-1}function X(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.m=Cn[0]-1,cn+Cn[0].length):-1}function te(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.d=+Cn[0],cn+Cn[0].length):-1}function Z(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.m=0,Et.d=+Cn[0],cn+Cn[0].length):-1}function K(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.H=+Cn[0],cn+Cn[0].length):-1}function re(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.M=+Cn[0],cn+Cn[0].length):-1}function q(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.S=+Cn[0],cn+Cn[0].length):-1}function Y(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.L=+Cn[0],cn+Cn[0].length):-1}function ee(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+6));return Cn?(Et.L=Math.floor(Cn[0]/1e3),cn+Cn[0].length):-1}function me(Et,Ot,cn){var Cn=x.exec(Ot.slice(cn,cn+1));return Cn?cn+Cn[0].length:-1}function pe(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.Q=+Cn[0],cn+Cn[0].length):-1}function se(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.s=+Cn[0],cn+Cn[0].length):-1}function ae(Et,Ot){return M(Et.getDate(),Ot,2)}function ce(Et,Ot){return M(Et.getHours(),Ot,2)}function de(Et,Ot){return M(Et.getHours()%12||12,Ot,2)}function ye(Et,Ot){return M(1+S.c.count((0,w.c)(Et),Et),Ot,3)}function ve(Et,Ot){return M(Et.getMilliseconds(),Ot,3)}function _e(Et,Ot){return ve(Et,Ot)+"000"}function we(Et,Ot){return M(Et.getMonth()+1,Ot,2)}function Te(Et,Ot){return M(Et.getMinutes(),Ot,2)}function Pe(Et,Ot){return M(Et.getSeconds(),Ot,2)}function Ie(Et){var Ot=Et.getDay();return Ot===0?7:Ot}function ze(Et,Ot){return M(i.uU.count((0,w.c)(Et)-1,Et),Ot,2)}function De(Et,Ot){var cn=Et.getDay();return Et=cn>=4||cn===0?(0,i.kD)(Et):i.kD.ceil(Et),M(i.kD.count((0,w.c)(Et),Et)+((0,w.c)(Et).getDay()===4),Ot,2)}function Qe(Et){return Et.getDay()}function Ve(Et,Ot){return M(i.qT.count((0,w.c)(Et)-1,Et),Ot,2)}function $e(Et,Ot){return M(Et.getFullYear()%100,Ot,2)}function Oe(Et,Ot){return M(Et.getFullYear()%1e4,Ot,4)}function ke(Et){var Ot=Et.getTimezoneOffset();return(Ot>0?"-":(Ot*=-1,"+"))+M(Ot/60|0,"0",2)+M(Ot%60,"0",2)}function Re(Et,Ot){return M(Et.getUTCDate(),Ot,2)}function We(Et,Ot){return M(Et.getUTCHours(),Ot,2)}function Ue(Et,Ot){return M(Et.getUTCHours()%12||12,Ot,2)}function Ze(Et,Ot){return M(1+b.c.count((0,y.c)(Et),Et),Ot,3)}function Ye(Et,Ot){return M(Et.getUTCMilliseconds(),Ot,3)}function Je(Et,Ot){return Ye(Et,Ot)+"000"}function Me(Et,Ot){return M(Et.getUTCMonth()+1,Ot,2)}function Fe(Et,Ot){return M(Et.getUTCMinutes(),Ot,2)}function je(Et,Ot){return M(Et.getUTCSeconds(),Ot,2)}function tt(Et){var Ot=Et.getUTCDay();return Ot===0?7:Ot}function ot(Et,Ot){return M(u.EV.count((0,y.c)(Et)-1,Et),Ot,2)}function Ge(Et,Ot){var cn=Et.getUTCDay();return Et=cn>=4||cn===0?(0,u.yA)(Et):u.yA.ceil(Et),M(u.yA.count((0,y.c)(Et),Et)+((0,y.c)(Et).getUTCDay()===4),Ot,2)}function ht(Et){return Et.getUTCDay()}function pt(Et,Ot){return M(u.ot.count((0,y.c)(Et)-1,Et),Ot,2)}function St(Et,Ot){return M(Et.getUTCFullYear()%100,Ot,2)}function Ft(Et,Ot){return M(Et.getUTCFullYear()%1e4,Ot,4)}function zt(){return"+0000"}function Yt(){return"%"}function ln(Et){return+Et}function tn(Et){return Math.floor(+Et/1e3)}p=h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),v=p.format,p.parse,_=p.utcFormat,p.utcParse},68936:function(d,s,n){n.d(s,{m:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});s.c=i;var S=i.range},69792:function(d,s,n){n.d(s,{KK:function(){return w},SK:function(){return S},cg:function(){return i},iy:function(){return b},yc:function(){return u}});var u=1e3,b=6e4,i=36e5,S=864e5,w=6048e5},73220:function(d,s,n){n.r(s),n.d(s,{timeDay:function(){return C.c},timeDays:function(){return C.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return O},timeInterval:function(){return u.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return S},timeMinute:function(){return h},timeMinutes:function(){return p},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return P.c},timeYears:function(){return P.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return S},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var u=n(81628),b=(0,u.c)(function(){},function(Z,K){Z.setTime(+Z+K)},function(Z,K){return K-Z});b.every=function(Z){return Z=Math.floor(Z),isFinite(Z)&&Z>0?Z>1?(0,u.c)(function(K){K.setTime(Math.floor(K/Z)*Z)},function(K,re){K.setTime(+K+re*Z)},function(K,re){return(re-K)/Z}):b:null};var i=b,S=b.range,w=n(69792),y=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds())},function(Z,K){Z.setTime(+Z+K*w.yc)},function(Z,K){return(K-Z)/w.yc},function(Z){return Z.getUTCSeconds()}),m=y,a=y.range,c=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getMinutes()}),h=c,p=c.range,v=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc-Z.getMinutes()*w.iy)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getHours()}),_=v,O=v.range,C=n(68936),x=n(46192),R=(0,u.c)(function(Z){Z.setDate(1),Z.setHours(0,0,0,0)},function(Z,K){Z.setMonth(Z.getMonth()+K)},function(Z,K){return K.getMonth()-Z.getMonth()+12*(K.getFullYear()-Z.getFullYear())},function(Z){return Z.getMonth()}),M=R,T=R.range,P=n(32171),A=(0,u.c)(function(Z){Z.setUTCSeconds(0,0)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getUTCMinutes()}),L=A,D=A.range,k=(0,u.c)(function(Z){Z.setUTCMinutes(0,0,0)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,u.c)(function(Z){Z.setUTCDate(1),Z.setUTCHours(0,0,0,0)},function(Z,K){Z.setUTCMonth(Z.getUTCMonth()+K)},function(Z,K){return K.getUTCMonth()-Z.getUTCMonth()+12*(K.getUTCFullYear()-Z.getUTCFullYear())},function(Z){return Z.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,s,n){n.d(s,{c:function(){return i}});var u=new Date,b=new Date;function i(S,w,y,m){function a(c){return S(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=function(c){return S(c=new Date(+c)),c},a.ceil=function(c){return S(c=new Date(c-1)),w(c,1),S(c),c},a.round=function(c){var h=a(c),p=a.ceil(c);return c-h0))return _;do _.push(v=new Date(+c)),w(c,p),S(c);while(v=h)for(;S(h),!c(h);)h.setTime(h-1)},function(h,p){if(h>=h)if(p<0)for(;++p<=0;)for(;w(h,-1),!c(h););else for(;--p>=0;)for(;w(h,1),!c(h););})},y&&(a.count=function(c,h){return u.setTime(+c),b.setTime(+h),S(u),S(b),Math.floor(y(u,b))},a.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?a.filter(m?function(h){return m(h)%c==0}:function(h){return a.count(0,h)%c==0}):a:null}),a}},58931:function(d,s,n){n.d(s,{o:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});s.c=i;var S=i.range},8208:function(d,s,n){n.d(s,{Ad:function(){return h},EV:function(){return S},K8:function(){return R},W_:function(){return O},Wq:function(){return p},_6:function(){return m},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return C},od:function(){return c},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,P){T.setUTCDate(T.getUTCDate()+7*P)},function(T,P){return(P-T)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},53528:function(d,s,n){n.d(s,{i:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,w){S.setUTCFullYear(S.getUTCFullYear()+w)},function(S,w){return w.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/S)*S),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*S)}):null},s.c=b;var i=b.range},46192:function(d,s,n){n.d(s,{Ab:function(){return p},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return C},eg:function(){return m},iB:function(){return c},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return O},uU:function(){return S}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,P){T.setDate(T.getDate()+7*P)},function(T,P){return(P-T-(P.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},32171:function(d,s,n){n.d(s,{Q:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,w){S.setFullYear(S.getFullYear()+w)},function(S,w){return w.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/S)*S),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*S)}):null},s.c=b;var i=b.range},64348:function(d,s,n){var u=n(39640)(),b=n(53664),i=u&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var S=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(m,a,c){if(!m||typeof m!="object"&&typeof m!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],O=!!y&&y(m,a);if(i)i(m,a,{configurable:v===null&&O?O.configurable:!v,enumerable:h===null&&O?O.enumerable:!h,value:c,writable:p===null&&O?O.writable:!p});else{if(!_&&(h||p||v))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");m[a]=c}}},81288:function(d,s,n){var u=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,S=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),m=w&&y,a=function(h,p,v,_){if(p in h){if(_===!0){if(h[p]===v)return}else if(typeof(O=_)!="function"||i.call(O)!=="[object Function]"||!_())return}var O;m?w(h,p,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[p]=v},c=function(h,p){var v=arguments.length>2?arguments[2]:{},_=u(p);b&&(_=S.call(_,Object.getOwnPropertySymbols(p)));for(var O=0;O<_.length;O+=1)a(h,_[O],p[_[O]],v[_[O]])};c.supportsDescriptors=!!m,d.exports=c},31264:function(d){d.exports=function(){for(var s=0;sm*a){var _=(v-p)/m;y[h]=1e3*_}}return y}function b(i){for(var S=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),m=i[0];m0)return function(b,i){var S,w;for(S=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),Z>X&&(X=Z);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=A(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=A(U,I[U],I[U+1],X);return X&&C(X,X.next)&&(L(X),X=X.next),X}function u(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!C(Q,Q.next)&&O(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(re,q,Y,ee){var me=re;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==re);me.prevZ.nextZ=null,me.prevZ=null,function(pe){var se,ae,ce,de,ye,ve,_e,we,Te=1;do{for(ae=pe,pe=null,ye=null,ve=0;ae;){for(ve++,ce=ae,_e=0,se=0;se0||we>0&&ce;)_e!==0&&(we===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,we--),ye?ye.nextZ=de:pe=de,de.prevZ=ye,ye=de;ae=ce}ye.nextZ=null,Te*=2}while(ve>1)}(me)}(I,Q,j,U);for(var te,Z,K=I;I.prev!==I.next;)if(te=I.prev,Z=I.next,U?S(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(Z.i/$),L(I),I=Z.next,K=Z.next;else if((I=Z)===K){X?X===1?b(I=w(u(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(u(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(O(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&O(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function S(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(O(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,re=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,Z,z,$,Q),Y=h(K,re,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!C(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return u(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var Z=P(X,te);return X=u(X,X.next),Z=u(Z,Z.next),b(X,z,$,Q,j,U),void b(Z,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function m(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,Z=Q.y,K=-1/0;do{if(Z<=X.y&&Z>=X.next.y&&X.next.y!==X.y){var re=X.x+(Z-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(re<=te&&re>K){if(K=re,re===te){if(Z===X.y)return X;if(Z===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(ZU.x||X.x===U.x&&c(U,X)))&&(U=X,pe=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=P(z,I);u(z,z.next),u($,$.next)}}function c(I,z){return O(I.prev,I,z.prev)<0&&O(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function p(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(O(I.prev,I,z.prev)||O(I,z.prev,z))||C(I,z)&&O(I.prev,I,I.next)>0&&O(z.prev,z,z.next)>0)}function O(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function C(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(O(I,z,$)),U=M(O(I,z,Q)),X=M(O($,Q,I)),te=M(O($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return O(I.prev,I,I.next)<0?O(I,z,I.next)>=0&&O(I,I.prev,z)>=0:O(I,z,I.prev)<0||O(I,I.next,z)<0}function P(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function A(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=s,d.exports.default=s,s.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,Z=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,s,n){var u=n(78484);d.exports=function(b,i){var S,w=[],y=[],m=[],a={},c=[];function h(T){m[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(P){delete a[T][P],m[P]&&h(P)})}function p(T){var P,A,L=!1;for(y.push(T),m[T]=!0,P=0;P=$})})(T);for(var P,A=u(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++C]),D=k?h.call(k,I,D,x):D,O?(p.value=D,v(R,x,p)):R[x]=D,++x;M=x}}if(M===void 0)for(M=S(_.length),O&&(R=new O(M)),C=0;C0?1:-1}},96936:function(d,s,n){var u=n(85608),b=Math.abs,i=Math.floor;d.exports=function(S){return isNaN(S)?0:(S=Number(S))!==0&&isFinite(S)?u(S)*i(b(S)):S}},81304:function(d,s,n){var u=n(96936),b=Math.max;d.exports=function(i){return b(0,u(i))}},14428:function(d,s,n){var u=n(34044),b=n(9252),i=Function.prototype.bind,S=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(m,a){return function(c,h){var p,v=arguments[2],_=arguments[3];return c=Object(b(c)),u(h),p=w(c),_&&p.sort(typeof _=="function"?i.call(_,c):void 0),typeof m!="function"&&(m=p[m]),S.call(m,p,function(O,C){return y.call(c,O)?S.call(h,v,c[O],O,c,C):a})}}},38452:function(d,s,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var s,n=Object.assign;return typeof n=="function"&&(n(s={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),s.foo+s.bar+s.trzy==="razdwatrzy")}},81892:function(d,s,n){var u=n(54768),b=n(9252),i=Math.max;d.exports=function(S,w){var y,m,a,c=i(arguments.length,2);for(S=Object(b(S)),a=function(h){try{S[h]=w[h]}catch(p){y||(y=p)}},m=1;m-1}},29768:function(d){var s=Object.prototype.toString,n=s.call("");d.exports=function(u){return typeof u=="string"||u&&typeof u=="object"&&(u instanceof String||s.call(u)===n)||!1}},82252:function(d){var s=Object.create(null),n=Math.random;d.exports=function(){var u;do u=n().toString(36).slice(2);while(s[u]);return u}},52104:function(d,s,n){var u,b=n(69932),i=n(71056),S=n(21092),w=n(92664),y=n(85512),m=Object.defineProperty;u=d.exports=function(a,c){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");y.call(this,a),c=c?i.call(c,"key+value")?"key+value":i.call(c,"key")?"key":"value":"value",m(this,"__kind__",S("",c))},b&&b(u,y),delete u.prototype.constructor,u.prototype=Object.create(y.prototype,{_resolve:S(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),m(u.prototype,w.toStringTag,S("c","Array Iterator"))},76024:function(d,s,n){var u=n(60948),b=n(34044),i=n(29768),S=n(76252),w=Array.isArray,y=Function.prototype.call,m=Array.prototype.some;d.exports=function(a,c){var h,p,v,_,O,C,x,R,M=arguments[2];if(w(a)||u(a)?h="array":i(a)?h="string":a=S(a),b(c),v=function(){_=!0},h!=="array")if(h!=="string")for(p=a.next();!p.done;){if(y.call(c,M,p.value,v),_)return;p=a.next()}else for(C=a.length,O=0;O=55296&&R<=56319&&(x+=a[++O]),y.call(c,M,x,v),!_);++O);else m.call(a,function(T){return y.call(c,M,T,v),_})}},76252:function(d,s,n){var u=n(60948),b=n(29768),i=n(52104),S=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(m){return typeof w(m)[y]=="function"?m[y]():u(m)?new i(m):b(m)?new S(m):new i(m)}},85512:function(d,s,n){var u,b=n(41476),i=n(38452),S=n(34044),w=n(9252),y=n(21092),m=n(27940),a=n(92664),c=Object.defineProperty,h=Object.defineProperties;d.exports=u=function(p,v){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(p)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(S(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete u.prototype.constructor,h(u.prototype,i({_next:y(function(){var p;if(this.__list__)return this.__redo__&&(p=this.__redo__.shift())!==void 0?p:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=p&&(this.__redo__[_]=++v)},this),this.__redo__.push(p)):c(this,"__redo__",y("c",[p])))}),_onDelete:y(function(p){var v;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(p))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,O){_>p&&(this.__redo__[O]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),c(u.prototype,a.iterator,y(function(){return this}))},76368:function(d,s,n){var u=n(60948),b=n(42584),i=n(29768),S=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!u(y)&&typeof y[S]!="function")}},80940:function(d,s,n){var u,b=n(69932),i=n(21092),S=n(92664),w=n(85512),y=Object.defineProperty;u=d.exports=function(m){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");m=String(m),w.call(this,m),y(this,"__length__",i("",m.length))},b&&b(u,w),delete u.prototype.constructor,u.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?c+this.__list__[this.__nextIndex__++]:c})}),y(u.prototype,S.toStringTag,i("c","String Iterator"))},52891:function(d,s,n){var u=n(76368);d.exports=function(b){if(!u(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function s(n,u){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&P.length>M&&!P.warned){P.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=O,L.type=C,L.count=P.length,A=L,console&&console.warn&&console.warn(A)}return O}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(O,C,x){var R={fired:!1,wrapFn:void 0,target:O,type:C,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(O,C,x){var R=O._events;if(R===void 0)return[];var M=R[C];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var P=new Array(T.length),A=0;A0&&(T=C[0]),T instanceof Error)throw T;var P=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw P.context=T,P}var A=M[O];if(A===void 0)return!1;if(typeof A=="function")u(A,this,C);else{var L=A.length,D=v(A,L);for(x=0;x=0;T--)if(x[T]===C||x[T].listener===C){P=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(A,L){for(;L+1=0;R--)this.removeListener(O,C[R]);return this},i.prototype.listeners=function(O){return h(this,O,!0)},i.prototype.rawListeners=function(O){return h(this,O,!1)},i.listenerCount=function(O,C){return typeof O.listenerCount=="function"?O.listenerCount(C):p.call(O,C)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},39072:function(d){var s=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return s()}try{return __global__||s()}finally{delete Object.prototype.__global__}}()},12296:function(d,s,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,s,n){var u=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var S=b;if((b=+b)==0&&u(S))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,s,n){var u=n(72512);d.exports=function(b,i,S){if(!b)throw new TypeError("must specify data as first parameter");if(S=0|+(S||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,m,a,c=b[0].length,h=b.length*c;i&&typeof i!="string"||(i=new(u(i||"float32"))(h+S));var p=i.length-S;if(h!==p)throw new Error("source length "+h+" ("+c+"x"+b.length+") does not match destination length "+p);for(w=0,m=S;wS[0]-m[0]/2&&(_=m[0]/2,O+=m[1]);return w}},71920:function(d){function s(i,S){S||(S={}),(typeof i=="string"||Array.isArray(i))&&(S.family=i);var w=Array.isArray(S.family)?S.family.join(", "):S.family;if(!w)throw Error("`family` must be defined");var y=S.size||S.fontSize||S.em||48,m=S.weight||S.fontWeight||"",a=(i=[S.style||S.fontStyle||"",m,y].join(" ")+"px "+w,S.origin||"top");if(s.cache[w]&&y<=s.cache[w].em)return n(s.cache[w],a);var c=S.canvas||s.canvas,h=c.getContext("2d"),p={upper:S.upper!==void 0?S.upper:"H",lower:S.lower!==void 0?S.lower:"x",descent:S.descent!==void 0?S.descent:"p",ascent:S.ascent!==void 0?S.ascent:"h",tittle:S.tittle!==void 0?S.tittle:"i",overshoot:S.overshoot!==void 0?S.overshoot:"O"},v=Math.ceil(1.5*y);c.height=v,c.width=.5*v,h.font=i;var _="H",O={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var C=u(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=u(h.getImageData(0,0,v,v));O.lineHeight=O.bottom=v-x+C,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-u(h.getImageData(0,0,v,v))-1+C;O.baseline=O.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=u(h.getImageData(0,0,v,v));O.median=O.middle=v-M-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=u(h.getImageData(0,0,v,v));O.hanging=v-T-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var P=u(h.getImageData(0,0,v,v));if(O.ideographic=v-P-1+C,p.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.upper,0,0),O.upper=u(h.getImageData(0,0,v,v)),O.capHeight=O.baseline-O.upper),p.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.lower,0,0),O.lower=u(h.getImageData(0,0,v,v)),O.xHeight=O.baseline-O.lower),p.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.tittle,0,0),O.tittle=u(h.getImageData(0,0,v,v))),p.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.ascent,0,0),O.ascent=u(h.getImageData(0,0,v,v))),p.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.descent,0,0),O.descent=b(h.getImageData(0,0,v,v))),p.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.overshoot,0,0);var A=b(h.getImageData(0,0,v,v));O.overshoot=A-R}for(var L in O)O[L]/=y;return O.em=y,s.cache[w]=O,n(O,a)}function n(i,S){var w={};for(var y in typeof S=="string"&&(S=i[S]),i)y!=="em"&&(w[y]=i[y]-S);return w}function u(i){for(var S=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/S)}d.exports=s,s.canvas=document.createElement("canvas"),s.cache={}},46492:function(d,s,n){var u=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(S,w,y){if(!u(w))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=y),b.call(S)==="[object Array]"?function(a,c,h){for(var p=0,v=a.length;p"u"&&!n.canvas)return null;var u=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(u.width=n.width),typeof n.height=="number"&&(u.height=n.height);var b,i=n;try{var S=[s];s.indexOf("webgl")===0&&S.push("experimental-"+s);for(var w=0;w"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":c&&p?p([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&p?p(p([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map<"u"&&c&&p?p(new Map()[Symbol.iterator]()):u,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set<"u"&&c&&p?p(new Set()[Symbol.iterator]()):u,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&p?p(""[Symbol.iterator]()):u,"%Symbol%":c?Symbol:u,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet};if(p)try{null.error}catch(Q){var C=p(p(Q));O["%Error.prototype%"]=C}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&p&&(U=p(te.prototype))}return O[j]=U,U},R={"%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"]},M=n(8844),T=n(92064),P=M.call(Function.call,Array.prototype.concat),A=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(O,X)){var te=O[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new S("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new S('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ye=D(ce,-1);if(de==="%"&&ye!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ve=[];return L(ce,I,function(_e,we,Te,Pe){ve[ve.length]=Te?L(Pe,z,"$1"):we||_e}),ve}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),Z=te.name,K=te.value,re=!1,q=te.alias;q&&(X=q[0],A(U,P([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!re&&(O[Z]=K)}}return K}},12408:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15];return s[0]=y*(p*x-v*C)-h*(m*x-a*C)+O*(m*v-a*p),s[1]=-(b*(p*x-v*C)-h*(i*x-S*C)+O*(i*v-S*p)),s[2]=b*(m*x-a*C)-y*(i*x-S*C)+O*(i*a-S*m),s[3]=-(b*(m*v-a*p)-y*(i*v-S*p)+h*(i*a-S*m)),s[4]=-(w*(p*x-v*C)-c*(m*x-a*C)+_*(m*v-a*p)),s[5]=u*(p*x-v*C)-c*(i*x-S*C)+_*(i*v-S*p),s[6]=-(u*(m*x-a*C)-w*(i*x-S*C)+_*(i*a-S*m)),s[7]=u*(m*v-a*p)-w*(i*v-S*p)+c*(i*a-S*m),s[8]=w*(h*x-v*O)-c*(y*x-a*O)+_*(y*v-a*h),s[9]=-(u*(h*x-v*O)-c*(b*x-S*O)+_*(b*v-S*h)),s[10]=u*(y*x-a*O)-w*(b*x-S*O)+_*(b*a-S*y),s[11]=-(u*(y*v-a*h)-w*(b*v-S*h)+c*(b*a-S*y)),s[12]=-(w*(h*C-p*O)-c*(y*C-m*O)+_*(y*p-m*h)),s[13]=u*(h*C-p*O)-c*(b*C-i*O)+_*(b*p-i*h),s[14]=-(u*(y*C-m*O)-w*(b*C-i*O)+_*(b*m-i*y)),s[15]=u*(y*p-m*h)-w*(b*p-i*h)+c*(b*m-i*y),s}},76860:function(d){d.exports=function(s){var n=new Float32Array(16);return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],n}},64492:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},54212:function(d){d.exports=function(){var s=new Float32Array(16);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},70800:function(d){d.exports=function(s){var n=s[0],u=s[1],b=s[2],i=s[3],S=s[4],w=s[5],y=s[6],m=s[7],a=s[8],c=s[9],h=s[10],p=s[11],v=s[12],_=s[13],O=s[14],C=s[15];return(n*w-u*S)*(h*C-p*O)-(n*y-b*S)*(c*C-p*_)+(n*m-i*S)*(c*O-h*_)+(u*y-b*w)*(a*C-p*v)-(u*m-i*w)*(a*O-h*v)+(b*m-i*y)*(a*_-c*v)}},61784:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=u+u,y=b+b,m=i+i,a=u*w,c=b*w,h=b*y,p=i*w,v=i*y,_=i*m,O=S*w,C=S*y,x=S*m;return s[0]=1-h-_,s[1]=c+x,s[2]=p-C,s[3]=0,s[4]=c-x,s[5]=1-a-_,s[6]=v+O,s[7]=0,s[8]=p+C,s[9]=v-O,s[10]=1-a-h,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},91616:function(d){d.exports=function(s,n,u){var b,i,S,w=u[0],y=u[1],m=u[2],a=Math.sqrt(w*w+y*y+m*m);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,m*=a,b=Math.sin(n),S=1-(i=Math.cos(n)),s[0]=w*w*S+i,s[1]=y*w*S+m*b,s[2]=m*w*S-y*b,s[3]=0,s[4]=w*y*S-m*b,s[5]=y*y*S+i,s[6]=m*y*S+w*b,s[7]=0,s[8]=w*m*S+y*b,s[9]=y*m*S-w*b,s[10]=m*m*S+i,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s)}},51944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=b+b,m=i+i,a=S+S,c=b*y,h=b*m,p=b*a,v=i*m,_=i*a,O=S*a,C=w*y,x=w*m,R=w*a;return s[0]=1-(v+O),s[1]=h+R,s[2]=p-x,s[3]=0,s[4]=h-R,s[5]=1-(c+O),s[6]=_+C,s[7]=0,s[8]=p+x,s[9]=_-C,s[10]=1-(c+v),s[11]=0,s[12]=u[0],s[13]=u[1],s[14]=u[2],s[15]=1,s}},69444:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=n[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=n[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},48268:function(d){d.exports=function(s,n){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=n[0],s[13]=n[1],s[14]=n[2],s[15]=1,s}},21856:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=b,s[6]=u,s[7]=0,s[8]=0,s[9]=-u,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},79216:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=0,s[2]=-u,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=u,s[9]=0,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},57736:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=u,s[2]=0,s[3]=0,s[4]=-u,s[5]=b,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},38848:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(u-n),m=1/(i-b),a=1/(S-w);return s[0]=2*S*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*S*m,s[6]=0,s[7]=0,s[8]=(u+n)*y,s[9]=(i+b)*m,s[10]=(w+S)*a,s[11]=-1,s[12]=0,s[13]=0,s[14]=w*S*2*a,s[15]=0,s}},36635:function(d){d.exports=function(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},36524:function(d,s,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15],R=u*y-b*w,M=u*m-i*w,T=u*a-S*w,P=b*m-i*y,A=b*a-S*y,L=i*a-S*m,D=c*O-h*_,k=c*C-p*_,I=c*x-v*_,z=h*C-p*O,$=h*x-v*O,Q=p*x-v*C,j=R*Q-M*$+T*z+P*I-A*k+L*D;return j?(j=1/j,s[0]=(y*Q-m*$+a*z)*j,s[1]=(i*$-b*Q-S*z)*j,s[2]=(O*L-C*A+x*P)*j,s[3]=(p*A-h*L-v*P)*j,s[4]=(m*I-w*Q-a*k)*j,s[5]=(u*Q-i*I+S*k)*j,s[6]=(C*T-_*L-x*M)*j,s[7]=(c*L-p*T+v*M)*j,s[8]=(w*$-y*I+a*D)*j,s[9]=(b*I-u*$-S*D)*j,s[10]=(_*A-O*T+x*R)*j,s[11]=(h*T-c*A-v*R)*j,s[12]=(y*k-w*z-m*D)*j,s[13]=(u*z-b*k+i*D)*j,s[14]=(O*M-_*P-C*R)*j,s[15]=(c*P-h*M+p*R)*j,s):null}},56508:function(d,s,n){var u=n(36635);d.exports=function(b,i,S,w){var y,m,a,c,h,p,v,_,O,C,x=i[0],R=i[1],M=i[2],T=w[0],P=w[1],A=w[2],L=S[0],D=S[1],k=S[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?u(b):(v=x-L,_=R-D,O=M-k,y=P*(O*=C=1/Math.sqrt(v*v+_*_+O*O))-A*(_*=C),m=A*(v*=C)-T*O,a=T*_-P*v,(C=Math.sqrt(y*y+m*m+a*a))?(y*=C=1/C,m*=C,a*=C):(y=0,m=0,a=0),c=_*a-O*m,h=O*y-v*a,p=v*m-_*y,(C=Math.sqrt(c*c+h*h+p*p))?(c*=C=1/C,h*=C,p*=C):(c=0,h=0,p=0),b[0]=y,b[1]=c,b[2]=v,b[3]=0,b[4]=m,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=p,b[10]=O,b[11]=0,b[12]=-(y*x+m*R+a*M),b[13]=-(c*x+h*R+p*M),b[14]=-(v*x+_*R+O*M),b[15]=1,b)}},80944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],O=n[12],C=n[13],x=n[14],R=n[15],M=u[0],T=u[1],P=u[2],A=u[3];return s[0]=M*b+T*y+P*h+A*O,s[1]=M*i+T*m+P*p+A*C,s[2]=M*S+T*a+P*v+A*x,s[3]=M*w+T*c+P*_+A*R,M=u[4],T=u[5],P=u[6],A=u[7],s[4]=M*b+T*y+P*h+A*O,s[5]=M*i+T*m+P*p+A*C,s[6]=M*S+T*a+P*v+A*x,s[7]=M*w+T*c+P*_+A*R,M=u[8],T=u[9],P=u[10],A=u[11],s[8]=M*b+T*y+P*h+A*O,s[9]=M*i+T*m+P*p+A*C,s[10]=M*S+T*a+P*v+A*x,s[11]=M*w+T*c+P*_+A*R,M=u[12],T=u[13],P=u[14],A=u[15],s[12]=M*b+T*y+P*h+A*O,s[13]=M*i+T*m+P*p+A*C,s[14]=M*S+T*a+P*v+A*x,s[15]=M*w+T*c+P*_+A*R,s}},97688:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(n-u),m=1/(b-i),a=1/(S-w);return s[0]=-2*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*m,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*a,s[11]=0,s[12]=(n+u)*y,s[13]=(i+b)*m,s[14]=(w+S)*a,s[15]=1,s}},51296:function(d){d.exports=function(s,n,u,b,i){var S=1/Math.tan(n/2),w=1/(b-i);return s[0]=S/u,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=S,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(i+b)*w,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*i*b*w,s[15]=0,s}},63688:function(d){d.exports=function(s,n,u,b){var i=Math.tan(n.upDegrees*Math.PI/180),S=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),m=2/(w+y),a=2/(i+S);return s[0]=m,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=a,s[6]=0,s[7]=0,s[8]=-(w-y)*m*.5,s[9]=(i-S)*a*.5,s[10]=b/(u-b),s[11]=-1,s[12]=0,s[13]=0,s[14]=b*u/(u-b),s[15]=0,s}},30016:function(d){d.exports=function(s,n,u,b){var i,S,w,y,m,a,c,h,p,v,_,O,C,x,R,M,T,P,A,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(u),w=1-(S=Math.cos(u)),y=n[0],m=n[1],a=n[2],c=n[3],h=n[4],p=n[5],v=n[6],_=n[7],O=n[8],C=n[9],x=n[10],R=n[11],M=$*$*w+S,T=Q*$*w+j*i,P=j*$*w-Q*i,A=$*Q*w-j*i,L=Q*Q*w+S,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+S,s[0]=y*M+h*T+O*P,s[1]=m*M+p*T+C*P,s[2]=a*M+v*T+x*P,s[3]=c*M+_*T+R*P,s[4]=y*A+h*L+O*D,s[5]=m*A+p*L+C*D,s[6]=a*A+v*L+x*D,s[7]=c*A+_*L+R*D,s[8]=y*k+h*I+O*z,s[9]=m*k+p*I+C*z,s[10]=a*k+v*I+x*z,s[11]=c*k+_*I+R*z,n!==s&&(s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s)}},15456:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[4],w=n[5],y=n[6],m=n[7],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[4]=S*i+a*b,s[5]=w*i+c*b,s[6]=y*i+h*b,s[7]=m*i+p*b,s[8]=a*i-S*b,s[9]=c*i-w*b,s[10]=h*i-y*b,s[11]=p*i-m*b,s}},64840:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i-a*b,s[1]=w*i-c*b,s[2]=y*i-h*b,s[3]=m*i-p*b,s[8]=S*b+a*i,s[9]=w*b+c*i,s[10]=y*b+h*i,s[11]=m*b+p*i,s}},4192:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[4],c=n[5],h=n[6],p=n[7];return n!==s&&(s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i+a*b,s[1]=w*i+c*b,s[2]=y*i+h*b,s[3]=m*i+p*b,s[4]=a*i-S*b,s[5]=c*i-w*b,s[6]=h*i-y*b,s[7]=p*i-m*b,s}},68152:function(d){d.exports=function(s,n,u){var b=u[0],i=u[1],S=u[2];return s[0]=n[0]*b,s[1]=n[1]*b,s[2]=n[2]*b,s[3]=n[3]*b,s[4]=n[4]*i,s[5]=n[5]*i,s[6]=n[6]*i,s[7]=n[7]*i,s[8]=n[8]*S,s[9]=n[9]*S,s[10]=n[10]*S,s[11]=n[11]*S,s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},89412:function(d){d.exports=function(s){return"mat4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+", "+s[8]+", "+s[9]+", "+s[10]+", "+s[11]+", "+s[12]+", "+s[13]+", "+s[14]+", "+s[15]+")"}},35176:function(d){d.exports=function(s,n,u){var b,i,S,w,y,m,a,c,h,p,v,_,O=u[0],C=u[1],x=u[2];return n===s?(s[12]=n[0]*O+n[4]*C+n[8]*x+n[12],s[13]=n[1]*O+n[5]*C+n[9]*x+n[13],s[14]=n[2]*O+n[6]*C+n[10]*x+n[14],s[15]=n[3]*O+n[7]*C+n[11]*x+n[15]):(b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],s[0]=b,s[1]=i,s[2]=S,s[3]=w,s[4]=y,s[5]=m,s[6]=a,s[7]=c,s[8]=h,s[9]=p,s[10]=v,s[11]=_,s[12]=b*O+y*C+h*x+n[12],s[13]=i*O+m*C+p*x+n[13],s[14]=S*O+a*C+v*x+n[14],s[15]=w*O+c*C+_*x+n[15]),s}},86520:function(d){d.exports=function(s,n){if(s===n){var u=n[1],b=n[2],i=n[3],S=n[6],w=n[7],y=n[11];s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=u,s[6]=n[9],s[7]=n[13],s[8]=b,s[9]=S,s[11]=n[14],s[12]=i,s[13]=w,s[14]=y}else s[0]=n[0],s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=n[1],s[5]=n[5],s[6]=n[9],s[7]=n[13],s[8]=n[2],s[9]=n[6],s[10]=n[10],s[11]=n[14],s[12]=n[3],s[13]=n[7],s[14]=n[11],s[15]=n[15];return s}},23352:function(d,s,n){var u=n(42771),b=n(55616),i=n(28624),S=n(55212),w=n(60463),y=n(72160),m=n(33888),a=n(14144),c=n(51160),h=n(58908),p=n(65819),v=n(23464),_=n(63768),O=n(50896),C=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var P=document.body.appendChild(document.createElement("div"));P.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(P).fontStretch&&(T=!0),document.body.removeChild(P)}var A=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=S(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};A.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` +`):Y=" ".concat(j," ").concat(Y)),$=S(this,c(D).call(this,"".concat(q).concat(Y)))}return Error.stackTraceLimit=Z,$.generatedMessage=!Q,Object.defineProperty(w($),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),$.code="ERR_ASSERTION",$.actual=X,$.expected=te,$.operator=j,Error.captureStackTrace&&Error.captureStackTrace(w($),U),$.stack,$.name="AssertionError",S($)}var k,I;return function(z,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create($&&$.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),$&&a(z,$)}(D,L),k=D,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(z,$){return p(this,function(Q){for(var j=1;j2?"one of ".concat(h," ").concat(c.slice(0,p-1).join(", "),", or ")+c[p-1]:p===2?"one of ".concat(h," ").concat(c[0]," or ").concat(c[1]):"of ".concat(h," ").concat(c[0])}return"of ".concat(h," ").concat(String(c))}m("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),m("ERR_INVALID_ARG_TYPE",function(c,h,p){var v,_,O,C,x;if(S===void 0&&(S=n(45408)),S(typeof c=="string","'name' must be a string"),typeof h=="string"&&(_="not ",h.substr(0,4)===_)?(v="must not be",h=h.replace(/^not /,"")):v="must be",function(M,T,P){return(P===void 0||P>M.length)&&(P=M.length),M.substring(P-9,P)===T}(c," argument"))O="The ".concat(c," ").concat(v," ").concat(a(h,"type"));else{var R=(typeof x!="number"&&(x=0),x+1>(C=c).length||C.indexOf(".",x)===-1?"argument":"property");O='The "'.concat(c,'" ').concat(R," ").concat(v," ").concat(a(h,"type"))}return O+". Received type ".concat(u(p))},TypeError),m("ERR_INVALID_ARG_VALUE",function(c,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=n(35840));var v=w.inspect(h);return v.length>128&&(v="".concat(v.slice(0,128),"...")),"The argument '".concat(c,"' ").concat(p,". Received ").concat(v)},TypeError),m("ERR_INVALID_RETURN_VALUE",function(c,h,p){var v;return v=p&&p.constructor&&p.constructor.name?"instance of ".concat(p.constructor.name):"type ".concat(u(p)),"Expected ".concat(c,' to be returned from the "').concat(h,'"')+" function but got ".concat(v,".")},TypeError),m("ERR_MISSING_ARGS",function(){for(var c=arguments.length,h=new Array(c),p=0;p0,"At least one arg needs to be specified");var v="The ",_=h.length;switch(h=h.map(function(O){return'"'.concat(O,'"')}),_){case 1:v+="".concat(h[0]," argument");break;case 2:v+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:v+=h.slice(0,_-1).join(", "),v+=", and ".concat(h[_-1]," arguments")}return"".concat(v," must be specified")},TypeError),d.exports.codes=y},25116:function(d,s,n){function u(de,ye){return function(ve){if(Array.isArray(ve))return ve}(de)||function(ve,_e){var we=[],Te=!0,Pe=!1,Ie=void 0;try{for(var ze,De=ve[Symbol.iterator]();!(Te=(ze=De.next()).done)&&(we.push(ze.value),!_e||we.length!==_e);Te=!0);}catch(Qe){Pe=!0,Ie=Qe}finally{try{Te||De.return==null||De.return()}finally{if(Pe)throw Ie}}return we}(de,ye)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(de){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},b(de)}var i=/a/g.flags!==void 0,S=function(de){var ye=[];return de.forEach(function(ve){return ye.push(ve)}),ye},w=function(de){var ye=[];return de.forEach(function(ve,_e){return ye.push([_e,ve])}),ye},y=Object.is?Object.is:n(39896),m=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},a=Number.isNaN?Number.isNaN:n(1560);function c(de){return de.call.bind(de)}var h=c(Object.prototype.hasOwnProperty),p=c(Object.prototype.propertyIsEnumerable),v=c(Object.prototype.toString),_=n(35840).types,O=_.isAnyArrayBuffer,C=_.isArrayBufferView,x=_.isDate,R=_.isMap,M=_.isRegExp,T=_.isSet,P=_.isNativeError,A=_.isBoxedPrimitive,L=_.isNumberObject,D=_.isStringObject,k=_.isBooleanObject,I=_.isBigIntObject,z=_.isSymbolObject,$=_.isFloat32Array,Q=_.isFloat64Array;function j(de){if(de.length===0||de.length>10)return!0;for(var ye=0;ye57)return!0}return de.length===10&&de>=Math.pow(2,32)}function U(de){return Object.keys(de).filter(j).concat(m(de).filter(Object.prototype.propertyIsEnumerable.bind(de)))}function X(de,ye){if(de===ye)return 0;for(var ve=de.length,_e=ye.length,we=0,Te=Math.min(ve,_e);we"u"?[]:new Uint8Array(256),i=0;i<64;i++)b[u.charCodeAt(i)]=i;var S=function(y){var m,a=new Uint8Array(y),c=a.length,h="";for(m=0;m>2],h+=u[(3&a[m])<<4|a[m+1]>>4],h+=u[(15&a[m+1])<<2|a[m+2]>>6],h+=u[63&a[m+2]];return c%3==2?h=h.substring(0,h.length-1)+"=":c%3==1&&(h=h.substring(0,h.length-2)+"=="),h},w=function(y){var m,a,c,h,p,v=.75*y.length,_=y.length,O=0;y[y.length-1]==="="&&(v--,y[y.length-2]==="="&&v--);var C=new ArrayBuffer(v),x=new Uint8Array(C);for(m=0;m<_;m+=4)a=b[y.charCodeAt(m)],c=b[y.charCodeAt(m+1)],h=b[y.charCodeAt(m+2)],p=b[y.charCodeAt(m+3)],x[O++]=a<<2|c>>4,x[O++]=(15&c)<<4|h>>2,x[O++]=(3&h)<<6|63&p;return C}},59968:function(d,s){s.byteLength=function(m){var a=w(m),c=a[0],h=a[1];return 3*(c+h)/4-h},s.toByteArray=function(m){var a,c,h=w(m),p=h[0],v=h[1],_=new b(function(x,R,M){return 3*(R+M)/4-M}(0,p,v)),O=0,C=v>0?p-4:p;for(c=0;c>16&255,_[O++]=a>>8&255,_[O++]=255&a;return v===2&&(a=u[m.charCodeAt(c)]<<2|u[m.charCodeAt(c+1)]>>4,_[O++]=255&a),v===1&&(a=u[m.charCodeAt(c)]<<10|u[m.charCodeAt(c+1)]<<4|u[m.charCodeAt(c+2)]>>2,_[O++]=a>>8&255,_[O++]=255&a),_},s.fromByteArray=function(m){for(var a,c=m.length,h=c%3,p=[],v=16383,_=0,O=c-h;_O?O:_+v));return h===1?(a=m[c-1],p.push(n[a>>2]+n[a<<4&63]+"==")):h===2&&(a=(m[c-2]<<8)+m[c-1],p.push(n[a>>10]+n[a>>4&63]+n[a<<2&63]+"=")),p.join("")};for(var n=[],u=[],b=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)n[S]=i[S],u[i.charCodeAt(S)]=S;function w(m){var a=m.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=m.indexOf("=");return c===-1&&(c=a),[c,c===a?0:4-c%4]}function y(m,a,c){for(var h,p,v=[],_=a;_>18&63]+n[p>>12&63]+n[p>>6&63]+n[63&p]);return v.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},64928:function(d){function s(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>=0?(h=p,c=p-1):a=p+1}return h}function n(w,y,m,a,c){for(var h=c+1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)>0?(h=p,c=p-1):a=p+1}return h}function u(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<0?(h=p,a=p+1):c=p-1}return h}function b(w,y,m,a,c){for(var h=a-1;a<=c;){var p=a+c>>>1,v=w[p];(m!==void 0?m(v,y):v-y)<=0?(h=p,a=p+1):c=p-1}return h}function i(w,y,m,a,c){for(;a<=c;){var h=a+c>>>1,p=w[h],v=m!==void 0?m(p,y):p-y;if(v===0)return h;v<=0?a=h+1:c=h-1}return-1}function S(w,y,m,a,c,h){return typeof m=="function"?h(w,y,m,a===void 0?0:0|a,c===void 0?w.length-1:0|c):h(w,y,void 0,m===void 0?0:0|m,a===void 0?w.length-1:0|a)}d.exports={ge:function(w,y,m,a,c){return S(w,y,m,a,c,s)},gt:function(w,y,m,a,c){return S(w,y,m,a,c,n)},lt:function(w,y,m,a,c){return S(w,y,m,a,c,u)},le:function(w,y,m,a,c){return S(w,y,m,a,c,b)},eq:function(w,y,m,a,c){return S(w,y,m,a,c,i)}}},308:function(d,s){function n(b){var i=32;return(b&=-b)&&i--,65535&b&&(i-=16),16711935&b&&(i-=8),252645135&b&&(i-=4),858993459&b&&(i-=2),1431655765&b&&(i-=1),i}s.INT_BITS=32,s.INT_MAX=2147483647,s.INT_MIN=-2147483648,s.sign=function(b){return(b>0)-(b<0)},s.abs=function(b){var i=b>>31;return(b^i)-i},s.min=function(b,i){return i^(b^i)&-(b65535)<<4,i|=S=((b>>>=i)>255)<<3,i|=S=((b>>>=S)>15)<<2,(i|=S=((b>>>=S)>3)<<1)|(b>>>=S)>>1},s.log10=function(b){return b>=1e9?9:b>=1e8?8:b>=1e7?7:b>=1e6?6:b>=1e5?5:b>=1e4?4:b>=1e3?3:b>=100?2:b>=10?1:0},s.popCount=function(b){return 16843009*((b=(858993459&(b-=b>>>1&1431655765))+(b>>>2&858993459))+(b>>>4)&252645135)>>>24},s.countTrailingZeros=n,s.nextPow2=function(b){return b+=b===0,--b,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,1+(b|=b>>>16)},s.prevPow2=function(b){return b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,(b|=b>>>16)-(b>>>1)},s.parity=function(b){return b^=b>>>16,b^=b>>>8,b^=b>>>4,27030>>>(b&=15)&1};var u=new Array(256);(function(b){for(var i=0;i<256;++i){var S=i,w=i,y=7;for(S>>>=1;S;S>>>=1)w<<=1,w|=1&S,--y;b[i]=w<>>8&255]<<16|u[b>>>16&255]<<8|u[b>>>24&255]},s.interleave2=function(b,i){return(b=1431655765&((b=858993459&((b=252645135&((b=16711935&((b&=65535)|b<<8))|b<<4))|b<<2))|b<<1))|(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i&=65535)|i<<8))|i<<4))|i<<2))|i<<1))<<1},s.deinterleave2=function(b,i){return(b=65535&((b=16711935&((b=252645135&((b=858993459&((b=b>>>i&1431655765)|b>>>1))|b>>>2))|b>>>4))|b>>>16))<<16>>16},s.interleave3=function(b,i,S){return b=1227133513&((b=3272356035&((b=251719695&((b=4278190335&((b&=1023)|b<<16))|b<<8))|b<<4))|b<<2),(b|=(i=1227133513&((i=3272356035&((i=251719695&((i=4278190335&((i&=1023)|i<<16))|i<<8))|i<<4))|i<<2))<<1)|(S=1227133513&((S=3272356035&((S=251719695&((S=4278190335&((S&=1023)|S<<16))|S<<8))|S<<4))|S<<2))<<2},s.deinterleave3=function(b,i){return(b=1023&((b=4278190335&((b=251719695&((b=3272356035&((b=b>>>i&1227133513)|b>>>2))|b>>>4))|b>>>8))|b>>>16))<<22>>22},s.nextCombination=function(b){var i=b|b-1;return i+1|(~i&-~i)-1>>>n(b)+1}},29620:function(d,s,n){var u=n(32420);d.exports=function(w,y){y||(y={});var m,a,c,h,p,v,_,O,C,x,R,M=y.cutoff==null?.25:y.cutoff,T=y.radius==null?8:y.radius,P=y.channel||0;if(ArrayBuffer.isView(w)||Array.isArray(w)){if(!y.width||!y.height)throw Error("For raw data width and height should be provided by options");m=y.width,a=y.height,h=w,v=y.stride?y.stride:Math.floor(w.length/m/a)}else window.HTMLCanvasElement&&w instanceof window.HTMLCanvasElement?(_=(O=w).getContext("2d"),m=O.width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.CanvasRenderingContext2D&&w instanceof window.CanvasRenderingContext2D?(_=w,m=(O=w.canvas).width,a=O.height,h=(C=_.getImageData(0,0,m,a)).data,v=4):window.ImageData&&w instanceof window.ImageData&&(C=w,m=w.width,a=w.height,h=C.data,v=4);if(c=Math.max(m,a),window.Uint8ClampedArray&&h instanceof window.Uint8ClampedArray||window.Uint8Array&&h instanceof window.Uint8Array)for(p=h,h=Array(m*a),x=0,R=p.length;x-1?b(y):y}},57916:function(d,s,n){var u=n(8844),b=n(53664),i=n(14500),S=b("%TypeError%"),w=b("%Function.prototype.apply%"),y=b("%Function.prototype.call%"),m=b("%Reflect.apply%",!0)||u.call(y,w),a=b("%Object.defineProperty%",!0),c=b("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}d.exports=function(p){if(typeof p!="function")throw new S("a function is required");var v=m(u,y,arguments);return i(v,1+c(0,p.length-(arguments.length-1)),!0)};var h=function(){return m(u,w,arguments)};a?a(d.exports,"apply",{value:h}):d.exports.apply=h},32420:function(d){d.exports=function(s,n,u){return nu?u:s:sn?n:s}},3808:function(d,s,n){var u=n(32420);function b(i,S){S==null&&(S=!0);var w=i[0],y=i[1],m=i[2],a=i[3];return a==null&&(a=S?1:255),S&&(w*=255,y*=255,m*=255,a*=255),16777216*(w=255&u(w,0,255))+((y=255&u(y,0,255))<<16)+((m=255&u(m,0,255))<<8)+(255&u(a,0,255))}d.exports=b,d.exports.to=b,d.exports.from=function(i,S){var w=(i=+i)>>>24,y=(16711680&i)>>>16,m=(65280&i)>>>8,a=255&i;return S===!1?[w,y,m,a]:[w/255,y/255,m/255,a/255]}},17592:function(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},72160:function(d,s,n){var u=n(96824),b=n(32420),i=n(72512);d.exports=function(S,w){w!=="float"&&w||(w="array"),w==="uint"&&(w="uint8"),w==="uint_clamped"&&(w="uint8_clamped");var y=new(i(w))(4),m=w!=="uint8"&&w!=="uint8_clamped";return S.length&&typeof S!="string"||((S=u(S))[0]/=255,S[1]/=255,S[2]/=255),function(a){return a instanceof Uint8Array||a instanceof Uint8ClampedArray||!!(Array.isArray(a)&&(a[0]>1||a[0]===0)&&(a[1]>1||a[1]===0)&&(a[2]>1||a[2]===0)&&(!a[3]||a[3]>1))}(S)?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:255,m&&(y[0]/=255,y[1]/=255,y[2]/=255,y[3]/=255),y):(m?(y[0]=S[0],y[1]=S[1],y[2]=S[2],y[3]=S[3]!=null?S[3]:1):(y[0]=b(Math.floor(255*S[0]),0,255),y[1]=b(Math.floor(255*S[1]),0,255),y[2]=b(Math.floor(255*S[2]),0,255),y[3]=S[3]==null?255:b(Math.floor(255*S[3]),0,255)),y)}},81704:function(d,s,n){var u=n(17592),b=n(58908),i=n(31264);d.exports=function(w){var y,m,a=[],c=1;if(typeof w=="string")if(u[w])a=u[w].slice(),m="rgb";else if(w==="transparent")c=0,m="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(w)){var h=w.slice(1);c=1,(_=h.length)<=4?(a=[parseInt(h[0]+h[0],16),parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16)],_===4&&(c=parseInt(h[3]+h[3],16)/255)):(a=[parseInt(h[0]+h[1],16),parseInt(h[2]+h[3],16),parseInt(h[4]+h[5],16)],_===8&&(c=parseInt(h[6]+h[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),m="rgb"}else if(y=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(w)){var p=y[1],v=p==="rgb";m=h=p.replace(/a$/,"");var _=h==="cmyk"?4:h==="gray"?1:3;a=y[2].trim().split(/\s*,\s*/).map(function(C,x){if(/%$/.test(C))return x===_?parseFloat(C)/100:h==="rgb"?255*parseFloat(C)/100:parseFloat(C);if(h[x]==="h"){if(/deg$/.test(C))return parseFloat(C);if(S[C]!==void 0)return S[C]}return parseFloat(C)}),p===h&&a.push(1),c=v||a[_]===void 0?1:a[_],a=a.slice(0,_)}else w.length>10&&/[0-9](?:\s|\/)/.test(w)&&(a=w.match(/([0-9]+)/g).map(function(C){return parseFloat(C)}),m=w.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(w))if(b(w)){var O=i(w.r,w.red,w.R,null);O!==null?(m="rgb",a=[O,i(w.g,w.green,w.G),i(w.b,w.blue,w.B)]):(m="hsl",a=[i(w.h,w.hue,w.H),i(w.s,w.saturation,w.S),i(w.l,w.lightness,w.L,w.b,w.brightness)]),c=i(w.a,w.alpha,w.opacity,1),w.opacity!=null&&(c/=100)}else(Array.isArray(w)||n.g.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(w))&&(a=[w[0],w[1],w[2]],m="rgb",c=w.length===4?w[3]:1);else m="rgb",a=[w>>>16,(65280&w)>>>8,255&w];return{space:m,values:a,alpha:c}};var S={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}},96824:function(d,s,n){var u=n(81704),b=n(53576),i=n(32420);d.exports=function(S){var w,y=u(S);return y.space?((w=Array(3))[0]=i(y.values[0],0,255),w[1]=i(y.values[1],0,255),w[2]=i(y.values[2],0,255),y.space[0]==="h"&&(w=b.rgb(w)),w.push(i(y.alpha,0,1)),w):[]}},53576:function(d,s,n){var u=n(19336);d.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(b){var i,S,w,y,m,a=b[0]/360,c=b[1]/100,h=b[2]/100;if(c===0)return[m=255*h,m,m];i=2*h-(S=h<.5?h*(1+c):h+c-h*c),y=[0,0,0];for(var p=0;p<3;p++)(w=a+.3333333333333333*-(p-1))<0?w++:w>1&&w--,m=6*w<1?i+6*(S-i)*w:2*w<1?S:3*w<2?i+(S-i)*(.6666666666666666-w)*6:i,y[p]=255*m;return y}},u.hsl=function(b){var i,S,w=b[0]/255,y=b[1]/255,m=b[2]/255,a=Math.min(w,y,m),c=Math.max(w,y,m),h=c-a;return c===a?i=0:w===c?i=(y-m)/h:y===c?i=2+(m-w)/h:m===c&&(i=4+(w-y)/h),(i=Math.min(60*i,360))<0&&(i+=360),S=(a+c)/2,[i,100*(c===a?0:S<=.5?h/(c+a):h/(2-c-a)),100*S]}},19336:function(d){d.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},36116:function(d){d.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},42771:function(d,s,n){d.exports={parse:n(46416),stringify:n(49395)}},8744:function(d,s,n){var u=n(30584);d.exports={isSize:function(b){return/^[\d\.]/.test(b)||b.indexOf("/")!==-1||u.indexOf(b)!==-1}}},46416:function(d,s,n){var u=n(92384),b=n(68194),i=n(3748),S=n(2904),w=n(47916),y=n(7294),m=n(39956),a=n(8744).isSize;d.exports=h;var c=h.cache={};function h(v){if(typeof v!="string")throw new Error("Font argument must be a string.");if(c[v])return c[v];if(v==="")throw new Error("Cannot parse an empty string.");if(i.indexOf(v)!==-1)return c[v]={system:v};for(var _,O={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},C=m(v,/\s+/);_=C.shift();){if(b.indexOf(_)!==-1)return["style","variant","weight","stretch"].forEach(function(R){O[R]=_}),c[v]=O;if(w.indexOf(_)===-1)if(_!=="normal"&&_!=="small-caps")if(y.indexOf(_)===-1){if(S.indexOf(_)===-1){if(a(_)){var x=m(_,"/");if(O.size=x[0],x[1]!=null?O.lineHeight=p(x[1]):C[0]==="/"&&(C.shift(),O.lineHeight=p(C.shift())),!C.length)throw new Error("Missing required font-family.");return O.family=m(C.join(" "),/\s*,\s*/).map(u),c[v]=O}throw new Error("Unknown or unsupported font token: "+_)}O.weight=_}else O.stretch=_;else O.variant=_;else O.style=_}throw new Error("Missing required font-size.")}function p(v){var _=parseFloat(v);return _.toString()===v?_:v}},49395:function(d,s,n){var u=n(55616),b=n(8744).isSize,i=v(n(68194)),S=v(n(3748)),w=v(n(2904)),y=v(n(47916)),m=v(n(7294)),a={normal:1,"small-caps":1},c={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},h="serif";function p(_,O){if(_&&!O[_]&&!i[_])throw Error("Unknown keyword `"+_+"`");return _}function v(_){for(var O={},C=0;C<_.length;C++)O[_[C]]=1;return O}d.exports=function(_){if((_=u(_,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"})).system)return _.system&&p(_.system,S),_.system;if(p(_.style,y),p(_.variant,a),p(_.weight,w),p(_.stretch,m),_.size==null&&(_.size="1rem"),typeof _.size=="number"&&(_.size+="px"),!b)throw Error("Bad size value `"+_.size+"`");_.family||(_.family=h),Array.isArray(_.family)&&(_.family.length||(_.family=[h]),_.family=_.family.map(function(C){return c[C]?C:'"'+C+'"'}).join(", "));var O=[];return O.push(_.style),_.variant!==_.style&&O.push(_.variant),_.weight!==_.variant&&_.weight!==_.style&&O.push(_.weight),_.stretch!==_.weight&&_.stretch!==_.variant&&_.stretch!==_.style&&O.push(_.stretch),O.push(_.size+(_.lineHeight==null||_.lineHeight==="normal"||_.lineHeight+""=="1"?"":"/"+_.lineHeight)),O.push(_.family),O.filter(Boolean).join(" ")}},27940:function(d,s,n){var u,b=n(81680),i=n(18496),S=n(87396),w=n(95920),y=n(50868),m=n(84323),a=Function.prototype.bind,c=Object.defineProperty,h=Object.prototype.hasOwnProperty;u=function(p,v,_){var O,C=i(v)&&S(v.value);return delete(O=w(v)).writable,delete O.value,O.get=function(){return!_.overwriteDefinition&&h.call(this,p)?C:(v.value=a.call(C,_.resolveContext?_.resolveContext(this):this),c(this,p,v),this[p])},O},d.exports=function(p){var v=y(arguments[1]);return b(v.resolveContext)&&S(v.resolveContext),m(p,function(_,O){return u(O,_,v)})}},21092:function(d,s,n){var u=n(81680),b=n(85488),i=n(38452),S=n(50868),w=n(71056),y=d.exports=function(m,a){var c,h,p,v,_;return arguments.length<2||typeof m!="string"?(v=a,a=m,m=null):v=arguments[2],u(m)?(c=w.call(m,"c"),h=w.call(m,"e"),p=w.call(m,"w")):(c=p=!0,h=!1),_={value:a,configurable:c,enumerable:h,writable:p},v?i(S(v),_):_};y.gs=function(m,a,c){var h,p,v,_;return typeof m!="string"?(v=c,c=a,a=m,m=null):v=arguments[3],u(a)?b(a)?u(c)?b(c)||(v=c,c=void 0):c=void 0:(v=a,a=c=void 0):a=void 0,u(m)?(h=w.call(m,"c"),p=w.call(m,"e")):(h=!0,p=!1),_={get:a,set:c,configurable:h,enumerable:p},v?i(S(v),_):_}},84706:function(d,s,n){function u(p,v){return pv?1:p>=v?0:NaN}n.d(s,{XE:function(){return u},kv:function(){return S},mo:function(){return y},Uf:function(){return m},SY:function(){return a},ik:function(){return c},oh:function(){return h}}),(b=u).length===1&&(i=b,b=function(p,v){return u(i(p),v)});var b,i;function S(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++xO&&(O=_)}else for(;++x=_)for(O=_;++xO&&(O=_);return O}function w(p){return p===null?NaN:+p}function y(p,v){var _,O=p.length,C=O,x=-1,R=0;if(v==null)for(;++x=0;)for(v=(O=p[C]).length;--v>=0;)_[--R]=O[v];return _}function a(p,v){var _,O,C=p.length,x=-1;if(v==null){for(;++x=_)for(O=_;++x_&&(O=_)}else for(;++x=_)for(O=_;++x_&&(O=_);return O}function c(p,v,_){p=+p,v=+v,_=(C=arguments.length)<2?(v=p,p=0,1):C<3?1:+_;for(var O=-1,C=0|Math.max(0,Math.ceil((v-p)/_)),x=new Array(C);++O=C.length)return v!=null&&T.sort(v),_!=null?_(T):T;for(var D,k,I,z=-1,$=T.length,Q=C[P++],j=S(),U=A();++z<$;)(I=j.get(D=Q(k=T[z])+""))?I.push(k):j.set(D,[k]);return j.each(function(X,te){L(U,te,R(X,P,A,L))}),U}function M(T,P){if(++P>C.length)return T;var A,L=x[P-1];return _!=null&&P>=C.length?A=T.entries():(A=[],T.each(function(D,k){A.push({key:k,values:M(D,P)})})),L!=null?A.sort(function(D,k){return L(D.key,k.key)}):A}return O={object:function(T){return R(T,0,y,m)},map:function(T){return R(T,0,a,c)},entries:function(T){return M(R(T,0,a,c),0)},key:function(T){return C.push(T),O},sortKeys:function(T){return x[C.length-1]=T,O},sortValues:function(T){return v=T,O},rollup:function(T){return _=T,O}}}function y(){return{}}function m(v,_,O){v[_]=O}function a(){return S()}function c(v,_,O){v.set(_,O)}function h(){}var p=S.prototype;h.prototype={constructor:h,has:p.has,add:function(v){return this[u+(v+="")]=v,this},remove:p.remove,clear:p.clear,values:p.keys,size:p.size,empty:p.empty,each:p.each}},49812:function(d,s,n){function u(ze,De){var Qe;function Ve(){var $e,Oe,ke=Qe.length,Re=0,We=0;for($e=0;$e=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke,$e=Me,!(Me=Me[Ye=Ze<<1|Ue]))return $e[Ye]=Fe,ze;if(Re=+ze._x.call(null,Me.data),We=+ze._y.call(null,Me.data),De===Re&&Qe===We)return Fe.next=Me,$e?$e[Ye]=Fe:ze._root=Fe,ze;do $e=$e?$e[Ye]=new Array(4):ze._root=new Array(4),(Ue=De>=(Oe=(je+ot)/2))?je=Oe:ot=Oe,(Ze=Qe>=(ke=(tt+Ge)/2))?tt=ke:Ge=ke;while((Ye=Ze<<1|Ue)==(Je=(We>=ke)<<1|Re>=Oe));return $e[Je]=Me,$e[Ye]=Fe,ze}function w(ze,De,Qe,Ve,$e){this.node=ze,this.x0=De,this.y0=Qe,this.x1=Ve,this.y1=$e}function y(ze){return ze[0]}function m(ze){return ze[1]}function a(ze,De,Qe){var Ve=new c(De??y,Qe??m,NaN,NaN,NaN,NaN);return ze==null?Ve:Ve.addAll(ze)}function c(ze,De,Qe,Ve,$e,Oe){this._x=ze,this._y=De,this._x0=Qe,this._y0=Ve,this._x1=$e,this._y1=Oe,this._root=void 0}function h(ze){for(var De={data:ze.data},Qe=De;ze=ze.next;)Qe=Qe.next={data:ze.data};return De}n.r(s),n.d(s,{forceCenter:function(){return u},forceCollide:function(){return O},forceLink:function(){return M},forceManyBody:function(){return we},forceRadial:function(){return Te},forceSimulation:function(){return _e},forceX:function(){return Pe},forceY:function(){return Ie}});var p=a.prototype=c.prototype;function v(ze){return ze.x+ze.vx}function _(ze){return ze.y+ze.vy}function O(ze){var De,Qe,Ve=1,$e=1;function Oe(){for(var We,Ue,Ze,Ye,Je,Me,Fe,je=De.length,tt=0;tt<$e;++tt)for(Ue=a(De,v,_).visitAfter(ke),We=0;WeYe+ln||StJe+ln||FtZe.index){var tn=Ye-zt.x-zt.vx,Et=Je-zt.y-zt.vy,Ot=tn*tn+Et*Et;OtWe.r&&(We.r=We[Ue].r)}function Re(){if(De){var We,Ue,Ze=De.length;for(Qe=new Array(Ze),We=0;WeZe&&(Ze=Ve),$eYe&&(Ye=$e));if(We>Ze||Ue>Ye)return this;for(this.cover(We,Ue).cover(Ze,Ye),Qe=0;Qeze||ze>=$e||Ve>De||De>=Oe;)switch(Re=(DeJe||(Oe=We.y0)>Me||(ke=We.x1)=ot)<<1|ze>=tt)&&(We=Fe[Fe.length-1],Fe[Fe.length-1]=Fe[Fe.length-1-Ue],Fe[Fe.length-1-Ue]=We)}else{var Ge=ze-+this._x.call(null,je.data),ht=De-+this._y.call(null,je.data),pt=Ge*Ge+ht*ht;if(pt=(Re=(Fe+tt)/2))?Fe=Re:tt=Re,(Ze=ke>=(We=(je+ot)/2))?je=We:ot=We,De=Me,!(Me=Me[Ye=Ze<<1|Ue]))return this;if(!Me.length)break;(De[Ye+1&3]||De[Ye+2&3]||De[Ye+3&3])&&(Qe=De,Je=Ye)}for(;Me.data!==ze;)if(Ve=Me,!(Me=Me.next))return this;return($e=Me.next)&&delete Me.next,Ve?($e?Ve.next=$e:delete Ve.next,this):De?($e?De[Ye]=$e:delete De[Ye],(Me=De[0]||De[1]||De[2]||De[3])&&Me===(De[3]||De[2]||De[1]||De[0])&&!Me.length&&(Qe?Qe[Je]=Me:this._root=Me),this):(this._root=$e,this)},p.removeAll=function(ze){for(var De=0,Qe=ze.length;De=0&&(Ue=We.slice(Ze+1),We=We.slice(0,Ze)),We&&!Ve.hasOwnProperty(We))throw new Error("unknown type: "+We);return{type:We,name:Ue}})),ke=-1,Re=Oe.length;if(!(arguments.length<2)){if(De!=null&&typeof De!="function")throw new Error("invalid callback: "+De);for(;++ke0)for(var Qe,Ve,$e=new Array(Qe),Oe=0;Oe=0&&De._call.call(null,ze),De=De._next;--$})()}finally{$=0,function(){for(var ze,De,Qe=k,Ve=1/0;Qe;)Qe._call?(Ve>Qe._time&&(Ve=Qe._time),ze=Qe,Qe=Qe._next):(De=Qe._next,Qe._next=null,Qe=ze?ze._next=De:k=De);I=ze,ae(Ve)}(),te=0}}function se(){var ze=K.now(),De=ze-X;De>U&&(Z-=De,X=ze)}function ae(ze){$||(Q&&(Q=clearTimeout(Q)),ze-te>24?(ze<1/0&&(Q=setTimeout(pe,ze-K.now()-Z)),j&&(j=clearInterval(j))):(j||(X=K.now(),j=setInterval(se,U)),$=1,re(pe)))}function ce(ze){return ze.x}function de(ze){return ze.y}ee.prototype=me.prototype={constructor:ee,restart:function(ze,De,Qe){if(typeof ze!="function")throw new TypeError("callback is not a function");Qe=(Qe==null?q():+Qe)+(De==null?0:+De),this._next||I===this||(I?I._next=this:k=this,I=this),this._call=ze,this._time=Qe,ae()},stop:function(){this._call&&(this._call=null,this._time=1/0,ae())}};var ye=10,ve=Math.PI*(3-Math.sqrt(5));function _e(ze){var De,Qe=1,Ve=.001,$e=1-Math.pow(Ve,1/300),Oe=0,ke=.6,Re=(0,C.kH)(),We=me(Ze),Ue=z("tick","end");function Ze(){Ye(),Ue.call("tick",De),Qe1?(je==null?Re.remove(Fe):Re.set(Fe,Me(je)),De):Re.get(Fe)},find:function(Fe,je,tt){var ot,Ge,ht,pt,St,Ft=0,zt=ze.length;for(tt==null?tt=1/0:tt*=tt,Ft=0;Ft1?(Ue.on(Fe,je),De):Ue.on(Fe)}}}function we(){var ze,De,Qe,Ve,$e=b(-30),Oe=1,ke=1/0,Re=.81;function We(Je){var Me,Fe=ze.length,je=a(ze,ce,de).visitAfter(Ze);for(Qe=Je,Me=0;Me=ke)){(Je.data!==De||Je.next)&&(tt===0&&(ht+=(tt=i())*tt),ot===0&&(ht+=(ot=i())*ot),ht1?R[0]+R.slice(2):R,+O.slice(x+1)]}n.d(s,{E9:function(){return h},SO:function(){return _}});var b,i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(O){if(!(C=i.exec(O)))throw new Error("invalid format: "+O);var C;return new w({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}function w(O){this.fill=O.fill===void 0?" ":O.fill+"",this.align=O.align===void 0?">":O.align+"",this.sign=O.sign===void 0?"-":O.sign+"",this.symbol=O.symbol===void 0?"":O.symbol+"",this.zero=!!O.zero,this.width=O.width===void 0?void 0:+O.width,this.comma=!!O.comma,this.precision=O.precision===void 0?void 0:+O.precision,this.trim=!!O.trim,this.type=O.type===void 0?"":O.type+""}function y(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1];return M<0?"0."+new Array(-M).join("0")+R:R.length>M+1?R.slice(0,M+1)+"."+R.slice(M+1):R+new Array(M-R.length+2).join("0")}S.prototype=w.prototype,w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var m={"%":function(O,C){return(100*O).toFixed(C)},b:function(O){return Math.round(O).toString(2)},c:function(O){return O+""},d:function(O){return Math.abs(O=Math.round(O))>=1e21?O.toLocaleString("en").replace(/,/g,""):O.toString(10)},e:function(O,C){return O.toExponential(C)},f:function(O,C){return O.toFixed(C)},g:function(O,C){return O.toPrecision(C)},o:function(O){return Math.round(O).toString(8)},p:function(O,C){return y(100*O,C)},r:y,s:function(O,C){var x=u(O,C);if(!x)return O+"";var R=x[0],M=x[1],T=M-(b=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,P=R.length;return T===P?R:T>P?R+new Array(T-P+1).join("0"):T>0?R.slice(0,T)+"."+R.slice(T):"0."+new Array(1-T).join("0")+u(O,Math.max(0,C+T-1))[0]},X:function(O){return Math.round(O).toString(16).toUpperCase()},x:function(O){return Math.round(O).toString(16)}};function a(O){return O}var c,h,p=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _(O){var C,x,R=O.grouping===void 0||O.thousands===void 0?a:(C=p.call(O.grouping,Number),x=O.thousands+"",function(z,$){for(var Q=z.length,j=[],U=0,X=C[0],te=0;Q>0&&X>0&&(te+X+1>$&&(X=Math.max(1,$-te)),j.push(z.substring(Q-=X,Q+X)),!((te+=X+1)>$));)X=C[U=(U+1)%C.length];return j.reverse().join(x)}),M=O.currency===void 0?"":O.currency[0]+"",T=O.currency===void 0?"":O.currency[1]+"",P=O.decimal===void 0?".":O.decimal+"",A=O.numerals===void 0?a:function(z){return function($){return $.replace(/[0-9]/g,function(Q){return z[+Q]})}}(p.call(O.numerals,String)),L=O.percent===void 0?"%":O.percent+"",D=O.minus===void 0?"-":O.minus+"",k=O.nan===void 0?"NaN":O.nan+"";function I(z){var $=(z=S(z)).fill,Q=z.align,j=z.sign,U=z.symbol,X=z.zero,te=z.width,Z=z.comma,K=z.precision,re=z.trim,q=z.type;q==="n"?(Z=!0,q="g"):m[q]||(K===void 0&&(K=12),re=!0,q="g"),(X||$==="0"&&Q==="=")&&(X=!0,$="0",Q="=");var Y=U==="$"?M:U==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",ee=U==="$"?T:/[%p]/.test(q)?L:"",me=m[q],pe=/[defgprs%]/.test(q);function se(ae){var ce,de,ye,ve=Y,_e=ee;if(q==="c")_e=me(ae)+_e,ae="";else{var we=(ae=+ae)<0||1/ae<0;if(ae=isNaN(ae)?k:me(Math.abs(ae),K),re&&(ae=function(Ie){e:for(var ze,De=Ie.length,Qe=1,Ve=-1;Qe0&&(Ve=0)}return Ve>0?Ie.slice(0,Ve)+Ie.slice(ze+1):Ie}(ae)),we&&+ae==0&&j!=="+"&&(we=!1),ve=(we?j==="("?j:D:j==="-"||j==="("?"":j)+ve,_e=(q==="s"?v[8+b/3]:"")+_e+(we&&j==="("?")":""),pe){for(ce=-1,de=ae.length;++ce(ye=ae.charCodeAt(ce))||ye>57){_e=(ye===46?P+ae.slice(ce+1):ae.slice(ce))+_e,ae=ae.slice(0,ce);break}}}Z&&!X&&(ae=R(ae,1/0));var Te=ve.length+ae.length+_e.length,Pe=Te>1)+ve+ae+_e+Pe.slice(Te);break;default:ae=Pe+ve+ae+_e}return A(ae)}return K=K===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K)),se.toString=function(){return z+""},se}return{format:I,formatPrefix:function(z,$){var Q,j=I(((z=S(z)).type="f",z)),U=3*Math.max(-8,Math.min(8,Math.floor((Q=$,((Q=u(Math.abs(Q)))?Q[1]:NaN)/3)))),X=Math.pow(10,-U),te=v[8+U/3];return function(Z){return j(X*Z)+te}}}}c=_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h=c.format,c.formatPrefix},87108:function(d,s,n){n.r(s),n.d(s,{geoAiry:function(){return Z},geoAiryRaw:function(){return te},geoAitoff:function(){return re},geoAitoffRaw:function(){return K},geoArmadillo:function(){return Y},geoArmadilloRaw:function(){return q},geoAugust:function(){return me},geoAugustRaw:function(){return ee},geoBaker:function(){return ce},geoBakerRaw:function(){return ae},geoBerghaus:function(){return ve},geoBerghausRaw:function(){return ye},geoBertin1953:function(){return Qe},geoBertin1953Raw:function(){return De},geoBoggs:function(){return Ze},geoBoggsRaw:function(){return Ue},geoBonne:function(){return je},geoBonneRaw:function(){return Fe},geoBottomley:function(){return ot},geoBottomleyRaw:function(){return tt},geoBromley:function(){return ht},geoBromleyRaw:function(){return Ge},geoChamberlin:function(){return Ot},geoChamberlinAfrica:function(){return Et},geoChamberlinRaw:function(){return ln},geoCollignon:function(){return Cn},geoCollignonRaw:function(){return cn},geoCraig:function(){return Sn},geoCraigRaw:function(){return Pn},geoCraster:function(){return st},geoCrasterRaw:function(){return xt},geoCylindricalEqualArea:function(){return Vt},geoCylindricalEqualAreaRaw:function(){return bt},geoCylindricalStereographic:function(){return it},geoCylindricalStereographicRaw:function(){return Dt},geoEckert1:function(){return Bt},geoEckert1Raw:function(){return at},geoEckert2:function(){return qt},geoEckert2Raw:function(){return _t},geoEckert3:function(){return Jt},geoEckert3Raw:function(){return en},geoEckert4:function(){return Nt},geoEckert4Raw:function(){return Zt},geoEckert5:function(){return rn},geoEckert5Raw:function(){return sn},geoEckert6:function(){return wn},geoEckert6Raw:function(){return _n},geoEisenlohr:function(){return fr},geoEisenlohrRaw:function(){return Kn},geoFahey:function(){return tr},geoFaheyRaw:function(){return Zn},geoFoucaut:function(){return $r},geoFoucautRaw:function(){return Br},geoFoucautSinusoidal:function(){return qn},geoFoucautSinusoidalRaw:function(){return vr},geoGilbert:function(){return Vr},geoGingery:function(){return to},geoGingeryRaw:function(){return eo},geoGinzburg4:function(){return _o},geoGinzburg4Raw:function(){return Fo},geoGinzburg5:function(){return Mo},geoGinzburg5Raw:function(){return $o},geoGinzburg6:function(){return Hn},geoGinzburg6Raw:function(){return pi},geoGinzburg8:function(){return Dr},geoGinzburg8Raw:function(){return ar},geoGinzburg9:function(){return Zr},geoGinzburg9Raw:function(){return Sr},geoGringorten:function(){return io},geoGringortenQuincuncial:function(){return zc},geoGringortenRaw:function(){return oo},geoGuyou:function(){return On},geoGuyouRaw:function(){return Rr},geoHammer:function(){return Pe},geoHammerRaw:function(){return we},geoHammerRetroazimuthal:function(){return Er},geoHammerRetroazimuthalRaw:function(){return ir},geoHealpix:function(){return qr},geoHealpixRaw:function(){return zn},geoHill:function(){return wo},geoHillRaw:function(){return Cr},geoHomolosine:function(){return Fn},geoHomolosineRaw:function(){return Mn},geoHufnagel:function(){return xr},geoHufnagelRaw:function(){return dr},geoHyperelliptical:function(){return To},geoHyperellipticalRaw:function(){return Di},geoInterrupt:function(){return fs},geoInterruptedBoggs:function(){return yl},geoInterruptedHomolosine:function(){return yf},geoInterruptedMollweide:function(){return nf},geoInterruptedMollweideHemispheres:function(){return gp},geoInterruptedQuarticAuthalic:function(){return _r},geoInterruptedSinuMollweide:function(){return xh},geoInterruptedSinusoidal:function(){return Tc},geoKavrayskiy7:function(){return au},geoKavrayskiy7Raw:function(){return iu},geoLagrange:function(){return _s},geoLagrangeRaw:function(){return zf},geoLarrivee:function(){return Uc},geoLarriveeRaw:function(){return mu},geoLaskowski:function(){return Al},geoLaskowskiRaw:function(){return Kf},geoLittrow:function(){return Ml},geoLittrowRaw:function(){return Wl},geoLoximuthal:function(){return Nf},geoLoximuthalRaw:function(){return Jf},geoMiller:function(){return Gh},geoMillerRaw:function(){return Jl},geoModifiedStereographic:function(){return vu},geoModifiedStereographicAlaska:function(){return Lp},geoModifiedStereographicGs48:function(){return rh},geoModifiedStereographicGs50:function(){return rf},geoModifiedStereographicLee:function(){return bf},geoModifiedStereographicMiller:function(){return of},geoModifiedStereographicRaw:function(){return ll},geoMollweide:function(){return ke},geoMollweideRaw:function(){return Oe},geoMtFlatPolarParabolic:function(){return Kh},geoMtFlatPolarParabolicRaw:function(){return Zu},geoMtFlatPolarQuartic:function(){return ed},geoMtFlatPolarQuarticRaw:function(){return Cu},geoMtFlatPolarSinusoidal:function(){return vd},geoMtFlatPolarSinusoidalRaw:function(){return Bu},geoNaturalEarth:function(){return cs.c},geoNaturalEarth2:function(){return Jh},geoNaturalEarth2Raw:function(){return oh},geoNaturalEarthRaw:function(){return cs.g},geoNellHammer:function(){return xf},geoNellHammerRaw:function(){return _h},geoNicolosi:function(){return yd},geoNicolosiRaw:function(){return Ff},geoPatterson:function(){return Nh},geoPattersonRaw:function(){return jc},geoPeirceQuincuncial:function(){return Ud},geoPierceQuincuncial:function(){return Ud},geoPolyconic:function(){return td},geoPolyconicRaw:function(){return af},geoPolyhedral:function(){return gs},geoPolyhedralButterfly:function(){return _d},geoPolyhedralCollignon:function(){return vp},geoPolyhedralWaterman:function(){return ah},geoProject:function(){return cl},geoQuantize:function(){return cf},geoQuincuncial:function(){return ds},geoRectangularPolyconic:function(){return aa},geoRectangularPolyconicRaw:function(){return Of},geoRobinson:function(){return Ri},geoRobinsonRaw:function(){return Mu},geoSatellite:function(){return qu},geoSatelliteRaw:function(){return Gc},geoSinuMollweide:function(){return Qt},geoSinuMollweideRaw:function(){return zo},geoSinusoidal:function(){return Me},geoSinusoidalRaw:function(){return Je},geoStitch:function(){return Ec},geoTimes:function(){return wt},geoTimesRaw:function(){return _u},geoTwoPointAzimuthal:function(){return wr},geoTwoPointAzimuthalRaw:function(){return En},geoTwoPointAzimuthalUsa:function(){return pr},geoTwoPointEquidistant:function(){return ya},geoTwoPointEquidistantRaw:function(){return uo},geoTwoPointEquidistantUsa:function(){return Bi},geoVanDerGrinten:function(){return Qi},geoVanDerGrinten2:function(){return nl},geoVanDerGrinten2Raw:function(){return Ws},geoVanDerGrinten3:function(){return Wu},geoVanDerGrinten3Raw:function(){return Fs},geoVanDerGrinten4:function(){return Aa},geoVanDerGrinten4Raw:function(){return Ki},geoVanDerGrintenRaw:function(){return Ni},geoWagner:function(){return Vf},geoWagner4:function(){return Pc},geoWagner4Raw:function(){return pl},geoWagner6:function(){return Os},geoWagner6Raw:function(){return Uf},geoWagner7:function(){return sh},geoWagnerRaw:function(){return Pl},geoWiechel:function(){return lc},geoWiechelRaw:function(){return Si},geoWinkel3:function(){return tp},geoWinkel3Raw:function(){return rd}});var u=n(87952),b=Math.abs,i=Math.atan,S=Math.atan2,w=Math.cos,y=Math.exp,m=Math.floor,a=Math.log,c=Math.max,h=Math.min,p=Math.pow,v=Math.round,_=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},O=Math.sin,C=Math.tan,x=1e-6,R=1e-12,M=Math.PI,T=M/2,P=M/4,A=Math.SQRT1_2,L=j(2),D=j(M),k=2*M,I=180/M,z=M/180;function $(kt){return kt>1?T:kt<-1?-T:Math.asin(kt)}function Q(kt){return kt>1?0:kt<-1?M:Math.acos(kt)}function j(kt){return kt>0?Math.sqrt(kt):0}function U(kt){return(y(kt)-y(-kt))/2}function X(kt){return(y(kt)+y(-kt))/2}function te(kt){var It=C(kt/2),Ut=2*a(w(kt/2))/(It*It);function J(le,ne){var V=w(le),ie=w(ne),ge=O(ne),xe=ie*V,Ee=-((1-xe?a((1+xe)/2)/(1-xe):-.5)+Ut/(1+xe));return[Ee*ie*O(le),Ee*ge]}return J.invert=function(le,ne){var V,ie=j(le*le+ne*ne),ge=-kt/2,xe=50;if(!ie)return[0,0];do{var Ee=ge/2,Ne=w(Ee),et=O(Ee),rt=et/Ne,dt=-a(b(Ne));ge-=V=(2/rt*dt-Ut*rt-ie)/(-dt/(et*et)+1-Ut/(2*Ne*Ne))*(Ne<0?.7:1)}while(b(V)>x&&--xe>0);var gt=O(ge);return[S(le*gt,ie*w(ge)),$(ne*gt/ie)]},J}function Z(){var kt=T,It=(0,u.U)(te),Ut=It(kt);return Ut.radius=function(J){return arguments.length?It(kt=J*z):kt*I},Ut.scale(179.976).clipAngle(147)}function K(kt,It){var Ut=w(It),J=function(le){return le?le/Math.sin(le):1}(Q(Ut*w(kt/=2)));return[2*Ut*O(kt)*J,O(It)*J]}function re(){return(0,u.c)(K).scale(152.63)}function q(kt){var It=O(kt),Ut=w(kt),J=kt>=0?1:-1,le=C(J*kt),ne=(1+It-Ut)/2;function V(ie,ge){var xe=w(ge),Ee=w(ie/=2);return[(1+xe)*O(ie),(J*ge>-S(Ee,le)-.001?0:10*-J)+ne+O(ge)*Ut-(1+xe)*It*Ee]}return V.invert=function(ie,ge){var xe=0,Ee=0,Ne=50;do{var et=w(xe),rt=O(xe),dt=w(Ee),gt=O(Ee),Rt=1+dt,Mt=Rt*rt-ie,Xt=ne+gt*Ut-Rt*It*et-ge,dn=Rt*et/2,bn=-rt*gt,vn=It*Rt*rt/2,Ln=Ut*dt+It*et*gt,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn/2,pn=(Mt*vn-Xt*dn)/gn;b(pn)>2&&(pn/=2),xe-=Jn,Ee-=pn}while((b(Jn)>x||b(pn)>x)&&--Ne>0);return J*Ee>-S(w(xe),le)-.001?[2*xe,Ee]:null},V}function Y(){var kt=20*z,It=kt>=0?1:-1,Ut=C(It*kt),J=(0,u.U)(q),le=J(kt),ne=le.stream;return le.parallel=function(V){return arguments.length?(Ut=C((It=(kt=V*z)>=0?1:-1)*kt),J(kt)):kt*I},le.stream=function(V){var ie=le.rotate(),ge=ne(V),xe=(le.rotate([0,0]),ne(V)),Ee=le.precision();return le.rotate(ie),ge.sphere=function(){xe.polygonStart(),xe.lineStart();for(var Ne=-180*It;It*Ne<180;Ne+=90*It)xe.point(Ne,90*It);if(kt)for(;It*(Ne-=3*It*Ee)>=-180;)xe.point(Ne,It*-S(w(Ne*z/2),Ut)*I);xe.lineEnd(),xe.polygonEnd()},ge},le.scale(218.695).center([0,28.0974])}function ee(kt,It){var Ut=C(It/2),J=j(1-Ut*Ut),le=1+J*w(kt/=2),ne=O(kt)*J/le,V=Ut/le,ie=ne*ne,ge=V*V;return[1.3333333333333333*ne*(3+ie-3*ge),1.3333333333333333*V*(3+3*ie-ge)]}function me(){return(0,u.c)(ee).scale(66.1603)}K.invert=function(kt,It){if(!(kt*kt+4*It*It>M*M+x)){var Ut=kt,J=It,le=25;do{var ne,V=O(Ut),ie=O(Ut/2),ge=w(Ut/2),xe=O(J),Ee=w(J),Ne=O(2*J),et=xe*xe,rt=Ee*Ee,dt=ie*ie,gt=1-rt*ge*ge,Rt=gt?Q(Ee*ge)*j(ne=1/gt):ne=0,Mt=2*Rt*Ee*ie-kt,Xt=Rt*xe-It,dn=ne*(rt*dt+Rt*Ee*ge*et),bn=ne*(.5*V*Ne-2*Rt*xe*ie),vn=.25*ne*(Ne*ie-Rt*xe*rt*V),Ln=ne*(et*ge+Rt*dt*Ee),gn=bn*vn-Ln*dn;if(!gn)break;var Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},ee.invert=function(kt,It){if(It*=.375,!(kt*=.375)&&b(It)>1)return null;var Ut=1+kt*kt+It*It,J=j((Ut-j(Ut*Ut-4*It*It))/2),le=$(J)/3,ne=J?function(xe){return a(xe+j(xe*xe-1))}(b(It/J))/3:function(xe){return a(xe+j(xe*xe+1))}(b(kt))/3,V=w(le),ie=X(ne),ge=ie*ie-V*V;return[2*_(kt)*S(U(ne)*V,.25-ge),2*_(It)*S(ie*O(le),.25+ge)]};var pe=j(8),se=a(1+L);function ae(kt,It){var Ut=b(It);return UtR&&--ne>0);return[kt/(w(le)*(pe-1/O(le))),_(It)*le]};var de=n(69020);function ye(kt){var It=2*M/kt;function Ut(J,le){var ne=(0,de.O)(J,le);if(b(J)>T){var V=S(ne[1],ne[0]),ie=j(ne[0]*ne[0]+ne[1]*ne[1]),ge=It*v((V-T)/It)+T,xe=S(O(V-=ge),2-w(V));V=ge+$(M/ie*O(xe))-xe,ne[0]=ie*w(V),ne[1]=ie*O(V)}return ne}return Ut.invert=function(J,le){var ne=j(J*J+le*le);if(ne>T){var V=S(le,J),ie=It*v((V-T)/It)+T,ge=V>ie?-1:1,xe=ne*w(ie-V),Ee=1/C(ge*Q((xe-M)/j(M*(M-2*xe)+ne*ne)));V=ie+2*i((Ee+ge*j(Ee*Ee-3))/3),J=ne*w(V),le=ne*O(V)}return de.O.invert(J,le)},Ut}function ve(){var kt=5,It=(0,u.U)(ye),Ut=It(kt),J=Ut.stream,le=.01,ne=-w(le*z),V=O(le*z);return Ut.lobes=function(ie){return arguments.length?It(kt=+ie):kt},Ut.stream=function(ie){var ge=Ut.rotate(),xe=J(ie),Ee=(Ut.rotate([0,0]),J(ie));return Ut.rotate(ge),xe.sphere=function(){Ee.polygonStart(),Ee.lineStart();for(var Ne=0,et=360/kt,rt=2*M/kt,dt=90-180/kt,gt=T;Ne0&&b(J)>x);return V<0?NaN:Ut}function ze(kt,It,Ut){return It===void 0&&(It=40),Ut===void 0&&(Ut=R),function(J,le,ne,V){var ie,ge,xe;ne=ne===void 0?0:+ne,V=V===void 0?0:+V;for(var Ee=0;Eeie)ne-=ge/=2,V-=xe/=2;else{ie=dt;var gt=(ne>0?-1:1)*Ut,Rt=(V>0?-1:1)*Ut,Mt=kt(ne+gt,V),Xt=kt(ne,V+Rt),dn=(Mt[0]-Ne[0])/gt,bn=(Mt[1]-Ne[1])/gt,vn=(Xt[0]-Ne[0])/Rt,Ln=(Xt[1]-Ne[1])/Rt,gn=Ln*dn-bn*vn,Jn=(b(gn)<.5?.5:1)/gn;if(ne+=ge=(rt*vn-et*Ln)*Jn,V+=xe=(et*bn-rt*dn)*Jn,b(ge)0&&(ne[1]*=1+V/1.5*ne[0]*ne[0]),ne}return It.invert=ze(It),It}function Qe(){return(0,u.c)(De()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ve(kt,It){var Ut,J=kt*O(It),le=30;do It-=Ut=(It+O(It)-J)/(1+w(It));while(b(Ut)>x&&--le>0);return It/2}function $e(kt,It,Ut){function J(le,ne){return[kt*le*w(ne=Ve(Ut,ne)),It*O(ne)]}return J.invert=function(le,ne){return ne=$(ne/It),[le/(kt*w(ne)),$((2*ne+O(2*ne))/Ut)]},J}Te.invert=function(kt,It){var Ut=2*$(It/2);return[kt*w(Ut/2)/w(Ut),Ut]};var Oe=$e(L/T,L,M);function ke(){return(0,u.c)(Oe).scale(169.529)}var Re=2.00276,We=1.11072;function Ue(kt,It){var Ut=Ve(M,It);return[Re*kt/(1/w(It)+We/w(Ut)),(It+L*O(Ut))/Re]}function Ze(){return(0,u.c)(Ue).scale(160.857)}function Ye(kt){var It=0,Ut=(0,u.U)(kt),J=Ut(It);return J.parallel=function(le){return arguments.length?Ut(It=le*z):It*I},J}function Je(kt,It){return[kt*w(It),It]}function Me(){return(0,u.c)(Je).scale(152.63)}function Fe(kt){if(!kt)return Je;var It=1/C(kt);function Ut(J,le){var ne=It+kt-le,V=ne&&J*w(le)/ne;return[ne*O(V),It-ne*w(V)]}return Ut.invert=function(J,le){var ne=j(J*J+(le=It-le)*le),V=It+kt-ne;return[ne/w(V)*S(J,le),V]},Ut}function je(){return Ye(Fe).scale(123.082).center([0,26.1441]).parallel(45)}function tt(kt){function It(Ut,J){var le=T-J,ne=le&&Ut*kt*O(le)/le;return[le*O(ne)/kt,T-le*w(ne)]}return It.invert=function(Ut,J){var le=Ut*kt,ne=T-J,V=j(le*le+ne*ne),ie=S(le,ne);return[(V?V/O(V):1)*ie/kt,T-V]},It}function ot(){var kt=.5,It=(0,u.U)(tt),Ut=It(kt);return Ut.fraction=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(158.837)}Ue.invert=function(kt,It){var Ut,J,le=Re*It,ne=It<0?-P:P,V=25;do J=le-L*O(ne),ne-=Ut=(O(2*ne)+2*ne-M*O(J))/(2*w(2*ne)+2+M*w(J)*L*w(ne));while(b(Ut)>x&&--V>0);return J=le-L*O(ne),[kt*(1/w(J)+We/w(ne))/Re,J]},Je.invert=function(kt,It){return[kt/w(It),It]};var Ge=$e(1,4/M,M);function ht(){return(0,u.c)(Ge).scale(152.63)}var pt=n(24052),St=n(92992);function Ft(kt,It,Ut,J,le,ne){var V,ie=w(ne);if(b(kt)>1||b(ne)>1)V=Q(Ut*le+It*J*ie);else{var ge=O(kt/2),xe=O(ne/2);V=2*$(j(ge*ge+It*J*xe*xe))}return b(V)>x?[V,S(J*O(ne),It*le-Ut*J*ie)]:[0,0]}function zt(kt,It,Ut){return Q((kt*kt+It*It-Ut*Ut)/(2*kt*It))}function Yt(kt){return kt-2*M*m((kt+M)/(2*M))}function ln(kt,It,Ut){for(var J,le=[[kt[0],kt[1],O(kt[1]),w(kt[1])],[It[0],It[1],O(It[1]),w(It[1])],[Ut[0],Ut[1],O(Ut[1]),w(Ut[1])]],ne=le[2],V=0;V<3;++V,ne=J)J=le[V],ne.v=Ft(J[1]-ne[1],ne[3],ne[2],J[3],J[2],J[0]-ne[0]),ne.point=[0,0];var ie=zt(le[0].v[0],le[2].v[0],le[1].v[0]),ge=zt(le[0].v[0],le[1].v[0],le[2].v[0]),xe=M-ie;le[2].point[1]=0,le[0].point[0]=-(le[1].point[0]=le[0].v[0]/2);var Ee=[le[2].point[0]=le[0].point[0]+le[2].v[0]*w(ie),2*(le[0].point[1]=le[1].point[1]=le[2].v[0]*O(ie))];return function(Ne,et){var rt,dt=O(et),gt=w(et),Rt=new Array(3);for(rt=0;rt<3;++rt){var Mt=le[rt];if(Rt[rt]=Ft(et-Mt[1],Mt[3],Mt[2],gt,dt,Ne-Mt[0]),!Rt[rt][0])return Mt.point;Rt[rt][1]=Yt(Rt[rt][1]-Mt.v[1])}var Xt=Ee.slice();for(rt=0;rt<3;++rt){var dn=rt==2?0:rt+1,bn=zt(le[rt].v[0],Rt[rt][0],Rt[dn][0]);Rt[rt][1]<0&&(bn=-bn),rt?rt==1?(bn=ge-bn,Xt[0]-=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn)):(bn=xe-bn,Xt[0]+=Rt[rt][0]*w(bn),Xt[1]+=Rt[rt][0]*O(bn)):(Xt[0]+=Rt[rt][0]*w(bn),Xt[1]-=Rt[rt][0]*O(bn))}return Xt[0]/=3,Xt[1]/=3,Xt}}function tn(kt){return kt[0]*=z,kt[1]*=z,kt}function Et(){return Ot([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ot(kt,It,Ut){var J=(0,pt.c)({type:"MultiPoint",coordinates:[kt,It,Ut]}),le=[-J[0],-J[1]],ne=(0,St.c)(le),V=ln(tn(ne(kt)),tn(ne(It)),tn(ne(Ut)));V.invert=ze(V);var ie=(0,u.c)(V).rotate(le),ge=ie.center;return delete ie.rotate,ie.center=function(xe){return arguments.length?ge(ne(xe)):ne.invert(ge())},ie.clipAngle(90)}function cn(kt,It){var Ut=j(1-O(It));return[2/D*kt*Ut,D*(1-Ut)]}function Cn(){return(0,u.c)(cn).scale(95.6464).center([0,30])}function Pn(kt){var It=C(kt);function Ut(J,le){return[J,(J?J/O(J):1)*(O(le)*w(J)-It*w(le))]}return Ut.invert=It?function(J,le){J&&(le*=O(J)/J);var ne=w(J);return[J,2*S(j(ne*ne+It*It-le*le)-ne,It-le)]}:function(J,le){return[J,$(J?le*C(J)/J:le)]},Ut}function Sn(){return Ye(Pn).scale(249.828).clipAngle(90)}cn.invert=function(kt,It){var Ut=(Ut=It/D-1)*Ut;return[Ut>0?kt*j(M/Ut)/2:0,$(1-Ut)]};var vt=j(3);function xt(kt,It){return[vt*kt*(2*w(2*It/3)-1)/D,vt*D*O(It/3)]}function st(){return(0,u.c)(xt).scale(156.19)}function bt(kt){var It=w(kt);function Ut(J,le){return[J*It,O(le)/It]}return Ut.invert=function(J,le){return[J/It,$(le*It)]},Ut}function Vt(){return Ye(bt).parallel(38.58).scale(195.044)}function Dt(kt){var It=w(kt);function Ut(J,le){return[J*It,(1+It)*C(le/2)]}return Ut.invert=function(J,le){return[J/It,2*i(le/(1+It))]},Ut}function it(){return Ye(Dt).scale(124.75)}function at(kt,It){var Ut=j(8/(3*M));return[Ut*kt*(1-b(It)/M),Ut*It]}function Bt(){return(0,u.c)(at).scale(165.664)}function _t(kt,It){var Ut=j(4-3*O(b(It)));return[2/j(6*M)*kt*Ut,_(It)*j(2*M/3)*(2-Ut)]}function qt(){return(0,u.c)(_t).scale(165.664)}function en(kt,It){var Ut=j(M*(4+M));return[2/Ut*kt*(1+j(1-4*It*It/(M*M))),4/Ut*It]}function Jt(){return(0,u.c)(en).scale(180.739)}function Zt(kt,It){var Ut=(2+T)*O(It);It/=2;for(var J=0,le=1/0;J<10&&b(le)>x;J++){var ne=w(It);It-=le=(It+O(It)*(ne+2)-Ut)/(2*ne*(1+ne))}return[2/j(M*(4+M))*kt*(1+w(It)),2*j(M/(4+M))*O(It)]}function Nt(){return(0,u.c)(Zt).scale(180.739)}function sn(kt,It){return[kt*(1+w(It))/j(2+M),2*It/j(2+M)]}function rn(){return(0,u.c)(sn).scale(173.044)}function _n(kt,It){for(var Ut=(1+T)*O(It),J=0,le=1/0;J<10&&b(le)>x;J++)It-=le=(It+O(It)-Ut)/(1+w(It));return Ut=j(2+M),[kt*(1+w(It))/Ut,2*It/Ut]}function wn(){return(0,u.c)(_n).scale(173.044)}xt.invert=function(kt,It){var Ut=3*$(It/(vt*D));return[D*kt/(vt*(2*w(2*Ut/3)-1)),Ut]},at.invert=function(kt,It){var Ut=j(8/(3*M)),J=It/Ut;return[kt/(Ut*(1-b(J)/M)),J]},_t.invert=function(kt,It){var Ut=2-b(It)/j(2*M/3);return[kt*j(6*M)/(2*Ut),_(It)*$((4-Ut*Ut)/3)]},en.invert=function(kt,It){var Ut=j(M*(4+M))/2;return[kt*Ut/(1+j(1-It*It*(4+M)/(4*M))),It*Ut/2]},Zt.invert=function(kt,It){var Ut=It*j((4+M)/M)/2,J=$(Ut),le=w(J);return[kt/(2/j(M*(4+M))*(1+le)),$((J+Ut*(le+2))/(2+T))]},sn.invert=function(kt,It){var Ut=j(2+M),J=It*Ut/2;return[Ut*kt/(1+w(J)),J]},_n.invert=function(kt,It){var Ut=1+T,J=j(Ut/2);return[2*kt*J/(1+w(It*=J)),$((It+O(It))/Ut)]};var An=3+2*L;function Kn(kt,It){var Ut=O(kt/=2),J=w(kt),le=j(w(It)),ne=w(It/=2),V=O(It)/(ne+L*J*le),ie=j(2/(1+V*V)),ge=j((L*ne+(J+Ut)*le)/(L*ne+(J-Ut)*le));return[An*(ie*(ge-1/ge)-2*a(ge)),An*(ie*V*(ge+1/ge)-2*i(V))]}function fr(){return(0,u.c)(Kn).scale(62.5271)}Kn.invert=function(kt,It){if(!(Ut=ee.invert(kt/1.2,1.065*It)))return null;var Ut,J=Ut[0],le=Ut[1],ne=20;kt/=An,It/=An;do{var V=J/2,ie=le/2,ge=O(V),xe=w(V),Ee=O(ie),Ne=w(ie),et=w(le),rt=j(et),dt=Ee/(Ne+L*xe*rt),gt=dt*dt,Rt=j(2/(1+gt)),Mt=(L*Ne+(xe+ge)*rt)/(L*Ne+(xe-ge)*rt),Xt=j(Mt),dn=Xt-1/Xt,bn=Xt+1/Xt,vn=Rt*dn-2*a(Xt)-kt,Ln=Rt*dt*bn-2*i(dt)-It,gn=Ee&&A*rt*ge*gt/Ee,Jn=(L*xe*Ne+rt)/(2*(Ne+L*xe*rt)*(Ne+L*xe*rt)*rt),pn=-.5*dt*Rt*Rt*Rt,In=pn*gn,Ir=pn*Jn,Pr=(Pr=2*Ne+L*rt*(xe-ge))*Pr*Xt,Gr=(L*xe*Ne*rt+et)/Pr,ro=-L*ge*Ee/(rt*Pr),po=dn*In-2*Gr/Xt+Rt*(Gr+Gr/Mt),Wo=dn*Ir-2*ro/Xt+Rt*(ro+ro/Mt),si=dt*bn*In-2*gn/(1+gt)+Rt*bn*gn+Rt*dt*(Gr-Gr/Mt),Bo=dt*bn*Ir-2*Jn/(1+gt)+Rt*bn*Jn+Rt*dt*(ro-ro/Mt),Go=Wo*si-Bo*po;if(!Go)break;var Yo=(Ln*Wo-vn*Bo)/Go,Wi=(vn*si-Ln*po)/Go;J-=Yo,le=c(-T,h(T,le-Wi))}while((b(Yo)>x||b(Wi)>x)&&--ne>0);return b(b(le)-T)J){var Ne=j(Ee),et=S(xe,ge),rt=Ut*v(et/Ut),dt=et-rt,gt=kt*w(dt),Rt=(kt*O(dt)-dt*O(gt))/(T-gt),Mt=Jr(dt,Rt),Xt=(M-kt)/Yr(Mt,gt,M);ge=Ne;var dn,bn=50;do ge-=dn=(kt+Yr(Mt,gt,ge)*Xt-Ne)/(Mt(ge)*Xt);while(b(dn)>x&&--bn>0);xe=dt*O(ge),geJ){var ge=j(ie),xe=S(V,ne),Ee=Ut*v(xe/Ut),Ne=xe-Ee;ne=ge*w(Ne),V=ge*O(Ne);for(var et=ne-T,rt=O(ne),dt=V/rt,gt=nex||b(et)>x)&&--gt>0);return[rt,dt]},ge}var Fo=co(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function _o(){return(0,u.c)(Fo).scale(149.995)}var $o=co(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Mo(){return(0,u.c)($o).scale(153.93)}var pi=co(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Hn(){return(0,u.c)(pi).scale(130.945)}function ar(kt,It){var Ut=kt*kt,J=It*It;return[kt*(1-.162388*J)*(.87-952426e-9*Ut*Ut),It*(1+J/12)]}function Dr(){return(0,u.c)(ar).scale(131.747)}ar.invert=function(kt,It){var Ut,J=kt,le=It,ne=50;do{var V=le*le;le-=Ut=(le*(1+V/12)-It)/(1+V/4)}while(b(Ut)>x&&--ne>0);ne=50,kt/=1-.162388*V;do{var ie=(ie=J*J)*ie;J-=Ut=(J*(.87-952426e-9*ie)-kt)/(.87-.00476213*ie)}while(b(Ut)>x&&--ne>0);return[J,le]};var Sr=co(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Zr(){return(0,u.c)(Sr).scale(131.087)}function go(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=J>0?-.5:.5,V=kt(J+ne*M,le);return V[0]-=ne*It,V}return kt.invert&&(Ut.invert=function(J,le){var ne=J>0?-.5:.5,V=kt.invert(J+ne*It,le),ie=V[0]-ne*M;return ie<-M?ie+=2*M:ie>M&&(ie-=2*M),V[0]=ie,V}),Ut}function oo(kt,It){var Ut=_(kt),J=_(It),le=w(It),ne=w(kt)*le,V=O(kt)*le,ie=O(J*It);kt=b(S(V,ie)),It=$(ne),b(kt-T)>x&&(kt%=T);var ge=function(xe,Ee){if(Ee===T)return[0,0];var Ne,et,rt=O(Ee),dt=rt*rt,gt=dt*dt,Rt=1+gt,Mt=1+3*gt,Xt=1-gt,dn=$(1/j(Rt)),bn=Xt+dt*Rt*dn,vn=(1-rt)/bn,Ln=j(vn),gn=vn*Rt,Jn=j(gn),pn=Ln*Xt;if(xe===0)return[0,-(pn+dt*Jn)];var In,Ir=w(Ee),Pr=1/Ir,Gr=2*rt*Ir,ro=(-bn*Ir-(1-rt)*((-3*dt+dn*Mt)*Gr))/(bn*bn),po=-Pr*Gr,Wo=-Pr*(dt*Rt*ro+vn*Mt*Gr),si=-2*Pr*(Xt*(.5*ro/Ln)-2*dt*Ln*Gr),Bo=4*xe/M;if(xe>.222*M||Ee.175*M){if(Ne=(pn+dt*j(gn*(1+gt)-pn*pn))/(1+gt),xe>M/4)return[Ne,Ne];var Go=Ne,Yo=.5*Ne;Ne=.5*(Yo+Go),et=50;do{var Wi=Ne*(si+po*j(gn-Ne*Ne))+Wo*$(Ne/Jn)-Bo;if(!Wi)break;Wi<0?Yo=Ne:Go=Ne,Ne=.5*(Yo+Go)}while(b(Go-Yo)>x&&--et>0)}else{Ne=x,et=25;do{var Ho=Ne*Ne,jo=j(gn-Ho),Yi=si+po*jo,ai=Ne*Yi+Wo*$(Ne/Jn)-Bo;Ne-=In=jo?ai/(Yi+(Wo-po*Ho)/jo):0}while(b(In)>x&&--et>0)}return[Ne,-pn-dt*j(gn-Ne*Ne)]}(kt>M/4?T-kt:kt,It);return kt>M/4&&(ie=ge[0],ge[0]=-ge[1],ge[1]=-ie),ge[0]*=Ut,ge[1]*=-J,ge}function io(){return(0,u.c)(go(oo)).scale(239.75)}function Do(kt,It){var Ut,J,le,ne,V,ie;if(It=1-x)return Ut=(1-It)/4,le=1/(J=X(kt)),[(ne=((ie=y(2*(ie=kt)))-1)/(ie+1))+Ut*((V=J*U(kt))-kt)/(J*J),le-Ut*ne*le*(V-kt),le+Ut*ne*le*(V+kt),2*i(y(kt))-T+Ut*(V-kt)/J];var ge=[1,0,0,0,0,0,0,0,0],xe=[j(It),0,0,0,0,0,0,0,0],Ee=0;for(J=j(1-It),V=1;b(xe[Ee]/ge[Ee])>x&&Ee<8;)Ut=ge[Ee++],xe[Ee]=(Ut-J)/2,ge[Ee]=(Ut+J)/2,J=j(Ut*J),V*=2;le=V*ge[Ee]*kt;do le=($(ne=xe[Ee]*O(J=le)/ge[Ee])+le)/2;while(--Ee);return[O(le),ne=w(le),ne/w(le-J),le]}function jn(kt,It){if(!It)return kt;if(It===1)return a(C(kt/2+P));for(var Ut=1,J=j(1-It),le=j(It),ne=0;b(le)>x;ne++){if(kt%M){var V=i(J*C(kt)/Ut);V<0&&(V+=M),kt+=V+~~(kt/M)*M}else kt+=kt;le=(Ut+J)/2,J=j(Ut*J),le=((Ut=le)-J)/2}return kt/(p(2,ne)*Ut)}function Rr(kt,It){var Ut=(L-1)/(L+1),J=j(1-Ut*Ut),le=jn(T,J*J),ne=a(C(M/4+b(It)/2)),V=y(-1*ne)/j(Ut),ie=function(xe,Ee){var Ne=xe*xe,et=Ee+1,rt=1-Ne-Ee*Ee;return[.5*((xe>=0?T:-T)-S(rt,2*xe)),-.25*a(rt*rt+4*Ne)+.5*a(et*et+Ne)]}(V*w(-1*kt),V*O(-1*kt)),ge=function(xe,Ee,Ne){var et=b(xe),rt=U(b(Ee));if(et){var dt=1/O(et),gt=1/(C(et)*C(et)),Rt=-(gt+Ne*(rt*rt*dt*dt)-1+Ne),Mt=(-Rt+j(Rt*Rt-(Ne-1)*gt*4))/2;return[jn(i(1/j(Mt)),Ne)*_(xe),jn(i(j((Mt/gt-1)/Ne)),1-Ne)*_(Ee)]}return[0,jn(i(rt),1-Ne)*_(Ee)]}(ie[0],ie[1],J*J);return[-ge[1],(It>=0?1:-1)*(.5*le-ge[0])]}function On(){return(0,u.c)(go(Rr)).scale(151.496)}oo.invert=function(kt,It){b(kt)>1&&(kt=2*_(kt)-kt),b(It)>1&&(It=2*_(It)-It);var Ut=_(kt),J=_(It),le=-Ut*kt,ne=-J*It,V=ne/le<1,ie=function(Ne,et){for(var rt=0,dt=1,gt=.5,Rt=50;;){var Mt=gt*gt,Xt=j(gt),dn=$(1/j(1+Mt)),bn=1-Mt+gt*(1+Mt)*dn,vn=(1-Xt)/bn,Ln=j(vn),gn=vn*(1+Mt),Jn=Ln*(1-Mt),pn=j(gn-Ne*Ne),In=et+Jn+gt*pn;if(b(dt-rt)0?rt=gt:dt=gt,gt=.5*(rt+dt)}if(!Rt)return null;var Ir=$(Xt),Pr=w(Ir),Gr=1/Pr,ro=2*Xt*Pr,po=(-bn*Pr-(-3*gt+dn*(1+3*Mt))*ro*(1-Xt))/(bn*bn);return[M/4*(Ne*(-2*Gr*((1-Mt)*(.5*po/Ln)-2*gt*Ln*ro)+-Gr*ro*pn)+-Gr*(gt*(1+Mt)*po+vn*(1+3*Mt)*ro)*$(Ne/j(gn))),Ir]}(V?ne:le,V?le:ne),ge=ie[0],xe=ie[1],Ee=w(xe);return V&&(ge=-T-ge),[Ut*(S(O(ge)*Ee,-O(xe))+M),J*$(w(ge)*Ee)]},Rr.invert=function(kt,It){var Ut,J,le,ne,V,ie,ge=(L-1)/(L+1),xe=j(1-ge*ge),Ee=(J=-kt,le=xe*xe,(Ut=.5*jn(T,xe*xe)-It)?(ne=Do(Ut,le),J?(ie=(V=Do(J,1-le))[1]*V[1]+le*ne[0]*ne[0]*V[0]*V[0],[[ne[0]*V[2]/ie,ne[1]*ne[2]*V[0]*V[1]/ie],[ne[1]*V[1]/ie,-ne[0]*ne[2]*V[0]*V[2]/ie],[ne[2]*V[1]*V[2]/ie,-le*ne[0]*ne[1]*V[0]/ie]]):[[ne[0],0],[ne[1],0],[ne[2],0]]):[[0,(V=Do(J,1-le))[0]/V[1]],[1/V[1],0],[V[2]/V[1],0]]),Ne=function(et,rt){var dt=rt[0]*rt[0]+rt[1]*rt[1];return[(et[0]*rt[0]+et[1]*rt[1])/dt,(et[1]*rt[0]-et[0]*rt[1])/dt]}(Ee[0],Ee[1]);return[S(Ne[1],Ne[0])/-1,2*i(y(-.5*a(ge*Ne[0]*Ne[0]+ge*Ne[1]*Ne[1])))-T]};var Yn=n(61780);function ir(kt){var It=O(kt),Ut=w(kt),J=kr(kt);function le(ne,V){var ie=J(ne,V);ne=ie[0],V=ie[1];var ge=O(V),xe=w(V),Ee=w(ne),Ne=Q(It*ge+Ut*xe*Ee),et=O(Ne),rt=b(et)>x?Ne/et:1;return[rt*Ut*O(ne),(b(ne)>T?rt:-rt)*(It*xe-Ut*ge*Ee)]}return J.invert=kr(-kt),le.invert=function(ne,V){var ie=j(ne*ne+V*V),ge=-O(ie),xe=w(ie),Ee=ie*xe,Ne=-V*ge,et=ie*It,rt=j(Ee*Ee+Ne*Ne-et*et),dt=S(Ee*et+Ne*rt,Ne*et-Ee*rt),gt=(ie>T?-1:1)*S(ne*ge,ie*w(dt)*xe+V*O(dt)*ge);return J.invert(gt,dt)},le}function kr(kt){var It=O(kt),Ut=w(kt);return function(J,le){var ne=w(le),V=w(J)*ne,ie=O(J)*ne,ge=O(le);return[S(ie,V*Ut-ge*It),$(ge*Ut+V*It)]}}function Er(){var kt=0,It=(0,u.U)(ir),Ut=It(kt),J=Ut.rotate,le=Ut.stream,ne=(0,Yn.c)();return Ut.parallel=function(V){if(!arguments.length)return kt*I;var ie=Ut.rotate();return It(kt=V*z).rotate(ie)},Ut.rotate=function(V){return arguments.length?(J.call(Ut,[V[0],V[1]-kt*I]),ne.center([-V[0],-V[1]]),Ut):((V=J.call(Ut))[1]+=kt*I,V)},Ut.stream=function(V){return(V=le(V)).sphere=function(){V.polygonStart();var ie,ge=ne.radius(89.99)().coordinates[0],xe=ge.length-1,Ee=-1;for(V.lineStart();++Ee=0;)V.point((ie=ge[Ee])[0],ie[1]);V.lineEnd(),V.polygonEnd()},V},Ut.scale(79.4187).parallel(45).clipAngle(179.999)}var Gt=n(84706),on=n(16016),an=$(1-1/3)*I,Tn=bt(0);function zn(kt){var It=an*z,Ut=cn(M,It)[0]-cn(-M,It)[0],J=Tn(0,It)[1],le=cn(0,It)[1],ne=D-le,V=k/kt,ie=4/k,ge=J+ne*ne*4/k;function xe(Ee,Ne){var et,rt=b(Ne);if(rt>It){var dt=h(kt-1,c(0,m((Ee+M)/V)));(et=cn(Ee+=M*(kt-1)/kt-dt*V,rt))[0]=et[0]*k/Ut-k*(kt-1)/(2*kt)+dt*k/kt,et[1]=J+4*(et[1]-le)*ne/k,Ne<0&&(et[1]=-et[1])}else et=Tn(Ee,Ne);return et[0]*=ie,et[1]/=ge,et}return xe.invert=function(Ee,Ne){Ee/=ie;var et=b(Ne*=ge);if(et>J){var rt=h(kt-1,c(0,m((Ee+M)/V)));Ee=(Ee+M*(kt-1)/kt-rt*V)*Ut/k;var dt=cn.invert(Ee,.25*(et-J)*k/ne+le);return dt[0]-=M*(kt-1)/kt-rt*V,Ne<0&&(dt[1]=-dt[1]),dt}return Tn.invert(Ee,Ne)},xe}function Gn(kt,It){return[kt,1&It?90-x:an]}function Lr(kt,It){return[kt,1&It?-90+x:-an]}function Ur(kt){return[kt[0]*(1-x),kt[1]]}function qr(){var kt=4,It=(0,u.U)(zn),Ut=It(kt),J=Ut.stream;return Ut.lobes=function(le){return arguments.length?It(kt=+le):kt},Ut.stream=function(le){var ne=Ut.rotate(),V=J(le),ie=(Ut.rotate([0,0]),J(le));return Ut.rotate(ne),V.sphere=function(){var ge,xe;(0,on.c)((ge=180/kt,xe=[].concat((0,Gt.ik)(-180,180+ge/2,ge).map(Gn),(0,Gt.ik)(180,-180-ge/2,-ge).map(Lr)),{type:"Polygon",coordinates:[ge===180?xe.map(Ur):xe]}),ie)},V},Ut.scale(239.75)}function Cr(kt){var It,Ut=1+kt,J=$(O(1/Ut)),le=2*j(M/(It=M+4*J*Ut)),ne=.5*le*(Ut+j(kt*(2+kt))),V=kt*kt,ie=Ut*Ut;function ge(xe,Ee){var Ne,et,rt=1-O(Ee);if(rt&&rt<2){var dt,gt=T-Ee,Rt=25;do{var Mt=O(gt),Xt=w(gt),dn=J+S(Mt,Ut-Xt),bn=1+ie-2*Ut*Xt;gt-=dt=(gt-V*J-Ut*Mt+bn*dn-.5*rt*It)/(2*Ut*Mt*dn)}while(b(dt)>R&&--Rt>0);Ne=le*j(bn),et=xe*dn/M}else Ne=le*(kt+rt),et=xe*J/M;return[Ne*O(et),ne-Ne*w(et)]}return ge.invert=function(xe,Ee){var Ne=xe*xe+(Ee-=ne)*Ee,et=(1+ie-Ne/(le*le))/(2*Ut),rt=Q(et),dt=O(rt),gt=J+S(dt,Ut-et);return[$(xe/j(Ne))*M/gt,$(1-2*(rt-V*J-Ut*dt+(1+ie-2*Ut*et)*gt)/It)]},ge}function wo(){var kt=1,It=(0,u.U)(Cr),Ut=It(kt);return Ut.ratio=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(167.774).center([0,18.67])}var Nr=.7109889596207567,Eo=.0528035274542;function zo(kt,It){return It>-Nr?((kt=Oe(kt,It))[1]+=Eo,kt):Je(kt,It)}function Qt(){return(0,u.c)(zo).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Mn(kt,It){return b(It)>Nr?((kt=Oe(kt,It))[1]-=It>0?Eo:-Eo,kt):Je(kt,It)}function Fn(){return(0,u.c)(Mn).scale(152.63)}function dr(kt,It,Ut,J){var le=j(4*M/(2*Ut+(1+kt-It/2)*O(2*Ut)+(kt+It)/2*O(4*Ut)+It/2*O(6*Ut))),ne=j(J*O(Ut)*j((1+kt*w(2*Ut)+It*w(4*Ut))/(1+kt+It))),V=Ut*ge(1);function ie(Ne){return j(1+kt*w(2*Ne)+It*w(4*Ne))}function ge(Ne){var et=Ne*Ut;return(2*et+(1+kt-It/2)*O(2*et)+(kt+It)/2*O(4*et)+It/2*O(6*et))/Ut}function xe(Ne){return ie(Ne)*O(Ne)}var Ee=function(Ne,et){var rt=Ut*Ie(ge,V*O(et)/Ut,et/M);isNaN(rt)&&(rt=Ut*_(et));var dt=le*ie(rt);return[dt*ne*Ne/M*w(rt),dt/ne*O(rt)]};return Ee.invert=function(Ne,et){var rt=Ie(xe,et*ne/le);return[Ne*M/(w(rt)*le*ne*ie(rt)),$(Ut*ge(rt/Ut)/V)]},Ut===0&&(le=j(J/M),(Ee=function(Ne,et){return[Ne*le,O(et)/le]}).invert=function(Ne,et){return[Ne/le,$(et*le)]}),Ee}function xr(){var kt=1,It=0,Ut=45*z,J=2,le=(0,u.U)(dr),ne=le(kt,It,Ut,J);return ne.a=function(V){return arguments.length?le(kt=+V,It,Ut,J):kt},ne.b=function(V){return arguments.length?le(kt,It=+V,Ut,J):It},ne.psiMax=function(V){return arguments.length?le(kt,It,Ut=+V*z,J):Ut*I},ne.ratio=function(V){return arguments.length?le(kt,It,Ut,J=+V):J},ne.scale(180.739)}function Oo(kt,It,Ut,J,le,ne,V,ie,ge,xe,Ee){if(Ee.nanEncountered)return NaN;var Ne,et,rt,dt,gt,Rt,Mt,Xt,dn,bn;if(et=kt(It+.25*(Ne=Ut-It)),rt=kt(Ut-.25*Ne),isNaN(et))Ee.nanEncountered=!0;else{if(!isNaN(rt))return bn=((Rt=(dt=Ne*(J+4*et+le)/12)+(gt=Ne*(le+4*rt+ne)/12))-V)/15,xe>ge?(Ee.maxDepthCount++,Rt+bn):Math.abs(bn)rt?gt=Rt:dt=Rt,Rt=dt+gt>>1;while(Rt>dt);var Mt=ge[Rt+1]-ge[Rt];return Mt&&(Mt=(rt-ge[Rt+1])/Mt),(Rt+1+Mt)/V}var Ne=2*Ee(1)/M*ne/Ut,et=function(rt,dt){var gt=Ee(b(O(dt))),Rt=J(gt)*rt;return gt/=Ne,[Rt,dt>=0?gt:-gt]};return et.invert=function(rt,dt){var gt;return b(dt*=Ne)<1&&(gt=_(dt)*$(le(b(dt))*ne)),[rt/J(b(dt)),gt]},et}function To(){var kt=0,It=2.5,Ut=1.183136,J=(0,u.U)(Di),le=J(kt,It,Ut);return le.alpha=function(ne){return arguments.length?J(kt=+ne,It,Ut):kt},le.k=function(ne){return arguments.length?J(kt,It=+ne,Ut):It},le.gamma=function(ne){return arguments.length?J(kt,It,Ut=+ne):Ut},le.scale(152.63)}function Ia(kt,It){return b(kt[0]-It[0])Ne[et][2][0];++et);var dt=kt(ge-Ne[et][1][0],xe);return dt[0]+=kt(Ne[et][1][0],Ee*xe>Ee*Ne[et][0][1]?Ne[et][0][1]:xe)[0],dt}Ut?ne.invert=Ut(ne):kt.invert&&(ne.invert=function(ge,xe){for(var Ee=le[+(xe<0)],Ne=It[+(xe<0)],et=0,rt=Ee.length;et=0;--Rt)Ne=(Ee=xe[1][Rt])[0][0],et=Ee[0][1],rt=Ee[1][1],dt=Ee[2][0],gt=Ee[2][1],Mt.push(Ds([[dt-x,gt-x],[dt-x,rt+x],[Ne+x,rt+x],[Ne+x,et-x]],30));return{type:"Polygon",coordinates:[(0,Gt.Uf)(Mt)]}}(ge),It=ge.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*z,Ee[0][1]*z],[Ee[1][0]*z,Ee[1][1]*z],[Ee[2][0]*z,Ee[2][1]*z]]})}),le=It.map(function(xe){return xe.map(function(Ee){var Ne,et=kt(Ee[0][0],Ee[0][1])[0],rt=kt(Ee[2][0],Ee[2][1])[0],dt=kt(Ee[1][0],Ee[0][1])[1],gt=kt(Ee[1][0],Ee[1][1])[1];return dt>gt&&(Ne=dt,dt=gt,gt=Ne),[[et,dt],[rt,gt]]})}),V):It.map(function(xe){return xe.map(function(Ee){return[[Ee[0][0]*I,Ee[0][1]*I],[Ee[1][0]*I,Ee[1][1]*I],[Ee[2][0]*I,Ee[2][1]*I]]})})},It!=null&&V.lobes(It),V}zo.invert=function(kt,It){return It>-Nr?Oe.invert(kt,It-Eo):Je.invert(kt,It)},Mn.invert=function(kt,It){return b(It)>Nr?Oe.invert(kt,It+(It>0?Eo:-Eo)):Je.invert(kt,It)};var zi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yl(){return fs(Ue,zi).scale(160.857)}var Bs=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function yf(){return fs(Mn,Bs).scale(152.63)}var il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function nf(){return fs(Oe,il).scale(169.529)}var nh=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gp(){return fs(Oe,nh).scale(169.529).rotate([20,0])}var Qs=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function xh(){return fs(zo,Qs,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Bl=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Tc(){return fs(Je,Bl).scale(152.63).rotate([-20,0])}function iu(kt,It){return[3/k*kt*j(M*M/3-It*It),It]}function au(){return(0,u.c)(iu).scale(158.837)}function zf(kt){function It(Ut,J){if(b(b(J)-T)2)return null;var ne=(Ut/=2)*Ut,V=(J/=2)*J,ie=2*J/(1+ne+V);return ie=p((1+ie)/(1-ie),1/kt),[S(2*Ut,1-ne-V)/kt,$((ie-1)/(ie+1))]},It}function _s(){var kt=.5,It=(0,u.U)(zf),Ut=It(kt);return Ut.spacing=function(J){return arguments.length?It(kt=+J):kt},Ut.scale(124.75)}iu.invert=function(kt,It){return[k/3*kt/j(M*M/3-It*It),It]};var ma=M/L;function mu(kt,It){return[kt*(1+j(w(It)))/2,It/(w(It/2)*w(kt/6))]}function Uc(){return(0,u.c)(mu).scale(97.2672)}function Kf(kt,It){var Ut=kt*kt,J=It*It;return[kt*(.975534+J*(-.0143059*Ut-.119161+-.0547009*J)),It*(1.00384+Ut*(.0802894+-.02855*J+199025e-9*Ut)+J*(.0998909+-.0491032*J))]}function Al(){return(0,u.c)(Kf).scale(139.98)}function Wl(kt,It){return[O(kt)/w(It),C(It)*w(kt)]}function Ml(){return(0,u.c)(Wl).scale(144.049).clipAngle(89.999)}function Jf(kt){var It=w(kt),Ut=C(P+kt/2);function J(le,ne){var V=ne-kt,ie=b(V)=0;)et=(Ne=kt[Ee])[0]+ge*(ne=et)-xe*rt,rt=Ne[1]+ge*rt+xe*ne;return[et=ge*(ne=et)-xe*rt,rt=ge*rt+xe*ne]}return Ut.invert=function(J,le){var ne=20,V=J,ie=le;do{for(var ge,xe=It,Ee=kt[xe],Ne=Ee[0],et=Ee[1],rt=0,dt=0;--xe>=0;)rt=Ne+V*(ge=rt)-ie*dt,dt=et+V*dt+ie*ge,Ne=(Ee=kt[xe])[0]+V*(ge=Ne)-ie*et,et=Ee[1]+V*et+ie*ge;var gt,Rt,Mt=(rt=Ne+V*(ge=rt)-ie*dt)*rt+(dt=et+V*dt+ie*ge)*dt;V-=gt=((Ne=V*(ge=Ne)-ie*et-J)*rt+(et=V*et+ie*ge-le)*dt)/Mt,ie-=Rt=(et*rt-Ne*dt)/Mt}while(b(gt)+b(Rt)>x*x&&--ne>0);if(ne){var Xt=j(V*V+ie*ie),dn=2*i(.5*Xt),bn=O(dn);return[S(V*bn,Xt*w(dn)),Xt?$(ie*bn/Xt):0]}},Ut}mu.invert=function(kt,It){var Ut=b(kt),J=b(It),le=x,ne=T;Jx||b(Rt)>x)&&--le>0);return le&&[Ut,J]},Wl.invert=function(kt,It){var Ut=kt*kt,J=It*It+1,le=Ut+J,ne=kt?A*j((le-j(le*le-4*Ut))/Ut):1/j(J);return[$(kt*ne),_(It)*Q(ne)]},Jl.invert=function(kt,It){return[kt,2.5*i(y(.8*It))-.625*M]};var Tu=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],gu=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ec=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Dc=[[.9245,0],[0,0],[.01943,0]],tc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Lp(){return vu(Tu,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function rh(){return vu(gu,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function rf(){return vu(ec,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function of(){return vu(Dc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function bf(){return vu(tc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function vu(kt,It){var Ut=(0,u.c)(ll(kt)).rotate(It).clipAngle(90),J=(0,St.c)(It),le=Ut.center;return delete Ut.rotate,Ut.center=function(ne){return arguments.length?le(J(ne)):J.invert(le())},Ut}var $d=j(6),bl=j(7);function Zu(kt,It){var Ut=$(7*O(It)/(3*$d));return[$d*kt*(2*w(2*Ut/3)-1)/bl,9*O(Ut/3)/bl]}function Kh(){return(0,u.c)(Zu).scale(164.859)}function Cu(kt,It){for(var Ut,J=(1+A)*O(It),le=It,ne=0;ne<25&&(le-=Ut=(O(le/2)+O(le)-J)/(.5*w(le/2)+w(le)),!(b(Ut)R&&--ie>0);return[kt/(.84719-.13063*(J=V*V)+(ne=J*(le=J*J))*ne*(.05494*J-.04515-.02326*le+.00331*ne)),V]},_h.invert=function(kt,It){for(var Ut=It/2,J=0,le=1/0;J<10&&b(le)>x;++J){var ne=w(It/2);It-=le=(It-C(It/2)-Ut)/(1-.5/(ne*ne))}return[2*kt/(1+w(It)),It]};var ep=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function _r(){return fs(we(1/0),ep).rotate([20,0]).scale(152.63)}function Ff(kt,It){var Ut=O(It),J=w(It),le=_(kt);if(kt===0||b(It)===T)return[0,It];if(It===0)return[kt,0];if(b(kt)===T)return[kt*J,T*Ut];var ne=M/(2*kt)-2*kt/M,V=2*It/M,ie=(1-V*V)/(Ut-V),ge=ne*ne,xe=ie*ie,Ee=1+ge/xe,Ne=1+xe/ge,et=(ne*Ut/ie-ne/2)/Ee,rt=(xe*Ut/ge+ie/2)/Ne,dt=rt*rt-(xe*Ut*Ut/ge+ie*Ut-1)/Ne;return[T*(et+j(et*et+J*J/Ee)*le),T*(rt+j(dt<0?0:dt)*_(-It*ne)*le)]}function yd(){return(0,u.c)(Ff).scale(127.267)}Ff.invert=function(kt,It){var Ut=(kt/=T)*kt,J=Ut+(It/=T)*It,le=M*M;return[kt?(J-1+j((1-J)*(1-J)+4*Ut))/(2*kt)*T:0,Ie(function(ne){return J*(M*O(ne)-2*ne)*M+4*ne*ne*(It-O(ne))+2*M*ne-le*It},0)]};var bd=1.0148,wh=.23185,zu=-.14499,va=.02406,El=bd,_f=5*wh,$f=7*zu,ih=9*va,yu=1.790857183;function jc(kt,It){var Ut=It*It;return[kt,It*(bd+Ut*Ut*(wh+Ut*(zu+va*Ut)))]}function Nh(){return(0,u.c)(jc).scale(139.319)}function af(kt,It){if(b(It)yu?It=yu:It<-1.790857183&&(It=-1.790857183);var Ut,J=It;do{var le=J*J;J-=Ut=(J*(bd+le*le*(wh+le*(zu+va*le)))-It)/(El+le*le*(_f+le*($f+ih*le)))}while(b(Ut)>x);return[kt,J]},af.invert=function(kt,It){if(b(It)x&&--ne>0);return V=C(le),[(b(It)=0;)if(Jn=Ln[Pr],gn[0]===Jn[0]&&gn[1]===Jn[1]){if(In)return[In,gn];In=gn}}}(ge.face,xe.face),Ne=(gt=Ee.map(xe.project),Rt=Ee.map(ge.project),Mt=xd(gt[1],gt[0]),Xt=xd(Rt[1],Rt[0]),dn=function(vn,Ln){return S(vn[0]*Ln[1]-vn[1]*Ln[0],vn[0]*Ln[0]+vn[1]*Ln[1])}(Mt,Xt),bn=vc(Mt)/vc(Xt),Vd([1,0,gt[0][0],0,1,gt[0][1]],Vd([bn,0,0,0,bn,0],Vd([w(dn),O(dn),0,-O(dn),w(dn),0],[1,0,-Rt[0][0],0,1,-Rt[0][1]]))));ge.transform=xe.transform?Vd(xe.transform,Ne):Ne;for(var et=xe.edges,rt=0,dt=et.length;rt0?[-J[0],0]:[180-J[0],180])};var It=Ac.map(function(Ut){return{face:Ut,project:kt(Ut)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ut,J){var le=It[Ut];le&&(le.children||(le.children=[])).push(It[J])}),gs(It[0],function(Ut,J){return It[Ut<-M/2?J<0?6:4:Ut<0?J<0?2:0:Utge^Xt>ge&&ie<(Mt-dt)*(ge-gt)/(Xt-gt)+dt&&(xe=!xe)}return xe}(le[0],J))return le.push(Ut),!0})||kt.push([Ut])}),wi=[],kt.length?kt.length>1?{type:"MultiPolygon",coordinates:kt}:{type:"Polygon",coordinates:kt[0]}:null}};function ds(kt){var It=kt(T,0)[0]-kt(-T,0)[0];function Ut(J,le){var ne=b(J)0?J-M:J+M,le),ie=(V[0]-V[1])*A,ge=(V[0]+V[1])*A;if(ne)return[ie,ge];var xe=It*A,Ee=ie>0^ge>0?-1:1;return[Ee*ie-_(ge)*xe,Ee*ge-_(ie)*xe]}return kt.invert&&(Ut.invert=function(J,le){var ne=(J+le)*A,V=(le-J)*A,ie=b(ne)<.5*It&&b(V)<.5*It;if(!ie){var ge=It*A,xe=ne>0^V>0?-1:1,Ee=-xe*J+(V>0?1:-1)*ge,Ne=-xe*le+(ne>0?1:-1)*ge;ne=(-Ee-Ne)*A,V=(Ee-Ne)*A}var et=kt.invert(ne,V);return ie||(et[0]+=ne>0?M:-M),et}),(0,u.c)(Ut).rotate([-90,-90,45]).clipAngle(179.999)}function zc(){return ds(oo).scale(176.423)}function Ud(){return ds(Rr).scale(111.48)}function cf(kt,It){if(!(0<=(It=+It)&&It<=20))throw new Error("invalid digits");function Ut(xe){var Ee=xe.length,Ne=2,et=new Array(Ee);for(et[0]=+xe[0].toFixed(It),et[1]=+xe[1].toFixed(It);Ne2||rt[0]!=Ee[0]||rt[1]!=Ee[1])&&(Ne.push(rt),Ee=rt)}return Ne.length===1&&xe.length>1&&Ne.push(Ut(xe[xe.length-1])),Ne}function ne(xe){return xe.map(le)}function V(xe){if(xe==null)return xe;var Ee;switch(xe.type){case"GeometryCollection":Ee={type:"GeometryCollection",geometries:xe.geometries.map(V)};break;case"Point":Ee={type:"Point",coordinates:Ut(xe.coordinates)};break;case"MultiPoint":Ee={type:xe.type,coordinates:J(xe.coordinates)};break;case"LineString":Ee={type:xe.type,coordinates:le(xe.coordinates)};break;case"MultiLineString":case"Polygon":Ee={type:xe.type,coordinates:ne(xe.coordinates)};break;case"MultiPolygon":Ee={type:"MultiPolygon",coordinates:xe.coordinates.map(ne)};break;default:return xe}return xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}function ie(xe){var Ee={type:"Feature",properties:xe.properties,geometry:V(xe.geometry)};return xe.id!=null&&(Ee.id=xe.id),xe.bbox!=null&&(Ee.bbox=xe.bbox),Ee}if(kt!=null)switch(kt.type){case"Feature":return ie(kt);case"FeatureCollection":var ge={type:"FeatureCollection",features:kt.features.map(ie)};return kt.bbox!=null&&(ge.bbox=kt.bbox),ge;default:return V(kt)}return kt}function Of(kt){var It=O(kt);function Ut(J,le){var ne=It?C(J*It/2)/It:J/2;if(!le)return[2*ne,-kt];var V=2*i(ne*O(le)),ie=1/C(le);return[O(V)*ie,le+(1-w(V))*ie-kt]}return Ut.invert=function(J,le){if(b(le+=kt)x&&--ge>0);var et=J*(xe=C(ie)),rt=C(b(le)0?T:-T)*(xe+ne*(Ne-ie)/2+ne*ne*(Ne-2*xe+ie)/2)]}function Ri(){return(0,u.c)(Mu).scale(152.63)}function Gc(kt,It){var Ut=function(V){function ie(ge,xe){var Ee=w(xe),Ne=(V-1)/(V-Ee*w(ge));return[Ne*Ee*O(ge),Ne*O(xe)]}return ie.invert=function(ge,xe){var Ee=ge*ge+xe*xe,Ne=j(Ee),et=(V-j(1-Ee*(V+1)/(V-1)))/((V-1)/Ne+Ne/(V-1));return[S(ge*et,Ne*j(1-et*et)),Ne?$(xe*et/Ne):0]},ie}(kt);if(!It)return Ut;var J=w(It),le=O(It);function ne(V,ie){var ge=Ut(V,ie),xe=ge[1],Ee=xe*le/(kt-1)+J;return[ge[0]*J/Ee,xe/Ee]}return ne.invert=function(V,ie){var ge=(kt-1)/(kt-1-ie*le);return Ut.invert(ge*V,ge*ie*J)},ne}function qu(){var kt=2,It=0,Ut=(0,u.U)(Gc),J=Ut(kt,It);return J.distance=function(le){return arguments.length?Ut(kt=+le,It):kt},J.tilt=function(le){return arguments.length?Ut(kt,It=le*z):It*I},J.scale(432.147).clipAngle(Q(1/kt)*I-1e-6)}rs.forEach(function(kt){kt[1]*=1.0144}),Mu.invert=function(kt,It){var Ut=It/T,J=90*Ut,le=h(18,b(J/5)),ne=c(0,m(le));do{var V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],xe=ge-V,Ee=ge-2*ie+V,Ne=2*(b(Ut)-ie)/xe,et=Ee/xe,rt=Ne*(1-et*Ne*(1-2*et*Ne));if(rt>=0||ne===1){J=(It>=0?5:-5)*(rt+le);var dt,gt=50;do rt=(le=h(18,b(J)/5))-(ne=m(le)),V=rs[ne][1],ie=rs[ne+1][1],ge=rs[h(19,ne+2)][1],J-=(dt=(It>=0?T:-T)*(ie+rt*(ge-V)/2+rt*rt*(ge-2*ie+V)/2)-It)*I;while(b(dt)>R&&--gt>0);break}}while(--ne>=0);var Rt=rs[ne][0],Mt=rs[ne+1][0],Xt=rs[h(19,ne+2)][0];return[kt/(Mt+rt*(Xt-Rt)/2+rt*rt*(Xt-2*Mt+Rt)/2),J*z]};var zl=1e-4,xc=1e4,Kc=-180,jd=Kc+zl,ii=180,nd=ii-zl,al=-90,Yl=al+zl,uf=90,hs=uf-zl;function Mc(kt){return kt.length>0}function Eu(kt){return kt===al||kt===uf?[0,kt]:[Kc,(It=kt,Math.floor(It*xc)/xc)];var It}function xu(kt){var It=kt[0],Ut=kt[1],J=!1;return It<=jd?(It=Kc,J=!0):It>=nd&&(It=ii,J=!0),Ut<=Yl?(Ut=al,J=!0):Ut>=hs&&(Ut=uf,J=!0),J?[It,Ut]:kt}function ws(kt){return kt.map(xu)}function Fu(kt,It,Ut){for(var J=0,le=kt.length;J=nd||Ee<=Yl||Ee>=hs){ne[V]=xu(ge);for(var Ne=V+1;Nejd&&rtYl&&dt=ie)break;Ut.push({index:-1,polygon:It,ring:ne=ne.slice(Ne-1)}),ne[0]=Eu(ne[0][1]),V=-1,ie=ne.length}}}}function su(kt){var It,Ut,J,le,ne,V,ie=kt.length,ge={},xe={};for(It=0;It0?M-ie:ie)*I],xe=(0,u.c)(kt(V)).rotate(ge),Ee=(0,St.c)(ge),Ne=xe.center;return delete xe.rotate,xe.center=function(et){return arguments.length?Ne(Ee(et)):Ee.invert(Ne())},xe.clipAngle(90)}function En(kt){var It=w(kt);function Ut(J,le){var ne=(0,Gs.Y)(J,le);return ne[0]*=It,ne}return Ut.invert=function(J,le){return Gs.Y.invert(J/It,le)},Ut}function pr(){return wr([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function wr(kt,It){return Kt(En,kt,It)}function uo(kt){if(!(kt*=2))return de.O;var It=-kt/2,Ut=-It,J=kt*kt,le=C(Ut),ne=.5/O(Ut);function V(ie,ge){var xe=Q(w(ge)*w(ie-It)),Ee=Q(w(ge)*w(ie-Ut));return[((xe*=xe)-(Ee*=Ee))/(2*kt),(ge<0?-1:1)*j(4*J*Ee-(J-xe+Ee)*(J-xe+Ee))/(2*kt)]}return V.invert=function(ie,ge){var xe,Ee,Ne=ge*ge,et=w(j(Ne+(xe=ie+It)*xe)),rt=w(j(Ne+(xe=ie+Ut)*xe));return[S(Ee=et-rt,xe=(et+rt)*le),(ge<0?-1:1)*Q(j(xe*xe+Ee*Ee)*ne)]},V}function Bi(){return ya([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ya(kt,It){return Kt(uo,kt,It)}function Ni(kt,It){if(b(It)x&&--ie>0);return[_(kt)*(j(le*le+4)+le)*M/4,T*V]};var _c=4*M+3*j(3),Xl=2*j(2*M*j(3)/_c),pl=$e(Xl*j(3)/M,Xl,_c/6);function Pc(){return(0,u.c)(pl).scale(176.84)}function Uf(kt,It){return[kt*j(1-3*It*It/(M*M)),It]}function Os(){return(0,u.c)(Uf).scale(152.63)}function Si(kt,It){var Ut=w(It),J=w(kt)*Ut,le=1-J,ne=w(kt=S(O(kt)*Ut,-O(It))),V=O(kt);return[V*(Ut=j(1-J*J))-ne*le,-ne*Ut-V*le]}function lc(){return(0,u.c)(Si).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function rd(kt,It){var Ut=K(kt,It);return[(Ut[0]+kt/T)/2,(Ut[1]+It)/2]}function tp(){return(0,u.c)(rd).scale(158.837)}Uf.invert=function(kt,It){return[kt/j(1-3*It*It/(M*M)),It]},Si.invert=function(kt,It){var Ut=(kt*kt+It*It)/-2,J=j(-Ut*(2+Ut)),le=It*Ut+kt*J,ne=kt*Ut-It*J,V=j(ne*ne+le*le);return[S(J*le,V*(1+Ut)),V?-$(J*ne/V):0]},rd.invert=function(kt,It){var Ut=kt,J=It,le=25;do{var ne,V=w(J),ie=O(J),ge=O(2*J),xe=ie*ie,Ee=V*V,Ne=O(Ut),et=w(Ut/2),rt=O(Ut/2),dt=rt*rt,gt=1-Ee*et*et,Rt=gt?Q(V*et)*j(ne=1/gt):ne=0,Mt=.5*(2*Rt*V*rt+Ut/T)-kt,Xt=.5*(Rt*ie+J)-It,dn=.5*ne*(Ee*dt+Rt*V*et*xe)+.5/T,bn=ne*(Ne*ge/4-Rt*ie*rt),vn=.125*ne*(ge*rt-Rt*ie*Ee*Ne),Ln=.5*ne*(xe*et+Rt*dt*V)+.5,gn=bn*vn-Ln*dn,Jn=(Xt*bn-Mt*Ln)/gn,pn=(Mt*vn-Xt*dn)/gn;Ut-=Jn,J-=pn}while((b(Jn)>x||b(pn)>x)&&--le>0);return[Ut,J]}},88728:function(d,s,n){function u(){return new b}function b(){this.reset()}n.d(s,{c:function(){return u}}),b.prototype={constructor:b,reset:function(){this.s=this.t=0},add:function(w){S(i,w,this.t),S(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new b;function S(w,y,m){var a=w.s=y+m,c=a-y,h=a-c;w.t=y-h+(m-c)}},95384:function(d,s,n){n.d(s,{cp:function(){return R},mQ:function(){return h},oB:function(){return v}});var u,b,i,S,w,y=n(88728),m=n(64528),a=n(70932),c=n(16016),h=(0,y.c)(),p=(0,y.c)(),v={point:a.c,lineStart:a.c,lineEnd:a.c,polygonStart:function(){h.reset(),v.lineStart=_,v.lineEnd=O},polygonEnd:function(){var M=+h;p.add(M<0?m.kD+M:M),this.lineStart=this.lineEnd=this.point=a.c},sphere:function(){p.add(m.kD)}};function _(){v.point=C}function O(){x(u,b)}function C(M,T){v.point=x,u=M,b=T,M*=m.qw,T*=m.qw,i=M,S=(0,m.W8)(T=T/2+m.wL),w=(0,m.g$)(T)}function x(M,T){M*=m.qw,T=(T*=m.qw)/2+m.wL;var P=M-i,A=P>=0?1:-1,L=A*P,D=(0,m.W8)(T),k=(0,m.g$)(T),I=w*k,z=S*D+I*(0,m.W8)(L),$=I*A*(0,m.g$)(L);h.add((0,m.WE)($,z)),i=M,S=D,w=k}function R(M){return p.reset(),(0,c.c)(M,v),2*p}},13696:function(d,s,n){n.d(s,{c:function(){return Q}});var u,b,i,S,w,y,m,a,c,h,p=n(88728),v=n(95384),_=n(84220),O=n(64528),C=n(16016),x=(0,p.c)(),R={point:M,lineStart:P,lineEnd:A,polygonStart:function(){R.point=L,R.lineStart=D,R.lineEnd=k,x.reset(),v.oB.polygonStart()},polygonEnd:function(){v.oB.polygonEnd(),R.point=M,R.lineStart=P,R.lineEnd=A,v.mQ<0?(u=-(i=180),b=-(S=90)):x>O.Gg?S=90:x<-O.Gg&&(b=-90),h[0]=u,h[1]=i},sphere:function(){u=-(i=180),b=-(S=90)}};function M(j,U){c.push(h=[u=j,i=j]),US&&(S=U)}function T(j,U){var X=(0,_.ux)([j*O.qw,U*O.qw]);if(a){var te=(0,_.CW)(a,X),Z=[te[1],-te[0],0],K=(0,_.CW)(Z,te);(0,_.cJ)(K),K=(0,_.G)(K);var re,q=j-w,Y=q>0?1:-1,ee=K[0]*O.oh*Y,me=(0,O.a2)(q)>180;me^(Y*wS&&(S=re):me^(Y*w<(ee=(ee+360)%360-180)&&eeS&&(S=U)),me?jI(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j):i>=u?(ji&&(i=j)):j>w?I(u,j)>I(u,i)&&(i=j):I(j,i)>I(u,i)&&(u=j)}else c.push(h=[u=j,i=j]);US&&(S=U),a=X,w=j}function P(){R.point=T}function A(){h[0]=u,h[1]=i,R.point=M,a=null}function L(j,U){if(a){var X=j-w;x.add((0,O.a2)(X)>180?X+(X>0?360:-360):X)}else y=j,m=U;v.oB.point(j,U),T(j,U)}function D(){v.oB.lineStart()}function k(){L(y,m),v.oB.lineEnd(),(0,O.a2)(x)>O.Gg&&(u=-(i=180)),h[0]=u,h[1]=i,a=null}function I(j,U){return(U-=j)<0?U+360:U}function z(j,U){return j[0]-U[0]}function $(j,U){return j[0]<=j[1]?j[0]<=U&&U<=j[1]:UI(te[0],te[1])&&(te[1]=Z[1]),I(Z[0],te[1])>I(te[0],te[1])&&(te[0]=Z[0])):K.push(te=Z);for(re=-1/0,U=0,te=K[X=K.length-1];U<=X;te=Z,++U)Z=K[U],(q=I(te[1],Z[0]))>re&&(re=q,u=Z[0],i=te[1])}return c=h=null,u===1/0||b===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,b],[i,S]]}},84220:function(d,s,n){n.d(s,{CW:function(){return w},Ez:function(){return S},G:function(){return b},cJ:function(){return a},mg:function(){return y},ux:function(){return i},wx:function(){return m}});var u=n(64528);function b(c){return[(0,u.WE)(c[1],c[0]),(0,u.qR)(c[2])]}function i(c){var h=c[0],p=c[1],v=(0,u.W8)(p);return[v*(0,u.W8)(h),v*(0,u.g$)(h),(0,u.g$)(p)]}function S(c,h){return c[0]*h[0]+c[1]*h[1]+c[2]*h[2]}function w(c,h){return[c[1]*h[2]-c[2]*h[1],c[2]*h[0]-c[0]*h[2],c[0]*h[1]-c[1]*h[0]]}function y(c,h){c[0]+=h[0],c[1]+=h[1],c[2]+=h[2]}function m(c,h){return[c[0]*h,c[1]*h,c[2]*h]}function a(c){var h=(0,u._I)(c[0]*c[0]+c[1]*c[1]+c[2]*c[2]);c[0]/=h,c[1]/=h,c[2]/=h}},24052:function(d,s,n){n.d(s,{c:function(){return X}});var u,b,i,S,w,y,m,a,c,h,p,v,_,O,C,x,R=n(64528),M=n(70932),T=n(16016),P={sphere:M.c,point:A,lineStart:D,lineEnd:z,polygonStart:function(){P.lineStart=$,P.lineEnd=Q},polygonEnd:function(){P.lineStart=D,P.lineEnd=z}};function A(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);L(K*(0,R.W8)(te),K*(0,R.g$)(te),(0,R.g$)(Z))}function L(te,Z,K){++u,i+=(te-i)/u,S+=(Z-S)/u,w+=(K-w)/u}function D(){P.point=k}function k(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),P.point=I,L(O,C,x)}function I(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=(0,R.WE)((0,R._I)((ee=C*Y-x*q)*ee+(ee=x*re-O*Y)*ee+(ee=O*q-C*re)*ee),O*re+C*q+x*Y);b+=ee,y+=ee*(O+(O=re)),m+=ee*(C+(C=q)),a+=ee*(x+(x=Y)),L(O,C,x)}function z(){P.point=A}function $(){P.point=j}function Q(){U(v,_),P.point=A}function j(te,Z){v=te,_=Z,te*=R.qw,Z*=R.qw,P.point=U;var K=(0,R.W8)(Z);O=K*(0,R.W8)(te),C=K*(0,R.g$)(te),x=(0,R.g$)(Z),L(O,C,x)}function U(te,Z){te*=R.qw,Z*=R.qw;var K=(0,R.W8)(Z),re=K*(0,R.W8)(te),q=K*(0,R.g$)(te),Y=(0,R.g$)(Z),ee=C*Y-x*q,me=x*re-O*Y,pe=O*q-C*re,se=(0,R._I)(ee*ee+me*me+pe*pe),ae=(0,R.qR)(se),ce=se&&-ae/se;c+=ce*ee,h+=ce*me,p+=ce*pe,b+=ae,y+=ae*(O+(O=re)),m+=ae*(C+(C=q)),a+=ae*(x+(x=Y)),L(O,C,x)}function X(te){u=b=i=S=w=y=m=a=c=h=p=0,(0,T.c)(te,P);var Z=c,K=h,re=p,q=Z*Z+K*K+re*re;return q0?v<_:v>_)&&(v+=p*i.kD));for(var R,M=v;p>0?M>_:M<_;M-=x)R=(0,u.G)([O,-C*(0,i.W8)(M),-C*(0,i.g$)(M)]),a.point(R[0],R[1])}}function y(a,c){(c=(0,u.ux)(c))[0]-=a,(0,u.cJ)(c);var h=(0,i.mE)(-c[1]);return((-c[2]<0?-h:h)+i.kD-i.Gg)%i.kD}function m(){var a,c,h=b([0,0]),p=b(90),v=b(6),_={point:function(C,x){a.push(C=c(C,x)),C[0]*=i.oh,C[1]*=i.oh}};function O(){var C=h.apply(this,arguments),x=p.apply(this,arguments)*i.qw,R=v.apply(this,arguments)*i.qw;return a=[],c=(0,S.O)(-C[0]*i.qw,-C[1]*i.qw,0).invert,w(_,x,R,1),C={type:"Polygon",coordinates:[a]},a=c=null,C}return O.center=function(C){return arguments.length?(h=typeof C=="function"?C:b([+C[0],+C[1]]),O):h},O.radius=function(C){return arguments.length?(p=typeof C=="function"?C:b(+C),O):p},O.precision=function(C){return arguments.length?(v=typeof C=="function"?C:b(+C),O):v},O}},78284:function(d,s,n){var u=n(14229),b=n(64528);s.c=(0,u.c)(function(){return!0},function(i){var S,w=NaN,y=NaN,m=NaN;return{lineStart:function(){i.lineStart(),S=1},point:function(a,c){var h=a>0?b.pi:-b.pi,p=(0,b.a2)(a-w);(0,b.a2)(p-b.pi)0?b.or:-b.or),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),i.point(a,y),S=0):m!==h&&p>=b.pi&&((0,b.a2)(w-m)b.Gg?(0,b.MQ)(((0,b.g$)(_)*(R=(0,b.W8)(C))*(0,b.g$)(O)-(0,b.g$)(C)*(x=(0,b.W8)(_))*(0,b.g$)(v))/(x*R*M)):(_+C)/2}(w,y,a,c),i.point(m,y),i.lineEnd(),i.lineStart(),i.point(h,y),S=0),i.point(w=a,y=c),m=h},lineEnd:function(){i.lineEnd(),w=y=NaN},clean:function(){return 2-S}}},function(i,S,w,y){var m;if(i==null)m=w*b.or,y.point(-b.pi,m),y.point(0,m),y.point(b.pi,m),y.point(b.pi,0),y.point(b.pi,-m),y.point(0,-m),y.point(-b.pi,-m),y.point(-b.pi,0),y.point(-b.pi,m);else if((0,b.a2)(i[0]-S[0])>b.Gg){var a=i[0]1&&S.push(S.pop().concat(S.shift()))},result:function(){var w=S;return S=[],i=null,w}}}},2728:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(84220),b=n(61780),i=n(64528),S=n(41860),w=n(14229);function y(m){var a=(0,i.W8)(m),c=6*i.qw,h=a>0,p=(0,i.a2)(a)>i.Gg;function v(C,x){return(0,i.W8)(C)*(0,i.W8)(x)>a}function _(C,x,R){var M=(0,u.ux)(C),T=(0,u.ux)(x),P=[1,0,0],A=(0,u.CW)(M,T),L=(0,u.Ez)(A,A),D=A[0],k=L-D*D;if(!k)return!R&&C;var I=a*L/k,z=-a*D/k,$=(0,u.CW)(P,A),Q=(0,u.wx)(P,I),j=(0,u.wx)(A,z);(0,u.mg)(Q,j);var U=$,X=(0,u.Ez)(Q,U),te=(0,u.Ez)(U,U),Z=X*X-te*((0,u.Ez)(Q,Q)-1);if(!(Z<0)){var K=(0,i._I)(Z),re=(0,u.wx)(U,(-X-K)/te);if((0,u.mg)(re,Q),re=(0,u.G)(re),!R)return re;var q,Y=C[0],ee=x[0],me=C[1],pe=x[1];ee0^re[1]<((0,i.a2)(re[0]-Y)i.pi^(Y<=re[0]&&re[0]<=ee)){var ce=(0,u.wx)(U,(-X+K)/te);return(0,u.mg)(ce,Q),[re,(0,u.G)(ce)]}}}function O(C,x){var R=h?m:i.pi-m,M=0;return C<-R?M|=1:C>R&&(M|=2),x<-R?M|=4:x>R&&(M|=8),M}return(0,w.c)(v,function(C){var x,R,M,T,P;return{lineStart:function(){T=M=!1,P=1},point:function(A,L){var D,k=[A,L],I=v(A,L),z=h?I?0:O(A,L):I?O(A+(A<0?i.pi:-i.pi),L):0;if(!x&&(T=M=I)&&C.lineStart(),I!==M&&(!(D=_(x,k))||(0,S.c)(x,D)||(0,S.c)(k,D))&&(k[2]=1),I!==M)P=0,I?(C.lineStart(),D=_(k,x),C.point(D[0],D[1])):(D=_(x,k),C.point(D[0],D[1],2),C.lineEnd()),x=D;else if(p&&x&&h^I){var $;z&R||!($=_(k,x,!0))||(P=0,h?(C.lineStart(),C.point($[0][0],$[0][1]),C.point($[1][0],$[1][1]),C.lineEnd()):(C.point($[1][0],$[1][1]),C.lineEnd(),C.lineStart(),C.point($[0][0],$[0][1],3)))}!I||x&&(0,S.c)(x,k)||C.point(k[0],k[1]),x=k,M=I,R=z},lineEnd:function(){M&&C.lineEnd(),x=null},clean:function(){return P|(T&&M)<<1}}},function(C,x,R,M){(0,b.Q)(M,m,c,R,C,x)},h?[0,-m]:[-i.pi,m-i.pi])}},14229:function(d,s,n){n.d(s,{c:function(){return y}});var u=n(97208),b=n(32232),i=n(64528),S=n(58196),w=n(84706);function y(c,h,p,v){return function(_){var O,C,x,R=h(_),M=(0,u.c)(),T=h(M),P=!1,A={point:L,lineStart:k,lineEnd:I,polygonStart:function(){A.point=z,A.lineStart=$,A.lineEnd=Q,C=[],O=[]},polygonEnd:function(){A.point=L,A.lineStart=k,A.lineEnd=I,C=(0,w.Uf)(C);var j=(0,S.c)(O,v);C.length?(P||(_.polygonStart(),P=!0),(0,b.c)(C,a,j,p,_)):j&&(P||(_.polygonStart(),P=!0),_.lineStart(),p(null,null,1,_),_.lineEnd()),P&&(_.polygonEnd(),P=!1),C=O=null},sphere:function(){_.polygonStart(),_.lineStart(),p(null,null,1,_),_.lineEnd(),_.polygonEnd()}};function L(j,U){c(j,U)&&_.point(j,U)}function D(j,U){R.point(j,U)}function k(){A.point=D,R.lineStart()}function I(){A.point=L,R.lineEnd()}function z(j,U){x.push([j,U]),T.point(j,U)}function $(){T.lineStart(),x=[]}function Q(){z(x[0][0],x[0][1]),T.lineEnd();var j,U,X,te,Z=T.clean(),K=M.result(),re=K.length;if(x.pop(),O.push(x),x=null,re)if(1&Z){if((U=(X=K[0]).length-1)>0){for(P||(_.polygonStart(),P=!0),_.lineStart(),j=0;j1&&2&Z&&K.push(K.pop().concat(K.shift())),C.push(K.filter(m))}return A}}function m(c){return c.length>1}function a(c,h){return((c=c.x)[0]<0?c[1]-i.or-i.Gg:i.or-c[1])-((h=h.x)[0]<0?h[1]-i.or-i.Gg:i.or-h[1])}},21676:function(d,s,n){n.d(s,{c:function(){return m}});var u=n(64528),b=n(97208),i=n(32232),S=n(84706),w=1e9,y=-w;function m(a,c,h,p){function v(R,M){return a<=R&&R<=h&&c<=M&&M<=p}function _(R,M,T,P){var A=0,L=0;if(R==null||(A=O(R,T))!==(L=O(M,T))||x(R,M)<0^T>0)do P.point(A===0||A===3?a:h,A>1?p:c);while((A=(A+T+4)%4)!==L);else P.point(M[0],M[1])}function O(R,M){return(0,u.a2)(R[0]-a)0?0:3:(0,u.a2)(R[0]-h)0?2:1:(0,u.a2)(R[1]-c)0?1:0:M>0?3:2}function C(R,M){return x(R.x,M.x)}function x(R,M){var T=O(R,1),P=O(M,1);return T!==P?T-P:T===0?M[1]-R[1]:T===1?R[0]-M[0]:T===2?R[1]-M[1]:M[0]-R[0]}return function(R){var M,T,P,A,L,D,k,I,z,$,Q,j=R,U=(0,b.c)(),X={point:te,lineStart:function(){X.point=Z,T&&T.push(P=[]),$=!0,z=!1,k=I=NaN},lineEnd:function(){M&&(Z(A,L),D&&z&&U.rejoin(),M.push(U.result())),X.point=te,z&&j.lineEnd()},polygonStart:function(){j=U,M=[],T=[],Q=!0},polygonEnd:function(){var K=function(){for(var Y=0,ee=0,me=T.length;eep&&(ve-pe)*(p-se)>(_e-se)*(a-pe)&&++Y:_e<=p&&(ve-pe)*(p-se)<(_e-se)*(a-pe)&&--Y;return Y}(),re=Q&&K,q=(M=(0,S.Uf)(M)).length;(re||q)&&(R.polygonStart(),re&&(R.lineStart(),_(null,null,1,R),R.lineEnd()),q&&(0,i.c)(M,C,K,_,R),R.polygonEnd()),j=R,M=T=P=null}};function te(K,re){v(K,re)&&j.point(K,re)}function Z(K,re){var q=v(K,re);if(T&&P.push([K,re]),$)A=K,L=re,D=q,$=!1,q&&(j.lineStart(),j.point(K,re));else if(q&&z)j.point(K,re);else{var Y=[k=Math.max(y,Math.min(w,k)),I=Math.max(y,Math.min(w,I))],ee=[K=Math.max(y,Math.min(w,K)),re=Math.max(y,Math.min(w,re))];(function(me,pe,se,ae,ce,de){var ye,ve=me[0],_e=me[1],we=0,Te=1,Pe=pe[0]-ve,Ie=pe[1]-_e;if(ye=se-ve,Pe||!(ye>0)){if(ye/=Pe,Pe<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=ce-ve,Pe||!(ye<0)){if(ye/=Pe,Pe<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Pe>0){if(ye0)){if(ye/=Ie,Ie<0){if(ye0){if(ye>Te)return;ye>we&&(we=ye)}if(ye=de-_e,Ie||!(ye<0)){if(ye/=Ie,Ie<0){if(ye>Te)return;ye>we&&(we=ye)}else if(Ie>0){if(ye0&&(me[0]=ve+we*Pe,me[1]=_e+we*Ie),Te<1&&(pe[0]=ve+Te*Pe,pe[1]=_e+Te*Ie),!0}}}}})(Y,ee,a,c,h,p)?(z||(j.lineStart(),j.point(Y[0],Y[1])),j.point(ee[0],ee[1]),q||j.lineEnd(),Q=!1):q&&(j.lineStart(),j.point(K,re),Q=!1)}k=K,I=re,z=q}return X}}},32232:function(d,s,n){n.d(s,{c:function(){return S}});var u=n(41860),b=n(64528);function i(y,m,a,c){this.x=y,this.z=m,this.o=a,this.e=c,this.v=!1,this.n=this.p=null}function S(y,m,a,c,h){var p,v,_=[],O=[];if(y.forEach(function(P){if(!((A=P.length-1)<=0)){var A,L,D=P[0],k=P[A];if((0,u.c)(D,k)){if(!D[2]&&!k[2]){for(h.lineStart(),p=0;p=0;--p)h.point((x=C[p])[0],x[1]);else c(M.x,M.p.x,-1,h);M=M.p}C=(M=M.o).z,T=!T}while(!M.v);h.lineEnd()}}}function w(y){if(m=y.length){for(var m,a,c=0,h=y[0];++c0&&(Zr=I(Hn[go],Hn[go-1]))>0&&Dr<=Zr&&Sr<=Zr&&(Dr+Sr-Zr)*(1-Math.pow((Dr-Sr)/Zr,2))O.Gg}).map(Do)).concat((0,re.ik)((0,O.Km)(go/ir)*ir,Zr,ir).filter(function(Tn){return(0,O.a2)(Tn%Er)>O.Gg}).map(jn))}return on.lines=function(){return an().map(function(Tn){return{type:"LineString",coordinates:Tn}})},on.outline=function(){return{type:"Polygon",coordinates:[Rr(Sr).concat(On(oo).slice(1),Rr(Dr).reverse().slice(1),On(io).reverse().slice(1))]}},on.extent=function(Tn){return arguments.length?on.extentMajor(Tn).extentMinor(Tn):on.extentMinor()},on.extentMajor=function(Tn){return arguments.length?(Sr=+Tn[0][0],Dr=+Tn[1][0],io=+Tn[0][1],oo=+Tn[1][1],Sr>Dr&&(Tn=Sr,Sr=Dr,Dr=Tn),io>oo&&(Tn=io,io=oo,oo=Tn),on.precision(Gt)):[[Sr,io],[Dr,oo]]},on.extentMinor=function(Tn){return arguments.length?(ar=+Tn[0][0],Hn=+Tn[1][0],go=+Tn[0][1],Zr=+Tn[1][1],ar>Hn&&(Tn=ar,ar=Hn,Hn=Tn),go>Zr&&(Tn=go,go=Zr,Zr=Tn),on.precision(Gt)):[[ar,go],[Hn,Zr]]},on.step=function(Tn){return arguments.length?on.stepMajor(Tn).stepMinor(Tn):on.stepMinor()},on.stepMajor=function(Tn){return arguments.length?(kr=+Tn[0],Er=+Tn[1],on):[kr,Er]},on.stepMinor=function(Tn){return arguments.length?(Yn=+Tn[0],ir=+Tn[1],on):[Yn,ir]},on.precision=function(Tn){return arguments.length?(Gt=+Tn,Do=q(go,Zr,90),jn=Y(ar,Hn,Gt),Rr=q(io,oo,90),On=Y(Sr,Dr,Gt),on):Gt},on.extentMajor([[-180,-90+O.Gg],[180,90-O.Gg]]).extentMinor([[-180,-80-O.Gg],[180,80+O.Gg]])}function me(){return ee()()}var pe,se,ae,ce,de=n(27284),ye=n(7376),ve=(0,_.c)(),_e=(0,_.c)(),we={point:C.c,lineStart:C.c,lineEnd:C.c,polygonStart:function(){we.lineStart=Te,we.lineEnd=ze},polygonEnd:function(){we.lineStart=we.lineEnd=we.point=C.c,ve.add((0,O.a2)(_e)),_e.reset()},result:function(){var Hn=ve/2;return ve.reset(),Hn}};function Te(){we.point=Pe}function Pe(Hn,ar){we.point=Ie,pe=ae=Hn,se=ce=ar}function Ie(Hn,ar){_e.add(ce*Hn-ae*ar),ae=Hn,ce=ar}function ze(){Ie(pe,se)}var De,Qe,Ve,$e,Oe=we,ke=n(73784),Re=0,We=0,Ue=0,Ze=0,Ye=0,Je=0,Me=0,Fe=0,je=0,tt={point:ot,lineStart:Ge,lineEnd:St,polygonStart:function(){tt.lineStart=Ft,tt.lineEnd=zt},polygonEnd:function(){tt.point=ot,tt.lineStart=Ge,tt.lineEnd=St},result:function(){var Hn=je?[Me/je,Fe/je]:Je?[Ze/Je,Ye/Je]:Ue?[Re/Ue,We/Ue]:[NaN,NaN];return Re=We=Ue=Ze=Ye=Je=Me=Fe=je=0,Hn}};function ot(Hn,ar){Re+=Hn,We+=ar,++Ue}function Ge(){tt.point=ht}function ht(Hn,ar){tt.point=pt,ot(Ve=Hn,$e=ar)}function pt(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,ot(Ve=Hn,$e=ar)}function St(){tt.point=ot}function Ft(){tt.point=Yt}function zt(){ln(De,Qe)}function Yt(Hn,ar){tt.point=ln,ot(De=Ve=Hn,Qe=$e=ar)}function ln(Hn,ar){var Dr=Hn-Ve,Sr=ar-$e,Zr=(0,O._I)(Dr*Dr+Sr*Sr);Ze+=Zr*(Ve+Hn)/2,Ye+=Zr*($e+ar)/2,Je+=Zr,Me+=(Zr=$e*Hn-Ve*ar)*(Ve+Hn),Fe+=Zr*($e+ar),je+=3*Zr,ot(Ve=Hn,$e=ar)}var tn=tt;function Et(Hn){this._context=Hn}Et.prototype={_radius:4.5,pointRadius:function(Hn){return this._radius=Hn,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._context.moveTo(Hn,ar),this._point=1;break;case 1:this._context.lineTo(Hn,ar);break;default:this._context.moveTo(Hn+this._radius,ar),this._context.arc(Hn,ar,this._radius,0,O.kD)}},result:C.c};var Ot,cn,Cn,Pn,Sn,vt=(0,_.c)(),xt={point:C.c,lineStart:function(){xt.point=st},lineEnd:function(){Ot&&bt(cn,Cn),xt.point=C.c},polygonStart:function(){Ot=!0},polygonEnd:function(){Ot=null},result:function(){var Hn=+vt;return vt.reset(),Hn}};function st(Hn,ar){xt.point=bt,cn=Pn=Hn,Cn=Sn=ar}function bt(Hn,ar){Pn-=Hn,Sn-=ar,vt.add((0,O._I)(Pn*Pn+Sn*Sn)),Pn=Hn,Sn=ar}var Vt=xt;function Dt(){this._string=[]}function it(Hn){return"m0,"+Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+-2*Hn+"a"+Hn+","+Hn+" 0 1,1 0,"+2*Hn+"z"}function at(Hn,ar){var Dr,Sr,Zr=4.5;function go(oo){return oo&&(typeof Zr=="function"&&Sr.pointRadius(+Zr.apply(this,arguments)),(0,x.c)(oo,Dr(Sr))),Sr.result()}return go.area=function(oo){return(0,x.c)(oo,Dr(Oe)),Oe.result()},go.measure=function(oo){return(0,x.c)(oo,Dr(Vt)),Vt.result()},go.bounds=function(oo){return(0,x.c)(oo,Dr(ke.c)),ke.c.result()},go.centroid=function(oo){return(0,x.c)(oo,Dr(tn)),tn.result()},go.projection=function(oo){return arguments.length?(Dr=oo==null?(Hn=null,ye.c):(Hn=oo).stream,go):Hn},go.context=function(oo){return arguments.length?(Sr=oo==null?(ar=null,new Dt):new Et(ar=oo),typeof Zr!="function"&&Sr.pointRadius(Zr),go):ar},go.pointRadius=function(oo){return arguments.length?(Zr=typeof oo=="function"?oo:(Sr.pointRadius(+oo),+oo),go):Zr},go.projection(Hn).context(ar)}Dt.prototype={_radius:4.5,_circle:it(4.5),pointRadius:function(Hn){return(Hn=+Hn)!==this._radius&&(this._radius=Hn,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Hn,ar){switch(this._point){case 0:this._string.push("M",Hn,",",ar),this._point=1;break;case 1:this._string.push("L",Hn,",",ar);break;default:this._circle==null&&(this._circle=it(this._radius)),this._string.push("M",Hn,",",ar,this._circle)}},result:function(){if(this._string.length){var Hn=this._string.join("");return this._string=[],Hn}return null}};var Bt=n(87952);function _t(Hn){var ar=0,Dr=O.pi/3,Sr=(0,Bt.U)(Hn),Zr=Sr(ar,Dr);return Zr.parallels=function(go){return arguments.length?Sr(ar=go[0]*O.qw,Dr=go[1]*O.qw):[ar*O.oh,Dr*O.oh]},Zr}function qt(Hn,ar){var Dr=(0,O.g$)(Hn),Sr=(Dr+(0,O.g$)(ar))/2;if((0,O.a2)(Sr)=.12&&Gt<.234&&Er>=-.425&&Er<-.214?io:Gt>=.166&&Gt<.234&&Er>=-.214&&Er<-.115?Do:oo).invert(Yn)},Rr.stream=function(Yn){return Hn&&ar===Yn?Hn:(ir=[oo.stream(ar=Yn),io.stream(Yn),Do.stream(Yn)],kr=ir.length,Hn={point:function(Er,Gt){for(var on=-1;++on0?io<-O.or+O.Gg&&(io=-O.or+O.Gg):io>O.or-O.Gg&&(io=O.or-O.Gg);var Do=Zr/(0,O.g3)(fr(io),Sr);return[Do*(0,O.g$)(Sr*oo),Zr-Do*(0,O.W8)(Sr*oo)]}return go.invert=function(oo,io){var Do=Zr-io,jn=(0,O.kq)(Sr)*(0,O._I)(oo*oo+Do*Do),Rr=(0,O.WE)(oo,(0,O.a2)(Do))*(0,O.kq)(Do);return Do*Sr<0&&(Rr-=O.pi*(0,O.kq)(oo)*(0,O.kq)(Do)),[Rr/Sr,2*(0,O.MQ)((0,O.g3)(Zr/jn,1/Sr))-O.or]},go}function Zn(){return _t(Un).scale(109.5).parallels([30,30])}wn.invert=function(Hn,ar){return[Hn,2*(0,O.MQ)((0,O.oN)(ar))-O.or]};var tr=n(69604);function Br(Hn,ar){var Dr=(0,O.W8)(Hn),Sr=Hn===ar?(0,O.g$)(Hn):(Dr-(0,O.W8)(ar))/(ar-Hn),Zr=Dr/Sr+Hn;if((0,O.a2)(Sr)2?Sr[2]+90:90]):[(Sr=Dr())[0],Sr[1],Sr[2]-90]},Dr([0,0,90]).scale(159.155)}_o.invert=(0,Fo.g)(function(Hn){return 2*(0,O.MQ)(Hn)}),Mo.invert=function(Hn,ar){return[-ar,2*(0,O.MQ)((0,O.oN)(Hn))-O.or]}},27284:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){var w=i[0]*u.qw,y=i[1]*u.qw,m=S[0]*u.qw,a=S[1]*u.qw,c=(0,u.W8)(y),h=(0,u.g$)(y),p=(0,u.W8)(a),v=(0,u.g$)(a),_=c*(0,u.W8)(w),O=c*(0,u.g$)(w),C=p*(0,u.W8)(m),x=p*(0,u.g$)(m),R=2*(0,u.qR)((0,u._I)((0,u.SD)(a-y)+c*p*(0,u.SD)(m-w))),M=(0,u.g$)(R),T=R?function(P){var A=(0,u.g$)(P*=R)/M,L=(0,u.g$)(R-P)/M,D=L*_+A*C,k=L*O+A*x,I=L*h+A*v;return[(0,u.WE)(k,D)*u.oh,(0,u.WE)(I,(0,u._I)(D*D+k*k))*u.oh]}:function(){return[w*u.oh,y*u.oh]};return T.distance=R,T}},64528:function(d,s,n){n.d(s,{Gg:function(){return u},Km:function(){return _},MQ:function(){return h},SD:function(){return D},W8:function(){return v},WE:function(){return p},Yz:function(){return C},_I:function(){return T},a2:function(){return c},a6:function(){return P},a8:function(){return b},g$:function(){return R},g3:function(){return x},kD:function(){return y},kq:function(){return M},mE:function(){return A},oN:function(){return O},oh:function(){return m},or:function(){return S},pi:function(){return i},qR:function(){return L},qw:function(){return a},wL:function(){return w}});var u=1e-6,b=1e-12,i=Math.PI,S=i/2,w=i/4,y=2*i,m=180/i,a=i/180,c=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,_=Math.ceil,O=Math.exp,C=Math.log,x=Math.pow,R=Math.sin,M=Math.sign||function(k){return k>0?1:k<0?-1:0},T=Math.sqrt,P=Math.tan;function A(k){return k>1?0:k<-1?i:Math.acos(k)}function L(k){return k>1?S:k<-1?-S:Math.asin(k)}function D(k){return(k=R(k/2))*k}},70932:function(d,s,n){function u(){}n.d(s,{c:function(){return u}})},73784:function(d,s,n){var u=n(70932),b=1/0,i=b,S=-b,w=S,y={point:function(m,a){mS&&(S=m),aw&&(w=a)},lineStart:u.c,lineEnd:u.c,polygonStart:u.c,polygonEnd:u.c,result:function(){var m=[[b,i],[S,w]];return S=w=-(i=b=1/0),m}};s.c=y},41860:function(d,s,n){n.d(s,{c:function(){return b}});var u=n(64528);function b(i,S){return(0,u.a2)(i[0]-S[0])=0?1:-1,te=X*U,Z=te>i.pi,K=L*Q;if(S.add((0,i.WE)(K*X*(0,i.g$)(te),D*j+K*(0,i.W8)(te))),_+=Z?U+X*i.kD:U,Z^P>=c^z>=c){var re=(0,b.CW)((0,b.ux)(T),(0,b.ux)(I));(0,b.cJ)(re);var q=(0,b.CW)(v,re);(0,b.cJ)(q);var Y=(Z^U>=0?-1:1)*(0,i.qR)(q[2]);(h>Y||h===Y&&(re[0]||re[1]))&&(O+=Z^U>=0?1:-1)}}return(_<-i.Gg||_4*L&&q--){var se=$+Z,ae=Q+K,ce=j+re,de=(0,y._I)(se*se+ae*ae+ce*ce),ye=(0,y.qR)(ce/=de),ve=(0,y.a2)((0,y.a2)(ce)-1)L||(0,y.a2)((ee*Pe+me*Ie)/pe-.5)>.3||$*Z+Q*K+j*re2?Pe[2]%360*y.qw:0,we()):[re*y.oh,q*y.oh,Y*y.oh]},ve.angle=function(Pe){return arguments.length?(ee=Pe%360*y.qw,we()):ee*y.oh},ve.reflectX=function(Pe){return arguments.length?(me=Pe?-1:1,we()):me<0},ve.reflectY=function(Pe){return arguments.length?(pe=Pe?-1:1,we()):pe<0},ve.precision=function(Pe){return arguments.length?(I=_(z,ye=Pe*Pe),Te()):(0,y._I)(ye)},ve.fitExtent=function(Pe,Ie){return(0,c.QX)(ve,Pe,Ie)},ve.fitSize=function(Pe,Ie){return(0,c.UV)(ve,Pe,Ie)},ve.fitWidth=function(Pe,Ie){return(0,c.Qx)(ve,Pe,Ie)},ve.fitHeight=function(Pe,Ie){return(0,c.OW)(ve,Pe,Ie)},function(){return P=T.apply(this,arguments),ve.invert=P.invert&&_e,we()}}},47984:function(d,s,n){n.d(s,{c:function(){return S},g:function(){return i}});var u=n(87952),b=n(64528);function i(w,y){var m=y*y,a=m*m;return[w*(.8707-.131979*m+a*(a*(.003971*m-.001529*a)-.013791)),y*(1.007226+m*(.015085+a*(.028874*m-.044475-.005916*a)))]}function S(){return(0,u.c)(i).scale(175.295)}i.invert=function(w,y){var m,a=y,c=25;do{var h=a*a,p=h*h;a-=m=(a*(1.007226+h*(.015085+p*(.028874*h-.044475-.005916*p)))-y)/(1.007226+h*(.045255+p*(.259866*h-.311325-.06507600000000001*p)))}while((0,b.a2)(m)>b.Gg&&--c>0);return[w/(.8707+(h=a*a)*(h*(h*h*h*(.003971-.001529*h)-.013791)-.131979)),a]}},4888:function(d,s,n){n.d(s,{c:function(){return w},t:function(){return S}});var u=n(64528),b=n(62280),i=n(87952);function S(y,m){return[(0,u.W8)(m)*(0,u.g$)(y),(0,u.g$)(m)]}function w(){return(0,i.c)(S).scale(249.5).clipAngle(90+u.Gg)}S.invert=(0,b.g)(u.qR)},92992:function(d,s,n){n.d(s,{O:function(){return S},c:function(){return a}});var u=n(68120),b=n(64528);function i(c,h){return[(0,b.a2)(c)>b.pi?c+Math.round(-c/b.kD)*b.kD:c,h]}function S(c,h,p){return(c%=b.kD)?h||p?(0,u.c)(y(c),m(h,p)):y(c):h||p?m(h,p):i}function w(c){return function(h,p){return[(h+=c)>b.pi?h-b.kD:h<-b.pi?h+b.kD:h,p]}}function y(c){var h=w(c);return h.invert=w(-c),h}function m(c,h){var p=(0,b.W8)(c),v=(0,b.g$)(c),_=(0,b.W8)(h),O=(0,b.g$)(h);function C(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*p+T*v;return[(0,b.WE)(P*_-L*O,T*p-A*v),(0,b.qR)(L*_+P*O)]}return C.invert=function(x,R){var M=(0,b.W8)(R),T=(0,b.W8)(x)*M,P=(0,b.g$)(x)*M,A=(0,b.g$)(R),L=A*_-P*O;return[(0,b.WE)(P*_+A*O,T*p+L*v),(0,b.qR)(L*p-T*v)]},C}function a(c){function h(p){return(p=c(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p}return c=S(c[0]*b.qw,c[1]*b.qw,c.length>2?c[2]*b.qw:0),h.invert=function(p){return(p=c.invert(p[0]*b.qw,p[1]*b.qw))[0]*=b.oh,p[1]*=b.oh,p},h}i.invert=i},16016:function(d,s,n){function u(m,a){m&&i.hasOwnProperty(m.type)&&i[m.type](m,a)}n.d(s,{c:function(){return y}});var b={Feature:function(m,a){u(m.geometry,a)},FeatureCollection:function(m,a){for(var c=m.features,h=-1,p=c.length;++h=0;)Re+=We[Ue].value;else Re=1;ke.value=Re}function y(ke,Re){var We,Ue,Ze,Ye,Je,Me=new h(ke),Fe=+ke.value&&(Me.value=ke.value),je=[Me];for(Re==null&&(Re=m);We=je.pop();)if(Fe&&(We.value=+We.data.value),(Ze=Re(We.data))&&(Je=Ze.length))for(We.children=new Array(Je),Ye=Je-1;Ye>=0;--Ye)je.push(Ue=We.children[Ye]=new h(Ze[Ye])),Ue.parent=We,Ue.depth=We.depth+1;return Me.eachBefore(c)}function m(ke){return ke.children}function a(ke){ke.data=ke.data.data}function c(ke){var Re=0;do ke.height=Re;while((ke=ke.parent)&&ke.height<++Re)}function h(ke){this.data=ke,this.depth=this.height=0,this.parent=null}n.r(s),n.d(s,{cluster:function(){return S},hierarchy:function(){return y},pack:function(){return U},packEnclose:function(){return v},packSiblings:function(){return I},partition:function(){return q},stratify:function(){return ae},tree:function(){return Te},treemap:function(){return Qe},treemapBinary:function(){return Ve},treemapDice:function(){return re},treemapResquarify:function(){return Oe},treemapSlice:function(){return Pe},treemapSliceDice:function(){return $e},treemapSquarify:function(){return De}}),h.prototype=y.prototype={constructor:h,count:function(){return this.eachAfter(w)},each:function(ke){var Re,We,Ue,Ze,Ye=this,Je=[Ye];do for(Re=Je.reverse(),Je=[];Ye=Re.pop();)if(ke(Ye),We=Ye.children)for(Ue=0,Ze=We.length;Ue=0;--We)Ze.push(Re[We]);return this},sum:function(ke){return this.eachAfter(function(Re){for(var We=+ke(Re.data)||0,Ue=Re.children,Ze=Ue&&Ue.length;--Ze>=0;)We+=Ue[Ze].value;Re.value=We})},sort:function(ke){return this.eachBefore(function(Re){Re.children&&Re.children.sort(ke)})},path:function(ke){for(var Re=this,We=function(Ye,Je){if(Ye===Je)return Ye;var Me=Ye.ancestors(),Fe=Je.ancestors(),je=null;for(Ye=Me.pop(),Je=Fe.pop();Ye===Je;)je=Ye,Ye=Me.pop(),Je=Fe.pop();return je}(Re,ke),Ue=[Re];Re!==We;)Re=Re.parent,Ue.push(Re);for(var Ze=Ue.length;ke!==We;)Ue.splice(Ze,0,ke),ke=ke.parent;return Ue},ancestors:function(){for(var ke=this,Re=[ke];ke=ke.parent;)Re.push(ke);return Re},descendants:function(){var ke=[];return this.each(function(Re){ke.push(Re)}),ke},leaves:function(){var ke=[];return this.eachBefore(function(Re){Re.children||ke.push(Re)}),ke},links:function(){var ke=this,Re=[];return ke.each(function(We){We!==ke&&Re.push({source:We.parent,target:We})}),Re},copy:function(){return y(this).eachBefore(a)}};var p=Array.prototype.slice;function v(ke){for(var Re,We,Ue=0,Ze=(ke=function(Je){for(var Me,Fe,je=Je.length;je;)Fe=Math.random()*je--|0,Me=Je[je],Je[je]=Je[Fe],Je[Fe]=Me;return Je}(p.call(ke))).length,Ye=[];Ue0&&We*We>Ue*Ue+Ze*Ze}function x(ke,Re){for(var We=0;We(Je*=Je)?(Ue=(je+Je-Ze)/(2*je),Ye=Math.sqrt(Math.max(0,Je/je-Ue*Ue)),We.x=ke.x-Ue*Me-Ye*Fe,We.y=ke.y-Ue*Fe+Ye*Me):(Ue=(je+Ze-Je)/(2*je),Ye=Math.sqrt(Math.max(0,Ze/je-Ue*Ue)),We.x=Re.x+Ue*Me-Ye*Fe,We.y=Re.y+Ue*Fe+Ye*Me)):(We.x=Re.x+We.r,We.y=Re.y)}function A(ke,Re){var We=ke.r+Re.r-1e-6,Ue=Re.x-ke.x,Ze=Re.y-ke.y;return We>0&&We*We>Ue*Ue+Ze*Ze}function L(ke){var Re=ke._,We=ke.next._,Ue=Re.r+We.r,Ze=(Re.x*We.r+We.x*Re.r)/Ue,Ye=(Re.y*We.r+We.y*Re.r)/Ue;return Ze*Ze+Ye*Ye}function D(ke){this._=ke,this.next=null,this.previous=null}function k(ke){if(!(Ze=ke.length))return 0;var Re,We,Ue,Ze,Ye,Je,Me,Fe,je,tt,ot;if((Re=ke[0]).x=0,Re.y=0,!(Ze>1))return Re.r;if(We=ke[1],Re.x=-We.r,We.x=Re.r,We.y=0,!(Ze>2))return Re.r+We.r;P(We,Re,Ue=ke[2]),Re=new D(Re),We=new D(We),Ue=new D(Ue),Re.next=Ue.previous=We,We.next=Re.previous=Ue,Ue.next=We.previous=Re;e:for(Me=3;Me0)throw new Error("cycle");return Je}return We.id=function(Ue){return arguments.length?(ke=z(Ue),We):ke},We.parentId=function(Ue){return arguments.length?(Re=z(Ue),We):Re},We}function ce(ke,Re){return ke.parent===Re.parent?1:2}function de(ke){var Re=ke.children;return Re?Re[0]:ke.t}function ye(ke){var Re=ke.children;return Re?Re[Re.length-1]:ke.t}function ve(ke,Re,We){var Ue=We/(Re.i-ke.i);Re.c-=Ue,Re.s+=We,ke.c+=Ue,Re.z+=We,Re.m+=We}function _e(ke,Re,We){return ke.a.parent===Re.parent?ke.a:We}function we(ke,Re){this._=ke,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Re}function Te(){var ke=ce,Re=1,We=1,Ue=null;function Ze(Fe){var je=function(zt){for(var Yt,ln,tn,Et,Ot,cn=new we(zt,0),Cn=[cn];Yt=Cn.pop();)if(tn=Yt._.children)for(Yt.children=new Array(Ot=tn.length),Et=Ot-1;Et>=0;--Et)Cn.push(ln=Yt.children[Et]=new we(tn[Et],Et)),ln.parent=Yt;return(cn.parent=new we(null,0)).children=[cn],cn}(Fe);if(je.eachAfter(Ye),je.parent.m=-je.z,je.eachBefore(Je),Ue)Fe.eachBefore(Me);else{var tt=Fe,ot=Fe,Ge=Fe;Fe.eachBefore(function(zt){zt.xot.x&&(ot=zt),zt.depth>Ge.depth&&(Ge=zt)});var ht=tt===ot?1:ke(tt,ot)/2,pt=ht-tt.x,St=Re/(ot.x+ht+pt),Ft=We/(Ge.depth||1);Fe.eachBefore(function(zt){zt.x=(zt.x+pt)*St,zt.y=zt.depth*Ft})}return Fe}function Ye(Fe){var je=Fe.children,tt=Fe.parent.children,ot=Fe.i?tt[Fe.i-1]:null;if(je){(function(ht){for(var pt,St=0,Ft=0,zt=ht.children,Yt=zt.length;--Yt>=0;)(pt=zt[Yt]).z+=St,pt.m+=St,St+=pt.s+(Ft+=pt.c)})(Fe);var Ge=(je[0].z+je[je.length-1].z)/2;ot?(Fe.z=ot.z+ke(Fe._,ot._),Fe.m=Fe.z-Ge):Fe.z=Ge}else ot&&(Fe.z=ot.z+ke(Fe._,ot._));Fe.parent.A=function(ht,pt,St){if(pt){for(var Ft,zt=ht,Yt=ht,ln=pt,tn=zt.parent.children[0],Et=zt.m,Ot=Yt.m,cn=ln.m,Cn=tn.m;ln=ye(ln),zt=de(zt),ln&&zt;)tn=de(tn),(Yt=ye(Yt)).a=ht,(Ft=ln.z+cn-zt.z-Et+ke(ln._,zt._))>0&&(ve(_e(ln,ht,St),ht,Ft),Et+=Ft,Ot+=Ft),cn+=ln.m,Et+=zt.m,Cn+=tn.m,Ot+=Yt.m;ln&&!ye(Yt)&&(Yt.t=ln,Yt.m+=cn-Ot),zt&&!de(tn)&&(tn.t=zt,tn.m+=Et-Cn,St=ht)}return St}(Fe,ot,Fe.parent.A||tt[0])}function Je(Fe){Fe._.x=Fe.z+Fe.parent.m,Fe.m+=Fe.parent.m}function Me(Fe){Fe.x*=Re,Fe.y=Fe.depth*We}return Ze.separation=function(Fe){return arguments.length?(ke=Fe,Ze):ke},Ze.size=function(Fe){return arguments.length?(Ue=!1,Re=+Fe[0],We=+Fe[1],Ze):Ue?null:[Re,We]},Ze.nodeSize=function(Fe){return arguments.length?(Ue=!0,Re=+Fe[0],We=+Fe[1],Ze):Ue?[Re,We]:null},Ze}function Pe(ke,Re,We,Ue,Ze){for(var Ye,Je=ke.children,Me=-1,Fe=Je.length,je=ke.value&&(Ze-We)/ke.value;++MeGe&&(Ge=Me),Ft=tt*tt*St,(ht=Math.max(Ge/Ft,Ft/ot))>pt){tt-=Me;break}pt=ht}zt.push(Je={value:tt,dice:Fe1?Ue:1)},We}(Ie);function Qe(){var ke=De,Re=!1,We=1,Ue=1,Ze=[0],Ye=$,Je=$,Me=$,Fe=$,je=$;function tt(Ge){return Ge.x0=Ge.y0=0,Ge.x1=We,Ge.y1=Ue,Ge.eachBefore(ot),Ze=[0],Re&&Ge.eachBefore(K),Ge}function ot(Ge){var ht=Ze[Ge.depth],pt=Ge.x0+ht,St=Ge.y0+ht,Ft=Ge.x1-ht,zt=Ge.y1-ht;Ft=Ge-1){var Yt=Me[ot];return Yt.x0=pt,Yt.y0=St,Yt.x1=Ft,void(Yt.y1=zt)}for(var ln=je[ot],tn=ht/2+ln,Et=ot+1,Ot=Ge-1;Et>>1;je[cn]zt-St){var Sn=(pt*Pn+Ft*Cn)/ht;tt(ot,Et,Cn,pt,St,Sn,zt),tt(Et,Ge,Pn,Sn,St,Ft,zt)}else{var vt=(St*Pn+zt*Cn)/ht;tt(ot,Et,Cn,pt,St,Ft,vt),tt(Et,Ge,Pn,pt,vt,Ft,zt)}})(0,Fe,ke.value,Re,We,Ue,Ze)}function $e(ke,Re,We,Ue,Ze){(1&ke.depth?Pe:re)(ke,Re,We,Ue,Ze)}var Oe=function ke(Re){function We(Ue,Ze,Ye,Je,Me){if((Fe=Ue._squarify)&&Fe.ratio===Re)for(var Fe,je,tt,ot,Ge,ht=-1,pt=Fe.length,St=Ue.value;++ht1?Ue:1)},We}(Ie)},10132:function(d,s,n){n.d(s,{ak:function(){return C}});var u=Math.PI,b=2*u,i=1e-6,S=b-i;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function y(){return new w}w.prototype=y.prototype={constructor:w,moveTo:function(x,R){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(x,R){this._+="L"+(this._x1=+x)+","+(this._y1=+R)},quadraticCurveTo:function(x,R,M,T){this._+="Q"+ +x+","+ +R+","+(this._x1=+M)+","+(this._y1=+T)},bezierCurveTo:function(x,R,M,T,P,A){this._+="C"+ +x+","+ +R+","+ +M+","+ +T+","+(this._x1=+P)+","+(this._y1=+A)},arcTo:function(x,R,M,T,P){x=+x,R=+R,M=+M,T=+T,P=+P;var A=this._x1,L=this._y1,D=M-x,k=T-R,I=A-x,z=L-R,$=I*I+z*z;if(P<0)throw new Error("negative radius: "+P);if(this._x1===null)this._+="M"+(this._x1=x)+","+(this._y1=R);else if($>i)if(Math.abs(z*D-k*I)>i&&P){var Q=M-A,j=T-L,U=D*D+k*k,X=Q*Q+j*j,te=Math.sqrt(U),Z=Math.sqrt($),K=P*Math.tan((u-Math.acos((U+$-X)/(2*te*Z)))/2),re=K/Z,q=K/te;Math.abs(re-1)>i&&(this._+="L"+(x+re*I)+","+(R+re*z)),this._+="A"+P+","+P+",0,0,"+ +(z*Q>I*j)+","+(this._x1=x+q*D)+","+(this._y1=R+q*k)}else this._+="L"+(this._x1=x)+","+(this._y1=R)},arc:function(x,R,M,T,P,A){x=+x,R=+R,A=!!A;var L=(M=+M)*Math.cos(T),D=M*Math.sin(T),k=x+L,I=R+D,z=1^A,$=A?T-P:P-T;if(M<0)throw new Error("negative radius: "+M);this._x1===null?this._+="M"+k+","+I:(Math.abs(this._x1-k)>i||Math.abs(this._y1-I)>i)&&(this._+="L"+k+","+I),M&&($<0&&($=$%b+b),$>S?this._+="A"+M+","+M+",0,1,"+z+","+(x-L)+","+(R-D)+"A"+M+","+M+",0,1,"+z+","+(this._x1=k)+","+(this._y1=I):$>i&&(this._+="A"+M+","+M+",0,"+ +($>=u)+","+z+","+(this._x1=x+M*Math.cos(P))+","+(this._y1=R+M*Math.sin(P))))},rect:function(x,R,M,T){this._+="M"+(this._x0=this._x1=+x)+","+(this._y0=this._y1=+R)+"h"+ +M+"v"+ +T+"h"+-M+"Z"},toString:function(){return this._}};var m=y,a=Array.prototype.slice;function c(x){return function(){return x}}function h(x){return x[0]}function p(x){return x[1]}function v(x){return x.source}function _(x){return x.target}function O(x,R,M,T,P){x.moveTo(R,M),x.bezierCurveTo(R=(R+T)/2,M,R,P,T,P)}function C(){return function(x){var R=v,M=_,T=h,P=p,A=null;function L(){var D,k=a.call(arguments),I=R.apply(this,k),z=M.apply(this,k);if(A||(A=D=m()),x(A,+T.apply(this,(k[0]=I,k)),+P.apply(this,k),+T.apply(this,(k[0]=z,k)),+P.apply(this,k)),D)return A=null,D+""||null}return L.source=function(D){return arguments.length?(R=D,L):R},L.target=function(D){return arguments.length?(M=D,L):M},L.x=function(D){return arguments.length?(T=typeof D=="function"?D:c(+D),L):T},L.y=function(D){return arguments.length?(P=typeof D=="function"?D:c(+D),L):P},L.context=function(D){return arguments.length?(A=D??null,L):A},L}(O)}},94336:function(d,s,n){n.d(s,{Yn:function(){return v},m_:function(){return h},E9:function(){return _}});var u=n(8208),b=n(58931),i=n(46192),S=n(68936),w=n(32171),y=n(53528);function m(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L);return Ot.setFullYear(Et.y),Ot}return new Date(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L)}function a(Et){if(0<=Et.y&&Et.y<100){var Ot=new Date(Date.UTC(-1,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L));return Ot.setUTCFullYear(Et.y),Ot}return new Date(Date.UTC(Et.y,Et.m,Et.d,Et.H,Et.M,Et.S,Et.L))}function c(Et,Ot,cn){return{y:Et,m:Ot,d:cn,H:0,M:0,S:0,L:0}}function h(Et){var Ot=Et.dateTime,cn=Et.date,Cn=Et.time,Pn=Et.periods,Sn=Et.days,vt=Et.shortDays,xt=Et.months,st=Et.shortMonths,bt=P(Pn),Vt=A(Pn),Dt=P(Sn),it=A(Sn),at=P(vt),Bt=A(vt),_t=P(xt),qt=A(xt),en=P(st),Jt=A(st),Zt={a:function(An){return vt[An.getDay()]},A:function(An){return Sn[An.getDay()]},b:function(An){return st[An.getMonth()]},B:function(An){return xt[An.getMonth()]},c:null,d:ae,e:ae,f:_e,H:ce,I:de,j:ye,L:ve,m:we,M:Te,p:function(An){return Pn[+(An.getHours()>=12)]},q:function(An){return 1+~~(An.getMonth()/3)},Q:ln,s:tn,S:Pe,u:Ie,U:ze,V:De,w:Qe,W:Ve,x:null,X:null,y:$e,Y:Oe,Z:ke,"%":Yt},Nt={a:function(An){return vt[An.getUTCDay()]},A:function(An){return Sn[An.getUTCDay()]},b:function(An){return st[An.getUTCMonth()]},B:function(An){return xt[An.getUTCMonth()]},c:null,d:Re,e:Re,f:Je,H:We,I:Ue,j:Ze,L:Ye,m:Me,M:Fe,p:function(An){return Pn[+(An.getUTCHours()>=12)]},q:function(An){return 1+~~(An.getUTCMonth()/3)},Q:ln,s:tn,S:je,u:tt,U:ot,V:Ge,w:ht,W:pt,x:null,X:null,y:St,Y:Ft,Z:zt,"%":Yt},sn={a:function(An,Kn,fr){var Un=at.exec(Kn.slice(fr));return Un?(An.w=Bt[Un[0].toLowerCase()],fr+Un[0].length):-1},A:function(An,Kn,fr){var Un=Dt.exec(Kn.slice(fr));return Un?(An.w=it[Un[0].toLowerCase()],fr+Un[0].length):-1},b:function(An,Kn,fr){var Un=en.exec(Kn.slice(fr));return Un?(An.m=Jt[Un[0].toLowerCase()],fr+Un[0].length):-1},B:function(An,Kn,fr){var Un=_t.exec(Kn.slice(fr));return Un?(An.m=qt[Un[0].toLowerCase()],fr+Un[0].length):-1},c:function(An,Kn,fr){return wn(An,Ot,Kn,fr)},d:te,e:te,f:ee,H:K,I:K,j:Z,L:Y,m:X,M:re,p:function(An,Kn,fr){var Un=bt.exec(Kn.slice(fr));return Un?(An.p=Vt[Un[0].toLowerCase()],fr+Un[0].length):-1},q:U,Q:pe,s:se,S:q,u:D,U:k,V:I,w:L,W:z,x:function(An,Kn,fr){return wn(An,cn,Kn,fr)},X:function(An,Kn,fr){return wn(An,Cn,Kn,fr)},y:Q,Y:$,Z:j,"%":me};function rn(An,Kn){return function(fr){var Un,Zn,tr,Br=[],$r=-1,vr=0,qn=An.length;for(fr instanceof Date||(fr=new Date(+fr));++$r53)return null;"w"in tr||(tr.w=1),"Z"in tr?(Zn=(Un=a(c(tr.y,0,1))).getUTCDay(),Un=Zn>4||Zn===0?u.ot.ceil(Un):(0,u.ot)(Un),Un=b.c.offset(Un,7*(tr.V-1)),tr.y=Un.getUTCFullYear(),tr.m=Un.getUTCMonth(),tr.d=Un.getUTCDate()+(tr.w+6)%7):(Zn=(Un=m(c(tr.y,0,1))).getDay(),Un=Zn>4||Zn===0?i.qT.ceil(Un):(0,i.qT)(Un),Un=S.c.offset(Un,7*(tr.V-1)),tr.y=Un.getFullYear(),tr.m=Un.getMonth(),tr.d=Un.getDate()+(tr.w+6)%7)}else("W"in tr||"U"in tr)&&("w"in tr||(tr.w="u"in tr?tr.u%7:"W"in tr?1:0),Zn="Z"in tr?a(c(tr.y,0,1)).getUTCDay():m(c(tr.y,0,1)).getDay(),tr.m=0,tr.d="W"in tr?(tr.w+6)%7+7*tr.W-(Zn+5)%7:tr.w+7*tr.U-(Zn+6)%7);return"Z"in tr?(tr.H+=tr.Z/100|0,tr.M+=tr.Z%100,a(tr)):m(tr)}}function wn(An,Kn,fr,Un){for(var Zn,tr,Br=0,$r=Kn.length,vr=fr.length;Br<$r;){if(Un>=vr)return-1;if((Zn=Kn.charCodeAt(Br++))===37){if(Zn=Kn.charAt(Br++),!(tr=sn[Zn in O?Kn.charAt(Br++):Zn])||(Un=tr(An,fr,Un))<0)return-1}else if(Zn!=fr.charCodeAt(Un++))return-1}return Un}return Zt.x=rn(cn,Zt),Zt.X=rn(Cn,Zt),Zt.c=rn(Ot,Zt),Nt.x=rn(cn,Nt),Nt.X=rn(Cn,Nt),Nt.c=rn(Ot,Nt),{format:function(An){var Kn=rn(An+="",Zt);return Kn.toString=function(){return An},Kn},parse:function(An){var Kn=_n(An+="",!1);return Kn.toString=function(){return An},Kn},utcFormat:function(An){var Kn=rn(An+="",Nt);return Kn.toString=function(){return An},Kn},utcParse:function(An){var Kn=_n(An+="",!0);return Kn.toString=function(){return An},Kn}}}var p,v,_,O={"-":"",_:" ",0:"0"},C=/^\s*\d+/,x=/^%/,R=/[\\^$*+?|[\]().{}]/g;function M(Et,Ot,cn){var Cn=Et<0?"-":"",Pn=(Cn?-Et:Et)+"",Sn=Pn.length;return Cn+(Sn68?1900:2e3),cn+Cn[0].length):-1}function j(Et,Ot,cn){var Cn=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ot.slice(cn,cn+6));return Cn?(Et.Z=Cn[1]?0:-(Cn[2]+(Cn[3]||"00")),cn+Cn[0].length):-1}function U(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+1));return Cn?(Et.q=3*Cn[0]-3,cn+Cn[0].length):-1}function X(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.m=Cn[0]-1,cn+Cn[0].length):-1}function te(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.d=+Cn[0],cn+Cn[0].length):-1}function Z(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.m=0,Et.d=+Cn[0],cn+Cn[0].length):-1}function K(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.H=+Cn[0],cn+Cn[0].length):-1}function re(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.M=+Cn[0],cn+Cn[0].length):-1}function q(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+2));return Cn?(Et.S=+Cn[0],cn+Cn[0].length):-1}function Y(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+3));return Cn?(Et.L=+Cn[0],cn+Cn[0].length):-1}function ee(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn,cn+6));return Cn?(Et.L=Math.floor(Cn[0]/1e3),cn+Cn[0].length):-1}function me(Et,Ot,cn){var Cn=x.exec(Ot.slice(cn,cn+1));return Cn?cn+Cn[0].length:-1}function pe(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.Q=+Cn[0],cn+Cn[0].length):-1}function se(Et,Ot,cn){var Cn=C.exec(Ot.slice(cn));return Cn?(Et.s=+Cn[0],cn+Cn[0].length):-1}function ae(Et,Ot){return M(Et.getDate(),Ot,2)}function ce(Et,Ot){return M(Et.getHours(),Ot,2)}function de(Et,Ot){return M(Et.getHours()%12||12,Ot,2)}function ye(Et,Ot){return M(1+S.c.count((0,w.c)(Et),Et),Ot,3)}function ve(Et,Ot){return M(Et.getMilliseconds(),Ot,3)}function _e(Et,Ot){return ve(Et,Ot)+"000"}function we(Et,Ot){return M(Et.getMonth()+1,Ot,2)}function Te(Et,Ot){return M(Et.getMinutes(),Ot,2)}function Pe(Et,Ot){return M(Et.getSeconds(),Ot,2)}function Ie(Et){var Ot=Et.getDay();return Ot===0?7:Ot}function ze(Et,Ot){return M(i.uU.count((0,w.c)(Et)-1,Et),Ot,2)}function De(Et,Ot){var cn=Et.getDay();return Et=cn>=4||cn===0?(0,i.kD)(Et):i.kD.ceil(Et),M(i.kD.count((0,w.c)(Et),Et)+((0,w.c)(Et).getDay()===4),Ot,2)}function Qe(Et){return Et.getDay()}function Ve(Et,Ot){return M(i.qT.count((0,w.c)(Et)-1,Et),Ot,2)}function $e(Et,Ot){return M(Et.getFullYear()%100,Ot,2)}function Oe(Et,Ot){return M(Et.getFullYear()%1e4,Ot,4)}function ke(Et){var Ot=Et.getTimezoneOffset();return(Ot>0?"-":(Ot*=-1,"+"))+M(Ot/60|0,"0",2)+M(Ot%60,"0",2)}function Re(Et,Ot){return M(Et.getUTCDate(),Ot,2)}function We(Et,Ot){return M(Et.getUTCHours(),Ot,2)}function Ue(Et,Ot){return M(Et.getUTCHours()%12||12,Ot,2)}function Ze(Et,Ot){return M(1+b.c.count((0,y.c)(Et),Et),Ot,3)}function Ye(Et,Ot){return M(Et.getUTCMilliseconds(),Ot,3)}function Je(Et,Ot){return Ye(Et,Ot)+"000"}function Me(Et,Ot){return M(Et.getUTCMonth()+1,Ot,2)}function Fe(Et,Ot){return M(Et.getUTCMinutes(),Ot,2)}function je(Et,Ot){return M(Et.getUTCSeconds(),Ot,2)}function tt(Et){var Ot=Et.getUTCDay();return Ot===0?7:Ot}function ot(Et,Ot){return M(u.EV.count((0,y.c)(Et)-1,Et),Ot,2)}function Ge(Et,Ot){var cn=Et.getUTCDay();return Et=cn>=4||cn===0?(0,u.yA)(Et):u.yA.ceil(Et),M(u.yA.count((0,y.c)(Et),Et)+((0,y.c)(Et).getUTCDay()===4),Ot,2)}function ht(Et){return Et.getUTCDay()}function pt(Et,Ot){return M(u.ot.count((0,y.c)(Et)-1,Et),Ot,2)}function St(Et,Ot){return M(Et.getUTCFullYear()%100,Ot,2)}function Ft(Et,Ot){return M(Et.getUTCFullYear()%1e4,Ot,4)}function zt(){return"+0000"}function Yt(){return"%"}function ln(Et){return+Et}function tn(Et){return Math.floor(+Et/1e3)}p=h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),v=p.format,p.parse,_=p.utcFormat,p.utcParse},68936:function(d,s,n){n.d(s,{m:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setHours(0,0,0,0)},function(w,y){w.setDate(w.getDate()+y)},function(w,y){return(y-w-(y.getTimezoneOffset()-w.getTimezoneOffset())*b.iy)/b.SK},function(w){return w.getDate()-1});s.c=i;var S=i.range},69792:function(d,s,n){n.d(s,{KK:function(){return w},SK:function(){return S},cg:function(){return i},iy:function(){return b},yc:function(){return u}});var u=1e3,b=6e4,i=36e5,S=864e5,w=6048e5},73220:function(d,s,n){n.r(s),n.d(s,{timeDay:function(){return C.c},timeDays:function(){return C.m},timeFriday:function(){return x.iB},timeFridays:function(){return x.sJ},timeHour:function(){return _},timeHours:function(){return O},timeInterval:function(){return u.c},timeMillisecond:function(){return i},timeMilliseconds:function(){return S},timeMinute:function(){return h},timeMinutes:function(){return p},timeMonday:function(){return x.qT},timeMondays:function(){return x.QP},timeMonth:function(){return M},timeMonths:function(){return T},timeSaturday:function(){return x.Wc},timeSaturdays:function(){return x.aI},timeSecond:function(){return m},timeSeconds:function(){return a},timeSunday:function(){return x.uU},timeSundays:function(){return x.Ab},timeThursday:function(){return x.kD},timeThursdays:function(){return x.eC},timeTuesday:function(){return x.Mf},timeTuesdays:function(){return x.Oc},timeWednesday:function(){return x.eg},timeWednesdays:function(){return x.sn},timeWeek:function(){return x.uU},timeWeeks:function(){return x.Ab},timeYear:function(){return P.c},timeYears:function(){return P.Q},utcDay:function(){return $.c},utcDays:function(){return $.o},utcFriday:function(){return Q.od},utcFridays:function(){return Q.iG},utcHour:function(){return I},utcHours:function(){return z},utcMillisecond:function(){return i},utcMilliseconds:function(){return S},utcMinute:function(){return L},utcMinutes:function(){return D},utcMonday:function(){return Q.ot},utcMondays:function(){return Q.iO},utcMonth:function(){return U},utcMonths:function(){return X},utcSaturday:function(){return Q.Ad},utcSaturdays:function(){return Q.K8},utcSecond:function(){return m},utcSeconds:function(){return a},utcSunday:function(){return Q.EV},utcSundays:function(){return Q.Wq},utcThursday:function(){return Q.yA},utcThursdays:function(){return Q.ob},utcTuesday:function(){return Q.sG},utcTuesdays:function(){return Q.kl},utcWednesday:function(){return Q._6},utcWednesdays:function(){return Q.W_},utcWeek:function(){return Q.EV},utcWeeks:function(){return Q.Wq},utcYear:function(){return te.c},utcYears:function(){return te.i}});var u=n(81628),b=(0,u.c)(function(){},function(Z,K){Z.setTime(+Z+K)},function(Z,K){return K-Z});b.every=function(Z){return Z=Math.floor(Z),isFinite(Z)&&Z>0?Z>1?(0,u.c)(function(K){K.setTime(Math.floor(K/Z)*Z)},function(K,re){K.setTime(+K+re*Z)},function(K,re){return(re-K)/Z}):b:null};var i=b,S=b.range,w=n(69792),y=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds())},function(Z,K){Z.setTime(+Z+K*w.yc)},function(Z,K){return(K-Z)/w.yc},function(Z){return Z.getUTCSeconds()}),m=y,a=y.range,c=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getMinutes()}),h=c,p=c.range,v=(0,u.c)(function(Z){Z.setTime(Z-Z.getMilliseconds()-Z.getSeconds()*w.yc-Z.getMinutes()*w.iy)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getHours()}),_=v,O=v.range,C=n(68936),x=n(46192),R=(0,u.c)(function(Z){Z.setDate(1),Z.setHours(0,0,0,0)},function(Z,K){Z.setMonth(Z.getMonth()+K)},function(Z,K){return K.getMonth()-Z.getMonth()+12*(K.getFullYear()-Z.getFullYear())},function(Z){return Z.getMonth()}),M=R,T=R.range,P=n(32171),A=(0,u.c)(function(Z){Z.setUTCSeconds(0,0)},function(Z,K){Z.setTime(+Z+K*w.iy)},function(Z,K){return(K-Z)/w.iy},function(Z){return Z.getUTCMinutes()}),L=A,D=A.range,k=(0,u.c)(function(Z){Z.setUTCMinutes(0,0,0)},function(Z,K){Z.setTime(+Z+K*w.cg)},function(Z,K){return(K-Z)/w.cg},function(Z){return Z.getUTCHours()}),I=k,z=k.range,$=n(58931),Q=n(8208),j=(0,u.c)(function(Z){Z.setUTCDate(1),Z.setUTCHours(0,0,0,0)},function(Z,K){Z.setUTCMonth(Z.getUTCMonth()+K)},function(Z,K){return K.getUTCMonth()-Z.getUTCMonth()+12*(K.getUTCFullYear()-Z.getUTCFullYear())},function(Z){return Z.getUTCMonth()}),U=j,X=j.range,te=n(53528)},81628:function(d,s,n){n.d(s,{c:function(){return i}});var u=new Date,b=new Date;function i(S,w,y,m){function a(c){return S(c=arguments.length===0?new Date:new Date(+c)),c}return a.floor=function(c){return S(c=new Date(+c)),c},a.ceil=function(c){return S(c=new Date(c-1)),w(c,1),S(c),c},a.round=function(c){var h=a(c),p=a.ceil(c);return c-h0))return _;do _.push(v=new Date(+c)),w(c,p),S(c);while(v=h)for(;S(h),!c(h);)h.setTime(h-1)},function(h,p){if(h>=h)if(p<0)for(;++p<=0;)for(;w(h,-1),!c(h););else for(;--p>=0;)for(;w(h,1),!c(h););})},y&&(a.count=function(c,h){return u.setTime(+c),b.setTime(+h),S(u),S(b),Math.floor(y(u,b))},a.every=function(c){return c=Math.floor(c),isFinite(c)&&c>0?c>1?a.filter(m?function(h){return m(h)%c==0}:function(h){return a.count(0,h)%c==0}):a:null}),a}},58931:function(d,s,n){n.d(s,{o:function(){return S}});var u=n(81628),b=n(69792),i=(0,u.c)(function(w){w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCDate(w.getUTCDate()+y)},function(w,y){return(y-w)/b.SK},function(w){return w.getUTCDate()-1});s.c=i;var S=i.range},8208:function(d,s,n){n.d(s,{Ad:function(){return h},EV:function(){return S},K8:function(){return R},W_:function(){return O},Wq:function(){return p},_6:function(){return m},iG:function(){return x},iO:function(){return v},kl:function(){return _},ob:function(){return C},od:function(){return c},ot:function(){return w},sG:function(){return y},yA:function(){return a}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-M)%7),T.setUTCHours(0,0,0,0)},function(T,P){T.setUTCDate(T.getUTCDate()+7*P)},function(T,P){return(P-T)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},53528:function(d,s,n){n.d(s,{i:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setUTCMonth(0,1),S.setUTCHours(0,0,0,0)},function(S,w){S.setUTCFullYear(S.getUTCFullYear()+w)},function(S,w){return w.getUTCFullYear()-S.getUTCFullYear()},function(S){return S.getUTCFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/S)*S),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,y){w.setUTCFullYear(w.getUTCFullYear()+y*S)}):null},s.c=b;var i=b.range},46192:function(d,s,n){n.d(s,{Ab:function(){return p},Mf:function(){return y},Oc:function(){return _},QP:function(){return v},Wc:function(){return h},aI:function(){return R},eC:function(){return C},eg:function(){return m},iB:function(){return c},kD:function(){return a},qT:function(){return w},sJ:function(){return x},sn:function(){return O},uU:function(){return S}});var u=n(81628),b=n(69792);function i(M){return(0,u.c)(function(T){T.setDate(T.getDate()-(T.getDay()+7-M)%7),T.setHours(0,0,0,0)},function(T,P){T.setDate(T.getDate()+7*P)},function(T,P){return(P-T-(P.getTimezoneOffset()-T.getTimezoneOffset())*b.iy)/b.KK})}var S=i(0),w=i(1),y=i(2),m=i(3),a=i(4),c=i(5),h=i(6),p=S.range,v=w.range,_=y.range,O=m.range,C=a.range,x=c.range,R=h.range},32171:function(d,s,n){n.d(s,{Q:function(){return i}});var u=n(81628),b=(0,u.c)(function(S){S.setMonth(0,1),S.setHours(0,0,0,0)},function(S,w){S.setFullYear(S.getFullYear()+w)},function(S,w){return w.getFullYear()-S.getFullYear()},function(S){return S.getFullYear()});b.every=function(S){return isFinite(S=Math.floor(S))&&S>0?(0,u.c)(function(w){w.setFullYear(Math.floor(w.getFullYear()/S)*S),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,y){w.setFullYear(w.getFullYear()+y*S)}):null},s.c=b;var i=b.range},64348:function(d,s,n){var u=n(39640)(),b=n(53664),i=u&&b("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch{i=!1}var S=b("%SyntaxError%"),w=b("%TypeError%"),y=n(2304);d.exports=function(m,a,c){if(!m||typeof m!="object"&&typeof m!="function")throw new w("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new w("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new w("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new w("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new w("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new w("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,_=arguments.length>6&&arguments[6],O=!!y&&y(m,a);if(i)i(m,a,{configurable:v===null&&O?O.configurable:!v,enumerable:h===null&&O?O.enumerable:!h,value:c,writable:p===null&&O?O.writable:!p});else{if(!_&&(h||p||v))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");m[a]=c}}},81288:function(d,s,n){var u=n(41820),b=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,S=Array.prototype.concat,w=Object.defineProperty,y=n(39640)(),m=w&&y,a=function(h,p,v,_){if(p in h){if(_===!0){if(h[p]===v)return}else if(typeof(O=_)!="function"||i.call(O)!=="[object Function]"||!_())return}var O;m?w(h,p,{configurable:!0,enumerable:!1,value:v,writable:!0}):h[p]=v},c=function(h,p){var v=arguments.length>2?arguments[2]:{},_=u(p);b&&(_=S.call(_,Object.getOwnPropertySymbols(p)));for(var O=0;O<_.length;O+=1)a(h,_[O],p[_[O]],v[_[O]])};c.supportsDescriptors=!!m,d.exports=c},31264:function(d){d.exports=function(){for(var s=0;sm*a){var _=(v-p)/m;y[h]=1e3*_}}return y}function b(i){for(var S=[],w=i[0];w<=i[1];w++)for(var y=String.fromCharCode(w),m=i[0];m0)return function(b,i){var S,w;for(S=new Array(b),w=0;w80*$){Q=U=I[0],j=X=I[1];for(var me=$;meU&&(U=te),Z>X&&(X=Z);K=(K=Math.max(U-Q,X-j))!==0?1/K:0}return b(Y,ee,$,Q,j,K),ee}function n(I,z,$,Q,j){var U,X;if(j===k(I,z,$,Q)>0)for(U=z;U<$;U+=Q)X=A(U,I[U],I[U+1],X);else for(U=$-Q;U>=z;U-=Q)X=A(U,I[U],I[U+1],X);return X&&C(X,X.next)&&(L(X),X=X.next),X}function u(I,z){if(!I)return I;z||(z=I);var $,Q=I;do if($=!1,Q.steiner||!C(Q,Q.next)&&O(Q.prev,Q,Q.next)!==0)Q=Q.next;else{if(L(Q),(Q=z=Q.prev)===Q.next)break;$=!0}while($||Q!==z);return z}function b(I,z,$,Q,j,U,X){if(I){!X&&U&&function(re,q,Y,ee){var me=re;do me.z===null&&(me.z=h(me.x,me.y,q,Y,ee)),me.prevZ=me.prev,me.nextZ=me.next,me=me.next;while(me!==re);me.prevZ.nextZ=null,me.prevZ=null,function(pe){var se,ae,ce,de,ye,ve,_e,we,Te=1;do{for(ae=pe,pe=null,ye=null,ve=0;ae;){for(ve++,ce=ae,_e=0,se=0;se0||we>0&&ce;)_e!==0&&(we===0||!ce||ae.z<=ce.z)?(de=ae,ae=ae.nextZ,_e--):(de=ce,ce=ce.nextZ,we--),ye?ye.nextZ=de:pe=de,de.prevZ=ye,ye=de;ae=ce}ye.nextZ=null,Te*=2}while(ve>1)}(me)}(I,Q,j,U);for(var te,Z,K=I;I.prev!==I.next;)if(te=I.prev,Z=I.next,U?S(I,Q,j,U):i(I))z.push(te.i/$),z.push(I.i/$),z.push(Z.i/$),L(I),I=Z.next,K=Z.next;else if((I=Z)===K){X?X===1?b(I=w(u(I),z,$),z,$,Q,j,U,2):X===2&&y(I,z,$,Q,j,U):b(u(I),z,$,Q,j,U,1);break}}}function i(I){var z=I.prev,$=I,Q=I.next;if(O(z,$,Q)>=0)return!1;for(var j=I.next.next;j!==I.prev;){if(v(z.x,z.y,$.x,$.y,Q.x,Q.y,j.x,j.y)&&O(j.prev,j,j.next)>=0)return!1;j=j.next}return!0}function S(I,z,$,Q){var j=I.prev,U=I,X=I.next;if(O(j,U,X)>=0)return!1;for(var te=j.xU.x?j.x>X.x?j.x:X.x:U.x>X.x?U.x:X.x,re=j.y>U.y?j.y>X.y?j.y:X.y:U.y>X.y?U.y:X.y,q=h(te,Z,z,$,Q),Y=h(K,re,z,$,Q),ee=I.prevZ,me=I.nextZ;ee&&ee.z>=q&&me&&me.z<=Y;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0||(ee=ee.prevZ,me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0))return!1;me=me.nextZ}for(;ee&&ee.z>=q;){if(ee!==I.prev&&ee!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,ee.x,ee.y)&&O(ee.prev,ee,ee.next)>=0)return!1;ee=ee.prevZ}for(;me&&me.z<=Y;){if(me!==I.prev&&me!==I.next&&v(j.x,j.y,U.x,U.y,X.x,X.y,me.x,me.y)&&O(me.prev,me,me.next)>=0)return!1;me=me.nextZ}return!0}function w(I,z,$){var Q=I;do{var j=Q.prev,U=Q.next.next;!C(j,U)&&x(j,Q,Q.next,U)&&T(j,U)&&T(U,j)&&(z.push(j.i/$),z.push(Q.i/$),z.push(U.i/$),L(Q),L(Q.next),Q=I=U),Q=Q.next}while(Q!==I);return u(Q)}function y(I,z,$,Q,j,U){var X=I;do{for(var te=X.next.next;te!==X.prev;){if(X.i!==te.i&&_(X,te)){var Z=P(X,te);return X=u(X,X.next),Z=u(Z,Z.next),b(X,z,$,Q,j,U),void b(Z,z,$,Q,j,U)}te=te.next}X=X.next}while(X!==I)}function m(I,z){return I.x-z.x}function a(I,z){if(z=function(Q,j){var U,X=j,te=Q.x,Z=Q.y,K=-1/0;do{if(Z<=X.y&&Z>=X.next.y&&X.next.y!==X.y){var re=X.x+(Z-X.y)*(X.next.x-X.x)/(X.next.y-X.y);if(re<=te&&re>K){if(K=re,re===te){if(Z===X.y)return X;if(Z===X.next.y)return X.next}U=X.x=X.x&&X.x>=ee&&te!==X.x&&v(ZU.x||X.x===U.x&&c(U,X)))&&(U=X,pe=q)),X=X.next;while(X!==Y);return U}(I,z),z){var $=P(z,I);u(z,z.next),u($,$.next)}}function c(I,z){return O(I.prev,I,z.prev)<0&&O(z.next,I,I.next)<0}function h(I,z,$,Q,j){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=32767*(I-$)*j)|I<<8))|I<<4))|I<<2))|I<<1))|(z=1431655765&((z=858993459&((z=252645135&((z=16711935&((z=32767*(z-Q)*j)|z<<8))|z<<4))|z<<2))|z<<1))<<1}function p(I){var z=I,$=I;do(z.x<$.x||z.x===$.x&&z.y<$.y)&&($=z),z=z.next;while(z!==I);return $}function v(I,z,$,Q,j,U,X,te){return(j-X)*(z-te)-(I-X)*(U-te)>=0&&(I-X)*(Q-te)-($-X)*(z-te)>=0&&($-X)*(U-te)-(j-X)*(Q-te)>=0}function _(I,z){return I.next.i!==z.i&&I.prev.i!==z.i&&!function($,Q){var j=$;do{if(j.i!==$.i&&j.next.i!==$.i&&j.i!==Q.i&&j.next.i!==Q.i&&x(j,j.next,$,Q))return!0;j=j.next}while(j!==$);return!1}(I,z)&&(T(I,z)&&T(z,I)&&function($,Q){var j=$,U=!1,X=($.x+Q.x)/2,te=($.y+Q.y)/2;do j.y>te!=j.next.y>te&&j.next.y!==j.y&&X<(j.next.x-j.x)*(te-j.y)/(j.next.y-j.y)+j.x&&(U=!U),j=j.next;while(j!==$);return U}(I,z)&&(O(I.prev,I,z.prev)||O(I,z.prev,z))||C(I,z)&&O(I.prev,I,I.next)>0&&O(z.prev,z,z.next)>0)}function O(I,z,$){return(z.y-I.y)*($.x-z.x)-(z.x-I.x)*($.y-z.y)}function C(I,z){return I.x===z.x&&I.y===z.y}function x(I,z,$,Q){var j=M(O(I,z,$)),U=M(O(I,z,Q)),X=M(O($,Q,I)),te=M(O($,Q,z));return j!==U&&X!==te||!(j!==0||!R(I,$,z))||!(U!==0||!R(I,Q,z))||!(X!==0||!R($,I,Q))||!(te!==0||!R($,z,Q))}function R(I,z,$){return z.x<=Math.max(I.x,$.x)&&z.x>=Math.min(I.x,$.x)&&z.y<=Math.max(I.y,$.y)&&z.y>=Math.min(I.y,$.y)}function M(I){return I>0?1:I<0?-1:0}function T(I,z){return O(I.prev,I,I.next)<0?O(I,z,I.next)>=0&&O(I,I.prev,z)>=0:O(I,z,I.prev)<0||O(I,I.next,z)<0}function P(I,z){var $=new D(I.i,I.x,I.y),Q=new D(z.i,z.x,z.y),j=I.next,U=z.prev;return I.next=z,z.prev=I,$.next=j,j.prev=$,Q.next=$,$.prev=Q,U.next=Q,Q.prev=U,Q}function A(I,z,$,Q){var j=new D(I,z,$);return Q?(j.next=Q.next,j.prev=Q,Q.next.prev=j,Q.next=j):(j.prev=j,j.next=j),j}function L(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function D(I,z,$){this.i=I,this.x=z,this.y=$,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function k(I,z,$,Q){for(var j=0,U=z,X=$-Q;U<$;U+=Q)j+=(I[X]-I[U])*(I[U+1]+I[X+1]),X=U;return j}d.exports=s,d.exports.default=s,s.deviation=function(I,z,$,Q){var j=z&&z.length,U=j?z[0]*$:I.length,X=Math.abs(k(I,0,U,$));if(j)for(var te=0,Z=z.length;te0&&(Q+=I[j-1].length,$.holes.push(Q))}return $}},6688:function(d,s,n){var u=n(78484);d.exports=function(b,i){var S,w=[],y=[],m=[],a={},c=[];function h(T){m[T]=!1,a.hasOwnProperty(T)&&Object.keys(a[T]).forEach(function(P){delete a[T][P],m[P]&&h(P)})}function p(T){var P,A,L=!1;for(y.push(T),m[T]=!0,P=0;P=$})})(T);for(var P,A=u(b).components.filter(function($){return $.length>1}),L=1/0,D=0;D=55296&&T<=56319&&(D+=_[++C]),D=k?h.call(k,I,D,x):D,O?(p.value=D,v(R,x,p)):R[x]=D,++x;M=x}}if(M===void 0)for(M=S(_.length),O&&(R=new O(M)),C=0;C0?1:-1}},96936:function(d,s,n){var u=n(85608),b=Math.abs,i=Math.floor;d.exports=function(S){return isNaN(S)?0:(S=Number(S))!==0&&isFinite(S)?u(S)*i(b(S)):S}},81304:function(d,s,n){var u=n(96936),b=Math.max;d.exports=function(i){return b(0,u(i))}},14428:function(d,s,n){var u=n(34044),b=n(9252),i=Function.prototype.bind,S=Function.prototype.call,w=Object.keys,y=Object.prototype.propertyIsEnumerable;d.exports=function(m,a){return function(c,h){var p,v=arguments[2],_=arguments[3];return c=Object(b(c)),u(h),p=w(c),_&&p.sort(typeof _=="function"?i.call(_,c):void 0),typeof m!="function"&&(m=p[m]),S.call(m,p,function(O,C){return y.call(c,O)?S.call(h,v,c[O],O,c,C):a})}}},38452:function(d,s,n){d.exports=n(96276)()?Object.assign:n(81892)},96276:function(d){d.exports=function(){var s,n=Object.assign;return typeof n=="function"&&(n(s={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),s.foo+s.bar+s.trzy==="razdwatrzy")}},81892:function(d,s,n){var u=n(54768),b=n(9252),i=Math.max;d.exports=function(S,w){var y,m,a,c=i(arguments.length,2);for(S=Object(b(S)),a=function(h){try{S[h]=w[h]}catch(p){y||(y=p)}},m=1;m-1}},29768:function(d){var s=Object.prototype.toString,n=s.call("");d.exports=function(u){return typeof u=="string"||u&&typeof u=="object"&&(u instanceof String||s.call(u)===n)||!1}},82252:function(d){var s=Object.create(null),n=Math.random;d.exports=function(){var u;do u=n().toString(36).slice(2);while(s[u]);return u}},52104:function(d,s,n){var u,b=n(69932),i=n(71056),S=n(21092),w=n(92664),y=n(85512),m=Object.defineProperty;u=d.exports=function(a,c){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");y.call(this,a),c=c?i.call(c,"key+value")?"key+value":i.call(c,"key")?"key":"value":"value",m(this,"__kind__",S("",c))},b&&b(u,y),delete u.prototype.constructor,u.prototype=Object.create(y.prototype,{_resolve:S(function(a){return this.__kind__==="value"?this.__list__[a]:this.__kind__==="key+value"?[a,this.__list__[a]]:a})}),m(u.prototype,w.toStringTag,S("c","Array Iterator"))},76024:function(d,s,n){var u=n(60948),b=n(34044),i=n(29768),S=n(76252),w=Array.isArray,y=Function.prototype.call,m=Array.prototype.some;d.exports=function(a,c){var h,p,v,_,O,C,x,R,M=arguments[2];if(w(a)||u(a)?h="array":i(a)?h="string":a=S(a),b(c),v=function(){_=!0},h!=="array")if(h!=="string")for(p=a.next();!p.done;){if(y.call(c,M,p.value,v),_)return;p=a.next()}else for(C=a.length,O=0;O=55296&&R<=56319&&(x+=a[++O]),y.call(c,M,x,v),!_);++O);else m.call(a,function(T){return y.call(c,M,T,v),_})}},76252:function(d,s,n){var u=n(60948),b=n(29768),i=n(52104),S=n(80940),w=n(52891),y=n(92664).iterator;d.exports=function(m){return typeof w(m)[y]=="function"?m[y]():u(m)?new i(m):b(m)?new S(m):new i(m)}},85512:function(d,s,n){var u,b=n(41476),i=n(38452),S=n(34044),w=n(9252),y=n(21092),m=n(27940),a=n(92664),c=Object.defineProperty,h=Object.defineProperties;d.exports=u=function(p,v){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");h(this,{__list__:y("w",w(p)),__context__:y("w",v),__nextIndex__:y("w",0)}),v&&(S(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete u.prototype.constructor,h(u.prototype,i({_next:y(function(){var p;if(this.__list__)return this.__redo__&&(p=this.__redo__.shift())!==void 0?p:this.__nextIndex__=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach(function(v,_){v>=p&&(this.__redo__[_]=++v)},this),this.__redo__.push(p)):c(this,"__redo__",y("c",[p])))}),_onDelete:y(function(p){var v;p>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&((v=this.__redo__.indexOf(p))!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(_,O){_>p&&(this.__redo__[O]=--_)},this)))}),_onClear:y(function(){this.__redo__&&b.call(this.__redo__),this.__nextIndex__=0})}))),c(u.prototype,a.iterator,y(function(){return this}))},76368:function(d,s,n){var u=n(60948),b=n(42584),i=n(29768),S=n(92664).iterator,w=Array.isArray;d.exports=function(y){return!(!b(y)||!w(y)&&!i(y)&&!u(y)&&typeof y[S]!="function")}},80940:function(d,s,n){var u,b=n(69932),i=n(21092),S=n(92664),w=n(85512),y=Object.defineProperty;u=d.exports=function(m){if(!(this instanceof u))throw new TypeError("Constructor requires 'new'");m=String(m),w.call(this,m),y(this,"__length__",i("",m.length))},b&&b(u,w),delete u.prototype.constructor,u.prototype=Object.create(w.prototype,{_next:i(function(){if(this.__list__)return this.__nextIndex__=55296&&a<=56319?c+this.__list__[this.__nextIndex__++]:c})}),y(u.prototype,S.toStringTag,i("c","String Iterator"))},52891:function(d,s,n){var u=n(76368);d.exports=function(b){if(!u(b))throw new TypeError(b+" is not iterable");return b}},60964:function(d){function s(n,u){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var b=Object(n),i=1;i0&&P.length>M&&!P.warned){P.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=O,L.type=C,L.count=P.length,A=L,console&&console.warn&&console.warn(A)}return O}function a(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(O,C,x){var R={fired:!1,wrapFn:void 0,target:O,type:C,listener:x},M=a.bind(R);return M.listener=x,R.wrapFn=M,M}function h(O,C,x){var R=O._events;if(R===void 0)return[];var M=R[C];return M===void 0?[]:typeof M=="function"?x?[M.listener||M]:[M]:x?function(T){for(var P=new Array(T.length),A=0;A0&&(T=C[0]),T instanceof Error)throw T;var P=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw P.context=T,P}var A=M[O];if(A===void 0)return!1;if(typeof A=="function")u(A,this,C);else{var L=A.length,D=v(A,L);for(x=0;x=0;T--)if(x[T]===C||x[T].listener===C){P=x[T].listener,M=T;break}if(M<0)return this;M===0?x.shift():function(A,L){for(;L+1=0;R--)this.removeListener(O,C[R]);return this},i.prototype.listeners=function(O){return h(this,O,!0)},i.prototype.rawListeners=function(O){return h(this,O,!1)},i.listenerCount=function(O,C){return typeof O.listenerCount=="function"?O.listenerCount(C):p.call(O,C)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},39072:function(d){var s=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return s()}try{return __global__||s()}finally{delete Object.prototype.__global__}}()},12296:function(d,s,n){d.exports=n(45072)()?globalThis:n(39072)},45072:function(d){d.exports=function(){return typeof globalThis=="object"&&!!globalThis&&globalThis.Array===Array}},38248:function(d,s,n){var u=n(94576);d.exports=function(b){var i=typeof b;if(i==="string"){var S=b;if((b=+b)==0&&u(S))return!1}else if(i!=="number")return!1;return b-b<1}},47520:function(d,s,n){var u=n(72512);d.exports=function(b,i,S){if(!b)throw new TypeError("must specify data as first parameter");if(S=0|+(S||0),Array.isArray(b)&&b[0]&&typeof b[0][0]=="number"){var w,y,m,a,c=b[0].length,h=b.length*c;i&&typeof i!="string"||(i=new(u(i||"float32"))(h+S));var p=i.length-S;if(h!==p)throw new Error("source length "+h+" ("+c+"x"+b.length+") does not match destination length "+p);for(w=0,m=S;wS[0]-m[0]/2&&(_=m[0]/2,O+=m[1]);return w}},71920:function(d){function s(i,S){S||(S={}),(typeof i=="string"||Array.isArray(i))&&(S.family=i);var w=Array.isArray(S.family)?S.family.join(", "):S.family;if(!w)throw Error("`family` must be defined");var y=S.size||S.fontSize||S.em||48,m=S.weight||S.fontWeight||"",a=(i=[S.style||S.fontStyle||"",m,y].join(" ")+"px "+w,S.origin||"top");if(s.cache[w]&&y<=s.cache[w].em)return n(s.cache[w],a);var c=S.canvas||s.canvas,h=c.getContext("2d"),p={upper:S.upper!==void 0?S.upper:"H",lower:S.lower!==void 0?S.lower:"x",descent:S.descent!==void 0?S.descent:"p",ascent:S.ascent!==void 0?S.ascent:"h",tittle:S.tittle!==void 0?S.tittle:"i",overshoot:S.overshoot!==void 0?S.overshoot:"O"},v=Math.ceil(1.5*y);c.height=v,c.width=.5*v,h.font=i;var _="H",O={top:0};h.clearRect(0,0,v,v),h.textBaseline="top",h.fillStyle="black",h.fillText(_,0,0);var C=u(h.getImageData(0,0,v,v));h.clearRect(0,0,v,v),h.textBaseline="bottom",h.fillText(_,0,v);var x=u(h.getImageData(0,0,v,v));O.lineHeight=O.bottom=v-x+C,h.clearRect(0,0,v,v),h.textBaseline="alphabetic",h.fillText(_,0,v);var R=v-u(h.getImageData(0,0,v,v))-1+C;O.baseline=O.alphabetic=R,h.clearRect(0,0,v,v),h.textBaseline="middle",h.fillText(_,0,.5*v);var M=u(h.getImageData(0,0,v,v));O.median=O.middle=v-M-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="hanging",h.fillText(_,0,.5*v);var T=u(h.getImageData(0,0,v,v));O.hanging=v-T-1+C-.5*v,h.clearRect(0,0,v,v),h.textBaseline="ideographic",h.fillText(_,0,v);var P=u(h.getImageData(0,0,v,v));if(O.ideographic=v-P-1+C,p.upper&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.upper,0,0),O.upper=u(h.getImageData(0,0,v,v)),O.capHeight=O.baseline-O.upper),p.lower&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.lower,0,0),O.lower=u(h.getImageData(0,0,v,v)),O.xHeight=O.baseline-O.lower),p.tittle&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.tittle,0,0),O.tittle=u(h.getImageData(0,0,v,v))),p.ascent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.ascent,0,0),O.ascent=u(h.getImageData(0,0,v,v))),p.descent&&(h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.descent,0,0),O.descent=b(h.getImageData(0,0,v,v))),p.overshoot){h.clearRect(0,0,v,v),h.textBaseline="top",h.fillText(p.overshoot,0,0);var A=b(h.getImageData(0,0,v,v));O.overshoot=A-R}for(var L in O)O[L]/=y;return O.em=y,s.cache[w]=O,n(O,a)}function n(i,S){var w={};for(var y in typeof S=="string"&&(S=i[S]),i)y!=="em"&&(w[y]=i[y]-S);return w}function u(i){for(var S=i.height,w=i.data,y=3;y0;y-=4)if(w[y]!==0)return Math.floor(.25*(y-3)/S)}d.exports=s,s.canvas=document.createElement("canvas"),s.cache={}},46492:function(d,s,n){var u=n(90720),b=Object.prototype.toString,i=Object.prototype.hasOwnProperty;d.exports=function(S,w,y){if(!u(w))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=y),b.call(S)==="[object Array]"?function(a,c,h){for(var p=0,v=a.length;p"u"&&!n.canvas)return null;var u=n.canvas||document.createElement("canvas");typeof n.width=="number"&&(u.width=n.width),typeof n.height=="number"&&(u.height=n.height);var b,i=n;try{var S=[s];s.indexOf("webgl")===0&&S.push("experimental-"+s);for(var w=0;w"u"?u:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?u:ArrayBuffer,"%ArrayIteratorPrototype%":c&&p?p([][Symbol.iterator]()):u,"%AsyncFromSyncIteratorPrototype%":u,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?u:Atomics,"%BigInt%":typeof BigInt>"u"?u:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?u:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?u:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?u:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?u:Float32Array,"%Float64Array%":typeof Float64Array>"u"?u:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?u:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?u:Int8Array,"%Int16Array%":typeof Int16Array>"u"?u:Int16Array,"%Int32Array%":typeof Int32Array>"u"?u:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&p?p(p([][Symbol.iterator]())):u,"%JSON%":typeof JSON=="object"?JSON:u,"%Map%":typeof Map>"u"?u:Map,"%MapIteratorPrototype%":typeof Map<"u"&&c&&p?p(new Map()[Symbol.iterator]()):u,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?u:Promise,"%Proxy%":typeof Proxy>"u"?u:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?u:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?u:Set,"%SetIteratorPrototype%":typeof Set<"u"&&c&&p?p(new Set()[Symbol.iterator]()):u,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?u:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&p?p(""[Symbol.iterator]()):u,"%Symbol%":c?Symbol:u,"%SyntaxError%":b,"%ThrowTypeError%":a,"%TypedArray%":_,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?u:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?u:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?u:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?u:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?u:WeakMap,"%WeakRef%":typeof WeakRef>"u"?u:WeakRef,"%WeakSet%":typeof WeakSet>"u"?u:WeakSet};if(p)try{null.error}catch(Q){var C=p(p(Q));O["%Error.prototype%"]=C}var x=function Q(j){var U;if(j==="%AsyncFunction%")U=w("async function () {}");else if(j==="%GeneratorFunction%")U=w("function* () {}");else if(j==="%AsyncGeneratorFunction%")U=w("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Q("%AsyncGeneratorFunction%");X&&(U=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var te=Q("%AsyncGenerator%");te&&p&&(U=p(te.prototype))}return O[j]=U,U},R={"%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"]},M=n(8844),T=n(92064),P=M.call(Function.call,Array.prototype.concat),A=M.call(Function.apply,Array.prototype.splice),L=M.call(Function.call,String.prototype.replace),D=M.call(Function.call,String.prototype.slice),k=M.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,$=function(Q,j){var U,X=Q;if(T(R,X)&&(X="%"+(U=R[X])[0]+"%"),T(O,X)){var te=O[X];if(te===v&&(te=x(X)),te===void 0&&!j)throw new S("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:U,name:X,value:te}}throw new b("intrinsic "+Q+" does not exist!")};d.exports=function(Q,j){if(typeof Q!="string"||Q.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new S('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,Q)===null)throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=function(ce){var de=D(ce,0,1),ye=D(ce,-1);if(de==="%"&&ye!=="%")throw new b("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&de!=="%")throw new b("invalid intrinsic syntax, expected opening `%`");var ve=[];return L(ce,I,function(_e,we,Te,Pe){ve[ve.length]=Te?L(Pe,z,"$1"):we||_e}),ve}(Q),X=U.length>0?U[0]:"",te=$("%"+X+"%",j),Z=te.name,K=te.value,re=!1,q=te.alias;q&&(X=q[0],A(U,P([0,1],q)));for(var Y=1,ee=!0;Y=U.length){var ae=y(K,me);K=(ee=!!ae)&&"get"in ae&&!("originalValue"in ae.get)?ae.get:K[me]}else ee=T(K,me),K=K[me];ee&&!re&&(O[Z]=K)}}return K}},12408:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15];return s[0]=y*(p*x-v*C)-h*(m*x-a*C)+O*(m*v-a*p),s[1]=-(b*(p*x-v*C)-h*(i*x-S*C)+O*(i*v-S*p)),s[2]=b*(m*x-a*C)-y*(i*x-S*C)+O*(i*a-S*m),s[3]=-(b*(m*v-a*p)-y*(i*v-S*p)+h*(i*a-S*m)),s[4]=-(w*(p*x-v*C)-c*(m*x-a*C)+_*(m*v-a*p)),s[5]=u*(p*x-v*C)-c*(i*x-S*C)+_*(i*v-S*p),s[6]=-(u*(m*x-a*C)-w*(i*x-S*C)+_*(i*a-S*m)),s[7]=u*(m*v-a*p)-w*(i*v-S*p)+c*(i*a-S*m),s[8]=w*(h*x-v*O)-c*(y*x-a*O)+_*(y*v-a*h),s[9]=-(u*(h*x-v*O)-c*(b*x-S*O)+_*(b*v-S*h)),s[10]=u*(y*x-a*O)-w*(b*x-S*O)+_*(b*a-S*y),s[11]=-(u*(y*v-a*h)-w*(b*v-S*h)+c*(b*a-S*y)),s[12]=-(w*(h*C-p*O)-c*(y*C-m*O)+_*(y*p-m*h)),s[13]=u*(h*C-p*O)-c*(b*C-i*O)+_*(b*p-i*h),s[14]=-(u*(y*C-m*O)-w*(b*C-i*O)+_*(b*m-i*y)),s[15]=u*(y*p-m*h)-w*(b*p-i*h)+c*(b*m-i*y),s}},76860:function(d){d.exports=function(s){var n=new Float32Array(16);return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],n}},64492:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},54212:function(d){d.exports=function(){var s=new Float32Array(16);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},70800:function(d){d.exports=function(s){var n=s[0],u=s[1],b=s[2],i=s[3],S=s[4],w=s[5],y=s[6],m=s[7],a=s[8],c=s[9],h=s[10],p=s[11],v=s[12],_=s[13],O=s[14],C=s[15];return(n*w-u*S)*(h*C-p*O)-(n*y-b*S)*(c*C-p*_)+(n*m-i*S)*(c*O-h*_)+(u*y-b*w)*(a*C-p*v)-(u*m-i*w)*(a*O-h*v)+(b*m-i*y)*(a*_-c*v)}},61784:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=u+u,y=b+b,m=i+i,a=u*w,c=b*w,h=b*y,p=i*w,v=i*y,_=i*m,O=S*w,C=S*y,x=S*m;return s[0]=1-h-_,s[1]=c+x,s[2]=p-C,s[3]=0,s[4]=c-x,s[5]=1-a-_,s[6]=v+O,s[7]=0,s[8]=p+C,s[9]=v-O,s[10]=1-a-h,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},91616:function(d){d.exports=function(s,n,u){var b,i,S,w=u[0],y=u[1],m=u[2],a=Math.sqrt(w*w+y*y+m*m);return Math.abs(a)<1e-6?null:(w*=a=1/a,y*=a,m*=a,b=Math.sin(n),S=1-(i=Math.cos(n)),s[0]=w*w*S+i,s[1]=y*w*S+m*b,s[2]=m*w*S-y*b,s[3]=0,s[4]=w*y*S-m*b,s[5]=y*y*S+i,s[6]=m*y*S+w*b,s[7]=0,s[8]=w*m*S+y*b,s[9]=y*m*S-w*b,s[10]=m*m*S+i,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s)}},51944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=b+b,m=i+i,a=S+S,c=b*y,h=b*m,p=b*a,v=i*m,_=i*a,O=S*a,C=w*y,x=w*m,R=w*a;return s[0]=1-(v+O),s[1]=h+R,s[2]=p-x,s[3]=0,s[4]=h-R,s[5]=1-(c+O),s[6]=_+C,s[7]=0,s[8]=p+x,s[9]=_-C,s[10]=1-(c+v),s[11]=0,s[12]=u[0],s[13]=u[1],s[14]=u[2],s[15]=1,s}},69444:function(d){d.exports=function(s,n){return s[0]=n[0],s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=n[1],s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=n[2],s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},48268:function(d){d.exports=function(s,n){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=n[0],s[13]=n[1],s[14]=n[2],s[15]=1,s}},21856:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=b,s[6]=u,s[7]=0,s[8]=0,s[9]=-u,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},79216:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=0,s[2]=-u,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=u,s[9]=0,s[10]=b,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},57736:function(d){d.exports=function(s,n){var u=Math.sin(n),b=Math.cos(n);return s[0]=b,s[1]=u,s[2]=0,s[3]=0,s[4]=-u,s[5]=b,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},38848:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(u-n),m=1/(i-b),a=1/(S-w);return s[0]=2*S*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=2*S*m,s[6]=0,s[7]=0,s[8]=(u+n)*y,s[9]=(i+b)*m,s[10]=(w+S)*a,s[11]=-1,s[12]=0,s[13]=0,s[14]=w*S*2*a,s[15]=0,s}},36635:function(d){d.exports=function(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=1,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=1,s[11]=0,s[12]=0,s[13]=0,s[14]=0,s[15]=1,s}},36524:function(d,s,n){d.exports={create:n(54212),clone:n(76860),copy:n(64492),identity:n(36635),transpose:n(86520),invert:n(4308),adjoint:n(12408),determinant:n(70800),multiply:n(80944),translate:n(35176),scale:n(68152),rotate:n(30016),rotateX:n(15456),rotateY:n(64840),rotateZ:n(4192),fromRotation:n(91616),fromRotationTranslation:n(51944),fromScaling:n(69444),fromTranslation:n(48268),fromXRotation:n(21856),fromYRotation:n(79216),fromZRotation:n(57736),fromQuat:n(61784),frustum:n(38848),perspective:n(51296),perspectiveFromFieldOfView:n(63688),ortho:n(97688),lookAt:n(56508),str:n(89412)}},4308:function(d){d.exports=function(s,n){var u=n[0],b=n[1],i=n[2],S=n[3],w=n[4],y=n[5],m=n[6],a=n[7],c=n[8],h=n[9],p=n[10],v=n[11],_=n[12],O=n[13],C=n[14],x=n[15],R=u*y-b*w,M=u*m-i*w,T=u*a-S*w,P=b*m-i*y,A=b*a-S*y,L=i*a-S*m,D=c*O-h*_,k=c*C-p*_,I=c*x-v*_,z=h*C-p*O,$=h*x-v*O,Q=p*x-v*C,j=R*Q-M*$+T*z+P*I-A*k+L*D;return j?(j=1/j,s[0]=(y*Q-m*$+a*z)*j,s[1]=(i*$-b*Q-S*z)*j,s[2]=(O*L-C*A+x*P)*j,s[3]=(p*A-h*L-v*P)*j,s[4]=(m*I-w*Q-a*k)*j,s[5]=(u*Q-i*I+S*k)*j,s[6]=(C*T-_*L-x*M)*j,s[7]=(c*L-p*T+v*M)*j,s[8]=(w*$-y*I+a*D)*j,s[9]=(b*I-u*$-S*D)*j,s[10]=(_*A-O*T+x*R)*j,s[11]=(h*T-c*A-v*R)*j,s[12]=(y*k-w*z-m*D)*j,s[13]=(u*z-b*k+i*D)*j,s[14]=(O*M-_*P-C*R)*j,s[15]=(c*P-h*M+p*R)*j,s):null}},56508:function(d,s,n){var u=n(36635);d.exports=function(b,i,S,w){var y,m,a,c,h,p,v,_,O,C,x=i[0],R=i[1],M=i[2],T=w[0],P=w[1],A=w[2],L=S[0],D=S[1],k=S[2];return Math.abs(x-L)<1e-6&&Math.abs(R-D)<1e-6&&Math.abs(M-k)<1e-6?u(b):(v=x-L,_=R-D,O=M-k,y=P*(O*=C=1/Math.sqrt(v*v+_*_+O*O))-A*(_*=C),m=A*(v*=C)-T*O,a=T*_-P*v,(C=Math.sqrt(y*y+m*m+a*a))?(y*=C=1/C,m*=C,a*=C):(y=0,m=0,a=0),c=_*a-O*m,h=O*y-v*a,p=v*m-_*y,(C=Math.sqrt(c*c+h*h+p*p))?(c*=C=1/C,h*=C,p*=C):(c=0,h=0,p=0),b[0]=y,b[1]=c,b[2]=v,b[3]=0,b[4]=m,b[5]=h,b[6]=_,b[7]=0,b[8]=a,b[9]=p,b[10]=O,b[11]=0,b[12]=-(y*x+m*R+a*M),b[13]=-(c*x+h*R+p*M),b[14]=-(v*x+_*R+O*M),b[15]=1,b)}},80944:function(d){d.exports=function(s,n,u){var b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],O=n[12],C=n[13],x=n[14],R=n[15],M=u[0],T=u[1],P=u[2],A=u[3];return s[0]=M*b+T*y+P*h+A*O,s[1]=M*i+T*m+P*p+A*C,s[2]=M*S+T*a+P*v+A*x,s[3]=M*w+T*c+P*_+A*R,M=u[4],T=u[5],P=u[6],A=u[7],s[4]=M*b+T*y+P*h+A*O,s[5]=M*i+T*m+P*p+A*C,s[6]=M*S+T*a+P*v+A*x,s[7]=M*w+T*c+P*_+A*R,M=u[8],T=u[9],P=u[10],A=u[11],s[8]=M*b+T*y+P*h+A*O,s[9]=M*i+T*m+P*p+A*C,s[10]=M*S+T*a+P*v+A*x,s[11]=M*w+T*c+P*_+A*R,M=u[12],T=u[13],P=u[14],A=u[15],s[12]=M*b+T*y+P*h+A*O,s[13]=M*i+T*m+P*p+A*C,s[14]=M*S+T*a+P*v+A*x,s[15]=M*w+T*c+P*_+A*R,s}},97688:function(d){d.exports=function(s,n,u,b,i,S,w){var y=1/(n-u),m=1/(b-i),a=1/(S-w);return s[0]=-2*y,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=-2*m,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=2*a,s[11]=0,s[12]=(n+u)*y,s[13]=(i+b)*m,s[14]=(w+S)*a,s[15]=1,s}},51296:function(d){d.exports=function(s,n,u,b,i){var S=1/Math.tan(n/2),w=1/(b-i);return s[0]=S/u,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=S,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=(i+b)*w,s[11]=-1,s[12]=0,s[13]=0,s[14]=2*i*b*w,s[15]=0,s}},63688:function(d){d.exports=function(s,n,u,b){var i=Math.tan(n.upDegrees*Math.PI/180),S=Math.tan(n.downDegrees*Math.PI/180),w=Math.tan(n.leftDegrees*Math.PI/180),y=Math.tan(n.rightDegrees*Math.PI/180),m=2/(w+y),a=2/(i+S);return s[0]=m,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=a,s[6]=0,s[7]=0,s[8]=-(w-y)*m*.5,s[9]=(i-S)*a*.5,s[10]=b/(u-b),s[11]=-1,s[12]=0,s[13]=0,s[14]=b*u/(u-b),s[15]=0,s}},30016:function(d){d.exports=function(s,n,u,b){var i,S,w,y,m,a,c,h,p,v,_,O,C,x,R,M,T,P,A,L,D,k,I,z,$=b[0],Q=b[1],j=b[2],U=Math.sqrt($*$+Q*Q+j*j);return Math.abs(U)<1e-6?null:($*=U=1/U,Q*=U,j*=U,i=Math.sin(u),w=1-(S=Math.cos(u)),y=n[0],m=n[1],a=n[2],c=n[3],h=n[4],p=n[5],v=n[6],_=n[7],O=n[8],C=n[9],x=n[10],R=n[11],M=$*$*w+S,T=Q*$*w+j*i,P=j*$*w-Q*i,A=$*Q*w-j*i,L=Q*Q*w+S,D=j*Q*w+$*i,k=$*j*w+Q*i,I=Q*j*w-$*i,z=j*j*w+S,s[0]=y*M+h*T+O*P,s[1]=m*M+p*T+C*P,s[2]=a*M+v*T+x*P,s[3]=c*M+_*T+R*P,s[4]=y*A+h*L+O*D,s[5]=m*A+p*L+C*D,s[6]=a*A+v*L+x*D,s[7]=c*A+_*L+R*D,s[8]=y*k+h*I+O*z,s[9]=m*k+p*I+C*z,s[10]=a*k+v*I+x*z,s[11]=c*k+_*I+R*z,n!==s&&(s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s)}},15456:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[4],w=n[5],y=n[6],m=n[7],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[0]=n[0],s[1]=n[1],s[2]=n[2],s[3]=n[3],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[4]=S*i+a*b,s[5]=w*i+c*b,s[6]=y*i+h*b,s[7]=m*i+p*b,s[8]=a*i-S*b,s[9]=c*i-w*b,s[10]=h*i-y*b,s[11]=p*i-m*b,s}},64840:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[8],c=n[9],h=n[10],p=n[11];return n!==s&&(s[4]=n[4],s[5]=n[5],s[6]=n[6],s[7]=n[7],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i-a*b,s[1]=w*i-c*b,s[2]=y*i-h*b,s[3]=m*i-p*b,s[8]=S*b+a*i,s[9]=w*b+c*i,s[10]=y*b+h*i,s[11]=m*b+p*i,s}},4192:function(d){d.exports=function(s,n,u){var b=Math.sin(u),i=Math.cos(u),S=n[0],w=n[1],y=n[2],m=n[3],a=n[4],c=n[5],h=n[6],p=n[7];return n!==s&&(s[8]=n[8],s[9]=n[9],s[10]=n[10],s[11]=n[11],s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15]),s[0]=S*i+a*b,s[1]=w*i+c*b,s[2]=y*i+h*b,s[3]=m*i+p*b,s[4]=a*i-S*b,s[5]=c*i-w*b,s[6]=h*i-y*b,s[7]=p*i-m*b,s}},68152:function(d){d.exports=function(s,n,u){var b=u[0],i=u[1],S=u[2];return s[0]=n[0]*b,s[1]=n[1]*b,s[2]=n[2]*b,s[3]=n[3]*b,s[4]=n[4]*i,s[5]=n[5]*i,s[6]=n[6]*i,s[7]=n[7]*i,s[8]=n[8]*S,s[9]=n[9]*S,s[10]=n[10]*S,s[11]=n[11]*S,s[12]=n[12],s[13]=n[13],s[14]=n[14],s[15]=n[15],s}},89412:function(d){d.exports=function(s){return"mat4("+s[0]+", "+s[1]+", "+s[2]+", "+s[3]+", "+s[4]+", "+s[5]+", "+s[6]+", "+s[7]+", "+s[8]+", "+s[9]+", "+s[10]+", "+s[11]+", "+s[12]+", "+s[13]+", "+s[14]+", "+s[15]+")"}},35176:function(d){d.exports=function(s,n,u){var b,i,S,w,y,m,a,c,h,p,v,_,O=u[0],C=u[1],x=u[2];return n===s?(s[12]=n[0]*O+n[4]*C+n[8]*x+n[12],s[13]=n[1]*O+n[5]*C+n[9]*x+n[13],s[14]=n[2]*O+n[6]*C+n[10]*x+n[14],s[15]=n[3]*O+n[7]*C+n[11]*x+n[15]):(b=n[0],i=n[1],S=n[2],w=n[3],y=n[4],m=n[5],a=n[6],c=n[7],h=n[8],p=n[9],v=n[10],_=n[11],s[0]=b,s[1]=i,s[2]=S,s[3]=w,s[4]=y,s[5]=m,s[6]=a,s[7]=c,s[8]=h,s[9]=p,s[10]=v,s[11]=_,s[12]=b*O+y*C+h*x+n[12],s[13]=i*O+m*C+p*x+n[13],s[14]=S*O+a*C+v*x+n[14],s[15]=w*O+c*C+_*x+n[15]),s}},86520:function(d){d.exports=function(s,n){if(s===n){var u=n[1],b=n[2],i=n[3],S=n[6],w=n[7],y=n[11];s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=u,s[6]=n[9],s[7]=n[13],s[8]=b,s[9]=S,s[11]=n[14],s[12]=i,s[13]=w,s[14]=y}else s[0]=n[0],s[1]=n[4],s[2]=n[8],s[3]=n[12],s[4]=n[1],s[5]=n[5],s[6]=n[9],s[7]=n[13],s[8]=n[2],s[9]=n[6],s[10]=n[10],s[11]=n[14],s[12]=n[3],s[13]=n[7],s[14]=n[11],s[15]=n[15];return s}},23352:function(d,s,n){var u=n(42771),b=n(55616),i=n(28624),S=n(55212),w=n(60463),y=n(72160),m=n(33888),a=n(14144),c=n(51160),h=n(58908),p=n(65819),v=n(23464),_=n(63768),O=n(50896),C=n(71920),x=n(47520),R=n(308).nextPow2,M=new w,T=!1;if(document.body){var P=document.body.appendChild(document.createElement("div"));P.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(P).fontStretch&&(T=!0),document.body.removeChild(P)}var A=function(L){(function(D){return typeof D=="function"&&D._gl&&D.prop&&D.texture&&D.buffer})(L)?(L={regl:L},this.gl=L.regl._gl):this.gl=S(L),this.shader=M.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=L.regl||i({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),M.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(L)?L:{})};A.prototype.createShader=function(){var L=this.regl,D=L({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:L.prop("count"),offset:L.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:L.this("sizeBuffer")},width:{offset:0,stride:8,buffer:L.this("sizeBuffer")},char:L.this("charBuffer"),position:L.this("position")},uniforms:{atlasSize:function(k,I){return[I.atlas.width,I.atlas.height]},atlasDim:function(k,I){return[I.atlas.cols,I.atlas.rows]},atlas:function(k,I){return I.atlas.texture},charStep:function(k,I){return I.atlas.step},em:function(k,I){return I.atlas.em},color:L.prop("color"),opacity:L.prop("opacity"),viewport:L.this("viewportArray"),scale:L.this("scale"),align:L.prop("align"),baseline:L.prop("baseline"),translate:L.this("translate"),positionOffset:L.prop("positionOffset")},primitive:"points",viewport:L.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -3579,35 +3579,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).slice(2):` `+Y.split(` `).map(function(me){return" "+me}).join(` -`)):Y=U.stylize("[Circular]","special")),M(q)){if(re&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function O(U){return typeof U=="boolean"}function C(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return P(U)&&k(U)==="[object RegExp]"}function P(U){return typeof U=="object"&&U!==null}function A(U){return P(U)&&k(U)==="[object Date]"}function L(U){return P(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}s.debuglog=function(U){if(U=U.toUpperCase(),!S[U])if(w.test(U)){var X=u.pid;S[U]=function(){var te=s.format.apply(s,arguments);console.error("%s %d: %s",U,X,te)}}else S[U]=function(){};return S[U]},s.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=_,s.isBoolean=O,s.isNull=C,s.isNullOrUndefined=function(U){return U==null},s.isNumber=x,s.isString=R,s.isSymbol=function(U){return typeof U=="symbol"},s.isUndefined=M,s.isRegExp=T,s.types.isRegExp=T,s.isObject=P,s.isDate=A,s.types.isDate=A,s.isError=L,s.types.isNativeError=L,s.isFunction=D,s.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},s.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}s.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(U,X){if(!X||!P(X))return U;for(var te=Object.keys(X),Z=te.length;Z--;)U[te[Z]]=X[te[Z]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}s.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,Z,K=new Promise(function(Y,ee){te=Y,Z=ee}),re=[],q=0;q"u"?n.g:globalThis,c=b(),h=S("String.prototype.slice"),p=Object.getPrototypeOf,v=S("Array.prototype.indexOf",!0)||function(O,C){for(var x=0;x-1?C:C==="Object"&&function(x){var R=!1;return u(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(O)}return w?function(x){var R=!1;return u(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(O):null}},67020:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(p,v){if(typeof p=="string"){var _=p.match(y);return _?_[0]:""}var O=this._validateYear(p),C=p.month(),x=""+this.toChineseMonth(O,C);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(O,C)&&(x+="i"),x},monthNames:function(p){if(typeof p=="string"){var v=p.match(m);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},monthNamesShort:function(p){if(typeof p=="string"){var v=p.match(a);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},parseMonth:function(p,v){p=this._validateYear(p);var _,O=parseInt(v);if(isNaN(O))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var C=v[v.length-1];_=C==="i"||C==="I"}return this.toMonthIndex(p,O,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(p,v){if(p.year&&(p=p.year()),typeof p!="number"||p<1888||p>2111)throw v.replace(/\{0\}/,this.local.name);return p},toMonthIndex:function(p,v,_){var O=this.intercalaryMonth(p);if(_&&v!==O||v<1||v>12)throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return O?!_&&v<=O?v-1:v:v-1},toChineseMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);if(v<0||v>(_?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(p){return p=this._validateYear(p),c[p-c[0]]>>13},isIntercalaryMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);return!!_&&_===v},leapYear:function(p){return this.intercalaryMonth(p)!==0},weekOfYear:function(p,v,_){var O,C=this._validateYear(p,u.local.invalidyear),x=h[C-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(O=i.newDate(R,M,T)).add(4-(O.dayOfWeek()||7),"d");var P=this.toJD(p,v,_)-O.toJD();return 1+Math.floor(P/7)},monthsInYear:function(p){return this.leapYear(p)?13:12},daysInMonth:function(p,v){p.year&&(v=p.month(),p=p.year()),p=this._validateYear(p);var _=c[p-c[0]];if(v>(_>>13?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(p,v,_){return(this.dayOfWeek(p,v,_)||7)<6},toJD:function(p,v,_){var O=this._validate(p,x,_,u.local.invalidDate);p=this._validateYear(O.year()),v=O.month(),_=O.day();var C=this.isIntercalaryMonth(p,v),x=this.toChineseMonth(p,v),R=function(M,T,P,A,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof P=="number"&&P>=1&&P<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(z=!1,D=A):(z=!!A,D={}),k={year:M,month:T,day:P,isIntercalary:z}}I=k.day-1;var $,Q=c[k.year-c[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(p,x,_,C);return i.toJD(R.year,R.month,R.day)},fromJD:function(p){var v=i.fromJD(p),_=function(C,x,R,M){var T,P;if(typeof C=="object")T=C,P=x||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:x,day:R},P={}}var A=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;P.year=L>=A?T.year:T.year-1,A=h[P.year-h[0]];var D,k=new Date(A>>9&4095,(A>>5&15)-1,31&A),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=c[P.year-c[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{century:S[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(m=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-32*(m-1)+1;return this.newDate(y<=0?y-1:y,m,a)}});var S={20:"Fruitbat",21:"Anchovy"};u.calendars.discworld=i},65168:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()+(w.year()<0?1:0))%4==3||S%4==-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),13},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return(S=m.year())<0&&S++,m.day()+30*(m.month()-1)+365*(S-1)+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var w=Math.floor(S)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(S)+.5-this.newDate(y,1,1).toJD();var m=Math.floor(w/30)+1,a=w-30*(m-1)+1;return this.newDate(y,m,a)}}),u.calendars.ethiopian=i},2084:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function S(w,y){return w-y*Math.floor(w/y)}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return S(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,u.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,u.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&S(this.daysInYear(w),10)===5?30:y===9&&S(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w<=0?w+1:w,h=this.jdEpoch+this._delay1(c)+this._delay2(c)+m+1;if(y<7){for(var p=7;p<=this.monthsInYear(w);p++)h+=this.daysInMonth(w,p);for(p=1;p=this.toJD(y===-1?1:y+1,7,1);)y++;for(var m=wthis.toJD(y,m,this.daysInMonth(y,m));)m++;var a=w-this.toJD(y,m,1)+1;return this.newDate(y,m,a)}}),u.calendars.hebrew=i},26368:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){return(11*this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year()+14)%30<11},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){return this.leapYear(S)?355:354},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==5},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),S=S<=0?S+1:S,(y=m.day())+Math.ceil(29.5*(w-1))+354*(S-1)+Math.floor((3+11*S)/30)+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var w=Math.floor((30*(S-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((S-29-this.toJD(w,1,1))/29.5)+1),m=S-this.toJD(w,y,1)+1;return this.newDate(w,y,m)}}),u.calendars.islamic=i},24747:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),y=m.day(),S<0&&S++,w<=2&&(S--,w+=12),Math.floor(365.25*(S+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(S){var w=Math.floor(S+.5)+1524,y=Math.floor((w-122.1)/365.25),m=Math.floor(365.25*y),a=Math.floor((w-m)/30.6001),c=a-Math.floor(a<14?1:13),h=y-Math.floor(c>2?4716:4715),p=w-m-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,c,p)}}),u.calendars.julian=i},65616:function(d,s,n){var u=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function S(y,m){return y-m*Math.floor(y/m)}function w(y,m){return S(y-1,m)+1}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,u.local.invalidYear).year();var m=Math.floor(y/400);return y%=400,y+=y<0?400:0,m+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&c<0)throw"Invalid Mayan year";m=20*m+c}return m},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),18},weekOfYear:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),360},daysInMonth:function(y,m){return this._validate(y,m,this.minDay,u.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate).day()},weekDay:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),!0},extraInfo:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate).toJD(),h=this._toHaab(c),p=this._toTzolkin(c);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[p[0]-1],tzolkinDay:p[0],tzolkinTrecena:p[1]}},_toHaab:function(y){var m=S(8+(y-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,S(m,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate);return c.day()+20*c.month()+360*c.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var m=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),c=y%20;return this.newDate(m,a,c)}}),u.calendars.mayan=i},30632:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar;var S=u.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return S.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidMonth);(w=a.year())<0&&w++;for(var c=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var m=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;m>this.daysInMonth(y,a);)m-=this.daysInMonth(y,a),a++;return this.newDate(y,a,m)}}),u.calendars.nanakshahi=i},73040:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(S){return this.daysInYear(S)!==this.daysPerYear},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){if(S=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[S]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[S][y];return w},daysInMonth:function(S,w){return S.year&&(w=S.month(),S=S.year()),this._validate(S,w,this.minDay,u.local.invalidMonth),this.NEPALI_CALENDAR_DATA[S]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[S][w]},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);S=m.year(),w=m.month(),y=m.day();var a=u.instance(),c=0,h=w,p=S;this._createMissingCalendarData(S);var v=S-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[p][0]?56:57);for(w!==9&&(c=y,h--);h!==9;)h<=0&&(h=12,p--),c+=this.NEPALI_CALENDAR_DATA[p][h],h--;return w===9?(c+=y-this.NEPALI_CALENDAR_DATA[p][0])<0&&(c+=a.daysInYear(v)):c+=this.NEPALI_CALENDAR_DATA[p][9]-this.NEPALI_CALENDAR_DATA[p][0],a.newDate(v,1,1).add(c,"d").toJD()},fromJD:function(S){var w=u.instance().fromJD(S),y=w.year(),m=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var c=9,h=this.NEPALI_CALENDAR_DATA[a][0],p=this.NEPALI_CALENDAR_DATA[a][c]-h+1;m>p;)++c>12&&(c=1,a++),p+=this.NEPALI_CALENDAR_DATA[a][c];var v=this.NEPALI_CALENDAR_DATA[a][c]-(p-m);return this.newDate(a,c,v)},_createMissingCalendarData:function(S){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=S-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w-(w>=0?474:473),h=474+S(c,2820);return m+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(c/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),m=Math.floor(y/1029983),a=S(y,1029983),c=2820;if(a!==1029982){var h=Math.floor(a/366),p=S(a,366);c=Math.floor((2134*h+2816*p+2815)/1028522)+h+1}var v=c+2820*m+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,O=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),C=w-this.toJD(v,O,1)+1;return this.newDate(v,O,C)}}),u.calendars.persian=i,u.calendars.jalali=i},51456:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),u.calendars.taiwan=S},4592:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),u.calendars.thai=S},45348:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,m=1;m<=12;m++)y+=this.daysInMonth(w,m);return y},daysInMonth:function(w,y){for(var m=this._validate(w,y,this.minDay,u.local.invalidMonth).toJD()-24e5+.5,a=0,c=0;cm)return S[a]-S[a-1];a++}return 30},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate),c=12*(a.year()-1)+a.month()-15292;return a.day()+S[c-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,m=0,a=0;ay);a++)m++;var c=m+15292,h=Math.floor((c-1)/12),p=h+1,v=c-12*h,_=y-S[m-1]+1;return this.newDate(p,v,_)},isValid:function(w,y,m){var a=u.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,m,a){var c=u.baseCalendar.prototype._validate.apply(this,arguments);if(c.year<1276||c.year>1500)throw a.replace(/\{0\}/,this.local.name);return c}}),u.calendars.ummalqura=i;var S=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,s,n){var u=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,c,h,p){if(this._calendar=a,this._year=c,this._month=h,this._day=p,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S(a,c){return"000000".substring(0,c-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}u(b.prototype,{instance:function(a,c){a=(a||"gregorian").toLowerCase(),c=c||"";var h=this._localCals[a+"-"+c];if(!h&&this.calendars[a]&&(h=new this.calendars[a](c),this._localCals[a+"-"+c]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,c,h,p,v){return(p=(a!=null&&a.year?a.calendar():typeof p=="string"?this.instance(p,v):p)||this.instance()).newDate(a,c,h)},substituteDigits:function(a){return function(c){return(c+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,c){return function(h){for(var p="",v=0;h>0;){var _=h%10;p=(_===0?"":a[_]+c[v])+p,v++,h=Math.floor(h/10)}return p.indexOf(a[1]+c[1])===0&&(p=p.substr(1)),p||a[0]}}}),u(i.prototype,{newDate:function(a,c,h){return this._calendar.newDate(a??this,c,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,c,h){if(!this._calendar.isValid(a,c,h))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=c,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,c){return this._calendar.add(this,a,c)},set:function(a,c){return this._calendar.set(this,a,c)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var c=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return c===0?0:c<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+S(Math.abs(this.year()),4)+"-"+S(this.month(),2)+"-"+S(this.day(),2)}}),u(w.prototype,{_validateLevel:0,newDate:function(a,c,h){return a==null?this.today():(a.year&&(this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=a.day(),c=a.month(),a=a.year()),new i(this,a,c,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(c.year()<0?"-":"")+S(Math.abs(c.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,c){var h=this._validate(a,c,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,c){var h=(c+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(c)?366:365},dayOfYear:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return p.toJD()-this.newDate(p.year(),this.fromMonthOfYear(p.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(p))+2)%this.daysInWeek()},extraInfo:function(a,c,h){return this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,c,h){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,c,h),c,h)},_add:function(a,c,h){if(this._validateLevel++,h==="d"||h==="w"){var p=a.toJD()+c*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(p);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?c:0),O=a.monthOfYear()+(h==="m"?c:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,O)&&(O=this.newDate(_,a.month(),this.minDay).monthOfYear()),O=Math.min(O,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O)))):h==="m"&&(function(x){for(;OR-1+x.minMonth;)_++,O-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O))));var C=[_,this.fromMonthOfYear(_,O),v];return this._validateLevel--,C}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,c,h,p){if(!(this.hasYearZero||p!=="y"&&p!=="m"||c[0]!==0&&a.year()>0==c[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[p],_=h<0?-1:1;c=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(c[0],c[1],c[2])},set:function(a,c,h){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var p=h==="y"?c:a.year(),v=h==="m"?c:a.month(),_=h==="d"?c:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(p,v))),a.date(p,v,_)},isValid:function(a,c,h){this._validateLevel++;var p=this.hasYearZero||a!==0;if(p){var v=this.newDate(a,c,this.minDay);p=c>=this.minMonth&&c-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,C)},toJSDate:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=new Date(p.year(),p.month()-1,p.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=d.exports=new b;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=y},15168:function(d,s,n){var u=n(50896),b=n(38700);u(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],u(b.cdate.prototype,{formatDate:function(i,S){return typeof i!="string"&&(S=i,i=""),this._calendar.formatDate(i||"",this,S)}}),u(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,S,w){if(typeof i!="string"&&(w=S,S=i,i=""),!S)return"";if(S.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,m,a,c=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,p=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,O=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),C=function(k,I,z,$){var Q=""+I;if(O(k,$))for(;Q.length1},A=function(X,te){var Z=P(X,te),K=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],re=new RegExp("^-?\\d{1,"+K+"}"),q=S.substring($).match(re);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){P("m");var X=h.call(L,S.substring($));return $+=X.length,X}return A("m")},k=function(X,te,Z,K){for(var re=P(X,K)?Z:te,q=0;q-1){C=1,x=R;for(var U=this.daysInMonth(O,C);x>U;U=this.daysInMonth(O,C))C++,x-=U}return _>-1?this.fromJD(_):this.newDate(O,C,x)},determineDate:function(i,S,w,y,m){w&&typeof w!="object"&&(m=y,y=w,w=null),typeof y!="string"&&(m=y,y="");var a=this;return S=S?S.newDate():null,i==null?S:typeof i=="string"?function(c){try{return a.parseDate(y,c,m)}catch{}for(var h=((c=c.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),p=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=p.exec(c);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=p.exec(c);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?S:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,s,n){var u=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],S=0;S>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?A(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?A(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=p.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?A(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?A(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=O.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=C.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?P(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function P(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function A(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),Qe=Math.max(Pe,Ie,ze),Ve=NaN,$e=Qe-De,Oe=(Qe+De)/2;return $e?(Ve=Pe===Qe?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function Z(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}u(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),u(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),u(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),Z(this.s),Z(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*Z(this.s),"%, ").concat(100*Z(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var re=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(Qe){return ze+Qe*De}}(Te,Ie):re(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(Qe,Ve){return Ve-Qe?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Re){return Math.pow($e+Re*Oe,ke)}}(Qe,Ve,De):re(isNaN(Qe)?Ve:Qe)}}(Pe);function ze(De,Qe){var Ve=Ie((De=L(De)).r,(Qe=L(Qe)).r),$e=Ie(De.g,Qe.g),Oe=Ie(De.b,Qe.b),ke=q(De.opacity,Qe.opacity);return function(Re){return De.r=Ve(Re),De.g=$e(Re),De.b=Oe(Re),De.opacity=ke(Re),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,Qe=new Array(De),Ve=new Array(ze);for(Ie=0;IeQe&&(De=Pe.slice(Qe,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:pe(Ie,ze)})),Qe=de.lastIndex;return Qe{const f=document.getElementById(t.id);f&&Qhe.Plots.resize(f)},o=f=>{const E=JSON.parse(f);Qhe.react(t.id,E.data,E.layout)};pg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),oce(()=>{window.removeEventListener("resize",e)}),ia(()=>t.figureJson,f=>{o(f)})}}),mp=(t,e)=>{const o=t.__vccOpts||t;for(const[f,E]of e)o[f]=E;return o},RTe=["id"];function LTe(t,e,o,f,E,d){return Uo(),Ya("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,RTe)}const yce=mp(PTe,[["render",LTe]]);class Qu{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let E=[];return this.decompose(0,e,E,2),f.length&&f.decompose(0,f.length,E,3),this.decompose(o,this.length,E,1),v_.from(E,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),v_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),E=new oI(this),d=new oI(e);for(let s=o,n=o;;){if(E.next(s),d.next(s),s=0,E.lineBreak!=d.lineBreak||E.done!=d.done||E.value!=d.value)return!1;if(n+=E.value.length,E.done||n>=f)return!0}}iter(e=1){return new oI(this,e)}iterRange(e,o=this.length){return new Gve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let E=this.line(e).from;f=this.iterRange(E,Math.max(E,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new Kve(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Qu.empty:e.length<=32?new hp(e):v_.from(hp.split(e,[]))}}class hp extends Qu{constructor(e,o=ITe(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.text[d],n=E+s.length;if((o?f:n)>=e)return new DTe(E,n,f,s);E=n+1,f++}}decompose(e,o,f,E){let d=e<=0&&o>=this.length?this:new hp(Hhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(E&1){let s=f.pop(),n=aH(d.text,s.text.slice(),0,d.length);if(n.length<=32)f.push(new hp(n,s.length+d.length));else{let u=n.length>>1;f.push(new hp(n.slice(0,u)),new hp(n.slice(u)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof hp))return super.replace(e,o,f);let E=aH(this.text,aH(f.text,Hhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return E.length<=32?new hp(E,d):v_.from(hp.split(E,[]),d)}sliceString(e,o=this.length,f=` +`)):Y=U.stylize("[Circular]","special")),M(q)){if(re&&K.match(/^\d+$/))return Y;(q=JSON.stringify(""+K)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+Y}function _(U){return Array.isArray(U)}function O(U){return typeof U=="boolean"}function C(U){return U===null}function x(U){return typeof U=="number"}function R(U){return typeof U=="string"}function M(U){return U===void 0}function T(U){return P(U)&&k(U)==="[object RegExp]"}function P(U){return typeof U=="object"&&U!==null}function A(U){return P(U)&&k(U)==="[object Date]"}function L(U){return P(U)&&(k(U)==="[object Error]"||U instanceof Error)}function D(U){return typeof U=="function"}function k(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}s.debuglog=function(U){if(U=U.toUpperCase(),!S[U])if(w.test(U)){var X=u.pid;S[U]=function(){var te=s.format.apply(s,arguments);console.error("%s %d: %s",U,X,te)}}else S[U]=function(){};return S[U]},s.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=_,s.isBoolean=O,s.isNull=C,s.isNullOrUndefined=function(U){return U==null},s.isNumber=x,s.isString=R,s.isSymbol=function(U){return typeof U=="symbol"},s.isUndefined=M,s.isRegExp=T,s.types.isRegExp=T,s.isObject=P,s.isDate=A,s.types.isDate=A,s.isError=L,s.types.isNativeError=L,s.isFunction=D,s.isPrimitive=function(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||U===void 0},s.isBuffer=n(75272);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $(U,X){return Object.prototype.hasOwnProperty.call(U,X)}s.log=function(){var U,X;console.log("%s - %s",(X=[I((U=new Date).getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":"),[U.getDate(),z[U.getMonth()],X].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(U,X){if(!X||!P(X))return U;for(var te=Object.keys(X),Z=te.length;Z--;)U[te[Z]]=X[te[Z]];return U};var Q=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function j(U,X){if(!U){var te=new Error("Promise was rejected with a falsy value");te.reason=U,U=te}return X(U)}s.promisify=function(U){if(typeof U!="function")throw new TypeError('The "original" argument must be of type Function');if(Q&&U[Q]){var X;if(typeof(X=U[Q])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,Q,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,Z,K=new Promise(function(Y,ee){te=Y,Z=ee}),re=[],q=0;q"u"?n.g:globalThis,c=b(),h=S("String.prototype.slice"),p=Object.getPrototypeOf,v=S("Array.prototype.indexOf",!0)||function(O,C){for(var x=0;x-1?C:C==="Object"&&function(x){var R=!1;return u(_,function(M,T){if(!R)try{M(x),R=h(T,1)}catch{}}),R}(O)}return w?function(x){var R=!1;return u(_,function(M,T){if(!R)try{"$"+M(x)===T&&(R=h(T,1))}catch{}}),R}(O):null}},67020:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(p,v){if(typeof p=="string"){var _=p.match(y);return _?_[0]:""}var O=this._validateYear(p),C=p.month(),x=""+this.toChineseMonth(O,C);return v&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(O,C)&&(x+="i"),x},monthNames:function(p){if(typeof p=="string"){var v=p.match(m);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},monthNamesShort:function(p){if(typeof p=="string"){var v=p.match(a);return v?v[0]:""}var _=this._validateYear(p),O=p.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(_,O)-1];return this.isIntercalaryMonth(_,O)&&(C="闰"+C),C},parseMonth:function(p,v){p=this._validateYear(p);var _,O=parseInt(v);if(isNaN(O))v[0]==="闰"&&(_=!0,v=v.substring(1)),v[v.length-1]==="月"&&(v=v.substring(0,v.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(v);else{var C=v[v.length-1];_=C==="i"||C==="I"}return this.toMonthIndex(p,O,_)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(p,v){if(p.year&&(p=p.year()),typeof p!="number"||p<1888||p>2111)throw v.replace(/\{0\}/,this.local.name);return p},toMonthIndex:function(p,v,_){var O=this.intercalaryMonth(p);if(_&&v!==O||v<1||v>12)throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return O?!_&&v<=O?v-1:v:v-1},toChineseMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);if(v<0||v>(_?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?v<_?v+1:v:v+1},intercalaryMonth:function(p){return p=this._validateYear(p),c[p-c[0]]>>13},isIntercalaryMonth:function(p,v){p.year&&(v=(p=p.year()).month());var _=this.intercalaryMonth(p);return!!_&&_===v},leapYear:function(p){return this.intercalaryMonth(p)!==0},weekOfYear:function(p,v,_){var O,C=this._validateYear(p,u.local.invalidyear),x=h[C-h[0]],R=x>>9&4095,M=x>>5&15,T=31&x;(O=i.newDate(R,M,T)).add(4-(O.dayOfWeek()||7),"d");var P=this.toJD(p,v,_)-O.toJD();return 1+Math.floor(P/7)},monthsInYear:function(p){return this.leapYear(p)?13:12},daysInMonth:function(p,v){p.year&&(v=p.month(),p=p.year()),p=this._validateYear(p);var _=c[p-c[0]];if(v>(_>>13?12:11))throw u.local.invalidMonth.replace(/\{0\}/,this.local.name);return _&1<<12-v?30:29},weekDay:function(p,v,_){return(this.dayOfWeek(p,v,_)||7)<6},toJD:function(p,v,_){var O=this._validate(p,x,_,u.local.invalidDate);p=this._validateYear(O.year()),v=O.month(),_=O.day();var C=this.isIntercalaryMonth(p,v),x=this.toChineseMonth(p,v),R=function(M,T,P,A,L){var D,k,I;if(typeof M=="object")k=M,D=T||{};else{var z;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof P=="number"&&P>=1&&P<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(z=!1,D=A):(z=!!A,D={}),k={year:M,month:T,day:P,isIntercalary:z}}I=k.day-1;var $,Q=c[k.year-c[0]],j=Q>>13;$=j&&(k.month>j||k.isIntercalary)?k.month:k.month-1;for(var U=0;U<$;U++)I+=Q&1<<12-U?30:29;var X=h[k.year-h[0]],te=new Date(X>>9&4095,(X>>5&15)-1,(31&X)+I);return D.year=te.getFullYear(),D.month=1+te.getMonth(),D.day=te.getDate(),D}(p,x,_,C);return i.toJD(R.year,R.month,R.day)},fromJD:function(p){var v=i.fromJD(p),_=function(C,x,R,M){var T,P;if(typeof C=="object")T=C,P=x||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof R=="number"&&R>=1&&R<=31))throw new Error("Solar day outside range 1 - 31");T={year:C,month:x,day:R},P={}}var A=h[T.year-h[0]],L=T.year<<9|T.month<<5|T.day;P.year=L>=A?T.year:T.year-1,A=h[P.year-h[0]];var D,k=new Date(A>>9&4095,(A>>5&15)-1,31&A),I=new Date(T.year,T.month-1,T.day);D=Math.round((I-k)/864e5);var z,$=c[P.year-c[0]];for(z=0;z<13;z++){var Q=$&1<<12-z?30:29;if(D>13;return!j||z=2&&a<=6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{century:S[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=a.year()+(a.year()<0?1:0),y=a.month(),(m=a.day())+(y>1?16:0)+(y>2?32*(y-2):0)+400*(w-1)+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var y=Math.floor(w/400)+1;w-=400*(y-1),w+=w>15?16:0;var m=Math.floor(w/32)+1,a=w-32*(m-1)+1;return this.newDate(y<=0?y-1:y,m,a)}});var S={20:"Fruitbat",21:"Anchovy"};u.calendars.discworld=i},65168:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()+(w.year()<0?1:0))%4==3||S%4==-1},monthsInYear:function(S){return this._validate(S,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),13},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===13&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return(S=m.year())<0&&S++,m.day()+30*(m.month()-1)+365*(S-1)+Math.floor(S/4)+this.jdEpoch-1},fromJD:function(S){var w=Math.floor(S)+.5-this.jdEpoch,y=Math.floor((w-Math.floor((w+366)/1461))/365)+1;y<=0&&y--,w=Math.floor(S)+.5-this.newDate(y,1,1).toJD();var m=Math.floor(w/30)+1,a=w-30*(m-1)+1;return this.newDate(y,m,a)}}),u.calendars.ethiopian=i},2084:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}function S(w,y){return w-y*Math.floor(w/y)}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this._leapYear(y.year())},_leapYear:function(w){return S(7*(w=w<0?w+1:w)+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,u.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,y){return w.year&&(y=w.month(),w=w.year()),this._validate(w,y,this.minDay,u.local.invalidMonth),y===12&&this.leapYear(w)||y===8&&S(this.daysInYear(w),10)===5?30:y===9&&S(this.daysInYear(w),10)===3?29:this.daysPerMonth[y-1]},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==6},extraInfo:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w<=0?w+1:w,h=this.jdEpoch+this._delay1(c)+this._delay2(c)+m+1;if(y<7){for(var p=7;p<=this.monthsInYear(w);p++)h+=this.daysInMonth(w,p);for(p=1;p=this.toJD(y===-1?1:y+1,7,1);)y++;for(var m=wthis.toJD(y,m,this.daysInMonth(y,m));)m++;var a=w-this.toJD(y,m,1)+1;return this.newDate(y,m,a)}}),u.calendars.hebrew=i},26368:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(S){return(11*this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year()+14)%30<11},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){return this.leapYear(S)?355:354},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===12&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==5},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),S=S<=0?S+1:S,(y=m.day())+Math.ceil(29.5*(w-1))+354*(S-1)+Math.floor((3+11*S)/30)+this.jdEpoch-1},fromJD:function(S){S=Math.floor(S)+.5;var w=Math.floor((30*(S-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var y=Math.min(12,Math.ceil((S-29-this.toJD(w,1,1))/29.5)+1),m=S-this.toJD(w,y,1)+1;return this.newDate(w,y,m)}}),u.calendars.islamic=i},24747:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(S){var w=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear);return(S=w.year()<0?w.year()+1:w.year())%4==0},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(S,w){var y=this._validate(S,w,this.minDay,u.local.invalidMonth);return this.daysPerMonth[y.month()-1]+(y.month()===2&&this.leapYear(y.year())?1:0)},weekDay:function(S,w,y){return(this.dayOfWeek(S,w,y)||7)<6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);return S=m.year(),w=m.month(),y=m.day(),S<0&&S++,w<=2&&(S--,w+=12),Math.floor(365.25*(S+4716))+Math.floor(30.6001*(w+1))+y-1524.5},fromJD:function(S){var w=Math.floor(S+.5)+1524,y=Math.floor((w-122.1)/365.25),m=Math.floor(365.25*y),a=Math.floor((w-m)/30.6001),c=a-Math.floor(a<14?1:13),h=y-Math.floor(c>2?4716:4715),p=w-m-Math.floor(30.6001*a);return h<=0&&h--,this.newDate(h,c,p)}}),u.calendars.julian=i},65616:function(d,s,n){var u=n(38700),b=n(50896);function i(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}function S(y,m){return y-m*Math.floor(y/m)}function w(y,m){return S(y-1,m)+1}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),!1},formatYear:function(y){y=this._validate(y,this.minMonth,this.minDay,u.local.invalidYear).year();var m=Math.floor(y/400);return y%=400,y+=y<0?400:0,m+"."+Math.floor(y/20)+"."+y%20},forYear:function(y){if((y=y.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,a=0;a19||a>0&&c<0)throw"Invalid Mayan year";m=20*m+c}return m},monthsInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),18},weekOfYear:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),0},daysInYear:function(y){return this._validate(y,this.minMonth,this.minDay,u.local.invalidYear),360},daysInMonth:function(y,m){return this._validate(y,m,this.minDay,u.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate).day()},weekDay:function(y,m,a){return this._validate(y,m,a,u.local.invalidDate),!0},extraInfo:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate).toJD(),h=this._toHaab(c),p=this._toTzolkin(c);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[p[0]-1],tzolkinDay:p[0],tzolkinTrecena:p[1]}},_toHaab:function(y){var m=S(8+(y-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,S(m,20)]},_toTzolkin:function(y){return[w(20+(y-=this.jdEpoch),20),w(y+4,13)]},toJD:function(y,m,a){var c=this._validate(y,m,a,u.local.invalidDate);return c.day()+20*c.month()+360*c.year()+this.jdEpoch},fromJD:function(y){y=Math.floor(y)+.5-this.jdEpoch;var m=Math.floor(y/360);y%=360,y+=y<0?360:0;var a=Math.floor(y/20),c=y%20;return this.newDate(m,a,c)}}),u.calendars.mayan=i},30632:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar;var S=u.instance("gregorian");b(i.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return S.leapYear(y.year()+(y.year()<1?1:0)+1469)},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidMonth);(w=a.year())<0&&w++;for(var c=a.day(),h=1;h=this.toJD(y+1,1,1);)y++;for(var m=w-Math.floor(this.toJD(y,1,1)+.5)+1,a=1;m>this.daysInMonth(y,a);)m-=this.daysInMonth(y,a),a++;return this.newDate(y,a,m)}}),u.calendars.nanakshahi=i},73040:function(d,s,n){var u=n(38700),b=n(50896);function i(S){this.local=this.regionalOptions[S||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(S){return this.daysInYear(S)!==this.daysPerYear},weekOfYear:function(S,w,y){var m=this.newDate(S,w,y);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(S){if(S=this._validate(S,this.minMonth,this.minDay,u.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[S]===void 0)return this.daysPerYear;for(var w=0,y=this.minMonth;y<=12;y++)w+=this.NEPALI_CALENDAR_DATA[S][y];return w},daysInMonth:function(S,w){return S.year&&(w=S.month(),S=S.year()),this._validate(S,w,this.minDay,u.local.invalidMonth),this.NEPALI_CALENDAR_DATA[S]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[S][w]},weekDay:function(S,w,y){return this.dayOfWeek(S,w,y)!==6},toJD:function(S,w,y){var m=this._validate(S,w,y,u.local.invalidDate);S=m.year(),w=m.month(),y=m.day();var a=u.instance(),c=0,h=w,p=S;this._createMissingCalendarData(S);var v=S-(h>9||h===9&&y>=this.NEPALI_CALENDAR_DATA[p][0]?56:57);for(w!==9&&(c=y,h--);h!==9;)h<=0&&(h=12,p--),c+=this.NEPALI_CALENDAR_DATA[p][h],h--;return w===9?(c+=y-this.NEPALI_CALENDAR_DATA[p][0])<0&&(c+=a.daysInYear(v)):c+=this.NEPALI_CALENDAR_DATA[p][9]-this.NEPALI_CALENDAR_DATA[p][0],a.newDate(v,1,1).add(c,"d").toJD()},fromJD:function(S){var w=u.instance().fromJD(S),y=w.year(),m=w.dayOfYear(),a=y+56;this._createMissingCalendarData(a);for(var c=9,h=this.NEPALI_CALENDAR_DATA[a][0],p=this.NEPALI_CALENDAR_DATA[a][c]-h+1;m>p;)++c>12&&(c=1,a++),p+=this.NEPALI_CALENDAR_DATA[a][c];var v=this.NEPALI_CALENDAR_DATA[a][c]-(p-m);return this.newDate(a,c,v)},_createMissingCalendarData:function(S){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var y=S-1;y0?474:473))%2820+474+38)%2816<682},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-(a.dayOfWeek()+1)%7,"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);w=a.year(),y=a.month(),m=a.day();var c=w-(w>=0?474:473),h=474+S(c,2820);return m+(y<=7?31*(y-1):30*(y-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(c/2820)+this.jdEpoch-1},fromJD:function(w){var y=(w=Math.floor(w)+.5)-this.toJD(475,1,1),m=Math.floor(y/1029983),a=S(y,1029983),c=2820;if(a!==1029982){var h=Math.floor(a/366),p=S(a,366);c=Math.floor((2134*h+2816*p+2815)/1028522)+h+1}var v=c+2820*m+474;v=v<=0?v-1:v;var _=w-this.toJD(v,1,1)+1,O=_<=186?Math.ceil(_/31):Math.ceil((_-6)/30),C=w-this.toJD(v,O,1)+1;return this.newDate(v,O,C)}}),u.calendars.persian=i,u.calendars.jalali=i},51456:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),u.calendars.taiwan=S},4592:function(d,s,n){var u=n(38700),b=n(50896),i=u.instance();function S(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}S.prototype=new u.baseCalendar,b(S.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(y.year()),i.leapYear(w)},weekOfYear:function(w,y,m){var a=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return w=this._t2gYear(a.year()),i.weekOfYear(w,a.month(),a.day())},daysInMonth:function(w,y){var m=this._validate(w,y,this.minDay,u.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(w,y,m){return(this.dayOfWeek(w,y,m)||7)<6},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate);return w=this._t2gYear(a.year()),i.toJD(w,a.month(),a.day())},fromJD:function(w){var y=i.fromJD(w),m=this._g2tYear(y.year());return this.newDate(m,y.month(),y.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),u.calendars.thai=S},45348:function(d,s,n){var u=n(38700),b=n(50896);function i(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}i.prototype=new u.baseCalendar,b(i.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var y=this._validate(w,this.minMonth,this.minDay,u.local.invalidYear);return this.daysInYear(y.year())===355},weekOfYear:function(w,y,m){var a=this.newDate(w,y,m);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var y=0,m=1;m<=12;m++)y+=this.daysInMonth(w,m);return y},daysInMonth:function(w,y){for(var m=this._validate(w,y,this.minDay,u.local.invalidMonth).toJD()-24e5+.5,a=0,c=0;cm)return S[a]-S[a-1];a++}return 30},weekDay:function(w,y,m){return this.dayOfWeek(w,y,m)!==5},toJD:function(w,y,m){var a=this._validate(w,y,m,u.local.invalidDate),c=12*(a.year()-1)+a.month()-15292;return a.day()+S[c-1]-1+24e5-.5},fromJD:function(w){for(var y=w-24e5+.5,m=0,a=0;ay);a++)m++;var c=m+15292,h=Math.floor((c-1)/12),p=h+1,v=c-12*h,_=y-S[m-1]+1;return this.newDate(p,v,_)},isValid:function(w,y,m){var a=u.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(a=(w=w.year!=null?w.year:w)>=1276&&w<=1500),a},_validate:function(w,y,m,a){var c=u.baseCalendar.prototype._validate.apply(this,arguments);if(c.year<1276||c.year>1500)throw a.replace(/\{0\}/,this.local.name);return c}}),u.calendars.ummalqura=i;var S=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(d,s,n){var u=n(50896);function b(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function i(a,c,h,p){if(this._calendar=a,this._year=c,this._month=h,this._day=p,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S(a,c){return"000000".substring(0,c-(a=""+a).length)+a}function w(){this.shortYearCutoff="+10"}function y(a){this.local=this.regionalOptions[a]||this.regionalOptions[""]}u(b.prototype,{instance:function(a,c){a=(a||"gregorian").toLowerCase(),c=c||"";var h=this._localCals[a+"-"+c];if(!h&&this.calendars[a]&&(h=new this.calendars[a](c),this._localCals[a+"-"+c]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,a);return h},newDate:function(a,c,h,p,v){return(p=(a!=null&&a.year?a.calendar():typeof p=="string"?this.instance(p,v):p)||this.instance()).newDate(a,c,h)},substituteDigits:function(a){return function(c){return(c+"").replace(/[0-9]/g,function(h){return a[h]})}},substituteChineseDigits:function(a,c){return function(h){for(var p="",v=0;h>0;){var _=h%10;p=(_===0?"":a[_]+c[v])+p,v++,h=Math.floor(h/10)}return p.indexOf(a[1]+c[1])===0&&(p=p.substr(1)),p||a[0]}}}),u(i.prototype,{newDate:function(a,c,h){return this._calendar.newDate(a??this,c,h)},year:function(a){return arguments.length===0?this._year:this.set(a,"y")},month:function(a){return arguments.length===0?this._month:this.set(a,"m")},day:function(a){return arguments.length===0?this._day:this.set(a,"d")},date:function(a,c,h){if(!this._calendar.isValid(a,c,h))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=a,this._month=c,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(a,c){return this._calendar.add(this,a,c)},set:function(a,c){return this._calendar.set(this,a,c)},compareTo:function(a){if(this._calendar.name!==a._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,a._calendar.local.name);var c=this._year!==a._year?this._year-a._year:this._month!==a._month?this.monthOfYear()-a.monthOfYear():this._day-a._day;return c===0?0:c<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(a){return this._calendar.fromJD(a)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(a){return this._calendar.fromJSDate(a)},toString:function(){return(this.year()<0?"-":"")+S(Math.abs(this.year()),4)+"-"+S(this.month(),2)+"-"+S(this.day(),2)}}),u(w.prototype,{_validateLevel:0,newDate:function(a,c,h){return a==null?this.today():(a.year&&(this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),h=a.day(),c=a.month(),a=a.year()),new i(this,a,c,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(c.year()<0?"-":"")+S(Math.abs(c.year()),4)},monthsInYear:function(a){return this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(a,c){var h=this._validate(a,c,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(a,c){var h=(c+this.firstMonth-2*this.minMonth)%this.monthsInYear(a)+this.minMonth;return this._validate(a,h,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),h},daysInYear:function(a){var c=this._validate(a,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(c)?366:365},dayOfYear:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return p.toJD()-this.newDate(p.year(),this.fromMonthOfYear(p.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(p))+2)%this.daysInWeek()},extraInfo:function(a,c,h){return this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(a,c,h){return this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(a,this._add(a,c,h),c,h)},_add:function(a,c,h){if(this._validateLevel++,h==="d"||h==="w"){var p=a.toJD()+c*(h==="w"?this.daysInWeek():1),v=a.calendar().fromJD(p);return this._validateLevel--,[v.year(),v.month(),v.day()]}try{var _=a.year()+(h==="y"?c:0),O=a.monthOfYear()+(h==="m"?c:0);v=a.day(),h==="y"?(a.month()!==this.fromMonthOfYear(_,O)&&(O=this.newDate(_,a.month(),this.minDay).monthOfYear()),O=Math.min(O,this.monthsInYear(_)),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O)))):h==="m"&&(function(x){for(;OR-1+x.minMonth;)_++,O-=R,R=x.monthsInYear(_)}(this),v=Math.min(v,this.daysInMonth(_,this.fromMonthOfYear(_,O))));var C=[_,this.fromMonthOfYear(_,O),v];return this._validateLevel--,C}catch(x){throw this._validateLevel--,x}},_correctAdd:function(a,c,h,p){if(!(this.hasYearZero||p!=="y"&&p!=="m"||c[0]!==0&&a.year()>0==c[0]>0)){var v={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[p],_=h<0?-1:1;c=this._add(a,h*v[0]+_*v[1],v[2])}return a.date(c[0],c[1],c[2])},set:function(a,c,h){this._validate(a,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var p=h==="y"?c:a.year(),v=h==="m"?c:a.month(),_=h==="d"?c:a.day();return h!=="y"&&h!=="m"||(_=Math.min(_,this.daysInMonth(p,v))),a.date(p,v,_)},isValid:function(a,c,h){this._validateLevel++;var p=this.hasYearZero||a!==0;if(p){var v=this.newDate(a,c,this.minDay);p=c>=this.minMonth&&c-this.minMonth=this.minDay&&h-this.minDay13.5?13:1),R=v-(x>2.5?4716:4715);return R<=0&&R--,this.newDate(R,x,C)},toJSDate:function(a,c,h){var p=this._validate(a,c,h,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=new Date(p.year(),p.month()-1,p.day());return v.setHours(0),v.setMinutes(0),v.setSeconds(0),v.setMilliseconds(0),v.setHours(v.getHours()>12?v.getHours()+2:0),v},fromJSDate:function(a){return this.newDate(a.getFullYear(),a.getMonth()+1,a.getDate())}});var m=d.exports=new b;m.cdate=i,m.baseCalendar=w,m.calendars.gregorian=y},15168:function(d,s,n){var u=n(50896),b=n(38700);u(b.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),b.local=b.regionalOptions[""],u(b.cdate.prototype,{formatDate:function(i,S){return typeof i!="string"&&(S=i,i=""),this._calendar.formatDate(i||"",this,S)}}),u(b.baseCalendar.prototype,{UNIX_EPOCH:b.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:b.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(i,S,w){if(typeof i!="string"&&(w=S,S=i,i=""),!S)return"";if(S.calendar()!==this)throw b.local.invalidFormat||b.regionalOptions[""].invalidFormat;i=i||this.local.dateFormat;for(var y,m,a,c=(w=w||{}).dayNamesShort||this.local.dayNamesShort,h=w.dayNames||this.local.dayNames,p=w.monthNumbers||this.local.monthNumbers,v=w.monthNamesShort||this.local.monthNamesShort,_=w.monthNames||this.local.monthNames,O=(w.calculateWeek||this.local.calculateWeek,function(k,I){for(var z=1;D+z1}),C=function(k,I,z,$){var Q=""+I;if(O(k,$))for(;Q.length1},A=function(X,te){var Z=P(X,te),K=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],re=new RegExp("^-?\\d{1,"+K+"}"),q=S.substring($).match(re);if(!q)throw(b.local.missingNumberAt||b.regionalOptions[""].missingNumberAt).replace(/\{0\}/,$);return $+=q[0].length,parseInt(q[0],10)},L=this,D=function(){if(typeof h=="function"){P("m");var X=h.call(L,S.substring($));return $+=X.length,X}return A("m")},k=function(X,te,Z,K){for(var re=P(X,K)?Z:te,q=0;q-1){C=1,x=R;for(var U=this.daysInMonth(O,C);x>U;U=this.daysInMonth(O,C))C++,x-=U}return _>-1?this.fromJD(_):this.newDate(O,C,x)},determineDate:function(i,S,w,y,m){w&&typeof w!="object"&&(m=y,y=w,w=null),typeof y!="string"&&(m=y,y="");var a=this;return S=S?S.newDate():null,i==null?S:typeof i=="string"?function(c){try{return a.parseDate(y,c,m)}catch{}for(var h=((c=c.toLowerCase()).match(/^c/)&&w?w.newDate():null)||a.today(),p=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,v=p.exec(c);v;)h.add(parseInt(v[1],10),v[2]||"d"),v=p.exec(c);return h}(i):typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?S:a.today().add(i,"d"):a.newDate(i)}})},21576:function(){},19768:function(){},63436:function(d,s,n){var u=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],b=typeof globalThis>"u"?n.g:globalThis;d.exports=function(){for(var i=[],S=0;S>8&15|Pe>>4&240,Pe>>4&15|240&Pe,(15&Pe)<<4|15&Pe,1):Ie===8?A(Pe>>24&255,Pe>>16&255,Pe>>8&255,(255&Pe)/255):Ie===4?A(Pe>>12&15|Pe>>8&240,Pe>>8&15|Pe>>4&240,Pe>>4&15|240&Pe,((15&Pe)<<4|15&Pe)/255):null):(Pe=h.exec(Te))?new D(Pe[1],Pe[2],Pe[3],1):(Pe=p.exec(Te))?new D(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,1):(Pe=v.exec(Te))?A(Pe[1],Pe[2],Pe[3],Pe[4]):(Pe=_.exec(Te))?A(255*Pe[1]/100,255*Pe[2]/100,255*Pe[3]/100,Pe[4]):(Pe=O.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,1):(Pe=C.exec(Te))?j(Pe[1],Pe[2]/100,Pe[3]/100,Pe[4]):x.hasOwnProperty(Te)?P(x[Te]):Te==="transparent"?new D(NaN,NaN,NaN,0):null}function P(Te){return new D(Te>>16&255,Te>>8&255,255&Te,1)}function A(Te,Pe,Ie,ze){return ze<=0&&(Te=Pe=Ie=NaN),new D(Te,Pe,Ie,ze)}function L(Te,Pe,Ie,ze){return arguments.length===1?((De=Te)instanceof i||(De=T(De)),De?new D((De=De.rgb()).r,De.g,De.b,De.opacity):new D):new D(Te,Pe,Ie,ze??1);var De}function D(Te,Pe,Ie,ze){this.r=+Te,this.g=+Pe,this.b=+Ie,this.opacity=+ze}function k(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b))}function I(){var Te=z(this.opacity);return"".concat(Te===1?"rgb(":"rgba(").concat($(this.r),", ").concat($(this.g),", ").concat($(this.b)).concat(Te===1?")":", ".concat(Te,")"))}function z(Te){return isNaN(Te)?1:Math.max(0,Math.min(1,Te))}function $(Te){return Math.max(0,Math.min(255,Math.round(Te)||0))}function Q(Te){return((Te=$(Te))<16?"0":"")+Te.toString(16)}function j(Te,Pe,Ie,ze){return ze<=0?Te=Pe=Ie=NaN:Ie<=0||Ie>=1?Te=Pe=NaN:Pe<=0&&(Te=NaN),new X(Te,Pe,Ie,ze)}function U(Te){if(Te instanceof X)return new X(Te.h,Te.s,Te.l,Te.opacity);if(Te instanceof i||(Te=T(Te)),!Te)return new X;if(Te instanceof X)return Te;var Pe=(Te=Te.rgb()).r/255,Ie=Te.g/255,ze=Te.b/255,De=Math.min(Pe,Ie,ze),Qe=Math.max(Pe,Ie,ze),Ve=NaN,$e=Qe-De,Oe=(Qe+De)/2;return $e?(Ve=Pe===Qe?(Ie-ze)/$e+6*(Ie0&&Oe<1?0:Ve,new X(Ve,$e,Oe,Te.opacity)}function X(Te,Pe,Ie,ze){this.h=+Te,this.s=+Pe,this.l=+Ie,this.opacity=+ze}function te(Te){return(Te=(Te||0)%360)<0?Te+360:Te}function Z(Te){return Math.max(0,Math.min(1,Te||0))}function K(Te,Pe,Ie){return 255*(Te<60?Pe+(Ie-Pe)*Te/60:Te<180?Ie:Te<240?Pe+(Ie-Pe)*(240-Te)/60:Pe)}u(i,T,{copy:function(Te){return Object.assign(new this.constructor,this,Te)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return U(this).formatHsl()},formatRgb:M,toString:M}),u(D,L,b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new D(this.r*Te,this.g*Te,this.b*Te,this.opacity)},rgb:function(){return this},clamp:function(){return new D($(this.r),$(this.g),$(this.b),z(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatHex8:function(){return"#".concat(Q(this.r)).concat(Q(this.g)).concat(Q(this.b)).concat(Q(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:I,toString:I})),u(X,function(Te,Pe,Ie,ze){return arguments.length===1?U(Te):new X(Te,Pe,Ie,ze??1)},b(i,{brighter:function(Te){return Te=Te==null?w:Math.pow(w,Te),new X(this.h,this.s,this.l*Te,this.opacity)},darker:function(Te){return Te=Te==null?S:Math.pow(S,Te),new X(this.h,this.s,this.l*Te,this.opacity)},rgb:function(){var Te=this.h%360+360*(this.h<0),Pe=isNaN(Te)||isNaN(this.s)?0:this.s,Ie=this.l,ze=Ie+(Ie<.5?Ie:1-Ie)*Pe,De=2*Ie-ze;return new D(K(Te>=240?Te-240:Te+120,De,ze),K(Te,De,ze),K(Te<120?Te+240:Te-120,De,ze),this.opacity)},clamp:function(){return new X(te(this.h),Z(this.s),Z(this.l),z(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Te=z(this.opacity);return"".concat(Te===1?"hsl(":"hsla(").concat(te(this.h),", ").concat(100*Z(this.s),"%, ").concat(100*Z(this.l),"%").concat(Te===1?")":", ".concat(Te,")"))}}));var re=function(Te){return function(){return Te}};function q(Te,Pe){var Ie=Pe-Te;return Ie?function(ze,De){return function(Qe){return ze+Qe*De}}(Te,Ie):re(isNaN(Te)?Pe:Te)}var Y=function Te(Pe){var Ie=function(De){return(De=+De)==1?q:function(Qe,Ve){return Ve-Qe?function($e,Oe,ke){return $e=Math.pow($e,ke),Oe=Math.pow(Oe,ke)-$e,ke=1/ke,function(Re){return Math.pow($e+Re*Oe,ke)}}(Qe,Ve,De):re(isNaN(Qe)?Ve:Qe)}}(Pe);function ze(De,Qe){var Ve=Ie((De=L(De)).r,(Qe=L(Qe)).r),$e=Ie(De.g,Qe.g),Oe=Ie(De.b,Qe.b),ke=q(De.opacity,Qe.opacity);return function(Re){return De.r=Ve(Re),De.g=$e(Re),De.b=Oe(Re),De.opacity=ke(Re),De+""}}return ze.gamma=Te,ze}(1);function ee(Te,Pe){var Ie,ze=Pe?Pe.length:0,De=Te?Math.min(ze,Te.length):0,Qe=new Array(De),Ve=new Array(ze);for(Ie=0;IeQe&&(De=Pe.slice(Qe,De),$e[Ve]?$e[Ve]+=De:$e[++Ve]=De),(Ie=Ie[0])===(ze=ze[0])?$e[Ve]?$e[Ve]+=ze:$e[++Ve]=ze:($e[++Ve]=null,Oe.push({i:Ve,x:pe(Ie,ze)})),Qe=de.lastIndex;return Qe{const f=document.getElementById(t.id);f&&Zhe.Plots.resize(f)},o=f=>{const E=JSON.parse(f);Zhe.react(t.id,E.data,E.layout)};pg(()=>{o(t.figureJson),window.addEventListener("resize",e)}),ice(()=>{window.removeEventListener("resize",e)}),ia(()=>t.figureJson,f=>{o(f)})}}),mp=(t,e)=>{const o=t.__vccOpts||t;for(const[f,E]of e)o[f]=E;return o},ITe=["id"];function DTe(t,e,o,f,E,d){return Uo(),Ya("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,ITe)}const bce=mp(LTe,[["render",DTe]]);class Qu{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,o,f){let E=[];return this.decompose(0,e,E,2),f.length&&f.decompose(0,f.length,E,3),this.decompose(o,this.length,E,1),v_.from(E,this.length-(o-e)+f.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,o=this.length){let f=[];return this.decompose(e,o,f,0),v_.from(f,o-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let o=this.scanIdentical(e,1),f=this.length-this.scanIdentical(e,-1),E=new oI(this),d=new oI(e);for(let s=o,n=o;;){if(E.next(s),d.next(s),s=0,E.lineBreak!=d.lineBreak||E.done!=d.done||E.value!=d.value)return!1;if(n+=E.value.length,E.done||n>=f)return!0}}iter(e=1){return new oI(this,e)}iterRange(e,o=this.length){return new Jve(this,e,o)}iterLines(e,o){let f;if(e==null)f=this.iter();else{o==null&&(o=this.lines+1);let E=this.line(e).from;f=this.iterRange(E,Math.max(E,o==this.lines+1?this.length:o<=1?0:this.line(o-1).to))}return new eye(f)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Qu.empty:e.length<=32?new hp(e):v_.from(hp.split(e,[]))}}class hp extends Qu{constructor(e,o=BTe(e)){super(),this.text=e,this.length=o}get lines(){return this.text.length}get children(){return null}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.text[d],n=E+s.length;if((o?f:n)>=e)return new zTe(E,n,f,s);E=n+1,f++}}decompose(e,o,f,E){let d=e<=0&&o>=this.length?this:new hp(qhe(this.text,e,o),Math.min(o,this.length)-Math.max(0,e));if(E&1){let s=f.pop(),n=sH(d.text,s.text.slice(),0,d.length);if(n.length<=32)f.push(new hp(n,s.length+d.length));else{let u=n.length>>1;f.push(new hp(n.slice(0,u)),new hp(n.slice(u)))}}else f.push(d)}replace(e,o,f){if(!(f instanceof hp))return super.replace(e,o,f);let E=sH(this.text,sH(f.text,qhe(this.text,0,e)),o),d=this.length+f.length-(o-e);return E.length<=32?new hp(E,d):v_.from(hp.split(E,[]),d)}sliceString(e,o=this.length,f=` `){let E="";for(let d=0,s=0;d<=o&&se&&s&&(E+=f),ed&&(E+=n.slice(Math.max(0,e-d),o-d)),d=u+1}return E}flatten(e){for(let o of this.text)e.push(o)}scanIdentical(){return 0}static split(e,o){let f=[],E=-1;for(let d of e)f.push(d),E+=d.length+1,f.length==32&&(o.push(new hp(f,E)),f=[],E=-1);return E>-1&&o.push(new hp(f,E)),o}}class v_ extends Qu{constructor(e,o){super(),this.children=e,this.length=o,this.lines=0;for(let f of e)this.lines+=f.lines}lineInner(e,o,f,E){for(let d=0;;d++){let s=this.children[d],n=E+s.length,u=f+s.lines-1;if((o?u:n)>=e)return s.lineInner(e,o,f,E);E=n+1,f=u+1}}decompose(e,o,f,E){for(let d=0,s=0;s<=o&&d=s){let b=E&((s<=e?1:0)|(u>=o?2:0));s>=e&&u<=o&&!b?f.push(n):n.decompose(e-s,o-s,f,b)}s=u+1}}replace(e,o,f){if(f.lines=d&&o<=n){let u=s.replace(e-d,o-d,f),b=this.lines-s.lines+u.lines;if(u.lines>5-1&&u.lines>b>>5+1){let i=this.children.slice();return i[E]=u,new v_(i,this.length-(o-e)+f.length)}return super.replace(d,n,u)}d=n+1}return super.replace(e,o,f)}sliceString(e,o=this.length,f=` -`){let E="";for(let d=0,s=0;de&&d&&(E+=f),es&&(E+=n.sliceString(e-s,o-s,f)),s=u+1}return E}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof v_))return 0;let f=0,[E,d,s,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;E+=o,d+=o){if(E==s||d==n)return f;let u=this.children[E],b=e.children[d];if(u!=b)return f+u.scanIdentical(b,o);f+=u.length+1}}static from(e,o=e.reduce((f,E)=>f+E.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let m of e)m.flatten(y);return new hp(y,o)}let E=Math.max(32,f>>5),d=E<<1,s=E>>1,n=[],u=0,b=-1,i=[];function S(y){let m;if(y.lines>d&&y instanceof v_)for(let a of y.children)S(a);else y.lines>s&&(u>s||!u)?(w(),n.push(y)):y instanceof hp&&u&&(m=i[i.length-1])instanceof hp&&y.lines+m.lines<=32?(u+=y.lines,b+=y.length+1,i[i.length-1]=new hp(m.text.concat(y.text),m.length+1+y.length)):(u+y.lines>E&&w(),u+=y.lines,b+=y.length+1,i.push(y))}function w(){u!=0&&(n.push(i.length==1?i[0]:v_.from(i,b)),b=-1,u=i.length=0)}for(let y of e)S(y);return w(),n.length==1?n[0]:new v_(n,o)}}Qu.empty=new hp([""],0);function ITe(t){let e=-1;for(let o of t)e+=o.length+1;return e}function aH(t,e,o=0,f=1e9){for(let E=0,d=0,s=!0;d=o&&(u>f&&(n=n.slice(0,f-E)),E0?1:(e instanceof hp?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,E=this.nodes[f],d=this.offsets[f],s=d>>1,n=E instanceof hp?E.text.length:E.children.length;if(s==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(E instanceof hp){let u=E.text[s+(o<0?-1:0)];if(this.offsets[f]+=o,u.length>Math.max(0,e))return this.value=e==0?u:o>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=E.children[s+(o<0?-1:0)];e>u.length?(e-=u.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(u),this.offsets.push(o>0?1:(u instanceof hp?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Gve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new oI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:E}=this.cursor.next(e);return this.pos+=(E.length+e)*o,this.value=E.length<=f?E:o<0?E.slice(E.length-f):E.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Kve{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:E}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=E,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Qu.prototype[Symbol.iterator]=function(){return this.iter()},oI.prototype[Symbol.iterator]=Gve.prototype[Symbol.iterator]=Kve.prototype[Symbol.iterator]=function(){return this});let DTe=class{constructor(e,o,f,E){this.from=e,this.to=o,this.number=f,this.text=E}get length(){return this.to-this.from}},q8="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return q8[e-1]<=t;return!1}function Zhe(t){return t>=127462&&t<=127487}const qhe=8205;function cg(t,e,o=!0,f=!0){return(o?Jve:zTe)(t,e,f)}function Jve(t,e,o){if(e==t.length)return e;e&&eye(t.charCodeAt(e))&&tye(t.charCodeAt(e-1))&&e--;let f=ag(t,e);for(e+=Gy(f);e=0&&Zhe(ag(t,s));)d++,s-=2;if(d%2==0)break;e+=2}else break}return e}function zTe(t,e,o){for(;e>0;){let f=Jve(t,e-2,o);if(f=56320&&t<57344}function tye(t){return t>=55296&&t<56320}function ag(t,e){let o=t.charCodeAt(e);if(!tye(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return eye(f)?(o-55296<<10)+(f-56320)+65536:o}function bce(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Gy(t){return t<65536?1:2}const Gae=/\r\n?|\n/;var lg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(lg||(lg={}));class k_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-E);d+=n}else{if(f!=lg.Simple&&b>=e&&(f==lg.TrackDel&&Ee||f==lg.TrackBefore&&Ee))return null;if(b>e||b==e&&o<0&&!n)return e==E||o<0?d:d+u;d+=u}E=b}if(e>E)throw new RangeError(`Position ${e} is out of range for changeset of length ${E}`);return d}touchesRange(e,o=e){for(let f=0,E=0;f=0&&E<=o&&n>=e)return Eo?"cover":!0;E=n}return!1}toString(){let e="";for(let o=0;o=0?":"+E:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k_(e)}static create(e){return new k_(e)}}class Wp extends k_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Kae(this,(o,f,E,d,s)=>e=e.replace(E,E+(f-o),s),!1),e}mapDesc(e,o=!1){return Jae(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let E=0,d=0;E=0){o[E]=n,o[E+1]=s;let u=E>>1;for(;f.length0&&s4(f,o,d.text),d.forward(i),n+=i}let b=e[s++];for(;n>1].toJSON()))}return e}static of(e,o,f){let E=[],d=[],s=0,n=null;function u(i=!1){if(!i&&!E.length)return;sw||S<0||w>o)throw new RangeError(`Invalid change range ${S} to ${w} (in doc of length ${o})`);let m=y?typeof y=="string"?Qu.of(y.split(f||Gae)):y:Qu.empty,a=m.length;if(S==w&&a==0)return;Ss&&Yg(E,S-s,-1),Yg(E,w-S,a),s4(d,E,m),s=w}}return b(e),u(!n),n}static empty(e){return new Wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let E=0;En&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[E+1]?t[E]+=e:e==0&&t[E]==0?t[E+1]+=o:f?(t[E]+=e,t[E+1]+=o):t.push(e,o)}function s4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||s==t.sections.length||t.sections[s+1]<0);)n=t.sections[s++],u=t.sections[s++];e(E,b,d,i,S),E=b,d=i}}}function Jae(t,e,o,f=!1){let E=[],d=f?[]:null,s=new SI(t),n=new SI(e);for(let u=-1;;)if(s.ins==-1&&n.ins==-1){let b=Math.min(s.len,n.len);Yg(E,b,-1),s.forward(b),n.forward(b)}else if(n.ins>=0&&(s.ins<0||u==s.i||s.off==0&&(n.len=0&&u=0){let b=0,i=s.len;for(;i;)if(n.ins==-1){let S=Math.min(i,n.len);b+=S,i-=S,n.forward(S)}else if(n.ins==0&&n.lenu||s.ins>=0&&s.len>u)&&(n||f.length>b),d.forward2(u),s.forward(u)}}}}class SI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?Qu.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?Qu.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class zT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,E;return this.empty?f=E=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),E=e.mapPos(this.to,-1)),f==this.from&&E==this.to?this:new zT(f,E,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return hi.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return hi.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return hi.range(e.anchor,e.head)}static create(e,o,f){return new zT(e,o,f)}}class hi{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:hi.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new hi(e.ranges.map(o=>zT.fromJSON(o)),e.main)}static single(e,o=e){return new hi([hi.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,E=0;Ee?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((E,d)=>E.from-d.from),o=e.indexOf(f);for(let E=1;Ed.head?hi.range(u,n):hi.range(n,u))}}return new hi(e,o)}}function rye(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let xce=0;class ls{constructor(e,o,f,E,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=E,this.id=xce++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new ls(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:_ce),!!e.static,e.enables)}of(e){return new sH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new sH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new sH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function _ce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class sH{constructor(e,o,f,E){this.dependencies=e,this.facet=o,this.type=f,this.value=E,this.id=xce++}dynamicSlot(e){var o;let f=this.value,E=this.facet.compareInput,d=this.id,s=e[d]>>1,n=this.type==2,u=!1,b=!1,i=[];for(let S of this.dependencies)S=="doc"?u=!0:S=="selection"?b=!0:((o=e[S.id])!==null&&o!==void 0?o:1)&1||i.push(e[S.id]);return{create(S){return S.values[s]=f(S),1},update(S,w){if(u&&w.docChanged||b&&(w.docChanged||w.selection)||ese(S,i)){let y=f(S);if(n?!Whe(y,S.values[s],E):!E(y,S.values[s]))return S.values[s]=y,1}return 0},reconfigure:(S,w)=>{let y,m=w.config.address[d];if(m!=null){let a=DH(w,m);if(this.dependencies.every(c=>c instanceof ls?w.facet(c)===S.facet(c):c instanceof tm?w.field(c,!1)==S.field(c,!1):!0)||(n?Whe(y=f(S),a,E):E(y=f(S),a)))return S.values[s]=a,0}else y=f(S);return S.values[s]=y,1}}}}function Whe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[u.id]),E=o.map(u=>u.type),d=f.filter(u=>!(u&1)),s=t[e.id]>>1;function n(u){let b=[];for(let i=0;if===E),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Yhe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,E)=>{let d=f.values[o],s=this.updateF(d,E);return this.compareF(d,s)?0:(f.values[o]=s,1)},reconfigure:(f,E)=>E.config.address[this.id]!=null?(f.values[o]=E.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Yhe.of({field:this,create:e})]}get extension(){return this}}const RT={lowest:4,low:3,default:2,high:1,highest:0};function EL(t){return e=>new oye(e,t)}const ty={highest:EL(RT.highest),high:EL(RT.high),default:EL(RT.default),low:EL(RT.low),lowest:EL(RT.lowest)};class oye{constructor(e,o){this.inner=e,this.prec=o}}class lD{of(e){return new tse(this,e)}reconfigure(e){return lD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class tse{constructor(e,o){this.compartment=e,this.inner=o}}class IH{constructor(e,o,f,E,d,s){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=E,this.staticValues=d,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let E=[],d=Object.create(null),s=new Map;for(let w of FTe(e,o,s))w instanceof tm?E.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),u=[],b=[];for(let w of E)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],m=y[0].facet,a=i&&i[w]||[];if(y.every(c=>c.type==0))if(n[m.id]=u.length<<1|1,_ce(a,y))u.push(f.facet(m));else{let c=m.combine(y.map(h=>h.value));u.push(f&&m.compare(c,f.facet(m))?f.facet(m):c)}else{for(let c of y)c.type==0?(n[c.id]=u.length<<1|1,u.push(c.value)):(n[c.id]=b.length<<1,b.push(h=>c.dynamicSlot(h)));n[m.id]=b.length<<1,b.push(c=>NTe(c,m,y))}}let S=b.map(w=>w(n));return new IH(e,s,S,n,u,d)}}function FTe(t,e,o){let f=[[],[],[],[],[]],E=new Map;function d(s,n){let u=E.get(s);if(u!=null){if(u<=n)return;let b=f[u].indexOf(s);b>-1&&f[u].splice(b,1),s instanceof tse&&o.delete(s.compartment)}if(E.set(s,n),Array.isArray(s))for(let b of s)d(b,n);else if(s instanceof tse){if(o.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(s.compartment)||s.inner;o.set(s.compartment,b),d(b,n)}else if(s instanceof oye)d(s.inner,s.prec);else if(s instanceof tm)f[n].push(s),s.provides&&d(s.provides,n);else if(s instanceof sH)f[n].push(s),s.facet.extensions&&d(s.facet.extensions,RT.default);else{let b=s.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,RT.default),f.reduce((s,n)=>s.concat(n))}function iI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let E=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|E}function DH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const iye=ls.define(),nse=ls.define({combine:t=>t.some(e=>e),static:!0}),aye=ls.define({combine:t=>t.length?t[0]:void 0,static:!0}),sye=ls.define(),lye=ls.define(),cye=ls.define(),uye=ls.define({combine:t=>t.length?t[0]:!1});class NO{constructor(e,o){this.type=e,this.value=o}static define(){return new $Te}}class $Te{of(e){return new NO(this,e)}}class VTe{constructor(e){this.map=e}of(e){return new Ql(this,e)}}class Ql{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new Ql(this.type,o)}is(e){return this.type==e}static define(e={}){return new VTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let E of e){let d=E.map(o);d&&f.push(d)}return f}}Ql.reconfigure=Ql.define();Ql.appendConfig=Ql.define();class Xp{constructor(e,o,f,E,d,s){this.startState=e,this.changes=o,this.selection=f,this.effects=E,this.annotations=d,this.scrollIntoView=s,this._doc=null,this._state=null,f&&rye(f,o.newLength),d.some(n=>n.type==Xp.time)||(this.annotations=d.concat(Xp.time.of(Date.now())))}static create(e,o,f,E,d,s){return new Xp(e,o,f,E,d,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Xp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Xp.time=NO.define();Xp.userEvent=NO.define();Xp.addToHistory=NO.define();Xp.remote=NO.define();function UTe(t,e){let o=[];for(let f=0,E=0;;){let d,s;if(f=t[f]))d=t[f++],s=t[f++];else if(E=0;E--){let d=f[E](t);d instanceof Xp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Xp?t=d[0]:t=dye(e,W8(d),!1)}return t}function QTe(t){let e=t.startState,o=e.facet(cye),f=t;for(let E=o.length-1;E>=0;E--){let d=o[E](t);d&&Object.keys(d).length&&(f=fye(f,rse(e,d,t.changes.newLength),!0))}return f==t?t:Xp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const HTe=[];function W8(t){return t==null?HTe:Array.isArray(t)?t:[t]}var yh=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(yh||(yh={}));const ZTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ose;try{ose=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function qTe(t){if(ose)return ose.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||ZTe.test(o)))return!0}return!1}function WTe(t){return e=>{if(!/\S/.test(e))return yh.Space;if(qTe(e))return yh.Word;for(let o=0;o-1)return yh.Word;return yh.Other}}class kc{constructor(e,o,f,E,d,s){this.config=e,this.doc=o,this.selection=f,this.values=E,this.status=e.statusTemplate.slice(),this.computeSlot=d,s&&(s._state=this);for(let n=0;nE.set(b,u)),o=null),E.set(n.value.compartment,n.value.extension)):n.is(Ql.reconfigure)?(o=null,f=n.value):n.is(Ql.appendConfig)&&(o=null,f=W8(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=IH.resolve(f,E,this),d=new kc(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(u,b)=>b.reconfigure(u,this),null).values);let s=e.startState.facet(nse)?e.newSelection:e.newSelection.asSingle();new kc(o,e.newDoc,s,d,(n,u)=>u.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:hi.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),E=this.changes(f.changes),d=[f.range],s=W8(f.effects);for(let n=1;ns.spec.fromJSON(n,u)))}}return kc.create({doc:e.doc,selection:hi.fromJSON(e.selection),extensions:o.extensions?E.concat([o.extensions]):E})}static create(e={}){let o=IH.resolve(e.extensions||[],new Map),f=e.doc instanceof Qu?e.doc:Qu.of((e.doc||"").split(o.staticFacet(kc.lineSeparator)||Gae)),E=e.selection?e.selection instanceof hi?e.selection:hi.single(e.selection.anchor,e.selection.head):hi.single(0);return rye(E,f.length),o.staticFacet(nse)||(E=E.asSingle()),new kc(o,f,E,o.dynamicSlots.map(()=>null),(d,s)=>s.create(d),null)}get tabSize(){return this.facet(kc.tabSize)}get lineBreak(){return this.facet(kc.lineSeparator)||` -`}get readOnly(){return this.facet(uye)}phrase(e,...o){for(let f of this.facet(kc.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,E)=>{if(E=="$")return"$";let d=+(E||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let E=[];for(let d of this.facet(iye))for(let s of d(this,o,f))Object.prototype.hasOwnProperty.call(s,e)&&E.push(s[e]);return E}charCategorizer(e){return WTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:E}=this.doc.lineAt(e),d=this.charCategorizer(e),s=e-f,n=e-f;for(;s>0;){let u=cg(o,s,!1);if(d(o.slice(u,s))!=yh.Word)break;s=u}for(;nt.length?t[0]:4});kc.lineSeparator=aye;kc.readOnly=uye;kc.phrases=ls.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(E=>t[E]==e[E])}});kc.languageData=iye;kc.changeFilter=sye;kc.transactionFilter=lye;kc.transactionExtender=cye;lD.reconfigure=Ql.define();function E_(t,e,o={}){let f={};for(let E of t)for(let d of Object.keys(E)){let s=E[d],n=f[d];if(n===void 0)f[d]=s;else if(!(n===s||s===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,s);else throw new Error("Config merge conflict for field "+d)}for(let E in e)f[E]===void 0&&(f[E]=e[E]);return f}class ZT{eq(e){return this==e}range(e,o=e){return ise.create(e,o,this)}}ZT.prototype.startSide=ZT.prototype.endSide=0;ZT.prototype.point=!1;ZT.prototype.mapMode=lg.TrackDel;let ise=class hye{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new hye(e,o,f)}};function ase(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class wce{constructor(e,o,f,E){this.from=e,this.to=o,this.value=f,this.maxPoint=E}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,E=0){let d=f?this.to:this.from;for(let s=E,n=d.length;;){if(s==n)return s;let u=s+n>>1,b=d[u]-e||(f?this.value[u].endSide:this.value[u].startSide)-o;if(u==s)return b>=0?s:n;b>=0?n=u:s=u+1}}between(e,o,f,E){for(let d=this.findIndex(o,-1e9,!0),s=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(s<0&&(s=w),b.point&&(n=Math.max(n,y-w)),f.push(b),E.push(w-s),d.push(y-s))}return{mapped:f.length?new wce(E,d,f,n):null,pos:s}}}class Df{constructor(e,o,f,E){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=E}static create(e,o,f,E){return new Df(e,o,f,E)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:E=0,filterTo:d=this.length}=e,s=e.filter;if(o.length==0&&!s)return this;if(f&&(o=o.slice().sort(ase)),this.isEmpty)return o.length?Df.of(o):this;let n=new pye(this,null,-1).goto(0),u=0,b=[],i=new y4;for(;n.value||u=0){let S=o[u++];i.addInner(S.from,S.to,S.value)||b.push(S)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+s.length&&s.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return kI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return kI.from(e).goto(o)}static compare(e,o,f,E,d=-1){let s=e.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),n=o.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),u=Xhe(s,n,f),b=new PL(s,u,d),i=new PL(n,u,d);f.iterGaps((S,w,y)=>Ghe(b,S,i,w,y,E)),f.empty&&f.length==0&&Ghe(b,0,i,0,0,E)}static eq(e,o,f=0,E){E==null&&(E=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),s=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=s.length)return!1;if(!d.length)return!0;let n=Xhe(d,s),u=new PL(d,n,0).goto(f),b=new PL(s,n,0).goto(f);for(;;){if(u.to!=b.to||!sse(u.active,b.active)||u.point&&(!b.point||!u.point.eq(b.point)))return!1;if(u.to>E)return!0;u.next(),b.next()}}static spans(e,o,f,E,d=-1){let s=new PL(e,null,d).goto(o),n=o,u=s.openStart;for(;;){let b=Math.min(s.to,f);if(s.point){let i=s.activeForPoint(s.to),S=s.pointFromn&&(E.span(n,b,s.active,u),u=s.openEnd(b));if(s.to>f)return u+(s.point&&s.to>f?1:0);n=s.to,s.next()}}static of(e,o=!1){let f=new y4;for(let E of e instanceof ise?[e]:o?YTe(e):e)f.add(E.from,E.to,E.value);return f.finish()}}Df.empty=new Df([],[],null,-1);function YTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(ase);e=f}return t}Df.empty.nextLayer=Df.empty;class y4{finishChunk(e){this.chunks.push(new wce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new y4)).add(e,o,f)}addInner(e,o,f){let E=e-this.lastTo||f.startSide-this.last.endSide;if(E<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return E<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Df.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Df.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Xhe(t,e,o){let f=new Map;for(let d of t)for(let s=0;s=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&E.push(new pye(s,o,f,d));return E.length==1?E[0]:new kI(E)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)Tie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)Tie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Tie(this.heap,0)}}}function Tie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let E=t[f];if(f+1=0&&(E=t[f+1],f++),o.compare(E)<0)break;t[f]=o,t[e]=E,e=f}}class PL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=kI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){bQ(this.active,e),bQ(this.activeTo,e),bQ(this.activeRank,e),this.minActive=Khe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:E,rank:d}=this.cursor;for(;o-1&&(this.activeTo[E]-this.cursor.from||this.active[E].endSide-this.cursor.startSide)<0){if(this.activeTo[E]>e){this.to=this.activeTo[E],this.endSide=this.active[E].endSide;break}this.removeActive(E),f&&bQ(f,E)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[E]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function Ghe(t,e,o,f,E,d){t.goto(e),o.goto(f);let s=f+E,n=f,u=f-e;for(;;){let b=t.to+u-o.to||t.endSide-o.endSide,i=b<0?t.to+u:o.to,S=Math.min(i,s);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&sse(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,S,t.point,o.point):S>n&&!sse(t.active,o.active)&&d.compareRange(n,S,t.active,o.active),i>s)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function sse(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function Khe(t,e){let o=-1,f=1e9;for(let E=0;E=e)return E;if(E==t.length)break;d+=t.charCodeAt(E)==9?o-d%o:1,E=cg(t,E)}return f===!0?-1:t.length}const cse="ͼ",Jhe=typeof Symbol>"u"?"__"+cse:Symbol.for(cse),use=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),epe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class b4{constructor(e,o){this.rules=[];let{finish:f}=o||{};function E(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function d(s,n,u,b){let i=[],S=/^@(\w+)\b/.exec(s[0]),w=S&&S[1]=="keyframes";if(S&&n==null)return u.push(s[0]+";");for(let y in n){let m=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>s.map(c=>a.replace(/&/,c))).reduce((a,c)=>a.concat(c)),m,u);else if(m&&typeof m=="object"){if(!S)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(E(y),m,i,w)}else m!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+m+";")}(i.length||w)&&u.push((f&&!S&&!b?s.map(f):s).join(", ")+" {"+i.join(" ")+"}")}for(let s in e)d(E(s),e[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=epe[Jhe]||1;return epe[Jhe]=e+1,cse+e.toString(36)}static mount(e,o,f){let E=e[use],d=f&&f.nonce;E?d&&E.setNonce(d):E=new XTe(e,d),E.mount(Array.isArray(o)?o:[o])}}let tpe=new Map;class XTe{constructor(e,o){let f=e.ownerDocument||e,E=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&E.CSSStyleSheet){let d=tpe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[use]=d;this.sheet=new E.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],tpe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[use]=this}mount(e){let o=this.sheet,f=0,E=0;for(let d=0;d-1&&(this.modules.splice(n,1),E--,n=-1),n==-1){if(this.modules.splice(E++,0,s),o)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},GTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),KTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var sg=0;sg<10;sg++)x4[48+sg]=x4[96+sg]=String(sg);for(var sg=1;sg<=24;sg++)x4[sg+111]="F"+sg;for(var sg=65;sg<=90;sg++)x4[sg]=String.fromCharCode(sg+32),TI[sg]=String.fromCharCode(sg);for(var Cie in x4)TI.hasOwnProperty(Cie)||(TI[Cie]=x4[Cie]);function JTe(t){var e=GTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||KTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?TI:x4)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function BH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function fse(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function eCe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function lH(t,e){if(!e.anchorNode)return!1;try{return fse(t,e.anchorNode)}catch{return!1}}function lM(t){return t.nodeType==3?qT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function zH(t,e,o,f){return o?npe(t,e,o,f,-1)||npe(t,e,o,f,1):!1}function CI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function npe(t,e,o,f,E){for(;;){if(t==o&&e==f)return!0;if(e==(E<0?0:PO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=CI(t)+(E<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(E<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=E<0?PO(t):0}else return!1}}function PO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ZZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function tCe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function nCe(t,e,o,f,E,d,s,n){let u=t.ownerDocument,b=u.defaultView||window;for(let i=t,S=!1;i&&!S;)if(i.nodeType==1){let w,y=i==u.body,m=1,a=1;if(y)w=tCe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(S=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let p=i.getBoundingClientRect();m=p.width/i.offsetWidth,a=p.height/i.offsetHeight,w={left:p.left,right:p.left+i.clientWidth*m,top:p.top,bottom:p.top+i.clientHeight*a}}let c=0,h=0;if(E=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+s)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+s,o<0&&e.top-h0&&e.right>w.right+c&&(c=e.right-w.right+c+d)):e.right>w.right&&(c=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class oCe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?PO(o):0),f,Math.min(e.focusOffset,f?PO(f):0))}set(e,o,f,E){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=E}}let C8=null;function mye(t){if(t.setActive)return t.setActive();if(C8)return t.focus(C8);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(C8==null?{get preventScroll(){return C8={preventScroll:!0},!0}}:void 0),!C8){C8=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Gg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Gg(e.parentNode,CI(e),o)}static after(e,o){return new Gg(e.parentNode,CI(e)+1,o)}}const Oce=[];class eh{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,E=null,d;for(let s of this.children){if(s.flags&7){if(!s.dom&&(d=E?E.nextSibling:f.firstChild)){let n=eh.get(d);(!n||!n.parent&&n.canReuseDOM(s))&&s.reuseDOM(d)}s.sync(e,o),s.flags&=-8}if(d=E?E.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=s.dom&&(o.written=!0),s.dom.parentNode==f)for(;d&&d!=s.dom;)d=ope(d);else f.insertBefore(s.dom,d);E=s.dom}for(d=E?E.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=ope(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let E=PO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;E==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?E=-1:E=1),e=d}E<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!eh.get(f);)f=f.nextSibling;if(!f)return this.length;for(let E=0,d=0;;E++){let s=this.children[E];if(s.dom==f)return d;d+=s.length+s.breakAfter}}domBoundsAround(e,o,f=0){let E=-1,d=-1,s=-1,n=-1;for(let u=0,b=f,i=f;uo)return S.domBoundsAround(e,o,b);if(w>=e&&E==-1&&(E=u,d=b),b>o&&S.dom.parentNode==this.dom){s=u,n=i;break}i=w,b=w+S.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(E?this.children[E-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=Oce){this.markDirty();for(let E=e;Ethis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function bye(t,e,o,f,E,d,s,n,u){let{children:b}=t,i=b.length?b[e]:null,S=d.length?d[d.length-1]:null,w=S?S.breakAfter:s;if(!(e==f&&i&&!s&&!w&&d.length<2&&i.merge(o,E,d.length?S:null,o==0,n,u))){if(f0&&(!s&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var xs={mac:spe||/Mac/.test(Yv.platform),windows:/Win/.test(Yv.platform),linux:/Linux|X11/.test(Yv.platform),ie:qZ,ie_version:_ye?dse.documentMode||6:pse?+pse[1]:hse?+hse[1]:0,gecko:ipe,gecko_version:ipe?+(/Firefox\/(\d+)/.exec(Yv.userAgent)||[0,0])[1]:0,chrome:!!Aie,chrome_version:Aie?+Aie[1]:0,ios:spe,android:/Android\b/.test(Yv.userAgent),webkit:ape,safari:wye,webkit_version:ape?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:dse.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const sCe=256;class RO extends eh{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof RO)||this.length-(o-e)+f.length>sCe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new RO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Gg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return lCe(this.dom,e,o)}}class LO extends eh{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let E of o)E.setParent(this)}setAttrs(e){if(gye(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,E,d,s){return f&&(!(f instanceof LO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(E=d),f=u,d++}let s=this.length-e;return this.length=e,E>-1&&(this.children.length=E,this.markDirty()),new LO(this.mark,o,s)}domAtPos(e){return Oye(this,e)}coordsAt(e,o){return kye(this,e,o)}}function lCe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let E=e,d=e,s=0;e==0&&o<0||e==f&&o>=0?xs.chrome||xs.gecko||(e?(E--,s=1):d=0)?0:n.length-1];return xs.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(n,b=>b.width)||u),s?ZZ(u,s<0):u||null}class l4 extends eh{static create(e,o,f){return new l4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=l4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,E,d,s){return f&&(!(f instanceof l4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Gg.before(this.dom):Gg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let E=this.dom.getClientRects(),d=null;if(!E.length)return null;let s=this.side?this.side<0:e>0;for(let n=s?E.length-1:0;d=E[n],!(e>0?n==0:n==E.length-1||d.top0?Gg.before(this.dom):Gg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Qu.empty}get isHidden(){return!0}}RO.prototype.children=l4.prototype.children=cM.prototype.children=Oce;function Oye(t,e){let o=t.dom,{children:f}=t,E=0;for(let d=0;Ed&&e0;d--){let s=f[d-1];if(s.dom.parentNode==o)return s.domAtPos(s.length)}for(let d=E;d0&&e instanceof LO&&E.length&&(f=E[E.length-1])instanceof LO&&f.mark.eq(e.mark)?Sye(f,e.children[0],o-1):(E.push(e),e.setParent(t)),t.length+=e.length}function kye(t,e,o){let f=null,E=-1,d=null,s=-1;function n(b,i){for(let S=0,w=0;S=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(m>i||w==m&&y.getSide()>0)?(d=y,s=i-w):(w-1?1:0)!=E.length-(o&&E.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(E.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function gse(t,e,o){let f=!1;if(e)for(let E in e)o&&E in o||(f=!0,E=="style"?t.style.cssText="":t.removeAttribute(E));if(o)for(let E in o)e&&e[E]==o[E]||(f=!0,E=="style"?t.style.cssText=o[E]:t.setAttribute(E,o[E]));return f}function uCe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Sce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Sye(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=mse(o,this.attrs||{})),f&&(this.attrs=mse({class:f},this.attrs||{}))}domAtPos(e){return Oye(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(gye(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(gse(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let E=this.dom.lastChild;for(;E&&eh.get(E)instanceof LO;)E=E.lastChild;if(!E||!this.length||E.nodeName!="BR"&&((f=eh.get(E))===null||f===void 0?void 0:f.isEditable)==!1&&(!xs.ios||!this.children.some(d=>d instanceof RO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof RO)||/[^ -~]/.test(f.text))return null;let E=lM(f.dom);if(E.length!=1)return null;e+=E[0].width,o=E[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=kye(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:E}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-E.lineHeight)<2&&E.textHeight=o){if(d instanceof qp)return d;if(s>o)break}E=s+d.breakAfter}return null}}class p4 extends eh{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,E,d,s){return f&&(!(f instanceof p4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ex{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var q0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(q0||(q0={}));class Ns extends ZT{constructor(e,o,f,E){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=E}get heightRelevant(){return!1}static mark(e){return new cD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new _4(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,E;if(e.isBlockGap)f=-5e8,E=4e8;else{let{start:d,end:s}=Tye(e,o);f=(d?o?-3e8:-1:5e8)-1,E=(s?o?2e8:1:-6e8)+1}return new _4(e,f,E,o,e.widget||null,!0)}static line(e){return new uD(e)}static set(e,o=!1){return Df.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ns.none=Df.empty;class cD extends Ns{constructor(e){let{start:o,end:f}=Tye(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof cD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&Sce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}cD.prototype.point=!1;class uD extends Ns{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof uD&&this.spec.class==e.spec.class&&Sce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}uD.prototype.mapMode=lg.TrackBefore;uD.prototype.point=!0;class _4 extends Ns{constructor(e,o,f,E,d,s){super(o,f,d,e),this.block=E,this.isReplace=s,this.mapMode=E?o<=0?lg.TrackBefore:lg.TrackAfter:lg.TrackDel}get type(){return this.startSide!=this.endSide?q0.WidgetRange:this.startSide<=0?q0.WidgetBefore:q0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _4&&fCe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}_4.prototype.point=!0;function Tye(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function fCe(t,e){return t==e||!!(t&&e&&t.compare(e))}function vse(t,e,o,f=0){let E=o.length-1;E>=0&&o[E]+f>=t?o[E]=Math.max(o[E],e):o.push(t,e)}class aI{constructor(e,o,f,E){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=E,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof p4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new qp),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(_Q(new cM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof p4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:s,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let E=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(_Q(new RO(this.text.slice(this.textOff,this.textOff+E)),o),f),this.atCursorPos=!0,this.textOff+=E,e-=E,f=0}}span(e,o,f,E){this.buildText(o-e,f,E),this.pos=o,this.openStart<0&&(this.openStart=E)}point(e,o,f,E,d,s){if(this.disallowBlockEffectsFor[s]&&f instanceof _4){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof _4)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new p4(f.widget||new cpe("div"),n,f));else{let u=l4.create(f.widget||new cpe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!u.isEditable&&d<=E.length&&(e0),i=!u.isEditable&&(eE.length||f.startSide<=0),S=this.getLine();this.pendingBuffer==2&&!b&&!u.isEditable&&(this.pendingBuffer=0),this.flushBuffer(E),b&&(S.append(_Q(new cM(1),E),d),d=E.length+Math.max(0,d-E.length)),S.append(_Q(u,E),d),this.atCursorPos=i,this.pendingBuffer=i?eE.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=E.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,E,d){let s=new aI(e,o,f,d);return s.openEnd=Df.spans(E,o,f,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function _Q(t,e){for(let o of e)t=new LO(o,[t],t.length);return t}class cpe extends Ex{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Cye=ls.define(),Aye=ls.define(),Mye=ls.define(),Eye=ls.define(),yse=ls.define(),Pye=ls.define(),Rye=ls.define(),Lye=ls.define({combine:t=>t.some(e=>e)}),Iye=ls.define({combine:t=>t.some(e=>e)});class X8{constructor(e,o="nearest",f="nearest",E=5,d=5,s=!1){this.range=e,this.y=o,this.x=f,this.yMargin=E,this.xMargin=d,this.isSnapshot=s}map(e){return e.empty?this:new X8(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new X8(hi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const wQ=Ql.define({map:(t,e)=>t.map(e)});function rb(t,e,o){let f=t.facet(Eye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const WZ=ls.define({combine:t=>t.length?t[0]:!0});let dCe=0;const HL=ls.define();class zh{constructor(e,o,f,E,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=E,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:E,provide:d,decorations:s}=o||{};return new zh(dCe++,e,f,E,n=>{let u=[HL.of(n)];return s&&u.push(AI.of(b=>{let i=b.plugin(n);return i?s(i):Ns.none})),d&&u.push(d(n)),u})}static fromClass(e,o){return zh.define(f=>new e(f),o)}}class Mie{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(rb(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){rb(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){rb(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Dye=ls.define(),kce=ls.define(),AI=ls.define(),Tce=ls.define(),Bye=ls.define();function upe(t,e,o){let f=t.state.facet(Bye);if(!f.length)return f;let E=f.map(s=>s instanceof Function?s(t):s),d=[];return Df.spans(E,e,o,{point(){},span(s,n,u,b){let i=d;for(let S=u.length-1;S>=0;S--,b--){let w=u[S].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==s&&y.direction==w)y.to=n,i=y.inner;else{let m={from:s,to:n,direction:w,inner:[]};i.push(m),i=m.inner}}}}),d}const zye=ls.define();function Nye(t){let e=0,o=0,f=0,E=0;for(let d of t.state.facet(zye)){let s=d(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(o=Math.max(o,s.right)),s.top!=null&&(f=Math.max(f,s.top)),s.bottom!=null&&(E=Math.max(E,s.bottom)))}return{left:e,right:o,top:f,bottom:E}}const ZL=ls.define();class ob{constructor(e,o,f,E){this.fromA=e,this.toA=o,this.fromB=f,this.toB=E}join(e){return new ob(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let E=e[o-1];if(!(E.fromA>f.toA)){if(E.toAi)break;d+=2}if(!u)return f;new ob(u.fromA,u.toA,u.fromB,u.toB).addToSet(f),s=u.toA,n=u.toB}}}class NH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=Wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let E=[];this.changes.iterChangedRanges((d,s,n,u)=>E.push(new ob(d,s,n,u))),this.changedRanges=E}static create(e,o,f){return new NH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var Bh=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Bh||(Bh={}));const MI=Bh.LTR,Fye=Bh.RTL;function $ye(t){let e=[];for(let o=0;o=o){if(n.level==f)return s;(d<0||(E!=0?E<0?n.fromo:e[d].level>n.level))&&(d=s)}}if(d<0)throw new RangeError("Index out of range");return d}}function Vye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(u_[a+1]==-y){let c=u_[a+2],h=c&2?E:c&4?c&1?d:E:0;h&&(hd[S]=hd[u_[a]]=h),n=a;break}}else{if(u_.length==189)break;u_[n++]=S,u_[n++]=w,u_[n++]=u}else if((m=hd[S])==2||m==1){let a=m==E;u=a?0:1;for(let c=n-3;c>=0;c-=3){let h=u_[c+2];if(h&2)break;if(a)u_[c+2]|=2;else{if(h&4)break;u_[c+2]|=4}}}}}function bCe(t,e,o,f){for(let E=0,d=f;E<=o.length;E++){let s=E?o[E-1].to:t,n=Eu;)m==c&&(m=o[--a].from,c=a?o[a-1].to:t),hd[--m]=y;u=i}else d=b,u++}}}function xse(t,e,o,f,E,d,s){let n=f%2?2:1;if(f%2==E%2)for(let u=e,b=0;uu&&s.push(new c4(u,a.from,y));let c=a.direction==MI!=!(y%2);_se(t,c?f+1:f,E,a.inner,a.from,a.to,s),u=a.to}m=a.to}else{if(m==o||(i?hd[m]!=n:hd[m]==n))break;m++}w?xse(t,u,m,f+1,E,w,s):ue;){let i=!0,S=!1;if(!b||u>d[b-1].to){let a=hd[u-1];a!=n&&(i=!1,S=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,m=u;e:for(;;)if(b&&m==d[b-1].to){if(S)break e;let a=d[--b];if(!i)for(let c=a.from,h=b;;){if(c==e)break e;if(h&&d[h-1].to==c)c=d[--h].from;else{if(hd[c-1]==n)break e;break}}if(w)w.push(a);else{a.tohd.length;)hd[hd.length]=256;let f=[],E=e==MI?0:1;return _se(t,E,E,o,0,t.length,f),f}function Uye(t){return[new c4(0,t,0)]}let jye="";function _Ce(t,e,o,f,E){var d;let s=f.head-t.from,n=-1;if(s==0){if(!E||!t.length)return null;e[0].level!=o&&(s=e[0].side(!1,o),n=0)}else if(s==t.length){if(E)return null;let w=e[e.length-1];w.level!=o&&(s=w.side(!0,o),n=e.length-1)}n<0&&(n=c4.find(e,s,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let u=e[n];s==u.side(E,o)&&(u=e[n+=E?1:-1],s=u.side(!E,o));let b=E==(u.dir==o),i=cg(t.text,s,b);if(jye=t.text.slice(Math.min(s,i),Math.max(s,i)),i!=u.side(E,o))return hi.cursor(i+t.from,b?-1:1,u.level);let S=n==(E?e.length-1:0)?null:e[n+(E?1:-1)];return!S&&u.level!=o?hi.cursor(E?t.to:t.from,E?-1:1,o):S&&S.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let E=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?E=this.domChanged.newSel.head:!ACe(e.changes,this.hasComposition)&&!e.selectionSet&&(E=e.state.selection.main.head));let d=E>-1?OCe(this.view,e.changes,E):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new ob(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(xs.ie||xs.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,n=this.updateDeco(),u=TCe(s,n,e.changes);return f=ob.extendWithRanges(f,u),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:E}=this.view;E.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=xs.chrome||xs.ios?{node:E.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||E.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?E[s]:null;if(!n)break;let{fromA:u,toA:b,fromB:i,toB:S}=n,w,y,m,a;if(f&&f.range.fromBi){let _=aI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),O=aI.build(this.view.state.doc,f.range.toB,S,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,m=_.openStart,a=O.openEnd;let C=this.compositionView(f);O.breakAtStart?C.breakAfter=1:O.content.length&&C.merge(C.length,C.length,O.content[0],!1,O.openStart,0)&&(C.breakAfter=O.content[0].breakAfter,O.content.shift()),_.content.length&&C.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(C).concat(O.content)}else({content:w,breakAtStart:y,openStart:m,openEnd:a}=aI.build(this.view.state.doc,i,S,this.decorations,this.dynamicDecorationMap));let{i:c,off:h}=d.findPos(b,1),{i:p,off:v}=d.findPos(u,-1);bye(this,p,v,c,h,w,y,m,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new RO(e.text.nodeValue);o.flags|=8;for(let{deco:E}of e.marks)o=new LO(E,[o],o.length);let f=new qp;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,s)=>{s.flags|=8|(s.children.some(u=>u.flags&7)?1:0),this.markedForComposition.add(s);let n=eh.get(d);n&&n!=s&&(n.dom=null),s.setDOM(d)},f=this.childPos(e.range.fromB,1),E=this.children[f.i];o(e.line,E);for(let d=e.marks.length-1;d>=-1;d--)f=E.childPos(f.off,1),E=E.children[f.i],o(d>=0?e.marks[d].node:e.text,E)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,E=f==this.dom,d=!E&&lH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(E||o||d))return;let s=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?u:this.moveToLine(this.domAtPos(n.head));if(xs.gecko&&n.empty&&!this.hasComposition&&wCe(u)){let S=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(S,u.node.childNodes[u.offset]||null)),u=b=new Gg(S,0),s=!0}let i=this.view.observer.selectionRange;(s||!i.focusNode||!zH(u.node,u.offset,i.anchorNode,i.anchorOffset)||!zH(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{xs.android&&xs.chrome&&this.dom.contains(i.focusNode)&&CCe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let S=BH(this.view.root);if(S)if(n.empty){if(xs.gecko){let w=SCe(u.node,u.offset);if(w&&w!=3){let y=Hye(u.node,u.offset,w==1?1:-1);y&&(u=new Gg(y.node,y.offset))}}S.collapse(u.node,u.offset),n.bidiLevel!=null&&S.caretBidiLevel!==void 0&&(S.caretBidiLevel=n.bidiLevel)}else if(S.extend){S.collapse(u.node,u.offset);try{S.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([u,b]=[b,u]),w.setEnd(b.node,b.offset),w.setStart(u.node,u.offset),S.removeAllRanges(),S.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(u,b)),this.impreciseAnchor=u.precise?null:new Gg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Gg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=BH(e.root),{anchorNode:E,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let s=qp.find(this,o.head);if(!s)return;let n=s.posAtStart;if(o.head==n||o.head==n+s.length)return;let u=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!u||!b||u.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let S=e.observer.selectionRange;e.docView.posFromDOM(S.anchorNode,S.anchorOffset)!=o.from&&f.collapse(E,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let E=e.offset;!f&&E=0;E--){let d=eh.get(o.childNodes[E]);d instanceof qp&&(f=d.domAtPos(d.length))}return f?new Gg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=eh.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;s--){let n=this.children[s],u=d-n.breakAfter,b=u-n.length;if(ue||n.covers(1))&&(!f||n instanceof qp&&!(f instanceof qp&&o>=0))&&(f=n,E=b),d=b}return f?f.coordsAt(e-E,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),E=this.children[o];if(!(E instanceof qp))return null;for(;E.children.length;){let{i:n,off:u}=E.childPos(f,1);for(;;n++){if(n==E.children.length)return null;if((E=E.children[n]).length)break}f=u}if(!(E instanceof RO))return null;let d=cg(E.text,f);if(d==f)return null;let s=qT(E.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,u=this.view.textDirection==Bh.LTR;for(let b=0,i=0;iE)break;if(b>=f){let y=S.dom.getBoundingClientRect();if(o.push(y.height),s){let m=S.dom.lastChild,a=m?lM(m):[];if(a.length){let c=a[a.length-1],h=u?c.right-y.left:y.right-c.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+S.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?Bh.RTL:Bh.LTR}measureTextSize(){for(let d of this.children)if(d instanceof qp){let s=d.measureTextSize();if(s)return s}let e=document.createElement("div"),o,f,E;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=lM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,E=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:E}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new yye(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,E=0;;E++){let d=E==o.viewports.length?null:o.viewports[E],s=d?d.from-1:this.length;if(s>f){let n=(o.lineBlockAt(s).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(Ns.replace({widget:new dpe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,s))}if(!d)break;f=d.to+1}return Ns.set(e)}updateDeco(){let e=this.view.state.facet(AI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),E;if(!f)return;!o.empty&&(E=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,E.left),top:Math.min(f.top,E.top),right:Math.max(f.right,E.right),bottom:Math.max(f.bottom,E.bottom)});let d=Nye(this.view),s={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:u}=this.view.scrollDOM;nCe(this.view.scrollDOM,s,o.head0)f=f.childNodes[E-1],E=PO(f);else break}if(o>=0)for(let f=t,E=e;;){if(f.nodeType==3)return{node:f,offset:E};if(f.nodeType==1&&E=0)f=f.childNodes[E],E=0;else break}return null}function SCe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function MCe(t,e,o=1){let f=t.charCategorizer(e),E=t.doc.lineAt(e),d=e-E.from;if(E.length==0)return hi.cursor(e);d==0?o=1:d==E.length&&(o=-1);let s=d,n=d;o<0?s=cg(E.text,d,!1):n=cg(E.text,d);let u=f(E.text.slice(s,n));for(;s>0;){let b=cg(E.text,s,!1);if(f(E.text.slice(b,s))!=u)break;s=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function PCe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Eie(t,e){return t.tope.top+1}function hpe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function wse(t,e,o){let f,E,d,s,n=!1,u,b,i,S;for(let m=t.firstChild;m;m=m.nextSibling){let a=lM(m);for(let c=0;cv||s==v&&d>p){f=m,E=h,d=p,s=v;let _=v?o0?c0)}p==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=m,S=h):i&&Eie(i,h)?i=ppe(i,h.bottom):S&&Eie(S,h)&&(S=hpe(S,h.top))}}if(i&&i.bottom>=o?(f=u,E=i):S&&S.top<=o&&(f=b,E=S),!f)return{node:t,offset:0};let w=Math.max(E.left,Math.min(E.right,e));if(f.nodeType==3)return mpe(f,w,o);if(n&&f.contentEditable!="false")return wse(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(E.left+E.right)/2?1:0);return{node:t,offset:y}}function mpe(t,e,o){let f=t.nodeValue.length,E=-1,d=1e9,s=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&S=(i.left+i.right)/2,y=w;if((xs.chrome||xs.gecko)&&qT(t,n).getBoundingClientRect().left==i.right&&(y=!w),S<=0)return{node:t,offset:n+(y?1:0)};E=n+(y?1:0),d=S}}}return{node:t,offset:E>-1?E:s>0?t.nodeValue.length:0}}function Zye(t,e,o,f=-1){var E,d;let s=t.contentDOM.getBoundingClientRect(),n=s.top+t.viewState.paddingTop,u,{docHeight:b}=t.viewState,{x:i,y:S}=e,w=S-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,O=!1;u=t.elementAtHeight(w),u.type!=q0.Text;)for(;w=f>0?u.bottom+_:u.top-_,!(w>=0&&w<=b);){if(O)return o?null:0;O=!0,f=-f}S=n+w;let y=u.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:gpe(t,s,u,i,S);let m=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:m,c=a.elementFromPoint(i,S);c&&!t.contentDOM.contains(c)&&(c=null),c||(i=Math.max(s.left+1,Math.min(s.right-1,i)),c=a.elementFromPoint(i,S),c&&!t.contentDOM.contains(c)&&(c=null));let h,p=-1;if(c&&((E=t.docView.nearest(c))===null||E===void 0?void 0:E.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(i,S);_&&({offsetNode:h,offset:p}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(i,S);_&&({startContainer:h,startOffset:p}=_,(!t.contentDOM.contains(h)||xs.safari&&RCe(h,p,i)||xs.chrome&&LCe(h,p,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=qp.find(t.docView,y);if(!_)return w>u.top+u.height/2?u.to:u.from;({node:h,offset:p}=wse(_.dom,i,S))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,p)+v.posAtStart}function gpe(t,e,o,f,E){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,u=Math.floor((E-o.top-(t.defaultLineHeight-n)*.5)/n);d+=u*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(o.from,o.to);return o.from+lse(s,d,t.state.tabSize)}function RCe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let E=t.nextSibling;E;E=E.nextSibling)if(E.nodeType!=1||E.nodeName!="BR")return!1;return qT(t,f-1,f).getBoundingClientRect().left>o}function LCe(t,e,o){if(e!=0)return!1;for(let E=t;;){let d=E.parentNode;if(!d||d.nodeType!=1||d.firstChild!=E)return!1;if(d.classList.contains("cm-line"))break;E=d}let f=t.nodeType==1?t.getBoundingClientRect():qT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function Ose(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==q0.Text))return f}return o}function ICe(t,e,o,f){let E=Ose(t,e.head),d=!f||E.type!=q0.Text||!(t.lineWrapping||E.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>E.from?e.head-1:e.head);if(d){let s=t.dom.getBoundingClientRect(),n=t.textDirectionAt(E.from),u=t.posAtCoords({x:o==(n==Bh.LTR)?s.right-1:s.left+1,y:(d.top+d.bottom)/2});if(u!=null)return hi.cursor(u,o?-1:1)}return hi.cursor(o?E.to:E.from,o?-1:1)}function vpe(t,e,o,f){let E=t.state.doc.lineAt(e.head),d=t.bidiSpans(E),s=t.textDirectionAt(E.from);for(let n=e,u=null;;){let b=_Ce(E,d,s,n,o),i=jye;if(!b){if(E.number==(o?t.state.doc.lines:1))return n;i=` -`,E=t.state.doc.line(E.number+(o?1:-1)),d=t.bidiSpans(E),b=hi.cursor(o?E.from:E.to)}if(u){if(!u(i))return n}else{if(!f)return b;u=f(i)}n=b}}function DCe(t,e,o){let f=t.state.charCategorizer(e),E=f(o);return d=>{let s=f(d);return E==yh.Space&&(E=s),E==s}}function BCe(t,e,o,f){let E=e.head,d=o?1:-1;if(E==(o?t.state.doc.length:0))return hi.cursor(E,e.assoc);let s=e.goalColumn,n,u=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(E,e.assoc||-1),i=t.documentTop;if(b)s==null&&(s=b.left-u.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(E);s==null&&(s=Math.min(u.right-u.left,t.defaultCharacterWidth*(E-y.from))),n=(d<0?y.top:y.bottom)+i}let S=u.left+s,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let m=n+(w+y)*d,a=Zye(t,{x:S,y:m},!1,d);if(mu.bottom||(d<0?aE)){let c=t.docView.coordsForChar(a),h=!c||m{if(e>d&&eE(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:hi.cursor(f,fnull),xs.gecko&&JCe(e.contentDOM.ownerDocument)}handleEvent(e){!HCe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let E of f.observers)E(this.view,o);for(let E of f.handlers){if(o.defaultPrevented)break;if(E(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=NCe(e),f=this.handlers,E=this.view.contentDOM;for(let d in o)if(d!="scroll"){let s=!o[d].handlers.length,n=f[d];n&&s!=!n.handlers.length&&(E.removeEventListener(d,this.handleEvent),n=null),n||E.addEventListener(d,this.handleEvent,{passive:s})}for(let d in f)d!="scroll"&&!o[d]&&E.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||FCe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Y8(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:xs.safari&&!xs.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function ype(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(E){rb(o.state,E)}}}function NCe(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let E=f.spec;if(E&&E.domEventHandlers)for(let d in E.domEventHandlers){let s=E.domEventHandlers[d];s&&o(d).handlers.push(ype(f.value,s))}if(E&&E.domEventObservers)for(let d in E.domEventObservers){let s=E.domEventObservers[d];s&&o(d).observers.push(ype(f.value,s))}}for(let f in Tx)o(f).handlers.push(Tx[f]);for(let f in Cx)o(f).observers.push(Cx[f]);return e}const qye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],FCe="dthko",Wye=[16,17,18,20,91,92,224,225],OQ=6;function SQ(t){return Math.max(0,t)*.7+8}function $Ce(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class VCe{constructor(e,o,f,E){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=E,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=rCe(e.contentDOM),this.atoms=e.state.facet(Tce).map(s=>s(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(kc.allowMultipleSelections)&&UCe(e,o),this.dragging=QCe(e,o)&&Kye(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&$Ce(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,E=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Nye(this.view);e.clientX-s.left<=d.left+OQ?f=-SQ(d.left-e.clientX):e.clientX+s.right>=d.right-OQ&&(f=SQ(e.clientX-d.right)),e.clientY-s.top<=d.top+OQ?E=-SQ(d.top-e.clientY):e.clientY+s.bottom>=d.bottom-OQ&&(E=SQ(e.clientY-d.bottom)),this.setScrollSpeed(f,E)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function UCe(t,e){let o=t.state.facet(Cye);return o.length?o[0](e):xs.mac?e.metaKey:e.ctrlKey}function jCe(t,e){let o=t.state.facet(Aye);return o.length?o[0](e):xs.mac?!e.altKey:!e.ctrlKey}function QCe(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=BH(t.root);if(!f||f.rangeCount==0)return!0;let E=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function HCe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=eh.get(o))&&f.ignoreEvent(e))return!1;return!0}const Tx=Object.create(null),Cx=Object.create(null),Yye=xs.ie&&xs.ie_version<15||xs.ios&&xs.webkit_version<604;function ZCe(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),Xye(t,o.value)},50)}function Xye(t,e){let{state:o}=t,f,E=1,d=o.toText(e),s=d.lines==o.selection.ranges.length;if(Sse!=null&&o.selection.ranges.every(u=>u.empty)&&Sse==d.toString()){let u=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==u)return{range:b};u=i.from;let S=o.toText((s?d.line(E++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:S},range:hi.cursor(b.from+S.length)}})}else s?f=o.changeByRange(u=>{let b=d.line(E++);return{changes:{from:u.from,to:u.to,insert:b.text},range:hi.cursor(u.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}Cx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Tx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);Cx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Cx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Tx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Mye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=YCe(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new VCe(t,e,o,f)),f&&t.observer.ignore(()=>mye(t.contentDOM));let E=t.inputState.mouseSelection;if(E)return E.start(e),E.dragging===!1}return!1};function bpe(t,e,o,f){if(f==1)return hi.cursor(e,o);if(f==2)return MCe(t.state,e,o);{let E=qp.find(t.docView,e),d=t.state.doc.lineAt(E?E.posAtEnd:e),s=E?E.posAtStart:d.from,n=E?E.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,xpe=(t,e,o)=>Gye(e,o)&&t>=o.left&&t<=o.right;function qCe(t,e,o,f){let E=qp.find(t.docView,e);if(!E)return 1;let d=e-E.posAtStart;if(d==0)return 1;if(d==E.length)return-1;let s=E.coordsAt(d,-1);if(s&&xpe(o,f,s))return-1;let n=E.coordsAt(d,1);return n&&xpe(o,f,n)?1:s&&Gye(f,s)?-1:1}function _pe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:qCe(t,o,e.clientX,e.clientY)}}const WCe=xs.ie&&xs.ie_version<=11;let wpe=null,Ope=0,Spe=0;function Kye(t){if(!WCe)return t.detail;let e=wpe,o=Spe;return wpe=t,Spe=Date.now(),Ope=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ope+1)%3:1}function YCe(t,e){let o=_pe(t,e),f=Kye(e),E=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),E=E.map(d.changes))},get(d,s,n){let u=_pe(t,d),b,i=bpe(t,u.pos,u.bias,f);if(o.pos!=u.pos&&!s){let S=bpe(t,o.pos,o.bias,f),w=Math.min(S.from,i.from),y=Math.max(S.to,i.to);i=w1&&(b=XCe(E,u.pos))?b:n?E.addRange(i):hi.create([i])}}}function XCe(t,e){for(let o=0;o=e)return hi.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}Tx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let E=t.docView.nearest(e.target);if(E&&E.isWidget){let d=E.posAtStart,s=d+E.length;(d>=o.to||s<=o.from)&&(o=hi.range(d,s))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Tx.dragend=t=>(t.inputState.draggedContent=null,!1);function kpe(t,e,o,f){if(!o)return;let E=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,s=f&&d&&jCe(t,e)?{from:d.from,to:d.to}:null,n={from:E,insert:o},u=t.state.changes(s?[s,n]:n);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(E,-1),head:u.mapPos(E,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Tx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),E=0,d=()=>{++E==o.length&&kpe(t,e,f.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[s]=n.result),d()},n.readAsText(o[s])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return kpe(t,e,f,!0),!0}return!1};Tx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=Yye?null:e.clipboardData;return o?(Xye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(ZCe(t),!1)};function GCe(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function KCe(t){let e=[],o=[],f=!1;for(let E of t.selection.ranges)E.empty||(e.push(t.sliceDoc(E.from,E.to)),o.push(E));if(!e.length){let E=-1;for(let{from:d}of t.selection.ranges){let s=t.doc.lineAt(d);s.number>E&&(e.push(s.text),o.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),E=s.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let Sse=null;Tx.copy=Tx.cut=(t,e)=>{let{text:o,ranges:f,linewise:E}=KCe(t.state);if(!o&&!E)return!1;Sse=E?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=Yye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(GCe(t,o),!1)};const Jye=NO.define();function ebe(t,e){let o=[];for(let f of t.facet(Rye)){let E=f(t,e);E&&o.push(E)}return o?t.update({effects:o,annotations:Jye.of(!0)}):null}function tbe(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=ebe(t.state,e);o?t.dispatch(o):t.update([])}},10)}Cx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),tbe(t)};Cx.blur=t=>{t.observer.clearSelectionRange(),tbe(t)};Cx.compositionstart=Cx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};Cx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,xs.chrome&&xs.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};Cx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Tx.beforeinput=(t,e)=>{var o;let f;if(xs.chrome&&xs.android&&(f=qye.find(E=>E.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let E=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>E+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Tpe=new Set;function JCe(t){Tpe.has(t)||(Tpe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Cpe=["pre-wrap","normal","pre-line","break-spaces"];class e6e{constructor(e){this.lineWrapping=e,this.doc=Qu.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Cpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,u=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=E,this.lineLength=d,u){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>uH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return W0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,E){let d=this,s=f.doc;for(let n=E.length-1;n>=0;n--){let{fromA:u,toA:b,fromB:i,toB:S}=E[n],w=d.lineAt(u,Kd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,Kd.ByPosNoHeight,f,0,0);for(S+=y.to-b,b=y.to;n>0&&w.from<=E[n-1].toA;)u=E[n-1].fromA,i=E[n-1].fromB,n--,ud*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,E-=n.size}else if(d>E*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(E=d&&s(this.blockAt(0,f,E,d))}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more&&this.setHeight(e,E.heights[E.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zv extends nbe{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,E){return new y_(E,this.length,f,this.height,this.breaks)}replace(e,o,f){let E=f[0];return f.length==1&&(E instanceof Zv||E instanceof ig&&E.flags&4)&&Math.abs(this.length-E.length)<10?(E instanceof ig?E=new Zv(E.length,this.height):E.height=this.height,this.outdated||(E.outdated=!1),E):W0.of(f)}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more?this.setHeight(e,E.heights[E.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ig extends W0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,E=e.doc.lineAt(o+this.length).number,d=E-f+1,s,n=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*d);s=u/d,this.length>d+1&&(n=(this.height-u)/(this.length-d-1))}else s=this.height/d;return{firstLine:f,lastLine:E,perLine:s,perChar:n}}blockAt(e,o,f,E){let{firstLine:d,lastLine:s,perLine:n,perChar:u}=this.heightMetrics(o,E);if(o.lineWrapping){let b=E+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),S=n+i.length*u,w=Math.max(f,e-S/2);return new y_(i.from,i.length,w,S,0)}else{let b=Math.max(0,Math.min(s-d,Math.floor((e-f)/n))),{from:i,length:S}=o.doc.line(d+b);return new y_(i,S,f+n*b,n,0)}}lineAt(e,o,f,E,d){if(o==Kd.ByHeight)return this.blockAt(e,f,E,d);if(o==Kd.ByPosNoHeight){let{from:y,to:m}=f.doc.lineAt(e);return new y_(y,m-y,0,0,0)}let{firstLine:s,perLine:n,perChar:u}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*u,S=b.number-s,w=E+n*S+u*(b.from-d-S);return new y_(b.from,b.length,Math.max(E,Math.min(w,E+this.height-i)),i,0)}forEachLine(e,o,f,E,d,s){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:u,perChar:b}=this.heightMetrics(f,d);for(let i=e,S=E;i<=o;){let w=f.doc.lineAt(i);if(i==e){let m=w.number-n;S+=u*m+b*(e-d-m)}let y=u+b*w.length;s(new y_(w.from,w.length,S,y,0)),S+=y,i=w.to+1}}replace(e,o,f){let E=this.length-o;if(E>0){let d=f[f.length-1];d instanceof ig?f[f.length-1]=new ig(d.length+E):f.push(null,new ig(E-1))}if(e>0){let d=f[0];d instanceof ig?f[0]=new ig(e+d.length):f.unshift(new ig(e-1),null)}return W0.of(f)}decomposeLeft(e,o){o.push(new ig(e-1),null)}decomposeRight(e,o){o.push(null,new ig(this.length-e-1))}updateHeight(e,o=0,f=!1,E){let d=o+this.length;if(E&&E.from<=o+this.length&&E.more){let s=[],n=Math.max(o,E.from),u=-1;for(E.from>o&&s.push(new ig(E.from-o-1).updateHeight(e,o));n<=d&&E.more;){let i=e.doc.lineAt(n).length;s.length&&s.push(null);let S=E.heights[E.index++];u==-1?u=S:Math.abs(S-u)>=uH&&(u=-2);let w=new Zv(i,S);w.outdated=!1,s.push(w),n+=i+1}n<=d&&s.push(null,new ig(d-n).updateHeight(e,n));let b=W0.of(s);return(u<0||Math.abs(b.height-this.height)>=uH||Math.abs(u-this.heightMetrics(e,o).perLine)>=uH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class n6e extends W0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,E){let d=f+this.left.height;return en))return b;let i=o==Kd.ByPosNoHeight?Kd.ByPosNoHeight:Kd.ByPos;return u?b.join(this.right.lineAt(n,i,f,s,n)):this.left.lineAt(n,i,f,E,d).join(b)}forEachLine(e,o,f,E,d,s){let n=E+this.left.height,u=d+this.left.length+this.break;if(this.break)e=u&&this.right.forEachLine(e,o,f,n,u,s);else{let b=this.lineAt(u,Kd.ByPos,f,E,d);e=e&&b.from<=o&&s(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,u,s)}}replace(e,o,f){let E=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-E,o-E,f));let d=[];e>0&&this.decomposeLeft(e,d);let s=d.length;for(let n of f)d.push(n);if(e>0&&Ape(d,s-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,E=f+this.break;if(e>=E)return this.right.decomposeRight(e-E,o);e2*o.size||o.size>2*e.size?W0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,E){let{left:d,right:s}=this,n=o+d.length+this.break,u=null;return E&&E.from<=o+d.length&&E.more?u=d=d.updateHeight(e,o,f,E):d.updateHeight(e,o,f),E&&E.from<=n+s.length&&E.more?u=s=s.updateHeight(e,n,f,E):s.updateHeight(e,n,f),u?this.balanced(d,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Ape(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof ig&&(f=t[e+1])instanceof ig&&t.splice(e-1,3,new ig(o.length+1+f.length))}const r6e=5;class Cce{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),E=this.nodes[this.nodes.length-1];E instanceof Zv?E.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Zv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=r6e)&&this.addLineDeco(E,d,s)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Zv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new ig(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zv)return e;let o=new Zv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let E=this.ensureLine();E.length+=f,E.collapsed+=f,E.widgetHeight=Math.max(E.widgetHeight,e),E.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Zv)&&!this.isCovered?this.nodes.push(new Zv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&S.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),s=Math.min(s,w.right),n=Math.max(n,w.top),u=b==t.parentNode?w.bottom:Math.min(u,w.bottom)}b=S.position=="absolute"||S.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,s)-o.left,top:n-(o.top+e),bottom:Math.max(n,u)-(o.top+e)}}function s6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class Rie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new e6e(o),this.stateDeco=e.facet(AI).filter(f=>typeof f!="function"),this.heightMap=W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle.setDoc(e.doc),[new ob(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ns.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let E=f?o.head:o.anchor;if(!e.some(({from:d,to:s})=>E>=d&&E<=s)){let{from:d,to:s}=this.lineBlockAt(E);e.push(new kQ(d,s))}}this.viewports=e.sort((f,E)=>f.from-E.from),this.scaler=this.heightMap.height<=7e6?Epe:new f6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:qL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(AI).filter(i=>typeof i!="function");let E=e.changedRanges,d=ob.extendWithRanges(E,o6e(f,this.stateDeco,e?e.changes:Wp.empty(this.state.doc.length))),s=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=s&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let u=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Iye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),E=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?Bh.RTL:Bh.LTR;let s=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),u=s||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,O=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(O>.995&&O<1.005||!isFinite(O)||Math.abs(n.height-o.offsetHeight)<1)&&(O=1),(this.scaleX!=_||this.scaleY!=O)&&(this.scaleX=_,this.scaleY=O,b|=8,s=u=!0)}let S=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=S||this.paddingBottom!=w)&&(this.paddingTop=S,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(E.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=vye(e.scrollDOM);let m=(this.printing?s6e:a6e)(o,this.paddingTop),a=m.top-this.pixelViewport.top,c=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let p=n.width;if((this.contentDOMWidth!=p||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),u){let _=e.docView.measureVisibleLineHeights(this.viewport);if(E.mustRefreshForHeights(_)&&(s=!0),s||E.lineWrapping&&Math.abs(p-this.contentDOMWidth)>E.charWidth){let{lineHeight:O,charWidth:C,textHeight:x}=e.docView.measureTextSize();s=O>0&&E.refresh(d,O,C,x,p/C,_),s&&(e.docView.minWidth=0,b|=8)}a>0&&c>0?i=Math.max(a,c):a<0&&c<0&&(i=Math.min(a,c)),E.heightChanged=!1;for(let O of this.viewports){let C=O.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(O);this.heightMap=(s?W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle,[new ob(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(E,0,s,new t6e(O.from,C))}E.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),E=this.heightMap,d=this.heightOracle,{visibleTop:s,visibleBottom:n}=this,u=new kQ(E.lineAt(s-f*1e3,Kd.ByHeight,d,0,0).from,E.lineAt(n+(1-f)*1e3,Kd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bu.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),S=E.lineAt(b,Kd.ByPos,d,0,0),w;o.y=="center"?w=(S.top+S.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&E>s-2*1e3&&d>1,s=E<<1;if(this.defaultTextDirection!=Bh.LTR&&!f)return[];let n=[],u=(b,i,S,w)=>{if(i-bb&&cc.from>=S.from&&c.to<=S.to&&Math.abs(c.from-b)c.fromh));if(!a){if(ic.from<=i&&c.to>=i)){let c=o.moveToLineBoundary(hi.cursor(i),!1,!0).head;c>b&&(i=c)}a=new Rie(b,i,this.gapSize(S,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&u(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Df.spans(e,this.viewport.from,this.viewport.to,{span(E,d){o.push({from:E,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((E,d)=>E.from!=o[d].from||E.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||qL(this.heightMap.lineAt(e,Kd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return qL(this.heightMap.lineAt(this.scaler.fromDOM(e),Kd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return qL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kQ{constructor(e,o){this.from=e,this.to=o}}function c6e(t,e,o){let f=[],E=t,d=0;return Df.spans(o,t,e,{span(){},point(s,n){s>E&&(f.push({from:E,to:s}),d+=s-E),E=n}},20),E=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let E=0;;E++){let{from:d,to:s}=e[E],n=s-d;if(f<=n)return d+f;f-=n}}function CQ(t,e){let o=0;for(let{from:f,to:E}of t.ranges){if(e<=E){o+=e-f;break}o+=E-f}return o/t.total}function u6e(t,e){for(let o of t)if(e(o))return o}const Epe={toDOM(t){return t},fromDOM(t){return t},scale:1};class f6e{constructor(e,o,f){let E=0,d=0,s=0;this.viewports=f.map(({from:n,to:u})=>{let b=o.lineAt(n,Kd.ByPos,e,0,0).top,i=o.lineAt(u,Kd.ByPos,e,0,0).bottom;return E+=i-b,{from:n,to:u,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-E)/(o.height-E);for(let n of this.viewports)n.domTop=s+(n.top-d)*this.scale,s=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,E=0;;o++){let d=oqL(E,e)):t._content)}const AQ=ls.define({combine:t=>t.join(" ")}),kse=ls.define({combine:t=>t.indexOf(!0)>-1}),Tse=b4.newName(),rbe=b4.newName(),obe=b4.newName(),ibe={"&light":"."+rbe,"&dark":"."+obe};function Cse(t,e,o){return new b4(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,E=>{if(E=="&")return t;if(!o||!o[E])throw new RangeError(`Unsupported selector: ${E}`);return o[E]}):t+" "+f}})}const d6e=Cse("."+Tse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ibe),WL="￿";class h6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(kc.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=WL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let E=e;;){this.findPointBefore(f,E);let d=this.text.length;this.readNode(E);let s=E.nextSibling;if(s==o)break;let n=eh.get(E),u=eh.get(s);(n&&u?n.breakAfter:(n?n.breakAfter:Ppe(E))||Ppe(s)&&(E.nodeName!="BR"||E.cmIgnore)&&this.text.length>d)&&this.lineBreak(),E=s}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,E=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,s=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),s=this.lineSeparator.length):(n=E.exec(o))&&(d=n.index,s=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),s>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=s-1);f=d+s}}readNode(e){if(e.cmIgnore)return;let o=eh.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let E=f.iter();!E.next().done;)E.lineBreak?this.lineBreak():this.append(E.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(p6e(e,f.node,f.offset)?o:0))}}function p6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||s?[]:y6e(e),u=new h6e(n,e.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=b6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,u=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!fse(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=s&&s.node==n.anchorNode&&s.offset==n.anchorOffset||!fse(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=hi.single(b,u)}}}function abe(t,e){let o,{newSel:f}=e,E=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:n}=e.bounds,u=E.from,b=null;(d===8||xs.android&&e.text.length=E.from&&o.to<=E.to&&(o.from!=E.from||o.to!=E.to)&&E.to-E.from-(o.to-o.from)<=4?o={from:E.from,to:E.to,insert:t.state.doc.slice(E.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,E.to))}:(xs.mac||xs.android)&&o&&o.from==o.to&&o.from==E.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}):xs.chrome&&o&&o.from==o.to&&o.from==E.head&&o.insert.toString()==` - `&&t.lineWrapping&&(f&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}),o){if(xs.ios&&t.inputState.flushIOSKey()||xs.android&&(o.from==E.from&&o.to==E.to&&o.insert.length==1&&o.insert.lines==2&&Y8(t.contentDOM,"Enter",13)||(o.from==E.from-1&&o.to==E.to&&o.insert.length==0||d==8&&o.insert.lengthE.head)&&Y8(t.contentDOM,"Backspace",8)||o.from==E.from&&o.to==E.to+1&&o.insert.length==0&&Y8(t.contentDOM,"Delete",46)))return!0;let s=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,u=()=>n||(n=g6e(t,o,f));return t.state.facet(Pye).some(b=>b(t,o.from,o.to,s,u))||t.dispatch(u()),!0}else if(f&&!f.main.eq(E)){let s=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:s,userEvent:n}),!0}else return!1}function g6e(t,e,o){let f,E=t.state,d=E.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?E.sliceDoc(e.to,d.to):"";f=E.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let n=E.changes(e),u=o&&o.main.to<=n.newLength?o.main:void 0;if(E.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,S=o&&Qye(t,o.main.head);if(S){let m=e.insert.length-(e.to-e.from);i={from:S.from,to:S.to-m}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=E.changeByRange(m=>{if(m.from==d.from&&m.to==d.to)return{changes:n,range:u||m.map(n)};let a=m.to-w,c=a-b.length;if(m.to-m.from!=y||t.state.sliceDoc(c,a)!=b||m.to>=i.from&&m.from<=i.to)return{range:m};let h=E.changes({from:c,to:a,insert:e.insert}),p=m.to-d.to;return{changes:h,range:u?hi.range(Math.max(0,u.anchor+p),Math.max(0,u.head+p)):m.map(h)}})}else f={changes:n,selection:u&&E.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),E.update(f,{userEvent:s,scrollIntoView:!0})}function v6e(t,e,o,f){let E=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(s-1)==e.charCodeAt(n-1);)s--,n--;if(f=="end"){let u=Math.max(0,d-Math.min(s,n));o-=s+u-d}if(s=s?d-o:0;d-=u,n=d+(n-s),s=d}else if(n=n?d-o:0;d-=u,s=d+(s-n),n=d}return{from:d,toA:s,toB:n}}function y6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:E,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new Rpe(o,f)),(E!=o||d!=f)&&e.push(new Rpe(E,d))),e}function b6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?hi.single(o+e,f+e):null}const x6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Lie=xs.ie&&xs.ie_version<=11;class _6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new oCe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(xs.ie&&xs.ie_version<=11||xs.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),Lie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,E=this.selectionRange;if(f.state.facet(WZ)?f.root.activeElement!=this.dom:!lH(f.dom,E))return;let d=E.anchorNode&&f.docView.nearest(E.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(xs.ie&&xs.ie_version<=11||xs.android&&xs.chrome)&&!f.state.selection.main.empty&&E.focusNode&&zH(E.focusNode,E.focusOffset,E.anchorNode,E.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=xs.safari&&e.root.nodeType==11&&eCe(this.dom.ownerDocument)==this.dom&&w6e(this.view)||BH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=lH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&Y8(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(E)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,E=!1;for(let d of e){let s=this.readMutation(d);s&&(s.typeOver&&(E=!0),o==-1?{from:o,to:f}=s:(o=Math.min(s.from,o),f=Math.max(s.to,f)))}return{from:o,to:f,typeOver:E}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),E=this.selectionChanged&&lH(this.dom,this.selectionRange);if(e<0&&!E)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new m6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,E=abe(this.view,o);return this.view.state==f&&this.view.update([]),E}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=Lpe(o,e.previousSibling||e.target.previousSibling,-1),E=Lpe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:E?o.posBefore(E):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let E of this.scrollTargets)E.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Lpe(t,e,o){for(;e;){let f=eh.get(e);if(f&&f.parent==t)return f;let E=e.parentNode;e=E!=t.dom?E:o>0?e.nextSibling:e.previousSibling}return null}function w6e(t){let e=null;function o(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,E=e.startOffset,d=e.endContainer,s=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return zH(n.node,n.offset,d,s)&&([f,E,d,s]=[d,s,f,E]),{anchorNode:f,anchorOffset:E,focusNode:d,focusOffset:s}}class Xa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(E=>o(E,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||iCe(e.parent)||document,this.viewState=new Mpe(e.state||kc.create(e)),e.scrollTo&&e.scrollTo.is(wQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(HL).map(f=>new Mie(f));for(let f of this.plugins)f.update(this);this.observer=new _6e(this),this.inputState=new zCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new fpe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Xp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,E,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let s=this.hasFocus,n=0,u=null;e.some(w=>w.annotation(Jye))?(this.inputState.notifiedFocused=s,n=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,u=ebe(d,s),u||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(kc.phrases)!=this.state.facet(kc.phrases))return this.setState(d);E=NH.create(this,d,e),E.flags|=n;let S=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(S&&(S=S.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;S=new X8(y.empty?y:hi.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(wQ)&&(S=y.value.clip(this.state))}this.viewState.update(E,S),this.bidiCache=FH.update(this.bidiCache,E.changes),E.empty||(this.updatePlugins(E),this.inputState.update(E)),o=this.docView.update(E),this.state.facet(ZL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(E.startState.facet(AQ)!=E.state.facet(AQ)&&(this.viewState.mustMeasureContent=!0),(o||f||S||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!E.empty)for(let w of this.state.facet(yse))try{w(E)}catch(y){rb(this.state,y,"update listener")}(u||i)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),i&&!abe(this,i)&&b.force&&Y8(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new Mpe(e),this.plugins=e.facet(HL).map(f=>new Mie(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new fpe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(HL),f=e.state.facet(HL);if(o!=f){let E=[];for(let d of f){let s=o.indexOf(d);if(s<0)E.push(new Mie(d));else{let n=this.plugins[s];n.mustUpdate=e,E.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=E,this.pluginMap.clear()}else for(let E of this.plugins)E.mustUpdate=e;for(let E=0;E-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,E=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:s}=this.viewState;Math.abs(E-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(s<0)if(vye(f))d=-1,s=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(E);d=y.from,s=y.top}this.updateState=1;let u=this.viewState.measure(this);if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];u&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(m){return rb(this.state,m),Ipe}}),S=NH.create(this,this.state,[]),w=!1;S.flags|=u,o?o.flags|=u:o=S,this.updateState=2,S.empty||(this.updatePlugins(S),this.inputState.update(S),this.updateAttrs(),w=this.docView.update(S));for(let y=0;y1||m<-1){E=E+m,f.scrollTop=E/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(yse))n(o)}get themeClasses(){return Tse+" "+(this.state.facet(kse)?obe:rbe)+" "+this.state.facet(AQ)}updateAttrs(){let e=Dpe(this,Dye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(WZ)?"true":"false",class:"cm-content",style:`${xs.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),Dpe(this,kce,o);let f=this.observer.ignore(()=>{let E=gse(this.contentDOM,this.contentAttrs,o),d=gse(this.dom,this.editorAttrs,e);return E||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let E of f.effects)if(E.is(Xa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=E.value}}mountStyles(){this.styleModules=this.state.facet(ZL);let e=this.state.facet(Xa.cspNonce);b4.mount(this.root,this.styleModules.concat(d6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return Pie(this,e,vpe(this,e,o,f))}moveByGroup(e,o){return Pie(this,e,vpe(this,e,o,f=>DCe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return ICe(this,e,o,f)}moveVertically(e,o,f){return Pie(this,e,BCe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),Zye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let E=this.state.doc.lineAt(e),d=this.bidiSpans(E),s=d[c4.find(d,e-E.from,-1,o)];return ZZ(f,s.dir==Bh.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Lye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>O6e)return Uye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||Vye(d.isolates,f=upe(this,e.from,e.to))))return d.order;f||(f=upe(this,e.from,e.to));let E=xCe(e.text,o,f);return this.bidiCache.push(new FH(e.from,e.to,o,f,!0,E)),E}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||xs.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{mye(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return wQ.of(new X8(typeof e=="number"?hi.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return wQ.of(new X8(hi.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return zh.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return zh.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=b4.newName(),E=[AQ.of(f),ZL.of(Cse(`.${f}`,e))];return o&&o.dark&&E.push(kse.of(!0)),E}static baseTheme(e){return ty.lowest(ZL.of(Cse("."+Tse,e,ibe)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),E=f&&eh.get(f)||eh.get(e);return((o=E==null?void 0:E.rootView)===null||o===void 0?void 0:o.view)||null}}Xa.styleModule=ZL;Xa.inputHandler=Pye;Xa.focusChangeEffect=Rye;Xa.perLineTextDirection=Lye;Xa.exceptionSink=Eye;Xa.updateListener=yse;Xa.editable=WZ;Xa.mouseSelectionStyle=Mye;Xa.dragMovesSelection=Aye;Xa.clickAddsSelectionRange=Cye;Xa.decorations=AI;Xa.atomicRanges=Tce;Xa.bidiIsolatedRanges=Bye;Xa.scrollMargins=zye;Xa.darkTheme=kse;Xa.cspNonce=ls.define({combine:t=>t.length?t[0]:""});Xa.contentAttributes=kce;Xa.editorAttributes=Dye;Xa.lineWrapping=Xa.contentAttributes.of({class:"cm-lineWrapping"});Xa.announce=Ql.define();const O6e=4096,Ipe={};class FH{constructor(e,o,f,E,d,s){this.from=e,this.to=o,this.dir=f,this.isolates=E,this.fresh=d,this.order=s}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],E=e.length?e[e.length-1].dir:Bh.LTR;for(let d=Math.max(0,e.length-10);d=0;E--){let d=f[E],s=typeof d=="function"?d(t):d;s&&mse(s,o)}return o}const S6e=xs.mac?"mac":xs.windows?"win":xs.linux?"linux":"key";function k6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let E,d,s,n;for(let u=0;uf.concat(E),[]))),o}function C6e(t,e,o){return lbe(sbe(t.state),e,t,o)}let i4=null;const A6e=4e3;function M6e(t,e=S6e){let o=Object.create(null),f=Object.create(null),E=(s,n)=>{let u=f[s];if(u==null)f[s]=n;else if(u!=n)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},d=(s,n,u,b,i)=>{var S,w;let y=o[s]||(o[s]=Object.create(null)),m=n.split(/ (?!$)/).map(h=>k6e(h,e));for(let h=1;h{let _=i4={view:v,prefix:p,scope:s};return setTimeout(()=>{i4==_&&(i4=null)},A6e),!0}]})}let a=m.join(" ");E(a,!1);let c=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(S=y._any)===null||S===void 0?void 0:S.run)===null||w===void 0?void 0:w.slice())||[]});u&&c.run.push(u),b&&(c.preventDefault=!0),i&&(c.stopPropagation=!0)};for(let s of t){let n=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let S in i)i[S].run.push(s.any)}let u=s[e]||s.key;if(u)for(let b of n)d(b,u,s.run,s.preventDefault,s.stopPropagation),s.shift&&d(b,"Shift-"+u,s.shift,s.preventDefault,s.stopPropagation)}return o}function lbe(t,e,o,f){let E=JTe(e),d=ag(E,0),s=Gy(d)==E.length&&E!=" ",n="",u=!1,b=!1,i=!1;i4&&i4.view==o&&i4.scope==f&&(n=i4.prefix+" ",Wye.indexOf(e.keyCode)<0&&(b=!0,i4=null));let S=new Set,w=c=>{if(c){for(let h of c.run)if(!S.has(h)&&(S.add(h),h(o,e)))return c.stopPropagation&&(i=!0),!0;c.preventDefault&&(c.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],m,a;return y&&(w(y[n+MQ(E,e,!s)])?u=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(xs.windows&&e.ctrlKey&&e.altKey)&&(m=x4[e.keyCode])&&m!=E?(w(y[n+MQ(m,e,!0)])||e.shiftKey&&(a=TI[e.keyCode])!=E&&a!=m&&w(y[n+MQ(a,e,!1)]))&&(u=!0):s&&e.shiftKey&&w(y[n+MQ(E,e,!0)])&&(u=!0),!u&&w(y._any)&&(u=!0)),b&&(u=!0),u&&i&&e.stopPropagation(),u}class fD{constructor(e,o,f,E,d){this.className=e,this.left=o,this.top=f,this.width=E,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let E=e.coordsAtPos(f.head,f.assoc||1);if(!E)return[];let d=cbe(e);return[new fD(o,E.left-d.left,E.top-d.top,null,E.bottom-E.top)]}else return E6e(e,o,f)}}function cbe(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Bh.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function zpe(t,e,o){let f=hi.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:q0.Text}}function E6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),E=Math.min(o.to,t.viewport.to),d=t.textDirection==Bh.LTR,s=t.contentDOM,n=s.getBoundingClientRect(),u=cbe(t),b=s.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),S=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=Ose(t,f),m=Ose(t,E),a=y.type==q0.Text?y:null,c=m.type==q0.Text?m:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=zpe(t,f,a)),c&&(t.lineWrapping||m.widgetLineBreaks)&&(c=zpe(t,E,c)),a&&c&&a.from==c.from)return p(v(o.from,o.to,a));{let O=a?v(o.from,null,a):_(y,!1),C=c?v(null,o.to,c):_(m,!0),x=[];return(a||y).to<(c||m).from-(a&&c?1:0)||y.widgetLineBreaks>1&&O.bottom+t.defaultLineHeight/2A&&D.from=I)break;j>k&&P(Math.max(Q,k),O==null&&Q<=A,Math.min(j,I),C==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&P(A,O==null,L,C==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(O,C){let x=n.top+(C?O.top:O.bottom);return{top:x,bottom:x,horizontal:[]}}}function P6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class R6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(fH)!=e.state.facet(fH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(fH);for(;o!P6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let E of e)E.update&&o&&E.constructor&&this.drawn[f].constructor&&E.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(E.draw(),o);for(;o;){let E=o.nextSibling;o.remove(),o=E}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const fH=ls.define();function ube(t){return[zh.define(e=>new R6e(e,t)),fH.of(t)]}const fbe=!xs.ios,EI=ls.define({combine(t){return E_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function L6e(t={}){return[EI.of(t),I6e,D6e,B6e,Iye.of(!0)]}function dbe(t){return t.startState.facet(EI)!=t.state.facet(EI)}const I6e=ube({above:!0,markers(t){let{state:e}=t,o=e.facet(EI),f=[];for(let E of e.selection.ranges){let d=E==e.selection.main;if(E.empty?!d||fbe:o.drawRangeCursor){let s=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=E.empty?E:hi.cursor(E.head,E.head>E.anchor?-1:1);for(let u of fD.forRange(t,s,n))f.push(u)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=dbe(t);return o&&Npe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){Npe(e.state,t)},class:"cm-cursorLayer"});function Npe(t,e){e.style.animationDuration=t.facet(EI).cursorBlinkRate+"ms"}const D6e=ube({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:fD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||dbe(t)},class:"cm-selectionLayer"}),Ase={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};fbe&&(Ase[".cm-line"].caretColor="transparent !important",Ase[".cm-content"]={caretColor:"transparent !important"});const B6e=ty.highest(Xa.theme(Ase)),hbe=Ql.define({map(t,e){return t==null?null:e.mapPos(t)}}),YL=tm.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(hbe)?f.value:o,t)}}),z6e=zh.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(YL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(YL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(YL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(YL)!=t&&this.view.dispatch({effects:hbe.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function N6e(){return[YL,z6e]}function Fpe(t,e,o,f,E){e.lastIndex=0;for(let d=t.iterRange(o,f),s=o,n;!d.next().done;s+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)E(s+n.index,n)}function F6e(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:E,to:d}of o)E=Math.max(t.state.doc.lineAt(E).from,E-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=E?f[f.length-1].to=d:f.push({from:E,to:d});return f}class $6e{constructor(e){const{regexp:o,decoration:f,decorate:E,boundary:d,maxLength:s=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,E)this.addMatch=(n,u,b,i)=>E(i,b,b+n[0].length,n,u);else if(typeof f=="function")this.addMatch=(n,u,b,i)=>{let S=f(n,u,b);S&&i(b,b+n[0].length,S)};else if(f)this.addMatch=(n,u,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=s}createDeco(e){let o=new y4,f=o.add.bind(o);for(let{from:E,to:d}of F6e(e,this.maxLength))Fpe(e.state.doc,this.regexp,E,d,(s,n)=>this.addMatch(n,e,s,f));return o.finish()}updateDeco(e,o){let f=1e9,E=-1;return e.docChanged&&e.changes.iterChanges((d,s,n,u)=>{u>e.view.viewport.from&&n1e3?this.createDeco(e.view):E>-1?this.updateRange(e.view,o.map(e.changes),f,E):o}updateRange(e,o,f,E){for(let d of e.visibleRanges){let s=Math.max(d.from,f),n=Math.min(d.to,E);if(n>s){let u=e.state.doc.lineAt(s),b=u.tou.from;s--)if(this.boundary.test(u.text[s-1-u.from])){i=s;break}for(;nw.push(h.range(a,c));if(u==b)for(this.regexp.lastIndex=i-u.from;(y=this.regexp.exec(u.text))&&y.indexthis.addMatch(c,e,a,m));o=o.update({filterFrom:i,filterTo:S,filter:(a,c)=>aS,add:w})}}return o}}const Mse=/x/.unicode!=null?"gu":"g",V6e=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Mse),U6e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Iie=null;function j6e(){var t;if(Iie==null&&typeof document<"u"&&document.body){let e=document.body.style;Iie=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Iie||!1}const dH=ls.define({combine(t){let e=E_(t,{render:null,specialChars:V6e,addSpecialChars:null});return(e.replaceTabs=!j6e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Mse)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Mse)),e}});function Q6e(t={}){return[dH.of(t),H6e()]}let $pe=null;function H6e(){return $pe||($pe=zh.fromClass(class{constructor(t){this.view=t,this.decorations=Ns.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(dH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new $6e({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:E}=o.state,d=ag(e[0],0);if(d==9){let s=E.lineAt(f),n=o.state.tabSize,u=kx(s.text,n,f-s.from);return Ns.replace({widget:new Y6e((n-u%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=Ns.replace({widget:new W6e(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(dH);t.startState.facet(dH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Z6e="•";function q6e(t){return t>=32?Z6e:t==10?"␤":String.fromCharCode(9216+t)}class W6e extends Ex{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=q6e(this.code),f=e.state.phrase("Control character")+" "+(U6e[this.code]||"0x"+this.code.toString(16)),E=this.options.render&&this.options.render(this.code,f,o);if(E)return E;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class Y6e extends Ex{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function X6e(){return K6e}const G6e=Ns.line({class:"cm-activeLine"}),K6e=zh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let E=t.lineBlockAt(f.head);E.from>e&&(o.push(G6e.range(E.from)),e=E.from)}return Ns.set(o)}},{decorations:t=>t.decorations});class J6e extends Ex{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?lM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),E=ZZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return E.bottom-E.top>d*1.5?{left:E.left,right:E.right,top:E.top,bottom:E.top+d}:E}ignoreEvent(){return!1}}function eAe(t){return zh.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ns.set([Ns.widget({widget:new J6e(t),side:1}).range(0)]):Ns.none}get decorations(){return this.view.state.doc.length?Ns.none:this.placeholder}},{decorations:e=>e.decorations})}const Ese=2e3;function tAe(t,e,o){let f=Math.min(e.line,o.line),E=Math.max(e.line,o.line),d=[];if(e.off>Ese||o.off>Ese||e.col<0||o.col<0){let s=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let u=f;u<=E;u++){let b=t.doc.line(u);b.length<=n&&d.push(hi.range(b.from+s,b.to+n))}}else{let s=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let u=f;u<=E;u++){let b=t.doc.line(u),i=lse(b.text,s,t.tabSize,!0);if(i<0)d.push(hi.cursor(b.to));else{let S=lse(b.text,n,t.tabSize);d.push(hi.range(b.from+i,b.from+S))}}}return d}function nAe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function Vpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),E=o-f.from,d=E>Ese?-1:E==f.length?nAe(t,e.clientX):kx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:E}}function rAe(t,e){let o=Vpe(t,e),f=t.state.selection;return o?{update(E){if(E.docChanged){let d=E.changes.mapPos(E.startState.doc.line(o.line).from),s=E.state.doc.lineAt(d);o={line:s.number,col:o.col,off:Math.min(o.off,s.length)},f=f.map(E.changes)}},get(E,d,s){let n=Vpe(t,E);if(!n)return f;let u=tAe(t.state,o,n);return u.length?s?hi.create(u.concat(f.ranges)):hi.create(u):f}}:null}function oAe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Xa.mouseSelectionStyle.of((o,f)=>e(f)?rAe(o,f):null)}const iAe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},aAe={style:"cursor: crosshair"};function sAe(t={}){let[e,o]=iAe[t.key||"Alt"],f=zh.fromClass(class{constructor(E){this.view=E,this.isDown=!1}set(E){this.isDown!=E&&(this.isDown=E,this.view.update([]))}},{eventObservers:{keydown(E){this.set(E.keyCode==e||o(E))},keyup(E){(E.keyCode==e||!o(E))&&this.set(!1)},mousemove(E){this.set(o(E))}}});return[f,Xa.contentAttributes.of(E=>{var d;return!((d=E.plugin(f))===null||d===void 0)&&d.isDown?aAe:null})]}const RL="-10000px";class pbe{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(E=>E),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let E=e.state.facet(this.facet),d=E.filter(u=>u);if(E===this.input){for(let u of this.tooltipViews)u.update&&u.update(e);return!1}let s=[],n=o?[]:null;for(let u=0;uo[b]=u),o.length=n.length),this.input=E,this.tooltips=d,this.tooltipViews=s,!0}}function lAe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Die=ls.define({combine:t=>{var e,o,f;return{position:xs.ios?"absolute":((e=t.find(E=>E.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(E=>E.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(E=>E.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||lAe}}}),Upe=new WeakMap,Ace=zh.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Die);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new pbe(t,Mce,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(Die);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let E of this.manager.tooltipViews)E.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let E of this.manager.tooltipViews)this.container.appendChild(E.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=RL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:E}=this.manager.tooltipViews[0];if(xs.gecko)f=E.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(E.style.top==RL&&E.style.left=="0px"){let d=E.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let E=this.parent.getBoundingClientRect();E.width&&E.height&&(e=E.width/this.parent.offsetWidth,o=E.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((E,d)=>{let s=this.manager.tooltipViews[d];return s.getCoords?s.getCoords(E.pos):this.view.coordsAtPos(E.pos)}),size:this.manager.tooltipViews.map(({dom:E})=>E.getBoundingClientRect()),space:this.view.state.facet(Die).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:E,scaleY:d}=t,s=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||S.rightMath.min(o.right,f.right)+.1){i.style.top=RL;continue}let y=u.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,m=y?7:0,a=w.right-w.left,c=(e=Upe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||uAe,p=this.view.textDirection==Bh.LTR,v=w.width>f.right-f.left?p?f.left:f.right-w.width:p?Math.min(S.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,S.left-a+(y?14:0)-h.x),_=this.above[n];!u.strictSide&&(_?S.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-S.bottom>S.top-f.top&&(_=this.above[n]=!_);let O=(_?S.top-f.top:f.bottom-S.bottom)-m;if(Ov&&R.topC&&(C=_?R.top-c-2-m:R.bottom+m+2);if(this.position=="absolute"?(i.style.top=(C-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/E+"px"):(i.style.top=C/d+"px",i.style.left=v/E+"px"),y){let R=S.left+(p?h.x:-h.x)-(v+14-7);y.style.left=R/E+"px"}b.overlap!==!0&&s.push({left:v,top:C,right:x,bottom:C+c}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=RL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),cAe=Xa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),uAe={x:0,y:0},Mce=ls.define({enables:[Ace,cAe]}),$H=ls.define();class YZ{static create(e){return new YZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pbe(e,$H,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let E=f[e];if(E!==void 0){if(o===void 0)o=E;else if(o!==E)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const fAe=Mce.compute([$H],t=>{let e=t.facet($H).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:YZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class dAe{constructor(e,o,f,E,d){this.view=e,this.source=o,this.field=f,this.setHover=E,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let u=e.bidiSpans(e.state.doc.lineAt(E)).find(i=>i.from<=E&&i.to>=E),b=u&&u.dir==Bh.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,u&&e.dispatch({effects:this.setHover.of(u)}))},u=>rb(e.state,u,"hover tooltip"))}else s&&e.dispatch({effects:this.setHover.of(s)})}get tooltip(){let e=this.view.plugin(Ace),o=e?e.manager.tooltips.findIndex(f=>f.create==YZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:E}=this;if(f&&E&&!hAe(E.dom,e)||this.pending){let{pos:d}=f||this.pending,s=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==s?this.view.posAtCoords(this.lastMove)!=d:!pAe(this.view,d,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const EQ=4;function hAe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-EQ&&e.clientX<=o.right+EQ&&e.clientY>=o.top-EQ&&e.clientY<=o.bottom+EQ}function pAe(t,e,o,f,E,d){let s=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>f||s.rightE||Math.min(s.bottom,n)=e&&u<=o}function mAe(t,e={}){let o=Ql.define(),f=tm.define({create(){return null},update(E,d){if(E&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,E)))return null;if(E&&d.docChanged){let s=d.changes.mapPos(E.pos,-1,lg.TrackDel);if(s==null)return null;let n=Object.assign(Object.create(null),E);n.pos=s,E.end!=null&&(n.end=d.changes.mapPos(E.end)),E=n}for(let s of d.effects)s.is(o)&&(E=s.value),s.is(gAe)&&(E=null);return E},provide:E=>$H.from(E)});return[f,zh.define(E=>new dAe(E,t,f,o,e.hoverTime||300)),fAe]}function mbe(t,e){let o=t.plugin(Ace);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const gAe=Ql.define(),jpe=ls.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function PI(t,e){let o=t.plugin(gbe),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const gbe=zh.fromClass(class{constructor(t){this.input=t.state.facet(RI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(jpe);this.top=new PQ(t,!0,e.topContainer),this.bottom=new PQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(jpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new PQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new PQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(RI);if(o!=this.input){let f=o.filter(u=>u),E=[],d=[],s=[],n=[];for(let u of f){let b=this.specs.indexOf(u),i;b<0?(i=u(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),E.push(i),(i.top?d:s).push(i)}this.specs=f,this.panels=E,this.top.sync(d),this.bottom.sync(s);for(let u of n)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class PQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=Qpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=Qpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Qpe(t){let e=t.nextSibling;return t.remove(),e}const RI=ls.define({enables:gbe});class IO extends ZT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}IO.prototype.elementClass="";IO.prototype.toDOM=void 0;IO.prototype.mapMode=lg.TrackBefore;IO.prototype.startSide=IO.prototype.endSide=-1;IO.prototype.point=!0;const hH=ls.define(),vAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Df.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sI=ls.define();function yAe(t){return[vbe(),sI.of(Object.assign(Object.assign({},vAe),t))]}const Pse=ls.define({combine:t=>t.some(e=>e)});function vbe(t){let e=[bAe];return t&&t.fixed===!1&&e.push(Pse.of(!0)),e}const bAe=zh.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(sI).map(e=>new Zpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Pse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Pse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Df.iter(this.view.state.facet(hH),this.view.viewport.from),f=[],E=this.gutters.map(d=>new xAe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let s=!0;for(let n of d.type)if(n.type==q0.Text&&s){Rse(o,f,n.from);for(let u of E)u.line(this.view,n,f);s=!1}else if(n.widget)for(let u of E)u.widget(this.view,n)}else if(d.type==q0.Text){Rse(o,f,d.from);for(let s of E)s.line(this.view,d,f)}else if(d.widget)for(let s of E)s.widget(this.view,d);for(let d of E)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sI),o=t.state.facet(sI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Df.eq(t.startState.facet(hH),t.state.facet(hH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let E of this.gutters)E.update(t)&&(f=!0);else{f=!0;let E=[];for(let d of o){let s=e.indexOf(d);s<0?E.push(new Zpe(this.view,d)):(this.gutters[s].update(t),E.push(this.gutters[s]))}for(let d of this.gutters)d.dom.remove(),E.indexOf(d)<0&&d.destroy();for(let d of E)this.dom.appendChild(d.dom);this.gutters=E}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==Bh.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function Hpe(t){return Array.isArray(t)?t:[t]}function Rse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class xAe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Df.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:E}=this,d=(o.top-this.height)/e.scaleY,s=o.height/e.scaleY;if(this.i==E.elements.length){let n=new ybe(e,s,d,f);E.elements.push(n),E.dom.appendChild(n.dom)}else E.elements[this.i].update(e,s,d,f);this.height=o.bottom,this.i++}line(e,o,f){let E=[];Rse(this.cursor,E,o.from),f.length&&(E=E.concat(f));let d=this.gutter.config.lineMarker(e,o,E);d&&E.unshift(d);let s=this.gutter;E.length==0&&!s.config.renderEmptyElements||this.addElement(e,o,E)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class Zpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,E=>{let d=E.target,s;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let u=d.getBoundingClientRect();s=(u.top+u.bottom)/2}else s=E.clientY;let n=e.lineBlockAtHeight(s-e.documentTop);o.domEventHandlers[f](e,n,E)&&E.preventDefault()});this.markers=Hpe(o.markers(e)),o.initialSpacer&&(this.spacer=new ybe(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=Hpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let E=this.config.updateSpacer(this.spacer.markers[0],e);E!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[E])}let f=e.view.viewport;return!Df.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class ybe{constructor(e,o,f,E){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,E)}update(e,o,f,E){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),_Ae(this.markers,E)||this.setMarkers(e,E)}setMarkers(e,o){let f="cm-gutterElement",E=this.dom.firstChild;for(let d=0,s=0;;){let n=s,u=dd(n,u,b)||s(n,u,b):s}return f}})}});class Bie extends IO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function zie(t,e){return t.state.facet(F8).formatNumber(e,t.state)}const OAe=sI.compute([F8],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(wAe)},lineMarker(e,o,f){return f.some(E=>E.toDOM)?null:new Bie(zie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(F8)!=e.state.facet(F8),initialSpacer(e){return new Bie(zie(e,qpe(e.state.doc.lines)))},updateSpacer(e,o){let f=zie(o.view,qpe(o.view.state.doc.lines));return f==e.number?e:new Bie(f)},domEventHandlers:t.facet(F8).domEventHandlers}));function SAe(t={}){return[F8.of(t),vbe(),OAe]}function qpe(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.head).from;E>o&&(o=E,e.push(kAe.range(E)))}return Df.of(e)});function CAe(){return TAe}const bbe=1024;let AAe=0,Jy=class{constructor(e,o){this.from=e,this.to=o}};class Zl{constructor(e={}){this.id=AAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Jp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}Zl.closedBy=new Zl({deserialize:t=>t.split(" ")});Zl.openedBy=new Zl({deserialize:t=>t.split(" ")});Zl.group=new Zl({deserialize:t=>t.split(" ")});Zl.contextHash=new Zl({perNode:!0});Zl.lookAhead=new Zl({perNode:!0});Zl.mounted=new Zl({perNode:!0});class LI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[Zl.mounted.id]}}const MAe=Object.create(null);class Jp{constructor(e,o,f,E=0){this.name=e,this.props=o,this.id=f,this.flags=E}static define(e){let o=e.props&&e.props.length?Object.create(null):MAe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),E=new Jp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(E)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return E}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(Zl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let E of f.split(" "))o[E]=e[f];return f=>{for(let E=f.prop(Zl.group),d=-1;d<(E?E.length:0);d++){let s=o[d<0?f.name:E[d]];if(s)return s}}}}Jp.none=new Jp("",Object.create(null),0,8);class dD{constructor(e){this.types=e;for(let o=0;o0;for(let u=this.cursor(s|pd.IncludeAnonymous);;){let b=!1;if(u.from<=d&&u.to>=E&&(!n&&u.type.isAnonymous||o(u)!==!1)){if(u.firstChild())continue;b=!0}for(;b&&f&&(n||!u.type.isAnonymous)&&f(u),!u.nextSibling();){if(!u.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:Rce(Jp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,E)=>new gf(this.type,o,f,E,this.propValues),e.makeTree||((o,f,E)=>new gf(Jp.none,o,f,E)))}static build(e){return LAe(e)}}gf.empty=new gf(Jp.none,[],[],0);class Ece{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Ece(this.buffer,this.index)}}class w4{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Jp.none}toString(){let e=[];for(let o=0;o0));u=s[u+3]);return n}slice(e,o,f){let E=this.buffer,d=new Uint16Array(o-e),s=0;for(let n=e,u=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function II(t,e,o,f){for(var E;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],S=u[e]+s.from;if(xbe(E,f,S,S+i.length)){if(i instanceof w4){if(d&pd.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-S,E);if(w>-1)return new b_(new EAe(s,i,e,S),null,w)}else if(d&pd.IncludeAnonymous||!i.type.isAnonymous||Pce(i)){let w;if(!(d&pd.IgnoreMounts)&&(w=LI.get(i))&&!w.overlay)return new e0(w.tree,S,e,s);let y=new e0(i,S,e,s);return d&pd.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,E)}}}if(d&pd.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+o:e=o<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let E;if(!(f&pd.IgnoreOverlays)&&(E=LI.get(this._tree))&&E.overlay){let d=e-this.from;for(let{from:s,to:n}of E.overlay)if((o>0?s<=d:s=d:n>d))return new e0(E.tree,E.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ype(t,e,o,f){let E=t.cursor(),d=[];if(!E.firstChild())return d;if(o!=null){for(;!E.type.is(o);)if(!E.nextSibling())return d}for(;;){if(f!=null&&E.type.is(f))return d;if(E.type.is(e)&&d.push(E.node),!E.nextSibling())return f==null?d:[]}}function Lse(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class EAe{constructor(e,o,f,E){this.parent=e,this.buffer=o,this.index=f,this.start=E}}class b_ extends _be{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new b_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&pd.ExcludeBuffers)return null;let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new b_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new b_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new b_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,E=this.index+4,d=f.buffer[this.index+3];if(d>E){let s=f.buffer[this.index+1];e.push(f.slice(E,d,s)),o.push(0)}return new gf(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function wbe(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||s.to=e){let n=new e0(s.tree,s.overlay[0].from+d.from,-1,d);(E||(E=[f])).push(II(n,e,o,!1))}}return E?wbe(E):f}class VH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof e0)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:E}=this.buffer;return this.type=o||E.set.types[E.buffer[e]],this.from=f+E.buffer[e+1],this.to=f+E.buffer[e+2],!0}yield(e){return e?e instanceof e0?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:E}=this.buffer,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&pd.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pd.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pd.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let E=f<0?0:this.stack[f]+4;if(this.index!=E)return this.yieldBuf(o.findChild(E,this.index,-1,0,4))}else{let E=o.buffer[this.index+3];if(E<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(E)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:E}=this;if(E){if(e>0){if(this.index-1)for(let d=o+e,s=e<0?-1:f._tree.children.length;d!=s;d+=e){let n=f._tree.children[d];if(this.mode&pd.IncludeAnonymous||n instanceof w4||!n.type.isAnonymous||Pce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==E){if(E==this.index)return s;o=s,f=d+1;break e}E=this.stack[--d]}for(let E=f;E=0;d--){if(d<0)return Lse(this.node,e,E);let s=f[o.buffer[this.stack[d]]];if(!s.isAnonymous){if(e[E]&&e[E]!=s.name)return!1;E--}}return!0}}function Pce(t){return t.children.some(e=>e instanceof w4||!e.type.isAnonymous||Pce(e))}function LAe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:E=bbe,reused:d=[],minRepeatType:s=f.types.length}=t,n=Array.isArray(o)?new Ece(o,o.length):o,u=f.types,b=0,i=0;function S(O,C,x,R,M,T){let{id:P,start:A,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[P];x.push(j),R.push(A-O);return}else if(D==-3){b=P;return}else if(D==-4){i=P;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=u[P],z,$,Q=A-O;if(L-A<=E&&($=c(n.pos-C,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new w4(j,L-$.start,f),Q=$.start-O}else{let j=n.pos-D;n.next();let U=[],X=[],te=P>=s?P:-1,Z=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-E&&(m(U,X,A,Z,n.end,K,te,k),Z=U.length,K=n.end),n.next()):T>2500?w(A,j,U,X):S(A,j,U,X,te,T+1);if(te>=0&&Z>0&&Z-1&&Z>0){let re=y(I);z=Rce(I,U,X,0,U.length,0,L-A,re,re)}else z=a(I,U,X,L-A,k-L)}x.push(z),R.push(Q)}function w(O,C,x,R){let M=[],T=0,P=-1;for(;n.pos>C;){let{id:A,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(P>-1&&L=0;D-=3)A[k++]=M[D],A[k++]=M[D+1]-L,A[k++]=M[D+2]-L,A[k++]=k;x.push(new w4(A,M[2]-L,f)),R.push(L-O)}}function y(O){return(C,x,R)=>{let M=0,T=C.length-1,P,A;if(T>=0&&(P=C[T])instanceof gf){if(!T&&P.type==O&&P.length==R)return P;(A=P.prop(Zl.lookAhead))&&(M=x[T]+P.length+A)}return a(O,C,x,R,M)}}function m(O,C,x,R,M,T,P,A){let L=[],D=[];for(;O.length>R;)L.push(O.pop()),D.push(C.pop()+x-M);O.push(a(f.types[P],L,D,T-M,A-T)),C.push(M-x)}function a(O,C,x,R,M=0,T){if(b){let P=[Zl.contextHash,b];T=T?[P].concat(T):[P]}if(M>25){let P=[Zl.lookAhead,M];T=T?[P].concat(T):[P]}return new gf(O,C,x,R,T)}function c(O,C){let x=n.fork(),R=0,M=0,T=0,P=x.end-E,A={size:0,start:0,skip:0};e:for(let L=x.pos-O;x.pos>L;){let D=x.size;if(x.id==C&&D>=0){A.size=R,A.start=M,A.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=s?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=s&&(I+=4);x.next()}M=z,R+=D,T+=I}return(C<0||R==O)&&(A.size=R,A.start=M,A.skip=T),A.size>4?A:void 0}function h(O,C,x){let{id:R,start:M,end:T,size:P}=n;if(n.next(),P>=0&&R4){let L=n.pos-(P-4);for(;n.pos>L;)x=h(O,C,x)}C[--x]=A,C[--x]=T-O,C[--x]=M-O,C[--x]=R}else P==-3?b=R:P==-4&&(i=R);return x}let p=[],v=[];for(;n.pos>0;)S(t.start||0,t.bufferStart||0,p,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:p.length?v[0]+p[0].length:0;return new gf(u[t.topID],p.reverse(),v.reverse(),_)}const Xpe=new WeakMap;function pH(t,e){if(!t.isAnonymous||e instanceof w4||e.type!=t)return 1;let o=Xpe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof gf)){o=1;break}o+=pH(t,f)}Xpe.set(e,o)}return o}function Rce(t,e,o,f,E,d,s,n,u){let b=0;for(let m=f;m=i)break;C+=x}if(v==_+1){if(C>i){let x=m[_];y(x.children,x.positions,0,x.children.length,a[_]+p);continue}S.push(m[_])}else{let x=a[v-1]+m[v-1].length-O;S.push(Rce(t,m,a,_,v,O,x,null,u))}w.push(O+p-d)}}return y(e,o,f,E,0),(n||u)(S,w,s)}class Lce{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let E=this.map.get(e);E||this.map.set(e,E=new Map),E.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof b_?this.setBuffer(e.context.buffer,e.index,o):e instanceof e0&&this.map.set(e.tree,o)}get(e){return e instanceof b_?this.getBuffer(e.context.buffer,e.index):e instanceof e0?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class AO{constructor(e,o,f,E,d=!1,s=!1){this.from=e,this.to=o,this.tree=f,this.offset=E,this.open=(d?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let E=[new AO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&E.push(d);return E}static applyChanges(e,o,f=128){if(!o.length)return e;let E=[],d=1,s=e.length?e[0]:null;for(let n=0,u=0,b=0;;n++){let i=n=f)for(;s&&s.from=w.from||S<=w.to||b){let y=Math.max(w.from,u)-b,m=Math.min(w.to,S)-b;w=y>=m?null:new AO(y,m,w.tree,w.offset+b,n>0,!!i)}if(w&&E.push(w),s.to>S)break;s=dnew Jy(E.from,E.to)):[new Jy(0,0)]:[new Jy(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let E=this.startParse(e,o,f);for(;;){let d=E.advance();if(d)return d}}}class IAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function Obe(t){return(e,o,f,E)=>new BAe(e,t,o,f,E)}class Gpe{constructor(e,o,f,E,d){this.parser=e,this.parse=o,this.overlay=f,this.target=E,this.from=d}}function Kpe(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class DAe{constructor(e,o,f,E,d,s,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=E,this.start=d,this.target=s,this.prev=n,this.depth=0,this.ranges=[]}}const Ise=new Zl({perNode:!0});class BAe{constructor(e,o,f,E,d){this.nest=o,this.input=f,this.fragments=E,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let E of this.inner)E.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new gf(f.type,f.children,f.positions,f.length,f.propValues.concat([[Ise,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[Zl.mounted.id]=new LI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(E)){if(o){let b=o.mounts.find(i=>i.frag.from<=E.from&&i.frag.to>=E.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let S=i.from+b.pos,w=i.to+b.pos;S>=E.from&&w<=E.to&&!o.ranges.some(y=>y.fromS)&&o.ranges.push({from:S,to:w})}}n=!1}else if(f&&(s=zAe(f.ranges,E.from,E.to)))n=s!=2;else if(!E.type.isAnonymous&&(d=this.nest(E,this.input))&&(E.fromnew Jy(S.from-E.from,S.to-E.from)):null,E.tree,i.length?i[0].from:E.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(u=o.predicate(E))&&(u===!0&&(u=new Jy(E.from,E.to)),u.fromnew Jy(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function zAe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function Jpe(t,e,o,f,E,d){if(e=e.to);f++);let s=E.children[f],n=s.buffer,u=[f];function b(i,S,w,y,m,a){let c=o[a],h=[],p=[];Jpe(s,i,c,h,p,y);let v=n[c+1],_=n[c+2];u.push(h.length);let O=a?b(c+4,n[c+3],s.set.types[n[c]],v,_-v,a-1):e.toTree();return h.push(O),p.push(v-y),Jpe(s,n[c+3],S,h,p,y),new gf(w,h,p,m)}E.children[f]=b(0,n.length,Jp.none,0,s.length,o.length-1);for(let i of u){let S=t.tree.children[i],w=t.tree.positions[i];t.yield(new e0(S,w+t.from,i,t._tree))}}class eme{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(pd.IncludeAnonymous|pd.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,pd.IgnoreOverlays|pd.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof gf)o=o.children[0];else break}return!1}}let FAe=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(Ise))!==null&&o!==void 0?o:f.to,this.inner=new eme(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(Ise))!==null&&e!==void 0?e:o.to,this.inner=new eme(o.tree,-o.offset)}}findMounts(e,o){var f;let E=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let s=(f=d.tree)===null||f===void 0?void 0:f.prop(Zl.mounted);if(s&&s.parser==o)for(let n=this.fragI;n=d.to)break;u.tree==this.curFrag.tree&&E.push({frag:u,pos:d.from-u.offset,mount:s})}}}return E}};function tme(t,e){let o=null,f=e;for(let E=1,d=0;E=n)break;u.to<=s||(o||(f=o=e.slice()),u.fromn&&o.splice(d+1,0,new Jy(n,u.to))):u.to>n?o[d--]=new Jy(n,u.to):o.splice(d--,1))}}return f}function $Ae(t,e,o,f){let E=0,d=0,s=!1,n=!1,u=-1e9,b=[];for(;;){let i=E==t.length?1e9:s?t[E].to:t[E].from,S=d==e.length?1e9:n?e[d].to:e[d].from;if(s!=n){let w=Math.max(u,o),y=Math.min(i,S,f);wnew Jy(w.from+f,w.to+f)),S=$Ae(e,i,u,b);for(let w=0,y=u;;w++){let m=w==S.length,a=m?b:S[w].from;if(a>y&&o.push(new AO(y,a,E.tree,-s,d.from>=y||d.openStart,d.to<=a||d.openEnd)),m)break;y=S[w].to}}else o.push(new AO(u,b,E.tree,-s,d.from>=s||d.openStart,d.to<=n||d.openEnd))}return o}let VAe=0;class yx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=VAe++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new yx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new UH;return o=>o.modified.indexOf(e)>-1?o:UH.get(o.base||o,o.modified.concat(e).sort((f,E)=>f.id-E.id))}}let UAe=0;class UH{constructor(){this.instances=[],this.id=UAe++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&jAe(o,n.modified));if(f)return f;let E=[],d=new yx(E,e,o);for(let n of o)n.instances.push(d);let s=QAe(o);for(let n of e.set)if(!n.modified.length)for(let u of s)E.push(UH.get(n,u));return d}}function jAe(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function QAe(t){let e=[[]];for(let o=0;of.length-o.length)}function M4(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let E of o.split(" "))if(E){let d=[],s=2,n=E;for(let S=0;;){if(n=="..."&&S>0&&S+3==E.length){s=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+E);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),S+=w[0].length,S==E.length)break;let y=E[S++];if(S==E.length&&y=="!"){s=0;break}if(y!="/")throw new RangeError("Invalid path: "+E);n=E.slice(S)}let u=d.length-1,b=d[u];if(!b)throw new RangeError("Invalid path: "+E);let i=new jH(f,s,u>0?d.slice(0,u):null);e[b]=i.sort(e[b])}}return Sbe.add(e)}const Sbe=new Zl;class jH{constructor(e,o,f,E){this.tags=e,this.mode=o,this.context=f,this.next=E}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let s=E;for(let n of d)for(let u of n.set){let b=o[u.id];if(b){s=s?s+" "+b:b;break}}return s},scope:f}}function HAe(t,e){let o=null;for(let f of t){let E=f.style(e);E&&(o=o?o+" "+E:E)}return o}function ZAe(t,e,o,f=0,E=t.length){let d=new qAe(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,E,"",d.highlighters),d.flush(E)}class qAe{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,E,d){let{type:s,from:n,to:u}=e;if(n>=f||u<=o)return;s.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(s)));let b=E,i=WAe(e)||jH.empty,S=HAe(d,i.tags);if(S&&(b&&(b+=" "),b+=S,i.mode==1&&(E+=(E?" ":"")+S)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(Zl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),m=this.highlighters.filter(c=>!c.scope||c.scope(w.tree.type)),a=e.firstChild();for(let c=0,h=n;;c++){let p=c=v||!e.nextSibling())););if(!p||v>f)break;h=p.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,p.from+n),Math.min(f,h),"",m),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(E="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,E,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function WAe(t){let e=t.type.prop(Sbe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ma=yx.define,LQ=Ma(),r4=Ma(),rme=Ma(r4),ome=Ma(r4),o4=Ma(),IQ=Ma(o4),Nie=Ma(o4),h_=Ma(),OT=Ma(h_),f_=Ma(),d_=Ma(),Dse=Ma(),LL=Ma(Dse),DQ=Ma(),hr={comment:LQ,lineComment:Ma(LQ),blockComment:Ma(LQ),docComment:Ma(LQ),name:r4,variableName:Ma(r4),typeName:rme,tagName:Ma(rme),propertyName:ome,attributeName:Ma(ome),className:Ma(r4),labelName:Ma(r4),namespace:Ma(r4),macroName:Ma(r4),literal:o4,string:IQ,docString:Ma(IQ),character:Ma(IQ),attributeValue:Ma(IQ),number:Nie,integer:Ma(Nie),float:Ma(Nie),bool:Ma(o4),regexp:Ma(o4),escape:Ma(o4),color:Ma(o4),url:Ma(o4),keyword:f_,self:Ma(f_),null:Ma(f_),atom:Ma(f_),unit:Ma(f_),modifier:Ma(f_),operatorKeyword:Ma(f_),controlKeyword:Ma(f_),definitionKeyword:Ma(f_),moduleKeyword:Ma(f_),operator:d_,derefOperator:Ma(d_),arithmeticOperator:Ma(d_),logicOperator:Ma(d_),bitwiseOperator:Ma(d_),compareOperator:Ma(d_),updateOperator:Ma(d_),definitionOperator:Ma(d_),typeOperator:Ma(d_),controlOperator:Ma(d_),punctuation:Dse,separator:Ma(Dse),bracket:LL,angleBracket:Ma(LL),squareBracket:Ma(LL),paren:Ma(LL),brace:Ma(LL),content:h_,heading:OT,heading1:Ma(OT),heading2:Ma(OT),heading3:Ma(OT),heading4:Ma(OT),heading5:Ma(OT),heading6:Ma(OT),contentSeparator:Ma(h_),list:Ma(h_),quote:Ma(h_),emphasis:Ma(h_),strong:Ma(h_),link:Ma(h_),monospace:Ma(h_),strikethrough:Ma(h_),inserted:Ma(),deleted:Ma(),changed:Ma(),invalid:Ma(),meta:DQ,documentMeta:Ma(DQ),annotation:Ma(DQ),processingInstruction:Ma(DQ),definition:yx.defineModifier(),constant:yx.defineModifier(),function:yx.defineModifier(),standard:yx.defineModifier(),local:yx.defineModifier(),special:yx.defineModifier()};kbe([{tag:hr.link,class:"tok-link"},{tag:hr.heading,class:"tok-heading"},{tag:hr.emphasis,class:"tok-emphasis"},{tag:hr.strong,class:"tok-strong"},{tag:hr.keyword,class:"tok-keyword"},{tag:hr.atom,class:"tok-atom"},{tag:hr.bool,class:"tok-bool"},{tag:hr.url,class:"tok-url"},{tag:hr.labelName,class:"tok-labelName"},{tag:hr.inserted,class:"tok-inserted"},{tag:hr.deleted,class:"tok-deleted"},{tag:hr.literal,class:"tok-literal"},{tag:hr.string,class:"tok-string"},{tag:hr.number,class:"tok-number"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],class:"tok-string2"},{tag:hr.variableName,class:"tok-variableName"},{tag:hr.local(hr.variableName),class:"tok-variableName tok-local"},{tag:hr.definition(hr.variableName),class:"tok-variableName tok-definition"},{tag:hr.special(hr.variableName),class:"tok-variableName2"},{tag:hr.definition(hr.propertyName),class:"tok-propertyName tok-definition"},{tag:hr.typeName,class:"tok-typeName"},{tag:hr.namespace,class:"tok-namespace"},{tag:hr.className,class:"tok-className"},{tag:hr.macroName,class:"tok-macroName"},{tag:hr.propertyName,class:"tok-propertyName"},{tag:hr.operator,class:"tok-operator"},{tag:hr.comment,class:"tok-comment"},{tag:hr.meta,class:"tok-meta"},{tag:hr.invalid,class:"tok-invalid"},{tag:hr.punctuation,class:"tok-punctuation"}]);var Fie;const NT=new Zl;function Dce(t){return ls.define({combine:t?e=>e.concat(t):void 0})}const Bce=new Zl;class eb{constructor(e,o,f=[],E=""){this.data=e,this.name=E,kc.prototype.hasOwnProperty("tree")||Object.defineProperty(kc.prototype,"tree",{get(){return Gf(this)}}),this.parser=o,this.extension=[S4.of(this),kc.languageData.of((d,s,n)=>{let u=ime(d,s,n),b=u.type.prop(NT);if(!b)return[];let i=d.facet(b),S=u.type.prop(Bce);if(S){let w=u.resolve(s-u.from,n);for(let y of S)if(y.test(w,d)){let m=d.facet(y.facet);return y.type=="replace"?m:m.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return ime(e,o,f).type.prop(NT)==this.data}findRegions(e){let o=e.facet(S4);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],E=(d,s)=>{if(d.prop(NT)==this.data){f.push({from:s,to:s+d.length});return}let n=d.prop(Zl.mounted);if(n){if(n.tree.prop(NT)==this.data){if(n.overlay)for(let u of n.overlay)f.push({from:u.from+s,to:u.to+s});else f.push({from:s,to:s+d.length});return}else if(n.overlay){let u=f.length;if(E(n.tree,n.overlay[0].from+s),f.length>u)return}}for(let u=0;uf.isTop?o:void 0)]}),e.name)}configure(e,o){return new O4(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gf(t){let e=t.field(eb.state,!1);return e?e.tree:gf.empty}class YAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let IL=null;class DI{constructor(e,o,f=[],E,d,s,n,u){this.parser=e,this.state=o,this.fragments=f,this.tree=E,this.treeLen=d,this.viewport=s,this.skipped=n,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new DI(e,o,[],gf.empty,0,f,[],null)}startParse(){return this.parser.startParse(new YAe(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=gf.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let E=Date.now()+e;e=()=>Date.now()>E}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(AO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=IL;IL=this;try{return e()}finally{IL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=ame(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:E,treeLen:d,viewport:s,skipped:n}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((b,i,S,w)=>u.push({fromA:b,toA:i,fromB:S,toB:w})),f=AO.applyChanges(f,u),E=gf.empty,d=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),S=e.mapPos(b.to,-1);ie.from&&(this.fragments=ame(this.fragments,E,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends Ice{createParse(o,f,E){let d=E[0].from,s=E[E.length-1].to;return{parsedPos:d,advance(){let u=IL;if(u){for(let b of E)u.tempSkipped.push(b);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=s,new gf(Jp.none,[],[],s-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return IL}}function ame(t,e,o){return AO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class uM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new uM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=DI.create(e.facet(S4).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new uM(f)}}eb.state=tm.define({create:uM.init,update(t,e){for(let o of e.effects)if(o.is(eb.setState))return o.value;return e.startState.facet(S4)!=e.state.facet(S4)?uM.init(e.state):t.apply(e)}});let Tbe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Tbe=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const $ie=typeof navigator<"u"&&(!((Fie=navigator.scheduling)===null||Fie===void 0)&&Fie.isInputPending)?()=>navigator.scheduling.isInputPending():null,XAe=zh.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(eb.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(eb.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Tbe(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndE+1e3,u=d.context.work(()=>$ie&&$ie()||Date.now()>s,E+(n?0:1e5));this.chunkBudget-=Date.now()-o,(u||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:eb.setState.of(new uM(d.context))})),this.chunkBudget>0&&!(u&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>rb(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S4=ls.define({combine(t){return t.length?t[0]:null},enables:t=>[eb.state,XAe,Xa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class WT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class QH{constructor(e,o,f,E,d,s=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=E,this.loadFunc=d,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new QH(e.name,(e.alias||[]).concat(e.name).map(E=>E.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let E of e)if(E.filename&&E.filename.test(o))return E;let f=/\.([^.]+)$/.exec(o);if(f){for(let E of e)if(E.extensions.indexOf(f[1])>-1)return E}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let E of e)if(E.alias.some(d=>d==o))return E;if(f)for(let E of e)for(let d of E.alias){let s=o.indexOf(d);if(s>-1&&(d.length>2||!/\w/.test(o[s-1])&&!/\w/.test(o[s+d.length])))return E}return null}}const GAe=ls.define(),eC=ls.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function HH(t){let e=t.facet(eC);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function BI(t,e){let o="",f=t.tabSize,E=t.facet(eC)[0];if(E==" "){for(;e>=f;)o+=" ",e-=f;E=" "}for(let d=0;d=e?KAe(t,o,e):null}class XZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=HH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:E,simulateDoubleBreak:d}=this.options;return E!=null&&E>=f.from&&E<=f.to?d&&E==e?{text:"",from:e}:(o<0?E-1&&(d+=s-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return kx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:E}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let s=d(E);if(s>-1)return s}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const tC=new Zl;function KAe(t,e,o){let f=e.resolveStack(o),E=f.node.enterUnfinishedNodesBefore(o);if(E!=f.node){let d=[];for(let s=E;s!=f.node;s=s.parent)d.push(s);for(let s=d.length-1;s>=0;s--)f={node:d[s],next:f}}return Cbe(f,t,o)}function Cbe(t,e,o){for(let f=t;f;f=f.next){let E=e8e(f.node);if(E)return E(Nce.create(e,o,f))}return 0}function JAe(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function e8e(t){let e=t.type.prop(tC);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(Zl.closedBy))){let E=t.lastChild,d=E&&f.indexOf(E.name)>-1;return s=>Abe(s,!0,1,void 0,d&&!JAe(s)?E.from:void 0)}return t.parent==null?t8e:null}function t8e(){return 0}class Nce extends XZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new Nce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(n8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Cbe(this.context.next,this.base,this.pos)}}function n8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function r8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let E=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),s=E==null||E<=d.from?d.to:Math.min(d.to,E);for(let n=o.to;;){let u=e.childAfter(n);if(!u||u==f)return null;if(!u.type.isSkipped)return u.fromAbe(f,e,o,t)}function Abe(t,e,o,f,E){let d=t.textAfter,s=d.match(/^\s*/)[0].length,n=f&&d.slice(s,s+f.length)==f||E==t.pos+s,u=e?r8e(t):null;return u?n?t.column(u.from):t.column(u.to):t.baseIndent+(n?0:t.unit*o)}const o8e=t=>t.baseIndent;function lI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const i8e=200;function a8e(){return kc.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,E=o.lineAt(f);if(f>E.from+i8e)return t;let d=o.sliceString(E.from,f);if(!e.some(b=>b.test(d)))return t;let{state:s}=t,n=-1,u=[];for(let{head:b}of s.selection.ranges){let i=s.doc.lineAt(b);if(i.from==n)continue;n=i.from;let S=zce(s,i.from);if(S==null)continue;let w=/^\s*/.exec(i.text)[0],y=BI(s,S);w!=y&&u.push({from:i.from,to:i.from+w.length,insert:y})}return u.length?[t,{changes:u,sequential:!0}]:t})}const Mbe=ls.define(),E4=new Zl;function Fce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function l8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function ZH(t,e,o){for(let f of t.facet(Mbe)){let E=f(t,e,o);if(E)return E}return s8e(t,e,o)}function Ebe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const GZ=Ql.define({map:Ebe}),hD=Ql.define({map:Ebe});function Pbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const YT=tm.define({create(){return Ns.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(GZ)&&!c8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet($ce),E=f?Ns.replace({widget:new g8e(f(e.state,o.value))}):sme;t=t.update({add:[E.range(o.value.from,o.value.to)]})}else o.is(hD)&&(t=t.update({filter:(f,E)=>o.value.from!=f||o.value.to!=E,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(E,d)=>{Ef&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(E,d)=>d<=f||E>=f}))}return t},provide:t=>Xa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,E)=>{o.push(f,E)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!E||E.from>d)&&(E={from:d,to:s})}),E}function c8e(t,e,o){let f=!1;return t.between(e,e,(E,d)=>{E==e&&d==o&&(f=!0)}),f}function Rbe(t,e){return t.field(YT,!1)?e:e.concat(Ql.appendConfig.of(Ibe()))}const u8e=t=>{for(let e of Pbe(t)){let o=ZH(t.state,e.from,e.to);if(o)return t.dispatch({effects:Rbe(t.state,[GZ.of(o),Lbe(t,o)])}),!0}return!1},f8e=t=>{if(!t.state.field(YT,!1))return!1;let e=[];for(let o of Pbe(t)){let f=qH(t.state,o.from,o.to);f&&e.push(hD.of(f),Lbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Lbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,E=t.state.doc.lineAt(e.to).number;return Xa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${E}.`)}const d8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(YT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,E)=>{o.push(hD.of({from:f,to:E}))}),t.dispatch({effects:o}),!0},p8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:u8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:f8e},{key:"Ctrl-Alt-[",run:d8e},{key:"Ctrl-Alt-]",run:h8e}],m8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},$ce=ls.define({combine(t){return E_(t,m8e)}});function Ibe(t){let e=[YT,b8e];return t&&e.push($ce.of(t)),e}function Dbe(t,e){let{state:o}=t,f=o.facet($ce),E=s=>{let n=t.lineBlockAt(t.posAtDOM(s.target)),u=qH(t.state,n.from,n.to);u&&t.dispatch({effects:hD.of(u)}),s.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,E,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=E,d}const sme=Ns.replace({widget:new class extends Ex{toDOM(t){return Dbe(t,null)}}});class g8e extends Ex{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Dbe(e,this.value)}}const v8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Vie extends IO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function y8e(t={}){let e=Object.assign(Object.assign({},v8e),t),o=new Vie(e,!0),f=new Vie(e,!1),E=zh.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(S4)!=s.state.facet(S4)||s.startState.field(YT,!1)!=s.state.field(YT,!1)||Gf(s.startState)!=Gf(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let n=new y4;for(let u of s.viewportLineBlocks){let b=qH(s.state,u.from,u.to)?f:ZH(s.state,u.from,u.to)?o:null;b&&n.add(u.from,u.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[E,yAe({class:"cm-foldGutter",markers(s){var n;return((n=s.plugin(E))===null||n===void 0?void 0:n.markers)||Df.empty},initialSpacer(){return new Vie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(s,n,u)=>{if(d.click&&d.click(s,n,u))return!0;let b=qH(s.state,n.from,n.to);if(b)return s.dispatch({effects:hD.of(b)}),!0;let i=ZH(s.state,n.from,n.to);return i?(s.dispatch({effects:GZ.of(i)}),!0):!1}})}),Ibe()]}const b8e=Xa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class pD{constructor(e,o){this.specs=e;let f;function E(n){let u=b4.newName();return(f||(f=Object.create(null)))["."+u]=n,u}const d=typeof o.all=="string"?o.all:o.all?E(o.all):void 0,s=o.scope;this.scope=s instanceof eb?n=>n.prop(NT)==s.data:s?n=>n==s:void 0,this.style=kbe(e.map(n=>({tag:n.tag,class:n.class||E(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new b4(f):null,this.themeType=o.themeType}static define(e,o){return new pD(e,o||{})}}const Bse=ls.define(),Bbe=ls.define({combine(t){return t.length?[t[0]]:null}});function Uie(t){let e=t.facet(Bse);return e.length?e:t.facet(Bbe)}function zbe(t,e){let o=[_8e],f;return t instanceof pD&&(t.module&&o.push(Xa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(Bbe.of(t)):f?o.push(Bse.computeN([Xa.darkTheme],E=>E.facet(Xa.darkTheme)==(f=="dark")?[t]:[])):o.push(Bse.of(t)),o}class x8e{constructor(e){this.markCache=Object.create(null),this.tree=Gf(e.state),this.decorations=this.buildDeco(e,Uie(e.state))}update(e){let o=Gf(e.state),f=Uie(e.state),E=f!=Uie(e.startState);o.length{f.add(s,n,this.markCache[u]||(this.markCache[u]=Ns.mark({class:u})))},E,d);return f.finish()}}const _8e=ty.high(zh.fromClass(x8e,{decorations:t=>t.decorations})),w8e=pD.define([{tag:hr.meta,color:"#404740"},{tag:hr.link,textDecoration:"underline"},{tag:hr.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strong,fontWeight:"bold"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.keyword,color:"#708"},{tag:[hr.atom,hr.bool,hr.url,hr.contentSeparator,hr.labelName],color:"#219"},{tag:[hr.literal,hr.inserted],color:"#164"},{tag:[hr.string,hr.deleted],color:"#a11"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],color:"#e40"},{tag:hr.definition(hr.variableName),color:"#00f"},{tag:hr.local(hr.variableName),color:"#30a"},{tag:[hr.typeName,hr.namespace],color:"#085"},{tag:hr.className,color:"#167"},{tag:[hr.special(hr.variableName),hr.macroName],color:"#256"},{tag:hr.definition(hr.propertyName),color:"#00c"},{tag:hr.comment,color:"#940"},{tag:hr.invalid,color:"#f00"}]),O8e=Xa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Nbe=1e4,Fbe="()[]{}",$be=ls.define({combine(t){return E_(t,{afterCursor:!0,brackets:Fbe,maxScanDistance:Nbe,renderMatch:T8e})}}),S8e=Ns.mark({class:"cm-matchingBracket"}),k8e=Ns.mark({class:"cm-nonmatchingBracket"});function T8e(t){let e=[],o=t.matched?S8e:k8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const C8e=tm.define({create(){return Ns.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet($be);for(let E of e.state.selection.ranges){if(!E.empty)continue;let d=x_(e.state,E.head,-1,f)||E.head>0&&x_(e.state,E.head-1,1,f)||f.afterCursor&&(x_(e.state,E.head,1,f)||E.headXa.decorations.from(t)}),A8e=[C8e,O8e];function M8e(t={}){return[$be.of(t),A8e]}const Vbe=new Zl;function zse(t,e,o){let f=t.prop(e<0?Zl.openedBy:Zl.closedBy);if(f)return f;if(t.name.length==1){let E=o.indexOf(t.name);if(E>-1&&E%2==(e<0?1:0))return[o[E+e]]}return null}function Nse(t){let e=t.type.prop(Vbe);return e?e(t.node):t}function x_(t,e,o,f={}){let E=f.maxScanDistance||Nbe,d=f.brackets||Fbe,s=Gf(t),n=s.resolveInner(e,o);for(let u=n;u;u=u.parent){let b=zse(u.type,o,d);if(b&&u.from0?e>=i.from&&ei.from&&e<=i.to))return E8e(t,e,o,u,i,b,d)}}return P8e(t,e,o,s,n.type,E,d)}function E8e(t,e,o,f,E,d,s){let n=f.parent,u={from:E.from,to:E.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),S=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let m=e+w*o;for(let a=o>0?0:y.length-1,c=o>0?y.length:-1;a!=c;a+=o){let h=s.indexOf(y[a]);if(!(h<0||f.resolveInner(m+a,1).type!=E))if(h%2==0==o>0)S++;else{if(S==1)return{start:b,end:{from:m+a,to:m+a+1},matched:h>>1==u>>1};S--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const R8e=Object.create(null),lme=[Jp.none],cme=[],ume=Object.create(null),L8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])L8e[t]=I8e(R8e,e);function jie(t,e){cme.indexOf(t)>-1||(cme.push(t),console.warn(e))}function I8e(t,e){let o=[];for(let n of e.split(" ")){let u=[];for(let b of n.split(".")){let i=t[b]||hr[b];i?typeof i=="function"?u.length?u=u.map(i):jie(b,`Modifier ${b} used at start of tag`):u.length?jie(b,`Tag ${b} used as modifier`):u=Array.isArray(i)?i:[i]:jie(b,`Unknown highlighting tag ${b}`)}for(let b of u)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),E=f+" "+o.map(n=>n.id),d=ume[E];if(d)return d.id;let s=ume[E]=Jp.define({id:lme.length,name:f,props:[M4({[f]:o})]});return lme.push(s),s.id}const D8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=Uce(t.state,o.from);return f.line?B8e(t):f.block?N8e(t):!1};function Vce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let E=t(e,o);return E?(f(o.update(E)),!0):!1}}const B8e=Vce(V8e,0),z8e=Vce(Ube,0),N8e=Vce((t,e)=>Ube(t,e,$8e(e)),0);function Uce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const DL=50;function F8e(t,{open:e,close:o},f,E){let d=t.sliceDoc(f-DL,f),s=t.sliceDoc(E,E+DL),n=/\s*$/.exec(d)[0].length,u=/^\s*/.exec(s)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&s.slice(u,u+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:E+u,margin:u&&1}};let i,S;E-f<=2*DL?i=S=t.sliceDoc(f,E):(i=t.sliceDoc(f,f+DL),S=t.sliceDoc(E-DL,E));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(S)[0].length,m=S.length-y-o.length;return i.slice(w,w+e.length)==e&&S.slice(m,m+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:E-y-o.length,margin:/\s/.test(S.charAt(m-1))?1:0}}:null}function $8e(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),E=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=E.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:E.to})}return e}function Ube(t,e,o=e.selection.ranges){let f=o.map(d=>Uce(e,d.from).block);if(!f.every(d=>d))return null;let E=o.map((d,s)=>F8e(e,f[s],d.from,d.to));if(t!=2&&!E.every(d=>d))return{changes:e.changes(o.map((d,s)=>E[s]?[]:[{from:d.from,insert:f[s].open+" "},{from:d.to,insert:" "+f[s].close}]))};if(t!=1&&E.some(d=>d)){let d=[];for(let s=0,n;sE&&(d==s||s>S.from)){E=S.from;let w=/^\s*/.exec(S.text)[0].length,y=w==S.length,m=S.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:u,indent:b,empty:i,single:S}of f)(S||!i)&&d.push({from:n.from+b,insert:u+" "});let s=e.changes(d);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:s,comment:n,token:u}of f)if(n>=0){let b=s.from+n,i=b+u.length;s.text[i-s.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const Fse=NO.define(),U8e=NO.define(),j8e=ls.define(),jbe=ls.define({combine(t){return E_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,E)=>e(f,E)||o(f,E)})}}),Qbe=tm.define({create(){return __.empty},update(t,e){let o=e.state.facet(jbe),f=e.annotation(Fse);if(f){let u=F1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return u?i=WH(i,i.length,o.minDepth,u):i=qbe(i,e.startState.selection),new __(b==0?f.rest:i,b==0?i:f.rest)}let E=e.annotation(U8e);if((E=="full"||E=="before")&&(t=t.isolate()),e.annotation(Xp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=F1.fromTransaction(e),s=e.annotation(Xp.time),n=e.annotation(Xp.userEvent);return d?t=t.addChanges(d,s,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,s,n,o.newGroupDelay)),(E=="full"||E=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new __(t.done.map(F1.fromJSON),t.undone.map(F1.fromJSON))}});function Q8e(t={}){return[Qbe,jbe.of(t),Xa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?Hbe:e.inputType=="historyRedo"?$se:null;return f?(e.preventDefault(),f(o)):!1}})]}function KZ(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let E=o.field(Qbe,!1);if(!E)return!1;let d=E.pop(t,o,e);return d?(f(d),!0):!1}}const Hbe=KZ(0,!1),$se=KZ(1,!1),H8e=KZ(0,!0),Z8e=KZ(1,!0);class F1{constructor(e,o,f,E,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=E,this.selectionsAfter=d}setSelAfter(e){return new F1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(E=>E.toJSON())}}static fromJSON(e){return new F1(e.changes&&Wp.fromJSON(e.changes),[],e.mapped&&k_.fromJSON(e.mapped),e.startSelection&&hi.fromJSON(e.startSelection),e.selectionsAfter.map(hi.fromJSON))}static fromTransaction(e,o){let f=tb;for(let E of e.startState.facet(j8e)){let d=E(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new F1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,tb)}static selection(e){return new F1(void 0,tb,void 0,void 0,e)}}function WH(t,e,o,f){let E=e+1>o+20?e-o-1:0,d=t.slice(E,e);return d.push(f),d}function q8e(t,e){let o=[],f=!1;return t.iterChangedRanges((E,d)=>o.push(E,d)),e.iterChangedRanges((E,d,s,n)=>{for(let u=0;u=b&&s<=i&&(f=!0)}}),f}function W8e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function Zbe(t,e){return t.length?e.length?t.concat(e):t:e}const tb=[],Y8e=200;function qbe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-Y8e));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),WH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[F1.selection([e])]}function X8e(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Qie(t,e){if(!t.length)return t;let o=t.length,f=tb;for(;o;){let E=G8e(t[o-1],e,f);if(E.changes&&!E.changes.empty||E.effects.length){let d=t.slice(0,o);return d[o-1]=E,d}else e=E.mapped,o--,f=E.selectionsAfter}return f.length?[F1.selection(f)]:tb}function G8e(t,e,o){let f=Zbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):tb,o);if(!t.changes)return F1.selection(f);let E=t.changes.map(e),d=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(d):d;return new F1(E,Ql.mapEffects(t.effects,e),s,t.startSelection.map(d),f)}const K8e=/^(input\.type|delete)($|\.)/;class __{constructor(e,o,f=0,E=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=E}isolate(){return this.prevTime?new __(this.done,this.undone):this}addChanges(e,o,f,E,d){let s=this.done,n=s[s.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||K8e.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):JZ(o,e))}function t0(t){return t.textDirectionAt(t.state.selection.main.head)==Bh.LTR}const Ybe=t=>Wbe(t,!t0(t)),Xbe=t=>Wbe(t,t0(t));function Gbe(t,e){return Px(t,o=>o.empty?t.moveByGroup(o,e):JZ(o,e))}const eMe=t=>Gbe(t,!t0(t)),tMe=t=>Gbe(t,t0(t));function nMe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function eq(t,e,o){let f=Gf(t).resolveInner(e.head),E=o?Zl.closedBy:Zl.openedBy;for(let u=e.head;;){let b=o?f.childAfter(u):f.childBefore(u);if(!b)break;nMe(t,b,E)?f=b:u=o?b.to:b.from}let d=f.type.prop(E),s,n;return d&&(s=o?x_(t,f.from,1):x_(t,f.to,-1))&&s.matched?n=o?s.end.to:s.end.from:n=o?f.to:f.from,hi.cursor(n,o?-1:1)}const rMe=t=>Px(t,e=>eq(t.state,e,!t0(t))),oMe=t=>Px(t,e=>eq(t.state,e,t0(t)));function Kbe(t,e){return Px(t,o=>{if(!o.empty)return JZ(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const Jbe=t=>Kbe(t,!1),exe=t=>Kbe(t,!0);function txe(t){let e=t.scrollDOM.clientHeights.empty?t.moveVertically(s,e,o.height):JZ(s,e));if(E.eq(f.selection))return!1;let d;if(o.selfScroll){let s=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),u=n.top+o.marginTop,b=n.bottom-o.marginBottom;s&&s.top>u&&s.bottomnxe(t,!1),Vse=t=>nxe(t,!0);function P4(t,e,o){let f=t.lineBlockAt(e.head),E=t.moveToLineBoundary(e,o);if(E.head==e.head&&E.head!=(o?f.to:f.from)&&(E=t.moveToLineBoundary(e,o,!1)),!o&&E.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(E=hi.cursor(f.from+d))}return E}const iMe=t=>Px(t,e=>P4(t,e,!0)),aMe=t=>Px(t,e=>P4(t,e,!1)),sMe=t=>Px(t,e=>P4(t,e,!t0(t))),lMe=t=>Px(t,e=>P4(t,e,t0(t))),cMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).from,1)),uMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).to,-1));function fMe(t,e,o){let f=!1,E=AM(t.selection,d=>{let s=x_(t,d.head,-1)||x_(t,d.head,1)||d.head>0&&x_(t,d.head-1,1)||d.headfMe(t,e,!1);function lb(t,e){let o=AM(t.state.selection,f=>{let E=e(f);return hi.range(f.anchor,E.head,E.goalColumn,E.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(P_(t.state,o)),!0)}function rxe(t,e){return lb(t,o=>t.moveByChar(o,e))}const oxe=t=>rxe(t,!t0(t)),ixe=t=>rxe(t,t0(t));function axe(t,e){return lb(t,o=>t.moveByGroup(o,e))}const hMe=t=>axe(t,!t0(t)),pMe=t=>axe(t,t0(t)),mMe=t=>lb(t,e=>eq(t.state,e,!t0(t))),gMe=t=>lb(t,e=>eq(t.state,e,t0(t)));function sxe(t,e){return lb(t,o=>t.moveVertically(o,e))}const lxe=t=>sxe(t,!1),cxe=t=>sxe(t,!0);function uxe(t,e){return lb(t,o=>t.moveVertically(o,e,txe(t).height))}const dme=t=>uxe(t,!1),hme=t=>uxe(t,!0),vMe=t=>lb(t,e=>P4(t,e,!0)),yMe=t=>lb(t,e=>P4(t,e,!1)),bMe=t=>lb(t,e=>P4(t,e,!t0(t))),xMe=t=>lb(t,e=>P4(t,e,t0(t))),_Me=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).from)),wMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).to)),pme=({state:t,dispatch:e})=>(e(P_(t,{anchor:0})),!0),mme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.doc.length})),!0),gme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:0})),!0),vme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),OMe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),SMe=({state:t,dispatch:e})=>{let o=tq(t).map(({from:f,to:E})=>hi.range(f,Math.min(E+1,t.doc.length)));return e(t.update({selection:hi.create(o),userEvent:"select"})),!0},kMe=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var E;let d=Gf(t).resolveStack(f.from,1);for(let s=d;s;s=s.next){let{node:n}=s;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((E=n.parent)===null||E===void 0)&&E.parent))return hi.range(n.to,n.from)}return f});return e(P_(t,o)),!0},TMe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=hi.create([o.main]):o.main.empty||(f=hi.create([hi.cursor(o.main.head)])),f?(e(P_(t,f)),!0):!1};function mD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,E=f.changeByRange(d=>{let{from:s,to:n}=d;if(s==n){let u=e(d);us&&(o="delete.forward",u=BQ(t,u,!0)),s=Math.min(s,u),n=Math.max(n,u)}else s=BQ(t,s,!1),n=BQ(t,n,!0);return s==n?{range:d}:{changes:{from:s,to:n},range:hi.cursor(s,sE(t)))f.between(e,e,(E,d)=>{Ee&&(e=o?d:E)});return e}const fxe=(t,e)=>mD(t,o=>{let f=o.from,{state:E}=t,d=E.doc.lineAt(f),s,n;if(!e&&f>d.from&&ffxe(t,!1),dxe=t=>fxe(t,!0),hxe=(t,e)=>mD(t,o=>{let f=o.head,{state:E}=t,d=E.doc.lineAt(f),s=E.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?E.doc.lines:1)&&(f+=e?1:-1);break}let u=cg(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,u)-d.from,Math.max(f,u)-d.from),i=s(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=u}return f}),pxe=t=>hxe(t,!1),CMe=t=>hxe(t,!0),AMe=t=>mD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headmD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),EMe=t=>mD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:Qu.of(["",""])},range:hi.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},RMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let E=f.from,d=t.doc.lineAt(E),s=E==d.from?E-1:cg(d.text,E-d.from,!1)+d.from,n=E==d.to?E+1:cg(d.text,E-d.from,!0)+d.from;return{changes:{from:s,to:n,insert:t.doc.slice(E,n).append(t.doc.slice(s,E))},range:hi.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function tq(t){let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=E.number){let s=e[e.length-1];s.to=d.to,s.ranges.push(f)}else e.push({from:E.from,to:d.to,ranges:[f]});o=d.number+1}return e}function mxe(t,e,o){if(t.readOnly)return!1;let f=[],E=[];for(let d of tq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let s=t.doc.lineAt(o?d.to+1:d.from-1),n=s.length+1;if(o){f.push({from:d.to,to:s.to},{from:d.from,insert:s.text+t.lineBreak});for(let u of d.ranges)E.push(hi.range(Math.min(t.doc.length,u.anchor+n),Math.min(t.doc.length,u.head+n)))}else{f.push({from:s.from,to:d.from},{from:d.to,insert:t.lineBreak+s.text});for(let u of d.ranges)E.push(hi.range(u.anchor-n,u.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:hi.create(E,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const LMe=({state:t,dispatch:e})=>mxe(t,e,!1),IMe=({state:t,dispatch:e})=>mxe(t,e,!0);function gxe(t,e,o){if(t.readOnly)return!1;let f=[];for(let E of tq(t))o?f.push({from:E.from,insert:t.doc.slice(E.from,E.to)+t.lineBreak}):f.push({from:E.to,insert:t.lineBreak+t.doc.slice(E.from,E.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const DMe=({state:t,dispatch:e})=>gxe(t,e,!1),BMe=({state:t,dispatch:e})=>gxe(t,e,!0),zMe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(tq(e).map(({from:E,to:d})=>(E>0?E--:dt.moveVertically(E,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function NMe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gf(t).resolveInner(e),f=o.childBefore(e),E=o.childAfter(e),d;return f&&E&&f.to<=e&&E.from>=e&&(d=f.type.prop(Zl.closedBy))&&d.indexOf(E.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(E.from).from&&!/\S/.test(t.sliceDoc(f.to,E.from))?{from:f.to,to:E.from}:null}const FMe=vxe(!1),$Me=vxe(!0);function vxe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(E=>{let{from:d,to:s}=E,n=e.doc.lineAt(d),u=!t&&d==s&&NMe(e,d);t&&(d=s=(s<=n.to?n:e.doc.lineAt(s)).to);let b=new XZ(e,{simulateBreak:d,simulateDoubleBreak:!!u}),i=zce(b,d);for(i==null&&(i=kx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));sn.from&&d{let E=[];for(let s=f.from;s<=f.to;){let n=t.doc.lineAt(s);n.number>o&&(f.empty||f.to>n.from)&&(e(n,E,f),o=n.number),s=n.to+1}let d=t.changes(E);return{changes:E,range:hi.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const VMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new XZ(t,{overrideIndentation:d=>{let s=o[d];return s??-1}}),E=jce(t,(d,s,n)=>{let u=zce(f,d.from);if(u==null)return;/\S/.test(d.text)||(u=0);let b=/^\s*/.exec(d.text)[0],i=BI(t,u);(b!=i||n.fromt.readOnly?!1:(e(t.update(jce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(eC)})}),{userEvent:"input.indent"})),!0),bxe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(jce(t,(o,f)=>{let E=/^\s*/.exec(o.text)[0];if(!E)return;let d=kx(E,t.tabSize),s=0,n=BI(t,Math.max(0,d-HH(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),QMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:rMe,shift:mMe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:oMe,shift:gMe},{key:"Alt-ArrowUp",run:LMe},{key:"Shift-Alt-ArrowUp",run:DMe},{key:"Alt-ArrowDown",run:IMe},{key:"Shift-Alt-ArrowDown",run:BMe},{key:"Escape",run:TMe},{key:"Mod-Enter",run:$Me},{key:"Alt-l",mac:"Ctrl-l",run:SMe},{key:"Mod-i",run:kMe,preventDefault:!0},{key:"Mod-[",run:bxe},{key:"Mod-]",run:yxe},{key:"Mod-Alt-\\",run:VMe},{key:"Shift-Mod-k",run:zMe},{key:"Shift-Mod-\\",run:dMe},{key:"Mod-/",run:D8e},{key:"Alt-A",run:z8e}].concat(jMe),HMe={key:"Tab",run:yxe,shift:bxe};function zd(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var E=o[f];typeof E=="string"?t.setAttribute(f,E):E!=null&&(t[f]=E)}e++}for(;et.normalize("NFKD"):t=>t;class fM{constructor(e,o,f=0,E=e.length,d,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,E),this.bufferStart=f,this.normalize=d?n=>d(yme(n)):yme,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ag(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=bce(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Gy(e);let E=this.normalize(o);for(let d=0,s=f;;d++){let n=E.charCodeAt(d),u=this.match(n,s);if(d==E.length-1){if(u)return this.value=u,this;break}s==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,E=f+o[0].length;if(this.matchPos=YH(this.text,E+(f==E?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||E.to<=o){let n=new G8(o,e.sliceString(o,f));return Hie.set(e,n),n}if(E.from==o&&E.to==f)return E;let{text:d,from:s}=E;return s>o&&(d=e.sliceString(o,s)+d,s=o),E.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,E=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this.matchPos=YH(this.text,E+(f==E?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=G8.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(wxe.prototype[Symbol.iterator]=Oxe.prototype[Symbol.iterator]=function(){return this});function ZMe(t){try{return new RegExp(t,Qce),!0}catch{return!1}}function YH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function jse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=zd("input",{class:"cm-textfield",name:"line",value:e}),f=zd("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:XH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),E())},onsubmit:d=>{d.preventDefault(),E()}},zd("label",t.state.phrase("Go to line"),": ",o)," ",zd("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function E(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:s}=t,n=s.doc.lineAt(s.selection.main.head),[,u,b,i,S]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&S){let c=y/100;u&&(c=c*(u=="-"?-1:1)+n.number/s.doc.lines),y=Math.round(s.doc.lines*c)}else b&&u&&(y=y*(u=="-"?-1:1)+n.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,y))),a=hi.cursor(m.from+Math.max(0,Math.min(w,m.length)));t.dispatch({effects:[XH.of(!1),Xa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const XH=Ql.define(),bme=tm.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(XH)&&(t=o.value);return t},provide:t=>RI.from(t,e=>e?jse:null)}),qMe=t=>{let e=PI(t,jse);if(!e){let o=[XH.of(!0)];t.state.field(bme,!1)==null&&o.push(Ql.appendConfig.of([bme,WMe])),t.dispatch({effects:o}),e=PI(t,jse)}return e&&e.dom.querySelector("input").select(),!0},WMe=Xa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),YMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Sxe=ls.define({combine(t){return E_(t,YMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function XMe(t){let e=[tEe,eEe];return t&&e.push(Sxe.of(t)),e}const GMe=Ns.mark({class:"cm-selectionMatch"}),KMe=Ns.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function xme(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=yh.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=yh.Word)}function JMe(t,e,o,f){return t(e.sliceDoc(o,o+1))==yh.Word&&t(e.sliceDoc(f-1,f))==yh.Word}const eEe=zh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Sxe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return Ns.none;let E=f.main,d,s=null;if(E.empty){if(!e.highlightWordAroundCursor)return Ns.none;let u=o.wordAt(E.head);if(!u)return Ns.none;s=o.charCategorizer(E.head),d=o.sliceDoc(u.from,u.to)}else{let u=E.to-E.from;if(u200)return Ns.none;if(e.wholeWords){if(d=o.sliceDoc(E.from,E.to),s=o.charCategorizer(E.head),!(xme(s,o,E.from,E.to)&&JMe(s,o,E.from,E.to)))return Ns.none}else if(d=o.sliceDoc(E.from,E.to).trim(),!d)return Ns.none}let n=[];for(let u of t.visibleRanges){let b=new fM(o.doc,d,u.from,u.to);for(;!b.next().done;){let{from:i,to:S}=b.value;if((!s||xme(s,o,i,S))&&(E.empty&&i<=E.from&&S>=E.to?n.push(KMe.range(i,S)):(i>=E.to||S<=E.from)&&n.push(GMe.range(i,S)),n.length>e.maxMatches))return Ns.none}}return Ns.set(n)}},{decorations:t=>t.decorations}),tEe=Xa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),nEe=({state:t,dispatch:e})=>{let{selection:o}=t,f=hi.create(o.ranges.map(E=>t.wordAt(E.head)||hi.cursor(E.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function rEe(t,e){let{main:o,ranges:f}=t.selection,E=t.wordAt(o.head),d=E&&E.from==o.from&&E.to==o.to;for(let s=!1,n=new fM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(s)return null;n=new fM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),s=!0}else{if(s&&f.some(u=>u.from==n.value.from))continue;if(d){let u=t.wordAt(n.value.from);if(!u||u.from!=n.value.from||u.to!=n.value.to)continue}return n.value}}const oEe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return nEe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let E=rEe(t,f);return E?(e(t.update({selection:t.selection.addRange(hi.range(E.from,E.to),!1),effects:Xa.scrollIntoView(E.to)})),!0):!1},MM=ls.define({combine(t){return E_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new gEe(e),scrollToMatch:e=>Xa.scrollIntoView(e)})}});class kxe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||ZMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` -`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new lEe(this):new aEe(this)}getCursor(e,o=0,f){let E=e.doc?e:kc.create({doc:e});return f==null&&(f=E.doc.length),this.regexp?B8(this,E,o,f):D8(this,E,o,f)}}class Txe{constructor(e){this.spec=e}}function D8(t,e,o,f){return new fM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:E=>E.toLowerCase(),t.wholeWord?iEe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function iEe(t,e){return(o,f,E,d)=>((d>o||d+E.length=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=D8(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}function B8(t,e,o,f){return new wxe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?sEe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function GH(t,e){return t.slice(cg(t,e,!1),e)}function KH(t,e){return t.slice(e,cg(t,e))}function sEe(t){return(e,o,f)=>!f[0].length||(t(GH(f.input,f.index))!=yh.Word||t(KH(f.input,f.index))!=yh.Word)&&(t(KH(f.input,f.index+f[0].length))!=yh.Word||t(GH(f.input,f.index+f[0].length))!=yh.Word)}class lEe extends Txe{nextMatch(e,o,f){let E=B8(this.spec,e,f,e.doc.length).next();return E.done&&(E=B8(this.spec,e,0,o).next()),E.done?null:E.value}prevMatchInRange(e,o,f){for(let E=1;;E++){let d=Math.max(o,f-E*1e4),s=B8(this.spec,e,d,f),n=null;for(;!s.next().done;)n=s.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=B8(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}const zI=Ql.define(),Hce=Ql.define(),m4=tm.define({create(t){return new Zie(Qse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(zI)?t=new Zie(o.value.create(),t.panel):o.is(Hce)&&(t=new Zie(t.query,o.value?Zce:null));return t},provide:t=>RI.from(t,e=>e.panel)});class Zie{constructor(e,o){this.query=e,this.panel=o}}const cEe=Ns.mark({class:"cm-searchMatch"}),uEe=Ns.mark({class:"cm-searchMatch cm-searchMatch-selected"}),fEe=zh.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(m4))}update(t){let e=t.state.field(m4);(e!=t.startState.field(m4)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ns.none;let{view:o}=this,f=new y4;for(let E=0,d=o.visibleRanges,s=d.length;Ed[E+1].from-2*250;)u=d[++E].to;t.highlight(o.state,n,u,(b,i)=>{let S=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,S?uEe:cEe)})}return f.finish()}},{decorations:t=>t.decorations});function gD(t){return e=>{let o=e.state.field(m4,!1);return o&&o.query.spec.valid?t(e,o):Mxe(e)}}const JH=gD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let E=hi.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:E,effects:[qce(t,f),d.scrollToMatch(E.main,t)],userEvent:"select.search"}),Axe(t),!0}),eZ=gD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,E=e.prevMatch(o,f,f);if(!E)return!1;let d=hi.single(E.from,E.to),s=t.state.facet(MM);return t.dispatch({selection:d,effects:[qce(t,E),s.scrollToMatch(d.main,t)],userEvent:"select.search"}),Axe(t),!0}),dEe=gD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:hi.create(o.map(f=>hi.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),hEe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:E}=o.main,d=[],s=0;for(let n=new fM(t.doc,t.sliceDoc(f,E));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(s=d.length),d.push(hi.range(n.value.from,n.value.to))}return e(t.update({selection:hi.create(d,s),userEvent:"select.search.matches"})),!0},_me=gD((t,{query:e})=>{let{state:o}=t,{from:f,to:E}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let s=[],n,u,b=[];if(d.from==f&&d.to==E&&(u=o.toText(e.getReplacement(d)),s.push({from:d.from,to:d.to,insert:u}),d=e.nextMatch(o,d.from,d.to),b.push(Xa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=s.length==0||s[0].from>=d.to?0:d.to-d.from-u.length;n=hi.single(d.from-i,d.to-i),b.push(qce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:s,selection:n,effects:b,userEvent:"input.replace"}),!0}),pEe=gD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(E=>{let{from:d,to:s}=E;return{from:d,to:s,insert:e.getReplacement(E)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Xa.announce.of(f),userEvent:"input.replace.all"}),!0});function Zce(t){return t.state.facet(MM).createPanel(t)}function Qse(t,e){var o,f,E,d,s;let n=t.selection.main,u=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!u)return e;let b=t.facet(MM);return new kxe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(E=e==null?void 0:e.literal)!==null&&E!==void 0?E:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:b.wholeWord})}function Cxe(t){let e=PI(t,Zce);return e&&e.dom.querySelector("[main-field]")}function Axe(t){let e=Cxe(t);e&&e==t.root.activeElement&&e.select()}const Mxe=t=>{let e=t.state.field(m4,!1);if(e&&e.panel){let o=Cxe(t);if(o&&o!=t.root.activeElement){let f=Qse(t.state,e.query.spec);f.valid&&t.dispatch({effects:zI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[Hce.of(!0),e?zI.of(Qse(t.state,e.query.spec)):Ql.appendConfig.of(yEe)]});return!0},Exe=t=>{let e=t.state.field(m4,!1);if(!e||!e.panel)return!1;let o=PI(t,Zce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Hce.of(!1)}),!0},mEe=[{key:"Mod-f",run:Mxe,scope:"editor search-panel"},{key:"F3",run:JH,shift:eZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:JH,shift:eZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Exe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:hEe},{key:"Mod-Alt-g",run:qMe},{key:"Mod-d",run:oEe,preventDefault:!0}];class gEe{constructor(e){this.view=e;let o=this.query=e.state.field(m4).query.spec;this.commit=this.commit.bind(this),this.searchField=zd("input",{value:o.search,placeholder:Uv(e,"Find"),"aria-label":Uv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=zd("input",{value:o.replace,placeholder:Uv(e,"Replace"),"aria-label":Uv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=zd("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=zd("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=zd("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(E,d,s){return zd("button",{class:"cm-button",name:E,onclick:d,type:"button"},s)}this.dom=zd("div",{onkeydown:E=>this.keydown(E),class:"cm-search"},[this.searchField,f("next",()=>JH(e),[Uv(e,"next")]),f("prev",()=>eZ(e),[Uv(e,"previous")]),f("select",()=>dEe(e),[Uv(e,"all")]),zd("label",null,[this.caseField,Uv(e,"match case")]),zd("label",null,[this.reField,Uv(e,"regexp")]),zd("label",null,[this.wordField,Uv(e,"by word")]),...e.state.readOnly?[]:[zd("br"),this.replaceField,f("replace",()=>_me(e),[Uv(e,"replace")]),f("replaceAll",()=>pEe(e),[Uv(e,"replace all")])],zd("button",{name:"close",onclick:()=>Exe(e),"aria-label":Uv(e,"close"),type:"button"},["×"])])}commit(){let e=new kxe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:zI.of(e)}))}keydown(e){C6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?eZ:JH)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),_me(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(zI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Uv(t,e){return t.state.phrase(e)}const zQ=30,NQ=/[\s\.,:;?!]/;function qce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),E=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-zQ),s=Math.min(E,o+zQ),n=t.state.sliceDoc(d,s);if(d!=f.from){for(let u=0;un.length-zQ;u--)if(!NQ.test(n[u-1])&&NQ.test(n[u])){n=n.slice(0,u);break}}return Xa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const vEe=Xa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),yEe=[m4,ty.low(fEe),vEe];class Wce{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gf(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),E=o.text.slice(f-o.from,this.pos-o.from),d=E.search(Pxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:E.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function wme(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function bEe(t){let e=Object.create(null),o=Object.create(null);for(let{label:E}of t){e[E[0]]=!0;for(let d=1;dtypeof E=="string"?{label:E}:E),[o,f]=e.every(E=>/^\w+$/.test(E.label))?[/\w*$/,/\w+$/]:bEe(e);return E=>{let d=E.matchBefore(f);return d||E.explicit?{from:d?d.from:E.pos,options:e,validFor:o}:null}}function Yce(t,e){return o=>{for(let f=Gf(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class Ome{constructor(e,o,f,E){this.completion=e,this.source=o,this.match=f,this.score=E}}function g4(t){return t.selection.main.from}function Pxe(t,e){var o;let{source:f}=t,E=e&&f[0]!="^",d=f[f.length-1]!="$";return!E&&!d?t:new RegExp(`${E?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const Rxe=NO.define();function xEe(t,e,o,f){let{main:E}=t.selection,d=o-E.from,s=f-E.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=E&&o!=f&&t.sliceDoc(n.from+d,n.from+s)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==E.from?n.to:n.from+s,insert:e},range:hi.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Sme=new WeakMap;function _Ee(t){if(!Array.isArray(t))return t;let e=Sme.get(t);return e||Sme.set(t,e=nq(t)),e}const Xce=Ql.define(),NI=Ql.define();class wEe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&O<=57||O>=97&&O<=122?2:O>=65&&O<=90?1:0:(C=bce(O))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!p||x==1&&c||_==0&&x!=0)&&(o[S]==O||f[S]==O&&(w=!0)?s[S++]=p:s.length&&(h=!1)),_=x,p+=Gy(O)}return S==u&&s[0]==0&&h?this.result(-100+(w?-200:0),s,e):y==u&&m==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==u?this.ret(-200+-700-e.length,[m,a]):S==u?this.result(-100+(w?-200:0)+-700+(h?0:-1100),s,e):o.length==2?!1:this.result((E[0]?-700:0)+-200+-1100,E,e)}result(e,o,f){let E=[],d=0;for(let s of o){let n=s+(this.astral?Gy(ag(f,s)):1);d&&E[d-1]==s?E[d-1]=n:(E[d++]=s,E[d++]=n)}return this.ret(e-f.length,E)}}const Kg=ls.define({combine(t){return E_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:OEe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>kme(e(f),o(f)),optionClass:(e,o)=>f=>kme(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function kme(t,e){return t?e?t+" "+e:t:e}function OEe(t,e,o,f,E,d){let s=t.textDirection==Bh.RTL,n=s,u=!1,b="top",i,S,w=e.left-E.left,y=E.right-e.right,m=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||p>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let c=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/c}px; max-width: ${S/h}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":n?"left":"right")}}function SEe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(E=>"cm-completionIcon-"+E)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,E,d){let s=document.createElement("span");s.className="cm-completionLabel";let n=o.displayLabel||o.label,u=0;for(let b=0;bu&&s.appendChild(document.createTextNode(n.slice(u,i)));let w=s.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,S))),w.className="cm-completionMatchedText",u=S}return uo.position-f.position).map(o=>o.render)}function qie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let E=Math.floor(e/o);return{from:E*o,to:(E+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class kEe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:u=>this.placeInfo(u),key:this},this.space=null,this.currentClass="";let E=e.state.field(o),{options:d,selected:s}=E.open,n=e.state.facet(Kg);this.optionContent=SEe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=qie(d.length,s,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",u=>{let{options:b}=e.state.field(o).open;for(let i=u.target,S;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(S=/-(\d+)$/.exec(i.id))&&+S[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Kg).closeOnBlur&&u.relatedTarget!=e.contentDOM&&e.dispatch({effects:NI.of(null)})}),this.showOptions(d,E.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),E=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=E){let{options:d,selected:s,disabled:n}=f.open;(!E.open||E.open.options!=d)&&(this.range=qie(d.length,s,e.state.facet(Kg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=E.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=qie(o.options.length,o.selected,this.view.state.facet(Kg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:E}=f;if(!E)return;let d=typeof E=="string"?document.createTextNode(E):E(f);if(!d)return;"then"in d?d.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,f)}).catch(s=>rb(this.view.state,s,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:E,destroy:d}=e;f.appendChild(E),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,E=this.range.from;f;f=f.nextSibling,E++)f.nodeName!="LI"||!f.id?E--:E==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&CEe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),E=e.getBoundingClientRect(),d=this.space;if(!d){let s=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return E.top>Math.min(d.bottom,o.bottom)-10||E.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)E.appendChild(b.header(b));else{let y=E.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=E.appendChild(document.createElement("li"));i.id=o+"-"+s,i.setAttribute("role","option");let S=this.optionClass(n);S&&(i.className=S);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,u);y&&i.appendChild(y)}}return f.from&&E.classList.add("cm-completionListIncompleteTop"),f.tonew kEe(o,t,e)}function CEe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),E=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/E)}function Tme(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function AEe(t,e){let o=[],f=null,E=u=>{o.push(u);let{section:b}=u.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(S=>S.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let u of t)if(u.hasResult()){let b=u.result.getMatch;if(u.result.filter===!1)for(let i of u.result.options)E(new Ome(i,u.source,b?b(i):[],1e9-o.length));else{let i=new wEe(e.sliceDoc(u.from,u.to));for(let S of u.result.options)if(i.match(S.label)){let w=S.displayLabel?b?b(S,i.matched):[]:i.matched;E(new Ome(S,u.source,w,i.score+(S.boost||0)))}}}if(f){let u=Object.create(null),b=0,i=(S,w)=>{var y,m;return((y=S.rank)!==null&&y!==void 0?y:1e9)-((m=w.rank)!==null&&m!==void 0?m:1e9)||(S.namei.score-b.score||n(b.completion,i.completion))){let b=u.completion;!s||s.label!=b.label||s.detail!=b.detail||s.type!=null&&b.type!=null&&s.type!=b.type||s.apply!=b.apply||s.boost!=b.boost?d.push(u):Tme(u.completion)>Tme(s)&&(d[d.length-1]=u),s=u.completion}return d}class $8{constructor(e,o,f,E,d,s){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=E,this.selected=d,this.disabled=s}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new $8(this.options,Cme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,E,d){let s=AEe(e,o);if(!s.length)return E&&e.some(u=>u.state==1)?new $8(E.options,E.attrs,E.tooltip,E.timestamp,E.selected,!0):null;let n=o.facet(Kg).selectOnOpen?0:-1;if(E&&E.selected!=n&&E.selected!=-1){let u=E.options[E.selected].completion;for(let b=0;bb.hasResult()?Math.min(u,b.from):u,1e8),create:LEe,above:d.aboveCursor},E?E.timestamp:Date.now(),n,!1)}map(e){return new $8(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class tZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new tZ(PEe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Kg),d=(f.override||o.languageDataAt("autocomplete",g4(o)).map(_Ee)).map(n=>(this.active.find(b=>b.source==n)||new B1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,u)=>n==this.active[u])&&(d=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!MEe(d,this.active)?s=$8.build(d,o,this.id,s,f):s&&s.disabled&&!d.some(n=>n.state==1)&&(s=null),!s&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new B1(n.source,0):n));for(let n of e.effects)n.is(Ixe)&&(s=s&&s.setSelected(n.value,this.id));return d==this.active&&s==this.open?this:new tZ(d,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:EEe}}function MEe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const PEe=[];function Hse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class B1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Hse(e),E=this;f?E=E.handleUserEvent(e,f,o):e.docChanged?E=E.handleChange(e):e.selection&&E.state!=0&&(E=new B1(E.source,0));for(let d of e.effects)if(d.is(Xce))E=new B1(E.source,1,d.value?g4(e.state):-1);else if(d.is(NI))E=new B1(E.source,0);else if(d.is(Lxe))for(let s of d.value)s.source==E.source&&(E=s);return E}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new B1(this.source,1)}handleChange(e){return e.changes.touchesRange(g4(e.startState))?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new B1(this.source,this.state,e.mapPos(this.explicitPos))}}class K8 extends B1{constructor(e,o,f,E,d){super(e,2,o),this.result=f,this.from=E,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var E;let d=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),n=g4(e.state);if((this.explicitPos<0?n<=d:ns||o=="delete"&&g4(e.startState)==this.from)return new B1(this.source,o=="input"&&f.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return REe(this.result.validFor,e.state,d,s)?new K8(this.source,u,this.result,d,s):this.result.update&&(b=this.result.update(this.result,d,s,new Wce(e.state,n,u>=0)))?new K8(this.source,u,b,b.from,(E=b.to)!==null&&E!==void 0?E:g4(e.state)):new B1(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new K8(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function REe(t,e,o,f){if(!t)return!1;let E=e.sliceDoc(o,f);return typeof t=="function"?t(E,o,f,e):Pxe(t,!0).test(E)}const Lxe=Ql.define({map(t,e){return t.map(o=>o.map(e))}}),Ixe=Ql.define(),Wv=tm.define({create(){return tZ.start()},update(t,e){return t.update(e)},provide:t=>[Mce.from(t,e=>e.tooltip),Xa.contentAttributes.from(t,e=>e.attrs)]});function Dxe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Wv).active.find(E=>E.source==e.source);return f instanceof K8?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},xEe(t.state,o,f.from,f.to)),{annotations:Rxe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const LEe=TEe(Wv,Dxe);function FQ(t,e="option"){return o=>{let f=o.state.field(Wv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+E*(t?1:-1):t?0:s-1;return n<0?n=e=="page"?0:s-1:n>=s&&(n=e=="page"?s-1:0),o.dispatch({effects:Ixe.of(n)}),!0}}const IEe=t=>{let e=t.state.field(Wv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Wv,!1)?(t.dispatch({effects:Xce.of(!0)}),!0):!1,BEe=t=>{let e=t.state.field(Wv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:NI.of(null)}),!0)};class zEe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const NEe=50,FEe=1e3,$Ee=zh.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Wv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Wv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Hse(f));for(let f=0;fNEe&&Date.now()-E.time>FEe){for(let d of E.context.abortListeners)try{d()}catch(s){rb(this.view.state,s)}E.context.abortListeners=null,this.running.splice(f--,1)}else E.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(E=>E.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Hse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Wv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=g4(e),f=new Wce(e,o,t.explicitPos==o),E=new zEe(t,f);this.running.push(E),Promise.resolve(t.source(f)).then(d=>{E.context.aborted||(E.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:NI.of(null)}),rb(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Kg);for(let f=0;fs.source==E.active.source);if(d&&d.state==1)if(E.done==null){let s=new B1(E.active.source,0);for(let n of E.updates)s=s.update(n,o);s.state!=1&&e.push(s)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:Lxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Wv,!1);if(e&&e.tooltip&&this.view.state.facet(Kg).closeOnBlur){let o=e.open&&mbe(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:NI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Xce.of(!1)}),20),this.composing=0}}}),Bxe=Xa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class VEe{constructor(e,o,f,E){this.field=e,this.line=o,this.from=f,this.to=E}}class Gce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,lg.TrackDel),f=e.mapPos(this.to,1,lg.TrackDel);return o==null||f==null?null:new Gce(this.field,o,f)}}class Kce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],E=[o],d=e.doc.lineAt(o),s=/^\s*/.exec(d.text)[0];for(let u of this.lines){if(f.length){let b=s,i=/^\t*/.exec(u)[0].length;for(let S=0;Snew Gce(u.field,E[u.line]+u.from,E[u.line]+u.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],E=[],d;for(let s of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let n=d[1]?+d[1]:null,u=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&S.field++}E.push(new VEe(b,f.length,d.index,d.index+u.length)),s=s.slice(0,d.index)+u+s.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(s);){s=s.slice(0,n.index)+n[1]+s.slice(n.index+n[0].length);for(let u of E)u.line==f.length&&u.from>n.index&&(u.from--,u.to--)}f.push(s)}return new Kce(f,E)}}let UEe=Ns.widget({widget:new class extends Ex{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),jEe=Ns.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=Ns.set(e.map(f=>(f.from==f.to?UEe:jEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let E=f.map(e);if(!E)return null;o.push(E)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const vD=Ql.define({map(t,e){return t&&t.map(e)}}),QEe=Ql.define(),FI=tm.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(vD))return o.value;if(o.is(QEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Xa.decorations.from(t,e=>e?e.deco:Ns.none)});function Jce(t,e){return hi.create(t.filter(o=>o.field==e).map(o=>hi.range(o.from,o.to)))}function HEe(t){let e=Kce.parse(t);return(o,f,E,d)=>{let{text:s,ranges:n}=e.instantiate(o.state,E),u={changes:{from:E,to:d,insert:Qu.of(s)},scrollIntoView:!0,annotations:f?Rxe.of(f):void 0};if(n.length&&(u.selection=Jce(n,0)),n.length>1){let b=new EM(n,0),i=u.effects=[vD.of(b)];o.state.field(FI,!1)===void 0&&i.push(Ql.appendConfig.of([FI,XEe,GEe,Bxe]))}o.dispatch(o.state.update(u))}}function zxe(t){return({state:e,dispatch:o})=>{let f=e.field(FI,!1);if(!f||t<0&&f.active==0)return!1;let E=f.active+t,d=t>0&&!f.ranges.some(s=>s.field==E+t);return o(e.update({selection:Jce(f.ranges,E),effects:vD.of(d?null:new EM(f.ranges,E)),scrollIntoView:!0})),!0}}const ZEe=({state:t,dispatch:e})=>t.field(FI,!1)?(e(t.update({effects:vD.of(null)})),!0):!1,qEe=zxe(1),WEe=zxe(-1),YEe=[{key:"Tab",run:qEe,shift:WEe},{key:"Escape",run:ZEe}],Ame=ls.define({combine(t){return t.length?t[0]:YEe}}),XEe=ty.highest(FO.compute([Ame],t=>t.facet(Ame)));function Dh(t,e){return Object.assign(Object.assign({},e),{apply:HEe(t)})}const GEe=Xa.domEventHandlers({mousedown(t,e){let o=e.state.field(FI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let E=o.ranges.find(d=>d.from<=f&&d.to>=f);return!E||E.field==o.active?!1:(e.dispatch({selection:Jce(o.ranges,E.field),effects:vD.of(o.ranges.some(d=>d.field>E.field)?new EM(o.ranges,E.field):null),scrollIntoView:!0}),!0)}}),$I={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},FT=Ql.define({map(t,e){let o=e.mapPos(t,-1,lg.TrackAfter);return o??void 0}}),eue=new class extends ZT{};eue.startSide=1;eue.endSide=-1;const Nxe=tm.define({create(){return Df.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(FT)&&(t=t.update({add:[eue.range(o.value,o.value+1)]}));return t}});function KEe(){return[ePe,Nxe]}const Wie="()[]{}<>";function Fxe(t){for(let e=0;e{if((JEe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let E=t.state.selection.main;if(f.length>2||f.length==2&&Gy(ag(f,0))==1||e!=E.from||o!=E.to)return!1;let d=rPe(t.state,f);return d?(t.dispatch(d),!0):!1}),tPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=$xe(t,t.selection.main.head).brackets||$I.brackets,E=null,d=t.changeByRange(s=>{if(s.empty){let n=oPe(t.doc,s.head);for(let u of f)if(u==n&&rq(t.doc,s.head)==Fxe(ag(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:hi.cursor(s.head-u.length)}}return{range:E=s}});return E||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!E},nPe=[{key:"Backspace",run:tPe}];function rPe(t,e){let o=$xe(t,t.selection.main.head),f=o.brackets||$I.brackets;for(let E of f){let d=Fxe(ag(E,0));if(e==E)return d==E?sPe(t,E,f.indexOf(E+E+E)>-1,o):iPe(t,E,d,o.before||$I.before);if(e==d&&Vxe(t,t.selection.main.from))return aPe(t,E,d)}return null}function Vxe(t,e){let o=!1;return t.field(Nxe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function rq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Gy(ag(o,0)))}function oPe(t,e){let o=t.sliceString(e-2,e);return Gy(ag(o,0))==o.length?o:o.slice(1)}function iPe(t,e,o,f){let E=null,d=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:o,from:s.to}],effects:FT.of(s.to+e.length),range:hi.range(s.anchor+e.length,s.head+e.length)};let n=rq(t.doc,s.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:s.head},effects:FT.of(s.head+e.length),range:hi.cursor(s.head+e.length)}:{range:E=s}});return E?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function aPe(t,e,o){let f=null,E=t.changeByRange(d=>d.empty&&rq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:hi.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(E,{scrollIntoView:!0,userEvent:"input.type"})}function sPe(t,e,o,f){let E=f.stringPrefixes||$I.stringPrefixes,d=null,s=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:FT.of(n.to+e.length),range:hi.range(n.anchor+e.length,n.head+e.length)};let u=n.head,b=rq(t.doc,u),i;if(b==e){if(Mme(t,u))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(Vxe(t,u)){let w=o&&t.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+w.length,insert:w},range:hi.cursor(u+w.length)}}}else{if(o&&t.sliceDoc(u-2*e.length,u)==e+e&&(i=Eme(t,u-2*e.length,E))>-1&&Mme(t,i))return{changes:{insert:e+e+e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(t.charCategorizer(u)(b)!=yh.Word&&Eme(t,u,E)>-1&&!lPe(t,u,e,E))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)}}return{range:d=n}});return d?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Mme(t,e){let o=Gf(t).resolveInner(e+1);return o.parent&&o.from==e}function lPe(t,e,o,f){let E=Gf(t).resolveInner(e,-1),d=f.reduce((s,n)=>Math.max(s,n.length),0);for(let s=0;s<5;s++){let n=t.sliceDoc(E.from,Math.min(E.to,E.from+o.length+d)),u=n.indexOf(o);if(!u||u>-1&&f.indexOf(n.slice(0,u))>-1){let i=E.firstChild;for(;i&&i.from==E.from&&i.to-i.from>o.length+u;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=E.to==e&&E.parent;if(!b)break;E=b}return!1}function Eme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=yh.Word)return e;for(let E of o){let d=e-E.length;if(t.sliceDoc(d,e)==E&&f(t.sliceDoc(d-1,d))!=yh.Word)return d}return-1}function dM(t={}){return[Wv,Kg.of(t),$Ee,cPe,Bxe]}const Uxe=[{key:"Ctrl-Space",run:DEe},{key:"Escape",run:BEe},{key:"ArrowDown",run:FQ(!0)},{key:"ArrowUp",run:FQ(!1)},{key:"PageDown",run:FQ(!0,"page")},{key:"PageUp",run:FQ(!1,"page")},{key:"Enter",run:IEe}],cPe=ty.highest(FO.computeN([Kg],t=>t.facet(Kg).defaultKeymap?[Uxe]:[]));class uPe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class LT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let E=e,d=f.facet(Hxe).markerFilter;d&&(E=d(E));let s=Ns.set(E.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?Ns.widget({widget:new bPe(n),diagnostic:n}).range(n.from):Ns.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new LT(s,o,hM(s))}}function hM(t,e=null,o=0){let f=null;return t.between(o,1e9,(E,d,{spec:s})=>{if(!(e&&s.diagnostic!=e))return f=new uPe(E,d,s.diagnostic),!1}),f}function fPe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(jxe))||t.changes.touchesRange(o.from,o.to))}function dPe(t,e){return t.field(Kv,!1)?e:e.concat(Ql.appendConfig.of(wPe))}const jxe=Ql.define(),tue=Ql.define(),Qxe=Ql.define(),Kv=tm.define({create(){return new LT(Ns.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let E=e.changes.mapPos(t.selected.from,1);f=hM(o,t.selected.diagnostic,E)||hM(o,null,E)}t=new LT(o,t.panel,f)}for(let o of e.effects)o.is(jxe)?t=LT.init(o.value,t.panel,e.state):o.is(tue)?t=new LT(t.diagnostics,o.value?oq.open:null,t.selected):o.is(Qxe)&&(t=new LT(t.diagnostics,t.panel,o.value));return t},provide:t=>[RI.from(t,e=>e.panel),Xa.decorations.from(t,e=>e.diagnostics)]}),hPe=Ns.mark({class:"cm-lintRange cm-lintRange-active"});function pPe(t,e,o){let{diagnostics:f}=t.state.field(Kv),E=[],d=2e8,s=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(u,b,{spec:i})=>{e>=u&&e<=b&&(u==b||(e>u||o>0)&&(eqxe(t,o,!1)))}const gPe=t=>{let e=t.state.field(Kv,!1);(!e||!e.panel)&&t.dispatch({effects:dPe(t.state,[tue.of(!0)])});let o=PI(t,oq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},Pme=t=>{let e=t.state.field(Kv,!1);return!e||!e.panel?!1:(t.dispatch({effects:tue.of(!1)}),!0)},vPe=t=>{let e=t.state.field(Kv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},yPe=[{key:"Mod-Shift-m",run:gPe,preventDefault:!0},{key:"F8",run:vPe}],Hxe=ls.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},E_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function Zxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==E.toLowerCase())){e.push(E);continue e}}e.push("")}return e}function qxe(t,e,o){var f;let E=o?Zxe(e.actions):[];return zd("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},zd("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,s)=>{let n=!1,u=w=>{if(w.preventDefault(),n)return;n=!0;let y=hM(t.state.field(Kv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=E[s]?b.indexOf(E[s]):-1,S=i<0?b:[b.slice(0,i),zd("u",b.slice(i,i+1)),b.slice(i+1)];return zd("button",{type:"button",class:"cm-diagnosticAction",onclick:u,onmousedown:u,"aria-label":` Action: ${b}${i<0?"":` (access key "${E[s]})"`}.`},S)}),e.source&&zd("div",{class:"cm-diagnosticSource"},e.source))}class bPe extends Ex{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return zd("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Rme{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=qxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class oq{constructor(e){this.view=e,this.items=[];let o=E=>{if(E.keyCode==27)Pme(this.view),this.view.focus();else if(E.keyCode==38||E.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(E.keyCode==40||E.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(E.keyCode==36)this.moveSelection(0);else if(E.keyCode==35)this.moveSelection(this.items.length-1);else if(E.keyCode==13)this.view.focus();else if(E.keyCode>=65&&E.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],s=Zxe(d.actions);for(let n=0;n{for(let d=0;dPme(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Kv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let S=f;Sf&&(this.items.splice(f,b-f),E=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:n})=>{let u=n.height/this.list.offsetHeight;s.topn.bottom&&(this.list.scrollTop+=(s.bottom-n.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),E&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Kv),f=hM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:Qxe.of(f)})}static open(e){return new oq(e)}}function xPe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function $Q(t){return xPe(``,'width="6" height="3"')}const _Pe=Xa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:$Q("#d11")},".cm-lintRange-warning":{backgroundImage:$Q("orange")},".cm-lintRange-info":{backgroundImage:$Q("#999")},".cm-lintRange-hint":{backgroundImage:$Q("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),wPe=[Kv,Xa.decorations.compute([Kv],t=>{let{selected:e,panel:o}=t.field(Kv);return!e||!o||e.from==e.to?Ns.none:Ns.set([hPe.range(e.from,e.to)])}),mAe(pPe,{hideOn:fPe}),_Pe],OPe=(()=>[SAe(),CAe(),Q6e(),Q8e(),y8e(),L6e(),N6e(),kc.allowMultipleSelections.of(!0),a8e(),zbe(w8e,{fallback:!0}),M8e(),KEe(),dM(),oAe(),sAe(),X6e(),XMe(),FO.of([...nPe,...QMe,...mEe,...J8e,...p8e,...Uxe,...yPe])])();/*! +`){let E="";for(let d=0,s=0;de&&d&&(E+=f),es&&(E+=n.sliceString(e-s,o-s,f)),s=u+1}return E}flatten(e){for(let o of this.children)o.flatten(e)}scanIdentical(e,o){if(!(e instanceof v_))return 0;let f=0,[E,d,s,n]=o>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;E+=o,d+=o){if(E==s||d==n)return f;let u=this.children[E],b=e.children[d];if(u!=b)return f+u.scanIdentical(b,o);f+=u.length+1}}static from(e,o=e.reduce((f,E)=>f+E.length+1,-1)){let f=0;for(let y of e)f+=y.lines;if(f<32){let y=[];for(let m of e)m.flatten(y);return new hp(y,o)}let E=Math.max(32,f>>5),d=E<<1,s=E>>1,n=[],u=0,b=-1,i=[];function S(y){let m;if(y.lines>d&&y instanceof v_)for(let a of y.children)S(a);else y.lines>s&&(u>s||!u)?(w(),n.push(y)):y instanceof hp&&u&&(m=i[i.length-1])instanceof hp&&y.lines+m.lines<=32?(u+=y.lines,b+=y.length+1,i[i.length-1]=new hp(m.text.concat(y.text),m.length+1+y.length)):(u+y.lines>E&&w(),u+=y.lines,b+=y.length+1,i.push(y))}function w(){u!=0&&(n.push(i.length==1?i[0]:v_.from(i,b)),b=-1,u=i.length=0)}for(let y of e)S(y);return w(),n.length==1?n[0]:new v_(n,o)}}Qu.empty=new hp([""],0);function BTe(t){let e=-1;for(let o of t)e+=o.length+1;return e}function sH(t,e,o=0,f=1e9){for(let E=0,d=0,s=!0;d=o&&(u>f&&(n=n.slice(0,f-E)),E0?1:(e instanceof hp?e.text.length:e.children.length)<<1]}nextInner(e,o){for(this.done=this.lineBreak=!1;;){let f=this.nodes.length-1,E=this.nodes[f],d=this.offsets[f],s=d>>1,n=E instanceof hp?E.text.length:E.children.length;if(s==(o>0?n:0)){if(f==0)return this.done=!0,this.value="",this;o>0&&this.offsets[f-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(o>0?0:1)){if(this.offsets[f]+=o,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(E instanceof hp){let u=E.text[s+(o<0?-1:0)];if(this.offsets[f]+=o,u.length>Math.max(0,e))return this.value=e==0?u:o>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=E.children[s+(o<0?-1:0)];e>u.length?(e-=u.length,this.offsets[f]+=o):(o<0&&this.offsets[f]--,this.nodes.push(u),this.offsets.push(o>0?1:(u instanceof hp?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Jve{constructor(e,o,f){this.value="",this.done=!1,this.cursor=new oI(e,o>f?-1:1),this.pos=o>f?e.length:0,this.from=Math.min(o,f),this.to=Math.max(o,f)}nextInner(e,o){if(o<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,o<0?this.pos-this.to:this.from-this.pos);let f=o<0?this.pos-this.from:this.to-this.pos;e>f&&(e=f),f-=e;let{value:E}=this.cursor.next(e);return this.pos+=(E.length+e)*o,this.value=E.length<=f?E:o<0?E.slice(E.length-f):E.slice(0,f),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class eye{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:o,lineBreak:f,value:E}=this.inner.next(e);return o&&this.afterBreak?(this.value="",this.afterBreak=!1):o?(this.done=!0,this.value=""):f?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=E,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Qu.prototype[Symbol.iterator]=function(){return this.iter()},oI.prototype[Symbol.iterator]=Jve.prototype[Symbol.iterator]=eye.prototype[Symbol.iterator]=function(){return this});let zTe=class{constructor(e,o,f,E){this.from=e,this.to=o,this.number=f,this.text=E}get length(){return this.to-this.from}},W8="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return W8[e-1]<=t;return!1}function Whe(t){return t>=127462&&t<=127487}const Yhe=8205;function cg(t,e,o=!0,f=!0){return(o?tye:FTe)(t,e,f)}function tye(t,e,o){if(e==t.length)return e;e&&nye(t.charCodeAt(e))&&rye(t.charCodeAt(e-1))&&e--;let f=ag(t,e);for(e+=Ky(f);e=0&&Whe(ag(t,s));)d++,s-=2;if(d%2==0)break;e+=2}else break}return e}function FTe(t,e,o){for(;e>0;){let f=tye(t,e-2,o);if(f=56320&&t<57344}function rye(t){return t>=55296&&t<56320}function ag(t,e){let o=t.charCodeAt(e);if(!rye(o)||e+1==t.length)return o;let f=t.charCodeAt(e+1);return nye(f)?(o-55296<<10)+(f-56320)+65536:o}function xce(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Ky(t){return t<65536?1:2}const Kae=/\r\n?|\n/;var lg=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(lg||(lg={}));class k_{constructor(e){this.sections=e}get length(){let e=0;for(let o=0;oe)return d+(e-E);d+=n}else{if(f!=lg.Simple&&b>=e&&(f==lg.TrackDel&&Ee||f==lg.TrackBefore&&Ee))return null;if(b>e||b==e&&o<0&&!n)return e==E||o<0?d:d+u;d+=u}E=b}if(e>E)throw new RangeError(`Position ${e} is out of range for changeset of length ${E}`);return d}touchesRange(e,o=e){for(let f=0,E=0;f=0&&E<=o&&n>=e)return Eo?"cover":!0;E=n}return!1}toString(){let e="";for(let o=0;o=0?":"+E:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(o=>typeof o!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k_(e)}static create(e){return new k_(e)}}class Wp extends k_{constructor(e,o){super(e),this.inserted=o}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Jae(this,(o,f,E,d,s)=>e=e.replace(E,E+(f-o),s),!1),e}mapDesc(e,o=!1){return ese(this,e,o,!0)}invert(e){let o=this.sections.slice(),f=[];for(let E=0,d=0;E=0){o[E]=n,o[E+1]=s;let u=E>>1;for(;f.length0&&s4(f,o,d.text),d.forward(i),n+=i}let b=e[s++];for(;n>1].toJSON()))}return e}static of(e,o,f){let E=[],d=[],s=0,n=null;function u(i=!1){if(!i&&!E.length)return;sw||S<0||w>o)throw new RangeError(`Invalid change range ${S} to ${w} (in doc of length ${o})`);let m=y?typeof y=="string"?Qu.of(y.split(f||Kae)):y:Qu.empty,a=m.length;if(S==w&&a==0)return;Ss&&Yg(E,S-s,-1),Yg(E,w-S,a),s4(d,E,m),s=w}}return b(e),u(!n),n}static empty(e){return new Wp(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let o=[],f=[];for(let E=0;En&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)o.push(d[0],0);else{for(;f.length=0&&o<=0&&o==t[E+1]?t[E]+=e:e==0&&t[E]==0?t[E+1]+=o:f?(t[E]+=e,t[E+1]+=o):t.push(e,o)}function s4(t,e,o){if(o.length==0)return;let f=e.length-2>>1;if(f>1])),!(o||s==t.sections.length||t.sections[s+1]<0);)n=t.sections[s++],u=t.sections[s++];e(E,b,d,i,S),E=b,d=i}}}function ese(t,e,o,f=!1){let E=[],d=f?[]:null,s=new SI(t),n=new SI(e);for(let u=-1;;)if(s.ins==-1&&n.ins==-1){let b=Math.min(s.len,n.len);Yg(E,b,-1),s.forward(b),n.forward(b)}else if(n.ins>=0&&(s.ins<0||u==s.i||s.off==0&&(n.len=0&&u=0){let b=0,i=s.len;for(;i;)if(n.ins==-1){let S=Math.min(i,n.len);b+=S,i-=S,n.forward(S)}else if(n.ins==0&&n.lenu||s.ins>=0&&s.len>u)&&(n||f.length>b),d.forward2(u),s.forward(u)}}}}class SI{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return o>=e.length?Qu.empty:e[o]}textBit(e){let{inserted:o}=this.set,f=this.i-2>>1;return f>=o.length&&!e?Qu.empty:o[f].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class zT{constructor(e,o,f){this.from=e,this.to=o,this.flags=f}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,o=-1){let f,E;return this.empty?f=E=e.mapPos(this.from,o):(f=e.mapPos(this.from,1),E=e.mapPos(this.to,-1)),f==this.from&&E==this.to?this:new zT(f,E,this.flags)}extend(e,o=e){if(e<=this.anchor&&o>=this.anchor)return hi.range(e,o);let f=Math.abs(e-this.anchor)>Math.abs(o-this.anchor)?e:o;return hi.range(this.anchor,f)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return hi.range(e.anchor,e.head)}static create(e,o,f){return new zT(e,o,f)}}class hi{constructor(e,o){this.ranges=e,this.mainIndex=o}map(e,o=-1){return e.empty?this:hi.create(this.ranges.map(f=>f.map(e,o)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let o=0;oe.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new hi(e.ranges.map(o=>zT.fromJSON(o)),e.main)}static single(e,o=e){return new hi([hi.range(e,o)],0)}static create(e,o=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let f=0,E=0;Ee?8:0)|d)}static normalized(e,o=0){let f=e[o];e.sort((E,d)=>E.from-d.from),o=e.indexOf(f);for(let E=1;Ed.head?hi.range(u,n):hi.range(n,u))}}return new hi(e,o)}}function iye(t,e){for(let o of t.ranges)if(o.to>e)throw new RangeError("Selection points outside of document")}let _ce=0;class ls{constructor(e,o,f,E,d){this.combine=e,this.compareInput=o,this.compare=f,this.isStatic=E,this.id=_ce++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new ls(e.combine||(o=>o),e.compareInput||((o,f)=>o===f),e.compare||(e.combine?(o,f)=>o===f:wce),!!e.static,e.enables)}of(e){return new lH([],this,0,e)}compute(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new lH(e,this,1,o)}computeN(e,o){if(this.isStatic)throw new Error("Can't compute a static facet");return new lH(e,this,2,o)}from(e,o){return o||(o=f=>f),this.compute([e],f=>o(f.field(e)))}}function wce(t,e){return t==e||t.length==e.length&&t.every((o,f)=>o===e[f])}class lH{constructor(e,o,f,E){this.dependencies=e,this.facet=o,this.type=f,this.value=E,this.id=_ce++}dynamicSlot(e){var o;let f=this.value,E=this.facet.compareInput,d=this.id,s=e[d]>>1,n=this.type==2,u=!1,b=!1,i=[];for(let S of this.dependencies)S=="doc"?u=!0:S=="selection"?b=!0:((o=e[S.id])!==null&&o!==void 0?o:1)&1||i.push(e[S.id]);return{create(S){return S.values[s]=f(S),1},update(S,w){if(u&&w.docChanged||b&&(w.docChanged||w.selection)||tse(S,i)){let y=f(S);if(n?!Xhe(y,S.values[s],E):!E(y,S.values[s]))return S.values[s]=y,1}return 0},reconfigure:(S,w)=>{let y,m=w.config.address[d];if(m!=null){let a=BH(w,m);if(this.dependencies.every(c=>c instanceof ls?w.facet(c)===S.facet(c):c instanceof tm?w.field(c,!1)==S.field(c,!1):!0)||(n?Xhe(y=f(S),a,E):E(y=f(S),a)))return S.values[s]=a,0}else y=f(S);return S.values[s]=y,1}}}}function Xhe(t,e,o){if(t.length!=e.length)return!1;for(let f=0;ft[u.id]),E=o.map(u=>u.type),d=f.filter(u=>!(u&1)),s=t[e.id]>>1;function n(u){let b=[];for(let i=0;if===E),e);return e.provide&&(o.provides=e.provide(o)),o}create(e){let o=e.facet(Ghe).find(f=>f.field==this);return((o==null?void 0:o.create)||this.createF)(e)}slot(e){let o=e[this.id]>>1;return{create:f=>(f.values[o]=this.create(f),1),update:(f,E)=>{let d=f.values[o],s=this.updateF(d,E);return this.compareF(d,s)?0:(f.values[o]=s,1)},reconfigure:(f,E)=>E.config.address[this.id]!=null?(f.values[o]=E.field(this),0):(f.values[o]=this.create(f),1)}}init(e){return[this,Ghe.of({field:this,create:e})]}get extension(){return this}}const RT={lowest:4,low:3,default:2,high:1,highest:0};function EL(t){return e=>new aye(e,t)}const ny={highest:EL(RT.highest),high:EL(RT.high),default:EL(RT.default),low:EL(RT.low),lowest:EL(RT.lowest)};class aye{constructor(e,o){this.inner=e,this.prec=o}}class cD{of(e){return new nse(this,e)}reconfigure(e){return cD.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class nse{constructor(e,o){this.compartment=e,this.inner=o}}class DH{constructor(e,o,f,E,d,s){for(this.base=e,this.compartments=o,this.dynamicSlots=f,this.address=E,this.staticValues=d,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,o,f){let E=[],d=Object.create(null),s=new Map;for(let w of VTe(e,o,s))w instanceof tm?E.push(w):(d[w.facet.id]||(d[w.facet.id]=[])).push(w);let n=Object.create(null),u=[],b=[];for(let w of E)n[w.id]=b.length<<1,b.push(y=>w.slot(y));let i=f==null?void 0:f.config.facets;for(let w in d){let y=d[w],m=y[0].facet,a=i&&i[w]||[];if(y.every(c=>c.type==0))if(n[m.id]=u.length<<1|1,wce(a,y))u.push(f.facet(m));else{let c=m.combine(y.map(h=>h.value));u.push(f&&m.compare(c,f.facet(m))?f.facet(m):c)}else{for(let c of y)c.type==0?(n[c.id]=u.length<<1|1,u.push(c.value)):(n[c.id]=b.length<<1,b.push(h=>c.dynamicSlot(h)));n[m.id]=b.length<<1,b.push(c=>$Te(c,m,y))}}let S=b.map(w=>w(n));return new DH(e,s,S,n,u,d)}}function VTe(t,e,o){let f=[[],[],[],[],[]],E=new Map;function d(s,n){let u=E.get(s);if(u!=null){if(u<=n)return;let b=f[u].indexOf(s);b>-1&&f[u].splice(b,1),s instanceof nse&&o.delete(s.compartment)}if(E.set(s,n),Array.isArray(s))for(let b of s)d(b,n);else if(s instanceof nse){if(o.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let b=e.get(s.compartment)||s.inner;o.set(s.compartment,b),d(b,n)}else if(s instanceof aye)d(s.inner,s.prec);else if(s instanceof tm)f[n].push(s),s.provides&&d(s.provides,n);else if(s instanceof lH)f[n].push(s),s.facet.extensions&&d(s.facet.extensions,RT.default);else{let b=s.extension;if(!b)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(b,n)}}return d(t,RT.default),f.reduce((s,n)=>s.concat(n))}function iI(t,e){if(e&1)return 2;let o=e>>1,f=t.status[o];if(f==4)throw new Error("Cyclic dependency between fields and/or facets");if(f&2)return f;t.status[o]=4;let E=t.computeSlot(t,t.config.dynamicSlots[o]);return t.status[o]=2|E}function BH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const sye=ls.define(),rse=ls.define({combine:t=>t.some(e=>e),static:!0}),lye=ls.define({combine:t=>t.length?t[0]:void 0,static:!0}),cye=ls.define(),uye=ls.define(),fye=ls.define(),dye=ls.define({combine:t=>t.length?t[0]:!1});class NO{constructor(e,o){this.type=e,this.value=o}static define(){return new UTe}}class UTe{of(e){return new NO(this,e)}}class jTe{constructor(e){this.map=e}of(e){return new Ql(this,e)}}class Ql{constructor(e,o){this.type=e,this.value=o}map(e){let o=this.type.map(this.value,e);return o===void 0?void 0:o==this.value?this:new Ql(this.type,o)}is(e){return this.type==e}static define(e={}){return new jTe(e.map||(o=>o))}static mapEffects(e,o){if(!e.length)return e;let f=[];for(let E of e){let d=E.map(o);d&&f.push(d)}return f}}Ql.reconfigure=Ql.define();Ql.appendConfig=Ql.define();class Xp{constructor(e,o,f,E,d,s){this.startState=e,this.changes=o,this.selection=f,this.effects=E,this.annotations=d,this.scrollIntoView=s,this._doc=null,this._state=null,f&&iye(f,o.newLength),d.some(n=>n.type==Xp.time)||(this.annotations=d.concat(Xp.time.of(Date.now())))}static create(e,o,f,E,d,s){return new Xp(e,o,f,E,d,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let o of this.annotations)if(o.type==e)return o.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let o=this.annotation(Xp.userEvent);return!!(o&&(o==e||o.length>e.length&&o.slice(0,e.length)==e&&o[e.length]=="."))}}Xp.time=NO.define();Xp.userEvent=NO.define();Xp.addToHistory=NO.define();Xp.remote=NO.define();function QTe(t,e){let o=[];for(let f=0,E=0;;){let d,s;if(f=t[f]))d=t[f++],s=t[f++];else if(E=0;E--){let d=f[E](t);d instanceof Xp?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Xp?t=d[0]:t=pye(e,Y8(d),!1)}return t}function ZTe(t){let e=t.startState,o=e.facet(fye),f=t;for(let E=o.length-1;E>=0;E--){let d=o[E](t);d&&Object.keys(d).length&&(f=hye(f,ose(e,d,t.changes.newLength),!0))}return f==t?t:Xp.create(e,t.changes,t.selection,f.effects,f.annotations,f.scrollIntoView)}const qTe=[];function Y8(t){return t==null?qTe:Array.isArray(t)?t:[t]}var yh=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(yh||(yh={}));const WTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ise;try{ise=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function YTe(t){if(ise)return ise.test(t);for(let e=0;e"€"&&(o.toUpperCase()!=o.toLowerCase()||WTe.test(o)))return!0}return!1}function XTe(t){return e=>{if(!/\S/.test(e))return yh.Space;if(YTe(e))return yh.Word;for(let o=0;o-1)return yh.Word;return yh.Other}}class kc{constructor(e,o,f,E,d,s){this.config=e,this.doc=o,this.selection=f,this.values=E,this.status=e.statusTemplate.slice(),this.computeSlot=d,s&&(s._state=this);for(let n=0;nE.set(b,u)),o=null),E.set(n.value.compartment,n.value.extension)):n.is(Ql.reconfigure)?(o=null,f=n.value):n.is(Ql.appendConfig)&&(o=null,f=Y8(f).concat(n.value));let d;o?d=e.startState.values.slice():(o=DH.resolve(f,E,this),d=new kc(o,this.doc,this.selection,o.dynamicSlots.map(()=>null),(u,b)=>b.reconfigure(u,this),null).values);let s=e.startState.facet(rse)?e.newSelection:e.newSelection.asSingle();new kc(o,e.newDoc,s,d,(n,u)=>u.update(n,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:e},range:hi.cursor(o.from+e.length)}))}changeByRange(e){let o=this.selection,f=e(o.ranges[0]),E=this.changes(f.changes),d=[f.range],s=Y8(f.effects);for(let n=1;ns.spec.fromJSON(n,u)))}}return kc.create({doc:e.doc,selection:hi.fromJSON(e.selection),extensions:o.extensions?E.concat([o.extensions]):E})}static create(e={}){let o=DH.resolve(e.extensions||[],new Map),f=e.doc instanceof Qu?e.doc:Qu.of((e.doc||"").split(o.staticFacet(kc.lineSeparator)||Kae)),E=e.selection?e.selection instanceof hi?e.selection:hi.single(e.selection.anchor,e.selection.head):hi.single(0);return iye(E,f.length),o.staticFacet(rse)||(E=E.asSingle()),new kc(o,f,E,o.dynamicSlots.map(()=>null),(d,s)=>s.create(d),null)}get tabSize(){return this.facet(kc.tabSize)}get lineBreak(){return this.facet(kc.lineSeparator)||` +`}get readOnly(){return this.facet(dye)}phrase(e,...o){for(let f of this.facet(kc.phrases))if(Object.prototype.hasOwnProperty.call(f,e)){e=f[e];break}return o.length&&(e=e.replace(/\$(\$|\d*)/g,(f,E)=>{if(E=="$")return"$";let d=+(E||1);return!d||d>o.length?f:o[d-1]})),e}languageDataAt(e,o,f=-1){let E=[];for(let d of this.facet(sye))for(let s of d(this,o,f))Object.prototype.hasOwnProperty.call(s,e)&&E.push(s[e]);return E}charCategorizer(e){return XTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:o,from:f,length:E}=this.doc.lineAt(e),d=this.charCategorizer(e),s=e-f,n=e-f;for(;s>0;){let u=cg(o,s,!1);if(d(o.slice(u,s))!=yh.Word)break;s=u}for(;nt.length?t[0]:4});kc.lineSeparator=lye;kc.readOnly=dye;kc.phrases=ls.define({compare(t,e){let o=Object.keys(t),f=Object.keys(e);return o.length==f.length&&o.every(E=>t[E]==e[E])}});kc.languageData=sye;kc.changeFilter=cye;kc.transactionFilter=uye;kc.transactionExtender=fye;cD.reconfigure=Ql.define();function E_(t,e,o={}){let f={};for(let E of t)for(let d of Object.keys(E)){let s=E[d],n=f[d];if(n===void 0)f[d]=s;else if(!(n===s||s===void 0))if(Object.hasOwnProperty.call(o,d))f[d]=o[d](n,s);else throw new Error("Config merge conflict for field "+d)}for(let E in e)f[E]===void 0&&(f[E]=e[E]);return f}class qT{eq(e){return this==e}range(e,o=e){return ase.create(e,o,this)}}qT.prototype.startSide=qT.prototype.endSide=0;qT.prototype.point=!1;qT.prototype.mapMode=lg.TrackDel;let ase=class mye{constructor(e,o,f){this.from=e,this.to=o,this.value=f}static create(e,o,f){return new mye(e,o,f)}};function sse(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Oce{constructor(e,o,f,E){this.from=e,this.to=o,this.value=f,this.maxPoint=E}get length(){return this.to[this.to.length-1]}findIndex(e,o,f,E=0){let d=f?this.to:this.from;for(let s=E,n=d.length;;){if(s==n)return s;let u=s+n>>1,b=d[u]-e||(f?this.value[u].endSide:this.value[u].startSide)-o;if(u==s)return b>=0?s:n;b>=0?n=u:s=u+1}}between(e,o,f,E){for(let d=this.findIndex(o,-1e9,!0),s=this.findIndex(f,1e9,!1,d);dy||w==y&&b.startSide>0&&b.endSide<=0)continue;(y-w||b.endSide-b.startSide)<0||(s<0&&(s=w),b.point&&(n=Math.max(n,y-w)),f.push(b),E.push(w-s),d.push(y-s))}return{mapped:f.length?new Oce(E,d,f,n):null,pos:s}}}class Df{constructor(e,o,f,E){this.chunkPos=e,this.chunk=o,this.nextLayer=f,this.maxPoint=E}static create(e,o,f,E){return new Df(e,o,f,E)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let o of this.chunk)e+=o.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:o=[],sort:f=!1,filterFrom:E=0,filterTo:d=this.length}=e,s=e.filter;if(o.length==0&&!s)return this;if(f&&(o=o.slice().sort(sse)),this.isEmpty)return o.length?Df.of(o):this;let n=new gye(this,null,-1).goto(0),u=0,b=[],i=new y4;for(;n.value||u=0){let S=o[u++];i.addInner(S.from,S.to,S.value)||b.push(S)}else n.rangeIndex==1&&n.chunkIndexthis.chunkEnd(n.chunkIndex)||dn.to||d=d&&e<=d+s.length&&s.between(d,e-d,o-d,f)===!1)return}this.nextLayer.between(e,o,f)}}iter(e=0){return kI.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,o=0){return kI.from(e).goto(o)}static compare(e,o,f,E,d=-1){let s=e.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),n=o.filter(S=>S.maxPoint>0||!S.isEmpty&&S.maxPoint>=d),u=Khe(s,n,f),b=new PL(s,u,d),i=new PL(n,u,d);f.iterGaps((S,w,y)=>Jhe(b,S,i,w,y,E)),f.empty&&f.length==0&&Jhe(b,0,i,0,0,E)}static eq(e,o,f=0,E){E==null&&(E=1e9-1);let d=e.filter(i=>!i.isEmpty&&o.indexOf(i)<0),s=o.filter(i=>!i.isEmpty&&e.indexOf(i)<0);if(d.length!=s.length)return!1;if(!d.length)return!0;let n=Khe(d,s),u=new PL(d,n,0).goto(f),b=new PL(s,n,0).goto(f);for(;;){if(u.to!=b.to||!lse(u.active,b.active)||u.point&&(!b.point||!u.point.eq(b.point)))return!1;if(u.to>E)return!0;u.next(),b.next()}}static spans(e,o,f,E,d=-1){let s=new PL(e,null,d).goto(o),n=o,u=s.openStart;for(;;){let b=Math.min(s.to,f);if(s.point){let i=s.activeForPoint(s.to),S=s.pointFromn&&(E.span(n,b,s.active,u),u=s.openEnd(b));if(s.to>f)return u+(s.point&&s.to>f?1:0);n=s.to,s.next()}}static of(e,o=!1){let f=new y4;for(let E of e instanceof ase?[e]:o?GTe(e):e)f.add(E.from,E.to,E.value);return f.finish()}}Df.empty=new Df([],[],null,-1);function GTe(t){if(t.length>1)for(let e=t[0],o=1;o0)return t.slice().sort(sse);e=f}return t}Df.empty.nextLayer=Df.empty;class y4{finishChunk(e){this.chunks.push(new Oce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,o,f){this.addInner(e,o,f)||(this.nextLayer||(this.nextLayer=new y4)).add(e,o,f)}addInner(e,o,f){let E=e-this.lastTo||f.startSide-this.last.endSide;if(E<=0&&(e-this.lastFrom||f.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return E<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(o-this.chunkStart),this.last=f,this.lastFrom=e,this.lastTo=o,this.value.push(f),f.point&&(this.maxPoint=Math.max(this.maxPoint,o-e)),!0)}addChunk(e,o){if((e-this.lastTo||o.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,o.maxPoint),this.chunks.push(o),this.chunkPos.push(e);let f=o.value.length-1;return this.last=o.value[f],this.lastFrom=o.from[f]+e,this.lastTo=o.to[f]+e,!0}finish(){return this.finishInner(Df.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let o=Df.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,o}}function Khe(t,e,o){let f=new Map;for(let d of t)for(let s=0;s=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=f&&E.push(new gye(s,o,f,d));return E.length==1?E[0]:new kI(E)}get startSide(){return this.value?this.value.startSide:0}goto(e,o=-1e9){for(let f of this.heap)f.goto(e,o);for(let f=this.heap.length>>1;f>=0;f--)Cie(this.heap,f);return this.next(),this}forward(e,o){for(let f of this.heap)f.forward(e,o);for(let f=this.heap.length>>1;f>=0;f--)Cie(this.heap,f);(this.to-e||this.value.endSide-o)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Cie(this.heap,0)}}}function Cie(t,e){for(let o=t[e];;){let f=(e<<1)+1;if(f>=t.length)break;let E=t[f];if(f+1=0&&(E=t[f+1],f++),o.compare(E)<0)break;t[f]=o,t[e]=E,e=f}}class PL{constructor(e,o,f){this.minPoint=f,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=kI.from(e,o,f)}goto(e,o=-1e9){return this.cursor.goto(e,o),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=o,this.openStart=-1,this.next(),this}forward(e,o){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-o)<0;)this.removeActive(this.minActive);this.cursor.forward(e,o)}removeActive(e){xQ(this.active,e),xQ(this.activeTo,e),xQ(this.activeRank,e),this.minActive=epe(this.active,this.activeTo)}addActive(e){let o=0,{value:f,to:E,rank:d}=this.cursor;for(;o-1&&(this.activeTo[E]-this.cursor.from||this.active[E].endSide-this.cursor.startSide)<0){if(this.activeTo[E]>e){this.to=this.activeTo[E],this.endSide=this.active[E].endSide;break}this.removeActive(E),f&&xQ(f,E)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(f),this.cursor.next();else if(o&&this.cursor.to==this.to&&this.cursor.from=0&&f[E]=0&&!(this.activeRank[f]e||this.activeTo[f]==e&&this.active[f].endSide>=this.point.endSide)&&o.push(this.active[f]);return o.reverse()}openEnd(e){let o=0;for(let f=this.activeTo.length-1;f>=0&&this.activeTo[f]>e;f--)o++;return o}}function Jhe(t,e,o,f,E,d){t.goto(e),o.goto(f);let s=f+E,n=f,u=f-e;for(;;){let b=t.to+u-o.to||t.endSide-o.endSide,i=b<0?t.to+u:o.to,S=Math.min(i,s);if(t.point||o.point?t.point&&o.point&&(t.point==o.point||t.point.eq(o.point))&&lse(t.activeForPoint(t.to),o.activeForPoint(o.to))||d.comparePoint(n,S,t.point,o.point):S>n&&!lse(t.active,o.active)&&d.compareRange(n,S,t.active,o.active),i>s)break;n=i,b<=0&&t.next(),b>=0&&o.next()}}function lse(t,e){if(t.length!=e.length)return!1;for(let o=0;o=e;f--)t[f+1]=t[f];t[e]=o}function epe(t,e){let o=-1,f=1e9;for(let E=0;E=e)return E;if(E==t.length)break;d+=t.charCodeAt(E)==9?o-d%o:1,E=cg(t,E)}return f===!0?-1:t.length}const use="ͼ",tpe=typeof Symbol>"u"?"__"+use:Symbol.for(use),fse=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),npe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class b4{constructor(e,o){this.rules=[];let{finish:f}=o||{};function E(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function d(s,n,u,b){let i=[],S=/^@(\w+)\b/.exec(s[0]),w=S&&S[1]=="keyframes";if(S&&n==null)return u.push(s[0]+";");for(let y in n){let m=n[y];if(/&/.test(y))d(y.split(/,\s*/).map(a=>s.map(c=>a.replace(/&/,c))).reduce((a,c)=>a.concat(c)),m,u);else if(m&&typeof m=="object"){if(!S)throw new RangeError("The value of a property ("+y+") should be a primitive value.");d(E(y),m,i,w)}else m!=null&&i.push(y.replace(/_.*/,"").replace(/[A-Z]/g,a=>"-"+a.toLowerCase())+": "+m+";")}(i.length||w)&&u.push((f&&!S&&!b?s.map(f):s).join(", ")+" {"+i.join(" ")+"}")}for(let s in e)d(E(s),e[s],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=npe[tpe]||1;return npe[tpe]=e+1,use+e.toString(36)}static mount(e,o,f){let E=e[fse],d=f&&f.nonce;E?d&&E.setNonce(d):E=new KTe(e,d),E.mount(Array.isArray(o)?o:[o])}}let rpe=new Map;class KTe{constructor(e,o){let f=e.ownerDocument||e,E=f.defaultView;if(!e.head&&e.adoptedStyleSheets&&E.CSSStyleSheet){let d=rpe.get(f);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[fse]=d;this.sheet=new E.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],rpe.set(f,this)}else{this.styleTag=f.createElement("style"),o&&this.styleTag.setAttribute("nonce",o);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[fse]=this}mount(e){let o=this.sheet,f=0,E=0;for(let d=0;d-1&&(this.modules.splice(n,1),E--,n=-1),n==-1){if(this.modules.splice(E++,0,s),o)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},JTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),eCe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var sg=0;sg<10;sg++)x4[48+sg]=x4[96+sg]=String(sg);for(var sg=1;sg<=24;sg++)x4[sg+111]="F"+sg;for(var sg=65;sg<=90;sg++)x4[sg]=String.fromCharCode(sg+32),TI[sg]=String.fromCharCode(sg);for(var Aie in x4)TI.hasOwnProperty(Aie)||(TI[Aie]=x4[Aie]);function tCe(t){var e=JTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||eCe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",o=!e&&t.key||(t.shiftKey?TI:x4)[t.keyCode]||t.key||"Unidentified";return o=="Esc"&&(o="Escape"),o=="Del"&&(o="Delete"),o=="Left"&&(o="ArrowLeft"),o=="Up"&&(o="ArrowUp"),o=="Right"&&(o="ArrowRight"),o=="Down"&&(o="ArrowDown"),o}function zH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function dse(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function nCe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function cH(t,e){if(!e.anchorNode)return!1;try{return dse(t,e.anchorNode)}catch{return!1}}function cM(t){return t.nodeType==3?WT(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function NH(t,e,o,f){return o?ope(t,e,o,f,-1)||ope(t,e,o,f,1):!1}function CI(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function ope(t,e,o,f,E){for(;;){if(t==o&&e==f)return!0;if(e==(E<0?0:PO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=CI(t)+(E<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(E<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=E<0?PO(t):0}else return!1}}function PO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function qZ(t,e){let o=e?t.left:t.right;return{left:o,right:o,top:t.top,bottom:t.bottom}}function rCe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function oCe(t,e,o,f,E,d,s,n){let u=t.ownerDocument,b=u.defaultView||window;for(let i=t,S=!1;i&&!S;)if(i.nodeType==1){let w,y=i==u.body,m=1,a=1;if(y)w=rCe(b);else{if(/^(fixed|sticky)$/.test(getComputedStyle(i).position)&&(S=!0),i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth){i=i.assignedSlot||i.parentNode;continue}let p=i.getBoundingClientRect();m=p.width/i.offsetWidth,a=p.height/i.offsetHeight,w={left:p.left,right:p.left+i.clientWidth*m,top:p.top,bottom:p.top+i.clientHeight*a}}let c=0,h=0;if(E=="nearest")e.top0&&e.bottom>w.bottom+h&&(h=e.bottom-w.bottom+h+s)):e.bottom>w.bottom&&(h=e.bottom-w.bottom+s,o<0&&e.top-h0&&e.right>w.right+c&&(c=e.right-w.right+c+d)):e.right>w.right&&(c=e.right-w.right+d,o<0&&e.lefto.clientHeight||o.scrollWidth>o.clientWidth)return o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11)o=o.host;else break;return null}class aCe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:o,focusNode:f}=e;this.set(o,Math.min(e.anchorOffset,o?PO(o):0),f,Math.min(e.focusOffset,f?PO(f):0))}set(e,o,f,E){this.anchorNode=e,this.anchorOffset=o,this.focusNode=f,this.focusOffset=E}}let A8=null;function vye(t){if(t.setActive)return t.setActive();if(A8)return t.focus(A8);let e=[];for(let o=t;o&&(e.push(o,o.scrollTop,o.scrollLeft),o!=o.ownerDocument);o=o.parentNode);if(t.focus(A8==null?{get preventScroll(){return A8={preventScroll:!0},!0}}:void 0),!A8){A8=!1;for(let o=0;oMath.max(1,t.scrollHeight-t.clientHeight-4)}class Gg{constructor(e,o,f=!0){this.node=e,this.offset=o,this.precise=f}static before(e,o){return new Gg(e.parentNode,CI(e),o)}static after(e,o){return new Gg(e.parentNode,CI(e)+1,o)}}const Sce=[];class eh{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let o=this.posAtStart;for(let f of this.children){if(f==e)return o;o+=f.length+f.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,o){if(this.flags&2){let f=this.dom,E=null,d;for(let s of this.children){if(s.flags&7){if(!s.dom&&(d=E?E.nextSibling:f.firstChild)){let n=eh.get(d);(!n||!n.parent&&n.canReuseDOM(s))&&s.reuseDOM(d)}s.sync(e,o),s.flags&=-8}if(d=E?E.nextSibling:f.firstChild,o&&!o.written&&o.node==f&&d!=s.dom&&(o.written=!0),s.dom.parentNode==f)for(;d&&d!=s.dom;)d=ape(d);else f.insertBefore(s.dom,d);E=s.dom}for(d=E?E.nextSibling:f.firstChild,d&&o&&o.node==f&&(o.written=!0);d;)d=ape(d)}else if(this.flags&1)for(let f of this.children)f.flags&7&&(f.sync(e,o),f.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,o){let f;if(e==this.dom)f=this.dom.childNodes[o];else{let E=PO(e)==0?0:o==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;E==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?E=-1:E=1),e=d}E<0?f=e:f=e.nextSibling}if(f==this.dom.firstChild)return 0;for(;f&&!eh.get(f);)f=f.nextSibling;if(!f)return this.length;for(let E=0,d=0;;E++){let s=this.children[E];if(s.dom==f)return d;d+=s.length+s.breakAfter}}domBoundsAround(e,o,f=0){let E=-1,d=-1,s=-1,n=-1;for(let u=0,b=f,i=f;uo)return S.domBoundsAround(e,o,b);if(w>=e&&E==-1&&(E=u,d=b),b>o&&S.dom.parentNode==this.dom){s=u,n=i;break}i=w,b=w+S.breakAfter}return{from:d,to:n<0?f+this.length:n,startDOM:(E?this.children[E-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let o=this.parent;o;o=o.parent){if(e&&(o.flags|=2),o.flags&1)return;o.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let o=e.parent;if(!o)return e;e=o}}replaceChildren(e,o,f=Sce){this.markDirty();for(let E=e;Ethis.pos||e==this.pos&&(o>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let f=this.children[--this.i];this.pos-=f.length+f.breakAfter}}}function _ye(t,e,o,f,E,d,s,n,u){let{children:b}=t,i=b.length?b[e]:null,S=d.length?d[d.length-1]:null,w=S?S.breakAfter:s;if(!(e==f&&i&&!s&&!w&&d.length<2&&i.merge(o,E,d.length?S:null,o==0,n,u))){if(f0&&(!s&&d.length&&i.merge(o,i.length,d[0],!1,n,0)?i.breakAfter=d.shift().breakAfter:(o2);var xs={mac:cpe||/Mac/.test(Yv.platform),windows:/Win/.test(Yv.platform),linux:/Linux|X11/.test(Yv.platform),ie:WZ,ie_version:Oye?hse.documentMode||6:mse?+mse[1]:pse?+pse[1]:0,gecko:spe,gecko_version:spe?+(/Firefox\/(\d+)/.exec(Yv.userAgent)||[0,0])[1]:0,chrome:!!Mie,chrome_version:Mie?+Mie[1]:0,ios:cpe,android:/Android\b/.test(Yv.userAgent),webkit:lpe,safari:Sye,webkit_version:lpe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:hse.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const cCe=256;class RO extends eh{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,o){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(o&&o.node==this.dom&&(o.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,o,f){return this.flags&8||f&&(!(f instanceof RO)||this.length-(o-e)+f.length>cCe||f.flags&8)?!1:(this.text=this.text.slice(0,e)+(f?f.text:"")+this.text.slice(o),this.markDirty(),!0)}split(e){let o=new RO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),o.flags|=this.flags&8,o}localPosFromDOM(e,o){return e==this.dom?o:o?this.text.length:0}domAtPos(e){return new Gg(this.dom,e)}domBoundsAround(e,o,f){return{from:f,to:f+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,o){return uCe(this.dom,e,o)}}class LO extends eh{constructor(e,o=[],f=0){super(),this.mark=e,this.children=o,this.length=f;for(let E of o)E.setParent(this)}setAttrs(e){if(yye(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let o in this.mark.attrs)e.setAttribute(o,this.mark.attrs[o]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,o){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,o)}merge(e,o,f,E,d,s){return f&&(!(f instanceof LO&&f.mark.eq(this.mark))||e&&d<=0||oe&&o.push(f=e&&(E=d),f=u,d++}let s=this.length-e;return this.length=e,E>-1&&(this.children.length=E,this.markDirty()),new LO(this.mark,o,s)}domAtPos(e){return kye(this,e)}coordsAt(e,o){return Cye(this,e,o)}}function uCe(t,e,o){let f=t.nodeValue.length;e>f&&(e=f);let E=e,d=e,s=0;e==0&&o<0||e==f&&o>=0?xs.chrome||xs.gecko||(e?(E--,s=1):d=0)?0:n.length-1];return xs.safari&&!s&&u.width==0&&(u=Array.prototype.find.call(n,b=>b.width)||u),s?qZ(u,s<0):u||null}class l4 extends eh{static create(e,o,f){return new l4(e,o,f)}constructor(e,o,f){super(),this.widget=e,this.length=o,this.side=f,this.prevWidget=null}split(e){let o=l4.create(this.widget,this.length-e,this.side);return this.length-=e,o}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,o,f,E,d,s){return f&&(!(f instanceof l4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0)?Gg.before(this.dom):Gg.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,o){let f=this.widget.coordsAt(this.dom,e,o);if(f)return f;let E=this.dom.getClientRects(),d=null;if(!E.length)return null;let s=this.side?this.side<0:e>0;for(let n=s?E.length-1:0;d=E[n],!(e>0?n==0:n==E.length-1||d.top0?Gg.before(this.dom):Gg.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Qu.empty}get isHidden(){return!0}}RO.prototype.children=l4.prototype.children=uM.prototype.children=Sce;function kye(t,e){let o=t.dom,{children:f}=t,E=0;for(let d=0;Ed&&e0;d--){let s=f[d-1];if(s.dom.parentNode==o)return s.domAtPos(s.length)}for(let d=E;d0&&e instanceof LO&&E.length&&(f=E[E.length-1])instanceof LO&&f.mark.eq(e.mark)?Tye(f,e.children[0],o-1):(E.push(e),e.setParent(t)),t.length+=e.length}function Cye(t,e,o){let f=null,E=-1,d=null,s=-1;function n(b,i){for(let S=0,w=0;S=i&&(y.children.length?n(y,i-w):(!d||d.isHidden&&o>0)&&(m>i||w==m&&y.getSide()>0)?(d=y,s=i-w):(w-1?1:0)!=E.length-(o&&E.indexOf(o)>-1?1:0))return!1;for(let d of f)if(d!=o&&(E.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function vse(t,e,o){let f=!1;if(e)for(let E in e)o&&E in o||(f=!0,E=="style"?t.style.cssText="":t.removeAttribute(E));if(o)for(let E in o)e&&e[E]==o[E]||(f=!0,E=="style"?t.style.cssText=o[E]:t.setAttribute(E,o[E]));return f}function dCe(t){let e=Object.create(null);for(let o=0;o0&&this.children[f-1].length==0;)this.children[--f].destroy();return this.children.length=f,this.markDirty(),this.length=e,o}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){kce(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,o){Tye(this,e,o)}addLineDeco(e){let o=e.spec.attributes,f=e.spec.class;o&&(this.attrs=gse(o,this.attrs||{})),f&&(this.attrs=gse({class:f},this.attrs||{}))}domAtPos(e){return kye(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,o){var f;this.dom?this.flags&4&&(yye(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(vse(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,o);let E=this.dom.lastChild;for(;E&&eh.get(E)instanceof LO;)E=E.lastChild;if(!E||!this.length||E.nodeName!="BR"&&((f=eh.get(E))===null||f===void 0?void 0:f.isEditable)==!1&&(!xs.ios||!this.children.some(d=>d instanceof RO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,o;for(let f of this.children){if(!(f instanceof RO)||/[^ -~]/.test(f.text))return null;let E=cM(f.dom);if(E.length!=1)return null;e+=E[0].width,o=E[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:o}:null}coordsAt(e,o){let f=Cye(this,e,o);if(!this.children.length&&f&&this.parent){let{heightOracle:E}=this.parent.view.viewState,d=f.bottom-f.top;if(Math.abs(d-E.lineHeight)<2&&E.textHeight=o){if(d instanceof qp)return d;if(s>o)break}E=s+d.breakAfter}return null}}class p4 extends eh{constructor(e,o,f){super(),this.widget=e,this.length=o,this.deco=f,this.breakAfter=0,this.prevWidget=null}merge(e,o,f,E,d,s){return f&&(!(f instanceof p4)||!this.widget.compare(f.widget)||e>0&&d<=0||o0}}class Ex{eq(e){return!1}updateDOM(e,o){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,o,f){return null}get isHidden(){return!1}destroy(e){}}var q0=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(q0||(q0={}));class Ns extends qT{constructor(e,o,f,E){super(),this.startSide=e,this.endSide=o,this.widget=f,this.spec=E}get heightRelevant(){return!1}static mark(e){return new uD(e)}static widget(e){let o=Math.max(-1e4,Math.min(1e4,e.side||0)),f=!!e.block;return o+=f&&!e.inlineOrder?o>0?3e8:-4e8:o>0?1e8:-1e8,new _4(e,o,o,f,e.widget||null,!1)}static replace(e){let o=!!e.block,f,E;if(e.isBlockGap)f=-5e8,E=4e8;else{let{start:d,end:s}=Aye(e,o);f=(d?o?-3e8:-1:5e8)-1,E=(s?o?2e8:1:-6e8)+1}return new _4(e,f,E,o,e.widget||null,!0)}static line(e){return new fD(e)}static set(e,o=!1){return Df.of(e,o)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ns.none=Df.empty;class uD extends Ns{constructor(e){let{start:o,end:f}=Aye(e);super(o?-1:5e8,f?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var o,f;return this==e||e instanceof uD&&this.tagName==e.tagName&&(this.class||((o=this.attrs)===null||o===void 0?void 0:o.class))==(e.class||((f=e.attrs)===null||f===void 0?void 0:f.class))&&kce(this.attrs,e.attrs,"class")}range(e,o=e){if(e>=o)throw new RangeError("Mark decorations may not be empty");return super.range(e,o)}}uD.prototype.point=!1;class fD extends Ns{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof fD&&this.spec.class==e.spec.class&&kce(this.spec.attributes,e.spec.attributes)}range(e,o=e){if(o!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,o)}}fD.prototype.mapMode=lg.TrackBefore;fD.prototype.point=!0;class _4 extends Ns{constructor(e,o,f,E,d,s){super(o,f,d,e),this.block=E,this.isReplace=s,this.mapMode=E?o<=0?lg.TrackBefore:lg.TrackAfter:lg.TrackDel}get type(){return this.startSide!=this.endSide?q0.WidgetRange:this.startSide<=0?q0.WidgetBefore:q0.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _4&&hCe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,o=e){if(this.isReplace&&(e>o||e==o&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&o!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,o)}}_4.prototype.point=!0;function Aye(t,e=!1){let{inclusiveStart:o,inclusiveEnd:f}=t;return o==null&&(o=t.inclusive),f==null&&(f=t.inclusive),{start:o??e,end:f??e}}function hCe(t,e){return t==e||!!(t&&e&&t.compare(e))}function yse(t,e,o,f=0){let E=o.length-1;E>=0&&o[E]+f>=t?o[E]=Math.max(o[E],e):o.push(t,e)}class aI{constructor(e,o,f,E){this.doc=e,this.pos=o,this.end=f,this.disallowBlockEffectsFor=E,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=o}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof p4&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new qp),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(wQ(new uM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof p4)&&this.getLine()}buildText(e,o,f){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:s,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let E=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(o.slice(o.length-f)),this.getLine().append(wQ(new RO(this.text.slice(this.textOff,this.textOff+E)),o),f),this.atCursorPos=!0,this.textOff+=E,e-=E,f=0}}span(e,o,f,E){this.buildText(o-e,f,E),this.pos=o,this.openStart<0&&(this.openStart=E)}point(e,o,f,E,d,s){if(this.disallowBlockEffectsFor[s]&&f instanceof _4){if(f.block)throw new RangeError("Block decorations may not be specified via plugins");if(o>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let n=o-e;if(f instanceof _4)if(f.block)f.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new p4(f.widget||new fpe("div"),n,f));else{let u=l4.create(f.widget||new fpe("span"),n,n?0:f.startSide),b=this.atCursorPos&&!u.isEditable&&d<=E.length&&(e0),i=!u.isEditable&&(eE.length||f.startSide<=0),S=this.getLine();this.pendingBuffer==2&&!b&&!u.isEditable&&(this.pendingBuffer=0),this.flushBuffer(E),b&&(S.append(wQ(new uM(1),E),d),d=E.length+Math.max(0,d-E.length)),S.append(wQ(u,E),d),this.atCursorPos=i,this.pendingBuffer=i?eE.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=E.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(f);n&&(this.textOff+n<=this.text.length?this.textOff+=n:(this.skip+=n-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=o),this.openStart<0&&(this.openStart=d)}static build(e,o,f,E,d){let s=new aI(e,o,f,d);return s.openEnd=Df.spans(E,o,f,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function wQ(t,e){for(let o of e)t=new LO(o,[t],t.length);return t}class fpe extends Ex{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Mye=ls.define(),Eye=ls.define(),Pye=ls.define(),Rye=ls.define(),bse=ls.define(),Lye=ls.define(),Iye=ls.define(),Dye=ls.define({combine:t=>t.some(e=>e)}),Bye=ls.define({combine:t=>t.some(e=>e)});class G8{constructor(e,o="nearest",f="nearest",E=5,d=5,s=!1){this.range=e,this.y=o,this.x=f,this.yMargin=E,this.xMargin=d,this.isSnapshot=s}map(e){return e.empty?this:new G8(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new G8(hi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const OQ=Ql.define({map:(t,e)=>t.map(e)});function ey(t,e,o){let f=t.facet(Rye);f.length?f[0](e):window.onerror?window.onerror(String(e),o,void 0,void 0,e):o?console.error(o+":",e):console.error(e)}const YZ=ls.define({combine:t=>t.length?t[0]:!0});let pCe=0;const HL=ls.define();class bh{constructor(e,o,f,E,d){this.id=e,this.create=o,this.domEventHandlers=f,this.domEventObservers=E,this.extension=d(this)}static define(e,o){const{eventHandlers:f,eventObservers:E,provide:d,decorations:s}=o||{};return new bh(pCe++,e,f,E,n=>{let u=[HL.of(n)];return s&&u.push(AI.of(b=>{let i=b.plugin(n);return i?s(i):Ns.none})),d&&u.push(d(n)),u})}static fromClass(e,o){return bh.define(f=>new e(f),o)}}class Eie{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let o=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(o)}catch(f){if(ey(o.state,f,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(o){ey(e.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var o;if(!((o=this.value)===null||o===void 0)&&o.destroy)try{this.value.destroy()}catch(f){ey(e.state,f,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const zye=ls.define(),Tce=ls.define(),AI=ls.define(),Cce=ls.define(),Nye=ls.define();function dpe(t,e,o){let f=t.state.facet(Nye);if(!f.length)return f;let E=f.map(s=>s instanceof Function?s(t):s),d=[];return Df.spans(E,e,o,{point(){},span(s,n,u,b){let i=d;for(let S=u.length-1;S>=0;S--,b--){let w=u[S].spec.bidiIsolate,y;if(w!=null)if(b>0&&i.length&&(y=i[i.length-1]).to==s&&y.direction==w)y.to=n,i=y.inner;else{let m={from:s,to:n,direction:w,inner:[]};i.push(m),i=m.inner}}}}),d}const Fye=ls.define();function $ye(t){let e=0,o=0,f=0,E=0;for(let d of t.state.facet(Fye)){let s=d(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(o=Math.max(o,s.right)),s.top!=null&&(f=Math.max(f,s.top)),s.bottom!=null&&(E=Math.max(E,s.bottom)))}return{left:e,right:o,top:f,bottom:E}}const ZL=ls.define();class ob{constructor(e,o,f,E){this.fromA=e,this.toA=o,this.fromB=f,this.toB=E}join(e){return new ob(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let o=e.length,f=this;for(;o>0;o--){let E=e[o-1];if(!(E.fromA>f.toA)){if(E.toAi)break;d+=2}if(!u)return f;new ob(u.fromA,u.toA,u.fromB,u.toB).addToSet(f),s=u.toA,n=u.toB}}}class FH{constructor(e,o,f){this.view=e,this.state=o,this.transactions=f,this.flags=0,this.startState=e.state,this.changes=Wp.empty(this.startState.doc.length);for(let d of f)this.changes=this.changes.compose(d.changes);let E=[];this.changes.iterChangedRanges((d,s,n,u)=>E.push(new ob(d,s,n,u))),this.changedRanges=E}static create(e,o,f){return new FH(e,o,f)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var zh=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(zh||(zh={}));const MI=zh.LTR,Vye=zh.RTL;function Uye(t){let e=[];for(let o=0;o=o){if(n.level==f)return s;(d<0||(E!=0?E<0?n.fromo:e[d].level>n.level))&&(d=s)}}if(d<0)throw new RangeError("Index out of range");return d}}function jye(t,e){if(t.length!=e.length)return!1;for(let o=0;o=0;a-=3)if(u_[a+1]==-y){let c=u_[a+2],h=c&2?E:c&4?c&1?d:E:0;h&&(hd[S]=hd[u_[a]]=h),n=a;break}}else{if(u_.length==189)break;u_[n++]=S,u_[n++]=w,u_[n++]=u}else if((m=hd[S])==2||m==1){let a=m==E;u=a?0:1;for(let c=n-3;c>=0;c-=3){let h=u_[c+2];if(h&2)break;if(a)u_[c+2]|=2;else{if(h&4)break;u_[c+2]|=4}}}}}function _Ce(t,e,o,f){for(let E=0,d=f;E<=o.length;E++){let s=E?o[E-1].to:t,n=Eu;)m==c&&(m=o[--a].from,c=a?o[a-1].to:t),hd[--m]=y;u=i}else d=b,u++}}}function _se(t,e,o,f,E,d,s){let n=f%2?2:1;if(f%2==E%2)for(let u=e,b=0;uu&&s.push(new c4(u,a.from,y));let c=a.direction==MI!=!(y%2);wse(t,c?f+1:f,E,a.inner,a.from,a.to,s),u=a.to}m=a.to}else{if(m==o||(i?hd[m]!=n:hd[m]==n))break;m++}w?_se(t,u,m,f+1,E,w,s):ue;){let i=!0,S=!1;if(!b||u>d[b-1].to){let a=hd[u-1];a!=n&&(i=!1,S=a==16)}let w=!i&&n==1?[]:null,y=i?f:f+1,m=u;e:for(;;)if(b&&m==d[b-1].to){if(S)break e;let a=d[--b];if(!i)for(let c=a.from,h=b;;){if(c==e)break e;if(h&&d[h-1].to==c)c=d[--h].from;else{if(hd[c-1]==n)break e;break}}if(w)w.push(a);else{a.tohd.length;)hd[hd.length]=256;let f=[],E=e==MI?0:1;return wse(t,E,E,o,0,t.length,f),f}function Qye(t){return[new c4(0,t,0)]}let Hye="";function OCe(t,e,o,f,E){var d;let s=f.head-t.from,n=-1;if(s==0){if(!E||!t.length)return null;e[0].level!=o&&(s=e[0].side(!1,o),n=0)}else if(s==t.length){if(E)return null;let w=e[e.length-1];w.level!=o&&(s=w.side(!0,o),n=e.length-1)}n<0&&(n=c4.find(e,s,(d=f.bidiLevel)!==null&&d!==void 0?d:-1,f.assoc));let u=e[n];s==u.side(E,o)&&(u=e[n+=E?1:-1],s=u.side(!E,o));let b=E==(u.dir==o),i=cg(t.text,s,b);if(Hye=t.text.slice(Math.min(s,i),Math.max(s,i)),i!=u.side(E,o))return hi.cursor(i+t.from,b?-1:1,u.level);let S=n==(E?e.length-1:0)?null:e[n+(E?1:-1)];return!S&&u.level!=o?hi.cursor(E?t.to:t.from,E?-1:1,o):S&&S.level0&&f.length&&(f.every(({fromA:b,toA:i})=>ithis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let E=-1;this.view.inputState.composing>=0&&(!((o=this.domChanged)===null||o===void 0)&&o.newSel?E=this.domChanged.newSel.head:!ECe(e.changes,this.hasComposition)&&!e.selectionSet&&(E=e.state.selection.main.head));let d=E>-1?kCe(this.view,e.changes,E):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:b,to:i}=this.hasComposition;f=new ob(b,i,e.changes.mapPos(b,-1),e.changes.mapPos(i,1)).addToSet(f.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(xs.ie||xs.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,n=this.updateDeco(),u=ACe(s,n,e.changes);return f=ob.extendWithRanges(f,u),!(this.flags&7)&&f.length==0?!1:(this.updateInner(f,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,o,f){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,o,f);let{observer:E}=this.view;E.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=xs.chrome||xs.ios?{node:E.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||E.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?E[s]:null;if(!n)break;let{fromA:u,toA:b,fromB:i,toB:S}=n,w,y,m,a;if(f&&f.range.fromBi){let _=aI.build(this.view.state.doc,i,f.range.fromB,this.decorations,this.dynamicDecorationMap),O=aI.build(this.view.state.doc,f.range.toB,S,this.decorations,this.dynamicDecorationMap);y=_.breakAtStart,m=_.openStart,a=O.openEnd;let C=this.compositionView(f);O.breakAtStart?C.breakAfter=1:O.content.length&&C.merge(C.length,C.length,O.content[0],!1,O.openStart,0)&&(C.breakAfter=O.content[0].breakAfter,O.content.shift()),_.content.length&&C.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),w=_.content.concat(C).concat(O.content)}else({content:w,breakAtStart:y,openStart:m,openEnd:a}=aI.build(this.view.state.doc,i,S,this.decorations,this.dynamicDecorationMap));let{i:c,off:h}=d.findPos(b,1),{i:p,off:v}=d.findPos(u,-1);_ye(this,p,v,c,h,w,y,m,a)}f&&this.fixCompositionDOM(f)}compositionView(e){let o=new RO(e.text.nodeValue);o.flags|=8;for(let{deco:E}of e.marks)o=new LO(E,[o],o.length);let f=new qp;return f.append(o,0),f}fixCompositionDOM(e){let o=(d,s)=>{s.flags|=8|(s.children.some(u=>u.flags&7)?1:0),this.markedForComposition.add(s);let n=eh.get(d);n&&n!=s&&(n.dom=null),s.setDOM(d)},f=this.childPos(e.range.fromB,1),E=this.children[f.i];o(e.line,E);for(let d=e.marks.length-1;d>=-1;d--)f=E.childPos(f.off,1),E=E.children[f.i],o(d>=0?e.marks[d].node:e.text,E)}updateSelection(e=!1,o=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let f=this.view.root.activeElement,E=f==this.dom,d=!E&&cH(this.dom,this.view.observer.selectionRange)&&!(f&&this.dom.contains(f));if(!(E||o||d))return;let s=this.forceSelection;this.forceSelection=!1;let n=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(n.anchor)),b=n.empty?u:this.moveToLine(this.domAtPos(n.head));if(xs.gecko&&n.empty&&!this.hasComposition&&SCe(u)){let S=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(S,u.node.childNodes[u.offset]||null)),u=b=new Gg(S,0),s=!0}let i=this.view.observer.selectionRange;(s||!i.focusNode||!NH(u.node,u.offset,i.anchorNode,i.anchorOffset)||!NH(b.node,b.offset,i.focusNode,i.focusOffset))&&(this.view.observer.ignore(()=>{xs.android&&xs.chrome&&this.dom.contains(i.focusNode)&&MCe(i.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let S=zH(this.view.root);if(S)if(n.empty){if(xs.gecko){let w=TCe(u.node,u.offset);if(w&&w!=3){let y=qye(u.node,u.offset,w==1?1:-1);y&&(u=new Gg(y.node,y.offset))}}S.collapse(u.node,u.offset),n.bidiLevel!=null&&S.caretBidiLevel!==void 0&&(S.caretBidiLevel=n.bidiLevel)}else if(S.extend){S.collapse(u.node,u.offset);try{S.extend(b.node,b.offset)}catch{}}else{let w=document.createRange();n.anchor>n.head&&([u,b]=[b,u]),w.setEnd(b.node,b.offset),w.setStart(u.node,u.offset),S.removeAllRanges(),S.addRange(w)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),f&&f.focus())}),this.view.observer.setSelectionRange(u,b)),this.impreciseAnchor=u.precise?null:new Gg(i.anchorNode,i.anchorOffset),this.impreciseHead=b.precise?null:new Gg(i.focusNode,i.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,o=e.state.selection.main,f=zH(e.root),{anchorNode:E,anchorOffset:d}=e.observer.selectionRange;if(!f||!o.empty||!o.assoc||!f.modify)return;let s=qp.find(this,o.head);if(!s)return;let n=s.posAtStart;if(o.head==n||o.head==n+s.length)return;let u=this.coordsAt(o.head,-1),b=this.coordsAt(o.head,1);if(!u||!b||u.bottom>b.top)return;let i=this.domAtPos(o.head+o.assoc);f.collapse(i.node,i.offset),f.modify("move",o.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let S=e.observer.selectionRange;e.docView.posFromDOM(S.anchorNode,S.anchorOffset)!=o.from&&f.collapse(E,d)}moveToLine(e){let o=this.dom,f;if(e.node!=o)return e;for(let E=e.offset;!f&&E=0;E--){let d=eh.get(o.childNodes[E]);d instanceof qp&&(f=d.domAtPos(d.length))}return f?new Gg(f.node,f.offset,!0):e}nearest(e){for(let o=e;o;){let f=eh.get(o);if(f&&f.rootView==this)return f;o=o.parentNode}return null}posFromDOM(e,o){let f=this.nearest(e);if(!f)throw new RangeError("Trying to find position for a DOM position outside of the document");return f.localPosFromDOM(e,o)+f.posAtStart}domAtPos(e){let{i:o,off:f}=this.childCursor().findPos(e,-1);for(;o=0;s--){let n=this.children[s],u=d-n.breakAfter,b=u-n.length;if(ue||n.covers(1))&&(!f||n instanceof qp&&!(f instanceof qp&&o>=0))&&(f=n,E=b),d=b}return f?f.coordsAt(e-E,o):null}coordsForChar(e){let{i:o,off:f}=this.childPos(e,1),E=this.children[o];if(!(E instanceof qp))return null;for(;E.children.length;){let{i:n,off:u}=E.childPos(f,1);for(;;n++){if(n==E.children.length)return null;if((E=E.children[n]).length)break}f=u}if(!(E instanceof RO))return null;let d=cg(E.text,f);if(d==f)return null;let s=WT(E.dom,f,d).getClientRects();for(let n=0;nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,n=-1,u=this.view.textDirection==zh.LTR;for(let b=0,i=0;iE)break;if(b>=f){let y=S.dom.getBoundingClientRect();if(o.push(y.height),s){let m=S.dom.lastChild,a=m?cM(m):[];if(a.length){let c=a[a.length-1],h=u?c.right-y.left:y.right-c.left;h>n&&(n=h,this.minWidth=d,this.minWidthFrom=b,this.minWidthTo=w)}}}b=w+S.breakAfter}return o}textDirectionAt(e){let{i:o}=this.childPos(e,1);return getComputedStyle(this.children[o].dom).direction=="rtl"?zh.RTL:zh.LTR}measureTextSize(){for(let d of this.children)if(d instanceof qp){let s=d.measureTextSize();if(s)return s}let e=document.createElement("div"),o,f,E;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=cM(e.firstChild)[0];o=e.getBoundingClientRect().height,f=d?d.width/27:7,E=d?d.height:o,e.remove()}),{lineHeight:o,charWidth:f,textHeight:E}}childCursor(e=this.length){let o=this.children.length;return o&&(e-=this.children[--o].length),new xye(this.children,e,o)}computeBlockGapDeco(){let e=[],o=this.view.viewState;for(let f=0,E=0;;E++){let d=E==o.viewports.length?null:o.viewports[E],s=d?d.from-1:this.length;if(s>f){let n=(o.lineBlockAt(s).bottom-o.lineBlockAt(f).top)/this.view.scaleY;e.push(Ns.replace({widget:new ppe(n),block:!0,inclusive:!0,isBlockGap:!0}).range(f,s))}if(!d)break;f=d.to+1}return Ns.set(e)}updateDeco(){let e=this.view.state.facet(AI).map((o,f)=>(this.dynamicDecorationMap[f]=typeof o=="function")?o(this.view):o);for(let o=e.length;oo.anchor?-1:1),E;if(!f)return;!o.empty&&(E=this.coordsAt(o.anchor,o.anchor>o.head?-1:1))&&(f={left:Math.min(f.left,E.left),top:Math.min(f.top,E.top),right:Math.max(f.right,E.right),bottom:Math.max(f.bottom,E.bottom)});let d=$ye(this.view),s={left:f.left-d.left,top:f.top-d.top,right:f.right+d.right,bottom:f.bottom+d.bottom},{offsetWidth:n,offsetHeight:u}=this.view.scrollDOM;oCe(this.view.scrollDOM,s,o.head0)f=f.childNodes[E-1],E=PO(f);else break}if(o>=0)for(let f=t,E=e;;){if(f.nodeType==3)return{node:f,offset:E};if(f.nodeType==1&&E=0)f=f.childNodes[E],E=0;else break}return null}function TCe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{fe.from&&(o=!0)}),o}function PCe(t,e,o=1){let f=t.charCategorizer(e),E=t.doc.lineAt(e),d=e-E.from;if(E.length==0)return hi.cursor(e);d==0?o=1:d==E.length&&(o=-1);let s=d,n=d;o<0?s=cg(E.text,d,!1):n=cg(E.text,d);let u=f(E.text.slice(s,n));for(;s>0;){let b=cg(E.text,s,!1);if(f(E.text.slice(b,s))!=u)break;s=b}for(;nt?e.left-t:Math.max(0,t-e.right)}function LCe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Pie(t,e){return t.tope.top+1}function mpe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ose(t,e,o){let f,E,d,s,n=!1,u,b,i,S;for(let m=t.firstChild;m;m=m.nextSibling){let a=cM(m);for(let c=0;cv||s==v&&d>p){f=m,E=h,d=p,s=v;let _=v?o0?c0)}p==0?o>h.bottom&&(!i||i.bottomh.top)&&(b=m,S=h):i&&Pie(i,h)?i=gpe(i,h.bottom):S&&Pie(S,h)&&(S=mpe(S,h.top))}}if(i&&i.bottom>=o?(f=u,E=i):S&&S.top<=o&&(f=b,E=S),!f)return{node:t,offset:0};let w=Math.max(E.left,Math.min(E.right,e));if(f.nodeType==3)return vpe(f,w,o);if(n&&f.contentEditable!="false")return Ose(f,w,o);let y=Array.prototype.indexOf.call(t.childNodes,f)+(e>=(E.left+E.right)/2?1:0);return{node:t,offset:y}}function vpe(t,e,o){let f=t.nodeValue.length,E=-1,d=1e9,s=0;for(let n=0;no?i.top-o:o-i.bottom)-1;if(i.left-1<=e&&i.right+1>=e&&S=(i.left+i.right)/2,y=w;if((xs.chrome||xs.gecko)&&WT(t,n).getBoundingClientRect().left==i.right&&(y=!w),S<=0)return{node:t,offset:n+(y?1:0)};E=n+(y?1:0),d=S}}}return{node:t,offset:E>-1?E:s>0?t.nodeValue.length:0}}function Wye(t,e,o,f=-1){var E,d;let s=t.contentDOM.getBoundingClientRect(),n=s.top+t.viewState.paddingTop,u,{docHeight:b}=t.viewState,{x:i,y:S}=e,w=S-n;if(w<0)return 0;if(w>b)return t.state.doc.length;for(let _=t.viewState.heightOracle.textHeight/2,O=!1;u=t.elementAtHeight(w),u.type!=q0.Text;)for(;w=f>0?u.bottom+_:u.top-_,!(w>=0&&w<=b);){if(O)return o?null:0;O=!0,f=-f}S=n+w;let y=u.from;if(yt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:o?null:ype(t,s,u,i,S);let m=t.dom.ownerDocument,a=t.root.elementFromPoint?t.root:m,c=a.elementFromPoint(i,S);c&&!t.contentDOM.contains(c)&&(c=null),c||(i=Math.max(s.left+1,Math.min(s.right-1,i)),c=a.elementFromPoint(i,S),c&&!t.contentDOM.contains(c)&&(c=null));let h,p=-1;if(c&&((E=t.docView.nearest(c))===null||E===void 0?void 0:E.isEditable)!=!1){if(m.caretPositionFromPoint){let _=m.caretPositionFromPoint(i,S);_&&({offsetNode:h,offset:p}=_)}else if(m.caretRangeFromPoint){let _=m.caretRangeFromPoint(i,S);_&&({startContainer:h,startOffset:p}=_,(!t.contentDOM.contains(h)||xs.safari&&ICe(h,p,i)||xs.chrome&&DCe(h,p,i))&&(h=void 0))}}if(!h||!t.docView.dom.contains(h)){let _=qp.find(t.docView,y);if(!_)return w>u.top+u.height/2?u.to:u.from;({node:h,offset:p}=Ose(_.dom,i,S))}let v=t.docView.nearest(h);if(!v)return null;if(v.isWidget&&((d=v.dom)===null||d===void 0?void 0:d.nodeType)==1){let _=v.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(h,p)+v.posAtStart}function ype(t,e,o,f,E){let d=Math.round((f-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&o.height>t.defaultLineHeight*1.5){let n=t.viewState.heightOracle.textHeight,u=Math.floor((E-o.top-(t.defaultLineHeight-n)*.5)/n);d+=u*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(o.from,o.to);return o.from+cse(s,d,t.state.tabSize)}function ICe(t,e,o){let f;if(t.nodeType!=3||e!=(f=t.nodeValue.length))return!1;for(let E=t.nextSibling;E;E=E.nextSibling)if(E.nodeType!=1||E.nodeName!="BR")return!1;return WT(t,f-1,f).getBoundingClientRect().left>o}function DCe(t,e,o){if(e!=0)return!1;for(let E=t;;){let d=E.parentNode;if(!d||d.nodeType!=1||d.firstChild!=E)return!1;if(d.classList.contains("cm-line"))break;E=d}let f=t.nodeType==1?t.getBoundingClientRect():WT(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return o-f.left>5}function Sse(t,e){let o=t.lineBlockAt(e);if(Array.isArray(o.type)){for(let f of o.type)if(f.to>e||f.to==e&&(f.to==o.to||f.type==q0.Text))return f}return o}function BCe(t,e,o,f){let E=Sse(t,e.head),d=!f||E.type!=q0.Text||!(t.lineWrapping||E.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>E.from?e.head-1:e.head);if(d){let s=t.dom.getBoundingClientRect(),n=t.textDirectionAt(E.from),u=t.posAtCoords({x:o==(n==zh.LTR)?s.right-1:s.left+1,y:(d.top+d.bottom)/2});if(u!=null)return hi.cursor(u,o?-1:1)}return hi.cursor(o?E.to:E.from,o?-1:1)}function bpe(t,e,o,f){let E=t.state.doc.lineAt(e.head),d=t.bidiSpans(E),s=t.textDirectionAt(E.from);for(let n=e,u=null;;){let b=OCe(E,d,s,n,o),i=Hye;if(!b){if(E.number==(o?t.state.doc.lines:1))return n;i=` +`,E=t.state.doc.line(E.number+(o?1:-1)),d=t.bidiSpans(E),b=hi.cursor(o?E.from:E.to)}if(u){if(!u(i))return n}else{if(!f)return b;u=f(i)}n=b}}function zCe(t,e,o){let f=t.state.charCategorizer(e),E=f(o);return d=>{let s=f(d);return E==yh.Space&&(E=s),E==s}}function NCe(t,e,o,f){let E=e.head,d=o?1:-1;if(E==(o?t.state.doc.length:0))return hi.cursor(E,e.assoc);let s=e.goalColumn,n,u=t.contentDOM.getBoundingClientRect(),b=t.coordsAtPos(E,e.assoc||-1),i=t.documentTop;if(b)s==null&&(s=b.left-u.left),n=d<0?b.top:b.bottom;else{let y=t.viewState.lineBlockAt(E);s==null&&(s=Math.min(u.right-u.left,t.defaultCharacterWidth*(E-y.from))),n=(d<0?y.top:y.bottom)+i}let S=u.left+s,w=f??t.viewState.heightOracle.textHeight>>1;for(let y=0;;y+=10){let m=n+(w+y)*d,a=Wye(t,{x:S,y:m},!1,d);if(mu.bottom||(d<0?aE)){let c=t.docView.coordsForChar(a),h=!c||m{if(e>d&&eE(t)),o.from,e.head>o.from?-1:1);return f==o.from?o:hi.cursor(f,fnull),xs.gecko&&t6e(e.contentDOM.ownerDocument)}handleEvent(e){!qCe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,o){let f=this.handlers[e];if(f){for(let E of f.observers)E(this.view,o);for(let E of f.handlers){if(o.defaultPrevented)break;if(E(this.view,o)){o.preventDefault();break}}}}ensureHandlers(e){let o=$Ce(e),f=this.handlers,E=this.view.contentDOM;for(let d in o)if(d!="scroll"){let s=!o[d].handlers.length,n=f[d];n&&s!=!n.handlers.length&&(E.removeEventListener(d,this.handleEvent),n=null),n||E.addEventListener(d,this.handleEvent,{passive:s})}for(let d in f)d!="scroll"&&!o[d]&&E.removeEventListener(d,this.handleEvent);this.handlers=o}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()f.keyCode==e.keyCode))&&!e.ctrlKey||VCe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=o||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,X8(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:xs.safari&&!xs.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function xpe(t,e){return(o,f)=>{try{return e.call(t,f,o)}catch(E){ey(o.state,E)}}}function $Ce(t){let e=Object.create(null);function o(f){return e[f]||(e[f]={observers:[],handlers:[]})}for(let f of t){let E=f.spec;if(E&&E.domEventHandlers)for(let d in E.domEventHandlers){let s=E.domEventHandlers[d];s&&o(d).handlers.push(xpe(f.value,s))}if(E&&E.domEventObservers)for(let d in E.domEventObservers){let s=E.domEventObservers[d];s&&o(d).observers.push(xpe(f.value,s))}}for(let f in Tx)o(f).handlers.push(Tx[f]);for(let f in Cx)o(f).observers.push(Cx[f]);return e}const Yye=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],VCe="dthko",Xye=[16,17,18,20,91,92,224,225],SQ=6;function kQ(t){return Math.max(0,t)*.7+8}function UCe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class jCe{constructor(e,o,f,E){this.view=e,this.startEvent=o,this.style=f,this.mustSelect=E,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=o,this.scrollParent=iCe(e.contentDOM),this.atoms=e.state.facet(Cce).map(s=>s(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=o.shiftKey,this.multiple=e.state.facet(kc.allowMultipleSelections)&&QCe(e,o),this.dragging=ZCe(e,o)&&ebe(o)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var o;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&UCe(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let f=0,E=0,d=((o=this.scrollParent)===null||o===void 0?void 0:o.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=$ye(this.view);e.clientX-s.left<=d.left+SQ?f=-kQ(d.left-e.clientX):e.clientX+s.right>=d.right-SQ&&(f=kQ(e.clientX-d.right)),e.clientY-s.top<=d.top+SQ?E=-kQ(d.top-e.clientY):e.clientY+s.bottom>=d.bottom-SQ&&(E=kQ(e.clientY-d.bottom)),this.setScrollSpeed(f,E)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,o){this.scrollSpeed={x:e,y:o},e||o?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let o=null;for(let f=0;fthis.select(this.lastEvent),20)}}function QCe(t,e){let o=t.state.facet(Mye);return o.length?o[0](e):xs.mac?e.metaKey:e.ctrlKey}function HCe(t,e){let o=t.state.facet(Eye);return o.length?o[0](e):xs.mac?!e.altKey:!e.ctrlKey}function ZCe(t,e){let{main:o}=t.state.selection;if(o.empty)return!1;let f=zH(t.root);if(!f||f.rangeCount==0)return!0;let E=f.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function qCe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let o=e.target,f;o!=t.contentDOM;o=o.parentNode)if(!o||o.nodeType==11||(f=eh.get(o))&&f.ignoreEvent(e))return!1;return!0}const Tx=Object.create(null),Cx=Object.create(null),Gye=xs.ie&&xs.ie_version<15||xs.ios&&xs.webkit_version<604;function WCe(t){let e=t.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus(),setTimeout(()=>{t.focus(),o.remove(),Kye(t,o.value)},50)}function Kye(t,e){let{state:o}=t,f,E=1,d=o.toText(e),s=d.lines==o.selection.ranges.length;if(kse!=null&&o.selection.ranges.every(u=>u.empty)&&kse==d.toString()){let u=-1;f=o.changeByRange(b=>{let i=o.doc.lineAt(b.from);if(i.from==u)return{range:b};u=i.from;let S=o.toText((s?d.line(E++).text:e)+o.lineBreak);return{changes:{from:i.from,insert:S},range:hi.cursor(b.from+S.length)}})}else s?f=o.changeByRange(u=>{let b=d.line(E++);return{changes:{from:u.from,to:u.to,insert:b.text},range:hi.cursor(u.from+b.length)}}):f=o.replaceSelection(d);t.dispatch(f,{userEvent:"input.paste",scrollIntoView:!0})}Cx.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Tx.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);Cx.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Cx.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Tx.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let o=null;for(let f of t.state.facet(Pye))if(o=f(t,e),o)break;if(!o&&e.button==0&&(o=GCe(t,e)),o){let f=!t.hasFocus;t.inputState.startMouseSelection(new jCe(t,e,o,f)),f&&t.observer.ignore(()=>vye(t.contentDOM));let E=t.inputState.mouseSelection;if(E)return E.start(e),E.dragging===!1}return!1};function _pe(t,e,o,f){if(f==1)return hi.cursor(e,o);if(f==2)return PCe(t.state,e,o);{let E=qp.find(t.docView,e),d=t.state.doc.lineAt(E?E.posAtEnd:e),s=E?E.posAtStart:d.from,n=E?E.posAtEnd:d.to;return nt>=e.top&&t<=e.bottom,wpe=(t,e,o)=>Jye(e,o)&&t>=o.left&&t<=o.right;function YCe(t,e,o,f){let E=qp.find(t.docView,e);if(!E)return 1;let d=e-E.posAtStart;if(d==0)return 1;if(d==E.length)return-1;let s=E.coordsAt(d,-1);if(s&&wpe(o,f,s))return-1;let n=E.coordsAt(d,1);return n&&wpe(o,f,n)?1:s&&Jye(f,s)?-1:1}function Ope(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:o,bias:YCe(t,o,e.clientX,e.clientY)}}const XCe=xs.ie&&xs.ie_version<=11;let Spe=null,kpe=0,Tpe=0;function ebe(t){if(!XCe)return t.detail;let e=Spe,o=Tpe;return Spe=t,Tpe=Date.now(),kpe=!e||o>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(kpe+1)%3:1}function GCe(t,e){let o=Ope(t,e),f=ebe(e),E=t.state.selection;return{update(d){d.docChanged&&(o.pos=d.changes.mapPos(o.pos),E=E.map(d.changes))},get(d,s,n){let u=Ope(t,d),b,i=_pe(t,u.pos,u.bias,f);if(o.pos!=u.pos&&!s){let S=_pe(t,o.pos,o.bias,f),w=Math.min(S.from,i.from),y=Math.max(S.to,i.to);i=w1&&(b=KCe(E,u.pos))?b:n?E.addRange(i):hi.create([i])}}}function KCe(t,e){for(let o=0;o=e)return hi.create(t.ranges.slice(0,o).concat(t.ranges.slice(o+1)),t.mainIndex==o?0:t.mainIndex-(t.mainIndex>o?1:0))}return null}Tx.dragstart=(t,e)=>{let{selection:{main:o}}=t.state;if(e.target.draggable){let E=t.docView.nearest(e.target);if(E&&E.isWidget){let d=E.posAtStart,s=d+E.length;(d>=o.to||s<=o.from)&&(o=hi.range(d,s))}}let{inputState:f}=t;return f.mouseSelection&&(f.mouseSelection.dragging=!0),f.draggedContent=o,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(o.from,o.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Tx.dragend=t=>(t.inputState.draggedContent=null,!1);function Cpe(t,e,o,f){if(!o)return;let E=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,s=f&&d&&HCe(t,e)?{from:d.from,to:d.to}:null,n={from:E,insert:o},u=t.state.changes(s?[s,n]:n);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(E,-1),head:u.mapPos(E,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Tx.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let o=e.dataTransfer.files;if(o&&o.length){let f=Array(o.length),E=0,d=()=>{++E==o.length&&Cpe(t,e,f.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(n.result)||(f[s]=n.result),d()},n.readAsText(o[s])}return!0}else{let f=e.dataTransfer.getData("Text");if(f)return Cpe(t,e,f,!0),!0}return!1};Tx.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let o=Gye?null:e.clipboardData;return o?(Kye(t,o.getData("text/plain")||o.getData("text/uri-text")),!0):(WCe(t),!1)};function JCe(t,e){let o=t.dom.parentNode;if(!o)return;let f=o.appendChild(document.createElement("textarea"));f.style.cssText="position: fixed; left: -10000px; top: 10px",f.value=e,f.focus(),f.selectionEnd=e.length,f.selectionStart=0,setTimeout(()=>{f.remove(),t.focus()},50)}function e6e(t){let e=[],o=[],f=!1;for(let E of t.selection.ranges)E.empty||(e.push(t.sliceDoc(E.from,E.to)),o.push(E));if(!e.length){let E=-1;for(let{from:d}of t.selection.ranges){let s=t.doc.lineAt(d);s.number>E&&(e.push(s.text),o.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),E=s.number}f=!0}return{text:e.join(t.lineBreak),ranges:o,linewise:f}}let kse=null;Tx.copy=Tx.cut=(t,e)=>{let{text:o,ranges:f,linewise:E}=e6e(t.state);if(!o&&!E)return!1;kse=E?o:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:f,scrollIntoView:!0,userEvent:"delete.cut"});let d=Gye?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",o),!0):(JCe(t,o),!1)};const tbe=NO.define();function nbe(t,e){let o=[];for(let f of t.facet(Iye)){let E=f(t,e);E&&o.push(E)}return o?t.update({effects:o,annotations:tbe.of(!0)}):null}function rbe(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let o=nbe(t.state,e);o?t.dispatch(o):t.update([])}},10)}Cx.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),rbe(t)};Cx.blur=t=>{t.observer.clearSelectionRange(),rbe(t)};Cx.compositionstart=Cx.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};Cx.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,xs.chrome&&xs.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};Cx.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Tx.beforeinput=(t,e)=>{var o;let f;if(xs.chrome&&xs.android&&(f=Yye.find(E=>E.inputType==e.inputType))&&(t.observer.delayAndroidKey(f.key,f.keyCode),f.key=="Backspace"||f.key=="Delete")){let E=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>E+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Ape=new Set;function t6e(t){Ape.has(t)||(Ape.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Mpe=["pre-wrap","normal","pre-line","break-spaces"];class n6e{constructor(e){this.lineWrapping=e,this.doc=Qu.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,o){let f=this.doc.lineAt(o).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(f+=Math.max(0,Math.ceil((o-e-f*this.lineLength*.5)/this.lineLength))),this.lineHeight*f}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Mpe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let o=!1;for(let f=0;f-1,u=Math.round(o)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=o,this.charWidth=f,this.textHeight=E,this.lineLength=d,u){this.heightSamples={};for(let b=0;b0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,o){this.height!=o&&(Math.abs(this.height-o)>fH&&(e.heightChanged=!0),this.height=o)}replace(e,o,f){return W0.of(f)}decomposeLeft(e,o){o.push(this)}decomposeRight(e,o){o.push(this)}applyChanges(e,o,f,E){let d=this,s=f.doc;for(let n=E.length-1;n>=0;n--){let{fromA:u,toA:b,fromB:i,toB:S}=E[n],w=d.lineAt(u,Kd.ByPosNoHeight,f.setDoc(o),0,0),y=w.to>=b?w:d.lineAt(b,Kd.ByPosNoHeight,f,0,0);for(S+=y.to-b,b=y.to;n>0&&w.from<=E[n-1].toA;)u=E[n-1].fromA,i=E[n-1].fromB,n--,ud*2){let n=e[o-1];n.break?e.splice(--o,1,n.left,null,n.right):e.splice(--o,1,n.left,n.right),f+=1+n.break,E-=n.size}else if(d>E*2){let n=e[f];n.break?e.splice(f,1,n.left,null,n.right):e.splice(f,1,n.left,n.right),f+=2+n.break,d-=n.size}else break;else if(E=d&&s(this.blockAt(0,f,E,d))}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more&&this.setHeight(e,E.heights[E.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zv extends obe{constructor(e,o){super(e,o,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,o,f,E){return new y_(E,this.length,f,this.height,this.breaks)}replace(e,o,f){let E=f[0];return f.length==1&&(E instanceof Zv||E instanceof ig&&E.flags&4)&&Math.abs(this.length-E.length)<10?(E instanceof ig?E=new Zv(E.length,this.height):E.height=this.height,this.outdated||(E.outdated=!1),E):W0.of(f)}updateHeight(e,o=0,f=!1,E){return E&&E.from<=o&&E.more?this.setHeight(e,E.heights[E.index++]):(f||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ig extends W0{constructor(e){super(e,0)}heightMetrics(e,o){let f=e.doc.lineAt(o).number,E=e.doc.lineAt(o+this.length).number,d=E-f+1,s,n=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*d);s=u/d,this.length>d+1&&(n=(this.height-u)/(this.length-d-1))}else s=this.height/d;return{firstLine:f,lastLine:E,perLine:s,perChar:n}}blockAt(e,o,f,E){let{firstLine:d,lastLine:s,perLine:n,perChar:u}=this.heightMetrics(o,E);if(o.lineWrapping){let b=E+Math.round(Math.max(0,Math.min(1,(e-f)/this.height))*this.length),i=o.doc.lineAt(b),S=n+i.length*u,w=Math.max(f,e-S/2);return new y_(i.from,i.length,w,S,0)}else{let b=Math.max(0,Math.min(s-d,Math.floor((e-f)/n))),{from:i,length:S}=o.doc.line(d+b);return new y_(i,S,f+n*b,n,0)}}lineAt(e,o,f,E,d){if(o==Kd.ByHeight)return this.blockAt(e,f,E,d);if(o==Kd.ByPosNoHeight){let{from:y,to:m}=f.doc.lineAt(e);return new y_(y,m-y,0,0,0)}let{firstLine:s,perLine:n,perChar:u}=this.heightMetrics(f,d),b=f.doc.lineAt(e),i=n+b.length*u,S=b.number-s,w=E+n*S+u*(b.from-d-S);return new y_(b.from,b.length,Math.max(E,Math.min(w,E+this.height-i)),i,0)}forEachLine(e,o,f,E,d,s){e=Math.max(e,d),o=Math.min(o,d+this.length);let{firstLine:n,perLine:u,perChar:b}=this.heightMetrics(f,d);for(let i=e,S=E;i<=o;){let w=f.doc.lineAt(i);if(i==e){let m=w.number-n;S+=u*m+b*(e-d-m)}let y=u+b*w.length;s(new y_(w.from,w.length,S,y,0)),S+=y,i=w.to+1}}replace(e,o,f){let E=this.length-o;if(E>0){let d=f[f.length-1];d instanceof ig?f[f.length-1]=new ig(d.length+E):f.push(null,new ig(E-1))}if(e>0){let d=f[0];d instanceof ig?f[0]=new ig(e+d.length):f.unshift(new ig(e-1),null)}return W0.of(f)}decomposeLeft(e,o){o.push(new ig(e-1),null)}decomposeRight(e,o){o.push(null,new ig(this.length-e-1))}updateHeight(e,o=0,f=!1,E){let d=o+this.length;if(E&&E.from<=o+this.length&&E.more){let s=[],n=Math.max(o,E.from),u=-1;for(E.from>o&&s.push(new ig(E.from-o-1).updateHeight(e,o));n<=d&&E.more;){let i=e.doc.lineAt(n).length;s.length&&s.push(null);let S=E.heights[E.index++];u==-1?u=S:Math.abs(S-u)>=fH&&(u=-2);let w=new Zv(i,S);w.outdated=!1,s.push(w),n+=i+1}n<=d&&s.push(null,new ig(d-n).updateHeight(e,n));let b=W0.of(s);return(u<0||Math.abs(b.height-this.height)>=fH||Math.abs(u-this.heightMetrics(e,o).perLine)>=fH)&&(e.heightChanged=!0),b}else(f||this.outdated)&&(this.setHeight(e,e.heightForGap(o,o+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class o6e extends W0{constructor(e,o,f){super(e.length+o+f.length,e.height+f.height,o|(e.outdated||f.outdated?2:0)),this.left=e,this.right=f,this.size=e.size+f.size}get break(){return this.flags&1}blockAt(e,o,f,E){let d=f+this.left.height;return en))return b;let i=o==Kd.ByPosNoHeight?Kd.ByPosNoHeight:Kd.ByPos;return u?b.join(this.right.lineAt(n,i,f,s,n)):this.left.lineAt(n,i,f,E,d).join(b)}forEachLine(e,o,f,E,d,s){let n=E+this.left.height,u=d+this.left.length+this.break;if(this.break)e=u&&this.right.forEachLine(e,o,f,n,u,s);else{let b=this.lineAt(u,Kd.ByPos,f,E,d);e=e&&b.from<=o&&s(b),o>b.to&&this.right.forEachLine(b.to+1,o,f,n,u,s)}}replace(e,o,f){let E=this.left.length+this.break;if(othis.left.length)return this.balanced(this.left,this.right.replace(e-E,o-E,f));let d=[];e>0&&this.decomposeLeft(e,d);let s=d.length;for(let n of f)d.push(n);if(e>0&&Epe(d,s-1),o=f&&o.push(null)),e>f&&this.right.decomposeLeft(e-f,o)}decomposeRight(e,o){let f=this.left.length,E=f+this.break;if(e>=E)return this.right.decomposeRight(e-E,o);e2*o.size||o.size>2*e.size?W0.of(this.break?[e,null,o]:[e,o]):(this.left=e,this.right=o,this.height=e.height+o.height,this.outdated=e.outdated||o.outdated,this.size=e.size+o.size,this.length=e.length+this.break+o.length,this)}updateHeight(e,o=0,f=!1,E){let{left:d,right:s}=this,n=o+d.length+this.break,u=null;return E&&E.from<=o+d.length&&E.more?u=d=d.updateHeight(e,o,f,E):d.updateHeight(e,o,f),E&&E.from<=n+s.length&&E.more?u=s=s.updateHeight(e,n,f,E):s.updateHeight(e,n,f),u?this.balanced(d,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Epe(t,e){let o,f;t[e]==null&&(o=t[e-1])instanceof ig&&(f=t[e+1])instanceof ig&&t.splice(e-1,3,new ig(o.length+1+f.length))}const i6e=5;class Ace{constructor(e,o){this.pos=e,this.oracle=o,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,o){if(this.lineStart>-1){let f=Math.min(o,this.lineEnd),E=this.nodes[this.nodes.length-1];E instanceof Zv?E.length+=f-this.pos:(f>this.pos||!this.isCovered)&&this.nodes.push(new Zv(f-this.pos,-1)),this.writtenTo=f,o>f&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=o}point(e,o,f){if(e=i6e)&&this.addLineDeco(E,d,s)}else o>e&&this.span(e,o);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:o}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=o,this.writtenToe&&this.nodes.push(new Zv(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,o){let f=new ig(o-e);return this.oracle.doc.lineAt(e).to==o&&(f.flags|=4),f}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zv)return e;let o=new Zv(0,-1);return this.nodes.push(o),o}addBlock(e){this.enterLine();let o=e.deco;o&&o.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,o&&o.endSide>0&&(this.covering=e)}addLineDeco(e,o,f){let E=this.ensureLine();E.length+=f,E.collapsed+=f,E.widgetHeight=Math.max(E.widgetHeight,e),E.breaks+=o,this.writtenTo=this.pos=this.pos+f}finish(e){let o=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(o instanceof Zv)&&!this.isCovered?this.nodes.push(new Zv(0,-1)):(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&S.overflow!="visible"){let w=i.getBoundingClientRect();d=Math.max(d,w.left),s=Math.min(s,w.right),n=Math.max(n,w.top),u=b==t.parentNode?w.bottom:Math.min(u,w.bottom)}b=S.position=="absolute"||S.position=="fixed"?i.offsetParent:i.parentNode}else if(b.nodeType==11)b=b.host;else break;return{left:d-o.left,right:Math.max(d,s)-o.left,top:n-(o.top+e),bottom:Math.max(n,u)-(o.top+e)}}function c6e(t,e){let o=t.getBoundingClientRect();return{left:0,right:o.right-o.left,top:e,bottom:o.bottom-(o.top+e)}}class Lie{constructor(e,o,f){this.from=e,this.to=o,this.size=f}static same(e,o){if(e.length!=o.length)return!1;for(let f=0;ftypeof f!="function"&&f.class=="cm-lineWrapping");this.heightOracle=new n6e(o),this.stateDeco=e.facet(AI).filter(f=>typeof f!="function"),this.heightMap=W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle.setDoc(e.doc),[new ob(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ns.set(this.lineGaps.map(f=>f.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:o}=this.state.selection;for(let f=0;f<=1;f++){let E=f?o.head:o.anchor;if(!e.some(({from:d,to:s})=>E>=d&&E<=s)){let{from:d,to:s}=this.lineBlockAt(E);e.push(new TQ(d,s))}}this.viewports=e.sort((f,E)=>f.from-E.from),this.scaler=this.heightMap.height<=7e6?Rpe:new h6e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:qL(e,this.scaler))})}update(e,o=null){this.state=e.state;let f=this.stateDeco;this.stateDeco=this.state.facet(AI).filter(i=>typeof i!="function");let E=e.changedRanges,d=ob.extendWithRanges(E,a6e(f,this.stateDeco,e?e.changes:Wp.empty(this.state.doc.length))),s=this.heightMap.height,n=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=s&&(e.flags|=2),n?(this.scrollAnchorPos=e.changes.mapPos(n.from,-1),this.scrollAnchorHeight=n.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let u=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(o&&(o.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,o));let b=!e.changes.empty||e.flags&2||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),b&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),o&&(this.scrollTarget=o),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Bye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let o=e.contentDOM,f=window.getComputedStyle(o),E=this.heightOracle,d=f.whiteSpace;this.defaultTextDirection=f.direction=="rtl"?zh.RTL:zh.LTR;let s=this.heightOracle.mustRefreshForWrapping(d),n=o.getBoundingClientRect(),u=s||this.mustMeasureContent||this.contentDOMHeight!=n.height;this.contentDOMHeight=n.height,this.mustMeasureContent=!1;let b=0,i=0;if(n.width&&n.height){let _=n.width/o.offsetWidth,O=n.height/o.offsetHeight;(_>.995&&_<1.005||!isFinite(_)||Math.abs(n.width-o.offsetWidth)<1)&&(_=1),(O>.995&&O<1.005||!isFinite(O)||Math.abs(n.height-o.offsetHeight)<1)&&(O=1),(this.scaleX!=_||this.scaleY!=O)&&(this.scaleX=_,this.scaleY=O,b|=8,s=u=!0)}let S=(parseInt(f.paddingTop)||0)*this.scaleY,w=(parseInt(f.paddingBottom)||0)*this.scaleY;(this.paddingTop!=S||this.paddingBottom!=w)&&(this.paddingTop=S,this.paddingBottom=w,b|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(E.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,b|=8);let y=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=y&&(this.scrollAnchorHeight=-1,this.scrollTop=y),this.scrolledToBottom=bye(e.scrollDOM);let m=(this.printing?c6e:l6e)(o,this.paddingTop),a=m.top-this.pixelViewport.top,c=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let p=n.width;if((this.contentDOMWidth!=p||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=n.width,this.editorHeight=e.scrollDOM.clientHeight,b|=8),u){let _=e.docView.measureVisibleLineHeights(this.viewport);if(E.mustRefreshForHeights(_)&&(s=!0),s||E.lineWrapping&&Math.abs(p-this.contentDOMWidth)>E.charWidth){let{lineHeight:O,charWidth:C,textHeight:x}=e.docView.measureTextSize();s=O>0&&E.refresh(d,O,C,x,p/C,_),s&&(e.docView.minWidth=0,b|=8)}a>0&&c>0?i=Math.max(a,c):a<0&&c<0&&(i=Math.min(a,c)),E.heightChanged=!1;for(let O of this.viewports){let C=O.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(O);this.heightMap=(s?W0.empty().applyChanges(this.stateDeco,Qu.empty,this.heightOracle,[new ob(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(E,0,s,new r6e(O.from,C))}E.heightChanged&&(b|=2)}let v=!this.viewportIsAppropriate(this.viewport,i)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(i,this.scrollTarget)),this.updateForViewport(),(b&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),b|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),b}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,o){let f=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),E=this.heightMap,d=this.heightOracle,{visibleTop:s,visibleBottom:n}=this,u=new TQ(E.lineAt(s-f*1e3,Kd.ByHeight,d,0,0).from,E.lineAt(n+(1-f)*1e3,Kd.ByHeight,d,0,0).to);if(o){let{head:b}=o.range;if(bu.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),S=E.lineAt(b,Kd.ByPos,d,0,0),w;o.y=="center"?w=(S.top+S.bottom)/2-i/2:o.y=="start"||o.y=="nearest"&&b=n+Math.max(10,Math.min(f,250)))&&E>s-2*1e3&&d>1,s=E<<1;if(this.defaultTextDirection!=zh.LTR&&!f)return[];let n=[],u=(b,i,S,w)=>{if(i-bb&&cc.from>=S.from&&c.to<=S.to&&Math.abs(c.from-b)c.fromh));if(!a){if(ic.from<=i&&c.to>=i)){let c=o.moveToLineBoundary(hi.cursor(i),!1,!0).head;c>b&&(i=c)}a=new Lie(b,i,this.gapSize(S,b,i,w))}n.push(a)};for(let b of this.viewportLines){if(b.lengthb.from&&u(b.from,w,b,i),yo.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];Df.spans(e,this.viewport.from,this.viewport.to,{span(E,d){o.push({from:E,to:d})},point(){}},20);let f=o.length!=this.visibleRanges.length||this.visibleRanges.some((E,d)=>E.from!=o[d].from||E.to!=o[d].to);return this.visibleRanges=o,f?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(o=>o.from<=e&&o.to>=e)||qL(this.heightMap.lineAt(e,Kd.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return qL(this.heightMap.lineAt(this.scaler.fromDOM(e),Kd.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let o=this.lineBlockAtHeight(e+8);return o.from>=this.viewport.from||this.viewportLines[0].top-e>200?o:this.viewportLines[0]}elementAtHeight(e){return qL(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class TQ{constructor(e,o){this.from=e,this.to=o}}function f6e(t,e,o){let f=[],E=t,d=0;return Df.spans(o,t,e,{span(){},point(s,n){s>E&&(f.push({from:E,to:s}),d+=s-E),E=n}},20),E=1)return e[e.length-1].to;let f=Math.floor(t*o);for(let E=0;;E++){let{from:d,to:s}=e[E],n=s-d;if(f<=n)return d+f;f-=n}}function AQ(t,e){let o=0;for(let{from:f,to:E}of t.ranges){if(e<=E){o+=e-f;break}o+=E-f}return o/t.total}function d6e(t,e){for(let o of t)if(e(o))return o}const Rpe={toDOM(t){return t},fromDOM(t){return t},scale:1};class h6e{constructor(e,o,f){let E=0,d=0,s=0;this.viewports=f.map(({from:n,to:u})=>{let b=o.lineAt(n,Kd.ByPos,e,0,0).top,i=o.lineAt(u,Kd.ByPos,e,0,0).bottom;return E+=i-b,{from:n,to:u,top:b,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-E)/(o.height-E);for(let n of this.viewports)n.domTop=s+(n.top-d)*this.scale,s=n.domBottom=n.domTop+(n.bottom-n.top),d=n.bottom}toDOM(e){for(let o=0,f=0,E=0;;o++){let d=oqL(E,e)):t._content)}const MQ=ls.define({combine:t=>t.join(" ")}),Tse=ls.define({combine:t=>t.indexOf(!0)>-1}),Cse=b4.newName(),ibe=b4.newName(),abe=b4.newName(),sbe={"&light":"."+ibe,"&dark":"."+abe};function Ase(t,e,o){return new b4(e,{finish(f){return/&/.test(f)?f.replace(/&\w*/,E=>{if(E=="&")return t;if(!o||!o[E])throw new RangeError(`Unsupported selector: ${E}`);return o[E]}):t+" "+f}})}const p6e=Ase("."+Cse,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},sbe),WL="￿";class m6e{constructor(e,o){this.points=e,this.text="",this.lineSeparator=o.facet(kc.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=WL}readRange(e,o){if(!e)return this;let f=e.parentNode;for(let E=e;;){this.findPointBefore(f,E);let d=this.text.length;this.readNode(E);let s=E.nextSibling;if(s==o)break;let n=eh.get(E),u=eh.get(s);(n&&u?n.breakAfter:(n?n.breakAfter:Lpe(E))||Lpe(s)&&(E.nodeName!="BR"||E.cmIgnore)&&this.text.length>d)&&this.lineBreak(),E=s}return this.findPointBefore(f,o),this}readTextNode(e){let o=e.nodeValue;for(let f of this.points)f.node==e&&(f.pos=this.text.length+Math.min(f.offset,o.length));for(let f=0,E=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,s=1,n;if(this.lineSeparator?(d=o.indexOf(this.lineSeparator,f),s=this.lineSeparator.length):(n=E.exec(o))&&(d=n.index,s=n[0].length),this.append(o.slice(f,d<0?o.length:d)),d<0)break;if(this.lineBreak(),s>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=s-1);f=d+s}}readNode(e){if(e.cmIgnore)return;let o=eh.get(e),f=o&&o.overrideDOMText;if(f!=null){this.findPointInside(e,f.length);for(let E=f.iter();!E.next().done;)E.lineBreak?this.lineBreak():this.append(E.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,o){for(let f of this.points)f.node==e&&e.childNodes[f.offset]==o&&(f.pos=this.text.length)}findPointInside(e,o){for(let f of this.points)(e.nodeType==3?f.node==e:e.contains(f.node))&&(f.pos=this.text.length+(g6e(e,f.node,f.offset)?o:0))}}function g6e(t,e,o){for(;;){if(!e||o-1)this.newSel=null;else if(o>-1&&(this.bounds=e.docView.domBoundsAround(o,f,0))){let n=d||s?[]:x6e(e),u=new m6e(n,e.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=_6e(n,this.bounds.from)}else{let n=e.observer.selectionRange,u=d&&d.node==n.focusNode&&d.offset==n.focusOffset||!dse(e.contentDOM,n.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(n.focusNode,n.focusOffset),b=s&&s.node==n.anchorNode&&s.offset==n.anchorOffset||!dse(e.contentDOM,n.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(n.anchorNode,n.anchorOffset);this.newSel=hi.single(b,u)}}}function lbe(t,e){let o,{newSel:f}=e,E=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:n}=e.bounds,u=E.from,b=null;(d===8||xs.android&&e.text.length=E.from&&o.to<=E.to&&(o.from!=E.from||o.to!=E.to)&&E.to-E.from-(o.to-o.from)<=4?o={from:E.from,to:E.to,insert:t.state.doc.slice(E.from,o.from).append(o.insert).append(t.state.doc.slice(o.to,E.to))}:(xs.mac||xs.android)&&o&&o.from==o.to&&o.from==E.head-1&&/^\. ?$/.test(o.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(f&&o.insert.length==2&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}):xs.chrome&&o&&o.from==o.to&&o.from==E.head&&o.insert.toString()==` + `&&t.lineWrapping&&(f&&(f=hi.single(f.main.anchor-1,f.main.head-1)),o={from:E.from,to:E.to,insert:Qu.of([" "])}),o){if(xs.ios&&t.inputState.flushIOSKey()||xs.android&&(o.from==E.from&&o.to==E.to&&o.insert.length==1&&o.insert.lines==2&&X8(t.contentDOM,"Enter",13)||(o.from==E.from-1&&o.to==E.to&&o.insert.length==0||d==8&&o.insert.lengthE.head)&&X8(t.contentDOM,"Backspace",8)||o.from==E.from&&o.to==E.to+1&&o.insert.length==0&&X8(t.contentDOM,"Delete",46)))return!0;let s=o.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let n,u=()=>n||(n=y6e(t,o,f));return t.state.facet(Lye).some(b=>b(t,o.from,o.to,s,u))||t.dispatch(u()),!0}else if(f&&!f.main.eq(E)){let s=!1,n="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),n=t.inputState.lastSelectionOrigin),t.dispatch({selection:f,scrollIntoView:s,userEvent:n}),!0}else return!1}function y6e(t,e,o){let f,E=t.state,d=E.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!o||o.main.empty&&o.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let n=d.frome.to?E.sliceDoc(e.to,d.to):"";f=E.replaceSelection(t.state.toText(n+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let n=E.changes(e),u=o&&o.main.to<=n.newLength?o.main:void 0;if(E.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let b=t.state.sliceDoc(e.from,e.to),i,S=o&&Zye(t,o.main.head);if(S){let m=e.insert.length-(e.to-e.from);i={from:S.from,to:S.to-m}}else i=t.state.doc.lineAt(d.head);let w=d.to-e.to,y=d.to-d.from;f=E.changeByRange(m=>{if(m.from==d.from&&m.to==d.to)return{changes:n,range:u||m.map(n)};let a=m.to-w,c=a-b.length;if(m.to-m.from!=y||t.state.sliceDoc(c,a)!=b||m.to>=i.from&&m.from<=i.to)return{range:m};let h=E.changes({from:c,to:a,insert:e.insert}),p=m.to-d.to;return{changes:h,range:u?hi.range(Math.max(0,u.anchor+p),Math.max(0,u.head+p)):m.map(h)}})}else f={changes:n,selection:u&&E.selection.replaceRange(u)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),E.update(f,{userEvent:s,scrollIntoView:!0})}function b6e(t,e,o,f){let E=Math.min(t.length,e.length),d=0;for(;d0&&n>0&&t.charCodeAt(s-1)==e.charCodeAt(n-1);)s--,n--;if(f=="end"){let u=Math.max(0,d-Math.min(s,n));o-=s+u-d}if(s=s?d-o:0;d-=u,n=d+(n-s),s=d}else if(n=n?d-o:0;d-=u,s=d+(s-n),n=d}return{from:d,toA:s,toB:n}}function x6e(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:o,anchorOffset:f,focusNode:E,focusOffset:d}=t.observer.selectionRange;return o&&(e.push(new Ipe(o,f)),(E!=o||d!=f)&&e.push(new Ipe(E,d))),e}function _6e(t,e){if(t.length==0)return null;let o=t[0].pos,f=t.length==2?t[1].pos:o;return o>-1&&f>-1?hi.single(o+e,f+e):null}const w6e={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Iie=xs.ie&&xs.ie_version<=11;class O6e{constructor(e){this.view=e,this.active=!1,this.selectionRange=new aCe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(o=>{for(let f of o)this.queue.push(f);(xs.ie&&xs.ie_version<=11||xs.ios&&e.composing)&&o.some(f=>f.type=="childList"&&f.removedNodes.length||f.type=="characterData"&&f.oldValue.length>f.target.nodeValue.length)?this.flushSoon():this.flush()}),Iie&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var o;((o=this.view.docView)===null||o===void 0?void 0:o.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),o.length>0&&o[o.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(o=>{o.length>0&&o[o.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((o,f)=>o!=e[f]))){this.gapIntersection.disconnect();for(let o of e)this.gapIntersection.observe(o);this.gaps=e}}onSelectionChange(e){let o=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:f}=this,E=this.selectionRange;if(f.state.facet(YZ)?f.root.activeElement!=this.dom:!cH(f.dom,E))return;let d=E.anchorNode&&f.docView.nearest(E.anchorNode);if(d&&d.ignoreEvent(e)){o||(this.selectionChanged=!1);return}(xs.ie&&xs.ie_version<=11||xs.android&&xs.chrome)&&!f.state.selection.main.empty&&E.focusNode&&NH(E.focusNode,E.focusOffset,E.anchorNode,E.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,o=xs.safari&&e.root.nodeType==11&&nCe(this.dom.ownerDocument)==this.dom&&S6e(this.view)||zH(e.root);if(!o||this.selectionRange.eq(o))return!1;let f=cH(this.dom,o);return f&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&X8(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(E)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:o,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let o=-1,f=-1,E=!1;for(let d of e){let s=this.readMutation(d);s&&(s.typeOver&&(E=!0),o==-1?{from:o,to:f}=s:(o=Math.min(s.from,o),f=Math.max(s.to,f)))}return{from:o,to:f,typeOver:E}}readChange(){let{from:e,to:o,typeOver:f}=this.processRecords(),E=this.selectionChanged&&cH(this.dom,this.selectionRange);if(e<0&&!E)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new v6e(this.view,e,o,f);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let o=this.readChange();if(!o)return this.view.requestMeasure(),!1;let f=this.view.state,E=lbe(this.view,o);return this.view.state==f&&this.view.update([]),E}readMutation(e){let o=this.view.docView.nearest(e.target);if(!o||o.ignoreMutation(e))return null;if(o.markDirty(e.type=="attributes"),e.type=="attributes"&&(o.flags|=4),e.type=="childList"){let f=Dpe(o,e.previousSibling||e.target.previousSibling,-1),E=Dpe(o,e.nextSibling||e.target.nextSibling,1);return{from:f?o.posAfter(f):o.posAtStart,to:E?o.posBefore(E):o.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,o,f;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(o=this.gapIntersection)===null||o===void 0||o.disconnect(),(f=this.resizeScroll)===null||f===void 0||f.disconnect();for(let E of this.scrollTargets)E.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Dpe(t,e,o){for(;e;){let f=eh.get(e);if(f&&f.parent==t)return f;let E=e.parentNode;e=E!=t.dom?E:o>0?e.nextSibling:e.previousSibling}return null}function S6e(t){let e=null;function o(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),!e)return null;let f=e.startContainer,E=e.startOffset,d=e.endContainer,s=e.endOffset,n=t.docView.domAtPos(t.state.selection.main.anchor);return NH(n.node,n.offset,d,s)&&([f,E,d,s]=[d,s,f,E]),{anchorNode:f,anchorOffset:E,focusNode:d,focusOffset:s}}class Xa{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:o}=e;this.dispatchTransactions=e.dispatchTransactions||o&&(f=>f.forEach(E=>o(E,this)))||(f=>this.update(f)),this.dispatch=this.dispatch.bind(this),this._root=e.root||sCe(e.parent)||document,this.viewState=new Ppe(e.state||kc.create(e)),e.scrollTo&&e.scrollTo.is(OQ)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(HL).map(f=>new Eie(f));for(let f of this.plugins)f.update(this);this.observer=new O6e(this),this.inputState=new FCe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new hpe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let o=e.length==1&&e[0]instanceof Xp?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(o,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let o=!1,f=!1,E,d=this.state;for(let w of e){if(w.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=w.state}if(this.destroyed){this.viewState.state=d;return}let s=this.hasFocus,n=0,u=null;e.some(w=>w.annotation(tbe))?(this.inputState.notifiedFocused=s,n=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,u=nbe(d,s),u||(n=1));let b=this.observer.delayedAndroidKey,i=null;if(b?(this.observer.clearDelayedAndroidKey(),i=this.observer.readChange(),(i&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(i=null)):this.observer.clear(),d.facet(kc.phrases)!=this.state.facet(kc.phrases))return this.setState(d);E=FH.create(this,d,e),E.flags|=n;let S=this.viewState.scrollTarget;try{this.updateState=2;for(let w of e){if(S&&(S=S.map(w.changes)),w.scrollIntoView){let{main:y}=w.state.selection;S=new G8(y.empty?y:hi.cursor(y.head,y.head>y.anchor?-1:1))}for(let y of w.effects)y.is(OQ)&&(S=y.value.clip(this.state))}this.viewState.update(E,S),this.bidiCache=$H.update(this.bidiCache,E.changes),E.empty||(this.updatePlugins(E),this.inputState.update(E)),o=this.docView.update(E),this.state.facet(ZL)!=this.styleModules&&this.mountStyles(),f=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(o,e.some(w=>w.isUserEvent("select.pointer")))}finally{this.updateState=0}if(E.startState.facet(MQ)!=E.state.facet(MQ)&&(this.viewState.mustMeasureContent=!0),(o||f||S||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!E.empty)for(let w of this.state.facet(bse))try{w(E)}catch(y){ey(this.state,y,"update listener")}(u||i)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),i&&!lbe(this,i)&&b.force&&X8(this.contentDOM,b.key,b.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let o=this.hasFocus;try{for(let f of this.plugins)f.destroy(this);this.viewState=new Ppe(e),this.plugins=e.facet(HL).map(f=>new Eie(f)),this.pluginMap.clear();for(let f of this.plugins)f.update(this);this.docView.destroy(),this.docView=new hpe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}o&&this.focus(),this.requestMeasure()}updatePlugins(e){let o=e.startState.facet(HL),f=e.state.facet(HL);if(o!=f){let E=[];for(let d of f){let s=o.indexOf(d);if(s<0)E.push(new Eie(d));else{let n=this.plugins[s];n.mustUpdate=e,E.push(n)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=E,this.pluginMap.clear()}else for(let E of this.plugins)E.mustUpdate=e;for(let E=0;E-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let o=null,f=this.scrollDOM,E=f.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:s}=this.viewState;Math.abs(E-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let n=0;;n++){if(s<0)if(bye(f))d=-1,s=this.viewState.heightMap.height;else{let y=this.viewState.scrollAnchorAt(E);d=y.from,s=y.top}this.updateState=1;let u=this.viewState.measure(this);if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(n>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let b=[];u&4||([this.measureRequests,b]=[b,this.measureRequests]);let i=b.map(y=>{try{return y.read(this)}catch(m){return ey(this.state,m),Bpe}}),S=FH.create(this,this.state,[]),w=!1;S.flags|=u,o?o.flags|=u:o=S,this.updateState=2,S.empty||(this.updatePlugins(S),this.inputState.update(S),this.updateAttrs(),w=this.docView.update(S));for(let y=0;y1||m<-1){E=E+m,f.scrollTop=E/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(o&&!o.empty)for(let n of this.state.facet(bse))n(o)}get themeClasses(){return Cse+" "+(this.state.facet(Tse)?abe:ibe)+" "+this.state.facet(MQ)}updateAttrs(){let e=zpe(this,zye,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),o={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(YZ)?"true":"false",class:"cm-content",style:`${xs.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(o["aria-readonly"]="true"),zpe(this,Tce,o);let f=this.observer.ignore(()=>{let E=vse(this.contentDOM,this.contentAttrs,o),d=vse(this.dom,this.editorAttrs,e);return E||d});return this.editorAttrs=e,this.contentAttrs=o,f}showAnnouncements(e){let o=!0;for(let f of e)for(let E of f.effects)if(E.is(Xa.announce)){o&&(this.announceDOM.textContent=""),o=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=E.value}}mountStyles(){this.styleModules=this.state.facet(ZL);let e=this.state.facet(Xa.cspNonce);b4.mount(this.root,this.styleModules.concat(p6e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let o=0;of.spec==e)||null),o&&o.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,o,f){return Rie(this,e,bpe(this,e,o,f))}moveByGroup(e,o){return Rie(this,e,bpe(this,e,o,f=>zCe(this,e.head,f)))}moveToLineBoundary(e,o,f=!0){return BCe(this,e,o,f)}moveVertically(e,o,f){return Rie(this,e,NCe(this,e,o,f))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,o=0){return this.docView.posFromDOM(e,o)}posAtCoords(e,o=!0){return this.readMeasured(),Wye(this,e,o)}coordsAtPos(e,o=1){this.readMeasured();let f=this.docView.coordsAt(e,o);if(!f||f.left==f.right)return f;let E=this.state.doc.lineAt(e),d=this.bidiSpans(E),s=d[c4.find(d,e-E.from,-1,o)];return qZ(f,s.dir==zh.LTR==o>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Dye)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>k6e)return Qye(e.length);let o=this.textDirectionAt(e.from),f;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==o&&(d.fresh||jye(d.isolates,f=dpe(this,e.from,e.to))))return d.order;f||(f=dpe(this,e.from,e.to));let E=wCe(e.text,o,f);return this.bidiCache.push(new $H(e.from,e.to,o,f,!0,E)),E}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||xs.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{vye(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,o={}){return OQ.of(new G8(typeof e=="number"?hi.cursor(e):e,o.y,o.x,o.yMargin,o.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:o}=this.scrollDOM,f=this.viewState.scrollAnchorAt(e);return OQ.of(new G8(hi.cursor(f.from),"start","start",f.top-e,o,!0))}static domEventHandlers(e){return bh.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return bh.define(()=>({}),{eventObservers:e})}static theme(e,o){let f=b4.newName(),E=[MQ.of(f),ZL.of(Ase(`.${f}`,e))];return o&&o.dark&&E.push(Tse.of(!0)),E}static baseTheme(e){return ny.lowest(ZL.of(Ase("."+Cse,e,sbe)))}static findFromDOM(e){var o;let f=e.querySelector(".cm-content"),E=f&&eh.get(f)||eh.get(e);return((o=E==null?void 0:E.rootView)===null||o===void 0?void 0:o.view)||null}}Xa.styleModule=ZL;Xa.inputHandler=Lye;Xa.focusChangeEffect=Iye;Xa.perLineTextDirection=Dye;Xa.exceptionSink=Rye;Xa.updateListener=bse;Xa.editable=YZ;Xa.mouseSelectionStyle=Pye;Xa.dragMovesSelection=Eye;Xa.clickAddsSelectionRange=Mye;Xa.decorations=AI;Xa.atomicRanges=Cce;Xa.bidiIsolatedRanges=Nye;Xa.scrollMargins=Fye;Xa.darkTheme=Tse;Xa.cspNonce=ls.define({combine:t=>t.length?t[0]:""});Xa.contentAttributes=Tce;Xa.editorAttributes=zye;Xa.lineWrapping=Xa.contentAttributes.of({class:"cm-lineWrapping"});Xa.announce=Ql.define();const k6e=4096,Bpe={};class $H{constructor(e,o,f,E,d,s){this.from=e,this.to=o,this.dir=f,this.isolates=E,this.fresh=d,this.order=s}static update(e,o){if(o.empty&&!e.some(d=>d.fresh))return e;let f=[],E=e.length?e[e.length-1].dir:zh.LTR;for(let d=Math.max(0,e.length-10);d=0;E--){let d=f[E],s=typeof d=="function"?d(t):d;s&&gse(s,o)}return o}const T6e=xs.mac?"mac":xs.windows?"win":xs.linux?"linux":"key";function C6e(t,e){const o=t.split(/-(?!$)/);let f=o[o.length-1];f=="Space"&&(f=" ");let E,d,s,n;for(let u=0;uf.concat(E),[]))),o}function M6e(t,e,o){return ube(cbe(t.state),e,t,o)}let i4=null;const E6e=4e3;function P6e(t,e=T6e){let o=Object.create(null),f=Object.create(null),E=(s,n)=>{let u=f[s];if(u==null)f[s]=n;else if(u!=n)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},d=(s,n,u,b,i)=>{var S,w;let y=o[s]||(o[s]=Object.create(null)),m=n.split(/ (?!$)/).map(h=>C6e(h,e));for(let h=1;h{let _=i4={view:v,prefix:p,scope:s};return setTimeout(()=>{i4==_&&(i4=null)},E6e),!0}]})}let a=m.join(" ");E(a,!1);let c=y[a]||(y[a]={preventDefault:!1,stopPropagation:!1,run:((w=(S=y._any)===null||S===void 0?void 0:S.run)===null||w===void 0?void 0:w.slice())||[]});u&&c.run.push(u),b&&(c.preventDefault=!0),i&&(c.stopPropagation=!0)};for(let s of t){let n=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let b of n){let i=o[b]||(o[b]=Object.create(null));i._any||(i._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let S in i)i[S].run.push(s.any)}let u=s[e]||s.key;if(u)for(let b of n)d(b,u,s.run,s.preventDefault,s.stopPropagation),s.shift&&d(b,"Shift-"+u,s.shift,s.preventDefault,s.stopPropagation)}return o}function ube(t,e,o,f){let E=tCe(e),d=ag(E,0),s=Ky(d)==E.length&&E!=" ",n="",u=!1,b=!1,i=!1;i4&&i4.view==o&&i4.scope==f&&(n=i4.prefix+" ",Xye.indexOf(e.keyCode)<0&&(b=!0,i4=null));let S=new Set,w=c=>{if(c){for(let h of c.run)if(!S.has(h)&&(S.add(h),h(o,e)))return c.stopPropagation&&(i=!0),!0;c.preventDefault&&(c.stopPropagation&&(i=!0),b=!0)}return!1},y=t[f],m,a;return y&&(w(y[n+EQ(E,e,!s)])?u=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(xs.windows&&e.ctrlKey&&e.altKey)&&(m=x4[e.keyCode])&&m!=E?(w(y[n+EQ(m,e,!0)])||e.shiftKey&&(a=TI[e.keyCode])!=E&&a!=m&&w(y[n+EQ(a,e,!1)]))&&(u=!0):s&&e.shiftKey&&w(y[n+EQ(E,e,!0)])&&(u=!0),!u&&w(y._any)&&(u=!0)),b&&(u=!0),u&&i&&e.stopPropagation(),u}class dD{constructor(e,o,f,E,d){this.className=e,this.left=o,this.top=f,this.width=E,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,o){return o.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,o,f){if(f.empty){let E=e.coordsAtPos(f.head,f.assoc||1);if(!E)return[];let d=fbe(e);return[new dD(o,E.left-d.left,E.top-d.top,null,E.bottom-E.top)]}else return R6e(e,o,f)}}function fbe(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==zh.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Fpe(t,e,o){let f=hi.cursor(e);return{from:Math.max(o.from,t.moveToLineBoundary(f,!1,!0).from),to:Math.min(o.to,t.moveToLineBoundary(f,!0,!0).from),type:q0.Text}}function R6e(t,e,o){if(o.to<=t.viewport.from||o.from>=t.viewport.to)return[];let f=Math.max(o.from,t.viewport.from),E=Math.min(o.to,t.viewport.to),d=t.textDirection==zh.LTR,s=t.contentDOM,n=s.getBoundingClientRect(),u=fbe(t),b=s.querySelector(".cm-line"),i=b&&window.getComputedStyle(b),S=n.left+(i?parseInt(i.paddingLeft)+Math.min(0,parseInt(i.textIndent)):0),w=n.right-(i?parseInt(i.paddingRight):0),y=Sse(t,f),m=Sse(t,E),a=y.type==q0.Text?y:null,c=m.type==q0.Text?m:null;if(a&&(t.lineWrapping||y.widgetLineBreaks)&&(a=Fpe(t,f,a)),c&&(t.lineWrapping||m.widgetLineBreaks)&&(c=Fpe(t,E,c)),a&&c&&a.from==c.from)return p(v(o.from,o.to,a));{let O=a?v(o.from,null,a):_(y,!1),C=c?v(null,o.to,c):_(m,!0),x=[];return(a||y).to<(c||m).from-(a&&c?1:0)||y.widgetLineBreaks>1&&O.bottom+t.defaultLineHeight/2A&&D.from=I)break;j>k&&P(Math.max(Q,k),O==null&&Q<=A,Math.min(j,I),C==null&&j>=L,$.dir)}if(k=z.to+1,k>=I)break}return T.length==0&&P(A,O==null,L,C==null,t.textDirection),{top:R,bottom:M,horizontal:T}}function _(O,C){let x=n.top+(C?O.top:O.bottom);return{top:x,bottom:x,horizontal:[]}}}function L6e(t,e){return t.constructor==e.constructor&&t.eq(e)}class I6e{constructor(e,o){this.view=e,this.layer=o,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),o.above&&this.dom.classList.add("cm-layer-above"),o.class&&this.dom.classList.add(o.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),o.mount&&o.mount(this.dom,e)}update(e){e.startState.facet(dH)!=e.state.facet(dH)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let o=0,f=e.facet(dH);for(;o!L6e(o,this.drawn[f]))){let o=this.dom.firstChild,f=0;for(let E of e)E.update&&o&&E.constructor&&this.drawn[f].constructor&&E.update(o,this.drawn[f])?(o=o.nextSibling,f++):this.dom.insertBefore(E.draw(),o);for(;o;){let E=o.nextSibling;o.remove(),o=E}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const dH=ls.define();function dbe(t){return[bh.define(e=>new I6e(e,t)),dH.of(t)]}const hbe=!xs.ios,EI=ls.define({combine(t){return E_(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,o)=>Math.min(e,o),drawRangeCursor:(e,o)=>e||o})}});function D6e(t={}){return[EI.of(t),B6e,z6e,N6e,Bye.of(!0)]}function pbe(t){return t.startState.facet(EI)!=t.state.facet(EI)}const B6e=dbe({above:!0,markers(t){let{state:e}=t,o=e.facet(EI),f=[];for(let E of e.selection.ranges){let d=E==e.selection.main;if(E.empty?!d||hbe:o.drawRangeCursor){let s=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=E.empty?E:hi.cursor(E.head,E.head>E.anchor?-1:1);for(let u of dD.forRange(t,s,n))f.push(u)}}return f},update(t,e){t.transactions.some(f=>f.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let o=pbe(t);return o&&$pe(t.state,e),t.docChanged||t.selectionSet||o},mount(t,e){$pe(e.state,t)},class:"cm-cursorLayer"});function $pe(t,e){e.style.animationDuration=t.facet(EI).cursorBlinkRate+"ms"}const z6e=dbe({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:dD.forRange(t,"cm-selectionBackground",e)).reduce((e,o)=>e.concat(o))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||pbe(t)},class:"cm-selectionLayer"}),Mse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};hbe&&(Mse[".cm-line"].caretColor="transparent !important",Mse[".cm-content"]={caretColor:"transparent !important"});const N6e=ny.highest(Xa.theme(Mse)),mbe=Ql.define({map(t,e){return t==null?null:e.mapPos(t)}}),YL=tm.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((o,f)=>f.is(mbe)?f.value:o,t)}}),F6e=bh.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let o=t.state.field(YL);o==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(YL)!=o||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(YL),o=e!=null&&t.coordsAtPos(e);if(!o)return null;let f=t.scrollDOM.getBoundingClientRect();return{left:o.left-f.left+t.scrollDOM.scrollLeft*t.scaleX,top:o.top-f.top+t.scrollDOM.scrollTop*t.scaleY,height:o.bottom-o.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:o}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/o+"px",this.cursor.style.height=t.height/o+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(YL)!=t&&this.view.dispatch({effects:mbe.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function $6e(){return[YL,F6e]}function Vpe(t,e,o,f,E){e.lastIndex=0;for(let d=t.iterRange(o,f),s=o,n;!d.next().done;s+=d.value.length)if(!d.lineBreak)for(;n=e.exec(d.value);)E(s+n.index,n)}function V6e(t,e){let o=t.visibleRanges;if(o.length==1&&o[0].from==t.viewport.from&&o[0].to==t.viewport.to)return o;let f=[];for(let{from:E,to:d}of o)E=Math.max(t.state.doc.lineAt(E).from,E-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),f.length&&f[f.length-1].to>=E?f[f.length-1].to=d:f.push({from:E,to:d});return f}class U6e{constructor(e){const{regexp:o,decoration:f,decorate:E,boundary:d,maxLength:s=1e3}=e;if(!o.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=o,E)this.addMatch=(n,u,b,i)=>E(i,b,b+n[0].length,n,u);else if(typeof f=="function")this.addMatch=(n,u,b,i)=>{let S=f(n,u,b);S&&i(b,b+n[0].length,S)};else if(f)this.addMatch=(n,u,b,i)=>i(b,b+n[0].length,f);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=s}createDeco(e){let o=new y4,f=o.add.bind(o);for(let{from:E,to:d}of V6e(e,this.maxLength))Vpe(e.state.doc,this.regexp,E,d,(s,n)=>this.addMatch(n,e,s,f));return o.finish()}updateDeco(e,o){let f=1e9,E=-1;return e.docChanged&&e.changes.iterChanges((d,s,n,u)=>{u>e.view.viewport.from&&n1e3?this.createDeco(e.view):E>-1?this.updateRange(e.view,o.map(e.changes),f,E):o}updateRange(e,o,f,E){for(let d of e.visibleRanges){let s=Math.max(d.from,f),n=Math.min(d.to,E);if(n>s){let u=e.state.doc.lineAt(s),b=u.tou.from;s--)if(this.boundary.test(u.text[s-1-u.from])){i=s;break}for(;nw.push(h.range(a,c));if(u==b)for(this.regexp.lastIndex=i-u.from;(y=this.regexp.exec(u.text))&&y.indexthis.addMatch(c,e,a,m));o=o.update({filterFrom:i,filterTo:S,filter:(a,c)=>aS,add:w})}}return o}}const Ese=/x/.unicode!=null?"gu":"g",j6e=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Ese),Q6e={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Die=null;function H6e(){var t;if(Die==null&&typeof document<"u"&&document.body){let e=document.body.style;Die=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Die||!1}const hH=ls.define({combine(t){let e=E_(t,{render:null,specialChars:j6e,addSpecialChars:null});return(e.replaceTabs=!H6e())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Ese)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Ese)),e}});function Z6e(t={}){return[hH.of(t),q6e()]}let Upe=null;function q6e(){return Upe||(Upe=bh.fromClass(class{constructor(t){this.view=t,this.decorations=Ns.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(hH)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new U6e({regexp:t.specialChars,decoration:(e,o,f)=>{let{doc:E}=o.state,d=ag(e[0],0);if(d==9){let s=E.lineAt(f),n=o.state.tabSize,u=kx(s.text,n,f-s.from);return Ns.replace({widget:new G6e((n-u%n)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=Ns.replace({widget:new X6e(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(hH);t.startState.facet(hH)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const W6e="•";function Y6e(t){return t>=32?W6e:t==10?"␤":String.fromCharCode(9216+t)}class X6e extends Ex{constructor(e,o){super(),this.options=e,this.code=o}eq(e){return e.code==this.code}toDOM(e){let o=Y6e(this.code),f=e.state.phrase("Control character")+" "+(Q6e[this.code]||"0x"+this.code.toString(16)),E=this.options.render&&this.options.render(this.code,f,o);if(E)return E;let d=document.createElement("span");return d.textContent=o,d.title=f,d.setAttribute("aria-label",f),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class G6e extends Ex{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function K6e(){return eAe}const J6e=Ns.line({class:"cm-activeLine"}),eAe=bh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,o=[];for(let f of t.state.selection.ranges){let E=t.lineBlockAt(f.head);E.from>e&&(o.push(J6e.range(E.from)),e=E.from)}return Ns.set(o)}},{decorations:t=>t.decorations});class tAe extends Ex{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let o=e.firstChild?cM(e.firstChild):[];if(!o.length)return null;let f=window.getComputedStyle(e.parentNode),E=qZ(o[0],f.direction!="rtl"),d=parseInt(f.lineHeight);return E.bottom-E.top>d*1.5?{left:E.left,right:E.right,top:E.top,bottom:E.top+d}:E}ignoreEvent(){return!1}}function nAe(t){return bh.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ns.set([Ns.widget({widget:new tAe(t),side:1}).range(0)]):Ns.none}get decorations(){return this.view.state.doc.length?Ns.none:this.placeholder}},{decorations:e=>e.decorations})}const Pse=2e3;function rAe(t,e,o){let f=Math.min(e.line,o.line),E=Math.max(e.line,o.line),d=[];if(e.off>Pse||o.off>Pse||e.col<0||o.col<0){let s=Math.min(e.off,o.off),n=Math.max(e.off,o.off);for(let u=f;u<=E;u++){let b=t.doc.line(u);b.length<=n&&d.push(hi.range(b.from+s,b.to+n))}}else{let s=Math.min(e.col,o.col),n=Math.max(e.col,o.col);for(let u=f;u<=E;u++){let b=t.doc.line(u),i=cse(b.text,s,t.tabSize,!0);if(i<0)d.push(hi.cursor(b.to));else{let S=cse(b.text,n,t.tabSize);d.push(hi.range(b.from+i,b.from+S))}}}return d}function oAe(t,e){let o=t.coordsAtPos(t.viewport.from);return o?Math.round(Math.abs((o.left-e)/t.defaultCharacterWidth)):-1}function jpe(t,e){let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),f=t.state.doc.lineAt(o),E=o-f.from,d=E>Pse?-1:E==f.length?oAe(t,e.clientX):kx(f.text,t.state.tabSize,o-f.from);return{line:f.number,col:d,off:E}}function iAe(t,e){let o=jpe(t,e),f=t.state.selection;return o?{update(E){if(E.docChanged){let d=E.changes.mapPos(E.startState.doc.line(o.line).from),s=E.state.doc.lineAt(d);o={line:s.number,col:o.col,off:Math.min(o.off,s.length)},f=f.map(E.changes)}},get(E,d,s){let n=jpe(t,E);if(!n)return f;let u=rAe(t.state,o,n);return u.length?s?hi.create(u.concat(f.ranges)):hi.create(u):f}}:null}function aAe(t){let e=(t==null?void 0:t.eventFilter)||(o=>o.altKey&&o.button==0);return Xa.mouseSelectionStyle.of((o,f)=>e(f)?iAe(o,f):null)}const sAe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},lAe={style:"cursor: crosshair"};function cAe(t={}){let[e,o]=sAe[t.key||"Alt"],f=bh.fromClass(class{constructor(E){this.view=E,this.isDown=!1}set(E){this.isDown!=E&&(this.isDown=E,this.view.update([]))}},{eventObservers:{keydown(E){this.set(E.keyCode==e||o(E))},keyup(E){(E.keyCode==e||!o(E))&&this.set(!1)},mousemove(E){this.set(o(E))}}});return[f,Xa.contentAttributes.of(E=>{var d;return!((d=E.plugin(f))===null||d===void 0)&&d.isDown?lAe:null})]}const RL="-10000px";class gbe{constructor(e,o,f){this.facet=o,this.createTooltipView=f,this.input=e.state.facet(o),this.tooltips=this.input.filter(E=>E),this.tooltipViews=this.tooltips.map(f)}update(e,o){var f;let E=e.state.facet(this.facet),d=E.filter(u=>u);if(E===this.input){for(let u of this.tooltipViews)u.update&&u.update(e);return!1}let s=[],n=o?[]:null;for(let u=0;uo[b]=u),o.length=n.length),this.input=E,this.tooltips=d,this.tooltipViews=s,!0}}function uAe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Bie=ls.define({combine:t=>{var e,o,f;return{position:xs.ios?"absolute":((e=t.find(E=>E.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((o=t.find(E=>E.parent))===null||o===void 0?void 0:o.parent)||null,tooltipSpace:((f=t.find(E=>E.tooltipSpace))===null||f===void 0?void 0:f.tooltipSpace)||uAe}}}),Qpe=new WeakMap,Mce=bh.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Bie);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new gbe(t,Ece,o=>this.createTooltip(o)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(o=>{Date.now()>this.lastTransaction-50&&o.length>0&&o[o.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let o=e||t.geometryChanged,f=t.state.facet(Bie);if(f.position!=this.position&&!this.madeAbsolute){this.position=f.position;for(let E of this.manager.tooltipViews)E.dom.style.position=this.position;o=!0}if(f.parent!=this.parent){this.parent&&this.container.remove(),this.parent=f.parent,this.createContainer();for(let E of this.manager.tooltipViews)this.container.appendChild(E.dom);o=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);o&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",e.dom.appendChild(o)}return e.dom.style.position=this.position,e.dom.style.top=RL,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(t=o.destroy)===null||t===void 0||t.call(o);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,o=1,f=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:E}=this.manager.tooltipViews[0];if(xs.gecko)f=E.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)f=!0;else if(E.style.top==RL&&E.style.left=="0px"){let d=E.getBoundingClientRect();f=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(f||this.position=="absolute")if(this.parent){let E=this.parent.getBoundingClientRect();E.width&&E.height&&(e=E.width/this.parent.offsetWidth,o=E.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:o}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((E,d)=>{let s=this.manager.tooltipViews[d];return s.getCoords?s.getCoords(E.pos):this.view.coordsAtPos(E.pos)}),size:this.manager.tooltipViews.map(({dom:E})=>E.getBoundingClientRect()),space:this.view.state.facet(Bie).tooltipSpace(this.view),scaleX:e,scaleY:o,makeAbsolute:f}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let n of this.manager.tooltipViews)n.dom.style.position="absolute"}let{editor:o,space:f,scaleX:E,scaleY:d}=t,s=[];for(let n=0;n=Math.min(o.bottom,f.bottom)||S.rightMath.min(o.right,f.right)+.1){i.style.top=RL;continue}let y=u.arrow?b.dom.querySelector(".cm-tooltip-arrow"):null,m=y?7:0,a=w.right-w.left,c=(e=Qpe.get(b))!==null&&e!==void 0?e:w.bottom-w.top,h=b.offset||dAe,p=this.view.textDirection==zh.LTR,v=w.width>f.right-f.left?p?f.left:f.right-w.width:p?Math.min(S.left-(y?14:0)+h.x,f.right-a):Math.max(f.left,S.left-a+(y?14:0)-h.x),_=this.above[n];!u.strictSide&&(_?S.top-(w.bottom-w.top)-h.yf.bottom)&&_==f.bottom-S.bottom>S.top-f.top&&(_=this.above[n]=!_);let O=(_?S.top-f.top:f.bottom-S.bottom)-m;if(Ov&&R.topC&&(C=_?R.top-c-2-m:R.bottom+m+2);if(this.position=="absolute"?(i.style.top=(C-t.parent.top)/d+"px",i.style.left=(v-t.parent.left)/E+"px"):(i.style.top=C/d+"px",i.style.left=v/E+"px"),y){let R=S.left+(p?h.x:-h.x)-(v+14-7);y.style.left=R/E+"px"}b.overlap!==!0&&s.push({left:v,top:C,right:x,bottom:C+c}),i.classList.toggle("cm-tooltip-above",_),i.classList.toggle("cm-tooltip-below",!_),b.positioned&&b.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=RL}},{eventObservers:{scroll(){this.maybeMeasure()}}}),fAe=Xa.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),dAe={x:0,y:0},Ece=ls.define({enables:[Mce,fAe]}),VH=ls.define();class XZ{static create(e){return new XZ(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new gbe(e,VH,o=>this.createHostedView(o))}createHostedView(e){let o=e.create(this.view);return o.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(o.dom),this.mounted&&o.mount&&o.mount(this.view),o}mount(e){for(let o of this.manager.tooltipViews)o.mount&&o.mount(e);this.mounted=!0}positioned(e){for(let o of this.manager.tooltipViews)o.positioned&&o.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let o of this.manager.tooltipViews)(e=o.destroy)===null||e===void 0||e.call(o)}passProp(e){let o;for(let f of this.manager.tooltipViews){let E=f[e];if(E!==void 0){if(o===void 0)o=E;else if(o!==E)return}}return o}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const hAe=Ece.compute([VH],t=>{let e=t.facet(VH).filter(o=>o);return e.length===0?null:{pos:Math.min(...e.map(o=>o.pos)),end:Math.max(...e.map(o=>{var f;return(f=o.end)!==null&&f!==void 0?f:o.pos})),create:XZ.create,above:e[0].above,arrow:e.some(o=>o.arrow)}});class pAe{constructor(e,o,f,E,d){this.view=e,this.source=o,this.field=f,this.setHover=E,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||o.xn.right+e.defaultCharacterWidth)return;let u=e.bidiSpans(e.state.doc.lineAt(E)).find(i=>i.from<=E&&i.to>=E),b=u&&u.dir==zh.RTL?-1:1;d=o.x{this.pending==n&&(this.pending=null,u&&e.dispatch({effects:this.setHover.of(u)}))},u=>ey(e.state,u,"hover tooltip"))}else s&&e.dispatch({effects:this.setHover.of(s)})}get tooltip(){let e=this.view.plugin(Mce),o=e?e.manager.tooltips.findIndex(f=>f.create==XZ.create):-1;return o>-1?e.manager.tooltipViews[o]:null}mousemove(e){var o;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:f,tooltip:E}=this;if(f&&E&&!mAe(E.dom,e)||this.pending){let{pos:d}=f||this.pending,s=(o=f==null?void 0:f.end)!==null&&o!==void 0?o:d;(d==s?this.view.posAtCoords(this.lastMove)!=d:!gAe(this.view,d,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:o}=this;if(o){let{tooltip:f}=this;f&&f.dom.contains(e.relatedTarget)?this.watchTooltipLeave(f.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let o=f=>{e.removeEventListener("mouseleave",o),this.active&&!this.view.dom.contains(f.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",o)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const PQ=4;function mAe(t,e){let o=t.getBoundingClientRect();return e.clientX>=o.left-PQ&&e.clientX<=o.right+PQ&&e.clientY>=o.top-PQ&&e.clientY<=o.bottom+PQ}function gAe(t,e,o,f,E,d){let s=t.scrollDOM.getBoundingClientRect(),n=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>f||s.rightE||Math.min(s.bottom,n)=e&&u<=o}function vAe(t,e={}){let o=Ql.define(),f=tm.define({create(){return null},update(E,d){if(E&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,E)))return null;if(E&&d.docChanged){let s=d.changes.mapPos(E.pos,-1,lg.TrackDel);if(s==null)return null;let n=Object.assign(Object.create(null),E);n.pos=s,E.end!=null&&(n.end=d.changes.mapPos(E.end)),E=n}for(let s of d.effects)s.is(o)&&(E=s.value),s.is(yAe)&&(E=null);return E},provide:E=>VH.from(E)});return[f,bh.define(E=>new pAe(E,t,f,o,e.hoverTime||300)),hAe]}function vbe(t,e){let o=t.plugin(Mce);if(!o)return null;let f=o.manager.tooltips.indexOf(e);return f<0?null:o.manager.tooltipViews[f]}const yAe=Ql.define(),Hpe=ls.define({combine(t){let e,o;for(let f of t)e=e||f.topContainer,o=o||f.bottomContainer;return{topContainer:e,bottomContainer:o}}});function PI(t,e){let o=t.plugin(ybe),f=o?o.specs.indexOf(e):-1;return f>-1?o.panels[f]:null}const ybe=bh.fromClass(class{constructor(t){this.input=t.state.facet(RI),this.specs=this.input.filter(o=>o),this.panels=this.specs.map(o=>o(t));let e=t.state.facet(Hpe);this.top=new RQ(t,!0,e.topContainer),this.bottom=new RQ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(o=>o.top)),this.bottom.sync(this.panels.filter(o=>!o.top));for(let o of this.panels)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}update(t){let e=t.state.facet(Hpe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new RQ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new RQ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let o=t.state.facet(RI);if(o!=this.input){let f=o.filter(u=>u),E=[],d=[],s=[],n=[];for(let u of f){let b=this.specs.indexOf(u),i;b<0?(i=u(t.view),n.push(i)):(i=this.panels[b],i.update&&i.update(t)),E.push(i),(i.top?d:s).push(i)}this.specs=f,this.panels=E,this.top.sync(d),this.bottom.sync(s);for(let u of n)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let f of this.panels)f.update&&f.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return o&&{top:o.top.scrollMargin(),bottom:o.bottom.scrollMargin()}})});class RQ{constructor(e,o,f){this.view=e,this.top=o,this.container=f,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let o of this.panels)o.destroy&&e.indexOf(o)<0&&o.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let o=this.container||this.view.dom;o.insertBefore(this.dom,this.top?o.firstChild:null)}let e=this.dom.firstChild;for(let o of this.panels)if(o.dom.parentNode==this.dom){for(;e!=o.dom;)e=Zpe(e);e=e.nextSibling}else this.dom.insertBefore(o.dom,e);for(;e;)e=Zpe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Zpe(t){let e=t.nextSibling;return t.remove(),e}const RI=ls.define({enables:ybe});class IO extends qT{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}IO.prototype.elementClass="";IO.prototype.toDOM=void 0;IO.prototype.mapMode=lg.TrackBefore;IO.prototype.startSide=IO.prototype.endSide=-1;IO.prototype.point=!0;const pH=ls.define(),bAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Df.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sI=ls.define();function xAe(t){return[bbe(),sI.of(Object.assign(Object.assign({},bAe),t))]}const Rse=ls.define({combine:t=>t.some(e=>e)});function bbe(t){let e=[_Ae];return t&&t.fixed===!1&&e.push(Rse.of(!0)),e}const _Ae=bh.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(sI).map(e=>new Wpe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Rse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,o=t.view.viewport,f=Math.min(e.to,o.to)-Math.max(e.from,o.from);this.syncGutters(f<(o.to-o.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Rse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let o=Df.iter(this.view.state.facet(pH),this.view.viewport.from),f=[],E=this.gutters.map(d=>new wAe(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(f.length&&(f=[]),Array.isArray(d.type)){let s=!0;for(let n of d.type)if(n.type==q0.Text&&s){Lse(o,f,n.from);for(let u of E)u.line(this.view,n,f);s=!1}else if(n.widget)for(let u of E)u.widget(this.view,n)}else if(d.type==q0.Text){Lse(o,f,d.from);for(let s of E)s.line(this.view,d,f)}else if(d.widget)for(let s of E)s.widget(this.view,d);for(let d of E)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sI),o=t.state.facet(sI),f=t.docChanged||t.heightChanged||t.viewportChanged||!Df.eq(t.startState.facet(pH),t.state.facet(pH),t.view.viewport.from,t.view.viewport.to);if(e==o)for(let E of this.gutters)E.update(t)&&(f=!0);else{f=!0;let E=[];for(let d of o){let s=e.indexOf(d);s<0?E.push(new Wpe(this.view,d)):(this.gutters[s].update(t),E.push(this.gutters[s]))}for(let d of this.gutters)d.dom.remove(),E.indexOf(d)<0&&d.destroy();for(let d of E)this.dom.appendChild(d.dom);this.gutters=E}return f}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Xa.scrollMargins.of(e=>{let o=e.plugin(t);return!o||o.gutters.length==0||!o.fixed?null:e.textDirection==zh.LTR?{left:o.dom.offsetWidth*e.scaleX}:{right:o.dom.offsetWidth*e.scaleX}})});function qpe(t){return Array.isArray(t)?t:[t]}function Lse(t,e,o){for(;t.value&&t.from<=o;)t.from==o&&e.push(t.value),t.next()}class wAe{constructor(e,o,f){this.gutter=e,this.height=f,this.i=0,this.cursor=Df.iter(e.markers,o.from)}addElement(e,o,f){let{gutter:E}=this,d=(o.top-this.height)/e.scaleY,s=o.height/e.scaleY;if(this.i==E.elements.length){let n=new xbe(e,s,d,f);E.elements.push(n),E.dom.appendChild(n.dom)}else E.elements[this.i].update(e,s,d,f);this.height=o.bottom,this.i++}line(e,o,f){let E=[];Lse(this.cursor,E,o.from),f.length&&(E=E.concat(f));let d=this.gutter.config.lineMarker(e,o,E);d&&E.unshift(d);let s=this.gutter;E.length==0&&!s.config.renderEmptyElements||this.addElement(e,o,E)}widget(e,o){let f=this.gutter.config.widgetMarker(e,o.widget,o);f&&this.addElement(e,o,[f])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let o=e.elements.pop();e.dom.removeChild(o.dom),o.destroy()}}}class Wpe{constructor(e,o){this.view=e,this.config=o,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let f in o.domEventHandlers)this.dom.addEventListener(f,E=>{let d=E.target,s;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let u=d.getBoundingClientRect();s=(u.top+u.bottom)/2}else s=E.clientY;let n=e.lineBlockAtHeight(s-e.documentTop);o.domEventHandlers[f](e,n,E)&&E.preventDefault()});this.markers=qpe(o.markers(e)),o.initialSpacer&&(this.spacer=new xbe(e,0,0,[o.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let o=this.markers;if(this.markers=qpe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let E=this.config.updateSpacer(this.spacer.markers[0],e);E!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[E])}let f=e.view.viewport;return!Df.eq(this.markers,o,f.from,f.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class xbe{constructor(e,o,f,E){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,o,f,E)}update(e,o,f,E){this.height!=o&&(this.height=o,this.dom.style.height=o+"px"),this.above!=f&&(this.dom.style.marginTop=(this.above=f)?f+"px":""),OAe(this.markers,E)||this.setMarkers(e,E)}setMarkers(e,o){let f="cm-gutterElement",E=this.dom.firstChild;for(let d=0,s=0;;){let n=s,u=dd(n,u,b)||s(n,u,b):s}return f}})}});class zie extends IO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Nie(t,e){return t.state.facet($8).formatNumber(e,t.state)}const kAe=sI.compute([$8],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(SAe)},lineMarker(e,o,f){return f.some(E=>E.toDOM)?null:new zie(Nie(e,e.state.doc.lineAt(o.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet($8)!=e.state.facet($8),initialSpacer(e){return new zie(Nie(e,Ype(e.state.doc.lines)))},updateSpacer(e,o){let f=Nie(o.view,Ype(o.view.state.doc.lines));return f==e.number?e:new zie(f)},domEventHandlers:t.facet($8).domEventHandlers}));function TAe(t={}){return[$8.of(t),bbe(),kAe]}function Ype(t){let e=9;for(;e{let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.head).from;E>o&&(o=E,e.push(CAe.range(E)))}return Df.of(e)});function MAe(){return AAe}const _be=1024;let EAe=0,eb=class{constructor(e,o){this.from=e,this.to=o}};class Zl{constructor(e={}){this.id=EAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Jp.match(e)),o=>{let f=e(o);return f===void 0?null:[this,f]}}}Zl.closedBy=new Zl({deserialize:t=>t.split(" ")});Zl.openedBy=new Zl({deserialize:t=>t.split(" ")});Zl.group=new Zl({deserialize:t=>t.split(" ")});Zl.contextHash=new Zl({perNode:!0});Zl.lookAhead=new Zl({perNode:!0});Zl.mounted=new Zl({perNode:!0});class LI{constructor(e,o,f){this.tree=e,this.overlay=o,this.parser=f}static get(e){return e&&e.props&&e.props[Zl.mounted.id]}}const PAe=Object.create(null);class Jp{constructor(e,o,f,E=0){this.name=e,this.props=o,this.id=f,this.flags=E}static define(e){let o=e.props&&e.props.length?Object.create(null):PAe,f=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),E=new Jp(e.name||"",o,e.id,f);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(E)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");o[d[0].id]=d[1]}}return E}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let o=this.prop(Zl.group);return o?o.indexOf(e)>-1:!1}return this.id==e}static match(e){let o=Object.create(null);for(let f in e)for(let E of f.split(" "))o[E]=e[f];return f=>{for(let E=f.prop(Zl.group),d=-1;d<(E?E.length:0);d++){let s=o[d<0?f.name:E[d]];if(s)return s}}}}Jp.none=new Jp("",Object.create(null),0,8);class hD{constructor(e){this.types=e;for(let o=0;o0;for(let u=this.cursor(s|pd.IncludeAnonymous);;){let b=!1;if(u.from<=d&&u.to>=E&&(!n&&u.type.isAnonymous||o(u)!==!1)){if(u.firstChild())continue;b=!0}for(;b&&f&&(n||!u.type.isAnonymous)&&f(u),!u.nextSibling();){if(!u.parent())return;b=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let o in this.props)e.push([+o,this.props[o]]);return e}balance(e={}){return this.children.length<=8?this:Lce(Jp.none,this.children,this.positions,0,this.children.length,0,this.length,(o,f,E)=>new gf(this.type,o,f,E,this.propValues),e.makeTree||((o,f,E)=>new gf(Jp.none,o,f,E)))}static build(e){return DAe(e)}}gf.empty=new gf(Jp.none,[],[],0);class Pce{constructor(e,o){this.buffer=e,this.index=o}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Pce(this.buffer,this.index)}}class w4{constructor(e,o,f){this.buffer=e,this.length=o,this.set=f}get type(){return Jp.none}toString(){let e=[];for(let o=0;o0));u=s[u+3]);return n}slice(e,o,f){let E=this.buffer,d=new Uint16Array(o-e),s=0;for(let n=e,u=0;n=e&&oe;case 1:return o<=e&&f>e;case 2:return f>e;case 4:return!0}}function II(t,e,o,f){for(var E;t.from==t.to||(o<1?t.from>=e:t.from>e)||(o>-1?t.to<=e:t.to0?n.length:-1;e!=b;e+=o){let i=n[e],S=u[e]+s.from;if(wbe(E,f,S,S+i.length)){if(i instanceof w4){if(d&pd.ExcludeBuffers)continue;let w=i.findChild(0,i.buffer.length,o,f-S,E);if(w>-1)return new b_(new RAe(s,i,e,S),null,w)}else if(d&pd.IncludeAnonymous||!i.type.isAnonymous||Rce(i)){let w;if(!(d&pd.IgnoreMounts)&&(w=LI.get(i))&&!w.overlay)return new e0(w.tree,S,e,s);let y=new e0(i,S,e,s);return d&pd.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(o<0?i.children.length-1:0,o,f,E)}}}if(d&pd.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+o:e=o<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,o,f=0){let E;if(!(f&pd.IgnoreOverlays)&&(E=LI.get(this._tree))&&E.overlay){let d=e-this.from;for(let{from:s,to:n}of E.overlay)if((o>0?s<=d:s=d:n>d))return new e0(E.tree,E.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,o,f)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Gpe(t,e,o,f){let E=t.cursor(),d=[];if(!E.firstChild())return d;if(o!=null){for(;!E.type.is(o);)if(!E.nextSibling())return d}for(;;){if(f!=null&&E.type.is(f))return d;if(E.type.is(e)&&d.push(E.node),!E.nextSibling())return f==null?d:[]}}function Ise(t,e,o=e.length-1){for(let f=t.parent;o>=0;f=f.parent){if(!f)return!1;if(!f.type.isAnonymous){if(e[o]&&e[o]!=f.name)return!1;o--}}return!0}class RAe{constructor(e,o,f,E){this.parent=e,this.buffer=o,this.index=f,this.start=E}}class b_ extends Obe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,o,f){super(),this.context=e,this._parent=o,this.index=f,this.type=e.buffer.set.types[e.buffer.buffer[f]]}child(e,o,f){let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.context.start,f);return d<0?null:new b_(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,o,f=0){if(f&pd.ExcludeBuffers)return null;let{buffer:E}=this.context,d=E.findChild(this.index+4,E.buffer[this.index+3],o>0?1:-1,e-this.context.start,o);return d<0?null:new b_(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,o=e.buffer[this.index+3];return o<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new b_(this.context,this._parent,o):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,o=this._parent?this._parent.index+4:0;return this.index==o?this.externalSibling(-1):new b_(this.context,this._parent,e.findChild(o,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],o=[],{buffer:f}=this.context,E=this.index+4,d=f.buffer[this.index+3];if(d>E){let s=f.buffer[this.index+1];e.push(f.slice(E,d,s)),o.push(0)}return new gf(this.type,e,o,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Sbe(t){if(!t.length)return null;let e=0,o=t[0];for(let d=1;do.from||s.to=e){let n=new e0(s.tree,s.overlay[0].from+d.from,-1,d);(E||(E=[f])).push(II(n,e,o,!1))}}return E?Sbe(E):f}class UH{get name(){return this.type.name}constructor(e,o=0){if(this.mode=o,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof e0)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let f=e._parent;f;f=f._parent)this.stack.unshift(f.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,o){this.index=e;let{start:f,buffer:E}=this.buffer;return this.type=o||E.set.types[E.buffer[e]],this.from=f+E.buffer[e+1],this.to=f+E.buffer[e+2],!0}yield(e){return e?e instanceof e0?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,o,f){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,o,f,this.mode));let{buffer:E}=this.buffer,d=E.findChild(this.index+4,E.buffer[this.index+3],e,o-this.buffer.start,f);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,o,f=this.mode){return this.buffer?f&pd.ExcludeBuffers?!1:this.enterChild(1,e,o):this.yield(this._tree.enter(e,o,f))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pd.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pd.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:o}=this.buffer,f=this.stack.length-1;if(e<0){let E=f<0?0:this.stack[f]+4;if(this.index!=E)return this.yieldBuf(o.findChild(E,this.index,-1,0,4))}else{let E=o.buffer[this.index+3];if(E<(f<0?o.buffer.length:o.buffer[this.stack[f]+3]))return this.yieldBuf(E)}return f<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let o,f,{buffer:E}=this;if(E){if(e>0){if(this.index-1)for(let d=o+e,s=e<0?-1:f._tree.children.length;d!=s;d+=e){let n=f._tree.children[d];if(this.mode&pd.IncludeAnonymous||n instanceof w4||!n.type.isAnonymous||Rce(n))return!1}return!0}move(e,o){if(o&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,o=0){for(;(this.from==this.to||(o<1?this.from>=e:this.from>e)||(o>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==E){if(E==this.index)return s;o=s,f=d+1;break e}E=this.stack[--d]}for(let E=f;E=0;d--){if(d<0)return Ise(this.node,e,E);let s=f[o.buffer[this.stack[d]]];if(!s.isAnonymous){if(e[E]&&e[E]!=s.name)return!1;E--}}return!0}}function Rce(t){return t.children.some(e=>e instanceof w4||!e.type.isAnonymous||Rce(e))}function DAe(t){var e;let{buffer:o,nodeSet:f,maxBufferLength:E=_be,reused:d=[],minRepeatType:s=f.types.length}=t,n=Array.isArray(o)?new Pce(o,o.length):o,u=f.types,b=0,i=0;function S(O,C,x,R,M,T){let{id:P,start:A,end:L,size:D}=n,k=i;for(;D<0;)if(n.next(),D==-1){let j=d[P];x.push(j),R.push(A-O);return}else if(D==-3){b=P;return}else if(D==-4){i=P;return}else throw new RangeError(`Unrecognized record size: ${D}`);let I=u[P],z,$,Q=A-O;if(L-A<=E&&($=c(n.pos-C,M))){let j=new Uint16Array($.size-$.skip),U=n.pos-$.size,X=j.length;for(;n.pos>U;)X=h($.start,j,X);z=new w4(j,L-$.start,f),Q=$.start-O}else{let j=n.pos-D;n.next();let U=[],X=[],te=P>=s?P:-1,Z=0,K=L;for(;n.pos>j;)te>=0&&n.id==te&&n.size>=0?(n.end<=K-E&&(m(U,X,A,Z,n.end,K,te,k),Z=U.length,K=n.end),n.next()):T>2500?w(A,j,U,X):S(A,j,U,X,te,T+1);if(te>=0&&Z>0&&Z-1&&Z>0){let re=y(I);z=Lce(I,U,X,0,U.length,0,L-A,re,re)}else z=a(I,U,X,L-A,k-L)}x.push(z),R.push(Q)}function w(O,C,x,R){let M=[],T=0,P=-1;for(;n.pos>C;){let{id:A,start:L,end:D,size:k}=n;if(k>4)n.next();else{if(P>-1&&L=0;D-=3)A[k++]=M[D],A[k++]=M[D+1]-L,A[k++]=M[D+2]-L,A[k++]=k;x.push(new w4(A,M[2]-L,f)),R.push(L-O)}}function y(O){return(C,x,R)=>{let M=0,T=C.length-1,P,A;if(T>=0&&(P=C[T])instanceof gf){if(!T&&P.type==O&&P.length==R)return P;(A=P.prop(Zl.lookAhead))&&(M=x[T]+P.length+A)}return a(O,C,x,R,M)}}function m(O,C,x,R,M,T,P,A){let L=[],D=[];for(;O.length>R;)L.push(O.pop()),D.push(C.pop()+x-M);O.push(a(f.types[P],L,D,T-M,A-T)),C.push(M-x)}function a(O,C,x,R,M=0,T){if(b){let P=[Zl.contextHash,b];T=T?[P].concat(T):[P]}if(M>25){let P=[Zl.lookAhead,M];T=T?[P].concat(T):[P]}return new gf(O,C,x,R,T)}function c(O,C){let x=n.fork(),R=0,M=0,T=0,P=x.end-E,A={size:0,start:0,skip:0};e:for(let L=x.pos-O;x.pos>L;){let D=x.size;if(x.id==C&&D>=0){A.size=R,A.start=M,A.skip=T,T+=4,R+=4,x.next();continue}let k=x.pos-D;if(D<0||k=s?4:0,z=x.start;for(x.next();x.pos>k;){if(x.size<0)if(x.size==-3)I+=4;else break e;else x.id>=s&&(I+=4);x.next()}M=z,R+=D,T+=I}return(C<0||R==O)&&(A.size=R,A.start=M,A.skip=T),A.size>4?A:void 0}function h(O,C,x){let{id:R,start:M,end:T,size:P}=n;if(n.next(),P>=0&&R4){let L=n.pos-(P-4);for(;n.pos>L;)x=h(O,C,x)}C[--x]=A,C[--x]=T-O,C[--x]=M-O,C[--x]=R}else P==-3?b=R:P==-4&&(i=R);return x}let p=[],v=[];for(;n.pos>0;)S(t.start||0,t.bufferStart||0,p,v,-1,0);let _=(e=t.length)!==null&&e!==void 0?e:p.length?v[0]+p[0].length:0;return new gf(u[t.topID],p.reverse(),v.reverse(),_)}const Kpe=new WeakMap;function mH(t,e){if(!t.isAnonymous||e instanceof w4||e.type!=t)return 1;let o=Kpe.get(e);if(o==null){o=1;for(let f of e.children){if(f.type!=t||!(f instanceof gf)){o=1;break}o+=mH(t,f)}Kpe.set(e,o)}return o}function Lce(t,e,o,f,E,d,s,n,u){let b=0;for(let m=f;m=i)break;C+=x}if(v==_+1){if(C>i){let x=m[_];y(x.children,x.positions,0,x.children.length,a[_]+p);continue}S.push(m[_])}else{let x=a[v-1]+m[v-1].length-O;S.push(Lce(t,m,a,_,v,O,x,null,u))}w.push(O+p-d)}}return y(e,o,f,E,0),(n||u)(S,w,s)}class Ice{constructor(){this.map=new WeakMap}setBuffer(e,o,f){let E=this.map.get(e);E||this.map.set(e,E=new Map),E.set(o,f)}getBuffer(e,o){let f=this.map.get(e);return f&&f.get(o)}set(e,o){e instanceof b_?this.setBuffer(e.context.buffer,e.index,o):e instanceof e0&&this.map.set(e.tree,o)}get(e){return e instanceof b_?this.getBuffer(e.context.buffer,e.index):e instanceof e0?this.map.get(e.tree):void 0}cursorSet(e,o){e.buffer?this.setBuffer(e.buffer.buffer,e.index,o):this.map.set(e.tree,o)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class AO{constructor(e,o,f,E,d=!1,s=!1){this.from=e,this.to=o,this.tree=f,this.offset=E,this.open=(d?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,o=[],f=!1){let E=[new AO(0,e.length,e,0,!1,f)];for(let d of o)d.to>e.length&&E.push(d);return E}static applyChanges(e,o,f=128){if(!o.length)return e;let E=[],d=1,s=e.length?e[0]:null;for(let n=0,u=0,b=0;;n++){let i=n=f)for(;s&&s.from=w.from||S<=w.to||b){let y=Math.max(w.from,u)-b,m=Math.min(w.to,S)-b;w=y>=m?null:new AO(y,m,w.tree,w.offset+b,n>0,!!i)}if(w&&E.push(w),s.to>S)break;s=dnew eb(E.from,E.to)):[new eb(0,0)]:[new eb(0,e.length)],this.createParse(e,o||[],f)}parse(e,o,f){let E=this.startParse(e,o,f);for(;;){let d=E.advance();if(d)return d}}}class BAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,o){return this.string.slice(e,o)}}function kbe(t){return(e,o,f,E)=>new NAe(e,t,o,f,E)}class Jpe{constructor(e,o,f,E,d){this.parser=e,this.parse=o,this.overlay=f,this.target=E,this.from=d}}function eme(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class zAe{constructor(e,o,f,E,d,s,n){this.parser=e,this.predicate=o,this.mounts=f,this.index=E,this.start=d,this.target=s,this.prev=n,this.depth=0,this.ranges=[]}}const Dse=new Zl({perNode:!0});class NAe{constructor(e,o,f,E,d){this.nest=o,this.input=f,this.fragments=E,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let f=this.baseParse.advance();if(!f)return null;if(this.baseParse=null,this.baseTree=f,this.startInner(),this.stoppedAt!=null)for(let E of this.inner)E.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let f=this.baseTree;return this.stoppedAt!=null&&(f=new gf(f.type,f.children,f.positions,f.length,f.propValues.concat([[Dse,this.stoppedAt]]))),f}let e=this.inner[this.innerDone],o=e.parse.advance();if(o){this.innerDone++;let f=Object.assign(Object.create(null),e.target.props);f[Zl.mounted.id]=new LI(o,e.overlay,e.parser),e.target.props=f}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let o=this.innerDone;o=this.stoppedAt)n=!1;else if(e.hasNode(E)){if(o){let b=o.mounts.find(i=>i.frag.from<=E.from&&i.frag.to>=E.to&&i.mount.overlay);if(b)for(let i of b.mount.overlay){let S=i.from+b.pos,w=i.to+b.pos;S>=E.from&&w<=E.to&&!o.ranges.some(y=>y.fromS)&&o.ranges.push({from:S,to:w})}}n=!1}else if(f&&(s=FAe(f.ranges,E.from,E.to)))n=s!=2;else if(!E.type.isAnonymous&&(d=this.nest(E,this.input))&&(E.fromnew eb(S.from-E.from,S.to-E.from)):null,E.tree,i.length?i[0].from:E.from)),d.overlay?i.length&&(f={ranges:i,depth:0,prev:f}):n=!1}}else o&&(u=o.predicate(E))&&(u===!0&&(u=new eb(E.from,E.to)),u.fromnew eb(i.from-o.start,i.to-o.start)),o.target,b[0].from))),o=o.prev}f&&!--f.depth&&(f=f.prev)}}}}function FAe(t,e,o){for(let f of t){if(f.from>=o)break;if(f.to>e)return f.from<=e&&f.to>=o?2:1}return 0}function tme(t,e,o,f,E,d){if(e=e.to);f++);let s=E.children[f],n=s.buffer,u=[f];function b(i,S,w,y,m,a){let c=o[a],h=[],p=[];tme(s,i,c,h,p,y);let v=n[c+1],_=n[c+2];u.push(h.length);let O=a?b(c+4,n[c+3],s.set.types[n[c]],v,_-v,a-1):e.toTree();return h.push(O),p.push(v-y),tme(s,n[c+3],S,h,p,y),new gf(w,h,p,m)}E.children[f]=b(0,n.length,Jp.none,0,s.length,o.length-1);for(let i of u){let S=t.tree.children[i],w=t.tree.positions[i];t.yield(new e0(S,w+t.from,i,t._tree))}}class nme{constructor(e,o){this.offset=o,this.done=!1,this.cursor=e.cursor(pd.IncludeAnonymous|pd.IgnoreMounts)}moveTo(e){let{cursor:o}=this,f=e-this.offset;for(;!this.done&&o.from=e&&o.enter(f,1,pd.IgnoreOverlays|pd.ExcludeBuffers)||o.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let o=this.cursor.tree;;){if(o==e.tree)return!0;if(o.children.length&&o.positions[0]==0&&o.children[0]instanceof gf)o=o.children[0];else break}return!1}}let VAe=class{constructor(e){var o;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let f=this.curFrag=e[0];this.curTo=(o=f.tree.prop(Dse))!==null&&o!==void 0?o:f.to,this.inner=new nme(f.tree,-f.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let o=this.curFrag=this.fragments[this.fragI];this.curTo=(e=o.tree.prop(Dse))!==null&&e!==void 0?e:o.to,this.inner=new nme(o.tree,-o.offset)}}findMounts(e,o){var f;let E=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let s=(f=d.tree)===null||f===void 0?void 0:f.prop(Zl.mounted);if(s&&s.parser==o)for(let n=this.fragI;n=d.to)break;u.tree==this.curFrag.tree&&E.push({frag:u,pos:d.from-u.offset,mount:s})}}}return E}};function rme(t,e){let o=null,f=e;for(let E=1,d=0;E=n)break;u.to<=s||(o||(f=o=e.slice()),u.fromn&&o.splice(d+1,0,new eb(n,u.to))):u.to>n?o[d--]=new eb(n,u.to):o.splice(d--,1))}}return f}function UAe(t,e,o,f){let E=0,d=0,s=!1,n=!1,u=-1e9,b=[];for(;;){let i=E==t.length?1e9:s?t[E].to:t[E].from,S=d==e.length?1e9:n?e[d].to:e[d].from;if(s!=n){let w=Math.max(u,o),y=Math.min(i,S,f);wnew eb(w.from+f,w.to+f)),S=UAe(e,i,u,b);for(let w=0,y=u;;w++){let m=w==S.length,a=m?b:S[w].from;if(a>y&&o.push(new AO(y,a,E.tree,-s,d.from>=y||d.openStart,d.to<=a||d.openEnd)),m)break;y=S[w].to}}else o.push(new AO(u,b,E.tree,-s,d.from>=s||d.openStart,d.to<=n||d.openEnd))}return o}let jAe=0;class yx{constructor(e,o,f){this.set=e,this.base=o,this.modified=f,this.id=jAe++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let o=new yx([],null,[]);if(o.set.push(o),e)for(let f of e.set)o.set.push(f);return o}static defineModifier(){let e=new jH;return o=>o.modified.indexOf(e)>-1?o:jH.get(o.base||o,o.modified.concat(e).sort((f,E)=>f.id-E.id))}}let QAe=0;class jH{constructor(){this.instances=[],this.id=QAe++}static get(e,o){if(!o.length)return e;let f=o[0].instances.find(n=>n.base==e&&HAe(o,n.modified));if(f)return f;let E=[],d=new yx(E,e,o);for(let n of o)n.instances.push(d);let s=ZAe(o);for(let n of e.set)if(!n.modified.length)for(let u of s)E.push(jH.get(n,u));return d}}function HAe(t,e){return t.length==e.length&&t.every((o,f)=>o==e[f])}function ZAe(t){let e=[[]];for(let o=0;of.length-o.length)}function M4(t){let e=Object.create(null);for(let o in t){let f=t[o];Array.isArray(f)||(f=[f]);for(let E of o.split(" "))if(E){let d=[],s=2,n=E;for(let S=0;;){if(n=="..."&&S>0&&S+3==E.length){s=1;break}let w=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!w)throw new RangeError("Invalid path: "+E);if(d.push(w[0]=="*"?"":w[0][0]=='"'?JSON.parse(w[0]):w[0]),S+=w[0].length,S==E.length)break;let y=E[S++];if(S==E.length&&y=="!"){s=0;break}if(y!="/")throw new RangeError("Invalid path: "+E);n=E.slice(S)}let u=d.length-1,b=d[u];if(!b)throw new RangeError("Invalid path: "+E);let i=new QH(f,s,u>0?d.slice(0,u):null);e[b]=i.sort(e[b])}}return Tbe.add(e)}const Tbe=new Zl;class QH{constructor(e,o,f,E){this.tags=e,this.mode=o,this.context=f,this.next=E}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let s=E;for(let n of d)for(let u of n.set){let b=o[u.id];if(b){s=s?s+" "+b:b;break}}return s},scope:f}}function qAe(t,e){let o=null;for(let f of t){let E=f.style(e);E&&(o=o?o+" "+E:E)}return o}function WAe(t,e,o,f=0,E=t.length){let d=new YAe(f,Array.isArray(e)?e:[e],o);d.highlightRange(t.cursor(),f,E,"",d.highlighters),d.flush(E)}class YAe{constructor(e,o,f){this.at=e,this.highlighters=o,this.span=f,this.class=""}startSpan(e,o){o!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=o)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,o,f,E,d){let{type:s,from:n,to:u}=e;if(n>=f||u<=o)return;s.isTop&&(d=this.highlighters.filter(y=>!y.scope||y.scope(s)));let b=E,i=XAe(e)||QH.empty,S=qAe(d,i.tags);if(S&&(b&&(b+=" "),b+=S,i.mode==1&&(E+=(E?" ":"")+S)),this.startSpan(Math.max(o,n),b),i.opaque)return;let w=e.tree&&e.tree.prop(Zl.mounted);if(w&&w.overlay){let y=e.node.enter(w.overlay[0].from+n,1),m=this.highlighters.filter(c=>!c.scope||c.scope(w.tree.type)),a=e.firstChild();for(let c=0,h=n;;c++){let p=c=v||!e.nextSibling())););if(!p||v>f)break;h=p.to+n,h>o&&(this.highlightRange(y.cursor(),Math.max(o,p.from+n),Math.min(f,h),"",m),this.startSpan(Math.min(f,h),b))}a&&e.parent()}else if(e.firstChild()){w&&(E="");do if(!(e.to<=o)){if(e.from>=f)break;this.highlightRange(e,o,f,E,d),this.startSpan(Math.min(f,e.to),b)}while(e.nextSibling());e.parent()}}}function XAe(t){let e=t.type.prop(Tbe);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ma=yx.define,IQ=Ma(),r4=Ma(),ime=Ma(r4),ame=Ma(r4),o4=Ma(),DQ=Ma(o4),Fie=Ma(o4),h_=Ma(),OT=Ma(h_),f_=Ma(),d_=Ma(),Bse=Ma(),LL=Ma(Bse),BQ=Ma(),hr={comment:IQ,lineComment:Ma(IQ),blockComment:Ma(IQ),docComment:Ma(IQ),name:r4,variableName:Ma(r4),typeName:ime,tagName:Ma(ime),propertyName:ame,attributeName:Ma(ame),className:Ma(r4),labelName:Ma(r4),namespace:Ma(r4),macroName:Ma(r4),literal:o4,string:DQ,docString:Ma(DQ),character:Ma(DQ),attributeValue:Ma(DQ),number:Fie,integer:Ma(Fie),float:Ma(Fie),bool:Ma(o4),regexp:Ma(o4),escape:Ma(o4),color:Ma(o4),url:Ma(o4),keyword:f_,self:Ma(f_),null:Ma(f_),atom:Ma(f_),unit:Ma(f_),modifier:Ma(f_),operatorKeyword:Ma(f_),controlKeyword:Ma(f_),definitionKeyword:Ma(f_),moduleKeyword:Ma(f_),operator:d_,derefOperator:Ma(d_),arithmeticOperator:Ma(d_),logicOperator:Ma(d_),bitwiseOperator:Ma(d_),compareOperator:Ma(d_),updateOperator:Ma(d_),definitionOperator:Ma(d_),typeOperator:Ma(d_),controlOperator:Ma(d_),punctuation:Bse,separator:Ma(Bse),bracket:LL,angleBracket:Ma(LL),squareBracket:Ma(LL),paren:Ma(LL),brace:Ma(LL),content:h_,heading:OT,heading1:Ma(OT),heading2:Ma(OT),heading3:Ma(OT),heading4:Ma(OT),heading5:Ma(OT),heading6:Ma(OT),contentSeparator:Ma(h_),list:Ma(h_),quote:Ma(h_),emphasis:Ma(h_),strong:Ma(h_),link:Ma(h_),monospace:Ma(h_),strikethrough:Ma(h_),inserted:Ma(),deleted:Ma(),changed:Ma(),invalid:Ma(),meta:BQ,documentMeta:Ma(BQ),annotation:Ma(BQ),processingInstruction:Ma(BQ),definition:yx.defineModifier(),constant:yx.defineModifier(),function:yx.defineModifier(),standard:yx.defineModifier(),local:yx.defineModifier(),special:yx.defineModifier()};Cbe([{tag:hr.link,class:"tok-link"},{tag:hr.heading,class:"tok-heading"},{tag:hr.emphasis,class:"tok-emphasis"},{tag:hr.strong,class:"tok-strong"},{tag:hr.keyword,class:"tok-keyword"},{tag:hr.atom,class:"tok-atom"},{tag:hr.bool,class:"tok-bool"},{tag:hr.url,class:"tok-url"},{tag:hr.labelName,class:"tok-labelName"},{tag:hr.inserted,class:"tok-inserted"},{tag:hr.deleted,class:"tok-deleted"},{tag:hr.literal,class:"tok-literal"},{tag:hr.string,class:"tok-string"},{tag:hr.number,class:"tok-number"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],class:"tok-string2"},{tag:hr.variableName,class:"tok-variableName"},{tag:hr.local(hr.variableName),class:"tok-variableName tok-local"},{tag:hr.definition(hr.variableName),class:"tok-variableName tok-definition"},{tag:hr.special(hr.variableName),class:"tok-variableName2"},{tag:hr.definition(hr.propertyName),class:"tok-propertyName tok-definition"},{tag:hr.typeName,class:"tok-typeName"},{tag:hr.namespace,class:"tok-namespace"},{tag:hr.className,class:"tok-className"},{tag:hr.macroName,class:"tok-macroName"},{tag:hr.propertyName,class:"tok-propertyName"},{tag:hr.operator,class:"tok-operator"},{tag:hr.comment,class:"tok-comment"},{tag:hr.meta,class:"tok-meta"},{tag:hr.invalid,class:"tok-invalid"},{tag:hr.punctuation,class:"tok-punctuation"}]);var $ie;const NT=new Zl;function Bce(t){return ls.define({combine:t?e=>e.concat(t):void 0})}const zce=new Zl;class tb{constructor(e,o,f=[],E=""){this.data=e,this.name=E,kc.prototype.hasOwnProperty("tree")||Object.defineProperty(kc.prototype,"tree",{get(){return Gf(this)}}),this.parser=o,this.extension=[S4.of(this),kc.languageData.of((d,s,n)=>{let u=sme(d,s,n),b=u.type.prop(NT);if(!b)return[];let i=d.facet(b),S=u.type.prop(zce);if(S){let w=u.resolve(s-u.from,n);for(let y of S)if(y.test(w,d)){let m=d.facet(y.facet);return y.type=="replace"?m:m.concat(i)}}return i})].concat(f)}isActiveAt(e,o,f=-1){return sme(e,o,f).type.prop(NT)==this.data}findRegions(e){let o=e.facet(S4);if((o==null?void 0:o.data)==this.data)return[{from:0,to:e.doc.length}];if(!o||!o.allowsNesting)return[];let f=[],E=(d,s)=>{if(d.prop(NT)==this.data){f.push({from:s,to:s+d.length});return}let n=d.prop(Zl.mounted);if(n){if(n.tree.prop(NT)==this.data){if(n.overlay)for(let u of n.overlay)f.push({from:u.from+s,to:u.to+s});else f.push({from:s,to:s+d.length});return}else if(n.overlay){let u=f.length;if(E(n.tree,n.overlay[0].from+s),f.length>u)return}}for(let u=0;uf.isTop?o:void 0)]}),e.name)}configure(e,o){return new O4(this.data,this.parser.configure(e),o||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gf(t){let e=t.field(tb.state,!1);return e?e.tree:gf.empty}class GAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,o){let f=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,o):this.string.slice(e-f,o-f)}}let IL=null;class DI{constructor(e,o,f=[],E,d,s,n,u){this.parser=e,this.state=o,this.fragments=f,this.tree=E,this.treeLen=d,this.viewport=s,this.skipped=n,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,o,f){return new DI(e,o,[],gf.empty,0,f,[],null)}startParse(){return this.parser.startParse(new GAe(this.state.doc),this.fragments)}work(e,o){return o!=null&&o>=this.state.doc.length&&(o=void 0),this.tree!=gf.empty&&this.isDone(o??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var f;if(typeof e=="number"){let E=Date.now()+e;e=()=>Date.now()>E}for(this.parse||(this.parse=this.startParse()),o!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>o)&&o=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(o=this.parse.advance()););}),this.treeLen=e,this.tree=o,this.fragments=this.withoutTempSkipped(AO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let o=IL;IL=this;try{return e()}finally{IL=o}}withoutTempSkipped(e){for(let o;o=this.tempSkipped.pop();)e=lme(e,o.from,o.to);return e}changes(e,o){let{fragments:f,tree:E,treeLen:d,viewport:s,skipped:n}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((b,i,S,w)=>u.push({fromA:b,toA:i,fromB:S,toB:w})),f=AO.applyChanges(f,u),E=gf.empty,d=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){n=[];for(let b of this.skipped){let i=e.mapPos(b.from,1),S=e.mapPos(b.to,-1);ie.from&&(this.fragments=lme(this.fragments,E,d),this.skipped.splice(f--,1))}return this.skipped.length>=o?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,o){this.skipped.push({from:e,to:o})}static getSkippingParser(e){return new class extends Dce{createParse(o,f,E){let d=E[0].from,s=E[E.length-1].to;return{parsedPos:d,advance(){let u=IL;if(u){for(let b of E)u.tempSkipped.push(b);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=s,new gf(Jp.none,[],[],s-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let o=this.fragments;return this.treeLen>=e&&o.length&&o[0].from==0&&o[0].to>=e}static get(){return IL}}function lme(t,e,o){return AO.applyChanges(t,[{fromA:e,toA:o,fromB:e,toB:o}])}class fM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let o=this.context.changes(e.changes,e.state),f=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),o.viewport.to);return o.work(20,f)||o.takeTree(),new fM(o)}static init(e){let o=Math.min(3e3,e.doc.length),f=DI.create(e.facet(S4).parser,e,{from:0,to:o});return f.work(20,o)||f.takeTree(),new fM(f)}}tb.state=tm.define({create:fM.init,update(t,e){for(let o of e.effects)if(o.is(tb.setState))return o.value;return e.startState.facet(S4)!=e.state.facet(S4)?fM.init(e.state):t.apply(e)}});let Abe=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Abe=t=>{let e=-1,o=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(o):cancelIdleCallback(e)});const Vie=typeof navigator<"u"&&(!(($ie=navigator.scheduling)===null||$ie===void 0)&&$ie.isInputPending)?()=>navigator.scheduling.isInputPending():null,KAe=bh.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let o=this.view.state.field(tb.state).context;(o.updateViewport(e.view.viewport)||this.view.viewport.to>o.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(o)}scheduleWork(){if(this.working)return;let{state:e}=this.view,o=e.field(tb.state);(o.tree!=o.context.tree||!o.context.isDone(e.doc.length))&&(this.working=Abe(this.work))}work(e){this.working=null;let o=Date.now();if(this.chunkEndE+1e3,u=d.context.work(()=>Vie&&Vie()||Date.now()>s,E+(n?0:1e5));this.chunkBudget-=Date.now()-o,(u||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:tb.setState.of(new fM(d.context))})),this.chunkBudget>0&&!(u&&!n)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(o=>ey(this.view.state,o)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),S4=ls.define({combine(t){return t.length?t[0]:null},enables:t=>[tb.state,KAe,Xa.contentAttributes.compute([t],e=>{let o=e.facet(t);return o&&o.name?{"data-language":o.name}:{}})]});class YT{constructor(e,o=[]){this.language=e,this.support=o,this.extension=[e,o]}}class HH{constructor(e,o,f,E,d,s=void 0){this.name=e,this.alias=o,this.extensions=f,this.filename=E,this.loadFunc=d,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:o,support:f}=e;if(!o){if(!f)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");o=()=>Promise.resolve(f)}return new HH(e.name,(e.alias||[]).concat(e.name).map(E=>E.toLowerCase()),e.extensions||[],e.filename,o,f)}static matchFilename(e,o){for(let E of e)if(E.filename&&E.filename.test(o))return E;let f=/\.([^.]+)$/.exec(o);if(f){for(let E of e)if(E.extensions.indexOf(f[1])>-1)return E}return null}static matchLanguageName(e,o,f=!0){o=o.toLowerCase();for(let E of e)if(E.alias.some(d=>d==o))return E;if(f)for(let E of e)for(let d of E.alias){let s=o.indexOf(d);if(s>-1&&(d.length>2||!/\w/.test(o[s-1])&&!/\w/.test(o[s+d.length])))return E}return null}}const JAe=ls.define(),tC=ls.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(o=>o!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function ZH(t){let e=t.facet(tC);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function BI(t,e){let o="",f=t.tabSize,E=t.facet(tC)[0];if(E==" "){for(;e>=f;)o+=" ",e-=f;E=" "}for(let d=0;d=e?e8e(t,o,e):null}class GZ{constructor(e,o={}){this.state=e,this.options=o,this.unit=ZH(e)}lineAt(e,o=1){let f=this.state.doc.lineAt(e),{simulateBreak:E,simulateDoubleBreak:d}=this.options;return E!=null&&E>=f.from&&E<=f.to?d&&E==e?{text:"",from:e}:(o<0?E-1&&(d+=s-this.countColumn(f,f.search(/\S|$/))),d}countColumn(e,o=e.length){return kx(e,this.state.tabSize,o)}lineIndent(e,o=1){let{text:f,from:E}=this.lineAt(e,o),d=this.options.overrideIndentation;if(d){let s=d(E);if(s>-1)return s}return this.countColumn(f,f.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const nC=new Zl;function e8e(t,e,o){let f=e.resolveStack(o),E=f.node.enterUnfinishedNodesBefore(o);if(E!=f.node){let d=[];for(let s=E;s!=f.node;s=s.parent)d.push(s);for(let s=d.length-1;s>=0;s--)f={node:d[s],next:f}}return Mbe(f,t,o)}function Mbe(t,e,o){for(let f=t;f;f=f.next){let E=n8e(f.node);if(E)return E(Fce.create(e,o,f))}return 0}function t8e(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function n8e(t){let e=t.type.prop(nC);if(e)return e;let o=t.firstChild,f;if(o&&(f=o.type.prop(Zl.closedBy))){let E=t.lastChild,d=E&&f.indexOf(E.name)>-1;return s=>Ebe(s,!0,1,void 0,d&&!t8e(s)?E.from:void 0)}return t.parent==null?r8e:null}function r8e(){return 0}class Fce extends GZ{constructor(e,o,f){super(e.state,e.options),this.base=e,this.pos=o,this.context=f}get node(){return this.context.node}static create(e,o,f){return new Fce(e,o,f)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let o=this.state.doc.lineAt(e.from);for(;;){let f=e.resolve(o.from);for(;f.parent&&f.parent.from==f.from;)f=f.parent;if(o8e(f,e))break;o=this.state.doc.lineAt(f.from)}return this.lineIndent(o.from)}continue(){return Mbe(this.context.next,this.base,this.pos)}}function o8e(t,e){for(let o=e;o;o=o.parent)if(t==o)return!0;return!1}function i8e(t){let e=t.node,o=e.childAfter(e.from),f=e.lastChild;if(!o)return null;let E=t.options.simulateBreak,d=t.state.doc.lineAt(o.from),s=E==null||E<=d.from?d.to:Math.min(d.to,E);for(let n=o.to;;){let u=e.childAfter(n);if(!u||u==f)return null;if(!u.type.isSkipped)return u.fromEbe(f,e,o,t)}function Ebe(t,e,o,f,E){let d=t.textAfter,s=d.match(/^\s*/)[0].length,n=f&&d.slice(s,s+f.length)==f||E==t.pos+s,u=e?i8e(t):null;return u?n?t.column(u.from):t.column(u.to):t.baseIndent+(n?0:t.unit*o)}const a8e=t=>t.baseIndent;function lI({except:t,units:e=1}={}){return o=>{let f=t&&t.test(o.textAfter);return o.baseIndent+(f?0:e*o.unit)}}const s8e=200;function l8e(){return kc.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let o=t.newDoc,{head:f}=t.newSelection.main,E=o.lineAt(f);if(f>E.from+s8e)return t;let d=o.sliceString(E.from,f);if(!e.some(b=>b.test(d)))return t;let{state:s}=t,n=-1,u=[];for(let{head:b}of s.selection.ranges){let i=s.doc.lineAt(b);if(i.from==n)continue;n=i.from;let S=Nce(s,i.from);if(S==null)continue;let w=/^\s*/.exec(i.text)[0],y=BI(s,S);w!=y&&u.push({from:i.from,to:i.from+w.length,insert:y})}return u.length?[t,{changes:u,sequential:!0}]:t})}const Pbe=ls.define(),E4=new Zl;function $ce(t){let e=t.firstChild,o=t.lastChild;return e&&e.too)continue;if(d&&n.from=e&&b.to>o&&(d=b)}}return d}function u8e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function qH(t,e,o){for(let f of t.facet(Pbe)){let E=f(t,e,o);if(E)return E}return c8e(t,e,o)}function Rbe(t,e){let o=e.mapPos(t.from,1),f=e.mapPos(t.to,-1);return o>=f?void 0:{from:o,to:f}}const KZ=Ql.define({map:Rbe}),pD=Ql.define({map:Rbe});function Lbe(t){let e=[];for(let{head:o}of t.state.selection.ranges)e.some(f=>f.from<=o&&f.to>=o)||e.push(t.lineBlockAt(o));return e}const XT=tm.define({create(){return Ns.none},update(t,e){t=t.map(e.changes);for(let o of e.effects)if(o.is(KZ)&&!f8e(t,o.value.from,o.value.to)){let{preparePlaceholder:f}=e.state.facet(Vce),E=f?Ns.replace({widget:new y8e(f(e.state,o.value))}):cme;t=t.update({add:[E.range(o.value.from,o.value.to)]})}else o.is(pD)&&(t=t.update({filter:(f,E)=>o.value.from!=f||o.value.to!=E,filterFrom:o.value.from,filterTo:o.value.to}));if(e.selection){let o=!1,{head:f}=e.selection.main;t.between(f,f,(E,d)=>{Ef&&(o=!0)}),o&&(t=t.update({filterFrom:f,filterTo:f,filter:(E,d)=>d<=f||E>=f}))}return t},provide:t=>Xa.decorations.from(t),toJSON(t,e){let o=[];return t.between(0,e.doc.length,(f,E)=>{o.push(f,E)}),o},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let o=0;o{(!E||E.from>d)&&(E={from:d,to:s})}),E}function f8e(t,e,o){let f=!1;return t.between(e,e,(E,d)=>{E==e&&d==o&&(f=!0)}),f}function Ibe(t,e){return t.field(XT,!1)?e:e.concat(Ql.appendConfig.of(Bbe()))}const d8e=t=>{for(let e of Lbe(t)){let o=qH(t.state,e.from,e.to);if(o)return t.dispatch({effects:Ibe(t.state,[KZ.of(o),Dbe(t,o)])}),!0}return!1},h8e=t=>{if(!t.state.field(XT,!1))return!1;let e=[];for(let o of Lbe(t)){let f=WH(t.state,o.from,o.to);f&&e.push(pD.of(f),Dbe(t,f,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Dbe(t,e,o=!0){let f=t.state.doc.lineAt(e.from).number,E=t.state.doc.lineAt(e.to).number;return Xa.announce.of(`${t.state.phrase(o?"Folded lines":"Unfolded lines")} ${f} ${t.state.phrase("to")} ${E}.`)}const p8e=t=>{let{state:e}=t,o=[];for(let f=0;f{let e=t.state.field(XT,!1);if(!e||!e.size)return!1;let o=[];return e.between(0,t.state.doc.length,(f,E)=>{o.push(pD.of({from:f,to:E}))}),t.dispatch({effects:o}),!0},g8e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:d8e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:h8e},{key:"Ctrl-Alt-[",run:p8e},{key:"Ctrl-Alt-]",run:m8e}],v8e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Vce=ls.define({combine(t){return E_(t,v8e)}});function Bbe(t){let e=[XT,_8e];return t&&e.push(Vce.of(t)),e}function zbe(t,e){let{state:o}=t,f=o.facet(Vce),E=s=>{let n=t.lineBlockAt(t.posAtDOM(s.target)),u=WH(t.state,n.from,n.to);u&&t.dispatch({effects:pD.of(u)}),s.preventDefault()};if(f.placeholderDOM)return f.placeholderDOM(t,E,e);let d=document.createElement("span");return d.textContent=f.placeholderText,d.setAttribute("aria-label",o.phrase("folded code")),d.title=o.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=E,d}const cme=Ns.replace({widget:new class extends Ex{toDOM(t){return zbe(t,null)}}});class y8e extends Ex{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return zbe(e,this.value)}}const b8e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Uie extends IO{constructor(e,o){super(),this.config=e,this.open=o}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let o=document.createElement("span");return o.textContent=this.open?this.config.openText:this.config.closedText,o.title=e.state.phrase(this.open?"Fold line":"Unfold line"),o}}function x8e(t={}){let e=Object.assign(Object.assign({},b8e),t),o=new Uie(e,!0),f=new Uie(e,!1),E=bh.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(S4)!=s.state.facet(S4)||s.startState.field(XT,!1)!=s.state.field(XT,!1)||Gf(s.startState)!=Gf(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let n=new y4;for(let u of s.viewportLineBlocks){let b=WH(s.state,u.from,u.to)?f:qH(s.state,u.from,u.to)?o:null;b&&n.add(u.from,u.from,b)}return n.finish()}}),{domEventHandlers:d}=e;return[E,xAe({class:"cm-foldGutter",markers(s){var n;return((n=s.plugin(E))===null||n===void 0?void 0:n.markers)||Df.empty},initialSpacer(){return new Uie(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(s,n,u)=>{if(d.click&&d.click(s,n,u))return!0;let b=WH(s.state,n.from,n.to);if(b)return s.dispatch({effects:pD.of(b)}),!0;let i=qH(s.state,n.from,n.to);return i?(s.dispatch({effects:KZ.of(i)}),!0):!1}})}),Bbe()]}const _8e=Xa.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class mD{constructor(e,o){this.specs=e;let f;function E(n){let u=b4.newName();return(f||(f=Object.create(null)))["."+u]=n,u}const d=typeof o.all=="string"?o.all:o.all?E(o.all):void 0,s=o.scope;this.scope=s instanceof tb?n=>n.prop(NT)==s.data:s?n=>n==s:void 0,this.style=Cbe(e.map(n=>({tag:n.tag,class:n.class||E(Object.assign({},n,{tag:null}))})),{all:d}).style,this.module=f?new b4(f):null,this.themeType=o.themeType}static define(e,o){return new mD(e,o||{})}}const zse=ls.define(),Nbe=ls.define({combine(t){return t.length?[t[0]]:null}});function jie(t){let e=t.facet(zse);return e.length?e:t.facet(Nbe)}function Fbe(t,e){let o=[O8e],f;return t instanceof mD&&(t.module&&o.push(Xa.styleModule.of(t.module)),f=t.themeType),e!=null&&e.fallback?o.push(Nbe.of(t)):f?o.push(zse.computeN([Xa.darkTheme],E=>E.facet(Xa.darkTheme)==(f=="dark")?[t]:[])):o.push(zse.of(t)),o}class w8e{constructor(e){this.markCache=Object.create(null),this.tree=Gf(e.state),this.decorations=this.buildDeco(e,jie(e.state))}update(e){let o=Gf(e.state),f=jie(e.state),E=f!=jie(e.startState);o.length{f.add(s,n,this.markCache[u]||(this.markCache[u]=Ns.mark({class:u})))},E,d);return f.finish()}}const O8e=ny.high(bh.fromClass(w8e,{decorations:t=>t.decorations})),S8e=mD.define([{tag:hr.meta,color:"#404740"},{tag:hr.link,textDecoration:"underline"},{tag:hr.heading,textDecoration:"underline",fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strong,fontWeight:"bold"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.keyword,color:"#708"},{tag:[hr.atom,hr.bool,hr.url,hr.contentSeparator,hr.labelName],color:"#219"},{tag:[hr.literal,hr.inserted],color:"#164"},{tag:[hr.string,hr.deleted],color:"#a11"},{tag:[hr.regexp,hr.escape,hr.special(hr.string)],color:"#e40"},{tag:hr.definition(hr.variableName),color:"#00f"},{tag:hr.local(hr.variableName),color:"#30a"},{tag:[hr.typeName,hr.namespace],color:"#085"},{tag:hr.className,color:"#167"},{tag:[hr.special(hr.variableName),hr.macroName],color:"#256"},{tag:hr.definition(hr.propertyName),color:"#00c"},{tag:hr.comment,color:"#940"},{tag:hr.invalid,color:"#f00"}]),k8e=Xa.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),$be=1e4,Vbe="()[]{}",Ube=ls.define({combine(t){return E_(t,{afterCursor:!0,brackets:Vbe,maxScanDistance:$be,renderMatch:A8e})}}),T8e=Ns.mark({class:"cm-matchingBracket"}),C8e=Ns.mark({class:"cm-nonmatchingBracket"});function A8e(t){let e=[],o=t.matched?T8e:C8e;return e.push(o.range(t.start.from,t.start.to)),t.end&&e.push(o.range(t.end.from,t.end.to)),e}const M8e=tm.define({create(){return Ns.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let o=[],f=e.state.facet(Ube);for(let E of e.state.selection.ranges){if(!E.empty)continue;let d=x_(e.state,E.head,-1,f)||E.head>0&&x_(e.state,E.head-1,1,f)||f.afterCursor&&(x_(e.state,E.head,1,f)||E.headXa.decorations.from(t)}),E8e=[M8e,k8e];function P8e(t={}){return[Ube.of(t),E8e]}const jbe=new Zl;function Nse(t,e,o){let f=t.prop(e<0?Zl.openedBy:Zl.closedBy);if(f)return f;if(t.name.length==1){let E=o.indexOf(t.name);if(E>-1&&E%2==(e<0?1:0))return[o[E+e]]}return null}function Fse(t){let e=t.type.prop(jbe);return e?e(t.node):t}function x_(t,e,o,f={}){let E=f.maxScanDistance||$be,d=f.brackets||Vbe,s=Gf(t),n=s.resolveInner(e,o);for(let u=n;u;u=u.parent){let b=Nse(u.type,o,d);if(b&&u.from0?e>=i.from&&ei.from&&e<=i.to))return R8e(t,e,o,u,i,b,d)}}return L8e(t,e,o,s,n.type,E,d)}function R8e(t,e,o,f,E,d,s){let n=f.parent,u={from:E.from,to:E.to},b=0,i=n==null?void 0:n.cursor();if(i&&(o<0?i.childBefore(f.from):i.childAfter(f.to)))do if(o<0?i.to<=f.from:i.from>=f.to){if(b==0&&d.indexOf(i.type.name)>-1&&i.from0)return null;let b={from:o<0?e-1:e,to:o>0?e+1:e},i=t.doc.iterRange(e,o>0?t.doc.length:0),S=0;for(let w=0;!i.next().done&&w<=d;){let y=i.value;o<0&&(w+=y.length);let m=e+w*o;for(let a=o>0?0:y.length-1,c=o>0?y.length:-1;a!=c;a+=o){let h=s.indexOf(y[a]);if(!(h<0||f.resolveInner(m+a,1).type!=E))if(h%2==0==o>0)S++;else{if(S==1)return{start:b,end:{from:m+a,to:m+a+1},matched:h>>1==u>>1};S--}}o>0&&(w+=y.length)}return i.done?{start:b,matched:!1}:null}const I8e=Object.create(null),ume=[Jp.none],fme=[],dme=Object.create(null),D8e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])D8e[t]=B8e(I8e,e);function Qie(t,e){fme.indexOf(t)>-1||(fme.push(t),console.warn(e))}function B8e(t,e){let o=[];for(let n of e.split(" ")){let u=[];for(let b of n.split(".")){let i=t[b]||hr[b];i?typeof i=="function"?u.length?u=u.map(i):Qie(b,`Modifier ${b} used at start of tag`):u.length?Qie(b,`Tag ${b} used as modifier`):u=Array.isArray(i)?i:[i]:Qie(b,`Unknown highlighting tag ${b}`)}for(let b of u)o.push(b)}if(!o.length)return 0;let f=e.replace(/ /g,"_"),E=f+" "+o.map(n=>n.id),d=dme[E];if(d)return d.id;let s=dme[E]=Jp.define({id:ume.length,name:f,props:[M4({[f]:o})]});return ume.push(s),s.id}const z8e=t=>{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),f=jce(t.state,o.from);return f.line?N8e(t):f.block?$8e(t):!1};function Uce(t,e){return({state:o,dispatch:f})=>{if(o.readOnly)return!1;let E=t(e,o);return E?(f(o.update(E)),!0):!1}}const N8e=Uce(j8e,0),F8e=Uce(Qbe,0),$8e=Uce((t,e)=>Qbe(t,e,U8e(e)),0);function jce(t,e){let o=t.languageDataAt("commentTokens",e);return o.length?o[0]:{}}const DL=50;function V8e(t,{open:e,close:o},f,E){let d=t.sliceDoc(f-DL,f),s=t.sliceDoc(E,E+DL),n=/\s*$/.exec(d)[0].length,u=/^\s*/.exec(s)[0].length,b=d.length-n;if(d.slice(b-e.length,b)==e&&s.slice(u,u+o.length)==o)return{open:{pos:f-n,margin:n&&1},close:{pos:E+u,margin:u&&1}};let i,S;E-f<=2*DL?i=S=t.sliceDoc(f,E):(i=t.sliceDoc(f,f+DL),S=t.sliceDoc(E-DL,E));let w=/^\s*/.exec(i)[0].length,y=/\s*$/.exec(S)[0].length,m=S.length-y-o.length;return i.slice(w,w+e.length)==e&&S.slice(m,m+o.length)==o?{open:{pos:f+w+e.length,margin:/\s/.test(i.charAt(w+e.length))?1:0},close:{pos:E-y-o.length,margin:/\s/.test(S.charAt(m-1))?1:0}}:null}function U8e(t){let e=[];for(let o of t.selection.ranges){let f=t.doc.lineAt(o.from),E=o.to<=f.to?f:t.doc.lineAt(o.to),d=e.length-1;d>=0&&e[d].to>f.from?e[d].to=E.to:e.push({from:f.from+/^\s*/.exec(f.text)[0].length,to:E.to})}return e}function Qbe(t,e,o=e.selection.ranges){let f=o.map(d=>jce(e,d.from).block);if(!f.every(d=>d))return null;let E=o.map((d,s)=>V8e(e,f[s],d.from,d.to));if(t!=2&&!E.every(d=>d))return{changes:e.changes(o.map((d,s)=>E[s]?[]:[{from:d.from,insert:f[s].open+" "},{from:d.to,insert:" "+f[s].close}]))};if(t!=1&&E.some(d=>d)){let d=[];for(let s=0,n;sE&&(d==s||s>S.from)){E=S.from;let w=/^\s*/.exec(S.text)[0].length,y=w==S.length,m=S.text.slice(w,w+b.length)==b?w:-1;wd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:n,token:u,indent:b,empty:i,single:S}of f)(S||!i)&&d.push({from:n.from+b,insert:u+" "});let s=e.changes(d);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&f.some(d=>d.comment>=0)){let d=[];for(let{line:s,comment:n,token:u}of f)if(n>=0){let b=s.from+n,i=b+u.length;s.text[i-s.from]==" "&&i++,d.push({from:b,to:i})}return{changes:d}}return null}const $se=NO.define(),Q8e=NO.define(),H8e=ls.define(),Hbe=ls.define({combine(t){return E_(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(f,E)=>e(f,E)||o(f,E)})}}),Zbe=tm.define({create(){return __.empty},update(t,e){let o=e.state.facet(Hbe),f=e.annotation($se);if(f){let u=F1.fromTransaction(e,f.selection),b=f.side,i=b==0?t.undone:t.done;return u?i=YH(i,i.length,o.minDepth,u):i=Ybe(i,e.startState.selection),new __(b==0?f.rest:i,b==0?i:f.rest)}let E=e.annotation(Q8e);if((E=="full"||E=="before")&&(t=t.isolate()),e.annotation(Xp.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=F1.fromTransaction(e),s=e.annotation(Xp.time),n=e.annotation(Xp.userEvent);return d?t=t.addChanges(d,s,n,o,e):e.selection&&(t=t.addSelection(e.startState.selection,s,n,o.newGroupDelay)),(E=="full"||E=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new __(t.done.map(F1.fromJSON),t.undone.map(F1.fromJSON))}});function Z8e(t={}){return[Zbe,Hbe.of(t),Xa.domEventHandlers({beforeinput(e,o){let f=e.inputType=="historyUndo"?qbe:e.inputType=="historyRedo"?Vse:null;return f?(e.preventDefault(),f(o)):!1}})]}function JZ(t,e){return function({state:o,dispatch:f}){if(!e&&o.readOnly)return!1;let E=o.field(Zbe,!1);if(!E)return!1;let d=E.pop(t,o,e);return d?(f(d),!0):!1}}const qbe=JZ(0,!1),Vse=JZ(1,!1),q8e=JZ(0,!0),W8e=JZ(1,!0);class F1{constructor(e,o,f,E,d){this.changes=e,this.effects=o,this.mapped=f,this.startSelection=E,this.selectionsAfter=d}setSelAfter(e){return new F1(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,f;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(f=this.startSelection)===null||f===void 0?void 0:f.toJSON(),selectionsAfter:this.selectionsAfter.map(E=>E.toJSON())}}static fromJSON(e){return new F1(e.changes&&Wp.fromJSON(e.changes),[],e.mapped&&k_.fromJSON(e.mapped),e.startSelection&&hi.fromJSON(e.startSelection),e.selectionsAfter.map(hi.fromJSON))}static fromTransaction(e,o){let f=nb;for(let E of e.startState.facet(H8e)){let d=E(e);d.length&&(f=f.concat(d))}return!f.length&&e.changes.empty?null:new F1(e.changes.invert(e.startState.doc),f,void 0,o||e.startState.selection,nb)}static selection(e){return new F1(void 0,nb,void 0,void 0,e)}}function YH(t,e,o,f){let E=e+1>o+20?e-o-1:0,d=t.slice(E,e);return d.push(f),d}function Y8e(t,e){let o=[],f=!1;return t.iterChangedRanges((E,d)=>o.push(E,d)),e.iterChangedRanges((E,d,s,n)=>{for(let u=0;u=b&&s<=i&&(f=!0)}}),f}function X8e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,f)=>o.empty!=e.ranges[f].empty).length===0}function Wbe(t,e){return t.length?e.length?t.concat(e):t:e}const nb=[],G8e=200;function Ybe(t,e){if(t.length){let o=t[t.length-1],f=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-G8e));return f.length&&f[f.length-1].eq(e)?t:(f.push(e),YH(t,t.length-1,1e9,o.setSelAfter(f)))}else return[F1.selection([e])]}function K8e(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Hie(t,e){if(!t.length)return t;let o=t.length,f=nb;for(;o;){let E=J8e(t[o-1],e,f);if(E.changes&&!E.changes.empty||E.effects.length){let d=t.slice(0,o);return d[o-1]=E,d}else e=E.mapped,o--,f=E.selectionsAfter}return f.length?[F1.selection(f)]:nb}function J8e(t,e,o){let f=Wbe(t.selectionsAfter.length?t.selectionsAfter.map(n=>n.map(e)):nb,o);if(!t.changes)return F1.selection(f);let E=t.changes.map(e),d=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(d):d;return new F1(E,Ql.mapEffects(t.effects,e),s,t.startSelection.map(d),f)}const eMe=/^(input\.type|delete)($|\.)/;class __{constructor(e,o,f=0,E=void 0){this.done=e,this.undone=o,this.prevTime=f,this.prevUserEvent=E}isolate(){return this.prevTime?new __(this.done,this.undone):this}addChanges(e,o,f,E,d){let s=this.done,n=s[s.length-1];return n&&n.changes&&!n.changes.empty&&e.changes&&(!f||eMe.test(f))&&(!n.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):eq(o,e))}function t0(t){return t.textDirectionAt(t.state.selection.main.head)==zh.LTR}const Gbe=t=>Xbe(t,!t0(t)),Kbe=t=>Xbe(t,t0(t));function Jbe(t,e){return Px(t,o=>o.empty?t.moveByGroup(o,e):eq(o,e))}const nMe=t=>Jbe(t,!t0(t)),rMe=t=>Jbe(t,t0(t));function oMe(t,e,o){if(e.type.prop(o))return!0;let f=e.to-e.from;return f&&(f>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function tq(t,e,o){let f=Gf(t).resolveInner(e.head),E=o?Zl.closedBy:Zl.openedBy;for(let u=e.head;;){let b=o?f.childAfter(u):f.childBefore(u);if(!b)break;oMe(t,b,E)?f=b:u=o?b.to:b.from}let d=f.type.prop(E),s,n;return d&&(s=o?x_(t,f.from,1):x_(t,f.to,-1))&&s.matched?n=o?s.end.to:s.end.from:n=o?f.to:f.from,hi.cursor(n,o?-1:1)}const iMe=t=>Px(t,e=>tq(t.state,e,!t0(t))),aMe=t=>Px(t,e=>tq(t.state,e,t0(t)));function exe(t,e){return Px(t,o=>{if(!o.empty)return eq(o,e);let f=t.moveVertically(o,e);return f.head!=o.head?f:t.moveToLineBoundary(o,e)})}const txe=t=>exe(t,!1),nxe=t=>exe(t,!0);function rxe(t){let e=t.scrollDOM.clientHeights.empty?t.moveVertically(s,e,o.height):eq(s,e));if(E.eq(f.selection))return!1;let d;if(o.selfScroll){let s=t.coordsAtPos(f.selection.main.head),n=t.scrollDOM.getBoundingClientRect(),u=n.top+o.marginTop,b=n.bottom-o.marginBottom;s&&s.top>u&&s.bottomoxe(t,!1),Use=t=>oxe(t,!0);function P4(t,e,o){let f=t.lineBlockAt(e.head),E=t.moveToLineBoundary(e,o);if(E.head==e.head&&E.head!=(o?f.to:f.from)&&(E=t.moveToLineBoundary(e,o,!1)),!o&&E.head==f.from&&f.length){let d=/^\s*/.exec(t.state.sliceDoc(f.from,Math.min(f.from+100,f.to)))[0].length;d&&e.head!=f.from+d&&(E=hi.cursor(f.from+d))}return E}const sMe=t=>Px(t,e=>P4(t,e,!0)),lMe=t=>Px(t,e=>P4(t,e,!1)),cMe=t=>Px(t,e=>P4(t,e,!t0(t))),uMe=t=>Px(t,e=>P4(t,e,t0(t))),fMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).from,1)),dMe=t=>Px(t,e=>hi.cursor(t.lineBlockAt(e.head).to,-1));function hMe(t,e,o){let f=!1,E=AM(t.selection,d=>{let s=x_(t,d.head,-1)||x_(t,d.head,1)||d.head>0&&x_(t,d.head-1,1)||d.headhMe(t,e,!1);function lb(t,e){let o=AM(t.state.selection,f=>{let E=e(f);return hi.range(f.anchor,E.head,E.goalColumn,E.bidiLevel||void 0)});return o.eq(t.state.selection)?!1:(t.dispatch(P_(t.state,o)),!0)}function ixe(t,e){return lb(t,o=>t.moveByChar(o,e))}const axe=t=>ixe(t,!t0(t)),sxe=t=>ixe(t,t0(t));function lxe(t,e){return lb(t,o=>t.moveByGroup(o,e))}const mMe=t=>lxe(t,!t0(t)),gMe=t=>lxe(t,t0(t)),vMe=t=>lb(t,e=>tq(t.state,e,!t0(t))),yMe=t=>lb(t,e=>tq(t.state,e,t0(t)));function cxe(t,e){return lb(t,o=>t.moveVertically(o,e))}const uxe=t=>cxe(t,!1),fxe=t=>cxe(t,!0);function dxe(t,e){return lb(t,o=>t.moveVertically(o,e,rxe(t).height))}const pme=t=>dxe(t,!1),mme=t=>dxe(t,!0),bMe=t=>lb(t,e=>P4(t,e,!0)),xMe=t=>lb(t,e=>P4(t,e,!1)),_Me=t=>lb(t,e=>P4(t,e,!t0(t))),wMe=t=>lb(t,e=>P4(t,e,t0(t))),OMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).from)),SMe=t=>lb(t,e=>hi.cursor(t.lineBlockAt(e.head).to)),gme=({state:t,dispatch:e})=>(e(P_(t,{anchor:0})),!0),vme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.doc.length})),!0),yme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:0})),!0),bme=({state:t,dispatch:e})=>(e(P_(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),kMe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),TMe=({state:t,dispatch:e})=>{let o=nq(t).map(({from:f,to:E})=>hi.range(f,Math.min(E+1,t.doc.length)));return e(t.update({selection:hi.create(o),userEvent:"select"})),!0},CMe=({state:t,dispatch:e})=>{let o=AM(t.selection,f=>{var E;let d=Gf(t).resolveStack(f.from,1);for(let s=d;s;s=s.next){let{node:n}=s;if((n.from=f.to||n.to>f.to&&n.from<=f.from)&&(!((E=n.parent)===null||E===void 0)&&E.parent))return hi.range(n.to,n.from)}return f});return e(P_(t,o)),!0},AMe=({state:t,dispatch:e})=>{let o=t.selection,f=null;return o.ranges.length>1?f=hi.create([o.main]):o.main.empty||(f=hi.create([hi.cursor(o.main.head)])),f?(e(P_(t,f)),!0):!1};function gD(t,e){if(t.state.readOnly)return!1;let o="delete.selection",{state:f}=t,E=f.changeByRange(d=>{let{from:s,to:n}=d;if(s==n){let u=e(d);us&&(o="delete.forward",u=zQ(t,u,!0)),s=Math.min(s,u),n=Math.max(n,u)}else s=zQ(t,s,!1),n=zQ(t,n,!0);return s==n?{range:d}:{changes:{from:s,to:n},range:hi.cursor(s,sE(t)))f.between(e,e,(E,d)=>{Ee&&(e=o?d:E)});return e}const hxe=(t,e)=>gD(t,o=>{let f=o.from,{state:E}=t,d=E.doc.lineAt(f),s,n;if(!e&&f>d.from&&fhxe(t,!1),pxe=t=>hxe(t,!0),mxe=(t,e)=>gD(t,o=>{let f=o.head,{state:E}=t,d=E.doc.lineAt(f),s=E.charCategorizer(f);for(let n=null;;){if(f==(e?d.to:d.from)){f==o.head&&d.number!=(e?E.doc.lines:1)&&(f+=e?1:-1);break}let u=cg(d.text,f-d.from,e)+d.from,b=d.text.slice(Math.min(f,u)-d.from,Math.max(f,u)-d.from),i=s(b);if(n!=null&&i!=n)break;(b!=" "||f!=o.head)&&(n=i),f=u}return f}),gxe=t=>mxe(t,!1),MMe=t=>mxe(t,!0),EMe=t=>gD(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headgD(t,e=>{let o=t.moveToLineBoundary(e,!1).head;return e.head>o?o:Math.max(0,e.head-1)}),RMe=t=>gD(t,e=>{let o=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let o=t.changeByRange(f=>({changes:{from:f.from,to:f.to,insert:Qu.of(["",""])},range:hi.cursor(f.from)}));return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},IMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(f=>{if(!f.empty||f.from==0||f.from==t.doc.length)return{range:f};let E=f.from,d=t.doc.lineAt(E),s=E==d.from?E-1:cg(d.text,E-d.from,!1)+d.from,n=E==d.to?E+1:cg(d.text,E-d.from,!0)+d.from;return{changes:{from:s,to:n,insert:t.doc.slice(E,n).append(t.doc.slice(s,E))},range:hi.cursor(n)}});return o.changes.empty?!1:(e(t.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function nq(t){let e=[],o=-1;for(let f of t.selection.ranges){let E=t.doc.lineAt(f.from),d=t.doc.lineAt(f.to);if(!f.empty&&f.to==d.from&&(d=t.doc.lineAt(f.to-1)),o>=E.number){let s=e[e.length-1];s.to=d.to,s.ranges.push(f)}else e.push({from:E.from,to:d.to,ranges:[f]});o=d.number+1}return e}function vxe(t,e,o){if(t.readOnly)return!1;let f=[],E=[];for(let d of nq(t)){if(o?d.to==t.doc.length:d.from==0)continue;let s=t.doc.lineAt(o?d.to+1:d.from-1),n=s.length+1;if(o){f.push({from:d.to,to:s.to},{from:d.from,insert:s.text+t.lineBreak});for(let u of d.ranges)E.push(hi.range(Math.min(t.doc.length,u.anchor+n),Math.min(t.doc.length,u.head+n)))}else{f.push({from:s.from,to:d.from},{from:d.to,insert:t.lineBreak+s.text});for(let u of d.ranges)E.push(hi.range(u.anchor-n,u.head-n))}}return f.length?(e(t.update({changes:f,scrollIntoView:!0,selection:hi.create(E,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const DMe=({state:t,dispatch:e})=>vxe(t,e,!1),BMe=({state:t,dispatch:e})=>vxe(t,e,!0);function yxe(t,e,o){if(t.readOnly)return!1;let f=[];for(let E of nq(t))o?f.push({from:E.from,insert:t.doc.slice(E.from,E.to)+t.lineBreak}):f.push({from:E.to,insert:t.lineBreak+t.doc.slice(E.from,E.to)});return e(t.update({changes:f,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const zMe=({state:t,dispatch:e})=>yxe(t,e,!1),NMe=({state:t,dispatch:e})=>yxe(t,e,!0),FMe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,o=e.changes(nq(e).map(({from:E,to:d})=>(E>0?E--:dt.moveVertically(E,!0)).map(o);return t.dispatch({changes:o,selection:f,scrollIntoView:!0,userEvent:"delete.line"}),!0};function $Me(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let o=Gf(t).resolveInner(e),f=o.childBefore(e),E=o.childAfter(e),d;return f&&E&&f.to<=e&&E.from>=e&&(d=f.type.prop(Zl.closedBy))&&d.indexOf(E.name)>-1&&t.doc.lineAt(f.to).from==t.doc.lineAt(E.from).from&&!/\S/.test(t.sliceDoc(f.to,E.from))?{from:f.to,to:E.from}:null}const VMe=bxe(!1),UMe=bxe(!0);function bxe(t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let f=e.changeByRange(E=>{let{from:d,to:s}=E,n=e.doc.lineAt(d),u=!t&&d==s&&$Me(e,d);t&&(d=s=(s<=n.to?n:e.doc.lineAt(s)).to);let b=new GZ(e,{simulateBreak:d,simulateDoubleBreak:!!u}),i=Nce(b,d);for(i==null&&(i=kx(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));sn.from&&d{let E=[];for(let s=f.from;s<=f.to;){let n=t.doc.lineAt(s);n.number>o&&(f.empty||f.to>n.from)&&(e(n,E,f),o=n.number),s=n.to+1}let d=t.changes(E);return{changes:E,range:hi.range(d.mapPos(f.anchor,1),d.mapPos(f.head,1))}})}const jMe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=Object.create(null),f=new GZ(t,{overrideIndentation:d=>{let s=o[d];return s??-1}}),E=Qce(t,(d,s,n)=>{let u=Nce(f,d.from);if(u==null)return;/\S/.test(d.text)||(u=0);let b=/^\s*/.exec(d.text)[0],i=BI(t,u);(b!=i||n.fromt.readOnly?!1:(e(t.update(Qce(t,(o,f)=>{f.push({from:o.from,insert:t.facet(tC)})}),{userEvent:"input.indent"})),!0),_xe=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Qce(t,(o,f)=>{let E=/^\s*/.exec(o.text)[0];if(!E)return;let d=kx(E,t.tabSize),s=0,n=BI(t,Math.max(0,d-ZH(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),ZMe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:iMe,shift:vMe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:aMe,shift:yMe},{key:"Alt-ArrowUp",run:DMe},{key:"Shift-Alt-ArrowUp",run:zMe},{key:"Alt-ArrowDown",run:BMe},{key:"Shift-Alt-ArrowDown",run:NMe},{key:"Escape",run:AMe},{key:"Mod-Enter",run:UMe},{key:"Alt-l",mac:"Ctrl-l",run:TMe},{key:"Mod-i",run:CMe,preventDefault:!0},{key:"Mod-[",run:_xe},{key:"Mod-]",run:xxe},{key:"Mod-Alt-\\",run:jMe},{key:"Shift-Mod-k",run:FMe},{key:"Shift-Mod-\\",run:pMe},{key:"Mod-/",run:z8e},{key:"Alt-A",run:F8e}].concat(HMe),qMe={key:"Tab",run:xxe,shift:_xe};function zd(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)){var E=o[f];typeof E=="string"?t.setAttribute(f,E):E!=null&&(t[f]=E)}e++}for(;et.normalize("NFKD"):t=>t;class dM{constructor(e,o,f=0,E=e.length,d,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(f,E),this.bufferStart=f,this.normalize=d?n=>d(xme(n)):xme,this.query=this.normalize(o)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ag(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let o=xce(e),f=this.bufferStart+this.bufferPos;this.bufferPos+=Ky(e);let E=this.normalize(o);for(let d=0,s=f;;d++){let n=E.charCodeAt(d),u=this.match(n,s);if(d==E.length-1){if(u)return this.value=u,this;break}s==f&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let o=this.matchPos<=this.to&&this.re.exec(this.curLine);if(o){let f=this.curLineStart+o.index,E=f+o[0].length;if(this.matchPos=XH(this.text,E+(f==E?1:0)),f==this.curLineStart+this.curLine.length&&this.nextLine(),(fthis.value.to)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=f||E.to<=o){let n=new K8(o,e.sliceString(o,f));return Zie.set(e,n),n}if(E.from==o&&E.to==f)return E;let{text:d,from:s}=E;return s>o&&(d=e.sliceString(o,s)+d,s=o),E.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,o=this.re.exec(this.flat.text);if(o&&!o[0]&&o.index==e&&(this.re.lastIndex=e+1,o=this.re.exec(this.flat.text)),o){let f=this.flat.from+o.index,E=f+o[0].length;if((this.flat.to>=this.to||o.index+o[0].length<=this.flat.text.length-10)&&(!this.test||this.test(f,E,o)))return this.value={from:f,to:E,match:o},this.matchPos=XH(this.text,E+(f==E?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=K8.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Sxe.prototype[Symbol.iterator]=kxe.prototype[Symbol.iterator]=function(){return this});function WMe(t){try{return new RegExp(t,Hce),!0}catch{return!1}}function XH(t,e){if(e>=t.length)return e;let o=t.lineAt(e),f;for(;e=56320&&f<57344;)e++;return e}function Qse(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),o=zd("input",{class:"cm-textfield",name:"line",value:e}),f=zd("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:GH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),E())},onsubmit:d=>{d.preventDefault(),E()}},zd("label",t.state.phrase("Go to line"),": ",o)," ",zd("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function E(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(o.value);if(!d)return;let{state:s}=t,n=s.doc.lineAt(s.selection.main.head),[,u,b,i,S]=d,w=i?+i.slice(1):0,y=b?+b:n.number;if(b&&S){let c=y/100;u&&(c=c*(u=="-"?-1:1)+n.number/s.doc.lines),y=Math.round(s.doc.lines*c)}else b&&u&&(y=y*(u=="-"?-1:1)+n.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,y))),a=hi.cursor(m.from+Math.max(0,Math.min(w,m.length)));t.dispatch({effects:[GH.of(!1),Xa.scrollIntoView(a.from,{y:"center"})],selection:a}),t.focus()}return{dom:f}}const GH=Ql.define(),_me=tm.define({create(){return!0},update(t,e){for(let o of e.effects)o.is(GH)&&(t=o.value);return t},provide:t=>RI.from(t,e=>e?Qse:null)}),YMe=t=>{let e=PI(t,Qse);if(!e){let o=[GH.of(!0)];t.state.field(_me,!1)==null&&o.push(Ql.appendConfig.of([_me,XMe])),t.dispatch({effects:o}),e=PI(t,Qse)}return e&&e.dom.querySelector("input").select(),!0},XMe=Xa.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),GMe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Txe=ls.define({combine(t){return E_(t,GMe,{highlightWordAroundCursor:(e,o)=>e||o,minSelectionLength:Math.min,maxMatches:Math.min})}});function KMe(t){let e=[rEe,nEe];return t&&e.push(Txe.of(t)),e}const JMe=Ns.mark({class:"cm-selectionMatch"}),eEe=Ns.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function wme(t,e,o,f){return(o==0||t(e.sliceDoc(o-1,o))!=yh.Word)&&(f==e.doc.length||t(e.sliceDoc(f,f+1))!=yh.Word)}function tEe(t,e,o,f){return t(e.sliceDoc(o,o+1))==yh.Word&&t(e.sliceDoc(f-1,f))==yh.Word}const nEe=bh.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(Txe),{state:o}=t,f=o.selection;if(f.ranges.length>1)return Ns.none;let E=f.main,d,s=null;if(E.empty){if(!e.highlightWordAroundCursor)return Ns.none;let u=o.wordAt(E.head);if(!u)return Ns.none;s=o.charCategorizer(E.head),d=o.sliceDoc(u.from,u.to)}else{let u=E.to-E.from;if(u200)return Ns.none;if(e.wholeWords){if(d=o.sliceDoc(E.from,E.to),s=o.charCategorizer(E.head),!(wme(s,o,E.from,E.to)&&tEe(s,o,E.from,E.to)))return Ns.none}else if(d=o.sliceDoc(E.from,E.to).trim(),!d)return Ns.none}let n=[];for(let u of t.visibleRanges){let b=new dM(o.doc,d,u.from,u.to);for(;!b.next().done;){let{from:i,to:S}=b.value;if((!s||wme(s,o,i,S))&&(E.empty&&i<=E.from&&S>=E.to?n.push(eEe.range(i,S)):(i>=E.to||S<=E.from)&&n.push(JMe.range(i,S)),n.length>e.maxMatches))return Ns.none}}return Ns.set(n)}},{decorations:t=>t.decorations}),rEe=Xa.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),oEe=({state:t,dispatch:e})=>{let{selection:o}=t,f=hi.create(o.ranges.map(E=>t.wordAt(E.head)||hi.cursor(E.head)),o.mainIndex);return f.eq(o)?!1:(e(t.update({selection:f})),!0)};function iEe(t,e){let{main:o,ranges:f}=t.selection,E=t.wordAt(o.head),d=E&&E.from==o.from&&E.to==o.to;for(let s=!1,n=new dM(t.doc,e,f[f.length-1].to);;)if(n.next(),n.done){if(s)return null;n=new dM(t.doc,e,0,Math.max(0,f[f.length-1].from-1)),s=!0}else{if(s&&f.some(u=>u.from==n.value.from))continue;if(d){let u=t.wordAt(n.value.from);if(!u||u.from!=n.value.from||u.to!=n.value.to)continue}return n.value}}const aEe=({state:t,dispatch:e})=>{let{ranges:o}=t.selection;if(o.some(d=>d.from===d.to))return oEe({state:t,dispatch:e});let f=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=f))return!1;let E=iEe(t,f);return E?(e(t.update({selection:t.selection.addRange(hi.range(E.from,E.to),!1),effects:Xa.scrollIntoView(E.to)})),!0):!1},MM=ls.define({combine(t){return E_(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new yEe(e),scrollToMatch:e=>Xa.scrollIntoView(e)})}});class Cxe{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||WMe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(o,f)=>f=="n"?` +`:f=="r"?"\r":f=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new uEe(this):new lEe(this)}getCursor(e,o=0,f){let E=e.doc?e:kc.create({doc:e});return f==null&&(f=E.doc.length),this.regexp?z8(this,E,o,f):B8(this,E,o,f)}}class Axe{constructor(e){this.spec=e}}function B8(t,e,o,f){return new dM(e.doc,t.unquoted,o,f,t.caseSensitive?void 0:E=>E.toLowerCase(),t.wholeWord?sEe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function sEe(t,e){return(o,f,E,d)=>((d>o||d+E.length=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=B8(this.spec,e,Math.max(0,o-this.spec.unquoted.length),Math.min(f+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}function z8(t,e,o,f){return new Sxe(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?cEe(e.charCategorizer(e.selection.main.head)):void 0},o,f)}function KH(t,e){return t.slice(cg(t,e,!1),e)}function JH(t,e){return t.slice(e,cg(t,e))}function cEe(t){return(e,o,f)=>!f[0].length||(t(KH(f.input,f.index))!=yh.Word||t(JH(f.input,f.index))!=yh.Word)&&(t(JH(f.input,f.index+f[0].length))!=yh.Word||t(KH(f.input,f.index+f[0].length))!=yh.Word)}class uEe extends Axe{nextMatch(e,o,f){let E=z8(this.spec,e,f,e.doc.length).next();return E.done&&(E=z8(this.spec,e,0,o).next()),E.done?null:E.value}prevMatchInRange(e,o,f){for(let E=1;;E++){let d=Math.max(o,f-E*1e4),s=z8(this.spec,e,d,f),n=null;for(;!s.next().done;)n=s.value;if(n&&(d==o||n.from>d+10))return n;if(d==o)return null}}prevMatch(e,o,f){return this.prevMatchInRange(e,0,o)||this.prevMatchInRange(e,f,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(o,f)=>f=="$"?"$":f=="&"?e.match[0]:f!="0"&&+f=o)return null;E.push(f.value)}return E}highlight(e,o,f,E){let d=z8(this.spec,e,Math.max(0,o-250),Math.min(f+250,e.doc.length));for(;!d.next().done;)E(d.value.from,d.value.to)}}const zI=Ql.define(),Zce=Ql.define(),m4=tm.define({create(t){return new qie(Hse(t).create(),null)},update(t,e){for(let o of e.effects)o.is(zI)?t=new qie(o.value.create(),t.panel):o.is(Zce)&&(t=new qie(t.query,o.value?qce:null));return t},provide:t=>RI.from(t,e=>e.panel)});class qie{constructor(e,o){this.query=e,this.panel=o}}const fEe=Ns.mark({class:"cm-searchMatch"}),dEe=Ns.mark({class:"cm-searchMatch cm-searchMatch-selected"}),hEe=bh.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(m4))}update(t){let e=t.state.field(m4);(e!=t.startState.field(m4)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ns.none;let{view:o}=this,f=new y4;for(let E=0,d=o.visibleRanges,s=d.length;Ed[E+1].from-2*250;)u=d[++E].to;t.highlight(o.state,n,u,(b,i)=>{let S=o.state.selection.ranges.some(w=>w.from==b&&w.to==i);f.add(b,i,S?dEe:fEe)})}return f.finish()}},{decorations:t=>t.decorations});function vD(t){return e=>{let o=e.state.field(m4,!1);return o&&o.query.spec.valid?t(e,o):Pxe(e)}}const eZ=vD((t,{query:e})=>{let{to:o}=t.state.selection.main,f=e.nextMatch(t.state,o,o);if(!f)return!1;let E=hi.single(f.from,f.to),d=t.state.facet(MM);return t.dispatch({selection:E,effects:[Wce(t,f),d.scrollToMatch(E.main,t)],userEvent:"select.search"}),Exe(t),!0}),tZ=vD((t,{query:e})=>{let{state:o}=t,{from:f}=o.selection.main,E=e.prevMatch(o,f,f);if(!E)return!1;let d=hi.single(E.from,E.to),s=t.state.facet(MM);return t.dispatch({selection:d,effects:[Wce(t,E),s.scrollToMatch(d.main,t)],userEvent:"select.search"}),Exe(t),!0}),pEe=vD((t,{query:e})=>{let o=e.matchAll(t.state,1e3);return!o||!o.length?!1:(t.dispatch({selection:hi.create(o.map(f=>hi.range(f.from,f.to))),userEvent:"select.search.matches"}),!0)}),mEe=({state:t,dispatch:e})=>{let o=t.selection;if(o.ranges.length>1||o.main.empty)return!1;let{from:f,to:E}=o.main,d=[],s=0;for(let n=new dM(t.doc,t.sliceDoc(f,E));!n.next().done;){if(d.length>1e3)return!1;n.value.from==f&&(s=d.length),d.push(hi.range(n.value.from,n.value.to))}return e(t.update({selection:hi.create(d,s),userEvent:"select.search.matches"})),!0},Ome=vD((t,{query:e})=>{let{state:o}=t,{from:f,to:E}=o.selection.main;if(o.readOnly)return!1;let d=e.nextMatch(o,f,f);if(!d)return!1;let s=[],n,u,b=[];if(d.from==f&&d.to==E&&(u=o.toText(e.getReplacement(d)),s.push({from:d.from,to:d.to,insert:u}),d=e.nextMatch(o,d.from,d.to),b.push(Xa.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(f).number)+"."))),d){let i=s.length==0||s[0].from>=d.to?0:d.to-d.from-u.length;n=hi.single(d.from-i,d.to-i),b.push(Wce(t,d)),b.push(o.facet(MM).scrollToMatch(n.main,t))}return t.dispatch({changes:s,selection:n,effects:b,userEvent:"input.replace"}),!0}),gEe=vD((t,{query:e})=>{if(t.state.readOnly)return!1;let o=e.matchAll(t.state,1e9).map(E=>{let{from:d,to:s}=E;return{from:d,to:s,insert:e.getReplacement(E)}});if(!o.length)return!1;let f=t.state.phrase("replaced $ matches",o.length)+".";return t.dispatch({changes:o,effects:Xa.announce.of(f),userEvent:"input.replace.all"}),!0});function qce(t){return t.state.facet(MM).createPanel(t)}function Hse(t,e){var o,f,E,d,s;let n=t.selection.main,u=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);if(e&&!u)return e;let b=t.facet(MM);return new Cxe({search:((o=e==null?void 0:e.literal)!==null&&o!==void 0?o:b.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(f=e==null?void 0:e.caseSensitive)!==null&&f!==void 0?f:b.caseSensitive,literal:(E=e==null?void 0:e.literal)!==null&&E!==void 0?E:b.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:b.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:b.wholeWord})}function Mxe(t){let e=PI(t,qce);return e&&e.dom.querySelector("[main-field]")}function Exe(t){let e=Mxe(t);e&&e==t.root.activeElement&&e.select()}const Pxe=t=>{let e=t.state.field(m4,!1);if(e&&e.panel){let o=Mxe(t);if(o&&o!=t.root.activeElement){let f=Hse(t.state,e.query.spec);f.valid&&t.dispatch({effects:zI.of(f)}),o.focus(),o.select()}}else t.dispatch({effects:[Zce.of(!0),e?zI.of(Hse(t.state,e.query.spec)):Ql.appendConfig.of(xEe)]});return!0},Rxe=t=>{let e=t.state.field(m4,!1);if(!e||!e.panel)return!1;let o=PI(t,qce);return o&&o.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Zce.of(!1)}),!0},vEe=[{key:"Mod-f",run:Pxe,scope:"editor search-panel"},{key:"F3",run:eZ,shift:tZ,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:eZ,shift:tZ,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Rxe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:mEe},{key:"Mod-Alt-g",run:YMe},{key:"Mod-d",run:aEe,preventDefault:!0}];class yEe{constructor(e){this.view=e;let o=this.query=e.state.field(m4).query.spec;this.commit=this.commit.bind(this),this.searchField=zd("input",{value:o.search,placeholder:Uv(e,"Find"),"aria-label":Uv(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=zd("input",{value:o.replace,placeholder:Uv(e,"Replace"),"aria-label":Uv(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=zd("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=zd("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=zd("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit});function f(E,d,s){return zd("button",{class:"cm-button",name:E,onclick:d,type:"button"},s)}this.dom=zd("div",{onkeydown:E=>this.keydown(E),class:"cm-search"},[this.searchField,f("next",()=>eZ(e),[Uv(e,"next")]),f("prev",()=>tZ(e),[Uv(e,"previous")]),f("select",()=>pEe(e),[Uv(e,"all")]),zd("label",null,[this.caseField,Uv(e,"match case")]),zd("label",null,[this.reField,Uv(e,"regexp")]),zd("label",null,[this.wordField,Uv(e,"by word")]),...e.state.readOnly?[]:[zd("br"),this.replaceField,f("replace",()=>Ome(e),[Uv(e,"replace")]),f("replaceAll",()=>gEe(e),[Uv(e,"replace all")])],zd("button",{name:"close",onclick:()=>Rxe(e),"aria-label":Uv(e,"close"),type:"button"},["×"])])}commit(){let e=new Cxe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:zI.of(e)}))}keydown(e){M6e(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?tZ:eZ)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Ome(this.view))}update(e){for(let o of e.transactions)for(let f of o.effects)f.is(zI)&&!f.value.eq(this.query)&&this.setQuery(f.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MM).top}}function Uv(t,e){return t.state.phrase(e)}const NQ=30,FQ=/[\s\.,:;?!]/;function Wce(t,{from:e,to:o}){let f=t.state.doc.lineAt(e),E=t.state.doc.lineAt(o).to,d=Math.max(f.from,e-NQ),s=Math.min(E,o+NQ),n=t.state.sliceDoc(d,s);if(d!=f.from){for(let u=0;un.length-NQ;u--)if(!FQ.test(n[u-1])&&FQ.test(n[u])){n=n.slice(0,u);break}}return Xa.announce.of(`${t.state.phrase("current match")}. ${n} ${t.state.phrase("on line")} ${f.number}.`)}const bEe=Xa.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),xEe=[m4,ny.low(hEe),bEe];class Yce{constructor(e,o,f){this.state=e,this.pos=o,this.explicit=f,this.abortListeners=[]}tokenBefore(e){let o=Gf(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),f=Math.max(o.from,this.pos-250),E=o.text.slice(f-o.from,this.pos-o.from),d=E.search(Lxe(e,!1));return d<0?null:{from:f+d,to:this.pos,text:E.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,o){e=="abort"&&this.abortListeners&&this.abortListeners.push(o)}}function Sme(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function _Ee(t){let e=Object.create(null),o=Object.create(null);for(let{label:E}of t){e[E[0]]=!0;for(let d=1;dtypeof E=="string"?{label:E}:E),[o,f]=e.every(E=>/^\w+$/.test(E.label))?[/\w*$/,/\w+$/]:_Ee(e);return E=>{let d=E.matchBefore(f);return d||E.explicit?{from:d?d.from:E.pos,options:e,validFor:o}:null}}function Xce(t,e){return o=>{for(let f=Gf(o.state).resolveInner(o.pos,-1);f;f=f.parent){if(t.indexOf(f.name)>-1)return null;if(f.type.isTop)break}return e(o)}}class kme{constructor(e,o,f,E){this.completion=e,this.source=o,this.match=f,this.score=E}}function g4(t){return t.selection.main.from}function Lxe(t,e){var o;let{source:f}=t,E=e&&f[0]!="^",d=f[f.length-1]!="$";return!E&&!d?t:new RegExp(`${E?"^":""}(?:${f})${d?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const Ixe=NO.define();function wEe(t,e,o,f){let{main:E}=t.selection,d=o-E.from,s=f-E.from;return Object.assign(Object.assign({},t.changeByRange(n=>n!=E&&o!=f&&t.sliceDoc(n.from+d,n.from+s)!=t.sliceDoc(o,f)?{range:n}:{changes:{from:n.from+d,to:f==E.from?n.to:n.from+s,insert:e},range:hi.cursor(n.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Tme=new WeakMap;function OEe(t){if(!Array.isArray(t))return t;let e=Tme.get(t);return e||Tme.set(t,e=rq(t)),e}const Gce=Ql.define(),NI=Ql.define();class SEe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&O<=57||O>=97&&O<=122?2:O>=65&&O<=90?1:0:(C=xce(O))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!p||x==1&&c||_==0&&x!=0)&&(o[S]==O||f[S]==O&&(w=!0)?s[S++]=p:s.length&&(h=!1)),_=x,p+=Ky(O)}return S==u&&s[0]==0&&h?this.result(-100+(w?-200:0),s,e):y==u&&m==0?this.ret(-200-e.length+(a==e.length?0:-100),[0,a]):n>-1?this.ret(-700-e.length,[n,n+this.pattern.length]):y==u?this.ret(-200+-700-e.length,[m,a]):S==u?this.result(-100+(w?-200:0)+-700+(h?0:-1100),s,e):o.length==2?!1:this.result((E[0]?-700:0)+-200+-1100,E,e)}result(e,o,f){let E=[],d=0;for(let s of o){let n=s+(this.astral?Ky(ag(f,s)):1);d&&E[d-1]==s?E[d-1]=n:(E[d++]=s,E[d++]=n)}return this.ret(e-f.length,E)}}const Kg=ls.define({combine(t){return E_(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:kEe,compareCompletions:(e,o)=>e.label.localeCompare(o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>f=>Cme(e(f),o(f)),optionClass:(e,o)=>f=>Cme(e(f),o(f)),addToOptions:(e,o)=>e.concat(o)})}});function Cme(t,e){return t?e?t+" "+e:t:e}function kEe(t,e,o,f,E,d){let s=t.textDirection==zh.RTL,n=s,u=!1,b="top",i,S,w=e.left-E.left,y=E.right-e.right,m=f.right-f.left,a=f.bottom-f.top;if(n&&w=a||p>e.top?i=o.bottom-e.top:(b="bottom",i=e.bottom-o.top)}let c=(e.bottom-e.top)/d.offsetHeight,h=(e.right-e.left)/d.offsetWidth;return{style:`${b}: ${i/c}px; max-width: ${S/h}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":n?"left":"right")}}function TEe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let f=document.createElement("div");return f.classList.add("cm-completionIcon"),o.type&&f.classList.add(...o.type.split(/\s+/g).map(E=>"cm-completionIcon-"+E)),f.setAttribute("aria-hidden","true"),f},position:20}),e.push({render(o,f,E,d){let s=document.createElement("span");s.className="cm-completionLabel";let n=o.displayLabel||o.label,u=0;for(let b=0;bu&&s.appendChild(document.createTextNode(n.slice(u,i)));let w=s.appendChild(document.createElement("span"));w.appendChild(document.createTextNode(n.slice(i,S))),w.className="cm-completionMatchedText",u=S}return uo.position-f.position).map(o=>o.render)}function Wie(t,e,o){if(t<=o)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let E=Math.floor(e/o);return{from:E*o,to:(E+1)*o}}let f=Math.floor((t-e)/o);return{from:t-(f+1)*o,to:t-f*o}}class CEe{constructor(e,o,f){this.view=e,this.stateField=o,this.applyCompletion=f,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:u=>this.placeInfo(u),key:this},this.space=null,this.currentClass="";let E=e.state.field(o),{options:d,selected:s}=E.open,n=e.state.facet(Kg);this.optionContent=TEe(n),this.optionClass=n.optionClass,this.tooltipClass=n.tooltipClass,this.range=Wie(d.length,s,n.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",u=>{let{options:b}=e.state.field(o).open;for(let i=u.target,S;i&&i!=this.dom;i=i.parentNode)if(i.nodeName=="LI"&&(S=/-(\d+)$/.exec(i.id))&&+S[1]{let b=e.state.field(this.stateField,!1);b&&b.tooltip&&e.state.facet(Kg).closeOnBlur&&u.relatedTarget!=e.contentDOM&&e.dispatch({effects:NI.of(null)})}),this.showOptions(d,E.id)}mount(){this.updateSel()}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var o;let f=e.state.field(this.stateField),E=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),f!=E){let{options:d,selected:s,disabled:n}=f.open;(!E.open||E.open.options!=d)&&(this.range=Wie(d.length,s,e.state.facet(Kg).maxRenderedOptions),this.showOptions(d,f.id)),this.updateSel(),n!=((o=E.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!n)}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let f of this.currentClass.split(" "))f&&this.dom.classList.remove(f);for(let f of o.split(" "))f&&this.dom.classList.add(f);this.currentClass=o}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;if((o.selected>-1&&o.selected=this.range.to)&&(this.range=Wie(o.options.length,o.selected,this.view.state.facet(Kg).maxRenderedOptions),this.showOptions(o.options,e.id)),this.updateSelectedOption(o.selected)){this.destroyInfo();let{completion:f}=o.options[o.selected],{info:E}=f;if(!E)return;let d=typeof E=="string"?document.createTextNode(E):E(f);if(!d)return;"then"in d?d.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,f)}).catch(s=>ey(this.view.state,s,"completion info")):this.addInfoPane(d,f)}}addInfoPane(e,o){this.destroyInfo();let f=this.info=document.createElement("div");if(f.className="cm-tooltip cm-completionInfo",e.nodeType!=null)f.appendChild(e),this.infoDestroy=null;else{let{dom:E,destroy:d}=e;f.appendChild(E),this.infoDestroy=d||null}this.dom.appendChild(f),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let o=null;for(let f=this.list.firstChild,E=this.range.from;f;f=f.nextSibling,E++)f.nodeName!="LI"||!f.id?E--:E==e?f.hasAttribute("aria-selected")||(f.setAttribute("aria-selected","true"),o=f):f.hasAttribute("aria-selected")&&f.removeAttribute("aria-selected");return o&&MEe(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),f=this.info.getBoundingClientRect(),E=e.getBoundingClientRect(),d=this.space;if(!d){let s=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return E.top>Math.min(d.bottom,o.bottom)-10||E.bottomf.from||f.from==0))if(d=w,typeof b!="string"&&b.header)E.appendChild(b.header(b));else{let y=E.appendChild(document.createElement("completion-section"));y.textContent=w}}const i=E.appendChild(document.createElement("li"));i.id=o+"-"+s,i.setAttribute("role","option");let S=this.optionClass(n);S&&(i.className=S);for(let w of this.optionContent){let y=w(n,this.view.state,this.view,u);y&&i.appendChild(y)}}return f.from&&E.classList.add("cm-completionListIncompleteTop"),f.tonew CEe(o,t,e)}function MEe(t,e){let o=t.getBoundingClientRect(),f=e.getBoundingClientRect(),E=o.height/t.offsetHeight;f.topo.bottom&&(t.scrollTop+=(f.bottom-o.bottom)/E)}function Ame(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function EEe(t,e){let o=[],f=null,E=u=>{o.push(u);let{section:b}=u.completion;if(b){f||(f=[]);let i=typeof b=="string"?b:b.name;f.some(S=>S.name==i)||f.push(typeof b=="string"?{name:i}:b)}};for(let u of t)if(u.hasResult()){let b=u.result.getMatch;if(u.result.filter===!1)for(let i of u.result.options)E(new kme(i,u.source,b?b(i):[],1e9-o.length));else{let i=new SEe(e.sliceDoc(u.from,u.to));for(let S of u.result.options)if(i.match(S.label)){let w=S.displayLabel?b?b(S,i.matched):[]:i.matched;E(new kme(S,u.source,w,i.score+(S.boost||0)))}}}if(f){let u=Object.create(null),b=0,i=(S,w)=>{var y,m;return((y=S.rank)!==null&&y!==void 0?y:1e9)-((m=w.rank)!==null&&m!==void 0?m:1e9)||(S.namei.score-b.score||n(b.completion,i.completion))){let b=u.completion;!s||s.label!=b.label||s.detail!=b.detail||s.type!=null&&b.type!=null&&s.type!=b.type||s.apply!=b.apply||s.boost!=b.boost?d.push(u):Ame(u.completion)>Ame(s)&&(d[d.length-1]=u),s=u.completion}return d}class V8{constructor(e,o,f,E,d,s){this.options=e,this.attrs=o,this.tooltip=f,this.timestamp=E,this.selected=d,this.disabled=s}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new V8(this.options,Mme(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,f,E,d){let s=EEe(e,o);if(!s.length)return E&&e.some(u=>u.state==1)?new V8(E.options,E.attrs,E.tooltip,E.timestamp,E.selected,!0):null;let n=o.facet(Kg).selectOnOpen?0:-1;if(E&&E.selected!=n&&E.selected!=-1){let u=E.options[E.selected].completion;for(let b=0;bb.hasResult()?Math.min(u,b.from):u,1e8),create:DEe,above:d.aboveCursor},E?E.timestamp:Date.now(),n,!1)}map(e){return new V8(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class nZ{constructor(e,o,f){this.active=e,this.id=o,this.open=f}static start(){return new nZ(LEe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,f=o.facet(Kg),d=(f.override||o.languageDataAt("autocomplete",g4(o)).map(OEe)).map(n=>(this.active.find(b=>b.source==n)||new B1(n,this.active.some(b=>b.state!=0)?1:0)).update(e,f));d.length==this.active.length&&d.every((n,u)=>n==this.active[u])&&(d=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||d.some(n=>n.hasResult()&&e.changes.touchesRange(n.from,n.to))||!PEe(d,this.active)?s=V8.build(d,o,this.id,s,f):s&&s.disabled&&!d.some(n=>n.state==1)&&(s=null),!s&&d.every(n=>n.state!=1)&&d.some(n=>n.hasResult())&&(d=d.map(n=>n.hasResult()?new B1(n.source,0):n));for(let n of e.effects)n.is(Bxe)&&(s=s&&s.setSelected(n.value,this.id));return d==this.active&&s==this.open?this:new nZ(d,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:REe}}function PEe(t,e){if(t==e)return!0;for(let o=0,f=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const LEe=[];function Zse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class B1{constructor(e,o,f=-1){this.source=e,this.state=o,this.explicitPos=f}hasResult(){return!1}update(e,o){let f=Zse(e),E=this;f?E=E.handleUserEvent(e,f,o):e.docChanged?E=E.handleChange(e):e.selection&&E.state!=0&&(E=new B1(E.source,0));for(let d of e.effects)if(d.is(Gce))E=new B1(E.source,1,d.value?g4(e.state):-1);else if(d.is(NI))E=new B1(E.source,0);else if(d.is(Dxe))for(let s of d.value)s.source==E.source&&(E=s);return E}handleUserEvent(e,o,f){return o=="delete"||!f.activateOnTyping?this.map(e.changes):new B1(this.source,1)}handleChange(e){return e.changes.touchesRange(g4(e.startState))?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new B1(this.source,this.state,e.mapPos(this.explicitPos))}}class J8 extends B1{constructor(e,o,f,E,d){super(e,2,o),this.result=f,this.from=E,this.to=d}hasResult(){return!0}handleUserEvent(e,o,f){var E;let d=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),n=g4(e.state);if((this.explicitPos<0?n<=d:ns||o=="delete"&&g4(e.startState)==this.from)return new B1(this.source,o=="input"&&f.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),b;return IEe(this.result.validFor,e.state,d,s)?new J8(this.source,u,this.result,d,s):this.result.update&&(b=this.result.update(this.result,d,s,new Yce(e.state,n,u>=0)))?new J8(this.source,u,b,b.from,(E=b.to)!==null&&E!==void 0?E:g4(e.state)):new B1(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new B1(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new J8(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function IEe(t,e,o,f){if(!t)return!1;let E=e.sliceDoc(o,f);return typeof t=="function"?t(E,o,f,e):Lxe(t,!0).test(E)}const Dxe=Ql.define({map(t,e){return t.map(o=>o.map(e))}}),Bxe=Ql.define(),Wv=tm.define({create(){return nZ.start()},update(t,e){return t.update(e)},provide:t=>[Ece.from(t,e=>e.tooltip),Xa.contentAttributes.from(t,e=>e.attrs)]});function zxe(t,e){const o=e.completion.apply||e.completion.label;let f=t.state.field(Wv).active.find(E=>E.source==e.source);return f instanceof J8?(typeof o=="string"?t.dispatch(Object.assign(Object.assign({},wEe(t.state,o,f.from,f.to)),{annotations:Ixe.of(e.completion)})):o(t,e.completion,f.from,f.to),!0):!1}const DEe=AEe(Wv,zxe);function $Q(t,e="option"){return o=>{let f=o.state.field(Wv,!1);if(!f||!f.open||f.open.disabled||Date.now()-f.open.timestamp-1?f.open.selected+E*(t?1:-1):t?0:s-1;return n<0?n=e=="page"?0:s-1:n>=s&&(n=e=="page"?s-1:0),o.dispatch({effects:Bxe.of(n)}),!0}}const BEe=t=>{let e=t.state.field(Wv,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(Wv,!1)?(t.dispatch({effects:Gce.of(!0)}),!0):!1,NEe=t=>{let e=t.state.field(Wv,!1);return!e||!e.active.some(o=>o.state!=0)?!1:(t.dispatch({effects:NI.of(null)}),!0)};class FEe{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0}}const $Ee=50,VEe=1e3,UEe=bh.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(Wv).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Wv);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Wv)==e)return;let o=t.transactions.some(f=>(f.selection||f.docChanged)&&!Zse(f));for(let f=0;f$Ee&&Date.now()-E.time>VEe){for(let d of E.context.abortListeners)try{d()}catch(s){ey(this.view.state,s)}E.context.abortListeners=null,this.running.splice(f--,1)}else E.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(f=>f.state==1&&!this.running.some(E=>E.active.source==f.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let f of t.transactions)Zse(f)=="input"?this.composing=2:this.composing==2&&f.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Wv);for(let o of e.active)o.state==1&&!this.running.some(f=>f.active.source==o.source)&&this.startQuery(o)}startQuery(t){let{state:e}=this.view,o=g4(e),f=new Yce(e,o,t.explicitPos==o),E=new FEe(t,f);this.running.push(E),Promise.resolve(t.source(f)).then(d=>{E.context.aborted||(E.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:NI.of(null)}),ey(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Kg).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(Kg);for(let f=0;fs.source==E.active.source);if(d&&d.state==1)if(E.done==null){let s=new B1(E.active.source,0);for(let n of E.updates)s=s.update(n,o);s.state!=1&&e.push(s)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:Dxe.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Wv,!1);if(e&&e.tooltip&&this.view.state.facet(Kg).closeOnBlur){let o=e.open&&vbe(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:NI.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Gce.of(!1)}),20),this.composing=0}}}),Nxe=Xa.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class jEe{constructor(e,o,f,E){this.field=e,this.line=o,this.from=f,this.to=E}}class Kce{constructor(e,o,f){this.field=e,this.from=o,this.to=f}map(e){let o=e.mapPos(this.from,-1,lg.TrackDel),f=e.mapPos(this.to,1,lg.TrackDel);return o==null||f==null?null:new Kce(this.field,o,f)}}class Jce{constructor(e,o){this.lines=e,this.fieldPositions=o}instantiate(e,o){let f=[],E=[o],d=e.doc.lineAt(o),s=/^\s*/.exec(d.text)[0];for(let u of this.lines){if(f.length){let b=s,i=/^\t*/.exec(u)[0].length;for(let S=0;Snew Kce(u.field,E[u.line]+u.from,E[u.line]+u.to));return{text:f,ranges:n}}static parse(e){let o=[],f=[],E=[],d;for(let s of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let n=d[1]?+d[1]:null,u=d[2]||d[3]||"",b=-1;for(let i=0;i=b&&S.field++}E.push(new jEe(b,f.length,d.index,d.index+u.length)),s=s.slice(0,d.index)+u+s.slice(d.index+d[0].length)}for(let n;n=/\\([{}])/.exec(s);){s=s.slice(0,n.index)+n[1]+s.slice(n.index+n[0].length);for(let u of E)u.line==f.length&&u.from>n.index&&(u.from--,u.to--)}f.push(s)}return new Jce(f,E)}}let QEe=Ns.widget({widget:new class extends Ex{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),HEe=Ns.mark({class:"cm-snippetField"});class EM{constructor(e,o){this.ranges=e,this.active=o,this.deco=Ns.set(e.map(f=>(f.from==f.to?QEe:HEe).range(f.from,f.to)))}map(e){let o=[];for(let f of this.ranges){let E=f.map(e);if(!E)return null;o.push(E)}return new EM(o,this.active)}selectionInsideField(e){return e.ranges.every(o=>this.ranges.some(f=>f.field==this.active&&f.from<=o.from&&f.to>=o.to))}}const yD=Ql.define({map(t,e){return t&&t.map(e)}}),ZEe=Ql.define(),FI=tm.define({create(){return null},update(t,e){for(let o of e.effects){if(o.is(yD))return o.value;if(o.is(ZEe)&&t)return new EM(t.ranges,o.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Xa.decorations.from(t,e=>e?e.deco:Ns.none)});function eue(t,e){return hi.create(t.filter(o=>o.field==e).map(o=>hi.range(o.from,o.to)))}function qEe(t){let e=Jce.parse(t);return(o,f,E,d)=>{let{text:s,ranges:n}=e.instantiate(o.state,E),u={changes:{from:E,to:d,insert:Qu.of(s)},scrollIntoView:!0,annotations:f?Ixe.of(f):void 0};if(n.length&&(u.selection=eue(n,0)),n.length>1){let b=new EM(n,0),i=u.effects=[yD.of(b)];o.state.field(FI,!1)===void 0&&i.push(Ql.appendConfig.of([FI,KEe,JEe,Nxe]))}o.dispatch(o.state.update(u))}}function Fxe(t){return({state:e,dispatch:o})=>{let f=e.field(FI,!1);if(!f||t<0&&f.active==0)return!1;let E=f.active+t,d=t>0&&!f.ranges.some(s=>s.field==E+t);return o(e.update({selection:eue(f.ranges,E),effects:yD.of(d?null:new EM(f.ranges,E)),scrollIntoView:!0})),!0}}const WEe=({state:t,dispatch:e})=>t.field(FI,!1)?(e(t.update({effects:yD.of(null)})),!0):!1,YEe=Fxe(1),XEe=Fxe(-1),GEe=[{key:"Tab",run:YEe,shift:XEe},{key:"Escape",run:WEe}],Eme=ls.define({combine(t){return t.length?t[0]:GEe}}),KEe=ny.highest(FO.compute([Eme],t=>t.facet(Eme)));function Bh(t,e){return Object.assign(Object.assign({},e),{apply:qEe(t)})}const JEe=Xa.domEventHandlers({mousedown(t,e){let o=e.state.field(FI,!1),f;if(!o||(f=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let E=o.ranges.find(d=>d.from<=f&&d.to>=f);return!E||E.field==o.active?!1:(e.dispatch({selection:eue(o.ranges,E.field),effects:yD.of(o.ranges.some(d=>d.field>E.field)?new EM(o.ranges,E.field):null),scrollIntoView:!0}),!0)}}),$I={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},FT=Ql.define({map(t,e){let o=e.mapPos(t,-1,lg.TrackAfter);return o??void 0}}),tue=new class extends qT{};tue.startSide=1;tue.endSide=-1;const $xe=tm.define({create(){return Df.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:f=>f>=o.from&&f<=o.to})}for(let o of e.effects)o.is(FT)&&(t=t.update({add:[tue.range(o.value,o.value+1)]}));return t}});function ePe(){return[nPe,$xe]}const Yie="()[]{}<>";function Vxe(t){for(let e=0;e{if((tPe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let E=t.state.selection.main;if(f.length>2||f.length==2&&Ky(ag(f,0))==1||e!=E.from||o!=E.to)return!1;let d=iPe(t.state,f);return d?(t.dispatch(d),!0):!1}),rPe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let f=Uxe(t,t.selection.main.head).brackets||$I.brackets,E=null,d=t.changeByRange(s=>{if(s.empty){let n=aPe(t.doc,s.head);for(let u of f)if(u==n&&oq(t.doc,s.head)==Vxe(ag(u,0)))return{changes:{from:s.head-u.length,to:s.head+u.length},range:hi.cursor(s.head-u.length)}}return{range:E=s}});return E||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!E},oPe=[{key:"Backspace",run:rPe}];function iPe(t,e){let o=Uxe(t,t.selection.main.head),f=o.brackets||$I.brackets;for(let E of f){let d=Vxe(ag(E,0));if(e==E)return d==E?cPe(t,E,f.indexOf(E+E+E)>-1,o):sPe(t,E,d,o.before||$I.before);if(e==d&&jxe(t,t.selection.main.from))return lPe(t,E,d)}return null}function jxe(t,e){let o=!1;return t.field($xe).between(0,t.doc.length,f=>{f==e&&(o=!0)}),o}function oq(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Ky(ag(o,0)))}function aPe(t,e){let o=t.sliceString(e-2,e);return Ky(ag(o,0))==o.length?o:o.slice(1)}function sPe(t,e,o,f){let E=null,d=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:o,from:s.to}],effects:FT.of(s.to+e.length),range:hi.range(s.anchor+e.length,s.head+e.length)};let n=oq(t.doc,s.head);return!n||/\s/.test(n)||f.indexOf(n)>-1?{changes:{insert:e+o,from:s.head},effects:FT.of(s.head+e.length),range:hi.cursor(s.head+e.length)}:{range:E=s}});return E?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function lPe(t,e,o){let f=null,E=t.changeByRange(d=>d.empty&&oq(t.doc,d.head)==o?{changes:{from:d.head,to:d.head+o.length,insert:o},range:hi.cursor(d.head+o.length)}:f={range:d});return f?null:t.update(E,{scrollIntoView:!0,userEvent:"input.type"})}function cPe(t,e,o,f){let E=f.stringPrefixes||$I.stringPrefixes,d=null,s=t.changeByRange(n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:FT.of(n.to+e.length),range:hi.range(n.anchor+e.length,n.head+e.length)};let u=n.head,b=oq(t.doc,u),i;if(b==e){if(Pme(t,u))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(jxe(t,u)){let w=o&&t.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+w.length,insert:w},range:hi.cursor(u+w.length)}}}else{if(o&&t.sliceDoc(u-2*e.length,u)==e+e&&(i=Rme(t,u-2*e.length,E))>-1&&Pme(t,i))return{changes:{insert:e+e+e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)};if(t.charCategorizer(u)(b)!=yh.Word&&Rme(t,u,E)>-1&&!uPe(t,u,e,E))return{changes:{insert:e+e,from:u},effects:FT.of(u+e.length),range:hi.cursor(u+e.length)}}return{range:d=n}});return d?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Pme(t,e){let o=Gf(t).resolveInner(e+1);return o.parent&&o.from==e}function uPe(t,e,o,f){let E=Gf(t).resolveInner(e,-1),d=f.reduce((s,n)=>Math.max(s,n.length),0);for(let s=0;s<5;s++){let n=t.sliceDoc(E.from,Math.min(E.to,E.from+o.length+d)),u=n.indexOf(o);if(!u||u>-1&&f.indexOf(n.slice(0,u))>-1){let i=E.firstChild;for(;i&&i.from==E.from&&i.to-i.from>o.length+u;){if(t.sliceDoc(i.to-o.length,i.to)==o)return!1;i=i.firstChild}return!0}let b=E.to==e&&E.parent;if(!b)break;E=b}return!1}function Rme(t,e,o){let f=t.charCategorizer(e);if(f(t.sliceDoc(e-1,e))!=yh.Word)return e;for(let E of o){let d=e-E.length;if(t.sliceDoc(d,e)==E&&f(t.sliceDoc(d-1,d))!=yh.Word)return d}return-1}function VI(t={}){return[Wv,Kg.of(t),UEe,fPe,Nxe]}const Qxe=[{key:"Ctrl-Space",run:zEe},{key:"Escape",run:NEe},{key:"ArrowDown",run:$Q(!0)},{key:"ArrowUp",run:$Q(!1)},{key:"PageDown",run:$Q(!0,"page")},{key:"PageUp",run:$Q(!1,"page")},{key:"Enter",run:BEe}],fPe=ny.highest(FO.computeN([Kg],t=>t.facet(Kg).defaultKeymap?[Qxe]:[]));class dPe{constructor(e,o,f){this.from=e,this.to=o,this.diagnostic=f}}class LT{constructor(e,o,f){this.diagnostics=e,this.panel=o,this.selected=f}static init(e,o,f){let E=e,d=f.facet($T).markerFilter;d&&(E=d(E));let s=Ns.set(E.map(n=>n.from==n.to||n.from==n.to-1&&f.doc.lineAt(n.from).to==n.from?Ns.widget({widget:new OPe(n),diagnostic:n}).range(n.from):Ns.mark({attributes:{class:"cm-lintRange cm-lintRange-"+n.severity+(n.markClass?" "+n.markClass:"")},diagnostic:n}).range(n.from,n.to)),!0);return new LT(s,o,hM(s))}}function hM(t,e=null,o=0){let f=null;return t.between(o,1e9,(E,d,{spec:s})=>{if(!(e&&s.diagnostic!=e))return f=new dPe(E,d,s.diagnostic),!1}),f}function hPe(t,e){let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(f=>f.is(nue))||t.changes.touchesRange(o.from,o.to))}function Hxe(t,e){return t.field(Kv,!1)?e:e.concat(Ql.appendConfig.of(Yxe))}function pPe(t,e){return{effects:Hxe(t,[nue.of(e)])}}const nue=Ql.define(),rue=Ql.define(),Zxe=Ql.define(),Kv=tm.define({create(){return new LT(Ns.none,null,null)},update(t,e){if(e.docChanged){let o=t.diagnostics.map(e.changes),f=null;if(t.selected){let E=e.changes.mapPos(t.selected.from,1);f=hM(o,t.selected.diagnostic,E)||hM(o,null,E)}t=new LT(o,t.panel,f)}for(let o of e.effects)o.is(nue)?t=LT.init(o.value,t.panel,e.state):o.is(rue)?t=new LT(t.diagnostics,o.value?iq.open:null,t.selected):o.is(Zxe)&&(t=new LT(t.diagnostics,t.panel,o.value));return t},provide:t=>[RI.from(t,e=>e.panel),Xa.decorations.from(t,e=>e.diagnostics)]}),mPe=Ns.mark({class:"cm-lintRange cm-lintRange-active"});function gPe(t,e,o){let{diagnostics:f}=t.state.field(Kv),E=[],d=2e8,s=0;f.between(e-(o<0?1:0),e+(o>0?1:0),(u,b,{spec:i})=>{e>=u&&e<=b&&(u==b||(e>u||o>0)&&(eWxe(t,o,!1)))}const yPe=t=>{let e=t.state.field(Kv,!1);(!e||!e.panel)&&t.dispatch({effects:Hxe(t.state,[rue.of(!0)])});let o=PI(t,iq.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},Lme=t=>{let e=t.state.field(Kv,!1);return!e||!e.panel?!1:(t.dispatch({effects:rue.of(!1)}),!0)},bPe=t=>{let e=t.state.field(Kv,!1);if(!e)return!1;let o=t.state.selection.main,f=e.diagnostics.iter(o.to+1);return!f.value&&(f=e.diagnostics.iter(0),!f.value||f.from==o.from&&f.to==o.to)?!1:(t.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0}),!0)},xPe=[{key:"Mod-Shift-m",run:yPe,preventDefault:!0},{key:"F8",run:bPe}],_Pe=bh.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet($T);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(f(this.view)))).then(f=>{let E=f.reduce((d,s)=>d.concat(s));this.view.state.doc==e.doc&&this.view.dispatch(pPe(this.view.state,E))},f=>{ey(this.view.state,f)})}}update(t){let e=t.state.facet($T);(t.docChanged||e!=t.startState.facet($T)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),$T=ls.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},E_(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,o)=>e?o?f=>e(f)||o(f):e:o}))}});function wPe(t,e={}){return[$T.of({source:t,config:e}),_Pe,Yxe]}function qxe(t){let e=[];if(t)e:for(let{name:o}of t){for(let f=0;fd.toLowerCase()==E.toLowerCase())){e.push(E);continue e}}e.push("")}return e}function Wxe(t,e,o){var f;let E=o?qxe(e.actions):[];return zd("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},zd("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(f=e.actions)===null||f===void 0?void 0:f.map((d,s)=>{let n=!1,u=w=>{if(w.preventDefault(),n)return;n=!0;let y=hM(t.state.field(Kv).diagnostics,e);y&&d.apply(t,y.from,y.to)},{name:b}=d,i=E[s]?b.indexOf(E[s]):-1,S=i<0?b:[b.slice(0,i),zd("u",b.slice(i,i+1)),b.slice(i+1)];return zd("button",{type:"button",class:"cm-diagnosticAction",onclick:u,onmousedown:u,"aria-label":` Action: ${b}${i<0?"":` (access key "${E[s]})"`}.`},S)}),e.source&&zd("div",{class:"cm-diagnosticSource"},e.source))}class OPe extends Ex{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return zd("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Ime{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Wxe(e,o,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class iq{constructor(e){this.view=e,this.items=[];let o=E=>{if(E.keyCode==27)Lme(this.view),this.view.focus();else if(E.keyCode==38||E.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(E.keyCode==40||E.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(E.keyCode==36)this.moveSelection(0);else if(E.keyCode==35)this.moveSelection(this.items.length-1);else if(E.keyCode==13)this.view.focus();else if(E.keyCode>=65&&E.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],s=qxe(d.actions);for(let n=0;n{for(let d=0;dLme(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Kv).selected;if(!e)return-1;for(let o=0;o{let b=-1,i;for(let S=f;Sf&&(this.items.splice(f,b-f),E=!0)),o&&i.diagnostic==o.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),d=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),f++});f({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:n})=>{let u=n.height/this.list.offsetHeight;s.topn.bottom&&(this.list.scrollTop+=(s.bottom-n.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),E&&this.sync()}sync(){let e=this.list.firstChild;function o(){let f=e;e=f.nextSibling,f.remove()}for(let f of this.items)if(f.dom.parentNode==this.list){for(;e!=f.dom;)o();e=f.dom.nextSibling}else this.list.insertBefore(f.dom,e);for(;e;)o()}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(Kv),f=hM(o.diagnostics,this.items[e].diagnostic);f&&this.view.dispatch({selection:{anchor:f.from,head:f.to},scrollIntoView:!0,effects:Zxe.of(f)})}static open(e){return new iq(e)}}function SPe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function VQ(t){return SPe(``,'width="6" height="3"')}const kPe=Xa.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:VQ("#d11")},".cm-lintRange-warning":{backgroundImage:VQ("orange")},".cm-lintRange-info":{backgroundImage:VQ("#999")},".cm-lintRange-hint":{backgroundImage:VQ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Yxe=[Kv,Xa.decorations.compute([Kv],t=>{let{selected:e,panel:o}=t.field(Kv);return!e||!o||e.from==e.to?Ns.none:Ns.set([mPe.range(e.from,e.to)])}),vAe(gPe,{hideOn:hPe}),kPe],TPe=(()=>[TAe(),MAe(),Z6e(),Z8e(),x8e(),D6e(),$6e(),kc.allowMultipleSelections.of(!0),l8e(),Fbe(S8e,{fallback:!0}),P8e(),ePe(),VI(),aAe(),cAe(),K6e(),KMe(),FO.of([...oPe,...ZMe,...vEe,...tMe,...g8e,...Qxe,...xPe])])();/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon -*/var SPe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[OPe]}),kPe=Symbol("vue-codemirror-global-config"),H0,TPe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,E=t.onBlur,d=function(s,n){var u={};for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&n.indexOf(b)<0&&(u[b]=s[b]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(s);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let E=e.parser.context;return new nZ(e,[],o,f,f,0,[],0,E?new Ime(E,E.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,E=e&65535,{parser:d}=this.p,s=d.dynamicPrecedence(E);if(s&&(this.score+=s),f==0){this.pushState(d.getGoto(this.state,E,!0),this.reducePos),E=2e3&&!(!((o=this.p.parser.nodeSet.types[E])===null||o===void 0)&&o.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(E,u)}storeNode(e,o,f,E=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(o==f)return;if(s.buffer[n-2]>=o){s.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,E);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>f;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,E>4&&(E-=4);this.buffer[s]=e,this.buffer[s+1]=o,this.buffer[s+2]=f,this.buffer[s+3]=E}}shift(e,o,f,E){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=E,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,E,4);else{let d=e,{parser:s}=this.p;(E>this.pos||o<=s.maxNode)&&(this.pos=E,s.stateFlag(d,1)||(this.reducePos=E)),this.pushState(d,f),this.shiftContext(o,f),o<=s.maxNode&&this.buffer.push(o,f,E,4)}}apply(e,o,f,E){e&65536?this.reduce(e):this.shift(e,o,f,E)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let E=this.pos;this.reducePos=this.pos=E+e.length,this.pushState(o,E),this.buffer.push(f,E,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),E=e.bufferBase+o;for(;e&&E==e.bufferBase;)e=e.parent;return new nZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,E,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new RPe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let E=[];for(let d=0,s;du&1&&n==s)||E.push(o[d],s)}o=E}let f=[];for(let E=0;E>19,E=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],E,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;o=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(E,d)=>{if(!o.includes(E))return o.push(E),e.allActions(E,s=>{if(!(s&393216))if(s&65536){let n=(s>>19)-d;if(n>1){let u=s&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],u,!1)>=0)return n<<19|65536|u}}else{let n=f(s,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ime{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class RPe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let E=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=E}}class rZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new rZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new rZ(this.stack,this.pos,this.index)}}function XL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,E=0;f=92&&s--,s>=34&&s--;let u=s-32;if(u>=46&&(u-=46,n=!0),d+=u,n)break;d*=46}o?o[E++]=d:o=new e(d)}return o}class gH{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Dme=new gH;class LPe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Dme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,E=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(E==this.ranges.length-1)return null;let s=this.ranges[++E];d+=s.from-f.to,f=s}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,E;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),E=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),E}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=Dme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let E of this.ranges){if(E.from>=o)break;E.to>e&&(f+=this.input.read(Math.max(E.from,e),Math.min(E.to,o)))}return f}}class J8{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;Yxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}J8.prototype.contextual=J8.prototype.fallback=J8.prototype.extend=!1;class oZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?XL(e):e}token(e,o){let f=e.pos,E=0;for(;;){let d=e.next<0,s=e.resolveOffset(1,1);if(Yxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||E++,s==null)break;e.reset(s,e.token)}E&&(e.reset(f,e.token),e.acceptToken(this.elseToken,E))}}oZ.prototype.contextual=J8.prototype.fallback=J8.prototype.extend=!1;class Y0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function Yxe(t,e,o,f,E,d){let s=0,n=1<0){let m=t[y];if(u.allows(m)&&(e.token.value==-1||e.token.value==m||IPe(m,e.token.value,E,d))){e.acceptToken(m);break}}let i=e.next,S=0,w=t[s+2];if(e.next<0&&w>S&&t[b+w*3-3]==65535){s=t[b+w*3-1];continue e}for(;S>1,m=b+y+(y<<1),a=t[m],c=t[m+1]||65536;if(i=c)S=y+1;else{s=t[m+2],e.advance();continue e}}break}}function Bme(t,e,o){for(let f=e,E;(E=t[f])!=65535;f++)if(E==o)return f-e;return-1}function IPe(t,e,o,f){let E=Bme(o,f,e);return E<0||Bme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let DPe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?zme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?zme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(d instanceof gf){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(s),this.index.push(0))}else this.index[o]++,this.nextStart=s+d.length}}};class BPe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new gH)}getActions(e){let o=0,f=null,{parser:E}=e.p,{tokenizers:d}=E,s=E.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,u=0;for(let b=0;bS.end+25&&(u=Math.max(S.lookAhead,u)),S.value!=0)){let w=o;if(S.extended>-1&&(o=this.addActions(e,S.extended,S.end,o)),o=this.addActions(e,S.value,S.end,o),!i.extend&&(f=S,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return u&&e.setLookAhead(u),!f&&e.pos==this.stream.end&&(f=new gH,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new gH,{pos:f,p:E}=e;return o.start=f,o.end=Math.min(f+1,E.stream.end),o.value=f==E.stream.end?E.parser.eofTerm:0,o}updateCachedToken(e,o,f){let E=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(E,e),f),e.value>-1){let{parser:d}=f.p;for(let s=0;s=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(E+1)}putAction(e,o,f,E){for(let d=0;de.bufferLength*4?new DPe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],E,d;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;so)f.push(n);else{if(this.advanceStack(n,f,e))continue;{E||(E=[],d=[]),E.push(n);let u=this.tokens.getMainToken(n);d.push(u.value,u.end)}}break}}if(!f.length){let s=E&&FPe(E);if(s)return jv&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw jv&&E&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&E){let s=this.stoppedAt!=null&&E[0].pos>this.stoppedAt?E[0]:this.runRecovery(E,d,f);if(s)return jv&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(f.length>s)for(f.sort((n,u)=>u.score-n.score);f.length>s;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let s=0;s500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(u--,1);else{f.splice(s--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&E>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let S=this.fragments.nodeAt(E);S;){let w=this.parser.nodeSet.types[S.type.id]==S.type?d.getGoto(e.state,S.type.id):-1;if(w>-1&&S.length&&(!b||(S.prop(Zl.contextHash)||0)==i))return e.useNode(S,w),jv&&console.log(s+this.stackID(e)+` (via reuse of ${d.getName(S.type.id)})`),!0;if(!(S instanceof gf)||S.children.length==0||S.positions[0]>0)break;let y=S.children[0];if(y instanceof gf&&S.positions[0]==0)S=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),jv&&console.log(s+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let b=0;bE?o.push(m):f.push(m)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return Nme(e,o),!0}}runRecovery(e,o,f){let E=null,d=!1;for(let s=0;s ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),jv&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let S=n.split(),w=i;for(let y=0;S.forceReduce()&&y<10&&(jv&&console.log(w+this.stackID(S)+" (via force-reduce)"),!this.advanceFully(S,f));y++)jv&&(w=this.stackID(S)+" -> ");for(let y of n.recoverByInsert(u))jv&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,u=0),n.recoverByDelete(u,b),jv&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(u)})`),Nme(n,f)):(!E||E.scoret;class nue{constructor(e){this.start=e.start,this.shift=e.shift||Xie,this.reduce=e.reduce||Xie,this.reuse=e.reuse||Xie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class k4 extends Ice{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),E=[];for(let n=0;n=0)d(i,u,n[b++]);else{let S=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],u,S);b++}}}this.nodeSet=new dD(o.map((n,u)=>Jp.define({name:u>=this.minRepeatTerm?void 0:n,id:u,props:E[u],top:f.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=bbe;let s=XL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new J8(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let E=new zPe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}getGoto(e,o,f=!1){let E=this.goto;if(o>=E[0])return-1;for(let d=E[o+1];;){let s=E[d++],n=s&1,u=E[d++];if(n&&f)return u;for(let b=d+(s>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),E=f?o(f):void 0;for(let d=this.stateSlot(e,1);E==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=TO(this.data,d+2);else break;E=o(TO(this.data,d+1))}return E}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=TO(this.data,f+2);else break;if(!(this.data[f+2]&1)){let E=this.data[f+1];o.some((d,s)=>s&1&&d==E)||o.push(this.data[f],E)}}return o}configure(e){let o=Object.assign(Object.create(k4.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let E=e.tokenizers.find(d=>d.from==f);return E?E.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,E)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let s=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[E]=Fme(s),s})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let s=o.indexOf(d);s>=0&&(f[s]=!0)}let E=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const $Pe=1,Xxe=201,Gxe=202,VPe=203,$me=204,UPe=205,jPe=206,QPe=207,HPe=2,ZPe=208,qPe=209,WPe=3,YPe=210,XPe=211,GPe=4,KPe=212,JPe=213,e7e=5,t7e=214,n7e=26,r7e=27,o7e=51,i7e=52,a7e=57,s7e=58,l7e=59,c7e=61,u7e=62,f7e=63,d7e=64,h7e=65,p7e=67,m7e=251,g7e=74,v7e=270,y7e=115,b7e=133,x7e=154,_7e=155,w7e=158,VI=10,UI=13,rue=32,aq=9,oue=35,O7e=40,S7e=46,Vme=123,Kxe=39,Jxe=34,k7e=92,T7e=new Set([r7e,o7e,i7e,v7e,p7e,b7e,s7e,l7e,m7e,d7e,h7e,g7e,u7e,f7e,x7e,_7e,w7e,y7e]);function Gie(t){return t==VI||t==UI}const C7e=new Y0((t,e)=>{let o;if(t.next<0)t.acceptToken(jPe);else if(e.context.depth<0)Gie(t.next)&&t.acceptToken(UPe,1);else if(((o=t.peek(-1))<0||Gie(o))&&e.canShift($me)){let f=0;for(;t.next==rue||t.next==aq;)t.advance(),f++;(t.next==VI||t.next==UI||t.next==oue)&&t.acceptToken($me,-f)}else Gie(t.next)&&t.acceptToken(VPe,1)},{contextual:!0}),A7e=new Y0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==VI||f==UI){let E=0,d=0;for(;;){if(t.next==rue)E++;else if(t.next==aq)E+=8-E%8;else break;t.advance(),d++}E!=o&&t.next!=VI&&t.next!=UI&&t.next!=oue&&(E{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==rue||o==aq)){o!=O7e&&o!=S7e&&o!=VI&&o!=UI&&o!=oue&&t.acceptToken($Pe);return}}});function sq(t,e,o,f,E){return new Y0(d=>{let s=d.pos;for(;!(d.next<0);)if(d.next==Vme)if(d.peek(1)==Vme)d.advance(2);else{if(d.pos==s){d.acceptToken(f,1);return}break}else if(d.next==k7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==s){d.acceptToken(E,e);return}break}else d.advance();d.pos>s&&d.acceptToken(o)})}const L7e=sq(Kxe,1,QPe,HPe,ZPe),I7e=sq(Jxe,1,qPe,WPe,YPe),D7e=sq(Kxe,3,XPe,GPe,KPe),B7e=sq(Jxe,3,JPe,e7e,t7e),z7e=M4({'async "*" "**" FormatConversion FormatSpec':hr.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":hr.controlKeyword,"in not and or is del":hr.operatorKeyword,"from def class global nonlocal lambda":hr.definitionKeyword,import:hr.moduleKeyword,"with as print":hr.keyword,Boolean:hr.bool,None:hr.null,VariableName:hr.variableName,"CallExpression/VariableName":hr.function(hr.variableName),"FunctionDefinition/VariableName":hr.function(hr.definition(hr.variableName)),"ClassDefinition/VariableName":hr.definition(hr.className),PropertyName:hr.propertyName,"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),Comment:hr.lineComment,Number:hr.number,String:hr.string,FormatString:hr.special(hr.string),UpdateOp:hr.updateOperator,"ArithOp!":hr.arithmeticOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,AssignOp:hr.definitionOperator,Ellipsis:hr.punctuation,At:hr.meta,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,".":hr.derefOperator,", ;":hr.separator}),N7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},F7e=k4.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:P7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[z7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$N7e[t]||-1}],tokenPrec:7372}),Ume=new Lce,e2e=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function UQ(t){return(e,o,f)=>{if(f)return!1;let E=e.node.getChild("VariableName");return E&&o(E,t),!0}}const $7e={FunctionDefinition:UQ("function"),ClassDefinition:UQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:E}=t,d=((o=E.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let s=E.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((f=s.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(s,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:UQ("variable"),AsPattern:UQ("variable"),__proto__:null};function t2e(t,e){let o=Ume.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(s.name){let n=$7e[s.name];if(n&&n(s,d,E)||!E&&e2e.has(s.name))return!1;E=!1}else if(s.to-s.from>8192){for(let n of t2e(t,s.node))f.push(n);return!1}}),Ume.set(e,f),f}const jme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,n2e=["String","FormatString","Comment","PropertyName"];function V7e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(n2e.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&jme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)e2e.has(E.name)&&(f=f.concat(t2e(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:jme}}const U7e=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),j7e=[Dh("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Dh("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Dh("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Dh("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Dh(`if \${}: +*/var CPe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[TPe]}),APe=Symbol("vue-codemirror-global-config"),H0,MPe=function(t){var e=t.onUpdate,o=t.onChange,f=t.onFocus,E=t.onBlur,d=function(s,n){var u={};for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&n.indexOf(b)<0&&(u[b]=s[b]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(b=Object.getOwnPropertySymbols(s);io%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,o,f=0){let E=e.parser.context;return new rZ(e,[],o,f,f,0,[],0,E?new Bme(E,E.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,o){this.stack.push(this.state,o,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var o;let f=e>>19,E=e&65535,{parser:d}=this.p,s=d.dynamicPrecedence(E);if(s&&(this.score+=s),f==0){this.pushState(d.getGoto(this.state,E,!0),this.reducePos),E=2e3&&!(!((o=this.p.parser.nodeSet.types[E])===null||o===void 0)&&o.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=b):this.p.lastBigReductionSizen;)this.stack.pop();this.reduceContext(E,u)}storeNode(e,o,f,E=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[n-4]==0&&s.buffer[n-1]>-1){if(o==f)return;if(s.buffer[n-2]>=o){s.buffer[n-2]=f;return}}}if(!d||this.pos==f)this.buffer.push(e,o,f,E);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>f;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,E>4&&(E-=4);this.buffer[s]=e,this.buffer[s+1]=o,this.buffer[s+2]=f,this.buffer[s+3]=E}}shift(e,o,f,E){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=E,this.shiftContext(o,f),o<=this.p.parser.maxNode&&this.buffer.push(o,f,E,4);else{let d=e,{parser:s}=this.p;(E>this.pos||o<=s.maxNode)&&(this.pos=E,s.stateFlag(d,1)||(this.reducePos=E)),this.pushState(d,f),this.shiftContext(o,f),o<=s.maxNode&&this.buffer.push(o,f,E,4)}}apply(e,o,f,E){e&65536?this.reduce(e):this.shift(e,o,f,E)}useNode(e,o){let f=this.p.reused.length-1;(f<0||this.p.reused[f]!=e)&&(this.p.reused.push(e),f++);let E=this.pos;this.reducePos=this.pos=E+e.length,this.pushState(o,E),this.buffer.push(f,E,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,o=e.buffer.length;for(;o>0&&e.buffer[o-2]>e.reducePos;)o-=4;let f=e.buffer.slice(o),E=e.bufferBase+o;for(;e&&E==e.bufferBase;)e=e.parent;return new rZ(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,f,E,this.curContext,this.lookAhead,e)}recoverByDelete(e,o){let f=e<=this.p.parser.maxNode;f&&this.storeNode(e,this.pos,o,4),this.storeNode(0,this.pos,o,f?8:4),this.pos=this.reducePos=o,this.score-=190}canShift(e){for(let o=new DPe(this);;){let f=this.p.parser.stateSlot(o.state,4)||this.p.parser.hasAction(o.state,e);if(f==0)return!1;if(!(f&65536))return!0;o.reduce(f)}}recoverByInsert(e){if(this.stack.length>=300)return[];let o=this.p.parser.nextStates(this.state);if(o.length>8||this.stack.length>=120){let E=[];for(let d=0,s;du&1&&n==s)||E.push(o[d],s)}o=E}let f=[];for(let E=0;E>19,E=o&65535,d=this.stack.length-f*3;if(d<0||e.getGoto(this.stack[d],E,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;o=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(o),!0}findForcedReduction(){let{parser:e}=this.p,o=[],f=(E,d)=>{if(!o.includes(E))return o.push(E),e.allActions(E,s=>{if(!(s&393216))if(s&65536){let n=(s>>19)-d;if(n>1){let u=s&65535,b=this.stack.length-n*3;if(b>=0&&e.getGoto(this.stack[b],u,!1)>=0)return n<<19|65536|u}}else{let n=f(s,d+1);if(n!=null)return n}})};return f(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let o=0;othis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Bme{constructor(e,o){this.tracker=e,this.context=o,this.hash=e.strict?e.hash(o):0}}class DPe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let o=e&65535,f=e>>19;f==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(f-1)*3;let E=this.start.p.parser.getGoto(this.stack[this.base-3],o,!0);this.state=E}}class oZ{constructor(e,o,f){this.stack=e,this.pos=o,this.index=f,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,o=e.bufferBase+e.buffer.length){return new oZ(e,o,o-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new oZ(this.stack,this.pos,this.index)}}function XL(t,e=Uint16Array){if(typeof t!="string")return t;let o=null;for(let f=0,E=0;f=92&&s--,s>=34&&s--;let u=s-32;if(u>=46&&(u-=46,n=!0),d+=u,n)break;d*=46}o?o[E++]=d:o=new e(d)}return o}class vH{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const zme=new vH;class BPe{constructor(e,o){this.input=e,this.ranges=o,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=zme,this.rangeIndex=0,this.pos=this.chunkPos=o[0].from,this.range=o[0],this.end=o[o.length-1].to,this.readNext()}resolveOffset(e,o){let f=this.range,E=this.rangeIndex,d=this.pos+e;for(;df.to:d>=f.to;){if(E==this.ranges.length-1)return null;let s=this.ranges[++E];d+=s.from-f.to,f=s}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,o.from);return this.end}peek(e){let o=this.chunkOff+e,f,E;if(o>=0&&o=this.chunk2Pos&&fn.to&&(this.chunk2=this.chunk2.slice(0,n.to-f)),E=this.chunk2.charCodeAt(0)}}return f>=this.token.lookAhead&&(this.token.lookAhead=f+1),E}acceptToken(e,o=0){let f=o?this.resolveOffset(o,-1):this.pos;if(f==null||f=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,o){if(o?(this.token=o,o.start=e,o.lookAhead=e+1,o.value=o.extended=-1):this.token=zme,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&o<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,o-this.chunkPos);if(e>=this.chunk2Pos&&o<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,o-this.chunk2Pos);if(e>=this.range.from&&o<=this.range.to)return this.input.read(e,o);let f="";for(let E of this.ranges){if(E.from>=o)break;E.to>e&&(f+=this.input.read(Math.max(E.from,e),Math.min(E.to,o)))}return f}}class eM{constructor(e,o){this.data=e,this.id=o}token(e,o){let{parser:f}=o.p;Gxe(this.data,e,o,this.id,f.data,f.tokenPrecTable)}}eM.prototype.contextual=eM.prototype.fallback=eM.prototype.extend=!1;class iZ{constructor(e,o,f){this.precTable=o,this.elseToken=f,this.data=typeof e=="string"?XL(e):e}token(e,o){let f=e.pos,E=0;for(;;){let d=e.next<0,s=e.resolveOffset(1,1);if(Gxe(this.data,e,o,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||E++,s==null)break;e.reset(s,e.token)}E&&(e.reset(f,e.token),e.acceptToken(this.elseToken,E))}}iZ.prototype.contextual=eM.prototype.fallback=eM.prototype.extend=!1;class Y0{constructor(e,o={}){this.token=e,this.contextual=!!o.contextual,this.fallback=!!o.fallback,this.extend=!!o.extend}}function Gxe(t,e,o,f,E,d){let s=0,n=1<0){let m=t[y];if(u.allows(m)&&(e.token.value==-1||e.token.value==m||zPe(m,e.token.value,E,d))){e.acceptToken(m);break}}let i=e.next,S=0,w=t[s+2];if(e.next<0&&w>S&&t[b+w*3-3]==65535){s=t[b+w*3-1];continue e}for(;S>1,m=b+y+(y<<1),a=t[m],c=t[m+1]||65536;if(i=c)S=y+1;else{s=t[m+2],e.advance();continue e}}break}}function Nme(t,e,o){for(let f=e,E;(E=t[f])!=65535;f++)if(E==o)return f-e;return-1}function zPe(t,e,o,f){let E=Nme(o,f,e);return E<0||Nme(o,f,t)e)&&!f.type.isError)return o<0?Math.max(0,Math.min(f.to-1,e-25)):Math.min(t.length,Math.max(f.from+1,e+25));if(o<0?f.prevSibling():f.nextSibling())break;if(!f.parent())return o<0?0:t.length}}let NPe=class{constructor(e,o){this.fragments=e,this.nodeSet=o,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Fme(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Fme(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=s,null;if(d instanceof gf){if(s==e){if(s=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(s),this.index.push(0))}else this.index[o]++,this.nextStart=s+d.length}}};class FPe{constructor(e,o){this.stream=o,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(f=>new vH)}getActions(e){let o=0,f=null,{parser:E}=e.p,{tokenizers:d}=E,s=E.stateSlot(e.state,3),n=e.curContext?e.curContext.hash:0,u=0;for(let b=0;bS.end+25&&(u=Math.max(S.lookAhead,u)),S.value!=0)){let w=o;if(S.extended>-1&&(o=this.addActions(e,S.extended,S.end,o)),o=this.addActions(e,S.value,S.end,o),!i.extend&&(f=S,o>w))break}}for(;this.actions.length>o;)this.actions.pop();return u&&e.setLookAhead(u),!f&&e.pos==this.stream.end&&(f=new vH,f.value=e.p.parser.eofTerm,f.start=f.end=e.pos,o=this.addActions(e,f.value,f.end,o)),this.mainToken=f,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let o=new vH,{pos:f,p:E}=e;return o.start=f,o.end=Math.min(f+1,E.stream.end),o.value=f==E.stream.end?E.parser.eofTerm:0,o}updateCachedToken(e,o,f){let E=this.stream.clipPos(f.pos);if(o.token(this.stream.reset(E,e),f),e.value>-1){let{parser:d}=f.p;for(let s=0;s=0&&f.p.parser.dialect.allows(n>>1)){n&1?e.extended=n>>1:e.value=n>>1;break}}}else e.value=0,e.end=this.stream.clipPos(E+1)}putAction(e,o,f,E){for(let d=0;de.bufferLength*4?new NPe(f,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,o=this.minStackPos,f=this.stacks=[],E,d;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;so)f.push(n);else{if(this.advanceStack(n,f,e))continue;{E||(E=[],d=[]),E.push(n);let u=this.tokens.getMainToken(n);d.push(u.value,u.end)}}break}}if(!f.length){let s=E&&UPe(E);if(s)return jv&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw jv&&E&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&E){let s=this.stoppedAt!=null&&E[0].pos>this.stoppedAt?E[0]:this.runRecovery(E,d,f);if(s)return jv&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(f.length>s)for(f.sort((n,u)=>u.score-n.score);f.length>s;)f.pop();f.some(n=>n.reducePos>o)&&this.recovering--}else if(f.length>1){e:for(let s=0;s500&&b.buffer.length>500)if((n.score-b.score||n.buffer.length-b.buffer.length)>0)f.splice(u--,1);else{f.splice(s--,1);continue e}}}f.length>12&&f.splice(12,f.length-12)}this.minStackPos=f[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&E>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let b=e.curContext&&e.curContext.tracker.strict,i=b?e.curContext.hash:0;for(let S=this.fragments.nodeAt(E);S;){let w=this.parser.nodeSet.types[S.type.id]==S.type?d.getGoto(e.state,S.type.id):-1;if(w>-1&&S.length&&(!b||(S.prop(Zl.contextHash)||0)==i))return e.useNode(S,w),jv&&console.log(s+this.stackID(e)+` (via reuse of ${d.getName(S.type.id)})`),!0;if(!(S instanceof gf)||S.children.length==0||S.positions[0]>0)break;let y=S.children[0];if(y instanceof gf&&S.positions[0]==0)S=y;else break}}let n=d.stateSlot(e.state,4);if(n>0)return e.reduce(n),jv&&console.log(s+this.stackID(e)+` (via always-reduce ${d.getName(n&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let b=0;bE?o.push(m):f.push(m)}return!1}advanceFully(e,o){let f=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>f)return $me(e,o),!0}}runRecovery(e,o,f){let E=null,d=!1;for(let s=0;s ":"";if(n.deadEnd&&(d||(d=!0,n.restart(),jv&&console.log(i+this.stackID(n)+" (restarted)"),this.advanceFully(n,f))))continue;let S=n.split(),w=i;for(let y=0;S.forceReduce()&&y<10&&(jv&&console.log(w+this.stackID(S)+" (via force-reduce)"),!this.advanceFully(S,f));y++)jv&&(w=this.stackID(S)+" -> ");for(let y of n.recoverByInsert(u))jv&&console.log(i+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,f);this.stream.end>n.pos?(b==n.pos&&(b++,u=0),n.recoverByDelete(u,b),jv&&console.log(i+this.stackID(n)+` (via recover-delete ${this.parser.getName(u)})`),$me(n,f)):(!E||E.scoret;class oue{constructor(e){this.start=e.start,this.shift=e.shift||Gie,this.reduce=e.reduce||Gie,this.reuse=e.reuse||Gie,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class k4 extends Dce{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let o=e.nodeNames.split(" ");this.minRepeatTerm=o.length;for(let n=0;ne.topRules[n][1]),E=[];for(let n=0;n=0)d(i,u,n[b++]);else{let S=n[b+-i];for(let w=-i;w>0;w--)d(n[b++],u,S);b++}}}this.nodeSet=new hD(o.map((n,u)=>Jp.define({name:u>=this.minRepeatTerm?void 0:n,id:u,props:E[u],top:f.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=_be;let s=XL(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let n=0;ntypeof n=="number"?new eM(s,n):n),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,o,f){let E=new $Pe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}getGoto(e,o,f=!1){let E=this.goto;if(o>=E[0])return-1;for(let d=E[o+1];;){let s=E[d++],n=s&1,u=E[d++];if(n&&f)return u;for(let b=d+(s>>1);d0}validAction(e,o){return!!this.allActions(e,f=>f==o?!0:null)}allActions(e,o){let f=this.stateSlot(e,4),E=f?o(f):void 0;for(let d=this.stateSlot(e,1);E==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=TO(this.data,d+2);else break;E=o(TO(this.data,d+1))}return E}nextStates(e){let o=[];for(let f=this.stateSlot(e,1);;f+=3){if(this.data[f]==65535)if(this.data[f+1]==1)f=TO(this.data,f+2);else break;if(!(this.data[f+2]&1)){let E=this.data[f+1];o.some((d,s)=>s&1&&d==E)||o.push(this.data[f],E)}}return o}configure(e){let o=Object.assign(Object.create(k4.prototype),this);if(e.props&&(o.nodeSet=this.nodeSet.extend(...e.props)),e.top){let f=this.topRules[e.top];if(!f)throw new RangeError(`Invalid top rule name ${e.top}`);o.top=f}return e.tokenizers&&(o.tokenizers=this.tokenizers.map(f=>{let E=e.tokenizers.find(d=>d.from==f);return E?E.to:f})),e.specializers&&(o.specializers=this.specializers.slice(),o.specializerSpecs=this.specializerSpecs.map((f,E)=>{let d=e.specializers.find(n=>n.from==f.external);if(!d)return f;let s=Object.assign(Object.assign({},f),{external:d.to});return o.specializers[E]=Vme(s),s})),e.contextTracker&&(o.context=e.contextTracker),e.dialect&&(o.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(o.strict=e.strict),e.wrap&&(o.wrappers=o.wrappers.concat(e.wrap)),e.bufferLength!=null&&(o.bufferLength=e.bufferLength),o}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let o=this.dynamicPrecedences;return o==null?0:o[e]||0}parseDialect(e){let o=Object.keys(this.dialects),f=o.map(()=>!1);if(e)for(let d of e.split(" ")){let s=o.indexOf(d);s>=0&&(f[s]=!0)}let E=null;for(let d=0;df)&&o.p.parser.stateFlag(o.state,2)&&(!e||e.scoret.external(o,f)<<1|e}return t.get}const jPe=1,Kxe=201,Jxe=202,QPe=203,Ume=204,HPe=205,ZPe=206,qPe=207,WPe=2,YPe=208,XPe=209,GPe=3,KPe=210,JPe=211,e7e=4,t7e=212,n7e=213,r7e=5,o7e=214,i7e=26,a7e=27,s7e=51,l7e=52,c7e=57,u7e=58,f7e=59,d7e=61,h7e=62,p7e=63,m7e=64,g7e=65,v7e=67,y7e=251,b7e=74,x7e=270,_7e=115,w7e=133,O7e=154,S7e=155,k7e=158,UI=10,jI=13,iue=32,sq=9,aue=35,T7e=40,C7e=46,jme=123,e2e=39,t2e=34,A7e=92,M7e=new Set([a7e,s7e,l7e,x7e,v7e,w7e,u7e,f7e,y7e,m7e,g7e,b7e,h7e,p7e,O7e,S7e,k7e,_7e]);function Kie(t){return t==UI||t==jI}const E7e=new Y0((t,e)=>{let o;if(t.next<0)t.acceptToken(ZPe);else if(e.context.depth<0)Kie(t.next)&&t.acceptToken(HPe,1);else if(((o=t.peek(-1))<0||Kie(o))&&e.canShift(Ume)){let f=0;for(;t.next==iue||t.next==sq;)t.advance(),f++;(t.next==UI||t.next==jI||t.next==aue)&&t.acceptToken(Ume,-f)}else Kie(t.next)&&t.acceptToken(QPe,1)},{contextual:!0}),P7e=new Y0((t,e)=>{let o=e.context.depth;if(o<0)return;let f=t.peek(-1);if(f==UI||f==jI){let E=0,d=0;for(;;){if(t.next==iue)E++;else if(t.next==sq)E+=8-E%8;else break;t.advance(),d++}E!=o&&t.next!=UI&&t.next!=jI&&t.next!=aue&&(E{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let o=t.peek(e);if(!(o==iue||o==sq)){o!=T7e&&o!=C7e&&o!=UI&&o!=jI&&o!=aue&&t.acceptToken(jPe);return}}});function lq(t,e,o,f,E){return new Y0(d=>{let s=d.pos;for(;!(d.next<0);)if(d.next==jme)if(d.peek(1)==jme)d.advance(2);else{if(d.pos==s){d.acceptToken(f,1);return}break}else if(d.next==A7e)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==s){d.acceptToken(E,e);return}break}else d.advance();d.pos>s&&d.acceptToken(o)})}const B7e=lq(e2e,1,qPe,WPe,YPe),z7e=lq(t2e,1,XPe,GPe,KPe),N7e=lq(e2e,3,JPe,e7e,t7e),F7e=lq(t2e,3,n7e,r7e,o7e),$7e=M4({'async "*" "**" FormatConversion FormatSpec':hr.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":hr.controlKeyword,"in not and or is del":hr.operatorKeyword,"from def class global nonlocal lambda":hr.definitionKeyword,import:hr.moduleKeyword,"with as print":hr.keyword,Boolean:hr.bool,None:hr.null,VariableName:hr.variableName,"CallExpression/VariableName":hr.function(hr.variableName),"FunctionDefinition/VariableName":hr.function(hr.definition(hr.variableName)),"ClassDefinition/VariableName":hr.definition(hr.className),PropertyName:hr.propertyName,"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),Comment:hr.lineComment,Number:hr.number,String:hr.string,FormatString:hr.special(hr.string),UpdateOp:hr.updateOperator,"ArithOp!":hr.arithmeticOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,AssignOp:hr.definitionOperator,Ellipsis:hr.punctuation,At:hr.meta,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,".":hr.derefOperator,", ;":hr.separator}),V7e={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},U7e=k4.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:I7e,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[$7e],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$V7e[t]||-1}],tokenPrec:7372}),Qme=new Ice,n2e=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function jQ(t){return(e,o,f)=>{if(f)return!1;let E=e.node.getChild("VariableName");return E&&o(E,t),!0}}const j7e={FunctionDefinition:jQ("function"),ClassDefinition:jQ("class"),ForStatement(t,e,o){if(o){for(let f=t.node.firstChild;f;f=f.nextSibling)if(f.name=="VariableName")e(f,"variable");else if(f.name=="in")break}},ImportStatement(t,e){var o,f;let{node:E}=t,d=((o=E.firstChild)===null||o===void 0?void 0:o.name)=="from";for(let s=E.getChild("import");s;s=s.nextSibling)s.name=="VariableName"&&((f=s.nextSibling)===null||f===void 0?void 0:f.name)!="as"&&e(s,d?"variable":"namespace")},AssignStatement(t,e){for(let o=t.node.firstChild;o;o=o.nextSibling)if(o.name=="VariableName")e(o,"variable");else if(o.name==":"||o.name=="AssignOp")break},ParamList(t,e){for(let o=null,f=t.node.firstChild;f;f=f.nextSibling)f.name=="VariableName"&&(!o||!/\*|AssignOp/.test(o.name))&&e(f,"variable"),o=f},CapturePattern:jQ("variable"),AsPattern:jQ("variable"),__proto__:null};function r2e(t,e){let o=Qme.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(s.name){let n=j7e[s.name];if(n&&n(s,d,E)||!E&&n2e.has(s.name))return!1;E=!1}else if(s.to-s.from>8192){for(let n of r2e(t,s.node))f.push(n);return!1}}),Qme.set(e,f),f}const Hme=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,o2e=["String","FormatString","Comment","PropertyName"];function Q7e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(o2e.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&Hme.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)n2e.has(E.name)&&(f=f.concat(r2e(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:Hme}}const H7e=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),Z7e=[Bh("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Bh("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Bh("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Bh("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Bh(`if \${}: -`,{label:"if",detail:"block",type:"keyword"}),Dh("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Dh("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Dh("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Dh("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Q7e=Yce(n2e,nq(U7e.concat(j7e)));function Qme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),E=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Kie=O4.define({name:"python",parser:F7e.configure({props:[tC.add({Body:t=>{var e;return(e=Qme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":mH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":mH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":mH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=Qme(t,e);if(o!=null)return o}}return t.continue()}}),E4.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Fce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function Hme(){return new WT(Kie,[Kie.data.of({autocomplete:V7e}),Kie.data.of({autocomplete:Q7e})])}const H7e="#e5c07b",Zme="#e06c75",Z7e="#56b6c2",q7e="#ffffff",vH="#abb2bf",qse="#7d8799",W7e="#61afef",Y7e="#98c379",qme="#d19a66",X7e="#c678dd",G7e="#21252b",Wme="#2c313a",Yme="#282c34",Jie="#353a42",K7e="#3E4451",Xme="#528bff",J7e=Xa.theme({"&":{color:vH,backgroundColor:Yme},".cm-content":{caretColor:Xme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:K7e},".cm-panels":{backgroundColor:G7e,color:vH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Yme,color:qse,border:"none"},".cm-activeLineGutter":{backgroundColor:Wme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Jie},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Jie,borderBottomColor:Jie},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Wme,color:vH}}},{dark:!0}),e9e=pD.define([{tag:hr.keyword,color:X7e},{tag:[hr.name,hr.deleted,hr.character,hr.propertyName,hr.macroName],color:Zme},{tag:[hr.function(hr.variableName),hr.labelName],color:W7e},{tag:[hr.color,hr.constant(hr.name),hr.standard(hr.name)],color:qme},{tag:[hr.definition(hr.name),hr.separator],color:vH},{tag:[hr.typeName,hr.className,hr.number,hr.changed,hr.annotation,hr.modifier,hr.self,hr.namespace],color:H7e},{tag:[hr.operator,hr.operatorKeyword,hr.url,hr.escape,hr.regexp,hr.link,hr.special(hr.string)],color:Z7e},{tag:[hr.meta,hr.comment],color:qse},{tag:hr.strong,fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.link,color:qse,textDecoration:"underline"},{tag:hr.heading,fontWeight:"bold",color:Zme},{tag:[hr.atom,hr.bool,hr.special(hr.variableName)],color:qme},{tag:[hr.processingInstruction,hr.string,hr.inserted],color:Y7e},{tag:hr.invalid,color:q7e}]),pM=[J7e,zbe(e9e)];function gi(t,e){return o=>Object.keys(t).reduce((f,E)=>{const s=typeof t[E]=="object"&&t[E]!=null&&!Array.isArray(t[E])?t[E]:{type:t[E]};return o&&E in o?f[E]={...s,default:o[E]}:f[E]=s,e&&!f[E].source&&(f[E].source=e),f},{})}const Js=gi({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),Hu=typeof window<"u",iue=Hu&&"IntersectionObserver"in window,t9e=Hu&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Gme(t,e,o){n9e(t,e),e.set(t,o)}function n9e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r9e(t,e,o){return t.set(r2e(t,e),o),o}function ST(t,e){return t.get(r2e(t,e))}function r2e(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function o2e(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let E=0;ER4(t[f],e[f]))}function XT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),o2e(t,e.split("."),o))}function N1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const E=e(t,o);return typeof E>"u"?o:E}if(typeof e=="string")return XT(t,e,o);if(Array.isArray(e))return o2e(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function u4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function is(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Wse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function aue(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const Kme=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Yse=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function eae(t,e){return e.every(o=>t.hasOwnProperty(o))}function sue(t,e){const o={},f=new Set(Object.keys(t));for(const E of e)f.has(E)&&(o[E]=t[E]);return o}function Jme(t,e,o){const f=Object.create(null),E=Object.create(null);for(const d in t)e.some(s=>s instanceof RegExp?s.test(d):s===d)&&!(o!=null&&o.some(s=>s===d))?f[d]=t[d]:E[d]=t[d];return[f,E]}function R_(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function o9e(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const i2e=/^on[^a-z]/,lq=t=>i2e.test(t),i9e=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],a9e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function s9e(t){return t.isComposing&&a9e.includes(t.key)}function yD(t){const[e,o]=Jme(t,[i2e]),f=R_(e,i9e),[E,d]=Jme(o,["class","style","id",/^data-/]);return Object.assign(E,e),Object.assign(d,f),[E,d]}function Pp(t){return t==null?[]:Array.isArray(t)?t:[t]}function l9e(t,e){let o=0;const f=function(){for(var E=arguments.length,d=new Array(E),s=0;st(...d),Va(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function ug(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function ege(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function tge(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function nge(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function c9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f1&&arguments[1]!==void 0?arguments[1]:1e3;if(t=e&&f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const E in t)f[E]=t[E];for(const E in e){const d=t[E],s=e[E];if(Wse(d)&&Wse(s)){f[E]=Jg(d,s,o);continue}if(Array.isArray(d)&&Array.isArray(s)&&o){f[E]=o(d,s);continue}f[E]=s}return f}function a2e(t){return t.map(e=>e.type===Ea?a2e(e.children):e).flat()}function UT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(UT.cache.has(t))return UT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return UT.cache.set(t,e),e}UT.cache=new Map;function V8(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>V8(t,o)).flat(1);if(e.suspense)return V8(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>V8(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return V8(t,e.component.subTree).flat(1)}return[]}var jQ=new WeakMap,A8=new WeakMap;class u9e{constructor(e){Gme(this,jQ,[]),Gme(this,A8,0),this.size=e}push(e){ST(jQ,this)[ST(A8,this)]=e,r9e(A8,this,(ST(A8,this)+1)%this.size)}values(){return ST(jQ,this).slice(ST(A8,this)).concat(ST(jQ,this).slice(0,ST(A8,this)))}}function lue(t){const e=Am({}),o=nr(t);return Gp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function iZ(t,e){return t.includes(e)}function s2e(t){return t[2].toLowerCase()+t.slice(3)}const fg=()=>[Function,Array];function oge(t,e){return e="on"+A_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function cue(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function l2e(t,e,o){let f,E=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do E+=d,f=t[E];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&E=0);return f}function aZ(t,e){var f,E,d,s;const o=jI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(E=o[0])==null||E.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(s=o[e])==null||s.focus();else{const n=l2e(o,e);n?n.focus():aZ(t,e==="next"?"first":"last")}}function QQ(t){return t==null||typeof t=="string"&&t.trim()===""}function c2e(){}function mM(t,e){if(!(Hu&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function cq(t){return t.some(e=>oM(e)?e.type===Z0?!1:e.type!==Ea||cq(e.children):!0)?t:null}function f9e(t,e){if(!Hu||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function ige(t,e){const o=Gi();return Gp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function d9e(t,e){const o=t.clientX,f=t.clientY,E=e.getBoundingClientRect(),d=E.left,s=E.top,n=E.right,u=E.bottom;return o>=d&&o<=n&&f>=s&&f<=u}function Xse(){const t=Gi(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>aue(t.value)}),e}const u2e=["top","bottom"],h9e=["start","end","left","right"];function Gse(t,e){let[o,f]=t.split(" ");return f||(f=iZ(u2e,o)?"start":iZ(h9e,o)?"top":"center"),{side:Kse(o,e),align:Kse(f,e)}}function Kse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function tae(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function nae(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function age(t){return{side:t.align,align:t.side}}function sge(t){return iZ(u2e,t.side)?"y":"x"}class jT{constructor(e){let{x:o,y:f,width:E,height:d}=e;this.x=o,this.y=f,this.width=E,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function lge(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function f2e(t){return Array.isArray(t)?new jT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function uue(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let E,d,s,n,u;if(f.startsWith("matrix3d("))E=f.slice(9,-1).split(/, /),d=+E[0],s=+E[5],n=+E[12],u=+E[13];else if(f.startsWith("matrix("))E=f.slice(7,-1).split(/, /),d=+E[0],s=+E[3],n=+E[4],u=+E[5];else return new jT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),S=e.y-u-(1-s)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=s?e.height/s:t.offsetHeight+1;return new jT({x:i,y:S,width:w,height:y})}else return new jT(e)}function U8(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(E=>{f.onfinish=()=>{E(f)}})),f}const yH=new WeakMap;function p9e(t,e){Object.keys(e).forEach(o=>{if(lq(o)){const f=s2e(o),E=yH.get(t);if(e[o]==null)E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))});else if(!E||![...E].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=E||new Set;d.add([f,e[o]]),yH.has(t)||yH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function m9e(t,e){Object.keys(e).forEach(o=>{if(lq(o)){const f=s2e(o),E=yH.get(t);E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))})}else t.removeAttribute(o)})}const M8=2.4,cge=.2126729,uge=.7151522,fge=.072175,g9e=.55,v9e=.58,y9e=.57,b9e=.62,HQ=.03,dge=1.45,x9e=5e-4,_9e=1.25,w9e=1.25,hge=.078,pge=12.82051282051282,ZQ=.06,mge=.001;function gge(t,e){const o=(t.r/255)**M8,f=(t.g/255)**M8,E=(t.b/255)**M8,d=(e.r/255)**M8,s=(e.g/255)**M8,n=(e.b/255)**M8;let u=o*cge+f*uge+E*fge,b=d*cge+s*uge+n*fge;if(u<=HQ&&(u+=(HQ-u)**dge),b<=HQ&&(b+=(HQ-b)**dge),Math.abs(b-u)u){const S=(b**g9e-u**v9e)*_9e;i=S-mge?0:S>-hge?S-S*pge*ZQ:S+ZQ}return i*100}function O9e(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const sZ=.20689655172413793,S9e=t=>t>sZ**3?Math.cbrt(t):t/(3*sZ**2)+4/29,k9e=t=>t>sZ?t**3:3*sZ**2*(t-4/29);function d2e(t){const e=S9e,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function h2e(t){const e=k9e,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const T9e=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],C9e=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,A9e=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],M9e=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function p2e(t){const e=Array(3),o=C9e,f=T9e;for(let E=0;E<3;++E)e[E]=Math.round(ug(o(f[E][0]*t[0]+f[E][1]*t[1]+f[E][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function fue(t){let{r:e,g:o,b:f}=t;const E=[0,0,0],d=M9e,s=A9e;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)E[n]=s[n][0]*e+s[n][1]*o+s[n][2]*f;return E}function Jse(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function E9e(t){return Jse(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const vge=/^(?(?:rgb|hsl)a?)\((?.+)\)/,P9e={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>yge({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>yge({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>QI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>QI({h:t,s:e,v:o,a:f})};function w_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&vge.test(t)){const{groups:e}=t.match(vge),{fn:o,values:f}=e,E=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return P9e[o](...E)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),L9e(e)}else if(typeof t=="object"){if(eae(t,["r","g","b"]))return t;if(eae(t,["h","s","l"]))return QI(m2e(t));if(eae(t,["h","s","v"]))return QI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function QI(t){const{h:e,s:o,v:f,a:E}=t,d=n=>{const u=(n+e/60)%6;return f-f*o*Math.max(Math.min(u,4-u,1),0)},s=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:s[0],g:s[1],b:s[2],a:E}}function yge(t){return QI(m2e(t))}function m2e(t){const{h:e,s:o,l:f,a:E}=t,d=f+o*Math.min(f,1-f),s=d===0?0:2-2*f/d;return{h:e,s,v:d,a:E}}function qQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function R9e(t){let{r:e,g:o,b:f,a:E}=t;return`#${[qQ(e),qQ(o),qQ(f),E!==void 0?qQ(Math.round(E*255)):""].join("")}`}function L9e(t){t=I9e(t);let[e,o,f,E]=c9e(t,2).map(d=>parseInt(d,16));return E=E===void 0?E:E/255,{r:e,g:o,b:f,a:E}}function I9e(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=tge(tge(t,6),8,"F")),t}function D9e(t,e){const o=d2e(fue(t));return o[0]=o[0]+e*10,p2e(h2e(o))}function B9e(t,e){const o=d2e(fue(t));return o[0]=o[0]-e*10,p2e(h2e(o))}function z9e(t){const e=w_(t);return fue(e)[1]}function g2e(t){const e=Math.abs(gge(w_(0),w_(t)));return Math.abs(gge(w_(16777215),w_(t)))>Math.min(e,50)?"#fff":"#000"}function Xh(t,e){const o=fce();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function L_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Xh(t).type;return UT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let v2e=0,bH=new WeakMap;function j1(){const t=Xh("getUid");if(bH.has(t))return bH.get(t);{const e=v2e++;return bH.set(t,e),e}}j1.reset=()=>{v2e=0,bH=new WeakMap};function N9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xh("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const gM=Symbol.for("vuetify:defaults");function F9e(t){return qo(t)}function due(){const t=Kl(gM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ab(t,e){const o=due(),f=qo(t),E=nr(()=>{if(Va(e==null?void 0:e.disabled))return o.value;const s=Va(e==null?void 0:e.scoped),n=Va(e==null?void 0:e.reset),u=Va(e==null?void 0:e.root);if(f.value==null&&!(s||n||u))return o.value;let b=Jg(f.value,{prev:o.value});if(s)return b;if(n||u){const i=Number(n||1/0);for(let S=0;S<=i&&!(!b||!("prev"in b));S++)b=b.prev;return b&&typeof u=="string"&&u in b&&(b=Jg(Jg(b,{prev:b}),b[u])),b}return b.prev?Jg(b.prev,b):b});return md(gM,E),E}function $9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[UT(e)])<"u"}function V9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:due();const f=Xh("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const E=nr(()=>{var u;return(u=o.value)==null?void 0:u[t._as??e]}),d=new Proxy(t,{get(u,b){var S,w,y,m,a,c,h;const i=Reflect.get(u,b);return b==="class"||b==="style"?[(S=E.value)==null?void 0:S[b],i].filter(p=>p!=null):typeof b=="string"&&!$9e(f.vnode,b)?((w=E.value)==null?void 0:w[b])!==void 0?(y=E.value)==null?void 0:y[b]:((a=(m=o.value)==null?void 0:m.global)==null?void 0:a[b])!==void 0?(h=(c=o.value)==null?void 0:c.global)==null?void 0:h[b]:i:i}}),s=Gi();Gp(()=>{if(E.value){const u=Object.entries(E.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});s.value=u.length?Object.fromEntries(u):void 0}else s.value=void 0});function n(){const u=N9e(gM,f);md(gM,nr(()=>s.value?Jg((u==null?void 0:u.value)??{},s.value):u==null?void 0:u.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=gi(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return sue(f,e)},t.props._as=String,t.setup=function(f,E){const d=due();if(!d.value)return t._setup(f,E);const{props:s,provideSubDefaults:n}=V9e(f,f._as??t.name,d),u=t._setup(s,E);return n(),u}}return t}function Oa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:em)(e)}function U9e(t,e){return e.props=t,e}function uq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Oa()({name:o??A_(ib(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...Js()},setup(f,E){let{slots:d}=E;return()=>{var s;return U1(f.tag,{class:[t,f.class],style:f.style},(s=d.default)==null?void 0:s.call(d))}}})}function y2e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const lZ="cubic-bezier(0.4, 0, 0.2, 1)",j9e="cubic-bezier(0.0, 0, 0.2, 1)",Q9e="cubic-bezier(0.4, 0, 1, 1)";function bge(t,e,o){return Object.keys(t).filter(f=>lq(f)&&f.endsWith(e)).reduce((f,E)=>(f[E.slice(0,-e.length)]=d=>t[E](d,o(d)),f),{})}function b2e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?H9e(t):hue(t))return t;t=t.parentElement}return document.scrollingElement}function cZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(hue(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function hue(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function H9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function Z9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ga(t){const e=Xh("useRender");e.render=t}function T4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Xse(),f=qo();if(Hu){const E=new ResizeObserver(d=>{t==null||t(d,E),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});Em(()=>{E.disconnect()}),ia(()=>o.el,(d,s)=>{s&&(E.unobserve(s),f.value=void 0),d&&E.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const HI=Symbol.for("vuetify:layout"),x2e=Symbol.for("vuetify:layout-item"),xge=1e3,q9e=gi({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),pue=gi({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function _2e(){const t=Kl(HI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Vc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function mue(t){const e=Kl(HI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${j1()}`,f=Xh("useLayoutItem");md(x2e,{id:o});const E=Gi(!1);tce(()=>E.value=!0),ece(()=>E.value=!1);const d=Vc(),{layoutItemStyles:s,layoutItemScrimStyles:n}=e.register(f,{...t,active:nr(()=>E.value?!1:t.active.value),id:o});return Em(()=>e.unregister(o)),{layoutItemStyles:s,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const W9e=(t,e,o,f)=>{let E={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...E}}];for(const s of t){const n=e.get(s),u=o.get(s),b=f.get(s);if(!n||!u||!b)continue;const i={...E,[n.value]:parseInt(E[n.value],10)+(b.value?parseInt(u.value,10):0)};d.push({id:s,layer:i}),E=i}return d};function Y9e(t){const e=Kl(HI,null),o=nr(()=>e?e.rootZIndex.value-100:xge),f=qo([]),E=Am(new Map),d=Am(new Map),s=Am(new Map),n=Am(new Map),u=Am(new Map),{resizeRef:b,contentRect:i}=T4(),S=ige(()=>{const O=[...new Set([...s.values()].map(x=>x.value))].sort((x,R)=>x-R),C=[];for(const x of O){const R=f.value.filter(M=>{var T;return((T=s.get(M))==null?void 0:T.value)===x});C.push(...R)}return W9e(C,E,d,n)}),w=nr(()=>!Array.from(u.values()).some(O=>O.value)),y=nr(()=>S.value[S.value.length-1].layer),m=nr(()=>({"--v-layout-left":is(y.value.left),"--v-layout-right":is(y.value.right),"--v-layout-top":is(y.value.top),"--v-layout-bottom":is(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=ige(()=>S.value.slice(1).map((O,C)=>{let{id:x}=O;const{layer:R}=S.value[C],M=d.get(x),T=E.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),c=O=>a.value.find(C=>C.id===O),h=Xh("createLayout"),p=Vc();md(HI,{register:(O,C)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:P,active:A,disableTransitions:L,absolute:D}=C;s.set(x,R),E.set(x,M),d.set(x,T),n.set(x,A),L&&u.set(x,L);const I=V8(x2e,h==null?void 0:h.vnode).indexOf(O);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=nr(()=>a.value.findIndex(U=>U.id===x)),$=nr(()=>o.value+S.value.length*2-z.value*2),Q=nr(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",Z=P.value??T.value,K=Z===0?"%":"px",re={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(A.value?0:-(Z===0?100:Z))*(X||te?-1:1)}${K})`,position:D.value||o.value!==xge?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...re,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:P.value?`${P.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?P.value?`${P.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=nr(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:O=>{s.delete(O),E.delete(O),d.delete(O),n.delete(O),u.delete(O),f.value=f.value.filter(C=>C!==O)},mainRect:y,mainStyles:m,getLayoutItem:c,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:p});const v=nr(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=nr(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:c,items:a,layoutRect:i,layoutIsReady:p,layoutRef:b}}function $1(t,e){let o;function f(){o=oD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}ia(t,E=>{E&&!o?f():E||(o==null||o.stop(),o=void 0)},{immediate:!0}),hg(()=>{o==null||o.stop()})}function ql(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S=>S,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:S=>S;const d=Xh("useProxiedModel"),s=qo(t[e]!==void 0?t[e]:o),n=UT(e),b=nr(n!==e?()=>{var S,w,y,m;return t[e],!!(((S=d.vnode.props)!=null&&S.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(m=d.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var S,w;return t[e],!!((S=d.vnode.props)!=null&&S.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});$1(()=>!b.value,()=>{ia(()=>t[e],S=>{s.value=S})});const i=nr({get(){const S=t[e];return f(b.value?S:s.value)},set(S){const w=E(S),y=sl(b.value?t[e]:s.value);y===w||f(y)===S||(s.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:s.value}),i}const X9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},_ge="$vuetify.",wge=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),w2e=(t,e,o)=>function(f){for(var E=arguments.length,d=new Array(E>1?E-1:0),s=1;snew Intl.NumberFormat([t.value,e.value],f).format(o)}function rae(t,e,o){const f=ql(t,e,t[e]??o.value);return f.value=t[e]??o.value,ia(o,E=>{t[e]==null&&(f.value=o.value)}),f}function S2e(t){return e=>{const o=rae(e,"locale",t.current),f=rae(e,"fallback",t.fallback),E=rae(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:E,t:w2e(o,f,E),n:O2e(o,f),provide:S2e({current:o,fallback:f,messages:E})}}}function G9e(t){const e=Gi((t==null?void 0:t.locale)??"en"),o=Gi((t==null?void 0:t.fallback)??"en"),f=qo({en:X9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:w2e(e,o,f),n:O2e(e,o),provide:S2e({current:e,fallback:o,messages:f})}}const uZ=Symbol.for("vuetify:locale");function K9e(t){return t.name!=null}function J9e(t){const e=t!=null&&t.adapter&&K9e(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:G9e(t),o=tRe(e,t);return{...e,...o}}function ry(){const t=Kl(uZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function eRe(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function tRe(t,e){const o=qo((e==null?void 0:e.rtl)??eRe()),f=nr(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:nr(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function n0(){const t=Kl(uZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const fZ=Symbol.for("vuetify:theme"),gd=gi({theme:String},"theme");function Oge(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function nRe(){var f,E;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oge();const e=Oge();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,s]of Object.entries(t.themes??{})){const n=s.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(E=e.themes)==null?void 0:E.light;o[d]=Jg(n,s)}return Jg(e,{...t,themes:o})}function rRe(t){const e=nRe(t),o=qo(e.defaultTheme),f=qo(e.themes),E=nr(()=>{const i={};for(const[S,w]of Object.entries(f.value)){const y=i[S]={...w,colors:{...w.colors}};if(e.variations)for(const m of e.variations.colors){const a=y.colors[m];if(a)for(const c of["lighten","darken"]){const h=c==="lighten"?D9e:B9e;for(const p of u4(e.variations[c],1))y.colors[`${m}-${c}-${p}`]=R9e(h(w_(a),p))}}for(const m of Object.keys(y.colors)){if(/^on-[a-z]/.test(m)||y.colors[`on-${m}`])continue;const a=`on-${m}`,c=w_(y.colors[m]);y.colors[a]=g2e(c)}}return i}),d=nr(()=>E.value[o.value]),s=nr(()=>{var m;const i=[];(m=d.value)!=null&&m.dark&&kT(i,":root",["color-scheme: dark"]),kT(i,":root",Sge(d.value));for(const[a,c]of Object.entries(E.value))kT(i,`.v-theme--${a}`,[`color-scheme: ${c.dark?"dark":"normal"}`,...Sge(c)]);const S=[],w=[],y=new Set(Object.values(E.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?kT(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(kT(S,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),kT(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),kT(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...S,...w),i.map((a,c)=>c===0?a:` ${a}`).join("")});function n(){return{style:[{children:s.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function u(i){if(e.isDisabled)return;const S=i._context.provides.usehead;if(S)if(S.push){const w=S.push(n);Hu&&ia(s,()=>{w.patch(n)})}else Hu?(S.addHeadObjs(nr(n)),Gp(()=>S.updateDOM())):S.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",e.cspNonce&&m.setAttribute("nonce",e.cspNonce),w=m,document.head.appendChild(w)}w&&(w.innerHTML=s.value)},w=Hu?document.getElementById("vuetify-theme-stylesheet"):null;Hu?ia(s,y,{immediate:!0}):y()}}const b=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:u,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:E,themeClasses:b,styles:s,global:{name:o,current:d}}}function th(t){Xh("provideTheme");const e=Kl(fZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=nr(()=>t.theme??e.name.value),f=nr(()=>e.themes.value[o.value]),E=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:E};return md(fZ,d),d}function kT(t,e,o){t.push(`${e} { +`,{label:"if",detail:"block",type:"keyword"}),Bh("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Bh("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Bh("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Bh("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],q7e=Xce(o2e,rq(H7e.concat(Z7e)));function Zme(t,e){let o=t.baseIndentFor(e),f=t.lineAt(t.pos,-1),E=f.from+f.text.length;return/^\s*($|#)/.test(f.text)&&t.node.too?null:o+t.unit}const Jie=O4.define({name:"python",parser:U7e.configure({props:[nC.add({Body:t=>{var e;return(e=Zme(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":gH({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":gH({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":gH({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let o=t.node,f=o.to;o=o.lastChild,!(!o||o.to!=f);)o.type.name=="Body"&&(e=o);if(e){let o=Zme(t,e);if(o!=null)return o}}return t.continue()}}),E4.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":$ce,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function qme(){return new YT(Jie,[Jie.data.of({autocomplete:Q7e}),Jie.data.of({autocomplete:q7e})])}const W7e="#e5c07b",Wme="#e06c75",Y7e="#56b6c2",X7e="#ffffff",yH="#abb2bf",Wse="#7d8799",G7e="#61afef",K7e="#98c379",Yme="#d19a66",J7e="#c678dd",e9e="#21252b",Xme="#2c313a",Gme="#282c34",eae="#353a42",t9e="#3E4451",Kme="#528bff",n9e=Xa.theme({"&":{color:yH,backgroundColor:Gme},".cm-content":{caretColor:Kme},".cm-cursor, .cm-dropCursor":{borderLeftColor:Kme},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t9e},".cm-panels":{backgroundColor:e9e,color:yH},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Gme,color:Wse,border:"none"},".cm-activeLineGutter":{backgroundColor:Xme},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:eae},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:eae,borderBottomColor:eae},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Xme,color:yH}}},{dark:!0}),r9e=mD.define([{tag:hr.keyword,color:J7e},{tag:[hr.name,hr.deleted,hr.character,hr.propertyName,hr.macroName],color:Wme},{tag:[hr.function(hr.variableName),hr.labelName],color:G7e},{tag:[hr.color,hr.constant(hr.name),hr.standard(hr.name)],color:Yme},{tag:[hr.definition(hr.name),hr.separator],color:yH},{tag:[hr.typeName,hr.className,hr.number,hr.changed,hr.annotation,hr.modifier,hr.self,hr.namespace],color:W7e},{tag:[hr.operator,hr.operatorKeyword,hr.url,hr.escape,hr.regexp,hr.link,hr.special(hr.string)],color:Y7e},{tag:[hr.meta,hr.comment],color:Wse},{tag:hr.strong,fontWeight:"bold"},{tag:hr.emphasis,fontStyle:"italic"},{tag:hr.strikethrough,textDecoration:"line-through"},{tag:hr.link,color:Wse,textDecoration:"underline"},{tag:hr.heading,fontWeight:"bold",color:Wme},{tag:[hr.atom,hr.bool,hr.special(hr.variableName)],color:Yme},{tag:[hr.processingInstruction,hr.string,hr.inserted],color:K7e},{tag:hr.invalid,color:X7e}]),pM=[n9e,Fbe(r9e)];function gi(t,e){return o=>Object.keys(t).reduce((f,E)=>{const s=typeof t[E]=="object"&&t[E]!=null&&!Array.isArray(t[E])?t[E]:{type:t[E]};return o&&E in o?f[E]={...s,default:o[E]}:f[E]=s,e&&!f[E].source&&(f[E].source=e),f},{})}const Js=gi({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),Hu=typeof window<"u",sue=Hu&&"IntersectionObserver"in window,o9e=Hu&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Jme(t,e,o){i9e(t,e),e.set(t,o)}function i9e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a9e(t,e,o){return t.set(i2e(t,e),o),o}function ST(t,e){return t.get(i2e(t,e))}function i2e(t,e,o){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function a2e(t,e,o){const f=e.length-1;if(f<0)return t===void 0?o:t;for(let E=0;ER4(t[f],e[f]))}function GT(t,e,o){return t==null||!e||typeof e!="string"?o:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),a2e(t,e.split("."),o))}function N1(t,e,o){if(e===!0)return t===void 0?o:t;if(e==null||typeof e=="boolean")return o;if(t!==Object(t)){if(typeof e!="function")return o;const E=e(t,o);return typeof E>"u"?o:E}if(typeof e=="string")return GT(t,e,o);if(Array.isArray(e))return a2e(t,e,o);if(typeof e!="function")return o;const f=e(t,o);return typeof f>"u"?o:f}function u4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(o,f)=>e+f)}function is(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Yse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function lue(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const ege=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Xse=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function tae(t,e){return e.every(o=>t.hasOwnProperty(o))}function cue(t,e){const o={},f=new Set(Object.keys(t));for(const E of e)f.has(E)&&(o[E]=t[E]);return o}function tge(t,e,o){const f=Object.create(null),E=Object.create(null);for(const d in t)e.some(s=>s instanceof RegExp?s.test(d):s===d)&&!(o!=null&&o.some(s=>s===d))?f[d]=t[d]:E[d]=t[d];return[f,E]}function R_(t,e){const o={...t};return e.forEach(f=>delete o[f]),o}function s9e(t,e){const o={};return e.forEach(f=>o[f]=t[f]),o}const s2e=/^on[^a-z]/,cq=t=>s2e.test(t),l9e=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],c9e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function u9e(t){return t.isComposing&&c9e.includes(t.key)}function bD(t){const[e,o]=tge(t,[s2e]),f=R_(e,l9e),[E,d]=tge(o,["class","style","id",/^data-/]);return Object.assign(E,e),Object.assign(d,f),[E,d]}function Pp(t){return t==null?[]:Array.isArray(t)?t:[t]}function f9e(t,e){let o=0;const f=function(){for(var E=arguments.length,d=new Array(E),s=0;st(...d),Va(e))};return f.clear=()=>{clearTimeout(o)},f.immediate=t,f}function ug(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(o,t))}function nge(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function rge(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function oge(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function d9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let f=0;for(;f1&&arguments[1]!==void 0?arguments[1]:1e3;if(t=e&&f0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const f={};for(const E in t)f[E]=t[E];for(const E in e){const d=t[E],s=e[E];if(Yse(d)&&Yse(s)){f[E]=Jg(d,s,o);continue}if(Array.isArray(d)&&Array.isArray(s)&&o){f[E]=o(d,s);continue}f[E]=s}return f}function l2e(t){return t.map(e=>e.type===Ea?l2e(e.children):e).flat()}function jT(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(jT.cache.has(t))return jT.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return jT.cache.set(t,e),e}jT.cache=new Map;function U8(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(o=>U8(t,o)).flat(1);if(e.suspense)return U8(t,e.ssContent);if(Array.isArray(e.children))return e.children.map(o=>U8(t,o)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return U8(t,e.component.subTree).flat(1)}return[]}var QQ=new WeakMap,M8=new WeakMap;class h9e{constructor(e){Jme(this,QQ,[]),Jme(this,M8,0),this.size=e}push(e){ST(QQ,this)[ST(M8,this)]=e,a9e(M8,this,(ST(M8,this)+1)%this.size)}values(){return ST(QQ,this).slice(ST(M8,this)).concat(ST(QQ,this).slice(0,ST(M8,this)))}}function uue(t){const e=Am({}),o=nr(t);return Gp(()=>{for(const f in o.value)e[f]=o.value[f]},{flush:"sync"}),CM(e)}function aZ(t,e){return t.includes(e)}function c2e(t){return t[2].toLowerCase()+t.slice(3)}const fg=()=>[Function,Array];function age(t,e){return e="on"+A_(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function fue(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:!0;const o=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(f=>`${f}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(o)]}function u2e(t,e,o){let f,E=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do E+=d,f=t[E];while((!f||f.offsetParent==null||!((o==null?void 0:o(f))??!0))&&E=0);return f}function sZ(t,e){var f,E,d,s;const o=QI(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((f=o[0])==null||f.focus());else if(e==="first")(E=o[0])==null||E.focus();else if(e==="last")(d=o.at(-1))==null||d.focus();else if(typeof e=="number")(s=o[e])==null||s.focus();else{const n=u2e(o,e);n?n.focus():sZ(t,e==="next"?"first":"last")}}function HQ(t){return t==null||typeof t=="string"&&t.trim()===""}function f2e(){}function mM(t,e){if(!(Hu&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function uq(t){return t.some(e=>iM(e)?e.type===Z0?!1:e.type!==Ea||uq(e.children):!0)?t:null}function p9e(t,e){if(!Hu||t===0)return e(),()=>{};const o=window.setTimeout(e,t);return()=>window.clearTimeout(o)}function sge(t,e){const o=Gi();return Gp(()=>{o.value=t()},{flush:"sync",...e}),TM(o)}function m9e(t,e){const o=t.clientX,f=t.clientY,E=e.getBoundingClientRect(),d=E.left,s=E.top,n=E.right,u=E.bottom;return o>=d&&o<=n&&f>=s&&f<=u}function Gse(){const t=Gi(),e=o=>{t.value=o};return Object.defineProperty(e,"value",{enumerable:!0,get:()=>t.value,set:o=>t.value=o}),Object.defineProperty(e,"el",{enumerable:!0,get:()=>lue(t.value)}),e}const d2e=["top","bottom"],g9e=["start","end","left","right"];function Kse(t,e){let[o,f]=t.split(" ");return f||(f=aZ(d2e,o)?"start":aZ(g9e,o)?"top":"center"),{side:Jse(o,e),align:Jse(f,e)}}function Jse(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function nae(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function rae(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function lge(t){return{side:t.align,align:t.side}}function cge(t){return aZ(d2e,t.side)?"y":"x"}class QT{constructor(e){let{x:o,y:f,width:E,height:d}=e;this.x=o,this.y=f,this.width=E,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function uge(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function h2e(t){return Array.isArray(t)?new QT({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function due(t){const e=t.getBoundingClientRect(),o=getComputedStyle(t),f=o.transform;if(f){let E,d,s,n,u;if(f.startsWith("matrix3d("))E=f.slice(9,-1).split(/, /),d=+E[0],s=+E[5],n=+E[12],u=+E[13];else if(f.startsWith("matrix("))E=f.slice(7,-1).split(/, /),d=+E[0],s=+E[3],n=+E[4],u=+E[5];else return new QT(e);const b=o.transformOrigin,i=e.x-n-(1-d)*parseFloat(b),S=e.y-u-(1-s)*parseFloat(b.slice(b.indexOf(" ")+1)),w=d?e.width/d:t.offsetWidth+1,y=s?e.height/s:t.offsetHeight+1;return new QT({x:i,y:S,width:w,height:y})}else return new QT(e)}function j8(t,e,o){if(typeof t.animate>"u")return{finished:Promise.resolve()};let f;try{f=t.animate(e,o)}catch{return{finished:Promise.resolve()}}return typeof f.finished>"u"&&(f.finished=new Promise(E=>{f.onfinish=()=>{E(f)}})),f}const bH=new WeakMap;function v9e(t,e){Object.keys(e).forEach(o=>{if(cq(o)){const f=c2e(o),E=bH.get(t);if(e[o]==null)E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))});else if(!E||![...E].some(d=>d[0]===f&&d[1]===e[o])){t.addEventListener(f,e[o]);const d=E||new Set;d.add([f,e[o]]),bH.has(t)||bH.set(t,d)}}else e[o]==null?t.removeAttribute(o):t.setAttribute(o,e[o])})}function y9e(t,e){Object.keys(e).forEach(o=>{if(cq(o)){const f=c2e(o),E=bH.get(t);E==null||E.forEach(d=>{const[s,n]=d;s===f&&(t.removeEventListener(f,n),E.delete(d))})}else t.removeAttribute(o)})}const E8=2.4,fge=.2126729,dge=.7151522,hge=.072175,b9e=.55,x9e=.58,_9e=.57,w9e=.62,ZQ=.03,pge=1.45,O9e=5e-4,S9e=1.25,k9e=1.25,mge=.078,gge=12.82051282051282,qQ=.06,vge=.001;function yge(t,e){const o=(t.r/255)**E8,f=(t.g/255)**E8,E=(t.b/255)**E8,d=(e.r/255)**E8,s=(e.g/255)**E8,n=(e.b/255)**E8;let u=o*fge+f*dge+E*hge,b=d*fge+s*dge+n*hge;if(u<=ZQ&&(u+=(ZQ-u)**pge),b<=ZQ&&(b+=(ZQ-b)**pge),Math.abs(b-u)u){const S=(b**b9e-u**x9e)*S9e;i=S-vge?0:S>-mge?S-S*gge*qQ:S+qQ}return i*100}function T9e(t,e){e=Array.isArray(e)?e.slice(0,-1).map(o=>`'${o}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const lZ=.20689655172413793,C9e=t=>t>lZ**3?Math.cbrt(t):t/(3*lZ**2)+4/29,A9e=t=>t>lZ?t**3:3*lZ**2*(t-4/29);function p2e(t){const e=C9e,o=e(t[1]);return[116*o-16,500*(e(t[0]/.95047)-o),200*(o-e(t[2]/1.08883))]}function m2e(t){const e=A9e,o=(t[0]+16)/116;return[e(o+t[1]/500)*.95047,e(o),e(o-t[2]/200)*1.08883]}const M9e=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],E9e=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,P9e=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],R9e=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function g2e(t){const e=Array(3),o=E9e,f=M9e;for(let E=0;E<3;++E)e[E]=Math.round(ug(o(f[E][0]*t[0]+f[E][1]*t[1]+f[E][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function hue(t){let{r:e,g:o,b:f}=t;const E=[0,0,0],d=R9e,s=P9e;e=d(e/255),o=d(o/255),f=d(f/255);for(let n=0;n<3;++n)E[n]=s[n][0]*e+s[n][1]*o+s[n][2]*f;return E}function ele(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function L9e(t){return ele(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const bge=/^(?(?:rgb|hsl)a?)\((?.+)\)/,I9e={rgb:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),rgba:(t,e,o,f)=>({r:t,g:e,b:o,a:f}),hsl:(t,e,o,f)=>xge({h:t,s:e,l:o,a:f}),hsla:(t,e,o,f)=>xge({h:t,s:e,l:o,a:f}),hsv:(t,e,o,f)=>HI({h:t,s:e,v:o,a:f}),hsva:(t,e,o,f)=>HI({h:t,s:e,v:o,a:f})};function w_(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&bge.test(t)){const{groups:e}=t.match(bge),{fn:o,values:f}=e,E=f.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(d)/100:parseFloat(d));return I9e[o](...E)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length),B9e(e)}else if(typeof t=="object"){if(tae(t,["r","g","b"]))return t;if(tae(t,["h","s","l"]))return HI(v2e(t));if(tae(t,["h","s","v"]))return HI(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function HI(t){const{h:e,s:o,v:f,a:E}=t,d=n=>{const u=(n+e/60)%6;return f-f*o*Math.max(Math.min(u,4-u,1),0)},s=[d(5),d(3),d(1)].map(n=>Math.round(n*255));return{r:s[0],g:s[1],b:s[2],a:E}}function xge(t){return HI(v2e(t))}function v2e(t){const{h:e,s:o,l:f,a:E}=t,d=f+o*Math.min(f,1-f),s=d===0?0:2-2*f/d;return{h:e,s,v:d,a:E}}function WQ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function D9e(t){let{r:e,g:o,b:f,a:E}=t;return`#${[WQ(e),WQ(o),WQ(f),E!==void 0?WQ(Math.round(E*255)):""].join("")}`}function B9e(t){t=z9e(t);let[e,o,f,E]=d9e(t,2).map(d=>parseInt(d,16));return E=E===void 0?E:E/255,{r:e,g:o,b:f,a:E}}function z9e(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=rge(rge(t,6),8,"F")),t}function N9e(t,e){const o=p2e(hue(t));return o[0]=o[0]+e*10,g2e(m2e(o))}function F9e(t,e){const o=p2e(hue(t));return o[0]=o[0]-e*10,g2e(m2e(o))}function $9e(t){const e=w_(t);return hue(e)[1]}function y2e(t){const e=Math.abs(yge(w_(0),w_(t)));return Math.abs(yge(w_(16777215),w_(t)))>Math.min(e,50)?"#fff":"#000"}function Xh(t,e){const o=dce();if(!o)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return o}function L_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Xh(t).type;return jT((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let b2e=0,xH=new WeakMap;function j1(){const t=Xh("getUid");if(xH.has(t))return xH.get(t);{const e=b2e++;return xH.set(t,e),e}}j1.reset=()=>{b2e=0,xH=new WeakMap};function V9e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xh("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const gM=Symbol.for("vuetify:defaults");function U9e(t){return qo(t)}function pue(){const t=Kl(gM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ab(t,e){const o=pue(),f=qo(t),E=nr(()=>{if(Va(e==null?void 0:e.disabled))return o.value;const s=Va(e==null?void 0:e.scoped),n=Va(e==null?void 0:e.reset),u=Va(e==null?void 0:e.root);if(f.value==null&&!(s||n||u))return o.value;let b=Jg(f.value,{prev:o.value});if(s)return b;if(n||u){const i=Number(n||1/0);for(let S=0;S<=i&&!(!b||!("prev"in b));S++)b=b.prev;return b&&typeof u=="string"&&u in b&&(b=Jg(Jg(b,{prev:b}),b[u])),b}return b.prev?Jg(b.prev,b):b});return md(gM,E),E}function j9e(t,e){var o,f;return typeof((o=t.props)==null?void 0:o[e])<"u"||typeof((f=t.props)==null?void 0:f[jT(e)])<"u"}function Q9e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pue();const f=Xh("useDefaults");if(e=e??f.type.name??f.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const E=nr(()=>{var u;return(u=o.value)==null?void 0:u[t._as??e]}),d=new Proxy(t,{get(u,b){var S,w,y,m,a,c,h;const i=Reflect.get(u,b);return b==="class"||b==="style"?[(S=E.value)==null?void 0:S[b],i].filter(p=>p!=null):typeof b=="string"&&!j9e(f.vnode,b)?((w=E.value)==null?void 0:w[b])!==void 0?(y=E.value)==null?void 0:y[b]:((a=(m=o.value)==null?void 0:m.global)==null?void 0:a[b])!==void 0?(h=(c=o.value)==null?void 0:c.global)==null?void 0:h[b]:i:i}}),s=Gi();Gp(()=>{if(E.value){const u=Object.entries(E.value).filter(b=>{let[i]=b;return i.startsWith(i[0].toUpperCase())});s.value=u.length?Object.fromEntries(u):void 0}else s.value=void 0});function n(){const u=V9e(gM,f);md(gM,nr(()=>s.value?Jg((u==null?void 0:u.value)??{},s.value):u==null?void 0:u.value))}return{props:d,provideSubDefaults:n}}function PM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=gi(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(f){return cue(f,e)},t.props._as=String,t.setup=function(f,E){const d=pue();if(!d.value)return t._setup(f,E);const{props:s,provideSubDefaults:n}=Q9e(f,f._as??t.name,d),u=t._setup(s,E);return n(),u}}return t}function Oa(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?PM:em)(e)}function H9e(t,e){return e.props=t,e}function fq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",o=arguments.length>2?arguments[2]:void 0;return Oa()({name:o??A_(ib(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...Js()},setup(f,E){let{slots:d}=E;return()=>{var s;return U1(f.tag,{class:[t,f.class],style:f.style},(s=d.default)==null?void 0:s.call(d))}}})}function x2e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const cZ="cubic-bezier(0.4, 0, 0.2, 1)",Z9e="cubic-bezier(0.0, 0, 0.2, 1)",q9e="cubic-bezier(0.4, 0, 1, 1)";function _ge(t,e,o){return Object.keys(t).filter(f=>cq(f)&&f.endsWith(e)).reduce((f,E)=>(f[E.slice(0,-e.length)]=d=>t[E](d,o(d)),f),{})}function _2e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?W9e(t):mue(t))return t;t=t.parentElement}return document.scrollingElement}function uZ(t,e){const o=[];if(e&&t&&!e.contains(t))return o;for(;t&&(mue(t)&&o.push(t),t!==e);)t=t.parentElement;return o}function mue(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function W9e(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function Y9e(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Ga(t){const e=Xh("useRender");e.render=t}function T4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const o=Gse(),f=qo();if(Hu){const E=new ResizeObserver(d=>{t==null||t(d,E),d.length&&(e==="content"?f.value=d[0].contentRect:f.value=d[0].target.getBoundingClientRect())});Em(()=>{E.disconnect()}),ia(()=>o.el,(d,s)=>{s&&(E.unobserve(s),f.value=void 0),d&&E.observe(d)},{flush:"post"})}return{resizeRef:o,contentRect:TM(f)}}const ZI=Symbol.for("vuetify:layout"),w2e=Symbol.for("vuetify:layout-item"),wge=1e3,X9e=gi({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),gue=gi({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function O2e(){const t=Kl(ZI);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{layoutIsReady:Vc(),getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function vue(t){const e=Kl(ZI);if(!e)throw new Error("[Vuetify] Could not find injected layout");const o=t.id??`layout-item-${j1()}`,f=Xh("useLayoutItem");md(w2e,{id:o});const E=Gi(!1);nce(()=>E.value=!0),tce(()=>E.value=!1);const d=Vc(),{layoutItemStyles:s,layoutItemScrimStyles:n}=e.register(f,{...t,active:nr(()=>E.value?!1:t.active.value),id:o});return Em(()=>e.unregister(o)),{layoutItemStyles:s,layoutRect:e.layoutRect,layoutItemScrimStyles:n,layoutIsReady:d}}const G9e=(t,e,o,f)=>{let E={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...E}}];for(const s of t){const n=e.get(s),u=o.get(s),b=f.get(s);if(!n||!u||!b)continue;const i={...E,[n.value]:parseInt(E[n.value],10)+(b.value?parseInt(u.value,10):0)};d.push({id:s,layer:i}),E=i}return d};function K9e(t){const e=Kl(ZI,null),o=nr(()=>e?e.rootZIndex.value-100:wge),f=qo([]),E=Am(new Map),d=Am(new Map),s=Am(new Map),n=Am(new Map),u=Am(new Map),{resizeRef:b,contentRect:i}=T4(),S=sge(()=>{const O=[...new Set([...s.values()].map(x=>x.value))].sort((x,R)=>x-R),C=[];for(const x of O){const R=f.value.filter(M=>{var T;return((T=s.get(M))==null?void 0:T.value)===x});C.push(...R)}return G9e(C,E,d,n)}),w=nr(()=>!Array.from(u.values()).some(O=>O.value)),y=nr(()=>S.value[S.value.length-1].layer),m=nr(()=>({"--v-layout-left":is(y.value.left),"--v-layout-right":is(y.value.right),"--v-layout-top":is(y.value.top),"--v-layout-bottom":is(y.value.bottom),...w.value?void 0:{transition:"none"}})),a=sge(()=>S.value.slice(1).map((O,C)=>{let{id:x}=O;const{layer:R}=S.value[C],M=d.get(x),T=E.get(x);return{id:x,...R,size:Number(M.value),position:T.value}})),c=O=>a.value.find(C=>C.id===O),h=Xh("createLayout"),p=Vc();md(ZI,{register:(O,C)=>{let{id:x,order:R,position:M,layoutSize:T,elementSize:P,active:A,disableTransitions:L,absolute:D}=C;s.set(x,R),E.set(x,M),d.set(x,T),n.set(x,A),L&&u.set(x,L);const I=U8(w2e,h==null?void 0:h.vnode).indexOf(O);I>-1?f.value.splice(I,0,x):f.value.push(x);const z=nr(()=>a.value.findIndex(U=>U.id===x)),$=nr(()=>o.value+S.value.length*2-z.value*2),Q=nr(()=>{const U=M.value==="left"||M.value==="right",X=M.value==="right",te=M.value==="bottom",Z=P.value??T.value,K=Z===0?"%":"px",re={[M.value]:0,zIndex:$.value,transform:`translate${U?"X":"Y"}(${(A.value?0:-(Z===0?100:Z))*(X||te?-1:1)}${K})`,position:D.value||o.value!==wge?"absolute":"fixed",...w.value?void 0:{transition:"none"}};if(z.value<0)throw new Error(`Layout item "${x}" is missing`);const q=a.value[z.value];if(!q)throw new Error(`[Vuetify] Could not find layout item "${x}"`);return{...re,height:U?`calc(100% - ${q.top}px - ${q.bottom}px)`:P.value?`${P.value}px`:void 0,left:X?void 0:`${q.left}px`,right:X?`${q.right}px`:void 0,top:M.value!=="bottom"?`${q.top}px`:void 0,bottom:M.value!=="top"?`${q.bottom}px`:void 0,width:U?P.value?`${P.value}px`:void 0:`calc(100% - ${q.left}px - ${q.right}px)`}}),j=nr(()=>({zIndex:$.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:j,zIndex:$}},unregister:O=>{s.delete(O),E.delete(O),d.delete(O),n.delete(O),u.delete(O),f.value=f.value.filter(C=>C!==O)},mainRect:y,mainStyles:m,getLayoutItem:c,items:a,layoutRect:i,rootZIndex:o,layoutIsReady:p});const v=nr(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),_=nr(()=>({zIndex:e?o.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:v,layoutStyles:_,getLayoutItem:c,items:a,layoutRect:i,layoutIsReady:p,layoutRef:b}}function $1(t,e){let o;function f(){o=iD(),o.run(()=>e.length?e(()=>{o==null||o.stop(),f()}):e())}ia(t,E=>{E&&!o?f():E||(o==null||o.stop(),o=void 0)},{immediate:!0}),hg(()=>{o==null||o.stop()})}function ql(t,e,o){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S=>S,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:S=>S;const d=Xh("useProxiedModel"),s=qo(t[e]!==void 0?t[e]:o),n=jT(e),b=nr(n!==e?()=>{var S,w,y,m;return t[e],!!(((S=d.vnode.props)!=null&&S.hasOwnProperty(e)||(w=d.vnode.props)!=null&&w.hasOwnProperty(n))&&((y=d.vnode.props)!=null&&y.hasOwnProperty(`onUpdate:${e}`)||(m=d.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${n}`)))}:()=>{var S,w;return t[e],!!((S=d.vnode.props)!=null&&S.hasOwnProperty(e)&&((w=d.vnode.props)!=null&&w.hasOwnProperty(`onUpdate:${e}`)))});$1(()=>!b.value,()=>{ia(()=>t[e],S=>{s.value=S})});const i=nr({get(){const S=t[e];return f(b.value?S:s.value)},set(S){const w=E(S),y=sl(b.value?t[e]:s.value);y===w||f(y)===S||(s.value=w,d==null||d.emit(`update:${e}`,w))}});return Object.defineProperty(i,"externalValue",{get:()=>b.value?t[e]:s.value}),i}const J9e={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Oge="$vuetify.",Sge=(t,e)=>t.replace(/\{(\d+)\}/g,(o,f)=>String(e[+f])),S2e=(t,e,o)=>function(f){for(var E=arguments.length,d=new Array(E>1?E-1:0),s=1;snew Intl.NumberFormat([t.value,e.value],f).format(o)}function oae(t,e,o){const f=ql(t,e,t[e]??o.value);return f.value=t[e]??o.value,ia(o,E=>{t[e]==null&&(f.value=o.value)}),f}function T2e(t){return e=>{const o=oae(e,"locale",t.current),f=oae(e,"fallback",t.fallback),E=oae(e,"messages",t.messages);return{name:"vuetify",current:o,fallback:f,messages:E,t:S2e(o,f,E),n:k2e(o,f),provide:T2e({current:o,fallback:f,messages:E})}}}function eRe(t){const e=Gi((t==null?void 0:t.locale)??"en"),o=Gi((t==null?void 0:t.fallback)??"en"),f=qo({en:J9e,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:o,messages:f,t:S2e(e,o,f),n:k2e(e,o),provide:T2e({current:e,fallback:o,messages:f})}}const fZ=Symbol.for("vuetify:locale");function tRe(t){return t.name!=null}function nRe(t){const e=t!=null&&t.adapter&&tRe(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:eRe(t),o=oRe(e,t);return{...e,...o}}function oy(){const t=Kl(fZ);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function rRe(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function oRe(t,e){const o=qo((e==null?void 0:e.rtl)??rRe()),f=nr(()=>o.value[t.current.value]??!1);return{isRtl:f,rtl:o,rtlClasses:nr(()=>`v-locale--is-${f.value?"rtl":"ltr"}`)}}function n0(){const t=Kl(fZ);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const dZ=Symbol.for("vuetify:theme"),gd=gi({theme:String},"theme");function kge(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function iRe(){var f,E;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kge();const e=kge();if(!t)return{...e,isDisabled:!0};const o={};for(const[d,s]of Object.entries(t.themes??{})){const n=s.dark||d==="dark"?(f=e.themes)==null?void 0:f.dark:(E=e.themes)==null?void 0:E.light;o[d]=Jg(n,s)}return Jg(e,{...t,themes:o})}function aRe(t){const e=iRe(t),o=qo(e.defaultTheme),f=qo(e.themes),E=nr(()=>{const i={};for(const[S,w]of Object.entries(f.value)){const y=i[S]={...w,colors:{...w.colors}};if(e.variations)for(const m of e.variations.colors){const a=y.colors[m];if(a)for(const c of["lighten","darken"]){const h=c==="lighten"?N9e:F9e;for(const p of u4(e.variations[c],1))y.colors[`${m}-${c}-${p}`]=D9e(h(w_(a),p))}}for(const m of Object.keys(y.colors)){if(/^on-[a-z]/.test(m)||y.colors[`on-${m}`])continue;const a=`on-${m}`,c=w_(y.colors[m]);y.colors[a]=y2e(c)}}return i}),d=nr(()=>E.value[o.value]),s=nr(()=>{var m;const i=[];(m=d.value)!=null&&m.dark&&kT(i,":root",["color-scheme: dark"]),kT(i,":root",Tge(d.value));for(const[a,c]of Object.entries(E.value))kT(i,`.v-theme--${a}`,[`color-scheme: ${c.dark?"dark":"normal"}`,...Tge(c)]);const S=[],w=[],y=new Set(Object.values(E.value).flatMap(a=>Object.keys(a.colors)));for(const a of y)/^on-[a-z]/.test(a)?kT(w,`.${a}`,[`color: rgb(var(--v-theme-${a})) !important`]):(kT(S,`.bg-${a}`,[`--v-theme-overlay-multiplier: var(--v-theme-${a}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${a})) !important`,`color: rgb(var(--v-theme-on-${a})) !important`]),kT(w,`.text-${a}`,[`color: rgb(var(--v-theme-${a})) !important`]),kT(w,`.border-${a}`,[`--v-border-color: var(--v-theme-${a})`]));return i.push(...S,...w),i.map((a,c)=>c===0?a:` ${a}`).join("")});function n(){return{style:[{children:s.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function u(i){if(e.isDisabled)return;const S=i._context.provides.usehead;if(S)if(S.push){const w=S.push(n);Hu&&ia(s,()=>{w.patch(n)})}else Hu?(S.addHeadObjs(nr(n)),Gp(()=>S.updateDOM())):S.addHeadObjs(n());else{let y=function(){if(typeof document<"u"&&!w){const m=document.createElement("style");m.type="text/css",m.id="vuetify-theme-stylesheet",e.cspNonce&&m.setAttribute("nonce",e.cspNonce),w=m,document.head.appendChild(w)}w&&(w.innerHTML=s.value)},w=Hu?document.getElementById("vuetify-theme-stylesheet"):null;Hu?ia(s,y,{immediate:!0}):y()}}const b=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`);return{install:u,isDisabled:e.isDisabled,name:o,themes:f,current:d,computedThemes:E,themeClasses:b,styles:s,global:{name:o,current:d}}}function th(t){Xh("provideTheme");const e=Kl(dZ,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=nr(()=>t.theme??e.name.value),f=nr(()=>e.themes.value[o.value]),E=nr(()=>e.isDisabled?void 0:`v-theme--${o.value}`),d={...e,name:o,current:f,themeClasses:E};return md(dZ,d),d}function kT(t,e,o){t.push(`${e} { `,...o.map(f=>` ${f}; `),`} -`)}function Sge(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[E,d]of Object.entries(t.colors)){const s=w_(d);f.push(`--v-theme-${E}: ${s.r},${s.g},${s.b}`),E.startsWith("on-")||f.push(`--v-theme-${E}-overlay-multiplier: ${z9e(d)>.18?e:o}`)}for(const[E,d]of Object.entries(t.variables)){const s=typeof d=="string"&&d.startsWith("#")?w_(d):void 0,n=s?`${s.r}, ${s.g}, ${s.b}`:void 0;f.push(`--v-${E}: ${n??d}`)}return f}const oRe=gi({...Js(),...q9e({fullHeight:!0}),...gd()},"VApp"),iRe=Oa()({name:"VApp",props:oRe(),setup(t,e){let{slots:o}=e;const f=th(t),{layoutClasses:E,getLayoutItem:d,items:s,layoutRef:n}=Y9e(t),{rtlClasses:u}=n0();return Ga(()=>$t("div",{ref:n,class:["v-application",f.themeClasses.value,E.value,u.value,t.class],style:[t.style]},[$t("div",{class:"v-application__wrap"},[$t(Y4e,null,{default:()=>{var b;return[$t(Ea,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:s,theme:f}}});const tf=gi({tag:{type:String,default:"div"}},"tag"),aRe=gi({text:String,...Js(),...tf()},"VToolbarTitle"),sRe=Oa()({name:"VToolbarTitle",props:aRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{const f=!!(o.default||o.text||t.text);return $t(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var E;return[f&&$t("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(E=o.default)==null?void 0:E.call(o)])]}})}),{}}}),lRe=gi({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function oy(t,e,o){return Oa()({name:t,props:lRe({mode:o,origin:e}),setup(f,E){let{slots:d}=E;const s={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:u,offsetLeft:b,offsetWidth:i,offsetHeight:S}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${u}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${S}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:u,top:b,left:i,width:S,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=u||"",n.style.top=b||"",n.style.left=i||"",n.style.width=S||"",n.style.height=w||""}}};return()=>{const n=f.group?hce:C_;return U1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:s},d.default)}}})}function k2e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Oa()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,E){let{slots:d}=E;const s=f.group?hce:C_;return()=>U1(s,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function T2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=ib(`offset-${o}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[o]:s.style[o]}},onEnter(s){const n=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const u=`${s[f]}px`;s.style[o]="0",s.offsetHeight,s.style.transition=n.transition,t&&s._parent&&s._parent.classList.add(t),requestAnimationFrame(()=>{s.style[o]=u})},onAfterEnter:d,onEnterCancelled:d,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[o]:s.style[o]},s.style.overflow="hidden",s.style[o]=`${s[f]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[o]="0")},onAfterLeave:E,onLeaveCancelled:E};function E(s){t&&s._parent&&s._parent.classList.remove(t),d(s)}function d(s){const n=s._initialStyle[o];s.style.overflow=s._initialStyle.overflow,n!=null&&(s.style[o]=n),delete s._initialStyle}}const cRe=gi({target:[Object,Array]},"v-dialog-transition"),gue=Oa()({name:"VDialogTransition",props:cRe(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(E){E.style.pointerEvents="none",E.style.visibility="hidden"},async onEnter(E,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),E.style.visibility="";const{x:s,y:n,sx:u,sy:b,speed:i}=Tge(t.target,E),S=U8(E,[{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0},{}],{duration:225*i,easing:j9e});(w=kge(E))==null||w.forEach(y=>{U8(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:lZ})}),S.finished.then(()=>d())},onAfterEnter(E){E.style.removeProperty("pointer-events")},onBeforeLeave(E){E.style.pointerEvents="none"},async onLeave(E,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:s,y:n,sx:u,sy:b,speed:i}=Tge(t.target,E);U8(E,[{},{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0}],{duration:125*i,easing:Q9e}).finished.then(()=>d()),(w=kge(E))==null||w.forEach(y=>{U8(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:lZ})})},onAfterLeave(E){E.style.removeProperty("pointer-events")}};return()=>t.target?$t(C_,qi({name:"dialog-transition"},f,{css:!1}),o):$t(C_,{name:"dialog-transition"},o)}});function kge(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Tge(t,e){const o=f2e(t),f=uue(e),[E,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[s,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=o.left+o.width/2;s==="left"||n==="left"?u-=o.width/2:(s==="right"||n==="right")&&(u+=o.width/2);let b=o.top+o.height/2;s==="top"||n==="top"?b-=o.height/2:(s==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,S=o.height/f.height,w=Math.max(1,i,S),y=i/w||0,m=S/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),c=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:u-(E+f.left),y:b-(d+f.top),sx:y,sy:m,speed:c}}oy("fab-transition","center center","out-in");oy("dialog-bottom-transition");oy("dialog-top-transition");const Cge=oy("fade-transition"),C2e=oy("scale-transition");oy("scroll-x-transition");oy("scroll-x-reverse-transition");oy("scroll-y-transition");oy("scroll-y-reverse-transition");oy("slide-x-transition");oy("slide-x-reverse-transition");const A2e=oy("slide-y-transition");oy("slide-y-reverse-transition");const vue=k2e("expand-transition",T2e()),M2e=k2e("expand-x-transition",T2e("",!0)),uRe=gi({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ef=Oa(!1)({name:"VDefaultsProvider",props:uRe(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:E,reset:d,root:s,scoped:n}=CM(t);return ab(f,{reset:d,root:s,scoped:n,disabled:E}),()=>{var u;return(u=o.default)==null?void 0:u.call(o)}}});const I_=gi({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function D_(t){return{dimensionStyles:nr(()=>{const o={},f=is(t.height),E=is(t.maxHeight),d=is(t.maxWidth),s=is(t.minHeight),n=is(t.minWidth),u=is(t.width);return f!=null&&(o.height=f),E!=null&&(o.maxHeight=E),d!=null&&(o.maxWidth=d),s!=null&&(o.minHeight=s),n!=null&&(o.minWidth=n),u!=null&&(o.width=u),o})}}function fRe(t){return{aspectStyles:nr(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const E2e=gi({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Js(),...I_()},"VResponsive"),Age=Oa()({name:"VResponsive",props:E2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=fRe(t),{dimensionStyles:E}=D_(t);return Ga(()=>{var d;return $t("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[E.value,t.style]},[$t("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&$t("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function yue(t){return lue(()=>{const e=[],o={};if(t.value.background)if(Jse(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&E9e(t.value.background)){const f=w_(t.value.background);if(f.a==null||f.a===1){const E=g2e(f);o.color=E,o.caretColor=E}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(Jse(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function ny(t,e){const o=nr(()=>({text:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=yue(o);return{textColorClasses:f,textColorStyles:E}}function dg(t,e){const o=nr(()=>({background:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=yue(o);return{backgroundColorClasses:f,backgroundColorStyles:E}}const Pm=gi({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function mg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{roundedClasses:nr(()=>{const f=ku(t)?t.value:t.rounded,E=ku(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const s of String(f).split(" "))d.push(`rounded-${s}`);else(E||f===!1)&&d.push("rounded-0");return d})}}const nC=gi({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),f4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:E,group:d,...s}=t,{component:n=d?hce:C_,...u}=typeof f=="object"?f:{};return U1(n,qi(typeof f=="string"?{name:E?"":f}:u,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:E,group:d}).filter(b=>{let[i,S]=b;return S!==void 0})),s),o)};function dRe(t,e){if(!iue)return;const o=e.modifiers||{},f=e.value,{handler:E,options:d}=typeof f=="object"?f:{handler:f,options:{}},s=new IntersectionObserver(function(){var S;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;const b=(S=t._observe)==null?void 0:S[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);E&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&E(i,n,u),i&&o.once?P2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:s},s.observe(t)}function P2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const hRe={mounted:dRe,unmounted:P2e},bue=hRe,pRe=gi({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...E2e(),...Js(),...Pm(),...nC()},"VImg"),rC=Oa()({name:"VImg",directives:{intersect:bue},props:pRe(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(ji(t,"color")),{roundedClasses:s}=mg(t),n=Xh("VImg"),u=Gi(""),b=qo(),i=Gi(t.eager?"loading":"idle"),S=Gi(),w=Gi(),y=nr(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),m=nr(()=>y.value.aspect||S.value/w.value||0);ia(()=>t.src,()=>{a(i.value!=="idle")}),ia(m,(A,L)=>{!A&&L&&b.value&&_(b.value)}),nce(()=>a());function a(A){if(!(t.eager&&A)&&!(iue&&!A&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&Vc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;m.value||_(b.value,null),i.value==="loading"&&c()}else m.value||_(b.value),p()})})}}function c(){var A;n.isUnmounted||(p(),_(b.value),i.value="loaded",o("load",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function h(){var A;n.isUnmounted||(i.value="error",o("error",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function p(){const A=b.value;A&&(u.value=A.currentSrc||A.src)}let v=-1;Em(()=>{clearTimeout(v)});function _(A){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=A;k||I?(S.value=I,w.value=k):!A.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(S.value=1,w.value=1)};D()}const O=nr(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),C=()=>{var D;if(!y.value.src||i.value==="idle")return null;const A=$t("img",{class:["v-img__img",O.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:c,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return $t(f4,{transition:t.transition,appear:!0},{default:()=>[Kp(L?$t("picture",{class:"v-img__picture"},[L,A]):A,[[A4,i.value==="loaded"]])]})},x=()=>$t(f4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&$t("img",{class:["v-img__img","v-img__img--preload",O.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?$t(f4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&$t("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?$t(f4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&$t("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?$t("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,P=Gi(!1);{const A=ia(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.value=!0})}),A())})}return Ga(()=>{const A=Age.filterProps(t);return Kp($t(Age,qi({class:["v-img",{"v-img--booting":!P.value},E.value,s.value,t.class],style:[{width:is(t.width==="auto"?S.value:t.width)},d.value,t.style]},A,{aspectRatio:m.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>$t(Ea,null,[$t(C,null,null),$t(x,null,null),$t(T,null,null),$t(R,null,null),$t(M,null,null)]),default:f.default}),[[M_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:u,image:b,state:i,naturalWidth:S,naturalHeight:w}}}),B_=gi({border:[Boolean,Number,String]},"border");function $O(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{borderClasses:nr(()=>{const f=ku(t)?t.value:t.border,E=[];if(f===!0||f==="")E.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))E.push(`border-${d}`);return E})}}const iy=gi({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function cb(t){return{elevationClasses:nr(()=>{const o=ku(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const mRe=[null,"prominent","default","comfortable","compact"],R2e=gi({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>mRe.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...B_(),...Js(),...iy(),...Pm(),...tf({tag:"header"}),...gd()},"VToolbar"),Mge=Oa()({name:"VToolbar",props:R2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:E}=dg(ji(t,"color")),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),{themeClasses:u}=th(t),{rtlClasses:b}=n0(),i=Gi(!!(t.extended||(y=o.extension)!=null&&y.call(o))),S=nr(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=nr(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ab({VBtn:{variant:"text"}}),Ga(()=>{var h;const m=!!(t.title||o.title),a=!!(o.image||t.image),c=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||c),$t(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,s.value,n.value,u.value,b.value,t.class],style:[E.value,t.style]},{default:()=>[a&&$t("div",{key:"image",class:"v-toolbar__image"},[o.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):$t(rC,{key:"image-img",cover:!0,src:t.image},null)]),$t(ef,{defaults:{VTabs:{height:is(S.value)}}},{default:()=>{var p,v,_;return[$t("div",{class:"v-toolbar__content",style:{height:is(S.value)}},[o.prepend&&$t("div",{class:"v-toolbar__prepend"},[(p=o.prepend)==null?void 0:p.call(o)]),m&&$t(sRe,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&$t("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),$t(ef,{defaults:{VTabs:{height:is(w.value)}}},{default:()=>[$t(vue,null,{default:()=>[i.value&&$t("div",{class:"v-toolbar__extension",style:{height:is(w.value)}},[c])]})]})]})}),{contentHeight:S,extensionHeight:w}}}),gRe=gi({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function vRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,E=0;const d=qo(null),s=Gi(0),n=Gi(0),u=Gi(0),b=Gi(!1),i=Gi(!1),S=nr(()=>Number(t.scrollThreshold)),w=nr(()=>ug((S.value-s.value)/S.value||0)),y=()=>{const m=d.value;if(!m||o&&!o.value)return;f=s.value,s.value="window"in m?m.pageYOffset:m.scrollTop;const a=m instanceof Window?document.documentElement.scrollHeight:m.scrollHeight;if(E!==a){E=a;return}i.value=s.value{n.value=n.value||s.value}),ia(b,()=>{n.value=0}),pg(()=>{ia(()=>t.scrollTarget,m=>{var c;const a=m?document.querySelector(m):window;a&&a!==d.value&&((c=d.value)==null||c.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),Em(()=>{var m;(m=d.value)==null||m.removeEventListener("scroll",y)}),o&&ia(o,y,{immediate:!0}),{scrollThreshold:S,currentScroll:s,currentThreshold:u,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function fq(){const t=Gi(!1);return pg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:nr(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const yRe=gi({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...R2e(),...pue(),...gRe(),height:{type:[Number,String],default:64}},"VAppBar"),bRe=Oa()({name:"VAppBar",props:yRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=qo(),E=ql(t,"modelValue"),d=nr(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),s=nr(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!E.value}),{currentScroll:n,scrollThreshold:u,isScrollingUp:b,scrollRatio:i}=vRe(t,{canScroll:s}),S=nr(()=>d.value.hide||d.value.fullyHide),w=nr(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=nr(()=>t.flat||d.value.fullyHide&&!E.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),m=nr(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=nr(()=>{var O,C;const v=Number(((O=f.value)==null?void 0:O.contentHeight)??t.height),_=Number(((C=f.value)==null?void 0:C.extensionHeight)??0);return S.value?n.value!!t.scrollBehavior),()=>{Gp(()=>{S.value?d.value.inverted?E.value=n.value>u.value:E.value=b.value||n.valueparseInt(t.order,10)),position:ji(t,"location"),layoutSize:a,elementSize:Gi(void 0),active:E,absolute:ji(t,"absolute")});return Ga(()=>{const v=Mge.filterProps(t);return $t(Mge,qi({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":m.value,height:void 0,...c.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),p}});const xRe=[null,"default","comfortable","compact"],Q1=gi({density:{type:String,default:"default",validator:t=>xRe.includes(t)}},"density");function Rx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{densityClasses:nr(()=>`${e}--density-${t.density}`)}}const _Re=["elevated","flat","tonal","outlined","text","plain"];function oC(t,e){return $t(Ea,null,[t&&$t("span",{key:"overlay",class:`${e}__overlay`},null),$t("span",{key:"underlay",class:`${e}__underlay`},null)])}const Lx=gi({color:String,variant:{type:String,default:"elevated",validator:t=>_Re.includes(t)}},"variant");function iC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=nr(()=>{const{variant:d}=Va(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:E}=yue(nr(()=>{const{variant:d,color:s}=Va(t);return{[["elevated","flat"].includes(d)?"background":"text"]:s}}));return{colorClasses:f,colorStyles:E,variantClasses:o}}const L2e=gi({baseColor:String,divided:Boolean,...B_(),...Js(),...Q1(),...iy(),...Pm(),...tf(),...gd(),...Lx()},"VBtnGroup"),Ege=Oa()({name:"VBtnGroup",props:L2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{densityClasses:E}=Rx(t),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t);ab({VBtn:{height:"auto",baseColor:ji(t,"baseColor"),color:ji(t,"color"),density:ji(t,"density"),flat:!0,variant:ji(t,"variant")}}),Ga(()=>$t(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,E.value,s.value,n.value,t.class],style:t.style},o))}}),dq=gi({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),xue=gi({value:null,disabled:Boolean,selectedClass:String},"group-item");function _ue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=Xh("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const E=j1();md(Symbol.for(`${e.description}:id`),E);const d=Kl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const s=ji(t,"value"),n=nr(()=>!!(d.disabled.value||t.disabled));d.register({id:E,value:s,disabled:n},f),Em(()=>{d.unregister(E)});const u=nr(()=>d.isSelected(E)),b=nr(()=>d.items.value[0].id===E),i=nr(()=>d.items.value[d.items.value.length-1].id===E),S=nr(()=>u.value&&[d.selectedClass.value,t.selectedClass]);return ia(u,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:E,isSelected:u,isFirst:b,isLast:i,toggle:()=>d.select(E,!u.value),select:w=>d.select(E,w),selectedClass:S,value:s,disabled:n,group:d}}function hq(t,e){let o=!1;const f=Am([]),E=ql(t,"modelValue",[],w=>w==null?[]:I2e(f,Pp(w)),w=>{const y=ORe(f,w);return t.multiple?y:y[0]}),d=Xh("useGroup");function s(w,y){const m=w,a=Symbol.for(`${e.description}:id`),h=V8(a,d==null?void 0:d.vnode).indexOf(y);Va(m.value)==null&&(m.value=h,m.useIndexAsValue=!0),h>-1?f.splice(h,0,m):f.push(m)}function n(w){if(o)return;u();const y=f.findIndex(m=>m.id===w);f.splice(y,1)}function u(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!E.value.length&&(E.value=[w.id])}pg(()=>{u()}),Em(()=>{o=!0}),rce(()=>{for(let w=0;wa.id===w);if(!(y&&(m!=null&&m.disabled)))if(t.multiple){const a=E.value.slice(),c=a.findIndex(p=>p===w),h=~c;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;c<0&&y?a.push(w):c>=0&&!y&&a.splice(c,1),E.value=a}else{const a=E.value.includes(w);if(t.mandatory&&a)return;E.value=y??!a?[w]:[]}}function i(w){if(t.multiple,E.value.length){const y=E.value[0],m=f.findIndex(h=>h.id===y);let a=(m+w)%f.length,c=f[a];for(;c.disabled&&a!==m;)a=(a+w)%f.length,c=f[a];if(c.disabled)return;E.value=[f[a].id]}else{const y=f.find(m=>!m.disabled);y&&(E.value=[y.id])}}const S={register:s,unregister:n,selected:E,select:b,disabled:ji(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>E.value.includes(w),selectedClass:nr(()=>t.selectedClass),items:nr(()=>f),getItemIndex:w=>wRe(f,w)};return md(e,S),S}function wRe(t,e){const o=I2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function I2e(t,e){const o=[];return e.forEach(f=>{const E=t.find(s=>R4(f,s.value)),d=t[f];(E==null?void 0:E.value)!=null?o.push(E.id):d!=null&&o.push(d.id)}),o}function ORe(t,e){const o=[];return e.forEach(f=>{const E=t.findIndex(d=>d.id===f);if(~E){const d=t[E];o.push(d.value!=null?d.value:E)}}),o}const D2e=Symbol.for("vuetify:v-btn-toggle"),SRe=gi({...L2e(),...dq()},"VBtnToggle"),B2e=Oa()({name:"VBtnToggle",props:SRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:E,prev:d,select:s,selected:n}=hq(t,D2e);return Ga(()=>{const u=Ege.filterProps(t);return $t(Ege,qi({class:["v-btn-toggle",t.class]},u,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:E,prev:d,select:s,selected:n})]}})}),{next:E,prev:d,select:s}}});const z2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},N2e={component:t=>U1($2e,{...t,class:"mdi"})},Hl=[String,Function,Object,Array],ele=Symbol.for("vuetify:icons"),pq=gi({icon:{type:Hl},tag:{type:String,required:!0}},"icon"),Pge=Oa()({name:"VComponentIcon",props:pq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return $t(t.tag,null,{default:()=>{var E;return[t.icon?$t(f,null,null):(E=o.default)==null?void 0:E.call(o)]}})}}}),F2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:pq(),setup(t,e){let{attrs:o}=e;return()=>$t(t.tag,qi(o,{style:null}),{default:()=>[$t("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?$t("path",{d:f[0],"fill-opacity":f[1]},null):$t("path",{d:f},null)):$t("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:pq(),setup(t){return()=>$t(t.tag,null,{default:()=>[t.icon]})}});const $2e=PM({name:"VClassIcon",props:pq(),setup(t){return()=>$t(t.tag,{class:t.icon},null)}});function kRe(){return{svg:{component:F2e},class:{component:$2e}}}function TRe(t){const e=kRe(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=N2e),Jg({defaultSet:o,sets:e,aliases:{...z2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const CRe=t=>{const e=Kl(ele);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:nr(()=>{var u;const f=Va(t);if(!f)return{component:Pge};let E=f;if(typeof E=="string"&&(E=E.trim(),E.startsWith("$")&&(E=(u=e.aliases)==null?void 0:u[E.slice(1)])),Array.isArray(E))return{component:F2e,icon:E};if(typeof E!="string")return{component:Pge,icon:E};const d=Object.keys(e.sets).find(b=>typeof E=="string"&&E.startsWith(`${b}:`)),s=d?E.slice(d.length+1):E;return{component:e.sets[d??e.defaultSet].component,icon:s}})}},ARe=["x-small","small","default","large","x-large"],aC=gi({size:{type:[String,Number],default:"default"}},"size");function bD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return lue(()=>{let o,f;return iZ(ARe,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:is(t.size),height:is(t.size)}),{sizeClasses:o,sizeStyles:f}})}const MRe=gi({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Hl,...Js(),...aC(),...tf({tag:"i"}),...gd()},"VIcon"),jl=Oa()({name:"VIcon",props:MRe(),setup(t,e){let{attrs:o,slots:f}=e;const E=qo(),{themeClasses:d}=th(t),{iconData:s}=CRe(nr(()=>E.value||t.icon)),{sizeClasses:n}=bD(t),{textColorClasses:u,textColorStyles:b}=ny(ji(t,"color"));return Ga(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(E.value=(y=a2e(i).filter(m=>m.type===sD&&m.children&&typeof m.children=="string")[0])==null?void 0:y.children);const S=!!(o.onClick||o.onClickOnce);return $t(s.value.component,{tag:t.tag,icon:s.value.icon,class:["v-icon","notranslate",d.value,n.value,u.value,{"v-icon--clickable":S,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:is(t.size),height:is(t.size),width:is(t.size)},b.value,t.style],role:S?"button":void 0,"aria-hidden":!S,tabindex:S?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function V2e(t,e){const o=qo(),f=Gi(!1);if(iue){const E=new IntersectionObserver(d=>{t==null||t(d,E),f.value=!!d.find(s=>s.isIntersecting)},e);Em(()=>{E.disconnect()}),ia(o,(d,s)=>{s&&(E.unobserve(s),f.value=!1),d&&E.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const ERe=gi({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Js(),...aC(),...tf({tag:"div"}),...gd()},"VProgressCircular"),sC=Oa()({name:"VProgressCircular",props:ERe(),setup(t,e){let{slots:o}=e;const f=20,E=2*Math.PI*f,d=qo(),{themeClasses:s}=th(t),{sizeClasses:n,sizeStyles:u}=bD(t),{textColorClasses:b,textColorStyles:i}=ny(ji(t,"color")),{textColorClasses:S,textColorStyles:w}=ny(ji(t,"bgColor")),{intersectionRef:y,isIntersecting:m}=V2e(),{resizeRef:a,contentRect:c}=T4(),h=nr(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),p=nr(()=>Number(t.width)),v=nr(()=>u.value?Number(t.size):c.value?c.value.width:Math.max(p.value,32)),_=nr(()=>f/(1-p.value/v.value)*2),O=nr(()=>p.value/v.value*_.value),C=nr(()=>is((100-h.value)/100*E));return Gp(()=>{y.value=d.value,a.value=d.value}),Ga(()=>$t(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},s.value,n.value,b.value,t.class],style:[u.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[$t("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[$t("circle",{class:["v-progress-circular__underlay",S.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":0},null),$t("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":C.value},null)]),o.default&&$t("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const Rge={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},xD=gi({location:String},"location");function mq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=n0();return{locationStyles:nr(()=>{if(!t.location)return{};const{side:d,align:s}=Gse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const u={};return d!=="center"&&(e?u[Rge[d]]=`calc(100% - ${n(d)}px)`:u[d]=0),s!=="center"?e?u[Rge[s]]=`calc(100% - ${n(s)}px)`:u[s]=0:(d==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),u})}}const PRe=gi({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Js(),...xD({location:"top"}),...Pm(),...tf(),...gd()},"VProgressLinear"),U2e=Oa()({name:"VProgressLinear",props:PRe(),emits:{"update:modelValue":t=>!0},setup(t,e){var P;let{slots:o}=e;const f=ql(t,"modelValue"),{isRtl:E,rtlClasses:d}=n0(),{themeClasses:s}=th(t),{locationStyles:n}=mq(t),{textColorClasses:u,textColorStyles:b}=ny(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=dg(nr(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:m,backgroundColorStyles:a}=dg(t,"color"),{roundedClasses:c}=mg(t),{intersectionRef:h,isIntersecting:p}=V2e(),v=nr(()=>parseFloat(t.max)),_=nr(()=>parseFloat(t.height)),O=nr(()=>ug(parseFloat(t.bufferValue)/v.value*100,0,100)),C=nr(()=>ug(parseFloat(f.value)/v.value*100,0,100)),x=nr(()=>E.value!==t.reverse),R=nr(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=Hu&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function T(A){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-A.clientX+(D-k):A.clientX-L;f.value=Math.round(I/k*v.value)}return Ga(()=>$t(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},c.value,s.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?is(_.value):0,"--v-progress-linear-height":is(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:C.value,onClick:t.clickable&&T},{default:()=>[t.stream&&$t("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...b.value,[x.value?"left":"right"]:is(-_.value),borderTop:`${is(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${is(_.value/4)})`,width:is(100-O.value,"%"),"--v-progress-linear-stream-to":is(_.value*(x.value?1:-1))}},null),$t("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[S.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),$t("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:is(O.value,"%")}]},null),$t(C_,{name:R.value},{default:()=>[t.indeterminate?$t("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(A=>$t("div",{key:A,class:["v-progress-linear__indeterminate",A,M?void 0:m.value],style:a.value},null))]):$t("div",{class:["v-progress-linear__determinate",M?void 0:m.value],style:[a.value,{width:is(C.value,"%")}]},null)]}),o.default&&$t("div",{class:"v-progress-linear__content"},[o.default({value:C.value,buffer:O.value})])]})),{}}}),gq=gi({loading:[Boolean,String]},"loader");function _D(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{loaderClasses:nr(()=>({[`${e}--loading`]:t.loading}))}}function vq(t,e){var f;let{slots:o}=e;return $t("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||$t(U2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const RRe=["static","relative","fixed","absolute","sticky"],yq=gi({position:{type:String,validator:t=>RRe.includes(t)}},"position");function bq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{positionClasses:nr(()=>t.position?`${e}--${t.position}`:void 0)}}function LRe(){const t=Xh("useRoute");return nr(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function j2e(){var t,e;return(e=(t=Xh("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function xq(t,e){var b,i;const o=nM("RouterLink"),f=nr(()=>!!(t.href||t.to)),E=nr(()=>(f==null?void 0:f.value)||oge(e,"click")||oge(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:E,href:ji(t,"href")};const d=nr(()=>({...t,to:ji(()=>t.to||"")})),s=o.useLink(d.value),n=nr(()=>t.to?s:void 0),u=LRe();return{isLink:f,isClickable:E,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:nr(()=>{var S,w,y;return n.value?t.exact?u.value?((y=n.value.isExactActive)==null?void 0:y.value)&&R4(n.value.route.value.query,u.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((S=n.value.isActive)==null?void 0:S.value)??!1:!1}),href:nr(()=>{var S;return t.to?(S=n.value)==null?void 0:S.route.value.href:t.href})}}const _q=gi({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let oae=!1;function IRe(t,e){let o=!1,f,E;Hu&&(Vc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((s,n,u)=>{oae?o?e(u):u():setTimeout(()=>o?e(u):u()),oae=!0}),E=t==null?void 0:t.afterEach(()=>{oae=!1})}),hg(()=>{window.removeEventListener("popstate",d),f==null||f(),E==null||E()}));function d(s){var n;(n=s.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function DRe(t,e){ia(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&Vc(()=>{e(!0)})},{immediate:!0})}const tle=Symbol("rippleStop"),BRe=80;function Lge(t,e){t.style.transform=e,t.style.webkitTransform=e}function nle(t){return t.constructor.name==="TouchEvent"}function Q2e(t){return t.constructor.name==="KeyboardEvent"}const zRe=function(t,e){var S;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,E=0;if(!Q2e(t)){const w=e.getBoundingClientRect(),y=nle(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,E=y.clientY-w.top}let d=0,s=.3;(S=e._ripple)!=null&&S.circle?(s=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(E-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,u=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?u:`${E-d}px`;return{radius:d,scale:s,x:b,y:i,centerX:n,centerY:u}},dZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),E=document.createElement("span");f.appendChild(E),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:s,x:n,y:u,centerX:b,centerY:i}=zRe(t,e,o),S=`${d*2}px`;E.className="v-ripple__animation",E.style.width=S,E.style.height=S,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),E.classList.add("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--visible"),Lge(E,`translate(${n}, ${u}) scale3d(${s},${s},${s})`),E.dataset.activated=String(performance.now()),setTimeout(()=>{E.classList.remove("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--in"),Lge(E,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),E=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},E)}};function H2e(t){return typeof t>"u"||!!t}function ZI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[tle])){if(t[tle]=!0,nle(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||Q2e(t),o._ripple.class&&(e.class=o._ripple.class),nle(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{dZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},BRe)}else dZ.show(t,o,e)}}function Ige(t){t[tle]=!0}function Xv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Xv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),dZ.hide(e)}}function Z2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let qI=!1;function q2e(t){!qI&&(t.keyCode===Kme.enter||t.keyCode===Kme.space)&&(qI=!0,ZI(t))}function W2e(t){qI=!1,Xv(t)}function Y2e(t){qI&&(qI=!1,Xv(t))}function X2e(t,e,o){const{value:f,modifiers:E}=e,d=H2e(f);if(d||dZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=E.center,t._ripple.circle=E.circle,Wse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(E.stop){t.addEventListener("touchstart",Ige,{passive:!0}),t.addEventListener("mousedown",Ige);return}t.addEventListener("touchstart",ZI,{passive:!0}),t.addEventListener("touchend",Xv,{passive:!0}),t.addEventListener("touchmove",Z2e,{passive:!0}),t.addEventListener("touchcancel",Xv),t.addEventListener("mousedown",ZI),t.addEventListener("mouseup",Xv),t.addEventListener("mouseleave",Xv),t.addEventListener("keydown",q2e),t.addEventListener("keyup",W2e),t.addEventListener("blur",Y2e),t.addEventListener("dragstart",Xv,{passive:!0})}else!d&&o&&G2e(t)}function G2e(t){t.removeEventListener("mousedown",ZI),t.removeEventListener("touchstart",ZI),t.removeEventListener("touchend",Xv),t.removeEventListener("touchmove",Z2e),t.removeEventListener("touchcancel",Xv),t.removeEventListener("mouseup",Xv),t.removeEventListener("mouseleave",Xv),t.removeEventListener("keydown",q2e),t.removeEventListener("keyup",W2e),t.removeEventListener("dragstart",Xv),t.removeEventListener("blur",Y2e)}function NRe(t,e){X2e(t,e,!1)}function FRe(t){delete t._ripple,G2e(t)}function $Re(t,e){if(e.value===e.oldValue)return;const o=H2e(e.oldValue);X2e(t,e,o)}const lC={mounted:NRe,unmounted:FRe,updated:$Re},VRe=gi({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:D2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Hl,appendIcon:Hl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...B_(),...Js(),...Q1(),...I_(),...iy(),...xue(),...gq(),...xD(),...yq(),...Pm(),..._q(),...aC(),...tf({tag:"button"}),...gd(),...Lx({variant:"elevated"})},"VBtn"),es=Oa()({name:"VBtn",props:VRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{densityClasses:s}=Rx(t),{dimensionStyles:n}=D_(t),{elevationClasses:u}=cb(t),{loaderClasses:b}=_D(t),{locationStyles:i}=mq(t),{positionClasses:S}=bq(t),{roundedClasses:w}=mg(t),{sizeClasses:y,sizeStyles:m}=bD(t),a=_ue(t,t.symbol,!1),c=xq(t,o),h=nr(()=>{var T;return t.active!==void 0?t.active:c.isLink.value?(T=c.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),p=nr(()=>{var P,A;return{color:(a==null?void 0:a.isSelected.value)&&(!c.isLink.value||((P=c.isActive)==null?void 0:P.value))||!a||((A=c.isActive)==null?void 0:A.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:O}=iC(p),C=nr(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=nr(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=nr(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var P;C.value||c.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((P=c.navigate)==null||P.call(c,T),a==null||a.toggle())}return DRe(c,a==null?void 0:a.select),Ga(()=>{const T=c.isLink.value?"a":t.tag,P=!!(t.prependIcon||f.prepend),A=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Kp($t(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":C.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},E.value,d.value,v.value,s.value,u.value,b.value,S.value,w.value,y.value,O.value,t.class],style:[_.value,n.value,i.value,m.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:C.value||void 0,href:c.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[oC(!0,"v-btn"),!t.icon&&P&&$t("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):$t(jl,{key:"prepend-icon",icon:t.prependIcon},null)]),$t("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?$t(jl,{key:"content-icon",icon:t.icon},null):$t(ef,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&A&&$t("span",{key:"append",class:"v-btn__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):$t(jl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&$t("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??$t(sC,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[lC,!C.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const URe=uq("v-alert-title"),jRe=["success","info","warning","error"],QRe=gi({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Hl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>jRe.includes(t)},...Js(),...Q1(),...I_(),...iy(),...xD(),...yq(),...Pm(),...tf(),...gd(),...Lx({variant:"flat"})},"VAlert"),eM=Oa()({name:"VAlert",props:QRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),d=nr(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),s=nr(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=th(t),{colorClasses:u,colorStyles:b,variantClasses:i}=iC(s),{densityClasses:S}=Rx(t),{dimensionStyles:w}=D_(t),{elevationClasses:y}=cb(t),{locationStyles:m}=mq(t),{positionClasses:a}=bq(t),{roundedClasses:c}=mg(t),{textColorClasses:h,textColorStyles:p}=ny(ji(t,"borderColor")),{t:v}=ry(),_=nr(()=>({"aria-label":v(t.closeLabel),onClick(O){E.value=!1,o("click:close",O)}}));return()=>{const O=!!(f.prepend||d.value),C=!!(f.title||t.title),x=!!(f.close||t.closable);return E.value&&$t(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,u.value,S.value,y.value,a.value,c.value,i.value,t.class],style:[b.value,w.value,m.value,t.style],role:"alert"},{default:()=>{var R,M;return[oC(!1,"v-alert"),t.border&&$t("div",{key:"border",class:["v-alert__border",h.value],style:p.value},null),O&&$t("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):$t(jl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),$t("div",{class:"v-alert__content"},[C&&$t(URe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&$t("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&$t("div",{key:"close",class:"v-alert__close"},[f.close?$t(ef,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):$t(es,qi({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const HRe=gi({start:Boolean,end:Boolean,icon:Hl,image:String,text:String,...Js(),...Q1(),...Pm(),...aC(),...tf(),...gd(),...Lx({variant:"flat"})},"VAvatar"),DO=Oa()({name:"VAvatar",props:HRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{colorClasses:E,colorStyles:d,variantClasses:s}=iC(t),{densityClasses:n}=Rx(t),{roundedClasses:u}=mg(t),{sizeClasses:b,sizeStyles:i}=bD(t);return Ga(()=>$t(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,E.value,n.value,u.value,b.value,s.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?$t(ef,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?$t(rC,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?$t(jl,{key:"icon",icon:t.icon},null):t.text,oC(!1,"v-avatar")]})),{}}});const ZRe=gi({text:String,onClick:fg(),...Js(),...gd()},"VLabel"),wq=Oa()({name:"VLabel",props:ZRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var f;return $t("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const K2e=Symbol.for("vuetify:selection-control-group"),J2e=gi({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Hl,trueIcon:Hl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:R4},...Js(),...Q1(),...gd()},"SelectionControlGroup"),qRe=gi({...J2e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Oa()({name:"VSelectionControlGroup",props:qRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),E=j1(),d=nr(()=>t.id||`v-selection-control-group-${E}`),s=nr(()=>t.name||d.value),n=new Set;return md(K2e,{modelValue:f,forceUpdate:()=>{n.forEach(u=>u())},onForceUpdate:u=>{n.add(u),hg(()=>{n.delete(u)})}}),ab({[t.defaultsTarget]:{color:ji(t,"color"),disabled:ji(t,"disabled"),density:ji(t,"density"),error:ji(t,"error"),inline:ji(t,"inline"),modelValue:f,multiple:nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:s,falseIcon:ji(t,"falseIcon"),trueIcon:ji(t,"trueIcon"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),type:ji(t,"type"),valueComparator:ji(t,"valueComparator")}}),Ga(()=>{var u;return $t("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(u=o.default)==null?void 0:u.call(o)])}),{}}});const wue=gi({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Js(),...J2e()},"VSelectionControl");function WRe(t){const e=Kl(K2e,void 0),{densityClasses:o}=Rx(t),f=ql(t,"modelValue"),E=nr(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=nr(()=>t.falseValue!==void 0?t.falseValue:!1),s=nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=nr({get(){const y=e?e.modelValue.value:f.value;return s.value?Pp(y).some(m=>t.valueComparator(m,E.value)):t.valueComparator(y,E.value)},set(y){if(t.readonly)return;const m=y?E.value:d.value;let a=m;s.value&&(a=y?[...Pp(f.value),m]:Pp(f.value).filter(c=>!t.valueComparator(c,E.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:u,textColorStyles:b}=ny(nr(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=nr(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:E,falseValue:d,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,icon:w}}const hZ=Oa()({name:"VSelectionControl",directives:{Ripple:lC},inheritAttrs:!1,props:wue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:E,densityClasses:d,icon:s,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,trueValue:w}=WRe(t),y=j1(),m=Gi(!1),a=Gi(!1),c=qo(),h=nr(()=>t.id||`input-${y}`),p=nr(()=>!t.disabled&&!t.readonly);E==null||E.onForceUpdate(()=>{c.value&&(c.value.checked=n.value)});function v(x){p.value&&(m.value=!0,mM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){m.value=!1,a.value=!1}function O(x){x.stopPropagation()}function C(x){if(!p.value){c.value&&(c.value.checked=n.value);return}t.readonly&&E&&Vc(()=>E.forceUpdate()),n.value=x.target.checked}return Ga(()=>{var P,A;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=yD(o),T=$t("input",qi({ref:c,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:C,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return $t("div",qi({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[$t("div",{class:["v-selection-control__wrapper",u.value],style:b.value},[(P=f.default)==null?void 0:P.call(f,{backgroundColorClasses:i,backgroundColorStyles:S}),Kp($t("div",{class:["v-selection-control__input"]},[((A=f.input)==null?void 0:A.call(f,{model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,inputNode:T,icon:s.value,props:{onFocus:v,onBlur:_,id:h.value}}))??$t(Ea,null,[s.value&&$t(jl,{key:"icon",icon:s.value},null),T])]),[[M_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&$t(wq,{for:h.value,onClick:O},{default:()=>[x]})])}),{isFocused:m,input:c}}}),YRe=gi({indeterminate:Boolean,indeterminateIcon:{type:Hl,default:"$checkboxIndeterminate"},...wue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),RM=Oa()({name:"VCheckboxBtn",props:YRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"indeterminate"),E=ql(t,"modelValue");function d(u){f.value&&(f.value=!1)}const s=nr(()=>f.value?t.indeterminateIcon:t.falseIcon),n=nr(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ga(()=>{const u=R_(hZ.filterProps(t),["modelValue"]);return $t(hZ,qi(u,{modelValue:E.value,"onUpdate:modelValue":[b=>E.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:s.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function e_e(t){const{t:e}=ry();function o(f){let{name:E}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[E],s=t[`onClick:${E}`],n=s&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return $t(jl,{icon:t[`${E}Icon`],"aria-label":n,onClick:s},null)}return{InputIcon:o}}const XRe=gi({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Js(),...nC({transition:{component:A2e,leaveAbsolute:!0,group:!0}})},"VMessages"),GRe=Oa()({name:"VMessages",props:XRe(),setup(t,e){let{slots:o}=e;const f=nr(()=>Pp(t.messages)),{textColorClasses:E,textColorStyles:d}=ny(nr(()=>t.color));return Ga(()=>$t(f4,{transition:t.transition,tag:"div",class:["v-messages",E.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((s,n)=>$t("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:s}):s]))]})),{}}}),Oq=gi({focused:Boolean,"onUpdate:focused":fg()},"focus");function cC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=ql(t,"focused"),f=nr(()=>({[`${e}--focused`]:o.value}));function E(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:E,blur:d}}const t_e=Symbol.for("vuetify:form"),KRe=gi({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function JRe(t){const e=ql(t,"modelValue"),o=nr(()=>t.disabled),f=nr(()=>t.readonly),E=Gi(!1),d=qo([]),s=qo([]);async function n(){const i=[];let S=!0;s.value=[],E.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(S=!1,i.push({id:w.id,errorMessages:y})),!S&&t.fastFail)break}return s.value=i,E.value=!1,{valid:S,errors:s.value}}function u(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return ia(d,()=>{let i=0,S=0;const w=[];for(const y of d.value)y.isValid===!1?(S++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;s.value=w,e.value=S>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),md(t_e,{register:i=>{let{id:S,vm:w,validate:y,reset:m,resetValidation:a}=i;d.value.some(c=>c.id===S),d.value.push({id:S,validate:y,reset:m,resetValidation:a,vm:iD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(S=>S.id!==i)},update:(i,S,w)=>{const y=d.value.find(m=>m.id===i);y&&(y.isValid=S,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validateOn:ji(t,"validateOn")}),{errors:s,isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validate:n,reset:u,resetValidation:b}}function Sq(){return Kl(t_e,null)}const eLe=gi({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Oq()},"validation");function tLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j1();const f=ql(t,"modelValue"),E=nr(()=>t.validationValue===void 0?f.value:t.validationValue),d=Sq(),s=qo([]),n=Gi(!0),u=nr(()=>!!(Pp(f.value===""?null:f.value).length||Pp(E.value===""?null:E.value).length)),b=nr(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=nr(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),S=nr(()=>{var O;return(O=t.errorMessages)!=null&&O.length?Pp(t.errorMessages).concat(s.value).slice(0,Math.max(0,+t.maxErrors)):s.value}),w=nr(()=>{let O=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";O==="lazy"&&(O="input lazy");const C=new Set((O==null?void 0:O.split(" "))??[]);return{blur:C.has("blur")||C.has("input"),input:C.has("input"),submit:C.has("submit"),lazy:C.has("lazy")}}),y=nr(()=>{var O;return t.error||(O=t.errorMessages)!=null&&O.length?!1:t.rules.length?n.value?s.value.length||w.value.lazy?null:!0:!s.value.length:!0}),m=Gi(!1),a=nr(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:u.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),c=Xh("validation"),h=nr(()=>t.name??Va(o));nce(()=>{d==null||d.register({id:h.value,vm:c,validate:_,reset:p,resetValidation:v})}),Em(()=>{d==null||d.unregister(h.value)}),pg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,S.value)}),$1(()=>w.value.input,()=>{ia(E,()=>{if(E.value!=null)_();else if(t.focused){const O=ia(()=>t.focused,C=>{C||_(),O()})}})}),$1(()=>w.value.blur,()=>{ia(()=>t.focused,O=>{O||_()})}),ia([y,S],()=>{d==null||d.update(h.value,y.value,S.value)});async function p(){f.value=null,await Vc(),await v()}async function v(){n.value=!0,w.value.lazy?s.value=[]:await _(!0)}async function _(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=[];m.value=!0;for(const x of t.rules){if(C.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(E.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}C.push(M||"")}}return s.value=C,m.value=!1,n.value=O,s.value}return{errorMessages:S,isDirty:u,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:m,reset:p,resetValidation:v,validate:_,validationClasses:a}}const uC=gi({id:String,appendIcon:Hl,centerAffix:{type:Boolean,default:!0},prependIcon:Hl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":fg(),"onClick:append":fg(),...Js(),...Q1(),...o9e(I_(),["maxWidth","minWidth","width"]),...gd(),...eLe()},"VInput"),sb=Oa()({name:"VInput",props:{...uC()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const{densityClasses:d}=Rx(t),{dimensionStyles:s}=D_(t),{themeClasses:n}=th(t),{rtlClasses:u}=n0(),{InputIcon:b}=e_e(t),i=j1(),S=nr(()=>t.id||`input-${i}`),w=nr(()=>`${S.value}-messages`),{errorMessages:y,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C,validationClasses:x}=tLe(t,"v-input",S),R=nr(()=>({id:S,messagesId:w,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C})),M=nr(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ga(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),P=!!(f.append||t.appendIcon),A=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(A||!!f.details);return $t("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,u.value,x.value,t.class],style:[s.value,t.style]},[T&&$t("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&$t(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&$t("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),P&&$t("div",{key:"append",class:"v-input__append"},[t.appendIcon&&$t(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&$t("div",{class:"v-input__details"},[$t(GRe,{id:w.value,active:A,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:O,validate:C,isValid:p,errorMessages:y}}});const kq=["sm","md","lg","xl","xxl"],rle=Symbol.for("vuetify:display"),Dge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},nLe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dge;return Jg(Dge,t)};function Bge(t){return Hu&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function zge(t){return Hu&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function Nge(t){const e=Hu&&!t?window.navigator.userAgent:"ssr";function o(m){return!!e.match(m)}const f=o(/android/i),E=o(/iphone|ipad|ipod/i),d=o(/cordova/i),s=o(/electron/i),n=o(/chrome/i),u=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),S=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:E,cordova:d,electron:s,chrome:n,edge:u,firefox:b,opera:i,win:S,mac:w,linux:y,touch:t9e,ssr:e==="ssr"}}function rLe(t,e){const{thresholds:o,mobileBreakpoint:f}=nLe(t),E=Gi(zge(e)),d=Gi(Nge(e)),s=Am({}),n=Gi(Bge(e));function u(){E.value=zge(),n.value=Bge()}function b(){u(),d.value=Nge()}return Gp(()=>{const i=n.value=o.xxl,c=i?"xs":S?"sm":w?"md":y?"lg":m?"xl":"xxl",h=typeof f=="number"?f:o[f],p=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=Kl(rle);if(!o)throw new Error("Could not find Vuetify display injection");const f=nr(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:E,mobile:f}}const n_e=Symbol.for("vuetify:goto");function r_e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function oLe(t){return Oue(t)??(document.scrollingElement||document.body)}function Oue(t){return typeof t=="string"?document.querySelector(t):aue(t)}function iae(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=Oue(t),E=0;for(;f;)E+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return E}function iLe(t,e){return{rtl:e.isRtl,options:Jg(r_e(),t)}}async function Fge(t,e,o,f){const E=o?"scrollLeft":"scrollTop",d=Jg((f==null?void 0:f.options)??r_e(),e),s=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:Oue(t))??0,u=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:oLe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=iae(n,o,s);else if(i=iae(n,o,s)-iae(u,o,s),d.layout){const m=window.getComputedStyle(n).getPropertyValue("--v-layout-top");m&&(i-=parseInt(m,10))}i+=d.offset,i=sLe(u,i,!!s,!!o);const S=u[E]??0;if(i===S)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function m(a){const h=(a-w)/d.duration,p=Math.floor(S+(i-S)*b(ug(h,0,1)));if(u[E]=p,h>=1&&Math.abs(p-u[E])<10)return y(i);if(h>2)return y(u[E]);requestAnimationFrame(m)}))}function aLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=Kl(n_e),{isRtl:o}=n0();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:nr(()=>e.rtl.value||o.value)};async function E(d,s){return Fge(d,Jg(t,s),!1,f)}return E.horizontal=async(d,s)=>Fge(d,Jg(t,s),!0,f),E}function sLe(t,e,o,f){const{scrollWidth:E,scrollHeight:d}=t,[s,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let u,b;return f?o?(u=-(E-s),b=0):(u=0,b=E-s):(u=0,b=d+-n),Math.max(Math.min(e,b),u)}function lLe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:E}=t;const d=WI(E,o),s=o_e(E,f,o),n=WI(E,e),u=i_e(E,e),b=n*.4;return s>u?u-b:s+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Js(),...wD({mobile:null}),...tf(),...dq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Vge=Oa()({name:"VSlideGroup",props:a_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=n0(),{displayClasses:E,mobile:d}=L4(t),s=hq(t,t.symbol),n=Gi(!1),u=Gi(0),b=Gi(0),i=Gi(0),S=nr(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=T4(),{resizeRef:m,contentRect:a}=T4(),c=aLe(),h=nr(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),p=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[0]):-1),v=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[s.selected.value.length-1]):-1);if(Hu){let j=-1;ia(()=>[s.selected.value,y.value,a.value,S.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=S.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&m.el){const U=m.el.children[v.value];O(U,t.centerActive)}})})}const _=Gi(!1);function O(j,U){let X=0;U?X=cLe({containerElement:w.el,isHorizontal:S.value,selectedElement:j}):X=lLe({containerElement:w.el,isHorizontal:S.value,isRtl:f.value,selectedElement:j}),C(X)}function C(j){if(!Hu||!w.el)return;const U=WI(S.value,w.el),X=o_e(S.value,f.value,w.el);if(!($ge(S.value,w.el)<=U||Math.abs(j-X)<16)){if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;j=Z-K-j}S.value?c.horizontal(j,h.value):c(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;u.value=S.value?X:U}function R(j){if(_.value=!0,!(!n.value||!m.el)){for(const U of j.composedPath())for(const X of m.el.children)if(X===U){O(X);return}}}function M(j){_.value=!1}let T=!1;function P(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=m.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function A(){T=!0}function L(j){if(!m.el)return;function U(X){j.preventDefault(),D(X)}S.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!m.el)return;let U;if(!j)U=jI(m.el)[0];else if(j==="next"){if(U=(X=m.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=m.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=m.el.firstElementChild:j==="last"&&(U=m.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=S.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=u.value+X;if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;te+=Z-K}C(te)}const I=nr(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),z=nr(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(u.value)>0;case"mobile":return d.value||n.value||Math.abs(u.value)>0;default:return!d.value&&(n.value||Math.abs(u.value)>0)}}),$=nr(()=>Math.abs(u.value)>1),Q=nr(()=>{if(!w.value)return!1;const j=$ge(S.value,w.el),U=uLe(S.value,w.el);return j-U-Math.abs(u.value)>1});return Ga(()=>$t(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!S.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},E.value,t.class],style:t.style,tabindex:_.value||s.selected.value.length?-1:0,onFocus:P},{default:()=>{var j,U,X;return[z.value&&$t("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:A,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??$t(Cge,null,{default:()=>[$t(jl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),$t("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[$t("div",{ref:m,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&$t("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:A,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??$t(Cge,null,{default:()=>[$t(jl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:k,scrollOffset:u,focus:D}}}),s_e=Symbol.for("vuetify:v-chip-group"),dLe=gi({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:R4},...a_e(),...Js(),...dq({selectedClass:"v-chip--selected"}),...tf(),...gd(),...Lx({variant:"tonal"})},"VChipGroup");Oa()({name:"VChipGroup",props:dLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{isSelected:E,select:d,next:s,prev:n,selected:u}=hq(t,s_e);return ab({VChip:{color:ji(t,"color"),disabled:ji(t,"disabled"),filter:ji(t,"filter"),variant:ji(t,"variant")}}),Ga(()=>{const b=Vge.filterProps(t);return $t(Vge,qi(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:E,select:d,next:s,prev:n,selected:u.value})]}})}),{}}});const hLe=gi({activeClass:String,appendAvatar:String,appendIcon:Hl,closable:Boolean,closeIcon:{type:Hl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...iy(),...xue(),...Pm(),..._q(),...aC(),...tf({tag:"span"}),...gd(),...Lx({variant:"tonal"})},"VChip"),LM=Oa()({name:"VChip",directives:{Ripple:lC},props:hLe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=ry(),{borderClasses:s}=$O(t),{colorClasses:n,colorStyles:u,variantClasses:b}=iC(t),{densityClasses:i}=Rx(t),{elevationClasses:S}=cb(t),{roundedClasses:w}=mg(t),{sizeClasses:y}=bD(t),{themeClasses:m}=th(t),a=ql(t,"modelValue"),c=_ue(t,s_e,!1),h=xq(t,o),p=nr(()=>t.link!==!1&&h.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(!!c||t.link||h.isClickable.value)),_=nr(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function O(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),c==null||c.toggle())}function C(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),O(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||E.append),T=!!(E.close||t.closable),P=!!(E.filter||t.filter)&&c,A=!!(t.prependIcon||t.prependAvatar),L=!!(A||E.prepend),D=!c||c.isSelected.value;return a.value&&Kp($t(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":P,"v-chip--pill":t.pill},m.value,s.value,D?n.value:void 0,i.value,S.value,w.value,y.value,b.value,c==null?void 0:c.selectedClass.value,t.class],style:[D?u.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:O,onKeydown:v.value&&!p.value&&C},{default:()=>{var k;return[oC(v.value,"v-chip"),P&&$t(M2e,{key:"filter"},{default:()=>[Kp($t("div",{class:"v-chip__filter"},[E.filter?$t(ef,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},E.filter):$t(jl,{key:"filter-icon",icon:t.filterIcon},null)]),[[A4,c.isSelected.value]])]}),L&&$t("div",{key:"prepend",class:"v-chip__prepend"},[E.prepend?$t(ef,{key:"prepend-defaults",disabled:!A,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},E.prepend):$t(Ea,null,[t.prependIcon&&$t(jl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&$t(DO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),$t("div",{class:"v-chip__content","data-no-activator":""},[((k=E.default)==null?void 0:k.call(E,{isSelected:c==null?void 0:c.isSelected.value,selectedClass:c==null?void 0:c.selectedClass.value,select:c==null?void 0:c.select,toggle:c==null?void 0:c.toggle,value:c==null?void 0:c.value.value,disabled:t.disabled}))??t.text]),M&&$t("div",{key:"append",class:"v-chip__append"},[E.append?$t(ef,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},E.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&$t("button",qi({key:"close",class:"v-chip__close",type:"button"},_.value),[E.close?$t(ef,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},E.close):$t(jl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[M_("ripple"),v.value&&t.ripple,null]])}}});const ole=Symbol.for("vuetify:list");function l_e(){const t=Kl(ole,{hasPrepend:Gi(!1),updateHasPrepend:()=>null}),e={hasPrepend:Gi(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return md(ole,e),t}function c_e(){return Kl(ole,null)}const Sue=t=>{const e={activate:o=>{let{id:f,value:E,activated:d}=o;return f=sl(f),t&&!E&&d.size===1&&d.has(f)||(E?d.add(f):d.delete(f)),d},in:(o,f,E)=>{let d=new Set;if(o!=null)for(const s of Pp(o))d=e.activate({id:s,value:!0,activated:new Set(d),children:f,parents:E});return d},out:o=>Array.from(o)};return e},u_e=t=>{const e=Sue(t);return{activate:f=>{let{activated:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Set([d]):new Set;return e.activate({...s,id:d,activated:n})},in:(f,E,d)=>{let s=new Set;if(f!=null){const n=Pp(f);n.length&&(s=e.in(n.slice(0,1),E,d))}return s},out:(f,E,d)=>e.out(f,E,d)}},pLe=t=>{const e=Sue(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},mLe=t=>{const e=u_e(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},gLe={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){const d=new Set;d.add(e);let s=E.get(e);for(;s!=null;)d.add(s),s=E.get(s);return d}else return f.delete(e),f},select:()=>null},f_e={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){let d=E.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=E.get(d);return f}else f.delete(e);return f},select:()=>null},vLe={open:f_e.open,select:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(!o)return f;const d=[];let s=E.get(e);for(;s!=null;)d.push(s),s=E.get(s);return new Set(d)}},kue=t=>{const e={select:o=>{let{id:f,value:E,selected:d}=o;if(f=sl(f),t&&!E){const s=Array.from(d.entries()).reduce((n,u)=>{let[b,i]=u;return i==="on"&&n.push(b),n},[]);if(s.length===1&&s[0]===f)return d}return d.set(f,E?"on":"off"),d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:o=>{const f=[];for(const[E,d]of o.entries())d==="on"&&f.push(E);return f}};return e},d_e=t=>{const e=kue(t);return{select:f=>{let{selected:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Map([[d,E.get(d)]]):new Map;return e.select({...s,id:d,selected:n})},in:(f,E,d)=>{let s=new Map;return f!=null&&f.length&&(s=e.in(f.slice(0,1),E,d)),s},out:(f,E,d)=>e.out(f,E,d)}},yLe=t=>{const e=kue(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},bLe=t=>{const e=d_e(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},xLe=t=>{const e={select:o=>{let{id:f,value:E,selected:d,children:s,parents:n}=o;f=sl(f);const u=new Map(d),b=[f];for(;b.length;){const S=b.shift();d.set(S,E?"on":"off"),s.has(S)&&b.push(...s.get(S))}let i=n.get(f);for(;i;){const S=s.get(i),w=S.every(m=>d.get(m)==="on"),y=S.every(m=>!d.has(m)||d.get(m)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!E&&Array.from(d.entries()).reduce((w,y)=>{let[m,a]=y;return a==="on"&&w.push(m),w},[]).length===0?u:d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:(o,f)=>{const E=[];for(const[d,s]of o.entries())s==="on"&&!f.has(d)&&E.push(d);return E}};return e},YI=Symbol.for("vuetify:nested"),h_e={id:Gi(),root:{register:()=>null,unregister:()=>null,parents:qo(new Map),children:qo(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:qo(!1),selectable:qo(!1),opened:qo(new Set),activated:qo(new Set),selected:qo(new Map),selectedValues:qo([])}},_Le=gi({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),wLe=t=>{let e=!1;const o=qo(new Map),f=qo(new Map),E=ql(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=nr(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return pLe(t.mandatory);case"single-leaf":return mLe(t.mandatory);case"independent":return Sue(t.mandatory);case"single-independent":default:return u_e(t.mandatory)}}),s=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return bLe(t.mandatory);case"leaf":return yLe(t.mandatory);case"independent":return kue(t.mandatory);case"single-independent":return d_e(t.mandatory);case"classic":default:return xLe(t.mandatory)}}),n=nr(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return vLe;case"single":return gLe;case"multiple":default:return f_e}}),u=ql(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=ql(t,"selected",t.selected,y=>s.value.in(y,o.value,f.value),y=>s.value.out(y,o.value,f.value));Em(()=>{e=!0});function i(y){const m=[];let a=y;for(;a!=null;)m.unshift(a),a=f.value.get(a);return m}const S=Xh("nested"),w={id:Gi(),root:{opened:E,activatable:ji(t,"activatable"),selectable:ji(t,"selectable"),activated:u,selected:b,selectedValues:nr(()=>{const y=[];for(const[m,a]of b.value.entries())a==="on"&&y.push(m);return y}),register:(y,m,a)=>{m&&y!==m&&f.value.set(y,m),a&&o.value.set(y,[]),m!=null&&o.value.set(m,[...o.value.get(m)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const m=f.value.get(y);if(m){const a=o.value.get(m)??[];o.value.set(m,a.filter(c=>c!==y))}f.value.delete(y)},open:(y,m,a)=>{S.emit("click:open",{id:y,value:m,path:i(y),event:a});const c=n.value.open({id:y,value:m,opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},openOnSelect:(y,m,a)=>{const c=n.value.select({id:y,value:m,selected:new Map(b.value),opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},select:(y,m,a)=>{S.emit("click:select",{id:y,value:m,path:i(y),event:a});const c=s.value.select({id:y,value:m,selected:new Map(b.value),children:o.value,parents:f.value,event:a});c&&(b.value=c),w.root.openOnSelect(y,m,a)},activate:(y,m,a)=>{if(!t.activatable)return w.root.select(y,!0,a);S.emit("click:activate",{id:y,value:m,path:i(y),event:a});const c=d.value.activate({id:y,value:m,activated:new Set(u.value),children:o.value,parents:f.value,event:a});c&&(u.value=c)},children:o,parents:f}};return md(YI,w),w.root},p_e=(t,e)=>{const o=Kl(YI,h_e),f=Symbol(j1()),E=nr(()=>t.value!==void 0?t.value:f),d={...o,id:E,open:(s,n)=>o.root.open(E.value,s,n),openOnSelect:(s,n)=>o.root.openOnSelect(E.value,s,n),isOpen:nr(()=>o.root.opened.value.has(E.value)),parent:nr(()=>o.root.parents.value.get(E.value)),activate:(s,n)=>o.root.activate(E.value,s,n),isActivated:nr(()=>o.root.activated.value.has(sl(E.value))),select:(s,n)=>o.root.select(E.value,s,n),isSelected:nr(()=>o.root.selected.value.get(sl(E.value))==="on"),isIndeterminate:nr(()=>o.root.selected.value.get(E.value)==="indeterminate"),isLeaf:nr(()=>!o.root.children.value.get(E.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(E.value,o.id.value,e),Em(()=>{!o.isGroupActivator&&o.root.unregister(E.value)}),e&&md(YI,d),d},OLe=()=>{const t=Kl(YI,h_e);md(YI,{...t,isGroupActivator:!0})},SLe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return OLe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),kLe=gi({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Hl,default:"$collapse"},expandIcon:{type:Hl,default:"$expand"},prependIcon:Hl,appendIcon:Hl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Js(),...tf()},"VListGroup"),Uge=Oa()({name:"VListGroup",props:kLe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:E,id:d}=p_e(ji(t,"value"),!0),s=nr(()=>`v-list-group--id-${String(d.value)}`),n=c_e(),{isBooted:u}=fq();function b(y){y.stopPropagation(),E(!f.value,y)}const i=nr(()=>({onClick:b,class:"v-list-group__header",id:s.value})),S=nr(()=>f.value?t.collapseIcon:t.expandIcon),w=nr(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&S.value,appendIcon:t.appendIcon||!t.subgroup&&S.value,title:t.title,value:t.value}}));return Ga(()=>$t(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&$t(ef,{defaults:w.value},{default:()=>[$t(SLe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),$t(f4,{transition:{component:vue},disabled:!u.value},{default:()=>{var y;return[Kp($t("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(y=o.default)==null?void 0:y.call(o)]),[[A4,f.value]])]}})]})),{isOpen:f}}});const TLe=gi({opacity:[Number,String],...Js(),...tf()},"VListItemSubtitle"),CLe=Oa()({name:"VListItemSubtitle",props:TLe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),z1=uq("v-list-item-title"),ALe=gi({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Hl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...I_(),...iy(),...Pm(),..._q(),...tf(),...gd(),...Lx({variant:"text"})},"VListItem"),Xf=Oa()({name:"VListItem",directives:{Ripple:lC},props:ALe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const d=xq(t,o),s=nr(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:u,select:b,isSelected:i,isIndeterminate:S,isGroupActivator:w,root:y,parent:m,openOnSelect:a}=p_e(s,!1),c=c_e(),h=nr(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?u.value:i.value))}),p=nr(()=>t.link!==!1&&d.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!c&&(y.selectable.value||y.activatable.value||t.value!=null))),_=nr(()=>t.rounded||t.nav),O=nr(()=>t.color??t.activeColor),C=nr(()=>({color:h.value?O.value??t.baseColor:t.baseColor,variant:t.variant}));ia(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&m.value!=null&&y.open(m.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=th(t),{borderClasses:R}=$O(t),{colorClasses:M,colorStyles:T,variantClasses:P}=iC(C),{densityClasses:A}=Rx(t),{dimensionStyles:L}=D_(t),{elevationClasses:D}=cb(t),{roundedClasses:k}=mg(_),I=nr(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=nr(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:S.value}));function $(j){var U;E("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!u.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ga(()=>{const j=p.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),Z=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),re=!!(K||f.prepend);return c==null||c.updateHasPrepend(re),t.activeColor&&O9e("active-color",["color","base-color"]),Kp($t(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!re&&(c==null?void 0:c.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,A.value,D.value,I.value,k.value,P.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?c?-2:0:void 0,onClick:$,onKeydown:v.value&&!p.value&&Q},{default:()=>{var q;return[oC(v.value||h.value,"v-list-item"),re&&$t("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),$t("div",{class:"v-list-item__spacer"},null)]),$t("div",{class:"v-list-item__content","data-no-activator":""},[U&&$t(z1,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&$t(CLe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),Z&&$t("div",{key:"append",class:"v-list-item__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),$t("div",{class:"v-list-item__spacer"},null)])]}}),[[M_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:u,isGroupActivator:w,isSelected:i,list:c,select:b}}}),MLe=gi({color:String,inset:Boolean,sticky:Boolean,title:String,...Js(),...tf()},"VListSubheader"),ELe=Oa()({name:"VListSubheader",props:MLe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:E}=ny(ji(t,"color"));return Ga(()=>{const d=!!(o.default||t.title);return $t(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:E},t.style]},{default:()=>{var s;return[d&&$t("div",{class:"v-list-subheader__text"},[((s=o.default)==null?void 0:s.call(o))??t.title])]}})}),{}}});const PLe=gi({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Js(),...gd()},"VDivider"),vM=Oa()({name:"VDivider",props:PLe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{textColorClasses:d,textColorStyles:s}=ny(ji(t,"color")),n=nr(()=>{const u={};return t.length&&(u[t.vertical?"height":"width"]=is(t.length)),t.thickness&&(u[t.vertical?"borderRightWidth":"borderTopWidth"]=is(t.thickness)),u});return Ga(()=>{const u=$t("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},E.value,d.value,t.class],style:[n.value,s.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?$t("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[u,$t("div",{class:"v-divider__content"},[f.default()]),u]):u}),{}}}),RLe=gi({items:Array,returnObject:Boolean},"VListChildren"),m_e=Oa()({name:"VListChildren",props:RLe(),setup(t,e){let{slots:o}=e;return l_e(),()=>{var f,E;return((f=o.default)==null?void 0:f.call(o))??((E=t.items)==null?void 0:E.map(d=>{var w,y;let{children:s,props:n,type:u,raw:b}=d;if(u==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??$t(vM,n,null);if(u==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??$t(ELe,n,null);const i={subtitle:o.subtitle?m=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...m,item:b})}:void 0,prepend:o.prepend?m=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...m,item:b})}:void 0,append:o.append?m=>{var a;return(a=o.append)==null?void 0:a.call(o,{...m,item:b})}:void 0,title:o.title?m=>{var a;return(a=o.title)==null?void 0:a.call(o,{...m,item:b})}:void 0},S=Uge.filterProps(n);return s?$t(Uge,qi({value:n==null?void 0:n.value},S),{activator:m=>{let{props:a}=m;const c={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:c}):$t(Xf,c,i)},default:()=>$t(m_e,{items:s,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):$t(Xf,qi(n,{value:t.returnObject?b:n.value}),i)}))}}}),g_e=gi({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:R4}},"list-items");function a4(t,e){const o=N1(e,t.itemTitle,e),f=N1(e,t.itemValue,o),E=N1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?R_(e,["children"]):e:void 0:N1(e,t.itemProps),s={title:o,value:f,...d};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(E)?v_e(t,E):void 0,raw:e}}function v_e(t,e){const o=[];for(const f of e)o.push(a4(t,f));return o}function Tue(t){const e=nr(()=>v_e(t,t.items)),o=nr(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(s=>s!==null)),d.map(s=>t.returnObject&&typeof s=="string"?a4(t,s):e.value.find(n=>t.valueComparator(s,n.value))||a4(t,s))}function E(d){return t.returnObject?d.map(s=>{let{raw:n}=s;return n}):d.map(s=>{let{value:n}=s;return n})}return{items:e,transformIn:f,transformOut:E}}function LLe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function ILe(t,e){const o=N1(e,t.itemType,"item"),f=LLe(e)?e:N1(e,t.itemTitle),E=N1(e,t.itemValue,void 0),d=N1(e,t.itemChildren),s=t.itemProps===!0?R_(e,["children"]):N1(e,t.itemProps),n={title:f,value:E,...s};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?y_e(t,d):void 0,raw:e}}function y_e(t,e){const o=[];for(const f of e)o.push(ILe(t,f));return o}function DLe(t){return{items:nr(()=>y_e(t,t.items))}}const BLe=gi({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":fg(),"onClick:select":fg(),"onUpdate:opened":fg(),..._Le({selectStrategy:"single-leaf",openStrategy:"list"}),...B_(),...Js(),...Q1(),...I_(),...iy(),itemType:{type:String,default:"type"},...g_e(),...Pm(),...tf(),...gd(),...Lx({variant:"text"})},"VList"),Ax=Oa()({name:"VList",props:BLe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=DLe(t),{themeClasses:E}=th(t),{backgroundColorClasses:d,backgroundColorStyles:s}=dg(ji(t,"bgColor")),{borderClasses:n}=$O(t),{densityClasses:u}=Rx(t),{dimensionStyles:b}=D_(t),{elevationClasses:i}=cb(t),{roundedClasses:S}=mg(t),{children:w,open:y,parents:m,select:a}=wLe(t),c=nr(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=ji(t,"activeColor"),p=ji(t,"baseColor"),v=ji(t,"color");l_e(),ab({VListGroup:{activeColor:h,baseColor:p,color:v,expandIcon:ji(t,"expandIcon"),collapseIcon:ji(t,"collapseIcon")},VListItem:{activeClass:ji(t,"activeClass"),activeColor:h,baseColor:p,color:v,density:ji(t,"density"),disabled:ji(t,"disabled"),lines:ji(t,"lines"),nav:ji(t,"nav"),slim:ji(t,"slim"),variant:ji(t,"variant")}});const _=Gi(!1),O=qo();function C(A){_.value=!0}function x(A){_.value=!1}function R(A){var L;!_.value&&!(A.relatedTarget&&((L=O.value)!=null&&L.contains(A.relatedTarget)))&&P()}function M(A){const L=A.target;if(!(!O.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(A.key==="ArrowDown")P("next");else if(A.key==="ArrowUp")P("prev");else if(A.key==="Home")P("first");else if(A.key==="End")P("last");else return;A.preventDefault()}}function T(A){_.value=!0}function P(A){if(O.value)return aZ(O.value,A)}return Ga(()=>$t(t.tag,{ref:O,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},E.value,d.value,n.value,u.value,i.value,c.value,S.value,t.class],style:[s.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[$t(m_e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:P,children:w,parents:m}}});function aae(t,e){return{x:t.x+e.x,y:t.y+e.y}}function zLe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,E=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return aae({x:E,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,E=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return aae({x:E,y:d},e)}return aae({x:e.width/2,y:e.height/2},e)}const b_e={static:$Le,connected:ULe},NLe=gi({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in b_e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function FLe(t,e){const o=qo({}),f=qo();Hu&&$1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var s,n;ia(()=>t.locationStrategy,d),hg(()=>{window.removeEventListener("resize",E),f.value=void 0}),window.addEventListener("resize",E,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(s=t.locationStrategy(e,t,o))==null?void 0:s.updateLocation:f.value=(n=b_e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function E(d){var s;(s=f.value)==null||s.call(f,d)}return{contentStyles:o,updateLocation:f}}function $Le(){}function VLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=uue(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function ULe(t,e,o){(Array.isArray(t.target.value)||Z9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:E,preferredOrigin:d}=lue(()=>{const m=Gse(e.location,t.isRtl.value),a=e.origin==="overlap"?m:e.origin==="auto"?tae(m):Gse(e.origin,t.isRtl.value);return m.side===a.side&&m.align===nae(a).align?{preferredAnchor:age(m),preferredOrigin:age(a)}:{preferredAnchor:m,preferredOrigin:a}}),[s,n,u,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>nr(()=>{const a=parseFloat(e[m]);return isNaN(a)?1/0:a})),i=nr(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const m=e.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let S=!1;const w=new ResizeObserver(()=>{S&&y()});ia([t.target,t.contentEl],(m,a)=>{let[c,h]=m,[p,v]=a;p&&!Array.isArray(p)&&w.unobserve(p),c&&!Array.isArray(c)&&w.observe(c),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),hg(()=>{w.disconnect()});function y(){if(S=!1,requestAnimationFrame(()=>S=!0),!t.target.value||!t.contentEl.value)return;const m=f2e(t.target.value),a=VLe(t.contentEl.value,t.isRtl.value),c=cZ(t.contentEl.value),h=12;c.length||(c.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=c.reduce((P,A)=>{const L=A.getBoundingClientRect(),D=new jT({x:A===document.documentElement?0:L.x,y:A===document.documentElement?0:L.y,width:A.clientWidth,height:A.clientHeight});return P?new jT({x:Math.max(P.left,D.left),y:Math.max(P.top,D.top),width:Math.min(P.right,D.right)-Math.max(P.left,D.left),height:Math.min(P.bottom,D.bottom)-Math.max(P.top,D.top)}):D},void 0);p.x+=h,p.y+=h,p.width-=h*2,p.height-=h*2;let v={anchor:E.value,origin:d.value};function _(P){const A=new jT(a),L=jge(P.anchor,m),D=jge(P.origin,A);let{x:k,y:I}=zLe(L,D);switch(P.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(P.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return A.x+=k,A.y+=I,A.width=Math.min(A.width,u.value),A.height=Math.min(A.height,b.value),{overflows:lge(A,p),x:k,y:I}}let O=0,C=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:P,y:A,overflows:L}=_(v);O+=P,C+=A,a.x+=P,a.y+=A;{const D=sge(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?nae:tae:D==="y"?tae:nae;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(O+=L.x.before,a.x+=L.x.before),L.x.after&&(O-=L.x.after,a.x-=L.x.after),L.y.before&&(C+=L.y.before,a.y+=L.y.before),L.y.after&&(C-=L.y.after,a.y-=L.y.after);{const D=lge(a,p);x.x=p.width-D.x.before-D.x.after,x.y=p.height-D.y.before-D.y.after,O+=D.x.before,a.x+=D.x.before,C+=D.y.before,a.y+=D.y.before}break}const T=sge(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:is(sae(C)),left:t.isRtl.value?void 0:is(sae(O)),right:t.isRtl.value?is(sae(-O)):void 0,minWidth:is(T==="y"?Math.min(s.value,m.width):s.value),maxWidth:is(Qge(ug(x.x,s.value===1/0?0:s.value,u.value))),maxHeight:is(Qge(ug(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return ia(()=>[E.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),Vc(()=>{const m=y();if(!m)return;const{available:a,contentBox:c}=m;c.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function sae(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Qge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let ile=!0;const pZ=[];function jLe(t){!ile||pZ.length?(pZ.push(t),ale()):(ile=!1,t(),ale())}let Hge=-1;function ale(){cancelAnimationFrame(Hge),Hge=requestAnimationFrame(()=>{const t=pZ.shift();t&&t(),pZ.length?ale():ile=!0})}const xH={none:null,close:ZLe,block:qLe,reposition:WLe},QLe=gi({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in xH}},"VOverlay-scroll-strategies");function HLe(t,e){if(!Hu)return;let o;Gp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=oD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=xH[t.scrollStrategy])==null||f.call(xH,e,t,o)}))}),hg(()=>{o==null||o.stop()})}function ZLe(t){function e(o){t.isActive.value=!1}x_e(t.targetEl.value??t.contentEl.value,e)}function qLe(t,e){var s;const o=(s=t.root.value)==null?void 0:s.offsetParent,f=[...new Set([...cZ(t.targetEl.value,e.contained?o:void 0),...cZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),E=window.innerWidth-document.documentElement.offsetWidth,d=(n=>hue(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,u)=>{n.style.setProperty("--v-body-scroll-x",is(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",is(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",is(E)),n.classList.add("v-overlay-scroll-blocked")}),hg(()=>{f.forEach((n,u)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),S=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=S}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function WLe(t,e,o){let f=!1,E=-1,d=-1;function s(n){jLe(()=>{var i,S;const u=performance.now();(S=(i=t.updateLocation).value)==null||S.call(i,n),f=(performance.now()-u)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{x_e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(E),E=requestAnimationFrame(()=>{E=requestAnimationFrame(()=>{s(n)})})):s(n)})})}),hg(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(E)})}function x_e(t,e){const o=[document,...cZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),hg(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const sle=Symbol.for("vuetify:v-menu"),__e=gi({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function w_e(t,e){let o=()=>{};function f(s){o==null||o();const n=Number(s?t.openDelay:t.closeDelay);return new Promise(u=>{o=f9e(n,()=>{e==null||e(s),u(s)})})}function E(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:E,runCloseDelay:d}}const YLe=gi({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...__e()},"VOverlay-activator");function XLe(t,e){let{isActive:o,isTop:f}=e;const E=Xh("useActivator"),d=qo();let s=!1,n=!1,u=!0;const b=nr(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=nr(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:S,runCloseDelay:w}=w_e(t,x=>{x===(t.openOnHover&&s||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(u=!0),o.value=x)}),y=qo(),m={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(s=!0,d.value=x.currentTarget||x.target,S())},onMouseleave:x=>{s=!1,w()},onFocus:x=>{mM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,S())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=nr(()=>{const x={};return i.value&&(x.onClick=m.onClick),t.openOnHover&&(x.onMouseenter=m.onMouseenter,x.onMouseleave=m.onMouseleave),b.value&&(x.onFocus=m.onFocus,x.onBlur=m.onBlur),x}),c=nr(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{s=!0,S()},x.onMouseleave=()=>{s=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,S()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=Kl(sle,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=nr(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{u&&(s=!0,u=!1,S())},x.onMouseleave=()=>{s=!1,w()}),x});ia(f,x=>{x&&(t.openOnHover&&!s&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!s))&&(o.value=!1)}),ia(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const p=Xse();Gp(()=>{p.value&&Vc(()=>{d.value=p.el})});const v=Xse(),_=nr(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:O_e(t.target,E)||d.value),O=nr(()=>Array.isArray(_.value)?void 0:_.value);let C;return ia(()=>!!t.activator,x=>{x&&Hu?(C=oD(),C.run(()=>{GLe(t,E,{activatorEl:d,activatorEvents:a})})):C&&C.stop()},{flush:"post",immediate:!0}),hg(()=>{C==null||C.stop()}),{activatorEl:d,activatorRef:p,target:_,targetEl:O,targetRef:v,activatorEvents:a,contentEvents:c,scrimEvents:h}}function GLe(t,e,o){let{activatorEl:f,activatorEvents:E}=o;ia(()=>t.activator,(u,b)=>{if(b&&u!==b){const i=n(b);i&&s(i)}u&&Vc(()=>d())},{immediate:!0}),ia(()=>t.activatorProps,()=>{d()}),hg(()=>{s()});function d(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&p9e(u,qi(E.value,b))}function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&m9e(u,qi(E.value,b))}function n(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=O_e(u,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function O_e(t,e){var f,E;if(!t)return;let o;if(t==="parent"){let d=(E=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:E.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function KLe(){if(!Hu)return Gi(!1);const{ssr:t}=L4();if(t){const e=Gi(!1);return pg(()=>{e.value=!0}),e}else return Gi(!0)}const S_e=gi({eager:Boolean},"lazy");function k_e(t,e){const o=Gi(!1),f=nr(()=>o.value||t.eager||e.value);ia(e,()=>o.value=!0);function E(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:E}}function IM(){const e=Xh("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const Zge=Symbol.for("vuetify:stack"),BL=Am([]);function JLe(t,e,o){const f=Xh("useStack"),E=!o,d=Kl(Zge,void 0),s=Am({activeChildren:new Set});md(Zge,s);const n=Gi(+e.value);$1(t,()=>{var S;const i=(S=BL.at(-1))==null?void 0:S[1];n.value=i?i+10:+e.value,E&&BL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),hg(()=>{if(E){const w=sl(BL).findIndex(y=>y[0]===f.uid);BL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const u=Gi(!0);E&&Gp(()=>{var S;const i=((S=BL.at(-1))==null?void 0:S[0])===f.uid;setTimeout(()=>u.value=i)});const b=nr(()=>!s.activeChildren.size);return{globalTop:TM(u),localTop:b,stackStyles:nr(()=>({zIndex:n.value}))}}function eIe(t){return{teleportTarget:nr(()=>{const o=t();if(o===!0||!Hu)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let E=f.querySelector(":scope > .v-overlay-container");return E||(E=document.createElement("div"),E.className="v-overlay-container",f.appendChild(E)),E})}}function tIe(){return!0}function T_e(t,e,o){if(!t||C_e(t,o)===!1)return!1;const f=y2e(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const E=(typeof o.value=="object"&&o.value.include||(()=>[]))();return E.push(e),!E.some(d=>d==null?void 0:d.contains(t.target))}function C_e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||tIe)(t)}function nIe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&T_e(t,e,o)&&setTimeout(()=>{C_e(t,o)&&f&&f(t)},0)}function qge(t,e){const o=y2e(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const rIe={mounted(t,e){const o=E=>nIe(E,t,e),f=E=>{t._clickOutside.lastMousedownWasOutside=T_e(E,t,e)};qge(t,E=>{E.addEventListener("click",o,!0),E.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(qge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:E}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",E,!0)}),delete t._clickOutside[e.instance.$.uid])}};function oIe(t){const{modelValue:e,color:o,...f}=t;return $t(C_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&$t("div",qi({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const OD=gi({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...YLe(),...Js(),...I_(),...S_e(),...NLe(),...QLe(),...gd(),...nC()},"VOverlay"),C4=Oa()({name:"VOverlay",directives:{ClickOutside:rIe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...OD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:E}=e;const d=ql(t,"modelValue"),s=nr({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=th(t),{rtlClasses:u,isRtl:b}=n0(),{hasContent:i,onAfterLeave:S}=k_e(t,s),w=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:m,stackStyles:a}=JLe(s,ji(t,"zIndex"),t._disableGlobalStack),{activatorEl:c,activatorRef:h,target:p,targetEl:v,targetRef:_,activatorEvents:O,contentEvents:C,scrimEvents:x}=XLe(t,{isActive:s,isTop:m}),{teleportTarget:R}=eIe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const re=(q=c==null?void 0:c.value)==null?void 0:q.getRootNode();return re instanceof ShadowRoot?re:!1}),{dimensionStyles:M}=D_(t),T=KLe(),{scopeId:P}=IM();ia(()=>t.disabled,K=>{K&&(s.value=!1)});const A=qo(),L=qo(),D=qo(),{contentStyles:k,updateLocation:I}=FLe(t,{isRtl:b,contentEl:D,target:p,isActive:s});HLe(t,{root:A,contentEl:D,targetEl:v,isActive:s,updateLocation:I});function z(K){E("click:outside",K),t.persistent?X():s.value=!1}function $(K){return s.value&&y.value&&(!t.scrim||K.target===L.value)}Hu&&ia(s,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),Em(()=>{Hu&&window.removeEventListener("keydown",Q)});function Q(K){var re,q;K.key==="Escape"&&y.value&&(t.persistent?X():(s.value=!1,(re=D.value)!=null&&re.contains(document.activeElement)&&((q=c.value)==null||q.focus())))}const j=j2e();$1(()=>t.closeOnBack,()=>{IRe(j,K=>{y.value&&s.value?(K(!1),t.persistent?X():s.value=!1):K()})});const U=qo();ia(()=>s.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const re=b2e(A.value);re&&re!==document.scrollingElement&&(U.value=re.scrollTop)}});function X(){t.noClickAnimation||D.value&&U8(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:lZ})}function te(){E("afterEnter")}function Z(){S(),E("afterLeave")}return Ga(()=>{var K;return $t(Ea,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:s.value,targetRef:_,props:qi({ref:h},O.value,t.activatorProps)}),T.value&&i.value&&$t(Rke,{disabled:!R.value,to:R.value},{default:()=>[$t("div",qi({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":s.value,"v-overlay--contained":t.contained},n.value,u.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:is(U.value)},t.style],ref:A},P,f),[$t(oIe,qi({color:w,modelValue:s.value&&!!t.scrim,ref:L},x.value),null),$t(f4,{appear:!0,persisted:!0,transition:t.transition,target:p.value,onAfterEnter:te,onAfterLeave:Z},{default:()=>{var re;return[Kp($t("div",qi({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},C.value,t.contentProps),[(re=o.default)==null?void 0:re.call(o,{isActive:s})]),[[A4,s.value],[M_("click-outside"),{handler:z,closeConditional:$,include:()=>[c.value]}]])]}})])]})])}),{activatorEl:c,scrimEl:L,target:p,animateClick:X,contentEl:D,globalTop:y,localTop:m,updateLocation:I}}}),lae=Symbol("Forwarded refs");function cae(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function Ix(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-menu-${d}`),n=qo(),u=Kl(sle,null),b=Gi(0);md(sle,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var c;!b.value&&!t.persistent&&(a==null||(c=n.value)!=null&&c.contentEl&&!d9e(a,n.value.contentEl))&&(f.value=!1,u==null||u.closeParents())},40)}});async function i(a){var p,v,_;const c=a.relatedTarget,h=a.target;await Vc(),f.value&&c!==h&&((p=n.value)!=null&&p.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=jI(n.value.contentEl)[0])==null||_.focus())}ia(f,a=>{a?(u==null||u.register(),document.addEventListener("focusin",i,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",i))});function S(a){u==null||u.closeParents(a)}function w(a){var c,h,p;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),l2e(jI((c=n.value)==null?void 0:c.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(p=(h=n.value)==null?void 0:h.activatorEl)==null||p.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,u==null||u.closeParents())}function y(a){var h;if(t.disabled)return;const c=(h=n.value)==null?void 0:h.contentEl;c&&f.value?a.key==="ArrowDown"?(a.preventDefault(),aZ(c,"next")):a.key==="ArrowUp"&&(a.preventDefault(),aZ(c,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const m=nr(()=>qi({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":s.value,onKeydown:y},t.activatorProps));return Ga(()=>{const a=C4.filterProps(t);return $t(C4,qi({ref:n,id:s.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":c=>f.value=c,absolute:!0,activatorProps:m.value,"onClick:outside":S,onKeydown:w},E),{activator:o.activator,default:function(){for(var c=arguments.length,h=new Array(c),p=0;p{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),Ix({id:s,ΨopenChildren:b},n)}});const aIe=gi({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Js(),...nC({transition:{component:A2e}})},"VCounter"),Cue=Oa()({name:"VCounter",functional:!0,props:aIe(),setup(t,e){let{slots:o}=e;const f=nr(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ga(()=>$t(f4,{transition:t.transition},{default:()=>[Kp($t("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[A4,t.active]])]})),{}}});const sIe=gi({floating:Boolean,...Js()},"VFieldLabel"),WQ=Oa()({name:"VFieldLabel",props:sIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(wq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),lIe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Tq=gi({appendInnerIcon:Hl,bgColor:String,clearable:Boolean,clearIcon:{type:Hl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Hl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>lIe.includes(t)},"onClick:clear":fg(),"onClick:appendInner":fg(),"onClick:prependInner":fg(),...Js(),...gq(),...Pm(),...gd()},"VField"),Cq=Oa()({name:"VField",inheritAttrs:!1,props:{id:String,...Oq(),...Tq()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{themeClasses:d}=th(t),{loaderClasses:s}=_D(t),{focusClasses:n,isFocused:u,focus:b,blur:i}=cC(t),{InputIcon:S}=e_e(t),{roundedClasses:w}=mg(t),{rtlClasses:y}=n0(),m=nr(()=>t.dirty||t.active),a=nr(()=>!t.singleLine&&!!(t.label||E.label)),c=j1(),h=nr(()=>t.id||`input-${c}`),p=nr(()=>`${h.value}-messages`),v=qo(),_=qo(),O=qo(),C=nr(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=dg(ji(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=ny(nr(()=>t.error||t.disabled?void 0:m.value&&u.value?t.color:t.baseColor));ia(m,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=uue(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:is(U)}:void 0,te=getComputedStyle(k),Z=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,re=parseFloat(Z.getPropertyValue("--v-field-label-scale")),q=Z.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",U8(k,{transform:`translate(${Q}px, ${j}px) scale(${re})`,color:q,...X},{duration:K,easing:lZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const P=nr(()=>({isActive:m,isFocused:u,controlRef:O,blur:i,focus:b}));function A(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ga(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(E["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||E.clear),z=!!(E["append-inner"]||t.appendInnerIcon||I),$=()=>E.label?E.label({...P.value,label:t.label,props:{for:h.value}}):t.label;return $t("div",qi({class:["v-field",{"v-field--active":m.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!C.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,s.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:A},o),[$t("div",{class:"v-field__overlay"},null),$t(vq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:E.loader}),k&&$t("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&$t(S,{key:"prepend-icon",name:"prependInner"},null),(Q=E["prepend-inner"])==null?void 0:Q.call(E,P.value)]),$t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&$t(WQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),$t(WQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=E.default)==null?void 0:j.call(E,{...P.value,props:{id:h.value,class:"v-field__input","aria-describedby":p.value},focus:b,blur:i})]),I&&$t(M2e,{key:"clear"},{default:()=>[Kp($t("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[$t(ef,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[E.clear?E.clear({...P.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):$t(S,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[A4,t.dirty]])]}),z&&$t("div",{key:"append",class:"v-field__append-inner"},[(U=E["append-inner"])==null?void 0:U.call(E,P.value),t.appendInnerIcon&&$t(S,{key:"append-icon",name:"appendInner"},null)]),$t("div",{class:["v-field__outline",M.value],style:T.value},[D&&$t(Ea,null,[$t("div",{class:"v-field__outline__start"},null),a.value&&$t("div",{class:"v-field__outline__notch"},[$t(WQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),$t("div",{class:"v-field__outline__end"},null)]),C.value&&a.value&&$t(WQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:O}}});function Aue(t){const e=Object.keys(Cq.props).filter(o=>!lq(o)&&o!=="class"&&o!=="style");return sue(t,e)}const cIe=["color","file","time","date","datetime-local","week","month"],Aq=gi({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...uC(),...Tq()},"VTextField"),Ep=Oa()({name:"VTextField",directives:{Intersect:bue},inheritAttrs:!1,props:Aq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=cC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),S=nr(()=>["plain","underlined"].includes(t.variant));function w(C,x){var R,M;!t.autofocus||!C||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=qo(),m=qo(),a=qo(),c=nr(()=>cIe.includes(t.type)||t.persistentPlaceholder||s.value||t.active);function h(){var C;a.value!==document.activeElement&&((C=a.value)==null||C.focus()),s.value||n()}function p(C){f("mousedown:control",C),C.target!==a.value&&(h(),C.preventDefault())}function v(C){h(),f("click:control",C)}function _(C){C.stopPropagation(),h(),Vc(()=>{d.value=null,cue(t["onClick:clear"],C)})}function O(C){var R;const x=C.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];Vc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ga(()=>{const C=!!(E.counter||t.counter!==!1&&t.counter!=null),x=!!(C||E.details),[R,M]=yD(o),{modelValue:T,...P}=sb.filterProps(t),A=Aue(t);return $t(sb,qi({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":S.value},t.class],style:t.style},R,P,{centerAffix:!S.value,focused:s.value}),{...E,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return $t(Cq,qi({ref:m,onMousedown:p,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},A,{id:D.value,active:c.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:s.value,error:$.value===!1}),{...E,default:Q=>{let{props:{class:j,...U}}=Q;const X=Kp($t("input",qi({ref:a,value:d.value,onInput:O,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:u},U,M),null),[[M_("intersect"),{handler:w},null,{once:!0}]]);return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[$t("span",{class:"v-text-field__prefix__text"},[t.prefix])]),E.default?$t("div",{class:j,"data-no-activator":""},[E.default(),X]):EO(X,{class:j}),t.suffix&&$t("span",{class:"v-text-field__suffix"},[$t("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return $t(Ea,null,[(D=E.details)==null?void 0:D.call(E,L),C&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},y,m,a)}});const uIe=gi({renderless:Boolean,...Js()},"VVirtualScrollItem"),fIe=Oa()({name:"VVirtualScrollItem",inheritAttrs:!1,props:uIe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{resizeRef:d,contentRect:s}=T4(void 0,"border");ia(()=>{var n;return(n=s.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ga(()=>{var n,u;return t.renderless?$t(Ea,null,[(n=E.default)==null?void 0:n.call(E,{itemRef:d})]):$t("div",qi({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(u=E.default)==null?void 0:u.call(E)])})}}),dIe=-1,hIe=1,uae=100,pIe=gi({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function mIe(t,e){const o=L4(),f=Gi(0);Gp(()=>{f.value=parseFloat(t.itemHeight||0)});const E=Gi(0),d=Gi(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),s=Gi(0),n=Gi(0),u=qo(),b=qo();let i=0;const{resizeRef:S,contentRect:w}=T4();Gp(()=>{S.value=u.value});const y=nr(()=>{var Q;return u.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),m=nr(()=>!!(u.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length});const h=Gi(0);let p=-1;function v(Q){return a[Q]||f.value}const _=l9e(()=>{const Q=performance.now();c[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)c[U]=(c[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),O=ia(m,Q=>{Q&&(O(),i=b.value.offsetTop,_.immediate(),k(),~p&&Vc(()=>{Hu&&window.requestAnimationFrame(()=>{z(p),p=-1})}))});hg(()=>{_.clear()});function C(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=ug(Q,0,e.value.length-1),c[Q]||0}function R(Q){return gIe(c,Q)}let M=0,T=0,P=0;ia(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function A(){if(!u.value||!b.value)return;const Q=u.value.scrollTop,j=performance.now();j-P>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,P=j,k()}function L(){!u.value||!b.value||(T=0,P=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!u.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-uae),X=ug(R(U),0,e.value.length),te=Q+y.value+uae,Z=ug(R(te)+1,X+1,e.value.length);if((j!==dIe||Xd.value)){const K=x(E.value)-x(X),re=x(Z)-x(d.value);Math.max(K,re)>uae?(E.value=X,d.value=Z):(X<=0&&(E.value=X),Z>=e.value.length&&(d.value=Z))}s.value=x(E.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!u.value||Q&&!j?p=Q:u.value.scrollTop=j}const $=nr(()=>e.value.slice(E.value,d.value).map((Q,j)=>({raw:Q,index:j+E.value})));return ia(e,()=>{a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:u,markerRef:b,computedItems:$,paddingTop:s,paddingBottom:n,scrollToIndex:z,handleScroll:A,handleScrollend:L,handleItemResize:C}}function gIe(t,e){let o=t.length-1,f=0,E=0,d=null,s=-1;if(t[o]>1,d=t[E],d>e)o=E-1;else if(d[]},renderless:Boolean,...pIe(),...Js(),...I_()},"VVirtualScroll"),Mue=Oa()({name:"VVirtualScroll",props:vIe(),setup(t,e){let{slots:o}=e;const f=Xh("VVirtualScroll"),{dimensionStyles:E}=D_(t),{containerRef:d,markerRef:s,handleScroll:n,handleScrollend:u,handleItemResize:b,scrollToIndex:i,paddingTop:S,paddingBottom:w,computedItems:y}=mIe(t,ji(t,"items"));return $1(()=>t.renderless,()=>{function m(){var h,p;const c=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[c]("scroll",n,{passive:!0}),document[c]("scrollend",u)):((h=d.value)==null||h[c]("scroll",n,{passive:!0}),(p=d.value)==null||p[c]("scrollend",u))}pg(()=>{d.value=b2e(f.vnode.el,!0),m(!0)}),hg(m)}),Ga(()=>{const m=y.value.map(a=>$t(fIe,{key:a.index,renderless:t.renderless,"onUpdate:height":c=>b(a.index,c)},{default:c=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...c})}}));return t.renderless?$t(Ea,null,[$t("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:is(S.value)}},null),m,$t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:is(w.value)}},null)]):$t("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:u,style:[E.value,t.style]},[$t("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:is(S.value),paddingBottom:is(w.value)}},[m])])}),{scrollToIndex:i}}});function Eue(t,e){const o=Gi(!1);let f;function E(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const u=ia(o,()=>{u(),n()})}else n()})}async function s(n){var i,S;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const u=(S=t.value)==null?void 0:S.$el;if(!u)return;(n.key==="Home"||n.key==="End")&&u.scrollTo({top:n.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await d();const b=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=u.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=u.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:E,onListKeydown:s}}const Pue=gi({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Hl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...g_e({itemChildren:!1})},"Select"),yIe=gi({...Pue(),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:{component:gue}})},"VSelect"),DM=Oa()({name:"VSelect",props:yIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),E=qo(),d=qo(),s=qo(),n=ql(t,"menu"),u=nr({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:S}=Tue(t),w=ql(t,"modelValue",[],$=>i($===null?[null]:Pp($)),$=>{const Q=S($);return t.multiple?Q:Q[0]??null}),y=nr(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),m=Sq(),a=nr(()=>w.value.map($=>$.value)),c=Gi(!1),h=nr(()=>u.value?t.closeText:t.openText);let p="",v;const _=nr(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),O=nr(()=>t.hideNoData&&!_.value.length||t.readonly||(m==null?void 0:m.isReadonly.value)),C=nr(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=qo(),{onListScroll:R,onListKeydown:M}=Eue(x,E);function T($){t.openOnClear&&(u.value=!0)}function P(){O.value||(u.value=!u.value)}function A($){var te,Z;if(!$.key||t.readonly||m!=null&&m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(u.value=!0),["Escape","Tab"].includes($.key)&&(u.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((Z=x.value)==null||Z.focus("last"));const Q=1e3;function j(K){const re=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return re&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(p=""),p+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(p));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);Hu&&window.requestAnimationFrame(()=>{var re;K>=0&&((re=s.value)==null||re.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],Vc(()=>{u.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(u.value=!1)}function k(){var $;c.value&&(($=E.value)==null||$.focus())}function I($){c.value=!0}function z($){if($==null)w.value=[];else if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else E.value&&(E.value.value="")}return ia(u,()=>{if(!t.hideSelected&&u.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));Hu&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=s.value)==null||Q.scrollToIndex($))})}}),ia(()=>t.items,($,Q)=>{u.value||c.value&&!Q.length&&$.length&&(u.value=!0)}),Ga(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=Ep.filterProps(t),X=j||!c.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return $t(Ep,qi({ref:E},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:c.value,"onUpdate:focused":te=>c.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":P,onBlur:D,onKeydown:A,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:d,modelValue:u.value,"onUpdate:modelValue":te=>u.value=te,activator:"parent",contentClass:"v-select__content",disabled:O.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},C.value),{default:()=>[Q&&$t(Ax,qi({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,Z,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((Z=o["no-data"])==null?void 0:Z.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Mue,{ref:s,renderless:!0,items:_.value},{default:re=>{var pe;let{item:q,index:Y,itemRef:ee}=re;const me=qi(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((pe=o.item)==null?void 0:pe.call(o,{item:q,index:Y,props:me}))??$t(Xf,qi(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&$t(DO,{image:q.props.prependAvatar},null),q.props.prependIcon&&$t(jl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,Z)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const re={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?cq($?o.chip({item:te,index:Z,props:re}):o.selection({item:te,index:Z})):void 0;if(!(q&&!Y))return $t("div",{key:te.value,class:"v-select__selection"},[$?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},re),null):Y??$t("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Zt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),Rue=gi({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function xIe(t,e,o){var n;const f=[],E=(o==null?void 0:o.default)??bIe,d=o!=null&&o.filterKeys?Pp(o.filterKeys):!1,s=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let u=0;u0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const c=d||Object.keys(i);for(const h of c){const p=N1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(p,e,b):E(p,e,b),y!==-1&&y!==!1)v?S[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=E(b,e,b),y!==-1&&y!==!1&&(w.title=y);const m=Object.keys(w).length,a=Object.keys(S).length;if(!m&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==s&&!m||(o==null?void 0:o.filterMode)==="intersection"&&(a!==s||!m))continue}f.push({index:u,matches:{...w,...S}})}return f}function Lue(t,e,o,f){const E=qo([]),d=qo(new Map),s=nr(()=>f!=null&&f.transform?Va(e).map(u=>[u,f.transform(u)]):Va(e));Gp(()=>{const u=typeof o=="function"?o():Va(o),b=typeof u!="string"&&typeof u!="number"?"":String(u),i=xIe(s.value,b,{customKeyFilter:{...t.customKeyFilter,...Va(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),S=Va(e),w=[],y=new Map;i.forEach(m=>{let{index:a,matches:c}=m;const h=S[a];w.push(h),y.set(h.value,c)}),E.value=w,d.value=y});function n(u){return d.value.get(u.value)}return{filteredItems:E,filteredMatches:d,getMatches:n}}function _Ie(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),$t("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),$t("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const wIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Rue({filterKeys:["title"]}),...Pue(),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:!1})},"VAutocomplete"),Mq=Oa()({name:"VAutocomplete",props:wIe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),E=qo(),d=Gi(!1),s=Gi(!0),n=Gi(!1),u=qo(),b=qo(),i=ql(t,"menu"),S=nr({get:()=>i.value,set:me=>{var pe;i.value&&!me&&((pe=u.value)!=null&&pe.ΨopenChildren)||(i.value=me)}}),w=Gi(-1),y=nr(()=>{var me;return(me=E.value)==null?void 0:me.color}),m=nr(()=>S.value?t.closeText:t.openText),{items:a,transformIn:c,transformOut:h}=Tue(t),{textColorClasses:p,textColorStyles:v}=ny(y),_=ql(t,"search",""),O=ql(t,"modelValue",[],me=>c(me===null?[null]:Pp(me)),me=>{const pe=h(me);return t.multiple?pe:pe[0]??null}),C=nr(()=>typeof t.counterValue=="function"?t.counterValue(O.value):typeof t.counterValue=="number"?t.counterValue:O.value.length),x=Sq(),{filteredItems:R,getMatches:M}=Lue(t,a,()=>s.value?"":_.value),T=nr(()=>t.hideSelected?R.value.filter(me=>!O.value.some(pe=>pe.value===me.value)):R.value),P=nr(()=>!!(t.chips||o.chip)),A=nr(()=>P.value||!!o.selection),L=nr(()=>O.value.map(me=>me.props.value)),D=nr(()=>{var pe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((pe=T.value[0])==null?void 0:pe.title))&&T.value.length>0&&!s.value&&!n.value}),k=nr(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=qo(),{onListScroll:z,onListKeydown:$}=Eue(I,E);function Q(me){t.openOnClear&&(S.value=!0),_.value=""}function j(){k.value||(S.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),S.value=!S.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const pe=E.value.selectionStart,se=O.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(S.value=!0),["Escape"].includes(me.key)&&(S.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!O.value.some(ye=>{let{value:ve}=ye;return ve===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&A.value&&O.value.length>0&&!_.value)return ee(O.value[0],!1);if(~w.value){const ye=w.value;ee(O.value[w.value],!1),w.value=ye>=se-1?se-2:ye}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&pe>0)return;const ye=w.value>-1?w.value-1:se-1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ye=w.value+1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange(0,0))}}}function te(me){if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const pe=a.value.find(se=>se.title===me.target.value);pe&&ee(pe)}}function Z(){var me;d.value&&(s.value=!0,(me=E.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function re(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!A.value)&&(O.value=[])}const Y=Gi(!1);function ee(me){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=O.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=pe??!~se;if(~se){const ce=ae?[...O.value,me]:[...O.value];ce.splice(se,1),O.value=ce}else ae&&(O.value=[...O.value,me]);t.clearOnSelect&&(_.value="")}else{const se=pe!==!1;O.value=se?[me]:[],_.value=se&&!A.value?me.title:"",Vc(()=>{S.value=!1,s.value=!0})}}return ia(d,(me,pe)=>{var se;me!==pe&&(me?(Y.value=!0,_.value=t.multiple||A.value?"":String(((se=O.value.at(-1))==null?void 0:se.props.title)??""),s.value=!0,Vc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(O.value=[]),S.value=!1,O.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),ia(_,me=>{!d.value||Y.value||(me&&(S.value=!0),s.value=!me)}),ia(S,()=>{if(!t.hideSelected&&S.value&&O.value.length){const me=T.value.findIndex(pe=>O.value.some(se=>pe.value===se.value));Hu&&window.requestAnimationFrame(()=>{var pe;me>=0&&((pe=b.value)==null||pe.scrollToIndex(me))})}}),ia(()=>t.items,(me,pe)=>{S.value||d.value&&!pe.length&&me.length&&(S.value=!0)}),Ga(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),pe=O.value.length>0,se=Ep.filterProps(t);return $t(Ep,qi({ref:E},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:O.externalValue,counterValue:C.value,dirty:pe,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":S.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!A.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:pe?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:u,modelValue:S.value,"onUpdate:modelValue":ae=>S.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:Z},t.menuProps),{default:()=>[me&&$t(Ax,qi({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:re,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Mue,{ref:b,renderless:!0,items:T.value},{default:ye=>{var Pe;let{item:ve,index:_e,itemRef:we}=ye;const Te=qi(ve.props,{ref:we,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ve,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ve,index:_e,props:Te}))??$t(Xf,qi(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:ve.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ve.props.prependAvatar&&$t(DO,{image:ve.props.prependAvatar},null),ve.props.prependIcon&&$t(jl,{icon:ve.props.prependIcon},null)])},title:()=>{var Ie,ze;return s.value?ve.title:_Ie(ve.title,(Ie=M(ve))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),O.value.map((ae,ce)=>{function de(we){we.stopPropagation(),we.preventDefault(),ee(ae,!1)}const ye={"onClick:close":de,onKeydown(we){we.key!=="Enter"&&we.key!==" "||(we.preventDefault(),we.stopPropagation(),de(we))},onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ve=P.value?!!o.chip:!!o.selection,_e=ve?cq(P.value?o.chip({item:ae,index:ce,props:ye}):o.selection({item:ae,index:ce})):void 0;if(!(ve&&!_e))return $t("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",p.value]],style:ce===w.value?v.value:{}},[P.value?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ye),null):_e??$t("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),{scopeId:d}=IM(),s=qo();function n(i){var y,m;const S=i.relatedTarget,w=i.target;if(S!==w&&((y=s.value)!=null&&y.contentEl)&&((m=s.value)!=null&&m.globalTop)&&![document,s.value.contentEl].includes(w)&&!s.value.contentEl.contains(w)){const a=jI(s.value.contentEl);if(!a.length)return;const c=a[0],h=a[a.length-1];S===c?h.focus():c.focus()}}Hu&&ia(()=>E.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function u(){var i;(i=s.value)!=null&&i.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return ia(E,async i=>{var S;i||(await Vc(),(S=s.value.activatorEl)==null||S.focus({preventScroll:!0}))}),Ga(()=>{const i=C4.filterProps(t),S=qi({"aria-haspopup":"dialog","aria-expanded":String(E.value)},t.activatorProps),w=qi({tabindex:-1},t.contentProps);return $t(C4,qi({ref:s,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:E.value,"onUpdate:modelValue":y=>E.value=y,"aria-modal":"true",activatorProps:S,contentProps:w,role:"dialog",onAfterEnter:u,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,m=new Array(y),a=0;a{var c;return[(c=f.default)==null?void 0:c.call(f,...m)]}})}})}),Ix({},s)}});const SD=Oa()({name:"VCardActions",props:Js(),setup(t,e){let{slots:o}=e;return ab({VBtn:{slim:!0,variant:"text"}}),Ga(()=>{var f;return $t("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),SIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardSubtitle"),A_e=Oa()({name:"VCardSubtitle",props:SIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),I4=uq("v-card-title"),kIe=gi({appendAvatar:String,appendIcon:Hl,prependAvatar:String,prependIcon:Hl,subtitle:[String,Number],title:[String,Number],...Js(),...Q1()},"VCardItem"),TIe=Oa()({name:"VCardItem",props:kIe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),E=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),s=!!(d||o.append),n=!!(t.title!=null||o.title),u=!!(t.subtitle!=null||o.subtitle);return $t("div",{class:["v-card-item",t.class],style:t.style},[E&&$t("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?$t(ef,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),$t("div",{class:"v-card-item__content"},[n&&$t(I4,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),u&&$t(A_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),s&&$t("div",{key:"append",class:"v-card-item__append"},[o.append?$t(ef,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),CIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardText"),dC=Oa()({name:"VCardText",props:CIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),AIe=gi({appendAvatar:String,appendIcon:Hl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...B_(),...Js(),...Q1(),...I_(),...iy(),...gq(),...xD(),...yq(),...Pm(),..._q(),...tf(),...gd(),...Lx({variant:"elevated"})},"VCard"),ub=Oa()({name:"VCard",directives:{Ripple:lC},props:AIe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{colorClasses:s,colorStyles:n,variantClasses:u}=iC(t),{densityClasses:b}=Rx(t),{dimensionStyles:i}=D_(t),{elevationClasses:S}=cb(t),{loaderClasses:w}=_D(t),{locationStyles:y}=mq(t),{positionClasses:m}=bq(t),{roundedClasses:a}=mg(t),c=xq(t,o),h=nr(()=>t.link!==!1&&c.isLink.value),p=nr(()=>!t.disabled&&t.link!==!1&&(t.link||c.isClickable.value));return Ga(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),O=!!(f.subtitle||t.subtitle!=null),C=_||O,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=C||R||x,P=!!(f.text||t.text!=null);return Kp($t(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":p.value},E.value,d.value,s.value,b.value,S.value,w.value,m.value,a.value,u.value,t.class],style:[n.value,i.value,y.value,t.style],href:c.href.value,onClick:p.value&&c.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var A;return[M&&$t("div",{key:"image",class:"v-card__image"},[f.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):$t(rC,{key:"image-img",cover:!0,src:t.image},null)]),$t(vq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&$t(TIe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),P&&$t(dC,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(A=f.default)==null?void 0:A.call(f),f.actions&&$t(SD,null,{default:f.actions}),oC(p.value,"v-card")]}}),[[M_("ripple"),p.value&&t.ripple]])}),{}}});const Iue=Symbol.for("vuetify:v-slider");function lle(t,e,o){const f=o==="vertical",E=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(E.top+E.height/2):d.clientX-(E.left+E.width/2)}function MIe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const M_e=gi({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...Pm(),...iy({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),E_e=t=>{const e=nr(()=>parseFloat(t.min)),o=nr(()=>parseFloat(t.max)),f=nr(()=>+t.step>0?parseFloat(t.step):0),E=nr(()=>Math.max(ege(f.value),ege(e.value)));function d(s){if(s=parseFloat(s),f.value<=0)return s;const n=ug(s,e.value,o.value),u=e.value%f.value,b=Math.round((n-u)/f.value)*f.value+u;return parseFloat(Math.min(b,o.value).toFixed(E.value))}return{min:e,max:o,step:f,decimals:E,roundValue:d}},P_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:E,onSliderEnd:d,getActiveThumb:s}=t;const{isRtl:n}=n0(),u=ji(e,"reverse"),b=nr(()=>e.direction==="vertical"),i=nr(()=>b.value!==u.value),{min:S,max:w,step:y,decimals:m,roundValue:a}=o,c=nr(()=>parseInt(e.thumbSize,10)),h=nr(()=>parseInt(e.tickSize,10)),p=nr(()=>parseInt(e.trackSize,10)),v=nr(()=>(w.value-S.value)/y.value),_=ji(e,"disabled"),O=nr(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),C=nr(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=nr(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Gi(!1),M=Gi(0),T=qo(),P=qo();function A(re){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:pe,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=MIe(re,me);let ce=Math.min(Math.max((ae-pe-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(S.value+ce*(w.value-S.value))}const L=re=>{d({value:A(re)}),R.value=!1,M.value=0},D=re=>{P.value=s(re),P.value&&(P.value.focus(),R.value=!0,P.value.contains(re.target)?M.value=lle(re,P.value,e.direction):(M.value=0,E({value:A(re)})),f({value:A(re)}))},k={passive:!0,capture:!0};function I(re){E({value:A(re)})}function z(re){re.stopPropagation(),re.preventDefault(),L(re),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(re){var q;L(re),window.removeEventListener("touchmove",I,k),(q=re.target)==null||q.removeEventListener("touchend",$)}function Q(re){var q;D(re),window.addEventListener("touchmove",I,k),(q=re.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(re){re.preventDefault(),D(re),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=re=>{const q=(re-S.value)/(w.value-S.value)*100;return ug(isNaN(q)?0:q,0,100)},X=ji(e,"showTicks"),te=nr(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(re=>({value:re,position:U(re),label:re.toString()})):Object.keys(e.ticks).map(re=>({value:parseFloat(re),position:U(parseFloat(re)),label:e.ticks[re]})):v.value!==1/0?u4(v.value+1).map(re=>{const q=S.value+re*y.value;return{value:q,position:U(q)}}):[]:[]),Z=nr(()=>te.value.some(re=>{let{label:q}=re;return!!q})),K={activeThumbRef:P,color:ji(e,"color"),decimals:m,disabled:_,direction:ji(e,"direction"),elevation:ji(e,"elevation"),hasLabels:Z,isReversed:u,indexFromEnd:i,min:S,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:A,position:U,readonly:ji(e,"readonly"),rounded:ji(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:c,thumbColor:O,thumbLabel:ji(e,"thumbLabel"),ticks:ji(e,"ticks"),tickSize:h,trackColor:C,trackContainerRef:T,trackFillColor:x,trackSize:p,vertical:b};return md(Iue,K),K},EIe=gi({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Js()},"VSliderThumb"),cle=Oa()({name:"VSliderThumb",directives:{Ripple:lC},props:EIe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=Kl(Iue),{isRtl:d,rtlClasses:s}=n0();if(!E)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:u,disabled:b,thumbSize:i,thumbLabel:S,direction:w,isReversed:y,vertical:m,readonly:a,elevation:c,mousePressed:h,decimals:p,indexFromEnd:v}=E,_=nr(()=>b.value?void 0:c.value),{elevationClasses:O}=cb(_),{textColorClasses:C,textColorStyles:x}=ny(n),{pageup:R,pagedown:M,end:T,home:P,left:A,right:L,down:D,up:k}=Yse,I=[R,M,T,P,A,L,D,k],z=nr(()=>u.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=u.value||.1,te=(t.max-t.min)/X;if([A,L,D,k].includes(j.key)){const K=(m.value?[d.value?A:L,y.value?D:k]:v.value!==d.value?[A,k]:[L,k]).includes(j.key)?1:-1,re=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[re]}else if(j.key===P)U=t.min;else if(j.key===T)U=t.max;else{const Z=j.key===M?1:-1;U=U-Z*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ga(()=>{const j=is(v.value?100-t.position:t.position,"%");return $t("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,s.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":is(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[$t("div",{class:["v-slider-thumb__surface",C.value,O.value],style:{...x.value}},null),Kp($t("div",{class:["v-slider-thumb__ripple",C.value],style:x.value},null),[[M_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),$t(C2e,{origin:"bottom center"},{default:()=>{var U;return[Kp($t("div",{class:"v-slider-thumb__label-container"},[$t("div",{class:["v-slider-thumb__label"]},[$t("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(u.value?p.value:1)])])]),[[A4,S.value&&t.focused||S.value==="always"]])]}})])}),{}}});const PIe=gi({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Js()},"VSliderTrack"),R_e=Oa()({name:"VSliderTrack",props:PIe(),emits:{},setup(t,e){let{slots:o}=e;const f=Kl(Iue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:E,parsedTicks:d,rounded:s,showTicks:n,tickSize:u,trackColor:b,trackFillColor:i,trackSize:S,vertical:w,min:y,max:m,indexFromEnd:a}=f,{roundedClasses:c}=mg(s),{backgroundColorClasses:h,backgroundColorStyles:p}=dg(i),{backgroundColorClasses:v,backgroundColorStyles:_}=dg(b),O=nr(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),C=nr(()=>w.value?"height":"width"),x=nr(()=>({[O.value]:"0%",[C.value]:"100%"})),R=nr(()=>t.stop-t.start),M=nr(()=>({[O.value]:is(t.start,"%"),[C.value]:is(R.value,"%")})),T=nr(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((A,L)=>{var k;const D=A.value!==y.value&&A.value!==m.value?is(A.position,"%"):void 0;return $t("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=t.start&&A.position<=t.stop,"v-slider-track__tick--first":A.value===y.value,"v-slider-track__tick--last":A.value===m.value}],style:{[O.value]:D}},[(A.label||o["tick-label"])&&$t("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:A,index:L}))??A.label])])}):[]);return Ga(()=>$t("div",{class:["v-slider-track",c.value,t.class],style:[{"--v-slider-track-size":is(S.value),"--v-slider-tick-size":is(u.value)},t.style]},[$t("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!E.value||!i.value}],style:{...x.value,..._.value}},null),$t("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...p.value}},null),n.value&&$t("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),RIe=gi({...Oq(),...M_e(),...uC(),modelValue:{type:[Number,String],default:0}},"VSlider"),Due=Oa()({name:"VSlider",props:RIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),{rtlClasses:d}=n0(),s=E_e(t),n=ql(t,"modelValue",void 0,C=>s.roundValue(C??s.min.value)),{min:u,max:b,mousePressed:i,roundValue:S,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:m,position:a,hasLabels:c,readonly:h}=P_e({props:t,steps:s,onSliderStart:()=>{f("start",n.value)},onSliderEnd:C=>{let{value:x}=C;const R=S(x);n.value=R,f("end",R)},onSliderMove:C=>{let{value:x}=C;return n.value=S(x)},getActiveThumb:()=>{var C;return(C=E.value)==null?void 0:C.$el}}),{isFocused:p,focus:v,blur:_}=cC(t),O=nr(()=>a(n.value));return Ga(()=>{const C=sb.filterProps(t),x=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||c.value,"v-slider--focused":p.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},C,{focused:p.value}),{...o,prepend:x?R=>{var M,T;return $t(Ea,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?$t(wq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return $t("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[$t("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),$t(R_e,{ref:m,start:0,stop:O.value},{"tick-label":o["tick-label"]}),$t(cle,{ref:E,"aria-describedby":T.value,focused:p.value,min:u.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":P=>n.value=P,position:O.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function LIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),$t("span",{class:"v-combobox__mask"},[t.substr(e,o)]),$t("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const IIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Rue({filterKeys:["title"]}),...Pue({hideNoData:!0,returnObject:!0}),...R_(Aq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...nC({transition:!1})},"VCombobox"),Bue=Oa()({name:"VCombobox",props:IIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var pe;let{emit:o,slots:f}=e;const{t:E}=ry(),d=qo(),s=Gi(!1),n=Gi(!0),u=Gi(!1),b=qo(),i=qo(),S=ql(t,"menu"),w=nr({get:()=>S.value,set:se=>{var ae;S.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(S.value=se)}}),y=Gi(-1);let m=!1;const a=nr(()=>{var se;return(se=d.value)==null?void 0:se.color}),c=nr(()=>w.value?t.closeText:t.openText),{items:h,transformIn:p,transformOut:v}=Tue(t),{textColorClasses:_,textColorStyles:O}=ny(a),C=ql(t,"modelValue",[],se=>p(Pp(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=Sq(),R=nr(()=>!!(t.chips||f.chip)),M=nr(()=>R.value||!!f.selection),T=Gi(!t.multiple&&!M.value?((pe=C.value[0])==null?void 0:pe.title)??"":""),P=nr({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(C.value=[a4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(a4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),A=nr(()=>typeof t.counterValue=="function"?t.counterValue(C.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?C.value.length:P.value.length);ia(T,se=>{m?Vc(()=>m=!1):s.value&&!w.value&&(w.value=!0),o("update:search",se)}),ia(C,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=Lue(t,h,()=>n.value?"":P.value),k=nr(()=>t.hideSelected?L.value.filter(se=>!C.value.some(ae=>ae.value===se.value)):L.value),I=nr(()=>C.value.map(se=>se.value)),z=nr(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&P.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!u.value}),$=nr(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=qo(),{onListScroll:j,onListKeydown:U}=Eue(Q,d);function X(se){m=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function Z(se){$.value||(s.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(s9e(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=C.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!C.value.some(ye=>{let{value:ve}=ye;return ve===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&P.value&&(q(a4(t,P.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&C.value.length>0&&!P.value)return q(C.value[0],!1);if(~y.value){const ye=y.value;q(C.value[y.value],!1),y.value=ye>=ce-1?ce-2:ye}else se.key==="Backspace"&&!P.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ye=y.value>-1?y.value-1:ce-1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(P.value.length,P.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ye=y.value+1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(0,0))}}}function re(){var se;s.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=C.value.findIndex(ye=>t.valueComparator(ye.value,se.value)),de=ae??!~ce;if(~ce){const ye=de?[...C.value,se]:[...C.value];ye.splice(ce,1),C.value=ye}else de&&(C.value=[...C.value,se]);t.clearOnSelect&&(P.value="")}else{const ce=ae!==!1;C.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",Vc(()=>{w.value=!1,n.value=!0})}}function Y(se){s.value=!0,setTimeout(()=>{u.value=!0})}function ee(se){u.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(C.value=[])}return ia(s,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,P.value)){if(t.multiple){q(a4(t,P.value));return}if(!M.value)return;C.value.some(ce=>{let{title:de}=ce;return de===P.value})?T.value="":q(a4(t,P.value))}}),ia(w,()=>{if(!t.hideSelected&&w.value&&C.value.length){const se=k.value.findIndex(ae=>C.value.some(ce=>t.valueComparator(ce.value,ae.value)));Hu&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),ia(()=>t.items,(se,ae)=>{w.value||s.value&&!ae.length&&se.length&&(w.value=!0)}),Ga(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=C.value.length>0,ce=Ep.filterProps(t);return $t(Ep,qi({ref:d},ce,{modelValue:P.value,"onUpdate:modelValue":[de=>P.value=de,me],focused:s.value,"onUpdate:focused":de=>s.value=de,validationValue:C.externalValue,counterValue:A.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>$t(Ea,null,[$t(BO,qi({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:re},t.menuProps),{default:()=>[se&&$t(Ax,qi({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ye,ve;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ye=f["no-data"])==null?void 0:ye.call(f))??$t(Xf,{title:E(t.noDataText)},null)),$t(Mue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:we,index:Te,itemRef:Pe}=_e;const Ie=qi(we.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(we,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:we,index:Te,props:Ie}))??$t(Xf,qi(Ie,{role:"option"}),{prepend:De=>{let{isSelected:Qe}=De;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:we.value,modelValue:Qe,ripple:!1,tabindex:"-1"},null):void 0,we.props.prependAvatar&&$t(DO,{image:we.props.prependAvatar},null),we.props.prependIcon&&$t(jl,{icon:we.props.prependIcon},null)])},title:()=>{var De,Qe;return n.value?we.title:LIe(we.title,(De=D(we))==null?void 0:De.title,((Qe=P.value)==null?void 0:Qe.length)??0)}})}}),(ve=f["append-item"])==null?void 0:ve.call(f)]}})]}),C.value.map((de,ye)=>{function ve(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ve,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ve(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},we=R.value?!!f.chip:!!f.selection,Te=we?cq(R.value?f.chip({item:de,index:ye,props:_e}):f.selection({item:de,index:ye})):void 0;if(!(we&&!Te))return $t("div",{key:de.value,class:["v-combobox__selection",ye===y.value&&["v-combobox__selection--selected",_.value]],style:ye===y.value?O.value:{}},[R.value?f.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??$t("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ye0&&f.push(E),f}function BIe(t,e,o){const f=o??Eq[e.slice(-2).toUpperCase()]??0,E=new Date(t);for(;E.getDay()!==f;)E.setDate(E.getDate()-1);return E}function zIe(t,e){const o=new Date(t),f=((Eq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function L_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function I_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function NIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const FIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function D_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(FIe.test(t))return NIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const Wge=new Date(2e3,0,2);function $Ie(t,e){const o=e??Eq[t.slice(-2).toUpperCase()]??0;return u4(7).map(f=>{const E=new Date(Wge);return E.setDate(Wge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(E)})}function VIe(t,e,o,f){const E=D_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(E,e,o);let s={};switch(e){case"fullDate":s={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=E.getDate(),u=new Intl.DateTimeFormat(o,{month:"long"}).format(E);return`${n} ${u}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(E.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:s=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,s).format(E)}function UIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),E=nge(String(o.getMonth()+1),2,"0"),d=nge(String(o.getDate()),2,"0");return`${f}-${E}-${d}`}function jIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function QIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function HIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function ZIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function qIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function WIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function YIe(t){return t.getFullYear()}function XIe(t){return t.getMonth()}function GIe(t){return t.getDate()}function KIe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function JIe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function eDe(t){return t.getHours()}function tDe(t){return t.getMinutes()}function nDe(t){return new Date(t.getFullYear(),0,1)}function rDe(t){return new Date(t.getFullYear(),11,31)}function oDe(t,e){return mZ(t,e[0])&&sDe(t,e[1])}function iDe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function mZ(t,e){return t.getTime()>e.getTime()}function aDe(t,e){return mZ(ule(t),ule(e))}function sDe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const wDe=gi({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),B_e=Symbol.for("vuetify:datatable:expanded");function ODe(t){const e=ji(t,"expandOnClick"),o=ql(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,u){const b=new Set(o.value);u?b.add(n.value):b.delete(n.value),o.value=b}function E(n){return o.value.has(n.value)}function d(n){f(n,!E(n))}const s={expand:f,expanded:o,expandOnClick:e,isExpanded:E,toggleExpand:d};return md(B_e,s),s}function z_e(){const t=Kl(B_e);if(!t)throw new Error("foo");return t}const SDe=gi({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),N_e=Symbol.for("vuetify:data-table-group");function kDe(t){return{groupBy:ql(t,"groupBy")}}function TDe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,E=qo(new Set),d=nr(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function s(i){return E.value.has(i.id)}function n(i){const S=new Set(E.value);s(i)?S.delete(i.id):S.add(i.id),E.value=S}function u(i){function S(w){const y=[];for(const m of w.items)"type"in m&&m.type==="group"?y.push(...S(m)):y.push(m);return y}return S({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:E,groupBy:o,extractRows:u,isGroupOpen:s};return md(N_e,b),b}function F_e(){const t=Kl(N_e);if(!t)throw new Error("Missing group!");return t}function CDe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const E=XT(f.raw,e);o.has(E)||o.set(E,[]),o.get(E).push(f)}return o}function $_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const E=CDe(t,e[0]),d=[],s=e.slice(1);return E.forEach((n,u)=>{const b=e[0],i=`${f}_${b}_${u}`;d.push({depth:o,id:i,key:b,value:u,items:s.length?$_e(n,s,o+1,i):n,type:"group"})}),d}function V_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...V_e(f.items,e))):o.push(f);return o}function ADe(t,e,o){return{flatItems:nr(()=>{if(!e.value.length)return t.value;const E=$_e(t.value,e.value.map(d=>d.key));return V_e(E,o.value)})}}function MDe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:E,search:d}=t;const s=Xh("VDataTable"),n=nr(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:E.value,search:d.value}));let u=null;ia(n,()=>{R4(u,n.value)||(u&&u.search!==n.value.search&&(e.value=1),s.emit("update:options",n.value),u=n.value)},{deep:!0,immediate:!0})}const EDe=gi({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),U_e=Symbol.for("vuetify:data-table-pagination");function PDe(t){const e=ql(t,"page",void 0,f=>+(f??1)),o=ql(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function RDe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,E=nr(()=>o.value===-1?0:o.value*(e.value-1)),d=nr(()=>o.value===-1?f.value:Math.min(f.value,E.value+o.value)),s=nr(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));Gp(()=>{e.value>s.value&&(e.value=s.value)});function n(w){o.value=w,e.value=1}function u(){e.value=ug(e.value+1,1,s.value)}function b(){e.value=ug(e.value-1,1,s.value)}function i(w){e.value=ug(w,1,s.value)}const S={page:e,itemsPerPage:o,startIndex:E,stopIndex:d,pageCount:s,itemsLength:f,nextPage:u,prevPage:b,setPage:i,setItemsPerPage:n};return md(U_e,S),S}function LDe(){const t=Kl(U_e);if(!t)throw new Error("Missing pagination!");return t}function IDe(t){const e=Xh("usePaginatedItems"),{items:o,startIndex:f,stopIndex:E,itemsPerPage:d}=t,s=nr(()=>d.value<=0?o.value:o.value.slice(f.value,E.value));return ia(s,n=>{e.emit("update:currentItems",n)}),{paginatedItems:s}}const DDe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},j_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return j_e.select({items:o,value:e,selected:f})}},Q_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return Q_e.select({items:o,value:e,selected:f})}},BDe=gi({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:R4}},"DataTable-select"),H_e=Symbol.for("vuetify:data-table-selection");function zDe(t,e){let{allItems:o,currentPage:f}=e;const E=ql(t,"modelValue",t.modelValue,h=>new Set(Pp(h).map(p=>{var v;return((v=o.value.find(_=>t.valueComparator(p,_.value)))==null?void 0:v.value)??p})),h=>[...h.values()]),d=nr(()=>o.value.filter(h=>h.selectable)),s=nr(()=>f.value.filter(h=>h.selectable)),n=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return DDe;case"all":return Q_e;case"page":default:return j_e}});function u(h){return Pp(h).every(p=>E.value.has(p.value))}function b(h){return Pp(h).some(p=>E.value.has(p.value))}function i(h,p){const v=n.value.select({items:h,value:p,selected:new Set(E.value)});E.value=v}function S(h){i([h],!u([h]))}function w(h){const p=n.value.selectAll({value:h,allItems:d.value,currentPage:s.value,selected:new Set(E.value)});E.value=p}const y=nr(()=>E.value.size>0),m=nr(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:s.value});return!!h.length&&u(h)}),a=nr(()=>n.value.showSelectAll),c={toggleSelect:S,select:i,selectAll:w,isSelected:u,isSomeSelected:b,someSelected:y,allSelected:m,showSelectAll:a};return md(H_e,c),c}function Pq(){const t=Kl(H_e);if(!t)throw new Error("Missing selection!");return t}const NDe=gi({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Z_e=Symbol.for("vuetify:data-table-sort");function FDe(t){const e=ql(t,"sortBy"),o=ji(t,"mustSort"),f=ji(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function $De(t){const{sortBy:e,mustSort:o,multiSort:f,page:E}=t,d=u=>{if(u.key==null)return;let b=e.value.map(S=>({...S}))??[];const i=b.find(S=>S.key===u.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(S=>S.key!==u.key):i.order="desc":f.value?b=[...b,{key:u.key,order:"asc"}]:b=[{key:u.key,order:"asc"}],e.value=b,E&&(E.value=1)};function s(u){return!!e.value.find(b=>b.key===u.key)}const n={sortBy:e,toggleSort:d,isSorted:s};return md(Z_e,n),n}function q_e(){const t=Kl(Z_e);if(!t)throw new Error("Missing sort!");return t}function VDe(t,e,o,f){const E=ry();return{sortedItems:nr(()=>{var s,n;return o.value.length?UDe(e.value,o.value,E.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(s=f==null?void 0:f.sortFunctions)==null?void 0:s.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function UDe(t,e,o,f){const E=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(s=>[s,f!=null&&f.transform?f.transform(s):s]).sort((s,n)=>{var u,b;for(let i=0;ip!=null?p.toString().toLocaleLowerCase():p),m!==a)return QQ(m)&&QQ(a)?0:QQ(m)?-1:QQ(a)?1:!isNaN(m)&&!isNaN(a)?Number(m)-Number(a):E.compare(m,a)}}return 0}).map(s=>{let[n]=s;return n})}function jDe(){const t=qo([]);gve(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const QDe=gi({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Hl,default:"$first"},prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},lastIcon:{type:Hl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...B_(),...Js(),...Q1(),...iy(),...Pm(),...aC(),...tf({tag:"nav"}),...gd(),...Lx({variant:"text"})},"VPagination"),Gge=Oa()({name:"VPagination",props:QDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=ql(t,"modelValue"),{t:d,n:s}=ry(),{isRtl:n}=n0(),{themeClasses:u}=th(t),{width:b}=L4(),i=Gi(-1);ab(void 0,{scoped:!0});const{resizeRef:S}=T4(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],P=M.querySelector(".v-pagination__list > *");if(!P)return;const A=T.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;i.value=a(A,L)}),w=nr(()=>parseInt(t.length,10)),y=nr(()=>parseInt(t.start,10)),m=nr(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const c=nr(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[E.value];if(w.value<=m.value)return u4(w.value,y.value);const R=m.value%2===0,M=R?m.value/2:Math.floor(m.value/2),T=R?M:M+1,P=w.value-M;if(T-E.value>=0)return[...u4(Math.max(1,m.value-1),y.value),t.ellipsis,w.value];if(E.value-P>=(R?1:0)){const A=m.value-1,L=w.value-A+y.value;return[y.value,t.ellipsis,...u4(A,L)]}else{const A=Math.max(1,m.value-3),L=A===1?E.value:E.value-Math.ceil(A/2)+y.value;return[y.value,t.ellipsis,...u4(A,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),E.value=M,T&&f(T,M)}const{refs:p,updateRef:v}=jDe();ab({VPaginationBtn:{color:ji(t,"color"),border:ji(t,"border"),density:ji(t,"density"),size:ji(t,"size"),variant:ji(t,"variant"),rounded:ji(t,"rounded"),elevation:ji(t,"elevation")}});const _=nr(()=>c.value.map((R,M)=>{const T=P=>v(P,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const P=R===E.value;return{isActive:P,key:R,page:s(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:P?t.activeColor:t.color,"aria-current":P,"aria-label":d(P?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:A=>h(A,R)}}}})),O=nr(()=>{const R=!!t.disabled||E.value<=y.value,M=!!t.disabled||E.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,E.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,E.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function C(){var M;const R=E.value-y.value;(M=p.value[R])==null||M.$el.focus()}function x(R){R.key===Yse.left&&!t.disabled&&E.value>+t.start?(E.value=E.value-1,Vc(C)):R.key===Yse.right&&!t.disabled&&E.value$t(t.tag,{ref:S,class:["v-pagination",u.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[$t("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&$t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(O.value.first):$t(es,qi({_as:"VPaginationBtn"},O.value.first),null)]),$t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(O.value.prev):$t(es,qi({_as:"VPaginationBtn"},O.value.prev),null)]),_.value.map((R,M)=>$t("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):$t(es,qi({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),$t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(O.value.next):$t(es,qi({_as:"VPaginationBtn"},O.value.next),null)]),t.showFirstLastPage&&$t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(O.value.last):$t(es,qi({_as:"VPaginationBtn"},O.value.last),null)])])]})),{}}}),W_e=gi({prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},firstIcon:{type:Hl,default:"$first"},lastIcon:{type:Hl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Kge=Oa()({name:"VDataTableFooter",props:W_e(),setup(t,e){let{slots:o}=e;const{t:f}=ry(),{page:E,pageCount:d,startIndex:s,stopIndex:n,itemsLength:u,itemsPerPage:b,setItemsPerPage:i}=LDe(),S=nr(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ga(()=>{var y;const w=Gge.filterProps(t);return $t("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),$t("div",{class:"v-data-table-footer__items-per-page"},[$t("span",null,[f(t.itemsPerPageText)]),$t(DM,{items:S.value,modelValue:b.value,"onUpdate:modelValue":m=>i(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),$t("div",{class:"v-data-table-footer__info"},[$t("div",null,[f(t.pageText,u.value?s.value+1:0,n.value,u.value)])]),$t("div",{class:"v-data-table-footer__pagination"},[$t(Gge,qi({modelValue:E.value,"onUpdate:modelValue":m=>E.value=m,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),gZ=U9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return $t(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:is(t.height),width:is(t.width),maxWidth:is(t.maxWidth),left:is(t.fixedOffset||null)}},{default:()=>{var E;return[(E=o.default)==null?void 0:E.call(o)]}})}),HDe=gi({headers:Array},"DataTable-header"),Y_e=Symbol.for("vuetify:data-table-headers"),X_e={title:"",sortable:!1},ZDe={...X_e,width:48};function qDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let E=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),E=!0;break}E||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let E=0;Ee.shift()}}function fle(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)fle(o,e);return e}function G_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&G_e(o.children,e);return e}function WDe(t){if(t.key){if(t.key==="data-table-group")return X_e;if(["data-table-expand","data-table-select"].includes(t.key))return ZDe}}function zue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>zue(o,e+1))):e}function YDe(t){let e=!1;function o(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(s&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return s;if(d.children){d.fixedOffset=s;for(const n of d.children)s=f(n,s)}else d.fixed&&(d.fixedOffset=s,s+=parseFloat(d.width||"0")||0);return s}let E=0;for(const d of t)E=f(d,E)}function XDe(t,e){const o=[];let f=0;const E=qDe(t);for(;E.size()>0;){let s=E.count();const n=[];let u=1;for(;s>0;){const{element:b,priority:i}=E.dequeue(),S=e-f-zue(b);if(n.push({...b,rowspan:S??1,colspan:b.children?fle(b).length:1}),b.children)for(const w of b.children){const y=i%1+u/Math.pow(10,f+2);E.enqueue(w,f+S+y)}u+=1,s-=1}f+=1,o.push(n)}return{columns:t.map(s=>fle(s)).flat(),headers:o}}function K_e(t){const e=[];for(const o of t){const f={...WDe(o),...o},E=f.key??(typeof f.value=="string"?f.value:null),d=f.value??E??null,s={...f,key:E,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?K_e(f.children):void 0};e.push(s)}return e}function GDe(t,e){const o=qo([]),f=qo([]),E=qo({}),d=qo({}),s=qo({});Gp(()=>{var a,c,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(p=>({key:p,title:A_(p)}))).slice(),i=G_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(c=e==null?void 0:e.showSelect)!=null&&c.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const S=K_e(b);YDe(S);const w=Math.max(...S.map(p=>zue(p)))+1,y=XDe(S,w);o.value=y.headers,f.value=y.columns;const m=y.headers.flat(1);for(const p of m)p.key&&(p.sortable&&(p.sort&&(E.value[p.key]=p.sort),p.sortRaw&&(d.value[p.key]=p.sortRaw)),p.filter&&(s.value[p.key]=p.filter))});const n={headers:o,columns:f,sortFunctions:E,sortRawFunctions:d,filterFunctions:s};return md(Y_e,n),n}function Rq(){const t=Kl(Y_e);if(!t)throw new Error("Missing headers!");return t}const J_e=gi({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Hl,default:"$sortAsc"},sortDescIcon:{type:Hl,default:"$sortDesc"},headerProps:{type:Object},...wD(),...gq()},"VDataTableHeaders"),Jge=Oa()({name:"VDataTableHeaders",props:J_e(),setup(t,e){let{slots:o}=e;const{t:f}=ry(),{toggleSort:E,sortBy:d,isSorted:s}=q_e(),{someSelected:n,allSelected:u,selectAll:b,showSelectAll:i}=Pq(),{columns:S,headers:w}=Rq(),{loaderClasses:y}=_D(t);function m(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?is(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:c,backgroundColorStyles:h}=dg(t,"color"),{displayClasses:p,mobile:v}=L4(t),_=nr(()=>({headers:w.value,columns:S.value,toggleSort:E,isSorted:s,sortBy:d.value,someSelected:n.value,allSelected:u.value,selectAll:b,getSortIcon:a})),O=nr(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},p.value,y.value]),C=R=>{let{column:M,x:T,y:P}=R;const A=M.key==="data-table-select"||M.key==="data-table-expand",L=qi(t.headerProps??{},M.headerProps??{});return $t(gZ,qi({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":s(M),"v-data-table__th--fixed":M.fixed},...O.value],style:{width:is(M.width),minWidth:is(M.minWidth),maxWidth:is(M.maxWidth),...m(M,P)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>E(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:A},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:s,toggleSort:E,sortBy:d.value,someSelected:n.value,allSelected:u.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&$t(RM,{modelValue:u.value,indeterminate:n.value&&!u.value,"onUpdate:modelValue":b},null)):$t("div",{class:"v-data-table-header__content"},[$t("span",null,[M.title]),M.sortable&&!t.disableSort&&$t(jl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&s(M)&&$t("div",{key:"badge",class:["v-data-table-header__sort-badge",...c.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=qi(t.headerProps??{}??{}),M=nr(()=>S.value.filter(P=>(P==null?void 0:P.sortable)&&!t.disableSort)),T=nr(()=>{if(S.value.find(A=>A.key==="data-table-select")!=null)return u.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return $t(gZ,qi({tag:"th",class:[...O.value],colspan:w.value.length+1},R),{default:()=>[$t("div",{class:"v-data-table-header__content"},[$t(DM,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!u.value)},{...o,chip:P=>{var A;return $t(LM,{onClick:(A=P.item.raw)!=null&&A.sortable?()=>E(P.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[P.item.title,$t(jl,{class:["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(P.item.raw),size:"small"},null)]})}})])]})};Ga(()=>v.value?$t("tr",null,[$t(x,null,null)]):$t(Ea,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>$t("tr",null,[R.map((T,P)=>$t(C,{column:T,x:P,y:M},null))])),t.loading&&$t("tr",{class:"v-data-table-progress"},[$t("th",{colspan:S.value.length},[$t(vq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),KDe=gi({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),JDe=Oa()({name:"VDataTableGroupHeaderRow",props:KDe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:E,extractRows:d}=F_e(),{isSelected:s,isSomeSelected:n,select:u}=Pq(),{columns:b}=Rq(),i=nr(()=>d([t.item]));return()=>$t("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(S=>{var w,y;if(S.key==="data-table-group"){const m=f(t.item)?"$expand":"$next",a=()=>E(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:m,onClick:a}}))??$t(gZ,{class:"v-data-table-group-header-row__column"},{default:()=>[$t(es,{size:"small",variant:"text",icon:m,onClick:a},null),$t("span",null,[t.item.value]),$t("span",null,[Ua("("),i.value.length,Ua(")")])]})}if(S.key==="data-table-select"){const m=s(i.value),a=n(i.value)&&!m,c=h=>u(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:m,indeterminate:a,"onUpdate:modelValue":c}}))??$t("td",null,[$t(RM,{modelValue:m,indeterminate:a,"onUpdate:modelValue":c},null)])}return $t("td",null,null)})])}}),eBe=gi({index:Number,item:Object,cellProps:[Object,Function],onClick:fg(),onContextmenu:fg(),onDblclick:fg(),...wD()},"VDataTableRow"),tBe=Oa()({name:"VDataTableRow",props:eBe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:E}=L4(t,"v-data-table__tr"),{isSelected:d,toggleSelect:s,someSelected:n,allSelected:u,selectAll:b}=Pq(),{isExpanded:i,toggleExpand:S}=z_e(),{toggleSort:w,sortBy:y,isSorted:m}=q_e(),{columns:a}=Rq();Ga(()=>$t("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((c,h)=>{const p=t.item,v=`item.${c.key}`,_=`header.${c.key}`,O={index:t.index,item:p.raw,internalItem:p,value:XT(p.columns,c.key),column:c,isSelected:d,toggleSelect:s,isExpanded:i,toggleExpand:S},C={column:c,selectAll:b,isSorted:m,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:u.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value,column:c}):t.cellProps,R=typeof c.cellProps=="function"?c.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value}):c.cellProps;return $t(gZ,qi({align:c.align,class:{"v-data-table__td--expanded-row":c.key==="data-table-expand","v-data-table__td--select-row":c.key==="data-table-select"},fixed:c.fixed,fixedOffset:c.fixedOffset,lastFixed:c.lastFixed,maxWidth:E.value?void 0:c.maxWidth,noPadding:c.key==="data-table-select"||c.key==="data-table-expand",nowrap:c.nowrap,width:E.value?void 0:c.width},x,R),{default:()=>{var T,P,A,L,D;if(o[v]&&!E.value)return(T=o[v])==null?void 0:T.call(o,O);if(c.key==="data-table-select")return((P=o["item.data-table-select"])==null?void 0:P.call(o,O))??$t(RM,{disabled:!p.selectable,modelValue:d([p]),onClick:RH(()=>s(p),["stop"])},null);if(c.key==="data-table-expand")return((A=o["item.data-table-expand"])==null?void 0:A.call(o,O))??$t(es,{icon:i(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:RH(()=>S(p),["stop"])},null);const M=Dl(O.value);return E.value?$t(Ea,null,[$t("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,C))??c.title]),$t("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,O))??M])]):M}})})]))}}),ewe=gi({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...wD()},"VDataTableRows"),e0e=Oa()({name:"VDataTableRows",inheritAttrs:!1,props:ewe(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:E}=Rq(),{expandOnClick:d,toggleExpand:s,isExpanded:n}=z_e(),{isSelected:u,toggleSelect:b}=Pq(),{toggleGroup:i,isGroupOpen:S}=F_e(),{t:w}=ry(),{mobile:y}=L4(t);return Ga(()=>{var m,a;return t.loading&&(!t.items.length||f.loading)?$t("tr",{class:"v-data-table-rows-loading",key:"loading"},[$t("td",{colspan:E.value.length},[((m=f.loading)==null?void 0:m.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?$t("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[$t("td",{colspan:E.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):$t(Ea,null,[t.items.map((c,h)=>{var _;if(c.type==="group"){const O={index:h,item:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b,toggleGroup:i,isGroupOpen:S};return f["group-header"]?f["group-header"](O):$t(JDe,qi({key:`group-header_${c.id}`,item:c},bge(o,":group-header",()=>O)),f)}const p={index:h,item:c.raw,internalItem:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b},v={...p,props:qi({key:`item_${c.key??c.index}`,onClick:d.value?()=>{s(c)}:void 0,index:h,item:c,cellProps:t.cellProps,mobile:y.value},bge(o,":row",()=>p),typeof t.rowProps=="function"?t.rowProps({item:p.item,index:p.index,internalItem:p.internalItem}):t.rowProps)};return $t(Ea,{key:v.props.key},[f.item?f.item(v):$t(tBe,v.props,f),n(c)&&((_=f["expanded-row"])==null?void 0:_.call(f,p))])})])}),{}}});const twe=gi({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Js(),...Q1(),...tf(),...gd()},"VTable"),t0e=Oa()({name:"VTable",props:twe(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:E}=th(t),{densityClasses:d}=Rx(t);return Ga(()=>$t(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},E.value,d.value,t.class],style:t.style},{default:()=>{var s,n,u;return[(s=o.top)==null?void 0:s.call(o),o.default?$t("div",{class:"v-table__wrapper",style:{height:is(t.height)}},[$t("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(u=o.bottom)==null?void 0:u.call(o)]}})),{}}}),nBe=gi({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function rBe(t,e,o,f){const E=t.returnObject?e:N1(e,t.itemValue),d=N1(e,t.itemSelectable,!0),s=f.reduce((n,u)=>(u.key!=null&&(n[u.key]=N1(e,u.value)),n),{});return{type:"item",key:t.returnObject?N1(e,t.itemValue):E,index:o,value:E,selectable:d,columns:s,raw:e}}function oBe(t,e,o){return e.map((f,E)=>rBe(t,f,E,o))}function iBe(t,e){return{items:nr(()=>oBe(t,t.items,e.value))}}const aBe=gi({...ewe(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...wDe(),...SDe(),...HDe(),...nBe(),...BDe(),...NDe(),...J_e(),...twe()},"DataTable"),sBe=gi({...EDe(),...aBe(),...Rue(),...W_e()},"VDataTable"),Lq=Oa()({name:"VDataTable",props:sBe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:E}=kDe(t),{sortBy:d,multiSort:s,mustSort:n}=FDe(t),{page:u,itemsPerPage:b}=PDe(t),{disableSort:i}=CM(t),{columns:S,headers:w,sortFunctions:y,sortRawFunctions:m,filterFunctions:a}=GDe(t,{groupBy:E,showSelect:ji(t,"showSelect"),showExpand:ji(t,"showExpand")}),{items:c}=iBe(t,S),h=ji(t,"search"),{filteredItems:p}=Lue(t,c,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=$De({sortBy:d,multiSort:s,mustSort:n,page:u}),{sortByWithGroups:_,opened:O,extractRows:C,isGroupOpen:x,toggleGroup:R}=TDe({groupBy:E,sortBy:d,disableSort:i}),{sortedItems:M}=VDe(t,p,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:m}),{flatItems:T}=ADe(M,E,O),P=nr(()=>T.value.length),{startIndex:A,stopIndex:L,pageCount:D,setItemsPerPage:k}=RDe({page:u,itemsPerPage:b,itemsLength:P}),{paginatedItems:I}=IDe({items:T,startIndex:A,stopIndex:L,itemsPerPage:b}),z=nr(()=>C(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=zDe(t,{allItems:c,currentPage:z}),{isExpanded:Z,toggleExpand:K}=ODe(t);MDe({page:u,itemsPerPage:b,sortBy:d,groupBy:E,search:h}),ab({VDataTableRows:{hideNoData:ji(t,"hideNoData"),noDataText:ji(t,"noDataText"),loading:ji(t,"loading"),loadingText:ji(t,"loadingText")}});const re=nr(()=>({page:u.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:Z,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:S.value,headers:w.value}));return Ga(()=>{const q=Kge.filterProps(t),Y=Jge.filterProps(t),ee=e0e.filterProps(t),me=t0e.filterProps(t);return $t(t0e,qi({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var pe;return(pe=f.top)==null?void 0:pe.call(f,re.value)},default:()=>{var pe,se,ae,ce,de,ye;return f.default?f.default(re.value):$t(Ea,null,[(pe=f.colgroup)==null?void 0:pe.call(f,re.value),!t.hideDefaultHeader&&$t("thead",{key:"thead"},[$t(Jge,Y,f)]),(se=f.thead)==null?void 0:se.call(f,re.value),!t.hideDefaultBody&&$t("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,re.value),f.body?f.body(re.value):$t(e0e,qi(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,re.value)]),(de=f.tbody)==null?void 0:de.call(f,re.value),(ye=f.tfoot)==null?void 0:ye.call(f,re.value)])},bottom:()=>f.bottom?f.bottom(re.value):!t.hideDefaultFooter&&$t(Ea,null,[$t(vM,null,null),$t(Kge,q,{prepend:f["footer.prepend"]})])})}),{}}});const lBe=gi({fluid:{type:Boolean,default:!1},...Js(),...tf()},"VContainer"),yM=Oa()({name:"VContainer",props:lBe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=n0();return Ga(()=>$t(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),nwe=(()=>kq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),rwe=(()=>kq.reduce((t,e)=>{const o="offset"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),owe=(()=>kq.reduce((t,e)=>{const o="order"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),n0e={col:Object.keys(nwe),offset:Object.keys(rwe),order:Object.keys(owe)};function cBe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const E=e.replace(t,"");f+=`-${E}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const uBe=["auto","start","end","center","baseline","stretch"],fBe=gi({cols:{type:[Boolean,String,Number],default:!1},...nwe,offset:{type:[String,Number],default:null},...rwe,order:{type:[String,Number],default:null},...owe,alignSelf:{type:String,default:null,validator:t=>uBe.includes(t)},...Js(),...tf()},"VCol"),QT=Oa()({name:"VCol",props:fBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in n0e)n0e[d].forEach(n=>{const u=t[n],b=cBe(d,n,u);b&&E.push(b)});const s=E.some(n=>n.startsWith("v-col-"));return E.push({"v-col":!s||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),E});return()=>{var E;return U1(t.tag,{class:[f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),Nue=["start","end","center"],iwe=["space-between","space-around","space-evenly"];function Fue(t,e){return kq.reduce((o,f)=>{const E=t+A_(f);return o[E]=e(),o},{})}const dBe=[...Nue,"baseline","stretch"],awe=t=>dBe.includes(t),swe=Fue("align",()=>({type:String,default:null,validator:awe})),hBe=[...Nue,...iwe],lwe=t=>hBe.includes(t),cwe=Fue("justify",()=>({type:String,default:null,validator:lwe})),pBe=[...Nue,...iwe,"stretch"],uwe=t=>pBe.includes(t),fwe=Fue("alignContent",()=>({type:String,default:null,validator:uwe})),r0e={align:Object.keys(swe),justify:Object.keys(cwe),alignContent:Object.keys(fwe)},mBe={align:"align",justify:"justify",alignContent:"align-content"};function gBe(t,e,o){let f=mBe[t];if(o!=null){if(e){const E=e.replace(t,"");f+=`-${E}`}return f+=`-${o}`,f.toLowerCase()}}const vBe=gi({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:awe},...swe,justify:{type:String,default:null,validator:lwe},...cwe,alignContent:{type:String,default:null,validator:uwe},...fwe,...Js(),...tf()},"VRow"),Iq=Oa()({name:"VRow",props:vBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in r0e)r0e[d].forEach(s=>{const n=t[s],u=gBe(d,s,n);u&&E.push(u)});return E.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),E});return()=>{var E;return U1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),BM=uq("v-spacer","div","VSpacer");const XI=Symbol.for("vuetify:v-expansion-panel"),dwe=gi({...Js(),...S_e()},"VExpansionPanelText"),vZ=Oa()({name:"VExpansionPanelText",props:dwe(),setup(t,e){let{slots:o}=e;const f=Kl(XI);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:E,onAfterLeave:d}=k_e(t,f.isSelected);return Ga(()=>$t(vue,{onAfterLeave:d},{default:()=>{var s;return[Kp($t("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&E.value&&$t("div",{class:"v-expansion-panel-text__wrapper"},[(s=o.default)==null?void 0:s.call(o)])]),[[A4,f.isSelected.value]])]}})),{}}}),hwe=gi({color:String,expandIcon:{type:Hl,default:"$expand"},collapseIcon:{type:Hl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Js()},"VExpansionPanelTitle"),yZ=Oa()({name:"VExpansionPanelTitle",directives:{Ripple:lC},props:hwe(),setup(t,e){let{slots:o}=e;const f=Kl(XI);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"color"),s=nr(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=nr(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ga(()=>{var u;return Kp($t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},E.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[$t("span",{class:"v-expansion-panel-title__overlay"},null),(u=o.default)==null?void 0:u.call(o,s.value),!t.hideActions&&$t(ef,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[$t("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,s.value))??$t(jl,null,null)])]}})]),[[M_("ripple"),t.ripple]])}),{}}}),pwe=gi({title:String,text:String,bgColor:String,...iy(),...xue(),...Pm(),...tf(),...hwe(),...dwe()},"VExpansionPanel"),mwe=Oa()({name:"VExpansionPanel",props:pwe(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=_ue(t,XI),{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"bgColor"),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),u=nr(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=nr(()=>f.group.items.value.reduce((w,y,m)=>(f.group.selected.value.includes(y.id)&&w.push(m),w),[])),i=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),S=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return md(XI,f),Ga(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),m=yZ.filterProps(t),a=vZ.filterProps(t);return $t(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":S.value,"v-expansion-panel--disabled":u.value},n.value,E.value,t.class],style:[d.value,t.style]},{default:()=>[$t("div",{class:["v-expansion-panel__shadow",...s.value]},null),$t(ef,{defaults:{VExpansionPanelTitle:{...m},VExpansionPanelText:{...a}}},{default:()=>{var c;return[y&&$t(yZ,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&$t(vZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(c=o.default)==null?void 0:c.call(o)]}})]})}),{groupItem:f}}}),yBe=["default","accordion","inset","popout"],bBe=gi({flat:Boolean,...dq(),...sue(pwe(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gd(),...Js(),...tf(),variant:{type:String,default:"default",validator:t=>yBe.includes(t)}},"VExpansionPanels"),gwe=Oa()({name:"VExpansionPanels",props:bBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:E}=hq(t,XI),{themeClasses:d}=th(t),s=nr(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ab({VExpansionPanel:{bgColor:ji(t,"bgColor"),collapseIcon:ji(t,"collapseIcon"),color:ji(t,"color"),eager:ji(t,"eager"),elevation:ji(t,"elevation"),expandIcon:ji(t,"expandIcon"),focusable:ji(t,"focusable"),hideActions:ji(t,"hideActions"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),rounded:ji(t,"rounded"),static:ji(t,"static")}}),Ga(()=>$t(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,s.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:E,next:f})]}})),{next:f,prev:E}}});const xBe=gi({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},...uC({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Pp(t).every(e=>e!=null&&typeof e=="object")},...Tq({clearable:!0})},"VFileInput"),$ue=Oa()({name:"VFileInput",inheritAttrs:!1,props:xBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=ry(),s=ql(t,"modelValue",t.modelValue,M=>Pp(M),M=>t.multiple||Array.isArray(t.modelValue)?M:M[0]??null),{isFocused:n,focus:u,blur:b}=cC(t),i=nr(()=>typeof t.showSize!="boolean"?t.showSize:void 0),S=nr(()=>(s.value??[]).reduce((M,T)=>{let{size:P=0}=T;return M+P},0)),w=nr(()=>rge(S.value,i.value)),y=nr(()=>(s.value??[]).map(M=>{const{name:T="",size:P=0}=M;return t.showSize?`${T} (${rge(P,i.value)})`:T})),m=nr(()=>{var T;const M=((T=s.value)==null?void 0:T.length)??0;return t.showSize?d(t.counterSizeString,M,w.value):d(t.counterString,M)}),a=qo(),c=qo(),h=qo(),p=nr(()=>n.value||t.active),v=nr(()=>["plain","underlined"].includes(t.variant));function _(){var M;h.value!==document.activeElement&&((M=h.value)==null||M.focus()),n.value||u()}function O(M){var T;(T=h.value)==null||T.click()}function C(M){f("mousedown:control",M)}function x(M){var T;(T=h.value)==null||T.click(),f("click:control",M)}function R(M){M.stopPropagation(),_(),Vc(()=>{s.value=[],cue(t["onClick:clear"],M)})}return ia(s,M=>{(!Array.isArray(M)||!M.length)&&h.value&&(h.value.value="")}),Ga(()=>{const M=!!(E.counter||t.counter),T=!!(M||E.details),[P,A]=yD(o),{modelValue:L,...D}=sb.filterProps(t),k=Aue(t);return $t(sb,qi({ref:a,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":v.value},t.class],style:t.style,"onClick:prepend":O},P,D,{centerAffix:!v.value,focused:n.value}),{...E,default:I=>{let{id:z,isDisabled:$,isDirty:Q,isReadonly:j,isValid:U}=I;return $t(Cq,qi({ref:c,"prepend-icon":t.prependIcon,onMousedown:C,onClick:x,"onClick:clear":R,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},k,{id:z.value,active:p.value||Q.value,dirty:Q.value||t.dirty,disabled:$.value,focused:n.value,error:U.value===!1}),{...E,default:X=>{var K;let{props:{class:te,...Z}}=X;return $t(Ea,null,[$t("input",qi({ref:h,type:"file",readonly:j.value,disabled:$.value,multiple:t.multiple,name:t.name,onClick:re=>{re.stopPropagation(),j.value&&re.preventDefault(),_()},onChange:re=>{if(!re.target)return;const q=re.target;s.value=[...q.files??[]]},onFocus:_,onBlur:b},Z,A),null),$t("div",{class:te},[!!((K=s.value)!=null&&K.length)&&!t.hideInput&&(E.selection?E.selection({fileNames:y.value,totalBytes:S.value,totalBytesReadable:w.value}):t.chips?y.value.map(re=>$t(LM,{key:re,size:"small",text:re},null)):y.value.join(", "))])])}})},details:T?I=>{var z,$;return $t(Ea,null,[(z=E.details)==null?void 0:z.call(E,I),M&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:!!(($=s.value)!=null&&$.length),value:m.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},a,c,h)}});const _Be=gi({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...B_(),...Js(),...iy(),...pue(),...Pm(),...tf({tag:"footer"}),...gd()},"VFooter"),wBe=Oa()({name:"VFooter",props:_Be(),setup(t,e){let{slots:o}=e;const f=qo(),E=Gi(),{themeClasses:d}=th(t),{backgroundColorClasses:s,backgroundColorStyles:n}=dg(ji(t,"color")),{borderClasses:u}=$O(t),{elevationClasses:b}=cb(t),{roundedClasses:i}=mg(t),S=Gi(32),{resizeRef:w}=T4(m=>{m.length&&(S.value=m[0].target.clientHeight)}),y=nr(()=>t.height==="auto"?S.value:parseInt(t.height,10));return $1(()=>t.app,()=>{const m=mue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:nr(()=>"bottom"),layoutSize:y,elementSize:nr(()=>t.height==="auto"?void 0:y.value),active:nr(()=>t.app),absolute:ji(t,"absolute")});Gp(()=>{f.value=m.layoutItemStyles.value,E.value=m.layoutIsReady})}),Ga(()=>$t(t.tag,{ref:w,class:["v-footer",d.value,s.value,u.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:is(t.height)},t.style]},o)),t.app?E.value:{}}}),OBe=gi({...Js(),...KRe()},"VForm"),SBe=Oa()({name:"VForm",props:OBe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=JRe(t),d=qo();function s(u){u.preventDefault(),E.reset()}function n(u){const b=u,i=E.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(S=>{var y;let{valid:w}=S;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ga(()=>{var u;return $t("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:s,onSubmit:n},[(u=o.default)==null?void 0:u.call(o,E)])}),Ix(E,d)}});const kBe=gi({scrollable:Boolean,...Js(),...I_(),...tf({tag:"main"})},"VMain"),TBe=Oa()({name:"VMain",props:kBe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=D_(t),{mainStyles:E,layoutIsReady:d}=_2e(),{ssrBootStyles:s}=fq();return Ga(()=>$t(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[E.value,s.value,f.value,t.style]},{default:()=>{var n,u;return[t.scrollable?$t("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(u=o.default)==null?void 0:u.call(o)]}})),d}});function CBe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const E=Gi(!1),d=Gi(0),s=nr(()=>{const b=typeof E.value=="boolean"?"top":E.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,E.value?{[b]:is(d.value)}:{top:f.value.top}]});pg(()=>{ia(o,b=>{b?window.addEventListener("scroll",u,{passive:!0}):window.removeEventListener("scroll",u)},{immediate:!0})}),Em(()=>{window.removeEventListener("scroll",u)});let n=0;function u(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),S=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-S),y=i.height+Math.max(d.value,S)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=o0e(e),E=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(E-f)*Math.abs(E),o===t.length-1&&(e*=.5)}return o0e(e)*1e3}function EBe(){const t={};function e(E){Array.from(E.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new u9e(MBe))).push([E.timeStamp,d])})}function o(E){Array.from(E.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(E){var b;const d=(b=t[E])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${E}`);const s=d[0],n=[],u=[];for(const i of d){if(s[0]-i[0]>ABe)break;n.push({t:i[0],d:i[1].clientX}),u.push({t:i[0],d:i[1].clientY})}return{x:i0e(n),y:i0e(u),get direction(){const{x:i,y:S}=this,[w,y]=[Math.abs(i),Math.abs(S)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&S>=0?"down":y>w&&S<=0?"up":PBe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function PBe(){throw new Error}function RBe(t){let{el:e,isActive:o,isTemporary:f,width:E,touchless:d,position:s}=t;pg(()=>{window.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),Em(()=>{window.removeEventListener("touchstart",p),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=nr(()=>["left","right"].includes(s.value)),{addMovement:u,endTouch:b,getVelocity:i}=EBe();let S=!1;const w=Gi(!1),y=Gi(0),m=Gi(0);let a;function c(C,x){return(s.value==="left"?C:s.value==="right"?document.documentElement.clientWidth-C:s.value==="top"?C:s.value==="bottom"?document.documentElement.clientHeight-C:E8())-(x?E.value:0)}function h(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=s.value==="left"?(C-m.value)/E.value:s.value==="right"?(document.documentElement.clientWidth-C-m.value)/E.value:s.value==="top"?(C-m.value)/E.value:s.value==="bottom"?(document.documentElement.clientHeight-C-m.value)/E.value:E8();return x?Math.max(0,Math.min(1,R)):R}function p(C){if(d.value)return;const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY,M=25,T=s.value==="left"?xdocument.documentElement.clientWidth-M:s.value==="top"?Rdocument.documentElement.clientHeight-M:E8(),P=o.value&&(s.value==="left"?xdocument.documentElement.clientWidth-E.value:s.value==="top"?Rdocument.documentElement.clientHeight-E.value:E8());(T||P||o.value&&f.value)&&(a=[x,R],m.value=c(n.value?x:R,o.value),y.value=h(n.value?x:R),S=m.value>-20&&m.value<80,b(C),u(C))}function v(C){const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY;if(S){if(!C.cancelable){S=!1;return}const T=Math.abs(x-a[0]),P=Math.abs(R-a[1]);(n.value?T>P&&T>3:P>T&&P>3)?(w.value=!0,S=!1):(n.value?P:T)>3&&(S=!1)}if(!w.value)return;C.preventDefault(),u(C);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?m.value=c(n.value?x:R,!0):M<0&&(m.value=c(n.value?x:R,!1))}function _(C){if(S=!1,!w.value)return;u(C),w.value=!1;const x=i(C.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||E8()):o.value=y.value>.5}const O=nr(()=>w.value?{transform:s.value==="left"?`translateX(calc(-100% + ${y.value*E.value}px))`:s.value==="right"?`translateX(calc(100% - ${y.value*E.value}px))`:s.value==="top"?`translateY(calc(-100% + ${y.value*E.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${y.value*E.value}px))`:E8(),transition:"none"}:void 0);return $1(w,()=>{var R,M;const C=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;Gp(()=>{var T,P,A,L;(P=e.value)==null||P.style.setProperty("transform",((T=O.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((A=O.value)==null?void 0:A.transition)||null)}),hg(()=>{var T,P;(T=e.value)==null||T.style.setProperty("transform",C),(P=e.value)==null||P.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:O}}function E8(){throw new Error}const LBe=["start","end","left","right","top","bottom"],IBe=gi({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>LBe.includes(t)},sticky:Boolean,...B_(),...Js(),...__e(),...wD({mobile:null}),...iy(),...pue(),...Pm(),...tf({tag:"nav"}),...gd()},"VNavigationDrawer"),vwe=Oa()({name:"VNavigationDrawer",props:IBe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{isRtl:d}=n0(),{themeClasses:s}=th(t),{borderClasses:n}=$O(t),{backgroundColorClasses:u,backgroundColorStyles:b}=dg(ji(t,"color")),{elevationClasses:i}=cb(t),{displayClasses:S,mobile:w}=L4(t),{roundedClasses:y}=mg(t),m=j2e(),a=ql(t,"modelValue",null,X=>!!X),{ssrBootStyles:c}=fq(),{scopeId:h}=IM(),p=qo(),v=Gi(!1),{runOpenDelay:_,runCloseDelay:O}=w_e(t,X=>{v.value=X}),C=nr(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=nr(()=>Kse(t.location,d.value)),R=nr(()=>t.persistent),M=nr(()=>!t.permanent&&(w.value||t.temporary)),T=nr(()=>t.sticky&&!M.value&&x.value!=="bottom");$1(()=>t.expandOnHover&&t.rail!=null,()=>{ia(v,X=>f("update:rail",!X))}),$1(()=>!t.disableResizeWatcher,()=>{ia(M,X=>!t.permanent&&Vc(()=>a.value=!X))}),$1(()=>!t.disableRouteWatcher&&!!m,()=>{ia(m.currentRoute,()=>M.value&&(a.value=!1))}),ia(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:P,dragProgress:A}=RBe({el:p,isActive:a,isTemporary:M,width:C,touchless:ji(t,"touchless"),position:x}),L=nr(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):C.value;return P.value?X*A.value:X}),D=nr(()=>["top","bottom"].includes(t.location)?0:C.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=mue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:nr(()=>a.value||P.value),disableTransitions:nr(()=>P.value),absolute:nr(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=CBe({rootEl:p,isSticky:T,layoutItemStyles:k}),j=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),U=nr(()=>({...P.value?{opacity:A.value*.2,transition:"none"}:void 0,...I.value}));return ab({VList:{bgColor:"transparent"}}),Ga(()=>{const X=E.image||t.image;return $t(Ea,null,[$t(t.tag,qi({ref:p,onMouseenter:_,onMouseleave:O,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},s.value,u.value,n.value,S.value,i.value,y.value,t.class],style:[b.value,k.value,c.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,Z,K;return[X&&$t("div",{key:"image",class:"v-navigation-drawer__img"},[E.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},E.image):$t(rC,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),E.prepend&&$t("div",{class:"v-navigation-drawer__prepend"},[(te=E.prepend)==null?void 0:te.call(E)]),$t("div",{class:"v-navigation-drawer__content"},[(Z=E.default)==null?void 0:Z.call(E)]),E.append&&$t("div",{class:"v-navigation-drawer__append"},[(K=E.append)==null?void 0:K.call(E)])]}}),$t(C_,{name:"fade-transition"},{default:()=>[M.value&&(P.value||a.value)&&!!t.scrim&&$t("div",qi({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),DBe=gi({...Oq(),...uC(),...M_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),Vue=Oa()({name:"VRangeSlider",props:DBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),d=qo(),s=qo(),{rtlClasses:n}=n0();function u(T){if(!E.value||!d.value)return;const P=lle(T,E.value.$el,t.direction),A=lle(T,d.value.$el,t.direction),L=Math.abs(P),D=Math.abs(A);return LT!=null&&T.length?T.map(P=>b.roundValue(P)):[0,0]),{activeThumbRef:S,hasLabels:w,max:y,min:m,mousePressed:a,onSliderMousedown:c,onSliderTouchstart:h,position:p,trackContainerRef:v,readonly:_}=P_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:P}=T;const A=S.value===((L=E.value)==null?void 0:L.$el)?[P,i.value[1]]:[i.value[0],P];!t.strict&&A[0]{var D,k,I,z;let{value:P}=T;const[A,L]=i.value;!t.strict&&A===L&&A!==m.value&&(S.value=P>A?(D=d.value)==null?void 0:D.$el:(k=E.value)==null?void 0:k.$el,(I=S.value)==null||I.focus()),S.value===((z=E.value)==null?void 0:z.$el)?i.value=[Math.min(P,L),L]:i.value=[A,Math.max(A,P)]},getActiveThumb:u}),{isFocused:O,focus:C,blur:x}=cC(t),R=nr(()=>p(i.value[0])),M=nr(()=>p(i.value[1]));return Ga(()=>{const T=sb.filterProps(t),P=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":O.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:s},T,{focused:O.value}),{...o,prepend:P?A=>{var L,D;return $t(Ea,null,[((L=o.label)==null?void 0:L.call(o,A))??(t.label?$t(wq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,A)])}:void 0,default:A=>{var k,I;let{id:L,messagesId:D}=A;return $t("div",{class:"v-slider__container",onMousedown:_.value?void 0:c,onTouchstartPassive:_.value?void 0:h},[$t("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),$t("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),$t(R_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),$t(cle,{ref:E,"aria-describedby":D.value,focused:O&&S.value===((k=E.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;C(),S.value=($=E.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===m.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=E.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:m.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),$t(cle,{ref:d,"aria-describedby":D.value,focused:O&&S.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;C(),S.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=E.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=E.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const BBe=gi({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Hl,default:"$ratingEmpty"},fullIcon:{type:Hl,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...Js(),...Q1(),...aC(),...tf(),...gd()},"VRating"),Uue=Oa()({name:"VRating",props:BBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=ry(),{themeClasses:E}=th(t),d=ql(t,"modelValue"),s=nr(()=>ug(parseFloat(d.value),0,+t.length)),n=nr(()=>u4(Number(t.length),1)),u=nr(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Gi(-1),i=nr(()=>u.value.map(a=>{const c=t.hover&&b.value>-1,h=s.value>=a,p=b.value>=a,_=(c?p:h)?t.fullIcon:t.emptyIcon,O=t.activeColor??t.color,C=h||p?O:t.color;return{isFilled:h,isHovered:p,icon:_,color:C}})),S=nr(()=>[0,...u.value].map(a=>{function c(){b.value=a}function h(){b.value=-1}function p(){t.disabled||t.readonly||(d.value=s.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?c:void 0,onMouseleave:t.hover?h:void 0,onClick:p}})),w=nr(()=>t.name??`v-rating-${j1()}`);function y(a){var R,M;let{value:c,index:h,showStar:p=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:O}=S.value[h+1],C=`${w.value}-${String(c).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return $t(Ea,null,[$t("label",{for:C,class:{"v-rating__item--half":t.halfIncrements&&c%1>0,"v-rating__item--full":t.halfIncrements&&c%1===0},onMouseenter:v,onMouseleave:_,onClick:O},[$t("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,c,t.length)]),p?o.item?o.item({...i.value[h],props:x,value:c,index:h,rating:s.value}):$t(es,qi({"aria-label":f(t.itemAriaLabel,c,t.length)},x),null):void 0]),$t("input",{class:"v-rating__hidden",name:w.value,id:C,type:"radio",value:c,checked:s.value===c,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function m(a){return o["item-label"]?o["item-label"](a):a.label?$t("span",null,[a.label]):$t("span",null,[Ua(" ")])}return Ga(()=>{var c;const a=!!((c=t.itemLabels)!=null&&c.length)||o["item-label"];return $t(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},E.value,t.class],style:t.style},{default:()=>[$t(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,p)=>{var v,_;return $t("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?m({value:h,index:p,label:(v=t.itemLabels)==null?void 0:v[p]}):void 0,$t("div",{class:"v-rating__item"},[t.halfIncrements?$t(Ea,null,[$t(y,{value:h-.5,index:p*2},null),$t(y,{value:h,index:p*2+1},null)]):$t(y,{value:h,index:p},null)]),a&&t.itemLabelPosition==="bottom"?m({value:h,index:p,label:(_=t.itemLabels)==null?void 0:_[p]}):void 0])})]})}),{}}});function zBe(t){const e=Gi(t());let o=-1;function f(){clearInterval(o)}function E(){f(),Vc(()=>e.value=t())}function d(s){const n=s?getComputedStyle(s):{transitionDuration:.2},u=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+u;e.value=Math.max(t()-i,0),e.value<=0&&f()},u)}return hg(f),{clear:f,time:e,start:d,reset:E}}const NBe=gi({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...xD({location:"bottom"}),...yq(),...Pm(),...Lx(),...gd(),...R_(OD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Dq=Oa()({name:"VSnackbar",props:NBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{positionClasses:E}=bq(t),{scopeId:d}=IM(),{themeClasses:s}=th(t),{colorClasses:n,colorStyles:u,variantClasses:b}=iC(t),{roundedClasses:i}=mg(t),S=zBe(()=>Number(t.timeout)),w=qo(),y=qo(),m=Gi(!1),a=Gi(0),c=qo(),h=Kl(HI,void 0);$1(()=>!!h,()=>{const T=_2e();Gp(()=>{c.value=T.mainStyles.value})}),ia(f,v),ia(()=>t.timeout,v),pg(()=>{f.value&&v()});let p=-1;function v(){S.reset(),window.clearTimeout(p);const T=Number(t.timeout);if(!f.value||T===-1)return;const P=aue(y.value);S.start(P),p=window.setTimeout(()=>{f.value=!1},T)}function _(){S.reset(),window.clearTimeout(p)}function O(){m.value=!0,_()}function C(){m.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=nr(()=>t.location.split(" ").reduce((T,P)=>(T[`v-snackbar--${P}`]=!0,T),{}));return Ga(()=>{const T=C4.filterProps(t),P=!!(o.default||o.text||t.text);return $t(C4,qi({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,E.value,t.class],style:[c.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":A=>f.value=A,contentProps:qi({class:["v-snackbar__wrapper",s.value,n.value,i.value,b.value],style:[u.value],onPointerenter:O,onPointerleave:C},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var A,L;return[oC(!1,"v-snackbar"),t.timer&&!m.value&&$t("div",{key:"timer",class:"v-snackbar__timer"},[$t(U2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":S.time.value},null)]),P&&$t("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((A=o.text)==null?void 0:A.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&$t(ef,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[$t("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),Ix({},w)}});const FBe=gi({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...uC(),...wue()},"VSwitch"),N8=Oa()({name:"VSwitch",inheritAttrs:!1,props:FBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const E=ql(t,"indeterminate"),d=ql(t,"modelValue"),{loaderClasses:s}=_D(t),{isFocused:n,focus:u,blur:b}=cC(t),i=qo(),S=Hu&&window.matchMedia("(forced-colors: active)").matches,w=nr(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=j1(),m=nr(()=>t.id||`switch-${y}`);function a(){E.value&&(E.value=!1)}function c(h){var p,v;h.stopPropagation(),h.preventDefault(),(v=(p=i.value)==null?void 0:p.input)==null||v.click()}return Ga(()=>{const[h,p]=yD(o),v=sb.filterProps(t),_=hZ.filterProps(t);return $t(sb,qi({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":E.value},s.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":O=>d.value=O,id:m.value,focused:n.value,style:t.style}),{...f,default:O=>{let{id:C,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=O;const P={model:d,isValid:T};return $t(hZ,qi({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[A=>d.value=A,a],id:C.value,"aria-describedby":x.value,type:"checkbox","aria-checked":E.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:u,onBlur:b},p),{...f,default:A=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=A;return $t("div",{class:["v-switch__track",S?void 0:L.value],style:D.value,onClick:c},[f["track-true"]&&$t("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](P)]),f["track-false"]&&$t("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](P)])])},input:A=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=A;return $t(Ea,null,[L,$t("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||S?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?$t(ef,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...P,icon:D})]}):$t(C2e,null,{default:()=>[t.loading?$t(vq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):$t(sC,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&$t(jl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const $Be=gi({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...uC(),...Tq()},"VTextarea"),kD=Oa()({name:"VTextarea",directives:{Intersect:bue},inheritAttrs:!1,props:$Be(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=cC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function S(P,A){var L,D;!t.autofocus||!P||(D=(L=A[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=qo(),y=qo(),m=Gi(""),a=qo(),c=nr(()=>t.persistentPlaceholder||s.value||t.active);function h(){var P;a.value!==document.activeElement&&((P=a.value)==null||P.focus()),s.value||n()}function p(P){h(),f("click:control",P)}function v(P){f("mousedown:control",P)}function _(P){P.stopPropagation(),h(),Vc(()=>{d.value="",cue(t["onClick:clear"],P)})}function O(P){var L;const A=P.target;if(d.value=A.value,(L=t.modelModifiers)!=null&&L.trim){const D=[A.selectionStart,A.selectionEnd];Vc(()=>{A.selectionStart=D[0],A.selectionEnd=D[1]})}}const C=qo(),x=qo(+t.rows),R=nr(()=>["plain","underlined"].includes(t.variant));Gp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&Vc(()=>{if(!C.value||!y.value)return;const P=getComputedStyle(C.value),A=getComputedStyle(y.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),D=C.value.scrollHeight,k=parseFloat(P.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(A.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=ug(D??0,I,z);x.value=Math.floor(($-L)/k),m.value=is($)})}pg(M),ia(d,M),ia(()=>t.rows,M),ia(()=>t.maxRows,M),ia(()=>t.density,M);let T;return ia(C,P=>{P?(T=new ResizeObserver(M),T.observe(C.value)):T==null||T.disconnect()}),Em(()=>{T==null||T.disconnect()}),Ga(()=>{const P=!!(E.counter||t.counter||t.counterValue),A=!!(P||E.details),[L,D]=yD(o),{modelValue:k,...I}=sb.filterProps(t),z=Aue(t);return $t(sb,qi({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:s.value}),{...E,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return $t(Cq,qi({ref:y,style:{"--v-textarea-control-height":m.value},onClick:p,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:c.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:s.value,error:te.value===!1}),{...E,default:Z=>{let{props:{class:K,...re}}=Z;return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[t.prefix]),Kp($t("textarea",qi({ref:a,class:K,value:d.value,onInput:O,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:u},re,D),null),[[M_("intersect"),{handler:S},null,{once:!0}]]),t.autoGrow&&Kp($t("textarea",{class:[K,"v-textarea__sizer"],id:`${re.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:C,readonly:!0,"aria-hidden":"true"},null),[[y5e,d.value]]),t.suffix&&$t("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:A?$=>{var Q;return $t(Ea,null,[(Q=E.details)==null?void 0:Q.call(E,$),P&&$t(Ea,null,[$t("span",null,null),$t(Cue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},w,y,a)}});const VBe=gi({id:String,text:String,...R_(OD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),ywe=Oa()({name:"VTooltip",props:VBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-tooltip-${d}`),n=qo(),u=nr(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=nr(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=nr(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),S=nr(()=>qi({"aria-describedby":s.value},t.activatorProps));return Ga(()=>{const w=C4.filterProps(t);return $t(C4,qi({ref:n,class:["v-tooltip",t.class],style:t.style,id:s.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:u.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:S.value,_disableGlobalStack:!0},E),{activator:o.activator,default:function(){var c;for(var y=arguments.length,m=new Array(y),a=0;a{const E=o.replace(/_/g,"-");return e[E]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&!t.shiftKey&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)},async fileToBase64(t){const e=new FileReader;return e.readAsDataURL(t),new Promise(o=>{e.onload=()=>{let f=e.result.split(",")[1];f=f.padEnd(f.length+(4-f.length%4)%4,"="),o(f)}})},async createFormData(t){const e={};for(const o of t){const f=await this.fileToBase64(o);e[o.name]=f}return e}}},HBe={key:0},ZBe={key:1};function qBe(t,e,o,f,E,d){const s=Nd("plotly-plot"),n=Nd("component-wrapper",!0);return Uo(!0),Ya(Ea,null,ey(o.renderComponents,u=>(Uo(),Ya("div",{key:u.id},[$t(Iq,{class:"pa-5"},{default:ao(()=>[u.component==="plotly-plot"?(Uo(),da(s,{key:0,id:u.id,figureJson:u.figure_json},null,8,["id","figureJson"])):u.component==="zt-html"?(Uo(),da(yM,{key:1,innerHTML:u.v_html},null,8,["innerHTML"])):u.component==="v-file-input"?(Uo(),da(nM(u.component),qi({key:2},d.componentBind(u),{"onUpdate:modelValue":async b=>{u.value=await d.createFormData(b),d.runCode(!0,u.id,u.value)}}),null,16,["onUpdate:modelValue"])):(Uo(),da(nM(u.component),qi({key:3},d.componentBind(u),{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},fke(d.getEventBindings(u))),yve({_:2},[u.component!=="v-data-table"?{name:"default",fn:ao(()=>[u.childComponents?(Uo(),Ya("div",HBe,[$t(n,{renderComponents:d.getChildren(u.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):u.component==="v-btn"?(Uo(),Ya("div",ZBe,Dl(u.text),1)):za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]),_:2},1024)]))),128)}const bwe=mp(QBe,[["render",qBe]]),WBe={emits:["runCode"],components:{"v-slider":Due,"v-rating":Uue,"v-text-field":Ep,"v-file-input":$ue,"v-textarea":kD,"v-range-slider":Vue,"v-select":DM,"v-combobox":Bue,"v-btn":es,"v-img":rC,"v-data-table":Lq,"v-autocomplete":Mq,"v-card":ub,"v-text":jue,"plotly-plot":yce,"component-wrapper":bwe},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},YBe={key:0},XBe={key:1},GBe={key:1},KBe={key:0},JBe={key:1};function eze(t,e,o,f,E,d){const s=Nd("component-wrapper"),n=Nd("layout-component",!0);return Uo(),Ya(Ea,null,[o.rowData?(Uo(),da(Iq,{key:0},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(o.rowData.components,(u,b)=>(Uo(),da(QT,{key:b,cols:d.componentWidth(u)},{default:ao(()=>[typeof u=="string"?(Uo(),Ya("div",YBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",XBe,[$t(n,{"column-data":u,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):za("",!0),o.columnData?(Uo(),Ya("div",GBe,[(Uo(!0),Ya(Ea,null,ey(o.columnData.components,(u,b)=>(Uo(),Ya("div",{key:b},[typeof u=="string"?(Uo(),Ya("div",KBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",JBe,[$t(n,{"row-data":u,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):za("",!0)],64)}const tze=mp(WBe,[["render",eze]]),Q0=Am({copilot_active:!1,connection_lost:!1,timers:{},comments_enabled:!1}),Mp={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},nze={component:t=>U1(t.tag,{...t,innerHTML:t.icon})},rze={class:"divider"},oze=em({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=qo([{title:"Code",cellType:"code",icon:`ztIcon:${Mp.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Mp.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Mp.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Mp.text}`}]);return(o,f)=>(Uo(),da(BO,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:ao(({props:E})=>[Na("div",qi(t.cellId?{...E,id:"addCell"+t.cellId}:E,{class:"activator-area"}),[Na("div",rze,[$t(vM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),$t(es,{"prepend-icon":`ztIcon:${Va(Mp).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:ao(()=>[Ua("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(e.value,(E,d)=>(Uo(),da(Xf,qi({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+E.title+"_"+t.cellId}:{},{onClick:s=>o.$emit("createCodeCell",E.cellType)}),{prepend:ao(()=>[$t(jl,{icon:E.icon},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua(Dl(E.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Que=mp(oze,[["__scopeId","data-v-c00c2563"]]);function ize(t,e){const o=nr(()=>t.value);return{cellTypeColor:nr(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var aze=!1;/*! +`)}function Tge(t){const e=t.dark?2:1,o=t.dark?1:2,f=[];for(const[E,d]of Object.entries(t.colors)){const s=w_(d);f.push(`--v-theme-${E}: ${s.r},${s.g},${s.b}`),E.startsWith("on-")||f.push(`--v-theme-${E}-overlay-multiplier: ${$9e(d)>.18?e:o}`)}for(const[E,d]of Object.entries(t.variables)){const s=typeof d=="string"&&d.startsWith("#")?w_(d):void 0,n=s?`${s.r}, ${s.g}, ${s.b}`:void 0;f.push(`--v-${E}: ${n??d}`)}return f}const sRe=gi({...Js(),...X9e({fullHeight:!0}),...gd()},"VApp"),lRe=Oa()({name:"VApp",props:sRe(),setup(t,e){let{slots:o}=e;const f=th(t),{layoutClasses:E,getLayoutItem:d,items:s,layoutRef:n}=K9e(t),{rtlClasses:u}=n0();return Ga(()=>$t("div",{ref:n,class:["v-application",f.themeClasses.value,E.value,u.value,t.class],style:[t.style]},[$t("div",{class:"v-application__wrap"},[$t(G4e,null,{default:()=>{var b;return[$t(Ea,null,[(b=o.default)==null?void 0:b.call(o)])]}})])])),{getLayoutItem:d,items:s,theme:f}}});const tf=gi({tag:{type:String,default:"div"}},"tag"),cRe=gi({text:String,...Js(),...tf()},"VToolbarTitle"),uRe=Oa()({name:"VToolbarTitle",props:cRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{const f=!!(o.default||o.text||t.text);return $t(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var E;return[f&&$t("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():t.text,(E=o.default)==null?void 0:E.call(o)])]}})}),{}}}),fRe=gi({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function iy(t,e,o){return Oa()({name:t,props:fRe({mode:o,origin:e}),setup(f,E){let{slots:d}=E;const s={onBeforeEnter(n){f.origin&&(n.style.transformOrigin=f.origin)},onLeave(n){if(f.leaveAbsolute){const{offsetTop:u,offsetLeft:b,offsetWidth:i,offsetHeight:S}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${u}px`,n.style.left=`${b}px`,n.style.width=`${i}px`,n.style.height=`${S}px`}f.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(f.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:u,top:b,left:i,width:S,height:w}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=u||"",n.style.top=b||"",n.style.left=i||"",n.style.width=S||"",n.style.height=w||""}}};return()=>{const n=f.group?pce:C_;return U1(n,{name:f.disabled?"":t,css:!f.disabled,...f.group?void 0:{mode:f.mode},...f.disabled?{}:s},d.default)}}})}function C2e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Oa()({name:t,props:{mode:{type:String,default:o},disabled:Boolean,group:Boolean},setup(f,E){let{slots:d}=E;const s=f.group?pce:C_;return()=>U1(s,{name:f.disabled?"":t,css:!f.disabled,...f.disabled?{}:e},d.default)}})}function A2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",f=ib(`offset-${o}`);return{onBeforeEnter(s){s._parent=s.parentNode,s._initialStyle={transition:s.style.transition,overflow:s.style.overflow,[o]:s.style[o]}},onEnter(s){const n=s._initialStyle;s.style.setProperty("transition","none","important"),s.style.overflow="hidden";const u=`${s[f]}px`;s.style[o]="0",s.offsetHeight,s.style.transition=n.transition,t&&s._parent&&s._parent.classList.add(t),requestAnimationFrame(()=>{s.style[o]=u})},onAfterEnter:d,onEnterCancelled:d,onLeave(s){s._initialStyle={transition:"",overflow:s.style.overflow,[o]:s.style[o]},s.style.overflow="hidden",s.style[o]=`${s[f]}px`,s.offsetHeight,requestAnimationFrame(()=>s.style[o]="0")},onAfterLeave:E,onLeaveCancelled:E};function E(s){t&&s._parent&&s._parent.classList.remove(t),d(s)}function d(s){const n=s._initialStyle[o];s.style.overflow=s._initialStyle.overflow,n!=null&&(s.style[o]=n),delete s._initialStyle}}const dRe=gi({target:[Object,Array]},"v-dialog-transition"),yue=Oa()({name:"VDialogTransition",props:dRe(),setup(t,e){let{slots:o}=e;const f={onBeforeEnter(E){E.style.pointerEvents="none",E.style.visibility="hidden"},async onEnter(E,d){var w;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),E.style.visibility="";const{x:s,y:n,sx:u,sy:b,speed:i}=Age(t.target,E),S=j8(E,[{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0},{}],{duration:225*i,easing:Z9e});(w=Cge(E))==null||w.forEach(y=>{j8(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*i,easing:cZ})}),S.finished.then(()=>d())},onAfterEnter(E){E.style.removeProperty("pointer-events")},onBeforeLeave(E){E.style.pointerEvents="none"},async onLeave(E,d){var w;await new Promise(y=>requestAnimationFrame(y));const{x:s,y:n,sx:u,sy:b,speed:i}=Age(t.target,E);j8(E,[{},{transform:`translate(${s}px, ${n}px) scale(${u}, ${b})`,opacity:0}],{duration:125*i,easing:q9e}).finished.then(()=>d()),(w=Cge(E))==null||w.forEach(y=>{j8(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*i,easing:cZ})})},onAfterLeave(E){E.style.removeProperty("pointer-events")}};return()=>t.target?$t(C_,qi({name:"dialog-transition"},f,{css:!1}),o):$t(C_,{name:"dialog-transition"},o)}});function Cge(t){var o;const e=(o=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:o.children;return e&&[...e]}function Age(t,e){const o=h2e(t),f=due(e),[E,d]=getComputedStyle(e).transformOrigin.split(" ").map(h=>parseFloat(h)),[s,n]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=o.left+o.width/2;s==="left"||n==="left"?u-=o.width/2:(s==="right"||n==="right")&&(u+=o.width/2);let b=o.top+o.height/2;s==="top"||n==="top"?b-=o.height/2:(s==="bottom"||n==="bottom")&&(b+=o.height/2);const i=o.width/f.width,S=o.height/f.height,w=Math.max(1,i,S),y=i/w||0,m=S/w||0,a=f.width*f.height/(window.innerWidth*window.innerHeight),c=a>.12?Math.min(1.5,(a-.12)*10+1):1;return{x:u-(E+f.left),y:b-(d+f.top),sx:y,sy:m,speed:c}}iy("fab-transition","center center","out-in");iy("dialog-bottom-transition");iy("dialog-top-transition");const Mge=iy("fade-transition"),M2e=iy("scale-transition");iy("scroll-x-transition");iy("scroll-x-reverse-transition");iy("scroll-y-transition");iy("scroll-y-reverse-transition");iy("slide-x-transition");iy("slide-x-reverse-transition");const E2e=iy("slide-y-transition");iy("slide-y-reverse-transition");const bue=C2e("expand-transition",A2e()),P2e=C2e("expand-x-transition",A2e("",!0)),hRe=gi({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ef=Oa(!1)({name:"VDefaultsProvider",props:hRe(),setup(t,e){let{slots:o}=e;const{defaults:f,disabled:E,reset:d,root:s,scoped:n}=CM(t);return ab(f,{reset:d,root:s,scoped:n,disabled:E}),()=>{var u;return(u=o.default)==null?void 0:u.call(o)}}});const I_=gi({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function D_(t){return{dimensionStyles:nr(()=>{const o={},f=is(t.height),E=is(t.maxHeight),d=is(t.maxWidth),s=is(t.minHeight),n=is(t.minWidth),u=is(t.width);return f!=null&&(o.height=f),E!=null&&(o.maxHeight=E),d!=null&&(o.maxWidth=d),s!=null&&(o.minHeight=s),n!=null&&(o.minWidth=n),u!=null&&(o.width=u),o})}}function pRe(t){return{aspectStyles:nr(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const R2e=gi({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Js(),...I_()},"VResponsive"),Ege=Oa()({name:"VResponsive",props:R2e(),setup(t,e){let{slots:o}=e;const{aspectStyles:f}=pRe(t),{dimensionStyles:E}=D_(t);return Ga(()=>{var d;return $t("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[E.value,t.style]},[$t("div",{class:"v-responsive__sizer",style:f.value},null),(d=o.additional)==null?void 0:d.call(o),o.default&&$t("div",{class:["v-responsive__content",t.contentClass]},[o.default()])])}),{}}});function xue(t){return uue(()=>{const e=[],o={};if(t.value.background)if(ele(t.value.background)){if(o.backgroundColor=t.value.background,!t.value.text&&L9e(t.value.background)){const f=w_(t.value.background);if(f.a==null||f.a===1){const E=y2e(f);o.color=E,o.caretColor=E}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(ele(t.value.text)?(o.color=t.value.text,o.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:o}})}function ry(t,e){const o=nr(()=>({text:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=xue(o);return{textColorClasses:f,textColorStyles:E}}function dg(t,e){const o=nr(()=>({background:ku(t)?t.value:e?t[e]:null})),{colorClasses:f,colorStyles:E}=xue(o);return{backgroundColorClasses:f,backgroundColorStyles:E}}const Pm=gi({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function mg(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{roundedClasses:nr(()=>{const f=ku(t)?t.value:t.rounded,E=ku(t)?t.value:t.tile,d=[];if(f===!0||f==="")d.push(`${e}--rounded`);else if(typeof f=="string"||f===0)for(const s of String(f).split(" "))d.push(`rounded-${s}`);else(E||f===!1)&&d.push("rounded-0");return d})}}const rC=gi({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),f4=(t,e)=>{let{slots:o}=e;const{transition:f,disabled:E,group:d,...s}=t,{component:n=d?pce:C_,...u}=typeof f=="object"?f:{};return U1(n,qi(typeof f=="string"?{name:E?"":f}:u,typeof f=="string"?{}:Object.fromEntries(Object.entries({disabled:E,group:d}).filter(b=>{let[i,S]=b;return S!==void 0})),s),o)};function mRe(t,e){if(!sue)return;const o=e.modifiers||{},f=e.value,{handler:E,options:d}=typeof f=="object"?f:{handler:f,options:{}},s=new IntersectionObserver(function(){var S;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;const b=(S=t._observe)==null?void 0:S[e.instance.$.uid];if(!b)return;const i=n.some(w=>w.isIntersecting);E&&(!o.quiet||b.init)&&(!o.once||i||b.init)&&E(i,n,u),i&&o.once?L2e(t,e):b.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:s},s.observe(t)}function L2e(t,e){var f;const o=(f=t._observe)==null?void 0:f[e.instance.$.uid];o&&(o.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const gRe={mounted:mRe,unmounted:L2e},_ue=gRe,vRe=gi({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...R2e(),...Js(),...Pm(),...rC()},"VImg"),oC=Oa()({name:"VImg",directives:{intersect:_ue},props:vRe(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:o,slots:f}=e;const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(ji(t,"color")),{roundedClasses:s}=mg(t),n=Xh("VImg"),u=Gi(""),b=qo(),i=Gi(t.eager?"loading":"idle"),S=Gi(),w=Gi(),y=nr(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),m=nr(()=>y.value.aspect||S.value/w.value||0);ia(()=>t.src,()=>{a(i.value!=="idle")}),ia(m,(A,L)=>{!A&&L&&b.value&&_(b.value)}),rce(()=>a());function a(A){if(!(t.eager&&A)&&!(sue&&!A&&!t.eager)){if(i.value="loading",y.value.lazySrc){const L=new Image;L.src=y.value.lazySrc,_(L,null)}y.value.src&&Vc(()=>{var L;o("loadstart",((L=b.value)==null?void 0:L.currentSrc)||y.value.src),setTimeout(()=>{var D;if(!n.isUnmounted)if((D=b.value)!=null&&D.complete){if(b.value.naturalWidth||h(),i.value==="error")return;m.value||_(b.value,null),i.value==="loading"&&c()}else m.value||_(b.value),p()})})}}function c(){var A;n.isUnmounted||(p(),_(b.value),i.value="loaded",o("load",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function h(){var A;n.isUnmounted||(i.value="error",o("error",((A=b.value)==null?void 0:A.currentSrc)||y.value.src))}function p(){const A=b.value;A&&(u.value=A.currentSrc||A.src)}let v=-1;Em(()=>{clearTimeout(v)});function _(A){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const D=()=>{if(clearTimeout(v),n.isUnmounted)return;const{naturalHeight:k,naturalWidth:I}=A;k||I?(S.value=I,w.value=k):!A.complete&&i.value==="loading"&&L!=null?v=window.setTimeout(D,L):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(S.value=1,w.value=1)};D()}const O=nr(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),C=()=>{var D;if(!y.value.src||i.value==="idle")return null;const A=$t("img",{class:["v-img__img",O.value],style:{objectPosition:t.position},src:y.value.src,srcset:y.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:b,onLoad:c,onError:h},null),L=(D=f.sources)==null?void 0:D.call(f);return $t(f4,{transition:t.transition,appear:!0},{default:()=>[Kp(L?$t("picture",{class:"v-img__picture"},[L,A]):A,[[A4,i.value==="loaded"]])]})},x=()=>$t(f4,{transition:t.transition},{default:()=>[y.value.lazySrc&&i.value!=="loaded"&&$t("img",{class:["v-img__img","v-img__img--preload",O.value],style:{objectPosition:t.position},src:y.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>f.placeholder?$t(f4,{transition:t.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!f.error)&&$t("div",{class:"v-img__placeholder"},[f.placeholder()])]}):null,M=()=>f.error?$t(f4,{transition:t.transition,appear:!0},{default:()=>[i.value==="error"&&$t("div",{class:"v-img__error"},[f.error()])]}):null,T=()=>t.gradient?$t("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,P=Gi(!1);{const A=ia(m,L=>{L&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.value=!0})}),A())})}return Ga(()=>{const A=Ege.filterProps(t);return Kp($t(Ege,qi({class:["v-img",{"v-img--booting":!P.value},E.value,s.value,t.class],style:[{width:is(t.width==="auto"?S.value:t.width)},d.value,t.style]},A,{aspectRatio:m.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>$t(Ea,null,[$t(C,null,null),$t(x,null,null),$t(T,null,null),$t(R,null,null),$t(M,null,null)]),default:f.default}),[[M_("intersect"),{handler:a,options:t.options},null,{once:!0}]])}),{currentSrc:u,image:b,state:i,naturalWidth:S,naturalHeight:w}}}),B_=gi({border:[Boolean,Number,String]},"border");function $O(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{borderClasses:nr(()=>{const f=ku(t)?t.value:t.border,E=[];if(f===!0||f==="")E.push(`${e}--border`);else if(typeof f=="string"||f===0)for(const d of String(f).split(" "))E.push(`border-${d}`);return E})}}const ay=gi({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function cb(t){return{elevationClasses:nr(()=>{const o=ku(t)?t.value:t.elevation,f=[];return o==null||f.push(`elevation-${o}`),f})}}const yRe=[null,"prominent","default","comfortable","compact"],I2e=gi({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>yRe.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...B_(),...Js(),...ay(),...Pm(),...tf({tag:"header"}),...gd()},"VToolbar"),Pge=Oa()({name:"VToolbar",props:I2e(),setup(t,e){var y;let{slots:o}=e;const{backgroundColorClasses:f,backgroundColorStyles:E}=dg(ji(t,"color")),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),{themeClasses:u}=th(t),{rtlClasses:b}=n0(),i=Gi(!!(t.extended||(y=o.extension)!=null&&y.call(o))),S=nr(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),w=nr(()=>i.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ab({VBtn:{variant:"text"}}),Ga(()=>{var h;const m=!!(t.title||o.title),a=!!(o.image||t.image),c=(h=o.extension)==null?void 0:h.call(o);return i.value=!!(t.extended||c),$t(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},f.value,d.value,s.value,n.value,u.value,b.value,t.class],style:[E.value,t.style]},{default:()=>[a&&$t("div",{key:"image",class:"v-toolbar__image"},[o.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},o.image):$t(oC,{key:"image-img",cover:!0,src:t.image},null)]),$t(ef,{defaults:{VTabs:{height:is(S.value)}}},{default:()=>{var p,v,_;return[$t("div",{class:"v-toolbar__content",style:{height:is(S.value)}},[o.prepend&&$t("div",{class:"v-toolbar__prepend"},[(p=o.prepend)==null?void 0:p.call(o)]),m&&$t(uRe,{key:"title",text:t.title},{text:o.title}),(v=o.default)==null?void 0:v.call(o),o.append&&$t("div",{class:"v-toolbar__append"},[(_=o.append)==null?void 0:_.call(o)])])]}}),$t(ef,{defaults:{VTabs:{height:is(w.value)}}},{default:()=>[$t(bue,null,{default:()=>[i.value&&$t("div",{class:"v-toolbar__extension",style:{height:is(w.value)}},[c])]})]})]})}),{contentHeight:S,extensionHeight:w}}}),bRe=gi({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function xRe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:o}=e;let f=0,E=0;const d=qo(null),s=Gi(0),n=Gi(0),u=Gi(0),b=Gi(!1),i=Gi(!1),S=nr(()=>Number(t.scrollThreshold)),w=nr(()=>ug((S.value-s.value)/S.value||0)),y=()=>{const m=d.value;if(!m||o&&!o.value)return;f=s.value,s.value="window"in m?m.pageYOffset:m.scrollTop;const a=m instanceof Window?document.documentElement.scrollHeight:m.scrollHeight;if(E!==a){E=a;return}i.value=s.value{n.value=n.value||s.value}),ia(b,()=>{n.value=0}),pg(()=>{ia(()=>t.scrollTarget,m=>{var c;const a=m?document.querySelector(m):window;a&&a!==d.value&&((c=d.value)==null||c.removeEventListener("scroll",y),d.value=a,d.value.addEventListener("scroll",y,{passive:!0}))},{immediate:!0})}),Em(()=>{var m;(m=d.value)==null||m.removeEventListener("scroll",y)}),o&&ia(o,y,{immediate:!0}),{scrollThreshold:S,currentScroll:s,currentThreshold:u,isScrollActive:b,scrollRatio:w,isScrollingUp:i,savedScroll:n}}function dq(){const t=Gi(!1);return pg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:nr(()=>t.value?void 0:{transition:"none !important"}),isBooted:TM(t)}}const _Re=gi({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...I2e(),...gue(),...bRe(),height:{type:[Number,String],default:64}},"VAppBar"),wRe=Oa()({name:"VAppBar",props:_Re(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=qo(),E=ql(t,"modelValue"),d=nr(()=>{var _;const v=new Set(((_=t.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:v.has("hide"),fullyHide:v.has("fully-hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),s=nr(()=>{const v=d.value;return v.hide||v.fullyHide||v.inverted||v.collapse||v.elevate||v.fadeImage||!E.value}),{currentScroll:n,scrollThreshold:u,isScrollingUp:b,scrollRatio:i}=xRe(t,{canScroll:s}),S=nr(()=>d.value.hide||d.value.fullyHide),w=nr(()=>t.collapse||d.value.collapse&&(d.value.inverted?i.value>0:i.value===0)),y=nr(()=>t.flat||d.value.fullyHide&&!E.value||d.value.elevate&&(d.value.inverted?n.value>0:n.value===0)),m=nr(()=>d.value.fadeImage?d.value.inverted?1-i.value:i.value:void 0),a=nr(()=>{var O,C;const v=Number(((O=f.value)==null?void 0:O.contentHeight)??t.height),_=Number(((C=f.value)==null?void 0:C.extensionHeight)??0);return S.value?n.value!!t.scrollBehavior),()=>{Gp(()=>{S.value?d.value.inverted?E.value=n.value>u.value:E.value=b.value||n.valueparseInt(t.order,10)),position:ji(t,"location"),layoutSize:a,elementSize:Gi(void 0),active:E,absolute:ji(t,"absolute")});return Ga(()=>{const v=Pge.filterProps(t);return $t(Pge,qi({ref:f,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...h.value,"--v-toolbar-image-opacity":m.value,height:void 0,...c.value},t.style]},v,{collapse:w.value,flat:y.value}),o)}),p}});const ORe=[null,"default","comfortable","compact"],Q1=gi({density:{type:String,default:"default",validator:t=>ORe.includes(t)}},"density");function Rx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{densityClasses:nr(()=>`${e}--density-${t.density}`)}}const SRe=["elevated","flat","tonal","outlined","text","plain"];function iC(t,e){return $t(Ea,null,[t&&$t("span",{key:"overlay",class:`${e}__overlay`},null),$t("span",{key:"underlay",class:`${e}__underlay`},null)])}const Lx=gi({color:String,variant:{type:String,default:"elevated",validator:t=>SRe.includes(t)}},"variant");function aC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=nr(()=>{const{variant:d}=Va(t);return`${e}--variant-${d}`}),{colorClasses:f,colorStyles:E}=xue(nr(()=>{const{variant:d,color:s}=Va(t);return{[["elevated","flat"].includes(d)?"background":"text"]:s}}));return{colorClasses:f,colorStyles:E,variantClasses:o}}const D2e=gi({baseColor:String,divided:Boolean,...B_(),...Js(),...Q1(),...ay(),...Pm(),...tf(),...gd(),...Lx()},"VBtnGroup"),Rge=Oa()({name:"VBtnGroup",props:D2e(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{densityClasses:E}=Rx(t),{borderClasses:d}=$O(t),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t);ab({VBtn:{height:"auto",baseColor:ji(t,"baseColor"),color:ji(t,"color"),density:ji(t,"density"),flat:!0,variant:ji(t,"variant")}}),Ga(()=>$t(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},f.value,d.value,E.value,s.value,n.value,t.class],style:t.style},o))}}),hq=gi({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),wue=gi({value:null,disabled:Boolean,selectedClass:String},"group-item");function Oue(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const f=Xh("useGroupItem");if(!f)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const E=j1();md(Symbol.for(`${e.description}:id`),E);const d=Kl(e,null);if(!d){if(!o)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const s=ji(t,"value"),n=nr(()=>!!(d.disabled.value||t.disabled));d.register({id:E,value:s,disabled:n},f),Em(()=>{d.unregister(E)});const u=nr(()=>d.isSelected(E)),b=nr(()=>d.items.value[0].id===E),i=nr(()=>d.items.value[d.items.value.length-1].id===E),S=nr(()=>u.value&&[d.selectedClass.value,t.selectedClass]);return ia(u,w=>{f.emit("group:selected",{value:w})},{flush:"sync"}),{id:E,isSelected:u,isFirst:b,isLast:i,toggle:()=>d.select(E,!u.value),select:w=>d.select(E,w),selectedClass:S,value:s,disabled:n,group:d}}function pq(t,e){let o=!1;const f=Am([]),E=ql(t,"modelValue",[],w=>w==null?[]:B2e(f,Pp(w)),w=>{const y=TRe(f,w);return t.multiple?y:y[0]}),d=Xh("useGroup");function s(w,y){const m=w,a=Symbol.for(`${e.description}:id`),h=U8(a,d==null?void 0:d.vnode).indexOf(y);Va(m.value)==null&&(m.value=h,m.useIndexAsValue=!0),h>-1?f.splice(h,0,m):f.push(m)}function n(w){if(o)return;u();const y=f.findIndex(m=>m.id===w);f.splice(y,1)}function u(){const w=f.find(y=>!y.disabled);w&&t.mandatory==="force"&&!E.value.length&&(E.value=[w.id])}pg(()=>{u()}),Em(()=>{o=!0}),oce(()=>{for(let w=0;wa.id===w);if(!(y&&(m!=null&&m.disabled)))if(t.multiple){const a=E.value.slice(),c=a.findIndex(p=>p===w),h=~c;if(y=y??!h,h&&t.mandatory&&a.length<=1||!h&&t.max!=null&&a.length+1>t.max)return;c<0&&y?a.push(w):c>=0&&!y&&a.splice(c,1),E.value=a}else{const a=E.value.includes(w);if(t.mandatory&&a)return;E.value=y??!a?[w]:[]}}function i(w){if(t.multiple,E.value.length){const y=E.value[0],m=f.findIndex(h=>h.id===y);let a=(m+w)%f.length,c=f[a];for(;c.disabled&&a!==m;)a=(a+w)%f.length,c=f[a];if(c.disabled)return;E.value=[f[a].id]}else{const y=f.find(m=>!m.disabled);y&&(E.value=[y.id])}}const S={register:s,unregister:n,selected:E,select:b,disabled:ji(t,"disabled"),prev:()=>i(f.length-1),next:()=>i(1),isSelected:w=>E.value.includes(w),selectedClass:nr(()=>t.selectedClass),items:nr(()=>f),getItemIndex:w=>kRe(f,w)};return md(e,S),S}function kRe(t,e){const o=B2e(t,[e]);return o.length?t.findIndex(f=>f.id===o[0]):-1}function B2e(t,e){const o=[];return e.forEach(f=>{const E=t.find(s=>R4(f,s.value)),d=t[f];(E==null?void 0:E.value)!=null?o.push(E.id):d!=null&&o.push(d.id)}),o}function TRe(t,e){const o=[];return e.forEach(f=>{const E=t.findIndex(d=>d.id===f);if(~E){const d=t[E];o.push(d.value!=null?d.value:E)}}),o}const z2e=Symbol.for("vuetify:v-btn-toggle"),CRe=gi({...D2e(),...hq()},"VBtnToggle"),N2e=Oa()({name:"VBtnToggle",props:CRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isSelected:f,next:E,prev:d,select:s,selected:n}=pq(t,z2e);return Ga(()=>{const u=Rge.filterProps(t);return $t(Rge,qi({class:["v-btn-toggle",t.class]},u,{style:t.style}),{default:()=>{var b;return[(b=o.default)==null?void 0:b.call(o,{isSelected:f,next:E,prev:d,select:s,selected:n})]}})}),{next:E,prev:d,select:s}}});const F2e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},$2e={component:t=>U1(U2e,{...t,class:"mdi"})},Hl=[String,Function,Object,Array],tle=Symbol.for("vuetify:icons"),mq=gi({icon:{type:Hl},tag:{type:String,required:!0}},"icon"),Lge=Oa()({name:"VComponentIcon",props:mq(),setup(t,e){let{slots:o}=e;return()=>{const f=t.icon;return $t(t.tag,null,{default:()=>{var E;return[t.icon?$t(f,null,null):(E=o.default)==null?void 0:E.call(o)]}})}}}),V2e=PM({name:"VSvgIcon",inheritAttrs:!1,props:mq(),setup(t,e){let{attrs:o}=e;return()=>$t(t.tag,qi(o,{style:null}),{default:()=>[$t("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(f=>Array.isArray(f)?$t("path",{d:f[0],"fill-opacity":f[1]},null):$t("path",{d:f},null)):$t("path",{d:t.icon},null)])]})}});PM({name:"VLigatureIcon",props:mq(),setup(t){return()=>$t(t.tag,null,{default:()=>[t.icon]})}});const U2e=PM({name:"VClassIcon",props:mq(),setup(t){return()=>$t(t.tag,{class:t.icon},null)}});function ARe(){return{svg:{component:V2e},class:{component:U2e}}}function MRe(t){const e=ARe(),o=(t==null?void 0:t.defaultSet)??"mdi";return o==="mdi"&&!e.mdi&&(e.mdi=$2e),Jg({defaultSet:o,sets:e,aliases:{...F2e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},t)}const ERe=t=>{const e=Kl(tle);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:nr(()=>{var u;const f=Va(t);if(!f)return{component:Lge};let E=f;if(typeof E=="string"&&(E=E.trim(),E.startsWith("$")&&(E=(u=e.aliases)==null?void 0:u[E.slice(1)])),Array.isArray(E))return{component:V2e,icon:E};if(typeof E!="string")return{component:Lge,icon:E};const d=Object.keys(e.sets).find(b=>typeof E=="string"&&E.startsWith(`${b}:`)),s=d?E.slice(d.length+1):E;return{component:e.sets[d??e.defaultSet].component,icon:s}})}},PRe=["x-small","small","default","large","x-large"],sC=gi({size:{type:[String,Number],default:"default"}},"size");function xD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return uue(()=>{let o,f;return aZ(PRe,t.size)?o=`${e}--size-${t.size}`:t.size&&(f={width:is(t.size),height:is(t.size)}),{sizeClasses:o,sizeStyles:f}})}const RRe=gi({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Hl,...Js(),...sC(),...tf({tag:"i"}),...gd()},"VIcon"),jl=Oa()({name:"VIcon",props:RRe(),setup(t,e){let{attrs:o,slots:f}=e;const E=qo(),{themeClasses:d}=th(t),{iconData:s}=ERe(nr(()=>E.value||t.icon)),{sizeClasses:n}=xD(t),{textColorClasses:u,textColorStyles:b}=ry(ji(t,"color"));return Ga(()=>{var w,y;const i=(w=f.default)==null?void 0:w.call(f);i&&(E.value=(y=l2e(i).filter(m=>m.type===lD&&m.children&&typeof m.children=="string")[0])==null?void 0:y.children);const S=!!(o.onClick||o.onClickOnce);return $t(s.value.component,{tag:t.tag,icon:s.value.icon,class:["v-icon","notranslate",d.value,n.value,u.value,{"v-icon--clickable":S,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[n.value?void 0:{fontSize:is(t.size),height:is(t.size),width:is(t.size)},b.value,t.style],role:S?"button":void 0,"aria-hidden":!S,tabindex:S?t.disabled?-1:0:void 0},{default:()=>[i]})}),{}}});function j2e(t,e){const o=qo(),f=Gi(!1);if(sue){const E=new IntersectionObserver(d=>{t==null||t(d,E),f.value=!!d.find(s=>s.isIntersecting)},e);Em(()=>{E.disconnect()}),ia(o,(d,s)=>{s&&(E.unobserve(s),f.value=!1),d&&E.observe(d)},{flush:"post"})}return{intersectionRef:o,isIntersecting:f}}const LRe=gi({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Js(),...sC(),...tf({tag:"div"}),...gd()},"VProgressCircular"),lC=Oa()({name:"VProgressCircular",props:LRe(),setup(t,e){let{slots:o}=e;const f=20,E=2*Math.PI*f,d=qo(),{themeClasses:s}=th(t),{sizeClasses:n,sizeStyles:u}=xD(t),{textColorClasses:b,textColorStyles:i}=ry(ji(t,"color")),{textColorClasses:S,textColorStyles:w}=ry(ji(t,"bgColor")),{intersectionRef:y,isIntersecting:m}=j2e(),{resizeRef:a,contentRect:c}=T4(),h=nr(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),p=nr(()=>Number(t.width)),v=nr(()=>u.value?Number(t.size):c.value?c.value.width:Math.max(p.value,32)),_=nr(()=>f/(1-p.value/v.value)*2),O=nr(()=>p.value/v.value*_.value),C=nr(()=>is((100-h.value)/100*E));return Gp(()=>{y.value=d.value,a.value=d.value}),Ga(()=>$t(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},s.value,n.value,b.value,t.class],style:[u.value,i.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:h.value},{default:()=>[$t("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[$t("circle",{class:["v-progress-circular__underlay",S.value],style:w.value,fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":0},null),$t("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:f,"stroke-width":O.value,"stroke-dasharray":E,"stroke-dashoffset":C.value},null)]),o.default&&$t("div",{class:"v-progress-circular__content"},[o.default({value:h.value})])]})),{}}});const Ige={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},_D=gi({location:String},"location");function gq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2?arguments[2]:void 0;const{isRtl:f}=n0();return{locationStyles:nr(()=>{if(!t.location)return{};const{side:d,align:s}=Kse(t.location.split(" ").length>1?t.location:`${t.location} center`,f.value);function n(b){return o?o(b):0}const u={};return d!=="center"&&(e?u[Ige[d]]=`calc(100% - ${n(d)}px)`:u[d]=0),s!=="center"?e?u[Ige[s]]=`calc(100% - ${n(s)}px)`:u[s]=0:(d==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),u})}}const IRe=gi({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Js(),..._D({location:"top"}),...Pm(),...tf(),...gd()},"VProgressLinear"),Q2e=Oa()({name:"VProgressLinear",props:IRe(),emits:{"update:modelValue":t=>!0},setup(t,e){var P;let{slots:o}=e;const f=ql(t,"modelValue"),{isRtl:E,rtlClasses:d}=n0(),{themeClasses:s}=th(t),{locationStyles:n}=gq(t),{textColorClasses:u,textColorStyles:b}=ry(t,"color"),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>t.bgColor||t.color)),{backgroundColorClasses:w,backgroundColorStyles:y}=dg(nr(()=>t.bufferColor||t.bgColor||t.color)),{backgroundColorClasses:m,backgroundColorStyles:a}=dg(t,"color"),{roundedClasses:c}=mg(t),{intersectionRef:h,isIntersecting:p}=j2e(),v=nr(()=>parseFloat(t.max)),_=nr(()=>parseFloat(t.height)),O=nr(()=>ug(parseFloat(t.bufferValue)/v.value*100,0,100)),C=nr(()=>ug(parseFloat(f.value)/v.value*100,0,100)),x=nr(()=>E.value!==t.reverse),R=nr(()=>t.indeterminate?"fade-transition":"slide-x-transition"),M=Hu&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function T(A){if(!h.value)return;const{left:L,right:D,width:k}=h.value.getBoundingClientRect(),I=x.value?k-A.clientX+(D-k):A.clientX-L;f.value=Math.round(I/k*v.value)}return Ga(()=>$t(t.tag,{ref:h,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&p.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},c.value,s.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?is(_.value):0,"--v-progress-linear-height":is(_.value),...t.absolute?n.value:{}},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:C.value,onClick:t.clickable&&T},{default:()=>[t.stream&&$t("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...b.value,[x.value?"left":"right"]:is(-_.value),borderTop:`${is(_.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${is(_.value/4)})`,width:is(100-O.value,"%"),"--v-progress-linear-stream-to":is(_.value*(x.value?1:-1))}},null),$t("div",{class:["v-progress-linear__background",M?void 0:i.value],style:[S.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}]},null),$t("div",{class:["v-progress-linear__buffer",M?void 0:w.value],style:[y.value,{opacity:parseFloat(t.bufferOpacity),width:is(O.value,"%")}]},null),$t(C_,{name:R.value},{default:()=>[t.indeterminate?$t("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(A=>$t("div",{key:A,class:["v-progress-linear__indeterminate",A,M?void 0:m.value],style:a.value},null))]):$t("div",{class:["v-progress-linear__determinate",M?void 0:m.value],style:[a.value,{width:is(C.value,"%")}]},null)]}),o.default&&$t("div",{class:"v-progress-linear__content"},[o.default({value:C.value,buffer:O.value})])]})),{}}}),vq=gi({loading:[Boolean,String]},"loader");function wD(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{loaderClasses:nr(()=>({[`${e}--loading`]:t.loading}))}}function yq(t,e){var f;let{slots:o}=e;return $t("div",{class:`${t.name}__loader`},[((f=o.default)==null?void 0:f.call(o,{color:t.color,isActive:t.active}))||$t(Q2e,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const DRe=["static","relative","fixed","absolute","sticky"],bq=gi({position:{type:String,validator:t=>DRe.includes(t)}},"position");function xq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();return{positionClasses:nr(()=>t.position?`${e}--${t.position}`:void 0)}}function BRe(){const t=Xh("useRoute");return nr(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function H2e(){var t,e;return(e=(t=Xh("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function _q(t,e){var b,i;const o=rM("RouterLink"),f=nr(()=>!!(t.href||t.to)),E=nr(()=>(f==null?void 0:f.value)||age(e,"click")||age(t,"click"));if(typeof o=="string"||!("useLink"in o))return{isLink:f,isClickable:E,href:ji(t,"href")};const d=nr(()=>({...t,to:ji(()=>t.to||"")})),s=o.useLink(d.value),n=nr(()=>t.to?s:void 0),u=BRe();return{isLink:f,isClickable:E,route:(b=n.value)==null?void 0:b.route,navigate:(i=n.value)==null?void 0:i.navigate,isActive:nr(()=>{var S,w,y;return n.value?t.exact?u.value?((y=n.value.isExactActive)==null?void 0:y.value)&&R4(n.value.route.value.query,u.value.query):((w=n.value.isExactActive)==null?void 0:w.value)??!1:((S=n.value.isActive)==null?void 0:S.value)??!1:!1}),href:nr(()=>{var S;return t.to?(S=n.value)==null?void 0:S.route.value.href:t.href})}}const wq=gi({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let iae=!1;function zRe(t,e){let o=!1,f,E;Hu&&(Vc(()=>{window.addEventListener("popstate",d),f=t==null?void 0:t.beforeEach((s,n,u)=>{iae?o?e(u):u():setTimeout(()=>o?e(u):u()),iae=!0}),E=t==null?void 0:t.afterEach(()=>{iae=!1})}),hg(()=>{window.removeEventListener("popstate",d),f==null||f(),E==null||E()}));function d(s){var n;(n=s.state)!=null&&n.replaced||(o=!0,setTimeout(()=>o=!1))}}function NRe(t,e){ia(()=>{var o;return(o=t.isActive)==null?void 0:o.value},o=>{t.isLink.value&&o&&e&&Vc(()=>{e(!0)})},{immediate:!0})}const nle=Symbol("rippleStop"),FRe=80;function Dge(t,e){t.style.transform=e,t.style.webkitTransform=e}function rle(t){return t.constructor.name==="TouchEvent"}function Z2e(t){return t.constructor.name==="KeyboardEvent"}const $Re=function(t,e){var S;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=0,E=0;if(!Z2e(t)){const w=e.getBoundingClientRect(),y=rle(t)?t.touches[t.touches.length-1]:t;f=y.clientX-w.left,E=y.clientY-w.top}let d=0,s=.3;(S=e._ripple)!=null&&S.circle?(s=.15,d=e.clientWidth/2,d=o.center?d:d+Math.sqrt((f-d)**2+(E-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const n=`${(e.clientWidth-d*2)/2}px`,u=`${(e.clientHeight-d*2)/2}px`,b=o.center?n:`${f-d}px`,i=o.center?u:`${E-d}px`;return{radius:d,scale:s,x:b,y:i,centerX:n,centerY:u}},hZ={show(t,e){var y;let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=e==null?void 0:e._ripple)!=null&&y.enabled))return;const f=document.createElement("span"),E=document.createElement("span");f.appendChild(E),f.className="v-ripple__container",o.class&&(f.className+=` ${o.class}`);const{radius:d,scale:s,x:n,y:u,centerX:b,centerY:i}=$Re(t,e,o),S=`${d*2}px`;E.className="v-ripple__animation",E.style.width=S,E.style.height=S,e.appendChild(f);const w=window.getComputedStyle(e);w&&w.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),E.classList.add("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--visible"),Dge(E,`translate(${n}, ${u}) scale3d(${s},${s},${s})`),E.dataset.activated=String(performance.now()),setTimeout(()=>{E.classList.remove("v-ripple__animation--enter"),E.classList.add("v-ripple__animation--in"),Dge(E,`translate(${b}, ${i}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const o=e[e.length-1];if(o.dataset.isHiding)return;o.dataset.isHiding="true";const f=performance.now()-Number(o.dataset.activated),E=Math.max(250-f,0);setTimeout(()=>{o.classList.remove("v-ripple__animation--in"),o.classList.add("v-ripple__animation--out"),setTimeout(()=>{var n;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((n=o.parentNode)==null?void 0:n.parentNode)===t&&t.removeChild(o.parentNode)},300)},E)}};function q2e(t){return typeof t>"u"||!!t}function qI(t){const e={},o=t.currentTarget;if(!(!(o!=null&&o._ripple)||o._ripple.touched||t[nle])){if(t[nle]=!0,rle(t))o._ripple.touched=!0,o._ripple.isTouch=!0;else if(o._ripple.isTouch)return;if(e.center=o._ripple.centered||Z2e(t),o._ripple.class&&(e.class=o._ripple.class),rle(t)){if(o._ripple.showTimerCommit)return;o._ripple.showTimerCommit=()=>{hZ.show(t,o,e)},o._ripple.showTimer=window.setTimeout(()=>{var f;(f=o==null?void 0:o._ripple)!=null&&f.showTimerCommit&&(o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null)},FRe)}else hZ.show(t,o,e)}}function Bge(t){t[nle]=!0}function Xv(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{Xv(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),hZ.hide(e)}}function W2e(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let WI=!1;function Y2e(t){!WI&&(t.keyCode===ege.enter||t.keyCode===ege.space)&&(WI=!0,qI(t))}function X2e(t){WI=!1,Xv(t)}function G2e(t){WI&&(WI=!1,Xv(t))}function K2e(t,e,o){const{value:f,modifiers:E}=e,d=q2e(f);if(d||hZ.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=E.center,t._ripple.circle=E.circle,Yse(f)&&f.class&&(t._ripple.class=f.class),d&&!o){if(E.stop){t.addEventListener("touchstart",Bge,{passive:!0}),t.addEventListener("mousedown",Bge);return}t.addEventListener("touchstart",qI,{passive:!0}),t.addEventListener("touchend",Xv,{passive:!0}),t.addEventListener("touchmove",W2e,{passive:!0}),t.addEventListener("touchcancel",Xv),t.addEventListener("mousedown",qI),t.addEventListener("mouseup",Xv),t.addEventListener("mouseleave",Xv),t.addEventListener("keydown",Y2e),t.addEventListener("keyup",X2e),t.addEventListener("blur",G2e),t.addEventListener("dragstart",Xv,{passive:!0})}else!d&&o&&J2e(t)}function J2e(t){t.removeEventListener("mousedown",qI),t.removeEventListener("touchstart",qI),t.removeEventListener("touchend",Xv),t.removeEventListener("touchmove",W2e),t.removeEventListener("touchcancel",Xv),t.removeEventListener("mouseup",Xv),t.removeEventListener("mouseleave",Xv),t.removeEventListener("keydown",Y2e),t.removeEventListener("keyup",X2e),t.removeEventListener("dragstart",Xv),t.removeEventListener("blur",G2e)}function VRe(t,e){K2e(t,e,!1)}function URe(t){delete t._ripple,J2e(t)}function jRe(t,e){if(e.value===e.oldValue)return;const o=q2e(e.oldValue);K2e(t,e,o)}const cC={mounted:VRe,unmounted:URe,updated:jRe},QRe=gi({active:{type:Boolean,default:void 0},baseColor:String,symbol:{type:null,default:z2e},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Hl,appendIcon:Hl,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...B_(),...Js(),...Q1(),...I_(),...ay(),...wue(),...vq(),..._D(),...bq(),...Pm(),...wq(),...sC(),...tf({tag:"button"}),...gd(),...Lx({variant:"elevated"})},"VBtn"),Ja=Oa()({name:"VBtn",props:QRe(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{densityClasses:s}=Rx(t),{dimensionStyles:n}=D_(t),{elevationClasses:u}=cb(t),{loaderClasses:b}=wD(t),{locationStyles:i}=gq(t),{positionClasses:S}=xq(t),{roundedClasses:w}=mg(t),{sizeClasses:y,sizeStyles:m}=xD(t),a=Oue(t,t.symbol,!1),c=_q(t,o),h=nr(()=>{var T;return t.active!==void 0?t.active:c.isLink.value?(T=c.isActive)==null?void 0:T.value:a==null?void 0:a.isSelected.value}),p=nr(()=>{var P,A;return{color:(a==null?void 0:a.isSelected.value)&&(!c.isLink.value||((P=c.isActive)==null?void 0:P.value))||!a||((A=c.isActive)==null?void 0:A.value)?t.color??t.baseColor:t.baseColor,variant:t.variant}}),{colorClasses:v,colorStyles:_,variantClasses:O}=aC(p),C=nr(()=>(a==null?void 0:a.disabled.value)||t.disabled),x=nr(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),R=nr(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function M(T){var P;C.value||c.isLink.value&&(T.metaKey||T.ctrlKey||T.shiftKey||T.button!==0||o.target==="_blank")||((P=c.navigate)==null||P.call(c,T),a==null||a.toggle())}return NRe(c,a==null?void 0:a.select),Ga(()=>{const T=c.isLink.value?"a":t.tag,P=!!(t.prependIcon||f.prepend),A=!!(t.appendIcon||f.append),L=!!(t.icon&&t.icon!==!0);return Kp($t(T,{type:T==="a"?void 0:"button",class:["v-btn",a==null?void 0:a.selectedClass.value,{"v-btn--active":h.value,"v-btn--block":t.block,"v-btn--disabled":C.value,"v-btn--elevated":x.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},E.value,d.value,v.value,s.value,u.value,b.value,S.value,w.value,y.value,O.value,t.class],style:[_.value,n.value,i.value,m.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:C.value||void 0,href:c.href.value,tabindex:t.loading||t.readonly?-1:void 0,onClick:M,value:R.value},{default:()=>{var D;return[iC(!0,"v-btn"),!t.icon&&P&&$t("span",{key:"prepend",class:"v-btn__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},f.prepend):$t(jl,{key:"prepend-icon",icon:t.prependIcon},null)]),$t("span",{class:"v-btn__content","data-no-activator":""},[!f.default&&L?$t(jl,{key:"content-icon",icon:t.icon},null):$t(ef,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var k;return[((k=f.default)==null?void 0:k.call(f))??t.text]}})]),!t.icon&&A&&$t("span",{key:"append",class:"v-btn__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},f.append):$t(jl,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&$t("span",{key:"loader",class:"v-btn__loader"},[((D=f.loader)==null?void 0:D.call(f))??$t(lC,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}}),[[cC,!C.value&&t.ripple,"",{center:!!t.icon}]])}),{group:a}}});const HRe=fq("v-alert-title"),ZRe=["success","info","warning","error"],qRe=gi({border:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["top","end","bottom","start"].includes(t)},borderColor:String,closable:Boolean,closeIcon:{type:Hl,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:t=>ZRe.includes(t)},...Js(),...Q1(),...I_(),...ay(),..._D(),...bq(),...Pm(),...tf(),...gd(),...Lx({variant:"flat"})},"VAlert"),tM=Oa()({name:"VAlert",props:qRe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),d=nr(()=>{if(t.icon!==!1)return t.type?t.icon??`$${t.type}`:t.icon}),s=nr(()=>({color:t.color??t.type,variant:t.variant})),{themeClasses:n}=th(t),{colorClasses:u,colorStyles:b,variantClasses:i}=aC(s),{densityClasses:S}=Rx(t),{dimensionStyles:w}=D_(t),{elevationClasses:y}=cb(t),{locationStyles:m}=gq(t),{positionClasses:a}=xq(t),{roundedClasses:c}=mg(t),{textColorClasses:h,textColorStyles:p}=ry(ji(t,"borderColor")),{t:v}=oy(),_=nr(()=>({"aria-label":v(t.closeLabel),onClick(O){E.value=!1,o("click:close",O)}}));return()=>{const O=!!(f.prepend||d.value),C=!!(f.title||t.title),x=!!(f.close||t.closable);return E.value&&$t(t.tag,{class:["v-alert",t.border&&{"v-alert--border":!!t.border,[`v-alert--border-${t.border===!0?"start":t.border}`]:!0},{"v-alert--prominent":t.prominent},n.value,u.value,S.value,y.value,a.value,c.value,i.value,t.class],style:[b.value,w.value,m.value,t.style],role:"alert"},{default:()=>{var R,M;return[iC(!1,"v-alert"),t.border&&$t("div",{key:"border",class:["v-alert__border",h.value],style:p.value},null),O&&$t("div",{key:"prepend",class:"v-alert__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!d.value,defaults:{VIcon:{density:t.density,icon:d.value,size:t.prominent?44:28}}},f.prepend):$t(jl,{key:"prepend-icon",density:t.density,icon:d.value,size:t.prominent?44:28},null)]),$t("div",{class:"v-alert__content"},[C&&$t(HRe,{key:"title"},{default:()=>{var T;return[((T=f.title)==null?void 0:T.call(f))??t.title]}}),((R=f.text)==null?void 0:R.call(f))??t.text,(M=f.default)==null?void 0:M.call(f)]),f.append&&$t("div",{key:"append",class:"v-alert__append"},[f.append()]),x&&$t("div",{key:"close",class:"v-alert__close"},[f.close?$t(ef,{key:"close-defaults",defaults:{VBtn:{icon:t.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var T;return[(T=f.close)==null?void 0:T.call(f,{props:_.value})]}}):$t(Ja,qi({key:"close-btn",icon:t.closeIcon,size:"x-small",variant:"text"},_.value),null)])]}})}}});const WRe=gi({start:Boolean,end:Boolean,icon:Hl,image:String,text:String,...Js(),...Q1(),...Pm(),...sC(),...tf(),...gd(),...Lx({variant:"flat"})},"VAvatar"),DO=Oa()({name:"VAvatar",props:WRe(),setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{colorClasses:E,colorStyles:d,variantClasses:s}=aC(t),{densityClasses:n}=Rx(t),{roundedClasses:u}=mg(t),{sizeClasses:b,sizeStyles:i}=xD(t);return Ga(()=>$t(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},f.value,E.value,n.value,u.value,b.value,s.value,t.class],style:[d.value,i.value,t.style]},{default:()=>[o.default?$t(ef,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[o.default()]}):t.image?$t(oC,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?$t(jl,{key:"icon",icon:t.icon},null):t.text,iC(!1,"v-avatar")]})),{}}});const YRe=gi({text:String,onClick:fg(),...Js(),...gd()},"VLabel"),Oq=Oa()({name:"VLabel",props:YRe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var f;return $t("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(f=o.default)==null?void 0:f.call(o)])}),{}}});const e_e=Symbol.for("vuetify:selection-control-group"),t_e=gi({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Hl,trueIcon:Hl,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:R4},...Js(),...Q1(),...gd()},"SelectionControlGroup"),XRe=gi({...t_e({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Oa()({name:"VSelectionControlGroup",props:XRe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),E=j1(),d=nr(()=>t.id||`v-selection-control-group-${E}`),s=nr(()=>t.name||d.value),n=new Set;return md(e_e,{modelValue:f,forceUpdate:()=>{n.forEach(u=>u())},onForceUpdate:u=>{n.add(u),hg(()=>{n.delete(u)})}}),ab({[t.defaultsTarget]:{color:ji(t,"color"),disabled:ji(t,"disabled"),density:ji(t,"density"),error:ji(t,"error"),inline:ji(t,"inline"),modelValue:f,multiple:nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),name:s,falseIcon:ji(t,"falseIcon"),trueIcon:ji(t,"trueIcon"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),type:ji(t,"type"),valueComparator:ji(t,"valueComparator")}}),Ga(()=>{var u;return $t("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(u=o.default)==null?void 0:u.call(o)])}),{}}});const Sue=gi({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Js(),...t_e()},"VSelectionControl");function GRe(t){const e=Kl(e_e,void 0),{densityClasses:o}=Rx(t),f=ql(t,"modelValue"),E=nr(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=nr(()=>t.falseValue!==void 0?t.falseValue:!1),s=nr(()=>!!t.multiple||t.multiple==null&&Array.isArray(f.value)),n=nr({get(){const y=e?e.modelValue.value:f.value;return s.value?Pp(y).some(m=>t.valueComparator(m,E.value)):t.valueComparator(y,E.value)},set(y){if(t.readonly)return;const m=y?E.value:d.value;let a=m;s.value&&(a=y?[...Pp(f.value),m]:Pp(f.value).filter(c=>!t.valueComparator(c,E.value))),e?e.modelValue.value=a:f.value=a}}),{textColorClasses:u,textColorStyles:b}=ry(nr(()=>{if(!(t.error||t.disabled))return n.value?t.color:t.baseColor})),{backgroundColorClasses:i,backgroundColorStyles:S}=dg(nr(()=>n.value&&!t.error&&!t.disabled?t.color:t.baseColor)),w=nr(()=>n.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:o,trueValue:E,falseValue:d,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,icon:w}}const pZ=Oa()({name:"VSelectionControl",directives:{Ripple:cC},inheritAttrs:!1,props:Sue(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{group:E,densityClasses:d,icon:s,model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,trueValue:w}=GRe(t),y=j1(),m=Gi(!1),a=Gi(!1),c=qo(),h=nr(()=>t.id||`input-${y}`),p=nr(()=>!t.disabled&&!t.readonly);E==null||E.onForceUpdate(()=>{c.value&&(c.value.checked=n.value)});function v(x){p.value&&(m.value=!0,mM(x.target,":focus-visible")!==!1&&(a.value=!0))}function _(){m.value=!1,a.value=!1}function O(x){x.stopPropagation()}function C(x){if(!p.value){c.value&&(c.value.checked=n.value);return}t.readonly&&E&&Vc(()=>E.forceUpdate()),n.value=x.target.checked}return Ga(()=>{var P,A;const x=f.label?f.label({label:t.label,props:{for:h.value}}):t.label,[R,M]=bD(o),T=$t("input",qi({ref:c,checked:n.value,disabled:!!t.disabled,id:h.value,onBlur:_,onFocus:v,onInput:C,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:w.value,name:t.name,"aria-checked":t.type==="checkbox"?n.value:void 0},M),null);return $t("div",qi({class:["v-selection-control",{"v-selection-control--dirty":n.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":a.value,"v-selection-control--inline":t.inline},d.value,t.class]},R,{style:t.style}),[$t("div",{class:["v-selection-control__wrapper",u.value],style:b.value},[(P=f.default)==null?void 0:P.call(f,{backgroundColorClasses:i,backgroundColorStyles:S}),Kp($t("div",{class:["v-selection-control__input"]},[((A=f.input)==null?void 0:A.call(f,{model:n,textColorClasses:u,textColorStyles:b,backgroundColorClasses:i,backgroundColorStyles:S,inputNode:T,icon:s.value,props:{onFocus:v,onBlur:_,id:h.value}}))??$t(Ea,null,[s.value&&$t(jl,{key:"icon",icon:s.value},null),T])]),[[M_("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),x&&$t(Oq,{for:h.value,onClick:O},{default:()=>[x]})])}),{isFocused:m,input:c}}}),KRe=gi({indeterminate:Boolean,indeterminateIcon:{type:Hl,default:"$checkboxIndeterminate"},...Sue({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),RM=Oa()({name:"VCheckboxBtn",props:KRe(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"indeterminate"),E=ql(t,"modelValue");function d(u){f.value&&(f.value=!1)}const s=nr(()=>f.value?t.indeterminateIcon:t.falseIcon),n=nr(()=>f.value?t.indeterminateIcon:t.trueIcon);return Ga(()=>{const u=R_(pZ.filterProps(t),["modelValue"]);return $t(pZ,qi(u,{modelValue:E.value,"onUpdate:modelValue":[b=>E.value=b,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:s.value,trueIcon:n.value,"aria-checked":f.value?"mixed":void 0}),o)}),{}}});function n_e(t){const{t:e}=oy();function o(f){let{name:E}=f;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[E],s=t[`onClick:${E}`],n=s&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return $t(jl,{icon:t[`${E}Icon`],"aria-label":n,onClick:s},null)}return{InputIcon:o}}const JRe=gi({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Js(),...rC({transition:{component:E2e,leaveAbsolute:!0,group:!0}})},"VMessages"),eLe=Oa()({name:"VMessages",props:JRe(),setup(t,e){let{slots:o}=e;const f=nr(()=>Pp(t.messages)),{textColorClasses:E,textColorStyles:d}=ry(nr(()=>t.color));return Ga(()=>$t(f4,{transition:t.transition,tag:"div",class:["v-messages",E.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&f.value.map((s,n)=>$t("div",{class:"v-messages__message",key:`${n}-${f.value}`},[o.message?o.message({message:s}):s]))]})),{}}}),Sq=gi({focused:Boolean,"onUpdate:focused":fg()},"focus");function uC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=ql(t,"focused"),f=nr(()=>({[`${e}--focused`]:o.value}));function E(){o.value=!0}function d(){o.value=!1}return{focusClasses:f,isFocused:o,focus:E,blur:d}}const r_e=Symbol.for("vuetify:form"),tLe=gi({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function nLe(t){const e=ql(t,"modelValue"),o=nr(()=>t.disabled),f=nr(()=>t.readonly),E=Gi(!1),d=qo([]),s=qo([]);async function n(){const i=[];let S=!0;s.value=[],E.value=!0;for(const w of d.value){const y=await w.validate();if(y.length>0&&(S=!1,i.push({id:w.id,errorMessages:y})),!S&&t.fastFail)break}return s.value=i,E.value=!1,{valid:S,errors:s.value}}function u(){d.value.forEach(i=>i.reset())}function b(){d.value.forEach(i=>i.resetValidation())}return ia(d,()=>{let i=0,S=0;const w=[];for(const y of d.value)y.isValid===!1?(S++,w.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&i++;s.value=w,e.value=S>0?!1:i===d.value.length?!0:null},{deep:!0,flush:"post"}),md(r_e,{register:i=>{let{id:S,vm:w,validate:y,reset:m,resetValidation:a}=i;d.value.some(c=>c.id===S),d.value.push({id:S,validate:y,reset:m,resetValidation:a,vm:aD(w),isValid:null,errorMessages:[]})},unregister:i=>{d.value=d.value.filter(S=>S.id!==i)},update:(i,S,w)=>{const y=d.value.find(m=>m.id===i);y&&(y.isValid=S,y.errorMessages=w)},isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validateOn:ji(t,"validateOn")}),{errors:s,isDisabled:o,isReadonly:f,isValidating:E,isValid:e,items:d,validate:n,reset:u,resetValidation:b}}function kq(){return Kl(r_e,null)}const rLe=gi({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Sq()},"validation");function oLe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_(),o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j1();const f=ql(t,"modelValue"),E=nr(()=>t.validationValue===void 0?f.value:t.validationValue),d=kq(),s=qo([]),n=Gi(!0),u=nr(()=>!!(Pp(f.value===""?null:f.value).length||Pp(E.value===""?null:E.value).length)),b=nr(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),i=nr(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),S=nr(()=>{var O;return(O=t.errorMessages)!=null&&O.length?Pp(t.errorMessages).concat(s.value).slice(0,Math.max(0,+t.maxErrors)):s.value}),w=nr(()=>{let O=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";O==="lazy"&&(O="input lazy");const C=new Set((O==null?void 0:O.split(" "))??[]);return{blur:C.has("blur")||C.has("input"),input:C.has("input"),submit:C.has("submit"),lazy:C.has("lazy")}}),y=nr(()=>{var O;return t.error||(O=t.errorMessages)!=null&&O.length?!1:t.rules.length?n.value?s.value.length||w.value.lazy?null:!0:!s.value.length:!0}),m=Gi(!1),a=nr(()=>({[`${e}--error`]:y.value===!1,[`${e}--dirty`]:u.value,[`${e}--disabled`]:b.value,[`${e}--readonly`]:i.value})),c=Xh("validation"),h=nr(()=>t.name??Va(o));rce(()=>{d==null||d.register({id:h.value,vm:c,validate:_,reset:p,resetValidation:v})}),Em(()=>{d==null||d.unregister(h.value)}),pg(async()=>{w.value.lazy||await _(!0),d==null||d.update(h.value,y.value,S.value)}),$1(()=>w.value.input,()=>{ia(E,()=>{if(E.value!=null)_();else if(t.focused){const O=ia(()=>t.focused,C=>{C||_(),O()})}})}),$1(()=>w.value.blur,()=>{ia(()=>t.focused,O=>{O||_()})}),ia([y,S],()=>{d==null||d.update(h.value,y.value,S.value)});async function p(){f.value=null,await Vc(),await v()}async function v(){n.value=!0,w.value.lazy?s.value=[]:await _(!0)}async function _(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=[];m.value=!0;for(const x of t.rules){if(C.length>=+(t.maxErrors??1))break;const M=await(typeof x=="function"?x:()=>x)(E.value);if(M!==!0){if(M!==!1&&typeof M!="string"){console.warn(`${M} is not a valid value. Rule functions must return boolean true or a string.`);continue}C.push(M||"")}}return s.value=C,m.value=!1,n.value=O,s.value}return{errorMessages:S,isDirty:u,isDisabled:b,isReadonly:i,isPristine:n,isValid:y,isValidating:m,reset:p,resetValidation:v,validate:_,validationClasses:a}}const fC=gi({id:String,appendIcon:Hl,centerAffix:{type:Boolean,default:!0},prependIcon:Hl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":fg(),"onClick:append":fg(),...Js(),...Q1(),...s9e(I_(),["maxWidth","minWidth","width"]),...gd(),...rLe()},"VInput"),sb=Oa()({name:"VInput",props:{...fC()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const{densityClasses:d}=Rx(t),{dimensionStyles:s}=D_(t),{themeClasses:n}=th(t),{rtlClasses:u}=n0(),{InputIcon:b}=n_e(t),i=j1(),S=nr(()=>t.id||`input-${i}`),w=nr(()=>`${S.value}-messages`),{errorMessages:y,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C,validationClasses:x}=oLe(t,"v-input",S),R=nr(()=>({id:S,messagesId:w,isDirty:m,isDisabled:a,isReadonly:c,isPristine:h,isValid:p,isValidating:v,reset:_,resetValidation:O,validate:C})),M=nr(()=>{var T;return(T=t.errorMessages)!=null&&T.length||!h.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Ga(()=>{var D,k,I,z;const T=!!(f.prepend||t.prependIcon),P=!!(f.append||t.appendIcon),A=M.value.length>0,L=!t.hideDetails||t.hideDetails==="auto"&&(A||!!f.details);return $t("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},d.value,n.value,u.value,x.value,t.class],style:[s.value,t.style]},[T&&$t("div",{key:"prepend",class:"v-input__prepend"},[(D=f.prepend)==null?void 0:D.call(f,R.value),t.prependIcon&&$t(b,{key:"prepend-icon",name:"prepend"},null)]),f.default&&$t("div",{class:"v-input__control"},[(k=f.default)==null?void 0:k.call(f,R.value)]),P&&$t("div",{key:"append",class:"v-input__append"},[t.appendIcon&&$t(b,{key:"append-icon",name:"append"},null),(I=f.append)==null?void 0:I.call(f,R.value)]),L&&$t("div",{class:"v-input__details"},[$t(eLe,{id:w.value,active:A,messages:M.value},{message:f.message}),(z=f.details)==null?void 0:z.call(f,R.value)])])}),{reset:_,resetValidation:O,validate:C,isValid:p,errorMessages:y}}});const Tq=["sm","md","lg","xl","xxl"],ole=Symbol.for("vuetify:display"),zge={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},iLe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zge;return Jg(zge,t)};function Nge(t){return Hu&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function Fge(t){return Hu&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function $ge(t){const e=Hu&&!t?window.navigator.userAgent:"ssr";function o(m){return!!e.match(m)}const f=o(/android/i),E=o(/iphone|ipad|ipod/i),d=o(/cordova/i),s=o(/electron/i),n=o(/chrome/i),u=o(/edge/i),b=o(/firefox/i),i=o(/opera/i),S=o(/win/i),w=o(/mac/i),y=o(/linux/i);return{android:f,ios:E,cordova:d,electron:s,chrome:n,edge:u,firefox:b,opera:i,win:S,mac:w,linux:y,touch:o9e,ssr:e==="ssr"}}function aLe(t,e){const{thresholds:o,mobileBreakpoint:f}=iLe(t),E=Gi(Fge(e)),d=Gi($ge(e)),s=Am({}),n=Gi(Nge(e));function u(){E.value=Fge(),n.value=Nge()}function b(){u(),d.value=$ge()}return Gp(()=>{const i=n.value=o.xxl,c=i?"xs":S?"sm":w?"md":y?"lg":m?"xl":"xxl",h=typeof f=="number"?f:o[f],p=n.value0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L_();const o=Kl(ole);if(!o)throw new Error("Could not find Vuetify display injection");const f=nr(()=>{if(t.mobile!=null)return t.mobile;if(!t.mobileBreakpoint)return o.mobile.value;const d=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:o.thresholds.value[t.mobileBreakpoint];return o.width.valuee?{[`${e}--mobile`]:f.value}:{});return{...o,displayClasses:E,mobile:f}}const o_e=Symbol.for("vuetify:goto");function i_e(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function sLe(t){return kue(t)??(document.scrollingElement||document.body)}function kue(t){return typeof t=="string"?document.querySelector(t):lue(t)}function aae(t,e,o){if(typeof t=="number")return e&&o?-t:t;let f=kue(t),E=0;for(;f;)E+=e?f.offsetLeft:f.offsetTop,f=f.offsetParent;return E}function lLe(t,e){return{rtl:e.isRtl,options:Jg(i_e(),t)}}async function Vge(t,e,o,f){const E=o?"scrollLeft":"scrollTop",d=Jg((f==null?void 0:f.options)??i_e(),e),s=f==null?void 0:f.rtl.value,n=(typeof t=="number"?t:kue(t))??0,u=d.container==="parent"&&n instanceof HTMLElement?n.parentElement:sLe(d.container),b=typeof d.easing=="function"?d.easing:d.patterns[d.easing];if(!b)throw new TypeError(`Easing function "${d.easing}" not found.`);let i;if(typeof n=="number")i=aae(n,o,s);else if(i=aae(n,o,s)-aae(u,o,s),d.layout){const m=window.getComputedStyle(n).getPropertyValue("--v-layout-top");m&&(i-=parseInt(m,10))}i+=d.offset,i=uLe(u,i,!!s,!!o);const S=u[E]??0;if(i===S)return Promise.resolve(i);const w=performance.now();return new Promise(y=>requestAnimationFrame(function m(a){const h=(a-w)/d.duration,p=Math.floor(S+(i-S)*b(ug(h,0,1)));if(u[E]=p,h>=1&&Math.abs(p-u[E])<10)return y(i);if(h>2)return y(u[E]);requestAnimationFrame(m)}))}function cLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=Kl(o_e),{isRtl:o}=n0();if(!e)throw new Error("[Vuetify] Could not find injected goto instance");const f={...e,rtl:nr(()=>e.rtl.value||o.value)};async function E(d,s){return Vge(d,Jg(t,s),!1,f)}return E.horizontal=async(d,s)=>Vge(d,Jg(t,s),!0,f),E}function uLe(t,e,o,f){const{scrollWidth:E,scrollHeight:d}=t,[s,n]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let u,b;return f?o?(u=-(E-s),b=0):(u=0,b=E-s):(u=0,b=d+-n),Math.max(Math.min(e,b),u)}function fLe(t){let{selectedElement:e,containerElement:o,isRtl:f,isHorizontal:E}=t;const d=YI(E,o),s=a_e(E,f,o),n=YI(E,e),u=s_e(E,e),b=n*.4;return s>u?u-b:s+dtypeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Js(),...OD({mobile:null}),...tf(),...hq({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),jge=Oa()({name:"VSlideGroup",props:l_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{isRtl:f}=n0(),{displayClasses:E,mobile:d}=L4(t),s=pq(t,t.symbol),n=Gi(!1),u=Gi(0),b=Gi(0),i=Gi(0),S=nr(()=>t.direction==="horizontal"),{resizeRef:w,contentRect:y}=T4(),{resizeRef:m,contentRect:a}=T4(),c=cLe(),h=nr(()=>({container:w.el,duration:200,easing:"easeOutQuart"})),p=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[0]):-1),v=nr(()=>s.selected.value.length?s.items.value.findIndex(j=>j.id===s.selected.value[s.selected.value.length-1]):-1);if(Hu){let j=-1;ia(()=>[s.selected.value,y.value,a.value,S.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(y.value&&a.value){const U=S.value?"width":"height";b.value=y.value[U],i.value=a.value[U],n.value=b.value+1=0&&m.el){const U=m.el.children[v.value];O(U,t.centerActive)}})})}const _=Gi(!1);function O(j,U){let X=0;U?X=dLe({containerElement:w.el,isHorizontal:S.value,selectedElement:j}):X=fLe({containerElement:w.el,isHorizontal:S.value,isRtl:f.value,selectedElement:j}),C(X)}function C(j){if(!Hu||!w.el)return;const U=YI(S.value,w.el),X=a_e(S.value,f.value,w.el);if(!(Uge(S.value,w.el)<=U||Math.abs(j-X)<16)){if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;j=Z-K-j}S.value?c.horizontal(j,h.value):c(j,h.value)}}function x(j){const{scrollTop:U,scrollLeft:X}=j.target;u.value=S.value?X:U}function R(j){if(_.value=!0,!(!n.value||!m.el)){for(const U of j.composedPath())for(const X of m.el.children)if(X===U){O(X);return}}}function M(j){_.value=!1}let T=!1;function P(j){var U;!T&&!_.value&&!(j.relatedTarget&&((U=m.el)!=null&&U.contains(j.relatedTarget)))&&D(),T=!1}function A(){T=!0}function L(j){if(!m.el)return;function U(X){j.preventDefault(),D(X)}S.value?j.key==="ArrowRight"?U(f.value?"prev":"next"):j.key==="ArrowLeft"&&U(f.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function D(j){var X,te;if(!m.el)return;let U;if(!j)U=QI(m.el)[0];else if(j==="next"){if(U=(X=m.el.querySelector(":focus"))==null?void 0:X.nextElementSibling,!U)return D("first")}else if(j==="prev"){if(U=(te=m.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!U)return D("last")}else j==="first"?U=m.el.firstElementChild:j==="last"&&(U=m.el.lastElementChild);U&&U.focus({preventScroll:!0})}function k(j){const U=S.value&&f.value?-1:1,X=(j==="prev"?-U:U)*b.value;let te=u.value+X;if(S.value&&f.value&&w.el){const{scrollWidth:Z,offsetWidth:K}=w.el;te+=Z-K}C(te)}const I=nr(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),z=nr(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return n.value||Math.abs(u.value)>0;case"mobile":return d.value||n.value||Math.abs(u.value)>0;default:return!d.value&&(n.value||Math.abs(u.value)>0)}}),$=nr(()=>Math.abs(u.value)>1),Q=nr(()=>{if(!w.value)return!1;const j=Uge(S.value,w.el),U=hLe(S.value,w.el);return j-U-Math.abs(u.value)>1});return Ga(()=>$t(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!S.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":n.value},E.value,t.class],style:t.style,tabindex:_.value||s.selected.value.length?-1:0,onFocus:P},{default:()=>{var j,U,X;return[z.value&&$t("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:A,onClick:()=>$.value&&k("prev")},[((j=o.prev)==null?void 0:j.call(o,I.value))??$t(Mge,null,{default:()=>[$t(jl,{icon:f.value?t.nextIcon:t.prevIcon},null)]})]),$t("div",{key:"container",ref:w,class:"v-slide-group__container",onScroll:x},[$t("div",{ref:m,class:"v-slide-group__content",onFocusin:R,onFocusout:M,onKeydown:L},[(U=o.default)==null?void 0:U.call(o,I.value)])]),z.value&&$t("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Q.value}],onMousedown:A,onClick:()=>Q.value&&k("next")},[((X=o.next)==null?void 0:X.call(o,I.value))??$t(Mge,null,{default:()=>[$t(jl,{icon:f.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:k,scrollOffset:u,focus:D}}}),c_e=Symbol.for("vuetify:v-chip-group"),mLe=gi({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:R4},...l_e(),...Js(),...hq({selectedClass:"v-chip--selected"}),...tf(),...gd(),...Lx({variant:"tonal"})},"VChipGroup");Oa()({name:"VChipGroup",props:mLe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{themeClasses:f}=th(t),{isSelected:E,select:d,next:s,prev:n,selected:u}=pq(t,c_e);return ab({VChip:{color:ji(t,"color"),disabled:ji(t,"disabled"),filter:ji(t,"filter"),variant:ji(t,"variant")}}),Ga(()=>{const b=jge.filterProps(t);return $t(jge,qi(b,{class:["v-chip-group",{"v-chip-group--column":t.column},f.value,t.class],style:t.style}),{default:()=>{var i;return[(i=o.default)==null?void 0:i.call(o,{isSelected:E,select:d,next:s,prev:n,selected:u.value})]}})}),{}}});const gLe=gi({activeClass:String,appendAvatar:String,appendIcon:Hl,closable:Boolean,closeIcon:{type:Hl,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...ay(),...wue(),...Pm(),...wq(),...sC(),...tf({tag:"span"}),...gd(),...Lx({variant:"tonal"})},"VChip"),LM=Oa()({name:"VChip",directives:{Ripple:cC},props:gLe(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=oy(),{borderClasses:s}=$O(t),{colorClasses:n,colorStyles:u,variantClasses:b}=aC(t),{densityClasses:i}=Rx(t),{elevationClasses:S}=cb(t),{roundedClasses:w}=mg(t),{sizeClasses:y}=xD(t),{themeClasses:m}=th(t),a=ql(t,"modelValue"),c=Oue(t,c_e,!1),h=_q(t,o),p=nr(()=>t.link!==!1&&h.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(!!c||t.link||h.isClickable.value)),_=nr(()=>({"aria-label":d(t.closeLabel),onClick(x){x.preventDefault(),x.stopPropagation(),a.value=!1,f("click:close",x)}}));function O(x){var R;f("click",x),v.value&&((R=h.navigate)==null||R.call(h,x),c==null||c.toggle())}function C(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),O(x))}return()=>{const x=h.isLink.value?"a":t.tag,R=!!(t.appendIcon||t.appendAvatar),M=!!(R||E.append),T=!!(E.close||t.closable),P=!!(E.filter||t.filter)&&c,A=!!(t.prependIcon||t.prependAvatar),L=!!(A||E.prepend),D=!c||c.isSelected.value;return a.value&&Kp($t(x,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":P,"v-chip--pill":t.pill},m.value,s.value,D?n.value:void 0,i.value,S.value,w.value,y.value,b.value,c==null?void 0:c.selectedClass.value,t.class],style:[D?u.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:h.href.value,tabindex:v.value?0:void 0,onClick:O,onKeydown:v.value&&!p.value&&C},{default:()=>{var k;return[iC(v.value,"v-chip"),P&&$t(P2e,{key:"filter"},{default:()=>[Kp($t("div",{class:"v-chip__filter"},[E.filter?$t(ef,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},E.filter):$t(jl,{key:"filter-icon",icon:t.filterIcon},null)]),[[A4,c.isSelected.value]])]}),L&&$t("div",{key:"prepend",class:"v-chip__prepend"},[E.prepend?$t(ef,{key:"prepend-defaults",disabled:!A,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},E.prepend):$t(Ea,null,[t.prependIcon&&$t(jl,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&$t(DO,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),$t("div",{class:"v-chip__content","data-no-activator":""},[((k=E.default)==null?void 0:k.call(E,{isSelected:c==null?void 0:c.isSelected.value,selectedClass:c==null?void 0:c.selectedClass.value,select:c==null?void 0:c.select,toggle:c==null?void 0:c.toggle,value:c==null?void 0:c.value.value,disabled:t.disabled}))??t.text]),M&&$t("div",{key:"append",class:"v-chip__append"},[E.append?$t(ef,{key:"append-defaults",disabled:!R,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},E.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),T&&$t("button",qi({key:"close",class:"v-chip__close",type:"button"},_.value),[E.close?$t(ef,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},E.close):$t(jl,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[M_("ripple"),v.value&&t.ripple,null]])}}});const ile=Symbol.for("vuetify:list");function u_e(){const t=Kl(ile,{hasPrepend:Gi(!1),updateHasPrepend:()=>null}),e={hasPrepend:Gi(!1),updateHasPrepend:o=>{o&&(e.hasPrepend.value=o)}};return md(ile,e),t}function f_e(){return Kl(ile,null)}const Tue=t=>{const e={activate:o=>{let{id:f,value:E,activated:d}=o;return f=sl(f),t&&!E&&d.size===1&&d.has(f)||(E?d.add(f):d.delete(f)),d},in:(o,f,E)=>{let d=new Set;if(o!=null)for(const s of Pp(o))d=e.activate({id:s,value:!0,activated:new Set(d),children:f,parents:E});return d},out:o=>Array.from(o)};return e},d_e=t=>{const e=Tue(t);return{activate:f=>{let{activated:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Set([d]):new Set;return e.activate({...s,id:d,activated:n})},in:(f,E,d)=>{let s=new Set;if(f!=null){const n=Pp(f);n.length&&(s=e.in(n.slice(0,1),E,d))}return s},out:(f,E,d)=>e.out(f,E,d)}},vLe=t=>{const e=Tue(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},yLe=t=>{const e=d_e(t);return{activate:f=>{let{id:E,activated:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.activate({id:E,activated:d,children:s,...n})},in:e.in,out:e.out}},bLe={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){const d=new Set;d.add(e);let s=E.get(e);for(;s!=null;)d.add(s),s=E.get(s);return d}else return f.delete(e),f},select:()=>null},h_e={open:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(o){let d=E.get(e);for(f.add(e);d!=null&&d!==e;)f.add(d),d=E.get(d);return f}else f.delete(e);return f},select:()=>null},xLe={open:h_e.open,select:t=>{let{id:e,value:o,opened:f,parents:E}=t;if(!o)return f;const d=[];let s=E.get(e);for(;s!=null;)d.push(s),s=E.get(s);return new Set(d)}},Cue=t=>{const e={select:o=>{let{id:f,value:E,selected:d}=o;if(f=sl(f),t&&!E){const s=Array.from(d.entries()).reduce((n,u)=>{let[b,i]=u;return i==="on"&&n.push(b),n},[]);if(s.length===1&&s[0]===f)return d}return d.set(f,E?"on":"off"),d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:o=>{const f=[];for(const[E,d]of o.entries())d==="on"&&f.push(E);return f}};return e},p_e=t=>{const e=Cue(t);return{select:f=>{let{selected:E,id:d,...s}=f;d=sl(d);const n=E.has(d)?new Map([[d,E.get(d)]]):new Map;return e.select({...s,id:d,selected:n})},in:(f,E,d)=>{let s=new Map;return f!=null&&f.length&&(s=e.in(f.slice(0,1),E,d)),s},out:(f,E,d)=>e.out(f,E,d)}},_Le=t=>{const e=Cue(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},wLe=t=>{const e=p_e(t);return{select:f=>{let{id:E,selected:d,children:s,...n}=f;return E=sl(E),s.has(E)?d:e.select({id:E,selected:d,children:s,...n})},in:e.in,out:e.out}},OLe=t=>{const e={select:o=>{let{id:f,value:E,selected:d,children:s,parents:n}=o;f=sl(f);const u=new Map(d),b=[f];for(;b.length;){const S=b.shift();d.set(S,E?"on":"off"),s.has(S)&&b.push(...s.get(S))}let i=n.get(f);for(;i;){const S=s.get(i),w=S.every(m=>d.get(m)==="on"),y=S.every(m=>!d.has(m)||d.get(m)==="off");d.set(i,w?"on":y?"off":"indeterminate"),i=n.get(i)}return t&&!E&&Array.from(d.entries()).reduce((w,y)=>{let[m,a]=y;return a==="on"&&w.push(m),w},[]).length===0?u:d},in:(o,f,E)=>{let d=new Map;for(const s of o||[])d=e.select({id:s,value:!0,selected:new Map(d),children:f,parents:E});return d},out:(o,f)=>{const E=[];for(const[d,s]of o.entries())s==="on"&&!f.has(d)&&E.push(d);return E}};return e},XI=Symbol.for("vuetify:nested"),m_e={id:Gi(),root:{register:()=>null,unregister:()=>null,parents:qo(new Map),children:qo(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:qo(!1),selectable:qo(!1),opened:qo(new Set),activated:qo(new Set),selected:qo(new Map),selectedValues:qo([])}},SLe=gi({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),kLe=t=>{let e=!1;const o=qo(new Map),f=qo(new Map),E=ql(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=nr(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return vLe(t.mandatory);case"single-leaf":return yLe(t.mandatory);case"independent":return Tue(t.mandatory);case"single-independent":default:return d_e(t.mandatory)}}),s=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return wLe(t.mandatory);case"leaf":return _Le(t.mandatory);case"independent":return Cue(t.mandatory);case"single-independent":return p_e(t.mandatory);case"classic":default:return OLe(t.mandatory)}}),n=nr(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return xLe;case"single":return bLe;case"multiple":default:return h_e}}),u=ql(t,"activated",t.activated,y=>d.value.in(y,o.value,f.value),y=>d.value.out(y,o.value,f.value)),b=ql(t,"selected",t.selected,y=>s.value.in(y,o.value,f.value),y=>s.value.out(y,o.value,f.value));Em(()=>{e=!0});function i(y){const m=[];let a=y;for(;a!=null;)m.unshift(a),a=f.value.get(a);return m}const S=Xh("nested"),w={id:Gi(),root:{opened:E,activatable:ji(t,"activatable"),selectable:ji(t,"selectable"),activated:u,selected:b,selectedValues:nr(()=>{const y=[];for(const[m,a]of b.value.entries())a==="on"&&y.push(m);return y}),register:(y,m,a)=>{m&&y!==m&&f.value.set(y,m),a&&o.value.set(y,[]),m!=null&&o.value.set(m,[...o.value.get(m)||[],y])},unregister:y=>{if(e)return;o.value.delete(y);const m=f.value.get(y);if(m){const a=o.value.get(m)??[];o.value.set(m,a.filter(c=>c!==y))}f.value.delete(y)},open:(y,m,a)=>{S.emit("click:open",{id:y,value:m,path:i(y),event:a});const c=n.value.open({id:y,value:m,opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},openOnSelect:(y,m,a)=>{const c=n.value.select({id:y,value:m,selected:new Map(b.value),opened:new Set(E.value),children:o.value,parents:f.value,event:a});c&&(E.value=c)},select:(y,m,a)=>{S.emit("click:select",{id:y,value:m,path:i(y),event:a});const c=s.value.select({id:y,value:m,selected:new Map(b.value),children:o.value,parents:f.value,event:a});c&&(b.value=c),w.root.openOnSelect(y,m,a)},activate:(y,m,a)=>{if(!t.activatable)return w.root.select(y,!0,a);S.emit("click:activate",{id:y,value:m,path:i(y),event:a});const c=d.value.activate({id:y,value:m,activated:new Set(u.value),children:o.value,parents:f.value,event:a});c&&(u.value=c)},children:o,parents:f}};return md(XI,w),w.root},g_e=(t,e)=>{const o=Kl(XI,m_e),f=Symbol(j1()),E=nr(()=>t.value!==void 0?t.value:f),d={...o,id:E,open:(s,n)=>o.root.open(E.value,s,n),openOnSelect:(s,n)=>o.root.openOnSelect(E.value,s,n),isOpen:nr(()=>o.root.opened.value.has(E.value)),parent:nr(()=>o.root.parents.value.get(E.value)),activate:(s,n)=>o.root.activate(E.value,s,n),isActivated:nr(()=>o.root.activated.value.has(sl(E.value))),select:(s,n)=>o.root.select(E.value,s,n),isSelected:nr(()=>o.root.selected.value.get(sl(E.value))==="on"),isIndeterminate:nr(()=>o.root.selected.value.get(E.value)==="indeterminate"),isLeaf:nr(()=>!o.root.children.value.get(E.value)),isGroupActivator:o.isGroupActivator};return!o.isGroupActivator&&o.root.register(E.value,o.id.value,e),Em(()=>{!o.isGroupActivator&&o.root.unregister(E.value)}),e&&md(XI,d),d},TLe=()=>{const t=Kl(XI,m_e);md(XI,{...t,isGroupActivator:!0})},CLe=PM({name:"VListGroupActivator",setup(t,e){let{slots:o}=e;return TLe(),()=>{var f;return(f=o.default)==null?void 0:f.call(o)}}}),ALe=gi({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Hl,default:"$collapse"},expandIcon:{type:Hl,default:"$expand"},prependIcon:Hl,appendIcon:Hl,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Js(),...tf()},"VListGroup"),Qge=Oa()({name:"VListGroup",props:ALe(),setup(t,e){let{slots:o}=e;const{isOpen:f,open:E,id:d}=g_e(ji(t,"value"),!0),s=nr(()=>`v-list-group--id-${String(d.value)}`),n=f_e(),{isBooted:u}=dq();function b(y){y.stopPropagation(),E(!f.value,y)}const i=nr(()=>({onClick:b,class:"v-list-group__header",id:s.value})),S=nr(()=>f.value?t.collapseIcon:t.expandIcon),w=nr(()=>({VListItem:{active:f.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&S.value,appendIcon:t.appendIcon||!t.subgroup&&S.value,title:t.title,value:t.value}}));return Ga(()=>$t(t.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":f.value},t.class],style:t.style},{default:()=>[o.activator&&$t(ef,{defaults:w.value},{default:()=>[$t(CLe,null,{default:()=>[o.activator({props:i.value,isOpen:f.value})]})]}),$t(f4,{transition:{component:bue},disabled:!u.value},{default:()=>{var y;return[Kp($t("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(y=o.default)==null?void 0:y.call(o)]),[[A4,f.value]])]}})]})),{isOpen:f}}});const MLe=gi({opacity:[Number,String],...Js(),...tf()},"VListItemSubtitle"),ELe=Oa()({name:"VListItemSubtitle",props:MLe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},o)),{}}}),z1=fq("v-list-item-title"),PLe=gi({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Hl,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:fg(),onClickOnce:fg(),...B_(),...Js(),...Q1(),...I_(),...ay(),...Pm(),...wq(),...tf(),...gd(),...Lx({variant:"text"})},"VListItem"),Xf=Oa()({name:"VListItem",directives:{Ripple:cC},props:PLe(),emits:{click:t=>!0},setup(t,e){let{attrs:o,slots:f,emit:E}=e;const d=_q(t,o),s=nr(()=>t.value===void 0?d.href.value:t.value),{activate:n,isActivated:u,select:b,isSelected:i,isIndeterminate:S,isGroupActivator:w,root:y,parent:m,openOnSelect:a}=g_e(s,!1),c=f_e(),h=nr(()=>{var j;return t.active!==!1&&(t.active||((j=d.isActive)==null?void 0:j.value)||(y.activatable.value?u.value:i.value))}),p=nr(()=>t.link!==!1&&d.isLink.value),v=nr(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||!!c&&(y.selectable.value||y.activatable.value||t.value!=null))),_=nr(()=>t.rounded||t.nav),O=nr(()=>t.color??t.activeColor),C=nr(()=>({color:h.value?O.value??t.baseColor:t.baseColor,variant:t.variant}));ia(()=>{var j;return(j=d.isActive)==null?void 0:j.value},j=>{j&&m.value!=null&&y.open(m.value,!0),j&&a(j)},{immediate:!0});const{themeClasses:x}=th(t),{borderClasses:R}=$O(t),{colorClasses:M,colorStyles:T,variantClasses:P}=aC(C),{densityClasses:A}=Rx(t),{dimensionStyles:L}=D_(t),{elevationClasses:D}=cb(t),{roundedClasses:k}=mg(_),I=nr(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),z=nr(()=>({isActive:h.value,select:b,isSelected:i.value,isIndeterminate:S.value}));function $(j){var U;E("click",j),v.value&&((U=d.navigate)==null||U.call(d,j),!w&&(y.activatable.value?n(!u.value,j):(y.selectable.value||t.value!=null)&&b(!i.value,j)))}function Q(j){(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),$(j))}return Ga(()=>{const j=p.value?"a":t.tag,U=f.title||t.title!=null,X=f.subtitle||t.subtitle!=null,te=!!(t.appendAvatar||t.appendIcon),Z=!!(te||f.append),K=!!(t.prependAvatar||t.prependIcon),re=!!(K||f.prepend);return c==null||c.updateHasPrepend(re),t.activeColor&&T9e("active-color",["color","base-color"]),Kp($t(j,{class:["v-list-item",{"v-list-item--active":h.value,"v-list-item--disabled":t.disabled,"v-list-item--link":v.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!re&&(c==null?void 0:c.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&h.value},x.value,R.value,M.value,A.value,D.value,I.value,k.value,P.value,t.class],style:[T.value,L.value,t.style],href:d.href.value,tabindex:v.value?c?-2:0:void 0,onClick:$,onKeydown:v.value&&!p.value&&Q},{default:()=>{var q;return[iC(v.value||h.value,"v-list-item"),re&&$t("div",{key:"prepend",class:"v-list-item__prepend"},[f.prepend?$t(ef,{key:"prepend-defaults",disabled:!K,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Y;return[(Y=f.prepend)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),$t("div",{class:"v-list-item__spacer"},null)]),$t("div",{class:"v-list-item__content","data-no-activator":""},[U&&$t(z1,{key:"title"},{default:()=>{var Y;return[((Y=f.title)==null?void 0:Y.call(f,{title:t.title}))??t.title]}}),X&&$t(ELe,{key:"subtitle"},{default:()=>{var Y;return[((Y=f.subtitle)==null?void 0:Y.call(f,{subtitle:t.subtitle}))??t.subtitle]}}),(q=f.default)==null?void 0:q.call(f,z.value)]),Z&&$t("div",{key:"append",class:"v-list-item__append"},[f.append?$t(ef,{key:"append-defaults",disabled:!te,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Y;return[(Y=f.append)==null?void 0:Y.call(f,z.value)]}}):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),$t("div",{class:"v-list-item__spacer"},null)])]}}),[[M_("ripple"),v.value&&t.ripple]])}),{activate:n,isActivated:u,isGroupActivator:w,isSelected:i,list:c,select:b}}}),RLe=gi({color:String,inset:Boolean,sticky:Boolean,title:String,...Js(),...tf()},"VListSubheader"),LLe=Oa()({name:"VListSubheader",props:RLe(),setup(t,e){let{slots:o}=e;const{textColorClasses:f,textColorStyles:E}=ry(ji(t,"color"));return Ga(()=>{const d=!!(o.default||t.title);return $t(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},f.value,t.class],style:[{textColorStyles:E},t.style]},{default:()=>{var s;return[d&&$t("div",{class:"v-list-subheader__text"},[((s=o.default)==null?void 0:s.call(o))??t.title])]}})}),{}}});const ILe=gi({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Js(),...gd()},"VDivider"),vM=Oa()({name:"VDivider",props:ILe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{textColorClasses:d,textColorStyles:s}=ry(ji(t,"color")),n=nr(()=>{const u={};return t.length&&(u[t.vertical?"height":"width"]=is(t.length)),t.thickness&&(u[t.vertical?"borderRightWidth":"borderTopWidth"]=is(t.thickness)),u});return Ga(()=>{const u=$t("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},E.value,d.value,t.class],style:[n.value,s.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!o.role||o.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${o.role||"separator"}`},null);return f.default?$t("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[u,$t("div",{class:"v-divider__content"},[f.default()]),u]):u}),{}}}),DLe=gi({items:Array,returnObject:Boolean},"VListChildren"),v_e=Oa()({name:"VListChildren",props:DLe(),setup(t,e){let{slots:o}=e;return u_e(),()=>{var f,E;return((f=o.default)==null?void 0:f.call(o))??((E=t.items)==null?void 0:E.map(d=>{var w,y;let{children:s,props:n,type:u,raw:b}=d;if(u==="divider")return((w=o.divider)==null?void 0:w.call(o,{props:n}))??$t(vM,n,null);if(u==="subheader")return((y=o.subheader)==null?void 0:y.call(o,{props:n}))??$t(LLe,n,null);const i={subtitle:o.subtitle?m=>{var a;return(a=o.subtitle)==null?void 0:a.call(o,{...m,item:b})}:void 0,prepend:o.prepend?m=>{var a;return(a=o.prepend)==null?void 0:a.call(o,{...m,item:b})}:void 0,append:o.append?m=>{var a;return(a=o.append)==null?void 0:a.call(o,{...m,item:b})}:void 0,title:o.title?m=>{var a;return(a=o.title)==null?void 0:a.call(o,{...m,item:b})}:void 0},S=Qge.filterProps(n);return s?$t(Qge,qi({value:n==null?void 0:n.value},S),{activator:m=>{let{props:a}=m;const c={...n,...a,value:t.returnObject?b:n.value};return o.header?o.header({props:c}):$t(Xf,c,i)},default:()=>$t(v_e,{items:s,returnObject:t.returnObject},o)}):o.item?o.item({props:n}):$t(Xf,qi(n,{value:t.returnObject?b:n.value}),i)}))}}}),y_e=gi({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:R4}},"list-items");function a4(t,e){const o=N1(e,t.itemTitle,e),f=N1(e,t.itemValue,o),E=N1(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?R_(e,["children"]):e:void 0:N1(e,t.itemProps),s={title:o,value:f,...d};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(E)?b_e(t,E):void 0,raw:e}}function b_e(t,e){const o=[];for(const f of e)o.push(a4(t,f));return o}function Aue(t){const e=nr(()=>b_e(t,t.items)),o=nr(()=>e.value.some(d=>d.value===null));function f(d){return o.value||(d=d.filter(s=>s!==null)),d.map(s=>t.returnObject&&typeof s=="string"?a4(t,s):e.value.find(n=>t.valueComparator(s,n.value))||a4(t,s))}function E(d){return t.returnObject?d.map(s=>{let{raw:n}=s;return n}):d.map(s=>{let{value:n}=s;return n})}return{items:e,transformIn:f,transformOut:E}}function BLe(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function zLe(t,e){const o=N1(e,t.itemType,"item"),f=BLe(e)?e:N1(e,t.itemTitle),E=N1(e,t.itemValue,void 0),d=N1(e,t.itemChildren),s=t.itemProps===!0?R_(e,["children"]):N1(e,t.itemProps),n={title:f,value:E,...s};return{type:o,title:n.title,value:n.value,props:n,children:o==="item"&&d?x_e(t,d):void 0,raw:e}}function x_e(t,e){const o=[];for(const f of e)o.push(zLe(t,f));return o}function NLe(t){return{items:nr(()=>x_e(t,t.items))}}const FLe=gi({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":fg(),"onClick:select":fg(),"onUpdate:opened":fg(),...SLe({selectStrategy:"single-leaf",openStrategy:"list"}),...B_(),...Js(),...Q1(),...I_(),...ay(),itemType:{type:String,default:"type"},...y_e(),...Pm(),...tf(),...gd(),...Lx({variant:"text"})},"VList"),Ax=Oa()({name:"VList",props:FLe(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:o}=e;const{items:f}=NLe(t),{themeClasses:E}=th(t),{backgroundColorClasses:d,backgroundColorStyles:s}=dg(ji(t,"bgColor")),{borderClasses:n}=$O(t),{densityClasses:u}=Rx(t),{dimensionStyles:b}=D_(t),{elevationClasses:i}=cb(t),{roundedClasses:S}=mg(t),{children:w,open:y,parents:m,select:a}=kLe(t),c=nr(()=>t.lines?`v-list--${t.lines}-line`:void 0),h=ji(t,"activeColor"),p=ji(t,"baseColor"),v=ji(t,"color");u_e(),ab({VListGroup:{activeColor:h,baseColor:p,color:v,expandIcon:ji(t,"expandIcon"),collapseIcon:ji(t,"collapseIcon")},VListItem:{activeClass:ji(t,"activeClass"),activeColor:h,baseColor:p,color:v,density:ji(t,"density"),disabled:ji(t,"disabled"),lines:ji(t,"lines"),nav:ji(t,"nav"),slim:ji(t,"slim"),variant:ji(t,"variant")}});const _=Gi(!1),O=qo();function C(A){_.value=!0}function x(A){_.value=!1}function R(A){var L;!_.value&&!(A.relatedTarget&&((L=O.value)!=null&&L.contains(A.relatedTarget)))&&P()}function M(A){const L=A.target;if(!(!O.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(A.key==="ArrowDown")P("next");else if(A.key==="ArrowUp")P("prev");else if(A.key==="Home")P("first");else if(A.key==="End")P("last");else return;A.preventDefault()}}function T(A){_.value=!0}function P(A){if(O.value)return sZ(O.value,A)}return Ga(()=>$t(t.tag,{ref:O,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},E.value,d.value,n.value,u.value,i.value,c.value,S.value,t.class],style:[s.value,b.value,t.style],tabindex:t.disabled||_.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:x,onFocus:R,onKeydown:M,onMousedown:T},{default:()=>[$t(v_e,{items:f.value,returnObject:t.returnObject},o)]})),{open:y,select:a,focus:P,children:w,parents:m}}});function sae(t,e){return{x:t.x+e.x,y:t.y+e.y}}function $Le(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hge(t,e){if(t.side==="top"||t.side==="bottom"){const{side:o,align:f}=t,E=f==="left"?0:f==="center"?e.width/2:f==="right"?e.width:f,d=o==="top"?0:o==="bottom"?e.height:o;return sae({x:E,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:o,align:f}=t,E=o==="left"?0:o==="right"?e.width:o,d=f==="top"?0:f==="center"?e.height/2:f==="bottom"?e.height:f;return sae({x:E,y:d},e)}return sae({x:e.width/2,y:e.height/2},e)}const __e={static:jLe,connected:HLe},VLe=gi({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in __e},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function ULe(t,e){const o=qo({}),f=qo();Hu&&$1(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var s,n;ia(()=>t.locationStrategy,d),hg(()=>{window.removeEventListener("resize",E),f.value=void 0}),window.addEventListener("resize",E,{passive:!0}),typeof t.locationStrategy=="function"?f.value=(s=t.locationStrategy(e,t,o))==null?void 0:s.updateLocation:f.value=(n=__e[t.locationStrategy](e,t,o))==null?void 0:n.updateLocation});function E(d){var s;(s=f.value)==null||s.call(f,d)}return{contentStyles:o,updateLocation:f}}function jLe(){}function QLe(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const o=due(t);return e?o.x+=parseFloat(t.style.right||0):o.x-=parseFloat(t.style.left||0),o.y-=parseFloat(t.style.top||0),o}function HLe(t,e,o){(Array.isArray(t.target.value)||Y9e(t.target.value))&&Object.assign(o.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:E,preferredOrigin:d}=uue(()=>{const m=Kse(e.location,t.isRtl.value),a=e.origin==="overlap"?m:e.origin==="auto"?nae(m):Kse(e.origin,t.isRtl.value);return m.side===a.side&&m.align===rae(a).align?{preferredAnchor:lge(m),preferredOrigin:lge(a)}:{preferredAnchor:m,preferredOrigin:a}}),[s,n,u,b]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>nr(()=>{const a=parseFloat(e[m]);return isNaN(a)?1/0:a})),i=nr(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const m=e.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let S=!1;const w=new ResizeObserver(()=>{S&&y()});ia([t.target,t.contentEl],(m,a)=>{let[c,h]=m,[p,v]=a;p&&!Array.isArray(p)&&w.unobserve(p),c&&!Array.isArray(c)&&w.observe(c),v&&w.unobserve(v),h&&w.observe(h)},{immediate:!0}),hg(()=>{w.disconnect()});function y(){if(S=!1,requestAnimationFrame(()=>S=!0),!t.target.value||!t.contentEl.value)return;const m=h2e(t.target.value),a=QLe(t.contentEl.value,t.isRtl.value),c=uZ(t.contentEl.value),h=12;c.length||(c.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(a.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),a.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=c.reduce((P,A)=>{const L=A.getBoundingClientRect(),D=new QT({x:A===document.documentElement?0:L.x,y:A===document.documentElement?0:L.y,width:A.clientWidth,height:A.clientHeight});return P?new QT({x:Math.max(P.left,D.left),y:Math.max(P.top,D.top),width:Math.min(P.right,D.right)-Math.max(P.left,D.left),height:Math.min(P.bottom,D.bottom)-Math.max(P.top,D.top)}):D},void 0);p.x+=h,p.y+=h,p.width-=h*2,p.height-=h*2;let v={anchor:E.value,origin:d.value};function _(P){const A=new QT(a),L=Hge(P.anchor,m),D=Hge(P.origin,A);let{x:k,y:I}=$Le(L,D);switch(P.anchor.side){case"top":I-=i.value[0];break;case"bottom":I+=i.value[0];break;case"left":k-=i.value[0];break;case"right":k+=i.value[0];break}switch(P.anchor.align){case"top":I-=i.value[1];break;case"bottom":I+=i.value[1];break;case"left":k-=i.value[1];break;case"right":k+=i.value[1];break}return A.x+=k,A.y+=I,A.width=Math.min(A.width,u.value),A.height=Math.min(A.height,b.value),{overflows:uge(A,p),x:k,y:I}}let O=0,C=0;const x={x:0,y:0},R={x:!1,y:!1};let M=-1;for(;!(M++>10);){const{x:P,y:A,overflows:L}=_(v);O+=P,C+=A,a.x+=P,a.y+=A;{const D=cge(v.anchor),k=L.x.before||L.x.after,I=L.y.before||L.y.after;let z=!1;if(["x","y"].forEach($=>{if($==="x"&&k&&!R.x||$==="y"&&I&&!R.y){const Q={anchor:{...v.anchor},origin:{...v.origin}},j=$==="x"?D==="y"?rae:nae:D==="y"?nae:rae;Q.anchor=j(Q.anchor),Q.origin=j(Q.origin);const{overflows:U}=_(Q);(U[$].before<=L[$].before&&U[$].after<=L[$].after||U[$].before+U[$].after<(L[$].before+L[$].after)/2)&&(v=Q,z=R[$]=!0)}}),z)continue}L.x.before&&(O+=L.x.before,a.x+=L.x.before),L.x.after&&(O-=L.x.after,a.x-=L.x.after),L.y.before&&(C+=L.y.before,a.y+=L.y.before),L.y.after&&(C-=L.y.after,a.y-=L.y.after);{const D=uge(a,p);x.x=p.width-D.x.before-D.x.after,x.y=p.height-D.y.before-D.y.after,O+=D.x.before,a.x+=D.x.before,C+=D.y.before,a.y+=D.y.before}break}const T=cge(v.anchor);return Object.assign(o.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:is(lae(C)),left:t.isRtl.value?void 0:is(lae(O)),right:t.isRtl.value?is(lae(-O)):void 0,minWidth:is(T==="y"?Math.min(s.value,m.width):s.value),maxWidth:is(Zge(ug(x.x,s.value===1/0?0:s.value,u.value))),maxHeight:is(Zge(ug(x.y,n.value===1/0?0:n.value,b.value)))}),{available:x,contentBox:a}}return ia(()=>[E.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>y()),Vc(()=>{const m=y();if(!m)return;const{available:a,contentBox:c}=m;c.height>a.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function lae(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Zge(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let ale=!0;const mZ=[];function ZLe(t){!ale||mZ.length?(mZ.push(t),sle()):(ale=!1,t(),sle())}let qge=-1;function sle(){cancelAnimationFrame(qge),qge=requestAnimationFrame(()=>{const t=mZ.shift();t&&t(),mZ.length?sle():ale=!0})}const _H={none:null,close:YLe,block:XLe,reposition:GLe},qLe=gi({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in _H}},"VOverlay-scroll-strategies");function WLe(t,e){if(!Hu)return;let o;Gp(async()=>{o==null||o.stop(),e.isActive.value&&t.scrollStrategy&&(o=iD(),await new Promise(f=>setTimeout(f)),o.active&&o.run(()=>{var f;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,o):(f=_H[t.scrollStrategy])==null||f.call(_H,e,t,o)}))}),hg(()=>{o==null||o.stop()})}function YLe(t){function e(o){t.isActive.value=!1}w_e(t.targetEl.value??t.contentEl.value,e)}function XLe(t,e){var s;const o=(s=t.root.value)==null?void 0:s.offsetParent,f=[...new Set([...uZ(t.targetEl.value,e.contained?o:void 0),...uZ(t.contentEl.value,e.contained?o:void 0)])].filter(n=>!n.classList.contains("v-overlay-scroll-blocked")),E=window.innerWidth-document.documentElement.offsetWidth,d=(n=>mue(n)&&n)(o||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),f.forEach((n,u)=>{n.style.setProperty("--v-body-scroll-x",is(-n.scrollLeft)),n.style.setProperty("--v-body-scroll-y",is(-n.scrollTop)),n!==document.documentElement&&n.style.setProperty("--v-scrollbar-offset",is(E)),n.classList.add("v-overlay-scroll-blocked")}),hg(()=>{f.forEach((n,u)=>{const b=parseFloat(n.style.getPropertyValue("--v-body-scroll-x")),i=parseFloat(n.style.getPropertyValue("--v-body-scroll-y")),S=n.style.scrollBehavior;n.style.scrollBehavior="auto",n.style.removeProperty("--v-body-scroll-x"),n.style.removeProperty("--v-body-scroll-y"),n.style.removeProperty("--v-scrollbar-offset"),n.classList.remove("v-overlay-scroll-blocked"),n.scrollLeft=-b,n.scrollTop=-i,n.style.scrollBehavior=S}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function GLe(t,e,o){let f=!1,E=-1,d=-1;function s(n){ZLe(()=>{var i,S;const u=performance.now();(S=(i=t.updateLocation).value)==null||S.call(i,n),f=(performance.now()-u)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?n=>n():requestIdleCallback)(()=>{o.run(()=>{w_e(t.targetEl.value??t.contentEl.value,n=>{f?(cancelAnimationFrame(E),E=requestAnimationFrame(()=>{E=requestAnimationFrame(()=>{s(n)})})):s(n)})})}),hg(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(E)})}function w_e(t,e){const o=[document,...uZ(t)];o.forEach(f=>{f.addEventListener("scroll",e,{passive:!0})}),hg(()=>{o.forEach(f=>{f.removeEventListener("scroll",e)})})}const lle=Symbol.for("vuetify:v-menu"),O_e=gi({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function S_e(t,e){let o=()=>{};function f(s){o==null||o();const n=Number(s?t.openDelay:t.closeDelay);return new Promise(u=>{o=p9e(n,()=>{e==null||e(s),u(s)})})}function E(){return f(!0)}function d(){return f(!1)}return{clearDelay:o,runOpenDelay:E,runCloseDelay:d}}const KLe=gi({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...O_e()},"VOverlay-activator");function JLe(t,e){let{isActive:o,isTop:f}=e;const E=Xh("useActivator"),d=qo();let s=!1,n=!1,u=!0;const b=nr(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),i=nr(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!b.value),{runOpenDelay:S,runCloseDelay:w}=S_e(t,x=>{x===(t.openOnHover&&s||b.value&&n)&&!(t.openOnHover&&o.value&&!f.value)&&(o.value!==x&&(u=!0),o.value=x)}),y=qo(),m={onClick:x=>{x.stopPropagation(),d.value=x.currentTarget||x.target,o.value||(y.value=[x.clientX,x.clientY]),o.value=!o.value},onMouseenter:x=>{var R;(R=x.sourceCapabilities)!=null&&R.firesTouchEvents||(s=!0,d.value=x.currentTarget||x.target,S())},onMouseleave:x=>{s=!1,w()},onFocus:x=>{mM(x.target,":focus-visible")!==!1&&(n=!0,x.stopPropagation(),d.value=x.currentTarget||x.target,S())},onBlur:x=>{n=!1,x.stopPropagation(),w()}},a=nr(()=>{const x={};return i.value&&(x.onClick=m.onClick),t.openOnHover&&(x.onMouseenter=m.onMouseenter,x.onMouseleave=m.onMouseleave),b.value&&(x.onFocus=m.onFocus,x.onBlur=m.onBlur),x}),c=nr(()=>{const x={};if(t.openOnHover&&(x.onMouseenter=()=>{s=!0,S()},x.onMouseleave=()=>{s=!1,w()}),b.value&&(x.onFocusin=()=>{n=!0,S()},x.onFocusout=()=>{n=!1,w()}),t.closeOnContentClick){const R=Kl(lle,null);x.onClick=()=>{o.value=!1,R==null||R.closeParents()}}return x}),h=nr(()=>{const x={};return t.openOnHover&&(x.onMouseenter=()=>{u&&(s=!0,u=!1,S())},x.onMouseleave=()=>{s=!1,w()}),x});ia(f,x=>{x&&(t.openOnHover&&!s&&(!b.value||!n)||b.value&&!n&&(!t.openOnHover||!s))&&(o.value=!1)}),ia(o,x=>{x||setTimeout(()=>{y.value=void 0})},{flush:"post"});const p=Gse();Gp(()=>{p.value&&Vc(()=>{d.value=p.el})});const v=Gse(),_=nr(()=>t.target==="cursor"&&y.value?y.value:v.value?v.el:k_e(t.target,E)||d.value),O=nr(()=>Array.isArray(_.value)?void 0:_.value);let C;return ia(()=>!!t.activator,x=>{x&&Hu?(C=iD(),C.run(()=>{eIe(t,E,{activatorEl:d,activatorEvents:a})})):C&&C.stop()},{flush:"post",immediate:!0}),hg(()=>{C==null||C.stop()}),{activatorEl:d,activatorRef:p,target:_,targetEl:O,targetRef:v,activatorEvents:a,contentEvents:c,scrimEvents:h}}function eIe(t,e,o){let{activatorEl:f,activatorEvents:E}=o;ia(()=>t.activator,(u,b)=>{if(b&&u!==b){const i=n(b);i&&s(i)}u&&Vc(()=>d())},{immediate:!0}),ia(()=>t.activatorProps,()=>{d()}),hg(()=>{s()});function d(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&v9e(u,qi(E.value,b))}function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n(),b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&y9e(u,qi(E.value,b))}function n(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const b=k_e(u,e);return f.value=(b==null?void 0:b.nodeType)===Node.ELEMENT_NODE?b:void 0,f.value}}function k_e(t,e){var f,E;if(!t)return;let o;if(t==="parent"){let d=(E=(f=e==null?void 0:e.proxy)==null?void 0:f.$el)==null?void 0:E.parentNode;for(;d!=null&&d.hasAttribute("data-no-activator");)d=d.parentNode;o=d}else typeof t=="string"?o=document.querySelector(t):"$el"in t?o=t.$el:o=t;return o}function tIe(){if(!Hu)return Gi(!1);const{ssr:t}=L4();if(t){const e=Gi(!1);return pg(()=>{e.value=!0}),e}else return Gi(!0)}const T_e=gi({eager:Boolean},"lazy");function C_e(t,e){const o=Gi(!1),f=nr(()=>o.value||t.eager||e.value);ia(e,()=>o.value=!0);function E(){t.eager||(o.value=!1)}return{isBooted:o,hasContent:f,onAfterLeave:E}}function IM(){const e=Xh("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const Wge=Symbol.for("vuetify:stack"),BL=Am([]);function nIe(t,e,o){const f=Xh("useStack"),E=!o,d=Kl(Wge,void 0),s=Am({activeChildren:new Set});md(Wge,s);const n=Gi(+e.value);$1(t,()=>{var S;const i=(S=BL.at(-1))==null?void 0:S[1];n.value=i?i+10:+e.value,E&&BL.push([f.uid,n.value]),d==null||d.activeChildren.add(f.uid),hg(()=>{if(E){const w=sl(BL).findIndex(y=>y[0]===f.uid);BL.splice(w,1)}d==null||d.activeChildren.delete(f.uid)})});const u=Gi(!0);E&&Gp(()=>{var S;const i=((S=BL.at(-1))==null?void 0:S[0])===f.uid;setTimeout(()=>u.value=i)});const b=nr(()=>!s.activeChildren.size);return{globalTop:TM(u),localTop:b,stackStyles:nr(()=>({zIndex:n.value}))}}function rIe(t){return{teleportTarget:nr(()=>{const o=t();if(o===!0||!Hu)return;const f=o===!1?document.body:typeof o=="string"?document.querySelector(o):o;if(f==null)return;let E=f.querySelector(":scope > .v-overlay-container");return E||(E=document.createElement("div"),E.className="v-overlay-container",f.appendChild(E)),E})}}function oIe(){return!0}function A_e(t,e,o){if(!t||M_e(t,o)===!1)return!1;const f=x2e(e);if(typeof ShadowRoot<"u"&&f instanceof ShadowRoot&&f.host===t.target)return!1;const E=(typeof o.value=="object"&&o.value.include||(()=>[]))();return E.push(e),!E.some(d=>d==null?void 0:d.contains(t.target))}function M_e(t,e){return(typeof e.value=="object"&&e.value.closeConditional||oIe)(t)}function iIe(t,e,o){const f=typeof o.value=="function"?o.value:o.value.handler;e._clickOutside.lastMousedownWasOutside&&A_e(t,e,o)&&setTimeout(()=>{M_e(t,o)&&f&&f(t)},0)}function Yge(t,e){const o=x2e(t);e(document),typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&e(o)}const aIe={mounted(t,e){const o=E=>iIe(E,t,e),f=E=>{t._clickOutside.lastMousedownWasOutside=A_e(E,t,e)};Yge(t,E=>{E.addEventListener("click",o,!0),E.addEventListener("mousedown",f,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:o,onMousedown:f}},unmounted(t,e){t._clickOutside&&(Yge(t,o=>{var d;if(!o||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:f,onMousedown:E}=t._clickOutside[e.instance.$.uid];o.removeEventListener("click",f,!0),o.removeEventListener("mousedown",E,!0)}),delete t._clickOutside[e.instance.$.uid])}};function sIe(t){const{modelValue:e,color:o,...f}=t;return $t(C_,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&$t("div",qi({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},f),null)]})}const SD=gi({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...KLe(),...Js(),...I_(),...T_e(),...VLe(),...qLe(),...gd(),...rC()},"VOverlay"),C4=Oa()({name:"VOverlay",directives:{ClickOutside:aIe},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...SD()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,e){let{slots:o,attrs:f,emit:E}=e;const d=ql(t,"modelValue"),s=nr({get:()=>d.value,set:K=>{K&&t.disabled||(d.value=K)}}),{themeClasses:n}=th(t),{rtlClasses:u,isRtl:b}=n0(),{hasContent:i,onAfterLeave:S}=C_e(t,s),w=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:y,localTop:m,stackStyles:a}=nIe(s,ji(t,"zIndex"),t._disableGlobalStack),{activatorEl:c,activatorRef:h,target:p,targetEl:v,targetRef:_,activatorEvents:O,contentEvents:C,scrimEvents:x}=JLe(t,{isActive:s,isTop:m}),{teleportTarget:R}=rIe(()=>{var q;const K=t.attach||t.contained;if(K)return K;const re=(q=c==null?void 0:c.value)==null?void 0:q.getRootNode();return re instanceof ShadowRoot?re:!1}),{dimensionStyles:M}=D_(t),T=tIe(),{scopeId:P}=IM();ia(()=>t.disabled,K=>{K&&(s.value=!1)});const A=qo(),L=qo(),D=qo(),{contentStyles:k,updateLocation:I}=ULe(t,{isRtl:b,contentEl:D,target:p,isActive:s});WLe(t,{root:A,contentEl:D,targetEl:v,isActive:s,updateLocation:I});function z(K){E("click:outside",K),t.persistent?X():s.value=!1}function $(K){return s.value&&y.value&&(!t.scrim||K.target===L.value)}Hu&&ia(s,K=>{K?window.addEventListener("keydown",Q):window.removeEventListener("keydown",Q)},{immediate:!0}),Em(()=>{Hu&&window.removeEventListener("keydown",Q)});function Q(K){var re,q;K.key==="Escape"&&y.value&&(t.persistent?X():(s.value=!1,(re=D.value)!=null&&re.contains(document.activeElement)&&((q=c.value)==null||q.focus())))}const j=H2e();$1(()=>t.closeOnBack,()=>{zRe(j,K=>{y.value&&s.value?(K(!1),t.persistent?X():s.value=!1):K()})});const U=qo();ia(()=>s.value&&(t.absolute||t.contained)&&R.value==null,K=>{if(K){const re=_2e(A.value);re&&re!==document.scrollingElement&&(U.value=re.scrollTop)}});function X(){t.noClickAnimation||D.value&&j8(D.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:cZ})}function te(){E("afterEnter")}function Z(){S(),E("afterLeave")}return Ga(()=>{var K;return $t(Ea,null,[(K=o.activator)==null?void 0:K.call(o,{isActive:s.value,targetRef:_,props:qi({ref:h},O.value,t.activatorProps)}),T.value&&i.value&&$t(Ike,{disabled:!R.value,to:R.value},{default:()=>[$t("div",qi({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":s.value,"v-overlay--contained":t.contained},n.value,u.value,t.class],style:[a.value,{"--v-overlay-opacity":t.opacity,top:is(U.value)},t.style],ref:A},P,f),[$t(sIe,qi({color:w,modelValue:s.value&&!!t.scrim,ref:L},x.value),null),$t(f4,{appear:!0,persisted:!0,transition:t.transition,target:p.value,onAfterEnter:te,onAfterLeave:Z},{default:()=>{var re;return[Kp($t("div",qi({ref:D,class:["v-overlay__content",t.contentClass],style:[M.value,k.value]},C.value,t.contentProps),[(re=o.default)==null?void 0:re.call(o,{isActive:s})]),[[A4,s.value],[M_("click-outside"),{handler:z,closeConditional:$,include:()=>[c.value]}]])]}})])]})])}),{activatorEl:c,scrimEl:L,target:p,animateClick:X,contentEl:D,globalTop:y,localTop:m,updateLocation:I}}}),cae=Symbol("Forwarded refs");function uae(t,e){let o=t;for(;o;){const f=Reflect.getOwnPropertyDescriptor(o,e);if(f)return f;o=Object.getPrototypeOf(o)}}function Ix(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),f=1;f!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-menu-${d}`),n=qo(),u=Kl(lle,null),b=Gi(0);md(lle,{register(){++b.value},unregister(){--b.value},closeParents(a){setTimeout(()=>{var c;!b.value&&!t.persistent&&(a==null||(c=n.value)!=null&&c.contentEl&&!m9e(a,n.value.contentEl))&&(f.value=!1,u==null||u.closeParents())},40)}});async function i(a){var p,v,_;const c=a.relatedTarget,h=a.target;await Vc(),f.value&&c!==h&&((p=n.value)!=null&&p.contentEl)&&((v=n.value)!=null&&v.globalTop)&&![document,n.value.contentEl].includes(h)&&!n.value.contentEl.contains(h)&&((_=QI(n.value.contentEl)[0])==null||_.focus())}ia(f,a=>{a?(u==null||u.register(),document.addEventListener("focusin",i,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",i))});function S(a){u==null||u.closeParents(a)}function w(a){var c,h,p;if(!t.disabled)if(a.key==="Tab"||a.key==="Enter"&&!t.closeOnContentClick){if(a.key==="Enter"&&(a.target instanceof HTMLTextAreaElement||a.target instanceof HTMLInputElement&&a.target.closest("form")))return;a.key==="Enter"&&a.preventDefault(),u2e(QI((c=n.value)==null?void 0:c.contentEl,!1),a.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(f.value=!1,(p=(h=n.value)==null?void 0:h.activatorEl)==null||p.focus())}else["Enter"," "].includes(a.key)&&t.closeOnContentClick&&(f.value=!1,u==null||u.closeParents())}function y(a){var h;if(t.disabled)return;const c=(h=n.value)==null?void 0:h.contentEl;c&&f.value?a.key==="ArrowDown"?(a.preventDefault(),sZ(c,"next")):a.key==="ArrowUp"&&(a.preventDefault(),sZ(c,"prev")):["ArrowDown","ArrowUp"].includes(a.key)&&(f.value=!0,a.preventDefault(),setTimeout(()=>setTimeout(()=>y(a))))}const m=nr(()=>qi({"aria-haspopup":"menu","aria-expanded":String(f.value),"aria-owns":s.value,onKeydown:y},t.activatorProps));return Ga(()=>{const a=C4.filterProps(t);return $t(C4,qi({ref:n,id:s.value,class:["v-menu",t.class],style:t.style},a,{modelValue:f.value,"onUpdate:modelValue":c=>f.value=c,absolute:!0,activatorProps:m.value,"onClick:outside":S,onKeydown:w},E),{activator:o.activator,default:function(){for(var c=arguments.length,h=new Array(c),p=0;p{var v;return[(v=o.default)==null?void 0:v.call(o,...h)]}})}})}),Ix({id:s,ΨopenChildren:b},n)}});const cIe=gi({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Js(),...rC({transition:{component:E2e}})},"VCounter"),Mue=Oa()({name:"VCounter",functional:!0,props:cIe(),setup(t,e){let{slots:o}=e;const f=nr(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Ga(()=>$t(f4,{transition:t.transition},{default:()=>[Kp($t("div",{class:["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class],style:t.style},[o.default?o.default({counter:f.value,max:t.max,value:t.value}):f.value]),[[A4,t.active]])]})),{}}});const uIe=gi({floating:Boolean,...Js()},"VFieldLabel"),YQ=Oa()({name:"VFieldLabel",props:uIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(Oq,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},o)),{}}}),fIe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Cq=gi({appendInnerIcon:Hl,bgColor:String,clearable:Boolean,clearIcon:{type:Hl,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Hl,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>fIe.includes(t)},"onClick:clear":fg(),"onClick:appendInner":fg(),"onClick:prependInner":fg(),...Js(),...vq(),...Pm(),...gd()},"VField"),Aq=Oa()({name:"VField",inheritAttrs:!1,props:{id:String,...Sq(),...Cq()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{themeClasses:d}=th(t),{loaderClasses:s}=wD(t),{focusClasses:n,isFocused:u,focus:b,blur:i}=uC(t),{InputIcon:S}=n_e(t),{roundedClasses:w}=mg(t),{rtlClasses:y}=n0(),m=nr(()=>t.dirty||t.active),a=nr(()=>!t.singleLine&&!!(t.label||E.label)),c=j1(),h=nr(()=>t.id||`input-${c}`),p=nr(()=>`${h.value}-messages`),v=qo(),_=qo(),O=qo(),C=nr(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:x,backgroundColorStyles:R}=dg(ji(t,"bgColor")),{textColorClasses:M,textColorStyles:T}=ry(nr(()=>t.error||t.disabled?void 0:m.value&&u.value?t.color:t.baseColor));ia(m,D=>{if(a.value){const k=v.value.$el,I=_.value.$el;requestAnimationFrame(()=>{const z=due(k),$=I.getBoundingClientRect(),Q=$.x-z.x,j=$.y-z.y-(z.height/2-$.height/2),U=$.width/.75,X=Math.abs(U-z.width)>1?{maxWidth:is(U)}:void 0,te=getComputedStyle(k),Z=getComputedStyle(I),K=parseFloat(te.transitionDuration)*1e3||150,re=parseFloat(Z.getPropertyValue("--v-field-label-scale")),q=Z.getPropertyValue("color");k.style.visibility="visible",I.style.visibility="hidden",j8(k,{transform:`translate(${Q}px, ${j}px) scale(${re})`,color:q,...X},{duration:K,easing:cZ,direction:D?"normal":"reverse"}).finished.then(()=>{k.style.removeProperty("visibility"),I.style.removeProperty("visibility")})})}},{flush:"post"});const P=nr(()=>({isActive:m,isFocused:u,controlRef:O,blur:i,focus:b}));function A(D){D.target!==document.activeElement&&D.preventDefault()}function L(D){var k;D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),D.stopPropagation(),(k=t["onClick:clear"])==null||k.call(t,new MouseEvent("click")))}return Ga(()=>{var Q,j,U;const D=t.variant==="outlined",k=!!(E["prepend-inner"]||t.prependInnerIcon),I=!!(t.clearable||E.clear),z=!!(E["append-inner"]||t.appendInnerIcon||I),$=()=>E.label?E.label({...P.value,label:t.label,props:{for:h.value}}):t.label;return $t("div",qi({class:["v-field",{"v-field--active":m.value,"v-field--appended":z,"v-field--center-affix":t.centerAffix??!C.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":k,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!$(),[`v-field--variant-${t.variant}`]:!0},d.value,x.value,n.value,s.value,w.value,y.value,t.class],style:[R.value,t.style],onClick:A},o),[$t("div",{class:"v-field__overlay"},null),$t(yq,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:E.loader}),k&&$t("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&$t(S,{key:"prepend-icon",name:"prependInner"},null),(Q=E["prepend-inner"])==null?void 0:Q.call(E,P.value)]),$t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&a.value&&$t(YQ,{key:"floating-label",ref:_,class:[M.value],floating:!0,for:h.value,style:T.value},{default:()=>[$()]}),$t(YQ,{ref:v,for:h.value},{default:()=>[$()]}),(j=E.default)==null?void 0:j.call(E,{...P.value,props:{id:h.value,class:"v-field__input","aria-describedby":p.value},focus:b,blur:i})]),I&&$t(P2e,{key:"clear"},{default:()=>[Kp($t("div",{class:"v-field__clearable",onMousedown:X=>{X.preventDefault(),X.stopPropagation()}},[$t(ef,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[E.clear?E.clear({...P.value,props:{onKeydown:L,onFocus:b,onBlur:i,onClick:t["onClick:clear"]}}):$t(S,{name:"clear",onKeydown:L,onFocus:b,onBlur:i},null)]})]),[[A4,t.dirty]])]}),z&&$t("div",{key:"append",class:"v-field__append-inner"},[(U=E["append-inner"])==null?void 0:U.call(E,P.value),t.appendInnerIcon&&$t(S,{key:"append-icon",name:"appendInner"},null)]),$t("div",{class:["v-field__outline",M.value],style:T.value},[D&&$t(Ea,null,[$t("div",{class:"v-field__outline__start"},null),a.value&&$t("div",{class:"v-field__outline__notch"},[$t(YQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})]),$t("div",{class:"v-field__outline__end"},null)]),C.value&&a.value&&$t(YQ,{ref:_,floating:!0,for:h.value},{default:()=>[$()]})])])}),{controlRef:O}}});function Eue(t){const e=Object.keys(Aq.props).filter(o=>!cq(o)&&o!=="class"&&o!=="style");return cue(t,e)}const dIe=["color","file","time","date","datetime-local","week","month"],Mq=gi({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...fC(),...Cq()},"VTextField"),Ep=Oa()({name:"VTextField",directives:{Intersect:_ue},inheritAttrs:!1,props:Mq(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=uC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),S=nr(()=>["plain","underlined"].includes(t.variant));function w(C,x){var R,M;!t.autofocus||!C||(M=(R=x[0].target)==null?void 0:R.focus)==null||M.call(R)}const y=qo(),m=qo(),a=qo(),c=nr(()=>dIe.includes(t.type)||t.persistentPlaceholder||s.value||t.active);function h(){var C;a.value!==document.activeElement&&((C=a.value)==null||C.focus()),s.value||n()}function p(C){f("mousedown:control",C),C.target!==a.value&&(h(),C.preventDefault())}function v(C){h(),f("click:control",C)}function _(C){C.stopPropagation(),h(),Vc(()=>{d.value=null,fue(t["onClick:clear"],C)})}function O(C){var R;const x=C.target;if(d.value=x.value,(R=t.modelModifiers)!=null&&R.trim&&["text","search","password","tel","url"].includes(t.type)){const M=[x.selectionStart,x.selectionEnd];Vc(()=>{x.selectionStart=M[0],x.selectionEnd=M[1]})}}return Ga(()=>{const C=!!(E.counter||t.counter!==!1&&t.counter!=null),x=!!(C||E.details),[R,M]=bD(o),{modelValue:T,...P}=sb.filterProps(t),A=Eue(t);return $t(sb,qi({ref:y,modelValue:d.value,"onUpdate:modelValue":L=>d.value=L,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":S.value},t.class],style:t.style},R,P,{centerAffix:!S.value,focused:s.value}),{...E,default:L=>{let{id:D,isDisabled:k,isDirty:I,isReadonly:z,isValid:$}=L;return $t(Aq,qi({ref:m,onMousedown:p,onClick:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},A,{id:D.value,active:c.value||I.value,dirty:I.value||t.dirty,disabled:k.value,focused:s.value,error:$.value===!1}),{...E,default:Q=>{let{props:{class:j,...U}}=Q;const X=Kp($t("input",qi({ref:a,value:d.value,onInput:O,autofocus:t.autofocus,readonly:z.value,disabled:k.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:h,onBlur:u},U,M),null),[[M_("intersect"),{handler:w},null,{once:!0}]]);return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[$t("span",{class:"v-text-field__prefix__text"},[t.prefix])]),E.default?$t("div",{class:j,"data-no-activator":""},[E.default(),X]):EO(X,{class:j}),t.suffix&&$t("span",{class:"v-text-field__suffix"},[$t("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:x?L=>{var D;return $t(Ea,null,[(D=E.details)==null?void 0:D.call(E,L),C&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},y,m,a)}});const hIe=gi({renderless:Boolean,...Js()},"VVirtualScrollItem"),pIe=Oa()({name:"VVirtualScrollItem",inheritAttrs:!1,props:hIe(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{resizeRef:d,contentRect:s}=T4(void 0,"border");ia(()=>{var n;return(n=s.value)==null?void 0:n.height},n=>{n!=null&&f("update:height",n)}),Ga(()=>{var n,u;return t.renderless?$t(Ea,null,[(n=E.default)==null?void 0:n.call(E,{itemRef:d})]):$t("div",qi({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},o),[(u=E.default)==null?void 0:u.call(E)])})}}),mIe=-1,gIe=1,fae=100,vIe=gi({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function yIe(t,e){const o=L4(),f=Gi(0);Gp(()=>{f.value=parseFloat(t.itemHeight||0)});const E=Gi(0),d=Gi(Math.ceil((parseInt(t.height)||o.height.value)/(f.value||16))||1),s=Gi(0),n=Gi(0),u=qo(),b=qo();let i=0;const{resizeRef:S,contentRect:w}=T4();Gp(()=>{S.value=u.value});const y=nr(()=>{var Q;return u.value===document.documentElement?o.height.value:((Q=w.value)==null?void 0:Q.height)||parseInt(t.height)||0}),m=nr(()=>!!(u.value&&b.value&&y.value&&f.value));let a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length});const h=Gi(0);let p=-1;function v(Q){return a[Q]||f.value}const _=f9e(()=>{const Q=performance.now();c[0]=0;const j=e.value.length;for(let U=1;U<=j-1;U++)c[U]=(c[U-1]||0)+v(U-1);h.value=Math.max(h.value,performance.now()-Q)},h),O=ia(m,Q=>{Q&&(O(),i=b.value.offsetTop,_.immediate(),k(),~p&&Vc(()=>{Hu&&window.requestAnimationFrame(()=>{z(p),p=-1})}))});hg(()=>{_.clear()});function C(Q,j){const U=a[Q],X=f.value;f.value=X?Math.min(f.value,j):j,(U!==j||X!==f.value)&&(a[Q]=j,_())}function x(Q){return Q=ug(Q,0,e.value.length-1),c[Q]||0}function R(Q){return bIe(c,Q)}let M=0,T=0,P=0;ia(y,(Q,j)=>{j&&(k(),Q{T=0,k()}))});function A(){if(!u.value||!b.value)return;const Q=u.value.scrollTop,j=performance.now();j-P>500?(T=Math.sign(Q-M),i=b.value.offsetTop):T=Q-M,M=Q,P=j,k()}function L(){!u.value||!b.value||(T=0,P=0,k())}let D=-1;function k(){cancelAnimationFrame(D),D=requestAnimationFrame(I)}function I(){if(!u.value||!y.value)return;const Q=M-i,j=Math.sign(T),U=Math.max(0,Q-fae),X=ug(R(U),0,e.value.length),te=Q+y.value+fae,Z=ug(R(te)+1,X+1,e.value.length);if((j!==mIe||Xd.value)){const K=x(E.value)-x(X),re=x(Z)-x(d.value);Math.max(K,re)>fae?(E.value=X,d.value=Z):(X<=0&&(E.value=X),Z>=e.value.length&&(d.value=Z))}s.value=x(E.value),n.value=x(e.value.length)-x(d.value)}function z(Q){const j=x(Q);!u.value||Q&&!j?p=Q:u.value.scrollTop=j}const $=nr(()=>e.value.slice(E.value,d.value).map((Q,j)=>({raw:Q,index:j+E.value})));return ia(e,()=>{a=Array.from({length:e.value.length}),c=Array.from({length:e.value.length}),_.immediate(),k()},{deep:!0}),{containerRef:u,markerRef:b,computedItems:$,paddingTop:s,paddingBottom:n,scrollToIndex:z,handleScroll:A,handleScrollend:L,handleItemResize:C}}function bIe(t,e){let o=t.length-1,f=0,E=0,d=null,s=-1;if(t[o]>1,d=t[E],d>e)o=E-1;else if(d[]},renderless:Boolean,...vIe(),...Js(),...I_()},"VVirtualScroll"),Pue=Oa()({name:"VVirtualScroll",props:xIe(),setup(t,e){let{slots:o}=e;const f=Xh("VVirtualScroll"),{dimensionStyles:E}=D_(t),{containerRef:d,markerRef:s,handleScroll:n,handleScrollend:u,handleItemResize:b,scrollToIndex:i,paddingTop:S,paddingBottom:w,computedItems:y}=yIe(t,ji(t,"items"));return $1(()=>t.renderless,()=>{function m(){var h,p;const c=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";d.value===document.documentElement?(document[c]("scroll",n,{passive:!0}),document[c]("scrollend",u)):((h=d.value)==null||h[c]("scroll",n,{passive:!0}),(p=d.value)==null||p[c]("scrollend",u))}pg(()=>{d.value=_2e(f.vnode.el,!0),m(!0)}),hg(m)}),Ga(()=>{const m=y.value.map(a=>$t(pIe,{key:a.index,renderless:t.renderless,"onUpdate:height":c=>b(a.index,c)},{default:c=>{var h;return(h=o.default)==null?void 0:h.call(o,{item:a.raw,index:a.index,...c})}}));return t.renderless?$t(Ea,null,[$t("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:is(S.value)}},null),m,$t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:is(w.value)}},null)]):$t("div",{ref:d,class:["v-virtual-scroll",t.class],onScrollPassive:n,onScrollend:u,style:[E.value,t.style]},[$t("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:is(S.value),paddingBottom:is(w.value)}},[m])])}),{scrollToIndex:i}}});function Rue(t,e){const o=Gi(!1);let f;function E(n){cancelAnimationFrame(f),o.value=!0,f=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>{o.value=!1})})}async function d(){await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>requestAnimationFrame(n)),await new Promise(n=>{if(o.value){const u=ia(o,()=>{u(),n()})}else n()})}async function s(n){var i,S;if(n.key==="Tab"&&((i=e.value)==null||i.focus()),!["PageDown","PageUp","Home","End"].includes(n.key))return;const u=(S=t.value)==null?void 0:S.$el;if(!u)return;(n.key==="Home"||n.key==="End")&&u.scrollTo({top:n.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await d();const b=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(n.key==="PageDown"||n.key==="Home"){const w=u.getBoundingClientRect().top;for(const y of b)if(y.getBoundingClientRect().top>=w){y.focus();break}}else{const w=u.getBoundingClientRect().bottom;for(const y of[...b].reverse())if(y.getBoundingClientRect().bottom<=w){y.focus();break}}}return{onListScroll:E,onListKeydown:s}}const Lue=gi({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Hl,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...y_e({itemChildren:!1})},"Select"),_Ie=gi({...Lue(),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:{component:yue}})},"VSelect"),DM=Oa()({name:"VSelect",props:_Ie(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),E=qo(),d=qo(),s=qo(),n=ql(t,"menu"),u=nr({get:()=>n.value,set:$=>{var Q;n.value&&!$&&((Q=d.value)!=null&&Q.ΨopenChildren)||(n.value=$)}}),{items:b,transformIn:i,transformOut:S}=Aue(t),w=ql(t,"modelValue",[],$=>i($===null?[null]:Pp($)),$=>{const Q=S($);return t.multiple?Q:Q[0]??null}),y=nr(()=>typeof t.counterValue=="function"?t.counterValue(w.value):typeof t.counterValue=="number"?t.counterValue:w.value.length),m=kq(),a=nr(()=>w.value.map($=>$.value)),c=Gi(!1),h=nr(()=>u.value?t.closeText:t.openText);let p="",v;const _=nr(()=>t.hideSelected?b.value.filter($=>!w.value.some(Q=>t.valueComparator(Q,$))):b.value),O=nr(()=>t.hideNoData&&!_.value.length||t.readonly||(m==null?void 0:m.isReadonly.value)),C=nr(()=>{var $;return{...t.menuProps,activatorProps:{...(($=t.menuProps)==null?void 0:$.activatorProps)||{},"aria-haspopup":"listbox"}}}),x=qo(),{onListScroll:R,onListKeydown:M}=Rue(x,E);function T($){t.openOnClear&&(u.value=!0)}function P(){O.value||(u.value=!u.value)}function A($){var te,Z;if(!$.key||t.readonly||m!=null&&m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes($.key)&&$.preventDefault(),["Enter","ArrowDown"," "].includes($.key)&&(u.value=!0),["Escape","Tab"].includes($.key)&&(u.value=!1),$.key==="Home"?(te=x.value)==null||te.focus("first"):$.key==="End"&&((Z=x.value)==null||Z.focus("last"));const Q=1e3;function j(K){const re=K.key.length===1,q=!K.ctrlKey&&!K.metaKey&&!K.altKey;return re&&q}if(t.multiple||!j($))return;const U=performance.now();U-v>Q&&(p=""),p+=$.key.toLowerCase(),v=U;const X=b.value.find(K=>K.title.toLowerCase().startsWith(p));if(X!==void 0){w.value=[X];const K=_.value.indexOf(X);Hu&&window.requestAnimationFrame(()=>{var re;K>=0&&((re=s.value)==null||re.scrollToIndex(K))})}}function L($){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!$.props.disabled)if(t.multiple){const j=w.value.findIndex(X=>t.valueComparator(X.value,$.value)),U=Q??!~j;if(~j){const X=U?[...w.value,$]:[...w.value];X.splice(j,1),w.value=X}else U&&(w.value=[...w.value,$])}else{const j=Q!==!1;w.value=j?[$]:[],Vc(()=>{u.value=!1})}}function D($){var Q;(Q=x.value)!=null&&Q.$el.contains($.relatedTarget)||(u.value=!1)}function k(){var $;c.value&&(($=E.value)==null||$.focus())}function I($){c.value=!0}function z($){if($==null)w.value=[];else if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const Q=b.value.find(j=>j.title===$);Q&&L(Q)}else E.value&&(E.value.value="")}return ia(u,()=>{if(!t.hideSelected&&u.value&&w.value.length){const $=_.value.findIndex(Q=>w.value.some(j=>t.valueComparator(j.value,Q.value)));Hu&&window.requestAnimationFrame(()=>{var Q;$>=0&&((Q=s.value)==null||Q.scrollToIndex($))})}}),ia(()=>t.items,($,Q)=>{u.value||c.value&&!Q.length&&$.length&&(u.value=!0)}),Ga(()=>{const $=!!(t.chips||o.chip),Q=!!(!t.hideNoData||_.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),j=w.value.length>0,U=Ep.filterProps(t),X=j||!c.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return $t(Ep,qi({ref:E},U,{modelValue:w.value.map(te=>te.props.value).join(", "),"onUpdate:modelValue":z,focused:c.value,"onUpdate:focused":te=>c.value=te,validationValue:w.externalValue,counterValue:y.value,dirty:j,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":w.value.length,"v-select--selection-slot":!!o.selection},t.class],style:t.style,inputmode:"none",placeholder:X,"onClick:clear":T,"onMousedown:control":P,onBlur:D,onKeydown:A,"aria-label":f(h.value),title:f(h.value)}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:d,modelValue:u.value,"onUpdate:modelValue":te=>u.value=te,activator:"parent",contentClass:"v-select__content",disabled:O.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:k},C.value),{default:()=>[Q&&$t(Ax,qi({ref:x,selected:a.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:te=>te.preventDefault(),onKeydown:M,onFocusin:I,onScrollPassive:R,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var te,Z,K;return[(te=o["prepend-item"])==null?void 0:te.call(o),!_.value.length&&!t.hideNoData&&(((Z=o["no-data"])==null?void 0:Z.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Pue,{ref:s,renderless:!0,items:_.value},{default:re=>{var pe;let{item:q,index:Y,itemRef:ee}=re;const me=qi(q.props,{ref:ee,key:Y,onClick:()=>L(q,null)});return((pe=o.item)==null?void 0:pe.call(o,{item:q,index:Y,props:me}))??$t(Xf,qi(me,{role:"option"}),{prepend:se=>{let{isSelected:ae}=se;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:q.value,modelValue:ae,ripple:!1,tabindex:"-1"},null):void 0,q.props.prependAvatar&&$t(DO,{image:q.props.prependAvatar},null),q.props.prependIcon&&$t(jl,{icon:q.props.prependIcon},null)])}})}}),(K=o["append-item"])==null?void 0:K.call(o)]}})]}),w.value.map((te,Z)=>{function K(ee){ee.stopPropagation(),ee.preventDefault(),L(te,!1)}const re={"onClick:close":K,onKeydown(ee){ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),ee.stopPropagation(),K(ee))},onMousedown(ee){ee.preventDefault(),ee.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},q=$?!!o.chip:!!o.selection,Y=q?uq($?o.chip({item:te,index:Z,props:re}):o.selection({item:te,index:Z})):void 0;if(!(q&&!Y))return $t("div",{key:te.value,class:"v-select__selection"},[$?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:te.title}}},{default:()=>[Y]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:te.title,disabled:te.props.disabled},re),null):Y??$t("span",{class:"v-select__selection-text"},[te.title,t.multiple&&Zt==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),Iue=gi({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function OIe(t,e,o){var n;const f=[],E=(o==null?void 0:o.default)??wIe,d=o!=null&&o.filterKeys?Pp(o.filterKeys):!1,s=Object.keys((o==null?void 0:o.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let u=0;u0)&&!(o!=null&&o.noFilter)){if(typeof b=="object"){const c=d||Object.keys(i);for(const h of c){const p=N1(i,h),v=(n=o==null?void 0:o.customKeyFilter)==null?void 0:n[h];if(y=v?v(p,e,b):E(p,e,b),y!==-1&&y!==!1)v?S[h]=y:w[h]=y;else if((o==null?void 0:o.filterMode)==="every")continue e}}else y=E(b,e,b),y!==-1&&y!==!1&&(w.title=y);const m=Object.keys(w).length,a=Object.keys(S).length;if(!m&&!a||(o==null?void 0:o.filterMode)==="union"&&a!==s&&!m||(o==null?void 0:o.filterMode)==="intersection"&&(a!==s||!m))continue}f.push({index:u,matches:{...w,...S}})}return f}function Due(t,e,o,f){const E=qo([]),d=qo(new Map),s=nr(()=>f!=null&&f.transform?Va(e).map(u=>[u,f.transform(u)]):Va(e));Gp(()=>{const u=typeof o=="function"?o():Va(o),b=typeof u!="string"&&typeof u!="number"?"":String(u),i=OIe(s.value,b,{customKeyFilter:{...t.customKeyFilter,...Va(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),S=Va(e),w=[],y=new Map;i.forEach(m=>{let{index:a,matches:c}=m;const h=S[a];w.push(h),y.set(h.value,c)}),E.value=w,d.value=y});function n(u){return d.value.get(u.value)}return{filteredItems:E,filteredMatches:d,getMatches:n}}function SIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),$t("span",{class:"v-autocomplete__mask"},[t.substr(e,o)]),$t("span",{class:"v-autocomplete__unmask"},[t.substr(e+o)])]):t}const kIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Iue({filterKeys:["title"]}),...Lue(),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:!1})},"VAutocomplete"),Eq=Oa()({name:"VAutocomplete",props:kIe(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),E=qo(),d=Gi(!1),s=Gi(!0),n=Gi(!1),u=qo(),b=qo(),i=ql(t,"menu"),S=nr({get:()=>i.value,set:me=>{var pe;i.value&&!me&&((pe=u.value)!=null&&pe.ΨopenChildren)||(i.value=me)}}),w=Gi(-1),y=nr(()=>{var me;return(me=E.value)==null?void 0:me.color}),m=nr(()=>S.value?t.closeText:t.openText),{items:a,transformIn:c,transformOut:h}=Aue(t),{textColorClasses:p,textColorStyles:v}=ry(y),_=ql(t,"search",""),O=ql(t,"modelValue",[],me=>c(me===null?[null]:Pp(me)),me=>{const pe=h(me);return t.multiple?pe:pe[0]??null}),C=nr(()=>typeof t.counterValue=="function"?t.counterValue(O.value):typeof t.counterValue=="number"?t.counterValue:O.value.length),x=kq(),{filteredItems:R,getMatches:M}=Due(t,a,()=>s.value?"":_.value),T=nr(()=>t.hideSelected?R.value.filter(me=>!O.value.some(pe=>pe.value===me.value)):R.value),P=nr(()=>!!(t.chips||o.chip)),A=nr(()=>P.value||!!o.selection),L=nr(()=>O.value.map(me=>me.props.value)),D=nr(()=>{var pe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&_.value===((pe=T.value[0])==null?void 0:pe.title))&&T.value.length>0&&!s.value&&!n.value}),k=nr(()=>t.hideNoData&&!T.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),I=qo(),{onListScroll:z,onListKeydown:$}=Rue(I,E);function Q(me){t.openOnClear&&(S.value=!0),_.value=""}function j(){k.value||(S.value=!0)}function U(me){k.value||(d.value&&(me.preventDefault(),me.stopPropagation()),S.value=!S.value)}function X(me){var ae,ce,de;if(t.readonly||x!=null&&x.isReadonly.value)return;const pe=E.value.selectionStart,se=O.value.length;if((w.value>-1||["Enter","ArrowDown","ArrowUp"].includes(me.key))&&me.preventDefault(),["Enter","ArrowDown"].includes(me.key)&&(S.value=!0),["Escape"].includes(me.key)&&(S.value=!1),D.value&&["Enter","Tab"].includes(me.key)&&!O.value.some(ye=>{let{value:ve}=ye;return ve===T.value[0].value})&&ee(T.value[0]),me.key==="ArrowDown"&&D.value&&((ae=I.value)==null||ae.focus("next")),["Backspace","Delete"].includes(me.key)){if(!t.multiple&&A.value&&O.value.length>0&&!_.value)return ee(O.value[0],!1);if(~w.value){const ye=w.value;ee(O.value[w.value],!1),w.value=ye>=se-1?se-2:ye}else me.key==="Backspace"&&!_.value&&(w.value=se-1)}if(t.multiple){if(me.key==="ArrowLeft"){if(w.value<0&&pe>0)return;const ye=w.value>-1?w.value-1:se-1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange((ce=_.value)==null?void 0:ce.length,(de=_.value)==null?void 0:de.length))}if(me.key==="ArrowRight"){if(w.value<0)return;const ye=w.value+1;O.value[ye]?w.value=ye:(w.value=-1,E.value.setSelectionRange(0,0))}}}function te(me){if(mM(E.value,":autofill")||mM(E.value,":-webkit-autofill")){const pe=a.value.find(se=>se.title===me.target.value);pe&&ee(pe)}}function Z(){var me;d.value&&(s.value=!0,(me=E.value)==null||me.focus())}function K(me){d.value=!0,setTimeout(()=>{n.value=!0})}function re(me){n.value=!1}function q(me){(me==null||me===""&&!t.multiple&&!A.value)&&(O.value=[])}const Y=Gi(!1);function ee(me){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!me||me.props.disabled))if(t.multiple){const se=O.value.findIndex(ce=>t.valueComparator(ce.value,me.value)),ae=pe??!~se;if(~se){const ce=ae?[...O.value,me]:[...O.value];ce.splice(se,1),O.value=ce}else ae&&(O.value=[...O.value,me]);t.clearOnSelect&&(_.value="")}else{const se=pe!==!1;O.value=se?[me]:[],_.value=se&&!A.value?me.title:"",Vc(()=>{S.value=!1,s.value=!0})}}return ia(d,(me,pe)=>{var se;me!==pe&&(me?(Y.value=!0,_.value=t.multiple||A.value?"":String(((se=O.value.at(-1))==null?void 0:se.props.title)??""),s.value=!0,Vc(()=>Y.value=!1)):(!t.multiple&&_.value==null&&(O.value=[]),S.value=!1,O.value.some(ae=>{let{title:ce}=ae;return ce===_.value})||(_.value=""),w.value=-1))}),ia(_,me=>{!d.value||Y.value||(me&&(S.value=!0),s.value=!me)}),ia(S,()=>{if(!t.hideSelected&&S.value&&O.value.length){const me=T.value.findIndex(pe=>O.value.some(se=>pe.value===se.value));Hu&&window.requestAnimationFrame(()=>{var pe;me>=0&&((pe=b.value)==null||pe.scrollToIndex(me))})}}),ia(()=>t.items,(me,pe)=>{S.value||d.value&&!pe.length&&me.length&&(S.value=!0)}),Ga(()=>{const me=!!(!t.hideNoData||T.value.length||o["prepend-item"]||o["append-item"]||o["no-data"]),pe=O.value.length>0,se=Ep.filterProps(t);return $t(Ep,qi({ref:E},se,{modelValue:_.value,"onUpdate:modelValue":[ae=>_.value=ae,q],focused:d.value,"onUpdate:focused":ae=>d.value=ae,validationValue:O.externalValue,counterValue:C.value,dirty:pe,onChange:te,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":S.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!A.value,"v-autocomplete--selecting-index":w.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:pe?void 0:t.placeholder,"onClick:clear":Q,"onMousedown:control":j,onKeydown:X}),{...o,default:()=>$t(Ea,null,[$t(BO,qi({ref:u,modelValue:S.value,"onUpdate:modelValue":ae=>S.value=ae,activator:"parent",contentClass:"v-autocomplete__content",disabled:k.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:Z},t.menuProps),{default:()=>[me&&$t(Ax,qi({ref:I,selected:L.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ae=>ae.preventDefault(),onKeydown:$,onFocusin:K,onFocusout:re,onScrollPassive:z,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var ae,ce,de;return[(ae=o["prepend-item"])==null?void 0:ae.call(o),!T.value.length&&!t.hideNoData&&(((ce=o["no-data"])==null?void 0:ce.call(o))??$t(Xf,{title:f(t.noDataText)},null)),$t(Pue,{ref:b,renderless:!0,items:T.value},{default:ye=>{var Pe;let{item:ve,index:_e,itemRef:we}=ye;const Te=qi(ve.props,{ref:we,key:_e,active:D.value&&_e===0?!0:void 0,onClick:()=>ee(ve,null)});return((Pe=o.item)==null?void 0:Pe.call(o,{item:ve,index:_e,props:Te}))??$t(Xf,qi(Te,{role:"option"}),{prepend:Ie=>{let{isSelected:ze}=Ie;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:ve.value,modelValue:ze,ripple:!1,tabindex:"-1"},null):void 0,ve.props.prependAvatar&&$t(DO,{image:ve.props.prependAvatar},null),ve.props.prependIcon&&$t(jl,{icon:ve.props.prependIcon},null)])},title:()=>{var Ie,ze;return s.value?ve.title:SIe(ve.title,(Ie=M(ve))==null?void 0:Ie.title,((ze=_.value)==null?void 0:ze.length)??0)}})}}),(de=o["append-item"])==null?void 0:de.call(o)]}})]}),O.value.map((ae,ce)=>{function de(we){we.stopPropagation(),we.preventDefault(),ee(ae,!1)}const ye={"onClick:close":de,onKeydown(we){we.key!=="Enter"&&we.key!==" "||(we.preventDefault(),we.stopPropagation(),de(we))},onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ve=P.value?!!o.chip:!!o.selection,_e=ve?uq(P.value?o.chip({item:ae,index:ce,props:ye}):o.selection({item:ae,index:ce})):void 0;if(!(ve&&!_e))return $t("div",{key:ae.value,class:["v-autocomplete__selection",ce===w.value&&["v-autocomplete__selection--selected",p.value]],style:ce===w.value?v.value:{}},[P.value?o.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ae.title}}},{default:()=>[_e]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:ae.title,disabled:ae.props.disabled},ye),null):_e??$t("span",{class:"v-autocomplete__selection-text"},[ae.title,t.multiple&&ce!0,afterLeave:()=>!0},setup(t,e){let{emit:o,slots:f}=e;const E=ql(t,"modelValue"),{scopeId:d}=IM(),s=qo();function n(i){var y,m;const S=i.relatedTarget,w=i.target;if(S!==w&&((y=s.value)!=null&&y.contentEl)&&((m=s.value)!=null&&m.globalTop)&&![document,s.value.contentEl].includes(w)&&!s.value.contentEl.contains(w)){const a=QI(s.value.contentEl);if(!a.length)return;const c=a[0],h=a[a.length-1];S===c?h.focus():c.focus()}}Hu&&ia(()=>E.value&&t.retainFocus,i=>{i?document.addEventListener("focusin",n):document.removeEventListener("focusin",n)},{immediate:!0});function u(){var i;(i=s.value)!=null&&i.contentEl&&!s.value.contentEl.contains(document.activeElement)&&s.value.contentEl.focus({preventScroll:!0})}function b(){o("afterLeave")}return ia(E,async i=>{var S;i||(await Vc(),(S=s.value.activatorEl)==null||S.focus({preventScroll:!0}))}),Ga(()=>{const i=C4.filterProps(t),S=qi({"aria-haspopup":"dialog","aria-expanded":String(E.value)},t.activatorProps),w=qi({tabindex:-1},t.contentProps);return $t(C4,qi({ref:s,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},i,{modelValue:E.value,"onUpdate:modelValue":y=>E.value=y,"aria-modal":"true",activatorProps:S,contentProps:w,role:"dialog",onAfterEnter:u,onAfterLeave:b},d),{activator:f.activator,default:function(){for(var y=arguments.length,m=new Array(y),a=0;a{var c;return[(c=f.default)==null?void 0:c.call(f,...m)]}})}})}),Ix({},s)}});const kD=Oa()({name:"VCardActions",props:Js(),setup(t,e){let{slots:o}=e;return ab({VBtn:{slim:!0,variant:"text"}}),Ga(()=>{var f;return $t("div",{class:["v-card-actions",t.class],style:t.style},[(f=o.default)==null?void 0:f.call(o)])}),{}}}),CIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardSubtitle"),E_e=Oa()({name:"VCardSubtitle",props:CIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-subtitle",t.class],style:[{"--v-card-subtitle-opacity":t.opacity},t.style]},o)),{}}}),I4=fq("v-card-title"),AIe=gi({appendAvatar:String,appendIcon:Hl,prependAvatar:String,prependIcon:Hl,subtitle:[String,Number],title:[String,Number],...Js(),...Q1()},"VCardItem"),MIe=Oa()({name:"VCardItem",props:AIe(),setup(t,e){let{slots:o}=e;return Ga(()=>{var b;const f=!!(t.prependAvatar||t.prependIcon),E=!!(f||o.prepend),d=!!(t.appendAvatar||t.appendIcon),s=!!(d||o.append),n=!!(t.title!=null||o.title),u=!!(t.subtitle!=null||o.subtitle);return $t("div",{class:["v-card-item",t.class],style:t.style},[E&&$t("div",{key:"prepend",class:"v-card-item__prepend"},[o.prepend?$t(ef,{key:"prepend-defaults",disabled:!f,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},o.prepend):$t(Ea,null,[t.prependAvatar&&$t(DO,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&$t(jl,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),$t("div",{class:"v-card-item__content"},[n&&$t(I4,{key:"title"},{default:()=>{var i;return[((i=o.title)==null?void 0:i.call(o))??t.title]}}),u&&$t(E_e,{key:"subtitle"},{default:()=>{var i;return[((i=o.subtitle)==null?void 0:i.call(o))??t.subtitle]}}),(b=o.default)==null?void 0:b.call(o)]),s&&$t("div",{key:"append",class:"v-card-item__append"},[o.append?$t(ef,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},o.append):$t(Ea,null,[t.appendIcon&&$t(jl,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&$t(DO,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),EIe=gi({opacity:[Number,String],...Js(),...tf()},"VCardText"),hC=Oa()({name:"VCardText",props:EIe(),setup(t,e){let{slots:o}=e;return Ga(()=>$t(t.tag,{class:["v-card-text",t.class],style:[{"--v-card-text-opacity":t.opacity},t.style]},o)),{}}}),PIe=gi({appendAvatar:String,appendIcon:Hl,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Hl,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...B_(),...Js(),...Q1(),...I_(),...ay(),...vq(),..._D(),...bq(),...Pm(),...wq(),...tf(),...gd(),...Lx({variant:"elevated"})},"VCard"),ub=Oa()({name:"VCard",directives:{Ripple:cC},props:PIe(),setup(t,e){let{attrs:o,slots:f}=e;const{themeClasses:E}=th(t),{borderClasses:d}=$O(t),{colorClasses:s,colorStyles:n,variantClasses:u}=aC(t),{densityClasses:b}=Rx(t),{dimensionStyles:i}=D_(t),{elevationClasses:S}=cb(t),{loaderClasses:w}=wD(t),{locationStyles:y}=gq(t),{positionClasses:m}=xq(t),{roundedClasses:a}=mg(t),c=_q(t,o),h=nr(()=>t.link!==!1&&c.isLink.value),p=nr(()=>!t.disabled&&t.link!==!1&&(t.link||c.isClickable.value));return Ga(()=>{const v=h.value?"a":t.tag,_=!!(f.title||t.title!=null),O=!!(f.subtitle||t.subtitle!=null),C=_||O,x=!!(f.append||t.appendAvatar||t.appendIcon),R=!!(f.prepend||t.prependAvatar||t.prependIcon),M=!!(f.image||t.image),T=C||R||x,P=!!(f.text||t.text!=null);return Kp($t(v,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":p.value},E.value,d.value,s.value,b.value,S.value,w.value,m.value,a.value,u.value,t.class],style:[n.value,i.value,y.value,t.style],href:c.href.value,onClick:p.value&&c.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var A;return[M&&$t("div",{key:"image",class:"v-card__image"},[f.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},f.image):$t(oC,{key:"image-img",cover:!0,src:t.image},null)]),$t(yq,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:f.loader}),T&&$t(MIe,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:f.item,prepend:f.prepend,title:f.title,subtitle:f.subtitle,append:f.append}),P&&$t(hC,{key:"text"},{default:()=>{var L;return[((L=f.text)==null?void 0:L.call(f))??t.text]}}),(A=f.default)==null?void 0:A.call(f),f.actions&&$t(kD,null,{default:f.actions}),iC(p.value,"v-card")]}}),[[M_("ripple"),p.value&&t.ripple]])}),{}}});const Bue=Symbol.for("vuetify:v-slider");function cle(t,e,o){const f=o==="vertical",E=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return f?d.clientY-(E.top+E.height/2):d.clientX-(E.left+E.width/2)}function RIe(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const P_e=gi({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...Pm(),...ay({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),R_e=t=>{const e=nr(()=>parseFloat(t.min)),o=nr(()=>parseFloat(t.max)),f=nr(()=>+t.step>0?parseFloat(t.step):0),E=nr(()=>Math.max(nge(f.value),nge(e.value)));function d(s){if(s=parseFloat(s),f.value<=0)return s;const n=ug(s,e.value,o.value),u=e.value%f.value,b=Math.round((n-u)/f.value)*f.value+u;return parseFloat(Math.min(b,o.value).toFixed(E.value))}return{min:e,max:o,step:f,decimals:E,roundValue:d}},L_e=t=>{let{props:e,steps:o,onSliderStart:f,onSliderMove:E,onSliderEnd:d,getActiveThumb:s}=t;const{isRtl:n}=n0(),u=ji(e,"reverse"),b=nr(()=>e.direction==="vertical"),i=nr(()=>b.value!==u.value),{min:S,max:w,step:y,decimals:m,roundValue:a}=o,c=nr(()=>parseInt(e.thumbSize,10)),h=nr(()=>parseInt(e.tickSize,10)),p=nr(()=>parseInt(e.trackSize,10)),v=nr(()=>(w.value-S.value)/y.value),_=ji(e,"disabled"),O=nr(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),C=nr(()=>e.error||e.disabled?void 0:e.trackColor??e.color),x=nr(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),R=Gi(!1),M=Gi(0),T=qo(),P=qo();function A(re){var de;const q=e.direction==="vertical",Y=q?"top":"left",ee=q?"height":"width",me=q?"clientY":"clientX",{[Y]:pe,[ee]:se}=(de=T.value)==null?void 0:de.$el.getBoundingClientRect(),ae=RIe(re,me);let ce=Math.min(Math.max((ae-pe-M.value)/se,0),1)||0;return(q?i.value:i.value!==n.value)&&(ce=1-ce),a(S.value+ce*(w.value-S.value))}const L=re=>{d({value:A(re)}),R.value=!1,M.value=0},D=re=>{P.value=s(re),P.value&&(P.value.focus(),R.value=!0,P.value.contains(re.target)?M.value=cle(re,P.value,e.direction):(M.value=0,E({value:A(re)})),f({value:A(re)}))},k={passive:!0,capture:!0};function I(re){E({value:A(re)})}function z(re){re.stopPropagation(),re.preventDefault(),L(re),window.removeEventListener("mousemove",I,k),window.removeEventListener("mouseup",z)}function $(re){var q;L(re),window.removeEventListener("touchmove",I,k),(q=re.target)==null||q.removeEventListener("touchend",$)}function Q(re){var q;D(re),window.addEventListener("touchmove",I,k),(q=re.target)==null||q.addEventListener("touchend",$,{passive:!1})}function j(re){re.preventDefault(),D(re),window.addEventListener("mousemove",I,k),window.addEventListener("mouseup",z,{passive:!1})}const U=re=>{const q=(re-S.value)/(w.value-S.value)*100;return ug(isNaN(q)?0:q,0,100)},X=ji(e,"showTicks"),te=nr(()=>X.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(re=>({value:re,position:U(re),label:re.toString()})):Object.keys(e.ticks).map(re=>({value:parseFloat(re),position:U(parseFloat(re)),label:e.ticks[re]})):v.value!==1/0?u4(v.value+1).map(re=>{const q=S.value+re*y.value;return{value:q,position:U(q)}}):[]:[]),Z=nr(()=>te.value.some(re=>{let{label:q}=re;return!!q})),K={activeThumbRef:P,color:ji(e,"color"),decimals:m,disabled:_,direction:ji(e,"direction"),elevation:ji(e,"elevation"),hasLabels:Z,isReversed:u,indexFromEnd:i,min:S,max:w,mousePressed:R,numTicks:v,onSliderMousedown:j,onSliderTouchstart:Q,parsedTicks:te,parseMouseMove:A,position:U,readonly:ji(e,"readonly"),rounded:ji(e,"rounded"),roundValue:a,showTicks:X,startOffset:M,step:y,thumbSize:c,thumbColor:O,thumbLabel:ji(e,"thumbLabel"),ticks:ji(e,"ticks"),tickSize:h,trackColor:C,trackContainerRef:T,trackFillColor:x,trackSize:p,vertical:b};return md(Bue,K),K},LIe=gi({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Js()},"VSliderThumb"),ule=Oa()({name:"VSliderThumb",directives:{Ripple:cC},props:LIe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=Kl(Bue),{isRtl:d,rtlClasses:s}=n0();if(!E)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:n,step:u,disabled:b,thumbSize:i,thumbLabel:S,direction:w,isReversed:y,vertical:m,readonly:a,elevation:c,mousePressed:h,decimals:p,indexFromEnd:v}=E,_=nr(()=>b.value?void 0:c.value),{elevationClasses:O}=cb(_),{textColorClasses:C,textColorStyles:x}=ry(n),{pageup:R,pagedown:M,end:T,home:P,left:A,right:L,down:D,up:k}=Xse,I=[R,M,T,P,A,L,D,k],z=nr(()=>u.value?[1,2,3]:[1,5,10]);function $(j,U){if(!I.includes(j.key))return;j.preventDefault();const X=u.value||.1,te=(t.max-t.min)/X;if([A,L,D,k].includes(j.key)){const K=(m.value?[d.value?A:L,y.value?D:k]:v.value!==d.value?[A,k]:[L,k]).includes(j.key)?1:-1,re=j.shiftKey?2:j.ctrlKey?1:0;U=U+K*X*z.value[re]}else if(j.key===P)U=t.min;else if(j.key===T)U=t.max;else{const Z=j.key===M?1:-1;U=U-Z*X*(te>100?te/10:10)}return Math.max(t.min,Math.min(t.max,U))}function Q(j){const U=$(j,t.modelValue);U!=null&&f("update:modelValue",U)}return Ga(()=>{const j=is(v.value?100-t.position:t.position,"%");return $t("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&h.value},t.class,s.value],style:[{"--v-slider-thumb-position":j,"--v-slider-thumb-size":is(i.value)},t.style],role:"slider",tabindex:b.value?-1:0,"aria-label":t.name,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!a.value,"aria-orientation":w.value,onKeydown:a.value?void 0:Q},[$t("div",{class:["v-slider-thumb__surface",C.value,O.value],style:{...x.value}},null),Kp($t("div",{class:["v-slider-thumb__ripple",C.value],style:x.value},null),[[M_("ripple"),t.ripple,null,{circle:!0,center:!0}]]),$t(M2e,{origin:"bottom center"},{default:()=>{var U;return[Kp($t("div",{class:"v-slider-thumb__label-container"},[$t("div",{class:["v-slider-thumb__label"]},[$t("div",null,[((U=o["thumb-label"])==null?void 0:U.call(o,{modelValue:t.modelValue}))??t.modelValue.toFixed(u.value?p.value:1)])])]),[[A4,S.value&&t.focused||S.value==="always"]])]}})])}),{}}});const IIe=gi({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Js()},"VSliderTrack"),I_e=Oa()({name:"VSliderTrack",props:IIe(),emits:{},setup(t,e){let{slots:o}=e;const f=Kl(Bue);if(!f)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:E,parsedTicks:d,rounded:s,showTicks:n,tickSize:u,trackColor:b,trackFillColor:i,trackSize:S,vertical:w,min:y,max:m,indexFromEnd:a}=f,{roundedClasses:c}=mg(s),{backgroundColorClasses:h,backgroundColorStyles:p}=dg(i),{backgroundColorClasses:v,backgroundColorStyles:_}=dg(b),O=nr(()=>`inset-${w.value?"block":"inline"}-${a.value?"end":"start"}`),C=nr(()=>w.value?"height":"width"),x=nr(()=>({[O.value]:"0%",[C.value]:"100%"})),R=nr(()=>t.stop-t.start),M=nr(()=>({[O.value]:is(t.start,"%"),[C.value]:is(R.value,"%")})),T=nr(()=>n.value?(w.value?d.value.slice().reverse():d.value).map((A,L)=>{var k;const D=A.value!==y.value&&A.value!==m.value?is(A.position,"%"):void 0;return $t("div",{key:A.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":A.position>=t.start&&A.position<=t.stop,"v-slider-track__tick--first":A.value===y.value,"v-slider-track__tick--last":A.value===m.value}],style:{[O.value]:D}},[(A.label||o["tick-label"])&&$t("div",{class:"v-slider-track__tick-label"},[((k=o["tick-label"])==null?void 0:k.call(o,{tick:A,index:L}))??A.label])])}):[]);return Ga(()=>$t("div",{class:["v-slider-track",c.value,t.class],style:[{"--v-slider-track-size":is(S.value),"--v-slider-tick-size":is(u.value)},t.style]},[$t("div",{class:["v-slider-track__background",v.value,{"v-slider-track__background--opacity":!!E.value||!i.value}],style:{...x.value,..._.value}},null),$t("div",{class:["v-slider-track__fill",h.value],style:{...M.value,...p.value}},null),n.value&&$t("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":n.value==="always"}]},[T.value])])),{}}}),DIe=gi({...Sq(),...P_e(),...fC(),modelValue:{type:[Number,String],default:0}},"VSlider"),zue=Oa()({name:"VSlider",props:DIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),{rtlClasses:d}=n0(),s=R_e(t),n=ql(t,"modelValue",void 0,C=>s.roundValue(C??s.min.value)),{min:u,max:b,mousePressed:i,roundValue:S,onSliderMousedown:w,onSliderTouchstart:y,trackContainerRef:m,position:a,hasLabels:c,readonly:h}=L_e({props:t,steps:s,onSliderStart:()=>{f("start",n.value)},onSliderEnd:C=>{let{value:x}=C;const R=S(x);n.value=R,f("end",R)},onSliderMove:C=>{let{value:x}=C;return n.value=S(x)},getActiveThumb:()=>{var C;return(C=E.value)==null?void 0:C.$el}}),{isFocused:p,focus:v,blur:_}=uC(t),O=nr(()=>a(n.value));return Ga(()=>{const C=sb.filterProps(t),x=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider",{"v-slider--has-labels":!!o["tick-label"]||c.value,"v-slider--focused":p.value,"v-slider--pressed":i.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},C,{focused:p.value}),{...o,prepend:x?R=>{var M,T;return $t(Ea,null,[((M=o.label)==null?void 0:M.call(o,R))??(t.label?$t(Oq,{id:R.id.value,class:"v-slider__label",text:t.label},null):void 0),(T=o.prepend)==null?void 0:T.call(o,R)])}:void 0,default:R=>{let{id:M,messagesId:T}=R;return $t("div",{class:"v-slider__container",onMousedown:h.value?void 0:w,onTouchstartPassive:h.value?void 0:y},[$t("input",{id:M.value,name:t.name||M.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:n.value},null),$t(I_e,{ref:m,start:0,stop:O.value},{"tick-label":o["tick-label"]}),$t(ule,{ref:E,"aria-describedby":T.value,focused:p.value,min:u.value,max:b.value,modelValue:n.value,"onUpdate:modelValue":P=>n.value=P,position:O.value,elevation:t.elevation,onFocus:v,onBlur:_,ripple:t.ripple,name:t.name},{"thumb-label":o["thumb-label"]})])}})}),{}}});function BIe(t,e,o){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?$t(Ea,null,[$t("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),$t("span",{class:"v-combobox__mask"},[t.substr(e,o)]),$t("span",{class:"v-combobox__unmask"},[t.substr(e+o)])]):t}const zIe=gi({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Iue({filterKeys:["title"]}),...Lue({hideNoData:!0,returnObject:!0}),...R_(Mq({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...rC({transition:!1})},"VCombobox"),Nue=Oa()({name:"VCombobox",props:zIe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var pe;let{emit:o,slots:f}=e;const{t:E}=oy(),d=qo(),s=Gi(!1),n=Gi(!0),u=Gi(!1),b=qo(),i=qo(),S=ql(t,"menu"),w=nr({get:()=>S.value,set:se=>{var ae;S.value&&!se&&((ae=b.value)!=null&&ae.ΨopenChildren)||(S.value=se)}}),y=Gi(-1);let m=!1;const a=nr(()=>{var se;return(se=d.value)==null?void 0:se.color}),c=nr(()=>w.value?t.closeText:t.openText),{items:h,transformIn:p,transformOut:v}=Aue(t),{textColorClasses:_,textColorStyles:O}=ry(a),C=ql(t,"modelValue",[],se=>p(Pp(se)),se=>{const ae=v(se);return t.multiple?ae:ae[0]??null}),x=kq(),R=nr(()=>!!(t.chips||f.chip)),M=nr(()=>R.value||!!f.selection),T=Gi(!t.multiple&&!M.value?((pe=C.value[0])==null?void 0:pe.title)??"":""),P=nr({get:()=>T.value,set:se=>{var ae;if(T.value=se??"",!t.multiple&&!M.value&&(C.value=[a4(t,se)]),se&&t.multiple&&((ae=t.delimiters)!=null&&ae.length)){const ce=se.split(new RegExp(`(?:${t.delimiters.join("|")})+`));ce.length>1&&(ce.forEach(de=>{de=de.trim(),de&&q(a4(t,de))}),T.value="")}se||(y.value=-1),n.value=!se}}),A=nr(()=>typeof t.counterValue=="function"?t.counterValue(C.value):typeof t.counterValue=="number"?t.counterValue:t.multiple?C.value.length:P.value.length);ia(T,se=>{m?Vc(()=>m=!1):s.value&&!w.value&&(w.value=!0),o("update:search",se)}),ia(C,se=>{var ae;!t.multiple&&!M.value&&(T.value=((ae=se[0])==null?void 0:ae.title)??"")});const{filteredItems:L,getMatches:D}=Due(t,h,()=>n.value?"":P.value),k=nr(()=>t.hideSelected?L.value.filter(se=>!C.value.some(ae=>ae.value===se.value)):L.value),I=nr(()=>C.value.map(se=>se.value)),z=nr(()=>{var ae;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&P.value===((ae=k.value[0])==null?void 0:ae.title))&&k.value.length>0&&!n.value&&!u.value}),$=nr(()=>t.hideNoData&&!k.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),Q=qo(),{onListScroll:j,onListKeydown:U}=Rue(Q,d);function X(se){m=!0,t.openOnClear&&(w.value=!0)}function te(){$.value||(w.value=!0)}function Z(se){$.value||(s.value&&(se.preventDefault(),se.stopPropagation()),w.value=!w.value)}function K(se){var de;if(u9e(se)||t.readonly||x!=null&&x.isReadonly.value)return;const ae=d.value.selectionStart,ce=C.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(w.value=!0),["Escape"].includes(se.key)&&(w.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(z.value&&["Enter","Tab"].includes(se.key)&&!C.value.some(ye=>{let{value:ve}=ye;return ve===k.value[0].value})&&q(L.value[0]),n.value=!0),se.key==="ArrowDown"&&z.value&&((de=Q.value)==null||de.focus("next")),se.key==="Enter"&&P.value&&(q(a4(t,P.value)),M.value&&(T.value="")),["Backspace","Delete"].includes(se.key)){if(!t.multiple&&M.value&&C.value.length>0&&!P.value)return q(C.value[0],!1);if(~y.value){const ye=y.value;q(C.value[y.value],!1),y.value=ye>=ce-1?ce-2:ye}else se.key==="Backspace"&&!P.value&&(y.value=ce-1)}if(t.multiple){if(se.key==="ArrowLeft"){if(y.value<0&&ae>0)return;const ye=y.value>-1?y.value-1:ce-1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(P.value.length,P.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const ye=y.value+1;C.value[ye]?y.value=ye:(y.value=-1,d.value.setSelectionRange(0,0))}}}function re(){var se;s.value&&(n.value=!0,(se=d.value)==null||se.focus())}function q(se){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!se||se.props.disabled))if(t.multiple){const ce=C.value.findIndex(ye=>t.valueComparator(ye.value,se.value)),de=ae??!~ce;if(~ce){const ye=de?[...C.value,se]:[...C.value];ye.splice(ce,1),C.value=ye}else de&&(C.value=[...C.value,se]);t.clearOnSelect&&(P.value="")}else{const ce=ae!==!1;C.value=ce?[se]:[],T.value=ce&&!M.value?se.title:"",Vc(()=>{w.value=!1,n.value=!0})}}function Y(se){s.value=!0,setTimeout(()=>{u.value=!0})}function ee(se){u.value=!1}function me(se){(se==null||se===""&&!t.multiple&&!M.value)&&(C.value=[])}return ia(s,(se,ae)=>{if(!(se||se===ae)&&(y.value=-1,w.value=!1,P.value)){if(t.multiple){q(a4(t,P.value));return}if(!M.value)return;C.value.some(ce=>{let{title:de}=ce;return de===P.value})?T.value="":q(a4(t,P.value))}}),ia(w,()=>{if(!t.hideSelected&&w.value&&C.value.length){const se=k.value.findIndex(ae=>C.value.some(ce=>t.valueComparator(ce.value,ae.value)));Hu&&window.requestAnimationFrame(()=>{var ae;se>=0&&((ae=i.value)==null||ae.scrollToIndex(se))})}}),ia(()=>t.items,(se,ae)=>{w.value||s.value&&!ae.length&&se.length&&(w.value=!0)}),Ga(()=>{const se=!!(!t.hideNoData||k.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),ae=C.value.length>0,ce=Ep.filterProps(t);return $t(Ep,qi({ref:d},ce,{modelValue:P.value,"onUpdate:modelValue":[de=>P.value=de,me],focused:s.value,"onUpdate:focused":de=>s.value=de,validationValue:C.externalValue,counterValue:A.value,dirty:ae,class:["v-combobox",{"v-combobox--active-menu":w.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!M.value,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:ae?void 0:t.placeholder,"onClick:clear":X,"onMousedown:control":te,onKeydown:K}),{...f,default:()=>$t(Ea,null,[$t(BO,qi({ref:b,modelValue:w.value,"onUpdate:modelValue":de=>w.value=de,activator:"parent",contentClass:"v-combobox__content",disabled:$.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:re},t.menuProps),{default:()=>[se&&$t(Ax,qi({ref:Q,selected:I.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:de=>de.preventDefault(),onKeydown:U,onFocusin:Y,onFocusout:ee,onScrollPassive:j,tabindex:"-1","aria-live":"polite",color:t.itemColor??t.color},t.listProps),{default:()=>{var de,ye,ve;return[(de=f["prepend-item"])==null?void 0:de.call(f),!k.value.length&&!t.hideNoData&&(((ye=f["no-data"])==null?void 0:ye.call(f))??$t(Xf,{title:E(t.noDataText)},null)),$t(Pue,{ref:i,renderless:!0,items:k.value},{default:_e=>{var ze;let{item:we,index:Te,itemRef:Pe}=_e;const Ie=qi(we.props,{ref:Pe,key:Te,active:z.value&&Te===0?!0:void 0,onClick:()=>q(we,null)});return((ze=f.item)==null?void 0:ze.call(f,{item:we,index:Te,props:Ie}))??$t(Xf,qi(Ie,{role:"option"}),{prepend:De=>{let{isSelected:Qe}=De;return $t(Ea,null,[t.multiple&&!t.hideSelected?$t(RM,{key:we.value,modelValue:Qe,ripple:!1,tabindex:"-1"},null):void 0,we.props.prependAvatar&&$t(DO,{image:we.props.prependAvatar},null),we.props.prependIcon&&$t(jl,{icon:we.props.prependIcon},null)])},title:()=>{var De,Qe;return n.value?we.title:BIe(we.title,(De=D(we))==null?void 0:De.title,((Qe=P.value)==null?void 0:Qe.length)??0)}})}}),(ve=f["append-item"])==null?void 0:ve.call(f)]}})]}),C.value.map((de,ye)=>{function ve(Pe){Pe.stopPropagation(),Pe.preventDefault(),q(de,!1)}const _e={"onClick:close":ve,onKeydown(Pe){Pe.key!=="Enter"&&Pe.key!==" "||(Pe.preventDefault(),Pe.stopPropagation(),ve(Pe))},onMousedown(Pe){Pe.preventDefault(),Pe.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},we=R.value?!!f.chip:!!f.selection,Te=we?uq(R.value?f.chip({item:de,index:ye,props:_e}):f.selection({item:de,index:ye})):void 0;if(!(we&&!Te))return $t("div",{key:de.value,class:["v-combobox__selection",ye===y.value&&["v-combobox__selection--selected",_.value]],style:ye===y.value?O.value:{}},[R.value?f.chip?$t(ef,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:de.title}}},{default:()=>[Te]}):$t(LM,qi({key:"chip",closable:t.closableChips,size:"small",text:de.title,disabled:de.props.disabled},_e),null):Te??$t("span",{class:"v-combobox__selection-text"},[de.title,t.multiple&&ye0&&f.push(E),f}function FIe(t,e,o){const f=o??Pq[e.slice(-2).toUpperCase()]??0,E=new Date(t);for(;E.getDay()!==f;)E.setDate(E.getDate()-1);return E}function $Ie(t,e){const o=new Date(t),f=((Pq[e.slice(-2).toUpperCase()]??0)+6)%7;for(;o.getDay()!==f;)o.setDate(o.getDate()+1);return o}function D_e(t){return new Date(t.getFullYear(),t.getMonth(),1)}function B_e(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function VIe(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const UIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function z_e(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(UIe.test(t))return VIe(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const Xge=new Date(2e3,0,2);function jIe(t,e){const o=e??Pq[t.slice(-2).toUpperCase()]??0;return u4(7).map(f=>{const E=new Date(Xge);return E.setDate(Xge.getDate()+o+f),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(E)})}function QIe(t,e,o,f){const E=z_e(t)??new Date,d=f==null?void 0:f[e];if(typeof d=="function")return d(E,e,o);let s={};switch(e){case"fullDate":s={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":s={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const n=E.getDate(),u=new Intl.DateTimeFormat(o,{month:"long"}).format(E);return`${n} ${u}`;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":s={month:"short",day:"numeric"};break;case"year":s={year:"numeric"};break;case"month":s={month:"long"};break;case"monthShort":s={month:"short"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"weekday":s={weekday:"long"};break;case"weekdayShort":s={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(o).format(E.getDate());case"hours12h":s={hour:"numeric",hour12:!0};break;case"hours24h":s={hour:"numeric",hour12:!1};break;case"minutes":s={minute:"numeric"};break;case"seconds":s={second:"numeric"};break;case"fullTime":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":s={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":s={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":s={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":s={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:s=d??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(o,s).format(E)}function HIe(t,e){const o=t.toJsDate(e),f=o.getFullYear(),E=oge(String(o.getMonth()+1),2,"0"),d=oge(String(o.getDate()),2,"0");return`${f}-${E}-${d}`}function ZIe(t){const[e,o,f]=t.split("-").map(Number);return new Date(e,o-1,f)}function qIe(t,e){const o=new Date(t);return o.setMinutes(o.getMinutes()+e),o}function WIe(t,e){const o=new Date(t);return o.setHours(o.getHours()+e),o}function YIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e),o}function XIe(t,e){const o=new Date(t);return o.setDate(o.getDate()+e*7),o}function GIe(t,e){const o=new Date(t);return o.setDate(1),o.setMonth(o.getMonth()+e),o}function KIe(t){return t.getFullYear()}function JIe(t){return t.getMonth()}function eDe(t){return t.getDate()}function tDe(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function nDe(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function rDe(t){return t.getHours()}function oDe(t){return t.getMinutes()}function iDe(t){return new Date(t.getFullYear(),0,1)}function aDe(t){return new Date(t.getFullYear(),11,31)}function sDe(t,e){return gZ(t,e[0])&&uDe(t,e[1])}function lDe(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function gZ(t,e){return t.getTime()>e.getTime()}function cDe(t,e){return gZ(fle(t),fle(e))}function uDe(t,e){return t.getTime(){o.locale=t.locale[f]??f??o.locale}),o}const kDe=gi({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),N_e=Symbol.for("vuetify:datatable:expanded");function TDe(t){const e=ji(t,"expandOnClick"),o=ql(t,"expanded",t.expanded,n=>new Set(n),n=>[...n.values()]);function f(n,u){const b=new Set(o.value);u?b.add(n.value):b.delete(n.value),o.value=b}function E(n){return o.value.has(n.value)}function d(n){f(n,!E(n))}const s={expand:f,expanded:o,expandOnClick:e,isExpanded:E,toggleExpand:d};return md(N_e,s),s}function F_e(){const t=Kl(N_e);if(!t)throw new Error("foo");return t}const CDe=gi({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),$_e=Symbol.for("vuetify:data-table-group");function ADe(t){return{groupBy:ql(t,"groupBy")}}function MDe(t){const{disableSort:e,groupBy:o,sortBy:f}=t,E=qo(new Set),d=nr(()=>o.value.map(i=>({...i,order:i.order??!1})).concat(e!=null&&e.value?[]:f.value));function s(i){return E.value.has(i.id)}function n(i){const S=new Set(E.value);s(i)?S.delete(i.id):S.add(i.id),E.value=S}function u(i){function S(w){const y=[];for(const m of w.items)"type"in m&&m.type==="group"?y.push(...S(m)):y.push(m);return y}return S({type:"group",items:i,id:"dummy",key:"dummy",value:"dummy",depth:0})}const b={sortByWithGroups:d,toggleGroup:n,opened:E,groupBy:o,extractRows:u,isGroupOpen:s};return md($_e,b),b}function V_e(){const t=Kl($_e);if(!t)throw new Error("Missing group!");return t}function EDe(t,e){if(!t.length)return[];const o=new Map;for(const f of t){const E=GT(f.raw,e);o.has(E)||o.set(E,[]),o.get(E).push(f)}return o}function U_e(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const E=EDe(t,e[0]),d=[],s=e.slice(1);return E.forEach((n,u)=>{const b=e[0],i=`${f}_${b}_${u}`;d.push({depth:o,id:i,key:b,value:u,items:s.length?U_e(n,s,o+1,i):n,type:"group"})}),d}function j_e(t,e){const o=[];for(const f of t)"type"in f&&f.type==="group"?(f.value!=null&&o.push(f),(e.has(f.id)||f.value==null)&&o.push(...j_e(f.items,e))):o.push(f);return o}function PDe(t,e,o){return{flatItems:nr(()=>{if(!e.value.length)return t.value;const E=U_e(t.value,e.value.map(d=>d.key));return j_e(E,o.value)})}}function RDe(t){let{page:e,itemsPerPage:o,sortBy:f,groupBy:E,search:d}=t;const s=Xh("VDataTable"),n=nr(()=>({page:e.value,itemsPerPage:o.value,sortBy:f.value,groupBy:E.value,search:d.value}));let u=null;ia(n,()=>{R4(u,n.value)||(u&&u.search!==n.value.search&&(e.value=1),s.emit("update:options",n.value),u=n.value)},{deep:!0,immediate:!0})}const LDe=gi({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Q_e=Symbol.for("vuetify:data-table-pagination");function IDe(t){const e=ql(t,"page",void 0,f=>+(f??1)),o=ql(t,"itemsPerPage",void 0,f=>+(f??10));return{page:e,itemsPerPage:o}}function DDe(t){const{page:e,itemsPerPage:o,itemsLength:f}=t,E=nr(()=>o.value===-1?0:o.value*(e.value-1)),d=nr(()=>o.value===-1?f.value:Math.min(f.value,E.value+o.value)),s=nr(()=>o.value===-1||f.value===0?1:Math.ceil(f.value/o.value));Gp(()=>{e.value>s.value&&(e.value=s.value)});function n(w){o.value=w,e.value=1}function u(){e.value=ug(e.value+1,1,s.value)}function b(){e.value=ug(e.value-1,1,s.value)}function i(w){e.value=ug(w,1,s.value)}const S={page:e,itemsPerPage:o,startIndex:E,stopIndex:d,pageCount:s,itemsLength:f,nextPage:u,prevPage:b,setPage:i,setItemsPerPage:n};return md(Q_e,S),S}function BDe(){const t=Kl(Q_e);if(!t)throw new Error("Missing pagination!");return t}function zDe(t){const e=Xh("usePaginatedItems"),{items:o,startIndex:f,stopIndex:E,itemsPerPage:d}=t,s=nr(()=>d.value<=0?o.value:o.value.slice(f.value,E.value));return ia(s,n=>{e.emit("update:currentItems",n)}),{paginatedItems:s}}const NDe={showSelectAll:!1,allSelected:()=>[],select:t=>{var f;let{items:e,value:o}=t;return new Set(o?[(f=e[0])==null?void 0:f.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},H_e={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,currentPage:o,selected:f}=t;return H_e.select({items:o,value:e,selected:f})}},Z_e={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:o,selected:f}=t;for(const E of e)o?f.add(E.value):f.delete(E.value);return f},selectAll:t=>{let{value:e,allItems:o,selected:f}=t;return Z_e.select({items:o,value:e,selected:f})}},FDe=gi({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:R4}},"DataTable-select"),q_e=Symbol.for("vuetify:data-table-selection");function $De(t,e){let{allItems:o,currentPage:f}=e;const E=ql(t,"modelValue",t.modelValue,h=>new Set(Pp(h).map(p=>{var v;return((v=o.value.find(_=>t.valueComparator(p,_.value)))==null?void 0:v.value)??p})),h=>[...h.values()]),d=nr(()=>o.value.filter(h=>h.selectable)),s=nr(()=>f.value.filter(h=>h.selectable)),n=nr(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return NDe;case"all":return Z_e;case"page":default:return H_e}});function u(h){return Pp(h).every(p=>E.value.has(p.value))}function b(h){return Pp(h).some(p=>E.value.has(p.value))}function i(h,p){const v=n.value.select({items:h,value:p,selected:new Set(E.value)});E.value=v}function S(h){i([h],!u([h]))}function w(h){const p=n.value.selectAll({value:h,allItems:d.value,currentPage:s.value,selected:new Set(E.value)});E.value=p}const y=nr(()=>E.value.size>0),m=nr(()=>{const h=n.value.allSelected({allItems:d.value,currentPage:s.value});return!!h.length&&u(h)}),a=nr(()=>n.value.showSelectAll),c={toggleSelect:S,select:i,selectAll:w,isSelected:u,isSomeSelected:b,someSelected:y,allSelected:m,showSelectAll:a};return md(q_e,c),c}function Rq(){const t=Kl(q_e);if(!t)throw new Error("Missing selection!");return t}const VDe=gi({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),W_e=Symbol.for("vuetify:data-table-sort");function UDe(t){const e=ql(t,"sortBy"),o=ji(t,"mustSort"),f=ji(t,"multiSort");return{sortBy:e,mustSort:o,multiSort:f}}function jDe(t){const{sortBy:e,mustSort:o,multiSort:f,page:E}=t,d=u=>{if(u.key==null)return;let b=e.value.map(S=>({...S}))??[];const i=b.find(S=>S.key===u.key);i?i.order==="desc"?o.value?i.order="asc":b=b.filter(S=>S.key!==u.key):i.order="desc":f.value?b=[...b,{key:u.key,order:"asc"}]:b=[{key:u.key,order:"asc"}],e.value=b,E&&(E.value=1)};function s(u){return!!e.value.find(b=>b.key===u.key)}const n={sortBy:e,toggleSort:d,isSorted:s};return md(W_e,n),n}function Y_e(){const t=Kl(W_e);if(!t)throw new Error("Missing sort!");return t}function QDe(t,e,o,f){const E=oy();return{sortedItems:nr(()=>{var s,n;return o.value.length?HDe(e.value,o.value,E.current.value,{transform:f==null?void 0:f.transform,sortFunctions:{...t.customKeySort,...(s=f==null?void 0:f.sortFunctions)==null?void 0:s.value},sortRawFunctions:(n=f==null?void 0:f.sortRawFunctions)==null?void 0:n.value}):e.value})}}function HDe(t,e,o,f){const E=new Intl.Collator(o,{sensitivity:"accent",usage:"sort"});return t.map(s=>[s,f!=null&&f.transform?f.transform(s):s]).sort((s,n)=>{var u,b;for(let i=0;ip!=null?p.toString().toLocaleLowerCase():p),m!==a)return HQ(m)&&HQ(a)?0:HQ(m)?-1:HQ(a)?1:!isNaN(m)&&!isNaN(a)?Number(m)-Number(a):E.compare(m,a)}}return 0}).map(s=>{let[n]=s;return n})}function ZDe(){const t=qo([]);yve(()=>t.value=[]);function e(o,f){t.value[f]=o}return{refs:t,updateRef:e}}const qDe=gi({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:Hl,default:"$first"},prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},lastIcon:{type:Hl,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...B_(),...Js(),...Q1(),...ay(),...Pm(),...sC(),...tf({tag:"nav"}),...gd(),...Lx({variant:"text"})},"VPagination"),Jge=Oa()({name:"VPagination",props:qDe(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=ql(t,"modelValue"),{t:d,n:s}=oy(),{isRtl:n}=n0(),{themeClasses:u}=th(t),{width:b}=L4(),i=Gi(-1);ab(void 0,{scoped:!0});const{resizeRef:S}=T4(R=>{if(!R.length)return;const{target:M,contentRect:T}=R[0],P=M.querySelector(".v-pagination__list > *");if(!P)return;const A=T.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;i.value=a(A,L)}),w=nr(()=>parseInt(t.length,10)),y=nr(()=>parseInt(t.start,10)),m=nr(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):i.value>=0?i.value:a(b.value,58));function a(R,M){const T=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((R-M*T)/M).toFixed(2)))}const c=nr(()=>{if(w.value<=0||isNaN(w.value)||w.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[E.value];if(w.value<=m.value)return u4(w.value,y.value);const R=m.value%2===0,M=R?m.value/2:Math.floor(m.value/2),T=R?M:M+1,P=w.value-M;if(T-E.value>=0)return[...u4(Math.max(1,m.value-1),y.value),t.ellipsis,w.value];if(E.value-P>=(R?1:0)){const A=m.value-1,L=w.value-A+y.value;return[y.value,t.ellipsis,...u4(A,L)]}else{const A=Math.max(1,m.value-3),L=A===1?E.value:E.value-Math.ceil(A/2)+y.value;return[y.value,t.ellipsis,...u4(A,L),t.ellipsis,w.value]}});function h(R,M,T){R.preventDefault(),E.value=M,T&&f(T,M)}const{refs:p,updateRef:v}=ZDe();ab({VPaginationBtn:{color:ji(t,"color"),border:ji(t,"border"),density:ji(t,"density"),size:ji(t,"size"),variant:ji(t,"variant"),rounded:ji(t,"rounded"),elevation:ji(t,"elevation")}});const _=nr(()=>c.value.map((R,M)=>{const T=P=>v(P,M);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${M}`,page:R,props:{ref:T,ellipsis:!0,icon:!0,disabled:!0}};{const P=R===E.value;return{isActive:P,key:R,page:s(R),props:{ref:T,ellipsis:!1,icon:!0,disabled:!!t.disabled||+t.length<2,color:P?t.activeColor:t.color,"aria-current":P,"aria-label":d(P?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:A=>h(A,R)}}}})),O=nr(()=>{const R=!!t.disabled||E.value<=y.value,M=!!t.disabled||E.value>=y.value+w.value-1;return{first:t.showFirstLastPage?{icon:n.value?t.lastIcon:t.firstIcon,onClick:T=>h(T,y.value,"first"),disabled:R,"aria-label":d(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:n.value?t.nextIcon:t.prevIcon,onClick:T=>h(T,E.value-1,"prev"),disabled:R,"aria-label":d(t.previousAriaLabel),"aria-disabled":R},next:{icon:n.value?t.prevIcon:t.nextIcon,onClick:T=>h(T,E.value+1,"next"),disabled:M,"aria-label":d(t.nextAriaLabel),"aria-disabled":M},last:t.showFirstLastPage?{icon:n.value?t.firstIcon:t.lastIcon,onClick:T=>h(T,y.value+w.value-1,"last"),disabled:M,"aria-label":d(t.lastAriaLabel),"aria-disabled":M}:void 0}});function C(){var M;const R=E.value-y.value;(M=p.value[R])==null||M.$el.focus()}function x(R){R.key===Xse.left&&!t.disabled&&E.value>+t.start?(E.value=E.value-1,Vc(C)):R.key===Xse.right&&!t.disabled&&E.value$t(t.tag,{ref:S,class:["v-pagination",u.value,t.class],style:t.style,role:"navigation","aria-label":d(t.ariaLabel),onKeydown:x,"data-test":"v-pagination-root"},{default:()=>[$t("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&$t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[o.first?o.first(O.value.first):$t(Ja,qi({_as:"VPaginationBtn"},O.value.first),null)]),$t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[o.prev?o.prev(O.value.prev):$t(Ja,qi({_as:"VPaginationBtn"},O.value.prev),null)]),_.value.map((R,M)=>$t("li",{key:R.key,class:["v-pagination__item",{"v-pagination__item--is-active":R.isActive}],"data-test":"v-pagination-item"},[o.item?o.item(R):$t(Ja,qi({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),$t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[o.next?o.next(O.value.next):$t(Ja,qi({_as:"VPaginationBtn"},O.value.next),null)]),t.showFirstLastPage&&$t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[o.last?o.last(O.value.last):$t(Ja,qi({_as:"VPaginationBtn"},O.value.last),null)])])]})),{}}}),X_e=gi({prevIcon:{type:Hl,default:"$prev"},nextIcon:{type:Hl,default:"$next"},firstIcon:{type:Hl,default:"$first"},lastIcon:{type:Hl,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),e0e=Oa()({name:"VDataTableFooter",props:X_e(),setup(t,e){let{slots:o}=e;const{t:f}=oy(),{page:E,pageCount:d,startIndex:s,stopIndex:n,itemsLength:u,itemsPerPage:b,setItemsPerPage:i}=BDe(),S=nr(()=>t.itemsPerPageOptions.map(w=>typeof w=="number"?{value:w,title:w===-1?f("$vuetify.dataFooter.itemsPerPageAll"):String(w)}:{...w,title:isNaN(Number(w.title))?f(w.title):w.title}));return Ga(()=>{var y;const w=Jge.filterProps(t);return $t("div",{class:"v-data-table-footer"},[(y=o.prepend)==null?void 0:y.call(o),$t("div",{class:"v-data-table-footer__items-per-page"},[$t("span",null,[f(t.itemsPerPageText)]),$t(DM,{items:S.value,modelValue:b.value,"onUpdate:modelValue":m=>i(Number(m)),density:"compact",variant:"outlined","hide-details":!0},null)]),$t("div",{class:"v-data-table-footer__info"},[$t("div",null,[f(t.pageText,u.value?s.value+1:0,n.value,u.value)])]),$t("div",{class:"v-data-table-footer__pagination"},[$t(Jge,qi({modelValue:E.value,"onUpdate:modelValue":m=>E.value=m,density:"comfortable","first-aria-label":t.firstPageLabel,"last-aria-label":t.lastPageLabel,length:d.value,"next-aria-label":t.nextPageLabel,"previous-aria-label":t.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":t.showCurrentPage?1:0,variant:"plain"},w),null)])])}),{}}}),vZ=H9e({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,e)=>{let{slots:o}=e;const f=t.tag??"td";return $t(f,{class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap},`v-data-table-column--align-${t.align}`],style:{height:is(t.height),width:is(t.width),maxWidth:is(t.maxWidth),left:is(t.fixedOffset||null)}},{default:()=>{var E;return[(E=o.default)==null?void 0:E.call(o)]}})}),WDe=gi({headers:Array},"DataTable-header"),G_e=Symbol.for("vuetify:data-table-headers"),K_e={title:"",sortable:!1},YDe={...K_e,width:48};function XDe(){const e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(o=>({element:o,priority:0}));return{enqueue:(o,f)=>{let E=!1;for(let d=0;df){e.splice(d,0,{element:o,priority:f}),E=!0;break}E||e.push({element:o,priority:f})},size:()=>e.length,count:()=>{let o=0;if(!e.length)return 0;const f=Math.floor(e[0].priority);for(let E=0;Ee.shift()}}function dle(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)e.push(t);else for(const o of t.children)dle(o,e);return e}function J_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const o of t)o.key&&e.add(o.key),o.children&&J_e(o.children,e);return e}function GDe(t){if(t.key){if(t.key==="data-table-group")return K_e;if(["data-table-expand","data-table-select"].includes(t.key))return YDe}}function Fue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(e,...t.children.map(o=>Fue(o,e+1))):e}function KDe(t){let e=!1;function o(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)if(s&&(d.fixed=!0),d.fixed)if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n],!0);else e?isNaN(+d.width)&&(`${d.key}`,void 0):d.lastFixed=!0,e=!0;else if(d.children)for(let n=d.children.length-1;n>=0;n--)o(d.children[n]);else e=!1}for(let d=t.length-1;d>=0;d--)o(t[d]);function f(d){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!d)return s;if(d.children){d.fixedOffset=s;for(const n of d.children)s=f(n,s)}else d.fixed&&(d.fixedOffset=s,s+=parseFloat(d.width||"0")||0);return s}let E=0;for(const d of t)E=f(d,E)}function JDe(t,e){const o=[];let f=0;const E=XDe(t);for(;E.size()>0;){let s=E.count();const n=[];let u=1;for(;s>0;){const{element:b,priority:i}=E.dequeue(),S=e-f-Fue(b);if(n.push({...b,rowspan:S??1,colspan:b.children?dle(b).length:1}),b.children)for(const w of b.children){const y=i%1+u/Math.pow(10,f+2);E.enqueue(w,f+S+y)}u+=1,s-=1}f+=1,o.push(n)}return{columns:t.map(s=>dle(s)).flat(),headers:o}}function ewe(t){const e=[];for(const o of t){const f={...GDe(o),...o},E=f.key??(typeof f.value=="string"?f.value:null),d=f.value??E??null,s={...f,key:E,value:d,sortable:f.sortable??(f.key!=null||!!f.sort),children:f.children?ewe(f.children):void 0};e.push(s)}return e}function eBe(t,e){const o=qo([]),f=qo([]),E=qo({}),d=qo({}),s=qo({});Gp(()=>{var a,c,h;const b=(t.headers||Object.keys(t.items[0]??{}).map(p=>({key:p,title:A_(p)}))).slice(),i=J_e(b);(a=e==null?void 0:e.groupBy)!=null&&a.value.length&&!i.has("data-table-group")&&b.unshift({key:"data-table-group",title:"Group"}),(c=e==null?void 0:e.showSelect)!=null&&c.value&&!i.has("data-table-select")&&b.unshift({key:"data-table-select"}),(h=e==null?void 0:e.showExpand)!=null&&h.value&&!i.has("data-table-expand")&&b.push({key:"data-table-expand"});const S=ewe(b);KDe(S);const w=Math.max(...S.map(p=>Fue(p)))+1,y=JDe(S,w);o.value=y.headers,f.value=y.columns;const m=y.headers.flat(1);for(const p of m)p.key&&(p.sortable&&(p.sort&&(E.value[p.key]=p.sort),p.sortRaw&&(d.value[p.key]=p.sortRaw)),p.filter&&(s.value[p.key]=p.filter))});const n={headers:o,columns:f,sortFunctions:E,sortRawFunctions:d,filterFunctions:s};return md(G_e,n),n}function Lq(){const t=Kl(G_e);if(!t)throw new Error("Missing headers!");return t}const twe=gi({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Hl,default:"$sortAsc"},sortDescIcon:{type:Hl,default:"$sortDesc"},headerProps:{type:Object},...OD(),...vq()},"VDataTableHeaders"),t0e=Oa()({name:"VDataTableHeaders",props:twe(),setup(t,e){let{slots:o}=e;const{t:f}=oy(),{toggleSort:E,sortBy:d,isSorted:s}=Y_e(),{someSelected:n,allSelected:u,selectAll:b,showSelectAll:i}=Rq(),{columns:S,headers:w}=Lq(),{loaderClasses:y}=wD(t);function m(R,M){if(!(!t.sticky&&!R.fixed))return{position:"sticky",left:R.fixed?is(R.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${M})`:void 0}}function a(R){const M=d.value.find(T=>T.key===R.key);return M?M.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:c,backgroundColorStyles:h}=dg(t,"color"),{displayClasses:p,mobile:v}=L4(t),_=nr(()=>({headers:w.value,columns:S.value,toggleSort:E,isSorted:s,sortBy:d.value,someSelected:n.value,allSelected:u.value,selectAll:b,getSortIcon:a})),O=nr(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky},p.value,y.value]),C=R=>{let{column:M,x:T,y:P}=R;const A=M.key==="data-table-select"||M.key==="data-table-expand",L=qi(t.headerProps??{},M.headerProps??{});return $t(vZ,qi({tag:"th",align:M.align,class:[{"v-data-table__th--sortable":M.sortable&&!t.disableSort,"v-data-table__th--sorted":s(M),"v-data-table__th--fixed":M.fixed},...O.value],style:{width:is(M.width),minWidth:is(M.minWidth),maxWidth:is(M.maxWidth),...m(M,P)},colspan:M.colspan,rowspan:M.rowspan,onClick:M.sortable?()=>E(M):void 0,fixed:M.fixed,nowrap:M.nowrap,lastFixed:M.lastFixed,noPadding:A},L),{default:()=>{var I;const D=`header.${M.key}`,k={column:M,selectAll:b,isSorted:s,toggleSort:E,sortBy:d.value,someSelected:n.value,allSelected:u.value,getSortIcon:a};return o[D]?o[D](k):M.key==="data-table-select"?((I=o["header.data-table-select"])==null?void 0:I.call(o,k))??(i.value&&$t(RM,{modelValue:u.value,indeterminate:n.value&&!u.value,"onUpdate:modelValue":b},null)):$t("div",{class:"v-data-table-header__content"},[$t("span",null,[M.title]),M.sortable&&!t.disableSort&&$t(jl,{key:"icon",class:"v-data-table-header__sort-icon",icon:a(M)},null),t.multiSort&&s(M)&&$t("div",{key:"badge",class:["v-data-table-header__sort-badge",...c.value],style:h.value},[d.value.findIndex(z=>z.key===M.key)+1])])}})},x=()=>{const R=qi(t.headerProps??{}??{}),M=nr(()=>S.value.filter(P=>(P==null?void 0:P.sortable)&&!t.disableSort)),T=nr(()=>{if(S.value.find(A=>A.key==="data-table-select")!=null)return u.value?"$checkboxOn":n.value?"$checkboxIndeterminate":"$checkboxOff"});return $t(vZ,qi({tag:"th",class:[...O.value],colspan:w.value.length+1},R),{default:()=>[$t("div",{class:"v-data-table-header__content"},[$t(DM,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:M.value,label:f("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>d.value=[],appendIcon:T.value,"onClick:append":()=>b(!u.value)},{...o,chip:P=>{var A;return $t(LM,{onClick:(A=P.item.raw)!=null&&A.sortable?()=>E(P.item.raw):void 0,onMousedown:L=>{L.preventDefault(),L.stopPropagation()}},{default:()=>[P.item.title,$t(jl,{class:["v-data-table__td-sort-icon",s(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:a(P.item.raw),size:"small"},null)]})}})])]})};Ga(()=>v.value?$t("tr",null,[$t(x,null,null)]):$t(Ea,null,[o.headers?o.headers(_.value):w.value.map((R,M)=>$t("tr",null,[R.map((T,P)=>$t(C,{column:T,x:P,y:M},null))])),t.loading&&$t("tr",{class:"v-data-table-progress"},[$t("th",{colspan:S.value.length},[$t(yq,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:o.loader})])])]))}}),tBe=gi({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),nBe=Oa()({name:"VDataTableGroupHeaderRow",props:tBe(),setup(t,e){let{slots:o}=e;const{isGroupOpen:f,toggleGroup:E,extractRows:d}=V_e(),{isSelected:s,isSomeSelected:n,select:u}=Rq(),{columns:b}=Lq(),i=nr(()=>d([t.item]));return()=>$t("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[b.value.map(S=>{var w,y;if(S.key==="data-table-group"){const m=f(t.item)?"$expand":"$next",a=()=>E(t.item);return((w=o["data-table-group"])==null?void 0:w.call(o,{item:t.item,count:i.value.length,props:{icon:m,onClick:a}}))??$t(vZ,{class:"v-data-table-group-header-row__column"},{default:()=>[$t(Ja,{size:"small",variant:"text",icon:m,onClick:a},null),$t("span",null,[t.item.value]),$t("span",null,[Ua("("),i.value.length,Ua(")")])]})}if(S.key==="data-table-select"){const m=s(i.value),a=n(i.value)&&!m,c=h=>u(i.value,h);return((y=o["data-table-select"])==null?void 0:y.call(o,{props:{modelValue:m,indeterminate:a,"onUpdate:modelValue":c}}))??$t("td",null,[$t(RM,{modelValue:m,indeterminate:a,"onUpdate:modelValue":c},null)])}return $t("td",null,null)})])}}),rBe=gi({index:Number,item:Object,cellProps:[Object,Function],onClick:fg(),onContextmenu:fg(),onDblclick:fg(),...OD()},"VDataTableRow"),oBe=Oa()({name:"VDataTableRow",props:rBe(),setup(t,e){let{slots:o}=e;const{displayClasses:f,mobile:E}=L4(t,"v-data-table__tr"),{isSelected:d,toggleSelect:s,someSelected:n,allSelected:u,selectAll:b}=Rq(),{isExpanded:i,toggleExpand:S}=F_e(),{toggleSort:w,sortBy:y,isSorted:m}=Y_e(),{columns:a}=Lq();Ga(()=>$t("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},f.value],onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&a.value.map((c,h)=>{const p=t.item,v=`item.${c.key}`,_=`header.${c.key}`,O={index:t.index,item:p.raw,internalItem:p,value:GT(p.columns,c.key),column:c,isSelected:d,toggleSelect:s,isExpanded:i,toggleExpand:S},C={column:c,selectAll:b,isSorted:m,toggleSort:w,sortBy:y.value,someSelected:n.value,allSelected:u.value,getSortIcon:()=>""},x=typeof t.cellProps=="function"?t.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value,column:c}):t.cellProps,R=typeof c.cellProps=="function"?c.cellProps({index:O.index,item:O.item,internalItem:O.internalItem,value:O.value}):c.cellProps;return $t(vZ,qi({align:c.align,class:{"v-data-table__td--expanded-row":c.key==="data-table-expand","v-data-table__td--select-row":c.key==="data-table-select"},fixed:c.fixed,fixedOffset:c.fixedOffset,lastFixed:c.lastFixed,maxWidth:E.value?void 0:c.maxWidth,noPadding:c.key==="data-table-select"||c.key==="data-table-expand",nowrap:c.nowrap,width:E.value?void 0:c.width},x,R),{default:()=>{var T,P,A,L,D;if(o[v]&&!E.value)return(T=o[v])==null?void 0:T.call(o,O);if(c.key==="data-table-select")return((P=o["item.data-table-select"])==null?void 0:P.call(o,O))??$t(RM,{disabled:!p.selectable,modelValue:d([p]),onClick:LH(()=>s(p),["stop"])},null);if(c.key==="data-table-expand")return((A=o["item.data-table-expand"])==null?void 0:A.call(o,O))??$t(Ja,{icon:i(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:LH(()=>S(p),["stop"])},null);const M=Dl(O.value);return E.value?$t(Ea,null,[$t("div",{class:"v-data-table__td-title"},[((L=o[_])==null?void 0:L.call(o,C))??c.title]),$t("div",{class:"v-data-table__td-value"},[((D=o[v])==null?void 0:D.call(o,O))??M])]):M}})})]))}}),nwe=gi({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...OD()},"VDataTableRows"),n0e=Oa()({name:"VDataTableRows",inheritAttrs:!1,props:nwe(),setup(t,e){let{attrs:o,slots:f}=e;const{columns:E}=Lq(),{expandOnClick:d,toggleExpand:s,isExpanded:n}=F_e(),{isSelected:u,toggleSelect:b}=Rq(),{toggleGroup:i,isGroupOpen:S}=V_e(),{t:w}=oy(),{mobile:y}=L4(t);return Ga(()=>{var m,a;return t.loading&&(!t.items.length||f.loading)?$t("tr",{class:"v-data-table-rows-loading",key:"loading"},[$t("td",{colspan:E.value.length},[((m=f.loading)==null?void 0:m.call(f))??w(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?$t("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[$t("td",{colspan:E.value.length},[((a=f["no-data"])==null?void 0:a.call(f))??w(t.noDataText)])]):$t(Ea,null,[t.items.map((c,h)=>{var _;if(c.type==="group"){const O={index:h,item:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b,toggleGroup:i,isGroupOpen:S};return f["group-header"]?f["group-header"](O):$t(nBe,qi({key:`group-header_${c.id}`,item:c},_ge(o,":group-header",()=>O)),f)}const p={index:h,item:c.raw,internalItem:c,columns:E.value,isExpanded:n,toggleExpand:s,isSelected:u,toggleSelect:b},v={...p,props:qi({key:`item_${c.key??c.index}`,onClick:d.value?()=>{s(c)}:void 0,index:h,item:c,cellProps:t.cellProps,mobile:y.value},_ge(o,":row",()=>p),typeof t.rowProps=="function"?t.rowProps({item:p.item,index:p.index,internalItem:p.internalItem}):t.rowProps)};return $t(Ea,{key:v.props.key},[f.item?f.item(v):$t(oBe,v.props,f),n(c)&&((_=f["expanded-row"])==null?void 0:_.call(f,p))])})])}),{}}});const rwe=gi({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Js(),...Q1(),...tf(),...gd()},"VTable"),r0e=Oa()({name:"VTable",props:rwe(),setup(t,e){let{slots:o,emit:f}=e;const{themeClasses:E}=th(t),{densityClasses:d}=Rx(t);return Ga(()=>$t(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!o.top,"v-table--has-bottom":!!o.bottom,"v-table--hover":t.hover},E.value,d.value,t.class],style:t.style},{default:()=>{var s,n,u;return[(s=o.top)==null?void 0:s.call(o),o.default?$t("div",{class:"v-table__wrapper",style:{height:is(t.height)}},[$t("table",null,[o.default()])]):(n=o.wrapper)==null?void 0:n.call(o),(u=o.bottom)==null?void 0:u.call(o)]}})),{}}}),iBe=gi({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function aBe(t,e,o,f){const E=t.returnObject?e:N1(e,t.itemValue),d=N1(e,t.itemSelectable,!0),s=f.reduce((n,u)=>(u.key!=null&&(n[u.key]=N1(e,u.value)),n),{});return{type:"item",key:t.returnObject?N1(e,t.itemValue):E,index:o,value:E,selectable:d,columns:s,raw:e}}function sBe(t,e,o){return e.map((f,E)=>aBe(t,f,E,o))}function lBe(t,e){return{items:nr(()=>sBe(t,t.items,e.value))}}const cBe=gi({...nwe(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...kDe(),...CDe(),...WDe(),...iBe(),...FDe(),...VDe(),...twe(),...rwe()},"DataTable"),uBe=gi({...LDe(),...cBe(),...Iue(),...X_e()},"VDataTable"),Iq=Oa()({name:"VDataTable",props:uBe(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const{groupBy:E}=ADe(t),{sortBy:d,multiSort:s,mustSort:n}=UDe(t),{page:u,itemsPerPage:b}=IDe(t),{disableSort:i}=CM(t),{columns:S,headers:w,sortFunctions:y,sortRawFunctions:m,filterFunctions:a}=eBe(t,{groupBy:E,showSelect:ji(t,"showSelect"),showExpand:ji(t,"showExpand")}),{items:c}=lBe(t,S),h=ji(t,"search"),{filteredItems:p}=Due(t,c,h,{transform:q=>q.columns,customKeyFilter:a}),{toggleSort:v}=jDe({sortBy:d,multiSort:s,mustSort:n,page:u}),{sortByWithGroups:_,opened:O,extractRows:C,isGroupOpen:x,toggleGroup:R}=MDe({groupBy:E,sortBy:d,disableSort:i}),{sortedItems:M}=QDe(t,p,_,{transform:q=>({...q.raw,...q.columns}),sortFunctions:y,sortRawFunctions:m}),{flatItems:T}=PDe(M,E,O),P=nr(()=>T.value.length),{startIndex:A,stopIndex:L,pageCount:D,setItemsPerPage:k}=DDe({page:u,itemsPerPage:b,itemsLength:P}),{paginatedItems:I}=zDe({items:T,startIndex:A,stopIndex:L,itemsPerPage:b}),z=nr(()=>C(I.value)),{isSelected:$,select:Q,selectAll:j,toggleSelect:U,someSelected:X,allSelected:te}=$De(t,{allItems:c,currentPage:z}),{isExpanded:Z,toggleExpand:K}=TDe(t);RDe({page:u,itemsPerPage:b,sortBy:d,groupBy:E,search:h}),ab({VDataTableRows:{hideNoData:ji(t,"hideNoData"),noDataText:ji(t,"noDataText"),loading:ji(t,"loading"),loadingText:ji(t,"loadingText")}});const re=nr(()=>({page:u.value,itemsPerPage:b.value,sortBy:d.value,pageCount:D.value,toggleSort:v,setItemsPerPage:k,someSelected:X.value,allSelected:te.value,isSelected:$,select:Q,selectAll:j,toggleSelect:U,isExpanded:Z,toggleExpand:K,isGroupOpen:x,toggleGroup:R,items:z.value.map(q=>q.raw),internalItems:z.value,groupedItems:I.value,columns:S.value,headers:w.value}));return Ga(()=>{const q=e0e.filterProps(t),Y=t0e.filterProps(t),ee=n0e.filterProps(t),me=r0e.filterProps(t);return $t(r0e,qi({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},me),{top:()=>{var pe;return(pe=f.top)==null?void 0:pe.call(f,re.value)},default:()=>{var pe,se,ae,ce,de,ye;return f.default?f.default(re.value):$t(Ea,null,[(pe=f.colgroup)==null?void 0:pe.call(f,re.value),!t.hideDefaultHeader&&$t("thead",{key:"thead"},[$t(t0e,Y,f)]),(se=f.thead)==null?void 0:se.call(f,re.value),!t.hideDefaultBody&&$t("tbody",null,[(ae=f["body.prepend"])==null?void 0:ae.call(f,re.value),f.body?f.body(re.value):$t(n0e,qi(o,ee,{items:I.value}),f),(ce=f["body.append"])==null?void 0:ce.call(f,re.value)]),(de=f.tbody)==null?void 0:de.call(f,re.value),(ye=f.tfoot)==null?void 0:ye.call(f,re.value)])},bottom:()=>f.bottom?f.bottom(re.value):!t.hideDefaultFooter&&$t(Ea,null,[$t(vM,null,null),$t(e0e,q,{prepend:f["footer.prepend"]})])})}),{}}});const fBe=gi({fluid:{type:Boolean,default:!1},...Js(),...tf()},"VContainer"),yM=Oa()({name:"VContainer",props:fBe(),setup(t,e){let{slots:o}=e;const{rtlClasses:f}=n0();return Ga(()=>$t(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},f.value,t.class],style:t.style},o)),{}}}),owe=(()=>Tq.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),iwe=(()=>Tq.reduce((t,e)=>{const o="offset"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),awe=(()=>Tq.reduce((t,e)=>{const o="order"+A_(e);return t[o]={type:[String,Number],default:null},t},{}))(),o0e={col:Object.keys(owe),offset:Object.keys(iwe),order:Object.keys(awe)};function dBe(t,e,o){let f=t;if(!(o==null||o===!1)){if(e){const E=e.replace(t,"");f+=`-${E}`}return t==="col"&&(f="v-"+f),t==="col"&&(o===""||o===!0)||(f+=`-${o}`),f.toLowerCase()}}const hBe=["auto","start","end","center","baseline","stretch"],pBe=gi({cols:{type:[Boolean,String,Number],default:!1},...owe,offset:{type:[String,Number],default:null},...iwe,order:{type:[String,Number],default:null},...awe,alignSelf:{type:String,default:null,validator:t=>hBe.includes(t)},...Js(),...tf()},"VCol"),HT=Oa()({name:"VCol",props:pBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in o0e)o0e[d].forEach(n=>{const u=t[n],b=dBe(d,n,u);b&&E.push(b)});const s=E.some(n=>n.startsWith("v-col-"));return E.push({"v-col":!s||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),E});return()=>{var E;return U1(t.tag,{class:[f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),$ue=["start","end","center"],swe=["space-between","space-around","space-evenly"];function Vue(t,e){return Tq.reduce((o,f)=>{const E=t+A_(f);return o[E]=e(),o},{})}const mBe=[...$ue,"baseline","stretch"],lwe=t=>mBe.includes(t),cwe=Vue("align",()=>({type:String,default:null,validator:lwe})),gBe=[...$ue,...swe],uwe=t=>gBe.includes(t),fwe=Vue("justify",()=>({type:String,default:null,validator:uwe})),vBe=[...$ue,...swe,"stretch"],dwe=t=>vBe.includes(t),hwe=Vue("alignContent",()=>({type:String,default:null,validator:dwe})),i0e={align:Object.keys(cwe),justify:Object.keys(fwe),alignContent:Object.keys(hwe)},yBe={align:"align",justify:"justify",alignContent:"align-content"};function bBe(t,e,o){let f=yBe[t];if(o!=null){if(e){const E=e.replace(t,"");f+=`-${E}`}return f+=`-${o}`,f.toLowerCase()}}const xBe=gi({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:lwe},...cwe,justify:{type:String,default:null,validator:uwe},...fwe,alignContent:{type:String,default:null,validator:dwe},...hwe,...Js(),...tf()},"VRow"),Dq=Oa()({name:"VRow",props:xBe(),setup(t,e){let{slots:o}=e;const f=nr(()=>{const E=[];let d;for(d in i0e)i0e[d].forEach(s=>{const n=t[s],u=bBe(d,s,n);u&&E.push(u)});return E.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),E});return()=>{var E;return U1(t.tag,{class:["v-row",f.value,t.class],style:t.style},(E=o.default)==null?void 0:E.call(o))}}}),BM=fq("v-spacer","div","VSpacer");const GI=Symbol.for("vuetify:v-expansion-panel"),pwe=gi({...Js(),...T_e()},"VExpansionPanelText"),yZ=Oa()({name:"VExpansionPanelText",props:pwe(),setup(t,e){let{slots:o}=e;const f=Kl(GI);if(!f)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:E,onAfterLeave:d}=C_e(t,f.isSelected);return Ga(()=>$t(bue,{onAfterLeave:d},{default:()=>{var s;return[Kp($t("div",{class:["v-expansion-panel-text",t.class],style:t.style},[o.default&&E.value&&$t("div",{class:"v-expansion-panel-text__wrapper"},[(s=o.default)==null?void 0:s.call(o)])]),[[A4,f.isSelected.value]])]}})),{}}}),mwe=gi({color:String,expandIcon:{type:Hl,default:"$expand"},collapseIcon:{type:Hl,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Js()},"VExpansionPanelTitle"),bZ=Oa()({name:"VExpansionPanelTitle",directives:{Ripple:cC},props:mwe(),setup(t,e){let{slots:o}=e;const f=Kl(GI);if(!f)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"color"),s=nr(()=>({collapseIcon:t.collapseIcon,disabled:f.disabled.value,expanded:f.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly})),n=nr(()=>f.isSelected.value?t.collapseIcon:t.expandIcon);return Ga(()=>{var u;return Kp($t("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":f.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},E.value,t.class],style:[d.value,t.style],type:"button",tabindex:f.disabled.value?-1:void 0,disabled:f.disabled.value,"aria-expanded":f.isSelected.value,onClick:t.readonly?void 0:f.toggle},[$t("span",{class:"v-expansion-panel-title__overlay"},null),(u=o.default)==null?void 0:u.call(o,s.value),!t.hideActions&&$t(ef,{defaults:{VIcon:{icon:n.value}}},{default:()=>{var b;return[$t("span",{class:"v-expansion-panel-title__icon"},[((b=o.actions)==null?void 0:b.call(o,s.value))??$t(jl,null,null)])]}})]),[[M_("ripple"),t.ripple]])}),{}}}),gwe=gi({title:String,text:String,bgColor:String,...ay(),...wue(),...Pm(),...tf(),...mwe(),...pwe()},"VExpansionPanel"),vwe=Oa()({name:"VExpansionPanel",props:gwe(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:o}=e;const f=Oue(t,GI),{backgroundColorClasses:E,backgroundColorStyles:d}=dg(t,"bgColor"),{elevationClasses:s}=cb(t),{roundedClasses:n}=mg(t),u=nr(()=>(f==null?void 0:f.disabled.value)||t.disabled),b=nr(()=>f.group.items.value.reduce((w,y,m)=>(f.group.selected.value.includes(y.id)&&w.push(m),w),[])),i=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===1)}),S=nr(()=>{const w=f.group.items.value.findIndex(y=>y.id===f.id);return!f.isSelected.value&&b.value.some(y=>y-w===-1)});return md(GI,f),Ga(()=>{const w=!!(o.text||t.text),y=!!(o.title||t.title),m=bZ.filterProps(t),a=yZ.filterProps(t);return $t(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":f.isSelected.value,"v-expansion-panel--before-active":i.value,"v-expansion-panel--after-active":S.value,"v-expansion-panel--disabled":u.value},n.value,E.value,t.class],style:[d.value,t.style]},{default:()=>[$t("div",{class:["v-expansion-panel__shadow",...s.value]},null),$t(ef,{defaults:{VExpansionPanelTitle:{...m},VExpansionPanelText:{...a}}},{default:()=>{var c;return[y&&$t(bZ,{key:"title"},{default:()=>[o.title?o.title():t.title]}),w&&$t(yZ,{key:"text"},{default:()=>[o.text?o.text():t.text]}),(c=o.default)==null?void 0:c.call(o)]}})]})}),{groupItem:f}}}),_Be=["default","accordion","inset","popout"],wBe=gi({flat:Boolean,...hq(),...cue(gwe(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gd(),...Js(),...tf(),variant:{type:String,default:"default",validator:t=>_Be.includes(t)}},"VExpansionPanels"),ywe=Oa()({name:"VExpansionPanels",props:wBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{next:f,prev:E}=pq(t,GI),{themeClasses:d}=th(t),s=nr(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ab({VExpansionPanel:{bgColor:ji(t,"bgColor"),collapseIcon:ji(t,"collapseIcon"),color:ji(t,"color"),eager:ji(t,"eager"),elevation:ji(t,"elevation"),expandIcon:ji(t,"expandIcon"),focusable:ji(t,"focusable"),hideActions:ji(t,"hideActions"),readonly:ji(t,"readonly"),ripple:ji(t,"ripple"),rounded:ji(t,"rounded"),static:ji(t,"static")}}),Ga(()=>$t(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},d.value,s.value,t.class],style:t.style},{default:()=>{var n;return[(n=o.default)==null?void 0:n.call(o,{prev:E,next:f})]}})),{next:f,prev:E}}});const OBe=gi({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},...fC({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>Pp(t).every(e=>e!=null&&typeof e=="object")},...Cq({clearable:!0})},"VFileInput"),Uue=Oa()({name:"VFileInput",inheritAttrs:!1,props:OBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{t:d}=oy(),s=ql(t,"modelValue",t.modelValue,M=>Pp(M),M=>t.multiple||Array.isArray(t.modelValue)?M:M[0]??null),{isFocused:n,focus:u,blur:b}=uC(t),i=nr(()=>typeof t.showSize!="boolean"?t.showSize:void 0),S=nr(()=>(s.value??[]).reduce((M,T)=>{let{size:P=0}=T;return M+P},0)),w=nr(()=>ige(S.value,i.value)),y=nr(()=>(s.value??[]).map(M=>{const{name:T="",size:P=0}=M;return t.showSize?`${T} (${ige(P,i.value)})`:T})),m=nr(()=>{var T;const M=((T=s.value)==null?void 0:T.length)??0;return t.showSize?d(t.counterSizeString,M,w.value):d(t.counterString,M)}),a=qo(),c=qo(),h=qo(),p=nr(()=>n.value||t.active),v=nr(()=>["plain","underlined"].includes(t.variant));function _(){var M;h.value!==document.activeElement&&((M=h.value)==null||M.focus()),n.value||u()}function O(M){var T;(T=h.value)==null||T.click()}function C(M){f("mousedown:control",M)}function x(M){var T;(T=h.value)==null||T.click(),f("click:control",M)}function R(M){M.stopPropagation(),_(),Vc(()=>{s.value=[],fue(t["onClick:clear"],M)})}return ia(s,M=>{(!Array.isArray(M)||!M.length)&&h.value&&(h.value.value="")}),Ga(()=>{const M=!!(E.counter||t.counter),T=!!(M||E.details),[P,A]=bD(o),{modelValue:L,...D}=sb.filterProps(t),k=Eue(t);return $t(sb,qi({ref:a,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":v.value},t.class],style:t.style,"onClick:prepend":O},P,D,{centerAffix:!v.value,focused:n.value}),{...E,default:I=>{let{id:z,isDisabled:$,isDirty:Q,isReadonly:j,isValid:U}=I;return $t(Aq,qi({ref:c,"prepend-icon":t.prependIcon,onMousedown:C,onClick:x,"onClick:clear":R,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},k,{id:z.value,active:p.value||Q.value,dirty:Q.value||t.dirty,disabled:$.value,focused:n.value,error:U.value===!1}),{...E,default:X=>{var K;let{props:{class:te,...Z}}=X;return $t(Ea,null,[$t("input",qi({ref:h,type:"file",readonly:j.value,disabled:$.value,multiple:t.multiple,name:t.name,onClick:re=>{re.stopPropagation(),j.value&&re.preventDefault(),_()},onChange:re=>{if(!re.target)return;const q=re.target;s.value=[...q.files??[]]},onFocus:_,onBlur:b},Z,A),null),$t("div",{class:te},[!!((K=s.value)!=null&&K.length)&&!t.hideInput&&(E.selection?E.selection({fileNames:y.value,totalBytes:S.value,totalBytesReadable:w.value}):t.chips?y.value.map(re=>$t(LM,{key:re,size:"small",text:re},null)):y.value.join(", "))])])}})},details:T?I=>{var z,$;return $t(Ea,null,[(z=E.details)==null?void 0:z.call(E,I),M&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:!!(($=s.value)!=null&&$.length),value:m.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},a,c,h)}});const SBe=gi({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...B_(),...Js(),...ay(),...gue(),...Pm(),...tf({tag:"footer"}),...gd()},"VFooter"),kBe=Oa()({name:"VFooter",props:SBe(),setup(t,e){let{slots:o}=e;const f=qo(),E=Gi(),{themeClasses:d}=th(t),{backgroundColorClasses:s,backgroundColorStyles:n}=dg(ji(t,"color")),{borderClasses:u}=$O(t),{elevationClasses:b}=cb(t),{roundedClasses:i}=mg(t),S=Gi(32),{resizeRef:w}=T4(m=>{m.length&&(S.value=m[0].target.clientHeight)}),y=nr(()=>t.height==="auto"?S.value:parseInt(t.height,10));return $1(()=>t.app,()=>{const m=vue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:nr(()=>"bottom"),layoutSize:y,elementSize:nr(()=>t.height==="auto"?void 0:y.value),active:nr(()=>t.app),absolute:ji(t,"absolute")});Gp(()=>{f.value=m.layoutItemStyles.value,E.value=m.layoutIsReady})}),Ga(()=>$t(t.tag,{ref:w,class:["v-footer",d.value,s.value,u.value,b.value,i.value,t.class],style:[n.value,t.app?f.value:{height:is(t.height)},t.style]},o)),t.app?E.value:{}}}),TBe=gi({...Js(),...tLe()},"VForm"),CBe=Oa()({name:"VForm",props:TBe(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=nLe(t),d=qo();function s(u){u.preventDefault(),E.reset()}function n(u){const b=u,i=E.validate();b.then=i.then.bind(i),b.catch=i.catch.bind(i),b.finally=i.finally.bind(i),f("submit",b),b.defaultPrevented||i.then(S=>{var y;let{valid:w}=S;w&&((y=d.value)==null||y.submit())}),b.preventDefault()}return Ga(()=>{var u;return $t("form",{ref:d,class:["v-form",t.class],style:t.style,novalidate:!0,onReset:s,onSubmit:n},[(u=o.default)==null?void 0:u.call(o,E)])}),Ix(E,d)}});const ABe=gi({scrollable:Boolean,...Js(),...I_(),...tf({tag:"main"})},"VMain"),MBe=Oa()({name:"VMain",props:ABe(),setup(t,e){let{slots:o}=e;const{dimensionStyles:f}=D_(t),{mainStyles:E,layoutIsReady:d}=O2e(),{ssrBootStyles:s}=dq();return Ga(()=>$t(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[E.value,s.value,f.value,t.style]},{default:()=>{var n,u;return[t.scrollable?$t("div",{class:"v-main__scroller"},[(n=o.default)==null?void 0:n.call(o)]):(u=o.default)==null?void 0:u.call(o)]}})),d}});function EBe(t){let{rootEl:e,isSticky:o,layoutItemStyles:f}=t;const E=Gi(!1),d=Gi(0),s=nr(()=>{const b=typeof E.value=="boolean"?"top":E.value;return[o.value?{top:"auto",bottom:"auto",height:void 0}:void 0,E.value?{[b]:is(d.value)}:{top:f.value.top}]});pg(()=>{ia(o,b=>{b?window.addEventListener("scroll",u,{passive:!0}):window.removeEventListener("scroll",u)},{immediate:!0})}),Em(()=>{window.removeEventListener("scroll",u)});let n=0;function u(){const b=n>window.scrollY?"up":"down",i=e.value.getBoundingClientRect(),S=parseFloat(f.value.top??0),w=window.scrollY-Math.max(0,d.value-S),y=i.height+Math.max(d.value,S)-window.scrollY-window.innerHeight,m=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;i.height0;o--){if(t[o].t===t[o-1].t)continue;const f=a0e(e),E=(t[o].d-t[o-1].d)/(t[o].t-t[o-1].t);e+=(E-f)*Math.abs(E),o===t.length-1&&(e*=.5)}return a0e(e)*1e3}function LBe(){const t={};function e(E){Array.from(E.changedTouches).forEach(d=>{(t[d.identifier]??(t[d.identifier]=new h9e(RBe))).push([E.timeStamp,d])})}function o(E){Array.from(E.changedTouches).forEach(d=>{delete t[d.identifier]})}function f(E){var b;const d=(b=t[E])==null?void 0:b.values().reverse();if(!d)throw new Error(`No samples for touch id ${E}`);const s=d[0],n=[],u=[];for(const i of d){if(s[0]-i[0]>PBe)break;n.push({t:i[0],d:i[1].clientX}),u.push({t:i[0],d:i[1].clientY})}return{x:s0e(n),y:s0e(u),get direction(){const{x:i,y:S}=this,[w,y]=[Math.abs(i),Math.abs(S)];return w>y&&i>=0?"right":w>y&&i<=0?"left":y>w&&S>=0?"down":y>w&&S<=0?"up":IBe()}}}return{addMovement:e,endTouch:o,getVelocity:f}}function IBe(){throw new Error}function DBe(t){let{el:e,isActive:o,isTemporary:f,width:E,touchless:d,position:s}=t;pg(()=>{window.addEventListener("touchstart",p,{passive:!0}),window.addEventListener("touchmove",v,{passive:!1}),window.addEventListener("touchend",_,{passive:!0})}),Em(()=>{window.removeEventListener("touchstart",p),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",_)});const n=nr(()=>["left","right"].includes(s.value)),{addMovement:u,endTouch:b,getVelocity:i}=LBe();let S=!1;const w=Gi(!1),y=Gi(0),m=Gi(0);let a;function c(C,x){return(s.value==="left"?C:s.value==="right"?document.documentElement.clientWidth-C:s.value==="top"?C:s.value==="bottom"?document.documentElement.clientHeight-C:P8())-(x?E.value:0)}function h(C){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const R=s.value==="left"?(C-m.value)/E.value:s.value==="right"?(document.documentElement.clientWidth-C-m.value)/E.value:s.value==="top"?(C-m.value)/E.value:s.value==="bottom"?(document.documentElement.clientHeight-C-m.value)/E.value:P8();return x?Math.max(0,Math.min(1,R)):R}function p(C){if(d.value)return;const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY,M=25,T=s.value==="left"?xdocument.documentElement.clientWidth-M:s.value==="top"?Rdocument.documentElement.clientHeight-M:P8(),P=o.value&&(s.value==="left"?xdocument.documentElement.clientWidth-E.value:s.value==="top"?Rdocument.documentElement.clientHeight-E.value:P8());(T||P||o.value&&f.value)&&(a=[x,R],m.value=c(n.value?x:R,o.value),y.value=h(n.value?x:R),S=m.value>-20&&m.value<80,b(C),u(C))}function v(C){const x=C.changedTouches[0].clientX,R=C.changedTouches[0].clientY;if(S){if(!C.cancelable){S=!1;return}const T=Math.abs(x-a[0]),P=Math.abs(R-a[1]);(n.value?T>P&&T>3:P>T&&P>3)?(w.value=!0,S=!1):(n.value?P:T)>3&&(S=!1)}if(!w.value)return;C.preventDefault(),u(C);const M=h(n.value?x:R,!1);y.value=Math.max(0,Math.min(1,M)),M>1?m.value=c(n.value?x:R,!0):M<0&&(m.value=c(n.value?x:R,!1))}function _(C){if(S=!1,!w.value)return;u(C),w.value=!1;const x=i(C.changedTouches[0].identifier),R=Math.abs(x.x),M=Math.abs(x.y);(n.value?R>M&&R>400:M>R&&M>3)?o.value=x.direction===({left:"right",right:"left",top:"down",bottom:"up"}[s.value]||P8()):o.value=y.value>.5}const O=nr(()=>w.value?{transform:s.value==="left"?`translateX(calc(-100% + ${y.value*E.value}px))`:s.value==="right"?`translateX(calc(100% - ${y.value*E.value}px))`:s.value==="top"?`translateY(calc(-100% + ${y.value*E.value}px))`:s.value==="bottom"?`translateY(calc(100% - ${y.value*E.value}px))`:P8(),transition:"none"}:void 0);return $1(w,()=>{var R,M;const C=((R=e.value)==null?void 0:R.style.transform)??null,x=((M=e.value)==null?void 0:M.style.transition)??null;Gp(()=>{var T,P,A,L;(P=e.value)==null||P.style.setProperty("transform",((T=O.value)==null?void 0:T.transform)||"none"),(L=e.value)==null||L.style.setProperty("transition",((A=O.value)==null?void 0:A.transition)||null)}),hg(()=>{var T,P;(T=e.value)==null||T.style.setProperty("transform",C),(P=e.value)==null||P.style.setProperty("transition",x)})}),{isDragging:w,dragProgress:y,dragStyles:O}}function P8(){throw new Error}const BBe=["start","end","left","right","top","bottom"],zBe=gi({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>BBe.includes(t)},sticky:Boolean,...B_(),...Js(),...O_e(),...OD({mobile:null}),...ay(),...gue(),...Pm(),...tf({tag:"nav"}),...gd()},"VNavigationDrawer"),bwe=Oa()({name:"VNavigationDrawer",props:zBe(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const{isRtl:d}=n0(),{themeClasses:s}=th(t),{borderClasses:n}=$O(t),{backgroundColorClasses:u,backgroundColorStyles:b}=dg(ji(t,"color")),{elevationClasses:i}=cb(t),{displayClasses:S,mobile:w}=L4(t),{roundedClasses:y}=mg(t),m=H2e(),a=ql(t,"modelValue",null,X=>!!X),{ssrBootStyles:c}=dq(),{scopeId:h}=IM(),p=qo(),v=Gi(!1),{runOpenDelay:_,runCloseDelay:O}=S_e(t,X=>{v.value=X}),C=nr(()=>t.rail&&t.expandOnHover&&v.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),x=nr(()=>Jse(t.location,d.value)),R=nr(()=>t.persistent),M=nr(()=>!t.permanent&&(w.value||t.temporary)),T=nr(()=>t.sticky&&!M.value&&x.value!=="bottom");$1(()=>t.expandOnHover&&t.rail!=null,()=>{ia(v,X=>f("update:rail",!X))}),$1(()=>!t.disableResizeWatcher,()=>{ia(M,X=>!t.permanent&&Vc(()=>a.value=!X))}),$1(()=>!t.disableRouteWatcher&&!!m,()=>{ia(m.currentRoute,()=>M.value&&(a.value=!1))}),ia(()=>t.permanent,X=>{X&&(a.value=!0)}),t.modelValue==null&&!M.value&&(a.value=t.permanent||!w.value);const{isDragging:P,dragProgress:A}=DBe({el:p,isActive:a,isTemporary:M,width:C,touchless:ji(t,"touchless"),position:x}),L=nr(()=>{const X=M.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):C.value;return P.value?X*A.value:X}),D=nr(()=>["top","bottom"].includes(t.location)?0:C.value),{layoutItemStyles:k,layoutItemScrimStyles:I,layoutIsReady:z}=vue({id:t.name,order:nr(()=>parseInt(t.order,10)),position:x,layoutSize:L,elementSize:D,active:nr(()=>a.value||P.value),disableTransitions:nr(()=>P.value),absolute:nr(()=>t.absolute||T.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:Q}=EBe({rootEl:p,isSticky:T,layoutItemStyles:k}),j=dg(nr(()=>typeof t.scrim=="string"?t.scrim:null)),U=nr(()=>({...P.value?{opacity:A.value*.2,transition:"none"}:void 0,...I.value}));return ab({VList:{bgColor:"transparent"}}),Ga(()=>{const X=E.image||t.image;return $t(Ea,null,[$t(t.tag,qi({ref:p,onMouseenter:_,onMouseleave:O,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":v.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":M.value,"v-navigation-drawer--persistent":R.value,"v-navigation-drawer--active":a.value,"v-navigation-drawer--sticky":T.value},s.value,u.value,n.value,S.value,i.value,y.value,t.class],style:[b.value,k.value,c.value,Q.value,t.style,["top","bottom"].includes(x.value)?{height:"auto"}:{}]},h,o),{default:()=>{var te,Z,K;return[X&&$t("div",{key:"image",class:"v-navigation-drawer__img"},[E.image?$t(ef,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},E.image):$t(oC,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),E.prepend&&$t("div",{class:"v-navigation-drawer__prepend"},[(te=E.prepend)==null?void 0:te.call(E)]),$t("div",{class:"v-navigation-drawer__content"},[(Z=E.default)==null?void 0:Z.call(E)]),E.append&&$t("div",{class:"v-navigation-drawer__append"},[(K=E.append)==null?void 0:K.call(E)])]}}),$t(C_,{name:"fade-transition"},{default:()=>[M.value&&(P.value||a.value)&&!!t.scrim&&$t("div",qi({class:["v-navigation-drawer__scrim",j.backgroundColorClasses.value],style:[U.value,j.backgroundColorStyles.value],onClick:()=>{R.value||(a.value=!1)}},h),null)]})])}),z.then(()=>({isStuck:$}))}}),NBe=gi({...Sq(),...fC(),...P_e(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),jue=Oa()({name:"VRangeSlider",props:NBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:o,emit:f}=e;const E=qo(),d=qo(),s=qo(),{rtlClasses:n}=n0();function u(T){if(!E.value||!d.value)return;const P=cle(T,E.value.$el,t.direction),A=cle(T,d.value.$el,t.direction),L=Math.abs(P),D=Math.abs(A);return LT!=null&&T.length?T.map(P=>b.roundValue(P)):[0,0]),{activeThumbRef:S,hasLabels:w,max:y,min:m,mousePressed:a,onSliderMousedown:c,onSliderTouchstart:h,position:p,trackContainerRef:v,readonly:_}=L_e({props:t,steps:b,onSliderStart:()=>{f("start",i.value)},onSliderEnd:T=>{var L;let{value:P}=T;const A=S.value===((L=E.value)==null?void 0:L.$el)?[P,i.value[1]]:[i.value[0],P];!t.strict&&A[0]{var D,k,I,z;let{value:P}=T;const[A,L]=i.value;!t.strict&&A===L&&A!==m.value&&(S.value=P>A?(D=d.value)==null?void 0:D.$el:(k=E.value)==null?void 0:k.$el,(I=S.value)==null||I.focus()),S.value===((z=E.value)==null?void 0:z.$el)?i.value=[Math.min(P,L),L]:i.value=[A,Math.max(A,P)]},getActiveThumb:u}),{isFocused:O,focus:C,blur:x}=uC(t),R=nr(()=>p(i.value[0])),M=nr(()=>p(i.value[1]));return Ga(()=>{const T=sb.filterProps(t),P=!!(t.label||o.label||o.prepend);return $t(sb,qi({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!o["tick-label"]||w.value,"v-slider--focused":O.value,"v-slider--pressed":a.value,"v-slider--disabled":t.disabled},n.value,t.class],style:t.style,ref:s},T,{focused:O.value}),{...o,prepend:P?A=>{var L,D;return $t(Ea,null,[((L=o.label)==null?void 0:L.call(o,A))??(t.label?$t(Oq,{class:"v-slider__label",text:t.label},null):void 0),(D=o.prepend)==null?void 0:D.call(o,A)])}:void 0,default:A=>{var k,I;let{id:L,messagesId:D}=A;return $t("div",{class:"v-slider__container",onMousedown:_.value?void 0:c,onTouchstartPassive:_.value?void 0:h},[$t("input",{id:`${L.value}_start`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[0]},null),$t("input",{id:`${L.value}_stop`,name:t.name||L.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:i.value[1]},null),$t(I_e,{ref:v,start:R.value,stop:M.value},{"tick-label":o["tick-label"]}),$t(ule,{ref:E,"aria-describedby":D.value,focused:O&&S.value===((k=E.value)==null?void 0:k.$el),modelValue:i.value[0],"onUpdate:modelValue":z=>i.value=[z,i.value[1]],onFocus:z=>{var $,Q,j,U;C(),S.value=($=E.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[1]===m.value&&z.relatedTarget!==((Q=d.value)==null?void 0:Q.$el)&&((j=E.value)==null||j.$el.blur(),(U=d.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:m.value,max:i.value[1],position:R.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]}),$t(ule,{ref:d,"aria-describedby":D.value,focused:O&&S.value===((I=d.value)==null?void 0:I.$el),modelValue:i.value[1],"onUpdate:modelValue":z=>i.value=[i.value[0],z],onFocus:z=>{var $,Q,j,U;C(),S.value=($=d.value)==null?void 0:$.$el,i.value[0]===i.value[1]&&i.value[0]===y.value&&z.relatedTarget!==((Q=E.value)==null?void 0:Q.$el)&&((j=d.value)==null||j.$el.blur(),(U=E.value)==null||U.$el.focus())},onBlur:()=>{x(),S.value=void 0},min:i.value[0],max:y.value,position:M.value,ripple:t.ripple},{"thumb-label":o["thumb-label"]})])}})}),{}}});const FBe=gi({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Hl,default:"$ratingEmpty"},fullIcon:{type:Hl,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},ripple:Boolean,...Js(),...Q1(),...sC(),...tf(),...gd()},"VRating"),Que=Oa()({name:"VRating",props:FBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const{t:f}=oy(),{themeClasses:E}=th(t),d=ql(t,"modelValue"),s=nr(()=>ug(parseFloat(d.value),0,+t.length)),n=nr(()=>u4(Number(t.length),1)),u=nr(()=>n.value.flatMap(a=>t.halfIncrements?[a-.5,a]:[a])),b=Gi(-1),i=nr(()=>u.value.map(a=>{const c=t.hover&&b.value>-1,h=s.value>=a,p=b.value>=a,_=(c?p:h)?t.fullIcon:t.emptyIcon,O=t.activeColor??t.color,C=h||p?O:t.color;return{isFilled:h,isHovered:p,icon:_,color:C}})),S=nr(()=>[0,...u.value].map(a=>{function c(){b.value=a}function h(){b.value=-1}function p(){t.disabled||t.readonly||(d.value=s.value===a&&t.clearable?0:a)}return{onMouseenter:t.hover?c:void 0,onMouseleave:t.hover?h:void 0,onClick:p}})),w=nr(()=>t.name??`v-rating-${j1()}`);function y(a){var R,M;let{value:c,index:h,showStar:p=!0}=a;const{onMouseenter:v,onMouseleave:_,onClick:O}=S.value[h+1],C=`${w.value}-${String(c).replace(".","-")}`,x={color:(R=i.value[h])==null?void 0:R.color,density:t.density,disabled:t.disabled,icon:(M=i.value[h])==null?void 0:M.icon,ripple:t.ripple,size:t.size,variant:"plain"};return $t(Ea,null,[$t("label",{for:C,class:{"v-rating__item--half":t.halfIncrements&&c%1>0,"v-rating__item--full":t.halfIncrements&&c%1===0},onMouseenter:v,onMouseleave:_,onClick:O},[$t("span",{class:"v-rating__hidden"},[f(t.itemAriaLabel,c,t.length)]),p?o.item?o.item({...i.value[h],props:x,value:c,index:h,rating:s.value}):$t(Ja,qi({"aria-label":f(t.itemAriaLabel,c,t.length)},x),null):void 0]),$t("input",{class:"v-rating__hidden",name:w.value,id:C,type:"radio",value:c,checked:s.value===c,tabindex:-1,readonly:t.readonly,disabled:t.disabled},null)])}function m(a){return o["item-label"]?o["item-label"](a):a.label?$t("span",null,[a.label]):$t("span",null,[Ua(" ")])}return Ga(()=>{var c;const a=!!((c=t.itemLabels)!=null&&c.length)||o["item-label"];return $t(t.tag,{class:["v-rating",{"v-rating--hover":t.hover,"v-rating--readonly":t.readonly},E.value,t.class],style:t.style},{default:()=>[$t(y,{value:0,index:-1,showStar:!1},null),n.value.map((h,p)=>{var v,_;return $t("div",{class:"v-rating__wrapper"},[a&&t.itemLabelPosition==="top"?m({value:h,index:p,label:(v=t.itemLabels)==null?void 0:v[p]}):void 0,$t("div",{class:"v-rating__item"},[t.halfIncrements?$t(Ea,null,[$t(y,{value:h-.5,index:p*2},null),$t(y,{value:h,index:p*2+1},null)]):$t(y,{value:h,index:p},null)]),a&&t.itemLabelPosition==="bottom"?m({value:h,index:p,label:(_=t.itemLabels)==null?void 0:_[p]}):void 0])})]})}),{}}});function $Be(t){const e=Gi(t());let o=-1;function f(){clearInterval(o)}function E(){f(),Vc(()=>e.value=t())}function d(s){const n=s?getComputedStyle(s):{transitionDuration:.2},u=parseFloat(n.transitionDuration)*1e3||200;if(f(),e.value<=0)return;const b=performance.now();o=window.setInterval(()=>{const i=performance.now()-b+u;e.value=Math.max(t()-i,0),e.value<=0&&f()},u)}return hg(f),{clear:f,time:e,start:d,reset:E}}const VBe=gi({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,..._D({location:"bottom"}),...bq(),...Pm(),...Lx(),...gd(),...R_(SD({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Bq=Oa()({name:"VSnackbar",props:VBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{positionClasses:E}=xq(t),{scopeId:d}=IM(),{themeClasses:s}=th(t),{colorClasses:n,colorStyles:u,variantClasses:b}=aC(t),{roundedClasses:i}=mg(t),S=$Be(()=>Number(t.timeout)),w=qo(),y=qo(),m=Gi(!1),a=Gi(0),c=qo(),h=Kl(ZI,void 0);$1(()=>!!h,()=>{const T=O2e();Gp(()=>{c.value=T.mainStyles.value})}),ia(f,v),ia(()=>t.timeout,v),pg(()=>{f.value&&v()});let p=-1;function v(){S.reset(),window.clearTimeout(p);const T=Number(t.timeout);if(!f.value||T===-1)return;const P=lue(y.value);S.start(P),p=window.setTimeout(()=>{f.value=!1},T)}function _(){S.reset(),window.clearTimeout(p)}function O(){m.value=!0,_()}function C(){m.value=!1,v()}function x(T){a.value=T.touches[0].clientY}function R(T){Math.abs(a.value-T.changedTouches[0].clientY)>50&&(f.value=!1)}const M=nr(()=>t.location.split(" ").reduce((T,P)=>(T[`v-snackbar--${P}`]=!0,T),{}));return Ga(()=>{const T=C4.filterProps(t),P=!!(o.default||o.text||t.text);return $t(C4,qi({ref:w,class:["v-snackbar",{"v-snackbar--active":f.value,"v-snackbar--multi-line":t.multiLine&&!t.vertical,"v-snackbar--timer":!!t.timer,"v-snackbar--vertical":t.vertical},M.value,E.value,t.class],style:[c.value,t.style]},T,{modelValue:f.value,"onUpdate:modelValue":A=>f.value=A,contentProps:qi({class:["v-snackbar__wrapper",s.value,n.value,i.value,b.value],style:[u.value],onPointerenter:O,onPointerleave:C},T.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:R},d),{default:()=>{var A,L;return[iC(!1,"v-snackbar"),t.timer&&!m.value&&$t("div",{key:"timer",class:"v-snackbar__timer"},[$t(Q2e,{ref:y,color:typeof t.timer=="string"?t.timer:"info",max:t.timeout,"model-value":S.time.value},null)]),P&&$t("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((A=o.text)==null?void 0:A.call(o))??t.text,(L=o.default)==null?void 0:L.call(o)]),o.actions&&$t(ef,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[$t("div",{class:"v-snackbar__actions"},[o.actions({isActive:f})])]})]},activator:o.activator})}),Ix({},w)}});const UBe=gi({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...fC(),...Sue()},"VSwitch"),F8=Oa()({name:"VSwitch",inheritAttrs:!1,props:UBe(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:o,slots:f}=e;const E=ql(t,"indeterminate"),d=ql(t,"modelValue"),{loaderClasses:s}=wD(t),{isFocused:n,focus:u,blur:b}=uC(t),i=qo(),S=Hu&&window.matchMedia("(forced-colors: active)").matches,w=nr(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),y=j1(),m=nr(()=>t.id||`switch-${y}`);function a(){E.value&&(E.value=!1)}function c(h){var p,v;h.stopPropagation(),h.preventDefault(),(v=(p=i.value)==null?void 0:p.input)==null||v.click()}return Ga(()=>{const[h,p]=bD(o),v=sb.filterProps(t),_=pZ.filterProps(t);return $t(sb,qi({class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":E.value},s.value,t.class]},h,v,{modelValue:d.value,"onUpdate:modelValue":O=>d.value=O,id:m.value,focused:n.value,style:t.style}),{...f,default:O=>{let{id:C,messagesId:x,isDisabled:R,isReadonly:M,isValid:T}=O;const P={model:d,isValid:T};return $t(pZ,qi({ref:i},_,{modelValue:d.value,"onUpdate:modelValue":[A=>d.value=A,a],id:C.value,"aria-describedby":x.value,type:"checkbox","aria-checked":E.value?"mixed":void 0,disabled:R.value,readonly:M.value,onFocus:u,onBlur:b},p),{...f,default:A=>{let{backgroundColorClasses:L,backgroundColorStyles:D}=A;return $t("div",{class:["v-switch__track",S?void 0:L.value],style:D.value,onClick:c},[f["track-true"]&&$t("div",{key:"prepend",class:"v-switch__track-true"},[f["track-true"](P)]),f["track-false"]&&$t("div",{key:"append",class:"v-switch__track-false"},[f["track-false"](P)])])},input:A=>{let{inputNode:L,icon:D,backgroundColorClasses:k,backgroundColorStyles:I}=A;return $t(Ea,null,[L,$t("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":D||t.loading},t.inset||S?void 0:k.value],style:t.inset?void 0:I.value},[f.thumb?$t(ef,{defaults:{VIcon:{icon:D,size:"x-small"}}},{default:()=>[f.thumb({...P,icon:D})]}):$t(M2e,null,{default:()=>[t.loading?$t(yq,{name:"v-switch",active:!0,color:T.value===!1?void 0:w.value},{default:z=>f.loader?f.loader(z):$t(lC,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):D&&$t(jl,{key:String(D),icon:D,size:"x-small"},null)]})])])}})}})}),{}}});const jBe=gi({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...fC(),...Cq()},"VTextarea"),TD=Oa()({name:"VTextarea",directives:{Intersect:_ue},inheritAttrs:!1,props:jBe(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:o,emit:f,slots:E}=e;const d=ql(t,"modelValue"),{isFocused:s,focus:n,blur:u}=uC(t),b=nr(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),i=nr(()=>{if(o.maxlength)return o.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function S(P,A){var L,D;!t.autofocus||!P||(D=(L=A[0].target)==null?void 0:L.focus)==null||D.call(L)}const w=qo(),y=qo(),m=Gi(""),a=qo(),c=nr(()=>t.persistentPlaceholder||s.value||t.active);function h(){var P;a.value!==document.activeElement&&((P=a.value)==null||P.focus()),s.value||n()}function p(P){h(),f("click:control",P)}function v(P){f("mousedown:control",P)}function _(P){P.stopPropagation(),h(),Vc(()=>{d.value="",fue(t["onClick:clear"],P)})}function O(P){var L;const A=P.target;if(d.value=A.value,(L=t.modelModifiers)!=null&&L.trim){const D=[A.selectionStart,A.selectionEnd];Vc(()=>{A.selectionStart=D[0],A.selectionEnd=D[1]})}}const C=qo(),x=qo(+t.rows),R=nr(()=>["plain","underlined"].includes(t.variant));Gp(()=>{t.autoGrow||(x.value=+t.rows)});function M(){t.autoGrow&&Vc(()=>{if(!C.value||!y.value)return;const P=getComputedStyle(C.value),A=getComputedStyle(y.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),D=C.value.scrollHeight,k=parseFloat(P.lineHeight),I=Math.max(parseFloat(t.rows)*k+L,parseFloat(A.getPropertyValue("--v-input-control-height"))),z=parseFloat(t.maxRows)*k+L||1/0,$=ug(D??0,I,z);x.value=Math.floor(($-L)/k),m.value=is($)})}pg(M),ia(d,M),ia(()=>t.rows,M),ia(()=>t.maxRows,M),ia(()=>t.density,M);let T;return ia(C,P=>{P?(T=new ResizeObserver(M),T.observe(C.value)):T==null||T.disconnect()}),Em(()=>{T==null||T.disconnect()}),Ga(()=>{const P=!!(E.counter||t.counter||t.counterValue),A=!!(P||E.details),[L,D]=bD(o),{modelValue:k,...I}=sb.filterProps(t),z=Eue(t);return $t(sb,qi({ref:w,modelValue:d.value,"onUpdate:modelValue":$=>d.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":R.value},t.class],style:t.style},L,I,{centerAffix:x.value===1&&!R.value,focused:s.value}),{...E,default:$=>{let{id:Q,isDisabled:j,isDirty:U,isReadonly:X,isValid:te}=$;return $t(Aq,qi({ref:y,style:{"--v-textarea-control-height":m.value},onClick:p,onMousedown:v,"onClick:clear":_,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},z,{id:Q.value,active:c.value||U.value,centerAffix:x.value===1&&!R.value,dirty:U.value||t.dirty,disabled:j.value,focused:s.value,error:te.value===!1}),{...E,default:Z=>{let{props:{class:K,...re}}=Z;return $t(Ea,null,[t.prefix&&$t("span",{class:"v-text-field__prefix"},[t.prefix]),Kp($t("textarea",qi({ref:a,class:K,value:d.value,onInput:O,autofocus:t.autofocus,readonly:X.value,disabled:j.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:h,onBlur:u},re,D),null),[[M_("intersect"),{handler:S},null,{once:!0}]]),t.autoGrow&&Kp($t("textarea",{class:[K,"v-textarea__sizer"],id:`${re.id}-sizer`,"onUpdate:modelValue":q=>d.value=q,ref:C,readonly:!0,"aria-hidden":"true"},null),[[x5e,d.value]]),t.suffix&&$t("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:A?$=>{var Q;return $t(Ea,null,[(Q=E.details)==null?void 0:Q.call(E,$),P&&$t(Ea,null,[$t("span",null,null),$t(Mue,{active:t.persistentCounter||s.value,value:b.value,max:i.value,disabled:t.disabled},E.counter)])])}:void 0})}),Ix({},w,y,a)}});const QBe=gi({id:String,text:String,...R_(SD({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),xwe=Oa()({name:"VTooltip",props:QBe(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:o}=e;const f=ql(t,"modelValue"),{scopeId:E}=IM(),d=j1(),s=nr(()=>t.id||`v-tooltip-${d}`),n=qo(),u=nr(()=>t.location.split(" ").length>1?t.location:t.location+" center"),b=nr(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),i=nr(()=>t.transition?t.transition:f.value?"scale-transition":"fade-transition"),S=nr(()=>qi({"aria-describedby":s.value},t.activatorProps));return Ga(()=>{const w=C4.filterProps(t);return $t(C4,qi({ref:n,class:["v-tooltip",t.class],style:t.style,id:s.value},w,{modelValue:f.value,"onUpdate:modelValue":y=>f.value=y,transition:i.value,absolute:!0,location:u.value,origin:b.value,persistent:!0,role:"tooltip",activatorProps:S.value,_disableGlobalStack:!0},E),{activator:o.activator,default:function(){var c;for(var y=arguments.length,m=new Array(y),a=0;a{const E=o.replace(/_/g,"-");return e[E]=f,e},{})},getEventBindings(t){return t.component==="v-card"?{}:{[t.triggerEvent]:()=>this.runCode(!0,t.id,t.value),keydown:e=>this.handleEnterPress(e,t.id,t.component,t.value)}},handleEnterPress(t,e,o,f){t.key==="Enter"&&!t.shiftKey&&(o==="v-text-field"||o==="v-textarea"||o==="v-number-input")&&this.runCode(!0,e,f)},getChildren(t){return t.map(e=>this.allComponents[e])},runCode(t,e,o){this.allComponents[e].component==="v-btn"&&(o=!0,this.allComponents[e].value=!0),this.$emit("runCode",t,e,o)},setError(t,e){this.errors[t]={hasError:!0,message:e}},clearError(t){this.errors[t]&&(this.errors[t]={hasError:!1,message:""})},async fileToBase64(t){const e=new FileReader;return e.readAsDataURL(t),new Promise(o=>{e.onload=()=>{let f=e.result.split(",")[1];f=f.padEnd(f.length+(4-f.length%4)%4,"="),o(f)}})},async createFormData(t){const e={};for(const o of t)if(o){const f=await this.fileToBase64(o);e[o.name]=f}return e}}},WBe={key:0},YBe={key:1};function XBe(t,e,o,f,E,d){const s=Nd("plotly-plot"),n=Nd("component-wrapper",!0);return Uo(!0),Ya(Ea,null,ty(o.renderComponents,u=>(Uo(),Ya("div",{key:u.id},[$t(Dq,{class:"pa-5"},{default:ao(()=>{var b,i;return[u.component==="plotly-plot"?(Uo(),da(s,{key:0,id:u.id,figureJson:u.figure_json},null,8,["id","figureJson"])):u.component==="zt-html"?(Uo(),da(yM,{key:1,innerHTML:u.v_html},null,8,["innerHTML"])):u.component==="v-file-input"?(Uo(),da(rM(u.component),qi({key:2},d.componentBind(u),{error:((b=E.errors[u.id])==null?void 0:b.hasError)||!1,"error-messages":((i=E.errors[u.id])==null?void 0:i.message)||"","onUpdate:modelValue":async S=>{if(!S)return;const w=Array.isArray(S)?S:[S],y=w.reduce((a,c)=>a+c.size,0),m=50*1024*1024;if(y>m){d.setError(u.id,"Total file size must not exceed 50 MB");return}d.clearError(u.id),u.value=await d.createFormData(w),d.runCode(!0,u.id,u.value)}}),null,16,["error","error-messages","onUpdate:modelValue"])):(Uo(),da(rM(u.component),qi({key:3},d.componentBind(u),{modelValue:u.value,"onUpdate:modelValue":S=>u.value=S},hke(d.getEventBindings(u))),xve({_:2},[u.component!=="v-data-table"?{name:"default",fn:ao(()=>[u.childComponents?(Uo(),Ya("div",WBe,[$t(n,{renderComponents:d.getChildren(u.childComponents),allComponents:o.allComponents,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):u.component==="v-btn"?(Uo(),Ya("div",YBe,Dl(u.text),1)):za("",!0)]),key:"0"}:void 0]),1040,["modelValue","onUpdate:modelValue"]))]}),_:2},1024)]))),128)}const _we=mp(qBe,[["render",XBe]]),GBe={emits:["runCode"],components:{"v-slider":zue,"v-rating":Que,"v-text-field":Ep,"v-file-input":Uue,"v-textarea":TD,"v-range-slider":jue,"v-select":DM,"v-combobox":Nue,"v-btn":Ja,"v-img":oC,"v-data-table":Iq,"v-autocomplete":Eq,"v-card":ub,"v-text":Hue,"plotly-plot":bce,"component-wrapper":_we},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{runCode(t,e,o){this.$emit("runCode",t,e,o)},componentWidth(t){return t.width?t.width:!1}}},KBe={key:0},JBe={key:1},eze={key:1},tze={key:0},nze={key:1};function rze(t,e,o,f,E,d){const s=Nd("component-wrapper"),n=Nd("layout-component",!0);return Uo(),Ya(Ea,null,[o.rowData?(Uo(),da(Dq,{key:0},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(o.rowData.components,(u,b)=>(Uo(),da(HT,{key:b,cols:d.componentWidth(u)},{default:ao(()=>[typeof u=="string"?(Uo(),Ya("div",KBe,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",JBe,[$t(n,{"column-data":u,components:o.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):za("",!0),o.columnData?(Uo(),Ya("div",eze,[(Uo(!0),Ya(Ea,null,ty(o.columnData.components,(u,b)=>(Uo(),Ya("div",{key:b},[typeof u=="string"?(Uo(),Ya("div",tze,[$t(s,{renderComponents:[o.components[u]],allComponents:o.components,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])])):(Uo(),Ya("div",nze,[$t(n,{"row-data":u,components:o.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):za("",!0)],64)}const oze=mp(GBe,[["render",rze]]),Q0=Am({copilot_active:!1,connection_lost:!1,timers:{},comments_enabled:!1}),Mp={clock:'',cubic:'',circleAdd:'',code:'',delete:'',done:'',dot:'',dropdown:' ',duplicate:'',edit:'',markdown:'',message:'',more:'',notebook:'',logo:'',monitor:'',play:'',save:'',undo:'',redo:' ',settings:'',share:'',sql:' ',status:'',stop:'',text:'',visibility:'',copilot:'GitHub Copilot'},ize={component:t=>U1(t.tag,{...t,innerHTML:t.icon})},aze={class:"divider"},sze=em({__name:"AddCell",props:{onClick:null,cellId:String},emits:["createCodeCell"],setup(t){const e=qo([{title:"Code",cellType:"code",icon:`ztIcon:${Mp.code}`},{title:"SQL",cellType:"sql",icon:`ztIcon:${Mp.sql}`},{title:"Markdown",cellType:"markdown",icon:`ztIcon:${Mp.markdown}`},{title:"Text",cellType:"text",icon:`ztIcon:${Mp.text}`}]);return(o,f)=>(Uo(),da(BO,{transition:"scale-transition",minWidth:"0",target:"cursor"},{activator:ao(({props:E})=>[Na("div",qi(t.cellId?{...E,id:"addCell"+t.cellId}:E,{class:"activator-area"}),[Na("div",aze,[$t(vM,{class:"divider__divider-line",color:"bluegrey-darken-2"}),$t(Ja,{"prepend-icon":`ztIcon:${Va(Mp).circleAdd}`,variant:"plain",density:"compact",ripple:!1,class:"divider__btn bg-background"},{default:ao(()=>[Ua("Add cell")]),_:1},8,["prepend-icon"])])],16)]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(e.value,(E,d)=>(Uo(),da(Xf,qi({key:d,class:"add-cell-item"},t.cellId?{id:"addCell_"+E.title+"_"+t.cellId}:{},{onClick:s=>o.$emit("createCodeCell",E.cellType)}),{prepend:ao(()=>[$t(jl,{icon:E.icon},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua(Dl(E.title),1)]),_:2},1024)]),_:2},1040,["onClick"]))),128))]),_:1})]),_:1}))}});const Zue=mp(sze,[["__scopeId","data-v-c00c2563"]]);function lze(t,e){const o=nr(()=>t.value);return{cellTypeColor:nr(()=>{if(e!=null&&e.value)return"error";switch(t.value){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),cellTypeIcon:o}}var cze=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let xwe;const Bq=t=>xwe=t,_we=Symbol();function dle(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var cI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(cI||(cI={}));function sze(){const t=oD(!0),e=t.run(()=>qo({}));let o=[],f=[];const E=iD({install(d){Bq(E),E._a=d,d.provide(_we,E),d.config.globalProperties.$pinia=E,f.forEach(s=>o.push(s)),f=[]},use(d){return!this._a&&!aze?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return E}const wwe=()=>{};function a0e(t,e,o,f=wwe){t.push(e);const E=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&V1e()&&hg(E),E}function P8(t,...e){t.slice().forEach(o=>{o(...e)})}const lze=t=>t();function hle(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],E=t[o];dle(E)&&dle(f)&&t.hasOwnProperty(o)&&!ku(f)&&!CO(f)?t[o]=hle(E,f):t[o]=f}return t}const cze=Symbol();function uze(t){return!dle(t)||!t.hasOwnProperty(cze)}const{assign:e4}=Object;function fze(t){return!!(ku(t)&&t.effect)}function dze(t,e,o,f){const{state:E,actions:d,getters:s}=e,n=o.state.value[t];let u;function b(){n||(o.state.value[t]=E?E():{});const i=CM(o.state.value[t]);return e4(i,d,Object.keys(s||{}).reduce((S,w)=>(S[w]=iD(nr(()=>{Bq(o);const y=o._s.get(t);return s[w].call(y,y)})),S),{}))}return u=Owe(t,b,e,o,f,!0),u}function Owe(t,e,o={},f,E,d){let s;const n=e4({actions:{}},o),u={deep:!0};let b,i,S=[],w=[],y;const m=f.state.value[t];!d&&!m&&(f.state.value[t]={}),qo({});let a;function c(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:cI.patchFunction,storeId:t,events:y}):(hle(f.state.value[t],R),M={type:cI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();Vc().then(()=>{a===T&&(b=!0)}),i=!0,P8(S,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(P=>{e4(P,T)})}:wwe;function p(){s.stop(),S=[],w=[],f._s.delete(t)}function v(R,M){return function(){Bq(f);const T=Array.from(arguments),P=[],A=[];function L(I){P.push(I)}function D(I){A.push(I)}P8(w,{args:T,name:R,store:O,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:O,T)}catch(I){throw P8(A,I),I}return k instanceof Promise?k.then(I=>(P8(P,I),I)).catch(I=>(P8(A,I),Promise.reject(I))):(P8(P,k),k)}}const _={_p:f,$id:t,$onAction:a0e.bind(null,w),$patch:c,$reset:h,$subscribe(R,M={}){const T=a0e(S,R,M.detached,()=>P()),P=s.run(()=>ia(()=>f.state.value[t],A=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:cI.direct,events:y},A)},e4({},u,M)));return T},$dispose:p},O=Am(_);f._s.set(t,O);const x=(f._a&&f._a.runWithContext||lze)(()=>f._e.run(()=>(s=oD()).run(e)));for(const R in x){const M=x[R];if(ku(M)&&!fze(M)||CO(M))d||(m&&uze(M)&&(ku(M)?M.value=m[R]:hle(M,m[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return e4(O,x),e4(sl(O),x),Object.defineProperty(O,"$state",{get:()=>f.state.value[t],set:R=>{c(M=>{e4(M,R)})}}),f._p.forEach(R=>{e4(O,s.run(()=>R({store:O,app:f._a,pinia:f,options:n})))}),m&&d&&o.hydrate&&o.hydrate(O.$state,m),b=!0,i=!0,O}function hze(t,e,o){let f,E;const d=typeof e=="function";typeof t=="string"?(f=t,E=d?o:e):(E=t,f=t.id);function s(n,u){const b=xke();return n=n||(b?Kl(_we,null):null),n&&Bq(n),n=xwe,n._s.has(f)||(d?Owe(f,e,E,n):dze(f,E,n)),n._s.get(f)}return s.$id=f,s}function Hue(t){{t=sl(t);const e={};for(const o in t){const f=t[o];(ku(f)||CO(f))&&(e[o]=ji(t,o))}return e}}const TD=hze("comments",()=>{const t=Gi(!1),e=qo([]),o=qo(),f=qo(!0);function E(a,c,h,p){var _,O;const v={cellId:c,cellName:p,cellType:h};for(const C in a){const x=[];for(const M in a[C].replies){const T=(O=(_=a[C])==null?void 0:_.replies)==null?void 0:O[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:C,cell:v,userName:"",date:a[C].date??"",comment:a[C].comment??"",replies:x,resolved:a[C].resolved??!1};e.value.push(R)}}const d=nr(()=>(f.value=!0,o.value?e.value.filter(c=>{var h;return c.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),s=nr(()=>a=>e.value.filter(c=>c.cell.cellId===a).length);async function n(a){try{const c={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await ou.post("api/add_comment",c),e.value.push(a)}catch(c){console.error("Error adding comment:",c)}}async function u(a,c,h){try{if(h){const p=e.value.find(v=>v.id===h);if(p){const v={cellId:p.cell.cellId??"",parentCommentId:h,commentId:a};await ou.post("api/delete_reply",v),p.replies=p.replies.filter(_=>_.id!==a)}}else{const p={cellId:c,commentId:a};await ou.post("api/delete_comment",p),e.value=e.value.filter(v=>v.id!==a)}}catch(p){console.error("Error deleting comment:",p)}}async function b(a,c,h,p){try{const v=e.value.find(_=>_.id===(p??a));if(p){const _={cellId:c,parentCommentId:p,commentId:a,comment:h};await ou.post("api/edit_reply",_);const O=v==null?void 0:v.replies.find(C=>C.id===a);O&&(O.comment=h)}else{const _={cellId:c,commentId:a,comment:h};await ou.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,c){try{const h={cellId:c.cell.cellId??"",parentCommentId:a,commentId:c.id,comment:c.comment,date:c.date};await ou.post("api/add_reply",h);const p=e.value.find(v=>v.id===a);p==null||p.replies.push(c)}catch(h){console.error("Error replying to comment:",h)}}async function S(a,c){try{const h={cellId:c,commentId:a,resolved:!0};await ou.post("api/resolve_comment",h);const p=e.value.find(v=>v.id===a);p&&(p.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function m(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:s,displayedComments:d,addComment:n,editComment:b,deleteComment:u,replyComment:i,closeComments:w,resolveComment:S,showAllComments:y,showCommentsPerCell:m,loadComments:E}}),pze={class:"content"},mze={class:"header"},gze={key:0,class:"click-edit"},vze={key:0,class:"click-edit__show-text"},yze={class:"loading-wrapper"},bze={key:1,class:"click-edit__edit-field-wrapper"},xze={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},_ze={class:"actions"},wze={key:1,class:"text-primary message-btn__counter"},Oze=em({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=TD(),{commentsByCell:E}=Hue(f),d=nr(()=>E.value(o.cellId)),{cellTypeColor:s}=ize(ji(o.cellType),ji(o.error)),n=qo(o.hideCell||!1),u=qo(o.hideCode||!1),b=qo(o.expandCode||!1),i=qo(o.nonReactive||!1),S=qo(o.showTable||!1),w=qo(o.cellName||o.cellType),y=qo(""),m=qo(null),a=qo(!1),c=nr(()=>o.cellType==="code"||o.cellType==="sql"),h=nr(()=>o.cellType==="markdown"||o.cellType==="text"),p=nr(()=>o.cellType==="code"||o.cellType==="sql"),v=nr(()=>JT().name==="/app"),_=async P=>{const A={cellId:o.cellId,hideCell:P};await ou.post("api/hide_cell",A)},O=async P=>{const A={cellId:o.cellId,hideCode:P};await ou.post("api/hide_code",A),e("hideCode",P)},C=async P=>{const A={cellId:o.cellId,expandCode:P};await ou.post("api/expand_code",A),e("expandCodeUpdate",P)},x=async P=>{const A={cellId:o.cellId,nonReactive:P};await ou.post("api/cell_reactivity",A),e("updateReactivity",P)},R=async P=>{const A={cellId:o.cellId,showTable:P};await ou.post("api/show_table",A),e("updateShowTable",P)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,Vc(()=>{m.value&&m.value.focus()}))},T=async()=>{const P={cellId:o.cellId,cellName:y.value};await ou.post("api/rename_cell",P),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(P,A)=>(Uo(),Ya(Ea,null,[t.isDevMode||!t.isDevMode&&!n.value?(Uo(),da(ub,{key:0,id:"codeCard"+t.cellId,class:Gv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:ao(()=>[$t(vM,{class:"indicator",vertical:"",color:Va(s),thickness:4},null,8,["color"]),Na("div",pze,[Na("header",mze,[t.isDevMode&&p.value?(Uo(),Ya("div",gze,[a.value?za("",!0):(Uo(),Ya("div",vze,[Na("div",yze,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Uo(),da(sC,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):za("",!0)]),Na("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},Dl(w.value),1)])),a.value?(Uo(),Ya("div",bze,[$t(Ep,{modelValue:y.value,"onUpdate:modelValue":A[0]||(A[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:m,class:"click-edit__edit-field",onKeydown:pce(T,["enter"]),"onUpdate:focused":A[1]||(A[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):za("",!0)])):t.isDevMode?(Uo(),Ya("h4",xze,Dl(w.value),1)):p.value?vie(P.$slots,"header-title",{key:2},void 0,!0):(Uo(),da(BM,{key:3})),$t(ef,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:ao(()=>[Na("div",_ze,[t.isDevMode&&h.value?(Uo(),da(es,{key:0,icon:`ztIcon:${Va(Mp).save}`,onClick:A[2]||(A[2]=L=>P.$emit("save"))},null,8,["icon"])):za("",!0),t.isDevMode&&c.value?(Uo(),da(es,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${Va(Mp).play}`,onClick:A[3]||(A[3]=L=>P.$emit("play"))},null,8,["id","icon"])):za("",!0),Va(Q0).comments_enabled?(Uo(),da(es,{key:2,class:Gv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:A[4]||(A[4]=L=>Va(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:ao(()=>[d.value===0?(Uo(),da(jl,{key:0,size:"x-large",icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"])):(Uo(),Ya("span",wze,Dl(d.value),1))]),_:1},8,["class"])):za("",!0),t.isDevMode?(Uo(),da(BO,{key:3,"close-on-content-click":!1},{activator:ao(({props:L})=>[$t(es,qi({icon:`ztIcon:${Va(Mp).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[p.value?(Uo(),da(Xf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:i.value,"onUpdate:modelValue":[A[5]||(A[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Non-Reactive")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{id:"hideCell"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:n.value,"onUpdate:modelValue":[A[6]||(A[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Cell")]),_:1})]),_:1},8,["id"]),p.value?(Uo(),da(Xf,{key:1,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:u.value,"onUpdate:modelValue":[A[7]||(A[7]=L=>u.value=L),O]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Code")]),_:1})]),_:1},8,["id"])):za("",!0),p.value?(Uo(),da(Xf,{key:2,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:b.value,"onUpdate:modelValue":[A[8]||(A[8]=L=>b.value=L),C]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Expand Code")]),_:1})]),_:1},8,["id"])):za("",!0),t.cellType==="sql"?(Uo(),da(Xf,{key:3,id:"updateShowTable"+t.cellId},{prepend:ao(()=>[$t(N8,{modelValue:S.value,"onUpdate:modelValue":[A[9]||(A[9]=L=>S.value=L),R]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Show Table")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:A[10]||(A[10]=L=>P.$emit("delete"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})):za("",!0)])]),_:1})]),t.isDevMode||!t.isDevMode&&p.value?(Uo(),Ya("div",{key:0,class:Gv(["code",{"code--dev":t.isDevMode}])},[vie(P.$slots,"code",{},void 0,!0)],2)):za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?za("",!0):(Uo(),Ya("div",{key:1,class:Gv(["outcome",{"outcome--dev":t.isDevMode}])},[vie(P.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Uo(),da(ywe,{key:0,text:"Cell is Stale"},{activator:ao(({props:L})=>[$t(vM,qi(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):za("",!0)]),_:3},8,["id","class"])):za("",!0),t.isDevMode?(Uo(),da(Que,{key:1,"cell-id":t.cellId,onCreateCodeCell:A[11]||(A[11]=L=>P.$emit("addCell",L))},null,8,["cell-id"])):za("",!0)],64))}});const zq=mp(Oze,[["__scopeId","data-v-6e515f8e"]]);function Sze(t,e,o=void 0){let f=()=>{};return(...E)=>(f(),new Promise((d,s)=>{const n=setTimeout(()=>d(t(...E)),e);f=()=>{clearTimeout(n),o!==void 0&&s(o)}}))}var kze=Object.defineProperty,Tze=(t,e,o)=>e in t?kze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Swe=(t,e,o)=>(Tze(t,typeof e!="symbol"?e+"":e,o),o);const Zue=tm.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(kwe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),kwe=Ql.define();function Cze(t,e){const o=t.state.selection.main.head,f=[],E=Ns.widget({widget:new Aze(e),side:1});return f.push(E.range(o)),Ns.set(f)}class Aze extends Ex{constructor(e){super(),Swe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const Mze=t=>zh.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:kwe.of({text:f,doc:o})})}}),Eze=zh.fromClass(class{constructor(){Swe(this,"decorations"),this.decorations=Ns.none}update(t){var e;const o=(e=t.state.field(Zue))==null?void 0:e.suggestion;if(!o){this.decorations=Ns.none;return}this.decorations=Cze(t.view,o)}},{decorations:t=>t.decorations}),Pze=ty.highest(FO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Zue))==null?void 0:e.suggestion;return o?(t.dispatch({...Rze(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function Rze(t,e,o,f){return{...t.changeByRange(E=>{if(E==t.selection.main)return{changes:{from:o,to:f,insert:e},range:hi.cursor(o+e.length)};const d=f-o;return!E.empty||d&&t.sliceDoc(E.from-d,E.from)!=t.sliceDoc(o,f)?{range:E}:{changes:{from:E.from-d,to:E.from,insert:e},range:hi.cursor(E.from-d+e.length)}}),userEvent:"input.complete"}}function Lze(t){const{delay:e=500}=t,o=Sze(t.fetchFn,e);return[Zue,Mze(o),Eze,Pze]}const Ize={components:{cell:zq,codemirror:iq,"v-slider":Due,"v-rating":Uue,"v-text-field":Ep,"v-file-input":$ue,"v-textarea":kD,"v-range-slider":Vue,"v-select":DM,"v-combobox":Bue,"v-btn":es,"v-img":rC,"v-data-table":Lq,"v-autocomplete":Mq,"v-card":ub,"v-text":jue,"plotly-plot":yce,"layout-component":tze,"component-wrapper":bwe},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{}}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async E=>{if(Q0.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await ou.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await ou.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const d=E.selection.main.head,s=E.doc.lineAt(d).number,n=d-E.doc.line(s).from,u=new Promise((b,i)=>{this.$emit("copilotCompletion",this.cellData.id,s,n,S=>{b(S)})});try{const b=await u;if(b.status===200&&b.data.completions.length>0)return this.copilotSuggestion=b.data.completions[0].uuid,b.data.completions[0].displayText}catch(b){console.log("Error fetching suggestion:",b)}}return""},f=async E=>{const d=E.matchBefore(/\w*/);return{from:d?d.from:E.pos,options:this.completions.map(n=>({label:n.label,type:n.type,apply:(u,b,i,S)=>{const w=b.label;u.dispatch({changes:{from:i,to:S??E.pos,insert:w}})}}))}};return this.$devMode&&!this.isAppRoute?[ty.highest(e),Hme(),eC.of(" "),pM,Lze({fetchFn:o,delay:400}),dM({override:[f]})]:[kc.readOnly.of(!0),ty.highest(e),Hme(),pM,dM({override:[f]})]},unplacedComponents(){var f;const t=E=>{let d=[];for(const s of E)for(const n of(s==null?void 0:s.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=E=>{let d=[],s=[];for(const n of E)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(s.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,s),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(E=>!o.includes(E.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,E,d,s;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(E=this.view)==null?void 0:E.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((s=this.view)==null?void 0:s.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const Dze={key:0,style:{display:"flex",width:"100%"}},Bze={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},zze={class:"text-ellipsis app-static-name"},Nze={key:1},Fze={class:"text-caption text-disabled text-right"},$ze=["id"],Vze=["id"],Uze=["id"];function jze(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("layout-component"),u=Nd("component-wrapper"),b=Nd("cell");return Uo(),da(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",Dze,[o.cellData.hideCode?(Uo(),Ya("h4",Bze,Dl(o.cellData.cellName),1)):(Uo(),da(gwe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>E.expanded=i)},{default:ao(()=>[$t(mwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=i=>E.expanded=i),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(yZ,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:ao(()=>[Na("h4",zze,Dl(o.cellData.cellName),1)]),_:1},8,["id"]),$t(vZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[3]||(e[3]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",Nze,[Na("p",Fze,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>{var i,S,w;return[Na("div",{id:"outputContainer_"+o.cellData.id},[(S=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&S.length?(Uo(!0),Ya(Ea,{key:0},ey((w=o.cellData.layout)==null?void 0:w.rows,(y,m)=>(Uo(),da(n,{key:m,"row-data":y,components:E.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):za("",!0),d.unplacedComponents.length?(Uo(),Ya("div",{key:1,id:"unplacedComponents"+o.cellData.id},[$t(u,{renderComponents:d.unplacedComponents,allComponents:E.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,Vze)):za("",!0),Na("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},Dl(o.cellData.output),9,Uze)],8,$ze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const Twe=mp(Ize,[["render",jze],["__scopeId","data-v-ea931945"]]);function que(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let hC=que();function Cwe(t){hC=t}const Awe=/[&<>"']/,Qze=new RegExp(Awe.source,"g"),Mwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Hze=new RegExp(Mwe.source,"g"),Zze={"&":"&","<":"<",">":">",'"':""","'":"'"},s0e=t=>Zze[t];function qv(t,e){if(e){if(Awe.test(t))return t.replace(Qze,s0e)}else if(Mwe.test(t))return t.replace(Hze,s0e);return t}const qze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Wze(t){return t.replace(qze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const Yze=/(^|[^\[])\^/g;function vf(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,E)=>(E=typeof E=="object"&&"source"in E?E.source:E,E=E.replace(Yze,"$1"),t=t.replace(f,E),o),getRegex:()=>new RegExp(t,e)};return o}function l0e(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const bZ={exec:()=>null};function c0e(t,e){const o=t.replace(/\|/g,(d,s,n)=>{let u=!1,b=s;for(;--b>=0&&n[b]==="\\";)u=!u;return u?"|":" |"}),f=o.split(/ \|/);let E=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.lengthwwe=t,Owe=Symbol();function hle(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var cI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(cI||(cI={}));function uze(){const t=iD(!0),e=t.run(()=>qo({}));let o=[],f=[];const E=aD({install(d){zq(E),E._a=d,d.provide(Owe,E),d.config.globalProperties.$pinia=E,f.forEach(s=>o.push(s)),f=[]},use(d){return!this._a&&!cze?f.push(d):o.push(d),this},_p:o,_a:null,_e:t,_s:new Map,state:e});return E}const Swe=()=>{};function l0e(t,e,o,f=Swe){t.push(e);const E=()=>{const d=t.indexOf(e);d>-1&&(t.splice(d,1),f())};return!o&&j1e()&&hg(E),E}function R8(t,...e){t.slice().forEach(o=>{o(...e)})}const fze=t=>t();function ple(t,e){t instanceof Map&&e instanceof Map&&e.forEach((o,f)=>t.set(f,o)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const o in e){if(!e.hasOwnProperty(o))continue;const f=e[o],E=t[o];hle(E)&&hle(f)&&t.hasOwnProperty(o)&&!ku(f)&&!CO(f)?t[o]=ple(E,f):t[o]=f}return t}const dze=Symbol();function hze(t){return!hle(t)||!t.hasOwnProperty(dze)}const{assign:e4}=Object;function pze(t){return!!(ku(t)&&t.effect)}function mze(t,e,o,f){const{state:E,actions:d,getters:s}=e,n=o.state.value[t];let u;function b(){n||(o.state.value[t]=E?E():{});const i=CM(o.state.value[t]);return e4(i,d,Object.keys(s||{}).reduce((S,w)=>(S[w]=aD(nr(()=>{zq(o);const y=o._s.get(t);return s[w].call(y,y)})),S),{}))}return u=kwe(t,b,e,o,f,!0),u}function kwe(t,e,o={},f,E,d){let s;const n=e4({actions:{}},o),u={deep:!0};let b,i,S=[],w=[],y;const m=f.state.value[t];!d&&!m&&(f.state.value[t]={}),qo({});let a;function c(R){let M;b=i=!1,typeof R=="function"?(R(f.state.value[t]),M={type:cI.patchFunction,storeId:t,events:y}):(ple(f.state.value[t],R),M={type:cI.patchObject,payload:R,storeId:t,events:y});const T=a=Symbol();Vc().then(()=>{a===T&&(b=!0)}),i=!0,R8(S,M,f.state.value[t])}const h=d?function(){const{state:M}=o,T=M?M():{};this.$patch(P=>{e4(P,T)})}:Swe;function p(){s.stop(),S=[],w=[],f._s.delete(t)}function v(R,M){return function(){zq(f);const T=Array.from(arguments),P=[],A=[];function L(I){P.push(I)}function D(I){A.push(I)}R8(w,{args:T,name:R,store:O,after:L,onError:D});let k;try{k=M.apply(this&&this.$id===t?this:O,T)}catch(I){throw R8(A,I),I}return k instanceof Promise?k.then(I=>(R8(P,I),I)).catch(I=>(R8(A,I),Promise.reject(I))):(R8(P,k),k)}}const _={_p:f,$id:t,$onAction:l0e.bind(null,w),$patch:c,$reset:h,$subscribe(R,M={}){const T=l0e(S,R,M.detached,()=>P()),P=s.run(()=>ia(()=>f.state.value[t],A=>{(M.flush==="sync"?i:b)&&R({storeId:t,type:cI.direct,events:y},A)},e4({},u,M)));return T},$dispose:p},O=Am(_);f._s.set(t,O);const x=(f._a&&f._a.runWithContext||fze)(()=>f._e.run(()=>(s=iD()).run(e)));for(const R in x){const M=x[R];if(ku(M)&&!pze(M)||CO(M))d||(m&&hze(M)&&(ku(M)?M.value=m[R]:ple(M,m[R])),f.state.value[t][R]=M);else if(typeof M=="function"){const T=v(R,M);x[R]=T,n.actions[R]=M}}return e4(O,x),e4(sl(O),x),Object.defineProperty(O,"$state",{get:()=>f.state.value[t],set:R=>{c(M=>{e4(M,R)})}}),f._p.forEach(R=>{e4(O,s.run(()=>R({store:O,app:f._a,pinia:f,options:n})))}),m&&d&&o.hydrate&&o.hydrate(O.$state,m),b=!0,i=!0,O}function gze(t,e,o){let f,E;const d=typeof e=="function";typeof t=="string"?(f=t,E=d?o:e):(E=t,f=t.id);function s(n,u){const b=wke();return n=n||(b?Kl(Owe,null):null),n&&zq(n),n=wwe,n._s.has(f)||(d?kwe(f,e,E,n):mze(f,E,n)),n._s.get(f)}return s.$id=f,s}function que(t){{t=sl(t);const e={};for(const o in t){const f=t[o];(ku(f)||CO(f))&&(e[o]=ji(t,o))}return e}}const CD=gze("comments",()=>{const t=Gi(!1),e=qo([]),o=qo(),f=qo(!0);function E(a,c,h,p){var _,O;const v={cellId:c,cellName:p,cellType:h};for(const C in a){const x=[];for(const M in a[C].replies){const T=(O=(_=a[C])==null?void 0:_.replies)==null?void 0:O[M];x.push({id:M,cell:v,userName:"",date:(T==null?void 0:T.date)??"",comment:(T==null?void 0:T.comment)??"",replies:[],resolved:(T==null?void 0:T.resolved)??!1})}const R={id:C,cell:v,userName:"",date:a[C].date??"",comment:a[C].comment??"",replies:x,resolved:a[C].resolved??!1};e.value.push(R)}}const d=nr(()=>(f.value=!0,o.value?e.value.filter(c=>{var h;return c.cell.cellId===((h=o.value)==null?void 0:h.cellId)})??[]:e.value)),s=nr(()=>a=>e.value.filter(c=>c.cell.cellId===a).length);async function n(a){try{const c={cellId:a.cell.cellId??"",commentId:a.id,comment:a.comment,date:a.date};await ou.post("api/add_comment",c),e.value.push(a)}catch(c){console.error("Error adding comment:",c)}}async function u(a,c,h){try{if(h){const p=e.value.find(v=>v.id===h);if(p){const v={cellId:p.cell.cellId??"",parentCommentId:h,commentId:a};await ou.post("api/delete_reply",v),p.replies=p.replies.filter(_=>_.id!==a)}}else{const p={cellId:c,commentId:a};await ou.post("api/delete_comment",p),e.value=e.value.filter(v=>v.id!==a)}}catch(p){console.error("Error deleting comment:",p)}}async function b(a,c,h,p){try{const v=e.value.find(_=>_.id===(p??a));if(p){const _={cellId:c,parentCommentId:p,commentId:a,comment:h};await ou.post("api/edit_reply",_);const O=v==null?void 0:v.replies.find(C=>C.id===a);O&&(O.comment=h)}else{const _={cellId:c,commentId:a,comment:h};await ou.post("api/edit_comment",_),v&&(v.comment=h)}}catch(v){console.error("Error editing comment:",v)}}async function i(a,c){try{const h={cellId:c.cell.cellId??"",parentCommentId:a,commentId:c.id,comment:c.comment,date:c.date};await ou.post("api/add_reply",h);const p=e.value.find(v=>v.id===a);p==null||p.replies.push(c)}catch(h){console.error("Error replying to comment:",h)}}async function S(a,c){try{const h={cellId:c,commentId:a,resolved:!0};await ou.post("api/resolve_comment",h);const p=e.value.find(v=>v.id===a);p&&(p.resolved=!0)}catch(h){console.error("Error resolving comment:",h)}}function w(){t.value=!1,o.value=void 0}function y(){t.value=!0}function m(a){t.value=!0,o.value=a}return{showComments:t,allComments:e,selectedCell:o,editorAvailable:f,commentsByCell:s,displayedComments:d,addComment:n,editComment:b,deleteComment:u,replyComment:i,closeComments:w,resolveComment:S,showAllComments:y,showCommentsPerCell:m,loadComments:E}}),vze={class:"content"},yze={class:"header"},bze={key:0,class:"click-edit"},xze={key:0,class:"click-edit__show-text"},_ze={class:"loading-wrapper"},wze={key:1,class:"click-edit__edit-field-wrapper"},Oze={key:1,class:"text-bluegrey-darken-1 text-ellipsis click-edit__static-name"},Sze={class:"actions"},kze={key:1,class:"text-primary message-btn__counter"},Tze=em({__name:"Cell",props:{isDevMode:Boolean,cellType:{type:String,default:"code"},cellId:String,error:Boolean,hideCell:{type:Boolean,default:!1},hideCode:{type:Boolean,default:!1},expandCode:{type:Boolean,default:!1},nonReactive:{type:Boolean,default:!1},showTable:{type:Boolean,default:!1},cellName:{type:String,default:null},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},emits:["delete","play","save","expandCodeUpdate","updateReactivity","updateShowTable","hideCode","addCell","renameCell"],setup(t,{emit:e}){const o=t,f=CD(),{commentsByCell:E}=que(f),d=nr(()=>E.value(o.cellId)),{cellTypeColor:s}=lze(ji(o.cellType),ji(o.error)),n=qo(o.hideCell||!1),u=qo(o.hideCode||!1),b=qo(o.expandCode||!1),i=qo(o.nonReactive||!1),S=qo(o.showTable||!1),w=qo(o.cellName||o.cellType),y=qo(""),m=qo(null),a=qo(!1),c=nr(()=>o.cellType==="code"||o.cellType==="sql"),h=nr(()=>o.cellType==="markdown"||o.cellType==="text"),p=nr(()=>o.cellType==="code"||o.cellType==="sql"),v=nr(()=>eC().name==="/app"),_=async P=>{const A={cellId:o.cellId,hideCell:P};await ou.post("api/hide_cell",A)},O=async P=>{const A={cellId:o.cellId,hideCode:P};await ou.post("api/hide_code",A),e("hideCode",P)},C=async P=>{const A={cellId:o.cellId,expandCode:P};await ou.post("api/expand_code",A),e("expandCodeUpdate",P)},x=async P=>{const A={cellId:o.cellId,nonReactive:P};await ou.post("api/cell_reactivity",A),e("updateReactivity",P)},R=async P=>{const A={cellId:o.cellId,showTable:P};await ou.post("api/show_table",A),e("updateShowTable",P)},M=()=>{a.value=!a.value,a.value&&(y.value=w.value,Vc(()=>{m.value&&m.value.focus()}))},T=async()=>{const P={cellId:o.cellId,cellName:y.value};await ou.post("api/rename_cell",P),w.value=y.value,a.value=!1,e("renameCell",w.value)};return(P,A)=>(Uo(),Ya(Ea,null,[t.isDevMode||!t.isDevMode&&!n.value?(Uo(),da(ub,{key:0,id:"codeCard"+t.cellId,class:Gv(["cell",{"cell--dev":t.isDevMode}]),color:"bluegrey-darken-4"},{default:ao(()=>[$t(vM,{class:"indicator",vertical:"",color:Va(s),thickness:4},null,8,["color"]),Na("div",vze,[Na("header",yze,[t.isDevMode&&p.value?(Uo(),Ya("div",bze,[a.value?za("",!0):(Uo(),Ya("div",xze,[Na("div",_ze,[t.cellId==t.currentlyExecutingCell&&t.isCodeRunning?(Uo(),da(lC,{key:0,indeterminate:"",size:"24",class:"ml-1 mr-2 green-loader"})):za("",!0)]),Na("h4",{class:"text-bluegrey-darken-1 text-ellipsis click-edit__name",onClick:M},Dl(w.value),1)])),a.value?(Uo(),Ya("div",wze,[$t(Ep,{modelValue:y.value,"onUpdate:modelValue":A[0]||(A[0]=L=>y.value=L),placeholder:t.cellType,density:"compact",variant:"plain","hide-details":"",ref_key:"cellNameField",ref:m,class:"click-edit__edit-field",onKeydown:mce(T,["enter"]),"onUpdate:focused":A[1]||(A[1]=L=>{L||T()})},null,8,["modelValue","placeholder","onKeydown"])])):za("",!0)])):t.isDevMode?(Uo(),Ya("h4",Oze,Dl(w.value),1)):p.value?yie(P.$slots,"header-title",{key:2},void 0,!0):(Uo(),da(BM,{key:3})),$t(ef,{defaults:{VIcon:{color:"bluegrey"},VBtn:{variant:"text",size:"small"}}},{default:ao(()=>[Na("div",Sze,[t.isDevMode&&h.value?(Uo(),da(Ja,{key:0,icon:`ztIcon:${Va(Mp).save}`,onClick:A[2]||(A[2]=L=>P.$emit("save"))},null,8,["icon"])):za("",!0),t.isDevMode&&c.value?(Uo(),da(Ja,{key:1,id:"runCode"+t.cellId,icon:`ztIcon:${Va(Mp).play}`,onClick:A[3]||(A[3]=L=>P.$emit("play"))},null,8,["id","icon"])):za("",!0),Va(Q0).comments_enabled?(Uo(),da(Ja,{key:2,class:Gv(["message-btn","pa-0",{"message-btn--alert":d.value}]),onClick:A[4]||(A[4]=L=>Va(f).showCommentsPerCell({cellId:t.cellId,cellName:w.value,cellType:t.cellType})),ripple:!1,slim:"",rounded:"circle"},{default:ao(()=>[d.value===0?(Uo(),da(jl,{key:0,size:"x-large",icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"])):(Uo(),Ya("span",kze,Dl(d.value),1))]),_:1},8,["class"])):za("",!0),t.isDevMode?(Uo(),da(BO,{key:3,"close-on-content-click":!1},{activator:ao(({props:L})=>[$t(Ja,qi({icon:`ztIcon:${Va(Mp).more}`,id:"cellToolbar"+t.cellId},L),null,16,["icon","id"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[p.value?(Uo(),da(Xf,{key:0,id:"updateCellReactivity"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:i.value,"onUpdate:modelValue":[A[5]||(A[5]=L=>i.value=L),x]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Non-Reactive")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{id:"hideCell"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:n.value,"onUpdate:modelValue":[A[6]||(A[6]=L=>n.value=L),_],id:"hideCellSwitch"+t.cellId},null,8,["modelValue","id"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Cell")]),_:1})]),_:1},8,["id"]),p.value?(Uo(),da(Xf,{key:1,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:u.value,"onUpdate:modelValue":[A[7]||(A[7]=L=>u.value=L),O]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Hide Code")]),_:1})]),_:1},8,["id"])):za("",!0),p.value?(Uo(),da(Xf,{key:2,id:"expandCode"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:b.value,"onUpdate:modelValue":[A[8]||(A[8]=L=>b.value=L),C]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Expand Code")]),_:1})]),_:1},8,["id"])):za("",!0),t.cellType==="sql"?(Uo(),da(Xf,{key:3,id:"updateShowTable"+t.cellId},{prepend:ao(()=>[$t(F8,{modelValue:S.value,"onUpdate:modelValue":[A[9]||(A[9]=L=>S.value=L),R]},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Show Table")]),_:1})]),_:1},8,["id"])):za("",!0),$t(Xf,{"base-color":"error",id:"deleteCell"+t.cellId,class:"delete-cell",onClick:A[10]||(A[10]=L=>P.$emit("delete"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete Cell")]),_:1})]),_:1},8,["id"])]),_:1})]),_:1})):za("",!0)])]),_:1})]),t.isDevMode||!t.isDevMode&&p.value?(Uo(),Ya("div",{key:0,class:Gv(["code",{"code--dev":t.isDevMode}])},[yie(P.$slots,"code",{},void 0,!0)],2)):za("",!0),t.isDevMode&&!v.value&&t.cellType==="text"?za("",!0):(Uo(),Ya("div",{key:1,class:Gv(["outcome",{"outcome--dev":t.isDevMode}])},[yie(P.$slots,"outcome",{},void 0,!0)],2))]),i.value?(Uo(),da(xwe,{key:0,text:"Cell is Stale"},{activator:ao(({props:L})=>[$t(vM,qi(L,{class:"indicator",vertical:"",color:"warning",thickness:8}),null,16)]),_:1})):za("",!0)]),_:3},8,["id","class"])):za("",!0),t.isDevMode?(Uo(),da(Zue,{key:1,"cell-id":t.cellId,onCreateCodeCell:A[11]||(A[11]=L=>P.$emit("addCell",L))},null,8,["cell-id"])):za("",!0)],64))}});const Nq=mp(Tze,[["__scopeId","data-v-6e515f8e"]]);function Cze(t,e,o=void 0){let f=()=>{};return(...E)=>(f(),new Promise((d,s)=>{const n=setTimeout(()=>d(t(...E)),e);f=()=>{clearTimeout(n),o!==void 0&&s(o)}}))}var Aze=Object.defineProperty,Mze=(t,e,o)=>e in t?Aze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Twe=(t,e,o)=>(Mze(t,typeof e!="symbol"?e+"":e,o),o);const Wue=tm.define({create(){return{suggestion:null}},update(t,e){const o=e.effects.find(f=>f.is(Cwe));return e.state.doc&&o&&e.state.doc==o.value.doc?{suggestion:o.value.text}:{suggestion:null}}}),Cwe=Ql.define();function Eze(t,e){const o=t.state.selection.main.head,f=[],E=Ns.widget({widget:new Pze(e),side:1});return f.push(E.range(o)),Ns.set(f)}class Pze extends Ex{constructor(e){super(),Twe(this,"suggestion"),this.suggestion=e}toDOM(){const e=document.createElement("span");return e.style.opacity="0.4",e.className="cm-inline-suggestion",e.textContent=this.suggestion,e}}const Rze=t=>bh.fromClass(class{async update(e){const o=e.state.doc;if(!e.docChanged)return;const f=await t(e.state);e.view.dispatch({effects:Cwe.of({text:f,doc:o})})}}),Lze=bh.fromClass(class{constructor(){Twe(this,"decorations"),this.decorations=Ns.none}update(t){var e;const o=(e=t.state.field(Wue))==null?void 0:e.suggestion;if(!o){this.decorations=Ns.none;return}this.decorations=Eze(t.view,o)}},{decorations:t=>t.decorations}),Ize=ny.highest(FO.of([{key:"Tab",run:t=>{var e;const o=(e=t.state.field(Wue))==null?void 0:e.suggestion;return o?(t.dispatch({...Dze(t.state,o,t.state.selection.main.head,t.state.selection.main.head)}),!0):!1}}]));function Dze(t,e,o,f){return{...t.changeByRange(E=>{if(E==t.selection.main)return{changes:{from:o,to:f,insert:e},range:hi.cursor(o+e.length)};const d=f-o;return!E.empty||d&&t.sliceDoc(E.from-d,E.from)!=t.sliceDoc(o,f)?{range:E}:{changes:{from:E.from-d,to:E.from,insert:e},range:hi.cursor(E.from-d+e.length)}}),userEvent:"input.complete"}}function Bze(t){const{delay:e=500}=t,o=Cze(t.fetchFn,e);return[Wue,Rze(o),Lze,Ize]}const zze={components:{cell:Nq,codemirror:aq,"v-slider":zue,"v-rating":Que,"v-text-field":Ep,"v-file-input":Uue,"v-textarea":TD,"v-range-slider":jue,"v-select":DM,"v-combobox":Nue,"v-btn":Ja,"v-img":oC,"v-data-table":Iq,"v-autocomplete":Eq,"v-card":ub,"v-text":Hue,"plotly-plot":bce,"layout-component":oze,"component-wrapper":_we},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Array,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["componentValueChange","runCode","deleteCell","createCell","saveCell","copilotCompletion","updateTimers"],data(){return{isFocused:!1,copilotSuggestion:"",copilotAccepted:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],compDict:{},runLint:!1,currentLint:[]}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode(!1,"","")},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)},{key:"Tab",run:()=>(this.copilotSuggestion&&(this.copilotAccepted=!0),!1)}]),o=async d=>{if(Q0.copilot_active){this.copilotSuggestion&&(this.copilotAccepted?(await ou.post("copilot/accept_completion",{uuid:this.copilotSuggestion}),this.copilotAccepted=!1):await ou.post("copilot/reject_completion",{uuid:this.copilotSuggestion}),this.copilotSuggestion="");const s=d.selection.main.head,n=d.doc.lineAt(s).number,u=s-d.doc.line(n).from,b=new Promise((i,S)=>{this.$emit("copilotCompletion",this.cellData.id,n,u,w=>{i(w)})});try{const i=await b;if(i.status===200&&i.data.completions.length>0)return this.copilotSuggestion=i.data.completions[0].uuid,i.data.completions[0].displayText}catch(i){console.log("Error fetching suggestion:",i)}}return""},f=async d=>{const s=d.matchBefore(/\w*/);return{from:s?s.from:d.pos,options:this.completions.map(u=>({label:u.label,type:u.type,apply:(b,i,S,w)=>{const y=i.label;b.dispatch({changes:{from:S,to:w??d.pos,insert:y}})}}))}},E=wPe(d=>{if(!this.runLint)return this.currentLint;const s=[];return Array.isArray(this.lintResults)?this.lintResults.forEach(n=>{const u=d.state.doc.line(n.from.line+1).from+n.from.ch,b=d.state.doc.line(n.to.line+1).from+n.to.ch;u>=0&&b>=u&&b<=d.state.doc.length?s.push({from:u,to:b,severity:n.severity,message:n.message}):console.warn("Invalid lint result positions:",n)}):console.warn("No lint results for cell:",this.cellData.id),this.runLint=!1,this.currentLint=s,s},{needsRefresh:()=>this.runLint});return this.$devMode&&!this.isAppRoute?[ny.highest(e),qme(),tC.of(" "),pM,Bze({fetchFn:o,delay:400}),VI({override:[f]}),E]:[kc.readOnly.of(!0),ny.highest(e),qme(),pM]},unplacedComponents(){var f;const t=E=>{let d=[];for(const s of E)for(const n of(s==null?void 0:s.components)??[])typeof n=="string"?d.push(n):n&&n.components&&(d=d.concat(t([n])));return d},e=E=>{let d=[],s=[];for(const n of E)this.compDict[n.id]=n,n.childComponents?d.push.apply(d,Object.values(n.childComponents)):n.component==="v-timer"&&(s.push(n),d.push(n.id));return this.$emit("updateTimers",this.cellData.id,s),d},o=t(((f=this.cellData.layout)==null?void 0:f.rows)??[]).concat(e(this.cellData.components));return this.cellData.components.filter(E=>!o.includes(E.id))},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},mounted(){this.$watch(()=>this.lintResults,()=>{this.runLint=!0}),this.cellData.hideCell&&this.unplacedComponents},methods:{runCode(t,e,o){!this.$devMode&&t?this.$emit("componentValueChange",this.cellData.id,e,o,this.cellData.nonReactive):this.$emit("runCode",this.cellData.id,this.cellData.nonReactive,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var f,E,d,s;if(!this.$devMode||!((f=this.view)!=null&&f.hasFocus))return;const t=(E=this.view)==null?void 0:E.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,o=t-((s=this.view)==null?void 0:s.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,o)},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const Nze={key:0,style:{display:"flex",width:"100%"}},Fze={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},$ze={class:"text-ellipsis app-static-name"},Vze={key:1},Uze={class:"text-caption text-disabled text-right"},jze=["id"],Qze=["id"],Hze=["id"];function Zze(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("layout-component"),u=Nd("component-wrapper"),b=Nd("cell");return Uo(),da(b,{"cell-id":o.cellData.id,"cell-type":"code","hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:e[4]||(e[4]=i=>d.runCode(!1,"","")),onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=i=>d.expandCodeUpdate(i)),onHideCode:e[6]||(e[6]=i=>d.hideCode(i)),onRenameCell:e[7]||(e[7]=i=>d.renameCell(i)),onUpdateReactivity:e[8]||(e[8]=i=>d.updateReactivity(i)),onAddCell:e[9]||(e[9]=i=>d.createCell(i))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",Nze,[o.cellData.hideCode?(Uo(),Ya("h4",Fze,Dl(o.cellData.cellName),1)):(Uo(),da(ywe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=i=>E.expanded=i)},{default:ao(()=>[$t(vwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=i=>E.expanded=i),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(bZ,{class:"text-bluegrey-darken-1",id:"codeMirrorAppTitle"+o.cellData.id},{default:ao(()=>[Na("h4",$ze,Dl(o.cellData.cellName),1)]),_:1},8,["id"]),$t(yZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,code:o.cellData.code,id:"codeMirrorApp"+o.cellData.id},null,8,["modelValue","extensions","code","id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[3]||(e[3]=i=>o.cellData.code=i),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:f.handleReady,onKeyup:d.saveCell,code:o.cellData.code,id:"codeMirrorDev"+o.cellData.id},null,8,["modelValue","extensions","onReady","onKeyup","code","id"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",Vze,[Na("p",Uze,Dl(d.shortcutText)+" to run ",1)])):za("",!0)]),outcome:ao(()=>{var i,S,w;return[Na("div",{id:"outputContainer_"+o.cellData.id},[(S=(i=o.cellData.layout)==null?void 0:i.rows)!=null&&S.length?(Uo(!0),Ya(Ea,{key:0},ty((w=o.cellData.layout)==null?void 0:w.rows,(y,m)=>(Uo(),da(n,{key:m,"row-data":y,components:E.compDict,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)):za("",!0),d.unplacedComponents.length?(Uo(),Ya("div",{key:1,id:"unplacedComponents"+o.cellData.id},[$t(u,{renderComponents:d.unplacedComponents,allComponents:E.compDict,onRunCode:d.runCode},null,8,["renderComponents","allComponents","onRunCode"])],8,Qze)):za("",!0),Na("pre",{class:"code-output",id:"cellOutput"+o.cellData.id},Dl(o.cellData.output),9,Hze)],8,jze)]}),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onDelete"])}const Awe=mp(zze,[["render",Zze],["__scopeId","data-v-46d618ae"]]);function Yue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let pC=Yue();function Mwe(t){pC=t}const Ewe=/[&<>"']/,qze=new RegExp(Ewe.source,"g"),Pwe=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Wze=new RegExp(Pwe.source,"g"),Yze={"&":"&","<":"<",">":">",'"':""","'":"'"},c0e=t=>Yze[t];function qv(t,e){if(e){if(Ewe.test(t))return t.replace(qze,c0e)}else if(Pwe.test(t))return t.replace(Wze,c0e);return t}const Xze=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Gze(t){return t.replace(Xze,(e,o)=>(o=o.toLowerCase(),o==="colon"?":":o.charAt(0)==="#"?o.charAt(1)==="x"?String.fromCharCode(parseInt(o.substring(2),16)):String.fromCharCode(+o.substring(1)):""))}const Kze=/(^|[^\[])\^/g;function vf(t,e){t=typeof t=="string"?t:t.source,e=e||"";const o={replace:(f,E)=>(E=typeof E=="object"&&"source"in E?E.source:E,E=E.replace(Kze,"$1"),t=t.replace(f,E),o),getRegex:()=>new RegExp(t,e)};return o}function u0e(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const xZ={exec:()=>null};function f0e(t,e){const o=t.replace(/\|/g,(d,s,n)=>{let u=!1,b=s;for(;--b>=0&&n[b]==="\\";)u=!u;return u?"|":" |"}),f=o.split(/ \|/);let E=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),e)if(f.length>e)f.splice(e);else for(;f.length{const d=E.match(/^\s+/);if(d===null)return E;const[s]=d;return s.length>=f.length?E.slice(f.length):E}).join(` -`)}class xZ{constructor(e){pu(this,"options");pu(this,"rules");pu(this,"lexer");this.options=e||hC}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:YQ(f,` -`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],E=Gze(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:E}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const E=YQ(f,"#");(this.options.pedantic||!E||/ $/.test(E))&&(f=E.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=YQ(o[0].replace(/^ *>[ \t]?/gm,""),` +`)}class _Z{constructor(e){pu(this,"options");pu(this,"rules");pu(this,"lexer");this.options=e||pC}space(e){const o=this.rules.block.newline.exec(e);if(o&&o[0].length>0)return{type:"space",raw:o[0]}}code(e){const o=this.rules.block.code.exec(e);if(o){const f=o[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:o[0],codeBlockStyle:"indented",text:this.options.pedantic?f:XQ(f,` +`)}}}fences(e){const o=this.rules.block.fences.exec(e);if(o){const f=o[0],E=eNe(f,o[3]||"");return{type:"code",raw:f,lang:o[2]?o[2].trim().replace(this.rules.inline._escapes,"$1"):o[2],text:E}}}heading(e){const o=this.rules.block.heading.exec(e);if(o){let f=o[2].trim();if(/#$/.test(f)){const E=XQ(f,"#");(this.options.pedantic||!E||/ $/.test(E))&&(f=E.trim())}return{type:"heading",raw:o[0],depth:o[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(e){const o=this.rules.block.hr.exec(e);if(o)return{type:"hr",raw:o[0]}}blockquote(e){const o=this.rules.block.blockquote.exec(e);if(o){const f=XQ(o[0].replace(/^ *>[ \t]?/gm,""),` `),E=this.lexer.state.top;this.lexer.state.top=!0;const d=this.lexer.blockTokens(f);return this.lexer.state.top=E,{type:"blockquote",raw:o[0],tokens:d,text:f}}}list(e){let o=this.rules.block.list.exec(e);if(o){let f=o[1].trim();const E=f.length>1,d={type:"list",raw:"",ordered:E,start:E?+f.slice(0,-1):"",loose:!1,items:[]};f=E?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=E?f:"[*+-]");const s=new RegExp(`^( {0,3}${f})((?:[ ][^\\n]*)?(?:\\n|$))`);let n="",u="",b=!1;for(;e;){let i=!1;if(!(o=s.exec(e))||this.rules.block.hr.test(e))break;n=o[0],e=e.substring(n.length);let S=o[2].split(` `,1)[0].replace(/^\t+/,h=>" ".repeat(3*h.length)),w=e.split(` `,1)[0],y=0;this.options.pedantic?(y=2,u=S.trimStart()):(y=o[2].search(/[^ ]/),y=y>4?1:y,u=S.slice(y),y+=o[1].length);let m=!1;if(!S&&/^ *$/.test(w)&&(n+=w+` @@ -3615,10 +3615,10 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `,1)[0];if(w=O,this.options.pedantic&&(w=w.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(w)||_.test(w)||h.test(w)||p.test(e))break;if(w.search(/[^ ]/)>=y||!w.trim())u+=` `+w.slice(y);else{if(m||S.search(/[^ ]/)>=4||v.test(S)||_.test(S)||p.test(S))break;u+=` `+w}!m&&!w.trim()&&(m=!0),n+=O+` -`,e=e.substring(O.length+1),S=w.slice(y)}}d.loose||(b?d.loose=!0:/\n *\n *$/.test(n)&&(b=!0));let a=null,c;this.options.gfm&&(a=/^\[[ xX]\] /.exec(u),a&&(c=a[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:n,task:!!a,checked:c,loose:!1,text:u,tokens:[]}),d.raw+=n}d.items[d.items.length-1].raw=n.trimEnd(),d.items[d.items.length-1].text=u.trimEnd(),d.raw=d.raw.trimEnd();for(let i=0;iy.type==="space"),w=S.length>0&&S.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:E,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:c0e(o[1]).map(E=>({text:E,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(f.header.length===f.align.length){let E=f.align.length,d,s,n,u;for(d=0;d({text:b,tokens:[]}));for(E=f.header.length,s=0;s/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const s=YQ(f.slice(0,-1),"\\");if((f.length-s.length)%2===0)return}else{const s=Xze(o[2],"()");if(s>-1){const u=(o[0].indexOf("!")===0?5:4)+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,u).trim(),o[3]=""}}let E=o[2],d="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(E);s&&(E=s[1],d=s[3])}else d=o[3]?o[3].slice(1,-1):"";return E=E.trim(),/^$/.test(f)?E=E.slice(1):E=E.slice(1,-1)),u0e(o,{href:E&&E.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let E=(f[2]||f[1]).replace(/\s+/g," ");if(E=o[E.toLowerCase()],!E){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return u0e(f,E,f[0],this.lexer)}}emStrong(e,o,f=""){let E=this.rules.inline.emStrong.lDelim.exec(e);if(!E||E[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(E[1]||E[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const s=[...E[0]].length-1;let n,u,b=s,i=0;const S=E[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(S.lastIndex=0,o=o.slice(-1*e.length+s);(E=S.exec(o))!=null;){if(n=E[1]||E[2]||E[3]||E[4]||E[5]||E[6],!n)continue;if(u=[...n].length,E[3]||E[4]){b+=u;continue}else if((E[5]||E[6])&&s%3&&!((s+u)%3)){i+=u;continue}if(b-=u,b>0)continue;u=Math.min(u,u+b+i);const w=[...E[0]][0].length,y=e.slice(0,s+E.index+w+u);if(Math.min(s,u)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const E=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return E&&d&&(f=f.substring(1,f.length-1)),f=qv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,E;return o[2]==="@"?(f=qv(o[1]),E="mailto:"+f):(f=qv(o[1]),E=f),{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,E;if(o[2]==="@")f=qv(o[0]),E="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=qv(o[0]),o[1]==="www."?E="http://"+o[0]:E=o[0]}return{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=qv(o[0]),{type:"text",raw:o[0],text:f}}}}const qs={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:bZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};qs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;qs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;qs.def=vf(qs.def).replace("label",qs._label).replace("title",qs._title).getRegex();qs.bullet=/(?:[*+-]|\d{1,9}[.)])/;qs.listItemStart=vf(/^( *)(bull) */).replace("bull",qs.bullet).getRegex();qs.list=vf(qs.list).replace(/bull/g,qs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qs.def.source+")").getRegex();qs._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";qs._comment=/|$)/;qs.html=vf(qs.html,"i").replace("comment",qs._comment).replace("tag",qs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();qs.lheading=vf(qs.lheading).replace(/bull/g,qs.bullet).getRegex();qs.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.blockquote=vf(qs.blockquote).replace("paragraph",qs.paragraph).getRegex();qs.normal={...qs};qs.gfm={...qs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};qs.gfm.table=vf(qs.gfm.table).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.gfm.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.pedantic={...qs.normal,html:vf(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qs._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vf(qs.normal._paragraph).replace("hr",qs.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",qs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ha={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:bZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:bZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Ha.punctuation=vf(Ha.punctuation,"u").replace(/punctuation/g,Ha._punctuation).getRegex();Ha.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Ha.anyPunctuation=/\\[punct]/g;Ha._escapes=/\\([punct])/g;Ha._comment=vf(qs._comment).replace("(?:-->|$)","-->").getRegex();Ha.emStrong.lDelim=vf(Ha.emStrong.lDelim,"u").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimAst=vf(Ha.emStrong.rDelimAst,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimUnd=vf(Ha.emStrong.rDelimUnd,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.anyPunctuation=vf(Ha.anyPunctuation,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._escapes=vf(Ha._escapes,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Ha._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])?)+(?![-_])/;Ha.autolink=vf(Ha.autolink).replace("scheme",Ha._scheme).replace("email",Ha._email).getRegex();Ha._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Ha.tag=vf(Ha.tag).replace("comment",Ha._comment).replace("attribute",Ha._attribute).getRegex();Ha._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Ha._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Ha._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Ha.link=vf(Ha.link).replace("label",Ha._label).replace("href",Ha._href).replace("title",Ha._title).getRegex();Ha.reflink=vf(Ha.reflink).replace("label",Ha._label).replace("ref",qs._label).getRegex();Ha.nolink=vf(Ha.nolink).replace("ref",qs._label).getRegex();Ha.reflinkSearch=vf(Ha.reflinkSearch,"g").replace("reflink",Ha.reflink).replace("nolink",Ha.nolink).getRegex();Ha.normal={...Ha};Ha.pedantic={...Ha.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:vf(/^!?\[(label)\]\((.*?)\)/).replace("label",Ha._label).getRegex(),reflink:vf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ha._label).getRegex()};Ha.gfm={...Ha.normal,escape:vf(Ha.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]*?(?:(?=[\\y.type==="space"),w=S.length>0&&S.some(y=>/\n.*\n/.test(y.raw));d.loose=w}if(d.loose)for(let i=0;i$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=o[3]?o[3].substring(1,o[3].length-1).replace(this.rules.inline._escapes,"$1"):o[3];return{type:"def",tag:f,raw:o[0],href:E,title:d}}}table(e){const o=this.rules.block.table.exec(e);if(o){if(!/[:|]/.test(o[2]))return;const f={type:"table",raw:o[0],header:f0e(o[1]).map(E=>({text:E,tokens:[]})),align:o[2].replace(/^\||\| *$/g,"").split("|"),rows:o[3]&&o[3].trim()?o[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(f.header.length===f.align.length){let E=f.align.length,d,s,n,u;for(d=0;d({text:b,tokens:[]}));for(E=f.header.length,s=0;s/i.test(o[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:o[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:o[0]}}link(e){const o=this.rules.inline.link.exec(e);if(o){const f=o[2].trim();if(!this.options.pedantic&&/^$/.test(f))return;const s=XQ(f.slice(0,-1),"\\");if((f.length-s.length)%2===0)return}else{const s=Jze(o[2],"()");if(s>-1){const u=(o[0].indexOf("!")===0?5:4)+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,u).trim(),o[3]=""}}let E=o[2],d="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(E);s&&(E=s[1],d=s[3])}else d=o[3]?o[3].slice(1,-1):"";return E=E.trim(),/^$/.test(f)?E=E.slice(1):E=E.slice(1,-1)),d0e(o,{href:E&&E.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},o[0],this.lexer)}}reflink(e,o){let f;if((f=this.rules.inline.reflink.exec(e))||(f=this.rules.inline.nolink.exec(e))){let E=(f[2]||f[1]).replace(/\s+/g," ");if(E=o[E.toLowerCase()],!E){const d=f[0].charAt(0);return{type:"text",raw:d,text:d}}return d0e(f,E,f[0],this.lexer)}}emStrong(e,o,f=""){let E=this.rules.inline.emStrong.lDelim.exec(e);if(!E||E[3]&&f.match(/[\p{L}\p{N}]/u))return;if(!(E[1]||E[2]||"")||!f||this.rules.inline.punctuation.exec(f)){const s=[...E[0]].length-1;let n,u,b=s,i=0;const S=E[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(S.lastIndex=0,o=o.slice(-1*e.length+s);(E=S.exec(o))!=null;){if(n=E[1]||E[2]||E[3]||E[4]||E[5]||E[6],!n)continue;if(u=[...n].length,E[3]||E[4]){b+=u;continue}else if((E[5]||E[6])&&s%3&&!((s+u)%3)){i+=u;continue}if(b-=u,b>0)continue;u=Math.min(u,u+b+i);const w=[...E[0]][0].length,y=e.slice(0,s+E.index+w+u);if(Math.min(s,u)%2){const a=y.slice(1,-1);return{type:"em",raw:y,text:a,tokens:this.lexer.inlineTokens(a)}}const m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const o=this.rules.inline.code.exec(e);if(o){let f=o[2].replace(/\n/g," ");const E=/[^ ]/.test(f),d=/^ /.test(f)&&/ $/.test(f);return E&&d&&(f=f.substring(1,f.length-1)),f=qv(f,!0),{type:"codespan",raw:o[0],text:f}}}br(e){const o=this.rules.inline.br.exec(e);if(o)return{type:"br",raw:o[0]}}del(e){const o=this.rules.inline.del.exec(e);if(o)return{type:"del",raw:o[0],text:o[2],tokens:this.lexer.inlineTokens(o[2])}}autolink(e){const o=this.rules.inline.autolink.exec(e);if(o){let f,E;return o[2]==="@"?(f=qv(o[1]),E="mailto:"+f):(f=qv(o[1]),E=f),{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}url(e){let o;if(o=this.rules.inline.url.exec(e)){let f,E;if(o[2]==="@")f=qv(o[0]),E="mailto:"+f;else{let d;do d=o[0],o[0]=this.rules.inline._backpedal.exec(o[0])[0];while(d!==o[0]);f=qv(o[0]),o[1]==="www."?E="http://"+o[0]:E=o[0]}return{type:"link",raw:o[0],text:f,href:E,tokens:[{type:"text",raw:f,text:f}]}}}inlineText(e){const o=this.rules.inline.text.exec(e);if(o){let f;return this.lexer.state.inRawBlock?f=o[0]:f=qv(o[0]),{type:"text",raw:o[0],text:f}}}}const qs={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:xZ,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};qs._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;qs._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;qs.def=vf(qs.def).replace("label",qs._label).replace("title",qs._title).getRegex();qs.bullet=/(?:[*+-]|\d{1,9}[.)])/;qs.listItemStart=vf(/^( *)(bull) */).replace("bull",qs.bullet).getRegex();qs.list=vf(qs.list).replace(/bull/g,qs.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qs.def.source+")").getRegex();qs._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";qs._comment=/|$)/;qs.html=vf(qs.html,"i").replace("comment",qs._comment).replace("tag",qs._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();qs.lheading=vf(qs.lheading).replace(/bull/g,qs.bullet).getRegex();qs.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.blockquote=vf(qs.blockquote).replace("paragraph",qs.paragraph).getRegex();qs.normal={...qs};qs.gfm={...qs.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};qs.gfm.table=vf(qs.gfm.table).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.gfm.paragraph=vf(qs._paragraph).replace("hr",qs.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",qs._tag).getRegex();qs.pedantic={...qs.normal,html:vf(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qs._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xZ,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vf(qs.normal._paragraph).replace("hr",qs.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",qs.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ha={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xZ,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:xZ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Ha.punctuation=vf(Ha.punctuation,"u").replace(/punctuation/g,Ha._punctuation).getRegex();Ha.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Ha.anyPunctuation=/\\[punct]/g;Ha._escapes=/\\([punct])/g;Ha._comment=vf(qs._comment).replace("(?:-->|$)","-->").getRegex();Ha.emStrong.lDelim=vf(Ha.emStrong.lDelim,"u").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimAst=vf(Ha.emStrong.rDelimAst,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.emStrong.rDelimUnd=vf(Ha.emStrong.rDelimUnd,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha.anyPunctuation=vf(Ha.anyPunctuation,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._escapes=vf(Ha._escapes,"gu").replace(/punct/g,Ha._punctuation).getRegex();Ha._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Ha._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])?)+(?![-_])/;Ha.autolink=vf(Ha.autolink).replace("scheme",Ha._scheme).replace("email",Ha._email).getRegex();Ha._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Ha.tag=vf(Ha.tag).replace("comment",Ha._comment).replace("attribute",Ha._attribute).getRegex();Ha._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Ha._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Ha._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Ha.link=vf(Ha.link).replace("label",Ha._label).replace("href",Ha._href).replace("title",Ha._title).getRegex();Ha.reflink=vf(Ha.reflink).replace("label",Ha._label).replace("ref",qs._label).getRegex();Ha.nolink=vf(Ha.nolink).replace("ref",qs._label).getRegex();Ha.reflinkSearch=vf(Ha.reflinkSearch,"g").replace("reflink",Ha.reflink).replace("nolink",Ha.nolink).getRegex();Ha.normal={...Ha};Ha.pedantic={...Ha.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:vf(/^!?\[(label)\]\((.*?)\)/).replace("label",Ha._label).getRegex(),reflink:vf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ha._label).getRegex()};Ha.gfm={...Ha.normal,escape:vf(Ha.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]*?(?:(?=[\\u+" ".repeat(b.length));let f,E,d,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>(f=n.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.space(e)){e=e.substring(f.raw.length),f.raw.length===1&&o.length>0?o[o.length-1].raw+=` `:o.push(f);continue}if(f=this.tokenizer.code(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&(E.type==="paragraph"||E.type==="text")?(E.raw+=` `+f.raw,E.text+=` @@ -3628,7 +3628,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `+f.raw,E.text+=` `+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f),s=d.length!==e.length,e=e.substring(f.raw.length);continue}if(f=this.tokenizer.text(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&E.type==="text"?(E.raw+=` `+f.raw,E.text+=` -`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,E,d,s=e,n,u,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(b=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,s,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const S=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},S),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),u=!0,E=o[o.length-1],E&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class _Z{constructor(e){pu(this,"options");this.options=e||hC}code(e,o,f){var d;const E=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` +`+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=E.text):o.push(f);continue}if(e){const n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,o}inline(e,o=[]){return this.inlineQueue.push({src:e,tokens:o}),o}inlineTokens(e,o=[]){let f,E,d,s=e,n,u,b;if(this.tokens.links){const i=Object.keys(this.tokens.links);if(i.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)i.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(b=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(i=>(f=i.call({lexer:this},e,o))?(e=e.substring(f.raw.length),o.push(f),!0):!1))){if(f=this.tokenizer.escape(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.tag(e)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.link(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(f.raw.length),E=o[o.length-1],E&&f.type==="text"&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(f=this.tokenizer.emStrong(e,s,b)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.codespan(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.br(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.del(e)){e=e.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.autolink(e)){e=e.substring(f.raw.length),o.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(e))){e=e.substring(f.raw.length),o.push(f);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let i=1/0;const S=e.slice(1);let w;this.options.extensions.startInline.forEach(y=>{w=y.call({lexer:this},S),typeof w=="number"&&w>=0&&(i=Math.min(i,w))}),i<1/0&&i>=0&&(d=e.substring(0,i+1))}if(f=this.tokenizer.inlineText(d)){e=e.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(b=f.raw.slice(-1)),u=!0,E=o[o.length-1],E&&E.type==="text"?(E.raw+=f.raw,E.text+=f.text):o.push(f);continue}if(e){const i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return o}}class wZ{constructor(e){pu(this,"options");this.options=e||pC}code(e,o,f){var d;const E=(d=(o||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` `,E?'
    '+(f?e:qv(e,!0))+`
    `:"
    "+(f?e:qv(e,!0))+`
    `}blockquote(e){return`
    @@ -3646,32 +3646,32 @@ ${e}
    `}tablerow(e){return` ${e} `}tablecell(e,o){const f=o.header?"th":"td";return(o.align?`<${f} align="${o.align}">`:`<${f}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,o,f){const E=l0e(e);if(E===null)return f;e=E;let d='",d}image(e,o,f){const E=l0e(e);if(E===null)return f;e=E;let d=`${f}0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=c+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=c+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:c+" "}):a+=c+" "}a+=this.parse(w.tokens,b),i+=this.renderer.listitem(a,m,!!y)}f+=this.renderer.list(i,n,u);continue}case"html":{const s=d;f+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=d;f+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=d,n=s.tokens?this.parseInline(s.tokens):s.text;for(;E+1{f=f.concat(this.walkTokens(n[u],o))}):n.tokens&&(f=f.concat(this.walkTokens(n.tokens,o)))}}return f}use(...e){const o=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(f=>{const E={...f};if(E.async=this.defaults.async||E.async||!1,f.extensions&&(f.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const s=o.renderers[d.name];s?o.renderers[d.name]=function(...n){let u=d.renderer.apply(this,n);return u===!1&&(u=s.apply(this,n)),u}:o.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=o[d.level];s?s.unshift(d.tokenizer):o[d.level]=[d.tokenizer],d.start&&(d.level==="block"?o.startBlock?o.startBlock.push(d.start):o.startBlock=[d.start]:d.level==="inline"&&(o.startInline?o.startInline.push(d.start):o.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(o.childTokens[d.name]=d.childTokens)}),E.extensions=o),f.renderer){const d=this.defaults.renderer||new _Z(this.defaults);for(const s in f.renderer){const n=f.renderer[s],u=s,b=d[u];d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S||""}}E.renderer=d}if(f.tokenizer){const d=this.defaults.tokenizer||new xZ(this.defaults);for(const s in f.tokenizer){const n=f.tokenizer[s],u=s,b=d[u];d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S}}E.tokenizer=d}if(f.hooks){const d=this.defaults.hooks||new uI;for(const s in f.hooks){const n=f.hooks[s],u=s,b=d[u];uI.passThroughHooks.has(s)?d[u]=i=>{if(this.defaults.async)return Promise.resolve(n.call(d,i)).then(w=>b.call(d,w));const S=n.call(d,i);return b.call(d,S)}:d[u]=(...i)=>{let S=n.apply(d,i);return S===!1&&(S=b.apply(d,i)),S}}E.hooks=d}if(f.walkTokens){const d=this.defaults.walkTokens,s=f.walkTokens;E.walkTokens=function(n){let u=[];return u.push(s.call(this,n)),d&&(u=u.concat(d.call(this,n))),u}}this.defaults={...this.defaults,...E}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,o){return O_.lex(e,o??this.defaults)}parser(e,o){return S_.parse(e,o??this.defaults)}}tD=new WeakSet,ple=function(e,o){return(f,E)=>{const d={...E},s={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const n=fQ(this,AZ,Ewe).call(this,!!s.silent,!!s.async);if(typeof f>"u"||f===null)return n(new Error("marked(): input parameter is undefined or null"));if(typeof f!="string")return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(f)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(f):f).then(u=>e(u,s)).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>o(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(n);try{s.hooks&&(f=s.hooks.preprocess(f));const u=e(f,s);s.walkTokens&&this.walkTokens(u,s.walkTokens);let b=o(u,s);return s.hooks&&(b=s.hooks.postprocess(b)),b}catch(u){return n(u)}}},AZ=new WeakSet,Ewe=function(e,o){return f=>{if(f.message+=` -Please report this to https://github.com/markedjs/marked.`,e){const E="

    An error occurred:

    "+qv(f.message+"",!0)+"
    ";return o?Promise.resolve(E):E}if(o)return Promise.reject(f);throw f}};const GT=new Kze;function Bf(t,e){return GT.parse(t,e)}Bf.options=Bf.setOptions=function(t){return GT.setOptions(t),Bf.defaults=GT.defaults,Cwe(Bf.defaults),Bf};Bf.getDefaults=que;Bf.defaults=hC;Bf.use=function(...t){return GT.use(...t),Bf.defaults=GT.defaults,Cwe(Bf.defaults),Bf};Bf.walkTokens=function(t,e){return GT.walkTokens(t,e)};Bf.parseInline=GT.parseInline;Bf.Parser=S_;Bf.parser=S_.parse;Bf.Renderer=_Z;Bf.TextRenderer=Wue;Bf.Lexer=O_;Bf.lexer=O_.lex;Bf.Tokenizer=xZ;Bf.Hooks=uI;Bf.parse=Bf;Bf.options;Bf.setOptions;Bf.use;Bf.walkTokens;Bf.parseInline;S_.parse;O_.lex;class wZ{static create(e,o,f,E,d){let s=E+(E<<8)+e+(o<<4)|0;return new wZ(e,o,f,s,d,[],[])}constructor(e,o,f,E,d,s,n){this.type=e,this.value=o,this.from=f,this.hash=E,this.end=d,this.children=s,this.positions=n,this.hashProp=[[Zl.contextHash,E]]}addChild(e,o){e.prop(Zl.contextHash)!=this.hash&&(e=new gf(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(o)}toTree(e,o=this.end){let f=this.children.length-1;return f>=0&&(o=Math.max(o,this.positions[f]+this.children[f].length+this.from)),new gf(e.types[this.type],this.children,this.positions,o-this.from).balance({makeTree:(E,d,s)=>new gf(Jp.none,E,d,s,this.hashProp)})}}var xa;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(xa||(xa={}));class Jze{constructor(e,o){this.start=e,this.content=o,this.marks=[],this.parsers=[]}}class eNe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return fI(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,o=0,f=0){for(let E=o;E=e.stack[o.depth+1].value+o.baseIndent)return!0;if(o.indent>=o.baseIndent+4)return!1;let f=(t.type==xa.OrderedList?Gue:Xue)(o,e,!1);return f>0&&(t.type!=xa.BulletList||Yue(o,e,!1)<0)&&o.text.charCodeAt(o.pos+f-1)==t.value}const Pwe={[xa.Blockquote](t,e,o){return o.next!=62?!1:(o.markers.push(Ju(xa.QuoteMark,e.lineStart+o.pos,e.lineStart+o.pos+1)),o.moveBase(o.pos+(fb(o.text.charCodeAt(o.pos+1))?2:1)),t.end=e.lineStart+o.text.length,!0)},[xa.ListItem](t,e,o){return o.indent-1?!1:(o.moveBaseColumn(o.baseIndent+t.value),!0)},[xa.OrderedList]:f0e,[xa.BulletList]:f0e,[xa.Document](){return!0}};function fb(t){return t==32||t==9||t==10||t==13}function fI(t,e=0){for(;eo&&fb(t.charCodeAt(e-1));)e--;return e}function Rwe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||f<3?-1:1}function Iwe(t,e){for(let o=t.stack.length-1;o>=0;o--)if(t.stack[o].type==e)return!0;return!1}function Xue(t,e,o){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||fb(t.text.charCodeAt(t.pos+1)))&&(!o||Iwe(e,xa.BulletList)||t.skipSpace(t.pos+2)=48&&E<=57;){f++;if(f==t.text.length)return-1;E=t.text.charCodeAt(f)}return f==t.pos||f>t.pos+9||E!=46&&E!=41||ft.pos+1||t.next!=49)?-1:f+1-t.pos}function Dwe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:o}function Bwe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,Nwe=/\?>/,gle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,$we=/\?>/,vle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(f);if(d)return t.append(Ju(xa.Comment,o,o+1+d[0].length));let s=/^\?[^]*?\?>/.exec(f);if(s)return t.append(Ju(xa.ProcessingInstruction,o,o+1+s[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(Ju(xa.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let E=t.slice(o-1,o),d=t.slice(f,f+1),s=KI.test(E),n=KI.test(d),u=/\s|^$/.test(E),b=/\s|^$/.test(d),i=!b&&(!n||u||s),S=!u&&(!s||b||n),w=i&&(e==42||!S||s),y=S&&(e==42||!i||n);return t.append(new bx(e==95?Qwe:Hwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(Ju(xa.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(Ju(xa.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new bx(NL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new bx(p0e,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let E=t.parts[f];if(E instanceof bx&&(E.type==NL||E.type==p0e)){if(!E.side||t.skipSpace(E.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),s=t.parts[f]=sNe(t,d,E.type==NL?xa.Link:xa.Image,E.from,o+1);if(E.type==NL)for(let n=0;ne?Ju(xa.URL,e+o,d+o):d==t.length?null:!1}}function qwe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let E=f==40?41:f;for(let d=e+1,s=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,E,d){return this.append(new bx(e,o,f,(E?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;u--){let a=this.parts[u];if(a instanceof bx&&a.side&1&&a.type==E.type&&!(d&&(E.side&1||a.side&2)&&(a.to-a.from+s)%3==0&&((a.to-a.from)%3||s%3))){n=a;break}}if(!n)continue;let b=E.type.resolve,i=[],S=n.from,w=E.to;if(d){let a=Math.min(2,n.to-n.from,s);S=n.to-a,w=E.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,S,n.to));for(let a=u+1;a=0;o--){let f=this.parts[o];if(f instanceof bx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return fI(this.text,e-this.offset)+this.offset}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new jwe(e,o)}}function yle(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let E of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` -`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let E=e+this.fragment.offset;for(;f.to<=E;)if(!f.parent())return!1;for(;;){if(f.from>=E)return this.fragment.from<=o;if(!f.childAfter(E))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(Zl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,E=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,s=d,n=e.block.children.length,u=s,b=n;for(;;){if(o.to-f>E){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Ywe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let S=new gf(e.parser.nodeSet.types[xa.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(S,o.tree),e.addNode(S,i)}if(o.type.is("Block")&&(cNe.indexOf(o.type.id)<0?(s=o.to-f,n=e.block.children.length):(s=u,n=b,u=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return s-d}}function Ywe(t,e){let o=t;for(let f=1;fXQ[t]),Object.keys(XQ).map(t=>rNe[t]),Object.keys(XQ),oNe,Pwe,Object.keys(dae).map(t=>dae[t]),Object.keys(dae),[]);function hNe(t,e,o){let f=[];for(let E=t.firstChild,d=e;;E=E.nextSibling){let s=E?E.from:o;if(s>d&&f.push({from:d,to:s}),!E)break;d=E.to}return f}function pNe(t){let{codeParser:e,htmlParser:o}=t;return{wrap:Obe((E,d)=>{let s=E.type.id;if(e&&(s==xa.CodeBlock||s==xa.FencedCode)){let n="";if(s==xa.FencedCode){let b=E.node.getChild(xa.CodeInfo);b&&(n=d.read(b.from,b.to))}let u=e(n);if(u)return{parser:u,overlay:b=>b.type.id==xa.CodeText}}else if(o&&(s==xa.HTMLBlock||s==xa.HTMLTag))return{parser:o,overlay:hNe(E.node,E.from,E.to)};return null})}}const mNe={resolve:"Strikethrough",mark:"StrikethroughMark"},gNe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hr.strikethrough}},{name:"StrikethroughMark",style:hr.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),E=t.slice(o+2,o+3),d=/\s|^$/.test(f),s=/\s|^$/.test(E),n=KI.test(f),u=KI.test(E);return t.addDelimiter(mNe,o,o+2,!s&&(!u||d||n),!d&&(!n||s||u))},after:"Emphasis"}]};function dI(t,e,o=0,f,E=0){let d=0,s=!0,n=-1,u=-1,b=!1,i=()=>{f.push(t.elt("TableCell",E+n,E+u,t.parser.parseInline(e.slice(n,u),E+n)))};for(let S=o;S-1)&&d++,s=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",S+E,S+E+1))),n=u=-1):(b||w!=32&&w!=9)&&(n<0&&(n=S),u=S+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function g0e(t,e){for(let o=e;oE instanceof v0e)||!g0e(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Xwe.test(f)&&dI(t,e.text,e.basePos)==dI(t,f,e.basePos)},before:"SetextHeading"}]};class yNe{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const bNe={defineNodes:[{name:"Task",block:!0,style:hr.list},{name:"TaskMarker",style:hr.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new yNe:null},after:"SetextHeading"}]},y0e=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,b0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,xNe=/[\w-]+\.[\w-]+($|\/)/,x0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,_0e=/\/[a-zA-Z\d@.]+/gy;function w0e(t,e,o,f){let E=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let E=t[f-1],d;if(/[?!.,:*_~]/.test(E)||E==")"&&w0e(t,e,f,")")>w0e(t,e,f,"("))f--;else if(E==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function O0e(t,e){x0e.lastIndex=e;let o=x0e.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const wNe={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;y0e.lastIndex=f;let E=y0e.exec(t.text),d=-1;return!E||(E[1]||E[2]?d=_Ne(t.text,f+E[0].length):E[3]?d=O0e(t.text,f):(d=O0e(t.text,f+E[0].length),d>-1&&E[0]=="xmpp:"&&(_0e.lastIndex=d,E=_0e.exec(t.text),E&&(d=E.index+E[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},ONe=[vNe,bNe,gNe,wNe];function Gwe(t,e,o){return(f,E,d)=>{if(E!=t||f.char(d+1)==t)return-1;let s=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function iOe(t){return t==9||t==10||t==13||t==32}let C0e=null,A0e=null,M0e=0;function xle(t,e){let o=t.pos+e;if(M0e==o&&A0e==t)return C0e;let f=t.peek(e);for(;iOe(f);)f=t.peek(++e);let E="";for(;YNe(f);)E+=String.fromCharCode(f),f=t.peek(++e);return A0e=t,M0e=o,C0e=E?E.toLowerCase():f==XNe||f==GNe?void 0:null}const aOe=60,SZ=62,Kue=47,XNe=63,GNe=33,KNe=45;function E0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new E0e(xle(f,1)||"",t):t},reduce(t,e){return e==nOe&&t?t.parent:t},reuse(t,e,o,f){let E=e.type.id;return E==OZ||E==jNe?new E0e(xle(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),tFe=new Y0((t,e)=>{if(t.next!=aOe){t.next<0&&e.context&&t.acceptToken(hae);return}t.advance();let o=t.next==Kue;o&&t.advance();let f=xle(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?zNe:OZ);let E=e.context?e.context.name:null;if(o){if(f==E)return t.acceptToken(INe);if(E&&WNe[E])return t.acceptToken(hae,-2);if(e.dialectEnabled(HNe))return t.acceptToken(DNe);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(BNe)}else{if(f=="script")return t.acceptToken(Kwe);if(f=="style")return t.acceptToken(Jwe);if(f=="textarea")return t.acceptToken(eOe);if(qNe.hasOwnProperty(f))return t.acceptToken(tOe);E&&T0e[E]&&T0e[E][f]?t.acceptToken(hae,-1):t.acceptToken(OZ)}},{contextual:!0}),nFe=new Y0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(k0e);break}if(t.next==KNe)e++;else if(t.next==SZ&&e>=2){o>=3&&t.acceptToken(k0e,-2);break}else e=0;t.advance()}});function rFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const oFe=new Y0((t,e)=>{if(t.next==Kue&&t.peek(1)==SZ){let o=e.dialectEnabled(ZNe)||rFe(e.context);t.acceptToken(o?LNe:S0e,2)}else t.next==SZ&&t.acceptToken(S0e,1)});function Jue(t,e,o){let f=2+t.length;return new Y0(E=>{for(let d=0,s=0,n=0;;n++){if(E.next<0){n&&E.acceptToken(e);break}if(d==0&&E.next==aOe||d==1&&E.next==Kue||d>=2&&ds?E.acceptToken(e,-s):E.acceptToken(o,-(s-2));break}else if((E.next==10||E.next==13)&&n){E.acceptToken(e,1);break}else d=s=0;E.advance()}})}const iFe=Jue("script",CNe,ANe),aFe=Jue("style",MNe,ENe),sFe=Jue("textarea",PNe,RNe),lFe=M4({"Text RawText":hr.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":hr.angleBracket,TagName:hr.tagName,"MismatchedCloseTag/TagName":[hr.tagName,hr.invalid],AttributeName:hr.attributeName,"AttributeValue UnquotedAttributeValue":hr.attributeValue,Is:hr.definitionOperator,"EntityReference CharacterReference":hr.character,Comment:hr.blockComment,ProcessingInst:hr.processingInstruction,DoctypeDecl:hr.documentMeta}),cFe=k4.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:eFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[lFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==$Ne)return pae(n,u,o);if(b==VNe)return pae(n,u,f);if(b==UNe)return pae(n,u,E);if(b==nOe&&d.length){let i=n.node,S=i.firstChild,w=S&&P0e(S,u),y;if(w){for(let m of d)if(m.tag==w&&(!m.attrs||m.attrs(y||(y=sOe(i,u))))){let a=i.lastChild,c=a.type.id==QNe?a.from:i.to;if(c>S.to)return{parser:m.parser,overlay:[{from:S.to,to:c}]}}}}if(s&&b==rOe){let i=n.node,S;if(S=i.firstChild){let w=s[u.read(S.from,S.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=P0e(i.parent,u))continue;let m=i.lastChild;if(m.type.id==ble){let a=m.from+1,c=m.lastChild,h=m.to-(c&&c.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(m.type.id==oOe)return{parser:y.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const uFe=96,R0e=1,fFe=97,dFe=98,L0e=2,cOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],hFe=58,pFe=40,uOe=95,mFe=91,_H=45,gFe=46,vFe=35,yFe=37,bFe=38,xFe=92,_Fe=10;function kZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function wFe(t){return t>=48&&t<=57}const OFe=new Y0((t,e)=>{for(let o=!1,f=0,E=0;;E++){let{next:d}=t;if(kZ(d)||d==_H||d==uOe||o&&wFe(d))!o&&(d!=_H||E>0)&&(o=!0),f===E&&d==_H&&f++,t.advance();else if(d==xFe&&t.peek(1)!=_Fe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==pFe?fFe:f==2&&e.canShift(L0e)?L0e:dFe);break}}}),SFe=new Y0(t=>{if(cOe.includes(t.peek(-1))){let{next:e}=t;(kZ(e)||e==uOe||e==vFe||e==gFe||e==mFe||e==hFe||e==_H||e==bFe)&&t.acceptToken(uFe)}}),kFe=new Y0(t=>{if(!cOe.includes(t.peek(-1))){let{next:e}=t;if(e==yFe&&(t.advance(),t.acceptToken(R0e)),kZ(e)){do t.advance();while(kZ(t.next));t.acceptToken(R0e)}}}),TFe=M4({"AtKeyword import charset namespace keyframes media supports":hr.definitionKeyword,"from to selector":hr.keyword,NamespaceName:hr.namespace,KeyframeName:hr.labelName,KeyframeRangeName:hr.operatorKeyword,TagName:hr.tagName,ClassName:hr.className,PseudoClassName:hr.constant(hr.className),IdName:hr.labelName,"FeatureName PropertyName":hr.propertyName,AttributeName:hr.attributeName,NumberLiteral:hr.number,KeywordQuery:hr.keyword,UnaryQueryOp:hr.operatorKeyword,"CallTag ValueName":hr.atom,VariableName:hr.variableName,Callee:hr.operatorKeyword,Unit:hr.unit,"UniversalSelector NestingSelector":hr.definitionOperator,MatchOp:hr.compareOperator,"ChildOp SiblingOp, LogicOp":hr.logicOperator,BinOp:hr.arithmeticOperator,Important:hr.modifier,Comment:hr.blockComment,ColorLiteral:hr.color,"ParenthesizedContent StringLiteral":hr.string,":":hr.punctuation,"PseudoOp #":hr.derefOperator,"; ,":hr.separator,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace}),CFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},AFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},MFe={__proto__:null,not:128,only:128},EFe=k4.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[SFe,kFe,OFe,1,2,3,4,new oZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>CFe[t]||-1},{term:56,get:t=>AFe[t]||-1},{term:98,get:t=>MFe[t]||-1}],tokenPrec:1169});let mae=null;function gae(){if(!mae&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,E=>"-"+E.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));mae=e.sort().map(f=>({type:"property",label:f}))}return mae||[]}const I0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),D0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(t=>({type:"keyword",label:t})).concat(["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"].map(t=>({type:"constant",label:t}))),PFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),KS=/^(\w[\w-]*|-\w[\w-]*|)$/,RFe=/^-(-[\w-]*)?$/;function LFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const B0e=new Lce,IFe=["Declaration"];function DFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function fOe(t,e,o){if(e.to-e.from>4096){let f=B0e.get(e);if(f)return f;let E=[],d=new Set,s=e.cursor(pd.IncludeAnonymous);if(s.firstChild())do for(let n of fOe(t,s.node,o))d.has(n.label)||(d.add(n.label),E.push(n));while(s.nextSibling());return B0e.set(e,E),E}else{let f=[],E=new Set;return e.cursor().iterate(d=>{var s;if(o(d)&&d.matchContext(IFe)&&((s=d.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=t.sliceString(d.from,d.to);E.has(n)||(E.add(n),f.push({label:n,type:"variable"}))}}),f}}const BFe=t=>e=>{let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.type.isError&&E.from==E.to-1&&o.doc.sliceString(E.from,E.to)=="-";if(E.name=="PropertyName"||(d||E.name=="TagName")&&/^(Block|Styles)$/.test(E.resolve(E.to).name))return{from:E.from,options:gae(),validFor:KS};if(E.name=="ValueName")return{from:E.from,options:D0e,validFor:KS};if(E.name=="PseudoClassName")return{from:E.from,options:I0e,validFor:KS};if(t(E)||(e.explicit||d)&&LFe(E,o.doc))return{from:t(E)||d?E.from:f,options:fOe(o.doc,DFe(E),t),validFor:RFe};if(E.name=="TagName"){for(let{parent:u}=E;u;u=u.parent)if(u.name=="Block")return{from:E.from,options:gae(),validFor:KS};return{from:E.from,options:PFe,validFor:KS}}if(!e.explicit)return null;let s=E.resolve(f),n=s.childBefore(f);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:f,options:I0e,validFor:KS}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:f,options:D0e,validFor:KS}:s.name=="Block"||s.name=="Styles"?{from:f,options:gae(),validFor:KS}:null},zFe=BFe(t=>t.name=="VariableName"),TZ=O4.define({name:"css",parser:EFe.configure({props:[tC.add({Declaration:lI()}),E4.add({"Block KeyframeList":Fce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function NFe(){return new WT(TZ,TZ.data.of({autocomplete:zFe}))}const FFe=304,z0e=1,$Fe=2,VFe=305,UFe=307,jFe=308,QFe=3,HFe=4,ZFe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],dOe=125,qFe=59,N0e=47,WFe=42,YFe=43,XFe=45,GFe=new nue({start:!1,shift(t,e){return e==QFe||e==HFe||e==UFe?t:e==jFe},strict:!1}),KFe=new Y0((t,e)=>{let{next:o}=t;(o==dOe||o==-1||e.context)&&t.acceptToken(VFe)},{contextual:!0,fallback:!0}),JFe=new Y0((t,e)=>{let{next:o}=t,f;ZFe.indexOf(o)>-1||o==N0e&&((f=t.peek(1))==N0e||f==WFe)||o!=dOe&&o!=qFe&&o!=-1&&!e.context&&t.acceptToken(FFe)},{contextual:!0}),e$e=new Y0((t,e)=>{let{next:o}=t;if((o==YFe||o==XFe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(z0e);t.acceptToken(f?z0e:$Fe)}},{contextual:!0}),t$e=M4({"get set async static":hr.modifier,"for while do if else switch try catch finally return throw break continue default case":hr.controlKeyword,"in of await yield void typeof delete instanceof":hr.operatorKeyword,"let var const using function class extends":hr.definitionKeyword,"import export from":hr.moduleKeyword,"with debugger as new":hr.keyword,TemplateString:hr.special(hr.string),super:hr.atom,BooleanLiteral:hr.bool,this:hr.self,null:hr.null,Star:hr.modifier,VariableName:hr.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hr.function(hr.variableName),VariableDefinition:hr.definition(hr.variableName),Label:hr.labelName,PropertyName:hr.propertyName,PrivatePropertyName:hr.special(hr.propertyName),"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),"FunctionDeclaration/VariableDefinition":hr.function(hr.definition(hr.variableName)),"ClassDeclaration/VariableDefinition":hr.definition(hr.className),PropertyDefinition:hr.definition(hr.propertyName),PrivatePropertyDefinition:hr.definition(hr.special(hr.propertyName)),UpdateOp:hr.updateOperator,"LineComment Hashbang":hr.lineComment,BlockComment:hr.blockComment,Number:hr.number,String:hr.string,Escape:hr.escape,ArithOp:hr.arithmeticOperator,LogicOp:hr.logicOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,RegExp:hr.regexp,Equals:hr.definitionOperator,Arrow:hr.function(hr.punctuation),": Spread":hr.punctuation,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,"InterpolationStart InterpolationEnd":hr.special(hr.brace),".":hr.derefOperator,", ;":hr.separator,"@":hr.meta,TypeName:hr.typeName,TypeDefinition:hr.definition(hr.typeName),"type enum interface implements namespace module declare":hr.definitionKeyword,"abstract global Privacy readonly override":hr.modifier,"is keyof unique infer":hr.operatorKeyword,JSXAttributeValue:hr.attributeValue,JSXText:hr.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hr.angleBracket,"JSXIdentifier JSXNameSpacedName":hr.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hr.attributeName,"JSXBuiltin/JSXIdentifier":hr.standard(hr.tagName)}),n$e={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},r$e={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},o$e={__proto__:null,"<":139},i$e=k4.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:GFe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[t$e],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#n$e[t]||-1},{term:330,get:t=>r$e[t]||-1},{term:68,get:t=>o$e[t]||-1}],tokenPrec:12868}),hOe=[Dh("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Dh("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Dh("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Dh("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Dh("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Dh(`try { +`);f=E<0?o:o.slice(0,E)}return e+f.length>this.to?f.slice(0,this.to-e):f}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,o,f=0){this.block=OZ.create(e,f,this.lineStart+o,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,o,f=0){this.startContext(this.parser.getNodeType(e),o,f)}addNode(e,o,f){typeof e=="number"&&(e=new gf(this.parser.nodeSet.types[e],bM,bM,(f??this.prevLineEnd())-o)),this.block.addChild(e,o-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,o){this.addNode(this.buffer.writeElements(ble(o.children,e.marks),-o.from).finish(o.type,o.to-o.from),o.from)}finishContext(){let e=this.stack.pop(),o=this.stack[this.stack.length-1];o.addChild(e.toTree(this.parser.nodeSet),e.from-o.from),this.block=o}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?Uwe(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let f of e.parsers)if(f.finish(this,e))return;let o=ble(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(o,-e.start).finish(xa.Paragraph,e.content.length),e.start)}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new Hwe(e,o)}get buffer(){return new Qwe(this.parser.nodeSet)}}function Uwe(t,e,o,f,E){let d=t[e].to,s=[],n=[],u=o.from+f;function b(i,S){for(;S?i>=d:i>d;){let w=t[e+1].from-d;f+=w,i+=w,e++,d=t[e].to}}for(let i=o.firstChild;i;i=i.nextSibling){b(i.from+f,!0);let S=i.from+f,w,y=E.get(i.tree);y?w=y:i.to+f>d?(w=Uwe(t,e,i,f,E),b(i.to+f,!1)):w=i.toTree(),s.push(w),n.push(S-u)}return b(o.to+f,!1),new gf(o.type,s,n,o.to+f-u,o.tree?o.tree.propValues:void 0)}class Fq extends Dce{constructor(e,o,f,E,d,s,n,u,b){super(),this.nodeSet=e,this.blockParsers=o,this.leafBlockParsers=f,this.blockNames=E,this.endLeafBlock=d,this.skipContextMarkup=s,this.inlineParsers=n,this.inlineNames=u,this.wrappers=b,this.nodeTypes=Object.create(null);for(let i of e.types)this.nodeTypes[i.name]=i.id}createParse(e,o,f){let E=new cNe(this,e,o,f);for(let d of this.wrappers)E=d(E,e,o,f);return E}configure(e){let o=yle(e);if(!o)return this;let{nodeSet:f,skipContextMarkup:E}=this,d=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),n=this.blockNames.slice(),u=this.inlineParsers.slice(),b=this.inlineNames.slice(),i=this.endLeafBlock.slice(),S=this.wrappers;if(zL(o.defineNodes)){E=Object.assign({},E);let w=f.types.slice(),y;for(let m of o.defineNodes){let{name:a,block:c,composite:h,style:p}=typeof m=="string"?{name:m}:m;if(w.some(O=>O.name==a))continue;h&&(E[w.length]=(O,C,x)=>h(C,x,O.value));let v=w.length,_=h?["Block","BlockContext"]:c?v>=xa.ATXHeading1&&v<=xa.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;w.push(Jp.define({id:v,name:a,props:_&&[[Zl.group,_]]})),p&&(y||(y={}),Array.isArray(p)||p instanceof yx?y[a]=p:Object.assign(y,p))}f=new hD(w),y&&(f=f.extend(M4(y)))}if(zL(o.props)&&(f=f.extend(...o.props)),zL(o.remove))for(let w of o.remove){let y=this.blockNames.indexOf(w),m=this.inlineNames.indexOf(w);y>-1&&(d[y]=s[y]=void 0),m>-1&&(u[m]=void 0)}if(zL(o.parseBlock))for(let w of o.parseBlock){let y=n.indexOf(w.name);if(y>-1)d[y]=w.parse,s[y]=w.leaf;else{let m=w.before?KQ(n,w.before):w.after?KQ(n,w.after)+1:n.length-1;d.splice(m,0,w.parse),s.splice(m,0,w.leaf),n.splice(m,0,w.name)}w.endLeaf&&i.push(w.endLeaf)}if(zL(o.parseInline))for(let w of o.parseInline){let y=b.indexOf(w.name);if(y>-1)u[y]=w.parse;else{let m=w.before?KQ(b,w.before):w.after?KQ(b,w.after)+1:b.length-1;u.splice(m,0,w.parse),b.splice(m,0,w.name)}}return o.wrap&&(S=S.concat(o.wrap)),new Fq(f,d,s,n,i,E,u,b,S)}getNodeType(e){let o=this.nodeTypes[e];if(o==null)throw new RangeError(`Unknown node type '${e}'`);return o}parseInline(e,o){let f=new fNe(this,e,o);e:for(let E=o;E=0){E=n;continue e}}E++}return f.resolveMarkers(0)}}function zL(t){return t!=null&&t.length>0}function yle(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=yle(t[0]);if(t.length==1)return e;let o=yle(t.slice(1));if(!o||!e)return e||o;let f=(s,n)=>(s||bM).concat(n||bM),E=e.wrap,d=o.wrap;return{props:f(e.props,o.props),defineNodes:f(e.defineNodes,o.defineNodes),parseBlock:f(e.parseBlock,o.parseBlock),parseInline:f(e.parseInline,o.parseInline),remove:f(e.remove,o.remove),wrap:E?d?(s,n,u,b)=>E(d(s,n,u,b),n,u,b):E:d}}function KQ(t,e){let o=t.indexOf(e);if(o<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return o}let jwe=[Jp.none];for(let t=1,e;e=xa[t];t++)jwe[t]=Jp.define({id:t,name:e,props:t>=xa.Escape?[]:[[Zl.group,t in Lwe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const bM=[];let Qwe=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,o,f,E=0){return this.content.push(e,o,f,4+E*4),this}writeElements(e,o=0){for(let f of e)f.writeTo(this,o);return this}finish(e,o){return gf.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:o})}},KI=class{constructor(e,o,f,E=bM){this.type=e,this.from=o,this.to=f,this.children=E}writeTo(e,o){let f=e.content.length;e.writeElements(this.children,o),e.content.push(this.type,this.from+o,this.to+o,e.content.length+4-f)}toTree(e){return new Qwe(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Hwe{constructor(e,o){this.tree=e,this.from=o}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return bM}writeTo(e,o){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+o,this.to+o,-1)}toTree(){return this.tree}}function Ju(t,e,o,f){return new KI(t,e,o,f)}const Zwe={resolve:"Emphasis",mark:"EmphasisMark"},qwe={resolve:"Emphasis",mark:"EmphasisMark"},NL={},g0e={};class bx{constructor(e,o,f,E){this.type=e,this.from=o,this.to=f,this.side=E}}const v0e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let JI=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{JI=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const hae={Escape(t,e,o){if(e!=92||o==t.end-1)return-1;let f=t.char(o+1);for(let E=0;E]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(f);if(E)return t.append(Ju(xa.URL,o,o+1+E[0].length));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(f);if(d)return t.append(Ju(xa.Comment,o,o+1+d[0].length));let s=/^\?[^]*?\?>/.exec(f);if(s)return t.append(Ju(xa.ProcessingInstruction,o,o+1+s[0].length));let n=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(f);return n?t.append(Ju(xa.HTMLTag,o,o+1+n[0].length)):-1},Emphasis(t,e,o){if(e!=95&&e!=42)return-1;let f=o+1;for(;t.char(f)==e;)f++;let E=t.slice(o-1,o),d=t.slice(f,f+1),s=JI.test(E),n=JI.test(d),u=/\s|^$/.test(E),b=/\s|^$/.test(d),i=!b&&(!n||u||s),S=!u&&(!s||b||n),w=i&&(e==42||!S||s),y=S&&(e==42||!i||n);return t.append(new bx(e==95?Zwe:qwe,o,f,(w?1:0)|(y?2:0)))},HardBreak(t,e,o){if(e==92&&t.char(o+1)==10)return t.append(Ju(xa.HardBreak,o,o+2));if(e==32){let f=o+1;for(;t.char(f)==32;)f++;if(t.char(f)==10&&f>=o+2)return t.append(Ju(xa.HardBreak,o,f+1))}return-1},Link(t,e,o){return e==91?t.append(new bx(NL,o,o+1,1)):-1},Image(t,e,o){return e==33&&t.char(o+1)==91?t.append(new bx(g0e,o,o+2,1)):-1},LinkEnd(t,e,o){if(e!=93)return-1;for(let f=t.parts.length-1;f>=0;f--){let E=t.parts[f];if(E instanceof bx&&(E.type==NL||E.type==g0e)){if(!E.side||t.skipSpace(E.to)==o&&!/[(\[]/.test(t.slice(o+1,o+2)))return t.parts[f]=null,-1;let d=t.takeContent(f),s=t.parts[f]=uNe(t,d,E.type==NL?xa.Link:xa.Image,E.from,o+1);if(E.type==NL)for(let n=0;ne?Ju(xa.URL,e+o,d+o):d==t.length?null:!1}}function Ywe(t,e,o){let f=t.charCodeAt(e);if(f!=39&&f!=34&&f!=40)return!1;let E=f==40?41:f;for(let d=e+1,s=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,o){return this.text.slice(e-this.offset,o-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,o,f,E,d){return this.append(new bx(e,o,f,(E?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let f=e;f=e;u--){let a=this.parts[u];if(a instanceof bx&&a.side&1&&a.type==E.type&&!(d&&(E.side&1||a.side&2)&&(a.to-a.from+s)%3==0&&((a.to-a.from)%3||s%3))){n=a;break}}if(!n)continue;let b=E.type.resolve,i=[],S=n.from,w=E.to;if(d){let a=Math.min(2,n.to-n.from,s);S=n.to-a,w=E.from+a,b=a==1?"Emphasis":"StrongEmphasis"}n.type.mark&&i.push(this.elt(n.type.mark,S,n.to));for(let a=u+1;a=0;o--){let f=this.parts[o];if(f instanceof bx&&f.type==e)return o}return null}takeContent(e){let o=this.resolveMarkers(e);return this.parts.length=e,o}skipSpace(e){return fI(this.text,e-this.offset)+this.offset}elt(e,o,f,E){return typeof e=="string"?Ju(this.parser.getNodeType(e),o,f,E):new Hwe(e,o)}}function ble(t,e){if(!e.length)return t;if(!t.length)return e;let o=t.slice(),f=0;for(let E of e){for(;f(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let f=this.cursor;f||(f=this.cursor=this.fragment.tree.cursor(),f.firstChild());let E=e+this.fragment.offset;for(;f.to<=E;)if(!f.parent())return!1;for(;;){if(f.from>=E)return this.fragment.from<=o;if(!f.childAfter(E))return!1}}matches(e){let o=this.cursor.tree;return o&&o.prop(Zl.contextHash)==e}takeNodes(e){let o=this.cursor,f=this.fragment.offset,E=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,s=d,n=e.block.children.length,u=s,b=n;for(;;){if(o.to-f>E){if(o.type.isAnonymous&&o.firstChild())continue;break}let i=Gwe(o.from-f,e.ranges);if(o.to-f<=e.ranges[e.rangeI].to)e.addNode(o.tree,i);else{let S=new gf(e.parser.nodeSet.types[xa.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(S,o.tree),e.addNode(S,i)}if(o.type.is("Block")&&(dNe.indexOf(o.type.id)<0?(s=o.to-f,n=e.block.children.length):(s=u,n=b,u=o.to-f,b=e.block.children.length)),!o.nextSibling())break}for(;e.block.children.length>n;)e.block.children.pop(),e.block.positions.pop();return s-d}}function Gwe(t,e){let o=t;for(let f=1;fGQ[t]),Object.keys(GQ).map(t=>aNe[t]),Object.keys(GQ),sNe,Lwe,Object.keys(hae).map(t=>hae[t]),Object.keys(hae),[]);function gNe(t,e,o){let f=[];for(let E=t.firstChild,d=e;;E=E.nextSibling){let s=E?E.from:o;if(s>d&&f.push({from:d,to:s}),!E)break;d=E.to}return f}function vNe(t){let{codeParser:e,htmlParser:o}=t;return{wrap:kbe((E,d)=>{let s=E.type.id;if(e&&(s==xa.CodeBlock||s==xa.FencedCode)){let n="";if(s==xa.FencedCode){let b=E.node.getChild(xa.CodeInfo);b&&(n=d.read(b.from,b.to))}let u=e(n);if(u)return{parser:u,overlay:b=>b.type.id==xa.CodeText}}else if(o&&(s==xa.HTMLBlock||s==xa.HTMLTag))return{parser:o,overlay:gNe(E.node,E.from,E.to)};return null})}}const yNe={resolve:"Strikethrough",mark:"StrikethroughMark"},bNe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":hr.strikethrough}},{name:"StrikethroughMark",style:hr.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,o){if(e!=126||t.char(o+1)!=126||t.char(o+2)==126)return-1;let f=t.slice(o-1,o),E=t.slice(o+2,o+3),d=/\s|^$/.test(f),s=/\s|^$/.test(E),n=JI.test(f),u=JI.test(E);return t.addDelimiter(yNe,o,o+2,!s&&(!u||d||n),!d&&(!n||s||u))},after:"Emphasis"}]};function dI(t,e,o=0,f,E=0){let d=0,s=!0,n=-1,u=-1,b=!1,i=()=>{f.push(t.elt("TableCell",E+n,E+u,t.parser.parseInline(e.slice(n,u),E+n)))};for(let S=o;S-1)&&d++,s=!1,f&&(n>-1&&i(),f.push(t.elt("TableDelimiter",S+E,S+E+1))),n=u=-1):(b||w!=32&&w!=9)&&(n<0&&(n=S),u=S+1),b=!b&&w==92}return n>-1&&(d++,f&&i()),d}function y0e(t,e){for(let o=e;oE instanceof b0e)||!y0e(e.text,e.basePos))return!1;let f=t.scanLine(t.absoluteLineEnd+1).text;return Kwe.test(f)&&dI(t,e.text,e.basePos)==dI(t,f,e.basePos)},before:"SetextHeading"}]};class _Ne{nextLine(){return!1}finish(e,o){return e.addLeafElement(o,e.elt("Task",o.start,o.start+o.content.length,[e.elt("TaskMarker",o.start,o.start+3),...e.parser.parseInline(o.content.slice(3),o.start+3)])),!0}}const wNe={defineNodes:[{name:"Task",block:!0,style:hr.list},{name:"TaskMarker",style:hr.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new _Ne:null},after:"SetextHeading"}]},x0e=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,_0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,ONe=/[\w-]+\.[\w-]+($|\/)/,w0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,O0e=/\/[a-zA-Z\d@.]+/gy;function S0e(t,e,o,f){let E=0;for(let d=e;d-1)return-1;let f=e+o[0].length;for(;;){let E=t[f-1],d;if(/[?!.,:*_~]/.test(E)||E==")"&&S0e(t,e,f,")")>S0e(t,e,f,"("))f--;else if(E==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,f))))f=e+d.index;else break}return f}function k0e(t,e){w0e.lastIndex=e;let o=w0e.exec(t);if(!o)return-1;let f=o[0][o[0].length-1];return f=="_"||f=="-"?-1:e+o[0].length-(f=="."?1:0)}const kNe={parseInline:[{name:"Autolink",parse(t,e,o){let f=o-t.offset;x0e.lastIndex=f;let E=x0e.exec(t.text),d=-1;return!E||(E[1]||E[2]?d=SNe(t.text,f+E[0].length):E[3]?d=k0e(t.text,f):(d=k0e(t.text,f+E[0].length),d>-1&&E[0]=="xmpp:"&&(O0e.lastIndex=d,E=O0e.exec(t.text),E&&(d=E.index+E[0].length))),d<0)?-1:(t.addElement(t.elt("URL",o,d+t.offset)),d+t.offset)}}]},TNe=[xNe,wNe,bNe,kNe];function Jwe(t,e,o){return(f,E,d)=>{if(E!=t||f.char(d+1)==t)return-1;let s=[f.elt(o,d,d+1)];for(let n=d+1;n=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function sOe(t){return t==9||t==10||t==13||t==32}let M0e=null,E0e=null,P0e=0;function _le(t,e){let o=t.pos+e;if(P0e==o&&E0e==t)return M0e;let f=t.peek(e);for(;sOe(f);)f=t.peek(++e);let E="";for(;KNe(f);)E+=String.fromCharCode(f),f=t.peek(++e);return E0e=t,P0e=o,M0e=E?E.toLowerCase():f==JNe||f==eFe?void 0:null}const lOe=60,kZ=62,efe=47,JNe=63,eFe=33,tFe=45;function R0e(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let o=0;o-1?new R0e(_le(f,1)||"",t):t},reduce(t,e){return e==oOe&&t?t.parent:t},reuse(t,e,o,f){let E=e.type.id;return E==SZ||E==ZNe?new R0e(_le(f,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),oFe=new Y0((t,e)=>{if(t.next!=lOe){t.next<0&&e.context&&t.acceptToken(pae);return}t.advance();let o=t.next==efe;o&&t.advance();let f=_le(t,0);if(f===void 0)return;if(!f)return t.acceptToken(o?$Ne:SZ);let E=e.context?e.context.name:null;if(o){if(f==E)return t.acceptToken(zNe);if(E&&GNe[E])return t.acceptToken(pae,-2);if(e.dialectEnabled(WNe))return t.acceptToken(NNe);for(let d=e.context;d;d=d.parent)if(d.name==f)return;t.acceptToken(FNe)}else{if(f=="script")return t.acceptToken(eOe);if(f=="style")return t.acceptToken(tOe);if(f=="textarea")return t.acceptToken(nOe);if(XNe.hasOwnProperty(f))return t.acceptToken(rOe);E&&A0e[E]&&A0e[E][f]?t.acceptToken(pae,-1):t.acceptToken(SZ)}},{contextual:!0}),iFe=new Y0(t=>{for(let e=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(C0e);break}if(t.next==tFe)e++;else if(t.next==kZ&&e>=2){o>=3&&t.acceptToken(C0e,-2);break}else e=0;t.advance()}});function aFe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const sFe=new Y0((t,e)=>{if(t.next==efe&&t.peek(1)==kZ){let o=e.dialectEnabled(YNe)||aFe(e.context);t.acceptToken(o?BNe:T0e,2)}else t.next==kZ&&t.acceptToken(T0e,1)});function tfe(t,e,o){let f=2+t.length;return new Y0(E=>{for(let d=0,s=0,n=0;;n++){if(E.next<0){n&&E.acceptToken(e);break}if(d==0&&E.next==lOe||d==1&&E.next==efe||d>=2&&ds?E.acceptToken(e,-s):E.acceptToken(o,-(s-2));break}else if((E.next==10||E.next==13)&&n){E.acceptToken(e,1);break}else d=s=0;E.advance()}})}const lFe=tfe("script",ENe,PNe),cFe=tfe("style",RNe,LNe),uFe=tfe("textarea",INe,DNe),fFe=M4({"Text RawText":hr.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":hr.angleBracket,TagName:hr.tagName,"MismatchedCloseTag/TagName":[hr.tagName,hr.invalid],AttributeName:hr.attributeName,"AttributeValue UnquotedAttributeValue":hr.attributeValue,Is:hr.definitionOperator,"EntityReference CharacterReference":hr.character,Comment:hr.blockComment,ProcessingInst:hr.processingInstruction,DoctypeDecl:hr.documentMeta}),dFe=k4.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:rFe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[fFe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let b=n.type.id;if(b==jNe)return mae(n,u,o);if(b==QNe)return mae(n,u,f);if(b==HNe)return mae(n,u,E);if(b==oOe&&d.length){let i=n.node,S=i.firstChild,w=S&&L0e(S,u),y;if(w){for(let m of d)if(m.tag==w&&(!m.attrs||m.attrs(y||(y=cOe(i,u))))){let a=i.lastChild,c=a.type.id==qNe?a.from:i.to;if(c>S.to)return{parser:m.parser,overlay:[{from:S.to,to:c}]}}}}if(s&&b==iOe){let i=n.node,S;if(S=i.firstChild){let w=s[u.read(S.from,S.to)];if(w)for(let y of w){if(y.tagName&&y.tagName!=L0e(i.parent,u))continue;let m=i.lastChild;if(m.type.id==xle){let a=m.from+1,c=m.lastChild,h=m.to-(c&&c.isError?0:1);if(h>a)return{parser:y.parser,overlay:[{from:a,to:h}]}}else if(m.type.id==aOe)return{parser:y.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const hFe=96,I0e=1,pFe=97,mFe=98,D0e=2,fOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],gFe=58,vFe=40,dOe=95,yFe=91,wH=45,bFe=46,xFe=35,_Fe=37,wFe=38,OFe=92,SFe=10;function TZ(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function kFe(t){return t>=48&&t<=57}const TFe=new Y0((t,e)=>{for(let o=!1,f=0,E=0;;E++){let{next:d}=t;if(TZ(d)||d==wH||d==dOe||o&&kFe(d))!o&&(d!=wH||E>0)&&(o=!0),f===E&&d==wH&&f++,t.advance();else if(d==OFe&&t.peek(1)!=SFe)t.advance(),t.next>-1&&t.advance(),o=!0;else{o&&t.acceptToken(d==vFe?pFe:f==2&&e.canShift(D0e)?D0e:mFe);break}}}),CFe=new Y0(t=>{if(fOe.includes(t.peek(-1))){let{next:e}=t;(TZ(e)||e==dOe||e==xFe||e==bFe||e==yFe||e==gFe||e==wH||e==wFe)&&t.acceptToken(hFe)}}),AFe=new Y0(t=>{if(!fOe.includes(t.peek(-1))){let{next:e}=t;if(e==_Fe&&(t.advance(),t.acceptToken(I0e)),TZ(e)){do t.advance();while(TZ(t.next));t.acceptToken(I0e)}}}),MFe=M4({"AtKeyword import charset namespace keyframes media supports":hr.definitionKeyword,"from to selector":hr.keyword,NamespaceName:hr.namespace,KeyframeName:hr.labelName,KeyframeRangeName:hr.operatorKeyword,TagName:hr.tagName,ClassName:hr.className,PseudoClassName:hr.constant(hr.className),IdName:hr.labelName,"FeatureName PropertyName":hr.propertyName,AttributeName:hr.attributeName,NumberLiteral:hr.number,KeywordQuery:hr.keyword,UnaryQueryOp:hr.operatorKeyword,"CallTag ValueName":hr.atom,VariableName:hr.variableName,Callee:hr.operatorKeyword,Unit:hr.unit,"UniversalSelector NestingSelector":hr.definitionOperator,MatchOp:hr.compareOperator,"ChildOp SiblingOp, LogicOp":hr.logicOperator,BinOp:hr.arithmeticOperator,Important:hr.modifier,Comment:hr.blockComment,ColorLiteral:hr.color,"ParenthesizedContent StringLiteral":hr.string,":":hr.punctuation,"PseudoOp #":hr.derefOperator,"; ,":hr.separator,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace}),EFe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},PFe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},RFe={__proto__:null,not:128,only:128},LFe=k4.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[CFe,AFe,TFe,1,2,3,4,new iZ("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>EFe[t]||-1},{term:56,get:t=>PFe[t]||-1},{term:98,get:t=>RFe[t]||-1}],tokenPrec:1169});let gae=null;function vae(){if(!gae&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],o=new Set;for(let f in t)f!="cssText"&&f!="cssFloat"&&typeof t[f]=="string"&&(/[A-Z]/.test(f)&&(f=f.replace(/[A-Z]/g,E=>"-"+E.toLowerCase())),o.has(f)||(e.push(f),o.add(f)));gae=e.sort().map(f=>({type:"property",label:f}))}return gae||[]}const B0e=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),z0e=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(t=>({type:"keyword",label:t})).concat(["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"].map(t=>({type:"constant",label:t}))),IFe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),KS=/^(\w[\w-]*|-\w[\w-]*|)$/,DFe=/^-(-[\w-]*)?$/;function BFe(t,e){var o;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let f=(o=t.parent)===null||o===void 0?void 0:o.firstChild;return(f==null?void 0:f.name)!="Callee"?!1:e.sliceString(f.from,f.to)=="var"}const N0e=new Ice,zFe=["Declaration"];function NFe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function hOe(t,e,o){if(e.to-e.from>4096){let f=N0e.get(e);if(f)return f;let E=[],d=new Set,s=e.cursor(pd.IncludeAnonymous);if(s.firstChild())do for(let n of hOe(t,s.node,o))d.has(n.label)||(d.add(n.label),E.push(n));while(s.nextSibling());return N0e.set(e,E),E}else{let f=[],E=new Set;return e.cursor().iterate(d=>{var s;if(o(d)&&d.matchContext(zFe)&&((s=d.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let n=t.sliceString(d.from,d.to);E.has(n)||(E.add(n),f.push({label:n,type:"variable"}))}}),f}}const FFe=t=>e=>{let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.type.isError&&E.from==E.to-1&&o.doc.sliceString(E.from,E.to)=="-";if(E.name=="PropertyName"||(d||E.name=="TagName")&&/^(Block|Styles)$/.test(E.resolve(E.to).name))return{from:E.from,options:vae(),validFor:KS};if(E.name=="ValueName")return{from:E.from,options:z0e,validFor:KS};if(E.name=="PseudoClassName")return{from:E.from,options:B0e,validFor:KS};if(t(E)||(e.explicit||d)&&BFe(E,o.doc))return{from:t(E)||d?E.from:f,options:hOe(o.doc,NFe(E),t),validFor:DFe};if(E.name=="TagName"){for(let{parent:u}=E;u;u=u.parent)if(u.name=="Block")return{from:E.from,options:vae(),validFor:KS};return{from:E.from,options:IFe,validFor:KS}}if(!e.explicit)return null;let s=E.resolve(f),n=s.childBefore(f);return n&&n.name==":"&&s.name=="PseudoClassSelector"?{from:f,options:B0e,validFor:KS}:n&&n.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:f,options:z0e,validFor:KS}:s.name=="Block"||s.name=="Styles"?{from:f,options:vae(),validFor:KS}:null},$Fe=FFe(t=>t.name=="VariableName"),CZ=O4.define({name:"css",parser:LFe.configure({props:[nC.add({Declaration:lI()}),E4.add({"Block KeyframeList":$ce})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function VFe(){return new YT(CZ,CZ.data.of({autocomplete:$Fe}))}const UFe=304,F0e=1,jFe=2,QFe=305,HFe=307,ZFe=308,qFe=3,WFe=4,YFe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],pOe=125,XFe=59,$0e=47,GFe=42,KFe=43,JFe=45,e$e=new oue({start:!1,shift(t,e){return e==qFe||e==WFe||e==HFe?t:e==ZFe},strict:!1}),t$e=new Y0((t,e)=>{let{next:o}=t;(o==pOe||o==-1||e.context)&&t.acceptToken(QFe)},{contextual:!0,fallback:!0}),n$e=new Y0((t,e)=>{let{next:o}=t,f;YFe.indexOf(o)>-1||o==$0e&&((f=t.peek(1))==$0e||f==GFe)||o!=pOe&&o!=XFe&&o!=-1&&!e.context&&t.acceptToken(UFe)},{contextual:!0}),r$e=new Y0((t,e)=>{let{next:o}=t;if((o==KFe||o==JFe)&&(t.advance(),o==t.next)){t.advance();let f=!e.context&&e.canShift(F0e);t.acceptToken(f?F0e:jFe)}},{contextual:!0}),o$e=M4({"get set async static":hr.modifier,"for while do if else switch try catch finally return throw break continue default case":hr.controlKeyword,"in of await yield void typeof delete instanceof":hr.operatorKeyword,"let var const using function class extends":hr.definitionKeyword,"import export from":hr.moduleKeyword,"with debugger as new":hr.keyword,TemplateString:hr.special(hr.string),super:hr.atom,BooleanLiteral:hr.bool,this:hr.self,null:hr.null,Star:hr.modifier,VariableName:hr.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":hr.function(hr.variableName),VariableDefinition:hr.definition(hr.variableName),Label:hr.labelName,PropertyName:hr.propertyName,PrivatePropertyName:hr.special(hr.propertyName),"CallExpression/MemberExpression/PropertyName":hr.function(hr.propertyName),"FunctionDeclaration/VariableDefinition":hr.function(hr.definition(hr.variableName)),"ClassDeclaration/VariableDefinition":hr.definition(hr.className),PropertyDefinition:hr.definition(hr.propertyName),PrivatePropertyDefinition:hr.definition(hr.special(hr.propertyName)),UpdateOp:hr.updateOperator,"LineComment Hashbang":hr.lineComment,BlockComment:hr.blockComment,Number:hr.number,String:hr.string,Escape:hr.escape,ArithOp:hr.arithmeticOperator,LogicOp:hr.logicOperator,BitOp:hr.bitwiseOperator,CompareOp:hr.compareOperator,RegExp:hr.regexp,Equals:hr.definitionOperator,Arrow:hr.function(hr.punctuation),": Spread":hr.punctuation,"( )":hr.paren,"[ ]":hr.squareBracket,"{ }":hr.brace,"InterpolationStart InterpolationEnd":hr.special(hr.brace),".":hr.derefOperator,", ;":hr.separator,"@":hr.meta,TypeName:hr.typeName,TypeDefinition:hr.definition(hr.typeName),"type enum interface implements namespace module declare":hr.definitionKeyword,"abstract global Privacy readonly override":hr.modifier,"is keyof unique infer":hr.operatorKeyword,JSXAttributeValue:hr.attributeValue,JSXText:hr.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":hr.angleBracket,"JSXIdentifier JSXNameSpacedName":hr.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":hr.attributeName,"JSXBuiltin/JSXIdentifier":hr.standard(hr.tagName)}),i$e={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},a$e={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},s$e={__proto__:null,"<":139},l$e=k4.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:e$e,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[o$e],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#i$e[t]||-1},{term:330,get:t=>a$e[t]||-1},{term:68,get:t=>s$e[t]||-1}],tokenPrec:12868}),mOe=[Bh("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Bh("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Bh("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Bh("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Bh("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Bh(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Dh("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Dh(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Bh("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Bh(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Dh(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Bh(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Dh('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Dh('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],a$e=hOe.concat([Dh("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Dh("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Dh("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),F0e=new Lce,pOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function FL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const s$e=["FunctionDeclaration"],l$e={FunctionDeclaration:FL("function"),ClassDeclaration:FL("class"),ClassExpression:()=>!0,EnumDeclaration:FL("constant"),TypeAliasDeclaration:FL("type"),NamespaceDeclaration:FL("namespace"),VariableDefinition(t,e){t.matchContext(s$e)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function mOe(t,e){let o=F0e.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(E)E=!1;else if(s.name){let n=l$e[s.name];if(n&&n(s,d)||pOe.has(s.name))return!1}else if(s.to-s.from>8192){for(let n of mOe(t,s.node))f.push(n);return!1}}),F0e.set(e,f),f}const $0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,gOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function c$e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(gOe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&$0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)pOe.has(E.name)&&(f=f.concat(mOe(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:$0e}}const T_=O4.define({name:"javascript",parser:i$e.configure({props:[tC.add({IfStatement:lI({except:/^\s*({|else\b)/}),TryStatement:lI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:o8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:mH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":lI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),E4.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Fce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),vOe={test:t=>/^JSX/.test(t.name),facet:Dce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},yOe=T_.configure({dialect:"ts"},"typescript"),bOe=T_.configure({dialect:"jsx",props:[Bce.add(t=>t.isTop?[vOe]:void 0)]}),xOe=T_.configure({dialect:"jsx ts",props:[Bce.add(t=>t.isTop?[vOe]:void 0)]},"typescript");let _Oe=t=>({label:t,type:"keyword"});const wOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(_Oe),u$e=wOe.concat(["declare","implements","private","protected","public"].map(_Oe));function f$e(t={}){let e=t.jsx?t.typescript?xOe:bOe:t.typescript?yOe:T_,o=t.typescript?a$e.concat(u$e):hOe.concat(wOe);return new WT(e,[T_.data.of({autocomplete:Yce(gOe,nq(o))}),T_.data.of({autocomplete:c$e}),t.jsx?p$e:[]])}function d$e(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function V0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const h$e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),p$e=Xa.inputHandler.of((t,e,o,f,E)=>{if((h$e?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!T_.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b;let{head:i}=u,S=Gf(s).resolveInner(i-1,-1),w;if(S.name=="JSXStartTag"&&(S=S.parent),!(s.doc.sliceString(i-1,i)!=f||S.name=="JSXAttributeValue"&&S.to>i)){if(f==">"&&S.name=="JSXFragmentTag")return{range:u,changes:{from:i,insert:""}};if(f=="/"&&S.name=="JSXStartCloseTag"){let y=S.parent,m=y.parent;if(m&&y.from==i-2&&((w=V0e(s.doc,m.firstChild,i))||((b=m.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:hi.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=d$e(S);if(y&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(w=V0e(s.doc,y,i)))return{range:u,changes:{from:i,insert:``}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),$L=["_blank","_self","_top","_parent"],vae=["ascii","utf-8","utf-16","latin1","latin1"],yae=["get","post","put","delete"],bae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qv=["true","false"],Rs={},m$e={a:{attrs:{href:null,ping:null,type:null,media:null,target:$L,hreflang:null}},abbr:Rs,address:Rs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Rs,aside:Rs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Rs,base:{attrs:{href:null,target:$L}},bdi:Rs,bdo:Rs,blockquote:{attrs:{cite:null}},body:Rs,br:Rs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:bae,formmethod:yae,formnovalidate:["novalidate"],formtarget:$L,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Rs,center:Rs,cite:Rs,code:Rs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Rs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Rs,div:Rs,dl:Rs,dt:Rs,em:Rs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Rs,figure:Rs,footer:Rs,form:{attrs:{action:null,name:null,"accept-charset":vae,autocomplete:["on","off"],enctype:bae,method:yae,novalidate:["novalidate"],target:$L}},h1:Rs,h2:Rs,h3:Rs,h4:Rs,h5:Rs,h6:Rs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Rs,hgroup:Rs,hr:Rs,html:{attrs:{manifest:null}},i:Rs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:bae,formmethod:yae,formnovalidate:["novalidate"],formtarget:$L,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Rs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Rs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Rs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:vae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Rs,noscript:Rs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Rs,param:{attrs:{name:null,value:null}},pre:Rs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Rs,rt:Rs,ruby:Rs,samp:Rs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:vae}},section:Rs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Rs,source:{attrs:{src:null,type:null,media:null}},span:Rs,strong:Rs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Rs,summary:Rs,sup:Rs,table:Rs,tbody:Rs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Rs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Rs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Rs,time:{attrs:{datetime:null}},title:Rs,tr:Rs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Rs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Rs},OOe={accesskey:null,class:null,contenteditable:Qv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qv,autocorrect:Qv,autocapitalize:Qv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qv,"aria-hidden":Qv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qv,"aria-multiselectable":Qv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qv,"aria-relevant":null,"aria-required":Qv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},SOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of SOe)OOe[t]=null;class JI{constructor(e,o){this.tags=Object.assign(Object.assign({},m$e),e),this.globalAttrs=Object.assign(Object.assign({},OOe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}JI.default=new JI;function xM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,E=f&&f.getChild("TagName");return E?t.sliceString(E.from,Math.min(E.to,o)):""}function _M(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function kOe(t,e,o){let f=o.tags[xM(t,_M(e))];return(f==null?void 0:f.children)||o.allTags}function efe(t,e){let o=[];for(let f=_M(e);f&&!f.type.isTop;f=_M(f.parent)){let E=xM(t,f);if(E&&f.lastChild.name=="CloseTag")break;E&&o.indexOf(E)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(E)}return o}const TOe=/^[:\-\.\w\u00b7-\uffff]*$/;function U0e(t,e,o,f,E){let d=/\s*>/.test(t.sliceDoc(E,E+5))?"":">",s=_M(o,!0);return{from:f,to:E,options:kOe(t.doc,s,e).map(n=>({label:n,type:"type"})).concat(efe(t.doc,o).map((n,u)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function j0e(t,e,o,f){let E=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:efe(t.doc,e).map((d,s)=>({label:d,apply:d+E,type:"type",boost:99-s})),validFor:TOe}}function g$e(t,e,o,f){let E=[],d=0;for(let s of kOe(t.doc,o,e))E.push({label:"<"+s,type:"type"});for(let s of efe(t.doc,o))E.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:E,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function v$e(t,e,o,f,E){let d=_M(o),s=d?e.tags[xM(t.doc,d)]:null,n=s&&s.attrs?Object.keys(s.attrs):[],u=s&&s.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:E,options:u.map(b=>({label:b,type:"property"})),validFor:TOe}}function y$e(t,e,o,f,E){var d;let s=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],u;if(s){let b=t.sliceDoc(s.from,s.to),i=e.globalAttrs[b];if(!i){let S=_M(o),w=S?e.tags[xM(t.doc,S)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let S=t.sliceDoc(f,E).toLowerCase(),w='"',y='"';/^['"]/.test(S)?(u=S[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(E,E+1)==S[0]?"":S[0],S=S.slice(1),f++):u=/^[^\s<>='"]*$/;for(let m of i)n.push({label:m,apply:w+m+y,type:"constant"})}}return{from:f,to:E,options:n,validFor:u}}function COe(t,e){let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.resolve(f);for(let s=f,n;d==E&&(n=E.childBefore(s));){let u=n.lastChild;if(!u||!u.type.isError||u.fromCOe(f,E)}const _$e=T_.parser.configure({top:"SingleExpression"}),AOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:yOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:bOe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:xOe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:_$e},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:T_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:TZ.parser}],MOe=[{name:"style",parser:TZ.parser.configure({top:"Styles"})}].concat(SOe.map(t=>({name:t,parser:T_.parser}))),EOe=O4.define({name:"html",parser:cFe.configure({props:[tC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),wH=EOe.configure({wrap:lOe(AOe,MOe)});function w$e(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=lOe((t.nestedLanguages||[]).concat(AOe),(t.nestedAttributes||[]).concat(MOe)));let f=o?EOe.configure({wrap:o,dialect:e}):e?wH.configure({dialect:e}):wH;return new WT(f,[wH.data.of({autocomplete:x$e(t)}),t.autoCloseTags!==!1?O$e:[],f$e().support,NFe().support])}const Q0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),O$e=Xa.inputHandler.of((t,e,o,f,E)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!wH.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b,i,S;let w=s.doc.sliceString(u.from-1,u.to)==f,{head:y}=u,m=Gf(s).resolveInner(y-1,-1),a;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),w&&f==">"&&m.name=="OpenTag"){if(((i=(b=m.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=xM(s.doc,m.parent,y))&&!Q0e.has(a)){let c=y+(s.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:u,changes:{from:y,to:c,insert:h}}}}else if(w&&f=="/"&&m.name=="IncompleteCloseTag"){let c=m.parent;if(m.from==y-2&&((S=c.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(a=xM(s.doc,c,y))&&!Q0e.has(a)){let h=y+(s.doc.sliceString(y,y+1)===">"?1:0),p=`${a}>`;return{range:hi.cursor(y+p.length,-1),changes:{from:y,to:h,insert:p}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),POe=Dce({commentTokens:{block:{open:""}}}),ROe=new Zl,LOe=dNe.configure({props:[E4.add(t=>!t.is("Block")||t.is("Document")||_le(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),ROe.add(_le),tC.add({Document:()=>null}),NT.add({Document:POe})]});function _le(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function S$e(t,e){let o=t;for(;;){let f=o.nextSibling,E;if(!f||(E=_le(f.type))!=null&&E<=e)break;o=f}return o.to}const k$e=Mbe.of((t,e,o)=>{for(let f=Gf(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function tfe(t){return new eb(POe,t,[k$e],"markdown")}const T$e=tfe(LOe),C$e=LOe.configure([ONe,kNe,SNe,TNe,{props:[E4.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),IOe=tfe(C$e);function A$e(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=QH.matchLanguageName(t,o,!0),f instanceof QH)return f.support?f.support.language.parser:DI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class KQ{constructor(e,o,f,E,d,s,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=E,this.spaceAfter=d,this.type=s,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;E--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+BOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function DOe(t,e){let o=[];for(let E=t;E&&E.name!="Document";E=E.parent)(E.name=="ListItem"||E.name=="Blockquote"||E.name=="FencedCode")&&o.push(E);let f=[];for(let E=o.length-1;E>=0;E--){let d=o[E],s,n=e.lineAt(d.from),u=d.from-n.from;if(d.name=="FencedCode")f.push(new KQ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(s=/^ *>( ?)/.exec(n.text.slice(u))))f.push(new KQ(d,u,u+s[0].length,"",s[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(n.text.slice(u)))){let b=s[3],i=s[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new KQ(d.parent,u,u+i,s[1],b,s[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(u)))){let b=s[4],i=s[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let S=s[2];s[3]&&(S+=s[3].replace(/[xX]/," ")),f.push(new KQ(d.parent,u,u+i,s[1],b,S,d))}}return f}function BOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function xae(t,e,o,f=0){for(let E=-1,d=t;;){if(d.name=="ListItem"){let n=BOe(d,e),u=+n[2];if(E>=0){if(u!=E+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(E+2+f)})}E=u}let s=d.nextSibling;if(!s)break;d=s}}function wle(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(eC)!=" ")return t;let f=kx(t,4,o),E="";for(let d=f;d>0;)d>=4?(E+=" ",d-=4):(E+=" ",d--);return E+t.slice(o)}const M$e=({state:t,dispatch:e})=>{let o=Gf(t),{doc:f}=t,E=null,d=t.changeByRange(s=>{if(!s.empty||!IOe.isActiveAt(t,s.from))return E={range:s};let n=s.from,u=f.lineAt(n),b=DOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-u.from;)b.pop();if(!b.length)return E={range:s};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-u.from)return E={range:s};let S=n>=i.to-i.spaceAfter.length&&!/\S/.test(u.text.slice(i.to));if(i.item&&S)if(i.node.firstChild.to>=n||u.from>0&&!/[^\s>]/.test(f.lineAt(u.from-1).text)){let c=b.length>1?b[b.length-2]:null,h,p="";c&&c.item?(h=u.from+c.from,p=c.marker(f,1)):h=u.from+(c?c.to:0);let v=[{from:h,to:n,insert:p}];return i.node.name=="OrderedList"&&xae(i.item,f,v,-2),c&&c.node.name=="OrderedList"&&xae(c.item,f,v),{range:hi.cursor(h+p.length),changes:v}}else{let c="";for(let h=0,p=b.length-2;h<=p;h++)c+=b[h].blank(h\s*$/.exec(c.text);if(h&&h.index==i.from){let p=t.changes([{from:c.from+h.index,to:c.to},{from:u.from+i.from,to:u.to}]);return{range:s.map(p),changes:p}}}let w=[];i.node.name=="OrderedList"&&xae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(u.text)[0].length>=i.to)for(let c=0,h=b.length-1;c<=h;c++)m+=c==h&&!y?b[c].marker(f,1):b[c].blank(cu.from&&/\s/.test(u.text.charAt(a-u.from-1));)a--;return m=wle(m,t),w.push({from:a,to:n,insert:t.lineBreak+m}),{range:hi.cursor(a+m.length+1),changes:w}});return E?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function H0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function E$e(t,e){let o=t.resolveInner(e,-1),f=e;H0e(o)&&(f=o.from,o=o.parent);for(let E;E=o.childBefore(f);)if(H0e(E))f=E.from;else if(E.name=="OrderedList"||E.name=="BulletList")o=E.lastChild,f=o.to;else break;return o}const P$e=({state:t,dispatch:e})=>{let o=Gf(t),f=null,E=t.changeByRange(d=>{let s=d.from,{doc:n}=t;if(d.empty&&IOe.isActiveAt(t,d.from)){let u=n.lineAt(s),b=DOe(E$e(o,s),n);if(b.length){let i=b[b.length-1],S=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(s-u.from>S&&!/\S/.test(u.text.slice(S,s-u.from)))return{range:hi.cursor(u.from+S),changes:{from:u.from+S,to:s}};if(s-u.from==S&&(!i.item||u.from<=i.item.from||!/\S/.test(u.text.slice(0,i.to)))){let w=u.from+i.from;if(i.item&&i.node.fromd.createCell(u))},{code:ao(()=>[t.$devMode&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0)]),outcome:ao(()=>[Na("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,B$e)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const NOe=mp(D$e,[["render",z$e],["__scopeId","data-v-d5250b54"]]);var N$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},E=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},s=d(function(r,g){return r===g}),n=s,u=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,oe=0;oe{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},m=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>m(g)===r,c=r=>g=>typeof g===r,h=r=>g=>r===g,p=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),O=r=>p(r,Object),C=a("array"),x=h(null),R=c("boolean"),M=h(void 0),T=r=>r==null,P=r=>!T(r),A=c("function"),L=c("number"),D=(r,g)=>{if(C(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},Z=r=>r(),K=r=>{r()},re=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return P(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,pe=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let oe=0;oe{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},we=(r,g)=>{const B=[],H=[];for(let oe=0,be=r.length;oe{const B=[];for(let H=0,oe=r.length;H(_e(r,(H,oe)=>{B=g(B,H,oe)}),B),Ie=(r,g,B)=>(ve(r,(H,oe)=>{B=g(B,H,oe)}),B),ze=(r,g,B)=>{for(let H=0,oe=r.length;Hze(r,g,re),Qe=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ye(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Re=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,oe=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),Je=r=>Ze(r,r.length-1),Me=A(Array.from)?Array.from:r=>ee.call(r),Fe=(r,g)=>{for(let B=0;B{const B=[],H=A(g)?oe=>de(B,be=>g(be,oe)):oe=>ce(B,oe);for(let oe=0,be=r.length;oe{const B=tt(r);for(let H=0,oe=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,oe)=>{const be=g(H,oe);B[be.k]=be.v}),B},St=r=>(g,B)=>{r[B]=g},Ft=(r,g,B,H)=>{Ge(r,(oe,be)=>{(g(oe,be)?B:H)(oe,be)})},zt=(r,g)=>{const B={},H={};return Ft(r,g,St(B),St(H)),{t:B,f:H}},Yt=(r,g)=>{const B={};return Ft(r,g,St(B),k),B},ln=(r,g)=>{const B=[];return Ge(r,(H,oe)=>{B.push(g(H,oe))}),B},tn=r=>ln(r,Q),Et=(r,g)=>Ot(r,g)?Y.from(r[g]):Y.none(),Ot=(r,g)=>ot.call(r,g),cn=(r,g)=>Ot(r,g)&&r[g]!==void 0&&r[g]!==null,Cn=(r,g,B=S)=>i(B).eq(r,g),Pn=r=>{const g={};return ve(r,B=>{g[B]={}}),tt(g)},Sn=r=>r.length!==void 0,vt=Array.isArray,xt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,Sn(r)){for(let H=0,oe=r.length;H{const B=[];return st(r,(H,oe)=>{B.push(g(H,oe,r))}),B},Vt=(r,g)=>{const B=[];return st(r,(H,oe)=>{(!g||g(H,oe,r))&&B.push(H)}),B},Dt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let oe=M(B)?r[0]:B;for(let be=0;be{for(let H=0,oe=r.length;Hr[r.length-1],_t=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},qt=(r,g,B,H)=>{const oe=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!oe,Le=r.isiOS()||r.isAndroid(),Ke=Le||H("(pointer:coarse)"),ut=oe||!be&&Le&&H("(min-device-width:768px)"),At=be||Le&&!ut,nn=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,un=!At&&!ut&&!nn;return{isiPad:$(oe),isiPhone:$(be),isTablet:$(ut),isPhone:$(At),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(nn),isDesktop:$(un)}},en=(r,g)=>{for(let B=0;B{const B=en(r,g);if(!B)return{major:0,minor:0};const H=oe=>Number(g.replace(B,"$"+oe));return sn(H(1),H(2))},Zt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Nt():Jt(r,B)},Nt=()=>sn(0,0),sn=(r,g)=>({major:r,minor:g}),rn={nu:sn,detect:Zt,unknown:Nt},_n=(r,g)=>Fe(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,oe=>{var be;return H===((be=oe.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(oe=>({current:oe.name,version:rn.nu(parseInt(B.version,10),0)}))}),wn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},An=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Kn=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),fr=(r,g)=>r.substring(g),Un=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,Zn=(r,g)=>Br(r,g)?fr(r,g.length):r,tr=(r,g,B=0,H)=>{const oe=r.indexOf(g,B);return oe!==-1?M(H)?!0:oe+g.length<=H:!1},Br=(r,g)=>Un(r,g,0),$r=(r,g)=>Un(r,g,r.length-g.length),vr=r=>g=>g.replace(r,""),qn=vr(/^\s+|\s+$/g),gr=vr(/^\s+/g),sr=vr(/\s+$/g),lr=r=>r.length>0,zr=r=>!lr(r),Vr=(r,g)=>g<=0?"":new Array(g+1).join(r),eo=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Yr=r=>g=>tr(g,r),to=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>tr(r,"edge/")&&tr(r,"chrome")&&tr(r,"safari")&&tr(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Jr],search:r=>tr(r,"chrome")&&!tr(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>tr(r,"msie")||tr(r,"trident")},{name:"Opera",versionRegexes:[Jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Yr("firefox")},{name:"Safari",versionRegexes:[Jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(tr(r,"safari")||tr(r,"mobile/"))&&tr(r,"applewebkit")}],co=[{name:"Windows",search:Yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>tr(r,"iphone")||tr(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Yr("linux"),versionRegexes:[]},{name:"Solaris",search:Yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Fo={browsers:$(to),oses:$(co)},_o="Edge",$o="Chromium",Mo="IE",pi="Opera",Hn="Firefox",ar="Safari",Dr=()=>Sr({current:void 0,version:rn.unknown()}),Sr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isEdge:H(_o),isChromium:H($o),isIE:H(Mo),isOpera:H(pi),isFirefox:H(Hn),isSafari:H(ar)}},Zr={unknown:Dr,nu:Sr,edge:$(_o),chromium:$($o),ie:$(Mo),opera:$(pi),firefox:$(Hn),safari:$(ar)},go="Windows",oo="iOS",io="Android",Do="Linux",jn="macOS",Rr="Solaris",On="FreeBSD",Yn="ChromeOS",ir=()=>kr({current:void 0,version:rn.unknown()}),kr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isWindows:H(go),isiOS:H(oo),isAndroid:H(io),isMacOS:H(jn),isLinux:H(Do),isSolaris:H(Rr),isFreeBSD:H(On),isChromeOS:H(Yn)}},Er={unknown:ir,nu:kr,windows:$(go),ios:$(oo),android:$(io),linux:$(Do),macos:$(jn),solaris:$(Rr),freebsd:$(On),chromeos:$(Yn)},on={detect:(r,g,B)=>{const H=Fo.browsers(),oe=Fo.oses(),be=g.bind(ut=>_n(H,ut)).orThunk(()=>An(H,r)).fold(Zr.unknown,Zr.nu),Le=Kn(oe,r).fold(Er.unknown,Er.nu),Ke=qt(Le,be,r,B);return{browser:be,os:Le,deviceType:Ke}}},an=r=>window.matchMedia(r).matches;let Tn=_t(()=>on.detect(window.navigator.userAgent,Y.from(window.navigator.userAgentData),an));const zn=()=>Tn(),Gn=window.navigator.userAgent,Lr=zn(),Ur=Lr.browser,qr=Lr.os,Cr=Lr.deviceType,wo=Gn.indexOf("Windows Phone")!==-1,Nr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Ur.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Ur.isIE(),windowsPhone:wo,browser:{current:Ur.current,version:Ur.version,isChromium:Ur.isChromium,isEdge:Ur.isEdge,isFirefox:Ur.isFirefox,isIE:Ur.isIE,isOpera:Ur.isOpera,isSafari:Ur.isSafari},os:{current:qr.current,version:qr.version,isAndroid:qr.isAndroid,isChromeOS:qr.isChromeOS,isFreeBSD:qr.isFreeBSD,isiOS:qr.isiOS,isLinux:qr.isLinux,isMacOS:qr.isMacOS,isSolaris:qr.isSolaris,isWindows:qr.isWindows},deviceType:{isDesktop:Cr.isDesktop,isiPad:Cr.isiPad,isiPhone:Cr.isiPhone,isPhone:Cr.isPhone,isTablet:Cr.isTablet,isTouch:Cr.isTouch,isWebView:Cr.isWebView}},Eo=/^\s*|\s*$/g,zo=r=>T(r)?"":(""+r).replace(Eo,""),Qt=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Mn=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let oe=H.length;for(;oe--;)B[H[oe]]={};return B},Fn=Ot,dr=(r,...g)=>{for(let B=0;Bg.call(H,oe,be,B)===!1?!1:(xr(oe,g,B,H),!0)))},To={trim:zo,isArray:vt,is:Qt,toArray:xt,makeMap:Mn,each:st,map:bt,grep:Vt,inArray:Dt,hasOwn:Fn,extend:dr,walk:xr,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,oe=B.length;HC(r)?r:r===""?[]:bt(r.split(g||","),zo),_addCacheSuffix:r=>{const g=Nr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Ia=(r,g,B=j)=>r.exists(H=>B(H,g)),Ds=(r,g,B=j)=>zi(r,g,B).getOr(r.isNone()&&g.isNone()),fs=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),yl=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),Bs=(r,g)=>r?Y.some(g):Y.none(),yf=typeof window<"u"?window:Function("return this;")(),il=(r,g)=>{let B=g??yf;for(let H=0;H{const B=r.split(".");return il(B,g)},nh=(r,g)=>nf(r,g),gp=(r,g)=>{const B=nh(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Qs=Object.getPrototypeOf,bh=r=>gp("HTMLElement",r),Bl=r=>{const g=nf("ownerDocument.defaultView",r);return _(r)&&(bh(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Qs(r).constructor.name))},Tc=8,iu=9,au=11,zf=1,_s=3,ma=r=>r.dom.nodeName.toLowerCase(),mu=r=>r.dom.nodeType,Uc=r=>g=>mu(g)===r,Kf=r=>mu(r)===Tc||ma(r)==="#comment",Al=r=>Wl(r)&&Bl(r.dom),Wl=Uc(zf),Ml=Uc(_s),Jf=Uc(iu),Nf=Uc(au),Jl=r=>g=>Wl(g)&&ma(g)===r,Gh=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},ll=(r,g,B)=>{Gh(r.dom,g,B)},Tu=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Gh(B,oe,H)})},gu=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ec=(r,g)=>Y.from(gu(r,g)),Dc=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},tc=(r,g)=>{r.dom.removeAttribute(g)},Lp=r=>{const g=r.dom.attributes;return g==null||g.length===0},rh=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),rf=(r,g)=>{const B=gu(r,g);return B===void 0||B===""?[]:B.split(" ")},of=(r,g,B)=>{const oe=rf(r,g).concat([B]);return ll(r,g,oe.join(" ")),!0},bf=(r,g,B)=>{const H=Te(rf(r,g),oe=>oe!==B);return H.length>0?ll(r,g,H.join(" ")):tc(r,g),!1},vu=r=>r.dom.classList!==void 0,$d=r=>rf(r,"class"),bl=(r,g)=>of(r,"class",g),Zu=(r,g)=>bf(r,"class",g),Kh=(r,g)=>ce($d(r),g)?Zu(r,g):bl(r,g),Cu=(r,g)=>{vu(r)?r.dom.classList.add(g):bl(r,g)},ed=r=>{(vu(r)?r.dom.classList:$d(r)).length===0&&tc(r,"class")},Bu=(r,g)=>{vu(r)?r.dom.classList.remove(g):Zu(r,g),ed(r)},vd=(r,g)=>{const B=vu(r)?r.dom.classList.toggle(g):Kh(r,g);return ed(r),B},cs=(r,g)=>vu(r)&&r.dom.classList.contains(g),oh=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const oe="HTML does not have a single root node";throw console.error(oe,r),new Error(oe)}return xf(H.childNodes[0])},Jh=(r,g)=>{const H=(g||document).createElement(r);return xf(H)},xh=(r,g)=>{const H=(g||document).createTextNode(r);return xf(H)},xf=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},_r={fromHtml:oh,fromTag:Jh,fromText:xh,fromDom:xf,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(xf)},Ff=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let oe=g(r);do oe=oe.bind(H);while(oe.isSome());return B},yd=(r,g)=>{const B=r.dom;if(B.nodeType!==zf)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},bd=r=>r.nodeType!==zf&&r.nodeType!==iu&&r.nodeType!==au||r.childElementCount===0,_h=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?[]:ye(B.querySelectorAll(r),_r.fromDom)},zu=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?Y.none():Y.from(B.querySelector(r)).map(_r.fromDom)},va=(r,g)=>r.dom===g.dom,El=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},_f=r=>_r.fromDom(r.dom.ownerDocument),$f=r=>Jf(r)?r:_f(r),ih=r=>_r.fromDom($f(r).dom.documentElement),yu=r=>_r.fromDom($f(r).dom.defaultView),jc=r=>Y.from(r.dom.parentNode).map(_r.fromDom),Nh=r=>Y.from(r.dom.parentElement).map(_r.fromDom),af=(r,g)=>{const B=A(g)?g:re;let H=r.dom;const oe=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Le=_r.fromDom(be);if(oe.push(Le),B(Le)===!0)break;H=be}return oe},td=r=>{const g=B=>Te(B,H=>!va(r,H));return jc(r).map(vc).map(g).getOr([])},sf=r=>Y.from(r.dom.previousSibling).map(_r.fromDom),Bc=r=>Y.from(r.dom.nextSibling).map(_r.fromDom),Vd=r=>ke(Ff(r,sf)),xd=r=>Ff(r,Bc),vc=r=>ye(r.dom.childNodes,_r.fromDom),gs=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(_r.fromDom)},yc=r=>gs(r,0),Cc=r=>gs(r,r.dom.childNodes.length-1),Nu=r=>r.dom.childNodes.length,Gs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return _r.fromDom(g)},Ks=r=>Nf(r)&&P(r.dom.host),Ac=r=>_r.fromDom(r.dom.getRootNode()),_d=r=>Ks(r)?r:Gs($f(r)),Fh=r=>Ks(r)?r:_r.fromDom($f(r).dom.body),$h=r=>{const g=Ac(r);return Ks(g)?Y.some(g):Y.none()},vp=r=>_r.fromDom(r.dom.host),ah=r=>{if(P(r.target)){const g=_r.fromDom(r.target);if(Wl(g)&&Au(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Ye(B)}}return Y.from(r.target)},Au=r=>P(r.dom.shadowRoot),lf=r=>{const g=Ml(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return $h(_r.fromDom(g)).fold(()=>B.body.contains(g),z(lf,vp))};var wf=(r,g,B,H,oe)=>r(B,H)?Y.some(B):A(oe)&&oe(B)?Y.none():g(B,H,oe);const vs=(r,g,B)=>{let H=r.dom;const oe=A(B)?B:re;for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H);if(g(be))return Y.some(be);if(oe(be))break}return Y.none()},cl=(r,g,B)=>wf((oe,be)=>be(oe),vs,r,g,B),bc=(r,g)=>{const B=r.dom;return B.parentNode?nc(_r.fromDom(B.parentNode),H=>!va(r,H)&&g(H)):Y.none()},nc=(r,g)=>{const B=oe=>g(_r.fromDom(oe));return De(r.dom.childNodes,B).map(_r.fromDom)},Qc=(r,g)=>{const B=H=>{for(let oe=0;oevs(r,H=>yd(H,g),B),wi=(r,g)=>zu(g,r),bu=(r,g,B)=>wf((oe,be)=>yd(oe,be),ts,r,g,B),wd=r=>bu(r,"[contenteditable]"),Ol=(r,g=!1)=>lf(r)?r.dom.isContentEditable:wd(r).fold($(g),B=>ds(B)==="true"),ds=r=>r.dom.contentEditable,zc=r=>r.style!==void 0&&A(r.style.getPropertyValue),Ud=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);zc(r)&&r.style.setProperty(g,B)},cf=(r,g)=>{zc(r)&&r.style.removeProperty(g)},Of=(r,g,B)=>{const H=r.dom;Ud(H,g,B)},aa=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Ud(B,oe,H)})},rs=(r,g)=>{const B=r.dom,oe=window.getComputedStyle(B).getPropertyValue(g);return oe===""&&!lf(r)?Mu(B,g):oe},Mu=(r,g)=>zc(r)?r.style.getPropertyValue(g):"",Ri=(r,g)=>{const B=r.dom,H=Mu(B,g);return Y.from(H).filter(oe=>oe.length>0)},Gc=r=>{const g={},B=r.dom;if(zc(B))for(let H=0;H{const B=r.dom;cf(B,g),Ia(ec(r,"style").map(qn),"")&&tc(r,"style")},zl=r=>r.dom.offsetWidth,xc=(r,g)=>{jc(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},Kc=(r,g)=>{Bc(r).fold(()=>{jc(r).each(oe=>{ii(oe,g)})},H=>{xc(H,g)})},jd=(r,g)=>{yc(r).fold(()=>{ii(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},ii=(r,g)=>{r.dom.appendChild(g.dom)},nd=(r,g)=>{xc(r,g),ii(g,r)},al=(r,g)=>{ve(g,(B,H)=>{const oe=H===0?r:g[H-1];Kc(oe,B)})},Yl=(r,g)=>{ve(g,B=>{ii(r,B)})},uf=r=>{r.dom.textContent="",ve(vc(r),g=>{hs(g)})},hs=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},Mc=r=>{const g=vc(r);g.length>0&&al(r,g),hs(r)},Eu=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,vc(_r.fromDom(H))},xu=r=>ye(r,_r.fromDom),ws=r=>r.dom.innerHTML,Fu=(r,g)=>{const H=_f(r).dom,oe=_r.fromDom(H.createDocumentFragment()),be=Eu(g,H);Yl(oe,be),uf(r),ii(r,oe)},su=r=>{const g=_r.fromTag("div"),B=_r.fromDom(r.dom.cloneNode(!0));return ii(g,B),ws(g)},Ca=(r,g,B,H,oe,be,Le)=>({target:r,x:g,y:B,stop:H,prevent:oe,kill:be,raw:Le}),Ls=r=>{const g=_r.fromDom(ah(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),oe=I(H,B);return Ca(g,r.clientX,r.clientY,B,H,oe,r)},Ec=(r,g)=>B=>{r(B)&&g(Ls(B))},_u=(r,g,B,H,oe)=>{const be=Ec(B,H);return r.dom.addEventListener(g,be,oe),{unbind:U(Kt,r,g,be,oe)}},wt=(r,g,B,H)=>_u(r,g,B,H,!1),Kt=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},En=(r,g)=>({left:r,top:g,translate:(H,oe)=>En(r+H,g+oe)}),pr=En,wr=r=>{const g=r.getBoundingClientRect();return pr(g.left,g.top)},uo=(r,g)=>r!==void 0?r:g!==void 0?g:0,Bi=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,oe=g.documentElement;if(B===r.dom)return pr(B.offsetLeft,B.offsetTop);const be=uo(H==null?void 0:H.pageYOffset,oe.scrollTop),Le=uo(H==null?void 0:H.pageXOffset,oe.scrollLeft),Ke=uo(oe.clientTop,B.clientTop),ut=uo(oe.clientLeft,B.clientLeft);return ya(r).translate(Le-ut,be-Ke)},ya=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?pr(H.offsetLeft,H.offsetTop):lf(r)?wr(g):pr(0,0)},Ni=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return pr(B,H)},Qi=(r,g,B)=>{const oe=(B!==void 0?B.dom:document).defaultView;oe&&oe.scrollTo(r,g)},Ws=(r,g)=>{zn().browser.isSafari()&&A(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},nl=r=>{const g=r===void 0?window:r;return zn().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Fs=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),Wu=r=>{const g=r===void 0?window:r,B=g.document,H=Ni(_r.fromDom(B));return nl(g).fold(()=>{const oe=g.document.documentElement,be=oe.clientWidth,Le=oe.clientHeight;return Fs(H.left,H.top,be,Le)},oe=>Fs(Math.max(oe.pageLeft,H.left),Math.max(oe.pageTop,H.top),oe.width,oe.height))},Ki=(r,g)=>Te(vc(r),g),Aa=(r,g)=>{let B=[];return ve(vc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Aa(H,g))}),B},Pl=(r,g)=>_h(g,r),Vf=(r,g,B)=>vs(r,g,B).isSome(),sh=(r,g)=>bc(r,g).isSome(),_c=(r,g)=>Qc(r,g).isSome();class Xl{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,oe){if(g){if(!oe&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Le=g.parentNode;Le&&Le!==this.rootNode;Le=Le.parentNode)if(be=Le[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const oe=g.parentNode;if(oe&&oe!==this.rootNode)return oe}}}const pl="\uFEFF",Pc=" ",Uf=r=>r===pl,Os=r=>r.replace(/\uFEFF/g,""),Si=/^[ \t\r\n]*$/,lc=r=>Si.test(r),rd=r=>{for(const g of r)if(!Uf(g))return!1;return!0},tp=r=>" \f \v".indexOf(r)!==-1,kt=r=>r===` -`||r==="\r",It=(r,g)=>g=0?kt(r[g]):!1,Ut=(r,g=4,B=!0,H=!0)=>{const oe=Vr(" ",g),be=r.replace(/\t/g,oe);return Ie(be,(Ke,ut)=>tp(ut)||ut===Pc?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||It(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Pc}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:kt(ut),str:Ke.str+ut},{pcIsSpace:!1,str:""}).str},J=r=>g=>!!g&&g.nodeType===r,le=r=>!!r&&!Object.getPrototypeOf(r),ne=J(1),V=r=>ne(r)&&Al(_r.fromDom(r)),ie=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",ge=r=>{const g=r.toLowerCase();return B=>P(B)&&B.nodeName.toLowerCase()===g},xe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Ee=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const oe=H.ownerDocument.defaultView;if(oe)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),et=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),rt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",dt=r=>ne(r)&&r.tagName==="TABLE",gt=r=>g=>!!(V(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),Rt=xe(["textarea","input"]),Mt=J(3),Xt=J(4),dn=J(7),bn=J(8),vn=J(9),Ln=J(11),gn=ge("br"),Jn=ge("img"),pn=gt("true"),In=gt("false"),Ir=xe(["td","th"]),Pr=xe(["td","th","caption"]),Gr=xe(["video","audio","object","embed"]),ro=ge("li"),po=ge("details"),Wo=ge("summary"),si={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},Bo=(r,g,B)=>{const H=_r.fromDom(g),oe=_r.fromDom(r),be=B.getWhitespaceElements();return Vf(oe,Ke=>Ot(be,ma(Ke)),U(va,H))},Go=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Yo=(r,g)=>ne(r)&&Ot(g.getNonEmptyElements(),r.nodeName),Wi=Ne("data-mce-bookmark"),Ho=r=>Nh(_r.fromDom(r)).exists(g=>!Ol(g)),jo=(r,g,B)=>lc(r.data)&&!Bo(r,g,B),Yi=(r,g,B,H)=>Mt(r)&&!jo(r,g,B)&&(!H.includeZwsp||!rd(r.data)),ai=(r,g,B,H)=>A(H.isContent)&&H.isContent(g)||Yo(g,r)||Wi(g)||Go(g)||Yi(g,B,r,H)||In(g)||pn(g)&&Ho(g),Hi=(r,g,B)=>{const H={...si,...B};if(H.checkRootAsContent&&ai(r,g,g,H))return!1;let oe=g.firstChild,be=0;if(!oe)return!0;const Le=new Xl(oe,g);do{if(H.skipBogus&&ne(oe)){const Ke=oe.getAttribute("data-mce-bogus");if(Ke){oe=Le.next(Ke==="all");continue}}if(bn(oe)){oe=Le.next(!0);continue}if(gn(oe)){be++,oe=Le.next();continue}if(ai(r,oe,g,H))return!1;oe=Le.next()}while(oe);return be<=1},Ai=(r,g,B)=>Hi(r,g.dom,{checkRootAsContent:!0,...B}),Ja=(r,g,B)=>ai(r,g,g,{includeZwsp:si.includeZwsp,...B}),Ar=r=>{let g=r;return{get:()=>g,set:oe=>{g=oe}}},ns=r=>{const g=Ar(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},$s=r=>{const g=Ar(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ts=()=>{const r=ns(k);return{...r,on:B=>r.get().each(B)}},rl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},Hs=r=>rl(r)!=="html",ys=r=>Hs(r.nodeName),Yu=r=>rl(r.nodeName),mt=["svg","math"],Tt=()=>{const r=Ts(),g=()=>r.get().map(Yu).getOr("html");return{track:oe=>(ys(oe)?r.set(oe):r.get().exists(be=>!be.contains(oe))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},xn="data-mce-block",Nn=r=>Te(tt(r),g=>!/[A-Z]/.test(g)),yr=r=>ye(Nn(r),g=>{const B=CSS.escape(g);return`${B}:`+ye(mt,H=>`not(${H} ${B})`).join(":")}).join(","),so=(r,g)=>P(g.querySelector(r))?(g.setAttribute(xn,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(xn),!1),No=(r,g)=>{const B=yr(r.getTransparentElements()),H=yr(r.getBlockElements());return Te(g.querySelectorAll(B),oe=>so(H,oe))},ui=(r,g,B)=>{var H;const oe=B?"lastChild":"firstChild";for(let be=g[oe];be;be=be[oe])if(Hi(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},ga=(r,g,B)=>{const H=document.createRange(),oe=g.parentNode;if(oe){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ui(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Le=H.extractContents();ui(r,Le,!1),Hi(r,be,{checkRootAsContent:!0})||oe.insertBefore(be,g),Hi(r,B,{checkRootAsContent:!0})||oe.insertBefore(B,g),Hi(r,Le,{checkRootAsContent:!0})||oe.insertBefore(Le,g),oe.removeChild(g)}},Sa=(r,g,B)=>{const H=r.getBlockElements(),oe=_r.fromDom(g),be=Ke=>ma(Ke)in H,Le=Ke=>va(Ke,oe);ve(xu(B),Ke=>{vs(Ke,be,Le).each(ut=>{const At=Ki(Ke,nn=>be(nn)&&!r.isValidChild(ma(ut),ma(nn)));if(At.length>0){const nn=Nh(ut);ve(At,un=>{vs(un,be,Le).each(yn=>{ga(r,yn.dom,un.dom)})}),nn.each(un=>No(r,un.dom))}})})},ua=(r,g,B)=>{ve([...B,...lh(r,g)?[g]:[]],H=>ve(Pl(_r.fromDom(H),H.nodeName.toLowerCase()),oe=>{r0(r,oe.dom)&&Mc(oe)}))},Cs=(r,g)=>{const B=No(r,g);Sa(r,g,B),ua(r,g,B)},ul=(r,g)=>{if(Nl(r,g)){const B=yr(r.getBlockElements());so(B,g)}},Jc=(r,g,B)=>{const H=be=>va(be,_r.fromDom(g)),oe=af(_r.fromDom(B),H);Ze(oe,oe.length-2).filter(Wl).fold(()=>Cs(r,g),be=>Cs(r,be.dom))},Is=r=>r.hasAttribute(xn),Hc=(r,g)=>Ot(r.getTransparentElements(),g),Nl=(r,g)=>ne(g)&&Hc(r,g.nodeName),lh=(r,g)=>Nl(r,g)&&Is(g),r0=(r,g)=>Nl(r,g)&&!Is(g),ch=(r,g)=>g.type===1&&Hc(r,g.name)&&v(g.attr(xn)),gg=zn().browser,Ip=r=>De(r,Wl),X0=r=>gg.isFirefox()&&ma(r)==="table"?Ip(vc(r)).filter(g=>ma(g)==="caption").bind(g=>Ip(xd(g)).map(B=>{const H=B.dom.offsetTop,oe=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=oe?-be:0})).getOr(0):0,Vh=(r,g)=>r.children&&ce(r.children,g),Pu=(r,g,B)=>{let H=0,oe=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&rs(_r.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,oe=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:oe}}let Le=g;for(;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);){const Ke=Le;H+=Ke.offsetLeft||0,oe+=Ke.offsetTop||0,Le=Ke.offsetParent}for(Le=g.parentNode;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);)H-=Le.scrollLeft||0,oe-=Le.scrollTop||0,Le=Le.parentNode;oe+=X0(_r.fromDom(g))}return{x:H,y:oe}},Uh=(r,g={})=>{let B=0;const H={},oe=_r.fromDom(r),be=$f(oe),Le=Tr=>{g.referrerPolicy=Tr},Ke=Tr=>{g.contentCssCors=Tr},ut=Tr=>{ii(_d(oe),Tr)},At=Tr=>{const Wr=_d(oe);wi(Wr,"#"+Tr).each(hs)},nn=Tr=>Et(H,Tr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),un=Tr=>new Promise((Wr,Qr)=>{let lo;const Zo=To._addCacheSuffix(Tr),li=nn(Zo);H[Zo]=li,li.count++;const Mi=(Fi,la)=>{ve(Fi,K),li.status=la,li.passed=[],li.failed=[],lo&&(lo.onload=null,lo.onerror=null,lo=null)},Co=()=>Mi(li.passed,2),yo=()=>Mi(li.failed,3);if(Wr&&li.passed.push(Wr),Qr&&li.failed.push(Qr),li.status===1)return;if(li.status===2){Co();return}if(li.status===3){yo();return}li.status=1;const Vo=_r.fromTag("link",be.dom);Tu(Vo,{rel:"stylesheet",type:"text/css",id:li.id}),g.contentCssCors&&ll(Vo,"crossOrigin","anonymous"),g.referrerPolicy&&ll(Vo,"referrerpolicy",g.referrerPolicy),lo=Vo.dom,lo.onload=Co,lo.onerror=yo,ut(Vo),ll(Vo,"href",Zo)}),yn=(Tr,Wr)=>{const Qr=nn(Tr);H[Tr]=Qr,Qr.count++;const lo=_r.fromTag("style",be.dom);Tu(lo,{rel:"stylesheet",type:"text/css",id:Qr.id}),lo.dom.innerHTML=Wr,ut(lo)},Qn=Tr=>Promise.allSettled(ye(Tr,Qr=>un(Qr).then($(Qr)))).then(Qr=>{const lo=we(Qr,Zo=>Zo.status==="fulfilled");return lo.fail.length>0?Promise.reject(ye(lo.fail,Zo=>Zo.reason)):ye(lo.pass,Zo=>Zo.value)}),rr=Tr=>{const Wr=To._addCacheSuffix(Tr);Et(H,Wr).each(Qr=>{--Qr.count===0&&(delete H[Wr],At(Qr.id))})};return{load:un,loadRawCss:yn,loadAll:Qn,unload:rr,unloadRawCss:Tr=>{Et(H,Tr).each(Wr=>{--Wr.count===0&&(delete H[Tr],At(Wr.id))})},unloadAll:Tr=>{ve(Tr,Wr=>{rr(Wr)})},_setReferrerPolicy:Le,_setContentCssCors:Ke}},Gl=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=Ac(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Le=Uh(be,H);return r.set(be,Le),Le})}}})(),Sf=r=>r.nodeName.toLowerCase()==="span",Nc=(r,g)=>P(r)&&(Ja(g,r)||g.isInline(r.nodeName.toLowerCase())),o0=(r,g,B)=>{const H=new Xl(r,g).prev(!1),oe=new Xl(r,g).next(!1),be=M(H)||Nc(H,B),Le=M(oe)||Nc(oe,B);return be&&Le},i0=r=>Sf(r)&&r.getAttribute("data-mce-type")==="bookmark",a0=(r,g,B)=>Mt(r)&&r.data.length>0&&o0(r,g,B),wu=r=>ne(r)?r.childNodes.length>0:!1,Dp=r=>Ln(r)||vn(r),Rm=(r,g,B,H)=>{var oe;const be=H||g;if(ne(g)&&i0(g))return g;const Le=g.childNodes;for(let Ke=Le.length-1;Ke>=0;Ke--)Rm(r,Le[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&i0(Ke[0])&&((oe=g.parentNode)===null||oe===void 0||oe.insertBefore(Ke[0],g))}return!Dp(g)&&!Ja(B,g)&&!wu(g)&&!a0(g,be,B)&&r.remove(g),g},nm=To.makeMap,G0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s0=/[<>&\"\']/g,H1=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,VO={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},rm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},z_={"<":"<",">":">","&":"&",""":'"',"'":"'"},db=r=>{const g=_r.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},lu=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let oe=0;oer.replace(g?G0:vg,B=>rm[B]||B),kf=r=>(""+r).replace(s0,g=>rm[g]||g),l0=(r,g)=>r.replace(g?G0:vg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":rm[B]||"&#"+B.charCodeAt(0)+";"),yp=(r,g,B)=>{const H=B||ay;return r.replace(g?G0:vg,oe=>rm[oe]||H[oe]||oe)},Lm={encodeRaw:wh,encodeAllRaw:kf,encodeNumeric:l0,encodeNamed:yp,getEncodeFunc:(r,g)=>{const B=lu(g)||ay,H=(Le,Ke)=>Le.replace(Ke?G0:vg,ut=>rm[ut]!==void 0?rm[ut]:B[ut]!==void 0?B[ut]:ut.length>1?"&#"+((ut.charCodeAt(0)-55296)*1024+(ut.charCodeAt(1)-56320)+65536)+";":"&#"+ut.charCodeAt(0)+";"),oe=(Le,Ke)=>yp(Le,Ke,B),be=nm(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?oe:yp:be.numeric?l0:wh},decode:r=>r.replace(H1,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):VO[B]||String.fromCharCode(B)):z_[g]||ay[g]||db(g))},Qd=(r,g)=>(r=To.trim(r),r?r.split(g||" "):[]),Z1=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),N_=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",K0=r=>{const g=B=>C(B)?ye(B,g):N_(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},sy=r=>{const g=/^(~)?(.+)$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Le=H[2];return[{cloneName:be,name:Le}]}else return[]})},yg=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),Im=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Dm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=Im(r),oe=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:oe(g),phrasingContent:oe(B),flowContent:oe(H)})},Oh={html4:_t(()=>Dm("html4")),html5:_t(()=>Dm("html5")),"html5-strict":_t(()=>Dm("html5-strict"))},zp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:oe}=Oh[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(oe):Y.none()},J0=r=>{const g=yg(r),{phrasingContent:B,flowContent:H}=Im(r),oe={},be=(ut,At,nn)=>{oe[ut]={attributes:We(At,$({})),attributesOrder:At,children:We(nn,$({}))}},Le=(ut,At="",nn="")=>{const un=Qd(nn),yn=Qd(ut);let Qn=yn.length;const rr=[...g,...Qd(At)];for(;Qn--;)be(yn[Qn],rr.slice(),un)},Ke=(ut,At)=>{const nn=Qd(ut),un=Qd(At);let yn=nn.length;for(;yn--;){const Qn=oe[nn[yn]];for(let rr=0,Wn=un.length;rr{Le(nn,"",B)}),ve(Qd("center dir isindex noframes"),nn=>{Le(nn,"",H)})),Le("html","manifest","head body"),Le("head","","base command link meta noscript script style title"),Le("title hr noscript br"),Le("base","href target"),Le("link","href rel media hreflang type sizes hreflang"),Le("meta","name http-equiv content charset"),Le("style","media type scoped"),Le("script","src async defer type charset"),Le("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Le("dd div","",H),Le("address dt caption","",r==="html4"?B:H),Le("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Le("blockquote","cite",H),Le("ol","reversed start type","li"),Le("ul","","li"),Le("li","value",H),Le("dl","","dt dd"),Le("a","href target rel media hreflang type",r==="html4"?B:H),Le("q","cite",B),Le("ins del","cite datetime",H),Le("img","src sizes srcset alt usemap ismap width height"),Le("iframe","src name width height",H),Le("embed","src type width height"),Le("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Le("param","name value"),Le("map","name",[H,"area"].join(" ")),Le("area","alt coords shape href target rel media hreflang type"),Le("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Le("colgroup","span","col"),Le("col","span"),Le("tbody thead tfoot","","tr"),Le("tr","","td th"),Le("td","colspan rowspan headers",H),Le("th","colspan rowspan headers scope abbr",H),Le("form","accept-charset action autocomplete enctype method name novalidate target",H),Le("fieldset","disabled form name",[H,"legend"].join(" ")),Le("label","form for",B),Le("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Le("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Le("select","disabled form multiple name required size","option optgroup"),Le("optgroup","disabled label","option"),Le("option","disabled label selected value"),Le("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Le("menu","type label",[H,"li"].join(" ")),Le("noscript","",H),r!=="html4"&&(Le("wbr"),Le("ruby","",[B,"rt rp"].join(" ")),Le("figcaption","",H),Le("mark rt rp bdi","",B),Le("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Le("canvas","width height",H),Le("data","value",B),Le("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Le("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Le("picture","","img source"),Le("source","src srcset type media sizes"),Le("track","kind src srclang label default"),Le("datalist","",[B,"option"].join(" ")),Le("article section nav aside main header footer","",H),Le("hgroup","","h1 h2 h3 h4 h5 h6"),Le("figure","",[H,"figcaption"].join(" ")),Le("time","datetime",B),Le("dialog","open",H),Le("command","type label icon disabled checked radiogroup command"),Le("output","for form name",B),Le("progress","value max",B),Le("meter","value min max low high optimum",B),Le("details","open",[H,"summary"].join(" ")),Le("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ve([oe.video,oe.audio],ut=>{delete ut.children.audio,delete ut.children.video}),ve(Qd("a form meter progress dfn"),ut=>{oe[ut]&&delete oe[ut].children[ut]}),delete oe.caption.children.table,delete oe.script,oe},F_=r=>r==="-"?"remove":"add",q1=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},$_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const oe=H[1],be=oe?F_(oe):"replace",Le=H[2],Ke=$e(Qd(H[3],"|"),ut=>q1(ut).toArray());return[{operation:be,name:Le,validChildren:Ke}]}else return[]})},Dx=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:oe,attributesOrder:be}=g;return ve(Qd(r,"|"),Le=>{const Ke=B.exec(Le);if(Ke){const ut={},At=Ke[1],nn=Ke[2].replace(/[\\:]:/g,":"),un=Ke[3],yn=Ke[4];if(At==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(nn),ut.required=!0),At==="-"){delete oe[nn],be.splice(To.inArray(be,nn),1);return}if(un&&(un==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:nn,value:yn}),ut.defaultValue=yn):un==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:nn,value:yn}),ut.forcedValue=yn):un==="<"&&(ut.validValues=To.makeMap(yn,"?"))),H.test(nn)){const Qn=ut;g.attributePatterns=g.attributePatterns||[],Qn.pattern=Z1(nn),g.attributePatterns.push(Qn)}else oe[nn]||be.push(nn),oe[nn]=ut}})},UO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},W1=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Qd(g,","),H=>{const oe=B.exec(H);if(oe){const be=oe[1],Le=oe[2],Ke=oe[3],ut=oe[4],At=oe[5],nn={attributes:{},attributesOrder:[]};if(r.each(un=>UO(un,nn)),be==="#"?nn.paddEmpty=!0:be==="-"&&(nn.removeEmpty=!0),ut==="!"&&(nn.removeEmptyAttrs=!0),At&&Dx(At,nn),Ke&&(nn.outputName=Le),Le==="@")if(r.isNone())r=Y.some(nn);else return[];return[Ke?{name:Le,element:nn,aliasName:Ke}:{name:Le,element:nn}]}else return[]})},e1={},cu=To.makeMap,Za=To.each,sa=To.extend,Bm=To.explode,t1=(r,g={})=>{const B=cu(r," ",cu(r.toUpperCase()," "));return sa(B,g)},n1=r=>t1("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),Bx=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Za(r,(H,oe)=>{B[oe]=B[oe.toUpperCase()]=g==="map"?cu(H,/[, ]/):Bm(H,/[, ]/)}),B}else return},zm=(r={})=>{var g;const B={},H={};let oe=[];const be={},Le={},Ke=(ca,Zs,ru)=>{const ju=r[ca];if(ju)return cu(ju,/[, ]/,cu(ju.toUpperCase(),/[, ]/));{let Pf=e1[ca];return Pf||(Pf=t1(Zs,ru),e1[ca]=Pf),Pf}},ut=(g=r.schema)!==null&&g!==void 0?g:"html5",At=J0(ut);r.verify_html===!1&&(r.valid_elements="*[*]");const nn=Bx(r.valid_styles),un=Bx(r.invalid_styles,"map"),yn=Bx(r.valid_classes,"map"),Qn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),rr=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Wn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),ur=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Tr="td th iframe video audio object script code",Wr=Ke("non_empty_elements",Tr+" pre svg textarea summary",Wn),Qr=Ke("move_caret_before_on_enter_elements",Tr+" table",Wn),lo="h1 h2 h3 h4 h5 h6",Zo=Ke("text_block_elements",lo+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),li=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",Zo),Mi=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Co=Ke("transparent_elements","a ins del canvas map"),yo=Ke("wrap_block_elements","pre "+lo);Za("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),ca=>{Le[ca]=new RegExp("]*>","gi")});const Vo=ca=>{const Zs=Y.from(B["@"]),ru=/[*?+]/;ve(W1(Zs,ca??""),({name:ju,element:Pf,aliasName:Gd})=>{if(Gd&&(B[Gd]=Pf),ru.test(ju)){const Rf=Pf;Rf.pattern=Z1(ju),oe.push(Rf)}else B[ju]=Pf})},Fi=ca=>{oe=[],ve(tt(B),Zs=>{delete B[Zs]}),Vo(ca)},la=(ca,Zs)=>{var ru,ju;delete e1.text_block_elements,delete e1.block_elements;const Pf=Zs.extends?!Om(Zs.extends):!1,Gd=Zs.extends;if(H[ca]=Gd?H[Gd]:{},be[ca]=Gd??ca,Wr[ca.toUpperCase()]={},Wr[ca]={},Pf||(li[ca.toUpperCase()]={},li[ca]={}),Gd&&!B[ca]&&B[Gd]){const Rf=K0(B[Gd]);delete Rf.removeEmptyAttrs,delete Rf.removeEmpty,B[ca]=Rf}else B[ca]={attributesOrder:[],attributes:{}};if(C(Zs.attributes)){const Rf=fp=>{Lf.attributesOrder.push(fp),Lf.attributes[fp]={}},Lf=(ru=B[ca])!==null&&ru!==void 0?ru:{};delete Lf.attributesDefault,delete Lf.attributesForced,delete Lf.attributePatterns,delete Lf.attributesRequired,Lf.attributesOrder=[],Lf.attributes={},ve(Zs.attributes,fp=>{const N0=yg(ut);q1(fp).each(({preset:F0,name:$0})=>{F0?$0==="global"&&ve(N0,Rf):Rf($0)})}),B[ca]=Lf}if(R(Zs.padEmpty)){const Rf=(ju=B[ca])!==null&&ju!==void 0?ju:{};Rf.paddEmpty=Zs.padEmpty,B[ca]=Rf}if(C(Zs.children)){const Rf={},Lf=N0=>{Rf[N0]={}},fp=N0=>{zp(ut,N0).each(F0=>{ve(F0,Lf)})};ve(Zs.children,N0=>{q1(N0).each(({preset:F0,name:$0})=>{F0?fp($0):Lf($0)})}),H[ca]=Rf}Gd&&Ge(H,(Rf,Lf)=>{Rf[Gd]&&(H[Lf]=Rf=sa({},H[Lf]),Rf[ca]=Rf[Gd])})},bs=ca=>{ve(sy(ca??""),({name:Zs,cloneName:ru})=>{la(Zs,{extends:ru})})},Ms=ca=>{_(ca)?Ge(ca,(Zs,ru)=>la(ru,Zs)):v(ca)&&bs(ca)},wl=ca=>{ve($_(ca??""),({operation:Zs,name:ru,validChildren:ju})=>{const Pf=Zs==="replace"?{"#comment":{}}:H[ru],Gd=Lf=>{Zs==="remove"?delete Pf[Lf]:Pf[Lf]={}},Rf=Lf=>{zp(ut,Lf).each(fp=>{ve(fp,Gd)})};ve(ju,({preset:Lf,name:fp})=>{Lf?Rf(fp):Gd(fp)}),H[ru]=Pf})},Vl=ca=>{const Zs=B[ca];if(Zs)return Zs;let ru=oe.length;for(;ru--;){const ju=oe[ru];if(ju.pattern.test(ca))return ju}},Uu=()=>{r.valid_elements?(Fi(r.valid_elements),Za(At,(ca,Zs)=>{H[Zs]=ca.children})):(Za(At,(ca,Zs)=>{B[Zs]={attributes:ca.attributes,attributesOrder:ca.attributesOrder},H[Zs]=ca.children}),Za(Qd("strong/b em/i"),ca=>{const Zs=Qd(ca,"/");B[Zs[1]].outputName=Zs[0]}),Za(Mi,(ca,Zs)=>{B[Zs]&&(r.padd_empty_block_inline_children&&(B[Zs].paddInEmptyBlock=!0),B[Zs].removeEmpty=!0)}),Za(Qd("ol ul blockquote a table tbody"),ca=>{B[ca]&&(B[ca].removeEmpty=!0)}),Za(Qd("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),ca=>{B[ca]&&(B[ca].paddEmpty=!0)}),Za(Qd("span"),ca=>{B[ca].removeEmptyAttrs=!0})),delete B.svg,Ms(r.custom_elements),wl(r.valid_children),Vo(r.extended_valid_elements),wl("+ol[ul|ol],+ul[ul|ol]"),Za({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(ca,Zs)=>{B[Zs]&&(B[Zs].parentsRequired=Qd(ca))}),r.invalid_elements&&Za(Bm(r.invalid_elements),ca=>{B[ca]&&delete B[ca]}),Vl("span")||Vo("span[!data-mce-type|*]")},Wf=$(nn),ic=$(un),vi=$(yn),na=$(ur),ol=$(li),Ti=$(Zo),pa=$(Mi),ps=$(Object.seal(Wn)),Ci=$(rr),ms=$(Wr),Es=$(Qr),Bd=$(Qn),Cl=$(Co),dd=$(yo),z0=$(Object.seal(Le)),$v=(ca,Zs)=>{const ru=H[ca.toLowerCase()];return!!(ru&&ru[Zs.toLowerCase()])},Cp=(ca,Zs)=>{const ru=Vl(ca);if(ru)if(Zs){if(ru.attributes[Zs])return!0;const ju=ru.attributePatterns;if(ju){let Pf=ju.length;for(;Pf--;)if(ju[Pf].pattern.test(Zs))return!0}}else return!0;return!1},Om=ca=>Ot(ol(),ca),Hg=ca=>!Br(ca,"#")&&Cp(ca)&&!Om(ca),Sm=ca=>Ot(dd(),ca)||Hg(ca),Zg=$(be);return Uu(),{type:ut,children:H,elements:B,getValidStyles:Wf,getValidClasses:vi,getBlockElements:ol,getInvalidStyles:ic,getVoidElements:ps,getTextBlockElements:Ti,getTextInlineElements:pa,getBoolAttrs:na,getElementRule:Vl,getSelfClosingElements:Ci,getNonEmptyElements:ms,getMoveCaretBeforeOnEnterElements:Es,getWhitespaceElements:Bd,getTransparentElements:Cl,getSpecialElements:z0,isValidChild:$v,isValid:Cp,isBlock:Om,isInline:Hg,isWrapper:Sm,getCustomElements:Zg,addValidElements:Vo,setValidElements:Fi,addCustomElements:Ms,addValidChildren:wl}},Rl=r=>({value:zx(r)}),zx=r=>Zn(r,"#").toUpperCase(),pb=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},V_=r=>{const g=pb(r.red)+pb(r.green)+pb(r.blue);return Rl(g)},Lo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,Nm=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,D4=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),bg=(r,g,B,H)=>{const oe=parseInt(r,10),be=parseInt(g,10),Le=parseInt(B,10),Ke=parseFloat(H);return D4(oe,be,Le,Ke)},B4=r=>Lo.test(r)?"rgb":Nm.test(r)?"rgba":"other",c0=r=>{const g=Lo.exec(r);if(g!==null)return Y.some(bg(g[1],g[2],g[3],"1"));const B=Nm.exec(r);return B!==null?Y.some(bg(B[1],B[2],B[3],B[4])):Y.none()},mb=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,od=r=>c0(r).map(V_).map(g=>"#"+g.value).getOr(r),U_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,oe=/\s+$/,be={};let Le,Ke;const ut=pl;g&&(Le=g.getValidStyles(),Ke=g.getInvalidStyles());const At=(`\\" \\' \\; \\: ; : `+ut).split(" ");for(let un=0;un{const yn={};let Qn=!1;const rr=r.url_converter,Wn=r.url_converter_scope||nn,ur=(Co,yo,Vo)=>{const Fi=yn[Co+"-top"+yo];if(!Fi)return;const la=yn[Co+"-right"+yo];if(!la)return;const bs=yn[Co+"-bottom"+yo];if(!bs)return;const Ms=yn[Co+"-left"+yo];if(!Ms)return;const wl=[Fi,la,bs,Ms];let Vl=wl.length-1;for(;Vl--&&wl[Vl]===wl[Vl+1];);Vl>-1&&Vo||(yn[Co+yo]=Vl===-1?wl[0]:wl.join(" "),delete yn[Co+"-top"+yo],delete yn[Co+"-right"+yo],delete yn[Co+"-bottom"+yo],delete yn[Co+"-left"+yo])},Tr=Co=>{const yo=yn[Co];if(!yo)return;const Vo=yo.indexOf(",")>-1?[yo]:yo.split(" ");let Fi=Vo.length;for(;Fi--;)if(Vo[Fi]!==Vo[0])return!1;return yn[Co]=Vo[0],!0},Wr=(Co,yo,Vo,Fi)=>{Tr(yo)&&Tr(Vo)&&Tr(Fi)&&(yn[Co]=yn[yo]+" "+yn[Vo]+" "+yn[Fi],delete yn[yo],delete yn[Vo],delete yn[Fi])},Qr=Co=>(Qn=!0,be[Co]),lo=(Co,yo)=>(Qn&&(Co=Co.replace(/\uFEFF[0-9]/g,Vo=>be[Vo])),yo||(Co=Co.replace(/\\([\'\";:])/g,"$1")),Co),Zo=Co=>String.fromCharCode(parseInt(Co.slice(1),16)),li=Co=>Co.replace(/\\[0-9a-f]+/gi,Zo),Mi=(Co,yo,Vo,Fi,la,bs)=>{if(la=la||bs,la)return la=lo(la),"'"+la.replace(/\'/g,"\\'")+"'";if(yo=lo(yo||Vo||Fi||""),!r.allow_script_urls){const Ms=yo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ms)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ms))return""}return rr&&(yo=rr.call(Wn,yo,"style")),"url('"+yo.replace(/\'/g,"\\'")+"')"};if(un){un=un.replace(/[\u0000-\u001F]/g,""),un=un.replace(/\\[\"\';:\uFEFF]/g,Qr).replace(/\"[^\"]+\"|\'[^\']+\'/g,yo=>yo.replace(/[;:]/g,Qr));let Co;for(;Co=H.exec(un);){H.lastIndex=Co.index+Co[0].length;let yo=Co[1].replace(oe,"").toLowerCase(),Vo=Co[2].replace(oe,"");if(yo&&Vo){if(yo=li(yo),Vo=li(Vo),yo.indexOf(ut)!==-1||yo.indexOf('"')!==-1||!r.allow_script_urls&&(yo==="behavior"||/expression\s*\(|\/\*|\*\//.test(Vo)))continue;yo==="font-weight"&&Vo==="700"?Vo="bold":(yo==="color"||yo==="background-color")&&(Vo=Vo.toLowerCase()),B4(Vo)==="rgb"&&c0(Vo).each(Fi=>{Vo=od(mb(Fi)).toLowerCase()}),Vo=Vo.replace(B,Mi),yn[yo]=Qn?lo(Vo,!0):Vo}}ur("border","",!0),ur("border","-width"),ur("border","-color"),ur("border","-style"),ur("padding",""),ur("margin",""),Wr("border","border-width","border-style","border-color"),yn.border==="medium none"&&delete yn.border,yn["border-image"]==="none"&&delete yn["border-image"]}return yn},serialize:(un,yn)=>{let Qn="";const rr=(ur,Tr)=>{const Wr=Tr[ur];if(Wr)for(let Qr=0,lo=Wr.length;Qr0?" ":"")+Zo+": "+li+";")}},Wn=(ur,Tr)=>{if(!Ke||!Tr)return!0;let Wr=Ke["*"];return Wr&&Wr[ur]?!1:(Wr=Ke[Tr],!(Wr&&Wr[ur]))};return yn&&Le?(rr("*",Le),rr(yn,Le)):Ge(un,(ur,Tr)=>{ur&&Wn(Tr,yn)&&(Qn+=(Qn.length>0?" ":"")+Tr+": "+ur+";")}),Qn}};return nn},ly={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},wc=r=>r instanceof Event||A(r.initEvent),xg=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===re,Nx=r=>T(r.preventDefault)||wc(r),Sh=(r,g)=>{const B=g??{};for(const H in r)Ot(ly,H)||(B[H]=r[H]);return P(r.composedPath)&&(B.composedPath=()=>r.composedPath()),P(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),P(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},j_=(r,g,B,H)=>{var oe;const be=Sh(g,H);return be.type=r,T(be.target)&&(be.target=(oe=be.srcElement)!==null&&oe!==void 0?oe:B),Nx(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,A(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,A(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},xg(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:re,be.isPropagationStopped=be.cancelBubble===!0?q:re,be.isImmediatePropagationStopped=re)),be},gb="mce-data-",Y1=/^(?:mouse|contextmenu)|click/,cy=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},np=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},jO=r=>P(r)&&Y1.test(r.type),_g=(r,g)=>{const B=j_(r.type,r,document,g);if(jO(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,oe=H.documentElement,be=H.body,Le=B;Le.pageX=r.clientX+(oe&&oe.scrollLeft||be&&be.scrollLeft||0)-(oe&&oe.clientLeft||be&&be.clientLeft||0),Le.pageY=r.clientY+(oe&&oe.scrollTop||be&&be.scrollTop||0)-(oe&&oe.clientTop||be&&be.clientTop||0)}return B},Q_=(r,g,B)=>{const H=r.document,oe={type:"ready"};if(B.domLoaded){g(oe);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Le=()=>{np(r,"DOMContentLoaded",Le),np(r,"load",Le),B.domLoaded||(B.domLoaded=!0,g(oe)),r=null};be()?Le():cy(r,"DOMContentLoaded",Le),B.domLoaded||cy(r,"load",Le)};class wg{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,oe){const be=this;let Le;const Ke=window,ut=yn=>{be.executeHandlers(_g(yn||Ke.event),At)};if(!g||Mt(g)||bn(g))return H;let At;g[be.expando]?At=g[be.expando]:(At=be.count++,g[be.expando]=At,be.events[At]={}),oe=oe||g;const nn=B.split(" ");let un=nn.length;for(;un--;){let yn=nn[un],Qn=ut,rr=!1,Wn=!1;if(yn==="DOMContentLoaded"&&(yn="ready"),be.domLoaded&&yn==="ready"&&g.readyState==="complete"){H.call(oe,_g({type:yn}));continue}!be.hasFocusIn&&(yn==="focusin"||yn==="focusout")&&(rr=!0,Wn=yn==="focusin"?"focus":"blur",Qn=ur=>{const Tr=_g(ur||Ke.event);Tr.type=Tr.type==="focus"?"focusin":"focusout",be.executeHandlers(Tr,At)}),Le=be.events[At][yn],Le?yn==="ready"&&be.domLoaded?H(_g({type:yn})):Le.push({func:H,scope:oe}):(be.events[At][yn]=Le=[{func:H,scope:oe}],Le.fakeName=Wn,Le.capture=rr,Le.nativeHandler=Qn,yn==="ready"?Q_(g,Qn,be):cy(g,Wn||yn,Qn,rr))}return g=Le=null,H}unbind(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=g[this.expando];if(oe){let be=this.events[oe];if(B){const Le=B.split(" ");let Ke=Le.length;for(;Ke--;){const ut=Le[Ke],At=be[ut];if(At){if(H){let nn=At.length;for(;nn--;)if(At[nn].func===H){const un=At.nativeHandler,yn=At.fakeName,Qn=At.capture,rr=At.slice(0,nn).concat(At.slice(nn+1));rr.nativeHandler=un,rr.fakeName=yn,rr.capture=Qn,be[ut]=rr}}(!H||At.length===0)&&(delete be[ut],np(g,At.fakeName||ut,At.nativeHandler,At.capture))}}}else Ge(be,(Le,Ke)=>{np(g,Le.fakeName||Ke,Le.nativeHandler,Le.capture)}),be={};for(const Le in be)if(Ot(be,Le))return this;delete this.events[oe];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=_g({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(oe,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!oe.isPropagationStopped());return this}clean(g){if(!g||Mt(g)||bn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],oe=H&&H[g.type];if(oe)for(let be=0,Le=oe.length;be{T(B)||B===""?tc(r,g):ll(r,g,B)},Hd=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),ei=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,oe=r.previousSibling;oe;oe=oe.previousSibling){const be=oe.nodeType;g&&Mt(oe)&&(be===H||!oe.data.length)||(B++,H=be)}return B},Fx=(r,g)=>{const B=gu(g,"style"),H=r.serialize(r.parse(B),ma(g));uh(g,H_,H)},id=(r,g)=>L(r)?Ot(QO,g)?r+"":r+"px":r,$x=(r,g,B)=>{const H=Hd(g);T(B)||B===""?qu(r,H):Of(r,H,id(B,H))},HO=(r,g,B)=>{const H=g.keep_values,oe={set:(Le,Ke,ut)=>{const At=_r.fromDom(Le);A(g.url_converter)&&P(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ut,Le));const nn="data-mce-"+ut;uh(At,nn,Ke),uh(At,ut,Ke)},get:(Le,Ke)=>{const ut=_r.fromDom(Le);return gu(ut,"data-mce-"+Ke)||gu(ut,Ke)}},be={style:{set:(Le,Ke)=>{const ut=_r.fromDom(Le);H&&uh(ut,H_,Ke),tc(ut,"style"),v(Ke)&&aa(ut,r.parse(Ke))},get:Le=>{const Ke=_r.fromDom(Le),ut=gu(Ke,H_)||gu(Ke,"style");return r.serialize(r.parse(ut),ma(Ke))}}};return H&&(be.href=be.src=oe),be},cc=(r,g={})=>{const B={},H=window,oe={};let be=0;const Le=!0,Ke=!0,ut=Gl.forElement(_r.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),At=[],nn=g.schema?g.schema:zm({}),un=U_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),yn=g.ownEvents?new wg:wg.Event,Qn=nn.getBlockElements(),rr=ho=>v(ho)?Ot(Qn,ho):ne(ho)&&(Ot(Qn,ho.nodeName)||lh(nn,ho)),Wn=ho=>ho&&r&&v(ho)?r.getElementById(ho):ho,ur=ho=>{const bo=Wn(ho);return P(bo)?_r.fromDom(bo):null},Tr=(ho,bo,di="")=>{let ri;const Ta=ur(ho);if(P(Ta)&&Wl(Ta)){const zs=vT[bo];zs&&zs.get?ri=zs.get(Ta.dom,bo):ri=gu(Ta,bo)}return P(ri)?ri:di},Wr=ho=>{const bo=Wn(ho);return T(bo)?[]:bo.attributes},Qr=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=di===""?null:di,Su=gu(Ta,bo),V0=vT[bo];V0&&V0.set?V0.set(Ta.dom,zs,bo):uh(Ta,bo,zs),Su!==zs&&g.onSetAttrib&&g.onSetAttrib({attrElm:Ta.dom,attrName:bo,attrValue:zs})}})},lo=(ho,bo)=>ho.cloneNode(bo),Zo=()=>g.root_element||r.body,li=ho=>{const bo=Wu(ho);return{x:bo.x,y:bo.y,w:bo.width,h:bo.height}},Mi=(ho,bo)=>Pu(r.body,Wn(ho),bo),Co=(ho,bo,di)=>{na(ho,ri=>{const Ta=_r.fromDom(ri);$x(Ta,bo,di),g.update_styles&&Fx(un,Ta)})},yo=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Ge(bo,(Ta,zs)=>{$x(ri,zs,Ta)}),g.update_styles&&Fx(un,ri)})},Vo=(ho,bo,di)=>{const ri=Wn(ho);if(!(T(ri)||!V(ri)&&!ie(ri)))return di?rs(_r.fromDom(ri),Hd(bo)):(bo=bo.replace(/-(\D)/g,(Ta,zs)=>zs.toUpperCase()),bo==="float"&&(bo="cssFloat"),ri.style?ri.style[bo]:void 0)},Fi=ho=>{const bo=Wn(ho);if(!bo)return{w:0,h:0};let di=Vo(bo,"width"),ri=Vo(bo,"height");return(!di||di.indexOf("px")===-1)&&(di="0"),(!ri||ri.indexOf("px")===-1)&&(ri="0"),{w:parseInt(di,10)||bo.offsetWidth||bo.clientWidth,h:parseInt(ri,10)||bo.offsetHeight||bo.clientHeight}},la=ho=>{const bo=Wn(ho),di=Mi(bo),ri=Fi(bo);return{x:di.x,y:di.y,w:ri.w,h:ri.h}},bs=(ho,bo)=>{if(!ho)return!1;const di=C(ho)?ho:[ho];return de(di,ri=>yd(_r.fromDom(ri),bo))},Ms=(ho,bo,di,ri)=>{const Ta=[];let zs=Wn(ho);ri=ri===void 0;const Su=di||(Zo().nodeName!=="BODY"?Zo().parentNode:null);if(v(bo))if(bo==="*")bo=ne;else{const V0=bo;bo=ZS=>bs(ZS,V0)}for(;zs&&!(zs===Su||T(zs.nodeType)||vn(zs)||Ln(zs));){if(!bo||bo(zs))if(ri)Ta.push(zs);else return[zs];zs=zs.parentNode}return ri?Ta:null},wl=(ho,bo,di)=>{const ri=Ms(ho,bo,di,!1);return ri&&ri.length>0?ri[0]:null},Vl=(ho,bo,di)=>{let ri=bo;if(ho){v(bo)&&(ri=Ta=>bs(Ta,bo));for(let Ta=ho[di];Ta;Ta=Ta[di])if(A(ri)&&ri(Ta))return Ta}return null},Uu=(ho,bo)=>Vl(ho,bo,"nextSibling"),Wf=(ho,bo)=>Vl(ho,bo,"previousSibling"),ic=ho=>A(ho.querySelectorAll),vi=(ho,bo)=>{var di,ri;const Ta=(ri=(di=Wn(bo))!==null&&di!==void 0?di:g.root_element)!==null&&ri!==void 0?ri:r;return ic(Ta)?Me(Ta.querySelectorAll(ho)):[]},na=function(ho,bo,di){const ri=di??this;if(C(ho)){const Ta=[];return X1(ho,(zs,Su)=>{const V0=Wn(zs);V0&&Ta.push(bo.call(ri,V0,Su))}),Ta}else{const Ta=Wn(ho);return Ta?bo.call(ri,Ta):!1}},ol=(ho,bo)=>{na(ho,di=>{Ge(bo,(ri,Ta)=>{Qr(di,Ta,ri)})})},Ti=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Fu(ri,bo)})},pa=(ho,bo,di,ri,Ta)=>na(ho,zs=>{const Su=v(bo)?r.createElement(bo):bo;return P(di)&&ol(Su,di),ri&&(!v(ri)&&ri.nodeType?Su.appendChild(ri):v(ri)&&Ti(Su,ri)),Ta?Su:zs.appendChild(Su)}),ps=(ho,bo,di)=>pa(r.createElement(ho),ho,bo,di,!0),Ci=Lm.decode,ms=Lm.encodeAllRaw,Es=(ho,bo,di="")=>{let ri="<"+ho;for(const Ta in bo)cn(bo,Ta)&&(ri+=" "+Ta+'="'+ms(bo[Ta])+'"');return zr(di)&&Ot(nn.getVoidElements(),ho)?ri+" />":ri+">"+di+""},Bd=ho=>{const bo=r.createElement("div"),di=r.createDocumentFragment();di.appendChild(bo),ho&&(bo.innerHTML=ho);let ri;for(;ri=bo.firstChild;)di.appendChild(ri);return di.removeChild(bo),di},Cl=(ho,bo)=>na(ho,di=>{const ri=_r.fromDom(di);return bo&&ve(vc(ri),Ta=>{Ml(Ta)&&Ta.dom.length===0?hs(Ta):xc(ri,Ta)}),hs(ri),ri.dom}),dd=ho=>na(ho,bo=>{const di=bo.attributes;for(let ri=di.length-1;ri>=0;ri--)bo.removeAttributeNode(di.item(ri))}),z0=ho=>un.parse(ho),$v=(ho,bo)=>un.serialize(ho,bo),Cp=ho=>{if(Hy!==cc.DOM&&r===document){if(B[ho])return;B[ho]=!0}let bo=r.getElementById("mceDefaultStyles");if(!bo){bo=r.createElement("style"),bo.id="mceDefaultStyles",bo.type="text/css";const di=r.head;di.firstChild?di.insertBefore(bo,di.firstChild):di.appendChild(bo)}bo.styleSheet?bo.styleSheet.cssText+=ho:bo.appendChild(r.createTextNode(ho))},Om=ho=>{ho||(ho=""),ve(ho.split(","),bo=>{oe[bo]=!0,ut.load(bo).catch(k)})},Hg=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=bo.split(" ");ve(zs,Su=>{P(di)?(di?Cu:Bu)(Ta,Su):vd(Ta,Su)})}})},Sm=(ho,bo)=>{Hg(ho,bo,!0)},Zg=(ho,bo)=>{Hg(ho,bo,!1)},ca=(ho,bo)=>{const di=ur(ho),ri=bo.split(" ");return P(di)&&Oe(ri,Ta=>cs(di,Ta))},Zs=ho=>{na(ho,bo=>qu(_r.fromDom(bo),"display"))},ru=ho=>{na(ho,bo=>Of(_r.fromDom(bo),"display","none"))},ju=ho=>{const bo=ur(ho);return P(bo)&&Ia(Ri(bo,"display"),"none")},Pf=ho=>(ho||"mce_")+be++,Gd=ho=>{const bo=ur(ho);return P(bo)?ne(bo.dom)?bo.dom.outerHTML:su(bo):""},Rf=(ho,bo)=>{na(ho,di=>{ne(di)&&(di.outerHTML=bo)})},Lf=(ho,bo)=>{const di=Wn(bo);return na(ho,ri=>{const Ta=di==null?void 0:di.parentNode,zs=di==null?void 0:di.nextSibling;return Ta&&(zs?Ta.insertBefore(ri,zs):Ta.appendChild(ri)),ri})},fp=(ho,bo,di)=>na(bo,ri=>{var Ta;const zs=C(bo)?ho.cloneNode(!0):ho;return di&&X1(om(ri.childNodes),Su=>{zs.appendChild(Su)}),(Ta=ri.parentNode)===null||Ta===void 0||Ta.replaceChild(zs,ri),ri}),N0=(ho,bo)=>{if(ho.nodeName!==bo.toUpperCase()){const di=ps(bo);return X1(Wr(ho),ri=>{Qr(di,ri.nodeName,Tr(ho,ri.nodeName))}),fp(di,ho,!0),di}else return ho},F0=(ho,bo)=>{let di=ho;for(;di;){let ri=bo;for(;ri&&di!==ri;)ri=ri.parentNode;if(di===ri)break;di=di.parentNode}return!di&&ho.ownerDocument?ho.ownerDocument.documentElement:di},$0=(ho,bo,di)=>O(bo)?Hi(nn,ho,{...di,isContent:Ta=>{const zs=Ta.nodeName.toLowerCase();return!!bo[zs]}}):Hi(nn,ho,di),rg=()=>r.createRange(),jy=(ho,bo,di)=>{let ri=rg(),Ta,zs;if(ho&&bo&&ho.parentNode&&bo.parentNode){const Su=ho.parentNode;return ri.setStart(Su,ei(ho)),ri.setEnd(bo.parentNode,ei(bo)),Ta=ri.extractContents(),ri=rg(),ri.setStart(bo.parentNode,ei(bo)+1),ri.setEnd(Su,ei(ho)+1),zs=ri.extractContents(),Su.insertBefore(Rm(Hy,Ta,nn),ho),di?Su.insertBefore(di,ho):Su.insertBefore(bo,ho),Su.insertBefore(Rm(Hy,zs,nn),ho),Cl(ho),di||bo}else return},gx=(ho,bo,di,ri)=>{if(C(ho)){let Ta=ho.length;const zs=[];for(;Ta--;)zs[Ta]=gx(ho[Ta],bo,di,ri);return zs}else return g.collect&&(ho===r||ho===H)&&At.push([ho,bo,di,ri]),yn.bind(ho,bo,di,ri||Hy)},yO=(ho,bo,di)=>{if(C(ho)){let ri=ho.length;const Ta=[];for(;ri--;)Ta[ri]=yO(ho[ri],bo,di);return Ta}else{if(At.length>0&&(ho===r||ho===H)){let ri=At.length;for(;ri--;){const[Ta,zs,Su]=At[ri];ho===Ta&&(!bo||bo===zs)&&(!di||di===Su)&&yn.unbind(Ta,zs,Su)}}return yn.unbind(ho,bo,di)}},b8=(ho,bo,di)=>yn.dispatch(ho,bo,di),Qy=(ho,bo,di)=>yn.dispatch(ho,bo,di),HS=ho=>{if(ho&&V(ho)){const bo=ho.getAttribute("data-mce-contenteditable");return bo&&bo!=="inherit"?bo:ho.contentEditable!=="inherit"?ho.contentEditable:null}else return null},Hy={doc:r,settings:g,win:H,files:oe,stdMode:Le,boxModel:Ke,styleSheetLoader:ut,boundEvents:At,styles:un,schema:nn,events:yn,isBlock:rr,root:null,clone:lo,getRoot:Zo,getViewPort:li,getRect:la,getSize:Fi,getParent:wl,getParents:Ms,get:Wn,getNext:Uu,getPrev:Wf,select:vi,is:bs,add:pa,create:ps,createHTML:Es,createFragment:Bd,remove:Cl,setStyle:Co,getStyle:Vo,setStyles:yo,removeAllAttribs:dd,setAttrib:Qr,setAttribs:ol,getAttrib:Tr,getPos:Mi,parseStyle:z0,serializeStyle:$v,addStyle:Cp,loadCSS:Om,addClass:Sm,removeClass:Zg,hasClass:ca,toggleClass:Hg,show:Zs,hide:ru,isHidden:ju,uniqueId:Pf,setHTML:Ti,getOuterHTML:Gd,setOuterHTML:Rf,decode:Ci,encode:ms,insertAfter:Lf,replace:fp,rename:N0,findCommonAncestor:F0,run:na,getAttribs:Wr,isEmpty:$0,createRng:rg,nodeIndex:ei,split:jy,bind:gx,unbind:yO,fire:Qy,dispatch:b8,getContentEditable:HS,getContentEditableParent:ho=>{const bo=Zo();let di=null;for(let ri=ho;ri&&ri!==bo&&(di=HS(ri),di===null);ri=ri.parentNode);return di},isEditable:ho=>{if(P(ho)){const bo=ne(ho)?ho:ho.parentElement;return P(bo)&&V(bo)&&Ol(_r.fromDom(bo))}else return!1},destroy:()=>{if(At.length>0){let ho=At.length;for(;ho--;){const[bo,di,ri]=At[ho];yn.unbind(bo,di,ri)}}Ge(oe,(ho,bo)=>{ut.unload(bo),delete oe[bo]})},isChildOf:(ho,bo)=>ho===bo||bo.contains(ho),dumpRng:ho=>"startContainer: "+ho.startContainer.nodeName+", startOffset: "+ho.startOffset+", endContainer: "+ho.endContainer.nodeName+", endOffset: "+ho.endOffset},vT=HO(un,g,$(Hy));return Hy};cc.DOM=cc(document),cc.nodeIndex=ei;const Xu=cc.DOM,Vx=0,ZO=1,u0=2,vb=3;class Fm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const oe=Xu;let be;const Le=()=>{oe.remove(At),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Le(),B()},ut=()=>{Le(),H("Failed to load script: "+g)},At=oe.uniqueId();be=document.createElement("script"),be.id=At,be.type="text/javascript",be.src=To._addCacheSuffix(g),this.settings.referrerPolicy&&oe.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ut,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===u0}markDone(g){this.states[g]=u0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Vx),new Promise((oe,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:oe,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ut,At)=>{Et(B.scriptLoadedCallbacks,At).each(nn=>{ve(nn,un=>un[ut](At))}),delete B.scriptLoadedCallbacks[At]},oe=ut=>{const At=Te(ut,nn=>nn.status==="rejected");return At.length>0?Promise.reject($e(At,({reason:nn})=>C(nn)?nn:[nn])):Promise.resolve()},be=ut=>Promise.allSettled(ye(ut,At=>B.states[At]===u0?(H("resolve",At),Promise.resolve()):B.states[At]===vb?(H("reject",At),Promise.reject(At)):(B.states[At]=ZO,B.loadScript(At).then(()=>{B.states[At]=u0,H("resolve",At);const nn=B.queue;return nn.length>0?(B.queue=[],be(nn).then(oe)):Promise.resolve()},()=>(B.states[At]=vb,H("reject",At),Promise.reject(At)))))),Le=ut=>(B.loading=!0,be(ut).then(At=>{B.loading=!1;const nn=B.queueLoadedCallbacks.shift();return Y.from(nn).each(K),oe(At)})),Ke=Pn(g);return B.loading?new Promise((ut,At)=>{B.queueLoadedCallbacks.push(()=>{Le(Ke).then(ut,At)})}):Le(Ke)}}Fm.ScriptLoader=new Fm;const Z_=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},q_=r=>_(r)&&Ot(r,"raw"),uc=r=>C(r)&&r.length>1,uy={},Zc=Ar("en"),qO=()=>Et(uy,Zc.get()),ff={getData:()=>ht(uy,r=>({...r})),setCode:r=>{r&&Zc.set(r)},getCode:()=>Zc.get(),add:(r,g)=>{let B=uy[r];B||(uy[r]=B={});const H=ye(tt(g),oe=>oe.toLowerCase());Ge(g,(oe,be)=>{const Le=be.toLowerCase();Le!==be&&Z_(H,Le)?(Ot(g,Le)||(B[Le]=oe),B[be]=oe):B[Le]=oe})},translate:r=>{const g=qO().getOr({}),B=Le=>A(Le)?Object.prototype.toString.call(Le):H(Le)?"":""+Le,H=Le=>Le===""||Le===null||Le===void 0,oe=Le=>{const Ke=B(Le);return Ot(g,Ke)?B(g[Ke]):Et(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Le=>Le.replace(/{context:\w+}$/,"");if(H(r))return"";if(q_(r))return B(r.raw);if(uc(r)){const Le=r.slice(1),Ke=oe(r[0]).replace(/\{([0-9]+)\}/g,(ut,At)=>Ot(Le,At)?B(Le[At]):ut);return be(Ke)}return be(oe(r))},isRtl:()=>qO().bind(r=>Et(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>Ot(uy,r)},fh=()=>{const r=[],g={},B={},H=[],oe=(Wn,ur)=>{const Tr=Te(H,Wr=>Wr.name===Wn&&Wr.state===ur);ve(Tr,Wr=>Wr.resolve())},be=Wn=>Ot(g,Wn),Le=Wn=>Ot(B,Wn),Ke=Wn=>{if(B[Wn])return B[Wn].instance},ut=(Wn,ur)=>{const Tr=ff.getCode(),Wr=","+(ur||"")+",";!Tr||ur&&Wr.indexOf(","+Tr+",")===-1||Fm.ScriptLoader.add(g[Wn]+"/langs/"+Tr+".js")},At=(Wn,ur)=>{fh.languageLoad!==!1&&(be(Wn)?ut(Wn,ur):rr(Wn,"loaded").then(()=>ut(Wn,ur)))},nn=(Wn,ur)=>(r.push(ur),B[Wn]={instance:ur},oe(Wn,"added"),ur),un=Wn=>{delete g[Wn],delete B[Wn]},yn=(Wn,ur)=>v(ur)?v(Wn)?{prefix:"",resource:ur,suffix:""}:{prefix:Wn.prefix,resource:ur,suffix:Wn.suffix}:ur,Qn=(Wn,ur)=>{if(g[Wn])return Promise.resolve();let Tr=v(ur)?ur:ur.prefix+ur.resource+ur.suffix;Tr.indexOf("/")!==0&&Tr.indexOf("://")===-1&&(Tr=fh.baseURL+"/"+Tr),g[Wn]=Tr.substring(0,Tr.lastIndexOf("/"));const Wr=()=>(oe(Wn,"loaded"),Promise.resolve());return B[Wn]?Wr():Fm.ScriptLoader.add(Tr).then(Wr)},rr=(Wn,ur="added")=>ur==="added"&&Le(Wn)||ur==="loaded"&&be(Wn)?Promise.resolve():new Promise(Tr=>{H.push({name:Wn,state:ur,resolve:Tr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:At,add:nn,remove:un,createUrl:yn,load:Qn,waitFor:rr}};fh.languageLoad=!0,fh.baseURL="",fh.PluginManager=fh(),fh.ThemeManager=fh(),fh.ModelManager=fh();const fy=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},jh=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},r1=(r,g,B)=>ts(r,g,B).isSome(),G1=$("mce-annotation"),Sg=$("data-mce-annotation"),dy=$("data-mce-annotation-uid"),K1=$("data-mce-annotation-active"),o1=$("data-mce-annotation-classes"),kg=$("data-mce-annotation-attrs"),J1=r=>g=>va(g,r),ev=(r,g)=>{const B=r.selection.getRng(),H=_r.fromDom(B.startContainer),oe=_r.fromDom(r.getBody()),be=g.fold(()=>"."+G1(),ut=>`[${Sg()}="${ut}"]`),Le=gs(H,B.startOffset).getOr(H);return bu(Le,be,J1(oe)).bind(ut=>ec(ut,`${dy()}`).bind(At=>ec(ut,`${Sg()}`).map(nn=>{const un=tv(r,At);return{uid:At,name:nn,elements:un}})))},z4=r=>Wl(r)&&cs(r,G1()),W_=(r,g)=>Dc(r,"data-mce-bogus")||r1(r,'[data-mce-bogus="all"]',J1(g)),tv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${dy()}="${g}"]`);return Te(H,oe=>!W_(oe,B))},nv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${Sg()}="${g}"]`),oe={};return ve(H,be=>{if(!W_(be,B)){const Le=gu(be,dy()),Ke=Et(oe,Le).getOr([]);oe[Le]=Ke.concat([be])}}),oe},jx=(r,g)=>{const B=Ar({}),H=()=>({listeners:[],previous:Ts()}),oe=(un,yn)=>{be(un,Qn=>(yn(Qn),Qn))},be=(un,yn)=>{const Qn=B.get(),rr=Et(Qn,un).getOrThunk(H),Wn=yn(rr);Qn[un]=Wn,B.set(Qn)},Le=(un,yn,Qn)=>{oe(un,rr=>{ve(rr.listeners,Wn=>Wn(!0,un,{uid:yn,nodes:ye(Qn,ur=>ur.dom)}))})},Ke=un=>{oe(un,yn=>{ve(yn.listeners,Qn=>Qn(!1,un))})},ut=(un,yn)=>{ve(tv(r,un),Qn=>{yn?ll(Qn,K1(),"true"):tc(Qn,K1())})},At=jh(()=>{const un=Ue(g.getNames());ve(un,yn=>{be(yn,Qn=>{const rr=Qn.previous.get();return ev(r,Y.some(yn)).fold(()=>{rr.each(Wn=>{Ke(yn),Qn.previous.clear(),ut(Wn,!1)})},({uid:Wn,name:ur,elements:Tr})=>{Ia(rr,Wn)||(rr.each(Wr=>ut(Wr,!1)),Le(ur,Wn,Tr),Qn.previous.set(Wn),ut(Wn,!0))}),{previous:Qn.previous,listeners:Qn.listeners}})})},30);return r.on("remove",()=>{At.cancel()}),r.on("NodeChange",()=>{At.throttle()}),{addListener:(un,yn)=>{be(un,Qn=>({previous:Qn.previous,listeners:Qn.listeners.concat([yn])}))}}},hy=(r,g)=>{const B=Sg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),oe=be=>{var Le,Ke;be.attr(dy(),null),be.attr(Sg(),null),be.attr(K1(),null);const ut=Y.from(be.attr(kg())).map(yn=>yn.split(",")).getOr([]),At=Y.from(be.attr(o1())).map(yn=>yn.split(",")).getOr([]);ve(ut,yn=>be.attr(yn,null));const nn=(Ke=(Le=be.attr("class"))===null||Le===void 0?void 0:Le.split(" "))!==null&&Ke!==void 0?Ke:[],un=Re(nn,[G1()].concat(At));be.attr("class",un.length>0?un.join(" "):null),be.attr(o1(),null),be.attr(kg(),null)};r.serializer.addTempAttr(K1()),r.serializer.addAttributeFilter(B,be=>{for(const Le of be)H(Le).each(Ke=>{Ke.persistent===!1&&(Le.name==="span"?Le.unwrap():oe(Le))})})},Y_=()=>{const r={};return{register:(oe,be)=>{r[oe]={name:oe,settings:be}},lookup:oe=>Et(r,oe).map(be=>be.settings),getNames:()=>tt(r)}},X_=(r,g,B)=>Math.min(Math.max(r,g),B),G_=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let py=0;const yb=r=>{const B=new Date().getTime(),H=Math.floor(G_()*1e9);return py++,r+"_"+H+py+String(B)},bp=(r,g)=>{ve(g,B=>{Cu(r,B)})},i1=(r,g)=>{ve(g,B=>{Bu(r,B)})},Tg=(r,g)=>_r.fromDom(r.dom.cloneNode(g)),im=r=>Tg(r,!1),Qh=r=>Tg(r,!0),rv=(r,g)=>{const B=_r.fromTag(g),H=rh(r);return Tu(B,H),B},ov=(r,g)=>{const B=rv(r,g);Kc(r,B);const H=vc(r);return Yl(B,H),hs(r),B},Od=(r,g,B=re)=>{const H=new Xl(r,g),oe=be=>{let Le;do Le=H[be]();while(Le&&!Mt(Le)&&!B(Le));return Y.from(Le).filter(Mt)};return{current:()=>Y.from(H.current()).filter(Mt),next:()=>oe("next"),prev:()=>oe("prev"),prev2:()=>oe("prev2")}},Cg=(r,g)=>{const B=g||(Le=>r.isBlock(Le)||gn(Le)||In(Le)),H=(Le,Ke,ut,At)=>{if(Mt(Le)){const nn=At(Le,Ke,Le.data);if(nn!==-1)return Y.some({container:Le,offset:nn})}return ut().bind(nn=>H(nn.container,nn.offset,ut,At))};return{backwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.prev().map(un=>({container:un,offset:un.length})),ut).getOrNull()},forwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.next().map(un=>({container:un,offset:0})),ut).getOrNull()}}},kh=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Le)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Le}}})(Ml,"text"),f0=r=>kh.get(r),iv=r=>kh.getOption(r),K_=(r,g)=>kh.set(r,g),bb=["td","th"],Hx=["thead","tbody","tfoot"],Zx=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ad=["li","dd","dt"],pC=["ul","ol","dl"],qx=["pre","script","textarea","style"],Ag=r=>{let g;return B=>(g=g||We(r,q),Ot(g,ma(B)))},$m=r=>ma(r)==="table",Th=r=>Wl(r)&&ma(r)==="br",Np=Ag(Zx),d0=Ag(pC),av=Ag(ad),J_=Ag(Hx),my=Ag(bb),xb=Ag(qx),ew=r=>{const g=[];let B=r.dom;for(;B;)g.push(_r.fromDom(B)),B=B.lastChild;return g},a1=r=>{const g=Pl(r,"br"),B=Te(ew(r).slice(-1),Th);g.length===B.length&&ve(B,hs)},sv=()=>{const r=_r.fromTag("br");return ll(r,"data-mce-bogus","1"),r},xp=r=>{uf(r),ii(r,sv())},_b=(r,g)=>{Cc(r).each(B=>{sf(B).each(H=>{g.isBlock(ma(r))&&Th(B)&&g.isBlock(ma(H))&&hs(B)})})},Ou=pl,Wx=Uf,Sd=Os,XO=r=>r.insertContent(Ou,{preserve_zwsp:!0}),wb=ne,am=Mt,Vm=r=>(am(r)&&(r=r.parentNode),wb(r)&&r.hasAttribute("data-mce-caret")),_p=r=>am(r)&&Wx(r.data),op=r=>Vm(r)||_p(r),GO=r=>r.firstChild!==r.lastChild||!gn(r.firstChild),Ob=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou),be=r.parentNode;if(g){const Le=r.previousSibling;if(am(Le)){if(op(Le))return Le;if(Ss(Le))return Le.splitText(Le.data.length-1)}be==null||be.insertBefore(oe,r)}else{const Le=r.nextSibling;if(am(Le)){if(op(Le))return Le;if(p0(Le))return Le.splitText(1),Le}r.nextSibling?be==null||be.insertBefore(oe,r.nextSibling):be==null||be.appendChild(oe)}return oe},s1=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset())===Ou||r.isAtStart()&&_p(g.previousSibling):!1},Um=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset()-1)===Ou||r.isAtEnd()&&_p(g.nextSibling):!1},h0=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(sv().dom);const Le=g.parentNode;return B?Le==null||Le.insertBefore(be,g):g.nextSibling?Le==null||Le.insertBefore(be,g.nextSibling):Le==null||Le.appendChild(be),be},p0=r=>am(r)&&r.data[0]===Ou,Ss=r=>am(r)&&r.data[r.data.length-1]===Ou,kd=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];et(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ch=r=>r&&r.hasAttribute("data-mce-caret")?(kd(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,Sb=r=>Vm(r.startContainer),Sl=Math.round,l1=r=>r?{left:Sl(r.left),top:Sl(r.top),bottom:Sl(r.bottom),right:Sl(r.right),width:Sl(r.width),height:Sl(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Yx=(r,g)=>(r=l1(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),N4=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,Xx=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,lv=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:Xx(g.top-r.bottom,r,g)},fc=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,kb=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const oe=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Le=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Le,bottom:Ke,left:oe,width:Le-oe,height:Ke-be})}),Y.none()),dc=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),oe=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-oe)*(B-oe))},uv=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Ah=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},Fp=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=X_(g,0,B.length-1);return B[H]}else return r},tw=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return Fp(r,g)},Li=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),nw=r=>v(r)&&r.charCodeAt(0)>=768&&Li.test(r),F4=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;Bdv(r)?!1:sm(r)?!gy(r.parentNode):c1(r)||ow(r)||fv(r)||Gx(r),hv=r=>ne(r)&&r.getAttribute("unselectable")==="true",Gx=r=>!hv(r)&&JO(r),df=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Gx(B))return!1;if(rw(B))return!0}return!0},Tb=r=>Gx(r)?!Ie(Me(r.getElementsByTagName("*")),(g,B)=>g||rw(B),!1):!1,uu=r=>c1(r)||Tb(r),Cb=(r,g)=>Hh(r)&&df(r,g),Kx=ne,Jx=Hh,iw=Ee("display","block table"),e3=Ee("float","left right"),lm=KO(Kx,Jx,X(e3)),u1=X(Ee("white-space","pre pre-line pre-wrap")),cm=Mt,pv=gn,hf=cc.nodeIndex,f1=tw,jm=r=>r?r.createRange():cc.DOM.createRng(),mv=r=>v(r)&&/[\r\n\t ]/.test(r),e2=r=>!!r.setStart&&!!r.setEnd,Zd=r=>{const g=r.startContainer,B=r.startOffset;if(mv(r.toString())&&u1(g.parentNode)&&Mt(g)){const H=g.data;if(mv(H[B-1])||mv(H[B+1]))return!0}return!1},vy=r=>{const g=r.ownerDocument,B=jm(g),H=g.createTextNode(Pc),oe=r.parentNode;oe.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=l1(B.getBoundingClientRect());return oe.removeChild(H),be},m0=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,oe=r.endOffset;if(g===B&&Mt(B)&&H===0&&oe===1){const be=r.cloneRange();return be.setEndAfter(B),v0(be)}else return null},g0=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,v0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=l1(H[0]):B=l1(r.getBoundingClientRect()),!e2(r)&&pv(r)&&g0(B)?vy(r):g0(B)&&e2(r)&&(g=m0(r))!==null&&g!==void 0?g:B},y0=(r,g)=>{const B=Yx(r,g);return B.width=1,B.right=B.left+1,B},Tf=r=>{const g=[],B=Le=>{Le.height!==0&&(g.length>0&&N4(Le,g[g.length-1])||g.push(Le))},H=(Le,Ke)=>{const ut=jm(Le.ownerDocument);if(Ke0&&(ut.setStart(Le,Ke-1),ut.setEnd(Le,Ke),Zd(ut)||B(y0(v0(ut),!1))),Ke{const H=()=>(cm(r),g===0),oe=()=>cm(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const nn=jm(r.ownerDocument);return nn.setStart(r,g),nn.setEnd(r,g),nn},Le=()=>(B||(B=Tf(vo(r,g))),B),Ke=()=>Le().length>0,ut=nn=>nn&&r===nn.container()&&g===nn.offset(),At=nn=>f1(r,nn?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Le,isVisible:Ke,isAtStart:H,isAtEnd:oe,isEqual:ut,getNode:At}};vo.fromRangeStart=r=>vo(r.startContainer,r.startOffset),vo.fromRangeEnd=r=>vo(r.endContainer,r.endOffset),vo.after=r=>vo(r.parentNode,hf(r)+1),vo.before=r=>vo(r.parentNode,hf(r)),vo.isAbove=(r,g)=>zi(Ye(g.getClientRects()),Je(r.getClientRects()),lv).getOr(!1),vo.isBelow=(r,g)=>zi(Je(g.getClientRects()),Ye(r.getClientRects()),fc).getOr(!1),vo.isAtStart=r=>r?r.isAtStart():!1,vo.isAtEnd=r=>r?r.isAtEnd():!1,vo.isTextPosition=r=>r?Mt(r.container()):!1,vo.isElementPosition=r=>!vo.isTextPosition(r);const Ab=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},F=(r,g,B)=>{g.insertNode(B),Ab(r,B.previousSibling),Ab(r,B.nextSibling)},G=(r,g,B)=>{const H=Y.from(B.firstChild),oe=Y.from(B.lastChild);g.insertNode(B),H.each(be=>Ab(r,be.previousSibling)),oe.each(be=>Ab(r,be.nextSibling))},ue=(r,g,B)=>{Ln(B)?G(r,g,B):F(r,g,B)},Ae=Mt,He=et,nt=cc.nodeIndex,ct=r=>{const g=r.parentNode;return He(g)?ct(g):g},Pt=r=>r?it(r.childNodes,(g,B)=>(He(B)&&B.nodeName!=="BR"?g=g.concat(Pt(B)):g.push(B),g),[]):[],jt=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Ae(B);)g+=B.data.length;return g},hn=r=>g=>r===g,mn=r=>{let g,B;g=Pt(ct(r)),B=at(g,hn(r),r),g=g.slice(0,B+1);const H=it(g,(oe,be,Le)=>(Ae(be)&&Ae(g[Le-1])&&oe++,oe),0);return g=Vt(g,xe([r.nodeName])),B=at(g,hn(r),r),B-H},Dn=r=>(Ae(r)?"text()":r.nodeName.toLowerCase())+"["+mn(r)+"]",Xn=(r,g,B)=>{const H=[];for(let oe=g.parentNode;oe&&oe!==r&&!(B&&B(oe));oe=oe.parentNode)H.push(oe);return H},$n=(r,g)=>{let B=[],H=g.container(),oe=g.offset(),be;if(Ae(H))be=jt(H,oe);else{const Ke=H.childNodes;oe>=Ke.length?(be="after",oe=Ke.length-1):be="before",H=Ke[oe]}B.push(Dn(H));let Le=Xn(r,H);return Le=Vt(Le,X(et)),B=B.concat(bt(Le,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},mr=(r,g,B)=>{let H=Pt(r);return H=Vt(H,(oe,be)=>!Ae(oe)||!Ae(H[be-1])),H=Vt(H,xe([g])),H[B]},Or=(r,g)=>{let B=r,H=0;for(;Ae(B);){const oe=B.data.length;if(g>=H&&g<=H+oe){r=B,g=g-H;break}if(!Ae(B.nextSibling)){r=B,g=oe;break}H+=oe,B=B.nextSibling}return Ae(r)&&g>r.data.length&&(g=r.data.length),vo(r,g)},Kr=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),oe=B.length>1?B[1]:"before",be=it(H,(Le,Ke)=>{const ut=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ut?(ut[1]==="text()"&&(ut[1]="#text"),mr(Le,ut[1],parseInt(ut[2],10))):null},r);if(!be)return null;if(!Ae(be)&&be.parentNode){let Le;return oe==="after"?Le=nt(be)+1:Le=nt(be),vo(be.parentNode,Le)}return Or(be,parseInt(oe,10))},Hr=In,fo=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let oe=g.previousSibling;oe&&Mt(oe);oe=oe.previousSibling)H+=r(oe.data).length;return H},mo=(r,g,B,H,oe)=>{const be=oe?H.startContainer:H.endContainer;let Le=oe?H.startOffset:H.endOffset;const Ke=[],ut=r.getRoot();if(Mt(be))Ke.push(B?fo(g,be,Le):Le);else{let At=0;const nn=be.childNodes;Le>=nn.length&&nn.length&&(At=1,Le=Math.max(0,nn.length-1)),Ke.push(r.nodeIndex(nn[Le],B)+At)}for(let At=be;At&&At!==ut;At=At.parentNode)Ke.push(r.nodeIndex(At,B));return Ke},Io=(r,g,B,H)=>{const oe=g.dom,be=mo(oe,r,B,H,!0),Le=g.isForward(),Ke=Sb(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Le,...Ke};{const ut=mo(oe,r,B,H,!1);return{start:be,end:ut,forward:Le,...Ke}}},Qo=(r,g,B)=>{let H=0;return To.each(r.select(g),oe=>{if(oe.getAttribute("data-mce-bogus")!=="all"){if(oe===B)return!1;H++;return}}),H},Po=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const oe=B.childNodes;B=oe[Math.min(g?H:H-1,oe.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},Ii=r=>(Po(r,!0),Po(r,!1),r),bi=(r,g)=>{if(ne(r)&&(r=Fp(r,g),Hr(r)))return r;if(op(r)){Mt(r)&&Vm(r)&&(r=r.parentNode);let B=r.previousSibling;if(Hr(B)||(B=r.nextSibling,Hr(B)))return B}},Zi=r=>bi(r.startContainer,r.startOffset)||bi(r.endContainer,r.endOffset),ra=(r,g,B)=>{const H=B.getNode(),oe=B.getRng();if(H.nodeName==="IMG"||Hr(H)){const Le=H.nodeName;return{name:Le,index:Qo(B.dom,Le,H)}}const be=Zi(oe);if(be){const Le=be.tagName;return{name:Le,index:Qo(B.dom,Le,be)}}return Io(r,B,g,oe)},ka=r=>{const g=r.getRng();return{start:$n(r.dom.getRoot(),vo.fromRangeStart(g)),end:$n(r.dom.getRoot(),vo.fromRangeEnd(g)),forward:r.isForward()}},ea=r=>({rng:r.getRng(),forward:r.isForward()}),as=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Da=(r,g)=>{const B=r.dom;let H=r.getRng();const oe=B.uniqueId(),be=r.isCollapsed(),Le=r.getNode(),Ke=Le.nodeName,ut=r.isForward();if(Ke==="IMG")return{name:Ke,index:Qo(B,Ke,Le)};const At=Ii(H.cloneRange());if(!be){At.collapse(!1);const un=as(B,oe+"_end",g);ue(B,At,un)}H=Ii(H),H.collapse(!0);const nn=as(B,oe+"_start",g);return ue(B,H,nn),r.moveToBookmark({id:oe,keep:!0,forward:ut}),{id:oe,forward:ut}},ba=(r,g,B=!1)=>g===2?ra(Sd,B,r):g===3?ka(r):g?ea(r):Da(r,!1),fl=U(ra,Q,!0),As=r=>{const g=be=>be(r),B=$(r),H=()=>oe,oe={tag:!0,inner:r,fold:(be,Le)=>Le(r),isValue:q,isError:re,map:be=>Vs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return oe},hc=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,oe)=>H(r),isValue:re,isError:q,map:g,mapError:H=>Vs.error(H(r)),bind:g,exists:re,forall:q,getOr:Q,or:Q,getOrThunk:Z,orThunk:Z,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},Vs={value:As,error:hc,fromOption:(r,g)=>r.fold(()=>hc(g),As)},kl={generate:r=>{if(!C(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ve(r,(H,oe)=>{const be=tt(H);if(be.length!==1)throw new Error("one and only one name per case");const Le=be[0],Ke=H[Le];if(B[Le]!==void 0)throw new Error("duplicate key detected:"+Le);if(Le==="cata")throw new Error("cannot have a case named cata (sorry)");if(!C(Ke))throw new Error("case arguments must be an array");g.push(Le),B[Le]=(...ut)=>{const At=ut.length;if(At!==Ke.length)throw new Error("Wrong number of arguments to case "+Le+". Expected "+Ke.length+" ("+Ke+"), got "+At);return{fold:(...un)=>{if(un.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+un.length);return un[oe].apply(null,ut)},match:un=>{const yn=tt(un);if(g.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` +}`,{label:"class",detail:"definition",type:"keyword"}),Bh('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Bh('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],c$e=mOe.concat([Bh("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Bh("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Bh("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),V0e=new Ice,gOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function FL(t){return(e,o)=>{let f=e.node.getChild("VariableDefinition");return f&&o(f,t),!0}}const u$e=["FunctionDeclaration"],f$e={FunctionDeclaration:FL("function"),ClassDeclaration:FL("class"),ClassExpression:()=>!0,EnumDeclaration:FL("constant"),TypeAliasDeclaration:FL("type"),NamespaceDeclaration:FL("namespace"),VariableDefinition(t,e){t.matchContext(u$e)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function vOe(t,e){let o=V0e.get(e);if(o)return o;let f=[],E=!0;function d(s,n){let u=t.sliceString(s.from,s.to);f.push({label:u,type:n})}return e.cursor(pd.IncludeAnonymous).iterate(s=>{if(E)E=!1;else if(s.name){let n=f$e[s.name];if(n&&n(s,d)||gOe.has(s.name))return!1}else if(s.to-s.from>8192){for(let n of vOe(t,s.node))f.push(n);return!1}}),V0e.set(e,f),f}const U0e=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function d$e(t){let e=Gf(t.state).resolveInner(t.pos,-1);if(yOe.indexOf(e.name)>-1)return null;let o=e.name=="VariableName"||e.to-e.from<20&&U0e.test(t.state.sliceDoc(e.from,e.to));if(!o&&!t.explicit)return null;let f=[];for(let E=e;E;E=E.parent)gOe.has(E.name)&&(f=f.concat(vOe(t.state.doc,E)));return{options:f,from:o?e.from:t.pos,validFor:U0e}}const T_=O4.define({name:"javascript",parser:l$e.configure({props:[nC.add({IfStatement:lI({except:/^\s*({|else\b)/}),TryStatement:lI({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:a8e,SwitchBody:t=>{let e=t.textAfter,o=/^\s*\}/.test(e),f=/^\s*(case|default)\b/.test(e);return t.baseIndent+(o?0:f?1:2)*t.unit},Block:gH({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":lI({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),E4.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":$ce,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),bOe={test:t=>/^JSX/.test(t.name),facet:Bce({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xOe=T_.configure({dialect:"ts"},"typescript"),_Oe=T_.configure({dialect:"jsx",props:[zce.add(t=>t.isTop?[bOe]:void 0)]}),wOe=T_.configure({dialect:"jsx ts",props:[zce.add(t=>t.isTop?[bOe]:void 0)]},"typescript");let OOe=t=>({label:t,type:"keyword"});const SOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(OOe),h$e=SOe.concat(["declare","implements","private","protected","public"].map(OOe));function p$e(t={}){let e=t.jsx?t.typescript?wOe:_Oe:t.typescript?xOe:T_,o=t.typescript?c$e.concat(h$e):mOe.concat(SOe);return new YT(e,[T_.data.of({autocomplete:Xce(yOe,rq(o))}),T_.data.of({autocomplete:d$e}),t.jsx?v$e:[]])}function m$e(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function j0e(t,e,o=t.length){for(let f=e==null?void 0:e.firstChild;f;f=f.nextSibling)if(f.name=="JSXIdentifier"||f.name=="JSXBuiltin"||f.name=="JSXNamespacedName"||f.name=="JSXMemberExpression")return t.sliceString(f.from,Math.min(f.to,o));return""}const g$e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),v$e=Xa.inputHandler.of((t,e,o,f,E)=>{if((g$e?t.composing:t.compositionStarted)||t.state.readOnly||e!=o||f!=">"&&f!="/"||!T_.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b;let{head:i}=u,S=Gf(s).resolveInner(i-1,-1),w;if(S.name=="JSXStartTag"&&(S=S.parent),!(s.doc.sliceString(i-1,i)!=f||S.name=="JSXAttributeValue"&&S.to>i)){if(f==">"&&S.name=="JSXFragmentTag")return{range:u,changes:{from:i,insert:""}};if(f=="/"&&S.name=="JSXStartCloseTag"){let y=S.parent,m=y.parent;if(m&&y.from==i-2&&((w=j0e(s.doc,m.firstChild,i))||((b=m.firstChild)===null||b===void 0?void 0:b.name)=="JSXFragmentTag")){let a=`${w}>`;return{range:hi.cursor(i+a.length,-1),changes:{from:i,insert:a}}}}else if(f==">"){let y=m$e(S);if(y&&!/^\/?>|^<\//.test(s.doc.sliceString(i,i+2))&&(w=j0e(s.doc,y,i)))return{range:u,changes:{from:i,insert:``}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),$L=["_blank","_self","_top","_parent"],yae=["ascii","utf-8","utf-16","latin1","latin1"],bae=["get","post","put","delete"],xae=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qv=["true","false"],Rs={},y$e={a:{attrs:{href:null,ping:null,type:null,media:null,target:$L,hreflang:null}},abbr:Rs,address:Rs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Rs,aside:Rs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Rs,base:{attrs:{href:null,target:$L}},bdi:Rs,bdo:Rs,blockquote:{attrs:{cite:null}},body:Rs,br:Rs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:xae,formmethod:bae,formnovalidate:["novalidate"],formtarget:$L,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Rs,center:Rs,cite:Rs,code:Rs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Rs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Rs,div:Rs,dl:Rs,dt:Rs,em:Rs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Rs,figure:Rs,footer:Rs,form:{attrs:{action:null,name:null,"accept-charset":yae,autocomplete:["on","off"],enctype:xae,method:bae,novalidate:["novalidate"],target:$L}},h1:Rs,h2:Rs,h3:Rs,h4:Rs,h5:Rs,h6:Rs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Rs,hgroup:Rs,hr:Rs,html:{attrs:{manifest:null}},i:Rs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:xae,formmethod:bae,formnovalidate:["novalidate"],formtarget:$L,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Rs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Rs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Rs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:yae,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Rs,noscript:Rs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Rs,param:{attrs:{name:null,value:null}},pre:Rs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Rs,rt:Rs,ruby:Rs,samp:Rs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:yae}},section:Rs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Rs,source:{attrs:{src:null,type:null,media:null}},span:Rs,strong:Rs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Rs,summary:Rs,sup:Rs,table:Rs,tbody:Rs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Rs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Rs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Rs,time:{attrs:{datetime:null}},title:Rs,tr:Rs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Rs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Rs},kOe={accesskey:null,class:null,contenteditable:Qv,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qv,autocorrect:Qv,autocapitalize:Qv,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qv,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qv,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qv,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qv,"aria-hidden":Qv,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qv,"aria-multiselectable":Qv,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qv,"aria-relevant":null,"aria-required":Qv,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},TOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of TOe)kOe[t]=null;class eD{constructor(e,o){this.tags=Object.assign(Object.assign({},y$e),e),this.globalAttrs=Object.assign(Object.assign({},kOe),o),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}eD.default=new eD;function xM(t,e,o=t.length){if(!e)return"";let f=e.firstChild,E=f&&f.getChild("TagName");return E?t.sliceString(E.from,Math.min(E.to,o)):""}function _M(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function COe(t,e,o){let f=o.tags[xM(t,_M(e))];return(f==null?void 0:f.children)||o.allTags}function nfe(t,e){let o=[];for(let f=_M(e);f&&!f.type.isTop;f=_M(f.parent)){let E=xM(t,f);if(E&&f.lastChild.name=="CloseTag")break;E&&o.indexOf(E)<0&&(e.name=="EndTag"||e.from>=f.firstChild.to)&&o.push(E)}return o}const AOe=/^[:\-\.\w\u00b7-\uffff]*$/;function Q0e(t,e,o,f,E){let d=/\s*>/.test(t.sliceDoc(E,E+5))?"":">",s=_M(o,!0);return{from:f,to:E,options:COe(t.doc,s,e).map(n=>({label:n,type:"type"})).concat(nfe(t.doc,o).map((n,u)=>({label:"/"+n,apply:"/"+n+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function H0e(t,e,o,f){let E=/\s*>/.test(t.sliceDoc(f,f+5))?"":">";return{from:o,to:f,options:nfe(t.doc,e).map((d,s)=>({label:d,apply:d+E,type:"type",boost:99-s})),validFor:AOe}}function b$e(t,e,o,f){let E=[],d=0;for(let s of COe(t.doc,o,e))E.push({label:"<"+s,type:"type"});for(let s of nfe(t.doc,o))E.push({label:"",type:"type",boost:99-d++});return{from:f,to:f,options:E,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function x$e(t,e,o,f,E){let d=_M(o),s=d?e.tags[xM(t.doc,d)]:null,n=s&&s.attrs?Object.keys(s.attrs):[],u=s&&s.globalAttrs===!1?n:n.length?n.concat(e.globalAttrNames):e.globalAttrNames;return{from:f,to:E,options:u.map(b=>({label:b,type:"property"})),validFor:AOe}}function _$e(t,e,o,f,E){var d;let s=(d=o.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),n=[],u;if(s){let b=t.sliceDoc(s.from,s.to),i=e.globalAttrs[b];if(!i){let S=_M(o),w=S?e.tags[xM(t.doc,S)]:null;i=(w==null?void 0:w.attrs)&&w.attrs[b]}if(i){let S=t.sliceDoc(f,E).toLowerCase(),w='"',y='"';/^['"]/.test(S)?(u=S[0]=='"'?/^[^"]*$/:/^[^']*$/,w="",y=t.sliceDoc(E,E+1)==S[0]?"":S[0],S=S.slice(1),f++):u=/^[^\s<>='"]*$/;for(let m of i)n.push({label:m,apply:w+m+y,type:"constant"})}}return{from:f,to:E,options:n,validFor:u}}function MOe(t,e){let{state:o,pos:f}=e,E=Gf(o).resolveInner(f,-1),d=E.resolve(f);for(let s=f,n;d==E&&(n=E.childBefore(s));){let u=n.lastChild;if(!u||!u.type.isError||u.fromMOe(f,E)}const S$e=T_.parser.configure({top:"SingleExpression"}),EOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:xOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:_Oe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:wOe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:S$e},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:T_.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:CZ.parser}],POe=[{name:"style",parser:CZ.parser.configure({top:"Styles"})}].concat(TOe.map(t=>({name:t,parser:T_.parser}))),ROe=O4.define({name:"html",parser:dFe.configure({props:[nC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),OH=ROe.configure({wrap:uOe(EOe,POe)});function k$e(t={}){let e="",o;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(o=uOe((t.nestedLanguages||[]).concat(EOe),(t.nestedAttributes||[]).concat(POe)));let f=o?ROe.configure({wrap:o,dialect:e}):e?OH.configure({dialect:e}):OH;return new YT(f,[OH.data.of({autocomplete:O$e(t)}),t.autoCloseTags!==!1?T$e:[],p$e().support,VFe().support])}const Z0e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),T$e=Xa.inputHandler.of((t,e,o,f,E)=>{if(t.composing||t.state.readOnly||e!=o||f!=">"&&f!="/"||!OH.isActiveAt(t.state,e,-1))return!1;let d=E(),{state:s}=d,n=s.changeByRange(u=>{var b,i,S;let w=s.doc.sliceString(u.from-1,u.to)==f,{head:y}=u,m=Gf(s).resolveInner(y-1,-1),a;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),w&&f==">"&&m.name=="OpenTag"){if(((i=(b=m.parent)===null||b===void 0?void 0:b.lastChild)===null||i===void 0?void 0:i.name)!="CloseTag"&&(a=xM(s.doc,m.parent,y))&&!Z0e.has(a)){let c=y+(s.doc.sliceString(y,y+1)===">"?1:0),h=``;return{range:u,changes:{from:y,to:c,insert:h}}}}else if(w&&f=="/"&&m.name=="IncompleteCloseTag"){let c=m.parent;if(m.from==y-2&&((S=c.lastChild)===null||S===void 0?void 0:S.name)!="CloseTag"&&(a=xM(s.doc,c,y))&&!Z0e.has(a)){let h=y+(s.doc.sliceString(y,y+1)===">"?1:0),p=`${a}>`;return{range:hi.cursor(y+p.length,-1),changes:{from:y,to:h,insert:p}}}}return{range:u}});return n.changes.empty?!1:(t.dispatch([d,s.update(n,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),LOe=Bce({commentTokens:{block:{open:""}}}),IOe=new Zl,DOe=mNe.configure({props:[E4.add(t=>!t.is("Block")||t.is("Document")||wle(t)!=null?void 0:(e,o)=>({from:o.doc.lineAt(e.from).to,to:e.to})),IOe.add(wle),nC.add({Document:()=>null}),NT.add({Document:LOe})]});function wle(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function C$e(t,e){let o=t;for(;;){let f=o.nextSibling,E;if(!f||(E=wle(f.type))!=null&&E<=e)break;o=f}return o.to}const A$e=Pbe.of((t,e,o)=>{for(let f=Gf(t).resolveInner(o,-1);f&&!(f.fromo)return{from:o,to:d}}return null});function rfe(t){return new tb(LOe,t,[A$e],"markdown")}const M$e=rfe(DOe),E$e=DOe.configure([TNe,ANe,CNe,MNe,{props:[E4.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),BOe=rfe(E$e);function P$e(t,e){return o=>{if(o&&t){let f=null;if(o=/\S*/.exec(o)[0],typeof t=="function"?f=t(o):f=HH.matchLanguageName(t,o,!0),f instanceof HH)return f.support?f.support.language.parser:DI.getSkippingParser(f.load());if(f)return f.parser}return e?e.parser:null}}class JQ{constructor(e,o,f,E,d,s,n){this.node=e,this.from=o,this.to=f,this.spaceBefore=E,this.spaceAfter=d,this.type=s,this.item=n}blank(e,o=!0){let f=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;f.length0;E--)f+=" ";return f+(o?this.spaceAfter:"")}}marker(e,o){let f=this.node.name=="OrderedList"?String(+NOe(this.item,e)[2]+o):"";return this.spaceBefore+f+this.type+this.spaceAfter}}function zOe(t,e){let o=[];for(let E=t;E&&E.name!="Document";E=E.parent)(E.name=="ListItem"||E.name=="Blockquote"||E.name=="FencedCode")&&o.push(E);let f=[];for(let E=o.length-1;E>=0;E--){let d=o[E],s,n=e.lineAt(d.from),u=d.from-n.from;if(d.name=="FencedCode")f.push(new JQ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(s=/^ *>( ?)/.exec(n.text.slice(u))))f.push(new JQ(d,u,u+s[0].length,"",s[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(n.text.slice(u)))){let b=s[3],i=s[0].length;b.length>=4&&(b=b.slice(0,b.length-4),i-=4),f.push(new JQ(d.parent,u,u+i,s[1],b,s[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(n.text.slice(u)))){let b=s[4],i=s[0].length;b.length>4&&(b=b.slice(0,b.length-4),i-=4);let S=s[2];s[3]&&(S+=s[3].replace(/[xX]/," ")),f.push(new JQ(d.parent,u,u+i,s[1],b,S,d))}}return f}function NOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function _ae(t,e,o,f=0){for(let E=-1,d=t;;){if(d.name=="ListItem"){let n=NOe(d,e),u=+n[2];if(E>=0){if(u!=E+1)return;o.push({from:d.from+n[1].length,to:d.from+n[0].length,insert:String(E+2+f)})}E=u}let s=d.nextSibling;if(!s)break;d=s}}function Ole(t,e){let o=/^[ \t]*/.exec(t)[0].length;if(!o||e.facet(tC)!=" ")return t;let f=kx(t,4,o),E="";for(let d=f;d>0;)d>=4?(E+=" ",d-=4):(E+=" ",d--);return E+t.slice(o)}const R$e=({state:t,dispatch:e})=>{let o=Gf(t),{doc:f}=t,E=null,d=t.changeByRange(s=>{if(!s.empty||!BOe.isActiveAt(t,s.from))return E={range:s};let n=s.from,u=f.lineAt(n),b=zOe(o.resolveInner(n,-1),f);for(;b.length&&b[b.length-1].from>n-u.from;)b.pop();if(!b.length)return E={range:s};let i=b[b.length-1];if(i.to-i.spaceAfter.length>n-u.from)return E={range:s};let S=n>=i.to-i.spaceAfter.length&&!/\S/.test(u.text.slice(i.to));if(i.item&&S)if(i.node.firstChild.to>=n||u.from>0&&!/[^\s>]/.test(f.lineAt(u.from-1).text)){let c=b.length>1?b[b.length-2]:null,h,p="";c&&c.item?(h=u.from+c.from,p=c.marker(f,1)):h=u.from+(c?c.to:0);let v=[{from:h,to:n,insert:p}];return i.node.name=="OrderedList"&&_ae(i.item,f,v,-2),c&&c.node.name=="OrderedList"&&_ae(c.item,f,v),{range:hi.cursor(h+p.length),changes:v}}else{let c="";for(let h=0,p=b.length-2;h<=p;h++)c+=b[h].blank(h\s*$/.exec(c.text);if(h&&h.index==i.from){let p=t.changes([{from:c.from+h.index,to:c.to},{from:u.from+i.from,to:u.to}]);return{range:s.map(p),changes:p}}}let w=[];i.node.name=="OrderedList"&&_ae(i.item,f,w);let y=i.item&&i.item.from]*/.exec(u.text)[0].length>=i.to)for(let c=0,h=b.length-1;c<=h;c++)m+=c==h&&!y?b[c].marker(f,1):b[c].blank(cu.from&&/\s/.test(u.text.charAt(a-u.from-1));)a--;return m=Ole(m,t),w.push({from:a,to:n,insert:t.lineBreak+m}),{range:hi.cursor(a+m.length+1),changes:w}});return E?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function q0e(t){return t.name=="QuoteMark"||t.name=="ListMark"}function L$e(t,e){let o=t.resolveInner(e,-1),f=e;q0e(o)&&(f=o.from,o=o.parent);for(let E;E=o.childBefore(f);)if(q0e(E))f=E.from;else if(E.name=="OrderedList"||E.name=="BulletList")o=E.lastChild,f=o.to;else break;return o}const I$e=({state:t,dispatch:e})=>{let o=Gf(t),f=null,E=t.changeByRange(d=>{let s=d.from,{doc:n}=t;if(d.empty&&BOe.isActiveAt(t,d.from)){let u=n.lineAt(s),b=zOe(L$e(o,s),n);if(b.length){let i=b[b.length-1],S=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(s-u.from>S&&!/\S/.test(u.text.slice(S,s-u.from)))return{range:hi.cursor(u.from+S),changes:{from:u.from+S,to:s}};if(s-u.from==S&&(!i.item||u.from<=i.item.from||!/\S/.test(u.text.slice(0,i.to)))){let w=u.from+i.from;if(i.item&&i.node.fromd.createCell(u))},{code:ao(()=>[t.$devMode&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":4,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0)]),outcome:ao(()=>[Na("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,F$e)]),_:1},8,["cell-id","is-dev-mode","hide-cell","cell-name","onDelete","onSave"])}const $Oe=mp(N$e,[["render",$$e],["__scopeId","data-v-88d8f347"]]);var V$e={exports:{}};(function(t){(function(){var e=function(r){if(r===null)return"null";if(r===void 0)return"undefined";var g=typeof r;return g==="object"&&(Array.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="Array")?"array":g==="object"&&(String.prototype.isPrototypeOf(r)||r.constructor&&r.constructor.name==="String")?"string":g},o=function(r){return["undefined","boolean","number","string","function","xml","null"].indexOf(r)!==-1},f=function(r,g){var B=Array.prototype.slice.call(r);return B.sort(g)},E=function(r,g){return d(function(B,H){return r.eq(g(B),g(H))})},d=function(r){return{eq:r}},s=d(function(r,g){return r===g}),n=s,u=function(r){return d(function(g,B){if(g.length!==B.length)return!1;for(var H=g.length,oe=0;oe{var H;return B(r,g.prototype)?!0:((H=r.constructor)===null||H===void 0?void 0:H.name)===g.name},m=r=>{const g=typeof r;return r===null?"null":g==="object"&&Array.isArray(r)?"array":g==="object"&&y(r,String,(B,H)=>H.isPrototypeOf(B))?"string":g},a=r=>g=>m(g)===r,c=r=>g=>typeof g===r,h=r=>g=>r===g,p=(r,g)=>_(r)&&y(r,g,(B,H)=>w(B)===H),v=a("string"),_=a("object"),O=r=>p(r,Object),C=a("array"),x=h(null),R=c("boolean"),M=h(void 0),T=r=>r==null,P=r=>!T(r),A=c("function"),L=c("number"),D=(r,g)=>{if(C(r)){for(let B=0,H=r.length;B{},I=(r,g)=>(...B)=>r(g.apply(null,B)),z=(r,g)=>B=>r(g(B)),$=r=>()=>r,Q=r=>r,j=(r,g)=>r===g;function U(r,...g){return(...B)=>{const H=g.concat(B);return r.apply(null,H)}}const X=r=>g=>!r(g),te=r=>()=>{throw new Error(r)},Z=r=>r(),K=r=>{r()},re=$(!1),q=$(!0);class Y{constructor(g,B){this.tag=g,this.value=B}static some(g){return new Y(!0,g)}static none(){return Y.singletonNone}fold(g,B){return this.tag?B(this.value):g()}isSome(){return this.tag}isNone(){return!this.tag}map(g){return this.tag?Y.some(g(this.value)):Y.none()}bind(g){return this.tag?g(this.value):Y.none()}exists(g){return this.tag&&g(this.value)}forall(g){return!this.tag||g(this.value)}filter(g){return!this.tag||g(this.value)?this:Y.none()}getOr(g){return this.tag?this.value:g}or(g){return this.tag?this:g}getOrThunk(g){return this.tag?this.value:g()}orThunk(g){return this.tag?this:g()}getOrDie(g){if(this.tag)return this.value;throw new Error(g??"Called getOrDie on None")}static from(g){return P(g)?Y.some(g):Y.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(g){this.tag&&g(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Y.singletonNone=new Y(!1);const ee=Array.prototype.slice,me=Array.prototype.indexOf,pe=Array.prototype.push,se=(r,g)=>me.call(r,g),ae=(r,g)=>{const B=se(r,g);return B===-1?Y.none():Y.some(B)},ce=(r,g)=>se(r,g)>-1,de=(r,g)=>{for(let B=0,H=r.length;B{const B=r.length,H=new Array(B);for(let oe=0;oe{for(let B=0,H=r.length;B{for(let B=r.length-1;B>=0;B--){const H=r[B];g(H,B)}},we=(r,g)=>{const B=[],H=[];for(let oe=0,be=r.length;oe{const B=[];for(let H=0,oe=r.length;H(_e(r,(H,oe)=>{B=g(B,H,oe)}),B),Ie=(r,g,B)=>(ve(r,(H,oe)=>{B=g(B,H,oe)}),B),ze=(r,g,B)=>{for(let H=0,oe=r.length;Hze(r,g,re),Qe=(r,g)=>{for(let B=0,H=r.length;B{const g=[];for(let B=0,H=r.length;BVe(ye(r,g)),Oe=(r,g)=>{for(let B=0,H=r.length;B{const g=ee.call(r,0);return g.reverse(),g},Re=(r,g)=>Te(r,B=>!ce(g,B)),We=(r,g)=>{const B={};for(let H=0,oe=r.length;H{const B=ee.call(r,0);return B.sort(g),B},Ze=(r,g)=>g>=0&&gZe(r,0),Je=r=>Ze(r,r.length-1),Me=A(Array.from)?Array.from:r=>ee.call(r),Fe=(r,g)=>{for(let B=0;B{const B=[],H=A(g)?oe=>de(B,be=>g(be,oe)):oe=>ce(B,oe);for(let oe=0,be=r.length;oe{const B=tt(r);for(let H=0,oe=B.length;Hpt(r,(B,H)=>({k:H,v:g(B,H)})),pt=(r,g)=>{const B={};return Ge(r,(H,oe)=>{const be=g(H,oe);B[be.k]=be.v}),B},St=r=>(g,B)=>{r[B]=g},Ft=(r,g,B,H)=>{Ge(r,(oe,be)=>{(g(oe,be)?B:H)(oe,be)})},zt=(r,g)=>{const B={},H={};return Ft(r,g,St(B),St(H)),{t:B,f:H}},Yt=(r,g)=>{const B={};return Ft(r,g,St(B),k),B},ln=(r,g)=>{const B=[];return Ge(r,(H,oe)=>{B.push(g(H,oe))}),B},tn=r=>ln(r,Q),Et=(r,g)=>Ot(r,g)?Y.from(r[g]):Y.none(),Ot=(r,g)=>ot.call(r,g),cn=(r,g)=>Ot(r,g)&&r[g]!==void 0&&r[g]!==null,Cn=(r,g,B=S)=>i(B).eq(r,g),Pn=r=>{const g={};return ve(r,B=>{g[B]={}}),tt(g)},Sn=r=>r.length!==void 0,vt=Array.isArray,xt=r=>{if(vt(r))return r;{const g=[];for(let B=0,H=r.length;B{if(!r)return!1;if(B=B||r,Sn(r)){for(let H=0,oe=r.length;H{const B=[];return st(r,(H,oe)=>{B.push(g(H,oe,r))}),B},Vt=(r,g)=>{const B=[];return st(r,(H,oe)=>{(!g||g(H,oe,r))&&B.push(H)}),B},Dt=(r,g)=>{if(r){for(let B=0,H=r.length;B{let oe=M(B)?r[0]:B;for(let be=0;be{for(let H=0,oe=r.length;Hr[r.length-1],_t=r=>{let g=!1,B;return(...H)=>(g||(g=!0,B=r.apply(null,H)),B)},qt=(r,g,B,H)=>{const oe=r.isiOS()&&/ipad/i.test(B)===!0,be=r.isiOS()&&!oe,Le=r.isiOS()||r.isAndroid(),Ke=Le||H("(pointer:coarse)"),ut=oe||!be&&Le&&H("(min-device-width:768px)"),At=be||Le&&!ut,nn=g.isSafari()&&r.isiOS()&&/safari/i.test(B)===!1,un=!At&&!ut&&!nn;return{isiPad:$(oe),isiPhone:$(be),isTablet:$(ut),isPhone:$(At),isTouch:$(Ke),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:$(nn),isDesktop:$(un)}},en=(r,g)=>{for(let B=0;B{const B=en(r,g);if(!B)return{major:0,minor:0};const H=oe=>Number(g.replace(B,"$"+oe));return sn(H(1),H(2))},Zt=(r,g)=>{const B=String(g).toLowerCase();return r.length===0?Nt():Jt(r,B)},Nt=()=>sn(0,0),sn=(r,g)=>({major:r,minor:g}),rn={nu:sn,detect:Zt,unknown:Nt},_n=(r,g)=>Fe(g.brands,B=>{const H=B.brand.toLowerCase();return De(r,oe=>{var be;return H===((be=oe.brand)===null||be===void 0?void 0:be.toLowerCase())}).map(oe=>({current:oe.name,version:rn.nu(parseInt(B.version,10),0)}))}),wn=(r,g)=>{const B=String(g).toLowerCase();return De(r,H=>H.search(B))},An=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),Kn=(r,g)=>wn(r,g).map(B=>{const H=rn.detect(B.versionRegexes,g);return{current:B.name,version:H}}),fr=(r,g)=>r.substring(g),Un=(r,g,B)=>g===""||r.length>=g.length&&r.substr(B,B+g.length)===g,Zn=(r,g)=>Br(r,g)?fr(r,g.length):r,tr=(r,g,B=0,H)=>{const oe=r.indexOf(g,B);return oe!==-1?M(H)?!0:oe+g.length<=H:!1},Br=(r,g)=>Un(r,g,0),$r=(r,g)=>Un(r,g,r.length-g.length),vr=r=>g=>g.replace(r,""),qn=vr(/^\s+|\s+$/g),gr=vr(/^\s+/g),sr=vr(/\s+$/g),lr=r=>r.length>0,zr=r=>!lr(r),Vr=(r,g)=>g<=0?"":new Array(g+1).join(r),eo=(r,g=10)=>{const B=parseInt(r,g);return isNaN(B)?Y.none():Y.some(B)},Jr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Yr=r=>g=>tr(g,r),to=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:r=>tr(r,"edge/")&&tr(r,"chrome")&&tr(r,"safari")&&tr(r,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Jr],search:r=>tr(r,"chrome")&&!tr(r,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:r=>tr(r,"msie")||tr(r,"trident")},{name:"Opera",versionRegexes:[Jr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Yr("firefox")},{name:"Safari",versionRegexes:[Jr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:r=>(tr(r,"safari")||tr(r,"mobile/"))&&tr(r,"applewebkit")}],co=[{name:"Windows",search:Yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:r=>tr(r,"iphone")||tr(r,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Yr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Yr("linux"),versionRegexes:[]},{name:"Solaris",search:Yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Yr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Yr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Fo={browsers:$(to),oses:$(co)},_o="Edge",$o="Chromium",Mo="IE",pi="Opera",Hn="Firefox",ar="Safari",Dr=()=>Sr({current:void 0,version:rn.unknown()}),Sr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isEdge:H(_o),isChromium:H($o),isIE:H(Mo),isOpera:H(pi),isFirefox:H(Hn),isSafari:H(ar)}},Zr={unknown:Dr,nu:Sr,edge:$(_o),chromium:$($o),ie:$(Mo),opera:$(pi),firefox:$(Hn),safari:$(ar)},go="Windows",oo="iOS",io="Android",Do="Linux",jn="macOS",Rr="Solaris",On="FreeBSD",Yn="ChromeOS",ir=()=>kr({current:void 0,version:rn.unknown()}),kr=r=>{const g=r.current,B=r.version,H=oe=>()=>g===oe;return{current:g,version:B,isWindows:H(go),isiOS:H(oo),isAndroid:H(io),isMacOS:H(jn),isLinux:H(Do),isSolaris:H(Rr),isFreeBSD:H(On),isChromeOS:H(Yn)}},Er={unknown:ir,nu:kr,windows:$(go),ios:$(oo),android:$(io),linux:$(Do),macos:$(jn),solaris:$(Rr),freebsd:$(On),chromeos:$(Yn)},on={detect:(r,g,B)=>{const H=Fo.browsers(),oe=Fo.oses(),be=g.bind(ut=>_n(H,ut)).orThunk(()=>An(H,r)).fold(Zr.unknown,Zr.nu),Le=Kn(oe,r).fold(Er.unknown,Er.nu),Ke=qt(Le,be,r,B);return{browser:be,os:Le,deviceType:Ke}}},an=r=>window.matchMedia(r).matches;let Tn=_t(()=>on.detect(window.navigator.userAgent,Y.from(window.navigator.userAgentData),an));const zn=()=>Tn(),Gn=window.navigator.userAgent,Lr=zn(),Ur=Lr.browser,qr=Lr.os,Cr=Lr.deviceType,wo=Gn.indexOf("Windows Phone")!==-1,Nr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Ur.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Ur.isIE(),windowsPhone:wo,browser:{current:Ur.current,version:Ur.version,isChromium:Ur.isChromium,isEdge:Ur.isEdge,isFirefox:Ur.isFirefox,isIE:Ur.isIE,isOpera:Ur.isOpera,isSafari:Ur.isSafari},os:{current:qr.current,version:qr.version,isAndroid:qr.isAndroid,isChromeOS:qr.isChromeOS,isFreeBSD:qr.isFreeBSD,isiOS:qr.isiOS,isLinux:qr.isLinux,isMacOS:qr.isMacOS,isSolaris:qr.isSolaris,isWindows:qr.isWindows},deviceType:{isDesktop:Cr.isDesktop,isiPad:Cr.isiPad,isiPhone:Cr.isiPhone,isPhone:Cr.isPhone,isTablet:Cr.isTablet,isTouch:Cr.isTouch,isWebView:Cr.isWebView}},Eo=/^\s*|\s*$/g,zo=r=>T(r)?"":(""+r).replace(Eo,""),Qt=(r,g)=>g?g==="array"&&vt(r)?!0:typeof r===g:r!==void 0,Mn=(r,g,B={})=>{const H=v(r)?r.split(g||","):r||[];let oe=H.length;for(;oe--;)B[H[oe]]={};return B},Fn=Ot,dr=(r,...g)=>{for(let B=0;Bg.call(H,oe,be,B)===!1?!1:(xr(oe,g,B,H),!0)))},To={trim:zo,isArray:vt,is:Qt,toArray:xt,makeMap:Mn,each:st,map:bt,grep:Vt,inArray:Dt,hasOwn:Fn,extend:dr,walk:xr,resolve:(r,g=window)=>{const B=r.split(".");for(let H=0,oe=B.length;HC(r)?r:r===""?[]:bt(r.split(g||","),zo),_addCacheSuffix:r=>{const g=Nr.cacheSuffix;return g&&(r+=(r.indexOf("?")===-1?"?":"&")+g),r}},Ia=(r,g,B=j)=>r.exists(H=>B(H,g)),Ds=(r,g,B=j)=>zi(r,g,B).getOr(r.isNone()&&g.isNone()),fs=r=>{const g=[],B=H=>{g.push(H)};for(let H=0;Hr.isSome()&&g.isSome()?Y.some(B(r.getOrDie(),g.getOrDie())):Y.none(),yl=(r,g,B,H)=>r.isSome()&&g.isSome()&&B.isSome()?Y.some(H(r.getOrDie(),g.getOrDie(),B.getOrDie())):Y.none(),Bs=(r,g)=>r?Y.some(g):Y.none(),yf=typeof window<"u"?window:Function("return this;")(),il=(r,g)=>{let B=g??yf;for(let H=0;H{const B=r.split(".");return il(B,g)},nh=(r,g)=>nf(r,g),gp=(r,g)=>{const B=nh(r,g);if(B==null)throw new Error(r+" not available on this browser");return B},Qs=Object.getPrototypeOf,xh=r=>gp("HTMLElement",r),Bl=r=>{const g=nf("ownerDocument.defaultView",r);return _(r)&&(xh(g).prototype.isPrototypeOf(r)||/^HTML\w*Element$/.test(Qs(r).constructor.name))},Tc=8,iu=9,au=11,zf=1,_s=3,ma=r=>r.dom.nodeName.toLowerCase(),mu=r=>r.dom.nodeType,Uc=r=>g=>mu(g)===r,Kf=r=>mu(r)===Tc||ma(r)==="#comment",Al=r=>Wl(r)&&Bl(r.dom),Wl=Uc(zf),Ml=Uc(_s),Jf=Uc(iu),Nf=Uc(au),Jl=r=>g=>Wl(g)&&ma(g)===r,Gh=(r,g,B)=>{if(v(B)||R(B)||L(B))r.setAttribute(g,B+"");else throw console.error("Invalid call to Attribute.set. Key ",g,":: Value ",B,":: Element ",r),new Error("Attribute value was not simple")},ll=(r,g,B)=>{Gh(r.dom,g,B)},Tu=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Gh(B,oe,H)})},gu=(r,g)=>{const B=r.dom.getAttribute(g);return B===null?void 0:B},ec=(r,g)=>Y.from(gu(r,g)),Dc=(r,g)=>{const B=r.dom;return B&&B.hasAttribute?B.hasAttribute(g):!1},tc=(r,g)=>{r.dom.removeAttribute(g)},Lp=r=>{const g=r.dom.attributes;return g==null||g.length===0},rh=r=>Ie(r.dom.attributes,(g,B)=>(g[B.name]=B.value,g),{}),rf=(r,g)=>{const B=gu(r,g);return B===void 0||B===""?[]:B.split(" ")},of=(r,g,B)=>{const oe=rf(r,g).concat([B]);return ll(r,g,oe.join(" ")),!0},bf=(r,g,B)=>{const H=Te(rf(r,g),oe=>oe!==B);return H.length>0?ll(r,g,H.join(" ")):tc(r,g),!1},vu=r=>r.dom.classList!==void 0,$d=r=>rf(r,"class"),bl=(r,g)=>of(r,"class",g),Zu=(r,g)=>bf(r,"class",g),Kh=(r,g)=>ce($d(r),g)?Zu(r,g):bl(r,g),Cu=(r,g)=>{vu(r)?r.dom.classList.add(g):bl(r,g)},ed=r=>{(vu(r)?r.dom.classList:$d(r)).length===0&&tc(r,"class")},Bu=(r,g)=>{vu(r)?r.dom.classList.remove(g):Zu(r,g),ed(r)},vd=(r,g)=>{const B=vu(r)?r.dom.classList.toggle(g):Kh(r,g);return ed(r),B},cs=(r,g)=>vu(r)&&r.dom.classList.contains(g),oh=(r,g)=>{const H=(g||document).createElement("div");if(H.innerHTML=r,!H.hasChildNodes()||H.childNodes.length>1){const oe="HTML does not have a single root node";throw console.error(oe,r),new Error(oe)}return xf(H.childNodes[0])},Jh=(r,g)=>{const H=(g||document).createElement(r);return xf(H)},_h=(r,g)=>{const H=(g||document).createTextNode(r);return xf(H)},xf=r=>{if(r==null)throw new Error("Node cannot be null or undefined");return{dom:r}},_r={fromHtml:oh,fromTag:Jh,fromText:_h,fromDom:xf,fromPoint:(r,g,B)=>Y.from(r.dom.elementFromPoint(g,B)).map(xf)},Ff=(r,g)=>{const B=[],H=be=>(B.push(be),g(be));let oe=g(r);do oe=oe.bind(H);while(oe.isSome());return B},yd=(r,g)=>{const B=r.dom;if(B.nodeType!==zf)return!1;{const H=B;if(H.matches!==void 0)return H.matches(g);if(H.msMatchesSelector!==void 0)return H.msMatchesSelector(g);if(H.webkitMatchesSelector!==void 0)return H.webkitMatchesSelector(g);if(H.mozMatchesSelector!==void 0)return H.mozMatchesSelector(g);throw new Error("Browser lacks native selectors")}},bd=r=>r.nodeType!==zf&&r.nodeType!==iu&&r.nodeType!==au||r.childElementCount===0,wh=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?[]:ye(B.querySelectorAll(r),_r.fromDom)},zu=(r,g)=>{const B=g===void 0?document:g.dom;return bd(B)?Y.none():Y.from(B.querySelector(r)).map(_r.fromDom)},va=(r,g)=>r.dom===g.dom,El=(r,g)=>{const B=r.dom,H=g.dom;return B===H?!1:B.contains(H)},_f=r=>_r.fromDom(r.dom.ownerDocument),$f=r=>Jf(r)?r:_f(r),ih=r=>_r.fromDom($f(r).dom.documentElement),yu=r=>_r.fromDom($f(r).dom.defaultView),jc=r=>Y.from(r.dom.parentNode).map(_r.fromDom),Nh=r=>Y.from(r.dom.parentElement).map(_r.fromDom),af=(r,g)=>{const B=A(g)?g:re;let H=r.dom;const oe=[];for(;H.parentNode!==null&&H.parentNode!==void 0;){const be=H.parentNode,Le=_r.fromDom(be);if(oe.push(Le),B(Le)===!0)break;H=be}return oe},td=r=>{const g=B=>Te(B,H=>!va(r,H));return jc(r).map(vc).map(g).getOr([])},sf=r=>Y.from(r.dom.previousSibling).map(_r.fromDom),Bc=r=>Y.from(r.dom.nextSibling).map(_r.fromDom),Vd=r=>ke(Ff(r,sf)),xd=r=>Ff(r,Bc),vc=r=>ye(r.dom.childNodes,_r.fromDom),gs=(r,g)=>{const B=r.dom.childNodes;return Y.from(B[g]).map(_r.fromDom)},yc=r=>gs(r,0),Cc=r=>gs(r,r.dom.childNodes.length-1),Nu=r=>r.dom.childNodes.length,Gs=r=>{const g=r.dom.head;if(g==null)throw new Error("Head is not available yet");return _r.fromDom(g)},Ks=r=>Nf(r)&&P(r.dom.host),Ac=r=>_r.fromDom(r.dom.getRootNode()),_d=r=>Ks(r)?r:Gs($f(r)),Fh=r=>Ks(r)?r:_r.fromDom($f(r).dom.body),$h=r=>{const g=Ac(r);return Ks(g)?Y.some(g):Y.none()},vp=r=>_r.fromDom(r.dom.host),ah=r=>{if(P(r.target)){const g=_r.fromDom(r.target);if(Wl(g)&&Au(g)&&r.composed&&r.composedPath){const B=r.composedPath();if(B)return Ye(B)}}return Y.from(r.target)},Au=r=>P(r.dom.shadowRoot),lf=r=>{const g=Ml(r)?r.dom.parentNode:r.dom;if(g==null||g.ownerDocument===null)return!1;const B=g.ownerDocument;return $h(_r.fromDom(g)).fold(()=>B.body.contains(g),z(lf,vp))};var wf=(r,g,B,H,oe)=>r(B,H)?Y.some(B):A(oe)&&oe(B)?Y.none():g(B,H,oe);const vs=(r,g,B)=>{let H=r.dom;const oe=A(B)?B:re;for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H);if(g(be))return Y.some(be);if(oe(be))break}return Y.none()},cl=(r,g,B)=>wf((oe,be)=>be(oe),vs,r,g,B),bc=(r,g)=>{const B=r.dom;return B.parentNode?nc(_r.fromDom(B.parentNode),H=>!va(r,H)&&g(H)):Y.none()},nc=(r,g)=>{const B=oe=>g(_r.fromDom(oe));return De(r.dom.childNodes,B).map(_r.fromDom)},Qc=(r,g)=>{const B=H=>{for(let oe=0;oevs(r,H=>yd(H,g),B),wi=(r,g)=>zu(g,r),bu=(r,g,B)=>wf((oe,be)=>yd(oe,be),ts,r,g,B),wd=r=>bu(r,"[contenteditable]"),Ol=(r,g=!1)=>lf(r)?r.dom.isContentEditable:wd(r).fold($(g),B=>ds(B)==="true"),ds=r=>r.dom.contentEditable,zc=r=>r.style!==void 0&&A(r.style.getPropertyValue),Ud=(r,g,B)=>{if(!v(B))throw console.error("Invalid call to CSS.set. Property ",g,":: Value ",B,":: Element ",r),new Error("CSS value must be a string: "+B);zc(r)&&r.style.setProperty(g,B)},cf=(r,g)=>{zc(r)&&r.style.removeProperty(g)},Of=(r,g,B)=>{const H=r.dom;Ud(H,g,B)},aa=(r,g)=>{const B=r.dom;Ge(g,(H,oe)=>{Ud(B,oe,H)})},rs=(r,g)=>{const B=r.dom,oe=window.getComputedStyle(B).getPropertyValue(g);return oe===""&&!lf(r)?Mu(B,g):oe},Mu=(r,g)=>zc(r)?r.style.getPropertyValue(g):"",Ri=(r,g)=>{const B=r.dom,H=Mu(B,g);return Y.from(H).filter(oe=>oe.length>0)},Gc=r=>{const g={},B=r.dom;if(zc(B))for(let H=0;H{const B=r.dom;cf(B,g),Ia(ec(r,"style").map(qn),"")&&tc(r,"style")},zl=r=>r.dom.offsetWidth,xc=(r,g)=>{jc(r).each(H=>{H.dom.insertBefore(g.dom,r.dom)})},Kc=(r,g)=>{Bc(r).fold(()=>{jc(r).each(oe=>{ii(oe,g)})},H=>{xc(H,g)})},jd=(r,g)=>{yc(r).fold(()=>{ii(r,g)},H=>{r.dom.insertBefore(g.dom,H.dom)})},ii=(r,g)=>{r.dom.appendChild(g.dom)},nd=(r,g)=>{xc(r,g),ii(g,r)},al=(r,g)=>{ve(g,(B,H)=>{const oe=H===0?r:g[H-1];Kc(oe,B)})},Yl=(r,g)=>{ve(g,B=>{ii(r,B)})},uf=r=>{r.dom.textContent="",ve(vc(r),g=>{hs(g)})},hs=r=>{const g=r.dom;g.parentNode!==null&&g.parentNode.removeChild(g)},Mc=r=>{const g=vc(r);g.length>0&&al(r,g),hs(r)},Eu=(r,g)=>{const H=(g||document).createElement("div");return H.innerHTML=r,vc(_r.fromDom(H))},xu=r=>ye(r,_r.fromDom),ws=r=>r.dom.innerHTML,Fu=(r,g)=>{const H=_f(r).dom,oe=_r.fromDom(H.createDocumentFragment()),be=Eu(g,H);Yl(oe,be),uf(r),ii(r,oe)},su=r=>{const g=_r.fromTag("div"),B=_r.fromDom(r.dom.cloneNode(!0));return ii(g,B),ws(g)},Ca=(r,g,B,H,oe,be,Le)=>({target:r,x:g,y:B,stop:H,prevent:oe,kill:be,raw:Le}),Ls=r=>{const g=_r.fromDom(ah(r).getOr(r.target)),B=()=>r.stopPropagation(),H=()=>r.preventDefault(),oe=I(H,B);return Ca(g,r.clientX,r.clientY,B,H,oe,r)},Ec=(r,g)=>B=>{r(B)&&g(Ls(B))},_u=(r,g,B,H,oe)=>{const be=Ec(B,H);return r.dom.addEventListener(g,be,oe),{unbind:U(Kt,r,g,be,oe)}},wt=(r,g,B,H)=>_u(r,g,B,H,!1),Kt=(r,g,B,H)=>{r.dom.removeEventListener(g,B,H)},En=(r,g)=>({left:r,top:g,translate:(H,oe)=>En(r+H,g+oe)}),pr=En,wr=r=>{const g=r.getBoundingClientRect();return pr(g.left,g.top)},uo=(r,g)=>r!==void 0?r:g!==void 0?g:0,Bi=r=>{const g=r.dom.ownerDocument,B=g.body,H=g.defaultView,oe=g.documentElement;if(B===r.dom)return pr(B.offsetLeft,B.offsetTop);const be=uo(H==null?void 0:H.pageYOffset,oe.scrollTop),Le=uo(H==null?void 0:H.pageXOffset,oe.scrollLeft),Ke=uo(oe.clientTop,B.clientTop),ut=uo(oe.clientLeft,B.clientLeft);return ya(r).translate(Le-ut,be-Ke)},ya=r=>{const g=r.dom,H=g.ownerDocument.body;return H===g?pr(H.offsetLeft,H.offsetTop):lf(r)?wr(g):pr(0,0)},Ni=r=>{const g=r!==void 0?r.dom:document,B=g.body.scrollLeft||g.documentElement.scrollLeft,H=g.body.scrollTop||g.documentElement.scrollTop;return pr(B,H)},Qi=(r,g,B)=>{const oe=(B!==void 0?B.dom:document).defaultView;oe&&oe.scrollTo(r,g)},Ws=(r,g)=>{zn().browser.isSafari()&&A(r.dom.scrollIntoViewIfNeeded)?r.dom.scrollIntoViewIfNeeded(!1):r.dom.scrollIntoView(g)},nl=r=>{const g=r===void 0?window:r;return zn().browser.isFirefox()?Y.none():Y.from(g.visualViewport)},Fs=(r,g,B,H)=>({x:r,y:g,width:B,height:H,right:r+B,bottom:g+H}),Wu=r=>{const g=r===void 0?window:r,B=g.document,H=Ni(_r.fromDom(B));return nl(g).fold(()=>{const oe=g.document.documentElement,be=oe.clientWidth,Le=oe.clientHeight;return Fs(H.left,H.top,be,Le)},oe=>Fs(Math.max(oe.pageLeft,H.left),Math.max(oe.pageTop,H.top),oe.width,oe.height))},Ki=(r,g)=>Te(vc(r),g),Aa=(r,g)=>{let B=[];return ve(vc(r),H=>{g(H)&&(B=B.concat([H])),B=B.concat(Aa(H,g))}),B},Pl=(r,g)=>wh(g,r),Vf=(r,g,B)=>vs(r,g,B).isSome(),sh=(r,g)=>bc(r,g).isSome(),_c=(r,g)=>Qc(r,g).isSome();class Xl{constructor(g,B){this.node=g,this.rootNode=B,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(g){return this.node=this.findSibling(this.node,"firstChild","nextSibling",g),this.node}prev(g){return this.node=this.findSibling(this.node,"lastChild","previousSibling",g),this.node}prev2(g){return this.node=this.findPreviousNode(this.node,g),this.node}findSibling(g,B,H,oe){if(g){if(!oe&&g[B])return g[B];if(g!==this.rootNode){let be=g[H];if(be)return be;for(let Le=g.parentNode;Le&&Le!==this.rootNode;Le=Le.parentNode)if(be=Le[H],be)return be}}}findPreviousNode(g,B){if(g){const H=g.previousSibling;if(this.rootNode&&H===this.rootNode)return;if(H){if(!B){for(let be=H.lastChild;be;be=be.lastChild)if(!be.lastChild)return be}return H}const oe=g.parentNode;if(oe&&oe!==this.rootNode)return oe}}}const pl="\uFEFF",Pc=" ",Uf=r=>r===pl,Os=r=>r.replace(/\uFEFF/g,""),Si=/^[ \t\r\n]*$/,lc=r=>Si.test(r),rd=r=>{for(const g of r)if(!Uf(g))return!1;return!0},tp=r=>" \f \v".indexOf(r)!==-1,kt=r=>r===` +`||r==="\r",It=(r,g)=>g=0?kt(r[g]):!1,Ut=(r,g=4,B=!0,H=!0)=>{const oe=Vr(" ",g),be=r.replace(/\t/g,oe);return Ie(be,(Ke,ut)=>tp(ut)||ut===Pc?Ke.pcIsSpace||Ke.str===""&&B||Ke.str.length===be.length-1&&H||It(be,Ke.str.length+1)?{pcIsSpace:!1,str:Ke.str+Pc}:{pcIsSpace:!0,str:Ke.str+" "}:{pcIsSpace:kt(ut),str:Ke.str+ut},{pcIsSpace:!1,str:""}).str},J=r=>g=>!!g&&g.nodeType===r,le=r=>!!r&&!Object.getPrototypeOf(r),ne=J(1),V=r=>ne(r)&&Al(_r.fromDom(r)),ie=r=>ne(r)&&r.namespaceURI==="http://www.w3.org/2000/svg",ge=r=>{const g=r.toLowerCase();return B=>P(B)&&B.nodeName.toLowerCase()===g},xe=r=>{const g=r.map(B=>B.toLowerCase());return B=>{if(B&&B.nodeName){const H=B.nodeName.toLowerCase();return ce(g,H)}return!1}},Ee=(r,g)=>{const B=g.toLowerCase().split(" ");return H=>{if(ne(H)){const oe=H.ownerDocument.defaultView;if(oe)for(let be=0;beg=>ne(g)&&g.hasAttribute(r),et=r=>ne(r)&&r.hasAttribute("data-mce-bogus"),rt=r=>ne(r)&&r.getAttribute("data-mce-bogus")==="all",dt=r=>ne(r)&&r.tagName==="TABLE",gt=r=>g=>!!(V(g)&&(g.contentEditable===r||g.getAttribute("data-mce-contenteditable")===r)),Rt=xe(["textarea","input"]),Mt=J(3),Xt=J(4),dn=J(7),bn=J(8),vn=J(9),Ln=J(11),gn=ge("br"),Jn=ge("img"),pn=gt("true"),In=gt("false"),Ir=xe(["td","th"]),Pr=xe(["td","th","caption"]),Gr=xe(["video","audio","object","embed"]),ro=ge("li"),po=ge("details"),Wo=ge("summary"),si={skipBogus:!0,includeZwsp:!1,checkRootAsContent:!1},Bo=(r,g,B)=>{const H=_r.fromDom(g),oe=_r.fromDom(r),be=B.getWhitespaceElements();return Vf(oe,Ke=>Ot(be,ma(Ke)),U(va,H))},Go=r=>ne(r)&&r.nodeName==="A"&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id")),Yo=(r,g)=>ne(r)&&Ot(g.getNonEmptyElements(),r.nodeName),Wi=Ne("data-mce-bookmark"),Ho=r=>Nh(_r.fromDom(r)).exists(g=>!Ol(g)),jo=(r,g,B)=>lc(r.data)&&!Bo(r,g,B),Yi=(r,g,B,H)=>Mt(r)&&!jo(r,g,B)&&(!H.includeZwsp||!rd(r.data)),ai=(r,g,B,H)=>A(H.isContent)&&H.isContent(g)||Yo(g,r)||Wi(g)||Go(g)||Yi(g,B,r,H)||In(g)||pn(g)&&Ho(g),Hi=(r,g,B)=>{const H={...si,...B};if(H.checkRootAsContent&&ai(r,g,g,H))return!1;let oe=g.firstChild,be=0;if(!oe)return!0;const Le=new Xl(oe,g);do{if(H.skipBogus&&ne(oe)){const Ke=oe.getAttribute("data-mce-bogus");if(Ke){oe=Le.next(Ke==="all");continue}}if(bn(oe)){oe=Le.next(!0);continue}if(gn(oe)){be++,oe=Le.next();continue}if(ai(r,oe,g,H))return!1;oe=Le.next()}while(oe);return be<=1},Ai=(r,g,B)=>Hi(r,g.dom,{checkRootAsContent:!0,...B}),es=(r,g,B)=>ai(r,g,g,{includeZwsp:si.includeZwsp,...B}),Ar=r=>{let g=r;return{get:()=>g,set:oe=>{g=oe}}},ns=r=>{const g=Ar(Y.none()),B=()=>g.get().each(r);return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(Ke))}}},$s=r=>{const g=Ar(Y.none()),B=()=>g.get().each(Ke=>clearInterval(Ke));return{clear:()=>{B(),g.set(Y.none())},isSet:()=>g.get().isSome(),get:()=>g.get(),set:Ke=>{B(),g.set(Y.some(setInterval(Ke,r)))}}},Ts=()=>{const r=ns(k);return{...r,on:B=>r.get().each(B)}},rl=r=>{const g=r.toLowerCase();return g==="svg"?"svg":g==="math"?"math":"html"},Hs=r=>rl(r)!=="html",ys=r=>Hs(r.nodeName),Yu=r=>rl(r.nodeName),mt=["svg","math"],Tt=()=>{const r=Ts(),g=()=>r.get().map(Yu).getOr("html");return{track:oe=>(ys(oe)?r.set(oe):r.get().exists(be=>!be.contains(oe))&&r.clear(),g()),current:g,reset:()=>{r.clear()}}},xn="data-mce-block",Nn=r=>Te(tt(r),g=>!/[A-Z]/.test(g)),yr=r=>ye(Nn(r),g=>{const B=CSS.escape(g);return`${B}:`+ye(mt,H=>`not(${H} ${B})`).join(":")}).join(","),so=(r,g)=>P(g.querySelector(r))?(g.setAttribute(xn,"true"),g.getAttribute("data-mce-selected")==="inline-boundary"&&g.removeAttribute("data-mce-selected"),!0):(g.removeAttribute(xn),!1),No=(r,g)=>{const B=yr(r.getTransparentElements()),H=yr(r.getBlockElements());return Te(g.querySelectorAll(B),oe=>so(H,oe))},ui=(r,g,B)=>{var H;const oe=B?"lastChild":"firstChild";for(let be=g[oe];be;be=be[oe])if(Hi(r,be,{checkRootAsContent:!0})){(H=be.parentNode)===null||H===void 0||H.removeChild(be);return}},ga=(r,g,B)=>{const H=document.createRange(),oe=g.parentNode;if(oe){H.setStartBefore(g),H.setEndBefore(B);const be=H.extractContents();ui(r,be,!0),H.setStartAfter(B),H.setEndAfter(g);const Le=H.extractContents();ui(r,Le,!1),Hi(r,be,{checkRootAsContent:!0})||oe.insertBefore(be,g),Hi(r,B,{checkRootAsContent:!0})||oe.insertBefore(B,g),Hi(r,Le,{checkRootAsContent:!0})||oe.insertBefore(Le,g),oe.removeChild(g)}},Sa=(r,g,B)=>{const H=r.getBlockElements(),oe=_r.fromDom(g),be=Ke=>ma(Ke)in H,Le=Ke=>va(Ke,oe);ve(xu(B),Ke=>{vs(Ke,be,Le).each(ut=>{const At=Ki(Ke,nn=>be(nn)&&!r.isValidChild(ma(ut),ma(nn)));if(At.length>0){const nn=Nh(ut);ve(At,un=>{vs(un,be,Le).each(yn=>{ga(r,yn.dom,un.dom)})}),nn.each(un=>No(r,un.dom))}})})},ua=(r,g,B)=>{ve([...B,...lh(r,g)?[g]:[]],H=>ve(Pl(_r.fromDom(H),H.nodeName.toLowerCase()),oe=>{r0(r,oe.dom)&&Mc(oe)}))},Cs=(r,g)=>{const B=No(r,g);Sa(r,g,B),ua(r,g,B)},ul=(r,g)=>{if(Nl(r,g)){const B=yr(r.getBlockElements());so(B,g)}},Jc=(r,g,B)=>{const H=be=>va(be,_r.fromDom(g)),oe=af(_r.fromDom(B),H);Ze(oe,oe.length-2).filter(Wl).fold(()=>Cs(r,g),be=>Cs(r,be.dom))},Is=r=>r.hasAttribute(xn),Hc=(r,g)=>Ot(r.getTransparentElements(),g),Nl=(r,g)=>ne(g)&&Hc(r,g.nodeName),lh=(r,g)=>Nl(r,g)&&Is(g),r0=(r,g)=>Nl(r,g)&&!Is(g),ch=(r,g)=>g.type===1&&Hc(r,g.name)&&v(g.attr(xn)),gg=zn().browser,Ip=r=>De(r,Wl),X0=r=>gg.isFirefox()&&ma(r)==="table"?Ip(vc(r)).filter(g=>ma(g)==="caption").bind(g=>Ip(xd(g)).map(B=>{const H=B.dom.offsetTop,oe=g.dom.offsetTop,be=g.dom.offsetHeight;return H<=oe?-be:0})).getOr(0):0,Vh=(r,g)=>r.children&&ce(r.children,g),Pu=(r,g,B)=>{let H=0,oe=0;const be=r.ownerDocument;if(B=B||r,g){if(B===r&&g.getBoundingClientRect&&rs(_r.fromDom(r),"position")==="static"){const Ke=g.getBoundingClientRect();return H=Ke.left+(be.documentElement.scrollLeft||r.scrollLeft)-be.documentElement.clientLeft,oe=Ke.top+(be.documentElement.scrollTop||r.scrollTop)-be.documentElement.clientTop,{x:H,y:oe}}let Le=g;for(;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);){const Ke=Le;H+=Ke.offsetLeft||0,oe+=Ke.offsetTop||0,Le=Ke.offsetParent}for(Le=g.parentNode;Le&&Le!==B&&Le.nodeType&&!Vh(Le,B);)H-=Le.scrollLeft||0,oe-=Le.scrollTop||0,Le=Le.parentNode;oe+=X0(_r.fromDom(g))}return{x:H,y:oe}},Uh=(r,g={})=>{let B=0;const H={},oe=_r.fromDom(r),be=$f(oe),Le=Tr=>{g.referrerPolicy=Tr},Ke=Tr=>{g.contentCssCors=Tr},ut=Tr=>{ii(_d(oe),Tr)},At=Tr=>{const Wr=_d(oe);wi(Wr,"#"+Tr).each(hs)},nn=Tr=>Et(H,Tr).getOrThunk(()=>({id:"mce-u"+B++,passed:[],failed:[],count:0})),un=Tr=>new Promise((Wr,Qr)=>{let lo;const Zo=To._addCacheSuffix(Tr),li=nn(Zo);H[Zo]=li,li.count++;const Mi=(Fi,la)=>{ve(Fi,K),li.status=la,li.passed=[],li.failed=[],lo&&(lo.onload=null,lo.onerror=null,lo=null)},Co=()=>Mi(li.passed,2),yo=()=>Mi(li.failed,3);if(Wr&&li.passed.push(Wr),Qr&&li.failed.push(Qr),li.status===1)return;if(li.status===2){Co();return}if(li.status===3){yo();return}li.status=1;const Vo=_r.fromTag("link",be.dom);Tu(Vo,{rel:"stylesheet",type:"text/css",id:li.id}),g.contentCssCors&&ll(Vo,"crossOrigin","anonymous"),g.referrerPolicy&&ll(Vo,"referrerpolicy",g.referrerPolicy),lo=Vo.dom,lo.onload=Co,lo.onerror=yo,ut(Vo),ll(Vo,"href",Zo)}),yn=(Tr,Wr)=>{const Qr=nn(Tr);H[Tr]=Qr,Qr.count++;const lo=_r.fromTag("style",be.dom);Tu(lo,{rel:"stylesheet",type:"text/css",id:Qr.id}),lo.dom.innerHTML=Wr,ut(lo)},Qn=Tr=>Promise.allSettled(ye(Tr,Qr=>un(Qr).then($(Qr)))).then(Qr=>{const lo=we(Qr,Zo=>Zo.status==="fulfilled");return lo.fail.length>0?Promise.reject(ye(lo.fail,Zo=>Zo.reason)):ye(lo.pass,Zo=>Zo.value)}),rr=Tr=>{const Wr=To._addCacheSuffix(Tr);Et(H,Wr).each(Qr=>{--Qr.count===0&&(delete H[Wr],At(Qr.id))})};return{load:un,loadRawCss:yn,loadAll:Qn,unload:rr,unloadRawCss:Tr=>{Et(H,Tr).each(Wr=>{--Wr.count===0&&(delete H[Tr],At(Wr.id))})},unloadAll:Tr=>{ve(Tr,Wr=>{rr(Wr)})},_setReferrerPolicy:Le,_setContentCssCors:Ke}},Gl=(()=>{const r=new WeakMap;return{forElement:(B,H)=>{const be=Ac(B).dom;return Y.from(r.get(be)).getOrThunk(()=>{const Le=Uh(be,H);return r.set(be,Le),Le})}}})(),Sf=r=>r.nodeName.toLowerCase()==="span",Nc=(r,g)=>P(r)&&(es(g,r)||g.isInline(r.nodeName.toLowerCase())),o0=(r,g,B)=>{const H=new Xl(r,g).prev(!1),oe=new Xl(r,g).next(!1),be=M(H)||Nc(H,B),Le=M(oe)||Nc(oe,B);return be&&Le},i0=r=>Sf(r)&&r.getAttribute("data-mce-type")==="bookmark",a0=(r,g,B)=>Mt(r)&&r.data.length>0&&o0(r,g,B),wu=r=>ne(r)?r.childNodes.length>0:!1,Dp=r=>Ln(r)||vn(r),Rm=(r,g,B,H)=>{var oe;const be=H||g;if(ne(g)&&i0(g))return g;const Le=g.childNodes;for(let Ke=Le.length-1;Ke>=0;Ke--)Rm(r,Le[Ke],B,be);if(ne(g)){const Ke=g.childNodes;Ke.length===1&&i0(Ke[0])&&((oe=g.parentNode)===null||oe===void 0||oe.insertBefore(Ke[0],g))}return!Dp(g)&&!es(B,g)&&!wu(g)&&!a0(g,be,B)&&r.remove(g),g},nm=To.makeMap,G0=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vg=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s0=/[<>&\"\']/g,H1=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,VO={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},rm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},z_={"<":"<",">":">","&":"&",""":'"',"'":"'"},db=r=>{const g=_r.fromTag("div").dom;return g.innerHTML=r,g.textContent||g.innerText||r},lu=(r,g)=>{const B={};if(r){const H=r.split(",");g=g||10;for(let oe=0;oer.replace(g?G0:vg,B=>rm[B]||B),kf=r=>(""+r).replace(s0,g=>rm[g]||g),l0=(r,g)=>r.replace(g?G0:vg,B=>B.length>1?"&#"+((B.charCodeAt(0)-55296)*1024+(B.charCodeAt(1)-56320)+65536)+";":rm[B]||"&#"+B.charCodeAt(0)+";"),yp=(r,g,B)=>{const H=B||sy;return r.replace(g?G0:vg,oe=>rm[oe]||H[oe]||oe)},Lm={encodeRaw:Oh,encodeAllRaw:kf,encodeNumeric:l0,encodeNamed:yp,getEncodeFunc:(r,g)=>{const B=lu(g)||sy,H=(Le,Ke)=>Le.replace(Ke?G0:vg,ut=>rm[ut]!==void 0?rm[ut]:B[ut]!==void 0?B[ut]:ut.length>1?"&#"+((ut.charCodeAt(0)-55296)*1024+(ut.charCodeAt(1)-56320)+65536)+";":"&#"+ut.charCodeAt(0)+";"),oe=(Le,Ke)=>yp(Le,Ke,B),be=nm(r.replace(/\+/g,","));return be.named&&be.numeric?H:be.named?g?oe:yp:be.numeric?l0:Oh},decode:r=>r.replace(H1,(g,B)=>B?(B.charAt(0).toLowerCase()==="x"?B=parseInt(B.substr(1),16):B=parseInt(B,10),B>65535?(B-=65536,String.fromCharCode(55296+(B>>10),56320+(B&1023))):VO[B]||String.fromCharCode(B)):z_[g]||sy[g]||db(g))},Qd=(r,g)=>(r=To.trim(r),r?r.split(g||" "):[]),Z1=r=>new RegExp("^"+r.replace(/([?+*])/g,".$1")+"$"),N_=r=>_(r)&&r.source&&Object.prototype.toString.call(r)==="[object RegExp]",K0=r=>{const g=B=>C(B)?ye(B,g):N_(B)?new RegExp(B.source,B.flags):_(B)?ht(B,g):B;return g(r)},ly=r=>{const g=/^(~)?(.+)$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const be=H[1]==="~"?"span":"div",Le=H[2];return[{cloneName:be,name:Le}]}else return[]})},yg=r=>Object.freeze(["id","accesskey","class","dir","lang","style","tabindex","title","role",...r!=="html4"?["contenteditable","contextmenu","draggable","dropzone","hidden","spellcheck","translate","itemprop","itemscope","itemtype"]:[],...r!=="html5-strict"?["xml:lang"]:[]]),Im=r=>{let g,B;g="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",B="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",r!=="html4"&&(g+=" article aside details dialog figure main header footer hgroup section nav "+"a ins del canvas map",B+=" audio canvas command data datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),r!=="html5-strict"&&(B=[B,"acronym applet basefont big font strike tt"].join(" "),g=[g,"center dir isindex noframes"].join(" "));const H=[g,B].join(" ");return{blockContent:g,phrasingContent:B,flowContent:H}},Dm=r=>{const{blockContent:g,phrasingContent:B,flowContent:H}=Im(r),oe=be=>Object.freeze(be.split(" "));return Object.freeze({blockContent:oe(g),phrasingContent:oe(B),flowContent:oe(H)})},Sh={html4:_t(()=>Dm("html4")),html5:_t(()=>Dm("html5")),"html5-strict":_t(()=>Dm("html5-strict"))},zp=(r,g)=>{const{blockContent:B,phrasingContent:H,flowContent:oe}=Sh[r]();return g==="blocks"?Y.some(B):g==="phrasing"?Y.some(H):g==="flow"?Y.some(oe):Y.none()},J0=r=>{const g=yg(r),{phrasingContent:B,flowContent:H}=Im(r),oe={},be=(ut,At,nn)=>{oe[ut]={attributes:We(At,$({})),attributesOrder:At,children:We(nn,$({}))}},Le=(ut,At="",nn="")=>{const un=Qd(nn),yn=Qd(ut);let Qn=yn.length;const rr=[...g,...Qd(At)];for(;Qn--;)be(yn[Qn],rr.slice(),un)},Ke=(ut,At)=>{const nn=Qd(ut),un=Qd(At);let yn=nn.length;for(;yn--;){const Qn=oe[nn[yn]];for(let rr=0,Wn=un.length;rr{Le(nn,"",B)}),ve(Qd("center dir isindex noframes"),nn=>{Le(nn,"",H)})),Le("html","manifest","head body"),Le("head","","base command link meta noscript script style title"),Le("title hr noscript br"),Le("base","href target"),Le("link","href rel media hreflang type sizes hreflang"),Le("meta","name http-equiv content charset"),Le("style","media type scoped"),Le("script","src async defer type charset"),Le("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",H),Le("dd div","",H),Le("address dt caption","",r==="html4"?B:H),Le("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",B),Le("blockquote","cite",H),Le("ol","reversed start type","li"),Le("ul","","li"),Le("li","value",H),Le("dl","","dt dd"),Le("a","href target rel media hreflang type",r==="html4"?B:H),Le("q","cite",B),Le("ins del","cite datetime",H),Le("img","src sizes srcset alt usemap ismap width height"),Le("iframe","src name width height",H),Le("embed","src type width height"),Le("object","data type typemustmatch name usemap form width height",[H,"param"].join(" ")),Le("param","name value"),Le("map","name",[H,"area"].join(" ")),Le("area","alt coords shape href target rel media hreflang type"),Le("table","border","caption colgroup thead tfoot tbody tr"+(r==="html4"?" col":"")),Le("colgroup","span","col"),Le("col","span"),Le("tbody thead tfoot","","tr"),Le("tr","","td th"),Le("td","colspan rowspan headers",H),Le("th","colspan rowspan headers scope abbr",H),Le("form","accept-charset action autocomplete enctype method name novalidate target",H),Le("fieldset","disabled form name",[H,"legend"].join(" ")),Le("label","form for",B),Le("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Le("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",r==="html4"?H:B),Le("select","disabled form multiple name required size","option optgroup"),Le("optgroup","disabled label","option"),Le("option","disabled label selected value"),Le("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Le("menu","type label",[H,"li"].join(" ")),Le("noscript","",H),r!=="html4"&&(Le("wbr"),Le("ruby","",[B,"rt rp"].join(" ")),Le("figcaption","",H),Le("mark rt rp bdi","",B),Le("summary","",[B,"h1 h2 h3 h4 h5 h6"].join(" ")),Le("canvas","width height",H),Le("data","value",B),Le("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[H,"track source"].join(" ")),Le("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[H,"track source"].join(" ")),Le("picture","","img source"),Le("source","src srcset type media sizes"),Le("track","kind src srclang label default"),Le("datalist","",[B,"option"].join(" ")),Le("article section nav aside main header footer","",H),Le("hgroup","","h1 h2 h3 h4 h5 h6"),Le("figure","",[H,"figcaption"].join(" ")),Le("time","datetime",B),Le("dialog","open",H),Le("command","type label icon disabled checked radiogroup command"),Le("output","for form name",B),Le("progress","value max",B),Le("meter","value min max low high optimum",B),Le("details","open",[H,"summary"].join(" ")),Le("keygen","autofocus challenge disabled form keytype name"),be("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),r!=="html5-strict"&&(Ke("script","language xml:space"),Ke("style","xml:space"),Ke("object","declare classid code codebase codetype archive standby align border hspace vspace"),Ke("embed","align name hspace vspace"),Ke("param","valuetype type"),Ke("a","charset name rev shape coords"),Ke("br","clear"),Ke("applet","codebase archive code object alt name width height align hspace vspace"),Ke("img","name longdesc align border hspace vspace"),Ke("iframe","longdesc frameborder marginwidth marginheight scrolling align"),Ke("font basefont","size color face"),Ke("input","usemap align"),Ke("select"),Ke("textarea"),Ke("h1 h2 h3 h4 h5 h6 div p legend caption","align"),Ke("ul","type compact"),Ke("li","type"),Ke("ol dl menu dir","compact"),Ke("pre","width xml:space"),Ke("hr","align noshade size width"),Ke("isindex","prompt"),Ke("table","summary width frame rules cellspacing cellpadding align bgcolor"),Ke("col","width align char charoff valign"),Ke("colgroup","width align char charoff valign"),Ke("thead","align char charoff valign"),Ke("tr","align char charoff valign bgcolor"),Ke("th","axis align char charoff valign nowrap bgcolor width height"),Ke("form","accept"),Ke("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),Ke("tfoot","align char charoff valign"),Ke("tbody","align char charoff valign"),Ke("area","nohref"),Ke("body","background bgcolor text link vlink alink")),r!=="html4"&&(Ke("input button select textarea","autofocus"),Ke("input textarea","placeholder"),Ke("a","download"),Ke("link script img","crossorigin"),Ke("img","loading"),Ke("iframe","sandbox seamless allow allowfullscreen loading referrerpolicy")),r!=="html4"&&ve([oe.video,oe.audio],ut=>{delete ut.children.audio,delete ut.children.video}),ve(Qd("a form meter progress dfn"),ut=>{oe[ut]&&delete oe[ut].children[ut]}),delete oe.caption.children.table,delete oe.script,oe},F_=r=>r==="-"?"remove":"add",q1=r=>{const g=/^(@?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)$/;return Y.from(g.exec(r)).map(B=>({preset:B[1]==="@",name:B[2]}))},$_=r=>{const g=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return $e(Qd(r,","),B=>{const H=g.exec(B);if(H){const oe=H[1],be=oe?F_(oe):"replace",Le=H[2],Ke=$e(Qd(H[3],"|"),ut=>q1(ut).toArray());return[{operation:be,name:Le,validChildren:Ke}]}else return[]})},Dx=(r,g)=>{const B=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,H=/[*?+]/,{attributes:oe,attributesOrder:be}=g;return ve(Qd(r,"|"),Le=>{const Ke=B.exec(Le);if(Ke){const ut={},At=Ke[1],nn=Ke[2].replace(/[\\:]:/g,":"),un=Ke[3],yn=Ke[4];if(At==="!"&&(g.attributesRequired=g.attributesRequired||[],g.attributesRequired.push(nn),ut.required=!0),At==="-"){delete oe[nn],be.splice(To.inArray(be,nn),1);return}if(un&&(un==="="?(g.attributesDefault=g.attributesDefault||[],g.attributesDefault.push({name:nn,value:yn}),ut.defaultValue=yn):un==="~"?(g.attributesForced=g.attributesForced||[],g.attributesForced.push({name:nn,value:yn}),ut.forcedValue=yn):un==="<"&&(ut.validValues=To.makeMap(yn,"?"))),H.test(nn)){const Qn=ut;g.attributePatterns=g.attributePatterns||[],Qn.pattern=Z1(nn),g.attributePatterns.push(Qn)}else oe[nn]||be.push(nn),oe[nn]=ut}})},UO=(r,g)=>{Ge(r.attributes,(B,H)=>{g.attributes[H]=B}),g.attributesOrder.push(...r.attributesOrder)},W1=(r,g)=>{const B=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return $e(Qd(g,","),H=>{const oe=B.exec(H);if(oe){const be=oe[1],Le=oe[2],Ke=oe[3],ut=oe[4],At=oe[5],nn={attributes:{},attributesOrder:[]};if(r.each(un=>UO(un,nn)),be==="#"?nn.paddEmpty=!0:be==="-"&&(nn.removeEmpty=!0),ut==="!"&&(nn.removeEmptyAttrs=!0),At&&Dx(At,nn),Ke&&(nn.outputName=Le),Le==="@")if(r.isNone())r=Y.some(nn);else return[];return[Ke?{name:Le,element:nn,aliasName:Ke}:{name:Le,element:nn}]}else return[]})},e1={},cu=To.makeMap,Za=To.each,sa=To.extend,Bm=To.explode,t1=(r,g={})=>{const B=cu(r," ",cu(r.toUpperCase()," "));return sa(B,g)},n1=r=>t1("td th li dt dd figcaption caption details summary",r.getTextBlockElements()),Bx=(r,g)=>{if(r){const B={};return v(r)&&(r={"*":r}),Za(r,(H,oe)=>{B[oe]=B[oe.toUpperCase()]=g==="map"?cu(H,/[, ]/):Bm(H,/[, ]/)}),B}else return},zm=(r={})=>{var g;const B={},H={};let oe=[];const be={},Le={},Ke=(ca,Zs,ru)=>{const ju=r[ca];if(ju)return cu(ju,/[, ]/,cu(ju.toUpperCase(),/[, ]/));{let Pf=e1[ca];return Pf||(Pf=t1(Zs,ru),e1[ca]=Pf),Pf}},ut=(g=r.schema)!==null&&g!==void 0?g:"html5",At=J0(ut);r.verify_html===!1&&(r.valid_elements="*[*]");const nn=Bx(r.valid_styles),un=Bx(r.invalid_styles,"map"),yn=Bx(r.valid_classes,"map"),Qn=Ke("whitespace_elements","pre script noscript style textarea video audio iframe object code"),rr=Ke("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),Wn=Ke("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),ur=Ke("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Tr="td th iframe video audio object script code",Wr=Ke("non_empty_elements",Tr+" pre svg textarea summary",Wn),Qr=Ke("move_caret_before_on_enter_elements",Tr+" table",Wn),lo="h1 h2 h3 h4 h5 h6",Zo=Ke("text_block_elements",lo+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),li=Ke("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",Zo),Mi=Ke("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Co=Ke("transparent_elements","a ins del canvas map"),yo=Ke("wrap_block_elements","pre "+lo);Za("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),ca=>{Le[ca]=new RegExp("]*>","gi")});const Vo=ca=>{const Zs=Y.from(B["@"]),ru=/[*?+]/;ve(W1(Zs,ca??""),({name:ju,element:Pf,aliasName:Gd})=>{if(Gd&&(B[Gd]=Pf),ru.test(ju)){const Rf=Pf;Rf.pattern=Z1(ju),oe.push(Rf)}else B[ju]=Pf})},Fi=ca=>{oe=[],ve(tt(B),Zs=>{delete B[Zs]}),Vo(ca)},la=(ca,Zs)=>{var ru,ju;delete e1.text_block_elements,delete e1.block_elements;const Pf=Zs.extends?!Om(Zs.extends):!1,Gd=Zs.extends;if(H[ca]=Gd?H[Gd]:{},be[ca]=Gd??ca,Wr[ca.toUpperCase()]={},Wr[ca]={},Pf||(li[ca.toUpperCase()]={},li[ca]={}),Gd&&!B[ca]&&B[Gd]){const Rf=K0(B[Gd]);delete Rf.removeEmptyAttrs,delete Rf.removeEmpty,B[ca]=Rf}else B[ca]={attributesOrder:[],attributes:{}};if(C(Zs.attributes)){const Rf=fp=>{Lf.attributesOrder.push(fp),Lf.attributes[fp]={}},Lf=(ru=B[ca])!==null&&ru!==void 0?ru:{};delete Lf.attributesDefault,delete Lf.attributesForced,delete Lf.attributePatterns,delete Lf.attributesRequired,Lf.attributesOrder=[],Lf.attributes={},ve(Zs.attributes,fp=>{const N0=yg(ut);q1(fp).each(({preset:F0,name:$0})=>{F0?$0==="global"&&ve(N0,Rf):Rf($0)})}),B[ca]=Lf}if(R(Zs.padEmpty)){const Rf=(ju=B[ca])!==null&&ju!==void 0?ju:{};Rf.paddEmpty=Zs.padEmpty,B[ca]=Rf}if(C(Zs.children)){const Rf={},Lf=N0=>{Rf[N0]={}},fp=N0=>{zp(ut,N0).each(F0=>{ve(F0,Lf)})};ve(Zs.children,N0=>{q1(N0).each(({preset:F0,name:$0})=>{F0?fp($0):Lf($0)})}),H[ca]=Rf}Gd&&Ge(H,(Rf,Lf)=>{Rf[Gd]&&(H[Lf]=Rf=sa({},H[Lf]),Rf[ca]=Rf[Gd])})},bs=ca=>{ve(ly(ca??""),({name:Zs,cloneName:ru})=>{la(Zs,{extends:ru})})},Ms=ca=>{_(ca)?Ge(ca,(Zs,ru)=>la(ru,Zs)):v(ca)&&bs(ca)},wl=ca=>{ve($_(ca??""),({operation:Zs,name:ru,validChildren:ju})=>{const Pf=Zs==="replace"?{"#comment":{}}:H[ru],Gd=Lf=>{Zs==="remove"?delete Pf[Lf]:Pf[Lf]={}},Rf=Lf=>{zp(ut,Lf).each(fp=>{ve(fp,Gd)})};ve(ju,({preset:Lf,name:fp})=>{Lf?Rf(fp):Gd(fp)}),H[ru]=Pf})},Vl=ca=>{const Zs=B[ca];if(Zs)return Zs;let ru=oe.length;for(;ru--;){const ju=oe[ru];if(ju.pattern.test(ca))return ju}},Uu=()=>{r.valid_elements?(Fi(r.valid_elements),Za(At,(ca,Zs)=>{H[Zs]=ca.children})):(Za(At,(ca,Zs)=>{B[Zs]={attributes:ca.attributes,attributesOrder:ca.attributesOrder},H[Zs]=ca.children}),Za(Qd("strong/b em/i"),ca=>{const Zs=Qd(ca,"/");B[Zs[1]].outputName=Zs[0]}),Za(Mi,(ca,Zs)=>{B[Zs]&&(r.padd_empty_block_inline_children&&(B[Zs].paddInEmptyBlock=!0),B[Zs].removeEmpty=!0)}),Za(Qd("ol ul blockquote a table tbody"),ca=>{B[ca]&&(B[ca].removeEmpty=!0)}),Za(Qd("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),ca=>{B[ca]&&(B[ca].paddEmpty=!0)}),Za(Qd("span"),ca=>{B[ca].removeEmptyAttrs=!0})),delete B.svg,Ms(r.custom_elements),wl(r.valid_children),Vo(r.extended_valid_elements),wl("+ol[ul|ol],+ul[ul|ol]"),Za({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(ca,Zs)=>{B[Zs]&&(B[Zs].parentsRequired=Qd(ca))}),r.invalid_elements&&Za(Bm(r.invalid_elements),ca=>{B[ca]&&delete B[ca]}),Vl("span")||Vo("span[!data-mce-type|*]")},Wf=$(nn),ic=$(un),vi=$(yn),na=$(ur),ol=$(li),Ti=$(Zo),pa=$(Mi),ps=$(Object.seal(Wn)),Ci=$(rr),ms=$(Wr),Es=$(Qr),Bd=$(Qn),Cl=$(Co),dd=$(yo),z0=$(Object.seal(Le)),$v=(ca,Zs)=>{const ru=H[ca.toLowerCase()];return!!(ru&&ru[Zs.toLowerCase()])},Cp=(ca,Zs)=>{const ru=Vl(ca);if(ru)if(Zs){if(ru.attributes[Zs])return!0;const ju=ru.attributePatterns;if(ju){let Pf=ju.length;for(;Pf--;)if(ju[Pf].pattern.test(Zs))return!0}}else return!0;return!1},Om=ca=>Ot(ol(),ca),Hg=ca=>!Br(ca,"#")&&Cp(ca)&&!Om(ca),Sm=ca=>Ot(dd(),ca)||Hg(ca),Zg=$(be);return Uu(),{type:ut,children:H,elements:B,getValidStyles:Wf,getValidClasses:vi,getBlockElements:ol,getInvalidStyles:ic,getVoidElements:ps,getTextBlockElements:Ti,getTextInlineElements:pa,getBoolAttrs:na,getElementRule:Vl,getSelfClosingElements:Ci,getNonEmptyElements:ms,getMoveCaretBeforeOnEnterElements:Es,getWhitespaceElements:Bd,getTransparentElements:Cl,getSpecialElements:z0,isValidChild:$v,isValid:Cp,isBlock:Om,isInline:Hg,isWrapper:Sm,getCustomElements:Zg,addValidElements:Vo,setValidElements:Fi,addCustomElements:Ms,addValidChildren:wl}},Rl=r=>({value:zx(r)}),zx=r=>Zn(r,"#").toUpperCase(),pb=r=>{const g=r.toString(16);return(g.length===1?"0"+g:g).toUpperCase()},V_=r=>{const g=pb(r.red)+pb(r.green)+pb(r.blue);return Rl(g)},Lo=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,Nm=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,D4=(r,g,B,H)=>({red:r,green:g,blue:B,alpha:H}),bg=(r,g,B,H)=>{const oe=parseInt(r,10),be=parseInt(g,10),Le=parseInt(B,10),Ke=parseFloat(H);return D4(oe,be,Le,Ke)},B4=r=>Lo.test(r)?"rgb":Nm.test(r)?"rgba":"other",c0=r=>{const g=Lo.exec(r);if(g!==null)return Y.some(bg(g[1],g[2],g[3],"1"));const B=Nm.exec(r);return B!==null?Y.some(bg(B[1],B[2],B[3],B[4])):Y.none()},mb=r=>`rgba(${r.red},${r.green},${r.blue},${r.alpha})`,od=r=>c0(r).map(V_).map(g=>"#"+g.value).getOr(r),U_=(r={},g)=>{const B=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,H=/\s*([^:]+):\s*([^;]+);?/g,oe=/\s+$/,be={};let Le,Ke;const ut=pl;g&&(Le=g.getValidStyles(),Ke=g.getInvalidStyles());const At=(`\\" \\' \\; \\: ; : `+ut).split(" ");for(let un=0;un{const yn={};let Qn=!1;const rr=r.url_converter,Wn=r.url_converter_scope||nn,ur=(Co,yo,Vo)=>{const Fi=yn[Co+"-top"+yo];if(!Fi)return;const la=yn[Co+"-right"+yo];if(!la)return;const bs=yn[Co+"-bottom"+yo];if(!bs)return;const Ms=yn[Co+"-left"+yo];if(!Ms)return;const wl=[Fi,la,bs,Ms];let Vl=wl.length-1;for(;Vl--&&wl[Vl]===wl[Vl+1];);Vl>-1&&Vo||(yn[Co+yo]=Vl===-1?wl[0]:wl.join(" "),delete yn[Co+"-top"+yo],delete yn[Co+"-right"+yo],delete yn[Co+"-bottom"+yo],delete yn[Co+"-left"+yo])},Tr=Co=>{const yo=yn[Co];if(!yo)return;const Vo=yo.indexOf(",")>-1?[yo]:yo.split(" ");let Fi=Vo.length;for(;Fi--;)if(Vo[Fi]!==Vo[0])return!1;return yn[Co]=Vo[0],!0},Wr=(Co,yo,Vo,Fi)=>{Tr(yo)&&Tr(Vo)&&Tr(Fi)&&(yn[Co]=yn[yo]+" "+yn[Vo]+" "+yn[Fi],delete yn[yo],delete yn[Vo],delete yn[Fi])},Qr=Co=>(Qn=!0,be[Co]),lo=(Co,yo)=>(Qn&&(Co=Co.replace(/\uFEFF[0-9]/g,Vo=>be[Vo])),yo||(Co=Co.replace(/\\([\'\";:])/g,"$1")),Co),Zo=Co=>String.fromCharCode(parseInt(Co.slice(1),16)),li=Co=>Co.replace(/\\[0-9a-f]+/gi,Zo),Mi=(Co,yo,Vo,Fi,la,bs)=>{if(la=la||bs,la)return la=lo(la),"'"+la.replace(/\'/g,"\\'")+"'";if(yo=lo(yo||Vo||Fi||""),!r.allow_script_urls){const Ms=yo.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Ms)||!r.allow_svg_data_urls&&/^data:image\/svg/i.test(Ms))return""}return rr&&(yo=rr.call(Wn,yo,"style")),"url('"+yo.replace(/\'/g,"\\'")+"')"};if(un){un=un.replace(/[\u0000-\u001F]/g,""),un=un.replace(/\\[\"\';:\uFEFF]/g,Qr).replace(/\"[^\"]+\"|\'[^\']+\'/g,yo=>yo.replace(/[;:]/g,Qr));let Co;for(;Co=H.exec(un);){H.lastIndex=Co.index+Co[0].length;let yo=Co[1].replace(oe,"").toLowerCase(),Vo=Co[2].replace(oe,"");if(yo&&Vo){if(yo=li(yo),Vo=li(Vo),yo.indexOf(ut)!==-1||yo.indexOf('"')!==-1||!r.allow_script_urls&&(yo==="behavior"||/expression\s*\(|\/\*|\*\//.test(Vo)))continue;yo==="font-weight"&&Vo==="700"?Vo="bold":(yo==="color"||yo==="background-color")&&(Vo=Vo.toLowerCase()),B4(Vo)==="rgb"&&c0(Vo).each(Fi=>{Vo=od(mb(Fi)).toLowerCase()}),Vo=Vo.replace(B,Mi),yn[yo]=Qn?lo(Vo,!0):Vo}}ur("border","",!0),ur("border","-width"),ur("border","-color"),ur("border","-style"),ur("padding",""),ur("margin",""),Wr("border","border-width","border-style","border-color"),yn.border==="medium none"&&delete yn.border,yn["border-image"]==="none"&&delete yn["border-image"]}return yn},serialize:(un,yn)=>{let Qn="";const rr=(ur,Tr)=>{const Wr=Tr[ur];if(Wr)for(let Qr=0,lo=Wr.length;Qr0?" ":"")+Zo+": "+li+";")}},Wn=(ur,Tr)=>{if(!Ke||!Tr)return!0;let Wr=Ke["*"];return Wr&&Wr[ur]?!1:(Wr=Ke[Tr],!(Wr&&Wr[ur]))};return yn&&Le?(rr("*",Le),rr(yn,Le)):Ge(un,(ur,Tr)=>{ur&&Wn(Tr,yn)&&(Qn+=(Qn.length>0?" ":"")+Tr+": "+ur+";")}),Qn}};return nn},cy={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},wc=r=>r instanceof Event||A(r.initEvent),xg=r=>r.isDefaultPrevented===q||r.isDefaultPrevented===re,Nx=r=>T(r.preventDefault)||wc(r),kh=(r,g)=>{const B=g??{};for(const H in r)Ot(cy,H)||(B[H]=r[H]);return P(r.composedPath)&&(B.composedPath=()=>r.composedPath()),P(r.getModifierState)&&(B.getModifierState=H=>r.getModifierState(H)),P(r.getTargetRanges)&&(B.getTargetRanges=()=>r.getTargetRanges()),B},j_=(r,g,B,H)=>{var oe;const be=kh(g,H);return be.type=r,T(be.target)&&(be.target=(oe=be.srcElement)!==null&&oe!==void 0?oe:B),Nx(g)&&(be.preventDefault=()=>{be.defaultPrevented=!0,be.isDefaultPrevented=q,A(g.preventDefault)&&g.preventDefault()},be.stopPropagation=()=>{be.cancelBubble=!0,be.isPropagationStopped=q,A(g.stopPropagation)&&g.stopPropagation()},be.stopImmediatePropagation=()=>{be.isImmediatePropagationStopped=q,be.stopPropagation()},xg(be)||(be.isDefaultPrevented=be.defaultPrevented===!0?q:re,be.isPropagationStopped=be.cancelBubble===!0?q:re,be.isImmediatePropagationStopped=re)),be},gb="mce-data-",Y1=/^(?:mouse|contextmenu)|click/,uy=(r,g,B,H)=>{r.addEventListener(g,B,H||!1)},np=(r,g,B,H)=>{r.removeEventListener(g,B,H||!1)},jO=r=>P(r)&&Y1.test(r.type),_g=(r,g)=>{const B=j_(r.type,r,document,g);if(jO(r)&&M(r.pageX)&&!M(r.clientX)){const H=B.target.ownerDocument||document,oe=H.documentElement,be=H.body,Le=B;Le.pageX=r.clientX+(oe&&oe.scrollLeft||be&&be.scrollLeft||0)-(oe&&oe.clientLeft||be&&be.clientLeft||0),Le.pageY=r.clientY+(oe&&oe.scrollTop||be&&be.scrollTop||0)-(oe&&oe.clientTop||be&&be.clientTop||0)}return B},Q_=(r,g,B)=>{const H=r.document,oe={type:"ready"};if(B.domLoaded){g(oe);return}const be=()=>H.readyState==="complete"||H.readyState==="interactive"&&H.body,Le=()=>{np(r,"DOMContentLoaded",Le),np(r,"load",Le),B.domLoaded||(B.domLoaded=!0,g(oe)),r=null};be()?Le():uy(r,"DOMContentLoaded",Le),B.domLoaded||uy(r,"load",Le)};class wg{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(g,B,H,oe){const be=this;let Le;const Ke=window,ut=yn=>{be.executeHandlers(_g(yn||Ke.event),At)};if(!g||Mt(g)||bn(g))return H;let At;g[be.expando]?At=g[be.expando]:(At=be.count++,g[be.expando]=At,be.events[At]={}),oe=oe||g;const nn=B.split(" ");let un=nn.length;for(;un--;){let yn=nn[un],Qn=ut,rr=!1,Wn=!1;if(yn==="DOMContentLoaded"&&(yn="ready"),be.domLoaded&&yn==="ready"&&g.readyState==="complete"){H.call(oe,_g({type:yn}));continue}!be.hasFocusIn&&(yn==="focusin"||yn==="focusout")&&(rr=!0,Wn=yn==="focusin"?"focus":"blur",Qn=ur=>{const Tr=_g(ur||Ke.event);Tr.type=Tr.type==="focus"?"focusin":"focusout",be.executeHandlers(Tr,At)}),Le=be.events[At][yn],Le?yn==="ready"&&be.domLoaded?H(_g({type:yn})):Le.push({func:H,scope:oe}):(be.events[At][yn]=Le=[{func:H,scope:oe}],Le.fakeName=Wn,Le.capture=rr,Le.nativeHandler=Qn,yn==="ready"?Q_(g,Qn,be):uy(g,Wn||yn,Qn,rr))}return g=Le=null,H}unbind(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=g[this.expando];if(oe){let be=this.events[oe];if(B){const Le=B.split(" ");let Ke=Le.length;for(;Ke--;){const ut=Le[Ke],At=be[ut];if(At){if(H){let nn=At.length;for(;nn--;)if(At[nn].func===H){const un=At.nativeHandler,yn=At.fakeName,Qn=At.capture,rr=At.slice(0,nn).concat(At.slice(nn+1));rr.nativeHandler=un,rr.fakeName=yn,rr.capture=Qn,be[ut]=rr}}(!H||At.length===0)&&(delete be[ut],np(g,At.fakeName||ut,At.nativeHandler,At.capture))}}}else Ge(be,(Le,Ke)=>{np(g,Le.fakeName||Ke,Le.nativeHandler,Le.capture)}),be={};for(const Le in be)if(Ot(be,Le))return this;delete this.events[oe];try{delete g[this.expando]}catch{g[this.expando]=null}}return this}fire(g,B,H){return this.dispatch(g,B,H)}dispatch(g,B,H){if(!g||Mt(g)||bn(g))return this;const oe=_g({type:B,target:g},H);do{const be=g[this.expando];be&&this.executeHandlers(oe,be),g=g.parentNode||g.ownerDocument||g.defaultView||g.parentWindow}while(g&&!oe.isPropagationStopped());return this}clean(g){if(!g||Mt(g)||bn(g))return this;if(g[this.expando]&&this.unbind(g),g.getElementsByTagName||(g=g.document),g&&g.getElementsByTagName){this.unbind(g);const B=g.getElementsByTagName("*");let H=B.length;for(;H--;)g=B[H],g[this.expando]&&this.unbind(g)}return this}destroy(){this.events={}}cancel(g){return g&&(g.preventDefault(),g.stopImmediatePropagation()),!1}executeHandlers(g,B){const H=this.events[B],oe=H&&H[g.type];if(oe)for(let be=0,Le=oe.length;be{T(B)||B===""?tc(r,g):ll(r,g,B)},Hd=r=>r.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),ei=(r,g)=>{let B=0;if(r)for(let H=r.nodeType,oe=r.previousSibling;oe;oe=oe.previousSibling){const be=oe.nodeType;g&&Mt(oe)&&(be===H||!oe.data.length)||(B++,H=be)}return B},Fx=(r,g)=>{const B=gu(g,"style"),H=r.serialize(r.parse(B),ma(g));uh(g,H_,H)},id=(r,g)=>L(r)?Ot(QO,g)?r+"":r+"px":r,$x=(r,g,B)=>{const H=Hd(g);T(B)||B===""?qu(r,H):Of(r,H,id(B,H))},HO=(r,g,B)=>{const H=g.keep_values,oe={set:(Le,Ke,ut)=>{const At=_r.fromDom(Le);A(g.url_converter)&&P(Ke)&&(Ke=g.url_converter.call(g.url_converter_scope||B(),String(Ke),ut,Le));const nn="data-mce-"+ut;uh(At,nn,Ke),uh(At,ut,Ke)},get:(Le,Ke)=>{const ut=_r.fromDom(Le);return gu(ut,"data-mce-"+Ke)||gu(ut,Ke)}},be={style:{set:(Le,Ke)=>{const ut=_r.fromDom(Le);H&&uh(ut,H_,Ke),tc(ut,"style"),v(Ke)&&aa(ut,r.parse(Ke))},get:Le=>{const Ke=_r.fromDom(Le),ut=gu(Ke,H_)||gu(Ke,"style");return r.serialize(r.parse(ut),ma(Ke))}}};return H&&(be.href=be.src=oe),be},cc=(r,g={})=>{const B={},H=window,oe={};let be=0;const Le=!0,Ke=!0,ut=Gl.forElement(_r.fromDom(r),{contentCssCors:g.contentCssCors,referrerPolicy:g.referrerPolicy}),At=[],nn=g.schema?g.schema:zm({}),un=U_({url_converter:g.url_converter,url_converter_scope:g.url_converter_scope},g.schema),yn=g.ownEvents?new wg:wg.Event,Qn=nn.getBlockElements(),rr=ho=>v(ho)?Ot(Qn,ho):ne(ho)&&(Ot(Qn,ho.nodeName)||lh(nn,ho)),Wn=ho=>ho&&r&&v(ho)?r.getElementById(ho):ho,ur=ho=>{const bo=Wn(ho);return P(bo)?_r.fromDom(bo):null},Tr=(ho,bo,di="")=>{let ri;const Ta=ur(ho);if(P(Ta)&&Wl(Ta)){const zs=vT[bo];zs&&zs.get?ri=zs.get(Ta.dom,bo):ri=gu(Ta,bo)}return P(ri)?ri:di},Wr=ho=>{const bo=Wn(ho);return T(bo)?[]:bo.attributes},Qr=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=di===""?null:di,Su=gu(Ta,bo),V0=vT[bo];V0&&V0.set?V0.set(Ta.dom,zs,bo):uh(Ta,bo,zs),Su!==zs&&g.onSetAttrib&&g.onSetAttrib({attrElm:Ta.dom,attrName:bo,attrValue:zs})}})},lo=(ho,bo)=>ho.cloneNode(bo),Zo=()=>g.root_element||r.body,li=ho=>{const bo=Wu(ho);return{x:bo.x,y:bo.y,w:bo.width,h:bo.height}},Mi=(ho,bo)=>Pu(r.body,Wn(ho),bo),Co=(ho,bo,di)=>{na(ho,ri=>{const Ta=_r.fromDom(ri);$x(Ta,bo,di),g.update_styles&&Fx(un,Ta)})},yo=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Ge(bo,(Ta,zs)=>{$x(ri,zs,Ta)}),g.update_styles&&Fx(un,ri)})},Vo=(ho,bo,di)=>{const ri=Wn(ho);if(!(T(ri)||!V(ri)&&!ie(ri)))return di?rs(_r.fromDom(ri),Hd(bo)):(bo=bo.replace(/-(\D)/g,(Ta,zs)=>zs.toUpperCase()),bo==="float"&&(bo="cssFloat"),ri.style?ri.style[bo]:void 0)},Fi=ho=>{const bo=Wn(ho);if(!bo)return{w:0,h:0};let di=Vo(bo,"width"),ri=Vo(bo,"height");return(!di||di.indexOf("px")===-1)&&(di="0"),(!ri||ri.indexOf("px")===-1)&&(ri="0"),{w:parseInt(di,10)||bo.offsetWidth||bo.clientWidth,h:parseInt(ri,10)||bo.offsetHeight||bo.clientHeight}},la=ho=>{const bo=Wn(ho),di=Mi(bo),ri=Fi(bo);return{x:di.x,y:di.y,w:ri.w,h:ri.h}},bs=(ho,bo)=>{if(!ho)return!1;const di=C(ho)?ho:[ho];return de(di,ri=>yd(_r.fromDom(ri),bo))},Ms=(ho,bo,di,ri)=>{const Ta=[];let zs=Wn(ho);ri=ri===void 0;const Su=di||(Zo().nodeName!=="BODY"?Zo().parentNode:null);if(v(bo))if(bo==="*")bo=ne;else{const V0=bo;bo=ZS=>bs(ZS,V0)}for(;zs&&!(zs===Su||T(zs.nodeType)||vn(zs)||Ln(zs));){if(!bo||bo(zs))if(ri)Ta.push(zs);else return[zs];zs=zs.parentNode}return ri?Ta:null},wl=(ho,bo,di)=>{const ri=Ms(ho,bo,di,!1);return ri&&ri.length>0?ri[0]:null},Vl=(ho,bo,di)=>{let ri=bo;if(ho){v(bo)&&(ri=Ta=>bs(Ta,bo));for(let Ta=ho[di];Ta;Ta=Ta[di])if(A(ri)&&ri(Ta))return Ta}return null},Uu=(ho,bo)=>Vl(ho,bo,"nextSibling"),Wf=(ho,bo)=>Vl(ho,bo,"previousSibling"),ic=ho=>A(ho.querySelectorAll),vi=(ho,bo)=>{var di,ri;const Ta=(ri=(di=Wn(bo))!==null&&di!==void 0?di:g.root_element)!==null&&ri!==void 0?ri:r;return ic(Ta)?Me(Ta.querySelectorAll(ho)):[]},na=function(ho,bo,di){const ri=di??this;if(C(ho)){const Ta=[];return X1(ho,(zs,Su)=>{const V0=Wn(zs);V0&&Ta.push(bo.call(ri,V0,Su))}),Ta}else{const Ta=Wn(ho);return Ta?bo.call(ri,Ta):!1}},ol=(ho,bo)=>{na(ho,di=>{Ge(bo,(ri,Ta)=>{Qr(di,Ta,ri)})})},Ti=(ho,bo)=>{na(ho,di=>{const ri=_r.fromDom(di);Fu(ri,bo)})},pa=(ho,bo,di,ri,Ta)=>na(ho,zs=>{const Su=v(bo)?r.createElement(bo):bo;return P(di)&&ol(Su,di),ri&&(!v(ri)&&ri.nodeType?Su.appendChild(ri):v(ri)&&Ti(Su,ri)),Ta?Su:zs.appendChild(Su)}),ps=(ho,bo,di)=>pa(r.createElement(ho),ho,bo,di,!0),Ci=Lm.decode,ms=Lm.encodeAllRaw,Es=(ho,bo,di="")=>{let ri="<"+ho;for(const Ta in bo)cn(bo,Ta)&&(ri+=" "+Ta+'="'+ms(bo[Ta])+'"');return zr(di)&&Ot(nn.getVoidElements(),ho)?ri+" />":ri+">"+di+""},Bd=ho=>{const bo=r.createElement("div"),di=r.createDocumentFragment();di.appendChild(bo),ho&&(bo.innerHTML=ho);let ri;for(;ri=bo.firstChild;)di.appendChild(ri);return di.removeChild(bo),di},Cl=(ho,bo)=>na(ho,di=>{const ri=_r.fromDom(di);return bo&&ve(vc(ri),Ta=>{Ml(Ta)&&Ta.dom.length===0?hs(Ta):xc(ri,Ta)}),hs(ri),ri.dom}),dd=ho=>na(ho,bo=>{const di=bo.attributes;for(let ri=di.length-1;ri>=0;ri--)bo.removeAttributeNode(di.item(ri))}),z0=ho=>un.parse(ho),$v=(ho,bo)=>un.serialize(ho,bo),Cp=ho=>{if(Zy!==cc.DOM&&r===document){if(B[ho])return;B[ho]=!0}let bo=r.getElementById("mceDefaultStyles");if(!bo){bo=r.createElement("style"),bo.id="mceDefaultStyles",bo.type="text/css";const di=r.head;di.firstChild?di.insertBefore(bo,di.firstChild):di.appendChild(bo)}bo.styleSheet?bo.styleSheet.cssText+=ho:bo.appendChild(r.createTextNode(ho))},Om=ho=>{ho||(ho=""),ve(ho.split(","),bo=>{oe[bo]=!0,ut.load(bo).catch(k)})},Hg=(ho,bo,di)=>{na(ho,ri=>{if(ne(ri)){const Ta=_r.fromDom(ri),zs=bo.split(" ");ve(zs,Su=>{P(di)?(di?Cu:Bu)(Ta,Su):vd(Ta,Su)})}})},Sm=(ho,bo)=>{Hg(ho,bo,!0)},Zg=(ho,bo)=>{Hg(ho,bo,!1)},ca=(ho,bo)=>{const di=ur(ho),ri=bo.split(" ");return P(di)&&Oe(ri,Ta=>cs(di,Ta))},Zs=ho=>{na(ho,bo=>qu(_r.fromDom(bo),"display"))},ru=ho=>{na(ho,bo=>Of(_r.fromDom(bo),"display","none"))},ju=ho=>{const bo=ur(ho);return P(bo)&&Ia(Ri(bo,"display"),"none")},Pf=ho=>(ho||"mce_")+be++,Gd=ho=>{const bo=ur(ho);return P(bo)?ne(bo.dom)?bo.dom.outerHTML:su(bo):""},Rf=(ho,bo)=>{na(ho,di=>{ne(di)&&(di.outerHTML=bo)})},Lf=(ho,bo)=>{const di=Wn(bo);return na(ho,ri=>{const Ta=di==null?void 0:di.parentNode,zs=di==null?void 0:di.nextSibling;return Ta&&(zs?Ta.insertBefore(ri,zs):Ta.appendChild(ri)),ri})},fp=(ho,bo,di)=>na(bo,ri=>{var Ta;const zs=C(bo)?ho.cloneNode(!0):ho;return di&&X1(om(ri.childNodes),Su=>{zs.appendChild(Su)}),(Ta=ri.parentNode)===null||Ta===void 0||Ta.replaceChild(zs,ri),ri}),N0=(ho,bo)=>{if(ho.nodeName!==bo.toUpperCase()){const di=ps(bo);return X1(Wr(ho),ri=>{Qr(di,ri.nodeName,Tr(ho,ri.nodeName))}),fp(di,ho,!0),di}else return ho},F0=(ho,bo)=>{let di=ho;for(;di;){let ri=bo;for(;ri&&di!==ri;)ri=ri.parentNode;if(di===ri)break;di=di.parentNode}return!di&&ho.ownerDocument?ho.ownerDocument.documentElement:di},$0=(ho,bo,di)=>O(bo)?Hi(nn,ho,{...di,isContent:Ta=>{const zs=Ta.nodeName.toLowerCase();return!!bo[zs]}}):Hi(nn,ho,di),rg=()=>r.createRange(),Qy=(ho,bo,di)=>{let ri=rg(),Ta,zs;if(ho&&bo&&ho.parentNode&&bo.parentNode){const Su=ho.parentNode;return ri.setStart(Su,ei(ho)),ri.setEnd(bo.parentNode,ei(bo)),Ta=ri.extractContents(),ri=rg(),ri.setStart(bo.parentNode,ei(bo)+1),ri.setEnd(Su,ei(ho)+1),zs=ri.extractContents(),Su.insertBefore(Rm(Zy,Ta,nn),ho),di?Su.insertBefore(di,ho):Su.insertBefore(bo,ho),Su.insertBefore(Rm(Zy,zs,nn),ho),Cl(ho),di||bo}else return},gx=(ho,bo,di,ri)=>{if(C(ho)){let Ta=ho.length;const zs=[];for(;Ta--;)zs[Ta]=gx(ho[Ta],bo,di,ri);return zs}else return g.collect&&(ho===r||ho===H)&&At.push([ho,bo,di,ri]),yn.bind(ho,bo,di,ri||Zy)},yO=(ho,bo,di)=>{if(C(ho)){let ri=ho.length;const Ta=[];for(;ri--;)Ta[ri]=yO(ho[ri],bo,di);return Ta}else{if(At.length>0&&(ho===r||ho===H)){let ri=At.length;for(;ri--;){const[Ta,zs,Su]=At[ri];ho===Ta&&(!bo||bo===zs)&&(!di||di===Su)&&yn.unbind(Ta,zs,Su)}}return yn.unbind(ho,bo,di)}},x8=(ho,bo,di)=>yn.dispatch(ho,bo,di),Hy=(ho,bo,di)=>yn.dispatch(ho,bo,di),HS=ho=>{if(ho&&V(ho)){const bo=ho.getAttribute("data-mce-contenteditable");return bo&&bo!=="inherit"?bo:ho.contentEditable!=="inherit"?ho.contentEditable:null}else return null},Zy={doc:r,settings:g,win:H,files:oe,stdMode:Le,boxModel:Ke,styleSheetLoader:ut,boundEvents:At,styles:un,schema:nn,events:yn,isBlock:rr,root:null,clone:lo,getRoot:Zo,getViewPort:li,getRect:la,getSize:Fi,getParent:wl,getParents:Ms,get:Wn,getNext:Uu,getPrev:Wf,select:vi,is:bs,add:pa,create:ps,createHTML:Es,createFragment:Bd,remove:Cl,setStyle:Co,getStyle:Vo,setStyles:yo,removeAllAttribs:dd,setAttrib:Qr,setAttribs:ol,getAttrib:Tr,getPos:Mi,parseStyle:z0,serializeStyle:$v,addStyle:Cp,loadCSS:Om,addClass:Sm,removeClass:Zg,hasClass:ca,toggleClass:Hg,show:Zs,hide:ru,isHidden:ju,uniqueId:Pf,setHTML:Ti,getOuterHTML:Gd,setOuterHTML:Rf,decode:Ci,encode:ms,insertAfter:Lf,replace:fp,rename:N0,findCommonAncestor:F0,run:na,getAttribs:Wr,isEmpty:$0,createRng:rg,nodeIndex:ei,split:Qy,bind:gx,unbind:yO,fire:Hy,dispatch:x8,getContentEditable:HS,getContentEditableParent:ho=>{const bo=Zo();let di=null;for(let ri=ho;ri&&ri!==bo&&(di=HS(ri),di===null);ri=ri.parentNode);return di},isEditable:ho=>{if(P(ho)){const bo=ne(ho)?ho:ho.parentElement;return P(bo)&&V(bo)&&Ol(_r.fromDom(bo))}else return!1},destroy:()=>{if(At.length>0){let ho=At.length;for(;ho--;){const[bo,di,ri]=At[ho];yn.unbind(bo,di,ri)}}Ge(oe,(ho,bo)=>{ut.unload(bo),delete oe[bo]})},isChildOf:(ho,bo)=>ho===bo||bo.contains(ho),dumpRng:ho=>"startContainer: "+ho.startContainer.nodeName+", startOffset: "+ho.startOffset+", endContainer: "+ho.endContainer.nodeName+", endOffset: "+ho.endOffset},vT=HO(un,g,$(Zy));return Zy};cc.DOM=cc(document),cc.nodeIndex=ei;const Xu=cc.DOM,Vx=0,ZO=1,u0=2,vb=3;class Fm{constructor(g={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=g}_setReferrerPolicy(g){this.settings.referrerPolicy=g}loadScript(g){return new Promise((B,H)=>{const oe=Xu;let be;const Le=()=>{oe.remove(At),be&&(be.onerror=be.onload=be=null)},Ke=()=>{Le(),B()},ut=()=>{Le(),H("Failed to load script: "+g)},At=oe.uniqueId();be=document.createElement("script"),be.id=At,be.type="text/javascript",be.src=To._addCacheSuffix(g),this.settings.referrerPolicy&&oe.setAttrib(be,"referrerpolicy",this.settings.referrerPolicy),be.onload=Ke,be.onerror=ut,(document.getElementsByTagName("head")[0]||document.body).appendChild(be)})}isDone(g){return this.states[g]===u0}markDone(g){this.states[g]=u0}add(g){const B=this;return B.queue.push(g),B.states[g]===void 0&&(B.states[g]=Vx),new Promise((oe,be)=>{B.scriptLoadedCallbacks[g]||(B.scriptLoadedCallbacks[g]=[]),B.scriptLoadedCallbacks[g].push({resolve:oe,reject:be})})}load(g){return this.add(g)}remove(g){delete this.states[g],delete this.scriptLoadedCallbacks[g]}loadQueue(){const g=this.queue;return this.queue=[],this.loadScripts(g)}loadScripts(g){const B=this,H=(ut,At)=>{Et(B.scriptLoadedCallbacks,At).each(nn=>{ve(nn,un=>un[ut](At))}),delete B.scriptLoadedCallbacks[At]},oe=ut=>{const At=Te(ut,nn=>nn.status==="rejected");return At.length>0?Promise.reject($e(At,({reason:nn})=>C(nn)?nn:[nn])):Promise.resolve()},be=ut=>Promise.allSettled(ye(ut,At=>B.states[At]===u0?(H("resolve",At),Promise.resolve()):B.states[At]===vb?(H("reject",At),Promise.reject(At)):(B.states[At]=ZO,B.loadScript(At).then(()=>{B.states[At]=u0,H("resolve",At);const nn=B.queue;return nn.length>0?(B.queue=[],be(nn).then(oe)):Promise.resolve()},()=>(B.states[At]=vb,H("reject",At),Promise.reject(At)))))),Le=ut=>(B.loading=!0,be(ut).then(At=>{B.loading=!1;const nn=B.queueLoadedCallbacks.shift();return Y.from(nn).each(K),oe(At)})),Ke=Pn(g);return B.loading?new Promise((ut,At)=>{B.queueLoadedCallbacks.push(()=>{Le(Ke).then(ut,At)})}):Le(Ke)}}Fm.ScriptLoader=new Fm;const Z_=(r,g)=>{const B=r.indexOf(g);return B!==-1&&r.indexOf(g,B+1)>B},q_=r=>_(r)&&Ot(r,"raw"),uc=r=>C(r)&&r.length>1,fy={},Zc=Ar("en"),qO=()=>Et(fy,Zc.get()),ff={getData:()=>ht(fy,r=>({...r})),setCode:r=>{r&&Zc.set(r)},getCode:()=>Zc.get(),add:(r,g)=>{let B=fy[r];B||(fy[r]=B={});const H=ye(tt(g),oe=>oe.toLowerCase());Ge(g,(oe,be)=>{const Le=be.toLowerCase();Le!==be&&Z_(H,Le)?(Ot(g,Le)||(B[Le]=oe),B[be]=oe):B[Le]=oe})},translate:r=>{const g=qO().getOr({}),B=Le=>A(Le)?Object.prototype.toString.call(Le):H(Le)?"":""+Le,H=Le=>Le===""||Le===null||Le===void 0,oe=Le=>{const Ke=B(Le);return Ot(g,Ke)?B(g[Ke]):Et(g,Ke.toLowerCase()).map(B).getOr(Ke)},be=Le=>Le.replace(/{context:\w+}$/,"");if(H(r))return"";if(q_(r))return B(r.raw);if(uc(r)){const Le=r.slice(1),Ke=oe(r[0]).replace(/\{([0-9]+)\}/g,(ut,At)=>Ot(Le,At)?B(Le[At]):ut);return be(Ke)}return be(oe(r))},isRtl:()=>qO().bind(r=>Et(r,"_dir")).exists(r=>r==="rtl"),hasCode:r=>Ot(fy,r)},fh=()=>{const r=[],g={},B={},H=[],oe=(Wn,ur)=>{const Tr=Te(H,Wr=>Wr.name===Wn&&Wr.state===ur);ve(Tr,Wr=>Wr.resolve())},be=Wn=>Ot(g,Wn),Le=Wn=>Ot(B,Wn),Ke=Wn=>{if(B[Wn])return B[Wn].instance},ut=(Wn,ur)=>{const Tr=ff.getCode(),Wr=","+(ur||"")+",";!Tr||ur&&Wr.indexOf(","+Tr+",")===-1||Fm.ScriptLoader.add(g[Wn]+"/langs/"+Tr+".js")},At=(Wn,ur)=>{fh.languageLoad!==!1&&(be(Wn)?ut(Wn,ur):rr(Wn,"loaded").then(()=>ut(Wn,ur)))},nn=(Wn,ur)=>(r.push(ur),B[Wn]={instance:ur},oe(Wn,"added"),ur),un=Wn=>{delete g[Wn],delete B[Wn]},yn=(Wn,ur)=>v(ur)?v(Wn)?{prefix:"",resource:ur,suffix:""}:{prefix:Wn.prefix,resource:ur,suffix:Wn.suffix}:ur,Qn=(Wn,ur)=>{if(g[Wn])return Promise.resolve();let Tr=v(ur)?ur:ur.prefix+ur.resource+ur.suffix;Tr.indexOf("/")!==0&&Tr.indexOf("://")===-1&&(Tr=fh.baseURL+"/"+Tr),g[Wn]=Tr.substring(0,Tr.lastIndexOf("/"));const Wr=()=>(oe(Wn,"loaded"),Promise.resolve());return B[Wn]?Wr():Fm.ScriptLoader.add(Tr).then(Wr)},rr=(Wn,ur="added")=>ur==="added"&&Le(Wn)||ur==="loaded"&&be(Wn)?Promise.resolve():new Promise(Tr=>{H.push({name:Wn,state:ur,resolve:Tr})});return{items:r,urls:g,lookup:B,get:Ke,requireLangPack:At,add:nn,remove:un,createUrl:yn,load:Qn,waitFor:rr}};fh.languageLoad=!0,fh.baseURL="",fh.PluginManager=fh(),fh.ThemeManager=fh(),fh.ModelManager=fh();const dy=(r,g)=>{let B=null;return{cancel:()=>{x(B)||(clearTimeout(B),B=null)},throttle:(...be)=>{x(B)&&(B=setTimeout(()=>{B=null,r.apply(null,be)},g))}}},jh=(r,g)=>{let B=null;const H=()=>{x(B)||(clearTimeout(B),B=null)};return{cancel:H,throttle:(...be)=>{H(),B=setTimeout(()=>{B=null,r.apply(null,be)},g)}}},r1=(r,g,B)=>ts(r,g,B).isSome(),G1=$("mce-annotation"),Sg=$("data-mce-annotation"),hy=$("data-mce-annotation-uid"),K1=$("data-mce-annotation-active"),o1=$("data-mce-annotation-classes"),kg=$("data-mce-annotation-attrs"),J1=r=>g=>va(g,r),ev=(r,g)=>{const B=r.selection.getRng(),H=_r.fromDom(B.startContainer),oe=_r.fromDom(r.getBody()),be=g.fold(()=>"."+G1(),ut=>`[${Sg()}="${ut}"]`),Le=gs(H,B.startOffset).getOr(H);return bu(Le,be,J1(oe)).bind(ut=>ec(ut,`${hy()}`).bind(At=>ec(ut,`${Sg()}`).map(nn=>{const un=tv(r,At);return{uid:At,name:nn,elements:un}})))},z4=r=>Wl(r)&&cs(r,G1()),W_=(r,g)=>Dc(r,"data-mce-bogus")||r1(r,'[data-mce-bogus="all"]',J1(g)),tv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${hy()}="${g}"]`);return Te(H,oe=>!W_(oe,B))},nv=(r,g)=>{const B=_r.fromDom(r.getBody()),H=Pl(B,`[${Sg()}="${g}"]`),oe={};return ve(H,be=>{if(!W_(be,B)){const Le=gu(be,hy()),Ke=Et(oe,Le).getOr([]);oe[Le]=Ke.concat([be])}}),oe},jx=(r,g)=>{const B=Ar({}),H=()=>({listeners:[],previous:Ts()}),oe=(un,yn)=>{be(un,Qn=>(yn(Qn),Qn))},be=(un,yn)=>{const Qn=B.get(),rr=Et(Qn,un).getOrThunk(H),Wn=yn(rr);Qn[un]=Wn,B.set(Qn)},Le=(un,yn,Qn)=>{oe(un,rr=>{ve(rr.listeners,Wn=>Wn(!0,un,{uid:yn,nodes:ye(Qn,ur=>ur.dom)}))})},Ke=un=>{oe(un,yn=>{ve(yn.listeners,Qn=>Qn(!1,un))})},ut=(un,yn)=>{ve(tv(r,un),Qn=>{yn?ll(Qn,K1(),"true"):tc(Qn,K1())})},At=jh(()=>{const un=Ue(g.getNames());ve(un,yn=>{be(yn,Qn=>{const rr=Qn.previous.get();return ev(r,Y.some(yn)).fold(()=>{rr.each(Wn=>{Ke(yn),Qn.previous.clear(),ut(Wn,!1)})},({uid:Wn,name:ur,elements:Tr})=>{Ia(rr,Wn)||(rr.each(Wr=>ut(Wr,!1)),Le(ur,Wn,Tr),Qn.previous.set(Wn),ut(Wn,!0))}),{previous:Qn.previous,listeners:Qn.listeners}})})},30);return r.on("remove",()=>{At.cancel()}),r.on("NodeChange",()=>{At.throttle()}),{addListener:(un,yn)=>{be(un,Qn=>({previous:Qn.previous,listeners:Qn.listeners.concat([yn])}))}}},py=(r,g)=>{const B=Sg(),H=be=>Y.from(be.attr(B)).bind(g.lookup),oe=be=>{var Le,Ke;be.attr(hy(),null),be.attr(Sg(),null),be.attr(K1(),null);const ut=Y.from(be.attr(kg())).map(yn=>yn.split(",")).getOr([]),At=Y.from(be.attr(o1())).map(yn=>yn.split(",")).getOr([]);ve(ut,yn=>be.attr(yn,null));const nn=(Ke=(Le=be.attr("class"))===null||Le===void 0?void 0:Le.split(" "))!==null&&Ke!==void 0?Ke:[],un=Re(nn,[G1()].concat(At));be.attr("class",un.length>0?un.join(" "):null),be.attr(o1(),null),be.attr(kg(),null)};r.serializer.addTempAttr(K1()),r.serializer.addAttributeFilter(B,be=>{for(const Le of be)H(Le).each(Ke=>{Ke.persistent===!1&&(Le.name==="span"?Le.unwrap():oe(Le))})})},Y_=()=>{const r={};return{register:(oe,be)=>{r[oe]={name:oe,settings:be}},lookup:oe=>Et(r,oe).map(be=>be.settings),getNames:()=>tt(r)}},X_=(r,g,B)=>Math.min(Math.max(r,g),B),G_=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let my=0;const yb=r=>{const B=new Date().getTime(),H=Math.floor(G_()*1e9);return my++,r+"_"+H+my+String(B)},bp=(r,g)=>{ve(g,B=>{Cu(r,B)})},i1=(r,g)=>{ve(g,B=>{Bu(r,B)})},Tg=(r,g)=>_r.fromDom(r.dom.cloneNode(g)),im=r=>Tg(r,!1),Qh=r=>Tg(r,!0),rv=(r,g)=>{const B=_r.fromTag(g),H=rh(r);return Tu(B,H),B},ov=(r,g)=>{const B=rv(r,g);Kc(r,B);const H=vc(r);return Yl(B,H),hs(r),B},Od=(r,g,B=re)=>{const H=new Xl(r,g),oe=be=>{let Le;do Le=H[be]();while(Le&&!Mt(Le)&&!B(Le));return Y.from(Le).filter(Mt)};return{current:()=>Y.from(H.current()).filter(Mt),next:()=>oe("next"),prev:()=>oe("prev"),prev2:()=>oe("prev2")}},Cg=(r,g)=>{const B=g||(Le=>r.isBlock(Le)||gn(Le)||In(Le)),H=(Le,Ke,ut,At)=>{if(Mt(Le)){const nn=At(Le,Ke,Le.data);if(nn!==-1)return Y.some({container:Le,offset:nn})}return ut().bind(nn=>H(nn.container,nn.offset,ut,At))};return{backwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.prev().map(un=>({container:un,offset:un.length})),ut).getOrNull()},forwards:(Le,Ke,ut,At)=>{const nn=Od(Le,At??r.getRoot(),B);return H(Le,Ke,()=>nn.next().map(un=>({container:un,offset:0})),ut).getOrNull()}}},Th=((r,g)=>{const B=be=>{if(!r(be))throw new Error("Can only get "+g+" value of a "+g+" node");return H(be).getOr("")},H=be=>r(be)?Y.from(be.dom.nodeValue):Y.none();return{get:B,getOption:H,set:(be,Le)=>{if(!r(be))throw new Error("Can only set raw "+g+" value of a "+g+" node");be.dom.nodeValue=Le}}})(Ml,"text"),f0=r=>Th.get(r),iv=r=>Th.getOption(r),K_=(r,g)=>Th.set(r,g),bb=["td","th"],Hx=["thead","tbody","tfoot"],Zx=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ad=["li","dd","dt"],mC=["ul","ol","dl"],qx=["pre","script","textarea","style"],Ag=r=>{let g;return B=>(g=g||We(r,q),Ot(g,ma(B)))},$m=r=>ma(r)==="table",Ch=r=>Wl(r)&&ma(r)==="br",Np=Ag(Zx),d0=Ag(mC),av=Ag(ad),J_=Ag(Hx),gy=Ag(bb),xb=Ag(qx),ew=r=>{const g=[];let B=r.dom;for(;B;)g.push(_r.fromDom(B)),B=B.lastChild;return g},a1=r=>{const g=Pl(r,"br"),B=Te(ew(r).slice(-1),Ch);g.length===B.length&&ve(B,hs)},sv=()=>{const r=_r.fromTag("br");return ll(r,"data-mce-bogus","1"),r},xp=r=>{uf(r),ii(r,sv())},_b=(r,g)=>{Cc(r).each(B=>{sf(B).each(H=>{g.isBlock(ma(r))&&Ch(B)&&g.isBlock(ma(H))&&hs(B)})})},Ou=pl,Wx=Uf,Sd=Os,XO=r=>r.insertContent(Ou,{preserve_zwsp:!0}),wb=ne,am=Mt,Vm=r=>(am(r)&&(r=r.parentNode),wb(r)&&r.hasAttribute("data-mce-caret")),_p=r=>am(r)&&Wx(r.data),op=r=>Vm(r)||_p(r),GO=r=>r.firstChild!==r.lastChild||!gn(r.firstChild),Ob=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou),be=r.parentNode;if(g){const Le=r.previousSibling;if(am(Le)){if(op(Le))return Le;if(Ss(Le))return Le.splitText(Le.data.length-1)}be==null||be.insertBefore(oe,r)}else{const Le=r.nextSibling;if(am(Le)){if(op(Le))return Le;if(p0(Le))return Le.splitText(1),Le}r.nextSibling?be==null||be.insertBefore(oe,r.nextSibling):be==null||be.appendChild(oe)}return oe},s1=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset())===Ou||r.isAtStart()&&_p(g.previousSibling):!1},Um=r=>{const g=r.container();return Mt(g)?g.data.charAt(r.offset()-1)===Ou||r.isAtEnd()&&_p(g.nextSibling):!1},h0=(r,g,B)=>{var H;const be=((H=g.ownerDocument)!==null&&H!==void 0?H:document).createElement(r);be.setAttribute("data-mce-caret",B?"before":"after"),be.setAttribute("data-mce-bogus","all"),be.appendChild(sv().dom);const Le=g.parentNode;return B?Le==null||Le.insertBefore(be,g):g.nextSibling?Le==null||Le.insertBefore(be,g.nextSibling):Le==null||Le.appendChild(be),be},p0=r=>am(r)&&r.data[0]===Ou,Ss=r=>am(r)&&r.data[r.data.length-1]===Ou,kd=r=>{var g;const B=r.getElementsByTagName("br"),H=B[B.length-1];et(H)&&((g=H.parentNode)===null||g===void 0||g.removeChild(H))},Ah=r=>r&&r.hasAttribute("data-mce-caret")?(kd(r),r.removeAttribute("data-mce-caret"),r.removeAttribute("data-mce-bogus"),r.removeAttribute("style"),r.removeAttribute("data-mce-style"),r.removeAttribute("_moz_abspos"),r):null,Sb=r=>Vm(r.startContainer),Sl=Math.round,l1=r=>r?{left:Sl(r.left),top:Sl(r.top),bottom:Sl(r.bottom),right:Sl(r.right),width:Sl(r.width),height:Sl(r.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Yx=(r,g)=>(r=l1(r),g||(r.left=r.left+r.width),r.right=r.left,r.width=0,r),N4=(r,g)=>r.left===g.left&&r.top===g.top&&r.bottom===g.bottom&&r.right===g.right,Xx=(r,g,B)=>r>=0&&r<=Math.min(g.height,B.height)/2,lv=(r,g)=>{const B=Math.min(g.height/2,r.height/2);return r.bottom-Bg.bottom?!1:Xx(g.top-r.bottom,r,g)},fc=(r,g)=>r.top>g.bottom?!0:r.bottomg>=r.left&&g<=r.right&&B>=r.top&&B<=r.bottom,kb=r=>Ie(r,(g,B)=>g.fold(()=>Y.some(B),H=>{const oe=Math.min(B.left,H.left),be=Math.min(B.top,H.top),Le=Math.max(B.right,H.right),Ke=Math.max(B.bottom,H.bottom);return Y.some({top:be,right:Le,bottom:Ke,left:oe,width:Le-oe,height:Ke-be})}),Y.none()),dc=(r,g,B)=>{const H=Math.max(Math.min(g,r.left+r.width),r.left),oe=Math.max(Math.min(B,r.top+r.height),r.top);return Math.sqrt((g-H)*(g-H)+(B-oe)*(B-oe))},uv=(r,g)=>Math.max(0,Math.min(r.bottom,g.bottom)-Math.max(r.top,g.top)),Mh=r=>{const g=r.startContainer,B=r.startOffset;return g===r.endContainer&&g.hasChildNodes()&&r.endOffset===B+1?g.childNodes[B]:null},Fp=(r,g)=>{if(ne(r)&&r.hasChildNodes()){const B=r.childNodes,H=X_(g,0,B.length-1);return B[H]}else return r},tw=(r,g)=>{if(!(g<0&&ne(r)&&r.hasChildNodes()))return Fp(r,g)},Li=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),nw=r=>v(r)&&r.charCodeAt(0)>=768&&Li.test(r),F4=(...r)=>g=>{for(let B=0;Bg=>{for(let B=0;Bdv(r)?!1:sm(r)?!vy(r.parentNode):c1(r)||ow(r)||fv(r)||Gx(r),hv=r=>ne(r)&&r.getAttribute("unselectable")==="true",Gx=r=>!hv(r)&&JO(r),df=(r,g)=>{for(let B=r.parentNode;B&&B!==g;B=B.parentNode){if(Gx(B))return!1;if(rw(B))return!0}return!0},Tb=r=>Gx(r)?!Ie(Me(r.getElementsByTagName("*")),(g,B)=>g||rw(B),!1):!1,uu=r=>c1(r)||Tb(r),Cb=(r,g)=>Hh(r)&&df(r,g),Kx=ne,Jx=Hh,iw=Ee("display","block table"),e3=Ee("float","left right"),lm=KO(Kx,Jx,X(e3)),u1=X(Ee("white-space","pre pre-line pre-wrap")),cm=Mt,pv=gn,hf=cc.nodeIndex,f1=tw,jm=r=>r?r.createRange():cc.DOM.createRng(),mv=r=>v(r)&&/[\r\n\t ]/.test(r),e2=r=>!!r.setStart&&!!r.setEnd,Zd=r=>{const g=r.startContainer,B=r.startOffset;if(mv(r.toString())&&u1(g.parentNode)&&Mt(g)){const H=g.data;if(mv(H[B-1])||mv(H[B+1]))return!0}return!1},yy=r=>{const g=r.ownerDocument,B=jm(g),H=g.createTextNode(Pc),oe=r.parentNode;oe.insertBefore(H,r),B.setStart(H,0),B.setEnd(H,1);const be=l1(B.getBoundingClientRect());return oe.removeChild(H),be},m0=r=>{const g=r.startContainer,B=r.endContainer,H=r.startOffset,oe=r.endOffset;if(g===B&&Mt(B)&&H===0&&oe===1){const be=r.cloneRange();return be.setEndAfter(B),v0(be)}else return null},g0=r=>r.left===0&&r.right===0&&r.top===0&&r.bottom===0,v0=r=>{var g;let B;const H=r.getClientRects();return H.length>0?B=l1(H[0]):B=l1(r.getBoundingClientRect()),!e2(r)&&pv(r)&&g0(B)?yy(r):g0(B)&&e2(r)&&(g=m0(r))!==null&&g!==void 0?g:B},y0=(r,g)=>{const B=Yx(r,g);return B.width=1,B.right=B.left+1,B},Tf=r=>{const g=[],B=Le=>{Le.height!==0&&(g.length>0&&N4(Le,g[g.length-1])||g.push(Le))},H=(Le,Ke)=>{const ut=jm(Le.ownerDocument);if(Ke0&&(ut.setStart(Le,Ke-1),ut.setEnd(Le,Ke),Zd(ut)||B(y0(v0(ut),!1))),Ke{const H=()=>(cm(r),g===0),oe=()=>cm(r)?g>=r.data.length:g>=r.childNodes.length,be=()=>{const nn=jm(r.ownerDocument);return nn.setStart(r,g),nn.setEnd(r,g),nn},Le=()=>(B||(B=Tf(vo(r,g))),B),Ke=()=>Le().length>0,ut=nn=>nn&&r===nn.container()&&g===nn.offset(),At=nn=>f1(r,nn?g-1:g);return{container:$(r),offset:$(g),toRange:be,getClientRects:Le,isVisible:Ke,isAtStart:H,isAtEnd:oe,isEqual:ut,getNode:At}};vo.fromRangeStart=r=>vo(r.startContainer,r.startOffset),vo.fromRangeEnd=r=>vo(r.endContainer,r.endOffset),vo.after=r=>vo(r.parentNode,hf(r)+1),vo.before=r=>vo(r.parentNode,hf(r)),vo.isAbove=(r,g)=>zi(Ye(g.getClientRects()),Je(r.getClientRects()),lv).getOr(!1),vo.isBelow=(r,g)=>zi(Je(g.getClientRects()),Ye(r.getClientRects()),fc).getOr(!1),vo.isAtStart=r=>r?r.isAtStart():!1,vo.isAtEnd=r=>r?r.isAtEnd():!1,vo.isTextPosition=r=>r?Mt(r.container()):!1,vo.isElementPosition=r=>!vo.isTextPosition(r);const Ab=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},F=(r,g,B)=>{g.insertNode(B),Ab(r,B.previousSibling),Ab(r,B.nextSibling)},G=(r,g,B)=>{const H=Y.from(B.firstChild),oe=Y.from(B.lastChild);g.insertNode(B),H.each(be=>Ab(r,be.previousSibling)),oe.each(be=>Ab(r,be.nextSibling))},ue=(r,g,B)=>{Ln(B)?G(r,g,B):F(r,g,B)},Ae=Mt,He=et,nt=cc.nodeIndex,ct=r=>{const g=r.parentNode;return He(g)?ct(g):g},Pt=r=>r?it(r.childNodes,(g,B)=>(He(B)&&B.nodeName!=="BR"?g=g.concat(Pt(B)):g.push(B),g),[]):[],jt=(r,g)=>{let B=r;for(;(B=B.previousSibling)&&Ae(B);)g+=B.data.length;return g},hn=r=>g=>r===g,mn=r=>{let g,B;g=Pt(ct(r)),B=at(g,hn(r),r),g=g.slice(0,B+1);const H=it(g,(oe,be,Le)=>(Ae(be)&&Ae(g[Le-1])&&oe++,oe),0);return g=Vt(g,xe([r.nodeName])),B=at(g,hn(r),r),B-H},Dn=r=>(Ae(r)?"text()":r.nodeName.toLowerCase())+"["+mn(r)+"]",Xn=(r,g,B)=>{const H=[];for(let oe=g.parentNode;oe&&oe!==r&&!(B&&B(oe));oe=oe.parentNode)H.push(oe);return H},$n=(r,g)=>{let B=[],H=g.container(),oe=g.offset(),be;if(Ae(H))be=jt(H,oe);else{const Ke=H.childNodes;oe>=Ke.length?(be="after",oe=Ke.length-1):be="before",H=Ke[oe]}B.push(Dn(H));let Le=Xn(r,H);return Le=Vt(Le,X(et)),B=B.concat(bt(Le,Ke=>Dn(Ke))),B.reverse().join("/")+","+be},mr=(r,g,B)=>{let H=Pt(r);return H=Vt(H,(oe,be)=>!Ae(oe)||!Ae(H[be-1])),H=Vt(H,xe([g])),H[B]},Or=(r,g)=>{let B=r,H=0;for(;Ae(B);){const oe=B.data.length;if(g>=H&&g<=H+oe){r=B,g=g-H;break}if(!Ae(B.nextSibling)){r=B,g=oe;break}H+=oe,B=B.nextSibling}return Ae(r)&&g>r.data.length&&(g=r.data.length),vo(r,g)},Kr=(r,g)=>{if(!g)return null;const B=g.split(","),H=B[0].split("/"),oe=B.length>1?B[1]:"before",be=it(H,(Le,Ke)=>{const ut=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(Ke);return ut?(ut[1]==="text()"&&(ut[1]="#text"),mr(Le,ut[1],parseInt(ut[2],10))):null},r);if(!be)return null;if(!Ae(be)&&be.parentNode){let Le;return oe==="after"?Le=nt(be)+1:Le=nt(be),vo(be.parentNode,Le)}return Or(be,parseInt(oe,10))},Hr=In,fo=(r,g,B)=>{let H=r(g.data.slice(0,B)).length;for(let oe=g.previousSibling;oe&&Mt(oe);oe=oe.previousSibling)H+=r(oe.data).length;return H},mo=(r,g,B,H,oe)=>{const be=oe?H.startContainer:H.endContainer;let Le=oe?H.startOffset:H.endOffset;const Ke=[],ut=r.getRoot();if(Mt(be))Ke.push(B?fo(g,be,Le):Le);else{let At=0;const nn=be.childNodes;Le>=nn.length&&nn.length&&(At=1,Le=Math.max(0,nn.length-1)),Ke.push(r.nodeIndex(nn[Le],B)+At)}for(let At=be;At&&At!==ut;At=At.parentNode)Ke.push(r.nodeIndex(At,B));return Ke},Io=(r,g,B,H)=>{const oe=g.dom,be=mo(oe,r,B,H,!0),Le=g.isForward(),Ke=Sb(H)?{isFakeCaret:!0}:{};if(g.isCollapsed())return{start:be,forward:Le,...Ke};{const ut=mo(oe,r,B,H,!1);return{start:be,end:ut,forward:Le,...Ke}}},Qo=(r,g,B)=>{let H=0;return To.each(r.select(g),oe=>{if(oe.getAttribute("data-mce-bogus")!=="all"){if(oe===B)return!1;H++;return}}),H},Po=(r,g)=>{let B=g?r.startContainer:r.endContainer,H=g?r.startOffset:r.endOffset;if(ne(B)&&B.nodeName==="TR"){const oe=B.childNodes;B=oe[Math.min(g?H:H-1,oe.length-1)],B&&(H=g?0:B.childNodes.length,g?r.setStart(B,H):r.setEnd(B,H))}},Ii=r=>(Po(r,!0),Po(r,!1),r),bi=(r,g)=>{if(ne(r)&&(r=Fp(r,g),Hr(r)))return r;if(op(r)){Mt(r)&&Vm(r)&&(r=r.parentNode);let B=r.previousSibling;if(Hr(B)||(B=r.nextSibling,Hr(B)))return B}},Zi=r=>bi(r.startContainer,r.startOffset)||bi(r.endContainer,r.endOffset),ra=(r,g,B)=>{const H=B.getNode(),oe=B.getRng();if(H.nodeName==="IMG"||Hr(H)){const Le=H.nodeName;return{name:Le,index:Qo(B.dom,Le,H)}}const be=Zi(oe);if(be){const Le=be.tagName;return{name:Le,index:Qo(B.dom,Le,be)}}return Io(r,B,g,oe)},ka=r=>{const g=r.getRng();return{start:$n(r.dom.getRoot(),vo.fromRangeStart(g)),end:$n(r.dom.getRoot(),vo.fromRangeEnd(g)),forward:r.isForward()}},ea=r=>({rng:r.getRng(),forward:r.isForward()}),as=(r,g,B)=>{const H={"data-mce-type":"bookmark",id:g,style:"overflow:hidden;line-height:0px"};return B?r.create("span",H,""):r.create("span",H)},Da=(r,g)=>{const B=r.dom;let H=r.getRng();const oe=B.uniqueId(),be=r.isCollapsed(),Le=r.getNode(),Ke=Le.nodeName,ut=r.isForward();if(Ke==="IMG")return{name:Ke,index:Qo(B,Ke,Le)};const At=Ii(H.cloneRange());if(!be){At.collapse(!1);const un=as(B,oe+"_end",g);ue(B,At,un)}H=Ii(H),H.collapse(!0);const nn=as(B,oe+"_start",g);return ue(B,H,nn),r.moveToBookmark({id:oe,keep:!0,forward:ut}),{id:oe,forward:ut}},ba=(r,g,B=!1)=>g===2?ra(Sd,B,r):g===3?ka(r):g?ea(r):Da(r,!1),fl=U(ra,Q,!0),As=r=>{const g=be=>be(r),B=$(r),H=()=>oe,oe={tag:!0,inner:r,fold:(be,Le)=>Le(r),isValue:q,isError:re,map:be=>Vs.value(be(r)),mapError:H,bind:g,exists:g,forall:g,getOr:B,or:H,getOrThunk:B,orThunk:H,getOrDie:B,each:be=>{be(r)},toOptional:()=>Y.some(r)};return oe},hc=r=>{const g=()=>B,B={tag:!1,inner:r,fold:(H,oe)=>H(r),isValue:re,isError:q,map:g,mapError:H=>Vs.error(H(r)),bind:g,exists:re,forall:q,getOr:Q,or:Q,getOrThunk:Z,orThunk:Z,getOrDie:te(String(r)),each:k,toOptional:Y.none};return B},Vs={value:As,error:hc,fromOption:(r,g)=>r.fold(()=>hc(g),As)},kl={generate:r=>{if(!C(r))throw new Error("cases must be an array");if(r.length===0)throw new Error("there must be at least one case");const g=[],B={};return ve(r,(H,oe)=>{const be=tt(H);if(be.length!==1)throw new Error("one and only one name per case");const Le=be[0],Ke=H[Le];if(B[Le]!==void 0)throw new Error("duplicate key detected:"+Le);if(Le==="cata")throw new Error("cannot have a case named cata (sorry)");if(!C(Ke))throw new Error("case arguments must be an array");g.push(Le),B[Le]=(...ut)=>{const At=ut.length;if(At!==Ke.length)throw new Error("Wrong number of arguments to case "+Le+". Expected "+Ke.length+" ("+Ke+"), got "+At);return{fold:(...un)=>{if(un.length!==r.length)throw new Error("Wrong number of arguments to fold. Expected "+r.length+", got "+un.length);return un[oe].apply(null,ut)},match:un=>{const yn=tt(un);if(g.length!==yn.length)throw new Error("Wrong number of arguments to match. Expected: "+g.join(",")+` Actual: `+yn.join(","));if(!Oe(g,rr=>ce(yn,rr)))throw new Error("Not all branches were specified when using match. Specified: "+yn.join(", ")+` -Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un,{constructors:g,constructor:Le,params:ut})}}}}),B}};kl.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fc=r=>{const g=[],B=[];return ve(r,H=>{H.fold(oe=>{g.push(oe)},oe=>{B.push(oe)})}),{errors:g,values:B}},qa=r=>r.type==="inline-command"||r.type==="inline-format",Sc=r=>r.type==="block-command"||r.type==="block-format",pc=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,sd=r=>{var g;const B=oe=>Vs.error({message:oe,pattern:r}),H=(oe,be,Le)=>{if(r.format!==void 0){let Ke;if(C(r.format)){if(!Oe(r.format,v))return B(oe+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(oe+" pattern has non-string `format` parameter");return Vs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?Vs.value(Le(r.cmd,r.value)):B(oe+" pattern has non-string `cmd` parameter"):B(oe+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let oe=r.start,be=r.end;return be.length===0&&(be=oe,oe=""),H("Inline",Le=>({type:"inline-format",start:oe,end:be,format:Le}),(Le,Ke)=>({type:"inline-command",start:oe,end:be,cmd:Le,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):Vs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const oe=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:oe}),(be,Le)=>({type:"block-command",start:r.start,cmd:be,value:Le,trigger:oe}))}}},ld=r=>Te(r,Sc),cd=r=>Te(r,qa),Cf=(r,g)=>({inlinePatterns:cd(r),blockPatterns:ld(r),dynamicPatternsLookup:g}),xl=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>pc(B,g))}),eu=r=>{const g=Fc(ye(r,sd));return ve(g.errors,B=>console.error(B.message,B.pattern)),g.values},Td=r=>g=>{const B=r(g);return eu(B)},Af=zn().deviceType,jf=Af.isTouch(),Us=cc.DOM,_l=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const oe=H.split("="),be=oe[0],Le=oe.length>1?oe[1]:be;return B[qn(be)]=qn(Le),B},{})},fu=r=>p(r,RegExp),ni=r=>g=>g.options.get(r),Wc=r=>v(r)||_(r),Yc=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const oe=_l(B);return{value:Et(oe,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},$l=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Yc(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Yc(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&lr(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ye(B.split(","),qn),valid:H}:C(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ip(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:C(B)?B:ye(B.split(","),qn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||Af.isiPhone()||Af.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!jf}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||A(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:Wc}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:Wc}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:Wc}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:Wc}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:eu(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>A(B)?{value:Td(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,fu)?{value:B,valid:!0}:fu(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:ff.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Us.getAttrib(r.getElement(),"placeholder")})})},Ru=ni("iframe_attrs"),Mh=ni("doctype"),mc=ni("document_base_url"),dh=ni("body_id"),hh=ni("body_class"),Qm=ni("content_security_policy"),Qf=ni("br_in_pre"),tu=ni("forced_root_block"),qd=ni("forced_root_block_attrs"),Cd=ni("newline_behavior"),d1=ni("br_newline_selector"),t2=ni("no_newline_selector"),gv=ni("keep_styles"),Lu=ni("end_container_on_empty_block"),$c=ni("automatic_uploads"),dl=ni("images_reuse_filename"),Mf=ni("images_replace_blob_uris"),du=ni("icons"),Iu=ni("icons_url"),vv=ni("images_upload_url"),h1=ni("images_upload_base_path"),n2=ni("images_upload_credentials"),yy=ni("images_upload_handler"),p1=ni("content_css_cors"),b0=ni("referrer_policy"),Hm=ni("language"),yv=ni("language_url"),by=ni("indent_use_margin"),x0=ni("indentation"),r2=ni("content_css"),Mb=ni("content_style"),Ad=ni("font_css"),xy=ni("directionality"),_y=ni("inline_boundaries_selector"),Md=ni("object_resizing"),m1=ni("resize_img_proportional"),_0=ni("placeholder"),um=ni("event_root"),Wd=ni("service_message"),w0=ni("theme"),Eb=ni("theme_url"),wy=ni("model"),aw=ni("model_url"),Zm=ni("inline_boundaries"),sw=ni("formats"),Pb=ni("preview_styles"),t3=ni("format_empty_lines"),O0=ni("format_noneditable_selector"),hu=ni("custom_ui_selector"),ip=ni("inline"),$4=ni("hidden_input"),qm=ni("submit_patch"),lw=ni("add_form_submit_trigger"),cw=ni("add_unload_trigger"),o2=ni("custom_undo_redo_levels"),$p=ni("disable_nodechange"),Rb=ni("readonly"),Lb=ni("editable_root"),Oy=ni("content_css_cors"),bv=ni("plugins"),uw=ni("external_plugins"),fw=ni("block_unsupported_drop"),ud=ni("visual"),i2=ni("visual_table_class"),a2=ni("visual_anchor_class"),s2=ni("iframe_aria_text"),Ib=ni("setup"),n3=ni("init_instance_callback"),Eh=ni("urlconverter_callback"),Db=ni("auto_focus"),l2=ni("browser_spellcheck"),fm=ni("protect"),r3=ni("paste_block_drop"),xv=ni("paste_data_images"),g1=ni("paste_preprocess"),_v=ni("paste_postprocess"),wv=ni("newdocument_content"),Sy=ni("paste_webkit_styles"),Ov=ni("paste_remove_styles_if_webkit"),dw=ni("paste_merge_formats"),o3=ni("smart_paste"),Bb=ni("paste_as_text"),hw=ni("paste_tab_spaces"),v1=ni("allow_html_data_urls"),c2=ni("text_patterns"),Wm=ni("text_patterns_lookup"),pw=ni("noneditable_class"),mw=ni("editable_class"),wp=ni("noneditable_regexp"),zb=ni("preserve_cdata"),u2=ni("highlight_on_focus"),Hf=ni("xss_sanitization"),V4=ni("init_content_sync"),ap=r=>r.options.isSet("text_patterns_lookup"),Nb=r=>To.explode(r.options.get("font_size_style_values")),i3=r=>To.explode(r.options.get("font_size_classes")),dm=r=>r.options.get("encoding")==="xml",ky=r=>To.explode(r.options.get("images_file_types")),f2=ni("table_tab_navigation"),a3=ni("details_initial_state"),d2=ni("details_serialized_state"),s3=ni("sandbox_iframes"),h2=r=>r.options.get("sandbox_iframes_exclusions"),Fb=ni("convert_unsafe_embeds"),l3=ni("license_key"),c3=ni("api_key"),U4=ne,p2=Mt,m2=r=>{const g=r.parentNode;g&&g.removeChild(r)},Mg=r=>{const g=Sd(r);return{count:r.length-g.length,text:g}},S0=r=>{let g;for(;(g=r.data.lastIndexOf(Ou))!==-1;)r.deleteData(g,1)},gw=(r,g)=>($b(r),g),y1=(r,g)=>{const B=Mg(r.data.substr(0,g.offset())),H=Mg(r.data.substr(g.offset()));return(B.text+H.text).length>0?(S0(r),vo(r,g.offset()-B.count)):g},g2=(r,g)=>{const B=g.container(),H=ae(Me(B.childNodes),r).map(oe=>oep2(r)&&g.container()===r?y1(r,g):gw(r,g),zM=(r,g)=>g.container()===r.parentNode?g2(r,g):gw(r,g),mC=(r,g)=>vo.isTextPosition(g)?u3(r,g):zM(r,g),$b=r=>{U4(r)&&op(r)&&(GO(r)?r.removeAttribute("data-mce-caret"):m2(r)),p2(r)&&(S0(r),r.data.length===0&&m2(r))},gC=In,vw=Gr,Ty=Ir,yw="*[contentEditable=false],video,audio,embed,object",vC=(r,g,B)=>{const H=Yx(g.getBoundingClientRect(),B);let oe,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;oe=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();oe=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=oe,H.right+=oe,H.top+=be,H.bottom+=be,H.width=1;let Le=g.offsetWidth-g.clientWidth;return Le>0&&(B&&(Le*=-1),H.left+=Le,H.right+=Le),H},yC=r=>{var g,B;const H=Pl(_r.fromDom(r),yw);for(let oe=0;oe{const oe=Ts();let be,Le;const Ke=tu(r),ut=r.dom,At=(Wn,ur)=>{let Tr;if(nn(),Ty(ur))return null;if(B(ur)){const Wr=h0(Ke,ur,Wn),Qr=vC(g,ur,Wn);ut.setStyle(Wr,"top",Qr.top),ut.setStyle(Wr,"caret-color","transparent"),Le=Wr;const lo=ut.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ut.setStyles(lo,{...Qr}),ut.add(g,lo),oe.set({caret:lo,element:ur,before:Wn}),Wn&&ut.addClass(lo,"mce-visual-caret-before"),un(),Tr=ur.ownerDocument.createRange(),Tr.setStart(Wr,0),Tr.setEnd(Wr,0)}else return Le=Ob(ur,Wn),Tr=ur.ownerDocument.createRange(),v2(Le.nextSibling)?(Tr.setStart(Le,0),Tr.setEnd(Le,0)):(Tr.setStart(Le,1),Tr.setEnd(Le,1)),Tr;return Tr},nn=()=>{yC(g),Le&&($b(Le),Le=null),oe.on(Wn=>{ut.remove(Wn.caret),oe.clear()}),be&&(clearInterval(be),be=void 0)},un=()=>{be=setInterval(()=>{oe.on(Wn=>{H()?ut.toggleClass(Wn.caret,"mce-visual-caret-hidden"):ut.addClass(Wn.caret,"mce-visual-caret-hidden")})},500)};return{show:At,hide:nn,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{oe.on(Wn=>{const ur=vC(g,Wn.element,Wn.before);ut.setStyles(Wn.caret,{...ur})})},destroy:()=>clearInterval(be)}},NM=()=>Nr.browser.isFirefox(),v2=r=>gC(r)||vw(r),b1=r=>(v2(r)||dt(r)&&NM())&&Nh(_r.fromDom(r)).exists(Ol),FM=pn,j4=In,bC=Gr,xC=Ee("display","block table table-cell table-caption list-item"),_C=op,Q4=Vm,wC=ne,Cy=Mt,OC=Hh,Vb=r=>r>0,Ay=r=>r<0,bw=(r,g)=>{let B;for(;B=r(g);)if(!Q4(B))return B;return null},y2=(r,g,B,H,oe)=>{const be=new Xl(r,H),Le=j4(r)||Q4(r);let Ke;if(Ay(g)){if(Le&&(Ke=bw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.prev.bind(be),oe);)if(B(Ke))return Ke}if(Vb(g)){if(Le&&(Ke=bw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.next.bind(be),oe);)if(B(Ke))return Ke}return null},f3=(r,g)=>{const B=oe=>FM(oe.dom),H=oe=>oe.dom===g;return vs(_r.fromDom(r),B,H).map(oe=>oe.dom).getOr(g)},My=(r,g)=>{for(;r&&r!==g;){if(xC(r))return r;r=r.parentNode}return null},hm=(r,g,B)=>My(r.container(),B)===My(g.container(),B),H4=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return wC(B)?Y.from(B.childNodes[H+r]):Y.none()},$M=(r,g)=>{var B;const oe=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)),oe},b2=(r,g,B)=>My(g,r)===My(B,r),SC=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let oe=B;for(;oe&&oe!==g;){let be=oe[H];if(be&&_C(be)&&(be=be[H]),j4(be)||bC(be)){if(b2(g,be,oe))return be;break}if(OC(be))break;oe=oe.parentNode}return null},x2=U($M,!0),_2=U($M,!1),Yd=(r,g,B)=>{let H;const oe=U(SC,!0,g),be=U(SC,!1,g),Le=B.startContainer,Ke=B.startOffset;if(Vm(Le)){const ut=Cy(Le)?Le.parentNode:Le,At=ut.getAttribute("data-mce-caret");if(At==="before"&&(H=ut.nextSibling,b1(H)))return x2(H);if(At==="after"&&(H=ut.previousSibling,b1(H)))return _2(H)}if(!B.collapsed)return B;if(Mt(Le)){if(_C(Le)){if(r===1){if(H=be(Le),H)return x2(H);if(H=oe(Le),H)return _2(H)}if(r===-1){if(H=oe(Le),H)return _2(H);if(H=be(Le),H)return x2(H)}return B}if(Ss(Le)&&Ke>=Le.data.length-1)return r===1&&(H=be(Le),H)?x2(H):B;if(p0(Le)&&Ke<=1)return r===-1&&(H=oe(Le),H)?_2(H):B;if(Ke===Le.data.length)return H=be(Le),H?x2(H):B;if(Ke===0)return H=oe(Le),H?_2(H):B}return B},d3=(r,g)=>H4(r?0:-1,g).filter(j4),xw=(r,g,B)=>{const H=Yd(r,g,B);return r===-1?vo.fromRangeStart(H):vo.fromRangeEnd(H)},h3=r=>Y.from(r.getNode()).map(_r.fromDom),kC=r=>Y.from(r.getNode(!0)).map(_r.fromDom),Z4=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},p3=(r,g)=>{const B=hm(r,g);return!B&&gn(r.getNode())?!0:B};var Ef;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Ef||(Ef={}));const m3=In,x1=Mt,TC=ne,q4=gn,Sv=Hh,_w=uu,w2=Cb,g3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},v3=(r,g)=>r.hasChildNodes()&&g{if(Vb(r)){if(Sv(g.previousSibling)&&!x1(g.previousSibling))return vo.before(g);if(x1(g))return vo(g,0)}if(Ay(r)){if(Sv(g.nextSibling)&&!x1(g.nextSibling))return vo.after(g);if(x1(g))return vo(g,g.data.length)}return Ay(r)?q4(g)?vo.before(g):vo.after(g):vo.before(g)},VM=(r,g)=>{const B=g.nextSibling;return B&&Sv(B)?x1(B)?vo(B,0):vo.before(B):Vp(Ef.Forwards,vo.after(g),r)},Vp=(r,g,B)=>{let H,oe,be,Le;if(!TC(B)||!g)return null;if(g.isEqual(vo.after(B))&&B.lastChild){if(Le=vo.after(B.lastChild),Ay(r)&&Sv(B.lastChild)&&TC(B.lastChild))return q4(B.lastChild)?vo.before(B.lastChild):Le}else Le=g;const Ke=Le.container();let ut=Le.offset();if(x1(Ke)){if(Ay(r)&&ut>0)return vo(Ke,--ut);if(Vb(r)&&ut0&&(oe=v3(Ke,ut-1),Sv(oe)))return!_w(oe)&&(be=y2(oe,r,w2,oe),be)?x1(be)?vo(be,be.data.length):vo.after(be):x1(oe)?vo(oe,oe.data.length):vo.before(oe);if(Vb(r)&&ut({next:g=>Vp(Ef.Forwards,g,r),prev:g=>Vp(Ef.Backwards,g,r)}),W4=(r,g,B)=>{const H=r?vo.before(B):vo.after(B);return Op(r,g,H)},CC=r=>gn(r)?vo.before(r):vo.after(r),AC=r=>vo.isTextPosition(r)?r.offset()===0:Hh(r.getNode()),Y4=r=>{if(vo.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return Hh(r.getNode(!0))},X4=(r,g)=>!vo.isTextPosition(r)&&!vo.isTextPosition(g)&&r.getNode()===g.getNode(!0),MC=r=>!vo.isTextPosition(r)&&gn(r.getNode()),EC=(r,g,B)=>r?!X4(g,B)&&!MC(g)&&Y4(g)&&AC(B):!X4(B,g)&&AC(g)&&Y4(B),Op=(r,g,B)=>{const H=k0(g);return Y.from(r?H.next(B):H.prev(B))},Ub=(r,g,B)=>Op(r,g,B).bind(H=>hm(B,H,g)&&EC(r,B,H)?Op(r,g,H):Y.some(H)),G4=(r,g,B,H)=>Ub(r,g,B).bind(oe=>H(oe)?G4(r,g,oe,H):Y.some(oe)),Py=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Mt(B)?Y.some(vo(B,r?0:B.data.length)):B?Hh(B)?Y.some(r?vo.before(B):CC(B)):W4(r,g,B):Y.none()},Sp=U(Op,!0),Up=U(Op,!1),ph=U(Py,!0),Ym=U(Py,!1),y3="_mce_caret",Xm=r=>ne(r)&&r.id===y3,jb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Xm(B))return B;B=B.parentNode}return null},UM=r=>v(r.start),K4=r=>Ot(r,"rng"),jM=r=>Ot(r,"id"),QM=r=>Ot(r,"name"),PC=r=>To.isArray(r.start),b3=r=>!QM(r)&&R(r.forward)?r.forward:!0,x3=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
    '),g),Ph=(r,g)=>{const B=Y.from(Kr(r.getRoot(),g.start)),H=Y.from(Kr(r.getRoot(),g.end));return zi(B,H,(oe,be)=>{const Le=r.createRng();return Le.setStart(oe.container(),oe.offset()),Le.setEnd(be.container(),be.offset()),{range:Le,forward:b3(g)}})},O2=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou);r.appendChild(oe),g.setStart(oe,0),g.setEnd(oe,0)},S2=r=>!r.hasChildNodes(),ww=(r,g)=>Ym(r).fold(re,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),J4=(r,g,B)=>S2(g)&&jb(r,g)?(O2(g,B),!0):!1,Ow=(r,g,B,H)=>{const oe=B[g?"start":"end"],be=r.getRoot();if(oe){let Le=be,Ke=oe[0];for(let ut=oe.length-1;Le&&ut>=1;ut--){const At=Le.childNodes;if(J4(be,Le,H))return!0;if(oe[ut]>At.length-1)return J4(be,Le,H)?!0:ww(Le,H);Le=At[oe[ut]]}Mt(Le)&&(Ke=Math.min(oe[0],Le.data.length)),ne(Le)&&(Ke=Math.min(oe[0],Le.childNodes.length)),g?H.setStart(Le,Ke):H.setEnd(Le,Ke)}return!0},Sw=r=>Mt(r)&&r.data.length>0,Qb=(r,g,B)=>{const H=r.get(B.id+"_"+g),oe=H==null?void 0:H.parentNode,be=B.keep;if(H&&oe){let Le,Ke;if(g==="start"?be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.nextSibling)?(Le=H.nextSibling,Ke=0):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)+1):(Le=oe,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)):(Le=oe,Ke=r.nodeIndex(H)),!be){const ut=H.previousSibling,At=H.nextSibling;To.each(To.grep(H.childNodes),un=>{Mt(un)&&(un.data=un.data.replace(/\uFEFF/g,""))});let nn;for(;nn=r.get(B.id+"_"+g);)r.remove(nn,!0);if(Mt(At)&&Mt(ut)&&!Nr.browser.isOpera()){const un=ut.data.length;ut.appendData(At.data),r.remove(At),Le=ut,Ke=un}}return Y.some(vo(Le,Ke))}else return Y.none()},ek=(r,g)=>{const B=r.createRng();return Ow(r,!0,g,B)&&Ow(r,!1,g,B)?Y.some({range:B,forward:b3(g)}):Y.none()},_3=(r,g)=>{const B=Qb(r,"start",g),H=Qb(r,"end",g);return zi(B,H.or(B),(oe,be)=>{const Le=r.createRng();return Le.setStart(x3(r,oe.container()),oe.offset()),Le.setEnd(x3(r,be.container()),be.offset()),{range:Le,forward:b3(g)}})},Eg=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),RC=(r,g)=>{const B=r.dom;if(g){if(PC(g))return ek(B,g);if(UM(g))return Ph(B,g);if(jM(g))return _3(B,g);if(QM(g))return Eg(B,g);if(K4(g))return Y.some({range:g.rng,forward:b3(g)})}return Y.none()},LC=(r,g,B)=>ba(r,g,B),kv=(r,g)=>{RC(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},pm=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",Hb=(r=>g=>r===g)(Pc),Ry=r=>r!==""&&` \f -\r \v`.indexOf(r)!==-1,tk=r=>!Ry(r)&&!Hb(r)&&!Uf(r),w3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Ah(g);return B?[_r.fromDom(B)]:[]}),HM=r=>w3(r).length>1,ZM=r=>Te(IC(r),my),Zb=r=>Pl(r,"td[data-mce-selected],th[data-mce-selected]"),nk=(r,g)=>{const B=Zb(g);return B.length>0?B:ZM(r)},k2=r=>nk(w3(r.selection.getSel()),_r.fromDom(r.getBody())),Tw=(r,g)=>ts(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Mt(g)?B===0?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(_r.fromDom)},O3=r=>{const g=r.endContainer,B=r.endOffset;return Mt(g)?B===g.data.length?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(_r.fromDom)},rk=r=>yc(r).fold($([r]),g=>[r].concat(rk(g))),ok=r=>Cc(r).fold($([r]),g=>ma(g)==="br"?sf(g).map(B=>[r].concat(ok(B))).getOr([]):[r].concat(ok(g))),S3=(r,g)=>zi(qM(g),O3(g),(B,H)=>{const oe=De(rk(r),U(va,B)),be=De(ok(r),U(va,H));return oe.isSome()&&be.isSome()}).getOr(!1),ik=(r,g,B,H)=>{const oe=B,be=new Xl(B,oe),Le=Yt(r.schema.getMoveCaretBeforeOnEnterElements(),(ut,At)=>!ce(["td","th","table"],At.toLowerCase()));let Ke=B;do{if(Mt(Ke)&&To.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Le[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());oe.nodeName==="BODY"&&(H?g.setStart(oe,0):g.setEnd(oe,oe.childNodes.length))},T2=r=>{const g=r.selection.getSel();return P(g)&&g.rangeCount>0},k3=(r,g)=>{const B=k2(r);B.length>0?ve(B,H=>{const oe=H.dom,be=r.dom.createRng();be.setStartBefore(oe),be.setEndAfter(oe),g(be,!0)}):g(r.selection.getRng(),!1)},T3=(r,g,B)=>{const H=Da(r,g);B(H),r.moveToBookmark(H)},C3=r=>L(r==null?void 0:r.nodeType),A3=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Ys=(r,g)=>{if(A3(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},_1=(r,g,B)=>{const{selection:H,dom:oe}=r,be=H.getNode(),Le=In(be);T3(H,!0,()=>{g()}),Le&&In(be)&&oe.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&qb(oe,H)},qb=(r,g)=>{var B,H;const oe=g.getRng(),{startContainer:be,startOffset:Le}=oe,Ke=g.getNode();if(!Ys(r,Ke)&&ne(be)){const ut=be.childNodes,At=r.getRoot();let nn;if(Le{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!P3(r))return r}},E3=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||lh(r,g),Ly=(r,g,B)=>r.schema.isValidChild(g,B),P3=(r,g=!1)=>{if(P(r)&&Mt(r)){const B=g?r.data.replace(/ /g," "):r.data;return lc(B)}else return!1},ak=r=>P(r)&&Mt(r)&&r.length===0,sk=(r,g)=>{const B="[data-mce-cef-wrappable]",H=O0(r),oe=zr(H)?B:`${B},${H}`;return yd(_r.fromDom(g),oe)},lk=(r,g)=>{const B=r.dom;return A3(g)&&B.getContentEditable(g)==="false"&&sk(r,g)&&B.select('[contenteditable="true"]',g).length===0},Tv=(r,g)=>A(r)?r(g):(P(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),Wb=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),DC=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=od(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},Cw=(r,g,B)=>{const H=r.getStyle(g,B);return DC(H,B)},ck=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},R3=(r,g,B)=>r.getParents(g,B,r.getRoot()),L3=(r,g,B)=>{const H=r.formatter.get(g);return P(H)&&de(H,B)},uk=(r,g)=>L3(r,g,H=>{const oe=be=>A(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Et(H,be).exists(Le=>{const Ke=C(Le)?Le:tn(Le);return de(Ke,oe)}))}),BC=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],oe=be=>Yt(be,(Le,Ke)=>de(H,ut=>ut===Ke));return L3(r,g,be=>{const Le=oe(be);return L3(r,B,Ke=>{const ut=oe(Ke);return Cn(Le,ut)})})},Cv=r=>cn(r,"block"),I3=r=>Cv(r)&&r.wrapper===!0,zC=r=>Cv(r)&&r.wrapper!==!0,Gm=r=>cn(r,"selector"),Ed=r=>cn(r,"inline"),Av=r=>Gm(r)&&Ed(r)&&Ia(Et(r,"mixed"),!0),fk=r=>Gm(r)&&r.expand!==!1&&!Ed(r),WM=r=>{const g=[];let B=r;for(;B;){if(Mt(B)&&B.data!==Ou||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},D3=r=>WM(r).length>0,dk=r=>Xm(r.dom)&&D3(r.dom),C2=pm,NC=R3,YM=P3,AD=E3,XM=r=>gn(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,FC=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},$C=(r,g,B,H)=>{const oe=g.data;if(r){for(let be=B;be>0;be--)if(H(oe.charAt(be-1)))return be}else for(let be=B;be$C(r,g,B,H=>Hb(H)||Ry(H)),Pd=(r,g,B)=>$C(r,g,B,tk),Aw=(r,g,B,H,oe,be)=>{let Le;const Ke=r.getParent(B,r.isBlock)||g,ut=(nn,un,yn)=>{const Qn=Cg(r),rr=oe?Qn.backwards:Qn.forwards;return Y.from(rr(nn,un,(Wn,ur)=>C2(Wn.parentNode)?-1:(Le=Wn,yn(oe,Wn,ur)),Ke))};return ut(B,H,Ei).bind(nn=>be?ut(nn.container,nn.offset+(oe?-1:0),Pd):Y.some(nn)).orThunk(()=>Le?Y.some({container:Le,offset:oe?0:Le.length}):Y.none())},Rd=(r,g,B,H,oe)=>{const be=H[oe];Mt(H)&&zr(H.data)&&be&&(H=be);const Le=NC(r,H);for(let Ke=0;Ke{var oe;let be=B;const Le=r.getRoot(),Ke=g[0];if(Cv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Le)),!be){const ut=(oe=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&oe!==void 0?oe:Le;be=r.getParent(Mt(B)?B.parentNode:B,At=>At!==Le&&AD(r.schema,At),ut)}if(be&&Cv(Ke)&&Ke.wrapper&&(be=NC(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!Wb(be,"br")););return be||B},hk=(r,g,B,H)=>{const oe=B.parentNode;return P(B[H])?!1:oe===g||T(oe)||r.isBlock(oe)?!0:hk(r,g,oe,H)},Yb=(r,g,B,H,oe)=>{let be=B;const Le=oe?"previousSibling":"nextSibling",Ke=r.getRoot();if(Mt(B)&&!YM(B)&&(oe?H>0:HC2(r.parentNode)||C2(r),Xb=(r,g,B,H=!1)=>{let{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}=g;const ut=B[0];return ne(oe)&&oe.hasChildNodes()&&(oe=Fp(oe,be),Mt(oe)&&(be=0)),ne(Le)&&Le.hasChildNodes()&&(Le=Fp(Le,g.collapsed?Ke:Ke-1),Mt(Le)&&(Ke=Le.data.length)),oe=FC(r,oe),Le=FC(r,Le),Mw(oe)&&(oe=C2(oe)?oe:oe.parentNode,g.collapsed?oe=oe.previousSibling||oe:oe=oe.nextSibling||oe,Mt(oe)&&(be=g.collapsed?oe.length:0)),Mw(Le)&&(Le=C2(Le)?Le:Le.parentNode,g.collapsed?Le=Le.nextSibling||Le:Le=Le.previousSibling||Le,Mt(Le)&&(Ke=g.collapsed?0:Le.length)),g.collapsed&&(Aw(r,r.getRoot(),oe,be,!0,H).each(({container:un,offset:yn})=>{oe=un,be=yn}),Aw(r,r.getRoot(),Le,Ke,!1,H).each(({container:un,offset:yn})=>{Le=un,Ke=yn})),(Ed(ut)||ut.block_expand)&&((!Ed(ut)||!Mt(oe)||be===0)&&(oe=Yb(r,B,oe,be,!0)),(!Ed(ut)||!Mt(Le)||Ke===Le.data.length)&&(Le=Yb(r,B,Le,Ke,!1))),fk(ut)&&(oe=Rd(r,B,g,oe,"previousSibling"),Le=Rd(r,B,g,Le,"nextSibling")),(Cv(ut)||Gm(ut))&&(oe=Km(r,B,oe,"previousSibling"),Le=Km(r,B,Le,"nextSibling"),Cv(ut)&&(r.isBlock(oe)||(oe=Yb(r,B,oe,be,!0),Mt(oe)&&(be=0)),r.isBlock(Le)||(Le=Yb(r,B,Le,Ke,!1),Mt(Le)&&(Ke=Le.data.length)))),ne(oe)&&oe.parentNode&&(be=r.nodeIndex(oe),oe=oe.parentNode),ne(Le)&&Le.parentNode&&(Ke=r.nodeIndex(Le)+1,Le=Le.parentNode),{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}},Ew=(r,g,B)=>{var H;const oe=g.startOffset,be=Fp(g.startContainer,oe),Le=g.endOffset,Ke=Fp(g.endContainer,Le-1),ut=ur=>{const Tr=ur[0];Mt(Tr)&&Tr===be&&oe>=Tr.data.length&&ur.splice(0,1);const Wr=ur[ur.length-1];return Le===0&&ur.length>0&&Wr===Ke&&Mt(Wr)&&ur.splice(ur.length-1,1),ur},At=(ur,Tr,Wr)=>{const Qr=[];for(;ur&&ur!==Wr;ur=ur[Tr])Qr.push(ur);return Qr},nn=(ur,Tr)=>r.getParent(ur,Wr=>Wr.parentNode===Tr,Tr),un=(ur,Tr,Wr)=>{const Qr=Wr?"nextSibling":"previousSibling";for(let lo=ur,Zo=lo.parentNode;lo&&lo!==Tr;lo=Zo){Zo=lo.parentNode;const li=At(lo===ur?lo:lo[Qr],Qr);li.length&&(Wr||li.reverse(),B(ut(li)))}};if(be===Ke)return B(ut([be]));const yn=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return un(be,yn,!0);if(r.isChildOf(Ke,be))return un(Ke,yn);const Qn=nn(be,yn)||be,rr=nn(Ke,yn)||Ke;un(be,Qn,!0);const Wn=At(Qn===be?Qn:Qn.nextSibling,"nextSibling",rr===Ke?rr.nextSibling:rr);Wn.length&&B(ut(Wn)),un(Ke,rr)},VC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],GM=r=>Ml(r)&&f0(r)===Ou,KM=(r,g,B,H)=>jc(g).fold(()=>"skipping",oe=>H==="br"||GM(g)?"valid":z4(g)?"existing":Xm(g.dom)?"caret":de(VC,be=>yd(g,be))?"valid-block":!Ly(r,B,H)||!Ly(r,ma(oe),B)?"invalid-child":"valid"),A2=(r,g)=>{const B=Xb(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Gb=(r,g,B,H,oe,be)=>{const{uid:Le=g,...Ke}=B;Cu(r,G1()),ll(r,`${dy()}`,Le),ll(r,`${Sg()}`,H);const{attributes:ut={},classes:At=[]}=oe(Le,Ke);if(Tu(r,ut),bp(r,At),be){At.length>0&&ll(r,`${o1()}`,At.join(","));const nn=tt(ut);nn.length>0&&ll(r,`${kg()}`,nn.join(","))}},pk=r=>{Bu(r,G1()),tc(r,`${dy()}`),tc(r,`${Sg()}`),tc(r,`${K1()}`);const g=ec(r,`${kg()}`).map(H=>H.split(",")).getOr([]),B=ec(r,`${o1()}`).map(H=>H.split(",")).getOr([]);ve(g,H=>tc(r,H)),i1(r,B),tc(r,`${o1()}`),tc(r,`${kg()}`)},mk=(r,g,B,H,oe)=>{const be=_r.fromTag("span",r);return Gb(be,g,B,H,oe,!1),be},jp=(r,g,B,H,oe,be)=>{const Le=[],Ke=mk(r.getDoc(),B,be,H,oe),ut=Ts(),At=()=>{ut.clear()},nn=()=>ut.get().getOrThunk(()=>{const rr=im(Ke);return Le.push(rr),ut.set(rr),rr}),un=rr=>{ve(rr,yn)},yn=rr=>{switch(KM(r,rr,"span",ma(rr))){case"invalid-child":{At();const ur=vc(rr);un(ur),At();break}case"valid-block":{At(),Gb(rr,B,be,H,oe,!0);break}case"valid":{const ur=nn();nd(rr,ur);break}}},Qn=rr=>{const Wn=ye(rr,_r.fromDom);un(Wn)};return Ew(r.dom,g,rr=>{At(),Qn(rr)}),Le},w1=(r,g,B,H)=>{r.undoManager.transact(()=>{const oe=r.selection,be=oe.getRng(),Le=k2(r).length>0,Ke=yb("mce-annotation");if(be.collapsed&&!Le&&A2(r,be),oe.getRng().collapsed&&!Le){const ut=mk(r.getDoc(),Ke,H,g,B.decorate);Fu(ut,Pc),oe.getRng().insertNode(ut.dom),oe.select(ut.dom)}else T3(oe,!1,()=>{k3(r,ut=>{jp(r,ut,Ke,g,B.decorate,H)})})})},B3=r=>{const g=Y_();hy(r,g);const B=jx(r,g),H=Jl("span"),oe=be=>{ve(be,Le=>{H(Le)?Mc(Le):pk(Le)})};return{register:(be,Le)=>{g.register(be,Le)},annotate:(be,Le)=>{g.lookup(be).each(Ke=>{w1(r,be,Ke,Le)})},annotationChanged:(be,Le)=>{B.addListener(be,Le)},remove:be=>{ev(r,Y.some(be)).each(({elements:Le})=>{const Ke=r.selection.getBookmark();oe(Le),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Le=r.selection.getBookmark();Ge(nv(r,be),(Ke,ut)=>{oe(Ke)}),r.selection.moveToBookmark(Le)},getAll:be=>{const Le=nv(r,be);return ht(Le,Ke=>ye(Ke,ut=>ut.dom))}}},Pg=r=>({getBookmark:U(LC,r),moveToBookmark:U(kv,r)});Pg.isBookmarkNode=pm;const z3=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>cv(H,r,g)),JM=(r,g)=>r.dispatch("PreProcess",g),N3=(r,g)=>r.dispatch("PostProcess",g),F3=r=>{r.dispatch("remove")},eE=r=>{r.dispatch("detach")},tE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},nE=(r,g,B,H,oe)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:oe})},rE=(r,g,B,H,oe)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:oe})},$3=r=>{r.dispatch("PreInit")},UC=r=>{r.dispatch("PostRender")},oE=r=>{r.dispatch("Init")},V3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},mh=(r,g,B)=>{r.dispatch(g,B)},Jm=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},mm=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},U3=(r,g)=>r.dispatch("BeforeSetContent",g),Pw=(r,g)=>r.dispatch("SetContent",g),MD=(r,g)=>r.dispatch("BeforeGetContent",g),Rw=(r,g)=>r.dispatch("GetContent",g),iE=(r,g)=>{r.dispatch("AutocompleterStart",g)},jC=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},QC=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},HC=r=>{r.dispatch("AutocompleterEnd")},aE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),ZC=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),j3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),qC=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Jo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Jo.metaKeyPressed(r),metaKeyPressed:r=>Nr.os.isMacOS()||Nr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},gm="data-mce-selected",WC="table,img,figure.image,hr,video,span.mce-preview-object,details",gk=Math.abs,Lw=Math.round,Kb={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},vk=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Iw=(r,g)=>{const B=g.dom,H=g.getDoc(),oe=document,be=g.getBody();let Le,Ke,ut,At,nn,un,yn,Qn,rr,Wn,ur,Tr,Wr,Qr,lo,Zo,li;const Mi=Ci=>P(Ci)&&(Jn(Ci)||B.is(Ci,"figure.image")),Co=Ci=>Gr(Ci)||B.hasClass(Ci,"mce-preview-object"),yo=(Ci,ms)=>{if(vk(Ci)){const Es=Ci.touches[0];return Mi(Ci.target)&&!z3(Es.clientX,Es.clientY,ms)}else return Mi(Ci.target)&&!z3(Ci.clientX,Ci.clientY,ms)},Vo=Ci=>{const ms=Ci.target;yo(Ci,g.selection.getRng())&&!Ci.isDefaultPrevented()&&g.selection.select(ms)},Fi=Ci=>B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?[Ci,Ci.firstElementChild]:B.is(Ci,"figure.image")?[Ci.querySelector("img")]:[Ci],la=Ci=>{const ms=Md(g);return!ms||Ci.getAttribute("data-mce-resize")==="false"||Ci===g.getBody()?!1:B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?yd(_r.fromDom(Ci.firstElementChild),ms):yd(_r.fromDom(Ci),ms)},bs=(Ci,ms)=>{if(Co(ms))return Ci.create("img",{src:Nr.transparentSrc});if(dt(ms)){const Bd=Br(At.name,"n")?Ye:Je,Cl=ms.cloneNode(!0);return Bd(Ci.select("tr",Cl)).each(dd=>{const z0=Ci.select("td,th",dd);Ci.setStyle(dd,"height",null),ve(z0,$v=>Ci.setStyle($v,"height",null))}),Cl}else return ms.cloneNode(!0)},Ms=(Ci,ms,Es)=>{if(P(Es)){const Bd=Fi(Ci);ve(Bd,Cl=>{Cl.style[ms]||!g.schema.isValid(Cl.nodeName.toLowerCase(),ms)?B.setStyle(Cl,ms,Es):B.setAttrib(Cl,ms,""+Es)})}},wl=(Ci,ms,Es)=>{Ms(Ci,"width",ms),Ms(Ci,"height",Es)},Vl=Ci=>{let ms,Es,Bd,Cl,dd;ms=Ci.screenX-un,Es=Ci.screenY-yn,Qr=ms*At[2]+Wn,lo=Es*At[3]+ur,Qr=Qr<5?5:Qr,lo=lo<5?5:lo,(Mi(Le)||Co(Le))&&m1(g)!==!1?Bd=!Jo.modifierPressed(Ci):Bd=Jo.modifierPressed(Ci),Bd&&(gk(ms)>gk(Es)?(lo=Lw(Qr*Tr),Qr=Lw(lo/Tr)):(Qr=Lw(lo/Tr),lo=Lw(Qr*Tr))),wl(Ke,Qr,lo),Cl=At.startPos.x+ms,dd=At.startPos.y+Es,Cl=Cl>0?Cl:0,dd=dd>0?dd:0,B.setStyles(ut,{left:Cl,top:dd,display:"block"}),ut.innerHTML=Qr+" × "+lo,At[2]<0&&Ke.clientWidth<=Qr&&B.setStyle(Ke,"left",Qn+(Wn-Qr)),At[3]<0&&Ke.clientHeight<=lo&&B.setStyle(Ke,"top",rr+(ur-lo)),ms=be.scrollWidth-Zo,Es=be.scrollHeight-li,ms+Es!==0&&B.setStyles(ut,{left:Cl-ms,top:dd-Es}),Wr||(nE(g,Le,Wn,ur,"corner-"+At.name),Wr=!0)},Uu=()=>{const Ci=Wr;Wr=!1,Ci&&(Ms(Le,"width",Qr),Ms(Le,"height",lo)),B.unbind(H,"mousemove",Vl),B.unbind(H,"mouseup",Uu),oe!==H&&(B.unbind(oe,"mousemove",Vl),B.unbind(oe,"mouseup",Uu)),B.remove(Ke),B.remove(ut),B.remove(nn),Wf(Le),Ci&&(rE(g,Le,Qr,lo,"corner-"+At.name),B.setAttrib(Le,"style",B.getAttrib(Le,"style"))),g.nodeChanged()},Wf=Ci=>{Ti();const ms=B.getPos(Ci,be),Es=ms.x,Bd=ms.y,Cl=Ci.getBoundingClientRect(),dd=Cl.width||Cl.right-Cl.left,z0=Cl.height||Cl.bottom-Cl.top;Le!==Ci&&(vi(),Le=Ci,Qr=lo=0);const $v=g.dispatch("ObjectSelected",{target:Ci});la(Ci)&&!$v.isDefaultPrevented()?Ge(Kb,(Cp,Om)=>{const Hg=Zg=>{const ca=Fi(Le)[0];un=Zg.screenX,yn=Zg.screenY,Wn=ca.clientWidth,ur=ca.clientHeight,Tr=ur/Wn,At=Cp,At.name=Om,At.startPos={x:dd*Cp[0]+Es,y:z0*Cp[1]+Bd},Zo=be.scrollWidth,li=be.scrollHeight,nn=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(nn,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=bs(B,Le),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Es,top:Bd,margin:0}),wl(Ke,dd,z0),Ke.removeAttribute(gm),be.appendChild(Ke),B.bind(H,"mousemove",Vl),B.bind(H,"mouseup",Uu),oe!==H&&(B.bind(oe,"mousemove",Vl),B.bind(oe,"mouseup",Uu)),ut=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Wn+" × "+ur)};let Sm=B.get("mceResizeHandle"+Om);Sm&&B.remove(Sm),Sm=B.add(be,"div",{id:"mceResizeHandle"+Om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Om+"-resize; margin:0; padding:0"}),B.bind(Sm,"mousedown",Zg=>{Zg.stopImmediatePropagation(),Zg.preventDefault(),Hg(Zg)}),Cp.elm=Sm,B.setStyles(Sm,{left:dd*Cp[0]+Es-Sm.offsetWidth/2,top:z0*Cp[1]+Bd-Sm.offsetHeight/2})}):vi(!1)},ic=fy(Wf,0),vi=(Ci=!0)=>{ic.cancel(),Ti(),Le&&Ci&&Le.removeAttribute(gm),Ge(Kb,(ms,Es)=>{const Bd=B.get("mceResizeHandle"+Es);Bd&&(B.unbind(Bd),B.remove(Bd))})},na=(Ci,ms)=>B.isChildOf(Ci,ms),ol=Ci=>{if(Wr||g.removed||g.composing)return;const ms=Ci.type==="mousedown"?Ci.target:r.getNode(),Es=bu(_r.fromDom(ms),WC).map(Cl=>Cl.dom).filter(Cl=>B.isEditable(Cl.parentElement)||Cl.nodeName==="IMG"&&B.isEditable(Cl)).getOrUndefined(),Bd=P(Es)?B.getAttrib(Es,gm,"1"):"1";if(ve(B.select(`img[${gm}],hr[${gm}]`),Cl=>{Cl.removeAttribute(gm)}),P(Es)&&na(Es,be)&&g.hasFocus()){pa();const Cl=r.getStart(!0);if(na(Cl,Es)&&na(r.getEnd(!0),Es)){B.setAttrib(Es,gm,Bd),ic.throttle(Es);return}}vi()},Ti=()=>{Ge(Kb,Ci=>{Ci.elm&&(B.unbind(Ci.elm),delete Ci.elm)})},pa=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{pa(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ol),g.on("keyup compositionend",Ci=>{Le&&Le.nodeName==="TABLE"&&ol(Ci)}),g.on("hide blur",vi),g.on("contextmenu longpress",Vo,!0)}),g.on("remove",Ti),{isResizable:la,showResizeRect:Wf,hideResizeRect:vi,updateResizeRect:ol,destroy:()=>{ic.cancel(),Le=Ke=nn=null}}},YC=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},sE=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},yk=(r,g,B)=>{const H=r.document.createRange();return YC(H,g),sE(H,B),H},Dw=(r,g,B,H,oe)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,oe),be},Iy=kl.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),XC=(r,g,B)=>g(_r.fromDom(B.startContainer),B.startOffset,_r.fromDom(B.endContainer),B.endOffset),GC=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:_t(()=>yk(r,B,H)),rtl:_t(()=>Y.some(yk(r,H,B)))}),exact:(B,H,oe,be)=>({ltr:_t(()=>Dw(r,B,H,oe,be)),rtl:_t(()=>Y.some(Dw(r,oe,be,B,H)))})}),lE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(oe=>oe.collapsed===!1).map(oe=>Iy.rtl(_r.fromDom(oe.endContainer),oe.endOffset,_r.fromDom(oe.startContainer),oe.startOffset)).getOrThunk(()=>XC(r,Iy.ltr,B)):XC(r,Iy.ltr,B)},bk=(r,g)=>{const B=GC(r,g);return lE(r,B)};Iy.ltr,Iy.rtl;const Qp={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},Zh=(r,g,B)=>{var H;return Y.from((H=r.caretPositionFromPoint)===null||H===void 0?void 0:H.call(r,g,B)).bind(oe=>{if(oe.offsetNode===null)return Y.none();const be=r.createRange();return be.setStart(oe.offsetNode,oe.offset),be.collapse(),Y.some(be)})},M2=(r,g,B)=>{var H;return Y.from((H=r.caretRangeFromPoint)===null||H===void 0?void 0:H.call(r,g,B))},ED=(r,g,B)=>r.caretPositionFromPoint?Zh(r,g,B):r.caretRangeFromPoint?M2(r,g,B):Y.none(),uE=(r,g,B)=>{const H=r.document;return ED(H,g,B).map(oe=>Qp.create(_r.fromDom(oe.startContainer),oe.startOffset,_r.fromDom(oe.endContainer),oe.endOffset))},xk=kl.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Xs=(r,g,B,H)=>r.fold(g,B,H),fE=r=>r.fold(Q,Q,Q),dE=xk.before,KC=xk.on,PD=xk.after,O1={before:dE,on:KC,after:PD,cata:Xs,getStart:fE},Q3=kl.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Q3.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>_r.fromDom(g.startContainer),relative:(g,B)=>O1.getStart(g),exact:(g,B,H,oe)=>g}),JC=Q3.domRange,Bw=Q3.relative,_k=Q3.exact,e6=r=>{const g=pE(r);return yu(g)},RD=Qp.create,E2={domRange:JC,relative:Bw,exact:_k,exactFromRange:hE,getWin:e6,range:RD},wk=(r,g)=>{const B=ma(r);return B==="input"?O1.after(r):ce(["br","img"],B)?g===0?O1.before(r):O1.after(r):O1.on(r,g)},LD=(r,g)=>{const B=r.fold(O1.before,wk,O1.after),H=g.fold(O1.before,wk,O1.after);return E2.relative(B,H)},t6=(r,g,B,H)=>{const oe=wk(r,g),be=wk(B,H);return E2.relative(oe,be)},mE=r=>r.match({domRange:g=>{const B=_r.fromDom(g.startContainer),H=_r.fromDom(g.endContainer);return t6(B,g.startOffset,H,g.endOffset)},relative:LD,exact:t6}),he=(r,g)=>{const H=(g||document).createDocumentFragment();return ve(r,oe=>{H.appendChild(oe.dom)}),_r.fromDom(H)},Ce=r=>{const g=E2.getWin(r).dom,B=(oe,be,Le,Ke)=>Dw(g,oe,be,Le,Ke),H=mE(r);return bk(g,H).match({ltr:B,rtl:B})},Xe=(r,g,B)=>uE(r,g,B),lt=(r,g,B)=>{const H=yu(_r.fromDom(B));return Xe(H.dom,r,g).map(oe=>{const be=B.createRange();return be.setStart(oe.start.dom,oe.soffset),be.setEnd(oe.finish.dom,oe.foffset),be}).getOrUndefined()},Ct=(r,g)=>P(r)&&P(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,Wt=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},kn=(r,g,B)=>Wt(r,g,B)!==null,Vn=(r,g,B)=>kn(r,g,H=>H.nodeName===B),or=(r,g)=>op(r)&&!kn(r,g,Xm),Mr=(r,g,B)=>{const H=g.parentNode;if(H){const oe=new Xl(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=oe[B?"prev":"next"]();)if(gn(be))return!0}return!1},no=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},ti=(r,g)=>{let B=g;for(;B&&B!==r;){if(In(B))return!0;B=B.parentNode}return!1},ki=(r,g,B,H,oe)=>{const be=r.getRoot(),Le=r.schema.getNonEmptyElements(),Ke=oe.parentNode;let ut,At;if(!Ke)return Y.none();const nn=r.getParent(Ke,r.isBlock)||be;if(H&&gn(oe)&&g&&r.isEmpty(nn))return Y.some(vo(Ke,r.nodeIndex(oe)));const un=new Xl(oe,nn);for(;At=un[H?"prev":"next"]();){if(r.getContentEditableParent(At)==="false"||or(At,be))return Y.none();if(Mt(At)&&At.data.length>0)return Vn(At,be,"A")?Y.none():Y.some(vo(At,H?At.data.length:0));if(r.isBlock(At)||Le[At.nodeName.toLowerCase()])return Y.none();ut=At}return bn(ut)?Y.none():B&&ut?Y.some(vo(ut,0)):Y.none()},xi=(r,g,B,H)=>{const oe=r.getRoot();let be,Le=!1,Ke=B?H.startContainer:H.endContainer,ut=B?H.startOffset:H.endOffset;const At=ne(Ke)&&ut===Ke.childNodes.length,nn=r.schema.getNonEmptyElements();let un=B;if(op(Ke))return Y.none();if(ne(Ke)&&ut>Ke.childNodes.length-1&&(un=!1),vn(Ke)&&(Ke=oe,ut=0),Ke===oe){if(un&&(be=Ke.childNodes[ut>0?ut-1:0],be&&(op(be)||nn[be.nodeName]||dt(be))))return Y.none();if(Ke.hasChildNodes()){if(ut=Math.min(!un&&ut>0?ut-1:ut,Ke.childNodes.length-1),Ke=Ke.childNodes[ut],ut=Mt(Ke)&&At?Ke.data.length:0,!g&&Ke===oe.lastChild&&dt(Ke)||ti(oe,Ke)||op(Ke)||po(Ke))return Y.none();if(Ke.hasChildNodes()&&!dt(Ke)){be=Ke;const yn=new Xl(Ke,oe);do{if(In(be)||op(be)){Le=!1;break}if(Mt(be)&&be.data.length>0){ut=un?0:be.data.length,Ke=be,Le=!0;break}if(nn[be.nodeName.toLowerCase()]&&!Pr(be)){ut=r.nodeIndex(be),Ke=be.parentNode,un||ut++,Le=!0;break}}while(be=un?yn.next():yn.prev())}}}return g&&(Mt(Ke)&&ut===0&&ki(r,At,g,!0,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),ne(Ke)&&(be=Ke.childNodes[ut],be||(be=Ke.childNodes[ut-1]),be&&gn(be)&&!no(be,"A")&&!Mr(r,be,!1)&&!Mr(r,be,!0)&&ki(r,At,g,!0,be).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}))),un&&!g&&Mt(Ke)&&ut===Ke.data.length&&ki(r,At,g,!1,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),Le&&Ke?Y.some(vo(Ke,ut)):Y.none()},fi=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),oe=vo.fromRangeStart(g);return xi(r,B,!0,H).each(be=>{(!B||!vo.isAbove(oe,be))&&H.setStart(be.container(),be.offset())}),B||xi(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),Ct(g,H)?Y.none():Y.some(H)},Vi=(r,g)=>r.splitText(g),Xo=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,oe=r.endOffset;if(g===H&&Mt(g)){if(B>0&&BB){oe=oe-B;const be=Vi(H,oe).previousSibling;g=H=be,oe=be.data.length,B=0}else oe=0}else if(Mt(g)&&B>0&&B0&&oe({walk:(be,Le)=>Ew(r,be,Le),split:Xo,expand:(be,Le={type:"word"})=>{if(Le.type==="word"){const Ke=Xb(r,be,[{inline:"span"}]),ut=r.createRng();return ut.setStart(Ke.startContainer,Ke.startOffset),ut.setEnd(Ke.endContainer,Ke.endOffset),ut}return be},normalize:be=>fi(r,be).fold(re,Le=>(be.setStart(Le.startContainer,Le.startOffset),be.setEnd(Le.endContainer,Le.endOffset),!0))});oi.compareRanges=Ct,oi.getCaretRangeFromPoint=lt,oi.getSelectedNode=Ah,oi.getNode=Fp;const Pa=((r,g)=>{const B=(Ke,ut)=>{if(!L(ut)&&!ut.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ut);const At=Ke.dom;zc(At)&&(At.style[r]=ut+"px")},H=Ke=>{const ut=g(Ke);if(ut<=0||ut===null){const At=rs(Ke,r);return parseFloat(At)||0}return ut},oe=H,be=(Ke,ut)=>Ie(ut,(At,nn)=>{const un=rs(Ke,nn),yn=un===void 0?0:parseInt(un,10);return isNaN(yn)?At:At+yn},0);return{set:B,get:H,getOuter:oe,aggregate:be,max:(Ke,ut,At)=>{const nn=be(Ke,At);return ut>nn?ut-nn:0}}})("height",r=>{const g=r.dom;return lf(r)?g.getBoundingClientRect().height:g.offsetHeight}),ta=r=>Pa.get(r),nu=()=>_r.fromDom(document),Ll=(r,g)=>r.view(g).fold($([]),H=>{const oe=r.owner(H),be=Ll(r,oe);return[H].concat(be)}),$u=(r,g)=>{const B=g.owner(r);return Ll(g,B)};var Jb=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(_r.fromDom)},owner:r=>$f(r)});const ex=r=>{const g=nu(),B=Ni(g),H=$u(r,Jb),oe=ya(r),be=Pe(H,(Le,Ke)=>{const ut=ya(Ke);return{left:Le.left+ut.left,top:Le.top+ut.top}},{left:0,top:0});return pr(be.left+oe.left+B.left,be.top+oe.top+B.top)},Tl=r=>ma(r)==="textarea",Ld=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),sp=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Rg=(r,g)=>{const B=vc(r);if(B.length===0||Tl(r))return{element:r,offset:g};if(g{const B=Bi(r),H=ta(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},P2=(r,g)=>{const B=Rg(r,g),H=_r.fromHtml(''+Ou+"");return xc(B.element,H),ym(H,()=>hs(H))},Wa=r=>ym(_r.fromDom(r),k),bm=(r,g,B,H)=>{el(r,(oe,be)=>S1(r,g,B,H),B)},Lg=(r,g,B,H,oe)=>{const be={elm:H.element.dom,alignToTop:oe};if(Ld(r,be))return;const Le=Ni(g).top;B(r,g,Le,H,oe),sp(r,be)},S1=(r,g,B,H)=>{const oe=_r.fromDom(r.getBody()),be=_r.fromDom(r.getDoc());zl(oe);const Le=P2(_r.fromDom(B.startContainer),B.startOffset);Lg(r,be,g,Le,H),Le.cleanup()},Zf=(r,g,B,H)=>{const oe=_r.fromDom(r.getDoc());Lg(r,oe,B,Wa(g),H)},el=(r,g,B)=>{const H=B.startContainer,oe=B.startOffset,be=B.endContainer,Le=B.endOffset;g(_r.fromDom(H),_r.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,oe),Ke.setEnd(be,Le),r.selection.setRng(B)},Ok=(r,g,B,H,oe)=>{const be=g.pos;if(H)Qi(be.left,be.top,oe);else{const Le=be.top-B+g.height;Qi(-r.getBody().getBoundingClientRect().left,Le,oe)}},Sk=(r,g,B,H,oe,be)=>{const Le=H+B,Ke=oe.pos.top,ut=oe.bottom,At=ut-Ke>=H;KeLe?Ok(r,oe,H,At?be!==!1:be===!0,g):ut>Le&&!At&&Ok(r,oe,H,be===!0,g)},H3=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe)},n6=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe);const Le=ex(H.element),Ke=Wu(window);Le.topKe.bottom&&Ws(H.element,oe===!0)},Mv=(r,g,B)=>bm(r,H3,g,B),tx=(r,g,B)=>Zf(r,g,H3,B),R2=(r,g,B)=>bm(r,n6,g,B),Fq=(r,g,B)=>Zf(r,g,n6,B),$q=(r,g,B)=>{(r.inline?tx:Fq)(r,g,B)},kk=(r,g,B)=>{(r.inline?Mv:R2)(r,g,B)},Z3=(r,g=!1)=>r.dom.focus({preventScroll:g}),zw=r=>{const g=Ac(r).dom;return r.dom===g.activeElement},gE=(r=nu())=>Y.from(r.dom.activeElement).map(_r.fromDom),ID=r=>gE(Ac(r)).filter(g=>r.dom.contains(g.dom)),DD=(r,g)=>{const B=Ml(g)?f0(g).length:vc(g).length+1;return r>B?B:r<0?0:r},Vq=r=>E2.range(r.start,DD(r.soffset,r.start),r.finish,DD(r.foffset,r.finish)),BD=(r,g)=>!le(g.dom)&&(El(r,g)||va(r,g)),vE=r=>g=>BD(r,g.start)&&BD(r,g.finish),afe=r=>r.inline||Nr.browser.isFirefox(),Uq=r=>E2.range(_r.fromDom(r.startContainer),r.startOffset,_r.fromDom(r.endContainer),r.endOffset),zD=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(Uq)},yE=r=>{const g=yu(r);return zD(g.dom).filter(vE(r))},bE=(r,g)=>Y.from(g).filter(vE(r)).map(Vq),xE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},Tk=r=>{const g=afe(r)?yE(_r.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},r6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>bE(_r.fromDom(r.getBody()),B)).bind(xE),ND=r=>{r6(r).each(g=>r.selection.setRng(g))},FD={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},$D=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),jq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Ig={setEditorTimeout:(r,g,B)=>$D(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=jq(()=>{r.removed?clearInterval(H):g()},B);return H}},VD=r=>r.type==="nodechange"&&r.selectionChange,UD=(r,g)=>{const B=()=>{g.throttle()};cc.DOM.bind(document,"mouseup",B),r.on("remove",()=>{cc.DOM.unbind(document,"mouseup",B)})},jD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},QD=(r,g)=>{jD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{VD(B)||Tk(r)})},Qq=r=>{const g=fy(()=>{Tk(r)},0);r.on("init",()=>{r.inline&&UD(r,g),QD(r,g)}),r.on("remove",()=>{g.cancel()})};let q3;const wE=cc.DOM,Hq=r=>ne(r)&&FD.isEditorUIElement(r),OE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},o6=(r,g)=>{const B=hu(r);return wE.getParent(g,oe=>Hq(oe)||(B?r.dom.is(oe,B):!1))!==null},SE=r=>{try{const g=Ac(_r.fromDom(r.getElement()));return gE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},Zq=(r,g)=>{const B=g.editor;Qq(B);const H=(oe,be)=>{if(u2(oe)&&oe.inline!==!0){const Le=_r.fromDom(oe.getContainer());be(Le,"tox-edit-focus")}};B.on("focusin",()=>{const oe=r.focusedEditor;OE(SE(B))&&H(B,Cu),oe!==B&&(oe&&oe.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:oe}),B.focus(!0))}),B.on("focusout",()=>{Ig.setEditorTimeout(B,()=>{const oe=r.focusedEditor;(!OE(SE(B))||oe!==B)&&H(B,Bu),!o6(B,SE(B))&&oe===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),q3||(q3=oe=>{const be=r.activeEditor;be&&ah(oe).each(Le=>{const Ke=Le;Ke.ownerDocument===document&&Ke!==document.body&&!o6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},wE.bind(document,"focusin",q3))},i6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&q3&&(wE.unbind(document,"focusin",q3),q3=null)},HD=r=>{r.on("AddEditor",U(Zq,r)),r.on("RemoveEditor",U(i6,r))},qq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),ZD=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="false")!==null,qD=r=>r.collapsed?Y.from(Fp(r.startContainer,r.startOffset)).map(_r.fromDom):Y.none(),Wq=(r,g)=>qD(g).bind(B=>J_(B)?Y.some(B):El(r,B)?Y.none():Y.some(r)),WD=(r,g)=>{Wq(_r.fromDom(r.getBody()),g).bind(B=>ph(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},a6=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},Yq=r=>zw(r)||ID(r).isSome(),Xq=r=>P(r.iframeElement)&&zw(_r.fromDom(r.iframeElement)),YD=r=>{const g=r.getBody();return g&&Yq(_r.fromDom(g))},XD=r=>{const g=Ac(_r.fromDom(r.getElement()));return gE(g).filter(B=>!OE(B.dom)&&o6(r,B.dom)).isSome()},nx=r=>r.inline?YD(r):Xq(r),GD=r=>nx(r)||XD(r),Gq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const oe=Le=>{r6(Le).each(Ke=>{Le.selection.setRng(Ke),H=Ke})};!nx(r)&&r.hasEditableRoot()&&oe(r);const be=qq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){ZD(r,be)||a6(B),a6(be),r.hasEditableRoot()||oe(r),WD(r,H),Ck(r);return}r.inline||(Nr.browser.isOpera()||a6(B),r.getWin().focus()),(Nr.browser.isFirefox()||r.inline)&&(a6(B),WD(r,H)),Ck(r)},Ck=r=>r.editorManager.setActive(r),Kq=(r,g)=>{r.removed||(g?Ck(r):Gq(r))},kE=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),TE=(r,g,B,H,oe)=>{const be=B?g.startContainer:g.endContainer,Le=B?g.startOffset:g.endOffset;return Y.from(be).map(_r.fromDom).map(Ke=>!H||!g.collapsed?gs(Ke,oe(Ke,Le)).getOr(Ke):Ke).bind(Ke=>Wl(Ke)?Y.some(Ke):jc(Ke).filter(Wl)).map(Ke=>Ke.dom).getOr(r)},CE=(r,g,B=!1)=>TE(r,g,!0,B,(H,oe)=>Math.min(Nu(H),oe)),KD=(r,g,B=!1)=>TE(r,g,!1,B,(H,oe)=>oe>0?oe-1:oe),JD=(r,g)=>{const B=r;for(;r&&Mt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},Jq=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const oe=g.startOffset,be=g.endOffset;let Le=g.commonAncestorContainer;g.collapsed||(B===H&&be-oe<2&&B.hasChildNodes()&&(Le=B.childNodes[oe]),Mt(B)&&Mt(H)&&(B.length===oe?B=JD(B.nextSibling,!0):B=B.parentNode,be===0?H=JD(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Le=B)));const Ke=Mt(Le)?Le.parentNode:Le;return V(Ke)?Ke:r},eW=(r,g,B,H)=>{const oe=[],be=r.getRoot(),Le=r.getParent(B||CE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||KD(be,g,g.collapsed),r.isBlock);if(Le&&Le!==be&&oe.push(Le),Le&&Ke&&Le!==Ke){let ut;const At=new Xl(Le,be);for(;(ut=At.next())&&ut!==Ke;)r.isBlock(ut)&&oe.push(ut)}return Ke&&Le!==Ke&&Ke!==be&&oe.push(Ke),oe},s6=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(oe=>{const be=r.nodeIndex(H),Le=r.createRng();return Le.setStart(oe,be),Le.setEnd(oe,be+1),B&&(ik(r,Le,H,!0),ik(r,Le,H,!1)),Le})),l6=(r,g)=>ye(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),eB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ak=(r,g,B)=>{const H=B?"lastChild":"firstChild",oe=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[oe];if(be)return be;for(let Le=r.parent;Le&&Le!==g;Le=Le.parent)if(be=Le[oe],be)return be}},tB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!lc(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},nB=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class Hp{static create(g,B){const H=new Hp(g,eB[g]||1);return B&&Ge(B,(oe,be)=>{H.attr(be,oe)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return P(g)&&Ge(g,(be,Le)=>{H.attr(Le,be)}),H;const oe=H.attributes;if(oe){if(B!==void 0){if(B===null){if(g in oe.map){delete oe.map[g];let be=oe.length;for(;be--;)if(oe[be].name===g)return oe.splice(be,1),H}return H}if(g in oe.map){let be=oe.length;for(;be--;)if(oe[be].name===g){oe[be].value=B;break}}else oe.push({name:g,value:B});return oe.map[g]=B,H}return oe.map[g]}}clone(){const g=this,B=new Hp(g.name,g.type),H=g.attributes;if(H){const oe=[];oe.map={};for(let be=0,Le=H.length;bev(r.nodeValue)&&r.nodeValue.includes(Ou),oB=r=>`${r.length===0?"":`${ye(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,nW=(r,g)=>g.querySelectorAll(oB(r)),iB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>rB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),aB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(rB(g)){const B=g.parentNode;return B&&Ot(tW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),rW=r=>iB(r).nextNode()!==null,oW=r=>aB(r).nextNode()!==null,iW=(r,g)=>g.querySelector(oB(r))!==null,aW=(r,g)=>{ve(nW(r,g),B=>{const H=_r.fromDom(B);gu(H,"data-mce-bogus")==="all"?hs(H):ve(r,oe=>{Dc(H,oe)&&tc(H,oe)})})},Mk=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},sB=I(Mk,iB),lB=I(Mk,aB),cB=(r,g)=>{const B=[{condition:U(iW,g),action:U(aW,g)},{condition:rW,action:sB},{condition:oW,action:lB}];let H=r,oe=!1;return ve(B,({condition:be,action:Le})=>{be(H)&&(oe||(H=r.cloneNode(!0),oe=!0),Le(H))}),H},uB=r=>{const g=Pl(r,"[data-mce-bogus]");ve(g,B=>{gu(B,"data-mce-bogus")==="all"?hs(B):Th(B)?(xc(B,_r.fromText(pl)),hs(B)):Mc(B)})},fB=r=>{const g=Pl(r,"input");ve(g,B=>{tc(B,"name")})},sW=(r,g)=>{const B=tu(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
    |)<\\/${B}>[\r +Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un,{constructors:g,constructor:Le,params:ut})}}}}),B}};kl.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Fc=r=>{const g=[],B=[];return ve(r,H=>{H.fold(oe=>{g.push(oe)},oe=>{B.push(oe)})}),{errors:g,values:B}},qa=r=>r.type==="inline-command"||r.type==="inline-format",Sc=r=>r.type==="block-command"||r.type==="block-format",pc=(r,g)=>(r.type==="block-command"||r.type==="block-format")&&r.trigger===g,sd=r=>{var g;const B=oe=>Vs.error({message:oe,pattern:r}),H=(oe,be,Le)=>{if(r.format!==void 0){let Ke;if(C(r.format)){if(!Oe(r.format,v))return B(oe+" pattern has non-string items in the `format` array");Ke=r.format}else if(v(r.format))Ke=[r.format];else return B(oe+" pattern has non-string `format` parameter");return Vs.value(be(Ke))}else return r.cmd!==void 0?v(r.cmd)?Vs.value(Le(r.cmd,r.value)):B(oe+" pattern has non-string `cmd` parameter"):B(oe+" pattern is missing both `format` and `cmd` parameters")};if(!_(r))return B("Raw pattern is not an object");if(!v(r.start))return B("Raw pattern is missing `start` parameter");if(r.end!==void 0){if(!v(r.end))return B("Inline pattern has non-string `end` parameter");if(r.start.length===0&&r.end.length===0)return B("Inline pattern has empty `start` and `end` parameters");let oe=r.start,be=r.end;return be.length===0&&(be=oe,oe=""),H("Inline",Le=>({type:"inline-format",start:oe,end:be,format:Le}),(Le,Ke)=>({type:"inline-command",start:oe,end:be,cmd:Le,value:Ke}))}else{if(r.replacement!==void 0)return v(r.replacement)?r.start.length===0?B("Replacement pattern has empty `start` parameter"):Vs.value({type:"inline-command",start:"",end:r.start,cmd:"mceInsertContent",value:r.replacement}):B("Replacement pattern has non-string `replacement` parameter");{const oe=(g=r.trigger)!==null&&g!==void 0?g:"space";return r.start.length===0?B("Block pattern has empty `start` parameter"):H("Block",be=>({type:"block-format",start:r.start,format:be[0],trigger:oe}),(be,Le)=>({type:"block-command",start:r.start,cmd:be,value:Le,trigger:oe}))}}},ld=r=>Te(r,Sc),cd=r=>Te(r,qa),Cf=(r,g)=>({inlinePatterns:cd(r),blockPatterns:ld(r),dynamicPatternsLookup:g}),xl=(r,g)=>({...r,blockPatterns:Te(r.blockPatterns,B=>pc(B,g))}),eu=r=>{const g=Fc(ye(r,sd));return ve(g.errors,B=>console.error(B.message,B.pattern)),g.values},Td=r=>g=>{const B=r(g);return eu(B)},Af=zn().deviceType,jf=Af.isTouch(),Us=cc.DOM,_l=r=>{const g=r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(",");return Ie(g,(B,H)=>{const oe=H.split("="),be=oe[0],Le=oe.length>1?oe[1]:be;return B[qn(be)]=qn(Le),B},{})},fu=r=>p(r,RegExp),ni=r=>g=>g.options.get(r),Wc=r=>v(r)||_(r),Yc=(r,g="")=>B=>{const H=v(B);if(H)if(B.indexOf("=")!==-1){const oe=_l(B);return{value:Et(oe,r.id).getOr(g),valid:H}}else return{value:B,valid:H};else return{valid:!1,message:"Must be a string."}},$l=r=>{const g=r.options.register;g("id",{processor:"string",default:r.id}),g("selector",{processor:"string"}),g("target",{processor:"object"}),g("suffix",{processor:"string"}),g("cache_suffix",{processor:"string"}),g("base_url",{processor:"string"}),g("referrer_policy",{processor:"string",default:""}),g("language_load",{processor:"boolean",default:!0}),g("inline",{processor:"boolean",default:!1}),g("iframe_attrs",{processor:"object",default:{}}),g("doctype",{processor:"string",default:""}),g("document_base_url",{processor:"string",default:r.documentBaseUrl}),g("body_id",{processor:Yc(r,"tinymce"),default:"tinymce"}),g("body_class",{processor:Yc(r),default:""}),g("content_security_policy",{processor:"string",default:""}),g("br_in_pre",{processor:"boolean",default:!0}),g("forced_root_block",{processor:B=>{const H=v(B)&&lr(B);return H?{value:B,valid:H}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),g("forced_root_block_attrs",{processor:"object",default:{}}),g("newline_behavior",{processor:B=>{const H=ce(["block","linebreak","invert","default"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),g("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),g("no_newline_selector",{processor:"string",default:""}),g("keep_styles",{processor:"boolean",default:!0}),g("end_container_on_empty_block",{processor:B=>R(B)?{valid:!0,value:B}:v(B)?{valid:!0,value:B}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),g("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),g("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),g("font_size_classes",{processor:"string",default:""}),g("automatic_uploads",{processor:"boolean",default:!0}),g("images_reuse_filename",{processor:"boolean",default:!1}),g("images_replace_blob_uris",{processor:"boolean",default:!0}),g("icons",{processor:"string",default:""}),g("icons_url",{processor:"string",default:""}),g("images_upload_url",{processor:"string",default:""}),g("images_upload_base_path",{processor:"string",default:""}),g("images_upload_credentials",{processor:"boolean",default:!1}),g("images_upload_handler",{processor:"function"}),g("language",{processor:"string",default:"en"}),g("language_url",{processor:"string",default:""}),g("entity_encoding",{processor:"string",default:"named"}),g("indent",{processor:"boolean",default:!0}),g("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),g("indent_use_margin",{processor:"boolean",default:!1}),g("indentation",{processor:"string",default:"40px"}),g("content_css",{processor:B=>{const H=B===!1||v(B)||D(B,v);return H?v(B)?{value:ye(B.split(","),qn),valid:H}:C(B)?{value:B,valid:H}:B===!1?{value:[],valid:H}:{value:B,valid:H}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:ip(r)?[]:["default"]}),g("content_style",{processor:"string"}),g("content_css_cors",{processor:"boolean",default:!1}),g("font_css",{processor:B=>{const H=v(B)||D(B,v);return H?{value:C(B)?B:ye(B.split(","),qn),valid:H}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),g("inline_boundaries",{processor:"boolean",default:!0}),g("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),g("object_resizing",{processor:B=>{const H=R(B)||v(B);return H?B===!1||Af.isiPhone()||Af.isiPad()?{value:"",valid:H}:{value:B===!0?"table,img,figure.image,div,video,iframe":B,valid:H}:{valid:!1,message:"Must be boolean or a string"}},default:!jf}),g("resize_img_proportional",{processor:"boolean",default:!0}),g("event_root",{processor:"string"}),g("service_message",{processor:"string"}),g("theme",{processor:B=>B===!1||v(B)||A(B),default:"silver"}),g("theme_url",{processor:"string"}),g("formats",{processor:"object"}),g("format_empty_lines",{processor:"boolean",default:!1}),g("format_noneditable_selector",{processor:"string",default:""}),g("preview_styles",{processor:B=>{const H=B===!1||v(B);return H?{value:B===!1?"":B,valid:H}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),g("custom_ui_selector",{processor:"string",default:""}),g("hidden_input",{processor:"boolean",default:!0}),g("submit_patch",{processor:"boolean",default:!0}),g("encoding",{processor:"string"}),g("add_form_submit_trigger",{processor:"boolean",default:!0}),g("add_unload_trigger",{processor:"boolean",default:!0}),g("custom_undo_redo_levels",{processor:"number",default:0}),g("disable_nodechange",{processor:"boolean",default:!1}),g("readonly",{processor:"boolean",default:!1}),g("editable_root",{processor:"boolean",default:!0}),g("plugins",{processor:"string[]",default:[]}),g("external_plugins",{processor:"object"}),g("forced_plugins",{processor:"string[]"}),g("model",{processor:"string",default:r.hasPlugin("rtc")?"plugin":"dom"}),g("model_url",{processor:"string"}),g("block_unsupported_drop",{processor:"boolean",default:!0}),g("visual",{processor:"boolean",default:!0}),g("visual_table_class",{processor:"string",default:"mce-item-table"}),g("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),g("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),g("setup",{processor:"function"}),g("init_instance_callback",{processor:"function"}),g("url_converter",{processor:"function",default:r.convertURL}),g("url_converter_scope",{processor:"object",default:r}),g("urlconverter_callback",{processor:"function"}),g("allow_conditional_comments",{processor:"boolean",default:!1}),g("allow_html_data_urls",{processor:"boolean",default:!1}),g("allow_svg_data_urls",{processor:"boolean"}),g("allow_html_in_named_anchor",{processor:"boolean",default:!1}),g("allow_script_urls",{processor:"boolean",default:!1}),g("allow_unsafe_link_target",{processor:"boolean",default:!1}),g("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),g("fix_list_elements",{processor:"boolean",default:!1}),g("preserve_cdata",{processor:"boolean",default:!1}),g("remove_trailing_brs",{processor:"boolean",default:!0}),g("pad_empty_with_br",{processor:"boolean",default:!1}),g("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),g("element_format",{processor:"string",default:"html"}),g("entities",{processor:"string"}),g("schema",{processor:"string",default:"html5"}),g("convert_urls",{processor:"boolean",default:!0}),g("relative_urls",{processor:"boolean",default:!0}),g("remove_script_host",{processor:"boolean",default:!0}),g("custom_elements",{processor:Wc}),g("extended_valid_elements",{processor:"string"}),g("invalid_elements",{processor:"string"}),g("invalid_styles",{processor:Wc}),g("valid_children",{processor:"string"}),g("valid_classes",{processor:Wc}),g("valid_elements",{processor:"string"}),g("valid_styles",{processor:Wc}),g("verify_html",{processor:"boolean",default:!0}),g("auto_focus",{processor:B=>v(B)||B===!0}),g("browser_spellcheck",{processor:"boolean",default:!1}),g("protect",{processor:"array"}),g("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),g("deprecation_warnings",{processor:"boolean",default:!0}),g("a11y_advanced_options",{processor:"boolean",default:!1}),g("api_key",{processor:"string"}),g("license_key",{processor:"string"}),g("paste_block_drop",{processor:"boolean",default:!1}),g("paste_data_images",{processor:"boolean",default:!0}),g("paste_preprocess",{processor:"function"}),g("paste_postprocess",{processor:"function"}),g("paste_webkit_styles",{processor:"string",default:"none"}),g("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),g("paste_merge_formats",{processor:"boolean",default:!0}),g("smart_paste",{processor:"boolean",default:!0}),g("paste_as_text",{processor:"boolean",default:!1}),g("paste_tab_spaces",{processor:"number",default:4}),g("text_patterns",{processor:B=>D(B,_)||B===!1?{value:eu(B===!1?[]:B),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1",trigger:"space"},{start:"##",format:"h2",trigger:"space"},{start:"###",format:"h3",trigger:"space"},{start:"####",format:"h4",trigger:"space"},{start:"#####",format:"h5",trigger:"space"},{start:"######",format:"h6",trigger:"space"},{start:"1.",cmd:"InsertOrderedList",trigger:"space"},{start:"*",cmd:"InsertUnorderedList",trigger:"space"},{start:"-",cmd:"InsertUnorderedList",trigger:"space"},{start:">",cmd:"mceBlockQuote",trigger:"space"},{start:"---",cmd:"InsertHorizontalRule",trigger:"space"}]}),g("text_patterns_lookup",{processor:B=>A(B)?{value:Td(B),valid:!0}:{valid:!1,message:"Must be a single function"},default:B=>[]}),g("noneditable_class",{processor:"string",default:"mceNonEditable"}),g("editable_class",{processor:"string",default:"mceEditable"}),g("noneditable_regexp",{processor:B=>D(B,fu)?{value:B,valid:!0}:fu(B)?{value:[B],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),g("table_tab_navigation",{processor:"boolean",default:!0}),g("highlight_on_focus",{processor:"boolean",default:!0}),g("xss_sanitization",{processor:"boolean",default:!0}),g("details_initial_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("details_serialized_state",{processor:B=>{const H=ce(["inherited","collapsed","expanded"],B);return H?{value:B,valid:H}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),g("init_content_sync",{processor:"boolean",default:!1}),g("newdocument_content",{processor:"string",default:""}),g("sandbox_iframes",{processor:"boolean",default:!0}),g("sandbox_iframes_exclusions",{processor:"string[]",default:["youtube.com","youtu.be","vimeo.com","player.vimeo.com","dailymotion.com","embed.music.apple.com","open.spotify.com","giphy.com","dai.ly","codepen.io"]}),g("convert_unsafe_embeds",{processor:"boolean",default:!0}),r.on("ScriptsLoaded",()=>{g("directionality",{processor:"string",default:ff.isRtl()?"rtl":void 0}),g("placeholder",{processor:"string",default:Us.getAttrib(r.getElement(),"placeholder")})})},Ru=ni("iframe_attrs"),Eh=ni("doctype"),mc=ni("document_base_url"),dh=ni("body_id"),hh=ni("body_class"),Qm=ni("content_security_policy"),Qf=ni("br_in_pre"),tu=ni("forced_root_block"),qd=ni("forced_root_block_attrs"),Cd=ni("newline_behavior"),d1=ni("br_newline_selector"),t2=ni("no_newline_selector"),gv=ni("keep_styles"),Lu=ni("end_container_on_empty_block"),$c=ni("automatic_uploads"),dl=ni("images_reuse_filename"),Mf=ni("images_replace_blob_uris"),du=ni("icons"),Iu=ni("icons_url"),vv=ni("images_upload_url"),h1=ni("images_upload_base_path"),n2=ni("images_upload_credentials"),by=ni("images_upload_handler"),p1=ni("content_css_cors"),b0=ni("referrer_policy"),Hm=ni("language"),yv=ni("language_url"),xy=ni("indent_use_margin"),x0=ni("indentation"),r2=ni("content_css"),Mb=ni("content_style"),Ad=ni("font_css"),_y=ni("directionality"),wy=ni("inline_boundaries_selector"),Md=ni("object_resizing"),m1=ni("resize_img_proportional"),_0=ni("placeholder"),um=ni("event_root"),Wd=ni("service_message"),w0=ni("theme"),Eb=ni("theme_url"),Oy=ni("model"),aw=ni("model_url"),Zm=ni("inline_boundaries"),sw=ni("formats"),Pb=ni("preview_styles"),t3=ni("format_empty_lines"),O0=ni("format_noneditable_selector"),hu=ni("custom_ui_selector"),ip=ni("inline"),$4=ni("hidden_input"),qm=ni("submit_patch"),lw=ni("add_form_submit_trigger"),cw=ni("add_unload_trigger"),o2=ni("custom_undo_redo_levels"),$p=ni("disable_nodechange"),Rb=ni("readonly"),Lb=ni("editable_root"),Sy=ni("content_css_cors"),bv=ni("plugins"),uw=ni("external_plugins"),fw=ni("block_unsupported_drop"),ud=ni("visual"),i2=ni("visual_table_class"),a2=ni("visual_anchor_class"),s2=ni("iframe_aria_text"),Ib=ni("setup"),n3=ni("init_instance_callback"),Ph=ni("urlconverter_callback"),Db=ni("auto_focus"),l2=ni("browser_spellcheck"),fm=ni("protect"),r3=ni("paste_block_drop"),xv=ni("paste_data_images"),g1=ni("paste_preprocess"),_v=ni("paste_postprocess"),wv=ni("newdocument_content"),ky=ni("paste_webkit_styles"),Ov=ni("paste_remove_styles_if_webkit"),dw=ni("paste_merge_formats"),o3=ni("smart_paste"),Bb=ni("paste_as_text"),hw=ni("paste_tab_spaces"),v1=ni("allow_html_data_urls"),c2=ni("text_patterns"),Wm=ni("text_patterns_lookup"),pw=ni("noneditable_class"),mw=ni("editable_class"),wp=ni("noneditable_regexp"),zb=ni("preserve_cdata"),u2=ni("highlight_on_focus"),Hf=ni("xss_sanitization"),V4=ni("init_content_sync"),ap=r=>r.options.isSet("text_patterns_lookup"),Nb=r=>To.explode(r.options.get("font_size_style_values")),i3=r=>To.explode(r.options.get("font_size_classes")),dm=r=>r.options.get("encoding")==="xml",Ty=r=>To.explode(r.options.get("images_file_types")),f2=ni("table_tab_navigation"),a3=ni("details_initial_state"),d2=ni("details_serialized_state"),s3=ni("sandbox_iframes"),h2=r=>r.options.get("sandbox_iframes_exclusions"),Fb=ni("convert_unsafe_embeds"),l3=ni("license_key"),c3=ni("api_key"),U4=ne,p2=Mt,m2=r=>{const g=r.parentNode;g&&g.removeChild(r)},Mg=r=>{const g=Sd(r);return{count:r.length-g.length,text:g}},S0=r=>{let g;for(;(g=r.data.lastIndexOf(Ou))!==-1;)r.deleteData(g,1)},gw=(r,g)=>($b(r),g),y1=(r,g)=>{const B=Mg(r.data.substr(0,g.offset())),H=Mg(r.data.substr(g.offset()));return(B.text+H.text).length>0?(S0(r),vo(r,g.offset()-B.count)):g},g2=(r,g)=>{const B=g.container(),H=ae(Me(B.childNodes),r).map(oe=>oep2(r)&&g.container()===r?y1(r,g):gw(r,g),zM=(r,g)=>g.container()===r.parentNode?g2(r,g):gw(r,g),gC=(r,g)=>vo.isTextPosition(g)?u3(r,g):zM(r,g),$b=r=>{U4(r)&&op(r)&&(GO(r)?r.removeAttribute("data-mce-caret"):m2(r)),p2(r)&&(S0(r),r.data.length===0&&m2(r))},vC=In,vw=Gr,Cy=Ir,yw="*[contentEditable=false],video,audio,embed,object",yC=(r,g,B)=>{const H=Yx(g.getBoundingClientRect(),B);let oe,be;if(r.tagName==="BODY"){const Ke=r.ownerDocument.documentElement;oe=r.scrollLeft||Ke.scrollLeft,be=r.scrollTop||Ke.scrollTop}else{const Ke=r.getBoundingClientRect();oe=r.scrollLeft-Ke.left,be=r.scrollTop-Ke.top}H.left+=oe,H.right+=oe,H.top+=be,H.bottom+=be,H.width=1;let Le=g.offsetWidth-g.clientWidth;return Le>0&&(B&&(Le*=-1),H.left+=Le,H.right+=Le),H},bC=r=>{var g,B;const H=Pl(_r.fromDom(r),yw);for(let oe=0;oe{const oe=Ts();let be,Le;const Ke=tu(r),ut=r.dom,At=(Wn,ur)=>{let Tr;if(nn(),Cy(ur))return null;if(B(ur)){const Wr=h0(Ke,ur,Wn),Qr=yC(g,ur,Wn);ut.setStyle(Wr,"top",Qr.top),ut.setStyle(Wr,"caret-color","transparent"),Le=Wr;const lo=ut.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});ut.setStyles(lo,{...Qr}),ut.add(g,lo),oe.set({caret:lo,element:ur,before:Wn}),Wn&&ut.addClass(lo,"mce-visual-caret-before"),un(),Tr=ur.ownerDocument.createRange(),Tr.setStart(Wr,0),Tr.setEnd(Wr,0)}else return Le=Ob(ur,Wn),Tr=ur.ownerDocument.createRange(),v2(Le.nextSibling)?(Tr.setStart(Le,0),Tr.setEnd(Le,0)):(Tr.setStart(Le,1),Tr.setEnd(Le,1)),Tr;return Tr},nn=()=>{bC(g),Le&&($b(Le),Le=null),oe.on(Wn=>{ut.remove(Wn.caret),oe.clear()}),be&&(clearInterval(be),be=void 0)},un=()=>{be=setInterval(()=>{oe.on(Wn=>{H()?ut.toggleClass(Wn.caret,"mce-visual-caret-hidden"):ut.addClass(Wn.caret,"mce-visual-caret-hidden")})},500)};return{show:At,hide:nn,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{oe.on(Wn=>{const ur=yC(g,Wn.element,Wn.before);ut.setStyles(Wn.caret,{...ur})})},destroy:()=>clearInterval(be)}},NM=()=>Nr.browser.isFirefox(),v2=r=>vC(r)||vw(r),b1=r=>(v2(r)||dt(r)&&NM())&&Nh(_r.fromDom(r)).exists(Ol),FM=pn,j4=In,xC=Gr,_C=Ee("display","block table table-cell table-caption list-item"),wC=op,Q4=Vm,OC=ne,Ay=Mt,SC=Hh,Vb=r=>r>0,My=r=>r<0,bw=(r,g)=>{let B;for(;B=r(g);)if(!Q4(B))return B;return null},y2=(r,g,B,H,oe)=>{const be=new Xl(r,H),Le=j4(r)||Q4(r);let Ke;if(My(g)){if(Le&&(Ke=bw(be.prev.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.prev.bind(be),oe);)if(B(Ke))return Ke}if(Vb(g)){if(Le&&(Ke=bw(be.next.bind(be),!0),B(Ke)))return Ke;for(;Ke=bw(be.next.bind(be),oe);)if(B(Ke))return Ke}return null},f3=(r,g)=>{const B=oe=>FM(oe.dom),H=oe=>oe.dom===g;return vs(_r.fromDom(r),B,H).map(oe=>oe.dom).getOr(g)},Ey=(r,g)=>{for(;r&&r!==g;){if(_C(r))return r;r=r.parentNode}return null},hm=(r,g,B)=>Ey(r.container(),B)===Ey(g.container(),B),H4=(r,g)=>{if(!g)return Y.none();const B=g.container(),H=g.offset();return OC(B)?Y.from(B.childNodes[H+r]):Y.none()},$M=(r,g)=>{var B;const oe=((B=g.ownerDocument)!==null&&B!==void 0?B:document).createRange();return r?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)),oe},b2=(r,g,B)=>Ey(g,r)===Ey(B,r),kC=(r,g,B)=>{const H=r?"previousSibling":"nextSibling";let oe=B;for(;oe&&oe!==g;){let be=oe[H];if(be&&wC(be)&&(be=be[H]),j4(be)||xC(be)){if(b2(g,be,oe))return be;break}if(SC(be))break;oe=oe.parentNode}return null},x2=U($M,!0),_2=U($M,!1),Yd=(r,g,B)=>{let H;const oe=U(kC,!0,g),be=U(kC,!1,g),Le=B.startContainer,Ke=B.startOffset;if(Vm(Le)){const ut=Ay(Le)?Le.parentNode:Le,At=ut.getAttribute("data-mce-caret");if(At==="before"&&(H=ut.nextSibling,b1(H)))return x2(H);if(At==="after"&&(H=ut.previousSibling,b1(H)))return _2(H)}if(!B.collapsed)return B;if(Mt(Le)){if(wC(Le)){if(r===1){if(H=be(Le),H)return x2(H);if(H=oe(Le),H)return _2(H)}if(r===-1){if(H=oe(Le),H)return _2(H);if(H=be(Le),H)return x2(H)}return B}if(Ss(Le)&&Ke>=Le.data.length-1)return r===1&&(H=be(Le),H)?x2(H):B;if(p0(Le)&&Ke<=1)return r===-1&&(H=oe(Le),H)?_2(H):B;if(Ke===Le.data.length)return H=be(Le),H?x2(H):B;if(Ke===0)return H=oe(Le),H?_2(H):B}return B},d3=(r,g)=>H4(r?0:-1,g).filter(j4),xw=(r,g,B)=>{const H=Yd(r,g,B);return r===-1?vo.fromRangeStart(H):vo.fromRangeEnd(H)},h3=r=>Y.from(r.getNode()).map(_r.fromDom),TC=r=>Y.from(r.getNode(!0)).map(_r.fromDom),Z4=(r,g)=>{let B=g;for(;B=r(B);)if(B.isVisible())return B;return B},p3=(r,g)=>{const B=hm(r,g);return!B&&gn(r.getNode())?!0:B};var Ef;(function(r){r[r.Backwards=-1]="Backwards",r[r.Forwards=1]="Forwards"})(Ef||(Ef={}));const m3=In,x1=Mt,CC=ne,q4=gn,Sv=Hh,_w=uu,w2=Cb,g3=(r,g)=>{const B=[];let H=r;for(;H&&H!==g;)B.push(H),H=H.parentNode;return B},v3=(r,g)=>r.hasChildNodes()&&g{if(Vb(r)){if(Sv(g.previousSibling)&&!x1(g.previousSibling))return vo.before(g);if(x1(g))return vo(g,0)}if(My(r)){if(Sv(g.nextSibling)&&!x1(g.nextSibling))return vo.after(g);if(x1(g))return vo(g,g.data.length)}return My(r)?q4(g)?vo.before(g):vo.after(g):vo.before(g)},VM=(r,g)=>{const B=g.nextSibling;return B&&Sv(B)?x1(B)?vo(B,0):vo.before(B):Vp(Ef.Forwards,vo.after(g),r)},Vp=(r,g,B)=>{let H,oe,be,Le;if(!CC(B)||!g)return null;if(g.isEqual(vo.after(B))&&B.lastChild){if(Le=vo.after(B.lastChild),My(r)&&Sv(B.lastChild)&&CC(B.lastChild))return q4(B.lastChild)?vo.before(B.lastChild):Le}else Le=g;const Ke=Le.container();let ut=Le.offset();if(x1(Ke)){if(My(r)&&ut>0)return vo(Ke,--ut);if(Vb(r)&&ut0&&(oe=v3(Ke,ut-1),Sv(oe)))return!_w(oe)&&(be=y2(oe,r,w2,oe),be)?x1(be)?vo(be,be.data.length):vo.after(be):x1(oe)?vo(oe,oe.data.length):vo.before(oe);if(Vb(r)&&ut({next:g=>Vp(Ef.Forwards,g,r),prev:g=>Vp(Ef.Backwards,g,r)}),W4=(r,g,B)=>{const H=r?vo.before(B):vo.after(B);return Op(r,g,H)},AC=r=>gn(r)?vo.before(r):vo.after(r),MC=r=>vo.isTextPosition(r)?r.offset()===0:Hh(r.getNode()),Y4=r=>{if(vo.isTextPosition(r)){const g=r.container();return r.offset()===g.data.length}else return Hh(r.getNode(!0))},X4=(r,g)=>!vo.isTextPosition(r)&&!vo.isTextPosition(g)&&r.getNode()===g.getNode(!0),EC=r=>!vo.isTextPosition(r)&&gn(r.getNode()),PC=(r,g,B)=>r?!X4(g,B)&&!EC(g)&&Y4(g)&&MC(B):!X4(B,g)&&MC(g)&&Y4(B),Op=(r,g,B)=>{const H=k0(g);return Y.from(r?H.next(B):H.prev(B))},Ub=(r,g,B)=>Op(r,g,B).bind(H=>hm(B,H,g)&&PC(r,B,H)?Op(r,g,H):Y.some(H)),G4=(r,g,B,H)=>Ub(r,g,B).bind(oe=>H(oe)?G4(r,g,oe,H):Y.some(oe)),Ry=(r,g)=>{const B=r?g.firstChild:g.lastChild;return Mt(B)?Y.some(vo(B,r?0:B.data.length)):B?Hh(B)?Y.some(r?vo.before(B):AC(B)):W4(r,g,B):Y.none()},Sp=U(Op,!0),Up=U(Op,!1),ph=U(Ry,!0),Ym=U(Ry,!1),y3="_mce_caret",Xm=r=>ne(r)&&r.id===y3,jb=(r,g)=>{let B=g;for(;B&&B!==r;){if(Xm(B))return B;B=B.parentNode}return null},UM=r=>v(r.start),K4=r=>Ot(r,"rng"),jM=r=>Ot(r,"id"),QM=r=>Ot(r,"name"),RC=r=>To.isArray(r.start),b3=r=>!QM(r)&&R(r.forward)?r.forward:!0,x3=(r,g)=>(ne(g)&&r.isBlock(g)&&!g.innerHTML&&(g.innerHTML='
    '),g),Rh=(r,g)=>{const B=Y.from(Kr(r.getRoot(),g.start)),H=Y.from(Kr(r.getRoot(),g.end));return zi(B,H,(oe,be)=>{const Le=r.createRng();return Le.setStart(oe.container(),oe.offset()),Le.setEnd(be.container(),be.offset()),{range:Le,forward:b3(g)}})},O2=(r,g)=>{var B;const oe=((B=r.ownerDocument)!==null&&B!==void 0?B:document).createTextNode(Ou);r.appendChild(oe),g.setStart(oe,0),g.setEnd(oe,0)},S2=r=>!r.hasChildNodes(),ww=(r,g)=>Ym(r).fold(re,B=>(g.setStart(B.container(),B.offset()),g.setEnd(B.container(),B.offset()),!0)),J4=(r,g,B)=>S2(g)&&jb(r,g)?(O2(g,B),!0):!1,Ow=(r,g,B,H)=>{const oe=B[g?"start":"end"],be=r.getRoot();if(oe){let Le=be,Ke=oe[0];for(let ut=oe.length-1;Le&&ut>=1;ut--){const At=Le.childNodes;if(J4(be,Le,H))return!0;if(oe[ut]>At.length-1)return J4(be,Le,H)?!0:ww(Le,H);Le=At[oe[ut]]}Mt(Le)&&(Ke=Math.min(oe[0],Le.data.length)),ne(Le)&&(Ke=Math.min(oe[0],Le.childNodes.length)),g?H.setStart(Le,Ke):H.setEnd(Le,Ke)}return!0},Sw=r=>Mt(r)&&r.data.length>0,Qb=(r,g,B)=>{const H=r.get(B.id+"_"+g),oe=H==null?void 0:H.parentNode,be=B.keep;if(H&&oe){let Le,Ke;if(g==="start"?be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.nextSibling)?(Le=H.nextSibling,Ke=0):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)+1):(Le=oe,Ke=r.nodeIndex(H)):be?H.hasChildNodes()?(Le=H.firstChild,Ke=1):Sw(H.previousSibling)?(Le=H.previousSibling,Ke=H.previousSibling.data.length):(Le=oe,Ke=r.nodeIndex(H)):(Le=oe,Ke=r.nodeIndex(H)),!be){const ut=H.previousSibling,At=H.nextSibling;To.each(To.grep(H.childNodes),un=>{Mt(un)&&(un.data=un.data.replace(/\uFEFF/g,""))});let nn;for(;nn=r.get(B.id+"_"+g);)r.remove(nn,!0);if(Mt(At)&&Mt(ut)&&!Nr.browser.isOpera()){const un=ut.data.length;ut.appendData(At.data),r.remove(At),Le=ut,Ke=un}}return Y.some(vo(Le,Ke))}else return Y.none()},ek=(r,g)=>{const B=r.createRng();return Ow(r,!0,g,B)&&Ow(r,!1,g,B)?Y.some({range:B,forward:b3(g)}):Y.none()},_3=(r,g)=>{const B=Qb(r,"start",g),H=Qb(r,"end",g);return zi(B,H.or(B),(oe,be)=>{const Le=r.createRng();return Le.setStart(x3(r,oe.container()),oe.offset()),Le.setEnd(x3(r,be.container()),be.offset()),{range:Le,forward:b3(g)}})},Eg=(r,g)=>Y.from(r.select(g.name)[g.index]).map(B=>{const H=r.createRng();return H.selectNode(B),{range:H,forward:!0}}),LC=(r,g)=>{const B=r.dom;if(g){if(RC(g))return ek(B,g);if(UM(g))return Rh(B,g);if(jM(g))return _3(B,g);if(QM(g))return Eg(B,g);if(K4(g))return Y.some({range:g.rng,forward:b3(g)})}return Y.none()},IC=(r,g,B)=>ba(r,g,B),kv=(r,g)=>{LC(r,g).each(({range:B,forward:H})=>{r.setRng(B,H)})},pm=r=>ne(r)&&r.tagName==="SPAN"&&r.getAttribute("data-mce-type")==="bookmark",Hb=(r=>g=>r===g)(Pc),Ly=r=>r!==""&&` \f +\r \v`.indexOf(r)!==-1,tk=r=>!Ly(r)&&!Hb(r)&&!Uf(r),w3=r=>{const g=[];if(r)for(let B=0;B$e(r,g=>{const B=Mh(g);return B?[_r.fromDom(B)]:[]}),HM=r=>w3(r).length>1,ZM=r=>Te(DC(r),gy),Zb=r=>Pl(r,"td[data-mce-selected],th[data-mce-selected]"),nk=(r,g)=>{const B=Zb(g);return B.length>0?B:ZM(r)},k2=r=>nk(w3(r.selection.getSel()),_r.fromDom(r.getBody())),Tw=(r,g)=>ts(r,"table",g),qM=r=>{const g=r.startContainer,B=r.startOffset;return Mt(g)?B===0?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B]).map(_r.fromDom)},O3=r=>{const g=r.endContainer,B=r.endOffset;return Mt(g)?B===g.data.length?Y.some(_r.fromDom(g)):Y.none():Y.from(g.childNodes[B-1]).map(_r.fromDom)},rk=r=>yc(r).fold($([r]),g=>[r].concat(rk(g))),ok=r=>Cc(r).fold($([r]),g=>ma(g)==="br"?sf(g).map(B=>[r].concat(ok(B))).getOr([]):[r].concat(ok(g))),S3=(r,g)=>zi(qM(g),O3(g),(B,H)=>{const oe=De(rk(r),U(va,B)),be=De(ok(r),U(va,H));return oe.isSome()&&be.isSome()}).getOr(!1),ik=(r,g,B,H)=>{const oe=B,be=new Xl(B,oe),Le=Yt(r.schema.getMoveCaretBeforeOnEnterElements(),(ut,At)=>!ce(["td","th","table"],At.toLowerCase()));let Ke=B;do{if(Mt(Ke)&&To.trim(Ke.data).length!==0){H?g.setStart(Ke,0):g.setEnd(Ke,Ke.data.length);return}if(Le[Ke.nodeName]){H?g.setStartBefore(Ke):Ke.nodeName==="BR"?g.setEndBefore(Ke):g.setEndAfter(Ke);return}}while(Ke=H?be.next():be.prev());oe.nodeName==="BODY"&&(H?g.setStart(oe,0):g.setEnd(oe,oe.childNodes.length))},T2=r=>{const g=r.selection.getSel();return P(g)&&g.rangeCount>0},k3=(r,g)=>{const B=k2(r);B.length>0?ve(B,H=>{const oe=H.dom,be=r.dom.createRng();be.setStartBefore(oe),be.setEndAfter(oe),g(be,!0)}):g(r.selection.getRng(),!1)},T3=(r,g,B)=>{const H=Da(r,g);B(H),r.moveToBookmark(H)},C3=r=>L(r==null?void 0:r.nodeType),A3=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Ys=(r,g)=>{if(A3(g)&&!/^(TD|TH)$/.test(g.nodeName)){const B=r.getAttrib(g,"data-mce-selected"),H=parseInt(B,10);return!isNaN(H)&&H>0}else return!1},_1=(r,g,B)=>{const{selection:H,dom:oe}=r,be=H.getNode(),Le=In(be);T3(H,!0,()=>{g()}),Le&&In(be)&&oe.isChildOf(be,r.getBody())?r.selection.select(be):B(H.getStart())&&qb(oe,H)},qb=(r,g)=>{var B,H;const oe=g.getRng(),{startContainer:be,startOffset:Le}=oe,Ke=g.getNode();if(!Ys(r,Ke)&&ne(be)){const ut=be.childNodes,At=r.getRoot();let nn;if(Le{if(r){const H=g?"nextSibling":"previousSibling";for(r=B?r:r[H];r;r=r[H])if(ne(r)||!P3(r))return r}},E3=(r,g)=>!!r.getTextBlockElements()[g.nodeName.toLowerCase()]||lh(r,g),Iy=(r,g,B)=>r.schema.isValidChild(g,B),P3=(r,g=!1)=>{if(P(r)&&Mt(r)){const B=g?r.data.replace(/ /g," "):r.data;return lc(B)}else return!1},ak=r=>P(r)&&Mt(r)&&r.length===0,sk=(r,g)=>{const B="[data-mce-cef-wrappable]",H=O0(r),oe=zr(H)?B:`${B},${H}`;return yd(_r.fromDom(g),oe)},lk=(r,g)=>{const B=r.dom;return A3(g)&&B.getContentEditable(g)==="false"&&sk(r,g)&&B.select('[contenteditable="true"]',g).length===0},Tv=(r,g)=>A(r)?r(g):(P(g)&&(r=r.replace(/%(\w+)/g,(B,H)=>g[H]||B)),r),Wb=(r,g)=>(r=r||"",g=g||"",r=""+(r.nodeName||r),g=""+(g.nodeName||g),r.toLowerCase()===g.toLowerCase()),BC=(r,g)=>{if(T(r))return null;{let B=String(r);return(g==="color"||g==="backgroundColor")&&(B=od(B)),g==="fontWeight"&&r===700&&(B="bold"),g==="fontFamily"&&(B=B.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),B}},Cw=(r,g,B)=>{const H=r.getStyle(g,B);return BC(H,B)},ck=(r,g)=>{let B;return r.getParent(g,H=>ne(H)?(B=r.getStyle(H,"text-decoration"),!!B&&B!=="none"):!1),B},R3=(r,g,B)=>r.getParents(g,B,r.getRoot()),L3=(r,g,B)=>{const H=r.formatter.get(g);return P(H)&&de(H,B)},uk=(r,g)=>L3(r,g,H=>{const oe=be=>A(be)||be.length>1&&be.charAt(0)==="%";return de(["styles","attributes"],be=>Et(H,be).exists(Le=>{const Ke=C(Le)?Le:tn(Le);return de(Ke,oe)}))}),zC=(r,g,B)=>{const H=["inline","block","selector","attributes","styles","classes"],oe=be=>Yt(be,(Le,Ke)=>de(H,ut=>ut===Ke));return L3(r,g,be=>{const Le=oe(be);return L3(r,B,Ke=>{const ut=oe(Ke);return Cn(Le,ut)})})},Cv=r=>cn(r,"block"),I3=r=>Cv(r)&&r.wrapper===!0,NC=r=>Cv(r)&&r.wrapper!==!0,Gm=r=>cn(r,"selector"),Ed=r=>cn(r,"inline"),Av=r=>Gm(r)&&Ed(r)&&Ia(Et(r,"mixed"),!0),fk=r=>Gm(r)&&r.expand!==!1&&!Ed(r),WM=r=>{const g=[];let B=r;for(;B;){if(Mt(B)&&B.data!==Ou||B.childNodes.length>1)return[];ne(B)&&g.push(B),B=B.firstChild}return g},D3=r=>WM(r).length>0,dk=r=>Xm(r.dom)&&D3(r.dom),C2=pm,FC=R3,YM=P3,MD=E3,XM=r=>gn(r)&&r.getAttribute("data-mce-bogus")&&!r.nextSibling,$C=(r,g)=>{let B=g;for(;B;){if(ne(B)&&r.getContentEditable(B))return r.getContentEditable(B)==="false"?B:g;B=B.parentNode}return g},VC=(r,g,B,H)=>{const oe=g.data;if(r){for(let be=B;be>0;be--)if(H(oe.charAt(be-1)))return be}else for(let be=B;beVC(r,g,B,H=>Hb(H)||Ly(H)),Pd=(r,g,B)=>VC(r,g,B,tk),Aw=(r,g,B,H,oe,be)=>{let Le;const Ke=r.getParent(B,r.isBlock)||g,ut=(nn,un,yn)=>{const Qn=Cg(r),rr=oe?Qn.backwards:Qn.forwards;return Y.from(rr(nn,un,(Wn,ur)=>C2(Wn.parentNode)?-1:(Le=Wn,yn(oe,Wn,ur)),Ke))};return ut(B,H,Ei).bind(nn=>be?ut(nn.container,nn.offset+(oe?-1:0),Pd):Y.some(nn)).orThunk(()=>Le?Y.some({container:Le,offset:oe?0:Le.length}):Y.none())},Rd=(r,g,B,H,oe)=>{const be=H[oe];Mt(H)&&zr(H.data)&&be&&(H=be);const Le=FC(r,H);for(let Ke=0;Ke{var oe;let be=B;const Le=r.getRoot(),Ke=g[0];if(Cv(Ke)&&(be=Ke.wrapper?null:r.getParent(B,Ke.block,Le)),!be){const ut=(oe=r.getParent(B,"LI,TD,TH,SUMMARY"))!==null&&oe!==void 0?oe:Le;be=r.getParent(Mt(B)?B.parentNode:B,At=>At!==Le&&MD(r.schema,At),ut)}if(be&&Cv(Ke)&&Ke.wrapper&&(be=FC(r,be,"ul,ol").reverse()[0]||be),!be)for(be=B;be&&be[H]&&!r.isBlock(be[H])&&(be=be[H],!Wb(be,"br")););return be||B},hk=(r,g,B,H)=>{const oe=B.parentNode;return P(B[H])?!1:oe===g||T(oe)||r.isBlock(oe)?!0:hk(r,g,oe,H)},Yb=(r,g,B,H,oe)=>{let be=B;const Le=oe?"previousSibling":"nextSibling",Ke=r.getRoot();if(Mt(B)&&!YM(B)&&(oe?H>0:HC2(r.parentNode)||C2(r),Xb=(r,g,B,H=!1)=>{let{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}=g;const ut=B[0];return ne(oe)&&oe.hasChildNodes()&&(oe=Fp(oe,be),Mt(oe)&&(be=0)),ne(Le)&&Le.hasChildNodes()&&(Le=Fp(Le,g.collapsed?Ke:Ke-1),Mt(Le)&&(Ke=Le.data.length)),oe=$C(r,oe),Le=$C(r,Le),Mw(oe)&&(oe=C2(oe)?oe:oe.parentNode,g.collapsed?oe=oe.previousSibling||oe:oe=oe.nextSibling||oe,Mt(oe)&&(be=g.collapsed?oe.length:0)),Mw(Le)&&(Le=C2(Le)?Le:Le.parentNode,g.collapsed?Le=Le.nextSibling||Le:Le=Le.previousSibling||Le,Mt(Le)&&(Ke=g.collapsed?0:Le.length)),g.collapsed&&(Aw(r,r.getRoot(),oe,be,!0,H).each(({container:un,offset:yn})=>{oe=un,be=yn}),Aw(r,r.getRoot(),Le,Ke,!1,H).each(({container:un,offset:yn})=>{Le=un,Ke=yn})),(Ed(ut)||ut.block_expand)&&((!Ed(ut)||!Mt(oe)||be===0)&&(oe=Yb(r,B,oe,be,!0)),(!Ed(ut)||!Mt(Le)||Ke===Le.data.length)&&(Le=Yb(r,B,Le,Ke,!1))),fk(ut)&&(oe=Rd(r,B,g,oe,"previousSibling"),Le=Rd(r,B,g,Le,"nextSibling")),(Cv(ut)||Gm(ut))&&(oe=Km(r,B,oe,"previousSibling"),Le=Km(r,B,Le,"nextSibling"),Cv(ut)&&(r.isBlock(oe)||(oe=Yb(r,B,oe,be,!0),Mt(oe)&&(be=0)),r.isBlock(Le)||(Le=Yb(r,B,Le,Ke,!1),Mt(Le)&&(Ke=Le.data.length)))),ne(oe)&&oe.parentNode&&(be=r.nodeIndex(oe),oe=oe.parentNode),ne(Le)&&Le.parentNode&&(Ke=r.nodeIndex(Le)+1,Le=Le.parentNode),{startContainer:oe,startOffset:be,endContainer:Le,endOffset:Ke}},Ew=(r,g,B)=>{var H;const oe=g.startOffset,be=Fp(g.startContainer,oe),Le=g.endOffset,Ke=Fp(g.endContainer,Le-1),ut=ur=>{const Tr=ur[0];Mt(Tr)&&Tr===be&&oe>=Tr.data.length&&ur.splice(0,1);const Wr=ur[ur.length-1];return Le===0&&ur.length>0&&Wr===Ke&&Mt(Wr)&&ur.splice(ur.length-1,1),ur},At=(ur,Tr,Wr)=>{const Qr=[];for(;ur&&ur!==Wr;ur=ur[Tr])Qr.push(ur);return Qr},nn=(ur,Tr)=>r.getParent(ur,Wr=>Wr.parentNode===Tr,Tr),un=(ur,Tr,Wr)=>{const Qr=Wr?"nextSibling":"previousSibling";for(let lo=ur,Zo=lo.parentNode;lo&&lo!==Tr;lo=Zo){Zo=lo.parentNode;const li=At(lo===ur?lo:lo[Qr],Qr);li.length&&(Wr||li.reverse(),B(ut(li)))}};if(be===Ke)return B(ut([be]));const yn=(H=r.findCommonAncestor(be,Ke))!==null&&H!==void 0?H:r.getRoot();if(r.isChildOf(be,Ke))return un(be,yn,!0);if(r.isChildOf(Ke,be))return un(Ke,yn);const Qn=nn(be,yn)||be,rr=nn(Ke,yn)||Ke;un(be,Qn,!0);const Wn=At(Qn===be?Qn:Qn.nextSibling,"nextSibling",rr===Ke?rr.nextSibling:rr);Wn.length&&B(ut(Wn)),un(Ke,rr)},UC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],GM=r=>Ml(r)&&f0(r)===Ou,KM=(r,g,B,H)=>jc(g).fold(()=>"skipping",oe=>H==="br"||GM(g)?"valid":z4(g)?"existing":Xm(g.dom)?"caret":de(UC,be=>yd(g,be))?"valid-block":!Iy(r,B,H)||!Iy(r,ma(oe),B)?"invalid-child":"valid"),A2=(r,g)=>{const B=Xb(r.dom,g,[{inline:"span"}]);g.setStart(B.startContainer,B.startOffset),g.setEnd(B.endContainer,B.endOffset),r.selection.setRng(g)},Gb=(r,g,B,H,oe,be)=>{const{uid:Le=g,...Ke}=B;Cu(r,G1()),ll(r,`${hy()}`,Le),ll(r,`${Sg()}`,H);const{attributes:ut={},classes:At=[]}=oe(Le,Ke);if(Tu(r,ut),bp(r,At),be){At.length>0&&ll(r,`${o1()}`,At.join(","));const nn=tt(ut);nn.length>0&&ll(r,`${kg()}`,nn.join(","))}},pk=r=>{Bu(r,G1()),tc(r,`${hy()}`),tc(r,`${Sg()}`),tc(r,`${K1()}`);const g=ec(r,`${kg()}`).map(H=>H.split(",")).getOr([]),B=ec(r,`${o1()}`).map(H=>H.split(",")).getOr([]);ve(g,H=>tc(r,H)),i1(r,B),tc(r,`${o1()}`),tc(r,`${kg()}`)},mk=(r,g,B,H,oe)=>{const be=_r.fromTag("span",r);return Gb(be,g,B,H,oe,!1),be},jp=(r,g,B,H,oe,be)=>{const Le=[],Ke=mk(r.getDoc(),B,be,H,oe),ut=Ts(),At=()=>{ut.clear()},nn=()=>ut.get().getOrThunk(()=>{const rr=im(Ke);return Le.push(rr),ut.set(rr),rr}),un=rr=>{ve(rr,yn)},yn=rr=>{switch(KM(r,rr,"span",ma(rr))){case"invalid-child":{At();const ur=vc(rr);un(ur),At();break}case"valid-block":{At(),Gb(rr,B,be,H,oe,!0);break}case"valid":{const ur=nn();nd(rr,ur);break}}},Qn=rr=>{const Wn=ye(rr,_r.fromDom);un(Wn)};return Ew(r.dom,g,rr=>{At(),Qn(rr)}),Le},w1=(r,g,B,H)=>{r.undoManager.transact(()=>{const oe=r.selection,be=oe.getRng(),Le=k2(r).length>0,Ke=yb("mce-annotation");if(be.collapsed&&!Le&&A2(r,be),oe.getRng().collapsed&&!Le){const ut=mk(r.getDoc(),Ke,H,g,B.decorate);Fu(ut,Pc),oe.getRng().insertNode(ut.dom),oe.select(ut.dom)}else T3(oe,!1,()=>{k3(r,ut=>{jp(r,ut,Ke,g,B.decorate,H)})})})},B3=r=>{const g=Y_();py(r,g);const B=jx(r,g),H=Jl("span"),oe=be=>{ve(be,Le=>{H(Le)?Mc(Le):pk(Le)})};return{register:(be,Le)=>{g.register(be,Le)},annotate:(be,Le)=>{g.lookup(be).each(Ke=>{w1(r,be,Ke,Le)})},annotationChanged:(be,Le)=>{B.addListener(be,Le)},remove:be=>{ev(r,Y.some(be)).each(({elements:Le})=>{const Ke=r.selection.getBookmark();oe(Le),r.selection.moveToBookmark(Ke)})},removeAll:be=>{const Le=r.selection.getBookmark();Ge(nv(r,be),(Ke,ut)=>{oe(Ke)}),r.selection.moveToBookmark(Le)},getAll:be=>{const Le=nv(r,be);return ht(Le,Ke=>ye(Ke,ut=>ut.dom))}}},Pg=r=>({getBookmark:U(IC,r),moveToBookmark:U(kv,r)});Pg.isBookmarkNode=pm;const z3=(r,g,B)=>B.collapsed?!1:de(B.getClientRects(),H=>cv(H,r,g)),JM=(r,g)=>r.dispatch("PreProcess",g),N3=(r,g)=>r.dispatch("PostProcess",g),F3=r=>{r.dispatch("remove")},eE=r=>{r.dispatch("detach")},tE=(r,g)=>{r.dispatch("SwitchMode",{mode:g})},nE=(r,g,B,H,oe)=>{r.dispatch("ObjectResizeStart",{target:g,width:B,height:H,origin:oe})},rE=(r,g,B,H,oe)=>{r.dispatch("ObjectResized",{target:g,width:B,height:H,origin:oe})},$3=r=>{r.dispatch("PreInit")},jC=r=>{r.dispatch("PostRender")},oE=r=>{r.dispatch("Init")},V3=(r,g)=>{r.dispatch("PlaceholderToggle",{state:g})},mh=(r,g,B)=>{r.dispatch(g,B)},Jm=(r,g,B,H)=>{r.dispatch("FormatApply",{format:g,node:B,vars:H})},mm=(r,g,B,H)=>{r.dispatch("FormatRemove",{format:g,node:B,vars:H})},U3=(r,g)=>r.dispatch("BeforeSetContent",g),Pw=(r,g)=>r.dispatch("SetContent",g),ED=(r,g)=>r.dispatch("BeforeGetContent",g),Rw=(r,g)=>r.dispatch("GetContent",g),iE=(r,g)=>{r.dispatch("AutocompleterStart",g)},QC=(r,g)=>{r.dispatch("AutocompleterUpdate",g)},HC=(r,g)=>{r.dispatch("AutocompleterUpdateActiveRange",g)},ZC=r=>{r.dispatch("AutocompleterEnd")},aE=(r,g,B)=>r.dispatch("PastePreProcess",{content:g,internal:B}),qC=(r,g,B)=>r.dispatch("PastePostProcess",{node:g,internal:B}),j3=(r,g)=>r.dispatch("PastePlainTextToggle",{state:g}),WC=(r,g)=>r.dispatch("EditableRootStateChange",{state:g}),Jo={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:r=>r.shiftKey||r.ctrlKey||r.altKey||Jo.metaKeyPressed(r),metaKeyPressed:r=>Nr.os.isMacOS()||Nr.os.isiOS()?r.metaKey:r.ctrlKey&&!r.altKey},gm="data-mce-selected",YC="table,img,figure.image,hr,video,span.mce-preview-object,details",gk=Math.abs,Lw=Math.round,Kb={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},vk=r=>r.type==="longpress"||r.type.indexOf("touch")===0,Iw=(r,g)=>{const B=g.dom,H=g.getDoc(),oe=document,be=g.getBody();let Le,Ke,ut,At,nn,un,yn,Qn,rr,Wn,ur,Tr,Wr,Qr,lo,Zo,li;const Mi=Ci=>P(Ci)&&(Jn(Ci)||B.is(Ci,"figure.image")),Co=Ci=>Gr(Ci)||B.hasClass(Ci,"mce-preview-object"),yo=(Ci,ms)=>{if(vk(Ci)){const Es=Ci.touches[0];return Mi(Ci.target)&&!z3(Es.clientX,Es.clientY,ms)}else return Mi(Ci.target)&&!z3(Ci.clientX,Ci.clientY,ms)},Vo=Ci=>{const ms=Ci.target;yo(Ci,g.selection.getRng())&&!Ci.isDefaultPrevented()&&g.selection.select(ms)},Fi=Ci=>B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?[Ci,Ci.firstElementChild]:B.is(Ci,"figure.image")?[Ci.querySelector("img")]:[Ci],la=Ci=>{const ms=Md(g);return!ms||Ci.getAttribute("data-mce-resize")==="false"||Ci===g.getBody()?!1:B.hasClass(Ci,"mce-preview-object")&&P(Ci.firstElementChild)?yd(_r.fromDom(Ci.firstElementChild),ms):yd(_r.fromDom(Ci),ms)},bs=(Ci,ms)=>{if(Co(ms))return Ci.create("img",{src:Nr.transparentSrc});if(dt(ms)){const Bd=Br(At.name,"n")?Ye:Je,Cl=ms.cloneNode(!0);return Bd(Ci.select("tr",Cl)).each(dd=>{const z0=Ci.select("td,th",dd);Ci.setStyle(dd,"height",null),ve(z0,$v=>Ci.setStyle($v,"height",null))}),Cl}else return ms.cloneNode(!0)},Ms=(Ci,ms,Es)=>{if(P(Es)){const Bd=Fi(Ci);ve(Bd,Cl=>{Cl.style[ms]||!g.schema.isValid(Cl.nodeName.toLowerCase(),ms)?B.setStyle(Cl,ms,Es):B.setAttrib(Cl,ms,""+Es)})}},wl=(Ci,ms,Es)=>{Ms(Ci,"width",ms),Ms(Ci,"height",Es)},Vl=Ci=>{let ms,Es,Bd,Cl,dd;ms=Ci.screenX-un,Es=Ci.screenY-yn,Qr=ms*At[2]+Wn,lo=Es*At[3]+ur,Qr=Qr<5?5:Qr,lo=lo<5?5:lo,(Mi(Le)||Co(Le))&&m1(g)!==!1?Bd=!Jo.modifierPressed(Ci):Bd=Jo.modifierPressed(Ci),Bd&&(gk(ms)>gk(Es)?(lo=Lw(Qr*Tr),Qr=Lw(lo/Tr)):(Qr=Lw(lo/Tr),lo=Lw(Qr*Tr))),wl(Ke,Qr,lo),Cl=At.startPos.x+ms,dd=At.startPos.y+Es,Cl=Cl>0?Cl:0,dd=dd>0?dd:0,B.setStyles(ut,{left:Cl,top:dd,display:"block"}),ut.innerHTML=Qr+" × "+lo,At[2]<0&&Ke.clientWidth<=Qr&&B.setStyle(Ke,"left",Qn+(Wn-Qr)),At[3]<0&&Ke.clientHeight<=lo&&B.setStyle(Ke,"top",rr+(ur-lo)),ms=be.scrollWidth-Zo,Es=be.scrollHeight-li,ms+Es!==0&&B.setStyles(ut,{left:Cl-ms,top:dd-Es}),Wr||(nE(g,Le,Wn,ur,"corner-"+At.name),Wr=!0)},Uu=()=>{const Ci=Wr;Wr=!1,Ci&&(Ms(Le,"width",Qr),Ms(Le,"height",lo)),B.unbind(H,"mousemove",Vl),B.unbind(H,"mouseup",Uu),oe!==H&&(B.unbind(oe,"mousemove",Vl),B.unbind(oe,"mouseup",Uu)),B.remove(Ke),B.remove(ut),B.remove(nn),Wf(Le),Ci&&(rE(g,Le,Qr,lo,"corner-"+At.name),B.setAttrib(Le,"style",B.getAttrib(Le,"style"))),g.nodeChanged()},Wf=Ci=>{Ti();const ms=B.getPos(Ci,be),Es=ms.x,Bd=ms.y,Cl=Ci.getBoundingClientRect(),dd=Cl.width||Cl.right-Cl.left,z0=Cl.height||Cl.bottom-Cl.top;Le!==Ci&&(vi(),Le=Ci,Qr=lo=0);const $v=g.dispatch("ObjectSelected",{target:Ci});la(Ci)&&!$v.isDefaultPrevented()?Ge(Kb,(Cp,Om)=>{const Hg=Zg=>{const ca=Fi(Le)[0];un=Zg.screenX,yn=Zg.screenY,Wn=ca.clientWidth,ur=ca.clientHeight,Tr=ur/Wn,At=Cp,At.name=Om,At.startPos={x:dd*Cp[0]+Es,y:z0*Cp[1]+Bd},Zo=be.scrollWidth,li=be.scrollHeight,nn=B.add(be,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),B.setStyles(nn,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),Ke=bs(B,Le),B.addClass(Ke,"mce-clonedresizable"),B.setAttrib(Ke,"data-mce-bogus","all"),Ke.contentEditable="false",B.setStyles(Ke,{left:Es,top:Bd,margin:0}),wl(Ke,dd,z0),Ke.removeAttribute(gm),be.appendChild(Ke),B.bind(H,"mousemove",Vl),B.bind(H,"mouseup",Uu),oe!==H&&(B.bind(oe,"mousemove",Vl),B.bind(oe,"mouseup",Uu)),ut=B.add(be,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},Wn+" × "+ur)};let Sm=B.get("mceResizeHandle"+Om);Sm&&B.remove(Sm),Sm=B.add(be,"div",{id:"mceResizeHandle"+Om,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Om+"-resize; margin:0; padding:0"}),B.bind(Sm,"mousedown",Zg=>{Zg.stopImmediatePropagation(),Zg.preventDefault(),Hg(Zg)}),Cp.elm=Sm,B.setStyles(Sm,{left:dd*Cp[0]+Es-Sm.offsetWidth/2,top:z0*Cp[1]+Bd-Sm.offsetHeight/2})}):vi(!1)},ic=dy(Wf,0),vi=(Ci=!0)=>{ic.cancel(),Ti(),Le&&Ci&&Le.removeAttribute(gm),Ge(Kb,(ms,Es)=>{const Bd=B.get("mceResizeHandle"+Es);Bd&&(B.unbind(Bd),B.remove(Bd))})},na=(Ci,ms)=>B.isChildOf(Ci,ms),ol=Ci=>{if(Wr||g.removed||g.composing)return;const ms=Ci.type==="mousedown"?Ci.target:r.getNode(),Es=bu(_r.fromDom(ms),YC).map(Cl=>Cl.dom).filter(Cl=>B.isEditable(Cl.parentElement)||Cl.nodeName==="IMG"&&B.isEditable(Cl)).getOrUndefined(),Bd=P(Es)?B.getAttrib(Es,gm,"1"):"1";if(ve(B.select(`img[${gm}],hr[${gm}]`),Cl=>{Cl.removeAttribute(gm)}),P(Es)&&na(Es,be)&&g.hasFocus()){pa();const Cl=r.getStart(!0);if(na(Cl,Es)&&na(r.getEnd(!0),Es)){B.setAttrib(Es,gm,Bd),ic.throttle(Es);return}}vi()},Ti=()=>{Ge(Kb,Ci=>{Ci.elm&&(B.unbind(Ci.elm),delete Ci.elm)})},pa=()=>{try{g.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return g.on("init",()=>{pa(),g.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",ol),g.on("keyup compositionend",Ci=>{Le&&Le.nodeName==="TABLE"&&ol(Ci)}),g.on("hide blur",vi),g.on("contextmenu longpress",Vo,!0)}),g.on("remove",Ti),{isResizable:la,showResizeRect:Wf,hideResizeRect:vi,updateResizeRect:ol,destroy:()=>{ic.cancel(),Le=Ke=nn=null}}},XC=(r,g)=>{g.fold(B=>{r.setStartBefore(B.dom)},(B,H)=>{r.setStart(B.dom,H)},B=>{r.setStartAfter(B.dom)})},sE=(r,g)=>{g.fold(B=>{r.setEndBefore(B.dom)},(B,H)=>{r.setEnd(B.dom,H)},B=>{r.setEndAfter(B.dom)})},yk=(r,g,B)=>{const H=r.document.createRange();return XC(H,g),sE(H,B),H},Dw=(r,g,B,H,oe)=>{const be=r.document.createRange();return be.setStart(g.dom,B),be.setEnd(H.dom,oe),be},Dy=kl.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),GC=(r,g,B)=>g(_r.fromDom(B.startContainer),B.startOffset,_r.fromDom(B.endContainer),B.endOffset),KC=(r,g)=>g.match({domRange:B=>({ltr:$(B),rtl:Y.none}),relative:(B,H)=>({ltr:_t(()=>yk(r,B,H)),rtl:_t(()=>Y.some(yk(r,H,B)))}),exact:(B,H,oe,be)=>({ltr:_t(()=>Dw(r,B,H,oe,be)),rtl:_t(()=>Y.some(Dw(r,oe,be,B,H)))})}),lE=(r,g)=>{const B=g.ltr();return B.collapsed?g.rtl().filter(oe=>oe.collapsed===!1).map(oe=>Dy.rtl(_r.fromDom(oe.endContainer),oe.endOffset,_r.fromDom(oe.startContainer),oe.startOffset)).getOrThunk(()=>GC(r,Dy.ltr,B)):GC(r,Dy.ltr,B)},bk=(r,g)=>{const B=KC(r,g);return lE(r,B)};Dy.ltr,Dy.rtl;const Qp={create:(r,g,B,H)=>({start:r,soffset:g,finish:B,foffset:H})},Zh=(r,g,B)=>{var H;return Y.from((H=r.caretPositionFromPoint)===null||H===void 0?void 0:H.call(r,g,B)).bind(oe=>{if(oe.offsetNode===null)return Y.none();const be=r.createRange();return be.setStart(oe.offsetNode,oe.offset),be.collapse(),Y.some(be)})},M2=(r,g,B)=>{var H;return Y.from((H=r.caretRangeFromPoint)===null||H===void 0?void 0:H.call(r,g,B))},PD=(r,g,B)=>r.caretPositionFromPoint?Zh(r,g,B):r.caretRangeFromPoint?M2(r,g,B):Y.none(),uE=(r,g,B)=>{const H=r.document;return PD(H,g,B).map(oe=>Qp.create(_r.fromDom(oe.startContainer),oe.startOffset,_r.fromDom(oe.endContainer),oe.endOffset))},xk=kl.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Xs=(r,g,B,H)=>r.fold(g,B,H),fE=r=>r.fold(Q,Q,Q),dE=xk.before,JC=xk.on,RD=xk.after,O1={before:dE,on:JC,after:RD,cata:Xs,getStart:fE},Q3=kl.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),hE=r=>Q3.exact(r.start,r.soffset,r.finish,r.foffset),pE=r=>r.match({domRange:g=>_r.fromDom(g.startContainer),relative:(g,B)=>O1.getStart(g),exact:(g,B,H,oe)=>g}),e6=Q3.domRange,Bw=Q3.relative,_k=Q3.exact,t6=r=>{const g=pE(r);return yu(g)},LD=Qp.create,E2={domRange:e6,relative:Bw,exact:_k,exactFromRange:hE,getWin:t6,range:LD},wk=(r,g)=>{const B=ma(r);return B==="input"?O1.after(r):ce(["br","img"],B)?g===0?O1.before(r):O1.after(r):O1.on(r,g)},ID=(r,g)=>{const B=r.fold(O1.before,wk,O1.after),H=g.fold(O1.before,wk,O1.after);return E2.relative(B,H)},n6=(r,g,B,H)=>{const oe=wk(r,g),be=wk(B,H);return E2.relative(oe,be)},mE=r=>r.match({domRange:g=>{const B=_r.fromDom(g.startContainer),H=_r.fromDom(g.endContainer);return n6(B,g.startOffset,H,g.endOffset)},relative:ID,exact:n6}),he=(r,g)=>{const H=(g||document).createDocumentFragment();return ve(r,oe=>{H.appendChild(oe.dom)}),_r.fromDom(H)},Ce=r=>{const g=E2.getWin(r).dom,B=(oe,be,Le,Ke)=>Dw(g,oe,be,Le,Ke),H=mE(r);return bk(g,H).match({ltr:B,rtl:B})},Xe=(r,g,B)=>uE(r,g,B),lt=(r,g,B)=>{const H=yu(_r.fromDom(B));return Xe(H.dom,r,g).map(oe=>{const be=B.createRange();return be.setStart(oe.start.dom,oe.soffset),be.setEnd(oe.finish.dom,oe.foffset),be}).getOrUndefined()},Ct=(r,g)=>P(r)&&P(g)&&r.startContainer===g.startContainer&&r.startOffset===g.startOffset&&r.endContainer===g.endContainer&&r.endOffset===g.endOffset,Wt=(r,g,B)=>{let H=r;for(;H&&H!==g;){if(B(H))return H;H=H.parentNode}return null},kn=(r,g,B)=>Wt(r,g,B)!==null,Vn=(r,g,B)=>kn(r,g,H=>H.nodeName===B),or=(r,g)=>op(r)&&!kn(r,g,Xm),Mr=(r,g,B)=>{const H=g.parentNode;if(H){const oe=new Xl(g,r.getParent(H,r.isBlock)||r.getRoot());let be;for(;be=oe[B?"prev":"next"]();)if(gn(be))return!0}return!1},no=(r,g)=>{var B;return((B=r.previousSibling)===null||B===void 0?void 0:B.nodeName)===g},ti=(r,g)=>{let B=g;for(;B&&B!==r;){if(In(B))return!0;B=B.parentNode}return!1},ki=(r,g,B,H,oe)=>{const be=r.getRoot(),Le=r.schema.getNonEmptyElements(),Ke=oe.parentNode;let ut,At;if(!Ke)return Y.none();const nn=r.getParent(Ke,r.isBlock)||be;if(H&&gn(oe)&&g&&r.isEmpty(nn))return Y.some(vo(Ke,r.nodeIndex(oe)));const un=new Xl(oe,nn);for(;At=un[H?"prev":"next"]();){if(r.getContentEditableParent(At)==="false"||or(At,be))return Y.none();if(Mt(At)&&At.data.length>0)return Vn(At,be,"A")?Y.none():Y.some(vo(At,H?At.data.length:0));if(r.isBlock(At)||Le[At.nodeName.toLowerCase()])return Y.none();ut=At}return bn(ut)?Y.none():B&&ut?Y.some(vo(ut,0)):Y.none()},xi=(r,g,B,H)=>{const oe=r.getRoot();let be,Le=!1,Ke=B?H.startContainer:H.endContainer,ut=B?H.startOffset:H.endOffset;const At=ne(Ke)&&ut===Ke.childNodes.length,nn=r.schema.getNonEmptyElements();let un=B;if(op(Ke))return Y.none();if(ne(Ke)&&ut>Ke.childNodes.length-1&&(un=!1),vn(Ke)&&(Ke=oe,ut=0),Ke===oe){if(un&&(be=Ke.childNodes[ut>0?ut-1:0],be&&(op(be)||nn[be.nodeName]||dt(be))))return Y.none();if(Ke.hasChildNodes()){if(ut=Math.min(!un&&ut>0?ut-1:ut,Ke.childNodes.length-1),Ke=Ke.childNodes[ut],ut=Mt(Ke)&&At?Ke.data.length:0,!g&&Ke===oe.lastChild&&dt(Ke)||ti(oe,Ke)||op(Ke)||po(Ke))return Y.none();if(Ke.hasChildNodes()&&!dt(Ke)){be=Ke;const yn=new Xl(Ke,oe);do{if(In(be)||op(be)){Le=!1;break}if(Mt(be)&&be.data.length>0){ut=un?0:be.data.length,Ke=be,Le=!0;break}if(nn[be.nodeName.toLowerCase()]&&!Pr(be)){ut=r.nodeIndex(be),Ke=be.parentNode,un||ut++,Le=!0;break}}while(be=un?yn.next():yn.prev())}}}return g&&(Mt(Ke)&&ut===0&&ki(r,At,g,!0,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),ne(Ke)&&(be=Ke.childNodes[ut],be||(be=Ke.childNodes[ut-1]),be&&gn(be)&&!no(be,"A")&&!Mr(r,be,!1)&&!Mr(r,be,!0)&&ki(r,At,g,!0,be).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}))),un&&!g&&Mt(Ke)&&ut===Ke.data.length&&ki(r,At,g,!1,Ke).each(yn=>{Ke=yn.container(),ut=yn.offset(),Le=!0}),Le&&Ke?Y.some(vo(Ke,ut)):Y.none()},fi=(r,g)=>{const B=g.collapsed,H=g.cloneRange(),oe=vo.fromRangeStart(g);return xi(r,B,!0,H).each(be=>{(!B||!vo.isAbove(oe,be))&&H.setStart(be.container(),be.offset())}),B||xi(r,B,!1,H).each(be=>{H.setEnd(be.container(),be.offset())}),B&&H.collapse(!0),Ct(g,H)?Y.none():Y.some(H)},Vi=(r,g)=>r.splitText(g),Xo=r=>{let g=r.startContainer,B=r.startOffset,H=r.endContainer,oe=r.endOffset;if(g===H&&Mt(g)){if(B>0&&BB){oe=oe-B;const be=Vi(H,oe).previousSibling;g=H=be,oe=be.data.length,B=0}else oe=0}else if(Mt(g)&&B>0&&B0&&oe({walk:(be,Le)=>Ew(r,be,Le),split:Xo,expand:(be,Le={type:"word"})=>{if(Le.type==="word"){const Ke=Xb(r,be,[{inline:"span"}]),ut=r.createRng();return ut.setStart(Ke.startContainer,Ke.startOffset),ut.setEnd(Ke.endContainer,Ke.endOffset),ut}return be},normalize:be=>fi(r,be).fold(re,Le=>(be.setStart(Le.startContainer,Le.startOffset),be.setEnd(Le.endContainer,Le.endOffset),!0))});oi.compareRanges=Ct,oi.getCaretRangeFromPoint=lt,oi.getSelectedNode=Mh,oi.getNode=Fp;const Pa=((r,g)=>{const B=(Ke,ut)=>{if(!L(ut)&&!ut.match(/^[0-9]+$/))throw new Error(r+".set accepts only positive integer values. Value was "+ut);const At=Ke.dom;zc(At)&&(At.style[r]=ut+"px")},H=Ke=>{const ut=g(Ke);if(ut<=0||ut===null){const At=rs(Ke,r);return parseFloat(At)||0}return ut},oe=H,be=(Ke,ut)=>Ie(ut,(At,nn)=>{const un=rs(Ke,nn),yn=un===void 0?0:parseInt(un,10);return isNaN(yn)?At:At+yn},0);return{set:B,get:H,getOuter:oe,aggregate:be,max:(Ke,ut,At)=>{const nn=be(Ke,At);return ut>nn?ut-nn:0}}})("height",r=>{const g=r.dom;return lf(r)?g.getBoundingClientRect().height:g.offsetHeight}),ta=r=>Pa.get(r),nu=()=>_r.fromDom(document),Ll=(r,g)=>r.view(g).fold($([]),H=>{const oe=r.owner(H),be=Ll(r,oe);return[H].concat(be)}),$u=(r,g)=>{const B=g.owner(r);return Ll(g,B)};var Jb=Object.freeze({__proto__:null,view:r=>{var g;return(r.dom===document?Y.none():Y.from((g=r.dom.defaultView)===null||g===void 0?void 0:g.frameElement)).map(_r.fromDom)},owner:r=>$f(r)});const ex=r=>{const g=nu(),B=Ni(g),H=$u(r,Jb),oe=ya(r),be=Pe(H,(Le,Ke)=>{const ut=ya(Ke);return{left:Le.left+ut.left,top:Le.top+ut.top}},{left:0,top:0});return pr(be.left+oe.left+B.left,be.top+oe.top+B.top)},Tl=r=>ma(r)==="textarea",Ld=(r,g)=>r.dispatch("ScrollIntoView",g).isDefaultPrevented(),sp=(r,g)=>{r.dispatch("AfterScrollIntoView",g)},Rg=(r,g)=>{const B=vc(r);if(B.length===0||Tl(r))return{element:r,offset:g};if(g{const B=Bi(r),H=ta(r);return{element:r,bottom:B.top+H,height:H,pos:B,cleanup:g}},P2=(r,g)=>{const B=Rg(r,g),H=_r.fromHtml(''+Ou+"");return xc(B.element,H),ym(H,()=>hs(H))},Wa=r=>ym(_r.fromDom(r),k),bm=(r,g,B,H)=>{el(r,(oe,be)=>S1(r,g,B,H),B)},Lg=(r,g,B,H,oe)=>{const be={elm:H.element.dom,alignToTop:oe};if(Ld(r,be))return;const Le=Ni(g).top;B(r,g,Le,H,oe),sp(r,be)},S1=(r,g,B,H)=>{const oe=_r.fromDom(r.getBody()),be=_r.fromDom(r.getDoc());zl(oe);const Le=P2(_r.fromDom(B.startContainer),B.startOffset);Lg(r,be,g,Le,H),Le.cleanup()},Zf=(r,g,B,H)=>{const oe=_r.fromDom(r.getDoc());Lg(r,oe,B,Wa(g),H)},el=(r,g,B)=>{const H=B.startContainer,oe=B.startOffset,be=B.endContainer,Le=B.endOffset;g(_r.fromDom(H),_r.fromDom(be));const Ke=r.dom.createRng();Ke.setStart(H,oe),Ke.setEnd(be,Le),r.selection.setRng(B)},Ok=(r,g,B,H,oe)=>{const be=g.pos;if(H)Qi(be.left,be.top,oe);else{const Le=be.top-B+g.height;Qi(-r.getBody().getBoundingClientRect().left,Le,oe)}},Sk=(r,g,B,H,oe,be)=>{const Le=H+B,Ke=oe.pos.top,ut=oe.bottom,At=ut-Ke>=H;KeLe?Ok(r,oe,H,At?be!==!1:be===!0,g):ut>Le&&!At&&Ok(r,oe,H,be===!0,g)},H3=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe)},r6=(r,g,B,H,oe)=>{const be=yu(g).dom.innerHeight;Sk(r,g,B,be,H,oe);const Le=ex(H.element),Ke=Wu(window);Le.topKe.bottom&&Ws(H.element,oe===!0)},Mv=(r,g,B)=>bm(r,H3,g,B),tx=(r,g,B)=>Zf(r,g,H3,B),R2=(r,g,B)=>bm(r,r6,g,B),$q=(r,g,B)=>Zf(r,g,r6,B),Vq=(r,g,B)=>{(r.inline?tx:$q)(r,g,B)},kk=(r,g,B)=>{(r.inline?Mv:R2)(r,g,B)},Z3=(r,g=!1)=>r.dom.focus({preventScroll:g}),zw=r=>{const g=Ac(r).dom;return r.dom===g.activeElement},gE=(r=nu())=>Y.from(r.dom.activeElement).map(_r.fromDom),DD=r=>gE(Ac(r)).filter(g=>r.dom.contains(g.dom)),BD=(r,g)=>{const B=Ml(g)?f0(g).length:vc(g).length+1;return r>B?B:r<0?0:r},Uq=r=>E2.range(r.start,BD(r.soffset,r.start),r.finish,BD(r.foffset,r.finish)),zD=(r,g)=>!le(g.dom)&&(El(r,g)||va(r,g)),vE=r=>g=>zD(r,g.start)&&zD(r,g.finish),lfe=r=>r.inline||Nr.browser.isFirefox(),jq=r=>E2.range(_r.fromDom(r.startContainer),r.startOffset,_r.fromDom(r.endContainer),r.endOffset),ND=r=>{const g=r.getSelection();return(!g||g.rangeCount===0?Y.none():Y.from(g.getRangeAt(0))).map(jq)},yE=r=>{const g=yu(r);return ND(g.dom).filter(vE(r))},bE=(r,g)=>Y.from(g).filter(vE(r)).map(Uq),xE=r=>{const g=document.createRange();try{return g.setStart(r.start.dom,r.soffset),g.setEnd(r.finish.dom,r.foffset),Y.some(g)}catch{return Y.none()}},Tk=r=>{const g=lfe(r)?yE(_r.fromDom(r.getBody())):Y.none();r.bookmark=g.isSome()?g:r.bookmark},o6=r=>(r.bookmark?r.bookmark:Y.none()).bind(B=>bE(_r.fromDom(r.getBody()),B)).bind(xE),FD=r=>{o6(r).each(g=>r.selection.setRng(g))},$D={isEditorUIElement:r=>{const g=r.className.toString();return g.indexOf("tox-")!==-1||g.indexOf("mce-")!==-1}},VD=(r,g)=>(L(g)||(g=0),setTimeout(r,g)),Qq=(r,g)=>(L(g)||(g=0),setInterval(r,g)),Ig={setEditorTimeout:(r,g,B)=>VD(()=>{r.removed||g()},B),setEditorInterval:(r,g,B)=>{const H=Qq(()=>{r.removed?clearInterval(H):g()},B);return H}},UD=r=>r.type==="nodechange"&&r.selectionChange,jD=(r,g)=>{const B=()=>{g.throttle()};cc.DOM.bind(document,"mouseup",B),r.on("remove",()=>{cc.DOM.unbind(document,"mouseup",B)})},QD=(r,g)=>{r.on("mouseup touchend",B=>{g.throttle()})},HD=(r,g)=>{QD(r,g),r.on("keyup NodeChange AfterSetSelectionRange",B=>{UD(B)||Tk(r)})},Hq=r=>{const g=dy(()=>{Tk(r)},0);r.on("init",()=>{r.inline&&jD(r,g),HD(r,g)}),r.on("remove",()=>{g.cancel()})};let q3;const wE=cc.DOM,Zq=r=>ne(r)&&$D.isEditorUIElement(r),OE=r=>{const g=r.classList;return g!==void 0?g.contains("tox-edit-area")||g.contains("tox-edit-area__iframe")||g.contains("mce-content-body"):!1},i6=(r,g)=>{const B=hu(r);return wE.getParent(g,oe=>Zq(oe)||(B?r.dom.is(oe,B):!1))!==null},SE=r=>{try{const g=Ac(_r.fromDom(r.getElement()));return gE(g).fold(()=>document.body,B=>B.dom)}catch{return document.body}},qq=(r,g)=>{const B=g.editor;Hq(B);const H=(oe,be)=>{if(u2(oe)&&oe.inline!==!0){const Le=_r.fromDom(oe.getContainer());be(Le,"tox-edit-focus")}};B.on("focusin",()=>{const oe=r.focusedEditor;OE(SE(B))&&H(B,Cu),oe!==B&&(oe&&oe.dispatch("blur",{focusedEditor:B}),r.setActive(B),r.focusedEditor=B,B.dispatch("focus",{blurredEditor:oe}),B.focus(!0))}),B.on("focusout",()=>{Ig.setEditorTimeout(B,()=>{const oe=r.focusedEditor;(!OE(SE(B))||oe!==B)&&H(B,Bu),!i6(B,SE(B))&&oe===B&&(B.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})}),q3||(q3=oe=>{const be=r.activeEditor;be&&ah(oe).each(Le=>{const Ke=Le;Ke.ownerDocument===document&&Ke!==document.body&&!i6(be,Ke)&&r.focusedEditor===be&&(be.dispatch("blur",{focusedEditor:null}),r.focusedEditor=null)})},wE.bind(document,"focusin",q3))},a6=(r,g)=>{r.focusedEditor===g.editor&&(r.focusedEditor=null),!r.activeEditor&&q3&&(wE.unbind(document,"focusin",q3),q3=null)},ZD=r=>{r.on("AddEditor",U(qq,r)),r.on("RemoveEditor",U(a6,r))},Wq=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="true"),qD=(r,g)=>r.dom.getParent(g,B=>r.dom.getContentEditable(B)==="false")!==null,WD=r=>r.collapsed?Y.from(Fp(r.startContainer,r.startOffset)).map(_r.fromDom):Y.none(),Yq=(r,g)=>WD(g).bind(B=>J_(B)?Y.some(B):El(r,B)?Y.none():Y.some(r)),YD=(r,g)=>{Yq(_r.fromDom(r.getBody()),g).bind(B=>ph(B.dom)).fold(()=>{r.selection.normalize()},B=>r.selection.setRng(B.toRange()))},s6=r=>{if(r.setActive)try{r.setActive()}catch{r.focus()}else r.focus()},Xq=r=>zw(r)||DD(r).isSome(),Gq=r=>P(r.iframeElement)&&zw(_r.fromDom(r.iframeElement)),XD=r=>{const g=r.getBody();return g&&Xq(_r.fromDom(g))},GD=r=>{const g=Ac(_r.fromDom(r.getElement()));return gE(g).filter(B=>!OE(B.dom)&&i6(r,B.dom)).isSome()},nx=r=>r.inline?XD(r):Gq(r),KD=r=>nx(r)||GD(r),Kq=r=>{const g=r.selection,B=r.getBody();let H=g.getRng();r.quirks.refreshContentEditable();const oe=Le=>{o6(Le).each(Ke=>{Le.selection.setRng(Ke),H=Ke})};!nx(r)&&r.hasEditableRoot()&&oe(r);const be=Wq(r,g.getNode());if(be&&r.dom.isChildOf(be,B)){qD(r,be)||s6(B),s6(be),r.hasEditableRoot()||oe(r),YD(r,H),Ck(r);return}r.inline||(Nr.browser.isOpera()||s6(B),r.getWin().focus()),(Nr.browser.isFirefox()||r.inline)&&(s6(B),YD(r,H)),Ck(r)},Ck=r=>r.editorManager.setActive(r),Jq=(r,g)=>{r.removed||(g?Ck(r):Kq(r))},kE=(r,g)=>g.collapsed?r.isEditable(g.startContainer):r.isEditable(g.startContainer)&&r.isEditable(g.endContainer),TE=(r,g,B,H,oe)=>{const be=B?g.startContainer:g.endContainer,Le=B?g.startOffset:g.endOffset;return Y.from(be).map(_r.fromDom).map(Ke=>!H||!g.collapsed?gs(Ke,oe(Ke,Le)).getOr(Ke):Ke).bind(Ke=>Wl(Ke)?Y.some(Ke):jc(Ke).filter(Wl)).map(Ke=>Ke.dom).getOr(r)},CE=(r,g,B=!1)=>TE(r,g,!0,B,(H,oe)=>Math.min(Nu(H),oe)),JD=(r,g,B=!1)=>TE(r,g,!1,B,(H,oe)=>oe>0?oe-1:oe),eB=(r,g)=>{const B=r;for(;r&&Mt(r)&&r.length===0;)r=g?r.nextSibling:r.previousSibling;return r||B},eW=(r,g)=>{if(!g)return r;let B=g.startContainer,H=g.endContainer;const oe=g.startOffset,be=g.endOffset;let Le=g.commonAncestorContainer;g.collapsed||(B===H&&be-oe<2&&B.hasChildNodes()&&(Le=B.childNodes[oe]),Mt(B)&&Mt(H)&&(B.length===oe?B=eB(B.nextSibling,!0):B=B.parentNode,be===0?H=eB(H.previousSibling,!1):H=H.parentNode,B&&B===H&&(Le=B)));const Ke=Mt(Le)?Le.parentNode:Le;return V(Ke)?Ke:r},tW=(r,g,B,H)=>{const oe=[],be=r.getRoot(),Le=r.getParent(B||CE(be,g,g.collapsed),r.isBlock),Ke=r.getParent(H||JD(be,g,g.collapsed),r.isBlock);if(Le&&Le!==be&&oe.push(Le),Le&&Ke&&Le!==Ke){let ut;const At=new Xl(Le,be);for(;(ut=At.next())&&ut!==Ke;)r.isBlock(ut)&&oe.push(ut)}return Ke&&Le!==Ke&&Ke!==be&&oe.push(Ke),oe},l6=(r,g,B)=>Y.from(g).bind(H=>Y.from(H.parentNode).map(oe=>{const be=r.nodeIndex(H),Le=r.createRng();return Le.setStart(oe,be),Le.setEnd(oe,be+1),B&&(ik(r,Le,H,!0),ik(r,Le,H,!1)),Le})),c6=(r,g)=>ye(g,B=>{const H=r.dispatch("GetSelectionRange",{range:B});return H.range!==B?H.range:B}),tB={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ak=(r,g,B)=>{const H=B?"lastChild":"firstChild",oe=B?"prev":"next";if(r[H])return r[H];if(r!==g){let be=r[oe];if(be)return be;for(let Le=r.parent;Le&&Le!==g;Le=Le.parent)if(be=Le[oe],be)return be}},nB=r=>{var g;const B=(g=r.value)!==null&&g!==void 0?g:"";if(!lc(B))return!1;const H=r.parent;return!(H&&(H.name!=="span"||H.attr("style"))&&/^[ ]+$/.test(B))},rB=r=>{const g=r.name==="a"&&!r.attr("href")&&r.attr("id");return r.attr("name")||r.attr("id")&&!r.firstChild||r.attr("data-mce-bookmark")||g};class Hp{static create(g,B){const H=new Hp(g,tB[g]||1);return B&&Ge(B,(oe,be)=>{H.attr(be,oe)}),H}constructor(g,B){this.name=g,this.type=B,B===1&&(this.attributes=[],this.attributes.map={})}replace(g){const B=this;return g.parent&&g.remove(),B.insert(g,B),B.remove(),B}attr(g,B){const H=this;if(!v(g))return P(g)&&Ge(g,(be,Le)=>{H.attr(Le,be)}),H;const oe=H.attributes;if(oe){if(B!==void 0){if(B===null){if(g in oe.map){delete oe.map[g];let be=oe.length;for(;be--;)if(oe[be].name===g)return oe.splice(be,1),H}return H}if(g in oe.map){let be=oe.length;for(;be--;)if(oe[be].name===g){oe[be].value=B;break}}else oe.push({name:g,value:B});return oe.map[g]=B,H}return oe.map[g]}}clone(){const g=this,B=new Hp(g.name,g.type),H=g.attributes;if(H){const oe=[];oe.map={};for(let be=0,Le=H.length;bev(r.nodeValue)&&r.nodeValue.includes(Ou),iB=r=>`${r.length===0?"":`${ye(r,g=>`[${g}]`).join(",")},`}[data-mce-bogus="all"]`,rW=(r,g)=>g.querySelectorAll(iB(r)),aB=r=>document.createTreeWalker(r,NodeFilter.SHOW_COMMENT,g=>oB(g)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),sB=r=>document.createTreeWalker(r,NodeFilter.SHOW_TEXT,g=>{if(oB(g)){const B=g.parentNode;return B&&Ot(nW,B.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),oW=r=>aB(r).nextNode()!==null,iW=r=>sB(r).nextNode()!==null,aW=(r,g)=>g.querySelector(iB(r))!==null,sW=(r,g)=>{ve(rW(r,g),B=>{const H=_r.fromDom(B);gu(H,"data-mce-bogus")==="all"?hs(H):ve(r,oe=>{Dc(H,oe)&&tc(H,oe)})})},Mk=r=>{let g=r.nextNode();for(;g!==null;)g.nodeValue=null,g=r.nextNode()},lB=I(Mk,aB),cB=I(Mk,sB),uB=(r,g)=>{const B=[{condition:U(aW,g),action:U(sW,g)},{condition:oW,action:lB},{condition:iW,action:cB}];let H=r,oe=!1;return ve(B,({condition:be,action:Le})=>{be(H)&&(oe||(H=r.cloneNode(!0),oe=!0),Le(H))}),H},fB=r=>{const g=Pl(r,"[data-mce-bogus]");ve(g,B=>{gu(B,"data-mce-bogus")==="all"?hs(B):Ch(B)?(xc(B,_r.fromText(pl)),hs(B)):Mc(B)})},dB=r=>{const g=Pl(r,"input");ve(g,B=>{tc(B,"name")})},lW=(r,g)=>{const B=tu(r),H=new RegExp(`^(<${B}[^>]*>( | |\\s| |
    |)<\\/${B}>[\r ]*|
    [\r -]*)$`);return g.replace(H,"")},lW=(r,g)=>{const B=r.getDoc(),H=Ac(_r.fromDom(r.getBody())),oe=_r.fromTag("div",B);ll(oe,"data-mce-bogus","all"),aa(oe,{position:"fixed",left:"-9999999px",top:"0"}),Fu(oe,g.innerHTML),uB(oe),fB(oe);const be=Fh(H);ii(be,oe);const Le=Sd(oe.dom.innerText);return hs(oe),Le},cW=(r,g,B)=>{let H;return g.format==="raw"?H=To.trim(Sd(cB(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=lW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=sW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!xb(_r.fromDom(B))&&v(H)?To.trim(H):H},dB=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new Hp("body",11):""),B=>cW(r,g,B)),hB=To.makeMap,AE=r=>{const g=[];r=r||{};const B=r.indent,H=hB(r.indent_before||""),oe=hB(r.indent_after||""),be=Lm.getEncodeFunc(r.entity_encoding||"raw",r.entities),Le=r.element_format!=="xhtml";return{start:(Ke,ut,At)=>{if(B&&H[Ke]&&g.length>0){const nn=g[g.length-1];nn.length>0&&nn!==` +]*)$`);return g.replace(H,"")},cW=(r,g)=>{const B=r.getDoc(),H=Ac(_r.fromDom(r.getBody())),oe=_r.fromTag("div",B);ll(oe,"data-mce-bogus","all"),aa(oe,{position:"fixed",left:"-9999999px",top:"0"}),Fu(oe,g.innerHTML),fB(oe),dB(oe);const be=Fh(H);ii(be,oe);const Le=Sd(oe.dom.innerText);return hs(oe),Le},uW=(r,g,B)=>{let H;return g.format==="raw"?H=To.trim(Sd(uB(B,r.serializer.getTempAttrs()).innerHTML)):g.format==="text"?H=cW(r,B):g.format==="tree"?H=r.serializer.serialize(B,g):H=lW(r,r.serializer.serialize(B,g)),g.format!=="text"&&!xb(_r.fromDom(B))&&v(H)?To.trim(H):H},hB=(r,g)=>Y.from(r.getBody()).fold($(g.format==="tree"?new Hp("body",11):""),B=>uW(r,g,B)),pB=To.makeMap,AE=r=>{const g=[];r=r||{};const B=r.indent,H=pB(r.indent_before||""),oe=pB(r.indent_after||""),be=Lm.getEncodeFunc(r.entity_encoding||"raw",r.entities),Le=r.element_format!=="xhtml";return{start:(Ke,ut,At)=>{if(B&&H[Ke]&&g.length>0){const nn=g[g.length-1];nn.length>0&&nn!==` `&&g.push(` `)}if(g.push("<",Ke),ut)for(let nn=0,un=ut.length;nn0){const nn=g[g.length-1];nn.length>0&&nn!==` `&&g.push(` @@ -3681,76 +3681,76 @@ Required: `+g.join(", "));return un[Le].apply(null,ut)},log:un=>{console.log(un, `)},doctype:Ke=>{g.push("",B?` `:"")},reset:()=>{g.length=0},getContent:()=>g.join("").replace(/\n$/,"")}},rx=(r={},g=zm())=>{const B=AE(r);return r.validate="validate"in r?r.validate:!0,{serialize:oe=>{const be=r.validate,Le={3:ut=>{var At;B.text((At=ut.value)!==null&&At!==void 0?At:"",ut.raw)},8:ut=>{var At;B.comment((At=ut.value)!==null&&At!==void 0?At:"")},7:ut=>{B.pi(ut.name,ut.value)},10:ut=>{var At;B.doctype((At=ut.value)!==null&&At!==void 0?At:"")},4:ut=>{var At;B.cdata((At=ut.value)!==null&&At!==void 0?At:"")},11:ut=>{let At=ut;if(At=At.firstChild)do Ke(At);while(At=At.next)}};B.reset();const Ke=ut=>{var At;const nn=Le[ut.type];if(nn)nn(ut);else{const un=ut.name,yn=un in g.getVoidElements();let Qn=ut.attributes;if(be&&Qn&&Qn.length>1){const rr=[];rr.map={};const Wn=g.getElementRule(ut.name);if(Wn){for(let ur=0,Tr=Wn.attributesOrder.length;ur{pB.add(g)});const mB=new Set;ve(["background-color"],g=>{mB.add(g)});const gB=["font","text-decoration","text-emphasis"],uW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),W3=(r,g)=>tt(uW(r,g)),fW=r=>pB.has(r),dW=r=>mB.has(r),vB=(r,g)=>de(W3(r,g),B=>fW(B)),hW=(r,g)=>vB(r,g)&&de(W3(r,g),B=>dW(B)),pW=r=>Te(r,g=>de(gB,B=>Br(g,B))),mW=(r,g,B)=>{const H=W3(r,g),oe=W3(r,B),be=Le=>{var Ke,ut;const At=(Ke=r.getStyle(g,Le))!==null&&Ke!==void 0?Ke:"",nn=(ut=r.getStyle(B,Le))!==null&&ut!==void 0?ut:"";return lr(At)&&lr(nn)&&At!==nn};return de(H,Le=>{const Ke=ut=>de(ut,At=>At===Le);if(!Ke(oe)&&Ke(gB)){const ut=pW(oe);return de(ut,be)}else return be(Le)})},yB=(r,g,B)=>Y.from(B.container()).filter(Mt).exists(H=>{const oe=r?0:-1;return g(H.data.charAt(B.offset()+oe))}),ME=U(yB,!0,Ry),EE=U(yB,!1,Ry),gW=r=>{const g=r.container();return Mt(g)&&(g.data.length===0||Wx(g.data)&&Pg.isBookmarkNode(g.parentNode))},L2=(r,g)=>B=>H4(r?0:-1,B).filter(g).isSome(),bB=r=>Jn(r)&&rs(_r.fromDom(r),"display")==="block",xB=r=>In(r)&&!rt(r),vW=L2(!0,bB),ha=L2(!1,bB),Y3=L2(!0,Gr),X3=L2(!1,Gr),_B=L2(!0,dt),Ek=L2(!1,dt),I2=L2(!0,xB),D2=L2(!1,xB),yW=r=>r.slice(0,-1),bW=(r,g,B)=>El(g,r)?yW(af(r,H=>B(H)||va(H,g))):[],wB=(r,g)=>bW(r,g,re),k1=(r,g)=>[r].concat(wB(r,g)),c6=(r,g,B)=>G4(r,g,B,gW),sfe=r=>g=>r.isBlock(ma(g)),OB=(r,g,B)=>De(k1(_r.fromDom(g.container()),r),sfe(B)),Fa=(r,g,B,H)=>c6(r,g.dom,B).forall(oe=>OB(g,B,H).fold(()=>!hm(oe,B,g.dom),be=>!hm(oe,B,g.dom)&&El(be,_r.fromDom(oe.container())))),SB=(r,g,B,H)=>OB(g,B,H).fold(()=>c6(r,g.dom,B).forall(oe=>!hm(oe,B,g.dom)),oe=>c6(r,oe.dom,B).isNone()),Ka=U(SB,!1),PE=U(SB,!0),lfe=U(Fa,!1),cfe=U(Fa,!0),xW=r=>h3(r).exists(Th),RE=(r,g,B,H)=>{const oe=Te(k1(_r.fromDom(B.container()),g),Le=>H.isBlock(ma(Le))),be=Ye(oe).getOr(g);return Op(r,be.dom,B).filter(xW)},kB=(r,g,B)=>h3(g).exists(Th)||RE(!0,r,g,B).isSome(),u6=(r,g,B)=>kC(g).exists(Th)||RE(!1,r,g,B).isSome(),TB=U(RE,!1),Ra=U(RE,!0),CB=r=>vo.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),AB=(r,g,B)=>{const H=Te(k1(_r.fromDom(g.container()),r),oe=>B.isBlock(ma(oe)));return Ye(H).getOr(r)},MB=(r,g,B)=>CB(g)?EE(g):EE(g)||Up(AB(r,g,B).dom,g).exists(EE),G3=(r,g,B)=>CB(g)?ME(g):ME(g)||Sp(AB(r,g,B).dom,g).exists(ME),EB=r=>ce(["pre","pre-wrap"],r),LE=r=>h3(r).bind(g=>cl(g,Wl)).exists(g=>EB(rs(g,"white-space"))),_W=(r,g)=>Up(r.dom,g).isNone(),wW=(r,g)=>Sp(r.dom,g).isNone(),PB=(r,g,B)=>_W(r,g)||wW(r,g)||Ka(r,g,B)||PE(r,g,B)||u6(r,g,B)||kB(r,g,B),OW=r=>P(r)&&In(r)&&xC(r),SW=(r,g)=>B=>OW(new Xl(B,r)[g]()),ufe=(r,g)=>{const B=Sp(r.dom,g).getOr(g),H=SW(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},kW=(r,g)=>{const B=Up(r.dom,g).getOr(g),H=SW(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},RB=(r,g,B)=>LE(g)?!1:PB(r,g,B)||MB(r,g,B)||G3(r,g,B),Pk=(r,g,B)=>LE(g)?!1:Ka(r,g,B)||lfe(r,g,B)||u6(r,g,B)||MB(r,g,B)||kW(r,g),TW=r=>{const g=r.container(),B=r.offset();return Mt(g)&&BLE(g)?!1:PE(r,g,B)||cfe(r,g,B)||kB(r,g,B)||G3(r,g,B)||ufe(r,g),IE=(r,g,B)=>Pk(r,g,B)||K3(r,TW(g),B),us=(r,g)=>Hb(r.charAt(g)),DE=(r,g)=>Ry(r.charAt(g)),f6=r=>{const g=r.container();return Mt(g)&&tr(g.data,Pc)},LB=r=>{const g=r.split("");return ye(g,(B,H)=>Hb(B)&&H>0&&H{const oe=g.data,be=vo(g,0);return!B&&us(oe,0)&&!IE(r,be,H)?(g.data=" "+oe.slice(1),!0):B&&DE(oe,0)&&Pk(r,be,H)?(g.data=Pc+oe.slice(1),!0):!1},IB=r=>{const g=r.data,B=LB(g);return B!==g?(r.data=B,!0):!1},zE=(r,g,B,H)=>{const oe=g.data,be=vo(g,oe.length-1);return!B&&us(oe,oe.length-1)&&!IE(r,be,H)?(g.data=oe.slice(0,-1)+" ",!0):B&&DE(oe,oe.length-1)&&K3(r,be,H)?(g.data=oe.slice(0,-1)+Pc,!0):!1},DB=(r,g,B)=>{const H=g.container();if(!Mt(H))return Y.none();if(f6(g)){const oe=BE(r,H,!1,B)||IB(H)||zE(r,H,!1,B);return Bs(oe,g)}else if(IE(r,g,B)){const oe=BE(r,H,!0,B)||zE(r,H,!0,B);return Bs(oe,g)}else return Y.none()},CW=r=>{const g=_r.fromDom(r.getBody());r.selection.isCollapsed()&&DB(g,vo.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},NE=(r,g,B,H)=>{if(B===0)return;const oe=_r.fromDom(r),be=vs(oe,At=>H.isBlock(ma(At))).getOr(oe),Le=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&K3(be,vo(r,r.data.length),H),ut=g===0&&Pk(be,vo(r,0),H);r.replaceData(g,B,Ut(Le,4,ut,Ke))},d6=(r,g,B)=>{const H=r.data.slice(g),oe=H.length-gr(H).length;NE(r,g,oe,B)},FE=(r,g,B)=>{const H=r.data.slice(0,g),oe=H.length-sr(H).length;NE(r,g-oe,oe,B)},$E=(r,g,B,H,oe=!0)=>{const be=sr(r.data).length,Le=oe?r:g,Ke=oe?g:r;return oe?Le.appendData(Ke.data):Le.insertData(0,Ke.data),hs(_r.fromDom(Ke)),H&&d6(Le,be,B),Le},AW=(r,g)=>{const B=r.container(),H=r.offset();return!vo.isTextPosition(r)&&B===g.parentNode&&H>vo.before(g).offset()},MW=(r,g)=>AW(g,r)?vo(g.container(),g.offset()-1):g,EW=r=>Mt(r)?vo(r,0):vo.before(r),PW=r=>Mt(r)?vo(r,r.data.length):vo.after(r),BB=r=>Hh(r.previousSibling)?Y.some(PW(r.previousSibling)):r.previousSibling?Ym(r.previousSibling):Y.none(),h6=r=>Hh(r.nextSibling)?Y.some(EW(r.nextSibling)):r.nextSibling?ph(r.nextSibling):Y.none(),VE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>Up(r,vo.before(B))).orThunk(()=>Sp(r,vo.after(g))),RW=(r,g)=>Sp(r,vo.after(g)).orThunk(()=>Up(r,vo.before(g))),LW=(r,g)=>BB(g).orThunk(()=>h6(g)).orThunk(()=>VE(r,g)),IW=(r,g)=>h6(g).orThunk(()=>BB(g)).orThunk(()=>RW(r,g)),DW=(r,g,B)=>r?IW(g,B):LW(g,B),BW=(r,g,B)=>DW(r,g,B).map(U(MW,B)),zB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},zW=r=>g=>g.dom===r,NW=(r,g)=>g&&Ot(r.schema.getBlockElements(),ma(g)),NB=(r,g,B)=>{if(Ai(r,g)){const H=_r.fromHtml('
    ');return B?ve(vc(g),oe=>{dk(oe)||hs(oe)}):uf(g),ii(g,H),Y.some(vo.before(H.dom))}else return Y.none()},FW=(r,g,B,H)=>{const oe=sf(r).filter(Ml),be=Bc(r).filter(Ml);return hs(r),yl(oe,be,g,(Le,Ke,ut)=>{const At=Le.dom,nn=Ke.dom,un=At.data.length;return $E(At,nn,B,H),ut.container()===nn?vo(At,un):ut}).orThunk(()=>(H&&(oe.each(Le=>FE(Le.dom,Le.dom.length,B)),be.each(Le=>d6(Le.dom,0,B))),g))},$W=(r,g)=>Ot(r.schema.getTextInlineElements(),ma(g)),T0=(r,g,B,H=!0,oe=!1)=>{const be=BW(g,r.getBody(),B.dom),Le=vs(B,U(NW,r),zW(r.getBody())),Ke=FW(B,be,r.schema,$W(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Le.bind(ut=>NB(r.schema,ut,oe)).fold(()=>{H&&zB(r,g,Ke)},ut=>{H&&zB(r,g,Y.some(ut))})},VW=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,FB=r=>VW.test(r),Nw=(r,g)=>yd(_r.fromDom(g),_y(r))&&!lh(r.schema,g)&&r.dom.isEditable(g),$B=r=>{var g;return cc.DOM.getStyle(r,"direction",!0)==="rtl"||FB((g=r.textContent)!==null&&g!==void 0?g:"")},VB=(r,g,B)=>Te(cc.DOM.getParents(B.container(),"*",g),r),ox=(r,g,B)=>{const H=VB(r,g,B);return Y.from(H[H.length-1])},UB=(r,g,B)=>{const H=My(g,r),oe=My(B,r);return P(H)&&H===oe},jB=r=>s1(r)||Um(r),Gu=(r,g)=>{const B=g.container(),H=g.offset();return r?_p(B)?Mt(B.nextSibling)?vo(B.nextSibling,0):vo.after(B):s1(g)?vo(B,H+1):g:_p(B)?Mt(B.previousSibling)?vo(B.previousSibling,B.previousSibling.data.length):vo.before(B):Um(g)?vo(B,H-1):g},QB=U(Gu,!0),HB=U(Gu,!1),ZB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},UW=r=>{r.execCommand("delete")},p6=r=>ZB(r,"Delete"),B2=r=>ZB(r,"ForwardDelete"),jW=r=>g=>Ia(jc(g),r,va),QW=r=>Np(r)||av(r),Xc=(r,g)=>El(r,g)?cl(g,QW,jW(r)):Y.none(),J3=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},Fw=(r,g,B)=>zi(ph(B),Ym(B),(H,oe)=>{const be=Gu(!0,H),Le=Gu(!1,oe),Ke=Gu(!1,g);return r?Sp(B,Ke).exists(ut=>ut.isEqual(Le)&&g.isEqual(be)):Up(B,Ke).exists(ut=>ut.isEqual(be)&&g.isEqual(Le))}).getOr(!0),qB=r=>(Kf(r)?sf(r):Cc(r)).bind(qB).orThunk(()=>Y.some(r)),$w=(r,g,B,H=!0)=>{var oe;g.deleteContents();const be=qB(B).getOr(B),Le=_r.fromDom((oe=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&oe!==void 0?oe:B.dom);if(Le.dom===r.getBody()?J3(r,H):Ai(r.schema,Le,{checkRootAsContent:!1})&&(xp(Le),H&&r.selection.setCursorLocation(Le.dom,0)),!va(B,Le)){const Ke=Ia(jc(Le),B)?[]:td(Le);ve(Ke.concat(vc(B)),ut=>{!va(ut,Le)&&!El(ut,Le)&&Ai(r.schema,ut)&&hs(ut)})}},C0=r=>g=>va(r,g),Vw=r=>Pl(r,"td,th"),gc=(r,g)=>Tw(_r.fromDom(r),g),Rk=r=>zi(r.startTable,r.endTable,(g,B)=>{const H=_c(g,be=>va(be,B)),oe=_c(B,be=>va(be,g));return!H&&!oe?r:{...r,startTable:H?Y.none():r.startTable,endTable:oe?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),WB=r=>Rk(r),YB=(r,g)=>{const B=gc(r.startContainer,g),H=gc(r.endContainer,g),oe=B.isSome(),be=H.isSome(),Le=zi(B,H,va).getOr(!1);return WB({startTable:B,endTable:H,isStartInTable:oe,isEndInTable:be,isSameTable:Le,isMultiTable:!Le&&oe&&be})},Lk=(r,g)=>({start:r,end:g}),UE=(r,g,B)=>({rng:r,table:g,cells:B}),Uw=kl.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),eS=(r,g)=>bu(_r.fromDom(r),"td,th",g),Ik=r=>!va(r.start,r.end),m6=(r,g)=>Tw(r.start,g).bind(B=>Tw(r.end,g).bind(H=>Bs(va(B,H),B))),XB=(r,g)=>!Ik(r)&&m6(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),GB=(r,g)=>{const B=eS(r.startContainer,g),H=eS(r.endContainer,g);return zi(B,H,Lk)},KB=r=>g=>Tw(g,r).bind(B=>Je(Vw(B)).map(H=>Lk(g,H))),JB=r=>g=>Tw(g,r).bind(B=>Ye(Vw(B)).map(H=>Lk(H,g))),g6=r=>g=>m6(g,r).map(B=>UE(g,B,Vw(B))),jw=(r,g,B,H)=>{if(B.collapsed||!r.forall(Ik))return Y.none();if(g.isSameTable){const oe=r.bind(g6(H));return Y.some({start:oe,end:oe})}else{const oe=eS(B.startContainer,H),be=eS(B.endContainer,H),Le=oe.bind(KB(H)).bind(g6(H)),Ke=be.bind(JB(H)).bind(g6(H));return Y.some({start:Le,end:Ke})}},jE=(r,g)=>Qe(r,B=>va(B,g)),Dk=r=>zi(jE(r.cells,r.rng.start),jE(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),HW=(r,g,B)=>r.exists(H=>XB(H,B)&&S3(H.start,g)),ez=(r,g)=>{const{startTable:B,endTable:H}=g,oe=r.cloneRange();return B.each(be=>oe.setStartAfter(be.dom)),H.each(be=>oe.setEndBefore(be.dom)),oe},tz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>oe.or(be)).bind(oe=>{const{isSameTable:be}=g,Le=Dk(oe).getOr([]);if(be&&oe.cells.length===Le.length)return Y.some(Uw.fullTable(oe.table));if(Le.length>0){if(be)return Y.some(Uw.partialTable(Le,Y.none()));{const Ke=ez(B,g);return Y.some(Uw.partialTable(Le,Y.some({...g,rng:Ke})))}}else return Y.none()}),nz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>{const Le=oe.bind(Dk).getOr([]),Ke=be.bind(Dk).getOr([]);if(Le.length>0&&Ke.length>0){const ut=ez(B,g);return Y.some(Uw.multiTable(Le,Ke,ut))}else return Y.none()}),rz=(r,g)=>{const B=C0(r),H=GB(g,B),oe=YB(g,B);return HW(H,g,B)?H.map(be=>Uw.singleCellTable(g,be.start)):oe.isMultiTable?nz(H,oe,g,B):tz(H,oe,g,B)},Bk=r=>ve(r,g=>{tc(g,"contenteditable"),xp(g)}),oz=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(_r.fromDom),iz=(r,g,B)=>{B.each(H=>{g?hs(H):(xp(H),r.selection.setCursorLocation(H.dom,0))})},v6=(r,g,B,H)=>{const oe=B.cloneRange();H?(oe.setStart(B.startContainer,B.startOffset),oe.setEndAfter(g.dom.lastChild)):(oe.setStartBefore(g.dom.firstChild),oe.setEnd(B.endContainer,B.endOffset)),y6(r,oe,g,!1).each(be=>be())},QE=r=>{const g=k2(r),B=_r.fromDom(r.selection.getNode());Ir(B.dom)&&Ai(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>va(H,B))&&ll(B,"data-mce-selected","1")},HE=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),oe=B.bind(({rng:be,isStartInTable:Le})=>{const Ke=oz(r,Le?be.endContainer:be.startContainer);be.deleteContents(),iz(r,Le,Ke.filter(U(Ai,r.schema)));const ut=Le?g[0]:g[g.length-1];return v6(r,ut,H,Le),Ai(r.schema,ut)?Y.none():Y.some(Le?g.slice(1):g.slice(0,-1))}).getOr(g);Bk(oe),QE(r)}),az=(r,g,B,H)=>Y.some(()=>{const oe=r.selection.getRng(),be=g[0],Le=B[B.length-1];v6(r,be,oe,!0),v6(r,Le,oe,!1);const Ke=Ai(r.schema,be)?g:g.slice(1),ut=Ai(r.schema,Le)?B:B.slice(0,-1);Bk(Ke.concat(ut)),H.deleteContents(),QE(r)}),y6=(r,g,B,H=!0)=>Y.some(()=>{$w(r,g,B,H)}),sz=(r,g)=>Y.some(()=>T0(r,!1,g)),lz=(r,g,B)=>rz(g,B).bind(H=>H.fold(U(y6,r),U(sz,r),U(HE,r),U(az,r))),cz=(r,g)=>zk(r,g),ZE=(r,g,B,H)=>b6(g,H).fold(()=>lz(r,g,B),oe=>cz(r,oe)),uz=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.selection.getRng();return B.length!==0?HE(r,B,Y.none()):ZE(r,H,oe,g)},qE=(r,g)=>De(k1(g,r),my),b6=(r,g)=>De(k1(g,r),Jl("caption")),fz=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).bind(be=>qE(g,_r.fromDom(be.getNode())).bind(Le=>va(Le,H)?Y.none():Y.some(k))),zk=(r,g)=>Y.some(()=>{xp(g),r.selection.setCursorLocation(g.dom,0)}),dz=(r,g,B,H)=>ph(r.dom).bind(oe=>Ym(r.dom).map(be=>g?B.isEqual(oe)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(oe))).getOr(!0),WE=(r,g)=>zk(r,g),x6=(r,g,B)=>b6(r,_r.fromDom(B.getNode())).fold(()=>Y.some(k),H=>Bs(!va(H,g),k)),YE=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).fold(()=>Y.some(k),be=>dz(H,B,oe,be)?WE(r,H):x6(g,H,be)),_6=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return qE(B,H).bind(be=>Ai(r.schema,be,{checkRootAsContent:!1})?zk(r,be):fz(r,B,g,be,oe))},hz=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return Ai(r.schema,H)?zk(r,H):YE(r,B,g,H,oe)},Nk=(r,g)=>r?_B(g):Ek(g),XE=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Nk(g,B)||Op(g,r.getBody(),B).exists(H=>Nk(g,H))},Fk=(r,g,B)=>{const H=_r.fromDom(r.getBody());return b6(H,B).fold(()=>_6(r,g,H,B).orThunk(()=>Bs(XE(r,g),k)),oe=>hz(r,g,H,oe))},$k=(r,g)=>{const B=_r.fromDom(r.selection.getStart(!0)),H=k2(r);return r.selection.isCollapsed()&&H.length===0?Fk(r,g,B):uz(r,B,H)},z2=(r,g)=>{let B=g;for(;B&&B!==r;){if(pn(B)||In(B))return B;B=B.parentNode}return null},tS=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],GE=To.each,Vk=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Le)=>{if(be.nodeName!==Le.nodeName||be.nodeType!==Le.nodeType)return!1;const Ke=At=>{const nn={};return GE(g.getAttribs(At),un=>{const yn=un.nodeName.toLowerCase();yn!=="style"&&!oe(yn)&&(nn[yn]=g.getAttrib(At,yn))}),nn},ut=(At,nn)=>{for(const un in At)if(Ot(At,un)){const yn=nn[un];if(M(yn)||At[un]!==yn)return!1;delete nn[un]}for(const un in nn)if(Ot(nn,un))return!1;return!0};return ne(be)&&ne(Le)&&(!ut(Ke(be),Ke(Le))||!ut(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Le,"style"))))?!1:!pm(be)&&!pm(Le)},oe=be=>de(tS,Le=>Br(be,Le))||B.has(be);return{compare:H,isAttributeInternal:oe}},Qw=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),N2=r=>r.name==="summary",pz=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},mz=(r,g,B,H)=>{const oe=B.name;for(let be=0,Le=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&pz(B,oe=>{mz(r,g,oe,H)}),H},KE=(r,g)=>{const B=(H,oe)=>{Ge(H,be=>{const Le=Me(be.nodes);ve(be.filter.callbacks,Ke=>{for(let ut=Le.length-1;ut>=0;ut--){const At=Le[ut];(!(oe?At.attr(be.filter.name)!==void 0:At.name===be.filter.name)||T(At.parent))&&Le.splice(ut,1)}Le.length>0&&Ke(Le,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},JE=(r,g,B,H={})=>{const oe=ZW(r,g,B);KE(oe,H)},eP=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new Hp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new Hp("#text",3)).value=Pc},qW=r=>{var g;return ix(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Pc},ix=(r,g)=>{const B=r==null?void 0:r.firstChild;return P(B)&&B===r.lastChild&&B.name===g},Hw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},w6=(r,g,B,H)=>H.isEmpty(g,B,oe=>Hw(r,oe)),Rh=(r,g)=>P(r)&&(g(r)||r.name==="br"),WW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},tP=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const oe of H)B&&!g.isValidChild(B.name,oe.name)&&tP(oe,g,B);r.unwrap()}},Ev=(r,g,B,H=k)=>{const oe=g.getTextBlockElements(),be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=To.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ut=new Set,At=nn=>nn!==B&&!Ke[nn.name];for(let nn=0;nn1)if(gz(g,un,yn))tP(un,g);else{Wn.reverse(),Qn=Wn[0].clone(),H(Qn);let ur=Qn;for(let Tr=0;Tr0?(rr=Wn[Tr].clone(),H(rr),ur.append(rr)):rr=ur;for(let Wr=Wn[Tr].firstChild;Wr&&Wr!==Wn[Tr+1];){const Qr=Wr.next;rr.append(Wr),Wr=Qr}ur=rr}w6(g,be,Le,Qn)?yn.insert(un,Wn[0],!0):(yn.insert(Qn,Wn[0],!0),yn.insert(un,Qn)),yn=Wn[0],(w6(g,be,Le,yn)||ix(yn,"br"))&&yn.empty().remove()}else if(un.parent){if(un.name==="li"){let ur=un.prev;if(ur&&(ur.name==="ul"||ur.name==="ol")){ur.append(un);continue}if(ur=un.next,ur&&(ur.name==="ul"||ur.name==="ol")&&ur.firstChild){ur.insert(un,ur.firstChild,!0);continue}const Tr=new Hp("ul",1);H(Tr),un.wrap(Tr);continue}if(g.isValidChild(un.parent.name,"div")&&g.isValidChild("div",un.name)){const ur=new Hp("div",1);H(ur),un.wrap(ur)}else tP(un,g)}}},ml=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},gz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&ml(B,"a")?!0:N2(B)&&Qw(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,YW=(r,g,B,H)=>{const oe=document.createRange();return oe.setStart(r,g),oe.setEnd(B,H),oe},XW=r=>{const g=vo.fromRangeStart(r),B=vo.fromRangeEnd(r),H=r.commonAncestorContainer;return Op(!1,H,B).map(oe=>!hm(g,B,H)&&hm(g,oe,H)?YW(g.container(),g.offset(),oe.container(),oe.offset()):r).getOr(r)},Rc=r=>r.collapsed?r:XW(r),vz=r=>P(r.firstChild)&&r.firstChild===r.lastChild,Uk=r=>r.name==="br"||r.value===Pc,jk=(r,g)=>r.getBlockElements()[g.name]&&vz(g)&&Uk(g.firstChild),Qk=(r,g)=>{const B=r.getNonEmptyElements();return P(g)&&(g.isEmpty(B)||jk(r,g))},Hk=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),Qk(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},yz=r=>{var g,B;const H=r.firstChild,oe=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),oe&&oe.id==="mce_marker"&&((B=oe.parentNode)===null||B===void 0||B.removeChild(oe)),r},ffe=(r,g,B)=>{const H=g.serialize(B),oe=r.createFragment(H);return yz(oe)},dfe=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},hfe=r=>r.data===Pc||gn(r),pfe=r=>P(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&hfe(r.firstChild),GW=r=>!r.firstChild||pfe(r),mfe=r=>r.length>0&&GW(r[r.length-1])?r.slice(0,-1):r,nP=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},KW=(r,g)=>!!nP(r,g),gfe=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},JW=(r,g)=>{const B=vo.before(r),oe=k0(g).next(B);return oe?oe.toRange():null},Vu=(r,g)=>{const B=vo.after(r),oe=k0(g).prev(B);return oe?oe.toRange():null},bz=(r,g,B,H)=>{const oe=gfe(r,H),be=r.parentNode;return be&&(be.insertBefore(oe[0],r),To.each(g,Le=>{be.insertBefore(Le,r)}),be.insertBefore(oe[1],r),be.removeChild(r)),Vu(g[g.length-1],B)},xz=(r,g,B)=>{const H=r.parentNode;return H&&To.each(g,oe=>{H.insertBefore(oe,r)}),JW(r,B)},eY=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),Vu(g[0],B)),tY=(r,g,B,H)=>{const oe=ffe(g,r,H),be=nP(g,B.startContainer),Le=mfe(dfe(oe.firstChild)),Ke=1,ut=2,At=g.getRoot(),nn=un=>{const yn=vo.fromRangeStart(B),Qn=k0(g.getRoot()),rr=un===Ke?Qn.prev(yn):Qn.next(yn),Wn=rr==null?void 0:rr.getNode();return Wn?nP(g,Wn)!==be:!0};return be?nn(Ke)?xz(be,Le,At):nn(ut)?eY(be,Le,At,g):bz(be,Le,At,B):null},nY=["pre"],eg=(r,g,B,H)=>{var oe;const be=g.firstChild,Le=g.lastChild,Ke=Le.attr("data-mce-type")==="bookmark"?Le.prev:Le,ut=be===Ke,At=ce(nY,be.name);if(ut&&At){const nn=be.attr("contenteditable")!=="false",un=((oe=r.getParent(B,r.isBlock))===null||oe===void 0?void 0:oe.nodeName.toLowerCase())===be.name,yn=Y.from(z2(H,B)).forall(pn);return nn&&un&&yn}else return!1},A0=Ir,rY=(r,g,B)=>{if(P(B)){const H=r.getParent(g.endContainer,A0);return B===H&&S3(_r.fromDom(B),g)}else return!1},rP=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const oe=B.firstChild,be=B.lastChild;!oe||oe===be&&oe.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},oP=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(_r.fromDom).each(H=>_b(H,B))},oY=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const oe=r.getBody(),be=Vk(r),Le="*[data-mce-fragment]",Ke=H.select(Le);To.each(Ke,ut=>{const At=yn=>P(B[yn.nodeName.toLowerCase()]),nn=yn=>yn.childNodes.length===1;if((yn=>!(vB(H,yn)||hW(H,yn)))(ut)&&At(ut)&&nn(ut)){const yn=W3(H,ut),Qn=(Tr,Wr)=>Oe(Tr,Qr=>ce(Wr,Qr)),rr=Tr=>nn(ut)&&H.is(Tr,Le)&&At(Tr)&&(Tr.nodeName===ut.nodeName&&Qn(yn,W3(H,Tr))||rr(Tr.children[0])),Wn=Tr=>P(Tr)&&Tr!==oe&&(be.compare(ut,Tr)||Wn(Tr.parentElement)),ur=Tr=>P(Tr)&&Tr!==oe&&H.is(Tr,Le)&&(mW(H,ut,Tr)||ur(Tr.parentElement));(rr(ut.children[0])||Wn(ut.parentElement)&&!ur(ut.parentElement))&&H.remove(ut,!0)}})}},iY=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},Zk=r=>{To.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},O6=r=>!!r.getAttribute("data-mce-fragment"),iP=(r,g)=>P(g)&&!r.schema.getVoidElements()[g.nodeName],aY=(r,g)=>{var B,H,oe;let be;const Le=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ut=z2(r.getBody(),g);if(ut&&Le.getContentEditable(ut)==="false"){Le.remove(g),Ke.select(ut);return}let At=Le.createRng();const nn=g.previousSibling;if(Mt(nn)){At.setStart(nn,(H=(B=nn.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const Qn=g.nextSibling;Mt(Qn)&&(nn.appendData(Qn.data),(oe=Qn.parentNode)===null||oe===void 0||oe.removeChild(Qn))}else At.setStartBefore(g),At.setEndBefore(g);const un=Qn=>{let rr=vo.fromRangeStart(Qn);return rr=k0(r.getBody()).next(rr),rr==null?void 0:rr.toRange()},yn=Le.getParent(g,Le.isBlock);if(Le.remove(g),yn&&Le.isEmpty(yn)){const Qn=A0(yn);uf(_r.fromDom(yn)),At.setStart(yn,0),At.setEnd(yn,0),!Qn&&!O6(yn)&&(be=un(At))?(At=be,Le.remove(yn)):Le.add(yn,Le.create("br",Qn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(At)},Pv=r=>{const g=r.dom,B=Rc(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,A0);rY(g,B,H)?y6(r,B,_r.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Mt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},sY=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},lY=(r,g,B)=>{var H;return de(B.children(),Qw)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},M0=(r,g,B)=>{var H,oe;const be=r.selection,Le=r.dom,Ke=r.parser,ut=B.merge,At=rx({validate:!0},r.schema),nn='';B.preserve_zwsp||(g=Sd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,nn);let un=be.getRng();const yn=un.startContainer,Qn=r.getBody();yn===Qn&&be.isCollapsed()&&Le.isBlock(Qn.firstChild)&&iP(r,Qn.firstChild)&&Le.isEmpty(Qn.firstChild)&&(un=Le.createRng(),un.setStart(Qn.firstChild,0),un.setEnd(Qn.firstChild,0),be.setRng(un)),be.isCollapsed()||Pv(r);const rr=be.getNode(),Wn={context:rr.nodeName.toLowerCase(),data:B.data,insert:!0},ur=Ke.parse(g,Wn);if(B.paste===!0&&Hk(r.schema,ur)&&KW(Le,rr))return un=tY(At,Le,be.getRng(),ur),un&&be.setRng(un),g;B.paste===!0&&eg(Le,ur,rr,r.getBody())&&((H=ur.firstChild)===null||H===void 0||H.unwrap()),iY(ur);let Tr=ur.lastChild;if(Tr&&Tr.attr("id")==="mce_marker"){const Wr=Tr;for(Tr=Tr.prev;Tr;Tr=Tr.walk(!0))if(Tr.type===3||!Le.isBlock(Tr.name)){Tr.parent&&r.schema.isValidChild(Tr.parent.name,"span")&&Tr.parent.insert(Wr,Tr,Tr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(rr),!Wn.invalid&&!lY(Le,rr,ur))g=At.serialize(ur),rP(r,g,rr);else{r.selection.setContent(nn);let Wr=be.getNode(),Qr;const lo=r.getBody();for(vn(Wr)?Wr=Qr=lo:Qr=Wr;Qr&&Qr!==lo;)Wr=Qr,Qr=Qr.parentNode;g=Wr===lo?lo.innerHTML:Le.getOuterHTML(Wr);const Zo=Ke.parse(g),li=sY(Zo),Mi=li.bind(WW).getOr(Zo);li.each(Fi=>Fi.replace(ur));const Co=ur.children(),yo=(oe=ur.parent)!==null&&oe!==void 0?oe:Zo;ur.unwrap();const Vo=Te(Co,Fi=>gz(r.schema,Fi,yo));Ev(Vo,r.schema,Mi),JE(Ke.getNodeFilters(),Ke.getAttributeFilters(),Zo),g=At.serialize(Zo),Wr===lo?Le.setHTML(lo,g):Le.setOuterHTML(Wr,g)}return oY(r,ut),aY(r,Le.get("mce_marker")),Zk(r.getBody()),oP(Le,be.getStart(),r.schema),Jc(r.schema,r.getBody(),be.getStart()),g},F2=r=>r instanceof Hp,T1=r=>{nx(r)&&ph(r.getBody()).each(g=>{const B=g.getNode(),H=dt(B)?ph(B).getOr(g):g;r.selection.setRng(H.toRange())})},aP=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&T1(r)},rc=(r,g,B,H)=>{if(B=Sd(B),B.length===0||/^\s+$/.test(B)){const oe='
    ';g.nodeName==="TABLE"?B=""+oe+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+oe+"
  • ");const be=tu(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=oe,B=r.dom.createHTML(be,qd(r),B)):B||(B=oe),aP(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=rx({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const oe=xb(_r.fromDom(g))?B:To.trim(B);return aP(r,oe,H.no_selection),{content:oe,html:oe}}},nS=(r,g,B,H)=>{JE(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const oe=rx({validate:!1},r.schema).serialize(B),be=Sd(xb(_r.fromDom(g))?oe:To.trim(oe));return aP(r,be,H.no_selection),{content:B,html:be}},S6=(r,g,B)=>Y.from(r.getBody()).map(H=>F2(g)?nS(r,H,g,B):rc(r,H,g,B)).getOr({content:g,html:F2(B.content)?"":B.content}),sP=r=>A(r)?r:re,lP=(r,g,B)=>{let H=r.dom;const oe=sP(B);for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H),Le=g(be);if(Le.isSome())return Le;if(oe(be))break}return Y.none()},qk=(r,g,B)=>{const H=g(r),oe=sP(B);return H.orThunk(()=>oe(r)?Y.none():lP(r,g,oe))},cP=Wb,k6=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let oe=0;oe{const be=r.dom.getRoot();if(g===be)return!1;const Le=r.dom.getParent(g,Ke=>k6(r,Ke,B)?!0:Ke.parentNode===be||!!C1(r,Ke,B,H,!0));return!!C1(r,Le,B,H,oe)},Wk=(r,g,B)=>Ed(B)&&cP(g,B.inline)||Cv(B)&&cP(g,B.block)?!0:Gm(B)?ne(g)&&r.is(g,B.selector):!1,fP=(r,g,B,H,oe,be)=>{const Le=B[H],Ke=H==="attributes";if(A(B.onmatch))return B.onmatch(g,B,H);if(Le){if(Sn(Le)){for(let ut=0;ut{const be=r.formatter.get(B),Le=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return uP(r,H,g,B,oe);if(H=r.selection.getNode(),uP(r,H,g,B,oe))return!0;const be=r.selection.getStart();return!!(be!==H&&uP(r,be,g,B,oe))},C6=(r,g,B)=>{const H=[],oe={},be=r.selection.getStart();return r.dom.getParent(be,Le=>{for(let Ke=0;Ke{const B=oe=>va(oe,_r.fromDom(r.getBody())),H=(oe,be)=>C1(r,oe.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(oe=>qk(_r.fromDom(oe),be=>Fe(g,Le=>H(be,Le)),B)).getOrNull()},uY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const oe=r.selection.getStart(),be=R3(H,oe);for(let Le=B.length-1;Le>=0;Le--){const Ke=B[Le];if(!Gm(Ke))return!0;for(let ut=be.length-1;ut>=0;ut--)if(H.is(be[ut],Ke.selector))return!0}}return!1},fY=(r,g,B)=>Ie(B,(H,oe)=>{const be=uk(r,oe);return r.formatter.matchNode(g,oe,{},be)?H.concat([oe]):H},[]),Yk=Ou,dY=(r,g)=>r.importNode(g,!0),dP=r=>{if(r){const g=new Xl(r,r);for(let B=g.current();B;B=g.next())if(Mt(B))return B}return null},hP=r=>{const g=_r.fromTag("span");return Tu(g,{id:y3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&ii(g,_r.fromText(Yk)),g},hY=r=>{const g=dP(r);return g&&g.data.charAt(0)===Yk&&g.deleteData(0,1),g},A6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(D3(g))T0(r,!1,_r.fromDom(g),B,!0);else{const be=oe.getRng(),Le=H.getParent(g,H.isBlock),Ke=be.startContainer,ut=be.startOffset,At=be.endContainer,nn=be.endOffset,un=hY(g);H.remove(g,!0),Ke===un&&ut>0&&be.setStart(un,ut-1),At===un&&nn>0&&be.setEnd(un,nn-1),Le&&H.isEmpty(Le)&&xp(_r.fromDom(Le)),oe.setRng(be)}},M6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(g)A6(r,g,B);else if(g=jb(r.getBody(),oe.getStart()),!g)for(;g=H.get(y3);)A6(r,g,B)},pY=(r,g,B)=>{var H,oe;const be=r.dom,Le=be.getParent(B,U(E3,r.schema));Le&&be.isEmpty(Le)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(a1(_r.fromDom(B)),be.isEmpty(B)?(oe=B.parentNode)===null||oe===void 0||oe.replaceChild(g,B):be.insertAfter(g,B))},_z=(r,g)=>(r.appendChild(g),g),pP=(r,g)=>{var B;const H=Pe(r,(be,Le)=>_z(be,Le.cloneNode(!1)),g),oe=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return _z(H,oe.createTextNode(Yk))},mY=(r,g,B,H,oe,be)=>{const Le=r.formatter,Ke=r.dom,ut=Te(tt(Le.get()),un=>un!==H&&!tr(un,"removeformat")),At=fY(r,B,ut);if(Te(At,un=>!BC(r,un,H)).length>0){const un=B.cloneNode(!1);return Ke.add(g,un),Le.remove(H,oe,un,be),Ke.remove(un),Y.some(un)}else return Y.none()},mP=r=>K_(r,f0(r).replace(new RegExp(`${Pc}$`)," ")),Dg=(r,g)=>{const B=()=>{g!==null&&!r.dom.isEmpty(g)&&sf(_r.fromDom(g)).each(H=>{Ml(H)?mP(H):Qc(H,oe=>Ml(oe)).each(oe=>{Ml(oe)&&mP(oe)})})};r.once("input",H=>{H.data&&!Ry(H.data)&&(H.isComposing?r.once("compositionend",()=>{B()}):B())})},gY=(r,g,B)=>{let H;const oe=r.selection,be=r.formatter.get(g);if(!be)return;const Le=oe.getRng();let Ke=Le.startOffset;const At=Le.startContainer.nodeValue;H=jb(r.getBody(),oe.getStart());const nn=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(At&&Ke>0&&Ke{const oe=r.dom,be=r.selection;let Le=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ut=be.getRng(),At=ut.startContainer,nn=ut.startOffset;let un=At;Mt(At)&&(nn!==At.data.length&&(Le=!0),un=un.parentNode);const yn=[];let Qn;for(;un;){if(C1(r,un,g,B,H)){Qn=un;break}un.nextSibling&&(Le=!0),yn.push(un),un=un.parentNode}if(Qn)if(Le){const rr=be.getBookmark();ut.collapse(!0);let Wn=Xb(oe,ut,Ke,!0);Wn=Xo(Wn),r.formatter.remove(g,B,Wn,H),be.moveToBookmark(rr)}else{const rr=jb(r.getBody(),Qn),Wn=P(rr)?oe.getParents(Qn.parentNode,q,rr):[],ur=hP(!1).dom;pY(r,ur,rr??Qn);const Tr=mY(r,ur,Qn,g,B,H),Wr=pP([...yn,...Tr.toArray(),...Wn],ur);rr&&A6(r,rr,P(rr)),be.setCursorLocation(Wr,1),Dg(r,ur),oe.isEmpty(Qn)&&oe.remove(Qn)}},gP=(r,g,B)=>{const H=r.selection,oe=r.getBody();M6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===Yk&&M6(r,jb(oe,H.getStart()),!0),(g===37||g===39)&&M6(r,jb(oe,H.getStart()),!0)},vP=r=>Mt(r)&&$r(r.data,Pc),Oz=r=>{r.on("mouseup keydown",g=>{gP(r,g.keyCode,vP(r.selection.getRng().endContainer))})},yP=r=>{const g=hP(!1),B=pP(r,g.dom);return{caretContainer:g,caretPosition:vo(B,0)}},Sz=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return xc(_r.fromDom(r),B),hs(_r.fromDom(r)),H},vY=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return r.insertNode(B.dom),H},E6=(r,g)=>{if(Xm(g.dom))return!1;const B=r.schema.getTextInlineElements();return Ot(B,ma(g))&&!Xm(g.dom)&&!et(g.dom)},rS={},Bg=xe(["pre"]),yY=(r,g)=>{rS[r]||(rS[r]=[]),rS[r].push(g)},bY=(r,g)=>{Ot(rS,r)&&ve(rS[r],B=>{B(g)})};yY("pre",r=>{const g=r.selection.getRng(),B=oe=>be=>{const Le=be.previousSibling;return Bg(Le)&&ce(oe,Le)},H=(oe,be)=>{const Le=_r.fromDom(be),Ke=$f(Le).dom;hs(Le),Yl(_r.fromDom(oe),[_r.fromTag("br",Ke),_r.fromTag("br",Ke),...vc(Le)])};if(!g.collapsed){const oe=r.selection.getSelectedBlocks(),be=Te(Te(oe,Bg),B(oe));ve(be,Le=>{H(Le.previousSibling,Le)})}});const xY=["fontWeight","fontStyle","color","fontSize","fontFamily"],bP=r=>_(r.styles)&&de(tt(r.styles),g=>ce(xY,g)),_Y=r=>De(r,g=>Ed(g)&&g.inline==="span"&&bP(g)),wY=(r,g)=>{const B=r.get(g);return C(B)?_Y(B):Y.none()},kz=(r,g)=>Up(g,vo.fromRangeStart(r)).isNone(),P6=(r,g)=>Sp(g,vo.fromRangeEnd(r)).exists(B=>!gn(B.getNode())||Sp(g,B).isSome())===!1,A1=r=>g=>ro(g)&&r.isEditable(g),xP=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return kz(B,g[0])&&P6(B,g[0])?g:[];{const H=Ye(g).filter(Le=>kz(B,Le)).toArray(),oe=Je(g).filter(Le=>P6(B,Le)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(oe)}},R6=r=>Te(xP(r),A1(r.dom)),L6=r=>Te(r.getSelectedBlocks(),A1(r.dom)),_P=To.each,I6=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Tz=(r,g)=>{for(let B=r;B;B=B[g]){if(Mt(B)&&lr(B.data))return r;if(ne(B)&&!pm(B))return B}return r},wP=(r,g,B)=>{const H=Vk(r),oe=V(g)&&r.dom.isEditable(g),be=V(B)&&r.dom.isEditable(B);if(oe&&be){const Le=Tz(g,"previousSibling"),Ke=Tz(B,"nextSibling");if(H.compare(Le,Ke)){for(let ut=Le.nextSibling;ut&&ut!==Ke;){const At=ut;ut=ut.nextSibling,Le.appendChild(At)}return r.dom.remove(Ke),To.each(To.grep(Ke.childNodes),ut=>{Le.appendChild(ut)}),Le}}return B},D6=(r,g,B,H)=>{var oe;if(H&&g.merge_siblings!==!1){const be=(oe=wP(r,M3(H),H))!==null&&oe!==void 0?oe:H;wP(r,be,M3(be,!0))}},OY=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";_P(r.select(H,B),oe=>{I6(oe)&&r.isEditable(oe)&&_P(g.styles,(be,Le)=>{r.setStyle(oe,Le,"")})})}},B6=(r,g,B)=>{_P(r.childNodes,H=>{I6(H)&&(g(H)&&B(H),H.hasChildNodes()&&B6(H,g,B))})},SY=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},$2=(r,g)=>B=>!!(B&&Cw(r,B,g)),OP=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),SY(r,H)},Zw=kl.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Cz=/^(src|href|style)$/,SP=To.each,z6=Wb,kY=r=>/^(TR|TH|TD)$/.test(r.nodeName),Az=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),Mz=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],oe=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&oe&&oe--,H=H.childNodes[oe>be?be:oe]}return Mt(H)&&B&&oe>=H.data.length&&(H=new Xl(H,r.getBody()).next()||H),Mt(H)&&!B&&oe===0&&(H=new Xl(H,r.getBody()).prev()||H),H},kP=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return kY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},TP=(r,g,B,H)=>{var oe;const be=r.create(B,H);return(oe=g.parentNode)===null||oe===void 0||oe.insertBefore(be,g),be.appendChild(g),be},N6=(r,g,B,H,oe)=>{const be=_r.fromDom(g),Le=_r.fromDom(r.create(H,oe)),Ke=B?xd(be):Vd(be);return Yl(Le,Ke),B?(xc(be,Le),jd(Le,be)):(Kc(be,Le),ii(Le,be)),Le.dom},qw=(r,g)=>g.links&&r.nodeName==="A",Ez=(r,g,B)=>{const H=g.parentNode;let oe;const be=r.dom,Le=tu(r);Cv(B)&&H===be.getRoot()&&(!B.list_block||!z6(g,B.list_block))&&ve(Me(g.childNodes),Ke=>{Ly(r,Le,Ke.nodeName.toLowerCase())?oe?oe.appendChild(Ke):(oe=TP(be,Ke,Le),be.setAttribs(oe,qd(r))):oe=null}),!(Av(B)&&!z6(B.inline,g))&&be.remove(g,!0)},Pz=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Tv(g,B)},Xk=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},CP=(r,g,B,H,oe)=>{let be=!1;SP(B.styles,(Le,Ke)=>{const{name:ut,value:At}=Pz(Ke,Le,H),nn=DC(At,ut);(B.remove_similar||x(At)||!ne(oe)||z6(Cw(r,oe,ut),nn))&&r.setStyle(g,ut,""),be=!0}),be&&Xk(r,g)},Rz=(r,g,B)=>{g==="removeformat"?ve(L6(r.selection),H=>{ve(xY,oe=>r.dom.setStyle(H,oe,"")),Xk(r.dom,H)}):wY(r.formatter,g).each(H=>{ve(L6(r.selection),oe=>CP(r.dom,oe,H,B,null))})},Lz=(r,g,B,H,oe)=>{const be=r.dom,Le=Vk(r),Ke=r.schema;if(Ed(g)&&Hc(Ke,g.inline)&&lh(Ke,H)&&H.parentElement===r.getBody())return Ez(r,H,g),Zw.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!Wk(be,H,g)&&!qw(H,g))return Zw.keep();const ut=H,At=g.preserve_attributes;if(Ed(g)&&g.remove==="all"&&C(At)){const nn=Te(be.getAttribs(ut),un=>ce(At,un.name.toLowerCase()));if(be.removeAllAttribs(ut),ve(nn,un=>be.setAttrib(ut,un.name,un.value)),nn.length>0)return Zw.rename("span")}if(g.remove!=="all"){CP(be,ut,g,B,oe),SP(g.attributes,(un,yn)=>{const{name:Qn,value:rr}=Pz(yn,un,B);if(g.remove_similar||x(rr)||!ne(oe)||z6(be.getAttrib(oe,Qn),rr)){if(Qn==="class"){const Wn=be.getAttrib(ut,Qn);if(Wn){let ur="";if(ve(Wn.split(/\s+/),Tr=>{/mce\-\w+/.test(Tr)&&(ur+=(ur?" ":"")+Tr)}),ur){be.setAttrib(ut,Qn,ur);return}}}if(Cz.test(Qn)&&ut.removeAttribute("data-mce-"+Qn),Qn==="style"&&xe(["li"])(ut)&&be.getStyle(ut,"list-style-type")==="none"){ut.removeAttribute(Qn),be.setStyle(ut,"list-style-type","none");return}Qn==="class"&&ut.removeAttribute("className"),ut.removeAttribute(Qn)}}),SP(g.classes,un=>{un=Tv(un,B),(!ne(oe)||be.hasClass(oe,un))&&be.removeClass(ut,un)});const nn=be.getAttribs(ut);for(let un=0;un{let be;return g.parentNode&&ve(R3(r.dom,g.parentNode).reverse(),Le=>{if(!be&&ne(Le)&&Le.id!=="_start"&&Le.id!=="_end"){const Ke=C1(r,Le,B,H,oe);Ke&&Ke.split!==!1&&(be=Le)}}),be},TY=(r,g,B,H)=>Lz(r,g,B,H,H).fold($(H),oe=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,oe)),$(null)),Ww=(r,g,B,H,oe,be,Le,Ke)=>{var ut,At;let nn,un;const yn=r.dom;if(B){const Qn=B.parentNode;for(let rr=H.parentNode;rr&&rr!==Qn;rr=rr.parentNode){let Wn=yn.clone(rr,!1);for(let ur=0;ur{const be=r.formatter.get(g),Le=be[0],Ke=r.dom,ut=r.selection,At=Wn=>{const ur=Iz(r,Wn,g,B,oe);return Ww(r,be,ur,Wn,Wn,!0,Le,B)},nn=Wn=>pm(Wn)&&ne(Wn)&&(Wn.id==="_start"||Wn.id==="_end"),un=Wn=>de(be,ur=>oS(r,ur,B,Wn,Wn)),yn=Wn=>{const ur=Me(Wn.childNodes),Wr=un(Wn)||de(be,Zo=>Wk(Ke,Wn,Zo)),Qr=Wn.parentNode;if(!Wr&&P(Qr)&&fk(Le)&&un(Qr),Le.deep&&ur.length)for(let Zo=0;Zo{ne(Wn)&&r.dom.getStyle(Wn,"text-decoration")===Zo&&Wn.parentNode&&ck(Ke,Wn.parentNode)===Zo&&oS(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:Zo}},void 0,Wn)})},Qn=Wn=>{const ur=Ke.get(Wn?"_start":"_end");if(ur){let Tr=ur[Wn?"firstChild":"lastChild"];return nn(Tr)&&(Tr=Tr[Wn?"firstChild":"lastChild"]),Mt(Tr)&&Tr.data.length===0&&(Tr=Wn?ur.previousSibling||ur.nextSibling:ur.nextSibling||ur.previousSibling),Ke.remove(ur,!0),Tr}else return null},rr=Wn=>{let ur,Tr,Wr=Xb(Ke,Wn,be,Wn.collapsed);if(Le.split){if(Wr=Xo(Wr),ur=Mz(r,Wr,!0),Tr=Mz(r,Wr),ur!==Tr){if(ur=kP(ur,!0),Tr=kP(Tr,!1),Az(Ke,ur,Tr)){const lo=Y.from(ur.firstChild).getOr(ur);At(N6(Ke,lo,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Qn(!0);return}if(Az(Ke,Tr,ur)){const lo=Y.from(Tr.lastChild).getOr(Tr);At(N6(Ke,lo,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Qn(!1);return}ur=TP(Ke,ur,"span",{id:"_start","data-mce-type":"bookmark"}),Tr=TP(Ke,Tr,"span",{id:"_end","data-mce-type":"bookmark"});const Qr=Ke.createRng();Qr.setStartAfter(ur),Qr.setEndBefore(Tr),Ew(Ke,Qr,lo=>{ve(lo,Zo=>{!pm(Zo)&&!pm(Zo.parentNode)&&At(Zo)})}),At(ur),At(Tr),ur=Qn(!0),Tr=Qn()}else ur=Tr=At(ur);Wr.startContainer=ur.parentNode?ur.parentNode:ur,Wr.startOffset=Ke.nodeIndex(ur),Wr.endContainer=Tr.parentNode?Tr.parentNode:Tr,Wr.endOffset=Ke.nodeIndex(Tr)+1}Ew(Ke,Wr,Qr=>{ve(Qr,yn)})};if(H){if(C3(H)){const Wn=Ke.createRng();Wn.setStartBefore(H),Wn.setEndAfter(H),rr(Wn)}else rr(H);mm(r,g,H,B);return}!ut.isCollapsed()||!Ed(Le)||k2(r).length?(_1(r,()=>k3(r,rr),Wn=>Ed(Le)&&T6(r,g,B,Wn)),r.nodeChanged()):wz(r,g,B,oe),Rz(r,g,B),mm(r,g,H,B)},AP=(r,g,B,H,oe)=>{(H||r.selection.isEditable())&&Dz(r,g,B,H,oe)},oS=(r,g,B,H,oe)=>Lz(r,g,B,H,oe).fold(re,be=>(r.dom.rename(H,be),!0),q),Gk=To.each,Bz=(r,g,B,H)=>{const oe=be=>{if(V(be)&&ne(be.parentNode)&&r.isEditable(be)){const Le=ck(r,be.parentNode);r.getStyle(be,"color")&&Le?r.setStyle(be,"text-decoration",Le):r.getStyle(be,"text-decoration")===Le&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(To.walk(H,oe,"childNodes"),oe(H))},CY=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const oe=$2(r,"fontSize");B6(H,be=>oe(be)&&r.isEditable(be),OP(r,"backgroundColor",Tv(g.styles.backgroundColor,B)))}},zz=(r,g,B,H)=>{if(Ed(g)&&(g.inline==="sub"||g.inline==="sup")){const oe=$2(r,"fontSize");B6(H,Le=>oe(Le)&&r.isEditable(Le),OP(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},AY=(r,g,B,H)=>{Gk(g,oe=>{Ed(oe)&&Gk(r.dom.select(oe.inline,H),be=>{I6(be)&&oS(r,oe,B,be,oe.exact?be:null)}),OY(r.dom,oe,H)})},MY=(r,g,B,H,oe)=>{const be=oe.parentNode;C1(r,be,B,H)&&oS(r,g,H,oe)||g.merge_with_parents&&be&&r.dom.getParent(be,Le=>C1(r,Le,B,H)?(oS(r,g,H,oe),!0):!1)},Yw=To.each,Nz=(r,g,B,H)=>{if(t3(r)&&Ed(g)&&B.parentNode){const oe=n1(r.schema),be=sh(_r.fromDom(B),Le=>Xm(Le.dom));return cn(oe,H)&&Hi(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},F6=(r,g,B,H)=>{if(Yw(B.styles,(oe,be)=>{r.setStyle(g,be,Tv(oe,H))}),B.styles){const oe=r.getAttrib(g,"style");oe&&r.setAttrib(g,"data-mce-style",oe)}},EY=(r,g,B,H)=>{const oe=r.formatter.get(g),be=oe[0],Le=!H&&r.selection.isCollapsed(),Ke=r.dom,ut=r.selection,At=(rr,Wn=be)=>{A(Wn.onformat)&&Wn.onformat(rr,Wn,B,H),F6(Ke,rr,Wn,B),Yw(Wn.attributes,(ur,Tr)=>{Ke.setAttrib(rr,Tr,Tv(ur,B))}),Yw(Wn.classes,ur=>{const Tr=Tv(ur,B);Ke.hasClass(rr,Tr)||Ke.addClass(rr,Tr)})},nn=(rr,Wn)=>{let ur=!1;return Yw(rr,Tr=>Gm(Tr)?Ke.getContentEditable(Wn)==="false"&&!Tr.ceFalseOverride||P(Tr.collapsed)&&Tr.collapsed!==Le?!0:Ke.is(Wn,Tr.selector)&&!Xm(Wn)?(At(Wn,Tr),ur=!0,!1):!0:!1),ur},un=rr=>{if(v(rr)){const Wn=Ke.create(rr);return At(Wn),Wn}else return null},yn=(rr,Wn,ur)=>{const Tr=[];let Wr=!0;const Qr=be.inline||be.block,lo=un(Qr),Zo=Co=>I3(be)&&C1(r,Co,g,B),li=(Co,yo,Vo)=>{const Fi=zC(be)&&E3(r.schema,Co)&&Ly(r,yo,Qr);return Vo&&Fi},Mi=(Co,yo,Vo,Fi)=>{const la=Co.nodeName.toLowerCase(),bs=Ly(r,Qr,la)&&Ly(r,yo,Qr),Ms=!ur&&Mt(Co)&&Wx(Co.data),wl=Xm(Co),Vl=!Ed(be)||!rr.isBlock(Co);return(Vo||Fi)&&bs&&!Ms&&!wl&&Vl};Ew(rr,Wn,Co=>{let yo;const Vo=Fi=>{let la=!1,bs=Wr,Ms=!1;const wl=Fi.parentNode,Vl=wl.nodeName.toLowerCase(),Uu=rr.getContentEditable(Fi);P(Uu)&&(bs=Wr,Wr=Uu==="true",la=!0,Ms=lk(r,Fi));const Wf=Wr&&!la;if(gn(Fi)&&!Nz(r,be,Fi,Vl)){yo=null,Cv(be)&&rr.remove(Fi);return}if(Zo(Fi)){yo=null;return}if(li(Fi,Vl,Wf)){const ic=rr.rename(Fi,Qr);At(ic),Tr.push(ic),yo=null;return}if(Gm(be)){let ic=nn(oe,Fi);if(!ic&&P(wl)&&fk(be)&&(ic=nn(oe,wl)),!Ed(be)||ic){yo=null;return}}P(lo)&&Mi(Fi,Vl,Wf,Ms)?(yo||(yo=rr.clone(lo,!1),wl.insertBefore(yo,Fi),Tr.push(yo)),Ms&&la&&(Wr=bs),yo.appendChild(Fi)):(yo=null,ve(Me(Fi.childNodes),Vo),la&&(Wr=bs),yo=null)};ve(Co,Vo)}),be.links===!0&&ve(Tr,Co=>{const yo=Vo=>{Vo.nodeName==="A"&&At(Vo,be),ve(Me(Vo.childNodes),yo)};yo(Co)}),ve(Tr,Co=>{const yo=la=>{let bs=0;return ve(la.childNodes,Ms=>{!ak(Ms)&&!pm(Ms)&&bs++}),bs},Vo=la=>De(la.childNodes,A3).filter(Ms=>rr.getContentEditable(Ms)!=="false"&&Wk(rr,Ms,be)).map(Ms=>{const wl=rr.clone(Ms,!1);return At(wl),rr.replace(wl,la,!0),rr.remove(Ms,!0),wl}).getOr(la),Fi=yo(Co);if((Tr.length>1||!rr.isBlock(Co))&&Fi===0){rr.remove(Co,!0);return}(Ed(be)||Cv(be)&&be.wrapper)&&(!be.exact&&Fi===1&&(Co=Vo(Co)),AY(r,oe,B,Co),MY(r,be,g,B,Co),CY(rr,be,B,Co),Bz(rr,be,B,Co),zz(rr,be,B,Co),D6(r,be,B,Co))})},Qn=C3(H)?H:ut.getNode();if(Ke.getContentEditable(Qn)==="false"&&!lk(r,Qn)){H=Qn,nn(oe,H),Jm(r,g,H,B);return}if(be){if(H)if(C3(H)){if(!nn(oe,H)){const rr=Ke.createRng();rr.setStartBefore(H),rr.setEndAfter(H),yn(Ke,Xb(Ke,rr,oe),!0)}}else yn(Ke,H,!0);else!Le||!Ed(be)||k2(r).length?(ut.setRng(Rc(ut.getRng())),_1(r,()=>{k3(r,(rr,Wn)=>{const ur=Wn?rr:Xb(Ke,rr,oe);yn(Ke,ur,!1)})},q),r.nodeChanged()):gY(r,g,B),wY(r.formatter,g).each(rr=>{ve(R6(r.selection),Wn=>F6(Ke,Wn,rr,B))});bY(g,r)}Jm(r,g,H,B)},Fz=(r,g,B,H)=>{(H||r.selection.isEditable())&&EY(r,g,B,H)},MP=r=>Ot(r,"vars"),EP=(r,g)=>{r.set({}),g.on("NodeChange",B=>{Uz(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(oe=>C3(oe)?oe:oe.startContainer).bind(oe=>ne(oe)?Y.some(oe):Y.from(oe.parentElement)).getOrThunk(()=>PP(g));Uz(g,H,r.get())})},PP=r=>r.selection.getStart(),$z=(r,g,B,H,oe)=>ze(g,Ke=>{const ut=r.formatter.matchNode(Ke,B,oe??{},H);return!M(ut)},Ke=>k6(r,Ke,B)?!0:H?!1:P(r.formatter.matchNode(Ke,B,oe,!0))),Vz=(r,g)=>{const B=g??PP(r);return Te(R3(r.dom,B),H=>ne(H)&&!et(H))},Uz=(r,g,B)=>{const H=Vz(r,g);Ge(B,(oe,be)=>{const Le=Ke=>{const ut=$z(r,H,be,Ke.similar,MP(Ke)?Ke.vars:void 0),At=ut.isSome();if(Ke.state.get()!==At){Ke.state.set(At);const nn=ut.getOr(g);MP(Ke)?Ke.callback(At,{node:nn,format:be,parents:H}):ve(Ke.callbacks,un=>un(At,{node:nn,format:be,parents:H}))}};ve([oe.withSimilar,oe.withoutSimilar],Le),ve(oe.withVars,Le)})},$6=(r,g,B,H,oe,be)=>{const Le=g.get();ve(B.split(","),Ke=>{const ut=Et(Le,Ke).getOrThunk(()=>{const nn={withSimilar:{state:Ar(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ar(!1),similar:!1,callbacks:[]},withVars:[]};return Le[Ke]=nn,nn}),At=()=>{const nn=Vz(r);return $z(r,nn,Ke,oe,be).isSome()};if(M(be)){const nn=oe?ut.withSimilar:ut.withoutSimilar;nn.callbacks.push(H),nn.callbacks.length===1&&nn.state.set(At())}else ut.withVars.push({state:Ar(At()),similar:oe,vars:be,callback:H})}),g.set(Le)},ax=(r,g,B)=>{const H=r.get();ve(g.split(","),oe=>Et(H,oe).each(be=>{H[oe]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Le=>Le!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Le=>Le!==B)},withVars:Te(be.withVars,Le=>Le.callback!==B)}})),r.set(H)},PY=(r,g,B,H,oe,be)=>($6(r,g,B,H,oe,be),{unbind:()=>ax(g,B,H)}),RP=(r,g,B,H)=>{const oe=r.formatter.get(g);oe&&(T6(r,g,B,H)&&(!("toggle"in oe[0])||oe[0].toggle)?AP(r,g,B,H):Fz(r,g,B,H))},pf=To.explode,V6=()=>{const r={};return{addFilter:(oe,be)=>{ve(pf(oe),Le=>{Ot(r,Le)||(r[Le]={name:Le,callbacks:[]}),r[Le].callbacks.push(be)})},getFilters:()=>tn(r),removeFilter:(oe,be)=>{ve(pf(oe),Le=>{if(Ot(r,Le))if(P(be)){const Ke=r[Le],ut=Te(Ke.callbacks,At=>At!==be);ut.length>0?Ke.callbacks=ut:delete r[Le]}else delete r[Le]})}}},LP=(r,g)=>{ve(g,B=>{r.attr(B,null)})},sx=(r,g,B)=>{r.addNodeFilter("font",H=>{ve(H,oe=>{const be=g.parse(oe.attr("style")),Le=oe.attr("color"),Ke=oe.attr("face"),ut=oe.attr("size");Le&&(be.color=Le),Ke&&(be["font-family"]=Ke),ut&&eo(ut).each(At=>{be["font-size"]=B[At-1]}),oe.name="span",oe.attr("style",g.serialize(be)),LP(oe,["color","face","size"])})})},jz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const oe=g.type!=="html4";ve(H,be=>{if(oe)be.name="s";else{const Le=B.parse(be.attr("style"));Le["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Le))}})})},Qz=(r,g,B)=>{var H;const oe=U_();g.convert_fonts_to_spans&&sx(r,oe,To.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),jz(r,B,oe)},Kk=(r,g,B)=>{g.inline_styles&&Qz(r,g,B)},RY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),LY=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V2=r=>{const[g,...B]=r.split(","),H=B.join(","),oe=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(oe){const be=oe[2]===";base64",Le=be?LY(H):decodeURIComponent(H);return Y.some({type:oe[1],data:Le,base64Encoded:be})}else return Y.none()},Hz=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const oe=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V2(r).bind(({type:H,data:oe,base64Encoded:be})=>Hz(H,oe,be)).fold(()=>B("Invalid data URI"),g)}),IY=r=>Br(r,"blob:")?RY(r):Br(r,"data:")?Xw(r):Promise.reject("Unknown URI format"),lx=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var oe;B((oe=H.error)===null||oe===void 0?void 0:oe.message)},H.readAsDataURL(r)});let DY=0;const E0=r=>(r||"blobid")+DY++,iS=(r,g,B)=>V2(r).bind(({data:H,type:oe,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Le=be?H:btoa(H);return B(Le,oe)}}),U6=(r,g,B)=>{const H=r.create(E0(),g,B);return r.add(H),H},j6=(r,g,B=!1)=>iS(g,B,(H,oe)=>Y.from(r.getByData(H,oe)).orThunk(()=>Hz(oe,H).map(be=>U6(r,be,H)))),BY=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(Br(g,"blob:")){const H=r.getByUri(g);return P(H)?Promise.resolve(H):IY(g).then(oe=>lx(oe).then(be=>iS(be,!1,Le=>Y.some(U6(r,oe,Le))).getOrThunk(B)))}else return Br(g,"data:")?j6(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},Q6=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,zY=r=>Y.from(r.match(Q6)).bind(g=>Ze(g,1)).map(g=>Br(g,"www.")?g.substring(4):g),P0=(r,g)=>{Y.from(r.attr("src")).bind(zY).forall(B=>!ce(g,B))&&r.attr("sandbox","")},aS=(r,g)=>Br(r,`${g}/`),Zz=r=>M(r)?"iframe":aS(r,"image")?"img":aS(r,"video")?"video":aS(r,"audio")?"audio":"iframe",IP=({type:r,src:g,width:B,height:H}={},oe,be)=>{const Le=Zz(r),Ke=new Hp(Le,1);return Ke.attr(Le==="audio"?{src:g}:{src:g,width:B,height:H}),(Le==="audio"||Le==="video")&&Ke.attr("controls",""),Le==="iframe"&&oe&&P0(Ke,be),Ke},DP=r=>P(r.attr("data-mce-bogus")),Gw=r=>r.attr("src")===Nr.transparentSrc||P(r.attr("data-mce-placeholder")),BP=(r,g)=>{const{blob_cache:B}=g;if(B){const H=oe=>{const be=oe.attr("src");Gw(oe)||DP(oe)||T(be)||j6(B,be,!0).each(Le=>{oe.attr("src",Le.blobUri())})};r.addAttributeFilter("src",oe=>ve(oe,H))}},NY=(r,g)=>{var B,H;const oe=r.schema;r.addAttributeFilter("href",ut=>{let At=ut.length;const nn=yn=>yn.split(" ").filter(rr=>rr.length>0).concat(["noopener"]).sort().join(" "),un=yn=>{const Qn=yn?To.trim(yn):"";return/\b(noopener)\b/g.test(Qn)?Qn:nn(Qn)};if(!g.allow_unsafe_link_target)for(;At--;){const yn=ut[At];yn.name==="a"&&yn.attr("target")==="_blank"&&yn.attr("rel",un(yn.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ut=>{let At=ut.length,nn,un,yn,Qn;for(;At--;)if(Qn=ut[At],Qn.name==="a"&&Qn.firstChild&&!Qn.attr("href"))for(yn=Qn.parent,nn=Qn.lastChild;nn&&yn;)un=nn.prev,yn.insert(nn,Qn),nn=un}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ut=>{let At=ut.length,nn,un;for(;At--;)if(nn=ut[At],un=nn.parent,un&&(un.name==="ul"||un.name==="ol"))if(nn.prev&&nn.prev.name==="li")nn.prev.append(nn);else{const yn=new Hp("li",1);yn.attr("style","list-style-type: none"),nn.wrap(yn)}});const be=oe.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ut=>{var At;let nn=ut.length;for(;nn--;){const un=ut[nn],yn=(At=un.attr("class"))!==null&&At!==void 0?At:"",Qn=To.explode(yn," ");let rr="";for(let Wn=0;Wnve(ut,At=>{At.replace(IP({type:At.attr("type"),src:At.name==="object"?At.attr("data"):At.attr("src"),width:At.attr("width"),height:At.attr("height")},Le,Ke))})),Le&&r.addNodeFilter("iframe",ut=>ve(ut,At=>P0(At,Ke)))},{entries:zP,setPrototypeOf:qz,isFrozen:FY,getPrototypeOf:$Y,getOwnPropertyDescriptor:VY}=Object;let{freeze:lp,seal:Rv,create:Wz}=Object,{apply:Jk,construct:NP}=typeof Reflect<"u"&&Reflect;Jk||(Jk=function(g,B,H){return g.apply(B,H)}),lp||(lp=function(g){return g}),Rv||(Rv=function(g){return g}),NP||(NP=function(g,B){return new g(...B)});const Yz=M1(Array.prototype.forEach),Xz=M1(Array.prototype.pop),e5=M1(Array.prototype.push),H6=M1(String.prototype.toLowerCase),FP=M1(String.prototype.toString),UY=M1(String.prototype.match),Lv=M1(String.prototype.replace),jY=M1(String.prototype.indexOf),QY=M1(String.prototype.trim),R0=M1(RegExp.prototype.test),t5=HY(TypeError);function M1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),oe=1;oe/gm),XY=Rv(/\${[\w\W]*}/gm),GY=Rv(/^data-[\-\w.\u00B7-\uFFFF]/),KY=Rv(/^aria-[\-\w]+$/),eN=Rv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QP=Rv(/^(?:\w+script|data):/i),tN=Rv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),JY=Rv(/^html$/i);var lS=Object.freeze({__proto__:null,MUSTACHE_EXPR:WY,ERB_EXPR:YY,TMPLIT_EXPR:XY,DATA_ATTR:GY,ARIA_ATTR:KY,IS_ALLOWED_URI:eN,IS_SCRIPT_OR_DATA:QP,ATTR_WHITESPACE:tN,DOCTYPE_NAME:JY});const eX=()=>typeof window>"u"?null:window,nN=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const oe="data-tt-policy-suffix";B&&B.hasAttribute(oe)&&(H=B.getAttribute(oe));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Le){return Le},createScriptURL(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function rN(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eX();const g=Ps=>rN(Ps);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:oe}=r;const{DocumentFragment:be,HTMLTemplateElement:Le,Node:Ke,Element:ut,NodeFilter:At,NamedNodeMap:nn=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:un,DOMParser:yn,trustedTypes:Qn}=r,rr=ut.prototype,Wn=n5(rr,"cloneNode"),ur=n5(rr,"nextSibling"),Tr=n5(rr,"childNodes"),Wr=n5(rr,"parentNode");if(typeof Le=="function"){const Ps=oe.createElement("template");Ps.content&&Ps.content.ownerDocument&&(oe=Ps.content.ownerDocument)}let Qr,lo="";const{implementation:Zo,createNodeIterator:li,createDocumentFragment:Mi,getElementsByTagName:Co}=oe,{importNode:yo}=B;let Vo={};g.isSupported=typeof zP=="function"&&typeof Wr=="function"&&Zo&&Zo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fi,ERB_EXPR:la,TMPLIT_EXPR:bs,DATA_ATTR:Ms,ARIA_ATTR:wl,IS_SCRIPT_OR_DATA:Vl,ATTR_WHITESPACE:Uu}=lS;let{IS_ALLOWED_URI:Wf}=lS,ic=null;const vi=oc({},[...Gz,...U2,...$P,...VP,...UP]);let na=null;const ol=oc({},[...Kz,...jP,...Jz,...Z6]);let Ti=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pa=null,ps=null,Ci=!0,ms=!0,Es=!1,Bd=!0,Cl=!1,dd=!1,z0=!1,$v=!1,Cp=!1,Om=!1,Hg=!1,Sm=!0,Zg=!1;const ca="user-content-";let Zs=!0,ru=!1,ju={},Pf=null;const Gd=oc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rf=null;const Lf=oc({},["audio","video","img","source","image","track"]);let fp=null;const N0=oc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),F0="http://www.w3.org/1998/Math/MathML",$0="http://www.w3.org/2000/svg",rg="http://www.w3.org/1999/xhtml";let jy=rg,gx=!1,yO=null;const b8=oc({},[F0,$0,rg],FP);let Qy;const HS=["application/xhtml+xml","text/html"],xL="text/html";let qh,bO=null;const _L=oe.createElement("form"),wL=function(xo){return xo instanceof RegExp||xo instanceof Function},Hy=function(xo){if(!(bO&&bO===xo)){if((!xo||typeof xo!="object")&&(xo={}),xo=sS(xo),Qy=HS.indexOf(xo.PARSER_MEDIA_TYPE)===-1?Qy=xL:Qy=xo.PARSER_MEDIA_TYPE,qh=Qy==="application/xhtml+xml"?FP:H6,ic="ALLOWED_TAGS"in xo?oc({},xo.ALLOWED_TAGS,qh):vi,na="ALLOWED_ATTR"in xo?oc({},xo.ALLOWED_ATTR,qh):ol,yO="ALLOWED_NAMESPACES"in xo?oc({},xo.ALLOWED_NAMESPACES,FP):b8,fp="ADD_URI_SAFE_ATTR"in xo?oc(sS(N0),xo.ADD_URI_SAFE_ATTR,qh):N0,Rf="ADD_DATA_URI_TAGS"in xo?oc(sS(Lf),xo.ADD_DATA_URI_TAGS,qh):Lf,Pf="FORBID_CONTENTS"in xo?oc({},xo.FORBID_CONTENTS,qh):Gd,pa="FORBID_TAGS"in xo?oc({},xo.FORBID_TAGS,qh):{},ps="FORBID_ATTR"in xo?oc({},xo.FORBID_ATTR,qh):{},ju="USE_PROFILES"in xo?xo.USE_PROFILES:!1,Ci=xo.ALLOW_ARIA_ATTR!==!1,ms=xo.ALLOW_DATA_ATTR!==!1,Es=xo.ALLOW_UNKNOWN_PROTOCOLS||!1,Bd=xo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cl=xo.SAFE_FOR_TEMPLATES||!1,dd=xo.WHOLE_DOCUMENT||!1,Cp=xo.RETURN_DOM||!1,Om=xo.RETURN_DOM_FRAGMENT||!1,Hg=xo.RETURN_TRUSTED_TYPE||!1,$v=xo.FORCE_BODY||!1,Sm=xo.SANITIZE_DOM!==!1,Zg=xo.SANITIZE_NAMED_PROPS||!1,Zs=xo.KEEP_CONTENT!==!1,ru=xo.IN_PLACE||!1,Wf=xo.ALLOWED_URI_REGEXP||eN,jy=xo.NAMESPACE||rg,Ti=xo.CUSTOM_ELEMENT_HANDLING||{},xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ti.tagNameCheck=xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ti.attributeNameCheck=xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&typeof xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ti.allowCustomizedBuiltInElements=xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cl&&(ms=!1),Om&&(Cp=!0),ju&&(ic=oc({},[...UP]),na=[],ju.html===!0&&(oc(ic,Gz),oc(na,Kz)),ju.svg===!0&&(oc(ic,U2),oc(na,jP),oc(na,Z6)),ju.svgFilters===!0&&(oc(ic,$P),oc(na,jP),oc(na,Z6)),ju.mathMl===!0&&(oc(ic,VP),oc(na,Jz),oc(na,Z6))),xo.ADD_TAGS&&(ic===vi&&(ic=sS(ic)),oc(ic,xo.ADD_TAGS,qh)),xo.ADD_ATTR&&(na===ol&&(na=sS(na)),oc(na,xo.ADD_ATTR,qh)),xo.ADD_URI_SAFE_ATTR&&oc(fp,xo.ADD_URI_SAFE_ATTR,qh),xo.FORBID_CONTENTS&&(Pf===Gd&&(Pf=sS(Pf)),oc(Pf,xo.FORBID_CONTENTS,qh)),Zs&&(ic["#text"]=!0),dd&&oc(ic,["html","head","body"]),ic.table&&(oc(ic,["tbody"]),delete pa.tbody),xo.TRUSTED_TYPES_POLICY){if(typeof xo.TRUSTED_TYPES_POLICY.createHTML!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Qr=xo.TRUSTED_TYPES_POLICY,lo=Qr.createHTML("")}else Qr===void 0&&(Qr=nN(Qn,H)),Qr!==null&&typeof lo=="string"&&(lo=Qr.createHTML(""));lp&&lp(xo),bO=xo}},vT=oc({},["mi","mo","mn","ms","mtext"]),ho=oc({},["foreignobject","desc","title","annotation-xml"]),bo=oc({},["title","style","font","a","script"]),di=oc({},U2);oc(di,$P),oc(di,ZY);const ri=oc({},VP);oc(ri,qY);const Ta=function(xo){let Ji=Wr(xo);(!Ji||!Ji.tagName)&&(Ji={namespaceURI:jy,tagName:"template"});const Ba=H6(xo.tagName),mf=H6(Ji.tagName);return yO[xo.namespaceURI]?xo.namespaceURI===$0?Ji.namespaceURI===rg?Ba==="svg":Ji.namespaceURI===F0?Ba==="svg"&&(mf==="annotation-xml"||vT[mf]):!!di[Ba]:xo.namespaceURI===F0?Ji.namespaceURI===rg?Ba==="math":Ji.namespaceURI===$0?Ba==="math"&&ho[mf]:!!ri[Ba]:xo.namespaceURI===rg?Ji.namespaceURI===$0&&!ho[mf]||Ji.namespaceURI===F0&&!vT[mf]?!1:!ri[Ba]&&(bo[Ba]||!di[Ba]):!!(Qy==="application/xhtml+xml"&&yO[xo.namespaceURI]):!1},zs=function(xo){e5(g.removed,{element:xo});try{xo.parentNode.removeChild(xo)}catch{xo.remove()}},Su=function(xo,Ji){try{e5(g.removed,{attribute:Ji.getAttributeNode(xo),from:Ji})}catch{e5(g.removed,{attribute:null,from:Ji})}if(Ji.removeAttribute(xo),xo==="is"&&!na[xo])if(Cp||Om)try{zs(Ji)}catch{}else try{Ji.setAttribute(xo,"")}catch{}},V0=function(xo){let Ji,Ba;if($v)xo=""+xo;else{const l=UY(xo,/^[\r\n\t ]+/);Ba=l&&l[0]}Qy==="application/xhtml+xml"&&jy===rg&&(xo=''+xo+"");const mf=Qr?Qr.createHTML(xo):xo;if(jy===rg)try{Ji=new yn().parseFromString(mf,Qy)}catch{}if(!Ji||!Ji.documentElement){Ji=Zo.createDocument(jy,"template",null);try{Ji.documentElement.innerHTML=gx?lo:mf}catch{}}const Ap=Ji.body||Ji.documentElement;return xo&&Ba&&Ap.insertBefore(oe.createTextNode(Ba),Ap.childNodes[0]||null),jy===rg?Co.call(Ji,dd?"html":"body")[0]:dd?Ji.documentElement:Ap},ZS=function(xo){return li.call(xo.ownerDocument||xo,xo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},tie=function(xo){return xo instanceof un&&(typeof xo.nodeName!="string"||typeof xo.textContent!="string"||typeof xo.removeChild!="function"||!(xo.attributes instanceof nn)||typeof xo.removeAttribute!="function"||typeof xo.setAttribute!="function"||typeof xo.namespaceURI!="string"||typeof xo.insertBefore!="function"||typeof xo.hasChildNodes!="function")},x8=function(xo){return typeof Ke=="object"?xo instanceof Ke:xo&&typeof xo=="object"&&typeof xo.nodeType=="number"&&typeof xo.nodeName=="string"},Zy=function(xo,Ji,Ba){Vo[xo]&&Yz(Vo[xo],mf=>{mf.call(g,Ji,Ba,bO)})},nQ=function(xo){let Ji;if(Zy("beforeSanitizeElements",xo,null),tie(xo))return zs(xo),!0;const Ba=qh(xo.nodeName);if(Zy("uponSanitizeElement",xo,{tagName:Ba,allowedTags:ic}),xo.hasChildNodes()&&!x8(xo.firstElementChild)&&(!x8(xo.content)||!x8(xo.content.firstElementChild))&&R0(/<[/\w]/g,xo.innerHTML)&&R0(/<[/\w]/g,xo.textContent))return zs(xo),!0;if(!ic[Ba]||pa[Ba]){if(!pa[Ba]&&oQ(Ba)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba)))return!1;if(Zs&&!Pf[Ba]){const mf=Wr(xo)||xo.parentNode,Ap=Tr(xo)||xo.childNodes;if(Ap&&mf){const l=Ap.length;for(let N=l-1;N>=0;--N)mf.insertBefore(Wn(Ap[N],!0),ur(xo))}}return zs(xo),!0}return xo instanceof ut&&!Ta(xo)||(Ba==="noscript"||Ba==="noembed"||Ba==="noframes")&&R0(/<\/no(script|embed|frames)/i,xo.innerHTML)?(zs(xo),!0):(Cl&&xo.nodeType===3&&(Ji=xo.textContent,Ji=Lv(Ji,Fi," "),Ji=Lv(Ji,la," "),Ji=Lv(Ji,bs," "),xo.textContent!==Ji&&(e5(g.removed,{element:xo.cloneNode()}),xo.textContent=Ji)),Zy("afterSanitizeElements",xo,null),!1)},rQ=function(xo,Ji,Ba){if(Sm&&(Ji==="id"||Ji==="name")&&(Ba in oe||Ba in _L))return!1;if(!(ms&&!ps[Ji]&&R0(Ms,Ji))){if(!(Ci&&R0(wl,Ji))){if(!na[Ji]||ps[Ji]){if(!(oQ(xo)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,xo)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(xo))&&(Ti.attributeNameCheck instanceof RegExp&&R0(Ti.attributeNameCheck,Ji)||Ti.attributeNameCheck instanceof Function&&Ti.attributeNameCheck(Ji))||Ji==="is"&&Ti.allowCustomizedBuiltInElements&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba))))return!1}else if(!fp[Ji]){if(!R0(Wf,Lv(Ba,Uu,""))){if(!((Ji==="src"||Ji==="xlink:href"||Ji==="href")&&xo!=="script"&&jY(Ba,"data:")===0&&Rf[xo])){if(!(Es&&!R0(Vl,Lv(Ba,Uu,"")))){if(Ba)return!1}}}}}}return!0},oQ=function(xo){return xo.indexOf("-")>0},iQ=function(xo){let Ji,Ba,mf,Ap;Zy("beforeSanitizeAttributes",xo,null);const{attributes:l}=xo;if(!l)return;const N={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:na};for(Ap=l.length;Ap--;){Ji=l[Ap];const{name:W,namespaceURI:fe}=Ji;Ba=W==="value"?Ji.value:QY(Ji.value);const Se=Ba;if(mf=qh(W),N.attrName=mf,N.attrValue=Ba,N.keepAttr=!0,N.forceKeepAttr=void 0,Zy("uponSanitizeAttribute",xo,N),Ba=N.attrValue,N.forceKeepAttr)continue;if(!N.keepAttr){Su(W,xo);continue}if(!Bd&&R0(/\/>/i,Ba)){Su(W,xo);continue}Cl&&(Ba=Lv(Ba,Fi," "),Ba=Lv(Ba,la," "),Ba=Lv(Ba,bs," "));const Be=qh(xo.nodeName);if(!rQ(Be,mf,Ba)){Su(W,xo);continue}if(Zg&&(mf==="id"||mf==="name")&&(Su(W,xo),Ba=ca+Ba),Qr&&typeof Qn=="object"&&typeof Qn.getAttributeType=="function"&&!fe)switch(Qn.getAttributeType(Be,mf)){case"TrustedHTML":{Ba=Qr.createHTML(Ba);break}case"TrustedScriptURL":{Ba=Qr.createScriptURL(Ba);break}}if(Ba!==Se)try{fe?xo.setAttributeNS(fe,W,Ba):xo.setAttribute(W,Ba)}catch{Su(W,xo)}}Zy("afterSanitizeAttributes",xo,null)},nie=function Ps(xo){let Ji;const Ba=ZS(xo);for(Zy("beforeSanitizeShadowDOM",xo,null);Ji=Ba.nextNode();)Zy("uponSanitizeShadowNode",Ji,null),!nQ(Ji)&&(Ji.content instanceof be&&Ps(Ji.content),iQ(Ji));Zy("afterSanitizeShadowDOM",xo,null)};return g.sanitize=function(Ps){let xo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ji,Ba,mf,Ap;if(gx=!Ps,gx&&(Ps=""),typeof Ps!="string"&&!x8(Ps))if(typeof Ps.toString=="function"){if(Ps=Ps.toString(),typeof Ps!="string")throw t5("dirty is not a string, aborting")}else throw t5("toString is not a function");if(!g.isSupported)return Ps;if(z0||Hy(xo),g.removed=[],typeof Ps=="string"&&(ru=!1),ru){if(Ps.nodeName){const W=qh(Ps.nodeName);if(!ic[W]||pa[W])throw t5("root node is forbidden and cannot be sanitized in-place")}}else if(Ps instanceof Ke)Ji=V0(""),Ba=Ji.ownerDocument.importNode(Ps,!0),Ba.nodeType===1&&Ba.nodeName==="BODY"||Ba.nodeName==="HTML"?Ji=Ba:Ji.appendChild(Ba);else{if(!Cp&&!Cl&&!dd&&Ps.indexOf("<")===-1)return Qr&&Hg?Qr.createHTML(Ps):Ps;if(Ji=V0(Ps),!Ji)return Cp?null:Hg?lo:""}Ji&&$v&&zs(Ji.firstChild);const l=ZS(ru?Ps:Ji);for(;mf=l.nextNode();)nQ(mf)||(mf.content instanceof be&&nie(mf.content),iQ(mf));if(ru)return Ps;if(Cp){if(Om)for(Ap=Mi.call(Ji.ownerDocument);Ji.firstChild;)Ap.appendChild(Ji.firstChild);else Ap=Ji;return(na.shadowroot||na.shadowrootmode)&&(Ap=yo.call(B,Ap,!0)),Ap}let N=dd?Ji.outerHTML:Ji.innerHTML;return dd&&ic["!doctype"]&&Ji.ownerDocument&&Ji.ownerDocument.doctype&&Ji.ownerDocument.doctype.name&&R0(JY,Ji.ownerDocument.doctype.name)&&(N=" -`+N),Cl&&(N=Lv(N,Fi," "),N=Lv(N,la," "),N=Lv(N,bs," ")),Qr&&Hg?Qr.createHTML(N):N},g.setConfig=function(Ps){Hy(Ps),z0=!0},g.clearConfig=function(){bO=null,z0=!1},g.isValidAttribute=function(Ps,xo,Ji){bO||Hy({});const Ba=qh(Ps),mf=qh(xo);return rQ(Ba,mf,Ji)},g.addHook=function(Ps,xo){typeof xo=="function"&&(Vo[Ps]=Vo[Ps]||[],e5(Vo[Ps],xo))},g.removeHook=function(Ps){if(Vo[Ps])return Xz(Vo[Ps])},g.removeHooks=function(Ps){Vo[Ps]&&(Vo[Ps]=[])},g.removeAllHooks=function(){Vo={}},g}var cS=rN();const HP=To.each,Id=To.trim,vfe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],yfe={ftp:21,http:80,https:443,mailto:25},bfe=["img","video"],xfe=(r,g)=>P(r)?!r:P(g)?!ce(bfe,g):!0,E1=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},r5=(r,g,B)=>{const H=E1(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?xfe(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class cp{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),oe=/data:([^;]+)/.exec(H[0]);return oe&&(B=oe[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const oe=Lm.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!r5(H,oe,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Id(g),this.settings=B;const H=B.base_uri,oe=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){oe.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new cp(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+oe.toAbsPath(Ke,g);else{const ut=/([^#?]*)([#?]?.*)/.exec(g);ut&&(g=(H&&H.protocol||"http")+"://mce_host"+oe.toAbsPath(Ke,ut[1])+ut[2])}}g=g.replace(/@@/g,"(mce_at)");const Le=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Le&&HP(vfe,(Ke,ut)=>{let At=Le[ut];At&&(At=At.replace(/\(mce_at\)/g,"@@")),oe[Ke]=At}),H&&(oe.protocol||(oe.protocol=H.protocol),oe.userInfo||(oe.userInfo=H.userInfo),!oe.port&&oe.host==="mce_host"&&(oe.port=H.port),(!oe.host||oe.host==="mce_host")&&(oe.host=H.host),oe.source=""),be&&(oe.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new cp(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),oe=B.getURI();if(H===oe||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===oe)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new cp(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?yfe[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,oe="",be,Le;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ut=B.split("/");if(Ke.length>=ut.length){for(be=0,Le=Ke.length;be=ut.length||Ke[be]!==ut[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ut[be]){H=be+1;break}}if(H===1)return B;for(be=0,Le=Ke.length-(H-1);be{un&&Ke.push(un)});const ut=[];for(let un=Le.length-1;un>=0;un--)if(!(Le[un].length===0||Le[un]===".")){if(Le[un]===".."){H++;continue}if(H>0){H--;continue}ut.push(Le[un])}const At=Ke.length-H;let nn;return At<=0?nn=ke(ut).join("/"):nn=Ke.slice(0,At).join("/")+"/"+ke(ut).join("/"),nn.indexOf("/")!==0&&(nn="/"+nn),oe&&nn.lastIndexOf("/")!==nn.length-1&&(nn+=oe),nn}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const j2=To.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),ZP="data-mce-type";let oN=0;const Kw=(r,g,B,H,oe)=>{var be,Le,Ke,ut;const At=g.validate,nn=B.getSpecialElements();r.nodeType===Tc&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const un=(Le=oe==null?void 0:oe.tagName)!==null&&Le!==void 0?Le:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){P(oe)&&(oe.allowedTags[un]=!0);return}if(r.nodeType!==zf||un==="body")return;const yn=_r.fromDom(r),Qn=Dc(yn,ZP),rr=gu(yn,"data-mce-bogus");if(!Qn&&v(rr)){rr==="all"?hs(yn):Mc(yn);return}const Wn=B.getElementRule(un);if(At&&!Wn){Ot(nn,un)?hs(yn):Mc(yn);return}else P(oe)&&(oe.allowedTags[un]=!0);if(At&&Wn&&!Qn){if(ve((Ke=Wn.attributesForced)!==null&&Ke!==void 0?Ke:[],ur=>{ll(yn,ur.name,ur.value==="{$uid}"?`mce_${oN++}`:ur.value)}),ve((ut=Wn.attributesDefault)!==null&&ut!==void 0?ut:[],ur=>{Dc(yn,ur.name)||ll(yn,ur.name,ur.value==="{$uid}"?`mce_${oN++}`:ur.value)}),Wn.attributesRequired&&!de(Wn.attributesRequired,ur=>Dc(yn,ur))){Mc(yn);return}if(Wn.removeEmptyAttrs&&Lp(yn)){Mc(yn);return}Wn.outputName&&Wn.outputName!==un&&ov(yn,Wn.outputName)}},uS=(r,g,B,H,oe)=>{const be=r.tagName.toLowerCase(),{attrName:Le,attrValue:Ke}=oe;oe.keepAttr=Jw(g,B,H,be,Le,Ke),oe.keepAttr?(oe.allowedAttributes[Le]=!0,W6(Le,B)&&(oe.attrValue=Le),g.allow_svg_data_urls&&Br(Ke,"data:image/svg+xml")&&(oe.forceKeepAttr=!0)):q6(r,Le)&&(oe.forceKeepAttr=!0)},Jw=(r,g,B,H,oe,be)=>B!=="html"&&!Hs(H)?!0:!(oe in j2&&r5(r,be,H))&&(!r.validate||g.isValid(H,oe)||Br(oe,"data-")||Br(oe,"aria-")),q6=(r,g)=>r.hasAttribute(ZP)&&(g==="id"||g==="class"||g==="style"),W6=(r,g)=>r in g.getBoolAttrs(),iN=(r,g,B,H)=>{const{attributes:oe}=r;for(let be=oe.length-1;be>=0;be--){const Le=oe[be],Ke=Le.name,ut=Le.value;!Jw(g,B,H,r.tagName.toLowerCase(),Ke,ut)&&!q6(r,Ke)?r.removeAttribute(Ke):W6(Ke,B)&&r.setAttribute(Ke,Ke)}},aN=(r,g,B)=>{const H=cS();return H.addHook("uponSanitizeElement",(oe,be)=>{Kw(oe,r,g,B.track(oe),be)}),H.addHook("uponSanitizeAttribute",(oe,be)=>{uS(oe,r,g,B.current(),be)}),H},tX=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},nX=r=>{const g=Yu(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(oe=>`xlink:${oe}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};cS().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};cS().sanitize(r,B)}else throw new Error("Not a namespace element")},sN=(r,g)=>{const B=Tt();if(r.sanitize){const H=aN(r,g,B);return{sanitizeHtmlElement:(be,Le)=>{H.sanitize(be,tX(r,Le)),H.removed=[],B.reset()},sanitizeNamespaceElement:nX}}else return{sanitizeHtmlElement:(be,Le)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ut;for(;ut=Ke.nextNode();){const At=B.track(ut);Kw(ut,r,g,At),ne(ut)&&iN(ut,r,g,At)}B.reset()},sanitizeNamespaceElement:k}},lN=To.makeMap,cN=To.extend,uN=(r,g,B,H)=>{const oe=r.name,be=oe in B&&oe!=="title"&&oe!=="textarea"&&oe!=="noscript",Le=g.childNodes;for(let Ke=0,ut=Le.length;Ke{const H=[];for(let oe=r,be=oe;oe;be=oe,oe=oe.walk()){const Le=oe;ve(g,Ke=>Ke(Le)),T(Le.parent)&&Le!==r?oe=be:H.push(Le)}for(let oe=H.length-1;oe>=0;oe--){const be=H[oe];ve(B,Le=>Le(be))}},oX=(r,g,B,H)=>{const oe=B.validate,be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=cN(lN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ut=n1(g),At=/[ \t\r\n]+/g,nn=/^[ \t\r\n]+/,un=/[ \t\r\n]+$/,yn=Wr=>{let Qr=Wr.parent;for(;P(Qr);){if(Qr.name in Le)return!0;Qr=Qr.parent}return!1},Qn=Wr=>{let Qr=Wr;for(;P(Qr);){if(Qr.name in ut)return w6(g,be,Le,Qr);Qr=Qr.parent}return!1},rr=Wr=>Wr.name in Ke||ch(g,Wr)||Hs(Wr.name)&&Wr.parent===r,Wn=(Wr,Qr)=>{const lo=Qr?Wr.prev:Wr.next;return P(lo)||T(Wr.parent)?!1:rr(Wr.parent)&&(Wr.parent!==r||H.isRootContent===!0)};return[Wr=>{var Qr;if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";lo=lo.replace(At," "),(Rh(Wr.prev,rr)||Wn(Wr,!0))&&(lo=lo.replace(nn,"")),lo.length===0||lo===" "&&Wr.prev&&Wr.prev.type===Tc&&Wr.next&&Wr.next.type===Tc?Wr.remove():Wr.value=lo}},Wr=>{var Qr;if(Wr.type===1){const lo=g.getElementRule(Wr.name);if(oe&&lo){const Zo=w6(g,be,Le,Wr);lo.paddInEmptyBlock&&Zo&&Qn(Wr)?eP(B,H,rr,Wr):lo.removeEmpty&&Zo?rr(Wr)?Wr.remove():Wr.unwrap():lo.paddEmpty&&(Zo||qW(Wr))&&eP(B,H,rr,Wr)}}else if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";(Wr.next&&rr(Wr.next)||Wn(Wr,!1))&&(lo=lo.replace(un,"")),lo.length===0?Wr.remove():Wr.value=lo}}]},fN=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},fS=(r={},g=zm())=>{const B=V6(),H=V6(),oe={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Le=sN(oe,g),Ke=(Qr,lo,Zo="html")=>{const li=Zo==="xhtml"?"application/xhtml+xml":"text/html",Mi=Ot(g.getSpecialElements(),lo.toLowerCase()),Co=Mi?`<${lo}>${Qr}`:Qr,yo=()=>Zo==="xhtml"?`${Co}`:/^[\s]*${Co}`:`${Co}`,Vo=be.parseFromString(yo(),li).body;return Le.sanitizeHtmlElement(Vo,li),Mi?Vo.firstChild:Vo},ut=B.addFilter,At=B.getFilters,nn=B.removeFilter,un=H.addFilter,yn=H.getFilters,Qn=H.removeFilter,rr=(Qr,lo)=>{gz(g,Qr)&&lo.push(Qr)},Wn=(Qr,lo)=>{const Zo=v(lo.attr(ZP)),li=lo.type===1&&!Ot(Qr,lo.name)&&!ch(g,lo)&&!Hs(lo.name);return lo.type===3||li&&!Zo},ur=(Qr,lo)=>{const Zo=cN(lN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),li=/^[ \t\r\n]+/,Mi=/[ \t\r\n]+$/;let Co=Qr.firstChild,yo=null;const Vo=Fi=>{var la,bs;Fi&&(Co=Fi.firstChild,Co&&Co.type===3&&(Co.value=(la=Co.value)===null||la===void 0?void 0:la.replace(li,"")),Co=Fi.lastChild,Co&&Co.type===3&&(Co.value=(bs=Co.value)===null||bs===void 0?void 0:bs.replace(Mi,"")))};if(g.isValidChild(Qr.name,lo.toLowerCase())){for(;Co;){const Fi=Co.next;Wn(Zo,Co)?(yo||(yo=new Hp(lo,1),yo.attr(oe.forced_root_block_attrs),Qr.insert(yo,Co)),yo.append(Co)):(Vo(yo),yo=null),Co=Fi}Vo(yo)}},Wr={schema:g,addAttributeFilter:un,getAttributeFilters:yn,removeAttributeFilter:Qn,addNodeFilter:ut,getNodeFilters:At,removeNodeFilter:nn,parse:(Qr,lo={})=>{var Zo;const li=oe.validate,Mi=(Zo=lo.context)!==null&&Zo!==void 0?Zo:oe.root_name,Co=Ke(Qr,Mi,lo.format);Cs(g,Co);const yo=new Hp(Mi,11);uN(yo,Co,g.getSpecialElements(),Le.sanitizeNamespaceElement),Co.innerHTML="";const[Vo,Fi]=oX(yo,g,oe,lo),la=[],bs=li?Uu=>rr(Uu,la):k,Ms={nodes:{},attributes:{}},wl=Uu=>mz(At(),yn(),Uu,Ms);if(rX(yo,[Vo,wl],[Fi,bs]),la.reverse(),li&&la.length>0)if(lo.context){const{pass:Uu,fail:Wf}=we(la,ic=>ic.parent===yo);Ev(Wf,g,yo,wl),lo.invalid=Uu.length>0}else Ev(la,g,yo,wl);const Vl=fN(oe,lo);return Vl&&(yo.name==="body"||lo.isRootContent)&&ur(yo,Vl),lo.invalid||KE(Ms,lo),yo}};return NY(Wr,oe),Kk(Wr,oe,g),Wr},o5=r=>F2(r)?rx({validate:!1}).serialize(r):r,qP=(r,g,B)=>{const H=o5(r),oe=g(H);if(oe.isDefaultPrevented())return oe;if(F2(r))if(oe.content!==H){const be=fS({validate:!1,forced_root_block:!1,...B}).parse(oe.content,{context:r.name});return{...oe,content:be}}else return{...oe,content:r};else return oe},dN=r=>({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r)}),WP=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=MD(r,g);return B.isDefaultPrevented()?Vs.error(Rw(r,{content:"",...B}).content):Vs.value(B)}},hN=(r,g,B)=>B.no_events?g:qP(g,oe=>Rw(r,{...B,content:oe}),dN(r)).content,Y6=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=qP(g.content,H=>U3(r,{...g,content:H}),dN(r));return B.isDefaultPrevented()?(Pw(r,B),Vs.error(void 0)):Vs.value(B)}},YP=(r,g,B)=>{B.no_events||Pw(r,{...B,content:g})},XP=(r,g,B)=>({element:r,width:g,rows:B}),GP=(r,g)=>({element:r,cells:g}),pN=(r,g)=>({x:r,y:g}),KP=(r,g)=>ec(r,g).bind(eo).getOr(1),mN=(r,g,B,H,oe)=>{const be=KP(oe,"rowspan"),Le=KP(oe,"colspan"),Ke=r.rows;for(let ut=B;ut{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},vN=(r,g,B)=>{for(;gN(r,g,B);)g++;return g},yN=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),bN=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Le=r.rows;for(let Ke=B;Ke<=oe;Ke++){const ut=Le[Ke].cells,At=g{const H=g.x,oe=g.y,be=B.x,Le=B.y,Ke=oe{const B=im(r.element),H=_r.fromTag("tbody");return Yl(H,g),ii(B,H),B},_N=r=>ye(r.rows,g=>{const B=ye(g.cells,oe=>{const be=Qh(oe);return tc(be,"colspan"),tc(be,"rowspan"),be}),H=im(g.element);return Yl(H,B),H}),wN=r=>{const g=XP(im(r),0,[]);return ve(Pl(r,"tr"),(B,H)=>{ve(Pl(B,"td,th"),(oe,be)=>{mN(g,vN(g,be,H),H,B,oe)})}),XP(g.element,yN(g.rows),g.rows)},X6=r=>i5(r,_N(r)),iX=(r,g,B)=>bN(r,g).bind(H=>bN(r,B).map(oe=>JP(r,H,oe))),aX=r=>De(r,g=>ma(g)==="ul"||ma(g)==="ol"),eO=(r,g)=>De(r,B=>ma(B)==="li"&&S3(B,g)).fold($([]),B=>aX(r).map(H=>{const oe=_r.fromTag(ma(H)),be=Yt(Gc(H),(Le,Ke)=>Br(Ke,"list-style"));return aa(oe,be),[_r.fromTag("li"),oe]}).getOr([])),e7=(r,g)=>{const B=Ie(g,(H,oe)=>(ii(oe,H),oe),r);return g.length>0?he([B]):B},ON=r=>av(r)?jc(r).filter(d0).fold($([]),g=>[r,g]):d0(r)?[r]:[],a5=(r,g,B)=>{const H=_r.fromDom(g.commonAncestorContainer),oe=k1(H,r),be=Te(oe,ut=>B.isWrapper(ma(ut))),Le=eO(oe,g),Ke=be.concat(Le.length?Le:ON(H));return ye(Ke,im)},t7=()=>he([]),n7=(r,g,B)=>e7(_r.fromDom(g.cloneContents()),a5(r,g,B)),SN=(r,g)=>ts(g,"table",U(va,r)),kN=(r,g)=>SN(r,g[0]).bind(B=>{const H=g[0],oe=g[g.length-1],be=wN(B);return iX(be,H,oe).map(Le=>he([X6(Le)]))}).getOrThunk(t7),sX=(r,g,B)=>g.length>0&&g[0].collapsed?t7():n7(r,g[0],B),lX=(r,g,B)=>{const H=nk(g,r);return H.length>0?kN(r,H):sX(r,g,B)},G6=(r,g)=>g>=0&&gSd(r.innerText),cX=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),TN=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),oe=r.getBody(),be=cX(H),Le=_r.fromDom(g.cloneContents());uB(Le),fB(Le);const Ke=r.dom.add(oe,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Le.dom),ut=K6(Ke),At=Sd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),G6(At,0)||G6(At,At.length-1)){const nn=H.getOr(oe),un=K6(nn),yn=un.indexOf(ut);if(yn===-1)return ut;{const Qn=G6(un,yn-1),rr=G6(un,yn+ut.length);return(Qn?" ":"")+ut+(rr?" ":"")}}else return ut}).getOr(""),uX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),oe=r.selection.getSel(),be=l6(r,w3(oe)),Le=g.contextual?lX(_r.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Le&&H.appendChild(Le),r.selection.serializer.serialize(H,g)},fX=(r,g)=>{if(g.format==="text")return TN(r);{const B=uX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},dX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),hX=(r,g,B={})=>{const H=dX(B,g);return WP(r,H).fold(Q,oe=>{const be=fX(r,oe);return hN(r,be,oe)})},r7=0,CN=1,AN=2,pX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),oe=new Array(B),be=(nn,un,yn)=>({start:nn,end:un,diag:yn}),Le=(nn,un,yn,Qn,rr)=>{const Wn=ut(nn,un,yn,Qn);if(Wn===null||Wn.start===un&&Wn.diag===un-Qn||Wn.end===nn&&Wn.diag===nn-yn){let ur=nn,Tr=yn;for(;urQn-yn?(rr.push([AN,r[ur]]),++ur):(rr.push([CN,g[Tr]]),++Tr)}else{Le(nn,Wn.start,yn,Wn.start-Wn.diag,rr);for(let ur=Wn.start;ur{let rr=nn;for(;rr-un{const rr=un-nn,Wn=Qn-yn;if(rr===0||Wn===0)return null;const ur=rr-Wn,Tr=Wn+rr,Wr=(Tr%2===0?Tr:Tr+1)/2;H[1+Wr]=nn,oe[1+Wr]=un+1;let Qr,lo,Zo,li,Mi;for(Qr=0;Qr<=Wr;++Qr){for(lo=-Qr;lo<=Qr;lo+=2){for(Zo=lo+Wr,lo===-Qr||lo!==Qr&&H[Zo-1]=nn&&Mi>=yn&&r[li]===g[Mi];)oe[Zo]=li--,Mi--;if(ur%2===0&&-Qr<=lo&&lo<=Qr&&oe[Zo]<=H[Zo+ur])return Ke(oe[Zo],lo+nn-yn,un,Qn)}}return null},At=[];return Le(0,r.length,0,g.length,At),At},o7=r=>ne(r)?r.outerHTML:Mt(r)?Lm.encodeRaw(r.data,!1):bn(r)?"":"",mX=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},gX=(r,g,B)=>{const H=mX(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ve(r,H=>{H[0]===r7?B++:H[0]===CN?(gX(g,H[1],B),B++):H[0]===AN&&J6(g,B)})},vX=(r,g)=>Te(ye(Me(r.childNodes),g?I(Sd,o7):o7),B=>B.length>0),eA=(r,g)=>{const B=ye(Me(g.childNodes),o7);return kp(pX(B,r),g),g},tO=_t(()=>document.implementation.createHTMLDocument("undo")),MN=r=>r.querySelector("iframe")!==null,tg=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),nO=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),s5=r=>{const g=r.serializer.getTempAttrs(),B=cB(r.getBody(),g);return MN(B)?tg(vX(B,!0)):nO(Sd(B.innerHTML))},i7=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?eA(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:P(H)&&PC(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},tA=r=>r.type==="fragmented"?r.fragments.join(""):r.content,EN=r=>{const g=_r.fromTag("body",tO());return Fu(g,tA(r)),ve(Pl(g,"*[data-mce-bogus]"),Mc),ws(g)},PN=(r,g)=>tA(r)===tA(g),l5=(r,g)=>EN(r)===EN(g),c5=(r,g)=>!r||!g?!1:PN(r,g)?!0:l5(r,g),a7=r=>r.get()===0,u5=(r,g,B)=>{a7(B)&&(r.typing=g)},RN=(r,g)=>{r.typing&&(u5(r,!1,g),r.add())},s7=r=>{r.typing&&(r.typing=!1,r.add())},l7=(r,g,B)=>{a7(g)&&B.set(fl(r.selection))},yX=(r,g,B,H,oe,be,Le)=>{const Ke=s5(r),ut=To.extend(be||{},Ke);if(!a7(H)||r.removed)return null;const At=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ut,lastLevel:At,originalEvent:Le}).isDefaultPrevented()||At&&c5(At,ut))return null;g.data[B.get()]&&oe.get().each(yn=>{g.data[B.get()].beforeBookmark=yn});const nn=o2(r);if(nn&&g.data.length>nn){for(let yn=0;yn0?(r.setDirty(!0),r.dispatch("AddUndo",un),r.dispatch("change",un)):r.dispatch("AddUndo",un),ut},bX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},Dy=(r,g,B,H,oe)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Le=g.data[B.get()-1];i7(r,Le,!0),g.transact(oe)&&(g.data[B.get()-1].beforeBookmark=be)}},c7=(r,g,B)=>{let H;return g.get(){let oe;return g.typing&&(g.add(),g.typing=!1,u5(g,!1,B)),H.get()>0&&(H.set(H.get()-1),oe=g.data[H.get()],i7(r,oe,!0),r.setDirty(!0),r.dispatch("Undo",{level:oe})),oe},nA=r=>{r.clear(),r.add()},u7=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!c5(s5(r),g.data[0]),LN=(r,g)=>g.get()(RN(r,g),r.beforeChange(),r.ignore(B),r.add()),DN=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},_X=(r,g)=>{const B=r.dom,H=P(g)?g:r.getBody();ve(B.select("table,a",H),oe=>{switch(oe.nodeName){case"TABLE":const be=i2(r),Le=B.getAttrib(oe,"border");(!Le||Le==="0")&&r.hasVisual?B.addClass(oe,be):B.removeClass(oe,be);break;case"A":if(!B.getAttrib(oe,"href")){const Ke=B.getAttrib(oe,"name")||oe.id,ut=a2(r);Ke&&r.hasVisual?B.addClass(oe,ut):B.removeClass(oe,ut)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},BN=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>l7(r,g,B),add:(g,B,H,oe,be,Le)=>yX(r,g,B,H,oe,be,Le),undo:(g,B,H)=>xX(r,g,B,H),redo:(g,B)=>c7(r,g,B),clear:(g,B)=>bX(r,g,B),reset:g=>nA(g),hasUndo:(g,B)=>u7(r,g,B),hasRedo:(g,B)=>LN(g,B),transact:(g,B,H)=>IN(g,B,H),ignore:(g,B)=>DN(g,B),extra:(g,B,H,oe)=>Dy(r,g,B,H,oe)},formatter:{match:(g,B,H,oe)=>T6(r,g,B,H,oe),matchAll:(g,B)=>C6(r,g,B),matchNode:(g,B,H,oe)=>C1(r,g,B,H,oe),canApply:g=>uY(r,g),closest:g=>cY(r,g),apply:(g,B,H)=>Fz(r,g,B,H),remove:(g,B,H,oe)=>AP(r,g,B,H,oe),toggle:(g,B,H)=>RP(r,g,B,H),formatChanged:(g,B,H,oe,be)=>PY(r,g,B,H,oe,be)},editor:{getContent:g=>dB(r,g),setContent:(g,B)=>S6(r,g,B),insertContent:(g,B)=>M0(r,g,B),addVisual:g=>_X(r,g)},selection:{getContent:(g,B)=>hX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),wX=r=>{const g=At=>_(At)?At:{},{init:B,undoManager:H,formatter:oe,editor:be,selection:Le,autocompleter:Ke,raw:ut}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(At,nn,un)=>H.transact(un),ignore:(At,nn)=>H.ignore(nn),extra:(At,nn,un,yn)=>H.extra(un,yn)},formatter:{match:(At,nn,un,yn)=>oe.match(At,g(nn),yn),matchAll:oe.matchAll,matchNode:oe.matchNode,canApply:At=>oe.canApply(At),closest:At=>oe.closest(At),apply:(At,nn,un)=>oe.apply(At,g(nn)),remove:(At,nn,un,yn)=>oe.remove(At,g(nn)),toggle:(At,nn,un)=>oe.toggle(At,g(nn)),formatChanged:(At,nn,un,yn,Qn)=>oe.formatChanged(nn,un,yn,Qn)},editor:{getContent:At=>be.getContent(At),setContent:(At,nn)=>({content:be.setContent(At,nn),html:""}),insertContent:(At,nn)=>(be.insertContent(At),""),addVisual:be.addVisual},selection:{getContent:(At,nn)=>Le.getContent(nn)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ut.getRawModel())}}},OX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:re,hasRedo:re,transact:r,ignore:k,extra:k},formatter:{match:re,matchAll:$([]),matchNode:$(void 0),canApply:re,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},By=r=>Ot(r.plugins,"rtc"),zN=r=>Et(r.plugins,"rtc").bind(g=>Y.from(g.setup)),SX=r=>{const g=r;return zN(r).fold(()=>(g.rtcInstance=BN(r),Y.none()),B=>(g.rtcInstance=OX(),Y.some(()=>B().then(H=>(g.rtcInstance=wX(H),H.rtc.isRemote)))))},f7=r=>r.rtcInstance?r.rtcInstance:BN(r),Xd=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},NN=(r,g,B)=>{Xd(r).undoManager.beforeChange(g,B)},d7=(r,g,B,H,oe,be,Le)=>Xd(r).undoManager.add(g,B,H,oe,be,Le),h7=(r,g,B,H)=>Xd(r).undoManager.undo(g,B,H),FN=(r,g,B)=>Xd(r).undoManager.redo(g,B),p7=(r,g,B)=>{Xd(r).undoManager.clear(g,B)},$N=(r,g)=>{Xd(r).undoManager.reset(g)},VN=(r,g,B)=>Xd(r).undoManager.hasUndo(g,B),m7=(r,g,B)=>Xd(r).undoManager.hasRedo(g,B),UN=(r,g,B,H)=>Xd(r).undoManager.transact(g,B,H),jN=(r,g,B)=>{Xd(r).undoManager.ignore(g,B)},QN=(r,g,B,H,oe)=>{Xd(r).undoManager.extra(g,B,H,oe)},kX=(r,g,B,H,oe)=>Xd(r).formatter.match(g,B,H,oe),g7=(r,g,B)=>Xd(r).formatter.matchAll(g,B),TX=(r,g,B,H,oe)=>Xd(r).formatter.matchNode(g,B,H,oe),rA=(r,g)=>Xd(r).formatter.canApply(g),CX=(r,g)=>Xd(r).formatter.closest(g),AX=(r,g,B,H)=>{Xd(r).formatter.apply(g,B,H)},MX=(r,g,B,H,oe)=>{Xd(r).formatter.remove(g,B,H,oe)},HN=(r,g,B,H)=>{Xd(r).formatter.toggle(g,B,H)},ZN=(r,g,B,H,oe,be)=>Xd(r).formatter.formatChanged(g,B,H,oe,be),EX=(r,g)=>f7(r).editor.getContent(g),PX=(r,g,B)=>f7(r).editor.setContent(g,B),RX=(r,g,B)=>f7(r).editor.insertContent(g,B),LX=(r,g,B)=>Xd(r).selection.getContent(g,B),IX=(r,g)=>Xd(r).editor.addVisual(g),v7=r=>Xd(r).init.bindEvents(),_fe=(r,g={})=>{const B=g.format?g.format:"html";return LX(r,B,g)},qN=r=>r.dom.length===0?(hs(r),Y.none()):Y.some(r),DX=(r,g)=>r.filter(B=>Pg.isBookmarkNode(B.dom)).bind(g?Bc:sf),BX=(r,g,B,H,oe)=>{const be=r.dom,Le=g.dom,Ke=H?be.length:Le.length;H?($E(be,Le,oe,!1,!H),B.setStart(Le,Ke)):($E(Le,be,oe,!1,!H),B.setEnd(Le,Ke))},zX=(r,g,B)=>{jc(r).each(H=>{const oe=r.dom;g&&Pk(H,vo(oe,0),B)?d6(oe,0,B):!g&&K3(H,vo(oe,oe.length),B)&&FE(oe,oe.length,B)})},WN=(r,g,B,H,oe)=>{r.bind(be=>((H?FE:d6)(be.dom,H?be.dom.length:0,oe),g.filter(Ml).map(Ke=>BX(be,Ke,B,H,oe)))).orThunk(()=>DX(g,H).or(g).filter(Ml).map(Le=>zX(Le,H,oe)))},NX=(r,g,B)=>{const H=Y.from(g.firstChild).map(_r.fromDom),oe=Y.from(g.lastChild).map(_r.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(sf).filter(Ml).bind(qN),Le=oe.bind(Bc).filter(Ml).bind(qN);WN(be,H,r,!0,B),WN(Le,oe,r,!1,B),r.collapse(!1)},FX=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),YN=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),oe=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...oe,...g});return rx({validate:!1},r.schema).serialize(be)}else return g.content},$X=(r,g,B={})=>{const H=FX(B,g);Y6(r,H).each(oe=>{const be=YN(r,oe),Le=r.selection.getRng();NX(Le,Le.createContextualFragment(be),r.schema),r.selection.setRng(Le),kk(r,Le),YP(r,be,oe)})},XN=(r,g,B)=>{if(Ot(r,g)){const H=Te(r[g],oe=>oe!==B);H.length===0?delete r[g]:r[g]=H}};var VX=(r,g)=>{let B,H;const oe=(Ke,ut)=>De(ut,At=>r.is(At,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Le=()=>{B={},H={},g.on("NodeChange",Ke=>{const ut=Ke.element,At=be(ut),nn={};Ge(B,(un,yn)=>{oe(yn,At).each(Qn=>{H[yn]||(ve(un,rr=>{rr(!0,{node:Qn,selector:yn,parents:At})}),H[yn]=un),nn[yn]=un})}),Ge(H,(un,yn)=>{nn[yn]||(delete H[yn],ve(un,Qn=>{Qn(!1,{node:ut,selector:yn,parents:At})}))})})};return{selectorChangedWithUnbind:(Ke,ut)=>(B||Le(),B[Ke]||(B[Ke]=[]),B[Ke].push(ut),oe(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{XN(B,Ke,ut),XN(H,Ke,ut)}})}};const GN=r=>!!(r&&r.ownerDocument)&&El(_r.fromDom(r.ownerDocument),_r.fromDom(r)),UX=r=>r?GN(r.startContainer)&&GN(r.endContainer):!1,jX=(r,g,B,H)=>{let oe,be;const{selectorChangedWithUnbind:Le}=VX(r,H),Ke=(vi,na)=>{const ol=r.createRng();P(vi)&&P(na)?(ol.setStart(vi,na),ol.setEnd(vi,na),lo(ol),Tr(!1)):(ik(r,ol,H.getBody(),!0),lo(ol))},ut=vi=>_fe(H,vi),At=(vi,na)=>$X(H,vi,na),nn=vi=>CE(H.getBody(),Qr(),vi),un=vi=>KD(H.getBody(),Qr(),vi),yn=(vi,na)=>Wf.getBookmark(vi,na),Qn=vi=>Wf.moveToBookmark(vi),rr=(vi,na)=>(s6(r,vi,na).each(lo),vi),Wn=()=>{const vi=Qr(),na=Wr();return!vi||vi.item?!1:vi.compareEndPoints?vi.compareEndPoints("StartToEnd",vi)===0:!na||vi.collapsed},ur=()=>{const vi=Qr(),na=H.getBody().querySelectorAll('[data-mce-selected="1"]');return na.length>0?Oe(na,ol=>r.isEditable(ol.parentElement)):kE(r,vi)},Tr=vi=>{const na=Qr();na.collapse(!!vi),lo(na)},Wr=()=>g.getSelection?g.getSelection():g.document.selection,Qr=()=>{let vi;const na=(Ti,pa,ps)=>{try{return pa.compareBoundaryPoints(Ti,ps)}catch{return-1}},ol=g.document;if(P(H.bookmark)&&!nx(H)){const Ti=r6(H);if(Ti.isSome())return Ti.map(pa=>l6(H,[pa])[0]).getOr(ol.createRange())}try{const Ti=Wr();Ti&&!le(Ti.anchorNode)&&(Ti.rangeCount>0?vi=Ti.getRangeAt(0):vi=ol.createRange(),vi=l6(H,[vi])[0])}catch{}if(vi||(vi=ol.createRange()),vn(vi.startContainer)&&vi.collapsed){const Ti=r.getRoot();vi.setStart(Ti,0),vi.setEnd(Ti,0)}return oe&&be&&(na(vi.START_TO_START,vi,oe)===0&&na(vi.END_TO_END,vi,oe)===0?vi=be:(oe=null,be=null)),vi},lo=(vi,na)=>{if(!UX(vi))return;const ol=Wr();if(vi=H.dispatch("SetSelectionRange",{range:vi,forward:na}).range,ol){be=vi;try{ol.removeAllRanges(),ol.addRange(vi)}catch{}na===!1&&ol.extend&&(ol.collapse(vi.endContainer,vi.endOffset),ol.extend(vi.startContainer,vi.startOffset)),oe=ol.rangeCount>0?ol.getRangeAt(0):null}if(!vi.collapsed&&vi.startContainer===vi.endContainer&&(ol!=null&&ol.setBaseAndExtent)&&vi.endOffset-vi.startOffset<2&&vi.startContainer.hasChildNodes()){const pa=vi.startContainer.childNodes[vi.startOffset];pa&&pa.nodeName==="IMG"&&(ol.setBaseAndExtent(vi.startContainer,vi.startOffset,vi.endContainer,vi.endOffset),(ol.anchorNode!==vi.startContainer||ol.focusNode!==vi.endContainer)&&ol.setBaseAndExtent(pa,0,pa,1))}H.dispatch("AfterSetSelectionRange",{range:vi,forward:na})},Zo=vi=>(At(r.getOuterHTML(vi)),vi),li=()=>Jq(H.getBody(),Qr()),Mi=(vi,na)=>eW(r,Qr(),vi,na),Co=()=>{const vi=Wr(),na=vi==null?void 0:vi.anchorNode,ol=vi==null?void 0:vi.focusNode;if(!vi||!na||!ol||le(na)||le(ol))return!0;const Ti=r.createRng(),pa=r.createRng();try{Ti.setStart(na,vi.anchorOffset),Ti.collapse(!0),pa.setStart(ol,vi.focusOffset),pa.collapse(!0)}catch{return!0}return Ti.compareBoundaryPoints(Ti.START_TO_START,pa)<=0},Uu={dom:r,win:g,serializer:B,editor:H,expand:(vi={type:"word"})=>lo(oi(r).expand(Qr(),vi)),collapse:Tr,setCursorLocation:Ke,getContent:ut,setContent:At,getBookmark:yn,moveToBookmark:Qn,select:rr,isCollapsed:Wn,isEditable:ur,isForward:Co,setNode:Zo,getNode:li,getSel:Wr,setRng:lo,getRng:Qr,getStart:nn,getEnd:un,getSelectedBlocks:Mi,normalize:()=>{const vi=Qr(),na=Wr();if(!HM(na)&&T2(H)){const ol=fi(r,vi);return ol.each(Ti=>{lo(Ti,Co())}),ol.getOr(vi)}return vi},selectorChanged:(vi,na)=>(Le(vi,na),Uu),selectorChangedWithUnbind:Le,getScrollContainer:()=>{let vi,na=r.getRoot();for(;na&&na.nodeName!=="BODY";){if(na.scrollHeight>na.clientHeight){vi=na;break}na=na.parentNode}return vi},scrollIntoView:(vi,na)=>{P(vi)?$q(H,vi,na):kk(H,Qr(),na)},placeCaretAt:(vi,na)=>lo(lt(vi,na,H.getDoc())),getBoundingClientRect:()=>{const vi=Qr();return vi.collapsed?vo.fromRangeStart(vi).getClientRects()[0]:vi.getBoundingClientRect()},destroy:()=>{g=oe=be=null,ic.destroy()}},Wf=Pg(Uu),ic=Iw(Uu,H);return Uu.bookmarkManager=Wf,Uu.controlSelection=ic,Uu},wfe=(r,g,B)=>{g.addNodeFilter("br",(H,oe,be)=>{const Le=To.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ut=B.getWhitespaceElements();Le.body=1;const At=nn=>nn.name in Le||ch(B,nn);for(let nn=0,un=H.length;nn{r.addAttributeFilter("data-mce-tabindex",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.attr("tabindex",Le.attr("data-mce-tabindex")),Le.attr(oe,null)}}),r.addAttributeFilter("src,href,style",(H,oe)=>{const be="data-mce-"+oe,Le=g.url_converter,Ke=g.url_converter_scope;let ut=H.length;for(;ut--;){const At=H[ut];let nn=At.attr(be);nn!==void 0?(At.attr(oe,nn.length>0?nn:null),At.attr(be,null)):(nn=At.attr(oe),oe==="style"?nn=B.serializeStyle(B.parseStyle(nn),At.name):Le&&(nn=Le.call(Ke,nn,oe,At.name)),At.attr(oe,nn.length>0?nn:null))}}),r.addAttributeFilter("class",H=>{let oe=H.length;for(;oe--;){const be=H[oe];let Le=be.attr("class");Le&&(Le=Le.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Le.length>0?Le:null))}}),r.addAttributeFilter("data-mce-type",(H,oe,be)=>{let Le=H.length;for(;Le--;){const Ke=H[Le];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(At=>{var nn;return!Wx((nn=At.value)!==null&&nn!==void 0?nn:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,oe)=>{var be;const Le=ut=>ut.replace(/()/g,` +`,!0);do Ke(rr);while(rr=rr.next)}B.end(un)}}};return oe.type===1&&!r.inner?Ke(oe):oe.type===3?Le[3](oe):Le[11](oe),B.getContent()}}},mB=new Set;ve(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],g=>{mB.add(g)});const gB=new Set;ve(["background-color"],g=>{gB.add(g)});const vB=["font","text-decoration","text-emphasis"],fW=(r,g)=>r.parseStyle(r.getAttrib(g,"style")),W3=(r,g)=>tt(fW(r,g)),dW=r=>mB.has(r),hW=r=>gB.has(r),yB=(r,g)=>de(W3(r,g),B=>dW(B)),pW=(r,g)=>yB(r,g)&&de(W3(r,g),B=>hW(B)),mW=r=>Te(r,g=>de(vB,B=>Br(g,B))),gW=(r,g,B)=>{const H=W3(r,g),oe=W3(r,B),be=Le=>{var Ke,ut;const At=(Ke=r.getStyle(g,Le))!==null&&Ke!==void 0?Ke:"",nn=(ut=r.getStyle(B,Le))!==null&&ut!==void 0?ut:"";return lr(At)&&lr(nn)&&At!==nn};return de(H,Le=>{const Ke=ut=>de(ut,At=>At===Le);if(!Ke(oe)&&Ke(vB)){const ut=mW(oe);return de(ut,be)}else return be(Le)})},bB=(r,g,B)=>Y.from(B.container()).filter(Mt).exists(H=>{const oe=r?0:-1;return g(H.data.charAt(B.offset()+oe))}),ME=U(bB,!0,Ly),EE=U(bB,!1,Ly),vW=r=>{const g=r.container();return Mt(g)&&(g.data.length===0||Wx(g.data)&&Pg.isBookmarkNode(g.parentNode))},L2=(r,g)=>B=>H4(r?0:-1,B).filter(g).isSome(),xB=r=>Jn(r)&&rs(_r.fromDom(r),"display")==="block",_B=r=>In(r)&&!rt(r),yW=L2(!0,xB),ha=L2(!1,xB),Y3=L2(!0,Gr),X3=L2(!1,Gr),wB=L2(!0,dt),Ek=L2(!1,dt),I2=L2(!0,_B),D2=L2(!1,_B),bW=r=>r.slice(0,-1),xW=(r,g,B)=>El(g,r)?bW(af(r,H=>B(H)||va(H,g))):[],OB=(r,g)=>xW(r,g,re),k1=(r,g)=>[r].concat(OB(r,g)),u6=(r,g,B)=>G4(r,g,B,vW),cfe=r=>g=>r.isBlock(ma(g)),SB=(r,g,B)=>De(k1(_r.fromDom(g.container()),r),cfe(B)),Fa=(r,g,B,H)=>u6(r,g.dom,B).forall(oe=>SB(g,B,H).fold(()=>!hm(oe,B,g.dom),be=>!hm(oe,B,g.dom)&&El(be,_r.fromDom(oe.container())))),kB=(r,g,B,H)=>SB(g,B,H).fold(()=>u6(r,g.dom,B).forall(oe=>!hm(oe,B,g.dom)),oe=>u6(r,oe.dom,B).isNone()),Ka=U(kB,!1),PE=U(kB,!0),ufe=U(Fa,!1),ffe=U(Fa,!0),_W=r=>h3(r).exists(Ch),RE=(r,g,B,H)=>{const oe=Te(k1(_r.fromDom(B.container()),g),Le=>H.isBlock(ma(Le))),be=Ye(oe).getOr(g);return Op(r,be.dom,B).filter(_W)},TB=(r,g,B)=>h3(g).exists(Ch)||RE(!0,r,g,B).isSome(),f6=(r,g,B)=>TC(g).exists(Ch)||RE(!1,r,g,B).isSome(),CB=U(RE,!1),Ra=U(RE,!0),AB=r=>vo.isTextPosition(r)&&!r.isAtStart()&&!r.isAtEnd(),MB=(r,g,B)=>{const H=Te(k1(_r.fromDom(g.container()),r),oe=>B.isBlock(ma(oe)));return Ye(H).getOr(r)},EB=(r,g,B)=>AB(g)?EE(g):EE(g)||Up(MB(r,g,B).dom,g).exists(EE),G3=(r,g,B)=>AB(g)?ME(g):ME(g)||Sp(MB(r,g,B).dom,g).exists(ME),PB=r=>ce(["pre","pre-wrap"],r),LE=r=>h3(r).bind(g=>cl(g,Wl)).exists(g=>PB(rs(g,"white-space"))),wW=(r,g)=>Up(r.dom,g).isNone(),OW=(r,g)=>Sp(r.dom,g).isNone(),RB=(r,g,B)=>wW(r,g)||OW(r,g)||Ka(r,g,B)||PE(r,g,B)||f6(r,g,B)||TB(r,g,B),SW=r=>P(r)&&In(r)&&_C(r),kW=(r,g)=>B=>SW(new Xl(B,r)[g]()),dfe=(r,g)=>{const B=Sp(r.dom,g).getOr(g),H=kW(r.dom,"next");return g.isAtEnd()&&(H(g.container())||H(B.container()))},TW=(r,g)=>{const B=Up(r.dom,g).getOr(g),H=kW(r.dom,"prev");return g.isAtStart()&&(H(g.container())||H(B.container()))},LB=(r,g,B)=>LE(g)?!1:RB(r,g,B)||EB(r,g,B)||G3(r,g,B),Pk=(r,g,B)=>LE(g)?!1:Ka(r,g,B)||ufe(r,g,B)||f6(r,g,B)||EB(r,g,B)||TW(r,g),CW=r=>{const g=r.container(),B=r.offset();return Mt(g)&&BLE(g)?!1:PE(r,g,B)||ffe(r,g,B)||TB(r,g,B)||G3(r,g,B)||dfe(r,g),IE=(r,g,B)=>Pk(r,g,B)||K3(r,CW(g),B),us=(r,g)=>Hb(r.charAt(g)),DE=(r,g)=>Ly(r.charAt(g)),d6=r=>{const g=r.container();return Mt(g)&&tr(g.data,Pc)},IB=r=>{const g=r.split("");return ye(g,(B,H)=>Hb(B)&&H>0&&H{const oe=g.data,be=vo(g,0);return!B&&us(oe,0)&&!IE(r,be,H)?(g.data=" "+oe.slice(1),!0):B&&DE(oe,0)&&Pk(r,be,H)?(g.data=Pc+oe.slice(1),!0):!1},DB=r=>{const g=r.data,B=IB(g);return B!==g?(r.data=B,!0):!1},zE=(r,g,B,H)=>{const oe=g.data,be=vo(g,oe.length-1);return!B&&us(oe,oe.length-1)&&!IE(r,be,H)?(g.data=oe.slice(0,-1)+" ",!0):B&&DE(oe,oe.length-1)&&K3(r,be,H)?(g.data=oe.slice(0,-1)+Pc,!0):!1},BB=(r,g,B)=>{const H=g.container();if(!Mt(H))return Y.none();if(d6(g)){const oe=BE(r,H,!1,B)||DB(H)||zE(r,H,!1,B);return Bs(oe,g)}else if(IE(r,g,B)){const oe=BE(r,H,!0,B)||zE(r,H,!0,B);return Bs(oe,g)}else return Y.none()},AW=r=>{const g=_r.fromDom(r.getBody());r.selection.isCollapsed()&&BB(g,vo.fromRangeStart(r.selection.getRng()),r.schema).each(B=>{r.selection.setRng(B.toRange())})},NE=(r,g,B,H)=>{if(B===0)return;const oe=_r.fromDom(r),be=vs(oe,At=>H.isBlock(ma(At))).getOr(oe),Le=r.data.slice(g,g+B),Ke=g+B>=r.data.length&&K3(be,vo(r,r.data.length),H),ut=g===0&&Pk(be,vo(r,0),H);r.replaceData(g,B,Ut(Le,4,ut,Ke))},h6=(r,g,B)=>{const H=r.data.slice(g),oe=H.length-gr(H).length;NE(r,g,oe,B)},FE=(r,g,B)=>{const H=r.data.slice(0,g),oe=H.length-sr(H).length;NE(r,g-oe,oe,B)},$E=(r,g,B,H,oe=!0)=>{const be=sr(r.data).length,Le=oe?r:g,Ke=oe?g:r;return oe?Le.appendData(Ke.data):Le.insertData(0,Ke.data),hs(_r.fromDom(Ke)),H&&h6(Le,be,B),Le},MW=(r,g)=>{const B=r.container(),H=r.offset();return!vo.isTextPosition(r)&&B===g.parentNode&&H>vo.before(g).offset()},EW=(r,g)=>MW(g,r)?vo(g.container(),g.offset()-1):g,PW=r=>Mt(r)?vo(r,0):vo.before(r),RW=r=>Mt(r)?vo(r,r.data.length):vo.after(r),zB=r=>Hh(r.previousSibling)?Y.some(RW(r.previousSibling)):r.previousSibling?Ym(r.previousSibling):Y.none(),p6=r=>Hh(r.nextSibling)?Y.some(PW(r.nextSibling)):r.nextSibling?ph(r.nextSibling):Y.none(),VE=(r,g)=>Y.from(g.previousSibling?g.previousSibling:g.parentNode).bind(B=>Up(r,vo.before(B))).orThunk(()=>Sp(r,vo.after(g))),LW=(r,g)=>Sp(r,vo.after(g)).orThunk(()=>Up(r,vo.before(g))),IW=(r,g)=>zB(g).orThunk(()=>p6(g)).orThunk(()=>VE(r,g)),DW=(r,g)=>p6(g).orThunk(()=>zB(g)).orThunk(()=>LW(r,g)),BW=(r,g,B)=>r?DW(g,B):IW(g,B),zW=(r,g,B)=>BW(r,g,B).map(U(EW,B)),NB=(r,g,B)=>{B.fold(()=>{r.focus()},H=>{r.selection.setRng(H.toRange(),g)})},NW=r=>g=>g.dom===r,FW=(r,g)=>g&&Ot(r.schema.getBlockElements(),ma(g)),FB=(r,g,B)=>{if(Ai(r,g)){const H=_r.fromHtml('
    ');return B?ve(vc(g),oe=>{dk(oe)||hs(oe)}):uf(g),ii(g,H),Y.some(vo.before(H.dom))}else return Y.none()},$W=(r,g,B,H)=>{const oe=sf(r).filter(Ml),be=Bc(r).filter(Ml);return hs(r),yl(oe,be,g,(Le,Ke,ut)=>{const At=Le.dom,nn=Ke.dom,un=At.data.length;return $E(At,nn,B,H),ut.container()===nn?vo(At,un):ut}).orThunk(()=>(H&&(oe.each(Le=>FE(Le.dom,Le.dom.length,B)),be.each(Le=>h6(Le.dom,0,B))),g))},VW=(r,g)=>Ot(r.schema.getTextInlineElements(),ma(g)),T0=(r,g,B,H=!0,oe=!1)=>{const be=zW(g,r.getBody(),B.dom),Le=vs(B,U(FW,r),NW(r.getBody())),Ke=$W(B,be,r.schema,VW(r,B));r.dom.isEmpty(r.getBody())?(r.setContent(""),r.selection.setCursorLocation()):Le.bind(ut=>FB(r.schema,ut,oe)).fold(()=>{H&&NB(r,g,Ke)},ut=>{H&&NB(r,g,Y.some(ut))})},UW=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,$B=r=>UW.test(r),Nw=(r,g)=>yd(_r.fromDom(g),wy(r))&&!lh(r.schema,g)&&r.dom.isEditable(g),VB=r=>{var g;return cc.DOM.getStyle(r,"direction",!0)==="rtl"||$B((g=r.textContent)!==null&&g!==void 0?g:"")},UB=(r,g,B)=>Te(cc.DOM.getParents(B.container(),"*",g),r),ox=(r,g,B)=>{const H=UB(r,g,B);return Y.from(H[H.length-1])},jB=(r,g,B)=>{const H=Ey(g,r),oe=Ey(B,r);return P(H)&&H===oe},QB=r=>s1(r)||Um(r),Gu=(r,g)=>{const B=g.container(),H=g.offset();return r?_p(B)?Mt(B.nextSibling)?vo(B.nextSibling,0):vo.after(B):s1(g)?vo(B,H+1):g:_p(B)?Mt(B.previousSibling)?vo(B.previousSibling,B.previousSibling.data.length):vo.before(B):Um(g)?vo(B,H-1):g},HB=U(Gu,!0),ZB=U(Gu,!1),qB=(r,g)=>{const B=H=>H.stopImmediatePropagation();r.on("beforeinput input",B,!0),r.getDoc().execCommand(g),r.off("beforeinput input",B)},jW=r=>{r.execCommand("delete")},m6=r=>qB(r,"Delete"),B2=r=>qB(r,"ForwardDelete"),QW=r=>g=>Ia(jc(g),r,va),HW=r=>Np(r)||av(r),Xc=(r,g)=>El(r,g)?cl(g,HW,QW(r)):Y.none(),J3=(r,g=!0)=>{r.dom.isEmpty(r.getBody())&&r.setContent("",{no_selection:!g})},Fw=(r,g,B)=>zi(ph(B),Ym(B),(H,oe)=>{const be=Gu(!0,H),Le=Gu(!1,oe),Ke=Gu(!1,g);return r?Sp(B,Ke).exists(ut=>ut.isEqual(Le)&&g.isEqual(be)):Up(B,Ke).exists(ut=>ut.isEqual(be)&&g.isEqual(Le))}).getOr(!0),WB=r=>(Kf(r)?sf(r):Cc(r)).bind(WB).orThunk(()=>Y.some(r)),$w=(r,g,B,H=!0)=>{var oe;g.deleteContents();const be=WB(B).getOr(B),Le=_r.fromDom((oe=r.dom.getParent(be.dom,r.dom.isBlock))!==null&&oe!==void 0?oe:B.dom);if(Le.dom===r.getBody()?J3(r,H):Ai(r.schema,Le,{checkRootAsContent:!1})&&(xp(Le),H&&r.selection.setCursorLocation(Le.dom,0)),!va(B,Le)){const Ke=Ia(jc(Le),B)?[]:td(Le);ve(Ke.concat(vc(B)),ut=>{!va(ut,Le)&&!El(ut,Le)&&Ai(r.schema,ut)&&hs(ut)})}},C0=r=>g=>va(r,g),Vw=r=>Pl(r,"td,th"),gc=(r,g)=>Tw(_r.fromDom(r),g),Rk=r=>zi(r.startTable,r.endTable,(g,B)=>{const H=_c(g,be=>va(be,B)),oe=_c(B,be=>va(be,g));return!H&&!oe?r:{...r,startTable:H?Y.none():r.startTable,endTable:oe?Y.none():r.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(r),YB=r=>Rk(r),XB=(r,g)=>{const B=gc(r.startContainer,g),H=gc(r.endContainer,g),oe=B.isSome(),be=H.isSome(),Le=zi(B,H,va).getOr(!1);return YB({startTable:B,endTable:H,isStartInTable:oe,isEndInTable:be,isSameTable:Le,isMultiTable:!Le&&oe&&be})},Lk=(r,g)=>({start:r,end:g}),UE=(r,g,B)=>({rng:r,table:g,cells:B}),Uw=kl.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),eS=(r,g)=>bu(_r.fromDom(r),"td,th",g),Ik=r=>!va(r.start,r.end),g6=(r,g)=>Tw(r.start,g).bind(B=>Tw(r.end,g).bind(H=>Bs(va(B,H),B))),GB=(r,g)=>!Ik(r)&&g6(r,g).exists(B=>{const H=B.dom.rows;return H.length===1&&H[0].cells.length===1}),KB=(r,g)=>{const B=eS(r.startContainer,g),H=eS(r.endContainer,g);return zi(B,H,Lk)},JB=r=>g=>Tw(g,r).bind(B=>Je(Vw(B)).map(H=>Lk(g,H))),ez=r=>g=>Tw(g,r).bind(B=>Ye(Vw(B)).map(H=>Lk(H,g))),v6=r=>g=>g6(g,r).map(B=>UE(g,B,Vw(B))),jw=(r,g,B,H)=>{if(B.collapsed||!r.forall(Ik))return Y.none();if(g.isSameTable){const oe=r.bind(v6(H));return Y.some({start:oe,end:oe})}else{const oe=eS(B.startContainer,H),be=eS(B.endContainer,H),Le=oe.bind(JB(H)).bind(v6(H)),Ke=be.bind(ez(H)).bind(v6(H));return Y.some({start:Le,end:Ke})}},jE=(r,g)=>Qe(r,B=>va(B,g)),Dk=r=>zi(jE(r.cells,r.rng.start),jE(r.cells,r.rng.end),(g,B)=>r.cells.slice(g,B+1)),ZW=(r,g,B)=>r.exists(H=>GB(H,B)&&S3(H.start,g)),tz=(r,g)=>{const{startTable:B,endTable:H}=g,oe=r.cloneRange();return B.each(be=>oe.setStartAfter(be.dom)),H.each(be=>oe.setEndBefore(be.dom)),oe},nz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>oe.or(be)).bind(oe=>{const{isSameTable:be}=g,Le=Dk(oe).getOr([]);if(be&&oe.cells.length===Le.length)return Y.some(Uw.fullTable(oe.table));if(Le.length>0){if(be)return Y.some(Uw.partialTable(Le,Y.none()));{const Ke=tz(B,g);return Y.some(Uw.partialTable(Le,Y.some({...g,rng:Ke})))}}else return Y.none()}),rz=(r,g,B,H)=>jw(r,g,B,H).bind(({start:oe,end:be})=>{const Le=oe.bind(Dk).getOr([]),Ke=be.bind(Dk).getOr([]);if(Le.length>0&&Ke.length>0){const ut=tz(B,g);return Y.some(Uw.multiTable(Le,Ke,ut))}else return Y.none()}),oz=(r,g)=>{const B=C0(r),H=KB(g,B),oe=XB(g,B);return ZW(H,g,B)?H.map(be=>Uw.singleCellTable(g,be.start)):oe.isMultiTable?rz(H,oe,g,B):nz(H,oe,g,B)},Bk=r=>ve(r,g=>{tc(g,"contenteditable"),xp(g)}),iz=(r,g)=>Y.from(r.dom.getParent(g,r.dom.isBlock)).map(_r.fromDom),az=(r,g,B)=>{B.each(H=>{g?hs(H):(xp(H),r.selection.setCursorLocation(H.dom,0))})},y6=(r,g,B,H)=>{const oe=B.cloneRange();H?(oe.setStart(B.startContainer,B.startOffset),oe.setEndAfter(g.dom.lastChild)):(oe.setStartBefore(g.dom.firstChild),oe.setEnd(B.endContainer,B.endOffset)),b6(r,oe,g,!1).each(be=>be())},QE=r=>{const g=k2(r),B=_r.fromDom(r.selection.getNode());Ir(B.dom)&&Ai(r.schema,B)?r.selection.setCursorLocation(B.dom,0):r.selection.collapse(!0),g.length>1&&de(g,H=>va(H,B))&&ll(B,"data-mce-selected","1")},HE=(r,g,B)=>Y.some(()=>{const H=r.selection.getRng(),oe=B.bind(({rng:be,isStartInTable:Le})=>{const Ke=iz(r,Le?be.endContainer:be.startContainer);be.deleteContents(),az(r,Le,Ke.filter(U(Ai,r.schema)));const ut=Le?g[0]:g[g.length-1];return y6(r,ut,H,Le),Ai(r.schema,ut)?Y.none():Y.some(Le?g.slice(1):g.slice(0,-1))}).getOr(g);Bk(oe),QE(r)}),sz=(r,g,B,H)=>Y.some(()=>{const oe=r.selection.getRng(),be=g[0],Le=B[B.length-1];y6(r,be,oe,!0),y6(r,Le,oe,!1);const Ke=Ai(r.schema,be)?g:g.slice(1),ut=Ai(r.schema,Le)?B:B.slice(0,-1);Bk(Ke.concat(ut)),H.deleteContents(),QE(r)}),b6=(r,g,B,H=!0)=>Y.some(()=>{$w(r,g,B,H)}),lz=(r,g)=>Y.some(()=>T0(r,!1,g)),cz=(r,g,B)=>oz(g,B).bind(H=>H.fold(U(b6,r),U(lz,r),U(HE,r),U(sz,r))),uz=(r,g)=>zk(r,g),ZE=(r,g,B,H)=>x6(g,H).fold(()=>cz(r,g,B),oe=>uz(r,oe)),fz=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.selection.getRng();return B.length!==0?HE(r,B,Y.none()):ZE(r,H,oe,g)},qE=(r,g)=>De(k1(g,r),gy),x6=(r,g)=>De(k1(g,r),Jl("caption")),dz=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).bind(be=>qE(g,_r.fromDom(be.getNode())).bind(Le=>va(Le,H)?Y.none():Y.some(k))),zk=(r,g)=>Y.some(()=>{xp(g),r.selection.setCursorLocation(g.dom,0)}),hz=(r,g,B,H)=>ph(r.dom).bind(oe=>Ym(r.dom).map(be=>g?B.isEqual(oe)&&H.isEqual(be):B.isEqual(be)&&H.isEqual(oe))).getOr(!0),WE=(r,g)=>zk(r,g),_6=(r,g,B)=>x6(r,_r.fromDom(B.getNode())).fold(()=>Y.some(k),H=>Bs(!va(H,g),k)),YE=(r,g,B,H,oe)=>Ub(B,r.getBody(),oe).fold(()=>Y.some(k),be=>hz(H,B,oe,be)?WE(r,H):_6(g,H,be)),w6=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return qE(B,H).bind(be=>Ai(r.schema,be,{checkRootAsContent:!1})?zk(r,be):dz(r,B,g,be,oe))},pz=(r,g,B,H)=>{const oe=vo.fromRangeStart(r.selection.getRng());return Ai(r.schema,H)?zk(r,H):YE(r,B,g,H,oe)},Nk=(r,g)=>r?wB(g):Ek(g),XE=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Nk(g,B)||Op(g,r.getBody(),B).exists(H=>Nk(g,H))},Fk=(r,g,B)=>{const H=_r.fromDom(r.getBody());return x6(H,B).fold(()=>w6(r,g,H,B).orThunk(()=>Bs(XE(r,g),k)),oe=>pz(r,g,H,oe))},$k=(r,g)=>{const B=_r.fromDom(r.selection.getStart(!0)),H=k2(r);return r.selection.isCollapsed()&&H.length===0?Fk(r,g,B):fz(r,B,H)},z2=(r,g)=>{let B=g;for(;B&&B!==r;){if(pn(B)||In(B))return B;B=B.parentNode}return null},tS=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],GE=To.each,Vk=r=>{const g=r.dom,B=new Set(r.serializer.getTempAttrs()),H=(be,Le)=>{if(be.nodeName!==Le.nodeName||be.nodeType!==Le.nodeType)return!1;const Ke=At=>{const nn={};return GE(g.getAttribs(At),un=>{const yn=un.nodeName.toLowerCase();yn!=="style"&&!oe(yn)&&(nn[yn]=g.getAttrib(At,yn))}),nn},ut=(At,nn)=>{for(const un in At)if(Ot(At,un)){const yn=nn[un];if(M(yn)||At[un]!==yn)return!1;delete nn[un]}for(const un in nn)if(Ot(nn,un))return!1;return!0};return ne(be)&&ne(Le)&&(!ut(Ke(be),Ke(Le))||!ut(g.parseStyle(g.getAttrib(be,"style")),g.parseStyle(g.getAttrib(Le,"style"))))?!1:!pm(be)&&!pm(Le)},oe=be=>de(tS,Le=>Br(be,Le))||B.has(be);return{compare:H,isAttributeInternal:oe}},Qw=r=>["h1","h2","h3","h4","h5","h6"].includes(r.name),N2=r=>r.name==="summary",mz=(r,g)=>{let B=r;for(;B=B.walk();)g(B)},gz=(r,g,B,H)=>{const oe=B.name;for(let be=0,Le=r.length;be{const H={nodes:{},attributes:{}};return B.firstChild&&mz(B,oe=>{gz(r,g,oe,H)}),H},KE=(r,g)=>{const B=(H,oe)=>{Ge(H,be=>{const Le=Me(be.nodes);ve(be.filter.callbacks,Ke=>{for(let ut=Le.length-1;ut>=0;ut--){const At=Le[ut];(!(oe?At.attr(be.filter.name)!==void 0:At.name===be.filter.name)||T(At.parent))&&Le.splice(ut,1)}Le.length>0&&Ke(Le,be.filter.name,g)})})};B(r.nodes,!1),B(r.attributes,!0)},JE=(r,g,B,H={})=>{const oe=qW(r,g,B);KE(oe,H)},eP=(r,g,B,H)=>{if((r.pad_empty_with_br||g.insert)&&B(H)){const be=new Hp("br",1);g.insert&&be.attr("data-mce-bogus","1"),H.empty().append(be)}else H.empty().append(new Hp("#text",3)).value=Pc},WW=r=>{var g;return ix(r,"#text")&&((g=r==null?void 0:r.firstChild)===null||g===void 0?void 0:g.value)===Pc},ix=(r,g)=>{const B=r==null?void 0:r.firstChild;return P(B)&&B===r.lastChild&&B.name===g},Hw=(r,g)=>{const B=r.getElementRule(g.name);return(B==null?void 0:B.paddEmpty)===!0},O6=(r,g,B,H)=>H.isEmpty(g,B,oe=>Hw(r,oe)),Lh=(r,g)=>P(r)&&(g(r)||r.name==="br"),YW=r=>{let g;for(let B=r;B;B=B.parent){const H=B.attr("contenteditable");if(H==="false")break;H==="true"&&(g=B)}return Y.from(g)},tP=(r,g,B=r.parent)=>{if(g.getSpecialElements()[r.name])r.empty().remove();else{const H=r.children();for(const oe of H)B&&!g.isValidChild(B.name,oe.name)&&tP(oe,g,B);r.unwrap()}},Ev=(r,g,B,H=k)=>{const oe=g.getTextBlockElements(),be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=To.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),ut=new Set,At=nn=>nn!==B&&!Ke[nn.name];for(let nn=0;nn1)if(vz(g,un,yn))tP(un,g);else{Wn.reverse(),Qn=Wn[0].clone(),H(Qn);let ur=Qn;for(let Tr=0;Tr0?(rr=Wn[Tr].clone(),H(rr),ur.append(rr)):rr=ur;for(let Wr=Wn[Tr].firstChild;Wr&&Wr!==Wn[Tr+1];){const Qr=Wr.next;rr.append(Wr),Wr=Qr}ur=rr}O6(g,be,Le,Qn)?yn.insert(un,Wn[0],!0):(yn.insert(Qn,Wn[0],!0),yn.insert(un,Qn)),yn=Wn[0],(O6(g,be,Le,yn)||ix(yn,"br"))&&yn.empty().remove()}else if(un.parent){if(un.name==="li"){let ur=un.prev;if(ur&&(ur.name==="ul"||ur.name==="ol")){ur.append(un);continue}if(ur=un.next,ur&&(ur.name==="ul"||ur.name==="ol")&&ur.firstChild){ur.insert(un,ur.firstChild,!0);continue}const Tr=new Hp("ul",1);H(Tr),un.wrap(Tr);continue}if(g.isValidChild(un.parent.name,"div")&&g.isValidChild("div",un.name)){const ur=new Hp("div",1);H(ur),un.wrap(ur)}else tP(un,g)}}},ml=(r,g)=>{let B=r;for(;B;){if(B.name===g)return!0;B=B.parent}return!1},vz=(r,g,B=g.parent)=>B?r.children[g.name]&&!r.isValidChild(B.name,g.name)||g.name==="a"&&ml(B,"a")?!0:N2(B)&&Qw(g)?!((B==null?void 0:B.firstChild)===g&&(B==null?void 0:B.lastChild)===g):!1:!1,XW=(r,g,B,H)=>{const oe=document.createRange();return oe.setStart(r,g),oe.setEnd(B,H),oe},GW=r=>{const g=vo.fromRangeStart(r),B=vo.fromRangeEnd(r),H=r.commonAncestorContainer;return Op(!1,H,B).map(oe=>!hm(g,B,H)&&hm(g,oe,H)?XW(g.container(),g.offset(),oe.container(),oe.offset()):r).getOr(r)},Rc=r=>r.collapsed?r:GW(r),yz=r=>P(r.firstChild)&&r.firstChild===r.lastChild,Uk=r=>r.name==="br"||r.value===Pc,jk=(r,g)=>r.getBlockElements()[g.name]&&yz(g)&&Uk(g.firstChild),Qk=(r,g)=>{const B=r.getNonEmptyElements();return P(g)&&(g.isEmpty(B)||jk(r,g))},Hk=(r,g)=>{let B=g.firstChild,H=g.lastChild;return B&&B.name==="meta"&&(B=B.next),H&&H.attr("id")==="mce_marker"&&(H=H.prev),Qk(r,H)&&(H=H==null?void 0:H.prev),!B||B!==H?!1:B.name==="ul"||B.name==="ol"},bz=r=>{var g,B;const H=r.firstChild,oe=r.lastChild;return H&&H.nodeName==="META"&&((g=H.parentNode)===null||g===void 0||g.removeChild(H)),oe&&oe.id==="mce_marker"&&((B=oe.parentNode)===null||B===void 0||B.removeChild(oe)),r},hfe=(r,g,B)=>{const H=g.serialize(B),oe=r.createFragment(H);return bz(oe)},pfe=r=>{var g;return Te((g=r==null?void 0:r.childNodes)!==null&&g!==void 0?g:[],B=>B.nodeName==="LI")},mfe=r=>r.data===Pc||gn(r),gfe=r=>P(r==null?void 0:r.firstChild)&&r.firstChild===r.lastChild&&mfe(r.firstChild),KW=r=>!r.firstChild||gfe(r),vfe=r=>r.length>0&&KW(r[r.length-1])?r.slice(0,-1):r,nP=(r,g)=>{const B=r.getParent(g,r.isBlock);return B&&B.nodeName==="LI"?B:null},JW=(r,g)=>!!nP(r,g),yfe=(r,g)=>{const B=g.cloneRange(),H=g.cloneRange();return B.setStartBefore(r),H.setEndAfter(r),[B.cloneContents(),H.cloneContents()]},eY=(r,g)=>{const B=vo.before(r),oe=k0(g).next(B);return oe?oe.toRange():null},Vu=(r,g)=>{const B=vo.after(r),oe=k0(g).prev(B);return oe?oe.toRange():null},xz=(r,g,B,H)=>{const oe=yfe(r,H),be=r.parentNode;return be&&(be.insertBefore(oe[0],r),To.each(g,Le=>{be.insertBefore(Le,r)}),be.insertBefore(oe[1],r),be.removeChild(r)),Vu(g[g.length-1],B)},_z=(r,g,B)=>{const H=r.parentNode;return H&&To.each(g,oe=>{H.insertBefore(oe,r)}),eY(r,B)},tY=(r,g,B,H)=>(H.insertAfter(g.reverse(),r),Vu(g[0],B)),nY=(r,g,B,H)=>{const oe=hfe(g,r,H),be=nP(g,B.startContainer),Le=vfe(pfe(oe.firstChild)),Ke=1,ut=2,At=g.getRoot(),nn=un=>{const yn=vo.fromRangeStart(B),Qn=k0(g.getRoot()),rr=un===Ke?Qn.prev(yn):Qn.next(yn),Wn=rr==null?void 0:rr.getNode();return Wn?nP(g,Wn)!==be:!0};return be?nn(Ke)?_z(be,Le,At):nn(ut)?tY(be,Le,At,g):xz(be,Le,At,B):null},rY=["pre"],eg=(r,g,B,H)=>{var oe;const be=g.firstChild,Le=g.lastChild,Ke=Le.attr("data-mce-type")==="bookmark"?Le.prev:Le,ut=be===Ke,At=ce(rY,be.name);if(ut&&At){const nn=be.attr("contenteditable")!=="false",un=((oe=r.getParent(B,r.isBlock))===null||oe===void 0?void 0:oe.nodeName.toLowerCase())===be.name,yn=Y.from(z2(H,B)).forall(pn);return nn&&un&&yn}else return!1},A0=Ir,oY=(r,g,B)=>{if(P(B)){const H=r.getParent(g.endContainer,A0);return B===H&&S3(_r.fromDom(B),g)}else return!1},rP=(r,g,B)=>{var H;if(B.getAttribute("data-mce-bogus")==="all")(H=B.parentNode)===null||H===void 0||H.insertBefore(r.dom.createFragment(g),B);else{const oe=B.firstChild,be=B.lastChild;!oe||oe===be&&oe.nodeName==="BR"?r.dom.setHTML(B,g):r.selection.setContent(g,{no_events:!0})}},oP=(r,g,B)=>{Y.from(r.getParent(g,"td,th")).map(_r.fromDom).each(H=>_b(H,B))},iY=(r,g)=>{const B=r.schema.getTextInlineElements(),H=r.dom;if(g){const oe=r.getBody(),be=Vk(r),Le="*[data-mce-fragment]",Ke=H.select(Le);To.each(Ke,ut=>{const At=yn=>P(B[yn.nodeName.toLowerCase()]),nn=yn=>yn.childNodes.length===1;if((yn=>!(yB(H,yn)||pW(H,yn)))(ut)&&At(ut)&&nn(ut)){const yn=W3(H,ut),Qn=(Tr,Wr)=>Oe(Tr,Qr=>ce(Wr,Qr)),rr=Tr=>nn(ut)&&H.is(Tr,Le)&&At(Tr)&&(Tr.nodeName===ut.nodeName&&Qn(yn,W3(H,Tr))||rr(Tr.children[0])),Wn=Tr=>P(Tr)&&Tr!==oe&&(be.compare(ut,Tr)||Wn(Tr.parentElement)),ur=Tr=>P(Tr)&&Tr!==oe&&H.is(Tr,Le)&&(gW(H,ut,Tr)||ur(Tr.parentElement));(rr(ut.children[0])||Wn(ut.parentElement)&&!ur(ut.parentElement))&&H.remove(ut,!0)}})}},aY=r=>{let g=r;for(;g=g.walk();)g.type===1&&g.attr("data-mce-fragment","1")},Zk=r=>{To.each(r.getElementsByTagName("*"),g=>{g.removeAttribute("data-mce-fragment")})},S6=r=>!!r.getAttribute("data-mce-fragment"),iP=(r,g)=>P(g)&&!r.schema.getVoidElements()[g.nodeName],sY=(r,g)=>{var B,H,oe;let be;const Le=r.dom,Ke=r.selection;if(!g)return;Ke.scrollIntoView(g);const ut=z2(r.getBody(),g);if(ut&&Le.getContentEditable(ut)==="false"){Le.remove(g),Ke.select(ut);return}let At=Le.createRng();const nn=g.previousSibling;if(Mt(nn)){At.setStart(nn,(H=(B=nn.nodeValue)===null||B===void 0?void 0:B.length)!==null&&H!==void 0?H:0);const Qn=g.nextSibling;Mt(Qn)&&(nn.appendData(Qn.data),(oe=Qn.parentNode)===null||oe===void 0||oe.removeChild(Qn))}else At.setStartBefore(g),At.setEndBefore(g);const un=Qn=>{let rr=vo.fromRangeStart(Qn);return rr=k0(r.getBody()).next(rr),rr==null?void 0:rr.toRange()},yn=Le.getParent(g,Le.isBlock);if(Le.remove(g),yn&&Le.isEmpty(yn)){const Qn=A0(yn);uf(_r.fromDom(yn)),At.setStart(yn,0),At.setEnd(yn,0),!Qn&&!S6(yn)&&(be=un(At))?(At=be,Le.remove(yn)):Le.add(yn,Le.create("br",Qn?{}:{"data-mce-bogus":"1"}))}Ke.setRng(At)},Pv=r=>{const g=r.dom,B=Rc(r.selection.getRng());r.selection.setRng(B);const H=g.getParent(B.startContainer,A0);oY(g,B,H)?b6(r,B,_r.fromDom(H)):B.startContainer===B.endContainer&&B.endOffset-B.startOffset===1&&Mt(B.startContainer.childNodes[B.startOffset])?B.deleteContents():r.getDoc().execCommand("Delete",!1)},lY=r=>{for(let g=r;g;g=g.walk())if(g.attr("id")==="mce_marker")return Y.some(g);return Y.none()},cY=(r,g,B)=>{var H;return de(B.children(),Qw)&&((H=r.getParent(g,r.isBlock))===null||H===void 0?void 0:H.nodeName)==="SUMMARY"},M0=(r,g,B)=>{var H,oe;const be=r.selection,Le=r.dom,Ke=r.parser,ut=B.merge,At=rx({validate:!0},r.schema),nn='';B.preserve_zwsp||(g=Sd(g)),g.indexOf("{$caret}")===-1&&(g+="{$caret}"),g=g.replace(/\{\$caret\}/,nn);let un=be.getRng();const yn=un.startContainer,Qn=r.getBody();yn===Qn&&be.isCollapsed()&&Le.isBlock(Qn.firstChild)&&iP(r,Qn.firstChild)&&Le.isEmpty(Qn.firstChild)&&(un=Le.createRng(),un.setStart(Qn.firstChild,0),un.setEnd(Qn.firstChild,0),be.setRng(un)),be.isCollapsed()||Pv(r);const rr=be.getNode(),Wn={context:rr.nodeName.toLowerCase(),data:B.data,insert:!0},ur=Ke.parse(g,Wn);if(B.paste===!0&&Hk(r.schema,ur)&&JW(Le,rr))return un=nY(At,Le,be.getRng(),ur),un&&be.setRng(un),g;B.paste===!0&&eg(Le,ur,rr,r.getBody())&&((H=ur.firstChild)===null||H===void 0||H.unwrap()),aY(ur);let Tr=ur.lastChild;if(Tr&&Tr.attr("id")==="mce_marker"){const Wr=Tr;for(Tr=Tr.prev;Tr;Tr=Tr.walk(!0))if(Tr.type===3||!Le.isBlock(Tr.name)){Tr.parent&&r.schema.isValidChild(Tr.parent.name,"span")&&Tr.parent.insert(Wr,Tr,Tr.name==="br");break}}if(r._selectionOverrides.showBlockCaretContainer(rr),!Wn.invalid&&!cY(Le,rr,ur))g=At.serialize(ur),rP(r,g,rr);else{r.selection.setContent(nn);let Wr=be.getNode(),Qr;const lo=r.getBody();for(vn(Wr)?Wr=Qr=lo:Qr=Wr;Qr&&Qr!==lo;)Wr=Qr,Qr=Qr.parentNode;g=Wr===lo?lo.innerHTML:Le.getOuterHTML(Wr);const Zo=Ke.parse(g),li=lY(Zo),Mi=li.bind(YW).getOr(Zo);li.each(Fi=>Fi.replace(ur));const Co=ur.children(),yo=(oe=ur.parent)!==null&&oe!==void 0?oe:Zo;ur.unwrap();const Vo=Te(Co,Fi=>vz(r.schema,Fi,yo));Ev(Vo,r.schema,Mi),JE(Ke.getNodeFilters(),Ke.getAttributeFilters(),Zo),g=At.serialize(Zo),Wr===lo?Le.setHTML(lo,g):Le.setOuterHTML(Wr,g)}return iY(r,ut),sY(r,Le.get("mce_marker")),Zk(r.getBody()),oP(Le,be.getStart(),r.schema),Jc(r.schema,r.getBody(),be.getStart()),g},F2=r=>r instanceof Hp,T1=r=>{nx(r)&&ph(r.getBody()).each(g=>{const B=g.getNode(),H=dt(B)?ph(B).getOr(g):g;r.selection.setRng(H.toRange())})},aP=(r,g,B)=>{r.dom.setHTML(r.getBody(),g),B!==!0&&T1(r)},rc=(r,g,B,H)=>{if(B=Sd(B),B.length===0||/^\s+$/.test(B)){const oe='
    ';g.nodeName==="TABLE"?B=""+oe+"":/^(UL|OL)$/.test(g.nodeName)&&(B="
  • "+oe+"
  • ");const be=tu(r);return r.schema.isValidChild(g.nodeName.toLowerCase(),be.toLowerCase())?(B=oe,B=r.dom.createHTML(be,qd(r),B)):B||(B=oe),aP(r,B,H.no_selection),{content:B,html:B}}else{H.format!=="raw"&&(B=rx({validate:!1},r.schema).serialize(r.parser.parse(B,{isRootContent:!0,insert:!0})));const oe=xb(_r.fromDom(g))?B:To.trim(B);return aP(r,oe,H.no_selection),{content:oe,html:oe}}},nS=(r,g,B,H)=>{JE(r.parser.getNodeFilters(),r.parser.getAttributeFilters(),B);const oe=rx({validate:!1},r.schema).serialize(B),be=Sd(xb(_r.fromDom(g))?oe:To.trim(oe));return aP(r,be,H.no_selection),{content:B,html:be}},k6=(r,g,B)=>Y.from(r.getBody()).map(H=>F2(g)?nS(r,H,g,B):rc(r,H,g,B)).getOr({content:g,html:F2(B.content)?"":B.content}),sP=r=>A(r)?r:re,lP=(r,g,B)=>{let H=r.dom;const oe=sP(B);for(;H.parentNode;){H=H.parentNode;const be=_r.fromDom(H),Le=g(be);if(Le.isSome())return Le;if(oe(be))break}return Y.none()},qk=(r,g,B)=>{const H=g(r),oe=sP(B);return H.orThunk(()=>oe(r)?Y.none():lP(r,g,oe))},cP=Wb,T6=(r,g,B)=>{const H=r.formatter.get(B);if(H)for(let oe=0;oe{const be=r.dom.getRoot();if(g===be)return!1;const Le=r.dom.getParent(g,Ke=>T6(r,Ke,B)?!0:Ke.parentNode===be||!!C1(r,Ke,B,H,!0));return!!C1(r,Le,B,H,oe)},Wk=(r,g,B)=>Ed(B)&&cP(g,B.inline)||Cv(B)&&cP(g,B.block)?!0:Gm(B)?ne(g)&&r.is(g,B.selector):!1,fP=(r,g,B,H,oe,be)=>{const Le=B[H],Ke=H==="attributes";if(A(B.onmatch))return B.onmatch(g,B,H);if(Le){if(Sn(Le)){for(let ut=0;ut{const be=r.formatter.get(B),Le=r.dom;if(be&&ne(g))for(let Ke=0;Ke{if(H)return uP(r,H,g,B,oe);if(H=r.selection.getNode(),uP(r,H,g,B,oe))return!0;const be=r.selection.getStart();return!!(be!==H&&uP(r,be,g,B,oe))},A6=(r,g,B)=>{const H=[],oe={},be=r.selection.getStart();return r.dom.getParent(be,Le=>{for(let Ke=0;Ke{const B=oe=>va(oe,_r.fromDom(r.getBody())),H=(oe,be)=>C1(r,oe.dom,be)?Y.some(be):Y.none();return Y.from(r.selection.getStart(!0)).bind(oe=>qk(_r.fromDom(oe),be=>Fe(g,Le=>H(be,Le)),B)).getOrNull()},fY=(r,g)=>{const B=r.formatter.get(g),H=r.dom;if(B&&r.selection.isEditable()){const oe=r.selection.getStart(),be=R3(H,oe);for(let Le=B.length-1;Le>=0;Le--){const Ke=B[Le];if(!Gm(Ke))return!0;for(let ut=be.length-1;ut>=0;ut--)if(H.is(be[ut],Ke.selector))return!0}}return!1},dY=(r,g,B)=>Ie(B,(H,oe)=>{const be=uk(r,oe);return r.formatter.matchNode(g,oe,{},be)?H.concat([oe]):H},[]),Yk=Ou,hY=(r,g)=>r.importNode(g,!0),dP=r=>{if(r){const g=new Xl(r,r);for(let B=g.current();B;B=g.next())if(Mt(B))return B}return null},hP=r=>{const g=_r.fromTag("span");return Tu(g,{id:y3,"data-mce-bogus":"1","data-mce-type":"format-caret"}),r&&ii(g,_r.fromText(Yk)),g},pY=r=>{const g=dP(r);return g&&g.data.charAt(0)===Yk&&g.deleteData(0,1),g},M6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(D3(g))T0(r,!1,_r.fromDom(g),B,!0);else{const be=oe.getRng(),Le=H.getParent(g,H.isBlock),Ke=be.startContainer,ut=be.startOffset,At=be.endContainer,nn=be.endOffset,un=pY(g);H.remove(g,!0),Ke===un&&ut>0&&be.setStart(un,ut-1),At===un&&nn>0&&be.setEnd(un,nn-1),Le&&H.isEmpty(Le)&&xp(_r.fromDom(Le)),oe.setRng(be)}},E6=(r,g,B)=>{const H=r.dom,oe=r.selection;if(g)M6(r,g,B);else if(g=jb(r.getBody(),oe.getStart()),!g)for(;g=H.get(y3);)M6(r,g,B)},mY=(r,g,B)=>{var H,oe;const be=r.dom,Le=be.getParent(B,U(E3,r.schema));Le&&be.isEmpty(Le)?(H=B.parentNode)===null||H===void 0||H.replaceChild(g,B):(a1(_r.fromDom(B)),be.isEmpty(B)?(oe=B.parentNode)===null||oe===void 0||oe.replaceChild(g,B):be.insertAfter(g,B))},wz=(r,g)=>(r.appendChild(g),g),pP=(r,g)=>{var B;const H=Pe(r,(be,Le)=>wz(be,Le.cloneNode(!1)),g),oe=(B=H.ownerDocument)!==null&&B!==void 0?B:document;return wz(H,oe.createTextNode(Yk))},gY=(r,g,B,H,oe,be)=>{const Le=r.formatter,Ke=r.dom,ut=Te(tt(Le.get()),un=>un!==H&&!tr(un,"removeformat")),At=dY(r,B,ut);if(Te(At,un=>!zC(r,un,H)).length>0){const un=B.cloneNode(!1);return Ke.add(g,un),Le.remove(H,oe,un,be),Ke.remove(un),Y.some(un)}else return Y.none()},mP=r=>K_(r,f0(r).replace(new RegExp(`${Pc}$`)," ")),Dg=(r,g)=>{const B=()=>{g!==null&&!r.dom.isEmpty(g)&&sf(_r.fromDom(g)).each(H=>{Ml(H)?mP(H):Qc(H,oe=>Ml(oe)).each(oe=>{Ml(oe)&&mP(oe)})})};r.once("input",H=>{H.data&&!Ly(H.data)&&(H.isComposing?r.once("compositionend",()=>{B()}):B())})},vY=(r,g,B)=>{let H;const oe=r.selection,be=r.formatter.get(g);if(!be)return;const Le=oe.getRng();let Ke=Le.startOffset;const At=Le.startContainer.nodeValue;H=jb(r.getBody(),oe.getStart());const nn=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(At&&Ke>0&&Ke{const oe=r.dom,be=r.selection;let Le=!1;const Ke=r.formatter.get(g);if(!Ke)return;const ut=be.getRng(),At=ut.startContainer,nn=ut.startOffset;let un=At;Mt(At)&&(nn!==At.data.length&&(Le=!0),un=un.parentNode);const yn=[];let Qn;for(;un;){if(C1(r,un,g,B,H)){Qn=un;break}un.nextSibling&&(Le=!0),yn.push(un),un=un.parentNode}if(Qn)if(Le){const rr=be.getBookmark();ut.collapse(!0);let Wn=Xb(oe,ut,Ke,!0);Wn=Xo(Wn),r.formatter.remove(g,B,Wn,H),be.moveToBookmark(rr)}else{const rr=jb(r.getBody(),Qn),Wn=P(rr)?oe.getParents(Qn.parentNode,q,rr):[],ur=hP(!1).dom;mY(r,ur,rr??Qn);const Tr=gY(r,ur,Qn,g,B,H),Wr=pP([...yn,...Tr.toArray(),...Wn],ur);rr&&M6(r,rr,P(rr)),be.setCursorLocation(Wr,1),Dg(r,ur),oe.isEmpty(Qn)&&oe.remove(Qn)}},gP=(r,g,B)=>{const H=r.selection,oe=r.getBody();E6(r,null,B),(g===8||g===46)&&H.isCollapsed()&&H.getStart().innerHTML===Yk&&E6(r,jb(oe,H.getStart()),!0),(g===37||g===39)&&E6(r,jb(oe,H.getStart()),!0)},vP=r=>Mt(r)&&$r(r.data,Pc),Sz=r=>{r.on("mouseup keydown",g=>{gP(r,g.keyCode,vP(r.selection.getRng().endContainer))})},yP=r=>{const g=hP(!1),B=pP(r,g.dom);return{caretContainer:g,caretPosition:vo(B,0)}},kz=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return xc(_r.fromDom(r),B),hs(_r.fromDom(r)),H},yY=(r,g)=>{const{caretContainer:B,caretPosition:H}=yP(g);return r.insertNode(B.dom),H},P6=(r,g)=>{if(Xm(g.dom))return!1;const B=r.schema.getTextInlineElements();return Ot(B,ma(g))&&!Xm(g.dom)&&!et(g.dom)},rS={},Bg=xe(["pre"]),bY=(r,g)=>{rS[r]||(rS[r]=[]),rS[r].push(g)},xY=(r,g)=>{Ot(rS,r)&&ve(rS[r],B=>{B(g)})};bY("pre",r=>{const g=r.selection.getRng(),B=oe=>be=>{const Le=be.previousSibling;return Bg(Le)&&ce(oe,Le)},H=(oe,be)=>{const Le=_r.fromDom(be),Ke=$f(Le).dom;hs(Le),Yl(_r.fromDom(oe),[_r.fromTag("br",Ke),_r.fromTag("br",Ke),...vc(Le)])};if(!g.collapsed){const oe=r.selection.getSelectedBlocks(),be=Te(Te(oe,Bg),B(oe));ve(be,Le=>{H(Le.previousSibling,Le)})}});const _Y=["fontWeight","fontStyle","color","fontSize","fontFamily"],bP=r=>_(r.styles)&&de(tt(r.styles),g=>ce(_Y,g)),wY=r=>De(r,g=>Ed(g)&&g.inline==="span"&&bP(g)),OY=(r,g)=>{const B=r.get(g);return C(B)?wY(B):Y.none()},Tz=(r,g)=>Up(g,vo.fromRangeStart(r)).isNone(),R6=(r,g)=>Sp(g,vo.fromRangeEnd(r)).exists(B=>!gn(B.getNode())||Sp(g,B).isSome())===!1,A1=r=>g=>ro(g)&&r.isEditable(g),xP=r=>{const g=r.getSelectedBlocks(),B=r.getRng();if(r.isCollapsed())return[];if(g.length===1)return Tz(B,g[0])&&R6(B,g[0])?g:[];{const H=Ye(g).filter(Le=>Tz(B,Le)).toArray(),oe=Je(g).filter(Le=>R6(B,Le)).toArray(),be=g.slice(1,-1);return H.concat(be).concat(oe)}},L6=r=>Te(xP(r),A1(r.dom)),I6=r=>Te(r.getSelectedBlocks(),A1(r.dom)),_P=To.each,D6=r=>ne(r)&&!pm(r)&&!Xm(r)&&!et(r),Cz=(r,g)=>{for(let B=r;B;B=B[g]){if(Mt(B)&&lr(B.data))return r;if(ne(B)&&!pm(B))return B}return r},wP=(r,g,B)=>{const H=Vk(r),oe=V(g)&&r.dom.isEditable(g),be=V(B)&&r.dom.isEditable(B);if(oe&&be){const Le=Cz(g,"previousSibling"),Ke=Cz(B,"nextSibling");if(H.compare(Le,Ke)){for(let ut=Le.nextSibling;ut&&ut!==Ke;){const At=ut;ut=ut.nextSibling,Le.appendChild(At)}return r.dom.remove(Ke),To.each(To.grep(Ke.childNodes),ut=>{Le.appendChild(ut)}),Le}}return B},B6=(r,g,B,H)=>{var oe;if(H&&g.merge_siblings!==!1){const be=(oe=wP(r,M3(H),H))!==null&&oe!==void 0?oe:H;wP(r,be,M3(be,!0))}},SY=(r,g,B)=>{if(g.clear_child_styles){const H=g.links?"*:not(a)":"*";_P(r.select(H,B),oe=>{D6(oe)&&r.isEditable(oe)&&_P(g.styles,(be,Le)=>{r.setStyle(oe,Le,"")})})}},z6=(r,g,B)=>{_P(r.childNodes,H=>{D6(H)&&(g(H)&&B(H),H.hasChildNodes()&&z6(H,g,B))})},kY=(r,g)=>{g.nodeName==="SPAN"&&r.getAttribs(g).length===0&&r.remove(g,!0)},$2=(r,g)=>B=>!!(B&&Cw(r,B,g)),OP=(r,g,B)=>H=>{r.setStyle(H,g,B),H.getAttribute("style")===""&&H.removeAttribute("style"),kY(r,H)},Zw=kl.generate([{keep:[]},{rename:["name"]},{removed:[]}]),Az=/^(src|href|style)$/,SP=To.each,N6=Wb,TY=r=>/^(TR|TH|TD)$/.test(r.nodeName),Mz=(r,g,B)=>r.isChildOf(g,B)&&g!==B&&!r.isBlock(B),Ez=(r,g,B)=>{let H=g[B?"startContainer":"endContainer"],oe=g[B?"startOffset":"endOffset"];if(ne(H)){const be=H.childNodes.length-1;!B&&oe&&oe--,H=H.childNodes[oe>be?be:oe]}return Mt(H)&&B&&oe>=H.data.length&&(H=new Xl(H,r.getBody()).next()||H),Mt(H)&&!B&&oe===0&&(H=new Xl(H,r.getBody()).prev()||H),H},kP=(r,g)=>{const B=g?"firstChild":"lastChild",H=r[B];return TY(r)&&H?r.nodeName==="TR"&&H[B]||H:r},TP=(r,g,B,H)=>{var oe;const be=r.create(B,H);return(oe=g.parentNode)===null||oe===void 0||oe.insertBefore(be,g),be.appendChild(g),be},F6=(r,g,B,H,oe)=>{const be=_r.fromDom(g),Le=_r.fromDom(r.create(H,oe)),Ke=B?xd(be):Vd(be);return Yl(Le,Ke),B?(xc(be,Le),jd(Le,be)):(Kc(be,Le),ii(Le,be)),Le.dom},qw=(r,g)=>g.links&&r.nodeName==="A",Pz=(r,g,B)=>{const H=g.parentNode;let oe;const be=r.dom,Le=tu(r);Cv(B)&&H===be.getRoot()&&(!B.list_block||!N6(g,B.list_block))&&ve(Me(g.childNodes),Ke=>{Iy(r,Le,Ke.nodeName.toLowerCase())?oe?oe.appendChild(Ke):(oe=TP(be,Ke,Le),be.setAttribs(oe,qd(r))):oe=null}),!(Av(B)&&!N6(B.inline,g))&&be.remove(g,!0)},Rz=(r,g,B)=>L(r)?{name:g,value:null}:{name:r,value:Tv(g,B)},Xk=(r,g)=>{r.getAttrib(g,"style")===""&&(g.removeAttribute("style"),g.removeAttribute("data-mce-style"))},CP=(r,g,B,H,oe)=>{let be=!1;SP(B.styles,(Le,Ke)=>{const{name:ut,value:At}=Rz(Ke,Le,H),nn=BC(At,ut);(B.remove_similar||x(At)||!ne(oe)||N6(Cw(r,oe,ut),nn))&&r.setStyle(g,ut,""),be=!0}),be&&Xk(r,g)},Lz=(r,g,B)=>{g==="removeformat"?ve(I6(r.selection),H=>{ve(_Y,oe=>r.dom.setStyle(H,oe,"")),Xk(r.dom,H)}):OY(r.formatter,g).each(H=>{ve(I6(r.selection),oe=>CP(r.dom,oe,H,B,null))})},Iz=(r,g,B,H,oe)=>{const be=r.dom,Le=Vk(r),Ke=r.schema;if(Ed(g)&&Hc(Ke,g.inline)&&lh(Ke,H)&&H.parentElement===r.getBody())return Pz(r,H,g),Zw.removed();if(!g.ceFalseOverride&&H&&be.getContentEditableParent(H)==="false"||H&&!Wk(be,H,g)&&!qw(H,g))return Zw.keep();const ut=H,At=g.preserve_attributes;if(Ed(g)&&g.remove==="all"&&C(At)){const nn=Te(be.getAttribs(ut),un=>ce(At,un.name.toLowerCase()));if(be.removeAllAttribs(ut),ve(nn,un=>be.setAttrib(ut,un.name,un.value)),nn.length>0)return Zw.rename("span")}if(g.remove!=="all"){CP(be,ut,g,B,oe),SP(g.attributes,(un,yn)=>{const{name:Qn,value:rr}=Rz(yn,un,B);if(g.remove_similar||x(rr)||!ne(oe)||N6(be.getAttrib(oe,Qn),rr)){if(Qn==="class"){const Wn=be.getAttrib(ut,Qn);if(Wn){let ur="";if(ve(Wn.split(/\s+/),Tr=>{/mce\-\w+/.test(Tr)&&(ur+=(ur?" ":"")+Tr)}),ur){be.setAttrib(ut,Qn,ur);return}}}if(Az.test(Qn)&&ut.removeAttribute("data-mce-"+Qn),Qn==="style"&&xe(["li"])(ut)&&be.getStyle(ut,"list-style-type")==="none"){ut.removeAttribute(Qn),be.setStyle(ut,"list-style-type","none");return}Qn==="class"&&ut.removeAttribute("className"),ut.removeAttribute(Qn)}}),SP(g.classes,un=>{un=Tv(un,B),(!ne(oe)||be.hasClass(oe,un))&&be.removeClass(ut,un)});const nn=be.getAttribs(ut);for(let un=0;un{let be;return g.parentNode&&ve(R3(r.dom,g.parentNode).reverse(),Le=>{if(!be&&ne(Le)&&Le.id!=="_start"&&Le.id!=="_end"){const Ke=C1(r,Le,B,H,oe);Ke&&Ke.split!==!1&&(be=Le)}}),be},CY=(r,g,B,H)=>Iz(r,g,B,H,H).fold($(H),oe=>(r.dom.createFragment().appendChild(H),r.dom.rename(H,oe)),$(null)),Ww=(r,g,B,H,oe,be,Le,Ke)=>{var ut,At;let nn,un;const yn=r.dom;if(B){const Qn=B.parentNode;for(let rr=H.parentNode;rr&&rr!==Qn;rr=rr.parentNode){let Wn=yn.clone(rr,!1);for(let ur=0;ur{const be=r.formatter.get(g),Le=be[0],Ke=r.dom,ut=r.selection,At=Wn=>{const ur=Dz(r,Wn,g,B,oe);return Ww(r,be,ur,Wn,Wn,!0,Le,B)},nn=Wn=>pm(Wn)&&ne(Wn)&&(Wn.id==="_start"||Wn.id==="_end"),un=Wn=>de(be,ur=>oS(r,ur,B,Wn,Wn)),yn=Wn=>{const ur=Me(Wn.childNodes),Wr=un(Wn)||de(be,Zo=>Wk(Ke,Wn,Zo)),Qr=Wn.parentNode;if(!Wr&&P(Qr)&&fk(Le)&&un(Qr),Le.deep&&ur.length)for(let Zo=0;Zo{ne(Wn)&&r.dom.getStyle(Wn,"text-decoration")===Zo&&Wn.parentNode&&ck(Ke,Wn.parentNode)===Zo&&oS(r,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:Zo}},void 0,Wn)})},Qn=Wn=>{const ur=Ke.get(Wn?"_start":"_end");if(ur){let Tr=ur[Wn?"firstChild":"lastChild"];return nn(Tr)&&(Tr=Tr[Wn?"firstChild":"lastChild"]),Mt(Tr)&&Tr.data.length===0&&(Tr=Wn?ur.previousSibling||ur.nextSibling:ur.nextSibling||ur.previousSibling),Ke.remove(ur,!0),Tr}else return null},rr=Wn=>{let ur,Tr,Wr=Xb(Ke,Wn,be,Wn.collapsed);if(Le.split){if(Wr=Xo(Wr),ur=Ez(r,Wr,!0),Tr=Ez(r,Wr),ur!==Tr){if(ur=kP(ur,!0),Tr=kP(Tr,!1),Mz(Ke,ur,Tr)){const lo=Y.from(ur.firstChild).getOr(ur);At(F6(Ke,lo,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Qn(!0);return}if(Mz(Ke,Tr,ur)){const lo=Y.from(Tr.lastChild).getOr(Tr);At(F6(Ke,lo,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Qn(!1);return}ur=TP(Ke,ur,"span",{id:"_start","data-mce-type":"bookmark"}),Tr=TP(Ke,Tr,"span",{id:"_end","data-mce-type":"bookmark"});const Qr=Ke.createRng();Qr.setStartAfter(ur),Qr.setEndBefore(Tr),Ew(Ke,Qr,lo=>{ve(lo,Zo=>{!pm(Zo)&&!pm(Zo.parentNode)&&At(Zo)})}),At(ur),At(Tr),ur=Qn(!0),Tr=Qn()}else ur=Tr=At(ur);Wr.startContainer=ur.parentNode?ur.parentNode:ur,Wr.startOffset=Ke.nodeIndex(ur),Wr.endContainer=Tr.parentNode?Tr.parentNode:Tr,Wr.endOffset=Ke.nodeIndex(Tr)+1}Ew(Ke,Wr,Qr=>{ve(Qr,yn)})};if(H){if(C3(H)){const Wn=Ke.createRng();Wn.setStartBefore(H),Wn.setEndAfter(H),rr(Wn)}else rr(H);mm(r,g,H,B);return}!ut.isCollapsed()||!Ed(Le)||k2(r).length?(_1(r,()=>k3(r,rr),Wn=>Ed(Le)&&C6(r,g,B,Wn)),r.nodeChanged()):Oz(r,g,B,oe),Lz(r,g,B),mm(r,g,H,B)},AP=(r,g,B,H,oe)=>{(H||r.selection.isEditable())&&Bz(r,g,B,H,oe)},oS=(r,g,B,H,oe)=>Iz(r,g,B,H,oe).fold(re,be=>(r.dom.rename(H,be),!0),q),Gk=To.each,zz=(r,g,B,H)=>{const oe=be=>{if(V(be)&&ne(be.parentNode)&&r.isEditable(be)){const Le=ck(r,be.parentNode);r.getStyle(be,"color")&&Le?r.setStyle(be,"text-decoration",Le):r.getStyle(be,"text-decoration")===Le&&r.setStyle(be,"text-decoration",null)}};g.styles&&(g.styles.color||g.styles.textDecoration)&&(To.walk(H,oe,"childNodes"),oe(H))},AY=(r,g,B,H)=>{if(g.styles&&g.styles.backgroundColor){const oe=$2(r,"fontSize");z6(H,be=>oe(be)&&r.isEditable(be),OP(r,"backgroundColor",Tv(g.styles.backgroundColor,B)))}},Nz=(r,g,B,H)=>{if(Ed(g)&&(g.inline==="sub"||g.inline==="sup")){const oe=$2(r,"fontSize");z6(H,Le=>oe(Le)&&r.isEditable(Le),OP(r,"fontSize",""));const be=Te(r.select(g.inline==="sup"?"sub":"sup",H),r.isEditable);r.remove(be,!0)}},MY=(r,g,B,H)=>{Gk(g,oe=>{Ed(oe)&&Gk(r.dom.select(oe.inline,H),be=>{D6(be)&&oS(r,oe,B,be,oe.exact?be:null)}),SY(r.dom,oe,H)})},EY=(r,g,B,H,oe)=>{const be=oe.parentNode;C1(r,be,B,H)&&oS(r,g,H,oe)||g.merge_with_parents&&be&&r.dom.getParent(be,Le=>C1(r,Le,B,H)?(oS(r,g,H,oe),!0):!1)},Yw=To.each,Fz=(r,g,B,H)=>{if(t3(r)&&Ed(g)&&B.parentNode){const oe=n1(r.schema),be=sh(_r.fromDom(B),Le=>Xm(Le.dom));return cn(oe,H)&&Hi(r.schema,B.parentNode,{skipBogus:!1,includeZwsp:!0})&&!be}else return!1},$6=(r,g,B,H)=>{if(Yw(B.styles,(oe,be)=>{r.setStyle(g,be,Tv(oe,H))}),B.styles){const oe=r.getAttrib(g,"style");oe&&r.setAttrib(g,"data-mce-style",oe)}},PY=(r,g,B,H)=>{const oe=r.formatter.get(g),be=oe[0],Le=!H&&r.selection.isCollapsed(),Ke=r.dom,ut=r.selection,At=(rr,Wn=be)=>{A(Wn.onformat)&&Wn.onformat(rr,Wn,B,H),$6(Ke,rr,Wn,B),Yw(Wn.attributes,(ur,Tr)=>{Ke.setAttrib(rr,Tr,Tv(ur,B))}),Yw(Wn.classes,ur=>{const Tr=Tv(ur,B);Ke.hasClass(rr,Tr)||Ke.addClass(rr,Tr)})},nn=(rr,Wn)=>{let ur=!1;return Yw(rr,Tr=>Gm(Tr)?Ke.getContentEditable(Wn)==="false"&&!Tr.ceFalseOverride||P(Tr.collapsed)&&Tr.collapsed!==Le?!0:Ke.is(Wn,Tr.selector)&&!Xm(Wn)?(At(Wn,Tr),ur=!0,!1):!0:!1),ur},un=rr=>{if(v(rr)){const Wn=Ke.create(rr);return At(Wn),Wn}else return null},yn=(rr,Wn,ur)=>{const Tr=[];let Wr=!0;const Qr=be.inline||be.block,lo=un(Qr),Zo=Co=>I3(be)&&C1(r,Co,g,B),li=(Co,yo,Vo)=>{const Fi=NC(be)&&E3(r.schema,Co)&&Iy(r,yo,Qr);return Vo&&Fi},Mi=(Co,yo,Vo,Fi)=>{const la=Co.nodeName.toLowerCase(),bs=Iy(r,Qr,la)&&Iy(r,yo,Qr),Ms=!ur&&Mt(Co)&&Wx(Co.data),wl=Xm(Co),Vl=!Ed(be)||!rr.isBlock(Co);return(Vo||Fi)&&bs&&!Ms&&!wl&&Vl};Ew(rr,Wn,Co=>{let yo;const Vo=Fi=>{let la=!1,bs=Wr,Ms=!1;const wl=Fi.parentNode,Vl=wl.nodeName.toLowerCase(),Uu=rr.getContentEditable(Fi);P(Uu)&&(bs=Wr,Wr=Uu==="true",la=!0,Ms=lk(r,Fi));const Wf=Wr&&!la;if(gn(Fi)&&!Fz(r,be,Fi,Vl)){yo=null,Cv(be)&&rr.remove(Fi);return}if(Zo(Fi)){yo=null;return}if(li(Fi,Vl,Wf)){const ic=rr.rename(Fi,Qr);At(ic),Tr.push(ic),yo=null;return}if(Gm(be)){let ic=nn(oe,Fi);if(!ic&&P(wl)&&fk(be)&&(ic=nn(oe,wl)),!Ed(be)||ic){yo=null;return}}P(lo)&&Mi(Fi,Vl,Wf,Ms)?(yo||(yo=rr.clone(lo,!1),wl.insertBefore(yo,Fi),Tr.push(yo)),Ms&&la&&(Wr=bs),yo.appendChild(Fi)):(yo=null,ve(Me(Fi.childNodes),Vo),la&&(Wr=bs),yo=null)};ve(Co,Vo)}),be.links===!0&&ve(Tr,Co=>{const yo=Vo=>{Vo.nodeName==="A"&&At(Vo,be),ve(Me(Vo.childNodes),yo)};yo(Co)}),ve(Tr,Co=>{const yo=la=>{let bs=0;return ve(la.childNodes,Ms=>{!ak(Ms)&&!pm(Ms)&&bs++}),bs},Vo=la=>De(la.childNodes,A3).filter(Ms=>rr.getContentEditable(Ms)!=="false"&&Wk(rr,Ms,be)).map(Ms=>{const wl=rr.clone(Ms,!1);return At(wl),rr.replace(wl,la,!0),rr.remove(Ms,!0),wl}).getOr(la),Fi=yo(Co);if((Tr.length>1||!rr.isBlock(Co))&&Fi===0){rr.remove(Co,!0);return}(Ed(be)||Cv(be)&&be.wrapper)&&(!be.exact&&Fi===1&&(Co=Vo(Co)),MY(r,oe,B,Co),EY(r,be,g,B,Co),AY(rr,be,B,Co),zz(rr,be,B,Co),Nz(rr,be,B,Co),B6(r,be,B,Co))})},Qn=C3(H)?H:ut.getNode();if(Ke.getContentEditable(Qn)==="false"&&!lk(r,Qn)){H=Qn,nn(oe,H),Jm(r,g,H,B);return}if(be){if(H)if(C3(H)){if(!nn(oe,H)){const rr=Ke.createRng();rr.setStartBefore(H),rr.setEndAfter(H),yn(Ke,Xb(Ke,rr,oe),!0)}}else yn(Ke,H,!0);else!Le||!Ed(be)||k2(r).length?(ut.setRng(Rc(ut.getRng())),_1(r,()=>{k3(r,(rr,Wn)=>{const ur=Wn?rr:Xb(Ke,rr,oe);yn(Ke,ur,!1)})},q),r.nodeChanged()):vY(r,g,B),OY(r.formatter,g).each(rr=>{ve(L6(r.selection),Wn=>$6(Ke,Wn,rr,B))});xY(g,r)}Jm(r,g,H,B)},$z=(r,g,B,H)=>{(H||r.selection.isEditable())&&PY(r,g,B,H)},MP=r=>Ot(r,"vars"),EP=(r,g)=>{r.set({}),g.on("NodeChange",B=>{jz(g,B.element,r.get())}),g.on("FormatApply FormatRemove",B=>{const H=Y.from(B.node).map(oe=>C3(oe)?oe:oe.startContainer).bind(oe=>ne(oe)?Y.some(oe):Y.from(oe.parentElement)).getOrThunk(()=>PP(g));jz(g,H,r.get())})},PP=r=>r.selection.getStart(),Vz=(r,g,B,H,oe)=>ze(g,Ke=>{const ut=r.formatter.matchNode(Ke,B,oe??{},H);return!M(ut)},Ke=>T6(r,Ke,B)?!0:H?!1:P(r.formatter.matchNode(Ke,B,oe,!0))),Uz=(r,g)=>{const B=g??PP(r);return Te(R3(r.dom,B),H=>ne(H)&&!et(H))},jz=(r,g,B)=>{const H=Uz(r,g);Ge(B,(oe,be)=>{const Le=Ke=>{const ut=Vz(r,H,be,Ke.similar,MP(Ke)?Ke.vars:void 0),At=ut.isSome();if(Ke.state.get()!==At){Ke.state.set(At);const nn=ut.getOr(g);MP(Ke)?Ke.callback(At,{node:nn,format:be,parents:H}):ve(Ke.callbacks,un=>un(At,{node:nn,format:be,parents:H}))}};ve([oe.withSimilar,oe.withoutSimilar],Le),ve(oe.withVars,Le)})},V6=(r,g,B,H,oe,be)=>{const Le=g.get();ve(B.split(","),Ke=>{const ut=Et(Le,Ke).getOrThunk(()=>{const nn={withSimilar:{state:Ar(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Ar(!1),similar:!1,callbacks:[]},withVars:[]};return Le[Ke]=nn,nn}),At=()=>{const nn=Uz(r);return Vz(r,nn,Ke,oe,be).isSome()};if(M(be)){const nn=oe?ut.withSimilar:ut.withoutSimilar;nn.callbacks.push(H),nn.callbacks.length===1&&nn.state.set(At())}else ut.withVars.push({state:Ar(At()),similar:oe,vars:be,callback:H})}),g.set(Le)},ax=(r,g,B)=>{const H=r.get();ve(g.split(","),oe=>Et(H,oe).each(be=>{H[oe]={withSimilar:{...be.withSimilar,callbacks:Te(be.withSimilar.callbacks,Le=>Le!==B)},withoutSimilar:{...be.withoutSimilar,callbacks:Te(be.withoutSimilar.callbacks,Le=>Le!==B)},withVars:Te(be.withVars,Le=>Le.callback!==B)}})),r.set(H)},RY=(r,g,B,H,oe,be)=>(V6(r,g,B,H,oe,be),{unbind:()=>ax(g,B,H)}),RP=(r,g,B,H)=>{const oe=r.formatter.get(g);oe&&(C6(r,g,B,H)&&(!("toggle"in oe[0])||oe[0].toggle)?AP(r,g,B,H):$z(r,g,B,H))},pf=To.explode,U6=()=>{const r={};return{addFilter:(oe,be)=>{ve(pf(oe),Le=>{Ot(r,Le)||(r[Le]={name:Le,callbacks:[]}),r[Le].callbacks.push(be)})},getFilters:()=>tn(r),removeFilter:(oe,be)=>{ve(pf(oe),Le=>{if(Ot(r,Le))if(P(be)){const Ke=r[Le],ut=Te(Ke.callbacks,At=>At!==be);ut.length>0?Ke.callbacks=ut:delete r[Le]}else delete r[Le]})}}},LP=(r,g)=>{ve(g,B=>{r.attr(B,null)})},sx=(r,g,B)=>{r.addNodeFilter("font",H=>{ve(H,oe=>{const be=g.parse(oe.attr("style")),Le=oe.attr("color"),Ke=oe.attr("face"),ut=oe.attr("size");Le&&(be.color=Le),Ke&&(be["font-family"]=Ke),ut&&eo(ut).each(At=>{be["font-size"]=B[At-1]}),oe.name="span",oe.attr("style",g.serialize(be)),LP(oe,["color","face","size"])})})},Qz=(r,g,B)=>{r.addNodeFilter("strike",H=>{const oe=g.type!=="html4";ve(H,be=>{if(oe)be.name="s";else{const Le=B.parse(be.attr("style"));Le["text-decoration"]="line-through",be.name="span",be.attr("style",B.serialize(Le))}})})},Hz=(r,g,B)=>{var H;const oe=U_();g.convert_fonts_to_spans&&sx(r,oe,To.explode((H=g.font_size_legacy_values)!==null&&H!==void 0?H:"")),Qz(r,B,oe)},Kk=(r,g,B)=>{g.inline_styles&&Hz(r,g,B)},LY=r=>fetch(r).then(g=>g.ok?g.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${r} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),IY=r=>{const g=/([a-z0-9+\/=\s]+)/i.exec(r);return g?g[1]:""},V2=r=>{const[g,...B]=r.split(","),H=B.join(","),oe=/data:([^/]+\/[^;]+)(;.+)?/.exec(g);if(oe){const be=oe[2]===";base64",Le=be?IY(H):decodeURIComponent(H);return Y.some({type:oe[1],data:Le,base64Encoded:be})}else return Y.none()},Zz=(r,g,B=!0)=>{let H=g;if(B)try{H=atob(g)}catch{return Y.none()}const oe=new Uint8Array(H.length);for(let be=0;benew Promise((g,B)=>{V2(r).bind(({type:H,data:oe,base64Encoded:be})=>Zz(H,oe,be)).fold(()=>B("Invalid data URI"),g)}),DY=r=>Br(r,"blob:")?LY(r):Br(r,"data:")?Xw(r):Promise.reject("Unknown URI format"),lx=r=>new Promise((g,B)=>{const H=new FileReader;H.onloadend=()=>{g(H.result)},H.onerror=()=>{var oe;B((oe=H.error)===null||oe===void 0?void 0:oe.message)},H.readAsDataURL(r)});let BY=0;const E0=r=>(r||"blobid")+BY++,iS=(r,g,B)=>V2(r).bind(({data:H,type:oe,base64Encoded:be})=>{if(g&&!be)return Y.none();{const Le=be?H:btoa(H);return B(Le,oe)}}),j6=(r,g,B)=>{const H=r.create(E0(),g,B);return r.add(H),H},Q6=(r,g,B=!1)=>iS(g,B,(H,oe)=>Y.from(r.getByData(H,oe)).orThunk(()=>Zz(oe,H).map(be=>j6(r,be,H)))),zY=(r,g)=>{const B=()=>Promise.reject("Invalid data URI");if(Br(g,"blob:")){const H=r.getByUri(g);return P(H)?Promise.resolve(H):DY(g).then(oe=>lx(oe).then(be=>iS(be,!1,Le=>Y.some(j6(r,oe,Le))).getOrThunk(B)))}else return Br(g,"data:")?Q6(r,g).fold(B,H=>Promise.resolve(H)):Promise.reject("Unknown image data format")},H6=/^(?:(?:(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)([A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*))(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+)?)?)$/,NY=r=>Y.from(r.match(H6)).bind(g=>Ze(g,1)).map(g=>Br(g,"www.")?g.substring(4):g),P0=(r,g)=>{Y.from(r.attr("src")).bind(NY).forall(B=>!ce(g,B))&&r.attr("sandbox","")},aS=(r,g)=>Br(r,`${g}/`),qz=r=>M(r)?"iframe":aS(r,"image")?"img":aS(r,"video")?"video":aS(r,"audio")?"audio":"iframe",IP=({type:r,src:g,width:B,height:H}={},oe,be)=>{const Le=qz(r),Ke=new Hp(Le,1);return Ke.attr(Le==="audio"?{src:g}:{src:g,width:B,height:H}),(Le==="audio"||Le==="video")&&Ke.attr("controls",""),Le==="iframe"&&oe&&P0(Ke,be),Ke},DP=r=>P(r.attr("data-mce-bogus")),Gw=r=>r.attr("src")===Nr.transparentSrc||P(r.attr("data-mce-placeholder")),BP=(r,g)=>{const{blob_cache:B}=g;if(B){const H=oe=>{const be=oe.attr("src");Gw(oe)||DP(oe)||T(be)||Q6(B,be,!0).each(Le=>{oe.attr("src",Le.blobUri())})};r.addAttributeFilter("src",oe=>ve(oe,H))}},FY=(r,g)=>{var B,H;const oe=r.schema;r.addAttributeFilter("href",ut=>{let At=ut.length;const nn=yn=>yn.split(" ").filter(rr=>rr.length>0).concat(["noopener"]).sort().join(" "),un=yn=>{const Qn=yn?To.trim(yn):"";return/\b(noopener)\b/g.test(Qn)?Qn:nn(Qn)};if(!g.allow_unsafe_link_target)for(;At--;){const yn=ut[At];yn.name==="a"&&yn.attr("target")==="_blank"&&yn.attr("rel",un(yn.attr("rel")))}}),g.allow_html_in_named_anchor||r.addAttributeFilter("id,name",ut=>{let At=ut.length,nn,un,yn,Qn;for(;At--;)if(Qn=ut[At],Qn.name==="a"&&Qn.firstChild&&!Qn.attr("href"))for(yn=Qn.parent,nn=Qn.lastChild;nn&&yn;)un=nn.prev,yn.insert(nn,Qn),nn=un}),g.fix_list_elements&&r.addNodeFilter("ul,ol",ut=>{let At=ut.length,nn,un;for(;At--;)if(nn=ut[At],un=nn.parent,un&&(un.name==="ul"||un.name==="ol"))if(nn.prev&&nn.prev.name==="li")nn.prev.append(nn);else{const yn=new Hp("li",1);yn.attr("style","list-style-type: none"),nn.wrap(yn)}});const be=oe.getValidClasses();g.validate&&be&&r.addAttributeFilter("class",ut=>{var At;let nn=ut.length;for(;nn--;){const un=ut[nn],yn=(At=un.attr("class"))!==null&&At!==void 0?At:"",Qn=To.explode(yn," ");let rr="";for(let Wn=0;Wnve(ut,At=>{At.replace(IP({type:At.attr("type"),src:At.name==="object"?At.attr("data"):At.attr("src"),width:At.attr("width"),height:At.attr("height")},Le,Ke))})),Le&&r.addNodeFilter("iframe",ut=>ve(ut,At=>P0(At,Ke)))},{entries:zP,setPrototypeOf:Wz,isFrozen:$Y,getPrototypeOf:VY,getOwnPropertyDescriptor:UY}=Object;let{freeze:lp,seal:Rv,create:Yz}=Object,{apply:Jk,construct:NP}=typeof Reflect<"u"&&Reflect;Jk||(Jk=function(g,B,H){return g.apply(B,H)}),lp||(lp=function(g){return g}),Rv||(Rv=function(g){return g}),NP||(NP=function(g,B){return new g(...B)});const Xz=M1(Array.prototype.forEach),Gz=M1(Array.prototype.pop),e5=M1(Array.prototype.push),Z6=M1(String.prototype.toLowerCase),FP=M1(String.prototype.toString),jY=M1(String.prototype.match),Lv=M1(String.prototype.replace),QY=M1(String.prototype.indexOf),HY=M1(String.prototype.trim),R0=M1(RegExp.prototype.test),t5=ZY(TypeError);function M1(r){return function(g){for(var B=arguments.length,H=new Array(B>1?B-1:0),oe=1;oe/gm),GY=Rv(/\${[\w\W]*}/gm),KY=Rv(/^data-[\-\w.\u00B7-\uFFFF]/),JY=Rv(/^aria-[\-\w]+$/),tN=Rv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QP=Rv(/^(?:\w+script|data):/i),nN=Rv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eX=Rv(/^html$/i);var lS=Object.freeze({__proto__:null,MUSTACHE_EXPR:YY,ERB_EXPR:XY,TMPLIT_EXPR:GY,DATA_ATTR:KY,ARIA_ATTR:JY,IS_ALLOWED_URI:tN,IS_SCRIPT_OR_DATA:QP,ATTR_WHITESPACE:nN,DOCTYPE_NAME:eX});const tX=()=>typeof window>"u"?null:window,rN=function(g,B){if(typeof g!="object"||typeof g.createPolicy!="function")return null;let H=null;const oe="data-tt-policy-suffix";B&&B.hasAttribute(oe)&&(H=B.getAttribute(oe));const be="dompurify"+(H?"#"+H:"");try{return g.createPolicy(be,{createHTML(Le){return Le},createScriptURL(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+be+" could not be created."),null}};function oN(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tX();const g=Ps=>oN(Ps);if(g.version="3.0.5",g.removed=[],!r||!r.document||r.document.nodeType!==9)return g.isSupported=!1,g;const B=r.document,H=B.currentScript;let{document:oe}=r;const{DocumentFragment:be,HTMLTemplateElement:Le,Node:Ke,Element:ut,NodeFilter:At,NamedNodeMap:nn=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:un,DOMParser:yn,trustedTypes:Qn}=r,rr=ut.prototype,Wn=n5(rr,"cloneNode"),ur=n5(rr,"nextSibling"),Tr=n5(rr,"childNodes"),Wr=n5(rr,"parentNode");if(typeof Le=="function"){const Ps=oe.createElement("template");Ps.content&&Ps.content.ownerDocument&&(oe=Ps.content.ownerDocument)}let Qr,lo="";const{implementation:Zo,createNodeIterator:li,createDocumentFragment:Mi,getElementsByTagName:Co}=oe,{importNode:yo}=B;let Vo={};g.isSupported=typeof zP=="function"&&typeof Wr=="function"&&Zo&&Zo.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fi,ERB_EXPR:la,TMPLIT_EXPR:bs,DATA_ATTR:Ms,ARIA_ATTR:wl,IS_SCRIPT_OR_DATA:Vl,ATTR_WHITESPACE:Uu}=lS;let{IS_ALLOWED_URI:Wf}=lS,ic=null;const vi=oc({},[...Kz,...U2,...$P,...VP,...UP]);let na=null;const ol=oc({},[...Jz,...jP,...eN,...q6]);let Ti=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pa=null,ps=null,Ci=!0,ms=!0,Es=!1,Bd=!0,Cl=!1,dd=!1,z0=!1,$v=!1,Cp=!1,Om=!1,Hg=!1,Sm=!0,Zg=!1;const ca="user-content-";let Zs=!0,ru=!1,ju={},Pf=null;const Gd=oc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rf=null;const Lf=oc({},["audio","video","img","source","image","track"]);let fp=null;const N0=oc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),F0="http://www.w3.org/1998/Math/MathML",$0="http://www.w3.org/2000/svg",rg="http://www.w3.org/1999/xhtml";let Qy=rg,gx=!1,yO=null;const x8=oc({},[F0,$0,rg],FP);let Hy;const HS=["application/xhtml+xml","text/html"],xL="text/html";let qh,bO=null;const _L=oe.createElement("form"),wL=function(xo){return xo instanceof RegExp||xo instanceof Function},Zy=function(xo){if(!(bO&&bO===xo)){if((!xo||typeof xo!="object")&&(xo={}),xo=sS(xo),Hy=HS.indexOf(xo.PARSER_MEDIA_TYPE)===-1?Hy=xL:Hy=xo.PARSER_MEDIA_TYPE,qh=Hy==="application/xhtml+xml"?FP:Z6,ic="ALLOWED_TAGS"in xo?oc({},xo.ALLOWED_TAGS,qh):vi,na="ALLOWED_ATTR"in xo?oc({},xo.ALLOWED_ATTR,qh):ol,yO="ALLOWED_NAMESPACES"in xo?oc({},xo.ALLOWED_NAMESPACES,FP):x8,fp="ADD_URI_SAFE_ATTR"in xo?oc(sS(N0),xo.ADD_URI_SAFE_ATTR,qh):N0,Rf="ADD_DATA_URI_TAGS"in xo?oc(sS(Lf),xo.ADD_DATA_URI_TAGS,qh):Lf,Pf="FORBID_CONTENTS"in xo?oc({},xo.FORBID_CONTENTS,qh):Gd,pa="FORBID_TAGS"in xo?oc({},xo.FORBID_TAGS,qh):{},ps="FORBID_ATTR"in xo?oc({},xo.FORBID_ATTR,qh):{},ju="USE_PROFILES"in xo?xo.USE_PROFILES:!1,Ci=xo.ALLOW_ARIA_ATTR!==!1,ms=xo.ALLOW_DATA_ATTR!==!1,Es=xo.ALLOW_UNKNOWN_PROTOCOLS||!1,Bd=xo.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cl=xo.SAFE_FOR_TEMPLATES||!1,dd=xo.WHOLE_DOCUMENT||!1,Cp=xo.RETURN_DOM||!1,Om=xo.RETURN_DOM_FRAGMENT||!1,Hg=xo.RETURN_TRUSTED_TYPE||!1,$v=xo.FORCE_BODY||!1,Sm=xo.SANITIZE_DOM!==!1,Zg=xo.SANITIZE_NAMED_PROPS||!1,Zs=xo.KEEP_CONTENT!==!1,ru=xo.IN_PLACE||!1,Wf=xo.ALLOWED_URI_REGEXP||tN,Qy=xo.NAMESPACE||rg,Ti=xo.CUSTOM_ELEMENT_HANDLING||{},xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ti.tagNameCheck=xo.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&wL(xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ti.attributeNameCheck=xo.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xo.CUSTOM_ELEMENT_HANDLING&&typeof xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ti.allowCustomizedBuiltInElements=xo.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cl&&(ms=!1),Om&&(Cp=!0),ju&&(ic=oc({},[...UP]),na=[],ju.html===!0&&(oc(ic,Kz),oc(na,Jz)),ju.svg===!0&&(oc(ic,U2),oc(na,jP),oc(na,q6)),ju.svgFilters===!0&&(oc(ic,$P),oc(na,jP),oc(na,q6)),ju.mathMl===!0&&(oc(ic,VP),oc(na,eN),oc(na,q6))),xo.ADD_TAGS&&(ic===vi&&(ic=sS(ic)),oc(ic,xo.ADD_TAGS,qh)),xo.ADD_ATTR&&(na===ol&&(na=sS(na)),oc(na,xo.ADD_ATTR,qh)),xo.ADD_URI_SAFE_ATTR&&oc(fp,xo.ADD_URI_SAFE_ATTR,qh),xo.FORBID_CONTENTS&&(Pf===Gd&&(Pf=sS(Pf)),oc(Pf,xo.FORBID_CONTENTS,qh)),Zs&&(ic["#text"]=!0),dd&&oc(ic,["html","head","body"]),ic.table&&(oc(ic,["tbody"]),delete pa.tbody),xo.TRUSTED_TYPES_POLICY){if(typeof xo.TRUSTED_TYPES_POLICY.createHTML!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xo.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw t5('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Qr=xo.TRUSTED_TYPES_POLICY,lo=Qr.createHTML("")}else Qr===void 0&&(Qr=rN(Qn,H)),Qr!==null&&typeof lo=="string"&&(lo=Qr.createHTML(""));lp&&lp(xo),bO=xo}},vT=oc({},["mi","mo","mn","ms","mtext"]),ho=oc({},["foreignobject","desc","title","annotation-xml"]),bo=oc({},["title","style","font","a","script"]),di=oc({},U2);oc(di,$P),oc(di,qY);const ri=oc({},VP);oc(ri,WY);const Ta=function(xo){let Ji=Wr(xo);(!Ji||!Ji.tagName)&&(Ji={namespaceURI:Qy,tagName:"template"});const Ba=Z6(xo.tagName),mf=Z6(Ji.tagName);return yO[xo.namespaceURI]?xo.namespaceURI===$0?Ji.namespaceURI===rg?Ba==="svg":Ji.namespaceURI===F0?Ba==="svg"&&(mf==="annotation-xml"||vT[mf]):!!di[Ba]:xo.namespaceURI===F0?Ji.namespaceURI===rg?Ba==="math":Ji.namespaceURI===$0?Ba==="math"&&ho[mf]:!!ri[Ba]:xo.namespaceURI===rg?Ji.namespaceURI===$0&&!ho[mf]||Ji.namespaceURI===F0&&!vT[mf]?!1:!ri[Ba]&&(bo[Ba]||!di[Ba]):!!(Hy==="application/xhtml+xml"&&yO[xo.namespaceURI]):!1},zs=function(xo){e5(g.removed,{element:xo});try{xo.parentNode.removeChild(xo)}catch{xo.remove()}},Su=function(xo,Ji){try{e5(g.removed,{attribute:Ji.getAttributeNode(xo),from:Ji})}catch{e5(g.removed,{attribute:null,from:Ji})}if(Ji.removeAttribute(xo),xo==="is"&&!na[xo])if(Cp||Om)try{zs(Ji)}catch{}else try{Ji.setAttribute(xo,"")}catch{}},V0=function(xo){let Ji,Ba;if($v)xo=""+xo;else{const l=jY(xo,/^[\r\n\t ]+/);Ba=l&&l[0]}Hy==="application/xhtml+xml"&&Qy===rg&&(xo=''+xo+"");const mf=Qr?Qr.createHTML(xo):xo;if(Qy===rg)try{Ji=new yn().parseFromString(mf,Hy)}catch{}if(!Ji||!Ji.documentElement){Ji=Zo.createDocument(Qy,"template",null);try{Ji.documentElement.innerHTML=gx?lo:mf}catch{}}const Ap=Ji.body||Ji.documentElement;return xo&&Ba&&Ap.insertBefore(oe.createTextNode(Ba),Ap.childNodes[0]||null),Qy===rg?Co.call(Ji,dd?"html":"body")[0]:dd?Ji.documentElement:Ap},ZS=function(xo){return li.call(xo.ownerDocument||xo,xo,At.SHOW_ELEMENT|At.SHOW_COMMENT|At.SHOW_TEXT,null,!1)},nie=function(xo){return xo instanceof un&&(typeof xo.nodeName!="string"||typeof xo.textContent!="string"||typeof xo.removeChild!="function"||!(xo.attributes instanceof nn)||typeof xo.removeAttribute!="function"||typeof xo.setAttribute!="function"||typeof xo.namespaceURI!="string"||typeof xo.insertBefore!="function"||typeof xo.hasChildNodes!="function")},_8=function(xo){return typeof Ke=="object"?xo instanceof Ke:xo&&typeof xo=="object"&&typeof xo.nodeType=="number"&&typeof xo.nodeName=="string"},qy=function(xo,Ji,Ba){Vo[xo]&&Xz(Vo[xo],mf=>{mf.call(g,Ji,Ba,bO)})},rQ=function(xo){let Ji;if(qy("beforeSanitizeElements",xo,null),nie(xo))return zs(xo),!0;const Ba=qh(xo.nodeName);if(qy("uponSanitizeElement",xo,{tagName:Ba,allowedTags:ic}),xo.hasChildNodes()&&!_8(xo.firstElementChild)&&(!_8(xo.content)||!_8(xo.content.firstElementChild))&&R0(/<[/\w]/g,xo.innerHTML)&&R0(/<[/\w]/g,xo.textContent))return zs(xo),!0;if(!ic[Ba]||pa[Ba]){if(!pa[Ba]&&iQ(Ba)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba)))return!1;if(Zs&&!Pf[Ba]){const mf=Wr(xo)||xo.parentNode,Ap=Tr(xo)||xo.childNodes;if(Ap&&mf){const l=Ap.length;for(let N=l-1;N>=0;--N)mf.insertBefore(Wn(Ap[N],!0),ur(xo))}}return zs(xo),!0}return xo instanceof ut&&!Ta(xo)||(Ba==="noscript"||Ba==="noembed"||Ba==="noframes")&&R0(/<\/no(script|embed|frames)/i,xo.innerHTML)?(zs(xo),!0):(Cl&&xo.nodeType===3&&(Ji=xo.textContent,Ji=Lv(Ji,Fi," "),Ji=Lv(Ji,la," "),Ji=Lv(Ji,bs," "),xo.textContent!==Ji&&(e5(g.removed,{element:xo.cloneNode()}),xo.textContent=Ji)),qy("afterSanitizeElements",xo,null),!1)},oQ=function(xo,Ji,Ba){if(Sm&&(Ji==="id"||Ji==="name")&&(Ba in oe||Ba in _L))return!1;if(!(ms&&!ps[Ji]&&R0(Ms,Ji))){if(!(Ci&&R0(wl,Ji))){if(!na[Ji]||ps[Ji]){if(!(iQ(xo)&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,xo)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(xo))&&(Ti.attributeNameCheck instanceof RegExp&&R0(Ti.attributeNameCheck,Ji)||Ti.attributeNameCheck instanceof Function&&Ti.attributeNameCheck(Ji))||Ji==="is"&&Ti.allowCustomizedBuiltInElements&&(Ti.tagNameCheck instanceof RegExp&&R0(Ti.tagNameCheck,Ba)||Ti.tagNameCheck instanceof Function&&Ti.tagNameCheck(Ba))))return!1}else if(!fp[Ji]){if(!R0(Wf,Lv(Ba,Uu,""))){if(!((Ji==="src"||Ji==="xlink:href"||Ji==="href")&&xo!=="script"&&QY(Ba,"data:")===0&&Rf[xo])){if(!(Es&&!R0(Vl,Lv(Ba,Uu,"")))){if(Ba)return!1}}}}}}return!0},iQ=function(xo){return xo.indexOf("-")>0},aQ=function(xo){let Ji,Ba,mf,Ap;qy("beforeSanitizeAttributes",xo,null);const{attributes:l}=xo;if(!l)return;const N={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:na};for(Ap=l.length;Ap--;){Ji=l[Ap];const{name:W,namespaceURI:fe}=Ji;Ba=W==="value"?Ji.value:HY(Ji.value);const Se=Ba;if(mf=qh(W),N.attrName=mf,N.attrValue=Ba,N.keepAttr=!0,N.forceKeepAttr=void 0,qy("uponSanitizeAttribute",xo,N),Ba=N.attrValue,N.forceKeepAttr)continue;if(!N.keepAttr){Su(W,xo);continue}if(!Bd&&R0(/\/>/i,Ba)){Su(W,xo);continue}Cl&&(Ba=Lv(Ba,Fi," "),Ba=Lv(Ba,la," "),Ba=Lv(Ba,bs," "));const Be=qh(xo.nodeName);if(!oQ(Be,mf,Ba)){Su(W,xo);continue}if(Zg&&(mf==="id"||mf==="name")&&(Su(W,xo),Ba=ca+Ba),Qr&&typeof Qn=="object"&&typeof Qn.getAttributeType=="function"&&!fe)switch(Qn.getAttributeType(Be,mf)){case"TrustedHTML":{Ba=Qr.createHTML(Ba);break}case"TrustedScriptURL":{Ba=Qr.createScriptURL(Ba);break}}if(Ba!==Se)try{fe?xo.setAttributeNS(fe,W,Ba):xo.setAttribute(W,Ba)}catch{Su(W,xo)}}qy("afterSanitizeAttributes",xo,null)},rie=function Ps(xo){let Ji;const Ba=ZS(xo);for(qy("beforeSanitizeShadowDOM",xo,null);Ji=Ba.nextNode();)qy("uponSanitizeShadowNode",Ji,null),!rQ(Ji)&&(Ji.content instanceof be&&Ps(Ji.content),aQ(Ji));qy("afterSanitizeShadowDOM",xo,null)};return g.sanitize=function(Ps){let xo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ji,Ba,mf,Ap;if(gx=!Ps,gx&&(Ps=""),typeof Ps!="string"&&!_8(Ps))if(typeof Ps.toString=="function"){if(Ps=Ps.toString(),typeof Ps!="string")throw t5("dirty is not a string, aborting")}else throw t5("toString is not a function");if(!g.isSupported)return Ps;if(z0||Zy(xo),g.removed=[],typeof Ps=="string"&&(ru=!1),ru){if(Ps.nodeName){const W=qh(Ps.nodeName);if(!ic[W]||pa[W])throw t5("root node is forbidden and cannot be sanitized in-place")}}else if(Ps instanceof Ke)Ji=V0(""),Ba=Ji.ownerDocument.importNode(Ps,!0),Ba.nodeType===1&&Ba.nodeName==="BODY"||Ba.nodeName==="HTML"?Ji=Ba:Ji.appendChild(Ba);else{if(!Cp&&!Cl&&!dd&&Ps.indexOf("<")===-1)return Qr&&Hg?Qr.createHTML(Ps):Ps;if(Ji=V0(Ps),!Ji)return Cp?null:Hg?lo:""}Ji&&$v&&zs(Ji.firstChild);const l=ZS(ru?Ps:Ji);for(;mf=l.nextNode();)rQ(mf)||(mf.content instanceof be&&rie(mf.content),aQ(mf));if(ru)return Ps;if(Cp){if(Om)for(Ap=Mi.call(Ji.ownerDocument);Ji.firstChild;)Ap.appendChild(Ji.firstChild);else Ap=Ji;return(na.shadowroot||na.shadowrootmode)&&(Ap=yo.call(B,Ap,!0)),Ap}let N=dd?Ji.outerHTML:Ji.innerHTML;return dd&&ic["!doctype"]&&Ji.ownerDocument&&Ji.ownerDocument.doctype&&Ji.ownerDocument.doctype.name&&R0(eX,Ji.ownerDocument.doctype.name)&&(N=" +`+N),Cl&&(N=Lv(N,Fi," "),N=Lv(N,la," "),N=Lv(N,bs," ")),Qr&&Hg?Qr.createHTML(N):N},g.setConfig=function(Ps){Zy(Ps),z0=!0},g.clearConfig=function(){bO=null,z0=!1},g.isValidAttribute=function(Ps,xo,Ji){bO||Zy({});const Ba=qh(Ps),mf=qh(xo);return oQ(Ba,mf,Ji)},g.addHook=function(Ps,xo){typeof xo=="function"&&(Vo[Ps]=Vo[Ps]||[],e5(Vo[Ps],xo))},g.removeHook=function(Ps){if(Vo[Ps])return Gz(Vo[Ps])},g.removeHooks=function(Ps){Vo[Ps]&&(Vo[Ps]=[])},g.removeAllHooks=function(){Vo={}},g}var cS=oN();const HP=To.each,Id=To.trim,bfe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xfe={ftp:21,http:80,https:443,mailto:25},_fe=["img","video"],wfe=(r,g)=>P(r)?!r:P(g)?!ce(_fe,g):!0,E1=r=>{try{return decodeURIComponent(r)}catch{return unescape(r)}},r5=(r,g,B)=>{const H=E1(g).replace(/\s/g,"");return r.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(H)?!0:r.allow_html_data_urls?!1:/^data:image\//i.test(H)?wfe(r.allow_svg_data_urls,B)&&/^data:image\/svg\+xml/i.test(H):/^data:/i.test(H)};class cp{static parseDataUri(g){let B;const H=decodeURIComponent(g).split(","),oe=/data:([^;]+)/.exec(H[0]);return oe&&(B=oe[1]),{type:B,data:H[1]}}static isDomSafe(g,B,H={}){if(H.allow_script_urls)return!0;{const oe=Lm.decode(g).replace(/[\s\u0000-\u001F]+/g,"");return!r5(H,oe,B)}}static getDocumentBaseUrl(g){var B;let H;return g.protocol.indexOf("http")!==0&&g.protocol!=="file:"?H=(B=g.href)!==null&&B!==void 0?B:"":H=g.protocol+"//"+g.host+g.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/")),H}constructor(g,B={}){this.path="",this.directory="",g=Id(g),this.settings=B;const H=B.base_uri,oe=this;if(/^([\w\-]+):([^\/]{2})/i.test(g)||/^\s*#/.test(g)){oe.source=g;return}const be=g.indexOf("//")===0;if(g.indexOf("/")===0&&!be&&(g=(H&&H.protocol||"http")+"://mce_host"+g),!/^[\w\-]*:?\/\//.test(g)){const Ke=H?H.path:new cp(document.location.href).directory;if((H==null?void 0:H.protocol)==="")g="//mce_host"+oe.toAbsPath(Ke,g);else{const ut=/([^#?]*)([#?]?.*)/.exec(g);ut&&(g=(H&&H.protocol||"http")+"://mce_host"+oe.toAbsPath(Ke,ut[1])+ut[2])}}g=g.replace(/@@/g,"(mce_at)");const Le=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(g);Le&&HP(bfe,(Ke,ut)=>{let At=Le[ut];At&&(At=At.replace(/\(mce_at\)/g,"@@")),oe[Ke]=At}),H&&(oe.protocol||(oe.protocol=H.protocol),oe.userInfo||(oe.userInfo=H.userInfo),!oe.port&&oe.host==="mce_host"&&(oe.port=H.port),(!oe.host||oe.host==="mce_host")&&(oe.host=H.host),oe.source=""),be&&(oe.protocol="")}setPath(g){const B=/^(.*?)\/?(\w+)?$/.exec(g);B&&(this.path=B[0],this.directory=B[1],this.file=B[2]),this.source="",this.getURI()}toRelative(g){if(g==="./")return g;const B=new cp(g,{base_uri:this});if(B.host!=="mce_host"&&this.host!==B.host&&B.host||this.port!==B.port||this.protocol!==B.protocol&&B.protocol!=="")return B.getURI();const H=this.getURI(),oe=B.getURI();if(H===oe||H.charAt(H.length-1)==="/"&&H.substr(0,H.length-1)===oe)return H;let be=this.toRelPath(this.path,B.path);return B.query&&(be+="?"+B.query),B.anchor&&(be+="#"+B.anchor),be}toAbsolute(g,B){const H=new cp(g,{base_uri:this});return H.getURI(B&&this.isSameOrigin(H))}isSameOrigin(g){if(this.host==g.host&&this.protocol==g.protocol){if(this.port==g.port)return!0;const B=this.protocol?xfe[this.protocol]:null;if(B&&(this.port||B)==(g.port||B))return!0}return!1}toRelPath(g,B){let H=0,oe="",be,Le;const Ke=g.substring(0,g.lastIndexOf("/")).split("/"),ut=B.split("/");if(Ke.length>=ut.length){for(be=0,Le=Ke.length;be=ut.length||Ke[be]!==ut[be]){H=be+1;break}}if(Ke.length=Ke.length||Ke[be]!==ut[be]){H=be+1;break}}if(H===1)return B;for(be=0,Le=Ke.length-(H-1);be{un&&Ke.push(un)});const ut=[];for(let un=Le.length-1;un>=0;un--)if(!(Le[un].length===0||Le[un]===".")){if(Le[un]===".."){H++;continue}if(H>0){H--;continue}ut.push(Le[un])}const At=Ke.length-H;let nn;return At<=0?nn=ke(ut).join("/"):nn=Ke.slice(0,At).join("/")+"/"+ke(ut).join("/"),nn.indexOf("/")!==0&&(nn="/"+nn),oe&&nn.lastIndexOf("/")!==nn.length-1&&(nn+=oe),nn}getURI(g=!1){let B;return(!this.source||g)&&(B="",g||(this.protocol?B+=this.protocol+"://":B+="//",this.userInfo&&(B+=this.userInfo+"@"),this.host&&(B+=this.host),this.port&&(B+=":"+this.port)),this.path&&(B+=this.path),this.query&&(B+="?"+this.query),this.anchor&&(B+="#"+this.anchor),this.source=B),this.source}}const j2=To.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),ZP="data-mce-type";let iN=0;const Kw=(r,g,B,H,oe)=>{var be,Le,Ke,ut;const At=g.validate,nn=B.getSpecialElements();r.nodeType===Tc&&!g.allow_conditional_comments&&/^\[if/i.test((be=r.nodeValue)!==null&&be!==void 0?be:"")&&(r.nodeValue=" "+r.nodeValue);const un=(Le=oe==null?void 0:oe.tagName)!==null&&Le!==void 0?Le:r.nodeName.toLowerCase();if(H!=="html"&&B.isValid(H)){P(oe)&&(oe.allowedTags[un]=!0);return}if(r.nodeType!==zf||un==="body")return;const yn=_r.fromDom(r),Qn=Dc(yn,ZP),rr=gu(yn,"data-mce-bogus");if(!Qn&&v(rr)){rr==="all"?hs(yn):Mc(yn);return}const Wn=B.getElementRule(un);if(At&&!Wn){Ot(nn,un)?hs(yn):Mc(yn);return}else P(oe)&&(oe.allowedTags[un]=!0);if(At&&Wn&&!Qn){if(ve((Ke=Wn.attributesForced)!==null&&Ke!==void 0?Ke:[],ur=>{ll(yn,ur.name,ur.value==="{$uid}"?`mce_${iN++}`:ur.value)}),ve((ut=Wn.attributesDefault)!==null&&ut!==void 0?ut:[],ur=>{Dc(yn,ur.name)||ll(yn,ur.name,ur.value==="{$uid}"?`mce_${iN++}`:ur.value)}),Wn.attributesRequired&&!de(Wn.attributesRequired,ur=>Dc(yn,ur))){Mc(yn);return}if(Wn.removeEmptyAttrs&&Lp(yn)){Mc(yn);return}Wn.outputName&&Wn.outputName!==un&&ov(yn,Wn.outputName)}},uS=(r,g,B,H,oe)=>{const be=r.tagName.toLowerCase(),{attrName:Le,attrValue:Ke}=oe;oe.keepAttr=Jw(g,B,H,be,Le,Ke),oe.keepAttr?(oe.allowedAttributes[Le]=!0,Y6(Le,B)&&(oe.attrValue=Le),g.allow_svg_data_urls&&Br(Ke,"data:image/svg+xml")&&(oe.forceKeepAttr=!0)):W6(r,Le)&&(oe.forceKeepAttr=!0)},Jw=(r,g,B,H,oe,be)=>B!=="html"&&!Hs(H)?!0:!(oe in j2&&r5(r,be,H))&&(!r.validate||g.isValid(H,oe)||Br(oe,"data-")||Br(oe,"aria-")),W6=(r,g)=>r.hasAttribute(ZP)&&(g==="id"||g==="class"||g==="style"),Y6=(r,g)=>r in g.getBoolAttrs(),aN=(r,g,B,H)=>{const{attributes:oe}=r;for(let be=oe.length-1;be>=0;be--){const Le=oe[be],Ke=Le.name,ut=Le.value;!Jw(g,B,H,r.tagName.toLowerCase(),Ke,ut)&&!W6(r,Ke)?r.removeAttribute(Ke):Y6(Ke,B)&&r.setAttribute(Ke,Ke)}},sN=(r,g,B)=>{const H=cS();return H.addHook("uponSanitizeElement",(oe,be)=>{Kw(oe,r,g,B.track(oe),be)}),H.addHook("uponSanitizeAttribute",(oe,be)=>{uS(oe,r,g,B.current(),be)}),H},nX=(r,g)=>{const H={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return H.PARSER_MEDIA_TYPE=g,r.allow_script_urls?H.ALLOWED_URI_REGEXP=/.*/:r.allow_html_data_urls&&(H.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),H},rX=r=>{const g=Yu(r);if(g==="svg"){const B=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(oe=>`xlink:${oe}`),H={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:B};cS().sanitize(r,H)}else if(g==="math"){const B={IN_PLACE:!0,USE_PROFILES:{mathMl:!0}};cS().sanitize(r,B)}else throw new Error("Not a namespace element")},lN=(r,g)=>{const B=Tt();if(r.sanitize){const H=sN(r,g,B);return{sanitizeHtmlElement:(be,Le)=>{H.sanitize(be,nX(r,Le)),H.removed=[],B.reset()},sanitizeNamespaceElement:rX}}else return{sanitizeHtmlElement:(be,Le)=>{const Ke=document.createNodeIterator(be,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ut;for(;ut=Ke.nextNode();){const At=B.track(ut);Kw(ut,r,g,At),ne(ut)&&aN(ut,r,g,At)}B.reset()},sanitizeNamespaceElement:k}},cN=To.makeMap,uN=To.extend,fN=(r,g,B,H)=>{const oe=r.name,be=oe in B&&oe!=="title"&&oe!=="textarea"&&oe!=="noscript",Le=g.childNodes;for(let Ke=0,ut=Le.length;Ke{const H=[];for(let oe=r,be=oe;oe;be=oe,oe=oe.walk()){const Le=oe;ve(g,Ke=>Ke(Le)),T(Le.parent)&&Le!==r?oe=be:H.push(Le)}for(let oe=H.length-1;oe>=0;oe--){const be=H[oe];ve(B,Le=>Le(be))}},iX=(r,g,B,H)=>{const oe=B.validate,be=g.getNonEmptyElements(),Le=g.getWhitespaceElements(),Ke=uN(cN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),ut=n1(g),At=/[ \t\r\n]+/g,nn=/^[ \t\r\n]+/,un=/[ \t\r\n]+$/,yn=Wr=>{let Qr=Wr.parent;for(;P(Qr);){if(Qr.name in Le)return!0;Qr=Qr.parent}return!1},Qn=Wr=>{let Qr=Wr;for(;P(Qr);){if(Qr.name in ut)return O6(g,be,Le,Qr);Qr=Qr.parent}return!1},rr=Wr=>Wr.name in Ke||ch(g,Wr)||Hs(Wr.name)&&Wr.parent===r,Wn=(Wr,Qr)=>{const lo=Qr?Wr.prev:Wr.next;return P(lo)||T(Wr.parent)?!1:rr(Wr.parent)&&(Wr.parent!==r||H.isRootContent===!0)};return[Wr=>{var Qr;if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";lo=lo.replace(At," "),(Lh(Wr.prev,rr)||Wn(Wr,!0))&&(lo=lo.replace(nn,"")),lo.length===0||lo===" "&&Wr.prev&&Wr.prev.type===Tc&&Wr.next&&Wr.next.type===Tc?Wr.remove():Wr.value=lo}},Wr=>{var Qr;if(Wr.type===1){const lo=g.getElementRule(Wr.name);if(oe&&lo){const Zo=O6(g,be,Le,Wr);lo.paddInEmptyBlock&&Zo&&Qn(Wr)?eP(B,H,rr,Wr):lo.removeEmpty&&Zo?rr(Wr)?Wr.remove():Wr.unwrap():lo.paddEmpty&&(Zo||WW(Wr))&&eP(B,H,rr,Wr)}}else if(Wr.type===3&&!yn(Wr)){let lo=(Qr=Wr.value)!==null&&Qr!==void 0?Qr:"";(Wr.next&&rr(Wr.next)||Wn(Wr,!1))&&(lo=lo.replace(un,"")),lo.length===0?Wr.remove():Wr.value=lo}}]},dN=(r,g)=>{var B;const H=(B=g.forced_root_block)!==null&&B!==void 0?B:r.forced_root_block;return H===!1?"":H===!0?"p":H},fS=(r={},g=zm())=>{const B=U6(),H=U6(),oe={validate:!0,root_name:"body",sanitize:!0,...r},be=new DOMParser,Le=lN(oe,g),Ke=(Qr,lo,Zo="html")=>{const li=Zo==="xhtml"?"application/xhtml+xml":"text/html",Mi=Ot(g.getSpecialElements(),lo.toLowerCase()),Co=Mi?`<${lo}>${Qr}`:Qr,yo=()=>Zo==="xhtml"?`${Co}`:/^[\s]*${Co}`:`${Co}`,Vo=be.parseFromString(yo(),li).body;return Le.sanitizeHtmlElement(Vo,li),Mi?Vo.firstChild:Vo},ut=B.addFilter,At=B.getFilters,nn=B.removeFilter,un=H.addFilter,yn=H.getFilters,Qn=H.removeFilter,rr=(Qr,lo)=>{vz(g,Qr)&&lo.push(Qr)},Wn=(Qr,lo)=>{const Zo=v(lo.attr(ZP)),li=lo.type===1&&!Ot(Qr,lo.name)&&!ch(g,lo)&&!Hs(lo.name);return lo.type===3||li&&!Zo},ur=(Qr,lo)=>{const Zo=uN(cN("script,style,head,html,body,title,meta,param"),g.getBlockElements()),li=/^[ \t\r\n]+/,Mi=/[ \t\r\n]+$/;let Co=Qr.firstChild,yo=null;const Vo=Fi=>{var la,bs;Fi&&(Co=Fi.firstChild,Co&&Co.type===3&&(Co.value=(la=Co.value)===null||la===void 0?void 0:la.replace(li,"")),Co=Fi.lastChild,Co&&Co.type===3&&(Co.value=(bs=Co.value)===null||bs===void 0?void 0:bs.replace(Mi,"")))};if(g.isValidChild(Qr.name,lo.toLowerCase())){for(;Co;){const Fi=Co.next;Wn(Zo,Co)?(yo||(yo=new Hp(lo,1),yo.attr(oe.forced_root_block_attrs),Qr.insert(yo,Co)),yo.append(Co)):(Vo(yo),yo=null),Co=Fi}Vo(yo)}},Wr={schema:g,addAttributeFilter:un,getAttributeFilters:yn,removeAttributeFilter:Qn,addNodeFilter:ut,getNodeFilters:At,removeNodeFilter:nn,parse:(Qr,lo={})=>{var Zo;const li=oe.validate,Mi=(Zo=lo.context)!==null&&Zo!==void 0?Zo:oe.root_name,Co=Ke(Qr,Mi,lo.format);Cs(g,Co);const yo=new Hp(Mi,11);fN(yo,Co,g.getSpecialElements(),Le.sanitizeNamespaceElement),Co.innerHTML="";const[Vo,Fi]=iX(yo,g,oe,lo),la=[],bs=li?Uu=>rr(Uu,la):k,Ms={nodes:{},attributes:{}},wl=Uu=>gz(At(),yn(),Uu,Ms);if(oX(yo,[Vo,wl],[Fi,bs]),la.reverse(),li&&la.length>0)if(lo.context){const{pass:Uu,fail:Wf}=we(la,ic=>ic.parent===yo);Ev(Wf,g,yo,wl),lo.invalid=Uu.length>0}else Ev(la,g,yo,wl);const Vl=dN(oe,lo);return Vl&&(yo.name==="body"||lo.isRootContent)&&ur(yo,Vl),lo.invalid||KE(Ms,lo),yo}};return FY(Wr,oe),Kk(Wr,oe,g),Wr},o5=r=>F2(r)?rx({validate:!1}).serialize(r):r,qP=(r,g,B)=>{const H=o5(r),oe=g(H);if(oe.isDefaultPrevented())return oe;if(F2(r))if(oe.content!==H){const be=fS({validate:!1,forced_root_block:!1,...B}).parse(oe.content,{context:r.name});return{...oe,content:be}}else return{...oe,content:r};else return oe},hN=r=>({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r)}),WP=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=ED(r,g);return B.isDefaultPrevented()?Vs.error(Rw(r,{content:"",...B}).content):Vs.value(B)}},pN=(r,g,B)=>B.no_events?g:qP(g,oe=>Rw(r,{...B,content:oe}),hN(r)).content,X6=(r,g)=>{if(g.no_events)return Vs.value(g);{const B=qP(g.content,H=>U3(r,{...g,content:H}),hN(r));return B.isDefaultPrevented()?(Pw(r,B),Vs.error(void 0)):Vs.value(B)}},YP=(r,g,B)=>{B.no_events||Pw(r,{...B,content:g})},XP=(r,g,B)=>({element:r,width:g,rows:B}),GP=(r,g)=>({element:r,cells:g}),mN=(r,g)=>({x:r,y:g}),KP=(r,g)=>ec(r,g).bind(eo).getOr(1),gN=(r,g,B,H,oe)=>{const be=KP(oe,"rowspan"),Le=KP(oe,"colspan"),Ke=r.rows;for(let ut=B;ut{const H=r.rows;return!!(H[B]?H[B].cells:[])[g]},yN=(r,g,B)=>{for(;vN(r,g,B);)g++;return g},bN=r=>Ie(r,(g,B)=>B.cells.length>g?B.cells.length:g,0),xN=(r,g)=>{const B=r.rows;for(let H=0;H{const be=[],Le=r.rows;for(let Ke=B;Ke<=oe;Ke++){const ut=Le[Ke].cells,At=g{const H=g.x,oe=g.y,be=B.x,Le=B.y,Ke=oe{const B=im(r.element),H=_r.fromTag("tbody");return Yl(H,g),ii(B,H),B},wN=r=>ye(r.rows,g=>{const B=ye(g.cells,oe=>{const be=Qh(oe);return tc(be,"colspan"),tc(be,"rowspan"),be}),H=im(g.element);return Yl(H,B),H}),ON=r=>{const g=XP(im(r),0,[]);return ve(Pl(r,"tr"),(B,H)=>{ve(Pl(B,"td,th"),(oe,be)=>{gN(g,yN(g,be,H),H,B,oe)})}),XP(g.element,bN(g.rows),g.rows)},G6=r=>i5(r,wN(r)),aX=(r,g,B)=>xN(r,g).bind(H=>xN(r,B).map(oe=>JP(r,H,oe))),sX=r=>De(r,g=>ma(g)==="ul"||ma(g)==="ol"),eO=(r,g)=>De(r,B=>ma(B)==="li"&&S3(B,g)).fold($([]),B=>sX(r).map(H=>{const oe=_r.fromTag(ma(H)),be=Yt(Gc(H),(Le,Ke)=>Br(Ke,"list-style"));return aa(oe,be),[_r.fromTag("li"),oe]}).getOr([])),e7=(r,g)=>{const B=Ie(g,(H,oe)=>(ii(oe,H),oe),r);return g.length>0?he([B]):B},SN=r=>av(r)?jc(r).filter(d0).fold($([]),g=>[r,g]):d0(r)?[r]:[],a5=(r,g,B)=>{const H=_r.fromDom(g.commonAncestorContainer),oe=k1(H,r),be=Te(oe,ut=>B.isWrapper(ma(ut))),Le=eO(oe,g),Ke=be.concat(Le.length?Le:SN(H));return ye(Ke,im)},t7=()=>he([]),n7=(r,g,B)=>e7(_r.fromDom(g.cloneContents()),a5(r,g,B)),kN=(r,g)=>ts(g,"table",U(va,r)),TN=(r,g)=>kN(r,g[0]).bind(B=>{const H=g[0],oe=g[g.length-1],be=ON(B);return aX(be,H,oe).map(Le=>he([G6(Le)]))}).getOrThunk(t7),lX=(r,g,B)=>g.length>0&&g[0].collapsed?t7():n7(r,g[0],B),cX=(r,g,B)=>{const H=nk(g,r);return H.length>0?TN(r,H):lX(r,g,B)},K6=(r,g)=>g>=0&&gSd(r.innerText),uX=r=>r.map(g=>g.nodeName).getOr("div").toLowerCase(),CN=r=>Y.from(r.selection.getRng()).map(g=>{var B;const H=Y.from(r.dom.getParent(g.commonAncestorContainer,r.dom.isBlock)),oe=r.getBody(),be=uX(H),Le=_r.fromDom(g.cloneContents());fB(Le),dB(Le);const Ke=r.dom.add(oe,be,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Le.dom),ut=J6(Ke),At=Sd((B=Ke.textContent)!==null&&B!==void 0?B:"");if(r.dom.remove(Ke),K6(At,0)||K6(At,At.length-1)){const nn=H.getOr(oe),un=J6(nn),yn=un.indexOf(ut);if(yn===-1)return ut;{const Qn=K6(un,yn-1),rr=K6(un,yn+ut.length);return(Qn?" ":"")+ut+(rr?" ":"")}}else return ut}).getOr(""),fX=(r,g)=>{const B=r.selection.getRng(),H=r.dom.create("body"),oe=r.selection.getSel(),be=c6(r,w3(oe)),Le=g.contextual?cX(_r.fromDom(r.getBody()),be,r.schema).dom:B.cloneContents();return Le&&H.appendChild(Le),r.selection.serializer.serialize(H,g)},dX=(r,g)=>{if(g.format==="text")return CN(r);{const B=fX(r,g);return g.format==="tree"?B:r.selection.isCollapsed()?"":B}},hX=(r,g)=>({...r,format:g,get:!0,selection:!0,getInner:!0}),pX=(r,g,B={})=>{const H=hX(B,g);return WP(r,H).fold(Q,oe=>{const be=dX(r,oe);return pN(r,be,oe)})},r7=0,AN=1,MN=2,mX=(r,g)=>{const B=r.length+g.length+2,H=new Array(B),oe=new Array(B),be=(nn,un,yn)=>({start:nn,end:un,diag:yn}),Le=(nn,un,yn,Qn,rr)=>{const Wn=ut(nn,un,yn,Qn);if(Wn===null||Wn.start===un&&Wn.diag===un-Qn||Wn.end===nn&&Wn.diag===nn-yn){let ur=nn,Tr=yn;for(;urQn-yn?(rr.push([MN,r[ur]]),++ur):(rr.push([AN,g[Tr]]),++Tr)}else{Le(nn,Wn.start,yn,Wn.start-Wn.diag,rr);for(let ur=Wn.start;ur{let rr=nn;for(;rr-un{const rr=un-nn,Wn=Qn-yn;if(rr===0||Wn===0)return null;const ur=rr-Wn,Tr=Wn+rr,Wr=(Tr%2===0?Tr:Tr+1)/2;H[1+Wr]=nn,oe[1+Wr]=un+1;let Qr,lo,Zo,li,Mi;for(Qr=0;Qr<=Wr;++Qr){for(lo=-Qr;lo<=Qr;lo+=2){for(Zo=lo+Wr,lo===-Qr||lo!==Qr&&H[Zo-1]=nn&&Mi>=yn&&r[li]===g[Mi];)oe[Zo]=li--,Mi--;if(ur%2===0&&-Qr<=lo&&lo<=Qr&&oe[Zo]<=H[Zo+ur])return Ke(oe[Zo],lo+nn-yn,un,Qn)}}return null},At=[];return Le(0,r.length,0,g.length,At),At},o7=r=>ne(r)?r.outerHTML:Mt(r)?Lm.encodeRaw(r.data,!1):bn(r)?"":"",gX=r=>{let g;const B=document.createElement("div"),H=document.createDocumentFragment();for(r&&(B.innerHTML=r);g=B.firstChild;)H.appendChild(g);return H},vX=(r,g,B)=>{const H=gX(g);if(r.hasChildNodes()&&B{if(r.hasChildNodes()&&g{let B=0;ve(r,H=>{H[0]===r7?B++:H[0]===AN?(vX(g,H[1],B),B++):H[0]===MN&&eA(g,B)})},yX=(r,g)=>Te(ye(Me(r.childNodes),g?I(Sd,o7):o7),B=>B.length>0),tA=(r,g)=>{const B=ye(Me(g.childNodes),o7);return kp(mX(B,r),g),g},tO=_t(()=>document.implementation.createHTMLDocument("undo")),EN=r=>r.querySelector("iframe")!==null,tg=r=>({type:"fragmented",fragments:r,content:"",bookmark:null,beforeBookmark:null}),nO=r=>({type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}),s5=r=>{const g=r.serializer.getTempAttrs(),B=uB(r.getBody(),g);return EN(B)?tg(yX(B,!0)):nO(Sd(B.innerHTML))},i7=(r,g,B)=>{const H=B?g.beforeBookmark:g.bookmark;g.type==="fragmented"?tA(g.fragments,r.getBody()):r.setContent(g.content,{format:"raw",no_selection:P(H)&&RC(H)?!H.isFakeCaret:!0}),H&&(r.selection.moveToBookmark(H),r.selection.scrollIntoView())},nA=r=>r.type==="fragmented"?r.fragments.join(""):r.content,PN=r=>{const g=_r.fromTag("body",tO());return Fu(g,nA(r)),ve(Pl(g,"*[data-mce-bogus]"),Mc),ws(g)},RN=(r,g)=>nA(r)===nA(g),l5=(r,g)=>PN(r)===PN(g),c5=(r,g)=>!r||!g?!1:RN(r,g)?!0:l5(r,g),a7=r=>r.get()===0,u5=(r,g,B)=>{a7(B)&&(r.typing=g)},LN=(r,g)=>{r.typing&&(u5(r,!1,g),r.add())},s7=r=>{r.typing&&(r.typing=!1,r.add())},l7=(r,g,B)=>{a7(g)&&B.set(fl(r.selection))},bX=(r,g,B,H,oe,be,Le)=>{const Ke=s5(r),ut=To.extend(be||{},Ke);if(!a7(H)||r.removed)return null;const At=g.data[B.get()];if(r.dispatch("BeforeAddUndo",{level:ut,lastLevel:At,originalEvent:Le}).isDefaultPrevented()||At&&c5(At,ut))return null;g.data[B.get()]&&oe.get().each(yn=>{g.data[B.get()].beforeBookmark=yn});const nn=o2(r);if(nn&&g.data.length>nn){for(let yn=0;yn0?(r.setDirty(!0),r.dispatch("AddUndo",un),r.dispatch("change",un)):r.dispatch("AddUndo",un),ut},xX=(r,g,B)=>{g.data=[],B.set(0),g.typing=!1,r.dispatch("ClearUndos")},By=(r,g,B,H,oe)=>{if(g.transact(H)){const be=g.data[B.get()].bookmark,Le=g.data[B.get()-1];i7(r,Le,!0),g.transact(oe)&&(g.data[B.get()-1].beforeBookmark=be)}},c7=(r,g,B)=>{let H;return g.get(){let oe;return g.typing&&(g.add(),g.typing=!1,u5(g,!1,B)),H.get()>0&&(H.set(H.get()-1),oe=g.data[H.get()],i7(r,oe,!0),r.setDirty(!0),r.dispatch("Undo",{level:oe})),oe},rA=r=>{r.clear(),r.add()},u7=(r,g,B)=>B.get()>0||g.typing&&g.data[0]&&!c5(s5(r),g.data[0]),IN=(r,g)=>g.get()(LN(r,g),r.beforeChange(),r.ignore(B),r.add()),BN=(r,g)=>{try{r.set(r.get()+1),g()}finally{r.set(r.get()-1)}},wX=(r,g)=>{const B=r.dom,H=P(g)?g:r.getBody();ve(B.select("table,a",H),oe=>{switch(oe.nodeName){case"TABLE":const be=i2(r),Le=B.getAttrib(oe,"border");(!Le||Le==="0")&&r.hasVisual?B.addClass(oe,be):B.removeClass(oe,be);break;case"A":if(!B.getAttrib(oe,"href")){const Ke=B.getAttrib(oe,"name")||oe.id,ut=a2(r);Ke&&r.hasVisual?B.addClass(oe,ut):B.removeClass(oe,ut)}break}}),r.dispatch("VisualAid",{element:g,hasVisual:r.hasVisual})},zN=r=>({init:{bindEvents:k},undoManager:{beforeChange:(g,B)=>l7(r,g,B),add:(g,B,H,oe,be,Le)=>bX(r,g,B,H,oe,be,Le),undo:(g,B,H)=>_X(r,g,B,H),redo:(g,B)=>c7(r,g,B),clear:(g,B)=>xX(r,g,B),reset:g=>rA(g),hasUndo:(g,B)=>u7(r,g,B),hasRedo:(g,B)=>IN(g,B),transact:(g,B,H)=>DN(g,B,H),ignore:(g,B)=>BN(g,B),extra:(g,B,H,oe)=>By(r,g,B,H,oe)},formatter:{match:(g,B,H,oe)=>C6(r,g,B,H,oe),matchAll:(g,B)=>A6(r,g,B),matchNode:(g,B,H,oe)=>C1(r,g,B,H,oe),canApply:g=>fY(r,g),closest:g=>uY(r,g),apply:(g,B,H)=>$z(r,g,B,H),remove:(g,B,H,oe)=>AP(r,g,B,H,oe),toggle:(g,B,H)=>RP(r,g,B,H),formatChanged:(g,B,H,oe,be)=>RY(r,g,B,H,oe,be)},editor:{getContent:g=>hB(r,g),setContent:(g,B)=>k6(r,g,B),insertContent:(g,B)=>M0(r,g,B),addVisual:g=>wX(r,g)},selection:{getContent:(g,B)=>pX(r,g,B)},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:()=>Y.none()}}),OX=r=>{const g=At=>_(At)?At:{},{init:B,undoManager:H,formatter:oe,editor:be,selection:Le,autocompleter:Ke,raw:ut}=r;return{init:{bindEvents:B.bindEvents},undoManager:{beforeChange:H.beforeChange,add:H.add,undo:H.undo,redo:H.redo,clear:H.clear,reset:H.reset,hasUndo:H.hasUndo,hasRedo:H.hasRedo,transact:(At,nn,un)=>H.transact(un),ignore:(At,nn)=>H.ignore(nn),extra:(At,nn,un,yn)=>H.extra(un,yn)},formatter:{match:(At,nn,un,yn)=>oe.match(At,g(nn),yn),matchAll:oe.matchAll,matchNode:oe.matchNode,canApply:At=>oe.canApply(At),closest:At=>oe.closest(At),apply:(At,nn,un)=>oe.apply(At,g(nn)),remove:(At,nn,un,yn)=>oe.remove(At,g(nn)),toggle:(At,nn,un)=>oe.toggle(At,g(nn)),formatChanged:(At,nn,un,yn,Qn)=>oe.formatChanged(nn,un,yn,Qn)},editor:{getContent:At=>be.getContent(At),setContent:(At,nn)=>({content:be.setContent(At,nn),html:""}),insertContent:(At,nn)=>(be.insertContent(At),""),addVisual:be.addVisual},selection:{getContent:(At,nn)=>Le.getContent(nn)},autocompleter:{addDecoration:Ke.addDecoration,removeDecoration:Ke.removeDecoration},raw:{getModel:()=>Y.some(ut.getRawModel())}}},SX=()=>{const r=$(null),g=$("");return{init:{bindEvents:k},undoManager:{beforeChange:k,add:r,undo:r,redo:r,clear:k,reset:k,hasUndo:re,hasRedo:re,transact:r,ignore:k,extra:k},formatter:{match:re,matchAll:$([]),matchNode:$(void 0),canApply:re,closest:g,apply:k,remove:k,toggle:k,formatChanged:$({unbind:k})},editor:{getContent:g,setContent:$({content:"",html:""}),insertContent:$(""),addVisual:k},selection:{getContent:g},autocompleter:{addDecoration:k,removeDecoration:k},raw:{getModel:$(Y.none())}}},zy=r=>Ot(r.plugins,"rtc"),NN=r=>Et(r.plugins,"rtc").bind(g=>Y.from(g.setup)),kX=r=>{const g=r;return NN(r).fold(()=>(g.rtcInstance=zN(r),Y.none()),B=>(g.rtcInstance=SX(),Y.some(()=>B().then(H=>(g.rtcInstance=OX(H),H.rtc.isRemote)))))},f7=r=>r.rtcInstance?r.rtcInstance:zN(r),Xd=r=>{const g=r.rtcInstance;if(g)return g;throw new Error("Failed to get RTC instance not yet initialized.")},FN=(r,g,B)=>{Xd(r).undoManager.beforeChange(g,B)},d7=(r,g,B,H,oe,be,Le)=>Xd(r).undoManager.add(g,B,H,oe,be,Le),h7=(r,g,B,H)=>Xd(r).undoManager.undo(g,B,H),$N=(r,g,B)=>Xd(r).undoManager.redo(g,B),p7=(r,g,B)=>{Xd(r).undoManager.clear(g,B)},VN=(r,g)=>{Xd(r).undoManager.reset(g)},UN=(r,g,B)=>Xd(r).undoManager.hasUndo(g,B),m7=(r,g,B)=>Xd(r).undoManager.hasRedo(g,B),jN=(r,g,B,H)=>Xd(r).undoManager.transact(g,B,H),QN=(r,g,B)=>{Xd(r).undoManager.ignore(g,B)},HN=(r,g,B,H,oe)=>{Xd(r).undoManager.extra(g,B,H,oe)},TX=(r,g,B,H,oe)=>Xd(r).formatter.match(g,B,H,oe),g7=(r,g,B)=>Xd(r).formatter.matchAll(g,B),CX=(r,g,B,H,oe)=>Xd(r).formatter.matchNode(g,B,H,oe),oA=(r,g)=>Xd(r).formatter.canApply(g),AX=(r,g)=>Xd(r).formatter.closest(g),MX=(r,g,B,H)=>{Xd(r).formatter.apply(g,B,H)},EX=(r,g,B,H,oe)=>{Xd(r).formatter.remove(g,B,H,oe)},ZN=(r,g,B,H)=>{Xd(r).formatter.toggle(g,B,H)},qN=(r,g,B,H,oe,be)=>Xd(r).formatter.formatChanged(g,B,H,oe,be),PX=(r,g)=>f7(r).editor.getContent(g),RX=(r,g,B)=>f7(r).editor.setContent(g,B),LX=(r,g,B)=>f7(r).editor.insertContent(g,B),IX=(r,g,B)=>Xd(r).selection.getContent(g,B),DX=(r,g)=>Xd(r).editor.addVisual(g),v7=r=>Xd(r).init.bindEvents(),Ofe=(r,g={})=>{const B=g.format?g.format:"html";return IX(r,B,g)},WN=r=>r.dom.length===0?(hs(r),Y.none()):Y.some(r),BX=(r,g)=>r.filter(B=>Pg.isBookmarkNode(B.dom)).bind(g?Bc:sf),zX=(r,g,B,H,oe)=>{const be=r.dom,Le=g.dom,Ke=H?be.length:Le.length;H?($E(be,Le,oe,!1,!H),B.setStart(Le,Ke)):($E(Le,be,oe,!1,!H),B.setEnd(Le,Ke))},NX=(r,g,B)=>{jc(r).each(H=>{const oe=r.dom;g&&Pk(H,vo(oe,0),B)?h6(oe,0,B):!g&&K3(H,vo(oe,oe.length),B)&&FE(oe,oe.length,B)})},YN=(r,g,B,H,oe)=>{r.bind(be=>((H?FE:h6)(be.dom,H?be.dom.length:0,oe),g.filter(Ml).map(Ke=>zX(be,Ke,B,H,oe)))).orThunk(()=>BX(g,H).or(g).filter(Ml).map(Le=>NX(Le,H,oe)))},FX=(r,g,B)=>{const H=Y.from(g.firstChild).map(_r.fromDom),oe=Y.from(g.lastChild).map(_r.fromDom);r.deleteContents(),r.insertNode(g);const be=H.bind(sf).filter(Ml).bind(WN),Le=oe.bind(Bc).filter(Ml).bind(WN);YN(be,H,r,!0,B),YN(Le,oe,r,!1,B),r.collapse(!1)},$X=(r,g)=>({format:"html",...r,set:!0,selection:!0,content:g}),XN=(r,g)=>{if(g.format!=="raw"){const B=r.selection.getRng(),H=r.dom.getParent(B.commonAncestorContainer,r.dom.isBlock),oe=H?{context:H.nodeName.toLowerCase()}:{},be=r.parser.parse(g.content,{forced_root_block:!1,...oe,...g});return rx({validate:!1},r.schema).serialize(be)}else return g.content},VX=(r,g,B={})=>{const H=$X(B,g);X6(r,H).each(oe=>{const be=XN(r,oe),Le=r.selection.getRng();FX(Le,Le.createContextualFragment(be),r.schema),r.selection.setRng(Le),kk(r,Le),YP(r,be,oe)})},GN=(r,g,B)=>{if(Ot(r,g)){const H=Te(r[g],oe=>oe!==B);H.length===0?delete r[g]:r[g]=H}};var UX=(r,g)=>{let B,H;const oe=(Ke,ut)=>De(ut,At=>r.is(At,Ke)),be=Ke=>r.getParents(Ke,void 0,r.getRoot()),Le=()=>{B={},H={},g.on("NodeChange",Ke=>{const ut=Ke.element,At=be(ut),nn={};Ge(B,(un,yn)=>{oe(yn,At).each(Qn=>{H[yn]||(ve(un,rr=>{rr(!0,{node:Qn,selector:yn,parents:At})}),H[yn]=un),nn[yn]=un})}),Ge(H,(un,yn)=>{nn[yn]||(delete H[yn],ve(un,Qn=>{Qn(!1,{node:ut,selector:yn,parents:At})}))})})};return{selectorChangedWithUnbind:(Ke,ut)=>(B||Le(),B[Ke]||(B[Ke]=[]),B[Ke].push(ut),oe(Ke,be(g.selection.getStart())).each(()=>{H[Ke]=B[Ke]}),{unbind:()=>{GN(B,Ke,ut),GN(H,Ke,ut)}})}};const KN=r=>!!(r&&r.ownerDocument)&&El(_r.fromDom(r.ownerDocument),_r.fromDom(r)),jX=r=>r?KN(r.startContainer)&&KN(r.endContainer):!1,QX=(r,g,B,H)=>{let oe,be;const{selectorChangedWithUnbind:Le}=UX(r,H),Ke=(vi,na)=>{const ol=r.createRng();P(vi)&&P(na)?(ol.setStart(vi,na),ol.setEnd(vi,na),lo(ol),Tr(!1)):(ik(r,ol,H.getBody(),!0),lo(ol))},ut=vi=>Ofe(H,vi),At=(vi,na)=>VX(H,vi,na),nn=vi=>CE(H.getBody(),Qr(),vi),un=vi=>JD(H.getBody(),Qr(),vi),yn=(vi,na)=>Wf.getBookmark(vi,na),Qn=vi=>Wf.moveToBookmark(vi),rr=(vi,na)=>(l6(r,vi,na).each(lo),vi),Wn=()=>{const vi=Qr(),na=Wr();return!vi||vi.item?!1:vi.compareEndPoints?vi.compareEndPoints("StartToEnd",vi)===0:!na||vi.collapsed},ur=()=>{const vi=Qr(),na=H.getBody().querySelectorAll('[data-mce-selected="1"]');return na.length>0?Oe(na,ol=>r.isEditable(ol.parentElement)):kE(r,vi)},Tr=vi=>{const na=Qr();na.collapse(!!vi),lo(na)},Wr=()=>g.getSelection?g.getSelection():g.document.selection,Qr=()=>{let vi;const na=(Ti,pa,ps)=>{try{return pa.compareBoundaryPoints(Ti,ps)}catch{return-1}},ol=g.document;if(P(H.bookmark)&&!nx(H)){const Ti=o6(H);if(Ti.isSome())return Ti.map(pa=>c6(H,[pa])[0]).getOr(ol.createRange())}try{const Ti=Wr();Ti&&!le(Ti.anchorNode)&&(Ti.rangeCount>0?vi=Ti.getRangeAt(0):vi=ol.createRange(),vi=c6(H,[vi])[0])}catch{}if(vi||(vi=ol.createRange()),vn(vi.startContainer)&&vi.collapsed){const Ti=r.getRoot();vi.setStart(Ti,0),vi.setEnd(Ti,0)}return oe&&be&&(na(vi.START_TO_START,vi,oe)===0&&na(vi.END_TO_END,vi,oe)===0?vi=be:(oe=null,be=null)),vi},lo=(vi,na)=>{if(!jX(vi))return;const ol=Wr();if(vi=H.dispatch("SetSelectionRange",{range:vi,forward:na}).range,ol){be=vi;try{ol.removeAllRanges(),ol.addRange(vi)}catch{}na===!1&&ol.extend&&(ol.collapse(vi.endContainer,vi.endOffset),ol.extend(vi.startContainer,vi.startOffset)),oe=ol.rangeCount>0?ol.getRangeAt(0):null}if(!vi.collapsed&&vi.startContainer===vi.endContainer&&(ol!=null&&ol.setBaseAndExtent)&&vi.endOffset-vi.startOffset<2&&vi.startContainer.hasChildNodes()){const pa=vi.startContainer.childNodes[vi.startOffset];pa&&pa.nodeName==="IMG"&&(ol.setBaseAndExtent(vi.startContainer,vi.startOffset,vi.endContainer,vi.endOffset),(ol.anchorNode!==vi.startContainer||ol.focusNode!==vi.endContainer)&&ol.setBaseAndExtent(pa,0,pa,1))}H.dispatch("AfterSetSelectionRange",{range:vi,forward:na})},Zo=vi=>(At(r.getOuterHTML(vi)),vi),li=()=>eW(H.getBody(),Qr()),Mi=(vi,na)=>tW(r,Qr(),vi,na),Co=()=>{const vi=Wr(),na=vi==null?void 0:vi.anchorNode,ol=vi==null?void 0:vi.focusNode;if(!vi||!na||!ol||le(na)||le(ol))return!0;const Ti=r.createRng(),pa=r.createRng();try{Ti.setStart(na,vi.anchorOffset),Ti.collapse(!0),pa.setStart(ol,vi.focusOffset),pa.collapse(!0)}catch{return!0}return Ti.compareBoundaryPoints(Ti.START_TO_START,pa)<=0},Uu={dom:r,win:g,serializer:B,editor:H,expand:(vi={type:"word"})=>lo(oi(r).expand(Qr(),vi)),collapse:Tr,setCursorLocation:Ke,getContent:ut,setContent:At,getBookmark:yn,moveToBookmark:Qn,select:rr,isCollapsed:Wn,isEditable:ur,isForward:Co,setNode:Zo,getNode:li,getSel:Wr,setRng:lo,getRng:Qr,getStart:nn,getEnd:un,getSelectedBlocks:Mi,normalize:()=>{const vi=Qr(),na=Wr();if(!HM(na)&&T2(H)){const ol=fi(r,vi);return ol.each(Ti=>{lo(Ti,Co())}),ol.getOr(vi)}return vi},selectorChanged:(vi,na)=>(Le(vi,na),Uu),selectorChangedWithUnbind:Le,getScrollContainer:()=>{let vi,na=r.getRoot();for(;na&&na.nodeName!=="BODY";){if(na.scrollHeight>na.clientHeight){vi=na;break}na=na.parentNode}return vi},scrollIntoView:(vi,na)=>{P(vi)?Vq(H,vi,na):kk(H,Qr(),na)},placeCaretAt:(vi,na)=>lo(lt(vi,na,H.getDoc())),getBoundingClientRect:()=>{const vi=Qr();return vi.collapsed?vo.fromRangeStart(vi).getClientRects()[0]:vi.getBoundingClientRect()},destroy:()=>{g=oe=be=null,ic.destroy()}},Wf=Pg(Uu),ic=Iw(Uu,H);return Uu.bookmarkManager=Wf,Uu.controlSelection=ic,Uu},Sfe=(r,g,B)=>{g.addNodeFilter("br",(H,oe,be)=>{const Le=To.extend({},B.getBlockElements()),Ke=B.getNonEmptyElements(),ut=B.getWhitespaceElements();Le.body=1;const At=nn=>nn.name in Le||ch(B,nn);for(let nn=0,un=H.length;nn{r.addAttributeFilter("data-mce-tabindex",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.attr("tabindex",Le.attr("data-mce-tabindex")),Le.attr(oe,null)}}),r.addAttributeFilter("src,href,style",(H,oe)=>{const be="data-mce-"+oe,Le=g.url_converter,Ke=g.url_converter_scope;let ut=H.length;for(;ut--;){const At=H[ut];let nn=At.attr(be);nn!==void 0?(At.attr(oe,nn.length>0?nn:null),At.attr(be,null)):(nn=At.attr(oe),oe==="style"?nn=B.serializeStyle(B.parseStyle(nn),At.name):Le&&(nn=Le.call(Ke,nn,oe,At.name)),At.attr(oe,nn.length>0?nn:null))}}),r.addAttributeFilter("class",H=>{let oe=H.length;for(;oe--;){const be=H[oe];let Le=be.attr("class");Le&&(Le=Le.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),be.attr("class",Le.length>0?Le:null))}}),r.addAttributeFilter("data-mce-type",(H,oe,be)=>{let Le=H.length;for(;Le--;){const Ke=H[Le];Ke.attr("data-mce-type")==="bookmark"&&!be.cleanup&&(Y.from(Ke.firstChild).exists(At=>{var nn;return!Wx((nn=At.value)!==null&&nn!==void 0?nn:"")})?Ke.unwrap():Ke.remove())}}),r.addNodeFilter("script,style",(H,oe)=>{var be;const Le=ut=>ut.replace(/()/g,` `).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let Ke=H.length;for(;Ke--;){const ut=H[Ke],At=ut.firstChild,nn=(be=At==null?void 0:At.value)!==null&&be!==void 0?be:"";if(oe==="script"){const un=ut.attr("type");un&&ut.attr("type",un==="mce-no/type"?null:un.replace(/^mce\-/,"")),g.element_format==="xhtml"&&At&&nn.length>0&&(At.value=`// `)}else g.element_format==="xhtml"&&At&&nn.length>0&&(At.value=``)}}),r.addNodeFilter("#comment",H=>{let oe=H.length;for(;oe--;){const be=H[oe],Le=be.value;g.preserve_cdata&&(Le==null?void 0:Le.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Le.replace(/^\[CDATA\[|\]\]$/g,""))):(Le==null?void 0:Le.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Le).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.type===7?Le.remove():Le.type===1&&oe==="input"&&!Le.attr("type")&&Le.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ve(H,oe=>{oe.attr("data-mce-type")==="format-caret"&&(oe.isEmpty(r.schema.getNonEmptyElements())?oe.remove():oe.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.remove_trailing_brs&&wfe(g,r,r.schema)},HX=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},Ofe=(r,g,B)=>{let H;const oe=r.dom;let be=g.cloneNode(!0);const Le=document.implementation;if(Le.createHTMLDocument){const Ke=Le.createHTMLDocument("");To.each(be.nodeName==="BODY"?be.childNodes:[be],ut=>{Ke.body.appendChild(Ke.importNode(ut,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=oe.doc,oe.doc=Ke}return JM(r,{...B,node:be}),H&&(oe.doc=H),be},ZX=(r,g)=>P(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,Ku=(r,g,B)=>ZX(r,B)?Ofe(r,g,B):g,y7=(r,g,B)=>{To.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.push(B))},Sfe=(r,g,B)=>!g.no_events&&r?N3(r,{...g,content:B}).content:B,qX=(r,g,B)=>{const H=Sd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||xb(_r.fromDom(g))?H:To.trim(H)},WX=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,oe=r.parse(g,H);return HX(oe),oe},dS=(r,g,B)=>rx(r,g).serialize(B),kfe=(r,g,B,H,oe)=>{const be=dS(g,B,H);return Sfe(r,oe,be)},Tfe=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},oe=g&&g.dom?g.dom:cc.DOM,be=g&&g.schema?g.schema:zm(H),Le=fS(H,be);QX(Le,H,oe);const Ke=(ut,At={})=>{const nn={format:"html",...At},un=Ku(g,ut,nn),yn=qX(oe,un,nn),Qn=WX(Le,yn,nn);return nn.format==="tree"?Qn:kfe(g,H,be,Qn,nn)};return{schema:be,addNodeFilter:Le.addNodeFilter,addAttributeFilter:Le.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(y7,Le,B),getTempAttrs:$(B),getNodeFilters:Le.getNodeFilters,getAttributeFilters:Le.getAttributeFilters,removeNodeFilter:Le.removeNodeFilter,removeAttributeFilter:Le.removeAttributeFilter}},Lh=(r,g)=>{const B=Tfe(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},KN="html",JN=(r,g)=>({...r,format:g,get:!0,getInner:!0}),eF=(r,g={})=>{const B=g.format?g.format:KN,H=JN(g,B);return WP(r,H).fold(Q,oe=>{const be=EX(r,oe);return hN(r,be,oe)})},YX="html",XX=(r,g)=>({format:YX,...r,set:!0,content:g}),hS=(r,g,B={})=>{const H=XX(B,g);return Y6(r,H).map(oe=>{const be=PX(r,oe.content,oe);return YP(r,be.html,oe),be.content}).getOr(g)},GX="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),b7=[],KX="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),x7=[],_7=(r,g)=>{const B=Te(g,H=>Ot(r,H));return Ue(B)},w7=r=>{const g=_7(r,GX),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},tF=r=>_7(r,b7),oA=(r,g)=>{const B=To.makeMap(r.plugins," "),oe=Te(g,be=>Ot(B,be));return Ue(oe)},JX=r=>oA(r,KX),eG=r=>oA(r,x7.map(g=>g.name)),tG=(r,g)=>{const B=w7(r),H=JX(g),oe=H.length>0,be=B.length>0,Le=g.theme==="mobile";if(oe||be||Le){const Ke=` +-->`)}}),r.addNodeFilter("#comment",H=>{let oe=H.length;for(;oe--;){const be=H[oe],Le=be.value;g.preserve_cdata&&(Le==null?void 0:Le.indexOf("[CDATA["))===0?(be.name="#cdata",be.type=4,be.value=B.decode(Le.replace(/^\[CDATA\[|\]\]$/g,""))):(Le==null?void 0:Le.indexOf("mce:protected "))===0&&(be.name="#text",be.type=3,be.raw=!0,be.value=unescape(Le).substr(14))}}),r.addNodeFilter("xml:namespace,input",(H,oe)=>{let be=H.length;for(;be--;){const Le=H[be];Le.type===7?Le.remove():Le.type===1&&oe==="input"&&!Le.attr("type")&&Le.attr("type","text")}}),r.addAttributeFilter("data-mce-type",H=>{ve(H,oe=>{oe.attr("data-mce-type")==="format-caret"&&(oe.isEmpty(r.schema.getNonEmptyElements())?oe.remove():oe.unwrap())})}),r.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.remove_trailing_brs&&Sfe(g,r,r.schema)},ZX=r=>{const g=H=>(H==null?void 0:H.name)==="br",B=r.lastChild;if(g(B)){const H=B.prev;g(H)&&(B.remove(),H.remove())}},kfe=(r,g,B)=>{let H;const oe=r.dom;let be=g.cloneNode(!0);const Le=document.implementation;if(Le.createHTMLDocument){const Ke=Le.createHTMLDocument("");To.each(be.nodeName==="BODY"?be.childNodes:[be],ut=>{Ke.body.appendChild(Ke.importNode(ut,!0))}),be.nodeName!=="BODY"?be=Ke.body.firstChild:be=Ke.body,H=oe.doc,oe.doc=Ke}return JM(r,{...B,node:be}),H&&(oe.doc=H),be},qX=(r,g)=>P(r)&&r.hasEventListeners("PreProcess")&&!g.no_events,Ku=(r,g,B)=>qX(r,B)?kfe(r,g,B):g,y7=(r,g,B)=>{To.inArray(g,B)===-1&&(r.addAttributeFilter(B,(H,oe)=>{let be=H.length;for(;be--;)H[be].attr(oe,null)}),g.push(B))},Tfe=(r,g,B)=>!g.no_events&&r?N3(r,{...g,content:B}).content:B,WX=(r,g,B)=>{const H=Sd(B.getInner?g.innerHTML:r.getOuterHTML(g));return B.selection||xb(_r.fromDom(g))?H:To.trim(H)},YX=(r,g,B)=>{const H=B.selection?{forced_root_block:!1,...B}:B,oe=r.parse(g,H);return ZX(oe),oe},dS=(r,g,B)=>rx(r,g).serialize(B),Cfe=(r,g,B,H,oe)=>{const be=dS(g,B,H);return Tfe(r,oe,be)},Afe=(r,g)=>{const B=["data-mce-selected"],H={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...r},oe=g&&g.dom?g.dom:cc.DOM,be=g&&g.schema?g.schema:zm(H),Le=fS(H,be);HX(Le,H,oe);const Ke=(ut,At={})=>{const nn={format:"html",...At},un=Ku(g,ut,nn),yn=WX(oe,un,nn),Qn=YX(Le,yn,nn);return nn.format==="tree"?Qn:Cfe(g,H,be,Qn,nn)};return{schema:be,addNodeFilter:Le.addNodeFilter,addAttributeFilter:Le.addAttributeFilter,serialize:Ke,addRules:be.addValidElements,setRules:be.setValidElements,addTempAttr:U(y7,Le,B),getTempAttrs:$(B),getNodeFilters:Le.getNodeFilters,getAttributeFilters:Le.getAttributeFilters,removeNodeFilter:Le.removeNodeFilter,removeAttributeFilter:Le.removeAttributeFilter}},Ih=(r,g)=>{const B=Afe(r,g);return{schema:B.schema,addNodeFilter:B.addNodeFilter,addAttributeFilter:B.addAttributeFilter,serialize:B.serialize,addRules:B.addRules,setRules:B.setRules,addTempAttr:B.addTempAttr,getTempAttrs:B.getTempAttrs,getNodeFilters:B.getNodeFilters,getAttributeFilters:B.getAttributeFilters,removeNodeFilter:B.removeNodeFilter,removeAttributeFilter:B.removeAttributeFilter}},JN="html",eF=(r,g)=>({...r,format:g,get:!0,getInner:!0}),tF=(r,g={})=>{const B=g.format?g.format:JN,H=eF(g,B);return WP(r,H).fold(Q,oe=>{const be=PX(r,oe);return pN(r,be,oe)})},XX="html",GX=(r,g)=>({format:XX,...r,set:!0,content:g}),hS=(r,g,B={})=>{const H=GX(B,g);return X6(r,H).map(oe=>{const be=RX(r,oe.content,oe);return YP(r,be.html,oe),be.content}).getOr(g)},KX="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists,template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),b7=[],JX="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,template,textcolor,rtc".split(","),x7=[],_7=(r,g)=>{const B=Te(g,H=>Ot(r,H));return Ue(B)},w7=r=>{const g=_7(r,KX),B=r.forced_root_block;return(B===!1||B==="")&&g.push("forced_root_block (false only)"),Ue(g)},nF=r=>_7(r,b7),iA=(r,g)=>{const B=To.makeMap(r.plugins," "),oe=Te(g,be=>Ot(B,be));return Ue(oe)},eG=r=>iA(r,JX),tG=r=>iA(r,x7.map(g=>g.name)),nG=(r,g)=>{const B=w7(r),H=eG(g),oe=H.length>0,be=B.length>0,Le=g.theme==="mobile";if(oe||be||Le){const Ke=` - `,ut=Le?` Themes:${Ke}mobile`:"",At=oe?` Plugins:${Ke}${H.join(Ke)}`:"",nn=be?` -Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ut+At+nn)}},L0=r=>De(x7,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),nG=(r,g)=>{const B=tF(r),H=eG(g),oe=H.length>0,be=B.length>0;if(oe||be){const Le=` +Options:${Ke}${B.join(Ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 7.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/7/migration-from-6x/ for more information."+ut+At+nn)}},L0=r=>De(x7,g=>g.name===r).fold(()=>r,g=>g.replacedWith?`${r}, replaced by ${g.replacedWith}`:r),rG=(r,g)=>{const B=nF(r),H=tG(g),oe=H.length>0,be=B.length>0;if(oe||be){const Le=` - `,Ke=oe?` Plugins:${Le}${H.map(L0).join(Le)}`:"",ut=be?` -Options:${Le}${B.join(Le)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ut)}},rG=(r,g)=>{tG(r,g),nG(r,g)},iA=cc.DOM,oG=r=>{iA.setStyle(r.id,"display",r.orgDisplay)},aA=r=>Y.from(r).each(g=>g.destroy()),nF=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},iG=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),iA.unbind(g,"submit reset",r.formEventDelegate))},aG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),oe=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&P(oe==null?void 0:oe.nextSibling)&&iA.remove(oe.nextSibling),F3(r),r.editorManager.remove(r),!r.inline&&H&&oG(r),eE(r),iA.remove(r.getContainer()),aA(g),aA(B),r.destroy()}},sG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),aA(B),aA(H)),iG(r),nF(r),r.destroyed=!0}},sA=(()=>{const r={};return{add:(oe,be)=>{r[oe]=be},get:oe=>r[oe]?r[oe]:{icons:{}},has:oe=>Ot(r,oe)}})(),pS=fh.ModelManager,S7=(r,g)=>g.dom[r],lA=(r,g)=>parseInt(rs(g,r),10),lG=U(S7,"clientWidth"),cG=U(S7,"clientHeight"),Cfe=U(lA,"margin-top"),uG=U(lA,"margin-left"),f5=r=>r.dom.getBoundingClientRect(),rF=(r,g,B)=>{const H=lG(r),oe=cG(r);return g>=0&&B>=0&&g<=H&&B<=oe},oF=(r,g,B,H)=>{const oe=f5(g),be=r?oe.left+g.dom.clientLeft+uG(g):0,Le=r?oe.top+g.dom.clientTop+Cfe(g):0,Ke=B-be,ut=H-Le;return{x:Ke,y:ut}},fG=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.inline?H:ih(H),be=oF(r.inline,oe,g,B);return rF(oe,be.x,be.y)},iF=r=>Y.from(r).map(_r.fromDom),dG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return iF(g).map(lf).getOr(!1)};var hG=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const aF=r=>{const g=[],B=()=>{const yn=r.theme;return yn&&yn.getNotificationManagerImpl?yn.getNotificationManagerImpl():hG()},H=()=>Y.from(g[0]),oe=(yn,Qn)=>yn.type===Qn.type&&yn.text===Qn.text&&!yn.progressBar&&!yn.timeout&&!Qn.progressBar&&!Qn.timeout,be=()=>{H().each(yn=>{yn.reposition()})},Le=yn=>{g.push(yn)},Ke=yn=>{Qe(g,Qn=>Qn===yn).each(Qn=>{g.splice(Qn,1)})},ut=(yn,Qn=!0)=>r.removed||!dG(r)?{}:(Qn&&r.dispatch("BeforeOpenNotification",{notification:yn}),De(g,rr=>oe(B().getArgs(rr),yn)).getOrThunk(()=>{r.editorManager.setActive(r);const rr=B().open(yn,()=>{Ke(rr)},()=>GD(r));return Le(rr),be(),r.dispatch("OpenNotification",{notification:{...rr}}),rr})),At=()=>{H().each(yn=>{B().close(yn),Ke(yn),be()})},nn=$(g);return(yn=>{yn.on("SkinLoaded",()=>{const Qn=Wd(yn);Qn&&ut({text:Qn,type:"warning",timeout:0},!1),be()}),yn.on("show ResizeEditor ResizeWindow NodeChange ToggleView FullscreenStateChanged",()=>{requestAnimationFrame(be)}),yn.on("remove",()=>{ve(g.slice(),Qn=>{B().close(Qn)})}),yn.addShortcut("alt+F12","Focus to notification",()=>H().map(Qn=>_r.fromDom(Qn.getEl())).each(Qn=>Z3(Qn)))})(r),{open:ut,close:At,getNotifications:nn}},mS=fh.PluginManager,Q2=fh.ThemeManager;var pG=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const sF=r=>{let g=[];const B=()=>{const Wn=r.theme;return Wn&&Wn.getWindowManagerImpl?Wn.getWindowManagerImpl():pG()},H=(Wn,ur)=>(...Tr)=>ur?ur.apply(Wn,Tr):void 0,oe=Wn=>{r.dispatch("OpenWindow",{dialog:Wn})},be=Wn=>{r.dispatch("CloseWindow",{dialog:Wn})},Le=Wn=>{g.push(Wn),oe(Wn)},Ke=Wn=>{be(Wn),g=Te(g,ur=>ur!==Wn),g.length===0&&r.focus()},ut=()=>Y.from(g[g.length-1]),At=Wn=>{r.editorManager.setActive(r),Tk(r),r.ui.show();const ur=Wn();return Le(ur),ur},nn=(Wn,ur)=>At(()=>B().open(Wn,ur,Ke)),un=Wn=>At(()=>B().openUrl(Wn,Ke)),yn=(Wn,ur,Tr)=>{const Wr=B();Wr.alert(Wn,H(Tr||Wr,ur))},Qn=(Wn,ur,Tr)=>{const Wr=B();Wr.confirm(Wn,H(Tr||Wr,ur))},rr=()=>{ut().each(Wn=>{B().close(Wn),Ke(Wn)})};return r.on("remove",()=>{ve(g,Wn=>{B().close(Wn)})}),{open:nn,openUrl:un,alert:yn,confirm:Qn,close:rr}},gS=(r,g)=>{r.notificationManager.open({type:"error",text:g})},d5=(r,g)=>{r._skinLoaded?gS(r,g):r.on("SkinLoaded",()=>{gS(r,g)})},lF=(r,g)=>{d5(r,ff.translate(["Failed to upload image: {0}",g]))},h5=(r,g,B)=>{mh(r,g,{message:B}),console.error(B)},p5=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,mG=(r,g,B)=>{h5(r,"PluginLoadError",p5("plugin",g,B))},cF=(r,g,B)=>{h5(r,"IconsLoadError",p5("icons",g,B))},gG=(r,g,B)=>{h5(r,"LanguageLoadError",p5("language",g,B))},vG=(r,g,B)=>{h5(r,"ThemeLoadError",p5("theme",g,B))},yG=(r,g,B)=>{h5(r,"ModelLoadError",p5("model",g,B))},bG=(r,g,B)=>{const H=ff.translate(["Failed to initialize plugin: {0}",g]);mh(r,"PluginLoadError",{message:H}),k7(H,B),d5(r,H)},k7=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},Iv=r=>/^[a-z0-9\-]+$/i.test(r),m5=r=>"content/"+r+"/content.css",xG=r=>tinymce.Resource.has(m5(r)),_G=r=>uF(r,r2(r)),wG=r=>uF(r,Ad(r)),uF=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",oe=`content${r.editorManager.suffix}.css`;return ye(g,be=>xG(be)?be:Iv(be)&&!r.inline?`${B}/${be}/${oe}`:r.documentBaseURI.toAbsolute(be))},Il=r=>{r.contentCSS=r.contentCSS.concat(_G(r),wG(r))},OG=r=>r?Me(r.getElementsByTagName("img")):[],g5=(r,g)=>{const B={};return{findAll:(oe,be=q)=>{const Le=Te(OG(oe),ut=>{const At=ut.src;return ut.hasAttribute("data-mce-bogus")||ut.hasAttribute("data-mce-placeholder")||!At||At===Nr.transparentSrc?!1:Br(At,"blob:")?!r.isUploaded(At)&&be(ut):Br(At,"data:")?be(ut):!1}),Ke=ye(Le,ut=>{const At=ut.src;if(Ot(B,At))return B[At].then(nn=>v(nn)?nn:{image:ut,blobInfo:nn.blobInfo});{const nn=BY(g,At).then(un=>(delete B[At],{image:ut,blobInfo:un})).catch(un=>(delete B[At],un));return B[At]=nn,nn}});return Promise.all(Ke)}}},fF=()=>{let B={};const H=(yn,Qn)=>({status:yn,resultUri:Qn}),oe=yn=>yn in B;return{hasBlobUri:oe,getResultUri:yn=>{const Qn=B[yn];return Qn?Qn.resultUri:null},isPending:yn=>oe(yn)?B[yn].status===1:!1,isUploaded:yn=>oe(yn)?B[yn].status===2:!1,markPending:yn=>{B[yn]=H(1,null)},markUploaded:(yn,Qn)=>{B[yn]=H(2,Qn)},removeFailed:yn=>{delete B[yn]},destroy:()=>{B={}}}};let SG=0;const kG=()=>{const r=()=>Math.round(G_()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},dF=r=>r+SG+++kG(),H2=()=>{let r=[];const g=un=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[un.toLowerCase()]||"dat",B=(un,yn,Qn,rr,Wn)=>{if(v(un))return H({id:un,name:rr,filename:Wn,blob:yn,base64:Qn});if(_(un))return H(un);throw new Error("Unknown input type")},H=un=>{if(!un.blob||!un.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const yn=un.id||dF("blobid"),Qn=un.name||yn,rr=un.blob;return{id:$(yn),name:$(Qn),filename:$(un.filename||Qn+"."+g(rr.type)),blob:$(rr),base64:$(un.base64),blobUri:$(un.blobUri||URL.createObjectURL(rr)),uri:$(un.uri)}},oe=un=>{Le(un.id())||r.push(un)},be=un=>De(r,un).getOrUndefined(),Le=un=>be(yn=>yn.id()===un);return{create:B,add:oe,get:Le,getByUri:un=>be(yn=>yn.blobUri()===un),getByData:(un,yn)=>be(Qn=>Qn.base64()===un&&Qn.blob().type===yn),findFirst:be,removeByUri:un=>{r=Te(r,yn=>yn.blobUri()===un?(URL.revokeObjectURL(yn.blobUri()),!1):!0)},destroy:()=>{ve(r,un=>{URL.revokeObjectURL(un.blobUri())}),r=[]}}},xm=(r,g)=>{const B={},H=(Wn,ur)=>Wn?Wn.replace(/\/$/,"")+"/"+ur.replace(/^\//,""):ur,oe=(Wn,ur)=>new Promise((Tr,Wr)=>{const Qr=new XMLHttpRequest;Qr.open("POST",g.url),Qr.withCredentials=g.credentials,Qr.upload.onprogress=Zo=>{ur(Zo.loaded/Zo.total*100)},Qr.onerror=()=>{Wr("Image upload failed due to a XHR Transport error. Code: "+Qr.status)},Qr.onload=()=>{if(Qr.status<200||Qr.status>=300){Wr("HTTP Error: "+Qr.status);return}const Zo=JSON.parse(Qr.responseText);if(!Zo||!v(Zo.location)){Wr("Invalid JSON: "+Qr.responseText);return}Tr(H(g.basePath,Zo.location))};const lo=new FormData;lo.append("file",Wn.blob(),Wn.filename()),Qr.send(lo)}),be=A(g.handler)?g.handler:oe,Le=()=>new Promise(Wn=>{Wn([])}),Ke=(Wn,ur)=>({url:ur,blobInfo:Wn,status:!0}),ut=(Wn,ur)=>({url:"",blobInfo:Wn,status:!1,error:ur}),At=(Wn,ur)=>{To.each(B[Wn],Tr=>{Tr(ur)}),delete B[Wn]},nn=(Wn,ur,Tr)=>(r.markPending(Wn.blobUri()),new Promise(Wr=>{let Qr,lo;try{const Zo=()=>{Qr&&(Qr.close(),lo=k)},li=Co=>{Zo(),r.markUploaded(Wn.blobUri(),Co),At(Wn.blobUri(),Ke(Wn,Co)),Wr(Ke(Wn,Co))},Mi=Co=>{Zo(),r.removeFailed(Wn.blobUri()),At(Wn.blobUri(),ut(Wn,Co)),Wr(ut(Wn,Co))};lo=Co=>{Co<0||Co>100||Y.from(Qr).orThunk(()=>Y.from(Tr).map(Z)).each(yo=>{Qr=yo,yo.progressBar.value(Co)})},ur(Wn,lo).then(li,Co=>{Mi(v(Co)?{message:Co}:Co)})}catch(Zo){Wr(ut(Wn,Zo))}})),un=Wn=>Wn===oe,yn=Wn=>{const ur=Wn.blobUri();return new Promise(Tr=>{B[ur]=B[ur]||[],B[ur].push(Tr)})},Qn=(Wn,ur)=>(Wn=To.grep(Wn,Tr=>!r.isUploaded(Tr.blobUri())),Promise.all(To.map(Wn,Tr=>r.isPending(Tr.blobUri())?yn(Tr):nn(Tr,be,ur))));return{upload:(Wn,ur)=>!g.url&&un(be)?Le():Qn(Wn,ur)}},vS=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),cx=(r,g)=>xm(g,{url:vv(r),basePath:h1(r),credentials:n2(r),handler:yy(r)}),zy=r=>{const g=fF(),B=cx(r,g);return{upload:(H,oe=!0)=>B.upload(H,oe?vS(r):void 0)}},v5=(r,g)=>r.dom.isEmpty(g.dom)&&P(r.schema.getTextBlockElements()[ma(g)]),T7=r=>g=>{v5(r,g)&&ii(g,_r.fromHtml('
    '))},C7=r=>{const g=H2();let B,H;const oe=fF(),be=[],Le=Qr=>lo=>r.selection?Qr(lo):[],Ke=Qr=>Qr+(Qr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ut=(Qr,lo,Zo)=>{let li=0;do li=Qr.indexOf(lo,li),li!==-1&&(Qr=Qr.substring(0,li)+Zo+Qr.substr(li+lo.length),li+=Zo.length-lo.length+1);while(li!==-1);return Qr},At=(Qr,lo,Zo)=>{const li=`src="${Zo}"${Zo===Nr.transparentSrc?' data-mce-placeholder="1"':""}`;return Qr=ut(Qr,`src="${lo}"`,li),Qr=ut(Qr,'data-mce-src="'+lo+'"','data-mce-src="'+Zo+'"'),Qr},nn=(Qr,lo)=>{ve(r.undoManager.data,Zo=>{Zo.type==="fragmented"?Zo.fragments=ye(Zo.fragments,li=>At(li,Qr,lo)):Zo.content=At(Zo.content,Qr,lo)})},un=(Qr,lo)=>{const Zo=r.convertURL(lo,"src");nn(Qr.src,lo),Tu(_r.fromDom(Qr),{src:dl(r)?Ke(lo):lo,"data-mce-src":Zo})},yn=()=>(B||(B=cx(r,oe)),ur().then(Le(Qr=>{const lo=ye(Qr,Zo=>Zo.blobInfo);return B.upload(lo,vS(r)).then(Le(Zo=>{const li=[];let Mi=!1;const Co=ye(Zo,(yo,Vo)=>{const{blobInfo:Fi,image:la}=Qr[Vo];let bs=!1;return yo.status&&Mf(r)?(yo.url&&!tr(la.src,yo.url)&&(Mi=!0),g.removeByUri(la.src),By(r)||un(la,yo.url)):yo.error&&(yo.error.remove&&(nn(la.src,Nr.transparentSrc),li.push(la),bs=!0),lF(r,yo.error.message)),{element:la,status:yo.status,uploadUri:yo.url,blobInfo:Fi,removed:bs}});return li.length>0&&!By(r)?r.undoManager.transact(()=>{ve(xu(li),yo=>{const Vo=jc(yo);hs(yo),Vo.each(T7(r)),g.removeByUri(yo.dom.src)})}):Mi&&r.undoManager.dispatchChange(),Co}))}))),Qn=()=>$c(r)?yn():Promise.resolve([]),rr=Qr=>Oe(be,lo=>lo(Qr)),Wn=Qr=>{be.push(Qr)},ur=()=>(H||(H=g5(oe,g)),H.findAll(r.getBody(),rr).then(Le(Qr=>{const lo=Te(Qr,Zo=>v(Zo)?(d5(r,Zo),!1):Zo.uriType!=="blob");return By(r)||ve(lo,Zo=>{nn(Zo.image.src,Zo.blobInfo.blobUri()),Zo.image.src=Zo.blobInfo.blobUri(),Zo.image.removeAttribute("data-mce-src")}),lo}))),Tr=()=>{g.destroy(),oe.destroy(),H=B=null},Wr=Qr=>Qr.replace(/src="(blob:[^"]+)"/g,(lo,Zo)=>{const li=oe.getResultUri(Zo);if(li)return'src="'+li+'"';let Mi=g.getByUri(Zo);return Mi||(Mi=Ie(r.editorManager.get(),(Co,yo)=>Co||yo.editorUpload&&yo.editorUpload.blobCache.getByUri(Zo),void 0)),Mi?'src="data:'+Mi.blob().type+";base64,"+Mi.base64()+'"':lo});return r.on("SetContent",()=>{$c(r)?Qn():ur()}),r.on("RawSaveContent",Qr=>{Qr.content=Wr(Qr.content)}),r.on("GetContent",Qr=>{Qr.source_view||Qr.format==="raw"||Qr.format==="tree"||(Qr.content=Wr(Qr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",Qr=>{ve(Qr,lo=>{const Zo=lo.attr("src");if(!Zo||g.getByUri(Zo))return;const li=oe.getResultUri(Zo);li&&lo.attr("src",li)})})}),{blobCache:g,addFilter:Wn,uploadImages:yn,uploadImagesAuto:Qn,scanForImages:ur,destroy:Tr}},hF=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const oe={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Le={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Le,oe,be]:[oe,Le,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(oe,be,Le)=>ne(oe)&&oe.hasAttribute("href"),onformat:(oe,be,Le)=>{To.each(Le,(Ke,ut)=>{g.setAttrib(oe,ut,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":oe=>{var be;return(be=oe==null?void 0:oe.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return To.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),oe=>{H[oe]={block:oe,remove:"all"}}),H},A7={remove_similar:!0,inherit:!1},yS={selector:"td,th",...A7},TG={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...yS},tablecellverticalalign:{styles:{"vertical-align":"%value"},...yS},tablecellbordercolor:{styles:{borderColor:"%value"},...yS},tablecellclass:{classes:["%value"],...yS},tableclass:{selector:"table",classes:["%value"],...A7},tablecellborderstyle:{styles:{borderStyle:"%value"},...yS},tablecellborderwidth:{styles:{borderWidth:"%value"},...yS}},pF=$(TG),mF=r=>{const g={},B=Le=>P(Le)?g[Le]:g,H=Le=>Ot(g,Le),oe=(Le,Ke)=>{Le&&(v(Le)?(C(Ke)||(Ke=[Ke]),ve(Ke,ut=>{M(ut.deep)&&(ut.deep=!Gm(ut)),M(ut.split)&&(ut.split=!Gm(ut)||Ed(ut)),M(ut.remove)&&Gm(ut)&&!Ed(ut)&&(ut.remove="none"),Gm(ut)&&Ed(ut)&&(ut.mixed=!0,ut.block_expand=!0),v(ut.classes)&&(ut.classes=ut.classes.split(/\s+/))}),g[Le]=Ke):Ge(Le,(ut,At)=>{oe(At,ut)}))},be=Le=>(Le&&g[Le]&&delete g[Le],g);return oe(hF(r)),oe(pF()),oe(sw(r)),{get:B,has:H,register:oe,unregister:be}},y5=To.each,zg=cc.DOM,b5=r=>P(r)&&_(r),CG=(r,g)=>{const B=g&&g.schema||zm({}),H=(ut,At)=>{At.classes.length>0&&zg.addClass(ut,At.classes.join(" ")),zg.setAttribs(ut,At.attrs)},oe=ut=>{const At=v(ut)?{name:ut,classes:[],attrs:{}}:ut,nn=zg.create(At.name);return H(nn,At),nn},be=(ut,At)=>{const nn=B.getElementRule(ut.nodeName.toLowerCase()),un=nn==null?void 0:nn.parentsRequired;return un&&un.length?At&&ce(un,At)?At:un[0]:!1},Le=(ut,At,nn)=>{let un;const yn=At[0],Qn=b5(yn)?yn.name:void 0,rr=be(ut,Qn);if(rr)Qn===rr?(un=yn,At=At.slice(1)):un=rr;else if(yn)un=yn,At=At.slice(1);else if(!nn)return ut;const Wn=un?oe(un):zg.create("div");Wn.appendChild(ut),nn&&To.each(nn,Tr=>{const Wr=oe(Tr);Wn.insertBefore(Wr,ut)});const ur=b5(un)?un.siblings:void 0;return Le(Wn,At,ur)},Ke=zg.create("div");if(r.length>0){const ut=r[0],At=oe(ut),nn=b5(ut)?ut.siblings:void 0;Ke.appendChild(Le(At,r.slice(1),nn))}return Ke},AG=r=>{r=To.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,oe,be,Le,Ke)=>{switch(oe){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":To.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Le==="["){const ut=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ut&&(B.attrs[ut[1]]=ut[2])}return""})),B.name=g||"div",B},Afe=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),To.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=To.map(g.split(/(?:~\+|~|\+)/),AG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],MG=(r,g)=>{let B="",H=Pb(r);if(H==="")return"";const oe=yn=>v(yn)?yn.replace(/%(\w+)/g,""):"",be=(yn,Qn)=>zg.getStyle(Qn??r.getBody(),yn,!0);if(v(g)){const yn=r.formatter.get(g);if(!yn)return"";g=yn[0]}if("preview"in g){const yn=g.preview;if(yn===!1)return"";H=yn||H}let Le=g.block||g.inline||"span",Ke;const ut=Afe(g.selector);ut.length>0?(ut[0].name||(ut[0].name=Le),Le=g.selector,Ke=CG(ut,r)):Ke=CG([Le],r);const At=zg.select(Le,Ke)[0]||Ke.firstChild;y5(g.styles,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setStyle(At,Qn,rr)}),y5(g.attributes,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setAttrib(At,Qn,rr)}),y5(g.classes,yn=>{const Qn=oe(yn);zg.hasClass(At,Qn)||zg.addClass(At,Qn)}),r.dispatch("PreviewFormats"),zg.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const nn=be("fontSize"),un=/px$/.test(nn)?parseInt(nn,10):0;return y5(H.split(" "),yn=>{let Qn=be(yn,At);if(!(yn==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Qn)&&(Qn=be(yn),od(Qn).toLowerCase()==="#ffffff"))&&!(yn==="color"&&od(Qn).toLowerCase()==="#000000")){if(yn==="font-size"&&/em|%$/.test(Qn)){if(un===0)return;Qn=parseFloat(Qn)/(/%$/.test(Qn)?100:1)*un+"px"}yn==="border"&&Qn&&(B+="padding:0 2px;"),B+=yn+":"+Qn+";"}}),r.dispatch("AfterPreviewFormats"),zg.remove(Ke),B},EG=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},Dv=r=>{const g=mF(r),B=Ar({});return EG(r),Oz(r),By(r)||EP(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,oe,be)=>{AX(r,H,oe,be)},remove:(H,oe,be,Le)=>{MX(r,H,oe,be,Le)},toggle:(H,oe,be)=>{HN(r,H,oe,be)},match:(H,oe,be,Le)=>kX(r,H,oe,be,Le),closest:H=>CX(r,H),matchAll:(H,oe)=>g7(r,H,oe),matchNode:(H,oe,be,Le)=>TX(r,H,oe,be,Le),canApply:H=>rA(r,H),formatChanged:(H,oe,be,Le)=>ZN(r,B,H,oe,be,Le),getCssText:U(MG,r)}},PG=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},Mfe=(r,g,B)=>{const H=Ar(!1),oe=ut=>{u5(g,!1,B),g.add({},ut)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ut=>{const At=ut.command;PG(At)||(RN(g,B),g.beforeChange())}),r.on("ExecCommand",ut=>{const At=ut.command;PG(At)||oe(ut)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",oe),r.on("dragend",oe),r.on("keyup",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;const nn=Nr.os.isMacOS()&&ut.key==="Meta";(At>=33&&At<=36||At>=37&&At<=40||At===45||ut.ctrlKey||nn)&&(oe(),r.nodeChanged()),(At===46||At===8)&&r.nodeChanged(),H.get()&&g.typing&&!c5(s5(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;if(At>=33&&At<=36||At>=37&&At<=40||At===45){g.typing&&oe(ut);return}const nn=ut.ctrlKey&&!ut.altKey||ut.metaKey;if((At<16||At>20)&&At!==224&&At!==91&&!g.typing&&!nn){g.beforeChange(),u5(g,!0,B),g.add({},ut),H.set(!0);return}(Nr.os.isMacOS()?ut.metaKey:ut.ctrlKey&&!ut.altKey)&&g.beforeChange()}),r.on("mousedown",ut=>{g.typing&&oe(ut)});const be=ut=>ut.inputType==="insertReplacementText",Le=ut=>ut.inputType==="insertText"&&ut.data===null,Ke=ut=>ut.inputType==="insertFromPaste"||ut.inputType==="insertFromDrop";r.on("input",ut=>{ut.inputType&&(be(ut)||Le(ut)||Ke(ut))&&oe(ut)}),r.on("AddUndo Undo Redo ClearUndos",ut=>{ut.isDefaultPrevented()||r.nodeChanged()})},RG=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},bS=r=>{const g=Ts(),B=Ar(0),H=Ar(0),oe={data:[],typing:!1,beforeChange:()=>{NN(r,B,g)},add:(be,Le)=>d7(r,oe,H,B,g,be,Le),dispatchChange:()=>{r.setDirty(!0);const be=s5(r);be.bookmark=fl(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(oe.data,H.get()).getOrUndefined()})},undo:()=>h7(r,oe,B,H),redo:()=>FN(r,H,oe.data),clear:()=>{p7(r,oe,H)},reset:()=>{$N(r,oe)},hasUndo:()=>VN(r,oe,H),hasRedo:()=>m7(r,oe,H),transact:be=>UN(r,oe,B,be),ignore:be=>{jN(r,B,be)},extra:(be,Le)=>{QN(r,oe,H,be,Le)}};return By(r)||Mfe(r,oe,B),RG(r),oe},LG=[9,27,Jo.HOME,Jo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Jo.DOWN,Jo.UP,Jo.LEFT,Jo.RIGHT].concat(Nr.browser.isFirefox()?[224]:[]),M7="data-mce-placeholder",E7=r=>r.type==="keydown"||r.type==="keyup",P7=r=>{const g=r.keyCode;return g===Jo.BACKSPACE||g===Jo.DELETE},IG=r=>{if(E7(r)){const g=r.keyCode;return!P7(r)&&(Jo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(LG,g))}else return!1},DG=r=>E7(r)&&!(P7(r)||r.type==="keyup"&&r.keyCode===229),Z2=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},BG=r=>{var g;const B=r.dom,H=tu(r),oe=(g=_0(r))!==null&&g!==void 0?g:"",be=(Le,Ke)=>{if(IG(Le))return;const ut=r.getBody(),At=DG(Le)?!1:Z2(B,ut,H);(B.getAttrib(ut,M7)!==""!==At||Ke)&&(B.setAttrib(ut,M7,At?oe:null),V3(r,At),r.on(At?"keydown":"keyup",be),r.off(At?"keyup":"keydown",be))};lr(oe)&&r.on("init",Le=>{be(Le,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Ig.setEditorTimeout(r,()=>be(Ke)))})},zG=(r,g)=>({block:r,position:g}),NG=(r,g)=>({from:r,to:g}),R7=(r,g)=>{const B=_r.fromDom(r),H=_r.fromDom(g.container());return Xc(B,H).map(oe=>zG(oe,g))},FG=r=>!(El(r.to.block,r.from.block)||El(r.from.block,r.to.block)),$G=r=>!va(r.from.block,r.to.block),gF=(r,g)=>cl(g,oe=>my(oe)||pn(oe.dom),oe=>va(oe,r)).filter(Wl).getOr(r),VG=(r,g)=>{const B=_r.fromDom(r);return va(gF(B,g.from.block),gF(B,g.to.block))},UG=r=>In(r.from.block.dom)===!1&&In(r.to.block.dom)===!1,cA=r=>{const g=B=>Np(B)||Is(B.dom)||av(B);return g(r.from.block)&&g(r.to.block)},jG=(r,g,B,H)=>gn(H.position.getNode())&&!Ai(r,H.block)?Py(!1,H.block.dom).bind(oe=>oe.isEqual(H.position)?Op(B,g,oe).bind(be=>R7(g,be)):Y.some(H)).getOr(H):H,QG=(r,g,B,H)=>{const oe=R7(g,vo.fromRangeStart(H)),be=oe.bind(Le=>Op(B,g,Le.position).bind(Ke=>R7(g,Ke).map(ut=>jG(r,g,B,ut))));return zi(oe,be,NG).filter(Le=>$G(Le)&&VG(g,Le)&&UG(Le)&&cA(Le)&&FG(Le))},Efe=(r,g,B,H)=>H.collapsed?QG(r,g,B,H):Y.none(),x5=(r,g)=>{const B=vc(r);return Qe(B,H=>g.isBlock(ma(H))).fold($(B),H=>B.slice(0,H))},vF=(r,g)=>{const B=x5(r,g);return ve(B,hs),B},uA=(r,g,B)=>{const H=k1(B,g);return De(H.reverse(),oe=>Ai(r,oe)).each(hs)},HG=(r,g)=>Te(Vd(g),B=>!Ai(r,B)).length===0,ZG=(r,g,B,H,oe)=>{if(Ai(H,B))return xp(B),ph(B.dom);HG(H,oe)&&Ai(H,g)&&xc(oe,_r.fromTag("br"));const be=Up(B.dom,vo.before(oe.dom));return ve(vF(g,H),Le=>{xc(oe,Le)}),uA(H,r,g),be},qG=(r,g)=>r.isInline(ma(g)),WG=(r,g,B,H)=>{if(Ai(H,B)){if(Ai(H,g)){const Le=Pe((Ke=>{const ut=(At,nn)=>yc(At).fold(()=>nn,un=>qG(H,un)?ut(un,nn.concat(im(un))):nn);return ut(Ke,[])})(B),(Ke,ut)=>(nd(Ke,ut),ut),sv());uf(g),ii(g,Le)}return hs(B),ph(g.dom)}const oe=Ym(B.dom);return ve(vF(g,H),be=>{ii(B,be)}),uA(H,r,g),oe},rO=(r,g)=>{const B=k1(g,r);return Y.from(B[B.length-1])},oO=(r,g)=>El(g,r)?rO(g,r):Y.none(),_5=(r,g)=>{Py(r,g.dom).bind(B=>Y.from(B.getNode())).map(_r.fromDom).filter(Th).each(hs)},w5=(r,g,B,H)=>(_5(!0,g),_5(!1,B),oO(g,B).fold(U(WG,r,g,B,H),U(ZG,r,g,B,H))),q2=(r,g,B,H,oe)=>g?w5(r,H,B,oe):w5(r,B,H,oe),ux=(r,g)=>{const B=_r.fromDom(r.getBody());return Efe(r.schema,B.dom,g,r.selection.getRng()).map(oe=>()=>{q2(B,g,oe.from.block,oe.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},fA=(r,g,B)=>{const H=g.getRng();return zi(Xc(r,_r.fromDom(H.startContainer)),Xc(r,_r.fromDom(H.endContainer)),(oe,be)=>va(oe,be)?Y.none():Y.some(()=>{H.deleteContents(),q2(r,!0,oe,be,B).each(Le=>{g.setRng(Le.toRange())})})).getOr(Y.none())},O5=(r,g)=>{const B=_r.fromDom(g),H=U(va,r);return vs(B,my,H).isSome()},yF=(r,g)=>O5(r,g.startContainer)||O5(r,g.endContainer),L7=(r,g)=>{const B=Up(r.dom,vo.fromRangeStart(g)).isNone(),H=Sp(r.dom,vo.fromRangeEnd(g)).isNone();return!yF(r,g)&&B&&H},I7=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),bF=r=>{const g=_r.fromDom(r.getBody()),B=r.selection.getRng();return L7(g,B)?I7(r):fA(g,r.selection,r.schema)},dA=(r,g)=>r.selection.isCollapsed()?Y.none():bF(r),Ng=(r,g,B,H,oe)=>Y.from(g._selectionOverrides.showCaret(r,B,H,oe)),xF=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},xS=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(xF(g)),_F=(r,g,B)=>{const H=Yd(1,r.getBody(),g),oe=vo.fromRangeStart(H),be=oe.getNode();if(v2(be))return Ng(1,r,be,!oe.isAtEnd(),!1);const Le=oe.getNode(!0);if(v2(Le))return Ng(1,r,Le,!1,!1);const Ke=z2(r.dom.getRoot(),oe.getNode());return v2(Ke)?Ng(1,r,Ke,!1,B):Y.none()},_S=(r,g,B)=>g.collapsed?_F(r,g,B).getOr(g):g,wF=r=>I2(r)||Y3(r),OF=r=>D2(r)||X3(r),SF=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},D7=(r,g,B,H,oe,be)=>{Ng(H,r,be.getNode(!oe),oe,!0).each(Le=>{if(g.collapsed){const Ke=g.cloneRange();oe?Ke.setEnd(Le.startContainer,Le.startOffset):Ke.setStart(Le.endContainer,Le.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Le)}),SF(r.dom,B)},fx=(r,g)=>{const B=r.selection.getRng();if(!Mt(B.commonAncestorContainer))return Y.none();const H=g?Ef.Forwards:Ef.Backwards,oe=k0(r.getBody()),be=U(Z4,g?oe.next:oe.prev),Le=g?wF:OF,Ke=xw(H,r.getBody(),B),ut=be(Ke),At=ut&&Gu(g,ut);if(!At||!p3(Ke,At))return Y.none();if(Le(At))return Y.some(()=>D7(r,B,Ke.getNode(),H,g,At));const nn=be(At);return nn&&Le(nn)&&p3(At,nn)?Y.some(()=>D7(r,B,Ke.getNode(),H,g,nn)):Y.none()},Ny=(r,g)=>fx(r,g),Fg=(r,g)=>{const B=r.getBody();return g?ph(B).filter(I2):Ym(B).filter(D2)},B7=r=>{const g=r.selection.getRng();return!g.collapsed&&(Fg(r,!0).exists(B=>B.isEqual(vo.fromRangeStart(g)))||Fg(r,!1).exists(B=>B.isEqual(vo.fromRangeEnd(g))))},YG=r=>P(r)&&(my(_r.fromDom(r))||av(_r.fromDom(r))),$g=kl.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),XG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},GG=(r,g,B,H,oe)=>{const be=Le=>oe.isInline(Le.nodeName.toLowerCase())&&!hm(B,H,r);return d3(!g,B).fold(()=>d3(g,H).fold(re,be),be)},kF=(r,g,B,H,oe)=>{const be=oe.getNode(!B);return Xc(_r.fromDom(g),_r.fromDom(H.getNode())).map(Le=>Ai(r,Le)?$g.remove(Le.dom):$g.moveToElement(be)).orThunk(()=>Y.some($g.moveToElement(be)))},TF=(r,g,B,H)=>Op(g,r,B).bind(oe=>YG(oe.getNode())||GG(r,g,B,oe,H)?Y.none():g&&In(oe.getNode())||!g&&In(oe.getNode(!0))?kF(H,r,g,B,oe):g&&D2(B)||!g&&I2(B)?Y.some($g.moveToPosition(oe)):Y.none()),KG=(r,g)=>T(g)?Y.none():r&&In(g.nextSibling)?Y.some($g.moveToElement(g.nextSibling)):!r&&In(g.previousSibling)?Y.some($g.moveToElement(g.previousSibling)):Y.none(),JG=(r,g,B)=>B.fold(H=>Y.some($g.remove(H)),H=>Y.some($g.moveToElement(H)),H=>hm(g,H,r)?Y.none():Y.some($g.moveToPosition(H))),eK=(r,g,B,H)=>XG(g,B)?KG(g,B.getNode(!g)).orThunk(()=>TF(r,g,B,H)):TF(r,g,B,H).bind(oe=>JG(r,B,oe)),tK=(r,g,B,H)=>{const oe=Yd(g?1:-1,r,B),be=vo.fromRangeStart(oe),Le=_r.fromDom(r);return!g&&D2(be)?Y.some($g.remove(be.getNode(!0))):g&&I2(be)?Y.some($g.remove(be.getNode())):!g&&I2(be)&&u6(Le,be,H)?TB(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):g&&D2(be)&&kB(Le,be,H)?Ra(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):eK(r,g,be,H)},nK=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B)),!0),z7=(r,g)=>B=>{const H=g?vo.before(B):vo.after(B);return r.selection.setRng(H.toRange()),!0},N7=r=>g=>(r.selection.setRng(g.toRange()),!0),F7=(r,g)=>Y.from(z2(r.getBody(),g)),rK=(r,g)=>{const B=r.selection.getNode();return F7(r,B).filter(In).fold(()=>tK(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(nK(r,g),z7(r,g),N7(r))),()=>Y.some(k))},oK=r=>{ve(Pl(r,".mce-offscreen-selection"),hs)},CF=(r,g)=>{const B=r.selection.getNode();return In(B)&&!Ir(B)?F7(r,B.parentNode).filter(In).fold(()=>Y.some(()=>{oK(_r.fromDom(r.getBody())),T0(r,g,_r.fromDom(r.selection.getNode())),J3(r)}),()=>Y.some(k)):B7(r)?Y.some(()=>{$w(r,r.selection.getRng(),_r.fromDom(r.getBody()))}):Y.none()},$7=r=>{const g=r.dom,B=r.selection,H=z2(r.getBody(),B.getNode());if(pn(H)&&g.isBlock(H)&&g.isEmpty(H)){const oe=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(oe),B.setRng(vo.before(oe).toRange())}return!0},S5=(r,g)=>r.selection.isCollapsed()?rK(r,g):CF(r,g),V7=r=>r.hasOwnProperty("text"),U7=r=>r.hasOwnProperty("marker"),hA=(r,g)=>{const B=(be,Le)=>{if(Mt(be))return{text:be,offset:Le};{const Ke=g(),ut=be.childNodes;return Le{var g,B;const{start:H,end:oe}=r,be=new window.Range;return V7(H)?be.setStart(H.text,H.offset):U7(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),V7(oe)?be.setEnd(oe.text,oe.offset):U7(oe)&&(oe.before?be.setEndBefore(oe.marker):be.setEndAfter(oe.marker),(B=oe.marker.parentNode)===null||B===void 0||B.removeChild(oe.marker)),be},j7=(r,g)=>{var B;const H=r.dom,oe=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Le=r.getBody();if(((B=oe==null?void 0:oe.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&oe&&be&&oe===Le.firstChild&&be===Le.lastChild&&!H.isEmpty(Le)){const ut=oe.cloneNode(!1),At=()=>{if(g?B2(r):p6(r),Le.firstChild!==oe){const nn=hA(r.selection.getRng(),()=>document.createElement("span"));Array.from(Le.childNodes).forEach(un=>ut.appendChild(un)),Le.appendChild(ut),r.selection.setRng(AF(nn))}};return Y.some(At)}return Y.none()},Fy=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Op(g,r.getBody(),B).filter(H=>g?vW(H):ha(H)).bind(H=>H4(g?0:-1,H)).map(H=>()=>r.selection.select(H))},Vg=(r,g)=>r.selection.isCollapsed()?Fy(r,g):Y.none(),dx=Mt,Q7=r=>dx(r)&&r.data[0]===Ou,k5=r=>dx(r)&&r.data[r.data.length-1]===Ou,H7=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(Ou)},MF=r=>{var g;if(dx(r.previousSibling))return k5(r.previousSibling)||r.previousSibling.appendData(Ou),r.previousSibling;if(dx(r))return Q7(r)||r.insertData(0,Ou),r;{const B=H7(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},EF=r=>{var g,B;if(dx(r.nextSibling))return Q7(r.nextSibling)||r.nextSibling.insertData(0,Ou),r.nextSibling;if(dx(r))return k5(r)||r.appendData(Ou),r;{const H=H7(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},T5=(r,g)=>r?MF(g):EF(g),PF=U(T5,!0),RF=U(T5,!1),C5=(r,g)=>Mt(r.container())?T5(g,r.container()):T5(g,r.getNode()),pA=(r,g)=>{const B=g.get();return B&&r.container()===B&&_p(B)},Z7=(r,g)=>g.fold(B=>{$b(r.get());const H=PF(B);return r.set(H),Y.some(vo(H,H.length-1))},B=>ph(B).map(H=>{if(pA(H,r)){const oe=r.get();return vo(oe,1)}else{$b(r.get());const oe=C5(H,!0);return r.set(oe),vo(oe,1)}}),B=>Ym(B).map(H=>{if(pA(H,r)){const oe=r.get();return vo(oe,oe.length-1)}else{$b(r.get());const oe=C5(H,!1);return r.set(oe),vo(oe,oe.length-1)}}),B=>{$b(r.get());const H=RF(B);return r.set(H),Y.some(vo(H,1))}),LF=(r,g)=>{for(let B=0;B{const B=My(g,r);return B||r},DF=(r,g,B)=>{const H=QB(B),oe=IF(g,H.container());return ox(r,oe,H).fold(()=>Sp(oe,H).bind(U(ox,r,oe)).map(be=>Zp.before(be)),Y.none)},iK=(r,g)=>jb(r,g)===null,BF=(r,g,B)=>ox(r,g,B).filter(U(iK,g)),q7=(r,g,B)=>{const H=HB(B);return BF(r,g,H).bind(oe=>Up(oe,H).isNone()?Y.some(Zp.start(oe)):Y.none())},aK=(r,g,B)=>{const H=QB(B);return BF(r,g,H).bind(oe=>Sp(oe,H).isNone()?Y.some(Zp.end(oe)):Y.none())},sK=(r,g,B)=>{const H=HB(B),oe=IF(g,H.container());return ox(r,oe,H).fold(()=>Up(oe,H).bind(U(ox,r,oe)).map(be=>Zp.after(be)),Y.none)},zF=r=>!$B(W7(r)),$y=(r,g,B)=>LF([DF,q7,aK,sK],[r,g,B]).filter(zF),W7=r=>r.fold(Q,Q,Q,Q),NF=r=>r.fold($("before"),$("start"),$("end"),$("after")),mA=r=>r.fold(Zp.before,Zp.before,Zp.after,Zp.after),wS=r=>r.fold(Zp.start,Zp.start,Zp.end,Zp.end),Y7=(r,g)=>NF(r)===NF(g)&&W7(r)===W7(g),lK=(r,g,B,H,oe,be)=>zi(ox(g,B,H),ox(g,B,oe),(Le,Ke)=>Le!==Ke&&UB(B,Le,Ke)?Zp.after(r?Le:Ke):be).getOr(be),cK=(r,g)=>r.fold(q,B=>!Y7(B,g)),uK=(r,g,B,H,oe)=>{const be=Gu(r,oe);return Op(r,B,be).map(U(Gu,r)).fold(()=>H.map(mA),ut=>$y(g,B,ut).map(U(lK,r,g,B,be,ut)).filter(U(cK,H))).filter(zF)},fK=(r,g)=>r?g.fold(I(Y.some,Zp.start),Y.none,I(Y.some,Zp.after),Y.none):g.fold(Y.none,I(Y.some,Zp.before),Y.none,I(Y.some,Zp.end)),FF=(r,g,B,H)=>{const oe=Gu(r,H),be=$y(g,B,oe);return $y(g,B,oe).bind(U(fK,r)).orThunk(()=>uK(r,g,B,be,H))},dK=r=>A(r.selection.getSel().modify),$F=(r,g,B)=>{const H=r?1:-1;return g.setRng(vo(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},X7=(r,g)=>{const B=g.selection.getRng(),H=r?vo.fromRangeEnd(B):vo.fromRangeStart(B);return dK(g)?r&&s1(H)?$F(!0,g.selection,H):!r&&Um(H)?$F(!1,g.selection,H):!1:!1};var Vy;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Vy||(Vy={}));const gA=(r,g)=>r===Ef.Backwards?ke(g):g,hK=(r,g,B)=>r===Ef.Forwards?g.next(B):g.prev(B),pK=(r,g,B,H)=>gn(H.getNode(g===Ef.Forwards))?Vy.Br:hm(B,H)===!1?Vy.Block:Vy.Wrap,VF=(r,g,B,H)=>{const oe=k0(B);let be=H;const Le=[];for(;be;){const Ke=hK(g,oe,be);if(!Ke)break;if(gn(Ke.getNode(!1)))return g===Ef.Forwards?{positions:gA(g,Le).concat([Ke]),breakType:Vy.Br,breakAt:Y.some(Ke)}:{positions:gA(g,Le),breakType:Vy.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ut=pK(B,g,be,Ke);return{positions:gA(g,Le),breakType:ut,breakAt:Y.some(Ke)}}Le.push(Ke),be=Ke}return{positions:gA(g,Le),breakType:Vy.Eol,breakAt:Y.none()}},UF=(r,g,B,H)=>g(B,H).breakAt.map(oe=>{const be=g(B,oe).positions;return r===Ef.Backwards?be.concat(oe):[oe].concat(be)}).getOr([]),G7=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),oe=>zi(Ye(oe.getClientRects()),Ye(H.getClientRects()),(be,Le)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Le.left)<=Ke?H:oe}).or(B)),Y.none()),iO=(r,g)=>Ye(g.getClientRects()).bind(B=>G7(r,B.left)),W2=U(VF,vo.isAbove,-1),A5=U(VF,vo.isBelow,1),jF=U(UF,-1,W2),M5=U(UF,1,A5),QF=(r,g)=>W2(r,g).breakAt.isNone(),HF=(r,g)=>A5(r,g).breakAt.isNone(),mK=r=>ph(r).map(g=>[g].concat(A5(r,g).positions)).getOr([]),gK=r=>Ym(r).map(g=>W2(r,g).positions.concat(g)).getOr([]),vK=(r,g)=>iO(jF(r,g),g),yK=(r,g)=>iO(M5(r,g),g),bK=In,ZF=(r,g)=>Math.abs(r.left-g),qF=(r,g)=>Math.abs(r.right-g),xK=r=>cn(r,"node"),WF=(r,g)=>it(r,(B,H)=>{const oe=Math.min(ZF(B,g),qF(B,g)),be=Math.min(ZF(H,g),qF(H,g));return be===oe&&xK(H)&&bK(H.node)||be{const g=B=>ye(B,H=>{const oe=l1(H);return oe.node=r,oe});if(ne(r))return g(r.getClientRects());if(Mt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},I0=r=>$e(r,Pfe);var aO;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(aO||(aO={}));const YF=(r,g,B,H)=>{let oe=H;for(;oe=y2(oe,r,Cb,g);)if(B(oe))return},K7=(r,g,B,H,oe,be)=>{let Le=0;const Ke=[],ut=un=>{let yn=I0([un]);r===-1&&(yn=yn.reverse());for(let Qn=0;Qn0&&g(rr,Bt(Ke))&&Le++,rr.line=Le,oe(rr))return!0;Ke.push(rr)}}return!1},At=Bt(be.getClientRects());if(!At)return Ke;const nn=be.getNode();return nn&&(ut(nn),YF(r,H,ut,nn)),Ke},_K=(r,g)=>g.line>r,XF=(r,g)=>g.line===r,wK=U(K7,aO.Up,lv,fc),GF=U(K7,aO.Down,fc,lv),KF=r=>Bt(r.getClientRects()),OK=(r,g,B,H)=>{const oe=k0(g);let be,Le,Ke,ut;const At=[];let nn=0;r===1?(be=oe.next,Le=fc,Ke=lv,ut=vo.after(H)):(be=oe.prev,Le=lv,Ke=fc,ut=vo.before(H));const un=KF(ut);do{if(!ut.isVisible())continue;const yn=KF(ut);if(Ke(yn,un))continue;At.length>0&&Le(yn,Bt(At))&&nn++;const Qn=l1(yn);if(Qn.position=ut,Qn.line=nn,B(Qn))return At;At.push(Qn)}while(ut=be(ut));return At},JF=r=>g=>_K(r,g),Y2=r=>g=>XF(r,g),Uy=(r,g)=>{r.selection.setRng(g),kk(r,r.selection.getRng())},vA=(r,g,B)=>Y.some(_S(r,g,B)),J7=(r,g,B,H,oe,be)=>{const Le=g===Ef.Forwards,Ke=k0(r.getBody()),ut=U(Z4,Le?Ke.next:Ke.prev),At=Le?H:oe;if(!B.collapsed){const rr=Ah(B);if(be(rr))return Ng(g,r,rr,g===Ef.Backwards,!1);if(B7(r)){const Wn=B.cloneRange();return Wn.collapse(g===Ef.Backwards),Y.from(Wn)}}const nn=xw(g,r.getBody(),B);if(At(nn))return xS(r,nn.getNode(!Le));let un=ut(nn);const yn=Sb(B);if(un)un=Gu(Le,un);else return yn?Y.some(B):Y.none();if(At(un))return Ng(g,r,un.getNode(!Le),Le,!1);const Qn=ut(un);return Qn&&At(Qn)&&p3(un,Qn)?Ng(g,r,Qn.getNode(!Le),Le,!1):yn?vA(r,un.toRange(),!1):Y.none()},yA=(r,g,B,H,oe,be)=>{const Le=xw(g,r.getBody(),B),Ke=Bt(Le.getClientRects()),ut=g===aO.Down,At=r.getBody();if(!Ke)return Y.none();if(B7(r)){const ur=ut?vo.fromRangeEnd(B):vo.fromRangeStart(B);return(ut?yK:vK)(At,ur).orThunk(()=>Y.from(ur)).map(Wr=>Wr.toRange())}const un=(ut?GF:wK)(At,JF(1),Le),yn=Te(un,Y2(1)),Qn=Ke.left,rr=WF(yn,Qn);if(rr&&be(rr.node)){const ur=Math.abs(Qn-rr.left),Tr=Math.abs(Qn-rr.right);return Ng(g,r,rr.node,ur_S(r,ur.toRange(),!1)):Y.none()},e9=(r,g)=>{const B=r.selection.getRng(),H=g?vo.fromRangeEnd(B):vo.fromRangeStart(B),oe=f3(H.container(),r.getBody());if(g){const be=A5(oe,H);return Je(be.positions)}else{const be=W2(oe,H);return Ye(be.positions)}},e$=(r,g,B)=>e9(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),bA=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},t$=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},SK=(r,g,B)=>Z7(g,B).map(H=>(bA(r,H),B)),Rfe=(r,g,B)=>{const H=vo.fromRangeStart(r);if(r.collapsed)return H;{const oe=vo.fromRangeEnd(r);return B?Up(g,oe).getOr(oe):Sp(g,H).getOr(H)}},Lfe=(r,g,B)=>{const H=r.getBody(),oe=Rfe(r.selection.getRng(),H,B),be=U(Nw,r);return FF(B,be,H,oe).bind(Ke=>SK(r,g,Ke))},P1=(r,g,B)=>{const H=ye(Pl(_r.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Le=>Le.dom),oe=Te(H,r),be=Te(B,r);ve(Re(oe,be),U(t$,!1)),ve(Re(be,oe),U(t$,!0))},kK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=vo.fromRangeStart(r.selection.getRng());vo.isTextPosition(H)&&!jB(H)&&(bA(r,mC(B,H)),g.set(null))}},TK=(r,g,B,H)=>{if(g.selection.isCollapsed()){const oe=Te(H,r);ve(oe,be=>{const Le=vo.fromRangeStart(g.selection.getRng());$y(r,g.getBody(),Le).bind(Ke=>SK(g,B,Ke))})}},X2=(r,g,B)=>Zm(r)?Lfe(r,g,B).isSome():!1,t9=(r,g,B)=>Zm(g)?X7(r,g):!1,CK=r=>{const g=Ar(null),B=U(Nw,r);return r.on("NodeChange",H=>{Zm(r)&&(P1(B,r.dom,H.parents),kK(r,g),TK(B,r,g,H.parents))}),g},xA=U(t9,!0),AK=U(t9,!1),_A=(r,g,B)=>{if(Zm(r)){const H=e9(r,g).getOrThunk(()=>{const oe=r.selection.getRng();return g?vo.fromRangeEnd(oe):vo.fromRangeStart(oe)});return $y(U(Nw,r),r.getBody(),H).exists(oe=>{const be=mA(oe);return Z7(B,be).exists(Le=>(bA(r,Le),!0))})}else return!1},MK=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},EK=r=>zi(ph(r),Ym(r),(g,B)=>{const H=Gu(!0,g),oe=Gu(!1,B);return Sp(r,H).forall(be=>be.isEqual(oe))}).getOr(!0),n9=(r,g)=>B=>Z7(g,B).map(H=>()=>bA(r,H)),n$=(r,g,B,H)=>{const oe=r.getBody(),be=U(Nw,r);r.undoManager.ignore(()=>{r.selection.setRng(MK(B,H)),p6(r),$y(be,oe,vo.fromRangeStart(r.selection.getRng())).map(wS).bind(n9(r,g)).each(K)}),r.nodeChanged()},hx=(r,g)=>{const B=My(g,r);return B||r},PK=(r,g,B,H)=>{const oe=hx(r.getBody(),H.container()),be=U(Nw,r),Le=$y(be,oe,H);return Le.bind(ut=>B?ut.fold($(Y.some(wS(ut))),Y.none,$(Y.some(mA(ut))),Y.none):ut.fold(Y.none,$(Y.some(mA(ut))),Y.none,$(Y.some(wS(ut))))).map(n9(r,g)).getOrThunk(()=>{const ut=Ub(B,oe,H),At=ut.bind(nn=>$y(be,oe,nn));return zi(Le,At,()=>ox(be,oe,H).bind(nn=>EK(nn)?Y.some(()=>{T0(r,B,_r.fromDom(nn))}):Y.none())).getOrThunk(()=>At.bind(()=>ut.map(nn=>()=>{B?n$(r,g,H,nn):n$(r,g,nn,H)})))})},r9=(r,g,B)=>{if(r.selection.isCollapsed()&&Zm(r)){const H=vo.fromRangeStart(r.selection.getRng());return PK(r,g,B,H)}return Y.none()},RK=r=>Nu(r)>1,r$=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_r.fromDom(r.selection.getStart()),oe=k1(H,B);return Qe(oe,g).fold($(oe),be=>oe.slice(0,be))},LK=r=>Nu(r)===1,o9=r=>r$(r,g=>r.schema.isBlock(ma(g))||RK(g)),i9=r=>r$(r,g=>r.schema.isBlock(ma(g))),wA=(r,g)=>{const B=U(E6,r);return $e(g,H=>B(H)?[H.dom]:[])},a9=r=>{const g=i9(r);return wA(r,g)},o$=(r,g,B,H)=>{const oe=wA(g,H);if(oe.length===0)T0(g,r,B);else{const be=Sz(B.dom,oe);g.selection.setRng(be.toRange())}},i$=(r,g)=>{const B=Te(o9(r),LK);return Je(B).bind(H=>{const oe=vo.fromRangeStart(r.selection.getRng());return Fw(g,oe,H.dom)&&!dk(H)?Y.some(()=>o$(g,r,H,B)):Y.none()})},IK=(r,g)=>{const B=g.parentElement;return gn(g)&&!x(B)&&r.dom.isEmpty(B)},E5=r=>dk(_r.fromDom(r)),P5=(r,g)=>{const B=r.selection.getStart(),H=IK(r,B)||E5(B)?Sz(B,g):vY(r.selection.getRng(),g);r.selection.setRng(H.toRange())},a$=(r,g)=>{const B=Re(g,a9(r));B.length>0&&P5(r,B)},s9=r=>Mt(r.startContainer),s$=r=>r.startOffset===0&&s9(r),l$=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&E6(r,_r.fromDom(B))},OA=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},l9=r=>{const g=r.endContainer;return r.endOffset===(Mt(g)?g.length:g.childNodes.length)},R5=r=>OA(r)&&l9(r),DK=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),c$=r=>R5(r)||DK(r),BK=r=>{const g=r.selection.getRng();return s$(g)&&l$(r,g)&&c$(g)},zK=r=>{if(BK(r)){const g=a9(r);return Y.some(()=>{p6(r),a$(r,g)})}else return Y.none()},SA=(r,g)=>r.selection.isCollapsed()?i$(r,g):zK(r),NK=(r,g)=>Vf(r,B=>Xm(B.dom),B=>g.isBlock(ma(B))),u$=r=>NK(_r.fromDom(r.selection.getStart()),r.schema),Ife=r=>{const g=r.selection.getRng();return g.collapsed&&(s9(g)||r.dom.isEmpty(g.startContainer))&&!u$(r)},L5=r=>(Ife(r)&&P5(r,[]),!0),c9=(r,g,B)=>P(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B))}):Y.none(),FK=(r,g)=>{const B=g?Y3:X3,H=g?Ef.Forwards:Ef.Backwards,oe=xw(H,r.getBody(),r.selection.getRng());return B(oe)?c9(r,g,oe.getNode(!g)):Y.from(Gu(g,oe)).filter(be=>B(be)&&p3(oe,be)).bind(be=>c9(r,g,be.getNode(!g)))},$K=(r,g)=>{const B=r.selection.getNode();return Gr(B)?c9(r,g,B):Y.none()},u9=(r,g)=>r.selection.isCollapsed()?FK(r,g):$K(r,g),VK=r=>cl(r,g=>pn(g.dom)||In(g.dom)).exists(g=>pn(g.dom)),f9=r=>eo(r??"").getOr(0),f$=(r,g)=>{const B=r||$m(g)?"margin":"padding",H=rs(g,"direction")==="rtl"?"-right":"-left";return B+H},d$=(r,g,B,H,oe,be)=>{const Le=f$(B,_r.fromDom(be)),Ke=f9(r.getStyle(be,Le));if(g==="outdent"){const ut=Math.max(0,Ke-H);r.setStyle(be,Le,ut?ut+oe:"")}else{const ut=Ke+H+oe;r.setStyle(be,Le,ut)}},UK=(r,g)=>Oe(g,B=>{const H=f$(by(r),B),oe=Ri(B,H).map(f9).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&oe>0}),G2=r=>{const g=p9(r);return!r.mode.isReadOnly()&&(g.length>1||UK(r,g))},d9=r=>d0(r)||av(r),h9=r=>jc(r).exists(d9),p9=r=>Te(xu(r.selection.getSelectedBlocks()),g=>!d9(g)&&!h9(g)&&VK(g)),kA=(r,g)=>{var B,H;const{dom:oe}=r,be=x0(r),Le=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=f9(be),ut=by(r);ve(p9(r),At=>{d$(oe,g,ut,Ke,Le,At.dom)})},K2=r=>kA(r,"indent"),m9=r=>kA(r,"outdent"),Ug=r=>{if(r.selection.isCollapsed()&&G2(r)){const g=r.dom,B=r.selection.getRng(),H=vo.fromRangeStart(B),oe=g.getParent(B.startContainer,g.isBlock);if(oe!==null&&Ka(_r.fromDom(oe),H,r.schema))return Y.some(()=>m9(r))}return Y.none()},J2=(r,g,B)=>Fe([Ug,S5,Ny,(H,oe)=>r9(H,g,oe),ux,$k,Vg,u9,dA,SA,j7],H=>H(r,B)).filter(H=>r.selection.isEditable()),g9=(r,g)=>{J2(r,g,!1).fold(()=>{r.selection.isEditable()&&(p6(r),J3(r))},K)},jK=(r,g)=>{J2(r,g,!0).fold(()=>{r.selection.isEditable()&&B2(r)},K)},h$=(r,g)=>{r.addCommand("delete",()=>{g9(r,g)}),r.addCommand("forwardDelete",()=>{jK(r,g)})},p$=5,QK=400,m$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),HK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>p$||H>p$},ZK=r=>{const g=Ts(),B=Ar(!1),H=jh(oe=>{r.dispatch("longpress",{...oe,type:"longpress"}),B.set(!0)},QK);r.on("touchstart",oe=>{m$(oe).each(be=>{H.cancel();const Le={x:be.clientX,y:be.clientY,target:oe.target};H.throttle(oe),B.set(!1),g.set(Le)})},!0),r.on("touchmove",oe=>{H.cancel(),m$(oe).each(be=>{g.on(Le=>{HK(be,Le)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",oe=>{H.cancel(),oe.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(oe.target)).each(()=>{B.get()?oe.preventDefault():r.dispatch("tap",{...oe,type:"tap"})})},!0)},TA=(r,g)=>Ot(r,g.nodeName),qK=(r,g)=>Mt(g)?!0:ne(g)?!TA(r.getBlockElements(),g)&&!pm(g)&&!lh(r,g)&&!ys(g):!1,WK=(r,g,B)=>de(wB(_r.fromDom(B),_r.fromDom(g)),H=>TA(r,H.dom)),OS=(r,g)=>{if(Mt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||TA(r,g.nextSibling)||ys(g.nextSibling)}return!1},SS=r=>r.dom.create(tu(r),qd(r)),g$=r=>{const g=r.dom,B=r.selection,H=r.schema,oe=H.getBlockElements(),be=B.getStart(),Le=r.getBody();let Ke,ut,At=null;const nn=tu(r);if(!be||!ne(be))return;const un=Le.nodeName.toLowerCase();if(!H.isValidChild(un,nn.toLowerCase())||WK(oe,Le,be))return;if(Le.firstChild===Le.lastChild&&gn(Le.firstChild)){Ke=SS(r),Ke.appendChild(sv().dom),Le.replaceChild(Ke,Le.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let yn=Le.firstChild;for(;yn;)if(ne(yn)&&ul(H,yn),qK(H,yn)){if(OS(oe,yn)){ut=yn,yn=yn.nextSibling,g.remove(ut);continue}if(!Ke){if(!At&&r.hasFocus()&&(At=hA(r.selection.getRng(),()=>document.createElement("span"))),!yn.parentNode){yn=null;break}Ke=SS(r),Le.insertBefore(Ke,yn)}ut=yn,yn=yn.nextSibling,Ke.appendChild(ut)}else Ke=null,yn=yn.nextSibling;At&&(r.selection.setRng(AF(At)),r.nodeChanged())},v9=(r,g,B)=>{const H=_r.fromDom(SS(r)),oe=sv();ii(H,oe),B(g,H);const be=document.createRange();return be.setStartBefore(oe.dom),be.setEndBefore(oe.dom),be},y9=r=>{r.on("NodeChange",()=>g$(r))},v$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,YK=(r,g,B)=>function(H){const oe=arguments,be=oe[oe.length-2],Le=be>0?g.charAt(be-1):"";if(Le==='"')return H;if(Le===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof oe[1]=="string"?oe[1]:oe[0])+""},XK=(r,g,B)=>{let H=g.length,oe=B.content;if(B.format!=="raw"){for(;H--;)oe=oe.replace(g[H],YK(r,oe,pw(r)));B.content=oe}},GK=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),KK=r=>{const g="contenteditable",B=" "+To.trim(mw(r))+" ",H=" "+To.trim(pw(r))+" ",oe=v$(B),be=v$(H),Le=wp(r);Le.length>0&&r.on("BeforeSetContent",Ke=>{XK(r,Le,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];oe(At)?At.attr(g,"true"):be(At)&&At.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];if(!oe(At)&&!be(At))continue;const nn=At.attr("data-mce-content");Le.length>0&&nn?GK(Le,nn)?(At.name="#text",At.type=3,At.raw=!0,At.value=nn):At.remove():At.attr(g,null)}})},JK=r=>wi(_r.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),y$=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ch(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},b$=(r,g)=>{const B=JK(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),y$(r,B);return}GO(B)&&(y$(r,B),r.undoManager.add())}},eJ=r=>{r.on("keyup compositionstart",U(b$,r))},x$=In,jg=(r,g,B)=>J7(g,r,B,I2,D2,x$),tJ=(r,g,B)=>yA(g,r,B,be=>I2(be)||_B(be),be=>D2(be)||Ek(be),x$),b9=r=>{const g=r.dom.create(tu(r));return g.innerHTML='
    ',g},x9=(r,g,B)=>{const H=k0(r.getBody()),oe=U(Z4,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!oe(vo.fromRangeStart(B))){const Ke=_r.fromDom(b9(r));g===1?Kc(_r.fromDom(be),Ke):xc(_r.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},_9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return jg(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},nJ=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return tJ(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},rJ=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return $B(B)?!g:g},_$=(r,g)=>_9(r,rJ(r.selection,g)).exists(B=>(Uy(r,B),!0)),w$=(r,g)=>nJ(r,g).exists(B=>(Uy(r,B),!0)),O$=(r,g)=>e$(r,g,g?D2:I2),I5=(r,g)=>Fg(r,!g).map(B=>{const H=B.toRange(),oe=r.selection.getRng();return g?H.setStart(oe.startContainer,oe.startOffset):H.setEnd(oe.endContainer,oe.endOffset),H}).exists(B=>(Uy(r,B),!0)),oJ=r=>ce(["figcaption"],ma(r)),iJ=(r,g,B)=>{const H=U(va,g);return cl(_r.fromDom(r.container()),oe=>B.isBlock(ma(oe)),H).filter(oJ)},D5=(r,g,B)=>g?HF(r.dom,B):QF(r.dom,B),px=(r,g)=>{const B=_r.fromDom(r.getBody()),H=vo.fromRangeStart(r.selection.getRng());return iJ(H,B,r.schema).exists(()=>{if(D5(B,g,H)){const be=v9(r,B,g?ii:jd);return r.selection.setRng(be),!0}else return!1})},e_=(r,g)=>r.selection.isCollapsed()?px(r,g):!1,CA=(r,g,B)=>{const H=r.selection.getRng(),oe=vo.fromRangeStart(H);return r.getBody().firstChild===g&&QF(B,oe)?(r.execCommand("InsertNewBlockBefore"),!0):!1},w9=(r,g)=>{const B=r.selection.getRng(),H=vo.fromRangeStart(B);return r.getBody().lastChild===g&&HF(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},O9=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>w9(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>CA(r,H,B))).getOr(!1),S9=(r,g)=>O9(r,g),S$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},k$=r=>ye(r,g=>({...S$,...g})),T$=r=>ye(r,g=>({...S$,...g})),C$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,aJ=(r,g)=>$e(k$(r),B=>C$(B,g)?[B]:[]),sJ=(r,g)=>$e(T$(r),B=>C$(B,g)?[B]:[]),$a=(r,...g)=>()=>r.apply(null,g),B5=(r,g)=>De(aJ(r,g),B=>B.action()),A$=(r,g)=>Fe(sJ(r,g),B=>B.action()),k9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return J7(r,B,H,Y3,X3,Gr).exists(oe=>(Uy(r,oe),!0))},T9=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return yA(r,B,H,Y3,X3,Gr).exists(oe=>(Uy(r,oe),!0))},lJ=(r,g)=>e$(r,g,g?X3:Y3),cJ=kl.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),z5={...cJ,none:r=>cJ.none(r)},Dfe=(r,g)=>uJ(r,g,q),uJ=(r,g,B)=>$e(vc(r),H=>yd(H,g)?B(H)?[H]:[]:uJ(H,g,B)),fJ=(r,g,B=re)=>{if(B(g))return Y.none();if(ce(r,ma(g)))return Y.some(g);const H=oe=>yd(oe,"table")||B(oe);return ts(g,r.join(","),H)},dJ=(r,g)=>fJ(["td","th"],r,g),Bfe=r=>Dfe(r,"th,td"),M$=(r,g)=>bu(r,"table",g),Tp=(r,g,B,H,oe=q)=>{const be=H===1;if(!be&&B<=0)return z5.first(r[0]);if(be&&B>=r.length-1)return z5.last(r[r.length-1]);{const Le=B+H,Ke=r[Le];return oe(Ke)?z5.middle(g,Ke):Tp(r,g,Le,H,oe)}},C9=(r,g)=>M$(r,g).bind(B=>{const H=Bfe(B);return Qe(H,be=>va(r,be)).map(be=>({index:be,all:H}))}),N5=(r,g,B)=>C9(r,B).fold(()=>z5.none(r),oe=>Tp(oe.all,r,oe.index,1,g)),hJ=(r,g,B)=>C9(r,B).fold(()=>z5.none(),oe=>Tp(oe.all,r,oe.index,-1,g)),E$=r=>iv(r).filter(g=>g.trim().length!==0||g.indexOf(Pc)>-1).isSome(),P$=r=>Al(r)&&gu(r,"contenteditable")==="false",A9=["img","br"],pJ=r=>E$(r)||ce(A9,ma(r))||P$(r),mJ=r=>Qc(r,pJ),R$=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),gJ=(r,g)=>$e(g,B=>{const H=R$(l1(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),vJ=(r,g,B)=>Ie(r,(H,oe)=>H.fold(()=>Y.some(oe),be=>{const Le=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(oe.x-g)+Math.abs(oe.y-B));return Y.some(Ke{const be=Pl(_r.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Le=Te(gJ(r,be),Ke=>g(Ke,oe));return vJ(Le,H,oe).map(Ke=>Ke.cell)},M9=r=>r.bottom,yJ=r=>r.top,bJ=(r,g)=>r.yr.y>g,xJ=U(L$,M9,bJ),I$=U(L$,yJ,zfe),Nfe=(r,g)=>Ye(g.getClientRects()).bind(B=>xJ(r,B.left,B.top)).bind(B=>iO(gK(B),g)),_J=(r,g)=>Je(g.getClientRects()).bind(B=>I$(r,B.left,B.top)).bind(B=>iO(mK(B),g)),wJ=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),OJ=r=>r.breakType===Vy.Wrap&&r.positions.length===0,E9=r=>r.breakType===Vy.Br&&r.positions.length===1,F5=(r,g,B)=>{const H=r(g,B);return OJ(H)||!gn(B.getNode())&&E9(H)?!wJ(r,g,H):H.breakAt.isNone()},D$=U(F5,W2),B$=U(F5,A5),SJ=(r,g,B)=>{const H=vo.fromRangeStart(g);return Py(!r,B).exists(oe=>oe.isEqual(H))},kJ=(r,g,B,H)=>{const oe=r.selection.getRng(),be=g?1:-1;return NM()&&SJ(g,oe,B)?(Ng(be,r,B,!g,!1).each(Le=>{Uy(r,Le)}),!0):!1},P9=(r,g,B)=>Nfe(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(jF(r,vo.before(g)),H.left))).getOr(vo.before(g)),TJ=(r,g,B)=>_J(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(M5(r,vo.after(g)),H.left))).getOr(vo.after(g)),z$=(r,g)=>{const B=g.getNode(r);return dt(B)?Y.some(B):Y.none()},CJ=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?Kc:xc,oe=v9(g,_r.fromDom(B),H);Uy(g,oe)})},N$=(r,g,B)=>{const H=z$(!!g,B),oe=g===!1;H.fold(()=>Uy(r,B.toRange()),be=>Py(oe,r.getBody()).filter(Le=>Le.isEqual(B)).fold(()=>Uy(r,B.toRange()),Le=>CJ(g,r,be)))},R1=(r,g,B,H)=>{const oe=r.selection.getRng(),be=vo.fromRangeStart(oe),Le=r.getBody();if(!g&&D$(H,be)){const Ke=P9(Le,B,be);return N$(r,g,Ke),!0}else if(g&&B$(H,be)){const Ke=TJ(Le,B,be);return N$(r,g,Ke),!0}else return!1},R9=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(oe=>B(r,g,oe,H))).getOr(!1),L9=(r,g)=>R9(r,g,kJ),F$=(r,g)=>R9(r,g,R1),Ffe=r=>{const g=E2.exact(r,0,r,0);return Ce(g)},AJ=(r,g,B)=>B.fold(Y.none,Y.none,(H,oe)=>mJ(oe).map(be=>Ffe(be)),H=>(r.execCommand("mceTableInsertRowAfter"),MJ(r,g,H))),MJ=(r,g,B)=>AJ(r,g,N5(B,Ol)),EJ=(r,g,B)=>AJ(r,g,hJ(B,Ol)),$5=(r,g)=>{const B=["table","li","dl"],H=_r.fromDom(r.getBody()),oe=Ke=>{const ut=ma(Ke);return va(Ke,H)||ce(B,ut)},be=r.selection.getRng(),Le=_r.fromDom(g?be.endContainer:be.startContainer);return dJ(Le,oe).map(Ke=>(M$(Ke,oe).each(nn=>{r.model.table.clearSelectedCells(nn.dom)}),r.selection.collapse(!g),(g?MJ:EJ)(r,oe,Ke).each(nn=>{r.selection.setRng(nn)}),!0)).getOr(!1)},PJ=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.RIGHT,action:$a(_$,r,!0)},{keyCode:Jo.LEFT,action:$a(_$,r,!1)},{keyCode:Jo.UP,action:$a(w$,r,!1)},{keyCode:Jo.DOWN,action:$a(w$,r,!0)},...H?[{keyCode:Jo.UP,action:$a(I5,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Jo.DOWN,action:$a(I5,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Jo.RIGHT,action:$a(L9,r,!0)},{keyCode:Jo.LEFT,action:$a(L9,r,!1)},{keyCode:Jo.UP,action:$a(F$,r,!1)},{keyCode:Jo.DOWN,action:$a(F$,r,!0)},{keyCode:Jo.UP,action:$a(F$,r,!1)},{keyCode:Jo.UP,action:$a(S9,r,!1)},{keyCode:Jo.DOWN,action:$a(S9,r,!0)},{keyCode:Jo.RIGHT,action:$a(k9,r,!0)},{keyCode:Jo.LEFT,action:$a(k9,r,!1)},{keyCode:Jo.UP,action:$a(T9,r,!1)},{keyCode:Jo.DOWN,action:$a(T9,r,!0)},{keyCode:Jo.RIGHT,action:$a(X2,r,g,!0)},{keyCode:Jo.LEFT,action:$a(X2,r,g,!1)},{keyCode:Jo.RIGHT,ctrlKey:!H,altKey:H,action:$a(xA,r,g)},{keyCode:Jo.LEFT,ctrlKey:!H,altKey:H,action:$a(AK,r,g)},{keyCode:Jo.UP,action:$a(e_,r,!1)},{keyCode:Jo.DOWN,action:$a(e_,r,!0)}],B).each(oe=>{B.preventDefault()})},I9=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||PJ(r,g,B)})},L1=(r,g)=>({container:r,offset:g}),V5=cc.DOM,U5=r=>g=>r===g?-1:0,RJ=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",D9=(r,g,B)=>{if(Mt(r)&&g>=0)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.backwards(r,g,U5(r),B)).map(oe=>L1(oe.container,oe.container.data.length))}},LJ=(r,g,B)=>{if(Mt(r)&&g>=r.length)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.forwards(r,g,U5(r),B)).map(oe=>L1(oe.container,0))}},B9=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.backwards(r,g,U5(r),B)).bind(be=>{const Le=be.container.data;return B9(be.container,g+Le.length,B)})}},j5=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.forwards(r,g,U5(r),B)).bind(be=>j5(be.container,g-H.length,B))}},z9=(r,g,B,H,oe)=>{const be=Cg(r,RJ(r));return Y.from(be.backwards(g,B,H,oe))},IJ=r=>r.collapsed&&Mt(r.startContainer),DJ=r=>Sd(r.toString().replace(/\u00A0/g," ")),AA=r=>r!==""&&`  \f -\r \v`.indexOf(r)!==-1,BJ=(r,g)=>r.substring(g.length),zJ=(r,g,B,H=!1)=>{let oe;const be=B.charAt(0);for(oe=g-1;oe>=0;oe--){const Le=r.charAt(oe);if(!H&&AA(Le))return Y.none();if(be===Le&&tr(r,B,oe,g))break}return Y.some(oe)},MA=(r,g,B,H=!1)=>{if(!IJ(g))return Y.none();const oe={text:"",offset:0},be=(Ke,ut,At)=>(oe.text=At+oe.text,oe.offset+=ut,zJ(oe.text,oe.offset,B,H).getOr(ut)),Le=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return z9(r,g.startContainer,g.startOffset,be,Le).bind(Ke=>{const ut=g.cloneRange();if(ut.setStart(Ke.container,Ke.offset),ut.setEnd(g.endContainer,g.endOffset),ut.collapsed)return Y.none();const At=DJ(ut);return At.lastIndexOf(B)!==0?Y.none():Y.some({text:BJ(At,B),range:ut,trigger:B})})},NJ=r=>r.nodeType===_s,FJ=r=>r.nodeType===zf,$$=r=>{if(NJ(r))return L1(r,r.data.length);{const g=r.childNodes;return g.length>0?$$(g[g.length-1]):L1(r,g.length)}},V$=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&FJ(r)&&B.length===g?$$(B[B.length-1]):L1(r,g)},$J=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return z9(r,g.container,g.offset,(oe,be)=>be===0?-1:be,H).filter(oe=>{const be=oe.container.data.charAt(oe.offset-1);return!AA(be)}).isSome()},VJ=r=>g=>{const B=V$(g.startContainer,g.startOffset);return!$J(r,B)},N9=(r,g,B)=>Fe(B.triggers,H=>MA(r,g,H)),UJ=(r,g)=>{const B=g(),H=r.selection.getRng();return N9(r.dom,H,B).bind(oe=>F9(r,g,oe))},F9=(r,g,B,H={})=>{var oe;const be=g(),Ke=(oe=r.selection.getRng().startContainer.nodeValue)!==null&&oe!==void 0?oe:"",ut=Te(be.lookupByTrigger(B.trigger),nn=>B.text.length>=nn.minChars&&nn.matches.getOrThunk(()=>VJ(r.dom))(B.range,Ke,B.text));if(ut.length===0)return Y.none();const At=Promise.all(ye(ut,nn=>nn.fetch(B.text,nn.maxResults,H).then(yn=>({matchText:B.text,items:yn,columns:nn.columns,onAction:nn.onAction,highlightOn:nn.highlightOn}))));return Y.some({lookupData:At,context:B})};var Bv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Bv||(Bv={}));const $9=(r,g,B)=>r.stype===Bv.Error?g(r.serror):B(r.svalue),jJ=r=>{const g=[],B=[];return ve(r,H=>{$9(H,oe=>B.push(oe),oe=>g.push(oe))}),{values:g,errors:B}},QJ=(r,g)=>r.stype===Bv.Error?{stype:Bv.Error,serror:g(r.serror)}:r,HJ=(r,g)=>r.stype===Bv.Value?{stype:Bv.Value,svalue:g(r.svalue)}:r,ZJ=(r,g)=>r.stype===Bv.Value?g(r.svalue):r,Dd=(r,g)=>r.stype===Bv.Error?g(r.serror):r,U$=r=>({stype:Bv.Value,svalue:r}),j$=r=>({stype:Bv.Error,serror:r}),vh={fromResult:r=>r.fold(j$,U$),toResult:r=>$9(r,Vs.error,Vs.value),svalue:U$,partition:jJ,serror:j$,bind:ZJ,bindError:Dd,map:HJ,mapError:QJ,fold:$9},EA=r=>_(r)&&tt(r).length>100?" removed due to size":JSON.stringify(r,null,2),t_=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ye(g,B=>"Failed path: ("+B.path.join(" > ")+`) -`+B.getErrorInfo())},kS=(r,g)=>vh.serror([{path:r,getErrorInfo:g}]),Q$=(r,g,B)=>kS(r,()=>'Could not find valid *required* value for "'+g+'" in '+EA(B)),V9=(r,g)=>kS(r,()=>'Choice schema did not contain choice key: "'+g+'"'),U9=(r,g,B)=>kS(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+EA(g)),j9=(r,g)=>kS(r,$(g)),H$=(r,g,B,H)=>Et(B,H).fold(()=>U9(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),PA=(r,g)=>({extract:(oe,be)=>Et(be,r).fold(()=>V9(oe,r),Ke=>H$(oe,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+tt(g)}),RA=(r,g)=>g,Q5=(r,g)=>O(r)&&O(g)?ng(r,g):g,TS=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),Z$=r=>({tag:"defaultedThunk",process:r}),q$=r=>Z$($(r)),W$=()=>({tag:"option",process:{}}),WJ=(r,g)=>r.length>0?vh.svalue(ng(g,CS.apply(void 0,r))):vh.svalue(g),Y$=r=>I(vh.serror,Ve)(r),YJ={consolidateObj:(r,g)=>{const B=vh.partition(r);return B.errors.length>0?Y$(B.errors):WJ(B.values,g)},consolidateArr:r=>{const g=vh.partition(r);return g.errors.length>0?Y$(g.errors):vh.svalue(g.values)}},XJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),GJ=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),X$=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},H9=r=>{const g=(H,oe)=>vh.bindError(r(oe),be=>j9(H,be)),B=$("val");return{extract:g,toString:B}},KJ=H9(vh.svalue),JJ=(r,g,B,H)=>Et(g,B).fold(()=>Q$(r,B,g),H),G$=(r,g,B,H)=>{const oe=Et(r,g).getOrThunk(()=>B(r));return H(oe)},eee=(r,g,B)=>B(Et(r,g)),tee=(r,g,B,H)=>{const oe=Et(r,g).map(be=>be===!0?B(r):be);return H(oe)},nee=(r,g,B,H,oe)=>{const be=Ke=>oe.extract(g.concat([H]),Ke),Le=Ke=>Ke.fold(()=>vh.svalue(Y.none()),ut=>{const At=oe.extract(g.concat([H]),ut);return vh.map(At,Y.some)});switch(r.tag){case"required":return JJ(g,B,H,be);case"defaultedThunk":return G$(B,H,r.process,be);case"option":return eee(B,H,Le);case"defaultedOptionThunk":return tee(B,H,r.process,Le);case"mergeWithThunk":return G$(B,H,$({}),Ke=>{const ut=ng(r.process(B),Ke);return be(ut)})}},ree=(r,g,B)=>{const H={},oe=[];for(const be of B)X$(be,(Le,Ke,ut,At)=>{const nn=nee(ut,r,g,Le,At);vh.fold(nn,un=>{oe.push(...un)},un=>{H[Ke]=un})},(Le,Ke)=>{H[Le]=Ke(g)});return oe.length>0?vh.serror(oe):vh.svalue(H)},Z9=r=>({extract:(H,oe)=>ree(H,oe,r),toString:()=>`obj{ -`+ye(r,oe=>X$(oe,(be,Le,Ke,ut)=>be+" -> "+ut.toString(),(be,Le)=>"state("+be+")")).join(` -`)+"}"}),q9=r=>({extract:(H,oe)=>{const be=ye(oe,(Le,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Le));return YJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),K$=r=>H9(g=>r(g).fold(vh.serror,vh.svalue)),J$=(r,g,B)=>{const H=g.extract([r],B);return vh.mapError(H,oe=>({input:B,errors:oe}))},oee=(r,g,B)=>vh.toResult(J$(r,g,B)),iee=r=>`Errors: +Options:${Le}${B.join(Le)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+Ke+ut)}},oG=(r,g)=>{nG(r,g),rG(r,g)},aA=cc.DOM,iG=r=>{aA.setStyle(r.id,"display",r.orgDisplay)},sA=r=>Y.from(r).each(g=>g.destroy()),rF=r=>{const g=r;g.contentAreaContainer=g.formElement=g.container=g.editorContainer=null,g.bodyElement=g.contentDocument=g.contentWindow=null,g.iframeElement=g.targetElm=null;const B=r.selection;if(B){const H=B.dom;g.selection=B.win=B.dom=H.doc=null}},aG=r=>{const g=r.formElement;g&&(g._mceOldSubmit&&(g.submit=g._mceOldSubmit,delete g._mceOldSubmit),aA.unbind(g,"submit reset",r.formEventDelegate))},sG=r=>{if(!r.removed){const{_selectionOverrides:g,editorUpload:B}=r,H=r.getBody(),oe=r.getElement();H&&r.save({is_removing:!0}),r.removed=!0,r.unbindAllNativeEvents(),r.hasHiddenInput&&P(oe==null?void 0:oe.nextSibling)&&aA.remove(oe.nextSibling),F3(r),r.editorManager.remove(r),!r.inline&&H&&iG(r),eE(r),aA.remove(r.getContainer()),sA(g),sA(B),r.destroy()}},lG=(r,g)=>{const{selection:B,dom:H}=r;if(!r.destroyed){if(!g&&!r.removed){r.remove();return}g||(r.editorManager.off("beforeunload",r._beforeUnload),r.theme&&r.theme.destroy&&r.theme.destroy(),sA(B),sA(H)),aG(r),rF(r),r.destroyed=!0}},lA=(()=>{const r={};return{add:(oe,be)=>{r[oe]=be},get:oe=>r[oe]?r[oe]:{icons:{}},has:oe=>Ot(r,oe)}})(),pS=fh.ModelManager,S7=(r,g)=>g.dom[r],cA=(r,g)=>parseInt(rs(g,r),10),cG=U(S7,"clientWidth"),uG=U(S7,"clientHeight"),Mfe=U(cA,"margin-top"),fG=U(cA,"margin-left"),f5=r=>r.dom.getBoundingClientRect(),oF=(r,g,B)=>{const H=cG(r),oe=uG(r);return g>=0&&B>=0&&g<=H&&B<=oe},iF=(r,g,B,H)=>{const oe=f5(g),be=r?oe.left+g.dom.clientLeft+fG(g):0,Le=r?oe.top+g.dom.clientTop+Mfe(g):0,Ke=B-be,ut=H-Le;return{x:Ke,y:ut}},dG=(r,g,B)=>{const H=_r.fromDom(r.getBody()),oe=r.inline?H:ih(H),be=iF(r.inline,oe,g,B);return oF(oe,be.x,be.y)},aF=r=>Y.from(r).map(_r.fromDom),hG=r=>{const g=r.inline?r.getBody():r.getContentAreaContainer();return aF(g).map(lf).getOr(!1)};var pG=()=>{const r=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:r,close:r,getArgs:r}};const sF=r=>{const g=[],B=()=>{const yn=r.theme;return yn&&yn.getNotificationManagerImpl?yn.getNotificationManagerImpl():pG()},H=()=>Y.from(g[0]),oe=(yn,Qn)=>yn.type===Qn.type&&yn.text===Qn.text&&!yn.progressBar&&!yn.timeout&&!Qn.progressBar&&!Qn.timeout,be=()=>{H().each(yn=>{yn.reposition()})},Le=yn=>{g.push(yn)},Ke=yn=>{Qe(g,Qn=>Qn===yn).each(Qn=>{g.splice(Qn,1)})},ut=(yn,Qn=!0)=>r.removed||!hG(r)?{}:(Qn&&r.dispatch("BeforeOpenNotification",{notification:yn}),De(g,rr=>oe(B().getArgs(rr),yn)).getOrThunk(()=>{r.editorManager.setActive(r);const rr=B().open(yn,()=>{Ke(rr)},()=>KD(r));return Le(rr),be(),r.dispatch("OpenNotification",{notification:{...rr}}),rr})),At=()=>{H().each(yn=>{B().close(yn),Ke(yn),be()})},nn=$(g);return(yn=>{yn.on("SkinLoaded",()=>{const Qn=Wd(yn);Qn&&ut({text:Qn,type:"warning",timeout:0},!1),be()}),yn.on("show ResizeEditor ResizeWindow NodeChange ToggleView FullscreenStateChanged",()=>{requestAnimationFrame(be)}),yn.on("remove",()=>{ve(g.slice(),Qn=>{B().close(Qn)})}),yn.addShortcut("alt+F12","Focus to notification",()=>H().map(Qn=>_r.fromDom(Qn.getEl())).each(Qn=>Z3(Qn)))})(r),{open:ut,close:At,getNotifications:nn}},mS=fh.PluginManager,Q2=fh.ThemeManager;var mG=()=>{const r=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:r,openUrl:r,alert:r,confirm:r,close:r}};const lF=r=>{let g=[];const B=()=>{const Wn=r.theme;return Wn&&Wn.getWindowManagerImpl?Wn.getWindowManagerImpl():mG()},H=(Wn,ur)=>(...Tr)=>ur?ur.apply(Wn,Tr):void 0,oe=Wn=>{r.dispatch("OpenWindow",{dialog:Wn})},be=Wn=>{r.dispatch("CloseWindow",{dialog:Wn})},Le=Wn=>{g.push(Wn),oe(Wn)},Ke=Wn=>{be(Wn),g=Te(g,ur=>ur!==Wn),g.length===0&&r.focus()},ut=()=>Y.from(g[g.length-1]),At=Wn=>{r.editorManager.setActive(r),Tk(r),r.ui.show();const ur=Wn();return Le(ur),ur},nn=(Wn,ur)=>At(()=>B().open(Wn,ur,Ke)),un=Wn=>At(()=>B().openUrl(Wn,Ke)),yn=(Wn,ur,Tr)=>{const Wr=B();Wr.alert(Wn,H(Tr||Wr,ur))},Qn=(Wn,ur,Tr)=>{const Wr=B();Wr.confirm(Wn,H(Tr||Wr,ur))},rr=()=>{ut().each(Wn=>{B().close(Wn),Ke(Wn)})};return r.on("remove",()=>{ve(g,Wn=>{B().close(Wn)})}),{open:nn,openUrl:un,alert:yn,confirm:Qn,close:rr}},gS=(r,g)=>{r.notificationManager.open({type:"error",text:g})},d5=(r,g)=>{r._skinLoaded?gS(r,g):r.on("SkinLoaded",()=>{gS(r,g)})},cF=(r,g)=>{d5(r,ff.translate(["Failed to upload image: {0}",g]))},h5=(r,g,B)=>{mh(r,g,{message:B}),console.error(B)},p5=(r,g,B)=>B?`Failed to load ${r}: ${B} from url ${g}`:`Failed to load ${r} url: ${g}`,gG=(r,g,B)=>{h5(r,"PluginLoadError",p5("plugin",g,B))},uF=(r,g,B)=>{h5(r,"IconsLoadError",p5("icons",g,B))},vG=(r,g,B)=>{h5(r,"LanguageLoadError",p5("language",g,B))},yG=(r,g,B)=>{h5(r,"ThemeLoadError",p5("theme",g,B))},bG=(r,g,B)=>{h5(r,"ModelLoadError",p5("model",g,B))},xG=(r,g,B)=>{const H=ff.translate(["Failed to initialize plugin: {0}",g]);mh(r,"PluginLoadError",{message:H}),k7(H,B),d5(r,H)},k7=(r,...g)=>{const B=window.console;B&&(B.error?B.error(r,...g):B.log(r,...g))},Iv=r=>/^[a-z0-9\-]+$/i.test(r),m5=r=>"content/"+r+"/content.css",_G=r=>tinymce.Resource.has(m5(r)),wG=r=>fF(r,r2(r)),OG=r=>fF(r,Ad(r)),fF=(r,g)=>{const B=r.editorManager.baseURL+"/skins/content",oe=`content${r.editorManager.suffix}.css`;return ye(g,be=>_G(be)?be:Iv(be)&&!r.inline?`${B}/${be}/${oe}`:r.documentBaseURI.toAbsolute(be))},Il=r=>{r.contentCSS=r.contentCSS.concat(wG(r),OG(r))},SG=r=>r?Me(r.getElementsByTagName("img")):[],g5=(r,g)=>{const B={};return{findAll:(oe,be=q)=>{const Le=Te(SG(oe),ut=>{const At=ut.src;return ut.hasAttribute("data-mce-bogus")||ut.hasAttribute("data-mce-placeholder")||!At||At===Nr.transparentSrc?!1:Br(At,"blob:")?!r.isUploaded(At)&&be(ut):Br(At,"data:")?be(ut):!1}),Ke=ye(Le,ut=>{const At=ut.src;if(Ot(B,At))return B[At].then(nn=>v(nn)?nn:{image:ut,blobInfo:nn.blobInfo});{const nn=zY(g,At).then(un=>(delete B[At],{image:ut,blobInfo:un})).catch(un=>(delete B[At],un));return B[At]=nn,nn}});return Promise.all(Ke)}}},dF=()=>{let B={};const H=(yn,Qn)=>({status:yn,resultUri:Qn}),oe=yn=>yn in B;return{hasBlobUri:oe,getResultUri:yn=>{const Qn=B[yn];return Qn?Qn.resultUri:null},isPending:yn=>oe(yn)?B[yn].status===1:!1,isUploaded:yn=>oe(yn)?B[yn].status===2:!1,markPending:yn=>{B[yn]=H(1,null)},markUploaded:(yn,Qn)=>{B[yn]=H(2,Qn)},removeFailed:yn=>{delete B[yn]},destroy:()=>{B={}}}};let kG=0;const TG=()=>{const r=()=>Math.round(G_()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+r()+r()+r()},hF=r=>r+kG+++TG(),H2=()=>{let r=[];const g=un=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[un.toLowerCase()]||"dat",B=(un,yn,Qn,rr,Wn)=>{if(v(un))return H({id:un,name:rr,filename:Wn,blob:yn,base64:Qn});if(_(un))return H(un);throw new Error("Unknown input type")},H=un=>{if(!un.blob||!un.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const yn=un.id||hF("blobid"),Qn=un.name||yn,rr=un.blob;return{id:$(yn),name:$(Qn),filename:$(un.filename||Qn+"."+g(rr.type)),blob:$(rr),base64:$(un.base64),blobUri:$(un.blobUri||URL.createObjectURL(rr)),uri:$(un.uri)}},oe=un=>{Le(un.id())||r.push(un)},be=un=>De(r,un).getOrUndefined(),Le=un=>be(yn=>yn.id()===un);return{create:B,add:oe,get:Le,getByUri:un=>be(yn=>yn.blobUri()===un),getByData:(un,yn)=>be(Qn=>Qn.base64()===un&&Qn.blob().type===yn),findFirst:be,removeByUri:un=>{r=Te(r,yn=>yn.blobUri()===un?(URL.revokeObjectURL(yn.blobUri()),!1):!0)},destroy:()=>{ve(r,un=>{URL.revokeObjectURL(un.blobUri())}),r=[]}}},xm=(r,g)=>{const B={},H=(Wn,ur)=>Wn?Wn.replace(/\/$/,"")+"/"+ur.replace(/^\//,""):ur,oe=(Wn,ur)=>new Promise((Tr,Wr)=>{const Qr=new XMLHttpRequest;Qr.open("POST",g.url),Qr.withCredentials=g.credentials,Qr.upload.onprogress=Zo=>{ur(Zo.loaded/Zo.total*100)},Qr.onerror=()=>{Wr("Image upload failed due to a XHR Transport error. Code: "+Qr.status)},Qr.onload=()=>{if(Qr.status<200||Qr.status>=300){Wr("HTTP Error: "+Qr.status);return}const Zo=JSON.parse(Qr.responseText);if(!Zo||!v(Zo.location)){Wr("Invalid JSON: "+Qr.responseText);return}Tr(H(g.basePath,Zo.location))};const lo=new FormData;lo.append("file",Wn.blob(),Wn.filename()),Qr.send(lo)}),be=A(g.handler)?g.handler:oe,Le=()=>new Promise(Wn=>{Wn([])}),Ke=(Wn,ur)=>({url:ur,blobInfo:Wn,status:!0}),ut=(Wn,ur)=>({url:"",blobInfo:Wn,status:!1,error:ur}),At=(Wn,ur)=>{To.each(B[Wn],Tr=>{Tr(ur)}),delete B[Wn]},nn=(Wn,ur,Tr)=>(r.markPending(Wn.blobUri()),new Promise(Wr=>{let Qr,lo;try{const Zo=()=>{Qr&&(Qr.close(),lo=k)},li=Co=>{Zo(),r.markUploaded(Wn.blobUri(),Co),At(Wn.blobUri(),Ke(Wn,Co)),Wr(Ke(Wn,Co))},Mi=Co=>{Zo(),r.removeFailed(Wn.blobUri()),At(Wn.blobUri(),ut(Wn,Co)),Wr(ut(Wn,Co))};lo=Co=>{Co<0||Co>100||Y.from(Qr).orThunk(()=>Y.from(Tr).map(Z)).each(yo=>{Qr=yo,yo.progressBar.value(Co)})},ur(Wn,lo).then(li,Co=>{Mi(v(Co)?{message:Co}:Co)})}catch(Zo){Wr(ut(Wn,Zo))}})),un=Wn=>Wn===oe,yn=Wn=>{const ur=Wn.blobUri();return new Promise(Tr=>{B[ur]=B[ur]||[],B[ur].push(Tr)})},Qn=(Wn,ur)=>(Wn=To.grep(Wn,Tr=>!r.isUploaded(Tr.blobUri())),Promise.all(To.map(Wn,Tr=>r.isPending(Tr.blobUri())?yn(Tr):nn(Tr,be,ur))));return{upload:(Wn,ur)=>!g.url&&un(be)?Le():Qn(Wn,ur)}},vS=r=>()=>r.notificationManager.open({text:r.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),cx=(r,g)=>xm(g,{url:vv(r),basePath:h1(r),credentials:n2(r),handler:by(r)}),Ny=r=>{const g=dF(),B=cx(r,g);return{upload:(H,oe=!0)=>B.upload(H,oe?vS(r):void 0)}},v5=(r,g)=>r.dom.isEmpty(g.dom)&&P(r.schema.getTextBlockElements()[ma(g)]),T7=r=>g=>{v5(r,g)&&ii(g,_r.fromHtml('
    '))},C7=r=>{const g=H2();let B,H;const oe=dF(),be=[],Le=Qr=>lo=>r.selection?Qr(lo):[],Ke=Qr=>Qr+(Qr.indexOf("?")===-1?"?":"&")+new Date().getTime(),ut=(Qr,lo,Zo)=>{let li=0;do li=Qr.indexOf(lo,li),li!==-1&&(Qr=Qr.substring(0,li)+Zo+Qr.substr(li+lo.length),li+=Zo.length-lo.length+1);while(li!==-1);return Qr},At=(Qr,lo,Zo)=>{const li=`src="${Zo}"${Zo===Nr.transparentSrc?' data-mce-placeholder="1"':""}`;return Qr=ut(Qr,`src="${lo}"`,li),Qr=ut(Qr,'data-mce-src="'+lo+'"','data-mce-src="'+Zo+'"'),Qr},nn=(Qr,lo)=>{ve(r.undoManager.data,Zo=>{Zo.type==="fragmented"?Zo.fragments=ye(Zo.fragments,li=>At(li,Qr,lo)):Zo.content=At(Zo.content,Qr,lo)})},un=(Qr,lo)=>{const Zo=r.convertURL(lo,"src");nn(Qr.src,lo),Tu(_r.fromDom(Qr),{src:dl(r)?Ke(lo):lo,"data-mce-src":Zo})},yn=()=>(B||(B=cx(r,oe)),ur().then(Le(Qr=>{const lo=ye(Qr,Zo=>Zo.blobInfo);return B.upload(lo,vS(r)).then(Le(Zo=>{const li=[];let Mi=!1;const Co=ye(Zo,(yo,Vo)=>{const{blobInfo:Fi,image:la}=Qr[Vo];let bs=!1;return yo.status&&Mf(r)?(yo.url&&!tr(la.src,yo.url)&&(Mi=!0),g.removeByUri(la.src),zy(r)||un(la,yo.url)):yo.error&&(yo.error.remove&&(nn(la.src,Nr.transparentSrc),li.push(la),bs=!0),cF(r,yo.error.message)),{element:la,status:yo.status,uploadUri:yo.url,blobInfo:Fi,removed:bs}});return li.length>0&&!zy(r)?r.undoManager.transact(()=>{ve(xu(li),yo=>{const Vo=jc(yo);hs(yo),Vo.each(T7(r)),g.removeByUri(yo.dom.src)})}):Mi&&r.undoManager.dispatchChange(),Co}))}))),Qn=()=>$c(r)?yn():Promise.resolve([]),rr=Qr=>Oe(be,lo=>lo(Qr)),Wn=Qr=>{be.push(Qr)},ur=()=>(H||(H=g5(oe,g)),H.findAll(r.getBody(),rr).then(Le(Qr=>{const lo=Te(Qr,Zo=>v(Zo)?(d5(r,Zo),!1):Zo.uriType!=="blob");return zy(r)||ve(lo,Zo=>{nn(Zo.image.src,Zo.blobInfo.blobUri()),Zo.image.src=Zo.blobInfo.blobUri(),Zo.image.removeAttribute("data-mce-src")}),lo}))),Tr=()=>{g.destroy(),oe.destroy(),H=B=null},Wr=Qr=>Qr.replace(/src="(blob:[^"]+)"/g,(lo,Zo)=>{const li=oe.getResultUri(Zo);if(li)return'src="'+li+'"';let Mi=g.getByUri(Zo);return Mi||(Mi=Ie(r.editorManager.get(),(Co,yo)=>Co||yo.editorUpload&&yo.editorUpload.blobCache.getByUri(Zo),void 0)),Mi?'src="data:'+Mi.blob().type+";base64,"+Mi.base64()+'"':lo});return r.on("SetContent",()=>{$c(r)?Qn():ur()}),r.on("RawSaveContent",Qr=>{Qr.content=Wr(Qr.content)}),r.on("GetContent",Qr=>{Qr.source_view||Qr.format==="raw"||Qr.format==="tree"||(Qr.content=Wr(Qr.content))}),r.on("PostRender",()=>{r.parser.addNodeFilter("img",Qr=>{ve(Qr,lo=>{const Zo=lo.attr("src");if(!Zo||g.getByUri(Zo))return;const li=oe.getResultUri(Zo);li&&lo.attr("src",li)})})}),{blobCache:g,addFilter:Wn,uploadImages:yn,uploadImagesAuto:Qn,scanForImages:ur,destroy:Tr}},pF=r=>{const g=r.dom,B=r.schema.type,H={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:oe=>{g.setStyle(oe,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const oe={inline:"span",styles:{textDecoration:"line-through"},exact:!0},be={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Le={inline:"s",remove:"all",preserve_attributes:["class","style"]};return B!=="html4"?[Le,oe,be]:[oe,Le,be]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(oe,be,Le)=>ne(oe)&&oe.hasAttribute("href"),onformat:(oe,be,Le)=>{To.each(Le,(Ke,ut)=>{g.setAttrib(oe,ut,Ke)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":oe=>{var be;return(be=oe==null?void 0:oe.customValue)!==null&&be!==void 0?be:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return To.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),oe=>{H[oe]={block:oe,remove:"all"}}),H},A7={remove_similar:!0,inherit:!1},yS={selector:"td,th",...A7},CG={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...yS},tablecellverticalalign:{styles:{"vertical-align":"%value"},...yS},tablecellbordercolor:{styles:{borderColor:"%value"},...yS},tablecellclass:{classes:["%value"],...yS},tableclass:{selector:"table",classes:["%value"],...A7},tablecellborderstyle:{styles:{borderStyle:"%value"},...yS},tablecellborderwidth:{styles:{borderWidth:"%value"},...yS}},mF=$(CG),gF=r=>{const g={},B=Le=>P(Le)?g[Le]:g,H=Le=>Ot(g,Le),oe=(Le,Ke)=>{Le&&(v(Le)?(C(Ke)||(Ke=[Ke]),ve(Ke,ut=>{M(ut.deep)&&(ut.deep=!Gm(ut)),M(ut.split)&&(ut.split=!Gm(ut)||Ed(ut)),M(ut.remove)&&Gm(ut)&&!Ed(ut)&&(ut.remove="none"),Gm(ut)&&Ed(ut)&&(ut.mixed=!0,ut.block_expand=!0),v(ut.classes)&&(ut.classes=ut.classes.split(/\s+/))}),g[Le]=Ke):Ge(Le,(ut,At)=>{oe(At,ut)}))},be=Le=>(Le&&g[Le]&&delete g[Le],g);return oe(pF(r)),oe(mF()),oe(sw(r)),{get:B,has:H,register:oe,unregister:be}},y5=To.each,zg=cc.DOM,b5=r=>P(r)&&_(r),AG=(r,g)=>{const B=g&&g.schema||zm({}),H=(ut,At)=>{At.classes.length>0&&zg.addClass(ut,At.classes.join(" ")),zg.setAttribs(ut,At.attrs)},oe=ut=>{const At=v(ut)?{name:ut,classes:[],attrs:{}}:ut,nn=zg.create(At.name);return H(nn,At),nn},be=(ut,At)=>{const nn=B.getElementRule(ut.nodeName.toLowerCase()),un=nn==null?void 0:nn.parentsRequired;return un&&un.length?At&&ce(un,At)?At:un[0]:!1},Le=(ut,At,nn)=>{let un;const yn=At[0],Qn=b5(yn)?yn.name:void 0,rr=be(ut,Qn);if(rr)Qn===rr?(un=yn,At=At.slice(1)):un=rr;else if(yn)un=yn,At=At.slice(1);else if(!nn)return ut;const Wn=un?oe(un):zg.create("div");Wn.appendChild(ut),nn&&To.each(nn,Tr=>{const Wr=oe(Tr);Wn.insertBefore(Wr,ut)});const ur=b5(un)?un.siblings:void 0;return Le(Wn,At,ur)},Ke=zg.create("div");if(r.length>0){const ut=r[0],At=oe(ut),nn=b5(ut)?ut.siblings:void 0;Ke.appendChild(Le(At,r.slice(1),nn))}return Ke},MG=r=>{r=To.trim(r);let g="div";const B={name:g,classes:[],attrs:{},selector:r};return r!=="*"&&(g=r.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(H,oe,be,Le,Ke)=>{switch(oe){case"#":B.attrs.id=be;break;case".":B.classes.push(be);break;case":":To.inArray("checked disabled enabled read-only required".split(" "),be)!==-1&&(B.attrs[be]=be);break}if(Le==="["){const ut=Ke.match(/([\w\-]+)(?:\=\"([^\"]+))?/);ut&&(B.attrs[ut[1]]=ut[2])}return""})),B.name=g||"div",B},Efe=r=>v(r)?(r=r.split(/\s*,\s*/)[0],r=r.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),To.map(r.split(/(?:>|\s+(?![^\[\]]+\]))/),g=>{const B=To.map(g.split(/(?:~\+|~|\+)/),MG),H=B.pop();return B.length&&(H.siblings=B),H}).reverse()):[],EG=(r,g)=>{let B="",H=Pb(r);if(H==="")return"";const oe=yn=>v(yn)?yn.replace(/%(\w+)/g,""):"",be=(yn,Qn)=>zg.getStyle(Qn??r.getBody(),yn,!0);if(v(g)){const yn=r.formatter.get(g);if(!yn)return"";g=yn[0]}if("preview"in g){const yn=g.preview;if(yn===!1)return"";H=yn||H}let Le=g.block||g.inline||"span",Ke;const ut=Efe(g.selector);ut.length>0?(ut[0].name||(ut[0].name=Le),Le=g.selector,Ke=AG(ut,r)):Ke=AG([Le],r);const At=zg.select(Le,Ke)[0]||Ke.firstChild;y5(g.styles,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setStyle(At,Qn,rr)}),y5(g.attributes,(yn,Qn)=>{const rr=oe(yn);rr&&zg.setAttrib(At,Qn,rr)}),y5(g.classes,yn=>{const Qn=oe(yn);zg.hasClass(At,Qn)||zg.addClass(At,Qn)}),r.dispatch("PreviewFormats"),zg.setStyles(Ke,{position:"absolute",left:-65535}),r.getBody().appendChild(Ke);const nn=be("fontSize"),un=/px$/.test(nn)?parseInt(nn,10):0;return y5(H.split(" "),yn=>{let Qn=be(yn,At);if(!(yn==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Qn)&&(Qn=be(yn),od(Qn).toLowerCase()==="#ffffff"))&&!(yn==="color"&&od(Qn).toLowerCase()==="#000000")){if(yn==="font-size"&&/em|%$/.test(Qn)){if(un===0)return;Qn=parseFloat(Qn)/(/%$/.test(Qn)?100:1)*un+"px"}yn==="border"&&Qn&&(B+="padding:0 2px;"),B+=yn+":"+Qn+";"}}),r.dispatch("AfterPreviewFormats"),zg.remove(Ke),B},PG=r=>{r.addShortcut("meta+b","","Bold"),r.addShortcut("meta+i","","Italic"),r.addShortcut("meta+u","","Underline");for(let g=1;g<=6;g++)r.addShortcut("access+"+g,"",["FormatBlock",!1,"h"+g]);r.addShortcut("access+7","",["FormatBlock",!1,"p"]),r.addShortcut("access+8","",["FormatBlock",!1,"div"]),r.addShortcut("access+9","",["FormatBlock",!1,"address"])},Dv=r=>{const g=gF(r),B=Ar({});return PG(r),Sz(r),zy(r)||EP(B,r),{get:g.get,has:g.has,register:g.register,unregister:g.unregister,apply:(H,oe,be)=>{MX(r,H,oe,be)},remove:(H,oe,be,Le)=>{EX(r,H,oe,be,Le)},toggle:(H,oe,be)=>{ZN(r,H,oe,be)},match:(H,oe,be,Le)=>TX(r,H,oe,be,Le),closest:H=>AX(r,H),matchAll:(H,oe)=>g7(r,H,oe),matchNode:(H,oe,be,Le)=>CX(r,H,oe,be,Le),canApply:H=>oA(r,H),formatChanged:(H,oe,be,Le)=>qN(r,B,H,oe,be,Le),getCssText:U(EG,r)}},RG=r=>{switch(r.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},Pfe=(r,g,B)=>{const H=Ar(!1),oe=ut=>{u5(g,!1,B),g.add({},ut)};r.on("init",()=>{g.add()}),r.on("BeforeExecCommand",ut=>{const At=ut.command;RG(At)||(LN(g,B),g.beforeChange())}),r.on("ExecCommand",ut=>{const At=ut.command;RG(At)||oe(ut)}),r.on("ObjectResizeStart cut",()=>{g.beforeChange()}),r.on("SaveContent ObjectResized blur",oe),r.on("dragend",oe),r.on("keyup",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;const nn=Nr.os.isMacOS()&&ut.key==="Meta";(At>=33&&At<=36||At>=37&&At<=40||At===45||ut.ctrlKey||nn)&&(oe(),r.nodeChanged()),(At===46||At===8)&&r.nodeChanged(),H.get()&&g.typing&&!c5(s5(r),g.data[0])&&(r.isDirty()||r.setDirty(!0),r.dispatch("TypingUndo"),H.set(!1),r.nodeChanged())}),r.on("keydown",ut=>{const At=ut.keyCode;if(ut.isDefaultPrevented())return;if(At>=33&&At<=36||At>=37&&At<=40||At===45){g.typing&&oe(ut);return}const nn=ut.ctrlKey&&!ut.altKey||ut.metaKey;if((At<16||At>20)&&At!==224&&At!==91&&!g.typing&&!nn){g.beforeChange(),u5(g,!0,B),g.add({},ut),H.set(!0);return}(Nr.os.isMacOS()?ut.metaKey:ut.ctrlKey&&!ut.altKey)&&g.beforeChange()}),r.on("mousedown",ut=>{g.typing&&oe(ut)});const be=ut=>ut.inputType==="insertReplacementText",Le=ut=>ut.inputType==="insertText"&&ut.data===null,Ke=ut=>ut.inputType==="insertFromPaste"||ut.inputType==="insertFromDrop";r.on("input",ut=>{ut.inputType&&(be(ut)||Le(ut)||Ke(ut))&&oe(ut)}),r.on("AddUndo Undo Redo ClearUndos",ut=>{ut.isDefaultPrevented()||r.nodeChanged()})},LG=r=>{r.addShortcut("meta+z","","Undo"),r.addShortcut("meta+y,meta+shift+z","","Redo")},bS=r=>{const g=Ts(),B=Ar(0),H=Ar(0),oe={data:[],typing:!1,beforeChange:()=>{FN(r,B,g)},add:(be,Le)=>d7(r,oe,H,B,g,be,Le),dispatchChange:()=>{r.setDirty(!0);const be=s5(r);be.bookmark=fl(r.selection),r.dispatch("change",{level:be,lastLevel:Ze(oe.data,H.get()).getOrUndefined()})},undo:()=>h7(r,oe,B,H),redo:()=>$N(r,H,oe.data),clear:()=>{p7(r,oe,H)},reset:()=>{VN(r,oe)},hasUndo:()=>UN(r,oe,H),hasRedo:()=>m7(r,oe,H),transact:be=>jN(r,oe,B,be),ignore:be=>{QN(r,B,be)},extra:(be,Le)=>{HN(r,oe,H,be,Le)}};return zy(r)||Pfe(r,oe,B),LG(r),oe},IG=[9,27,Jo.HOME,Jo.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Jo.DOWN,Jo.UP,Jo.LEFT,Jo.RIGHT].concat(Nr.browser.isFirefox()?[224]:[]),M7="data-mce-placeholder",E7=r=>r.type==="keydown"||r.type==="keyup",P7=r=>{const g=r.keyCode;return g===Jo.BACKSPACE||g===Jo.DELETE},DG=r=>{if(E7(r)){const g=r.keyCode;return!P7(r)&&(Jo.metaKeyPressed(r)||r.altKey||g>=112&&g<=123||ce(IG,g))}else return!1},BG=r=>E7(r)&&!(P7(r)||r.type==="keyup"&&r.keyCode===229),Z2=(r,g,B)=>{if(r.isEmpty(g,void 0,{skipBogus:!1,includeZwsp:!0})){const H=g.firstElementChild;return H?r.getStyle(g.firstElementChild,"padding-left")||r.getStyle(g.firstElementChild,"padding-right")?!1:B===H.nodeName.toLowerCase():!0}else return!1},zG=r=>{var g;const B=r.dom,H=tu(r),oe=(g=_0(r))!==null&&g!==void 0?g:"",be=(Le,Ke)=>{if(DG(Le))return;const ut=r.getBody(),At=BG(Le)?!1:Z2(B,ut,H);(B.getAttrib(ut,M7)!==""!==At||Ke)&&(B.setAttrib(ut,M7,At?oe:null),V3(r,At),r.on(At?"keydown":"keyup",be),r.off(At?"keyup":"keydown",be))};lr(oe)&&r.on("init",Le=>{be(Le,!0),r.on("change SetContent ExecCommand",be),r.on("paste",Ke=>Ig.setEditorTimeout(r,()=>be(Ke)))})},NG=(r,g)=>({block:r,position:g}),FG=(r,g)=>({from:r,to:g}),R7=(r,g)=>{const B=_r.fromDom(r),H=_r.fromDom(g.container());return Xc(B,H).map(oe=>NG(oe,g))},$G=r=>!(El(r.to.block,r.from.block)||El(r.from.block,r.to.block)),VG=r=>!va(r.from.block,r.to.block),vF=(r,g)=>cl(g,oe=>gy(oe)||pn(oe.dom),oe=>va(oe,r)).filter(Wl).getOr(r),UG=(r,g)=>{const B=_r.fromDom(r);return va(vF(B,g.from.block),vF(B,g.to.block))},jG=r=>In(r.from.block.dom)===!1&&In(r.to.block.dom)===!1,uA=r=>{const g=B=>Np(B)||Is(B.dom)||av(B);return g(r.from.block)&&g(r.to.block)},QG=(r,g,B,H)=>gn(H.position.getNode())&&!Ai(r,H.block)?Ry(!1,H.block.dom).bind(oe=>oe.isEqual(H.position)?Op(B,g,oe).bind(be=>R7(g,be)):Y.some(H)).getOr(H):H,HG=(r,g,B,H)=>{const oe=R7(g,vo.fromRangeStart(H)),be=oe.bind(Le=>Op(B,g,Le.position).bind(Ke=>R7(g,Ke).map(ut=>QG(r,g,B,ut))));return zi(oe,be,FG).filter(Le=>VG(Le)&&UG(g,Le)&&jG(Le)&&uA(Le)&&$G(Le))},Rfe=(r,g,B,H)=>H.collapsed?HG(r,g,B,H):Y.none(),x5=(r,g)=>{const B=vc(r);return Qe(B,H=>g.isBlock(ma(H))).fold($(B),H=>B.slice(0,H))},yF=(r,g)=>{const B=x5(r,g);return ve(B,hs),B},fA=(r,g,B)=>{const H=k1(B,g);return De(H.reverse(),oe=>Ai(r,oe)).each(hs)},ZG=(r,g)=>Te(Vd(g),B=>!Ai(r,B)).length===0,qG=(r,g,B,H,oe)=>{if(Ai(H,B))return xp(B),ph(B.dom);ZG(H,oe)&&Ai(H,g)&&xc(oe,_r.fromTag("br"));const be=Up(B.dom,vo.before(oe.dom));return ve(yF(g,H),Le=>{xc(oe,Le)}),fA(H,r,g),be},WG=(r,g)=>r.isInline(ma(g)),YG=(r,g,B,H)=>{if(Ai(H,B)){if(Ai(H,g)){const Le=Pe((Ke=>{const ut=(At,nn)=>yc(At).fold(()=>nn,un=>WG(H,un)?ut(un,nn.concat(im(un))):nn);return ut(Ke,[])})(B),(Ke,ut)=>(nd(Ke,ut),ut),sv());uf(g),ii(g,Le)}return hs(B),ph(g.dom)}const oe=Ym(B.dom);return ve(yF(g,H),be=>{ii(B,be)}),fA(H,r,g),oe},rO=(r,g)=>{const B=k1(g,r);return Y.from(B[B.length-1])},oO=(r,g)=>El(g,r)?rO(g,r):Y.none(),_5=(r,g)=>{Ry(r,g.dom).bind(B=>Y.from(B.getNode())).map(_r.fromDom).filter(Ch).each(hs)},w5=(r,g,B,H)=>(_5(!0,g),_5(!1,B),oO(g,B).fold(U(YG,r,g,B,H),U(qG,r,g,B,H))),q2=(r,g,B,H,oe)=>g?w5(r,H,B,oe):w5(r,B,H,oe),ux=(r,g)=>{const B=_r.fromDom(r.getBody());return Rfe(r.schema,B.dom,g,r.selection.getRng()).map(oe=>()=>{q2(B,g,oe.from.block,oe.to.block,r.schema).each(be=>{r.selection.setRng(be.toRange())})})},dA=(r,g,B)=>{const H=g.getRng();return zi(Xc(r,_r.fromDom(H.startContainer)),Xc(r,_r.fromDom(H.endContainer)),(oe,be)=>va(oe,be)?Y.none():Y.some(()=>{H.deleteContents(),q2(r,!0,oe,be,B).each(Le=>{g.setRng(Le.toRange())})})).getOr(Y.none())},O5=(r,g)=>{const B=_r.fromDom(g),H=U(va,r);return vs(B,gy,H).isSome()},bF=(r,g)=>O5(r,g.startContainer)||O5(r,g.endContainer),L7=(r,g)=>{const B=Up(r.dom,vo.fromRangeStart(g)).isNone(),H=Sp(r.dom,vo.fromRangeEnd(g)).isNone();return!bF(r,g)&&B&&H},I7=r=>Y.some(()=>{r.setContent(""),r.selection.setCursorLocation()}),xF=r=>{const g=_r.fromDom(r.getBody()),B=r.selection.getRng();return L7(g,B)?I7(r):dA(g,r.selection,r.schema)},hA=(r,g)=>r.selection.isCollapsed()?Y.none():xF(r),Ng=(r,g,B,H,oe)=>Y.from(g._selectionOverrides.showCaret(r,B,H,oe)),_F=r=>{const g=r.ownerDocument.createRange();return g.selectNode(r),g},xS=(r,g)=>r.dispatch("BeforeObjectSelected",{target:g}).isDefaultPrevented()?Y.none():Y.some(_F(g)),wF=(r,g,B)=>{const H=Yd(1,r.getBody(),g),oe=vo.fromRangeStart(H),be=oe.getNode();if(v2(be))return Ng(1,r,be,!oe.isAtEnd(),!1);const Le=oe.getNode(!0);if(v2(Le))return Ng(1,r,Le,!1,!1);const Ke=z2(r.dom.getRoot(),oe.getNode());return v2(Ke)?Ng(1,r,Ke,!1,B):Y.none()},_S=(r,g,B)=>g.collapsed?wF(r,g,B).getOr(g):g,OF=r=>I2(r)||Y3(r),SF=r=>D2(r)||X3(r),kF=(r,g)=>{Mt(g)&&g.data.length===0&&r.remove(g)},D7=(r,g,B,H,oe,be)=>{Ng(H,r,be.getNode(!oe),oe,!0).each(Le=>{if(g.collapsed){const Ke=g.cloneRange();oe?Ke.setEnd(Le.startContainer,Le.startOffset):Ke.setStart(Le.endContainer,Le.endOffset),Ke.deleteContents()}else g.deleteContents();r.selection.setRng(Le)}),kF(r.dom,B)},fx=(r,g)=>{const B=r.selection.getRng();if(!Mt(B.commonAncestorContainer))return Y.none();const H=g?Ef.Forwards:Ef.Backwards,oe=k0(r.getBody()),be=U(Z4,g?oe.next:oe.prev),Le=g?OF:SF,Ke=xw(H,r.getBody(),B),ut=be(Ke),At=ut&&Gu(g,ut);if(!At||!p3(Ke,At))return Y.none();if(Le(At))return Y.some(()=>D7(r,B,Ke.getNode(),H,g,At));const nn=be(At);return nn&&Le(nn)&&p3(At,nn)?Y.some(()=>D7(r,B,Ke.getNode(),H,g,nn)):Y.none()},Fy=(r,g)=>fx(r,g),Fg=(r,g)=>{const B=r.getBody();return g?ph(B).filter(I2):Ym(B).filter(D2)},B7=r=>{const g=r.selection.getRng();return!g.collapsed&&(Fg(r,!0).exists(B=>B.isEqual(vo.fromRangeStart(g)))||Fg(r,!1).exists(B=>B.isEqual(vo.fromRangeEnd(g))))},XG=r=>P(r)&&(gy(_r.fromDom(r))||av(_r.fromDom(r))),$g=kl.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),GG=(r,g)=>{const B=g.getNode(!r),H=r?"after":"before";return ne(B)&&B.getAttribute("data-mce-caret")===H},KG=(r,g,B,H,oe)=>{const be=Le=>oe.isInline(Le.nodeName.toLowerCase())&&!hm(B,H,r);return d3(!g,B).fold(()=>d3(g,H).fold(re,be),be)},TF=(r,g,B,H,oe)=>{const be=oe.getNode(!B);return Xc(_r.fromDom(g),_r.fromDom(H.getNode())).map(Le=>Ai(r,Le)?$g.remove(Le.dom):$g.moveToElement(be)).orThunk(()=>Y.some($g.moveToElement(be)))},CF=(r,g,B,H)=>Op(g,r,B).bind(oe=>XG(oe.getNode())||KG(r,g,B,oe,H)?Y.none():g&&In(oe.getNode())||!g&&In(oe.getNode(!0))?TF(H,r,g,B,oe):g&&D2(B)||!g&&I2(B)?Y.some($g.moveToPosition(oe)):Y.none()),JG=(r,g)=>T(g)?Y.none():r&&In(g.nextSibling)?Y.some($g.moveToElement(g.nextSibling)):!r&&In(g.previousSibling)?Y.some($g.moveToElement(g.previousSibling)):Y.none(),eK=(r,g,B)=>B.fold(H=>Y.some($g.remove(H)),H=>Y.some($g.moveToElement(H)),H=>hm(g,H,r)?Y.none():Y.some($g.moveToPosition(H))),tK=(r,g,B,H)=>GG(g,B)?JG(g,B.getNode(!g)).orThunk(()=>CF(r,g,B,H)):CF(r,g,B,H).bind(oe=>eK(r,B,oe)),nK=(r,g,B,H)=>{const oe=Yd(g?1:-1,r,B),be=vo.fromRangeStart(oe),Le=_r.fromDom(r);return!g&&D2(be)?Y.some($g.remove(be.getNode(!0))):g&&I2(be)?Y.some($g.remove(be.getNode())):!g&&I2(be)&&f6(Le,be,H)?CB(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):g&&D2(be)&&TB(Le,be,H)?Ra(Le,be,H).map(Ke=>$g.remove(Ke.getNode())):tK(r,g,be,H)},rK=(r,g)=>B=>(r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B)),!0),z7=(r,g)=>B=>{const H=g?vo.before(B):vo.after(B);return r.selection.setRng(H.toRange()),!0},N7=r=>g=>(r.selection.setRng(g.toRange()),!0),F7=(r,g)=>Y.from(z2(r.getBody(),g)),oK=(r,g)=>{const B=r.selection.getNode();return F7(r,B).filter(In).fold(()=>nK(r.getBody(),g,r.selection.getRng(),r.schema).map(H=>()=>H.fold(rK(r,g),z7(r,g),N7(r))),()=>Y.some(k))},iK=r=>{ve(Pl(r,".mce-offscreen-selection"),hs)},AF=(r,g)=>{const B=r.selection.getNode();return In(B)&&!Ir(B)?F7(r,B.parentNode).filter(In).fold(()=>Y.some(()=>{iK(_r.fromDom(r.getBody())),T0(r,g,_r.fromDom(r.selection.getNode())),J3(r)}),()=>Y.some(k)):B7(r)?Y.some(()=>{$w(r,r.selection.getRng(),_r.fromDom(r.getBody()))}):Y.none()},$7=r=>{const g=r.dom,B=r.selection,H=z2(r.getBody(),B.getNode());if(pn(H)&&g.isBlock(H)&&g.isEmpty(H)){const oe=g.create("br",{"data-mce-bogus":"1"});g.setHTML(H,""),H.appendChild(oe),B.setRng(vo.before(oe).toRange())}return!0},S5=(r,g)=>r.selection.isCollapsed()?oK(r,g):AF(r,g),V7=r=>r.hasOwnProperty("text"),U7=r=>r.hasOwnProperty("marker"),pA=(r,g)=>{const B=(be,Le)=>{if(Mt(be))return{text:be,offset:Le};{const Ke=g(),ut=be.childNodes;return Le{var g,B;const{start:H,end:oe}=r,be=new window.Range;return V7(H)?be.setStart(H.text,H.offset):U7(H)&&(H.before?be.setStartBefore(H.marker):be.setStartAfter(H.marker),(g=H.marker.parentNode)===null||g===void 0||g.removeChild(H.marker)),V7(oe)?be.setEnd(oe.text,oe.offset):U7(oe)&&(oe.before?be.setEndBefore(oe.marker):be.setEndAfter(oe.marker),(B=oe.marker.parentNode)===null||B===void 0||B.removeChild(oe.marker)),be},j7=(r,g)=>{var B;const H=r.dom,oe=H.getParent(r.selection.getStart(),H.isBlock),be=H.getParent(r.selection.getEnd(),H.isBlock),Le=r.getBody();if(((B=oe==null?void 0:oe.nodeName)===null||B===void 0?void 0:B.toLowerCase())==="div"&&oe&&be&&oe===Le.firstChild&&be===Le.lastChild&&!H.isEmpty(Le)){const ut=oe.cloneNode(!1),At=()=>{if(g?B2(r):m6(r),Le.firstChild!==oe){const nn=pA(r.selection.getRng(),()=>document.createElement("span"));Array.from(Le.childNodes).forEach(un=>ut.appendChild(un)),Le.appendChild(ut),r.selection.setRng(MF(nn))}};return Y.some(At)}return Y.none()},$y=(r,g)=>{const B=vo.fromRangeStart(r.selection.getRng());return Op(g,r.getBody(),B).filter(H=>g?yW(H):ha(H)).bind(H=>H4(g?0:-1,H)).map(H=>()=>r.selection.select(H))},Vg=(r,g)=>r.selection.isCollapsed()?$y(r,g):Y.none(),dx=Mt,Q7=r=>dx(r)&&r.data[0]===Ou,k5=r=>dx(r)&&r.data[r.data.length-1]===Ou,H7=r=>{var g;return((g=r.ownerDocument)!==null&&g!==void 0?g:document).createTextNode(Ou)},EF=r=>{var g;if(dx(r.previousSibling))return k5(r.previousSibling)||r.previousSibling.appendData(Ou),r.previousSibling;if(dx(r))return Q7(r)||r.insertData(0,Ou),r;{const B=H7(r);return(g=r.parentNode)===null||g===void 0||g.insertBefore(B,r),B}},PF=r=>{var g,B;if(dx(r.nextSibling))return Q7(r.nextSibling)||r.nextSibling.insertData(0,Ou),r.nextSibling;if(dx(r))return k5(r)||r.appendData(Ou),r;{const H=H7(r);return r.nextSibling?(g=r.parentNode)===null||g===void 0||g.insertBefore(H,r.nextSibling):(B=r.parentNode)===null||B===void 0||B.appendChild(H),H}},T5=(r,g)=>r?EF(g):PF(g),RF=U(T5,!0),LF=U(T5,!1),C5=(r,g)=>Mt(r.container())?T5(g,r.container()):T5(g,r.getNode()),mA=(r,g)=>{const B=g.get();return B&&r.container()===B&&_p(B)},Z7=(r,g)=>g.fold(B=>{$b(r.get());const H=RF(B);return r.set(H),Y.some(vo(H,H.length-1))},B=>ph(B).map(H=>{if(mA(H,r)){const oe=r.get();return vo(oe,1)}else{$b(r.get());const oe=C5(H,!0);return r.set(oe),vo(oe,1)}}),B=>Ym(B).map(H=>{if(mA(H,r)){const oe=r.get();return vo(oe,oe.length-1)}else{$b(r.get());const oe=C5(H,!1);return r.set(oe),vo(oe,oe.length-1)}}),B=>{$b(r.get());const H=LF(B);return r.set(H),Y.some(vo(H,1))}),IF=(r,g)=>{for(let B=0;B{const B=Ey(g,r);return B||r},BF=(r,g,B)=>{const H=HB(B),oe=DF(g,H.container());return ox(r,oe,H).fold(()=>Sp(oe,H).bind(U(ox,r,oe)).map(be=>Zp.before(be)),Y.none)},aK=(r,g)=>jb(r,g)===null,zF=(r,g,B)=>ox(r,g,B).filter(U(aK,g)),q7=(r,g,B)=>{const H=ZB(B);return zF(r,g,H).bind(oe=>Up(oe,H).isNone()?Y.some(Zp.start(oe)):Y.none())},sK=(r,g,B)=>{const H=HB(B);return zF(r,g,H).bind(oe=>Sp(oe,H).isNone()?Y.some(Zp.end(oe)):Y.none())},lK=(r,g,B)=>{const H=ZB(B),oe=DF(g,H.container());return ox(r,oe,H).fold(()=>Up(oe,H).bind(U(ox,r,oe)).map(be=>Zp.after(be)),Y.none)},NF=r=>!VB(W7(r)),Vy=(r,g,B)=>IF([BF,q7,sK,lK],[r,g,B]).filter(NF),W7=r=>r.fold(Q,Q,Q,Q),FF=r=>r.fold($("before"),$("start"),$("end"),$("after")),gA=r=>r.fold(Zp.before,Zp.before,Zp.after,Zp.after),wS=r=>r.fold(Zp.start,Zp.start,Zp.end,Zp.end),Y7=(r,g)=>FF(r)===FF(g)&&W7(r)===W7(g),cK=(r,g,B,H,oe,be)=>zi(ox(g,B,H),ox(g,B,oe),(Le,Ke)=>Le!==Ke&&jB(B,Le,Ke)?Zp.after(r?Le:Ke):be).getOr(be),uK=(r,g)=>r.fold(q,B=>!Y7(B,g)),fK=(r,g,B,H,oe)=>{const be=Gu(r,oe);return Op(r,B,be).map(U(Gu,r)).fold(()=>H.map(gA),ut=>Vy(g,B,ut).map(U(cK,r,g,B,be,ut)).filter(U(uK,H))).filter(NF)},dK=(r,g)=>r?g.fold(I(Y.some,Zp.start),Y.none,I(Y.some,Zp.after),Y.none):g.fold(Y.none,I(Y.some,Zp.before),Y.none,I(Y.some,Zp.end)),$F=(r,g,B,H)=>{const oe=Gu(r,H),be=Vy(g,B,oe);return Vy(g,B,oe).bind(U(dK,r)).orThunk(()=>fK(r,g,B,be,H))},hK=r=>A(r.selection.getSel().modify),VF=(r,g,B)=>{const H=r?1:-1;return g.setRng(vo(B.container(),B.offset()+H).toRange()),g.getSel().modify("move",r?"forward":"backward","word"),!0},X7=(r,g)=>{const B=g.selection.getRng(),H=r?vo.fromRangeEnd(B):vo.fromRangeStart(B);return hK(g)?r&&s1(H)?VF(!0,g.selection,H):!r&&Um(H)?VF(!1,g.selection,H):!1:!1};var Uy;(function(r){r[r.Br=0]="Br",r[r.Block=1]="Block",r[r.Wrap=2]="Wrap",r[r.Eol=3]="Eol"})(Uy||(Uy={}));const vA=(r,g)=>r===Ef.Backwards?ke(g):g,pK=(r,g,B)=>r===Ef.Forwards?g.next(B):g.prev(B),mK=(r,g,B,H)=>gn(H.getNode(g===Ef.Forwards))?Uy.Br:hm(B,H)===!1?Uy.Block:Uy.Wrap,UF=(r,g,B,H)=>{const oe=k0(B);let be=H;const Le=[];for(;be;){const Ke=pK(g,oe,be);if(!Ke)break;if(gn(Ke.getNode(!1)))return g===Ef.Forwards?{positions:vA(g,Le).concat([Ke]),breakType:Uy.Br,breakAt:Y.some(Ke)}:{positions:vA(g,Le),breakType:Uy.Br,breakAt:Y.some(Ke)};if(!Ke.isVisible()){be=Ke;continue}if(r(be,Ke)){const ut=mK(B,g,be,Ke);return{positions:vA(g,Le),breakType:ut,breakAt:Y.some(Ke)}}Le.push(Ke),be=Ke}return{positions:vA(g,Le),breakType:Uy.Eol,breakAt:Y.none()}},jF=(r,g,B,H)=>g(B,H).breakAt.map(oe=>{const be=g(B,oe).positions;return r===Ef.Backwards?be.concat(oe):[oe].concat(be)}).getOr([]),G7=(r,g)=>Ie(r,(B,H)=>B.fold(()=>Y.some(H),oe=>zi(Ye(oe.getClientRects()),Ye(H.getClientRects()),(be,Le)=>{const Ke=Math.abs(g-be.left);return Math.abs(g-Le.left)<=Ke?H:oe}).or(B)),Y.none()),iO=(r,g)=>Ye(g.getClientRects()).bind(B=>G7(r,B.left)),W2=U(UF,vo.isAbove,-1),A5=U(UF,vo.isBelow,1),QF=U(jF,-1,W2),M5=U(jF,1,A5),HF=(r,g)=>W2(r,g).breakAt.isNone(),ZF=(r,g)=>A5(r,g).breakAt.isNone(),gK=r=>ph(r).map(g=>[g].concat(A5(r,g).positions)).getOr([]),vK=r=>Ym(r).map(g=>W2(r,g).positions.concat(g)).getOr([]),yK=(r,g)=>iO(QF(r,g),g),bK=(r,g)=>iO(M5(r,g),g),xK=In,qF=(r,g)=>Math.abs(r.left-g),WF=(r,g)=>Math.abs(r.right-g),_K=r=>cn(r,"node"),YF=(r,g)=>it(r,(B,H)=>{const oe=Math.min(qF(B,g),WF(B,g)),be=Math.min(qF(H,g),WF(H,g));return be===oe&&_K(H)&&xK(H.node)||be{const g=B=>ye(B,H=>{const oe=l1(H);return oe.node=r,oe});if(ne(r))return g(r.getClientRects());if(Mt(r)){const B=r.ownerDocument.createRange();return B.setStart(r,0),B.setEnd(r,r.data.length),g(B.getClientRects())}else return[]},I0=r=>$e(r,Lfe);var aO;(function(r){r[r.Up=-1]="Up",r[r.Down=1]="Down"})(aO||(aO={}));const XF=(r,g,B,H)=>{let oe=H;for(;oe=y2(oe,r,Cb,g);)if(B(oe))return},K7=(r,g,B,H,oe,be)=>{let Le=0;const Ke=[],ut=un=>{let yn=I0([un]);r===-1&&(yn=yn.reverse());for(let Qn=0;Qn0&&g(rr,Bt(Ke))&&Le++,rr.line=Le,oe(rr))return!0;Ke.push(rr)}}return!1},At=Bt(be.getClientRects());if(!At)return Ke;const nn=be.getNode();return nn&&(ut(nn),XF(r,H,ut,nn)),Ke},wK=(r,g)=>g.line>r,GF=(r,g)=>g.line===r,OK=U(K7,aO.Up,lv,fc),KF=U(K7,aO.Down,fc,lv),JF=r=>Bt(r.getClientRects()),SK=(r,g,B,H)=>{const oe=k0(g);let be,Le,Ke,ut;const At=[];let nn=0;r===1?(be=oe.next,Le=fc,Ke=lv,ut=vo.after(H)):(be=oe.prev,Le=lv,Ke=fc,ut=vo.before(H));const un=JF(ut);do{if(!ut.isVisible())continue;const yn=JF(ut);if(Ke(yn,un))continue;At.length>0&&Le(yn,Bt(At))&&nn++;const Qn=l1(yn);if(Qn.position=ut,Qn.line=nn,B(Qn))return At;At.push(Qn)}while(ut=be(ut));return At},e$=r=>g=>wK(r,g),Y2=r=>g=>GF(r,g),jy=(r,g)=>{r.selection.setRng(g),kk(r,r.selection.getRng())},yA=(r,g,B)=>Y.some(_S(r,g,B)),J7=(r,g,B,H,oe,be)=>{const Le=g===Ef.Forwards,Ke=k0(r.getBody()),ut=U(Z4,Le?Ke.next:Ke.prev),At=Le?H:oe;if(!B.collapsed){const rr=Mh(B);if(be(rr))return Ng(g,r,rr,g===Ef.Backwards,!1);if(B7(r)){const Wn=B.cloneRange();return Wn.collapse(g===Ef.Backwards),Y.from(Wn)}}const nn=xw(g,r.getBody(),B);if(At(nn))return xS(r,nn.getNode(!Le));let un=ut(nn);const yn=Sb(B);if(un)un=Gu(Le,un);else return yn?Y.some(B):Y.none();if(At(un))return Ng(g,r,un.getNode(!Le),Le,!1);const Qn=ut(un);return Qn&&At(Qn)&&p3(un,Qn)?Ng(g,r,Qn.getNode(!Le),Le,!1):yn?yA(r,un.toRange(),!1):Y.none()},bA=(r,g,B,H,oe,be)=>{const Le=xw(g,r.getBody(),B),Ke=Bt(Le.getClientRects()),ut=g===aO.Down,At=r.getBody();if(!Ke)return Y.none();if(B7(r)){const ur=ut?vo.fromRangeEnd(B):vo.fromRangeStart(B);return(ut?bK:yK)(At,ur).orThunk(()=>Y.from(ur)).map(Wr=>Wr.toRange())}const un=(ut?KF:OK)(At,e$(1),Le),yn=Te(un,Y2(1)),Qn=Ke.left,rr=YF(yn,Qn);if(rr&&be(rr.node)){const ur=Math.abs(Qn-rr.left),Tr=Math.abs(Qn-rr.right);return Ng(g,r,rr.node,ur_S(r,ur.toRange(),!1)):Y.none()},e9=(r,g)=>{const B=r.selection.getRng(),H=g?vo.fromRangeEnd(B):vo.fromRangeStart(B),oe=f3(H.container(),r.getBody());if(g){const be=A5(oe,H);return Je(be.positions)}else{const be=W2(oe,H);return Ye(be.positions)}},t$=(r,g,B)=>e9(r,g).filter(B).exists(H=>(r.selection.setRng(H.toRange()),!0)),xA=(r,g)=>{const B=r.dom.createRng();B.setStart(g.container(),g.offset()),B.setEnd(g.container(),g.offset()),r.selection.setRng(B)},n$=(r,g)=>{r?g.setAttribute("data-mce-selected","inline-boundary"):g.removeAttribute("data-mce-selected")},kK=(r,g,B)=>Z7(g,B).map(H=>(xA(r,H),B)),Ife=(r,g,B)=>{const H=vo.fromRangeStart(r);if(r.collapsed)return H;{const oe=vo.fromRangeEnd(r);return B?Up(g,oe).getOr(oe):Sp(g,H).getOr(H)}},Dfe=(r,g,B)=>{const H=r.getBody(),oe=Ife(r.selection.getRng(),H,B),be=U(Nw,r);return $F(B,be,H,oe).bind(Ke=>kK(r,g,Ke))},P1=(r,g,B)=>{const H=ye(Pl(_r.fromDom(g.getRoot()),'*[data-mce-selected="inline-boundary"]'),Le=>Le.dom),oe=Te(H,r),be=Te(B,r);ve(Re(oe,be),U(n$,!1)),ve(Re(be,oe),U(n$,!0))},TK=(r,g)=>{const B=g.get();if(r.selection.isCollapsed()&&!r.composing&&B){const H=vo.fromRangeStart(r.selection.getRng());vo.isTextPosition(H)&&!QB(H)&&(xA(r,gC(B,H)),g.set(null))}},CK=(r,g,B,H)=>{if(g.selection.isCollapsed()){const oe=Te(H,r);ve(oe,be=>{const Le=vo.fromRangeStart(g.selection.getRng());Vy(r,g.getBody(),Le).bind(Ke=>kK(g,B,Ke))})}},X2=(r,g,B)=>Zm(r)?Dfe(r,g,B).isSome():!1,t9=(r,g,B)=>Zm(g)?X7(r,g):!1,AK=r=>{const g=Ar(null),B=U(Nw,r);return r.on("NodeChange",H=>{Zm(r)&&(P1(B,r.dom,H.parents),TK(r,g),CK(B,r,g,H.parents))}),g},_A=U(t9,!0),MK=U(t9,!1),wA=(r,g,B)=>{if(Zm(r)){const H=e9(r,g).getOrThunk(()=>{const oe=r.selection.getRng();return g?vo.fromRangeEnd(oe):vo.fromRangeStart(oe)});return Vy(U(Nw,r),r.getBody(),H).exists(oe=>{const be=gA(oe);return Z7(B,be).exists(Le=>(xA(r,Le),!0))})}else return!1},EK=(r,g)=>{const B=document.createRange();return B.setStart(r.container(),r.offset()),B.setEnd(g.container(),g.offset()),B},PK=r=>zi(ph(r),Ym(r),(g,B)=>{const H=Gu(!0,g),oe=Gu(!1,B);return Sp(r,H).forall(be=>be.isEqual(oe))}).getOr(!0),n9=(r,g)=>B=>Z7(g,B).map(H=>()=>xA(r,H)),r$=(r,g,B,H)=>{const oe=r.getBody(),be=U(Nw,r);r.undoManager.ignore(()=>{r.selection.setRng(EK(B,H)),m6(r),Vy(be,oe,vo.fromRangeStart(r.selection.getRng())).map(wS).bind(n9(r,g)).each(K)}),r.nodeChanged()},hx=(r,g)=>{const B=Ey(g,r);return B||r},RK=(r,g,B,H)=>{const oe=hx(r.getBody(),H.container()),be=U(Nw,r),Le=Vy(be,oe,H);return Le.bind(ut=>B?ut.fold($(Y.some(wS(ut))),Y.none,$(Y.some(gA(ut))),Y.none):ut.fold(Y.none,$(Y.some(gA(ut))),Y.none,$(Y.some(wS(ut))))).map(n9(r,g)).getOrThunk(()=>{const ut=Ub(B,oe,H),At=ut.bind(nn=>Vy(be,oe,nn));return zi(Le,At,()=>ox(be,oe,H).bind(nn=>PK(nn)?Y.some(()=>{T0(r,B,_r.fromDom(nn))}):Y.none())).getOrThunk(()=>At.bind(()=>ut.map(nn=>()=>{B?r$(r,g,H,nn):r$(r,g,nn,H)})))})},r9=(r,g,B)=>{if(r.selection.isCollapsed()&&Zm(r)){const H=vo.fromRangeStart(r.selection.getRng());return RK(r,g,B,H)}return Y.none()},LK=r=>Nu(r)>1,o$=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_r.fromDom(r.selection.getStart()),oe=k1(H,B);return Qe(oe,g).fold($(oe),be=>oe.slice(0,be))},IK=r=>Nu(r)===1,o9=r=>o$(r,g=>r.schema.isBlock(ma(g))||LK(g)),i9=r=>o$(r,g=>r.schema.isBlock(ma(g))),OA=(r,g)=>{const B=U(P6,r);return $e(g,H=>B(H)?[H.dom]:[])},a9=r=>{const g=i9(r);return OA(r,g)},i$=(r,g,B,H)=>{const oe=OA(g,H);if(oe.length===0)T0(g,r,B);else{const be=kz(B.dom,oe);g.selection.setRng(be.toRange())}},a$=(r,g)=>{const B=Te(o9(r),IK);return Je(B).bind(H=>{const oe=vo.fromRangeStart(r.selection.getRng());return Fw(g,oe,H.dom)&&!dk(H)?Y.some(()=>i$(g,r,H,B)):Y.none()})},DK=(r,g)=>{const B=g.parentElement;return gn(g)&&!x(B)&&r.dom.isEmpty(B)},E5=r=>dk(_r.fromDom(r)),P5=(r,g)=>{const B=r.selection.getStart(),H=DK(r,B)||E5(B)?kz(B,g):yY(r.selection.getRng(),g);r.selection.setRng(H.toRange())},s$=(r,g)=>{const B=Re(g,a9(r));B.length>0&&P5(r,B)},s9=r=>Mt(r.startContainer),l$=r=>r.startOffset===0&&s9(r),c$=(r,g)=>{const B=g.startContainer.parentElement;return!x(B)&&P6(r,_r.fromDom(B))},SA=r=>{const g=r.startContainer.parentNode,B=r.endContainer.parentNode;return!x(g)&&!x(B)&&g.isEqualNode(B)},l9=r=>{const g=r.endContainer;return r.endOffset===(Mt(g)?g.length:g.childNodes.length)},R5=r=>SA(r)&&l9(r),BK=r=>!r.endContainer.isEqualNode(r.commonAncestorContainer),u$=r=>R5(r)||BK(r),zK=r=>{const g=r.selection.getRng();return l$(g)&&c$(r,g)&&u$(g)},NK=r=>{if(zK(r)){const g=a9(r);return Y.some(()=>{m6(r),s$(r,g)})}else return Y.none()},kA=(r,g)=>r.selection.isCollapsed()?a$(r,g):NK(r),FK=(r,g)=>Vf(r,B=>Xm(B.dom),B=>g.isBlock(ma(B))),f$=r=>FK(_r.fromDom(r.selection.getStart()),r.schema),Bfe=r=>{const g=r.selection.getRng();return g.collapsed&&(s9(g)||r.dom.isEmpty(g.startContainer))&&!f$(r)},L5=r=>(Bfe(r)&&P5(r,[]),!0),c9=(r,g,B)=>P(B)?Y.some(()=>{r._selectionOverrides.hideFakeCaret(),T0(r,g,_r.fromDom(B))}):Y.none(),$K=(r,g)=>{const B=g?Y3:X3,H=g?Ef.Forwards:Ef.Backwards,oe=xw(H,r.getBody(),r.selection.getRng());return B(oe)?c9(r,g,oe.getNode(!g)):Y.from(Gu(g,oe)).filter(be=>B(be)&&p3(oe,be)).bind(be=>c9(r,g,be.getNode(!g)))},VK=(r,g)=>{const B=r.selection.getNode();return Gr(B)?c9(r,g,B):Y.none()},u9=(r,g)=>r.selection.isCollapsed()?$K(r,g):VK(r,g),UK=r=>cl(r,g=>pn(g.dom)||In(g.dom)).exists(g=>pn(g.dom)),f9=r=>eo(r??"").getOr(0),d$=(r,g)=>{const B=r||$m(g)?"margin":"padding",H=rs(g,"direction")==="rtl"?"-right":"-left";return B+H},h$=(r,g,B,H,oe,be)=>{const Le=d$(B,_r.fromDom(be)),Ke=f9(r.getStyle(be,Le));if(g==="outdent"){const ut=Math.max(0,Ke-H);r.setStyle(be,Le,ut?ut+oe:"")}else{const ut=Ke+H+oe;r.setStyle(be,Le,ut)}},jK=(r,g)=>Oe(g,B=>{const H=d$(xy(r),B),oe=Ri(B,H).map(f9).getOr(0);return r.dom.getContentEditable(B.dom)!=="false"&&oe>0}),G2=r=>{const g=p9(r);return!r.mode.isReadOnly()&&(g.length>1||jK(r,g))},d9=r=>d0(r)||av(r),h9=r=>jc(r).exists(d9),p9=r=>Te(xu(r.selection.getSelectedBlocks()),g=>!d9(g)&&!h9(g)&&UK(g)),TA=(r,g)=>{var B,H;const{dom:oe}=r,be=x0(r),Le=(H=(B=/[a-z%]+$/i.exec(be))===null||B===void 0?void 0:B[0])!==null&&H!==void 0?H:"px",Ke=f9(be),ut=xy(r);ve(p9(r),At=>{h$(oe,g,ut,Ke,Le,At.dom)})},K2=r=>TA(r,"indent"),m9=r=>TA(r,"outdent"),Ug=r=>{if(r.selection.isCollapsed()&&G2(r)){const g=r.dom,B=r.selection.getRng(),H=vo.fromRangeStart(B),oe=g.getParent(B.startContainer,g.isBlock);if(oe!==null&&Ka(_r.fromDom(oe),H,r.schema))return Y.some(()=>m9(r))}return Y.none()},J2=(r,g,B)=>Fe([Ug,S5,Fy,(H,oe)=>r9(H,g,oe),ux,$k,Vg,u9,hA,kA,j7],H=>H(r,B)).filter(H=>r.selection.isEditable()),g9=(r,g)=>{J2(r,g,!1).fold(()=>{r.selection.isEditable()&&(m6(r),J3(r))},K)},QK=(r,g)=>{J2(r,g,!0).fold(()=>{r.selection.isEditable()&&B2(r)},K)},p$=(r,g)=>{r.addCommand("delete",()=>{g9(r,g)}),r.addCommand("forwardDelete",()=>{QK(r,g)})},m$=5,HK=400,g$=r=>r.touches===void 0||r.touches.length!==1?Y.none():Y.some(r.touches[0]),ZK=(r,g)=>{const B=Math.abs(r.clientX-g.x),H=Math.abs(r.clientY-g.y);return B>m$||H>m$},qK=r=>{const g=Ts(),B=Ar(!1),H=jh(oe=>{r.dispatch("longpress",{...oe,type:"longpress"}),B.set(!0)},HK);r.on("touchstart",oe=>{g$(oe).each(be=>{H.cancel();const Le={x:be.clientX,y:be.clientY,target:oe.target};H.throttle(oe),B.set(!1),g.set(Le)})},!0),r.on("touchmove",oe=>{H.cancel(),g$(oe).each(be=>{g.on(Le=>{ZK(be,Le)&&(g.clear(),B.set(!1),r.dispatch("longpresscancel"))})})},!0),r.on("touchend touchcancel",oe=>{H.cancel(),oe.type!=="touchcancel"&&g.get().filter(be=>be.target.isEqualNode(oe.target)).each(()=>{B.get()?oe.preventDefault():r.dispatch("tap",{...oe,type:"tap"})})},!0)},CA=(r,g)=>Ot(r,g.nodeName),WK=(r,g)=>Mt(g)?!0:ne(g)?!CA(r.getBlockElements(),g)&&!pm(g)&&!lh(r,g)&&!ys(g):!1,YK=(r,g,B)=>de(OB(_r.fromDom(B),_r.fromDom(g)),H=>CA(r,H.dom)),OS=(r,g)=>{if(Mt(g)){if(g.data.length===0)return!0;if(/^\s+$/.test(g.data))return!g.nextSibling||CA(r,g.nextSibling)||ys(g.nextSibling)}return!1},SS=r=>r.dom.create(tu(r),qd(r)),v$=r=>{const g=r.dom,B=r.selection,H=r.schema,oe=H.getBlockElements(),be=B.getStart(),Le=r.getBody();let Ke,ut,At=null;const nn=tu(r);if(!be||!ne(be))return;const un=Le.nodeName.toLowerCase();if(!H.isValidChild(un,nn.toLowerCase())||YK(oe,Le,be))return;if(Le.firstChild===Le.lastChild&&gn(Le.firstChild)){Ke=SS(r),Ke.appendChild(sv().dom),Le.replaceChild(Ke,Le.firstChild),r.selection.setCursorLocation(Ke,0),r.nodeChanged();return}let yn=Le.firstChild;for(;yn;)if(ne(yn)&&ul(H,yn),WK(H,yn)){if(OS(oe,yn)){ut=yn,yn=yn.nextSibling,g.remove(ut);continue}if(!Ke){if(!At&&r.hasFocus()&&(At=pA(r.selection.getRng(),()=>document.createElement("span"))),!yn.parentNode){yn=null;break}Ke=SS(r),Le.insertBefore(Ke,yn)}ut=yn,yn=yn.nextSibling,Ke.appendChild(ut)}else Ke=null,yn=yn.nextSibling;At&&(r.selection.setRng(MF(At)),r.nodeChanged())},v9=(r,g,B)=>{const H=_r.fromDom(SS(r)),oe=sv();ii(H,oe),B(g,H);const be=document.createRange();return be.setStartBefore(oe.dom),be.setEndBefore(oe.dom),be},y9=r=>{r.on("NodeChange",()=>v$(r))},y$=r=>g=>(" "+g.attr("class")+" ").indexOf(r)!==-1,XK=(r,g,B)=>function(H){const oe=arguments,be=oe[oe.length-2],Le=be>0?g.charAt(be-1):"";if(Le==='"')return H;if(Le===">"){const Ke=g.lastIndexOf("<",be);if(Ke!==-1&&g.substring(Ke,be).indexOf('contenteditable="false"')!==-1)return H}return''+r.dom.encode(typeof oe[1]=="string"?oe[1]:oe[0])+""},GK=(r,g,B)=>{let H=g.length,oe=B.content;if(B.format!=="raw"){for(;H--;)oe=oe.replace(g[H],XK(r,oe,pw(r)));B.content=oe}},KK=(r,g)=>Oe(r,B=>{const H=g.match(B);return H!==null&&H[0].length===g.length}),JK=r=>{const g="contenteditable",B=" "+To.trim(mw(r))+" ",H=" "+To.trim(pw(r))+" ",oe=y$(B),be=y$(H),Le=wp(r);Le.length>0&&r.on("BeforeSetContent",Ke=>{GK(r,Le,Ke)}),r.parser.addAttributeFilter("class",Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];oe(At)?At.attr(g,"true"):be(At)&&At.attr(g,"false")}}),r.serializer.addAttributeFilter(g,Ke=>{let ut=Ke.length;for(;ut--;){const At=Ke[ut];if(!oe(At)&&!be(At))continue;const nn=At.attr("data-mce-content");Le.length>0&&nn?KK(Le,nn)?(At.name="#text",At.type=3,At.raw=!0,At.value=nn):At.remove():At.attr(g,null)}})},eJ=r=>wi(_r.fromDom(r.getBody()),"*[data-mce-caret]").map(g=>g.dom).getOrNull(),b$=(r,g)=>{g.hasAttribute("data-mce-caret")&&(Ah(g),r.selection.setRng(r.selection.getRng()),r.selection.scrollIntoView(g))},x$=(r,g)=>{const B=eJ(r);if(B){if(g.type==="compositionstart"){g.preventDefault(),g.stopPropagation(),b$(r,B);return}GO(B)&&(b$(r,B),r.undoManager.add())}},tJ=r=>{r.on("keyup compositionstart",U(x$,r))},_$=In,jg=(r,g,B)=>J7(g,r,B,I2,D2,_$),nJ=(r,g,B)=>bA(g,r,B,be=>I2(be)||wB(be),be=>D2(be)||Ek(be),_$),b9=r=>{const g=r.dom.create(tu(r));return g.innerHTML='
    ',g},x9=(r,g,B)=>{const H=k0(r.getBody()),oe=U(Z4,g===1?H.next:H.prev);if(B.collapsed){const be=r.dom.getParent(B.startContainer,"PRE");if(!be)return;if(!oe(vo.fromRangeStart(B))){const Ke=_r.fromDom(b9(r));g===1?Kc(_r.fromDom(be),Ke):xc(_r.fromDom(be),Ke),r.selection.select(Ke.dom,!0),r.selection.collapse()}}},_9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return jg(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},rJ=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return nJ(B,r,H).orThunk(()=>(x9(r,B,H),Y.none()))},oJ=(r,g)=>{const B=g?r.getEnd(!0):r.getStart(!0);return VB(B)?!g:g},w$=(r,g)=>_9(r,oJ(r.selection,g)).exists(B=>(jy(r,B),!0)),O$=(r,g)=>rJ(r,g).exists(B=>(jy(r,B),!0)),S$=(r,g)=>t$(r,g,g?D2:I2),I5=(r,g)=>Fg(r,!g).map(B=>{const H=B.toRange(),oe=r.selection.getRng();return g?H.setStart(oe.startContainer,oe.startOffset):H.setEnd(oe.endContainer,oe.endOffset),H}).exists(B=>(jy(r,B),!0)),iJ=r=>ce(["figcaption"],ma(r)),aJ=(r,g,B)=>{const H=U(va,g);return cl(_r.fromDom(r.container()),oe=>B.isBlock(ma(oe)),H).filter(iJ)},D5=(r,g,B)=>g?ZF(r.dom,B):HF(r.dom,B),px=(r,g)=>{const B=_r.fromDom(r.getBody()),H=vo.fromRangeStart(r.selection.getRng());return aJ(H,B,r.schema).exists(()=>{if(D5(B,g,H)){const be=v9(r,B,g?ii:jd);return r.selection.setRng(be),!0}else return!1})},e_=(r,g)=>r.selection.isCollapsed()?px(r,g):!1,AA=(r,g,B)=>{const H=r.selection.getRng(),oe=vo.fromRangeStart(H);return r.getBody().firstChild===g&&HF(B,oe)?(r.execCommand("InsertNewBlockBefore"),!0):!1},w9=(r,g)=>{const B=r.selection.getRng(),H=vo.fromRangeStart(B);return r.getBody().lastChild===g&&ZF(g,H)?(r.execCommand("InsertNewBlockAfter"),!0):!1},O9=(r,g)=>g?Y.from(r.dom.getParent(r.selection.getNode(),"details")).map(B=>w9(r,B)).getOr(!1):Y.from(r.dom.getParent(r.selection.getNode(),"summary")).bind(B=>Y.from(r.dom.getParent(B,"details")).map(H=>AA(r,H,B))).getOr(!1),S9=(r,g)=>O9(r,g),k$={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},T$=r=>ye(r,g=>({...k$,...g})),C$=r=>ye(r,g=>({...k$,...g})),A$=(r,g)=>g.keyCode===r.keyCode&&g.shiftKey===r.shiftKey&&g.altKey===r.altKey&&g.ctrlKey===r.ctrlKey&&g.metaKey===r.metaKey,sJ=(r,g)=>$e(T$(r),B=>A$(B,g)?[B]:[]),lJ=(r,g)=>$e(C$(r),B=>A$(B,g)?[B]:[]),$a=(r,...g)=>()=>r.apply(null,g),B5=(r,g)=>De(sJ(r,g),B=>B.action()),M$=(r,g)=>Fe(lJ(r,g),B=>B.action()),k9=(r,g)=>{const B=g?Ef.Forwards:Ef.Backwards,H=r.selection.getRng();return J7(r,B,H,Y3,X3,Gr).exists(oe=>(jy(r,oe),!0))},T9=(r,g)=>{const B=g?1:-1,H=r.selection.getRng();return bA(r,B,H,Y3,X3,Gr).exists(oe=>(jy(r,oe),!0))},cJ=(r,g)=>t$(r,g,g?X3:Y3),uJ=kl.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),z5={...uJ,none:r=>uJ.none(r)},zfe=(r,g)=>fJ(r,g,q),fJ=(r,g,B)=>$e(vc(r),H=>yd(H,g)?B(H)?[H]:[]:fJ(H,g,B)),dJ=(r,g,B=re)=>{if(B(g))return Y.none();if(ce(r,ma(g)))return Y.some(g);const H=oe=>yd(oe,"table")||B(oe);return ts(g,r.join(","),H)},hJ=(r,g)=>dJ(["td","th"],r,g),Nfe=r=>zfe(r,"th,td"),E$=(r,g)=>bu(r,"table",g),Tp=(r,g,B,H,oe=q)=>{const be=H===1;if(!be&&B<=0)return z5.first(r[0]);if(be&&B>=r.length-1)return z5.last(r[r.length-1]);{const Le=B+H,Ke=r[Le];return oe(Ke)?z5.middle(g,Ke):Tp(r,g,Le,H,oe)}},C9=(r,g)=>E$(r,g).bind(B=>{const H=Nfe(B);return Qe(H,be=>va(r,be)).map(be=>({index:be,all:H}))}),N5=(r,g,B)=>C9(r,B).fold(()=>z5.none(r),oe=>Tp(oe.all,r,oe.index,1,g)),pJ=(r,g,B)=>C9(r,B).fold(()=>z5.none(),oe=>Tp(oe.all,r,oe.index,-1,g)),P$=r=>iv(r).filter(g=>g.trim().length!==0||g.indexOf(Pc)>-1).isSome(),R$=r=>Al(r)&&gu(r,"contenteditable")==="false",A9=["img","br"],mJ=r=>P$(r)||ce(A9,ma(r))||R$(r),gJ=r=>Qc(r,mJ),L$=(r,g)=>({left:r.left-g,top:r.top-g,right:r.right+g*2,bottom:r.bottom+g*2,width:r.width+g,height:r.height+g}),vJ=(r,g)=>$e(g,B=>{const H=L$(l1(B.getBoundingClientRect()),-1);return[{x:H.left,y:r(H),cell:B},{x:H.right,y:r(H),cell:B}]}),yJ=(r,g,B)=>Ie(r,(H,oe)=>H.fold(()=>Y.some(oe),be=>{const Le=Math.sqrt(Math.abs(be.x-g)+Math.abs(be.y-B)),Ke=Math.sqrt(Math.abs(oe.x-g)+Math.abs(oe.y-B));return Y.some(Ke{const be=Pl(_r.fromDom(B),"td,th,caption").map(Ke=>Ke.dom),Le=Te(vJ(r,be),Ke=>g(Ke,oe));return yJ(Le,H,oe).map(Ke=>Ke.cell)},M9=r=>r.bottom,bJ=r=>r.top,xJ=(r,g)=>r.yr.y>g,_J=U(I$,M9,xJ),D$=U(I$,bJ,Ffe),$fe=(r,g)=>Ye(g.getClientRects()).bind(B=>_J(r,B.left,B.top)).bind(B=>iO(vK(B),g)),wJ=(r,g)=>Je(g.getClientRects()).bind(B=>D$(r,B.left,B.top)).bind(B=>iO(gK(B),g)),OJ=(r,g,B)=>B.breakAt.exists(H=>r(g,H).breakAt.isSome()),SJ=r=>r.breakType===Uy.Wrap&&r.positions.length===0,E9=r=>r.breakType===Uy.Br&&r.positions.length===1,F5=(r,g,B)=>{const H=r(g,B);return SJ(H)||!gn(B.getNode())&&E9(H)?!OJ(r,g,H):H.breakAt.isNone()},B$=U(F5,W2),z$=U(F5,A5),kJ=(r,g,B)=>{const H=vo.fromRangeStart(g);return Ry(!r,B).exists(oe=>oe.isEqual(H))},TJ=(r,g,B,H)=>{const oe=r.selection.getRng(),be=g?1:-1;return NM()&&kJ(g,oe,B)?(Ng(be,r,B,!g,!1).each(Le=>{jy(r,Le)}),!0):!1},P9=(r,g,B)=>$fe(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(QF(r,vo.before(g)),H.left))).getOr(vo.before(g)),CJ=(r,g,B)=>wJ(g,B).orThunk(()=>Ye(B.getClientRects()).bind(H=>G7(M5(r,vo.after(g)),H.left))).getOr(vo.after(g)),N$=(r,g)=>{const B=g.getNode(r);return dt(B)?Y.some(B):Y.none()},AJ=(r,g,B)=>{g.undoManager.transact(()=>{const H=r?Kc:xc,oe=v9(g,_r.fromDom(B),H);jy(g,oe)})},F$=(r,g,B)=>{const H=N$(!!g,B),oe=g===!1;H.fold(()=>jy(r,B.toRange()),be=>Ry(oe,r.getBody()).filter(Le=>Le.isEqual(B)).fold(()=>jy(r,B.toRange()),Le=>AJ(g,r,be)))},R1=(r,g,B,H)=>{const oe=r.selection.getRng(),be=vo.fromRangeStart(oe),Le=r.getBody();if(!g&&B$(H,be)){const Ke=P9(Le,B,be);return F$(r,g,Ke),!0}else if(g&&z$(H,be)){const Ke=CJ(Le,B,be);return F$(r,g,Ke),!0}else return!1},R9=(r,g,B)=>Y.from(r.dom.getParent(r.selection.getNode(),"td,th")).bind(H=>Y.from(r.dom.getParent(H,"table")).map(oe=>B(r,g,oe,H))).getOr(!1),L9=(r,g)=>R9(r,g,TJ),$$=(r,g)=>R9(r,g,R1),Vfe=r=>{const g=E2.exact(r,0,r,0);return Ce(g)},MJ=(r,g,B)=>B.fold(Y.none,Y.none,(H,oe)=>gJ(oe).map(be=>Vfe(be)),H=>(r.execCommand("mceTableInsertRowAfter"),EJ(r,g,H))),EJ=(r,g,B)=>MJ(r,g,N5(B,Ol)),PJ=(r,g,B)=>MJ(r,g,pJ(B,Ol)),$5=(r,g)=>{const B=["table","li","dl"],H=_r.fromDom(r.getBody()),oe=Ke=>{const ut=ma(Ke);return va(Ke,H)||ce(B,ut)},be=r.selection.getRng(),Le=_r.fromDom(g?be.endContainer:be.startContainer);return hJ(Le,oe).map(Ke=>(E$(Ke,oe).each(nn=>{r.model.table.clearSelectedCells(nn.dom)}),r.selection.collapse(!g),(g?EJ:PJ)(r,oe,Ke).each(nn=>{r.selection.setRng(nn)}),!0)).getOr(!1)},RJ=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.RIGHT,action:$a(w$,r,!0)},{keyCode:Jo.LEFT,action:$a(w$,r,!1)},{keyCode:Jo.UP,action:$a(O$,r,!1)},{keyCode:Jo.DOWN,action:$a(O$,r,!0)},...H?[{keyCode:Jo.UP,action:$a(I5,r,!1),metaKey:!0,shiftKey:!0},{keyCode:Jo.DOWN,action:$a(I5,r,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Jo.RIGHT,action:$a(L9,r,!0)},{keyCode:Jo.LEFT,action:$a(L9,r,!1)},{keyCode:Jo.UP,action:$a($$,r,!1)},{keyCode:Jo.DOWN,action:$a($$,r,!0)},{keyCode:Jo.UP,action:$a($$,r,!1)},{keyCode:Jo.UP,action:$a(S9,r,!1)},{keyCode:Jo.DOWN,action:$a(S9,r,!0)},{keyCode:Jo.RIGHT,action:$a(k9,r,!0)},{keyCode:Jo.LEFT,action:$a(k9,r,!1)},{keyCode:Jo.UP,action:$a(T9,r,!1)},{keyCode:Jo.DOWN,action:$a(T9,r,!0)},{keyCode:Jo.RIGHT,action:$a(X2,r,g,!0)},{keyCode:Jo.LEFT,action:$a(X2,r,g,!1)},{keyCode:Jo.RIGHT,ctrlKey:!H,altKey:H,action:$a(_A,r,g)},{keyCode:Jo.LEFT,ctrlKey:!H,altKey:H,action:$a(MK,r,g)},{keyCode:Jo.UP,action:$a(e_,r,!1)},{keyCode:Jo.DOWN,action:$a(e_,r,!0)}],B).each(oe=>{B.preventDefault()})},I9=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||RJ(r,g,B)})},L1=(r,g)=>({container:r,offset:g}),V5=cc.DOM,U5=r=>g=>r===g?-1:0,LJ=r=>g=>r.isBlock(g)||ce(["BR","IMG","HR","INPUT"],g.nodeName)||r.getContentEditable(g)==="false",D9=(r,g,B)=>{if(Mt(r)&&g>=0)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.backwards(r,g,U5(r),B)).map(oe=>L1(oe.container,oe.container.data.length))}},IJ=(r,g,B)=>{if(Mt(r)&&g>=r.length)return Y.some(L1(r,g));{const H=Cg(V5);return Y.from(H.forwards(r,g,U5(r),B)).map(oe=>L1(oe.container,0))}},B9=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g>=0&&g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.backwards(r,g,U5(r),B)).bind(be=>{const Le=be.container.data;return B9(be.container,g+Le.length,B)})}},j5=(r,g,B)=>{if(!Mt(r))return Y.none();const H=r.data;if(g<=H.length)return Y.some(L1(r,g));{const oe=Cg(V5);return Y.from(oe.forwards(r,g,U5(r),B)).bind(be=>j5(be.container,g-H.length,B))}},z9=(r,g,B,H,oe)=>{const be=Cg(r,LJ(r));return Y.from(be.backwards(g,B,H,oe))},DJ=r=>r.collapsed&&Mt(r.startContainer),BJ=r=>Sd(r.toString().replace(/\u00A0/g," ")),MA=r=>r!==""&&`  \f +\r \v`.indexOf(r)!==-1,zJ=(r,g)=>r.substring(g.length),NJ=(r,g,B,H=!1)=>{let oe;const be=B.charAt(0);for(oe=g-1;oe>=0;oe--){const Le=r.charAt(oe);if(!H&&MA(Le))return Y.none();if(be===Le&&tr(r,B,oe,g))break}return Y.some(oe)},EA=(r,g,B,H=!1)=>{if(!DJ(g))return Y.none();const oe={text:"",offset:0},be=(Ke,ut,At)=>(oe.text=At+oe.text,oe.offset+=ut,NJ(oe.text,oe.offset,B,H).getOr(ut)),Le=r.getParent(g.startContainer,r.isBlock)||r.getRoot();return z9(r,g.startContainer,g.startOffset,be,Le).bind(Ke=>{const ut=g.cloneRange();if(ut.setStart(Ke.container,Ke.offset),ut.setEnd(g.endContainer,g.endOffset),ut.collapsed)return Y.none();const At=BJ(ut);return At.lastIndexOf(B)!==0?Y.none():Y.some({text:zJ(At,B),range:ut,trigger:B})})},FJ=r=>r.nodeType===_s,$J=r=>r.nodeType===zf,V$=r=>{if(FJ(r))return L1(r,r.data.length);{const g=r.childNodes;return g.length>0?V$(g[g.length-1]):L1(r,g.length)}},U$=(r,g)=>{const B=r.childNodes;return B.length>0&&g0&&$J(r)&&B.length===g?V$(B[B.length-1]):L1(r,g)},VJ=(r,g)=>{var B;const H=(B=r.getParent(g.container,r.isBlock))!==null&&B!==void 0?B:r.getRoot();return z9(r,g.container,g.offset,(oe,be)=>be===0?-1:be,H).filter(oe=>{const be=oe.container.data.charAt(oe.offset-1);return!MA(be)}).isSome()},UJ=r=>g=>{const B=U$(g.startContainer,g.startOffset);return!VJ(r,B)},N9=(r,g,B)=>Fe(B.triggers,H=>EA(r,g,H)),jJ=(r,g)=>{const B=g(),H=r.selection.getRng();return N9(r.dom,H,B).bind(oe=>F9(r,g,oe))},F9=(r,g,B,H={})=>{var oe;const be=g(),Ke=(oe=r.selection.getRng().startContainer.nodeValue)!==null&&oe!==void 0?oe:"",ut=Te(be.lookupByTrigger(B.trigger),nn=>B.text.length>=nn.minChars&&nn.matches.getOrThunk(()=>UJ(r.dom))(B.range,Ke,B.text));if(ut.length===0)return Y.none();const At=Promise.all(ye(ut,nn=>nn.fetch(B.text,nn.maxResults,H).then(yn=>({matchText:B.text,items:yn,columns:nn.columns,onAction:nn.onAction,highlightOn:nn.highlightOn}))));return Y.some({lookupData:At,context:B})};var Bv;(function(r){r[r.Error=0]="Error",r[r.Value=1]="Value"})(Bv||(Bv={}));const $9=(r,g,B)=>r.stype===Bv.Error?g(r.serror):B(r.svalue),QJ=r=>{const g=[],B=[];return ve(r,H=>{$9(H,oe=>B.push(oe),oe=>g.push(oe))}),{values:g,errors:B}},HJ=(r,g)=>r.stype===Bv.Error?{stype:Bv.Error,serror:g(r.serror)}:r,ZJ=(r,g)=>r.stype===Bv.Value?{stype:Bv.Value,svalue:g(r.svalue)}:r,qJ=(r,g)=>r.stype===Bv.Value?g(r.svalue):r,Dd=(r,g)=>r.stype===Bv.Error?g(r.serror):r,j$=r=>({stype:Bv.Value,svalue:r}),Q$=r=>({stype:Bv.Error,serror:r}),vh={fromResult:r=>r.fold(Q$,j$),toResult:r=>$9(r,Vs.error,Vs.value),svalue:j$,partition:QJ,serror:Q$,bind:qJ,bindError:Dd,map:ZJ,mapError:HJ,fold:$9},PA=r=>_(r)&&tt(r).length>100?" removed due to size":JSON.stringify(r,null,2),t_=r=>{const g=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:$("... (only showing first ten failures)")}]):r;return ye(g,B=>"Failed path: ("+B.path.join(" > ")+`) +`+B.getErrorInfo())},kS=(r,g)=>vh.serror([{path:r,getErrorInfo:g}]),H$=(r,g,B)=>kS(r,()=>'Could not find valid *required* value for "'+g+'" in '+PA(B)),V9=(r,g)=>kS(r,()=>'Choice schema did not contain choice key: "'+g+'"'),U9=(r,g,B)=>kS(r,()=>'The chosen schema: "'+B+'" did not exist in branches: '+PA(g)),j9=(r,g)=>kS(r,$(g)),Z$=(r,g,B,H)=>Et(B,H).fold(()=>U9(r,B,H),be=>be.extract(r.concat(["branch: "+H]),g)),RA=(r,g)=>({extract:(oe,be)=>Et(be,r).fold(()=>V9(oe,r),Ke=>Z$(oe,be,g,Ke)),toString:()=>"chooseOn("+r+"). Possible values: "+tt(g)}),LA=(r,g)=>g,Q5=(r,g)=>O(r)&&O(g)?ng(r,g):g,TS=r=>(...g)=>{if(g.length===0)throw new Error("Can't merge zero objects");const B={};for(let H=0;H({tag:"required",process:{}}),q$=r=>({tag:"defaultedThunk",process:r}),W$=r=>q$($(r)),Y$=()=>({tag:"option",process:{}}),YJ=(r,g)=>r.length>0?vh.svalue(ng(g,CS.apply(void 0,r))):vh.svalue(g),X$=r=>I(vh.serror,Ve)(r),XJ={consolidateObj:(r,g)=>{const B=vh.partition(r);return B.errors.length>0?X$(B.errors):YJ(B.values,g)},consolidateArr:r=>{const g=vh.partition(r);return g.errors.length>0?X$(g.errors):vh.svalue(g.values)}},GJ=(r,g,B,H)=>({tag:"field",key:r,newKey:g,presence:B,prop:H}),KJ=(r,g)=>({tag:"custom",newKey:r,instantiator:g}),G$=(r,g,B)=>{switch(r.tag){case"field":return g(r.key,r.newKey,r.presence,r.prop);case"custom":return B(r.newKey,r.instantiator)}},H9=r=>{const g=(H,oe)=>vh.bindError(r(oe),be=>j9(H,be)),B=$("val");return{extract:g,toString:B}},JJ=H9(vh.svalue),eee=(r,g,B,H)=>Et(g,B).fold(()=>H$(r,B,g),H),K$=(r,g,B,H)=>{const oe=Et(r,g).getOrThunk(()=>B(r));return H(oe)},tee=(r,g,B)=>B(Et(r,g)),nee=(r,g,B,H)=>{const oe=Et(r,g).map(be=>be===!0?B(r):be);return H(oe)},ree=(r,g,B,H,oe)=>{const be=Ke=>oe.extract(g.concat([H]),Ke),Le=Ke=>Ke.fold(()=>vh.svalue(Y.none()),ut=>{const At=oe.extract(g.concat([H]),ut);return vh.map(At,Y.some)});switch(r.tag){case"required":return eee(g,B,H,be);case"defaultedThunk":return K$(B,H,r.process,be);case"option":return tee(B,H,Le);case"defaultedOptionThunk":return nee(B,H,r.process,Le);case"mergeWithThunk":return K$(B,H,$({}),Ke=>{const ut=ng(r.process(B),Ke);return be(ut)})}},oee=(r,g,B)=>{const H={},oe=[];for(const be of B)G$(be,(Le,Ke,ut,At)=>{const nn=ree(ut,r,g,Le,At);vh.fold(nn,un=>{oe.push(...un)},un=>{H[Ke]=un})},(Le,Ke)=>{H[Le]=Ke(g)});return oe.length>0?vh.serror(oe):vh.svalue(H)},Z9=r=>({extract:(H,oe)=>oee(H,oe,r),toString:()=>`obj{ +`+ye(r,oe=>G$(oe,(be,Le,Ke,ut)=>be+" -> "+ut.toString(),(be,Le)=>"state("+be+")")).join(` +`)+"}"}),q9=r=>({extract:(H,oe)=>{const be=ye(oe,(Le,Ke)=>r.extract(H.concat(["["+Ke+"]"]),Le));return XJ.consolidateArr(be)},toString:()=>"array("+r.toString()+")"}),J$=r=>H9(g=>r(g).fold(vh.serror,vh.svalue)),eV=(r,g,B)=>{const H=g.extract([r],B);return vh.mapError(H,oe=>({input:B,errors:oe}))},iee=(r,g,B)=>vh.toResult(eV(r,g,B)),aee=r=>`Errors: `+t_(r.errors).join(` `)+` -Input object: `+EA(r.input),eV=(r,g)=>PA(r,ht(g,Z9)),aee=$(KJ),H5=(r,g)=>H9(B=>{const H=typeof B;return r(B)?vh.svalue(B):vh.serror(`Expected type: ${g} but got: ${H}`)}),see=H5(L,"number"),Z5=H5(v,"string"),lee=H5(R,"boolean"),IA=H5(A,"function"),AS=XJ,tV=GJ,cee=r=>K$(g=>ce(r,g)?Vs.value(g):Vs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),nV=(r,g)=>AS(r,r,Q9(),g),rV=r=>nV(r,Z5),W9=r=>nV(r,IA),uee=(r,g)=>AS(r,r,Q9(),q9(g)),Y9=(r,g)=>AS(r,r,W$(),g),q5=r=>Y9(r,Z5),fee=r=>Y9(r,IA),dee=(r,g)=>AS(r,r,q$(g),aee()),sO=(r,g,B)=>AS(r,r,q$(g),B),oV=(r,g)=>sO(r,g,see),hee=(r,g)=>sO(r,g,Z5),iV=(r,g,B)=>sO(r,g,cee(B)),DA=(r,g)=>sO(r,g,lee),BA=(r,g)=>sO(r,g,IA),pee=(r,g,B)=>sO(r,g,q9(B)),mee=rV("type"),gee=W9("fetch"),X9=W9("onAction"),vee=BA("onSetup",()=>k),yee=q5("text"),bee=q5("icon"),xee=q5("tooltip"),Ufe=q5("label"),_ee=DA("active",!1),zA=DA("enabled",!0),G9=DA("primary",!1),aV=r=>dee("columns",r),W5=r=>hee("type",r),sV=Z9([mee,rV("trigger"),oV("minChars",1),aV(1),oV("maxResults",10),fee("matches"),gee,X9,pee("highlightOn",[],Z5)]),lV=r=>oee("Autocompleter",sV,r),K9=[zA,xee,bee,yee,vee],cV=[_ee].concat(K9),wee=[BA("predicate",re),iV("scope","node",["node","editor"]),iV("position","selection",["node","selection","line"])],uV=K9.concat([W5("contextformbutton"),G9,X9,tV("original",Q)]),Oee=cV.concat([W5("contextformbutton"),G9,X9,tV("original",Q)]),J9=K9.concat([W5("contextformbutton")]),See=cV.concat([W5("contextformtogglebutton")]),kee=eV("type",{contextformbutton:uV,contextformtogglebutton:Oee});Z9([W5("contextform"),BA("initValue",$("")),Ufe,uee("commands",kee),Y9("launch",eV("type",{contextformbutton:J9,contextformtogglebutton:See}))].concat(wee));const Tee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Le=>lV(Le).fold(Ke=>{throw new Error(iee(Ke))},Q)),H=Pn(ln(B,Le=>Le.trigger)),oe=tn(B);return{dataset:B,triggers:H,lookupByTrigger:Le=>Te(oe,Ke=>Ke.trigger===Le)}},fV=(r,g)=>{const B=jh(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const oe=H.which;oe===8?B.throttle():oe===27?(B.cancel(),g.cancelIfNecessary()):(oe===38||oe===40)&&B.cancel()},!0),r.on("remove",B.cancel)},Cee=r=>{const g=Ts(),B=Ar(!1),H=g.isSet,oe=()=>{H()&&(HC(r),B.set(!1),g.clear())},be=un=>{H()||g.set({trigger:un.trigger,matchLength:un.text.length})},Le=_t(()=>Tee(r)),Ke=un=>g.get().map(yn=>MA(r.dom,r.selection.getRng(),yn.trigger,!0).bind(Qn=>F9(r,Le,Qn,un))).getOrThunk(()=>UJ(r,Le)),ut=un=>{Ke(un).fold(oe,yn=>{be(yn.context),yn.lookupData.then(Qn=>{g.get().map(rr=>{const Wn=yn.context;rr.trigger===Wn.trigger&&(g.set({...rr,matchLength:Wn.text.length}),B.get()?(QC(r,{range:Wn.range}),jC(r,{lookupData:Qn})):(B.set(!0),QC(r,{range:Wn.range}),iE(r,{lookupData:Qn})))})})})},At=(un,yn)=>{const Qn=un.compareBoundaryPoints(window.Range.START_TO_START,yn),rr=un.compareBoundaryPoints(window.Range.END_TO_END,yn);return Qn>=0&&rr<=0},nn=()=>g.get().bind(({trigger:un})=>{const yn=r.selection.getRng();return MA(r.dom,yn,un,B.get()).filter(({range:Qn})=>At(yn,Qn)).map(({range:Qn})=>Qn)});r.addCommand("mceAutocompleterReload",(un,yn)=>{const Qn=_(yn)?yn.fetchOptions:{};ut(Qn)}),r.addCommand("mceAutocompleterClose",oe),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{nn().each(un=>{QC(r,{range:un})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>nn().isSome()),fV(r,{cancelIfNecessary:oe,load:ut})},Aee=zn().browser.isSafari(),dV=r=>xp(_r.fromDom(r)),hV=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},qf=(r,g)=>Y.from(r.getParent(g.container(),"details")),zv=(r,g)=>qf(r,g).isSome(),Mee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const oe=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:oe,startDetails:B,endDetails:H})}else return Y.none()},Qfe=(r,g)=>ph(g).exists(B=>B.isEqual(r)),Eee=(r,g)=>Ym(g).exists(B=>gn(B.getNode())&&Up(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),Pee=(r,g)=>g.startSummary.exists(B=>Qfe(r,B)),Ree=(r,g)=>g.startSummary.exists(B=>Eee(r,B)),Lee=(r,g)=>g.startDetails.exists(B=>Up(B,r).forall(H=>g.startSummary.exists(oe=>!oe.contains(r.container())&&oe.contains(H.container())))),pV=(r,g,B)=>B.startDetails.exists(H=>Sp(r,g).forall(oe=>!H.contains(oe.container()))),lO=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},Iee=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const oe=r.dom.select("summary",H)[0];oe&&(B?ph(oe):Ym(oe)).each(Le=>lO(r,Le))}else lO(r,g)},Dee=(r,g)=>{const B=ut=>ut.contains(r.startContainer),H=ut=>ut.contains(r.endContainer),oe=g.startSummary.exists(B),be=g.startSummary.exists(H),Le=g.startDetails.forall(ut=>g.endDetails.forall(At=>ut!==At));return(oe||be)&&!(oe&&be)||Le},mV=(r,g,B)=>{const{dom:H,selection:oe}=r,be=r.getBody();if(B==="character"){const Le=vo.fromRangeStart(oe.getRng()),Ke=H.getParent(Le.container(),H.isBlock),ut=qf(H,Le),At=Ke&&H.isEmpty(Ke),nn=x(Ke==null?void 0:Ke.previousSibling),un=x(Ke==null?void 0:Ke.nextSibling);return At&&(g?un:nn)&&Ub(!g,be,Le).exists(rr=>zv(H,rr)&&!Ds(ut,qf(H,rr)))?!0:Ub(g,be,Le).fold(re,yn=>{const Qn=qf(H,yn);if(zv(H,yn)&&!Ds(ut,Qn)){if(g||Iee(r,yn,!1),Ke&&At){if(g&&nn)return!0;if(!g&&un)return!0;Iee(r,yn,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},Nv=(r,g,B,H)=>{const be=r.selection.getRng(),Le=vo.fromRangeStart(be),Ke=r.getBody();return H==="selection"?Dee(be,g):B?Ree(Le,g)||pV(Ke,Le,g):Pee(Le,g)||Lee(Le,g)},Bee=(r,g,B)=>Mee(r.dom,r.selection.getRng()).fold(()=>mV(r,g,B),H=>Nv(r,H,g,B)||mV(r,g,B)),zee=(r,g,B)=>{const H=r.selection,oe=H.getNode(),be=H.getRng(),Le=vo.fromRangeStart(be);return Wo(oe)?(B==="selection"&&hV(be,oe)||Fw(g,Le,oe)?dV(oe):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ut,anchorOffset:At,focusNode:nn,focusOffset:un}=Ke??{};const yn=()=>{P(ut)&&P(At)&&P(nn)&&P(un)&&(Ke==null||Ke.setBaseAndExtent(ut,At,nn,un))},Qn=()=>{ut=Ke==null?void 0:Ke.anchorNode,At=Ke==null?void 0:Ke.anchorOffset,nn=Ke==null?void 0:Ke.focusNode,un=Ke==null?void 0:Ke.focusOffset},rr=(ur,Tr)=>{ve(ur.childNodes,Wr=>{C3(Wr)&&Tr.appendChild(Wr)})},Wn=r.dom.create("span",{"data-mce-bogus":"1"});rr(oe,Wn),oe.appendChild(Wn),yn(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&hV(H.getRng(),Wn)?dV(oe):(r.execCommand(g?"ForwardDelete":"Delete"),Qn(),rr(Wn,oe),yn()),r.dom.remove(Wn)}),!0):!1},n_=(r,g,B)=>Bee(r,g,B)||Aee&&zee(r,g,B)?Y.some(k):Y.none(),gV=r=>(g,B,H={})=>{const oe=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:oe,currentTarget:oe,eventPhase:Event.AT_TARGET,originalTarget:oe,explicitOriginalTarget:oe,isTrusted:!1,srcElement:oe,cancelable:!1,preventDefault:k,inputType:B},Le=Sh(new InputEvent(r));return g.dispatch(r,{...Le,...be,...H})},cO=gV("input"),D0=gV("beforeinput"),eR=zn(),tR=eR.os,vV=tR.isMacOS()||tR.isiOS(),rR=eR.browser.isFirefox(),yV=(r,g,B)=>{const H=B.keyCode===Jo.BACKSPACE?"deleteContentBackward":"deleteContentForward",oe=r.selection.isCollapsed(),be=oe?"character":"selection",Le=Ke=>oe?Ke?"word":"line":"selection";A$([{keyCode:Jo.BACKSPACE,action:$a(Ug,r)},{keyCode:Jo.BACKSPACE,action:$a(S5,r,!1)},{keyCode:Jo.DELETE,action:$a(S5,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(Ny,r,!1)},{keyCode:Jo.DELETE,action:$a(Ny,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(r9,r,g,!1)},{keyCode:Jo.DELETE,action:$a(r9,r,g,!0)},{keyCode:Jo.BACKSPACE,action:$a($k,r,!1)},{keyCode:Jo.DELETE,action:$a($k,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(n_,r,!1,be)},{keyCode:Jo.DELETE,action:$a(n_,r,!0,be)},...vV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,altKey:!0,action:$a(n_,r,!0,Le(!0))},{keyCode:Jo.BACKSPACE,metaKey:!0,action:$a(n_,r,!1,Le(!1))}]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(n_,r,!0,Le(!0))}],{keyCode:Jo.BACKSPACE,action:$a(Vg,r,!1)},{keyCode:Jo.DELETE,action:$a(Vg,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(u9,r,!1)},{keyCode:Jo.DELETE,action:$a(u9,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(dA,r,!1)},{keyCode:Jo.DELETE,action:$a(dA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(ux,r,!1)},{keyCode:Jo.DELETE,action:$a(ux,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(SA,r,!1)},{keyCode:Jo.DELETE,action:$a(SA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(j7,r,!1)},{keyCode:Jo.DELETE,action:$a(j7,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),D0(r,H).isDefaultPrevented()||(Ke(),cO(r,H))})},bV=(r,g,B)=>B5([{keyCode:Jo.BACKSPACE,action:$a($7,r)},{keyCode:Jo.DELETE,action:$a($7,r)},...vV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,altKey:!0,action:$a(L5,r)},...B?[{keyCode:rR?224:91,action:$a(L5,r)}]:[]]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(L5,r)}]],g),Nee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Jo.BACKSPACE,H.isDefaultPrevented()||yV(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||bV(r,H,B),B=!1})},Fee=r=>{for(;r;){if(ne(r)||Mt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},MS=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=Fee(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Pc),g.firstChild)}const oe=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new Xl(g,g);let Le=g,Ke;for(;Ke=be.current();){if(Mt(Ke)){oe.setStart(Ke,0),oe.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){oe.setStartBefore(Ke),oe.setEndBefore(Ke);break}Le=Ke,Ke=be.next()}Ke||(oe.setStart(Le,0),oe.setEnd(Le,0))}else gn(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)):(oe.setStart(g,0),oe.setEnd(g,0));r.selection.setRng(oe),kk(r,oe)},Y5=(r,g)=>{const B=r.getRoot();let H,oe=g;for(;oe!==B&&oe&&r.getContentEditable(oe)!=="false";){if(r.getContentEditable(oe)==="true"){H=oe;break}oe=oe.parentNode}return oe!==B?H:B},oR=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),xV=r=>oR(r).fold($(""),g=>g.nodeName.toUpperCase()),$ee=r=>oR(r).filter(g=>av(_r.fromDom(g))).isSome(),iR=r=>{r.innerHTML='
    '},Vee=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ut=>{const nn={...Gc(_r.fromDom(g)),...ut};H.setStyles(g,nn)});const oe=Y.from(B.class).map(ut=>ut.split(/\s+/)),be=Y.from(g.className).map(ut=>Te(ut.split(/\s+/),At=>At!==""));zi(oe,be,(ut,At)=>{const nn=Te(At,yn=>!ce(ut,yn)),un=[...ut,...nn];H.setAttrib(g,"class",un.join(" "))});const Le=["style","class"],Ke=Yt(B,(ut,At)=>!ce(Le,At));H.setAttribs(g,Ke)},X5=(r,g)=>{if(tu(r).toLowerCase()===g.tagName.toLowerCase()){const H=qd(r);Vee(r,g,H)}},_V=(r,g,B,H,oe=!0,be,Le)=>{const Ke=r.dom,ut=r.schema,At=tu(r),nn=B?B.nodeName.toUpperCase():"";let un=g;const yn=ut.getTextInlineElements();let Qn;be||nn==="TABLE"||nn==="HR"?Qn=Ke.create(be||At,Le||{}):Qn=B.cloneNode(!1);let rr=Qn;if(!oe)Ke.setAttrib(Qn,"style",null),Ke.setAttrib(Qn,"class",null);else do if(yn[un.nodeName]){if(Xm(un)||pm(un))continue;const Wn=un.cloneNode(!1);Ke.setAttrib(Wn,"id",""),Qn.hasChildNodes()?(Wn.appendChild(Qn.firstChild),Qn.appendChild(Wn)):(rr=Wn,Qn.appendChild(Wn))}while((un=un.parentNode)&&un!==H);return X5(r,Qn),iR(rr),Qn},wV=(r,g)=>r.dom.getParent(g,po),OV=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const oe=H.parentElement;if(!oe||!B(oe))return po(oe);H=oe}return!1},Uee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===tu(r)&&r.dom.isEmpty(B)&&OV(r.getBody(),B,H=>Ot(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),jee=(r,g,B)=>{var H,oe,be;const Le=g(tu(r)),Ke=wV(r,B);Ke&&(r.dom.insertAfter(Le,Ke),MS(r,Le),((be=(oe=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||oe===void 0?void 0:oe.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},Hfe=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,aR=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},SV=(r,g)=>{const B=r==null?void 0:r.parentNode;return P(B)&&B.nodeName===g},kV=r=>P(r)&&/^(OL|UL|LI)$/.test(r.nodeName),sR=r=>P(r)&&/^(LI|DT|DD)$/.test(r.nodeName),TV=r=>kV(r)&&kV(r.parentNode),NA=r=>{const g=r.parentNode;return sR(g)?g:r},G5=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},CV=r=>Ie(ln(Gc(_r.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Qee=(r,g,B,H,oe)=>{const be=r.dom,Le=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;TV(B)&&(oe="LI");const ut=sR(H)?CV(H):void 0;let At=sR(H)&&ut?g(oe,{style:CV(H)}):g(oe);if(G5(B,H,!0)&&G5(B,H,!1))if(SV(B,"LI")){const nn=NA(B);be.insertAfter(At,nn),aR(B)?be.remove(nn):be.remove(B)}else be.replace(At,B);else if(G5(B,H,!0))SV(B,"LI")?(be.insertAfter(At,NA(B)),At.appendChild(be.doc.createTextNode(" ")),At.appendChild(B)):Ke.insertBefore(At,B),be.remove(H);else if(G5(B,H,!1))be.insertAfter(At,NA(B)),be.remove(H);else{B=NA(B);const nn=Le.cloneRange();nn.setStartAfter(H),nn.setEndAfter(B);const un=nn.extractContents();if(oe==="LI"&&Hfe(un,"LI")){const yn=Te(ye(At.children,_r.fromDom),X(Jl("br")));At=un.firstChild,be.insertAfter(un,B),ve(yn,Qn=>jd(_r.fromDom(At),Qn)),ut&&At.setAttribute("style",ut)}else be.insertAfter(un,B),be.insertAfter(At,B);be.remove(H)}MS(r,At)},Zfe=r=>{ve(Aa(_r.fromDom(r),Ml),g=>{const B=g.dom;B.nodeValue=Sd(B.data)})},up=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Hee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),lR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,cR=(r,g)=>P(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",Zee=(r,g,B)=>{var H;const oe=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&oe.push(be)}let Le=oe.length;for(;Le--;)be=oe[Le],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Hee(r,be))&&r.remove(be)},uR=(r,g,B)=>Mt(g)?r?B===1&&g.data.charAt(B-1)===Ou?0:B:B===g.data.length-1&&g.data.charAt(B)===Ou?g.data.length:B:B,qee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,uR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,uR(!1,r.endContainer,r.endOffset)),g},Wee=r=>{let g=r;do Mt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},FA=(r,g,B,H,oe)=>{var be,Le;const Ke=r.dom,ut=(be=Y5(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let At=Ke.getParent(H,Ke.isBlock);if(!At||!cR(Ke,At)){if(At=At||ut,!At.hasChildNodes()){const Qn=Ke.create(g);return X5(r,Qn),At.appendChild(Qn),B.setStart(Qn,0),B.setEnd(Qn,0),Qn}let nn=H;for(;nn&&nn.parentNode!==At;)nn=nn.parentNode;let un;for(;nn&&!Ke.isBlock(nn);)un=nn,nn=nn.previousSibling;const yn=(Le=un==null?void 0:un.parentElement)===null||Le===void 0?void 0:Le.nodeName;if(un&&yn&&r.schema.isValidChild(yn,g.toLowerCase())){const Qn=un.parentNode,rr=Ke.create(g);for(X5(r,rr),Qn.insertBefore(rr,un),nn=un;nn&&!Ke.isBlock(nn);){const Wn=nn.nextSibling;rr.appendChild(nn),nn=Wn}B.setStart(H,oe),B.setEnd(H,oe)}}return H},Yee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},Xee=(r,g)=>{const B=Lu(r);return T(g)?!1:v(B)?ce(To.explode(B),g.nodeName.toLowerCase()):B},EV={insert:(r,g)=>{let B,H,oe,be,Le=!1;const Ke=r.dom,ut=r.schema,At=ut.getNonEmptyElements(),nn=r.selection.getRng(),un=tu(r),yn=_r.fromDom(nn.startContainer),Qn=gs(yn,nn.startOffset),rr=Qn.exists(Vo=>Al(Vo)&&!Ol(Vo)),Wn=nn.collapsed&&rr,ur=(Vo,Fi)=>_V(r,B,li,Zo,gv(r),Vo,Fi),Tr=Vo=>{const Fi=uR(Vo,B,H);if(Mt(B)&&(Vo?Fi>0:Fi{let Vo;return/^(H[1-6]|PRE|FIGURE)$/.test(oe)&&Mi!=="HGROUP"?Vo=ur(un):Vo=ur(),Xee(r,be)&&cR(Ke,be)&&Ke.isEmpty(li,void 0,{includeZwsp:!0})?Vo=Ke.split(be,li):Ke.insertAfter(Vo,li),MS(r,Vo),Vo};fi(Ke,nn).each(Vo=>{nn.setStart(Vo.startContainer,Vo.startOffset),nn.setEnd(Vo.endContainer,Vo.endOffset)}),B=nn.startContainer,H=nn.startOffset;const Qr=!!(g&&g.shiftKey),lo=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Wn&&(Le=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Le&&Mt(B)?H=B.data.length:H=0);const Zo=Y5(Ke,B);if(!Zo||up(r,B))return;Qr||(B=FA(r,un,nn,B,H));let li=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=P(li==null?void 0:li.parentNode)?Ke.getParent(li.parentNode,Ke.isBlock):null,oe=li?li.nodeName.toUpperCase():"";const Mi=be?be.nodeName.toUpperCase():"";if(Mi==="LI"&&!lo){const Vo=be;li=Vo,be=Vo.parentNode,oe=Mi}if(ne(be)&&Uee(r,Qr,li))return jee(r,ur,li);if(/^(LI|DT|DD)$/.test(oe)&&ne(be)&&Ke.isEmpty(li)){Qee(r,ur,be,li,un);return}if(!Wn&&(li===r.getBody()||!cR(Ke,li)))return;const Co=li.parentNode;let yo;if(Wn)yo=ur(un),Qn.fold(()=>{ii(yn,_r.fromDom(yo))},Vo=>{xc(Vo,_r.fromDom(yo))}),r.selection.setCursorLocation(yo,0);else if(Vm(li))yo=Ch(li),Ke.isEmpty(li)&&iR(li),X5(r,yo),MS(r,yo);else if(Tr(!1))yo=Wr();else if(Tr(!0)&&Co){const Vo=vo.fromRangeStart(nn),Fi=Ek(Vo),la=_r.fromDom(li),Ms=u6(la,Vo,r.schema)?TB(la,Vo,r.schema).bind(Vl=>Y.from(Vl.getNode())):Y.none();yo=Co.insertBefore(ur(),li);const wl=lR(li,"HR")||Fi?yo:Ms.getOr(li);MS(r,wl)}else{const Vo=qee(nn).cloneRange();Vo.setEndAfter(li);const Fi=Vo.extractContents();Zfe(Fi),Wee(Fi),yo=Fi.firstChild,Ke.insertAfter(Fi,li),Zee(Ke,At,yo),Yee(Ke,li),Ke.isEmpty(li)&&iR(li),yo.normalize(),Ke.isEmpty(yo)?(Ke.remove(yo),Wr()):(X5(r,yo),MS(r,yo))}Ke.setAttrib(yo,"id",""),r.dispatch("NewBlock",{newBlock:yo})},fakeEventName:"insertParagraph"},qfe=(r,g,B)=>{const H=new Xl(g,B);let oe;const be=r.getNonEmptyElements();for(;oe=H.next();)if(be[oe.nodeName.toLowerCase()]||Mt(oe)&&oe.length>0)return!0;return!1},Gee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),kk(r,H)},Wfe=(r,g)=>{const B=r.selection,H=r.dom,oe=B.getRng();let be,Le=!1;fi(H,oe).each(Qn=>{oe.setStart(Qn.startContainer,Qn.startOffset),oe.setEnd(Qn.endContainer,Qn.endOffset)});let Ke=oe.startOffset,ut=oe.startContainer;if(ne(ut)&&ut.hasChildNodes()){const Qn=Ke>ut.childNodes.length-1;ut=ut.childNodes[Math.min(Ke,ut.childNodes.length-1)]||ut,Qn&&Mt(ut)?Ke=ut.data.length:Ke=0}let At=H.getParent(ut,H.isBlock);const nn=At&&At.parentNode?H.getParent(At.parentNode,H.isBlock):null,un=nn?nn.nodeName.toUpperCase():"",yn=!!(g&&g.ctrlKey);un==="LI"&&!yn&&(At=nn),Mt(ut)&&Ke>=ut.data.length&&(qfe(r.schema,ut,At||H.getRoot())||(be=H.create("br"),oe.insertNode(be),oe.setStartAfter(be),oe.setEndAfter(be),Le=!0)),be=H.create("br"),ue(H,oe,be),Gee(r,be,Le),r.undoManager.add()},Kee=(r,g)=>{const B=_r.fromTag("br");xc(_r.fromDom(g),B),r.undoManager.add()},Jee=(r,g)=>{ete(r.getBody(),g)||Kc(_r.fromDom(g),_r.fromTag("br"));const B=_r.fromTag("br");Kc(_r.fromDom(g),B),Gee(r,B.dom,!1),r.undoManager.add()},Yfe=r=>gn(r.getNode()),ete=(r,g)=>Yfe(vo.after(g))?!0:Sp(r,vo.after(g)).map(B=>gn(B.getNode())).getOr(!1),I1=r=>r&&r.nodeName==="A"&&"href"in r,tte=r=>r.fold(re,I1,I1,re),PV=r=>{const g=U(Nw,r),B=vo.fromRangeStart(r.selection.getRng());return $y(g,r.getBody(),B).filter(tte)},nte=(r,g)=>{g.fold(k,U(Kee,r),U(Jee,r),k)},RV={insert:(r,g)=>{const B=PV(r);B.isSome()?B.each(U(nte,r)):Wfe(r,g)},fakeEventName:"insertLineBreak"},LV=(r,g)=>oR(r).filter(B=>g.length>0&&yd(_r.fromDom(B),g)).isSome(),rte=r=>LV(r,d1(r)),ote=r=>LV(r,t2(r)),_m=kl.generate([{br:[]},{block:[]},{none:[]}]),IV=(r,g)=>ote(r),K5=r=>(g,B)=>$ee(g)===r,DV=(r,g)=>(B,H)=>xV(B)===r.toUpperCase()===g,ite=r=>{const g=Y5(r.dom,r.selection.getStart());return T(g)},J5=r=>DV("pre",r),ate=()=>DV("summary",!0),$A=r=>(g,B)=>Qf(g)===r,BV=(r,g)=>rte(r),VA=(r,g)=>g,zV=r=>{const g=tu(r),B=Y5(r.dom,r.selection.getStart());return P(B)&&r.schema.isValidChild(B.nodeName,g)},NV=r=>{const g=r.selection.getRng(),B=_r.fromDom(g.startContainer),oe=gs(B,g.startOffset).map(be=>Al(be)&&!Ol(be));return g.collapsed&&oe.getOr(!0)},B0=(r,g)=>(B,H)=>Ie(r,(be,Le)=>be&&Le(B,H),!0)?Y.some(g):Y.none(),ste=(r,g)=>LF([B0([IV],_m.none()),B0([J5(!0),ite],_m.none()),B0([ate()],_m.br()),B0([J5(!0),$A(!1),VA],_m.br()),B0([J5(!0),$A(!1)],_m.block()),B0([J5(!0),$A(!0),VA],_m.block()),B0([J5(!0),$A(!0)],_m.br()),B0([K5(!0),VA],_m.br()),B0([K5(!0)],_m.block()),B0([BV],_m.br()),B0([VA],_m.br()),B0([zV],_m.block()),B0([NV],_m.block())],[r,!!(g&&g.shiftKey)]).getOr(_m.none()),ES=(r,g,B)=>{g.selection.isCollapsed()||UW(g),!(P(B)&&D0(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),P(B)&&cO(g,r.fakeEventName))},FV=(r,g)=>{const B=()=>ES(RV,r,g),H=()=>ES(EV,r,g),oe=ste(r,g);switch(Cd(r)){case"linebreak":oe.fold(B,B,k);break;case"block":oe.fold(H,H,k);break;case"invert":oe.fold(H,B,k);break;default:oe.fold(B,H,k);break}},$V=zn(),UA=$V.os.isiOS()&&$V.browser.isSafari(),VV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),s7(r.undoManager),r.undoManager.transact(()=>{FV(r,g)}))},fR=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Mt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},dR=r=>{let g=Y.none();const B=oe=>{g=Y.some(oe.selection.getBookmark()),oe.undoManager.add()},H=(oe,be)=>{oe.undoManager.undo(),g.fold(k,Le=>oe.selection.moveToBookmark(Le)),VV(oe,be),g=Y.none()};r.on("keydown",oe=>{oe.keyCode===Jo.ENTER&&(UA&&fR(r.selection.getRng())?B(r):VV(r,oe))}),r.on("keyup",oe=>{oe.keyCode===Jo.ENTER&&g.each(()=>H(r,oe))})},UV=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.END,action:$a(O$,r,!0)},{keyCode:Jo.HOME,action:$a(O$,r,!1)},...H?[]:[{keyCode:Jo.HOME,action:$a(I5,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Jo.END,action:$a(I5,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Jo.END,action:$a(lJ,r,!0)},{keyCode:Jo.HOME,action:$a(lJ,r,!1)},{keyCode:Jo.END,action:$a(_A,r,!0,g)},{keyCode:Jo.HOME,action:$a(_A,r,!1,g)}],B).each(oe=>{B.preventDefault()})},lte=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||UV(r,g,B)})},Kfe=r=>{r.on("input",g=>{g.isComposing||CW(r)})},r_=zn(),cte=(r,g,B)=>{B5([{keyCode:Jo.PAGE_UP,action:$a(_A,r,!1,g)},{keyCode:Jo.PAGE_DOWN,action:$a(_A,r,!0,g)}],B)},jV=r=>r.stopImmediatePropagation(),QV=r=>r.keyCode===Jo.PAGE_UP||r.keyCode===Jo.PAGE_DOWN,eT=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",jV,!0):!B&&r.get()&&g.off("NodeChange",jV),r.set(B)},HV=(r,g)=>{if(r_.os.isMacOS())return;const B=Ar(!1);r.on("keydown",H=>{QV(H)&&eT(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||cte(r,g,H),QV(H)&&B.get()&&(eT(B,r,!1),r.nodeChanged())})},ZV=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!kE(r.dom,B)))&&g.preventDefault()})},qV=(r,g)=>{const B=g.container(),H=g.offset();return Mt(B)?(B.insertData(H,r),Y.some(vo(B,H+r.length))):h3(g).map(oe=>{const be=_r.fromText(r);return g.isAtEnd()?Kc(oe,be):xc(oe,be),vo(be.dom,r.length)})},hR=U(qV,Pc),WV=U(qV," "),ute=(r,g,B)=>RB(r,g,B)?hR(g):WV(g),fte=r=>g=>g.fold(B=>Up(r.dom,vo.before(B)),B=>ph(B),B=>Ym(B),B=>Sp(r.dom,vo.after(B))),pR=(r,g,B)=>H=>RB(r,H,B)?hR(g):WV(g),jA=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},dte=(r,g)=>r.isEditable(r.getParent(g,"summary")),mR=r=>{const g=vo.fromRangeStart(r.selection.getRng()),B=_r.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(Nw,r),oe=vo.fromRangeStart(r.selection.getRng());return $y(H,r.getBody(),oe).bind(fte(B)).map(be=>()=>pR(B,g,r.schema)(be).each(jA(r)))}else return Y.none()},YV=r=>{const g=()=>{const B=_r.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=vo.fromRangeStart(r.selection.getRng());ute(B,H,r.schema).each(jA(r))};return Bs(Nr.browser.isFirefox()&&r.selection.isEditable()&&dte(r.dom,r.selection.getRng().startContainer),g)},QA=(r,g)=>{A$([{keyCode:Jo.SPACEBAR,action:$a(mR,r)},{keyCode:Jo.SPACEBAR,action:$a(YV,r)}],g).each(B=>{g.preventDefault(),D0(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),cO(r,"insertText",{data:" "}))})},XV=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||QA(r,g)})},GV=r=>f2(r)?[{keyCode:Jo.TAB,action:$a($5,r,!0)},{keyCode:Jo.TAB,shiftKey:!0,action:$a($5,r,!1)}]:[],hte=(r,g)=>{B5([...GV(r)],g).each(B=>{g.preventDefault()})},pte=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||hte(r,g)})},HA=r=>{if(r.addShortcut("Meta+P","","mcePrint"),Cee(r),By(r))return Ar(null);{const g=CK(r);return ZV(r),eJ(r),I9(r,g),Nee(r,g),dR(r),XV(r),Kfe(r),pte(r),lte(r,g),HV(r,g),g}};class KV{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",oe=>{const be=g.selection.getRng(),Le={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(oe.type==="nodechange"||!Ct(Le,B))&&g.dispatch("SelectionChange"),B=Le}),g.on("contextmenu",()=>{Tk(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const oe=g.selection.getStart(!0);oe&&T2(g)&&!H.isSameElementPath(oe)&&g.dom.isChildOf(oe,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",oe=>{!oe.isDefaultPrevented()&&T2(g)&&(g.selection.getNode().nodeName==="IMG"?Ig.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!$p(this.editor)&&!this.editor.mode.isReadOnly()){const oe=this.editor.getBody();H=B.getStart(!0)||oe,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,oe))&&(H=oe);const be=[];this.editor.dom.getParent(H,Le=>Le===oe?!0:(be.push(Le),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,oe=ke(H.dom.getParents(g,q,H.getBody()));if(oe.length===this.lastPath.length){for(B=oe.length;B>=0&&oe[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=oe,!0}return this.lastPath=oe,!1}}const JV=yb("image"),mte=r=>{const g=r;return Y.from(g[JV])},eU=(r,g)=>{const B=r;B[JV]=g},gR=yb("event"),gte=r=>{const g=r;return Y.from(g[gR])},ZA=r=>g=>{const B=g;B[gR]=r},vte=(r,g)=>ZA(g)(r),tU=ZA(0),nU=ZA(2),yte=ZA(1),xte=(r=>g=>{const B=g;return Y.from(B[gR]).exists(H=>H===r)})(0),_te=()=>Object.freeze({length:0,item:r=>null}),vR=yb("mode"),wte=r=>{const g=r;return Y.from(g[vR])},qA=r=>g=>{const B=g;B[vR]=r},uO=(r,g)=>qA(g)(r),rU=qA(0),yR=qA(2),oU=qA(1),iU=r=>g=>{const B=g;return Y.from(B[vR]).exists(H=>H===r)},PS=iU(0),aU=iU(1),sU=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(PS(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{PS(r)&&g.remove(B)},clear:()=>{PS(r)&&g.clear()}}),Ote=["none","copy","link","move"],Ste=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],lU=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(oe){ce(Ote,oe)&&(g=oe)},get effectAllowed(){return B},set effectAllowed(oe){xte(H)&&ce(Ste,oe)&&(B=oe)},get items(){return sU(H,r.items)},get files(){return aU(H)?_te():r.files},get types(){return r.types},setDragImage:(oe,be,Le)=>{PS(H)&&(eU(H,{image:oe,x:be,y:Le}),r.setDragImage(oe,be,Le))},getData:oe=>aU(H)?"":r.getData(oe),setData:(oe,be)=>{PS(H)&&r.setData(oe,be)},clearData:oe=>{PS(H)&&r.clearData(oe)}};return rU(H),H},WA=r=>{const g=lU(),B=wte(r);return yR(r),tU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,mte(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ve(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ve(r.files,H=>g.items.add(H)),gte(r).each(H=>{vte(g,H)}),B.each(H=>{uO(r,H),uO(g,H)}),g},kte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},cU=(r,g)=>r.setData("text/html",g),uU="x-tinymce/html",YA=$(uU),bR="",Tte=r=>bR+r,Cte=r=>r.replace(bR,""),fU=r=>r.indexOf(bR)!==-1,Ate=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Mte=(r,g)=>{let B="<"+r;const H=ln(g,(oe,be)=>be+'="'+Lm.encodeAllRaw(oe)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},Ete=(r,g,B)=>{const H=r.split(/\n\n/),oe=Mte(g,B),be="",Le=ye(H,ut=>ut.split(/\n/).join("
    ")),Ke=ut=>oe+ut+be;return Le.length===1?Le[0]:ye(Le,Ke).join("")},dU="%MCEPASTEBIN%",Pte=(r,g)=>{const{dom:B,selection:H}=r,oe=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},dU);Nr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(oe,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Le=>{Le.stopPropagation()}),be.focus(),H.select(be,!0)},Lc=(r,g)=>{const B=r.dom;if(xR(r)){let H;const oe=g.get();for(;H=xR(r);)B.remove(H),B.unbind(H);oe&&r.selection.setRng(oe)}g.set(null)},xR=r=>r.dom.get("mcepastebin"),hU=r=>P(r)&&r.id==="mcepastebin",Rte=r=>{const g=r.dom,B=(Le,Ke)=>{Le.appendChild(Ke),g.remove(Ke,!0)},[H,...oe]=Te(r.getBody().childNodes,hU);ve(oe,Le=>{B(H,Le)});const be=g.select("div[id=mcepastebin]",H);for(let Le=be.length-1;Le>=0;Le--){const Ke=g.create("div");H.insertBefore(Ke,be[Le]),B(Ke,be[Le])}return H?H.innerHTML:""},XA=r=>r===dU,pU=r=>{const g=Ar(null);return{create:()=>Pte(r,g),remove:()=>Lc(r,g),getEl:()=>xR(r),getHtml:()=>Rte(r),getLastRng:g.get}},mU=(r,g)=>(To.each(g,B=>{p(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),Lte=r=>{const g=zm(),B=fS({},g);let H="";const oe=g.getVoidElements(),be=To.makeMap("script noscript style textarea video audio iframe object"," "),Le=g.getBlockElements(),Ke=ut=>{const At=ut.name,nn=ut;if(At==="br"){H+=` +Input object: `+PA(r.input),tV=(r,g)=>RA(r,ht(g,Z9)),see=$(JJ),H5=(r,g)=>H9(B=>{const H=typeof B;return r(B)?vh.svalue(B):vh.serror(`Expected type: ${g} but got: ${H}`)}),lee=H5(L,"number"),Z5=H5(v,"string"),cee=H5(R,"boolean"),DA=H5(A,"function"),AS=GJ,nV=KJ,uee=r=>J$(g=>ce(r,g)?Vs.value(g):Vs.error(`Unsupported value: "${g}", choose one of "${r.join(", ")}".`)),rV=(r,g)=>AS(r,r,Q9(),g),oV=r=>rV(r,Z5),W9=r=>rV(r,DA),fee=(r,g)=>AS(r,r,Q9(),q9(g)),Y9=(r,g)=>AS(r,r,Y$(),g),q5=r=>Y9(r,Z5),dee=r=>Y9(r,DA),hee=(r,g)=>AS(r,r,W$(g),see()),sO=(r,g,B)=>AS(r,r,W$(g),B),iV=(r,g)=>sO(r,g,lee),pee=(r,g)=>sO(r,g,Z5),aV=(r,g,B)=>sO(r,g,uee(B)),BA=(r,g)=>sO(r,g,cee),zA=(r,g)=>sO(r,g,DA),mee=(r,g,B)=>sO(r,g,q9(B)),gee=oV("type"),vee=W9("fetch"),X9=W9("onAction"),yee=zA("onSetup",()=>k),bee=q5("text"),xee=q5("icon"),_ee=q5("tooltip"),Qfe=q5("label"),wee=BA("active",!1),NA=BA("enabled",!0),G9=BA("primary",!1),sV=r=>hee("columns",r),W5=r=>pee("type",r),lV=Z9([gee,oV("trigger"),iV("minChars",1),sV(1),iV("maxResults",10),dee("matches"),vee,X9,mee("highlightOn",[],Z5)]),cV=r=>iee("Autocompleter",lV,r),K9=[NA,_ee,xee,bee,yee],uV=[wee].concat(K9),Oee=[zA("predicate",re),aV("scope","node",["node","editor"]),aV("position","selection",["node","selection","line"])],fV=K9.concat([W5("contextformbutton"),G9,X9,nV("original",Q)]),See=uV.concat([W5("contextformbutton"),G9,X9,nV("original",Q)]),J9=K9.concat([W5("contextformbutton")]),kee=uV.concat([W5("contextformtogglebutton")]),Tee=tV("type",{contextformbutton:fV,contextformtogglebutton:See});Z9([W5("contextform"),zA("initValue",$("")),Qfe,fee("commands",Tee),Y9("launch",tV("type",{contextformbutton:J9,contextformtogglebutton:kee}))].concat(Oee));const Cee=r=>{const g=r.ui.registry.getAll().popups,B=ht(g,Le=>cV(Le).fold(Ke=>{throw new Error(aee(Ke))},Q)),H=Pn(ln(B,Le=>Le.trigger)),oe=tn(B);return{dataset:B,triggers:H,lookupByTrigger:Le=>Te(oe,Ke=>Ke.trigger===Le)}},dV=(r,g)=>{const B=jh(g.load,50);r.on("input",H=>{H.inputType==="insertCompositionText"&&!r.composing||B.throttle()}),r.on("keydown",H=>{const oe=H.which;oe===8?B.throttle():oe===27?(B.cancel(),g.cancelIfNecessary()):(oe===38||oe===40)&&B.cancel()},!0),r.on("remove",B.cancel)},Aee=r=>{const g=Ts(),B=Ar(!1),H=g.isSet,oe=()=>{H()&&(ZC(r),B.set(!1),g.clear())},be=un=>{H()||g.set({trigger:un.trigger,matchLength:un.text.length})},Le=_t(()=>Cee(r)),Ke=un=>g.get().map(yn=>EA(r.dom,r.selection.getRng(),yn.trigger,!0).bind(Qn=>F9(r,Le,Qn,un))).getOrThunk(()=>jJ(r,Le)),ut=un=>{Ke(un).fold(oe,yn=>{be(yn.context),yn.lookupData.then(Qn=>{g.get().map(rr=>{const Wn=yn.context;rr.trigger===Wn.trigger&&(g.set({...rr,matchLength:Wn.text.length}),B.get()?(HC(r,{range:Wn.range}),QC(r,{lookupData:Qn})):(B.set(!0),HC(r,{range:Wn.range}),iE(r,{lookupData:Qn})))})})})},At=(un,yn)=>{const Qn=un.compareBoundaryPoints(window.Range.START_TO_START,yn),rr=un.compareBoundaryPoints(window.Range.END_TO_END,yn);return Qn>=0&&rr<=0},nn=()=>g.get().bind(({trigger:un})=>{const yn=r.selection.getRng();return EA(r.dom,yn,un,B.get()).filter(({range:Qn})=>At(yn,Qn)).map(({range:Qn})=>Qn)});r.addCommand("mceAutocompleterReload",(un,yn)=>{const Qn=_(yn)?yn.fetchOptions:{};ut(Qn)}),r.addCommand("mceAutocompleterClose",oe),r.addCommand("mceAutocompleterRefreshActiveRange",()=>{nn().each(un=>{HC(r,{range:un})})}),r.editorCommands.addQueryStateHandler("mceAutoCompleterInRange",()=>nn().isSome()),dV(r,{cancelIfNecessary:oe,load:ut})},Mee=zn().browser.isSafari(),hV=r=>xp(_r.fromDom(r)),pV=(r,g)=>{var B;return r.startOffset===0&&r.endOffset===((B=g.textContent)===null||B===void 0?void 0:B.length)},qf=(r,g)=>Y.from(r.getParent(g.container(),"details")),zv=(r,g)=>qf(r,g).isSome(),Eee=(r,g)=>{const B=Y.from(r.getParent(g.startContainer,"details")),H=Y.from(r.getParent(g.endContainer,"details"));if(B.isSome()||H.isSome()){const oe=B.bind(be=>Y.from(r.select("summary",be)[0]));return Y.some({startSummary:oe,startDetails:B,endDetails:H})}else return Y.none()},Zfe=(r,g)=>ph(g).exists(B=>B.isEqual(r)),Pee=(r,g)=>Ym(g).exists(B=>gn(B.getNode())&&Up(g,B).exists(H=>H.isEqual(r))||B.isEqual(r)),Ree=(r,g)=>g.startSummary.exists(B=>Zfe(r,B)),Lee=(r,g)=>g.startSummary.exists(B=>Pee(r,B)),Iee=(r,g)=>g.startDetails.exists(B=>Up(B,r).forall(H=>g.startSummary.exists(oe=>!oe.contains(r.container())&&oe.contains(H.container())))),mV=(r,g,B)=>B.startDetails.exists(H=>Sp(r,g).forall(oe=>!H.contains(oe.container()))),lO=(r,g)=>{const B=g.getNode();M(B)||r.selection.setCursorLocation(B,g.offset())},Dee=(r,g,B)=>{const H=r.dom.getParent(g.container(),"details");if(H&&!H.open){const oe=r.dom.select("summary",H)[0];oe&&(B?ph(oe):Ym(oe)).each(Le=>lO(r,Le))}else lO(r,g)},Bee=(r,g)=>{const B=ut=>ut.contains(r.startContainer),H=ut=>ut.contains(r.endContainer),oe=g.startSummary.exists(B),be=g.startSummary.exists(H),Le=g.startDetails.forall(ut=>g.endDetails.forall(At=>ut!==At));return(oe||be)&&!(oe&&be)||Le},gV=(r,g,B)=>{const{dom:H,selection:oe}=r,be=r.getBody();if(B==="character"){const Le=vo.fromRangeStart(oe.getRng()),Ke=H.getParent(Le.container(),H.isBlock),ut=qf(H,Le),At=Ke&&H.isEmpty(Ke),nn=x(Ke==null?void 0:Ke.previousSibling),un=x(Ke==null?void 0:Ke.nextSibling);return At&&(g?un:nn)&&Ub(!g,be,Le).exists(rr=>zv(H,rr)&&!Ds(ut,qf(H,rr)))?!0:Ub(g,be,Le).fold(re,yn=>{const Qn=qf(H,yn);if(zv(H,yn)&&!Ds(ut,Qn)){if(g||Dee(r,yn,!1),Ke&&At){if(g&&nn)return!0;if(!g&&un)return!0;Dee(r,yn,g),r.dom.remove(Ke)}return!0}else return!1})}else return!1},Nv=(r,g,B,H)=>{const be=r.selection.getRng(),Le=vo.fromRangeStart(be),Ke=r.getBody();return H==="selection"?Bee(be,g):B?Lee(Le,g)||mV(Ke,Le,g):Ree(Le,g)||Iee(Le,g)},zee=(r,g,B)=>Eee(r.dom,r.selection.getRng()).fold(()=>gV(r,g,B),H=>Nv(r,H,g,B)||gV(r,g,B)),Nee=(r,g,B)=>{const H=r.selection,oe=H.getNode(),be=H.getRng(),Le=vo.fromRangeStart(be);return Wo(oe)?(B==="selection"&&pV(be,oe)||Fw(g,Le,oe)?hV(oe):r.undoManager.transact(()=>{const Ke=H.getSel();let{anchorNode:ut,anchorOffset:At,focusNode:nn,focusOffset:un}=Ke??{};const yn=()=>{P(ut)&&P(At)&&P(nn)&&P(un)&&(Ke==null||Ke.setBaseAndExtent(ut,At,nn,un))},Qn=()=>{ut=Ke==null?void 0:Ke.anchorNode,At=Ke==null?void 0:Ke.anchorOffset,nn=Ke==null?void 0:Ke.focusNode,un=Ke==null?void 0:Ke.focusOffset},rr=(ur,Tr)=>{ve(ur.childNodes,Wr=>{C3(Wr)&&Tr.appendChild(Wr)})},Wn=r.dom.create("span",{"data-mce-bogus":"1"});rr(oe,Wn),oe.appendChild(Wn),yn(),(B==="word"||B==="line")&&(Ke==null||Ke.modify("extend",g?"right":"left",B)),!H.isCollapsed()&&pV(H.getRng(),Wn)?hV(oe):(r.execCommand(g?"ForwardDelete":"Delete"),Qn(),rr(Wn,oe),yn()),r.dom.remove(Wn)}),!0):!1},n_=(r,g,B)=>zee(r,g,B)||Mee&&Nee(r,g,B)?Y.some(k):Y.none(),vV=r=>(g,B,H={})=>{const oe=g.getBody(),be={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:oe,currentTarget:oe,eventPhase:Event.AT_TARGET,originalTarget:oe,explicitOriginalTarget:oe,isTrusted:!1,srcElement:oe,cancelable:!1,preventDefault:k,inputType:B},Le=kh(new InputEvent(r));return g.dispatch(r,{...Le,...be,...H})},cO=vV("input"),D0=vV("beforeinput"),eR=zn(),tR=eR.os,yV=tR.isMacOS()||tR.isiOS(),rR=eR.browser.isFirefox(),bV=(r,g,B)=>{const H=B.keyCode===Jo.BACKSPACE?"deleteContentBackward":"deleteContentForward",oe=r.selection.isCollapsed(),be=oe?"character":"selection",Le=Ke=>oe?Ke?"word":"line":"selection";M$([{keyCode:Jo.BACKSPACE,action:$a(Ug,r)},{keyCode:Jo.BACKSPACE,action:$a(S5,r,!1)},{keyCode:Jo.DELETE,action:$a(S5,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(Fy,r,!1)},{keyCode:Jo.DELETE,action:$a(Fy,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(r9,r,g,!1)},{keyCode:Jo.DELETE,action:$a(r9,r,g,!0)},{keyCode:Jo.BACKSPACE,action:$a($k,r,!1)},{keyCode:Jo.DELETE,action:$a($k,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(n_,r,!1,be)},{keyCode:Jo.DELETE,action:$a(n_,r,!0,be)},...yV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,altKey:!0,action:$a(n_,r,!0,Le(!0))},{keyCode:Jo.BACKSPACE,metaKey:!0,action:$a(n_,r,!1,Le(!1))}]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(n_,r,!1,Le(!0))},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(n_,r,!0,Le(!0))}],{keyCode:Jo.BACKSPACE,action:$a(Vg,r,!1)},{keyCode:Jo.DELETE,action:$a(Vg,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(u9,r,!1)},{keyCode:Jo.DELETE,action:$a(u9,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(hA,r,!1)},{keyCode:Jo.DELETE,action:$a(hA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(ux,r,!1)},{keyCode:Jo.DELETE,action:$a(ux,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(kA,r,!1)},{keyCode:Jo.DELETE,action:$a(kA,r,!0)},{keyCode:Jo.BACKSPACE,action:$a(j7,r,!1)},{keyCode:Jo.DELETE,action:$a(j7,r,!0)}],B).filter(Ke=>r.selection.isEditable()).each(Ke=>{B.preventDefault(),D0(r,H).isDefaultPrevented()||(Ke(),cO(r,H))})},xV=(r,g,B)=>B5([{keyCode:Jo.BACKSPACE,action:$a($7,r)},{keyCode:Jo.DELETE,action:$a($7,r)},...yV?[{keyCode:Jo.BACKSPACE,altKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,altKey:!0,action:$a(L5,r)},...B?[{keyCode:rR?224:91,action:$a(L5,r)}]:[]]:[{keyCode:Jo.BACKSPACE,ctrlKey:!0,action:$a(L5,r)},{keyCode:Jo.DELETE,ctrlKey:!0,action:$a(L5,r)}]],g),Fee=(r,g)=>{let B=!1;r.on("keydown",H=>{B=H.keyCode===Jo.BACKSPACE,H.isDefaultPrevented()||bV(r,g,H)}),r.on("keyup",H=>{H.isDefaultPrevented()||xV(r,H,B),B=!1})},$ee=r=>{for(;r;){if(ne(r)||Mt(r)&&r.data&&/[\r\n\s]/.test(r.data))return r;r=r.nextSibling}return null},MS=(r,g)=>{const B=r.dom,H=r.schema.getMoveCaretBeforeOnEnterElements();if(!g)return;if(/^(LI|DT|DD)$/.test(g.nodeName)){const be=$ee(g.firstChild);be&&/^(UL|OL|DL)$/.test(be.nodeName)&&g.insertBefore(B.doc.createTextNode(Pc),g.firstChild)}const oe=B.createRng();if(g.normalize(),g.hasChildNodes()){const be=new Xl(g,g);let Le=g,Ke;for(;Ke=be.current();){if(Mt(Ke)){oe.setStart(Ke,0),oe.setEnd(Ke,0);break}if(H[Ke.nodeName.toLowerCase()]){oe.setStartBefore(Ke),oe.setEndBefore(Ke);break}Le=Ke,Ke=be.next()}Ke||(oe.setStart(Le,0),oe.setEnd(Le,0))}else gn(g)?g.nextSibling&&B.isBlock(g.nextSibling)?(oe.setStartBefore(g),oe.setEndBefore(g)):(oe.setStartAfter(g),oe.setEndAfter(g)):(oe.setStart(g,0),oe.setEnd(g,0));r.selection.setRng(oe),kk(r,oe)},Y5=(r,g)=>{const B=r.getRoot();let H,oe=g;for(;oe!==B&&oe&&r.getContentEditable(oe)!=="false";){if(r.getContentEditable(oe)==="true"){H=oe;break}oe=oe.parentNode}return oe!==B?H:B},oR=r=>Y.from(r.dom.getParent(r.selection.getStart(!0),r.dom.isBlock)),_V=r=>oR(r).fold($(""),g=>g.nodeName.toUpperCase()),Vee=r=>oR(r).filter(g=>av(_r.fromDom(g))).isSome(),iR=r=>{r.innerHTML='
    '},Uee=(r,g,B)=>{const H=r.dom;Y.from(B.style).map(H.parseStyle).each(ut=>{const nn={...Gc(_r.fromDom(g)),...ut};H.setStyles(g,nn)});const oe=Y.from(B.class).map(ut=>ut.split(/\s+/)),be=Y.from(g.className).map(ut=>Te(ut.split(/\s+/),At=>At!==""));zi(oe,be,(ut,At)=>{const nn=Te(At,yn=>!ce(ut,yn)),un=[...ut,...nn];H.setAttrib(g,"class",un.join(" "))});const Le=["style","class"],Ke=Yt(B,(ut,At)=>!ce(Le,At));H.setAttribs(g,Ke)},X5=(r,g)=>{if(tu(r).toLowerCase()===g.tagName.toLowerCase()){const H=qd(r);Uee(r,g,H)}},wV=(r,g,B,H,oe=!0,be,Le)=>{const Ke=r.dom,ut=r.schema,At=tu(r),nn=B?B.nodeName.toUpperCase():"";let un=g;const yn=ut.getTextInlineElements();let Qn;be||nn==="TABLE"||nn==="HR"?Qn=Ke.create(be||At,Le||{}):Qn=B.cloneNode(!1);let rr=Qn;if(!oe)Ke.setAttrib(Qn,"style",null),Ke.setAttrib(Qn,"class",null);else do if(yn[un.nodeName]){if(Xm(un)||pm(un))continue;const Wn=un.cloneNode(!1);Ke.setAttrib(Wn,"id",""),Qn.hasChildNodes()?(Wn.appendChild(Qn.firstChild),Qn.appendChild(Wn)):(rr=Wn,Qn.appendChild(Wn))}while((un=un.parentNode)&&un!==H);return X5(r,Qn),iR(rr),Qn},OV=(r,g)=>r.dom.getParent(g,po),SV=(r,g,B)=>{let H=g;for(;H&&H!==r&&x(H.nextSibling);){const oe=H.parentElement;if(!oe||!B(oe))return po(oe);H=oe}return!1},jee=(r,g,B)=>!g&&B.nodeName.toLowerCase()===tu(r)&&r.dom.isEmpty(B)&&SV(r.getBody(),B,H=>Ot(r.schema.getTextBlockElements(),H.nodeName.toLowerCase())),Qee=(r,g,B)=>{var H,oe,be;const Le=g(tu(r)),Ke=OV(r,B);Ke&&(r.dom.insertAfter(Le,Ke),MS(r,Le),((be=(oe=(H=B.parentElement)===null||H===void 0?void 0:H.childNodes)===null||oe===void 0?void 0:oe.length)!==null&&be!==void 0?be:0)>1&&r.dom.remove(B))},qfe=(r,g)=>r.firstChild&&r.firstChild.nodeName===g,aR=r=>{var g;return((g=r.parentNode)===null||g===void 0?void 0:g.firstChild)===r},kV=(r,g)=>{const B=r==null?void 0:r.parentNode;return P(B)&&B.nodeName===g},TV=r=>P(r)&&/^(OL|UL|LI)$/.test(r.nodeName),sR=r=>P(r)&&/^(LI|DT|DD)$/.test(r.nodeName),CV=r=>TV(r)&&TV(r.parentNode),FA=r=>{const g=r.parentNode;return sR(g)?g:r},G5=(r,g,B)=>{let H=r[B?"firstChild":"lastChild"];for(;H&&!ne(H);)H=H[B?"nextSibling":"previousSibling"];return H===g},AV=r=>Ie(ln(Gc(_r.fromDom(r)),(g,B)=>`${B}: ${g};`),(g,B)=>g+B,""),Hee=(r,g,B,H,oe)=>{const be=r.dom,Le=r.selection.getRng(),Ke=B.parentNode;if(B===r.getBody()||!Ke)return;CV(B)&&(oe="LI");const ut=sR(H)?AV(H):void 0;let At=sR(H)&&ut?g(oe,{style:AV(H)}):g(oe);if(G5(B,H,!0)&&G5(B,H,!1))if(kV(B,"LI")){const nn=FA(B);be.insertAfter(At,nn),aR(B)?be.remove(nn):be.remove(B)}else be.replace(At,B);else if(G5(B,H,!0))kV(B,"LI")?(be.insertAfter(At,FA(B)),At.appendChild(be.doc.createTextNode(" ")),At.appendChild(B)):Ke.insertBefore(At,B),be.remove(H);else if(G5(B,H,!1))be.insertAfter(At,FA(B)),be.remove(H);else{B=FA(B);const nn=Le.cloneRange();nn.setStartAfter(H),nn.setEndAfter(B);const un=nn.extractContents();if(oe==="LI"&&qfe(un,"LI")){const yn=Te(ye(At.children,_r.fromDom),X(Jl("br")));At=un.firstChild,be.insertAfter(un,B),ve(yn,Qn=>jd(_r.fromDom(At),Qn)),ut&&At.setAttribute("style",ut)}else be.insertAfter(un,B),be.insertAfter(At,B);be.remove(H)}MS(r,At)},Wfe=r=>{ve(Aa(_r.fromDom(r),Ml),g=>{const B=g.dom;B.nodeValue=Sd(B.data)})},up=(r,g)=>{const B=r.dom.getParent(g,"ol,ul,dl");return B!==null&&r.dom.getContentEditableParent(B)==="false"},Zee=(r,g)=>g&&g.nodeName==="A"&&r.isEmpty(g),lR=(r,g)=>r.nodeName===g||r.previousSibling&&r.previousSibling.nodeName===g,cR=(r,g)=>P(g)&&r.isBlock(g)&&!/^(TD|TH|CAPTION|FORM)$/.test(g.nodeName)&&!/^(fixed|absolute)/i.test(g.style.position)&&r.isEditable(g.parentNode)&&r.getContentEditable(g)!=="false",qee=(r,g,B)=>{var H;const oe=[];if(!B)return;let be=B;for(;be=be.firstChild;){if(r.isBlock(be))return;ne(be)&&!g[be.nodeName.toLowerCase()]&&oe.push(be)}let Le=oe.length;for(;Le--;)be=oe[Le],(!be.hasChildNodes()||be.firstChild===be.lastChild&&((H=be.firstChild)===null||H===void 0?void 0:H.nodeValue)===""||Zee(r,be))&&r.remove(be)},uR=(r,g,B)=>Mt(g)?r?B===1&&g.data.charAt(B-1)===Ou?0:B:B===g.data.length-1&&g.data.charAt(B)===Ou?g.data.length:B:B,Wee=r=>{const g=r.cloneRange();return g.setStart(r.startContainer,uR(!0,r.startContainer,r.startOffset)),g.setEnd(r.endContainer,uR(!1,r.endContainer,r.endOffset)),g},Yee=r=>{let g=r;do Mt(g)&&(g.data=g.data.replace(/^[\r\n]+/,"")),g=g.firstChild;while(g)},$A=(r,g,B,H,oe)=>{var be,Le;const Ke=r.dom,ut=(be=Y5(Ke,H))!==null&&be!==void 0?be:Ke.getRoot();let At=Ke.getParent(H,Ke.isBlock);if(!At||!cR(Ke,At)){if(At=At||ut,!At.hasChildNodes()){const Qn=Ke.create(g);return X5(r,Qn),At.appendChild(Qn),B.setStart(Qn,0),B.setEnd(Qn,0),Qn}let nn=H;for(;nn&&nn.parentNode!==At;)nn=nn.parentNode;let un;for(;nn&&!Ke.isBlock(nn);)un=nn,nn=nn.previousSibling;const yn=(Le=un==null?void 0:un.parentElement)===null||Le===void 0?void 0:Le.nodeName;if(un&&yn&&r.schema.isValidChild(yn,g.toLowerCase())){const Qn=un.parentNode,rr=Ke.create(g);for(X5(r,rr),Qn.insertBefore(rr,un),nn=un;nn&&!Ke.isBlock(nn);){const Wn=nn.nextSibling;rr.appendChild(nn),nn=Wn}B.setStart(H,oe),B.setEnd(H,oe)}}return H},Xee=(r,g)=>{g.normalize();const B=g.lastChild;(!B||ne(B)&&/^(left|right)$/gi.test(r.getStyle(B,"float",!0)))&&r.add(g,"br")},Gee=(r,g)=>{const B=Lu(r);return T(g)?!1:v(B)?ce(To.explode(B),g.nodeName.toLowerCase()):B},PV={insert:(r,g)=>{let B,H,oe,be,Le=!1;const Ke=r.dom,ut=r.schema,At=ut.getNonEmptyElements(),nn=r.selection.getRng(),un=tu(r),yn=_r.fromDom(nn.startContainer),Qn=gs(yn,nn.startOffset),rr=Qn.exists(Vo=>Al(Vo)&&!Ol(Vo)),Wn=nn.collapsed&&rr,ur=(Vo,Fi)=>wV(r,B,li,Zo,gv(r),Vo,Fi),Tr=Vo=>{const Fi=uR(Vo,B,H);if(Mt(B)&&(Vo?Fi>0:Fi{let Vo;return/^(H[1-6]|PRE|FIGURE)$/.test(oe)&&Mi!=="HGROUP"?Vo=ur(un):Vo=ur(),Gee(r,be)&&cR(Ke,be)&&Ke.isEmpty(li,void 0,{includeZwsp:!0})?Vo=Ke.split(be,li):Ke.insertAfter(Vo,li),MS(r,Vo),Vo};fi(Ke,nn).each(Vo=>{nn.setStart(Vo.startContainer,Vo.startOffset),nn.setEnd(Vo.endContainer,Vo.endOffset)}),B=nn.startContainer,H=nn.startOffset;const Qr=!!(g&&g.shiftKey),lo=!!(g&&g.ctrlKey);ne(B)&&B.hasChildNodes()&&!Wn&&(Le=H>B.childNodes.length-1,B=B.childNodes[Math.min(H,B.childNodes.length-1)]||B,Le&&Mt(B)?H=B.data.length:H=0);const Zo=Y5(Ke,B);if(!Zo||up(r,B))return;Qr||(B=$A(r,un,nn,B,H));let li=Ke.getParent(B,Ke.isBlock)||Ke.getRoot();be=P(li==null?void 0:li.parentNode)?Ke.getParent(li.parentNode,Ke.isBlock):null,oe=li?li.nodeName.toUpperCase():"";const Mi=be?be.nodeName.toUpperCase():"";if(Mi==="LI"&&!lo){const Vo=be;li=Vo,be=Vo.parentNode,oe=Mi}if(ne(be)&&jee(r,Qr,li))return Qee(r,ur,li);if(/^(LI|DT|DD)$/.test(oe)&&ne(be)&&Ke.isEmpty(li)){Hee(r,ur,be,li,un);return}if(!Wn&&(li===r.getBody()||!cR(Ke,li)))return;const Co=li.parentNode;let yo;if(Wn)yo=ur(un),Qn.fold(()=>{ii(yn,_r.fromDom(yo))},Vo=>{xc(Vo,_r.fromDom(yo))}),r.selection.setCursorLocation(yo,0);else if(Vm(li))yo=Ah(li),Ke.isEmpty(li)&&iR(li),X5(r,yo),MS(r,yo);else if(Tr(!1))yo=Wr();else if(Tr(!0)&&Co){const Vo=vo.fromRangeStart(nn),Fi=Ek(Vo),la=_r.fromDom(li),Ms=f6(la,Vo,r.schema)?CB(la,Vo,r.schema).bind(Vl=>Y.from(Vl.getNode())):Y.none();yo=Co.insertBefore(ur(),li);const wl=lR(li,"HR")||Fi?yo:Ms.getOr(li);MS(r,wl)}else{const Vo=Wee(nn).cloneRange();Vo.setEndAfter(li);const Fi=Vo.extractContents();Wfe(Fi),Yee(Fi),yo=Fi.firstChild,Ke.insertAfter(Fi,li),qee(Ke,At,yo),Xee(Ke,li),Ke.isEmpty(li)&&iR(li),yo.normalize(),Ke.isEmpty(yo)?(Ke.remove(yo),Wr()):(X5(r,yo),MS(r,yo))}Ke.setAttrib(yo,"id",""),r.dispatch("NewBlock",{newBlock:yo})},fakeEventName:"insertParagraph"},Yfe=(r,g,B)=>{const H=new Xl(g,B);let oe;const be=r.getNonEmptyElements();for(;oe=H.next();)if(be[oe.nodeName.toLowerCase()]||Mt(oe)&&oe.length>0)return!0;return!1},Kee=(r,g,B)=>{const H=r.dom.createRng();B?(H.setStartBefore(g),H.setEndBefore(g)):(H.setStartAfter(g),H.setEndAfter(g)),r.selection.setRng(H),kk(r,H)},Xfe=(r,g)=>{const B=r.selection,H=r.dom,oe=B.getRng();let be,Le=!1;fi(H,oe).each(Qn=>{oe.setStart(Qn.startContainer,Qn.startOffset),oe.setEnd(Qn.endContainer,Qn.endOffset)});let Ke=oe.startOffset,ut=oe.startContainer;if(ne(ut)&&ut.hasChildNodes()){const Qn=Ke>ut.childNodes.length-1;ut=ut.childNodes[Math.min(Ke,ut.childNodes.length-1)]||ut,Qn&&Mt(ut)?Ke=ut.data.length:Ke=0}let At=H.getParent(ut,H.isBlock);const nn=At&&At.parentNode?H.getParent(At.parentNode,H.isBlock):null,un=nn?nn.nodeName.toUpperCase():"",yn=!!(g&&g.ctrlKey);un==="LI"&&!yn&&(At=nn),Mt(ut)&&Ke>=ut.data.length&&(Yfe(r.schema,ut,At||H.getRoot())||(be=H.create("br"),oe.insertNode(be),oe.setStartAfter(be),oe.setEndAfter(be),Le=!0)),be=H.create("br"),ue(H,oe,be),Kee(r,be,Le),r.undoManager.add()},Jee=(r,g)=>{const B=_r.fromTag("br");xc(_r.fromDom(g),B),r.undoManager.add()},ete=(r,g)=>{tte(r.getBody(),g)||Kc(_r.fromDom(g),_r.fromTag("br"));const B=_r.fromTag("br");Kc(_r.fromDom(g),B),Kee(r,B.dom,!1),r.undoManager.add()},Gfe=r=>gn(r.getNode()),tte=(r,g)=>Gfe(vo.after(g))?!0:Sp(r,vo.after(g)).map(B=>gn(B.getNode())).getOr(!1),I1=r=>r&&r.nodeName==="A"&&"href"in r,nte=r=>r.fold(re,I1,I1,re),RV=r=>{const g=U(Nw,r),B=vo.fromRangeStart(r.selection.getRng());return Vy(g,r.getBody(),B).filter(nte)},rte=(r,g)=>{g.fold(k,U(Jee,r),U(ete,r),k)},LV={insert:(r,g)=>{const B=RV(r);B.isSome()?B.each(U(rte,r)):Xfe(r,g)},fakeEventName:"insertLineBreak"},IV=(r,g)=>oR(r).filter(B=>g.length>0&&yd(_r.fromDom(B),g)).isSome(),ote=r=>IV(r,d1(r)),ite=r=>IV(r,t2(r)),_m=kl.generate([{br:[]},{block:[]},{none:[]}]),DV=(r,g)=>ite(r),K5=r=>(g,B)=>Vee(g)===r,BV=(r,g)=>(B,H)=>_V(B)===r.toUpperCase()===g,ate=r=>{const g=Y5(r.dom,r.selection.getStart());return T(g)},J5=r=>BV("pre",r),ste=()=>BV("summary",!0),VA=r=>(g,B)=>Qf(g)===r,zV=(r,g)=>ote(r),UA=(r,g)=>g,NV=r=>{const g=tu(r),B=Y5(r.dom,r.selection.getStart());return P(B)&&r.schema.isValidChild(B.nodeName,g)},FV=r=>{const g=r.selection.getRng(),B=_r.fromDom(g.startContainer),oe=gs(B,g.startOffset).map(be=>Al(be)&&!Ol(be));return g.collapsed&&oe.getOr(!0)},B0=(r,g)=>(B,H)=>Ie(r,(be,Le)=>be&&Le(B,H),!0)?Y.some(g):Y.none(),lte=(r,g)=>IF([B0([DV],_m.none()),B0([J5(!0),ate],_m.none()),B0([ste()],_m.br()),B0([J5(!0),VA(!1),UA],_m.br()),B0([J5(!0),VA(!1)],_m.block()),B0([J5(!0),VA(!0),UA],_m.block()),B0([J5(!0),VA(!0)],_m.br()),B0([K5(!0),UA],_m.br()),B0([K5(!0)],_m.block()),B0([zV],_m.br()),B0([UA],_m.br()),B0([NV],_m.block()),B0([FV],_m.block())],[r,!!(g&&g.shiftKey)]).getOr(_m.none()),ES=(r,g,B)=>{g.selection.isCollapsed()||jW(g),!(P(B)&&D0(g,r.fakeEventName).isDefaultPrevented())&&(r.insert(g,B),P(B)&&cO(g,r.fakeEventName))},$V=(r,g)=>{const B=()=>ES(LV,r,g),H=()=>ES(PV,r,g),oe=lte(r,g);switch(Cd(r)){case"linebreak":oe.fold(B,B,k);break;case"block":oe.fold(H,H,k);break;case"invert":oe.fold(H,B,k);break;default:oe.fold(B,H,k);break}},VV=zn(),jA=VV.os.isiOS()&&VV.browser.isSafari(),UV=(r,g)=>{g.isDefaultPrevented()||(g.preventDefault(),s7(r.undoManager),r.undoManager.transact(()=>{$V(r,g)}))},fR=r=>{if(!r.collapsed)return!1;const g=r.startContainer;if(Mt(g)){const B=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,H=g.data.charAt(r.startOffset-1);return B.test(H)}else return!1},dR=r=>{let g=Y.none();const B=oe=>{g=Y.some(oe.selection.getBookmark()),oe.undoManager.add()},H=(oe,be)=>{oe.undoManager.undo(),g.fold(k,Le=>oe.selection.moveToBookmark(Le)),UV(oe,be),g=Y.none()};r.on("keydown",oe=>{oe.keyCode===Jo.ENTER&&(jA&&fR(r.selection.getRng())?B(r):UV(r,oe))}),r.on("keyup",oe=>{oe.keyCode===Jo.ENTER&&g.each(()=>H(r,oe))})},jV=(r,g,B)=>{const H=Nr.os.isMacOS()||Nr.os.isiOS();B5([{keyCode:Jo.END,action:$a(S$,r,!0)},{keyCode:Jo.HOME,action:$a(S$,r,!1)},...H?[]:[{keyCode:Jo.HOME,action:$a(I5,r,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Jo.END,action:$a(I5,r,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Jo.END,action:$a(cJ,r,!0)},{keyCode:Jo.HOME,action:$a(cJ,r,!1)},{keyCode:Jo.END,action:$a(wA,r,!0,g)},{keyCode:Jo.HOME,action:$a(wA,r,!1,g)}],B).each(oe=>{B.preventDefault()})},cte=(r,g)=>{r.on("keydown",B=>{B.isDefaultPrevented()||jV(r,g,B)})},ede=r=>{r.on("input",g=>{g.isComposing||AW(r)})},r_=zn(),ute=(r,g,B)=>{B5([{keyCode:Jo.PAGE_UP,action:$a(wA,r,!1,g)},{keyCode:Jo.PAGE_DOWN,action:$a(wA,r,!0,g)}],B)},QV=r=>r.stopImmediatePropagation(),HV=r=>r.keyCode===Jo.PAGE_UP||r.keyCode===Jo.PAGE_DOWN,eT=(r,g,B)=>{B&&!r.get()?g.on("NodeChange",QV,!0):!B&&r.get()&&g.off("NodeChange",QV),r.set(B)},ZV=(r,g)=>{if(r_.os.isMacOS())return;const B=Ar(!1);r.on("keydown",H=>{HV(H)&&eT(B,r,!0)}),r.on("keyup",H=>{H.isDefaultPrevented()||ute(r,g,H),HV(H)&&B.get()&&(eT(B,r,!1),r.nodeChanged())})},qV=r=>{r.on("beforeinput",g=>{(!r.selection.isEditable()||de(g.getTargetRanges(),B=>!kE(r.dom,B)))&&g.preventDefault()})},WV=(r,g)=>{const B=g.container(),H=g.offset();return Mt(B)?(B.insertData(H,r),Y.some(vo(B,H+r.length))):h3(g).map(oe=>{const be=_r.fromText(r);return g.isAtEnd()?Kc(oe,be):xc(oe,be),vo(be.dom,r.length)})},hR=U(WV,Pc),YV=U(WV," "),fte=(r,g,B)=>LB(r,g,B)?hR(g):YV(g),dte=r=>g=>g.fold(B=>Up(r.dom,vo.before(B)),B=>ph(B),B=>Ym(B),B=>Sp(r.dom,vo.after(B))),pR=(r,g,B)=>H=>LB(r,H,B)?hR(g):YV(g),QA=r=>g=>{r.selection.setRng(g.toRange()),r.nodeChanged()},hte=(r,g)=>r.isEditable(r.getParent(g,"summary")),mR=r=>{const g=vo.fromRangeStart(r.selection.getRng()),B=_r.fromDom(r.getBody());if(r.selection.isCollapsed()){const H=U(Nw,r),oe=vo.fromRangeStart(r.selection.getRng());return Vy(H,r.getBody(),oe).bind(dte(B)).map(be=>()=>pR(B,g,r.schema)(be).each(QA(r)))}else return Y.none()},XV=r=>{const g=()=>{const B=_r.fromDom(r.getBody());r.selection.isCollapsed()||r.getDoc().execCommand("Delete");const H=vo.fromRangeStart(r.selection.getRng());fte(B,H,r.schema).each(QA(r))};return Bs(Nr.browser.isFirefox()&&r.selection.isEditable()&&hte(r.dom,r.selection.getRng().startContainer),g)},HA=(r,g)=>{M$([{keyCode:Jo.SPACEBAR,action:$a(mR,r)},{keyCode:Jo.SPACEBAR,action:$a(XV,r)}],g).each(B=>{g.preventDefault(),D0(r,"insertText",{data:" "}).isDefaultPrevented()||(B(),cO(r,"insertText",{data:" "}))})},GV=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||HA(r,g)})},KV=r=>f2(r)?[{keyCode:Jo.TAB,action:$a($5,r,!0)},{keyCode:Jo.TAB,shiftKey:!0,action:$a($5,r,!1)}]:[],pte=(r,g)=>{B5([...KV(r)],g).each(B=>{g.preventDefault()})},mte=r=>{r.on("keydown",g=>{g.isDefaultPrevented()||pte(r,g)})},ZA=r=>{if(r.addShortcut("Meta+P","","mcePrint"),Aee(r),zy(r))return Ar(null);{const g=AK(r);return qV(r),tJ(r),I9(r,g),Fee(r,g),dR(r),GV(r),ede(r),mte(r),cte(r,g),ZV(r,g),g}};class JV{constructor(g){this.lastPath=[],this.editor=g;let B;const H=this;"onselectionchange"in g.getDoc()||g.on("NodeChange click mouseup keyup focus",oe=>{const be=g.selection.getRng(),Le={startContainer:be.startContainer,startOffset:be.startOffset,endContainer:be.endContainer,endOffset:be.endOffset};(oe.type==="nodechange"||!Ct(Le,B))&&g.dispatch("SelectionChange"),B=Le}),g.on("contextmenu",()=>{Tk(g),g.dispatch("SelectionChange")}),g.on("SelectionChange",()=>{const oe=g.selection.getStart(!0);oe&&T2(g)&&!H.isSameElementPath(oe)&&g.dom.isChildOf(oe,g.getBody())&&g.nodeChanged({selectionChange:!0})}),g.on("mouseup",oe=>{!oe.isDefaultPrevented()&&T2(g)&&(g.selection.getNode().nodeName==="IMG"?Ig.setEditorTimeout(g,()=>{g.nodeChanged()}):g.nodeChanged())})}nodeChanged(g={}){const B=this.editor.selection;let H;if(this.editor.initialized&&B&&!$p(this.editor)&&!this.editor.mode.isReadOnly()){const oe=this.editor.getBody();H=B.getStart(!0)||oe,(H.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(H,oe))&&(H=oe);const be=[];this.editor.dom.getParent(H,Le=>Le===oe?!0:(be.push(Le),!1)),this.editor.dispatch("NodeChange",{...g,element:H,parents:be})}}isSameElementPath(g){let B;const H=this.editor,oe=ke(H.dom.getParents(g,q,H.getBody()));if(oe.length===this.lastPath.length){for(B=oe.length;B>=0&&oe[B]===this.lastPath[B];B--);if(B===-1)return this.lastPath=oe,!0}return this.lastPath=oe,!1}}const eU=yb("image"),gte=r=>{const g=r;return Y.from(g[eU])},tU=(r,g)=>{const B=r;B[eU]=g},gR=yb("event"),vte=r=>{const g=r;return Y.from(g[gR])},qA=r=>g=>{const B=g;B[gR]=r},yte=(r,g)=>qA(g)(r),nU=qA(0),rU=qA(2),bte=qA(1),_te=(r=>g=>{const B=g;return Y.from(B[gR]).exists(H=>H===r)})(0),wte=()=>Object.freeze({length:0,item:r=>null}),vR=yb("mode"),Ote=r=>{const g=r;return Y.from(g[vR])},WA=r=>g=>{const B=g;B[vR]=r},uO=(r,g)=>WA(g)(r),oU=WA(0),yR=WA(2),iU=WA(1),aU=r=>g=>{const B=g;return Y.from(B[vR]).exists(H=>H===r)},PS=aU(0),sU=aU(1),lU=(r,g)=>({...g,get length(){return g.length},add:(B,H)=>{if(PS(r))if(v(B)){if(!M(H))return g.add(B,H)}else return g.add(B);return null},remove:B=>{PS(r)&&g.remove(B)},clear:()=>{PS(r)&&g.clear()}}),Ste=["none","copy","link","move"],kte=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],cU=()=>{const r=new window.DataTransfer;let g="move",B="all";const H={get dropEffect(){return g},set dropEffect(oe){ce(Ste,oe)&&(g=oe)},get effectAllowed(){return B},set effectAllowed(oe){_te(H)&&ce(kte,oe)&&(B=oe)},get items(){return lU(H,r.items)},get files(){return sU(H)?wte():r.files},get types(){return r.types},setDragImage:(oe,be,Le)=>{PS(H)&&(tU(H,{image:oe,x:be,y:Le}),r.setDragImage(oe,be,Le))},getData:oe=>sU(H)?"":r.getData(oe),setData:(oe,be)=>{PS(H)&&r.setData(oe,be)},clearData:oe=>{PS(H)&&r.clearData(oe)}};return oU(H),H},YA=r=>{const g=cU(),B=Ote(r);return yR(r),nU(g),g.dropEffect=r.dropEffect,g.effectAllowed=r.effectAllowed,gte(r).each(H=>g.setDragImage(H.image,H.x,H.y)),ve(r.types,H=>{H!=="Files"&&g.setData(H,r.getData(H))}),ve(r.files,H=>g.items.add(H)),vte(r).each(H=>{yte(g,H)}),B.each(H=>{uO(r,H),uO(g,H)}),g},Tte=r=>{const g=r.getData("text/html");return g===""?Y.none():Y.some(g)},uU=(r,g)=>r.setData("text/html",g),fU="x-tinymce/html",XA=$(fU),bR="",Cte=r=>bR+r,Ate=r=>r.replace(bR,""),dU=r=>r.indexOf(bR)!==-1,Mte=r=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(r),Ete=(r,g)=>{let B="<"+r;const H=ln(g,(oe,be)=>be+'="'+Lm.encodeAllRaw(oe)+'"');return H.length&&(B+=" "+H.join(" ")),B+">"},Pte=(r,g,B)=>{const H=r.split(/\n\n/),oe=Ete(g,B),be="",Le=ye(H,ut=>ut.split(/\n/).join("
    ")),Ke=ut=>oe+ut+be;return Le.length===1?Le[0]:ye(Le,Ke).join("")},hU="%MCEPASTEBIN%",Rte=(r,g)=>{const{dom:B,selection:H}=r,oe=r.getBody();g.set(H.getRng());const be=B.add(r.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},hU);Nr.browser.isFirefox()&&B.setStyle(be,"left",B.getStyle(oe,"direction",!0)==="rtl"?65535:-65535),B.bind(be,"beforedeactivate focusin focusout",Le=>{Le.stopPropagation()}),be.focus(),H.select(be,!0)},Lc=(r,g)=>{const B=r.dom;if(xR(r)){let H;const oe=g.get();for(;H=xR(r);)B.remove(H),B.unbind(H);oe&&r.selection.setRng(oe)}g.set(null)},xR=r=>r.dom.get("mcepastebin"),pU=r=>P(r)&&r.id==="mcepastebin",Lte=r=>{const g=r.dom,B=(Le,Ke)=>{Le.appendChild(Ke),g.remove(Ke,!0)},[H,...oe]=Te(r.getBody().childNodes,pU);ve(oe,Le=>{B(H,Le)});const be=g.select("div[id=mcepastebin]",H);for(let Le=be.length-1;Le>=0;Le--){const Ke=g.create("div");H.insertBefore(Ke,be[Le]),B(Ke,be[Le])}return H?H.innerHTML:""},GA=r=>r===hU,mU=r=>{const g=Ar(null);return{create:()=>Rte(r,g),remove:()=>Lc(r,g),getEl:()=>xR(r),getHtml:()=>Lte(r),getLastRng:g.get}},gU=(r,g)=>(To.each(g,B=>{p(B,RegExp)?r=r.replace(B,""):r=r.replace(B[0],B[1])}),r),Ite=r=>{const g=zm(),B=fS({},g);let H="";const oe=g.getVoidElements(),be=To.makeMap("script noscript style textarea video audio iframe object"," "),Le=g.getBlockElements(),Ke=ut=>{const At=ut.name,nn=ut;if(At==="br"){H+=` `;return}if(At!=="wbr"){if(oe[At]&&(H+=" "),be[At]){H+=" ";return}if(ut.type===3&&(H+=ut.value),!(ut.name in g.getVoidElements())){let un=ut.firstChild;if(un)do Ke(un);while(un=un.next)}Le[At]&&nn.next&&(H+=` `,At==="p"&&(H+=` -`))}};return r=mU(r,[//g]),Ke(B.parse(r)),H},_R=r=>(r=mU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,oe)=>!H&&!oe?" ":Pc],/
    /g,/
    $/i]),r),wR=r=>{let g=0;return()=>r+g++},Ite=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return To.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Dte=(r,g)=>{const B=fS({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r),convert_unsafe_embeds:Fb(r)},r.schema);B.addNodeFilter("meta",oe=>{To.each(oe,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return rx({validate:!0},r.schema).serialize(H)},gU=(r,g)=>({content:r,cancelled:g}),vU=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),oe=ZC(r,H,B);return gU(oe.node.innerHTML,oe.isDefaultPrevented())},Bte=(r,g,B)=>{const H=aE(r,g,B),oe=Dte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?vU(r,oe,B):gU(oe,H.isDefaultPrevented())},zte=(r,g,B)=>Bte(r,g,B),o_=(r,g)=>(r.insertContent(g,{merge:dw(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),RS=(r,g)=>OR(g)&&de(ky(r),B=>$r(g.toLowerCase(),`.${B.toLowerCase()}`)),tT=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),Nte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),Fte=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?Nte(r,g,B):!1,LS=(r,g,B)=>RS(r,g)?tT(r,g,B):!1,$te=(r,g)=>{To.each([Fte,LS,o_],B=>!B(r,g,o_))},SR=(r,g,B)=>{B||!o3(r)?o_(r,g):$te(r,g)},Vte=wR("mceclip"),yU=r=>{const g=lU();return cU(g,r),yR(g),g},kR=(r,g,B,H,oe)=>{const be=zte(r,g,B);if(!be.cancelled){const Le=be.content,Ke=()=>SR(r,Le,H);oe?D0(r,"insertFromPaste",{dataTransfer:yU(Le)}).isDefaultPrevented()||(Ke(),cO(r,"insertFromPaste")):Ke()}},IS=(r,g,B,H)=>{const oe=B||fU(g);kR(r,Cte(g),oe,!1,H)},GA=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` -`),oe=Ut(H,hw(r)),be=Ete(oe,tu(r),qd(r));kR(r,be,!1,!0,B)},bU=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,TR=r=>i_(r,"text/html")||i_(r,"text/plain"),Ute=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return P(B)?r.dom.encode(B[1]):void 0},xU=(r,g,B,H)=>{const oe=Vte(),be=dl(r)&&P(B.name),Le=be?Ute(r,B.name):oe,Ke=be?B.name:void 0,ut=g.create(oe,B,H,Le,Ke);return g.add(ut),ut},CR=(r,g)=>{V2(g.uri).each(({data:B,type:H,base64Encoded:oe})=>{const be=oe?B:btoa(B),Le=g.file,Ke=r.editorUpload.blobCache,ut=Ke.getByData(be,H),At=ut??xU(r,Ke,Le,be);IS(r,``,!1,!0)})},_U=r=>r.type==="paste",jte=r=>Promise.all(ye(r,g=>lx(g).then(B=>({file:g,uri:B})))),Qte=r=>{const g=ky(r);return B=>Br(B.type,"image/")&&de(g,H=>Ite(H)===B.type)},Hte=(r,g)=>{const B=g.items?$e(Me(g.items),oe=>oe.kind==="file"?[oe.getAsFile()]:[]):[],H=g.files?Me(g.files):[];return Te(B.length>0?B:H,Qte(r))},AR=(r,g,B)=>{const H=_U(g)?g.clipboardData:g.dataTransfer;if(xv(r)&&H){const oe=Hte(r,H);if(oe.length>0)return g.preventDefault(),jte(oe).then(be=>{B&&r.selection.setRng(B),ve(be,Le=>{CR(r,Le)})}),!0}return!1},MR=r=>{var g,B;return Nr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},Zte=r=>Jo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,KA=(r,g,B,H,oe)=>{let be=_R(B);const Le=i_(g,YA())||fU(B),Ke=!Le&&Ate(be),ut=OR(be);(XA(be)||!be.length||Ke&&!ut)&&(H=!0),(H||ut)&&(i_(g,"text/plain")&&Ke?be=g["text/plain"]:be=Lte(be)),!XA(be)&&(H?GA(r,be,oe):IS(r,be,Le,oe))},wU=(r,g,B)=>{let H;const oe=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{Zte(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||MR(be))return;const Le=B.get()==="text"||H;H=!1;const Ke=bU(be.clipboardData);!TR(Ke)&&AR(r,be,oe())||(i_(Ke,"text/html")?(be.preventDefault(),KA(r,Ke,Ke["text/html"],Le,!0)):i_(Ke,"text/plain")&&i_(Ke,"text/uri-list")?(be.preventDefault(),KA(r,Ke,Ke["text/plain"],Le,!0)):(g.create(),Ig.setEditorTimeout(r,()=>{const ut=g.getHtml();g.remove(),KA(r,Ke,ut,Le,!1)},0)))})},qte=r=>{const g=oe=>Br(oe,"webkit-fake-url"),B=oe=>Br(oe,"data:"),H=oe=>{var be;return((be=oe.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(oe,be,Le)=>{if(!xv(r)&&H(Le))for(const Ke of oe){const ut=Ke.attr("src");v(ut)&&!Ke.attr("data-mce-object")&&ut!==Nr.transparentSrc&&(g(ut)||!v1(r)&&B(ut))&&Ke.remove()}})},OU=(r,g,B)=>{wU(r,g,B),qte(r)},Wte=(r,g)=>{g.get()==="text"?(g.set("html"),j3(r,!1)):(g.set("text"),j3(r,!0)),r.focus()},Yte=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{Wte(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&IS(r,H.html,H.internal,!1),H.text&&GA(r,H.text,!1)})},Xte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(YA(),g),!0}catch{return!1}else return!1},SU=(r,g,B,H)=>{Xte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},kU=r=>(g,B)=>{const{dom:H,selection:oe}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Le=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Le),H.add(r.getBody(),be);const Ke=oe.getRng();Le.focus();const ut=H.createRng();ut.selectNodeContents(Le),oe.setRng(ut),Ig.setEditorTimeout(r,()=>{oe.setRng(Ke),H.remove(be),B()},0)},nT=r=>({html:Tte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),Gte=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),ER=r=>!r.selection.isCollapsed()||Gte(r),Kte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&r.selection.isEditable()&&SU(g,nT(r),kU(r),()=>{if(Nr.browser.isChromium()||Nr.browser.isFirefox()){const B=r.selection.getRng();Ig.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},Jte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&SU(g,nT(r),kU(r),k)},TU=r=>{r.on("cut",Kte(r)),r.on("copy",Jte(r))},PR=(r,g)=>{var B,H;return oi.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},ene=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},CU=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},tne=r=>de(r.files,g=>/^image\//.test(g.type)),nne=(r,g,B,H)=>{const oe=r.getParent(B,Le=>lh(g,Le));if(!x(r.getParent(B,"summary")))return!0;if(oe&&Ot(H,"text/html")){const Le=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Le.querySelector(oe.nodeName.toLowerCase()))}else return!1},rne=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ve(H,oe=>{gn(oe.firstChild)&&oe.firstChild.remove();const be=r.dom.create("summary");be.appendChild(sv().dom),oe.prepend(be)})}})},AU=(r,g)=>{r3(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),xv(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&tne(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=PR(r,B);if(T(H))return;const oe=bU(B.dataTransfer),be=i_(oe,YA());if((!TR(oe)||ene(oe))&&AR(r,B,H))return;const Le=oe[YA()],Ke=Le||oe["text/html"]||oe["text/plain"],ut=nne(r.dom,r.schema,H.startContainer,oe),At=g.get();At&&!ut||Ke&&(B.preventDefault(),Ig.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Le||At&&ut)&&r.execCommand("Delete"),CU(r,H);const nn=_R(Ke);oe["text/html"]?IS(r,nn,be,!0):GA(r,nn,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{xv(r)&&!g.get()&&(B.preventDefault(),CU(r,PR(r,B))),B.type==="dragend"&&g.set(!1)}),rne(r)},one=r=>{const g=oe=>be=>{oe(r,be)},B=g1(r);A(B)&&r.on("PastePreProcess",g(B));const H=_v(r);A(H)&&r.on("PastePostProcess",g(H))},ine=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},ane=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,MU=r=>To.trim(r).replace(ane,od).toLowerCase(),sne=(r,g,B)=>{const H=Sy(r);if(B||H==="all"||!Ov(r))return g;const oe=H?H.split(/[, ]/):[];if(oe&&H!=="none"){const be=r.dom,Le=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ut,At,nn)=>{const un=be.parseStyle(be.decode(At)),yn={};for(let rr=0;rr]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Le,Ke,ut)=>Le+' style="'+Ke+'"'+ut),g},lne=r=>{(Nr.browser.isChromium()||Nr.browser.isSafari())&&ine(r,sne)},cne=r=>{const g=Ar(!1),B=Ar(Bb(r)?"text":"html"),H=pU(r);lne(r),Yte(r,B),one(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{TU(r),AU(r,g),OU(r,H,B)})},une=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},EU=r=>{r.parser.addNodeFilter("details",g=>{const B=a3(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=d2(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},PU=r=>{une(r),EU(r)},fne=gn,RU=Mt,dne=r=>In(r.dom),hne=r=>pn(r.dom),LU=r=>g=>va(_r.fromDom(r),g),pne=(r,g,B)=>cl(_r.fromDom(r),H=>hne(H)||B.isBlock(ma(H)),LU(g)).getOr(_r.fromDom(g)).dom,IU=(r,g)=>cl(_r.fromDom(r),dne,LU(g)),rT=(r,g,B)=>{const H=new Xl(r,g),oe=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Le=B?r:oe();Le&&!fne(Le);Le=oe())Hh(Le)&&(be=Le);return be},DU=(r,g,B)=>{const oe=vo.fromRangeStart(r).getNode(),be=pne(oe,g,B),Le=rT(oe,be,!1),Ke=rT(oe,be,!0),ut=document.createRange();return IU(Le,be).fold(()=>{RU(Le)?ut.setStart(Le,0):ut.setStartBefore(Le)},At=>ut.setStartBefore(At.dom)),IU(Ke,be).fold(()=>{RU(Ke)?ut.setEnd(Ke,Ke.data.length):ut.setEndAfter(Ke)},At=>ut.setEndAfter(At.dom)),ut},mne=r=>{const g=DU(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Rc(g))},BU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),mne(r))})};var fO;(function(r){r.Before="before",r.After="after"})(fO||(fO={}));const RR=(r,g)=>Math.abs(r.left-g),gne=(r,g)=>Math.abs(r.right-g),zU=(r,g)=>r>=g.top&&r<=g.bottom,vne=(r,g)=>r.topg.top,NU=(r,g)=>{const B=uv(r,g)/Math.min(r.height,g.height);return vne(r,g)&&B>.5},yne=(r,g)=>{const B=Te(r,H=>zU(g,H));return kb(B).fold(()=>[[],r],H=>{const{pass:oe,fail:be}=we(r,Le=>NU(Le,H));return[oe,be]})},FU=(r,g)=>({node:r.node,position:RR(r,g)g>r.left&&g{const oe=un=>Hh(un.node)?Y.some(un):ne(un.node)?LR(Me(un.node.childNodes),g,B,!1):Y.none(),be=(un,yn,Qn)=>oe(yn).filter(rr=>Math.abs(Qn(un,g,B)-Qn(rr,g,B))<2&&Mt(rr.node)),Le=(un,yn)=>{const Qn=Ue(un,(rr,Wn)=>yn(rr,g,B)-yn(Wn,g,B));return Fe(Qn,oe).map(rr=>H&&!Mt(rr.node)&&Qn.length>1?be(rr,Qn[1],yn).getOr(rr):rr)},[Ke,ut]=yne(I0(r),B),{pass:At,fail:nn}=we(ut,un=>un.topLe(nn,dc)).orThunk(()=>Le(At,dc))},xne=(r,g,B,H)=>{const oe=(be,Le)=>{const Ke=At=>ne(At)&&At.classList.contains("mce-drag-container"),ut=Te(be.dom.childNodes,X(Ke));return Le.fold(()=>LR(ut,B,H,!0),At=>{const nn=Te(ut,un=>un!==At.dom);return LR(nn,B,H,!0)}).orThunk(()=>(va(be,r)?Y.none():Nh(be)).bind(nn=>oe(nn,Y.some(be))))};return oe(g,Y.none())},oT=(r,g,B)=>{const H=_r.fromDom(r),oe=$f(H),Le=_r.fromPoint(oe,g,B).filter(Ke=>El(H,Ke)).getOr(H);return xne(H,Le,g,B)},$U=(r,g,B)=>oT(r,g,B).filter(H=>b1(H.node)).map(H=>FU(H,g)),VU=r=>{var g,B;const H=r.getBoundingClientRect(),oe=r.ownerDocument,be=oe.documentElement,Le=oe.defaultView;return{top:H.top+((g=Le==null?void 0:Le.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Le==null?void 0:Le.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},UU=r=>r.inline?VU(r.getBody()):{left:0,top:0},_ne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},wne=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},oe={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:oe},One=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=VU(r.getContentAreaContainer()),H=wne(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},Sne=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),kne=(r,g)=>Sne(UU(r),_ne(r),One(r,g)),iT=r=>({target:r,srcElement:r}),jU=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...iT(B)}),QU=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...iT(g)}},Tne=(r,g)=>{const B=WA(r);return g==="dragstart"?(tU(B),rU(B)):g==="drop"?(nU(B),yR(B)):(yte(B),oU(B)),B},Cne=(r,g,B,H)=>{const oe=Tne(B,r);return M(H)?QU(r,g,oe):jU(r,H,g,oe)},JA=32,Jfe=100,e8=8,aT=16,t8=In,n8=F4(t8,pn),Ane=(r,g,B)=>t8(B)&&B!==g&&r.isEditable(B.parentElement),Mne=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),HU=(r,g,B,H)=>{const oe=r.dom,be=g.cloneNode(!0);oe.setStyles(be,{width:B,height:H}),oe.setAttrib(be,"data-mce-selected",null);const Le=oe.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return oe.setStyles(Le,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),oe.setStyles(be,{margin:0,boxSizing:"border-box"}),Le.appendChild(be),Le},Ene=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},DS=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},IR=DS("left",-JA),ZU=DS("left",JA),qU=DS("top",-JA),DR=DS("top",JA),Pne=(r,g,B,H,oe,be,Le,Ke,ut,At,nn,un)=>{let yn=0,Qn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>oe&&(yn=g.pageX+B-oe),g.pageY+H>be&&(Qn=g.pageY+H-be),r.style.width=B-yn+"px",r.style.height=H-Qn+"px";const rr=ut.clientHeight,Wn=ut.clientWidth,ur=Le+ut.getBoundingClientRect().top,Tr=Ke+ut.getBoundingClientRect().left;nn.on(Wr=>{Wr.intervalId.clear(),Wr.dragging&&un&&(Le+e8>=rr?Wr.intervalId.set(DR(At)):Le-e8<=0?Wr.intervalId.set(qU(At)):Ke+e8>=Wn?Wr.intervalId.set(ZU(At)):Ke-e8<=0?Wr.intervalId.set(IR(At)):ur+aT>=window.innerHeight?Wr.intervalId.set(DR(window)):ur-aT<=0?Wr.intervalId.set(qU(window)):Tr+aT>=window.innerWidth?Wr.intervalId.set(ZU(window)):Tr-aT<=0&&Wr.intervalId.set(IR(window)))})},Rne=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},Lne=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);Rne(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&xp(_r.fromDom(B))},Ine=r=>r.button===0,Dne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),WU=(r,g)=>B=>{if(Ine(B)){const H=De(g.dom.getParents(B.target),n8).getOr(null);if(P(H)&&Ane(g.dom,g.getBody(),H)){const oe=g.dom.getPos(H),be=g.getBody(),Le=g.getDoc().documentElement;r.set({element:H,dataTransfer:lU(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Le.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Le.offsetHeight)-2,relX:B.pageX-oe.x,relY:B.pageY-oe.y,width:H.offsetWidth,height:H.offsetHeight,ghost:HU(g,H,H.offsetWidth,H.offsetHeight),intervalId:$s(Jfe)})}}},Bne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),$U(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const oe=r._selectionOverrides.showCaret(1,H.node,H.position===fO.Before,!1);oe?r.selection.setRng(oe):r.selection.placeCaretAt(g,B)})},BS=(r,g,B,H,oe)=>{g==="dragstart"&&cU(H,r.dom.getOuterHTML(B));const be=Cne(g,B,H,oe);return r.dispatch(g,be)},zne=(r,g)=>{const B=fy((oe,be)=>Bne(g,oe,be),0);g.on("remove",B.cancel);const H=r;return oe=>r.on(be=>{const Le=Math.max(Math.abs(oe.screenX-be.screenX),Math.abs(oe.screenY-be.screenY));if(!be.dragging&&Le>10){const Ke=BS(g,"dragstart",be.element,be.dataTransfer,oe);if(P(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=oe.currentTarget===g.getDoc().documentElement,ut=Dne(be,kne(g,oe));Ene(be.ghost,g.getBody()),Pne(be.ghost,ut,be.width,be.height,be.maxX,be.maxY,oe.clientY,oe.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(oe.clientX,oe.clientY)}})},Nne=r=>{const g=r.getSel();if(P(g)){const H=g.getRangeAt(0).startContainer;return Mt(H)?H.parentNode:H}else return null},Fne=(r,g)=>B=>{r.on(H=>{var oe;if(H.intervalId.clear(),H.dragging){if(Mne(g,Nne(g.selection),H.element)){const be=(oe=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&oe!==void 0?oe:g.getBody();BS(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{Lne(g.dom,H.element),kte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}BS(g,"dragend",g.getBody(),H.dataTransfer,B)}}),BR(r)},YU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>BS(g,"dragend",H.element,H.dataTransfer),oe=>BS(g,"dragend",H.element,H.dataTransfer,oe))}),BR(r)},$ne=(r,g)=>B=>YU(r,g,Y.some(B)),BR=r=>{r.on(g=>{g.intervalId.clear(),Rne(g.ghost)}),r.clear()},ede=r=>{const g=Ts(),B=cc.DOM,H=document,oe=WU(g,r),be=zne(g,r),Le=Fne(g,r),Ke=$ne(g,r);r.on("mousedown",oe),r.on("mousemove",be),r.on("mouseup",Le),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ut=>{ut.keyCode===Jo.ESC&&YU(g,r,Y.none())})},Vne=r=>{const g=oe=>{if(!oe.isDefaultPrevented()){const be=oe.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(oe.preventDefault(),oe.type==="drop"&&d5(r,"Dropped file type is not supported"))}},B=oe=>{o6(r,oe.target)&&g(oe)},H=()=>{const oe=cc.DOM,be=r.dom,Le=document,Ke=r.inline?r.getBody():r.getDoc(),ut=["drop","dragover"];ve(ut,At=>{oe.bind(Le,At,B),be.bind(Ke,At,g)}),r.on("remove",()=>{ve(ut,At=>{oe.unbind(Le,At,B),be.unbind(Ke,At,g)})})};r.on("init",()=>{Ig.setEditorTimeout(r,H,0)})},XU=r=>{ede(r),fw(r)&&Vne(r)},Une=r=>{const g=fy(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=_S(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},zR=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Gr(B)){const H=z2(r.getBody(),B),oe=In(H)?H:B;r.selection.getNode()!==oe&&xS(r,oe).each(be=>r.selection.setRng(be))}})})},sT=In,GU=(r,g)=>z2(r.getBody(),g),jne=r=>{const g=r.selection,B=r.dom,H=r.getBody(),oe=CD(r,H,B.isBlock,()=>nx(r)),be="sel-"+B.uniqueId(),Le="data-mce-selected";let Ke;const ut=Mi=>P(Mi)&&B.hasClass(Mi,"mce-offscreen-selection"),At=Mi=>Mi!==H&&(sT(Mi)||Gr(Mi))&&B.isChildOf(Mi,H)&&B.isEditable(Mi.parentNode),nn=Mi=>{Mi&&g.setRng(Mi)},un=(Mi,Co,yo,Vo=!0)=>r.dispatch("ShowCaret",{target:Co,direction:Mi,before:yo}).isDefaultPrevented()?null:(Vo&&g.scrollIntoView(Co,Mi===-1),oe.show(yo,Co)),yn=Mi=>{Mi.hasAttribute("data-mce-caret")&&(Ch(Mi),g.scrollIntoView(Mi))},Qn=()=>{r.on("click",Co=>{B.isEditable(Co.target)||(Co.preventDefault(),r.focus())}),r.on("blur NewBlock",lo),r.on("ResizeWindow FullscreenStateChanged",oe.reposition),r.on("tap",Co=>{const yo=Co.target,Vo=GU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):At(yo)&&xS(r,yo).each(Qr)},!0),r.on("mousedown",Co=>{const yo=Co.target;if(yo!==H&&yo.nodeName!=="HTML"&&!B.isChildOf(yo,H)||!fG(r,Co.clientX,Co.clientY))return;lo(),li();const Vo=GU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):$U(H,Co.clientX,Co.clientY).each(Fi=>{Co.preventDefault();const la=un(1,Fi.node,Fi.position===fO.Before,!1);nn(la),V(Vo)?Vo.focus():r.getBody().focus()})}),r.on("keypress",Co=>{Jo.modifierPressed(Co)||sT(g.getNode())&&Co.preventDefault()}),r.on("GetSelectionRange",Co=>{let yo=Co.range;if(Ke){if(!Ke.parentNode){Ke=null;return}yo=yo.cloneRange(),yo.selectNode(Ke),Co.range=yo}}),r.on("SetSelectionRange",Co=>{Co.range=ur(Co.range);const yo=Qr(Co.range,Co.forward);yo&&(Co.range=yo)});const Mi=Co=>ne(Co)&&Co.id==="mcepastebin";r.on("AfterSetSelectionRange",Co=>{const yo=Co.range,Vo=yo.startContainer.parentElement;!Wn(yo)&&!Mi(Vo)&&li(),ut(Vo)||lo()}),XU(r),Une(r),zR(r)},rr=Mi=>op(Mi)||p0(Mi)||Ss(Mi),Wn=Mi=>rr(Mi.startContainer)||rr(Mi.endContainer),ur=Mi=>{const Co=r.schema.getVoidElements(),yo=B.createRng(),Vo=Mi.startContainer,Fi=Mi.startOffset,la=Mi.endContainer,bs=Mi.endOffset;return Ot(Co,Vo.nodeName.toLowerCase())?Fi===0?yo.setStartBefore(Vo):yo.setStartAfter(Vo):yo.setStart(Vo,Fi),Ot(Co,la.nodeName.toLowerCase())?bs===0?yo.setEndBefore(la):yo.setEndAfter(la):yo.setEnd(la,bs),yo},Tr=(Mi,Co)=>{const yo=_r.fromDom(r.getBody()),Vo=r.getDoc(),Fi=wi(yo,"#"+be).getOrThunk(()=>{const Ms=_r.fromHtml('
    ',Vo);return ll(Ms,"id",be),ii(yo,Ms),Ms}),la=B.createRng();uf(Fi),Yl(Fi,[_r.fromText(Pc,Vo),_r.fromDom(Co),_r.fromText(Pc,Vo)]),la.setStart(Fi.dom.firstChild,1),la.setEnd(Fi.dom.lastChild,0),aa(Fi,{top:B.getPos(Mi,r.getBody()).y+"px"}),Z3(Fi);const bs=g.getSel();return bs&&(bs.removeAllRanges(),bs.addRange(la)),la},Wr=Mi=>{const Co=Mi.cloneNode(!0),yo=r.dispatch("ObjectSelected",{target:Mi,targetClone:Co});if(yo.isDefaultPrevented())return null;const Vo=Tr(Mi,yo.targetClone),Fi=_r.fromDom(Mi);return ve(Pl(_r.fromDom(r.getBody()),`*[${Le}]`),la=>{va(Fi,la)||tc(la,Le)}),B.getAttrib(Mi,Le)||Mi.setAttribute(Le,"1"),Ke=Mi,li(),Vo},Qr=(Mi,Co)=>{if(!Mi)return null;if(Mi.collapsed){if(!Wn(Mi)){const la=Co?1:-1,bs=xw(la,H,Mi),Ms=bs.getNode(!Co);if(P(Ms)){if(b1(Ms))return un(la,Ms,Co?!bs.isAtEnd():!1,!1);if(_p(Ms)&&In(Ms.nextSibling)){const Vl=B.createRng();return Vl.setStart(Ms,0),Vl.setEnd(Ms,0),Vl}}const wl=bs.getNode(Co);if(P(wl)){if(b1(wl))return un(la,wl,Co?!1:!bs.isAtEnd(),!1);if(_p(wl)&&In(wl.previousSibling)){const Vl=B.createRng();return Vl.setStart(wl,1),Vl.setEnd(wl,1),Vl}}}return null}let yo=Mi.startContainer,Vo=Mi.startOffset;const Fi=Mi.endOffset;if(Mt(yo)&&Vo===0&&sT(yo.parentNode)&&(yo=yo.parentNode,Vo=B.nodeIndex(yo),yo=yo.parentNode),!ne(yo))return null;if(Fi===Vo+1&&yo===Mi.endContainer){const la=yo.childNodes[Vo];if(At(la))return Wr(la)}return null},lo=()=>{Ke&&Ke.removeAttribute(Le),wi(_r.fromDom(r.getBody()),"#"+be).each(hs),Ke=null},Zo=()=>{oe.destroy(),Ke=null},li=()=>{oe.hide()};return By(r)||Qn(),{showCaret:un,showBlockCaretContainer:yn,hideFakeCaret:li,destroy:Zo}},KU=(r,g)=>{let B=g;for(let H=r.previousSibling;Mt(H);H=H.previousSibling)B+=H.data.length;return B},lT=(r,g,B,H,oe)=>{if(Mt(B)&&(H<0||H>B.data.length))return[];const be=oe&&Mt(B)?[KU(B,H)]:[H];let Le=B;for(;Le!==g&&Le.parentNode;)be.push(r.nodeIndex(Le,oe)),Le=Le.parentNode;return Le===g?be.reverse():[]},r8=(r,g,B,H,oe,be,Le=!1)=>{const Ke=lT(r,g,B,H,Le),ut=lT(r,g,oe,be,Le);return{start:Ke,end:ut}},NR=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Le)=>be.bind(Ke=>Y.from(Ke.childNodes[Le])),Y.some(r)).bind(be=>Mt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},JU=(r,g)=>NR(r,g.start).bind(({node:B,offset:H})=>NR(r,g.end).map(({node:oe,offset:be})=>{const Le=document.createRange();return Le.setStart(B,H),Le.setEnd(oe,be),Le})),Qne=(r,g,B,H=!1)=>r8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),dO=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Mt(g.firstChild)&&lc(g.firstChild.data)),dO(r,H,B)}},o8=(r,g,B,H=!0)=>{const oe=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Mt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Mt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),dO(r,oe,B),oe!==be&&dO(r,be,B))},i8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),FR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:ld(H).concat(r.blockPatterns),inlinePatterns:cd(H).concat(r.inlinePatterns)}},cT=(r,g,B,H)=>{const oe=r.createRng();return oe.setStart(g,0),oe.setEnd(B,H),oe.toString()},ej=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),a8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},tj=(r,g,B)=>{const H=JU(r.getRoot(),B).getOrDie("Unable to resolve path range"),oe=H.startContainer,be=H.endContainer,Le=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?oe:oe.splitText(H.startOffset),ut=Ke.parentNode,At=Le.parentNode;return{prefix:g,end:At.insertBefore(ej(r,g+"-end"),Le),start:ut.insertBefore(ej(r,g+"-start"),Ke)}},nj=(r,g,B)=>{dO(r,r.get(g.prefix+"-end"),B),dO(r,r.get(g.prefix+"-start"),B)},$R=r=>r.start.length===0,Hne=r=>(g,B)=>{const oe=g.data.substring(0,B),be=oe.lastIndexOf(r.charAt(r.length-1)),Le=oe.lastIndexOf(r);return Le!==-1?Le+r.length:be!==-1?be+1:-1},VR=(r,g,B,H)=>{const oe=g.start;return z9(r,H.container,H.offset,Hne(oe),B).bind(Le=>{var Ke,ut;const At=(ut=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(oe))!==null&&ut!==void 0?ut:-1;if(At!==-1&&Le.offset>=At+oe.length){const un=r.createRng();return un.setStart(Le.container,Le.offset-oe.length),un.setEnd(Le.container,Le.offset),Y.some(un)}else{const un=Le.offset-oe.length;return B9(Le.container,un,B).map(yn=>{const Qn=r.createRng();return Qn.setStart(yn.container,yn.offset),Qn.setEnd(Le.container,Le.offset),Qn}).filter(yn=>yn.toString()===oe).orThunk(()=>VR(r,g,B,L1(Le.container,0)))}})},rj=(r,g,B,H,oe,be=!1)=>{if(g.start.length===0&&!be){const Le=r.createRng();return Le.setStart(B,H),Le.setEnd(B,H),Y.some(Le)}return D9(B,H,oe).bind(Le=>VR(r,g,oe,Le).bind(ut=>{var At;if(be){if(ut.endContainer===Le.container&&ut.endOffset===Le.offset)return Y.none();if(Le.offset===0&&((At=ut.endContainer.textContent)===null||At===void 0?void 0:At.length)===ut.endOffset)return Y.none()}return Y.some(ut)}))},UR=(r,g,B,H)=>{const oe=r.dom,be=oe.getRoot(),Le=B.pattern,Ke=B.position.container,ut=B.position.offset;return B9(Ke,ut-B.pattern.end.length,g).bind(At=>{const nn=r8(oe,be,At.container,At.offset,Ke,ut,H);if($R(Le))return Y.some({matches:[{pattern:Le,startRng:nn,endRng:nn}],position:At});{const un=zS(r,B.remainingPatterns,At.container,At.offset,g,H),yn=un.getOr({matches:[],position:At}),Qn=yn.position;return rj(oe,Le,Qn.container,Qn.offset,g,un.isNone()).map(Wn=>{const ur=Qne(oe,be,Wn,H);return{matches:yn.matches.concat([{pattern:Le,startRng:ur,endRng:nn}]),position:L1(Wn.startContainer,Wn.startOffset)}})}})},zS=(r,g,B,H,oe,be)=>{const Le=r.dom;return D9(B,H,Le.getRoot()).bind(Ke=>{const ut=cT(Le,oe,B,H);for(let At=0;At0)return zS(r,g,B,H-1,oe,be);if(yn.isSome())return yn}return Y.none()})},oj=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ve(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},jR=(r,g,B,H)=>{const oe=a8(r.dom,B);o8(r.dom,oe,H),oj(r,g,oe)},Zne=(r,g,B,H,oe)=>{const be=r.dom,Le=a8(be,H),Ke=a8(be,B);o8(be,Ke,oe),o8(be,Le,oe);const ut={prefix:B.prefix,start:B.end,end:H.start},At=a8(be,ut);oj(r,g,At)},qne=(r,g)=>{const B=yb("mce_textpattern"),H=Pe(g,(oe,be)=>{const Le=tj(r,B+`_end${oe.length}`,be.endRng);return oe.concat([{...be,endMarker:Le}])},[]);return Pe(H,(oe,be)=>{const Le=H.length-oe.length-1,Ke=$R(be.pattern)?be.endMarker:tj(r,B+`_start${Le}`,be.startRng);return oe.concat([{...be,startMarker:Ke}])},[])},ij=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Wne=(r,g)=>{const B=Oe(r,H=>de(g,oe=>H.pattern.start===oe.pattern.start&&H.pattern.end===oe.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},aj=(r,g,B,H,oe,be)=>{const Le=zS(r,oe.inlinePatterns,B,H,g,be).fold(()=>[],ut=>ut.matches),Ke=zS(r,ij(oe.inlinePatterns),B,H,g,be).fold(()=>[],ut=>ut.matches);return Wne(Le,Ke)},sj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),oe=qne(B,g);ve(oe,be=>{const Le=B.getParent(be.startMarker.start,B.isBlock),Ke=ut=>ut===Le;$R(be.pattern)?jR(r,be.pattern,be.endMarker,Ke):Zne(r,be.pattern,be.startMarker,be.endMarker,Ke),nj(B,be.endMarker,Ke),nj(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},lj=(r,g,B)=>LJ(g,0,g).map(H=>{const oe=H.container;return j5(oe,B.start.length,g).each(be=>{const Le=r.createRng();Le.setStart(oe,0),Le.setEnd(be.container,be.offset),o8(r,Le,Ke=>Ke===g)}),oe}),cj=r=>(g,B)=>{const H=g.dom,oe=B.pattern,be=JU(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Le=(Ke,ut)=>{const At=ut.get(Ke);return C(At)&&Ye(At).exists(nn=>Ot(nn,"block"))};return i8(g,be).each(Ke=>{oe.type==="block-format"?Le(oe.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.formatter.apply(oe.format)}):oe.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.execCommand(oe.cmd,!1,oe.value)})}),!0},Yne=r=>Ue(r,(g,B)=>B.start.length-g.start.length),uj=r=>(g,B)=>{const H=Yne(g),oe=B.replace(Pc," ");return De(H,be=>r(be,B,oe))},QR=(r,g)=>(B,H,oe,be,Le)=>{var Ke;Le===void 0&&(Le=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ut=B.dom,At=tu(B);return ut.is(H,At)?r(oe.blockPatterns,Le).map(nn=>g&&To.trim(Le).length===nn.start.length?[]:[{pattern:nn,range:r8(ut,ut.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Xne=r=>/^\s[^\s]/.test(r),Gne=cj((r,g,B)=>{lj(r,g,B).each(H=>{const oe=_r.fromDom(H),be=f0(oe);Xne(be)&&K_(oe,be.slice(1))})}),Kne=uj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),Jne=QR(Kne,!0),ere=(r,g)=>{const B=r.selection.getRng();return i8(r,B).map(H=>{var oe;const be=Math.max(0,B.startOffset),Le=FR(g,H,(oe=H.textContent)!==null&&oe!==void 0?oe:""),Ke=aj(r,H,B.startContainer,be,Le,!0),ut=Jne(r,H,Le,!0);return{inlineMatches:Ke,blockMatches:ut}}).filter(({inlineMatches:H,blockMatches:oe})=>oe.length>0||H.length>0)},tre=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ve(g,H=>Gne(r,H)),r.selection.moveToBookmark(B)},nre=cj(lj),s8=uj((r,g,B)=>g===r.start||B===r.start),rre=QR(s8,!1),ore=(r,g)=>{const B=r.selection.getRng();return i8(r,B).map(H=>{const oe=Math.max(0,B.startOffset),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be);return rre(r,H,Le,!1,be)}).filter(H=>H.length>0)},ire=(r,g)=>{ve(g,B=>nre(r,B))},are=(r,g)=>ere(r,g).fold(re,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{XO(r),sj(r,B),tre(r,H);const oe=r.selection.getRng(),be=D9(oe.startContainer,oe.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Le=>{const Ke=Le.container;Ke.data.charAt(Le.offset-1)===pl&&(Ke.deleteData(Le.offset-1,1),dO(r.dom,Ke.parentNode,ut=>ut===r.dom.getRoot()))})}),!0)),sre=(r,g)=>{const B=r.selection.getRng();i8(r,B).map(H=>{const oe=Math.max(0,B.startOffset-1),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be),Ke=aj(r,H,B.startContainer,oe,Le,!1);Ke.length>0&&r.undoManager.transact(()=>{sj(r,Ke)})})},lre=(r,g)=>ore(r,g).fold(re,B=>(r.undoManager.transact(()=>{ire(r,B)}),!0)),dj=(r,g,B)=>{for(let H=0;Hdj(r,g,(B,H)=>B===H.keyCode&&!Jo.modifierPressed(H)),ure=(r,g)=>dj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),hj=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Cf(c2(r).filter(Le=>Le.type==="inline-command"||Le.type==="block-command"?r.queryCommandSupported(Le.cmd):!0),Wm(r)),oe=()=>ap(r);r.on("keydown",Le=>{if(Le.keyCode===13&&!Jo.modifierPressed(Le)&&r.selection.isCollapsed()){const Ke=xl(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||oe())&&are(r,Ke)&&Le.preventDefault()}},!0),r.on("keydown",Le=>{if(Le.keyCode===32&&r.selection.isCollapsed()){const Ke=xl(H(),"space");(Ke.blockPatterns.length>0||oe())&&lre(r,Ke)&&Le.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Le=xl(H(),"space");(Le.inlinePatterns.length>0||oe())&&sre(r,Le)}};r.on("keyup",Le=>{cre(B,Le)&&be()}),r.on("keypress",Le=>{ure(g,Le)&&Ig.setEditorTimeout(r,be)})},fre=r=>{hj(r)},pj=r=>{const g=To.each,B=Jo.BACKSPACE,H=Jo.DELETE,oe=r.dom,be=r.selection,Le=r.parser,Ke=Nr.browser,ut=Ke.isFirefox(),At=Ke.isChromium()||Ke.isSafari(),nn=Nr.deviceType.isiPhone()||Nr.deviceType.isiPad(),un=Nr.os.isMacOS()||Nr.os.isiOS(),yn=(Ti,pa)=>{try{r.getDoc().execCommand(Ti,!1,String(pa))}catch{}},Qn=Ti=>Ti.isDefaultPrevented(),rr=()=>{const Ti=ps=>{const Ci=oe.create("body"),ms=ps.cloneContents();return Ci.appendChild(ms),be.serializer.serialize(Ci,{format:"html"})},pa=ps=>{const Ci=Ti(ps),ms=oe.createRng();ms.selectNode(r.getBody());const Es=Ti(ms);return Ci===Es};r.on("keydown",ps=>{const Ci=ps.keyCode;if(!Qn(ps)&&(Ci===H||Ci===B)&&r.selection.isEditable()){const ms=r.selection.isCollapsed(),Es=r.getBody();if(ms&&!Hi(r.schema,Es)||!ms&&!pa(r.selection.getRng()))return;ps.preventDefault(),r.setContent(""),Es.firstChild&&oe.isBlock(Es.firstChild)?r.selection.setCursorLocation(Es.firstChild,0):r.selection.setCursorLocation(Es,0),r.nodeChanged()}})},Wn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},ur=()=>{r.inline||oe.bind(r.getDoc(),"mousedown mouseup",Ti=>{let pa;if(Ti.target===r.getDoc().documentElement)if(pa=be.getRng(),r.getBody().focus(),Ti.type==="mousedown"){if(op(pa.startContainer))return;be.placeCaretAt(Ti.clientX,Ti.clientY)}else be.setRng(pa)})},Tr=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode(),ps=pa.previousSibling;if(pa.nodeName==="HR"){oe.remove(pa),Ti.preventDefault();return}ps&&ps.nodeName&&ps.nodeName.toLowerCase()==="hr"&&(oe.remove(ps),Ti.preventDefault())}}})},Wr=()=>{Range.prototype.getClientRects||r.on("mousedown",Ti=>{if(!Qn(Ti)&&Ti.target.nodeName==="HTML"){const pa=r.getBody();pa.blur(),Ig.setEditorTimeout(r,()=>{pa.focus()})}})},Qr=()=>{const Ti=a2(r);r.on("click",pa=>{const ps=pa.target;/^(IMG|HR)$/.test(ps.nodeName)&&oe.isEditable(ps)&&(pa.preventDefault(),r.selection.select(ps),r.nodeChanged()),ps.nodeName==="A"&&oe.hasClass(ps,Ti)&&ps.childNodes.length===0&&oe.isEditable(ps.parentNode)&&(pa.preventDefault(),be.select(ps))})},lo=()=>{const Ti=()=>{const ps=oe.getAttribs(be.getStart().cloneNode(!1));return()=>{const Ci=be.getStart();Ci!==r.getBody()&&(oe.setAttrib(Ci,"style",null),g(ps,ms=>{Ci.setAttributeNode(ms.cloneNode(!0))}))}},pa=()=>!be.isCollapsed()&&oe.getParent(be.getStart(),oe.isBlock)!==oe.getParent(be.getEnd(),oe.isBlock);r.on("keypress",ps=>{let Ci;return!Qn(ps)&&(ps.keyCode===8||ps.keyCode===46)&&pa()?(Ci=Ti(),r.getDoc().execCommand("delete",!1),Ci(),ps.preventDefault(),!1):!0}),oe.bind(r.getDoc(),"cut",ps=>{if(!Qn(ps)&&pa()){const Ci=Ti();Ig.setEditorTimeout(r,()=>{Ci()})}})},Zo=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode().previousSibling;if(pa&&pa.nodeName&&pa.nodeName.toLowerCase()==="table")return Ti.preventDefault(),!1}return!0})},li=()=>{r.on("keydown",Ti=>{if(Qn(Ti)||Ti.keyCode!==Jo.BACKSPACE)return;let pa=be.getRng();const ps=pa.startContainer,Ci=pa.startOffset,ms=oe.getRoot();let Es=ps;if(!(!pa.collapsed||Ci!==0)){for(;Es.parentNode&&Es.parentNode.firstChild===Es&&Es.parentNode!==ms;)Es=Es.parentNode;Es.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Es),pa=oe.createRng(),pa.setStart(ps,0),pa.setEnd(ps,0),be.setRng(pa))}})},Mi=()=>{const Ti=()=>{yn("StyleWithCSS",!1),yn("enableInlineTableEditing",!1),Md(r)||yn("enableObjectResizing",!1)};Rb(r)||r.on("BeforeExecCommand mousedown",Ti)},Co=()=>{const Ti=()=>{g(oe.select("a:not([data-mce-block])"),pa=>{var ps;let Ci=pa.parentNode;const ms=oe.getRoot();if((Ci==null?void 0:Ci.lastChild)===pa){for(;Ci&&!oe.isBlock(Ci);){if(((ps=Ci.parentNode)===null||ps===void 0?void 0:ps.lastChild)!==Ci||Ci===ms)return;Ci=Ci.parentNode}oe.add(Ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",pa=>{(pa.type==="setcontent"||pa.command==="mceInsertLink")&&Ti()})},yo=()=>{r.on("init",()=>{yn("DefaultParagraphSeparator",tu(r))})},Vo=Ti=>{const pa=Ti.getBody(),ps=Ti.selection.getRng();return ps.startContainer===ps.endContainer&&ps.startContainer===pa&&ps.startOffset===0&&ps.endOffset===pa.childNodes.length},Fi=()=>{r.on("keyup focusin mouseup",Ti=>{!Jo.modifierPressed(Ti)&&!Vo(r)&&be.normalize()},!0)},la=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},bs=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ms=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",Ti=>{let pa;Ti.target.nodeName==="HTML"&&(pa=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(pa),r.selection.normalize(),r.nodeChanged())}))},wl=()=>{un&&r.on("keydown",Ti=>{Jo.metaKeyPressed(Ti)&&!Ti.shiftKey&&(Ti.keyCode===37||Ti.keyCode===39)&&(Ti.preventDefault(),r.selection.getSel().modify("move",Ti.keyCode===37?"backward":"forward","lineboundary"))})},Vl=()=>{r.on("click",Ti=>{let pa=Ti.target;do if(pa.tagName==="A"){Ti.preventDefault();return}while(pa=pa.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},Uu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",Ti=>{Ti.preventDefault()})})},Wf=()=>{Le.addNodeFilter("br",Ti=>{let pa=Ti.length;for(;pa--;)Ti[pa].attr("class")==="Apple-interchange-newline"&&Ti[pa].remove()})},ic=k,vi=()=>{if(!ut||r.removed)return!1;const Ti=r.selection.getSel();return!Ti||!Ti.rangeCount||Ti.rangeCount===0},na=()=>{At&&(ur(),Qr(),Uu(),Wn(),nn&&(bs(),Ms(),Vl())),ut&&(Wr(),Mi(),la(),wl())},ol=()=>{li(),rr(),Nr.windowsPhone||Fi(),At&&(ur(),Qr(),yo(),Uu(),Zo(),Wf(),nn?(bs(),Ms(),Vl()):Wn()),ut&&(Tr(),Wr(),lo(),Mi(),Co(),la(),wl(),Zo())};return By(r)?na():ol(),{refreshContentEditable:ic,isHidden:vi}},dre=r=>r.toLowerCase()==="gpl",hre=r=>r.length>=64&&r.length<=255,mj=r=>dre(r)||hre(r)?"VALID":"INVALID",uT=r=>{const g=l3(r);!v(c3(r))&&(M(g)||mj(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},HR=cc.DOM,gj=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_d(Ac(B)),oe=_r.fromTag("style");ll(oe,"type","text/css"),ii(oe,_r.fromText(g)),ii(H,oe),r.on("remove",()=>{hs(oe)})},pre=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,ZR=r=>Yt(r,g=>M(g)===!1),vj=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return ZR({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:pre(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:h2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},yj=r=>{const g=r.options.get;return ZR({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},bj=r=>{const g=r.options.get;return{...vj(r),...yj(r),...ZR({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},mre=r=>{const g=fS(vj(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const oe=r.dom,be="data-mce-"+H;let Le=B.length;for(;Le--;){const Ke=B[Le];let ut=Ke.attr(H);if(ut&&!Ke.attr(be)){if(ut.indexOf("data:")===0||ut.indexOf("blob:")===0)continue;H==="style"?(ut=oe.serializeStyle(oe.parseStyle(ut),Ke.name),ut.length||(ut=null),Ke.attr(be,ut),Ke.attr(H,ut)):H==="tabindex"?(Ke.attr(be,ut),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ut,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const oe=B[H],be=oe.attr("type")||"no/type";be.indexOf("mce-")!==0&&oe.attr("type","mce-"+be)}}),zb(r)&&g.addNodeFilter("#cdata",B=>{var H;let oe=B.length;for(;oe--;){const be=B[oe];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const oe=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(oe)&&be.getAll("br").length===0&&be.append(new Hp("br",1))}}),g},xj=r=>{const g=Db(r);g&&Ig.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},gre=r=>{const g=r.dom.getRoot();!r.inline&&(!T2(r)||r.selection.getStart(!0)===g)&&ph(g).each(B=>{const H=B.getNode(),oe=dt(H)?ph(H).getOr(B):B;r.selection.setRng(oe.toRange())})},vre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,oE(r),r.focus(!0),gre(r),r.nodeChanged({initial:!0});const g=n3(r);A(g)&&g.call(r,r),xj(r)},qR=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,yre=(r,g,B)=>{const{pass:H,fail:oe}=we(g,Ke=>tinymce.Resource.has(m5(Ke))),Le=[...H.map(Ke=>{const ut=tinymce.Resource.get(m5(Ke));return v(ut)?Promise.resolve(qR(r).loadRawCss(Ke,ut)):Promise.resolve()}),qR(r).loadAll(oe)];return r.inline?Le:Le.concat([r.ui.styleSheetLoader.loadAll(B)])},_j=r=>{const g=qR(r),B=Ad(r),H=r.contentCSS,oe=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?oe():r.on("remove",oe)};if(r.contentStyles.length>0){let ut="";To.each(r.contentStyles,At=>{ut+=At+`\r -`}),r.dom.addStyle(ut)}const Le=Promise.all(yre(r,H,B)).then(be).catch(be),Ke=Mb(r);return Ke&&gj(r,Ke),Le},bre=r=>{const g=r.getDoc(),B=r.getBody();$3(r),l2(r)||(g.body.spellcheck=!1,HR.setAttrib(B,"spellcheck","false")),r.quirks=pj(r),UC(r);const H=xy(r);H!==void 0&&(B.dir=H);const oe=fm(r);oe&&r.on("BeforeSetContent",be=>{To.each(oe,Le=>{be.content=be.content.replace(Le,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},xre=r=>{By(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},WR=r=>{r.removed!==!0&&(xre(r),vre(r))},_re=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},YR=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(HR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=Rb(r),r._editableRoot=Lb(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&HR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=C7(r),r.schema=zm(yj(r)),r.dom=cc(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:p1(r),referrerPolicy:b0(r),onSetAttrib:Le=>{r.dispatch("SetAttrib",Le)}}),r.parser=mre(r),r.serializer=Lh(bj(r),r),r.selection=jX(r.dom,r.getWin(),r.serializer,r),r.annotator=B3(r),r.formatter=Dv(r),r.undoManager=bS(r),r._nodeChangeDispatcher=new KV(r),r._selectionOverrides=jne(r),ZK(r),PU(r),KK(r),By(r)||(BU(r),fre(r));const oe=HA(r);h$(r,oe),y9(r),BG(r),cne(r);const be=SX(r);bre(r),uT(r),be.fold(()=>{const Le=_re(r);_j(r).then(()=>{WR(r),Le()})},Le=>{r.setProgressState(!0),_j(r).then(()=>{Le().then(Ke=>{r.setProgressState(!1),WR(r),v7(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),WR(r),v7(r)})})})},XR=q,wj=(r,g,B)=>wt(r,g,XR,B),l8=cc.DOM,wre=(r,g,B,H)=>{const oe=_r.fromTag("iframe");return H.each(be=>ll(oe,"tabindex",be)),Tu(oe,B),Tu(oe,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),Cu(oe,"tox-edit-area__iframe"),oe},Ore=r=>{let g=Mh(r)+"";mc(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=dh(r),H=hh(r),oe=r.translate(s2(r));return Qm(r)&&(g+=''),g+=`
    `,g},Sre=(r,g)=>{const B=Nr.browser.isFirefox()?s2(r):"Rich Text Area",H=r.translate(B),oe=ec(_r.fromDom(r.getElement()),"tabindex").bind(eo),be=wre(r.id,H,Ru(r),oe).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=Ore(r),l8.add(g.iframeContainer,be)},Oj=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,YR(r)};if(V4(r)||Nr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=wj(_r.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},Sj=(r,g)=>{Sre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=l8.isHidden(g.editorContainer)),r.getElement().style.display="none",l8.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,Oj(r)},kj=cc.DOM,kre=(r,g,B)=>{const H=mS.get(B),oe=mS.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=To.trim(B),H&&To.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,oe)||{};r.plugins[B]=be,A(be.init)&&(be.init(r,oe),g.push(B))}catch(be){bG(r,B,be)}}},GR=r=>r.replace(/^\-/,""),c8=r=>{const g=[];ve(bv(r),B=>{kre(r,g,GR(B))})},u8=r=>{const g=To.trim(du(r)),B=r.ui.registry.getAll().icons,H={...sA.get("default").icons,...sA.get(g).icons};Ge(H,(oe,be)=>{Ot(B,be)||r.ui.registry.addIcon(be,oe)})},mx=r=>{const g=w0(r);if(v(g)){const B=Q2.get(g);r.theme=B(r,Q2.urls[g])||{},A(r.theme.init)&&r.theme.init(r,Q2.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},f8=r=>{const g=wy(r),B=pS.get(g);r.model=B(r,pS.urls[g])},NS=r=>{const g=r.theme.renderUI;return g?g():KR(r)},Tj=r=>{const g=r.getElement(),H=w0(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},Cj=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),Tre=r=>{const g=kj.create("div");return kj.insertAfter(g,r),Cj(g,g)},KR=r=>{const g=r.getElement();return r.inline?Cj(null):Tre(g)},Cre=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(w0(r))?NS(r):A(w0(r))?Tj(r):KR(r)},JR=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(oe=>oe(H))}};r.ui={...r.ui,...B}},d8=async r=>{r.dispatch("ScriptsLoaded"),u8(r),mx(r),f8(r),c8(r);const g=await Cre(r);JR(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,Il(r),r.inline?YR(r):Sj(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},Qg=cc.DOM,a_=r=>r.charAt(0)==="-",Aj=(r,g)=>{const B=Hm(g),H=yv(g);if(!ff.hasCode(B)&&B!=="en"){const oe=lr(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(oe).catch(()=>{gG(g,oe,B)})}},Are=(r,g)=>{const B=w0(r);if(v(B)&&!a_(B)&&!Ot(Q2.urls,B)){const H=Eb(r),oe=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;Q2.load(B,oe).catch(()=>{vG(r,oe,B)})}},Mre=(r,g)=>{const B=wy(r);if(B!=="plugin"&&!Ot(pS.urls,B)){const H=aw(r),oe=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;pS.load(B,oe).catch(()=>{yG(r,oe,B)})}},Ere=r=>Y.from(Iu(r)).filter(lr).map(g=>({url:g,name:Y.none()})),Mj=(r,g,B)=>Y.from(g).filter(H=>lr(H)&&!sA.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),Pre=(r,g,B)=>{const H=Mj(g,"default",B),oe=Ere(g).orThunk(()=>Mj(g,du(g),""));ve(fs([H,oe]),be=>{r.add(be.url).catch(()=>{cF(g,be.url,be.name.getOrUndefined())})})},Rre=(r,g)=>{const B=(H,oe)=>{mS.load(H,oe).catch(()=>{mG(r,oe,H)})};Ge(uw(r),(H,oe)=>{B(oe,H),r.options.set("plugins",bv(r).concat(oe))}),ve(bv(r),H=>{H=To.trim(H),H&&!mS.urls[H]&&!a_(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Ej=r=>{const g=w0(r);return!v(g)||P(Q2.get(g))},Lre=r=>{const g=wy(r);return P(pS.get(g))},Ire=(r,g)=>{const B=Fm.ScriptLoader,H=()=>{!r.removed&&Ej(r)&&Lre(r)&&d8(r)};Are(r,g),Mre(r,g),Aj(B,r),Pre(B,r,g),Rre(r,g),B.loadQueue().then(H,H)},Dre=(r,g)=>Gl.forElement(r,{contentCssCors:Oy(g),referrerPolicy:b0(g)}),tde=r=>{const g=r.id;ff.setCode(Hm(r));const B=()=>{Qg.unbind(window,"ready",B),r.render()};if(!wg.Event.domLoaded){Qg.bind(window,"ready",B);return}if(!r.getElement())return;const H=_r.fromDom(r.getElement()),oe=rh(H);r.on("remove",()=>{_e(H.dom.attributes,Le=>tc(H,Le.name)),Tu(H,oe)}),r.ui.styleSheetLoader=Dre(H,r),ip(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||Qg.getParent(g,"form");be&&(r.formElement=be,$4(r)&&!Rt(r.getElement())&&(Qg.insertAfter(Qg.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Le=>{r.dispatch(Le.type,Le)},Qg.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),qm(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=sF(r),r.notificationManager=aF(r),dm(r)&&r.on("GetContent",Le=>{Le.save&&(Le.content=Qg.encode(Le.content))}),lw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),cw(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),Ire(r,r.suffix)},Bre=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),qC(r,g))},eL=r=>r._editableRoot,zre=(r,g)=>({sections:$(r),options:$(g)}),Pj=zn().deviceType,tL=Pj.isPhone(),Nre=Pj.isTablet(),FS=r=>{if(T(r))return[];{const g=C(r)?r:r.split(/[ ,]/),B=ye(g,qn);return Te(B,lr)}},Fre=(r,g)=>{const B=zt(g,(H,oe)=>ce(r,oe));return zre(B.t,B.f)},nL=(r,g,B={})=>{const H=r.sections(),oe=Et(H,g).getOr({});return To.extend({},B,oe)},rL=(r,g)=>Ot(r.sections(),g),$re=(r,g)=>rL(r,g)?r.sections()[g]:{},Vre=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Et(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),Ure=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?To.extend({},r.external_plugins,H):H},Rj=(r,g)=>[...FS(r),...FS(g)],oL=(r,g,B,H)=>r&&rL(g,"mobile")?H:B,Lj=(r,g,B,H)=>{const oe=FS(B.forced_plugins),be=FS(H.plugins),Le=$re(g,"mobile"),Ke=Le.plugins?FS(Le.plugins):be,ut=oL(r,g,be,Ke),At=Rj(oe,ut);return To.extend(H,{forced_plugins:oe,plugins:At})},iL=(r,g)=>r&&rL(g,"mobile"),jre=(r,g,B,H,oe)=>{var be;const Le=r?{mobile:Vre((be=oe.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=Fre(["mobile"],ng(Le,oe)),ut=To.extend(B,H,Ke.options(),iL(r,Ke)?nL(Ke,"mobile"):{},{external_plugins:Ure(H,Ke.options())});return Lj(r,Ke,H,ut)},nde=(r,g)=>{const B=CS(g);return jre(tL||Nre,tL,B,r,B)},rde=(r,g)=>IX(r,g),Qre=r=>{const g=(H,oe)=>{r.formatter.toggle(H,oe),r.nodeChanged()},B=H=>()=>{ve("left,center,right,justify".split(","),oe=>{H!==oe&&r.formatter.remove("align"+oe)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Ij=r=>{const g=B=>()=>{const H=r.selection,oe=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(oe,be=>P(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Hre=r=>{Qre(r),Ij(r)},Zre=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let oe=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Nr.os.isMacOS()||Nr.os.isiOS())&&(oe=oe.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:oe,type:"error"})}}})},qre=(r,g,B,H)=>{const oe=_r.fromDom(r.getRoot());return Pk(oe,vo.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),K3(oe,vo.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},ode=r=>{if(typeof r!="string"){const g=To.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},ide=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?qre(H,B.getRng(),g,r.schema):g},fT=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=ode(g);Y6(r,{...H,content:ide(r,B),format:"html",set:!1,selection:!0}).each(oe=>{const be=RX(r,oe.content,H);YP(r,be,oe),r.addVisual()})}},Dj=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{fT(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{fT(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{fT(r,H)},mceInsertContent:(g,B,H)=>{fT(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(wv(r))}})},Wre={"font-size":"size","font-family":"face"},Yre=Jl("font"),Xre=(r,g,B)=>{const H=be=>Ri(be,r).orThunk(()=>Yre(be)?Et(Wre,r).bind(Le=>ec(be,Le)):Y.none()),oe=be=>va(_r.fromDom(g),be);return qk(_r.fromDom(B),be=>H(be),oe)},ade=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),sde=(r,g)=>Y.from(cc.DOM.getStyle(g,r,!0)),Gre=r=>(g,B)=>Y.from(B).map(_r.fromDom).filter(Wl).bind(H=>Xre(r,g,H.dom).or(sde(r,H.dom))).getOr(""),Kre=Gre("font-size"),lde=I(ade,Gre("font-family")),Jre=r=>ph(r.getBody()).bind(g=>{const B=g.container();return Y.from(Mt(B)?B.parentNode:B)}),hO=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),aL=(r,g)=>hO(r).orThunk(U(Jre,r)).map(_r.fromDom).filter(Wl).bind(g),$S=(r,g)=>aL(r,z(Y.some,g)),sL=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=Nb(r),oe=i3(r);return oe.length>0?oe[B-1]||g:H[B-1]||g}else return g}else return g},Bj=r=>{const g=r.split(/\s*,\s*/);return ye(g,B=>B.indexOf(" ")!==-1&&!(Br(B,'"')||Br(B,"'"))?`'${B}'`:B).join(",")},zj=(r,g)=>{const B=sL(r,g);r.formatter.toggle("fontname",{value:Bj(B)}),r.nodeChanged()},eoe=r=>$S(r,g=>lde(r.getBody(),g.dom)).getOr(""),toe=(r,g)=>{r.formatter.toggle("fontsize",{value:sL(r,g)}),r.nodeChanged()},noe=r=>$S(r,g=>Kre(r.getBody(),g.dom)).getOr(""),roe=r=>$S(r,g=>{const B=_r.fromDom(r.getBody()),H=qk(g,be=>Ri(be,"line-height"),U(va,B)),oe=()=>{const be=parseFloat(rs(g,"line-height")),Le=parseFloat(rs(g,"font-size"));return String(be/Le)};return H.getOrThunk(oe)}).getOr(""),ooe=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},ioe=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,oe)=>{g(B,{value:oe})},BackColor:(B,H,oe)=>{g("hilitecolor",{value:oe})},FontName:(B,H,oe)=>{zj(r,oe)},FontSize:(B,H,oe)=>{toe(r,oe)},LineHeight:(B,H,oe)=>{ooe(r,oe)},Lang:(B,H,oe)=>{var be;g(B,{value:oe.code,customValue:(be=oe.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,oe)=>{g(v(oe)?oe:"p")},mceToggleFormat:(B,H,oe)=>{g(oe)}})},s_=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>eoe(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>noe(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>roe(r))},aoe=r=>{ioe(r),s_(r)},Nj=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},soe=r=>{r.editorCommands.addCommands({Indent:()=>{K2(r)},Outdent:()=>{m9(r)}}),r.editorCommands.addCommands({Outdent:()=>G2(r)},"state")},h8=r=>{const g=(B,H,oe)=>{const be=v(oe)?{href:oe}:oe,Le=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Le||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Le))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},loe=(r,g,B,H)=>{const oe=r.dom,be=Ke=>oe.isBlock(Ke)&&Ke.parentElement===B,Le=be(g)?g:oe.getParent(H,be,B);return Y.from(Le).map(_r.fromDom)},Fj=(r,g)=>{const B=r.dom,H=r.selection.getRng(),oe=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Le=Y5(B,be);if(!Le||!Le.isContentEditable)return;const Ke=g?xc:Kc,ut=tu(r);loe(r,oe,Le,be).each(At=>{const nn=_V(r,be,At.dom,Le,!1,ut);Ke(At,_r.fromDom(nn)),r.selection.setCursorLocation(nn,0),r.dispatch("NewBlock",{newBlock:nn}),cO(r,"insertParagraph")})},coe=r=>Fj(r,!0),$j=r=>Fj(r,!1),uoe=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{coe(r)},InsertNewBlockAfter:()=>{$j(r)}})},foe=r=>{r.editorCommands.addCommands({insertParagraph:()=>{ES(EV,r)},mceInsertNewLine:(g,B,H)=>{FV(r,H)},InsertLineBreak:(g,B,H)=>{ES(RV,r)}})},doe=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let oe=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&oe++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),pn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},hoe=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const oe=H??r.selection.getNode();if(oe!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(oe,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{Kq(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},lL=r=>{Hre(r),Zre(r),Nj(r),doe(r),Dj(r),h8(r),soe(r),uoe(r),foe(r),aoe(r),hoe(r)},poe=["toggleview"],Vj=r=>ce(poe,r.toLowerCase());class fd{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,oe){const be=this.editor,Le=g.toLowerCase(),Ke=oe==null?void 0:oe.skip_focus;if(be.removed||(Le!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Le)&&!Ke?be.focus():ND(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const At=this.commands.exec[Le];return A(At)?(At(Le,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!Vj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return A(H)?H(B):!1}queryCommandValue(g){if(!Vj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return A(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(oe,be)=>{ve(be.toLowerCase().split(","),Le=>{H[B][Le]=oe})})}addCommand(g,B,H){const oe=g.toLowerCase();this.commands.exec[oe]=(be,Le,Ke)=>B.call(H??this.editor,Le,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const pO="data-mce-contenteditable",moe=(r,g,B)=>{cs(r,g)&&!B?Bu(r,g):B&&Cu(r,g)},dT=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},hT=(r,g)=>{r.dom.contentEditable=g?"true":"false"},cL=r=>{ve(Pl(r,'*[contenteditable="true"]'),g=>{ll(g,pO,"true"),hT(g,!1)})},goe=r=>{ve(Pl(r,`*[${pO}="true"]`),g=>{tc(g,pO),hT(g,!0)})},voe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},yoe=r=>{r.selection.setRng(r.selection.getRng())},boe=(r,g)=>{const B=_r.fromDom(r.getBody());moe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),voe(r),r.readonly=!0,hT(B,!1),cL(B)):(r.readonly=!1,r.hasEditableRoot()&&hT(B,!0),goe(B),dT(r,"StyleWithCSS",!1),dT(r,"enableInlineTableEditing",!1),dT(r,"enableObjectResizing",!1),GD(r)&&r.focus(),yoe(r),r.nodeChanged())},mO=r=>r.readonly,Uj=r=>{r.parser.addAttributeFilter("contenteditable",g=>{mO(r)&&ve(g,B=>{B.attr(pO,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(pO,g=>{mO(r)&&ve(g,B=>{B.attr("contenteditable",B.attr(pO))})}),r.serializer.addTempAttr(pO)},xoe=r=>{r.serializer?Uj(r):r.on("PreInit",()=>{Uj(r)})},_oe=r=>r.type==="click",VS=["copy"],Fv=r=>ce(VS,r.type),woe=(r,g)=>bu(g,"a",H=>va(H,_r.fromDom(r.getBody()))).bind(H=>ec(H,"href")),Ooe=(r,g)=>{if(_oe(g)&&!Jo.metaKeyPressed(g)){const B=_r.fromDom(g.target);woe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const oe=r.dom.select(`${H},[name="${Zn(H,"#")}"]`);oe.length&&r.selection.scrollIntoView(oe[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Fv(g)&&r.dispatch(g.type,g)},Soe=r=>{r.on("ShowCaret",g=>{mO(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{mO(r)&&g.preventDefault()})},koe=To.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class uL{static isNative(g){return!!koe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||re}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),oe=j_(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(oe);const be=this.bindings[H];if(be)for(let Le=0,Ke=be.length;Le{this.toggleEvent(ut,!1),delete this.bindings[ut]}),this;if(Le){if(!B)Le.length=0;else{const Ke=we(Le,ut=>ut.func===B);Le=Ke.fail,this.bindings[be]=Le,ve(Ke.pass,ut=>{ut.removed=!0})}Le.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,oe)=>{this.toggleEvent(oe,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const pT=r=>(r._eventDispatcher||(r._eventDispatcher=new uL({scope:r,toggleEvent:(g,B)=>{uL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),fL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return j_(r.toLowerCase(),g??{},H);const oe=pT(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!oe.isPropagationStopped();)be.dispatch(r,oe,!1),be=be.parent?be.parent():void 0}return oe},on(r,g,B){return pT(this).on(r,g,B)},off(r,g){return pT(this).off(r,g)},once(r,g){return pT(this).once(r,g)},hasEventListeners(r){return pT(this).has(r)}},p8=cc.DOM;let gO;const dL=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=um(r);return B?(r.eventRoot||(r.eventRoot=p8.select(B)[0]),r.eventRoot):r.getBody()},Toe=r=>!r.hidden&&!mO(r),jj=(r,g,B)=>{Toe(r)?r.dispatch(g,B):mO(r)&&Ooe(r,B)},Qj=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=dL(r,g);if(um(r)){if(gO||(gO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||gO&&(Ge(gO,(oe,be)=>{r.dom.unbind(dL(r,be))}),gO=null)})),gO[g])return;const H=oe=>{const be=oe.target,Le=r.editorManager.get();let Ke=Le.length;for(;Ke--;){const ut=Le[Ke].getBody();(ut===be||p8.isChildOf(be,ut))&&jj(Le[Ke],g,oe)}};gO[g]=H,p8.bind(B,g,H)}else{const H=oe=>{jj(r,g,oe)};p8.bind(B,g,H),r.delegates[g]=H}},Hj={...fL,bindPendingEventDelegates(){const r=this;To.each(r._pendingNativeEvents,g=>{Qj(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?Qj(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(dL(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,oe)=>{r.dom.unbind(dL(r,oe),oe,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},Coe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Aoe=r=>{const g=(()=>{switch(r){case"array":return C;case"boolean":return R;case"function":return A;case"number":return L;case"object":return _;case"string":return v;case"string[]":return Coe;case"object[]":return B=>D(B,_);case"regexp":return B=>p(B,RegExp);default:return q}})();return B=>hL(B,g,`The value must be a ${r}.`)},cde=r=>v(r.processor),Zj=(r,g)=>{const B=zr(g.message)?"":`. ${g.message}`;return r+B},qj=r=>r.valid,hL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},Moe=(r,g,B)=>{if(!M(g)){const H=hL(g,B);if(qj(H))return H.value;console.error(Zj(`Invalid default value passed for the "${r}" option`,H))}},Eoe=(r,g,B=g)=>{const H={},oe={},be=(Qn,rr,Wn)=>{const ur=hL(rr,Wn);return qj(ur)?(oe[Qn]=ur.value,!0):(console.warn(Zj(`Invalid value passed for the ${Qn} option`,ur)),!1)},Le=(Qn,rr)=>{const Wn=cde(rr)?Aoe(rr.processor):rr.processor,ur=Moe(Qn,rr.default,Wn);H[Qn]={...rr,default:ur,processor:Wn},Et(oe,Qn).orThunk(()=>Et(g,Qn)).each(Wr=>be(Qn,Wr,Wn))},Ke=Qn=>Ot(H,Qn);return{register:Le,isRegistered:Ke,get:Qn=>Et(oe,Qn).orThunk(()=>Et(H,Qn).map(rr=>rr.default)).getOrUndefined(),set:(Qn,rr)=>{if(Ke(Qn)){const Wn=H[Qn];return Wn.immutable?(console.error(`"${Qn}" is an immutable option and cannot be updated`),!1):be(Qn,rr,Wn.processor)}else return console.warn(`"${Qn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Qn=>{const rr=Ke(Qn);return rr&&delete oe[Qn],rr},isSet:Qn=>Ot(oe,Qn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(Qn,rr)=>R(rr)||L(rr)||v(rr)||x(rr)||C(rr)||O(rr)?rr:Object.prototype.toString.call(rr))))}catch(Qn){console.error(Qn)}}}},Poe=["design","readonly"],Wj=(r,g,B,H)=>{const oe=B[g.get()],be=B[H];try{be.activate()}catch(Le){console.error(`problem while activating editor mode ${H}:`,Le);return}oe.deactivate(),oe.editorReadOnly!==be.editorReadOnly&&boe(r,be.editorReadOnly),g.set(H),tE(r,H)},Roe=(r,g,B,H)=>{if(H!==B.get()){if(!Ot(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Wj(r,B,g,H):r.on("init",()=>Wj(r,B,g,H))}},Loe=(r,g,B)=>{if(ce(Poe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Ioe=r=>{const g=Ar("design"),B=Ar({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return xoe(r),Soe(r),{isReadOnly:()=>mO(r),set:H=>Roe(r,B.get(),g,H),get:()=>g.get(),register:(H,oe)=>{B.set(Loe(B.get(),H,oe))}}},pL=To.each,mL=To.explode,Doe={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Yj=To.makeMap("alt,ctrl,shift,meta,access"),Boe=r=>r in Yj,zoe=r=>{const g={},B=Nr.os.isMacOS()||Nr.os.isiOS();pL(mL(r.toLowerCase(),"+"),be=>{Boe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Doe[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let oe;for(oe in Yj)g[oe]?H.push(oe):g[oe]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class gL{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(pL(B.shortcuts,oe=>{B.matchShortcut(H,oe)&&(B.pendingPatterns=oe.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(oe))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,oe){const be=this,Le=be.normalizeCommandFunc(H);return pL(mL(To.trim(g)),Ke=>{const ut=be.createShortcut(Ke,B,Le,oe);be.shortcuts[ut.id]=ut}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:To.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,oe){const be=To.map(mL(g,">"),zoe);return be[be.length-1]=To.extend(be[be.length-1],{func:H,scope:oe||this.editor}),To.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Noe=()=>{const r={},g={},B={},H={},oe={},be={},Le={},Ke={},ut=(nn,un)=>(yn,Qn)=>{nn[yn.toLowerCase()]={...Qn,type:un}},At=(nn,un)=>H[nn.toLowerCase()]=un;return{addButton:ut(r,"button"),addGroupToolbarButton:ut(r,"grouptoolbarbutton"),addToggleButton:ut(r,"togglebutton"),addMenuButton:ut(r,"menubutton"),addSplitButton:ut(r,"splitbutton"),addMenuItem:ut(g,"menuitem"),addNestedMenuItem:ut(g,"nestedmenuitem"),addToggleMenuItem:ut(g,"togglemenuitem"),addAutocompleter:ut(B,"autocompleter"),addContextMenu:ut(oe,"contextmenu"),addContextToolbar:ut(be,"contexttoolbar"),addContextForm:ut(be,"contextform"),addSidebar:ut(Le,"sidebar"),addView:ut(Ke,"views"),addIcon:At,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:oe,contextToolbars:be,sidebars:Le,views:Ke})}},Foe=()=>{const r=Noe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},vO=cc.DOM,Xj=To.extend,$oe=To.each;class m8{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,Xj(this,Hj);const oe=this;this.id=g,this.hidden=!1;const be=nde(H.defaultOptions,B);this.options=Eoe(oe,be,B),$l(oe);const Le=this.options.get;Le("deprecation_warnings")&&rG(B,be);const Ke=Le("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ut=Le("base_url");ut&&H._setBaseUrl(ut),this.baseUri=H.baseURI;const At=b0(oe);At&&(Fm.ScriptLoader._setReferrerPolicy(At),cc.DOM.styleSheetLoader._setReferrerPolicy(At));const nn=Oy(oe);P(nn)&&cc.DOM.styleSheetLoader._setContentCssCors(nn),fh.languageLoad=Le("language_load"),fh.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new cp(mc(oe),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ip(oe),this.hasVisual=ud(oe),this.shortcuts=new gL(this),this.editorCommands=new fd(this),lL(this);const un=Le("cache_suffix");un&&(Nr.cacheSuffix=un.replace(/^[\?\&]+/,"")),this.ui={registry:Foe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Ioe(oe),H.dispatch("SetupEditor",{editor:this});const yn=Ib(oe);A(yn)&&yn.call(oe,oe)}render(){tde(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return nx(this)}translate(g){return ff.translate(g)}getParam(g,B,H){const oe=this.options;return oe.isRegistered(g)||(P(H)?oe.register(g,{processor:H,default:B}):oe.register(g,{processor:q,default:B})),!oe.isSet(g)&&!M(B)?B:oe.get(g)}hasPlugin(g,B){return ce(bv(this),g)?B?mS.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,oe){this.shortcuts.add(g,B,H,oe)}execCommand(g,B,H,oe){return this.editorCommands.execCommand(g,B,H,oe)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(vO.show(g.getContainer()),vO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(vO.hide(g.getContainer()),vO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const oe={...g,load:!0},be=Rt(H)?H.value:H.innerHTML,Le=B.setContent(be,oe);return oe.no_events||B.dispatch("LoadContent",{...oe,element:H}),Le}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const oe={...g,save:!0,element:H};let be=B.getContent(oe);const Le={...oe,content:be};if(Le.no_events||B.dispatch("SaveContent",Le),Le.format==="raw"&&B.dispatch("RawSaveContent",Le),be=Le.content,Rt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=vO.getParent(B.id,"form");Ke&&$oe(Ke.elements,ut=>ut.name===B.id?(ut.value=be,!1):!0)}return Le.element=oe.element=H=null,Le.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return hS(this,g,B)}getContent(g){return eF(this,g)}insertContent(g,B){B&&(g=Xj({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?hS(this,this.startContent,{format:"raw"}):hS(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||vO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=vO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const oe=this,be=oe.options.get,Le=Eh(oe);if(A(Le))return Le.call(oe,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new cp(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?oe.documentBaseURI.toRelative(g):(g=oe.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){rde(this,g)}setEditableRoot(g){Bre(this,g)}hasEditableRoot(){return eL(this)}remove(){aG(this)}destroy(g){sG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const US=cc.DOM,g8=To.each;let vL=!1,v8,wm=[];const y8=r=>{const g=r.type;g8(l_.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},Gj=r=>{if(r!==vL){const g=cc.DOM;r?(g.bind(window,"resize",y8),g.bind(window,"scroll",y8)):(g.unbind(window,"resize",y8),g.unbind(window,"scroll",y8)),vL=r}},Kj=r=>{const g=wm;return wm=Te(wm,B=>r!==B),l_.activeEditor===r&&(l_.activeEditor=wm.length>0?wm[0]:null),l_.focusedEditor===r&&(l_.focusedEditor=null),g.length!==wm.length},Voe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(Kj(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},Uoe=document.compatMode!=="CSS1Compat",l_={...fL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"3.0",releaseDate:"2024-08-07",i18n:ff,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=cp.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const oe=window.tinymce||window.tinyMCEPreInit;if(oe)g=oe.base||oe.baseURL,B=oe.suffix;else{const be=document.getElementsByTagName("script");for(let Le=0;Le{fh.PluginManager.urls[be]=oe})},init(r){const g=this;let B;const H=To.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),oe=(nn,un)=>nn.inline&&un.tagName.toLowerCase()in H,be=nn=>{let un=nn.id;return un||(un=Et(nn,"name").filter(yn=>!US.get(yn)).getOrThunk(US.uniqueId),nn.setAttribute("id",un)),un},Le=nn=>{const un=r[nn];if(un)return un.apply(g,[])},Ke=nn=>Nr.browser.isIE()||Nr.browser.isEdge()?(k7("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):Uoe?(k7("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(nn.selector)?US.select(nn.selector):P(nn.target)?[nn.target]:[];let ut=nn=>{B=nn};const At=()=>{let nn=0;const un=[];let yn;const Qn=(rr,Wn,ur)=>{const Tr=new m8(rr,Wn,g);un.push(Tr),Tr.on("init",()=>{++nn===yn.length&&ut(un)}),Tr.targetElm=Tr.targetElm||ur,Tr.render()};US.unbind(window,"ready",At),Le("onpageload"),yn=je(Ke(r)),To.each(yn,rr=>{Voe(g.get(rr.id))}),yn=To.grep(yn,rr=>!g.get(rr.id)),yn.length===0?ut([]):g8(yn,rr=>{oe(r,rr)?k7("Could not initialize inline editor on invalid inline target element",rr):Qn(be(rr),r,rr)})};return US.bind(window,"ready",At),new Promise(nn=>{B?nn(B):ut=un=>{nn(un)}})},get(r){return arguments.length===0?wm.slice(0):v(r)?De(wm,g=>g.id===r).getOr(null):L(r)&&wm[r]?wm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&wm.push(r),Gj(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),v8||(v8=H=>{const oe=g.dispatch("BeforeUnload");if(oe.returnValue)return H.preventDefault(),H.returnValue=oe.returnValue,oe.returnValue},window.addEventListener("beforeunload",v8))),r},createEditor(r,g){return this.add(new m8(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=wm.length-1;H>=0;H--)g.remove(wm[H]);return}if(v(r)){g8(US.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(Kj(B)&&g.dispatch("RemoveEditor",{editor:B}),wm.length===0&&window.removeEventListener("beforeunload",v8),B.remove(),Gj(wm.length>0),B)},execCommand(r,g,B){var H;const oe=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!oe.get(be)){const Le=B.options;new m8(be,Le,oe).render()}return!0}case"mceRemoveEditor":{const Le=oe.get(be);return Le&&Le.remove(),!0}case"mceToggleEditor":{const Le=oe.get(be);return Le?(Le.isHidden()?Le.show():Le.hide(),!0):(oe.execCommand("mceAddEditor",!1,B),!0)}}return oe.activeEditor?oe.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{g8(wm,r=>{r.save()})},addI18n:(r,g)=>{ff.add(r,g)},translate:r=>ff.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new cp(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new cp(this.baseURL)}};l_.setup();const ude=(()=>{const r=Ts(),g=be=>({items:be,types:tt(be),getType:Le=>Et(be,Le).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),oe=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:oe}})(),yL=Math.min,jS=Math.max,mT=Math.round,Jj=(r,g,B)=>{let H=g.x,oe=g.y;const be=r.w,Le=r.h,Ke=g.w,ut=g.h,At=(B||"").split("");return At[0]==="b"&&(oe+=ut),At[1]==="r"&&(H+=Ke),At[0]==="c"&&(oe+=mT(ut/2)),At[1]==="c"&&(H+=mT(Ke/2)),At[3]==="b"&&(oe-=Le),At[4]==="r"&&(H-=be),At[3]==="c"&&(oe-=mT(Le/2)),At[4]==="c"&&(H-=mT(be/2)),QS(H,oe,be,Le)},Qoe=(r,g,B,H)=>{for(let oe=0;oe=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[oe]}return null},Hoe=(r,g,B)=>QS(r.x-g,r.y-B,r.w+g*2,r.h+B*2),Zoe=(r,g)=>{const B=jS(r.x,g.x),H=jS(r.y,g.y),oe=yL(r.x+r.w,g.x+g.w),be=yL(r.y+r.h,g.y+g.h);return oe-B<0||be-H<0?null:QS(B,H,oe-B,be-H)},qoe=(r,g,B)=>{let H=r.x,oe=r.y,be=r.x+r.w,Le=r.y+r.h;const Ke=g.x+g.w,ut=g.y+g.h,At=jS(0,g.x-H),nn=jS(0,g.y-oe),un=jS(0,be-Ke),yn=jS(0,Le-ut);return H+=At,oe+=nn,B&&(be+=At,Le+=nn,H-=un,oe-=yn),be-=un,Le-=yn,QS(H,oe,be-H,Le-oe)},QS=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),bL={inflate:Hoe,relativePosition:Jj,findBestRelativePosition:Qoe,intersect:Zoe,clamp:qoe,create:QS,fromClientRect:r=>QS(r.left,r.top,r.width,r.height)},Woe=(r,g,B=1e3)=>{let H=!1,oe=null;const be=At=>(...nn)=>{H||(H=!0,oe!==null&&(clearTimeout(oe),oe=null),At.apply(null,nn))},Le=be(r),Ke=be(g);return{start:(...At)=>{!H&&oe===null&&(oe=setTimeout(()=>Ke.apply(null,At),B))},resolve:Le,reject:Ke}},Xoe=(()=>{const r={},g={},B={};return{load:(ut,At)=>{const nn=`Script at URL "${At}" failed to load`,un=`Script at URL "${At}" did not call \`tinymce.Resource.add('${ut}', data)\` within 1 second`;if(r[ut]!==void 0)return r[ut];{const yn=new Promise((Qn,rr)=>{const Wn=Woe(Qn,rr);g[ut]=Wn.resolve,Fm.ScriptLoader.loadScript(At).then(()=>Wn.start(un),()=>Wn.reject(nn))});return r[ut]=yn,yn}},add:(ut,At)=>{g[ut]!==void 0&&(g[ut](At),delete g[ut]),r[ut]=Promise.resolve(At),B[ut]=At},has:ut=>ut in B,get:ut=>B[ut],unload:ut=>{delete r[ut],delete B[ut]}}})(),Goe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const oe=r[H];return oe||null},setItem:(H,oe)=>{g.push(H),r[H]=String(oe)},key:H=>g[H],removeItem:H=>{g=g.filter(oe=>oe===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let gT;try{const r="__storage_test__";gT=window.localStorage,gT.setItem(r,r),gT.removeItem(r)}catch{gT=Goe()}var Koe=gT;const Joe={geom:{Rect:bL},util:{Delay:Ig,Tools:To,VK:Jo,URI:cp,EventDispatcher:uL,Observable:fL,I18n:ff,LocalStorage:Koe,ImageUploader:zy},dom:{EventUtils:wg,TreeWalker:Xl,TextSeeker:Cg,DOMUtils:cc,ScriptLoader:Fm,RangeUtils:oi,Serializer:Lh,StyleSheetLoader:Uh,ControlSelection:Iw,BookmarkManager:Pg,Selection:jX,Event:wg.Event},html:{Styles:U_,Entities:Lm,Node:Hp,Schema:zm,DomParser:fS,Writer:AE,Serializer:rx},Env:Nr,AddOnManager:fh,Annotator:B3,Formatter:Dv,UndoManager:bS,EditorCommands:fd,WindowManager:sF,NotificationManager:aF,EditorObservable:Hj,Shortcuts:gL,Editor:m8,FocusManager:FD,EditorManager:l_,DOM:cc.DOM,ScriptLoader:Fm.ScriptLoader,PluginManager:mS,ThemeManager:Q2,ModelManager:pS,IconManager:sA,Resource:Xoe,FakeClipboard:ude,trim:To.trim,isArray:To.isArray,is:To.is,toArray:To.toArray,makeMap:To.makeMap,each:To.each,map:To.map,grep:To.grep,inArray:To.inArray,extend:To.extend,walk:To.walk,resolve:To.resolve,explode:To.explode,_addCacheSuffix:To._addCacheSuffix},tQ=To.extend(l_,Joe),eie=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(tQ),eie(tQ)})()})(N$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(he,Ce,Xe)=>{var lt;return Xe(he,Ce.prototype)?!0:((lt=he.constructor)===null||lt===void 0?void 0:lt.name)===Ce.name},o=he=>{const Ce=typeof he;return he===null?"null":Ce==="object"&&Array.isArray(he)?"array":Ce==="object"&&e(he,String,(Xe,lt)=>lt.isPrototypeOf(Xe))?"string":Ce},f=he=>Ce=>o(Ce)===he,E=he=>Ce=>typeof Ce===he,d=he=>Ce=>he===Ce,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=d(void 0),w=he=>he==null,y=he=>!w(he),m=E("function"),a=E("number"),c=()=>{},h=(he,Ce)=>(...Xe)=>he(Ce.apply(null,Xe)),p=(he,Ce)=>Xe=>he(Ce(Xe)),v=he=>()=>he,_=he=>he,O=(he,Ce)=>he===Ce;function C(he,...Ce){return(...Xe)=>{const lt=Ce.concat(Xe);return he.apply(null,lt)}}const x=he=>Ce=>!he(Ce),R=he=>()=>{throw new Error(he)},M=he=>he(),T=v(!1),P=v(!0);class A{constructor(Ce,Xe){this.tag=Ce,this.value=Xe}static some(Ce){return new A(!0,Ce)}static none(){return A.singletonNone}fold(Ce,Xe){return this.tag?Xe(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?A.some(Ce(this.value)):A.none()}bind(Ce){return this.tag?Ce(this.value):A.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:A.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?A.some(Ce):A.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}A.singletonNone=new A(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(he,Ce)=>D.call(he,Ce),z=(he,Ce)=>I(he,Ce)>-1,$=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Xe=[];for(let lt=0;lt{const Xe=he.length,lt=new Array(Xe);for(let Ct=0;Ct{for(let Xe=0,lt=he.length;Xe{for(let Xe=he.length-1;Xe>=0;Xe--){const lt=he[Xe];Ce(lt,Xe)}},te=(he,Ce)=>{const Xe=[],lt=[];for(let Ct=0,Wt=he.length;Ct{const Xe=[];for(let lt=0,Ct=he.length;lt(X(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),re=(he,Ce,Xe)=>(U(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),q=(he,Ce,Xe)=>{for(let lt=0,Ct=he.length;ltq(he,Ce,T),ee=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=[];for(let Xe=0,lt=he.length;Xeme(j(he,Ce)),se=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=L.call(he,0);return Ce.reverse(),Ce},ce=(he,Ce)=>{const Xe={};for(let lt=0,Ct=he.length;lt{const Xe=L.call(he,0);return Xe.sort(Ce),Xe},ye=(he,Ce)=>Ce>=0&&Ceye(he,0),_e=he=>ye(he,he.length-1),we=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Te(he);for(let lt=0,Ct=Xe.length;ltDe(he,(Xe,lt)=>({k:lt,v:Ce(Xe,lt)})),De=(he,Ce)=>{const Xe={};return Ie(he,(lt,Ct)=>{const Wt=Ce(lt,Ct);Xe[Wt.k]=Wt.v}),Xe},Qe=he=>(Ce,Xe)=>{he[Xe]=Ce},Ve=(he,Ce,Xe,lt)=>{Ie(he,(Ct,Wt)=>{(Ce(Ct,Wt)?Xe:lt)(Ct,Wt)})},$e=(he,Ce)=>{const Xe={};return Ve(he,Ce,Qe(Xe),c),Xe},Oe=(he,Ce)=>{const Xe=[];return Ie(he,(lt,Ct)=>{Xe.push(Ce(lt,Ct))}),Xe},ke=he=>Oe(he,_),Re=(he,Ce)=>We(he,Ce)?A.from(he[Ce]):A.none(),We=(he,Ce)=>Pe.call(he,Ce),Ue=(he,Ce)=>We(he,Ce)&&he[Ce]!==void 0&&he[Ce]!==null,Ze=he=>{for(const Ce in he)if(Pe.call(he,Ce))return!1;return!0},Ye=typeof window<"u"?window:Function("return this;")(),Je=(he,Ce)=>{let Xe=Ce??Ye;for(let lt=0;lt{const Xe=he.split(".");return Je(Xe,Ce)},Fe=(he,Ce)=>Me(he,Ce),je=(he,Ce)=>{const Xe=Fe(he,Ce);if(Xe==null)throw new Error(he+" not available on this browser");return Xe},tt=Object.getPrototypeOf,ot=he=>je("HTMLElement",he),Ge=he=>{const Ce=Me("ownerDocument.defaultView",he);return n(he)&&(ot(Ce).prototype.isPrototypeOf(he)||/^HTML\w*Element$/.test(tt(he).constructor.name))},ht=8,pt=9,St=11,Ft=1,zt=3,Yt=he=>he.dom.nodeName.toLowerCase(),ln=he=>he.dom.nodeType,tn=he=>Ce=>ln(Ce)===he,Et=he=>ln(he)===ht||Yt(he)==="#comment",Ot=he=>cn(he)&&Ge(he.dom),cn=tn(Ft),Cn=tn(zt),Pn=tn(pt),Sn=tn(St),vt=he=>Ce=>cn(Ce)&&Yt(Ce)===he,xt=(he,Ce,Xe)=>{if(s(Xe)||i(Xe)||a(Xe))he.setAttribute(Ce,Xe+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Xe,":: Element ",he),new Error("Attribute value was not simple")},st=(he,Ce,Xe)=>{xt(he.dom,Ce,Xe)},bt=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{xt(Xe,Ct,lt)})},Vt=(he,Ce)=>{Ie(Ce,(Xe,lt)=>{Xe.fold(()=>{at(he,lt)},Ct=>{xt(he.dom,lt,Ct)})})},Dt=(he,Ce)=>{const Xe=he.dom.getAttribute(Ce);return Xe===null?void 0:Xe},it=(he,Ce)=>A.from(Dt(he,Ce)),at=(he,Ce)=>{he.dom.removeAttribute(Ce)},Bt=he=>re(he.dom.attributes,(Ce,Xe)=>(Ce[Xe.name]=Xe.value,Ce),{}),_t=(he,Ce)=>{const lt=(Ce||document).createElement("div");if(lt.innerHTML=he,!lt.hasChildNodes()||lt.childNodes.length>1){const Ct="HTML does not have a single root node";throw console.error(Ct,he),new Error(Ct)}return Jt(lt.childNodes[0])},qt=(he,Ce)=>{const lt=(Ce||document).createElement(he);return Jt(lt)},en=(he,Ce)=>{const lt=(Ce||document).createTextNode(he);return Jt(lt)},Jt=he=>{if(he==null)throw new Error("Node cannot be null or undefined");return{dom:he}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(he,Ce,Xe)=>A.from(he.dom.elementFromPoint(Ce,Xe)).map(Jt)},sn=(he,Ce)=>{const Xe=he.dom;if(Xe.nodeType!==Ft)return!1;{const lt=Xe;if(lt.matches!==void 0)return lt.matches(Ce);if(lt.msMatchesSelector!==void 0)return lt.msMatchesSelector(Ce);if(lt.webkitMatchesSelector!==void 0)return lt.webkitMatchesSelector(Ce);if(lt.mozMatchesSelector!==void 0)return lt.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},rn=he=>he.nodeType!==Ft&&he.nodeType!==pt&&he.nodeType!==St||he.childElementCount===0,_n=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?[]:j(Xe.querySelectorAll(he),Nt.fromDom)},wn=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?A.none():A.from(Xe.querySelector(he)).map(Nt.fromDom)},An=(he,Ce)=>he.dom===Ce.dom,Kn=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;return Xe===lt?!1:Xe.contains(lt)},fr=sn,Un=he=>Nt.fromDom(he.dom.ownerDocument),Zn=he=>Pn(he)?he:Un(he),tr=he=>Nt.fromDom(Zn(he).dom.documentElement),Br=he=>Nt.fromDom(Zn(he).dom.defaultView),$r=he=>A.from(he.dom.parentNode).map(Nt.fromDom),vr=he=>A.from(he.dom.parentElement).map(Nt.fromDom),qn=(he,Ce)=>{const Xe=m(Ce)?Ce:T;let lt=he.dom;const Ct=[];for(;lt.parentNode!==null&<.parentNode!==void 0;){const Wt=lt.parentNode,kn=Nt.fromDom(Wt);if(Ct.push(kn),Xe(kn)===!0)break;lt=Wt}return Ct},gr=he=>A.from(he.dom.previousSibling).map(Nt.fromDom),sr=he=>A.from(he.dom.nextSibling).map(Nt.fromDom),lr=he=>j(he.dom.childNodes,Nt.fromDom),zr=(he,Ce)=>{const Xe=he.dom.childNodes;return A.from(Xe[Ce]).map(Nt.fromDom)},Vr=he=>zr(he,0),eo=(he,Ce)=>{$r(he).each(lt=>{lt.dom.insertBefore(Ce.dom,he.dom)})},Jr=(he,Ce)=>{sr(he).fold(()=>{$r(he).each(Ct=>{to(Ct,Ce)})},lt=>{eo(lt,Ce)})},Yr=(he,Ce)=>{Vr(he).fold(()=>{to(he,Ce)},lt=>{he.dom.insertBefore(Ce.dom,lt.dom)})},to=(he,Ce)=>{he.dom.appendChild(Ce.dom)},co=(he,Ce,Xe)=>{zr(he,Xe).fold(()=>{to(he,Ce)},lt=>{eo(lt,Ce)})},Fo=(he,Ce)=>{eo(he,Ce),to(Ce,he)},_o=(he,Ce)=>{U(Ce,(Xe,lt)=>{const Ct=lt===0?he:Ce[lt-1];Jr(Ct,Xe)})},$o=(he,Ce)=>{U(Ce,Xe=>{to(he,Xe)})},Mo=he=>{he.dom.textContent="",U(lr(he),Ce=>{pi(Ce)})},pi=he=>{const Ce=he.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Hn=he=>{const Ce=lr(he);Ce.length>0&&_o(he,Ce),pi(he)},ar=(he,Ce)=>Nt.fromDom(he.dom.cloneNode(Ce)),Dr=he=>ar(he,!1),Sr=he=>ar(he,!0),Zr=(he,Ce)=>{const Xe=Nt.fromTag(Ce),lt=Bt(he);return bt(Xe,lt),Xe},go=(he,Ce)=>{const Xe=Zr(he,Ce),lt=lr(Sr(he));return $o(Xe,lt),Xe},oo=(he,Ce)=>{const Xe=Zr(he,Ce);Jr(he,Xe);const lt=lr(he);return $o(Xe,lt),pi(he),Xe},io=["tfoot","thead","tbody","colgroup"],Do=he=>z(io,he),jn=(he,Ce)=>({rows:he,columns:Ce}),Rr=(he,Ce)=>({row:he,column:Ce}),On=(he,Ce,Xe)=>({element:he,rowspan:Ce,colspan:Xe}),Yn=(he,Ce,Xe,lt)=>({element:he,rowspan:Ce,colspan:Xe,isNew:lt}),ir=(he,Ce,Xe,lt,Ct,Wt)=>({element:he,rowspan:Ce,colspan:Xe,row:lt,column:Ct,isLocked:Wt}),kr=(he,Ce,Xe)=>({element:he,cells:Ce,section:Xe}),Er=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),Gt=(he,Ce,Xe)=>({element:he,isNew:Ce,isLocked:Xe}),on=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),an=(he,Ce,Xe,lt)=>({startRow:he,startCol:Ce,finishRow:Xe,finishCol:lt}),Tn=(he,Ce,Xe)=>({element:he,colspan:Ce,column:Xe}),zn=(he,Ce)=>({element:he,columns:Ce}),Gn=he=>Sn(he)&&y(he.dom.host),Lr=he=>Nt.fromDom(he.dom.getRootNode()),Ur=he=>{const Ce=Lr(he);return Gn(Ce)?A.some(Ce):A.none()},qr=he=>Nt.fromDom(he.dom.host),Cr=he=>{if(y(he.target)){const Ce=Nt.fromDom(he.target);if(cn(Ce)&&wo(Ce)&&he.composed&&he.composedPath){const Xe=he.composedPath();if(Xe)return ve(Xe)}}return A.from(he.target)},wo=he=>y(he.dom.shadowRoot),Nr=he=>{const Ce=Cn(he)?he.dom.parentNode:he.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Xe=Ce.ownerDocument;return Ur(Nt.fromDom(Ce)).fold(()=>Xe.body.contains(Ce),p(Nr,qr))},Eo=()=>zo(Nt.fromDom(document)),zo=he=>{const Ce=he.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Nt.fromDom(Ce)},Qt=(he,Ce,Xe)=>Z(qn(he,Xe),Ce),Mn=(he,Ce)=>Z(lr(he),Ce),Fn=(he,Ce)=>{let Xe=[];return U(lr(he),lt=>{Ce(lt)&&(Xe=Xe.concat([lt])),Xe=Xe.concat(Fn(lt,Ce))}),Xe},dr=(he,Ce,Xe)=>Qt(he,lt=>sn(lt,Ce),Xe),xr=(he,Ce)=>Mn(he,Xe=>sn(Xe,Ce)),Oo=(he,Ce)=>_n(Ce,he);var mi=(he,Ce,Xe,lt,Ct)=>he(Xe,lt)?A.some(Xe):m(Ct)&&Ct(Xe)?A.none():Ce(Xe,lt,Ct);const Di=(he,Ce,Xe)=>{let lt=he.dom;const Ct=m(Xe)?Xe:T;for(;lt.parentNode;){lt=lt.parentNode;const Wt=Nt.fromDom(lt);if(Ce(Wt))return A.some(Wt);if(Ct(Wt))break}return A.none()},To=(he,Ce,Xe)=>mi((Ct,Wt)=>Wt(Ct),Di,he,Ce,Xe),Ia=(he,Ce)=>{const Xe=Ct=>Ce(Nt.fromDom(Ct));return Y(he.dom.childNodes,Xe).map(Nt.fromDom)},Ds=(he,Ce)=>{const Xe=lt=>{for(let Ct=0;CtDi(he,lt=>sn(lt,Ce),Xe),zi=(he,Ce)=>Ia(he,Xe=>sn(Xe,Ce)),yl=(he,Ce)=>wn(Ce,he),Bs=(he,Ce,Xe)=>mi((Ct,Wt)=>sn(Ct,Wt),fs,he,Ce,Xe),yf=(he,Ce,Xe=O)=>he.exists(lt=>Xe(lt,Ce)),il=he=>{const Ce=[],Xe=lt=>{Ce.push(lt)};for(let lt=0;lthe!=null?Ce(he):A.none(),nh=(he,Ce)=>he?A.some(Ce):A.none(),gp=(he,Ce)=>he.substring(Ce),Qs=(he,Ce,Xe)=>Ce===""||he.length>=Ce.length&&he.substr(Xe,Xe+Ce.length)===Ce,bh=(he,Ce)=>Tc(he,Ce)?gp(he,Ce.length):he,Bl=(he,Ce,Xe=0,lt)=>{const Ct=he.indexOf(Ce,Xe);return Ct!==-1?S(lt)?!0:Ct+Ce.length<=lt:!1},Tc=(he,Ce)=>Qs(he,Ce,0),iu=(he,Ce)=>Qs(he,Ce,he.length-Ce.length),zf=(he=>Ce=>Ce.replace(he,""))(/^\s+|\s+$/g),_s=he=>he.length>0,ma=he=>{const Ce=parseFloat(he);return isNaN(Ce)?A.none():A.some(Ce)},mu=he=>he.style!==void 0&&m(he.style.getPropertyValue),Uc=(he,Ce,Xe)=>{if(!s(Xe))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Xe,":: Element ",he),new Error("CSS value must be a string: "+Xe);mu(he)&&he.style.setProperty(Ce,Xe)},Kf=(he,Ce)=>{mu(he)&&he.style.removeProperty(Ce)},Al=(he,Ce,Xe)=>{const lt=he.dom;Uc(lt,Ce,Xe)},Wl=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{Uc(Xe,Ct,lt)})},Ml=(he,Ce)=>{const Xe=he.dom,Ct=window.getComputedStyle(Xe).getPropertyValue(Ce);return Ct===""&&!Nr(he)?Jf(Xe,Ce):Ct},Jf=(he,Ce)=>mu(he)?he.style.getPropertyValue(Ce):"",Nf=(he,Ce)=>{const Xe=he.dom,lt=Jf(Xe,Ce);return A.from(lt).filter(Ct=>Ct.length>0)},Jl=(he,Ce)=>{const Xe=he.dom;Kf(Xe,Ce),yf(it(he,"style").map(zf),"")&&at(he,"style")},Gh=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;mu(Xe)&&mu(lt)&&(lt.style.cssText=Xe.style.cssText)},ll=(he,Ce,Xe=0)=>it(he,Ce).map(lt=>parseInt(lt,10)).getOr(Xe),Tu=(he,Ce)=>ll(he,Ce,1),gu=he=>vt("col")(he)?ll(he,"span",1)>1:Tu(he,"colspan")>1,ec=he=>Tu(he,"rowspan")>1,Dc=(he,Ce)=>parseInt(Ml(he,Ce),10),tc=v(10),Lp=v(10),rh=(he,Ce)=>rf(he,Ce,P),rf=(he,Ce,Xe)=>pe(lr(he),lt=>sn(lt,Ce)?Xe(lt)?[lt]:[]:rf(lt,Ce,Xe)),of=(he,Ce,Xe=T)=>{if(Xe(Ce))return A.none();if(z(he,Yt(Ce)))return A.some(Ce);const lt=Ct=>sn(Ct,"table")||Xe(Ct);return fs(Ce,he.join(","),lt)},bf=(he,Ce)=>of(["td","th"],he,Ce),vu=he=>rh(he,"th,td"),$d=he=>sn(he,"colgroup")?xr(he,"col"):pe(Kh(he),Ce=>xr(Ce,"col")),bl=(he,Ce)=>Bs(he,"table",Ce),Zu=he=>rh(he,"tr"),Kh=he=>bl(he).fold(v([]),Ce=>xr(Ce,"colgroup")),Cu=(he,Ce)=>j(he,Xe=>{if(Yt(Xe)==="colgroup"){const lt=j($d(Xe),Ct=>{const Wt=ll(Ct,"span",1);return On(Ct,1,Wt)});return kr(Xe,lt,"colgroup")}else{const lt=j(vu(Xe),Ct=>{const Wt=ll(Ct,"rowspan",1),kn=ll(Ct,"colspan",1);return On(Ct,Wt,kn)});return kr(Xe,lt,Ce(Xe))}}),ed=he=>$r(he).map(Ce=>{const Xe=Yt(Ce);return Do(Xe)?Xe:"tbody"}).getOr("tbody"),Bu=he=>{const Ce=Zu(he),lt=[...Kh(he),...Ce];return Cu(lt,ed)},vd=(he,Ce)=>Cu(he,()=>Ce),cs=he=>{let Ce=!1,Xe;return(...lt)=>(Ce||(Ce=!0,Xe=he.apply(null,lt)),Xe)},oh=(he,Ce,Xe,lt)=>{const Ct=he.isiOS()&&/ipad/i.test(Xe)===!0,Wt=he.isiOS()&&!Ct,kn=he.isiOS()||he.isAndroid(),Vn=kn||lt("(pointer:coarse)"),or=Ct||!Wt&&kn&<("(min-device-width:768px)"),Mr=Wt||kn&&!or,no=Ce.isSafari()&&he.isiOS()&&/safari/i.test(Xe)===!1,ti=!Mr&&!or&&!no;return{isiPad:v(Ct),isiPhone:v(Wt),isTablet:v(or),isPhone:v(Mr),isTouch:v(Vn),isAndroid:he.isAndroid,isiOS:he.isiOS,isWebView:v(no),isDesktop:v(ti)}},Jh=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Jh(he,Ce);if(!Xe)return{major:0,minor:0};const lt=Ct=>Number(Ce.replace(Xe,"$"+Ct));return _r(lt(1),lt(2))},xf=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return he.length===0?ep():xh(he,Xe)},ep=()=>_r(0,0),_r=(he,Ce)=>({major:he,minor:Ce}),Ff={nu:_r,detect:xf,unknown:ep},yd=(he,Ce)=>we(Ce.brands,Xe=>{const lt=Xe.brand.toLowerCase();return Y(he,Ct=>{var Wt;return lt===((Wt=Ct.brand)===null||Wt===void 0?void 0:Wt.toLowerCase())}).map(Ct=>({current:Ct.name,version:Ff.nu(parseInt(Xe.version,10),0)}))}),bd=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return Y(he,lt=>lt.search(Xe))},_h=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),zu=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),va=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,El=he=>Ce=>Bl(Ce,he),_f=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:he=>Bl(he,"edge/")&&Bl(he,"chrome")&&Bl(he,"safari")&&Bl(he,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,va],search:he=>Bl(he,"chrome")&&!Bl(he,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:he=>Bl(he,"msie")||Bl(he,"trident")},{name:"Opera",versionRegexes:[va,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:El("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:El("firefox")},{name:"Safari",versionRegexes:[va,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:he=>(Bl(he,"safari")||Bl(he,"mobile/"))&&Bl(he,"applewebkit")}],$f=[{name:"Windows",search:El("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:he=>Bl(he,"iphone")||Bl(he,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:El("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:El("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:El("linux"),versionRegexes:[]},{name:"Solaris",search:El("sunos"),versionRegexes:[]},{name:"FreeBSD",search:El("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:El("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ih={browsers:v(_f),oses:v($f)},yu="Edge",jc="Chromium",Nh="IE",af="Opera",td="Firefox",sf="Safari",Bc=()=>Vd({current:void 0,version:Ff.unknown()}),Vd=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isEdge:lt(yu),isChromium:lt(jc),isIE:lt(Nh),isOpera:lt(af),isFirefox:lt(td),isSafari:lt(sf)}},xd={unknown:Bc,nu:Vd,edge:v(yu),chromium:v(jc),ie:v(Nh),opera:v(af),firefox:v(td),safari:v(sf)},vc="Windows",gs="iOS",yc="Android",Cc="Linux",Nu="macOS",Gs="Solaris",Ks="FreeBSD",Ac="ChromeOS",_d=()=>Fh({current:void 0,version:Ff.unknown()}),Fh=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isWindows:lt(vc),isiOS:lt(gs),isAndroid:lt(yc),isMacOS:lt(Nu),isLinux:lt(Cc),isSolaris:lt(Gs),isFreeBSD:lt(Ks),isChromeOS:lt(Ac)}},$h={unknown:_d,nu:Fh,windows:v(vc),ios:v(gs),android:v(yc),linux:v(Cc),macos:v(Nu),solaris:v(Gs),freebsd:v(Ks),chromeos:v(Ac)},ah={detect:(he,Ce,Xe)=>{const lt=ih.browsers(),Ct=ih.oses(),Wt=Ce.bind(or=>yd(lt,or)).orThunk(()=>_h(lt,he)).fold(xd.unknown,xd.nu),kn=zu(Ct,he).fold($h.unknown,$h.nu),Vn=oh(kn,Wt,he,Xe);return{browser:Wt,os:kn,deviceType:Vn}}},Au=he=>window.matchMedia(he).matches;let lf=cs(()=>ah.detect(window.navigator.userAgent,A.from(window.navigator.userAgentData),Au));const wf=()=>lf(),vs=(he,Ce)=>{const Xe=(Vn,or)=>{if(!a(or)&&!or.match(/^[0-9]+$/))throw new Error(he+".set accepts only positive integer values. Value was "+or);const Mr=Vn.dom;mu(Mr)&&(Mr.style[he]=or+"px")},lt=Vn=>{const or=Ce(Vn);if(or<=0||or===null){const Mr=Ml(Vn,he);return parseFloat(Mr)||0}return or},Ct=lt,Wt=(Vn,or)=>re(or,(Mr,no)=>{const ti=Ml(Vn,no),ki=ti===void 0?0:parseInt(ti,10);return isNaN(ki)?Mr:Mr+ki},0);return{set:Xe,get:lt,getOuter:Ct,aggregate:Wt,max:(Vn,or,Mr)=>{const no=Wt(Vn,Mr);return or>no?or-no:0}}},cl=(he,Ce)=>ma(he).getOr(Ce),bc=(he,Ce,Xe)=>cl(Ml(he,Ce),Xe),nc=(he,Ce,Xe,lt)=>{const Ct=bc(he,`padding-${Xe}`,0),Wt=bc(he,`padding-${lt}`,0),kn=bc(he,`border-${Xe}-width`,0),Vn=bc(he,`border-${lt}-width`,0);return Ce-Ct-Wt-kn-Vn},Qc=(he,Ce)=>{const Xe=he.dom,lt=Xe.getBoundingClientRect().width||Xe.offsetWidth;return Ce==="border-box"?lt:nc(he,lt,"left","right")},ts=he=>bc(he,"height",he.dom.offsetHeight),wi=he=>bc(he,"width",he.dom.offsetWidth),bu=he=>Qc(he,"content-box"),wd=vs("width",he=>he.dom.offsetWidth),Ol=he=>wd.get(he),ds=he=>wd.getOuter(he),zc=bu,Ud=wi,cf=(he,Ce,Xe)=>{const lt=he.cells,Ct=lt.slice(0,Ce),Wt=lt.slice(Ce),kn=Ct.concat(Xe).concat(Wt);return rs(he,kn)},Of=(he,Ce,Xe)=>cf(he,Ce,[Xe]),aa=(he,Ce,Xe)=>{const lt=he.cells;lt[Ce]=Xe},rs=(he,Ce)=>on(he.element,Ce,he.section,he.isNew),Mu=(he,Ce)=>{const Xe=he.cells,lt=j(Xe,Ce);return on(he.element,lt,he.section,he.isNew)},Ri=(he,Ce)=>he.cells[Ce],Gc=(he,Ce)=>Ri(he,Ce).element,qu=he=>he.cells.length,zl=he=>{const Ce=te(he,Xe=>Xe.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},xc=(he,Ce,Xe)=>{const lt=j(he.cells,Xe);return on(Ce(he.element),lt,he.section,!0)},Kc="data-snooker-locked-cols",jd=he=>it(he,Kc).bind(Ce=>A.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,P)),ii=he=>{const Ce=re(zl(he).rows,(lt,Ct)=>(U(Ct.cells,(Wt,kn)=>{Wt.isLocked&&(lt[kn]=!0)}),lt),{}),Xe=Oe(Ce,(lt,Ct)=>parseInt(Ct,10));return de(Xe)},nd=(he,Ce)=>he+","+Ce,al=(he,Ce,Xe)=>A.from(he.access[nd(Ce,Xe)]),Yl=(he,Ce,Xe)=>{const lt=uf(he,Ct=>Xe(Ce,Ct.element));return lt.length>0?A.some(lt[0]):A.none()},uf=(he,Ce)=>{const Xe=pe(he.all,lt=>lt.cells);return Z(Xe,Ce)},hs=he=>{const Ce={};let Xe=0;return U(he.cells,lt=>{const Ct=lt.colspan;Q(Ct,Wt=>{const kn=Xe+Wt;Ce[kn]=Tn(lt.element,Ct,kn)}),Xe+=Ct}),Ce},Mc=he=>{const Ce={},Xe=[],Ct=ve(he).map(xi=>xi.element).bind(bl).bind(jd).getOr({});let Wt=0,kn=0,Vn=0;const{pass:or,fail:Mr}=te(he,xi=>xi.section==="colgroup");U(Mr,xi=>{const fi=[];U(xi.cells,Vi=>{let Xo=0;for(;Ce[nd(Vn,Xo)]!==void 0;)Xo++;const oi=Ue(Ct,Xo.toString()),wa=ir(Vi.element,Vi.rowspan,Vi.colspan,Vn,Xo,oi);for(let Pa=0;Pa{const fi=hs(xi);return{colgroups:[zn(xi.element,ke(fi))],columns:fi}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:jn(Wt,kn),access:Ce,all:Xe,columns:no,colgroups:ti}},Ca={fromTable:he=>{const Ce=Bu(he);return Mc(Ce)},generate:Mc,getAt:al,findItem:Yl,filterItems:uf,justCells:he=>pe(he.all,Ce=>Ce.cells),justColumns:he=>ke(he.columns),hasColumns:he=>Te(he.columns).length>0,getColumnAt:(he,Ce)=>A.from(he.columns[Ce])},Ls=(he,Ce=P)=>{const Xe=he.grid,lt=Q(Xe.columns,_),Ct=Q(Xe.rows,_);return j(lt,Wt=>Ec(()=>pe(Ct,Mr=>Ca.getAt(he,Mr,Wt).filter(no=>no.column===Wt).toArray()),Mr=>Mr.colspan===1&&Ce(Mr.element),()=>Ca.getAt(he,0,Wt)))},Ec=(he,Ce,Xe)=>{const lt=he();return Y(lt,Ce).orThunk(()=>A.from(lt[0]).orThunk(Xe)).map(kn=>kn.element)},_u=he=>{const Ce=he.grid,Xe=Q(Ce.rows,_),lt=Q(Ce.columns,_);return j(Xe,Ct=>Ec(()=>pe(lt,or=>Ca.getAt(he,Ct,or).filter(Mr=>Mr.row===Ct).fold(v([]),Mr=>[Mr])),or=>or.rowspan===1,()=>Ca.getAt(he,Ct,0)))},wt=(he,Ce)=>{if(Ce<0||Ce>=he.length-1)return A.none();const Xe=he[Ce].fold(()=>{const Ct=ae(he.slice(0,Ce));return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:0})),lt=he[Ce+1].fold(()=>{const Ct=he.slice(Ce+1);return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:1}));return Xe.bind(Ct=>lt.map(Wt=>{const kn=Wt.delta+Ct.delta;return Math.abs(Wt.value-Ct.value)/kn}))},Kt=(he,Ce)=>Xe=>En(Xe)==="rtl"?Ce:he,En=he=>Ml(he,"direction")==="rtl"?"rtl":"ltr",pr=vs("height",he=>{const Ce=he.dom;return Nr(he)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),wr=he=>pr.get(he),uo=he=>pr.getOuter(he),Bi=ts,ya=(he,Ce)=>({left:he,top:Ce,translate:(lt,Ct)=>ya(he+lt,Ce+Ct)}),Ni=ya,Qi=he=>{const Ce=he.getBoundingClientRect();return Ni(Ce.left,Ce.top)},Ws=(he,Ce)=>he!==void 0?he:Ce!==void 0?Ce:0,nl=he=>{const Ce=he.dom.ownerDocument,Xe=Ce.body,lt=Ce.defaultView,Ct=Ce.documentElement;if(Xe===he.dom)return Ni(Xe.offsetLeft,Xe.offsetTop);const Wt=Ws(lt==null?void 0:lt.pageYOffset,Ct.scrollTop),kn=Ws(lt==null?void 0:lt.pageXOffset,Ct.scrollLeft),Vn=Ws(Ct.clientTop,Xe.clientTop),or=Ws(Ct.clientLeft,Xe.clientLeft);return Fs(he).translate(kn-or,Wt-Vn)},Fs=he=>{const Ce=he.dom,lt=Ce.ownerDocument.body;return lt===Ce?Ni(lt.offsetLeft,lt.offsetTop):Nr(he)?Qi(Ce):Ni(0,0)},Wu=(he,Ce)=>({row:he,y:Ce}),Ki=(he,Ce)=>({col:he,x:Ce}),Aa=he=>nl(he).left+ds(he),Pl=he=>nl(he).left,Vf=(he,Ce)=>Ki(he,Pl(Ce)),sh=(he,Ce)=>Ki(he,Aa(Ce)),_c=he=>nl(he).top,Xl=(he,Ce)=>Wu(he,_c(Ce)),pl=(he,Ce)=>Wu(he,_c(Ce)+uo(Ce)),Pc=(he,Ce,Xe)=>{if(Xe.length===0)return[];const lt=j(Xe.slice(1),(Wt,kn)=>Wt.map(Vn=>he(kn,Vn))),Ct=Xe[Xe.length-1].map(Wt=>Ce(Xe.length-1,Wt));return lt.concat([Ct])},Uf=he=>-he,Os={delta:_,positions:he=>Pc(Xl,pl,he),edge:_c},rd=Kt({delta:_,edge:Pl,positions:he=>Pc(Vf,sh,he)},{delta:Uf,edge:Aa,positions:he=>Pc(sh,Vf,he)}),tp={delta:(he,Ce)=>rd(Ce).delta(he,Ce),positions:(he,Ce)=>rd(Ce).positions(he,Ce),edge:he=>rd(he).edge(he)},kt={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},It=(()=>{const he="[0-9]+",Xe="[eE]"+("[+-]?"+he),lt="\\.",Ct=Vn=>`(?:${Vn})?`,kn=`[+-]?(?:${["Infinity",he+lt+Ct(he)+Ct(Xe),lt+he+Ct(Xe),he+Ct(Xe)].join("|")})`;return new RegExp(`^(${kn})(.*)$`)})(),Ut=(he,Ce)=>$(Ce,Xe=>$(kt[Xe],lt=>he===lt)),J=(he,Ce)=>A.from(It.exec(he)).bind(lt=>{const Ct=Number(lt[1]),Wt=lt[2];return Ut(Wt,Ce)?A.some({value:Ct,unit:Wt}):A.none()}),le=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,V=vt("col"),ie=vt("tr"),ge=(he,Ce,Xe)=>{const lt=vr(he).getOrThunk(()=>zo(Un(he)));return Ce(he)/Xe(lt)*100},xe=(he,Ce)=>{Al(he,"width",Ce+"px")},Ee=(he,Ce)=>{Al(he,"width",Ce+"%")},Ne=(he,Ce)=>{Al(he,"height",Ce+"px")},et=he=>{Jl(he,"height")},rt=he=>Bi(he)+"px",dt=(he,Ce,Xe,lt)=>{const Ct=bl(he).map(Wt=>{const kn=Xe(Wt);return Math.floor(Ce/100*kn)}).getOr(Ce);return lt(he,Ct),Ct},gt=(he,Ce,Xe,lt)=>{const Ct=parseFloat(he);return iu(he,"%")&&Yt(Ce)!=="table"?dt(Ce,Ct,Xe,lt):Ct},Rt=he=>{const Ce=rt(he);return Ce?gt(Ce,he,wr,Ne):wr(he)},Mt=(he,Ce,Xe)=>{const lt=Xe(he),Ct=Tu(he,Ce);return lt/Ct},Xt=(he,Ce)=>Nf(he,Ce).orThunk(()=>it(he,Ce).map(Xe=>Xe+"px")),dn=he=>Xt(he,"width"),bn=he=>Xt(he,"height"),vn=he=>ge(he,Ol,zc),Ln=he=>V(he)?Ol(he):Ud(he),gn=he=>ie(he)?wr(he):Mt(he,"rowspan",Rt),Jn=he=>dn(he).bind(Xe=>J(Xe,["fixed","relative","empty"])),pn=(he,Ce,Xe)=>{Al(he,"width",Ce+Xe)},In=he=>Ol(he)+"px",Ir=he=>wr(he)+"px",Pr=he=>ge(he,Ol,zc)+"%",Gr=he=>dn(he).exists(Ce=>le.test(Ce)),ro=he=>dn(he).exists(Ce=>ne.test(Ce)),po=he=>dn(he).isNone(),Wo=v(le),si=vt("col"),Bo=he=>dn(he).getOrThunk(()=>Ln(he)+"px"),Go=he=>bn(he).getOrThunk(()=>gn(he)+"px"),Yo=he=>j(Ca.justColumns(he),Ce=>A.from(Ce.element)),Wi=he=>{const Ce=wf().browser,Xe=Ce.isChromium()||Ce.isFirefox();return si(he)?Xe:!0},Ho=(he,Ce,Xe,lt,Ct,Wt)=>he.filter(lt).fold(()=>Wt(wt(Xe,Ce)),kn=>Ct(kn)),jo=(he,Ce,Xe,lt)=>{const Ct=Ls(he),Wt=Ca.hasColumns(he)?Yo(he):Ct,kn=[A.some(tp.edge(Ce))].concat(j(tp.positions(Ct,Ce),or=>or.map(Mr=>Mr.x))),Vn=x(gu);return j(Wt,(or,Mr)=>Ho(or,Mr,kn,Vn,no=>{if(Wi(no))return Xe(no);{const ti=nf(Ct[Mr],_);return Ho(ti,Mr,kn,Vn,ki=>lt(A.some(Ol(ki))),lt)}},lt))},Yi=he=>he.map(Ce=>Ce+"px").getOr(""),ai=(he,Ce)=>jo(he,Ce,Bo,Yi),Hi=(he,Ce,Xe)=>jo(he,Ce,vn,lt=>lt.fold(()=>Xe.minCellWidth(),Ct=>Ct/Xe.pixelWidth()*100)),Ai=(he,Ce,Xe)=>jo(he,Ce,Ln,lt=>lt.getOrThunk(Xe.minCellWidth)),Ja=(he,Ce,Xe,lt)=>{const Ct=_u(he),Wt=j(he.all,Vn=>A.some(Vn.element)),kn=[A.some(Os.edge(Ce))].concat(j(Os.positions(Ct,Ce),Vn=>Vn.map(or=>or.y)));return j(Wt,(Vn,or)=>Ho(Vn,or,kn,P,Xe,lt))},Ar=(he,Ce)=>Ja(he,Ce,gn,Xe=>Xe.getOrThunk(Lp)),ns=(he,Ce)=>Ja(he,Ce,Go,Yi),$s=(he,Ce)=>()=>Nr(he)?Ce(he):parseFloat(Nf(he,"width").getOr("0")),Ts=he=>{const Ce=$s(he,Ol),Xe=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(Ct,Wt)=>Ai(Ct,he,Wt),getCellDelta:Xe,singleColumnWidth:v([0]),minCellWidth:Xe,setElementWidth:c,adjustTableWidth:c,isRelative:!0,label:"none"}},rl=he=>{const Ce=$s(he,or=>parseFloat(Pr(or))),Xe=$s(he,Ol);return{width:Ce,pixelWidth:Xe,getWidths:(or,Mr)=>Hi(or,he,Mr),getCellDelta:or=>or/Xe()*100,singleColumnWidth:(or,Mr)=>[100-or],minCellWidth:()=>tc()/Xe()*100,setElementWidth:Ee,adjustTableWidth:or=>{const Mr=Ce(),no=or/100*Mr,ti=Mr+no;Ee(he,ti)},isRelative:!0,label:"percent"}},Hs=he=>{const Ce=$s(he,Ol);return{width:Ce,pixelWidth:Ce,getWidths:(kn,Vn)=>Ai(kn,he,Vn),getCellDelta:_,singleColumnWidth:(kn,Vn)=>[Math.max(tc(),kn+Vn)-kn],minCellWidth:tc,setElementWidth:xe,adjustTableWidth:kn=>{const Vn=Ce()+kn;xe(he,Vn)},isRelative:!1,label:"pixel"}},ys=(he,Ce)=>Wo().exec(Ce)!==null?rl(he):Hs(he),mt={getTableSize:he=>dn(he).fold(()=>Ts(he),Xe=>ys(he,Xe)),pixelSize:Hs,percentageSize:rl,noneSize:Ts},Tt=(he,Ce,Xe,lt,Ct,Wt)=>({minRow:he,minCol:Ce,maxRow:Xe,maxCol:lt,allCells:Ct,selectedCells:Wt}),xn=(he,Ce)=>{const Xe=he.grid.columns;let Ct=he.grid.rows,Wt=Xe,kn=0,Vn=0;const or=[],Mr=[];return Ie(he.access,no=>{if(or.push(no),Ce(no)){Mr.push(no);const ti=no.row,ki=ti+no.rowspan-1,xi=no.column,fi=xi+no.colspan-1;tikn&&(kn=ki),xiVn&&(Vn=fi)}}),Tt(Ct,Wt,kn,Vn,or,Mr)},Nn=(he,Ce,Xe)=>{const lt=he[Xe].element,Ct=Nt.fromTag("td");to(Ct,Nt.fromTag("br")),(Ce?to:Yr)(lt,Ct)},yr=(he,Ce,Xe,lt)=>{const Ct=Z(he,Vn=>Vn.section!=="colgroup"),Wt=Ce.grid.columns,kn=Ce.grid.rows;for(let Vn=0;VnXe.maxRow||MrXe.maxCol||(Ca.getAt(Ce,Vn,Mr).filter(lt).isNone()?Nn(Ct,or,Vn):or=!0)}},so=(he,Ce,Xe,lt)=>{Ie(Xe.columns,kn=>{(kn.columnCe.maxCol)&&pi(kn.element)});const Ct=Z(rh(he,"tr"),kn=>kn.dom.childElementCount===0);U(Ct,pi),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(rh(he,"th,td"),kn=>{at(kn,"rowspan"),at(kn,"colspan")}),at(he,Kc),at(he,"data-snooker-col-series"),mt.getTableSize(he).adjustTableWidth(lt)},No=(he,Ce,Xe,lt)=>{if(lt.minCol===0&&Ce.grid.columns===lt.maxCol+1)return 0;const Ct=Ai(Ce,he,Xe),Wt=re(Ct,(Mr,no)=>Mr+no,0),or=re(Ct.slice(lt.minCol,lt.maxCol+1),(Mr,no)=>Mr+no,0)/Wt*Xe.pixelWidth()-Xe.pixelWidth();return Xe.getCellDelta(or)},ui=(he,Ce)=>{const Xe=ki=>sn(ki.element,Ce),lt=Sr(he),Ct=Bu(lt),Wt=mt.getTableSize(he),kn=Ca.generate(Ct),Vn=xn(kn,Xe),or="th:not("+Ce+"),td:not("+Ce+")",Mr=rf(lt,"th,td",ki=>sn(ki,or));U(Mr,pi),yr(Ct,kn,Vn,Xe);const no=Ca.fromTable(he),ti=No(he,no,Wt,Vn);return so(lt,Vn,kn,ti),lt},ga=" ",ua=((he,Ce)=>{const Xe=Wt=>{if(!he(Wt))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return lt(Wt).getOr("")},lt=Wt=>he(Wt)?A.from(Wt.dom.nodeValue):A.none();return{get:Xe,getOption:lt,set:(Wt,kn)=>{if(!he(Wt))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Wt.dom.nodeValue=kn}}})(Cn,"text"),Cs=he=>ua.get(he),ul=he=>ua.getOption(he),Jc=(he,Ce)=>ua.set(he,Ce),Is=he=>Yt(he)==="img"?1:ul(he).fold(()=>lr(he).length,Ce=>Ce.length),Hc=he=>ul(he).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(ga)>-1).isSome(),Nl=he=>Ot(he)&&Dt(he,"contenteditable")==="false",lh=["img","br"],r0=he=>Hc(he)||z(lh,Yt(he))||Nl(he),ch=he=>Ds(he,r0),gg=he=>Ip(he,r0),Ip=(he,Ce)=>{const Xe=lt=>{const Ct=lr(lt);for(let Wt=Ct.length-1;Wt>=0;Wt--){const kn=Ct[Wt];if(Ce(kn))return A.some(kn);const Vn=Xe(kn);if(Vn.isSome())return Vn}return A.none()};return Xe(he)},X0={scope:["row","col"]},Vh=he=>()=>{const Ce=Nt.fromTag("td",he.dom);return to(Ce,Nt.fromTag("br",he.dom)),Ce},Pu=he=>()=>Nt.fromTag("col",he.dom),Uh=he=>()=>Nt.fromTag("colgroup",he.dom),ss=he=>()=>Nt.fromTag("tr",he.dom),Gl=(he,Ce,Xe)=>{const lt=go(he,Ce);return Ie(Xe,(Ct,Wt)=>{Ct===null?at(lt,Wt):st(lt,Wt,Ct)}),lt},Sf=he=>he,Nc=(he,Ce,Xe)=>ch(he).map(Ct=>{const Wt=Xe.join(","),kn=dr(Ct,Wt,Vn=>An(Vn,he));return K(kn,(Vn,or)=>{const Mr=Dr(or);return to(Vn,Mr),Mr},Ce)}).getOr(Ce),o0=(he,Ce)=>{Ie(X0,(Xe,lt)=>it(he,lt).filter(Ct=>z(Xe,Ct)).each(Ct=>st(Ce,lt,Ct)))},i0=(he,Ce,Xe)=>{const lt=(kn,Vn)=>{Gh(kn.element,Vn),Jl(Vn,"height"),kn.colspan!==1&&Jl(Vn,"width")},Ct=kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom),or=Xe.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Mr=or.length>0?Nc(kn.element,Vn,or):Vn;return to(Mr,Nt.fromTag("br")),lt(kn,Vn),o0(kn.element,Vn),he(kn.element,Vn),Vn};return{col:kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom);return lt(kn,Vn),he(kn.element,Vn),Vn},colgroup:Uh(Ce),row:ss(Ce),cell:Ct,replace:Gl,colGap:Pu(Ce),gap:Vh(Ce)}},a0=he=>({col:Pu(he),colgroup:Uh(he),row:ss(he),cell:Vh(he),replace:Sf,colGap:Pu(he),gap:Vh(he)}),wu=(he,Ce)=>{const lt=(Ce||document).createElement("div");return lt.innerHTML=he,lr(Nt.fromDom(lt))},Dp=he=>j(he,Nt.fromDom),Rm=he=>Ce=>Ce.options.get(he),nm="100%",G0=he=>{var Ce;const Xe=he.dom,lt=(Ce=Xe.getParent(he.selection.getStart(),Xe.isBlock))!==null&&Ce!==void 0?Ce:he.getBody();return zc(Nt.fromDom(lt))+"px"},vg=(he,Ce)=>yp(he)||!hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},s0=(he,Ce)=>yp(he)||hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},H1=he=>{const Ce=he.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Xe=>{const lt=z(["section","cells","sectionCells","auto"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Xe=>{const lt=z(["preservetable","resizetable"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},VO=he=>A.from(he.options.get("table_clone_elements")),rm=he=>{const Ce=he.options.get("object_resizing");return z(Ce.split(","),"table")},z_=Rm("table_header_type"),db=Rm("table_column_resizing"),lu=he=>db(he)==="preservetable",ay=he=>db(he)==="resizetable",wh=Rm("table_sizing_mode"),kf=he=>wh(he)==="relative",l0=he=>wh(he)==="fixed",yp=he=>wh(he)==="responsive",Bp=Rm("table_resize_bars"),hb=Rm("table_style_by_css"),Lm=Rm("table_merge_content_on_paste"),Qd=he=>{const Ce=he.options,Xe=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Xe:s0(he,Xe)},Z1=he=>{const Ce=he.options,Xe=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Xe:vg(he,Xe)},N_=Rm("table_use_colgroups"),K0=he=>Bs(he,"[contenteditable]"),sy=(he,Ce=!1)=>Nr(he)?he.dom.isContentEditable:K0(he).fold(v(Ce),Xe=>yg(Xe)==="true"),yg=he=>he.dom.contentEditable,Im=he=>Nt.fromDom(he.getBody()),Dm=he=>Ce=>An(Ce,Im(he)),Oh=he=>{at(he,"data-mce-style");const Ce=Xe=>at(Xe,"data-mce-style");U(vu(he),Ce),U($d(he),Ce),U(Zu(he),Ce)},zp=he=>Nt.fromDom(he.selection.getStart()),J0=he=>he.getBoundingClientRect().width,F_=he=>he.getBoundingClientRect().height,q1=he=>(Ce,Xe)=>{const lt=Ce.dom.getStyle(Xe,he)||Ce.dom.getAttrib(Xe,he);return A.from(lt).filter(_s)},$_=q1("width"),Dx=q1("height"),UO=he=>/^(\d+(\.\d+)?)%$/.test(he),W1=he=>/^(\d+(\.\d+)?)px$/.test(he),e1=he=>To(he,vt("table")).exists(sy),cu=(he,Ce)=>{const Xe=Ce.column,lt=Ce.column+Ce.colspan-1,Ct=Ce.row,Wt=Ce.row+Ce.rowspan-1;return Xe<=he.finishCol&<>=he.startCol&&Ct<=he.finishRow&&Wt>=he.startRow},Za=(he,Ce)=>Ce.column>=he.startCol&&Ce.column+Ce.colspan-1<=he.finishCol&&Ce.row>=he.startRow&&Ce.row+Ce.rowspan-1<=he.finishRow,sa=(he,Ce)=>{let Xe=!0;const lt=C(Za,Ce);for(let Ct=Ce.startRow;Ct<=Ce.finishRow;Ct++)for(let Wt=Ce.startCol;Wt<=Ce.finishCol;Wt++)Xe=Xe&&Ca.getAt(he,Ct,Wt).exists(lt);return Xe?A.some(Ce):A.none()},Bm=(he,Ce)=>an(Math.min(he.row,Ce.row),Math.min(he.column,Ce.column),Math.max(he.row+he.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(he.column+he.colspan-1,Ce.column+Ce.colspan-1)),t1=(he,Ce,Xe)=>{const lt=Ca.findItem(he,Ce,An),Ct=Ca.findItem(he,Xe,An);return lt.bind(Wt=>Ct.map(kn=>Bm(Wt,kn)))},n1=(he,Ce,Xe)=>t1(he,Ce,Xe).bind(lt=>sa(he,lt)),Bx=(he,Ce,Xe,lt)=>Ca.findItem(he,Ce,An).bind(Ct=>{const Wt=Xe>0?Ct.row+Ct.rowspan-1:Ct.row,kn=lt>0?Ct.column+Ct.colspan-1:Ct.column;return Ca.getAt(he,Wt+Xe,kn+lt).map(or=>or.element)}),zm=(he,Ce,Xe)=>t1(he,Ce,Xe).map(lt=>{const Ct=Ca.filterItems(he,C(cu,lt));return j(Ct,Wt=>Wt.element)}),Rl=(he,Ce)=>{const Xe=(lt,Ct)=>Kn(Ct,lt);return Ca.findItem(he,Ce,Xe).map(lt=>lt.element)},zx=(he,Ce,Xe)=>bl(he).bind(lt=>{const Ct=Nm(lt);return Bx(Ct,he,Ce,Xe)}),pb=(he,Ce,Xe)=>{const lt=Nm(he);return zm(lt,Ce,Xe)},V_=(he,Ce,Xe,lt,Ct)=>{const Wt=Nm(he),kn=An(he,Xe)?A.some(Ce):Rl(Wt,Ce),Vn=An(he,Ct)?A.some(lt):Rl(Wt,lt);return kn.bind(or=>Vn.bind(Mr=>zm(Wt,or,Mr)))},Lo=(he,Ce,Xe)=>{const lt=Nm(he);return n1(lt,Ce,Xe)},Nm=Ca.fromTable;var D4=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],bg=()=>{const he=Mr=>Nt.fromDom(Mr.dom.cloneNode(!1)),Ce=Mr=>Zn(Mr).dom,Xe=Mr=>cn(Mr)?Yt(Mr)==="body"?!0:z(D4,Yt(Mr)):!1,lt=Mr=>cn(Mr)?z(["br","img","hr","input"],Yt(Mr)):!1,Ct=Mr=>cn(Mr)&&Dt(Mr,"contenteditable")==="false",Wt=(Mr,no)=>Mr.dom.compareDocumentPosition(no.dom),kn=(Mr,no)=>{const ti=Bt(Mr);bt(no,ti)},Vn=Mr=>{const no=Yt(Mr);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],no)},or=Mr=>cn(Mr)?it(Mr,"lang"):A.none();return{up:v({selector:fs,closest:Bs,predicate:Di,all:qn}),down:v({selector:Oo,predicate:Fn}),styles:v({get:Ml,getRaw:Nf,set:Al,remove:Jl}),attrs:v({get:Dt,set:st,remove:at,copyTo:kn}),insert:v({before:eo,after:Jr,afterAll:_o,append:to,appendAll:$o,prepend:Yr,wrap:Fo}),remove:v({unwrap:Hn,remove:pi}),create:v({nu:Nt.fromTag,clone:he,text:Nt.fromText}),query:v({comparePosition:Wt,prevSibling:gr,nextSibling:sr}),property:v({children:lr,name:Yt,parent:$r,document:Ce,isText:Cn,isComment:Et,isElement:cn,isSpecial:Vn,getLanguage:or,getText:Cs,setText:Jc,isBoundary:Xe,isEmptyTag:lt,isNonEditable:Ct}),eq:An,is:fr}};const B4=(he,Ce,Xe,lt)=>{const Ct=Xe[0],Wt=Xe.slice(1);return lt(he,Ce,Ct,Wt)},c0=(he,Ce,Xe)=>Xe.length>0?B4(he,Ce,Xe,mb):A.none(),mb=(he,Ce,Xe,lt)=>{const Ct=Ce(he,Xe);return K(lt,(Wt,kn)=>{const Vn=Ce(he,kn);return od(he,Wt,Vn)},Ct)},od=(he,Ce,Xe)=>Ce.bind(lt=>Xe.filter(C(he.eq,lt))),U_=(he,Ce)=>C(he.eq,Ce),ly=(he,Ce,Xe,lt=T)=>{const Ct=[Ce].concat(he.up().all(Ce)),Wt=[Xe].concat(he.up().all(Xe)),kn=no=>ee(no,lt).fold(()=>no,ki=>no.slice(0,ki+1)),Vn=kn(Ct),or=kn(Wt),Mr=Y(Vn,no=>$(or,U_(he,no)));return{firstpath:Vn,secondpath:or,shared:Mr}},wc=c0,xg=ly,Nx=bg(),Sh=(he,Ce)=>wc(Nx,(Xe,lt)=>he(lt),Ce),j_=(he,Ce,Xe)=>xg(Nx,he,Ce,Xe),gb=he=>fs(he,"table"),Y1=(he,Ce,Xe)=>{const lt=Ct=>Wt=>Xe!==void 0&&Xe(Wt)||An(Wt,Ct);return An(he,Ce)?A.some({boxes:A.some([he]),start:he,finish:Ce}):gb(he).bind(Ct=>gb(Ce).bind(Wt=>{if(An(Ct,Wt))return A.some({boxes:pb(Ct,he,Ce),start:he,finish:Ce});if(Kn(Ct,Wt)){const kn=dr(Ce,"td,th",lt(Ct)),Vn=kn.length>0?kn[kn.length-1]:Ce;return A.some({boxes:V_(Ct,he,Ct,Ce,Wt),start:he,finish:Vn})}else if(Kn(Wt,Ct)){const kn=dr(he,"td,th",lt(Wt)),Vn=kn.length>0?kn[kn.length-1]:he;return A.some({boxes:V_(Wt,he,Ct,Ce,Wt),start:he,finish:Vn})}else return j_(he,Ce).shared.bind(kn=>Bs(kn,"table",Xe).bind(Vn=>{const or=dr(Ce,"td,th",lt(Vn)),Mr=or.length>0?or[or.length-1]:Ce,no=dr(he,"td,th",lt(Vn)),ti=no.length>0?no[no.length-1]:he;return A.some({boxes:V_(Vn,he,Ct,Ce,Wt),start:ti,finish:Mr})}))}))},cy=(he,Ce)=>{const Xe=Oo(he,Ce);return Xe.length>0?A.some(Xe):A.none()},np=(he,Ce)=>Y(he,Xe=>sn(Xe,Ce)),jO=(he,Ce,Xe)=>yl(he,Ce).bind(lt=>yl(he,Xe).bind(Ct=>Sh(gb,[lt,Ct]).map(Wt=>({first:lt,last:Ct,table:Wt})))),_g=(he,Ce)=>fs(he,"table").bind(Xe=>yl(Xe,Ce).bind(lt=>Y1(lt,he).bind(Ct=>Ct.boxes.map(Wt=>({boxes:Wt,start:Ct.start,finish:Ct.finish}))))),Q_=(he,Ce,Xe,lt,Ct)=>np(he,Ct).bind(Wt=>zx(Wt,Ce,Xe).bind(kn=>_g(kn,lt))),wg=(he,Ce)=>cy(he,Ce),X1=(he,Ce,Xe)=>jO(he,Ce,Xe).bind(lt=>{const Ct=or=>An(he,or),Wt="thead,tfoot,tbody,table",kn=fs(lt.first,Wt,Ct),Vn=fs(lt.last,Wt,Ct);return kn.bind(or=>Vn.bind(Mr=>An(or,Mr)?Lo(lt.table,lt.first,lt.last):A.none()))}),om=_,H_=he=>{const Ce=(lt,Ct)=>it(lt,Ct).exists(Wt=>parseInt(Wt,10)>1),Xe=lt=>Ce(lt,"rowspan")||Ce(lt,"colspan");return he.length>0&&se(he,Xe)?A.some(he):A.none()},QO=(he,Ce,Xe)=>Ce.length<=1?A.none():X1(he,Xe.firstSelectedSelector,Xe.lastSelectedSelector).map(lt=>({bounds:lt,cells:Ce})),uh="data-mce-selected",Hd="td["+uh+"],th["+uh+"]",ei="["+uh+"]",Fx="data-mce-first-selected",id="td["+Fx+"],th["+Fx+"]",$x="data-mce-last-selected",HO="td["+$x+"],th["+$x+"]",cc=ei,Xu={selected:uh,selectedSelector:Hd,firstSelected:Fx,firstSelectedSelector:id,lastSelected:$x,lastSelectedSelector:HO},Vx=(he,Ce,Xe)=>({element:Xe,mergable:QO(Ce,he,Xu),unmergable:H_(he),selection:om(he)}),ZO=(he,Ce,Xe)=>({element:he,clipboard:Ce,generators:Xe}),u0=(he,Ce,Xe,lt)=>({selection:om(he),clipboard:Xe,generators:lt}),vb=he=>bl(he).bind(Ce=>wg(Ce,Xu.firstSelectedSelector)).fold(v(he),Ce=>Ce[0]),Fm=he=>(Ce,Xe)=>{const lt=Yt(Ce),Ct=lt==="col"||lt==="colgroup"?vb(Ce):Ce;return Bs(Ct,he,Xe)},Z_=Fm("th,td,caption"),q_=Fm("th,td"),uc=he=>Dp(he.model.table.getSelectedCells()),uy=he=>Z(uc(he),Ce=>sn(Ce,Xu.selectedSelector)),Zc=he=>bl(he[0]).map(Ce=>{const Xe=ui(Ce,cc);return Oh(Xe),[Xe]}),qO=(he,Ce)=>j(Ce,Xe=>he.selection.serializer.serialize(Xe.dom,{})).join(""),rp=he=>j(he,Ce=>Ce.dom.innerText).join(""),Og=(he,Ce)=>{he.on("BeforeGetContent",Xe=>{const lt=Ct=>{Xe.preventDefault(),Zc(Ct).each(Wt=>{Xe.content=Xe.format==="text"?rp(Wt):qO(he,Wt)})};if(Xe.selection===!0){const Ct=uy(he);Ct.length>=1&<(Ct)}}),he.on("BeforeSetContent",Xe=>{if(Xe.selection===!0&&Xe.paste===!0){const lt=uc(he);ve(lt).each(Ct=>{bl(Ct).each(Wt=>{const kn=Z(wu(Xe.content),or=>Yt(or)!=="meta"),Vn=vt("table");if(Lm(he)&&kn.length===1&&Vn(kn[0])){Xe.preventDefault();const or=Nt.fromDom(he.getDoc()),Mr=a0(or),no=ZO(Ct,kn[0],Mr);Ce.pasteCells(Wt,no).each(()=>{he.focus()})}})})}})},Oc=(he,Ce)=>({element:he,offset:Ce}),WO=(he,Ce,Xe)=>he.property().isText(Ce)&&he.property().getText(Ce).trim().length===0||he.property().isComment(Ce)?Xe(Ce).bind(lt=>WO(he,lt,Xe).orThunk(()=>A.some(lt))):A.none(),YO=(he,Ce)=>he.property().isText(Ce)?he.property().getText(Ce).length:he.property().children(Ce).length,Ux=(he,Ce)=>{const Xe=WO(he,Ce,he.query().prevSibling).getOr(Ce);if(he.property().isText(Xe))return Oc(Xe,YO(he,Xe));const lt=he.property().children(Xe);return lt.length>0?Ux(he,lt[lt.length-1]):Oc(Xe,YO(he,Xe))},qc=Ux,ff=bg(),fh=he=>qc(ff,he),fy=(he,Ce)=>{gu(he)||Jn(he).each(lt=>{const Ct=lt.value/2;pn(he,Ct,lt.unit),pn(Ce,Ct,lt.unit)})},jh=he=>j(he,v(0)),r1=(he,Ce,Xe,lt,Ct)=>Ct(he.slice(0,Ce)).concat(lt).concat(Ct(he.slice(Xe))),G1=he=>(Ce,Xe,lt,Ct)=>{if(he(lt)){const Wt=Math.max(Ct,Ce[Xe]-Math.abs(lt)),kn=Math.abs(Wt-Ce[Xe]);return lt>=0?kn:-kn}else return lt},Sg=G1(he=>he<0),dy=G1(P),K1=()=>{const he=(Vn,or,Mr,no,ti)=>{const ki=Sg(Vn,or,no,ti);return r1(Vn,or,Mr+1,[ki,0],jh)},Ce=(Vn,or,Mr,no)=>{const ti=(100+Mr)/100,ki=Math.max(no,(Vn[or]+Mr)/ti);return j(Vn,(xi,fi)=>(fi===or?ki:xi/ti)-xi)},Xe=(Vn,or,Mr,no,ti,ki)=>ki?Ce(Vn,or,no,ti):he(Vn,or,Mr,no,ti);return{resizeTable:(Vn,or)=>Vn(or),clampTableDelta:Sg,calcLeftEdgeDeltas:Xe,calcMiddleDeltas:(Vn,or,Mr,no,ti,ki,xi)=>Xe(Vn,Mr,no,ti,ki,xi),calcRightEdgeDeltas:(Vn,or,Mr,no,ti,ki)=>{if(ki)return Ce(Vn,Mr,no,ti);{const xi=Sg(Vn,Mr,no,ti);return jh(Vn.slice(0,Mr)).concat([xi])}},calcRedestributedWidths:(Vn,or,Mr,no)=>{if(no){const ki=(or+Mr)/or,xi=j(Vn,fi=>fi/ki);return{delta:ki*100-100,newSizes:xi}}else return{delta:Mr,newSizes:Vn}}}},o1=()=>{const he=(kn,Vn,or,Mr,no)=>{const ti=Mr>=0?or:Vn,ki=dy(kn,ti,Mr,no);return r1(kn,Vn,or+1,[ki,-ki],jh)};return{resizeTable:(kn,Vn,or)=>{or&&kn(Vn)},clampTableDelta:(kn,Vn,or,Mr,no)=>{if(no){if(or>=0)return or;{const ti=re(kn,(ki,xi)=>ki+xi-Mr,0);return Math.max(-ti,or)}}else return Sg(kn,Vn,or,Mr)},calcLeftEdgeDeltas:he,calcMiddleDeltas:(kn,Vn,or,Mr,no,ti)=>he(kn,or,Mr,no,ti),calcRightEdgeDeltas:(kn,Vn,or,Mr,no,ti)=>{if(ti)return jh(kn);{const ki=Mr/kn.length;return j(kn,v(ki))}},calcRedestributedWidths:(kn,Vn,or,Mr)=>({delta:0,newSizes:kn})}},kg=he=>Ca.fromTable(he).grid,J1=vt("th"),ev=he=>se(he,Ce=>J1(Ce.element)),z4=(he,Ce)=>he&&Ce?"sectionCells":he?"section":"cells",W_=he=>{const Ce=he.section==="thead",Xe=yf(tv(he.cells),"th");return he.section==="tfoot"?{type:"footer"}:Ce||Xe?{type:"header",subType:z4(Ce,Xe)}:{type:"body"}},tv=he=>{const Ce=Z(he,Xe=>J1(Xe.element));return Ce.length===0?A.some("td"):Ce.length===he.length?A.some("th"):A.none()},nv=he=>{const Ce=j(he,Ct=>W_(Ct).type),Xe=z(Ce,"header"),lt=z(Ce,"footer");if(!Xe&&!lt)return A.some("body");{const Ct=z(Ce,"body");return Xe&&!Ct&&!lt?A.some("header"):!Xe&&!Ct&<?A.some("footer"):A.none()}},jx=he=>we(he.all,Ce=>{const Xe=W_(Ce);return Xe.type==="header"?A.from(Xe.subType):A.none()}),hy=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Y_=(he,Ce)=>he.section!==Ce?on(he.element,he.cells,Ce,he.isNew):he,X_=()=>({transformRow:Y_,transformCell:(he,Ce,Xe)=>{const lt=Xe(he.element,Ce),Ct=Yt(lt)!=="td"?oo(lt,"td"):lt;return Gt(Ct,he.isNew,he.isLocked)}}),G_=()=>({transformRow:Y_,transformCell:hy}),py=()=>({transformRow:(he,Ce)=>Y_(he,Ce==="thead"?"tbody":Ce),transformCell:hy}),i1={getTableSectionType:(he,Ce)=>{const Xe=Ca.fromTable(he);switch(jx(Xe).getOr(Ce)){case"section":return X_();case"sectionCells":return G_();case"cells":return py()}},section:X_,sectionCells:G_,cells:py,fallback:()=>({transformRow:_,transformCell:hy})},Tg=(he,Ce,Xe,lt)=>{Xe===lt?at(he,Ce):st(he,Ce,Xe)},im=(he,Ce,Xe)=>{_e(xr(he,Ce)).fold(()=>Yr(he,Xe),lt=>Jr(lt,Xe))},Qh=(he,Ce)=>{const Xe=zi(he,Ce).getOrThunk(()=>{const lt=Nt.fromTag(Ce,Un(he).dom);return Ce==="thead"?im(he,"caption,colgroup",lt):Ce==="colgroup"?im(he,"caption",lt):to(he,lt),lt});return Mo(Xe),Xe},rv=(he,Ce)=>{const Xe=[],lt=[],Ct=xi=>j(xi,fi=>{fi.isNew&&Xe.push(fi.element);const Vi=fi.element;return Mo(Vi),U(fi.cells,Xo=>{Xo.isNew&<.push(Xo.element),Tg(Xo.element,"colspan",Xo.colspan,1),Tg(Xo.element,"rowspan",Xo.rowspan,1),to(Vi,Xo.element)}),Vi}),Wt=xi=>pe(xi,fi=>j(fi.cells,Vi=>(Tg(Vi.element,"span",Vi.colspan,1),Vi.element))),kn=(xi,fi)=>{const Vi=Qh(he,fi),oi=(fi==="colgroup"?Wt:Ct)(xi);$o(Vi,oi)},Vn=xi=>{zi(he,xi).each(pi)},or=(xi,fi)=>{xi.length>0?kn(xi,fi):Vn(fi)},Mr=[],no=[],ti=[],ki=[];return U(Ce,xi=>{switch(xi.section){case"thead":Mr.push(xi);break;case"tbody":no.push(xi);break;case"tfoot":ti.push(xi);break;case"colgroup":ki.push(xi);break}}),or(ki,"colgroup"),or(Mr,"thead"),or(no,"tbody"),or(ti,"tfoot"),{newRows:Xe,newCells:lt}},ov=he=>j(he,Ce=>{const Xe=Dr(Ce.element);return U(Ce.cells,lt=>{const Ct=Sr(lt.element);Tg(Ct,"colspan",lt.colspan,1),Tg(Ct,"rowspan",lt.rowspan,1),to(Xe,Ct)}),Xe}),Od=(he,Ce)=>j(he,Xe=>Ri(Xe,Ce)),Cg=(he,Ce)=>he[Ce],Qx=(he,Ce)=>{if(he.length===0)return 0;const Xe=he[0];return ee(he,Ct=>!Ce(Xe.element,Ct.element)).getOr(he.length)},kh=(he,Ce,Xe,lt)=>{const Ct=Cg(he,Ce),Wt=Ct.section==="colgroup",kn=Qx(Ct.cells.slice(Xe),lt),Vn=Wt?1:Qx(Od(he.slice(Ce),Xe),lt);return{colspan:kn,rowspan:Vn}},f0=(he,Ce)=>{const Xe=j(he,Ct=>j(Ct.cells,T)),lt=(Ct,Wt,kn,Vn)=>{for(let or=Ct;or{const kn=pe(Ct.cells,(Vn,or)=>{if(Xe[Wt][or]===!1){const Mr=kh(he,Wt,or,Ce);return lt(Wt,or,Mr.rowspan,Mr.colspan),[Yn(Vn.element,Mr.rowspan,Mr.colspan,Vn.isNew)]}else return[]});return Er(Ct.element,kn,Ct.section,Ct.isNew)})},iv=(he,Ce,Xe)=>{const lt=[];U(he.colgroups,Ct=>{const Wt=[];for(let kn=0;knGt(or.element,Xe,!1)).getOrThunk(()=>Gt(Ce.colGap(),!0,!1));Wt.push(Vn)}lt.push(on(Ct.element,Wt,"colgroup",Xe))});for(let Ct=0;CtGt(no.element,Xe,no.isLocked)).getOrThunk(()=>Gt(Ce.gap(),!0,!1));Wt.push(Mr)}const kn=he.all[Ct],Vn=on(kn.element,Wt,kn.section,Xe);lt.push(Vn)}return lt},K_=(he,Ce)=>iv(he,Ce,!1),bb=he=>f0(he,An),Hx=(he,Ce)=>we(he.all,Xe=>Y(Xe.cells,lt=>An(Ce,lt.element))),Zx=(he,Ce,Xe)=>{const lt=j(Ce.selection,Wt=>bf(Wt).bind(kn=>Hx(he,kn)).filter(Xe)),Ct=il(lt);return nh(Ct.length>0,Ct)},ad=(he,Ce,Xe,lt,Ct)=>(Wt,kn,Vn,or)=>{const Mr=Ca.fromTable(Wt),no=A.from(or==null?void 0:or.section).getOrThunk(i1.fallback);return Ce(Mr,kn).map(ki=>{const xi=K_(Mr,Vn),fi=he(xi,ki,An,Ct(Vn),no),Vi=ii(fi.grid),Xo=bb(fi.grid);return{info:ki,grid:Xo,cursor:fi.cursor,lockedColumns:Vi}}).bind(ki=>{const xi=rv(Wt,ki.grid),fi=A.from(or==null?void 0:or.sizing).getOrThunk(()=>mt.getTableSize(Wt)),Vi=A.from(or==null?void 0:or.resize).getOrThunk(o1);return Xe(Wt,ki.grid,ki.info,{sizing:fi,resize:Vi,section:no}),lt(Wt),at(Wt,Kc),ki.lockedColumns.length>0&&st(Wt,Kc,ki.lockedColumns.join(",")),A.some({cursor:ki.cursor,newRows:xi.newRows,newCells:xi.newCells})})},pC=(he,Ce)=>bf(Ce.element).bind(Xe=>Hx(he,Xe).map(lt=>({...lt,generators:Ce.generators,clipboard:Ce.clipboard}))),qx=(he,Ce)=>Zx(he,Ce,P).map(Xe=>({cells:Xe,generators:Ce.generators,clipboard:Ce.clipboard})),Ag=(he,Ce)=>Ce.mergable,$m=(he,Ce)=>Ce.unmergable,Th=(he,Ce)=>Zx(he,Ce,P),Np=(he,Ce)=>Zx(he,Ce,Xe=>!Xe.isLocked),d0=(he,Ce)=>Hx(he,Ce).exists(Xe=>!Xe.isLocked),av=(he,Ce)=>se(Ce,Xe=>d0(he,Xe)),J_=(he,Ce)=>Ag(he,Ce).filter(Xe=>av(he,Xe.cells)),my=(he,Ce)=>$m(he,Ce).filter(Xe=>av(he,Xe)),xb=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ct.length===0)return he;for(let Wt=Ce.startRow;Wt<=Ce.finishRow;Wt++)for(let kn=Ce.startCol;kn<=Ce.finishCol;kn++){const Vn=Ct[Wt],or=Ri(Vn,kn).isLocked;aa(Vn,kn,Gt(lt(),!1,or))}return he},ew=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;let Wt=!0;for(let kn=0;knre(he,(Xe,lt)=>$(Xe,Ct=>Ce(Ct.element,lt.element))?Xe:Xe.concat([lt]),[]),sv=(he,Ce,Xe,lt)=>(Ce>0&&Ce{const Wt=Ct.cells[Ce-1];let kn=0;const Vn=lt();for(;Ct.cells.length>Ce+kn&&Xe(Wt.element,Ct.cells[Ce+kn].element);)aa(Ct,Ce+kn,Gt(Vn,!0,Ct.cells[Ce+kn].isLocked)),kn++}),he),xp=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ce>0&&Ce{let or=A.none();for(let Mr=Ce;Mr{aa(ti,no,Gt(fi,!0,ki.isLocked))}))}})}return he},_b=he=>{const Ce=Wt=>Wt(he),Xe=v(he),lt=()=>Ct,Ct={tag:!0,inner:he,fold:(Wt,kn)=>kn(he),isValue:P,isError:T,map:Wt=>Sd.value(Wt(he)),mapError:lt,bind:Ce,exists:Ce,forall:Ce,getOr:Xe,or:lt,getOrThunk:Xe,orThunk:lt,getOrDie:Xe,each:Wt=>{Wt(he)},toOptional:()=>A.some(he)};return Ct},Ou=he=>{const Ce=()=>Xe,Xe={tag:!1,inner:he,fold:(lt,Ct)=>lt(he),isValue:T,isError:P,map:Ce,mapError:lt=>Sd.error(lt(he)),bind:Ce,exists:T,forall:P,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(he)),each:c,toOptional:A.none};return Xe},Sd={value:_b,error:Ou,fromOption:(he,Ce)=>he.fold(()=>Ou(Ce),_b)},XO=(he,Ce,Xe)=>{if(he.row>=Ce.length||he.column>qu(Ce[0]))return Sd.error("invalid start address out of table bounds, row: "+he.row+", column: "+he.column);const lt=Ce.slice(he.row),Ct=lt[0].cells.slice(he.column),Wt=qu(Xe[0]),kn=Xe.length;return Sd.value({rowDelta:lt.length-kn,colDelta:Ct.length-Wt})},wb=(he,Ce)=>{const Xe=qu(he[0]),lt=qu(Ce[0]);return{rowDelta:0,colDelta:Xe-lt}},am=(he,Ce)=>{const Xe=he.length,lt=Ce.length;return{rowDelta:Xe-lt,colDelta:0}},Vm=(he,Ce,Xe,lt)=>{const Ct=Ce.section==="colgroup"?Xe.col:Xe.cell;return Q(he,Wt=>Gt(Ct(),!0,lt(Wt)))},_p=(he,Ce,Xe,lt)=>{const Ct=he[he.length-1];return he.concat(Q(Ce,()=>{const Wt=Ct.section==="colgroup"?Xe.colgroup:Xe.row,kn=xc(Ct,Wt,_),Vn=Vm(kn.cells.length,kn,Xe,or=>We(lt,or.toString()));return rs(kn,Vn)}))},op=(he,Ce,Xe,lt)=>j(he,Ct=>{const Wt=Vm(Ce,Ct,Xe,T);return cf(Ct,lt,Wt)}),GO=(he,Ce,Xe)=>j(he,lt=>re(Xe,(Ct,Wt)=>{const kn=Vm(1,lt,Ce,P)[0];return Of(Ct,Wt,kn)},lt)),Ob=(he,Ce,Xe)=>{const lt=Ce.colDelta<0?op:_,Ct=Ce.rowDelta<0?_p:_,Wt=ii(he),kn=qu(he[0]),Vn=$(Wt,no=>no===kn-1),or=lt(he,Math.abs(Ce.colDelta),Xe,Vn?kn-1:kn),Mr=ii(or);return Ct(or,Math.abs(Ce.rowDelta),Xe,ce(Mr,P))},s1=(he,Ce,Xe,lt)=>{const Ct=Ri(he[Ce],Xe),Wt=C(lt,Ct.element),kn=he[Ce];return he.length>1&&qu(kn)>1&&(Xe>0&&Wt(Gc(kn,Xe-1))||Xe0&&Wt(Gc(he[Ce-1],Xe))||Ce{const kn=he.row,Vn=he.column,or=Xe.length,Mr=qu(Xe[0]),no=kn+or,ti=Vn+Mr+Wt.length,ki=ce(Wt,P);for(let xi=kn;xi{const lt=qu(Ce[0]),Ct=zl(Ce).cols.length+he.row,Wt=Q(lt-he.column,Vn=>Vn+he.column),kn=Y(Wt,Vn=>se(Xe,or=>or!==Vn)).getOr(lt-1);return{row:Ct,column:kn}},p0=(he,Ce,Xe)=>Z(Xe,lt=>lt>=he.column&<<=qu(Ce[0])+he.column),Ss=(he,Ce,Xe,lt,Ct)=>{const Wt=ii(Ce),kn=h0(he,Ce,Wt),Vn=zl(Xe).rows,or=p0(kn,Vn,Wt);return XO(kn,Ce,Vn).map(no=>{const ti={...no,colDelta:no.colDelta-or.length},ki=Ob(Ce,ti,lt),xi=ii(ki),fi=p0(kn,Vn,xi);return Um(kn,ki,Vn,lt,Ct,fi)})},kd=(he,Ce,Xe,lt,Ct)=>{sv(Ce,he,Ct,lt.cell);const Wt=am(Xe,Ce),kn=Ob(Xe,Wt,lt),Vn=am(Ce,kn),or=Ob(Ce,Vn,lt);return j(or,(Mr,no)=>cf(Mr,he,kn[no].cells))},Ch=(he,Ce,Xe,lt,Ct)=>{xp(Ce,he,Ct,lt.cell);const Wt=ii(Ce),kn=wb(Ce,Xe),Vn={...kn,colDelta:kn.colDelta-Wt.length},or=Ob(Ce,Vn,lt),{cols:Mr,rows:no}=zl(or),ti=ii(or),ki=wb(Xe,Ce),xi={...ki,colDelta:ki.colDelta+ti.length},fi=GO(Xe,lt,ti),Vi=Ob(fi,xi,lt);return[...Mr,...no.slice(0,he),...Vi,...no.slice(he,no.length)]},Sb=(he,Ce,Xe,lt)=>xc(he,Ct=>lt(Ct,Xe),Ce),Sl=(he,Ce,Xe,lt,Ct)=>{const{rows:Wt,cols:kn}=zl(he),Vn=Wt.slice(0,Ce),or=Wt.slice(Ce),Mr=Sb(Wt[Xe],(no,ti)=>Ce>0&&Ce{if(Xe==="colgroup"||!lt){const Vn=Ri(he,Ct);return Gt(kn(Vn.element,Wt),!0,!1)}else return Ri(he,Ce)},Yx=(he,Ce,Xe,lt,Ct)=>j(he,Wt=>{const kn=Ce>0&&Cepe(he,Xe=>{const lt=Xe.cells,Ct=K(Ce,(Wt,kn)=>kn>=0&&kn0?[on(Xe.element,Ct,Xe.section,Xe.isNew)]:[]}),Xx=(he,Ce,Xe)=>{const{rows:lt,cols:Ct}=zl(he);return[...Ct,...lt.slice(0,Ce),...lt.slice(Xe+1)]},lv=(he,Ce,Xe,lt)=>Gc(he[Ce],Xe)!==void 0&&Ce>0&<(Gc(he[Ce-1],Xe),Gc(he[Ce],Xe)),fc=(he,Ce,Xe)=>Ce>0&&Xe(Gc(he,Ce-1),Gc(he,Ce)),cv=(he,Ce,Xe,lt)=>lv(he,Ce,Xe,lt)||fc(he[Ce],Xe,lt),kb=(he,Ce)=>se(Ce,_)&&ev(he.cells)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Wt]),dc=(he,Ce)=>se(Ce,_)&&ev(he)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Ct]),uv=(he,Ce,Xe,lt)=>{const Ct=kn=>kn==="row"?ec(Ce):gu(Ce),Wt=kn=>Ct(kn)?`${kn}group`:kn;return he?J1(Ce)?Wt(Xe):null:lt&&J1(Ce)?Wt(Xe==="row"?"col":"row"):null},Ah=(he,Ce)=>(Xe,lt,Ct)=>A.some(uv(he,Xe.element,"col",Ce[Ct])),Fp=(he,Ce)=>(Xe,lt)=>A.some(uv(he,Xe.element,"row",Ce[lt])),tw=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Li=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const Vn=or=>$(Ce,Mr=>Xe(or.element,Mr.element));return j(he,(or,Mr)=>Mu(or,(no,ti)=>{if(Vn(no)){const ki=kn(no,Mr,ti)?Ct(no,Xe,lt):no;return Wt(ki,Mr,ti).each(xi=>{Vt(ki.element,{scope:A.from(xi)})}),ki}else return no}))},nw=(he,Ce,Xe)=>pe(he,(lt,Ct)=>cv(he,Ct,Ce,Xe)?[]:[Ri(lt,Ce)]),F4=(he,Ce,Xe)=>{const lt=he[Ce];return pe(lt.cells,(Ct,Wt)=>cv(he,Ce,Wt,Xe)?[]:[Ct])},KO=(he,Ce,Xe,lt,Ct)=>{const Wt=zl(he).rows,kn=pe(Ce,no=>nw(Wt,no,lt)),Vn=j(Wt,no=>ev(no.cells)),or=dc(kn,Vn),Mr=Fp(Xe,Vn);return Li(he,kn,lt,Ct,tw,Mr,or)},rw=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const{cols:Vn,rows:or}=zl(he),Mr=or[Ce[0]],no=pe(Ce,Xo=>F4(or,Xo,Ct)),ti=j(Mr.cells,(Xo,oi)=>ev(nw(or,oi,Ct))),ki=[...or];U(Ce,Xo=>{ki[Xo]=kn.transformRow(or[Xo],Xe)});const xi=[...Vn,...ki],fi=kb(Mr,ti),Vi=Ah(lt,ti);return Li(xi,no,Ct,Wt,kn.transformCell,Vi,fi)},JO=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=j(Ce,kn=>Ri(Ct[kn.row],kn.column));return Li(he,Wt,Xe,lt,tw,A.none,P)},sm={generate:he=>{if(!u(he))throw new Error("cases must be an array");if(he.length===0)throw new Error("there must be at least one case");const Ce=[],Xe={};return U(he,(lt,Ct)=>{const Wt=Te(lt);if(Wt.length!==1)throw new Error("one and only one name per case");const kn=Wt[0],Vn=lt[kn];if(Xe[kn]!==void 0)throw new Error("duplicate key detected:"+kn);if(kn==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Vn))throw new Error("case arguments must be an array");Ce.push(kn),Xe[kn]=(...or)=>{const Mr=or.length;if(Mr!==Vn.length)throw new Error("Wrong number of arguments to case "+kn+". Expected "+Vn.length+" ("+Vn+"), got "+Mr);return{fold:(...ti)=>{if(ti.length!==he.length)throw new Error("Wrong number of arguments to fold. Expected "+he.length+", got "+ti.length);return ti[Ct].apply(null,or)},match:ti=>{const ki=Te(ti);if(Ce.length!==ki.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` +`))}};return r=gU(r,[//g]),Ke(B.parse(r)),H},_R=r=>(r=gU(r,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(B,H,oe)=>!H&&!oe?" ":Pc],/
    /g,/
    $/i]),r),wR=r=>{let g=0;return()=>r+g++},Dte=r=>{const g=r.toLowerCase(),B={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return To.hasOwn(B,g)?"image/"+B[g]:"image/"+g},Bte=(r,g)=>{const B=fS({sanitize:Hf(r),sandbox_iframes:s3(r),sandbox_iframes_exclusions:h2(r),convert_unsafe_embeds:Fb(r)},r.schema);B.addNodeFilter("meta",oe=>{To.each(oe,be=>{be.remove()})});const H=B.parse(g,{forced_root_block:!1,isRootContent:!0});return rx({validate:!0},r.schema).serialize(H)},vU=(r,g)=>({content:r,cancelled:g}),yU=(r,g,B)=>{const H=r.dom.create("div",{style:"display:none"},g),oe=qC(r,H,B);return vU(oe.node.innerHTML,oe.isDefaultPrevented())},zte=(r,g,B)=>{const H=aE(r,g,B),oe=Bte(r,H.content);return r.hasEventListeners("PastePostProcess")&&!H.isDefaultPrevented()?yU(r,oe,B):vU(oe,H.isDefaultPrevented())},Nte=(r,g,B)=>zte(r,g,B),o_=(r,g)=>(r.insertContent(g,{merge:dw(r),paste:!0}),!0),OR=r=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(r),RS=(r,g)=>OR(g)&&de(Ty(r),B=>$r(g.toLowerCase(),`.${B.toLowerCase()}`)),tT=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.insertContent('')}),!0),Fte=(r,g,B)=>(r.undoManager.extra(()=>{B(r,g)},()=>{r.execCommand("mceInsertLink",!1,g)}),!0),$te=(r,g,B)=>!r.selection.isCollapsed()&&OR(g)?Fte(r,g,B):!1,LS=(r,g,B)=>RS(r,g)?tT(r,g,B):!1,Vte=(r,g)=>{To.each([$te,LS,o_],B=>!B(r,g,o_))},SR=(r,g,B)=>{B||!o3(r)?o_(r,g):Vte(r,g)},Ute=wR("mceclip"),bU=r=>{const g=cU();return uU(g,r),yR(g),g},kR=(r,g,B,H,oe)=>{const be=Nte(r,g,B);if(!be.cancelled){const Le=be.content,Ke=()=>SR(r,Le,H);oe?D0(r,"insertFromPaste",{dataTransfer:bU(Le)}).isDefaultPrevented()||(Ke(),cO(r,"insertFromPaste")):Ke()}},IS=(r,g,B,H)=>{const oe=B||dU(g);kR(r,Ate(g),oe,!1,H)},KA=(r,g,B)=>{const H=r.dom.encode(g).replace(/\r\n/g,` +`),oe=Ut(H,hw(r)),be=Pte(oe,tu(r),qd(r));kR(r,be,!1,!0,B)},xU=r=>{const g={};if(r&&r.types)for(let B=0;Bg in r&&r[g].length>0,TR=r=>i_(r,"text/html")||i_(r,"text/plain"),jte=(r,g)=>{const B=g.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return P(B)?r.dom.encode(B[1]):void 0},_U=(r,g,B,H)=>{const oe=Ute(),be=dl(r)&&P(B.name),Le=be?jte(r,B.name):oe,Ke=be?B.name:void 0,ut=g.create(oe,B,H,Le,Ke);return g.add(ut),ut},CR=(r,g)=>{V2(g.uri).each(({data:B,type:H,base64Encoded:oe})=>{const be=oe?B:btoa(B),Le=g.file,Ke=r.editorUpload.blobCache,ut=Ke.getByData(be,H),At=ut??_U(r,Ke,Le,be);IS(r,``,!1,!0)})},wU=r=>r.type==="paste",Qte=r=>Promise.all(ye(r,g=>lx(g).then(B=>({file:g,uri:B})))),Hte=r=>{const g=Ty(r);return B=>Br(B.type,"image/")&&de(g,H=>Dte(H)===B.type)},Zte=(r,g)=>{const B=g.items?$e(Me(g.items),oe=>oe.kind==="file"?[oe.getAsFile()]:[]):[],H=g.files?Me(g.files):[];return Te(B.length>0?B:H,Hte(r))},AR=(r,g,B)=>{const H=wU(g)?g.clipboardData:g.dataTransfer;if(xv(r)&&H){const oe=Zte(r,H);if(oe.length>0)return g.preventDefault(),Qte(oe).then(be=>{B&&r.selection.setRng(B),ve(be,Le=>{CR(r,Le)})}),!0}return!1},MR=r=>{var g,B;return Nr.os.isAndroid()&&((B=(g=r.clipboardData)===null||g===void 0?void 0:g.items)===null||B===void 0?void 0:B.length)===0},qte=r=>Jo.metaKeyPressed(r)&&r.keyCode===86||r.shiftKey&&r.keyCode===45,JA=(r,g,B,H,oe)=>{let be=_R(B);const Le=i_(g,XA())||dU(B),Ke=!Le&&Mte(be),ut=OR(be);(GA(be)||!be.length||Ke&&!ut)&&(H=!0),(H||ut)&&(i_(g,"text/plain")&&Ke?be=g["text/plain"]:be=Ite(be)),!GA(be)&&(H?KA(r,be,oe):IS(r,be,Le,oe))},OU=(r,g,B)=>{let H;const oe=()=>g.getLastRng()||r.selection.getRng();r.on("keydown",be=>{qte(be)&&!be.isDefaultPrevented()&&(H=be.shiftKey&&be.keyCode===86)}),r.on("paste",be=>{if(be.isDefaultPrevented()||MR(be))return;const Le=B.get()==="text"||H;H=!1;const Ke=xU(be.clipboardData);!TR(Ke)&&AR(r,be,oe())||(i_(Ke,"text/html")?(be.preventDefault(),JA(r,Ke,Ke["text/html"],Le,!0)):i_(Ke,"text/plain")&&i_(Ke,"text/uri-list")?(be.preventDefault(),JA(r,Ke,Ke["text/plain"],Le,!0)):(g.create(),Ig.setEditorTimeout(r,()=>{const ut=g.getHtml();g.remove(),JA(r,Ke,ut,Le,!1)},0)))})},Wte=r=>{const g=oe=>Br(oe,"webkit-fake-url"),B=oe=>Br(oe,"data:"),H=oe=>{var be;return((be=oe.data)===null||be===void 0?void 0:be.paste)===!0};r.parser.addNodeFilter("img",(oe,be,Le)=>{if(!xv(r)&&H(Le))for(const Ke of oe){const ut=Ke.attr("src");v(ut)&&!Ke.attr("data-mce-object")&&ut!==Nr.transparentSrc&&(g(ut)||!v1(r)&&B(ut))&&Ke.remove()}})},SU=(r,g,B)=>{OU(r,g,B),Wte(r)},Yte=(r,g)=>{g.get()==="text"?(g.set("html"),j3(r,!1)):(g.set("text"),j3(r,!0)),r.focus()},Xte=(r,g)=>{r.addCommand("mceTogglePlainTextPaste",()=>{Yte(r,g)}),r.addCommand("mceInsertClipboardContent",(B,H)=>{H.html&&IS(r,H.html,H.internal,!1),H.text&&KA(r,H.text,!1)})},Gte=(r,g,B)=>{if(r)try{return r.clearData(),r.setData("text/html",g),r.setData("text/plain",B),r.setData(XA(),g),!0}catch{return!1}else return!1},kU=(r,g,B,H)=>{Gte(r.clipboardData,g.html,g.text)?(r.preventDefault(),H()):B(g.html,H)},TU=r=>(g,B)=>{const{dom:H,selection:oe}=r,be=H.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Le=H.create("div",{contenteditable:"true"},g);H.setStyles(be,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),be.appendChild(Le),H.add(r.getBody(),be);const Ke=oe.getRng();Le.focus();const ut=H.createRng();ut.selectNodeContents(Le),oe.setRng(ut),Ig.setEditorTimeout(r,()=>{oe.setRng(Ke),H.remove(be),B()},0)},nT=r=>({html:Cte(r.selection.getContent({contextual:!0})),text:r.selection.getContent({format:"text"})}),Kte=r=>!!r.dom.getParent(r.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",r.getBody()),ER=r=>!r.selection.isCollapsed()||Kte(r),Jte=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&r.selection.isEditable()&&kU(g,nT(r),TU(r),()=>{if(Nr.browser.isChromium()||Nr.browser.isFirefox()){const B=r.selection.getRng();Ig.setEditorTimeout(r,()=>{r.selection.setRng(B),r.execCommand("Delete")},0)}else r.execCommand("Delete")})},ene=r=>g=>{!g.isDefaultPrevented()&&ER(r)&&kU(g,nT(r),TU(r),k)},CU=r=>{r.on("cut",Jte(r)),r.on("copy",ene(r))},PR=(r,g)=>{var B,H;return oi.getCaretRangeFromPoint((B=g.clientX)!==null&&B!==void 0?B:0,(H=g.clientY)!==null&&H!==void 0?H:0,r.getDoc())},tne=r=>{const g=r["text/plain"];return g?g.indexOf("file://")===0:!1},AU=(r,g)=>{r.focus(),g&&r.selection.setRng(g)},nne=r=>de(r.files,g=>/^image\//.test(g.type)),rne=(r,g,B,H)=>{const oe=r.getParent(B,Le=>lh(g,Le));if(!x(r.getParent(B,"summary")))return!0;if(oe&&Ot(H,"text/html")){const Le=new DOMParser().parseFromString(H["text/html"],"text/html").body;return!x(Le.querySelector(oe.nodeName.toLowerCase()))}else return!1},one=r=>{r.on("input",g=>{const B=H=>x(H.querySelector("summary"));if(g.inputType==="deleteByDrag"){const H=Te(r.dom.select("details"),B);ve(H,oe=>{gn(oe.firstChild)&&oe.firstChild.remove();const be=r.dom.create("summary");be.appendChild(sv().dom),oe.prepend(be)})}})},MU=(r,g)=>{r3(r)&&r.on("dragend dragover draggesture dragdrop drop drag",B=>{B.preventDefault(),B.stopPropagation()}),xv(r)||r.on("drop",B=>{const H=B.dataTransfer;H&&nne(H)&&B.preventDefault()}),r.on("drop",B=>{if(B.isDefaultPrevented())return;const H=PR(r,B);if(T(H))return;const oe=xU(B.dataTransfer),be=i_(oe,XA());if((!TR(oe)||tne(oe))&&AR(r,B,H))return;const Le=oe[XA()],Ke=Le||oe["text/html"]||oe["text/plain"],ut=rne(r.dom,r.schema,H.startContainer,oe),At=g.get();At&&!ut||Ke&&(B.preventDefault(),Ig.setEditorTimeout(r,()=>{r.undoManager.transact(()=>{(Le||At&&ut)&&r.execCommand("Delete"),AU(r,H);const nn=_R(Ke);oe["text/html"]?IS(r,nn,be,!0):KA(r,nn,!0)})}))}),r.on("dragstart",B=>{g.set(!0)}),r.on("dragover dragend",B=>{xv(r)&&!g.get()&&(B.preventDefault(),AU(r,PR(r,B))),B.type==="dragend"&&g.set(!1)}),one(r)},ine=r=>{const g=oe=>be=>{oe(r,be)},B=g1(r);A(B)&&r.on("PastePreProcess",g(B));const H=_v(r);A(H)&&r.on("PastePostProcess",g(H))},ane=(r,g)=>{r.on("PastePreProcess",B=>{B.content=g(r,B.content,B.internal)})},sne=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,EU=r=>To.trim(r).replace(sne,od).toLowerCase(),lne=(r,g,B)=>{const H=ky(r);if(B||H==="all"||!Ov(r))return g;const oe=H?H.split(/[, ]/):[];if(oe&&H!=="none"){const be=r.dom,Le=r.selection.getNode();g=g.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(Ke,ut,At,nn)=>{const un=be.parseStyle(be.decode(At)),yn={};for(let rr=0;rr]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return g=g.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(be,Le,Ke,ut)=>Le+' style="'+Ke+'"'+ut),g},cne=r=>{(Nr.browser.isChromium()||Nr.browser.isSafari())&&ane(r,lne)},une=r=>{const g=Ar(!1),B=Ar(Bb(r)?"text":"html"),H=mU(r);cne(r),Xte(r,B),ine(r),r.addQueryStateHandler("mceTogglePlainTextPaste",()=>B.get()==="text"),r.on("PreInit",()=>{CU(r),MU(r,g),SU(r,H,B)})},fne=r=>{r.on("click",g=>{r.dom.getParent(g.target,"details")&&g.preventDefault()})},PU=r=>{r.parser.addNodeFilter("details",g=>{const B=a3(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})}),r.serializer.addNodeFilter("details",g=>{const B=d2(r);ve(g,H=>{B==="expanded"?H.attr("open","open"):B==="collapsed"&&H.attr("open",null)})})},RU=r=>{fne(r),PU(r)},dne=gn,LU=Mt,hne=r=>In(r.dom),pne=r=>pn(r.dom),IU=r=>g=>va(_r.fromDom(r),g),mne=(r,g,B)=>cl(_r.fromDom(r),H=>pne(H)||B.isBlock(ma(H)),IU(g)).getOr(_r.fromDom(g)).dom,DU=(r,g)=>cl(_r.fromDom(r),hne,IU(g)),rT=(r,g,B)=>{const H=new Xl(r,g),oe=B?H.next.bind(H):H.prev.bind(H);let be=r;for(let Le=B?r:oe();Le&&!dne(Le);Le=oe())Hh(Le)&&(be=Le);return be},BU=(r,g,B)=>{const oe=vo.fromRangeStart(r).getNode(),be=mne(oe,g,B),Le=rT(oe,be,!1),Ke=rT(oe,be,!0),ut=document.createRange();return DU(Le,be).fold(()=>{LU(Le)?ut.setStart(Le,0):ut.setStartBefore(Le)},At=>ut.setStartBefore(At.dom)),DU(Ke,be).fold(()=>{LU(Ke)?ut.setEnd(Ke,Ke.data.length):ut.setEndAfter(Ke)},At=>ut.setEndAfter(At.dom)),ut},gne=r=>{const g=BU(r.selection.getRng(),r.getBody(),r.schema);r.selection.setRng(Rc(g))},zU=r=>{r.on("mousedown",g=>{g.detail>=3&&(g.preventDefault(),gne(r))})};var fO;(function(r){r.Before="before",r.After="after"})(fO||(fO={}));const RR=(r,g)=>Math.abs(r.left-g),vne=(r,g)=>Math.abs(r.right-g),NU=(r,g)=>r>=g.top&&r<=g.bottom,yne=(r,g)=>r.topg.top,FU=(r,g)=>{const B=uv(r,g)/Math.min(r.height,g.height);return yne(r,g)&&B>.5},bne=(r,g)=>{const B=Te(r,H=>NU(g,H));return kb(B).fold(()=>[[],r],H=>{const{pass:oe,fail:be}=we(r,Le=>FU(Le,H));return[oe,be]})},$U=(r,g)=>({node:r.node,position:RR(r,g)g>r.left&&g{const oe=un=>Hh(un.node)?Y.some(un):ne(un.node)?LR(Me(un.node.childNodes),g,B,!1):Y.none(),be=(un,yn,Qn)=>oe(yn).filter(rr=>Math.abs(Qn(un,g,B)-Qn(rr,g,B))<2&&Mt(rr.node)),Le=(un,yn)=>{const Qn=Ue(un,(rr,Wn)=>yn(rr,g,B)-yn(Wn,g,B));return Fe(Qn,oe).map(rr=>H&&!Mt(rr.node)&&Qn.length>1?be(rr,Qn[1],yn).getOr(rr):rr)},[Ke,ut]=bne(I0(r),B),{pass:At,fail:nn}=we(ut,un=>un.topLe(nn,dc)).orThunk(()=>Le(At,dc))},_ne=(r,g,B,H)=>{const oe=(be,Le)=>{const Ke=At=>ne(At)&&At.classList.contains("mce-drag-container"),ut=Te(be.dom.childNodes,X(Ke));return Le.fold(()=>LR(ut,B,H,!0),At=>{const nn=Te(ut,un=>un!==At.dom);return LR(nn,B,H,!0)}).orThunk(()=>(va(be,r)?Y.none():Nh(be)).bind(nn=>oe(nn,Y.some(be))))};return oe(g,Y.none())},oT=(r,g,B)=>{const H=_r.fromDom(r),oe=$f(H),Le=_r.fromPoint(oe,g,B).filter(Ke=>El(H,Ke)).getOr(H);return _ne(H,Le,g,B)},VU=(r,g,B)=>oT(r,g,B).filter(H=>b1(H.node)).map(H=>$U(H,g)),UU=r=>{var g,B;const H=r.getBoundingClientRect(),oe=r.ownerDocument,be=oe.documentElement,Le=oe.defaultView;return{top:H.top+((g=Le==null?void 0:Le.scrollY)!==null&&g!==void 0?g:0)-be.clientTop,left:H.left+((B=Le==null?void 0:Le.scrollX)!==null&&B!==void 0?B:0)-be.clientLeft}},jU=r=>r.inline?UU(r.getBody()):{left:0,top:0},wne=r=>{const g=r.getBody();return r.inline?{left:g.scrollLeft,top:g.scrollTop}:{left:0,top:0}},One=r=>{const g=r.getBody(),B=r.getDoc().documentElement,H={left:g.scrollLeft,top:g.scrollTop},oe={left:g.scrollLeft||B.scrollLeft,top:g.scrollTop||B.scrollTop};return r.inline?H:oe},Sne=(r,g)=>{if(g.target.ownerDocument!==r.getDoc()){const B=UU(r.getContentAreaContainer()),H=One(r);return{left:g.pageX-B.left+H.left,top:g.pageY-B.top+H.top}}return{left:g.pageX,top:g.pageY}},kne=(r,g,B)=>({pageX:B.left-r.left+g.left,pageY:B.top-r.top+g.top}),Tne=(r,g)=>kne(jU(r),wne(r),Sne(r,g)),iT=r=>({target:r,srcElement:r}),QU=(r,g,B,H)=>({...g,dataTransfer:H,type:r,...iT(B)}),HU=(r,g,B)=>{const H=te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:r,composedPath:H,initEvent:H,preventDefault:k,stopImmediatePropagation:k,stopPropagation:k,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:H,initMouseEvent:H,getModifierState:H,dataTransfer:B,...iT(g)}},Cne=(r,g)=>{const B=YA(r);return g==="dragstart"?(nU(B),oU(B)):g==="drop"?(rU(B),yR(B)):(bte(B),iU(B)),B},Ane=(r,g,B,H)=>{const oe=Cne(B,r);return M(H)?HU(r,g,oe):QU(r,H,g,oe)},e8=32,tde=100,t8=8,aT=16,n8=In,r8=F4(n8,pn),Mne=(r,g,B)=>n8(B)&&B!==g&&r.isEditable(B.parentElement),Ene=(r,g,B)=>T(g)||g===B||r.dom.isChildOf(g,B)?!1:r.dom.isEditable(g),ZU=(r,g,B,H)=>{const oe=r.dom,be=g.cloneNode(!0);oe.setStyles(be,{width:B,height:H}),oe.setAttrib(be,"data-mce-selected",null);const Le=oe.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return oe.setStyles(Le,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:B,height:H}),oe.setStyles(be,{margin:0,boxSizing:"border-box"}),Le.appendChild(be),Le},Pne=(r,g)=>{r.parentNode!==g&&g.appendChild(r)},DS=(r,g)=>B=>()=>{const H=r==="left"?B.scrollX:B.scrollY;B.scroll({[r]:H+g,behavior:"smooth"})},IR=DS("left",-e8),qU=DS("left",e8),WU=DS("top",-e8),DR=DS("top",e8),Rne=(r,g,B,H,oe,be,Le,Ke,ut,At,nn,un)=>{let yn=0,Qn=0;r.style.left=g.pageX+"px",r.style.top=g.pageY+"px",g.pageX+B>oe&&(yn=g.pageX+B-oe),g.pageY+H>be&&(Qn=g.pageY+H-be),r.style.width=B-yn+"px",r.style.height=H-Qn+"px";const rr=ut.clientHeight,Wn=ut.clientWidth,ur=Le+ut.getBoundingClientRect().top,Tr=Ke+ut.getBoundingClientRect().left;nn.on(Wr=>{Wr.intervalId.clear(),Wr.dragging&&un&&(Le+t8>=rr?Wr.intervalId.set(DR(At)):Le-t8<=0?Wr.intervalId.set(WU(At)):Ke+t8>=Wn?Wr.intervalId.set(qU(At)):Ke-t8<=0?Wr.intervalId.set(IR(At)):ur+aT>=window.innerHeight?Wr.intervalId.set(DR(window)):ur-aT<=0?Wr.intervalId.set(WU(window)):Tr+aT>=window.innerWidth?Wr.intervalId.set(qU(window)):Tr-aT<=0&&Wr.intervalId.set(IR(window)))})},Lne=r=>{r&&r.parentNode&&r.parentNode.removeChild(r)},Ine=(r,g)=>{const B=r.getParent(g.parentNode,r.isBlock);Lne(g),B&&B!==r.getRoot()&&r.isEmpty(B)&&xp(_r.fromDom(B))},Dne=r=>r.button===0,Bne=(r,g)=>({pageX:g.pageX-r.relX,pageY:g.pageY+5}),YU=(r,g)=>B=>{if(Dne(B)){const H=De(g.dom.getParents(B.target),r8).getOr(null);if(P(H)&&Mne(g.dom,g.getBody(),H)){const oe=g.dom.getPos(H),be=g.getBody(),Le=g.getDoc().documentElement;r.set({element:H,dataTransfer:cU(),dragging:!1,screenX:B.screenX,screenY:B.screenY,maxX:(g.inline?be.scrollWidth:Le.offsetWidth)-2,maxY:(g.inline?be.scrollHeight:Le.offsetHeight)-2,relX:B.pageX-oe.x,relY:B.pageY-oe.y,width:H.offsetWidth,height:H.offsetHeight,ghost:ZU(g,H,H.offsetWidth,H.offsetHeight),intervalId:$s(tde)})}}},zne=(r,g,B)=>{r._selectionOverrides.hideFakeCaret(),VU(r.getBody(),g,B).fold(()=>r.selection.placeCaretAt(g,B),H=>{const oe=r._selectionOverrides.showCaret(1,H.node,H.position===fO.Before,!1);oe?r.selection.setRng(oe):r.selection.placeCaretAt(g,B)})},BS=(r,g,B,H,oe)=>{g==="dragstart"&&uU(H,r.dom.getOuterHTML(B));const be=Ane(g,B,H,oe);return r.dispatch(g,be)},Nne=(r,g)=>{const B=dy((oe,be)=>zne(g,oe,be),0);g.on("remove",B.cancel);const H=r;return oe=>r.on(be=>{const Le=Math.max(Math.abs(oe.screenX-be.screenX),Math.abs(oe.screenY-be.screenY));if(!be.dragging&&Le>10){const Ke=BS(g,"dragstart",be.element,be.dataTransfer,oe);if(P(Ke.dataTransfer)&&(be.dataTransfer=Ke.dataTransfer),Ke.isDefaultPrevented())return;be.dragging=!0,g.focus()}if(be.dragging){const Ke=oe.currentTarget===g.getDoc().documentElement,ut=Bne(be,Tne(g,oe));Pne(be.ghost,g.getBody()),Rne(be.ghost,ut,be.width,be.height,be.maxX,be.maxY,oe.clientY,oe.clientX,g.getContentAreaContainer(),g.getWin(),H,Ke),B.throttle(oe.clientX,oe.clientY)}})},Fne=r=>{const g=r.getSel();if(P(g)){const H=g.getRangeAt(0).startContainer;return Mt(H)?H.parentNode:H}else return null},$ne=(r,g)=>B=>{r.on(H=>{var oe;if(H.intervalId.clear(),H.dragging){if(Ene(g,Fne(g.selection),H.element)){const be=(oe=g.getDoc().elementFromPoint(B.clientX,B.clientY))!==null&&oe!==void 0?oe:g.getBody();BS(g,"drop",be,H.dataTransfer,B).isDefaultPrevented()||g.undoManager.transact(()=>{Ine(g.dom,H.element),Tte(H.dataTransfer).each(Ke=>g.insertContent(Ke)),g._selectionOverrides.hideFakeCaret()})}BS(g,"dragend",g.getBody(),H.dataTransfer,B)}}),BR(r)},XU=(r,g,B)=>{r.on(H=>{H.intervalId.clear(),H.dragging&&B.fold(()=>BS(g,"dragend",H.element,H.dataTransfer),oe=>BS(g,"dragend",H.element,H.dataTransfer,oe))}),BR(r)},Vne=(r,g)=>B=>XU(r,g,Y.some(B)),BR=r=>{r.on(g=>{g.intervalId.clear(),Lne(g.ghost)}),r.clear()},nde=r=>{const g=Ts(),B=cc.DOM,H=document,oe=YU(g,r),be=Nne(g,r),Le=$ne(g,r),Ke=Vne(g,r);r.on("mousedown",oe),r.on("mousemove",be),r.on("mouseup",Le),B.bind(H,"mousemove",be),B.bind(H,"mouseup",Ke),r.on("remove",()=>{B.unbind(H,"mousemove",be),B.unbind(H,"mouseup",Ke)}),r.on("keydown",ut=>{ut.keyCode===Jo.ESC&&XU(g,r,Y.none())})},Une=r=>{const g=oe=>{if(!oe.isDefaultPrevented()){const be=oe.dataTransfer;be&&(ce(be.types,"Files")||be.files.length>0)&&(oe.preventDefault(),oe.type==="drop"&&d5(r,"Dropped file type is not supported"))}},B=oe=>{i6(r,oe.target)&&g(oe)},H=()=>{const oe=cc.DOM,be=r.dom,Le=document,Ke=r.inline?r.getBody():r.getDoc(),ut=["drop","dragover"];ve(ut,At=>{oe.bind(Le,At,B),be.bind(Ke,At,g)}),r.on("remove",()=>{ve(ut,At=>{oe.unbind(Le,At,B),be.unbind(Ke,At,g)})})};r.on("init",()=>{Ig.setEditorTimeout(r,H,0)})},GU=r=>{nde(r),fw(r)&&Une(r)},jne=r=>{const g=dy(()=>{if(!r.removed&&r.getBody().contains(document.activeElement)){const B=r.selection.getRng();if(B.collapsed){const H=_S(r,B,!1);r.selection.setRng(H)}}},0);r.on("focus",()=>{g.throttle()}),r.on("blur",()=>{g.cancel()})},zR=r=>{r.on("init",()=>{r.on("focusin",g=>{const B=g.target;if(Gr(B)){const H=z2(r.getBody(),B),oe=In(H)?H:B;r.selection.getNode()!==oe&&xS(r,oe).each(be=>r.selection.setRng(be))}})})},sT=In,KU=(r,g)=>z2(r.getBody(),g),Qne=r=>{const g=r.selection,B=r.dom,H=r.getBody(),oe=AD(r,H,B.isBlock,()=>nx(r)),be="sel-"+B.uniqueId(),Le="data-mce-selected";let Ke;const ut=Mi=>P(Mi)&&B.hasClass(Mi,"mce-offscreen-selection"),At=Mi=>Mi!==H&&(sT(Mi)||Gr(Mi))&&B.isChildOf(Mi,H)&&B.isEditable(Mi.parentNode),nn=Mi=>{Mi&&g.setRng(Mi)},un=(Mi,Co,yo,Vo=!0)=>r.dispatch("ShowCaret",{target:Co,direction:Mi,before:yo}).isDefaultPrevented()?null:(Vo&&g.scrollIntoView(Co,Mi===-1),oe.show(yo,Co)),yn=Mi=>{Mi.hasAttribute("data-mce-caret")&&(Ah(Mi),g.scrollIntoView(Mi))},Qn=()=>{r.on("click",Co=>{B.isEditable(Co.target)||(Co.preventDefault(),r.focus())}),r.on("blur NewBlock",lo),r.on("ResizeWindow FullscreenStateChanged",oe.reposition),r.on("tap",Co=>{const yo=Co.target,Vo=KU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):At(yo)&&xS(r,yo).each(Qr)},!0),r.on("mousedown",Co=>{const yo=Co.target;if(yo!==H&&yo.nodeName!=="HTML"&&!B.isChildOf(yo,H)||!dG(r,Co.clientX,Co.clientY))return;lo(),li();const Vo=KU(r,yo);sT(Vo)?(Co.preventDefault(),xS(r,Vo).each(Qr)):VU(H,Co.clientX,Co.clientY).each(Fi=>{Co.preventDefault();const la=un(1,Fi.node,Fi.position===fO.Before,!1);nn(la),V(Vo)?Vo.focus():r.getBody().focus()})}),r.on("keypress",Co=>{Jo.modifierPressed(Co)||sT(g.getNode())&&Co.preventDefault()}),r.on("GetSelectionRange",Co=>{let yo=Co.range;if(Ke){if(!Ke.parentNode){Ke=null;return}yo=yo.cloneRange(),yo.selectNode(Ke),Co.range=yo}}),r.on("SetSelectionRange",Co=>{Co.range=ur(Co.range);const yo=Qr(Co.range,Co.forward);yo&&(Co.range=yo)});const Mi=Co=>ne(Co)&&Co.id==="mcepastebin";r.on("AfterSetSelectionRange",Co=>{const yo=Co.range,Vo=yo.startContainer.parentElement;!Wn(yo)&&!Mi(Vo)&&li(),ut(Vo)||lo()}),GU(r),jne(r),zR(r)},rr=Mi=>op(Mi)||p0(Mi)||Ss(Mi),Wn=Mi=>rr(Mi.startContainer)||rr(Mi.endContainer),ur=Mi=>{const Co=r.schema.getVoidElements(),yo=B.createRng(),Vo=Mi.startContainer,Fi=Mi.startOffset,la=Mi.endContainer,bs=Mi.endOffset;return Ot(Co,Vo.nodeName.toLowerCase())?Fi===0?yo.setStartBefore(Vo):yo.setStartAfter(Vo):yo.setStart(Vo,Fi),Ot(Co,la.nodeName.toLowerCase())?bs===0?yo.setEndBefore(la):yo.setEndAfter(la):yo.setEnd(la,bs),yo},Tr=(Mi,Co)=>{const yo=_r.fromDom(r.getBody()),Vo=r.getDoc(),Fi=wi(yo,"#"+be).getOrThunk(()=>{const Ms=_r.fromHtml('
    ',Vo);return ll(Ms,"id",be),ii(yo,Ms),Ms}),la=B.createRng();uf(Fi),Yl(Fi,[_r.fromText(Pc,Vo),_r.fromDom(Co),_r.fromText(Pc,Vo)]),la.setStart(Fi.dom.firstChild,1),la.setEnd(Fi.dom.lastChild,0),aa(Fi,{top:B.getPos(Mi,r.getBody()).y+"px"}),Z3(Fi);const bs=g.getSel();return bs&&(bs.removeAllRanges(),bs.addRange(la)),la},Wr=Mi=>{const Co=Mi.cloneNode(!0),yo=r.dispatch("ObjectSelected",{target:Mi,targetClone:Co});if(yo.isDefaultPrevented())return null;const Vo=Tr(Mi,yo.targetClone),Fi=_r.fromDom(Mi);return ve(Pl(_r.fromDom(r.getBody()),`*[${Le}]`),la=>{va(Fi,la)||tc(la,Le)}),B.getAttrib(Mi,Le)||Mi.setAttribute(Le,"1"),Ke=Mi,li(),Vo},Qr=(Mi,Co)=>{if(!Mi)return null;if(Mi.collapsed){if(!Wn(Mi)){const la=Co?1:-1,bs=xw(la,H,Mi),Ms=bs.getNode(!Co);if(P(Ms)){if(b1(Ms))return un(la,Ms,Co?!bs.isAtEnd():!1,!1);if(_p(Ms)&&In(Ms.nextSibling)){const Vl=B.createRng();return Vl.setStart(Ms,0),Vl.setEnd(Ms,0),Vl}}const wl=bs.getNode(Co);if(P(wl)){if(b1(wl))return un(la,wl,Co?!1:!bs.isAtEnd(),!1);if(_p(wl)&&In(wl.previousSibling)){const Vl=B.createRng();return Vl.setStart(wl,1),Vl.setEnd(wl,1),Vl}}}return null}let yo=Mi.startContainer,Vo=Mi.startOffset;const Fi=Mi.endOffset;if(Mt(yo)&&Vo===0&&sT(yo.parentNode)&&(yo=yo.parentNode,Vo=B.nodeIndex(yo),yo=yo.parentNode),!ne(yo))return null;if(Fi===Vo+1&&yo===Mi.endContainer){const la=yo.childNodes[Vo];if(At(la))return Wr(la)}return null},lo=()=>{Ke&&Ke.removeAttribute(Le),wi(_r.fromDom(r.getBody()),"#"+be).each(hs),Ke=null},Zo=()=>{oe.destroy(),Ke=null},li=()=>{oe.hide()};return zy(r)||Qn(),{showCaret:un,showBlockCaretContainer:yn,hideFakeCaret:li,destroy:Zo}},JU=(r,g)=>{let B=g;for(let H=r.previousSibling;Mt(H);H=H.previousSibling)B+=H.data.length;return B},lT=(r,g,B,H,oe)=>{if(Mt(B)&&(H<0||H>B.data.length))return[];const be=oe&&Mt(B)?[JU(B,H)]:[H];let Le=B;for(;Le!==g&&Le.parentNode;)be.push(r.nodeIndex(Le,oe)),Le=Le.parentNode;return Le===g?be.reverse():[]},o8=(r,g,B,H,oe,be,Le=!1)=>{const Ke=lT(r,g,B,H,Le),ut=lT(r,g,oe,be,Le);return{start:Ke,end:ut}},NR=(r,g)=>{const B=g.slice(),H=B.pop();return L(H)?Ie(B,(be,Le)=>be.bind(Ke=>Y.from(Ke.childNodes[Le])),Y.some(r)).bind(be=>Mt(be)&&(H<0||H>be.data.length)?Y.none():Y.some({node:be,offset:H})):Y.none()},ej=(r,g)=>NR(r,g.start).bind(({node:B,offset:H})=>NR(r,g.end).map(({node:oe,offset:be})=>{const Le=document.createRange();return Le.setStart(B,H),Le.setEnd(oe,be),Le})),Hne=(r,g,B,H=!1)=>o8(r,g,B.startContainer,B.startOffset,B.endContainer,B.endOffset,H),dO=(r,g,B)=>{if(g&&r.isEmpty(g)&&!B(g)){const H=g.parentNode;r.remove(g,Mt(g.firstChild)&&lc(g.firstChild.data)),dO(r,H,B)}},i8=(r,g,B,H=!0)=>{const oe=g.startContainer.parentNode,be=g.endContainer.parentNode;g.deleteContents(),H&&!B(g.startContainer)&&(Mt(g.startContainer)&&g.startContainer.data.length===0&&r.remove(g.startContainer),Mt(g.endContainer)&&g.endContainer.data.length===0&&r.remove(g.endContainer),dO(r,oe,B),oe!==be&&dO(r,be,B))},a8=(r,g)=>Y.from(r.dom.getParent(g.startContainer,r.dom.isBlock)),FR=(r,g,B)=>{const H=r.dynamicPatternsLookup({text:B,block:g});return{...r,blockPatterns:ld(H).concat(r.blockPatterns),inlinePatterns:cd(H).concat(r.inlinePatterns)}},cT=(r,g,B,H)=>{const oe=r.createRng();return oe.setStart(g,0),oe.setEnd(B,H),oe.toString()},tj=(r,g)=>r.create("span",{"data-mce-type":"bookmark",id:g}),s8=(r,g)=>{const B=r.createRng();return B.setStartAfter(g.start),B.setEndBefore(g.end),B},nj=(r,g,B)=>{const H=ej(r.getRoot(),B).getOrDie("Unable to resolve path range"),oe=H.startContainer,be=H.endContainer,Le=H.endOffset===0?be:be.splitText(H.endOffset),Ke=H.startOffset===0?oe:oe.splitText(H.startOffset),ut=Ke.parentNode,At=Le.parentNode;return{prefix:g,end:At.insertBefore(tj(r,g+"-end"),Le),start:ut.insertBefore(tj(r,g+"-start"),Ke)}},rj=(r,g,B)=>{dO(r,r.get(g.prefix+"-end"),B),dO(r,r.get(g.prefix+"-start"),B)},$R=r=>r.start.length===0,Zne=r=>(g,B)=>{const oe=g.data.substring(0,B),be=oe.lastIndexOf(r.charAt(r.length-1)),Le=oe.lastIndexOf(r);return Le!==-1?Le+r.length:be!==-1?be+1:-1},VR=(r,g,B,H)=>{const oe=g.start;return z9(r,H.container,H.offset,Zne(oe),B).bind(Le=>{var Ke,ut;const At=(ut=(Ke=B.textContent)===null||Ke===void 0?void 0:Ke.indexOf(oe))!==null&&ut!==void 0?ut:-1;if(At!==-1&&Le.offset>=At+oe.length){const un=r.createRng();return un.setStart(Le.container,Le.offset-oe.length),un.setEnd(Le.container,Le.offset),Y.some(un)}else{const un=Le.offset-oe.length;return B9(Le.container,un,B).map(yn=>{const Qn=r.createRng();return Qn.setStart(yn.container,yn.offset),Qn.setEnd(Le.container,Le.offset),Qn}).filter(yn=>yn.toString()===oe).orThunk(()=>VR(r,g,B,L1(Le.container,0)))}})},oj=(r,g,B,H,oe,be=!1)=>{if(g.start.length===0&&!be){const Le=r.createRng();return Le.setStart(B,H),Le.setEnd(B,H),Y.some(Le)}return D9(B,H,oe).bind(Le=>VR(r,g,oe,Le).bind(ut=>{var At;if(be){if(ut.endContainer===Le.container&&ut.endOffset===Le.offset)return Y.none();if(Le.offset===0&&((At=ut.endContainer.textContent)===null||At===void 0?void 0:At.length)===ut.endOffset)return Y.none()}return Y.some(ut)}))},UR=(r,g,B,H)=>{const oe=r.dom,be=oe.getRoot(),Le=B.pattern,Ke=B.position.container,ut=B.position.offset;return B9(Ke,ut-B.pattern.end.length,g).bind(At=>{const nn=o8(oe,be,At.container,At.offset,Ke,ut,H);if($R(Le))return Y.some({matches:[{pattern:Le,startRng:nn,endRng:nn}],position:At});{const un=zS(r,B.remainingPatterns,At.container,At.offset,g,H),yn=un.getOr({matches:[],position:At}),Qn=yn.position;return oj(oe,Le,Qn.container,Qn.offset,g,un.isNone()).map(Wn=>{const ur=Hne(oe,be,Wn,H);return{matches:yn.matches.concat([{pattern:Le,startRng:ur,endRng:nn}]),position:L1(Wn.startContainer,Wn.startOffset)}})}})},zS=(r,g,B,H,oe,be)=>{const Le=r.dom;return D9(B,H,Le.getRoot()).bind(Ke=>{const ut=cT(Le,oe,B,H);for(let At=0;At0)return zS(r,g,B,H-1,oe,be);if(yn.isSome())return yn}return Y.none()})},ij=(r,g,B)=>{r.selection.setRng(B),g.type==="inline-format"?ve(g.format,H=>{r.formatter.apply(H)}):r.execCommand(g.cmd,!1,g.value)},jR=(r,g,B,H)=>{const oe=s8(r.dom,B);i8(r.dom,oe,H),ij(r,g,oe)},qne=(r,g,B,H,oe)=>{const be=r.dom,Le=s8(be,H),Ke=s8(be,B);i8(be,Ke,oe),i8(be,Le,oe);const ut={prefix:B.prefix,start:B.end,end:H.start},At=s8(be,ut);ij(r,g,At)},Wne=(r,g)=>{const B=yb("mce_textpattern"),H=Pe(g,(oe,be)=>{const Le=nj(r,B+`_end${oe.length}`,be.endRng);return oe.concat([{...be,endMarker:Le}])},[]);return Pe(H,(oe,be)=>{const Le=H.length-oe.length-1,Ke=$R(be.pattern)?be.endMarker:nj(r,B+`_start${Le}`,be.startRng);return oe.concat([{...be,startMarker:Ke}])},[])},aj=r=>Ue(r,(g,B)=>B.end.length-g.end.length),Yne=(r,g)=>{const B=Oe(r,H=>de(g,oe=>H.pattern.start===oe.pattern.start&&H.pattern.end===oe.pattern.end));return r.length===g.length?B?r:g:r.length>g.length?r:g},sj=(r,g,B,H,oe,be)=>{const Le=zS(r,oe.inlinePatterns,B,H,g,be).fold(()=>[],ut=>ut.matches),Ke=zS(r,aj(oe.inlinePatterns),B,H,g,be).fold(()=>[],ut=>ut.matches);return Yne(Le,Ke)},lj=(r,g)=>{if(g.length===0)return;const B=r.dom,H=r.selection.getBookmark(),oe=Wne(B,g);ve(oe,be=>{const Le=B.getParent(be.startMarker.start,B.isBlock),Ke=ut=>ut===Le;$R(be.pattern)?jR(r,be.pattern,be.endMarker,Ke):qne(r,be.pattern,be.startMarker,be.endMarker,Ke),rj(B,be.endMarker,Ke),rj(B,be.startMarker,Ke)}),r.selection.moveToBookmark(H)},cj=(r,g,B)=>IJ(g,0,g).map(H=>{const oe=H.container;return j5(oe,B.start.length,g).each(be=>{const Le=r.createRng();Le.setStart(oe,0),Le.setEnd(be.container,be.offset),i8(r,Le,Ke=>Ke===g)}),oe}),uj=r=>(g,B)=>{const H=g.dom,oe=B.pattern,be=ej(H.getRoot(),B.range).getOrDie("Unable to resolve path range"),Le=(Ke,ut)=>{const At=ut.get(Ke);return C(At)&&Ye(At).exists(nn=>Ot(nn,"block"))};return a8(g,be).each(Ke=>{oe.type==="block-format"?Le(oe.format,g.formatter)&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.formatter.apply(oe.format)}):oe.type==="block-command"&&g.undoManager.transact(()=>{r(g.dom,Ke,oe),g.execCommand(oe.cmd,!1,oe.value)})}),!0},Xne=r=>Ue(r,(g,B)=>B.start.length-g.start.length),fj=r=>(g,B)=>{const H=Xne(g),oe=B.replace(Pc," ");return De(H,be=>r(be,B,oe))},QR=(r,g)=>(B,H,oe,be,Le)=>{var Ke;Le===void 0&&(Le=(Ke=H.textContent)!==null&&Ke!==void 0?Ke:"");const ut=B.dom,At=tu(B);return ut.is(H,At)?r(oe.blockPatterns,Le).map(nn=>g&&To.trim(Le).length===nn.start.length?[]:[{pattern:nn,range:o8(ut,ut.getRoot(),H,0,H,0,be)}]).getOr([]):[]},Gne=r=>/^\s[^\s]/.test(r),Kne=uj((r,g,B)=>{cj(r,g,B).each(H=>{const oe=_r.fromDom(H),be=f0(oe);Gne(be)&&K_(oe,be.slice(1))})}),Jne=fj((r,g,B)=>g.indexOf(r.start)===0||B.indexOf(r.start)===0),ere=QR(Jne,!0),tre=(r,g)=>{const B=r.selection.getRng();return a8(r,B).map(H=>{var oe;const be=Math.max(0,B.startOffset),Le=FR(g,H,(oe=H.textContent)!==null&&oe!==void 0?oe:""),Ke=sj(r,H,B.startContainer,be,Le,!0),ut=ere(r,H,Le,!0);return{inlineMatches:Ke,blockMatches:ut}}).filter(({inlineMatches:H,blockMatches:oe})=>oe.length>0||H.length>0)},nre=(r,g)=>{if(g.length===0)return;const B=r.selection.getBookmark();ve(g,H=>Kne(r,H)),r.selection.moveToBookmark(B)},rre=uj(cj),l8=fj((r,g,B)=>g===r.start||B===r.start),ore=QR(l8,!1),ire=(r,g)=>{const B=r.selection.getRng();return a8(r,B).map(H=>{const oe=Math.max(0,B.startOffset),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be);return ore(r,H,Le,!1,be)}).filter(H=>H.length>0)},are=(r,g)=>{ve(g,B=>rre(r,B))},sre=(r,g)=>tre(r,g).fold(re,({inlineMatches:B,blockMatches:H})=>(r.undoManager.add(),r.undoManager.extra(()=>{r.execCommand("mceInsertNewLine")},()=>{XO(r),lj(r,B),nre(r,H);const oe=r.selection.getRng(),be=D9(oe.startContainer,oe.startOffset,r.dom.getRoot());r.execCommand("mceInsertNewLine"),be.each(Le=>{const Ke=Le.container;Ke.data.charAt(Le.offset-1)===pl&&(Ke.deleteData(Le.offset-1,1),dO(r.dom,Ke.parentNode,ut=>ut===r.dom.getRoot()))})}),!0)),lre=(r,g)=>{const B=r.selection.getRng();a8(r,B).map(H=>{const oe=Math.max(0,B.startOffset-1),be=cT(r.dom,H,B.startContainer,oe),Le=FR(g,H,be),Ke=sj(r,H,B.startContainer,oe,Le,!1);Ke.length>0&&r.undoManager.transact(()=>{lj(r,Ke)})})},cre=(r,g)=>ire(r,g).fold(re,B=>(r.undoManager.transact(()=>{are(r,B)}),!0)),hj=(r,g,B)=>{for(let H=0;Hhj(r,g,(B,H)=>B===H.keyCode&&!Jo.modifierPressed(H)),fre=(r,g)=>hj(r,g,(B,H)=>B.charCodeAt(0)===H.charCode),pj=r=>{const g=[",",".",";",":","!","?"],B=[32],H=()=>Cf(c2(r).filter(Le=>Le.type==="inline-command"||Le.type==="block-command"?r.queryCommandSupported(Le.cmd):!0),Wm(r)),oe=()=>ap(r);r.on("keydown",Le=>{if(Le.keyCode===13&&!Jo.modifierPressed(Le)&&r.selection.isCollapsed()){const Ke=xl(H(),"enter");(Ke.inlinePatterns.length>0||Ke.blockPatterns.length>0||oe())&&sre(r,Ke)&&Le.preventDefault()}},!0),r.on("keydown",Le=>{if(Le.keyCode===32&&r.selection.isCollapsed()){const Ke=xl(H(),"space");(Ke.blockPatterns.length>0||oe())&&cre(r,Ke)&&Le.preventDefault()}},!0);const be=()=>{if(r.selection.isCollapsed()){const Le=xl(H(),"space");(Le.inlinePatterns.length>0||oe())&&lre(r,Le)}};r.on("keyup",Le=>{ure(B,Le)&&be()}),r.on("keypress",Le=>{fre(g,Le)&&Ig.setEditorTimeout(r,be)})},dre=r=>{pj(r)},mj=r=>{const g=To.each,B=Jo.BACKSPACE,H=Jo.DELETE,oe=r.dom,be=r.selection,Le=r.parser,Ke=Nr.browser,ut=Ke.isFirefox(),At=Ke.isChromium()||Ke.isSafari(),nn=Nr.deviceType.isiPhone()||Nr.deviceType.isiPad(),un=Nr.os.isMacOS()||Nr.os.isiOS(),yn=(Ti,pa)=>{try{r.getDoc().execCommand(Ti,!1,String(pa))}catch{}},Qn=Ti=>Ti.isDefaultPrevented(),rr=()=>{const Ti=ps=>{const Ci=oe.create("body"),ms=ps.cloneContents();return Ci.appendChild(ms),be.serializer.serialize(Ci,{format:"html"})},pa=ps=>{const Ci=Ti(ps),ms=oe.createRng();ms.selectNode(r.getBody());const Es=Ti(ms);return Ci===Es};r.on("keydown",ps=>{const Ci=ps.keyCode;if(!Qn(ps)&&(Ci===H||Ci===B)&&r.selection.isEditable()){const ms=r.selection.isCollapsed(),Es=r.getBody();if(ms&&!Hi(r.schema,Es)||!ms&&!pa(r.selection.getRng()))return;ps.preventDefault(),r.setContent(""),Es.firstChild&&oe.isBlock(Es.firstChild)?r.selection.setCursorLocation(Es.firstChild,0):r.selection.setCursorLocation(Es,0),r.nodeChanged()}})},Wn=()=>{r.shortcuts.add("meta+a",null,"SelectAll")},ur=()=>{r.inline||oe.bind(r.getDoc(),"mousedown mouseup",Ti=>{let pa;if(Ti.target===r.getDoc().documentElement)if(pa=be.getRng(),r.getBody().focus(),Ti.type==="mousedown"){if(op(pa.startContainer))return;be.placeCaretAt(Ti.clientX,Ti.clientY)}else be.setRng(pa)})},Tr=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B){if(!r.getBody().getElementsByTagName("hr").length)return;if(be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode(),ps=pa.previousSibling;if(pa.nodeName==="HR"){oe.remove(pa),Ti.preventDefault();return}ps&&ps.nodeName&&ps.nodeName.toLowerCase()==="hr"&&(oe.remove(ps),Ti.preventDefault())}}})},Wr=()=>{Range.prototype.getClientRects||r.on("mousedown",Ti=>{if(!Qn(Ti)&&Ti.target.nodeName==="HTML"){const pa=r.getBody();pa.blur(),Ig.setEditorTimeout(r,()=>{pa.focus()})}})},Qr=()=>{const Ti=a2(r);r.on("click",pa=>{const ps=pa.target;/^(IMG|HR)$/.test(ps.nodeName)&&oe.isEditable(ps)&&(pa.preventDefault(),r.selection.select(ps),r.nodeChanged()),ps.nodeName==="A"&&oe.hasClass(ps,Ti)&&ps.childNodes.length===0&&oe.isEditable(ps.parentNode)&&(pa.preventDefault(),be.select(ps))})},lo=()=>{const Ti=()=>{const ps=oe.getAttribs(be.getStart().cloneNode(!1));return()=>{const Ci=be.getStart();Ci!==r.getBody()&&(oe.setAttrib(Ci,"style",null),g(ps,ms=>{Ci.setAttributeNode(ms.cloneNode(!0))}))}},pa=()=>!be.isCollapsed()&&oe.getParent(be.getStart(),oe.isBlock)!==oe.getParent(be.getEnd(),oe.isBlock);r.on("keypress",ps=>{let Ci;return!Qn(ps)&&(ps.keyCode===8||ps.keyCode===46)&&pa()?(Ci=Ti(),r.getDoc().execCommand("delete",!1),Ci(),ps.preventDefault(),!1):!0}),oe.bind(r.getDoc(),"cut",ps=>{if(!Qn(ps)&&pa()){const Ci=Ti();Ig.setEditorTimeout(r,()=>{Ci()})}})},Zo=()=>{r.on("keydown",Ti=>{if(!Qn(Ti)&&Ti.keyCode===B&&be.isCollapsed()&&be.getRng().startOffset===0){const pa=be.getNode().previousSibling;if(pa&&pa.nodeName&&pa.nodeName.toLowerCase()==="table")return Ti.preventDefault(),!1}return!0})},li=()=>{r.on("keydown",Ti=>{if(Qn(Ti)||Ti.keyCode!==Jo.BACKSPACE)return;let pa=be.getRng();const ps=pa.startContainer,Ci=pa.startOffset,ms=oe.getRoot();let Es=ps;if(!(!pa.collapsed||Ci!==0)){for(;Es.parentNode&&Es.parentNode.firstChild===Es&&Es.parentNode!==ms;)Es=Es.parentNode;Es.nodeName==="BLOCKQUOTE"&&(r.formatter.toggle("blockquote",void 0,Es),pa=oe.createRng(),pa.setStart(ps,0),pa.setEnd(ps,0),be.setRng(pa))}})},Mi=()=>{const Ti=()=>{yn("StyleWithCSS",!1),yn("enableInlineTableEditing",!1),Md(r)||yn("enableObjectResizing",!1)};Rb(r)||r.on("BeforeExecCommand mousedown",Ti)},Co=()=>{const Ti=()=>{g(oe.select("a:not([data-mce-block])"),pa=>{var ps;let Ci=pa.parentNode;const ms=oe.getRoot();if((Ci==null?void 0:Ci.lastChild)===pa){for(;Ci&&!oe.isBlock(Ci);){if(((ps=Ci.parentNode)===null||ps===void 0?void 0:ps.lastChild)!==Ci||Ci===ms)return;Ci=Ci.parentNode}oe.add(Ci,"br",{"data-mce-bogus":1})}})};r.on("SetContent ExecCommand",pa=>{(pa.type==="setcontent"||pa.command==="mceInsertLink")&&Ti()})},yo=()=>{r.on("init",()=>{yn("DefaultParagraphSeparator",tu(r))})},Vo=Ti=>{const pa=Ti.getBody(),ps=Ti.selection.getRng();return ps.startContainer===ps.endContainer&&ps.startContainer===pa&&ps.startOffset===0&&ps.endOffset===pa.childNodes.length},Fi=()=>{r.on("keyup focusin mouseup",Ti=>{!Jo.modifierPressed(Ti)&&!Vo(r)&&be.normalize()},!0)},la=()=>{r.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},bs=()=>{r.inline||r.on("keydown",()=>{document.activeElement===document.body&&r.getWin().focus()})},Ms=()=>{r.inline||(r.contentStyles.push("body {min-height: 150px}"),r.on("click",Ti=>{let pa;Ti.target.nodeName==="HTML"&&(pa=r.selection.getRng(),r.getBody().focus(),r.selection.setRng(pa),r.selection.normalize(),r.nodeChanged())}))},wl=()=>{un&&r.on("keydown",Ti=>{Jo.metaKeyPressed(Ti)&&!Ti.shiftKey&&(Ti.keyCode===37||Ti.keyCode===39)&&(Ti.preventDefault(),r.selection.getSel().modify("move",Ti.keyCode===37?"backward":"forward","lineboundary"))})},Vl=()=>{r.on("click",Ti=>{let pa=Ti.target;do if(pa.tagName==="A"){Ti.preventDefault();return}while(pa=pa.parentNode)}),r.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},Uu=()=>{r.on("init",()=>{r.dom.bind(r.getBody(),"submit",Ti=>{Ti.preventDefault()})})},Wf=()=>{Le.addNodeFilter("br",Ti=>{let pa=Ti.length;for(;pa--;)Ti[pa].attr("class")==="Apple-interchange-newline"&&Ti[pa].remove()})},ic=k,vi=()=>{if(!ut||r.removed)return!1;const Ti=r.selection.getSel();return!Ti||!Ti.rangeCount||Ti.rangeCount===0},na=()=>{At&&(ur(),Qr(),Uu(),Wn(),nn&&(bs(),Ms(),Vl())),ut&&(Wr(),Mi(),la(),wl())},ol=()=>{li(),rr(),Nr.windowsPhone||Fi(),At&&(ur(),Qr(),yo(),Uu(),Zo(),Wf(),nn?(bs(),Ms(),Vl()):Wn()),ut&&(Tr(),Wr(),lo(),Mi(),Co(),la(),wl(),Zo())};return zy(r)?na():ol(),{refreshContentEditable:ic,isHidden:vi}},hre=r=>r.toLowerCase()==="gpl",pre=r=>r.length>=64&&r.length<=255,gj=r=>hre(r)||pre(r)?"VALID":"INVALID",uT=r=>{const g=l3(r);!v(c3(r))&&(M(g)||gj(g)==="INVALID")&&console.warn("TinyMCE is running in evaluation mode. Provide a valid license key or add license_key: 'gpl' to the init config to agree to the open source license terms. Read more at https://www.tiny.cloud/license-key/")},HR=cc.DOM,vj=(r,g)=>{const B=_r.fromDom(r.getBody()),H=_d(Ac(B)),oe=_r.fromTag("style");ll(oe,"type","text/css"),ii(oe,_r.fromText(g)),ii(H,oe),r.on("remove",()=>{hs(oe)})},mre=r=>r.inline?r.getElement().nodeName.toLowerCase():void 0,ZR=r=>Yt(r,g=>M(g)===!1),yj=r=>{const g=r.options.get,B=r.editorUpload.blobCache;return ZR({allow_conditional_comments:g("allow_conditional_comments"),allow_html_data_urls:g("allow_html_data_urls"),allow_svg_data_urls:g("allow_svg_data_urls"),allow_html_in_named_anchor:g("allow_html_in_named_anchor"),allow_script_urls:g("allow_script_urls"),allow_unsafe_link_target:g("allow_unsafe_link_target"),convert_unsafe_embeds:g("convert_unsafe_embeds"),convert_fonts_to_spans:g("convert_fonts_to_spans"),fix_list_elements:g("fix_list_elements"),font_size_legacy_values:g("font_size_legacy_values"),forced_root_block:g("forced_root_block"),forced_root_block_attrs:g("forced_root_block_attrs"),preserve_cdata:g("preserve_cdata"),inline_styles:g("inline_styles"),root_name:mre(r),sandbox_iframes:g("sandbox_iframes"),sandbox_iframes_exclusions:h2(r),sanitize:g("xss_sanitization"),validate:!0,blob_cache:B,document:r.getDoc()})},bj=r=>{const g=r.options.get;return ZR({custom_elements:g("custom_elements"),extended_valid_elements:g("extended_valid_elements"),invalid_elements:g("invalid_elements"),invalid_styles:g("invalid_styles"),schema:g("schema"),valid_children:g("valid_children"),valid_classes:g("valid_classes"),valid_elements:g("valid_elements"),valid_styles:g("valid_styles"),verify_html:g("verify_html"),padd_empty_block_inline_children:g("format_empty_lines")})},xj=r=>{const g=r.options.get;return{...yj(r),...bj(r),...ZR({remove_trailing_brs:g("remove_trailing_brs"),pad_empty_with_br:g("pad_empty_with_br"),url_converter:g("url_converter"),url_converter_scope:g("url_converter_scope"),element_format:g("element_format"),entities:g("entities"),entity_encoding:g("entity_encoding"),indent:g("indent"),indent_after:g("indent_after"),indent_before:g("indent_before")})}},gre=r=>{const g=fS(yj(r),r.schema);return g.addAttributeFilter("src,href,style,tabindex",(B,H)=>{const oe=r.dom,be="data-mce-"+H;let Le=B.length;for(;Le--;){const Ke=B[Le];let ut=Ke.attr(H);if(ut&&!Ke.attr(be)){if(ut.indexOf("data:")===0||ut.indexOf("blob:")===0)continue;H==="style"?(ut=oe.serializeStyle(oe.parseStyle(ut),Ke.name),ut.length||(ut=null),Ke.attr(be,ut),Ke.attr(H,ut)):H==="tabindex"?(Ke.attr(be,ut),Ke.attr(H,null)):Ke.attr(be,r.convertURL(ut,H,Ke.name))}}}),g.addNodeFilter("script",B=>{let H=B.length;for(;H--;){const oe=B[H],be=oe.attr("type")||"no/type";be.indexOf("mce-")!==0&&oe.attr("type","mce-"+be)}}),zb(r)&&g.addNodeFilter("#cdata",B=>{var H;let oe=B.length;for(;oe--;){const be=B[oe];be.type=8,be.name="#comment",be.value="[CDATA["+r.dom.encode((H=be.value)!==null&&H!==void 0?H:"")+"]]"}}),g.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",B=>{let H=B.length;const oe=r.schema.getNonEmptyElements();for(;H--;){const be=B[H];be.isEmpty(oe)&&be.getAll("br").length===0&&be.append(new Hp("br",1))}}),g},_j=r=>{const g=Db(r);g&&Ig.setEditorTimeout(r,()=>{let B;g===!0?B=r:B=r.editorManager.get(g),B&&!B.destroyed&&(B.focus(),B.selection.scrollIntoView())},100)},vre=r=>{const g=r.dom.getRoot();!r.inline&&(!T2(r)||r.selection.getStart(!0)===g)&&ph(g).each(B=>{const H=B.getNode(),oe=dt(H)?ph(H).getOr(B):B;r.selection.setRng(oe.toRange())})},yre=r=>{r.bindPendingEventDelegates(),r.initialized=!0,oE(r),r.focus(!0),vre(r),r.nodeChanged({initial:!0});const g=n3(r);A(g)&&g.call(r,r),_j(r)},qR=r=>r.inline?r.ui.styleSheetLoader:r.dom.styleSheetLoader,bre=(r,g,B)=>{const{pass:H,fail:oe}=we(g,Ke=>tinymce.Resource.has(m5(Ke))),Le=[...H.map(Ke=>{const ut=tinymce.Resource.get(m5(Ke));return v(ut)?Promise.resolve(qR(r).loadRawCss(Ke,ut)):Promise.resolve()}),qR(r).loadAll(oe)];return r.inline?Le:Le.concat([r.ui.styleSheetLoader.loadAll(B)])},wj=r=>{const g=qR(r),B=Ad(r),H=r.contentCSS,oe=()=>{g.unloadAll(H),r.inline||r.ui.styleSheetLoader.unloadAll(B)},be=()=>{r.removed?oe():r.on("remove",oe)};if(r.contentStyles.length>0){let ut="";To.each(r.contentStyles,At=>{ut+=At+`\r +`}),r.dom.addStyle(ut)}const Le=Promise.all(bre(r,H,B)).then(be).catch(be),Ke=Mb(r);return Ke&&vj(r,Ke),Le},xre=r=>{const g=r.getDoc(),B=r.getBody();$3(r),l2(r)||(g.body.spellcheck=!1,HR.setAttrib(B,"spellcheck","false")),r.quirks=mj(r),jC(r);const H=_y(r);H!==void 0&&(B.dir=H);const oe=fm(r);oe&&r.on("BeforeSetContent",be=>{To.each(oe,Le=>{be.content=be.content.replace(Le,Ke=>"")})}),r.on("SetContent",()=>{r.addVisual(r.getBody())}),r.on("compositionstart compositionend",be=>{r.composing=be.type==="compositionstart"})},_re=r=>{zy(r)||r.load({initial:!0,format:"html"}),r.startContent=r.getContent({format:"raw"})},WR=r=>{r.removed!==!0&&(_re(r),yre(r))},wre=r=>{let g=!1;const B=setTimeout(()=>{g||r.setProgressState(!0)},500);return()=>{clearTimeout(B),g=!0,r.setProgressState(!1)}},YR=r=>{const g=r.getElement();let B=r.getDoc();r.inline&&(HR.addClass(g,"mce-content-body"),r.contentDocument=B=document,r.contentWindow=window,r.bodyElement=g,r.contentAreaContainer=g);const H=r.getBody();H.disabled=!0,r.readonly=Rb(r),r._editableRoot=Lb(r),!r.readonly&&r.hasEditableRoot()&&(r.inline&&HR.getStyle(H,"position",!0)==="static"&&(H.style.position="relative"),H.contentEditable="true"),H.disabled=!1,r.editorUpload=C7(r),r.schema=zm(bj(r)),r.dom=cc(B,{keep_values:!0,url_converter:r.convertURL,url_converter_scope:r,update_styles:!0,root_element:r.inline?r.getBody():null,collect:r.inline,schema:r.schema,contentCssCors:p1(r),referrerPolicy:b0(r),onSetAttrib:Le=>{r.dispatch("SetAttrib",Le)}}),r.parser=gre(r),r.serializer=Ih(xj(r),r),r.selection=QX(r.dom,r.getWin(),r.serializer,r),r.annotator=B3(r),r.formatter=Dv(r),r.undoManager=bS(r),r._nodeChangeDispatcher=new JV(r),r._selectionOverrides=Qne(r),qK(r),RU(r),JK(r),zy(r)||(zU(r),dre(r));const oe=ZA(r);p$(r,oe),y9(r),zG(r),une(r);const be=kX(r);xre(r),uT(r),be.fold(()=>{const Le=wre(r);wj(r).then(()=>{WR(r),Le()})},Le=>{r.setProgressState(!0),wj(r).then(()=>{Le().then(Ke=>{r.setProgressState(!1),WR(r),v7(r)},Ke=>{r.notificationManager.open({type:"error",text:String(Ke)}),WR(r),v7(r)})})})},XR=q,Oj=(r,g,B)=>wt(r,g,XR,B),c8=cc.DOM,Ore=(r,g,B,H)=>{const oe=_r.fromTag("iframe");return H.each(be=>ll(oe,"tabindex",be)),Tu(oe,B),Tu(oe,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:g}),Cu(oe,"tox-edit-area__iframe"),oe},Sre=r=>{let g=Eh(r)+"";mc(r)!==r.documentBaseUrl&&(g+=''),g+='';const B=dh(r),H=hh(r),oe=r.translate(s2(r));return Qm(r)&&(g+=''),g+=`
    `,g},kre=(r,g)=>{const B=Nr.browser.isFirefox()?s2(r):"Rich Text Area",H=r.translate(B),oe=ec(_r.fromDom(r.getElement()),"tabindex").bind(eo),be=Ore(r.id,H,Ru(r),oe).dom;be.onload=()=>{be.onload=null,r.dispatch("load")},r.contentAreaContainer=g.iframeContainer,r.iframeElement=be,r.iframeHTML=Sre(r),c8.add(g.iframeContainer,be)},Sj=r=>{const g=r.iframeElement,B=()=>{r.contentDocument=g.contentDocument,YR(r)};if(V4(r)||Nr.browser.isFirefox()){const H=r.getDoc();H.open(),H.write(r.iframeHTML),H.close(),B()}else{const H=Oj(_r.fromDom(g),"load",()=>{H.unbind(),B()});g.srcdoc=r.iframeHTML}},kj=(r,g)=>{kre(r,g),g.editorContainer&&(g.editorContainer.style.display=r.orgDisplay,r.hidden=c8.isHidden(g.editorContainer)),r.getElement().style.display="none",c8.setAttrib(r.id,"aria-hidden","true"),r.getElement().style.visibility=r.orgVisibility,Sj(r)},Tj=cc.DOM,Tre=(r,g,B)=>{const H=mS.get(B),oe=mS.urls[B]||r.documentBaseUrl.replace(/\/$/,"");if(B=To.trim(B),H&&To.inArray(g,B)===-1){if(r.plugins[B])return;try{const be=H(r,oe)||{};r.plugins[B]=be,A(be.init)&&(be.init(r,oe),g.push(B))}catch(be){xG(r,B,be)}}},GR=r=>r.replace(/^\-/,""),u8=r=>{const g=[];ve(bv(r),B=>{Tre(r,g,GR(B))})},f8=r=>{const g=To.trim(du(r)),B=r.ui.registry.getAll().icons,H={...lA.get("default").icons,...lA.get(g).icons};Ge(H,(oe,be)=>{Ot(B,be)||r.ui.registry.addIcon(be,oe)})},mx=r=>{const g=w0(r);if(v(g)){const B=Q2.get(g);r.theme=B(r,Q2.urls[g])||{},A(r.theme.init)&&r.theme.init(r,Q2.urls[g]||r.documentBaseUrl.replace(/\/$/,""))}else r.theme={}},d8=r=>{const g=Oy(r),B=pS.get(g);r.model=B(r,pS.urls[g])},NS=r=>{const g=r.theme.renderUI;return g?g():KR(r)},Cj=r=>{const g=r.getElement(),H=w0(r)(r,g);return H.editorContainer.nodeType&&(H.editorContainer.id=H.editorContainer.id||r.id+"_parent"),H.iframeContainer&&H.iframeContainer.nodeType&&(H.iframeContainer.id=H.iframeContainer.id||r.id+"_iframecontainer"),H.height=H.iframeHeight?H.iframeHeight:g.offsetHeight,H},Aj=(r,g)=>({editorContainer:r,iframeContainer:g,api:{}}),Cre=r=>{const g=Tj.create("div");return Tj.insertAfter(g,r),Aj(g,g)},KR=r=>{const g=r.getElement();return r.inline?Aj(null):Cre(g)},Are=r=>{const g=r.getElement();return r.orgDisplay=g.style.display,v(w0(r))?NS(r):A(w0(r))?Cj(r):KR(r)},JR=(r,g)=>{const B={show:Y.from(g.show).getOr(k),hide:Y.from(g.hide).getOr(k),isEnabled:Y.from(g.isEnabled).getOr(q),setEnabled:H=>{r.mode.isReadOnly()||Y.from(g.setEnabled).each(oe=>oe(H))}};r.ui={...r.ui,...B}},h8=async r=>{r.dispatch("ScriptsLoaded"),f8(r),mx(r),d8(r),u8(r);const g=await Are(r);JR(r,Y.from(g.api).getOr({})),r.editorContainer=g.editorContainer,Il(r),r.inline?YR(r):kj(r,{editorContainer:g.editorContainer,iframeContainer:g.iframeContainer})},Qg=cc.DOM,a_=r=>r.charAt(0)==="-",Mj=(r,g)=>{const B=Hm(g),H=yv(g);if(!ff.hasCode(B)&&B!=="en"){const oe=lr(H)?H:`${g.editorManager.baseURL}/langs/${B}.js`;r.add(oe).catch(()=>{vG(g,oe,B)})}},Mre=(r,g)=>{const B=w0(r);if(v(B)&&!a_(B)&&!Ot(Q2.urls,B)){const H=Eb(r),oe=H?r.documentBaseURI.toAbsolute(H):`themes/${B}/theme${g}.js`;Q2.load(B,oe).catch(()=>{yG(r,oe,B)})}},Ere=(r,g)=>{const B=Oy(r);if(B!=="plugin"&&!Ot(pS.urls,B)){const H=aw(r),oe=v(H)?r.documentBaseURI.toAbsolute(H):`models/${B}/model${g}.js`;pS.load(B,oe).catch(()=>{bG(r,oe,B)})}},Pre=r=>Y.from(Iu(r)).filter(lr).map(g=>({url:g,name:Y.none()})),Ej=(r,g,B)=>Y.from(g).filter(H=>lr(H)&&!lA.has(H)).map(H=>({url:`${r.editorManager.baseURL}/icons/${H}/icons${B}.js`,name:Y.some(H)})),Rre=(r,g,B)=>{const H=Ej(g,"default",B),oe=Pre(g).orThunk(()=>Ej(g,du(g),""));ve(fs([H,oe]),be=>{r.add(be.url).catch(()=>{uF(g,be.url,be.name.getOrUndefined())})})},Lre=(r,g)=>{const B=(H,oe)=>{mS.load(H,oe).catch(()=>{gG(r,oe,H)})};Ge(uw(r),(H,oe)=>{B(oe,H),r.options.set("plugins",bv(r).concat(oe))}),ve(bv(r),H=>{H=To.trim(H),H&&!mS.urls[H]&&!a_(H)&&B(H,`plugins/${H}/plugin${g}.js`)})},Pj=r=>{const g=w0(r);return!v(g)||P(Q2.get(g))},Ire=r=>{const g=Oy(r);return P(pS.get(g))},Dre=(r,g)=>{const B=Fm.ScriptLoader,H=()=>{!r.removed&&Pj(r)&&Ire(r)&&h8(r)};Mre(r,g),Ere(r,g),Mj(B,r),Rre(B,r,g),Lre(r,g),B.loadQueue().then(H,H)},Bre=(r,g)=>Gl.forElement(r,{contentCssCors:Sy(g),referrerPolicy:b0(g)}),rde=r=>{const g=r.id;ff.setCode(Hm(r));const B=()=>{Qg.unbind(window,"ready",B),r.render()};if(!wg.Event.domLoaded){Qg.bind(window,"ready",B);return}if(!r.getElement())return;const H=_r.fromDom(r.getElement()),oe=rh(H);r.on("remove",()=>{_e(H.dom.attributes,Le=>tc(H,Le.name)),Tu(H,oe)}),r.ui.styleSheetLoader=Bre(H,r),ip(r)?r.inline=!0:(r.orgVisibility=r.getElement().style.visibility,r.getElement().style.visibility="hidden");const be=r.getElement().form||Qg.getParent(g,"form");be&&(r.formElement=be,$4(r)&&!Rt(r.getElement())&&(Qg.insertAfter(Qg.create("input",{type:"hidden",name:g}),g),r.hasHiddenInput=!0),r.formEventDelegate=Le=>{r.dispatch(Le.type,Le)},Qg.bind(be,"submit reset",r.formEventDelegate),r.on("reset",()=>{r.resetContent()}),qm(r)&&!be.submit.nodeType&&!be.submit.length&&!be._mceOldSubmit&&(be._mceOldSubmit=be.submit,be.submit=()=>(r.editorManager.triggerSave(),r.setDirty(!1),be._mceOldSubmit(be)))),r.windowManager=lF(r),r.notificationManager=sF(r),dm(r)&&r.on("GetContent",Le=>{Le.save&&(Le.content=Qg.encode(Le.content))}),lw(r)&&r.on("submit",()=>{r.initialized&&r.save()}),cw(r)&&(r._beforeUnload=()=>{r.initialized&&!r.destroyed&&!r.isHidden()&&r.save({format:"raw",no_events:!0,set_dirty:!1})},r.editorManager.on("BeforeUnload",r._beforeUnload)),r.editorManager.add(r),Dre(r,r.suffix)},zre=(r,g)=>{r._editableRoot!==g&&(r._editableRoot=g,r.readonly||(r.getBody().contentEditable=String(r.hasEditableRoot()),r.nodeChanged()),WC(r,g))},eL=r=>r._editableRoot,Nre=(r,g)=>({sections:$(r),options:$(g)}),Rj=zn().deviceType,tL=Rj.isPhone(),Fre=Rj.isTablet(),FS=r=>{if(T(r))return[];{const g=C(r)?r:r.split(/[ ,]/),B=ye(g,qn);return Te(B,lr)}},$re=(r,g)=>{const B=zt(g,(H,oe)=>ce(r,oe));return Nre(B.t,B.f)},nL=(r,g,B={})=>{const H=r.sections(),oe=Et(H,g).getOr({});return To.extend({},B,oe)},rL=(r,g)=>Ot(r.sections(),g),Vre=(r,g)=>rL(r,g)?r.sections()[g]:{},Ure=(r,g)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Et(r,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...g?{menubar:!1}:{}}),jre=(r,g)=>{var B;const H=(B=g.external_plugins)!==null&&B!==void 0?B:{};return r&&r.external_plugins?To.extend({},r.external_plugins,H):H},Lj=(r,g)=>[...FS(r),...FS(g)],oL=(r,g,B,H)=>r&&rL(g,"mobile")?H:B,Ij=(r,g,B,H)=>{const oe=FS(B.forced_plugins),be=FS(H.plugins),Le=Vre(g,"mobile"),Ke=Le.plugins?FS(Le.plugins):be,ut=oL(r,g,be,Ke),At=Lj(oe,ut);return To.extend(H,{forced_plugins:oe,plugins:At})},iL=(r,g)=>r&&rL(g,"mobile"),Qre=(r,g,B,H,oe)=>{var be;const Le=r?{mobile:Ure((be=oe.mobile)!==null&&be!==void 0?be:{},g)}:{},Ke=$re(["mobile"],ng(Le,oe)),ut=To.extend(B,H,Ke.options(),iL(r,Ke)?nL(Ke,"mobile"):{},{external_plugins:jre(H,Ke.options())});return Ij(r,Ke,H,ut)},ode=(r,g)=>{const B=CS(g);return Qre(tL||Fre,tL,B,r,B)},ide=(r,g)=>DX(r,g),Hre=r=>{const g=(H,oe)=>{r.formatter.toggle(H,oe),r.nodeChanged()},B=H=>()=>{ve("left,center,right,justify".split(","),oe=>{H!==oe&&r.formatter.remove("align"+oe)}),H!=="none"&&g("align"+H)};r.editorCommands.addCommands({JustifyLeft:B("left"),JustifyCenter:B("center"),JustifyRight:B("right"),JustifyFull:B("justify"),JustifyNone:B("none")})},Dj=r=>{const g=B=>()=>{const H=r.selection,oe=H.isCollapsed()?[r.dom.getParent(H.getNode(),r.dom.isBlock)]:H.getSelectedBlocks();return de(oe,be=>P(r.formatter.matchNode(be,B)))};r.editorCommands.addCommands({JustifyLeft:g("alignleft"),JustifyCenter:g("aligncenter"),JustifyRight:g("alignright"),JustifyFull:g("alignjustify")},"state")},Zre=r=>{Hre(r),Dj(r)},qre=r=>{r.editorCommands.addCommands({"Cut,Copy,Paste":g=>{const B=r.getDoc();let H;try{B.execCommand(g)}catch{H=!0}if(g==="paste"&&!B.queryCommandEnabled(g)&&(H=!0),H||!B.queryCommandSupported(g)){let oe=r.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Nr.os.isMacOS()||Nr.os.isiOS())&&(oe=oe.replace(/Ctrl\+/g,"⌘+")),r.notificationManager.open({text:oe,type:"error"})}}})},Wre=(r,g,B,H)=>{const oe=_r.fromDom(r.getRoot());return Pk(oe,vo.fromRangeStart(g),H)?B=B.replace(/^ /," "):B=B.replace(/^ /," "),K3(oe,vo.fromRangeEnd(g),H)?B=B.replace(/( | )()?$/," "):B=B.replace(/ ()?$/," "),B},ade=r=>{if(typeof r!="string"){const g=To.extend({paste:r.paste,data:{paste:r.paste}},r);return{content:r.content,details:g}}return{content:r,details:{}}},sde=(r,g)=>{const B=r.selection,H=r.dom;return/^ | $/.test(g)?Wre(H,B.getRng(),g,r.schema):g},fT=(r,g)=>{if(r.selection.isEditable()){const{content:B,details:H}=ade(g);X6(r,{...H,content:sde(r,B),format:"html",set:!1,selection:!0}).each(oe=>{const be=LX(r,oe.content,H);YP(r,be,oe),r.addVisual()})}},Bj=r=>{r.editorCommands.addCommands({mceCleanup:()=>{const g=r.selection.getBookmark();r.setContent(r.getContent()),r.selection.moveToBookmark(g)},insertImage:(g,B,H)=>{fT(r,r.dom.createHTML("img",{src:H}))},insertHorizontalRule:()=>{r.execCommand("mceInsertContent",!1,"
    ")},insertText:(g,B,H)=>{fT(r,r.dom.encode(H))},insertHTML:(g,B,H)=>{fT(r,H)},mceInsertContent:(g,B,H)=>{fT(r,H)},mceSetContent:(g,B,H)=>{r.setContent(H)},mceReplaceContent:(g,B,H)=>{r.execCommand("mceInsertContent",!1,H.replace(/\{\$selection\}/g,r.selection.getContent({format:"text"})))},mceNewDocument:()=>{r.setContent(wv(r))}})},Yre={"font-size":"size","font-family":"face"},Xre=Jl("font"),Gre=(r,g,B)=>{const H=be=>Ri(be,r).orThunk(()=>Xre(be)?Et(Yre,r).bind(Le=>ec(be,Le)):Y.none()),oe=be=>va(_r.fromDom(g),be);return qk(_r.fromDom(B),be=>H(be),oe)},lde=r=>r.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),cde=(r,g)=>Y.from(cc.DOM.getStyle(g,r,!0)),Kre=r=>(g,B)=>Y.from(B).map(_r.fromDom).filter(Wl).bind(H=>Gre(r,g,H.dom).or(cde(r,H.dom))).getOr(""),Jre=Kre("font-size"),ude=I(lde,Kre("font-family")),eoe=r=>ph(r.getBody()).bind(g=>{const B=g.container();return Y.from(Mt(B)?B.parentNode:B)}),hO=r=>Y.from(r.selection.getRng()).bind(g=>{const B=r.getBody();return g.startContainer===B&&g.startOffset===0?Y.none():Y.from(r.selection.getStart(!0))}),aL=(r,g)=>hO(r).orThunk(U(eoe,r)).map(_r.fromDom).filter(Wl).bind(g),$S=(r,g)=>aL(r,z(Y.some,g)),sL=(r,g)=>{if(/^[0-9.]+$/.test(g)){const B=parseInt(g,10);if(B>=1&&B<=7){const H=Nb(r),oe=i3(r);return oe.length>0?oe[B-1]||g:H[B-1]||g}else return g}else return g},zj=r=>{const g=r.split(/\s*,\s*/);return ye(g,B=>B.indexOf(" ")!==-1&&!(Br(B,'"')||Br(B,"'"))?`'${B}'`:B).join(",")},Nj=(r,g)=>{const B=sL(r,g);r.formatter.toggle("fontname",{value:zj(B)}),r.nodeChanged()},toe=r=>$S(r,g=>ude(r.getBody(),g.dom)).getOr(""),noe=(r,g)=>{r.formatter.toggle("fontsize",{value:sL(r,g)}),r.nodeChanged()},roe=r=>$S(r,g=>Jre(r.getBody(),g.dom)).getOr(""),ooe=r=>$S(r,g=>{const B=_r.fromDom(r.getBody()),H=qk(g,be=>Ri(be,"line-height"),U(va,B)),oe=()=>{const be=parseFloat(rs(g,"line-height")),Le=parseFloat(rs(g,"font-size"));return String(be/Le)};return H.getOrThunk(oe)}).getOr(""),ioe=(r,g)=>{r.formatter.toggle("lineheight",{value:String(g)}),r.nodeChanged()},aoe=r=>{const g=(B,H)=>{r.formatter.toggle(B,H),r.nodeChanged()};r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>{g(B)},"ForeColor,HiliteColor":(B,H,oe)=>{g(B,{value:oe})},BackColor:(B,H,oe)=>{g("hilitecolor",{value:oe})},FontName:(B,H,oe)=>{Nj(r,oe)},FontSize:(B,H,oe)=>{noe(r,oe)},LineHeight:(B,H,oe)=>{ioe(r,oe)},Lang:(B,H,oe)=>{var be;g(B,{value:oe.code,customValue:(be=oe.customCode)!==null&&be!==void 0?be:null})},RemoveFormat:B=>{r.formatter.remove(B)},mceBlockQuote:()=>{g("blockquote")},FormatBlock:(B,H,oe)=>{g(v(oe)?oe:"p")},mceToggleFormat:(B,H,oe)=>{g(oe)}})},s_=r=>{const g=B=>r.formatter.match(B);r.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":B=>g(B),mceBlockQuote:()=>g("blockquote")},"state"),r.editorCommands.addQueryValueHandler("FontName",()=>toe(r)),r.editorCommands.addQueryValueHandler("FontSize",()=>roe(r)),r.editorCommands.addQueryValueHandler("LineHeight",()=>ooe(r))},soe=r=>{aoe(r),s_(r)},Fj=r=>{r.editorCommands.addCommands({mceAddUndoLevel:()=>{r.undoManager.add()},mceEndUndoLevel:()=>{r.undoManager.add()},Undo:()=>{r.undoManager.undo()},Redo:()=>{r.undoManager.redo()}})},loe=r=>{r.editorCommands.addCommands({Indent:()=>{K2(r)},Outdent:()=>{m9(r)}}),r.editorCommands.addCommands({Outdent:()=>G2(r)},"state")},p8=r=>{const g=(B,H,oe)=>{const be=v(oe)?{href:oe}:oe,Le=r.dom.getParent(r.selection.getNode(),"a");_(be)&&v(be.href)&&(be.href=be.href.replace(/ /g,"%20"),(!Le||!be.href)&&r.formatter.remove("link"),be.href&&r.formatter.apply("link",be,Le))};r.editorCommands.addCommands({unlink:()=>{if(r.selection.isEditable()){if(r.selection.isCollapsed()){const B=r.dom.getParent(r.selection.getStart(),"a");B&&r.dom.remove(B,!0);return}r.formatter.remove("link")}},mceInsertLink:g,createLink:g})},coe=(r,g,B,H)=>{const oe=r.dom,be=Ke=>oe.isBlock(Ke)&&Ke.parentElement===B,Le=be(g)?g:oe.getParent(H,be,B);return Y.from(Le).map(_r.fromDom)},$j=(r,g)=>{const B=r.dom,H=r.selection.getRng(),oe=g?r.selection.getStart():r.selection.getEnd(),be=g?H.startContainer:H.endContainer,Le=Y5(B,be);if(!Le||!Le.isContentEditable)return;const Ke=g?xc:Kc,ut=tu(r);coe(r,oe,Le,be).each(At=>{const nn=wV(r,be,At.dom,Le,!1,ut);Ke(At,_r.fromDom(nn)),r.selection.setCursorLocation(nn,0),r.dispatch("NewBlock",{newBlock:nn}),cO(r,"insertParagraph")})},uoe=r=>$j(r,!0),Vj=r=>$j(r,!1),foe=r=>{r.editorCommands.addCommands({InsertNewBlockBefore:()=>{uoe(r)},InsertNewBlockAfter:()=>{Vj(r)}})},doe=r=>{r.editorCommands.addCommands({insertParagraph:()=>{ES(PV,r)},mceInsertNewLine:(g,B,H)=>{$V(r,H)},InsertLineBreak:(g,B,H)=>{ES(LV,r)}})},hoe=r=>{r.editorCommands.addCommands({mceSelectNodeDepth:(g,B,H)=>{let oe=0;r.dom.getParent(r.selection.getNode(),be=>ne(be)&&oe++===H?(r.selection.select(be),!1):!0,r.getBody())},mceSelectNode:(g,B,H)=>{r.selection.select(H)},selectAll:()=>{const g=r.dom.getParent(r.selection.getStart(),pn);if(g){const B=r.dom.createRng();B.selectNodeContents(g),r.selection.setRng(B)}}})},poe=r=>{r.editorCommands.addCommands({mceRemoveNode:(g,B,H)=>{const oe=H??r.selection.getNode();if(oe!==r.getBody()){const be=r.selection.getBookmark();r.dom.remove(oe,!0),r.selection.moveToBookmark(be)}},mcePrint:()=>{r.getWin().print()},mceFocus:(g,B,H)=>{Jq(r,H===!0)},mceToggleVisualAid:()=>{r.hasVisual=!r.hasVisual,r.addVisual()}})},lL=r=>{Zre(r),qre(r),Fj(r),hoe(r),Bj(r),p8(r),loe(r),foe(r),doe(r),soe(r),poe(r)},moe=["toggleview"],Uj=r=>ce(moe,r.toLowerCase());class fd{constructor(g){this.commands={state:{},exec:{},value:{}},this.editor=g}execCommand(g,B=!1,H,oe){const be=this.editor,Le=g.toLowerCase(),Ke=oe==null?void 0:oe.skip_focus;if(be.removed||(Le!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Le)&&!Ke?be.focus():FD(be)),be.dispatch("BeforeExecCommand",{command:g,ui:B,value:H}).isDefaultPrevented()))return!1;const At=this.commands.exec[Le];return A(At)?(At(Le,B,H),be.dispatch("ExecCommand",{command:g,ui:B,value:H}),!0):!1}queryCommandState(g){if(!Uj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const B=g.toLowerCase(),H=this.commands.state[B];return A(H)?H(B):!1}queryCommandValue(g){if(!Uj(g)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const B=g.toLowerCase(),H=this.commands.value[B];return A(H)?H(B):""}addCommands(g,B="exec"){const H=this.commands;Ge(g,(oe,be)=>{ve(be.toLowerCase().split(","),Le=>{H[B][Le]=oe})})}addCommand(g,B,H){const oe=g.toLowerCase();this.commands.exec[oe]=(be,Le,Ke)=>B.call(H??this.editor,Le,Ke)}queryCommandSupported(g){const B=g.toLowerCase();return!!this.commands.exec[B]}addQueryStateHandler(g,B,H){this.commands.state[g.toLowerCase()]=()=>B.call(H??this.editor)}addQueryValueHandler(g,B,H){this.commands.value[g.toLowerCase()]=()=>B.call(H??this.editor)}}const pO="data-mce-contenteditable",goe=(r,g,B)=>{cs(r,g)&&!B?Bu(r,g):B&&Cu(r,g)},dT=(r,g,B)=>{try{r.getDoc().execCommand(g,!1,String(B))}catch{}},hT=(r,g)=>{r.dom.contentEditable=g?"true":"false"},cL=r=>{ve(Pl(r,'*[contenteditable="true"]'),g=>{ll(g,pO,"true"),hT(g,!1)})},voe=r=>{ve(Pl(r,`*[${pO}="true"]`),g=>{tc(g,pO),hT(g,!0)})},yoe=r=>{Y.from(r.selection.getNode()).each(g=>{g.removeAttribute("data-mce-selected")})},boe=r=>{r.selection.setRng(r.selection.getRng())},xoe=(r,g)=>{const B=_r.fromDom(r.getBody());goe(B,"mce-content-readonly",g),g?(r.selection.controlSelection.hideResizeRect(),r._selectionOverrides.hideFakeCaret(),yoe(r),r.readonly=!0,hT(B,!1),cL(B)):(r.readonly=!1,r.hasEditableRoot()&&hT(B,!0),voe(B),dT(r,"StyleWithCSS",!1),dT(r,"enableInlineTableEditing",!1),dT(r,"enableObjectResizing",!1),KD(r)&&r.focus(),boe(r),r.nodeChanged())},mO=r=>r.readonly,jj=r=>{r.parser.addAttributeFilter("contenteditable",g=>{mO(r)&&ve(g,B=>{B.attr(pO,B.attr("contenteditable")),B.attr("contenteditable","false")})}),r.serializer.addAttributeFilter(pO,g=>{mO(r)&&ve(g,B=>{B.attr("contenteditable",B.attr(pO))})}),r.serializer.addTempAttr(pO)},_oe=r=>{r.serializer?jj(r):r.on("PreInit",()=>{jj(r)})},woe=r=>r.type==="click",VS=["copy"],Fv=r=>ce(VS,r.type),Ooe=(r,g)=>bu(g,"a",H=>va(H,_r.fromDom(r.getBody()))).bind(H=>ec(H,"href")),Soe=(r,g)=>{if(woe(g)&&!Jo.metaKeyPressed(g)){const B=_r.fromDom(g.target);Ooe(r,B).each(H=>{if(g.preventDefault(),/^#/.test(H)){const oe=r.dom.select(`${H},[name="${Zn(H,"#")}"]`);oe.length&&r.selection.scrollIntoView(oe[0],!0)}else window.open(H,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Fv(g)&&r.dispatch(g.type,g)},koe=r=>{r.on("ShowCaret",g=>{mO(r)&&g.preventDefault()}),r.on("ObjectSelected",g=>{mO(r)&&g.preventDefault()})},Toe=To.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class uL{static isNative(g){return!!Toe[g.toLowerCase()]}constructor(g){this.bindings={},this.settings=g||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||re}fire(g,B){return this.dispatch(g,B)}dispatch(g,B){const H=g.toLowerCase(),oe=j_(H,B??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(oe);const be=this.bindings[H];if(be)for(let Le=0,Ke=be.length;Le{this.toggleEvent(ut,!1),delete this.bindings[ut]}),this;if(Le){if(!B)Le.length=0;else{const Ke=we(Le,ut=>ut.func===B);Le=Ke.fail,this.bindings[be]=Le,ve(Ke.pass,ut=>{ut.removed=!0})}Le.length||(this.toggleEvent(g,!1),delete this.bindings[be])}}}else Ge(this.bindings,(H,oe)=>{this.toggleEvent(oe,!1)}),this.bindings={};return this}once(g,B,H){return this.on(g,B,H,{once:!0})}has(g){g=g.toLowerCase();const B=this.bindings[g];return!(!B||B.length===0)}}const pT=r=>(r._eventDispatcher||(r._eventDispatcher=new uL({scope:r,toggleEvent:(g,B)=>{uL.isNative(g)&&r.toggleNativeEvent&&r.toggleNativeEvent(g,B)}})),r._eventDispatcher),fL={fire(r,g,B){return this.dispatch(r,g,B)},dispatch(r,g,B){const H=this;if(H.removed&&r!=="remove"&&r!=="detach")return j_(r.toLowerCase(),g??{},H);const oe=pT(H).dispatch(r,g);if(B!==!1&&H.parent){let be=H.parent();for(;be&&!oe.isPropagationStopped();)be.dispatch(r,oe,!1),be=be.parent?be.parent():void 0}return oe},on(r,g,B){return pT(this).on(r,g,B)},off(r,g){return pT(this).off(r,g)},once(r,g){return pT(this).once(r,g)},hasEventListeners(r){return pT(this).has(r)}},m8=cc.DOM;let gO;const dL=(r,g)=>{if(g==="selectionchange")return r.getDoc();if(!r.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(g))return r.getDoc().documentElement;const B=um(r);return B?(r.eventRoot||(r.eventRoot=m8.select(B)[0]),r.eventRoot):r.getBody()},Coe=r=>!r.hidden&&!mO(r),Qj=(r,g,B)=>{Coe(r)?r.dispatch(g,B):mO(r)&&Soe(r,B)},Hj=(r,g)=>{if(r.delegates||(r.delegates={}),r.delegates[g]||r.removed)return;const B=dL(r,g);if(um(r)){if(gO||(gO={},r.editorManager.on("removeEditor",()=>{r.editorManager.activeEditor||gO&&(Ge(gO,(oe,be)=>{r.dom.unbind(dL(r,be))}),gO=null)})),gO[g])return;const H=oe=>{const be=oe.target,Le=r.editorManager.get();let Ke=Le.length;for(;Ke--;){const ut=Le[Ke].getBody();(ut===be||m8.isChildOf(be,ut))&&Qj(Le[Ke],g,oe)}};gO[g]=H,m8.bind(B,g,H)}else{const H=oe=>{Qj(r,g,oe)};m8.bind(B,g,H),r.delegates[g]=H}},Zj={...fL,bindPendingEventDelegates(){const r=this;To.each(r._pendingNativeEvents,g=>{Hj(r,g)})},toggleNativeEvent(r,g){const B=this;r==="focus"||r==="blur"||B.removed||(g?B.initialized?Hj(B,r):B._pendingNativeEvents?B._pendingNativeEvents.push(r):B._pendingNativeEvents=[r]:B.initialized&&B.delegates&&(B.dom.unbind(dL(B,r),r,B.delegates[r]),delete B.delegates[r]))},unbindAllNativeEvents(){const r=this,g=r.getBody(),B=r.dom;r.delegates&&(Ge(r.delegates,(H,oe)=>{r.dom.unbind(dL(r,oe),oe,H)}),delete r.delegates),!r.inline&&g&&B&&(g.onload=null,B.unbind(r.getWin()),B.unbind(r.getDoc())),B&&(B.unbind(g),B.unbind(r.getContainer()))}},Aoe=r=>v(r)?{value:r.split(/[ ,]/),valid:!0}:D(r,v)?{value:r,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Moe=r=>{const g=(()=>{switch(r){case"array":return C;case"boolean":return R;case"function":return A;case"number":return L;case"object":return _;case"string":return v;case"string[]":return Aoe;case"object[]":return B=>D(B,_);case"regexp":return B=>p(B,RegExp);default:return q}})();return B=>hL(B,g,`The value must be a ${r}.`)},fde=r=>v(r.processor),qj=(r,g)=>{const B=zr(g.message)?"":`. ${g.message}`;return r+B},Wj=r=>r.valid,hL=(r,g,B="")=>{const H=g(r);return R(H)?H?{value:r,valid:!0}:{valid:!1,message:B}:H},Eoe=(r,g,B)=>{if(!M(g)){const H=hL(g,B);if(Wj(H))return H.value;console.error(qj(`Invalid default value passed for the "${r}" option`,H))}},Poe=(r,g,B=g)=>{const H={},oe={},be=(Qn,rr,Wn)=>{const ur=hL(rr,Wn);return Wj(ur)?(oe[Qn]=ur.value,!0):(console.warn(qj(`Invalid value passed for the ${Qn} option`,ur)),!1)},Le=(Qn,rr)=>{const Wn=fde(rr)?Moe(rr.processor):rr.processor,ur=Eoe(Qn,rr.default,Wn);H[Qn]={...rr,default:ur,processor:Wn},Et(oe,Qn).orThunk(()=>Et(g,Qn)).each(Wr=>be(Qn,Wr,Wn))},Ke=Qn=>Ot(H,Qn);return{register:Le,isRegistered:Ke,get:Qn=>Et(oe,Qn).orThunk(()=>Et(H,Qn).map(rr=>rr.default)).getOrUndefined(),set:(Qn,rr)=>{if(Ke(Qn)){const Wn=H[Qn];return Wn.immutable?(console.error(`"${Qn}" is an immutable option and cannot be updated`),!1):be(Qn,rr,Wn.processor)}else return console.warn(`"${Qn}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Qn=>{const rr=Ke(Qn);return rr&&delete oe[Qn],rr},isSet:Qn=>Ot(oe,Qn),debug:()=>{try{console.log(JSON.parse(JSON.stringify(B,(Qn,rr)=>R(rr)||L(rr)||v(rr)||x(rr)||C(rr)||O(rr)?rr:Object.prototype.toString.call(rr))))}catch(Qn){console.error(Qn)}}}},Roe=["design","readonly"],Yj=(r,g,B,H)=>{const oe=B[g.get()],be=B[H];try{be.activate()}catch(Le){console.error(`problem while activating editor mode ${H}:`,Le);return}oe.deactivate(),oe.editorReadOnly!==be.editorReadOnly&&xoe(r,be.editorReadOnly),g.set(H),tE(r,H)},Loe=(r,g,B,H)=>{if(H!==B.get()){if(!Ot(g,H))throw new Error(`Editor mode '${H}' is invalid`);r.initialized?Yj(r,B,g,H):r.on("init",()=>Yj(r,B,g,H))}},Ioe=(r,g,B)=>{if(ce(Roe,g))throw new Error(`Cannot override default mode ${g}`);return{...r,[g]:{...B,deactivate:()=>{try{B.deactivate()}catch(H){console.error(`problem while deactivating editor mode ${g}:`,H)}}}}},Doe=r=>{const g=Ar("design"),B=Ar({design:{activate:k,deactivate:k,editorReadOnly:!1},readonly:{activate:k,deactivate:k,editorReadOnly:!0}});return _oe(r),koe(r),{isReadOnly:()=>mO(r),set:H=>Loe(r,B.get(),g,H),get:()=>g.get(),register:(H,oe)=>{B.set(Ioe(B.get(),H,oe))}}},pL=To.each,mL=To.explode,Boe={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Xj=To.makeMap("alt,ctrl,shift,meta,access"),zoe=r=>r in Xj,Noe=r=>{const g={},B=Nr.os.isMacOS()||Nr.os.isiOS();pL(mL(r.toLowerCase(),"+"),be=>{zoe(be)?g[be]=!0:/^[0-9]{2,}$/.test(be)?g.keyCode=parseInt(be,10):(g.charCode=be.charCodeAt(0),g.keyCode=Boe[be]||be.toUpperCase().charCodeAt(0))});const H=[g.keyCode];let oe;for(oe in Xj)g[oe]?H.push(oe):g[oe]=!1;return g.id=H.join(","),g.access&&(g.alt=!0,B?g.ctrl=!0:g.shift=!0),g.meta&&(B?g.meta=!0:(g.ctrl=!0,g.meta=!1)),g};class gL{constructor(g){this.shortcuts={},this.pendingPatterns=[],this.editor=g;const B=this;g.on("keyup keypress keydown",H=>{(B.hasModifier(H)||B.isFunctionKey(H))&&!H.isDefaultPrevented()&&(pL(B.shortcuts,oe=>{B.matchShortcut(H,oe)&&(B.pendingPatterns=oe.subpatterns.slice(0),H.type==="keydown"&&B.executeShortcutAction(oe))}),B.matchShortcut(H,B.pendingPatterns[0])&&(B.pendingPatterns.length===1&&H.type==="keydown"&&B.executeShortcutAction(B.pendingPatterns[0]),B.pendingPatterns.shift()))})}add(g,B,H,oe){const be=this,Le=be.normalizeCommandFunc(H);return pL(mL(To.trim(g)),Ke=>{const ut=be.createShortcut(Ke,B,Le,oe);be.shortcuts[ut.id]=ut}),!0}remove(g){const B=this.createShortcut(g);return this.shortcuts[B.id]?(delete this.shortcuts[B.id],!0):!1}normalizeCommandFunc(g){const B=this,H=g;return typeof H=="string"?()=>{B.editor.execCommand(H,!1,null)}:To.isArray(H)?()=>{B.editor.execCommand(H[0],H[1],H[2])}:H}createShortcut(g,B,H,oe){const be=To.map(mL(g,">"),Noe);return be[be.length-1]=To.extend(be[be.length-1],{func:H,scope:oe||this.editor}),To.extend(be[0],{desc:this.editor.translate(B),subpatterns:be.slice(1)})}hasModifier(g){return g.altKey||g.ctrlKey||g.metaKey}isFunctionKey(g){return g.type==="keydown"&&g.keyCode>=112&&g.keyCode<=123}matchShortcut(g,B){return!B||B.ctrl!==g.ctrlKey||B.meta!==g.metaKey||B.alt!==g.altKey||B.shift!==g.shiftKey?!1:g.keyCode===B.keyCode||g.charCode&&g.charCode===B.charCode?(g.preventDefault(),!0):!1}executeShortcutAction(g){return g.func?g.func.call(g.scope):null}}const Foe=()=>{const r={},g={},B={},H={},oe={},be={},Le={},Ke={},ut=(nn,un)=>(yn,Qn)=>{nn[yn.toLowerCase()]={...Qn,type:un}},At=(nn,un)=>H[nn.toLowerCase()]=un;return{addButton:ut(r,"button"),addGroupToolbarButton:ut(r,"grouptoolbarbutton"),addToggleButton:ut(r,"togglebutton"),addMenuButton:ut(r,"menubutton"),addSplitButton:ut(r,"splitbutton"),addMenuItem:ut(g,"menuitem"),addNestedMenuItem:ut(g,"nestedmenuitem"),addToggleMenuItem:ut(g,"togglemenuitem"),addAutocompleter:ut(B,"autocompleter"),addContextMenu:ut(oe,"contextmenu"),addContextToolbar:ut(be,"contexttoolbar"),addContextForm:ut(be,"contextform"),addSidebar:ut(Le,"sidebar"),addView:ut(Ke,"views"),addIcon:At,getAll:()=>({buttons:r,menuItems:g,icons:H,popups:B,contextMenus:oe,contextToolbars:be,sidebars:Le,views:Ke})}},$oe=()=>{const r=Foe();return{addAutocompleter:r.addAutocompleter,addButton:r.addButton,addContextForm:r.addContextForm,addContextMenu:r.addContextMenu,addContextToolbar:r.addContextToolbar,addIcon:r.addIcon,addMenuButton:r.addMenuButton,addMenuItem:r.addMenuItem,addNestedMenuItem:r.addNestedMenuItem,addSidebar:r.addSidebar,addSplitButton:r.addSplitButton,addToggleButton:r.addToggleButton,addGroupToolbarButton:r.addGroupToolbarButton,addToggleMenuItem:r.addToggleMenuItem,addView:r.addView,getAll:r.getAll}},vO=cc.DOM,Gj=To.extend,Voe=To.each;class g8{constructor(g,B,H){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=H,this.documentBaseUrl=H.documentBaseURL,Gj(this,Zj);const oe=this;this.id=g,this.hidden=!1;const be=ode(H.defaultOptions,B);this.options=Poe(oe,be,B),$l(oe);const Le=this.options.get;Le("deprecation_warnings")&&oG(B,be);const Ke=Le("suffix");Ke&&(H.suffix=Ke),this.suffix=H.suffix;const ut=Le("base_url");ut&&H._setBaseUrl(ut),this.baseUri=H.baseURI;const At=b0(oe);At&&(Fm.ScriptLoader._setReferrerPolicy(At),cc.DOM.styleSheetLoader._setReferrerPolicy(At));const nn=Sy(oe);P(nn)&&cc.DOM.styleSheetLoader._setContentCssCors(nn),fh.languageLoad=Le("language_load"),fh.baseURL=H.baseURL,this.setDirty(!1),this.documentBaseURI=new cp(mc(oe),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=ip(oe),this.hasVisual=ud(oe),this.shortcuts=new gL(this),this.editorCommands=new fd(this),lL(this);const un=Le("cache_suffix");un&&(Nr.cacheSuffix=un.replace(/^[\?\&]+/,"")),this.ui={registry:$oe(),styleSheetLoader:void 0,show:k,hide:k,setEnabled:k,isEnabled:q},this.mode=Doe(oe),H.dispatch("SetupEditor",{editor:this});const yn=Ib(oe);A(yn)&&yn.call(oe,oe)}render(){rde(this)}focus(g){this.execCommand("mceFocus",!1,g)}hasFocus(){return nx(this)}translate(g){return ff.translate(g)}getParam(g,B,H){const oe=this.options;return oe.isRegistered(g)||(P(H)?oe.register(g,{processor:H,default:B}):oe.register(g,{processor:q,default:B})),!oe.isSet(g)&&!M(B)?B:oe.get(g)}hasPlugin(g,B){return ce(bv(this),g)?B?mS.get(g)!==void 0:!0:!1}nodeChanged(g){this._nodeChangeDispatcher.nodeChanged(g)}addCommand(g,B,H){this.editorCommands.addCommand(g,B,H)}addQueryStateHandler(g,B,H){this.editorCommands.addQueryStateHandler(g,B,H)}addQueryValueHandler(g,B,H){this.editorCommands.addQueryValueHandler(g,B,H)}addShortcut(g,B,H,oe){this.shortcuts.add(g,B,H,oe)}execCommand(g,B,H,oe){return this.editorCommands.execCommand(g,B,H,oe)}queryCommandState(g){return this.editorCommands.queryCommandState(g)}queryCommandValue(g){return this.editorCommands.queryCommandValue(g)}queryCommandSupported(g){return this.editorCommands.queryCommandSupported(g)}show(){const g=this;g.hidden&&(g.hidden=!1,g.inline?g.getBody().contentEditable="true":(vO.show(g.getContainer()),vO.hide(g.id)),g.load(),g.dispatch("show"))}hide(){const g=this;g.hidden||(g.save(),g.inline?(g.getBody().contentEditable="false",g===g.editorManager.focusedEditor&&(g.editorManager.focusedEditor=null)):(vO.hide(g.getContainer()),vO.setStyle(g.id,"display",g.orgDisplay)),g.hidden=!0,g.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(g,B){this.dispatch("ProgressState",{state:g,time:B})}load(g={}){const B=this,H=B.getElement();if(B.removed)return"";if(H){const oe={...g,load:!0},be=Rt(H)?H.value:H.innerHTML,Le=B.setContent(be,oe);return oe.no_events||B.dispatch("LoadContent",{...oe,element:H}),Le}else return""}save(g={}){const B=this;let H=B.getElement();if(!H||!B.initialized||B.removed)return"";const oe={...g,save:!0,element:H};let be=B.getContent(oe);const Le={...oe,content:be};if(Le.no_events||B.dispatch("SaveContent",Le),Le.format==="raw"&&B.dispatch("RawSaveContent",Le),be=Le.content,Rt(H))H.value=be;else{(g.is_removing||!B.inline)&&(H.innerHTML=be);const Ke=vO.getParent(B.id,"form");Ke&&Voe(Ke.elements,ut=>ut.name===B.id?(ut.value=be,!1):!0)}return Le.element=oe.element=H=null,Le.set_dirty!==!1&&B.setDirty(!1),be}setContent(g,B){return hS(this,g,B)}getContent(g){return tF(this,g)}insertContent(g,B){B&&(g=Gj({content:g},B)),this.execCommand("mceInsertContent",!1,g)}resetContent(g){g===void 0?hS(this,this.startContent,{format:"raw"}):hS(this,g),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(g){const B=!this.isNotDirty;this.isNotDirty=!g,g&&g!==B&&this.dispatch("dirty")}getContainer(){const g=this;return g.container||(g.container=g.editorContainer||vO.get(g.id+"_parent")),g.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=vO.get(this.id)),this.targetElm}getWin(){const g=this;if(!g.contentWindow){const B=g.iframeElement;B&&(g.contentWindow=B.contentWindow)}return g.contentWindow}getDoc(){const g=this;if(!g.contentDocument){const B=g.getWin();B&&(g.contentDocument=B.document)}return g.contentDocument}getBody(){var g,B;const H=this.getDoc();return(B=(g=this.bodyElement)!==null&&g!==void 0?g:H==null?void 0:H.body)!==null&&B!==void 0?B:null}convertURL(g,B,H){const oe=this,be=oe.options.get,Le=Ph(oe);if(A(Le))return Le.call(oe,g,H,!0,B);if(!be("convert_urls")||H==="link"||_(H)&&H.nodeName==="LINK"||g.indexOf("file:")===0||g.length===0)return g;const Ke=new cp(g);return Ke.protocol!=="http"&&Ke.protocol!=="https"&&Ke.protocol!==""?g:be("relative_urls")?oe.documentBaseURI.toRelative(g):(g=oe.documentBaseURI.toAbsolute(g,be("remove_script_host")),g)}addVisual(g){ide(this,g)}setEditableRoot(g){zre(this,g)}hasEditableRoot(){return eL(this)}remove(){sG(this)}destroy(g){lG(this,g)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const US=cc.DOM,v8=To.each;let vL=!1,y8,wm=[];const b8=r=>{const g=r.type;v8(l_.get(),B=>{switch(g){case"scroll":B.dispatch("ScrollWindow",r);break;case"resize":B.dispatch("ResizeWindow",r);break}})},Kj=r=>{if(r!==vL){const g=cc.DOM;r?(g.bind(window,"resize",b8),g.bind(window,"scroll",b8)):(g.unbind(window,"resize",b8),g.unbind(window,"scroll",b8)),vL=r}},Jj=r=>{const g=wm;return wm=Te(wm,B=>r!==B),l_.activeEditor===r&&(l_.activeEditor=wm.length>0?wm[0]:null),l_.focusedEditor===r&&(l_.focusedEditor=null),g.length!==wm.length},Uoe=r=>{r&&r.initialized&&!(r.getContainer()||r.getBody()).parentNode&&(Jj(r),r.unbindAllNativeEvents(),r.destroy(!0),r.removed=!0)},joe=document.compatMode!=="CSS1Compat",l_={...fL,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"7",minorVersion:"3.0",releaseDate:"2024-08-07",i18n:ff,activeEditor:null,focusedEditor:null,setup(){const r=this;let g="",B="",H=cp.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(H)&&(H=H.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(H)||(H+="/"));const oe=window.tinymce||window.tinyMCEPreInit;if(oe)g=oe.base||oe.baseURL,B=oe.suffix;else{const be=document.getElementsByTagName("script");for(let Le=0;Le{fh.PluginManager.urls[be]=oe})},init(r){const g=this;let B;const H=To.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),oe=(nn,un)=>nn.inline&&un.tagName.toLowerCase()in H,be=nn=>{let un=nn.id;return un||(un=Et(nn,"name").filter(yn=>!US.get(yn)).getOrThunk(US.uniqueId),nn.setAttribute("id",un)),un},Le=nn=>{const un=r[nn];if(un)return un.apply(g,[])},Ke=nn=>Nr.browser.isIE()||Nr.browser.isEdge()?(k7("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/7/support/#supportedwebbrowsers"),[]):joe?(k7("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):v(nn.selector)?US.select(nn.selector):P(nn.target)?[nn.target]:[];let ut=nn=>{B=nn};const At=()=>{let nn=0;const un=[];let yn;const Qn=(rr,Wn,ur)=>{const Tr=new g8(rr,Wn,g);un.push(Tr),Tr.on("init",()=>{++nn===yn.length&&ut(un)}),Tr.targetElm=Tr.targetElm||ur,Tr.render()};US.unbind(window,"ready",At),Le("onpageload"),yn=je(Ke(r)),To.each(yn,rr=>{Uoe(g.get(rr.id))}),yn=To.grep(yn,rr=>!g.get(rr.id)),yn.length===0?ut([]):v8(yn,rr=>{oe(r,rr)?k7("Could not initialize inline editor on invalid inline target element",rr):Qn(be(rr),r,rr)})};return US.bind(window,"ready",At),new Promise(nn=>{B?nn(B):ut=un=>{nn(un)}})},get(r){return arguments.length===0?wm.slice(0):v(r)?De(wm,g=>g.id===r).getOr(null):L(r)&&wm[r]?wm[r]:null},add(r){const g=this,B=g.get(r.id);return B===r||(B===null&&wm.push(r),Kj(!0),g.activeEditor=r,g.dispatch("AddEditor",{editor:r}),y8||(y8=H=>{const oe=g.dispatch("BeforeUnload");if(oe.returnValue)return H.preventDefault(),H.returnValue=oe.returnValue,oe.returnValue},window.addEventListener("beforeunload",y8))),r},createEditor(r,g){return this.add(new g8(r,g,this))},remove(r){const g=this;let B;if(!r){for(let H=wm.length-1;H>=0;H--)g.remove(wm[H]);return}if(v(r)){v8(US.select(r),H=>{B=g.get(H.id),B&&g.remove(B)});return}return B=r,x(g.get(B.id))?null:(Jj(B)&&g.dispatch("RemoveEditor",{editor:B}),wm.length===0&&window.removeEventListener("beforeunload",y8),B.remove(),Kj(wm.length>0),B)},execCommand(r,g,B){var H;const oe=this,be=_(B)?(H=B.id)!==null&&H!==void 0?H:B.index:B;switch(r){case"mceAddEditor":{if(!oe.get(be)){const Le=B.options;new g8(be,Le,oe).render()}return!0}case"mceRemoveEditor":{const Le=oe.get(be);return Le&&Le.remove(),!0}case"mceToggleEditor":{const Le=oe.get(be);return Le?(Le.isHidden()?Le.show():Le.hide(),!0):(oe.execCommand("mceAddEditor",!1,B),!0)}}return oe.activeEditor?oe.activeEditor.execCommand(r,g,B):!1},triggerSave:()=>{v8(wm,r=>{r.save()})},addI18n:(r,g)=>{ff.add(r,g)},translate:r=>ff.translate(r),setActive(r){const g=this.activeEditor;this.activeEditor!==r&&(g&&g.dispatch("deactivate",{relatedTarget:r}),r.dispatch("activate",{relatedTarget:g})),this.activeEditor=r},_setBaseUrl(r){this.baseURL=new cp(this.documentBaseURL).toAbsolute(r.replace(/\/+$/,"")),this.baseURI=new cp(this.baseURL)}};l_.setup();const dde=(()=>{const r=Ts(),g=be=>({items:be,types:tt(be),getType:Le=>Et(be,Le).getOrUndefined()}),B=be=>{r.set(be)},H=()=>r.get().getOrUndefined(),oe=r.clear;return{FakeClipboardItem:g,write:B,read:H,clear:oe}})(),yL=Math.min,jS=Math.max,mT=Math.round,eQ=(r,g,B)=>{let H=g.x,oe=g.y;const be=r.w,Le=r.h,Ke=g.w,ut=g.h,At=(B||"").split("");return At[0]==="b"&&(oe+=ut),At[1]==="r"&&(H+=Ke),At[0]==="c"&&(oe+=mT(ut/2)),At[1]==="c"&&(H+=mT(Ke/2)),At[3]==="b"&&(oe-=Le),At[4]==="r"&&(H-=be),At[3]==="c"&&(oe-=mT(Le/2)),At[4]==="c"&&(H-=mT(be/2)),QS(H,oe,be,Le)},Hoe=(r,g,B,H)=>{for(let oe=0;oe=B.x&&be.x+be.w<=B.w+B.x&&be.y>=B.y&&be.y+be.h<=B.h+B.y)return H[oe]}return null},Zoe=(r,g,B)=>QS(r.x-g,r.y-B,r.w+g*2,r.h+B*2),qoe=(r,g)=>{const B=jS(r.x,g.x),H=jS(r.y,g.y),oe=yL(r.x+r.w,g.x+g.w),be=yL(r.y+r.h,g.y+g.h);return oe-B<0||be-H<0?null:QS(B,H,oe-B,be-H)},Woe=(r,g,B)=>{let H=r.x,oe=r.y,be=r.x+r.w,Le=r.y+r.h;const Ke=g.x+g.w,ut=g.y+g.h,At=jS(0,g.x-H),nn=jS(0,g.y-oe),un=jS(0,be-Ke),yn=jS(0,Le-ut);return H+=At,oe+=nn,B&&(be+=At,Le+=nn,H-=un,oe-=yn),be-=un,Le-=yn,QS(H,oe,be-H,Le-oe)},QS=(r,g,B,H)=>({x:r,y:g,w:B,h:H}),bL={inflate:Zoe,relativePosition:eQ,findBestRelativePosition:Hoe,intersect:qoe,clamp:Woe,create:QS,fromClientRect:r=>QS(r.left,r.top,r.width,r.height)},Yoe=(r,g,B=1e3)=>{let H=!1,oe=null;const be=At=>(...nn)=>{H||(H=!0,oe!==null&&(clearTimeout(oe),oe=null),At.apply(null,nn))},Le=be(r),Ke=be(g);return{start:(...At)=>{!H&&oe===null&&(oe=setTimeout(()=>Ke.apply(null,At),B))},resolve:Le,reject:Ke}},Goe=(()=>{const r={},g={},B={};return{load:(ut,At)=>{const nn=`Script at URL "${At}" failed to load`,un=`Script at URL "${At}" did not call \`tinymce.Resource.add('${ut}', data)\` within 1 second`;if(r[ut]!==void 0)return r[ut];{const yn=new Promise((Qn,rr)=>{const Wn=Yoe(Qn,rr);g[ut]=Wn.resolve,Fm.ScriptLoader.loadScript(At).then(()=>Wn.start(un),()=>Wn.reject(nn))});return r[ut]=yn,yn}},add:(ut,At)=>{g[ut]!==void 0&&(g[ut](At),delete g[ut]),r[ut]=Promise.resolve(At),B[ut]=At},has:ut=>ut in B,get:ut=>B[ut],unload:ut=>{delete r[ut],delete B[ut]}}})(),Koe=()=>(()=>{let r={},g=[];const B={getItem:H=>{const oe=r[H];return oe||null},setItem:(H,oe)=>{g.push(H),r[H]=String(oe)},key:H=>g[H],removeItem:H=>{g=g.filter(oe=>oe===H),delete r[H]},clear:()=>{g=[],r={}},length:0};return Object.defineProperty(B,"length",{get:()=>g.length,configurable:!1,enumerable:!1}),B})();let gT;try{const r="__storage_test__";gT=window.localStorage,gT.setItem(r,r),gT.removeItem(r)}catch{gT=Koe()}var Joe=gT;const eie={geom:{Rect:bL},util:{Delay:Ig,Tools:To,VK:Jo,URI:cp,EventDispatcher:uL,Observable:fL,I18n:ff,LocalStorage:Joe,ImageUploader:Ny},dom:{EventUtils:wg,TreeWalker:Xl,TextSeeker:Cg,DOMUtils:cc,ScriptLoader:Fm,RangeUtils:oi,Serializer:Ih,StyleSheetLoader:Uh,ControlSelection:Iw,BookmarkManager:Pg,Selection:QX,Event:wg.Event},html:{Styles:U_,Entities:Lm,Node:Hp,Schema:zm,DomParser:fS,Writer:AE,Serializer:rx},Env:Nr,AddOnManager:fh,Annotator:B3,Formatter:Dv,UndoManager:bS,EditorCommands:fd,WindowManager:lF,NotificationManager:sF,EditorObservable:Zj,Shortcuts:gL,Editor:g8,FocusManager:$D,EditorManager:l_,DOM:cc.DOM,ScriptLoader:Fm.ScriptLoader,PluginManager:mS,ThemeManager:Q2,ModelManager:pS,IconManager:lA,Resource:Goe,FakeClipboard:dde,trim:To.trim,isArray:To.isArray,is:To.is,toArray:To.toArray,makeMap:To.makeMap,each:To.each,map:To.map,grep:To.grep,inArray:To.inArray,extend:To.extend,walk:To.walk,resolve:To.resolve,explode:To.explode,_addCacheSuffix:To._addCacheSuffix},nQ=To.extend(l_,eie),tie=r=>{try{t.exports=r}catch{}};(r=>{window.tinymce=r,window.tinyMCE=r})(nQ),tie(nQ)})()})(V$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(he,Ce,Xe)=>{var lt;return Xe(he,Ce.prototype)?!0:((lt=he.constructor)===null||lt===void 0?void 0:lt.name)===Ce.name},o=he=>{const Ce=typeof he;return he===null?"null":Ce==="object"&&Array.isArray(he)?"array":Ce==="object"&&e(he,String,(Xe,lt)=>lt.isPrototypeOf(Xe))?"string":Ce},f=he=>Ce=>o(Ce)===he,E=he=>Ce=>typeof Ce===he,d=he=>Ce=>he===Ce,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=d(void 0),w=he=>he==null,y=he=>!w(he),m=E("function"),a=E("number"),c=()=>{},h=(he,Ce)=>(...Xe)=>he(Ce.apply(null,Xe)),p=(he,Ce)=>Xe=>he(Ce(Xe)),v=he=>()=>he,_=he=>he,O=(he,Ce)=>he===Ce;function C(he,...Ce){return(...Xe)=>{const lt=Ce.concat(Xe);return he.apply(null,lt)}}const x=he=>Ce=>!he(Ce),R=he=>()=>{throw new Error(he)},M=he=>he(),T=v(!1),P=v(!0);class A{constructor(Ce,Xe){this.tag=Ce,this.value=Xe}static some(Ce){return new A(!0,Ce)}static none(){return A.singletonNone}fold(Ce,Xe){return this.tag?Xe(this.value):Ce()}isSome(){return this.tag}isNone(){return!this.tag}map(Ce){return this.tag?A.some(Ce(this.value)):A.none()}bind(Ce){return this.tag?Ce(this.value):A.none()}exists(Ce){return this.tag&&Ce(this.value)}forall(Ce){return!this.tag||Ce(this.value)}filter(Ce){return!this.tag||Ce(this.value)?this:A.none()}getOr(Ce){return this.tag?this.value:Ce}or(Ce){return this.tag?this:Ce}getOrThunk(Ce){return this.tag?this.value:Ce()}orThunk(Ce){return this.tag?this:Ce()}getOrDie(Ce){if(this.tag)return this.value;throw new Error(Ce??"Called getOrDie on None")}static from(Ce){return y(Ce)?A.some(Ce):A.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ce){this.tag&&Ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}A.singletonNone=new A(!1);const L=Array.prototype.slice,D=Array.prototype.indexOf,k=Array.prototype.push,I=(he,Ce)=>D.call(he,Ce),z=(he,Ce)=>I(he,Ce)>-1,$=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Xe=[];for(let lt=0;lt{const Xe=he.length,lt=new Array(Xe);for(let Ct=0;Ct{for(let Xe=0,lt=he.length;Xe{for(let Xe=he.length-1;Xe>=0;Xe--){const lt=he[Xe];Ce(lt,Xe)}},te=(he,Ce)=>{const Xe=[],lt=[];for(let Ct=0,Wt=he.length;Ct{const Xe=[];for(let lt=0,Ct=he.length;lt(X(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),re=(he,Ce,Xe)=>(U(he,(lt,Ct)=>{Xe=Ce(Xe,lt,Ct)}),Xe),q=(he,Ce,Xe)=>{for(let lt=0,Ct=he.length;ltq(he,Ce,T),ee=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=[];for(let Xe=0,lt=he.length;Xeme(j(he,Ce)),se=(he,Ce)=>{for(let Xe=0,lt=he.length;Xe{const Ce=L.call(he,0);return Ce.reverse(),Ce},ce=(he,Ce)=>{const Xe={};for(let lt=0,Ct=he.length;lt{const Xe=L.call(he,0);return Xe.sort(Ce),Xe},ye=(he,Ce)=>Ce>=0&&Ceye(he,0),_e=he=>ye(he,he.length-1),we=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Te(he);for(let lt=0,Ct=Xe.length;ltDe(he,(Xe,lt)=>({k:lt,v:Ce(Xe,lt)})),De=(he,Ce)=>{const Xe={};return Ie(he,(lt,Ct)=>{const Wt=Ce(lt,Ct);Xe[Wt.k]=Wt.v}),Xe},Qe=he=>(Ce,Xe)=>{he[Xe]=Ce},Ve=(he,Ce,Xe,lt)=>{Ie(he,(Ct,Wt)=>{(Ce(Ct,Wt)?Xe:lt)(Ct,Wt)})},$e=(he,Ce)=>{const Xe={};return Ve(he,Ce,Qe(Xe),c),Xe},Oe=(he,Ce)=>{const Xe=[];return Ie(he,(lt,Ct)=>{Xe.push(Ce(lt,Ct))}),Xe},ke=he=>Oe(he,_),Re=(he,Ce)=>We(he,Ce)?A.from(he[Ce]):A.none(),We=(he,Ce)=>Pe.call(he,Ce),Ue=(he,Ce)=>We(he,Ce)&&he[Ce]!==void 0&&he[Ce]!==null,Ze=he=>{for(const Ce in he)if(Pe.call(he,Ce))return!1;return!0},Ye=typeof window<"u"?window:Function("return this;")(),Je=(he,Ce)=>{let Xe=Ce??Ye;for(let lt=0;lt{const Xe=he.split(".");return Je(Xe,Ce)},Fe=(he,Ce)=>Me(he,Ce),je=(he,Ce)=>{const Xe=Fe(he,Ce);if(Xe==null)throw new Error(he+" not available on this browser");return Xe},tt=Object.getPrototypeOf,ot=he=>je("HTMLElement",he),Ge=he=>{const Ce=Me("ownerDocument.defaultView",he);return n(he)&&(ot(Ce).prototype.isPrototypeOf(he)||/^HTML\w*Element$/.test(tt(he).constructor.name))},ht=8,pt=9,St=11,Ft=1,zt=3,Yt=he=>he.dom.nodeName.toLowerCase(),ln=he=>he.dom.nodeType,tn=he=>Ce=>ln(Ce)===he,Et=he=>ln(he)===ht||Yt(he)==="#comment",Ot=he=>cn(he)&&Ge(he.dom),cn=tn(Ft),Cn=tn(zt),Pn=tn(pt),Sn=tn(St),vt=he=>Ce=>cn(Ce)&&Yt(Ce)===he,xt=(he,Ce,Xe)=>{if(s(Xe)||i(Xe)||a(Xe))he.setAttribute(Ce,Xe+"");else throw console.error("Invalid call to Attribute.set. Key ",Ce,":: Value ",Xe,":: Element ",he),new Error("Attribute value was not simple")},st=(he,Ce,Xe)=>{xt(he.dom,Ce,Xe)},bt=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{xt(Xe,Ct,lt)})},Vt=(he,Ce)=>{Ie(Ce,(Xe,lt)=>{Xe.fold(()=>{at(he,lt)},Ct=>{xt(he.dom,lt,Ct)})})},Dt=(he,Ce)=>{const Xe=he.dom.getAttribute(Ce);return Xe===null?void 0:Xe},it=(he,Ce)=>A.from(Dt(he,Ce)),at=(he,Ce)=>{he.dom.removeAttribute(Ce)},Bt=he=>re(he.dom.attributes,(Ce,Xe)=>(Ce[Xe.name]=Xe.value,Ce),{}),_t=(he,Ce)=>{const lt=(Ce||document).createElement("div");if(lt.innerHTML=he,!lt.hasChildNodes()||lt.childNodes.length>1){const Ct="HTML does not have a single root node";throw console.error(Ct,he),new Error(Ct)}return Jt(lt.childNodes[0])},qt=(he,Ce)=>{const lt=(Ce||document).createElement(he);return Jt(lt)},en=(he,Ce)=>{const lt=(Ce||document).createTextNode(he);return Jt(lt)},Jt=he=>{if(he==null)throw new Error("Node cannot be null or undefined");return{dom:he}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(he,Ce,Xe)=>A.from(he.dom.elementFromPoint(Ce,Xe)).map(Jt)},sn=(he,Ce)=>{const Xe=he.dom;if(Xe.nodeType!==Ft)return!1;{const lt=Xe;if(lt.matches!==void 0)return lt.matches(Ce);if(lt.msMatchesSelector!==void 0)return lt.msMatchesSelector(Ce);if(lt.webkitMatchesSelector!==void 0)return lt.webkitMatchesSelector(Ce);if(lt.mozMatchesSelector!==void 0)return lt.mozMatchesSelector(Ce);throw new Error("Browser lacks native selectors")}},rn=he=>he.nodeType!==Ft&&he.nodeType!==pt&&he.nodeType!==St||he.childElementCount===0,_n=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?[]:j(Xe.querySelectorAll(he),Nt.fromDom)},wn=(he,Ce)=>{const Xe=Ce===void 0?document:Ce.dom;return rn(Xe)?A.none():A.from(Xe.querySelector(he)).map(Nt.fromDom)},An=(he,Ce)=>he.dom===Ce.dom,Kn=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;return Xe===lt?!1:Xe.contains(lt)},fr=sn,Un=he=>Nt.fromDom(he.dom.ownerDocument),Zn=he=>Pn(he)?he:Un(he),tr=he=>Nt.fromDom(Zn(he).dom.documentElement),Br=he=>Nt.fromDom(Zn(he).dom.defaultView),$r=he=>A.from(he.dom.parentNode).map(Nt.fromDom),vr=he=>A.from(he.dom.parentElement).map(Nt.fromDom),qn=(he,Ce)=>{const Xe=m(Ce)?Ce:T;let lt=he.dom;const Ct=[];for(;lt.parentNode!==null&<.parentNode!==void 0;){const Wt=lt.parentNode,kn=Nt.fromDom(Wt);if(Ct.push(kn),Xe(kn)===!0)break;lt=Wt}return Ct},gr=he=>A.from(he.dom.previousSibling).map(Nt.fromDom),sr=he=>A.from(he.dom.nextSibling).map(Nt.fromDom),lr=he=>j(he.dom.childNodes,Nt.fromDom),zr=(he,Ce)=>{const Xe=he.dom.childNodes;return A.from(Xe[Ce]).map(Nt.fromDom)},Vr=he=>zr(he,0),eo=(he,Ce)=>{$r(he).each(lt=>{lt.dom.insertBefore(Ce.dom,he.dom)})},Jr=(he,Ce)=>{sr(he).fold(()=>{$r(he).each(Ct=>{to(Ct,Ce)})},lt=>{eo(lt,Ce)})},Yr=(he,Ce)=>{Vr(he).fold(()=>{to(he,Ce)},lt=>{he.dom.insertBefore(Ce.dom,lt.dom)})},to=(he,Ce)=>{he.dom.appendChild(Ce.dom)},co=(he,Ce,Xe)=>{zr(he,Xe).fold(()=>{to(he,Ce)},lt=>{eo(lt,Ce)})},Fo=(he,Ce)=>{eo(he,Ce),to(Ce,he)},_o=(he,Ce)=>{U(Ce,(Xe,lt)=>{const Ct=lt===0?he:Ce[lt-1];Jr(Ct,Xe)})},$o=(he,Ce)=>{U(Ce,Xe=>{to(he,Xe)})},Mo=he=>{he.dom.textContent="",U(lr(he),Ce=>{pi(Ce)})},pi=he=>{const Ce=he.dom;Ce.parentNode!==null&&Ce.parentNode.removeChild(Ce)},Hn=he=>{const Ce=lr(he);Ce.length>0&&_o(he,Ce),pi(he)},ar=(he,Ce)=>Nt.fromDom(he.dom.cloneNode(Ce)),Dr=he=>ar(he,!1),Sr=he=>ar(he,!0),Zr=(he,Ce)=>{const Xe=Nt.fromTag(Ce),lt=Bt(he);return bt(Xe,lt),Xe},go=(he,Ce)=>{const Xe=Zr(he,Ce),lt=lr(Sr(he));return $o(Xe,lt),Xe},oo=(he,Ce)=>{const Xe=Zr(he,Ce);Jr(he,Xe);const lt=lr(he);return $o(Xe,lt),pi(he),Xe},io=["tfoot","thead","tbody","colgroup"],Do=he=>z(io,he),jn=(he,Ce)=>({rows:he,columns:Ce}),Rr=(he,Ce)=>({row:he,column:Ce}),On=(he,Ce,Xe)=>({element:he,rowspan:Ce,colspan:Xe}),Yn=(he,Ce,Xe,lt)=>({element:he,rowspan:Ce,colspan:Xe,isNew:lt}),ir=(he,Ce,Xe,lt,Ct,Wt)=>({element:he,rowspan:Ce,colspan:Xe,row:lt,column:Ct,isLocked:Wt}),kr=(he,Ce,Xe)=>({element:he,cells:Ce,section:Xe}),Er=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),Gt=(he,Ce,Xe)=>({element:he,isNew:Ce,isLocked:Xe}),on=(he,Ce,Xe,lt)=>({element:he,cells:Ce,section:Xe,isNew:lt}),an=(he,Ce,Xe,lt)=>({startRow:he,startCol:Ce,finishRow:Xe,finishCol:lt}),Tn=(he,Ce,Xe)=>({element:he,colspan:Ce,column:Xe}),zn=(he,Ce)=>({element:he,columns:Ce}),Gn=he=>Sn(he)&&y(he.dom.host),Lr=he=>Nt.fromDom(he.dom.getRootNode()),Ur=he=>{const Ce=Lr(he);return Gn(Ce)?A.some(Ce):A.none()},qr=he=>Nt.fromDom(he.dom.host),Cr=he=>{if(y(he.target)){const Ce=Nt.fromDom(he.target);if(cn(Ce)&&wo(Ce)&&he.composed&&he.composedPath){const Xe=he.composedPath();if(Xe)return ve(Xe)}}return A.from(he.target)},wo=he=>y(he.dom.shadowRoot),Nr=he=>{const Ce=Cn(he)?he.dom.parentNode:he.dom;if(Ce==null||Ce.ownerDocument===null)return!1;const Xe=Ce.ownerDocument;return Ur(Nt.fromDom(Ce)).fold(()=>Xe.body.contains(Ce),p(Nr,qr))},Eo=()=>zo(Nt.fromDom(document)),zo=he=>{const Ce=he.dom.body;if(Ce==null)throw new Error("Body is not available yet");return Nt.fromDom(Ce)},Qt=(he,Ce,Xe)=>Z(qn(he,Xe),Ce),Mn=(he,Ce)=>Z(lr(he),Ce),Fn=(he,Ce)=>{let Xe=[];return U(lr(he),lt=>{Ce(lt)&&(Xe=Xe.concat([lt])),Xe=Xe.concat(Fn(lt,Ce))}),Xe},dr=(he,Ce,Xe)=>Qt(he,lt=>sn(lt,Ce),Xe),xr=(he,Ce)=>Mn(he,Xe=>sn(Xe,Ce)),Oo=(he,Ce)=>_n(Ce,he);var mi=(he,Ce,Xe,lt,Ct)=>he(Xe,lt)?A.some(Xe):m(Ct)&&Ct(Xe)?A.none():Ce(Xe,lt,Ct);const Di=(he,Ce,Xe)=>{let lt=he.dom;const Ct=m(Xe)?Xe:T;for(;lt.parentNode;){lt=lt.parentNode;const Wt=Nt.fromDom(lt);if(Ce(Wt))return A.some(Wt);if(Ct(Wt))break}return A.none()},To=(he,Ce,Xe)=>mi((Ct,Wt)=>Wt(Ct),Di,he,Ce,Xe),Ia=(he,Ce)=>{const Xe=Ct=>Ce(Nt.fromDom(Ct));return Y(he.dom.childNodes,Xe).map(Nt.fromDom)},Ds=(he,Ce)=>{const Xe=lt=>{for(let Ct=0;CtDi(he,lt=>sn(lt,Ce),Xe),zi=(he,Ce)=>Ia(he,Xe=>sn(Xe,Ce)),yl=(he,Ce)=>wn(Ce,he),Bs=(he,Ce,Xe)=>mi((Ct,Wt)=>sn(Ct,Wt),fs,he,Ce,Xe),yf=(he,Ce,Xe=O)=>he.exists(lt=>Xe(lt,Ce)),il=he=>{const Ce=[],Xe=lt=>{Ce.push(lt)};for(let lt=0;lthe!=null?Ce(he):A.none(),nh=(he,Ce)=>he?A.some(Ce):A.none(),gp=(he,Ce)=>he.substring(Ce),Qs=(he,Ce,Xe)=>Ce===""||he.length>=Ce.length&&he.substr(Xe,Xe+Ce.length)===Ce,xh=(he,Ce)=>Tc(he,Ce)?gp(he,Ce.length):he,Bl=(he,Ce,Xe=0,lt)=>{const Ct=he.indexOf(Ce,Xe);return Ct!==-1?S(lt)?!0:Ct+Ce.length<=lt:!1},Tc=(he,Ce)=>Qs(he,Ce,0),iu=(he,Ce)=>Qs(he,Ce,he.length-Ce.length),zf=(he=>Ce=>Ce.replace(he,""))(/^\s+|\s+$/g),_s=he=>he.length>0,ma=he=>{const Ce=parseFloat(he);return isNaN(Ce)?A.none():A.some(Ce)},mu=he=>he.style!==void 0&&m(he.style.getPropertyValue),Uc=(he,Ce,Xe)=>{if(!s(Xe))throw console.error("Invalid call to CSS.set. Property ",Ce,":: Value ",Xe,":: Element ",he),new Error("CSS value must be a string: "+Xe);mu(he)&&he.style.setProperty(Ce,Xe)},Kf=(he,Ce)=>{mu(he)&&he.style.removeProperty(Ce)},Al=(he,Ce,Xe)=>{const lt=he.dom;Uc(lt,Ce,Xe)},Wl=(he,Ce)=>{const Xe=he.dom;Ie(Ce,(lt,Ct)=>{Uc(Xe,Ct,lt)})},Ml=(he,Ce)=>{const Xe=he.dom,Ct=window.getComputedStyle(Xe).getPropertyValue(Ce);return Ct===""&&!Nr(he)?Jf(Xe,Ce):Ct},Jf=(he,Ce)=>mu(he)?he.style.getPropertyValue(Ce):"",Nf=(he,Ce)=>{const Xe=he.dom,lt=Jf(Xe,Ce);return A.from(lt).filter(Ct=>Ct.length>0)},Jl=(he,Ce)=>{const Xe=he.dom;Kf(Xe,Ce),yf(it(he,"style").map(zf),"")&&at(he,"style")},Gh=(he,Ce)=>{const Xe=he.dom,lt=Ce.dom;mu(Xe)&&mu(lt)&&(lt.style.cssText=Xe.style.cssText)},ll=(he,Ce,Xe=0)=>it(he,Ce).map(lt=>parseInt(lt,10)).getOr(Xe),Tu=(he,Ce)=>ll(he,Ce,1),gu=he=>vt("col")(he)?ll(he,"span",1)>1:Tu(he,"colspan")>1,ec=he=>Tu(he,"rowspan")>1,Dc=(he,Ce)=>parseInt(Ml(he,Ce),10),tc=v(10),Lp=v(10),rh=(he,Ce)=>rf(he,Ce,P),rf=(he,Ce,Xe)=>pe(lr(he),lt=>sn(lt,Ce)?Xe(lt)?[lt]:[]:rf(lt,Ce,Xe)),of=(he,Ce,Xe=T)=>{if(Xe(Ce))return A.none();if(z(he,Yt(Ce)))return A.some(Ce);const lt=Ct=>sn(Ct,"table")||Xe(Ct);return fs(Ce,he.join(","),lt)},bf=(he,Ce)=>of(["td","th"],he,Ce),vu=he=>rh(he,"th,td"),$d=he=>sn(he,"colgroup")?xr(he,"col"):pe(Kh(he),Ce=>xr(Ce,"col")),bl=(he,Ce)=>Bs(he,"table",Ce),Zu=he=>rh(he,"tr"),Kh=he=>bl(he).fold(v([]),Ce=>xr(Ce,"colgroup")),Cu=(he,Ce)=>j(he,Xe=>{if(Yt(Xe)==="colgroup"){const lt=j($d(Xe),Ct=>{const Wt=ll(Ct,"span",1);return On(Ct,1,Wt)});return kr(Xe,lt,"colgroup")}else{const lt=j(vu(Xe),Ct=>{const Wt=ll(Ct,"rowspan",1),kn=ll(Ct,"colspan",1);return On(Ct,Wt,kn)});return kr(Xe,lt,Ce(Xe))}}),ed=he=>$r(he).map(Ce=>{const Xe=Yt(Ce);return Do(Xe)?Xe:"tbody"}).getOr("tbody"),Bu=he=>{const Ce=Zu(he),lt=[...Kh(he),...Ce];return Cu(lt,ed)},vd=(he,Ce)=>Cu(he,()=>Ce),cs=he=>{let Ce=!1,Xe;return(...lt)=>(Ce||(Ce=!0,Xe=he.apply(null,lt)),Xe)},oh=(he,Ce,Xe,lt)=>{const Ct=he.isiOS()&&/ipad/i.test(Xe)===!0,Wt=he.isiOS()&&!Ct,kn=he.isiOS()||he.isAndroid(),Vn=kn||lt("(pointer:coarse)"),or=Ct||!Wt&&kn&<("(min-device-width:768px)"),Mr=Wt||kn&&!or,no=Ce.isSafari()&&he.isiOS()&&/safari/i.test(Xe)===!1,ti=!Mr&&!or&&!no;return{isiPad:v(Ct),isiPhone:v(Wt),isTablet:v(or),isPhone:v(Mr),isTouch:v(Vn),isAndroid:he.isAndroid,isiOS:he.isiOS,isWebView:v(no),isDesktop:v(ti)}},Jh=(he,Ce)=>{for(let Xe=0;Xe{const Xe=Jh(he,Ce);if(!Xe)return{major:0,minor:0};const lt=Ct=>Number(Ce.replace(Xe,"$"+Ct));return _r(lt(1),lt(2))},xf=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return he.length===0?ep():_h(he,Xe)},ep=()=>_r(0,0),_r=(he,Ce)=>({major:he,minor:Ce}),Ff={nu:_r,detect:xf,unknown:ep},yd=(he,Ce)=>we(Ce.brands,Xe=>{const lt=Xe.brand.toLowerCase();return Y(he,Ct=>{var Wt;return lt===((Wt=Ct.brand)===null||Wt===void 0?void 0:Wt.toLowerCase())}).map(Ct=>({current:Ct.name,version:Ff.nu(parseInt(Xe.version,10),0)}))}),bd=(he,Ce)=>{const Xe=String(Ce).toLowerCase();return Y(he,lt=>lt.search(Xe))},wh=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),zu=(he,Ce)=>bd(he,Ce).map(Xe=>{const lt=Ff.detect(Xe.versionRegexes,Ce);return{current:Xe.name,version:lt}}),va=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,El=he=>Ce=>Bl(Ce,he),_f=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:he=>Bl(he,"edge/")&&Bl(he,"chrome")&&Bl(he,"safari")&&Bl(he,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,va],search:he=>Bl(he,"chrome")&&!Bl(he,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:he=>Bl(he,"msie")||Bl(he,"trident")},{name:"Opera",versionRegexes:[va,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:El("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:El("firefox")},{name:"Safari",versionRegexes:[va,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:he=>(Bl(he,"safari")||Bl(he,"mobile/"))&&Bl(he,"applewebkit")}],$f=[{name:"Windows",search:El("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:he=>Bl(he,"iphone")||Bl(he,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:El("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:El("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:El("linux"),versionRegexes:[]},{name:"Solaris",search:El("sunos"),versionRegexes:[]},{name:"FreeBSD",search:El("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:El("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ih={browsers:v(_f),oses:v($f)},yu="Edge",jc="Chromium",Nh="IE",af="Opera",td="Firefox",sf="Safari",Bc=()=>Vd({current:void 0,version:Ff.unknown()}),Vd=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isEdge:lt(yu),isChromium:lt(jc),isIE:lt(Nh),isOpera:lt(af),isFirefox:lt(td),isSafari:lt(sf)}},xd={unknown:Bc,nu:Vd,edge:v(yu),chromium:v(jc),ie:v(Nh),opera:v(af),firefox:v(td),safari:v(sf)},vc="Windows",gs="iOS",yc="Android",Cc="Linux",Nu="macOS",Gs="Solaris",Ks="FreeBSD",Ac="ChromeOS",_d=()=>Fh({current:void 0,version:Ff.unknown()}),Fh=he=>{const Ce=he.current,Xe=he.version,lt=Ct=>()=>Ce===Ct;return{current:Ce,version:Xe,isWindows:lt(vc),isiOS:lt(gs),isAndroid:lt(yc),isMacOS:lt(Nu),isLinux:lt(Cc),isSolaris:lt(Gs),isFreeBSD:lt(Ks),isChromeOS:lt(Ac)}},$h={unknown:_d,nu:Fh,windows:v(vc),ios:v(gs),android:v(yc),linux:v(Cc),macos:v(Nu),solaris:v(Gs),freebsd:v(Ks),chromeos:v(Ac)},ah={detect:(he,Ce,Xe)=>{const lt=ih.browsers(),Ct=ih.oses(),Wt=Ce.bind(or=>yd(lt,or)).orThunk(()=>wh(lt,he)).fold(xd.unknown,xd.nu),kn=zu(Ct,he).fold($h.unknown,$h.nu),Vn=oh(kn,Wt,he,Xe);return{browser:Wt,os:kn,deviceType:Vn}}},Au=he=>window.matchMedia(he).matches;let lf=cs(()=>ah.detect(window.navigator.userAgent,A.from(window.navigator.userAgentData),Au));const wf=()=>lf(),vs=(he,Ce)=>{const Xe=(Vn,or)=>{if(!a(or)&&!or.match(/^[0-9]+$/))throw new Error(he+".set accepts only positive integer values. Value was "+or);const Mr=Vn.dom;mu(Mr)&&(Mr.style[he]=or+"px")},lt=Vn=>{const or=Ce(Vn);if(or<=0||or===null){const Mr=Ml(Vn,he);return parseFloat(Mr)||0}return or},Ct=lt,Wt=(Vn,or)=>re(or,(Mr,no)=>{const ti=Ml(Vn,no),ki=ti===void 0?0:parseInt(ti,10);return isNaN(ki)?Mr:Mr+ki},0);return{set:Xe,get:lt,getOuter:Ct,aggregate:Wt,max:(Vn,or,Mr)=>{const no=Wt(Vn,Mr);return or>no?or-no:0}}},cl=(he,Ce)=>ma(he).getOr(Ce),bc=(he,Ce,Xe)=>cl(Ml(he,Ce),Xe),nc=(he,Ce,Xe,lt)=>{const Ct=bc(he,`padding-${Xe}`,0),Wt=bc(he,`padding-${lt}`,0),kn=bc(he,`border-${Xe}-width`,0),Vn=bc(he,`border-${lt}-width`,0);return Ce-Ct-Wt-kn-Vn},Qc=(he,Ce)=>{const Xe=he.dom,lt=Xe.getBoundingClientRect().width||Xe.offsetWidth;return Ce==="border-box"?lt:nc(he,lt,"left","right")},ts=he=>bc(he,"height",he.dom.offsetHeight),wi=he=>bc(he,"width",he.dom.offsetWidth),bu=he=>Qc(he,"content-box"),wd=vs("width",he=>he.dom.offsetWidth),Ol=he=>wd.get(he),ds=he=>wd.getOuter(he),zc=bu,Ud=wi,cf=(he,Ce,Xe)=>{const lt=he.cells,Ct=lt.slice(0,Ce),Wt=lt.slice(Ce),kn=Ct.concat(Xe).concat(Wt);return rs(he,kn)},Of=(he,Ce,Xe)=>cf(he,Ce,[Xe]),aa=(he,Ce,Xe)=>{const lt=he.cells;lt[Ce]=Xe},rs=(he,Ce)=>on(he.element,Ce,he.section,he.isNew),Mu=(he,Ce)=>{const Xe=he.cells,lt=j(Xe,Ce);return on(he.element,lt,he.section,he.isNew)},Ri=(he,Ce)=>he.cells[Ce],Gc=(he,Ce)=>Ri(he,Ce).element,qu=he=>he.cells.length,zl=he=>{const Ce=te(he,Xe=>Xe.section==="colgroup");return{rows:Ce.fail,cols:Ce.pass}},xc=(he,Ce,Xe)=>{const lt=j(he.cells,Xe);return on(Ce(he.element),lt,he.section,!0)},Kc="data-snooker-locked-cols",jd=he=>it(he,Kc).bind(Ce=>A.from(Ce.match(/\d+/g))).map(Ce=>ce(Ce,P)),ii=he=>{const Ce=re(zl(he).rows,(lt,Ct)=>(U(Ct.cells,(Wt,kn)=>{Wt.isLocked&&(lt[kn]=!0)}),lt),{}),Xe=Oe(Ce,(lt,Ct)=>parseInt(Ct,10));return de(Xe)},nd=(he,Ce)=>he+","+Ce,al=(he,Ce,Xe)=>A.from(he.access[nd(Ce,Xe)]),Yl=(he,Ce,Xe)=>{const lt=uf(he,Ct=>Xe(Ce,Ct.element));return lt.length>0?A.some(lt[0]):A.none()},uf=(he,Ce)=>{const Xe=pe(he.all,lt=>lt.cells);return Z(Xe,Ce)},hs=he=>{const Ce={};let Xe=0;return U(he.cells,lt=>{const Ct=lt.colspan;Q(Ct,Wt=>{const kn=Xe+Wt;Ce[kn]=Tn(lt.element,Ct,kn)}),Xe+=Ct}),Ce},Mc=he=>{const Ce={},Xe=[],Ct=ve(he).map(xi=>xi.element).bind(bl).bind(jd).getOr({});let Wt=0,kn=0,Vn=0;const{pass:or,fail:Mr}=te(he,xi=>xi.section==="colgroup");U(Mr,xi=>{const fi=[];U(xi.cells,Vi=>{let Xo=0;for(;Ce[nd(Vn,Xo)]!==void 0;)Xo++;const oi=Ue(Ct,Xo.toString()),wa=ir(Vi.element,Vi.rowspan,Vi.colspan,Vn,Xo,oi);for(let Pa=0;Pa{const fi=hs(xi);return{colgroups:[zn(xi.element,ke(fi))],columns:fi}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:jn(Wt,kn),access:Ce,all:Xe,columns:no,colgroups:ti}},Ca={fromTable:he=>{const Ce=Bu(he);return Mc(Ce)},generate:Mc,getAt:al,findItem:Yl,filterItems:uf,justCells:he=>pe(he.all,Ce=>Ce.cells),justColumns:he=>ke(he.columns),hasColumns:he=>Te(he.columns).length>0,getColumnAt:(he,Ce)=>A.from(he.columns[Ce])},Ls=(he,Ce=P)=>{const Xe=he.grid,lt=Q(Xe.columns,_),Ct=Q(Xe.rows,_);return j(lt,Wt=>Ec(()=>pe(Ct,Mr=>Ca.getAt(he,Mr,Wt).filter(no=>no.column===Wt).toArray()),Mr=>Mr.colspan===1&&Ce(Mr.element),()=>Ca.getAt(he,0,Wt)))},Ec=(he,Ce,Xe)=>{const lt=he();return Y(lt,Ce).orThunk(()=>A.from(lt[0]).orThunk(Xe)).map(kn=>kn.element)},_u=he=>{const Ce=he.grid,Xe=Q(Ce.rows,_),lt=Q(Ce.columns,_);return j(Xe,Ct=>Ec(()=>pe(lt,or=>Ca.getAt(he,Ct,or).filter(Mr=>Mr.row===Ct).fold(v([]),Mr=>[Mr])),or=>or.rowspan===1,()=>Ca.getAt(he,Ct,0)))},wt=(he,Ce)=>{if(Ce<0||Ce>=he.length-1)return A.none();const Xe=he[Ce].fold(()=>{const Ct=ae(he.slice(0,Ce));return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:0})),lt=he[Ce+1].fold(()=>{const Ct=he.slice(Ce+1);return we(Ct,(Wt,kn)=>Wt.map(Vn=>({value:Vn,delta:kn+1})))},Ct=>A.some({value:Ct,delta:1}));return Xe.bind(Ct=>lt.map(Wt=>{const kn=Wt.delta+Ct.delta;return Math.abs(Wt.value-Ct.value)/kn}))},Kt=(he,Ce)=>Xe=>En(Xe)==="rtl"?Ce:he,En=he=>Ml(he,"direction")==="rtl"?"rtl":"ltr",pr=vs("height",he=>{const Ce=he.dom;return Nr(he)?Ce.getBoundingClientRect().height:Ce.offsetHeight}),wr=he=>pr.get(he),uo=he=>pr.getOuter(he),Bi=ts,ya=(he,Ce)=>({left:he,top:Ce,translate:(lt,Ct)=>ya(he+lt,Ce+Ct)}),Ni=ya,Qi=he=>{const Ce=he.getBoundingClientRect();return Ni(Ce.left,Ce.top)},Ws=(he,Ce)=>he!==void 0?he:Ce!==void 0?Ce:0,nl=he=>{const Ce=he.dom.ownerDocument,Xe=Ce.body,lt=Ce.defaultView,Ct=Ce.documentElement;if(Xe===he.dom)return Ni(Xe.offsetLeft,Xe.offsetTop);const Wt=Ws(lt==null?void 0:lt.pageYOffset,Ct.scrollTop),kn=Ws(lt==null?void 0:lt.pageXOffset,Ct.scrollLeft),Vn=Ws(Ct.clientTop,Xe.clientTop),or=Ws(Ct.clientLeft,Xe.clientLeft);return Fs(he).translate(kn-or,Wt-Vn)},Fs=he=>{const Ce=he.dom,lt=Ce.ownerDocument.body;return lt===Ce?Ni(lt.offsetLeft,lt.offsetTop):Nr(he)?Qi(Ce):Ni(0,0)},Wu=(he,Ce)=>({row:he,y:Ce}),Ki=(he,Ce)=>({col:he,x:Ce}),Aa=he=>nl(he).left+ds(he),Pl=he=>nl(he).left,Vf=(he,Ce)=>Ki(he,Pl(Ce)),sh=(he,Ce)=>Ki(he,Aa(Ce)),_c=he=>nl(he).top,Xl=(he,Ce)=>Wu(he,_c(Ce)),pl=(he,Ce)=>Wu(he,_c(Ce)+uo(Ce)),Pc=(he,Ce,Xe)=>{if(Xe.length===0)return[];const lt=j(Xe.slice(1),(Wt,kn)=>Wt.map(Vn=>he(kn,Vn))),Ct=Xe[Xe.length-1].map(Wt=>Ce(Xe.length-1,Wt));return lt.concat([Ct])},Uf=he=>-he,Os={delta:_,positions:he=>Pc(Xl,pl,he),edge:_c},rd=Kt({delta:_,edge:Pl,positions:he=>Pc(Vf,sh,he)},{delta:Uf,edge:Aa,positions:he=>Pc(sh,Vf,he)}),tp={delta:(he,Ce)=>rd(Ce).delta(he,Ce),positions:(he,Ce)=>rd(Ce).positions(he,Ce),edge:he=>rd(he).edge(he)},kt={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},It=(()=>{const he="[0-9]+",Xe="[eE]"+("[+-]?"+he),lt="\\.",Ct=Vn=>`(?:${Vn})?`,kn=`[+-]?(?:${["Infinity",he+lt+Ct(he)+Ct(Xe),lt+he+Ct(Xe),he+Ct(Xe)].join("|")})`;return new RegExp(`^(${kn})(.*)$`)})(),Ut=(he,Ce)=>$(Ce,Xe=>$(kt[Xe],lt=>he===lt)),J=(he,Ce)=>A.from(It.exec(he)).bind(lt=>{const Ct=Number(lt[1]),Wt=lt[2];return Ut(Wt,Ce)?A.some({value:Ct,unit:Wt}):A.none()}),le=/(\d+(\.\d+)?)%/,ne=/(\d+(\.\d+)?)px|em/,V=vt("col"),ie=vt("tr"),ge=(he,Ce,Xe)=>{const lt=vr(he).getOrThunk(()=>zo(Un(he)));return Ce(he)/Xe(lt)*100},xe=(he,Ce)=>{Al(he,"width",Ce+"px")},Ee=(he,Ce)=>{Al(he,"width",Ce+"%")},Ne=(he,Ce)=>{Al(he,"height",Ce+"px")},et=he=>{Jl(he,"height")},rt=he=>Bi(he)+"px",dt=(he,Ce,Xe,lt)=>{const Ct=bl(he).map(Wt=>{const kn=Xe(Wt);return Math.floor(Ce/100*kn)}).getOr(Ce);return lt(he,Ct),Ct},gt=(he,Ce,Xe,lt)=>{const Ct=parseFloat(he);return iu(he,"%")&&Yt(Ce)!=="table"?dt(Ce,Ct,Xe,lt):Ct},Rt=he=>{const Ce=rt(he);return Ce?gt(Ce,he,wr,Ne):wr(he)},Mt=(he,Ce,Xe)=>{const lt=Xe(he),Ct=Tu(he,Ce);return lt/Ct},Xt=(he,Ce)=>Nf(he,Ce).orThunk(()=>it(he,Ce).map(Xe=>Xe+"px")),dn=he=>Xt(he,"width"),bn=he=>Xt(he,"height"),vn=he=>ge(he,Ol,zc),Ln=he=>V(he)?Ol(he):Ud(he),gn=he=>ie(he)?wr(he):Mt(he,"rowspan",Rt),Jn=he=>dn(he).bind(Xe=>J(Xe,["fixed","relative","empty"])),pn=(he,Ce,Xe)=>{Al(he,"width",Ce+Xe)},In=he=>Ol(he)+"px",Ir=he=>wr(he)+"px",Pr=he=>ge(he,Ol,zc)+"%",Gr=he=>dn(he).exists(Ce=>le.test(Ce)),ro=he=>dn(he).exists(Ce=>ne.test(Ce)),po=he=>dn(he).isNone(),Wo=v(le),si=vt("col"),Bo=he=>dn(he).getOrThunk(()=>Ln(he)+"px"),Go=he=>bn(he).getOrThunk(()=>gn(he)+"px"),Yo=he=>j(Ca.justColumns(he),Ce=>A.from(Ce.element)),Wi=he=>{const Ce=wf().browser,Xe=Ce.isChromium()||Ce.isFirefox();return si(he)?Xe:!0},Ho=(he,Ce,Xe,lt,Ct,Wt)=>he.filter(lt).fold(()=>Wt(wt(Xe,Ce)),kn=>Ct(kn)),jo=(he,Ce,Xe,lt)=>{const Ct=Ls(he),Wt=Ca.hasColumns(he)?Yo(he):Ct,kn=[A.some(tp.edge(Ce))].concat(j(tp.positions(Ct,Ce),or=>or.map(Mr=>Mr.x))),Vn=x(gu);return j(Wt,(or,Mr)=>Ho(or,Mr,kn,Vn,no=>{if(Wi(no))return Xe(no);{const ti=nf(Ct[Mr],_);return Ho(ti,Mr,kn,Vn,ki=>lt(A.some(Ol(ki))),lt)}},lt))},Yi=he=>he.map(Ce=>Ce+"px").getOr(""),ai=(he,Ce)=>jo(he,Ce,Bo,Yi),Hi=(he,Ce,Xe)=>jo(he,Ce,vn,lt=>lt.fold(()=>Xe.minCellWidth(),Ct=>Ct/Xe.pixelWidth()*100)),Ai=(he,Ce,Xe)=>jo(he,Ce,Ln,lt=>lt.getOrThunk(Xe.minCellWidth)),es=(he,Ce,Xe,lt)=>{const Ct=_u(he),Wt=j(he.all,Vn=>A.some(Vn.element)),kn=[A.some(Os.edge(Ce))].concat(j(Os.positions(Ct,Ce),Vn=>Vn.map(or=>or.y)));return j(Wt,(Vn,or)=>Ho(Vn,or,kn,P,Xe,lt))},Ar=(he,Ce)=>es(he,Ce,gn,Xe=>Xe.getOrThunk(Lp)),ns=(he,Ce)=>es(he,Ce,Go,Yi),$s=(he,Ce)=>()=>Nr(he)?Ce(he):parseFloat(Nf(he,"width").getOr("0")),Ts=he=>{const Ce=$s(he,Ol),Xe=v(0);return{width:Ce,pixelWidth:Ce,getWidths:(Ct,Wt)=>Ai(Ct,he,Wt),getCellDelta:Xe,singleColumnWidth:v([0]),minCellWidth:Xe,setElementWidth:c,adjustTableWidth:c,isRelative:!0,label:"none"}},rl=he=>{const Ce=$s(he,or=>parseFloat(Pr(or))),Xe=$s(he,Ol);return{width:Ce,pixelWidth:Xe,getWidths:(or,Mr)=>Hi(or,he,Mr),getCellDelta:or=>or/Xe()*100,singleColumnWidth:(or,Mr)=>[100-or],minCellWidth:()=>tc()/Xe()*100,setElementWidth:Ee,adjustTableWidth:or=>{const Mr=Ce(),no=or/100*Mr,ti=Mr+no;Ee(he,ti)},isRelative:!0,label:"percent"}},Hs=he=>{const Ce=$s(he,Ol);return{width:Ce,pixelWidth:Ce,getWidths:(kn,Vn)=>Ai(kn,he,Vn),getCellDelta:_,singleColumnWidth:(kn,Vn)=>[Math.max(tc(),kn+Vn)-kn],minCellWidth:tc,setElementWidth:xe,adjustTableWidth:kn=>{const Vn=Ce()+kn;xe(he,Vn)},isRelative:!1,label:"pixel"}},ys=(he,Ce)=>Wo().exec(Ce)!==null?rl(he):Hs(he),mt={getTableSize:he=>dn(he).fold(()=>Ts(he),Xe=>ys(he,Xe)),pixelSize:Hs,percentageSize:rl,noneSize:Ts},Tt=(he,Ce,Xe,lt,Ct,Wt)=>({minRow:he,minCol:Ce,maxRow:Xe,maxCol:lt,allCells:Ct,selectedCells:Wt}),xn=(he,Ce)=>{const Xe=he.grid.columns;let Ct=he.grid.rows,Wt=Xe,kn=0,Vn=0;const or=[],Mr=[];return Ie(he.access,no=>{if(or.push(no),Ce(no)){Mr.push(no);const ti=no.row,ki=ti+no.rowspan-1,xi=no.column,fi=xi+no.colspan-1;tikn&&(kn=ki),xiVn&&(Vn=fi)}}),Tt(Ct,Wt,kn,Vn,or,Mr)},Nn=(he,Ce,Xe)=>{const lt=he[Xe].element,Ct=Nt.fromTag("td");to(Ct,Nt.fromTag("br")),(Ce?to:Yr)(lt,Ct)},yr=(he,Ce,Xe,lt)=>{const Ct=Z(he,Vn=>Vn.section!=="colgroup"),Wt=Ce.grid.columns,kn=Ce.grid.rows;for(let Vn=0;VnXe.maxRow||MrXe.maxCol||(Ca.getAt(Ce,Vn,Mr).filter(lt).isNone()?Nn(Ct,or,Vn):or=!0)}},so=(he,Ce,Xe,lt)=>{Ie(Xe.columns,kn=>{(kn.columnCe.maxCol)&&pi(kn.element)});const Ct=Z(rh(he,"tr"),kn=>kn.dom.childElementCount===0);U(Ct,pi),(Ce.minCol===Ce.maxCol||Ce.minRow===Ce.maxRow)&&U(rh(he,"th,td"),kn=>{at(kn,"rowspan"),at(kn,"colspan")}),at(he,Kc),at(he,"data-snooker-col-series"),mt.getTableSize(he).adjustTableWidth(lt)},No=(he,Ce,Xe,lt)=>{if(lt.minCol===0&&Ce.grid.columns===lt.maxCol+1)return 0;const Ct=Ai(Ce,he,Xe),Wt=re(Ct,(Mr,no)=>Mr+no,0),or=re(Ct.slice(lt.minCol,lt.maxCol+1),(Mr,no)=>Mr+no,0)/Wt*Xe.pixelWidth()-Xe.pixelWidth();return Xe.getCellDelta(or)},ui=(he,Ce)=>{const Xe=ki=>sn(ki.element,Ce),lt=Sr(he),Ct=Bu(lt),Wt=mt.getTableSize(he),kn=Ca.generate(Ct),Vn=xn(kn,Xe),or="th:not("+Ce+"),td:not("+Ce+")",Mr=rf(lt,"th,td",ki=>sn(ki,or));U(Mr,pi),yr(Ct,kn,Vn,Xe);const no=Ca.fromTable(he),ti=No(he,no,Wt,Vn);return so(lt,Vn,kn,ti),lt},ga=" ",ua=((he,Ce)=>{const Xe=Wt=>{if(!he(Wt))throw new Error("Can only get "+Ce+" value of a "+Ce+" node");return lt(Wt).getOr("")},lt=Wt=>he(Wt)?A.from(Wt.dom.nodeValue):A.none();return{get:Xe,getOption:lt,set:(Wt,kn)=>{if(!he(Wt))throw new Error("Can only set raw "+Ce+" value of a "+Ce+" node");Wt.dom.nodeValue=kn}}})(Cn,"text"),Cs=he=>ua.get(he),ul=he=>ua.getOption(he),Jc=(he,Ce)=>ua.set(he,Ce),Is=he=>Yt(he)==="img"?1:ul(he).fold(()=>lr(he).length,Ce=>Ce.length),Hc=he=>ul(he).filter(Ce=>Ce.trim().length!==0||Ce.indexOf(ga)>-1).isSome(),Nl=he=>Ot(he)&&Dt(he,"contenteditable")==="false",lh=["img","br"],r0=he=>Hc(he)||z(lh,Yt(he))||Nl(he),ch=he=>Ds(he,r0),gg=he=>Ip(he,r0),Ip=(he,Ce)=>{const Xe=lt=>{const Ct=lr(lt);for(let Wt=Ct.length-1;Wt>=0;Wt--){const kn=Ct[Wt];if(Ce(kn))return A.some(kn);const Vn=Xe(kn);if(Vn.isSome())return Vn}return A.none()};return Xe(he)},X0={scope:["row","col"]},Vh=he=>()=>{const Ce=Nt.fromTag("td",he.dom);return to(Ce,Nt.fromTag("br",he.dom)),Ce},Pu=he=>()=>Nt.fromTag("col",he.dom),Uh=he=>()=>Nt.fromTag("colgroup",he.dom),ss=he=>()=>Nt.fromTag("tr",he.dom),Gl=(he,Ce,Xe)=>{const lt=go(he,Ce);return Ie(Xe,(Ct,Wt)=>{Ct===null?at(lt,Wt):st(lt,Wt,Ct)}),lt},Sf=he=>he,Nc=(he,Ce,Xe)=>ch(he).map(Ct=>{const Wt=Xe.join(","),kn=dr(Ct,Wt,Vn=>An(Vn,he));return K(kn,(Vn,or)=>{const Mr=Dr(or);return to(Vn,Mr),Mr},Ce)}).getOr(Ce),o0=(he,Ce)=>{Ie(X0,(Xe,lt)=>it(he,lt).filter(Ct=>z(Xe,Ct)).each(Ct=>st(Ce,lt,Ct)))},i0=(he,Ce,Xe)=>{const lt=(kn,Vn)=>{Gh(kn.element,Vn),Jl(Vn,"height"),kn.colspan!==1&&Jl(Vn,"width")},Ct=kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom),or=Xe.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Mr=or.length>0?Nc(kn.element,Vn,or):Vn;return to(Mr,Nt.fromTag("br")),lt(kn,Vn),o0(kn.element,Vn),he(kn.element,Vn),Vn};return{col:kn=>{const Vn=Nt.fromTag(Yt(kn.element),Ce.dom);return lt(kn,Vn),he(kn.element,Vn),Vn},colgroup:Uh(Ce),row:ss(Ce),cell:Ct,replace:Gl,colGap:Pu(Ce),gap:Vh(Ce)}},a0=he=>({col:Pu(he),colgroup:Uh(he),row:ss(he),cell:Vh(he),replace:Sf,colGap:Pu(he),gap:Vh(he)}),wu=(he,Ce)=>{const lt=(Ce||document).createElement("div");return lt.innerHTML=he,lr(Nt.fromDom(lt))},Dp=he=>j(he,Nt.fromDom),Rm=he=>Ce=>Ce.options.get(he),nm="100%",G0=he=>{var Ce;const Xe=he.dom,lt=(Ce=Xe.getParent(he.selection.getStart(),Xe.isBlock))!==null&&Ce!==void 0?Ce:he.getBody();return zc(Nt.fromDom(lt))+"px"},vg=(he,Ce)=>yp(he)||!hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},s0=(he,Ce)=>yp(he)||hb(he)?Ce:l0(he)?{...Ce,width:G0(he)}:{...Ce,width:nm},H1=he=>{const Ce=he.options.register;Ce("table_clone_elements",{processor:"string[]"}),Ce("table_use_colgroups",{processor:"boolean",default:!0}),Ce("table_header_type",{processor:Xe=>{const lt=z(["section","cells","sectionCells","auto"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),Ce("table_sizing_mode",{processor:"string",default:"auto"}),Ce("table_default_attributes",{processor:"object",default:{border:"1"}}),Ce("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),Ce("table_column_resizing",{processor:Xe=>{const lt=z(["preservetable","resizetable"],Xe);return lt?{value:Xe,valid:lt}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),Ce("table_resize_bars",{processor:"boolean",default:!0}),Ce("table_style_by_css",{processor:"boolean",default:!0}),Ce("table_merge_content_on_paste",{processor:"boolean",default:!0})},VO=he=>A.from(he.options.get("table_clone_elements")),rm=he=>{const Ce=he.options.get("object_resizing");return z(Ce.split(","),"table")},z_=Rm("table_header_type"),db=Rm("table_column_resizing"),lu=he=>db(he)==="preservetable",sy=he=>db(he)==="resizetable",Oh=Rm("table_sizing_mode"),kf=he=>Oh(he)==="relative",l0=he=>Oh(he)==="fixed",yp=he=>Oh(he)==="responsive",Bp=Rm("table_resize_bars"),hb=Rm("table_style_by_css"),Lm=Rm("table_merge_content_on_paste"),Qd=he=>{const Ce=he.options,Xe=Ce.get("table_default_attributes");return Ce.isSet("table_default_attributes")?Xe:s0(he,Xe)},Z1=he=>{const Ce=he.options,Xe=Ce.get("table_default_styles");return Ce.isSet("table_default_styles")?Xe:vg(he,Xe)},N_=Rm("table_use_colgroups"),K0=he=>Bs(he,"[contenteditable]"),ly=(he,Ce=!1)=>Nr(he)?he.dom.isContentEditable:K0(he).fold(v(Ce),Xe=>yg(Xe)==="true"),yg=he=>he.dom.contentEditable,Im=he=>Nt.fromDom(he.getBody()),Dm=he=>Ce=>An(Ce,Im(he)),Sh=he=>{at(he,"data-mce-style");const Ce=Xe=>at(Xe,"data-mce-style");U(vu(he),Ce),U($d(he),Ce),U(Zu(he),Ce)},zp=he=>Nt.fromDom(he.selection.getStart()),J0=he=>he.getBoundingClientRect().width,F_=he=>he.getBoundingClientRect().height,q1=he=>(Ce,Xe)=>{const lt=Ce.dom.getStyle(Xe,he)||Ce.dom.getAttrib(Xe,he);return A.from(lt).filter(_s)},$_=q1("width"),Dx=q1("height"),UO=he=>/^(\d+(\.\d+)?)%$/.test(he),W1=he=>/^(\d+(\.\d+)?)px$/.test(he),e1=he=>To(he,vt("table")).exists(ly),cu=(he,Ce)=>{const Xe=Ce.column,lt=Ce.column+Ce.colspan-1,Ct=Ce.row,Wt=Ce.row+Ce.rowspan-1;return Xe<=he.finishCol&<>=he.startCol&&Ct<=he.finishRow&&Wt>=he.startRow},Za=(he,Ce)=>Ce.column>=he.startCol&&Ce.column+Ce.colspan-1<=he.finishCol&&Ce.row>=he.startRow&&Ce.row+Ce.rowspan-1<=he.finishRow,sa=(he,Ce)=>{let Xe=!0;const lt=C(Za,Ce);for(let Ct=Ce.startRow;Ct<=Ce.finishRow;Ct++)for(let Wt=Ce.startCol;Wt<=Ce.finishCol;Wt++)Xe=Xe&&Ca.getAt(he,Ct,Wt).exists(lt);return Xe?A.some(Ce):A.none()},Bm=(he,Ce)=>an(Math.min(he.row,Ce.row),Math.min(he.column,Ce.column),Math.max(he.row+he.rowspan-1,Ce.row+Ce.rowspan-1),Math.max(he.column+he.colspan-1,Ce.column+Ce.colspan-1)),t1=(he,Ce,Xe)=>{const lt=Ca.findItem(he,Ce,An),Ct=Ca.findItem(he,Xe,An);return lt.bind(Wt=>Ct.map(kn=>Bm(Wt,kn)))},n1=(he,Ce,Xe)=>t1(he,Ce,Xe).bind(lt=>sa(he,lt)),Bx=(he,Ce,Xe,lt)=>Ca.findItem(he,Ce,An).bind(Ct=>{const Wt=Xe>0?Ct.row+Ct.rowspan-1:Ct.row,kn=lt>0?Ct.column+Ct.colspan-1:Ct.column;return Ca.getAt(he,Wt+Xe,kn+lt).map(or=>or.element)}),zm=(he,Ce,Xe)=>t1(he,Ce,Xe).map(lt=>{const Ct=Ca.filterItems(he,C(cu,lt));return j(Ct,Wt=>Wt.element)}),Rl=(he,Ce)=>{const Xe=(lt,Ct)=>Kn(Ct,lt);return Ca.findItem(he,Ce,Xe).map(lt=>lt.element)},zx=(he,Ce,Xe)=>bl(he).bind(lt=>{const Ct=Nm(lt);return Bx(Ct,he,Ce,Xe)}),pb=(he,Ce,Xe)=>{const lt=Nm(he);return zm(lt,Ce,Xe)},V_=(he,Ce,Xe,lt,Ct)=>{const Wt=Nm(he),kn=An(he,Xe)?A.some(Ce):Rl(Wt,Ce),Vn=An(he,Ct)?A.some(lt):Rl(Wt,lt);return kn.bind(or=>Vn.bind(Mr=>zm(Wt,or,Mr)))},Lo=(he,Ce,Xe)=>{const lt=Nm(he);return n1(lt,Ce,Xe)},Nm=Ca.fromTable;var D4=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],bg=()=>{const he=Mr=>Nt.fromDom(Mr.dom.cloneNode(!1)),Ce=Mr=>Zn(Mr).dom,Xe=Mr=>cn(Mr)?Yt(Mr)==="body"?!0:z(D4,Yt(Mr)):!1,lt=Mr=>cn(Mr)?z(["br","img","hr","input"],Yt(Mr)):!1,Ct=Mr=>cn(Mr)&&Dt(Mr,"contenteditable")==="false",Wt=(Mr,no)=>Mr.dom.compareDocumentPosition(no.dom),kn=(Mr,no)=>{const ti=Bt(Mr);bt(no,ti)},Vn=Mr=>{const no=Yt(Mr);return z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],no)},or=Mr=>cn(Mr)?it(Mr,"lang"):A.none();return{up:v({selector:fs,closest:Bs,predicate:Di,all:qn}),down:v({selector:Oo,predicate:Fn}),styles:v({get:Ml,getRaw:Nf,set:Al,remove:Jl}),attrs:v({get:Dt,set:st,remove:at,copyTo:kn}),insert:v({before:eo,after:Jr,afterAll:_o,append:to,appendAll:$o,prepend:Yr,wrap:Fo}),remove:v({unwrap:Hn,remove:pi}),create:v({nu:Nt.fromTag,clone:he,text:Nt.fromText}),query:v({comparePosition:Wt,prevSibling:gr,nextSibling:sr}),property:v({children:lr,name:Yt,parent:$r,document:Ce,isText:Cn,isComment:Et,isElement:cn,isSpecial:Vn,getLanguage:or,getText:Cs,setText:Jc,isBoundary:Xe,isEmptyTag:lt,isNonEditable:Ct}),eq:An,is:fr}};const B4=(he,Ce,Xe,lt)=>{const Ct=Xe[0],Wt=Xe.slice(1);return lt(he,Ce,Ct,Wt)},c0=(he,Ce,Xe)=>Xe.length>0?B4(he,Ce,Xe,mb):A.none(),mb=(he,Ce,Xe,lt)=>{const Ct=Ce(he,Xe);return K(lt,(Wt,kn)=>{const Vn=Ce(he,kn);return od(he,Wt,Vn)},Ct)},od=(he,Ce,Xe)=>Ce.bind(lt=>Xe.filter(C(he.eq,lt))),U_=(he,Ce)=>C(he.eq,Ce),cy=(he,Ce,Xe,lt=T)=>{const Ct=[Ce].concat(he.up().all(Ce)),Wt=[Xe].concat(he.up().all(Xe)),kn=no=>ee(no,lt).fold(()=>no,ki=>no.slice(0,ki+1)),Vn=kn(Ct),or=kn(Wt),Mr=Y(Vn,no=>$(or,U_(he,no)));return{firstpath:Vn,secondpath:or,shared:Mr}},wc=c0,xg=cy,Nx=bg(),kh=(he,Ce)=>wc(Nx,(Xe,lt)=>he(lt),Ce),j_=(he,Ce,Xe)=>xg(Nx,he,Ce,Xe),gb=he=>fs(he,"table"),Y1=(he,Ce,Xe)=>{const lt=Ct=>Wt=>Xe!==void 0&&Xe(Wt)||An(Wt,Ct);return An(he,Ce)?A.some({boxes:A.some([he]),start:he,finish:Ce}):gb(he).bind(Ct=>gb(Ce).bind(Wt=>{if(An(Ct,Wt))return A.some({boxes:pb(Ct,he,Ce),start:he,finish:Ce});if(Kn(Ct,Wt)){const kn=dr(Ce,"td,th",lt(Ct)),Vn=kn.length>0?kn[kn.length-1]:Ce;return A.some({boxes:V_(Ct,he,Ct,Ce,Wt),start:he,finish:Vn})}else if(Kn(Wt,Ct)){const kn=dr(he,"td,th",lt(Wt)),Vn=kn.length>0?kn[kn.length-1]:he;return A.some({boxes:V_(Wt,he,Ct,Ce,Wt),start:he,finish:Vn})}else return j_(he,Ce).shared.bind(kn=>Bs(kn,"table",Xe).bind(Vn=>{const or=dr(Ce,"td,th",lt(Vn)),Mr=or.length>0?or[or.length-1]:Ce,no=dr(he,"td,th",lt(Vn)),ti=no.length>0?no[no.length-1]:he;return A.some({boxes:V_(Vn,he,Ct,Ce,Wt),start:ti,finish:Mr})}))}))},uy=(he,Ce)=>{const Xe=Oo(he,Ce);return Xe.length>0?A.some(Xe):A.none()},np=(he,Ce)=>Y(he,Xe=>sn(Xe,Ce)),jO=(he,Ce,Xe)=>yl(he,Ce).bind(lt=>yl(he,Xe).bind(Ct=>kh(gb,[lt,Ct]).map(Wt=>({first:lt,last:Ct,table:Wt})))),_g=(he,Ce)=>fs(he,"table").bind(Xe=>yl(Xe,Ce).bind(lt=>Y1(lt,he).bind(Ct=>Ct.boxes.map(Wt=>({boxes:Wt,start:Ct.start,finish:Ct.finish}))))),Q_=(he,Ce,Xe,lt,Ct)=>np(he,Ct).bind(Wt=>zx(Wt,Ce,Xe).bind(kn=>_g(kn,lt))),wg=(he,Ce)=>uy(he,Ce),X1=(he,Ce,Xe)=>jO(he,Ce,Xe).bind(lt=>{const Ct=or=>An(he,or),Wt="thead,tfoot,tbody,table",kn=fs(lt.first,Wt,Ct),Vn=fs(lt.last,Wt,Ct);return kn.bind(or=>Vn.bind(Mr=>An(or,Mr)?Lo(lt.table,lt.first,lt.last):A.none()))}),om=_,H_=he=>{const Ce=(lt,Ct)=>it(lt,Ct).exists(Wt=>parseInt(Wt,10)>1),Xe=lt=>Ce(lt,"rowspan")||Ce(lt,"colspan");return he.length>0&&se(he,Xe)?A.some(he):A.none()},QO=(he,Ce,Xe)=>Ce.length<=1?A.none():X1(he,Xe.firstSelectedSelector,Xe.lastSelectedSelector).map(lt=>({bounds:lt,cells:Ce})),uh="data-mce-selected",Hd="td["+uh+"],th["+uh+"]",ei="["+uh+"]",Fx="data-mce-first-selected",id="td["+Fx+"],th["+Fx+"]",$x="data-mce-last-selected",HO="td["+$x+"],th["+$x+"]",cc=ei,Xu={selected:uh,selectedSelector:Hd,firstSelected:Fx,firstSelectedSelector:id,lastSelected:$x,lastSelectedSelector:HO},Vx=(he,Ce,Xe)=>({element:Xe,mergable:QO(Ce,he,Xu),unmergable:H_(he),selection:om(he)}),ZO=(he,Ce,Xe)=>({element:he,clipboard:Ce,generators:Xe}),u0=(he,Ce,Xe,lt)=>({selection:om(he),clipboard:Xe,generators:lt}),vb=he=>bl(he).bind(Ce=>wg(Ce,Xu.firstSelectedSelector)).fold(v(he),Ce=>Ce[0]),Fm=he=>(Ce,Xe)=>{const lt=Yt(Ce),Ct=lt==="col"||lt==="colgroup"?vb(Ce):Ce;return Bs(Ct,he,Xe)},Z_=Fm("th,td,caption"),q_=Fm("th,td"),uc=he=>Dp(he.model.table.getSelectedCells()),fy=he=>Z(uc(he),Ce=>sn(Ce,Xu.selectedSelector)),Zc=he=>bl(he[0]).map(Ce=>{const Xe=ui(Ce,cc);return Sh(Xe),[Xe]}),qO=(he,Ce)=>j(Ce,Xe=>he.selection.serializer.serialize(Xe.dom,{})).join(""),rp=he=>j(he,Ce=>Ce.dom.innerText).join(""),Og=(he,Ce)=>{he.on("BeforeGetContent",Xe=>{const lt=Ct=>{Xe.preventDefault(),Zc(Ct).each(Wt=>{Xe.content=Xe.format==="text"?rp(Wt):qO(he,Wt)})};if(Xe.selection===!0){const Ct=fy(he);Ct.length>=1&<(Ct)}}),he.on("BeforeSetContent",Xe=>{if(Xe.selection===!0&&Xe.paste===!0){const lt=uc(he);ve(lt).each(Ct=>{bl(Ct).each(Wt=>{const kn=Z(wu(Xe.content),or=>Yt(or)!=="meta"),Vn=vt("table");if(Lm(he)&&kn.length===1&&Vn(kn[0])){Xe.preventDefault();const or=Nt.fromDom(he.getDoc()),Mr=a0(or),no=ZO(Ct,kn[0],Mr);Ce.pasteCells(Wt,no).each(()=>{he.focus()})}})})}})},Oc=(he,Ce)=>({element:he,offset:Ce}),WO=(he,Ce,Xe)=>he.property().isText(Ce)&&he.property().getText(Ce).trim().length===0||he.property().isComment(Ce)?Xe(Ce).bind(lt=>WO(he,lt,Xe).orThunk(()=>A.some(lt))):A.none(),YO=(he,Ce)=>he.property().isText(Ce)?he.property().getText(Ce).length:he.property().children(Ce).length,Ux=(he,Ce)=>{const Xe=WO(he,Ce,he.query().prevSibling).getOr(Ce);if(he.property().isText(Xe))return Oc(Xe,YO(he,Xe));const lt=he.property().children(Xe);return lt.length>0?Ux(he,lt[lt.length-1]):Oc(Xe,YO(he,Xe))},qc=Ux,ff=bg(),fh=he=>qc(ff,he),dy=(he,Ce)=>{gu(he)||Jn(he).each(lt=>{const Ct=lt.value/2;pn(he,Ct,lt.unit),pn(Ce,Ct,lt.unit)})},jh=he=>j(he,v(0)),r1=(he,Ce,Xe,lt,Ct)=>Ct(he.slice(0,Ce)).concat(lt).concat(Ct(he.slice(Xe))),G1=he=>(Ce,Xe,lt,Ct)=>{if(he(lt)){const Wt=Math.max(Ct,Ce[Xe]-Math.abs(lt)),kn=Math.abs(Wt-Ce[Xe]);return lt>=0?kn:-kn}else return lt},Sg=G1(he=>he<0),hy=G1(P),K1=()=>{const he=(Vn,or,Mr,no,ti)=>{const ki=Sg(Vn,or,no,ti);return r1(Vn,or,Mr+1,[ki,0],jh)},Ce=(Vn,or,Mr,no)=>{const ti=(100+Mr)/100,ki=Math.max(no,(Vn[or]+Mr)/ti);return j(Vn,(xi,fi)=>(fi===or?ki:xi/ti)-xi)},Xe=(Vn,or,Mr,no,ti,ki)=>ki?Ce(Vn,or,no,ti):he(Vn,or,Mr,no,ti);return{resizeTable:(Vn,or)=>Vn(or),clampTableDelta:Sg,calcLeftEdgeDeltas:Xe,calcMiddleDeltas:(Vn,or,Mr,no,ti,ki,xi)=>Xe(Vn,Mr,no,ti,ki,xi),calcRightEdgeDeltas:(Vn,or,Mr,no,ti,ki)=>{if(ki)return Ce(Vn,Mr,no,ti);{const xi=Sg(Vn,Mr,no,ti);return jh(Vn.slice(0,Mr)).concat([xi])}},calcRedestributedWidths:(Vn,or,Mr,no)=>{if(no){const ki=(or+Mr)/or,xi=j(Vn,fi=>fi/ki);return{delta:ki*100-100,newSizes:xi}}else return{delta:Mr,newSizes:Vn}}}},o1=()=>{const he=(kn,Vn,or,Mr,no)=>{const ti=Mr>=0?or:Vn,ki=hy(kn,ti,Mr,no);return r1(kn,Vn,or+1,[ki,-ki],jh)};return{resizeTable:(kn,Vn,or)=>{or&&kn(Vn)},clampTableDelta:(kn,Vn,or,Mr,no)=>{if(no){if(or>=0)return or;{const ti=re(kn,(ki,xi)=>ki+xi-Mr,0);return Math.max(-ti,or)}}else return Sg(kn,Vn,or,Mr)},calcLeftEdgeDeltas:he,calcMiddleDeltas:(kn,Vn,or,Mr,no,ti)=>he(kn,or,Mr,no,ti),calcRightEdgeDeltas:(kn,Vn,or,Mr,no,ti)=>{if(ti)return jh(kn);{const ki=Mr/kn.length;return j(kn,v(ki))}},calcRedestributedWidths:(kn,Vn,or,Mr)=>({delta:0,newSizes:kn})}},kg=he=>Ca.fromTable(he).grid,J1=vt("th"),ev=he=>se(he,Ce=>J1(Ce.element)),z4=(he,Ce)=>he&&Ce?"sectionCells":he?"section":"cells",W_=he=>{const Ce=he.section==="thead",Xe=yf(tv(he.cells),"th");return he.section==="tfoot"?{type:"footer"}:Ce||Xe?{type:"header",subType:z4(Ce,Xe)}:{type:"body"}},tv=he=>{const Ce=Z(he,Xe=>J1(Xe.element));return Ce.length===0?A.some("td"):Ce.length===he.length?A.some("th"):A.none()},nv=he=>{const Ce=j(he,Ct=>W_(Ct).type),Xe=z(Ce,"header"),lt=z(Ce,"footer");if(!Xe&&!lt)return A.some("body");{const Ct=z(Ce,"body");return Xe&&!Ct&&!lt?A.some("header"):!Xe&&!Ct&<?A.some("footer"):A.none()}},jx=he=>we(he.all,Ce=>{const Xe=W_(Ce);return Xe.type==="header"?A.from(Xe.subType):A.none()}),py=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Y_=(he,Ce)=>he.section!==Ce?on(he.element,he.cells,Ce,he.isNew):he,X_=()=>({transformRow:Y_,transformCell:(he,Ce,Xe)=>{const lt=Xe(he.element,Ce),Ct=Yt(lt)!=="td"?oo(lt,"td"):lt;return Gt(Ct,he.isNew,he.isLocked)}}),G_=()=>({transformRow:Y_,transformCell:py}),my=()=>({transformRow:(he,Ce)=>Y_(he,Ce==="thead"?"tbody":Ce),transformCell:py}),i1={getTableSectionType:(he,Ce)=>{const Xe=Ca.fromTable(he);switch(jx(Xe).getOr(Ce)){case"section":return X_();case"sectionCells":return G_();case"cells":return my()}},section:X_,sectionCells:G_,cells:my,fallback:()=>({transformRow:_,transformCell:py})},Tg=(he,Ce,Xe,lt)=>{Xe===lt?at(he,Ce):st(he,Ce,Xe)},im=(he,Ce,Xe)=>{_e(xr(he,Ce)).fold(()=>Yr(he,Xe),lt=>Jr(lt,Xe))},Qh=(he,Ce)=>{const Xe=zi(he,Ce).getOrThunk(()=>{const lt=Nt.fromTag(Ce,Un(he).dom);return Ce==="thead"?im(he,"caption,colgroup",lt):Ce==="colgroup"?im(he,"caption",lt):to(he,lt),lt});return Mo(Xe),Xe},rv=(he,Ce)=>{const Xe=[],lt=[],Ct=xi=>j(xi,fi=>{fi.isNew&&Xe.push(fi.element);const Vi=fi.element;return Mo(Vi),U(fi.cells,Xo=>{Xo.isNew&<.push(Xo.element),Tg(Xo.element,"colspan",Xo.colspan,1),Tg(Xo.element,"rowspan",Xo.rowspan,1),to(Vi,Xo.element)}),Vi}),Wt=xi=>pe(xi,fi=>j(fi.cells,Vi=>(Tg(Vi.element,"span",Vi.colspan,1),Vi.element))),kn=(xi,fi)=>{const Vi=Qh(he,fi),oi=(fi==="colgroup"?Wt:Ct)(xi);$o(Vi,oi)},Vn=xi=>{zi(he,xi).each(pi)},or=(xi,fi)=>{xi.length>0?kn(xi,fi):Vn(fi)},Mr=[],no=[],ti=[],ki=[];return U(Ce,xi=>{switch(xi.section){case"thead":Mr.push(xi);break;case"tbody":no.push(xi);break;case"tfoot":ti.push(xi);break;case"colgroup":ki.push(xi);break}}),or(ki,"colgroup"),or(Mr,"thead"),or(no,"tbody"),or(ti,"tfoot"),{newRows:Xe,newCells:lt}},ov=he=>j(he,Ce=>{const Xe=Dr(Ce.element);return U(Ce.cells,lt=>{const Ct=Sr(lt.element);Tg(Ct,"colspan",lt.colspan,1),Tg(Ct,"rowspan",lt.rowspan,1),to(Xe,Ct)}),Xe}),Od=(he,Ce)=>j(he,Xe=>Ri(Xe,Ce)),Cg=(he,Ce)=>he[Ce],Qx=(he,Ce)=>{if(he.length===0)return 0;const Xe=he[0];return ee(he,Ct=>!Ce(Xe.element,Ct.element)).getOr(he.length)},Th=(he,Ce,Xe,lt)=>{const Ct=Cg(he,Ce),Wt=Ct.section==="colgroup",kn=Qx(Ct.cells.slice(Xe),lt),Vn=Wt?1:Qx(Od(he.slice(Ce),Xe),lt);return{colspan:kn,rowspan:Vn}},f0=(he,Ce)=>{const Xe=j(he,Ct=>j(Ct.cells,T)),lt=(Ct,Wt,kn,Vn)=>{for(let or=Ct;or{const kn=pe(Ct.cells,(Vn,or)=>{if(Xe[Wt][or]===!1){const Mr=Th(he,Wt,or,Ce);return lt(Wt,or,Mr.rowspan,Mr.colspan),[Yn(Vn.element,Mr.rowspan,Mr.colspan,Vn.isNew)]}else return[]});return Er(Ct.element,kn,Ct.section,Ct.isNew)})},iv=(he,Ce,Xe)=>{const lt=[];U(he.colgroups,Ct=>{const Wt=[];for(let kn=0;knGt(or.element,Xe,!1)).getOrThunk(()=>Gt(Ce.colGap(),!0,!1));Wt.push(Vn)}lt.push(on(Ct.element,Wt,"colgroup",Xe))});for(let Ct=0;CtGt(no.element,Xe,no.isLocked)).getOrThunk(()=>Gt(Ce.gap(),!0,!1));Wt.push(Mr)}const kn=he.all[Ct],Vn=on(kn.element,Wt,kn.section,Xe);lt.push(Vn)}return lt},K_=(he,Ce)=>iv(he,Ce,!1),bb=he=>f0(he,An),Hx=(he,Ce)=>we(he.all,Xe=>Y(Xe.cells,lt=>An(Ce,lt.element))),Zx=(he,Ce,Xe)=>{const lt=j(Ce.selection,Wt=>bf(Wt).bind(kn=>Hx(he,kn)).filter(Xe)),Ct=il(lt);return nh(Ct.length>0,Ct)},ad=(he,Ce,Xe,lt,Ct)=>(Wt,kn,Vn,or)=>{const Mr=Ca.fromTable(Wt),no=A.from(or==null?void 0:or.section).getOrThunk(i1.fallback);return Ce(Mr,kn).map(ki=>{const xi=K_(Mr,Vn),fi=he(xi,ki,An,Ct(Vn),no),Vi=ii(fi.grid),Xo=bb(fi.grid);return{info:ki,grid:Xo,cursor:fi.cursor,lockedColumns:Vi}}).bind(ki=>{const xi=rv(Wt,ki.grid),fi=A.from(or==null?void 0:or.sizing).getOrThunk(()=>mt.getTableSize(Wt)),Vi=A.from(or==null?void 0:or.resize).getOrThunk(o1);return Xe(Wt,ki.grid,ki.info,{sizing:fi,resize:Vi,section:no}),lt(Wt),at(Wt,Kc),ki.lockedColumns.length>0&&st(Wt,Kc,ki.lockedColumns.join(",")),A.some({cursor:ki.cursor,newRows:xi.newRows,newCells:xi.newCells})})},mC=(he,Ce)=>bf(Ce.element).bind(Xe=>Hx(he,Xe).map(lt=>({...lt,generators:Ce.generators,clipboard:Ce.clipboard}))),qx=(he,Ce)=>Zx(he,Ce,P).map(Xe=>({cells:Xe,generators:Ce.generators,clipboard:Ce.clipboard})),Ag=(he,Ce)=>Ce.mergable,$m=(he,Ce)=>Ce.unmergable,Ch=(he,Ce)=>Zx(he,Ce,P),Np=(he,Ce)=>Zx(he,Ce,Xe=>!Xe.isLocked),d0=(he,Ce)=>Hx(he,Ce).exists(Xe=>!Xe.isLocked),av=(he,Ce)=>se(Ce,Xe=>d0(he,Xe)),J_=(he,Ce)=>Ag(he,Ce).filter(Xe=>av(he,Xe.cells)),gy=(he,Ce)=>$m(he,Ce).filter(Xe=>av(he,Xe)),xb=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ct.length===0)return he;for(let Wt=Ce.startRow;Wt<=Ce.finishRow;Wt++)for(let kn=Ce.startCol;kn<=Ce.finishCol;kn++){const Vn=Ct[Wt],or=Ri(Vn,kn).isLocked;aa(Vn,kn,Gt(lt(),!1,or))}return he},ew=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;let Wt=!0;for(let kn=0;knre(he,(Xe,lt)=>$(Xe,Ct=>Ce(Ct.element,lt.element))?Xe:Xe.concat([lt]),[]),sv=(he,Ce,Xe,lt)=>(Ce>0&&Ce{const Wt=Ct.cells[Ce-1];let kn=0;const Vn=lt();for(;Ct.cells.length>Ce+kn&&Xe(Wt.element,Ct.cells[Ce+kn].element);)aa(Ct,Ce+kn,Gt(Vn,!0,Ct.cells[Ce+kn].isLocked)),kn++}),he),xp=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows;if(Ce>0&&Ce{let or=A.none();for(let Mr=Ce;Mr{aa(ti,no,Gt(fi,!0,ki.isLocked))}))}})}return he},_b=he=>{const Ce=Wt=>Wt(he),Xe=v(he),lt=()=>Ct,Ct={tag:!0,inner:he,fold:(Wt,kn)=>kn(he),isValue:P,isError:T,map:Wt=>Sd.value(Wt(he)),mapError:lt,bind:Ce,exists:Ce,forall:Ce,getOr:Xe,or:lt,getOrThunk:Xe,orThunk:lt,getOrDie:Xe,each:Wt=>{Wt(he)},toOptional:()=>A.some(he)};return Ct},Ou=he=>{const Ce=()=>Xe,Xe={tag:!1,inner:he,fold:(lt,Ct)=>lt(he),isValue:T,isError:P,map:Ce,mapError:lt=>Sd.error(lt(he)),bind:Ce,exists:T,forall:P,getOr:_,or:_,getOrThunk:M,orThunk:M,getOrDie:R(String(he)),each:c,toOptional:A.none};return Xe},Sd={value:_b,error:Ou,fromOption:(he,Ce)=>he.fold(()=>Ou(Ce),_b)},XO=(he,Ce,Xe)=>{if(he.row>=Ce.length||he.column>qu(Ce[0]))return Sd.error("invalid start address out of table bounds, row: "+he.row+", column: "+he.column);const lt=Ce.slice(he.row),Ct=lt[0].cells.slice(he.column),Wt=qu(Xe[0]),kn=Xe.length;return Sd.value({rowDelta:lt.length-kn,colDelta:Ct.length-Wt})},wb=(he,Ce)=>{const Xe=qu(he[0]),lt=qu(Ce[0]);return{rowDelta:0,colDelta:Xe-lt}},am=(he,Ce)=>{const Xe=he.length,lt=Ce.length;return{rowDelta:Xe-lt,colDelta:0}},Vm=(he,Ce,Xe,lt)=>{const Ct=Ce.section==="colgroup"?Xe.col:Xe.cell;return Q(he,Wt=>Gt(Ct(),!0,lt(Wt)))},_p=(he,Ce,Xe,lt)=>{const Ct=he[he.length-1];return he.concat(Q(Ce,()=>{const Wt=Ct.section==="colgroup"?Xe.colgroup:Xe.row,kn=xc(Ct,Wt,_),Vn=Vm(kn.cells.length,kn,Xe,or=>We(lt,or.toString()));return rs(kn,Vn)}))},op=(he,Ce,Xe,lt)=>j(he,Ct=>{const Wt=Vm(Ce,Ct,Xe,T);return cf(Ct,lt,Wt)}),GO=(he,Ce,Xe)=>j(he,lt=>re(Xe,(Ct,Wt)=>{const kn=Vm(1,lt,Ce,P)[0];return Of(Ct,Wt,kn)},lt)),Ob=(he,Ce,Xe)=>{const lt=Ce.colDelta<0?op:_,Ct=Ce.rowDelta<0?_p:_,Wt=ii(he),kn=qu(he[0]),Vn=$(Wt,no=>no===kn-1),or=lt(he,Math.abs(Ce.colDelta),Xe,Vn?kn-1:kn),Mr=ii(or);return Ct(or,Math.abs(Ce.rowDelta),Xe,ce(Mr,P))},s1=(he,Ce,Xe,lt)=>{const Ct=Ri(he[Ce],Xe),Wt=C(lt,Ct.element),kn=he[Ce];return he.length>1&&qu(kn)>1&&(Xe>0&&Wt(Gc(kn,Xe-1))||Xe0&&Wt(Gc(he[Ce-1],Xe))||Ce{const kn=he.row,Vn=he.column,or=Xe.length,Mr=qu(Xe[0]),no=kn+or,ti=Vn+Mr+Wt.length,ki=ce(Wt,P);for(let xi=kn;xi{const lt=qu(Ce[0]),Ct=zl(Ce).cols.length+he.row,Wt=Q(lt-he.column,Vn=>Vn+he.column),kn=Y(Wt,Vn=>se(Xe,or=>or!==Vn)).getOr(lt-1);return{row:Ct,column:kn}},p0=(he,Ce,Xe)=>Z(Xe,lt=>lt>=he.column&<<=qu(Ce[0])+he.column),Ss=(he,Ce,Xe,lt,Ct)=>{const Wt=ii(Ce),kn=h0(he,Ce,Wt),Vn=zl(Xe).rows,or=p0(kn,Vn,Wt);return XO(kn,Ce,Vn).map(no=>{const ti={...no,colDelta:no.colDelta-or.length},ki=Ob(Ce,ti,lt),xi=ii(ki),fi=p0(kn,Vn,xi);return Um(kn,ki,Vn,lt,Ct,fi)})},kd=(he,Ce,Xe,lt,Ct)=>{sv(Ce,he,Ct,lt.cell);const Wt=am(Xe,Ce),kn=Ob(Xe,Wt,lt),Vn=am(Ce,kn),or=Ob(Ce,Vn,lt);return j(or,(Mr,no)=>cf(Mr,he,kn[no].cells))},Ah=(he,Ce,Xe,lt,Ct)=>{xp(Ce,he,Ct,lt.cell);const Wt=ii(Ce),kn=wb(Ce,Xe),Vn={...kn,colDelta:kn.colDelta-Wt.length},or=Ob(Ce,Vn,lt),{cols:Mr,rows:no}=zl(or),ti=ii(or),ki=wb(Xe,Ce),xi={...ki,colDelta:ki.colDelta+ti.length},fi=GO(Xe,lt,ti),Vi=Ob(fi,xi,lt);return[...Mr,...no.slice(0,he),...Vi,...no.slice(he,no.length)]},Sb=(he,Ce,Xe,lt)=>xc(he,Ct=>lt(Ct,Xe),Ce),Sl=(he,Ce,Xe,lt,Ct)=>{const{rows:Wt,cols:kn}=zl(he),Vn=Wt.slice(0,Ce),or=Wt.slice(Ce),Mr=Sb(Wt[Xe],(no,ti)=>Ce>0&&Ce{if(Xe==="colgroup"||!lt){const Vn=Ri(he,Ct);return Gt(kn(Vn.element,Wt),!0,!1)}else return Ri(he,Ce)},Yx=(he,Ce,Xe,lt,Ct)=>j(he,Wt=>{const kn=Ce>0&&Cepe(he,Xe=>{const lt=Xe.cells,Ct=K(Ce,(Wt,kn)=>kn>=0&&kn0?[on(Xe.element,Ct,Xe.section,Xe.isNew)]:[]}),Xx=(he,Ce,Xe)=>{const{rows:lt,cols:Ct}=zl(he);return[...Ct,...lt.slice(0,Ce),...lt.slice(Xe+1)]},lv=(he,Ce,Xe,lt)=>Gc(he[Ce],Xe)!==void 0&&Ce>0&<(Gc(he[Ce-1],Xe),Gc(he[Ce],Xe)),fc=(he,Ce,Xe)=>Ce>0&&Xe(Gc(he,Ce-1),Gc(he,Ce)),cv=(he,Ce,Xe,lt)=>lv(he,Ce,Xe,lt)||fc(he[Ce],Xe,lt),kb=(he,Ce)=>se(Ce,_)&&ev(he.cells)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Wt]),dc=(he,Ce)=>se(Ce,_)&&ev(he)?P:(lt,Ct,Wt)=>!(Yt(lt.element)==="th"&&Ce[Ct]),uv=(he,Ce,Xe,lt)=>{const Ct=kn=>kn==="row"?ec(Ce):gu(Ce),Wt=kn=>Ct(kn)?`${kn}group`:kn;return he?J1(Ce)?Wt(Xe):null:lt&&J1(Ce)?Wt(Xe==="row"?"col":"row"):null},Mh=(he,Ce)=>(Xe,lt,Ct)=>A.some(uv(he,Xe.element,"col",Ce[Ct])),Fp=(he,Ce)=>(Xe,lt)=>A.some(uv(he,Xe.element,"row",Ce[lt])),tw=(he,Ce,Xe)=>Gt(Xe(he.element,Ce),!0,he.isLocked),Li=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const Vn=or=>$(Ce,Mr=>Xe(or.element,Mr.element));return j(he,(or,Mr)=>Mu(or,(no,ti)=>{if(Vn(no)){const ki=kn(no,Mr,ti)?Ct(no,Xe,lt):no;return Wt(ki,Mr,ti).each(xi=>{Vt(ki.element,{scope:A.from(xi)})}),ki}else return no}))},nw=(he,Ce,Xe)=>pe(he,(lt,Ct)=>cv(he,Ct,Ce,Xe)?[]:[Ri(lt,Ce)]),F4=(he,Ce,Xe)=>{const lt=he[Ce];return pe(lt.cells,(Ct,Wt)=>cv(he,Ce,Wt,Xe)?[]:[Ct])},KO=(he,Ce,Xe,lt,Ct)=>{const Wt=zl(he).rows,kn=pe(Ce,no=>nw(Wt,no,lt)),Vn=j(Wt,no=>ev(no.cells)),or=dc(kn,Vn),Mr=Fp(Xe,Vn);return Li(he,kn,lt,Ct,tw,Mr,or)},rw=(he,Ce,Xe,lt,Ct,Wt,kn)=>{const{cols:Vn,rows:or}=zl(he),Mr=or[Ce[0]],no=pe(Ce,Xo=>F4(or,Xo,Ct)),ti=j(Mr.cells,(Xo,oi)=>ev(nw(or,oi,Ct))),ki=[...or];U(Ce,Xo=>{ki[Xo]=kn.transformRow(or[Xo],Xe)});const xi=[...Vn,...ki],fi=kb(Mr,ti),Vi=Mh(lt,ti);return Li(xi,no,Ct,Wt,kn.transformCell,Vi,fi)},JO=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=j(Ce,kn=>Ri(Ct[kn.row],kn.column));return Li(he,Wt,Xe,lt,tw,A.none,P)},sm={generate:he=>{if(!u(he))throw new Error("cases must be an array");if(he.length===0)throw new Error("there must be at least one case");const Ce=[],Xe={};return U(he,(lt,Ct)=>{const Wt=Te(lt);if(Wt.length!==1)throw new Error("one and only one name per case");const kn=Wt[0],Vn=lt[kn];if(Xe[kn]!==void 0)throw new Error("duplicate key detected:"+kn);if(kn==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Vn))throw new Error("case arguments must be an array");Ce.push(kn),Xe[kn]=(...or)=>{const Mr=or.length;if(Mr!==Vn.length)throw new Error("Wrong number of arguments to case "+kn+". Expected "+Vn.length+" ("+Vn+"), got "+Mr);return{fold:(...ti)=>{if(ti.length!==he.length)throw new Error("Wrong number of arguments to fold. Expected "+he.length+", got "+ti.length);return ti[Ct].apply(null,or)},match:ti=>{const ki=Te(ti);if(Ce.length!==ki.length)throw new Error("Wrong number of arguments to match. Expected: "+Ce.join(",")+` Actual: `+ki.join(","));if(!se(Ce,fi=>z(ki,fi)))throw new Error("Not all branches were specified when using match. Specified: "+ki.join(", ")+` -Required: `+Ce.join(", "));return ti[kn].apply(null,or)},log:ti=>{console.log(ti,{constructors:Ce,constructor:kn,params:or})}}}}),Xe}},c1={...sm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},fv=(he,Ce)=>he.length===0?c1.none():he.length===1?c1.only(0):Ce===0?c1.left(0,1):Ce===he.length-1?c1.right(Ce-1,Ce):Ce>0&&Ce{const Wt=he.slice(0),kn=fv(he,Ce),Vn=v(j(Wt,v(0))),or=ki=>lt.singleColumnWidth(Wt[ki],Xe),Mr=(ki,xi)=>Ct.calcLeftEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative),no=(ki,xi,fi)=>Ct.calcMiddleDeltas(Wt,ki,xi,fi,Xe,lt.minCellWidth(),lt.isRelative),ti=(ki,xi)=>Ct.calcRightEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative);return kn.fold(Vn,or,Mr,no,ti)},Hh=(he,Ce,Xe)=>{let lt=0;for(let Ct=he;Ct{const Xe=Ca.justCells(he);return j(Xe,lt=>{const Ct=Hh(lt.column,lt.column+lt.colspan,Ce);return{element:lt.element,width:Ct,colspan:lt.colspan}})},Gx=(he,Ce)=>{const Xe=Ca.justColumns(he);return j(Xe,(lt,Ct)=>({element:lt.element,width:Ce[Ct],colspan:lt.colspan}))},df=(he,Ce)=>j(he.all,(Xe,lt)=>({element:Xe.element,height:Ce[lt]})),Tb=he=>K(he,(Ce,Xe)=>Ce+Xe,0),uu=(he,Ce)=>Ca.hasColumns(he)?Gx(he,Ce):hv(he,Ce),Cb=(he,Ce,Xe)=>{const lt=uu(he,Ce);U(lt,Ct=>{Xe.setElementWidth(Ct.element,Ct.width)})},Kx=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.fromTable(he),kn=Ct.getCellDelta(Ce),Vn=Ct.getWidths(Wt,Ct),or=Xe===Wt.grid.columns-1,Mr=lt.clampTableDelta(Vn,Xe,kn,Ct.minCellWidth(),or),no=dv(Vn,Xe,Mr,Ct,lt),ti=j(no,(ki,xi)=>ki+Vn[xi]);Cb(Wt,ti,Ct),lt.resizeTable(Ct.adjustTableWidth,Mr,or)},Jx=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=Ar(lt,he),Wt=j(Ct,(or,Mr)=>Xe===Mr?Math.max(Ce+or,Lp()):or),kn=df(lt,Wt);U(kn,or=>{Ne(or.element,or.height)}),U(Ca.justCells(lt),or=>{et(or.element)});const Vn=Tb(Wt);Ne(he,Vn)},iw=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.generate(Ce),kn=lt.getWidths(Wt,lt),Vn=lt.pixelWidth(),{newSizes:or,delta:Mr}=Ct.calcRedestributedWidths(kn,Vn,Xe.pixelDelta,lt.isRelative);Cb(Wt,or,lt),lt.adjustTableWidth(Mr)},e3=(he,Ce,Xe,lt)=>{const Ct=Ca.generate(Ce),Wt=lt.getWidths(Ct,lt);Cb(Ct,Wt,lt)},lm=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.column===lt.column)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.column-lt.column),u1=vt("col"),cm=vt("colgroup"),pv=he=>Yt(he)==="tr"||cm(he),hf=he=>{const Ce=ll(he,"colspan",1),Xe=ll(he,"rowspan",1);return{element:he,colspan:Ce,rowspan:Xe}},f1=(he,Ce=hf)=>{const Xe=Vn=>u1(Vn.element)?he.col(Vn):he.cell(Vn),lt=Vn=>cm(Vn.element)?he.colgroup(Vn):he.row(Vn),Ct=Vn=>{if(pv(Vn))return lt({element:Vn});{const or=Vn,Mr=Xe(Ce(or));return Wt=A.some({item:or,replacement:Mr}),Mr}};let Wt=A.none();return{getOrInit:(Vn,or)=>Wt.fold(()=>Ct(Vn),Mr=>or(Vn,Mr.item)?Mr.replacement:Ct(Vn))}},jm=he=>Ce=>{const Xe=[],lt=(kn,Vn)=>Y(Xe,or=>Vn(or.item,kn)),Ct=kn=>{const Vn=he==="td"?{scope:null}:{},or=Ce.replace(kn,he,Vn);return Xe.push({item:kn,sub:or}),or};return{replaceOrInit:(kn,Vn)=>{if(pv(kn)||u1(kn))return kn;{const or=kn;return lt(or,Vn).fold(()=>Ct(or),Mr=>Vn(kn,Mr.item)?Mr.sub:Ct(or))}}}},mv=he=>it(he,"scope").map(Ce=>Ce.substr(0,3)),Zd={modification:f1,transform:jm,merging:he=>({unmerge:lt=>{const Ct=mv(lt);return Ct.each(Wt=>st(lt,"scope",Wt)),()=>{const Wt=he.cell({element:lt,colspan:1,rowspan:1});return Jl(Wt,"width"),Jl(lt,"width"),Ct.each(kn=>st(Wt,"scope",kn)),Wt}},merge:lt=>{const Ct=()=>{const Wt=il(j(lt,mv));if(Wt.length===0)return A.none();{const kn=Wt[0],Vn=["row","col"];return $(Wt,Mr=>Mr!==kn&&z(Vn,Mr))?A.none():A.from(kn)}};return Jl(lt[0],"width"),Ct().fold(()=>at(lt[0],"scope"),Wt=>st(lt[0],"scope",Wt+"group")),v(lt[0])}})},vy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],m0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(["ol","ul"],Xe)},g0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(vy,Xe)},v0=(he,Ce)=>z(["br","img","hr","input"],he.property().name(Ce)),y0=bg(),Tf=he=>g0(y0,he),vo=he=>m0(y0,he),Ab=he=>v0(y0,he),F=he=>{const Ce=vt("br"),Xe=or=>se(or,Mr=>Ce(Mr)||Cn(Mr)&&Cs(Mr).trim().length===0),lt=or=>Yt(or)==="li"||Di(or,vo).isSome(),Ct=or=>sr(or).map(Mr=>Tf(Mr)?!0:Ab(Mr)?Yt(Mr)!=="img":!1).getOr(!1),Wt=or=>gg(or).bind(Mr=>{const no=Ct(Mr);return $r(Mr).map(ti=>no===!0||lt(ti)||Ce(Mr)||Tf(ti)&&!An(or,ti)?[]:[Nt.fromTag("br")])}).getOr([]),Vn=(()=>{const or=pe(he,Mr=>{const no=lr(Mr);return Xe(no)?[]:no.concat(Wt(Mr))});return or.length===0?[Nt.fromTag("br")]:or})();Mo(he[0]),$o(he[0],Vn)},G=he=>sy(he,!0),ue=he=>{vu(he).length===0&&pi(he)},Ae=(he,Ce)=>({grid:he,cursor:Ce}),He=he=>we(he,Ce=>we(Ce.cells,Xe=>{const lt=Xe.element;return nh(G(lt),lt)})),nt=(he,Ce,Xe)=>{var lt,Ct;const Wt=zl(he).rows;return A.from((Ct=(lt=Wt[Ce])===null||lt===void 0?void 0:lt.cells[Xe])===null||Ct===void 0?void 0:Ct.element).filter(G).orThunk(()=>He(Wt))},ct=(he,Ce,Xe)=>{const lt=nt(he,Ce,Xe);return Ae(he,lt)},Pt=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.row===lt.row)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.row-lt.row),jt=(he,Ce,Xe,lt)=>{const Ct=Ce[0].row,Wt=Pt(Ce),kn=K(Wt,(Vn,or)=>({grid:Sl(Vn.grid,Ct,or.row+Vn.delta,Xe,lt.getOrInit),delta:Vn.delta+1}),{grid:he,delta:0}).grid;return ct(kn,Ct,Ce[0].column)},hn=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Ct[Ct.length-1],kn=Wt.row+Wt.rowspan,Vn=K(Ct,(or,Mr)=>Sl(or,kn,Mr.row,Xe,lt.getOrInit),he);return ct(Vn,kn,Ce[0].column)},mn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=lm(Ct),kn=Wt[0].column,Vn=K(Wt,(or,Mr)=>({grid:Yx(or.grid,kn,Mr.column+or.delta,Xe,lt.getOrInit),delta:or.delta+1}),{grid:he,delta:0}).grid;return ct(Vn,Ct[0].row,kn)},Dn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=Ct[Ct.length-1],kn=Wt.column+Wt.colspan,Vn=lm(Ct),or=K(Vn,(Mr,no)=>Yx(Mr,kn,no.column,Xe,lt.getOrInit),he);return ct(or,Ct[0].row,kn)},Xn=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!0,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},$n=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},mr=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!1,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},Or=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},Kr=(he,Ce)=>(Xe,lt,Ct,Wt,kn)=>{const Vn=Pt(lt),or=j(Vn,no=>no.row),Mr=rw(Xe,or,he,Ce,Ct,Wt.replaceOrInit,kn);return ct(Mr,lt[0].row,lt[0].column)},Hr=Kr("thead",!0),fo=Kr("tbody",!1),mo=Kr("tfoot",!1),Io=(he,Ce,Xe,lt)=>{const Ct=lm(Ce.details),Wt=N4(he,j(Ct,Vn=>Vn.column)),kn=Wt.length>0?Wt[0].cells.length-1:0;return ct(Wt,Ct[0].row,Math.min(Ct[0].column,kn))},Qo=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Xx(he,Ct[0].row,Ct[Ct.length-1].row),kn=Math.max(zl(Wt).rows.length-1,0);return ct(Wt,Math.min(Ce[0].row,kn),Ce[0].column)},Po=(he,Ce,Xe,lt)=>{const Ct=Ce.cells;F(Ct);const Wt=xb(he,Ce.bounds,Xe,lt.merge(Ct));return Ae(Wt,A.from(Ct[0]))},Ii=(he,Ce,Xe,lt)=>{const Wt=K(Ce,(kn,Vn)=>ew(kn,Vn,Xe,lt.unmerge(Vn)),he);return Ae(Wt,A.from(Ce[0]))},bi=(he,Ce,Xe,lt)=>{const Wt=((or,Mr)=>{const no=Ca.fromTable(or);return iv(no,Mr,!0)})(Ce.clipboard,Ce.generators),kn=Rr(Ce.row,Ce.column);return Ss(kn,he,Wt,Ce.generators,Xe).fold(()=>Ae(he,A.some(Ce.element)),or=>ct(or,Ce.row,Ce.column))},Zi=(he,Ce,Xe)=>{const lt=vd(he,Xe.section),Ct=Ca.generate(lt);return iv(Ct,Ce,!0)},ra=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].column,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},ka=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Wt)},ea=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].row,kn=Ct[Wt],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ch(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},as=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ch(Wt,he,Vn,Ce.generators,Xe);return ct(or,Wt,Ce.cells[0].column)},Da=(he,Ce)=>{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=me(j(Xe.all,Mr=>Z(Mr.cells,no=>no.column>=kn&&no.column{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(tv).getOr("")},fl=(he,Ce)=>{const Xe=Ca.fromTable(he);return Th(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].row,Vn=Wt.row+Wt.rowspan,or=Xe.all.slice(kn,Vn);return nv(or)}).getOr("")},As=(he,Ce,Xe,lt)=>e3(he,Ce,Xe,lt.sizing),hc=(he,Ce,Xe,lt)=>iw(he,Ce,Xe,lt.sizing,lt.resize),os=(he,Ce)=>$(Ce,Xe=>Xe.column===0&&Xe.isLocked),Vs=(he,Ce)=>$(Ce,Xe=>Xe.column+Xe.colspan>=he.grid.columns&&Xe.isLocked),Fl=(he,Ce)=>{const Xe=Ls(he),lt=lm(Ce);return re(lt,(Ct,Wt)=>{const Vn=Xe[Wt.column].map(ds).getOr(0);return Ct+Vn},0)},kl=he=>(Ce,Xe)=>Th(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt)).map(lt=>({details:lt,pixelDelta:Fl(Ce,lt)})),Fc=(he,Ce)=>Np(he,Ce).map(Xe=>({details:Xe,pixelDelta:-Fl(he,Xe)})),qa=he=>(Ce,Xe)=>qx(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt.cells)),Sc=Zd.transform("th"),pc=Zd.transform("td"),sd=ad(jt,Th,c,c,Zd.modification),ld=ad(hn,Th,c,c,Zd.modification),cd=ad(mn,kl(!0),hc,c,Zd.modification),Cf=ad(Dn,kl(!1),hc,c,Zd.modification),xl=ad(Io,Fc,hc,ue,Zd.modification),eu=ad(Qo,Th,c,ue,Zd.modification),Td=ad(Xn,Np,c,c,Sc),Af=ad(mr,Np,c,c,pc),jf=ad(Hr,Np,c,c,Sc),Us=ad(fo,Np,c,c,pc),_l=ad(mo,Np,c,c,pc),fu=ad($n,Np,c,c,Sc),ni=ad(Or,Np,c,c,pc),Wc=ad(Po,J_,As,c,Zd.merging),Yc=ad(Ii,my,As,c,Zd.merging),$l=ad(bi,pC,As,c,Zd.modification),Ru=ad(ra,qa(!0),c,c,Zd.modification),Mh=ad(ka,qa(!1),c,c,Zd.modification),mc=ad(ea,qx,c,c,Zd.modification),dh=ad(as,qx,c,c,Zd.modification),hh=Da,Qm=ba,Qf=fl,tu=(he,Ce)=>he.dispatch("NewRow",{node:Ce}),qd=(he,Ce)=>he.dispatch("NewCell",{node:Ce}),Cd=(he,Ce,Xe)=>{he.dispatch("TableModified",{...Xe,table:Ce})},d1=(he,Ce,Xe,lt,Ct)=>{he.dispatch("TableSelectionChange",{cells:Ce,start:Xe,finish:lt,otherCells:Ct})},t2=he=>{he.dispatch("TableSelectionClear")},gv=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResizeStart",{target:Ce,width:Xe,height:lt,origin:Ct})},Lu=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResized",{target:Ce,width:Xe,height:lt,origin:Ct})},$c={structure:!1,style:!0},dl={structure:!0,style:!1},Mf={structure:!0,style:!0},du=(he,Ce)=>kf(he)?mt.percentageSize(Ce):l0(he)?mt.pixelSize(Ce):mt.getTableSize(Ce),Iu=(he,Ce,Xe)=>{const lt=Wa=>Yt(Im(Wa))==="table",Ct=Wa=>!lt(he)||kg(Wa).rows>1,Wt=Wa=>!lt(he)||kg(Wa).columns>1,kn=VO(he),Vn=ay(he)?c:fy,or=Wa=>{switch(z_(he)){case"section":return i1.section();case"sectionCells":return i1.sectionCells();case"cells":return i1.cells();default:return i1.getTableSectionType(Wa,"section")}},Mr=(Wa,bm)=>bm.cursor.fold(()=>{const Lg=vu(Wa);return ve(Lg).filter(Nr).map(S1=>{Xe.clearSelectedCells(Wa.dom);const Zf=he.dom.createRng();return Zf.selectNode(S1.dom),he.selection.setRng(Zf),st(S1,"data-mce-selected","1"),Zf})},Lg=>{const S1=fh(Lg),Zf=he.dom.createRng();return Zf.setStart(S1.element.dom,S1.offset),Zf.setEnd(S1.element.dom,S1.offset),he.selection.setRng(Zf),Xe.clearSelectedCells(Wa.dom),A.some(Zf)}),no=(Wa,bm,Lg,S1)=>(Zf,el,Ok=!1)=>{Oh(Zf);const Sk=Nt.fromDom(he.getDoc()),H3=i0(Lg,Sk,kn),n6={sizing:du(he,Zf),resize:ay(he)?K1():o1(),section:or(Zf)};return bm(Zf)?Wa(Zf,el,H3,n6).bind(Mv=>{Ce.refresh(Zf.dom),U(Mv.newRows,R2=>{tu(he,R2.dom)}),U(Mv.newCells,R2=>{qd(he,R2.dom)});const tx=Mr(Zf,Mv);return Nr(Zf)&&(Oh(Zf),Ok||Cd(he,Zf.dom,S1)),tx.map(R2=>({rng:R2,effect:S1}))}):A.none()},ti=no(eu,Ct,c,dl),ki=no(xl,Wt,c,dl),xi=no(sd,P,c,dl),fi=no(ld,P,c,dl),Vi=no(cd,P,Vn,dl),Xo=no(Cf,P,Vn,dl),oi=no(Wc,P,c,dl),wa=no(Yc,P,c,dl),Pa=no(Ru,P,c,dl),ta=no(Mh,P,c,dl),nu=no(mc,P,c,dl),Ll=no(dh,P,c,dl),$u=no($l,P,c,Mf),vm=no(fu,P,c,dl),gh=no(ni,P,c,dl),Jb=no(Td,P,c,dl),ex=no(Af,P,c,dl),Tl=no(jf,P,c,dl),Ld=no(Us,P,c,dl),sp=no(_l,P,c,dl);return{deleteRow:ti,deleteColumn:ki,insertRowsBefore:xi,insertRowsAfter:fi,insertColumnsBefore:Vi,insertColumnsAfter:Xo,mergeCells:oi,unmergeCells:wa,pasteColsBefore:Pa,pasteColsAfter:ta,pasteRowsBefore:nu,pasteRowsAfter:Ll,pasteCells:$u,makeCellsHeader:vm,unmakeCellsHeader:gh,makeColumnsHeader:Jb,unmakeColumnsHeader:ex,makeRowsHeader:Tl,makeRowsBody:Ld,makeRowsFooter:sp,getTableRowType:Qf,getTableCellType:Qm,getTableColType:hh}},vv=(he,Ce,Xe)=>{const lt=ll(he,Ce,1);Xe===1||lt<=1?at(he,Ce):st(he,Ce,Math.min(Xe,lt))},h1=(he,Ce)=>Xe=>{const lt=Xe.column+Xe.colspan-1,Ct=Xe.column;return lt>=he&&Ct{if(Ca.hasColumns(he)){const lt=Z(Ca.justColumns(he),h1(Ce,Xe)),Ct=j(lt,kn=>{const Vn=Sr(kn.element);return vv(Vn,"span",Xe-Ce),Vn}),Wt=Nt.fromTag("colgroup");return $o(Wt,Ct),[Wt]}else return[]},yy=(he,Ce,Xe)=>j(he.all,lt=>{const Ct=Z(lt.cells,h1(Ce,Xe)),Wt=j(Ct,Vn=>{const or=Sr(Vn.element);return vv(or,"colspan",Xe-Ce),or}),kn=Nt.fromTag("tr");return $o(kn,Wt),kn}),p1=(he,Ce)=>{const Xe=Ca.fromTable(he);return Np(Xe,Ce).map(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=n2(Xe,kn,Vn),Mr=yy(Xe,kn,Vn);return[...or,...Mr]})},b0=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Th(lt,Ce).bind(Wt=>{const kn=iv(lt,Xe,!1),or=zl(kn).rows.slice(Wt[0].row,Wt[Wt.length-1].row+Wt[Wt.length-1].rowspan),Mr=pe(or,ti=>{const ki=Z(ti.cells,xi=>!xi.isLocked);return ki.length>0?[{...ti,cells:ki}]:[]}),no=bb(Mr);return nh(no.length>0,no)}).map(Wt=>ov(Wt))},Hm=sm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),yv=(he,Ce,Xe)=>{const lt=Xe.substring(0,Xe.length-he.length),Ct=parseFloat(lt);return lt===Ct.toString()?Ce(Ct):Hm.invalid(Xe)},x0={...Hm,from:he=>iu(he,"%")?yv("%",Hm.percent,he):iu(he,"px")?yv("px",Hm.pixels,he):Hm.invalid(he)},r2=(he,Ce)=>j(he,Xe=>x0.from(Xe).fold(()=>Xe,Ct=>Ct/Ce*100+"%",Ct=>Ct+"%")),Mb=(he,Ce,Xe)=>{const lt=Xe/Ce;return j(he,Ct=>x0.from(Ct).fold(()=>Ct,kn=>kn*lt+"px",kn=>kn/100*Xe+"px"))},Ad=(he,Ce)=>{const Xe=he.fold(()=>v(""),lt=>{const Ct=lt/Ce;return v(Ct+"px")},()=>{const lt=100/Ce;return v(lt+"%")});return Q(Ce,Xe)},xy=(he,Ce,Xe)=>he.fold(()=>Ce,lt=>Mb(Ce,Xe,lt),lt=>r2(Ce,Xe)),_y=(he,Ce,Xe)=>{const lt=x0.from(Xe),Ct=se(he,Wt=>Wt==="0px")?Ad(lt,he.length):xy(lt,he,Ce);return um(Ct)},Md=(he,Ce)=>he.length===0?Ce:K(he,(Xe,lt)=>x0.from(lt).fold(v(0),_,_)+Xe,0),m1=(he,Ce)=>{const Xe=Math.floor(he);return{value:Xe+Ce,remainder:he-Xe}},_0=(he,Ce)=>x0.from(he).fold(v(he),Xe=>Xe+Ce+"px",Xe=>Xe+Ce+"%"),um=he=>{if(he.length===0)return he;const Ce=K(he,(lt,Ct)=>{const Wt=x0.from(Ct).fold(()=>({value:Ct,remainder:0}),kn=>m1(kn,"px"),kn=>({value:kn+"%",remainder:0}));return{output:[Wt.value].concat(lt.output),remainder:lt.remainder+Wt.remainder}},{output:[],remainder:0}),Xe=Ce.output;return Xe.slice(0,Xe.length-1).concat([_0(Xe[Xe.length-1],Math.round(Ce.remainder))])},Wd=x0.from,w0=(he,Ce,Xe)=>{U(Ce,lt=>{const Ct=he.slice(lt.column,lt.colspan+lt.column),Wt=Md(Ct,tc());Al(lt.element,"width",Wt+Xe)})},Eb=(he,Ce,Xe)=>{U(Ce,(lt,Ct)=>{const Wt=Md([he[Ct]],tc());Al(lt.element,"width",Wt+Xe)})},wy=(he,Ce,Xe)=>{U(Xe,lt=>{Jl(lt.element,"height")}),U(Ce,(lt,Ct)=>{Al(lt.element,"height",he[Ct])})},aw=he=>Wd(he).fold(v("px"),v("px"),v("%")),Zm=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=lt.all,Wt=Ca.justCells(lt),kn=Ca.justColumns(lt);Ce.each(Vn=>{const or=aw(Vn),Mr=Ol(he),no=ai(lt,he),ti=_y(no,Mr,Vn);Ca.hasColumns(lt)?Eb(ti,kn,or):w0(ti,Wt,or),Al(he,"width",Vn)}),Xe.each(Vn=>{const or=wr(he),Mr=ns(lt,he),no=_y(Mr,or,Vn);wy(no,Ct,Wt),Al(he,"height",Vn)})},sw=Gr,Pb=ro,t3=po,O0=he=>{at(he,"width"),at(he,"height")},hu=he=>{const Ce=Pr(he);Zm(he,A.some(Ce),A.none()),O0(he)},ip=he=>{const Ce=In(he);Zm(he,A.some(Ce),A.none()),O0(he)},$4=he=>{const Ce=Ir(he);Zm(he,A.none(),A.some(Ce)),O0(he)},qm=he=>{Jl(he,"width");const Ce=$d(he),Xe=Ce.length>0?Ce:vu(he);U(Xe,lt=>{Jl(lt,"width"),O0(lt)}),O0(he)},lw={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cw=()=>Nt.fromTag("th"),o2=()=>Nt.fromTag("td"),$p=()=>Nt.fromTag("col"),Rb=(he,Ce,Xe,lt)=>{const Ct=Nt.fromTag("tr");for(let Wt=0;Wt{const Ce=Nt.fromTag("colgroup");return Q(he,()=>to(Ce,$p())),Ce},Oy=(he,Ce,Xe,lt)=>Q(he,Ct=>Rb(Ce,Xe,lt,Ct)),bv=(he,Ce,Xe,lt,Ct,Wt=lw)=>{const kn=Nt.fromTag("table"),Vn=Ct!=="cells";Wl(kn,Wt.styles),bt(kn,Wt.attributes),Wt.colGroups&&to(kn,Lb(Ce));const or=Math.min(he,Xe);if(Vn&&Xe>0){const xi=Nt.fromTag("thead");to(kn,xi);const Vi=Oy(Xe,Ce,Ct==="sectionCells"?or:0,lt);$o(xi,Vi)}const Mr=Nt.fromTag("tbody");to(kn,Mr);const no=Vn?he-or:he,ki=Oy(no,Ce,Vn?0:Xe,lt);return $o(Mr,ki),kn},uw=he=>he.dom.innerHTML,fw=he=>{const Ce=Nt.fromTag("div"),Xe=Nt.fromDom(he.dom.cloneNode(!0));return to(Ce,Xe),uw(Ce)},ud=(he,Ce)=>{he.selection.select(Ce.dom,!0),he.selection.collapse(!0)},i2=(he,Ce)=>{yl(Ce,"td,th").each(C(ud,he))},a2=(he,Ce)=>{U(Oo(Ce,"tr"),Xe=>{tu(he,Xe.dom),U(Oo(Xe,"th,td"),lt=>{qd(he,lt.dom)})})},s2=he=>s(he)&&he.indexOf("%")!==-1,Ib=(he,Ce,Xe,lt,Ct)=>{const Wt=Z1(he),kn={styles:Wt,attributes:Qd(he),colGroups:N_(he)};return he.undoManager.ignore(()=>{const Vn=bv(Xe,Ce,Ct,lt,z_(he),kn);st(Vn,"data-mce-id","__mce");const or=fw(Vn);he.insertContent(or),he.addVisual()}),yl(Im(he),'table[data-mce-id="__mce"]').map(Vn=>(l0(he)?ip(Vn):yp(he)?qm(Vn):(kf(he)||s2(Wt.width))&&hu(Vn),Oh(Vn),at(Vn,"data-mce-id"),a2(he,Vn),i2(he,Vn),Vn.dom)).getOrNull()},n3=(he,Ce,Xe,lt={})=>{const Ct=Wt=>a(Wt)&&Wt>0;if(Ct(Ce)&&Ct(Xe)){const Wt=lt.headerRows||0,kn=lt.headerColumns||0;return Ib(he,Xe,Ce,kn,Wt)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Eh=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Db="x-tinymce/dom-table-",l2=Db+"rows",fm=Db+"columns",r3=he=>{const Ce=Eh.FakeClipboardItem(he);Eh.write([Ce])},xv=he=>{var Ce;const Xe=(Ce=Eh.read())!==null&&Ce!==void 0?Ce:[];return we(Xe,lt=>A.from(lt.getType(he)))},g1=he=>{xv(he).isSome()&&Eh.clear()},_v=he=>{he.fold(Sy,Ce=>r3({[l2]:Ce}))},wv=()=>xv(l2),Sy=()=>g1(l2),Ov=he=>{he.fold(o3,Ce=>r3({[fm]:Ce}))},dw=()=>xv(fm),o3=()=>g1(fm),Bb=he=>Z_(zp(he),Dm(he)).filter(e1),hw=he=>q_(zp(he),Dm(he)).filter(e1),v1=(he,Ce)=>{const Xe=Dm(he),lt=()=>Bb(he).each(Xo=>{bl(Xo,Xe).filter(x(Xe)).each(oi=>{const wa=Nt.fromText("");if(Jr(oi,wa),pi(oi),he.dom.isEmpty(he.getBody()))he.setContent(""),he.selection.setCursorLocation();else{const Pa=he.dom.createRng();Pa.setStart(wa.dom,0),Pa.setEnd(wa.dom,0),he.selection.setRng(Pa),he.nodeChanged()}})}),Ct=Xo=>Bb(he).each(oi=>{yp(he)||l0(he)||kf(he)||bl(oi,Xe).each(Pa=>{Xo==="relative"&&!sw(Pa)?hu(Pa):Xo==="fixed"&&!Pb(Pa)?ip(Pa):Xo==="responsive"&&!t3(Pa)&&qm(Pa),Oh(Pa),Cd(he,Pa.dom,dl)})}),Wt=Xo=>bl(Xo,Xe),kn=Xo=>hw(he).bind(oi=>Wt(oi).map(wa=>Xo(wa,oi))),Vn=(Xo,oi)=>{kn(wa=>{he.formatter.toggle("tableclass",{value:oi},wa.dom),Cd(he,wa.dom,$c)})},or=(Xo,oi)=>{kn(wa=>{const Pa=uc(he),nu=se(Pa,Ll=>he.formatter.match("tablecellclass",{value:oi},Ll.dom))?he.formatter.remove:he.formatter.apply;U(Pa,Ll=>nu("tablecellclass",{value:oi},Ll.dom)),Cd(he,wa.dom,$c)})},Mr=()=>{Bb(he).each(Xo=>{bl(Xo,Xe).each(oi=>{zi(oi,"caption").fold(()=>{const wa=Nt.fromTag("caption");to(wa,Nt.fromText("Caption")),co(oi,wa,0),he.selection.setCursorLocation(wa.dom,0)},wa=>{vt("caption")(Xo)&&wn("td",oi).each(Pa=>he.selection.setCursorLocation(Pa.dom,0)),pi(wa)}),Cd(he,oi.dom,dl)})})},no=Xo=>{he.focus()},ti=(Xo,oi=!1)=>kn((wa,Pa)=>{const ta=Vx(uc(he),wa,Pa);Xo(wa,ta,oi).each(no)}),ki=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi),Pa=i0(c,Nt.fromDom(he.getDoc()),A.none());return b0(Xo,wa,Pa)}),xi=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi);return p1(Xo,wa)}),fi=(Xo,oi)=>oi().each(wa=>{const Pa=j(wa,ta=>Sr(ta));kn((ta,nu)=>{const Ll=a0(Nt.fromDom(he.getDoc())),$u=u0(uc(he),nu,Pa,Ll);Xo(ta,$u).each(no)})}),Vi=Xo=>(oi,wa)=>Re(wa,"type").each(Pa=>{ti(Xo(Pa),wa.no_events)});Ie({mceTableSplitCells:()=>ti(Ce.unmergeCells),mceTableMergeCells:()=>ti(Ce.mergeCells),mceTableInsertRowBefore:()=>ti(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>ti(Ce.insertRowsAfter),mceTableInsertColBefore:()=>ti(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>ti(Ce.insertColumnsAfter),mceTableDeleteCol:()=>ti(Ce.deleteColumn),mceTableDeleteRow:()=>ti(Ce.deleteRow),mceTableCutCol:()=>xi().each(Xo=>{Ov(Xo),ti(Ce.deleteColumn)}),mceTableCutRow:()=>ki().each(Xo=>{_v(Xo),ti(Ce.deleteRow)}),mceTableCopyCol:()=>xi().each(Xo=>Ov(Xo)),mceTableCopyRow:()=>ki().each(Xo=>_v(Xo)),mceTablePasteColBefore:()=>fi(Ce.pasteColsBefore,dw),mceTablePasteColAfter:()=>fi(Ce.pasteColsAfter,dw),mceTablePasteRowBefore:()=>fi(Ce.pasteRowsBefore,wv),mceTablePasteRowAfter:()=>fi(Ce.pasteRowsAfter,wv),mceTableDelete:lt,mceTableCellToggleClass:or,mceTableToggleClass:Vn,mceTableToggleCaption:Mr,mceTableSizingMode:(Xo,oi)=>Ct(oi),mceTableCellType:Vi(Xo=>Xo==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:Vi(Xo=>Xo==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:Vi(Xo=>{switch(Xo){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(Xo,oi)=>he.addCommand(oi,Xo)),he.addCommand("mceInsertTable",(Xo,oi)=>{n3(he,oi.rows,oi.columns,oi.options)}),he.addCommand("mceTableApplyCellStyle",(Xo,oi)=>{const wa=nu=>"tablecell"+nu.toLowerCase().replace("-","");if(!n(oi))return;const Pa=Z(uc(he),e1);if(Pa.length===0)return;const ta=$e(oi,(nu,Ll)=>he.formatter.has(wa(Ll))&&s(nu));Ze(ta)||(Ie(ta,(nu,Ll)=>{const $u=wa(Ll);U(Pa,vm=>{nu===""?he.formatter.remove($u,{value:null},vm.dom,!0):he.formatter.apply($u,{value:nu},vm.dom)})}),Wt(Pa[0]).each(nu=>Cd(he,nu.dom,$c)))})},c2=(he,Ce)=>{const Xe=Dm(he),lt=Ct=>q_(zp(he)).bind(Wt=>bl(Wt,Xe).map(kn=>{const Vn=Vx(uc(he),kn,Wt);return Ct(kn,Vn)})).getOr("");Ie({mceTableRowType:()=>lt(Ce.getTableRowType),mceTableCellType:()=>lt(Ce.getTableCellType),mceTableColType:()=>lt(Ce.getTableColType)},(Ct,Wt)=>he.addQueryValueHandler(Wt,Ct))},Wm=sm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),pw=(he,Ce,Xe,lt)=>he.fold(Ce,Xe,lt),mw=he=>he.fold(_,_,_),wp=Wm.before,zb=Wm.on,u2=Wm.after,Hf={before:wp,on:zb,after:u2,cata:pw,getStart:mw},ap={create:(he,Ce)=>({selection:he,kill:Ce})},Nb=(he,Ce)=>{const Xe=he.document.createRange();return Xe.selectNode(Ce.dom),Xe},i3=(he,Ce)=>{const Xe=he.document.createRange();return dm(Xe,Ce),Xe},dm=(he,Ce)=>he.selectNodeContents(Ce.dom),ky=(he,Ce)=>{Ce.fold(Xe=>{he.setStartBefore(Xe.dom)},(Xe,lt)=>{he.setStart(Xe.dom,lt)},Xe=>{he.setStartAfter(Xe.dom)})},f2=(he,Ce)=>{Ce.fold(Xe=>{he.setEndBefore(Xe.dom)},(Xe,lt)=>{he.setEnd(Xe.dom,lt)},Xe=>{he.setEndAfter(Xe.dom)})},a3=(he,Ce,Xe)=>{const lt=he.document.createRange();return ky(lt,Ce),f2(lt,Xe),lt},d2=(he,Ce,Xe,lt,Ct)=>{const Wt=he.document.createRange();return Wt.setStart(Ce.dom,Xe),Wt.setEnd(lt.dom,Ct),Wt},s3=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom,width:he.width,height:he.height}),h2=he=>{const Ce=he.getClientRects(),Xe=Ce.length>0?Ce[0]:he.getBoundingClientRect();return Xe.width>0||Xe.height>0?A.some(Xe).map(s3):A.none()},Fb=sm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),l3=(he,Ce,Xe)=>Ce(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset),c3=(he,Ce)=>Ce.match({domRange:Xe=>({ltr:v(Xe),rtl:A.none}),relative:(Xe,lt)=>({ltr:cs(()=>a3(he,Xe,lt)),rtl:cs(()=>A.some(a3(he,lt,Xe)))}),exact:(Xe,lt,Ct,Wt)=>({ltr:cs(()=>d2(he,Xe,lt,Ct,Wt)),rtl:cs(()=>A.some(d2(he,Ct,Wt,Xe,lt)))})}),U4=(he,Ce)=>{const Xe=Ce.ltr();return Xe.collapsed?Ce.rtl().filter(Ct=>Ct.collapsed===!1).map(Ct=>Fb.rtl(Nt.fromDom(Ct.endContainer),Ct.endOffset,Nt.fromDom(Ct.startContainer),Ct.startOffset)).getOrThunk(()=>l3(he,Fb.ltr,Xe)):l3(he,Fb.ltr,Xe)},p2=(he,Ce)=>{const Xe=c3(he,Ce);return U4(he,Xe)},m2=(he,Ce)=>p2(he,Ce).match({ltr:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(lt.dom,Ct),Vn.setEnd(Wt.dom,kn),Vn},rtl:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(Wt.dom,kn),Vn.setEnd(lt.dom,Ct),Vn}});Fb.ltr,Fb.rtl;const S0={create:(he,Ce,Xe,lt)=>({start:he,soffset:Ce,finish:Xe,foffset:lt})},y1={create:(he,Ce,Xe,lt)=>({start:Hf.on(he,Ce),finish:Hf.on(Xe,lt)})},g2=(he,Ce)=>{const Xe=m2(he,Ce);return S0.create(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset)},u3=y1.create,zM=(he,Ce,Xe,lt,Ct,Wt,kn)=>An(Xe,Ct)&<===Wt?A.none():Bs(Xe,"td,th",Ce).bind(Vn=>Bs(Ct,"td,th",Ce).bind(or=>mC(he,Ce,Vn,or,kn))),mC=(he,Ce,Xe,lt,Ct)=>An(Xe,lt)?A.none():Y1(Xe,lt,Ce).bind(Wt=>{const kn=Wt.boxes.getOr([]);return kn.length>1?(Ct(he,kn,Wt.start,Wt.finish),A.some(ap.create(A.some(u3(Xe,0,Xe,Is(Xe))),!0))):A.none()}),$b=(he,Ce,Xe,lt,Ct)=>{const Wt=kn=>(Ct.clearBeforeUpdate(Xe),Ct.selectRange(Xe,kn.boxes,kn.start,kn.finish),kn.boxes);return Q_(lt,he,Ce,Ct.firstSelectedSelector,Ct.lastSelectedSelector).map(Wt)},gC=(he,Ce)=>({item:he,mode:Ce}),vw=(he,Ce,Xe,lt=Ty)=>he.property().parent(Ce).map(Ct=>gC(Ct,lt)),Ty=(he,Ce,Xe,lt=yw)=>Xe.sibling(he,Ce).map(Ct=>gC(Ct,lt)),yw=(he,Ce,Xe,lt=yw)=>{const Ct=he.property().children(Ce);return Xe.first(Ct).map(kn=>gC(kn,lt))},vC=[{current:vw,next:Ty,fallback:A.none()},{current:Ty,next:yw,fallback:A.some(vw)},{current:yw,next:yw,fallback:A.some(Ty)}],yC=(he,Ce,Xe,lt,Ct=vC)=>Y(Ct,kn=>kn.current===Xe).bind(kn=>kn.current(he,Ce,lt,kn.next).orThunk(()=>kn.fallback.bind(Vn=>yC(he,Ce,Vn,lt)))),v2={left:()=>({sibling:(Xe,lt)=>Xe.query().prevSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[Xe.length-1]):A.none()}),right:()=>({sibling:(Xe,lt)=>Xe.query().nextSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[0]):A.none()})},b1=(he,Ce,Xe,lt,Ct,Wt)=>yC(he,Ce,lt,Ct).bind(Vn=>Wt(Vn.item)?A.none():Xe(Vn.item)?A.some(Vn.item):b1(he,Vn.item,Xe,Vn.mode,Ct,Wt)),FM=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Ty,v2.left(),lt),j4=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Ty,v2.right(),lt),bC=he=>Ce=>he.property().children(Ce).length===0,xC=(he,Ce,Xe)=>Q4(he,Ce,bC(he),Xe),_C=(he,Ce,Xe)=>wC(he,Ce,bC(he),Xe),Q4=FM,wC=j4,Cy=bg(),OC=(he,Ce)=>xC(Cy,he,Ce),Vb=(he,Ce)=>_C(Cy,he,Ce),Ay=(he,Ce,Xe)=>Q4(Cy,he,Ce,Xe),bw=(he,Ce,Xe)=>wC(Cy,he,Ce,Xe),y2=(he,Ce,Xe)=>Di(he,Ce,Xe).isSome(),f3=sm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),My=(he,Ce,Xe)=>{const lt=he.getRect(Ce),Ct=he.getRect(Xe);return Ct.right>lt.left&&Ct.leftBs(he,"tr"),b2={...f3,verify:(he,Ce,Xe,lt,Ct,Wt,kn)=>Bs(lt,"td,th",kn).bind(Vn=>Bs(Ce,"td,th",kn).map(or=>An(Vn,or)?An(lt,Vn)&&Is(Vn)===Ct?Wt(or):f3.none("in same cell"):Sh(hm,[Vn,or]).fold(()=>My(he,or,Vn)?f3.success():Wt(or),Mr=>Wt(or)))).getOr(f3.none("default")),cata:(he,Ce,Xe,lt,Ct)=>he.fold(Ce,Xe,lt,Ct)},SC=(he,Ce,Xe,lt)=>({parent:he,children:Ce,element:Xe,index:lt}),x2=he=>$r(he).bind(Ce=>{const Xe=lr(Ce);return _2(Xe,he).map(lt=>SC(Ce,Xe,he,lt))}),_2=(he,Ce)=>ee(he,C(An,Ce)),Yd=vt("br"),d3=(he,Ce,Xe)=>Ce(he,Xe).bind(lt=>Cn(lt)&&Cs(lt).trim().length===0?d3(lt,Ce,Xe):A.some(lt)),xw=(he,Ce,Xe)=>Xe.traverse(Ce).orThunk(()=>d3(Ce,Xe.gather,he)).map(Xe.relative),h3=(he,Ce)=>zr(he,Ce).filter(Yd).orThunk(()=>zr(he,Ce-1).filter(Yd)),kC=(he,Ce,Xe,lt)=>h3(Ce,Xe).bind(Ct=>lt.traverse(Ct).fold(()=>d3(Ct,lt.gather,he).map(lt.relative),Wt=>x2(Wt).map(kn=>Hf.on(kn.parent,kn.index)))),Z4=(he,Ce,Xe,lt)=>(Yd(Ce)?xw(he,Ce,lt):kC(he,Ce,Xe,lt)).map(Wt=>({start:Wt,finish:Wt})),p3=he=>b2.cata(he,Ce=>A.none(),()=>A.none(),Ce=>A.some(Oc(Ce,0)),Ce=>A.some(Oc(Ce,Is(Ce)))),Ef=(he,Ce)=>({left:he.left,top:he.top+Ce,right:he.right,bottom:he.bottom+Ce}),m3=(he,Ce)=>({left:he.left,top:he.top-Ce,right:he.right,bottom:he.bottom-Ce}),x1=(he,Ce,Xe)=>({left:he.left+Ce,top:he.top+Xe,right:he.right+Ce,bottom:he.bottom+Xe}),TC=he=>he.top,q4=he=>he.bottom,Sv=(he,Ce,Xe)=>Xe>=0&&Xe0?he.getRangedRect(Ce,Xe-1,Ce,Xe):A.none(),_w=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom}),w2=(he,Ce)=>A.some(he.getRect(Ce)),g3=(he,Ce,Xe)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?Sv(he,Ce,Xe).map(_w):A.none(),v3=(he,Ce)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?he.getRangedRect(Ce,0,Ce,Is(Ce)).map(_w):A.none(),Ey=5,VM=100,Vp=sm.generate([{none:[]},{retry:["caret"]}]),k0=(he,Ce)=>he.leftCe.right,W4=(he,Ce,Xe)=>To(Ce,Tf).fold(T,lt=>v3(he,lt).exists(Ct=>k0(Xe,Ct))),CC=(he,Ce,Xe,lt,Ct)=>{const Wt=Ef(Ct,Ey);return Math.abs(Xe.bottom-lt.bottom)<1||Xe.top>Ct.bottom?Vp.retry(Wt):Xe.top===Ct.bottom?Vp.retry(Ef(Ct,1)):W4(he,Ce,Ct)?Vp.retry(x1(Wt,Ey,0)):Vp.none()},Y4={point:TC,adjuster:(he,Ce,Xe,lt,Ct)=>{const Wt=m3(Ct,Ey);return Math.abs(Xe.top-lt.top)<1||Xe.bottomhe.elementFromPoint(Ce,Xe).filter(lt=>Yt(lt)==="table").isSome(),EC=(he,Ce,Xe,lt,Ct)=>Op(he,Ce,Xe,Ce.move(lt,Ey),Ct),Op=(he,Ce,Xe,lt,Ct)=>Ct===0?A.some(lt):MC(he,lt.left,Ce.point(lt))?EC(he,Ce,Xe,lt,Ct-1):he.situsFromPoint(lt.left,Ce.point(lt)).bind(Wt=>Wt.start.fold(A.none,kn=>v3(he,kn).bind(Vn=>Ce.adjuster(he,kn,Vn,Xe,lt).fold(A.none,or=>Op(he,Ce,Xe,or,Ct-1))).orThunk(()=>A.some(lt)),A.none)),Ub=(he,Ce,Xe)=>he.point(Ce)>Xe.getInnerHeight()?A.some(he.point(Ce)-Xe.getInnerHeight()):he.point(Ce)<0?A.some(-he.point(Ce)):A.none(),G4=(he,Ce,Xe)=>{const lt=he.move(Xe,Ey),Ct=Op(Ce,he,Xe,lt,VM).getOr(lt);return Ub(he,Ct,Ce).fold(()=>Ce.situsFromPoint(Ct.left,he.point(Ct)),Wt=>(Ce.scrollBy(0,Wt),Ce.situsFromPoint(Ct.left,he.point(Ct)-Wt)))},Py={tryUp:C(G4,Y4),tryDown:C(G4,X4),getJumpSize:v(Ey)},Sp=20,Up=(he,Ce,Xe)=>he.getSelection().bind(lt=>Z4(Ce,lt.finish,lt.foffset,Xe).fold(()=>A.some(Oc(lt.finish,lt.foffset)),Ct=>{const Wt=he.fromSitus(Ct),kn=b2.verify(he,lt.finish,lt.foffset,Wt.finish,Wt.foffset,Xe.failure,Ce);return p3(kn)})),ph=(he,Ce,Xe,lt,Ct,Wt)=>Wt===0?A.none():Xm(he,Ce,Xe,lt,Ct).bind(kn=>{const Vn=he.fromSitus(kn),or=b2.verify(he,Xe,lt,Vn.finish,Vn.foffset,Ct.failure,Ce);return b2.cata(or,()=>A.none(),()=>A.some(kn),Mr=>An(Xe,Mr)&<===0?Ym(he,Xe,lt,m3,Ct):ph(he,Ce,Mr,0,Ct,Wt-1),Mr=>An(Xe,Mr)&<===Is(Mr)?Ym(he,Xe,lt,Ef,Ct):ph(he,Ce,Mr,Is(Mr),Ct,Wt-1))}),Ym=(he,Ce,Xe,lt,Ct)=>g3(he,Ce,Xe).bind(Wt=>y3(he,Ct,lt(Wt,Py.getJumpSize()))),y3=(he,Ce,Xe)=>{const lt=wf().browser;return lt.isChromium()||lt.isSafari()||lt.isFirefox()?Ce.retry(he,Xe):A.none()},Xm=(he,Ce,Xe,lt,Ct)=>g3(he,Xe,lt).bind(Wt=>y3(he,Ct,Wt)),jb=(he,Ce,Xe)=>Up(he,Ce,Xe).bind(lt=>ph(he,Ce,lt.element,lt.offset,Xe,Sp).map(he.fromSitus)),UM=(he,Ce)=>y2(he,Xe=>$r(Xe).exists(lt=>An(lt,Ce))),K4=(he,Ce,Xe,lt,Ct)=>Bs(lt,"td,th",Ce).bind(Wt=>Bs(Wt,"table",Ce).bind(kn=>UM(Ct,kn)?jb(he,Ce,Xe).bind(Vn=>Bs(Vn.finish,"td,th",Ce).map(or=>({start:Wt,finish:or,range:Vn}))):A.none())),jM=(he,Ce,Xe,lt,Ct,Wt)=>Wt(lt,Ce).orThunk(()=>K4(he,Ce,Xe,lt,Ct).map(kn=>{const Vn=kn.range;return ap.create(A.some(u3(Vn.start,Vn.soffset,Vn.finish,Vn.foffset)),!0)})),QM=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[0])?Ay(lt,Wt=>gg(Wt).isSome(),Ce).map(Wt=>{const kn=Is(Wt);return ap.create(A.some(u3(Wt,kn,Wt,kn)),!0)}):A.none()})),PC=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[Ct.length-1])?bw(lt,Wt=>ch(Wt).isSome(),Ce).map(Wt=>ap.create(A.some(u3(Wt,0,Wt,0)),!0)):A.none()})),b3=(he,Ce,Xe,lt,Ct,Wt,kn)=>K4(he,Xe,lt,Ct,Wt).bind(Vn=>mC(Ce,Xe,Vn.start,Vn.finish,kn)),x3=he=>{let Ce=he;return{get:()=>Ce,set:Ct=>{Ce=Ct}}},Ph=he=>{const Ce=x3(A.none()),Xe=()=>Ce.get().each(he);return{clear:()=>{Xe(),Ce.set(A.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Vn=>{Xe(),Ce.set(A.some(Vn))}}},O2=()=>{const he=Ph(c);return{...he,on:Xe=>he.get().each(Xe)}},S2=(he,Ce)=>Bs(he,"td,th",Ce),ww=he=>vr(he).exists(sy),J4=(he,Ce,Xe,lt)=>{const Ct=O2(),Wt=Ct.clear,kn=no=>{Ct.on(ti=>{lt.clearBeforeUpdate(Ce),S2(no.target,Xe).each(ki=>{Y1(ti,ki,Xe).each(xi=>{const fi=xi.boxes.getOr([]);if(fi.length===1){const Vi=fi[0],Xo=yg(Vi)==="false",oi=yf(K0(no.target),Vi,An);Xo&&oi&<.selectRange(Ce,fi,Vi,Vi)}else fi.length>1&&(lt.selectRange(Ce,fi,xi.start,xi.finish),he.selectContents(ki))})})})};return{clearstate:Wt,mousedown:no=>{lt.clear(Ce),S2(no.target,Xe).filter(ww).each(Ct.set)},mouseover:no=>{kn(no)},mouseup:no=>{kn(no),Wt()}}},Ow={traverse:sr,gather:Vb,relative:Hf.before,retry:Py.tryDown,failure:b2.failedDown},Sw={traverse:gr,gather:OC,relative:Hf.before,retry:Py.tryUp,failure:b2.failedUp},Qb=he=>Ce=>Ce===he,ek=Qb(38),_3=Qb(40),Eg=he=>he>=37&&he<=40,RC={isBackward:Qb(37),isForward:Qb(39)},LC={isBackward:Qb(39),isForward:Qb(37)},kv=he=>{const Ce=he!==void 0?he.dom:document,Xe=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,lt=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Ni(Xe,lt)},pm=(he,Ce,Xe)=>{const Ct=(Xe!==void 0?Xe.dom:document).defaultView;Ct&&Ct.scrollBy(he,Ce)},kw=sm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Hb=he=>kw.exact(he.start,he.soffset,he.finish,he.foffset),Ry=he=>he.match({domRange:Ce=>Nt.fromDom(Ce.startContainer),relative:(Ce,Xe)=>Hf.getStart(Ce),exact:(Ce,Xe,lt,Ct)=>Ce}),tk=kw.domRange,w3=kw.relative,IC=kw.exact,HM=he=>{const Ce=Ry(he);return Br(Ce)},ZM=S0.create,Zb={domRange:tk,relative:w3,exact:IC,exactFromRange:Hb,getWin:HM,range:ZM},nk=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretPositionFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe)).bind(Ct=>{if(Ct.offsetNode===null)return A.none();const Wt=he.createRange();return Wt.setStart(Ct.offsetNode,Ct.offset),Wt.collapse(),A.some(Wt)})},k2=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretRangeFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe))},Tw=(he,Ce,Xe)=>he.caretPositionFromPoint?nk(he,Ce,Xe):he.caretRangeFromPoint?k2(he,Ce,Xe):A.none(),qM=(he,Ce,Xe)=>{const lt=he.document;return Tw(lt,Ce,Xe).map(Ct=>S0.create(Nt.fromDom(Ct.startContainer),Ct.startOffset,Nt.fromDom(Ct.endContainer),Ct.endOffset))},O3=(he,Ce)=>{const Xe=Yt(he);return Xe==="input"?Hf.after(he):z(["br","img"],Xe)?Ce===0?Hf.before(he):Hf.after(he):Hf.on(he,Ce)},rk=(he,Ce)=>{const Xe=he.fold(Hf.before,O3,Hf.after),lt=Ce.fold(Hf.before,O3,Hf.after);return Zb.relative(Xe,lt)},ok=(he,Ce,Xe,lt)=>{const Ct=O3(he,Ce),Wt=O3(Xe,lt);return Zb.relative(Ct,Wt)},S3=(he,Ce,Xe,lt)=>{const Wt=Un(he).dom.createRange();return Wt.setStart(he.dom,Ce),Wt.setEnd(Xe.dom,lt),Wt},ik=(he,Ce,Xe,lt)=>{const Ct=S3(he,Ce,Xe,lt),Wt=An(he,Xe)&&Ce===lt;return Ct.collapsed&&!Wt},T2=he=>A.from(he.getSelection()),k3=(he,Ce)=>{T2(he).each(Xe=>{Xe.removeAllRanges(),Xe.addRange(Ce)})},T3=(he,Ce,Xe,lt,Ct)=>{const Wt=d2(he,Ce,Xe,lt,Ct);k3(he,Wt)},C3=(he,Ce,Xe,lt,Ct,Wt)=>{Ce.collapse(Xe.dom,lt),Ce.extend(Ct.dom,Wt)},A3=(he,Ce)=>p2(he,Ce).match({ltr:(Xe,lt,Ct,Wt)=>{T3(he,Xe,lt,Ct,Wt)},rtl:(Xe,lt,Ct,Wt)=>{T2(he).each(kn=>{if(kn.setBaseAndExtent)kn.setBaseAndExtent(Xe.dom,lt,Ct.dom,Wt);else if(kn.extend)try{C3(he,kn,Xe,lt,Ct,Wt)}catch{T3(he,Ct,Wt,Xe,lt)}else T3(he,Ct,Wt,Xe,lt)})}}),Ys=(he,Ce,Xe,lt,Ct)=>{const Wt=ok(Ce,Xe,lt,Ct);A3(he,Wt)},_1=(he,Ce,Xe)=>{const lt=rk(Ce,Xe);A3(he,lt)},qb=he=>{if(he.rangeCount>0){const Ce=he.getRangeAt(0),Xe=he.getRangeAt(he.rangeCount-1);return A.some(S0.create(Nt.fromDom(Ce.startContainer),Ce.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset))}else return A.none()},M3=he=>{if(he.anchorNode===null||he.focusNode===null)return qb(he);{const Ce=Nt.fromDom(he.anchorNode),Xe=Nt.fromDom(he.focusNode);return ik(Ce,he.anchorOffset,Xe,he.focusOffset)?A.some(S0.create(Ce,he.anchorOffset,Xe,he.focusOffset)):qb(he)}},E3=(he,Ce,Xe=!0)=>{const Ct=(Xe?i3:Nb)(he,Ce);k3(he,Ct)},Ly=he=>T2(he).filter(Ce=>Ce.rangeCount>0).bind(M3),P3=he=>Ly(he).map(Ce=>Zb.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),ak=(he,Ce)=>{const Xe=m2(he,Ce);return h2(Xe)},sk=(he,Ce,Xe)=>qM(he,Ce,Xe),lk=he=>{T2(he).each(Ce=>Ce.removeAllRanges())},Tv=he=>({elementFromPoint:(Xo,oi)=>Nt.fromPoint(Nt.fromDom(he.document),Xo,oi),getRect:Xo=>Xo.dom.getBoundingClientRect(),getRangedRect:(Xo,oi,wa,Pa)=>{const ta=Zb.exact(Xo,oi,wa,Pa);return ak(he,ta)},getSelection:()=>P3(he).map(Xo=>g2(he,Xo)),fromSitus:Xo=>{const oi=Zb.relative(Xo.start,Xo.finish);return g2(he,oi)},situsFromPoint:(Xo,oi)=>sk(he,Xo,oi).map(wa=>y1.create(wa.start,wa.soffset,wa.finish,wa.foffset)),clearSelection:()=>{lk(he)},collapseSelection:(Xo=!1)=>{P3(he).each(oi=>oi.fold(wa=>wa.collapse(Xo),(wa,Pa)=>{const ta=Xo?wa:Pa;_1(he,ta,ta)},(wa,Pa,ta,nu)=>{const Ll=Xo?wa:ta,$u=Xo?Pa:nu;Ys(he,Ll,$u,Ll,$u)}))},setSelection:Xo=>{Ys(he,Xo.start,Xo.soffset,Xo.finish,Xo.foffset)},setRelativeSelection:(Xo,oi)=>{_1(he,Xo,oi)},selectNode:Xo=>{E3(he,Xo,!1)},selectContents:Xo=>{E3(he,Xo)},getInnerHeight:()=>he.innerHeight,getScrollY:()=>kv(Nt.fromDom(he.document)).top,scrollBy:(Xo,oi)=>{pm(Xo,oi,Nt.fromDom(he.document))}}),Wb=(he,Ce)=>({rows:he,cols:Ce}),DC=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=J4(Ct,Ce,Xe,lt);return{clearstate:Wt.clearstate,mousedown:Wt.mousedown,mouseover:Wt.mouseover,mouseup:Wt.mouseup}},Cw=he=>To(he,Ot).exists(sy),ck=(he,Ce)=>Cw(he)||Cw(Ce),R3=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=()=>(lt.clear(Ce),A.none());return{keydown:(or,Mr,no,ti,ki,xi)=>{const fi=or.raw,Vi=fi.which,Xo=fi.shiftKey===!0;return cy(Ce,lt.selectedSelector).fold(()=>(Eg(Vi)&&!Xo&<.clearBeforeUpdate(Ce),Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?C(b3,Ct,Ce,Xe,Ow,ti,Mr,lt.selectRange):ek(Vi)&&Xo?C(b3,Ct,Ce,Xe,Sw,ti,Mr,lt.selectRange):_3(Vi)?C(jM,Ct,Xe,Ow,ti,Mr,PC):ek(Vi)?C(jM,Ct,Xe,Sw,ti,Mr,QM):A.none),wa=>{const Pa=ta=>()=>we(ta,Ll=>$b(Ll.rows,Ll.cols,Ce,wa,lt)).fold(()=>jO(Ce,lt.firstSelectedSelector,lt.lastSelectedSelector).map(Ll=>{const $u=_3(Vi)||xi.isForward(Vi)?Hf.after:Hf.before;return Ct.setRelativeSelection(Hf.on(Ll.first,0),$u(Ll.table)),lt.clear(Ce),ap.create(A.none(),!0)}),Ll=>A.some(ap.create(A.none(),!0)));return Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?Pa([Wb(1,0)]):ek(Vi)&&Xo?Pa([Wb(-1,0)]):xi.isBackward(Vi)&&Xo?Pa([Wb(0,-1),Wb(-1,0)]):xi.isForward(Vi)&&Xo?Pa([Wb(0,1),Wb(1,0)]):Eg(Vi)&&!Xo?Wt:A.none})()},keyup:(or,Mr,no,ti,ki)=>cy(Ce,lt.selectedSelector).fold(()=>{const xi=or.raw,fi=xi.which;return xi.shiftKey===!0&&Eg(fi)&&ck(Mr,ti)?zM(Ce,Xe,Mr,no,ti,ki,lt.selectRange):A.none()},A.none)}},L3=(he,Ce,Xe,lt)=>{const Ct=Tv(he);return(Wt,kn)=>{lt.clearBeforeUpdate(Ce),Y1(Wt,kn,Xe).each(Vn=>{const or=Vn.boxes.getOr([]);lt.selectRange(Ce,or,Vn.start,Vn.finish),Ct.selectContents(kn),Ct.collapseSelection()})}},uk=(he,Ce)=>{const Xe=Dt(he,Ce);return Xe===void 0||Xe===""?[]:Xe.split(" ")},BC=(he,Ce,Xe)=>{const Ct=uk(he,Ce).concat([Xe]);return st(he,Ce,Ct.join(" ")),!0},Cv=(he,Ce,Xe)=>{const lt=Z(uk(he,Ce),Ct=>Ct!==Xe);return lt.length>0?st(he,Ce,lt.join(" ")):at(he,Ce),!1},I3=he=>he.dom.classList!==void 0,zC=he=>uk(he,"class"),Gm=(he,Ce)=>BC(he,"class",Ce),Ed=(he,Ce)=>Cv(he,"class",Ce),Av=(he,Ce)=>{I3(he)?he.dom.classList.add(Ce):Gm(he,Ce)},fk=he=>{(I3(he)?he.dom.classList:zC(he)).length===0&&at(he,"class")},WM=(he,Ce)=>{I3(he)?he.dom.classList.remove(Ce):Ed(he,Ce),fk(he)},D3=(he,Ce)=>I3(he)&&he.dom.classList.contains(Ce),dk=(he,Ce)=>{U(Ce,Xe=>{WM(he,Xe)})},C2=he=>Ce=>{Av(Ce,he)},NC=he=>Ce=>{dk(Ce,he)},XM={byClass:he=>{const Ce=C2(he.selected),Xe=NC([he.selected,he.lastSelected,he.firstSelected]),lt=Wt=>{const kn=Oo(Wt,he.selectedSelector);U(kn,Xe)};return{clearBeforeUpdate:lt,clear:lt,selectRange:(Wt,kn,Vn,or)=>{lt(Wt),U(kn,Ce),Av(Vn,he.firstSelected),Av(or,he.lastSelected)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}},byAttr:(he,Ce,Xe)=>{const lt=or=>{at(or,he.selected),at(or,he.firstSelected),at(or,he.lastSelected)},Ct=or=>{st(or,he.selected,"1")},Wt=or=>{kn(or),Xe()},kn=or=>{const Mr=Oo(or,`${he.selectedSelector},${he.firstSelectedSelector},${he.lastSelectedSelector}`);U(Mr,lt)};return{clearBeforeUpdate:kn,clear:Wt,selectRange:(or,Mr,no,ti)=>{Wt(or),U(Mr,Ct),st(no,he.firstSelected,"1"),st(ti,he.lastSelected,"1"),Ce(Mr,no,ti)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}}},FC=(he,Ce,Xe,lt)=>{switch(he.tag){case"none":return Ce();case"single":return lt(he.element);case"multiple":return Xe(he.elements)}},$C=()=>({tag:"none"}),Ei=he=>({tag:"multiple",elements:he}),Pd=he=>({tag:"single",element:he}),Aw=(he,Ce,Xe)=>({get:()=>wg(he(),Xe).fold(()=>Ce().fold($C,Pd),Ei)}),Rd=(he,Ce)=>{const Xe=he.slice(0,Ce[Ce.length-1].row+1),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(0,Ce[Ce.length-1].column+1);return j(Wt,kn=>kn.element)})},Km=(he,Ce)=>{const Xe=he.slice(Ce[0].row+Ce[0].rowspan-1,he.length),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(Ce[0].column+Ce[0].colspan-1,Ct.cells.length);return j(Wt,kn=>kn.element)})},hk=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Th(lt,Ce).map(Wt=>{const kn=iv(lt,Xe,!1),{rows:Vn}=zl(kn),or=Rd(Vn,Wt),Mr=Km(Vn,Wt);return{upOrLeftCells:or,downOrRightCells:Mr}})},Yb=(he,Ce,Xe,lt,Ct,Wt,kn)=>({target:he,x:Ce,y:Xe,stop:lt,prevent:Ct,kill:Wt,raw:kn}),Mw=he=>{const Ce=Nt.fromDom(Cr(he).getOr(he.target)),Xe=()=>he.stopPropagation(),lt=()=>he.preventDefault(),Ct=h(lt,Xe);return Yb(Ce,he.clientX,he.clientY,Xe,lt,Ct,he)},Xb=(he,Ce)=>Xe=>{he(Xe)&&Ce(Mw(Xe))},Ew=(he,Ce,Xe,lt,Ct)=>{const Wt=Xb(Xe,lt);return he.dom.addEventListener(Ce,Wt,Ct),{unbind:C(GM,he,Ce,Wt,Ct)}},VC=(he,Ce,Xe,lt)=>Ew(he,Ce,Xe,lt,!1),GM=(he,Ce,Xe,lt)=>{he.dom.removeEventListener(Ce,Xe,lt)},KM=P,A2=(he,Ce,Xe)=>VC(he,Ce,KM,Xe),Gb=Mw,pk=he=>!D3(Nt.fromDom(he.target),"ephox-snooker-resizer-bar"),mk=(he,Ce)=>{const Xe=Aw(()=>Nt.fromDom(he.getBody()),()=>q_(zp(he),Dm(he)),Xu.selectedSelector),lt=(or,Mr,no)=>{bl(Mr).each(ki=>{const xi=j(or,wa=>wa.dom),fi=VO(he),Vi=i0(c,Nt.fromDom(he.getDoc()),fi),Xo=uc(he),oi=hk(ki,{selection:Xo},Vi).map(wa=>ze(wa,Pa=>j(Pa,ta=>ta.dom))).getOrUndefined();d1(he,xi,Mr.dom,no.dom,oi)})},Ct=()=>t2(he),Wt=XM.byAttr(Xu,lt,Ct);return he.on("init",or=>{const Mr=he.getWin(),no=Im(he),ti=Dm(he),ki=()=>{const Tl=he.selection,Ld=Nt.fromDom(Tl.getStart()),sp=Nt.fromDom(Tl.getEnd());Sh(bl,[Ld,sp]).fold(()=>Wt.clear(no),c)},xi=DC(Mr,no,ti,Wt),fi=R3(Mr,no,ti,Wt),Vi=L3(Mr,no,ti,Wt),Xo=Tl=>Tl.raw.shiftKey===!0;he.on("TableSelectorChange",Tl=>Vi(Tl.start,Tl.finish));const oi=(Tl,Ld)=>{Xo(Tl)&&(Ld.kill&&Tl.kill(),Ld.selection.each(sp=>{const Rg=Zb.relative(sp.start,sp.finish),ym=m2(Mr,Rg);he.selection.setRng(ym)}))},wa=Tl=>{const Ld=Gb(Tl);if(Ld.raw.shiftKey&&Eg(Ld.raw.which)){const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer);fi.keyup(Ld,Rg,sp.startOffset,ym,sp.endOffset).each(P2=>{oi(Ld,P2)})}},Pa=Tl=>{const Ld=Gb(Tl);Ce.hide();const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer),P2=Kt(RC,LC)(Nt.fromDom(he.selection.getStart()));fi.keydown(Ld,Rg,sp.startOffset,ym,sp.endOffset,P2).each(Wa=>{oi(Ld,Wa)}),Ce.show()},ta=Tl=>Tl.button===0,nu=Tl=>Tl.buttons===void 0?!0:(Tl.buttons&1)!==0,Ll=Tl=>{xi.clearstate()},$u=Tl=>{ta(Tl)&&pk(Tl)&&xi.mousedown(Gb(Tl))},vm=Tl=>{nu(Tl)&&pk(Tl)&&xi.mouseover(Gb(Tl))},gh=Tl=>{ta(Tl)&&pk(Tl)&&xi.mouseup(Gb(Tl))},ex=(()=>{const Tl=x3(Nt.fromDom(no)),Ld=x3(0);return{touchEnd:Rg=>{const ym=Nt.fromDom(Rg.target);if(vt("td")(ym)||vt("th")(ym)){const P2=Tl.get(),Wa=Ld.get();An(P2,ym)&&Rg.timeStamp-Wa<300&&(Rg.preventDefault(),Vi(ym,ym))}Tl.set(ym),Ld.set(Rg.timeStamp)}}})();he.on("dragstart",Ll),he.on("mousedown",$u),he.on("mouseover",vm),he.on("mouseup",gh),he.on("touchend",ex.touchEnd),he.on("keyup",wa),he.on("keydown",Pa),he.on("NodeChange",ki)}),he.on("PreInit",()=>{he.serializer.addTempAttr(Xu.firstSelected),he.serializer.addTempAttr(Xu.lastSelected)}),{getSelectedCells:()=>FC(Xe.get(),v([]),or=>j(or,Mr=>Mr.dom),or=>[or.dom]),clearSelectedCells:or=>Wt.clear(Nt.fromDom(or))}},jp=he=>{let Ce=[];return{bind:Wt=>{if(Wt===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Wt)},unbind:Wt=>{Ce=Z(Ce,kn=>kn!==Wt)},trigger:(...Wt)=>{const kn={};U(he,(Vn,or)=>{kn[Vn]=Wt[or]}),U(Ce,Vn=>{Vn(kn)})}}},w1=he=>{const Ce=ze(he,lt=>({bind:lt.bind,unbind:lt.unbind})),Xe=ze(he,lt=>lt.trigger);return{registry:Ce,trigger:Xe}},B3=(he,Ce)=>{let Xe=null;const lt=()=>{b(Xe)||(clearTimeout(Xe),Xe=null)};return{cancel:lt,throttle:(...Wt)=>{lt(),Xe=setTimeout(()=>{Xe=null,he.apply(null,Wt)},Ce)}}},Pg=he=>he.slice(0).sort(),z3=(he,Ce)=>{throw new Error("All required keys ("+Pg(he).join(", ")+") were not specified. Specified keys were: "+Pg(Ce).join(", ")+".")},JM=he=>{throw new Error("Unsupported keys for object: "+Pg(he).join(", "))},N3=(he,Ce)=>{if(!u(Ce))throw new Error("The "+he+" fields must be an array. Was: "+Ce+".");U(Ce,Xe=>{if(!s(Xe))throw new Error("The value "+Xe+" in the "+he+" fields was not a string.")})},F3=(he,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Pg(he).join(", ")+") were not.")},eE=he=>{const Ce=Pg(he);Y(Ce,(lt,Ct)=>Ct{throw new Error("The field: "+lt+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},tE=(he,Ce)=>nE(he,Ce,{validate:m,label:"function"}),nE=(he,Ce,Xe)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return N3("required",Ce),eE(Ce),lt=>{const Ct=Te(lt);se(Ce,Vn=>z(Ct,Vn))||z3(Ce,Ct),he(Ce,Ct);const kn=Z(Ce,Vn=>!Xe.validate(lt[Vn],Vn));return kn.length>0&&F3(kn,Xe.label),lt}},rE=(he,Ce)=>{const Xe=Z(Ce,lt=>!z(he,lt));Xe.length>0&&JM(Xe)},$3=he=>tE(rE,he),UC=$3(["compare","extract","mutate","sink"]),oE=$3(["element","start","stop","destroy"]),V3=$3(["forceDrop","drop","move","delayDrop"]),mh=()=>{let he=A.none();const Ce=()=>{he=A.none()},Xe=(Wt,kn)=>{const Vn=he.map(or=>Wt.compare(or,kn));return he=A.some(kn),Vn},lt=(Wt,kn)=>{kn.extract(Wt).each(or=>{Xe(kn,or).each(no=>{Ct.trigger.move(no)})})},Ct=w1({move:jp(["info"])});return{onEvent:lt,reset:Ce,events:Ct.registry}},Jm=()=>{const he=w1({move:jp(["info"])});return{onEvent:c,reset:c,events:he.registry}},mm=()=>{const he=Jm(),Ce=mh();let Xe=he;return{on:()=>{Xe.reset(),Xe=Ce},off:()=>{Xe.reset(),Xe=he},isOn:()=>Xe===Ce,onEvent:(Vn,or)=>{Xe.onEvent(Vn,or)},events:Ce.events}},U3=(he,Ce,Xe)=>{let lt=!1;const Ct=w1({start:jp([]),stop:jp([])}),Wt=mm(),kn=()=>{fi.stop(),Wt.isOn()&&(Wt.off(),Ct.trigger.stop())},Vn=B3(kn,200),or=Xo=>{fi.start(Xo),Wt.on(),Ct.trigger.start()},Mr=Xo=>{Vn.cancel(),Wt.onEvent(Xo,Ce)};Wt.events.move.bind(Xo=>{Ce.mutate(he,Xo.info)});const no=()=>{lt=!0},ti=()=>{lt=!1},ki=()=>lt,xi=Xo=>(...oi)=>{lt&&Xo.apply(null,oi)},fi=Ce.sink(V3({forceDrop:kn,drop:xi(kn),move:xi(Mr),delayDrop:xi(Vn.throttle)}),Xe),Vi=()=>{fi.destroy()};return{element:fi.element,go:or,on:no,off:ti,isActive:ki,destroy:Vi,events:Ct.registry}},Pw=he=>{const Ce=he.replace(/\./g,"-");return{resolve:lt=>Ce+"-"+lt}},Rw=Pw("ephox-dragster").resolve,iE=he=>{const Ce={layerClass:Rw("blocker"),...he},Xe=Nt.fromTag("div");return st(Xe,"role","presentation"),Wl(Xe,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Av(Xe,Rw("blocker")),Av(Xe,Ce.layerClass),{element:v(Xe),destroy:()=>{pi(Xe)}}};var ZC=UC({compare:(he,Ce)=>Ni(Ce.left-he.left,Ce.top-he.top),extract:he=>A.some(Ni(he.x,he.y)),sink:(he,Ce)=>{const Xe=iE(Ce),lt=A2(Xe.element(),"mousedown",he.forceDrop),Ct=A2(Xe.element(),"mouseup",he.drop),Wt=A2(Xe.element(),"mousemove",he.move),kn=A2(Xe.element(),"mouseout",he.delayDrop),Vn=()=>{Xe.destroy(),Ct.unbind(),Wt.unbind(),kn.unbind(),lt.unbind()},or=no=>{to(no,Xe.element())},Mr=()=>{pi(Xe.element())};return oE({element:Xe.element,start:or,stop:Mr,destroy:Vn})},mutate:(he,Ce)=>{he.mutate(Ce.left,Ce.top)}});const j3=(he,Ce={})=>{var Xe;const lt=(Xe=Ce.mode)!==null&&Xe!==void 0?Xe:ZC;return U3(he,lt,Ce)},Jo=Pw("ephox-snooker").resolve,gm=()=>{const he=w1({drag:jp(["xDelta","yDelta"])});return{mutate:(Xe,lt)=>{he.trigger.drag(Xe,lt)},events:he.registry}},WC=()=>{const he=w1({drag:jp(["xDelta","yDelta","target"])});let Ce=A.none();const Xe=gm();return Xe.events.drag.bind(Wt=>{Ce.each(kn=>{he.trigger.drag(Wt.xDelta,Wt.yDelta,kn)})}),{assign:Wt=>{Ce=A.some(Wt)},get:()=>Ce,mutate:Xe.mutate,events:he.registry}},gk=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce-lt/2+"px",top:Xe+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-column":he,role:"presentation"}),Wt},Lw=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce+"px",top:Xe-Ct/2+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-row":he,role:"presentation"}),Wt},Kb=Jo("resizer-bar"),vk=Jo("resizer-rows"),Iw=Jo("resizer-cols"),YC=7,sE=(he,Ce)=>pe(he.all,(Xe,lt)=>Ce(Xe.element)?[lt]:[]),yk=(he,Ce)=>{const Xe=[];return Q(he.grid.columns,lt=>{Ca.getColumnAt(he,lt).map(Wt=>Wt.element).forall(Ce)&&Xe.push(lt)}),Z(Xe,lt=>{const Ct=Ca.filterItems(he,Wt=>Wt.column===lt);return se(Ct,Wt=>Ce(Wt.element))})},Dw=he=>{const Ce=Oo(he.parent(),"."+Kb);U(Ce,pi)},Iy=(he,Ce,Xe)=>{const lt=he.origin();U(Ce,Ct=>{Ct.each(Wt=>{const kn=Xe(lt,Wt);Av(kn,Kb),to(he.parent(),kn)})})},XC=(he,Ce,Xe,lt)=>{Iy(he,Ce,(Ct,Wt)=>{const kn=gk(Wt.col,Wt.x-Ct.left,Xe.top-Ct.top,YC,lt);return Av(kn,Iw),kn})},GC=(he,Ce,Xe,lt)=>{Iy(he,Ce,(Ct,Wt)=>{const kn=Lw(Wt.row,Xe.left-Ct.left,Wt.y-Ct.top,lt,YC);return Av(kn,vk),kn})},lE=(he,Ce,Xe,lt,Ct)=>{const Wt=nl(Xe),kn=Ce.isResizable,Vn=lt.length>0?Os.positions(lt,Xe):[],or=Vn.length>0?sE(he,kn):[],Mr=Z(Vn,(xi,fi)=>$(or,Vi=>fi===Vi));GC(Ce,Mr,Wt,ds(Xe));const no=Ct.length>0?tp.positions(Ct,Xe):[],ti=no.length>0?yk(he,kn):[],ki=Z(no,(xi,fi)=>$(ti,Vi=>fi===Vi));XC(Ce,ki,Wt,uo(Xe))},bk=(he,Ce)=>{if(Dw(he),he.isResizable(Ce)){const Xe=Ca.fromTable(Ce),lt=_u(Xe),Ct=Ls(Xe);lE(Xe,he,Ce,lt,Ct)}},cE=(he,Ce)=>{const Xe=Oo(he.parent(),"."+Kb);U(Xe,Ce)},Qp=he=>{cE(he,Ce=>{Al(Ce,"display","none")})},Zh=he=>{cE(he,Ce=>{Al(Ce,"display","block")})},M2=he=>D3(he,vk),ED=he=>D3(he,Iw),uE=Jo("resizer-bar-dragging"),xk=he=>{const Ce=WC(),Xe=j3(Ce,{});let lt=A.none();const Ct=(fi,Vi)=>A.from(Dt(fi,Vi));Ce.events.drag.bind(fi=>{Ct(fi.target,"data-row").each(Vi=>{const Xo=Dc(fi.target,"top");Al(fi.target,"top",Xo+fi.yDelta+"px")}),Ct(fi.target,"data-column").each(Vi=>{const Xo=Dc(fi.target,"left");Al(fi.target,"left",Xo+fi.xDelta+"px")})});const Wt=(fi,Vi)=>{const Xo=Dc(fi,Vi),oi=ll(fi,"data-initial-"+Vi,0);return Xo-oi};Xe.events.stop.bind(()=>{Ce.get().each(fi=>{lt.each(Vi=>{Ct(fi,"data-row").each(Xo=>{const oi=Wt(fi,"top");at(fi,"data-initial-top"),xi.trigger.adjustHeight(Vi,oi,parseInt(Xo,10))}),Ct(fi,"data-column").each(Xo=>{const oi=Wt(fi,"left");at(fi,"data-initial-left"),xi.trigger.adjustWidth(Vi,oi,parseInt(Xo,10))}),bk(he,Vi)})})});const kn=(fi,Vi)=>{xi.trigger.startAdjust(),Ce.assign(fi),st(fi,"data-initial-"+Vi,Dc(fi,Vi)),Av(fi,uE),Al(fi,"opacity","0.2"),Xe.go(he.parent())},Vn=A2(he.parent(),"mousedown",fi=>{M2(fi.target)&&kn(fi.target,"top"),ED(fi.target)&&kn(fi.target,"left")}),or=fi=>An(fi,he.view()),Mr=fi=>Bs(fi,"table",or).filter(sy),no=A2(he.view(),"mouseover",fi=>{Mr(fi.target).fold(()=>{Nr(fi.target)&&Dw(he)},Vi=>{Xe.isActive()&&(lt=A.some(Vi),bk(he,Vi))})}),ti=()=>{Vn.unbind(),no.unbind(),Xe.destroy(),Dw(he)},ki=fi=>{bk(he,fi)},xi=w1({adjustHeight:jp(["table","delta","row"]),adjustWidth:jp(["table","delta","column"]),startAdjust:jp([])});return{destroy:ti,refresh:ki,on:Xe.on,off:Xe.off,hideBars:C(Qp,he),showBars:C(Zh,he),events:xi.registry}},fE={create:(he,Ce,Xe)=>{const lt=Os,Ct=tp,Wt=xk(he),kn=w1({beforeResize:jp(["table","type"]),afterResize:jp(["table","type"]),startDrag:jp([])});return Wt.events.adjustHeight.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"row");const Mr=lt.delta(Vn.delta,or);Jx(or,Mr,Vn.row),kn.trigger.afterResize(or,"row")}),Wt.events.startAdjust.bind(Vn=>{kn.trigger.startDrag()}),Wt.events.adjustWidth.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"col");const Mr=Ct.delta(Vn.delta,or),no=Xe(or);Kx(or,Mr,Vn.column,Ce,no),kn.trigger.afterResize(or,"col")}),{on:Wt.on,off:Wt.off,refreshBars:Wt.refresh,hideBars:Wt.hideBars,showBars:Wt.showBars,destroy:Wt.destroy,events:kn.registry}}},O1={only:(he,Ce)=>{const Xe=Pn(he)?tr(he):he;return{parent:v(Xe),view:v(he),origin:v(Ni(0,0)),isResizable:Ce}},detached:(he,Ce,Xe)=>{const lt=()=>nl(Ce);return{parent:v(Ce),view:v(he),origin:lt,isResizable:Xe}},body:(he,Ce,Xe)=>({parent:v(Ce),view:v(he),origin:v(Ni(0,0)),isResizable:Xe})},Q3=()=>{const he=Nt.fromTag("div");return Wl(he,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),to(Eo(),he),he},hE=(he,Ce)=>he.inline?O1.body(Nt.fromDom(he.getBody()),Q3(),Ce):O1.only(Nt.fromDom(he.getDoc()),Ce),pE=(he,Ce)=>{he.inline&&pi(Ce.parent())},JC=he=>y(he)&&he.nodeName==="TABLE",Bw="bar-",_k=he=>Dt(he,"data-mce-resize")!=="false",e6=he=>{const Ce=Ca.fromTable(he);Ca.hasColumns(Ce)||U(vu(he),Xe=>{const lt=Ml(Xe,"width");Al(Xe,"width",lt),at(Xe,"width")})},RD=he=>Tc(he,"corner-"),E2=he=>bh(he,"corner-"),wk=he=>{const Ce=O2(),Xe=O2(),lt=O2();let Ct,Wt,kn,Vn;const or=oi=>du(he,oi),Mr=()=>lu(he)?o1():K1(),no=oi=>kg(oi).columns,ti=oi=>kg(oi).rows,ki=(oi,wa,Pa,ta)=>{const nu=E2(wa),Ll=iu(nu,"e"),$u=Tc(nu,"n");if(Wt===""&&hu(oi),Vn===""&&$4(oi),Pa!==Ct&&Wt!==""){Al(oi,"width",Wt);const vm=Mr(),gh=or(oi),Jb=lu(he)||Ll?no(oi)-1:0;Kx(oi,Pa-Ct,Jb,vm,gh)}else if(UO(Wt)){const vm=parseFloat(Wt.replace("%","")),gh=Pa*vm/Ct;Al(oi,"width",gh+"%")}if(W1(Wt)&&e6(oi),ta!==kn&&Vn!==""){Al(oi,"height",Vn);const vm=$u?0:ti(oi)-1;Jx(oi,ta-kn,vm)}},xi=()=>{Xe.on(oi=>{oi.destroy()}),lt.on(oi=>{pE(he,oi)})};return he.on("init",()=>{const oi=hE(he,_k);if(lt.set(oi),rm(he)&&Bp(he)){const wa=Mr(),Pa=fE.create(oi,wa,or);Pa.on(),Pa.events.startDrag.bind(ta=>{Ce.set(he.selection.getRng())}),Pa.events.beforeResize.bind(ta=>{const nu=ta.table.dom;gv(he,nu,J0(nu),F_(nu),Bw+ta.type)}),Pa.events.afterResize.bind(ta=>{const nu=ta.table,Ll=nu.dom;Oh(nu),Ce.on($u=>{he.selection.setRng($u),he.focus()}),Lu(he,Ll,J0(Ll),F_(Ll),Bw+ta.type),he.undoManager.add()}),Xe.set(Pa)}}),he.on("ObjectResizeStart",oi=>{const wa=oi.target;if(JC(wa)){const Pa=Nt.fromDom(wa);U(he.dom.select(".mce-clonedresizable"),ta=>{he.dom.addClass(ta,"mce-"+db(he)+"-columns")}),!Pb(Pa)&&l0(he)?ip(Pa):!sw(Pa)&&kf(he)&&hu(Pa),t3(Pa)&&Tc(oi.origin,Bw)&&hu(Pa),Ct=oi.width,Wt=yp(he)?"":$_(he,wa).getOr(""),kn=oi.height,Vn=Dx(he,wa).getOr("")}}),he.on("ObjectResized",oi=>{const wa=oi.target;if(JC(wa)){const Pa=Nt.fromDom(wa),ta=oi.origin;RD(ta)&&ki(Pa,ta,oi.width,oi.height),Oh(Pa),Cd(he,Pa.dom,$c)}}),he.on("SwitchMode",()=>{Xe.on(oi=>{he.mode.isReadOnly()?oi.hideBars():oi.showBars()})}),he.on("dragstart dragend",oi=>{Xe.on(wa=>{oi.type==="dragstart"?(wa.hideBars(),wa.off()):(wa.on(),wa.showBars())})}),he.on("remove",()=>{xi()}),{refresh:oi=>{Xe.on(wa=>wa.refreshBars(Nt.fromDom(oi)))},hide:()=>{Xe.on(oi=>oi.hideBars())},show:()=>{Xe.on(oi=>oi.showBars())}}},LD=he=>{H1(he);const Ce=wk(he),Xe=mk(he,Ce),lt=Iu(he,Ce,Xe);return v1(he,lt),c2(he,lt),Og(he,lt),{getSelectedCells:Xe.getSelectedCells,clearSelectedCells:Xe.clearSelectedCells}},t6=he=>({table:LD(he)});var mE=()=>{t.add("dom",t6)};mE()})();(function(){const t=Object.getPrototypeOf,e=(l,N,W)=>{var fe;return W(l,N.prototype)?!0:((fe=l.constructor)===null||fe===void 0?void 0:fe.name)===N.name},o=l=>{const N=typeof l;return l===null?"null":N==="object"&&Array.isArray(l)?"array":N==="object"&&e(l,String,(W,fe)=>fe.isPrototypeOf(W))?"string":N},f=l=>N=>o(N)===l,E=l=>N=>typeof N===l,d=l=>N=>l===N,s=(l,N)=>u(l)&&e(l,N,(W,fe)=>t(W)===fe),n=f("string"),u=f("object"),b=l=>s(l,Object),i=f("array"),S=d(null),w=E("boolean"),y=d(void 0),m=l=>l==null,a=l=>!m(l),c=E("function"),h=E("number"),p=(l,N)=>{if(i(l)){for(let W=0,fe=l.length;W{},_=l=>()=>l(),O=(l,N)=>(...W)=>l(N.apply(null,W)),C=(l,N)=>W=>l(N(W)),x=l=>()=>l,R=l=>l,M=(l,N)=>l===N;function T(l,...N){return(...W)=>{const fe=N.concat(W);return l.apply(null,fe)}}const P=l=>N=>!l(N),A=l=>()=>{throw new Error(l)},L=l=>l(),D=x(!1),k=x(!0);class I{constructor(N,W){this.tag=N,this.value=W}static some(N){return new I(!0,N)}static none(){return I.singletonNone}fold(N,W){return this.tag?W(this.value):N()}isSome(){return this.tag}isNone(){return!this.tag}map(N){return this.tag?I.some(N(this.value)):I.none()}bind(N){return this.tag?N(this.value):I.none()}exists(N){return this.tag&&N(this.value)}forall(N){return!this.tag||N(this.value)}filter(N){return!this.tag||N(this.value)?this:I.none()}getOr(N){return this.tag?this.value:N}or(N){return this.tag?this:N}getOrThunk(N){return this.tag?this.value:N()}orThunk(N){return this.tag?this:N()}getOrDie(N){if(this.tag)return this.value;throw new Error(N??"Called getOrDie on None")}static from(N){return a(N)?I.some(N):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(N){this.tag&&N(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(l,N)=>$.call(l,N),U=(l,N)=>{const W=j(l,N);return W===-1?I.none():I.some(W)},X=(l,N)=>j(l,N)>-1,te=(l,N)=>{for(let W=0,fe=l.length;W{const W=[];for(let fe=0;fe{const W=[];for(let fe=0;fe{const W=l.length,fe=new Array(W);for(let Se=0;Se{for(let W=0,fe=l.length;W{for(let W=l.length-1;W>=0;W--){const fe=l[W];N(fe,W)}},ee=(l,N)=>{const W=[],fe=[];for(let Se=0,Be=l.length;Se{const W=[];for(let fe=0,Se=l.length;fe(Y(l,(fe,Se)=>{W=N(W,fe,Se)}),W),se=(l,N,W)=>(q(l,(fe,Se)=>{W=N(W,fe,Se)}),W),ae=(l,N,W)=>{for(let fe=0,Se=l.length;feae(l,N,D),de=(l,N)=>{for(let W=0,fe=l.length;W{const N=[];for(let W=0,fe=l.length;Wye(re(l,N)),_e=(l,N)=>{for(let W=0,fe=l.length;W{const N=z.call(l,0);return N.reverse(),N},Te=(l,N)=>me(l,W=>!X(N,W)),Pe=(l,N)=>{const W={};for(let fe=0,Se=l.length;fe[l],ze=(l,N)=>{const W=z.call(l,0);return W.sort(N),W},De=(l,N)=>N>=0&&NDe(l,0),Ve=l=>De(l,l.length-1),$e=c(Array.from)?Array.from:l=>z.call(l),Oe=(l,N)=>{for(let W=0;W{const W=ke(l);for(let fe=0,Se=W.length;feZe(l,(W,fe)=>({k:fe,v:N(W,fe)})),Ze=(l,N)=>{const W={};return We(l,(fe,Se)=>{const Be=N(fe,Se);W[Be.k]=Be.v}),W},Ye=l=>(N,W)=>{l[W]=N},Je=(l,N,W,fe)=>{We(l,(Se,Be)=>{(N(Se,Be)?W:fe)(Se,Be)})},Me=(l,N)=>{const W={},fe={};return Je(l,N,Ye(W),Ye(fe)),{t:W,f:fe}},Fe=(l,N)=>{const W={};return Je(l,N,Ye(W),v),W},je=(l,N)=>{const W=[];return We(l,(fe,Se)=>{W.push(N(fe,Se))}),W},tt=(l,N)=>{const W=ke(l);for(let fe=0,Se=W.length;feje(l,R),Ge=(l,N)=>ht(l,N)?I.from(l[N]):I.none(),ht=(l,N)=>Re.call(l,N),pt=(l,N)=>ht(l,N)&&l[N]!==void 0&&l[N]!==null,St=(l,N,W=M)=>l.exists(fe=>W(fe,N)),Ft=(l,N,W=M)=>ln(l,N,W).getOr(l.isNone()&&N.isNone()),zt=l=>{const N=[],W=fe=>{N.push(fe)};for(let fe=0;fe{const N=[];for(let W=0;Wl.isSome()&&N.isSome()?I.some(W(l.getOrDie(),N.getOrDie())):I.none(),tn=(l,N,W,fe)=>l.isSome()&&N.isSome()&&W.isSome()?I.some(fe(l.getOrDie(),N.getOrDie(),W.getOrDie())):I.none(),Et=(l,N)=>l!=null?I.some(N(l)):I.none(),Ot=(l,N)=>l?I.some(N):I.none(),cn=(l,N)=>l+N,Cn=(l,N)=>l.substring(N),Pn=(l,N,W)=>N===""||l.length>=N.length&&l.substr(W,W+N.length)===N,Sn=(l,N)=>st(l,N)?Cn(l,N.length):l,vt=(l,N)=>bt(l,N)?l:cn(l,N),xt=(l,N,W=0,fe)=>{const Se=l.indexOf(N,W);return Se!==-1?y(fe)?!0:Se+N.length<=fe:!1},st=(l,N)=>Pn(l,N,0),bt=(l,N)=>Pn(l,N,l.length-N.length),Dt=(l=>N=>N.replace(l,""))(/^\s+|\s+$/g),it=l=>l.length>0,at=l=>!it(l),Bt=l=>l.style!==void 0&&c(l.style.getPropertyValue),_t=(l,N)=>{const fe=(N||document).createElement("div");if(fe.innerHTML=l,!fe.hasChildNodes()||fe.childNodes.length>1){const Se="HTML does not have a single root node";throw console.error(Se,l),new Error(Se)}return Jt(fe.childNodes[0])},qt=(l,N)=>{const fe=(N||document).createElement(l);return Jt(fe)},en=(l,N)=>{const fe=(N||document).createTextNode(l);return Jt(fe)},Jt=l=>{if(l==null)throw new Error("Node cannot be null or undefined");return{dom:l}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(l,N,W)=>I.from(l.dom.elementFromPoint(N,W)).map(Jt)},sn=typeof window<"u"?window:Function("return this;")(),rn=(l,N)=>{let W=N??sn;for(let fe=0;fe{const W=l.split(".");return rn(W,N)},wn=(l,N)=>_n(l,N),An=(l,N)=>{const W=wn(l,N);if(W==null)throw new Error(l+" not available on this browser");return W},Kn=Object.getPrototypeOf,fr=l=>An("HTMLElement",l),Un=l=>{const N=_n("ownerDocument.defaultView",l);return u(l)&&(fr(N).prototype.isPrototypeOf(l)||/^HTML\w*Element$/.test(Kn(l).constructor.name))},Zn=9,tr=11,Br=1,$r=3,vr=l=>l.dom.nodeName.toLowerCase(),qn=l=>l.dom.nodeType,gr=l=>N=>qn(N)===l,sr=l=>lr(l)&&Un(l.dom),lr=gr(Br),zr=gr($r),Vr=gr(Zn),eo=gr(tr),Jr=l=>N=>lr(N)&&vr(N)===l,Yr=(l,N)=>{const W=l.dom;if(W.nodeType!==Br)return!1;{const fe=W;if(fe.matches!==void 0)return fe.matches(N);if(fe.msMatchesSelector!==void 0)return fe.msMatchesSelector(N);if(fe.webkitMatchesSelector!==void 0)return fe.webkitMatchesSelector(N);if(fe.mozMatchesSelector!==void 0)return fe.mozMatchesSelector(N);throw new Error("Browser lacks native selectors")}},to=l=>l.nodeType!==Br&&l.nodeType!==Zn&&l.nodeType!==tr||l.childElementCount===0,co=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?[]:re(W.querySelectorAll(l),Nt.fromDom)},Fo=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?I.none():I.from(W.querySelector(l)).map(Nt.fromDom)},_o=(l,N)=>l.dom===N.dom,$o=(l,N)=>{const W=l.dom,fe=N.dom;return W===fe?!1:W.contains(fe)},Mo=l=>Nt.fromDom(l.dom.ownerDocument),pi=l=>Vr(l)?l:Mo(l),Hn=l=>Nt.fromDom(pi(l).dom.documentElement),ar=l=>Nt.fromDom(pi(l).dom.defaultView),Dr=l=>I.from(l.dom.parentNode).map(Nt.fromDom),Sr=l=>Dr(l),Zr=l=>I.from(l.dom.parentElement).map(Nt.fromDom),go=(l,N)=>{const W=c(N)?N:D;let fe=l.dom;const Se=[];for(;fe.parentNode!==null&&fe.parentNode!==void 0;){const Be=fe.parentNode,qe=Nt.fromDom(Be);if(Se.push(qe),W(qe)===!0)break;fe=Be}return Se},oo=l=>I.from(l.dom.offsetParent).map(Nt.fromDom),io=l=>I.from(l.dom.nextSibling).map(Nt.fromDom),Do=l=>re(l.dom.childNodes,Nt.fromDom),jn=(l,N)=>{const W=l.dom.childNodes;return I.from(W[N]).map(Nt.fromDom)},Rr=l=>jn(l,0),On=(l,N)=>({element:l,offset:N}),Yn=(l,N)=>{const W=Do(l);return W.length>0&&Neo(l)&&a(l.dom.host),kr=l=>Nt.fromDom(l.dom.getRootNode()),Er=l=>ir(l)?l:Nt.fromDom(pi(l).dom.body),Gt=l=>on(l).isSome(),on=l=>{const N=kr(l);return ir(N)?I.some(N):I.none()},an=l=>Nt.fromDom(l.dom.host),Tn=l=>{if(a(l.target)){const N=Nt.fromDom(l.target);if(lr(N)&&zn(N)&&l.composed&&l.composedPath){const W=l.composedPath();if(W)return Qe(W)}}return I.from(l.target)},zn=l=>a(l.dom.shadowRoot),Gn=l=>{const N=zr(l)?l.dom.parentNode:l.dom;if(N==null||N.ownerDocument===null)return!1;const W=N.ownerDocument;return on(Nt.fromDom(N)).fold(()=>W.body.contains(N),C(Gn,an))},Lr=()=>Ur(Nt.fromDom(document)),Ur=l=>{const N=l.dom.body;if(N==null)throw new Error("Body is not available yet");return Nt.fromDom(N)},qr=(l,N,W)=>{if(n(W)||w(W)||h(W))l.setAttribute(N,W+"");else throw console.error("Invalid call to Attribute.set. Key ",N,":: Value ",W,":: Element ",l),new Error("Attribute value was not simple")},Cr=(l,N,W)=>{qr(l.dom,N,W)},wo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{qr(W,Se,fe)})},Nr=(l,N)=>{const W=l.dom.getAttribute(N);return W===null?void 0:W},Eo=(l,N)=>I.from(Nr(l,N)),zo=(l,N)=>{const W=l.dom;return W&&W.hasAttribute?W.hasAttribute(N):!1},Qt=(l,N)=>{l.dom.removeAttribute(N)},Mn=l=>se(l.dom.attributes,(N,W)=>(N[W.name]=W.value,N),{}),Fn=(l,N,W)=>{if(!n(W))throw console.error("Invalid call to CSS.set. Property ",N,":: Value ",W,":: Element ",l),new Error("CSS value must be a string: "+W);Bt(l)&&l.style.setProperty(N,W)},dr=(l,N)=>{Bt(l)&&l.style.removeProperty(N)},xr=(l,N,W)=>{const fe=l.dom;Fn(fe,N,W)},Oo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{Fn(W,Se,fe)})},mi=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{fe.fold(()=>{dr(W,Se)},Be=>{Fn(W,Se,Be)})})},Di=(l,N)=>{const W=l.dom,Se=window.getComputedStyle(W).getPropertyValue(N);return Se===""&&!Gn(l)?To(W,N):Se},To=(l,N)=>Bt(l)?l.style.getPropertyValue(N):"",Ia=(l,N)=>{const W=l.dom,fe=To(W,N);return I.from(fe).filter(Se=>Se.length>0)},Ds=l=>{const N={},W=l.dom;if(Bt(W))for(let fe=0;fe{const fe=Nt.fromTag(l);return xr(fe,N,W),Ia(fe,N).isSome()},zi=(l,N)=>{const W=l.dom;dr(W,N),St(Eo(l,"style").map(Dt),"")&&Qt(l,"style")},yl=l=>l.dom.offsetWidth,Bs=(l,N)=>{const W=(ft,yt)=>{if(!h(yt)&&!yt.match(/^[0-9]+$/))throw new Error(l+".set accepts only positive integer values. Value was "+yt);const Lt=ft.dom;Bt(Lt)&&(Lt.style[l]=yt+"px")},fe=ft=>{const yt=N(ft);if(yt<=0||yt===null){const Lt=Di(ft,l);return parseFloat(Lt)||0}return yt},Se=fe,Be=(ft,yt)=>se(yt,(Lt,Ht)=>{const fn=Di(ft,Ht),Rn=fn===void 0?0:parseInt(fn,10);return isNaN(Rn)?Lt:Lt+Rn},0);return{set:W,get:fe,getOuter:Se,aggregate:Be,max:(ft,yt,Lt)=>{const Ht=Be(ft,Lt);return yt>Ht?yt-Ht:0}}},yf=Bs("height",l=>{const N=l.dom;return Gn(l)?N.getBoundingClientRect().height:N.offsetHeight}),il=l=>yf.get(l),nf=l=>yf.getOuter(l),nh=(l,N)=>{const W=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],fe=yf.max(l,N,W);xr(l,"max-height",fe+"px")},gp=(l,N)=>({left:l,top:N,translate:(fe,Se)=>gp(l+fe,N+Se)}),Qs=gp,bh=l=>{const N=l.getBoundingClientRect();return Qs(N.left,N.top)},Bl=(l,N)=>l!==void 0?l:N!==void 0?N:0,Tc=l=>{const N=l.dom.ownerDocument,W=N.body,fe=N.defaultView,Se=N.documentElement;if(W===l.dom)return Qs(W.offsetLeft,W.offsetTop);const Be=Bl(fe==null?void 0:fe.pageYOffset,Se.scrollTop),qe=Bl(fe==null?void 0:fe.pageXOffset,Se.scrollLeft),ft=Bl(Se.clientTop,W.clientTop),yt=Bl(Se.clientLeft,W.clientLeft);return iu(l).translate(qe-yt,Be-ft)},iu=l=>{const N=l.dom,fe=N.ownerDocument.body;return fe===N?Qs(fe.offsetLeft,fe.offsetTop):Gn(l)?bh(N):Qs(0,0)},au=Bs("width",l=>l.dom.offsetWidth),zf=(l,N)=>au.set(l,N),_s=l=>au.get(l),ma=l=>au.getOuter(l),mu=(l,N)=>{const W=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],fe=au.max(l,N,W);xr(l,"max-width",fe+"px")},Uc=l=>{let N=!1,W;return(...fe)=>(N||(N=!0,W=l.apply(null,fe)),W)},Kf=(l,N,W,fe)=>{const Se=l.isiOS()&&/ipad/i.test(W)===!0,Be=l.isiOS()&&!Se,qe=l.isiOS()||l.isAndroid(),ft=qe||fe("(pointer:coarse)"),yt=Se||!Be&&qe&&fe("(min-device-width:768px)"),Lt=Be||qe&&!yt,Ht=N.isSafari()&&l.isiOS()&&/safari/i.test(W)===!1,fn=!Lt&&!yt&&!Ht;return{isiPad:x(Se),isiPhone:x(Be),isTablet:x(yt),isPhone:x(Lt),isTouch:x(ft),isAndroid:l.isAndroid,isiOS:l.isiOS,isWebView:x(Ht),isDesktop:x(fn)}},Al=(l,N)=>{for(let W=0;W{const W=Al(l,N);if(!W)return{major:0,minor:0};const fe=Se=>Number(N.replace(W,"$"+Se));return Nf(fe(1),fe(2))},Ml=(l,N)=>{const W=String(N).toLowerCase();return l.length===0?Jf():Wl(l,W)},Jf=()=>Nf(0,0),Nf=(l,N)=>({major:l,minor:N}),Jl={nu:Nf,detect:Ml,unknown:Jf},Gh=(l,N)=>Oe(N.brands,W=>{const fe=W.brand.toLowerCase();return ce(l,Se=>{var Be;return fe===((Be=Se.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(Se=>({current:Se.name,version:Jl.nu(parseInt(W.version,10),0)}))}),ll=(l,N)=>{const W=String(N).toLowerCase();return ce(l,fe=>fe.search(W))},Tu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),gu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),ec=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dc=l=>N=>xt(N,l),tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:l=>xt(l,"edge/")&&xt(l,"chrome")&&xt(l,"safari")&&xt(l,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ec],search:l=>xt(l,"chrome")&&!xt(l,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:l=>xt(l,"msie")||xt(l,"trident")},{name:"Opera",versionRegexes:[ec,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dc("firefox")},{name:"Safari",versionRegexes:[ec,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:l=>(xt(l,"safari")||xt(l,"mobile/"))&&xt(l,"applewebkit")}],Lp=[{name:"Windows",search:Dc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:l=>xt(l,"iphone")||xt(l,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dc("linux"),versionRegexes:[]},{name:"Solaris",search:Dc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rh={browsers:x(tc),oses:x(Lp)},rf="Edge",of="Chromium",bf="IE",vu="Opera",$d="Firefox",bl="Safari",Zu=()=>Kh({current:void 0,version:Jl.unknown()}),Kh=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isEdge:fe(rf),isChromium:fe(of),isIE:fe(bf),isOpera:fe(vu),isFirefox:fe($d),isSafari:fe(bl)}},Cu={unknown:Zu,nu:Kh,edge:x(rf),chromium:x(of),ie:x(bf),opera:x(vu),firefox:x($d),safari:x(bl)},ed="Windows",Bu="iOS",vd="Android",cs="Linux",oh="macOS",Jh="Solaris",xh="FreeBSD",xf="ChromeOS",ep=()=>_r({current:void 0,version:Jl.unknown()}),_r=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isWindows:fe(ed),isiOS:fe(Bu),isAndroid:fe(vd),isMacOS:fe(oh),isLinux:fe(cs),isSolaris:fe(Jh),isFreeBSD:fe(xh),isChromeOS:fe(xf)}},Ff={unknown:ep,nu:_r,windows:x(ed),ios:x(Bu),android:x(vd),linux:x(cs),macos:x(oh),solaris:x(Jh),freebsd:x(xh),chromeos:x(xf)},bd={detect:(l,N,W)=>{const fe=rh.browsers(),Se=rh.oses(),Be=N.bind(yt=>Gh(fe,yt)).orThunk(()=>Tu(fe,l)).fold(Cu.unknown,Cu.nu),qe=gu(Se,l).fold(Ff.unknown,Ff.nu),ft=Kf(qe,Be,l,W);return{browser:Be,os:qe,deviceType:ft}}},_h=l=>window.matchMedia(l).matches;let zu=Uc(()=>bd.detect(window.navigator.userAgent,I.from(window.navigator.userAgentData),_h));const va=()=>zu(),El=(l,N,W,fe,Se,Be,qe)=>({target:l,x:N,y:W,stop:fe,prevent:Se,kill:Be,raw:qe}),_f=l=>{const N=Nt.fromDom(Tn(l).getOr(l.target)),W=()=>l.stopPropagation(),fe=()=>l.preventDefault(),Se=O(fe,W);return El(N,l.clientX,l.clientY,W,fe,Se,l)},$f=(l,N)=>W=>{l(W)&&N(_f(W))},ih=(l,N,W,fe,Se)=>{const Be=$f(W,fe);return l.dom.addEventListener(N,Be,Se),{unbind:T(Nh,l,N,Be,Se)}},yu=(l,N,W,fe)=>ih(l,N,W,fe,!1),jc=(l,N,W,fe)=>ih(l,N,W,fe,!0),Nh=(l,N,W,fe)=>{l.dom.removeEventListener(N,W,fe)},af=(l,N)=>{Dr(l).each(fe=>{fe.dom.insertBefore(N.dom,l.dom)})},td=(l,N)=>{io(l).fold(()=>{Dr(l).each(Se=>{Bc(Se,N)})},fe=>{af(fe,N)})},sf=(l,N)=>{Rr(l).fold(()=>{Bc(l,N)},fe=>{l.dom.insertBefore(N.dom,fe.dom)})},Bc=(l,N)=>{l.dom.appendChild(N.dom)},Vd=(l,N,W)=>{jn(l,W).fold(()=>{Bc(l,N)},fe=>{af(fe,N)})},xd=(l,N)=>{q(N,W=>{Bc(l,W)})},vc=l=>{l.dom.textContent="",q(Do(l),N=>{gs(N)})},gs=l=>{const N=l.dom;N.parentNode!==null&&N.parentNode.removeChild(N)},yc=l=>{const N=l!==void 0?l.dom:document,W=N.body.scrollLeft||N.documentElement.scrollLeft,fe=N.body.scrollTop||N.documentElement.scrollTop;return Qs(W,fe)},Cc=(l,N,W)=>{const Se=(W!==void 0?W.dom:document).defaultView;Se&&Se.scrollTo(l,N)},Nu=l=>{const N=l===void 0?window:l;return va().browser.isFirefox()?I.none():I.from(N.visualViewport)},Gs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),Ks=l=>{const N=l===void 0?window:l,W=N.document,fe=yc(Nt.fromDom(W));return Nu(N).fold(()=>{const Se=N.document.documentElement,Be=Se.clientWidth,qe=Se.clientHeight;return Gs(fe.left,fe.top,Be,qe)},Se=>Gs(Math.max(Se.pageLeft,fe.left),Math.max(Se.pageTop,fe.top),Se.width,Se.height))},Ac=()=>Nt.fromDom(document),_d=(l,N)=>l.view(N).fold(x([]),fe=>{const Se=l.owner(fe),Be=_d(l,Se);return[fe].concat(Be)}),Fh=(l,N)=>{const W=N.owner(l),fe=_d(N,W);return I.some(fe)};var ah=Object.freeze({__proto__:null,view:l=>{var N;return(l.dom===document?I.none():I.from((N=l.dom.defaultView)===null||N===void 0?void 0:N.frameElement)).map(Nt.fromDom)},owner:l=>Mo(l)});const Au=l=>{const N=Ac(),W=yc(N);return Fh(l,ah).fold(T(Tc,l),Se=>{const Be=iu(l),qe=pe(Se,(ft,yt)=>{const Lt=iu(yt);return{left:ft.left+Lt.left,top:ft.top+Lt.top}},{left:0,top:0});return Qs(qe.left+Be.left+W.left,qe.top+Be.top+W.top)})},lf=(l,N,W)=>({point:l,width:N,height:W}),wf=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe}),vs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),cl=l=>{const N=Tc(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},bc=l=>{const N=Au(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},nc=(l,N)=>{const W=Math.max(l.x,N.x),fe=Math.max(l.y,N.y),Se=Math.min(l.right,N.right),Be=Math.min(l.bottom,N.bottom),qe=Se-W,ft=Be-fe;return vs(W,fe,qe,ft)},Qc=(l,N)=>se(N,(W,fe)=>nc(W,fe),l),ts=()=>Ks(window),wi=l=>{let N=l;return{get:()=>N,set:Se=>{N=Se}}},bu=l=>{const N=wi(I.none()),W=()=>N.get().each(l);return{clear:()=>{W(),N.set(I.none())},isSet:()=>N.get().isSome(),get:()=>N.get(),set:ft=>{W(),N.set(I.some(ft))}}},wd=()=>bu(l=>l.destroy()),Ol=()=>bu(l=>l.unbind()),ds=()=>{const l=bu(v);return{...l,on:W=>l.get().each(W)}};var zc=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Ud=l=>{const N=Be=>Be(l),W=x(l),fe=()=>Se,Se={tag:!0,inner:l,fold:(Be,qe)=>qe(l),isValue:k,isError:D,map:Be=>aa.value(Be(l)),mapError:fe,bind:N,exists:N,forall:N,getOr:W,or:fe,getOrThunk:W,orThunk:fe,getOrDie:W,each:Be=>{Be(l)},toOptional:()=>I.some(l)};return Se},cf=l=>{const N=()=>W,W={tag:!1,inner:l,fold:(fe,Se)=>fe(l),isValue:D,isError:k,map:N,mapError:fe=>aa.error(fe(l)),bind:N,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:A(String(l)),each:v,toOptional:I.none};return W},aa={value:Ud,error:cf,fromOption:(l,N)=>l.fold(()=>cf(N),Ud)};var rs;(function(l){l[l.Error=0]="Error",l[l.Value=1]="Value"})(rs||(rs={}));const Mu=(l,N,W)=>l.stype===rs.Error?N(l.serror):W(l.svalue),Ri=l=>{const N=[],W=[];return q(l,fe=>{Mu(fe,Se=>W.push(Se),Se=>N.push(Se))}),{values:N,errors:W}},Gc=(l,N)=>l.stype===rs.Error?{stype:rs.Error,serror:N(l.serror)}:l,qu=(l,N)=>l.stype===rs.Value?{stype:rs.Value,svalue:N(l.svalue)}:l,zl=(l,N)=>l.stype===rs.Value?N(l.svalue):l,xc=(l,N)=>l.stype===rs.Error?N(l.serror):l,Kc=l=>({stype:rs.Value,svalue:l}),jd=l=>({stype:rs.Error,serror:l}),al={fromResult:l=>l.fold(jd,Kc),toResult:l=>Mu(l,aa.error,aa.value),svalue:Kc,partition:Ri,serror:jd,bind:zl,bindError:xc,map:qu,mapError:Gc,fold:Mu},Yl=(l,N,W,fe)=>({tag:"field",key:l,newKey:N,presence:W,prop:fe}),uf=(l,N)=>({tag:"custom",newKey:l,instantiator:N}),hs=(l,N,W)=>{switch(l.tag){case"field":return N(l.key,l.newKey,l.presence,l.prop);case"custom":return W(l.newKey,l.instantiator)}},Mc=(l,N)=>N,Eu=(l,N)=>b(l)&&b(N)?ws(l,N):N,xu=l=>(...N)=>{if(N.length===0)throw new Error("Can't merge zero objects");const W={};for(let fe=0;fe({tag:"required",process:{}}),Ca=l=>({tag:"defaultedThunk",process:l}),Ls=l=>Ca(x(l)),Ec=()=>({tag:"option",process:{}}),_u=l=>({tag:"mergeWithThunk",process:l}),wt=l=>_u(x(l)),Kt=(l,N)=>l.length>0?al.svalue(ws(N,Fu.apply(void 0,l))):al.svalue(N),En=l=>O(al.serror,ye)(l),uo={consolidateObj:(l,N)=>{const W=al.partition(l);return W.errors.length>0?En(W.errors):Kt(W.values,N)},consolidateArr:l=>{const N=al.partition(l);return N.errors.length>0?En(N.errors):al.svalue(N.values)}},Bi=l=>u(l)&&ke(l).length>100?" removed due to size":JSON.stringify(l,null,2),ya=l=>{const N=l.length>10?l.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):l;return re(N,W=>"Failed path: ("+W.path.join(" > ")+`) +Required: `+Ce.join(", "));return ti[kn].apply(null,or)},log:ti=>{console.log(ti,{constructors:Ce,constructor:kn,params:or})}}}}),Xe}},c1={...sm.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},fv=(he,Ce)=>he.length===0?c1.none():he.length===1?c1.only(0):Ce===0?c1.left(0,1):Ce===he.length-1?c1.right(Ce-1,Ce):Ce>0&&Ce{const Wt=he.slice(0),kn=fv(he,Ce),Vn=v(j(Wt,v(0))),or=ki=>lt.singleColumnWidth(Wt[ki],Xe),Mr=(ki,xi)=>Ct.calcLeftEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative),no=(ki,xi,fi)=>Ct.calcMiddleDeltas(Wt,ki,xi,fi,Xe,lt.minCellWidth(),lt.isRelative),ti=(ki,xi)=>Ct.calcRightEdgeDeltas(Wt,ki,xi,Xe,lt.minCellWidth(),lt.isRelative);return kn.fold(Vn,or,Mr,no,ti)},Hh=(he,Ce,Xe)=>{let lt=0;for(let Ct=he;Ct{const Xe=Ca.justCells(he);return j(Xe,lt=>{const Ct=Hh(lt.column,lt.column+lt.colspan,Ce);return{element:lt.element,width:Ct,colspan:lt.colspan}})},Gx=(he,Ce)=>{const Xe=Ca.justColumns(he);return j(Xe,(lt,Ct)=>({element:lt.element,width:Ce[Ct],colspan:lt.colspan}))},df=(he,Ce)=>j(he.all,(Xe,lt)=>({element:Xe.element,height:Ce[lt]})),Tb=he=>K(he,(Ce,Xe)=>Ce+Xe,0),uu=(he,Ce)=>Ca.hasColumns(he)?Gx(he,Ce):hv(he,Ce),Cb=(he,Ce,Xe)=>{const lt=uu(he,Ce);U(lt,Ct=>{Xe.setElementWidth(Ct.element,Ct.width)})},Kx=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.fromTable(he),kn=Ct.getCellDelta(Ce),Vn=Ct.getWidths(Wt,Ct),or=Xe===Wt.grid.columns-1,Mr=lt.clampTableDelta(Vn,Xe,kn,Ct.minCellWidth(),or),no=dv(Vn,Xe,Mr,Ct,lt),ti=j(no,(ki,xi)=>ki+Vn[xi]);Cb(Wt,ti,Ct),lt.resizeTable(Ct.adjustTableWidth,Mr,or)},Jx=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=Ar(lt,he),Wt=j(Ct,(or,Mr)=>Xe===Mr?Math.max(Ce+or,Lp()):or),kn=df(lt,Wt);U(kn,or=>{Ne(or.element,or.height)}),U(Ca.justCells(lt),or=>{et(or.element)});const Vn=Tb(Wt);Ne(he,Vn)},iw=(he,Ce,Xe,lt,Ct)=>{const Wt=Ca.generate(Ce),kn=lt.getWidths(Wt,lt),Vn=lt.pixelWidth(),{newSizes:or,delta:Mr}=Ct.calcRedestributedWidths(kn,Vn,Xe.pixelDelta,lt.isRelative);Cb(Wt,or,lt),lt.adjustTableWidth(Mr)},e3=(he,Ce,Xe,lt)=>{const Ct=Ca.generate(Ce),Wt=lt.getWidths(Ct,lt);Cb(Ct,Wt,lt)},lm=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.column===lt.column)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.column-lt.column),u1=vt("col"),cm=vt("colgroup"),pv=he=>Yt(he)==="tr"||cm(he),hf=he=>{const Ce=ll(he,"colspan",1),Xe=ll(he,"rowspan",1);return{element:he,colspan:Ce,rowspan:Xe}},f1=(he,Ce=hf)=>{const Xe=Vn=>u1(Vn.element)?he.col(Vn):he.cell(Vn),lt=Vn=>cm(Vn.element)?he.colgroup(Vn):he.row(Vn),Ct=Vn=>{if(pv(Vn))return lt({element:Vn});{const or=Vn,Mr=Xe(Ce(or));return Wt=A.some({item:or,replacement:Mr}),Mr}};let Wt=A.none();return{getOrInit:(Vn,or)=>Wt.fold(()=>Ct(Vn),Mr=>or(Vn,Mr.item)?Mr.replacement:Ct(Vn))}},jm=he=>Ce=>{const Xe=[],lt=(kn,Vn)=>Y(Xe,or=>Vn(or.item,kn)),Ct=kn=>{const Vn=he==="td"?{scope:null}:{},or=Ce.replace(kn,he,Vn);return Xe.push({item:kn,sub:or}),or};return{replaceOrInit:(kn,Vn)=>{if(pv(kn)||u1(kn))return kn;{const or=kn;return lt(or,Vn).fold(()=>Ct(or),Mr=>Vn(kn,Mr.item)?Mr.sub:Ct(or))}}}},mv=he=>it(he,"scope").map(Ce=>Ce.substr(0,3)),Zd={modification:f1,transform:jm,merging:he=>({unmerge:lt=>{const Ct=mv(lt);return Ct.each(Wt=>st(lt,"scope",Wt)),()=>{const Wt=he.cell({element:lt,colspan:1,rowspan:1});return Jl(Wt,"width"),Jl(lt,"width"),Ct.each(kn=>st(Wt,"scope",kn)),Wt}},merge:lt=>{const Ct=()=>{const Wt=il(j(lt,mv));if(Wt.length===0)return A.none();{const kn=Wt[0],Vn=["row","col"];return $(Wt,Mr=>Mr!==kn&&z(Vn,Mr))?A.none():A.from(kn)}};return Jl(lt[0],"width"),Ct().fold(()=>at(lt[0],"scope"),Wt=>st(lt[0],"scope",Wt+"group")),v(lt[0])}})},yy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],m0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(["ol","ul"],Xe)},g0=(he,Ce)=>{const Xe=he.property().name(Ce);return z(yy,Xe)},v0=(he,Ce)=>z(["br","img","hr","input"],he.property().name(Ce)),y0=bg(),Tf=he=>g0(y0,he),vo=he=>m0(y0,he),Ab=he=>v0(y0,he),F=he=>{const Ce=vt("br"),Xe=or=>se(or,Mr=>Ce(Mr)||Cn(Mr)&&Cs(Mr).trim().length===0),lt=or=>Yt(or)==="li"||Di(or,vo).isSome(),Ct=or=>sr(or).map(Mr=>Tf(Mr)?!0:Ab(Mr)?Yt(Mr)!=="img":!1).getOr(!1),Wt=or=>gg(or).bind(Mr=>{const no=Ct(Mr);return $r(Mr).map(ti=>no===!0||lt(ti)||Ce(Mr)||Tf(ti)&&!An(or,ti)?[]:[Nt.fromTag("br")])}).getOr([]),Vn=(()=>{const or=pe(he,Mr=>{const no=lr(Mr);return Xe(no)?[]:no.concat(Wt(Mr))});return or.length===0?[Nt.fromTag("br")]:or})();Mo(he[0]),$o(he[0],Vn)},G=he=>ly(he,!0),ue=he=>{vu(he).length===0&&pi(he)},Ae=(he,Ce)=>({grid:he,cursor:Ce}),He=he=>we(he,Ce=>we(Ce.cells,Xe=>{const lt=Xe.element;return nh(G(lt),lt)})),nt=(he,Ce,Xe)=>{var lt,Ct;const Wt=zl(he).rows;return A.from((Ct=(lt=Wt[Ce])===null||lt===void 0?void 0:lt.cells[Xe])===null||Ct===void 0?void 0:Ct.element).filter(G).orThunk(()=>He(Wt))},ct=(he,Ce,Xe)=>{const lt=nt(he,Ce,Xe);return Ae(he,lt)},Pt=he=>re(he,(Xe,lt)=>$(Xe,Wt=>Wt.row===lt.row)?Xe:Xe.concat([lt]),[]).sort((Xe,lt)=>Xe.row-lt.row),jt=(he,Ce,Xe,lt)=>{const Ct=Ce[0].row,Wt=Pt(Ce),kn=K(Wt,(Vn,or)=>({grid:Sl(Vn.grid,Ct,or.row+Vn.delta,Xe,lt.getOrInit),delta:Vn.delta+1}),{grid:he,delta:0}).grid;return ct(kn,Ct,Ce[0].column)},hn=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Ct[Ct.length-1],kn=Wt.row+Wt.rowspan,Vn=K(Ct,(or,Mr)=>Sl(or,kn,Mr.row,Xe,lt.getOrInit),he);return ct(Vn,kn,Ce[0].column)},mn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=lm(Ct),kn=Wt[0].column,Vn=K(Wt,(or,Mr)=>({grid:Yx(or.grid,kn,Mr.column+or.delta,Xe,lt.getOrInit),delta:or.delta+1}),{grid:he,delta:0}).grid;return ct(Vn,Ct[0].row,kn)},Dn=(he,Ce,Xe,lt)=>{const Ct=Ce.details,Wt=Ct[Ct.length-1],kn=Wt.column+Wt.colspan,Vn=lm(Ct),or=K(Vn,(Mr,no)=>Yx(Mr,kn,no.column,Xe,lt.getOrInit),he);return ct(or,Ct[0].row,kn)},Xn=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!0,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},$n=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},mr=(he,Ce,Xe,lt)=>{const Ct=lm(Ce),Wt=j(Ct,Vn=>Vn.column),kn=KO(he,Wt,!1,Xe,lt.replaceOrInit);return ct(kn,Ce[0].row,Ce[0].column)},Or=(he,Ce,Xe,lt)=>{const Ct=JO(he,Ce,Xe,lt.replaceOrInit);return ct(Ct,Ce[0].row,Ce[0].column)},Kr=(he,Ce)=>(Xe,lt,Ct,Wt,kn)=>{const Vn=Pt(lt),or=j(Vn,no=>no.row),Mr=rw(Xe,or,he,Ce,Ct,Wt.replaceOrInit,kn);return ct(Mr,lt[0].row,lt[0].column)},Hr=Kr("thead",!0),fo=Kr("tbody",!1),mo=Kr("tfoot",!1),Io=(he,Ce,Xe,lt)=>{const Ct=lm(Ce.details),Wt=N4(he,j(Ct,Vn=>Vn.column)),kn=Wt.length>0?Wt[0].cells.length-1:0;return ct(Wt,Ct[0].row,Math.min(Ct[0].column,kn))},Qo=(he,Ce,Xe,lt)=>{const Ct=Pt(Ce),Wt=Xx(he,Ct[0].row,Ct[Ct.length-1].row),kn=Math.max(zl(Wt).rows.length-1,0);return ct(Wt,Math.min(Ce[0].row,kn),Ce[0].column)},Po=(he,Ce,Xe,lt)=>{const Ct=Ce.cells;F(Ct);const Wt=xb(he,Ce.bounds,Xe,lt.merge(Ct));return Ae(Wt,A.from(Ct[0]))},Ii=(he,Ce,Xe,lt)=>{const Wt=K(Ce,(kn,Vn)=>ew(kn,Vn,Xe,lt.unmerge(Vn)),he);return Ae(Wt,A.from(Ce[0]))},bi=(he,Ce,Xe,lt)=>{const Wt=((or,Mr)=>{const no=Ca.fromTable(or);return iv(no,Mr,!0)})(Ce.clipboard,Ce.generators),kn=Rr(Ce.row,Ce.column);return Ss(kn,he,Wt,Ce.generators,Xe).fold(()=>Ae(he,A.some(Ce.element)),or=>ct(or,Ce.row,Ce.column))},Zi=(he,Ce,Xe)=>{const lt=vd(he,Xe.section),Ct=Ca.generate(lt);return iv(Ct,Ce,!0)},ra=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].column,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},ka=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].column+Ce.cells[Ce.cells.length-1].colspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=kd(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Wt)},ea=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[0].row,kn=Ct[Wt],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ah(Wt,he,Vn,Ce.generators,Xe);return ct(or,Ce.cells[0].row,Ce.cells[0].column)},as=(he,Ce,Xe,lt)=>{const Ct=zl(he).rows,Wt=Ce.cells[Ce.cells.length-1].row+Ce.cells[Ce.cells.length-1].rowspan,kn=Ct[Ce.cells[0].row],Vn=Zi(Ce.clipboard,Ce.generators,kn),or=Ah(Wt,he,Vn,Ce.generators,Xe);return ct(or,Wt,Ce.cells[0].column)},Da=(he,Ce)=>{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=me(j(Xe.all,Mr=>Z(Mr.cells,no=>no.column>=kn&&no.column{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(tv).getOr("")},fl=(he,Ce)=>{const Xe=Ca.fromTable(he);return Ch(Xe,Ce).bind(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].row,Vn=Wt.row+Wt.rowspan,or=Xe.all.slice(kn,Vn);return nv(or)}).getOr("")},As=(he,Ce,Xe,lt)=>e3(he,Ce,Xe,lt.sizing),hc=(he,Ce,Xe,lt)=>iw(he,Ce,Xe,lt.sizing,lt.resize),os=(he,Ce)=>$(Ce,Xe=>Xe.column===0&&Xe.isLocked),Vs=(he,Ce)=>$(Ce,Xe=>Xe.column+Xe.colspan>=he.grid.columns&&Xe.isLocked),Fl=(he,Ce)=>{const Xe=Ls(he),lt=lm(Ce);return re(lt,(Ct,Wt)=>{const Vn=Xe[Wt.column].map(ds).getOr(0);return Ct+Vn},0)},kl=he=>(Ce,Xe)=>Ch(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt)).map(lt=>({details:lt,pixelDelta:Fl(Ce,lt)})),Fc=(he,Ce)=>Np(he,Ce).map(Xe=>({details:Xe,pixelDelta:-Fl(he,Xe)})),qa=he=>(Ce,Xe)=>qx(Ce,Xe).filter(lt=>!(he?os:Vs)(Ce,lt.cells)),Sc=Zd.transform("th"),pc=Zd.transform("td"),sd=ad(jt,Ch,c,c,Zd.modification),ld=ad(hn,Ch,c,c,Zd.modification),cd=ad(mn,kl(!0),hc,c,Zd.modification),Cf=ad(Dn,kl(!1),hc,c,Zd.modification),xl=ad(Io,Fc,hc,ue,Zd.modification),eu=ad(Qo,Ch,c,ue,Zd.modification),Td=ad(Xn,Np,c,c,Sc),Af=ad(mr,Np,c,c,pc),jf=ad(Hr,Np,c,c,Sc),Us=ad(fo,Np,c,c,pc),_l=ad(mo,Np,c,c,pc),fu=ad($n,Np,c,c,Sc),ni=ad(Or,Np,c,c,pc),Wc=ad(Po,J_,As,c,Zd.merging),Yc=ad(Ii,gy,As,c,Zd.merging),$l=ad(bi,mC,As,c,Zd.modification),Ru=ad(ra,qa(!0),c,c,Zd.modification),Eh=ad(ka,qa(!1),c,c,Zd.modification),mc=ad(ea,qx,c,c,Zd.modification),dh=ad(as,qx,c,c,Zd.modification),hh=Da,Qm=ba,Qf=fl,tu=(he,Ce)=>he.dispatch("NewRow",{node:Ce}),qd=(he,Ce)=>he.dispatch("NewCell",{node:Ce}),Cd=(he,Ce,Xe)=>{he.dispatch("TableModified",{...Xe,table:Ce})},d1=(he,Ce,Xe,lt,Ct)=>{he.dispatch("TableSelectionChange",{cells:Ce,start:Xe,finish:lt,otherCells:Ct})},t2=he=>{he.dispatch("TableSelectionClear")},gv=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResizeStart",{target:Ce,width:Xe,height:lt,origin:Ct})},Lu=(he,Ce,Xe,lt,Ct)=>{he.dispatch("ObjectResized",{target:Ce,width:Xe,height:lt,origin:Ct})},$c={structure:!1,style:!0},dl={structure:!0,style:!1},Mf={structure:!0,style:!0},du=(he,Ce)=>kf(he)?mt.percentageSize(Ce):l0(he)?mt.pixelSize(Ce):mt.getTableSize(Ce),Iu=(he,Ce,Xe)=>{const lt=Wa=>Yt(Im(Wa))==="table",Ct=Wa=>!lt(he)||kg(Wa).rows>1,Wt=Wa=>!lt(he)||kg(Wa).columns>1,kn=VO(he),Vn=sy(he)?c:dy,or=Wa=>{switch(z_(he)){case"section":return i1.section();case"sectionCells":return i1.sectionCells();case"cells":return i1.cells();default:return i1.getTableSectionType(Wa,"section")}},Mr=(Wa,bm)=>bm.cursor.fold(()=>{const Lg=vu(Wa);return ve(Lg).filter(Nr).map(S1=>{Xe.clearSelectedCells(Wa.dom);const Zf=he.dom.createRng();return Zf.selectNode(S1.dom),he.selection.setRng(Zf),st(S1,"data-mce-selected","1"),Zf})},Lg=>{const S1=fh(Lg),Zf=he.dom.createRng();return Zf.setStart(S1.element.dom,S1.offset),Zf.setEnd(S1.element.dom,S1.offset),he.selection.setRng(Zf),Xe.clearSelectedCells(Wa.dom),A.some(Zf)}),no=(Wa,bm,Lg,S1)=>(Zf,el,Ok=!1)=>{Sh(Zf);const Sk=Nt.fromDom(he.getDoc()),H3=i0(Lg,Sk,kn),r6={sizing:du(he,Zf),resize:sy(he)?K1():o1(),section:or(Zf)};return bm(Zf)?Wa(Zf,el,H3,r6).bind(Mv=>{Ce.refresh(Zf.dom),U(Mv.newRows,R2=>{tu(he,R2.dom)}),U(Mv.newCells,R2=>{qd(he,R2.dom)});const tx=Mr(Zf,Mv);return Nr(Zf)&&(Sh(Zf),Ok||Cd(he,Zf.dom,S1)),tx.map(R2=>({rng:R2,effect:S1}))}):A.none()},ti=no(eu,Ct,c,dl),ki=no(xl,Wt,c,dl),xi=no(sd,P,c,dl),fi=no(ld,P,c,dl),Vi=no(cd,P,Vn,dl),Xo=no(Cf,P,Vn,dl),oi=no(Wc,P,c,dl),wa=no(Yc,P,c,dl),Pa=no(Ru,P,c,dl),ta=no(Eh,P,c,dl),nu=no(mc,P,c,dl),Ll=no(dh,P,c,dl),$u=no($l,P,c,Mf),vm=no(fu,P,c,dl),gh=no(ni,P,c,dl),Jb=no(Td,P,c,dl),ex=no(Af,P,c,dl),Tl=no(jf,P,c,dl),Ld=no(Us,P,c,dl),sp=no(_l,P,c,dl);return{deleteRow:ti,deleteColumn:ki,insertRowsBefore:xi,insertRowsAfter:fi,insertColumnsBefore:Vi,insertColumnsAfter:Xo,mergeCells:oi,unmergeCells:wa,pasteColsBefore:Pa,pasteColsAfter:ta,pasteRowsBefore:nu,pasteRowsAfter:Ll,pasteCells:$u,makeCellsHeader:vm,unmakeCellsHeader:gh,makeColumnsHeader:Jb,unmakeColumnsHeader:ex,makeRowsHeader:Tl,makeRowsBody:Ld,makeRowsFooter:sp,getTableRowType:Qf,getTableCellType:Qm,getTableColType:hh}},vv=(he,Ce,Xe)=>{const lt=ll(he,Ce,1);Xe===1||lt<=1?at(he,Ce):st(he,Ce,Math.min(Xe,lt))},h1=(he,Ce)=>Xe=>{const lt=Xe.column+Xe.colspan-1,Ct=Xe.column;return lt>=he&&Ct{if(Ca.hasColumns(he)){const lt=Z(Ca.justColumns(he),h1(Ce,Xe)),Ct=j(lt,kn=>{const Vn=Sr(kn.element);return vv(Vn,"span",Xe-Ce),Vn}),Wt=Nt.fromTag("colgroup");return $o(Wt,Ct),[Wt]}else return[]},by=(he,Ce,Xe)=>j(he.all,lt=>{const Ct=Z(lt.cells,h1(Ce,Xe)),Wt=j(Ct,Vn=>{const or=Sr(Vn.element);return vv(or,"colspan",Xe-Ce),or}),kn=Nt.fromTag("tr");return $o(kn,Wt),kn}),p1=(he,Ce)=>{const Xe=Ca.fromTable(he);return Np(Xe,Ce).map(Ct=>{const Wt=Ct[Ct.length-1],kn=Ct[0].column,Vn=Wt.column+Wt.colspan,or=n2(Xe,kn,Vn),Mr=by(Xe,kn,Vn);return[...or,...Mr]})},b0=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Ch(lt,Ce).bind(Wt=>{const kn=iv(lt,Xe,!1),or=zl(kn).rows.slice(Wt[0].row,Wt[Wt.length-1].row+Wt[Wt.length-1].rowspan),Mr=pe(or,ti=>{const ki=Z(ti.cells,xi=>!xi.isLocked);return ki.length>0?[{...ti,cells:ki}]:[]}),no=bb(Mr);return nh(no.length>0,no)}).map(Wt=>ov(Wt))},Hm=sm.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),yv=(he,Ce,Xe)=>{const lt=Xe.substring(0,Xe.length-he.length),Ct=parseFloat(lt);return lt===Ct.toString()?Ce(Ct):Hm.invalid(Xe)},x0={...Hm,from:he=>iu(he,"%")?yv("%",Hm.percent,he):iu(he,"px")?yv("px",Hm.pixels,he):Hm.invalid(he)},r2=(he,Ce)=>j(he,Xe=>x0.from(Xe).fold(()=>Xe,Ct=>Ct/Ce*100+"%",Ct=>Ct+"%")),Mb=(he,Ce,Xe)=>{const lt=Xe/Ce;return j(he,Ct=>x0.from(Ct).fold(()=>Ct,kn=>kn*lt+"px",kn=>kn/100*Xe+"px"))},Ad=(he,Ce)=>{const Xe=he.fold(()=>v(""),lt=>{const Ct=lt/Ce;return v(Ct+"px")},()=>{const lt=100/Ce;return v(lt+"%")});return Q(Ce,Xe)},_y=(he,Ce,Xe)=>he.fold(()=>Ce,lt=>Mb(Ce,Xe,lt),lt=>r2(Ce,Xe)),wy=(he,Ce,Xe)=>{const lt=x0.from(Xe),Ct=se(he,Wt=>Wt==="0px")?Ad(lt,he.length):_y(lt,he,Ce);return um(Ct)},Md=(he,Ce)=>he.length===0?Ce:K(he,(Xe,lt)=>x0.from(lt).fold(v(0),_,_)+Xe,0),m1=(he,Ce)=>{const Xe=Math.floor(he);return{value:Xe+Ce,remainder:he-Xe}},_0=(he,Ce)=>x0.from(he).fold(v(he),Xe=>Xe+Ce+"px",Xe=>Xe+Ce+"%"),um=he=>{if(he.length===0)return he;const Ce=K(he,(lt,Ct)=>{const Wt=x0.from(Ct).fold(()=>({value:Ct,remainder:0}),kn=>m1(kn,"px"),kn=>({value:kn+"%",remainder:0}));return{output:[Wt.value].concat(lt.output),remainder:lt.remainder+Wt.remainder}},{output:[],remainder:0}),Xe=Ce.output;return Xe.slice(0,Xe.length-1).concat([_0(Xe[Xe.length-1],Math.round(Ce.remainder))])},Wd=x0.from,w0=(he,Ce,Xe)=>{U(Ce,lt=>{const Ct=he.slice(lt.column,lt.colspan+lt.column),Wt=Md(Ct,tc());Al(lt.element,"width",Wt+Xe)})},Eb=(he,Ce,Xe)=>{U(Ce,(lt,Ct)=>{const Wt=Md([he[Ct]],tc());Al(lt.element,"width",Wt+Xe)})},Oy=(he,Ce,Xe)=>{U(Xe,lt=>{Jl(lt.element,"height")}),U(Ce,(lt,Ct)=>{Al(lt.element,"height",he[Ct])})},aw=he=>Wd(he).fold(v("px"),v("px"),v("%")),Zm=(he,Ce,Xe)=>{const lt=Ca.fromTable(he),Ct=lt.all,Wt=Ca.justCells(lt),kn=Ca.justColumns(lt);Ce.each(Vn=>{const or=aw(Vn),Mr=Ol(he),no=ai(lt,he),ti=wy(no,Mr,Vn);Ca.hasColumns(lt)?Eb(ti,kn,or):w0(ti,Wt,or),Al(he,"width",Vn)}),Xe.each(Vn=>{const or=wr(he),Mr=ns(lt,he),no=wy(Mr,or,Vn);Oy(no,Ct,Wt),Al(he,"height",Vn)})},sw=Gr,Pb=ro,t3=po,O0=he=>{at(he,"width"),at(he,"height")},hu=he=>{const Ce=Pr(he);Zm(he,A.some(Ce),A.none()),O0(he)},ip=he=>{const Ce=In(he);Zm(he,A.some(Ce),A.none()),O0(he)},$4=he=>{const Ce=Ir(he);Zm(he,A.none(),A.some(Ce)),O0(he)},qm=he=>{Jl(he,"width");const Ce=$d(he),Xe=Ce.length>0?Ce:vu(he);U(Xe,lt=>{Jl(lt,"width"),O0(lt)}),O0(he)},lw={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},cw=()=>Nt.fromTag("th"),o2=()=>Nt.fromTag("td"),$p=()=>Nt.fromTag("col"),Rb=(he,Ce,Xe,lt)=>{const Ct=Nt.fromTag("tr");for(let Wt=0;Wt{const Ce=Nt.fromTag("colgroup");return Q(he,()=>to(Ce,$p())),Ce},Sy=(he,Ce,Xe,lt)=>Q(he,Ct=>Rb(Ce,Xe,lt,Ct)),bv=(he,Ce,Xe,lt,Ct,Wt=lw)=>{const kn=Nt.fromTag("table"),Vn=Ct!=="cells";Wl(kn,Wt.styles),bt(kn,Wt.attributes),Wt.colGroups&&to(kn,Lb(Ce));const or=Math.min(he,Xe);if(Vn&&Xe>0){const xi=Nt.fromTag("thead");to(kn,xi);const Vi=Sy(Xe,Ce,Ct==="sectionCells"?or:0,lt);$o(xi,Vi)}const Mr=Nt.fromTag("tbody");to(kn,Mr);const no=Vn?he-or:he,ki=Sy(no,Ce,Vn?0:Xe,lt);return $o(Mr,ki),kn},uw=he=>he.dom.innerHTML,fw=he=>{const Ce=Nt.fromTag("div"),Xe=Nt.fromDom(he.dom.cloneNode(!0));return to(Ce,Xe),uw(Ce)},ud=(he,Ce)=>{he.selection.select(Ce.dom,!0),he.selection.collapse(!0)},i2=(he,Ce)=>{yl(Ce,"td,th").each(C(ud,he))},a2=(he,Ce)=>{U(Oo(Ce,"tr"),Xe=>{tu(he,Xe.dom),U(Oo(Xe,"th,td"),lt=>{qd(he,lt.dom)})})},s2=he=>s(he)&&he.indexOf("%")!==-1,Ib=(he,Ce,Xe,lt,Ct)=>{const Wt=Z1(he),kn={styles:Wt,attributes:Qd(he),colGroups:N_(he)};return he.undoManager.ignore(()=>{const Vn=bv(Xe,Ce,Ct,lt,z_(he),kn);st(Vn,"data-mce-id","__mce");const or=fw(Vn);he.insertContent(or),he.addVisual()}),yl(Im(he),'table[data-mce-id="__mce"]').map(Vn=>(l0(he)?ip(Vn):yp(he)?qm(Vn):(kf(he)||s2(Wt.width))&&hu(Vn),Sh(Vn),at(Vn,"data-mce-id"),a2(he,Vn),i2(he,Vn),Vn.dom)).getOrNull()},n3=(he,Ce,Xe,lt={})=>{const Ct=Wt=>a(Wt)&&Wt>0;if(Ct(Ce)&&Ct(Xe)){const Wt=lt.headerRows||0,kn=lt.headerColumns||0;return Ib(he,Xe,Ce,kn,Wt)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Ph=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Db="x-tinymce/dom-table-",l2=Db+"rows",fm=Db+"columns",r3=he=>{const Ce=Ph.FakeClipboardItem(he);Ph.write([Ce])},xv=he=>{var Ce;const Xe=(Ce=Ph.read())!==null&&Ce!==void 0?Ce:[];return we(Xe,lt=>A.from(lt.getType(he)))},g1=he=>{xv(he).isSome()&&Ph.clear()},_v=he=>{he.fold(ky,Ce=>r3({[l2]:Ce}))},wv=()=>xv(l2),ky=()=>g1(l2),Ov=he=>{he.fold(o3,Ce=>r3({[fm]:Ce}))},dw=()=>xv(fm),o3=()=>g1(fm),Bb=he=>Z_(zp(he),Dm(he)).filter(e1),hw=he=>q_(zp(he),Dm(he)).filter(e1),v1=(he,Ce)=>{const Xe=Dm(he),lt=()=>Bb(he).each(Xo=>{bl(Xo,Xe).filter(x(Xe)).each(oi=>{const wa=Nt.fromText("");if(Jr(oi,wa),pi(oi),he.dom.isEmpty(he.getBody()))he.setContent(""),he.selection.setCursorLocation();else{const Pa=he.dom.createRng();Pa.setStart(wa.dom,0),Pa.setEnd(wa.dom,0),he.selection.setRng(Pa),he.nodeChanged()}})}),Ct=Xo=>Bb(he).each(oi=>{yp(he)||l0(he)||kf(he)||bl(oi,Xe).each(Pa=>{Xo==="relative"&&!sw(Pa)?hu(Pa):Xo==="fixed"&&!Pb(Pa)?ip(Pa):Xo==="responsive"&&!t3(Pa)&&qm(Pa),Sh(Pa),Cd(he,Pa.dom,dl)})}),Wt=Xo=>bl(Xo,Xe),kn=Xo=>hw(he).bind(oi=>Wt(oi).map(wa=>Xo(wa,oi))),Vn=(Xo,oi)=>{kn(wa=>{he.formatter.toggle("tableclass",{value:oi},wa.dom),Cd(he,wa.dom,$c)})},or=(Xo,oi)=>{kn(wa=>{const Pa=uc(he),nu=se(Pa,Ll=>he.formatter.match("tablecellclass",{value:oi},Ll.dom))?he.formatter.remove:he.formatter.apply;U(Pa,Ll=>nu("tablecellclass",{value:oi},Ll.dom)),Cd(he,wa.dom,$c)})},Mr=()=>{Bb(he).each(Xo=>{bl(Xo,Xe).each(oi=>{zi(oi,"caption").fold(()=>{const wa=Nt.fromTag("caption");to(wa,Nt.fromText("Caption")),co(oi,wa,0),he.selection.setCursorLocation(wa.dom,0)},wa=>{vt("caption")(Xo)&&wn("td",oi).each(Pa=>he.selection.setCursorLocation(Pa.dom,0)),pi(wa)}),Cd(he,oi.dom,dl)})})},no=Xo=>{he.focus()},ti=(Xo,oi=!1)=>kn((wa,Pa)=>{const ta=Vx(uc(he),wa,Pa);Xo(wa,ta,oi).each(no)}),ki=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi),Pa=i0(c,Nt.fromDom(he.getDoc()),A.none());return b0(Xo,wa,Pa)}),xi=()=>kn((Xo,oi)=>{const wa=Vx(uc(he),Xo,oi);return p1(Xo,wa)}),fi=(Xo,oi)=>oi().each(wa=>{const Pa=j(wa,ta=>Sr(ta));kn((ta,nu)=>{const Ll=a0(Nt.fromDom(he.getDoc())),$u=u0(uc(he),nu,Pa,Ll);Xo(ta,$u).each(no)})}),Vi=Xo=>(oi,wa)=>Re(wa,"type").each(Pa=>{ti(Xo(Pa),wa.no_events)});Ie({mceTableSplitCells:()=>ti(Ce.unmergeCells),mceTableMergeCells:()=>ti(Ce.mergeCells),mceTableInsertRowBefore:()=>ti(Ce.insertRowsBefore),mceTableInsertRowAfter:()=>ti(Ce.insertRowsAfter),mceTableInsertColBefore:()=>ti(Ce.insertColumnsBefore),mceTableInsertColAfter:()=>ti(Ce.insertColumnsAfter),mceTableDeleteCol:()=>ti(Ce.deleteColumn),mceTableDeleteRow:()=>ti(Ce.deleteRow),mceTableCutCol:()=>xi().each(Xo=>{Ov(Xo),ti(Ce.deleteColumn)}),mceTableCutRow:()=>ki().each(Xo=>{_v(Xo),ti(Ce.deleteRow)}),mceTableCopyCol:()=>xi().each(Xo=>Ov(Xo)),mceTableCopyRow:()=>ki().each(Xo=>_v(Xo)),mceTablePasteColBefore:()=>fi(Ce.pasteColsBefore,dw),mceTablePasteColAfter:()=>fi(Ce.pasteColsAfter,dw),mceTablePasteRowBefore:()=>fi(Ce.pasteRowsBefore,wv),mceTablePasteRowAfter:()=>fi(Ce.pasteRowsAfter,wv),mceTableDelete:lt,mceTableCellToggleClass:or,mceTableToggleClass:Vn,mceTableToggleCaption:Mr,mceTableSizingMode:(Xo,oi)=>Ct(oi),mceTableCellType:Vi(Xo=>Xo==="th"?Ce.makeCellsHeader:Ce.unmakeCellsHeader),mceTableColType:Vi(Xo=>Xo==="th"?Ce.makeColumnsHeader:Ce.unmakeColumnsHeader),mceTableRowType:Vi(Xo=>{switch(Xo){case"header":return Ce.makeRowsHeader;case"footer":return Ce.makeRowsFooter;default:return Ce.makeRowsBody}})},(Xo,oi)=>he.addCommand(oi,Xo)),he.addCommand("mceInsertTable",(Xo,oi)=>{n3(he,oi.rows,oi.columns,oi.options)}),he.addCommand("mceTableApplyCellStyle",(Xo,oi)=>{const wa=nu=>"tablecell"+nu.toLowerCase().replace("-","");if(!n(oi))return;const Pa=Z(uc(he),e1);if(Pa.length===0)return;const ta=$e(oi,(nu,Ll)=>he.formatter.has(wa(Ll))&&s(nu));Ze(ta)||(Ie(ta,(nu,Ll)=>{const $u=wa(Ll);U(Pa,vm=>{nu===""?he.formatter.remove($u,{value:null},vm.dom,!0):he.formatter.apply($u,{value:nu},vm.dom)})}),Wt(Pa[0]).each(nu=>Cd(he,nu.dom,$c)))})},c2=(he,Ce)=>{const Xe=Dm(he),lt=Ct=>q_(zp(he)).bind(Wt=>bl(Wt,Xe).map(kn=>{const Vn=Vx(uc(he),kn,Wt);return Ct(kn,Vn)})).getOr("");Ie({mceTableRowType:()=>lt(Ce.getTableRowType),mceTableCellType:()=>lt(Ce.getTableCellType),mceTableColType:()=>lt(Ce.getTableColType)},(Ct,Wt)=>he.addQueryValueHandler(Wt,Ct))},Wm=sm.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),pw=(he,Ce,Xe,lt)=>he.fold(Ce,Xe,lt),mw=he=>he.fold(_,_,_),wp=Wm.before,zb=Wm.on,u2=Wm.after,Hf={before:wp,on:zb,after:u2,cata:pw,getStart:mw},ap={create:(he,Ce)=>({selection:he,kill:Ce})},Nb=(he,Ce)=>{const Xe=he.document.createRange();return Xe.selectNode(Ce.dom),Xe},i3=(he,Ce)=>{const Xe=he.document.createRange();return dm(Xe,Ce),Xe},dm=(he,Ce)=>he.selectNodeContents(Ce.dom),Ty=(he,Ce)=>{Ce.fold(Xe=>{he.setStartBefore(Xe.dom)},(Xe,lt)=>{he.setStart(Xe.dom,lt)},Xe=>{he.setStartAfter(Xe.dom)})},f2=(he,Ce)=>{Ce.fold(Xe=>{he.setEndBefore(Xe.dom)},(Xe,lt)=>{he.setEnd(Xe.dom,lt)},Xe=>{he.setEndAfter(Xe.dom)})},a3=(he,Ce,Xe)=>{const lt=he.document.createRange();return Ty(lt,Ce),f2(lt,Xe),lt},d2=(he,Ce,Xe,lt,Ct)=>{const Wt=he.document.createRange();return Wt.setStart(Ce.dom,Xe),Wt.setEnd(lt.dom,Ct),Wt},s3=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom,width:he.width,height:he.height}),h2=he=>{const Ce=he.getClientRects(),Xe=Ce.length>0?Ce[0]:he.getBoundingClientRect();return Xe.width>0||Xe.height>0?A.some(Xe).map(s3):A.none()},Fb=sm.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),l3=(he,Ce,Xe)=>Ce(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset),c3=(he,Ce)=>Ce.match({domRange:Xe=>({ltr:v(Xe),rtl:A.none}),relative:(Xe,lt)=>({ltr:cs(()=>a3(he,Xe,lt)),rtl:cs(()=>A.some(a3(he,lt,Xe)))}),exact:(Xe,lt,Ct,Wt)=>({ltr:cs(()=>d2(he,Xe,lt,Ct,Wt)),rtl:cs(()=>A.some(d2(he,Ct,Wt,Xe,lt)))})}),U4=(he,Ce)=>{const Xe=Ce.ltr();return Xe.collapsed?Ce.rtl().filter(Ct=>Ct.collapsed===!1).map(Ct=>Fb.rtl(Nt.fromDom(Ct.endContainer),Ct.endOffset,Nt.fromDom(Ct.startContainer),Ct.startOffset)).getOrThunk(()=>l3(he,Fb.ltr,Xe)):l3(he,Fb.ltr,Xe)},p2=(he,Ce)=>{const Xe=c3(he,Ce);return U4(he,Xe)},m2=(he,Ce)=>p2(he,Ce).match({ltr:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(lt.dom,Ct),Vn.setEnd(Wt.dom,kn),Vn},rtl:(lt,Ct,Wt,kn)=>{const Vn=he.document.createRange();return Vn.setStart(Wt.dom,kn),Vn.setEnd(lt.dom,Ct),Vn}});Fb.ltr,Fb.rtl;const S0={create:(he,Ce,Xe,lt)=>({start:he,soffset:Ce,finish:Xe,foffset:lt})},y1={create:(he,Ce,Xe,lt)=>({start:Hf.on(he,Ce),finish:Hf.on(Xe,lt)})},g2=(he,Ce)=>{const Xe=m2(he,Ce);return S0.create(Nt.fromDom(Xe.startContainer),Xe.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset)},u3=y1.create,zM=(he,Ce,Xe,lt,Ct,Wt,kn)=>An(Xe,Ct)&<===Wt?A.none():Bs(Xe,"td,th",Ce).bind(Vn=>Bs(Ct,"td,th",Ce).bind(or=>gC(he,Ce,Vn,or,kn))),gC=(he,Ce,Xe,lt,Ct)=>An(Xe,lt)?A.none():Y1(Xe,lt,Ce).bind(Wt=>{const kn=Wt.boxes.getOr([]);return kn.length>1?(Ct(he,kn,Wt.start,Wt.finish),A.some(ap.create(A.some(u3(Xe,0,Xe,Is(Xe))),!0))):A.none()}),$b=(he,Ce,Xe,lt,Ct)=>{const Wt=kn=>(Ct.clearBeforeUpdate(Xe),Ct.selectRange(Xe,kn.boxes,kn.start,kn.finish),kn.boxes);return Q_(lt,he,Ce,Ct.firstSelectedSelector,Ct.lastSelectedSelector).map(Wt)},vC=(he,Ce)=>({item:he,mode:Ce}),vw=(he,Ce,Xe,lt=Cy)=>he.property().parent(Ce).map(Ct=>vC(Ct,lt)),Cy=(he,Ce,Xe,lt=yw)=>Xe.sibling(he,Ce).map(Ct=>vC(Ct,lt)),yw=(he,Ce,Xe,lt=yw)=>{const Ct=he.property().children(Ce);return Xe.first(Ct).map(kn=>vC(kn,lt))},yC=[{current:vw,next:Cy,fallback:A.none()},{current:Cy,next:yw,fallback:A.some(vw)},{current:yw,next:yw,fallback:A.some(Cy)}],bC=(he,Ce,Xe,lt,Ct=yC)=>Y(Ct,kn=>kn.current===Xe).bind(kn=>kn.current(he,Ce,lt,kn.next).orThunk(()=>kn.fallback.bind(Vn=>bC(he,Ce,Vn,lt)))),v2={left:()=>({sibling:(Xe,lt)=>Xe.query().prevSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[Xe.length-1]):A.none()}),right:()=>({sibling:(Xe,lt)=>Xe.query().nextSibling(lt),first:Xe=>Xe.length>0?A.some(Xe[0]):A.none()})},b1=(he,Ce,Xe,lt,Ct,Wt)=>bC(he,Ce,lt,Ct).bind(Vn=>Wt(Vn.item)?A.none():Xe(Vn.item)?A.some(Vn.item):b1(he,Vn.item,Xe,Vn.mode,Ct,Wt)),FM=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Cy,v2.left(),lt),j4=(he,Ce,Xe,lt)=>b1(he,Ce,Xe,Cy,v2.right(),lt),xC=he=>Ce=>he.property().children(Ce).length===0,_C=(he,Ce,Xe)=>Q4(he,Ce,xC(he),Xe),wC=(he,Ce,Xe)=>OC(he,Ce,xC(he),Xe),Q4=FM,OC=j4,Ay=bg(),SC=(he,Ce)=>_C(Ay,he,Ce),Vb=(he,Ce)=>wC(Ay,he,Ce),My=(he,Ce,Xe)=>Q4(Ay,he,Ce,Xe),bw=(he,Ce,Xe)=>OC(Ay,he,Ce,Xe),y2=(he,Ce,Xe)=>Di(he,Ce,Xe).isSome(),f3=sm.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Ey=(he,Ce,Xe)=>{const lt=he.getRect(Ce),Ct=he.getRect(Xe);return Ct.right>lt.left&&Ct.leftBs(he,"tr"),b2={...f3,verify:(he,Ce,Xe,lt,Ct,Wt,kn)=>Bs(lt,"td,th",kn).bind(Vn=>Bs(Ce,"td,th",kn).map(or=>An(Vn,or)?An(lt,Vn)&&Is(Vn)===Ct?Wt(or):f3.none("in same cell"):kh(hm,[Vn,or]).fold(()=>Ey(he,or,Vn)?f3.success():Wt(or),Mr=>Wt(or)))).getOr(f3.none("default")),cata:(he,Ce,Xe,lt,Ct)=>he.fold(Ce,Xe,lt,Ct)},kC=(he,Ce,Xe,lt)=>({parent:he,children:Ce,element:Xe,index:lt}),x2=he=>$r(he).bind(Ce=>{const Xe=lr(Ce);return _2(Xe,he).map(lt=>kC(Ce,Xe,he,lt))}),_2=(he,Ce)=>ee(he,C(An,Ce)),Yd=vt("br"),d3=(he,Ce,Xe)=>Ce(he,Xe).bind(lt=>Cn(lt)&&Cs(lt).trim().length===0?d3(lt,Ce,Xe):A.some(lt)),xw=(he,Ce,Xe)=>Xe.traverse(Ce).orThunk(()=>d3(Ce,Xe.gather,he)).map(Xe.relative),h3=(he,Ce)=>zr(he,Ce).filter(Yd).orThunk(()=>zr(he,Ce-1).filter(Yd)),TC=(he,Ce,Xe,lt)=>h3(Ce,Xe).bind(Ct=>lt.traverse(Ct).fold(()=>d3(Ct,lt.gather,he).map(lt.relative),Wt=>x2(Wt).map(kn=>Hf.on(kn.parent,kn.index)))),Z4=(he,Ce,Xe,lt)=>(Yd(Ce)?xw(he,Ce,lt):TC(he,Ce,Xe,lt)).map(Wt=>({start:Wt,finish:Wt})),p3=he=>b2.cata(he,Ce=>A.none(),()=>A.none(),Ce=>A.some(Oc(Ce,0)),Ce=>A.some(Oc(Ce,Is(Ce)))),Ef=(he,Ce)=>({left:he.left,top:he.top+Ce,right:he.right,bottom:he.bottom+Ce}),m3=(he,Ce)=>({left:he.left,top:he.top-Ce,right:he.right,bottom:he.bottom-Ce}),x1=(he,Ce,Xe)=>({left:he.left+Ce,top:he.top+Xe,right:he.right+Ce,bottom:he.bottom+Xe}),CC=he=>he.top,q4=he=>he.bottom,Sv=(he,Ce,Xe)=>Xe>=0&&Xe0?he.getRangedRect(Ce,Xe-1,Ce,Xe):A.none(),_w=he=>({left:he.left,top:he.top,right:he.right,bottom:he.bottom}),w2=(he,Ce)=>A.some(he.getRect(Ce)),g3=(he,Ce,Xe)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?Sv(he,Ce,Xe).map(_w):A.none(),v3=(he,Ce)=>cn(Ce)?w2(he,Ce).map(_w):Cn(Ce)?he.getRangedRect(Ce,0,Ce,Is(Ce)).map(_w):A.none(),Py=5,VM=100,Vp=sm.generate([{none:[]},{retry:["caret"]}]),k0=(he,Ce)=>he.leftCe.right,W4=(he,Ce,Xe)=>To(Ce,Tf).fold(T,lt=>v3(he,lt).exists(Ct=>k0(Xe,Ct))),AC=(he,Ce,Xe,lt,Ct)=>{const Wt=Ef(Ct,Py);return Math.abs(Xe.bottom-lt.bottom)<1||Xe.top>Ct.bottom?Vp.retry(Wt):Xe.top===Ct.bottom?Vp.retry(Ef(Ct,1)):W4(he,Ce,Ct)?Vp.retry(x1(Wt,Py,0)):Vp.none()},Y4={point:CC,adjuster:(he,Ce,Xe,lt,Ct)=>{const Wt=m3(Ct,Py);return Math.abs(Xe.top-lt.top)<1||Xe.bottomhe.elementFromPoint(Ce,Xe).filter(lt=>Yt(lt)==="table").isSome(),PC=(he,Ce,Xe,lt,Ct)=>Op(he,Ce,Xe,Ce.move(lt,Py),Ct),Op=(he,Ce,Xe,lt,Ct)=>Ct===0?A.some(lt):EC(he,lt.left,Ce.point(lt))?PC(he,Ce,Xe,lt,Ct-1):he.situsFromPoint(lt.left,Ce.point(lt)).bind(Wt=>Wt.start.fold(A.none,kn=>v3(he,kn).bind(Vn=>Ce.adjuster(he,kn,Vn,Xe,lt).fold(A.none,or=>Op(he,Ce,Xe,or,Ct-1))).orThunk(()=>A.some(lt)),A.none)),Ub=(he,Ce,Xe)=>he.point(Ce)>Xe.getInnerHeight()?A.some(he.point(Ce)-Xe.getInnerHeight()):he.point(Ce)<0?A.some(-he.point(Ce)):A.none(),G4=(he,Ce,Xe)=>{const lt=he.move(Xe,Py),Ct=Op(Ce,he,Xe,lt,VM).getOr(lt);return Ub(he,Ct,Ce).fold(()=>Ce.situsFromPoint(Ct.left,he.point(Ct)),Wt=>(Ce.scrollBy(0,Wt),Ce.situsFromPoint(Ct.left,he.point(Ct)-Wt)))},Ry={tryUp:C(G4,Y4),tryDown:C(G4,X4),getJumpSize:v(Py)},Sp=20,Up=(he,Ce,Xe)=>he.getSelection().bind(lt=>Z4(Ce,lt.finish,lt.foffset,Xe).fold(()=>A.some(Oc(lt.finish,lt.foffset)),Ct=>{const Wt=he.fromSitus(Ct),kn=b2.verify(he,lt.finish,lt.foffset,Wt.finish,Wt.foffset,Xe.failure,Ce);return p3(kn)})),ph=(he,Ce,Xe,lt,Ct,Wt)=>Wt===0?A.none():Xm(he,Ce,Xe,lt,Ct).bind(kn=>{const Vn=he.fromSitus(kn),or=b2.verify(he,Xe,lt,Vn.finish,Vn.foffset,Ct.failure,Ce);return b2.cata(or,()=>A.none(),()=>A.some(kn),Mr=>An(Xe,Mr)&<===0?Ym(he,Xe,lt,m3,Ct):ph(he,Ce,Mr,0,Ct,Wt-1),Mr=>An(Xe,Mr)&<===Is(Mr)?Ym(he,Xe,lt,Ef,Ct):ph(he,Ce,Mr,Is(Mr),Ct,Wt-1))}),Ym=(he,Ce,Xe,lt,Ct)=>g3(he,Ce,Xe).bind(Wt=>y3(he,Ct,lt(Wt,Ry.getJumpSize()))),y3=(he,Ce,Xe)=>{const lt=wf().browser;return lt.isChromium()||lt.isSafari()||lt.isFirefox()?Ce.retry(he,Xe):A.none()},Xm=(he,Ce,Xe,lt,Ct)=>g3(he,Xe,lt).bind(Wt=>y3(he,Ct,Wt)),jb=(he,Ce,Xe)=>Up(he,Ce,Xe).bind(lt=>ph(he,Ce,lt.element,lt.offset,Xe,Sp).map(he.fromSitus)),UM=(he,Ce)=>y2(he,Xe=>$r(Xe).exists(lt=>An(lt,Ce))),K4=(he,Ce,Xe,lt,Ct)=>Bs(lt,"td,th",Ce).bind(Wt=>Bs(Wt,"table",Ce).bind(kn=>UM(Ct,kn)?jb(he,Ce,Xe).bind(Vn=>Bs(Vn.finish,"td,th",Ce).map(or=>({start:Wt,finish:or,range:Vn}))):A.none())),jM=(he,Ce,Xe,lt,Ct,Wt)=>Wt(lt,Ce).orThunk(()=>K4(he,Ce,Xe,lt,Ct).map(kn=>{const Vn=kn.range;return ap.create(A.some(u3(Vn.start,Vn.soffset,Vn.finish,Vn.foffset)),!0)})),QM=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[0])?My(lt,Wt=>gg(Wt).isSome(),Ce).map(Wt=>{const kn=Is(Wt);return ap.create(A.some(u3(Wt,kn,Wt,kn)),!0)}):A.none()})),RC=(he,Ce)=>Bs(he,"tr",Ce).bind(Xe=>Bs(Xe,"table",Ce).bind(lt=>{const Ct=Oo(lt,"tr");return An(Xe,Ct[Ct.length-1])?bw(lt,Wt=>ch(Wt).isSome(),Ce).map(Wt=>ap.create(A.some(u3(Wt,0,Wt,0)),!0)):A.none()})),b3=(he,Ce,Xe,lt,Ct,Wt,kn)=>K4(he,Xe,lt,Ct,Wt).bind(Vn=>gC(Ce,Xe,Vn.start,Vn.finish,kn)),x3=he=>{let Ce=he;return{get:()=>Ce,set:Ct=>{Ce=Ct}}},Rh=he=>{const Ce=x3(A.none()),Xe=()=>Ce.get().each(he);return{clear:()=>{Xe(),Ce.set(A.none())},isSet:()=>Ce.get().isSome(),get:()=>Ce.get(),set:Vn=>{Xe(),Ce.set(A.some(Vn))}}},O2=()=>{const he=Rh(c);return{...he,on:Xe=>he.get().each(Xe)}},S2=(he,Ce)=>Bs(he,"td,th",Ce),ww=he=>vr(he).exists(ly),J4=(he,Ce,Xe,lt)=>{const Ct=O2(),Wt=Ct.clear,kn=no=>{Ct.on(ti=>{lt.clearBeforeUpdate(Ce),S2(no.target,Xe).each(ki=>{Y1(ti,ki,Xe).each(xi=>{const fi=xi.boxes.getOr([]);if(fi.length===1){const Vi=fi[0],Xo=yg(Vi)==="false",oi=yf(K0(no.target),Vi,An);Xo&&oi&<.selectRange(Ce,fi,Vi,Vi)}else fi.length>1&&(lt.selectRange(Ce,fi,xi.start,xi.finish),he.selectContents(ki))})})})};return{clearstate:Wt,mousedown:no=>{lt.clear(Ce),S2(no.target,Xe).filter(ww).each(Ct.set)},mouseover:no=>{kn(no)},mouseup:no=>{kn(no),Wt()}}},Ow={traverse:sr,gather:Vb,relative:Hf.before,retry:Ry.tryDown,failure:b2.failedDown},Sw={traverse:gr,gather:SC,relative:Hf.before,retry:Ry.tryUp,failure:b2.failedUp},Qb=he=>Ce=>Ce===he,ek=Qb(38),_3=Qb(40),Eg=he=>he>=37&&he<=40,LC={isBackward:Qb(37),isForward:Qb(39)},IC={isBackward:Qb(39),isForward:Qb(37)},kv=he=>{const Ce=he!==void 0?he.dom:document,Xe=Ce.body.scrollLeft||Ce.documentElement.scrollLeft,lt=Ce.body.scrollTop||Ce.documentElement.scrollTop;return Ni(Xe,lt)},pm=(he,Ce,Xe)=>{const Ct=(Xe!==void 0?Xe.dom:document).defaultView;Ct&&Ct.scrollBy(he,Ce)},kw=sm.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Hb=he=>kw.exact(he.start,he.soffset,he.finish,he.foffset),Ly=he=>he.match({domRange:Ce=>Nt.fromDom(Ce.startContainer),relative:(Ce,Xe)=>Hf.getStart(Ce),exact:(Ce,Xe,lt,Ct)=>Ce}),tk=kw.domRange,w3=kw.relative,DC=kw.exact,HM=he=>{const Ce=Ly(he);return Br(Ce)},ZM=S0.create,Zb={domRange:tk,relative:w3,exact:DC,exactFromRange:Hb,getWin:HM,range:ZM},nk=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretPositionFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe)).bind(Ct=>{if(Ct.offsetNode===null)return A.none();const Wt=he.createRange();return Wt.setStart(Ct.offsetNode,Ct.offset),Wt.collapse(),A.some(Wt)})},k2=(he,Ce,Xe)=>{var lt;return A.from((lt=he.caretRangeFromPoint)===null||lt===void 0?void 0:lt.call(he,Ce,Xe))},Tw=(he,Ce,Xe)=>he.caretPositionFromPoint?nk(he,Ce,Xe):he.caretRangeFromPoint?k2(he,Ce,Xe):A.none(),qM=(he,Ce,Xe)=>{const lt=he.document;return Tw(lt,Ce,Xe).map(Ct=>S0.create(Nt.fromDom(Ct.startContainer),Ct.startOffset,Nt.fromDom(Ct.endContainer),Ct.endOffset))},O3=(he,Ce)=>{const Xe=Yt(he);return Xe==="input"?Hf.after(he):z(["br","img"],Xe)?Ce===0?Hf.before(he):Hf.after(he):Hf.on(he,Ce)},rk=(he,Ce)=>{const Xe=he.fold(Hf.before,O3,Hf.after),lt=Ce.fold(Hf.before,O3,Hf.after);return Zb.relative(Xe,lt)},ok=(he,Ce,Xe,lt)=>{const Ct=O3(he,Ce),Wt=O3(Xe,lt);return Zb.relative(Ct,Wt)},S3=(he,Ce,Xe,lt)=>{const Wt=Un(he).dom.createRange();return Wt.setStart(he.dom,Ce),Wt.setEnd(Xe.dom,lt),Wt},ik=(he,Ce,Xe,lt)=>{const Ct=S3(he,Ce,Xe,lt),Wt=An(he,Xe)&&Ce===lt;return Ct.collapsed&&!Wt},T2=he=>A.from(he.getSelection()),k3=(he,Ce)=>{T2(he).each(Xe=>{Xe.removeAllRanges(),Xe.addRange(Ce)})},T3=(he,Ce,Xe,lt,Ct)=>{const Wt=d2(he,Ce,Xe,lt,Ct);k3(he,Wt)},C3=(he,Ce,Xe,lt,Ct,Wt)=>{Ce.collapse(Xe.dom,lt),Ce.extend(Ct.dom,Wt)},A3=(he,Ce)=>p2(he,Ce).match({ltr:(Xe,lt,Ct,Wt)=>{T3(he,Xe,lt,Ct,Wt)},rtl:(Xe,lt,Ct,Wt)=>{T2(he).each(kn=>{if(kn.setBaseAndExtent)kn.setBaseAndExtent(Xe.dom,lt,Ct.dom,Wt);else if(kn.extend)try{C3(he,kn,Xe,lt,Ct,Wt)}catch{T3(he,Ct,Wt,Xe,lt)}else T3(he,Ct,Wt,Xe,lt)})}}),Ys=(he,Ce,Xe,lt,Ct)=>{const Wt=ok(Ce,Xe,lt,Ct);A3(he,Wt)},_1=(he,Ce,Xe)=>{const lt=rk(Ce,Xe);A3(he,lt)},qb=he=>{if(he.rangeCount>0){const Ce=he.getRangeAt(0),Xe=he.getRangeAt(he.rangeCount-1);return A.some(S0.create(Nt.fromDom(Ce.startContainer),Ce.startOffset,Nt.fromDom(Xe.endContainer),Xe.endOffset))}else return A.none()},M3=he=>{if(he.anchorNode===null||he.focusNode===null)return qb(he);{const Ce=Nt.fromDom(he.anchorNode),Xe=Nt.fromDom(he.focusNode);return ik(Ce,he.anchorOffset,Xe,he.focusOffset)?A.some(S0.create(Ce,he.anchorOffset,Xe,he.focusOffset)):qb(he)}},E3=(he,Ce,Xe=!0)=>{const Ct=(Xe?i3:Nb)(he,Ce);k3(he,Ct)},Iy=he=>T2(he).filter(Ce=>Ce.rangeCount>0).bind(M3),P3=he=>Iy(he).map(Ce=>Zb.exact(Ce.start,Ce.soffset,Ce.finish,Ce.foffset)),ak=(he,Ce)=>{const Xe=m2(he,Ce);return h2(Xe)},sk=(he,Ce,Xe)=>qM(he,Ce,Xe),lk=he=>{T2(he).each(Ce=>Ce.removeAllRanges())},Tv=he=>({elementFromPoint:(Xo,oi)=>Nt.fromPoint(Nt.fromDom(he.document),Xo,oi),getRect:Xo=>Xo.dom.getBoundingClientRect(),getRangedRect:(Xo,oi,wa,Pa)=>{const ta=Zb.exact(Xo,oi,wa,Pa);return ak(he,ta)},getSelection:()=>P3(he).map(Xo=>g2(he,Xo)),fromSitus:Xo=>{const oi=Zb.relative(Xo.start,Xo.finish);return g2(he,oi)},situsFromPoint:(Xo,oi)=>sk(he,Xo,oi).map(wa=>y1.create(wa.start,wa.soffset,wa.finish,wa.foffset)),clearSelection:()=>{lk(he)},collapseSelection:(Xo=!1)=>{P3(he).each(oi=>oi.fold(wa=>wa.collapse(Xo),(wa,Pa)=>{const ta=Xo?wa:Pa;_1(he,ta,ta)},(wa,Pa,ta,nu)=>{const Ll=Xo?wa:ta,$u=Xo?Pa:nu;Ys(he,Ll,$u,Ll,$u)}))},setSelection:Xo=>{Ys(he,Xo.start,Xo.soffset,Xo.finish,Xo.foffset)},setRelativeSelection:(Xo,oi)=>{_1(he,Xo,oi)},selectNode:Xo=>{E3(he,Xo,!1)},selectContents:Xo=>{E3(he,Xo)},getInnerHeight:()=>he.innerHeight,getScrollY:()=>kv(Nt.fromDom(he.document)).top,scrollBy:(Xo,oi)=>{pm(Xo,oi,Nt.fromDom(he.document))}}),Wb=(he,Ce)=>({rows:he,cols:Ce}),BC=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=J4(Ct,Ce,Xe,lt);return{clearstate:Wt.clearstate,mousedown:Wt.mousedown,mouseover:Wt.mouseover,mouseup:Wt.mouseup}},Cw=he=>To(he,Ot).exists(ly),ck=(he,Ce)=>Cw(he)||Cw(Ce),R3=(he,Ce,Xe,lt)=>{const Ct=Tv(he),Wt=()=>(lt.clear(Ce),A.none());return{keydown:(or,Mr,no,ti,ki,xi)=>{const fi=or.raw,Vi=fi.which,Xo=fi.shiftKey===!0;return uy(Ce,lt.selectedSelector).fold(()=>(Eg(Vi)&&!Xo&<.clearBeforeUpdate(Ce),Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?C(b3,Ct,Ce,Xe,Ow,ti,Mr,lt.selectRange):ek(Vi)&&Xo?C(b3,Ct,Ce,Xe,Sw,ti,Mr,lt.selectRange):_3(Vi)?C(jM,Ct,Xe,Ow,ti,Mr,RC):ek(Vi)?C(jM,Ct,Xe,Sw,ti,Mr,QM):A.none),wa=>{const Pa=ta=>()=>we(ta,Ll=>$b(Ll.rows,Ll.cols,Ce,wa,lt)).fold(()=>jO(Ce,lt.firstSelectedSelector,lt.lastSelectedSelector).map(Ll=>{const $u=_3(Vi)||xi.isForward(Vi)?Hf.after:Hf.before;return Ct.setRelativeSelection(Hf.on(Ll.first,0),$u(Ll.table)),lt.clear(Ce),ap.create(A.none(),!0)}),Ll=>A.some(ap.create(A.none(),!0)));return Eg(Vi)&&Xo&&!ck(Mr,ti)?A.none:_3(Vi)&&Xo?Pa([Wb(1,0)]):ek(Vi)&&Xo?Pa([Wb(-1,0)]):xi.isBackward(Vi)&&Xo?Pa([Wb(0,-1),Wb(-1,0)]):xi.isForward(Vi)&&Xo?Pa([Wb(0,1),Wb(1,0)]):Eg(Vi)&&!Xo?Wt:A.none})()},keyup:(or,Mr,no,ti,ki)=>uy(Ce,lt.selectedSelector).fold(()=>{const xi=or.raw,fi=xi.which;return xi.shiftKey===!0&&Eg(fi)&&ck(Mr,ti)?zM(Ce,Xe,Mr,no,ti,ki,lt.selectRange):A.none()},A.none)}},L3=(he,Ce,Xe,lt)=>{const Ct=Tv(he);return(Wt,kn)=>{lt.clearBeforeUpdate(Ce),Y1(Wt,kn,Xe).each(Vn=>{const or=Vn.boxes.getOr([]);lt.selectRange(Ce,or,Vn.start,Vn.finish),Ct.selectContents(kn),Ct.collapseSelection()})}},uk=(he,Ce)=>{const Xe=Dt(he,Ce);return Xe===void 0||Xe===""?[]:Xe.split(" ")},zC=(he,Ce,Xe)=>{const Ct=uk(he,Ce).concat([Xe]);return st(he,Ce,Ct.join(" ")),!0},Cv=(he,Ce,Xe)=>{const lt=Z(uk(he,Ce),Ct=>Ct!==Xe);return lt.length>0?st(he,Ce,lt.join(" ")):at(he,Ce),!1},I3=he=>he.dom.classList!==void 0,NC=he=>uk(he,"class"),Gm=(he,Ce)=>zC(he,"class",Ce),Ed=(he,Ce)=>Cv(he,"class",Ce),Av=(he,Ce)=>{I3(he)?he.dom.classList.add(Ce):Gm(he,Ce)},fk=he=>{(I3(he)?he.dom.classList:NC(he)).length===0&&at(he,"class")},WM=(he,Ce)=>{I3(he)?he.dom.classList.remove(Ce):Ed(he,Ce),fk(he)},D3=(he,Ce)=>I3(he)&&he.dom.classList.contains(Ce),dk=(he,Ce)=>{U(Ce,Xe=>{WM(he,Xe)})},C2=he=>Ce=>{Av(Ce,he)},FC=he=>Ce=>{dk(Ce,he)},XM={byClass:he=>{const Ce=C2(he.selected),Xe=FC([he.selected,he.lastSelected,he.firstSelected]),lt=Wt=>{const kn=Oo(Wt,he.selectedSelector);U(kn,Xe)};return{clearBeforeUpdate:lt,clear:lt,selectRange:(Wt,kn,Vn,or)=>{lt(Wt),U(kn,Ce),Av(Vn,he.firstSelected),Av(or,he.lastSelected)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}},byAttr:(he,Ce,Xe)=>{const lt=or=>{at(or,he.selected),at(or,he.firstSelected),at(or,he.lastSelected)},Ct=or=>{st(or,he.selected,"1")},Wt=or=>{kn(or),Xe()},kn=or=>{const Mr=Oo(or,`${he.selectedSelector},${he.firstSelectedSelector},${he.lastSelectedSelector}`);U(Mr,lt)};return{clearBeforeUpdate:kn,clear:Wt,selectRange:(or,Mr,no,ti)=>{Wt(or),U(Mr,Ct),st(no,he.firstSelected,"1"),st(ti,he.lastSelected,"1"),Ce(Mr,no,ti)},selectedSelector:he.selectedSelector,firstSelectedSelector:he.firstSelectedSelector,lastSelectedSelector:he.lastSelectedSelector}}},$C=(he,Ce,Xe,lt)=>{switch(he.tag){case"none":return Ce();case"single":return lt(he.element);case"multiple":return Xe(he.elements)}},VC=()=>({tag:"none"}),Ei=he=>({tag:"multiple",elements:he}),Pd=he=>({tag:"single",element:he}),Aw=(he,Ce,Xe)=>({get:()=>wg(he(),Xe).fold(()=>Ce().fold(VC,Pd),Ei)}),Rd=(he,Ce)=>{const Xe=he.slice(0,Ce[Ce.length-1].row+1),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(0,Ce[Ce.length-1].column+1);return j(Wt,kn=>kn.element)})},Km=(he,Ce)=>{const Xe=he.slice(Ce[0].row+Ce[0].rowspan-1,he.length),lt=bb(Xe);return pe(lt,Ct=>{const Wt=Ct.cells.slice(Ce[0].column+Ce[0].colspan-1,Ct.cells.length);return j(Wt,kn=>kn.element)})},hk=(he,Ce,Xe)=>{const lt=Ca.fromTable(he);return Ch(lt,Ce).map(Wt=>{const kn=iv(lt,Xe,!1),{rows:Vn}=zl(kn),or=Rd(Vn,Wt),Mr=Km(Vn,Wt);return{upOrLeftCells:or,downOrRightCells:Mr}})},Yb=(he,Ce,Xe,lt,Ct,Wt,kn)=>({target:he,x:Ce,y:Xe,stop:lt,prevent:Ct,kill:Wt,raw:kn}),Mw=he=>{const Ce=Nt.fromDom(Cr(he).getOr(he.target)),Xe=()=>he.stopPropagation(),lt=()=>he.preventDefault(),Ct=h(lt,Xe);return Yb(Ce,he.clientX,he.clientY,Xe,lt,Ct,he)},Xb=(he,Ce)=>Xe=>{he(Xe)&&Ce(Mw(Xe))},Ew=(he,Ce,Xe,lt,Ct)=>{const Wt=Xb(Xe,lt);return he.dom.addEventListener(Ce,Wt,Ct),{unbind:C(GM,he,Ce,Wt,Ct)}},UC=(he,Ce,Xe,lt)=>Ew(he,Ce,Xe,lt,!1),GM=(he,Ce,Xe,lt)=>{he.dom.removeEventListener(Ce,Xe,lt)},KM=P,A2=(he,Ce,Xe)=>UC(he,Ce,KM,Xe),Gb=Mw,pk=he=>!D3(Nt.fromDom(he.target),"ephox-snooker-resizer-bar"),mk=(he,Ce)=>{const Xe=Aw(()=>Nt.fromDom(he.getBody()),()=>q_(zp(he),Dm(he)),Xu.selectedSelector),lt=(or,Mr,no)=>{bl(Mr).each(ki=>{const xi=j(or,wa=>wa.dom),fi=VO(he),Vi=i0(c,Nt.fromDom(he.getDoc()),fi),Xo=uc(he),oi=hk(ki,{selection:Xo},Vi).map(wa=>ze(wa,Pa=>j(Pa,ta=>ta.dom))).getOrUndefined();d1(he,xi,Mr.dom,no.dom,oi)})},Ct=()=>t2(he),Wt=XM.byAttr(Xu,lt,Ct);return he.on("init",or=>{const Mr=he.getWin(),no=Im(he),ti=Dm(he),ki=()=>{const Tl=he.selection,Ld=Nt.fromDom(Tl.getStart()),sp=Nt.fromDom(Tl.getEnd());kh(bl,[Ld,sp]).fold(()=>Wt.clear(no),c)},xi=BC(Mr,no,ti,Wt),fi=R3(Mr,no,ti,Wt),Vi=L3(Mr,no,ti,Wt),Xo=Tl=>Tl.raw.shiftKey===!0;he.on("TableSelectorChange",Tl=>Vi(Tl.start,Tl.finish));const oi=(Tl,Ld)=>{Xo(Tl)&&(Ld.kill&&Tl.kill(),Ld.selection.each(sp=>{const Rg=Zb.relative(sp.start,sp.finish),ym=m2(Mr,Rg);he.selection.setRng(ym)}))},wa=Tl=>{const Ld=Gb(Tl);if(Ld.raw.shiftKey&&Eg(Ld.raw.which)){const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer);fi.keyup(Ld,Rg,sp.startOffset,ym,sp.endOffset).each(P2=>{oi(Ld,P2)})}},Pa=Tl=>{const Ld=Gb(Tl);Ce.hide();const sp=he.selection.getRng(),Rg=Nt.fromDom(sp.startContainer),ym=Nt.fromDom(sp.endContainer),P2=Kt(LC,IC)(Nt.fromDom(he.selection.getStart()));fi.keydown(Ld,Rg,sp.startOffset,ym,sp.endOffset,P2).each(Wa=>{oi(Ld,Wa)}),Ce.show()},ta=Tl=>Tl.button===0,nu=Tl=>Tl.buttons===void 0?!0:(Tl.buttons&1)!==0,Ll=Tl=>{xi.clearstate()},$u=Tl=>{ta(Tl)&&pk(Tl)&&xi.mousedown(Gb(Tl))},vm=Tl=>{nu(Tl)&&pk(Tl)&&xi.mouseover(Gb(Tl))},gh=Tl=>{ta(Tl)&&pk(Tl)&&xi.mouseup(Gb(Tl))},ex=(()=>{const Tl=x3(Nt.fromDom(no)),Ld=x3(0);return{touchEnd:Rg=>{const ym=Nt.fromDom(Rg.target);if(vt("td")(ym)||vt("th")(ym)){const P2=Tl.get(),Wa=Ld.get();An(P2,ym)&&Rg.timeStamp-Wa<300&&(Rg.preventDefault(),Vi(ym,ym))}Tl.set(ym),Ld.set(Rg.timeStamp)}}})();he.on("dragstart",Ll),he.on("mousedown",$u),he.on("mouseover",vm),he.on("mouseup",gh),he.on("touchend",ex.touchEnd),he.on("keyup",wa),he.on("keydown",Pa),he.on("NodeChange",ki)}),he.on("PreInit",()=>{he.serializer.addTempAttr(Xu.firstSelected),he.serializer.addTempAttr(Xu.lastSelected)}),{getSelectedCells:()=>$C(Xe.get(),v([]),or=>j(or,Mr=>Mr.dom),or=>[or.dom]),clearSelectedCells:or=>Wt.clear(Nt.fromDom(or))}},jp=he=>{let Ce=[];return{bind:Wt=>{if(Wt===void 0)throw new Error("Event bind error: undefined handler");Ce.push(Wt)},unbind:Wt=>{Ce=Z(Ce,kn=>kn!==Wt)},trigger:(...Wt)=>{const kn={};U(he,(Vn,or)=>{kn[Vn]=Wt[or]}),U(Ce,Vn=>{Vn(kn)})}}},w1=he=>{const Ce=ze(he,lt=>({bind:lt.bind,unbind:lt.unbind})),Xe=ze(he,lt=>lt.trigger);return{registry:Ce,trigger:Xe}},B3=(he,Ce)=>{let Xe=null;const lt=()=>{b(Xe)||(clearTimeout(Xe),Xe=null)};return{cancel:lt,throttle:(...Wt)=>{lt(),Xe=setTimeout(()=>{Xe=null,he.apply(null,Wt)},Ce)}}},Pg=he=>he.slice(0).sort(),z3=(he,Ce)=>{throw new Error("All required keys ("+Pg(he).join(", ")+") were not specified. Specified keys were: "+Pg(Ce).join(", ")+".")},JM=he=>{throw new Error("Unsupported keys for object: "+Pg(he).join(", "))},N3=(he,Ce)=>{if(!u(Ce))throw new Error("The "+he+" fields must be an array. Was: "+Ce+".");U(Ce,Xe=>{if(!s(Xe))throw new Error("The value "+Xe+" in the "+he+" fields was not a string.")})},F3=(he,Ce)=>{throw new Error("All values need to be of type: "+Ce+". Keys ("+Pg(he).join(", ")+") were not.")},eE=he=>{const Ce=Pg(he);Y(Ce,(lt,Ct)=>Ct{throw new Error("The field: "+lt+" occurs more than once in the combined fields: ["+Ce.join(", ")+"].")})},tE=(he,Ce)=>nE(he,Ce,{validate:m,label:"function"}),nE=(he,Ce,Xe)=>{if(Ce.length===0)throw new Error("You must specify at least one required field.");return N3("required",Ce),eE(Ce),lt=>{const Ct=Te(lt);se(Ce,Vn=>z(Ct,Vn))||z3(Ce,Ct),he(Ce,Ct);const kn=Z(Ce,Vn=>!Xe.validate(lt[Vn],Vn));return kn.length>0&&F3(kn,Xe.label),lt}},rE=(he,Ce)=>{const Xe=Z(Ce,lt=>!z(he,lt));Xe.length>0&&JM(Xe)},$3=he=>tE(rE,he),jC=$3(["compare","extract","mutate","sink"]),oE=$3(["element","start","stop","destroy"]),V3=$3(["forceDrop","drop","move","delayDrop"]),mh=()=>{let he=A.none();const Ce=()=>{he=A.none()},Xe=(Wt,kn)=>{const Vn=he.map(or=>Wt.compare(or,kn));return he=A.some(kn),Vn},lt=(Wt,kn)=>{kn.extract(Wt).each(or=>{Xe(kn,or).each(no=>{Ct.trigger.move(no)})})},Ct=w1({move:jp(["info"])});return{onEvent:lt,reset:Ce,events:Ct.registry}},Jm=()=>{const he=w1({move:jp(["info"])});return{onEvent:c,reset:c,events:he.registry}},mm=()=>{const he=Jm(),Ce=mh();let Xe=he;return{on:()=>{Xe.reset(),Xe=Ce},off:()=>{Xe.reset(),Xe=he},isOn:()=>Xe===Ce,onEvent:(Vn,or)=>{Xe.onEvent(Vn,or)},events:Ce.events}},U3=(he,Ce,Xe)=>{let lt=!1;const Ct=w1({start:jp([]),stop:jp([])}),Wt=mm(),kn=()=>{fi.stop(),Wt.isOn()&&(Wt.off(),Ct.trigger.stop())},Vn=B3(kn,200),or=Xo=>{fi.start(Xo),Wt.on(),Ct.trigger.start()},Mr=Xo=>{Vn.cancel(),Wt.onEvent(Xo,Ce)};Wt.events.move.bind(Xo=>{Ce.mutate(he,Xo.info)});const no=()=>{lt=!0},ti=()=>{lt=!1},ki=()=>lt,xi=Xo=>(...oi)=>{lt&&Xo.apply(null,oi)},fi=Ce.sink(V3({forceDrop:kn,drop:xi(kn),move:xi(Mr),delayDrop:xi(Vn.throttle)}),Xe),Vi=()=>{fi.destroy()};return{element:fi.element,go:or,on:no,off:ti,isActive:ki,destroy:Vi,events:Ct.registry}},Pw=he=>{const Ce=he.replace(/\./g,"-");return{resolve:lt=>Ce+"-"+lt}},Rw=Pw("ephox-dragster").resolve,iE=he=>{const Ce={layerClass:Rw("blocker"),...he},Xe=Nt.fromTag("div");return st(Xe,"role","presentation"),Wl(Xe,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Av(Xe,Rw("blocker")),Av(Xe,Ce.layerClass),{element:v(Xe),destroy:()=>{pi(Xe)}}};var qC=jC({compare:(he,Ce)=>Ni(Ce.left-he.left,Ce.top-he.top),extract:he=>A.some(Ni(he.x,he.y)),sink:(he,Ce)=>{const Xe=iE(Ce),lt=A2(Xe.element(),"mousedown",he.forceDrop),Ct=A2(Xe.element(),"mouseup",he.drop),Wt=A2(Xe.element(),"mousemove",he.move),kn=A2(Xe.element(),"mouseout",he.delayDrop),Vn=()=>{Xe.destroy(),Ct.unbind(),Wt.unbind(),kn.unbind(),lt.unbind()},or=no=>{to(no,Xe.element())},Mr=()=>{pi(Xe.element())};return oE({element:Xe.element,start:or,stop:Mr,destroy:Vn})},mutate:(he,Ce)=>{he.mutate(Ce.left,Ce.top)}});const j3=(he,Ce={})=>{var Xe;const lt=(Xe=Ce.mode)!==null&&Xe!==void 0?Xe:qC;return U3(he,lt,Ce)},Jo=Pw("ephox-snooker").resolve,gm=()=>{const he=w1({drag:jp(["xDelta","yDelta"])});return{mutate:(Xe,lt)=>{he.trigger.drag(Xe,lt)},events:he.registry}},YC=()=>{const he=w1({drag:jp(["xDelta","yDelta","target"])});let Ce=A.none();const Xe=gm();return Xe.events.drag.bind(Wt=>{Ce.each(kn=>{he.trigger.drag(Wt.xDelta,Wt.yDelta,kn)})}),{assign:Wt=>{Ce=A.some(Wt)},get:()=>Ce,mutate:Xe.mutate,events:he.registry}},gk=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce-lt/2+"px",top:Xe+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-column":he,role:"presentation"}),Wt},Lw=(he,Ce,Xe,lt,Ct)=>{const Wt=Nt.fromTag("div");return Wl(Wt,{position:"absolute",left:Ce+"px",top:Xe-Ct/2+"px",height:Ct+"px",width:lt+"px"}),bt(Wt,{"data-row":he,role:"presentation"}),Wt},Kb=Jo("resizer-bar"),vk=Jo("resizer-rows"),Iw=Jo("resizer-cols"),XC=7,sE=(he,Ce)=>pe(he.all,(Xe,lt)=>Ce(Xe.element)?[lt]:[]),yk=(he,Ce)=>{const Xe=[];return Q(he.grid.columns,lt=>{Ca.getColumnAt(he,lt).map(Wt=>Wt.element).forall(Ce)&&Xe.push(lt)}),Z(Xe,lt=>{const Ct=Ca.filterItems(he,Wt=>Wt.column===lt);return se(Ct,Wt=>Ce(Wt.element))})},Dw=he=>{const Ce=Oo(he.parent(),"."+Kb);U(Ce,pi)},Dy=(he,Ce,Xe)=>{const lt=he.origin();U(Ce,Ct=>{Ct.each(Wt=>{const kn=Xe(lt,Wt);Av(kn,Kb),to(he.parent(),kn)})})},GC=(he,Ce,Xe,lt)=>{Dy(he,Ce,(Ct,Wt)=>{const kn=gk(Wt.col,Wt.x-Ct.left,Xe.top-Ct.top,XC,lt);return Av(kn,Iw),kn})},KC=(he,Ce,Xe,lt)=>{Dy(he,Ce,(Ct,Wt)=>{const kn=Lw(Wt.row,Xe.left-Ct.left,Wt.y-Ct.top,lt,XC);return Av(kn,vk),kn})},lE=(he,Ce,Xe,lt,Ct)=>{const Wt=nl(Xe),kn=Ce.isResizable,Vn=lt.length>0?Os.positions(lt,Xe):[],or=Vn.length>0?sE(he,kn):[],Mr=Z(Vn,(xi,fi)=>$(or,Vi=>fi===Vi));KC(Ce,Mr,Wt,ds(Xe));const no=Ct.length>0?tp.positions(Ct,Xe):[],ti=no.length>0?yk(he,kn):[],ki=Z(no,(xi,fi)=>$(ti,Vi=>fi===Vi));GC(Ce,ki,Wt,uo(Xe))},bk=(he,Ce)=>{if(Dw(he),he.isResizable(Ce)){const Xe=Ca.fromTable(Ce),lt=_u(Xe),Ct=Ls(Xe);lE(Xe,he,Ce,lt,Ct)}},cE=(he,Ce)=>{const Xe=Oo(he.parent(),"."+Kb);U(Xe,Ce)},Qp=he=>{cE(he,Ce=>{Al(Ce,"display","none")})},Zh=he=>{cE(he,Ce=>{Al(Ce,"display","block")})},M2=he=>D3(he,vk),PD=he=>D3(he,Iw),uE=Jo("resizer-bar-dragging"),xk=he=>{const Ce=YC(),Xe=j3(Ce,{});let lt=A.none();const Ct=(fi,Vi)=>A.from(Dt(fi,Vi));Ce.events.drag.bind(fi=>{Ct(fi.target,"data-row").each(Vi=>{const Xo=Dc(fi.target,"top");Al(fi.target,"top",Xo+fi.yDelta+"px")}),Ct(fi.target,"data-column").each(Vi=>{const Xo=Dc(fi.target,"left");Al(fi.target,"left",Xo+fi.xDelta+"px")})});const Wt=(fi,Vi)=>{const Xo=Dc(fi,Vi),oi=ll(fi,"data-initial-"+Vi,0);return Xo-oi};Xe.events.stop.bind(()=>{Ce.get().each(fi=>{lt.each(Vi=>{Ct(fi,"data-row").each(Xo=>{const oi=Wt(fi,"top");at(fi,"data-initial-top"),xi.trigger.adjustHeight(Vi,oi,parseInt(Xo,10))}),Ct(fi,"data-column").each(Xo=>{const oi=Wt(fi,"left");at(fi,"data-initial-left"),xi.trigger.adjustWidth(Vi,oi,parseInt(Xo,10))}),bk(he,Vi)})})});const kn=(fi,Vi)=>{xi.trigger.startAdjust(),Ce.assign(fi),st(fi,"data-initial-"+Vi,Dc(fi,Vi)),Av(fi,uE),Al(fi,"opacity","0.2"),Xe.go(he.parent())},Vn=A2(he.parent(),"mousedown",fi=>{M2(fi.target)&&kn(fi.target,"top"),PD(fi.target)&&kn(fi.target,"left")}),or=fi=>An(fi,he.view()),Mr=fi=>Bs(fi,"table",or).filter(ly),no=A2(he.view(),"mouseover",fi=>{Mr(fi.target).fold(()=>{Nr(fi.target)&&Dw(he)},Vi=>{Xe.isActive()&&(lt=A.some(Vi),bk(he,Vi))})}),ti=()=>{Vn.unbind(),no.unbind(),Xe.destroy(),Dw(he)},ki=fi=>{bk(he,fi)},xi=w1({adjustHeight:jp(["table","delta","row"]),adjustWidth:jp(["table","delta","column"]),startAdjust:jp([])});return{destroy:ti,refresh:ki,on:Xe.on,off:Xe.off,hideBars:C(Qp,he),showBars:C(Zh,he),events:xi.registry}},fE={create:(he,Ce,Xe)=>{const lt=Os,Ct=tp,Wt=xk(he),kn=w1({beforeResize:jp(["table","type"]),afterResize:jp(["table","type"]),startDrag:jp([])});return Wt.events.adjustHeight.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"row");const Mr=lt.delta(Vn.delta,or);Jx(or,Mr,Vn.row),kn.trigger.afterResize(or,"row")}),Wt.events.startAdjust.bind(Vn=>{kn.trigger.startDrag()}),Wt.events.adjustWidth.bind(Vn=>{const or=Vn.table;kn.trigger.beforeResize(or,"col");const Mr=Ct.delta(Vn.delta,or),no=Xe(or);Kx(or,Mr,Vn.column,Ce,no),kn.trigger.afterResize(or,"col")}),{on:Wt.on,off:Wt.off,refreshBars:Wt.refresh,hideBars:Wt.hideBars,showBars:Wt.showBars,destroy:Wt.destroy,events:kn.registry}}},O1={only:(he,Ce)=>{const Xe=Pn(he)?tr(he):he;return{parent:v(Xe),view:v(he),origin:v(Ni(0,0)),isResizable:Ce}},detached:(he,Ce,Xe)=>{const lt=()=>nl(Ce);return{parent:v(Ce),view:v(he),origin:lt,isResizable:Xe}},body:(he,Ce,Xe)=>({parent:v(Ce),view:v(he),origin:v(Ni(0,0)),isResizable:Xe})},Q3=()=>{const he=Nt.fromTag("div");return Wl(he,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),to(Eo(),he),he},hE=(he,Ce)=>he.inline?O1.body(Nt.fromDom(he.getBody()),Q3(),Ce):O1.only(Nt.fromDom(he.getDoc()),Ce),pE=(he,Ce)=>{he.inline&&pi(Ce.parent())},e6=he=>y(he)&&he.nodeName==="TABLE",Bw="bar-",_k=he=>Dt(he,"data-mce-resize")!=="false",t6=he=>{const Ce=Ca.fromTable(he);Ca.hasColumns(Ce)||U(vu(he),Xe=>{const lt=Ml(Xe,"width");Al(Xe,"width",lt),at(Xe,"width")})},LD=he=>Tc(he,"corner-"),E2=he=>xh(he,"corner-"),wk=he=>{const Ce=O2(),Xe=O2(),lt=O2();let Ct,Wt,kn,Vn;const or=oi=>du(he,oi),Mr=()=>lu(he)?o1():K1(),no=oi=>kg(oi).columns,ti=oi=>kg(oi).rows,ki=(oi,wa,Pa,ta)=>{const nu=E2(wa),Ll=iu(nu,"e"),$u=Tc(nu,"n");if(Wt===""&&hu(oi),Vn===""&&$4(oi),Pa!==Ct&&Wt!==""){Al(oi,"width",Wt);const vm=Mr(),gh=or(oi),Jb=lu(he)||Ll?no(oi)-1:0;Kx(oi,Pa-Ct,Jb,vm,gh)}else if(UO(Wt)){const vm=parseFloat(Wt.replace("%","")),gh=Pa*vm/Ct;Al(oi,"width",gh+"%")}if(W1(Wt)&&t6(oi),ta!==kn&&Vn!==""){Al(oi,"height",Vn);const vm=$u?0:ti(oi)-1;Jx(oi,ta-kn,vm)}},xi=()=>{Xe.on(oi=>{oi.destroy()}),lt.on(oi=>{pE(he,oi)})};return he.on("init",()=>{const oi=hE(he,_k);if(lt.set(oi),rm(he)&&Bp(he)){const wa=Mr(),Pa=fE.create(oi,wa,or);Pa.on(),Pa.events.startDrag.bind(ta=>{Ce.set(he.selection.getRng())}),Pa.events.beforeResize.bind(ta=>{const nu=ta.table.dom;gv(he,nu,J0(nu),F_(nu),Bw+ta.type)}),Pa.events.afterResize.bind(ta=>{const nu=ta.table,Ll=nu.dom;Sh(nu),Ce.on($u=>{he.selection.setRng($u),he.focus()}),Lu(he,Ll,J0(Ll),F_(Ll),Bw+ta.type),he.undoManager.add()}),Xe.set(Pa)}}),he.on("ObjectResizeStart",oi=>{const wa=oi.target;if(e6(wa)){const Pa=Nt.fromDom(wa);U(he.dom.select(".mce-clonedresizable"),ta=>{he.dom.addClass(ta,"mce-"+db(he)+"-columns")}),!Pb(Pa)&&l0(he)?ip(Pa):!sw(Pa)&&kf(he)&&hu(Pa),t3(Pa)&&Tc(oi.origin,Bw)&&hu(Pa),Ct=oi.width,Wt=yp(he)?"":$_(he,wa).getOr(""),kn=oi.height,Vn=Dx(he,wa).getOr("")}}),he.on("ObjectResized",oi=>{const wa=oi.target;if(e6(wa)){const Pa=Nt.fromDom(wa),ta=oi.origin;LD(ta)&&ki(Pa,ta,oi.width,oi.height),Sh(Pa),Cd(he,Pa.dom,$c)}}),he.on("SwitchMode",()=>{Xe.on(oi=>{he.mode.isReadOnly()?oi.hideBars():oi.showBars()})}),he.on("dragstart dragend",oi=>{Xe.on(wa=>{oi.type==="dragstart"?(wa.hideBars(),wa.off()):(wa.on(),wa.showBars())})}),he.on("remove",()=>{xi()}),{refresh:oi=>{Xe.on(wa=>wa.refreshBars(Nt.fromDom(oi)))},hide:()=>{Xe.on(oi=>oi.hideBars())},show:()=>{Xe.on(oi=>oi.showBars())}}},ID=he=>{H1(he);const Ce=wk(he),Xe=mk(he,Ce),lt=Iu(he,Ce,Xe);return v1(he,lt),c2(he,lt),Og(he,lt),{getSelectedCells:Xe.getSelectedCells,clearSelectedCells:Xe.clearSelectedCells}},n6=he=>({table:ID(he)});var mE=()=>{t.add("dom",n6)};mE()})();(function(){const t=Object.getPrototypeOf,e=(l,N,W)=>{var fe;return W(l,N.prototype)?!0:((fe=l.constructor)===null||fe===void 0?void 0:fe.name)===N.name},o=l=>{const N=typeof l;return l===null?"null":N==="object"&&Array.isArray(l)?"array":N==="object"&&e(l,String,(W,fe)=>fe.isPrototypeOf(W))?"string":N},f=l=>N=>o(N)===l,E=l=>N=>typeof N===l,d=l=>N=>l===N,s=(l,N)=>u(l)&&e(l,N,(W,fe)=>t(W)===fe),n=f("string"),u=f("object"),b=l=>s(l,Object),i=f("array"),S=d(null),w=E("boolean"),y=d(void 0),m=l=>l==null,a=l=>!m(l),c=E("function"),h=E("number"),p=(l,N)=>{if(i(l)){for(let W=0,fe=l.length;W{},_=l=>()=>l(),O=(l,N)=>(...W)=>l(N.apply(null,W)),C=(l,N)=>W=>l(N(W)),x=l=>()=>l,R=l=>l,M=(l,N)=>l===N;function T(l,...N){return(...W)=>{const fe=N.concat(W);return l.apply(null,fe)}}const P=l=>N=>!l(N),A=l=>()=>{throw new Error(l)},L=l=>l(),D=x(!1),k=x(!0);class I{constructor(N,W){this.tag=N,this.value=W}static some(N){return new I(!0,N)}static none(){return I.singletonNone}fold(N,W){return this.tag?W(this.value):N()}isSome(){return this.tag}isNone(){return!this.tag}map(N){return this.tag?I.some(N(this.value)):I.none()}bind(N){return this.tag?N(this.value):I.none()}exists(N){return this.tag&&N(this.value)}forall(N){return!this.tag||N(this.value)}filter(N){return!this.tag||N(this.value)?this:I.none()}getOr(N){return this.tag?this.value:N}or(N){return this.tag?this:N}getOrThunk(N){return this.tag?this.value:N()}orThunk(N){return this.tag?this:N()}getOrDie(N){if(this.tag)return this.value;throw new Error(N??"Called getOrDie on None")}static from(N){return a(N)?I.some(N):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(N){this.tag&&N(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const z=Array.prototype.slice,$=Array.prototype.indexOf,Q=Array.prototype.push,j=(l,N)=>$.call(l,N),U=(l,N)=>{const W=j(l,N);return W===-1?I.none():I.some(W)},X=(l,N)=>j(l,N)>-1,te=(l,N)=>{for(let W=0,fe=l.length;W{const W=[];for(let fe=0;fe{const W=[];for(let fe=0;fe{const W=l.length,fe=new Array(W);for(let Se=0;Se{for(let W=0,fe=l.length;W{for(let W=l.length-1;W>=0;W--){const fe=l[W];N(fe,W)}},ee=(l,N)=>{const W=[],fe=[];for(let Se=0,Be=l.length;Se{const W=[];for(let fe=0,Se=l.length;fe(Y(l,(fe,Se)=>{W=N(W,fe,Se)}),W),se=(l,N,W)=>(q(l,(fe,Se)=>{W=N(W,fe,Se)}),W),ae=(l,N,W)=>{for(let fe=0,Se=l.length;feae(l,N,D),de=(l,N)=>{for(let W=0,fe=l.length;W{const N=[];for(let W=0,fe=l.length;Wye(re(l,N)),_e=(l,N)=>{for(let W=0,fe=l.length;W{const N=z.call(l,0);return N.reverse(),N},Te=(l,N)=>me(l,W=>!X(N,W)),Pe=(l,N)=>{const W={};for(let fe=0,Se=l.length;fe[l],ze=(l,N)=>{const W=z.call(l,0);return W.sort(N),W},De=(l,N)=>N>=0&&NDe(l,0),Ve=l=>De(l,l.length-1),$e=c(Array.from)?Array.from:l=>z.call(l),Oe=(l,N)=>{for(let W=0;W{const W=ke(l);for(let fe=0,Se=W.length;feZe(l,(W,fe)=>({k:fe,v:N(W,fe)})),Ze=(l,N)=>{const W={};return We(l,(fe,Se)=>{const Be=N(fe,Se);W[Be.k]=Be.v}),W},Ye=l=>(N,W)=>{l[W]=N},Je=(l,N,W,fe)=>{We(l,(Se,Be)=>{(N(Se,Be)?W:fe)(Se,Be)})},Me=(l,N)=>{const W={},fe={};return Je(l,N,Ye(W),Ye(fe)),{t:W,f:fe}},Fe=(l,N)=>{const W={};return Je(l,N,Ye(W),v),W},je=(l,N)=>{const W=[];return We(l,(fe,Se)=>{W.push(N(fe,Se))}),W},tt=(l,N)=>{const W=ke(l);for(let fe=0,Se=W.length;feje(l,R),Ge=(l,N)=>ht(l,N)?I.from(l[N]):I.none(),ht=(l,N)=>Re.call(l,N),pt=(l,N)=>ht(l,N)&&l[N]!==void 0&&l[N]!==null,St=(l,N,W=M)=>l.exists(fe=>W(fe,N)),Ft=(l,N,W=M)=>ln(l,N,W).getOr(l.isNone()&&N.isNone()),zt=l=>{const N=[],W=fe=>{N.push(fe)};for(let fe=0;fe{const N=[];for(let W=0;Wl.isSome()&&N.isSome()?I.some(W(l.getOrDie(),N.getOrDie())):I.none(),tn=(l,N,W,fe)=>l.isSome()&&N.isSome()&&W.isSome()?I.some(fe(l.getOrDie(),N.getOrDie(),W.getOrDie())):I.none(),Et=(l,N)=>l!=null?I.some(N(l)):I.none(),Ot=(l,N)=>l?I.some(N):I.none(),cn=(l,N)=>l+N,Cn=(l,N)=>l.substring(N),Pn=(l,N,W)=>N===""||l.length>=N.length&&l.substr(W,W+N.length)===N,Sn=(l,N)=>st(l,N)?Cn(l,N.length):l,vt=(l,N)=>bt(l,N)?l:cn(l,N),xt=(l,N,W=0,fe)=>{const Se=l.indexOf(N,W);return Se!==-1?y(fe)?!0:Se+N.length<=fe:!1},st=(l,N)=>Pn(l,N,0),bt=(l,N)=>Pn(l,N,l.length-N.length),Dt=(l=>N=>N.replace(l,""))(/^\s+|\s+$/g),it=l=>l.length>0,at=l=>!it(l),Bt=l=>l.style!==void 0&&c(l.style.getPropertyValue),_t=(l,N)=>{const fe=(N||document).createElement("div");if(fe.innerHTML=l,!fe.hasChildNodes()||fe.childNodes.length>1){const Se="HTML does not have a single root node";throw console.error(Se,l),new Error(Se)}return Jt(fe.childNodes[0])},qt=(l,N)=>{const fe=(N||document).createElement(l);return Jt(fe)},en=(l,N)=>{const fe=(N||document).createTextNode(l);return Jt(fe)},Jt=l=>{if(l==null)throw new Error("Node cannot be null or undefined");return{dom:l}},Nt={fromHtml:_t,fromTag:qt,fromText:en,fromDom:Jt,fromPoint:(l,N,W)=>I.from(l.dom.elementFromPoint(N,W)).map(Jt)},sn=typeof window<"u"?window:Function("return this;")(),rn=(l,N)=>{let W=N??sn;for(let fe=0;fe{const W=l.split(".");return rn(W,N)},wn=(l,N)=>_n(l,N),An=(l,N)=>{const W=wn(l,N);if(W==null)throw new Error(l+" not available on this browser");return W},Kn=Object.getPrototypeOf,fr=l=>An("HTMLElement",l),Un=l=>{const N=_n("ownerDocument.defaultView",l);return u(l)&&(fr(N).prototype.isPrototypeOf(l)||/^HTML\w*Element$/.test(Kn(l).constructor.name))},Zn=9,tr=11,Br=1,$r=3,vr=l=>l.dom.nodeName.toLowerCase(),qn=l=>l.dom.nodeType,gr=l=>N=>qn(N)===l,sr=l=>lr(l)&&Un(l.dom),lr=gr(Br),zr=gr($r),Vr=gr(Zn),eo=gr(tr),Jr=l=>N=>lr(N)&&vr(N)===l,Yr=(l,N)=>{const W=l.dom;if(W.nodeType!==Br)return!1;{const fe=W;if(fe.matches!==void 0)return fe.matches(N);if(fe.msMatchesSelector!==void 0)return fe.msMatchesSelector(N);if(fe.webkitMatchesSelector!==void 0)return fe.webkitMatchesSelector(N);if(fe.mozMatchesSelector!==void 0)return fe.mozMatchesSelector(N);throw new Error("Browser lacks native selectors")}},to=l=>l.nodeType!==Br&&l.nodeType!==Zn&&l.nodeType!==tr||l.childElementCount===0,co=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?[]:re(W.querySelectorAll(l),Nt.fromDom)},Fo=(l,N)=>{const W=N===void 0?document:N.dom;return to(W)?I.none():I.from(W.querySelector(l)).map(Nt.fromDom)},_o=(l,N)=>l.dom===N.dom,$o=(l,N)=>{const W=l.dom,fe=N.dom;return W===fe?!1:W.contains(fe)},Mo=l=>Nt.fromDom(l.dom.ownerDocument),pi=l=>Vr(l)?l:Mo(l),Hn=l=>Nt.fromDom(pi(l).dom.documentElement),ar=l=>Nt.fromDom(pi(l).dom.defaultView),Dr=l=>I.from(l.dom.parentNode).map(Nt.fromDom),Sr=l=>Dr(l),Zr=l=>I.from(l.dom.parentElement).map(Nt.fromDom),go=(l,N)=>{const W=c(N)?N:D;let fe=l.dom;const Se=[];for(;fe.parentNode!==null&&fe.parentNode!==void 0;){const Be=fe.parentNode,qe=Nt.fromDom(Be);if(Se.push(qe),W(qe)===!0)break;fe=Be}return Se},oo=l=>I.from(l.dom.offsetParent).map(Nt.fromDom),io=l=>I.from(l.dom.nextSibling).map(Nt.fromDom),Do=l=>re(l.dom.childNodes,Nt.fromDom),jn=(l,N)=>{const W=l.dom.childNodes;return I.from(W[N]).map(Nt.fromDom)},Rr=l=>jn(l,0),On=(l,N)=>({element:l,offset:N}),Yn=(l,N)=>{const W=Do(l);return W.length>0&&Neo(l)&&a(l.dom.host),kr=l=>Nt.fromDom(l.dom.getRootNode()),Er=l=>ir(l)?l:Nt.fromDom(pi(l).dom.body),Gt=l=>on(l).isSome(),on=l=>{const N=kr(l);return ir(N)?I.some(N):I.none()},an=l=>Nt.fromDom(l.dom.host),Tn=l=>{if(a(l.target)){const N=Nt.fromDom(l.target);if(lr(N)&&zn(N)&&l.composed&&l.composedPath){const W=l.composedPath();if(W)return Qe(W)}}return I.from(l.target)},zn=l=>a(l.dom.shadowRoot),Gn=l=>{const N=zr(l)?l.dom.parentNode:l.dom;if(N==null||N.ownerDocument===null)return!1;const W=N.ownerDocument;return on(Nt.fromDom(N)).fold(()=>W.body.contains(N),C(Gn,an))},Lr=()=>Ur(Nt.fromDom(document)),Ur=l=>{const N=l.dom.body;if(N==null)throw new Error("Body is not available yet");return Nt.fromDom(N)},qr=(l,N,W)=>{if(n(W)||w(W)||h(W))l.setAttribute(N,W+"");else throw console.error("Invalid call to Attribute.set. Key ",N,":: Value ",W,":: Element ",l),new Error("Attribute value was not simple")},Cr=(l,N,W)=>{qr(l.dom,N,W)},wo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{qr(W,Se,fe)})},Nr=(l,N)=>{const W=l.dom.getAttribute(N);return W===null?void 0:W},Eo=(l,N)=>I.from(Nr(l,N)),zo=(l,N)=>{const W=l.dom;return W&&W.hasAttribute?W.hasAttribute(N):!1},Qt=(l,N)=>{l.dom.removeAttribute(N)},Mn=l=>se(l.dom.attributes,(N,W)=>(N[W.name]=W.value,N),{}),Fn=(l,N,W)=>{if(!n(W))throw console.error("Invalid call to CSS.set. Property ",N,":: Value ",W,":: Element ",l),new Error("CSS value must be a string: "+W);Bt(l)&&l.style.setProperty(N,W)},dr=(l,N)=>{Bt(l)&&l.style.removeProperty(N)},xr=(l,N,W)=>{const fe=l.dom;Fn(fe,N,W)},Oo=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{Fn(W,Se,fe)})},mi=(l,N)=>{const W=l.dom;We(N,(fe,Se)=>{fe.fold(()=>{dr(W,Se)},Be=>{Fn(W,Se,Be)})})},Di=(l,N)=>{const W=l.dom,Se=window.getComputedStyle(W).getPropertyValue(N);return Se===""&&!Gn(l)?To(W,N):Se},To=(l,N)=>Bt(l)?l.style.getPropertyValue(N):"",Ia=(l,N)=>{const W=l.dom,fe=To(W,N);return I.from(fe).filter(Se=>Se.length>0)},Ds=l=>{const N={},W=l.dom;if(Bt(W))for(let fe=0;fe{const fe=Nt.fromTag(l);return xr(fe,N,W),Ia(fe,N).isSome()},zi=(l,N)=>{const W=l.dom;dr(W,N),St(Eo(l,"style").map(Dt),"")&&Qt(l,"style")},yl=l=>l.dom.offsetWidth,Bs=(l,N)=>{const W=(ft,yt)=>{if(!h(yt)&&!yt.match(/^[0-9]+$/))throw new Error(l+".set accepts only positive integer values. Value was "+yt);const Lt=ft.dom;Bt(Lt)&&(Lt.style[l]=yt+"px")},fe=ft=>{const yt=N(ft);if(yt<=0||yt===null){const Lt=Di(ft,l);return parseFloat(Lt)||0}return yt},Se=fe,Be=(ft,yt)=>se(yt,(Lt,Ht)=>{const fn=Di(ft,Ht),Rn=fn===void 0?0:parseInt(fn,10);return isNaN(Rn)?Lt:Lt+Rn},0);return{set:W,get:fe,getOuter:Se,aggregate:Be,max:(ft,yt,Lt)=>{const Ht=Be(ft,Lt);return yt>Ht?yt-Ht:0}}},yf=Bs("height",l=>{const N=l.dom;return Gn(l)?N.getBoundingClientRect().height:N.offsetHeight}),il=l=>yf.get(l),nf=l=>yf.getOuter(l),nh=(l,N)=>{const W=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],fe=yf.max(l,N,W);xr(l,"max-height",fe+"px")},gp=(l,N)=>({left:l,top:N,translate:(fe,Se)=>gp(l+fe,N+Se)}),Qs=gp,xh=l=>{const N=l.getBoundingClientRect();return Qs(N.left,N.top)},Bl=(l,N)=>l!==void 0?l:N!==void 0?N:0,Tc=l=>{const N=l.dom.ownerDocument,W=N.body,fe=N.defaultView,Se=N.documentElement;if(W===l.dom)return Qs(W.offsetLeft,W.offsetTop);const Be=Bl(fe==null?void 0:fe.pageYOffset,Se.scrollTop),qe=Bl(fe==null?void 0:fe.pageXOffset,Se.scrollLeft),ft=Bl(Se.clientTop,W.clientTop),yt=Bl(Se.clientLeft,W.clientLeft);return iu(l).translate(qe-yt,Be-ft)},iu=l=>{const N=l.dom,fe=N.ownerDocument.body;return fe===N?Qs(fe.offsetLeft,fe.offsetTop):Gn(l)?xh(N):Qs(0,0)},au=Bs("width",l=>l.dom.offsetWidth),zf=(l,N)=>au.set(l,N),_s=l=>au.get(l),ma=l=>au.getOuter(l),mu=(l,N)=>{const W=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],fe=au.max(l,N,W);xr(l,"max-width",fe+"px")},Uc=l=>{let N=!1,W;return(...fe)=>(N||(N=!0,W=l.apply(null,fe)),W)},Kf=(l,N,W,fe)=>{const Se=l.isiOS()&&/ipad/i.test(W)===!0,Be=l.isiOS()&&!Se,qe=l.isiOS()||l.isAndroid(),ft=qe||fe("(pointer:coarse)"),yt=Se||!Be&&qe&&fe("(min-device-width:768px)"),Lt=Be||qe&&!yt,Ht=N.isSafari()&&l.isiOS()&&/safari/i.test(W)===!1,fn=!Lt&&!yt&&!Ht;return{isiPad:x(Se),isiPhone:x(Be),isTablet:x(yt),isPhone:x(Lt),isTouch:x(ft),isAndroid:l.isAndroid,isiOS:l.isiOS,isWebView:x(Ht),isDesktop:x(fn)}},Al=(l,N)=>{for(let W=0;W{const W=Al(l,N);if(!W)return{major:0,minor:0};const fe=Se=>Number(N.replace(W,"$"+Se));return Nf(fe(1),fe(2))},Ml=(l,N)=>{const W=String(N).toLowerCase();return l.length===0?Jf():Wl(l,W)},Jf=()=>Nf(0,0),Nf=(l,N)=>({major:l,minor:N}),Jl={nu:Nf,detect:Ml,unknown:Jf},Gh=(l,N)=>Oe(N.brands,W=>{const fe=W.brand.toLowerCase();return ce(l,Se=>{var Be;return fe===((Be=Se.brand)===null||Be===void 0?void 0:Be.toLowerCase())}).map(Se=>({current:Se.name,version:Jl.nu(parseInt(W.version,10),0)}))}),ll=(l,N)=>{const W=String(N).toLowerCase();return ce(l,fe=>fe.search(W))},Tu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),gu=(l,N)=>ll(l,N).map(W=>{const fe=Jl.detect(W.versionRegexes,N);return{current:W.name,version:fe}}),ec=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dc=l=>N=>xt(N,l),tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:l=>xt(l,"edge/")&&xt(l,"chrome")&&xt(l,"safari")&&xt(l,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ec],search:l=>xt(l,"chrome")&&!xt(l,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:l=>xt(l,"msie")||xt(l,"trident")},{name:"Opera",versionRegexes:[ec,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dc("firefox")},{name:"Safari",versionRegexes:[ec,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:l=>(xt(l,"safari")||xt(l,"mobile/"))&&xt(l,"applewebkit")}],Lp=[{name:"Windows",search:Dc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:l=>xt(l,"iphone")||xt(l,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dc("linux"),versionRegexes:[]},{name:"Solaris",search:Dc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rh={browsers:x(tc),oses:x(Lp)},rf="Edge",of="Chromium",bf="IE",vu="Opera",$d="Firefox",bl="Safari",Zu=()=>Kh({current:void 0,version:Jl.unknown()}),Kh=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isEdge:fe(rf),isChromium:fe(of),isIE:fe(bf),isOpera:fe(vu),isFirefox:fe($d),isSafari:fe(bl)}},Cu={unknown:Zu,nu:Kh,edge:x(rf),chromium:x(of),ie:x(bf),opera:x(vu),firefox:x($d),safari:x(bl)},ed="Windows",Bu="iOS",vd="Android",cs="Linux",oh="macOS",Jh="Solaris",_h="FreeBSD",xf="ChromeOS",ep=()=>_r({current:void 0,version:Jl.unknown()}),_r=l=>{const N=l.current,W=l.version,fe=Se=>()=>N===Se;return{current:N,version:W,isWindows:fe(ed),isiOS:fe(Bu),isAndroid:fe(vd),isMacOS:fe(oh),isLinux:fe(cs),isSolaris:fe(Jh),isFreeBSD:fe(_h),isChromeOS:fe(xf)}},Ff={unknown:ep,nu:_r,windows:x(ed),ios:x(Bu),android:x(vd),linux:x(cs),macos:x(oh),solaris:x(Jh),freebsd:x(_h),chromeos:x(xf)},bd={detect:(l,N,W)=>{const fe=rh.browsers(),Se=rh.oses(),Be=N.bind(yt=>Gh(fe,yt)).orThunk(()=>Tu(fe,l)).fold(Cu.unknown,Cu.nu),qe=gu(Se,l).fold(Ff.unknown,Ff.nu),ft=Kf(qe,Be,l,W);return{browser:Be,os:qe,deviceType:ft}}},wh=l=>window.matchMedia(l).matches;let zu=Uc(()=>bd.detect(window.navigator.userAgent,I.from(window.navigator.userAgentData),wh));const va=()=>zu(),El=(l,N,W,fe,Se,Be,qe)=>({target:l,x:N,y:W,stop:fe,prevent:Se,kill:Be,raw:qe}),_f=l=>{const N=Nt.fromDom(Tn(l).getOr(l.target)),W=()=>l.stopPropagation(),fe=()=>l.preventDefault(),Se=O(fe,W);return El(N,l.clientX,l.clientY,W,fe,Se,l)},$f=(l,N)=>W=>{l(W)&&N(_f(W))},ih=(l,N,W,fe,Se)=>{const Be=$f(W,fe);return l.dom.addEventListener(N,Be,Se),{unbind:T(Nh,l,N,Be,Se)}},yu=(l,N,W,fe)=>ih(l,N,W,fe,!1),jc=(l,N,W,fe)=>ih(l,N,W,fe,!0),Nh=(l,N,W,fe)=>{l.dom.removeEventListener(N,W,fe)},af=(l,N)=>{Dr(l).each(fe=>{fe.dom.insertBefore(N.dom,l.dom)})},td=(l,N)=>{io(l).fold(()=>{Dr(l).each(Se=>{Bc(Se,N)})},fe=>{af(fe,N)})},sf=(l,N)=>{Rr(l).fold(()=>{Bc(l,N)},fe=>{l.dom.insertBefore(N.dom,fe.dom)})},Bc=(l,N)=>{l.dom.appendChild(N.dom)},Vd=(l,N,W)=>{jn(l,W).fold(()=>{Bc(l,N)},fe=>{af(fe,N)})},xd=(l,N)=>{q(N,W=>{Bc(l,W)})},vc=l=>{l.dom.textContent="",q(Do(l),N=>{gs(N)})},gs=l=>{const N=l.dom;N.parentNode!==null&&N.parentNode.removeChild(N)},yc=l=>{const N=l!==void 0?l.dom:document,W=N.body.scrollLeft||N.documentElement.scrollLeft,fe=N.body.scrollTop||N.documentElement.scrollTop;return Qs(W,fe)},Cc=(l,N,W)=>{const Se=(W!==void 0?W.dom:document).defaultView;Se&&Se.scrollTo(l,N)},Nu=l=>{const N=l===void 0?window:l;return va().browser.isFirefox()?I.none():I.from(N.visualViewport)},Gs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),Ks=l=>{const N=l===void 0?window:l,W=N.document,fe=yc(Nt.fromDom(W));return Nu(N).fold(()=>{const Se=N.document.documentElement,Be=Se.clientWidth,qe=Se.clientHeight;return Gs(fe.left,fe.top,Be,qe)},Se=>Gs(Math.max(Se.pageLeft,fe.left),Math.max(Se.pageTop,fe.top),Se.width,Se.height))},Ac=()=>Nt.fromDom(document),_d=(l,N)=>l.view(N).fold(x([]),fe=>{const Se=l.owner(fe),Be=_d(l,Se);return[fe].concat(Be)}),Fh=(l,N)=>{const W=N.owner(l),fe=_d(N,W);return I.some(fe)};var ah=Object.freeze({__proto__:null,view:l=>{var N;return(l.dom===document?I.none():I.from((N=l.dom.defaultView)===null||N===void 0?void 0:N.frameElement)).map(Nt.fromDom)},owner:l=>Mo(l)});const Au=l=>{const N=Ac(),W=yc(N);return Fh(l,ah).fold(T(Tc,l),Se=>{const Be=iu(l),qe=pe(Se,(ft,yt)=>{const Lt=iu(yt);return{left:ft.left+Lt.left,top:ft.top+Lt.top}},{left:0,top:0});return Qs(qe.left+Be.left+W.left,qe.top+Be.top+W.top)})},lf=(l,N,W)=>({point:l,width:N,height:W}),wf=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe}),vs=(l,N,W,fe)=>({x:l,y:N,width:W,height:fe,right:l+W,bottom:N+fe}),cl=l=>{const N=Tc(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},bc=l=>{const N=Au(l),W=ma(l),fe=nf(l);return vs(N.left,N.top,W,fe)},nc=(l,N)=>{const W=Math.max(l.x,N.x),fe=Math.max(l.y,N.y),Se=Math.min(l.right,N.right),Be=Math.min(l.bottom,N.bottom),qe=Se-W,ft=Be-fe;return vs(W,fe,qe,ft)},Qc=(l,N)=>se(N,(W,fe)=>nc(W,fe),l),ts=()=>Ks(window),wi=l=>{let N=l;return{get:()=>N,set:Se=>{N=Se}}},bu=l=>{const N=wi(I.none()),W=()=>N.get().each(l);return{clear:()=>{W(),N.set(I.none())},isSet:()=>N.get().isSome(),get:()=>N.get(),set:ft=>{W(),N.set(I.some(ft))}}},wd=()=>bu(l=>l.destroy()),Ol=()=>bu(l=>l.unbind()),ds=()=>{const l=bu(v);return{...l,on:W=>l.get().each(W)}};var zc=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Ud=l=>{const N=Be=>Be(l),W=x(l),fe=()=>Se,Se={tag:!0,inner:l,fold:(Be,qe)=>qe(l),isValue:k,isError:D,map:Be=>aa.value(Be(l)),mapError:fe,bind:N,exists:N,forall:N,getOr:W,or:fe,getOrThunk:W,orThunk:fe,getOrDie:W,each:Be=>{Be(l)},toOptional:()=>I.some(l)};return Se},cf=l=>{const N=()=>W,W={tag:!1,inner:l,fold:(fe,Se)=>fe(l),isValue:D,isError:k,map:N,mapError:fe=>aa.error(fe(l)),bind:N,exists:D,forall:k,getOr:R,or:R,getOrThunk:L,orThunk:L,getOrDie:A(String(l)),each:v,toOptional:I.none};return W},aa={value:Ud,error:cf,fromOption:(l,N)=>l.fold(()=>cf(N),Ud)};var rs;(function(l){l[l.Error=0]="Error",l[l.Value=1]="Value"})(rs||(rs={}));const Mu=(l,N,W)=>l.stype===rs.Error?N(l.serror):W(l.svalue),Ri=l=>{const N=[],W=[];return q(l,fe=>{Mu(fe,Se=>W.push(Se),Se=>N.push(Se))}),{values:N,errors:W}},Gc=(l,N)=>l.stype===rs.Error?{stype:rs.Error,serror:N(l.serror)}:l,qu=(l,N)=>l.stype===rs.Value?{stype:rs.Value,svalue:N(l.svalue)}:l,zl=(l,N)=>l.stype===rs.Value?N(l.svalue):l,xc=(l,N)=>l.stype===rs.Error?N(l.serror):l,Kc=l=>({stype:rs.Value,svalue:l}),jd=l=>({stype:rs.Error,serror:l}),al={fromResult:l=>l.fold(jd,Kc),toResult:l=>Mu(l,aa.error,aa.value),svalue:Kc,partition:Ri,serror:jd,bind:zl,bindError:xc,map:qu,mapError:Gc,fold:Mu},Yl=(l,N,W,fe)=>({tag:"field",key:l,newKey:N,presence:W,prop:fe}),uf=(l,N)=>({tag:"custom",newKey:l,instantiator:N}),hs=(l,N,W)=>{switch(l.tag){case"field":return N(l.key,l.newKey,l.presence,l.prop);case"custom":return W(l.newKey,l.instantiator)}},Mc=(l,N)=>N,Eu=(l,N)=>b(l)&&b(N)?ws(l,N):N,xu=l=>(...N)=>{if(N.length===0)throw new Error("Can't merge zero objects");const W={};for(let fe=0;fe({tag:"required",process:{}}),Ca=l=>({tag:"defaultedThunk",process:l}),Ls=l=>Ca(x(l)),Ec=()=>({tag:"option",process:{}}),_u=l=>({tag:"mergeWithThunk",process:l}),wt=l=>_u(x(l)),Kt=(l,N)=>l.length>0?al.svalue(ws(N,Fu.apply(void 0,l))):al.svalue(N),En=l=>O(al.serror,ye)(l),uo={consolidateObj:(l,N)=>{const W=al.partition(l);return W.errors.length>0?En(W.errors):Kt(W.values,N)},consolidateArr:l=>{const N=al.partition(l);return N.errors.length>0?En(N.errors):al.svalue(N.values)}},Bi=l=>u(l)&&ke(l).length>100?" removed due to size":JSON.stringify(l,null,2),ya=l=>{const N=l.length>10?l.slice(0,10).concat([{path:[],getErrorInfo:x("... (only showing first ten failures)")}]):l;return re(N,W=>"Failed path: ("+W.path.join(" > ")+`) `+W.getErrorInfo())},Ni=(l,N)=>al.serror([{path:l,getErrorInfo:N}]),Qi=(l,N,W)=>Ni(l,()=>'Could not find valid *required* value for "'+N+'" in '+Bi(W)),Ws=(l,N)=>Ni(l,()=>'Choice schema did not contain choice key: "'+N+'"'),nl=(l,N,W)=>Ni(l,()=>'The chosen schema: "'+W+'" did not exist in branches: '+Bi(N)),Fs=(l,N)=>Ni(l,()=>"There are unsupported fields: ["+N.join(", ")+"] specified"),Wu=(l,N)=>Ni(l,x(N)),Ki=l=>{const N=(fe,Se)=>al.bindError(l(Se),Be=>Wu(fe,Be)),W=x("val");return{extract:N,toString:W}},Aa=Ki(al.svalue),Pl=(l,N,W,fe)=>Ge(N,W).fold(()=>Qi(l,W,N),fe),Vf=(l,N,W,fe)=>{const Se=Ge(l,N).getOrThunk(()=>W(l));return fe(Se)},sh=(l,N,W)=>W(Ge(l,N)),_c=(l,N,W,fe)=>{const Se=Ge(l,N).map(Be=>Be===!0?W(l):Be);return fe(Se)},Xl=(l,N,W,fe,Se)=>{const Be=ft=>Se.extract(N.concat([fe]),ft),qe=ft=>ft.fold(()=>al.svalue(I.none()),yt=>{const Lt=Se.extract(N.concat([fe]),yt);return al.map(Lt,I.some)});switch(l.tag){case"required":return Pl(N,W,fe,Be);case"defaultedThunk":return Vf(W,fe,l.process,Be);case"option":return sh(W,fe,qe);case"defaultedOptionThunk":return _c(W,fe,l.process,qe);case"mergeWithThunk":return Vf(W,fe,x({}),ft=>{const yt=ws(l.process(W),ft);return Be(yt)})}},pl=(l,N,W)=>{const fe={},Se=[];for(const Be of W)hs(Be,(qe,ft,yt,Lt)=>{const Ht=Xl(yt,l,N,qe,Lt);al.fold(Ht,fn=>{Se.push(...fn)},fn=>{fe[ft]=fn})},(qe,ft)=>{fe[qe]=ft(N)});return Se.length>0?al.serror(Se):al.svalue(fe)},Pc=l=>({extract:(fe,Se)=>l().extract(fe,Se),toString:()=>l().toString()}),Uf=l=>ke(Fe(l,a)),Os=l=>{const N=Si(l),W=pe(l,(Se,Be)=>hs(Be,qe=>ws(Se,{[qe]:!0}),x(Se)),{});return{extract:(Se,Be)=>{const qe=w(Be)?[]:Uf(Be),ft=me(qe,yt=>!pt(W,yt));return ft.length===0?N.extract(Se,Be):Fs(Se,ft)},toString:N.toString}},Si=l=>({extract:(fe,Se)=>pl(fe,Se,l),toString:()=>`obj{ `+re(l,Se=>hs(Se,(Be,qe,ft,yt)=>Be+" -> "+yt.toString(),(Be,qe)=>"state("+Be+")")).join(` `)+"}"}),lc=l=>({extract:(fe,Se)=>{const Be=re(Se,(qe,ft)=>l.extract(fe.concat(["["+ft+"]"]),qe));return uo.consolidateArr(Be)},toString:()=>"array("+l.toString()+")"}),rd=(l,N)=>{const W=N!==void 0?N:R;return{extract:(Be,qe)=>{const ft=[];for(const yt of l){const Lt=yt.extract(Be,qe);if(Lt.stype===rs.Value)return{stype:rs.Value,svalue:W(Lt.svalue)};ft.push(Lt)}return uo.consolidateArr(ft)},toString:()=>"oneOf("+re(l,Be=>Be.toString()).join(", ")+")"}},tp=(l,N)=>{const W=(Be,qe)=>lc(Ki(l)).extract(Be,qe);return{extract:(Be,qe)=>{const ft=ke(qe),yt=W(Be,ft);return al.bind(yt,Lt=>{const Ht=re(Lt,fn=>Yl(fn,fn,su(),N));return Si(Ht).extract(Be,qe)})},toString:()=>"setOf("+N.toString()+")"}},kt=(l,N)=>{const W=Uc(N);return{extract:(Be,qe)=>W().extract(Be,qe),toString:()=>W().toString()}},It=O(lc,Si),Ut=x(Aa),J=(l,N)=>Ki(W=>{const fe=typeof W;return l(W)?al.svalue(W):al.serror(`Expected type: ${N} but got: ${fe}`)}),le=J(h,"number"),ne=J(n,"string"),V=J(w,"boolean"),ie=J(c,"function"),ge=l=>{if(Object(l)!==l)return!0;switch({}.toString.call(l).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(l).every(N=>ge(l[N]));default:return!1}},xe=Ki(l=>ge(l)?al.svalue(l):al.serror("Expected value to be acceptable for sending via postMessage")),Ee=(l,N,W,fe)=>Ge(W,fe).fold(()=>nl(l,W,fe),Be=>Be.extract(l.concat(["branch: "+fe]),N)),Ne=(l,N)=>({extract:(Se,Be)=>Ge(Be,l).fold(()=>Ws(Se,l),ft=>Ee(Se,Be,N,ft)),toString:()=>"chooseOn("+l+"). Possible values: "+ke(N)}),et=()=>lc(Aa),rt=l=>Ki(N=>l(N).fold(al.serror,al.svalue)),dt=(l,N)=>tp(W=>al.fromResult(l(W)),N),gt=(l,N,W)=>{const fe=N.extract([l],W);return al.mapError(fe,Se=>({input:W,errors:Se}))},Rt=(l,N,W)=>al.toResult(gt(l,N,W)),Mt=l=>l.fold(N=>{throw new Error(dn(N))},R),Xt=(l,N,W)=>Mt(Rt(l,N,W)),dn=l=>`Errors: `+ya(l.errors).join(` `)+` -Input object: `+Bi(l.input),bn=(l,N)=>Ne(l,Ue(N,Si)),vn=(l,N)=>kt(l,N),Ln=Yl,gn=uf,Jn=l=>rt(N=>X(l,N)?aa.value(N):aa.error(`Unsupported value: "${N}", choose one of "${l.join(", ")}".`)),pn=l=>Ln(l,l,su(),Ut()),In=(l,N)=>Ln(l,l,su(),N),Ir=l=>In(l,le),Pr=l=>In(l,ne),Gr=(l,N)=>Ln(l,l,su(),Jn(N)),ro=l=>In(l,V),po=l=>In(l,ie),Wo=(l,N)=>Ln(l,l,Ec(),Ki(W=>al.serror("The field: "+l+" is forbidden. "+N))),si=(l,N)=>Ln(l,l,su(),Si(N)),Bo=(l,N)=>Ln(l,l,su(),It(N)),Go=(l,N)=>Ln(l,l,su(),lc(N)),Yo=l=>Ln(l,l,Ec(),Ut()),Wi=(l,N)=>Ln(l,l,Ec(),N),Ho=l=>Wi(l,le),jo=l=>Wi(l,ne),Yi=(l,N)=>Wi(l,Jn(N)),ai=l=>Wi(l,ie),Hi=(l,N)=>Wi(l,lc(N)),Ai=(l,N)=>Wi(l,Si(N)),Ja=(l,N)=>Wi(l,Os(N)),Ar=(l,N)=>Ln(l,l,Ls(N),Ut()),ns=(l,N,W)=>Ln(l,l,Ls(N),W),$s=(l,N)=>ns(l,N,le),Ts=(l,N)=>ns(l,N,ne),rl=(l,N,W)=>ns(l,N,Jn(W)),Hs=(l,N)=>ns(l,N,V),ys=(l,N)=>ns(l,N,ie),Yu=(l,N)=>ns(l,N,xe),mt=(l,N,W)=>ns(l,N,lc(W)),Tt=(l,N,W)=>ns(l,N,Si(W)),Nn={generate:l=>{if(!i(l))throw new Error("cases must be an array");if(l.length===0)throw new Error("there must be at least one case");const N=[],W={};return q(l,(fe,Se)=>{const Be=ke(fe);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=fe[qe];if(W[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");N.push(qe),W[qe]=(...yt)=>{const Lt=yt.length;if(Lt!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+Lt);return{fold:(...fn)=>{if(fn.length!==l.length)throw new Error("Wrong number of arguments to fold. Expected "+l.length+", got "+fn.length);return fn[Se].apply(null,yt)},match:fn=>{const Rn=ke(fn);if(N.length!==Rn.length)throw new Error("Wrong number of arguments to match. Expected: "+N.join(",")+` +Input object: `+Bi(l.input),bn=(l,N)=>Ne(l,Ue(N,Si)),vn=(l,N)=>kt(l,N),Ln=Yl,gn=uf,Jn=l=>rt(N=>X(l,N)?aa.value(N):aa.error(`Unsupported value: "${N}", choose one of "${l.join(", ")}".`)),pn=l=>Ln(l,l,su(),Ut()),In=(l,N)=>Ln(l,l,su(),N),Ir=l=>In(l,le),Pr=l=>In(l,ne),Gr=(l,N)=>Ln(l,l,su(),Jn(N)),ro=l=>In(l,V),po=l=>In(l,ie),Wo=(l,N)=>Ln(l,l,Ec(),Ki(W=>al.serror("The field: "+l+" is forbidden. "+N))),si=(l,N)=>Ln(l,l,su(),Si(N)),Bo=(l,N)=>Ln(l,l,su(),It(N)),Go=(l,N)=>Ln(l,l,su(),lc(N)),Yo=l=>Ln(l,l,Ec(),Ut()),Wi=(l,N)=>Ln(l,l,Ec(),N),Ho=l=>Wi(l,le),jo=l=>Wi(l,ne),Yi=(l,N)=>Wi(l,Jn(N)),ai=l=>Wi(l,ie),Hi=(l,N)=>Wi(l,lc(N)),Ai=(l,N)=>Wi(l,Si(N)),es=(l,N)=>Wi(l,Os(N)),Ar=(l,N)=>Ln(l,l,Ls(N),Ut()),ns=(l,N,W)=>Ln(l,l,Ls(N),W),$s=(l,N)=>ns(l,N,le),Ts=(l,N)=>ns(l,N,ne),rl=(l,N,W)=>ns(l,N,Jn(W)),Hs=(l,N)=>ns(l,N,V),ys=(l,N)=>ns(l,N,ie),Yu=(l,N)=>ns(l,N,xe),mt=(l,N,W)=>ns(l,N,lc(W)),Tt=(l,N,W)=>ns(l,N,Si(W)),Nn={generate:l=>{if(!i(l))throw new Error("cases must be an array");if(l.length===0)throw new Error("there must be at least one case");const N=[],W={};return q(l,(fe,Se)=>{const Be=ke(fe);if(Be.length!==1)throw new Error("one and only one name per case");const qe=Be[0],ft=fe[qe];if(W[qe]!==void 0)throw new Error("duplicate key detected:"+qe);if(qe==="cata")throw new Error("cannot have a case named cata (sorry)");if(!i(ft))throw new Error("case arguments must be an array");N.push(qe),W[qe]=(...yt)=>{const Lt=yt.length;if(Lt!==ft.length)throw new Error("Wrong number of arguments to case "+qe+". Expected "+ft.length+" ("+ft+"), got "+Lt);return{fold:(...fn)=>{if(fn.length!==l.length)throw new Error("Wrong number of arguments to fold. Expected "+l.length+", got "+fn.length);return fn[Se].apply(null,yt)},match:fn=>{const Rn=ke(fn);if(N.length!==Rn.length)throw new Error("Wrong number of arguments to match. Expected: "+N.join(",")+` Actual: `+Rn.join(","));if(!_e(N,er=>X(Rn,er)))throw new Error("Not all branches were specified when using match. Specified: "+Rn.join(", ")+` -Required: `+N.join(", "));return fn[qe].apply(null,yt)},log:fn=>{console.log(fn,{constructors:N,constructor:qe,params:yt})}}}}),W}};Nn.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const yr=l=>{const N=[],W=[];return q(l,fe=>{fe.fold(Se=>{N.push(Se)},Se=>{W.push(Se)})}),{errors:N,values:W}},so=(l,N)=>{const W={};return We(l,(fe,Se)=>{X(N,Se)||(W[Se]=fe)}),W},No=(l,N)=>({[l]:N}),ui=l=>{const N={};return q(l,W=>{N[W.key]=W.value}),N},ga=(l,N)=>so(l,N),Sa=(l,N)=>No(l,N),ua=l=>ui(l),Cs=(l,N)=>l.length===0?aa.value(N):aa.value(ws(N,Fu.apply(void 0,l))),ul=l=>aa.error(ye(l)),Jc=(l,N)=>{const W=yr(l);return W.errors.length>0?ul(W.errors):Cs(W.values,N)},Is=l=>c(l)?l:D,Hc=(l,N,W)=>{let fe=l.dom;const Se=Is(W);for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe),qe=N(Be);if(qe.isSome())return qe;if(Se(Be))break}return I.none()},Nl=(l,N,W)=>{const fe=N(l),Se=Is(W);return fe.orThunk(()=>Se(l)?I.none():Hc(l,N,Se))},lh=(l,N)=>_o(l.element,N.event.target),r0={can:k,abort:D,run:v},ch=l=>{if(!pt(l,"can")&&!pt(l,"abort")&&!pt(l,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(l,null,2)+" does not have can, abort, or run!");return{...r0,...l}},gg=(l,N)=>(...W)=>se(l,(fe,Se)=>fe&&N(Se).apply(void 0,W),!0),Ip=(l,N)=>(...W)=>se(l,(fe,Se)=>fe||N(Se).apply(void 0,W),!1),X0=l=>c(l)?{can:k,abort:D,run:l}:l,Vh=l=>{const N=gg(l,Se=>Se.can),W=Ip(l,Se=>Se.abort);return{can:N,abort:W,run:(...Se)=>{q(l,Be=>{Be.run.apply(void 0,Se)})}}},Pu=x,Uh=Pu("touchstart"),ss=Pu("touchmove"),Gl=Pu("touchend"),Sf=Pu("touchcancel"),Nc=Pu("mousedown"),o0=Pu("mousemove"),i0=Pu("mouseout"),a0=Pu("mouseup"),wu=Pu("mouseover"),Dp=Pu("focusin"),Rm=Pu("focusout"),nm=Pu("keydown"),G0=Pu("keyup"),vg=Pu("input"),s0=Pu("change"),H1=Pu("click"),VO=Pu("transitioncancel"),rm=Pu("transitionend"),z_=Pu("transitionstart"),db=Pu("selectstart"),lu=l=>x("alloy."+l),ay={tap:lu("tap")},wh=lu("focus"),kf=lu("blur.post"),l0=lu("paste.post"),yp=lu("receive"),Bp=lu("execute"),hb=lu("focus.item"),Lm=ay.tap,Qd=lu("longpress"),Z1=lu("sandbox.close"),N_=lu("typeahead.cancel"),K0=lu("system.init"),sy=lu("system.touchmove"),yg=lu("system.touchend"),Im=lu("system.scroll"),Dm=lu("system.resize"),Oh=lu("system.attached"),zp=lu("system.detached"),J0=lu("system.dismissRequested"),F_=lu("system.repositionRequested"),q1=lu("focusmanager.shifted"),$_=lu("slotcontainer.visibility"),Dx=lu("system.external.element.scroll"),UO=lu("change.tab"),W1=lu("dismiss.tab"),e1=lu("highlight"),cu=lu("dehighlight"),Za=(l,N)=>{n1(l,l.element,N,{})},sa=(l,N,W)=>{n1(l,l.element,N,W)},Bm=l=>{Za(l,Bp())},t1=(l,N,W)=>{n1(l,N,W,{})},n1=(l,N,W,fe)=>{const Se={target:N,...fe};l.getSystem().triggerEvent(W,N,Se)},Bx=(l,N,W,fe)=>{const Se={...fe,target:N};l.getSystem().triggerEvent(W,N,Se)},zm=(l,N,W,fe)=>{l.getSystem().triggerEvent(W,N,fe.event)},Rl=l=>ua(l),zx=(l,N)=>({key:l,value:ch({abort:N})}),pb=(l,N)=>({key:l,value:ch({can:N})}),V_=l=>({key:l,value:ch({run:(N,W)=>{W.event.prevent()}})}),Lo=(l,N)=>({key:l,value:ch({run:N})}),Nm=(l,N,W)=>({key:l,value:ch({run:(fe,Se)=>{N.apply(void 0,[fe,Se].concat(W))}})}),D4=l=>N=>Lo(l,N),bg=l=>N=>({key:l,value:ch({run:(W,fe)=>{lh(W,fe)&&N(W,fe)}})}),B4=(l,N)=>Lo(l,(W,fe)=>{W.getSystem().getByUid(N).each(Se=>{zm(Se,Se.element,l,fe)})}),c0=(l,N,W)=>{const fe=N.partUids[W];return B4(l,fe)},mb=(l,N)=>Lo(l,(W,fe)=>{const Se=fe.event,Be=W.getSystem().getByDom(Se.target).getOrThunk(()=>Nl(Se.target,ft=>W.getSystem().getByDom(ft).toOptional(),D).getOr(W));N(W,Be,fe)}),od=l=>Lo(l,(N,W)=>{W.cut()}),U_=l=>Lo(l,(N,W)=>{W.stop()}),ly=(l,N)=>bg(l)(N),wc=bg(Oh()),xg=bg(zp()),Nx=bg(K0()),Sh=D4(Bp()),j_=(l,N,W)=>{const fe=W.toString(),Se=fe.indexOf(")")+1,Be=fe.indexOf("("),qe=fe.substring(Be+1,Se-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(qe.slice(0,1).concat(qe.slice(3)))}),l},gb=l=>re(l,N=>bt(N,"/*")?N.substring(0,N.length-2):N),Y1=(l,N)=>{const W=l.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(Be)}),l},cy=(l,N)=>{const W=N.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:gb(Be.slice(1))}),l},np=l=>({classes:y(l.classes)?[]:l.classes,attributes:y(l.attributes)?{}:l.attributes,styles:y(l.styles)?{}:l.styles}),jO=(l,N)=>({...l,attributes:{...l.attributes,...N.attributes},styles:{...l.styles,...N.styles},classes:l.classes.concat(N.classes)}),_g=(l,N,W)=>Sh(fe=>{W(fe,l,N)}),Q_=(l,N,W)=>Nx((fe,Se)=>{W(fe,l,N)}),wg=(l,N,W,fe,Se,Be)=>{const qe=Os(l),ft=Ai(N,[Ja("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},X1=(l,N,W,fe,Se,Be)=>{const qe=l,ft=Ai(N,[Wi("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},om=(l,N,W)=>j_((Se,...Be)=>{const qe=[Se].concat(Be);return Se.config({name:x(l)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+l+". Using API: "+W)},ft=>{const yt=Array.prototype.slice.call(qe,1);return N.apply(void 0,[Se,ft.config,ft.state].concat(yt))})},W,N),H_=l=>({key:l,value:void 0}),QO=(l,N,W,fe,Se,Be,qe)=>{const ft=fn=>pt(fn,W)?fn[W]():I.none(),yt=Ue(Se,(fn,Rn)=>om(W,fn,Rn)),Ht={...Ue(Be,(fn,Rn)=>Y1(fn,Rn)),...yt,revoke:T(H_,W),config:fn=>{const Rn=Xt(W+"-config",l,fn);return{key:W,value:{config:Rn,me:Ht,configAsRaw:Uc(()=>Xt(W+"-config",l,fn)),initialConfig:fn,state:qe}}},schema:x(N),exhibit:(fn,Rn)=>ln(ft(fn),Ge(fe,"exhibit"),(Bn,er)=>er(Rn,Bn.config,Bn.state)).getOrThunk(()=>np({})),name:x(W),handlers:fn=>ft(fn).map(Rn=>Ge(fe,"events").getOr(()=>({}))(Rn.config,Rn.state)).getOr({})};return Ht},uh={init:()=>Hd({readState:x("No State required")})},Hd=l=>l,ei=l=>ua(l),Fx=Os([pn("fields"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),id=l=>{const N=Xt("Creating behaviour: "+l.name,Fx,l);return wg(N.fields,N.name,N.active,N.apis,N.extra,N.state)},$x=Os([pn("branchKey"),pn("branches"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),HO=l=>{const N=Xt("Creating behaviour: "+l.name,$x,l);return X1(bn(N.branchKey,N.branches),N.name,N.active,N.apis,N.extra,N.state)},cc=x(void 0),Xu=(l,N)=>{const W=Nr(l,N);return W===void 0||W===""?[]:W.split(" ")},Vx=(l,N,W)=>{const Se=Xu(l,N).concat([W]);return Cr(l,N,Se.join(" ")),!0},ZO=(l,N,W)=>{const fe=me(Xu(l,N),Se=>Se!==W);return fe.length>0?Cr(l,N,fe.join(" ")):Qt(l,N),!1},u0=l=>l.dom.classList!==void 0,vb=l=>Xu(l,"class"),Fm=(l,N)=>Vx(l,"class",N),Z_=(l,N)=>ZO(l,"class",N),q_=(l,N)=>X(vb(l),N)?Z_(l,N):Fm(l,N),uc=(l,N)=>{u0(l)?l.dom.classList.add(N):Fm(l,N)},uy=l=>{(u0(l)?l.dom.classList:vb(l)).length===0&&Qt(l,"class")},Zc=(l,N)=>{u0(l)?l.dom.classList.remove(N):Z_(l,N),uy(l)},qO=(l,N)=>{const W=u0(l)?l.dom.classList.toggle(N):q_(l,N);return uy(l),W},rp=(l,N)=>u0(l)&&l.dom.classList.contains(N),Og=(l,N)=>{q(N,W=>{uc(l,W)})},Oc=(l,N)=>{q(N,W=>{Zc(l,W)})},WO=(l,N)=>{q(N,W=>{qO(l,W)})},YO=(l,N)=>_e(N,W=>rp(l,W)),Ux=l=>{const N=l.dom.classList,W=new Array(N.length);for(let fe=0;feu0(l)?Ux(l):vb(l),ff=(l,N,W,fe,Se)=>{const Be=qe=>qe+"px";return{position:l,left:N.map(Be),top:W.map(Be),right:fe.map(Be),bottom:Se.map(Be)}},fh=l=>({...l,position:I.some(l.position)}),fy=(l,N)=>{mi(l,fh(N))},jh=l=>(St(Ia(l,"position"),"fixed")?I.none():oo(l)).orThunk(()=>{const fe=Nt.fromTag("span");return Dr(l).bind(Se=>{Bc(Se,fe);const Be=oo(fe);return gs(fe),Be})}),r1=l=>jh(l).map(Tc).getOrThunk(()=>Qs(0,0)),G1=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeOutClass),uc(W,N.fadeInClass),N.onShow(l)},Sg=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeInClass),uc(W,N.fadeOutClass),N.onHide(l)},dy=(l,N)=>l.yN.y,K1=(l,N)=>l.y>=N.y,o1=(l,N)=>l.bottom<=N.bottom,kg=(l,N,W)=>({location:"top",leftX:N,topY:W.bounds.y-l.y}),J1=(l,N,W)=>({location:"bottom",leftX:N,bottomY:l.bottom-W.bounds.bottom}),ev=l=>l.box.x-l.win.x,z4=(l,N,W)=>{const fe=N.win,Se=N.box,Be=ev(N);return Oe(l,qe=>{switch(qe){case"bottom":return o1(Se,W.bounds)?I.none():I.some(J1(fe,Be,W));case"top":return K1(Se,W.bounds)?I.none():I.some(kg(fe,Be,W));default:return I.none()}}).getOr({location:"no-dock"})},W_=(l,N,W)=>_e(l,fe=>{switch(fe){case"bottom":return o1(N,W.bounds);case"top":return K1(N,W.bounds)}}),tv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.bounds.y),fe=>fe.scrollElmTop+(l.bounds.y-fe.currentScrollTop));return Qs(l.bounds.x,W)},nv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.y),fe=>l.y+fe.currentScrollTop-fe.scrollElmTop);return Qs(l.x,W)},jx=(l,N,W)=>W.getInitialPos().map(fe=>{const Se=tv(fe,N);return{box:vs(Se.left,Se.top,_s(l),il(l)),location:fe.location}}),hy=(l,N,W,fe,Se)=>{const Be=nv(N,W),qe=vs(Be.left,Be.top,N.width,N.height);fe.setInitialPos({style:Ds(l),position:Di(l,"position")||"static",bounds:qe,location:Se.location})},Y_=(l,N,W,fe,Se)=>{fe.getInitialPos().fold(()=>hy(l,N,W,fe,Se),()=>v)},X_=(l,N,W)=>W.getInitialPos().bind(fe=>{var Se;switch(W.clearInitialPos(),fe.position){case"static":return I.some({morph:"static"});case"absolute":const Be=jh(l).getOr(Lr()),qe=cl(Be),ft=(Se=Be.dom.scrollTop)!==null&&Se!==void 0?Se:0;return I.some({morph:"absolute",positionCss:ff("absolute",Ge(fe.style,"left").map(yt=>N.x-qe.x),Ge(fe.style,"top").map(yt=>N.y-qe.y+ft),Ge(fe.style,"right").map(yt=>qe.right-N.right),Ge(fe.style,"bottom").map(yt=>qe.bottom-N.bottom))});default:return I.none()}}),G_=(l,N,W)=>jx(l,N,W).filter(({box:fe})=>W_(W.getModes(),fe,N)).bind(({box:fe})=>X_(l,fe,W)),py=l=>{switch(l.location){case"top":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.some(l.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.none(),I.none(),I.some(l.bottomY))});default:return I.none()}},yb=(l,N,W)=>{const fe=cl(l),Se=ts(),Be=z4(W.getModes(),{win:Se,box:fe},N);return Be.location==="top"||Be.location==="bottom"?(hy(l,fe,N,W,Be),py(Be)):I.none()},bp=(l,N,W)=>G_(l,N,W).orThunk(()=>N.optScrollEnv.bind(fe=>jx(l,N,W)).bind(({box:fe,location:Se})=>{const Be=ts(),qe=ev({win:Be,box:fe}),ft=Se==="top"?kg(Be,qe,N):J1(Be,qe,N);return py(ft)})),i1=(l,N,W)=>{const fe=l.element;return St(Ia(fe,"position"),"fixed")?bp(fe,N,W):yb(fe,N,W)},Tg=(l,N,W)=>{const fe=l.element;return jx(fe,N,W).bind(({box:Se})=>X_(fe,Se,W))},im=(l,N,W,fe)=>{const Se=cl(l),Be=ts(),qe=ev({win:Be,box:Se}),ft=fe(Be,qe,N);return ft.location==="bottom"||ft.location==="top"?(Y_(l,Se,N,W,ft),py(ft)):I.none()},Qh=(l,N,W)=>{W.setDocked(!1),q(["left","right","top","bottom","position"],fe=>zi(l.element,fe)),N.onUndocked(l)},rv=(l,N,W,fe)=>{const Se=fe.position==="fixed";W.setDocked(Se),fy(l.element,fe),(Se?N.onDocked:N.onUndocked)(l)},ov=(l,N,W,fe,Se=!1)=>{N.contextual.each(Be=>{Be.lazyContext(l).each(qe=>{const ft=dy(qe,fe.bounds);ft!==W.isVisible()&&(W.setVisible(ft),Se&&!ft?(Og(l.element,[Be.fadeOutClass]),Be.onHide(l)):(ft?G1:Sg)(l,Be))})})},Od=(l,N,W,fe,Se)=>{ov(l,N,W,fe,!0),rv(l,N,W,Se.positionCss)},Cg=(l,N,W,fe,Se)=>{switch(Se.morph){case"static":return Qh(l,N,W);case"absolute":return rv(l,N,W,Se.positionCss);case"fixed":return Od(l,N,W,fe,Se)}},Qx=(l,N,W)=>{const fe=N.lazyViewport(l);ov(l,N,W,fe),i1(l,fe,W).each(Se=>{Cg(l,N,W,fe,Se)})},kh=(l,N,W)=>{const fe=l.element;W.setDocked(!1);const Se=N.lazyViewport(l);Tg(l,Se,W).each(Be=>{switch(Be.morph){case"static":{Qh(l,N,W);break}case"absolute":{rv(l,N,W,Be.positionCss);break}}}),W.setVisible(!0),N.contextual.each(Be=>{Oc(fe,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(l)}),f0(l,N,W)},f0=(l,N,W)=>{l.getSystem().isConnected()&&Qx(l,N,W)},iv=(l,N,W)=>{W.isDocked()&&kh(l,N,W)},K_=l=>(N,W,fe)=>{const Se=W.lazyViewport(N);im(N.element,Se,fe,l).each(qe=>{Od(N,W,fe,Se,qe)})},bb=K_(kg),Hx=K_(J1);var qx=Object.freeze({__proto__:null,refresh:f0,reset:iv,isDocked:(l,N,W)=>W.isDocked(),getModes:(l,N,W)=>W.getModes(),setModes:(l,N,W,fe)=>W.setModes(fe),forceDockToTop:bb,forceDockToBottom:Hx}),$m=Object.freeze({__proto__:null,events:(l,N)=>Rl([ly(rm(),(W,fe)=>{l.contextual.each(Se=>{rp(W.element,Se.transitionClass)&&(Oc(W.element,[Se.transitionClass,Se.fadeInClass]),(N.isVisible()?Se.onShown:Se.onHidden)(W)),fe.stop()})}),Lo(Im(),(W,fe)=>{f0(W,l,N)}),Lo(Dx(),(W,fe)=>{f0(W,l,N)}),Lo(Dm(),(W,fe)=>{iv(W,l,N)})])});const Th=(l,N)=>{const fe=(N||document).createElement("div");return fe.innerHTML=l,Do(Nt.fromDom(fe))},Np=l=>l.dom.innerHTML,d0=(l,N)=>{const fe=Mo(l).dom,Se=Nt.fromDom(fe.createDocumentFragment()),Be=Th(N,fe);xd(Se,Be),vc(l),Bc(l,Se)},av=l=>{const N=Nt.fromTag("div"),W=Nt.fromDom(l.dom.cloneNode(!0));return Bc(N,W),Np(N)},J_=(l,N)=>Nt.fromDom(l.dom.cloneNode(N)),my=l=>J_(l,!1),xb=l=>J_(l,!0),ew=l=>{if(ir(l))return"#shadow-root";{const N=my(l);return av(N)}},a1=l=>ew(l),sv="unknown";var xp;(function(l){l[l.STOP=0]="STOP",l[l.NORMAL=1]="NORMAL",l[l.LOGGING=2]="LOGGING"})(xp||(xp={}));const _b=wi({}),Ou=(l,N)=>{const W=[],fe=new Date().getTime();return{logEventCut:(Se,Be,qe)=>{W.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(Se,Be,qe)=>{W.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(Se,Be,qe)=>{W.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(Se,Be)=>{W.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(Se,Be,qe)=>{W.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const Se=new Date().getTime();X(["mousemove","mouseover","mouseout",K0()],l)||console.log(l,{event:l,time:Se-fe,target:N.dom,sequence:re(W,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+a1(Be.target)+")":Be.outcome)})}}},Wx=(l,N,W)=>{switch(Ge(_b.get(),l).orThunk(()=>{const Se=ke(_b.get());return Oe(Se,Be=>l.indexOf(Be)>-1?I.some(_b.get()[Be]):I.none())}).getOr(xp.NORMAL)){case xp.NORMAL:return W(Vm());case xp.LOGGING:{const Se=Ou(l,N),Be=W(Se);return Se.write(),Be}case xp.STOP:return!0}},Sd=["alloy/data/Fields","alloy/debugging/Debugging"],XO=()=>{const l=new Error;if(l.stack!==void 0){const N=l.stack.split(` -`);return ce(N,W=>W.indexOf("alloy")>0&&!te(Sd,fe=>W.indexOf(fe)>-1)).getOr(sv)}else return sv},wb={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},am=(l,N,W)=>Wx(l,N,W),Vm=x(wb),_p=x([pn("menu"),pn("selectedMenu")]),op=x([pn("item"),pn("selectedItem")]);x(Si(op().concat(_p())));const GO=x(Si(op())),Ob=si("initSize",[pn("numColumns"),pn("numRows")]),s1=()=>In("markers",GO()),Um=()=>si("markers",[pn("backgroundMenu")].concat(_p()).concat(op())),h0=l=>si("markers",re(l,pn)),p0=(l,N,W)=>(XO(),Ln(N,N,W,rt(fe=>aa.value((...Se)=>fe.apply(void 0,Se))))),Ss=l=>p0("onHandler",l,Ls(v)),kd=l=>p0("onKeyboardHandler",l,Ls(I.none)),Ch=l=>p0("onHandler",l,su()),Sb=l=>p0("onKeyboardHandler",l,su()),Sl=(l,N)=>gn(l,x(N)),l1=l=>gn(l,R),Yx=x(Ob);var N4=[Ai("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),po("lazyContext"),Ss("onShow"),Ss("onShown"),Ss("onHide"),Ss("onHidden")]),ys("lazyViewport",()=>({bounds:ts(),optScrollEnv:I.none()})),mt("modes",["top","bottom"],ne),Ss("onDocked"),Ss("onUndocked")],lv=Object.freeze({__proto__:null,init:l=>{const N=wi(!1),W=wi(!0),fe=ds(),Se=wi(l.modes),Be=()=>`docked: ${N.get()}, visible: ${W.get()}, modes: ${Se.get().join(",")}`;return Hd({isDocked:N.get,setDocked:N.set,getInitialPos:fe.get,setInitialPos:fe.set,clearInitialPos:fe.clear,isVisible:W.get,setVisible:W.set,getModes:Se.get,setModes:Se.set,readState:Be})}});const fc=id({fields:N4,name:"docking",active:$m,apis:qx,state:lv}),cv=(l,N,W)=>_o(N,l.element)&&!_o(N,W),kb=Rl([pb(wh(),(l,N)=>{const W=N.event,fe=W.originator,Se=W.target;return cv(l,fe,Se)?(console.warn(wh()+` did not get interpreted by the desired target. +Required: `+N.join(", "));return fn[qe].apply(null,yt)},log:fn=>{console.log(fn,{constructors:N,constructor:qe,params:yt})}}}}),W}};Nn.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const yr=l=>{const N=[],W=[];return q(l,fe=>{fe.fold(Se=>{N.push(Se)},Se=>{W.push(Se)})}),{errors:N,values:W}},so=(l,N)=>{const W={};return We(l,(fe,Se)=>{X(N,Se)||(W[Se]=fe)}),W},No=(l,N)=>({[l]:N}),ui=l=>{const N={};return q(l,W=>{N[W.key]=W.value}),N},ga=(l,N)=>so(l,N),Sa=(l,N)=>No(l,N),ua=l=>ui(l),Cs=(l,N)=>l.length===0?aa.value(N):aa.value(ws(N,Fu.apply(void 0,l))),ul=l=>aa.error(ye(l)),Jc=(l,N)=>{const W=yr(l);return W.errors.length>0?ul(W.errors):Cs(W.values,N)},Is=l=>c(l)?l:D,Hc=(l,N,W)=>{let fe=l.dom;const Se=Is(W);for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe),qe=N(Be);if(qe.isSome())return qe;if(Se(Be))break}return I.none()},Nl=(l,N,W)=>{const fe=N(l),Se=Is(W);return fe.orThunk(()=>Se(l)?I.none():Hc(l,N,Se))},lh=(l,N)=>_o(l.element,N.event.target),r0={can:k,abort:D,run:v},ch=l=>{if(!pt(l,"can")&&!pt(l,"abort")&&!pt(l,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(l,null,2)+" does not have can, abort, or run!");return{...r0,...l}},gg=(l,N)=>(...W)=>se(l,(fe,Se)=>fe&&N(Se).apply(void 0,W),!0),Ip=(l,N)=>(...W)=>se(l,(fe,Se)=>fe||N(Se).apply(void 0,W),!1),X0=l=>c(l)?{can:k,abort:D,run:l}:l,Vh=l=>{const N=gg(l,Se=>Se.can),W=Ip(l,Se=>Se.abort);return{can:N,abort:W,run:(...Se)=>{q(l,Be=>{Be.run.apply(void 0,Se)})}}},Pu=x,Uh=Pu("touchstart"),ss=Pu("touchmove"),Gl=Pu("touchend"),Sf=Pu("touchcancel"),Nc=Pu("mousedown"),o0=Pu("mousemove"),i0=Pu("mouseout"),a0=Pu("mouseup"),wu=Pu("mouseover"),Dp=Pu("focusin"),Rm=Pu("focusout"),nm=Pu("keydown"),G0=Pu("keyup"),vg=Pu("input"),s0=Pu("change"),H1=Pu("click"),VO=Pu("transitioncancel"),rm=Pu("transitionend"),z_=Pu("transitionstart"),db=Pu("selectstart"),lu=l=>x("alloy."+l),sy={tap:lu("tap")},Oh=lu("focus"),kf=lu("blur.post"),l0=lu("paste.post"),yp=lu("receive"),Bp=lu("execute"),hb=lu("focus.item"),Lm=sy.tap,Qd=lu("longpress"),Z1=lu("sandbox.close"),N_=lu("typeahead.cancel"),K0=lu("system.init"),ly=lu("system.touchmove"),yg=lu("system.touchend"),Im=lu("system.scroll"),Dm=lu("system.resize"),Sh=lu("system.attached"),zp=lu("system.detached"),J0=lu("system.dismissRequested"),F_=lu("system.repositionRequested"),q1=lu("focusmanager.shifted"),$_=lu("slotcontainer.visibility"),Dx=lu("system.external.element.scroll"),UO=lu("change.tab"),W1=lu("dismiss.tab"),e1=lu("highlight"),cu=lu("dehighlight"),Za=(l,N)=>{n1(l,l.element,N,{})},sa=(l,N,W)=>{n1(l,l.element,N,W)},Bm=l=>{Za(l,Bp())},t1=(l,N,W)=>{n1(l,N,W,{})},n1=(l,N,W,fe)=>{const Se={target:N,...fe};l.getSystem().triggerEvent(W,N,Se)},Bx=(l,N,W,fe)=>{const Se={...fe,target:N};l.getSystem().triggerEvent(W,N,Se)},zm=(l,N,W,fe)=>{l.getSystem().triggerEvent(W,N,fe.event)},Rl=l=>ua(l),zx=(l,N)=>({key:l,value:ch({abort:N})}),pb=(l,N)=>({key:l,value:ch({can:N})}),V_=l=>({key:l,value:ch({run:(N,W)=>{W.event.prevent()}})}),Lo=(l,N)=>({key:l,value:ch({run:N})}),Nm=(l,N,W)=>({key:l,value:ch({run:(fe,Se)=>{N.apply(void 0,[fe,Se].concat(W))}})}),D4=l=>N=>Lo(l,N),bg=l=>N=>({key:l,value:ch({run:(W,fe)=>{lh(W,fe)&&N(W,fe)}})}),B4=(l,N)=>Lo(l,(W,fe)=>{W.getSystem().getByUid(N).each(Se=>{zm(Se,Se.element,l,fe)})}),c0=(l,N,W)=>{const fe=N.partUids[W];return B4(l,fe)},mb=(l,N)=>Lo(l,(W,fe)=>{const Se=fe.event,Be=W.getSystem().getByDom(Se.target).getOrThunk(()=>Nl(Se.target,ft=>W.getSystem().getByDom(ft).toOptional(),D).getOr(W));N(W,Be,fe)}),od=l=>Lo(l,(N,W)=>{W.cut()}),U_=l=>Lo(l,(N,W)=>{W.stop()}),cy=(l,N)=>bg(l)(N),wc=bg(Sh()),xg=bg(zp()),Nx=bg(K0()),kh=D4(Bp()),j_=(l,N,W)=>{const fe=W.toString(),Se=fe.indexOf(")")+1,Be=fe.indexOf("("),qe=fe.substring(Be+1,Se-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(qe.slice(0,1).concat(qe.slice(3)))}),l},gb=l=>re(l,N=>bt(N,"/*")?N.substring(0,N.length-2):N),Y1=(l,N)=>{const W=l.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:N,parameters:gb(Be)}),l},uy=(l,N)=>{const W=N.toString(),fe=W.indexOf(")")+1,Se=W.indexOf("("),Be=W.substring(Se+1,fe-1).split(/,\s*/);return l.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:gb(Be.slice(1))}),l},np=l=>({classes:y(l.classes)?[]:l.classes,attributes:y(l.attributes)?{}:l.attributes,styles:y(l.styles)?{}:l.styles}),jO=(l,N)=>({...l,attributes:{...l.attributes,...N.attributes},styles:{...l.styles,...N.styles},classes:l.classes.concat(N.classes)}),_g=(l,N,W)=>kh(fe=>{W(fe,l,N)}),Q_=(l,N,W)=>Nx((fe,Se)=>{W(fe,l,N)}),wg=(l,N,W,fe,Se,Be)=>{const qe=Os(l),ft=Ai(N,[es("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},X1=(l,N,W,fe,Se,Be)=>{const qe=l,ft=Ai(N,[Wi("config",l)]);return QO(qe,ft,N,W,fe,Se,Be)},om=(l,N,W)=>j_((Se,...Be)=>{const qe=[Se].concat(Be);return Se.config({name:x(l)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+l+". Using API: "+W)},ft=>{const yt=Array.prototype.slice.call(qe,1);return N.apply(void 0,[Se,ft.config,ft.state].concat(yt))})},W,N),H_=l=>({key:l,value:void 0}),QO=(l,N,W,fe,Se,Be,qe)=>{const ft=fn=>pt(fn,W)?fn[W]():I.none(),yt=Ue(Se,(fn,Rn)=>om(W,fn,Rn)),Ht={...Ue(Be,(fn,Rn)=>Y1(fn,Rn)),...yt,revoke:T(H_,W),config:fn=>{const Rn=Xt(W+"-config",l,fn);return{key:W,value:{config:Rn,me:Ht,configAsRaw:Uc(()=>Xt(W+"-config",l,fn)),initialConfig:fn,state:qe}}},schema:x(N),exhibit:(fn,Rn)=>ln(ft(fn),Ge(fe,"exhibit"),(Bn,er)=>er(Rn,Bn.config,Bn.state)).getOrThunk(()=>np({})),name:x(W),handlers:fn=>ft(fn).map(Rn=>Ge(fe,"events").getOr(()=>({}))(Rn.config,Rn.state)).getOr({})};return Ht},uh={init:()=>Hd({readState:x("No State required")})},Hd=l=>l,ei=l=>ua(l),Fx=Os([pn("fields"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),id=l=>{const N=Xt("Creating behaviour: "+l.name,Fx,l);return wg(N.fields,N.name,N.active,N.apis,N.extra,N.state)},$x=Os([pn("branchKey"),pn("branches"),pn("name"),Ar("active",{}),Ar("apis",{}),Ar("state",uh),Ar("extra",{})]),HO=l=>{const N=Xt("Creating behaviour: "+l.name,$x,l);return X1(bn(N.branchKey,N.branches),N.name,N.active,N.apis,N.extra,N.state)},cc=x(void 0),Xu=(l,N)=>{const W=Nr(l,N);return W===void 0||W===""?[]:W.split(" ")},Vx=(l,N,W)=>{const Se=Xu(l,N).concat([W]);return Cr(l,N,Se.join(" ")),!0},ZO=(l,N,W)=>{const fe=me(Xu(l,N),Se=>Se!==W);return fe.length>0?Cr(l,N,fe.join(" ")):Qt(l,N),!1},u0=l=>l.dom.classList!==void 0,vb=l=>Xu(l,"class"),Fm=(l,N)=>Vx(l,"class",N),Z_=(l,N)=>ZO(l,"class",N),q_=(l,N)=>X(vb(l),N)?Z_(l,N):Fm(l,N),uc=(l,N)=>{u0(l)?l.dom.classList.add(N):Fm(l,N)},fy=l=>{(u0(l)?l.dom.classList:vb(l)).length===0&&Qt(l,"class")},Zc=(l,N)=>{u0(l)?l.dom.classList.remove(N):Z_(l,N),fy(l)},qO=(l,N)=>{const W=u0(l)?l.dom.classList.toggle(N):q_(l,N);return fy(l),W},rp=(l,N)=>u0(l)&&l.dom.classList.contains(N),Og=(l,N)=>{q(N,W=>{uc(l,W)})},Oc=(l,N)=>{q(N,W=>{Zc(l,W)})},WO=(l,N)=>{q(N,W=>{qO(l,W)})},YO=(l,N)=>_e(N,W=>rp(l,W)),Ux=l=>{const N=l.dom.classList,W=new Array(N.length);for(let fe=0;feu0(l)?Ux(l):vb(l),ff=(l,N,W,fe,Se)=>{const Be=qe=>qe+"px";return{position:l,left:N.map(Be),top:W.map(Be),right:fe.map(Be),bottom:Se.map(Be)}},fh=l=>({...l,position:I.some(l.position)}),dy=(l,N)=>{mi(l,fh(N))},jh=l=>(St(Ia(l,"position"),"fixed")?I.none():oo(l)).orThunk(()=>{const fe=Nt.fromTag("span");return Dr(l).bind(Se=>{Bc(Se,fe);const Be=oo(fe);return gs(fe),Be})}),r1=l=>jh(l).map(Tc).getOrThunk(()=>Qs(0,0)),G1=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeOutClass),uc(W,N.fadeInClass),N.onShow(l)},Sg=(l,N)=>{const W=l.element;uc(W,N.transitionClass),Zc(W,N.fadeInClass),uc(W,N.fadeOutClass),N.onHide(l)},hy=(l,N)=>l.yN.y,K1=(l,N)=>l.y>=N.y,o1=(l,N)=>l.bottom<=N.bottom,kg=(l,N,W)=>({location:"top",leftX:N,topY:W.bounds.y-l.y}),J1=(l,N,W)=>({location:"bottom",leftX:N,bottomY:l.bottom-W.bounds.bottom}),ev=l=>l.box.x-l.win.x,z4=(l,N,W)=>{const fe=N.win,Se=N.box,Be=ev(N);return Oe(l,qe=>{switch(qe){case"bottom":return o1(Se,W.bounds)?I.none():I.some(J1(fe,Be,W));case"top":return K1(Se,W.bounds)?I.none():I.some(kg(fe,Be,W));default:return I.none()}}).getOr({location:"no-dock"})},W_=(l,N,W)=>_e(l,fe=>{switch(fe){case"bottom":return o1(N,W.bounds);case"top":return K1(N,W.bounds)}}),tv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.bounds.y),fe=>fe.scrollElmTop+(l.bounds.y-fe.currentScrollTop));return Qs(l.bounds.x,W)},nv=(l,N)=>{const W=N.optScrollEnv.fold(x(l.y),fe=>l.y+fe.currentScrollTop-fe.scrollElmTop);return Qs(l.x,W)},jx=(l,N,W)=>W.getInitialPos().map(fe=>{const Se=tv(fe,N);return{box:vs(Se.left,Se.top,_s(l),il(l)),location:fe.location}}),py=(l,N,W,fe,Se)=>{const Be=nv(N,W),qe=vs(Be.left,Be.top,N.width,N.height);fe.setInitialPos({style:Ds(l),position:Di(l,"position")||"static",bounds:qe,location:Se.location})},Y_=(l,N,W,fe,Se)=>{fe.getInitialPos().fold(()=>py(l,N,W,fe,Se),()=>v)},X_=(l,N,W)=>W.getInitialPos().bind(fe=>{var Se;switch(W.clearInitialPos(),fe.position){case"static":return I.some({morph:"static"});case"absolute":const Be=jh(l).getOr(Lr()),qe=cl(Be),ft=(Se=Be.dom.scrollTop)!==null&&Se!==void 0?Se:0;return I.some({morph:"absolute",positionCss:ff("absolute",Ge(fe.style,"left").map(yt=>N.x-qe.x),Ge(fe.style,"top").map(yt=>N.y-qe.y+ft),Ge(fe.style,"right").map(yt=>qe.right-N.right),Ge(fe.style,"bottom").map(yt=>qe.bottom-N.bottom))});default:return I.none()}}),G_=(l,N,W)=>jx(l,N,W).filter(({box:fe})=>W_(W.getModes(),fe,N)).bind(({box:fe})=>X_(l,fe,W)),my=l=>{switch(l.location){case"top":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.some(l.topY),I.none(),I.none())});case"bottom":return I.some({morph:"fixed",positionCss:ff("fixed",I.some(l.leftX),I.none(),I.none(),I.some(l.bottomY))});default:return I.none()}},yb=(l,N,W)=>{const fe=cl(l),Se=ts(),Be=z4(W.getModes(),{win:Se,box:fe},N);return Be.location==="top"||Be.location==="bottom"?(py(l,fe,N,W,Be),my(Be)):I.none()},bp=(l,N,W)=>G_(l,N,W).orThunk(()=>N.optScrollEnv.bind(fe=>jx(l,N,W)).bind(({box:fe,location:Se})=>{const Be=ts(),qe=ev({win:Be,box:fe}),ft=Se==="top"?kg(Be,qe,N):J1(Be,qe,N);return my(ft)})),i1=(l,N,W)=>{const fe=l.element;return St(Ia(fe,"position"),"fixed")?bp(fe,N,W):yb(fe,N,W)},Tg=(l,N,W)=>{const fe=l.element;return jx(fe,N,W).bind(({box:Se})=>X_(fe,Se,W))},im=(l,N,W,fe)=>{const Se=cl(l),Be=ts(),qe=ev({win:Be,box:Se}),ft=fe(Be,qe,N);return ft.location==="bottom"||ft.location==="top"?(Y_(l,Se,N,W,ft),my(ft)):I.none()},Qh=(l,N,W)=>{W.setDocked(!1),q(["left","right","top","bottom","position"],fe=>zi(l.element,fe)),N.onUndocked(l)},rv=(l,N,W,fe)=>{const Se=fe.position==="fixed";W.setDocked(Se),dy(l.element,fe),(Se?N.onDocked:N.onUndocked)(l)},ov=(l,N,W,fe,Se=!1)=>{N.contextual.each(Be=>{Be.lazyContext(l).each(qe=>{const ft=hy(qe,fe.bounds);ft!==W.isVisible()&&(W.setVisible(ft),Se&&!ft?(Og(l.element,[Be.fadeOutClass]),Be.onHide(l)):(ft?G1:Sg)(l,Be))})})},Od=(l,N,W,fe,Se)=>{ov(l,N,W,fe,!0),rv(l,N,W,Se.positionCss)},Cg=(l,N,W,fe,Se)=>{switch(Se.morph){case"static":return Qh(l,N,W);case"absolute":return rv(l,N,W,Se.positionCss);case"fixed":return Od(l,N,W,fe,Se)}},Qx=(l,N,W)=>{const fe=N.lazyViewport(l);ov(l,N,W,fe),i1(l,fe,W).each(Se=>{Cg(l,N,W,fe,Se)})},Th=(l,N,W)=>{const fe=l.element;W.setDocked(!1);const Se=N.lazyViewport(l);Tg(l,Se,W).each(Be=>{switch(Be.morph){case"static":{Qh(l,N,W);break}case"absolute":{rv(l,N,W,Be.positionCss);break}}}),W.setVisible(!0),N.contextual.each(Be=>{Oc(fe,[Be.fadeInClass,Be.fadeOutClass,Be.transitionClass]),Be.onShow(l)}),f0(l,N,W)},f0=(l,N,W)=>{l.getSystem().isConnected()&&Qx(l,N,W)},iv=(l,N,W)=>{W.isDocked()&&Th(l,N,W)},K_=l=>(N,W,fe)=>{const Se=W.lazyViewport(N);im(N.element,Se,fe,l).each(qe=>{Od(N,W,fe,Se,qe)})},bb=K_(kg),Hx=K_(J1);var qx=Object.freeze({__proto__:null,refresh:f0,reset:iv,isDocked:(l,N,W)=>W.isDocked(),getModes:(l,N,W)=>W.getModes(),setModes:(l,N,W,fe)=>W.setModes(fe),forceDockToTop:bb,forceDockToBottom:Hx}),$m=Object.freeze({__proto__:null,events:(l,N)=>Rl([cy(rm(),(W,fe)=>{l.contextual.each(Se=>{rp(W.element,Se.transitionClass)&&(Oc(W.element,[Se.transitionClass,Se.fadeInClass]),(N.isVisible()?Se.onShown:Se.onHidden)(W)),fe.stop()})}),Lo(Im(),(W,fe)=>{f0(W,l,N)}),Lo(Dx(),(W,fe)=>{f0(W,l,N)}),Lo(Dm(),(W,fe)=>{iv(W,l,N)})])});const Ch=(l,N)=>{const fe=(N||document).createElement("div");return fe.innerHTML=l,Do(Nt.fromDom(fe))},Np=l=>l.dom.innerHTML,d0=(l,N)=>{const fe=Mo(l).dom,Se=Nt.fromDom(fe.createDocumentFragment()),Be=Ch(N,fe);xd(Se,Be),vc(l),Bc(l,Se)},av=l=>{const N=Nt.fromTag("div"),W=Nt.fromDom(l.dom.cloneNode(!0));return Bc(N,W),Np(N)},J_=(l,N)=>Nt.fromDom(l.dom.cloneNode(N)),gy=l=>J_(l,!1),xb=l=>J_(l,!0),ew=l=>{if(ir(l))return"#shadow-root";{const N=gy(l);return av(N)}},a1=l=>ew(l),sv="unknown";var xp;(function(l){l[l.STOP=0]="STOP",l[l.NORMAL=1]="NORMAL",l[l.LOGGING=2]="LOGGING"})(xp||(xp={}));const _b=wi({}),Ou=(l,N)=>{const W=[],fe=new Date().getTime();return{logEventCut:(Se,Be,qe)=>{W.push({outcome:"cut",target:Be,purpose:qe})},logEventStopped:(Se,Be,qe)=>{W.push({outcome:"stopped",target:Be,purpose:qe})},logNoParent:(Se,Be,qe)=>{W.push({outcome:"no-parent",target:Be,purpose:qe})},logEventNoHandlers:(Se,Be)=>{W.push({outcome:"no-handlers-left",target:Be})},logEventResponse:(Se,Be,qe)=>{W.push({outcome:"response",purpose:qe,target:Be})},write:()=>{const Se=new Date().getTime();X(["mousemove","mouseover","mouseout",K0()],l)||console.log(l,{event:l,time:Se-fe,target:N.dom,sequence:re(W,Be=>X(["cut","stopped","response"],Be.outcome)?"{"+Be.purpose+"} "+Be.outcome+" at ("+a1(Be.target)+")":Be.outcome)})}}},Wx=(l,N,W)=>{switch(Ge(_b.get(),l).orThunk(()=>{const Se=ke(_b.get());return Oe(Se,Be=>l.indexOf(Be)>-1?I.some(_b.get()[Be]):I.none())}).getOr(xp.NORMAL)){case xp.NORMAL:return W(Vm());case xp.LOGGING:{const Se=Ou(l,N),Be=W(Se);return Se.write(),Be}case xp.STOP:return!0}},Sd=["alloy/data/Fields","alloy/debugging/Debugging"],XO=()=>{const l=new Error;if(l.stack!==void 0){const N=l.stack.split(` +`);return ce(N,W=>W.indexOf("alloy")>0&&!te(Sd,fe=>W.indexOf(fe)>-1)).getOr(sv)}else return sv},wb={logEventCut:v,logEventStopped:v,logNoParent:v,logEventNoHandlers:v,logEventResponse:v,write:v},am=(l,N,W)=>Wx(l,N,W),Vm=x(wb),_p=x([pn("menu"),pn("selectedMenu")]),op=x([pn("item"),pn("selectedItem")]);x(Si(op().concat(_p())));const GO=x(Si(op())),Ob=si("initSize",[pn("numColumns"),pn("numRows")]),s1=()=>In("markers",GO()),Um=()=>si("markers",[pn("backgroundMenu")].concat(_p()).concat(op())),h0=l=>si("markers",re(l,pn)),p0=(l,N,W)=>(XO(),Ln(N,N,W,rt(fe=>aa.value((...Se)=>fe.apply(void 0,Se))))),Ss=l=>p0("onHandler",l,Ls(v)),kd=l=>p0("onKeyboardHandler",l,Ls(I.none)),Ah=l=>p0("onHandler",l,su()),Sb=l=>p0("onKeyboardHandler",l,su()),Sl=(l,N)=>gn(l,x(N)),l1=l=>gn(l,R),Yx=x(Ob);var N4=[Ai("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),po("lazyContext"),Ss("onShow"),Ss("onShown"),Ss("onHide"),Ss("onHidden")]),ys("lazyViewport",()=>({bounds:ts(),optScrollEnv:I.none()})),mt("modes",["top","bottom"],ne),Ss("onDocked"),Ss("onUndocked")],lv=Object.freeze({__proto__:null,init:l=>{const N=wi(!1),W=wi(!0),fe=ds(),Se=wi(l.modes),Be=()=>`docked: ${N.get()}, visible: ${W.get()}, modes: ${Se.get().join(",")}`;return Hd({isDocked:N.get,setDocked:N.set,getInitialPos:fe.get,setInitialPos:fe.set,clearInitialPos:fe.clear,isVisible:W.get,setVisible:W.set,getModes:Se.get,setModes:Se.set,readState:Be})}});const fc=id({fields:N4,name:"docking",active:$m,apis:qx,state:lv}),cv=(l,N,W)=>_o(N,l.element)&&!_o(N,W),kb=Rl([pb(Oh(),(l,N)=>{const W=N.event,fe=W.originator,Se=W.target;return cv(l,fe,Se)?(console.warn(Oh()+` did not get interpreted by the desired target. Originator: `+a1(fe)+` Target: `+a1(Se)+` -Check the `+wh()+" event handlers"),!1):!0})]);var dc=Object.freeze({__proto__:null,events:kb});const uv=(l,N,W,fe)=>{const Se=l+N;return Se>fe?W:SeMath.min(Math.max(l,N),W),Fp=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let tw=0;const Li=l=>{const W=new Date().getTime(),fe=Math.floor(Fp()*1e9);return tw++,l+"_"+fe+tw+String(W)},nw=x("alloy-id-"),F4=x("data-alloy-id"),KO=nw(),rw=F4(),JO=(l,N)=>{const W=Li(KO+l);return ow(N,W),W},ow=(l,N)=>{Object.defineProperty(l.dom,rw,{value:N,writable:!0})},sm=l=>{const N=lr(l)?l.dom[rw]:null;return I.from(N)},gy=l=>Li(l),c1=R,fv=l=>{const N=Se=>`The component must be in a context to execute: ${Se}`+(l?` -`+a1(l().element)+" is not in context.":""),W=Se=>()=>{throw new Error(N(Se))},fe=Se=>()=>{console.warn(N(Se))};return{debugInfo:x("fake"),triggerEvent:fe("triggerEvent"),triggerFocus:fe("triggerFocus"),triggerEscape:fe("triggerEscape"),broadcast:fe("broadcast"),broadcastOn:fe("broadcastOn"),broadcastEvent:fe("broadcastEvent"),build:W("build"),buildOrPatch:W("buildOrPatch"),addToWorld:W("addToWorld"),removeFromWorld:W("removeFromWorld"),addToGui:W("addToGui"),removeFromGui:W("removeFromGui"),getByUid:W("getByUid"),getByDom:W("getByDom"),isConnected:D}},dv=fv(),Hh=Li("alloy-premade"),hv=l=>(Object.defineProperty(l.element.dom,Hh,{value:l.uid,writable:!0}),Sa(Hh,l)),Gx=l=>ht(l.dom,Hh),df=l=>Ge(l,Hh),Tb=l=>cy((N,...W)=>l(N.getApis(),N,...W),l),uu=(l,N)=>{const W=re(N,Se=>Ai(Se.name(),[pn("config"),Ar("state",uh)])),fe=Rt("component.behaviours",Si(W),l.behaviours).fold(Se=>{throw new Error(dn(Se)+` +Check the `+Oh()+" event handlers"),!1):!0})]);var dc=Object.freeze({__proto__:null,events:kb});const uv=(l,N,W,fe)=>{const Se=l+N;return Se>fe?W:SeMath.min(Math.max(l,N),W),Fp=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let tw=0;const Li=l=>{const W=new Date().getTime(),fe=Math.floor(Fp()*1e9);return tw++,l+"_"+fe+tw+String(W)},nw=x("alloy-id-"),F4=x("data-alloy-id"),KO=nw(),rw=F4(),JO=(l,N)=>{const W=Li(KO+l);return ow(N,W),W},ow=(l,N)=>{Object.defineProperty(l.dom,rw,{value:N,writable:!0})},sm=l=>{const N=lr(l)?l.dom[rw]:null;return I.from(N)},vy=l=>Li(l),c1=R,fv=l=>{const N=Se=>`The component must be in a context to execute: ${Se}`+(l?` +`+a1(l().element)+" is not in context.":""),W=Se=>()=>{throw new Error(N(Se))},fe=Se=>()=>{console.warn(N(Se))};return{debugInfo:x("fake"),triggerEvent:fe("triggerEvent"),triggerFocus:fe("triggerFocus"),triggerEscape:fe("triggerEscape"),broadcast:fe("broadcast"),broadcastOn:fe("broadcastOn"),broadcastEvent:fe("broadcastEvent"),build:W("build"),buildOrPatch:W("buildOrPatch"),addToWorld:W("addToWorld"),removeFromWorld:W("removeFromWorld"),addToGui:W("addToGui"),removeFromGui:W("removeFromGui"),getByUid:W("getByUid"),getByDom:W("getByDom"),isConnected:D}},dv=fv(),Hh=Li("alloy-premade"),hv=l=>(Object.defineProperty(l.element.dom,Hh,{value:l.uid,writable:!0}),Sa(Hh,l)),Gx=l=>ht(l.dom,Hh),df=l=>Ge(l,Hh),Tb=l=>uy((N,...W)=>l(N.getApis(),N,...W),l),uu=(l,N)=>{const W=re(N,Se=>Ai(Se.name(),[pn("config"),Ar("state",uh)])),fe=Rt("component.behaviours",Si(W),l.behaviours).fold(Se=>{throw new Error(dn(Se)+` Complete spec: `+JSON.stringify(l,null,2))},R);return{list:N,data:Ue(fe,Se=>{const Be=Se.map(qe=>({config:qe.config,state:qe.state.init(qe.config)}));return x(Be)})}},Cb=l=>l.list,Kx=l=>l.data,Jx=(l,N)=>{const W={};return We(l,(fe,Se)=>{We(fe,(Be,qe)=>{const ft=Ge(W,qe).getOr([]);W[qe]=ft.concat([N(Se,Be)])})}),W},iw=(l,N,W,fe)=>{const Se={...N};q(W,Ht=>{Se[Ht.name()]=Ht.exhibit(l,fe)});const Be=Jx(Se,(Ht,fn)=>({name:Ht,modification:fn})),qe=Ht=>pe(Ht,(fn,Rn)=>({...Rn.modification,...fn}),{}),ft=pe(Be.classes,(Ht,fn)=>fn.modification.concat(Ht),[]),yt=qe(Be.attributes),Lt=qe(Be.styles);return np({classes:ft,attributes:yt,styles:Lt})},e3=(l,N,W,fe)=>{try{const Se=ze(W,(Be,qe)=>{const ft=Be[N],yt=qe[N],Lt=fe.indexOf(ft),Ht=fe.indexOf(yt);if(Lt===-1)throw new Error("The ordering for "+l+" does not have an entry for "+ft+`. Order specified: `+JSON.stringify(fe,null,2));if(Ht===-1)throw new Error("The ordering for "+l+" does not have an entry for "+yt+`. Order specified: `+JSON.stringify(fe,null,2));return Lt({handler:l,purpose:N}),u1=(l,N)=>({cHandler:l,purpose:N}),cm=(l,N)=>u1(T.apply(void 0,[l.handler].concat(N)),l.purpose),pv=l=>l.cHandler,hf=(l,N)=>({name:l,handler:N}),f1=(l,N)=>{const W={};return q(l,fe=>{W[fe.name()]=fe.handlers(N)}),W},jm=(l,N,W)=>{const fe={...W,...f1(N,l)};return Jx(fe,hf)},mv=(l,N,W,fe)=>{const Se=jm(l,W,fe);return m0(Se,N)},e2=l=>{const N=X0(l);return(W,fe,...Se)=>{const Be=[W,fe].concat(Se);N.abort.apply(void 0,Be)?fe.stop():N.can.apply(void 0,Be)&&N.run.apply(void 0,Be)}},Zd=(l,N)=>aa.error(["The event ("+l+`) has more than one behaviour that listens to it. When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(re(N,W=>W.name),null,2)]),vy=(l,N,W)=>{const fe=N[W];return fe?e3("Event: "+W,"name",l,fe).map(Se=>{const Be=re(Se,qe=>qe.handler);return Vh(Be)}):Zd(W,l)},m0=(l,N)=>{const W=je(l,(fe,Se)=>(fe.length===1?aa.value(fe[0].handler):vy(fe,N,Se)).map(qe=>{const ft=e2(qe),yt=fe.length>1?me(N[Se],Lt=>te(fe,Ht=>Ht.name===Lt)).join(" > "):fe[0].name;return Sa(Se,lm(ft,yt))}));return Jc(W,{})},g0="alloy.base.behaviour",v0=Si([Ln("dom","dom",su(),Si([pn("tag"),Ar("styles",{}),Ar("classes",[]),Ar("attributes",{}),Yo("value"),Yo("innerHtml")])),pn("components"),pn("uid"),Ar("events",{}),Ar("apis",{}),Ln("eventOrder","eventOrder",wt({[Bp()]:["disabling",g0,"toggling","typeaheadevents"],[wh()]:[g0,"focusing","keying"],[K0()]:[g0,"disabling","toggling","representing","tooltipping"],[vg()]:[g0,"representing","streaming","invalidating"],[zp()]:[g0,"representing","item-events","toolbar-button-events","tooltipping"],[Nc()]:["focusing",g0,"item-type-events"],[Uh()]:["focusing",g0,"item-type-events"],[wu()]:["item-type-events","tooltipping"],[yp()]:["receiving","reflecting","tooltipping"]}),Ut()),Yo("domModification")]),y0=l=>Rt("custom.definition",v0,l),Tf=l=>({...l.dom,uid:l.uid,domChildren:re(l.components,N=>N.element)}),vo=l=>l.domModification.fold(()=>np({}),np),Ab=l=>l.events,F=l=>l.dom.value,G=(l,N)=>{if(N===void 0)throw new Error("Value.set was undefined");l.dom.value=N},ue=(l,N,W)=>jn(l,N).map(Se=>{if(W.exists(qe=>!_o(qe,Se))){const qe=W.map(vr).getOr("span"),ft=Nt.fromTag(qe);return af(Se,ft),ft}else return Se}),Ae=(l,N,W)=>{W.fold(()=>Bc(l,N),fe=>{_o(fe,N)||(af(fe,N),gs(fe))})},He=(l,N,W)=>{const fe=re(N,W),Se=Do(l);return q(Se.slice(fe.length),gs),fe},nt=(l,N,W,fe)=>{const Se=jn(l,N),Be=fe(W,Se),qe=ue(l,N,Se);return Ae(l,Be.element,qe),Be},ct=(l,N,W)=>He(l,N,(fe,Se)=>nt(l,Se,fe,W)),Pt=(l,N)=>He(l,N,(W,fe)=>{const Se=jn(l,fe);return Ae(l,W,Se),W}),jt=(l,N)=>{const W=ke(l),fe=ke(N),Se=Te(fe,W),Be=Me(l,(qe,ft)=>!ht(N,ft)||qe!==N[ft]).t;return{toRemove:Se,toSet:Be}},hn=(l,N)=>{const{class:W,style:fe,...Se}=Mn(N),{toSet:Be,toRemove:qe}=jt(l.attributes,Se),ft=()=>{q(qe,jr=>Qt(N,jr)),wo(N,Be)},yt=Ds(N),{toSet:Lt,toRemove:Ht}=jt(l.styles,yt),fn=()=>{q(Ht,jr=>zi(N,jr)),Oo(N,Lt)},Rn=qc(N),Bn=Te(Rn,l.classes),er=Te(l.classes,Rn),cr=()=>{Og(N,er),Oc(N,Bn)},Xr=jr=>{d0(N,jr)},br=()=>{const jr=l.domChildren;Pt(N,jr)},Fr=()=>{const jr=N,Ro=l.value.getOrUndefined();Ro!==F(jr)&&G(jr,Ro??"")};return ft(),cr(),fn(),l.innerHtml.fold(br,Xr),Fr(),N},mn=l=>{const N=Nt.fromTag(l.tag);wo(N,l.attributes),Og(N,l.classes),Oo(N,l.styles),l.innerHtml.each(fe=>d0(N,fe));const W=l.domChildren;return xd(N,W),l.value.each(fe=>{G(N,fe)}),N},Dn=(l,N)=>{try{const W=hn(l,N);return I.some(W)}catch{return I.none()}},Xn=l=>l.innerHtml.isSome()&&l.domChildren.length>0,$n=(l,N)=>{const W=Se=>vr(Se)===l.tag&&!Xn(l)&&!Gx(Se),fe=N.filter(W).bind(Se=>Dn(l,Se)).getOrThunk(()=>mn(l));return ow(fe,l.uid),fe},mr=l=>{const N=Ge(l,"behaviours").getOr({});return ve(ke(N),W=>{const fe=N[W];return a(fe)?[fe.me]:[]})},Or=(l,N)=>uu(l,N),Kr=l=>{const N=mr(l);return Or(l,N)},Hr=(l,N,W)=>{const fe=Tf(l),Se=vo(l),Be={"alloy.base.modification":Se},qe=N.length>0?iw(W,Be,N,fe):Se;return jO(fe,qe)},fo=(l,N,W)=>{const fe={"alloy.base.behaviour":Ab(l)};return mv(W,l.eventOrder,N,fe).getOrDie()},mo=(l,N)=>{const W=()=>jr,fe=wi(dv),Se=Mt(y0(l)),Be=Kr(l),qe=Cb(Be),ft=Kx(Be),yt=Hr(Se,qe,ft),Lt=$n(yt,N),Ht=fo(Se,qe,ft),fn=wi(Se.components),Rn=Ro=>{fe.set(Ro)},Bn=()=>{fe.set(fv(W))},er=()=>{const Ro=Do(Lt),ko=ve(Ro,_i=>fe.get().getByDom(_i).fold(()=>[],Ie));fn.set(ko)},cr=Ro=>{const ko=ft;return(c(ko[Ro.name()])?ko[Ro.name()]:()=>{throw new Error("Could not find "+Ro.name()+" in "+JSON.stringify(l,null,2))})()},Xr=Ro=>c(ft[Ro.name()]),br=()=>Se.apis,Fr=Ro=>ft[Ro]().map(ko=>ko.state.readState()).getOr("not enabled"),jr={uid:l.uid,getSystem:fe.get,config:cr,hasConfigured:Xr,spec:l,readState:Fr,getApis:br,connect:Rn,disconnect:Bn,element:Lt,syncComponents:er,components:fn.get,events:Ht};return jr},Io=(l,N)=>{const W=Ge(l,"components").getOr([]);return N.fold(()=>re(W,ka),fe=>re(W,(Se,Be)=>ra(Se,jn(fe,Be))))},Qo=(l,N)=>{const{events:W,...fe}=c1(l),Se=Io(fe,N),Be={...fe,events:{...dc,...W},components:Se};return aa.value(mo(Be,N))},Po=l=>{const N=Nt.fromText(l);return Ii({element:N})},Ii=l=>{const N=Xt("external.component",Os([pn("element"),Yo("uid")]),l),W=wi(fv()),fe=ft=>{W.set(ft)},Se=()=>{W.set(fv(()=>qe))},Be=N.uid.getOrThunk(()=>gy("external"));ow(N.element,Be);const qe={uid:Be,getSystem:W.get,config:I.none,hasConfigured:D,connect:fe,disconnect:Se,getApis:()=>({}),element:N.element,spec:l,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return hv(qe)},bi=gy,Zi=l=>ht(l,"uid"),ra=(l,N)=>df(l).getOrThunk(()=>{const W=Zi(l)?l:{uid:bi(""),...l};return Qo(W,N).getOrDie()}),ka=l=>ra(l,I.none()),ea=hv;var as=(l,N,W,fe,Se)=>l(W,fe)?I.some(W):c(Se)&&Se(W)?I.none():N(W,fe,Se);const Da=(l,N,W)=>{let fe=l.dom;const Se=c(W)?W:D;for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe);if(N(Be))return I.some(Be);if(Se(Be))break}return I.none()},ba=(l,N,W)=>as((Se,Be)=>Be(Se),Da,l,N,W),fl=(l,N)=>{const W=l.dom;return W.parentNode?As(Nt.fromDom(W.parentNode),fe=>!_o(l,fe)&&N(fe)):I.none()},As=(l,N)=>{const W=Se=>N(Nt.fromDom(Se));return ce(l.dom.childNodes,W).map(Nt.fromDom)},hc=(l,N)=>{const W=fe=>{for(let Se=0;Seba(l,N,W).isSome(),Vs=l=>Fo(l),Fl=(l,N,W)=>Da(l,fe=>Yr(fe,N),W),kl=(l,N)=>fl(l,W=>Yr(W,N)),Fc=(l,N)=>As(l,W=>Yr(W,N)),qa=(l,N)=>Fo(N,l),Sc=(l,N,W)=>as((Se,Be)=>Yr(Se,Be),Fl,l,N,W),pc="aria-controls",sd=l=>ba(l,W=>{if(!lr(W))return!1;const fe=Nr(W,"id");return fe!==void 0&&fe.indexOf(pc)>-1}).bind(W=>{const fe=Nr(W,"id"),Se=kr(W);return qa(Se,`[${pc}="${fe}"]`)}),ld=()=>{const l=Li(pc);return{id:l,link:fe=>{Cr(fe,pc,l)},unlink:fe=>{Qt(fe,pc)}}},cd=(l,N)=>sd(N).exists(W=>Cf(l,W)),Cf=(l,N)=>os(N,W=>_o(W,l.element),D)||cd(l,N),xl=(l,N,W,fe,Se,Be,qe,ft=!1)=>({x:l,y:N,bubble:W,direction:fe,placement:Se,restriction:Be,label:`${qe}-${Se}`,alwaysFit:ft}),eu=Nn.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Td=(l,N,W,fe,Se,Be,qe,ft,yt)=>l.fold(N,W,fe,Se,Be,qe,ft,yt),Af=(l,N,W,fe)=>l.fold(N,N,fe,fe,N,fe,W,W),jf=(l,N,W,fe)=>l.fold(N,fe,N,fe,W,W,N,fe),Us=eu.southeast,_l=eu.southwest,fu=eu.northeast,ni=eu.northwest,Wc=eu.south,Yc=eu.north,$l=eu.east,Ru=eu.west,Mh=(l,N)=>{switch(N){case 1:return l.x;case 0:return l.x+l.width;case 2:return l.y;case 3:return l.y+l.height}},mc=(l,N)=>Pe(["left","right","top","bottom"],W=>Ge(N,W).map(fe=>Mh(l,fe))),dh=(l,N,W)=>{const fe=(yt,Lt)=>N[yt].map(Ht=>{const fn=yt==="top"||yt==="bottom",Rn=fn?W.top:W.left,er=(yt==="left"||yt==="top"?Math.max:Math.min)(Ht,Lt)+Rn;return fn?Ah(er,l.y,l.bottom):Ah(er,l.x,l.right)}).getOr(Lt),Se=fe("left",l.x),Be=fe("top",l.y),qe=fe("right",l.right),ft=fe("bottom",l.bottom);return vs(Se,Be,qe-Se,ft-Be)},hh="layout",Qm=l=>l.x,Qf=(l,N)=>l.x+l.width/2-N.width/2,tu=(l,N)=>l.x+l.width-N.width,qd=(l,N)=>l.y-N.height,Cd=l=>l.y+l.height,d1=(l,N)=>l.y+l.height/2-N.height/2,t2=l=>l.x+l.width,gv=(l,N)=>l.x-N.width,Lu=(l,N,W)=>xl(Qm(l),Cd(l),W.southeast(),Us(),"southeast",mc(l,{left:1,top:3}),hh),$c=(l,N,W)=>xl(tu(l,N),Cd(l),W.southwest(),_l(),"southwest",mc(l,{right:0,top:3}),hh),dl=(l,N,W)=>xl(Qm(l),qd(l,N),W.northeast(),fu(),"northeast",mc(l,{left:1,bottom:2}),hh),Mf=(l,N,W)=>xl(tu(l,N),qd(l,N),W.northwest(),ni(),"northwest",mc(l,{right:0,bottom:2}),hh),du=(l,N,W)=>xl(Qf(l,N),qd(l,N),W.north(),Yc(),"north",mc(l,{bottom:2}),hh),Iu=(l,N,W)=>xl(Qf(l,N),Cd(l),W.south(),Wc(),"south",mc(l,{top:3}),hh),vv=(l,N,W)=>xl(t2(l),d1(l,N),W.east(),$l(),"east",mc(l,{left:0}),hh),h1=(l,N,W)=>xl(gv(l,N),d1(l,N),W.west(),Ru(),"west",mc(l,{right:1}),hh),n2=()=>[Lu,$c,dl,Mf,Iu,du,vv,h1],yy=()=>[$c,Lu,Mf,dl,Iu,du,vv,h1],p1=()=>[dl,Mf,Lu,$c,du,Iu],b0=()=>[Mf,dl,$c,Lu,du,Iu],Hm=()=>[Lu,$c,dl,Mf,Iu,du],yv=()=>[$c,Lu,Mf,dl,Iu,du],by=(l,N)=>N.universal?l:me(l,W=>X(N.channels,W));var r2=Object.freeze({__proto__:null,events:l=>Rl([Lo(yp(),(N,W)=>{const fe=l.channels,Se=ke(fe),Be=W,qe=by(Se,Be);q(qe,ft=>{const yt=fe[ft],Lt=yt.schema,Ht=Xt("channel["+ft+`] data -Receiver: `+a1(N.element),Lt,Be.data);yt.onReceive(N,Ht)})})])}),Mb=[In("channels",dt(aa.value,Os([Ch("onReceive"),Ar("schema",Ut())])))];const Ad=id({fields:Mb,name:"receiving",active:r2});var _y=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:[],styles:N.useFixed()?{}:{position:"relative"}})});const Md=(l,N=!1)=>l.dom.focus({preventScroll:N}),m1=l=>l.dom.blur(),_0=l=>{const N=kr(l).dom;return l.dom===N.activeElement},um=(l=Ac())=>I.from(l.dom.activeElement).map(Nt.fromDom),Wd=l=>um(kr(l)).filter(N=>l.dom.contains(N.dom)),w0=(l,N)=>{const W=kr(N),fe=um(W).bind(Be=>{const qe=ft=>_o(Be,ft);return qe(N)?I.some(N):hc(N,qe)}),Se=l(N);return fe.each(Be=>{um(W).filter(qe=>_o(qe,Be)).fold(()=>{Md(Be)},v)}),Se},Eb=Nn.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),wy=(l,N,W,fe,Se,Be)=>{const qe=N.rect,ft=qe.x-W,yt=qe.y-fe,Lt=qe.width,Ht=qe.height,fn=Se-(ft+Lt),Rn=Be-(yt+Ht),Bn=I.some(ft),er=I.some(yt),cr=I.some(fn),Xr=I.some(Rn),br=I.none();return Td(N.direction,()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,br,br,cr,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br))},aw=(l,N)=>l.fold(()=>{const W=N.rect;return ff("absolute",I.some(W.x),I.some(W.y),I.none(),I.none())},(W,fe,Se,Be)=>wy("absolute",N,W,fe,Se,Be),(W,fe,Se,Be)=>wy("fixed",N,W,fe,Se,Be)),Zm=(l,N)=>{const W=T(Au,N),fe=l.fold(W,W,()=>{const qe=yc();return Au(N).translate(-qe.left,-qe.top)}),Se=ma(N),Be=nf(N);return vs(fe.left,fe.top,Se,Be)},sw=(l,N)=>N.fold(()=>l.fold(ts,ts,vs),W=>l.fold(x(W),x(W),()=>{const fe=Pb(l,W.x,W.y);return vs(fe.left,fe.top,W.width,W.height)})),Pb=(l,N,W)=>{const fe=Qs(N,W),Se=()=>{const Be=yc();return fe.translate(-Be.left,-Be.top)};return l.fold(x(fe),x(fe),Se)},t3=(l,N,W,fe)=>l.fold(N,W,fe);Eb.none;const O0=Eb.relative,hu=Eb.fixed,ip=(l,N)=>({anchorBox:l,origin:N}),$4=(l,N)=>ip(l,N),qm="data-alloy-placement",lw=(l,N)=>{Cr(l,qm,N)},cw=l=>Eo(l,qm),o2=l=>Qt(l,qm),$p=Nn.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Rb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,right:yt,bottom:Lt,width:Ht,height:fn}=l,Rn=qe>=W&&qe<=Se,Bn=ft>=fe&&ft<=Be,er=Rn&&Bn,cr=yt<=Se&&yt>=W,Xr=Lt<=Be&&Lt>=fe,br=cr&&Xr,Fr=Math.min(Ht,qe>=W?Se-qe:yt-W),jr=Math.min(fn,ft>=fe?Be-ft:Lt-fe);return{originInBounds:er,sizeInBounds:br,visibleW:Fr,visibleH:jr}},Lb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,width:yt,height:Lt}=l,Ht=Math.max(W,Se-yt),fn=Math.max(fe,Be-Lt),Rn=Ah(qe,W,Ht),Bn=Ah(ft,fe,fn),er=Math.min(Rn+yt,Se)-Rn,cr=Math.min(Bn+Lt,Be)-Bn;return vs(Rn,Bn,er,cr)},Oy=(l,N,W)=>{const fe=x(N.bottom-W.y),Se=x(W.bottom-N.y),Be=Af(l,Se,Se,fe),qe=x(N.right-W.x),ft=x(W.right-N.x);return{maxWidth:jf(l,ft,ft,qe),maxHeight:Be}},bv=(l,N,W,fe)=>{const Se=l.bubble,Be=Se.offset,qe=dh(fe,l.restriction,Be),ft=l.x+Be.left,yt=l.y+Be.top,Lt=vs(ft,yt,N,W),{originInBounds:Ht,sizeInBounds:fn,visibleW:Rn,visibleH:Bn}=Rb(Lt,qe),er=Ht&&fn,cr=er?Lt:Lb(Lt,qe),Xr=cr.width>0&&cr.height>0,{maxWidth:br,maxHeight:Fr}=Oy(l.direction,cr,fe),jr={rect:cr,maxHeight:Fr,maxWidth:br,direction:l.direction,placement:l.placement,classes:{on:Se.classesOn,off:Se.classesOff},layout:l.label,testY:yt};return er||l.alwaysFit?$p.fit(jr):$p.nofit(jr,Rn,Bn,Xr)},uw=(l,N,W,fe,Se,Be)=>{const qe=fe.width,ft=fe.height,yt=(Ht,fn,Rn,Bn,er)=>{const cr=Ht(W,fe,Se,l,Be),Xr=bv(cr,qe,ft,Be);return Xr.fold(x(Xr),(br,Fr,jr,Ro)=>(er===Ro?jr>Bn||Fr>Rn:!er&&Ro)?Xr:$p.nofit(fn,Rn,Bn,er))};return se(N,(Ht,fn)=>{const Rn=T(yt,fn);return Ht.fold(x(Ht),Rn)},$p.nofit({rect:W,maxHeight:fe.height,maxWidth:fe.width,direction:Us(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:W.y},-1,-1,!1)).fold(R,R)},fw=k,ud=(l,N,W)=>yu(l,N,fw,W),i2=(l,N,W)=>jc(l,N,fw,W),a2=_f,s2=["top","bottom","right","left"],Ib="data-alloy-transition-timer",n3=(l,N)=>YO(l,N.classes),Eh=(l,N,W)=>W.exists(fe=>{const Se=l.mode;return Se==="all"?!0:fe[Se]!==N[Se]}),Db=(l,N)=>{const W=fe=>parseFloat(fe).toFixed(3);return tt(N,(fe,Se)=>{const Be=l[Se].map(W),qe=fe.map(W);return!Ft(Be,qe)}).isSome()},l2=l=>{const N=Be=>{const ft=Di(l,Be).split(/\s*,\s*/);return me(ft,it)},W=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return bt(Be,"ms")?qe:qe*1e3}else return 0},fe=N("transition-delay"),Se=N("transition-duration");return se(Se,(Be,qe,ft)=>{const yt=W(fe[ft])+W(qe);return Math.max(Be,yt)},0)},fm=(l,N)=>{const W=Ol(),fe=Ol();let Se;const Be=Lt=>{var Ht;const fn=(Ht=Lt.raw.pseudoElement)!==null&&Ht!==void 0?Ht:"";return _o(Lt.target,l)&&at(fn)&&X(s2,Lt.raw.propertyName)},qe=Lt=>{if(m(Lt)||Be(Lt)){W.clear(),fe.clear();const Ht=Lt==null?void 0:Lt.raw.type;(m(Ht)||Ht===rm())&&(clearTimeout(Se),Qt(l,Ib),Oc(l,N.classes))}},ft=ud(l,z_(),Lt=>{Be(Lt)&&(ft.unbind(),W.set(ud(l,rm(),qe)),fe.set(ud(l,VO(),qe)))}),yt=l2(l);requestAnimationFrame(()=>{Se=setTimeout(qe,yt+17),Cr(l,Ib,Se)})},r3=(l,N)=>{Og(l,N.classes),Eo(l,Ib).each(W=>{clearTimeout(parseInt(W,10)),Qt(l,Ib)}),fm(l,N)},xv=(l,N,W,fe,Se,Be)=>{const qe=Eh(fe,Se,Be);if(qe||n3(l,fe)){xr(l,"position",W.position);const ft=Zm(N,l),yt=aw(N,{...Se,rect:ft}),Lt=Pe(s2,Ht=>yt[Ht]);Db(W,Lt)&&(mi(l,Lt),qe&&r3(l,fe),yl(l))}else Oc(l,fe.classes)},g1=l=>({width:ma(l),height:nf(l)}),_v=(l,N,W,fe)=>{zi(N,"max-height"),zi(N,"max-width");const Se=g1(N);return uw(N,fe.preference,l,Se,W,fe.bounds)},wv=(l,N)=>{const W=N.classes;Oc(l,W.off),Og(l,W.on)},Sy=(l,N,W)=>{const fe=W.maxHeightFunction;fe(l,N.maxHeight)},Ov=(l,N,W)=>{const fe=W.maxWidthFunction;fe(l,N.maxWidth)},dw=(l,N,W)=>{const fe=aw(W.origin,N);W.transition.each(Se=>{xv(l,W.origin,fe,Se,N,W.lastPlacement)}),fy(l,fe)},o3=(l,N)=>{lw(l,N.placement)},Bb=(l,N)=>{nh(l,Math.floor(N))},hw=x((l,N)=>{Bb(l,N),Oo(l,{"overflow-x":"hidden","overflow-y":"auto"})}),v1=x((l,N)=>{Bb(l,N)}),c2=(l,N,W)=>l[N]===void 0?W:l[N],Wm=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=c2(qe,"maxHeightFunction",hw()),Lt=c2(qe,"maxWidthFunction",v),Ht=l.anchorBox,fn=l.origin,Rn={bounds:sw(fn,Be),origin:fn,preference:fe,maxHeightFunction:yt,maxWidthFunction:Lt,lastPlacement:Se,transition:ft};return pw(Ht,N,W,Rn)},pw=(l,N,W,fe)=>{const Se=_v(l,N,W,fe);return dw(N,Se,fe),o3(N,Se),wv(N,Se),Sy(N,Se,fe),Ov(N,Se,fe),{layout:Se.layout,placement:Se.placement}},mw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],wp=(l,N,W,fe=1)=>{const Se=l*fe,Be=N*fe,qe=yt=>Ge(W,yt).getOr([]),ft=(yt,Lt,Ht)=>{const fn=Te(mw,Ht);return{offset:Qs(yt,Lt),classesOn:ve(Ht,qe),classesOff:ve(fn,qe)}};return{southeast:()=>ft(-l,N,["top","alignLeft"]),southwest:()=>ft(l,N,["top","alignRight"]),south:()=>ft(-l/2,N,["top","alignCentre"]),northeast:()=>ft(-l,-N,["bottom","alignLeft"]),northwest:()=>ft(l,-N,["bottom","alignRight"]),north:()=>ft(-l/2,-N,["bottom","alignCentre"]),east:()=>ft(l,-N/2,["valignCentre","left"]),west:()=>ft(-l,-N/2,["valignCentre","right"]),insetNortheast:()=>ft(Se,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-Se,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-Se/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(Se,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-Se,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-Se/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-Se,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(Se,-Be/2,["valignCentre","left","inset"])}},zb=()=>wp(0,0,{}),u2=R,Hf=(l,N)=>W=>V4(W)==="rtl"?N:l,V4=l=>Di(l,"direction")==="rtl"?"rtl":"ltr";var ap;(function(l){l.TopToBottom="toptobottom",l.BottomToTop="bottomtotop"})(ap||(ap={}));const Nb="data-alloy-vertical-dir",i3=l=>os(l,N=>lr(N)&&Nr(N,"data-alloy-vertical-dir")===ap.BottomToTop),dm=()=>Ai("layouts",[pn("onLtr"),pn("onRtl"),Yo("onBottomLtr"),Yo("onBottomRtl")]),ky=(l,N,W,fe,Se,Be,qe)=>{const ft=qe.map(i3).getOr(!1),yt=N.layouts.map(Bn=>Bn.onLtr(l)),Lt=N.layouts.map(Bn=>Bn.onRtl(l)),Ht=ft?N.layouts.bind(Bn=>Bn.onBottomLtr.map(er=>er(l))).or(yt).getOr(Se):yt.getOr(W),fn=ft?N.layouts.bind(Bn=>Bn.onBottomRtl.map(er=>er(l))).or(Lt).getOr(Be):Lt.getOr(fe);return Hf(Ht,fn)(l)},f2=(l,N,W)=>{const fe=N.hotspot,Se=Zm(W,fe.element),Be=ky(l.element,N,Hm(),yv(),p1(),b0(),I.some(N.hotspot.element));return I.some(u2({anchorBox:Se,bubble:N.bubble.getOr(zb()),overrides:N.overrides,layouts:Be}))};var a3=[pn("hotspot"),Yo("bubble"),Ar("overrides",{}),dm(),Sl("placement",f2)];const d2=(l,N,W)=>{const fe=Pb(W,N.x,N.y),Se=vs(fe.left,fe.top,N.width,N.height),Be=ky(l.element,N,n2(),yy(),n2(),yy(),I.none());return I.some(u2({anchorBox:Se,bubble:N.bubble,overrides:N.overrides,layouts:Be}))};var s3=[pn("x"),pn("y"),Ar("height",0),Ar("width",0),Ar("bubble",zb()),Ar("overrides",{}),dm(),Sl("placement",d2)];const h2=Nn.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Fb=l=>l.fold(R,(N,W,fe)=>N.translate(-W,-fe)),l3=l=>l.fold(R,R),c3=l=>se(l,(N,W)=>N.translate(W.left,W.top),Qs(0,0)),U4=l=>{const N=re(l,Fb);return c3(N)},p2=l=>{const N=re(l,l3);return c3(N)},m2=h2.screen,Mg=h2.absolute,S0=(l,N,W)=>{const fe=ar(W.root).dom,Se=Be=>{const qe=Mo(Be),ft=Mo(l.element);return _o(qe,ft)};return I.from(fe.frameElement).map(Nt.fromDom).filter(Se).map(Tc)},gw=(l,N,W)=>{const fe=Mo(l.element),Se=yc(fe),Be=S0(l,N,W).getOr(Se);return Mg(Be,Se.left,Se.top)},y1=(l,N,W,fe)=>{const Se=m2(Qs(l,N));return I.some(lf(Se,W,fe))},g2=(l,N,W,fe,Se)=>l.map(Be=>{const qe=[N,Be.point],ft=t3(fe,()=>p2(qe),()=>p2(qe),()=>U4(qe)),yt=wf(ft.left,ft.top,Be.width,Be.height),Lt=W.showAbove?p1():Hm(),Ht=W.showAbove?b0():yv(),fn=ky(Se,W,Lt,Ht,Lt,Ht,I.none());return u2({anchorBox:yt,bubble:W.bubble.getOr(zb()),overrides:W.overrides,layouts:fn})}),u3=(l,N,W)=>{const fe=gw(l,W,N);return N.node.filter(Gn).bind(Se=>{const Be=Se.dom.getBoundingClientRect(),qe=y1(Be.left,Be.top,Be.width,Be.height),ft=N.node.getOr(l.element);return g2(qe,fe,N,W,ft)})};var zM=[pn("node"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",u3)];const mC="\uFEFF",$b=" ",vw={create:(l,N,W,fe)=>({start:l,soffset:N,finish:W,foffset:fe})},Ty=Nn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yw=(l,N,W,fe)=>l.fold(N,W,fe),vC=l=>l.fold(R,R,R),yC=Ty.before,CD=Ty.on,NM=Ty.after,v2={before:yC,on:CD,after:NM,cata:yw,getStart:vC},b1=Nn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),FM=l=>b1.exact(l.start,l.soffset,l.finish,l.foffset),j4=l=>l.match({domRange:N=>Nt.fromDom(N.startContainer),relative:(N,W)=>v2.getStart(N),exact:(N,W,fe,Se)=>N}),bC=b1.domRange,xC=b1.relative,_C=b1.exact,Q4=l=>{const N=j4(l);return ar(N)},wC=vw.create,Cy={domRange:bC,relative:xC,exact:_C,exactFromRange:FM,getWin:Q4,range:wC},OC=(l,N)=>{N.fold(W=>{l.setStartBefore(W.dom)},(W,fe)=>{l.setStart(W.dom,fe)},W=>{l.setStartAfter(W.dom)})},Vb=(l,N)=>{N.fold(W=>{l.setEndBefore(W.dom)},(W,fe)=>{l.setEnd(W.dom,fe)},W=>{l.setEndAfter(W.dom)})},Ay=(l,N,W)=>{const fe=l.document.createRange();return OC(fe,N),Vb(fe,W),fe},bw=(l,N,W,fe,Se)=>{const Be=l.document.createRange();return Be.setStart(N.dom,W),Be.setEnd(fe.dom,Se),Be},y2=l=>({left:l.left,top:l.top,right:l.right,bottom:l.bottom,width:l.width,height:l.height}),f3=l=>{const N=l.getClientRects(),W=N.length>0?N[0]:l.getBoundingClientRect();return W.width>0||W.height>0?I.some(W).map(y2):I.none()},My=l=>{const N=l.getBoundingClientRect();return N.width>0||N.height>0?I.some(N).map(y2):I.none()},hm=Nn.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),H4=(l,N,W)=>N(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset),$M=(l,N)=>N.match({domRange:W=>({ltr:x(W),rtl:I.none}),relative:(W,fe)=>({ltr:Uc(()=>Ay(l,W,fe)),rtl:Uc(()=>I.some(Ay(l,fe,W)))}),exact:(W,fe,Se,Be)=>({ltr:Uc(()=>bw(l,W,fe,Se,Be)),rtl:Uc(()=>I.some(bw(l,Se,Be,W,fe)))})}),b2=(l,N)=>{const W=N.ltr();return W.collapsed?N.rtl().filter(Se=>Se.collapsed===!1).map(Se=>hm.rtl(Nt.fromDom(Se.endContainer),Se.endOffset,Nt.fromDom(Se.startContainer),Se.startOffset)).getOrThunk(()=>H4(l,hm.ltr,W)):H4(l,hm.ltr,W)},SC=(l,N)=>{const W=$M(l,N);return b2(l,W)},x2=(l,N)=>SC(l,N).match({ltr:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(fe.dom,Se),ft.setEnd(Be.dom,qe),ft},rtl:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(fe.dom,Se),ft}});hm.ltr,hm.rtl;const _2=(l,N,W)=>me(go(l,W),N),Yd=(l,N)=>co(N,l),d3=(l,N,W,fe)=>{const Be=Mo(l).dom.createRange();return Be.setStart(l.dom,N),Be.setEnd(W.dom,fe),Be},xw=(l,N,W,fe)=>{const Se=d3(l,N,W,fe),Be=_o(l,W)&&N===fe;return Se.collapsed&&!Be},h3=l=>I.from(l.getSelection()),kC=l=>{if(l.rangeCount>0){const N=l.getRangeAt(0),W=l.getRangeAt(l.rangeCount-1);return I.some(vw.create(Nt.fromDom(N.startContainer),N.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}else return I.none()},Z4=l=>{if(l.anchorNode===null||l.focusNode===null)return kC(l);{const N=Nt.fromDom(l.anchorNode),W=Nt.fromDom(l.focusNode);return xw(N,l.anchorOffset,W,l.focusOffset)?I.some(vw.create(N,l.anchorOffset,W,l.focusOffset)):kC(l)}},p3=l=>h3(l).filter(N=>N.rangeCount>0).bind(Z4),Ef=(l,N)=>{const W=x2(l,N);return f3(W)},m3=(l,N)=>{const W=x2(l,N);return My(W)},TC=((l,N)=>{const W=Be=>{if(!l(Be))throw new Error("Can only get "+N+" value of a "+N+" node");return fe(Be).getOr("")},fe=Be=>l(Be)?I.from(Be.dom.nodeValue):I.none();return{get:W,getOption:fe,set:(Be,qe)=>{if(!l(Be))throw new Error("Can only set raw "+N+" value of a "+N+" node");Be.dom.nodeValue=qe}}})(zr,"text"),q4=l=>TC.get(l),Sv=(l,N)=>({element:l,offset:N}),_w=(l,N)=>{const W=Do(l);if(W.length===0)return Sv(l,N);if(Nzr(l)?Sv(l,N):_w(l,N),g3=l=>l.foffset!==void 0,v3=(l,N)=>N.getSelection.getOrThunk(()=>()=>p3(l))().map(fe=>{if(g3(fe)){const Se=w2(fe.start,fe.soffset),Be=w2(fe.finish,fe.foffset);return Cy.range(Se.element,Se.offset,Be.element,Be.offset)}else return fe}),Ey=(l,N,W)=>{const fe=ar(N.root).dom,Se=gw(l,W,N),Be=v3(fe,N).bind(yt=>{if(g3(yt))return m3(fe,Cy.exactFromRange(yt)).orThunk(()=>{const Ht=Nt.fromText(mC);af(yt.start,Ht);const fn=Ef(fe,Cy.exact(Ht,0,Ht,1));return gs(Ht),fn}).bind(Ht=>y1(Ht.left,Ht.top,Ht.width,Ht.height));{const Lt=Ue(yt,fn=>fn.dom.getBoundingClientRect()),Ht={left:Math.min(Lt.firstCell.left,Lt.lastCell.left),right:Math.max(Lt.firstCell.right,Lt.lastCell.right),top:Math.min(Lt.firstCell.top,Lt.lastCell.top),bottom:Math.max(Lt.firstCell.bottom,Lt.lastCell.bottom)};return y1(Ht.left,Ht.top,Ht.right-Ht.left,Ht.bottom-Ht.top)}}),ft=v3(fe,N).bind(yt=>g3(yt)?lr(yt.start)?I.some(yt.start):Zr(yt.start):I.some(yt.firstCell)).getOr(l.element);return g2(Be,Se,N,W,ft)};var VM=[Yo("getSelection"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",Ey)];const Vp="link-layout",k0=l=>l.x+l.width,W4=(l,N)=>l.x-N.width,CC=(l,N)=>l.y-N.height+l.height,AC=l=>l.y,Y4=(l,N,W)=>xl(k0(l),AC(l),W.southeast(),Us(),"southeast",mc(l,{left:0,top:2}),Vp),X4=(l,N,W)=>xl(W4(l,N),AC(l),W.southwest(),_l(),"southwest",mc(l,{right:1,top:2}),Vp),MC=(l,N,W)=>xl(k0(l),CC(l,N),W.northeast(),fu(),"northeast",mc(l,{left:0,bottom:3}),Vp),EC=(l,N,W)=>xl(W4(l,N),CC(l,N),W.northwest(),ni(),"northwest",mc(l,{right:1,bottom:3}),Vp),Op=()=>[Y4,X4,MC,EC],Ub=()=>[X4,Y4,EC,MC],G4=(l,N,W)=>{const fe=Zm(W,N.item.element),Se=ky(l.element,N,Op(),Ub(),Op(),Ub(),I.none());return I.some(u2({anchorBox:fe,bubble:zb(),overrides:N.overrides,layouts:Se}))};var Py=[pn("item"),dm(),Ar("overrides",{}),Sl("placement",G4)],Sp=bn("type",{selection:VM,node:zM,hotspot:a3,submenu:Py,makeshift:s3});const Up=[Go("classes",ne),rl("mode","all",["all","layout","placement"])],ph=[Ar("useFixed",D),Yo("getBounds")],Ym=[In("anchor",Sp),Ai("transition",Up)],y3=()=>{const l=document.documentElement;return hu(0,0,l.clientWidth,l.clientHeight)},Xm=l=>{const N=Tc(l.element),W=l.element.dom.getBoundingClientRect();return O0(N.left,N.top,W.width,W.height)},jb=(l,N,W,fe,Se,Be)=>{const qe=$4(N.anchorBox,l);return Wm(qe,fe.element,N.bubble,N.layouts,Se,W,N.overrides,Be)},UM=(l,N,W,fe,Se)=>{const Be=I.none();K4(l,N,W,fe,Se,Be)},K4=(l,N,W,fe,Se,Be)=>{const qe=Xt("placement.info",Si(Ym),Se),ft=qe.anchor,yt=fe.element,Lt=W.get(fe.uid);w0(()=>{xr(yt,"position","fixed");const Ht=Ia(yt,"visibility");xr(yt,"visibility","hidden");const fn=N.useFixed()?y3():Xm(l);ft.placement(l,ft,fn).each(Rn=>{const Bn=Be.orThunk(()=>N.getBounds.map(L)),er=jb(fn,Rn,Bn,fe,Lt,qe.transition);W.set(fe.uid,er)}),Ht.fold(()=>{zi(yt,"visibility")},Rn=>{xr(yt,"visibility",Rn)}),Ia(yt,"left").isNone()&&Ia(yt,"top").isNone()&&Ia(yt,"right").isNone()&&Ia(yt,"bottom").isNone()&&St(Ia(yt,"position"),"fixed")&&zi(yt,"position")},yt)};var PC=Object.freeze({__proto__:null,position:UM,positionWithinBounds:K4,getMode:(l,N,W)=>N.useFixed()?"fixed":"absolute",reset:(l,N,W,fe)=>{const Se=fe.element;q(["position","left","right","top","bottom"],Be=>zi(Se,Be)),o2(Se),W.clear(fe.uid)}}),x3=Object.freeze({__proto__:null,init:()=>{let l={};return Hd({readState:()=>l,clear:Se=>{a(Se)?delete l[Se]:l={}},set:(Se,Be)=>{l[Se]=Be},get:Se=>Ge(l,Se)})}});const Ph=id({fields:ph,name:"positioning",active:_y,apis:PC,state:x3}),O2=l=>l.getSystem().isConnected(),S2=l=>{Za(l,zp());const N=l.components();q(N,S2)},ww=l=>{const N=l.components();q(N,ww),Za(l,Oh())},J4=(l,N)=>{l.getSystem().addToWorld(N),Gn(l.element)&&ww(N)},Ow=l=>{S2(l),l.getSystem().removeFromWorld(l)},Sw=(l,N)=>{Bc(l.element,N.element)},Qb=l=>{q(l.components(),N=>gs(N.element)),vc(l.element),l.syncComponents()},ek=(l,N,W)=>{const fe=l.components();Qb(l);const Se=W(N),Be=Te(fe,Se);q(Be,qe=>{S2(qe),l.getSystem().removeFromWorld(qe)}),q(Se,qe=>{O2(qe)?Sw(l,qe):(l.getSystem().addToWorld(qe),Sw(l,qe),Gn(l.element)&&ww(qe))}),l.syncComponents()},_3=(l,N,W)=>{const fe=l.components(),Se=ve(N,ft=>df(ft).toArray());q(fe,ft=>{X(Se,ft)||Ow(ft)});const Be=W(N),qe=Te(fe,Be);q(qe,ft=>{O2(ft)&&Ow(ft)}),q(Be,ft=>{O2(ft)||J4(l,ft)}),l.syncComponents()},Eg=(l,N)=>{RC(l,N,Bc)},RC=(l,N,W)=>{l.getSystem().addToWorld(N),W(l.element,N.element),Gn(l.element)&&ww(N),l.syncComponents()},LC=l=>{S2(l),gs(l.element),l.getSystem().removeFromWorld(l)},kv=l=>{const N=Dr(l.element).bind(W=>l.getSystem().getByDom(W).toOptional());LC(l),N.each(W=>{W.syncComponents()})},pm=l=>{const N=l.components();q(N,LC),vc(l.element),l.syncComponents()},kw=(l,N)=>{Ry(l,N,Bc)},Hb=(l,N)=>{Ry(l,N,td)},Ry=(l,N,W)=>{W(l,N.element);const fe=Do(N.element);q(fe,Se=>{N.getByDom(Se).each(ww)})},tk=l=>{const N=Do(l.element);q(N,W=>{l.getByDom(W).each(S2)}),gs(l.element)},w3=(l,N,W,fe)=>{W.get().each(qe=>{pm(l)});const Se=N.getAttachPoint(l);Eg(Se,l);const Be=l.getSystem().build(fe);return Eg(l,Be),W.set(Be),Be},IC=(l,N,W,fe)=>{const Se=w3(l,N,W,fe);return N.onOpen(l,Se),Se},HM=(l,N,W,fe)=>W.get().map(()=>w3(l,N,W,fe)),ZM=(l,N,W,fe,Se)=>{rk(l,N),IC(l,N,W,fe),Se(),S3(l,N)},Zb=(l,N,W)=>{W.get().each(fe=>{pm(l),kv(l),N.onClose(l,fe),W.clear()})},nk=(l,N,W)=>W.isOpen(),k2=(l,N,W,fe)=>nk(l,N,W)&&W.get().exists(Se=>N.isPartOf(l,Se,fe)),Tw=(l,N,W)=>W.get(),qM=(l,N,W,fe)=>{Ia(l.element,N).fold(()=>{Qt(l.element,W)},Se=>{Cr(l.element,W,Se)}),xr(l.element,N,fe)},O3=(l,N,W)=>{Eo(l.element,W).fold(()=>zi(l.element,N),fe=>xr(l.element,N,fe))},rk=(l,N,W)=>{const fe=N.getAttachPoint(l);xr(l.element,"position",Ph.getMode(fe)),qM(l,"visibility",N.cloakVisibilityAttr,"hidden")},ok=l=>te(["top","left","right","bottom"],N=>Ia(l,N).isSome()),S3=(l,N,W)=>{ok(l.element)||zi(l.element,"position"),O3(l,"visibility",N.cloakVisibilityAttr)};var ik=Object.freeze({__proto__:null,cloak:rk,decloak:S3,open:IC,openWhileCloaked:ZM,close:Zb,isOpen:nk,isPartOf:k2,getState:Tw,setContent:HM}),k3=Object.freeze({__proto__:null,events:(l,N)=>Rl([Lo(Z1(),(W,fe)=>{Zb(W,l,N)})])}),T3=[Ss("onOpen"),Ss("onClose"),pn("isPartOf"),pn("getAttachPoint"),Ar("cloakVisibilityAttr","data-precloak-visibility")],A3=Object.freeze({__proto__:null,init:()=>{const l=ds(),N=x("not-implemented");return Hd({readState:N,isOpen:l.isSet,clear:l.clear,set:l.set,get:l.get})}});const Ys=id({fields:T3,name:"sandboxing",active:k3,apis:ik,state:A3}),_1=x("dismiss.popups"),qb=x("reposition.popups"),M3=x("mouse.released"),E3=Os([Ar("isExtraPart",D),Ai("fireEventInstead",[Ar("event",J0())])]),Ly=l=>{const N=Xt("Dismissal",E3,l);return{[_1()]:{schema:Os([pn("target")]),onReceive:(W,fe)=>{Ys.isOpen(W)&&(Ys.isPartOf(W,fe.target)||N.isExtraPart(W,fe.target)||N.fireEventInstead.fold(()=>Ys.close(W),Be=>Za(W,Be.event)))}}}},P3=Os([Ai("fireEventInstead",[Ar("event",F_())]),po("doReposition")]),ak=l=>{const N=Xt("Reposition",P3,l);return{[qb()]:{onReceive:W=>{Ys.isOpen(W)&&N.fireEventInstead.fold(()=>N.doReposition(W),fe=>Za(W,fe.event))}}}},sk=(l,N,W)=>{N.store.manager.onLoad(l,N,W)},lk=(l,N,W)=>{N.store.manager.onUnload(l,N,W)};var Cw=Object.freeze({__proto__:null,onLoad:sk,onUnload:lk,setValue:(l,N,W,fe)=>{N.store.manager.setValue(l,N,W,fe)},getValue:(l,N,W)=>N.store.manager.getValue(l,N,W),getState:(l,N,W)=>W}),R3=Object.freeze({__proto__:null,events:(l,N)=>{const W=l.resetOnDom?[wc((fe,Se)=>{sk(fe,l,N)}),xg((fe,Se)=>{lk(fe,l,N)})]:[Q_(l,N,sk)];return Rl(W)}});const L3=()=>{const l=wi(null),N=()=>({mode:"memory",value:l.get()}),W=()=>l.get()===null,fe=()=>{l.set(null)};return Hd({set:l.set,get:l.get,isNotSet:W,clear:fe,readState:N})},uk=()=>Hd({readState:v}),BC=()=>{const l=wi({}),N=wi({});return Hd({readState:()=>({mode:"dataset",dataByValue:l.get(),dataByText:N.get()}),lookup:qe=>Ge(l.get(),qe).orThunk(()=>Ge(N.get(),qe)),update:qe=>{const ft=l.get(),yt=N.get(),Lt={},Ht={};q(qe,fn=>{Lt[fn.value]=fn,Ge(fn,"meta").each(Rn=>{Ge(Rn,"text").each(Bn=>{Ht[Bn]=fn})})}),l.set({...ft,...Lt}),N.set({...yt,...Ht})},clear:()=>{l.set({}),N.set({})}})};var I3=Object.freeze({__proto__:null,memory:L3,dataset:BC,manual:uk,init:l=>l.store.manager.state(l)});const zC=(l,N,W,fe)=>{const Se=N.store;W.update([fe]),Se.setValue(l,fe),N.onSetValue(l,fe)},Gm=(l,N,W)=>{const fe=N.store,Se=fe.getDataKey(l);return W.lookup(Se).getOrThunk(()=>fe.getFallbackEntry(Se))},Ed=(l,N,W)=>{N.store.initialValue.each(Se=>{zC(l,N,W,Se)})},Av=(l,N,W)=>{W.clear()};var fk=[Yo("initialValue"),pn("getFallbackEntry"),pn("getDataKey"),pn("setValue"),Sl("manager",{setValue:zC,getValue:Gm,onLoad:Ed,onUnload:Av,state:BC})];const WM=(l,N,W)=>N.store.getValue(l),D3=(l,N,W,fe)=>{N.store.setValue(l,fe),N.onSetValue(l,fe)},dk=(l,N,W)=>{N.store.initialValue.each(fe=>{N.store.setValue(l,fe)})};var C2=[pn("getValue"),Ar("setValue",v),Yo("initialValue"),Sl("manager",{setValue:D3,getValue:WM,onLoad:dk,onUnload:v,state:uh.init})];const NC=(l,N,W,fe)=>{W.set(fe),N.onSetValue(l,fe)},YM=(l,N,W)=>W.get(),AD=(l,N,W)=>{N.store.initialValue.each(fe=>{W.isNotSet()&&W.set(fe)})},XM=(l,N,W)=>{W.clear()};var FC=[Yo("initialValue"),Sl("manager",{setValue:NC,getValue:YM,onLoad:AD,onUnload:XM,state:L3})],$C=[ns("store",{mode:"memory"},bn("mode",{memory:FC,manual:C2,dataset:fk})),Ss("onSetValue"),Ar("resetOnDom",!1)];const Ei=id({fields:$C,name:"representing",active:R3,apis:Cw,extra:{setValueFrom:(l,N)=>{const W=Ei.getValue(N);Ei.setValue(l,W)}},state:I3}),Pd=(l,N)=>Tt(l,{},re(N,W=>Wo(W.name(),"Cannot configure "+W.name()+" for "+l)).concat([gn("dump",R)])),Aw=l=>l.dump,Rd=(l,N)=>({...ei(N),...l.dump}),Km={field:Pd,augment:Rd,get:Aw},hk="placeholder",Yb=Nn.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Mw=l=>ht(l,"uiType"),Xb=(l,N,W,fe)=>l.exists(Se=>Se!==W.owner)?Yb.single(!0,x(W)):Ge(fe,W.name).fold(()=>{throw new Error("Unknown placeholder component: "+W.name+` +The behaviours that can trigger it are: `+JSON.stringify(re(N,W=>W.name),null,2)]),yy=(l,N,W)=>{const fe=N[W];return fe?e3("Event: "+W,"name",l,fe).map(Se=>{const Be=re(Se,qe=>qe.handler);return Vh(Be)}):Zd(W,l)},m0=(l,N)=>{const W=je(l,(fe,Se)=>(fe.length===1?aa.value(fe[0].handler):yy(fe,N,Se)).map(qe=>{const ft=e2(qe),yt=fe.length>1?me(N[Se],Lt=>te(fe,Ht=>Ht.name===Lt)).join(" > "):fe[0].name;return Sa(Se,lm(ft,yt))}));return Jc(W,{})},g0="alloy.base.behaviour",v0=Si([Ln("dom","dom",su(),Si([pn("tag"),Ar("styles",{}),Ar("classes",[]),Ar("attributes",{}),Yo("value"),Yo("innerHtml")])),pn("components"),pn("uid"),Ar("events",{}),Ar("apis",{}),Ln("eventOrder","eventOrder",wt({[Bp()]:["disabling",g0,"toggling","typeaheadevents"],[Oh()]:[g0,"focusing","keying"],[K0()]:[g0,"disabling","toggling","representing","tooltipping"],[vg()]:[g0,"representing","streaming","invalidating"],[zp()]:[g0,"representing","item-events","toolbar-button-events","tooltipping"],[Nc()]:["focusing",g0,"item-type-events"],[Uh()]:["focusing",g0,"item-type-events"],[wu()]:["item-type-events","tooltipping"],[yp()]:["receiving","reflecting","tooltipping"]}),Ut()),Yo("domModification")]),y0=l=>Rt("custom.definition",v0,l),Tf=l=>({...l.dom,uid:l.uid,domChildren:re(l.components,N=>N.element)}),vo=l=>l.domModification.fold(()=>np({}),np),Ab=l=>l.events,F=l=>l.dom.value,G=(l,N)=>{if(N===void 0)throw new Error("Value.set was undefined");l.dom.value=N},ue=(l,N,W)=>jn(l,N).map(Se=>{if(W.exists(qe=>!_o(qe,Se))){const qe=W.map(vr).getOr("span"),ft=Nt.fromTag(qe);return af(Se,ft),ft}else return Se}),Ae=(l,N,W)=>{W.fold(()=>Bc(l,N),fe=>{_o(fe,N)||(af(fe,N),gs(fe))})},He=(l,N,W)=>{const fe=re(N,W),Se=Do(l);return q(Se.slice(fe.length),gs),fe},nt=(l,N,W,fe)=>{const Se=jn(l,N),Be=fe(W,Se),qe=ue(l,N,Se);return Ae(l,Be.element,qe),Be},ct=(l,N,W)=>He(l,N,(fe,Se)=>nt(l,Se,fe,W)),Pt=(l,N)=>He(l,N,(W,fe)=>{const Se=jn(l,fe);return Ae(l,W,Se),W}),jt=(l,N)=>{const W=ke(l),fe=ke(N),Se=Te(fe,W),Be=Me(l,(qe,ft)=>!ht(N,ft)||qe!==N[ft]).t;return{toRemove:Se,toSet:Be}},hn=(l,N)=>{const{class:W,style:fe,...Se}=Mn(N),{toSet:Be,toRemove:qe}=jt(l.attributes,Se),ft=()=>{q(qe,jr=>Qt(N,jr)),wo(N,Be)},yt=Ds(N),{toSet:Lt,toRemove:Ht}=jt(l.styles,yt),fn=()=>{q(Ht,jr=>zi(N,jr)),Oo(N,Lt)},Rn=qc(N),Bn=Te(Rn,l.classes),er=Te(l.classes,Rn),cr=()=>{Og(N,er),Oc(N,Bn)},Xr=jr=>{d0(N,jr)},br=()=>{const jr=l.domChildren;Pt(N,jr)},Fr=()=>{const jr=N,Ro=l.value.getOrUndefined();Ro!==F(jr)&&G(jr,Ro??"")};return ft(),cr(),fn(),l.innerHtml.fold(br,Xr),Fr(),N},mn=l=>{const N=Nt.fromTag(l.tag);wo(N,l.attributes),Og(N,l.classes),Oo(N,l.styles),l.innerHtml.each(fe=>d0(N,fe));const W=l.domChildren;return xd(N,W),l.value.each(fe=>{G(N,fe)}),N},Dn=(l,N)=>{try{const W=hn(l,N);return I.some(W)}catch{return I.none()}},Xn=l=>l.innerHtml.isSome()&&l.domChildren.length>0,$n=(l,N)=>{const W=Se=>vr(Se)===l.tag&&!Xn(l)&&!Gx(Se),fe=N.filter(W).bind(Se=>Dn(l,Se)).getOrThunk(()=>mn(l));return ow(fe,l.uid),fe},mr=l=>{const N=Ge(l,"behaviours").getOr({});return ve(ke(N),W=>{const fe=N[W];return a(fe)?[fe.me]:[]})},Or=(l,N)=>uu(l,N),Kr=l=>{const N=mr(l);return Or(l,N)},Hr=(l,N,W)=>{const fe=Tf(l),Se=vo(l),Be={"alloy.base.modification":Se},qe=N.length>0?iw(W,Be,N,fe):Se;return jO(fe,qe)},fo=(l,N,W)=>{const fe={"alloy.base.behaviour":Ab(l)};return mv(W,l.eventOrder,N,fe).getOrDie()},mo=(l,N)=>{const W=()=>jr,fe=wi(dv),Se=Mt(y0(l)),Be=Kr(l),qe=Cb(Be),ft=Kx(Be),yt=Hr(Se,qe,ft),Lt=$n(yt,N),Ht=fo(Se,qe,ft),fn=wi(Se.components),Rn=Ro=>{fe.set(Ro)},Bn=()=>{fe.set(fv(W))},er=()=>{const Ro=Do(Lt),ko=ve(Ro,_i=>fe.get().getByDom(_i).fold(()=>[],Ie));fn.set(ko)},cr=Ro=>{const ko=ft;return(c(ko[Ro.name()])?ko[Ro.name()]:()=>{throw new Error("Could not find "+Ro.name()+" in "+JSON.stringify(l,null,2))})()},Xr=Ro=>c(ft[Ro.name()]),br=()=>Se.apis,Fr=Ro=>ft[Ro]().map(ko=>ko.state.readState()).getOr("not enabled"),jr={uid:l.uid,getSystem:fe.get,config:cr,hasConfigured:Xr,spec:l,readState:Fr,getApis:br,connect:Rn,disconnect:Bn,element:Lt,syncComponents:er,components:fn.get,events:Ht};return jr},Io=(l,N)=>{const W=Ge(l,"components").getOr([]);return N.fold(()=>re(W,ka),fe=>re(W,(Se,Be)=>ra(Se,jn(fe,Be))))},Qo=(l,N)=>{const{events:W,...fe}=c1(l),Se=Io(fe,N),Be={...fe,events:{...dc,...W},components:Se};return aa.value(mo(Be,N))},Po=l=>{const N=Nt.fromText(l);return Ii({element:N})},Ii=l=>{const N=Xt("external.component",Os([pn("element"),Yo("uid")]),l),W=wi(fv()),fe=ft=>{W.set(ft)},Se=()=>{W.set(fv(()=>qe))},Be=N.uid.getOrThunk(()=>vy("external"));ow(N.element,Be);const qe={uid:Be,getSystem:W.get,config:I.none,hasConfigured:D,connect:fe,disconnect:Se,getApis:()=>({}),element:N.element,spec:l,readState:x("No state"),syncComponents:v,components:x([]),events:{}};return hv(qe)},bi=vy,Zi=l=>ht(l,"uid"),ra=(l,N)=>df(l).getOrThunk(()=>{const W=Zi(l)?l:{uid:bi(""),...l};return Qo(W,N).getOrDie()}),ka=l=>ra(l,I.none()),ea=hv;var as=(l,N,W,fe,Se)=>l(W,fe)?I.some(W):c(Se)&&Se(W)?I.none():N(W,fe,Se);const Da=(l,N,W)=>{let fe=l.dom;const Se=c(W)?W:D;for(;fe.parentNode;){fe=fe.parentNode;const Be=Nt.fromDom(fe);if(N(Be))return I.some(Be);if(Se(Be))break}return I.none()},ba=(l,N,W)=>as((Se,Be)=>Be(Se),Da,l,N,W),fl=(l,N)=>{const W=l.dom;return W.parentNode?As(Nt.fromDom(W.parentNode),fe=>!_o(l,fe)&&N(fe)):I.none()},As=(l,N)=>{const W=Se=>N(Nt.fromDom(Se));return ce(l.dom.childNodes,W).map(Nt.fromDom)},hc=(l,N)=>{const W=fe=>{for(let Se=0;Seba(l,N,W).isSome(),Vs=l=>Fo(l),Fl=(l,N,W)=>Da(l,fe=>Yr(fe,N),W),kl=(l,N)=>fl(l,W=>Yr(W,N)),Fc=(l,N)=>As(l,W=>Yr(W,N)),qa=(l,N)=>Fo(N,l),Sc=(l,N,W)=>as((Se,Be)=>Yr(Se,Be),Fl,l,N,W),pc="aria-controls",sd=l=>ba(l,W=>{if(!lr(W))return!1;const fe=Nr(W,"id");return fe!==void 0&&fe.indexOf(pc)>-1}).bind(W=>{const fe=Nr(W,"id"),Se=kr(W);return qa(Se,`[${pc}="${fe}"]`)}),ld=()=>{const l=Li(pc);return{id:l,link:fe=>{Cr(fe,pc,l)},unlink:fe=>{Qt(fe,pc)}}},cd=(l,N)=>sd(N).exists(W=>Cf(l,W)),Cf=(l,N)=>os(N,W=>_o(W,l.element),D)||cd(l,N),xl=(l,N,W,fe,Se,Be,qe,ft=!1)=>({x:l,y:N,bubble:W,direction:fe,placement:Se,restriction:Be,label:`${qe}-${Se}`,alwaysFit:ft}),eu=Nn.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Td=(l,N,W,fe,Se,Be,qe,ft,yt)=>l.fold(N,W,fe,Se,Be,qe,ft,yt),Af=(l,N,W,fe)=>l.fold(N,N,fe,fe,N,fe,W,W),jf=(l,N,W,fe)=>l.fold(N,fe,N,fe,W,W,N,fe),Us=eu.southeast,_l=eu.southwest,fu=eu.northeast,ni=eu.northwest,Wc=eu.south,Yc=eu.north,$l=eu.east,Ru=eu.west,Eh=(l,N)=>{switch(N){case 1:return l.x;case 0:return l.x+l.width;case 2:return l.y;case 3:return l.y+l.height}},mc=(l,N)=>Pe(["left","right","top","bottom"],W=>Ge(N,W).map(fe=>Eh(l,fe))),dh=(l,N,W)=>{const fe=(yt,Lt)=>N[yt].map(Ht=>{const fn=yt==="top"||yt==="bottom",Rn=fn?W.top:W.left,er=(yt==="left"||yt==="top"?Math.max:Math.min)(Ht,Lt)+Rn;return fn?Mh(er,l.y,l.bottom):Mh(er,l.x,l.right)}).getOr(Lt),Se=fe("left",l.x),Be=fe("top",l.y),qe=fe("right",l.right),ft=fe("bottom",l.bottom);return vs(Se,Be,qe-Se,ft-Be)},hh="layout",Qm=l=>l.x,Qf=(l,N)=>l.x+l.width/2-N.width/2,tu=(l,N)=>l.x+l.width-N.width,qd=(l,N)=>l.y-N.height,Cd=l=>l.y+l.height,d1=(l,N)=>l.y+l.height/2-N.height/2,t2=l=>l.x+l.width,gv=(l,N)=>l.x-N.width,Lu=(l,N,W)=>xl(Qm(l),Cd(l),W.southeast(),Us(),"southeast",mc(l,{left:1,top:3}),hh),$c=(l,N,W)=>xl(tu(l,N),Cd(l),W.southwest(),_l(),"southwest",mc(l,{right:0,top:3}),hh),dl=(l,N,W)=>xl(Qm(l),qd(l,N),W.northeast(),fu(),"northeast",mc(l,{left:1,bottom:2}),hh),Mf=(l,N,W)=>xl(tu(l,N),qd(l,N),W.northwest(),ni(),"northwest",mc(l,{right:0,bottom:2}),hh),du=(l,N,W)=>xl(Qf(l,N),qd(l,N),W.north(),Yc(),"north",mc(l,{bottom:2}),hh),Iu=(l,N,W)=>xl(Qf(l,N),Cd(l),W.south(),Wc(),"south",mc(l,{top:3}),hh),vv=(l,N,W)=>xl(t2(l),d1(l,N),W.east(),$l(),"east",mc(l,{left:0}),hh),h1=(l,N,W)=>xl(gv(l,N),d1(l,N),W.west(),Ru(),"west",mc(l,{right:1}),hh),n2=()=>[Lu,$c,dl,Mf,Iu,du,vv,h1],by=()=>[$c,Lu,Mf,dl,Iu,du,vv,h1],p1=()=>[dl,Mf,Lu,$c,du,Iu],b0=()=>[Mf,dl,$c,Lu,du,Iu],Hm=()=>[Lu,$c,dl,Mf,Iu,du],yv=()=>[$c,Lu,Mf,dl,Iu,du],xy=(l,N)=>N.universal?l:me(l,W=>X(N.channels,W));var r2=Object.freeze({__proto__:null,events:l=>Rl([Lo(yp(),(N,W)=>{const fe=l.channels,Se=ke(fe),Be=W,qe=xy(Se,Be);q(qe,ft=>{const yt=fe[ft],Lt=yt.schema,Ht=Xt("channel["+ft+`] data +Receiver: `+a1(N.element),Lt,Be.data);yt.onReceive(N,Ht)})})])}),Mb=[In("channels",dt(aa.value,Os([Ah("onReceive"),Ar("schema",Ut())])))];const Ad=id({fields:Mb,name:"receiving",active:r2});var wy=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:[],styles:N.useFixed()?{}:{position:"relative"}})});const Md=(l,N=!1)=>l.dom.focus({preventScroll:N}),m1=l=>l.dom.blur(),_0=l=>{const N=kr(l).dom;return l.dom===N.activeElement},um=(l=Ac())=>I.from(l.dom.activeElement).map(Nt.fromDom),Wd=l=>um(kr(l)).filter(N=>l.dom.contains(N.dom)),w0=(l,N)=>{const W=kr(N),fe=um(W).bind(Be=>{const qe=ft=>_o(Be,ft);return qe(N)?I.some(N):hc(N,qe)}),Se=l(N);return fe.each(Be=>{um(W).filter(qe=>_o(qe,Be)).fold(()=>{Md(Be)},v)}),Se},Eb=Nn.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Oy=(l,N,W,fe,Se,Be)=>{const qe=N.rect,ft=qe.x-W,yt=qe.y-fe,Lt=qe.width,Ht=qe.height,fn=Se-(ft+Lt),Rn=Be-(yt+Ht),Bn=I.some(ft),er=I.some(yt),cr=I.some(fn),Xr=I.some(Rn),br=I.none();return Td(N.direction,()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,br,br,cr,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,Bn,br,br,Xr),()=>ff(l,Bn,er,br,br),()=>ff(l,br,er,cr,br))},aw=(l,N)=>l.fold(()=>{const W=N.rect;return ff("absolute",I.some(W.x),I.some(W.y),I.none(),I.none())},(W,fe,Se,Be)=>Oy("absolute",N,W,fe,Se,Be),(W,fe,Se,Be)=>Oy("fixed",N,W,fe,Se,Be)),Zm=(l,N)=>{const W=T(Au,N),fe=l.fold(W,W,()=>{const qe=yc();return Au(N).translate(-qe.left,-qe.top)}),Se=ma(N),Be=nf(N);return vs(fe.left,fe.top,Se,Be)},sw=(l,N)=>N.fold(()=>l.fold(ts,ts,vs),W=>l.fold(x(W),x(W),()=>{const fe=Pb(l,W.x,W.y);return vs(fe.left,fe.top,W.width,W.height)})),Pb=(l,N,W)=>{const fe=Qs(N,W),Se=()=>{const Be=yc();return fe.translate(-Be.left,-Be.top)};return l.fold(x(fe),x(fe),Se)},t3=(l,N,W,fe)=>l.fold(N,W,fe);Eb.none;const O0=Eb.relative,hu=Eb.fixed,ip=(l,N)=>({anchorBox:l,origin:N}),$4=(l,N)=>ip(l,N),qm="data-alloy-placement",lw=(l,N)=>{Cr(l,qm,N)},cw=l=>Eo(l,qm),o2=l=>Qt(l,qm),$p=Nn.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Rb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,right:yt,bottom:Lt,width:Ht,height:fn}=l,Rn=qe>=W&&qe<=Se,Bn=ft>=fe&&ft<=Be,er=Rn&&Bn,cr=yt<=Se&&yt>=W,Xr=Lt<=Be&&Lt>=fe,br=cr&&Xr,Fr=Math.min(Ht,qe>=W?Se-qe:yt-W),jr=Math.min(fn,ft>=fe?Be-ft:Lt-fe);return{originInBounds:er,sizeInBounds:br,visibleW:Fr,visibleH:jr}},Lb=(l,N)=>{const{x:W,y:fe,right:Se,bottom:Be}=N,{x:qe,y:ft,width:yt,height:Lt}=l,Ht=Math.max(W,Se-yt),fn=Math.max(fe,Be-Lt),Rn=Mh(qe,W,Ht),Bn=Mh(ft,fe,fn),er=Math.min(Rn+yt,Se)-Rn,cr=Math.min(Bn+Lt,Be)-Bn;return vs(Rn,Bn,er,cr)},Sy=(l,N,W)=>{const fe=x(N.bottom-W.y),Se=x(W.bottom-N.y),Be=Af(l,Se,Se,fe),qe=x(N.right-W.x),ft=x(W.right-N.x);return{maxWidth:jf(l,ft,ft,qe),maxHeight:Be}},bv=(l,N,W,fe)=>{const Se=l.bubble,Be=Se.offset,qe=dh(fe,l.restriction,Be),ft=l.x+Be.left,yt=l.y+Be.top,Lt=vs(ft,yt,N,W),{originInBounds:Ht,sizeInBounds:fn,visibleW:Rn,visibleH:Bn}=Rb(Lt,qe),er=Ht&&fn,cr=er?Lt:Lb(Lt,qe),Xr=cr.width>0&&cr.height>0,{maxWidth:br,maxHeight:Fr}=Sy(l.direction,cr,fe),jr={rect:cr,maxHeight:Fr,maxWidth:br,direction:l.direction,placement:l.placement,classes:{on:Se.classesOn,off:Se.classesOff},layout:l.label,testY:yt};return er||l.alwaysFit?$p.fit(jr):$p.nofit(jr,Rn,Bn,Xr)},uw=(l,N,W,fe,Se,Be)=>{const qe=fe.width,ft=fe.height,yt=(Ht,fn,Rn,Bn,er)=>{const cr=Ht(W,fe,Se,l,Be),Xr=bv(cr,qe,ft,Be);return Xr.fold(x(Xr),(br,Fr,jr,Ro)=>(er===Ro?jr>Bn||Fr>Rn:!er&&Ro)?Xr:$p.nofit(fn,Rn,Bn,er))};return se(N,(Ht,fn)=>{const Rn=T(yt,fn);return Ht.fold(x(Ht),Rn)},$p.nofit({rect:W,maxHeight:fe.height,maxWidth:fe.width,direction:Us(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:W.y},-1,-1,!1)).fold(R,R)},fw=k,ud=(l,N,W)=>yu(l,N,fw,W),i2=(l,N,W)=>jc(l,N,fw,W),a2=_f,s2=["top","bottom","right","left"],Ib="data-alloy-transition-timer",n3=(l,N)=>YO(l,N.classes),Ph=(l,N,W)=>W.exists(fe=>{const Se=l.mode;return Se==="all"?!0:fe[Se]!==N[Se]}),Db=(l,N)=>{const W=fe=>parseFloat(fe).toFixed(3);return tt(N,(fe,Se)=>{const Be=l[Se].map(W),qe=fe.map(W);return!Ft(Be,qe)}).isSome()},l2=l=>{const N=Be=>{const ft=Di(l,Be).split(/\s*,\s*/);return me(ft,it)},W=Be=>{if(n(Be)&&/^[\d.]+/.test(Be)){const qe=parseFloat(Be);return bt(Be,"ms")?qe:qe*1e3}else return 0},fe=N("transition-delay"),Se=N("transition-duration");return se(Se,(Be,qe,ft)=>{const yt=W(fe[ft])+W(qe);return Math.max(Be,yt)},0)},fm=(l,N)=>{const W=Ol(),fe=Ol();let Se;const Be=Lt=>{var Ht;const fn=(Ht=Lt.raw.pseudoElement)!==null&&Ht!==void 0?Ht:"";return _o(Lt.target,l)&&at(fn)&&X(s2,Lt.raw.propertyName)},qe=Lt=>{if(m(Lt)||Be(Lt)){W.clear(),fe.clear();const Ht=Lt==null?void 0:Lt.raw.type;(m(Ht)||Ht===rm())&&(clearTimeout(Se),Qt(l,Ib),Oc(l,N.classes))}},ft=ud(l,z_(),Lt=>{Be(Lt)&&(ft.unbind(),W.set(ud(l,rm(),qe)),fe.set(ud(l,VO(),qe)))}),yt=l2(l);requestAnimationFrame(()=>{Se=setTimeout(qe,yt+17),Cr(l,Ib,Se)})},r3=(l,N)=>{Og(l,N.classes),Eo(l,Ib).each(W=>{clearTimeout(parseInt(W,10)),Qt(l,Ib)}),fm(l,N)},xv=(l,N,W,fe,Se,Be)=>{const qe=Ph(fe,Se,Be);if(qe||n3(l,fe)){xr(l,"position",W.position);const ft=Zm(N,l),yt=aw(N,{...Se,rect:ft}),Lt=Pe(s2,Ht=>yt[Ht]);Db(W,Lt)&&(mi(l,Lt),qe&&r3(l,fe),yl(l))}else Oc(l,fe.classes)},g1=l=>({width:ma(l),height:nf(l)}),_v=(l,N,W,fe)=>{zi(N,"max-height"),zi(N,"max-width");const Se=g1(N);return uw(N,fe.preference,l,Se,W,fe.bounds)},wv=(l,N)=>{const W=N.classes;Oc(l,W.off),Og(l,W.on)},ky=(l,N,W)=>{const fe=W.maxHeightFunction;fe(l,N.maxHeight)},Ov=(l,N,W)=>{const fe=W.maxWidthFunction;fe(l,N.maxWidth)},dw=(l,N,W)=>{const fe=aw(W.origin,N);W.transition.each(Se=>{xv(l,W.origin,fe,Se,N,W.lastPlacement)}),dy(l,fe)},o3=(l,N)=>{lw(l,N.placement)},Bb=(l,N)=>{nh(l,Math.floor(N))},hw=x((l,N)=>{Bb(l,N),Oo(l,{"overflow-x":"hidden","overflow-y":"auto"})}),v1=x((l,N)=>{Bb(l,N)}),c2=(l,N,W)=>l[N]===void 0?W:l[N],Wm=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=c2(qe,"maxHeightFunction",hw()),Lt=c2(qe,"maxWidthFunction",v),Ht=l.anchorBox,fn=l.origin,Rn={bounds:sw(fn,Be),origin:fn,preference:fe,maxHeightFunction:yt,maxWidthFunction:Lt,lastPlacement:Se,transition:ft};return pw(Ht,N,W,Rn)},pw=(l,N,W,fe)=>{const Se=_v(l,N,W,fe);return dw(N,Se,fe),o3(N,Se),wv(N,Se),ky(N,Se,fe),Ov(N,Se,fe),{layout:Se.layout,placement:Se.placement}},mw=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],wp=(l,N,W,fe=1)=>{const Se=l*fe,Be=N*fe,qe=yt=>Ge(W,yt).getOr([]),ft=(yt,Lt,Ht)=>{const fn=Te(mw,Ht);return{offset:Qs(yt,Lt),classesOn:ve(Ht,qe),classesOff:ve(fn,qe)}};return{southeast:()=>ft(-l,N,["top","alignLeft"]),southwest:()=>ft(l,N,["top","alignRight"]),south:()=>ft(-l/2,N,["top","alignCentre"]),northeast:()=>ft(-l,-N,["bottom","alignLeft"]),northwest:()=>ft(l,-N,["bottom","alignRight"]),north:()=>ft(-l/2,-N,["bottom","alignCentre"]),east:()=>ft(l,-N/2,["valignCentre","left"]),west:()=>ft(-l,-N/2,["valignCentre","right"]),insetNortheast:()=>ft(Se,Be,["top","alignLeft","inset"]),insetNorthwest:()=>ft(-Se,Be,["top","alignRight","inset"]),insetNorth:()=>ft(-Se/2,Be,["top","alignCentre","inset"]),insetSoutheast:()=>ft(Se,-Be,["bottom","alignLeft","inset"]),insetSouthwest:()=>ft(-Se,-Be,["bottom","alignRight","inset"]),insetSouth:()=>ft(-Se/2,-Be,["bottom","alignCentre","inset"]),insetEast:()=>ft(-Se,-Be/2,["valignCentre","right","inset"]),insetWest:()=>ft(Se,-Be/2,["valignCentre","left","inset"])}},zb=()=>wp(0,0,{}),u2=R,Hf=(l,N)=>W=>V4(W)==="rtl"?N:l,V4=l=>Di(l,"direction")==="rtl"?"rtl":"ltr";var ap;(function(l){l.TopToBottom="toptobottom",l.BottomToTop="bottomtotop"})(ap||(ap={}));const Nb="data-alloy-vertical-dir",i3=l=>os(l,N=>lr(N)&&Nr(N,"data-alloy-vertical-dir")===ap.BottomToTop),dm=()=>Ai("layouts",[pn("onLtr"),pn("onRtl"),Yo("onBottomLtr"),Yo("onBottomRtl")]),Ty=(l,N,W,fe,Se,Be,qe)=>{const ft=qe.map(i3).getOr(!1),yt=N.layouts.map(Bn=>Bn.onLtr(l)),Lt=N.layouts.map(Bn=>Bn.onRtl(l)),Ht=ft?N.layouts.bind(Bn=>Bn.onBottomLtr.map(er=>er(l))).or(yt).getOr(Se):yt.getOr(W),fn=ft?N.layouts.bind(Bn=>Bn.onBottomRtl.map(er=>er(l))).or(Lt).getOr(Be):Lt.getOr(fe);return Hf(Ht,fn)(l)},f2=(l,N,W)=>{const fe=N.hotspot,Se=Zm(W,fe.element),Be=Ty(l.element,N,Hm(),yv(),p1(),b0(),I.some(N.hotspot.element));return I.some(u2({anchorBox:Se,bubble:N.bubble.getOr(zb()),overrides:N.overrides,layouts:Be}))};var a3=[pn("hotspot"),Yo("bubble"),Ar("overrides",{}),dm(),Sl("placement",f2)];const d2=(l,N,W)=>{const fe=Pb(W,N.x,N.y),Se=vs(fe.left,fe.top,N.width,N.height),Be=Ty(l.element,N,n2(),by(),n2(),by(),I.none());return I.some(u2({anchorBox:Se,bubble:N.bubble,overrides:N.overrides,layouts:Be}))};var s3=[pn("x"),pn("y"),Ar("height",0),Ar("width",0),Ar("bubble",zb()),Ar("overrides",{}),dm(),Sl("placement",d2)];const h2=Nn.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Fb=l=>l.fold(R,(N,W,fe)=>N.translate(-W,-fe)),l3=l=>l.fold(R,R),c3=l=>se(l,(N,W)=>N.translate(W.left,W.top),Qs(0,0)),U4=l=>{const N=re(l,Fb);return c3(N)},p2=l=>{const N=re(l,l3);return c3(N)},m2=h2.screen,Mg=h2.absolute,S0=(l,N,W)=>{const fe=ar(W.root).dom,Se=Be=>{const qe=Mo(Be),ft=Mo(l.element);return _o(qe,ft)};return I.from(fe.frameElement).map(Nt.fromDom).filter(Se).map(Tc)},gw=(l,N,W)=>{const fe=Mo(l.element),Se=yc(fe),Be=S0(l,N,W).getOr(Se);return Mg(Be,Se.left,Se.top)},y1=(l,N,W,fe)=>{const Se=m2(Qs(l,N));return I.some(lf(Se,W,fe))},g2=(l,N,W,fe,Se)=>l.map(Be=>{const qe=[N,Be.point],ft=t3(fe,()=>p2(qe),()=>p2(qe),()=>U4(qe)),yt=wf(ft.left,ft.top,Be.width,Be.height),Lt=W.showAbove?p1():Hm(),Ht=W.showAbove?b0():yv(),fn=Ty(Se,W,Lt,Ht,Lt,Ht,I.none());return u2({anchorBox:yt,bubble:W.bubble.getOr(zb()),overrides:W.overrides,layouts:fn})}),u3=(l,N,W)=>{const fe=gw(l,W,N);return N.node.filter(Gn).bind(Se=>{const Be=Se.dom.getBoundingClientRect(),qe=y1(Be.left,Be.top,Be.width,Be.height),ft=N.node.getOr(l.element);return g2(qe,fe,N,W,ft)})};var zM=[pn("node"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",u3)];const gC="\uFEFF",$b=" ",vw={create:(l,N,W,fe)=>({start:l,soffset:N,finish:W,foffset:fe})},Cy=Nn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yw=(l,N,W,fe)=>l.fold(N,W,fe),yC=l=>l.fold(R,R,R),bC=Cy.before,AD=Cy.on,NM=Cy.after,v2={before:bC,on:AD,after:NM,cata:yw,getStart:yC},b1=Nn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),FM=l=>b1.exact(l.start,l.soffset,l.finish,l.foffset),j4=l=>l.match({domRange:N=>Nt.fromDom(N.startContainer),relative:(N,W)=>v2.getStart(N),exact:(N,W,fe,Se)=>N}),xC=b1.domRange,_C=b1.relative,wC=b1.exact,Q4=l=>{const N=j4(l);return ar(N)},OC=vw.create,Ay={domRange:xC,relative:_C,exact:wC,exactFromRange:FM,getWin:Q4,range:OC},SC=(l,N)=>{N.fold(W=>{l.setStartBefore(W.dom)},(W,fe)=>{l.setStart(W.dom,fe)},W=>{l.setStartAfter(W.dom)})},Vb=(l,N)=>{N.fold(W=>{l.setEndBefore(W.dom)},(W,fe)=>{l.setEnd(W.dom,fe)},W=>{l.setEndAfter(W.dom)})},My=(l,N,W)=>{const fe=l.document.createRange();return SC(fe,N),Vb(fe,W),fe},bw=(l,N,W,fe,Se)=>{const Be=l.document.createRange();return Be.setStart(N.dom,W),Be.setEnd(fe.dom,Se),Be},y2=l=>({left:l.left,top:l.top,right:l.right,bottom:l.bottom,width:l.width,height:l.height}),f3=l=>{const N=l.getClientRects(),W=N.length>0?N[0]:l.getBoundingClientRect();return W.width>0||W.height>0?I.some(W).map(y2):I.none()},Ey=l=>{const N=l.getBoundingClientRect();return N.width>0||N.height>0?I.some(N).map(y2):I.none()},hm=Nn.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),H4=(l,N,W)=>N(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset),$M=(l,N)=>N.match({domRange:W=>({ltr:x(W),rtl:I.none}),relative:(W,fe)=>({ltr:Uc(()=>My(l,W,fe)),rtl:Uc(()=>I.some(My(l,fe,W)))}),exact:(W,fe,Se,Be)=>({ltr:Uc(()=>bw(l,W,fe,Se,Be)),rtl:Uc(()=>I.some(bw(l,Se,Be,W,fe)))})}),b2=(l,N)=>{const W=N.ltr();return W.collapsed?N.rtl().filter(Se=>Se.collapsed===!1).map(Se=>hm.rtl(Nt.fromDom(Se.endContainer),Se.endOffset,Nt.fromDom(Se.startContainer),Se.startOffset)).getOrThunk(()=>H4(l,hm.ltr,W)):H4(l,hm.ltr,W)},kC=(l,N)=>{const W=$M(l,N);return b2(l,W)},x2=(l,N)=>kC(l,N).match({ltr:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(fe.dom,Se),ft.setEnd(Be.dom,qe),ft},rtl:(fe,Se,Be,qe)=>{const ft=l.document.createRange();return ft.setStart(Be.dom,qe),ft.setEnd(fe.dom,Se),ft}});hm.ltr,hm.rtl;const _2=(l,N,W)=>me(go(l,W),N),Yd=(l,N)=>co(N,l),d3=(l,N,W,fe)=>{const Be=Mo(l).dom.createRange();return Be.setStart(l.dom,N),Be.setEnd(W.dom,fe),Be},xw=(l,N,W,fe)=>{const Se=d3(l,N,W,fe),Be=_o(l,W)&&N===fe;return Se.collapsed&&!Be},h3=l=>I.from(l.getSelection()),TC=l=>{if(l.rangeCount>0){const N=l.getRangeAt(0),W=l.getRangeAt(l.rangeCount-1);return I.some(vw.create(Nt.fromDom(N.startContainer),N.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}else return I.none()},Z4=l=>{if(l.anchorNode===null||l.focusNode===null)return TC(l);{const N=Nt.fromDom(l.anchorNode),W=Nt.fromDom(l.focusNode);return xw(N,l.anchorOffset,W,l.focusOffset)?I.some(vw.create(N,l.anchorOffset,W,l.focusOffset)):TC(l)}},p3=l=>h3(l).filter(N=>N.rangeCount>0).bind(Z4),Ef=(l,N)=>{const W=x2(l,N);return f3(W)},m3=(l,N)=>{const W=x2(l,N);return Ey(W)},CC=((l,N)=>{const W=Be=>{if(!l(Be))throw new Error("Can only get "+N+" value of a "+N+" node");return fe(Be).getOr("")},fe=Be=>l(Be)?I.from(Be.dom.nodeValue):I.none();return{get:W,getOption:fe,set:(Be,qe)=>{if(!l(Be))throw new Error("Can only set raw "+N+" value of a "+N+" node");Be.dom.nodeValue=qe}}})(zr,"text"),q4=l=>CC.get(l),Sv=(l,N)=>({element:l,offset:N}),_w=(l,N)=>{const W=Do(l);if(W.length===0)return Sv(l,N);if(Nzr(l)?Sv(l,N):_w(l,N),g3=l=>l.foffset!==void 0,v3=(l,N)=>N.getSelection.getOrThunk(()=>()=>p3(l))().map(fe=>{if(g3(fe)){const Se=w2(fe.start,fe.soffset),Be=w2(fe.finish,fe.foffset);return Ay.range(Se.element,Se.offset,Be.element,Be.offset)}else return fe}),Py=(l,N,W)=>{const fe=ar(N.root).dom,Se=gw(l,W,N),Be=v3(fe,N).bind(yt=>{if(g3(yt))return m3(fe,Ay.exactFromRange(yt)).orThunk(()=>{const Ht=Nt.fromText(gC);af(yt.start,Ht);const fn=Ef(fe,Ay.exact(Ht,0,Ht,1));return gs(Ht),fn}).bind(Ht=>y1(Ht.left,Ht.top,Ht.width,Ht.height));{const Lt=Ue(yt,fn=>fn.dom.getBoundingClientRect()),Ht={left:Math.min(Lt.firstCell.left,Lt.lastCell.left),right:Math.max(Lt.firstCell.right,Lt.lastCell.right),top:Math.min(Lt.firstCell.top,Lt.lastCell.top),bottom:Math.max(Lt.firstCell.bottom,Lt.lastCell.bottom)};return y1(Ht.left,Ht.top,Ht.right-Ht.left,Ht.bottom-Ht.top)}}),ft=v3(fe,N).bind(yt=>g3(yt)?lr(yt.start)?I.some(yt.start):Zr(yt.start):I.some(yt.firstCell)).getOr(l.element);return g2(Be,Se,N,W,ft)};var VM=[Yo("getSelection"),pn("root"),Yo("bubble"),dm(),Ar("overrides",{}),Ar("showAbove",!1),Sl("placement",Py)];const Vp="link-layout",k0=l=>l.x+l.width,W4=(l,N)=>l.x-N.width,AC=(l,N)=>l.y-N.height+l.height,MC=l=>l.y,Y4=(l,N,W)=>xl(k0(l),MC(l),W.southeast(),Us(),"southeast",mc(l,{left:0,top:2}),Vp),X4=(l,N,W)=>xl(W4(l,N),MC(l),W.southwest(),_l(),"southwest",mc(l,{right:1,top:2}),Vp),EC=(l,N,W)=>xl(k0(l),AC(l,N),W.northeast(),fu(),"northeast",mc(l,{left:0,bottom:3}),Vp),PC=(l,N,W)=>xl(W4(l,N),AC(l,N),W.northwest(),ni(),"northwest",mc(l,{right:1,bottom:3}),Vp),Op=()=>[Y4,X4,EC,PC],Ub=()=>[X4,Y4,PC,EC],G4=(l,N,W)=>{const fe=Zm(W,N.item.element),Se=Ty(l.element,N,Op(),Ub(),Op(),Ub(),I.none());return I.some(u2({anchorBox:fe,bubble:zb(),overrides:N.overrides,layouts:Se}))};var Ry=[pn("item"),dm(),Ar("overrides",{}),Sl("placement",G4)],Sp=bn("type",{selection:VM,node:zM,hotspot:a3,submenu:Ry,makeshift:s3});const Up=[Go("classes",ne),rl("mode","all",["all","layout","placement"])],ph=[Ar("useFixed",D),Yo("getBounds")],Ym=[In("anchor",Sp),Ai("transition",Up)],y3=()=>{const l=document.documentElement;return hu(0,0,l.clientWidth,l.clientHeight)},Xm=l=>{const N=Tc(l.element),W=l.element.dom.getBoundingClientRect();return O0(N.left,N.top,W.width,W.height)},jb=(l,N,W,fe,Se,Be)=>{const qe=$4(N.anchorBox,l);return Wm(qe,fe.element,N.bubble,N.layouts,Se,W,N.overrides,Be)},UM=(l,N,W,fe,Se)=>{const Be=I.none();K4(l,N,W,fe,Se,Be)},K4=(l,N,W,fe,Se,Be)=>{const qe=Xt("placement.info",Si(Ym),Se),ft=qe.anchor,yt=fe.element,Lt=W.get(fe.uid);w0(()=>{xr(yt,"position","fixed");const Ht=Ia(yt,"visibility");xr(yt,"visibility","hidden");const fn=N.useFixed()?y3():Xm(l);ft.placement(l,ft,fn).each(Rn=>{const Bn=Be.orThunk(()=>N.getBounds.map(L)),er=jb(fn,Rn,Bn,fe,Lt,qe.transition);W.set(fe.uid,er)}),Ht.fold(()=>{zi(yt,"visibility")},Rn=>{xr(yt,"visibility",Rn)}),Ia(yt,"left").isNone()&&Ia(yt,"top").isNone()&&Ia(yt,"right").isNone()&&Ia(yt,"bottom").isNone()&&St(Ia(yt,"position"),"fixed")&&zi(yt,"position")},yt)};var RC=Object.freeze({__proto__:null,position:UM,positionWithinBounds:K4,getMode:(l,N,W)=>N.useFixed()?"fixed":"absolute",reset:(l,N,W,fe)=>{const Se=fe.element;q(["position","left","right","top","bottom"],Be=>zi(Se,Be)),o2(Se),W.clear(fe.uid)}}),x3=Object.freeze({__proto__:null,init:()=>{let l={};return Hd({readState:()=>l,clear:Se=>{a(Se)?delete l[Se]:l={}},set:(Se,Be)=>{l[Se]=Be},get:Se=>Ge(l,Se)})}});const Rh=id({fields:ph,name:"positioning",active:wy,apis:RC,state:x3}),O2=l=>l.getSystem().isConnected(),S2=l=>{Za(l,zp());const N=l.components();q(N,S2)},ww=l=>{const N=l.components();q(N,ww),Za(l,Sh())},J4=(l,N)=>{l.getSystem().addToWorld(N),Gn(l.element)&&ww(N)},Ow=l=>{S2(l),l.getSystem().removeFromWorld(l)},Sw=(l,N)=>{Bc(l.element,N.element)},Qb=l=>{q(l.components(),N=>gs(N.element)),vc(l.element),l.syncComponents()},ek=(l,N,W)=>{const fe=l.components();Qb(l);const Se=W(N),Be=Te(fe,Se);q(Be,qe=>{S2(qe),l.getSystem().removeFromWorld(qe)}),q(Se,qe=>{O2(qe)?Sw(l,qe):(l.getSystem().addToWorld(qe),Sw(l,qe),Gn(l.element)&&ww(qe))}),l.syncComponents()},_3=(l,N,W)=>{const fe=l.components(),Se=ve(N,ft=>df(ft).toArray());q(fe,ft=>{X(Se,ft)||Ow(ft)});const Be=W(N),qe=Te(fe,Be);q(qe,ft=>{O2(ft)&&Ow(ft)}),q(Be,ft=>{O2(ft)||J4(l,ft)}),l.syncComponents()},Eg=(l,N)=>{LC(l,N,Bc)},LC=(l,N,W)=>{l.getSystem().addToWorld(N),W(l.element,N.element),Gn(l.element)&&ww(N),l.syncComponents()},IC=l=>{S2(l),gs(l.element),l.getSystem().removeFromWorld(l)},kv=l=>{const N=Dr(l.element).bind(W=>l.getSystem().getByDom(W).toOptional());IC(l),N.each(W=>{W.syncComponents()})},pm=l=>{const N=l.components();q(N,IC),vc(l.element),l.syncComponents()},kw=(l,N)=>{Ly(l,N,Bc)},Hb=(l,N)=>{Ly(l,N,td)},Ly=(l,N,W)=>{W(l,N.element);const fe=Do(N.element);q(fe,Se=>{N.getByDom(Se).each(ww)})},tk=l=>{const N=Do(l.element);q(N,W=>{l.getByDom(W).each(S2)}),gs(l.element)},w3=(l,N,W,fe)=>{W.get().each(qe=>{pm(l)});const Se=N.getAttachPoint(l);Eg(Se,l);const Be=l.getSystem().build(fe);return Eg(l,Be),W.set(Be),Be},DC=(l,N,W,fe)=>{const Se=w3(l,N,W,fe);return N.onOpen(l,Se),Se},HM=(l,N,W,fe)=>W.get().map(()=>w3(l,N,W,fe)),ZM=(l,N,W,fe,Se)=>{rk(l,N),DC(l,N,W,fe),Se(),S3(l,N)},Zb=(l,N,W)=>{W.get().each(fe=>{pm(l),kv(l),N.onClose(l,fe),W.clear()})},nk=(l,N,W)=>W.isOpen(),k2=(l,N,W,fe)=>nk(l,N,W)&&W.get().exists(Se=>N.isPartOf(l,Se,fe)),Tw=(l,N,W)=>W.get(),qM=(l,N,W,fe)=>{Ia(l.element,N).fold(()=>{Qt(l.element,W)},Se=>{Cr(l.element,W,Se)}),xr(l.element,N,fe)},O3=(l,N,W)=>{Eo(l.element,W).fold(()=>zi(l.element,N),fe=>xr(l.element,N,fe))},rk=(l,N,W)=>{const fe=N.getAttachPoint(l);xr(l.element,"position",Rh.getMode(fe)),qM(l,"visibility",N.cloakVisibilityAttr,"hidden")},ok=l=>te(["top","left","right","bottom"],N=>Ia(l,N).isSome()),S3=(l,N,W)=>{ok(l.element)||zi(l.element,"position"),O3(l,"visibility",N.cloakVisibilityAttr)};var ik=Object.freeze({__proto__:null,cloak:rk,decloak:S3,open:DC,openWhileCloaked:ZM,close:Zb,isOpen:nk,isPartOf:k2,getState:Tw,setContent:HM}),k3=Object.freeze({__proto__:null,events:(l,N)=>Rl([Lo(Z1(),(W,fe)=>{Zb(W,l,N)})])}),T3=[Ss("onOpen"),Ss("onClose"),pn("isPartOf"),pn("getAttachPoint"),Ar("cloakVisibilityAttr","data-precloak-visibility")],A3=Object.freeze({__proto__:null,init:()=>{const l=ds(),N=x("not-implemented");return Hd({readState:N,isOpen:l.isSet,clear:l.clear,set:l.set,get:l.get})}});const Ys=id({fields:T3,name:"sandboxing",active:k3,apis:ik,state:A3}),_1=x("dismiss.popups"),qb=x("reposition.popups"),M3=x("mouse.released"),E3=Os([Ar("isExtraPart",D),Ai("fireEventInstead",[Ar("event",J0())])]),Iy=l=>{const N=Xt("Dismissal",E3,l);return{[_1()]:{schema:Os([pn("target")]),onReceive:(W,fe)=>{Ys.isOpen(W)&&(Ys.isPartOf(W,fe.target)||N.isExtraPart(W,fe.target)||N.fireEventInstead.fold(()=>Ys.close(W),Be=>Za(W,Be.event)))}}}},P3=Os([Ai("fireEventInstead",[Ar("event",F_())]),po("doReposition")]),ak=l=>{const N=Xt("Reposition",P3,l);return{[qb()]:{onReceive:W=>{Ys.isOpen(W)&&N.fireEventInstead.fold(()=>N.doReposition(W),fe=>Za(W,fe.event))}}}},sk=(l,N,W)=>{N.store.manager.onLoad(l,N,W)},lk=(l,N,W)=>{N.store.manager.onUnload(l,N,W)};var Cw=Object.freeze({__proto__:null,onLoad:sk,onUnload:lk,setValue:(l,N,W,fe)=>{N.store.manager.setValue(l,N,W,fe)},getValue:(l,N,W)=>N.store.manager.getValue(l,N,W),getState:(l,N,W)=>W}),R3=Object.freeze({__proto__:null,events:(l,N)=>{const W=l.resetOnDom?[wc((fe,Se)=>{sk(fe,l,N)}),xg((fe,Se)=>{lk(fe,l,N)})]:[Q_(l,N,sk)];return Rl(W)}});const L3=()=>{const l=wi(null),N=()=>({mode:"memory",value:l.get()}),W=()=>l.get()===null,fe=()=>{l.set(null)};return Hd({set:l.set,get:l.get,isNotSet:W,clear:fe,readState:N})},uk=()=>Hd({readState:v}),zC=()=>{const l=wi({}),N=wi({});return Hd({readState:()=>({mode:"dataset",dataByValue:l.get(),dataByText:N.get()}),lookup:qe=>Ge(l.get(),qe).orThunk(()=>Ge(N.get(),qe)),update:qe=>{const ft=l.get(),yt=N.get(),Lt={},Ht={};q(qe,fn=>{Lt[fn.value]=fn,Ge(fn,"meta").each(Rn=>{Ge(Rn,"text").each(Bn=>{Ht[Bn]=fn})})}),l.set({...ft,...Lt}),N.set({...yt,...Ht})},clear:()=>{l.set({}),N.set({})}})};var I3=Object.freeze({__proto__:null,memory:L3,dataset:zC,manual:uk,init:l=>l.store.manager.state(l)});const NC=(l,N,W,fe)=>{const Se=N.store;W.update([fe]),Se.setValue(l,fe),N.onSetValue(l,fe)},Gm=(l,N,W)=>{const fe=N.store,Se=fe.getDataKey(l);return W.lookup(Se).getOrThunk(()=>fe.getFallbackEntry(Se))},Ed=(l,N,W)=>{N.store.initialValue.each(Se=>{NC(l,N,W,Se)})},Av=(l,N,W)=>{W.clear()};var fk=[Yo("initialValue"),pn("getFallbackEntry"),pn("getDataKey"),pn("setValue"),Sl("manager",{setValue:NC,getValue:Gm,onLoad:Ed,onUnload:Av,state:zC})];const WM=(l,N,W)=>N.store.getValue(l),D3=(l,N,W,fe)=>{N.store.setValue(l,fe),N.onSetValue(l,fe)},dk=(l,N,W)=>{N.store.initialValue.each(fe=>{N.store.setValue(l,fe)})};var C2=[pn("getValue"),Ar("setValue",v),Yo("initialValue"),Sl("manager",{setValue:D3,getValue:WM,onLoad:dk,onUnload:v,state:uh.init})];const FC=(l,N,W,fe)=>{W.set(fe),N.onSetValue(l,fe)},YM=(l,N,W)=>W.get(),MD=(l,N,W)=>{N.store.initialValue.each(fe=>{W.isNotSet()&&W.set(fe)})},XM=(l,N,W)=>{W.clear()};var $C=[Yo("initialValue"),Sl("manager",{setValue:FC,getValue:YM,onLoad:MD,onUnload:XM,state:L3})],VC=[ns("store",{mode:"memory"},bn("mode",{memory:$C,manual:C2,dataset:fk})),Ss("onSetValue"),Ar("resetOnDom",!1)];const Ei=id({fields:VC,name:"representing",active:R3,apis:Cw,extra:{setValueFrom:(l,N)=>{const W=Ei.getValue(N);Ei.setValue(l,W)}},state:I3}),Pd=(l,N)=>Tt(l,{},re(N,W=>Wo(W.name(),"Cannot configure "+W.name()+" for "+l)).concat([gn("dump",R)])),Aw=l=>l.dump,Rd=(l,N)=>({...ei(N),...l.dump}),Km={field:Pd,augment:Rd,get:Aw},hk="placeholder",Yb=Nn.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Mw=l=>ht(l,"uiType"),Xb=(l,N,W,fe)=>l.exists(Se=>Se!==W.owner)?Yb.single(!0,x(W)):Ge(fe,W.name).fold(()=>{throw new Error("Unknown placeholder component: "+W.name+` Known: [`+ke(fe)+`] Namespace: `+l.getOr("none")+` -Spec: `+JSON.stringify(W,null,2))},Se=>Se.replace()),Ew=(l,N,W,fe)=>Mw(W)&&W.uiType===hk?Xb(l,N,W,fe):Yb.single(!1,x(W)),VC=(l,N,W,fe)=>Ew(l,N,W,fe).fold((Be,qe)=>{const ft=Mw(W)?qe(N,W.config,W.validated):qe(N),yt=Ge(ft,"components").getOr([]),Lt=ve(yt,Ht=>VC(l,N,Ht,fe));return[{...ft,components:Lt}]},(Be,qe)=>{if(Mw(W)){const ft=qe(N,W.config,W.validated);return W.validated.preprocess.getOr(R)(ft)}else return qe(N)}),GM=(l,N,W,fe)=>ve(W,Se=>VC(l,N,Se,fe)),KM=(l,N)=>{let W=!1;const fe=()=>W,Se=()=>{if(W)throw new Error("Trying to use the same placeholder more than once: "+l);return W=!0,N},Be=()=>N.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(l),required:Be,used:fe,replace:Se}},A2=(l,N,W,fe)=>{const Se=Ue(fe,(qe,ft)=>KM(ft,qe)),Be=GM(l,N,W,Se);return We(Se,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list +Spec: `+JSON.stringify(W,null,2))},Se=>Se.replace()),Ew=(l,N,W,fe)=>Mw(W)&&W.uiType===hk?Xb(l,N,W,fe):Yb.single(!1,x(W)),UC=(l,N,W,fe)=>Ew(l,N,W,fe).fold((Be,qe)=>{const ft=Mw(W)?qe(N,W.config,W.validated):qe(N),yt=Ge(ft,"components").getOr([]),Lt=ve(yt,Ht=>UC(l,N,Ht,fe));return[{...ft,components:Lt}]},(Be,qe)=>{if(Mw(W)){const ft=qe(N,W.config,W.validated);return W.validated.preprocess.getOr(R)(ft)}else return qe(N)}),GM=(l,N,W,fe)=>ve(W,Se=>UC(l,N,Se,fe)),KM=(l,N)=>{let W=!1;const fe=()=>W,Se=()=>{if(W)throw new Error("Trying to use the same placeholder more than once: "+l);return W=!0,N},Be=()=>N.fold((qe,ft)=>qe,(qe,ft)=>qe);return{name:x(l),required:Be,used:fe,replace:Se}},A2=(l,N,W,fe)=>{const Se=Ue(fe,(qe,ft)=>KM(ft,qe)),Be=GM(l,N,W,Se);return We(Se,qe=>{if(qe.used()===!1&&qe.required())throw new Error("Placeholder: "+qe.name()+` was not found in components list Namespace: `+l.getOr("none")+` -Components: `+JSON.stringify(N.components,null,2))}),Be},Gb=Yb.single,pk=Yb.multiple,mk=x(hk),jp=Nn.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),w1=Ar("factory",{sketch:R}),B3=Ar("schema",[]),Pg=pn("name"),z3=Ln("pname","pname",Ca(l=>""),Ut()),JM=gn("schema",()=>[Yo("preprocess")]),N3=Ar("defaults",x({})),F3=Ar("overrides",x({})),eE=Si([w1,B3,Pg,z3,N3,F3]),tE=Si([w1,B3,Pg,N3,F3]),nE=Si([w1,B3,Pg,z3,N3,F3]),rE=Si([w1,JM,Pg,pn("unit"),z3,N3,F3]),$3=l=>l.fold(I.some,I.none,I.some,I.some),UC=l=>{const N=W=>W.name;return l.fold(N,N,N,N)},oE=l=>l.fold(R,R,R,R),V3=(l,N)=>W=>{const fe=Xt("Converting part type",N,W);return l(fe)},mh=V3(jp.required,eE),Jm=V3(jp.external,tE),mm=V3(jp.optional,nE),U3=V3(jp.group,rE),Pw=x("entirety");var MD=Object.freeze({__proto__:null,required:mh,external:Jm,optional:mm,group:U3,asNamedPart:$3,name:UC,asCommon:oE,original:Pw});const Rw=(l,N,W,fe)=>ws(N.defaults(l,W,fe),W,{uid:l.partUids[N.name]},N.overrides(l,W,fe)),iE=(l,N,W)=>{const fe={},Se={};return q(W,Be=>{Be.fold(qe=>{fe[qe.pname]=Gb(!0,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{const ft=N.parts[qe.name];Se[qe.name]=x(qe.factory.sketch(Rw(N,qe,ft[Pw()]),ft))},qe=>{fe[qe.pname]=Gb(!1,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{fe[qe.pname]=pk(!0,(ft,yt,Lt)=>{const Ht=ft[qe.name];return re(Ht,fn=>qe.factory.sketch(ws(qe.defaults(ft,fn,Lt),fn,qe.overrides(ft,fn))))})})}),{internals:x(fe),externals:x(Se)}},jC=(l,N)=>{const W={};return q(N,fe=>{$3(fe).each(Se=>{const Be=QC(l,Se.pname);W[Se.name]=qe=>{const ft=Xt("Part: "+Se.name+" in "+l,Si(Se.schema),qe);return{...Be,config:qe,validated:ft}}})}),W},QC=(l,N)=>({uiType:mk(),owner:l,name:N}),HC=(l,N,W)=>({uiType:mk(),owner:l,name:N,config:W,validated:{}}),aE=l=>ve(l,N=>N.fold(I.none,I.some,I.none,I.none).map(W=>si(W.name,W.schema.concat([l1(Pw())]))).toArray()),ZC=l=>re(l,UC),j3=(l,N,W)=>iE(l,N,W),qC=(l,N,W)=>A2(I.some(l),N,N.components,W),Jo=(l,N,W)=>{const fe=N.partUids[W];return l.getSystem().getByUid(fe).toOptional()},gm=(l,N,W)=>Jo(l,N,W).getOrDie("Could not find part: "+W),WC=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]))}),fe},gk=(l,N)=>{const W=l.getSystem();return Ue(N.partUids,(fe,Se)=>x(W.getByUid(fe)))},Lw=l=>ke(l.partUids),Kb=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]).getOrDie())}),fe},vk=(l,N)=>{const W=ZC(N);return ua(re(W,fe=>({key:fe,value:l+"-"+fe})))},Iw=l=>Ln("partUids","partUids",_u(N=>vk(N.uid,l)),Ut());var YC=Object.freeze({__proto__:null,generate:jC,generateOne:HC,schemas:aE,names:ZC,substitutes:j3,components:qC,defaultUids:vk,defaultUidsSchema:Iw,getAllParts:gk,getAllPartNames:Lw,getPart:Jo,getPartOrDie:gm,getParts:WC,getPartsOrDie:Kb});const sE=(l,N)=>(l.length>0?[si("parts",l)]:[]).concat([pn("uid"),Ar("dom",{}),Ar("components",[]),l1("originalSpec"),Ar("debug.sketcher",{})]).concat(N),yk=(l,N,W,fe,Se)=>{const Be=sE(fe,Se);return Xt(l+" [SpecSchema]",Os(Be.concat(N)),W)},Dw=(l,N,W,fe)=>{const Se=GC(fe),Be=yk(l,N,Se,[],[]);return W(Be,Se)},Iy=(l,N,W,fe,Se)=>{const Be=GC(Se),qe=aE(W),ft=Iw(W),yt=yk(l,N,Be,qe,[ft]),Lt=j3(l,yt,W),Ht=qC(l,yt,Lt.internals());return fe(yt,Ht,Be,Lt.externals())},XC=l=>ht(l,"uid"),GC=l=>XC(l)?l:{...l,uid:gy("uid")},lE=l=>l.uid!==void 0,bk=Os([pn("name"),pn("factory"),pn("configFields"),Ar("apis",{}),Ar("extraApis",{})]),cE=Os([pn("name"),pn("factory"),pn("configFields"),pn("partFields"),Ar("apis",{}),Ar("extraApis",{})]),Qp=l=>{const N=Xt("Sketcher for "+l.name,bk,l),W=Be=>Dw(N.name,N.configFields,N.factory,Be),fe=Ue(N.apis,Tb),Se=Ue(N.extraApis,(Be,qe)=>Y1(Be,qe));return{name:N.name,configFields:N.configFields,sketch:W,...fe,...Se}},Zh=l=>{const N=Xt("Sketcher for "+l.name,cE,l),W=qe=>Iy(N.name,N.configFields,N.partFields,N.factory,qe),fe=jC(N.name,N.partFields),Se=Ue(N.apis,Tb),Be=Ue(N.extraApis,(qe,ft)=>Y1(qe,ft));return{name:N.name,partFields:N.partFields,configFields:N.configFields,sketch:W,parts:fe,...Se,...Be}},M2=l=>Jr("input")(l)&&Nr(l,"type")!=="radio"||Jr("textarea")(l);var uE=Object.freeze({__proto__:null,getCurrent:(l,N,W)=>N.find(l)});const xk=[pn("find")],Xs=id({fields:xk,name:"composing",apis:uE}),fE=["input","button","textarea","select"],dE=(l,N,W)=>{(N.disabled()?Bw:_k)(l,N)},KC=(l,N)=>N.useNative===!0&&X(fE,vr(l.element)),PD=l=>zo(l.element,"disabled"),O1=l=>{Cr(l.element,"disabled","disabled")},Q3=l=>{Qt(l.element,"disabled")},hE=l=>Nr(l.element,"aria-disabled")==="true",pE=l=>{Cr(l.element,"aria-disabled","true")},JC=l=>{Cr(l.element,"aria-disabled","false")},Bw=(l,N,W)=>{N.disableClass.each(Se=>{uc(l.element,Se)}),(KC(l,N)?O1:pE)(l),N.onDisabled(l)},_k=(l,N,W)=>{N.disableClass.each(Se=>{Zc(l.element,Se)}),(KC(l,N)?Q3:JC)(l),N.onEnabled(l)},e6=(l,N)=>KC(l,N)?PD(l):hE(l);var E2=Object.freeze({__proto__:null,enable:_k,disable:Bw,isDisabled:e6,onLoad:dE,set:(l,N,W,fe)=>{(fe?Bw:_k)(l,N)}}),t6=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:N.disabled()?N.disableClass.toArray():[]}),events:(l,N)=>Rl([zx(Bp(),(W,fe)=>e6(W,l)),Q_(l,N,dE)])}),mE=[ys("disabled",D),Ar("useNative",!0),Yo("disableClass"),Ss("onDisabled"),Ss("onEnabled")];const he=id({fields:mE,name:"disabling",active:t6,apis:E2}),Ce=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.highlightClass);q(Se,Be=>{te(fe,ft=>_o(ft.element,Be))||(Zc(Be,N.highlightClass),l.getSystem().getByDom(Be).each(ft=>{N.onDehighlight(l,ft),Za(ft,cu())}))})},Xe=(l,N,W)=>Ce(l,N,W,[]),lt=(l,N,W,fe)=>{Mr(l,N,W,fe)&&(Zc(fe.element,N.highlightClass),N.onDehighlight(l,fe),Za(fe,cu()))},Ct=(l,N,W,fe)=>{Ce(l,N,W,[fe]),Mr(l,N,W,fe)||(uc(fe.element,N.highlightClass),N.onHighlight(l,fe),Za(fe,e1()))},Wt=(l,N,W)=>{ki(l,N).each(fe=>{Ct(l,N,W,fe)})},kn=(l,N,W)=>{xi(l,N).each(fe=>{Ct(l,N,W,fe)})},Vn=(l,N,W,fe)=>{ti(l,N,W,fe).fold(Se=>{throw Se},Se=>{Ct(l,N,W,Se)})},or=(l,N,W,fe)=>{const Se=oi(l,N);ce(Se,fe).each(qe=>{Ct(l,N,W,qe)})},Mr=(l,N,W,fe)=>rp(fe.element,N.highlightClass),no=(l,N,W)=>qa(l.element,"."+N.highlightClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),ti=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return I.from(Se[fe]).fold(()=>aa.error(new Error("No element found with index "+fe)),l.getSystem().getByDom)},ki=(l,N,W)=>qa(l.element,"."+N.itemClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),xi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return(fe.length>0?I.some(fe[fe.length-1]):I.none()).bind(Be=>l.getSystem().getByDom(Be).toOptional())},fi=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return de(Se,qe=>rp(qe,N.highlightClass)).bind(qe=>{const ft=uv(qe,fe,0,Se.length-1);return l.getSystem().getByDom(Se[ft]).toOptional()})},Vi=(l,N,W)=>fi(l,N,W,-1),Xo=(l,N,W)=>fi(l,N,W,1),oi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return zt(re(fe,Se=>l.getSystem().getByDom(Se).toOptional()))};var wa=Object.freeze({__proto__:null,dehighlightAll:Xe,dehighlight:lt,highlight:Ct,highlightFirst:Wt,highlightLast:kn,highlightAt:Vn,highlightBy:or,isHighlighted:Mr,getHighlighted:no,getFirst:ki,getLast:xi,getPrevious:Vi,getNext:Xo,getCandidates:oi}),Pa=[pn("highlightClass"),pn("itemClass"),Ss("onHighlight"),Ss("onDehighlight")];const ta=id({fields:Pa,name:"highlighting",apis:wa}),nu=[8],Ll=[9],$u=[13],vm=[27],gh=[32],Jb=[37],ex=[38],Tl=[39],Ld=[40],sp=(l,N,W)=>{const fe=we(l.slice(0,N)),Se=we(l.slice(N+1));return ce(fe.concat(Se),W)},Rg=(l,N,W)=>{const fe=we(l.slice(0,N));return ce(fe,W)},ym=(l,N,W)=>{const fe=l.slice(0,N),Se=l.slice(N+1);return ce(Se.concat(fe),W)},P2=(l,N,W)=>{const fe=l.slice(N+1);return ce(fe,W)},Wa=l=>N=>{const W=N.raw;return X(l,W.which)},bm=l=>N=>_e(l,W=>W(N)),Lg=l=>l.raw.shiftKey===!0,S1=l=>l.raw.ctrlKey===!0,Zf=P(Lg),el=(l,N)=>({matches:l,classification:N}),Ok=(l,N)=>ce(l,fe=>fe.matches(N)).map(fe=>fe.classification),Sk=(l,N,W)=>{N.exists(Se=>W.exists(Be=>_o(Be,Se)))||sa(l,q1(),{prevFocus:N,newFocus:W})},H3=()=>{const l=W=>Wd(W.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().triggerFocus(fe,W.element);const Be=l(W);Sk(W,Se,Be)}}},n6=()=>{const l=W=>ta.getHighlighted(W).map(fe=>fe.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().getByDom(fe).fold(v,qe=>{ta.highlight(W,qe)});const Be=l(W);Sk(W,Se,Be)}}};var Mv;(function(l){l.OnFocusMode="onFocus",l.OnEnterOrSpaceMode="onEnterOrSpace",l.OnApiMode="onApi"})(Mv||(Mv={}));const tx=(l,N,W,fe,Se)=>{const Be=()=>l.concat([Ar("focusManager",H3()),ns("focusInside","onFocus",rt(Lt=>X(["onFocus","onEnterOrSpace","onApi"],Lt)?aa.value(Lt):aa.error("Invalid value for focusInside"))),Sl("handler",yt),Sl("state",N),Sl("sendFocusIn",Se)]),qe=(Lt,Ht,fn,Rn,Bn)=>{const er=fn(Lt,Ht,Rn,Bn);return Ok(er,Ht.event).bind(cr=>cr(Lt,Ht,Rn,Bn))},yt={schema:Be,processKey:qe,toEvents:(Lt,Ht)=>{const fn=Lt.focusInside!==Mv.OnFocusMode?I.none():Se(Lt).map(er=>Lo(wh(),(cr,Xr)=>{er(cr,Lt,Ht),Xr.stop()})),Rn=(er,cr)=>{const Xr=Wa(gh.concat($u))(cr.event);Lt.focusInside===Mv.OnEnterOrSpaceMode&&Xr&&lh(er,cr)&&Se(Lt).each(br=>{br(er,Lt,Ht),cr.stop()})},Bn=[Lo(nm(),(er,cr)=>{qe(er,cr,W,Lt,Ht).fold(()=>{Rn(er,cr)},Xr=>{cr.stop()})}),Lo(G0(),(er,cr)=>{qe(er,cr,fe,Lt,Ht).each(Xr=>{cr.stop()})})];return Rl(fn.toArray().concat(Bn))}};return yt},R2=l=>{const N=[Yo("onEscape"),Yo("onEnter"),Ar("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ar("firstTabstop",0),Ar("useTabstopAt",k),Yo("visibilitySelector")].concat([l]),W=(br,Fr)=>{const jr=br.visibilitySelector.bind(Ro=>Sc(Fr,Ro)).getOr(Fr);return il(jr)>0},fe=(br,Fr)=>{const jr=Yd(br.element,Fr.selector),Ro=me(jr,ko=>W(Fr,ko));return I.from(Ro[Fr.firstTabstop])},Se=(br,Fr)=>Fr.focusManager.get(br).bind(jr=>Sc(jr,Fr.selector)),Be=(br,Fr)=>W(br,Fr)&&br.useTabstopAt(Fr),qe=(br,Fr,jr)=>{fe(br,Fr).each(Ro=>{Fr.focusManager.set(br,Ro)})},ft=(br,Fr,jr,Ro,ko)=>ko(Fr,jr,_i=>Be(Ro,_i)).fold(()=>Ro.cyclic?I.some(!0):I.none(),_i=>(Ro.focusManager.set(br,_i),I.some(!0))),yt=(br,Fr,jr,Ro)=>{const ko=Yd(br.element,jr.selector);return Se(br,jr).bind(_i=>de(ko,T(_o,_i)).bind(Ao=>ft(br,ko,Ao,jr,Ro)))},Lt=(br,Fr,jr)=>{const Ro=jr.cyclic?sp:Rg;return yt(br,Fr,jr,Ro)},Ht=(br,Fr,jr)=>{const Ro=jr.cyclic?ym:P2;return yt(br,Fr,jr,Ro)},fn=br=>Sr(br).bind(Rr).exists(Fr=>_o(Fr,br)),Rn=(br,Fr,jr)=>Se(br,jr).filter(Ro=>!jr.useTabstopAt(Ro)).bind(Ro=>(fn(Ro)?Lt:Ht)(br,Fr,jr)),Bn=(br,Fr,jr)=>jr.onEnter.bind(Ro=>Ro(br,Fr)),er=(br,Fr,jr)=>jr.onEscape.bind(Ro=>Ro(br,Fr)),cr=x([el(bm([Lg,Wa(Ll)]),Lt),el(Wa(Ll),Ht),el(bm([Zf,Wa($u)]),Bn)]),Xr=x([el(Wa(vm),er),el(Wa(Ll),Rn)]);return tx(N,uh.init,cr,Xr,()=>I.some(qe))};var Fq=R2(gn("cyclic",D)),$q=R2(gn("cyclic",k));const kk=(l,N,W)=>(t1(l,W,Bp()),I.some(!0)),Z3=(l,N,W)=>M2(W)&&Wa(gh)(N.event)?I.none():kk(l,N,W),zw=(l,N)=>I.some(!0),gE=[Ar("execute",Z3),Ar("useSpace",!1),Ar("useEnter",!0),Ar("useControlEnter",!1),Ar("useDown",!1)],ID=(l,N,W)=>W.execute(l,N,l.element),DD=(l,N,W,fe)=>{const Se=W.useSpace&&!M2(l.element)?gh:[],Be=W.useEnter?$u:[],qe=W.useDown?Ld:[],ft=Se.concat(Be).concat(qe);return[el(Wa(ft),ID)].concat(W.useControlEnter?[el(bm([S1,Wa($u)]),ID)]:[])},Vq=(l,N,W,fe)=>W.useSpace&&!M2(l.element)?[el(Wa(gh),zw)]:[];var BD=tx(gE,uh.init,DD,Vq,()=>I.none());const vE=()=>{const l=ds();return Hd({readState:()=>l.get().map(Se=>({numRows:String(Se.numRows),numColumns:String(Se.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(Se,Be)=>{l.set({numRows:Se,numColumns:Be})},getNumRows:()=>l.get().map(Se=>Se.numRows),getNumColumns:()=>l.get().map(Se=>Se.numColumns)})};var Uq=Object.freeze({__proto__:null,flatgrid:vE,init:l=>l.state(l)});const zD=l=>(N,W,fe,Se)=>{const Be=l(N.element);return Tk(Be,N,W,fe,Se)},yE=(l,N)=>{const W=Hf(l,N);return zD(W)},bE=(l,N)=>{const W=Hf(N,l);return zD(W)},xE=l=>(N,W,fe,Se)=>Tk(l,N,W,fe,Se),Tk=(l,N,W,fe,Se)=>fe.focusManager.get(N).bind(qe=>l(N.element,qe,fe,Se)).map(qe=>(fe.focusManager.set(N,qe),!0)),r6=xE,ND=xE,_E=xE,FD=l=>l.offsetWidth<=0&&l.offsetHeight<=0,$D=l=>!FD(l.dom),jq=(l,N)=>de(l,N).map(W=>({index:W,candidates:l})),Ig=(l,N,W)=>{const fe=qe=>_o(qe,N),Se=Yd(l,W),Be=me(Se,$D);return jq(Be,fe)},VD=(l,N)=>de(l,W=>_o(N,W)),UD=(l,N,W,fe)=>{const Se=Math.floor(N/W),Be=N%W;return fe(Se,Be).bind(qe=>{const ft=qe.row*W+qe.column;return ft>=0&&ftUD(l,N,fe,(Be,qe)=>{const yt=Be===W-1?l.length-Be*fe:fe,Lt=uv(qe,Se,0,yt-1);return I.some({row:Be,column:Lt})}),QD=(l,N,W,fe,Se)=>UD(l,N,fe,(Be,qe)=>{const ft=uv(Be,Se,0,W-1),Lt=ft===W-1?l.length-ft*fe:fe,Ht=Ah(qe,0,Lt-1);return I.some({row:ft,column:Ht})}),Qq=(l,N,W,fe)=>jD(l,N,W,fe,1),q3=(l,N,W,fe)=>jD(l,N,W,fe,-1),wE=(l,N,W,fe)=>QD(l,N,W,fe,-1),Hq=(l,N,W,fe)=>QD(l,N,W,fe,1),OE=[pn("selector"),Ar("execute",Z3),kd("onEscape"),Ar("captureTab",!1),Yx()],o6=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},SE=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Zq=(l,N,W,fe)=>SE(l,W).bind(Se=>W.execute(l,N,Se)),i6=l=>(N,W,fe,Se)=>Ig(N,W,fe.selector).bind(Be=>l(Be.candidates,Be.index,Se.getNumRows().getOr(fe.initSize.numRows),Se.getNumColumns().getOr(fe.initSize.numColumns))),HD=(l,N,W)=>W.captureTab?I.some(!0):I.none(),qq=(l,N,W)=>W.onEscape(l,N),ZD=i6(q3),qD=i6(Qq),Wq=i6(wE),WD=i6(Hq),a6=x([el(Wa(Jb),yE(ZD,qD)),el(Wa(Tl),bE(ZD,qD)),el(Wa(ex),r6(Wq)),el(Wa(Ld),ND(WD)),el(bm([Lg,Wa(Ll)]),HD),el(bm([Zf,Wa(Ll)]),HD),el(Wa(gh.concat($u)),Zq)]),Yq=x([el(Wa(vm),qq),el(Wa(gh),zw)]);var Xq=tx(OE,vE,a6,Yq,()=>I.some(o6));const YD=(l,N,W,fe,Se)=>{const Be=ft=>vr(ft)==="button"&&Nr(ft,"disabled")==="disabled",qe=(ft,yt,Lt)=>Se(ft,yt,fe,0,Lt.length-1,Lt[yt],Ht=>Be(Lt[Ht])?qe(ft,Ht,Lt):I.from(Lt[Ht]));return Ig(l,W,N).bind(ft=>{const yt=ft.index,Lt=ft.candidates;return qe(yt,yt,Lt)})},XD=(l,N,W,fe)=>YD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=Ah(Be+qe,ft,yt);return fn===Se?I.from(Lt):Ht(fn)}),nx=(l,N,W,fe)=>YD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=uv(Be,qe,ft,yt);return fn===Se?I.none():Ht(fn)}),GD=[pn("selector"),Ar("getInitial",I.none),Ar("execute",Z3),kd("onEscape"),Ar("executeOnMove",!1),Ar("allowVertical",!0),Ar("allowHorizontal",!0),Ar("cycles",!0)],Gq=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Ck=(l,N,W)=>Gq(l,W).bind(fe=>W.execute(l,N,fe)),Kq=(l,N,W)=>{N.getInitial(l).orThunk(()=>qa(l.element,N.selector)).each(fe=>{N.focusManager.set(l,fe)})},kE=(l,N,W)=>(W.cycles?nx:XD)(l,W.selector,N,-1),TE=(l,N,W)=>(W.cycles?nx:XD)(l,W.selector,N,1),CE=l=>(N,W,fe,Se)=>l(N,W,fe,Se).bind(()=>fe.executeOnMove?Ck(N,W,fe):I.some(!0)),KD=(l,N,W)=>W.onEscape(l,N),JD=(l,N,W,fe)=>{const Se=[...W.allowHorizontal?Jb:[]].concat(W.allowVertical?ex:[]),Be=[...W.allowHorizontal?Tl:[]].concat(W.allowVertical?Ld:[]);return[el(Wa(Se),CE(yE(kE,TE))),el(Wa(Be),CE(bE(kE,TE))),el(Wa($u),Ck),el(Wa(gh),Ck)]},Jq=x([el(Wa(gh),zw),el(Wa(vm),KD)]);var eW=tx(GD,uh.init,JD,Jq,()=>I.some(Kq));const s6=(l,N,W)=>I.from(l[N]).bind(fe=>I.from(fe[W]).map(Se=>({rowIndex:N,columnIndex:W,cell:Se}))),l6=(l,N,W,fe)=>{const Be=l[N].length,qe=uv(W,fe,0,Be-1);return s6(l,N,qe)},eB=(l,N,W,fe)=>{const Se=uv(W,fe,0,l.length-1),Be=l[Se].length,qe=Ah(N,0,Be-1);return s6(l,Se,qe)},Ak=(l,N,W,fe)=>{const Be=l[N].length,qe=Ah(W+fe,0,Be-1);return s6(l,N,qe)},tB=(l,N,W,fe)=>{const Se=Ah(W+fe,0,l.length-1),Be=l[Se].length,qe=Ah(N,0,Be-1);return s6(l,Se,qe)},nB=(l,N,W)=>l6(l,N,W,1),Hp=(l,N,W)=>l6(l,N,W,-1),tW=(l,N,W)=>eB(l,W,N,-1),rB=(l,N,W)=>eB(l,W,N,1),oB=(l,N,W)=>Ak(l,N,W,-1),nW=(l,N,W)=>Ak(l,N,W,1),iB=(l,N,W)=>tB(l,W,N,-1),aB=(l,N,W)=>tB(l,W,N,1),rW=[si("selectors",[pn("row"),pn("cell")]),Ar("cycles",!0),Ar("previousSelector",I.none),Ar("execute",Z3)],oW=(l,N,W)=>{N.previousSelector(l).orThunk(()=>{const Se=N.selectors;return qa(l.element,Se.cell)}).each(Se=>{N.focusManager.set(l,Se)})},iW=(l,N,W)=>Wd(l.element).bind(fe=>W.execute(l,N,fe)),aW=(l,N)=>re(l,W=>Yd(W,N.selectors.cell)),Mk=(l,N)=>(W,fe,Se)=>{const Be=Se.cycles?l:N;return Sc(fe,Se.selectors.row).bind(qe=>{const ft=Yd(qe,Se.selectors.cell);return VD(ft,fe).bind(yt=>{const Lt=Yd(W,Se.selectors.row);return VD(Lt,qe).bind(Ht=>{const fn=aW(Lt,Se);return Be(fn,Ht,yt).map(Rn=>Rn.cell)})})})},sB=Mk(Hp,oB),lB=Mk(nB,nW),cB=Mk(tW,iB),uB=Mk(rB,aB),fB=x([el(Wa(Jb),yE(sB,lB)),el(Wa(Tl),bE(sB,lB)),el(Wa(ex),r6(cB)),el(Wa(Ld),ND(uB)),el(Wa(gh.concat($u)),iW)]),sW=x([el(Wa(gh),zw)]);var lW=tx(rW,uh.init,fB,sW,()=>I.some(oW));const cW=[pn("selector"),Ar("execute",Z3),Ar("moveOnTab",!1)],dB=(l,N,W)=>W.focusManager.get(l).bind(fe=>W.execute(l,N,fe)),hB=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},AE=(l,N,W)=>nx(l,W.selector,N,-1),rx=(l,N,W)=>nx(l,W.selector,N,1),pB=(l,N,W,fe)=>W.moveOnTab?_E(AE)(l,N,W,fe):I.none(),mB=(l,N,W,fe)=>W.moveOnTab?_E(rx)(l,N,W,fe):I.none(),gB=x([el(Wa(ex),_E(AE)),el(Wa(Ld),_E(rx)),el(bm([Lg,Wa(Ll)]),pB),el(bm([Zf,Wa(Ll)]),mB),el(Wa($u),dB),el(Wa(gh),dB)]),uW=x([el(Wa(gh),zw)]);var W3=tx(cW,uh.init,gB,uW,()=>I.some(hB));const fW=[kd("onSpace"),kd("onEnter"),kd("onShiftEnter"),kd("onLeft"),kd("onRight"),kd("onTab"),kd("onShiftTab"),kd("onUp"),kd("onDown"),kd("onEscape"),Ar("stopSpaceKeyup",!1),Yo("focusIn")],dW=(l,N,W)=>[el(Wa(gh),W.onSpace),el(bm([Zf,Wa($u)]),W.onEnter),el(bm([Lg,Wa($u)]),W.onShiftEnter),el(bm([Lg,Wa(Ll)]),W.onShiftTab),el(bm([Zf,Wa(Ll)]),W.onTab),el(Wa(ex),W.onUp),el(Wa(Ld),W.onDown),el(Wa(Jb),W.onLeft),el(Wa(Tl),W.onRight),el(Wa(gh),W.onSpace)],vB=(l,N,W)=>[...W.stopSpaceKeyup?[el(Wa(gh),zw)]:[],el(Wa(vm),W.onEscape)];var hW=tx(fW,uh.init,dW,vB,l=>l.focusIn);const pW=Fq.schema(),mW=$q.schema(),yB=eW.schema(),ME=Xq.schema(),EE=lW.schema(),gW=BD.schema(),L2=W3.schema(),bB=hW.schema();var xB=Object.freeze({__proto__:null,acyclic:pW,cyclic:mW,flow:yB,flatgrid:ME,matrix:EE,execution:gW,menu:L2,special:bB});const vW=l=>pt(l,"setGridSize"),ha=HO({branchKey:"mode",branches:xB,name:"keying",active:{events:(l,N)=>l.handler.toEvents(l,N)},apis:{focusIn:(l,N,W)=>{N.sendFocusIn(N).fold(()=>{l.getSystem().triggerFocus(l.element,l.element)},fe=>{fe(l,N,W)})},setGridSize:(l,N,W,fe,Se)=>{vW(W)?W.setGridSize(fe,Se):console.error("Layout does not support setGridSize")}},state:Uq}),Y3=(l,N)=>{w0(()=>{ek(l,N,()=>re(N,l.getSystem().build))},l.element)},X3=(l,N)=>{w0(()=>{_3(l,N,()=>ct(l.element,N,l.getSystem().buildOrPatch))},l.element)},_B=(l,N,W,fe)=>{Ow(N);const Se=nt(l.element,W,fe,l.getSystem().buildOrPatch);J4(l,Se),l.syncComponents()},Ek=(l,N,W)=>{const fe=l.getSystem().build(W);RC(l,fe,N)},I2=(l,N,W,fe)=>{kv(N),Ek(l,(Se,Be)=>Vd(Se,Be,W),fe)},D2=(l,N,W,fe)=>(N.reuseDom?X3:Y3)(l,fe),yW=(l,N,W,fe)=>{Ek(l,Bc,fe)},bW=(l,N,W,fe)=>{Ek(l,sf,fe)},wB=(l,N,W,fe)=>{const Se=k1(l);ce(Se,qe=>_o(fe.element,qe.element)).each(kv)},k1=(l,N)=>l.components(),c6=(l,N,W,fe,Se)=>{const Be=k1(l);return I.from(Be[fe]).map(qe=>(Se.fold(()=>kv(qe),ft=>{(N.reuseDom?_B:I2)(l,qe,fe,ft)}),qe))};var OB=Object.freeze({__proto__:null,append:yW,prepend:bW,remove:wB,replaceAt:c6,replaceBy:(l,N,W,fe,Se)=>{const Be=k1(l);return de(Be,fe).bind(qe=>c6(l,N,W,qe,Se))},set:D2,contents:k1});const Fa=id({fields:[Hs("reuseDom",!0)],name:"replacing",apis:OB}),SB=(l,N)=>{const W=Rl(N);return id({fields:[pn("enabled")],name:l,active:{events:x(W)}})},Ka=(l,N)=>{const W=SB(l,N);return{key:l,value:{config:{},me:W,configAsRaw:x({}),initialConfig:{},state:uh}}},PE=(l,N)=>{N.ignore||(Md(l.element),N.onFocus(l))};var xW=Object.freeze({__proto__:null,focus:PE,blur:(l,N)=>{N.ignore||m1(l.element)},isFocused:l=>_0(l.element)}),u6=Object.freeze({__proto__:null,exhibit:(l,N)=>{const W=N.ignore?{}:{attributes:{tabindex:"-1"}};return np(W)},events:l=>Rl([Lo(wh(),(N,W)=>{PE(N,l),W.stop()})].concat(l.stopMousedown?[Lo(Nc(),(N,W)=>{W.event.prevent()})]:[]))}),TB=[Ss("onFocus"),Ar("stopMousedown",!1),Ar("ignore",!1)];const Ra=id({fields:TB,name:"focusing",active:u6,apis:xW}),CB=l=>({init:()=>{const W=wi(l);return{get:()=>W.get(),set:ft=>W.set(ft),clear:()=>W.set(l),readState:()=>W.get()}}}),AB=(l,N,W)=>{const fe=N.aria;fe.update(l,fe,W.get())},MB=(l,N,W)=>{N.toggleClass.each(fe=>{W.get()?uc(l.element,fe):Zc(l.element,fe)})},G3=(l,N,W,fe)=>{const Se=W.get();W.set(fe),MB(l,N,W),AB(l,N,W),Se!==fe&&N.onToggled(l,fe)},EB=(l,N,W)=>{G3(l,N,W,!W.get())},LE=(l,N,W)=>{G3(l,N,W,!0)},_W=(l,N,W)=>{G3(l,N,W,!1)},wW=(l,N,W)=>W.get(),PB=(l,N,W)=>{G3(l,N,W,N.selected)};var OW=Object.freeze({__proto__:null,onLoad:PB,toggle:EB,isOn:wW,on:LE,off:_W,set:G3}),kW=Object.freeze({__proto__:null,exhibit:()=>np({}),events:(l,N)=>{const W=_g(l,N,EB),fe=Q_(l,N,PB);return Rl(ye([l.toggleOnExecute?[W]:[],[fe]]))}});const RB=(l,N,W)=>{Cr(l.element,"aria-pressed",W),N.syncWithExpanded&&K3(l,N,W)},Pk=(l,N,W)=>{Cr(l.element,"aria-selected",W)},TW=(l,N,W)=>{Cr(l.element,"aria-checked",W)},K3=(l,N,W)=>{Cr(l.element,"aria-expanded",W)};var IE=[Ar("selected",!1),Yo("toggleClass"),Ar("toggleOnExecute",!0),Ss("onToggled"),ns("aria",{mode:"none"},bn("mode",{pressed:[Ar("syncWithExpanded",!1),Sl("update",RB)],checked:[Sl("update",TW)],expanded:[Sl("update",K3)],selected:[Sl("update",Pk)],none:[Sl("update",v)]}))];const us=id({fields:IE,name:"toggling",active:kW,apis:OW,state:CB(!1)}),DE=()=>{const l=(N,W)=>{W.stop(),Bm(N)};return[Lo(H1(),l),Lo(Lm(),l),od(Uh()),od(Nc())]},f6=l=>{const N=W=>Sh((fe,Se)=>{W(fe),Se.stop()});return Rl(ye([l.map(N).toArray(),DE()]))},LB="alloy.item-hover",BE="alloy.item-focus",IB="alloy.item-toggled",zE=l=>{(Wd(l.element).isNone()||Ra.isFocused(l))&&(Ra.isFocused(l)||Ra.focus(l),sa(l,LB,{item:l}))},DB=l=>{sa(l,BE,{item:l})},CW=(l,N)=>{sa(l,IB,{item:l,state:N})},NE=x(LB),d6=x(BE),FE=x(IB),$E=l=>l.role.fold(()=>l.toggling.map(N=>N.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),AW=(l,N)=>({aria:{mode:N?"selected":"checked"},...Fe(l,(W,fe)=>fe!=="exclusive"),onToggled:(W,fe)=>{c(l.onToggled)&&l.onToggled(W,fe),CW(W,fe)}}),MW=l=>({dom:l.dom,domModification:{...l.domModification,attributes:{role:$E(l),...l.domModification.attributes,"aria-haspopup":l.hasSubmenu,...l.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Km.augment(l.itemBehaviours,[l.toggling.fold(us.revoke,N=>us.config(AW(N,l.role.exists(W=>W==="option")))),Ra.config({ignore:l.ignoreFocus,stopMousedown:l.ignoreFocus,onFocus:N=>{DB(N)}}),ha.config({mode:"execution"}),Ei.config({store:{mode:"memory",initialValue:l.data}}),Ka("item-type-events",[...DE(),Lo(wu(),zE),Lo(hb(),Ra.focus)])]),components:l.components,eventOrder:l.eventOrder}),EW=[pn("data"),pn("components"),pn("dom"),Ar("hasSubmenu",!1),Yo("toggling"),Yo("role"),Km.field("itemBehaviours",[us,Ra,ha,Ei]),Ar("ignoreFocus",!1),Ar("domModification",{}),Sl("builder",MW),Ar("eventOrder",{})],PW=l=>({dom:l.dom,components:l.components,events:Rl([U_(hb())])}),BB=[pn("dom"),pn("components"),Sl("builder",PW)],h6=x("item-widget"),VE=x([mh({name:"widget",overrides:l=>({behaviours:ei([Ei.config({store:{mode:"manual",getValue:N=>l.data,setValue:v}})])})})]),RW=l=>{const N=j3(h6(),l,VE()),W=qC(h6(),l,N.internals()),fe=Be=>Jo(Be,l,"widget").map(qe=>(ha.focusIn(qe),qe)),Se=(Be,qe)=>M2(qe.event.target)?I.none():(()=>(l.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:l.dom,components:W,domModification:l.domModification,events:Rl([Sh((Be,qe)=>{fe(Be).each(ft=>{qe.stop()})}),Lo(wu(),zE),Lo(hb(),(Be,qe)=>{l.autofocus?fe(Be):Ra.focus(Be)})]),behaviours:Km.augment(l.widgetBehaviours,[Ei.config({store:{mode:"memory",initialValue:l.data}}),Ra.config({ignore:l.ignoreFocus,onFocus:Be=>{DB(Be)}}),ha.config({mode:"special",focusIn:l.autofocus?Be=>{fe(Be)}:cc(),onLeft:Se,onRight:Se,onEscape:(Be,qe)=>!Ra.isFocused(Be)&&!l.autofocus?(Ra.focus(Be),I.some(!0)):(l.autofocus&&qe.setSource(Be.element),I.none())})])}},LW=[pn("uid"),pn("data"),pn("components"),pn("dom"),Ar("autofocus",!1),Ar("ignoreFocus",!1),Km.field("widgetBehaviours",[Ei,Ra,ha]),Ar("domModification",{}),Iw(VE()),Sl("builder",RW)],IW=bn("type",{widget:LW,item:EW,separator:BB}),DW=(l,N)=>({mode:"flatgrid",selector:"."+l.markers.item,initSize:{numColumns:N.initSize.numColumns,numRows:N.initSize.numRows},focusManager:l.focusManager}),BW=(l,N)=>({mode:"matrix",selectors:{row:N.rowSelector,cell:"."+l.markers.item},previousSelector:N.previousSelector,focusManager:l.focusManager}),zB=(l,N)=>({mode:"menu",selector:"."+l.markers.item,moveOnTab:N.moveOnTab,focusManager:l.focusManager}),zW=x([U3({factory:{sketch:l=>{const N=Xt("menu.spec item",IW,l);return N.builder(N)}},name:"items",unit:"item",defaults:(l,N)=>ht(N,"uid")?N:{...N,uid:gy("item")},overrides:(l,N)=>({type:N.type,ignoreFocus:l.fakeFocus,domModification:{classes:[l.markers.item]}})})]),NW=x([jo("role"),pn("value"),pn("items"),pn("dom"),pn("components"),Ar("eventOrder",{}),Pd("menuBehaviours",[ta,Ei,Xs,ha]),ns("movement",{mode:"menu",moveOnTab:!0},bn("mode",{grid:[Yx(),Sl("config",DW)],matrix:[Sl("config",BW),pn("rowSelector"),Ar("previousSelector",I.none)],menu:[Ar("moveOnTab",!0),Sl("config",zB)]})),s1(),Ar("fakeFocus",!1),Ar("focusManager",H3()),Ss("onHighlight"),Ss("onDehighlight"),Ar("showMenuRole",!0)]),NB=x("alloy.menu-focus"),FW=(l,N)=>{const W=Yd(l.element,'[role="menuitemradio"][aria-checked="true"]');q(W,fe=>{_o(fe,N.element)||l.getSystem().getByDom(fe).each(Se=>{us.off(Se)})})},$W=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.menuBehaviours,[ta.config({highlightClass:l.markers.selectedItem,itemClass:l.markers.item,onHighlight:l.onHighlight,onDehighlight:l.onDehighlight}),Ei.config({store:{mode:"memory",initialValue:l.value}}),Xs.config({find:I.some}),ha.config(l.movement.config(l,l.movement))]),events:Rl([Lo(d6(),(Se,Be)=>{const qe=Be.event;Se.getSystem().getByDom(qe.target).each(ft=>{ta.highlight(Se,ft),Be.stop(),sa(Se,NB(),{menu:Se,item:ft})})}),Lo(NE(),(Se,Be)=>{const qe=Be.event.item;ta.highlight(Se,qe)}),Lo(FE(),(Se,Be)=>{const{item:qe,state:ft}=Be.event;ft&&Nr(qe.element,"role")==="menuitemradio"&&FW(Se,qe)})]),components:N,eventOrder:l.eventOrder,...l.showMenuRole?{domModification:{attributes:{role:l.role.getOr("menu")}}}:{}}),T0=Zh({name:"Menu",configFields:NW(),partFields:zW(),factory:$W}),VW=l=>Ze(l,(N,W)=>({k:N,v:W})),FB=(l,N,W,fe)=>Ge(W,fe).bind(Se=>Ge(l,Se).bind(Be=>{const qe=FB(l,N,W,Be);return I.some([Be].concat(qe))})).getOr([]),Nw=(l,N)=>{const W={};We(l,(qe,ft)=>{q(qe,yt=>{W[yt]=ft})});const fe=N,Se=VW(N),Be=Ue(Se,(qe,ft)=>[ft].concat(FB(W,fe,Se,ft)));return Ue(W,qe=>Ge(Be,qe).getOr([qe]))},$B=()=>{const l=wi({}),N=wi({}),W=wi({}),fe=ds(),Se=wi({}),Be=()=>{l.set({}),N.set({}),W.set({}),fe.clear()},qe=()=>fe.get().isNone(),ft=(ko,_i)=>{N.set({...N.get(),[ko]:{type:"prepared",menu:_i}})},yt=(ko,_i,Pi,Ao)=>{fe.set(ko),l.set(Pi),N.set(_i),Se.set(Ao);const $i=Nw(Ao,Pi);W.set($i)},Lt=ko=>tt(l.get(),(_i,Pi)=>_i===ko),Ht=(ko,_i,Pi)=>cr(ko).bind(Ao=>Lt(ko).bind($i=>_i($i).map(yi=>({triggeredMenu:Ao,triggeringItem:yi,triggeringPath:Pi})))),fn=(ko,_i)=>{const Pi=me(br(ko).toArray(),Ao=>cr(Ao).isSome());return Ge(W.get(),ko).bind(Ao=>{const $i=we(Pi.concat(Ao)),yi=ve($i,(Xi,ks)=>Ht(Xi,_i,$i.slice(0,ks+1)).fold(()=>St(fe.get(),Xi)?[]:[I.none()],Ic=>[I.some(Ic)]));return Yt(yi)})},Rn=ko=>Ge(l.get(),ko).map(_i=>{const Pi=Ge(W.get(),ko).getOr([]);return[_i].concat(Pi)}),Bn=ko=>Ge(W.get(),ko).bind(_i=>_i.length>1?I.some(_i.slice(1)):I.none()),er=ko=>Ge(W.get(),ko),cr=ko=>Xr(ko).bind(VB),Xr=ko=>Ge(N.get(),ko),br=ko=>Ge(l.get(),ko);return{setMenuBuilt:ft,setContents:yt,expand:Rn,refresh:er,collapse:Bn,lookupMenu:Xr,lookupItem:br,otherMenus:ko=>{const _i=Se.get();return Te(ke(_i),ko)},getPrimary:()=>fe.get().bind(cr),getMenus:()=>N.get(),clear:Be,isClear:qe,getTriggeringPath:fn}},VB=l=>l.type==="prepared"?I.some(l.menu):I.none(),ox={init:$B,extractPreparedMenu:VB},UB=Li("tiered-menu-item-highlight"),jB=Li("tiered-menu-item-dehighlight");var Gu;(function(l){l[l.HighlightMenuAndItem=0]="HighlightMenuAndItem",l[l.HighlightJustMenu=1]="HighlightJustMenu",l[l.HighlightNone=2]="HighlightNone"})(Gu||(Gu={}));const QB=(l,N)=>{const W=ds(),fe=(Ko,Oi,La)=>Ue(La,(_a,fa)=>{const Qa=()=>T0.sketch({..._a,value:fa,markers:l.markers,fakeFocus:l.fakeFocus,onHighlight:(ac,vl)=>{sa(ac,UB,{menuComp:ac,itemComp:vl})},onDehighlight:(ac,vl)=>{sa(ac,jB,{menuComp:ac,itemComp:vl})},focusManager:l.fakeFocus?n6():H3()});return fa===Oi?{type:"prepared",menu:Ko.getSystem().build(Qa())}:{type:"notbuilt",nbMenu:Qa}}),Se=ox.init(),Be=Ko=>{const Oi=fe(Ko,l.data.primary,l.data.menus),La=yt();return Se.setContents(l.data.primary,Oi,l.data.expansions,La),Se.getPrimary()},qe=Ko=>Ei.getValue(Ko).value,ft=(Ko,Oi,La)=>Oe(Oi,_a=>{if(!_a.getSystem().isConnected())return I.none();const fa=ta.getCandidates(_a);return ce(fa,Qa=>qe(Qa)===La)}),yt=Ko=>Ue(l.data.menus,(Oi,La)=>ve(Oi.items,_a=>_a.type==="separator"?[]:[_a.data.value])),Lt=ta.highlight,Ht=(Ko,Oi)=>{Lt(Ko,Oi),ta.getHighlighted(Oi).orThunk(()=>ta.getFirst(Oi)).each(La=>{l.fakeFocus?ta.highlight(Oi,La):t1(Ko,La.element,hb())})},fn=(Ko,Oi)=>zt(re(Oi,La=>Ko.lookupMenu(La).bind(_a=>_a.type==="prepared"?I.some(_a.menu):I.none()))),Rn=(Ko,Oi,La)=>{const _a=fn(Oi,Oi.otherMenus(La));q(_a,fa=>{Oc(fa.element,[l.markers.backgroundMenu]),l.stayInDom||Fa.remove(Ko,fa)})},Bn=Ko=>W.get().getOrThunk(()=>{const Oi={},La=Yd(Ko.element,`.${l.markers.item}`),_a=me(La,fa=>Nr(fa,"aria-haspopup")==="true");return q(_a,fa=>{Ko.getSystem().getByDom(fa).each(Qa=>{const ac=qe(Qa);Oi[ac]=Qa})}),W.set(Oi),Oi}),er=(Ko,Oi)=>{const La=Bn(Ko);We(La,(_a,fa)=>{const Qa=X(Oi,fa);Cr(_a.element,"aria-expanded",Qa)})},cr=(Ko,Oi,La)=>I.from(La[0]).bind(_a=>Oi.lookupMenu(_a).bind(fa=>{if(fa.type==="notbuilt")return I.none();{const Qa=fa.menu,ac=fn(Oi,La.slice(1));return q(ac,vl=>{uc(vl.element,l.markers.backgroundMenu)}),Gn(Qa.element)||Fa.append(Ko,ea(Qa)),Oc(Qa.element,[l.markers.backgroundMenu]),Ht(Ko,Qa),Rn(Ko,Oi,La),I.some(Qa)}}));let Xr;(function(Ko){Ko[Ko.HighlightSubmenu=0]="HighlightSubmenu",Ko[Ko.HighlightParent=1]="HighlightParent"})(Xr||(Xr={}));const br=(Ko,Oi,La)=>{if(La.type==="notbuilt"){const _a=Ko.getSystem().build(La.nbMenu());return Se.setMenuBuilt(Oi,_a),_a}else return La.menu},Fr=(Ko,Oi,La=Xr.HighlightSubmenu)=>{if(Oi.hasConfigured(he)&&he.isDisabled(Oi))return I.some(Oi);{const _a=qe(Oi);return Se.expand(_a).bind(fa=>(er(Ko,fa),I.from(fa[0]).bind(Qa=>Se.lookupMenu(Qa).bind(ac=>{const vl=br(Ko,Qa,ac);return Gn(vl.element)||Fa.append(Ko,ea(vl)),l.onOpenSubmenu(Ko,Oi,vl,we(fa)),La===Xr.HighlightSubmenu?(ta.highlightFirst(vl),cr(Ko,Se,fa)):(ta.dehighlightAll(vl),I.some(Oi))}))))}},jr=(Ko,Oi)=>{const La=qe(Oi);return Se.collapse(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a).map(fa=>(l.onCollapseMenu(Ko,Oi,fa),fa))))},Ro=(Ko,Oi)=>{const La=qe(Oi);return Se.refresh(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a)))},ko=(Ko,Oi)=>M2(Oi.element)?I.none():Fr(Ko,Oi,Xr.HighlightSubmenu),_i=(Ko,Oi)=>M2(Oi.element)?I.none():jr(Ko,Oi),Pi=(Ko,Oi)=>jr(Ko,Oi).orThunk(()=>l.onEscape(Ko,Oi).map(()=>Ko)),Ao=Ko=>(Oi,La)=>Sc(La.getSource(),`.${l.markers.item}`).bind(_a=>Oi.getSystem().getByDom(_a).toOptional().bind(fa=>Ko(Oi,fa).map(k))),$i=Rl([Lo(NB(),(Ko,Oi)=>{const La=Oi.event.item;Se.lookupItem(qe(La)).each(()=>{const _a=Oi.event.menu;ta.highlight(Ko,_a);const fa=qe(Oi.event.item);Se.refresh(fa).each(Qa=>Rn(Ko,Se,Qa))})}),Sh((Ko,Oi)=>{const La=Oi.event.target;Ko.getSystem().getByDom(La).each(_a=>{qe(_a).indexOf("collapse-item")===0&&jr(Ko,_a),Fr(Ko,_a,Xr.HighlightSubmenu).fold(()=>{l.onExecute(Ko,_a)},v)})}),wc((Ko,Oi)=>{Be(Ko).each(La=>{Fa.append(Ko,ea(La)),l.onOpenMenu(Ko,La),l.highlightOnOpen===Gu.HighlightMenuAndItem?Ht(Ko,La):l.highlightOnOpen===Gu.HighlightJustMenu&&Lt(Ko,La)})}),Lo(UB,(Ko,Oi)=>{l.onHighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),Lo(jB,(Ko,Oi)=>{l.onDehighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),...l.navigateOnHover?[Lo(NE(),(Ko,Oi)=>{const La=Oi.event.item;Ro(Ko,La),Fr(Ko,La,Xr.HighlightParent),l.onHover(Ko,La)})]:[]]),yi=Ko=>ta.getHighlighted(Ko).bind(ta.getHighlighted),Xi=Ko=>{yi(Ko).each(Oi=>{jr(Ko,Oi)})},ks=Ko=>{Se.getPrimary().each(Oi=>{Ht(Ko,Oi)})},Ic=Ko=>I.from(Ko.components()[0]).filter(Oi=>Nr(Oi.element,"role")==="menu"),Ui={collapseMenu:Xi,highlightPrimary:ks,repositionMenus:Ko=>{Se.getPrimary().bind(La=>yi(Ko).bind(_a=>{const fa=qe(_a),Qa=ot(Se.getMenus()),ac=zt(re(Qa,ox.extractPreparedMenu));return Se.getTriggeringPath(fa,vl=>ft(Ko,ac,vl))}).map(_a=>({primary:La,triggeringPath:_a}))).fold(()=>{Ic(Ko).each(La=>{l.onRepositionMenu(Ko,La,[])})},({primary:La,triggeringPath:_a})=>{l.onRepositionMenu(Ko,La,_a)})}};return{uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.tmenuBehaviours,[ha.config({mode:"special",onRight:Ao(ko),onLeft:Ao(_i),onEscape:Ao(Pi),focusIn:(Ko,Oi)=>{Se.getPrimary().each(La=>{t1(Ko,La.element,hb())})}}),ta.config({highlightClass:l.markers.selectedMenu,itemClass:l.markers.menu}),Xs.config({find:Ko=>ta.getHighlighted(Ko)}),Fa.config({})]),eventOrder:l.eventOrder,apis:Ui,events:$i}},HB=x("collapse-item"),ZB=(l,N,W)=>({primary:l,menus:N,expansions:W}),UW=(l,N)=>({primary:l,menus:Sa(l,N),expansions:{}}),p6=l=>({value:Li(HB()),meta:{text:l}}),B2=Qp({name:"TieredMenu",configFields:[Sb("onExecute"),Sb("onEscape"),Ch("onOpenMenu"),Ch("onOpenSubmenu"),Ss("onRepositionMenu"),Ss("onCollapseMenu"),Ar("highlightOnOpen",Gu.HighlightMenuAndItem),si("data",[pn("primary"),pn("menus"),pn("expansions")]),Ar("fakeFocus",!1),Ss("onHighlightItem"),Ss("onDehighlightItem"),Ss("onHover"),Um(),pn("dom"),Ar("navigateOnHover",!0),Ar("stayInDom",!1),Pd("tmenuBehaviours",[ha,ta,Xs,Fa]),Ar("eventOrder",{})],apis:{collapseMenu:(l,N)=>{l.collapseMenu(N)},highlightPrimary:(l,N)=>{l.highlightPrimary(N)},repositionMenus:(l,N)=>{l.repositionMenus(N)}},factory:QB,extraApis:{tieredData:ZB,singleData:UW,collapseItem:p6}}),jW=(l,N,W,fe,Se)=>{const Be=()=>l.lazySink(N),qe=fe.type==="horizontal"?{layouts:{onLtr:()=>Hm(),onRtl:()=>yv()}}:{},ft=Lt=>Lt.length===2,yt=Lt=>ft(Lt)?qe:{};return B2.sketch({dom:{tag:"div"},data:fe.data,markers:fe.menu.markers,highlightOnOpen:fe.menu.highlightOnOpen,fakeFocus:fe.menu.fakeFocus,onEscape:()=>(Ys.close(N),l.onEscape.map(Lt=>Lt(N)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(Lt,Ht)=>{Ph.positionWithinBounds(Be().getOrDie(),Ht,W,Se())},onOpenSubmenu:(Lt,Ht,fn,Rn)=>{const Bn=Be().getOrDie();Ph.position(Bn,fn,{anchor:{type:"submenu",item:Ht,...yt(Rn)}})},onRepositionMenu:(Lt,Ht,fn)=>{const Rn=Be().getOrDie();Ph.positionWithinBounds(Rn,Ht,W,Se()),q(fn,Bn=>{const er=yt(Bn.triggeringPath);Ph.position(Rn,Bn.triggeredMenu,{anchor:{type:"submenu",item:Bn.triggeringItem,...er}})})}})},QW=(l,N)=>{const W=(Rn,Bn)=>l.getRelated(Rn).exists(cr=>Cf(cr,Bn)),fe=(Rn,Bn)=>{Ys.setContent(Rn,Bn)},Se=(Rn,Bn,er)=>{const cr=I.none;Be(Rn,Bn,er,cr)},Be=(Rn,Bn,er,cr)=>{const Xr=l.lazySink(Rn).getOrDie();Ys.openWhileCloaked(Rn,Bn,()=>Ph.positionWithinBounds(Xr,Rn,er,cr())),Ei.setValue(Rn,I.some({mode:"position",config:er,getBounds:cr}))},qe=(Rn,Bn,er)=>{ft(Rn,Bn,er,I.none)},ft=(Rn,Bn,er,cr)=>{const Xr=jW(l,Rn,Bn,er,cr);Ys.open(Rn,Xr),Ei.setValue(Rn,I.some({mode:"menu",menu:Xr}))},yt=Rn=>{Ys.isOpen(Rn)&&(Ei.setValue(Rn,I.none()),Ys.close(Rn))},Lt=Rn=>Ys.getState(Rn),Ht=Rn=>{Ys.isOpen(Rn)&&Ei.getValue(Rn).each(Bn=>{switch(Bn.mode){case"menu":Ys.getState(Rn).each(B2.repositionMenus);break;case"position":const er=l.lazySink(Rn).getOrDie();Ph.positionWithinBounds(er,Rn,Bn.config,Bn.getBounds());break}})},fn={setContent:fe,showAt:Se,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:yt,getContent:Lt,reposition:Ht,isOpen:Ys.isOpen};return{uid:l.uid,dom:l.dom,behaviours:Rd(l.inlineBehaviours,[Ys.config({isPartOf:(Rn,Bn,er)=>Cf(Bn,er)||W(Rn,er),getAttachPoint:Rn=>l.lazySink(Rn).getOrDie(),onOpen:Rn=>{l.onShow(Rn)},onClose:Rn=>{l.onHide(Rn)}}),Ei.config({store:{mode:"memory",initialValue:I.none()}}),Ad.config({channels:{...Ly({isExtraPart:N.isExtraPart,...l.fireDismissalEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({})}),...ak({...l.fireRepositionEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({}),doReposition:Ht})}})]),eventOrder:l.eventOrder,apis:fn}},Xc=Qp({name:"InlineView",configFields:[pn("lazySink"),Ss("onShow"),Ss("onHide"),ai("onEscape"),Pd("inlineBehaviours",[Ys,Ei,Ad]),Ai("fireDismissalEventInstead",[Ar("event",J0())]),Ai("fireRepositionEventInstead",[Ar("event",F_())]),Ar("getRelated",I.none),Ar("isExtraPart",D),Ar("eventOrder",I.none)],factory:QW,apis:{showAt:(l,N,W,fe)=>{l.showAt(N,W,fe)},showWithinBounds:(l,N,W,fe,Se)=>{l.showWithinBounds(N,W,fe,Se)},showMenuAt:(l,N,W,fe)=>{l.showMenuAt(N,W,fe)},showMenuWithinBounds:(l,N,W,fe,Se)=>{l.showMenuWithinBounds(N,W,fe,Se)},hide:(l,N)=>{l.hide(N)},isOpen:(l,N)=>l.isOpen(N),getContent:(l,N)=>l.getContent(N),setContent:(l,N,W)=>{l.setContent(N,W)},reposition:(l,N)=>{l.reposition(N)}}});var J3=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qB=tinymce.util.Tools.resolve("tinymce.EditorManager"),$w=tinymce.util.Tools.resolve("tinymce.Env"),C0;(function(l){l.default="wrap",l.floating="floating",l.sliding="sliding",l.scrolling="scrolling"})(C0||(C0={}));var Vw;(function(l){l.auto="auto",l.top="top",l.bottom="bottom"})(Vw||(Vw={}));const gc=l=>N=>N.options.get(l),Rk=l=>N=>I.from(l(N)),WB=l=>{const N=$w.deviceType.isPhone(),W=$w.deviceType.isTablet()||N,fe=l.options.register,Se=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);fe("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),fe("skin_url",{processor:"string"}),fe("height",{processor:Be,default:Math.max(l.getElement().offsetHeight,400)}),fe("width",{processor:Be,default:Fw.DOM.getStyle(l.getElement(),"width")}),fe("min_height",{processor:"number",default:100}),fe("min_width",{processor:"number"}),fe("max_height",{processor:"number"}),fe("max_width",{processor:"number"}),fe("style_formats",{processor:"object[]"}),fe("style_formats_merge",{processor:"boolean",default:!1}),fe("style_formats_autohide",{processor:"boolean",default:!1}),fe("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),fe("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),fe("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),fe("font_size_input_default_unit",{processor:"string",default:"pt"}),fe("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),fe("content_langs",{processor:"object[]"}),fe("removed_menuitems",{processor:"string",default:""}),fe("menubar",{processor:qe=>n(qe)||w(qe),default:!N}),fe("menu",{processor:"object",default:{}}),fe("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Z(9,qe=>{fe("toolbar"+(qe+1),{processor:"string"})}),fe("toolbar_mode",{processor:"string",default:W?"scrolling":"floating"}),fe("toolbar_groups",{processor:"object",default:{}}),fe("toolbar_location",{processor:"string",default:Vw.auto}),fe("toolbar_persist",{processor:"boolean",default:!1}),fe("toolbar_sticky",{processor:"boolean",default:l.inline}),fe("toolbar_sticky_offset",{processor:"number",default:0}),fe("fixed_toolbar_container",{processor:"string",default:""}),fe("fixed_toolbar_container_target",{processor:"object"}),fe("ui_mode",{processor:"string",default:"combined"}),fe("file_picker_callback",{processor:"function"}),fe("file_picker_validator_handler",{processor:"function"}),fe("file_picker_types",{processor:"string"}),fe("typeahead_urls",{processor:"boolean",default:!0}),fe("anchor_top",{processor:Se,default:"#top"}),fe("anchor_bottom",{processor:Se,default:"#bottom"}),fe("draggable_modal",{processor:"boolean",default:!1}),fe("statusbar",{processor:"boolean",default:!0}),fe("elementpath",{processor:"boolean",default:!0}),fe("branding",{processor:"boolean",default:!0}),fe("promotion",{processor:"boolean",default:!0}),fe("resize",{processor:qe=>qe==="both"||w(qe),default:!$w.deviceType.isTouch()}),fe("sidebar_show",{processor:"string"}),fe("help_accessibility",{processor:"boolean",default:l.hasPlugin("help")}),fe("default_font_stack",{processor:"string[]",default:[]})},YB=gc("readonly"),Lk=gc("height"),UE=gc("width"),Uw=Rk(gc("min_width")),eS=Rk(gc("min_height")),Ik=Rk(gc("max_width")),m6=Rk(gc("max_height")),XB=Rk(gc("style_formats")),GB=gc("style_formats_merge"),KB=gc("style_formats_autohide"),JB=gc("content_langs"),g6=gc("removed_menuitems"),jw=gc("toolbar_mode"),jE=gc("toolbar_groups"),Dk=gc("toolbar_location"),HW=gc("fixed_toolbar_container"),ez=gc("fixed_toolbar_container_target"),tz=gc("toolbar_persist"),nz=gc("toolbar_sticky_offset"),rz=gc("menubar"),Bk=gc("toolbar"),oz=gc("file_picker_callback"),iz=gc("file_picker_validator_handler"),v6=gc("font_size_input_default_unit"),QE=gc("file_picker_types"),HE=gc("typeahead_urls"),az=gc("anchor_top"),y6=gc("anchor_bottom"),sz=gc("draggable_modal"),lz=gc("statusbar"),cz=gc("elementpath"),ZE=gc("branding"),uz=gc("resize"),qE=gc("paste_as_text"),b6=gc("sidebar_show"),fz=gc("promotion"),zk=gc("help_accessibility"),dz=gc("default_font_stack"),WE=l=>l.options.get("skin")===!1,x6=l=>l.options.get("menubar")!==!1,YE=l=>{const N=l.options.get("skin_url");if(WE(l))return N;if(N)return l.documentBaseURI.toAbsolute(N);{const W=l.options.get("skin");return qB.baseURL+"/skins/ui/"+W}},_6=l=>I.from(l.options.get("skin_url")),hz=l=>l.options.get("line_height_formats").split(" "),Nk=l=>{const N=Bk(l),W=n(N),fe=i(N)&&N.length>0;return!Fk(l)&&(fe||W||N===!0)},XE=l=>{const N=Z(9,fe=>l.options.get("toolbar"+(fe+1))),W=me(N,n);return Ot(W.length>0,W)},Fk=l=>XE(l).fold(()=>{const N=Bk(l);return p(N,n)&&N.length>0},k),$k=l=>Dk(l)===Vw.bottom,z2=l=>{var N;if(!l.inline)return I.none();const W=(N=HW(l))!==null&&N!==void 0?N:"";if(W.length>0)return qa(Lr(),W);const fe=ez(l);return a(fe)?I.some(Nt.fromDom(fe)):I.none()},tS=l=>l.inline&&z2(l).isSome(),GE=l=>z2(l).getOrThunk(()=>Er(kr(Nt.fromDom(l.getElement())))),Vk=l=>l.inline&&!x6(l)&&!Nk(l)&&!Fk(l),Qw=l=>(l.options.get("toolbar_sticky")||l.inline)&&!tS(l)&&!Vk(l),N2=l=>!tS(l)&&l.options.get("ui_mode")==="split",pz=l=>{const N=l.options.get("menu");return Ue(N,W=>({...W,items:W.items}))};var mz=Object.freeze({__proto__:null,get ToolbarMode(){return C0},get ToolbarLocation(){return Vw},register:WB,getSkinUrl:YE,getSkinUrlOption:_6,isReadOnly:YB,isSkinDisabled:WE,getHeightOption:Lk,getWidthOption:UE,getMinWidthOption:Uw,getMinHeightOption:eS,getMaxWidthOption:Ik,getMaxHeightOption:m6,getUserStyleFormats:XB,shouldMergeStyleFormats:GB,shouldAutoHideStyleFormats:KB,getLineHeightFormats:hz,getContentLanguages:JB,getRemovedMenuItems:g6,isMenubarEnabled:x6,isMultipleToolbars:Fk,isToolbarEnabled:Nk,isToolbarPersist:tz,getMultipleToolbarsOption:XE,getUiContainer:GE,useFixedContainer:tS,isSplitUiMode:N2,getToolbarMode:jw,isDraggableModal:sz,isDistractionFree:Vk,isStickyToolbar:Qw,getStickyToolbarOffset:nz,getToolbarLocation:Dk,isToolbarLocationBottom:$k,getToolbarGroups:jE,getMenus:pz,getMenubar:rz,getToolbar:Bk,getFilePickerCallback:oz,getFilePickerTypes:QE,useTypeaheadUrls:HE,getAnchorTop:az,getAnchorBottom:y6,getFilePickerValidatorHandler:iz,getFontSizeInputDefaultUnit:v6,useStatusBar:lz,useElementPath:cz,promotionEnabled:fz,useBranding:ZE,getResize:uz,getPasteAsText:qE,getSidebarShow:b6,useHelpAccessibility:zk,getDefaultFontStack:dz});const ZW=["visible","hidden","clip"],KE=l=>Dt(l).length>0&&!X(ZW,l),JE=l=>{if(sr(l)){const N=Di(l,"overflow-x"),W=Di(l,"overflow-y");return KE(N)||KE(W)}else return!1},eP=l=>l.plugins.fullscreen&&l.plugins.fullscreen.isFullscreen(),qW=(l,N)=>{const W=_2(N,JE),fe=W.length===0?on(N).map(an).map(Se=>_2(Se,JE)).getOr([]):W;return Qe(fe).map(Se=>({element:Se,others:fe.slice(1),isFullscreen:()=>eP(l)}))},ix=(l,N)=>N2(l)?qW(l,N):I.none(),Hw=l=>{const N=[...re(l.others,cl),ts()];return l.isFullscreen()?ts():Qc(cl(l.element),N)},Rh=Qp({name:"Button",factory:l=>{const N=f6(l.action),W=l.dom.tag,fe=Be=>Ge(l.dom,"attributes").bind(qe=>Ge(qe,Be)),Se=()=>{if(W==="button"){const Be=fe("type").getOr("button"),qe=fe("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:l.role.getOr(fe("role").getOr("button"))}};return{uid:l.uid,dom:l.dom,components:l.components,events:N,behaviours:Km.augment(l.buttonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:Se()},eventOrder:l.eventOrder}},configFields:[Ar("uid",void 0),pn("dom"),Ar("components",[]),Km.field("buttonBehaviours",[Ra,ha]),Yo("action"),Yo("role"),Ar("eventOrder",{})]}),WW=l=>{const N=l.dom.attributes!==void 0?l.dom.attributes:[];return se(N,(W,fe)=>fe.name==="class"?W:{...W,[fe.name]:fe.value},{})},tP=l=>Array.prototype.slice.call(l.dom.classList,0),Ev=l=>{const N=Nt.fromHtml(l),W=Do(N),fe=WW(N),Se=tP(N),Be=W.length===0?{}:{innerHtml:Np(N)};return{tag:vr(N),classes:Se,attributes:fe,...Be}},ml=l=>{const N=lE(l)&&pt(l,"uid")?l.uid:gy("memento");return{get:Be=>Be.getSystem().getByUid(N).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(N).toOptional(),asSpec:()=>({...l,uid:N})}};var YW=Object.freeze({__proto__:null,exhibit:(l,N)=>np({attributes:ua([{key:N.tabAttr,value:"true"}])})}),XW=[Ar("tabAttr","data-alloy-tabstop")];const Rc=id({fields:XW,name:"tabstopping",active:YW}),vz=Li("tooltip.exclusive"),Uk=Li("tooltip.show"),jk=Li("tooltip.hide"),Qk=Li("tooltip.immediateHide"),Hk=Li("tooltip.immediateShow"),yz=(l,N,W)=>{l.getSystem().broadcastOn([vz],{})};var GW=Object.freeze({__proto__:null,hideAllExclusive:yz,immediateOpenClose:(l,N,W,fe)=>Za(l,fe?Hk:Qk),isEnabled:(l,N,W)=>W.isEnabled(),setComponents:(l,N,W,fe)=>{W.getTooltip().each(Se=>{Se.getSystem().isConnected()&&Fa.set(Se,fe)})},setEnabled:(l,N,W,fe)=>W.setEnabled(fe)}),nP=Object.freeze({__proto__:null,events:(l,N)=>{const W=qe=>{N.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(kv(ft),l.onHide(qe,ft),N.clearTooltip())}),N.clearTimer()},fe=qe=>{if(!N.isShowing()&&N.isEnabled()){yz(qe);const ft=l.lazySink(qe).getOrDie(),yt=qe.getSystem().build({dom:l.tooltipDom,components:l.tooltipComponents,events:Rl(l.mode==="normal"?[Lo(wu(),Lt=>{Za(qe,Uk)}),Lo(i0(),Lt=>{Za(qe,jk)})]:[]),behaviours:ei([Fa.config({})])});N.setTooltip(yt),Eg(ft,yt),l.onShow(qe,yt),Ph.position(ft,yt,{anchor:l.anchor(qe)})}},Se=qe=>{N.getTooltip().each(ft=>{const yt=l.lazySink(qe).getOrDie();Ph.position(yt,ft,{anchor:l.anchor(qe)})})},Be=()=>{switch(l.mode){case"normal":return[Lo(Dp(),qe=>{Za(qe,Hk)}),Lo(kf(),qe=>{Za(qe,Qk)}),Lo(wu(),qe=>{Za(qe,Uk)}),Lo(i0(),qe=>{Za(qe,jk)})];case"follow-highlight":return[Lo(e1(),(qe,ft)=>{Za(qe,Uk)}),Lo(cu(),qe=>{Za(qe,jk)})];case"children-normal":return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)}),Lo(wu(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{N.getTooltip().fold(()=>{Za(qe,Uk)},yt=>{N.isShowing()&&(l.onShow(qe,yt),Se(qe))})})}),Lo(i0(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Za(qe,jk)},v)})];default:return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)})]}};return Rl(ye([[Nx(qe=>{l.onSetup(qe)}),Lo(Uk,qe=>{N.resetTimer(()=>{fe(qe)},l.delayForShow())}),Lo(jk,qe=>{N.resetTimer(()=>{W(qe)},l.delayForHide())}),Lo(Hk,qe=>{N.resetTimer(()=>{fe(qe)},0)}),Lo(Qk,qe=>{N.resetTimer(()=>{W(qe)},0)}),Lo(yp(),(qe,ft)=>{const yt=ft;yt.universal||X(yt.channels,vz)&&W(qe)}),xg(qe=>{W(qe)})],Be()]))}}),KW=[pn("lazySink"),pn("tooltipDom"),Ar("exclusive",!0),Ar("tooltipComponents",[]),ys("delayForShow",x(300)),ys("delayForHide",x(300)),ys("onSetup",v),rl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),Ar("anchor",l=>({type:"hotspot",hotspot:l,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})),Ss("onHide"),Ss("onShow")],JW=Object.freeze({__proto__:null,init:()=>{const l=wi(!0),N=ds(),W=ds(),fe=()=>{N.on(clearTimeout)},Se=(qe,ft)=>{fe(),N.set(setTimeout(qe,ft))},Be=x("not-implemented");return Hd({getTooltip:W.get,isShowing:W.isSet,setTooltip:W.set,clearTooltip:W.clear,clearTimer:fe,resetTimer:Se,readState:Be,isEnabled:()=>l.get(),setEnabled:qe=>l.set(qe)})}});const Vu=id({fields:KW,name:"tooltipping",active:nP,state:JW,apis:GW}),{entries:bz,setPrototypeOf:xz,isFrozen:eY,getPrototypeOf:tY,getOwnPropertyDescriptor:nY}=Object;let{freeze:eg,seal:A0,create:rY}=Object,{apply:rP,construct:oP}=typeof Reflect<"u"&&Reflect;rP||(rP=function(N,W,fe){return N.apply(W,fe)}),eg||(eg=function(N){return N}),A0||(A0=function(N){return N}),oP||(oP=function(N,W){return new N(...W)});const oY=T1(Array.prototype.forEach),iY=T1(Array.prototype.pop),Zk=T1(Array.prototype.push),O6=T1(String.prototype.toLowerCase),iP=T1(String.prototype.toString),aY=T1(String.prototype.match),Pv=T1(String.prototype.replace),sY=T1(String.prototype.indexOf),lY=T1(String.prototype.trim),M0=T1(RegExp.prototype.test),F2=aP(TypeError);function T1(l){return function(N){for(var W=arguments.length,fe=new Array(W>1?W-1:0),Se=1;Se/gm),fY=A0(/\${[\w\W]*}/gm),Yk=A0(/^data-[\-\w.\u00B7-\uFFFF]/),dY=A0(/^aria-[\-\w]+$/),dP=A0(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hP=A0(/^(?:\w+script|data):/i),hY=A0(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),A6=A0(/^html$/i);var M6=Object.freeze({__proto__:null,MUSTACHE_EXPR:cY,ERB_EXPR:uY,TMPLIT_EXPR:fY,DATA_ATTR:Yk,ARIA_ATTR:dY,IS_ALLOWED_URI:dP,IS_SCRIPT_OR_DATA:hP,ATTR_WHITESPACE:hY,DOCTYPE_NAME:A6});const pY=()=>typeof window>"u"?null:window,_z=function(N,W){if(typeof N!="object"||typeof N.createPolicy!="function")return null;let fe=null;const Se="data-tt-policy-suffix";W&&W.hasAttribute(Se)&&(fe=W.getAttribute(Se));const Be="dompurify"+(fe?"#"+fe:"");try{return N.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function pP(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pY();const N=js=>pP(js);if(N.version="3.0.5",N.removed=[],!l||!l.document||l.document.nodeType!==9)return N.isSupported=!1,N;const W=l.document,fe=W.currentScript;let{document:Se}=l;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:yt,NodeFilter:Lt,NamedNodeMap:Ht=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:fn,DOMParser:Rn,trustedTypes:Bn}=l,er=yt.prototype,cr=S6(er,"cloneNode"),Xr=S6(er,"nextSibling"),br=S6(er,"childNodes"),Fr=S6(er,"parentNode");if(typeof qe=="function"){const js=Se.createElement("template");js.content&&js.content.ownerDocument&&(Se=js.content.ownerDocument)}let jr,Ro="";const{implementation:ko,createNodeIterator:_i,createDocumentFragment:Pi,getElementsByTagName:Ao}=Se,{importNode:$i}=W;let yi={};N.isSupported=typeof bz=="function"&&typeof Fr=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Xi,ERB_EXPR:ks,TMPLIT_EXPR:Ic,DATA_ATTR:hl,ARIA_ATTR:Ui,IS_SCRIPT_OR_DATA:Ko,ATTR_WHITESPACE:Oi}=M6;let{IS_ALLOWED_URI:La}=M6,_a=null;const fa=rc({},[...sP,...lP,...qk,...k6,...Wk]);let Qa=null;const ac=rc({},[...fP,...C1,...T6,...C6]);let vl=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dp=null,qg=null,Vv=!0,Wh=!0,Wg=!1,U0=!0,km=!1,qy=!1,xO=!1,OL=!1,qS=!1,_8=!1,aQ=!1,dde=!0,hde=!1;const t3e="user-content-";let rie=!0,SL=!1,w8={},O8=null;const pde=rc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let mde=null;const gde=rc({},["audio","video","img","source","image","track"]);let oie=null;const vde=rc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sQ="http://www.w3.org/1998/Math/MathML",lQ="http://www.w3.org/2000/svg",_O="http://www.w3.org/1999/xhtml";let S8=_O,iie=!1,aie=null;const n3e=rc({},[sQ,lQ,_O],iP);let yT;const r3e=["application/xhtml+xml","text/html"],o3e="text/html";let Tm,k8=null;const i3e=Se.createElement("form"),yde=function(So){return So instanceof RegExp||So instanceof Function},sie=function(So){if(!(k8&&k8===So)){if((!So||typeof So!="object")&&(So={}),So=nS(So),yT=r3e.indexOf(So.PARSER_MEDIA_TYPE)===-1?yT=o3e:yT=So.PARSER_MEDIA_TYPE,Tm=yT==="application/xhtml+xml"?iP:O6,_a="ALLOWED_TAGS"in So?rc({},So.ALLOWED_TAGS,Tm):fa,Qa="ALLOWED_ATTR"in So?rc({},So.ALLOWED_ATTR,Tm):ac,aie="ALLOWED_NAMESPACES"in So?rc({},So.ALLOWED_NAMESPACES,iP):n3e,oie="ADD_URI_SAFE_ATTR"in So?rc(nS(vde),So.ADD_URI_SAFE_ATTR,Tm):vde,mde="ADD_DATA_URI_TAGS"in So?rc(nS(gde),So.ADD_DATA_URI_TAGS,Tm):gde,O8="FORBID_CONTENTS"in So?rc({},So.FORBID_CONTENTS,Tm):pde,dp="FORBID_TAGS"in So?rc({},So.FORBID_TAGS,Tm):{},qg="FORBID_ATTR"in So?rc({},So.FORBID_ATTR,Tm):{},w8="USE_PROFILES"in So?So.USE_PROFILES:!1,Vv=So.ALLOW_ARIA_ATTR!==!1,Wh=So.ALLOW_DATA_ATTR!==!1,Wg=So.ALLOW_UNKNOWN_PROTOCOLS||!1,U0=So.ALLOW_SELF_CLOSE_IN_ATTR!==!1,km=So.SAFE_FOR_TEMPLATES||!1,qy=So.WHOLE_DOCUMENT||!1,qS=So.RETURN_DOM||!1,_8=So.RETURN_DOM_FRAGMENT||!1,aQ=So.RETURN_TRUSTED_TYPE||!1,OL=So.FORCE_BODY||!1,dde=So.SANITIZE_DOM!==!1,hde=So.SANITIZE_NAMED_PROPS||!1,rie=So.KEEP_CONTENT!==!1,SL=So.IN_PLACE||!1,La=So.ALLOWED_URI_REGEXP||dP,S8=So.NAMESPACE||_O,vl=So.CUSTOM_ELEMENT_HANDLING||{},So.CUSTOM_ELEMENT_HANDLING&&yde(So.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vl.tagNameCheck=So.CUSTOM_ELEMENT_HANDLING.tagNameCheck),So.CUSTOM_ELEMENT_HANDLING&&yde(So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vl.attributeNameCheck=So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),So.CUSTOM_ELEMENT_HANDLING&&typeof So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(vl.allowCustomizedBuiltInElements=So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),km&&(Wh=!1),_8&&(qS=!0),w8&&(_a=rc({},[...Wk]),Qa=[],w8.html===!0&&(rc(_a,sP),rc(Qa,fP)),w8.svg===!0&&(rc(_a,lP),rc(Qa,C1),rc(Qa,C6)),w8.svgFilters===!0&&(rc(_a,qk),rc(Qa,C1),rc(Qa,C6)),w8.mathMl===!0&&(rc(_a,k6),rc(Qa,T6),rc(Qa,C6))),So.ADD_TAGS&&(_a===fa&&(_a=nS(_a)),rc(_a,So.ADD_TAGS,Tm)),So.ADD_ATTR&&(Qa===ac&&(Qa=nS(Qa)),rc(Qa,So.ADD_ATTR,Tm)),So.ADD_URI_SAFE_ATTR&&rc(oie,So.ADD_URI_SAFE_ATTR,Tm),So.FORBID_CONTENTS&&(O8===pde&&(O8=nS(O8)),rc(O8,So.FORBID_CONTENTS,Tm)),rie&&(_a["#text"]=!0),qy&&rc(_a,["html","head","body"]),_a.table&&(rc(_a,["tbody"]),delete dp.tbody),So.TRUSTED_TYPES_POLICY){if(typeof So.TRUSTED_TYPES_POLICY.createHTML!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof So.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');jr=So.TRUSTED_TYPES_POLICY,Ro=jr.createHTML("")}else jr===void 0&&(jr=_z(Bn,fe)),jr!==null&&typeof Ro=="string"&&(Ro=jr.createHTML(""));eg&&eg(So),k8=So}},bde=rc({},["mi","mo","mn","ms","mtext"]),xde=rc({},["foreignobject","desc","title","annotation-xml"]),a3e=rc({},["title","style","font","a","script"]),cQ=rc({},lP);rc(cQ,qk),rc(cQ,cP);const lie=rc({},k6);rc(lie,uP);const s3e=function(So){let oa=Fr(So);(!oa||!oa.tagName)&&(oa={namespaceURI:S8,tagName:"template"});const ja=O6(So.tagName),Yf=O6(oa.tagName);return aie[So.namespaceURI]?So.namespaceURI===lQ?oa.namespaceURI===_O?ja==="svg":oa.namespaceURI===sQ?ja==="svg"&&(Yf==="annotation-xml"||bde[Yf]):!!cQ[ja]:So.namespaceURI===sQ?oa.namespaceURI===_O?ja==="math":oa.namespaceURI===lQ?ja==="math"&&xde[Yf]:!!lie[ja]:So.namespaceURI===_O?oa.namespaceURI===lQ&&!xde[Yf]||oa.namespaceURI===sQ&&!bde[Yf]?!1:!lie[ja]&&(a3e[ja]||!cQ[ja]):!!(yT==="application/xhtml+xml"&&aie[So.namespaceURI]):!1},bT=function(So){Zk(N.removed,{element:So});try{So.parentNode.removeChild(So)}catch{So.remove()}},kL=function(So,oa){try{Zk(N.removed,{attribute:oa.getAttributeNode(So),from:oa})}catch{Zk(N.removed,{attribute:null,from:oa})}if(oa.removeAttribute(So),So==="is"&&!Qa[So])if(qS||_8)try{bT(oa)}catch{}else try{oa.setAttribute(So,"")}catch{}},_de=function(So){let oa,ja;if(OL)So=""+So;else{const Wy=aY(So,/^[\r\n\t ]+/);ja=Wy&&Wy[0]}yT==="application/xhtml+xml"&&S8===_O&&(So=''+So+"");const Yf=jr?jr.createHTML(So):So;if(S8===_O)try{oa=new Rn().parseFromString(Yf,yT)}catch{}if(!oa||!oa.documentElement){oa=ko.createDocument(S8,"template",null);try{oa.documentElement.innerHTML=iie?Ro:Yf}catch{}}const Cm=oa.body||oa.documentElement;return So&&ja&&Cm.insertBefore(Se.createTextNode(ja),Cm.childNodes[0]||null),S8===_O?Ao.call(oa,qy?"html":"body")[0]:qy?oa.documentElement:Cm},wde=function(So){return _i.call(So.ownerDocument||So,So,Lt.SHOW_ELEMENT|Lt.SHOW_COMMENT|Lt.SHOW_TEXT,null,!1)},l3e=function(So){return So instanceof fn&&(typeof So.nodeName!="string"||typeof So.textContent!="string"||typeof So.removeChild!="function"||!(So.attributes instanceof Ht)||typeof So.removeAttribute!="function"||typeof So.setAttribute!="function"||typeof So.namespaceURI!="string"||typeof So.insertBefore!="function"||typeof So.hasChildNodes!="function")},uQ=function(So){return typeof ft=="object"?So instanceof ft:So&&typeof So=="object"&&typeof So.nodeType=="number"&&typeof So.nodeName=="string"},wO=function(So,oa,ja){yi[So]&&oY(yi[So],Yf=>{Yf.call(N,oa,ja,k8)})},Ode=function(So){let oa;if(wO("beforeSanitizeElements",So,null),l3e(So))return bT(So),!0;const ja=Tm(So.nodeName);if(wO("uponSanitizeElement",So,{tagName:ja,allowedTags:_a}),So.hasChildNodes()&&!uQ(So.firstElementChild)&&(!uQ(So.content)||!uQ(So.content.firstElementChild))&&M0(/<[/\w]/g,So.innerHTML)&&M0(/<[/\w]/g,So.textContent))return bT(So),!0;if(!_a[ja]||dp[ja]){if(!dp[ja]&&kde(ja)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja)))return!1;if(rie&&!O8[ja]){const Yf=Fr(So)||So.parentNode,Cm=br(So)||So.childNodes;if(Cm&&Yf){const Wy=Cm.length;for(let Ih=Wy-1;Ih>=0;--Ih)Yf.insertBefore(cr(Cm[Ih],!0),Xr(So))}}return bT(So),!0}return So instanceof yt&&!s3e(So)||(ja==="noscript"||ja==="noembed"||ja==="noframes")&&M0(/<\/no(script|embed|frames)/i,So.innerHTML)?(bT(So),!0):(km&&So.nodeType===3&&(oa=So.textContent,oa=Pv(oa,Xi," "),oa=Pv(oa,ks," "),oa=Pv(oa,Ic," "),So.textContent!==oa&&(Zk(N.removed,{element:So.cloneNode()}),So.textContent=oa)),wO("afterSanitizeElements",So,null),!1)},Sde=function(So,oa,ja){if(dde&&(oa==="id"||oa==="name")&&(ja in Se||ja in i3e))return!1;if(!(Wh&&!qg[oa]&&M0(hl,oa))){if(!(Vv&&M0(Ui,oa))){if(!Qa[oa]||qg[oa]){if(!(kde(So)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,So)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(So))&&(vl.attributeNameCheck instanceof RegExp&&M0(vl.attributeNameCheck,oa)||vl.attributeNameCheck instanceof Function&&vl.attributeNameCheck(oa))||oa==="is"&&vl.allowCustomizedBuiltInElements&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja))))return!1}else if(!oie[oa]){if(!M0(La,Pv(ja,Oi,""))){if(!((oa==="src"||oa==="xlink:href"||oa==="href")&&So!=="script"&&sY(ja,"data:")===0&&mde[So])){if(!(Wg&&!M0(Ko,Pv(ja,Oi,"")))){if(ja)return!1}}}}}}return!0},kde=function(So){return So.indexOf("-")>0},Tde=function(So){let oa,ja,Yf,Cm;wO("beforeSanitizeAttributes",So,null);const{attributes:Wy}=So;if(!Wy)return;const Ih={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qa};for(Cm=Wy.length;Cm--;){oa=Wy[Cm];const{name:Yy,namespaceURI:cie}=oa;ja=Yy==="value"?oa.value:lY(oa.value);const u3e=ja;if(Yf=Tm(Yy),Ih.attrName=Yf,Ih.attrValue=ja,Ih.keepAttr=!0,Ih.forceKeepAttr=void 0,wO("uponSanitizeAttribute",So,Ih),ja=Ih.attrValue,Ih.forceKeepAttr)continue;if(!Ih.keepAttr){kL(Yy,So);continue}if(!U0&&M0(/\/>/i,ja)){kL(Yy,So);continue}km&&(ja=Pv(ja,Xi," "),ja=Pv(ja,ks," "),ja=Pv(ja,Ic," "));const Cde=Tm(So.nodeName);if(!Sde(Cde,Yf,ja)){kL(Yy,So);continue}if(hde&&(Yf==="id"||Yf==="name")&&(kL(Yy,So),ja=t3e+ja),jr&&typeof Bn=="object"&&typeof Bn.getAttributeType=="function"&&!cie)switch(Bn.getAttributeType(Cde,Yf)){case"TrustedHTML":{ja=jr.createHTML(ja);break}case"TrustedScriptURL":{ja=jr.createScriptURL(ja);break}}if(ja!==u3e)try{cie?So.setAttributeNS(cie,Yy,ja):So.setAttribute(Yy,ja)}catch{kL(Yy,So)}}wO("afterSanitizeAttributes",So,null)},c3e=function js(So){let oa;const ja=wde(So);for(wO("beforeSanitizeShadowDOM",So,null);oa=ja.nextNode();)wO("uponSanitizeShadowNode",oa,null),!Ode(oa)&&(oa.content instanceof Be&&js(oa.content),Tde(oa));wO("afterSanitizeShadowDOM",So,null)};return N.sanitize=function(js){let So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa,ja,Yf,Cm;if(iie=!js,iie&&(js=""),typeof js!="string"&&!uQ(js))if(typeof js.toString=="function"){if(js=js.toString(),typeof js!="string")throw F2("dirty is not a string, aborting")}else throw F2("toString is not a function");if(!N.isSupported)return js;if(xO||sie(So),N.removed=[],typeof js=="string"&&(SL=!1),SL){if(js.nodeName){const Yy=Tm(js.nodeName);if(!_a[Yy]||dp[Yy])throw F2("root node is forbidden and cannot be sanitized in-place")}}else if(js instanceof ft)oa=_de(""),ja=oa.ownerDocument.importNode(js,!0),ja.nodeType===1&&ja.nodeName==="BODY"||ja.nodeName==="HTML"?oa=ja:oa.appendChild(ja);else{if(!qS&&!km&&!qy&&js.indexOf("<")===-1)return jr&&aQ?jr.createHTML(js):js;if(oa=_de(js),!oa)return qS?null:aQ?Ro:""}oa&&OL&&bT(oa.firstChild);const Wy=wde(SL?js:oa);for(;Yf=Wy.nextNode();)Ode(Yf)||(Yf.content instanceof Be&&c3e(Yf.content),Tde(Yf));if(SL)return js;if(qS){if(_8)for(Cm=Pi.call(oa.ownerDocument);oa.firstChild;)Cm.appendChild(oa.firstChild);else Cm=oa;return(Qa.shadowroot||Qa.shadowrootmode)&&(Cm=$i.call(W,Cm,!0)),Cm}let Ih=qy?oa.outerHTML:oa.innerHTML;return qy&&_a["!doctype"]&&oa.ownerDocument&&oa.ownerDocument.doctype&&oa.ownerDocument.doctype.name&&M0(A6,oa.ownerDocument.doctype.name)&&(Ih=" -`+Ih),km&&(Ih=Pv(Ih,Xi," "),Ih=Pv(Ih,ks," "),Ih=Pv(Ih,Ic," ")),jr&&aQ?jr.createHTML(Ih):Ih},N.setConfig=function(js){sie(js),xO=!0},N.clearConfig=function(){k8=null,xO=!1},N.isValidAttribute=function(js,So,oa){k8||sie({});const ja=Tm(js),Yf=Tm(So);return Sde(ja,Yf,oa)},N.addHook=function(js,So){typeof So=="function"&&(yi[js]=yi[js]||[],Zk(yi[js],So))},N.removeHook=function(js){if(yi[js])return iY(yi[js])},N.removeHooks=function(js){yi[js]&&(yi[js]=[])},N.removeAllHooks=function(){yi={}},N}var mY=pP();const mP=l=>mY().sanitize(l);var Dg=tinymce.util.Tools.resolve("tinymce.util.I18n");const gY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},wz="temporary-placeholder",gP=l=>()=>Ge(l,wz).getOr("!not found!"),vP=(l,N)=>{const W=l.toLowerCase();if(Dg.isRtl()){const fe=vt(W,"-rtl");return ht(N,fe)?fe:W}else return W},Oz=(l,N)=>Ge(N,vP(l,N)),yP=(l,N)=>{const W=N();return Oz(l,W).getOrThunk(gP(W))},Sz=(l,N,W)=>{const fe=N();return Oz(l,fe).or(W).getOrThunk(gP(fe))},vY=l=>Dg.isRtl()?ht(gY,l):!1,E6=()=>Ka("add-focusable",[wc(l=>{Fc(l.element,"svg").each(N=>Cr(N,"focusable","false"))})]),rS=(l,N,W,fe)=>{var Se,Be;const qe=vY(N)?["tox-icon--flip"]:[],ft=Ge(W,vP(N,W)).or(fe).getOrThunk(gP(W));return{dom:{tag:l.tag,attributes:(Se=l.attributes)!==null&&Se!==void 0?Se:{},classes:l.classes.concat(qe),innerHtml:ft},behaviours:ei([...(Be=l.behaviours)!==null&&Be!==void 0?Be:[],E6()])}},Bg=(l,N,W,fe=I.none())=>rS(N,l,W(),fe),yY=(l,N,W)=>{const fe=W(),Se=ce(l,Be=>ht(fe,vP(Be,fe)));return rS(N,Se.getOr(wz),fe,I.none())},bY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},bP=Qp({name:"Notification",factory:l=>{const N=Li("notification-text"),W=ml({dom:Ev(`

    ${mP(l.backstageProvider.translate(l.text))}

    `),behaviours:ei([Fa.config({})])}),fe=er=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${er}%`}}}),Se=er=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${er}%`}}),Be=ml({dom:{tag:"div",classes:l.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(0)]},Se(0)],behaviours:ei([Fa.config({})])}),yt={updateProgress:(er,cr)=>{er.getSystem().isConnected()&&Be.getOpt(er).each(Xr=>{Fa.set(Xr,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(cr)]},Se(cr)])})},updateText:(er,cr)=>{if(er.getSystem().isConnected()){const Xr=W.get(er);Fa.set(Xr,[Po(cr)])}}},Lt=ye([l.icon.toArray(),l.level.toArray(),l.level.bind(er=>I.from(bY[er])).toArray()]),Ht=ml(Rh.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":l.backstageProvider.translate("Close")}},components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.iconProvider)],buttonBehaviours:ei([Rc.config({}),Vu.config({...l.backstageProvider.tooltips.getConfig({tooltipText:l.backstageProvider.translate("Close")})})]),action:er=>{l.onAction(er)}})),fn=yY(Lt,{tag:"div",classes:["tox-notification__icon"]},l.iconProvider),Rn={dom:{tag:"div",classes:["tox-notification__body"]},components:[W.asSpec()],behaviours:ei([Fa.config({})])},Bn=[fn,Rn];return{uid:l.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":N},classes:l.level.map(er=>["tox-notification","tox-notification--in",`tox-notification--${er}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:ei([Rc.config({}),Ra.config({}),ha.config({mode:"special",onEscape:er=>(l.onAction(er),I.some(!0))})]),components:Bn.concat(l.progress?[Be.asSpec()]:[]).concat([Ht.asSpec()]),apis:yt}},configFields:[Yo("level"),pn("progress"),Yo("icon"),pn("onAction"),pn("text"),pn("iconProvider"),pn("backstageProvider")],apis:{updateProgress:(l,N,W)=>{l.updateProgress(N,W)},updateText:(l,N,W)=>{l.updateText(N,W)}}});var _Y=(l,N,W,fe)=>{const Se=N.backstage.shared,Be=()=>Nt.fromDom(l.queryCommandValue("ToggleView")===""?l.getContentAreaContainer():l.getContainer()),qe=()=>{const fn=cl(Be());return I.some(fn)},ft=fn=>{qe().each(Rn=>{q(fn,Bn=>{zi(Bn.element,"width"),_s(Bn.element)>Rn.width&&xr(Bn.element,"width",Rn.width+"px")})})};return{open:(fn,Rn,Bn)=>{const er=()=>{const Fr=_i=>{Fa.remove(_i,cr),Xr()},jr=(_i,Pi)=>{Do(_i.element).length===0?Ro(_i,Pi):ko(_i,Pi)},Ro=(_i,Pi)=>{Xc.hide(_i),fe.clear(),Pi&&l.focus()},ko=(_i,Pi)=>{Pi&&ha.focusIn(_i)};fe.on(_i=>{Rn();const Pi=Bn();Fr(_i),jr(_i,Pi)})},cr=ka(bP.sketch({text:fn.text,level:X(["success","error","warning","warn","info"],fn.type)?fn.type:void 0,progress:fn.progressBar===!0,icon:fn.icon,onAction:er,iconProvider:Se.providers.icons,backstageProvider:Se.providers}));if(fe.isSet()){const Fr=ea(cr);fe.on(jr=>{Fa.append(jr,Fr),Xc.reposition(jr),fc.refresh(jr),ft(jr.components())})}else{const Fr=ka(Xc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:Se.getSink,fireDismissalEventInstead:{},...Se.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([ha.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),Fa.config({}),...Qw(l)&&!Se.header.isPositionedAtTop()?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Be())),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:_i=>ix(l,_i.element).map(Ao=>({bounds:Hw(Ao),optScrollEnv:I.some({currentScrollTop:Ao.element.dom.scrollTop,scrollElmTop:Tc(Ao.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]])})),jr=ea(cr),Ro={maxHeightFunction:v1()},ko={...Se.anchors.banner(),overrides:Ro};fe.set(Fr),W.add(Fr),Xc.showWithinBounds(Fr,jr,{anchor:ko},qe)}h(fn.timeout)&&fn.timeout>0&&J3.setEditorTimeout(l,()=>{er()},fn.timeout);const Xr=()=>{fe.on(Fr=>{Xc.reposition(Fr),fc.refresh(Fr),ft(Fr.components())})};return{close:er,reposition:Xr,text:Fr=>{bP.updateText(cr,Fr)},settings:fn,getEl:()=>cr.element.dom,progressBar:{value:Fr=>{bP.updateProgress(cr,Fr)}}}},close:fn=>{fn.close()},getArgs:fn=>fn.settings}};const kz={setup:(l,N)=>{const W=(Se,Be)=>{sa(Se,nm(),{raw:Be})},fe=()=>l.getMenu().bind(ta.getHighlighted);N.on("keydown",Se=>{const Be=Se.which;l.isActive()&&(l.isMenuOpen()?Be===13?(fe().each(Bm),Se.preventDefault()):Be===40?(fe().fold(()=>{l.getMenu().each(ta.highlightFirst)},qe=>{W(qe,Se)}),Se.preventDefault(),Se.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&fe().each(qe=>{W(qe,Se),Se.preventDefault(),Se.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&l.cancelIfNecessary())}),N.on("NodeChange",()=>{l.isActive()&&!l.isProcessingAction()&&!N.queryCommandState("mceAutoCompleterInRange")&&l.cancelIfNecessary()})}};var P6;(function(l){l[l.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",l[l.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(P6||(P6={}));var A1=P6;const xP="tox-menu-nav__js",R6="tox-collection__item",L6="tox-swatch",_P={normal:xP,color:L6},I6="tox-collection__item--enabled",Tz="tox-collection__group-heading",wP="tox-collection__item-icon",D6="tox-collection__item-label",OY="tox-collection__item-accessory",B6="tox-collection__item-caret",SY="tox-collection__item-checkmark",$2="tox-collection__item--active",OP="tox-collection__item-container",Zw="tox-collection__item-container--column",Cz="tox-collection__item-container--row",SP="tox-collection__item-container--align-right",z6="tox-collection__item-container--align-left",kY="tox-collection__item-container--valign-top",Az="tox-collection__item-container--valign-middle",Mz="tox-collection__item-container--valign-bottom",kP=l=>Ge(_P,l).getOr(xP),TP=l=>l==="color"?"tox-swatches":"tox-menu",N6=l=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:TP(l),tieredMenu:"tox-tiered-menu"}),qw=l=>{const N=N6(l);return{backgroundMenu:N.backgroundMenu,selectedMenu:N.selectedMenu,menu:N.menu,selectedItem:N.selectedItem,item:kP(l)}},Ez=(l,N,W)=>{const fe=N6(W);return{tag:"div",classes:ye([[fe.menu,`tox-menu-${N}-column`],l?[fe.hasIcons]:[]])}},Pz=[T0.parts.items({})],Xk=(l,N,W)=>{const fe=N6(W);return{dom:{tag:"div",classes:ye([[fe.tieredMenu]])},markers:qw(W)}},CP=x([Yo("data"),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("tag","input"),Ar("inputClasses",[]),Ss("onSetValue"),Ar("styles",{}),Ar("eventOrder",{}),Pd("inputBehaviours",[Ei,Ra]),Ar("selectOnFocus",!0)]),Rz=l=>ei([Ra.config({onFocus:l.selectOnFocus?N=>{const W=N.element,fe=F(W);W.dom.setSelectionRange(0,fe.length)}:v})]),Lz=l=>({...Rz(l),...Rd(l.inputBehaviours,[Ei.config({store:{mode:"manual",...l.data.map(N=>({initialValue:N})).getOr({}),getValue:N=>F(N.element),setValue:(N,W)=>{F(N.element)!==W&&G(N.element,W)}},onSetValue:l.onSetValue})])}),Iz=l=>({tag:l.tag,attributes:{type:"text",...l.inputAttributes},styles:l.inputStyles,classes:l.inputClasses}),TY=(l,N)=>({uid:l.uid,dom:Iz(l),components:[],behaviours:Lz(l),eventOrder:l.eventOrder}),Ww=Qp({name:"Input",configFields:CP(),factory:TY}),Dz=Li("refetch-trigger-event"),AP=Li("redirect-menu-item-interaction"),oS="tox-menu__searcher",Gk=l=>qa(l.element,`.${oS}`).bind(N=>l.getSystem().getByDom(N).toOptional()),Bz=Gk,CY=(l,N)=>{Ei.setValue(l,N.fetchPattern),l.element.dom.selectionStart=N.selectionStart,l.element.dom.selectionEnd=N.selectionEnd},zz=l=>{const N=Ei.getValue(l),W=l.element.dom.selectionStart,fe=l.element.dom.selectionEnd;return{fetchPattern:N,selectionStart:W,selectionEnd:fe}},AY=(l,N)=>{Eo(N.element,"id").each(W=>Cr(l.element,"aria-activedescendant",W))},MY=l=>{const N=(Se,Be)=>(Be.cut(),I.none()),W=(Se,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return sa(Se,AP,qe),I.some(!0)},fe="searcher-events";return{dom:{tag:"div",classes:[R6]},components:[Ww.sketch({inputClasses:[oS,"tox-textfield"],inputAttributes:{...l.placeholder.map(Se=>({placeholder:l.i18n(Se)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:ei([Ka(fe,[Lo(vg(),Se=>{Za(Se,Dz)}),Lo(nm(),(Se,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),ha.config({mode:"special",onLeft:N,onRight:N,onSpace:N,onEnter:W,onEscape:W,onUp:W,onDown:W})]),eventOrder:{keydown:[fe,ha.name()]}})]}},Yw="tox-collection--results__js",Nz=l=>{var N;return l.dom?{...l,dom:{...l.dom,attributes:{...(N=l.dom.attributes)!==null&&N!==void 0?N:{},id:Li("aria-item-search-result-id"),"aria-selected":"false"}}}:l},F6=(l,N)=>W=>{const fe=K(W,N);return re(fe,Se=>({dom:l,components:Se}))},EY=l=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[T0.parts.items({preprocess:l!=="auto"?F6({tag:"div",classes:["tox-swatches__row"]},l):R})]}]}),Fz=l=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[T0.parts.items({preprocess:F6({tag:"div",classes:["tox-collection__group"]},l)})]}),MP=(l,N)=>{const W=[];let fe=[];return q(l,(Se,Be)=>{N(Se,Be)?(fe.length>0&&W.push(fe),fe=[],(ht(Se.dom,"innerHtml")||Se.components&&Se.components.length>0)&&fe.push(Se)):fe.push(Se)}),fe.length>0&&W.push(fe),re(W,Se=>({dom:{tag:"div",classes:["tox-collection__group"]},components:Se}))},EP=(l,N,W)=>T0.parts.items({preprocess:fe=>{const Se=re(fe,W);return l!=="auto"&&l>1?F6({tag:"div",classes:["tox-collection__group"]},l)(Se):MP(Se,(Be,qe)=>N[qe].type==="separator")}}),PP=(l,N,W=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EP(l,N,R)]}),$z=(l,N,W=!0)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Yw].concat(l===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:fe}},components:[EP(l,N,Nz)]}},Vz=(l,N,W)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[MY({i18n:Dg.translate,placeholder:W.placeholder}),{dom:{tag:"div",classes:[...l===1?["tox-collection--list"]:["tox-collection--grid"],Yw],attributes:{id:fe}},components:[EP(l,N,Nz)]}]}},Uz=(l,N=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[T0.parts.items({preprocess:W=>MP(W,(fe,Se)=>l[Se].type==="separator")})]}),$6=l=>te(l,N=>"icon"in N&&N.icon!==void 0),ax=l=>(console.error(dn(l)),console.log(l),I.none()),PY=(l,N,W,fe,Se)=>{const Be=Uz(W);return{value:l,dom:Be.dom,components:Be.components,items:W}},RP=(l,N,W,fe,Se)=>{const Be=()=>Se.menuType!=="searchable"?PP(fe,W):Se.searchMode.searchMode==="search-with-field"?Vz(fe,W,Se.searchMode):$z(fe,W);if(Se.menuType==="color"){const qe=EY(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"&&fe==="auto"){const qe=PP(fe,W);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"||Se.menuType==="searchable"){const qe=Be();return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="listpreview"&&fe!=="auto"){const qe=Fz(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else return{value:l,dom:Ez(N,fe,Se.menuType),components:Pz,items:W}},pf=Pr("type"),V6=Pr("name"),LP=Pr("label"),sx=Pr("text"),jz=Pr("title"),Qz=Pr("icon"),Kk=Pr("value"),RY=po("fetch"),LY=po("getSubmenuItems"),V2=po("onAction"),Hz=po("onItemAction"),Xw=ys("onSetup",()=>v),IY=jo("name"),lx=jo("text"),DY=jo("role"),E0=jo("icon"),iS=jo("tooltip"),U6=jo("label"),j6=jo("shortcut"),BY=ai("select"),Q6=Hs("active",!1),zY=Hs("borderless",!1),P0=Hs("enabled",!0),aS=Hs("primary",!1),Zz=l=>Ar("columns",l),IP=Ar("meta",{}),DP=ys("onAction",v),Gw=l=>Ts("type",l),BP=l=>Ln("name","name",Ca(()=>Li(`${l}-name`)),ne),NY=l=>Ln("value","value",Ca(()=>Li(`${l}-value`)),Ut()),zP=Si([pf,lx]),qz=l=>Rt("separatormenuitem",zP,l),FY=Si([Gw("autocompleteitem"),Q6,P0,IP,Kk,lx,E0]),$Y=l=>Rt("Autocompleter.Separator",zP,l),VY=l=>Rt("Autocompleter.Item",FY,l),lp=[P0,iS,E0,lx,Xw],Rv=Si([pf,V2,j6].concat(lp)),Wz=l=>Rt("toolbarbutton",Rv,l),Jk=[Q6].concat(lp),NP=Si(Jk.concat([pf,V2,j6])),Yz=l=>Rt("ToggleButton",NP,l),Xz=[ys("predicate",D),rl("scope","node",["node","editor"]),rl("position","selection",["node","selection","line"])],e5=lp.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),H6=Jk.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),FP=lp.concat([Gw("contextformbutton")]),UY=Jk.concat([Gw("contextformtogglebutton")]),Lv=bn("type",{contextformbutton:e5,contextformtogglebutton:H6}),jY=Si([Gw("contextform"),ys("initValue",x("")),U6,Go("commands",Lv),Wi("launch",bn("type",{contextformbutton:FP,contextformtogglebutton:UY}))].concat(Xz)),QY=l=>Rt("ContextForm",jY,l),R0=Si([Gw("contexttoolbar"),Pr("items")].concat(Xz)),t5=l=>Rt("ContextToolbar",R0,l),M1=[pf,Pr("src"),jo("alt"),mt("classes",[],ne)],HY=Si(M1),oc=[pf,sx,IY,mt("classes",["tox-collection__item-label"],ne)],sS=Si(oc),n5=Pc(()=>Ne("type",{cardimage:HY,cardtext:sS,cardcontainer:Gz})),Gz=Si([pf,Ts("direction","horizontal"),Ts("align","left"),Ts("valign","middle"),Go("items",n5)]),U2=[P0,lx,DY,j6,NY("menuitem"),IP],$P=Si([pf,U6,Go("items",n5),Xw,DP].concat(U2)),ZY=l=>Rt("cardmenuitem",$P,l),VP=Si([pf,Q6,E0].concat(U2)),qY=l=>Rt("choicemenuitem",VP,l),UP=[pf,Pr("fancytype"),DP],Kz=[Ar("initData",{})].concat(UP),jP=[ai("select"),Tt("initData",{},[Hs("allowCustomColors",!0),Ts("storageKey","default"),Hi("colors",Ut())])].concat(UP),Jz=bn("fancytype",{inserttable:Kz,colorswatch:jP}),Z6=l=>Rt("fancymenuitem",Jz,l),WY=Si([pf,Xw,DP,E0].concat(U2)),YY=l=>Rt("menuitem",WY,l),XY=Si([pf,LY,Xw,E0].concat(U2)),GY=l=>Rt("nestedmenuitem",XY,l),KY=Si([pf,E0,Q6,Xw,V2].concat(U2)),eN=l=>Rt("togglemenuitem",KY,l),QP=(l,N,W)=>{const fe=Yd(l.element,"."+W);if(fe.length>0){const Se=de(fe,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=fe[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>N}).getOr(fe.length);return I.some({numColumns:Se,numRows:Math.ceil(fe.length/Se)})}else return I.none()},tN=(l,N)=>ei([Ka(l,N)]),lS={namedEvents:tN,unnamedEvents:l=>tN(Li("unnamed-events"),l)},eX=l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),nN="silver.readonly",rN=Si([ro("readonly")]),cS=(l,N)=>{const fe=l.mainUi.outerContainer.element,Se=[l.mainUi.mothership,...l.uiMotherships];N&&q(Se,Be=>{Be.broadcastOn([_1()],{target:fe})}),q(Se,Be=>{Be.broadcastOn([nN],{readonly:N})})},HP=(l,N)=>{l.on("init",()=>{l.mode.isReadOnly()&&cS(N,!0)}),l.on("SwitchMode",()=>cS(N,l.mode.isReadOnly())),YB(l)&&l.mode.set("readonly")},Id=()=>Ad.config({channels:{[nN]:{schema:rN,onReceive:(l,N)=>{he.set(l,N.readonly)}}}}),E1={item:l=>he.config({disabled:l,disableClass:"tox-collection__item--state-disabled"}),button:l=>he.config({disabled:l}),splitButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled"}),toolbarButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled",useNative:!1})},r5=(l,N)=>{const W=l.getApi(N);return fe=>{fe(W)}},cp=(l,N)=>wc(W=>{r5(l,W)(Se=>{const Be=l.onSetup(Se);c(Be)&&N.set(Be)})}),j2=(l,N)=>xg(W=>r5(l,W)(N.get())),ZP=(l,N)=>Sh((W,fe)=>{r5(l,W)(l.onAction),!l.triggersSubmenu&&N===A1.CLOSE_ON_EXECUTE&&(W.getSystem().isConnected()&&Za(W,Z1()),fe.stop())}),oN={[Bp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Kw=zt,uS=(l,N,W,fe)=>{const Se=wi(v);return{type:"item",dom:N.dom,components:Kw(N.optComponents),data:l.data,eventOrder:oN,hasSubmenu:l.triggersSubmenu,itemBehaviours:ei([Ka("item-events",[ZP(l,W),cp(l,Se),j2(l,Se)]),E1.item(()=>!l.enabled||fe.isDisabled()),Id(),Fa.config({})].concat(l.itemBehaviours))}},Jw=l=>({value:l.value,meta:{text:l.text.getOr(""),...l.meta}}),q6=l=>{const N=$w.os.isMacOS()||$w.os.isiOS(),Se=N?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=l.split("+"),qe=re(Be,ft=>{const yt=ft.toLowerCase().trim();return ht(Se,yt)?Se[yt]:ft});return N?qe.join(""):qe.join("+")},W6=(l,N,W=[wP])=>Bg(l,{tag:"div",classes:W},N),iN=l=>({dom:{tag:"div",classes:[D6]},components:[Po(Dg.translate(l))]}),aN=(l,N)=>({dom:{tag:"div",classes:N,innerHtml:l}}),tX=(l,N)=>({dom:{tag:"div",classes:[D6]},components:[{dom:{tag:l.tag,styles:l.styles},components:[Po(Dg.translate(N))]}]}),nX=l=>({dom:{tag:"div",classes:[OY]},components:[Po(q6(l))]}),sN=l=>W6("checkmark",l,[SY]),lN=l=>W6("chevron-right",l,[B6]),cN=l=>W6("chevron-down",l,[B6]),uN=(l,N)=>{const W=l.direction==="vertical"?Zw:Cz,fe=l.align==="left"?z6:SP;return{dom:{tag:"div",classes:[OP,W,fe,(()=>{switch(l.valign){case"top":return kY;case"middle":return Az;case"bottom":return Mz}})()]},components:N}},rX=(l,N,W)=>({dom:{tag:"img",classes:N,attributes:{src:l,alt:W.getOr("")}}}),oX=(l,N,W)=>{const fe="custom",Se="remove",Be=l.value,qe=l.iconContent.map(Lt=>Sz(Lt,N.icons,W)),ft=l.ariaLabel.map(Lt=>({"aria-label":N.translate(Lt),"data-mce-name":Lt})).getOr({});return{dom:(()=>{const Lt=L6,Ht=qe.getOr(""),fn={tag:"div",attributes:ft,classes:[Lt]};return Be===fe?{...fn,tag:"button",classes:[...fn.classes,"tox-swatches__picker-btn"],innerHtml:Ht}:Be===Se?{...fn,classes:[...fn.classes,"tox-swatch--remove"],innerHtml:Ht}:a(Be)?{...fn,attributes:{...fn.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:Ht}:fn})(),optComponents:[]}},fN=l=>{const N=l.map(W=>({attributes:{id:Li("menu-item"),"aria-label":Dg.translate(W)}})).getOr({});return{tag:"div",classes:[xP,R6],...N}},fS=(l,N,W,fe)=>{const Se={tag:"div",classes:[wP]},Be=Rn=>Bg(Rn,Se,N.icons,fe),qe=()=>I.some({dom:Se}),ft=W?l.iconContent.map(Be).orThunk(qe):I.none(),yt=l.checkMark,Lt=I.from(l.meta).fold(()=>iN,Rn=>ht(Rn,"style")?T(tX,Rn.style):iN),Ht=l.htmlContent.fold(()=>l.textContent.map(Lt),Rn=>I.some(aN(Rn,[D6])));return{dom:fN(l.ariaLabel),optComponents:[ft,Ht,l.shortcutContent.map(nX),yt,l.caret]}},o5=(l,N,W,fe=I.none())=>l.presets==="color"?oX(l,N,fe):fS(l,N,W,fe),qP=(l,N,W)=>Ge(l,"tooltipWorker").map(fe=>[Vu.config({lazySink:N.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:Se=>({type:"submenu",item:Se,overrides:{maxHeightFunction:v1}}),mode:"follow-highlight",onShow:(Se,Be)=>{fe(qe=>{Vu.setComponents(Se,[Ii({element:Nt.fromDom(qe)})])})}})]).getOrThunk(()=>W.map(fe=>[Vu.config({...N.providers.tooltips.getConfig({tooltipText:fe}),mode:"follow-highlight"})]).getOr([])),dN=l=>Fw.DOM.encode(l),WP=(l,N)=>{const W=Dg.translate(l),fe=dN(W);if(N.length>0){const Se=new RegExp(eX(N),"gi");return fe.replace(Se,Be=>`${Be}`)}else return fe},hN=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=o5({presets:fe,textContent:I.none(),htmlContent:W?l.text.map(Ht=>WP(Ht,N)):I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:l.value},qe.providers,ft,l.icon),Lt=l.text.filter(Ht=>!W&&Ht!=="");return uS({data:Jw(l),enabled:l.enabled,getApi:x({}),onAction:Ht=>Se(l.value,l.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:qP(l,qe,Lt)},yt,Be,qe.providers)},Y6=(l,N)=>re(l,W=>{switch(W.type){case"cardcontainer":return uN(W,Y6(W.items,N));case"cardimage":return rX(W.src,W.classes,W.alt);case"cardtext":const Se=W.name.exists(Be=>X(N.cardText.highlightOn,Be))?I.from(N.cardText.matchText).getOr(""):"";return aN(WP(W.text,Se),W.classes)}}),YP=(l,N,W,fe)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>{he.set(qe,!ft),q(Yd(qe.element,"*"),yt=>{qe.getSystem().getByDom(yt).each(Lt=>{Lt.hasConfigured(he)&&he.set(Lt,!ft)})})}}),Be={dom:fN(l.label),optComponents:[I.some({dom:{tag:"div",classes:[OP,Cz]},components:Y6(l.items,fe)})]};return uS({data:Jw({text:I.none(),...l}),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(fe.itemBehaviours).getOr([])},Be,N,W.providers)},XP=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=fn=>({setActive:Rn=>{us.set(fn,Rn)},isActive:()=>us.isOn(fn),isEnabled:()=>!he.isDisabled(fn),setEnabled:Rn=>he.set(fn,!Rn)}),Lt=o5({presets:W,textContent:N?l.text:I.none(),htmlContent:I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:N?l.shortcut:I.none(),checkMark:N?I.some(sN(qe.icons)):I.none(),caret:I.none(),value:l.value},qe,ft),Ht=l.text.filter(x(!N)).map(fn=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(fn)})));return ws(uS({data:Jw(l),enabled:l.enabled,getApi:yt,onAction:fn=>fe(l.value),onSetup:fn=>(fn.setActive(Se),v),triggersSubmenu:!1,itemBehaviours:[...Ht.toArray()]},Lt,Be,qe),{toggling:{toggleClass:I6,toggleOnExecute:!1,selected:l.active,exclusive:!0}})},GP=jC(h6(),VE()),pN=l=>({value:vN(l)}),KP=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,mN=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,gN=l=>KP.test(l)||mN.test(l),vN=l=>Sn(l,"#").toUpperCase(),yN=l=>gN(l)?I.some({value:vN(l)}):I.none(),bN=l=>({value:l.value.replace(KP,(W,fe,Se,Be)=>fe+fe+Se+Se+Be+Be)}),xN=l=>{const N=bN(l),W=mN.exec(N.value);return W===null?["FFFFFF","FF","FF","FF"]:W},JP=l=>{const N=l.toString(16);return(N.length===1?"0"+N:N).toUpperCase()},i5=l=>{const N=JP(l.red)+JP(l.green)+JP(l.blue);return pN(N)},_N=Math.min,wN=Math.max,X6=Math.round,iX=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,aX=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,eO=(l,N,W,fe)=>({red:l,green:N,blue:W,alpha:fe}),e7=l=>{const N=parseInt(l,10);return N.toString()===l&&N>=0&&N<=255},ON=l=>{let N,W,fe;const Se=(l.hue||0)%360;let Be=l.saturation/100,qe=l.value/100;if(Be=wN(0,_N(Be,1)),qe=wN(0,_N(qe,1)),Be===0)return N=W=fe=X6(255*qe),eO(N,W,fe,1);const ft=Se/60,yt=qe*Be,Lt=yt*(1-Math.abs(ft%2-1)),Ht=qe-yt;switch(Math.floor(ft)){case 0:N=yt,W=Lt,fe=0;break;case 1:N=Lt,W=yt,fe=0;break;case 2:N=0,W=yt,fe=Lt;break;case 3:N=0,W=Lt,fe=yt;break;case 4:N=Lt,W=0,fe=yt;break;case 5:N=yt,W=0,fe=Lt;break;default:N=W=fe=0}return N=X6(255*(N+Ht)),W=X6(255*(W+Ht)),fe=X6(255*(fe+Ht)),eO(N,W,fe,1)},a5=l=>{const N=xN(l),W=parseInt(N[1],16),fe=parseInt(N[2],16),Se=parseInt(N[3],16);return eO(W,fe,Se,1)},t7=(l,N,W,fe)=>{const Se=parseInt(l,10),Be=parseInt(N,10),qe=parseInt(W,10),ft=parseFloat(fe);return eO(Se,Be,qe,ft)},n7=l=>{const N=iX.exec(l);if(N!==null)return I.some(t7(N[1],N[2],N[3],"1"));const W=aX.exec(l);return W!==null?I.some(t7(W[1],W[2],W[3],W[4])):I.none()},SN=l=>`rgba(${l.red},${l.green},${l.blue},${l.alpha})`,kN=eO(255,0,0,1),sX=l=>{l.dispatch("SkinLoaded")},lX=(l,N)=>{l.dispatch("SkinLoadError",N)},G6=l=>{l.dispatch("ResizeEditor")},K6=(l,N)=>{l.dispatch("ResizeContent",N)},cX=(l,N)=>{l.dispatch("ScrollContent",N)},TN=(l,N)=>{l.dispatch("TextColorChange",N)},uX=(l,N)=>{l.dispatch("AfterProgressState",{state:N})},fX=(l,N)=>l.dispatch("ResolveName",{name:N.nodeName.toLowerCase(),target:N}),dX=(l,N)=>{l.dispatch("ToggleToolbarDrawer",{state:N})},hX=(l,N)=>{l.dispatch("StylesTextUpdate",N)},r7=(l,N)=>{l.dispatch("AlignTextUpdate",N)},CN=(l,N)=>{l.dispatch("FontSizeTextUpdate",N)},AN=(l,N)=>{l.dispatch("FontSizeInputTextUpdate",N)},pX=(l,N)=>{l.dispatch("BlocksTextUpdate",N)},o7=(l,N)=>{l.dispatch("FontFamilyTextUpdate",N)},mX=l=>{l.dispatch("ToggleSidebar")},gX=l=>{l.dispatch("ToggleView")},J6=(l,N)=>()=>{l(),N()},kp=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.selection.isEditable())}),vX=(l,N)=>W=>{const fe=Ol(),Se=()=>{W.setActive(l.formatter.match(N));const Be=l.formatter.formatChanged(N,W.setActive);fe.set(Be)};return l.initialized?Se():l.once("init",Se),()=>{l.off("init",Se),fe.clear()}},eA=(l,N)=>W=>{const fe=kp(l)(W),Se=vX(l,N)(W);return()=>{fe(),Se()}},tO=(l,N,W)=>fe=>{const Se=()=>W(fe),Be=()=>{W(fe),l.on(N,Se)};return l.initialized?Be():l.once("init",Be),()=>{l.off("init",Be),l.off(N,Se)}},MN=l=>N=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("mceToggleFormat",!1,N.format)})},tg=(l,N)=>()=>l.execCommand(N);var nO=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const s5={},i7=(l,N=10)=>{const W=nO.getItem(l),fe=n(W)?JSON.parse(W):[],Be=(Lt=>N-Lt.length<0?Lt.slice(0,N):Lt)(fe),qe=Lt=>{U(Be,Lt).each(ft),Be.unshift(Lt),Be.length>N&&Be.pop(),nO.setItem(l,JSON.stringify(Be))},ft=Lt=>{Be.splice(Lt,1)};return{add:qe,state:()=>Be.slice(0)}},tA=l=>Ge(s5,l).getOrThunk(()=>{const N=`tinymce-custom-colors-${l}`,W=nO.getItem(N);if(m(W)){const Se=nO.getItem("tinymce-custom-colors");nO.setItem(N,a(Se)?Se:"[]")}const fe=i7(N,10);return s5[l]=fe,fe}),EN=l=>re(tA(l).state(),N=>({type:"choiceitem",text:N,icon:"checkmark",value:N})),PN=(l,N)=>{tA(l).add(N)},l5=(l,N,W)=>({hue:l,saturation:N,value:W}),c5=l=>{let N=0,W=0,fe=0;const Se=l.red/255,Be=l.green/255,qe=l.blue/255,ft=Math.min(Se,Math.min(Be,qe)),yt=Math.max(Se,Math.max(Be,qe));if(ft===yt)return fe=ft,l5(0,0,fe*100);const Lt=Se===ft?Be-qe:qe===ft?Se-Be:qe-Se;return N=Se===ft?3:qe===ft?1:5,N=60*(N-Lt/(yt-ft)),W=(yt-ft)/yt,fe=yt,l5(Math.round(N),Math.round(W*100),Math.round(fe*100))},a7=l=>c5(a5(l)),u5=l=>i5(ON(l)),RN=l=>yN(l).orThunk(()=>n7(l).map(i5)).getOrThunk(()=>{const N=document.createElement("canvas");N.height=1,N.width=1;const W=N.getContext("2d");W.clearRect(0,0,N.width,N.height),W.fillStyle="#FFFFFF",W.fillStyle=l,W.fillRect(0,0,1,1);const fe=W.getImageData(0,0,1,1).data,Se=fe[0],Be=fe[1],qe=fe[2],ft=fe[3];return i5(eO(Se,Be,qe,ft))}),s7="forecolor",l7="hilitecolor",yX=5,bX=l=>{const N=[];for(let W=0;WN=>N.options.get(l),c7="#000000",xX=l=>{const N=l.options.register,W=Se=>p(Se,n)?{value:bX(Se),valid:!0}:{valid:!1,message:"Must be an array of strings."},fe=Se=>h(Se)&&Se>0?{value:Se,valid:!0}:{valid:!1,message:"Must be a positive number."};N("color_map",{processor:W,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),N("color_map_background",{processor:W}),N("color_map_foreground",{processor:W}),N("color_cols",{processor:fe,default:u7(l)}),N("color_cols_foreground",{processor:fe,default:LN(l,s7)}),N("color_cols_background",{processor:fe,default:LN(l,l7)}),N("custom_colors",{processor:"boolean",default:!0}),N("color_default_foreground",{processor:"string",default:c7}),N("color_default_background",{processor:"string",default:c7})},nA=(l,N)=>N===s7&&l.options.isSet("color_map_foreground")?Dy("color_map_foreground")(l):N===l7&&l.options.isSet("color_map_background")?Dy("color_map_background")(l):Dy("color_map")(l),u7=(l,N="default")=>Math.max(yX,Math.ceil(Math.sqrt(nA(l,N).length))),LN=(l,N)=>{const W=Dy("color_cols")(l),fe=u7(l,N);return W===u7(l)?fe:W},IN=(l,N="default")=>Math.round((()=>N===s7?Dy("color_cols_foreground")(l):N===l7?Dy("color_cols_background")(l):Dy("color_cols")(l))()),DN=Dy("custom_colors"),_X=Dy("color_default_foreground"),BN=Dy("color_default_background"),wX="rgba(0, 0, 0, 0)",OX=l=>n7(l).exists(N=>N.alpha!==0),By=l=>Nl(l,N=>{if(lr(N)){const W=Di(N,"background-color");return Ot(OX(W),W)}else return I.none()}).getOr(wX),zN=(l,N)=>{const W=Nt.fromDom(l.selection.getStart()),fe=N==="hilitecolor"?By(W):Di(W,"color");return n7(fe).map(Se=>"#"+i5(Se).value)},SX=(l,N,W)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.apply(N,{value:W}),l.nodeChanged()})},f7=(l,N)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.remove(N,{value:null},void 0,!0),l.nodeChanged()})},Xd=l=>{l.addCommand("mceApplyTextcolor",(N,W)=>{SX(l,N,W)}),l.addCommand("mceRemoveTextcolor",N=>{f7(l,N)})},NN=l=>{const N="choiceitem",W={type:N,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return l?[W,{type:N,text:"Custom color",icon:"color-picker",value:"custom"}]:[W]},d7=(l,N,W,fe)=>{W==="custom"?QN(l)(Be=>{Be.each(qe=>{PN(N,qe),l.execCommand("mceApplyTextcolor",N,qe),fe(qe)})},zN(l,N).getOr(c7)):W==="remove"?(fe(""),l.execCommand("mceRemoveTextcolor",N)):(fe(W),l.execCommand("mceApplyTextcolor",N,W))},h7=(l,N,W)=>l.concat(EN(N).concat(NN(W))),FN=(l,N,W)=>fe=>{fe(h7(l,N,W))},p7=(l,N,W)=>{const fe=N==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";l.setIconFill(fe,W)},$N=(l,N)=>{l.setTooltip(N)},VN=(l,N)=>W=>{const fe=zN(l,N);return St(fe,W.toUpperCase())},m7=(l,N,W)=>{if(at(W))return N==="forecolor"?"Text color":"Background color";const fe=N==="forecolor"?"Text color {0}":"Background color {0}",Se=h7(nA(l,N),N,!1),Be=ce(Se,qe=>qe.value===W).getOr({text:""}).text;return l.translate([fe,l.translate(Be)])},UN=(l,N,W,fe)=>{l.ui.registry.addSplitButton(N,{tooltip:m7(l,W,fe.get()),presets:"color",icon:N==="forecolor"?"text-color":"highlight-bg-color",select:VN(l,W),columns:IN(l,W),fetch:FN(nA(l,W),W,DN(l)),onAction:Se=>{d7(l,W,fe.get(),v)},onItemAction:(Se,Be)=>{d7(l,W,Be,qe=>{fe.set(qe),TN(l,{name:N,color:qe})})},onSetup:Se=>{p7(Se,N,fe.get());const Be=qe=>{qe.name===N&&(p7(Se,qe.name,qe.color),$N(Se,m7(l,W,qe.color)))};return l.on("TextColorChange",Be),J6(kp(l)(Se),()=>{l.off("TextColorChange",Be)})}})},jN=(l,N,W,fe,Se)=>{l.ui.registry.addNestedMenuItem(N,{text:fe,icon:N==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>($N(Be,m7(l,W,Se.get())),p7(Be,N,Se.get()),kp(l)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:VN(l,W),initData:{storageKey:W},onAction:Be=>{d7(l,W,Be.value,qe=>{Se.set(qe),TN(l,{name:N,color:qe})})}}]})},QN=l=>(N,W)=>{let fe=!1;const Se=ft=>{const Lt=ft.getData().colorpicker;fe?(N(I.from(Lt)),ft.close()):l.windowManager.alert(l.translate(["Invalid hex color code: {0}",Lt]))},Be=(ft,yt)=>{yt.name==="hex-valid"&&(fe=yt.value)},qe={colorpicker:W};l.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:Se,onClose:v,onCancel:()=>{N(I.none())}})},kX=l=>{Xd(l);const N=_X(l),W=BN(l),fe=wi(N),Se=wi(W);UN(l,"forecolor","forecolor",fe),UN(l,"backcolor","hilitecolor",Se),jN(l,"forecolor","forecolor","Text color",fe),jN(l,"backcolor","hilitecolor","Background color",Se)},g7=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=$6(N),Ht=TX(N,W,fe,Se!=="color"?"normal":"color",Be,qe,ft);return RP(l,yt,Ht,fe,{menuType:Se})},TX=(l,N,W,fe,Se,Be,qe)=>zt(re(l,ft=>ft.type==="choiceitem"?qY(ft).fold(ax,yt=>I.some(XP(yt,W===1,fe,N,Be(yt.value),Se,qe,$6(l)))):I.none())),rA=(l,N)=>{const W=qw(N);return l===1?{mode:"menu",moveOnTab:!0}:l==="auto"?{mode:"grid",selector:"."+W.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(N==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:Se=>N==="color"?qa(Se.element,"[aria-checked=true]"):I.none()}},CX=(l,N)=>l===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:l==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:N==="color"?".tox-swatches__row":".tox-collection__group",cell:N==="color"?`.${L6}`:`.${R6}`}},AX=(l,N)=>{const W=MX(l,N),fe=N.colorinput.getColorCols(l.initData.storageKey),Se="color",qe={...g7(Li("menu-value"),W,ft=>{l.onAction({value:ft})},fe,Se,A1.CLOSE_ON_EXECUTE,l.select.getOr(D),N.shared.providers),markers:qw(Se),movement:rA(fe,Se),showMenuRole:!1};return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget(T0.sketch(qe))]}},MX=(l,N)=>{const W=l.initData.allowCustomColors&&N.colorinput.hasCustomColors();return l.initData.colors.fold(()=>h7(N.colorinput.getColors(l.initData.storageKey),l.initData.storageKey,W),fe=>fe.concat(NN(W)))},HN=Li("cell-over"),ZN=Li("cell-execute"),EX=l=>(N,W)=>l.shared.providers.translate(["{0} columns, {1} rows",W,N]),PX=(l,N,W)=>{const fe=qe=>sa(qe,HN,{row:l,col:N}),Se=qe=>sa(qe,ZN,{row:l,col:N}),Be=(qe,ft)=>{ft.stop(),Se(qe)};return ka({dom:{tag:"div",attributes:{role:"button","aria-label":W}},behaviours:ei([Ka("insert-table-picker-cell",[Lo(wu(),Ra.focus),Lo(Bp(),Se),Lo(H1(),Be),Lo(Lm(),Be)]),us.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ra.config({onFocus:fe})])})},RX=(l,N,W)=>{const fe=[];for(let Se=0;Se{for(let Be=0;Beve(l,N=>re(N,ea)),v7=(l,N)=>Po(`${N}x${l}`),qN={inserttable:(l,N)=>{const Se=EX(N),Be=RX(Se,10,10),qe=v7(0,0),ft=ml({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:ei([Fa.config({})])});return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:IX(Be).concat(ft.asSpec()),behaviours:ei([Ka("insert-table-picker",[wc(yt=>{Fa.set(ft.get(yt),[qe])}),mb(HN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;LX(Be,fn,Rn,10,10),Fa.set(ft.get(yt),[v7(fn+1,Rn+1)])}),mb(ZN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;Za(yt,Z1()),l.onAction({numRows:fn+1,numColumns:Rn+1})})]),ha.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:AX},DX=(l,N)=>Ge(qN,l.fancytype).map(W=>W(l,N)),BX=(l,N,W,fe=!0,Se=!1)=>{const Be=Se?cN(W.icons):lN(W.icons),qe=yt=>({isEnabled:()=>!he.isDisabled(yt),setEnabled:Lt=>he.set(yt,!Lt),setIconFill:(Lt,Ht)=>{qa(yt.element,`svg path[class="${Lt}"], rect[class="${Lt}"]`).each(fn=>{Cr(fn,"fill",Ht)})},setTooltip:Lt=>{const Ht=W.translate(Lt);Cr(yt.element,"aria-label",Ht)}}),ft=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:qe,enabled:l.enabled,onAction:v,onSetup:l.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,N,W)},zX=(l,N,W,fe=!0)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.none(),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:Se,enabled:l.enabled,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W)},WN=l=>({type:"separator",dom:{tag:"div",classes:[R6,Tz]},components:l.text.map(Po).toArray()}),NX=(l,N,W,fe=!0)=>{const Se=qe=>({setActive:ft=>{us.set(qe,ft)},isActive:()=>us.isOn(qe),isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,checkMark:I.some(sN(W.icons)),caret:I.none(),shortcutContent:l.shortcut,presets:"normal",meta:l.meta},W,fe);return ws(uS({data:Jw(l),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W),{toggling:{toggleClass:I6,toggleOnExecute:!1,selected:l.active},role:l.role.getOrUndefined()})},FX=hN,YN=WN,$X=zX,XN=BX,VX=NX,GN=DX,UX=YP;var QX=Object.freeze({__proto__:null,getCoupled:(l,N,W,fe)=>W.getOrCreate(l,N,fe),getExistingCoupled:(l,N,W,fe)=>W.getExisting(l,N,fe)}),HX=[In("others",dt(aa.value,Ut()))],ZX=Object.freeze({__proto__:null,init:()=>{const l={},N=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(l,qe)},W=(Be,qe,ft)=>N(qe,ft).getOrThunk(()=>{const Lt=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),Ht=Be.getSystem().build(Lt);return l[ft]=Ht,Ht}),fe=(Be,qe,ft)=>N(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),Se=x({});return Hd({readState:Se,getExisting:fe,getOrCreate:W})}});const Ku=id({fields:HX,name:"coupling",apis:QX,state:ZX}),y7=l=>{let N=I.none(),W=[];const fe=Lt=>y7(Ht=>{Se(fn=>{Ht(Lt(fn))})}),Se=Lt=>{qe()?yt(Lt):W.push(Lt)},Be=Lt=>{qe()||(N=I.some(Lt),ft(W),W=[])},qe=()=>N.isSome(),ft=Lt=>{q(Lt,yt)},yt=Lt=>{N.each(Ht=>{setTimeout(()=>{Lt(Ht)},0)})};return l(Be),{get:Se,map:fe,isReady:qe}},qX={nu:y7,pure:l=>y7(N=>{N(l)})},WX=l=>{setTimeout(()=>{throw l},0)},dS=l=>{const N=yt=>{l().then(yt,WX)};return{map:yt=>dS(()=>l().then(yt)),bind:yt=>dS(()=>l().then(Lt=>yt(Lt).toPromise())),anonBind:yt=>dS(()=>l().then(()=>yt.toPromise())),toLazy:()=>qX.nu(N),toCached:()=>{let yt=null;return dS(()=>(yt===null&&(yt=l()),yt))},toPromise:l,get:N}},Lh={nu:l=>dS(()=>new Promise(l)),pure:l=>dS(()=>Promise.resolve(l))},KN=x("sink"),JN=x(mm({name:KN(),overrides:x({dom:{tag:"div"},behaviours:ei([Ph.config({useFixed:k})]),events:Rl([od(nm()),od(Nc()),od(H1())])})})),eF=(l,N)=>{const W=l.getHotspot(N).getOr(N),fe="hotspot",Se=l.getAnchorOverrides();return l.layouts.fold(()=>({type:fe,hotspot:W,overrides:Se}),Be=>({type:fe,hotspot:W,overrides:Se,layouts:Be}))},YX=(l,N,W)=>{const fe=l.fetch;return fe(W).map(N)},XX=(l,N,W,fe,Se,Be,qe)=>{const ft=YX(l,N,fe),yt=x7(fe,l);return ft.map(Lt=>Lt.bind(Ht=>{const fn=Ht.menus[Ht.primary];return I.from(fn).each(Rn=>{l.listRole.each(Bn=>{Rn.role=Bn})}),I.from(B2.sketch({...Be.menu(),uid:gy(""),data:Ht,highlightOnOpen:qe,onOpenMenu:(Rn,Bn)=>{const er=yt().getOrDie();Ph.position(er,Bn,{anchor:W}),Ys.decloak(Se)},onOpenSubmenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Ph.position(cr,er,{anchor:{type:"submenu",item:Bn}}),Ys.decloak(Se)},onRepositionMenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Ph.position(cr,Bn,{anchor:W}),q(er,Xr=>{Ph.position(cr,Xr.triggeredMenu,{anchor:{type:"submenu",item:Xr.triggeringItem}})})},onEscape:()=>(Ra.focus(fe),Ys.close(Se),I.some(!0))}))}))},hS=(l,N,W,fe,Se,Be,qe)=>{const ft=eF(l,W);return XX(l,N,ft,W,fe,Se,qe).map(Lt=>(Lt.fold(()=>{Ys.isOpen(fe)&&Ys.close(fe)},Ht=>{Ys.cloak(fe),Ys.open(fe,Ht),Be(fe)}),fe))},GX=(l,N,W,fe,Se,Be,qe)=>(Ys.close(fe),Lh.pure(fe)),b7=(l,N,W,fe,Se,Be)=>{const qe=Ku.getCoupled(W,"sandbox");return(Ys.isOpen(qe)?GX:hS)(l,N,W,qe,fe,Se,Be)},KX=(l,N,W)=>{const fe=Xs.getCurrent(N).getOr(N),Se=_s(l.element);W?xr(fe.element,"min-width",Se+"px"):zf(fe.element,Se)},x7=(l,N)=>l.getSystem().getByUid(N.uid+"-"+KN()).map(W=>()=>aa.value(W)).getOrThunk(()=>N.lazySink.fold(()=>()=>aa.error(new Error("No internal sink is specified, nor could an external sink be found")),W=>()=>W(l))),_7=l=>{Ys.getState(l).each(N=>{B2.repositionMenus(N)})},w7=(l,N,W)=>{const fe=ld(),Se=(ft,yt)=>{const Lt=eF(l,N);fe.link(N.element),l.matchWidth&&KX(Lt.hotspot,yt,l.useMinWidth),l.onOpen(Lt,ft,yt),W!==void 0&&W.onOpen!==void 0&&W.onOpen(ft,yt)},Be=(ft,yt)=>{fe.unlink(N.element),qe().getOr(yt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),W!==void 0&&W.onClose!==void 0&&W.onClose(ft,yt)},qe=x7(N,l);return{dom:{tag:"div",classes:l.sandboxClasses,attributes:{id:fe.id}},behaviours:Km.augment(l.sandboxBehaviours,[Ei.config({store:{mode:"memory",initialValue:N}}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(ft,yt,Lt)=>Cf(yt,Lt)||Cf(N,Lt),getAttachPoint:()=>qe().getOrDie()}),Xs.config({find:ft=>Ys.getState(ft).bind(yt=>Xs.getCurrent(yt))}),Ad.config({channels:{...Ly({isExtraPart:D}),...ak({doReposition:_7})}})])}},tF=l=>{const N=Ku.getCoupled(l,"sandbox");_7(N)},oA=()=>[Ar("sandboxClasses",[]),Km.field("sandboxBehaviours",[Xs,Ad,Ys,Ei])],JX=x([pn("dom"),pn("fetch"),Ss("onOpen"),kd("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Pd("dropdownBehaviours",[us,Ku,ha,Ra]),pn("toggleClass"),Ar("eventOrder",{}),Yo("lazySink"),Ar("matchWidth",!1),Ar("useMinWidth",!1),Yo("role"),Yo("listRole")].concat(oA())),eG=x([Jm({schema:[Um(),Ar("fakeFocus",!1)],name:"menu",defaults:l=>({onExecute:l.onExecute})}),JN()]),tG=(l,N,W,fe)=>{const Se=Ht=>Ge(l.dom,"attributes").bind(fn=>Ge(fn,Ht)),Be=Ht=>{Ys.getState(Ht).each(fn=>{B2.highlightPrimary(fn)})},qe=(Ht,fn,Rn)=>b7(l,R,Ht,fe,fn,Rn),ft=Ht=>{qe(Ht,Be,Gu.HighlightMenuAndItem).get(v)},yt={expand:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightNone).get(v)},open:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},refetch:Ht=>Ku.getExistingCoupled(Ht,"sandbox").fold(()=>qe(Ht,v,Gu.HighlightMenuAndItem).map(v),Rn=>hS(l,R,Ht,Rn,fe,v,Gu.HighlightMenuAndItem).map(v)),isOpen:us.isOn,close:Ht=>{us.isOn(Ht)&&qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},repositionMenus:Ht=>{us.isOn(Ht)&&tF(Ht)}},Lt=(Ht,fn)=>(Bm(Ht),I.some(!0));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.dropdownBehaviours,[us.config({toggleClass:l.toggleClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:Ht=>w7(l,Ht,{onOpen:()=>us.on(Ht),onClose:()=>us.off(Ht)})}}),ha.config({mode:"special",onSpace:Lt,onEnter:Lt,onDown:(Ht,fn)=>{if(L0.isOpen(Ht)){const Rn=Ku.getCoupled(Ht,"sandbox");Be(Rn)}else L0.open(Ht);return I.some(!0)},onEscape:(Ht,fn)=>L0.isOpen(Ht)?(L0.close(Ht),I.some(!0)):I.none()}),Ra.config({})]),events:f6(I.some(ft)),eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},apis:yt,domModification:{attributes:{"aria-haspopup":l.listRole.getOr("true"),...l.role.fold(()=>({}),Ht=>({role:Ht})),...l.dom.tag==="button"?{type:Se("type").getOr("button")}:{}}}}},L0=Zh({name:"Dropdown",configFields:JX(),partFields:eG(),factory:tG,apis:{open:(l,N)=>l.open(N),refetch:(l,N)=>l.refetch(N),expand:(l,N)=>l.expand(N),close:(l,N)=>l.close(N),isOpen:(l,N)=>l.isOpen(N),repositionMenus:(l,N)=>l.repositionMenus(N)}}),nG=l=>{switch(l.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:l}}},rG=l=>{const N=Ei.getValue(l),W=Gk(l).map(zz);L0.refetch(N).get(()=>{const fe=Ku.getCoupled(N,"sandbox");W.each(Se=>Gk(fe).each(Be=>CY(Be,Se)))})},iA=(l,N)=>{oG(l).each(W=>{Bx(l,W.element,N.event.eventType,N.event.interactionEvent)})},oG=l=>Ys.getState(l).bind(ta.getHighlighted).bind(ta.getHighlighted),aA=l=>rp(l.element,Yw)?I.some(l.element):qa(l.element,"."+Yw),nF=(l,N,W)=>{Bz(l).each(fe=>{AY(fe,W),aA(N).each(Be=>{Eo(Be,"id").each(qe=>Cr(fe.element,"aria-controls",qe))})}),Cr(W.element,"aria-selected","true")},iG=(l,N,W)=>{Cr(W.element,"aria-selected","false")},aG=l=>{Bz(l).each(N=>Ra.focus(N))},sG=l=>Ku.getExistingCoupled(l,"sandbox").bind(Gk).map(zz).map(W=>W.fetchPattern).getOr("");var O7;(function(l){l[l.ContentFocus=0]="ContentFocus",l[l.UiFocus=1]="UiFocus"})(O7||(O7={}));const sA=(l,N,W,fe,Se)=>{const Be=W.shared.providers,qe=ft=>Se?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(l.type){case"menuitem":return YY(l).fold(ax,ft=>I.some($X(qe(ft),N,Be,fe)));case"nestedmenuitem":return GY(l).fold(ax,ft=>I.some(XN(qe(ft),N,Be,fe,Se)));case"togglemenuitem":return eN(l).fold(ax,ft=>I.some(VX(qe(ft),N,Be,fe)));case"separator":return qz(l).fold(ax,ft=>I.some(YN(ft)));case"fancymenuitem":return Z6(l).fold(ax,ft=>GN(ft,W));default:return console.error("Unknown item in general menu",l),I.none()}},pS=(l,N,W,fe,Se,Be,qe)=>{const ft=fe===1,yt=!ft||$6(l);return zt(re(l,Lt=>{switch(Lt.type){case"separator":return $Y(Lt).fold(ax,Ht=>I.some(YN(Ht)));case"cardmenuitem":return ZY(Lt).fold(ax,Ht=>I.some(UX({...Ht,onAction:fn=>{Ht.onAction(fn),W(Ht.value,Ht.meta)}},Se,Be,{itemBehaviours:qP(Ht.meta,Be,I.none()),cardText:{matchText:N,highlightOn:qe}})));case"autocompleteitem":default:return VY(Lt).fold(ax,Ht=>I.some(FX(Ht,N,ft,"normal",W,Se,Be,yt)))}}))},S7=(l,N,W,fe,Se,Be)=>{const qe=$6(N),ft=zt(re(N,Ht=>{const fn=Bn=>Se?!ht(Bn,"text"):qe,Rn=Bn=>sA(Bn,W,fe,fn(Bn),Se);return Ht.type==="nestedmenuitem"&&Ht.getSubmenuItems().length<=0?Rn({...Ht,enabled:!1}):Rn(Ht)})),yt=nG(Be);return(Se?PY:RP)(l,qe,ft,1,yt)},lA=l=>B2.singleData(l.value,l),lG=(l,N,W,fe)=>{const Se=rA(N,fe),Be=qw(fe);return{data:lA({...l,movement:Se,menuBehaviours:lS.unnamedEvents(N!=="auto"?[]:[wc((qe,ft)=>{QP(qe,4,Be.item).each(({numColumns:yt,numRows:Lt})=>{ha.setGridSize(qe,Lt,yt)})})])}),menu:{markers:qw(fe),fakeFocus:W===O7.ContentFocus}}},cG=l=>vw.create(Nt.fromDom(l.startContainer),l.startOffset,Nt.fromDom(l.endContainer),l.endOffset),uG={register:(l,N)=>{const W=Li("autocompleter"),fe=wi(!1),Se=wi(!1),Be=ds(),qe=ka(Xc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:W}},components:[],fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissAutocompleter",[Lo(J0(),()=>fn()),Lo(e1(),(br,Fr)=>{Eo(Fr.event.target,"id").each(jr=>Cr(Nt.fromDom(l.getBody()),"aria-activedescendant",jr))})])]),lazySink:N.getSink})),ft=()=>Xc.isOpen(qe),yt=Se.get,Lt=()=>{if(ft()){Xc.hide(qe),l.dom.remove(W,!1);const br=Nt.fromDom(l.getBody());Eo(br,"aria-owns").filter(Fr=>Fr===W).each(()=>{Qt(br,"aria-owns"),Qt(br,"aria-activedescendant")})}},Ht=()=>Xc.getContent(qe).bind(br=>De(br.components(),0)),fn=()=>l.execCommand("mceAutocompleterClose"),Rn=br=>{const Fr=Oe(br,jr=>I.from(jr.columns)).getOr(1);return ve(br,jr=>{const Ro=jr.items;return pS(Ro,jr.matchText,(ko,_i)=>{const Pi={hide:()=>fn(),reload:Ao=>{Lt(),l.execCommand("mceAutocompleterReload",!1,{fetchOptions:Ao})}};l.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(Ao=>{fe.set(!0),jr.onAction(Pi,Ao,ko,_i),fe.set(!1)})},Fr,A1.BUBBLE_TO_SANDBOX,N,jr.highlightOn)})},Bn=(br,Fr)=>{const jr=Oe(br,Ro=>I.from(Ro.columns)).getOr(1);Xc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(cG),root:Nt.fromDom(l.getBody())}},lG(RP("autocompleter-value",!0,Fr,jr,{menuType:"normal"}),jr,O7.ContentFocus,"normal")),Ht().each(ta.highlightFirst)},er=br=>{const Fr=Rn(br);Fr.length>0?(Bn(br,Fr),Cr(Nt.fromDom(l.getBody()),"aria-owns",W),l.inline||cr()):Lt()},cr=()=>{l.dom.get(W)&&l.dom.remove(W,!1);const br=l.getDoc().documentElement,Fr=l.selection.getNode(),jr=xb(qe.element);Oo(jr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Fr.offsetTop}px`,left:`${Fr.offsetLeft}px`}),l.dom.add(br,jr.dom),qa(jr,'[role="menu"]').each(Ro=>{zi(Ro,"position"),zi(Ro,"max-height")})};l.on("AutocompleterStart",({lookupData:br})=>{Se.set(!0),fe.set(!1),er(br)}),l.on("AutocompleterUpdate",({lookupData:br})=>er(br)),l.on("AutocompleterUpdateActiveRange",({range:br})=>Be.set(br)),l.on("AutocompleterEnd",()=>{Lt(),Se.set(!1),fe.set(!1),Be.clear()});const Xr={cancelIfNecessary:fn,isMenuOpen:ft,isActive:yt,isProcessingAction:fe.get,getMenu:Ht};kz.setup(Xr,l)}},f5=(l,N,W)=>Sc(l,N,W).isSome(),rF=(l,N)=>{let W=null;return{cancel:()=>{W!==null&&(clearTimeout(W),W=null)},schedule:(...Be)=>{W=setTimeout(()=>{l.apply(null,Be),W=null},N)}}},oF=5,fG=400,iF=l=>{const N=l.raw;return N.touches===void 0||N.touches.length!==1?I.none():I.some(N.touches[0])},dG=(l,N)=>{const W=Math.abs(l.clientX-N.x),fe=Math.abs(l.clientY-N.y);return W>oF||fe>oF},hG=l=>{const N=ds(),W=wi(!1),fe=rF(Lt=>{l.triggerEvent(Qd(),Lt),W.set(!0)},fG),Se=Lt=>(iF(Lt).each(Ht=>{fe.cancel();const fn={x:Ht.clientX,y:Ht.clientY,target:Lt.target};fe.schedule(Lt),W.set(!1),N.set(fn)}),I.none()),Be=Lt=>(fe.cancel(),iF(Lt).each(Ht=>{N.on(fn=>{dG(Ht,fn)&&N.clear()})}),I.none()),qe=Lt=>{fe.cancel();const Ht=fn=>_o(fn.target,Lt.target);return N.get().filter(Ht).map(fn=>W.get()?(Lt.prevent(),!1):l.triggerEvent(Lm(),Lt))},ft=ua([{key:Uh(),value:Se},{key:ss(),value:Be},{key:Gl(),value:qe}]);return{fireIfReady:(Lt,Ht)=>Ge(ft,Ht).bind(fn=>fn(Lt))}},aF=l=>l.raw.which===nu[0]&&!X(["input","textarea"],vr(l.target))&&!f5(l.target,'[contenteditable="true"]'),mS=(l,N)=>{const W={stopBackspace:!0,...N},fe=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],Se=hG(W),Be=re(fe.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),Bn=>ud(l,Bn,er=>{Se.fireIfReady(er,Bn).each(Xr=>{Xr&&er.kill()}),W.triggerEvent(Bn,er)&&er.kill()})),qe=ds(),ft=ud(l,"paste",Bn=>{Se.fireIfReady(Bn,"paste").each(cr=>{cr&&Bn.kill()}),W.triggerEvent("paste",Bn)&&Bn.kill(),qe.set(setTimeout(()=>{W.triggerEvent(l0(),Bn)},0))}),yt=ud(l,"keydown",Bn=>{W.triggerEvent("keydown",Bn)?Bn.kill():W.stopBackspace&&aF(Bn)&&Bn.prevent()}),Lt=ud(l,"focusin",Bn=>{W.triggerEvent("focusin",Bn)&&Bn.kill()}),Ht=ds(),fn=ud(l,"focusout",Bn=>{W.triggerEvent("focusout",Bn)&&Bn.kill(),Ht.set(setTimeout(()=>{W.triggerEvent(kf(),Bn)},0))});return{unbind:()=>{q(Be,Bn=>{Bn.unbind()}),yt.unbind(),Lt.unbind(),fn.unbind(),ft.unbind(),qe.on(clearTimeout),Ht.on(clearTimeout)}}},Q2=(l,N)=>{const W=Ge(l,"target").getOr(N);return wi(W)},pG=(l,N)=>{const W=wi(!1),fe=wi(!1);return{stop:()=>{W.set(!0)},cut:()=>{fe.set(!0)},isStopped:W.get,isCut:fe.get,event:l,setSource:N.set,getSource:N.get}},sF=l=>{const N=wi(!1);return{stop:()=>{N.set(!0)},cut:v,isStopped:N.get,isCut:D,event:l,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},gS=Nn.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),d5=(l,N,W,fe,Se,Be)=>{const qe=l(N,fe),ft=pG(W,Se);return qe.fold(()=>(Be.logEventNoHandlers(N,fe),gS.complete()),yt=>{const Lt=yt.descHandler;return pv(Lt)(ft),ft.isStopped()?(Be.logEventStopped(N,yt.element,Lt.purpose),gS.stopped()):ft.isCut()?(Be.logEventCut(N,yt.element,Lt.purpose),gS.complete()):Dr(yt.element).fold(()=>(Be.logNoParent(N,yt.element,Lt.purpose),gS.complete()),fn=>(Be.logEventResponse(N,yt.element,Lt.purpose),gS.resume(fn)))})},lF=(l,N,W,fe,Se,Be)=>d5(l,N,W,fe,Se,Be).fold(k,qe=>lF(l,N,W,qe,Se,Be),D),h5=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return d5(l,N,W,fe,Be,Se)},p5=(l,N,W)=>{const fe=sF(N);return q(l,Se=>{const Be=Se.descHandler;pv(Be)(fe)}),fe.isStopped()},mG=(l,N,W,fe)=>cF(l,N,W,W.target,fe),cF=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return lF(l,N,W,fe,Be,Se)},gG=(l,N)=>({element:l,descHandler:N}),vG=(l,N)=>({id:l,descHandler:N}),yG=()=>{const l={},N=(qe,ft,yt)=>{We(yt,(Lt,Ht)=>{const fn=l[Ht]!==void 0?l[Ht]:{};fn[ft]=cm(Lt,qe),l[Ht]=fn})},W=(qe,ft)=>sm(ft).bind(yt=>Ge(qe,yt)).map(yt=>gG(ft,yt));return{registerId:N,unregisterId:qe=>{We(l,(ft,yt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(l,qe).map(ft=>je(ft,(yt,Lt)=>vG(Lt,yt))).getOr([]),find:(qe,ft,yt)=>Ge(l,ft).bind(Lt=>Nl(yt,Ht=>W(Lt,Ht),qe))}},bG=()=>{const l=yG(),N={},W=Lt=>{const Ht=Lt.element;return sm(Ht).getOrThunk(()=>JO("uid-",Lt.element))},fe=(Lt,Ht)=>{const fn=N[Ht];if(fn===Lt)Be(Lt);else throw new Error('The tagId "'+Ht+'" is already used by: '+a1(fn.element)+` +Components: `+JSON.stringify(N.components,null,2))}),Be},Gb=Yb.single,pk=Yb.multiple,mk=x(hk),jp=Nn.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),w1=Ar("factory",{sketch:R}),B3=Ar("schema",[]),Pg=pn("name"),z3=Ln("pname","pname",Ca(l=>""),Ut()),JM=gn("schema",()=>[Yo("preprocess")]),N3=Ar("defaults",x({})),F3=Ar("overrides",x({})),eE=Si([w1,B3,Pg,z3,N3,F3]),tE=Si([w1,B3,Pg,N3,F3]),nE=Si([w1,B3,Pg,z3,N3,F3]),rE=Si([w1,JM,Pg,pn("unit"),z3,N3,F3]),$3=l=>l.fold(I.some,I.none,I.some,I.some),jC=l=>{const N=W=>W.name;return l.fold(N,N,N,N)},oE=l=>l.fold(R,R,R,R),V3=(l,N)=>W=>{const fe=Xt("Converting part type",N,W);return l(fe)},mh=V3(jp.required,eE),Jm=V3(jp.external,tE),mm=V3(jp.optional,nE),U3=V3(jp.group,rE),Pw=x("entirety");var ED=Object.freeze({__proto__:null,required:mh,external:Jm,optional:mm,group:U3,asNamedPart:$3,name:jC,asCommon:oE,original:Pw});const Rw=(l,N,W,fe)=>ws(N.defaults(l,W,fe),W,{uid:l.partUids[N.name]},N.overrides(l,W,fe)),iE=(l,N,W)=>{const fe={},Se={};return q(W,Be=>{Be.fold(qe=>{fe[qe.pname]=Gb(!0,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{const ft=N.parts[qe.name];Se[qe.name]=x(qe.factory.sketch(Rw(N,qe,ft[Pw()]),ft))},qe=>{fe[qe.pname]=Gb(!1,(ft,yt,Lt)=>qe.factory.sketch(Rw(ft,qe,yt,Lt)))},qe=>{fe[qe.pname]=pk(!0,(ft,yt,Lt)=>{const Ht=ft[qe.name];return re(Ht,fn=>qe.factory.sketch(ws(qe.defaults(ft,fn,Lt),fn,qe.overrides(ft,fn))))})})}),{internals:x(fe),externals:x(Se)}},QC=(l,N)=>{const W={};return q(N,fe=>{$3(fe).each(Se=>{const Be=HC(l,Se.pname);W[Se.name]=qe=>{const ft=Xt("Part: "+Se.name+" in "+l,Si(Se.schema),qe);return{...Be,config:qe,validated:ft}}})}),W},HC=(l,N)=>({uiType:mk(),owner:l,name:N}),ZC=(l,N,W)=>({uiType:mk(),owner:l,name:N,config:W,validated:{}}),aE=l=>ve(l,N=>N.fold(I.none,I.some,I.none,I.none).map(W=>si(W.name,W.schema.concat([l1(Pw())]))).toArray()),qC=l=>re(l,jC),j3=(l,N,W)=>iE(l,N,W),WC=(l,N,W)=>A2(I.some(l),N,N.components,W),Jo=(l,N,W)=>{const fe=N.partUids[W];return l.getSystem().getByUid(fe).toOptional()},gm=(l,N,W)=>Jo(l,N,W).getOrDie("Could not find part: "+W),YC=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]))}),fe},gk=(l,N)=>{const W=l.getSystem();return Ue(N.partUids,(fe,Se)=>x(W.getByUid(fe)))},Lw=l=>ke(l.partUids),Kb=(l,N,W)=>{const fe={},Se=N.partUids,Be=l.getSystem();return q(W,qe=>{fe[qe]=x(Be.getByUid(Se[qe]).getOrDie())}),fe},vk=(l,N)=>{const W=qC(N);return ua(re(W,fe=>({key:fe,value:l+"-"+fe})))},Iw=l=>Ln("partUids","partUids",_u(N=>vk(N.uid,l)),Ut());var XC=Object.freeze({__proto__:null,generate:QC,generateOne:ZC,schemas:aE,names:qC,substitutes:j3,components:WC,defaultUids:vk,defaultUidsSchema:Iw,getAllParts:gk,getAllPartNames:Lw,getPart:Jo,getPartOrDie:gm,getParts:YC,getPartsOrDie:Kb});const sE=(l,N)=>(l.length>0?[si("parts",l)]:[]).concat([pn("uid"),Ar("dom",{}),Ar("components",[]),l1("originalSpec"),Ar("debug.sketcher",{})]).concat(N),yk=(l,N,W,fe,Se)=>{const Be=sE(fe,Se);return Xt(l+" [SpecSchema]",Os(Be.concat(N)),W)},Dw=(l,N,W,fe)=>{const Se=KC(fe),Be=yk(l,N,Se,[],[]);return W(Be,Se)},Dy=(l,N,W,fe,Se)=>{const Be=KC(Se),qe=aE(W),ft=Iw(W),yt=yk(l,N,Be,qe,[ft]),Lt=j3(l,yt,W),Ht=WC(l,yt,Lt.internals());return fe(yt,Ht,Be,Lt.externals())},GC=l=>ht(l,"uid"),KC=l=>GC(l)?l:{...l,uid:vy("uid")},lE=l=>l.uid!==void 0,bk=Os([pn("name"),pn("factory"),pn("configFields"),Ar("apis",{}),Ar("extraApis",{})]),cE=Os([pn("name"),pn("factory"),pn("configFields"),pn("partFields"),Ar("apis",{}),Ar("extraApis",{})]),Qp=l=>{const N=Xt("Sketcher for "+l.name,bk,l),W=Be=>Dw(N.name,N.configFields,N.factory,Be),fe=Ue(N.apis,Tb),Se=Ue(N.extraApis,(Be,qe)=>Y1(Be,qe));return{name:N.name,configFields:N.configFields,sketch:W,...fe,...Se}},Zh=l=>{const N=Xt("Sketcher for "+l.name,cE,l),W=qe=>Dy(N.name,N.configFields,N.partFields,N.factory,qe),fe=QC(N.name,N.partFields),Se=Ue(N.apis,Tb),Be=Ue(N.extraApis,(qe,ft)=>Y1(qe,ft));return{name:N.name,partFields:N.partFields,configFields:N.configFields,sketch:W,parts:fe,...Se,...Be}},M2=l=>Jr("input")(l)&&Nr(l,"type")!=="radio"||Jr("textarea")(l);var uE=Object.freeze({__proto__:null,getCurrent:(l,N,W)=>N.find(l)});const xk=[pn("find")],Xs=id({fields:xk,name:"composing",apis:uE}),fE=["input","button","textarea","select"],dE=(l,N,W)=>{(N.disabled()?Bw:_k)(l,N)},JC=(l,N)=>N.useNative===!0&&X(fE,vr(l.element)),RD=l=>zo(l.element,"disabled"),O1=l=>{Cr(l.element,"disabled","disabled")},Q3=l=>{Qt(l.element,"disabled")},hE=l=>Nr(l.element,"aria-disabled")==="true",pE=l=>{Cr(l.element,"aria-disabled","true")},e6=l=>{Cr(l.element,"aria-disabled","false")},Bw=(l,N,W)=>{N.disableClass.each(Se=>{uc(l.element,Se)}),(JC(l,N)?O1:pE)(l),N.onDisabled(l)},_k=(l,N,W)=>{N.disableClass.each(Se=>{Zc(l.element,Se)}),(JC(l,N)?Q3:e6)(l),N.onEnabled(l)},t6=(l,N)=>JC(l,N)?RD(l):hE(l);var E2=Object.freeze({__proto__:null,enable:_k,disable:Bw,isDisabled:t6,onLoad:dE,set:(l,N,W,fe)=>{(fe?Bw:_k)(l,N)}}),n6=Object.freeze({__proto__:null,exhibit:(l,N)=>np({classes:N.disabled()?N.disableClass.toArray():[]}),events:(l,N)=>Rl([zx(Bp(),(W,fe)=>t6(W,l)),Q_(l,N,dE)])}),mE=[ys("disabled",D),Ar("useNative",!0),Yo("disableClass"),Ss("onDisabled"),Ss("onEnabled")];const he=id({fields:mE,name:"disabling",active:n6,apis:E2}),Ce=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.highlightClass);q(Se,Be=>{te(fe,ft=>_o(ft.element,Be))||(Zc(Be,N.highlightClass),l.getSystem().getByDom(Be).each(ft=>{N.onDehighlight(l,ft),Za(ft,cu())}))})},Xe=(l,N,W)=>Ce(l,N,W,[]),lt=(l,N,W,fe)=>{Mr(l,N,W,fe)&&(Zc(fe.element,N.highlightClass),N.onDehighlight(l,fe),Za(fe,cu()))},Ct=(l,N,W,fe)=>{Ce(l,N,W,[fe]),Mr(l,N,W,fe)||(uc(fe.element,N.highlightClass),N.onHighlight(l,fe),Za(fe,e1()))},Wt=(l,N,W)=>{ki(l,N).each(fe=>{Ct(l,N,W,fe)})},kn=(l,N,W)=>{xi(l,N).each(fe=>{Ct(l,N,W,fe)})},Vn=(l,N,W,fe)=>{ti(l,N,W,fe).fold(Se=>{throw Se},Se=>{Ct(l,N,W,Se)})},or=(l,N,W,fe)=>{const Se=oi(l,N);ce(Se,fe).each(qe=>{Ct(l,N,W,qe)})},Mr=(l,N,W,fe)=>rp(fe.element,N.highlightClass),no=(l,N,W)=>qa(l.element,"."+N.highlightClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),ti=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return I.from(Se[fe]).fold(()=>aa.error(new Error("No element found with index "+fe)),l.getSystem().getByDom)},ki=(l,N,W)=>qa(l.element,"."+N.itemClass).bind(fe=>l.getSystem().getByDom(fe).toOptional()),xi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return(fe.length>0?I.some(fe[fe.length-1]):I.none()).bind(Be=>l.getSystem().getByDom(Be).toOptional())},fi=(l,N,W,fe)=>{const Se=Yd(l.element,"."+N.itemClass);return de(Se,qe=>rp(qe,N.highlightClass)).bind(qe=>{const ft=uv(qe,fe,0,Se.length-1);return l.getSystem().getByDom(Se[ft]).toOptional()})},Vi=(l,N,W)=>fi(l,N,W,-1),Xo=(l,N,W)=>fi(l,N,W,1),oi=(l,N,W)=>{const fe=Yd(l.element,"."+N.itemClass);return zt(re(fe,Se=>l.getSystem().getByDom(Se).toOptional()))};var wa=Object.freeze({__proto__:null,dehighlightAll:Xe,dehighlight:lt,highlight:Ct,highlightFirst:Wt,highlightLast:kn,highlightAt:Vn,highlightBy:or,isHighlighted:Mr,getHighlighted:no,getFirst:ki,getLast:xi,getPrevious:Vi,getNext:Xo,getCandidates:oi}),Pa=[pn("highlightClass"),pn("itemClass"),Ss("onHighlight"),Ss("onDehighlight")];const ta=id({fields:Pa,name:"highlighting",apis:wa}),nu=[8],Ll=[9],$u=[13],vm=[27],gh=[32],Jb=[37],ex=[38],Tl=[39],Ld=[40],sp=(l,N,W)=>{const fe=we(l.slice(0,N)),Se=we(l.slice(N+1));return ce(fe.concat(Se),W)},Rg=(l,N,W)=>{const fe=we(l.slice(0,N));return ce(fe,W)},ym=(l,N,W)=>{const fe=l.slice(0,N),Se=l.slice(N+1);return ce(Se.concat(fe),W)},P2=(l,N,W)=>{const fe=l.slice(N+1);return ce(fe,W)},Wa=l=>N=>{const W=N.raw;return X(l,W.which)},bm=l=>N=>_e(l,W=>W(N)),Lg=l=>l.raw.shiftKey===!0,S1=l=>l.raw.ctrlKey===!0,Zf=P(Lg),el=(l,N)=>({matches:l,classification:N}),Ok=(l,N)=>ce(l,fe=>fe.matches(N)).map(fe=>fe.classification),Sk=(l,N,W)=>{N.exists(Se=>W.exists(Be=>_o(Be,Se)))||sa(l,q1(),{prevFocus:N,newFocus:W})},H3=()=>{const l=W=>Wd(W.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().triggerFocus(fe,W.element);const Be=l(W);Sk(W,Se,Be)}}},r6=()=>{const l=W=>ta.getHighlighted(W).map(fe=>fe.element);return{get:l,set:(W,fe)=>{const Se=l(W);W.getSystem().getByDom(fe).fold(v,qe=>{ta.highlight(W,qe)});const Be=l(W);Sk(W,Se,Be)}}};var Mv;(function(l){l.OnFocusMode="onFocus",l.OnEnterOrSpaceMode="onEnterOrSpace",l.OnApiMode="onApi"})(Mv||(Mv={}));const tx=(l,N,W,fe,Se)=>{const Be=()=>l.concat([Ar("focusManager",H3()),ns("focusInside","onFocus",rt(Lt=>X(["onFocus","onEnterOrSpace","onApi"],Lt)?aa.value(Lt):aa.error("Invalid value for focusInside"))),Sl("handler",yt),Sl("state",N),Sl("sendFocusIn",Se)]),qe=(Lt,Ht,fn,Rn,Bn)=>{const er=fn(Lt,Ht,Rn,Bn);return Ok(er,Ht.event).bind(cr=>cr(Lt,Ht,Rn,Bn))},yt={schema:Be,processKey:qe,toEvents:(Lt,Ht)=>{const fn=Lt.focusInside!==Mv.OnFocusMode?I.none():Se(Lt).map(er=>Lo(Oh(),(cr,Xr)=>{er(cr,Lt,Ht),Xr.stop()})),Rn=(er,cr)=>{const Xr=Wa(gh.concat($u))(cr.event);Lt.focusInside===Mv.OnEnterOrSpaceMode&&Xr&&lh(er,cr)&&Se(Lt).each(br=>{br(er,Lt,Ht),cr.stop()})},Bn=[Lo(nm(),(er,cr)=>{qe(er,cr,W,Lt,Ht).fold(()=>{Rn(er,cr)},Xr=>{cr.stop()})}),Lo(G0(),(er,cr)=>{qe(er,cr,fe,Lt,Ht).each(Xr=>{cr.stop()})})];return Rl(fn.toArray().concat(Bn))}};return yt},R2=l=>{const N=[Yo("onEscape"),Yo("onEnter"),Ar("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ar("firstTabstop",0),Ar("useTabstopAt",k),Yo("visibilitySelector")].concat([l]),W=(br,Fr)=>{const jr=br.visibilitySelector.bind(Ro=>Sc(Fr,Ro)).getOr(Fr);return il(jr)>0},fe=(br,Fr)=>{const jr=Yd(br.element,Fr.selector),Ro=me(jr,ko=>W(Fr,ko));return I.from(Ro[Fr.firstTabstop])},Se=(br,Fr)=>Fr.focusManager.get(br).bind(jr=>Sc(jr,Fr.selector)),Be=(br,Fr)=>W(br,Fr)&&br.useTabstopAt(Fr),qe=(br,Fr,jr)=>{fe(br,Fr).each(Ro=>{Fr.focusManager.set(br,Ro)})},ft=(br,Fr,jr,Ro,ko)=>ko(Fr,jr,_i=>Be(Ro,_i)).fold(()=>Ro.cyclic?I.some(!0):I.none(),_i=>(Ro.focusManager.set(br,_i),I.some(!0))),yt=(br,Fr,jr,Ro)=>{const ko=Yd(br.element,jr.selector);return Se(br,jr).bind(_i=>de(ko,T(_o,_i)).bind(Ao=>ft(br,ko,Ao,jr,Ro)))},Lt=(br,Fr,jr)=>{const Ro=jr.cyclic?sp:Rg;return yt(br,Fr,jr,Ro)},Ht=(br,Fr,jr)=>{const Ro=jr.cyclic?ym:P2;return yt(br,Fr,jr,Ro)},fn=br=>Sr(br).bind(Rr).exists(Fr=>_o(Fr,br)),Rn=(br,Fr,jr)=>Se(br,jr).filter(Ro=>!jr.useTabstopAt(Ro)).bind(Ro=>(fn(Ro)?Lt:Ht)(br,Fr,jr)),Bn=(br,Fr,jr)=>jr.onEnter.bind(Ro=>Ro(br,Fr)),er=(br,Fr,jr)=>jr.onEscape.bind(Ro=>Ro(br,Fr)),cr=x([el(bm([Lg,Wa(Ll)]),Lt),el(Wa(Ll),Ht),el(bm([Zf,Wa($u)]),Bn)]),Xr=x([el(Wa(vm),er),el(Wa(Ll),Rn)]);return tx(N,uh.init,cr,Xr,()=>I.some(qe))};var $q=R2(gn("cyclic",D)),Vq=R2(gn("cyclic",k));const kk=(l,N,W)=>(t1(l,W,Bp()),I.some(!0)),Z3=(l,N,W)=>M2(W)&&Wa(gh)(N.event)?I.none():kk(l,N,W),zw=(l,N)=>I.some(!0),gE=[Ar("execute",Z3),Ar("useSpace",!1),Ar("useEnter",!0),Ar("useControlEnter",!1),Ar("useDown",!1)],DD=(l,N,W)=>W.execute(l,N,l.element),BD=(l,N,W,fe)=>{const Se=W.useSpace&&!M2(l.element)?gh:[],Be=W.useEnter?$u:[],qe=W.useDown?Ld:[],ft=Se.concat(Be).concat(qe);return[el(Wa(ft),DD)].concat(W.useControlEnter?[el(bm([S1,Wa($u)]),DD)]:[])},Uq=(l,N,W,fe)=>W.useSpace&&!M2(l.element)?[el(Wa(gh),zw)]:[];var zD=tx(gE,uh.init,BD,Uq,()=>I.none());const vE=()=>{const l=ds();return Hd({readState:()=>l.get().map(Se=>({numRows:String(Se.numRows),numColumns:String(Se.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(Se,Be)=>{l.set({numRows:Se,numColumns:Be})},getNumRows:()=>l.get().map(Se=>Se.numRows),getNumColumns:()=>l.get().map(Se=>Se.numColumns)})};var jq=Object.freeze({__proto__:null,flatgrid:vE,init:l=>l.state(l)});const ND=l=>(N,W,fe,Se)=>{const Be=l(N.element);return Tk(Be,N,W,fe,Se)},yE=(l,N)=>{const W=Hf(l,N);return ND(W)},bE=(l,N)=>{const W=Hf(N,l);return ND(W)},xE=l=>(N,W,fe,Se)=>Tk(l,N,W,fe,Se),Tk=(l,N,W,fe,Se)=>fe.focusManager.get(N).bind(qe=>l(N.element,qe,fe,Se)).map(qe=>(fe.focusManager.set(N,qe),!0)),o6=xE,FD=xE,_E=xE,$D=l=>l.offsetWidth<=0&&l.offsetHeight<=0,VD=l=>!$D(l.dom),Qq=(l,N)=>de(l,N).map(W=>({index:W,candidates:l})),Ig=(l,N,W)=>{const fe=qe=>_o(qe,N),Se=Yd(l,W),Be=me(Se,VD);return Qq(Be,fe)},UD=(l,N)=>de(l,W=>_o(N,W)),jD=(l,N,W,fe)=>{const Se=Math.floor(N/W),Be=N%W;return fe(Se,Be).bind(qe=>{const ft=qe.row*W+qe.column;return ft>=0&&ftjD(l,N,fe,(Be,qe)=>{const yt=Be===W-1?l.length-Be*fe:fe,Lt=uv(qe,Se,0,yt-1);return I.some({row:Be,column:Lt})}),HD=(l,N,W,fe,Se)=>jD(l,N,fe,(Be,qe)=>{const ft=uv(Be,Se,0,W-1),Lt=ft===W-1?l.length-ft*fe:fe,Ht=Mh(qe,0,Lt-1);return I.some({row:ft,column:Ht})}),Hq=(l,N,W,fe)=>QD(l,N,W,fe,1),q3=(l,N,W,fe)=>QD(l,N,W,fe,-1),wE=(l,N,W,fe)=>HD(l,N,W,fe,-1),Zq=(l,N,W,fe)=>HD(l,N,W,fe,1),OE=[pn("selector"),Ar("execute",Z3),kd("onEscape"),Ar("captureTab",!1),Yx()],i6=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},SE=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),qq=(l,N,W,fe)=>SE(l,W).bind(Se=>W.execute(l,N,Se)),a6=l=>(N,W,fe,Se)=>Ig(N,W,fe.selector).bind(Be=>l(Be.candidates,Be.index,Se.getNumRows().getOr(fe.initSize.numRows),Se.getNumColumns().getOr(fe.initSize.numColumns))),ZD=(l,N,W)=>W.captureTab?I.some(!0):I.none(),Wq=(l,N,W)=>W.onEscape(l,N),qD=a6(q3),WD=a6(Hq),Yq=a6(wE),YD=a6(Zq),s6=x([el(Wa(Jb),yE(qD,WD)),el(Wa(Tl),bE(qD,WD)),el(Wa(ex),o6(Yq)),el(Wa(Ld),FD(YD)),el(bm([Lg,Wa(Ll)]),ZD),el(bm([Zf,Wa(Ll)]),ZD),el(Wa(gh.concat($u)),qq)]),Xq=x([el(Wa(vm),Wq),el(Wa(gh),zw)]);var Gq=tx(OE,vE,s6,Xq,()=>I.some(i6));const XD=(l,N,W,fe,Se)=>{const Be=ft=>vr(ft)==="button"&&Nr(ft,"disabled")==="disabled",qe=(ft,yt,Lt)=>Se(ft,yt,fe,0,Lt.length-1,Lt[yt],Ht=>Be(Lt[Ht])?qe(ft,Ht,Lt):I.from(Lt[Ht]));return Ig(l,W,N).bind(ft=>{const yt=ft.index,Lt=ft.candidates;return qe(yt,yt,Lt)})},GD=(l,N,W,fe)=>XD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=Mh(Be+qe,ft,yt);return fn===Se?I.from(Lt):Ht(fn)}),nx=(l,N,W,fe)=>XD(l,N,W,fe,(Se,Be,qe,ft,yt,Lt,Ht)=>{const fn=uv(Be,qe,ft,yt);return fn===Se?I.none():Ht(fn)}),KD=[pn("selector"),Ar("getInitial",I.none),Ar("execute",Z3),kd("onEscape"),Ar("executeOnMove",!1),Ar("allowVertical",!0),Ar("allowHorizontal",!0),Ar("cycles",!0)],Kq=(l,N)=>N.focusManager.get(l).bind(W=>Sc(W,N.selector)),Ck=(l,N,W)=>Kq(l,W).bind(fe=>W.execute(l,N,fe)),Jq=(l,N,W)=>{N.getInitial(l).orThunk(()=>qa(l.element,N.selector)).each(fe=>{N.focusManager.set(l,fe)})},kE=(l,N,W)=>(W.cycles?nx:GD)(l,W.selector,N,-1),TE=(l,N,W)=>(W.cycles?nx:GD)(l,W.selector,N,1),CE=l=>(N,W,fe,Se)=>l(N,W,fe,Se).bind(()=>fe.executeOnMove?Ck(N,W,fe):I.some(!0)),JD=(l,N,W)=>W.onEscape(l,N),eB=(l,N,W,fe)=>{const Se=[...W.allowHorizontal?Jb:[]].concat(W.allowVertical?ex:[]),Be=[...W.allowHorizontal?Tl:[]].concat(W.allowVertical?Ld:[]);return[el(Wa(Se),CE(yE(kE,TE))),el(Wa(Be),CE(bE(kE,TE))),el(Wa($u),Ck),el(Wa(gh),Ck)]},eW=x([el(Wa(gh),zw),el(Wa(vm),JD)]);var tW=tx(KD,uh.init,eB,eW,()=>I.some(Jq));const l6=(l,N,W)=>I.from(l[N]).bind(fe=>I.from(fe[W]).map(Se=>({rowIndex:N,columnIndex:W,cell:Se}))),c6=(l,N,W,fe)=>{const Be=l[N].length,qe=uv(W,fe,0,Be-1);return l6(l,N,qe)},tB=(l,N,W,fe)=>{const Se=uv(W,fe,0,l.length-1),Be=l[Se].length,qe=Mh(N,0,Be-1);return l6(l,Se,qe)},Ak=(l,N,W,fe)=>{const Be=l[N].length,qe=Mh(W+fe,0,Be-1);return l6(l,N,qe)},nB=(l,N,W,fe)=>{const Se=Mh(W+fe,0,l.length-1),Be=l[Se].length,qe=Mh(N,0,Be-1);return l6(l,Se,qe)},rB=(l,N,W)=>c6(l,N,W,1),Hp=(l,N,W)=>c6(l,N,W,-1),nW=(l,N,W)=>tB(l,W,N,-1),oB=(l,N,W)=>tB(l,W,N,1),iB=(l,N,W)=>Ak(l,N,W,-1),rW=(l,N,W)=>Ak(l,N,W,1),aB=(l,N,W)=>nB(l,W,N,-1),sB=(l,N,W)=>nB(l,W,N,1),oW=[si("selectors",[pn("row"),pn("cell")]),Ar("cycles",!0),Ar("previousSelector",I.none),Ar("execute",Z3)],iW=(l,N,W)=>{N.previousSelector(l).orThunk(()=>{const Se=N.selectors;return qa(l.element,Se.cell)}).each(Se=>{N.focusManager.set(l,Se)})},aW=(l,N,W)=>Wd(l.element).bind(fe=>W.execute(l,N,fe)),sW=(l,N)=>re(l,W=>Yd(W,N.selectors.cell)),Mk=(l,N)=>(W,fe,Se)=>{const Be=Se.cycles?l:N;return Sc(fe,Se.selectors.row).bind(qe=>{const ft=Yd(qe,Se.selectors.cell);return UD(ft,fe).bind(yt=>{const Lt=Yd(W,Se.selectors.row);return UD(Lt,qe).bind(Ht=>{const fn=sW(Lt,Se);return Be(fn,Ht,yt).map(Rn=>Rn.cell)})})})},lB=Mk(Hp,iB),cB=Mk(rB,rW),uB=Mk(nW,aB),fB=Mk(oB,sB),dB=x([el(Wa(Jb),yE(lB,cB)),el(Wa(Tl),bE(lB,cB)),el(Wa(ex),o6(uB)),el(Wa(Ld),FD(fB)),el(Wa(gh.concat($u)),aW)]),lW=x([el(Wa(gh),zw)]);var cW=tx(oW,uh.init,dB,lW,()=>I.some(iW));const uW=[pn("selector"),Ar("execute",Z3),Ar("moveOnTab",!1)],hB=(l,N,W)=>W.focusManager.get(l).bind(fe=>W.execute(l,N,fe)),pB=(l,N,W)=>{qa(l.element,N.selector).each(fe=>{N.focusManager.set(l,fe)})},AE=(l,N,W)=>nx(l,W.selector,N,-1),rx=(l,N,W)=>nx(l,W.selector,N,1),mB=(l,N,W,fe)=>W.moveOnTab?_E(AE)(l,N,W,fe):I.none(),gB=(l,N,W,fe)=>W.moveOnTab?_E(rx)(l,N,W,fe):I.none(),vB=x([el(Wa(ex),_E(AE)),el(Wa(Ld),_E(rx)),el(bm([Lg,Wa(Ll)]),mB),el(bm([Zf,Wa(Ll)]),gB),el(Wa($u),hB),el(Wa(gh),hB)]),fW=x([el(Wa(gh),zw)]);var W3=tx(uW,uh.init,vB,fW,()=>I.some(pB));const dW=[kd("onSpace"),kd("onEnter"),kd("onShiftEnter"),kd("onLeft"),kd("onRight"),kd("onTab"),kd("onShiftTab"),kd("onUp"),kd("onDown"),kd("onEscape"),Ar("stopSpaceKeyup",!1),Yo("focusIn")],hW=(l,N,W)=>[el(Wa(gh),W.onSpace),el(bm([Zf,Wa($u)]),W.onEnter),el(bm([Lg,Wa($u)]),W.onShiftEnter),el(bm([Lg,Wa(Ll)]),W.onShiftTab),el(bm([Zf,Wa(Ll)]),W.onTab),el(Wa(ex),W.onUp),el(Wa(Ld),W.onDown),el(Wa(Jb),W.onLeft),el(Wa(Tl),W.onRight),el(Wa(gh),W.onSpace)],yB=(l,N,W)=>[...W.stopSpaceKeyup?[el(Wa(gh),zw)]:[],el(Wa(vm),W.onEscape)];var pW=tx(dW,uh.init,hW,yB,l=>l.focusIn);const mW=$q.schema(),gW=Vq.schema(),bB=tW.schema(),ME=Gq.schema(),EE=cW.schema(),vW=zD.schema(),L2=W3.schema(),xB=pW.schema();var _B=Object.freeze({__proto__:null,acyclic:mW,cyclic:gW,flow:bB,flatgrid:ME,matrix:EE,execution:vW,menu:L2,special:xB});const yW=l=>pt(l,"setGridSize"),ha=HO({branchKey:"mode",branches:_B,name:"keying",active:{events:(l,N)=>l.handler.toEvents(l,N)},apis:{focusIn:(l,N,W)=>{N.sendFocusIn(N).fold(()=>{l.getSystem().triggerFocus(l.element,l.element)},fe=>{fe(l,N,W)})},setGridSize:(l,N,W,fe,Se)=>{yW(W)?W.setGridSize(fe,Se):console.error("Layout does not support setGridSize")}},state:jq}),Y3=(l,N)=>{w0(()=>{ek(l,N,()=>re(N,l.getSystem().build))},l.element)},X3=(l,N)=>{w0(()=>{_3(l,N,()=>ct(l.element,N,l.getSystem().buildOrPatch))},l.element)},wB=(l,N,W,fe)=>{Ow(N);const Se=nt(l.element,W,fe,l.getSystem().buildOrPatch);J4(l,Se),l.syncComponents()},Ek=(l,N,W)=>{const fe=l.getSystem().build(W);LC(l,fe,N)},I2=(l,N,W,fe)=>{kv(N),Ek(l,(Se,Be)=>Vd(Se,Be,W),fe)},D2=(l,N,W,fe)=>(N.reuseDom?X3:Y3)(l,fe),bW=(l,N,W,fe)=>{Ek(l,Bc,fe)},xW=(l,N,W,fe)=>{Ek(l,sf,fe)},OB=(l,N,W,fe)=>{const Se=k1(l);ce(Se,qe=>_o(fe.element,qe.element)).each(kv)},k1=(l,N)=>l.components(),u6=(l,N,W,fe,Se)=>{const Be=k1(l);return I.from(Be[fe]).map(qe=>(Se.fold(()=>kv(qe),ft=>{(N.reuseDom?wB:I2)(l,qe,fe,ft)}),qe))};var SB=Object.freeze({__proto__:null,append:bW,prepend:xW,remove:OB,replaceAt:u6,replaceBy:(l,N,W,fe,Se)=>{const Be=k1(l);return de(Be,fe).bind(qe=>u6(l,N,W,qe,Se))},set:D2,contents:k1});const Fa=id({fields:[Hs("reuseDom",!0)],name:"replacing",apis:SB}),kB=(l,N)=>{const W=Rl(N);return id({fields:[pn("enabled")],name:l,active:{events:x(W)}})},Ka=(l,N)=>{const W=kB(l,N);return{key:l,value:{config:{},me:W,configAsRaw:x({}),initialConfig:{},state:uh}}},PE=(l,N)=>{N.ignore||(Md(l.element),N.onFocus(l))};var _W=Object.freeze({__proto__:null,focus:PE,blur:(l,N)=>{N.ignore||m1(l.element)},isFocused:l=>_0(l.element)}),f6=Object.freeze({__proto__:null,exhibit:(l,N)=>{const W=N.ignore?{}:{attributes:{tabindex:"-1"}};return np(W)},events:l=>Rl([Lo(Oh(),(N,W)=>{PE(N,l),W.stop()})].concat(l.stopMousedown?[Lo(Nc(),(N,W)=>{W.event.prevent()})]:[]))}),CB=[Ss("onFocus"),Ar("stopMousedown",!1),Ar("ignore",!1)];const Ra=id({fields:CB,name:"focusing",active:f6,apis:_W}),AB=l=>({init:()=>{const W=wi(l);return{get:()=>W.get(),set:ft=>W.set(ft),clear:()=>W.set(l),readState:()=>W.get()}}}),MB=(l,N,W)=>{const fe=N.aria;fe.update(l,fe,W.get())},EB=(l,N,W)=>{N.toggleClass.each(fe=>{W.get()?uc(l.element,fe):Zc(l.element,fe)})},G3=(l,N,W,fe)=>{const Se=W.get();W.set(fe),EB(l,N,W),MB(l,N,W),Se!==fe&&N.onToggled(l,fe)},PB=(l,N,W)=>{G3(l,N,W,!W.get())},LE=(l,N,W)=>{G3(l,N,W,!0)},wW=(l,N,W)=>{G3(l,N,W,!1)},OW=(l,N,W)=>W.get(),RB=(l,N,W)=>{G3(l,N,W,N.selected)};var SW=Object.freeze({__proto__:null,onLoad:RB,toggle:PB,isOn:OW,on:LE,off:wW,set:G3}),TW=Object.freeze({__proto__:null,exhibit:()=>np({}),events:(l,N)=>{const W=_g(l,N,PB),fe=Q_(l,N,RB);return Rl(ye([l.toggleOnExecute?[W]:[],[fe]]))}});const LB=(l,N,W)=>{Cr(l.element,"aria-pressed",W),N.syncWithExpanded&&K3(l,N,W)},Pk=(l,N,W)=>{Cr(l.element,"aria-selected",W)},CW=(l,N,W)=>{Cr(l.element,"aria-checked",W)},K3=(l,N,W)=>{Cr(l.element,"aria-expanded",W)};var IE=[Ar("selected",!1),Yo("toggleClass"),Ar("toggleOnExecute",!0),Ss("onToggled"),ns("aria",{mode:"none"},bn("mode",{pressed:[Ar("syncWithExpanded",!1),Sl("update",LB)],checked:[Sl("update",CW)],expanded:[Sl("update",K3)],selected:[Sl("update",Pk)],none:[Sl("update",v)]}))];const us=id({fields:IE,name:"toggling",active:TW,apis:SW,state:AB(!1)}),DE=()=>{const l=(N,W)=>{W.stop(),Bm(N)};return[Lo(H1(),l),Lo(Lm(),l),od(Uh()),od(Nc())]},d6=l=>{const N=W=>kh((fe,Se)=>{W(fe),Se.stop()});return Rl(ye([l.map(N).toArray(),DE()]))},IB="alloy.item-hover",BE="alloy.item-focus",DB="alloy.item-toggled",zE=l=>{(Wd(l.element).isNone()||Ra.isFocused(l))&&(Ra.isFocused(l)||Ra.focus(l),sa(l,IB,{item:l}))},BB=l=>{sa(l,BE,{item:l})},AW=(l,N)=>{sa(l,DB,{item:l,state:N})},NE=x(IB),h6=x(BE),FE=x(DB),$E=l=>l.role.fold(()=>l.toggling.map(N=>N.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),R),MW=(l,N)=>({aria:{mode:N?"selected":"checked"},...Fe(l,(W,fe)=>fe!=="exclusive"),onToggled:(W,fe)=>{c(l.onToggled)&&l.onToggled(W,fe),AW(W,fe)}}),EW=l=>({dom:l.dom,domModification:{...l.domModification,attributes:{role:$E(l),...l.domModification.attributes,"aria-haspopup":l.hasSubmenu,...l.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Km.augment(l.itemBehaviours,[l.toggling.fold(us.revoke,N=>us.config(MW(N,l.role.exists(W=>W==="option")))),Ra.config({ignore:l.ignoreFocus,stopMousedown:l.ignoreFocus,onFocus:N=>{BB(N)}}),ha.config({mode:"execution"}),Ei.config({store:{mode:"memory",initialValue:l.data}}),Ka("item-type-events",[...DE(),Lo(wu(),zE),Lo(hb(),Ra.focus)])]),components:l.components,eventOrder:l.eventOrder}),PW=[pn("data"),pn("components"),pn("dom"),Ar("hasSubmenu",!1),Yo("toggling"),Yo("role"),Km.field("itemBehaviours",[us,Ra,ha,Ei]),Ar("ignoreFocus",!1),Ar("domModification",{}),Sl("builder",EW),Ar("eventOrder",{})],RW=l=>({dom:l.dom,components:l.components,events:Rl([U_(hb())])}),zB=[pn("dom"),pn("components"),Sl("builder",RW)],p6=x("item-widget"),VE=x([mh({name:"widget",overrides:l=>({behaviours:ei([Ei.config({store:{mode:"manual",getValue:N=>l.data,setValue:v}})])})})]),LW=l=>{const N=j3(p6(),l,VE()),W=WC(p6(),l,N.internals()),fe=Be=>Jo(Be,l,"widget").map(qe=>(ha.focusIn(qe),qe)),Se=(Be,qe)=>M2(qe.event.target)?I.none():(()=>(l.autofocus&&qe.setSource(Be.element),I.none()))();return{dom:l.dom,components:W,domModification:l.domModification,events:Rl([kh((Be,qe)=>{fe(Be).each(ft=>{qe.stop()})}),Lo(wu(),zE),Lo(hb(),(Be,qe)=>{l.autofocus?fe(Be):Ra.focus(Be)})]),behaviours:Km.augment(l.widgetBehaviours,[Ei.config({store:{mode:"memory",initialValue:l.data}}),Ra.config({ignore:l.ignoreFocus,onFocus:Be=>{BB(Be)}}),ha.config({mode:"special",focusIn:l.autofocus?Be=>{fe(Be)}:cc(),onLeft:Se,onRight:Se,onEscape:(Be,qe)=>!Ra.isFocused(Be)&&!l.autofocus?(Ra.focus(Be),I.some(!0)):(l.autofocus&&qe.setSource(Be.element),I.none())})])}},IW=[pn("uid"),pn("data"),pn("components"),pn("dom"),Ar("autofocus",!1),Ar("ignoreFocus",!1),Km.field("widgetBehaviours",[Ei,Ra,ha]),Ar("domModification",{}),Iw(VE()),Sl("builder",LW)],DW=bn("type",{widget:IW,item:PW,separator:zB}),BW=(l,N)=>({mode:"flatgrid",selector:"."+l.markers.item,initSize:{numColumns:N.initSize.numColumns,numRows:N.initSize.numRows},focusManager:l.focusManager}),zW=(l,N)=>({mode:"matrix",selectors:{row:N.rowSelector,cell:"."+l.markers.item},previousSelector:N.previousSelector,focusManager:l.focusManager}),NB=(l,N)=>({mode:"menu",selector:"."+l.markers.item,moveOnTab:N.moveOnTab,focusManager:l.focusManager}),NW=x([U3({factory:{sketch:l=>{const N=Xt("menu.spec item",DW,l);return N.builder(N)}},name:"items",unit:"item",defaults:(l,N)=>ht(N,"uid")?N:{...N,uid:vy("item")},overrides:(l,N)=>({type:N.type,ignoreFocus:l.fakeFocus,domModification:{classes:[l.markers.item]}})})]),FW=x([jo("role"),pn("value"),pn("items"),pn("dom"),pn("components"),Ar("eventOrder",{}),Pd("menuBehaviours",[ta,Ei,Xs,ha]),ns("movement",{mode:"menu",moveOnTab:!0},bn("mode",{grid:[Yx(),Sl("config",BW)],matrix:[Sl("config",zW),pn("rowSelector"),Ar("previousSelector",I.none)],menu:[Ar("moveOnTab",!0),Sl("config",NB)]})),s1(),Ar("fakeFocus",!1),Ar("focusManager",H3()),Ss("onHighlight"),Ss("onDehighlight"),Ar("showMenuRole",!0)]),FB=x("alloy.menu-focus"),$W=(l,N)=>{const W=Yd(l.element,'[role="menuitemradio"][aria-checked="true"]');q(W,fe=>{_o(fe,N.element)||l.getSystem().getByDom(fe).each(Se=>{us.off(Se)})})},VW=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.menuBehaviours,[ta.config({highlightClass:l.markers.selectedItem,itemClass:l.markers.item,onHighlight:l.onHighlight,onDehighlight:l.onDehighlight}),Ei.config({store:{mode:"memory",initialValue:l.value}}),Xs.config({find:I.some}),ha.config(l.movement.config(l,l.movement))]),events:Rl([Lo(h6(),(Se,Be)=>{const qe=Be.event;Se.getSystem().getByDom(qe.target).each(ft=>{ta.highlight(Se,ft),Be.stop(),sa(Se,FB(),{menu:Se,item:ft})})}),Lo(NE(),(Se,Be)=>{const qe=Be.event.item;ta.highlight(Se,qe)}),Lo(FE(),(Se,Be)=>{const{item:qe,state:ft}=Be.event;ft&&Nr(qe.element,"role")==="menuitemradio"&&$W(Se,qe)})]),components:N,eventOrder:l.eventOrder,...l.showMenuRole?{domModification:{attributes:{role:l.role.getOr("menu")}}}:{}}),T0=Zh({name:"Menu",configFields:FW(),partFields:NW(),factory:VW}),UW=l=>Ze(l,(N,W)=>({k:N,v:W})),$B=(l,N,W,fe)=>Ge(W,fe).bind(Se=>Ge(l,Se).bind(Be=>{const qe=$B(l,N,W,Be);return I.some([Be].concat(qe))})).getOr([]),Nw=(l,N)=>{const W={};We(l,(qe,ft)=>{q(qe,yt=>{W[yt]=ft})});const fe=N,Se=UW(N),Be=Ue(Se,(qe,ft)=>[ft].concat($B(W,fe,Se,ft)));return Ue(W,qe=>Ge(Be,qe).getOr([qe]))},VB=()=>{const l=wi({}),N=wi({}),W=wi({}),fe=ds(),Se=wi({}),Be=()=>{l.set({}),N.set({}),W.set({}),fe.clear()},qe=()=>fe.get().isNone(),ft=(ko,_i)=>{N.set({...N.get(),[ko]:{type:"prepared",menu:_i}})},yt=(ko,_i,Pi,Ao)=>{fe.set(ko),l.set(Pi),N.set(_i),Se.set(Ao);const $i=Nw(Ao,Pi);W.set($i)},Lt=ko=>tt(l.get(),(_i,Pi)=>_i===ko),Ht=(ko,_i,Pi)=>cr(ko).bind(Ao=>Lt(ko).bind($i=>_i($i).map(yi=>({triggeredMenu:Ao,triggeringItem:yi,triggeringPath:Pi})))),fn=(ko,_i)=>{const Pi=me(br(ko).toArray(),Ao=>cr(Ao).isSome());return Ge(W.get(),ko).bind(Ao=>{const $i=we(Pi.concat(Ao)),yi=ve($i,(Xi,ks)=>Ht(Xi,_i,$i.slice(0,ks+1)).fold(()=>St(fe.get(),Xi)?[]:[I.none()],Ic=>[I.some(Ic)]));return Yt(yi)})},Rn=ko=>Ge(l.get(),ko).map(_i=>{const Pi=Ge(W.get(),ko).getOr([]);return[_i].concat(Pi)}),Bn=ko=>Ge(W.get(),ko).bind(_i=>_i.length>1?I.some(_i.slice(1)):I.none()),er=ko=>Ge(W.get(),ko),cr=ko=>Xr(ko).bind(UB),Xr=ko=>Ge(N.get(),ko),br=ko=>Ge(l.get(),ko);return{setMenuBuilt:ft,setContents:yt,expand:Rn,refresh:er,collapse:Bn,lookupMenu:Xr,lookupItem:br,otherMenus:ko=>{const _i=Se.get();return Te(ke(_i),ko)},getPrimary:()=>fe.get().bind(cr),getMenus:()=>N.get(),clear:Be,isClear:qe,getTriggeringPath:fn}},UB=l=>l.type==="prepared"?I.some(l.menu):I.none(),ox={init:VB,extractPreparedMenu:UB},jB=Li("tiered-menu-item-highlight"),QB=Li("tiered-menu-item-dehighlight");var Gu;(function(l){l[l.HighlightMenuAndItem=0]="HighlightMenuAndItem",l[l.HighlightJustMenu=1]="HighlightJustMenu",l[l.HighlightNone=2]="HighlightNone"})(Gu||(Gu={}));const HB=(l,N)=>{const W=ds(),fe=(Ko,Oi,La)=>Ue(La,(_a,fa)=>{const Qa=()=>T0.sketch({..._a,value:fa,markers:l.markers,fakeFocus:l.fakeFocus,onHighlight:(ac,vl)=>{sa(ac,jB,{menuComp:ac,itemComp:vl})},onDehighlight:(ac,vl)=>{sa(ac,QB,{menuComp:ac,itemComp:vl})},focusManager:l.fakeFocus?r6():H3()});return fa===Oi?{type:"prepared",menu:Ko.getSystem().build(Qa())}:{type:"notbuilt",nbMenu:Qa}}),Se=ox.init(),Be=Ko=>{const Oi=fe(Ko,l.data.primary,l.data.menus),La=yt();return Se.setContents(l.data.primary,Oi,l.data.expansions,La),Se.getPrimary()},qe=Ko=>Ei.getValue(Ko).value,ft=(Ko,Oi,La)=>Oe(Oi,_a=>{if(!_a.getSystem().isConnected())return I.none();const fa=ta.getCandidates(_a);return ce(fa,Qa=>qe(Qa)===La)}),yt=Ko=>Ue(l.data.menus,(Oi,La)=>ve(Oi.items,_a=>_a.type==="separator"?[]:[_a.data.value])),Lt=ta.highlight,Ht=(Ko,Oi)=>{Lt(Ko,Oi),ta.getHighlighted(Oi).orThunk(()=>ta.getFirst(Oi)).each(La=>{l.fakeFocus?ta.highlight(Oi,La):t1(Ko,La.element,hb())})},fn=(Ko,Oi)=>zt(re(Oi,La=>Ko.lookupMenu(La).bind(_a=>_a.type==="prepared"?I.some(_a.menu):I.none()))),Rn=(Ko,Oi,La)=>{const _a=fn(Oi,Oi.otherMenus(La));q(_a,fa=>{Oc(fa.element,[l.markers.backgroundMenu]),l.stayInDom||Fa.remove(Ko,fa)})},Bn=Ko=>W.get().getOrThunk(()=>{const Oi={},La=Yd(Ko.element,`.${l.markers.item}`),_a=me(La,fa=>Nr(fa,"aria-haspopup")==="true");return q(_a,fa=>{Ko.getSystem().getByDom(fa).each(Qa=>{const ac=qe(Qa);Oi[ac]=Qa})}),W.set(Oi),Oi}),er=(Ko,Oi)=>{const La=Bn(Ko);We(La,(_a,fa)=>{const Qa=X(Oi,fa);Cr(_a.element,"aria-expanded",Qa)})},cr=(Ko,Oi,La)=>I.from(La[0]).bind(_a=>Oi.lookupMenu(_a).bind(fa=>{if(fa.type==="notbuilt")return I.none();{const Qa=fa.menu,ac=fn(Oi,La.slice(1));return q(ac,vl=>{uc(vl.element,l.markers.backgroundMenu)}),Gn(Qa.element)||Fa.append(Ko,ea(Qa)),Oc(Qa.element,[l.markers.backgroundMenu]),Ht(Ko,Qa),Rn(Ko,Oi,La),I.some(Qa)}}));let Xr;(function(Ko){Ko[Ko.HighlightSubmenu=0]="HighlightSubmenu",Ko[Ko.HighlightParent=1]="HighlightParent"})(Xr||(Xr={}));const br=(Ko,Oi,La)=>{if(La.type==="notbuilt"){const _a=Ko.getSystem().build(La.nbMenu());return Se.setMenuBuilt(Oi,_a),_a}else return La.menu},Fr=(Ko,Oi,La=Xr.HighlightSubmenu)=>{if(Oi.hasConfigured(he)&&he.isDisabled(Oi))return I.some(Oi);{const _a=qe(Oi);return Se.expand(_a).bind(fa=>(er(Ko,fa),I.from(fa[0]).bind(Qa=>Se.lookupMenu(Qa).bind(ac=>{const vl=br(Ko,Qa,ac);return Gn(vl.element)||Fa.append(Ko,ea(vl)),l.onOpenSubmenu(Ko,Oi,vl,we(fa)),La===Xr.HighlightSubmenu?(ta.highlightFirst(vl),cr(Ko,Se,fa)):(ta.dehighlightAll(vl),I.some(Oi))}))))}},jr=(Ko,Oi)=>{const La=qe(Oi);return Se.collapse(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a).map(fa=>(l.onCollapseMenu(Ko,Oi,fa),fa))))},Ro=(Ko,Oi)=>{const La=qe(Oi);return Se.refresh(La).bind(_a=>(er(Ko,_a),cr(Ko,Se,_a)))},ko=(Ko,Oi)=>M2(Oi.element)?I.none():Fr(Ko,Oi,Xr.HighlightSubmenu),_i=(Ko,Oi)=>M2(Oi.element)?I.none():jr(Ko,Oi),Pi=(Ko,Oi)=>jr(Ko,Oi).orThunk(()=>l.onEscape(Ko,Oi).map(()=>Ko)),Ao=Ko=>(Oi,La)=>Sc(La.getSource(),`.${l.markers.item}`).bind(_a=>Oi.getSystem().getByDom(_a).toOptional().bind(fa=>Ko(Oi,fa).map(k))),$i=Rl([Lo(FB(),(Ko,Oi)=>{const La=Oi.event.item;Se.lookupItem(qe(La)).each(()=>{const _a=Oi.event.menu;ta.highlight(Ko,_a);const fa=qe(Oi.event.item);Se.refresh(fa).each(Qa=>Rn(Ko,Se,Qa))})}),kh((Ko,Oi)=>{const La=Oi.event.target;Ko.getSystem().getByDom(La).each(_a=>{qe(_a).indexOf("collapse-item")===0&&jr(Ko,_a),Fr(Ko,_a,Xr.HighlightSubmenu).fold(()=>{l.onExecute(Ko,_a)},v)})}),wc((Ko,Oi)=>{Be(Ko).each(La=>{Fa.append(Ko,ea(La)),l.onOpenMenu(Ko,La),l.highlightOnOpen===Gu.HighlightMenuAndItem?Ht(Ko,La):l.highlightOnOpen===Gu.HighlightJustMenu&&Lt(Ko,La)})}),Lo(jB,(Ko,Oi)=>{l.onHighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),Lo(QB,(Ko,Oi)=>{l.onDehighlightItem(Ko,Oi.event.menuComp,Oi.event.itemComp)}),...l.navigateOnHover?[Lo(NE(),(Ko,Oi)=>{const La=Oi.event.item;Ro(Ko,La),Fr(Ko,La,Xr.HighlightParent),l.onHover(Ko,La)})]:[]]),yi=Ko=>ta.getHighlighted(Ko).bind(ta.getHighlighted),Xi=Ko=>{yi(Ko).each(Oi=>{jr(Ko,Oi)})},ks=Ko=>{Se.getPrimary().each(Oi=>{Ht(Ko,Oi)})},Ic=Ko=>I.from(Ko.components()[0]).filter(Oi=>Nr(Oi.element,"role")==="menu"),Ui={collapseMenu:Xi,highlightPrimary:ks,repositionMenus:Ko=>{Se.getPrimary().bind(La=>yi(Ko).bind(_a=>{const fa=qe(_a),Qa=ot(Se.getMenus()),ac=zt(re(Qa,ox.extractPreparedMenu));return Se.getTriggeringPath(fa,vl=>ft(Ko,ac,vl))}).map(_a=>({primary:La,triggeringPath:_a}))).fold(()=>{Ic(Ko).each(La=>{l.onRepositionMenu(Ko,La,[])})},({primary:La,triggeringPath:_a})=>{l.onRepositionMenu(Ko,La,_a)})}};return{uid:l.uid,dom:l.dom,markers:l.markers,behaviours:Rd(l.tmenuBehaviours,[ha.config({mode:"special",onRight:Ao(ko),onLeft:Ao(_i),onEscape:Ao(Pi),focusIn:(Ko,Oi)=>{Se.getPrimary().each(La=>{t1(Ko,La.element,hb())})}}),ta.config({highlightClass:l.markers.selectedMenu,itemClass:l.markers.menu}),Xs.config({find:Ko=>ta.getHighlighted(Ko)}),Fa.config({})]),eventOrder:l.eventOrder,apis:Ui,events:$i}},ZB=x("collapse-item"),qB=(l,N,W)=>({primary:l,menus:N,expansions:W}),jW=(l,N)=>({primary:l,menus:Sa(l,N),expansions:{}}),m6=l=>({value:Li(ZB()),meta:{text:l}}),B2=Qp({name:"TieredMenu",configFields:[Sb("onExecute"),Sb("onEscape"),Ah("onOpenMenu"),Ah("onOpenSubmenu"),Ss("onRepositionMenu"),Ss("onCollapseMenu"),Ar("highlightOnOpen",Gu.HighlightMenuAndItem),si("data",[pn("primary"),pn("menus"),pn("expansions")]),Ar("fakeFocus",!1),Ss("onHighlightItem"),Ss("onDehighlightItem"),Ss("onHover"),Um(),pn("dom"),Ar("navigateOnHover",!0),Ar("stayInDom",!1),Pd("tmenuBehaviours",[ha,ta,Xs,Fa]),Ar("eventOrder",{})],apis:{collapseMenu:(l,N)=>{l.collapseMenu(N)},highlightPrimary:(l,N)=>{l.highlightPrimary(N)},repositionMenus:(l,N)=>{l.repositionMenus(N)}},factory:HB,extraApis:{tieredData:qB,singleData:jW,collapseItem:m6}}),QW=(l,N,W,fe,Se)=>{const Be=()=>l.lazySink(N),qe=fe.type==="horizontal"?{layouts:{onLtr:()=>Hm(),onRtl:()=>yv()}}:{},ft=Lt=>Lt.length===2,yt=Lt=>ft(Lt)?qe:{};return B2.sketch({dom:{tag:"div"},data:fe.data,markers:fe.menu.markers,highlightOnOpen:fe.menu.highlightOnOpen,fakeFocus:fe.menu.fakeFocus,onEscape:()=>(Ys.close(N),l.onEscape.map(Lt=>Lt(N)),I.some(!0)),onExecute:()=>I.some(!0),onOpenMenu:(Lt,Ht)=>{Rh.positionWithinBounds(Be().getOrDie(),Ht,W,Se())},onOpenSubmenu:(Lt,Ht,fn,Rn)=>{const Bn=Be().getOrDie();Rh.position(Bn,fn,{anchor:{type:"submenu",item:Ht,...yt(Rn)}})},onRepositionMenu:(Lt,Ht,fn)=>{const Rn=Be().getOrDie();Rh.positionWithinBounds(Rn,Ht,W,Se()),q(fn,Bn=>{const er=yt(Bn.triggeringPath);Rh.position(Rn,Bn.triggeredMenu,{anchor:{type:"submenu",item:Bn.triggeringItem,...er}})})}})},HW=(l,N)=>{const W=(Rn,Bn)=>l.getRelated(Rn).exists(cr=>Cf(cr,Bn)),fe=(Rn,Bn)=>{Ys.setContent(Rn,Bn)},Se=(Rn,Bn,er)=>{const cr=I.none;Be(Rn,Bn,er,cr)},Be=(Rn,Bn,er,cr)=>{const Xr=l.lazySink(Rn).getOrDie();Ys.openWhileCloaked(Rn,Bn,()=>Rh.positionWithinBounds(Xr,Rn,er,cr())),Ei.setValue(Rn,I.some({mode:"position",config:er,getBounds:cr}))},qe=(Rn,Bn,er)=>{ft(Rn,Bn,er,I.none)},ft=(Rn,Bn,er,cr)=>{const Xr=QW(l,Rn,Bn,er,cr);Ys.open(Rn,Xr),Ei.setValue(Rn,I.some({mode:"menu",menu:Xr}))},yt=Rn=>{Ys.isOpen(Rn)&&(Ei.setValue(Rn,I.none()),Ys.close(Rn))},Lt=Rn=>Ys.getState(Rn),Ht=Rn=>{Ys.isOpen(Rn)&&Ei.getValue(Rn).each(Bn=>{switch(Bn.mode){case"menu":Ys.getState(Rn).each(B2.repositionMenus);break;case"position":const er=l.lazySink(Rn).getOrDie();Rh.positionWithinBounds(er,Rn,Bn.config,Bn.getBounds());break}})},fn={setContent:fe,showAt:Se,showWithinBounds:Be,showMenuAt:qe,showMenuWithinBounds:ft,hide:yt,getContent:Lt,reposition:Ht,isOpen:Ys.isOpen};return{uid:l.uid,dom:l.dom,behaviours:Rd(l.inlineBehaviours,[Ys.config({isPartOf:(Rn,Bn,er)=>Cf(Bn,er)||W(Rn,er),getAttachPoint:Rn=>l.lazySink(Rn).getOrDie(),onOpen:Rn=>{l.onShow(Rn)},onClose:Rn=>{l.onHide(Rn)}}),Ei.config({store:{mode:"memory",initialValue:I.none()}}),Ad.config({channels:{...Iy({isExtraPart:N.isExtraPart,...l.fireDismissalEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({})}),...ak({...l.fireRepositionEventInstead.map(Rn=>({fireEventInstead:{event:Rn.event}})).getOr({}),doReposition:Ht})}})]),eventOrder:l.eventOrder,apis:fn}},Xc=Qp({name:"InlineView",configFields:[pn("lazySink"),Ss("onShow"),Ss("onHide"),ai("onEscape"),Pd("inlineBehaviours",[Ys,Ei,Ad]),Ai("fireDismissalEventInstead",[Ar("event",J0())]),Ai("fireRepositionEventInstead",[Ar("event",F_())]),Ar("getRelated",I.none),Ar("isExtraPart",D),Ar("eventOrder",I.none)],factory:HW,apis:{showAt:(l,N,W,fe)=>{l.showAt(N,W,fe)},showWithinBounds:(l,N,W,fe,Se)=>{l.showWithinBounds(N,W,fe,Se)},showMenuAt:(l,N,W,fe)=>{l.showMenuAt(N,W,fe)},showMenuWithinBounds:(l,N,W,fe,Se)=>{l.showMenuWithinBounds(N,W,fe,Se)},hide:(l,N)=>{l.hide(N)},isOpen:(l,N)=>l.isOpen(N),getContent:(l,N)=>l.getContent(N),setContent:(l,N,W)=>{l.setContent(N,W)},reposition:(l,N)=>{l.reposition(N)}}});var J3=tinymce.util.Tools.resolve("tinymce.util.Delay"),Fw=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),WB=tinymce.util.Tools.resolve("tinymce.EditorManager"),$w=tinymce.util.Tools.resolve("tinymce.Env"),C0;(function(l){l.default="wrap",l.floating="floating",l.sliding="sliding",l.scrolling="scrolling"})(C0||(C0={}));var Vw;(function(l){l.auto="auto",l.top="top",l.bottom="bottom"})(Vw||(Vw={}));const gc=l=>N=>N.options.get(l),Rk=l=>N=>I.from(l(N)),YB=l=>{const N=$w.deviceType.isPhone(),W=$w.deviceType.isTablet()||N,fe=l.options.register,Se=qe=>n(qe)||qe===!1,Be=qe=>n(qe)||h(qe);fe("skin",{processor:qe=>n(qe)||qe===!1,default:"oxide"}),fe("skin_url",{processor:"string"}),fe("height",{processor:Be,default:Math.max(l.getElement().offsetHeight,400)}),fe("width",{processor:Be,default:Fw.DOM.getStyle(l.getElement(),"width")}),fe("min_height",{processor:"number",default:100}),fe("min_width",{processor:"number"}),fe("max_height",{processor:"number"}),fe("max_width",{processor:"number"}),fe("style_formats",{processor:"object[]"}),fe("style_formats_merge",{processor:"boolean",default:!1}),fe("style_formats_autohide",{processor:"boolean",default:!1}),fe("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),fe("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),fe("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),fe("font_size_input_default_unit",{processor:"string",default:"pt"}),fe("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),fe("content_langs",{processor:"object[]"}),fe("removed_menuitems",{processor:"string",default:""}),fe("menubar",{processor:qe=>n(qe)||w(qe),default:!N}),fe("menu",{processor:"object",default:{}}),fe("toolbar",{processor:qe=>w(qe)||n(qe)||i(qe)?{value:qe,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Z(9,qe=>{fe("toolbar"+(qe+1),{processor:"string"})}),fe("toolbar_mode",{processor:"string",default:W?"scrolling":"floating"}),fe("toolbar_groups",{processor:"object",default:{}}),fe("toolbar_location",{processor:"string",default:Vw.auto}),fe("toolbar_persist",{processor:"boolean",default:!1}),fe("toolbar_sticky",{processor:"boolean",default:l.inline}),fe("toolbar_sticky_offset",{processor:"number",default:0}),fe("fixed_toolbar_container",{processor:"string",default:""}),fe("fixed_toolbar_container_target",{processor:"object"}),fe("ui_mode",{processor:"string",default:"combined"}),fe("file_picker_callback",{processor:"function"}),fe("file_picker_validator_handler",{processor:"function"}),fe("file_picker_types",{processor:"string"}),fe("typeahead_urls",{processor:"boolean",default:!0}),fe("anchor_top",{processor:Se,default:"#top"}),fe("anchor_bottom",{processor:Se,default:"#bottom"}),fe("draggable_modal",{processor:"boolean",default:!1}),fe("statusbar",{processor:"boolean",default:!0}),fe("elementpath",{processor:"boolean",default:!0}),fe("branding",{processor:"boolean",default:!0}),fe("promotion",{processor:"boolean",default:!0}),fe("resize",{processor:qe=>qe==="both"||w(qe),default:!$w.deviceType.isTouch()}),fe("sidebar_show",{processor:"string"}),fe("help_accessibility",{processor:"boolean",default:l.hasPlugin("help")}),fe("default_font_stack",{processor:"string[]",default:[]})},XB=gc("readonly"),Lk=gc("height"),UE=gc("width"),Uw=Rk(gc("min_width")),eS=Rk(gc("min_height")),Ik=Rk(gc("max_width")),g6=Rk(gc("max_height")),GB=Rk(gc("style_formats")),KB=gc("style_formats_merge"),JB=gc("style_formats_autohide"),ez=gc("content_langs"),v6=gc("removed_menuitems"),jw=gc("toolbar_mode"),jE=gc("toolbar_groups"),Dk=gc("toolbar_location"),ZW=gc("fixed_toolbar_container"),tz=gc("fixed_toolbar_container_target"),nz=gc("toolbar_persist"),rz=gc("toolbar_sticky_offset"),oz=gc("menubar"),Bk=gc("toolbar"),iz=gc("file_picker_callback"),az=gc("file_picker_validator_handler"),y6=gc("font_size_input_default_unit"),QE=gc("file_picker_types"),HE=gc("typeahead_urls"),sz=gc("anchor_top"),b6=gc("anchor_bottom"),lz=gc("draggable_modal"),cz=gc("statusbar"),uz=gc("elementpath"),ZE=gc("branding"),fz=gc("resize"),qE=gc("paste_as_text"),x6=gc("sidebar_show"),dz=gc("promotion"),zk=gc("help_accessibility"),hz=gc("default_font_stack"),WE=l=>l.options.get("skin")===!1,_6=l=>l.options.get("menubar")!==!1,YE=l=>{const N=l.options.get("skin_url");if(WE(l))return N;if(N)return l.documentBaseURI.toAbsolute(N);{const W=l.options.get("skin");return WB.baseURL+"/skins/ui/"+W}},w6=l=>I.from(l.options.get("skin_url")),pz=l=>l.options.get("line_height_formats").split(" "),Nk=l=>{const N=Bk(l),W=n(N),fe=i(N)&&N.length>0;return!Fk(l)&&(fe||W||N===!0)},XE=l=>{const N=Z(9,fe=>l.options.get("toolbar"+(fe+1))),W=me(N,n);return Ot(W.length>0,W)},Fk=l=>XE(l).fold(()=>{const N=Bk(l);return p(N,n)&&N.length>0},k),$k=l=>Dk(l)===Vw.bottom,z2=l=>{var N;if(!l.inline)return I.none();const W=(N=ZW(l))!==null&&N!==void 0?N:"";if(W.length>0)return qa(Lr(),W);const fe=tz(l);return a(fe)?I.some(Nt.fromDom(fe)):I.none()},tS=l=>l.inline&&z2(l).isSome(),GE=l=>z2(l).getOrThunk(()=>Er(kr(Nt.fromDom(l.getElement())))),Vk=l=>l.inline&&!_6(l)&&!Nk(l)&&!Fk(l),Qw=l=>(l.options.get("toolbar_sticky")||l.inline)&&!tS(l)&&!Vk(l),N2=l=>!tS(l)&&l.options.get("ui_mode")==="split",mz=l=>{const N=l.options.get("menu");return Ue(N,W=>({...W,items:W.items}))};var gz=Object.freeze({__proto__:null,get ToolbarMode(){return C0},get ToolbarLocation(){return Vw},register:YB,getSkinUrl:YE,getSkinUrlOption:w6,isReadOnly:XB,isSkinDisabled:WE,getHeightOption:Lk,getWidthOption:UE,getMinWidthOption:Uw,getMinHeightOption:eS,getMaxWidthOption:Ik,getMaxHeightOption:g6,getUserStyleFormats:GB,shouldMergeStyleFormats:KB,shouldAutoHideStyleFormats:JB,getLineHeightFormats:pz,getContentLanguages:ez,getRemovedMenuItems:v6,isMenubarEnabled:_6,isMultipleToolbars:Fk,isToolbarEnabled:Nk,isToolbarPersist:nz,getMultipleToolbarsOption:XE,getUiContainer:GE,useFixedContainer:tS,isSplitUiMode:N2,getToolbarMode:jw,isDraggableModal:lz,isDistractionFree:Vk,isStickyToolbar:Qw,getStickyToolbarOffset:rz,getToolbarLocation:Dk,isToolbarLocationBottom:$k,getToolbarGroups:jE,getMenus:mz,getMenubar:oz,getToolbar:Bk,getFilePickerCallback:iz,getFilePickerTypes:QE,useTypeaheadUrls:HE,getAnchorTop:sz,getAnchorBottom:b6,getFilePickerValidatorHandler:az,getFontSizeInputDefaultUnit:y6,useStatusBar:cz,useElementPath:uz,promotionEnabled:dz,useBranding:ZE,getResize:fz,getPasteAsText:qE,getSidebarShow:x6,useHelpAccessibility:zk,getDefaultFontStack:hz});const qW=["visible","hidden","clip"],KE=l=>Dt(l).length>0&&!X(qW,l),JE=l=>{if(sr(l)){const N=Di(l,"overflow-x"),W=Di(l,"overflow-y");return KE(N)||KE(W)}else return!1},eP=l=>l.plugins.fullscreen&&l.plugins.fullscreen.isFullscreen(),WW=(l,N)=>{const W=_2(N,JE),fe=W.length===0?on(N).map(an).map(Se=>_2(Se,JE)).getOr([]):W;return Qe(fe).map(Se=>({element:Se,others:fe.slice(1),isFullscreen:()=>eP(l)}))},ix=(l,N)=>N2(l)?WW(l,N):I.none(),Hw=l=>{const N=[...re(l.others,cl),ts()];return l.isFullscreen()?ts():Qc(cl(l.element),N)},Lh=Qp({name:"Button",factory:l=>{const N=d6(l.action),W=l.dom.tag,fe=Be=>Ge(l.dom,"attributes").bind(qe=>Ge(qe,Be)),Se=()=>{if(W==="button"){const Be=fe("type").getOr("button"),qe=fe("role").map(ft=>({role:ft})).getOr({});return{type:Be,...qe}}else return{role:l.role.getOr(fe("role").getOr("button"))}};return{uid:l.uid,dom:l.dom,components:l.components,events:N,behaviours:Km.augment(l.buttonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:Se()},eventOrder:l.eventOrder}},configFields:[Ar("uid",void 0),pn("dom"),Ar("components",[]),Km.field("buttonBehaviours",[Ra,ha]),Yo("action"),Yo("role"),Ar("eventOrder",{})]}),YW=l=>{const N=l.dom.attributes!==void 0?l.dom.attributes:[];return se(N,(W,fe)=>fe.name==="class"?W:{...W,[fe.name]:fe.value},{})},tP=l=>Array.prototype.slice.call(l.dom.classList,0),Ev=l=>{const N=Nt.fromHtml(l),W=Do(N),fe=YW(N),Se=tP(N),Be=W.length===0?{}:{innerHtml:Np(N)};return{tag:vr(N),classes:Se,attributes:fe,...Be}},ml=l=>{const N=lE(l)&&pt(l,"uid")?l.uid:vy("memento");return{get:Be=>Be.getSystem().getByUid(N).getOrDie(),getOpt:Be=>Be.getSystem().getByUid(N).toOptional(),asSpec:()=>({...l,uid:N})}};var XW=Object.freeze({__proto__:null,exhibit:(l,N)=>np({attributes:ua([{key:N.tabAttr,value:"true"}])})}),GW=[Ar("tabAttr","data-alloy-tabstop")];const Rc=id({fields:GW,name:"tabstopping",active:XW}),yz=Li("tooltip.exclusive"),Uk=Li("tooltip.show"),jk=Li("tooltip.hide"),Qk=Li("tooltip.immediateHide"),Hk=Li("tooltip.immediateShow"),bz=(l,N,W)=>{l.getSystem().broadcastOn([yz],{})};var KW=Object.freeze({__proto__:null,hideAllExclusive:bz,immediateOpenClose:(l,N,W,fe)=>Za(l,fe?Hk:Qk),isEnabled:(l,N,W)=>W.isEnabled(),setComponents:(l,N,W,fe)=>{W.getTooltip().each(Se=>{Se.getSystem().isConnected()&&Fa.set(Se,fe)})},setEnabled:(l,N,W,fe)=>W.setEnabled(fe)}),nP=Object.freeze({__proto__:null,events:(l,N)=>{const W=qe=>{N.getTooltip().each(ft=>{ft.getSystem().isConnected()&&(kv(ft),l.onHide(qe,ft),N.clearTooltip())}),N.clearTimer()},fe=qe=>{if(!N.isShowing()&&N.isEnabled()){bz(qe);const ft=l.lazySink(qe).getOrDie(),yt=qe.getSystem().build({dom:l.tooltipDom,components:l.tooltipComponents,events:Rl(l.mode==="normal"?[Lo(wu(),Lt=>{Za(qe,Uk)}),Lo(i0(),Lt=>{Za(qe,jk)})]:[]),behaviours:ei([Fa.config({})])});N.setTooltip(yt),Eg(ft,yt),l.onShow(qe,yt),Rh.position(ft,yt,{anchor:l.anchor(qe)})}},Se=qe=>{N.getTooltip().each(ft=>{const yt=l.lazySink(qe).getOrDie();Rh.position(yt,ft,{anchor:l.anchor(qe)})})},Be=()=>{switch(l.mode){case"normal":return[Lo(Dp(),qe=>{Za(qe,Hk)}),Lo(kf(),qe=>{Za(qe,Qk)}),Lo(wu(),qe=>{Za(qe,Uk)}),Lo(i0(),qe=>{Za(qe,jk)})];case"follow-highlight":return[Lo(e1(),(qe,ft)=>{Za(qe,Uk)}),Lo(cu(),qe=>{Za(qe,jk)})];case"children-normal":return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)}),Lo(wu(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").each(ft=>{N.getTooltip().fold(()=>{Za(qe,Uk)},yt=>{N.isShowing()&&(l.onShow(qe,yt),Se(qe))})})}),Lo(i0(),qe=>{qa(qe.element,"[data-mce-tooltip]:hover").fold(()=>{Za(qe,jk)},v)})];default:return[Lo(Dp(),(qe,ft)=>{Wd(qe.element).each(yt=>{Yr(ft.event.target,"[data-mce-tooltip]")&&N.getTooltip().fold(()=>{Za(qe,Hk)},Lt=>{N.isShowing()&&(l.onShow(qe,Lt),Se(qe))})})}),Lo(kf(),qe=>{Wd(qe.element).fold(()=>{Za(qe,Qk)},v)})]}};return Rl(ye([[Nx(qe=>{l.onSetup(qe)}),Lo(Uk,qe=>{N.resetTimer(()=>{fe(qe)},l.delayForShow())}),Lo(jk,qe=>{N.resetTimer(()=>{W(qe)},l.delayForHide())}),Lo(Hk,qe=>{N.resetTimer(()=>{fe(qe)},0)}),Lo(Qk,qe=>{N.resetTimer(()=>{W(qe)},0)}),Lo(yp(),(qe,ft)=>{const yt=ft;yt.universal||X(yt.channels,yz)&&W(qe)}),xg(qe=>{W(qe)})],Be()]))}}),JW=[pn("lazySink"),pn("tooltipDom"),Ar("exclusive",!0),Ar("tooltipComponents",[]),ys("delayForShow",x(300)),ys("delayForHide",x(300)),ys("onSetup",v),rl("mode","normal",["normal","follow-highlight","children-keyboard-focus","children-normal"]),Ar("anchor",l=>({type:"hotspot",hotspot:l,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})),Ss("onHide"),Ss("onShow")],eY=Object.freeze({__proto__:null,init:()=>{const l=wi(!0),N=ds(),W=ds(),fe=()=>{N.on(clearTimeout)},Se=(qe,ft)=>{fe(),N.set(setTimeout(qe,ft))},Be=x("not-implemented");return Hd({getTooltip:W.get,isShowing:W.isSet,setTooltip:W.set,clearTooltip:W.clear,clearTimer:fe,resetTimer:Se,readState:Be,isEnabled:()=>l.get(),setEnabled:qe=>l.set(qe)})}});const Vu=id({fields:JW,name:"tooltipping",active:nP,state:eY,apis:KW}),{entries:xz,setPrototypeOf:_z,isFrozen:tY,getPrototypeOf:nY,getOwnPropertyDescriptor:rY}=Object;let{freeze:eg,seal:A0,create:oY}=Object,{apply:rP,construct:oP}=typeof Reflect<"u"&&Reflect;rP||(rP=function(N,W,fe){return N.apply(W,fe)}),eg||(eg=function(N){return N}),A0||(A0=function(N){return N}),oP||(oP=function(N,W){return new N(...W)});const iY=T1(Array.prototype.forEach),aY=T1(Array.prototype.pop),Zk=T1(Array.prototype.push),S6=T1(String.prototype.toLowerCase),iP=T1(String.prototype.toString),sY=T1(String.prototype.match),Pv=T1(String.prototype.replace),lY=T1(String.prototype.indexOf),cY=T1(String.prototype.trim),M0=T1(RegExp.prototype.test),F2=aP(TypeError);function T1(l){return function(N){for(var W=arguments.length,fe=new Array(W>1?W-1:0),Se=1;Se/gm),dY=A0(/\${[\w\W]*}/gm),Yk=A0(/^data-[\-\w.\u00B7-\uFFFF]/),hY=A0(/^aria-[\-\w]+$/),dP=A0(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hP=A0(/^(?:\w+script|data):/i),pY=A0(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M6=A0(/^html$/i);var E6=Object.freeze({__proto__:null,MUSTACHE_EXPR:uY,ERB_EXPR:fY,TMPLIT_EXPR:dY,DATA_ATTR:Yk,ARIA_ATTR:hY,IS_ALLOWED_URI:dP,IS_SCRIPT_OR_DATA:hP,ATTR_WHITESPACE:pY,DOCTYPE_NAME:M6});const mY=()=>typeof window>"u"?null:window,wz=function(N,W){if(typeof N!="object"||typeof N.createPolicy!="function")return null;let fe=null;const Se="data-tt-policy-suffix";W&&W.hasAttribute(Se)&&(fe=W.getAttribute(Se));const Be="dompurify"+(fe?"#"+fe:"");try{return N.createPolicy(Be,{createHTML(qe){return qe},createScriptURL(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+Be+" could not be created."),null}};function pP(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mY();const N=js=>pP(js);if(N.version="3.0.5",N.removed=[],!l||!l.document||l.document.nodeType!==9)return N.isSupported=!1,N;const W=l.document,fe=W.currentScript;let{document:Se}=l;const{DocumentFragment:Be,HTMLTemplateElement:qe,Node:ft,Element:yt,NodeFilter:Lt,NamedNodeMap:Ht=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:fn,DOMParser:Rn,trustedTypes:Bn}=l,er=yt.prototype,cr=k6(er,"cloneNode"),Xr=k6(er,"nextSibling"),br=k6(er,"childNodes"),Fr=k6(er,"parentNode");if(typeof qe=="function"){const js=Se.createElement("template");js.content&&js.content.ownerDocument&&(Se=js.content.ownerDocument)}let jr,Ro="";const{implementation:ko,createNodeIterator:_i,createDocumentFragment:Pi,getElementsByTagName:Ao}=Se,{importNode:$i}=W;let yi={};N.isSupported=typeof xz=="function"&&typeof Fr=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Xi,ERB_EXPR:ks,TMPLIT_EXPR:Ic,DATA_ATTR:hl,ARIA_ATTR:Ui,IS_SCRIPT_OR_DATA:Ko,ATTR_WHITESPACE:Oi}=E6;let{IS_ALLOWED_URI:La}=E6,_a=null;const fa=rc({},[...sP,...lP,...qk,...T6,...Wk]);let Qa=null;const ac=rc({},[...fP,...C1,...C6,...A6]);let vl=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dp=null,qg=null,Vv=!0,Wh=!0,Wg=!1,U0=!0,km=!1,Wy=!1,xO=!1,OL=!1,qS=!1,w8=!1,sQ=!1,pde=!0,mde=!1;const r3e="user-content-";let oie=!0,SL=!1,O8={},S8=null;const gde=rc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let vde=null;const yde=rc({},["audio","video","img","source","image","track"]);let iie=null;const bde=rc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lQ="http://www.w3.org/1998/Math/MathML",cQ="http://www.w3.org/2000/svg",_O="http://www.w3.org/1999/xhtml";let k8=_O,aie=!1,sie=null;const o3e=rc({},[lQ,cQ,_O],iP);let yT;const i3e=["application/xhtml+xml","text/html"],a3e="text/html";let Tm,T8=null;const s3e=Se.createElement("form"),xde=function(So){return So instanceof RegExp||So instanceof Function},lie=function(So){if(!(T8&&T8===So)){if((!So||typeof So!="object")&&(So={}),So=nS(So),yT=i3e.indexOf(So.PARSER_MEDIA_TYPE)===-1?yT=a3e:yT=So.PARSER_MEDIA_TYPE,Tm=yT==="application/xhtml+xml"?iP:S6,_a="ALLOWED_TAGS"in So?rc({},So.ALLOWED_TAGS,Tm):fa,Qa="ALLOWED_ATTR"in So?rc({},So.ALLOWED_ATTR,Tm):ac,sie="ALLOWED_NAMESPACES"in So?rc({},So.ALLOWED_NAMESPACES,iP):o3e,iie="ADD_URI_SAFE_ATTR"in So?rc(nS(bde),So.ADD_URI_SAFE_ATTR,Tm):bde,vde="ADD_DATA_URI_TAGS"in So?rc(nS(yde),So.ADD_DATA_URI_TAGS,Tm):yde,S8="FORBID_CONTENTS"in So?rc({},So.FORBID_CONTENTS,Tm):gde,dp="FORBID_TAGS"in So?rc({},So.FORBID_TAGS,Tm):{},qg="FORBID_ATTR"in So?rc({},So.FORBID_ATTR,Tm):{},O8="USE_PROFILES"in So?So.USE_PROFILES:!1,Vv=So.ALLOW_ARIA_ATTR!==!1,Wh=So.ALLOW_DATA_ATTR!==!1,Wg=So.ALLOW_UNKNOWN_PROTOCOLS||!1,U0=So.ALLOW_SELF_CLOSE_IN_ATTR!==!1,km=So.SAFE_FOR_TEMPLATES||!1,Wy=So.WHOLE_DOCUMENT||!1,qS=So.RETURN_DOM||!1,w8=So.RETURN_DOM_FRAGMENT||!1,sQ=So.RETURN_TRUSTED_TYPE||!1,OL=So.FORCE_BODY||!1,pde=So.SANITIZE_DOM!==!1,mde=So.SANITIZE_NAMED_PROPS||!1,oie=So.KEEP_CONTENT!==!1,SL=So.IN_PLACE||!1,La=So.ALLOWED_URI_REGEXP||dP,k8=So.NAMESPACE||_O,vl=So.CUSTOM_ELEMENT_HANDLING||{},So.CUSTOM_ELEMENT_HANDLING&&xde(So.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(vl.tagNameCheck=So.CUSTOM_ELEMENT_HANDLING.tagNameCheck),So.CUSTOM_ELEMENT_HANDLING&&xde(So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(vl.attributeNameCheck=So.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),So.CUSTOM_ELEMENT_HANDLING&&typeof So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(vl.allowCustomizedBuiltInElements=So.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),km&&(Wh=!1),w8&&(qS=!0),O8&&(_a=rc({},[...Wk]),Qa=[],O8.html===!0&&(rc(_a,sP),rc(Qa,fP)),O8.svg===!0&&(rc(_a,lP),rc(Qa,C1),rc(Qa,A6)),O8.svgFilters===!0&&(rc(_a,qk),rc(Qa,C1),rc(Qa,A6)),O8.mathMl===!0&&(rc(_a,T6),rc(Qa,C6),rc(Qa,A6))),So.ADD_TAGS&&(_a===fa&&(_a=nS(_a)),rc(_a,So.ADD_TAGS,Tm)),So.ADD_ATTR&&(Qa===ac&&(Qa=nS(Qa)),rc(Qa,So.ADD_ATTR,Tm)),So.ADD_URI_SAFE_ATTR&&rc(iie,So.ADD_URI_SAFE_ATTR,Tm),So.FORBID_CONTENTS&&(S8===gde&&(S8=nS(S8)),rc(S8,So.FORBID_CONTENTS,Tm)),oie&&(_a["#text"]=!0),Wy&&rc(_a,["html","head","body"]),_a.table&&(rc(_a,["tbody"]),delete dp.tbody),So.TRUSTED_TYPES_POLICY){if(typeof So.TRUSTED_TYPES_POLICY.createHTML!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof So.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw F2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');jr=So.TRUSTED_TYPES_POLICY,Ro=jr.createHTML("")}else jr===void 0&&(jr=wz(Bn,fe)),jr!==null&&typeof Ro=="string"&&(Ro=jr.createHTML(""));eg&&eg(So),T8=So}},_de=rc({},["mi","mo","mn","ms","mtext"]),wde=rc({},["foreignobject","desc","title","annotation-xml"]),l3e=rc({},["title","style","font","a","script"]),uQ=rc({},lP);rc(uQ,qk),rc(uQ,cP);const cie=rc({},T6);rc(cie,uP);const c3e=function(So){let oa=Fr(So);(!oa||!oa.tagName)&&(oa={namespaceURI:k8,tagName:"template"});const ja=S6(So.tagName),Yf=S6(oa.tagName);return sie[So.namespaceURI]?So.namespaceURI===cQ?oa.namespaceURI===_O?ja==="svg":oa.namespaceURI===lQ?ja==="svg"&&(Yf==="annotation-xml"||_de[Yf]):!!uQ[ja]:So.namespaceURI===lQ?oa.namespaceURI===_O?ja==="math":oa.namespaceURI===cQ?ja==="math"&&wde[Yf]:!!cie[ja]:So.namespaceURI===_O?oa.namespaceURI===cQ&&!wde[Yf]||oa.namespaceURI===lQ&&!_de[Yf]?!1:!cie[ja]&&(l3e[ja]||!uQ[ja]):!!(yT==="application/xhtml+xml"&&sie[So.namespaceURI]):!1},bT=function(So){Zk(N.removed,{element:So});try{So.parentNode.removeChild(So)}catch{So.remove()}},kL=function(So,oa){try{Zk(N.removed,{attribute:oa.getAttributeNode(So),from:oa})}catch{Zk(N.removed,{attribute:null,from:oa})}if(oa.removeAttribute(So),So==="is"&&!Qa[So])if(qS||w8)try{bT(oa)}catch{}else try{oa.setAttribute(So,"")}catch{}},Ode=function(So){let oa,ja;if(OL)So=""+So;else{const Yy=sY(So,/^[\r\n\t ]+/);ja=Yy&&Yy[0]}yT==="application/xhtml+xml"&&k8===_O&&(So=''+So+"");const Yf=jr?jr.createHTML(So):So;if(k8===_O)try{oa=new Rn().parseFromString(Yf,yT)}catch{}if(!oa||!oa.documentElement){oa=ko.createDocument(k8,"template",null);try{oa.documentElement.innerHTML=aie?Ro:Yf}catch{}}const Cm=oa.body||oa.documentElement;return So&&ja&&Cm.insertBefore(Se.createTextNode(ja),Cm.childNodes[0]||null),k8===_O?Ao.call(oa,Wy?"html":"body")[0]:Wy?oa.documentElement:Cm},Sde=function(So){return _i.call(So.ownerDocument||So,So,Lt.SHOW_ELEMENT|Lt.SHOW_COMMENT|Lt.SHOW_TEXT,null,!1)},u3e=function(So){return So instanceof fn&&(typeof So.nodeName!="string"||typeof So.textContent!="string"||typeof So.removeChild!="function"||!(So.attributes instanceof Ht)||typeof So.removeAttribute!="function"||typeof So.setAttribute!="function"||typeof So.namespaceURI!="string"||typeof So.insertBefore!="function"||typeof So.hasChildNodes!="function")},fQ=function(So){return typeof ft=="object"?So instanceof ft:So&&typeof So=="object"&&typeof So.nodeType=="number"&&typeof So.nodeName=="string"},wO=function(So,oa,ja){yi[So]&&iY(yi[So],Yf=>{Yf.call(N,oa,ja,T8)})},kde=function(So){let oa;if(wO("beforeSanitizeElements",So,null),u3e(So))return bT(So),!0;const ja=Tm(So.nodeName);if(wO("uponSanitizeElement",So,{tagName:ja,allowedTags:_a}),So.hasChildNodes()&&!fQ(So.firstElementChild)&&(!fQ(So.content)||!fQ(So.content.firstElementChild))&&M0(/<[/\w]/g,So.innerHTML)&&M0(/<[/\w]/g,So.textContent))return bT(So),!0;if(!_a[ja]||dp[ja]){if(!dp[ja]&&Cde(ja)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja)))return!1;if(oie&&!S8[ja]){const Yf=Fr(So)||So.parentNode,Cm=br(So)||So.childNodes;if(Cm&&Yf){const Yy=Cm.length;for(let Dh=Yy-1;Dh>=0;--Dh)Yf.insertBefore(cr(Cm[Dh],!0),Xr(So))}}return bT(So),!0}return So instanceof yt&&!c3e(So)||(ja==="noscript"||ja==="noembed"||ja==="noframes")&&M0(/<\/no(script|embed|frames)/i,So.innerHTML)?(bT(So),!0):(km&&So.nodeType===3&&(oa=So.textContent,oa=Pv(oa,Xi," "),oa=Pv(oa,ks," "),oa=Pv(oa,Ic," "),So.textContent!==oa&&(Zk(N.removed,{element:So.cloneNode()}),So.textContent=oa)),wO("afterSanitizeElements",So,null),!1)},Tde=function(So,oa,ja){if(pde&&(oa==="id"||oa==="name")&&(ja in Se||ja in s3e))return!1;if(!(Wh&&!qg[oa]&&M0(hl,oa))){if(!(Vv&&M0(Ui,oa))){if(!Qa[oa]||qg[oa]){if(!(Cde(So)&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,So)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(So))&&(vl.attributeNameCheck instanceof RegExp&&M0(vl.attributeNameCheck,oa)||vl.attributeNameCheck instanceof Function&&vl.attributeNameCheck(oa))||oa==="is"&&vl.allowCustomizedBuiltInElements&&(vl.tagNameCheck instanceof RegExp&&M0(vl.tagNameCheck,ja)||vl.tagNameCheck instanceof Function&&vl.tagNameCheck(ja))))return!1}else if(!iie[oa]){if(!M0(La,Pv(ja,Oi,""))){if(!((oa==="src"||oa==="xlink:href"||oa==="href")&&So!=="script"&&lY(ja,"data:")===0&&vde[So])){if(!(Wg&&!M0(Ko,Pv(ja,Oi,"")))){if(ja)return!1}}}}}}return!0},Cde=function(So){return So.indexOf("-")>0},Ade=function(So){let oa,ja,Yf,Cm;wO("beforeSanitizeAttributes",So,null);const{attributes:Yy}=So;if(!Yy)return;const Dh={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qa};for(Cm=Yy.length;Cm--;){oa=Yy[Cm];const{name:Xy,namespaceURI:uie}=oa;ja=Xy==="value"?oa.value:cY(oa.value);const d3e=ja;if(Yf=Tm(Xy),Dh.attrName=Yf,Dh.attrValue=ja,Dh.keepAttr=!0,Dh.forceKeepAttr=void 0,wO("uponSanitizeAttribute",So,Dh),ja=Dh.attrValue,Dh.forceKeepAttr)continue;if(!Dh.keepAttr){kL(Xy,So);continue}if(!U0&&M0(/\/>/i,ja)){kL(Xy,So);continue}km&&(ja=Pv(ja,Xi," "),ja=Pv(ja,ks," "),ja=Pv(ja,Ic," "));const Mde=Tm(So.nodeName);if(!Tde(Mde,Yf,ja)){kL(Xy,So);continue}if(mde&&(Yf==="id"||Yf==="name")&&(kL(Xy,So),ja=r3e+ja),jr&&typeof Bn=="object"&&typeof Bn.getAttributeType=="function"&&!uie)switch(Bn.getAttributeType(Mde,Yf)){case"TrustedHTML":{ja=jr.createHTML(ja);break}case"TrustedScriptURL":{ja=jr.createScriptURL(ja);break}}if(ja!==d3e)try{uie?So.setAttributeNS(uie,Xy,ja):So.setAttribute(Xy,ja)}catch{kL(Xy,So)}}wO("afterSanitizeAttributes",So,null)},f3e=function js(So){let oa;const ja=Sde(So);for(wO("beforeSanitizeShadowDOM",So,null);oa=ja.nextNode();)wO("uponSanitizeShadowNode",oa,null),!kde(oa)&&(oa.content instanceof Be&&js(oa.content),Ade(oa));wO("afterSanitizeShadowDOM",So,null)};return N.sanitize=function(js){let So=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oa,ja,Yf,Cm;if(aie=!js,aie&&(js=""),typeof js!="string"&&!fQ(js))if(typeof js.toString=="function"){if(js=js.toString(),typeof js!="string")throw F2("dirty is not a string, aborting")}else throw F2("toString is not a function");if(!N.isSupported)return js;if(xO||lie(So),N.removed=[],typeof js=="string"&&(SL=!1),SL){if(js.nodeName){const Xy=Tm(js.nodeName);if(!_a[Xy]||dp[Xy])throw F2("root node is forbidden and cannot be sanitized in-place")}}else if(js instanceof ft)oa=Ode(""),ja=oa.ownerDocument.importNode(js,!0),ja.nodeType===1&&ja.nodeName==="BODY"||ja.nodeName==="HTML"?oa=ja:oa.appendChild(ja);else{if(!qS&&!km&&!Wy&&js.indexOf("<")===-1)return jr&&sQ?jr.createHTML(js):js;if(oa=Ode(js),!oa)return qS?null:sQ?Ro:""}oa&&OL&&bT(oa.firstChild);const Yy=Sde(SL?js:oa);for(;Yf=Yy.nextNode();)kde(Yf)||(Yf.content instanceof Be&&f3e(Yf.content),Ade(Yf));if(SL)return js;if(qS){if(w8)for(Cm=Pi.call(oa.ownerDocument);oa.firstChild;)Cm.appendChild(oa.firstChild);else Cm=oa;return(Qa.shadowroot||Qa.shadowrootmode)&&(Cm=$i.call(W,Cm,!0)),Cm}let Dh=Wy?oa.outerHTML:oa.innerHTML;return Wy&&_a["!doctype"]&&oa.ownerDocument&&oa.ownerDocument.doctype&&oa.ownerDocument.doctype.name&&M0(M6,oa.ownerDocument.doctype.name)&&(Dh=" +`+Dh),km&&(Dh=Pv(Dh,Xi," "),Dh=Pv(Dh,ks," "),Dh=Pv(Dh,Ic," ")),jr&&sQ?jr.createHTML(Dh):Dh},N.setConfig=function(js){lie(js),xO=!0},N.clearConfig=function(){T8=null,xO=!1},N.isValidAttribute=function(js,So,oa){T8||lie({});const ja=Tm(js),Yf=Tm(So);return Tde(ja,Yf,oa)},N.addHook=function(js,So){typeof So=="function"&&(yi[js]=yi[js]||[],Zk(yi[js],So))},N.removeHook=function(js){if(yi[js])return aY(yi[js])},N.removeHooks=function(js){yi[js]&&(yi[js]=[])},N.removeAllHooks=function(){yi={}},N}var gY=pP();const mP=l=>gY().sanitize(l);var Dg=tinymce.util.Tools.resolve("tinymce.util.I18n");const vY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},Oz="temporary-placeholder",gP=l=>()=>Ge(l,Oz).getOr("!not found!"),vP=(l,N)=>{const W=l.toLowerCase();if(Dg.isRtl()){const fe=vt(W,"-rtl");return ht(N,fe)?fe:W}else return W},Sz=(l,N)=>Ge(N,vP(l,N)),yP=(l,N)=>{const W=N();return Sz(l,W).getOrThunk(gP(W))},kz=(l,N,W)=>{const fe=N();return Sz(l,fe).or(W).getOrThunk(gP(fe))},yY=l=>Dg.isRtl()?ht(vY,l):!1,P6=()=>Ka("add-focusable",[wc(l=>{Fc(l.element,"svg").each(N=>Cr(N,"focusable","false"))})]),rS=(l,N,W,fe)=>{var Se,Be;const qe=yY(N)?["tox-icon--flip"]:[],ft=Ge(W,vP(N,W)).or(fe).getOrThunk(gP(W));return{dom:{tag:l.tag,attributes:(Se=l.attributes)!==null&&Se!==void 0?Se:{},classes:l.classes.concat(qe),innerHtml:ft},behaviours:ei([...(Be=l.behaviours)!==null&&Be!==void 0?Be:[],P6()])}},Bg=(l,N,W,fe=I.none())=>rS(N,l,W(),fe),bY=(l,N,W)=>{const fe=W(),Se=ce(l,Be=>ht(fe,vP(Be,fe)));return rS(N,Se.getOr(Oz),fe,I.none())},xY={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},bP=Qp({name:"Notification",factory:l=>{const N=Li("notification-text"),W=ml({dom:Ev(`

    ${mP(l.backstageProvider.translate(l.text))}

    `),behaviours:ei([Fa.config({})])}),fe=er=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${er}%`}}}),Se=er=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${er}%`}}),Be=ml({dom:{tag:"div",classes:l.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(0)]},Se(0)],behaviours:ei([Fa.config({})])}),yt={updateProgress:(er,cr)=>{er.getSystem().isConnected()&&Be.getOpt(er).each(Xr=>{Fa.set(Xr,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[fe(cr)]},Se(cr)])})},updateText:(er,cr)=>{if(er.getSystem().isConnected()){const Xr=W.get(er);Fa.set(Xr,[Po(cr)])}}},Lt=ye([l.icon.toArray(),l.level.toArray(),l.level.bind(er=>I.from(xY[er])).toArray()]),Ht=ml(Lh.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":l.backstageProvider.translate("Close")}},components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.iconProvider)],buttonBehaviours:ei([Rc.config({}),Vu.config({...l.backstageProvider.tooltips.getConfig({tooltipText:l.backstageProvider.translate("Close")})})]),action:er=>{l.onAction(er)}})),fn=bY(Lt,{tag:"div",classes:["tox-notification__icon"]},l.iconProvider),Rn={dom:{tag:"div",classes:["tox-notification__body"]},components:[W.asSpec()],behaviours:ei([Fa.config({})])},Bn=[fn,Rn];return{uid:l.uid,dom:{tag:"div",attributes:{role:"alert","aria-labelledby":N},classes:l.level.map(er=>["tox-notification","tox-notification--in",`tox-notification--${er}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:ei([Rc.config({}),Ra.config({}),ha.config({mode:"special",onEscape:er=>(l.onAction(er),I.some(!0))})]),components:Bn.concat(l.progress?[Be.asSpec()]:[]).concat([Ht.asSpec()]),apis:yt}},configFields:[Yo("level"),pn("progress"),Yo("icon"),pn("onAction"),pn("text"),pn("iconProvider"),pn("backstageProvider")],apis:{updateProgress:(l,N,W)=>{l.updateProgress(N,W)},updateText:(l,N,W)=>{l.updateText(N,W)}}});var wY=(l,N,W,fe)=>{const Se=N.backstage.shared,Be=()=>Nt.fromDom(l.queryCommandValue("ToggleView")===""?l.getContentAreaContainer():l.getContainer()),qe=()=>{const fn=cl(Be());return I.some(fn)},ft=fn=>{qe().each(Rn=>{q(fn,Bn=>{zi(Bn.element,"width"),_s(Bn.element)>Rn.width&&xr(Bn.element,"width",Rn.width+"px")})})};return{open:(fn,Rn,Bn)=>{const er=()=>{const Fr=_i=>{Fa.remove(_i,cr),Xr()},jr=(_i,Pi)=>{Do(_i.element).length===0?Ro(_i,Pi):ko(_i,Pi)},Ro=(_i,Pi)=>{Xc.hide(_i),fe.clear(),Pi&&l.focus()},ko=(_i,Pi)=>{Pi&&ha.focusIn(_i)};fe.on(_i=>{Rn();const Pi=Bn();Fr(_i),jr(_i,Pi)})},cr=ka(bP.sketch({text:fn.text,level:X(["success","error","warning","warn","info"],fn.type)?fn.type:void 0,progress:fn.progressBar===!0,icon:fn.icon,onAction:er,iconProvider:Se.providers.icons,backstageProvider:Se.providers}));if(fe.isSet()){const Fr=ea(cr);fe.on(jr=>{Fa.append(jr,Fr),Xc.reposition(jr),fc.refresh(jr),ft(jr.components())})}else{const Fr=ka(Xc.sketch({dom:{tag:"div",classes:["tox-notifications-container"],attributes:{"aria-label":"Notifications",role:"region"}},lazySink:Se.getSink,fireDismissalEventInstead:{},...Se.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([ha.config({mode:"cyclic",selector:".tox-notification, .tox-notification a, .tox-notification button"}),Fa.config({}),...Qw(l)&&!Se.header.isPositionedAtTop()?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Be())),fadeInClass:"tox-notification-container-dock-fadein",fadeOutClass:"tox-notification-container-dock-fadeout",transitionClass:"tox-notification-container-dock-transition"},modes:["top"],lazyViewport:_i=>ix(l,_i.element).map(Ao=>({bounds:Hw(Ao),optScrollEnv:I.some({currentScrollTop:Ao.element.dom.scrollTop,scrollElmTop:Tc(Ao.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]])})),jr=ea(cr),Ro={maxHeightFunction:v1()},ko={...Se.anchors.banner(),overrides:Ro};fe.set(Fr),W.add(Fr),Xc.showWithinBounds(Fr,jr,{anchor:ko},qe)}h(fn.timeout)&&fn.timeout>0&&J3.setEditorTimeout(l,()=>{er()},fn.timeout);const Xr=()=>{fe.on(Fr=>{Xc.reposition(Fr),fc.refresh(Fr),ft(Fr.components())})};return{close:er,reposition:Xr,text:Fr=>{bP.updateText(cr,Fr)},settings:fn,getEl:()=>cr.element.dom,progressBar:{value:Fr=>{bP.updateProgress(cr,Fr)}}}},close:fn=>{fn.close()},getArgs:fn=>fn.settings}};const Tz={setup:(l,N)=>{const W=(Se,Be)=>{sa(Se,nm(),{raw:Be})},fe=()=>l.getMenu().bind(ta.getHighlighted);N.on("keydown",Se=>{const Be=Se.which;l.isActive()&&(l.isMenuOpen()?Be===13?(fe().each(Bm),Se.preventDefault()):Be===40?(fe().fold(()=>{l.getMenu().each(ta.highlightFirst)},qe=>{W(qe,Se)}),Se.preventDefault(),Se.stopImmediatePropagation()):(Be===37||Be===38||Be===39)&&fe().each(qe=>{W(qe,Se),Se.preventDefault(),Se.stopImmediatePropagation()}):(Be===13||Be===38||Be===40)&&l.cancelIfNecessary())}),N.on("NodeChange",()=>{l.isActive()&&!l.isProcessingAction()&&!N.queryCommandState("mceAutoCompleterInRange")&&l.cancelIfNecessary()})}};var R6;(function(l){l[l.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",l[l.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(R6||(R6={}));var A1=R6;const xP="tox-menu-nav__js",L6="tox-collection__item",I6="tox-swatch",_P={normal:xP,color:I6},D6="tox-collection__item--enabled",Cz="tox-collection__group-heading",wP="tox-collection__item-icon",B6="tox-collection__item-label",SY="tox-collection__item-accessory",z6="tox-collection__item-caret",kY="tox-collection__item-checkmark",$2="tox-collection__item--active",OP="tox-collection__item-container",Zw="tox-collection__item-container--column",Az="tox-collection__item-container--row",SP="tox-collection__item-container--align-right",N6="tox-collection__item-container--align-left",TY="tox-collection__item-container--valign-top",Mz="tox-collection__item-container--valign-middle",Ez="tox-collection__item-container--valign-bottom",kP=l=>Ge(_P,l).getOr(xP),TP=l=>l==="color"?"tox-swatches":"tox-menu",F6=l=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:TP(l),tieredMenu:"tox-tiered-menu"}),qw=l=>{const N=F6(l);return{backgroundMenu:N.backgroundMenu,selectedMenu:N.selectedMenu,menu:N.menu,selectedItem:N.selectedItem,item:kP(l)}},Pz=(l,N,W)=>{const fe=F6(W);return{tag:"div",classes:ye([[fe.menu,`tox-menu-${N}-column`],l?[fe.hasIcons]:[]])}},Rz=[T0.parts.items({})],Xk=(l,N,W)=>{const fe=F6(W);return{dom:{tag:"div",classes:ye([[fe.tieredMenu]])},markers:qw(W)}},CP=x([Yo("data"),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("tag","input"),Ar("inputClasses",[]),Ss("onSetValue"),Ar("styles",{}),Ar("eventOrder",{}),Pd("inputBehaviours",[Ei,Ra]),Ar("selectOnFocus",!0)]),Lz=l=>ei([Ra.config({onFocus:l.selectOnFocus?N=>{const W=N.element,fe=F(W);W.dom.setSelectionRange(0,fe.length)}:v})]),Iz=l=>({...Lz(l),...Rd(l.inputBehaviours,[Ei.config({store:{mode:"manual",...l.data.map(N=>({initialValue:N})).getOr({}),getValue:N=>F(N.element),setValue:(N,W)=>{F(N.element)!==W&&G(N.element,W)}},onSetValue:l.onSetValue})])}),Dz=l=>({tag:l.tag,attributes:{type:"text",...l.inputAttributes},styles:l.inputStyles,classes:l.inputClasses}),CY=(l,N)=>({uid:l.uid,dom:Dz(l),components:[],behaviours:Iz(l),eventOrder:l.eventOrder}),Ww=Qp({name:"Input",configFields:CP(),factory:CY}),Bz=Li("refetch-trigger-event"),AP=Li("redirect-menu-item-interaction"),oS="tox-menu__searcher",Gk=l=>qa(l.element,`.${oS}`).bind(N=>l.getSystem().getByDom(N).toOptional()),zz=Gk,AY=(l,N)=>{Ei.setValue(l,N.fetchPattern),l.element.dom.selectionStart=N.selectionStart,l.element.dom.selectionEnd=N.selectionEnd},Nz=l=>{const N=Ei.getValue(l),W=l.element.dom.selectionStart,fe=l.element.dom.selectionEnd;return{fetchPattern:N,selectionStart:W,selectionEnd:fe}},MY=(l,N)=>{Eo(N.element,"id").each(W=>Cr(l.element,"aria-activedescendant",W))},EY=l=>{const N=(Se,Be)=>(Be.cut(),I.none()),W=(Se,Be)=>{const qe={interactionEvent:Be.event,eventType:Be.event.raw.type};return sa(Se,AP,qe),I.some(!0)},fe="searcher-events";return{dom:{tag:"div",classes:[L6]},components:[Ww.sketch({inputClasses:[oS,"tox-textfield"],inputAttributes:{...l.placeholder.map(Se=>({placeholder:l.i18n(Se)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:ei([Ka(fe,[Lo(vg(),Se=>{Za(Se,Bz)}),Lo(nm(),(Se,Be)=>{Be.event.raw.key==="Escape"&&Be.stop()})]),ha.config({mode:"special",onLeft:N,onRight:N,onSpace:N,onEnter:W,onEscape:W,onUp:W,onDown:W})]),eventOrder:{keydown:[fe,ha.name()]}})]}},Yw="tox-collection--results__js",Fz=l=>{var N;return l.dom?{...l,dom:{...l.dom,attributes:{...(N=l.dom.attributes)!==null&&N!==void 0?N:{},id:Li("aria-item-search-result-id"),"aria-selected":"false"}}}:l},$6=(l,N)=>W=>{const fe=K(W,N);return re(fe,Se=>({dom:l,components:Se}))},PY=l=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[T0.parts.items({preprocess:l!=="auto"?$6({tag:"div",classes:["tox-swatches__row"]},l):R})]}]}),$z=l=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[T0.parts.items({preprocess:$6({tag:"div",classes:["tox-collection__group"]},l)})]}),MP=(l,N)=>{const W=[];let fe=[];return q(l,(Se,Be)=>{N(Se,Be)?(fe.length>0&&W.push(fe),fe=[],(ht(Se.dom,"innerHtml")||Se.components&&Se.components.length>0)&&fe.push(Se)):fe.push(Se)}),fe.length>0&&W.push(fe),re(W,Se=>({dom:{tag:"div",classes:["tox-collection__group"]},components:Se}))},EP=(l,N,W)=>T0.parts.items({preprocess:fe=>{const Se=re(fe,W);return l!=="auto"&&l>1?$6({tag:"div",classes:["tox-collection__group"]},l)(Se):MP(Se,(Be,qe)=>N[qe].type==="separator")}}),PP=(l,N,W=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EP(l,N,R)]}),Vz=(l,N,W=!0)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Yw].concat(l===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:fe}},components:[EP(l,N,Fz)]}},Uz=(l,N,W)=>{const fe=Li("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(l===1?["tox-collection--list"]:["tox-collection--grid"])},components:[EY({i18n:Dg.translate,placeholder:W.placeholder}),{dom:{tag:"div",classes:[...l===1?["tox-collection--list"]:["tox-collection--grid"],Yw],attributes:{id:fe}},components:[EP(l,N,Fz)]}]}},jz=(l,N=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[T0.parts.items({preprocess:W=>MP(W,(fe,Se)=>l[Se].type==="separator")})]}),V6=l=>te(l,N=>"icon"in N&&N.icon!==void 0),ax=l=>(console.error(dn(l)),console.log(l),I.none()),RY=(l,N,W,fe,Se)=>{const Be=jz(W);return{value:l,dom:Be.dom,components:Be.components,items:W}},RP=(l,N,W,fe,Se)=>{const Be=()=>Se.menuType!=="searchable"?PP(fe,W):Se.searchMode.searchMode==="search-with-field"?Uz(fe,W,Se.searchMode):Vz(fe,W);if(Se.menuType==="color"){const qe=PY(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"&&fe==="auto"){const qe=PP(fe,W);return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="normal"||Se.menuType==="searchable"){const qe=Be();return{value:l,dom:qe.dom,components:qe.components,items:W}}else if(Se.menuType==="listpreview"&&fe!=="auto"){const qe=$z(fe);return{value:l,dom:qe.dom,components:qe.components,items:W}}else return{value:l,dom:Pz(N,fe,Se.menuType),components:Rz,items:W}},pf=Pr("type"),U6=Pr("name"),LP=Pr("label"),sx=Pr("text"),Qz=Pr("title"),Hz=Pr("icon"),Kk=Pr("value"),LY=po("fetch"),IY=po("getSubmenuItems"),V2=po("onAction"),Zz=po("onItemAction"),Xw=ys("onSetup",()=>v),DY=jo("name"),lx=jo("text"),BY=jo("role"),E0=jo("icon"),iS=jo("tooltip"),j6=jo("label"),Q6=jo("shortcut"),zY=ai("select"),H6=Hs("active",!1),NY=Hs("borderless",!1),P0=Hs("enabled",!0),aS=Hs("primary",!1),qz=l=>Ar("columns",l),IP=Ar("meta",{}),DP=ys("onAction",v),Gw=l=>Ts("type",l),BP=l=>Ln("name","name",Ca(()=>Li(`${l}-name`)),ne),FY=l=>Ln("value","value",Ca(()=>Li(`${l}-value`)),Ut()),zP=Si([pf,lx]),Wz=l=>Rt("separatormenuitem",zP,l),$Y=Si([Gw("autocompleteitem"),H6,P0,IP,Kk,lx,E0]),VY=l=>Rt("Autocompleter.Separator",zP,l),UY=l=>Rt("Autocompleter.Item",$Y,l),lp=[P0,iS,E0,lx,Xw],Rv=Si([pf,V2,Q6].concat(lp)),Yz=l=>Rt("toolbarbutton",Rv,l),Jk=[H6].concat(lp),NP=Si(Jk.concat([pf,V2,Q6])),Xz=l=>Rt("ToggleButton",NP,l),Gz=[ys("predicate",D),rl("scope","node",["node","editor"]),rl("position","selection",["node","selection","line"])],e5=lp.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),Z6=Jk.concat([Gw("contextformbutton"),aS,V2,gn("original",R)]),FP=lp.concat([Gw("contextformbutton")]),jY=Jk.concat([Gw("contextformtogglebutton")]),Lv=bn("type",{contextformbutton:e5,contextformtogglebutton:Z6}),QY=Si([Gw("contextform"),ys("initValue",x("")),j6,Go("commands",Lv),Wi("launch",bn("type",{contextformbutton:FP,contextformtogglebutton:jY}))].concat(Gz)),HY=l=>Rt("ContextForm",QY,l),R0=Si([Gw("contexttoolbar"),Pr("items")].concat(Gz)),t5=l=>Rt("ContextToolbar",R0,l),M1=[pf,Pr("src"),jo("alt"),mt("classes",[],ne)],ZY=Si(M1),oc=[pf,sx,DY,mt("classes",["tox-collection__item-label"],ne)],sS=Si(oc),n5=Pc(()=>Ne("type",{cardimage:ZY,cardtext:sS,cardcontainer:Kz})),Kz=Si([pf,Ts("direction","horizontal"),Ts("align","left"),Ts("valign","middle"),Go("items",n5)]),U2=[P0,lx,BY,Q6,FY("menuitem"),IP],$P=Si([pf,j6,Go("items",n5),Xw,DP].concat(U2)),qY=l=>Rt("cardmenuitem",$P,l),VP=Si([pf,H6,E0].concat(U2)),WY=l=>Rt("choicemenuitem",VP,l),UP=[pf,Pr("fancytype"),DP],Jz=[Ar("initData",{})].concat(UP),jP=[ai("select"),Tt("initData",{},[Hs("allowCustomColors",!0),Ts("storageKey","default"),Hi("colors",Ut())])].concat(UP),eN=bn("fancytype",{inserttable:Jz,colorswatch:jP}),q6=l=>Rt("fancymenuitem",eN,l),YY=Si([pf,Xw,DP,E0].concat(U2)),XY=l=>Rt("menuitem",YY,l),GY=Si([pf,IY,Xw,E0].concat(U2)),KY=l=>Rt("nestedmenuitem",GY,l),JY=Si([pf,E0,H6,Xw,V2].concat(U2)),tN=l=>Rt("togglemenuitem",JY,l),QP=(l,N,W)=>{const fe=Yd(l.element,"."+W);if(fe.length>0){const Se=de(fe,Be=>{const qe=Be.dom.getBoundingClientRect().top,ft=fe[0].dom.getBoundingClientRect().top;return Math.abs(qe-ft)>N}).getOr(fe.length);return I.some({numColumns:Se,numRows:Math.ceil(fe.length/Se)})}else return I.none()},nN=(l,N)=>ei([Ka(l,N)]),lS={namedEvents:nN,unnamedEvents:l=>nN(Li("unnamed-events"),l)},tX=l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),rN="silver.readonly",oN=Si([ro("readonly")]),cS=(l,N)=>{const fe=l.mainUi.outerContainer.element,Se=[l.mainUi.mothership,...l.uiMotherships];N&&q(Se,Be=>{Be.broadcastOn([_1()],{target:fe})}),q(Se,Be=>{Be.broadcastOn([rN],{readonly:N})})},HP=(l,N)=>{l.on("init",()=>{l.mode.isReadOnly()&&cS(N,!0)}),l.on("SwitchMode",()=>cS(N,l.mode.isReadOnly())),XB(l)&&l.mode.set("readonly")},Id=()=>Ad.config({channels:{[rN]:{schema:oN,onReceive:(l,N)=>{he.set(l,N.readonly)}}}}),E1={item:l=>he.config({disabled:l,disableClass:"tox-collection__item--state-disabled"}),button:l=>he.config({disabled:l}),splitButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled"}),toolbarButton:l=>he.config({disabled:l,disableClass:"tox-tbtn--disabled",useNative:!1})},r5=(l,N)=>{const W=l.getApi(N);return fe=>{fe(W)}},cp=(l,N)=>wc(W=>{r5(l,W)(Se=>{const Be=l.onSetup(Se);c(Be)&&N.set(Be)})}),j2=(l,N)=>xg(W=>r5(l,W)(N.get())),ZP=(l,N)=>kh((W,fe)=>{r5(l,W)(l.onAction),!l.triggersSubmenu&&N===A1.CLOSE_ON_EXECUTE&&(W.getSystem().isConnected()&&Za(W,Z1()),fe.stop())}),iN={[Bp()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Kw=zt,uS=(l,N,W,fe)=>{const Se=wi(v);return{type:"item",dom:N.dom,components:Kw(N.optComponents),data:l.data,eventOrder:iN,hasSubmenu:l.triggersSubmenu,itemBehaviours:ei([Ka("item-events",[ZP(l,W),cp(l,Se),j2(l,Se)]),E1.item(()=>!l.enabled||fe.isDisabled()),Id(),Fa.config({})].concat(l.itemBehaviours))}},Jw=l=>({value:l.value,meta:{text:l.text.getOr(""),...l.meta}}),W6=l=>{const N=$w.os.isMacOS()||$w.os.isiOS(),Se=N?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Be=l.split("+"),qe=re(Be,ft=>{const yt=ft.toLowerCase().trim();return ht(Se,yt)?Se[yt]:ft});return N?qe.join(""):qe.join("+")},Y6=(l,N,W=[wP])=>Bg(l,{tag:"div",classes:W},N),aN=l=>({dom:{tag:"div",classes:[B6]},components:[Po(Dg.translate(l))]}),sN=(l,N)=>({dom:{tag:"div",classes:N,innerHtml:l}}),nX=(l,N)=>({dom:{tag:"div",classes:[B6]},components:[{dom:{tag:l.tag,styles:l.styles},components:[Po(Dg.translate(N))]}]}),rX=l=>({dom:{tag:"div",classes:[SY]},components:[Po(W6(l))]}),lN=l=>Y6("checkmark",l,[kY]),cN=l=>Y6("chevron-right",l,[z6]),uN=l=>Y6("chevron-down",l,[z6]),fN=(l,N)=>{const W=l.direction==="vertical"?Zw:Az,fe=l.align==="left"?N6:SP;return{dom:{tag:"div",classes:[OP,W,fe,(()=>{switch(l.valign){case"top":return TY;case"middle":return Mz;case"bottom":return Ez}})()]},components:N}},oX=(l,N,W)=>({dom:{tag:"img",classes:N,attributes:{src:l,alt:W.getOr("")}}}),iX=(l,N,W)=>{const fe="custom",Se="remove",Be=l.value,qe=l.iconContent.map(Lt=>kz(Lt,N.icons,W)),ft=l.ariaLabel.map(Lt=>({"aria-label":N.translate(Lt),"data-mce-name":Lt})).getOr({});return{dom:(()=>{const Lt=I6,Ht=qe.getOr(""),fn={tag:"div",attributes:ft,classes:[Lt]};return Be===fe?{...fn,tag:"button",classes:[...fn.classes,"tox-swatches__picker-btn"],innerHtml:Ht}:Be===Se?{...fn,classes:[...fn.classes,"tox-swatch--remove"],innerHtml:Ht}:a(Be)?{...fn,attributes:{...fn.attributes,"data-mce-color":Be},styles:{"background-color":Be},innerHtml:Ht}:fn})(),optComponents:[]}},dN=l=>{const N=l.map(W=>({attributes:{id:Li("menu-item"),"aria-label":Dg.translate(W)}})).getOr({});return{tag:"div",classes:[xP,L6],...N}},fS=(l,N,W,fe)=>{const Se={tag:"div",classes:[wP]},Be=Rn=>Bg(Rn,Se,N.icons,fe),qe=()=>I.some({dom:Se}),ft=W?l.iconContent.map(Be).orThunk(qe):I.none(),yt=l.checkMark,Lt=I.from(l.meta).fold(()=>aN,Rn=>ht(Rn,"style")?T(nX,Rn.style):aN),Ht=l.htmlContent.fold(()=>l.textContent.map(Lt),Rn=>I.some(sN(Rn,[B6])));return{dom:dN(l.ariaLabel),optComponents:[ft,Ht,l.shortcutContent.map(rX),yt,l.caret]}},o5=(l,N,W,fe=I.none())=>l.presets==="color"?iX(l,N,fe):fS(l,N,W,fe),qP=(l,N,W)=>Ge(l,"tooltipWorker").map(fe=>[Vu.config({lazySink:N.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:Se=>({type:"submenu",item:Se,overrides:{maxHeightFunction:v1}}),mode:"follow-highlight",onShow:(Se,Be)=>{fe(qe=>{Vu.setComponents(Se,[Ii({element:Nt.fromDom(qe)})])})}})]).getOrThunk(()=>W.map(fe=>[Vu.config({...N.providers.tooltips.getConfig({tooltipText:fe}),mode:"follow-highlight"})]).getOr([])),hN=l=>Fw.DOM.encode(l),WP=(l,N)=>{const W=Dg.translate(l),fe=hN(W);if(N.length>0){const Se=new RegExp(tX(N),"gi");return fe.replace(Se,Be=>`${Be}`)}else return fe},pN=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=o5({presets:fe,textContent:I.none(),htmlContent:W?l.text.map(Ht=>WP(Ht,N)):I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:I.none(),checkMark:I.none(),caret:I.none(),value:l.value},qe.providers,ft,l.icon),Lt=l.text.filter(Ht=>!W&&Ht!=="");return uS({data:Jw(l),enabled:l.enabled,getApi:x({}),onAction:Ht=>Se(l.value,l.meta),onSetup:x(v),triggersSubmenu:!1,itemBehaviours:qP(l,qe,Lt)},yt,Be,qe.providers)},X6=(l,N)=>re(l,W=>{switch(W.type){case"cardcontainer":return fN(W,X6(W.items,N));case"cardimage":return oX(W.src,W.classes,W.alt);case"cardtext":const Se=W.name.exists(Be=>X(N.cardText.highlightOn,Be))?I.from(N.cardText.matchText).getOr(""):"";return sN(WP(W.text,Se),W.classes)}}),YP=(l,N,W,fe)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>{he.set(qe,!ft),q(Yd(qe.element,"*"),yt=>{qe.getSystem().getByDom(yt).each(Lt=>{Lt.hasConfigured(he)&&he.set(Lt,!ft)})})}}),Be={dom:dN(l.label),optComponents:[I.some({dom:{tag:"div",classes:[OP,Az]},components:X6(l.items,fe)})]};return uS({data:Jw({text:I.none(),...l}),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:I.from(fe.itemBehaviours).getOr([])},Be,N,W.providers)},XP=(l,N,W,fe,Se,Be,qe,ft=!0)=>{const yt=fn=>({setActive:Rn=>{us.set(fn,Rn)},isActive:()=>us.isOn(fn),isEnabled:()=>!he.isDisabled(fn),setEnabled:Rn=>he.set(fn,!Rn)}),Lt=o5({presets:W,textContent:N?l.text:I.none(),htmlContent:I.none(),ariaLabel:l.text,iconContent:l.icon,shortcutContent:N?l.shortcut:I.none(),checkMark:N?I.some(lN(qe.icons)):I.none(),caret:I.none(),value:l.value},qe,ft),Ht=l.text.filter(x(!N)).map(fn=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(fn)})));return ws(uS({data:Jw(l),enabled:l.enabled,getApi:yt,onAction:fn=>fe(l.value),onSetup:fn=>(fn.setActive(Se),v),triggersSubmenu:!1,itemBehaviours:[...Ht.toArray()]},Lt,Be,qe),{toggling:{toggleClass:D6,toggleOnExecute:!1,selected:l.active,exclusive:!0}})},GP=QC(p6(),VE()),mN=l=>({value:yN(l)}),KP=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,gN=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,vN=l=>KP.test(l)||gN.test(l),yN=l=>Sn(l,"#").toUpperCase(),bN=l=>vN(l)?I.some({value:yN(l)}):I.none(),xN=l=>({value:l.value.replace(KP,(W,fe,Se,Be)=>fe+fe+Se+Se+Be+Be)}),_N=l=>{const N=xN(l),W=gN.exec(N.value);return W===null?["FFFFFF","FF","FF","FF"]:W},JP=l=>{const N=l.toString(16);return(N.length===1?"0"+N:N).toUpperCase()},i5=l=>{const N=JP(l.red)+JP(l.green)+JP(l.blue);return mN(N)},wN=Math.min,ON=Math.max,G6=Math.round,aX=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,sX=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,eO=(l,N,W,fe)=>({red:l,green:N,blue:W,alpha:fe}),e7=l=>{const N=parseInt(l,10);return N.toString()===l&&N>=0&&N<=255},SN=l=>{let N,W,fe;const Se=(l.hue||0)%360;let Be=l.saturation/100,qe=l.value/100;if(Be=ON(0,wN(Be,1)),qe=ON(0,wN(qe,1)),Be===0)return N=W=fe=G6(255*qe),eO(N,W,fe,1);const ft=Se/60,yt=qe*Be,Lt=yt*(1-Math.abs(ft%2-1)),Ht=qe-yt;switch(Math.floor(ft)){case 0:N=yt,W=Lt,fe=0;break;case 1:N=Lt,W=yt,fe=0;break;case 2:N=0,W=yt,fe=Lt;break;case 3:N=0,W=Lt,fe=yt;break;case 4:N=Lt,W=0,fe=yt;break;case 5:N=yt,W=0,fe=Lt;break;default:N=W=fe=0}return N=G6(255*(N+Ht)),W=G6(255*(W+Ht)),fe=G6(255*(fe+Ht)),eO(N,W,fe,1)},a5=l=>{const N=_N(l),W=parseInt(N[1],16),fe=parseInt(N[2],16),Se=parseInt(N[3],16);return eO(W,fe,Se,1)},t7=(l,N,W,fe)=>{const Se=parseInt(l,10),Be=parseInt(N,10),qe=parseInt(W,10),ft=parseFloat(fe);return eO(Se,Be,qe,ft)},n7=l=>{const N=aX.exec(l);if(N!==null)return I.some(t7(N[1],N[2],N[3],"1"));const W=sX.exec(l);return W!==null?I.some(t7(W[1],W[2],W[3],W[4])):I.none()},kN=l=>`rgba(${l.red},${l.green},${l.blue},${l.alpha})`,TN=eO(255,0,0,1),lX=l=>{l.dispatch("SkinLoaded")},cX=(l,N)=>{l.dispatch("SkinLoadError",N)},K6=l=>{l.dispatch("ResizeEditor")},J6=(l,N)=>{l.dispatch("ResizeContent",N)},uX=(l,N)=>{l.dispatch("ScrollContent",N)},CN=(l,N)=>{l.dispatch("TextColorChange",N)},fX=(l,N)=>{l.dispatch("AfterProgressState",{state:N})},dX=(l,N)=>l.dispatch("ResolveName",{name:N.nodeName.toLowerCase(),target:N}),hX=(l,N)=>{l.dispatch("ToggleToolbarDrawer",{state:N})},pX=(l,N)=>{l.dispatch("StylesTextUpdate",N)},r7=(l,N)=>{l.dispatch("AlignTextUpdate",N)},AN=(l,N)=>{l.dispatch("FontSizeTextUpdate",N)},MN=(l,N)=>{l.dispatch("FontSizeInputTextUpdate",N)},mX=(l,N)=>{l.dispatch("BlocksTextUpdate",N)},o7=(l,N)=>{l.dispatch("FontFamilyTextUpdate",N)},gX=l=>{l.dispatch("ToggleSidebar")},vX=l=>{l.dispatch("ToggleView")},eA=(l,N)=>()=>{l(),N()},kp=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.selection.isEditable())}),yX=(l,N)=>W=>{const fe=Ol(),Se=()=>{W.setActive(l.formatter.match(N));const Be=l.formatter.formatChanged(N,W.setActive);fe.set(Be)};return l.initialized?Se():l.once("init",Se),()=>{l.off("init",Se),fe.clear()}},tA=(l,N)=>W=>{const fe=kp(l)(W),Se=yX(l,N)(W);return()=>{fe(),Se()}},tO=(l,N,W)=>fe=>{const Se=()=>W(fe),Be=()=>{W(fe),l.on(N,Se)};return l.initialized?Be():l.once("init",Be),()=>{l.off("init",Be),l.off(N,Se)}},EN=l=>N=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("mceToggleFormat",!1,N.format)})},tg=(l,N)=>()=>l.execCommand(N);var nO=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const s5={},i7=(l,N=10)=>{const W=nO.getItem(l),fe=n(W)?JSON.parse(W):[],Be=(Lt=>N-Lt.length<0?Lt.slice(0,N):Lt)(fe),qe=Lt=>{U(Be,Lt).each(ft),Be.unshift(Lt),Be.length>N&&Be.pop(),nO.setItem(l,JSON.stringify(Be))},ft=Lt=>{Be.splice(Lt,1)};return{add:qe,state:()=>Be.slice(0)}},nA=l=>Ge(s5,l).getOrThunk(()=>{const N=`tinymce-custom-colors-${l}`,W=nO.getItem(N);if(m(W)){const Se=nO.getItem("tinymce-custom-colors");nO.setItem(N,a(Se)?Se:"[]")}const fe=i7(N,10);return s5[l]=fe,fe}),PN=l=>re(nA(l).state(),N=>({type:"choiceitem",text:N,icon:"checkmark",value:N})),RN=(l,N)=>{nA(l).add(N)},l5=(l,N,W)=>({hue:l,saturation:N,value:W}),c5=l=>{let N=0,W=0,fe=0;const Se=l.red/255,Be=l.green/255,qe=l.blue/255,ft=Math.min(Se,Math.min(Be,qe)),yt=Math.max(Se,Math.max(Be,qe));if(ft===yt)return fe=ft,l5(0,0,fe*100);const Lt=Se===ft?Be-qe:qe===ft?Se-Be:qe-Se;return N=Se===ft?3:qe===ft?1:5,N=60*(N-Lt/(yt-ft)),W=(yt-ft)/yt,fe=yt,l5(Math.round(N),Math.round(W*100),Math.round(fe*100))},a7=l=>c5(a5(l)),u5=l=>i5(SN(l)),LN=l=>bN(l).orThunk(()=>n7(l).map(i5)).getOrThunk(()=>{const N=document.createElement("canvas");N.height=1,N.width=1;const W=N.getContext("2d");W.clearRect(0,0,N.width,N.height),W.fillStyle="#FFFFFF",W.fillStyle=l,W.fillRect(0,0,1,1);const fe=W.getImageData(0,0,1,1).data,Se=fe[0],Be=fe[1],qe=fe[2],ft=fe[3];return i5(eO(Se,Be,qe,ft))}),s7="forecolor",l7="hilitecolor",bX=5,xX=l=>{const N=[];for(let W=0;WN=>N.options.get(l),c7="#000000",_X=l=>{const N=l.options.register,W=Se=>p(Se,n)?{value:xX(Se),valid:!0}:{valid:!1,message:"Must be an array of strings."},fe=Se=>h(Se)&&Se>0?{value:Se,valid:!0}:{valid:!1,message:"Must be a positive number."};N("color_map",{processor:W,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),N("color_map_background",{processor:W}),N("color_map_foreground",{processor:W}),N("color_cols",{processor:fe,default:u7(l)}),N("color_cols_foreground",{processor:fe,default:IN(l,s7)}),N("color_cols_background",{processor:fe,default:IN(l,l7)}),N("custom_colors",{processor:"boolean",default:!0}),N("color_default_foreground",{processor:"string",default:c7}),N("color_default_background",{processor:"string",default:c7})},rA=(l,N)=>N===s7&&l.options.isSet("color_map_foreground")?By("color_map_foreground")(l):N===l7&&l.options.isSet("color_map_background")?By("color_map_background")(l):By("color_map")(l),u7=(l,N="default")=>Math.max(bX,Math.ceil(Math.sqrt(rA(l,N).length))),IN=(l,N)=>{const W=By("color_cols")(l),fe=u7(l,N);return W===u7(l)?fe:W},DN=(l,N="default")=>Math.round((()=>N===s7?By("color_cols_foreground")(l):N===l7?By("color_cols_background")(l):By("color_cols")(l))()),BN=By("custom_colors"),wX=By("color_default_foreground"),zN=By("color_default_background"),OX="rgba(0, 0, 0, 0)",SX=l=>n7(l).exists(N=>N.alpha!==0),zy=l=>Nl(l,N=>{if(lr(N)){const W=Di(N,"background-color");return Ot(SX(W),W)}else return I.none()}).getOr(OX),NN=(l,N)=>{const W=Nt.fromDom(l.selection.getStart()),fe=N==="hilitecolor"?zy(W):Di(W,"color");return n7(fe).map(Se=>"#"+i5(Se).value)},kX=(l,N,W)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.apply(N,{value:W}),l.nodeChanged()})},f7=(l,N)=>{l.undoManager.transact(()=>{l.focus(),l.formatter.remove(N,{value:null},void 0,!0),l.nodeChanged()})},Xd=l=>{l.addCommand("mceApplyTextcolor",(N,W)=>{kX(l,N,W)}),l.addCommand("mceRemoveTextcolor",N=>{f7(l,N)})},FN=l=>{const N="choiceitem",W={type:N,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return l?[W,{type:N,text:"Custom color",icon:"color-picker",value:"custom"}]:[W]},d7=(l,N,W,fe)=>{W==="custom"?HN(l)(Be=>{Be.each(qe=>{RN(N,qe),l.execCommand("mceApplyTextcolor",N,qe),fe(qe)})},NN(l,N).getOr(c7)):W==="remove"?(fe(""),l.execCommand("mceRemoveTextcolor",N)):(fe(W),l.execCommand("mceApplyTextcolor",N,W))},h7=(l,N,W)=>l.concat(PN(N).concat(FN(W))),$N=(l,N,W)=>fe=>{fe(h7(l,N,W))},p7=(l,N,W)=>{const fe=N==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";l.setIconFill(fe,W)},VN=(l,N)=>{l.setTooltip(N)},UN=(l,N)=>W=>{const fe=NN(l,N);return St(fe,W.toUpperCase())},m7=(l,N,W)=>{if(at(W))return N==="forecolor"?"Text color":"Background color";const fe=N==="forecolor"?"Text color {0}":"Background color {0}",Se=h7(rA(l,N),N,!1),Be=ce(Se,qe=>qe.value===W).getOr({text:""}).text;return l.translate([fe,l.translate(Be)])},jN=(l,N,W,fe)=>{l.ui.registry.addSplitButton(N,{tooltip:m7(l,W,fe.get()),presets:"color",icon:N==="forecolor"?"text-color":"highlight-bg-color",select:UN(l,W),columns:DN(l,W),fetch:$N(rA(l,W),W,BN(l)),onAction:Se=>{d7(l,W,fe.get(),v)},onItemAction:(Se,Be)=>{d7(l,W,Be,qe=>{fe.set(qe),CN(l,{name:N,color:qe})})},onSetup:Se=>{p7(Se,N,fe.get());const Be=qe=>{qe.name===N&&(p7(Se,qe.name,qe.color),VN(Se,m7(l,W,qe.color)))};return l.on("TextColorChange",Be),eA(kp(l)(Se),()=>{l.off("TextColorChange",Be)})}})},QN=(l,N,W,fe,Se)=>{l.ui.registry.addNestedMenuItem(N,{text:fe,icon:N==="forecolor"?"text-color":"highlight-bg-color",onSetup:Be=>(VN(Be,m7(l,W,Se.get())),p7(Be,N,Se.get()),kp(l)(Be)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:UN(l,W),initData:{storageKey:W},onAction:Be=>{d7(l,W,Be.value,qe=>{Se.set(qe),CN(l,{name:N,color:qe})})}}]})},HN=l=>(N,W)=>{let fe=!1;const Se=ft=>{const Lt=ft.getData().colorpicker;fe?(N(I.from(Lt)),ft.close()):l.windowManager.alert(l.translate(["Invalid hex color code: {0}",Lt]))},Be=(ft,yt)=>{yt.name==="hex-valid"&&(fe=yt.value)},qe={colorpicker:W};l.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:qe,onAction:Be,onSubmit:Se,onClose:v,onCancel:()=>{N(I.none())}})},TX=l=>{Xd(l);const N=wX(l),W=zN(l),fe=wi(N),Se=wi(W);jN(l,"forecolor","forecolor",fe),jN(l,"backcolor","hilitecolor",Se),QN(l,"forecolor","forecolor","Text color",fe),QN(l,"backcolor","hilitecolor","Background color",Se)},g7=(l,N,W,fe,Se,Be,qe,ft)=>{const yt=V6(N),Ht=CX(N,W,fe,Se!=="color"?"normal":"color",Be,qe,ft);return RP(l,yt,Ht,fe,{menuType:Se})},CX=(l,N,W,fe,Se,Be,qe)=>zt(re(l,ft=>ft.type==="choiceitem"?WY(ft).fold(ax,yt=>I.some(XP(yt,W===1,fe,N,Be(yt.value),Se,qe,V6(l)))):I.none())),oA=(l,N)=>{const W=qw(N);return l===1?{mode:"menu",moveOnTab:!0}:l==="auto"?{mode:"grid",selector:"."+W.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(N==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:Se=>N==="color"?qa(Se.element,"[aria-checked=true]"):I.none()}},AX=(l,N)=>l===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:l==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:N==="color"?".tox-swatches__row":".tox-collection__group",cell:N==="color"?`.${I6}`:`.${L6}`}},MX=(l,N)=>{const W=EX(l,N),fe=N.colorinput.getColorCols(l.initData.storageKey),Se="color",qe={...g7(Li("menu-value"),W,ft=>{l.onAction({value:ft})},fe,Se,A1.CLOSE_ON_EXECUTE,l.select.getOr(D),N.shared.providers),markers:qw(Se),movement:oA(fe,Se),showMenuRole:!1};return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget(T0.sketch(qe))]}},EX=(l,N)=>{const W=l.initData.allowCustomColors&&N.colorinput.hasCustomColors();return l.initData.colors.fold(()=>h7(N.colorinput.getColors(l.initData.storageKey),l.initData.storageKey,W),fe=>fe.concat(FN(W)))},ZN=Li("cell-over"),qN=Li("cell-execute"),PX=l=>(N,W)=>l.shared.providers.translate(["{0} columns, {1} rows",W,N]),RX=(l,N,W)=>{const fe=qe=>sa(qe,ZN,{row:l,col:N}),Se=qe=>sa(qe,qN,{row:l,col:N}),Be=(qe,ft)=>{ft.stop(),Se(qe)};return ka({dom:{tag:"div",attributes:{role:"button","aria-label":W}},behaviours:ei([Ka("insert-table-picker-cell",[Lo(wu(),Ra.focus),Lo(Bp(),Se),Lo(H1(),Be),Lo(Lm(),Be)]),us.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Ra.config({onFocus:fe})])})},LX=(l,N,W)=>{const fe=[];for(let Se=0;Se{for(let Be=0;Beve(l,N=>re(N,ea)),v7=(l,N)=>Po(`${N}x${l}`),WN={inserttable:(l,N)=>{const Se=PX(N),Be=LX(Se,10,10),qe=v7(0,0),ft=ml({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[qe],behaviours:ei([Fa.config({})])});return{type:"widget",data:{value:Li("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[GP.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:DX(Be).concat(ft.asSpec()),behaviours:ei([Ka("insert-table-picker",[wc(yt=>{Fa.set(ft.get(yt),[qe])}),mb(ZN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;IX(Be,fn,Rn,10,10),Fa.set(ft.get(yt),[v7(fn+1,Rn+1)])}),mb(qN,(yt,Lt,Ht)=>{const{row:fn,col:Rn}=Ht.event;Za(yt,Z1()),l.onAction({numRows:fn+1,numColumns:Rn+1})})]),ha.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:MX},BX=(l,N)=>Ge(WN,l.fancytype).map(W=>W(l,N)),zX=(l,N,W,fe=!0,Se=!1)=>{const Be=Se?uN(W.icons):cN(W.icons),qe=yt=>({isEnabled:()=>!he.isDisabled(yt),setEnabled:Lt=>he.set(yt,!Lt),setIconFill:(Lt,Ht)=>{qa(yt.element,`svg path[class="${Lt}"], rect[class="${Lt}"]`).each(fn=>{Cr(fn,"fill",Ht)})},setTooltip:Lt=>{const Ht=W.translate(Lt);Cr(yt.element,"aria-label",Ht)}}),ft=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.some(Be),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:qe,enabled:l.enabled,onAction:v,onSetup:l.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ft,N,W)},NX=(l,N,W,fe=!0)=>{const Se=qe=>({isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({presets:"normal",iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,caret:I.none(),checkMark:I.none(),shortcutContent:l.shortcut},W,fe);return uS({data:Jw(l),getApi:Se,enabled:l.enabled,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W)},YN=l=>({type:"separator",dom:{tag:"div",classes:[L6,Cz]},components:l.text.map(Po).toArray()}),FX=(l,N,W,fe=!0)=>{const Se=qe=>({setActive:ft=>{us.set(qe,ft)},isActive:()=>us.isOn(qe),isEnabled:()=>!he.isDisabled(qe),setEnabled:ft=>he.set(qe,!ft)}),Be=o5({iconContent:l.icon,textContent:l.text,htmlContent:I.none(),ariaLabel:l.text,checkMark:I.some(lN(W.icons)),caret:I.none(),shortcutContent:l.shortcut,presets:"normal",meta:l.meta},W,fe);return ws(uS({data:Jw(l),enabled:l.enabled,getApi:Se,onAction:l.onAction,onSetup:l.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Be,N,W),{toggling:{toggleClass:D6,toggleOnExecute:!1,selected:l.active},role:l.role.getOrUndefined()})},$X=pN,XN=YN,VX=NX,GN=zX,UX=FX,KN=BX,jX=YP;var HX=Object.freeze({__proto__:null,getCoupled:(l,N,W,fe)=>W.getOrCreate(l,N,fe),getExistingCoupled:(l,N,W,fe)=>W.getExisting(l,N,fe)}),ZX=[In("others",dt(aa.value,Ut()))],qX=Object.freeze({__proto__:null,init:()=>{const l={},N=(Be,qe)=>{if(ke(Be.others).length===0)throw new Error("Cannot find any known coupled components");return Ge(l,qe)},W=(Be,qe,ft)=>N(qe,ft).getOrThunk(()=>{const Lt=Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft)(Be),Ht=Be.getSystem().build(Lt);return l[ft]=Ht,Ht}),fe=(Be,qe,ft)=>N(qe,ft).orThunk(()=>(Ge(qe.others,ft).getOrDie("No information found for coupled component: "+ft),I.none())),Se=x({});return Hd({readState:Se,getExisting:fe,getOrCreate:W})}});const Ku=id({fields:ZX,name:"coupling",apis:HX,state:qX}),y7=l=>{let N=I.none(),W=[];const fe=Lt=>y7(Ht=>{Se(fn=>{Ht(Lt(fn))})}),Se=Lt=>{qe()?yt(Lt):W.push(Lt)},Be=Lt=>{qe()||(N=I.some(Lt),ft(W),W=[])},qe=()=>N.isSome(),ft=Lt=>{q(Lt,yt)},yt=Lt=>{N.each(Ht=>{setTimeout(()=>{Lt(Ht)},0)})};return l(Be),{get:Se,map:fe,isReady:qe}},WX={nu:y7,pure:l=>y7(N=>{N(l)})},YX=l=>{setTimeout(()=>{throw l},0)},dS=l=>{const N=yt=>{l().then(yt,YX)};return{map:yt=>dS(()=>l().then(yt)),bind:yt=>dS(()=>l().then(Lt=>yt(Lt).toPromise())),anonBind:yt=>dS(()=>l().then(()=>yt.toPromise())),toLazy:()=>WX.nu(N),toCached:()=>{let yt=null;return dS(()=>(yt===null&&(yt=l()),yt))},toPromise:l,get:N}},Ih={nu:l=>dS(()=>new Promise(l)),pure:l=>dS(()=>Promise.resolve(l))},JN=x("sink"),eF=x(mm({name:JN(),overrides:x({dom:{tag:"div"},behaviours:ei([Rh.config({useFixed:k})]),events:Rl([od(nm()),od(Nc()),od(H1())])})})),tF=(l,N)=>{const W=l.getHotspot(N).getOr(N),fe="hotspot",Se=l.getAnchorOverrides();return l.layouts.fold(()=>({type:fe,hotspot:W,overrides:Se}),Be=>({type:fe,hotspot:W,overrides:Se,layouts:Be}))},XX=(l,N,W)=>{const fe=l.fetch;return fe(W).map(N)},GX=(l,N,W,fe,Se,Be,qe)=>{const ft=XX(l,N,fe),yt=x7(fe,l);return ft.map(Lt=>Lt.bind(Ht=>{const fn=Ht.menus[Ht.primary];return I.from(fn).each(Rn=>{l.listRole.each(Bn=>{Rn.role=Bn})}),I.from(B2.sketch({...Be.menu(),uid:vy(""),data:Ht,highlightOnOpen:qe,onOpenMenu:(Rn,Bn)=>{const er=yt().getOrDie();Rh.position(er,Bn,{anchor:W}),Ys.decloak(Se)},onOpenSubmenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Rh.position(cr,er,{anchor:{type:"submenu",item:Bn}}),Ys.decloak(Se)},onRepositionMenu:(Rn,Bn,er)=>{const cr=yt().getOrDie();Rh.position(cr,Bn,{anchor:W}),q(er,Xr=>{Rh.position(cr,Xr.triggeredMenu,{anchor:{type:"submenu",item:Xr.triggeringItem}})})},onEscape:()=>(Ra.focus(fe),Ys.close(Se),I.some(!0))}))}))},hS=(l,N,W,fe,Se,Be,qe)=>{const ft=tF(l,W);return GX(l,N,ft,W,fe,Se,qe).map(Lt=>(Lt.fold(()=>{Ys.isOpen(fe)&&Ys.close(fe)},Ht=>{Ys.cloak(fe),Ys.open(fe,Ht),Be(fe)}),fe))},KX=(l,N,W,fe,Se,Be,qe)=>(Ys.close(fe),Ih.pure(fe)),b7=(l,N,W,fe,Se,Be)=>{const qe=Ku.getCoupled(W,"sandbox");return(Ys.isOpen(qe)?KX:hS)(l,N,W,qe,fe,Se,Be)},JX=(l,N,W)=>{const fe=Xs.getCurrent(N).getOr(N),Se=_s(l.element);W?xr(fe.element,"min-width",Se+"px"):zf(fe.element,Se)},x7=(l,N)=>l.getSystem().getByUid(N.uid+"-"+JN()).map(W=>()=>aa.value(W)).getOrThunk(()=>N.lazySink.fold(()=>()=>aa.error(new Error("No internal sink is specified, nor could an external sink be found")),W=>()=>W(l))),_7=l=>{Ys.getState(l).each(N=>{B2.repositionMenus(N)})},w7=(l,N,W)=>{const fe=ld(),Se=(ft,yt)=>{const Lt=tF(l,N);fe.link(N.element),l.matchWidth&&JX(Lt.hotspot,yt,l.useMinWidth),l.onOpen(Lt,ft,yt),W!==void 0&&W.onOpen!==void 0&&W.onOpen(ft,yt)},Be=(ft,yt)=>{fe.unlink(N.element),qe().getOr(yt).element.dom.dispatchEvent(new window.FocusEvent("focusout")),W!==void 0&&W.onClose!==void 0&&W.onClose(ft,yt)},qe=x7(N,l);return{dom:{tag:"div",classes:l.sandboxClasses,attributes:{id:fe.id}},behaviours:Km.augment(l.sandboxBehaviours,[Ei.config({store:{mode:"memory",initialValue:N}}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(ft,yt,Lt)=>Cf(yt,Lt)||Cf(N,Lt),getAttachPoint:()=>qe().getOrDie()}),Xs.config({find:ft=>Ys.getState(ft).bind(yt=>Xs.getCurrent(yt))}),Ad.config({channels:{...Iy({isExtraPart:D}),...ak({doReposition:_7})}})])}},nF=l=>{const N=Ku.getCoupled(l,"sandbox");_7(N)},iA=()=>[Ar("sandboxClasses",[]),Km.field("sandboxBehaviours",[Xs,Ad,Ys,Ei])],eG=x([pn("dom"),pn("fetch"),Ss("onOpen"),kd("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Pd("dropdownBehaviours",[us,Ku,ha,Ra]),pn("toggleClass"),Ar("eventOrder",{}),Yo("lazySink"),Ar("matchWidth",!1),Ar("useMinWidth",!1),Yo("role"),Yo("listRole")].concat(iA())),tG=x([Jm({schema:[Um(),Ar("fakeFocus",!1)],name:"menu",defaults:l=>({onExecute:l.onExecute})}),eF()]),nG=(l,N,W,fe)=>{const Se=Ht=>Ge(l.dom,"attributes").bind(fn=>Ge(fn,Ht)),Be=Ht=>{Ys.getState(Ht).each(fn=>{B2.highlightPrimary(fn)})},qe=(Ht,fn,Rn)=>b7(l,R,Ht,fe,fn,Rn),ft=Ht=>{qe(Ht,Be,Gu.HighlightMenuAndItem).get(v)},yt={expand:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightNone).get(v)},open:Ht=>{us.isOn(Ht)||qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},refetch:Ht=>Ku.getExistingCoupled(Ht,"sandbox").fold(()=>qe(Ht,v,Gu.HighlightMenuAndItem).map(v),Rn=>hS(l,R,Ht,Rn,fe,v,Gu.HighlightMenuAndItem).map(v)),isOpen:us.isOn,close:Ht=>{us.isOn(Ht)&&qe(Ht,v,Gu.HighlightMenuAndItem).get(v)},repositionMenus:Ht=>{us.isOn(Ht)&&nF(Ht)}},Lt=(Ht,fn)=>(Bm(Ht),I.some(!0));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.dropdownBehaviours,[us.config({toggleClass:l.toggleClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:Ht=>w7(l,Ht,{onOpen:()=>us.on(Ht),onClose:()=>us.off(Ht)})}}),ha.config({mode:"special",onSpace:Lt,onEnter:Lt,onDown:(Ht,fn)=>{if(L0.isOpen(Ht)){const Rn=Ku.getCoupled(Ht,"sandbox");Be(Rn)}else L0.open(Ht);return I.some(!0)},onEscape:(Ht,fn)=>L0.isOpen(Ht)?(L0.close(Ht),I.some(!0)):I.none()}),Ra.config({})]),events:d6(I.some(ft)),eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},apis:yt,domModification:{attributes:{"aria-haspopup":l.listRole.getOr("true"),...l.role.fold(()=>({}),Ht=>({role:Ht})),...l.dom.tag==="button"?{type:Se("type").getOr("button")}:{}}}}},L0=Zh({name:"Dropdown",configFields:eG(),partFields:tG(),factory:nG,apis:{open:(l,N)=>l.open(N),refetch:(l,N)=>l.refetch(N),expand:(l,N)=>l.expand(N),close:(l,N)=>l.close(N),isOpen:(l,N)=>l.isOpen(N),repositionMenus:(l,N)=>l.repositionMenus(N)}}),rG=l=>{switch(l.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:l}}},oG=l=>{const N=Ei.getValue(l),W=Gk(l).map(Nz);L0.refetch(N).get(()=>{const fe=Ku.getCoupled(N,"sandbox");W.each(Se=>Gk(fe).each(Be=>AY(Be,Se)))})},aA=(l,N)=>{iG(l).each(W=>{Bx(l,W.element,N.event.eventType,N.event.interactionEvent)})},iG=l=>Ys.getState(l).bind(ta.getHighlighted).bind(ta.getHighlighted),sA=l=>rp(l.element,Yw)?I.some(l.element):qa(l.element,"."+Yw),rF=(l,N,W)=>{zz(l).each(fe=>{MY(fe,W),sA(N).each(Be=>{Eo(Be,"id").each(qe=>Cr(fe.element,"aria-controls",qe))})}),Cr(W.element,"aria-selected","true")},aG=(l,N,W)=>{Cr(W.element,"aria-selected","false")},sG=l=>{zz(l).each(N=>Ra.focus(N))},lG=l=>Ku.getExistingCoupled(l,"sandbox").bind(Gk).map(Nz).map(W=>W.fetchPattern).getOr("");var O7;(function(l){l[l.ContentFocus=0]="ContentFocus",l[l.UiFocus=1]="UiFocus"})(O7||(O7={}));const lA=(l,N,W,fe,Se)=>{const Be=W.shared.providers,qe=ft=>Se?{...ft,shortcut:I.none(),icon:ft.text.isSome()?I.none():ft.icon}:ft;switch(l.type){case"menuitem":return XY(l).fold(ax,ft=>I.some(VX(qe(ft),N,Be,fe)));case"nestedmenuitem":return KY(l).fold(ax,ft=>I.some(GN(qe(ft),N,Be,fe,Se)));case"togglemenuitem":return tN(l).fold(ax,ft=>I.some(UX(qe(ft),N,Be,fe)));case"separator":return Wz(l).fold(ax,ft=>I.some(XN(ft)));case"fancymenuitem":return q6(l).fold(ax,ft=>KN(ft,W));default:return console.error("Unknown item in general menu",l),I.none()}},pS=(l,N,W,fe,Se,Be,qe)=>{const ft=fe===1,yt=!ft||V6(l);return zt(re(l,Lt=>{switch(Lt.type){case"separator":return VY(Lt).fold(ax,Ht=>I.some(XN(Ht)));case"cardmenuitem":return qY(Lt).fold(ax,Ht=>I.some(jX({...Ht,onAction:fn=>{Ht.onAction(fn),W(Ht.value,Ht.meta)}},Se,Be,{itemBehaviours:qP(Ht.meta,Be,I.none()),cardText:{matchText:N,highlightOn:qe}})));case"autocompleteitem":default:return UY(Lt).fold(ax,Ht=>I.some($X(Ht,N,ft,"normal",W,Se,Be,yt)))}}))},S7=(l,N,W,fe,Se,Be)=>{const qe=V6(N),ft=zt(re(N,Ht=>{const fn=Bn=>Se?!ht(Bn,"text"):qe,Rn=Bn=>lA(Bn,W,fe,fn(Bn),Se);return Ht.type==="nestedmenuitem"&&Ht.getSubmenuItems().length<=0?Rn({...Ht,enabled:!1}):Rn(Ht)})),yt=rG(Be);return(Se?RY:RP)(l,qe,ft,1,yt)},cA=l=>B2.singleData(l.value,l),cG=(l,N,W,fe)=>{const Se=oA(N,fe),Be=qw(fe);return{data:cA({...l,movement:Se,menuBehaviours:lS.unnamedEvents(N!=="auto"?[]:[wc((qe,ft)=>{QP(qe,4,Be.item).each(({numColumns:yt,numRows:Lt})=>{ha.setGridSize(qe,Lt,yt)})})])}),menu:{markers:qw(fe),fakeFocus:W===O7.ContentFocus}}},uG=l=>vw.create(Nt.fromDom(l.startContainer),l.startOffset,Nt.fromDom(l.endContainer),l.endOffset),fG={register:(l,N)=>{const W=Li("autocompleter"),fe=wi(!1),Se=wi(!1),Be=ds(),qe=ka(Xc.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:W}},components:[],fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissAutocompleter",[Lo(J0(),()=>fn()),Lo(e1(),(br,Fr)=>{Eo(Fr.event.target,"id").each(jr=>Cr(Nt.fromDom(l.getBody()),"aria-activedescendant",jr))})])]),lazySink:N.getSink})),ft=()=>Xc.isOpen(qe),yt=Se.get,Lt=()=>{if(ft()){Xc.hide(qe),l.dom.remove(W,!1);const br=Nt.fromDom(l.getBody());Eo(br,"aria-owns").filter(Fr=>Fr===W).each(()=>{Qt(br,"aria-owns"),Qt(br,"aria-activedescendant")})}},Ht=()=>Xc.getContent(qe).bind(br=>De(br.components(),0)),fn=()=>l.execCommand("mceAutocompleterClose"),Rn=br=>{const Fr=Oe(br,jr=>I.from(jr.columns)).getOr(1);return ve(br,jr=>{const Ro=jr.items;return pS(Ro,jr.matchText,(ko,_i)=>{const Pi={hide:()=>fn(),reload:Ao=>{Lt(),l.execCommand("mceAutocompleterReload",!1,{fetchOptions:Ao})}};l.execCommand("mceAutocompleterRefreshActiveRange"),Be.get().each(Ao=>{fe.set(!0),jr.onAction(Pi,Ao,ko,_i),fe.set(!1)})},Fr,A1.BUBBLE_TO_SANDBOX,N,jr.highlightOn)})},Bn=(br,Fr)=>{const jr=Oe(br,Ro=>I.from(Ro.columns)).getOr(1);Xc.showMenuAt(qe,{anchor:{type:"selection",getSelection:()=>Be.get().map(uG),root:Nt.fromDom(l.getBody())}},cG(RP("autocompleter-value",!0,Fr,jr,{menuType:"normal"}),jr,O7.ContentFocus,"normal")),Ht().each(ta.highlightFirst)},er=br=>{const Fr=Rn(br);Fr.length>0?(Bn(br,Fr),Cr(Nt.fromDom(l.getBody()),"aria-owns",W),l.inline||cr()):Lt()},cr=()=>{l.dom.get(W)&&l.dom.remove(W,!1);const br=l.getDoc().documentElement,Fr=l.selection.getNode(),jr=xb(qe.element);Oo(jr,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${Fr.offsetTop}px`,left:`${Fr.offsetLeft}px`}),l.dom.add(br,jr.dom),qa(jr,'[role="menu"]').each(Ro=>{zi(Ro,"position"),zi(Ro,"max-height")})};l.on("AutocompleterStart",({lookupData:br})=>{Se.set(!0),fe.set(!1),er(br)}),l.on("AutocompleterUpdate",({lookupData:br})=>er(br)),l.on("AutocompleterUpdateActiveRange",({range:br})=>Be.set(br)),l.on("AutocompleterEnd",()=>{Lt(),Se.set(!1),fe.set(!1),Be.clear()});const Xr={cancelIfNecessary:fn,isMenuOpen:ft,isActive:yt,isProcessingAction:fe.get,getMenu:Ht};Tz.setup(Xr,l)}},f5=(l,N,W)=>Sc(l,N,W).isSome(),oF=(l,N)=>{let W=null;return{cancel:()=>{W!==null&&(clearTimeout(W),W=null)},schedule:(...Be)=>{W=setTimeout(()=>{l.apply(null,Be),W=null},N)}}},iF=5,dG=400,aF=l=>{const N=l.raw;return N.touches===void 0||N.touches.length!==1?I.none():I.some(N.touches[0])},hG=(l,N)=>{const W=Math.abs(l.clientX-N.x),fe=Math.abs(l.clientY-N.y);return W>iF||fe>iF},pG=l=>{const N=ds(),W=wi(!1),fe=oF(Lt=>{l.triggerEvent(Qd(),Lt),W.set(!0)},dG),Se=Lt=>(aF(Lt).each(Ht=>{fe.cancel();const fn={x:Ht.clientX,y:Ht.clientY,target:Lt.target};fe.schedule(Lt),W.set(!1),N.set(fn)}),I.none()),Be=Lt=>(fe.cancel(),aF(Lt).each(Ht=>{N.on(fn=>{hG(Ht,fn)&&N.clear()})}),I.none()),qe=Lt=>{fe.cancel();const Ht=fn=>_o(fn.target,Lt.target);return N.get().filter(Ht).map(fn=>W.get()?(Lt.prevent(),!1):l.triggerEvent(Lm(),Lt))},ft=ua([{key:Uh(),value:Se},{key:ss(),value:Be},{key:Gl(),value:qe}]);return{fireIfReady:(Lt,Ht)=>Ge(ft,Ht).bind(fn=>fn(Lt))}},sF=l=>l.raw.which===nu[0]&&!X(["input","textarea"],vr(l.target))&&!f5(l.target,'[contenteditable="true"]'),mS=(l,N)=>{const W={stopBackspace:!0,...N},fe=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],Se=pG(W),Be=re(fe.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),Bn=>ud(l,Bn,er=>{Se.fireIfReady(er,Bn).each(Xr=>{Xr&&er.kill()}),W.triggerEvent(Bn,er)&&er.kill()})),qe=ds(),ft=ud(l,"paste",Bn=>{Se.fireIfReady(Bn,"paste").each(cr=>{cr&&Bn.kill()}),W.triggerEvent("paste",Bn)&&Bn.kill(),qe.set(setTimeout(()=>{W.triggerEvent(l0(),Bn)},0))}),yt=ud(l,"keydown",Bn=>{W.triggerEvent("keydown",Bn)?Bn.kill():W.stopBackspace&&sF(Bn)&&Bn.prevent()}),Lt=ud(l,"focusin",Bn=>{W.triggerEvent("focusin",Bn)&&Bn.kill()}),Ht=ds(),fn=ud(l,"focusout",Bn=>{W.triggerEvent("focusout",Bn)&&Bn.kill(),Ht.set(setTimeout(()=>{W.triggerEvent(kf(),Bn)},0))});return{unbind:()=>{q(Be,Bn=>{Bn.unbind()}),yt.unbind(),Lt.unbind(),fn.unbind(),ft.unbind(),qe.on(clearTimeout),Ht.on(clearTimeout)}}},Q2=(l,N)=>{const W=Ge(l,"target").getOr(N);return wi(W)},mG=(l,N)=>{const W=wi(!1),fe=wi(!1);return{stop:()=>{W.set(!0)},cut:()=>{fe.set(!0)},isStopped:W.get,isCut:fe.get,event:l,setSource:N.set,getSource:N.get}},lF=l=>{const N=wi(!1);return{stop:()=>{N.set(!0)},cut:v,isStopped:N.get,isCut:D,event:l,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},gS=Nn.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),d5=(l,N,W,fe,Se,Be)=>{const qe=l(N,fe),ft=mG(W,Se);return qe.fold(()=>(Be.logEventNoHandlers(N,fe),gS.complete()),yt=>{const Lt=yt.descHandler;return pv(Lt)(ft),ft.isStopped()?(Be.logEventStopped(N,yt.element,Lt.purpose),gS.stopped()):ft.isCut()?(Be.logEventCut(N,yt.element,Lt.purpose),gS.complete()):Dr(yt.element).fold(()=>(Be.logNoParent(N,yt.element,Lt.purpose),gS.complete()),fn=>(Be.logEventResponse(N,yt.element,Lt.purpose),gS.resume(fn)))})},cF=(l,N,W,fe,Se,Be)=>d5(l,N,W,fe,Se,Be).fold(k,qe=>cF(l,N,W,qe,Se,Be),D),h5=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return d5(l,N,W,fe,Be,Se)},p5=(l,N,W)=>{const fe=lF(N);return q(l,Se=>{const Be=Se.descHandler;pv(Be)(fe)}),fe.isStopped()},gG=(l,N,W,fe)=>uF(l,N,W,W.target,fe),uF=(l,N,W,fe,Se)=>{const Be=Q2(W,fe);return cF(l,N,W,fe,Be,Se)},vG=(l,N)=>({element:l,descHandler:N}),yG=(l,N)=>({id:l,descHandler:N}),bG=()=>{const l={},N=(qe,ft,yt)=>{We(yt,(Lt,Ht)=>{const fn=l[Ht]!==void 0?l[Ht]:{};fn[ft]=cm(Lt,qe),l[Ht]=fn})},W=(qe,ft)=>sm(ft).bind(yt=>Ge(qe,yt)).map(yt=>vG(ft,yt));return{registerId:N,unregisterId:qe=>{We(l,(ft,yt)=>{ht(ft,qe)&&delete ft[qe]})},filterByType:qe=>Ge(l,qe).map(ft=>je(ft,(yt,Lt)=>yG(Lt,yt))).getOr([]),find:(qe,ft,yt)=>Ge(l,ft).bind(Lt=>Nl(yt,Ht=>W(Lt,Ht),qe))}},xG=()=>{const l=bG(),N={},W=Lt=>{const Ht=Lt.element;return sm(Ht).getOrThunk(()=>JO("uid-",Lt.element))},fe=(Lt,Ht)=>{const fn=N[Ht];if(fn===Lt)Be(Lt);else throw new Error('The tagId "'+Ht+'" is already used by: '+a1(fn.element)+` Cannot use it for: `+a1(Lt.element)+` -The conflicting element is`+(Gn(fn.element)?" ":" not ")+"already in the DOM")},Se=Lt=>{const Ht=W(Lt);pt(N,Ht)&&fe(Lt,Ht);const fn=[Lt];l.registerId(fn,Ht,Lt.events),N[Ht]=Lt},Be=Lt=>{sm(Lt.element).each(Ht=>{delete N[Ht],l.unregisterId(Ht)})};return{find:(Lt,Ht,fn)=>l.find(Lt,Ht,fn),filter:Lt=>l.filterByType(Lt),register:Se,unregister:Be,getById:Lt=>Ge(N,Lt)}},Iv=Qp({name:"Container",factory:l=>{const{attributes:N,...W}=l.dom;return{uid:l.uid,dom:{tag:"div",attributes:{role:"presentation",...N},...W},components:l.components,behaviours:Aw(l.containerBehaviours),events:l.events,domModification:l.domModification,eventOrder:l.eventOrder}},configFields:[Ar("components",[]),Pd("containerBehaviours",[]),Ar("events",{}),Ar("domModification",{}),Ar("eventOrder",{})]}),m5=l=>{const N=br=>Dr(l.element).fold(k,Fr=>_o(br,Fr)),W=bG(),fe=(br,Fr)=>W.find(N,br,Fr),Se=mS(l.element,{triggerEvent:(br,Fr)=>am(br,Fr.target,jr=>mG(fe,br,Fr,jr))}),Be={debugInfo:x("real"),triggerEvent:(br,Fr,jr)=>{am(br,Fr,Ro=>cF(fe,br,jr,Fr,Ro))},triggerFocus:(br,Fr)=>{sm(br).fold(()=>{Md(br)},jr=>{am(wh(),br,Ro=>(h5(fe,wh(),{originator:Fr,kill:v,prevent:v,target:br},br,Ro),!1))})},triggerEscape:(br,Fr)=>{Be.triggerEvent("keydown",br.element,Fr.event)},getByUid:br=>cr(br),getByDom:br=>Xr(br),build:ka,buildOrPatch:ra,addToGui:br=>{yt(br)},removeFromGui:br=>{Lt(br)},addToWorld:br=>{qe(br)},removeFromWorld:br=>{ft(br)},broadcast:br=>{Rn(br)},broadcastOn:(br,Fr)=>{Bn(br,Fr)},broadcastEvent:(br,Fr)=>{er(br,Fr)},isConnected:k},qe=br=>{br.connect(Be),zr(br.element)||(W.register(br),q(br.components(),qe),Be.triggerEvent(K0(),br.element,{target:br.element}))},ft=br=>{zr(br.element)||(q(br.components(),ft),W.unregister(br)),br.disconnect()},yt=br=>{Eg(l,br)},Lt=br=>{kv(br)},Ht=()=>{Se.unbind(),gs(l.element)},fn=br=>{const Fr=W.filter(yp());q(Fr,jr=>{const Ro=jr.descHandler;pv(Ro)(br)})},Rn=br=>{fn({universal:!0,data:br})},Bn=(br,Fr)=>{fn({universal:!1,channels:br,data:Fr})},er=(br,Fr)=>{const jr=W.filter(br);return p5(jr,Fr)},cr=br=>W.getById(br).fold(()=>aa.error(new Error('Could not find component with uid: "'+br+'" in system.')),aa.value),Xr=br=>{const Fr=sm(br).getOr("not found");return cr(Fr)};return qe(l),{root:l,element:l.element,destroy:Ht,add:yt,remove:Lt,getByUid:cr,getByDom:Xr,addToWorld:qe,removeFromWorld:ft,broadcast:Rn,broadcastOn:Bn,broadcastEvent:er}},xG=(l,N)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:re(l.items,N.interpreter)}),_G=x([Ar("prefix","form-field"),Pd("fieldBehaviours",[Xs,Ei])]),wG=x([mm({schema:[pn("dom")],name:"label"}),mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),mh({factory:{sketch:l=>{const N=ga(l,["factory"]);return l.factory.sketch(N)}},schema:[pn("factory")],name:"field"})]),uF=(l,N,W,fe)=>{const Se=Rd(l.fieldBehaviours,[Xs.config({find:ft=>Jo(ft,l,"field")}),Ei.config({store:{mode:"manual",getValue:ft=>Xs.getCurrent(ft).bind(Ei.getValue),setValue:(ft,yt)=>{Xs.getCurrent(ft).each(Lt=>{Ei.setValue(Lt,yt)})}}})]),Be=Rl([wc((ft,yt)=>{const Lt=WC(ft,l,["label","field","aria-descriptor"]);Lt.field().each(Ht=>{const fn=Li(l.prefix);Lt.label().each(Rn=>{Cr(Rn.element,"for",fn),Cr(Ht.element,"id",fn)}),Lt["aria-descriptor"]().each(Rn=>{const Bn=Li(l.prefix);Cr(Rn.element,"id",Bn),Cr(Ht.element,"aria-describedby",Bn)})})})]),qe={getField:ft=>Jo(ft,l,"field"),getLabel:ft=>Jo(ft,l,"label")};return{uid:l.uid,dom:l.dom,components:N,behaviours:Se,events:Be,apis:qe}},Il=Zh({name:"FormField",configFields:_G(),partFields:wG(),factory:uF,apis:{getField:(l,N)=>l.getField(N),getLabel:(l,N)=>l.getLabel(N)}});var OG=tinymce.util.Tools.resolve("tinymce.html.Entities");const g5=(l,N,W,fe)=>{const Se=SG(l,N,W,fe);return Il.sketch(Se)},fF=(l,N)=>g5(l,N,[],[]),SG=(l,N,W,fe)=>({dom:dF(W),components:l.toArray().concat([N]),fieldBehaviours:ei(fe)}),kG=()=>dF([]),dF=l=>({tag:"div",classes:["tox-form__group"].concat(l)}),H2=(l,N)=>Il.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l))]}),xm=Li("form-component-change"),vS=Li("form-close"),cx=Li("form-cancel"),zy=Li("form-action"),v5=Li("form-submit"),T7=Li("form-block"),C7=Li("form-unblock"),hF=Li("form-tabchange"),A7=Li("form-resize"),yS=(l,N,W)=>{const fe=l.label.map(Bn=>H2(Bn,N)),Se=N.icons(),Be=Bn=>{var er;return(er=Se[Bn])!==null&&er!==void 0?er:Bn},qe=Bn=>(er,cr)=>{Sc(cr.event.target,"[data-collection-item-value]").each(Xr=>{Bn(er,cr,Xr,Nr(Xr,"data-collection-item-value"))})},ft=(Bn,er)=>{const cr=re(er,Fr=>{const jr=Dg.translate(Fr.text),Ro=l.columns===1?`
    ${jr}
    `:"",ko=`
    ${Be(Fr.icon)}
    `,_i={_:" "," - ":" ","-":" "},Pi=jr.replace(/\_| \- |\-/g,$i=>_i[$i]),Ao=N.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${ko}${Ro}
    `}),Xr=l.columns!=="auto"&&l.columns>1?K(cr,l.columns):[cr],br=re(Xr,Fr=>`
    ${Fr.join("")}
    `);d0(Bn.element,br.join(""))},yt=qe((Bn,er,cr,Xr)=>{er.stop(),N.isDisabled()||sa(Bn,zy,{name:l.name,value:Xr})}),Lt=[Lo(wu(),qe((Bn,er,cr)=>{Md(cr)})),Lo(H1(),yt),Lo(Lm(),yt),Lo(Dp(),qe((Bn,er,cr)=>{qa(Bn.element,"."+$2).each(Xr=>{Zc(Xr,$2)}),uc(cr,$2)})),Lo(Rm(),qe(Bn=>{qa(Bn.element,"."+$2).each(er=>{Zc(er,$2),m1(er)})})),Sh(qe((Bn,er,cr,Xr)=>{sa(Bn,zy,{name:l.name,value:Xr})}))],Ht=(Bn,er)=>re(Yd(Bn.element,".tox-collection__item"),er),fn=Il.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(l.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:ei([he.config({disabled:N.isDisabled,onDisabled:Bn=>{Ht(Bn,er=>{uc(er,"tox-collection__item--state-disabled"),Cr(er,"aria-disabled",!0)})},onEnabled:Bn=>{Ht(Bn,er=>{Zc(er,"tox-collection__item--state-disabled"),Qt(er,"aria-disabled")})}}),Id(),Fa.config({}),Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Bn=>{qa(Bn.element,"."+$2+"[data-mce-tooltip]").each(er=>{Eo(er,"data-mce-tooltip").each(cr=>{Vu.setComponents(Bn,N.tooltips.getComponents({tooltipText:cr}))})})}}),mode:"children-keyboard-focus",anchor:Bn=>({type:"node",node:qa(Bn.element,"."+$2).orThunk(()=>Vs(".tox-collection__item")),root:Bn.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),Ei.config({store:{mode:"memory",initialValue:W.getOr([])},onSetValue:(Bn,er)=>{ft(Bn,er),l.columns==="auto"&&QP(Bn,5,"tox-collection__item").each(({numRows:cr,numColumns:Xr})=>{ha.setGridSize(Bn,cr,Xr)}),Za(Bn,A7)}}),Rc.config({}),ha.config(CX(l.columns,"normal")),Ka("collection-events",Lt)]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","collection-events"],[Dp()]:["collection-events","tooltipping"]}});return g5(fe,fn,["tox-form__group--collection"],[])},TG=["input","textarea"],pF=l=>{const N=vr(l);return X(TG,N)},mF=(l,N)=>{const W=N.getRoot(l).getOr(l.element);Zc(W,N.invalidClass),N.notify.each(fe=>{pF(l.element)&&Cr(l.element,"aria-invalid",!1),fe.getContainer(l).each(Se=>{d0(Se,fe.validHtml)}),fe.onValid(l)})},y5=(l,N,W,fe)=>{const Se=N.getRoot(l).getOr(l.element);uc(Se,N.invalidClass),N.notify.each(Be=>{pF(l.element)&&Cr(l.element,"aria-invalid",!0),Be.getContainer(l).each(qe=>{d0(qe,fe)}),Be.onInvalid(l,fe)})},zg=(l,N,W)=>N.validator.fold(()=>Lh.pure(aa.value(!0)),fe=>fe.validate(l)),b5=(l,N,W)=>(N.notify.each(fe=>{fe.onValidate(l)}),zg(l,N).map(fe=>l.getSystem().isConnected()?fe.fold(Se=>(y5(l,N,W,Se),aa.error(Se)),Se=>(mF(l,N),aa.value(Se))):aa.error("No longer in system")));var AG=Object.freeze({__proto__:null,markValid:mF,markInvalid:y5,query:zg,run:b5,isInvalid:(l,N)=>{const W=N.getRoot(l).getOr(l.element);return rp(W,N.invalidClass)}}),MG=Object.freeze({__proto__:null,events:(l,N)=>l.validator.map(W=>Rl([Lo(W.onEvent,fe=>{b5(fe,l,N).get(R)})].concat(W.validateOnLoad?[wc(fe=>{b5(fe,l,N).get(v)})]:[]))).getOr({})}),EG=[pn("invalidClass"),Ar("getRoot",I.none),Ai("notify",[Ar("aria","alert"),Ar("getContainer",I.none),Ar("validHtml",""),Ss("onValid"),Ss("onInvalid"),Ss("onValidate")]),Ai("validator",[pn("validate"),Ar("onEvent","input"),Ar("validateOnLoad",!0)])];const Dv=id({fields:EG,name:"invalidating",active:MG,apis:AG,extra:{validation:l=>N=>{const W=Ei.getValue(N);return Lh.pure(l(W))}}});var RG=Object.freeze({__proto__:null,events:()=>Rl([zx(db(),k)]),exhibit:()=>np({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const bS=id({fields:[],name:"unselecting",active:RG}),LG=(l,N)=>L0.sketch({dom:l.dom,components:l.components,toggleClass:"mce-active",dropdownBehaviours:ei([E1.button(N.providers.isDisabled),Id(),bS.config({}),Rc.config({})]),layouts:l.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:N.getSink,fetch:W=>Lh.nu(fe=>l.fetch(fe)).map(fe=>I.from(lA(ws(g7(Li("menu-value"),fe,Se=>{l.onItemAction(W,Se)},l.columns,l.presets,A1.CLOSE_ON_EXECUTE,D,N.providers),{movement:rA(l.columns,l.presets)})))),parts:{menu:Xk(!1,1,l.presets)}}),M7=Li("color-input-change"),E7=Li("color-swatch-change"),P7=Li("color-picker-cancel"),IG=(l,N,W,fe)=>{const Se=Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],data:fe,onSetValue:Lt=>Dv.run(Lt).get(v),inputBehaviours:ei([he.config({disabled:N.providers.isDisabled}),Id(),Rc.config({}),Dv.config({invalidClass:"tox-textbox-field-invalid",getRoot:Lt=>Zr(Lt.element),notify:{onValid:Lt=>{const Ht=Ei.getValue(Lt);sa(Lt,M7,{color:Ht})}},validator:{validateOnLoad:!1,validate:Lt=>{const Ht=Ei.getValue(Lt);if(Ht.length===0)return Lh.pure(aa.value(!0));{const fn=Nt.fromTag("span");xr(fn,"background-color",Ht);const Rn=Ia(fn,"background-color").fold(()=>aa.error("blah"),Bn=>aa.value(Ht));return Lh.pure(Rn)}}}})]),selectOnFocus:!1}),Be=l.label.map(Lt=>H2(Lt,N.providers)),qe=(Lt,Ht)=>{sa(Lt,E7,{value:Ht})},ft=(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{Ht==="custom"?W.colorPicker(Rn=>{Rn.fold(()=>Za(fn,P7),Bn=>{qe(fn,Bn),PN(l.storageKey,Bn)})},"#ffffff"):Ht==="remove"?qe(fn,""):qe(fn,Ht)})},yt=ml(LG({dom:{tag:"span",attributes:{"aria-label":N.providers.translate("Color swatch")}},layouts:{onRtl:()=>[$c,Lu,Iu],onLtr:()=>[Lu,$c,Iu]},components:[],fetch:FN(W.getColors(l.storageKey),l.storageKey,W.hasCustomColors()),columns:W.getColorCols(l.storageKey),presets:"color",onItemAction:ft},N));return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[Se,yt.asSpec()]}]),fieldBehaviours:ei([Ka("form-field-events",[Lo(M7,(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{xr(fn.element,"background-color",Ht.event.color)}),sa(Lt,xm,{name:l.name})}),Lo(E7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Ei.setValue(fn,Ht.event.value),Xs.getCurrent(Lt).each(Ra.focus)})}),Lo(P7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Xs.getCurrent(Lt).each(Ra.focus)})})])])})},DG=mm({schema:[pn("dom")],name:"label"}),Z2=l=>mm({name:""+l+"-edge",overrides:N=>N.model.manager.edgeActions[l].fold(()=>({}),fe=>({events:Rl([Nm(Uh(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(Nc(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(o0(),(Se,Be,qe)=>{qe.mouseIsDown.get()&&fe(Se,qe)},[N])])}))}),BG=Z2("top-left"),zG=Z2("top"),NG=Z2("top-right"),R7=Z2("right"),FG=Z2("bottom-right"),$G=Z2("bottom"),gF=Z2("bottom-left"),VG=Z2("left"),UG=mh({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:l=>({events:Rl([c0(Uh(),l,"spectrum"),c0(ss(),l,"spectrum"),c0(Gl(),l,"spectrum"),c0(Nc(),l,"spectrum"),c0(o0(),l,"spectrum"),c0(a0(),l,"spectrum")])})}),cA=l=>Lg(l.event),jG=mh({schema:[gn("mouseIsDown",()=>wi(!1))],name:"spectrum",overrides:l=>{const W=l.model.manager,fe=(Se,Be)=>W.getValueFromEvent(Be).map(qe=>W.setValueFrom(Se,l,qe));return{behaviours:ei([ha.config({mode:"special",onLeft:(Se,Be)=>W.onLeft(Se,l,cA(Be)),onRight:(Se,Be)=>W.onRight(Se,l,cA(Be)),onUp:(Se,Be)=>W.onUp(Se,l,cA(Be)),onDown:(Se,Be)=>W.onDown(Se,l,cA(Be))}),Rc.config({}),Ra.config({})]),events:Rl([Lo(Uh(),fe),Lo(ss(),fe),Lo(Nc(),fe),Lo(o0(),(Se,Be)=>{l.mouseIsDown.get()&&fe(Se,Be)})])}}});var QG=[DG,VG,R7,zG,$G,BG,NG,gF,FG,UG,jG];const x5=x("slider.change.value"),vF=l=>l.type.indexOf("touch")!==-1,uA=l=>{const N=l.event.raw;if(vF(N)){const W=N;return W.touches!==void 0&&W.touches.length===1?I.some(W.touches[0]).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}else{const W=N;return W.clientX!==void 0?I.some(W).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}},HG="top",ZG="right",qG="bottom",WG="left",rO=l=>l.model.minX,oO=l=>l.model.minY,_5=l=>l.model.minX-1,w5=l=>l.model.minY-1,q2=l=>l.model.maxX,ux=l=>l.model.maxY,fA=l=>l.model.maxX+1,O5=l=>l.model.maxY+1,yF=(l,N,W)=>N(l)-W(l),L7=l=>yF(l,q2,rO),I7=l=>yF(l,ux,oO),bF=l=>L7(l)/2,dA=l=>I7(l)/2,Ng=(l,N)=>N?l.stepSize*l.speedMultiplier:l.stepSize,xF=l=>l.snapToGrid,xS=l=>l.snapStart,_F=l=>l.rounded,_S=(l,N)=>l[N+"-edge"]!==void 0,wF=l=>_S(l,WG),OF=l=>_S(l,ZG),SF=l=>_S(l,HG),D7=l=>_S(l,qG),fx=l=>l.model.value.get(),Ny=(l,N)=>({x:l,y:N}),Fg=(l,N)=>{sa(l,x5(),{value:N})},B7=(l,N)=>{Fg(l,Ny(_5(N),w5(N)))},YG=(l,N)=>{Fg(l,w5(N))},$g=(l,N)=>{Fg(l,Ny(bF(N),w5(N)))},XG=(l,N)=>{Fg(l,Ny(fA(N),w5(N)))},GG=(l,N)=>{Fg(l,fA(N))},kF=(l,N)=>{Fg(l,Ny(fA(N),dA(N)))},TF=(l,N)=>{Fg(l,Ny(fA(N),O5(N)))},KG=(l,N)=>{Fg(l,O5(N))},JG=(l,N)=>{Fg(l,Ny(bF(N),O5(N)))},eK=(l,N)=>{Fg(l,Ny(_5(N),O5(N)))},tK=(l,N)=>{Fg(l,_5(N))},nK=(l,N)=>{Fg(l,Ny(_5(N),dA(N)))},z7=(l,N,W,fe)=>lW?W:l===N?N-1:Math.max(N,l-fe),N7=(l,N,W,fe)=>l>W?l:lMath.max(N,Math.min(W,l)),rK=(l,N,W,fe,Se)=>Se.fold(()=>{const Be=l-N,qe=Math.round(Be/fe)*fe;return F7(N+qe,N-1,W+1)},Be=>{const qe=(l-Be)%fe,ft=Math.round(qe/fe),yt=Math.floor((l-Be)/fe),Lt=Math.floor((W-Be)/fe),Ht=Math.min(Lt,yt+ft),fn=Be+Ht*fe;return Math.max(Be,fn)}),oK=(l,N,W)=>Math.min(W,Math.max(l,N))-N,CF=l=>{const{min:N,max:W,range:fe,value:Se,step:Be,snap:qe,snapStart:ft,rounded:yt,hasMinEdge:Lt,hasMaxEdge:Ht,minBound:fn,maxBound:Rn,screenRange:Bn}=l,er=Lt?N-1:N,cr=Ht?W+1:W;if(SeRn)return cr;{const Xr=oK(Se,fn,Rn),br=F7(Xr/Bn*fe+N,er,cr);return qe&&br>=N&&br<=W?rK(br,N,W,Be,ft):yt?Math.round(br):br}},$7=l=>{const{min:N,max:W,range:fe,value:Se,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:yt,centerMinEdge:Lt,centerMaxEdge:Ht}=l;return SeW?qe?ft:Ht:(Se-N)/fe*yt},S5="top",V7="right",U7="bottom",hA="left",AF="width",j7="height",Fy=l=>l.element.dom.getBoundingClientRect(),Vg=(l,N)=>l[N],dx=l=>{const N=Fy(l);return Vg(N,hA)},Q7=l=>{const N=Fy(l);return Vg(N,V7)},k5=l=>{const N=Fy(l);return Vg(N,S5)},H7=l=>{const N=Fy(l);return Vg(N,U7)},MF=l=>{const N=Fy(l);return Vg(N,AF)},EF=l=>{const N=Fy(l);return Vg(N,j7)},T5=(l,N,W)=>(l+N)/2-W,PF=(l,N)=>{const W=Fy(l),fe=Fy(N),Se=Vg(W,hA),Be=Vg(W,V7),qe=Vg(fe,hA);return T5(Se,Be,qe)},RF=(l,N)=>{const W=Fy(l),fe=Fy(N),Se=Vg(W,S5),Be=Vg(W,U7),qe=Vg(fe,S5);return T5(Se,Be,qe)},C5=(l,N)=>{sa(l,x5(),{value:N})},pA=(l,N,W)=>{const fe={min:rO(N),max:q2(N),range:L7(N),value:W,step:Ng(N),snap:xF(N),snapStart:xS(N),rounded:_F(N),hasMinEdge:wF(N),hasMaxEdge:OF(N),minBound:dx(l),maxBound:Q7(l),screenRange:MF(l)};return CF(fe)},Z7=(l,N,W)=>{const fe=pA(l,N,W);return C5(l,fe),fe},LF=(l,N)=>{const W=rO(N);C5(l,W)},Zp=(l,N)=>{const W=q2(N);C5(l,W)},IF=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),rO(W),q2(W),Ng(W,fe));return C5(N,Be),I.some(Be)},DF=l=>(N,W,fe)=>IF(l,N,W,fe).map(k),iK=l=>uA(l).map(W=>W.left),BF=(l,N,W,fe,Se)=>{const qe=MF(l),ft=fe.bind(Ht=>I.some(PF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(PF(Ht,l))).getOr(qe),Lt={min:rO(N),max:q2(N),range:L7(N),value:W,hasMinEdge:wF(N),hasMaxEdge:OF(N),minBound:dx(l),minOffset:0,maxBound:Q7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},q7=(l,N,W,fe,Se,Be)=>{const qe=BF(N,Be,W,fe,Se);return dx(N)-dx(l)+qe},aK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=_s(N.element)/2;xr(N.element,"left",Be-qe+"px")},sK=DF(-1),zF=DF(1),$y=I.none,W7=I.none,NF={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some(GG),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(tK)};var mA=Object.freeze({__proto__:null,setValueFrom:Z7,setToMin:LF,setToMax:Zp,findValueOfOffset:pA,getValueFromEvent:iK,findPositionOfValue:q7,setPositionFromValue:aK,onLeft:sK,onRight:zF,onUp:$y,onDown:W7,edgeActions:NF});const wS=(l,N)=>{sa(l,x5(),{value:N})},Y7=(l,N,W)=>{const fe={min:oO(N),max:ux(N),range:I7(N),value:W,step:Ng(N),snap:xF(N),snapStart:xS(N),rounded:_F(N),hasMinEdge:SF(N),hasMaxEdge:D7(N),minBound:k5(l),maxBound:H7(l),screenRange:EF(l)};return CF(fe)},lK=(l,N,W)=>{const fe=Y7(l,N,W);return wS(l,fe),fe},cK=(l,N)=>{const W=oO(N);wS(l,W)},uK=(l,N)=>{const W=ux(N);wS(l,W)},fK=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),oO(W),ux(W),Ng(W,fe));return wS(N,Be),I.some(Be)},FF=l=>(N,W,fe)=>fK(l,N,W,fe).map(k),dK=l=>uA(l).map(W=>W.top),$F=(l,N,W,fe,Se)=>{const qe=EF(l),ft=fe.bind(Ht=>I.some(RF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(RF(Ht,l))).getOr(qe),Lt={min:oO(N),max:ux(N),range:I7(N),value:W,hasMinEdge:SF(N),hasMaxEdge:D7(N),minBound:k5(l),minOffset:0,maxBound:H7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},X7=(l,N,W,fe,Se,Be)=>{const qe=$F(N,Be,W,fe,Se);return k5(N)-k5(l)+qe},Vy=(l,N,W,fe)=>{const Se=fx(W),Be=X7(l,fe.getSpectrum(l),Se,fe.getTopEdge(l),fe.getBottomEdge(l),W),qe=il(N.element)/2;xr(N.element,"top",Be-qe+"px")},gA=I.none,hK=I.none,pK=FF(-1),VF=FF(1),UF={"top-left":I.none(),top:I.some(YG),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(KG),"bottom-left":I.none(),left:I.none()};var G7=Object.freeze({__proto__:null,setValueFrom:lK,setToMin:cK,setToMax:uK,findValueOfOffset:Y7,getValueFromEvent:dK,findPositionOfValue:X7,setPositionFromValue:Vy,onLeft:gA,onRight:hK,onUp:pK,onDown:VF,edgeActions:UF});const iO=(l,N)=>{sa(l,x5(),{value:N})},W2=(l,N)=>({x:l,y:N}),A5=(l,N,W)=>{const fe=pA(l,N,W.left),Se=Y7(l,N,W.top),Be=W2(fe,Se);return iO(l,Be),Be},jF=(l,N,W,fe,Se)=>{const Be=l>0?N7:z7,qe=N?fx(fe).x:Be(fx(fe).x,rO(fe),q2(fe),Ng(fe,Se)),ft=N?Be(fx(fe).y,oO(fe),ux(fe),Ng(fe,Se)):fx(fe).y;return iO(W,W2(qe,ft)),I.some(qe)},M5=(l,N)=>(W,fe,Se)=>jF(l,N,W,fe,Se).map(k),QF=(l,N)=>{const W=rO(N),fe=oO(N);iO(l,W2(W,fe))},HF=(l,N)=>{const W=q2(N),fe=ux(N);iO(l,W2(W,fe))},mK=l=>uA(l),gK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se.x,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=X7(l,fe.getSpectrum(l),Se.y,fe.getTopEdge(l),fe.getBottomEdge(l),W),ft=_s(N.element)/2,yt=il(N.element)/2;xr(N.element,"left",Be-ft+"px"),xr(N.element,"top",qe-yt+"px")},vK=M5(-1,!1),yK=M5(1,!1),bK=M5(-1,!0),ZF=M5(1,!0),qF={"top-left":I.some(B7),top:I.some($g),"top-right":I.some(XG),right:I.some(kF),"bottom-right":I.some(TF),bottom:I.some(JG),"bottom-left":I.some(eK),left:I.some(nK)};var xK=Object.freeze({__proto__:null,setValueFrom:A5,setToMin:QF,setToMax:HF,getValueFromEvent:mK,setPositionFromValue:gK,onLeft:vK,onRight:yK,onUp:bK,onDown:ZF,edgeActions:qF});const WF=[Ar("stepSize",1),Ar("speedMultiplier",10),Ar("onChange",v),Ar("onChoose",v),Ar("onInit",v),Ar("onDragStart",v),Ar("onDragEnd",v),Ar("snapToGrid",!1),Ar("rounded",!0),Yo("snapStart"),In("model",bn("mode",{x:[Ar("minX",0),Ar("maxX",100),gn("value",l=>wi(l.mode.minX)),pn("getInitialValue"),Sl("manager",mA)],y:[Ar("minY",0),Ar("maxY",100),gn("value",l=>wi(l.mode.minY)),pn("getInitialValue"),Sl("manager",G7)],xy:[Ar("minX",0),Ar("maxX",100),Ar("minY",0),Ar("maxY",100),gn("value",l=>wi({x:l.mode.minX,y:l.mode.minY})),pn("getInitialValue"),Sl("manager",xK)]})),Pd("sliderBehaviours",[ha,Ei]),gn("mouseIsDown",()=>wi(!1))],I0=Zh({name:"Slider",configFields:WF,partFields:QG,factory:(l,N,W,fe)=>{const Se=ko=>gm(ko,l,"thumb"),Be=ko=>gm(ko,l,"spectrum"),qe=ko=>Jo(ko,l,"left-edge"),ft=ko=>Jo(ko,l,"right-edge"),yt=ko=>Jo(ko,l,"top-edge"),Lt=ko=>Jo(ko,l,"bottom-edge"),Ht=l.model,fn=Ht.manager,Rn=(ko,_i)=>{fn.setPositionFromValue(ko,_i,l,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:yt,getBottomEdge:Lt,getSpectrum:Be})},Bn=(ko,_i)=>{Ht.value.set(_i);const Pi=Se(ko);Rn(ko,Pi)},er=(ko,_i)=>{Bn(ko,_i);const Pi=Se(ko);return l.onChange(ko,Pi,_i),I.some(!0)},cr=ko=>{fn.setToMin(ko,l)},Xr=ko=>{fn.setToMax(ko,l)},br=ko=>{const _i=()=>{Jo(ko,l,"thumb").each(Ao=>{const $i=Ht.value.get();l.onChoose(ko,Ao,$i)})},Pi=l.mouseIsDown.get();l.mouseIsDown.set(!1),Pi&&_i()},Fr=(ko,_i)=>{_i.stop(),l.mouseIsDown.set(!0),l.onDragStart(ko,Se(ko))},jr=(ko,_i)=>{_i.stop(),l.onDragEnd(ko,Se(ko)),br(ko)},Ro=ko=>{Jo(ko,l,"spectrum").map(ha.focusIn)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.sliderBehaviours,[ha.config({mode:"special",focusIn:Ro}),Ei.config({store:{mode:"manual",getValue:ko=>Ht.value.get(),setValue:Bn}}),Ad.config({channels:{[M3()]:{onReceive:br}}})]),events:Rl([Lo(x5(),(ko,_i)=>{er(ko,_i.event.value)}),wc((ko,_i)=>{const Pi=Ht.getInitialValue();Ht.value.set(Pi);const Ao=Se(ko);Rn(ko,Ao);const $i=Be(ko);l.onInit(ko,Ao,$i,Ht.value.get())}),Lo(Uh(),Fr),Lo(Gl(),jr),Lo(Nc(),(ko,_i)=>{Ro(ko),Fr(ko,_i)}),Lo(a0(),jr)]),apis:{resetToMin:cr,resetToMax:Xr,setValue:Bn,refresh:Rn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(l,N,W)=>{l.setValue(N,W)},resetToMin:(l,N)=>{l.resetToMin(N)},resetToMax:(l,N)=>{l.resetToMax(N)},refresh:(l,N)=>{l.refresh(N)}}}),aO=Li("rgb-hex-update"),YF=Li("slider-update"),K7=Li("palette-update"),_K=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"div",classes:[N("hue-slider-spectrum")],attributes:{role:"presentation"}}}),fe=I0.parts.thumb({dom:{tag:"div",classes:[N("hue-slider-thumb")],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:[N("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[W,fe],sliderBehaviours:ei([Ra.config({})]),onChange:(Se,Be,qe)=>{Cr(Se.element,"aria-valuenow",Math.floor(360-qe*3.6)),sa(Se,YF,{value:qe})}})},XF="form",wK=[Pd("formBehaviours",[Ei])],GF=l=>"",KF=l=>{const N=(()=>{const Be=[];return{field:(ft,yt)=>(Be.push(ft),HC(XF,GF(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:GF(Be)}));return Iy(XF,wK,Se,JF,W)},OK=(l,N)=>l.fold(()=>aa.error(N),aa.value),JF=(l,N)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.formBehaviours,[Ei.config({store:{mode:"manual",getValue:W=>{const fe=gk(W,l);return Ue(fe,(Se,Be)=>Se().bind(qe=>{const ft=Xs.getCurrent(qe);return OK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+a1(qe.element)))}).map(Ei.getValue))},setValue:(W,fe)=>{We(fe,(Se,Be)=>{Jo(W,l,Be).each(qe=>{Xs.getCurrent(qe).each(ft=>{Ei.setValue(ft,Se)})})})}}})]),apis:{getField:(W,fe)=>Jo(W,l,fe).bind(Xs.getCurrent)}}),Y2={getField:Tb((l,N,W)=>l.getField(N,W)),sketch:KF},Uy=Li("valid-input"),vA=Li("invalid-input"),J7=Li("validating-input"),yA="colorcustom.rgb.",e9={isEnabled:k,setEnabled:v,immediatelyShow:v,immediatelyHide:v},e$=(l,N,W,fe,Se,Be)=>{const qe=(cr,Xr)=>{const br=Xr.get();cr!==br.isEnabled()&&(br.setEnabled(cr),cr?br.immediatelyShow():br.immediatelyHide())},ft=(cr,Xr,br)=>Dv.config({invalidClass:N("invalid"),notify:{onValidate:Fr=>{sa(Fr,J7,{type:cr})},onValid:Fr=>{qe(!1,br),sa(Fr,Uy,{type:cr,value:Ei.getValue(Fr)})},onInvalid:Fr=>{qe(!0,br),sa(Fr,vA,{type:cr,value:Ei.getValue(Fr)})}},validator:{validate:Fr=>{const jr=Ei.getValue(Fr),Ro=Xr(jr)?aa.value(!0):aa.error(l("aria.input.invalid"));return Lh.pure(Ro)},validateOnLoad:!1}}),yt=(cr,Xr,br,Fr,jr)=>{const Ro=wi(e9),ko=l(yA+"range"),_i=Il.parts.label({dom:{tag:"label",attributes:{"aria-label":Fr}},components:[Po(br)]}),Pi=Il.parts.field({data:jr,factory:Ww,inputAttributes:{type:"text",...Xr==="hex"?{"aria-live":"polite"}:{}},inputClasses:[N("textfield")],inputBehaviours:ei([ft(Xr,cr,Ro),Rc.config({}),Vu.config({...Se({tooltipText:"",onSetup:hl=>{Ro.set({isEnabled:()=>Vu.isEnabled(hl),setEnabled:Ui=>Vu.setEnabled(hl,Ui),immediatelyShow:()=>Vu.immediateOpenClose(hl,!0),immediatelyHide:()=>Vu.immediateOpenClose(hl,!1)}),Vu.setEnabled(hl,!1)},onShow:(hl,Ui)=>{Vu.setComponents(hl,[{dom:{tag:"p",classes:[N("rgb-warning-note")]},components:[Po(l(Xr==="hex"?"colorcustom.rgb.invalidHex":"colorcustom.rgb.invalid"))]}])}})})]),onSetValue:hl=>{Dv.isInvalid(hl)&&Dv.run(hl).get(v)}}),Ao=Li("aria-invalid"),$i=ml(Be("invalid",I.some(Ao),"warning")),yi=ml({dom:{tag:"div",classes:[N("invalid-icon")]},components:[$i.asSpec()]}),Xi=[_i,Pi,yi.asSpec()],ks=Xr!=="hex"?[Il.parts["aria-descriptor"]({text:ko})]:[],Ic=Xi.concat(ks);return{dom:{tag:"div",attributes:{role:"presentation"},classes:[N("rgb-container")]},components:Ic}},Lt=(cr,Xr)=>{const br=i5(Xr);return Y2.getField(cr,"hex").each(Fr=>{Ra.isFocused(Fr)||Ei.setValue(cr,{hex:br.value})}),br},Ht=(cr,Xr)=>{const br=Xr.red,Fr=Xr.green,jr=Xr.blue;Ei.setValue(cr,{red:br,green:Fr,blue:jr})},fn=ml({dom:{tag:"div",classes:[N("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Rn=(cr,Xr)=>{fn.getOpt(cr).each(br=>{xr(br.element,"background-color","#"+Xr.value)})};return Qp({factory:()=>{const cr={red:wi(I.some(255)),green:wi(I.some(255)),blue:wi(I.some(255)),hex:wi(I.some("ffffff"))},Xr=(Ui,Ko)=>{const Oi=a5(Ko);Ht(Ui,Oi),Ro(Oi)},br=Ui=>cr[Ui].get(),Fr=(Ui,Ko)=>{cr[Ui].set(Ko)},jr=()=>br("red").bind(Ui=>br("green").bind(Ko=>br("blue").map(Oi=>eO(Ui,Ko,Oi,1)))),Ro=Ui=>{const Ko=Ui.red,Oi=Ui.green,La=Ui.blue;Fr("red",I.some(Ko)),Fr("green",I.some(Oi)),Fr("blue",I.some(La))},ko=(Ui,Ko)=>{const Oi=Ko.event;Oi.type!=="hex"?Fr(Oi.type,I.none()):fe(Ui)},_i=(Ui,Ko)=>{W(Ui);const Oi=pN(Ko);Fr("hex",I.some(Oi.value));const La=a5(Oi);Ht(Ui,La),Ro(La),sa(Ui,aO,{hex:Oi}),Rn(Ui,Oi)},Pi=(Ui,Ko,Oi)=>{const La=parseInt(Oi,10);Fr(Ko,I.some(La)),jr().each(_a=>{const fa=Lt(Ui,_a);sa(Ui,aO,{hex:fa}),Rn(Ui,fa)})},Ao=Ui=>Ui.type==="hex",$i=(Ui,Ko)=>{const Oi=Ko.event;Ao(Oi)?_i(Ui,Oi.value):Pi(Ui,Oi.type,Oi.value)},yi=Ui=>({label:l(yA+Ui+".label"),description:l(yA+Ui+".description")}),Xi=yi("red"),ks=yi("green"),Ic=yi("blue"),hl=yi("hex");return ws(Y2.sketch(Ui=>({dom:{tag:"form",classes:[N("rgb-form")],attributes:{"aria-label":l("aria.color.picker")}},components:[Ui.field("red",Il.sketch(yt(e7,"red",Xi.label,Xi.description,255))),Ui.field("green",Il.sketch(yt(e7,"green",ks.label,ks.description,255))),Ui.field("blue",Il.sketch(yt(e7,"blue",Ic.label,Ic.description,255))),Ui.field("hex",Il.sketch(yt(gN,"hex",hl.label,hl.description,"ffffff"))),fn.asSpec()],formBehaviours:ei([Dv.config({invalidClass:N("form-invalid")}),Ka("rgb-form-events",[Lo(Uy,$i),Lo(vA,ko),Lo(J7,ko)])])})),{apis:{updateHex:(Ui,Ko)=>{Ei.setValue(Ui,{hex:Ko.value}),Xr(Ui,Ko),Rn(Ui,Ko)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(cr,Xr,br)=>{cr.updateHex(Xr,br)}},extraApis:{}})},bA=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[N("sv-palette-spectrum")]}}),fe=I0.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[N("sv-palette-thumb")],innerHtml:``}}),Se=(Lt,Ht)=>{const{width:fn,height:Rn}=Lt,Bn=Lt.getContext("2d");if(Bn===null)return;Bn.fillStyle=Ht,Bn.fillRect(0,0,fn,Rn);const er=Bn.createLinearGradient(0,0,fn,0);er.addColorStop(0,"rgba(255,255,255,1)"),er.addColorStop(1,"rgba(255,255,255,0)"),Bn.fillStyle=er,Bn.fillRect(0,0,fn,Rn);const cr=Bn.createLinearGradient(0,0,0,Rn);cr.addColorStop(0,"rgba(0,0,0,0)"),cr.addColorStop(1,"rgba(0,0,0,1)"),Bn.fillStyle=cr,Bn.fillRect(0,0,fn,Rn)},Be=(Lt,Ht)=>{const fn=Lt.components()[0].element.dom,Rn=l5(Ht,100,100),Bn=ON(Rn);Se(fn,SN(Bn))},qe=(Lt,Ht)=>{const fn=c5(a5(Ht));I0.setValue(Lt,{x:fn.saturation,y:100-fn.value}),Cr(Lt.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",fn.saturation,fn.value]))};return Qp({factory:Lt=>{const Ht=x({x:0,y:0}),fn=(er,cr,Xr)=>{h(Xr)||Cr(er.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",Math.floor(Xr.x),Math.floor(100-Xr.y)])),sa(er,K7,{value:Xr})},Rn=(er,cr,Xr,br)=>{Se(Xr.element.dom,SN(kN))},Bn=ei([Xs.config({find:I.some}),Ra.config({})]);return I0.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":l(["Saturation {0}%, Brightness {1}%",0,0])},classes:[N("sv-palette")]},model:{mode:"xy",getInitialValue:Ht},rounded:!1,components:[W,fe],onChange:fn,onInit:Rn,sliderBehaviours:Bn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Lt,Ht,fn)=>{Be(Ht,fn)},setThumb:(Lt,Ht,fn)=>{qe(Ht,fn)}},extraApis:{}})},t$=(l,N,W,fe)=>{const Se=qe=>{const ft=e$(l,N,qe.onValidHex,qe.onInvalidHex,W,fe),yt=bA(l,N),Lt=Ao=>(100-Ao)/100*360,Ht=Ao=>100-Ao/360*100,fn={paletteRgba:wi(kN),paletteHue:wi(0)},Rn=ml(_K(l,N)),Bn=ml(yt.sketch({})),er=ml(ft.sketch({})),cr=(Ao,$i,yi)=>{Bn.getOpt(Ao).each(Xi=>{yt.setHue(Xi,yi)})},Xr=(Ao,$i)=>{er.getOpt(Ao).each(yi=>{ft.updateHex(yi,$i)})},br=(Ao,$i,yi)=>{Rn.getOpt(Ao).each(Xi=>{I0.setValue(Xi,Ht(yi))})},Fr=(Ao,$i)=>{Bn.getOpt(Ao).each(yi=>{yt.setThumb(yi,$i)})},jr=(Ao,$i)=>{const yi=a5(Ao);fn.paletteRgba.set(yi),fn.paletteHue.set($i)},Ro=(Ao,$i,yi,Xi)=>{jr($i,yi),q(Xi,ks=>{ks(Ao,$i,yi)})},ko=()=>{const Ao=[Xr];return($i,yi)=>{const Xi=yi.event.value,ks=fn.paletteHue.get(),Ic=l5(ks,Xi.x,100-Xi.y),hl=u5(Ic);Ro($i,hl,ks,Ao)}},_i=()=>{const Ao=[cr,Xr];return($i,yi)=>{const Xi=Lt(yi.event.value),ks=fn.paletteRgba.get(),Ic=c5(ks),hl=l5(Xi,Ic.saturation,Ic.value),Ui=u5(hl);Ro($i,Ui,Xi,Ao)}},Pi=()=>{const Ao=[cr,br,Fr];return($i,yi)=>{const Xi=yi.event.hex,ks=a7(Xi);Ro($i,Xi,ks.hue,Ao)}};return{uid:qe.uid,dom:qe.dom,components:[Bn.asSpec(),Rn.asSpec(),er.asSpec()],behaviours:ei([Ka("colour-picker-events",[Lo(aO,Pi()),Lo(K7,ko()),Lo(YF,_i())]),Xs.config({find:Ao=>er.getOpt(Ao)}),ha.config({mode:"acyclic"})])}};return Qp({name:"ColourPicker",configFields:[pn("dom"),Ar("onValidHex",v),Ar("onInvalidHex",v)],factory:Se})},P1={self:()=>Xs.config({find:I.some}),memento:l=>Xs.config({find:l.getOpt}),childAt:l=>Xs.config({find:N=>jn(N.element,l).bind(W=>N.getSystem().getByDom(W).toOptional())})},kK=Si([Ar("preprocess",R),Ar("postprocess",R)]),TK=(l,N)=>{const W=Xt("RepresentingConfigs.memento processors",kK,N);return Ei.config({store:{mode:"manual",getValue:fe=>{const Se=l.get(fe),Be=Ei.getValue(Se);return W.postprocess(Be)},setValue:(fe,Se)=>{const Be=W.preprocess(Se),qe=l.get(fe);Ei.setValue(qe,Be)}}})},X2=(l,N,W)=>Ei.config({store:{mode:"manual",...l.map(fe=>({initialValue:fe})).getOr({}),getValue:N,setValue:W}}),t9=(l,N,W)=>X2(l,fe=>N(fe.element),(fe,Se)=>W(fe.element,Se)),CK=l=>t9(l,Np,d0),xA=l=>Ei.config({store:{mode:"memory",initialValue:l}}),AK={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.rgb.invalid":"Numbers only, 0 to 255","colorcustom.rgb.invalidHex":"Hexadecimal only, 000000 to FFFFFF","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},_A=l=>N=>n(N)?l.translate(AK[N]):l.translate(N),MK=(l,N,W)=>{const fe=Lt=>"tox-"+Lt,Se=(Lt,Ht,fn=Lt,Rn=Lt)=>Bg(fn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Lt],attributes:{title:N.translate(Rn),"aria-live":"polite",...Ht.fold(()=>({}),Bn=>({id:Bn}))}},N.icons),Be=t$(_A(N),fe,N.tooltips.getConfig,Se),qe=Lt=>{sa(Lt,zy,{name:"hex-valid",value:!0})},ft=Lt=>{sa(Lt,zy,{name:"hex-valid",value:!1})},yt=ml(Be.sketch({dom:{tag:"div",classes:[fe("color-picker-container")],attributes:{role:"presentation"}},onValidHex:qe,onInvalidHex:ft}));return{dom:{tag:"div"},components:[yt.asSpec()],behaviours:ei([X2(W,Lt=>{const Ht=yt.get(Lt);return Xs.getCurrent(Ht).bind(Bn=>Ei.getValue(Bn).hex).map(Bn=>"#"+Sn(Bn,"#")).getOr("")},(Lt,Ht)=>{const fn=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Rn=I.from(fn.exec(Ht)).bind(cr=>De(cr,1)),Bn=yt.get(Lt);Xs.getCurrent(Bn).fold(()=>{console.log("Can not find form")},cr=>{Ei.setValue(cr,{hex:Rn.getOr("")}),Y2.getField(cr,"hex").each(Xr=>{Za(Xr,vg())})})}),P1.self()])}};var EK=tinymce.util.Tools.resolve("tinymce.Resource");const n9=l=>ht(l,"init"),n$=l=>{const N=ds(),W=ml({dom:{tag:l.tag}}),fe=ds(),Se=!n9(l)&&l.onFocus.isSome()?[Ra.config({onFocus:Be=>{l.onFocus.each(qe=>{qe(Be.element.dom)})}}),Rc.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:ei([Ka("custom-editor-events",[wc(Be=>{W.getOpt(Be).each(qe=>{(n9(l)?l.init(qe.element.dom):EK.load(l.scriptId,l.scriptUrl).then(ft=>ft(qe.element.dom,l.settings))).then(ft=>{fe.on(yt=>{ft.setValue(yt)}),fe.clear(),N.set(ft)})})})]),X2(I.none(),()=>N.get().fold(()=>fe.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{N.get().fold(()=>fe.set(qe),ft=>ft.setValue(qe))}),P1.self()].concat(Se)),components:[W.asSpec()]}};var hx=tinymce.util.Tools.resolve("tinymce.util.Tools");const PK=(l,N)=>{const W=hx.explode(N.getOption("images_file_types")),fe=Se=>te(W,Be=>bt(Se.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(l),fe)},r9=(l,N,W)=>{const fe=(Rn,Bn)=>{Bn.stop()},Se=Rn=>(Bn,er)=>{q(Rn,cr=>{cr(Bn,er)})},Be=(Rn,Bn)=>{var er;if(!he.isDisabled(Rn)){const cr=Bn.event.raw;ft(Rn,(er=cr.dataTransfer)===null||er===void 0?void 0:er.files)}},qe=(Rn,Bn)=>{const er=Bn.event.raw.target;ft(Rn,er.files)},ft=(Rn,Bn)=>{Bn&&(Ei.setValue(Rn,PK(Bn,N)),sa(Rn,xm,{name:l.name}))},yt=ml({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ei([Ka("input-file-events",[od(H1()),od(Lm())])])}),Lt=Rn=>({uid:Rn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ei([xA(W.getOr([])),P1.self(),he.config({}),us.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ka("dropzone-events",[Lo("dragenter",Se([fe,us.toggle])),Lo("dragleave",Se([fe,us.toggle])),Lo("dragover",fe),Lo("drop",Se([fe,Be])),Lo(s0(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Po(N.translate("Drop an image here"))]},Rh.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Po(N.translate("Browse for an image")),yt.asSpec()],action:Bn=>{yt.get(Bn).element.dom.click()},buttonBehaviours:ei([Rc.config({}),E1.button(N.isDisabled),Id()])})]}]}),Ht=l.label.map(Rn=>H2(Rn,N)),fn=Il.parts.field({factory:{sketch:Lt}});return g5(Ht,fn,["tox-form__group--stretched"],[])},RK=(l,N)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${l.columns}col`]},components:re(l.items,N.interpreter)}),r$=(l,N)=>{let W=null,fe=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null,fe=null)},throttle:(...qe)=>{fe=qe,S(W)&&(W=setTimeout(()=>{const ft=fe;W=null,fe=null,l.apply(null,ft)},N))}}},LK=(l,N)=>{let W=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null)},throttle:(...Be)=>{S(W)&&(W=setTimeout(()=>{W=null,l.apply(null,Be)},N))}}},o9=(l,N)=>{let W=null;const fe=()=>{S(W)||(clearTimeout(W),W=null)};return{cancel:fe,throttle:(...Be)=>{fe(),W=setTimeout(()=>{W=null,l.apply(null,Be)},N)}}},i9=Li("alloy-fake-before-tabstop"),wA=Li("alloy-fake-after-tabstop"),a9=l=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:l},behaviours:ei([Ra.config({ignore:!0}),Rc.config({})])}),o$=(l,N)=>({dom:{tag:"div",classes:["tox-navobj",...l.getOr([])]},components:[a9([i9]),N,a9([wA])],behaviours:ei([P1.childAt(1)])}),i$=(l,N)=>{sa(l,nm(),{raw:{which:9,shiftKey:N}})},IK=(l,N)=>{const W=N.element;rp(W,i9)?i$(l,!0):rp(W,wA)&&i$(l,!1)},E5=l=>f5(l,["."+i9,"."+wA].join(","),D),P5=Li("update-dialog"),a$=Li("update-title"),s9=Li("update-body"),s$=Li("update-footer"),l$=Li("body-send-message"),OA=Li("dialog-focus-shifted"),l9=va().browser,R5=l9.isSafari(),DK=l9.isFirefox(),c$=R5||DK,BK=l9.isChromium(),zK=({scrollTop:l,scrollHeight:N,clientHeight:W})=>Math.ceil(l)+W>=N,SA=(l,N)=>l.scrollTo(0,N==="bottom"?99999999:N),NK=(l,N)=>{const W=l.body;return I.from(!/^1))?W:l.documentElement)},u$=(l,N,W)=>{const fe=l.dom;I.from(fe.contentDocument).fold(W,Se=>{let Be=0;const qe=NK(Se,N).map(yt=>(Be=yt.scrollTop,yt)).forall(zK),ft=()=>{const yt=fe.contentWindow;a(yt)&&(qe?SA(yt,"bottom"):!qe&&c$&&Be!==0&&SA(yt,Be))};R5&&fe.addEventListener("load",ft,{once:!0}),Se.open(),Se.write(N),Se.close(),R5||ft()})},L5=Ot(c$,R5?500:200).map(l=>r$(u$,l)),c9=(l,N)=>{const W=wi(l.getOr(""));return{getValue:fe=>W.get(),setValue:(fe,Se)=>{if(W.get()!==Se){const Be=fe.element,qe=()=>Cr(Be,"srcdoc",Se);N?L5.fold(x(u$),ft=>ft.throttle)(Be,Se,qe):qe()}W.set(Se)}}},FK=(l,N,W)=>{const fe="tox-dialog__iframe",Se=l.transparent?[]:[`${fe}--opaque`],Be=l.border?["tox-navobj-bordered"]:[],qe={...l.label.map(fn=>({title:fn})).getOr({}),...W.map(fn=>({srcdoc:fn})).getOr({}),...l.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=c9(W,l.streamContent),yt=l.label.map(fn=>H2(fn,N)),Lt=fn=>o$(I.from(Be),{uid:fn.uid,dom:{tag:"iframe",attributes:qe,classes:[fe,...Se]},behaviours:ei([Rc.config({}),Ra.config({}),X2(W,ft.getValue,ft.setValue),Ad.config({channels:{[OA]:{onReceive:(Rn,Bn)=>{Bn.newFocus.each(er=>{Zr(Rn.element).each(cr=>{(_o(Rn.element,er)?uc:Zc)(cr,"tox-navobj-bordered-focus")})})}}}})])}),Ht=Il.parts.field({factory:{sketch:Lt}});return g5(yt,Ht,["tox-form__group--stretched"],[])},$K=l=>new Promise((N,W)=>{const fe=()=>{Be(),N(l)},Se=[ud(l,"load",fe),ud(l,"error",()=>{Be(),W("Unable to load data from image: "+l.dom.src)})],Be=()=>q(Se,qe=>qe.unbind());l.dom.complete&&fe()}),u9=(l,N,W,fe,Se)=>{const Be=W*Se,qe=fe*Se,ft=Math.max(0,l/2-Be/2),yt=Math.max(0,N/2-qe/2);return{left:ft.toString()+"px",top:yt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},VK=(l,N,W)=>{const fe=_s(l),Se=il(l);return Math.min(fe/N,Se/W,1)},f9=(l,N)=>{const W=wi(N.getOr({url:""})),fe=ml({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:N.map(yt=>({src:yt.url})).getOr({})}}),Se=ml({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[fe.asSpec()]}),Be=(yt,Lt)=>{const Ht={url:Lt.url};Lt.zoom.each(Rn=>Ht.zoom=Rn),Lt.cachedWidth.each(Rn=>Ht.cachedWidth=Rn),Lt.cachedHeight.each(Rn=>Ht.cachedHeight=Rn),W.set(Ht);const fn=()=>{const{cachedWidth:Rn,cachedHeight:Bn,zoom:er}=Ht;if(!y(Rn)&&!y(Bn)){if(y(er)){const Xr=VK(yt.element,Rn,Bn);Ht.zoom=Xr}const cr=u9(_s(yt.element),il(yt.element),Rn,Bn,Ht.zoom);Se.getOpt(yt).each(Xr=>{Oo(Xr.element,cr)})}};fe.getOpt(yt).each(Rn=>{const Bn=Rn.element;Lt.url!==Nr(Bn,"src")&&(Cr(Bn,"src",Lt.url),Zc(yt.element,"tox-imagepreview__loaded")),fn(),$K(Bn).then(er=>{yt.getSystem().isConnected()&&(uc(yt.element,"tox-imagepreview__loaded"),Ht.cachedWidth=er.dom.naturalWidth,Ht.cachedHeight=er.dom.naturalHeight,fn())})})},qe={};l.height.each(yt=>qe.height=yt);const ft=N.map(yt=>({url:yt.url,zoom:I.from(yt.zoom),cachedWidth:I.from(yt.cachedWidth),cachedHeight:I.from(yt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[Se.asSpec()],behaviours:ei([P1.self(),X2(ft,()=>W.get(),Be)])}},f$=(l,N,W)=>{const fe="tox-label",Se=l.align==="center"?[`${fe}--center`]:[],Be=l.align==="end"?[`${fe}--end`]:[],qe=ml({dom:{tag:"label",classes:[fe,...Se,...Be]},components:[Po(N.providers.translate(l.label))]}),ft=re(l.items,N.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:ei([P1.self(),Fa.config({}),CK(I.none()),ha.config({mode:"acyclic"}),Ka("label",[wc(yt=>{l.for.each(Lt=>{W(Lt).each(Ht=>{qe.getOpt(yt).each(fn=>{var Rn;const Bn=(Rn=Nr(Ht.element,"id"))!==null&&Rn!==void 0?Rn:Li("form-field");Cr(Ht.element,"id",Bn),Cr(fn.element,"for",Bn)})})})})])])}},d$=Li("toolbar.button.execute"),UK=l=>Sh((N,W)=>{r5(l,N)(fe=>{sa(N,d$,{buttonApi:fe}),l.onAction(fe)})}),G2=Li("common-button-display-events"),d9={[Bp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[Oh()]:["toolbar-button-events",G2],[zp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Nc()]:["focusing","alloy.base.behaviour",G2]},h9=l=>xr(l.element,"width",Di(l.element,"width")),p9=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:W},N),kA=(l,N)=>p9(l,N,[]),K2=(l,N)=>p9(l,N,[Fa.config({})]),m9=(l,N,W)=>({dom:{tag:"span",classes:[`${N}__select-label`]},components:[Po(W.translate(l))],behaviours:ei([Fa.config({})])}),Ug=Li("update-menu-text"),J2=Li("update-menu-icon"),g9=(l,N,W,fe)=>{const Se=wi(v),Be=l.text.map(cr=>ml(m9(cr,N,W.providers))),qe=l.icon.map(cr=>ml(K2(cr,W.providers.icons))),ft=(cr,Xr)=>{const br=Ei.getValue(cr);return Ra.focus(br),sa(br,"keydown",{raw:Xr.event.raw}),L0.close(br),I.some(!0)},yt=l.role.fold(()=>({}),cr=>({role:cr})),Lt=I.from(l.listRole).map(cr=>({listRole:cr})).getOr({}),Ht=l.ariaLabel.fold(()=>({}),cr=>({"aria-label":W.providers.translate(cr)})),fn=Bg("chevron-down",{tag:"div",classes:[`${N}__select-chevron`]},W.providers.icons),Rn=Li("common-button-display-events"),Bn="dropdown-events";return ml(L0.sketch({...l.uid?{uid:l.uid}:{},...yt,...Lt,dom:{tag:"button",classes:[N,`${N}--select`].concat(re(l.classes,cr=>`${N}--${cr}`)),attributes:{...Ht,...a(fe)?{"data-mce-name":fe}:{}}},components:Kw([qe.map(cr=>cr.asSpec()),Be.map(cr=>cr.asSpec()),I.some(fn)]),matchWidth:!0,useMinWidth:!0,onOpen:(cr,Xr,br)=>{l.searchable&&aG(br)},dropdownBehaviours:ei([...l.dropdownBehaviours,E1.button(()=>l.disabled||W.providers.isDisabled()),Id(),bS.config({}),Fa.config({}),...l.tooltip.map(cr=>Vu.config(W.providers.tooltips.getConfig({tooltipText:W.providers.translate(cr)}))).toArray(),Ka(Bn,[cp(l,Se),j2(l,Se)]),Ka(Rn,[wc((cr,Xr)=>l.listRole==="listbox"?v:h9(cr))]),Ka("menubutton-update-display-text",[Lo(Ug,(cr,Xr)=>{Be.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[Po(W.providers.translate(Xr.event.text))])})}),Lo(J2,(cr,Xr)=>{qe.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[K2(Xr.event.icon,W.providers.icons)])})})])]),eventOrder:ws(d9,{[Nc()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Oh()]:["toolbar-button-events",Vu.name(),Bn,Rn]}),sandboxBehaviours:ei([ha.config({mode:"special",onLeft:ft,onRight:ft}),Ka("dropdown-sandbox-events",[Lo(Dz,(cr,Xr)=>{rG(cr),Xr.stop()}),Lo(AP,(cr,Xr)=>{iA(cr,Xr),Xr.stop()})])]),lazySink:W.getSink,toggleClass:`${N}--active`,parts:{menu:{...Xk(!1,l.columns,l.presets),fakeFocus:l.searchable,...l.listRole==="listbox"?{}:{onHighlightItem:nF,onCollapseMenu:(cr,Xr,br)=>{ta.getHighlighted(br).each(Fr=>{nF(cr,br,Fr)})},onDehighlightItem:iG}}},getAnchorOverrides:()=>({maxHeightFunction:(cr,Xr)=>{hw()(cr,Xr-10)}}),fetch:cr=>Lh.nu(T(l.fetch,cr))})).asSpec()},jK=l=>n(l),h$=l=>l.type==="separator",p$=l=>ht(l,"getSubmenuItems"),QK={type:"separator"},m$=(l,N)=>{const W=se(l,(fe,Se)=>jK(Se)?Se===""?fe:Se==="|"?fe.length>0&&!h$(fe[fe.length-1])?fe.concat([QK]):fe:ht(N,Se.toLowerCase())?fe.concat([N[Se.toLowerCase()]]):fe:fe.concat([Se]),[]);return W.length>0&&h$(W[W.length-1])&&W.pop(),W},HK=(l,N)=>{const W=l.getSubmenuItems(),fe=TA(W,N),Se=ws(fe.menus,{[l.value]:fe.items}),Be=ws(fe.expansions,{[l.value]:l.value});return{item:l,menus:Se,expansions:Be}},ZK=l=>{const N=Ge(l,"value").getOrThunk(()=>Li("generated-menu-item"));return ws({value:N},l)},TA=(l,N)=>{const W=m$(n(l)?l.split(" "):l,N);return pe(W,(fe,Se)=>{if(p$(Se)){const Be=ZK(Se),qe=HK(Be,N);return{menus:ws(fe.menus,qe.menus),items:[qe.item,...fe.items],expansions:ws(fe.expansions,qe.expansions)}}else return{...fe,items:[Se,...fe.items]}},{menus:{},expansions:{},items:[]})},qK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-field",placeholder:N.placeholder})),WK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-results"})),OS=(l,N,W,fe)=>{const Se=Li("primary-menu"),Be=TA(l,W.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=qK(fe),ft=S7(Se,Be.items,N,W,fe.isHorizontalMenu,qe),yt=WK(fe),Lt=Ue(Be.menus,(fn,Rn)=>S7(Rn,fn,N,W,!1,yt)),Ht=ws(Lt,Sa(Se,ft));return I.from(B2.tieredData(Se,Ht,Be.expansions))},SS=l=>!ht(l,"items"),g$="data-value",v9=(l,N,W,fe,Se)=>re(W,Be=>SS(Be)?{type:"togglemenuitem",...Se?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===fe,onAction:()=>{Ei.setValue(l,Be.value),sa(l,xm,{name:N}),Ra.focus(l)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>v9(l,N,Be.items,fe,Se)}),y9=(l,N)=>Oe(l,W=>SS(W)?Ot(W.value===N,W):y9(W.items,N)),v$=(l,N,W)=>{const fe=te(l.items,Lt=>!SS(Lt)),Se=N.shared.providers,Be=W.bind(Lt=>y9(l.items,Lt)).orThunk(()=>Qe(l.items).filter(SS)),qe=l.label.map(Lt=>H2(Lt,Se)),ft=Il.parts.field({dom:{},factory:{sketch:Lt=>g9({uid:Lt.uid,text:Be.map(Ht=>Ht.text),icon:I.none(),tooltip:I.none(),role:Ot(!fe,"combobox"),...fe?{}:{listRole:"listbox"},ariaLabel:l.label,fetch:(Ht,fn)=>{const Rn=v9(Ht,l.name,l.items,Ei.getValue(Ht),fe);fn(OS(Rn,A1.CLOSE_ON_EXECUTE,N,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Rc.config({}),X2(Be.map(Ht=>Ht.value),Ht=>Nr(Ht.element,g$),(Ht,fn)=>{y9(l.items,fn).each(Rn=>{Cr(Ht.element,g$,Rn.value),sa(Ht,Ug,{text:Rn.text})})})]},"tox-listbox",N.shared)}}),yt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([qe.toArray(),[yt]]),fieldBehaviours:ei([he.config({disabled:x(!l.enabled),onDisabled:Lt=>{Il.getField(Lt).each(he.disable)},onEnabled:Lt=>{Il.getField(Lt).each(he.enable)}})])})},YK=(l,N)=>({dom:{tag:"div",classes:l.classes},components:re(l.items,N.shared.interpreter)}),XK=(l,N)=>{const W=re(l.options,Se=>({dom:{tag:"option",value:Se.value,innerHtml:Se.text}})),fe=l.data.map(Se=>Sa("initialValue",Se)).getOr({});return{uid:l.uid,dom:{tag:"select",classes:l.selectClasses,attributes:l.selectAttributes},components:W,behaviours:Rd(l.selectBehaviours,[Ra.config({}),Ei.config({store:{mode:"manual",getValue:Se=>F(Se.element),setValue:(Se,Be)=>{const qe=Qe(l.options);ce(l.options,yt=>yt.value===Be).isSome()?G(Se.element,Be):Se.element.dom.selectedIndex===-1&&Be===""&&qe.each(yt=>G(Se.element,yt.value))},...fe}})])}},GK=Qp({name:"HtmlSelect",configFields:[pn("options"),Pd("selectBehaviours",[Ra,Ei]),Ar("selectClasses",[]),Ar("selectAttributes",{}),Yo("data")],factory:XK}),KK=(l,N,W)=>{const fe=re(l.items,yt=>({text:N.translate(yt.text),value:yt.value})),Se=l.label.map(yt=>H2(yt,N)),Be=Il.parts.field({dom:{},...W.map(yt=>({data:yt})).getOr({}),selectAttributes:{size:l.size},options:fe,factory:GK,selectBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Rc.config({}),Ka("selectbox-change",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),qe=l.size>1?I.none():I.some(Bg("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},N.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ye([[Be],qe.toArray()])};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([Se.toArray(),[ft]]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Il.getField(yt).each(he.disable)},onEnabled:yt=>{Il.getField(yt).each(he.enable)}}),Id()])})},JK=x([Ar("field1Name","field1"),Ar("field2Name","field2"),Ch("onLockedChange"),h0(["lockClass"]),Ar("locked",!1),Km.field("coupledFieldBehaviours",[Xs,Ei])]),y$=(l,N,W)=>Jo(l,N,W).bind(Xs.getCurrent),b$=(l,N)=>mh({factory:Il,name:l,overrides:W=>({fieldBehaviours:ei([Ka("coupled-input-behaviour",[Lo(vg(),fe=>{y$(fe,W,N).each(Se=>{Jo(fe,W,"lock").each(Be=>{us.isOn(Be)&&W.onLockedChange(fe,Se,Be)})})})])])})}),eJ=x([b$("field1","field2"),b$("field2","field1"),mh({factory:Rh,schema:[pn("dom")],name:"lock",overrides:l=>({buttonBehaviours:ei([us.config({selected:l.locked,toggleClass:l.markers.lockClass,aria:{mode:"pressed"}})])})})]),x$=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Km.augment(l.coupledFieldBehaviours,[Xs.config({find:I.some}),Ei.config({store:{mode:"manual",getValue:Se=>{const Be=Kb(Se,l,["field1","field2"]);return{[l.field1Name]:Ei.getValue(Be.field1()),[l.field2Name]:Ei.getValue(Be.field2())}},setValue:(Se,Be)=>{const qe=Kb(Se,l,["field1","field2"]);pt(Be,l.field1Name)&&Ei.setValue(qe.field1(),Be[l.field1Name]),pt(Be,l.field2Name)&&Ei.setValue(qe.field2(),Be[l.field2Name])}}})]),apis:{getField1:Se=>Jo(Se,l,"field1"),getField2:Se=>Jo(Se,l,"field2"),getLock:Se=>Jo(Se,l,"lock")}}),jg=Zh({name:"FormCoupledInputs",configFields:JK(),partFields:eJ(),factory:x$,apis:{getField1:(l,N)=>l.getField1(N),getField2:(l,N)=>l.getField2(N),getLock:(l,N)=>l.getLock(N)}}),tJ=l=>{const N={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},W=Se=>Se in N?N[Se]:1;let fe=l.value.toFixed(W(l.unit));return fe.indexOf(".")!==-1&&(fe=fe.replace(/\.?0*$/,"")),fe+l.unit},b9=l=>{const W=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(l);if(W!==null){const fe=parseFloat(W[1]),Se=W[2];return aa.value({value:fe,unit:Se})}else return aa.error(l)},x9=(l,N)=>{const W={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},fe=Se=>ht(W,Se);return l.unit===N?I.some(l.value):fe(l.unit)&&fe(N)?W[l.unit]===W[N]?I.some(l.value):I.some(l.value/W[l.unit]*W[N]):I.none()},_9=l=>I.none(),nJ=(l,N)=>W=>x9(W,N).map(fe=>({value:fe*l,unit:N})),rJ=(l,N)=>{const W=b9(l).toOptional(),fe=b9(N).toOptional();return ln(W,fe,(Se,Be)=>x9(Se,Be.unit).map(qe=>Be.value/qe).map(qe=>nJ(qe,Be.unit)).getOr(_9)).getOr(_9)},_$=(l,N)=>{let W=_9;const fe=Li("ratio-event"),Se=Bn=>Bg(Bn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Bn]},N.icons),Be=l.label.getOr("Constrain proportions"),qe=N.translate(Be),ft=jg.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[Se("lock"),Se("unlock")],buttonBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Vu.config(N.tooltips.getConfig({tooltipText:qe}))])}),yt=Bn=>({dom:{tag:"div",classes:["tox-form__group"]},components:Bn}),Lt=Bn=>Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],inputBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Ka("size-input-events",[Lo(Dp(),(er,cr)=>{sa(er,fe,{isField1:Bn})}),Lo(s0(),(er,cr)=>{sa(er,xm,{name:l.name})})])]),selectOnFocus:!1}),Ht=Bn=>({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(Bn))]}),fn=jg.parts.field1(yt([Il.parts.label(Ht("Width")),Lt(!0)])),Rn=jg.parts.field2(yt([Il.parts.label(Ht("Height")),Lt(!1)]));return jg.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[fn,Rn,yt([Ht($b),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Bn,er,cr)=>{b9(Ei.getValue(Bn)).each(Xr=>{W(Xr).each(br=>{Ei.setValue(er,tJ(br))})})},coupledFieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.disable),jg.getField2(Bn).bind(Il.getField).each(he.disable),jg.getLock(Bn).each(he.disable)},onEnabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.enable),jg.getField2(Bn).bind(Il.getField).each(he.enable),jg.getLock(Bn).each(he.enable)}}),Id(),Ka("size-input-events2",[Lo(fe,(Bn,er)=>{const cr=er.event.isField1,Xr=cr?jg.getField1(Bn):jg.getField2(Bn),br=cr?jg.getField2(Bn):jg.getField1(Bn),Fr=Xr.map(Ei.getValue).getOr(""),jr=br.map(Ei.getValue).getOr("");W=rJ(Fr,jr)})])])})},w$=(l,N,W)=>{const fe=I0.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l.label))]}),Se=I0.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=I0.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:l.min,maxX:l.max,getInitialValue:x(W.getOrThunk(()=>(Math.abs(l.max)-Math.abs(l.min))/2))},components:[fe,Se,Be],sliderBehaviours:ei([P1.self(),Ra.config({})]),onChoose:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})},onChange:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})}})},O$=(l,N)=>{const W=ft=>({dom:{tag:"th",innerHtml:N.translate(ft)}}),fe=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:re(ft,W)}]}),Se=ft=>({dom:{tag:"td",innerHtml:N.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:re(ft,Se)}),qe=ft=>({dom:{tag:"tbody"},components:re(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[fe(l.header),qe(l.cells)],behaviours:ei([Rc.config({}),Ra.config({})])}},I5=(l,N)=>{const W=l.label.map(Bn=>H2(Bn,N)),fe=[he.config({disabled:()=>l.disabled||N.isDisabled()}),Id(),ha.config({mode:"execution",useEnter:l.multiline!==!0,useControlEnter:l.multiline===!0,execute:Bn=>(Za(Bn,v5),I.some(!0))}),Ka("textfield-change",[Lo(vg(),(Bn,er)=>{sa(Bn,xm,{name:l.name})}),Lo(l0(),(Bn,er)=>{sa(Bn,xm,{name:l.name})})]),Rc.config({})],Se=l.validation.map(Bn=>Dv.config({getRoot:er=>Zr(er.element),invalidClass:"tox-invalid",validator:{validate:er=>{const cr=Ei.getValue(er),Xr=Bn.validator(cr);return Lh.pure(Xr===!0?aa.value(cr):aa.error(Xr))},validateOnLoad:Bn.validateOnLoad}})).toArray(),Be=l.placeholder.fold(x({}),Bn=>({placeholder:N.translate(Bn)})),qe=l.inputMode.fold(x({}),Bn=>({inputmode:Bn})),ft={...Be,...qe,"data-mce-name":l.name},yt=Il.parts.field({tag:l.multiline===!0?"textarea":"input",...l.data.map(Bn=>({data:Bn})).getOr({}),inputAttributes:ft,inputClasses:[l.classname],inputBehaviours:ei(ye([fe,Se])),selectOnFocus:!1,factory:Ww}),Lt=l.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[yt]}:yt,fn=(l.flex?["tox-form__group--stretched"]:[]).concat(l.maximized?["tox-form-group--maximize"]:[]),Rn=[he.config({disabled:()=>l.disabled||N.isDisabled(),onDisabled:Bn=>{Il.getField(Bn).each(he.disable)},onEnabled:Bn=>{Il.getField(Bn).each(he.enable)}}),Id()];return g5(W,Lt,fn,Rn)},oJ=(l,N,W)=>I5({name:l.name,multiline:!1,label:l.label,inputMode:l.inputMode,placeholder:l.placeholder,flex:!1,disabled:!l.enabled,classname:"tox-textfield",validation:I.none(),maximized:l.maximized,data:W},N),iJ=(l,N,W)=>I5({name:l.name,multiline:!0,label:l.label,inputMode:I.none(),placeholder:l.placeholder,flex:!0,disabled:!l.enabled,classname:"tox-textarea",validation:I.none(),maximized:l.maximized,data:W},N),D5=(l,N)=>N.getAnimationRoot.fold(()=>l.element,W=>W(l)),px=l=>l.dimension.property,e_=(l,N)=>l.dimension.getDimension(N),CA=(l,N)=>{const W=D5(l,N);Oc(W,[N.shrinkingClass,N.growingClass])},w9=(l,N)=>{Zc(l.element,N.openClass),uc(l.element,N.closedClass),xr(l.element,px(N),"0px"),yl(l.element)},O9=(l,N)=>{Zc(l.element,N.closedClass),uc(l.element,N.openClass),zi(l.element,px(N))},S9=(l,N,W,fe)=>{W.setCollapsed(),xr(l.element,px(N),e_(N,l.element)),CA(l,N),w9(l,N),N.onStartShrink(l),N.onShrunk(l)},S$=(l,N,W,fe)=>{const Se=fe.getOrThunk(()=>e_(N,l.element));W.setCollapsed(),xr(l.element,px(N),Se),yl(l.element);const Be=D5(l,N);Zc(Be,N.growingClass),uc(Be,N.shrinkingClass),w9(l,N),N.onStartShrink(l)},k$=(l,N,W)=>{const fe=e_(N,l.element);(fe==="0px"?S9:S$)(l,N,W,I.some(fe))},T$=(l,N,W)=>{const fe=D5(l,N),Se=rp(fe,N.shrinkingClass),Be=e_(N,l.element);O9(l,N);const qe=e_(N,l.element);(Se?()=>{xr(l.element,px(N),Be),yl(l.element)}:()=>{w9(l,N)})(),Zc(fe,N.shrinkingClass),uc(fe,N.growingClass),O9(l,N),xr(l.element,px(N),qe),W.setExpanded(),N.onStartGrow(l)},C$=(l,N,W)=>{if(W.isExpanded()){zi(l.element,px(N));const fe=e_(N,l.element);xr(l.element,px(N),fe)}},aJ=(l,N,W)=>{W.isExpanded()||T$(l,N,W)},sJ=(l,N,W)=>{W.isExpanded()&&k$(l,N,W)},$a=(l,N,W)=>{W.isExpanded()&&S9(l,N,W)},B5=(l,N,W)=>W.isExpanded(),A$=(l,N,W)=>W.isCollapsed(),k9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.growingClass)===!0},T9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.shrinkingClass)===!0};var z5=Object.freeze({__proto__:null,refresh:C$,grow:aJ,shrink:sJ,immediateShrink:$a,hasGrown:B5,hasShrunk:A$,isGrowing:k9,isShrinking:T9,isTransitioning:(l,N,W)=>k9(l,N)||T9(l,N),toggleGrow:(l,N,W)=>{(W.isExpanded()?k$:T$)(l,N,W)},disableTransitions:CA,immediateGrow:(l,N,W)=>{W.isExpanded()||(O9(l,N),xr(l.element,px(N),e_(N,l.element)),CA(l,N),W.setExpanded(),N.onStartGrow(l),N.onGrown(l))}}),fJ=Object.freeze({__proto__:null,exhibit:(l,N,W)=>{const fe=N.expanded;return np(fe?{classes:[N.openClass],styles:{}}:{classes:[N.closedClass],styles:Sa(N.dimension.property,"0px")})},events:(l,N)=>Rl([ly(rm(),(W,fe)=>{fe.event.raw.propertyName===l.dimension.property&&(CA(W,l),N.isExpanded()&&zi(W.element,l.dimension.property),(N.isExpanded()?l.onGrown:l.onShrunk)(W))})])}),dJ=[pn("closedClass"),pn("openClass"),pn("shrinkingClass"),pn("growingClass"),Yo("getAnimationRoot"),Ss("onShrunk"),Ss("onStartShrink"),Ss("onGrown"),Ss("onStartGrow"),Ar("expanded",!1),In("dimension",bn("property",{width:[Sl("property","width"),Sl("getDimension",l=>_s(l)+"px")],height:[Sl("property","height"),Sl("getDimension",l=>il(l)+"px")]}))],M$=Object.freeze({__proto__:null,init:l=>{const N=wi(l.expanded),W=()=>"expanded: "+N.get();return Hd({isExpanded:()=>N.get()===!0,isCollapsed:()=>N.get()===!1,setCollapsed:T(N.set,!1),setExpanded:T(N.set,!0),readState:W})}});const Tp=id({fields:dJ,name:"sliding",active:fJ,apis:z5,state:M$}),C9=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setActive:N=>{const W=l.element;N?(uc(W,"tox-tbtn--enabled"),Cr(W,"aria-pressed",!0)):(Zc(W,"tox-tbtn--enabled"),Qt(W,"aria-pressed"))},isActive:()=>rp(l.element,"tox-tbtn--enabled"),setText:N=>{sa(l,Ug,{text:N})},setIcon:N=>sa(l,J2,{icon:N})}),N5=(l,N,W,fe,Se=!0,Be)=>g9({text:l.text,icon:l.icon,tooltip:l.tooltip,ariaLabel:l.tooltip,searchable:l.search.isSome(),role:fe,fetch:(qe,ft)=>{const yt={pattern:l.search.isSome()?sG(qe):""};l.fetch(Lt=>{ft(OS(Lt,A1.CLOSE_ON_EXECUTE,W,{isHorizontalMenu:!1,search:l.search}))},yt,C9(qe))},onSetup:l.onSetup,getApi:C9,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...Se?[Rc.config({})]:[]]},N,W.shared,Be),hJ=(l,N,W)=>{const fe=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),W.shared.getSink().each(yt=>{N().getOpt(yt).each(Lt=>{Md(Lt.element),sa(Lt,zy,{name:Be.name,value:Be.storage.get()})})})},Se=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(re(l,qe=>{const ft=qe.text.fold(()=>({}),yt=>({text:yt}));return{type:qe.type,active:!1,...ft,onAction:fe(qe),onSetup:Se(qe)}}))}},E$=l=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":l}},components:[Po(l)]}),P$=Li("leaf-label-event-id"),A9=({leaf:l,onLeafAction:N,visible:W,treeId:fe,selectedId:Se,backstage:Be})=>{const qe=l.menu.map(yt=>N5(yt,"tox-mbtn",Be,I.none(),W)),ft=[E$(l.title)];return qe.each(yt=>ft.push(yt)),Rh.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(W?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:yt=>{N(l.id),yt.getSystem().broadcastOn([`update-active-item-${fe}`],{value:l.id})},eventOrder:{[nm()]:[P$,"keying"]},buttonBehaviours:ei([...W?[Rc.config({})]:[],us.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Ad.config({channels:{[`update-active-item-${fe}`]:{onReceive:(yt,Lt)=>{(Lt.value===l.id?us.on:us.off)(yt)}}}}),Ka(P$,[wc((yt,Lt)=>{Se.each(Ht=>{(Ht===l.id?us.on:us.off)(yt)})}),Lo(nm(),(yt,Lt)=>{const Ht=Lt.event.raw.code==="ArrowLeft",fn=Lt.event.raw.code==="ArrowRight";Ht?(Fl(yt.element,".tox-tree--directory").each(Rn=>{yt.getSystem().getByDom(Rn).each(Bn=>{Fc(Rn,".tox-tree--directory__label").each(er=>{Bn.getSystem().getByDom(er).each(Ra.focus)})})}),Lt.stop()):fn&&Lt.stop()})])])})},pJ=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:W},N),mJ=(l,N)=>pJ(l,N,[]),R$=Li("directory-label-event-id"),gJ=({directory:l,visible:N,noChildren:W,backstage:fe})=>{const Se=l.menu.map(ft=>N5(ft,"tox-mbtn",fe,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[mJ("chevron-right",fe.shared.providers.icons)]},E$(l.title)];Se.each(ft=>{Be.push(ft)});const qe=ft=>{Fl(ft.element,".tox-tree--directory").each(yt=>{ft.getSystem().getByDom(yt).each(Lt=>{const Ht=!us.isOn(Lt);us.toggle(Lt),sa(ft,"expand-tree-node",{expanded:Ht,node:l.id})})})};return Rh.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(N?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[nm()]:[R$,"keying"]},buttonBehaviours:ei([...N?[Rc.config({})]:[],Ka(R$,[Lo(nm(),(ft,yt)=>{const Lt=yt.event.raw.code==="ArrowRight",Ht=yt.event.raw.code==="ArrowLeft";Lt&&W&&yt.stop(),(Lt||Ht)&&Fl(ft.element,".tox-tree--directory").each(fn=>{ft.getSystem().getByDom(fn).each(Rn=>{!us.isOn(Rn)&&Lt||us.isOn(Rn)&&Ht?(qe(ft),yt.stop()):Ht&&!us.isOn(Rn)&&(Fl(Rn.element,".tox-tree--directory").each(Bn=>{Fc(Bn,".tox-tree--directory__label").each(er=>{Rn.getSystem().getByDom(er).each(Ra.focus)})}),yt.stop())})})})])])})},vJ=({children:l,onLeafAction:N,visible:W,treeId:fe,expandedIds:Se,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:l.map(ft=>ft.type==="leaf"?A9({leaf:ft,selectedId:Be,onLeafAction:N,visible:W,treeId:fe,backstage:qe}):M9({directory:ft,expandedIds:Se,selectedId:Be,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:qe})),behaviours:ei([Tp.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:W}),Fa.config({})])}),L$=Li("directory-event-id"),M9=({directory:l,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:Se,expandedIds:Be,selectedId:qe})=>{const{children:ft}=l,yt=wi(Be),Lt=fn=>ft.map(Rn=>Rn.type==="leaf"?A9({leaf:Rn,selectedId:qe,onLeafAction:N,visible:fn,treeId:fe,backstage:Se}):M9({directory:Rn,expandedIds:yt.get(),selectedId:qe,onLeafAction:N,labelTabstopping:fn,treeId:fe,backstage:Se})),Ht=Be.includes(l.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[gJ({directory:l,visible:W,noChildren:l.children.length===0,backstage:Se}),vJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:N,visible:Ht,treeId:fe,backstage:Se})],behaviours:ei([Ka(L$,[wc((fn,Rn)=>{us.set(fn,Ht)}),Lo("expand-tree-node",(fn,Rn)=>{const{expanded:Bn,node:er}=Rn.event;yt.set(Bn?[...yt.get(),er]:yt.get().filter(cr=>cr!==er))})]),us.config({...l.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(fn,Rn)=>{const Bn=fn.components()[1],er=Lt(Rn);Rn?Tp.grow(Bn):Tp.shrink(Bn),Fa.set(Bn,er)}})])}},yJ=Li("tree-event-id"),bJ=(l,N)=>{const W=l.onLeafAction.getOr(v),fe=l.onToggleExpand.getOr(v),Se=l.defaultExpandedIds,Be=wi(Se),qe=wi(l.defaultSelectedId),ft=Li("tree-id"),yt=(Lt,Ht)=>l.items.map(fn=>fn.type==="leaf"?A9({leaf:fn,selectedId:Lt,onLeafAction:W,visible:!0,treeId:ft,backstage:N}):M9({directory:fn,selectedId:Lt,onLeafAction:W,expandedIds:Ht,labelTabstopping:!0,treeId:ft,backstage:N}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:yt(qe.get(),Be.get()),behaviours:ei([ha.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ka(yJ,[Lo("expand-tree-node",(Lt,Ht)=>{const{expanded:fn,node:Rn}=Ht.event;Be.set(fn?[...Be.get(),Rn]:Be.get().filter(Bn=>Bn!==Rn)),fe(Be.get(),{expanded:fn,node:Rn})})]),Ad.config({channels:{[`update-active-item-${ft}`]:{onReceive:(Lt,Ht)=>{qe.set(I.some(Ht.value)),Fa.set(Lt,yt(I.some(Ht.value),Be.get()))}}}}),Fa.config({})])}};var xJ=Object.freeze({__proto__:null,events:(l,N)=>{const fe=l.stream.streams.setup(l,N);return Rl([Lo(l.event,fe),xg(()=>N.cancel())].concat(l.cancelEvent.map(Se=>[Lo(Se,()=>N.cancel())]).getOr([])))}});const I$=l=>{const N=wi(null);return Hd({readState:()=>({timer:N.get()!==null?"set":"unset"}),setTimer:Be=>{N.set(Be)},cancel:()=>{const Be=N.get();Be!==null&&Be.cancel()}})};var _J=Object.freeze({__proto__:null,throttle:I$,init:l=>l.stream.streams.state(l)});const wJ=(l,N)=>{const W=l.stream,fe=o9(l.onStream,W.delay);return N.setTimer(fe),(Se,Be)=>{fe.throttle(Se,Be),W.stopEvent&&Be.stop()}};var OJ=[In("stream",bn("mode",{throttle:[pn("delay"),Ar("stopEvent",!0),Sl("streams",{setup:wJ,state:I$})]})),Ar("event","input"),Yo("cancelEvent"),Ch("onStream")];const E9=id({fields:OJ,name:"streaming",active:xJ,state:_J}),F5=(l,N,W)=>{const fe=Ei.getValue(W);Ei.setValue(N,fe),B$(N)},D$=(l,N)=>{const W=l.element,fe=F(W),Se=W.dom;Nr(W,"type")!=="number"&&N(Se,fe)},B$=l=>{D$(l,(N,W)=>N.setSelectionRange(W.length,W.length))},SJ=(l,N)=>{D$(l,(W,fe)=>W.setSelectionRange(N,fe.length))},kJ=(l,N,W)=>{if(l.selectsOver){const fe=Ei.getValue(N),Se=l.getDisplayText(fe),Be=Ei.getValue(W);return l.getDisplayText(Be).indexOf(Se)===0?I.some(()=>{F5(l,N,W),SJ(N,Se.length)}):I.none()}else return I.none()},P9=x("alloy.typeahead.itemexecute"),TJ=(l,N,W,fe)=>{const Se=(fn,Rn,Bn)=>{l.previewing.set(!1);const er=Ku.getCoupled(fn,"sandbox");if(Ys.isOpen(er))Xs.getCurrent(er).each(cr=>{ta.getHighlighted(cr).fold(()=>{Bn(cr)},()=>{zm(er,cr.element,"keydown",Rn)})});else{const cr=Xr=>{Xs.getCurrent(Xr).each(Bn)};hS(l,qe(fn),fn,er,fe,cr,Gu.HighlightMenuAndItem).get(v)}},Be=Rz(l),qe=fn=>Rn=>Rn.map(Bn=>{const er=ot(Bn.menus),cr=ve(er,br=>me(br.items,Fr=>Fr.type==="item"));return Ei.getState(fn).update(re(cr,br=>br.data)),Bn}),ft=fn=>Xs.getCurrent(fn),yt="typeaheadevents",Lt=[Ra.config({}),Ei.config({onSetValue:l.onSetValue,store:{mode:"dataset",getDataKey:fn=>F(fn.element),getFallbackEntry:fn=>({value:fn,meta:{}}),setValue:(fn,Rn)=>{G(fn.element,l.model.getDisplayText(Rn))},...l.initialData.map(fn=>Sa("initialValue",fn)).getOr({})}}),E9.config({stream:{mode:"throttle",delay:l.responseTime,stopEvent:!1},onStream:(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");if(Ra.isFocused(fn)&&F(fn.element).length>=l.minChars){const cr=ft(Bn).bind(br=>ta.getHighlighted(br).map(Ei.getValue));l.previewing.set(!0);const Xr=br=>{ft(Bn).each(Fr=>{cr.fold(()=>{l.model.selectsOver&&ta.highlightFirst(Fr)},jr=>{ta.highlightBy(Fr,Ro=>Ei.getValue(Ro).value===jr.value),ta.getHighlighted(Fr).orThunk(()=>(ta.highlightFirst(Fr),I.none()))})})};hS(l,qe(fn),fn,Bn,fe,Xr,Gu.HighlightJustMenu).get(v)}},cancelEvent:N_()}),ha.config({mode:"special",onDown:(fn,Rn)=>(Se(fn,Rn,ta.highlightFirst),I.some(!0)),onEscape:fn=>{const Rn=Ku.getCoupled(fn,"sandbox");return Ys.isOpen(Rn)?(Ys.close(Rn),I.some(!0)):I.none()},onUp:(fn,Rn)=>(Se(fn,Rn,ta.highlightLast),I.some(!0)),onEnter:fn=>{const Rn=Ku.getCoupled(fn,"sandbox"),Bn=Ys.isOpen(Rn);if(Bn&&!l.previewing.get())return ft(Rn).bind(er=>ta.getHighlighted(er)).map(er=>(sa(fn,P9(),{item:er}),!0));{const er=Ei.getValue(fn);return Za(fn,N_()),l.onExecute(Rn,fn,er),Bn&&Ys.close(Rn),I.some(!0)}}}),us.config({toggleClass:l.markers.openClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:fn=>w7(l,fn,{onOpen:()=>us.on(fn),onClose:()=>{l.lazyTypeaheadComp.get().each(Rn=>Qt(Rn.element,"aria-activedescendant")),us.off(fn)}})}}),Ka(yt,[wc(fn=>{l.lazyTypeaheadComp.set(I.some(fn))}),xg(fn=>{l.lazyTypeaheadComp.set(I.none())}),Sh(fn=>{const Rn=v;b7(l,qe(fn),fn,fe,Rn,Gu.HighlightMenuAndItem).get(v)}),Lo(P9(),(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");F5(l.model,fn,Rn.event.item),Za(fn,N_()),l.onItemExecute(fn,Bn,Rn.event.item,Ei.getValue(fn)),Ys.close(Bn),B$(fn)})].concat(l.dismissOnBlur?[Lo(kf(),fn=>{const Rn=Ku.getCoupled(fn,"sandbox");Wd(Rn.element).isNone()&&Ys.close(Rn)})]:[]))],Ht={[zp()]:[Ei.name(),E9.name(),yt],...l.eventOrder};return{uid:l.uid,dom:Iz(ws(l,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rd(l.typeaheadBehaviours,Lt)},eventOrder:Ht}},z$=x([Yo("lazySink"),pn("fetch"),Ar("minChars",5),Ar("responseTime",1e3),Ss("onOpen"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),Ar("layouts",I.none()),Ar("eventOrder",{}),Tt("model",{},[Ar("getDisplayText",l=>l.meta!==void 0&&l.meta.text!==void 0?l.meta.text:l.value),Ar("selectsOver",!0),Ar("populateFromBrowse",!0)]),Ss("onSetValue"),kd("onExecute"),Ss("onItemExecute"),Ar("inputClasses",[]),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("matchWidth",!0),Ar("useMinWidth",!1),Ar("dismissOnBlur",!0),h0(["openClass"]),Yo("initialData"),Yo("listRole"),Pd("typeaheadBehaviours",[Ra,Ei,E9,ha,us,Ku]),gn("lazyTypeaheadComp",()=>wi(I.none)),gn("previewing",()=>wi(!0))].concat(CP()).concat(oA())),CJ=x([Jm({schema:[Um()],name:"menu",overrides:l=>({fakeFocus:!0,onHighlightItem:(N,W,fe)=>{l.previewing.get()?l.lazyTypeaheadComp.get().each(Se=>{kJ(l.model,Se,fe).fold(()=>{l.model.selectsOver?(ta.dehighlight(W,fe),l.previewing.set(!0)):l.previewing.set(!1)},Be=>{Be(),l.previewing.set(!1)})}):l.lazyTypeaheadComp.get().each(Se=>{l.model.populateFromBrowse&&F5(l.model,Se,fe),Eo(fe.element,"id").each(Be=>Cr(Se.element,"aria-activedescendant",Be))})},onExecute:(N,W)=>l.lazyTypeaheadComp.get().map(fe=>(sa(fe,P9(),{item:W}),!0)),onHover:(N,W)=>{l.previewing.set(!1),l.lazyTypeaheadComp.get().each(fe=>{l.model.populateFromBrowse&&F5(l.model,fe,W)})}})})]),N$=Zh({name:"Typeahead",configFields:z$(),partFields:CJ(),factory:TJ}),R1=l=>({...l,toCached:()=>R1(l.toCached()),bindFuture:yt=>R1(l.bind(Lt=>Lt.fold(Ht=>Lh.pure(aa.error(Ht)),Ht=>yt(Ht)))),bindResult:yt=>R1(l.map(Lt=>Lt.bind(yt))),mapResult:yt=>R1(l.map(Lt=>Lt.map(yt))),mapError:yt=>R1(l.map(Lt=>Lt.mapError(yt))),foldResult:(yt,Lt)=>l.map(Ht=>Ht.fold(yt,Lt)),withTimeout:(yt,Lt)=>R1(Lh.nu(Ht=>{let fn=!1;const Rn=setTimeout(()=>{fn=!0,Ht(aa.error(Lt()))},yt);l.get(Bn=>{fn||(clearTimeout(Rn),Ht(Bn))})}))}),R9=l=>R1(Lh.nu(l)),L9=l=>R1(Lh.pure(aa.value(l))),EJ={nu:R9,wrap:R1,pure:L9,value:L9,error:l=>R1(Lh.pure(aa.error(l))),fromResult:l=>R1(Lh.pure(l)),fromFuture:l=>R1(l.map(aa.value)),fromPromise:l=>R9(N=>{l.then(W=>{N(aa.value(W))},W=>{N(aa.error(W))})})},$5=(l,N,W=[],fe,Se,Be,qe)=>{const ft=N.fold(()=>({}),Ht=>({action:Ht})),yt={buttonBehaviours:ei([E1.button(()=>!l.enabled||qe.isDisabled()),Id(),Rc.config({}),...Be.map(Ht=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(Ht)}))).toArray(),Ka("button press",[V_("click")])].concat(W)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},Lt=ws(yt,{dom:fe});return ws(Lt,{components:Se})},PJ=(l,N,W,fe=[],Se)=>{const Be=l.tooltip.map(Lt=>({"aria-label":W.translate(Lt)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":Se}},ft=l.icon.map(Lt=>kA(Lt,W.icons)),yt=Kw([ft]);return $5(l,N,fe,qe,yt,l.tooltip,W)},I9=l=>{switch(l){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},L1=(l,N,W,fe=[],Se=[])=>{const Be=W.translate(l.text),qe=l.icon.map(Bn=>kA(Bn,W.icons)),ft=[qe.getOrThunk(()=>Po(Be))],yt=l.buttonType.getOr(!l.primary&&!l.borderless?"secondary":"primary"),fn={tag:"button",classes:[...I9(yt),...qe.isSome()?["tox-button--icon"]:[],...l.borderless?["tox-button--naked"]:[],...Se],attributes:{"aria-label":Be,"data-mce-name":l.text}},Rn=l.icon.map(x(Be));return $5(l,N,fe,fn,ft,Rn,W)},V5=(l,N,W,fe=[],Se=[])=>{const Be=L1(l,I.some(N),W,fe,Se);return Rh.sketch(Be)},U5=(l,N)=>W=>{N==="custom"?sa(W,zy,{name:l,value:{}}):N==="submit"?Za(W,v5):N==="cancel"?Za(W,cx):console.error("Unknown button type: ",N)},RJ=(l,N)=>N==="menu",D9=(l,N)=>N==="custom"||N==="cancel"||N==="submit",LJ=(l,N)=>N==="togglebutton",B9=(l,N,W)=>{var fe,Se;const Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),qe=jr=>{sa(jr,zy,{name:l.name,value:{setIcon:Ro=>{Be.map(ko=>ko.getOpt(jr).each(_i=>{Fa.set(_i,[K2(Ro,N.icons)])}))}}})},ft=l.buttonType.getOr(l.primary?"primary":"secondary"),yt={...l,name:(fe=l.name)!==null&&fe!==void 0?fe:"",primary:ft==="primary",tooltip:l.tooltip,enabled:(Se=l.enabled)!==null&&Se!==void 0?Se:!1,borderless:!1},Lt=yt.tooltip.or(l.text).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Ht=I9(ft??"secondary"),fn=l.icon.isSome()&&l.text.isSome(),Rn={tag:"button",classes:[...Ht.concat(l.icon.isSome()?["tox-button--icon"]:[]),...l.active?["tox-button--enabled"]:[],...fn?["tox-button--icon-and-text"]:[]],attributes:{...Lt,...a(W)?{"data-mce-name":W}:{}}},Bn=[],er=N.translate(l.text.getOr("")),cr=Po(er),br=[...Kw([Be.map(jr=>jr.asSpec())]),...l.text.isSome()?[cr]:[]],Fr=$5(yt,I.some(qe),Bn,Rn,br,l.tooltip,N);return Rh.sketch(Fr)},j5=(l,N,W)=>{if(RJ(l,N)){const fe=()=>qe,Se=l,Be={...l,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(l.enabled),v),fetch:hJ(Se.items,fe,W)},qe=ml(N5(Be,"tox-tbtn",W,I.none(),!0,l.text.or(l.tooltip).getOrUndefined()));return qe.asSpec()}else if(D9(l,N)){const fe=U5(l.name,N),Se={...l,borderless:!1};return V5(Se,fe,W.shared.providers,[])}else{if(LJ(l,N))return B9(l,W.shared.providers,l.text.or(l.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",N),new Error("Unknown footer button type")}},z9=(l,N)=>{const W=U5(l.name,"custom");return fF(I.none(),Il.parts.field({factory:Rh,...L1(l,I.some(W),N,[xA(""),P1.self()])}))},IJ={type:"separator"},DJ=l=>({type:"menuitem",value:l.url,text:l.title,meta:{attach:l.attach},onAction:v}),AA=(l,N)=>({type:"menuitem",value:N,text:l,meta:{attach:void 0},onAction:v}),BJ=l=>re(l,DJ),zJ=(l,N)=>me(N,W=>W.type===l),MA=(l,N)=>BJ(zJ(l,N)),NJ=l=>MA("header",l.targets),FJ=l=>MA("anchor",l.targets),$$=l=>I.from(l.anchorTop).map(N=>AA("",N)).toArray(),V$=l=>I.from(l.anchorBottom).map(N=>AA("",N)).toArray(),$J=l=>re(l,N=>AA(N,N)),VJ=l=>se(l,(N,W)=>N.length===0||W.length===0?N.concat(W):N.concat(IJ,W),[]),N9=(l,N)=>{const W=l.toLowerCase();return me(N,fe=>{var Se;const Be=fe.meta!==void 0&&fe.meta.text!==void 0?fe.meta.text:fe.text,qe=(Se=fe.value)!==null&&Se!==void 0?Se:"";return xt(Be.toLowerCase(),W)||xt(qe.toLowerCase(),W)})},UJ=(l,N,W)=>{var fe,Se;const Be=Ei.getValue(N),qe=(Se=(fe=Be==null?void 0:Be.meta)===null||fe===void 0?void 0:fe.text)!==null&&Se!==void 0?Se:Be.value;return W.getLinkInformation().fold(()=>[],yt=>{const Lt=N9(qe,$J(W.getHistory(l)));return l==="file"?VJ([Lt,N9(qe,NJ(yt)),N9(qe,ye([$$(yt),FJ(yt),V$(yt)]))]):Lt})},F9=Li("aria-invalid"),Bv=(l,N,W,fe)=>{const Se=N.shared.providers,Be=Fr=>{const jr=Ei.getValue(Fr);W.addToHistory(jr.value,l.filetype)},qe={...fe.map(Fr=>({initialData:Fr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":F9,type:"url"},minChars:0,responseTime:0,fetch:Fr=>{const jr=UJ(l.filetype,Fr,W),Ro=OS(jr,A1.BUBBLE_TO_SANDBOX,N,{isHorizontalMenu:!1,search:I.none()});return Lh.pure(Ro)},getHotspot:Fr=>er.getOpt(Fr),onSetValue:(Fr,jr)=>{Fr.hasConfigured(Dv)&&Dv.run(Fr).get(v)},typeaheadBehaviours:ei([...W.getValidationHandler().map(Fr=>Dv.config({getRoot:jr=>Zr(jr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(jr,Ro)=>{Ht.getOpt(jr).each(ko=>{Cr(ko.element,"title",Se.translate(Ro))})}},validator:{validate:jr=>{const Ro=Ei.getValue(jr);return EJ.nu(ko=>{Fr({type:l.filetype,url:Ro.value},_i=>{if(_i.status==="invalid"){const Pi=aa.error(_i.message);ko(Pi)}else{const Pi=aa.value(_i.message);ko(Pi)}})})},validateOnLoad:!1}})).toArray(),he.config({disabled:()=>!l.enabled||Se.isDisabled()}),Rc.config({}),Ka("urlinput-events",[Lo(vg(),Fr=>{const jr=F(Fr.element),Ro=jr.trim();Ro!==jr&&G(Fr.element,Ro),l.filetype==="file"&&sa(Fr,xm,{name:l.name})}),Lo(s0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)}),Lo(l0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)})])]),eventOrder:{[vg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Fr=>Fr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:N.shared.getSink,parts:{menu:Xk(!1,1,"normal")},onExecute:(Fr,jr,Ro)=>{sa(jr,v5,{})},onItemExecute:(Fr,jr,Ro,ko)=>{Be(Fr),sa(Fr,xm,{name:l.name})}},ft=Il.parts.field({...qe,factory:N$}),yt=l.label.map(Fr=>H2(Fr,Se)),Ht=ml(((Fr,jr,Ro=Fr,ko=Fr)=>Bg(Ro,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Fr],attributes:{title:Se.translate(ko),"aria-live":"polite",...jr.fold(()=>({}),_i=>({id:_i}))}},Se.icons))("invalid",I.some(F9),"warning")),fn=ml({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ht.asSpec()]}),Rn=W.getUrlPicker(l.filetype),Bn=Li("browser.url.event"),er=ml({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,fn.asSpec()],behaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled()})])}),cr=ml(V5({name:l.name,icon:I.some("browse"),text:l.picker_text.or(l.label).getOr(""),enabled:l.enabled,primary:!1,buttonType:I.none(),borderless:!0},Fr=>Za(Fr,Bn),Se,[],["tox-browse-url"])),Xr=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ye([[er.asSpec()],Rn.map(()=>cr.asSpec()).toArray()])}),br=Fr=>{Xs.getCurrent(Fr).each(jr=>{const Ro=Ei.getValue(jr),ko={fieldname:l.name,...Ro};Rn.each(_i=>{_i(ko).get(Pi=>{Ei.setValue(jr,Pi),sa(Fr,xm,{name:l.name})})})})};return Il.sketch({dom:kG(),components:yt.toArray().concat([Xr()]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled(),onDisabled:Fr=>{Il.getField(Fr).each(he.disable),cr.getOpt(Fr).each(he.disable)},onEnabled:Fr=>{Il.getField(Fr).each(he.enable),cr.getOpt(Fr).each(he.enable)}}),Id(),Ka("url-input-events",[Lo(Bn,br)])])})},$9=(l,N)=>{const W=yP(l.icon,N.icons);return Iv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${l.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:l.url?void 0:W},components:l.url?[Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:W,attributes:{title:N.translate(l.iconTooltip)}},action:fe=>sa(fe,zy,{name:"alert-banner",value:l.url}),buttonBehaviours:ei([E6()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:N.translate(l.text)}}]})},jJ=(l,N)=>{l.dom.checked=N},QJ=l=>l.dom.checked,HJ=(l,N,W)=>{const fe=yt=>(yt.element.dom.click(),I.some(!0)),Se=Il.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:ei([P1.self(),he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Zr(yt.element).each(Lt=>uc(Lt,"tox-checkbox--disabled"))},onEnabled:yt=>{Zr(yt.element).each(Lt=>Zc(Lt,"tox-checkbox--disabled"))}}),Rc.config({}),Ra.config({}),t9(W,QJ,jJ),ha.config({mode:"special",onEnter:fe,onSpace:fe,stopSpaceKeyup:!0}),Ka("checkbox-events",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),Be=Il.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Po(N.translate(l.label))],behaviours:ei([bS.config({})])}),qe=yt=>Bg(yt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+yt]},N.icons),ft=ml({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Il.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[Se,ft.asSpec(),Be],fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id()])})},ZJ=(l,N)=>{const W=["tox-form__group",...l.stretched?["tox-form__group--stretched"]:[]],fe=Ka("htmlpanel",[wc(Se=>{l.onInit(Se.element.dom)})]);return l.presets==="presentation"?Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html},containerBehaviours:ei([Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Se=>{qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element)).each(Be=>{Eo(Be,"data-mce-tooltip").each(qe=>{Vu.setComponents(Se,N.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:Se=>({type:"node",node:qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element).filter(Be=>Eo(Be,"data-mce-tooltip").isSome())),root:Se.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),fe])}):Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html,attributes:{role:"document"}},containerBehaviours:ei([Rc.config({}),Ra.config({}),fe])})},Dd=l=>(N,W,fe,Se,Be)=>Ge(W,"name").fold(()=>l(W,Se,I.none(),Be),qe=>N.field(qe,l(W,Se,Ge(fe,qe),Be))),U$=l=>(N,W,fe,Se,Be)=>{const qe=ws(W,{source:"dynamic"});return Dd(l)(N,qe,fe,Se,Be)},j$={bar:Dd((l,N)=>xG(l,N.shared)),collection:Dd((l,N,W)=>yS(l,N.shared.providers,W)),alertbanner:Dd((l,N)=>$9(l,N.shared.providers)),input:Dd((l,N,W)=>oJ(l,N.shared.providers,W)),textarea:Dd((l,N,W)=>iJ(l,N.shared.providers,W)),label:Dd((l,N,W,fe)=>f$(l,N.shared,fe)),iframe:U$((l,N,W)=>FK(l,N.shared.providers,W)),button:Dd((l,N)=>z9(l,N.shared.providers)),checkbox:Dd((l,N,W)=>HJ(l,N.shared.providers,W)),colorinput:Dd((l,N,W)=>IG(l,N.shared,N.colorinput,W)),colorpicker:Dd((l,N,W)=>MK(l,N.shared.providers,W)),dropzone:Dd((l,N,W)=>r9(l,N.shared.providers,W)),grid:Dd((l,N)=>RK(l,N.shared)),listbox:Dd((l,N,W)=>v$(l,N,W)),selectbox:Dd((l,N,W)=>KK(l,N.shared.providers,W)),sizeinput:Dd((l,N)=>_$(l,N.shared.providers)),slider:Dd((l,N,W)=>w$(l,N.shared.providers,W)),urlinput:Dd((l,N,W)=>Bv(l,N,N.urlinput,W)),customeditor:Dd(n$),htmlpanel:Dd((l,N)=>ZJ(l,N.shared.providers)),imagepreview:Dd((l,N,W)=>f9(l,W)),table:Dd((l,N)=>O$(l,N.shared.providers)),tree:Dd((l,N)=>bJ(l,N)),panel:Dd((l,N)=>YK(l,N))},$fe={field:(l,N)=>N,record:x([])},qJ=(l,N,W,fe,Se)=>{const Be=ws(fe,{shared:{interpreter:qe=>vh(l,qe,W,Be,Se)}});return vh(l,N,W,Be,Se)},vh=(l,N,W,fe,Se)=>Ge(j$,N.type).fold(()=>(console.error(`Unknown factory type "${N.type}", defaulting to container: `,N),N),Be=>Be(l,N,W,fe,Se)),EA=(l,N,W,fe)=>vh($fe,l,N,W,fe),t_="layout-inset",kS=l=>l.x,Q$=(l,N)=>l.x+l.width/2-N.width/2,V9=(l,N)=>l.x+l.width-N.width,U9=l=>l.y,j9=(l,N)=>l.y+l.height-N.height,H$=(l,N)=>l.y+l.height/2-N.height/2,PA=(l,N,W)=>xl(V9(l,N),j9(l,N),W.insetSouthwest(),ni(),"southwest",mc(l,{right:0,bottom:3}),t_),RA=(l,N,W)=>xl(kS(l),j9(l,N),W.insetSoutheast(),fu(),"southeast",mc(l,{left:1,bottom:3}),t_),Q5=(l,N,W)=>xl(V9(l,N),U9(l),W.insetNorthwest(),_l(),"northwest",mc(l,{right:0,top:2}),t_),TS=(l,N,W)=>xl(kS(l),U9(l),W.insetNortheast(),Us(),"northeast",mc(l,{left:1,top:2}),t_),ng=(l,N,W)=>xl(Q$(l,N),U9(l),W.insetNorth(),Wc(),"north",mc(l,{top:2}),t_),CS=(l,N,W)=>xl(Q$(l,N),j9(l,N),W.insetSouth(),Yc(),"south",mc(l,{bottom:3}),t_),Q9=(l,N,W)=>xl(V9(l,N),H$(l,N),W.insetEast(),Ru(),"east",mc(l,{right:0}),t_),Z$=(l,N,W)=>xl(kS(l),H$(l,N),W.insetWest(),$l(),"west",mc(l,{left:1}),t_),q$=l=>{switch(l){case"north":return ng;case"northeast":return TS;case"northwest":return Q5;case"south":return CS;case"southeast":return RA;case"southwest":return PA;case"east":return Q9;case"west":return Z$}},W$=(l,N,W,fe,Se)=>cw(fe).map(q$).getOr(ng)(l,N,W,fe,Se),WJ=l=>{switch(l){case"north":return CS;case"northeast":return RA;case"northwest":return PA;case"south":return ng;case"southeast":return TS;case"southwest":return Q5;case"east":return Z$;case"west":return Q9}},Y$=(l,N,W,fe,Se)=>cw(fe).map(WJ).getOr(ng)(l,N,W,fe,Se),LA={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},Vfe=(l,N,W)=>{const Se={maxHeightFunction:v1()},Be=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),bubble:wp(12,12,LA),layouts:{onRtl:()=>[TS],onLtr:()=>[Q5]},overrides:Se}),qe=()=>({type:"hotspot",hotspot:N(),bubble:wp(-12,12,LA),layouts:{onRtl:()=>[Lu,$c,Iu],onLtr:()=>[$c,Lu,Iu]},overrides:Se});return()=>W()?Be():qe()},YJ=(l,N,W,fe)=>{const Be={maxHeightFunction:v1()},qe=()=>({type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(12,12,LA),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]},overrides:Be}),ft=()=>l?{type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(0,-nf(N()),LA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be}:{type:"hotspot",hotspot:W(),bubble:wp(0,0,LA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be};return()=>fe()?qe():ft()},XJ=(l,N,W)=>{const fe=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]}}),Se=()=>({type:"hotspot",hotspot:N(),layouts:{onRtl:()=>[Iu],onLtr:()=>[Iu]}});return()=>W()?fe():Se()},GJ=(l,N)=>()=>({type:"selection",root:N(),getSelection:()=>{const W=l.selection.getRng(),fe=l.model.table.getSelectedCells();if(fe.length>1){const Se=fe[0],Be=fe[fe.length-1],qe={firstCell:Nt.fromDom(Se),lastCell:Nt.fromDom(Be)};return I.some(qe)}return I.some(Cy.range(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}}),X$=l=>N=>({type:"node",root:l(),node:N}),H9=(l,N,W,fe)=>{const Se=tS(l),Be=()=>Nt.fromDom(l.getBody()),qe=()=>Nt.fromDom(l.getContentAreaContainer()),ft=()=>Se||!fe();return{inlineDialog:Vfe(qe,N,ft),inlineBottomDialog:YJ(l.inline,qe,W,ft),banner:XJ(qe,N,ft),cursor:GJ(l,Be),node:X$(Be)}},KJ=l=>(N,W)=>{QN(l)(N,W)},JJ=l=>()=>DN(l),G$=l=>N=>nA(l,N),eee=l=>N=>IN(l,N),tee=l=>({colorPicker:KJ(l),hasCustomColors:JJ(l),getColors:G$(l),getColorCols:eee(l)}),nee=l=>()=>sz(l),ree=l=>({isDraggableModal:nee(l)}),Z9=l=>{const N=wi($k(l)?"bottom":"top");return{isPositionedAtTop:()=>N.get()==="top",getDockingMode:N.get,setDockingMode:N.set}},q9=l=>pt(l,"items"),K$=l=>pt(l,"format"),J$=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],oee=l=>ht(l,"items"),iee=l=>ht(l,"block"),eV=l=>ht(l,"inline"),aee=l=>ht(l,"selector"),H5=l=>se(l,(N,W)=>{if(oee(W)){const fe=H5(W.items);return{customFormats:N.customFormats.concat(fe.customFormats),formats:N.formats.concat([{title:W.title,items:fe.formats}])}}else if(eV(W)||iee(W)||aee(W)){const Se=`custom-${n(W.name)?W.name:W.title.toLowerCase()}`;return{customFormats:N.customFormats.concat([{name:Se,format:W}]),formats:N.formats.concat([{title:W.title,format:Se,icon:W.icon}])}}else return{...N,formats:N.formats.concat(W)}},{customFormats:[],formats:[]}),see=(l,N)=>{const W=H5(N),fe=Se=>{q(Se,Be=>{l.formatter.has(Be.name)||l.formatter.register(Be.name,Be.format)})};return l.formatter?fe(W.customFormats):l.on("init",()=>{fe(W.customFormats)}),W.formats},Z5=l=>XB(l).map(N=>{const W=see(l,N);return GB(l)?J$.concat(W):W}).getOr(J$),lee=l=>{const N=ke(l);return N.length===1&&X(N,"title")},IA=(l,N,W)=>({...l,type:"formatter",isSelected:N(l.format),getStylePreview:W(l.format)}),AS=(l,N,W,fe)=>{const Se=yt=>IA(yt,W,fe),Be=yt=>{const Lt=ft(yt.items);return{...yt,type:"submenu",getStyleItems:x(Lt)}},qe=yt=>{const Lt=n(yt.name)?yt.name:Li(yt.title),Ht=`custom-${Lt}`,fn={...yt,type:"formatter",format:Ht,isSelected:W(Ht),getStylePreview:fe(Ht)};return l.formatter.register(Lt,fn),fn},ft=yt=>re(yt,Lt=>q9(Lt)?Be(Lt):K$(Lt)?Se(Lt):lee(Lt)?{...Lt,type:"separator"}:qe(Lt));return ft(N)},tV=l=>{const N=ft=>()=>l.formatter.match(ft),W=ft=>()=>{const yt=l.formatter.get(ft);return yt!==void 0?I.some({tag:yt.length>0&&(yt[0].inline||yt[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(ft))}):I.none()},fe=wi([]),Se=wi([]),Be=wi(!1);return l.on("PreInit",ft=>{const yt=Z5(l),Lt=AS(l,yt,N,W);fe.set(Lt)}),l.on("addStyleModifications",ft=>{const yt=AS(l,ft.items,N,W);Se.set(yt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:fe.get(),yt=Se.get();return ft.concat(yt)}}},cee=l=>{let fe=0;const Se=()=>fe>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[Po(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>Se()?60:300,delayForHide:x(300),exclusive:!0,lazySink:l,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(yt,Lt)=>{fe++,ft.onShow&&ft.onShow(yt,Lt)},onHide:(yt,Lt)=>{fe--,ft.onHide&&ft.onHide(yt,Lt)},onSetup:ft.onSetup}),getComponents:Be}},nV=l=>a(l)&&l.nodeType===1,rV=hx.trim,W9=l=>N=>!!(nV(N)&&(N.contentEditable===l||N.getAttribute("data-mce-contenteditable")===l)),uee=W9("true"),Y9=W9("false"),q5=(l,N,W,fe,Se)=>({type:l,title:N,url:W,level:fe,attach:Se}),fee=l=>{let N=l;for(;N=N.parentNode;){const W=N.contentEditable;if(W&&W!=="inherit")return uee(N)}return!1},dee=(l,N)=>re(Yd(Nt.fromDom(N),l),W=>W.dom),sO=l=>l.innerText||l.textContent,oV=l=>l.id?l.id:Li("h"),hee=l=>l&&l.nodeName==="A"&&(l.id||l.name)!==void 0,iV=l=>hee(l)&&BA(l),DA=l=>l&&/^(H[1-6])$/.test(l.nodeName),BA=l=>fee(l)&&!Y9(l),pee=l=>DA(l)&&BA(l),mee=l=>DA(l)?parseInt(l.nodeName.substr(1),10):0,gee=l=>{var N;const W=oV(l),fe=()=>{l.id=W};return q5("header",(N=sO(l))!==null&&N!==void 0?N:"","#"+W,mee(l),fe)},X9=l=>{const N=l.id||l.name,W=sO(l);return q5("anchor",W||"#"+N,"#"+N,0,v)},vee=l=>re(me(l,pee),gee),yee=l=>re(me(l,iV),X9),bee=l=>dee("h1,h2,h3,h4,h5,h6,a:not([href])",l),xee=l=>rV(l.title).length>0,_ee={find:l=>{const N=bee(l);return me(vee(N).concat(yee(N)),xee)}},zA="tinymce-url-history",G9=5,aV=l=>n(l)&&/^https?/.test(l),W5=l=>i(l)&&l.length<=G9&&_e(l,aV),sV=l=>u(l)&&tt(l,N=>!W5(N)).isNone(),lV=()=>{const l=nO.getItem(zA);if(l===null)return{};let N;try{N=JSON.parse(l)}catch(W){if(W instanceof SyntaxError)return console.log("Local storage "+zA+" was not valid JSON",W),{};throw W}return sV(N)?N:(console.log("Local storage "+zA+" was not valid format",N),{})},K9=l=>{if(!sV(l))throw new Error(`Bad format for history: -`+JSON.stringify(l));nO.setItem(zA,JSON.stringify(l))},cV=l=>{const N=lV();return Ge(N,l).getOr([])},wee=(l,N)=>{if(!aV(l))return;const W=lV(),fe=Ge(W,N).getOr([]),Se=me(fe,Be=>Be!==l);W[N]=[l].concat(Se).slice(0,G9),K9(W)},uV=l=>!!l,Oee=l=>Ue(hx.makeMap(l,/[, ]/),uV),J9=l=>I.from(oz(l)),See=l=>{const N=I.from(QE(l)).filter(uV).map(Oee);return J9(l).fold(D,W=>N.fold(k,fe=>ke(fe).length>0?fe:!1))},kee=(l,N)=>{const W=See(l);return w(W)?W?J9(l):I.none():W[N]?J9(l):I.none()},Tee=(l,N)=>kee(l,N).map(W=>fe=>Lh.nu(Se=>{const Be=(ft,yt)=>{if(!n(ft))throw new Error("Expected value to be string");if(yt!==void 0&&!u(yt))throw new Error("Expected meta to be a object");Se({value:ft,meta:yt})},qe={filetype:N,fieldname:fe.fieldname,...I.from(fe.meta).getOr({})};W.call(l,Be,fe.value,qe)})),fV=l=>I.from(l).filter(n).getOrUndefined(),Cee=l=>HE(l)?I.some({targets:_ee.find(l.getBody()),anchorTop:fV(az(l)),anchorBottom:fV(y6(l))}):I.none(),jfe=l=>I.from(iz(l)),Aee=l=>({getHistory:cV,addToHistory:wee,getLinkInformation:()=>Cee(l),getValidationHandler:()=>jfe(l),getUrlPicker:N=>Tee(l,N)}),dV=(l,N,W,fe)=>{const Se=wi(!1),Be=Z9(N),qe={icons:()=>N.ui.registry.getAll().icons,menuItems:()=>N.ui.registry.getAll().menuItems,translate:Dg.translate,isDisabled:()=>N.mode.isReadOnly()||!N.ui.isEnabled(),getOption:N.options.get,tooltips:cee(l.dialog)},ft=Aee(N),yt=tV(N),Lt=tee(N),Ht=ree(N),fn=()=>Se.get(),Rn=br=>Se.set(br),Bn={shared:{providers:qe,anchors:H9(N,W,fe,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:yt,colorinput:Lt,dialog:Ht,isContextMenuOpen:fn,setContextMenuState:Rn},er=br=>I.none(),cr={...Bn,shared:{...Bn.shared,interpreter:br=>EA(br,{},cr,er),getSink:l.popup}},Xr={...Bn,shared:{...Bn.shared,interpreter:br=>EA(br,{},Xr,er),getSink:l.dialog}};return{popup:cr,dialog:Xr}},hV=(l,N,W)=>{const fe=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastEvent(Ao,$i)})},Se=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastOn([Ao],$i)})},Be=Ao=>Se(_1(),{target:Ao.target}),qe=Ac(),ft=ud(qe,"touchstart",Be),yt=ud(qe,"touchmove",Ao=>fe(sy(),Ao)),Lt=ud(qe,"touchend",Ao=>fe(yg(),Ao)),Ht=ud(qe,"mousedown",Be),fn=ud(qe,"mouseup",Ao=>{Ao.raw.button===0&&Se(M3(),{target:Ao.target})}),Rn=Ao=>Se(_1(),{target:Nt.fromDom(Ao.target)}),Bn=Ao=>{Ao.button===0&&Se(M3(),{target:Nt.fromDom(Ao.target)})},er=()=>{q(l.editorManager.get(),Ao=>{l!==Ao&&Ao.dispatch("DismissPopups",{relatedTarget:l})})},cr=Ao=>fe(Im(),a2(Ao)),Xr=Ao=>{Se(qb(),{}),fe(Dm(),a2(Ao))},br=kr(Nt.fromDom(l.getElement())),Fr=i2(br,"scroll",Ao=>{requestAnimationFrame(()=>{const $i=l.getContainer();if($i!=null){const Xi=ix(l,N.element).map(ks=>[ks.element,...ks.others]).getOr([]);te(Xi,ks=>_o(ks,Ao.target))&&(l.dispatch("ElementScroll",{target:Ao.target.dom}),fe(Dx(),Ao))}})}),jr=()=>Se(qb(),{}),Ro=Ao=>{Ao.state&&Se(_1(),{target:Nt.fromDom(l.getContainer())})},ko=Ao=>{Se(_1(),{target:Nt.fromDom(Ao.relatedTarget.getContainer())})},_i=Ao=>l.dispatch("focusin",Ao),Pi=Ao=>l.dispatch("focusout",Ao);l.on("PostRender",()=>{l.on("click",Rn),l.on("tap",Rn),l.on("mouseup",Bn),l.on("mousedown",er),l.on("ScrollWindow",cr),l.on("ResizeWindow",Xr),l.on("ResizeEditor",jr),l.on("AfterProgressState",Ro),l.on("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.addEventListener("focusin",_i),Ao.element.dom.addEventListener("focusout",Pi)})}),l.on("remove",()=>{l.off("click",Rn),l.off("tap",Rn),l.off("mouseup",Bn),l.off("mousedown",er),l.off("ScrollWindow",cr),l.off("ResizeWindow",Xr),l.off("ResizeEditor",jr),l.off("AfterProgressState",Ro),l.off("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.removeEventListener("focusin",_i),Ao.element.dom.removeEventListener("focusout",Pi)}),Ht.unbind(),ft.unbind(),yt.unbind(),Lt.unbind(),fn.unbind(),Fr.unbind()}),l.on("detach",()=>{q([N,...W],tk),q([N,...W],Ao=>Ao.destroy())})},qf=YC,zv=MD,Mee=x([Ar("shell",!1),pn("makeItem"),Ar("setupItem",v),Km.field("listBehaviours",[Fa])]),Eee=mm({name:"items",overrides:()=>({behaviours:ei([Fa.config({})])})}),Pee=x([Eee]),Ree=x("CustomList"),Lee=(l,N,W,fe)=>{const Se=(ft,yt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Lt=>{const Ht=Fa.contents(Lt),fn=yt.length,Rn=fn-Ht.length,Bn=Rn>0?Z(Rn,()=>l.makeItem()):[],er=Ht.slice(fn);q(er,Xr=>Fa.remove(Lt,Xr)),q(Bn,Xr=>Fa.append(Lt,Xr));const cr=Fa.contents(Lt);q(cr,(Xr,br)=>{l.setupItem(ft,Xr,yt[br],br)})})},Be=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N},qe=ft=>l.shell?I.some(ft):Jo(ft,l,"items");return{uid:l.uid,dom:l.dom,components:Be.components,behaviours:Rd(l.listBehaviours,Be.behaviours),apis:{setItems:Se}}},pV=Zh({name:Ree(),configFields:Mee(),partFields:Pee(),factory:Lee,apis:{setItems:(l,N,W)=>{l.setItems(N,W)}}}),lO=x([pn("dom"),Ar("shell",!0),Pd("toolbarBehaviours",[Fa])]),Dee=x([mm({name:"groups",overrides:()=>({behaviours:ei([Fa.config({})])})})]),mV=(l,N,W,fe)=>{const Se=(ft,yt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Lt=>{Fa.set(Lt,yt)})},Be=ft=>l.shell?I.some(ft):Jo(ft,l,"groups"),qe=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N};return{uid:l.uid,dom:l.dom,components:qe.components,behaviours:Rd(l.toolbarBehaviours,qe.behaviours),apis:{setGroups:Se,refresh:v},domModification:{attributes:{role:"group"}}}},Nv=Zh({name:"Toolbar",configFields:lO(),partFields:Dee(),factory:mV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)}}}),Bee=v,zee=D,n_=x([]);var gV=Object.freeze({__proto__:null,setup:Bee,isDocked:zee,getBehaviours:n_});const cO=x(Li("toolbar-height-change")),D0={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},eR="tox-tinymce--toolbar-sticky-on",tR="tox-tinymce--toolbar-sticky-off",vV=(l,N)=>{const W=Mo(N),Se=ar(N).dom.innerHeight,Be=yc(W),qe=Nt.fromDom(l.elm),ft=bc(qe),yt=il(qe),Lt=ft.y,Ht=Lt+yt,fn=Tc(N),Rn=il(N),Bn=fn.top,er=Bn+Rn,cr=Math.abs(Bn-Be.top)<2,Xr=Math.abs(er-(Be.top+Se))<2;if(cr&&LtBn){const br=Lt-Se+yt+Rn;Cc(Be.left,br,W)}},nR=(l,N)=>X(fc.getModes(l),N),rR=l=>{const N=fe=>nf(fe)+(parseInt(Di(fe,"margin-top"),10)||0)+(parseInt(Di(fe,"margin-bottom"),10)||0),W=l.element;Zr(W).each(fe=>{const Se="padding-"+fc.getModes(l)[0];if(fc.isDocked(l)){const Be=_s(fe);xr(W,"width",Be+"px"),xr(fe,Se,N(W)+"px")}else zi(W,"width"),zi(fe,Se)})},yV=(l,N)=>{N?(Zc(l,D0.fadeOutClass),Og(l,[D0.transitionClass,D0.fadeInClass])):(Zc(l,D0.fadeInClass),Og(l,[D0.fadeOutClass,D0.transitionClass]))},bV=(l,N)=>{const W=Nt.fromDom(l.getContainer());N?(uc(W,eR),Zc(W,tR)):(uc(W,tR),Zc(W,eR))},Nee=(l,N)=>{const W=Mo(N);um(W).filter(fe=>!_o(N,fe)).filter(fe=>_o(fe,Nt.fromDom(W.dom.body))||$o(l,fe)).each(()=>Md(N))},Fee=(l,N)=>Wd(l).orThunk(()=>N().toOptional().bind(W=>Wd(W.element))),MS=(l,N,W)=>{l.inline||(N.header.isPositionedAtTop()||l.on("ResizeEditor",()=>{W().each(fc.reset)}),l.on("ResizeWindow ResizeEditor",()=>{W().each(rR)}),l.on("SkinLoaded",()=>{W().each(fe=>{fc.isDocked(fe)?fc.reset(fe):fc.refresh(fe)})}),l.on("FullscreenStateChanged",()=>{W().each(fc.reset)})),l.on("AfterScrollIntoView",fe=>{W().each(Se=>{fc.refresh(Se);const Be=Se.element;$D(Be)&&vV(fe,Be)})}),l.on("PostRender",()=>{bV(l,!1)})},Y5=l=>l().map(fc.isDocked).getOr(!1),oR=()=>[Ad.config({channels:{[cO()]:{onReceive:rR}}})],xV=(l,N)=>{const W=ds(),fe=N.getSink,Se=ft=>{fe().each(yt=>ft(yt.element))},Be=ft=>{l.inline||rR(ft),bV(l,fc.isDocked(ft)),ft.getSystem().broadcastOn([qb()],{}),fe().each(yt=>yt.getSystem().broadcastOn([qb()],{}))},qe=l.inline?[]:oR();return[Ra.config({}),fc.config({contextual:{lazyContext:ft=>{const yt=nf(ft.element),Lt=l.inline?l.getContentAreaContainer():l.getContainer();return I.from(Lt).map(Ht=>{const fn=cl(Nt.fromDom(Ht));return ix(l,ft.element).fold(()=>{const Bn=fn.height-yt,er=fn.y+(nR(ft,"top")?0:yt);return vs(fn.x,er,fn.width,Bn)},Bn=>{const er=nc(fn,Hw(Bn)),cr=nR(ft,"top")?er.y:er.y+yt;return vs(er.x,cr,er.width,er.height-yt)})})},onShow:()=>{Se(ft=>yV(ft,!0))},onShown:ft=>{Se(yt=>Oc(yt,[D0.transitionClass,D0.fadeInClass])),W.get().each(yt=>{Nee(ft.element,yt),W.clear()})},onHide:ft=>{Fee(ft.element,fe).fold(W.clear,W.set),Se(yt=>yV(yt,!1))},onHidden:()=>{Se(ft=>Oc(ft,[D0.transitionClass]))},...D0},lazyViewport:ft=>ix(l,ft.element).fold(()=>{const Lt=ts(),Ht=nz(l),fn=Lt.y+(nR(ft,"top")?Ht:0),Rn=Lt.height-(nR(ft,"bottom")?Ht:0);return{bounds:vs(Lt.x,fn,Lt.width,Rn),optScrollEnv:I.none()}},Lt=>({bounds:Hw(Lt),optScrollEnv:I.some({currentScrollTop:Lt.element.dom.scrollTop,scrollElmTop:Tc(Lt.element).top})})),modes:[N.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var $ee=Object.freeze({__proto__:null,setup:MS,isDocked:Y5,getBehaviours:xV});const iR=l=>{const N=l.editor,W=l.sticky?xV:n_;return{uid:l.uid,dom:l.dom,components:l.components,behaviours:ei(W(N,l.sharedBackstage))}},Vee=Si([pf,In("items",rd([It([V6,Go("items",ne)]),ne]))].concat(lp)),X5=l=>Rt("GroupToolbarButton",Vee,l),_V=[jo("text"),jo("tooltip"),jo("icon"),ns("search",!1,rd([V,Si([jo("placeholder")])],l=>w(l)?l?I.some({placeholder:I.none()}):I.none():I.some(l))),po("fetch"),ys("onSetup",()=>v)],wV=Si([pf,..._V]),OV=l=>Rt("menubutton",wV,l),Uee=Si([pf,iS,E0,lx,BY,RY,Xw,rl("presets","normal",["normal","color","listpreview"]),Zz(1),V2,Hz]),jee=l=>Rt("SplitButton",Uee,l);var aR=Qp({factory:(l,N)=>{const W=(Se,Be)=>{const qe=re(Be,ft=>{const yt={type:"menubutton",text:ft.text,fetch:Ht=>{Ht(ft.getItems())}},Lt=OV(yt).mapError(Ht=>dn(Ht)).getOrDie();return N5(Lt,"tox-mbtn",N.backstage,I.some("menuitem"))});Fa.set(Se,qe)},fe={focus:ha.focusIn,setMenus:W};return{uid:l.uid,dom:l.dom,components:[],behaviours:ei([Fa.config({}),Ka("menubar-events",[wc(Se=>{l.onSetup(Se)}),Lo(wu(),(Se,Be)=>{qa(Se.element,".tox-mbtn--active").each(qe=>{Sc(Be.event.target,".tox-mbtn").each(ft=>{_o(qe,ft)||Se.getSystem().getByDom(qe).each(yt=>{Se.getSystem().getByDom(ft).each(Lt=>{L0.expand(Lt),L0.close(yt),Ra.focus(Lt)})})})})}),Lo(q1(),(Se,Be)=>{Be.event.prevFocus.bind(qe=>Se.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>Se.getSystem().getByDom(ft).toOptional()).each(ft=>{L0.isOpen(qe)&&(L0.expand(ft),L0.close(qe))})})})]),ha.config({mode:"flow",selector:".tox-mbtn",onEscape:Se=>(l.onEscape(Se),I.some(!0))}),Rc.config({})]),apis:fe,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[pn("dom"),pn("uid"),pn("onEscape"),pn("backstage"),Ar("onSetup",v)],apis:{focus:(l,N)=>{l.focus(N)},setMenus:(l,N,W)=>{l.setMenus(N,W)}}});const SV="⚡️Upgrade",kV="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",sR=l=>({uid:l.uid,dom:l.dom,components:[{dom:{tag:"a",attributes:{href:kV,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:SV}}]}),TV="container",NA=[Pd("slotBehaviours",[])],G5=l=>"",CV=l=>{const N=(()=>{const Be=[];return{slot:(ft,yt)=>(Be.push(ft),HC(TV,G5(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:G5(Be)}));return Iy(TV,NA,Se,Qee,W)},Qee=(l,N)=>{const W=cr=>Lw(l),fe=(cr,Xr)=>Jo(cr,l,Xr),Se=(cr,Xr)=>(br,Fr)=>Jo(br,l,Fr).map(jr=>cr(jr,Fr)).getOr(Xr),Be=cr=>(Xr,br)=>{q(br,Fr=>cr(Xr,Fr))},qe=(cr,Xr)=>Nr(cr.element,"aria-hidden")!=="true",ft=(cr,Xr)=>{if(!qe(cr)){const br=cr.element;zi(br,"display"),Qt(br,"aria-hidden"),sa(cr,$_(),{name:Xr,visible:!0})}},yt=(cr,Xr)=>{if(qe(cr)){const br=cr.element;xr(br,"display","none"),Cr(br,"aria-hidden","true"),sa(cr,$_(),{name:Xr,visible:!1})}},Lt=Se(qe,!1),Ht=Se(yt),fn=Be(Ht),Rn=cr=>fn(cr,W()),Bn=Se(ft),er={getSlotNames:W,getSlot:fe,isShowing:Lt,hideSlot:Ht,hideAllSlots:Rn,showSlot:Bn};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.slotBehaviours),apis:er}},up={...Ue({getSlotNames:(l,N)=>l.getSlotNames(N),getSlot:(l,N,W)=>l.getSlot(N,W),isShowing:(l,N,W)=>l.isShowing(N,W),hideSlot:(l,N,W)=>l.hideSlot(N,W),hideAllSlots:(l,N)=>l.hideAllSlots(N),showSlot:(l,N,W)=>l.showSlot(N,W)},l=>Tb(l)),sketch:CV},Hee=Si([E0,iS,ys("onShow",v),ys("onHide",v),Xw]),lR=l=>Rt("sidebar",Hee,l),cR=l=>{const{sidebars:N}=l.ui.registry.getAll();q(ke(N),W=>{const fe=N[W],Se=()=>St(I.from(l.queryCommandValue("ToggleSidebar")),W);l.ui.registry.addToggleButton(W,{icon:fe.icon,tooltip:fe.tooltip,onAction:Be=>{l.execCommand("ToggleSidebar",!1,W),Be.setActive(Se())},onSetup:Be=>{Be.setActive(Se());const qe=()=>Be.setActive(Se());return l.on("ToggleSidebar",qe),()=>{l.off("ToggleSidebar",qe)}}})})},Zee=l=>({element:()=>l.element.dom}),uR=(l,N)=>{const W=re(ke(N),fe=>{const Se=N[fe],Be=Mt(lR(Se));return{name:fe,getApi:Zee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return re(W,fe=>{const Se=wi(v);return l.slot(fe.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:lS.unnamedEvents([cp(fe,Se),j2(fe,Se),Lo($_(),(Be,qe)=>{const ft=qe.event;ce(W,Lt=>Lt.name===ft.name).each(Lt=>{(ft.visible?Lt.onShow:Lt.onHide)(Lt.getApi(Be))})})])})})},qee=l=>up.sketch(N=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:uR(N,l),slotBehaviours:lS.unnamedEvents([wc(W=>up.hideAllSlots(W))])})),Wee=(l,N,W)=>{Xs.getCurrent(l).each(Se=>{Fa.set(Se,[qee(N)]);const Be=W==null?void 0:W.toLowerCase();n(Be)&&ht(N,Be)&&Xs.getCurrent(Se).each(qe=>{up.showSlot(qe,Be),Tp.immediateGrow(Se),zi(Se.element,"width"),FA(l.element,"region")})})},FA=(l,N)=>{Cr(l,"role",N)},Yee=(l,N)=>{Xs.getCurrent(l).each(fe=>{Xs.getCurrent(fe).each(Be=>{Tp.hasGrown(fe)?up.isShowing(Be,N)?(Tp.shrink(fe),FA(l.element,"presentation")):(up.hideAllSlots(Be),up.showSlot(Be,N),FA(l.element,"region")):(up.hideAllSlots(Be),up.showSlot(Be,N),Tp.grow(fe),FA(l.element,"region"))})})},Xee=l=>Xs.getCurrent(l).bind(W=>Tp.isGrowing(W)||Tp.hasGrown(W)?Xs.getCurrent(W).bind(Be=>ce(up.getSlotNames(Be),qe=>up.isShowing(Be,qe))):I.none()),AV=Li("FixSizeEvent"),MV=Li("AutoSizeEvent"),EV=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:ei([Rc.config({}),Ra.config({}),Tp.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:N=>{Xs.getCurrent(N).each(up.hideAllSlots),Za(N,MV)},onGrown:N=>{Za(N,MV)},onStartGrow:N=>{sa(N,AV,{width:Ia(N.element,"width").getOr("")})},onStartShrink:N=>{sa(N,AV,{width:_s(N.element)+"px"})}}),Fa.config({}),Xs.config({find:N=>{const W=Fa.contents(N);return Qe(W)}})])}],behaviours:ei([P1.childAt(0),Ka("sidebar-sliding-events",[Lo(AV,(N,W)=>{xr(N.element,"width",W.event.width)}),Lo(MV,(N,W)=>{zi(N.element,"width")})])])});var Kee=Object.freeze({__proto__:null,block:(l,N,W,fe)=>{Cr(l.element,"aria-busy",!0);const Se=N.getRoot(l).getOr(l),Be=ei([ha.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),Ra.config({})]),qe=fe(Se,Be),ft=Se.getSystem().build(qe);Fa.append(Se,ea(ft)),ft.hasConfigured(ha)&&N.focus&&ha.focusIn(ft),W.isBlocked()||N.onBlock(l),W.blockWith(()=>Fa.remove(Se,ft))},unblock:(l,N,W)=>{Qt(l.element,"aria-busy"),W.isBlocked()&&N.onUnblock(l),W.clear()},isBlocked:(l,N,W)=>W.isBlocked()}),Jee=[ys("getRoot",I.none),Hs("focus",!0),Ss("onBlock"),Ss("onUnblock")],ete=Object.freeze({__proto__:null,init:()=>{const l=wd(),N=W=>{l.set({destroy:W})};return Hd({readState:l.isSet,blockWith:N,clear:l.clear,isBlocked:l.isSet})}});const I1=id({fields:Jee,name:"blocking",apis:Kee,state:ete}),tte=l=>(N,W)=>({dom:{tag:"div",attributes:{"aria-label":l.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ev('
    ')}]}),PV=l=>Xs.getCurrent(l).each(N=>Md(N.element,!0)),nte=(l,N)=>{const W="tabindex",fe=`data-mce-${W}`;I.from(l.iframeElement).map(Nt.fromDom).each(Se=>{N?(Eo(Se,W).each(Be=>Cr(Se,fe,Be)),Cr(Se,W,-1)):(Qt(Se,W),Eo(Se,fe).each(Be=>{Cr(Se,W,Be),Qt(Se,fe)}))})},Xfe=(l,N,W,fe)=>{const Se=N.element;if(nte(l,W),W)I1.block(N,tte(fe)),zi(Se,"display"),Qt(Se,"aria-hidden"),l.hasFocus()&&PV(N);else{const Be=Xs.getCurrent(N).exists(qe=>_0(qe.element));I1.unblock(N),xr(Se,"display","none"),Cr(Se,"aria-hidden","true"),Be&&l.focus()}},Gfe=l=>({uid:l.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:ei([Fa.config({}),I1.config({focus:!1}),Xs.config({find:N=>Qe(N.components())})]),components:[]}),RV=l=>l.type==="focusin",LV=l=>RV(l)?(l.composed?Qe(l.composedPath()):I.from(l.target)).map(Nt.fromDom).filter(lr).exists(W=>rp(W,"mce-pastebin")):!1,rte=(l,N,W)=>{const fe=wi(!1),Se=ds(),Be=ft=>{fe.get()&&!LV(ft)&&(ft.preventDefault(),PV(N()),l.editorManager.setActive(l))};l.inline||l.on("PreInit",()=>{l.dom.bind(l.getWin(),"focusin",Be),l.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==fe.get()&&(fe.set(ft),Xfe(l,N(),ft,W.providers),uX(l,ft))};l.on("ProgressState",ft=>{if(Se.on(clearTimeout),h(ft.time)){const yt=J3.setEditorTimeout(l,()=>qe(ft.state),ft.time);Se.set(yt)}else qe(ft.state),Se.clear()})},ote=(l,N)=>se(l,(Se,Be)=>N(Be,Se.len).fold(x(Se),ft=>({len:ft.finish,list:Se.list.concat([ft])})),{len:0,list:[]}).list,_m=(l,N,W)=>({within:l,extra:N,withinWidth:W}),IV=(l,N,W)=>{const fe=ote(l,(ft,yt)=>{const Lt=W(ft);return I.some({element:ft,start:yt,finish:yt+Lt,width:Lt})}),Se=me(fe,ft=>ft.finish<=N),Be=pe(Se,(ft,yt)=>ft+yt.width,0),qe=fe.slice(Se.length);return{within:Se,extra:qe,withinWidth:Be}},K5=l=>re(l,N=>N.element),DV=(l,N,W)=>{const fe=K5(l.concat(N));return _m(fe,[],W)},ite=(l,N,W,fe)=>{const Se=K5(l).concat([W]);return _m(Se,K5(N),fe)},J5=(l,N,W)=>_m(K5(l),[],W),ate=(l,N,W)=>{const fe=IV(N,l,W);return fe.extra.length===0?I.some(fe):I.none()},$A=(l,N,W,fe)=>{const Se=ate(l,N,W).getOrThunk(()=>IV(N,l-W(fe),W)),Be=Se.within,qe=Se.extra,ft=Se.withinWidth;return qe.length===1&&qe[0].width<=W(fe)?DV(Be,qe,ft):qe.length>=1?ite(Be,qe,fe,ft):J5(Be,qe,ft)},BV=(l,N)=>{const W=re(N,fe=>ea(fe));Nv.setGroups(l,W)},VA=l=>Oe(l,N=>Wd(N.element).bind(W=>N.getSystem().getByDom(W).toOptional())),zV=(l,N,W)=>{const fe=N.builtGroups.get();if(fe.length===0)return;const Se=gm(l,N,"primary"),Be=Ku.getCoupled(l,"overflowGroup");xr(Se.element,"visibility","hidden");const qe=fe.concat([Be]),ft=VA(qe);W([]),BV(Se,qe);const yt=_s(Se.element),Lt=$A(yt,N.builtGroups.get(),Ht=>Math.ceil(Ht.element.dom.getBoundingClientRect().width),Be);Lt.extra.length===0?(Fa.remove(Se,Be),W([])):(BV(Se,Lt.within),W(Lt.extra)),zi(Se.element,"visibility"),yl(Se.element),ft.each(Ra.focus)},NV=x([Pd("splitToolbarBehaviours",[Ku]),gn("builtGroups",()=>wi([]))]),B0=x([h0(["overflowToggledClass"]),ai("getOverflowBounds"),pn("lazySink"),gn("overflowGroups",()=>wi([])),Ss("onOpened"),Ss("onClosed")].concat(NV())),ste=x([mh({factory:Nv,schema:lO(),name:"primary"}),Jm({schema:lO(),name:"overflow"}),Jm({name:"overflow-button"}),Jm({name:"overflow-group"})]),ES=x((l,N)=>{mu(l,Math.floor(N))}),FV=x([h0(["toggledClass"]),pn("lazySink"),po("fetch"),ai("getBounds"),Ai("fireDismissalEventInstead",[Ar("event",J0())]),dm(),Ss("onToggled")]),$V=x([Jm({name:"button",overrides:l=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:ei([us.config({toggleClass:l.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:l.onToggled})])})}),Jm({factory:Nv,schema:lO(),name:"toolbar",overrides:l=>({toolbarBehaviours:ei([ha.config({mode:"cyclic",onEscape:N=>(Jo(N,l,"button").each(Ra.focus),I.none())})])})})]),UA=ds(),VV=(l,N)=>{UA.set(!0),fR(l,N),UA.clear()},fR=(l,N)=>{const W=Ku.getCoupled(l,"toolbarSandbox");Ys.isOpen(W)?Ys.close(W):Ys.open(W,N.toolbar())},dR=(l,N,W,fe)=>{const Se=W.getBounds.map(qe=>qe()),Be=W.lazySink(l).getOrDie();Ph.positionWithinBounds(Be,N,{anchor:{type:"hotspot",hotspot:l,layouts:fe,overrides:{maxWidthFunction:ES()}}},Se)},UV=(l,N,W,fe,Se)=>{Nv.setGroups(N,Se),dR(l,N,W,fe),us.on(l)},lte=(l,N,W)=>{const fe=ld(),Se=(qe,ft)=>{const yt=UA.get().getOr(!1);W.fetch().get(Lt=>{UV(l,ft,W,N.layouts,Lt),fe.link(l.element),yt||ha.focusIn(ft)})},Be=()=>{us.off(l),UA.get().getOr(!1)||Ra.focus(l),fe.unlink(l.element)};return{dom:{tag:"div",attributes:{id:fe.id}},behaviours:ei([ha.config({mode:"special",onEscape:qe=>(Ys.close(qe),I.some(!0))}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(qe,ft,yt)=>Cf(ft,yt)||Cf(l,yt),getAttachPoint:()=>W.lazySink(l).getOrDie()}),Ad.config({channels:{...Ly({isExtraPart:D,...W.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),...ak({doReposition:()=>{Ys.getState(Ku.getCoupled(l,"toolbarSandbox")).each(qe=>{dR(l,qe,W,N.layouts)})}})}})])}},r_=Zh({name:"FloatingToolbarButton",factory:(l,N,W,fe)=>({...Rh.sketch({...fe.button(),action:Se=>{fR(Se,fe)},buttonBehaviours:Km.augment({dump:fe.button().buttonBehaviours},[Ku.config({others:{toolbarSandbox:Se=>lte(Se,W,l)}})])}),apis:{setGroups:(Se,Be)=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(qe=>{UV(Se,qe,l,W.layouts,Be)})},reposition:Se=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(Be=>{dR(Se,Be,l,W.layouts)})},toggle:Se=>{fR(Se,fe)},toggleWithoutFocusing:Se=>{VV(Se,fe)},getToolbar:Se=>Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")),isOpen:Se=>Ys.isOpen(Ku.getCoupled(Se,"toolbarSandbox"))}}),configFields:FV(),partFields:$V(),apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggleWithoutFocusing(N)},getToolbar:(l,N)=>l.getToolbar(N),isOpen:(l,N)=>l.isOpen(N)}}),cte=x([pn("items"),h0(["itemSelector"]),Pd("tgroupBehaviours",[ha])]),jV=x([U3({name:"items",unit:"item"})]),QV=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.tgroupBehaviours,[ha.config({mode:"flow",selector:l.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),eT=Zh({name:"ToolbarGroup",configFields:cte(),partFields:jV(),factory:QV}),HV=l=>re(l,N=>ea(N)),ZV=(l,N,W)=>{zV(l,W,fe=>{W.overflowGroups.set(fe),N.getOpt(l).each(Se=>{r_.setGroups(Se,HV(fe))})})},qV=(l,N,W,fe)=>{const Se=ml(r_.sketch({fetch:()=>Lh.nu(Be=>{Be(HV(l.overflowGroups.get()))}),layouts:{onLtr:()=>[$c,Lu],onRtl:()=>[Lu,$c],onBottomLtr:()=>[Mf,dl],onBottomRtl:()=>[dl,Mf]},getBounds:W.getOverflowBounds,lazySink:l.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:l.markers.overflowToggledClass},parts:{button:fe["overflow-button"](),toolbar:fe.overflow()},onToggled:(Be,qe)=>l[qe?"onOpened":"onClosed"](Be)}));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:()=>eT.sketch({...fe["overflow-group"](),items:[Se.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{l.builtGroups.set(re(qe,Be.getSystem().build)),ZV(Be,Se,l)},refresh:Be=>ZV(Be,Se,l),toggle:Be=>{Se.getOpt(Be).each(qe=>{r_.toggle(qe)})},toggleWithoutFocusing:Be=>{Se.getOpt(Be).each(r_.toggleWithoutFocusing)},isOpen:Be=>Se.getOpt(Be).map(r_.isOpen).getOr(!1),reposition:Be=>{Se.getOpt(Be).each(qe=>{r_.reposition(qe)})},getOverflow:Be=>Se.getOpt(Be).bind(r_.getToolbar)},domModification:{attributes:{role:"group"}}}},hR=Zh({name:"SplitFloatingToolbar",configFields:B0(),partFields:ste(),factory:qV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N),getOverflow:(l,N)=>l.getOverflow(N)}}),WV=x([h0(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ss("onOpened"),Ss("onClosed")].concat(NV())),ute=x([mh({factory:Nv,schema:lO(),name:"primary"}),mh({factory:Nv,schema:lO(),name:"overflow",overrides:l=>({toolbarBehaviours:ei([Tp.config({dimension:{property:"height"},closedClass:l.markers.closedClass,openClass:l.markers.openClass,shrinkingClass:l.markers.shrinkingClass,growingClass:l.markers.growingClass,onShrunk:N=>{Jo(N,l,"overflow-button").each(W=>{us.off(W)}),l.onClosed(N)},onGrown:N=>{l.onOpened(N)},onStartGrow:N=>{Jo(N,l,"overflow-button").each(us.on)}}),ha.config({mode:"acyclic",onEscape:N=>(Jo(N,l,"overflow-button").each(Ra.focus),I.some(!0))})])})}),Jm({name:"overflow-button",overrides:l=>({buttonBehaviours:ei([us.config({toggleClass:l.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Jm({name:"overflow-group"})]),fte=(l,N)=>Jo(l,N,"overflow").map(Tp.hasGrown).getOr(!1),pR=(l,N,W)=>{Jo(l,N,"overflow-button").each(fe=>{Jo(l,N,"overflow").each(Se=>{if(jA(l,N),Tp.hasShrunk(Se)){const Be=N.onOpened;N.onOpened=qe=>{W||ha.focusIn(Se),Be(qe),N.onOpened=Be}}else{const Be=N.onClosed;N.onClosed=qe=>{W||Ra.focus(fe),Be(qe),N.onClosed=Be}}Tp.toggleGrow(Se)})})},jA=(l,N)=>{Jo(l,N,"overflow").each(W=>{zV(l,N,fe=>{const Se=re(fe,Be=>ea(Be));Nv.setGroups(W,Se)}),Jo(l,N,"overflow-button").each(fe=>{Tp.hasGrown(W)&&us.on(fe)}),Tp.refresh(W)})},dte=(l,N,W,fe)=>{const Se="alloy.toolbar.toggle",Be=(qe,ft)=>{const yt=re(ft,qe.getSystem().build);l.builtGroups.set(yt)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:qe=>eT.sketch({...fe["overflow-group"](),items:[Rh.sketch({...fe["overflow-button"](),action:ft=>{Za(qe,Se)}})]})}}),Ka("toolbar-toggle-events",[Lo(Se,qe=>{pR(qe,l,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),jA(qe,l)},refresh:qe=>jA(qe,l),toggle:qe=>{pR(qe,l,!1)},toggleWithoutFocusing:qe=>{pR(qe,l,!0)},isOpen:qe=>fte(qe,l)},domModification:{attributes:{role:"group"}}}},mR=Zh({name:"SplitSlidingToolbar",configFields:WV(),partFields:ute(),factory:dte,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},toggle:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N)}}),YV=l=>{const N=l.title.fold(()=>({}),W=>({attributes:{title:W}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...N},components:[eT.parts.items({})],items:l.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:ei([Rc.config({}),Ra.config({})])}},QA=l=>eT.sketch(YV(l)),XV=(l,N)=>{const W=wc(fe=>{const Se=re(l.initGroups,QA);Nv.setGroups(fe,Se)});return ei([E1.toolbarButton(l.providers.isDisabled),Id(),ha.config({mode:N,onEscape:l.onEscape,selector:".tox-toolbar__group"}),Ka("toolbar-events",[W])])},GV=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return{uid:l.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":YV({title:I.none(),items:[]}),"overflow-button":PJ({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),l.providers,[],"overflow-button")},splitToolbarBehaviours:XV(l,N)}},hte=l=>{const N=GV(l),W=4,fe=hR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return hR.sketch({...N,lazySink:l.getSink,getOverflowBounds:()=>{const Se=l.moreDrawerData.lazyHeader().element,Be=bc(Se),qe=Hn(Se),ft=bc(qe),yt=Math.max(qe.dom.scrollHeight,ft.height);return vs(Be.x+W,ft.y,Be.width-W*2,yt)},parts:{...N.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:l.attributes}}},components:[fe],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>l.onToggled(Se,!0),onClosed:Se=>l.onToggled(Se,!1)})},pte=l=>{const N=mR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),W=mR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),fe=GV(l);return mR.sketch({...fe,components:[N,W],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>{Se.getSystem().broadcastOn([cO()],{type:"opened"}),l.onToggled(Se,!0)},onClosed:Se=>{Se.getSystem().broadcastOn([cO()],{type:"closed"}),l.onToggled(Se,!1)}})},HA=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return Nv.sketch({uid:l.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(l.type===C0.scrolling?["tox-toolbar--scrolling"]:[])},components:[Nv.parts.groups({})],toolbarBehaviours:XV(l,N)})},KV=[lx,E0,jo("tooltip"),rl("buttonType","secondary",["primary","secondary"]),Hs("borderless",!1),po("onAction")],JV=[...KV,sx,Gr("type",["button"])],mte=[...KV,Hs("active",!1),Gr("type",["togglebutton"])],eU={button:JV,togglebutton:mte},gR=[Gr("type",["group"]),mt("buttons",[],bn("type",eU))],gte=bn("type",{...eU,group:gR}),ZA=Si([mt("buttons",[],gte),po("onShow"),po("onHide")]),vte=l=>Rt("view",ZA,l),tU=(l,N)=>{var W,fe;const Se=l.type==="togglebutton",Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),ft=(()=>jr=>{const Ro=Pi=>{Be.map(Ao=>Ao.getOpt(jr).each($i=>{Fa.set($i,[K2(Pi,N.icons)])}))},ko=Pi=>{const Ao=jr.element;Pi?(uc(Ao,"tox-button--enabled"),Cr(Ao,"aria-pressed",!0)):(Zc(Ao,"tox-button--enabled"),Qt(Ao,"aria-pressed"))},_i=()=>rp(jr.element,"tox-button--enabled");if(Se)return l.onAction({setIcon:Ro,setActive:ko,isActive:_i});if(l.type==="button")return l.onAction({setIcon:Ro})})(),yt={...l,name:Se?l.text.getOr(l.icon.getOr("")):(W=l.text)!==null&&W!==void 0?W:l.icon.getOr(""),primary:l.buttonType==="primary",buttonType:I.from(l.buttonType),tooltip:l.tooltip,icon:l.icon,enabled:!0,borderless:l.borderless},Lt=I9((fe=l.buttonType)!==null&&fe!==void 0?fe:"secondary"),Ht=Se?l.text.map(N.translate):I.some(N.translate(l.text)),fn=Ht.map(Po),Rn=yt.tooltip.or(Ht).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Bn=Be.map(jr=>jr.asSpec()),er=Kw([Bn,fn]),cr=l.icon.isSome()&&fn.isSome(),Xr={tag:"button",classes:Lt.concat(...l.icon.isSome()&&!cr?["tox-button--icon"]:[]).concat(...cr?["tox-button--icon-and-text"]:[]).concat(...l.borderless?["tox-button--naked"]:[]).concat(...l.type==="togglebutton"&&l.active?["tox-button--enabled"]:[]),attributes:Rn},br=[],Fr=$5(yt,I.some(ft),br,Xr,er,l.tooltip,N);return Rh.sketch(Fr)},nU=(l,N)=>tU(l,N),yte=(l,N)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:re(l.buttons,W=>nU(W,N))}),bte=va().deviceType,xte=bte.isPhone(),_te=bte.isTablet(),vR=l=>{let N=!1;const W=re(l.buttons,fe=>fe.type==="group"?(N=!0,yte(fe,l.providers)):nU(fe,l.providers));return{uid:l.uid,dom:{tag:"div",classes:[N?"tox-view__toolbar":"tox-view__header",...xte||_te?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:ei([Ra.config({}),ha.config({mode:"flow",selector:"button, .tox-button",focusInside:Mv.OnEnterOrSpaceMode})]),components:N?W:[Iv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Iv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:W})]}},wte=l=>({uid:l.uid,behaviours:ei([Ra.config({}),Rc.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),qA=(l,N,W,fe)=>{const Se={getPane:Be=>qf.getPart(Be,l,"pane"),getOnShow:Be=>l.viewConfig.onShow,getOnHide:Be=>l.viewConfig.onHide};return{uid:l.uid,dom:l.dom,components:N,behaviours:ei([Ra.config({}),ha.config({mode:"cyclic",focusInside:Mv.OnEnterOrSpaceMode})]),apis:Se}};var uO=Zh({name:"silver.View",configFields:[pn("viewConfig")],partFields:[mm({factory:{sketch:vR},schema:[pn("buttons"),pn("providers")],name:"header"}),mm({factory:{sketch:wte},schema:[],name:"pane"})],factory:qA,apis:{getPane:(l,N)=>l.getPane(N),getOnShow:(l,N)=>l.getOnShow(N),getOnHide:(l,N)=>l.getOnHide(N)}});const rU=(l,N,W)=>je(N,(fe,Se)=>{const Be=Mt(vte(fe));return l.slot(Se,uO.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[uO.parts.header({buttons:Be.buttons,providers:W})]:[],uO.parts.pane({})]}))}),yR=(l,N)=>up.sketch(W=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:rU(W,l,N),slotBehaviours:lS.unnamedEvents([wc(fe=>up.hideAllSlots(fe))])})),oU=l=>ce(up.getSlotNames(l),N=>up.isShowing(l,N)),iU=l=>{const N=l.element;xr(N,"display","none"),Cr(N,"aria-hidden","true")},PS=l=>{const N=l.element;zi(N,"display"),Qt(N,"aria-hidden")},aU=l=>({getContainer:x(l)}),sU=(l,N,W)=>{up.getSlot(l,N).each(fe=>{uO.getPane(fe).each(Se=>{W(fe)(aU(Se.element.dom))})})},Ote=(l,N)=>sU(l,N,uO.getOnShow),Ste=(l,N)=>sU(l,N,uO.getOnHide);var WA=Qp({factory:(l,N)=>{const Be={setViews:(qe,ft)=>{Fa.set(qe,[yR(ft,N.backstage.shared.providers)])},whichView:qe=>Xs.getCurrent(qe).bind(oU),toggleView:(qe,ft,yt,Lt)=>Xs.getCurrent(qe).exists(Ht=>{const fn=oU(Ht),Rn=fn.exists(er=>Lt===er),Bn=up.getSlot(Ht,Lt).isSome();return Bn&&(up.hideAllSlots(Ht),Rn?(iU(qe),ft()):(yt(),PS(qe),up.showSlot(Ht,Lt),Ote(Ht,Lt)),fn.each(er=>Ste(Ht,er))),Bn})};return{uid:l.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:ei([Fa.config({}),Xs.config({find:qe=>{const ft=Fa.contents(qe);return Qe(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[pn("backstage")],apis:{setViews:(l,N,W)=>l.setViews(N,W),toggleView:(l,N,W,fe,Se)=>l.toggleView(N,W,fe,Se),whichView:(l,N)=>l.whichView(N)}});const kte=(l,N,W)=>{let fe=!1;const Se=qe=>{kl(qe,".tox-statusbar").each(ft=>{Di(ft,"display")==="none"&&Nr(ft,"aria-hidden")==="true"?(zi(ft,"display"),Qt(ft,"aria-hidden")):(xr(ft,"display","none"),Cr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>qf.getPart(qe,l,"socket"),setSidebar:(qe,ft,yt)=>{qf.getPart(qe,l,"sidebar").each(Lt=>Wee(Lt,ft,yt))},toggleSidebar:(qe,ft)=>{qf.getPart(qe,l,"sidebar").each(yt=>Yee(yt,ft))},whichSidebar:qe=>qf.getPart(qe,l,"sidebar").bind(Xee).getOrNull(),getHeader:qe=>qf.getPart(qe,l,"header"),getToolbar:qe=>qf.getPart(qe,l,"toolbar"),setToolbar:(qe,ft)=>{qf.getPart(qe,l,"toolbar").each(yt=>{const Lt=re(ft,QA);yt.getApis().setGroups(yt,Lt)})},setToolbars:(qe,ft)=>{qf.getPart(qe,l,"multiple-toolbar").each(yt=>{const Lt=re(ft,Ht=>re(Ht,QA));pV.setItems(yt,Lt)})},refreshToolbar:qe=>{qf.getPart(qe,l,"toolbar").each(yt=>yt.getApis().refresh(yt))},toggleToolbarDrawer:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggle,yt=>yt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggleWithoutFocusing,yt=>yt(ft))})},isToolbarDrawerToggled:qe=>qf.getPart(qe,l,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(yt=>yt(ft))).getOr(!1),getThrobber:qe=>qf.getPart(qe,l,"throbber"),focusToolbar:qe=>{qf.getPart(qe,l,"toolbar").orThunk(()=>qf.getPart(qe,l,"multiple-toolbar")).each(yt=>{ha.focusIn(yt)})},setMenubar:(qe,ft)=>{qf.getPart(qe,l,"menubar").each(yt=>{aR.setMenus(yt,ft)})},focusMenubar:qe=>{qf.getPart(qe,l,"menubar").each(ft=>{aR.focus(ft)})},setViews:(qe,ft)=>{qf.getPart(qe,l,"viewWrapper").each(yt=>{WA.setViews(yt,ft)})},toggleView:(qe,ft)=>qf.getPart(qe,l,"viewWrapper").exists(yt=>WA.toggleView(yt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>qf.getPart(qe,l,"viewWrapper").bind(WA.whichView).getOrNull(),hideMainView:qe=>{fe=Be.isToolbarDrawerToggled(qe),fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),xr(yt,"display","none"),Cr(yt,"aria-hidden","true")})},showMainView:qe=>{fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),zi(yt,"display"),Qt(yt,"aria-hidden")})}};return{uid:l.uid,dom:l.dom,components:N,apis:Be,behaviours:l.behaviours}},cU=zv.optional({factory:aR,name:"menubar",schema:[pn("backstage")]}),uU=l=>l.type===C0.sliding?pte:l.type===C0.floating?hte:HA,YA=zv.optional({factory:{sketch:l=>pV.sketch({uid:l.uid,dom:l.dom,listBehaviours:ei([ha.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>HA({type:l.type,uid:Li("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:l.providers,onEscape:()=>(l.onEscape(),I.some(!0))}),setupItem:(N,W,fe,Se)=>{Nv.setGroups(W,fe)},shell:!0})},name:"multiple-toolbar",schema:[pn("dom"),pn("onEscape")]}),bR=zv.optional({factory:{sketch:l=>{const N=uU(l),W={type:l.type,uid:l.uid,onEscape:()=>(l.onEscape(),I.some(!0)),onToggled:(fe,Se)=>l.onToolbarToggled(Se),cyclicKeying:!1,initGroups:[],getSink:l.getSink,providers:l.providers,moreDrawerData:{lazyToolbar:l.lazyToolbar,lazyMoreButton:l.lazyMoreButton,lazyHeader:l.lazyHeader},attributes:l.attributes};return N(W)}},name:"toolbar",schema:[pn("dom"),pn("onEscape"),pn("getSink")]}),Tte=zv.optional({factory:{sketch:iR},name:"header",schema:[pn("dom")]}),Cte=zv.optional({factory:{sketch:sR},name:"promotion",schema:[pn("dom")]}),fU=zv.optional({name:"socket",schema:[pn("dom")]}),Ate=zv.optional({factory:{sketch:EV},name:"sidebar",schema:[pn("dom")]}),Mte=zv.optional({factory:{sketch:Gfe},name:"throbber",schema:[pn("dom")]}),Ete=zv.optional({factory:WA,name:"viewWrapper",schema:[pn("backstage")]}),dU=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:l.components}),Pte=zv.optional({factory:{sketch:dU},name:"editorContainer",schema:[]});var Lc=Zh({name:"OuterContainer",factory:kte,configFields:[pn("dom"),pn("behaviours")],partFields:[Tte,cU,bR,YA,fU,Ate,Cte,Mte,Ete,Pte],apis:{getSocket:(l,N)=>l.getSocket(N),setSidebar:(l,N,W,fe)=>{l.setSidebar(N,W,fe)},toggleSidebar:(l,N,W)=>{l.toggleSidebar(N,W)},whichSidebar:(l,N)=>l.whichSidebar(N),getHeader:(l,N)=>l.getHeader(N),getToolbar:(l,N)=>l.getToolbar(N),setToolbar:(l,N,W)=>{l.setToolbar(N,W)},setToolbars:(l,N,W)=>{l.setToolbars(N,W)},refreshToolbar:(l,N)=>l.refreshToolbar(N),toggleToolbarDrawer:(l,N)=>{l.toggleToolbarDrawer(N)},toggleToolbarDrawerWithoutFocusing:(l,N)=>{l.toggleToolbarDrawerWithoutFocusing(N)},isToolbarDrawerToggled:(l,N)=>l.isToolbarDrawerToggled(N),getThrobber:(l,N)=>l.getThrobber(N),setMenubar:(l,N,W)=>{l.setMenubar(N,W)},focusMenubar:(l,N)=>{l.focusMenubar(N)},focusToolbar:(l,N)=>{l.focusToolbar(N)},setViews:(l,N,W)=>{l.setViews(N,W)},toggleView:(l,N,W)=>l.toggleView(N,W),whichView:(l,N)=>l.whichView(N)}});const xR="file edit view insert format tools table help",hU={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},Rte=(l,N,W)=>{const fe=g6(W).split(/[ ,]/);return{text:l.title,getItems:()=>ve(l.items,Se=>{const Be=Se.toLowerCase();return Be.trim().length===0?[]:te(fe,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:N.menuItems[Be]?[N.menuItems[Be]]:[]})}},XA=l=>l.split(" "),pU=(l,N)=>{const W={...hU,...N.menus},fe=ke(N.menus).length>0,Se=N.menubar===void 0||N.menubar===!0?XA(xR):XA(N.menubar===!1?"":N.menubar),Be=me(Se,ft=>{const yt=ht(hU,ft);return fe?yt||Ge(N.menus,ft).exists(Lt=>ht(Lt,"items")):yt}),qe=re(Be,ft=>{const yt=W[ft];return Rte({title:yt.title,items:XA(yt.items)},N,l)});return me(qe,ft=>{const yt=Lt=>n(Lt)||Lt.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),yt)})},mU=l=>{const N=()=>{l._skinLoaded=!0,sX(l)};return()=>{l.initialized?N():l.on("init",N)}},Lte=(l,N)=>()=>lX(l,{message:N}),_R=(l,N,W)=>(l.on("remove",()=>W.unload(N)),W.load(N)),wR=(l,N,W,fe)=>(l.on("remove",()=>fe.unloadRawCss(N)),fe.loadRawCss(N,W)),Ite=async(l,N)=>{const fe="ui/"+_6(l).getOr("default")+"/skin.css",Se=tinymce.Resource.get(fe);if(n(Se))wR(l,fe,Se,l.ui.styleSheetLoader);else{const Be=l.editorManager.suffix,qe=N+`/skin${Be}.css`;return _R(l,qe,l.ui.styleSheetLoader)}},Dte=async(l,N)=>{if(Gt(Nt.fromDom(l.getElement()))){const Se="ui/"+_6(l).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(Se);if(n(Be))wR(l,Se,Be,Fw.DOM.styleSheetLoader);else{const qe=l.editorManager.suffix,ft=N+`/skin.shadowdom${qe}.css`;return _R(l,ft,Fw.DOM.styleSheetLoader)}}},gU=async(l,N)=>{const W=()=>{const Se=YE(N),Be=N.editorManager.suffix;Se&&N.contentCSS.push(Se+(l?"/content.inline":"/content")+`${Be}.css`)};_6(N).fold(W,Se=>{const Be="ui/"+Se+(l?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?wR(N,Be,qe,N.ui.styleSheetLoader):W()});const fe=YE(N);if(!WE(N)&&n(fe))return Promise.all([Ite(N,fe),Dte(N,fe)]).then()},vU=(l,N)=>gU(l,N).then(mU(N),Lte(N,"Skin could not be loaded")),Bte=T(vU,!1),zte=T(vU,!0),o_=(l,N,W)=>at(W)?l.translate(N):l.translate([N,l.translate(W)]),OR=(l,N)=>{const W=(qe,ft,yt,Lt)=>{const Ht=l.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:Ht});if(qe.type==="submenu"){const fn=ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt));return ft===0&&fn.length<=0?I.none():I.some({type:"nestedmenuitem",text:Ht,enabled:fn.length>0,getSubmenuItems:()=>ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt))})}else return I.some({type:"togglemenuitem",text:Ht,icon:qe.icon,active:qe.isSelected(Lt),enabled:!yt,onAction:N.onAction(qe),...qe.getStylePreview().fold(()=>({}),fn=>({meta:{style:fn}}))})},fe=(qe,ft,yt)=>{const Lt=qe.type==="formatter"&&N.isInvalid(qe);return ft===0?Lt?[]:W(qe,ft,!1,yt).toArray():W(qe,ft,Lt,yt).toArray()},Se=qe=>{const ft=N.getCurrentValue(),yt=N.shouldHide?0:1;return ve(qe,Lt=>fe(Lt,yt,ft))};return{validateItems:Se,getFetch:(qe,ft)=>(yt,Lt)=>{const Ht=ft(),fn=Se(Ht),Rn=OS(fn,A1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});Lt(Rn)}}},RS=(l,N)=>{const W=N.dataset,fe=W.type==="basic"?()=>re(W.data,Se=>IA(Se,N.isSelectedFor,N.getPreviewFor)):W.getData;return{items:OR(l,N),getStyleItems:fe}},tT=(l,N,W,fe,Se,Be)=>{const{items:qe,getStyleItems:ft}=RS(N,W),yt=wi(W.tooltip),Lt=fn=>({getComponent:x(fn),setTooltip:Rn=>{const Bn=N.shared.providers.translate(Rn);Cr(fn.element,"aria-label",Bn),yt.set(Rn)}}),Ht=fn=>{const Rn=Bn=>fn.setTooltip(o_(l,fe(Bn.value),Bn.value));return l.on(Se,Rn),J6(tO(l,"NodeChange",Bn=>{const er=Bn.getComponent();W.updateText(er),he.set(Bn.getComponent(),!l.selection.isEditable())})(fn),()=>l.off(Se,Rn))};return g9({text:W.icon.isSome()?I.none():W.text,icon:W.icon,ariaLabel:I.some(W.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(N,ft),onSetup:Ht,getApi:Lt,columns:1,presets:"normal",classes:W.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Vu.config({...N.shared.providers.tooltips.getConfig({tooltipText:N.shared.providers.translate(W.tooltip),onShow:fn=>{if(W.tooltip!==yt.get()){const Rn=N.shared.providers.translate(yt.get());Vu.setComponents(fn,N.shared.providers.tooltips.getComponents({tooltipText:Rn}))}}})})]},"tox-tbtn",N.shared,Be)},Nte=l=>re(l,N=>{let W=N,fe=N;const Se=N.split("=");return Se.length>1&&(W=Se[0],fe=Se[1]),{title:W,format:fe}}),Fte=l=>({type:"basic",data:l});var LS;(function(l){l[l.SemiColon=0]="SemiColon",l[l.Space=1]="Space"})(LS||(LS={}));const $te=(l,N)=>N===LS.SemiColon?l.replace(/;$/,"").split(";"):l.split(" "),SR=(l,N,W)=>{const fe=l.options.get(N);return{type:"basic",data:Nte($te(fe,W))}},Vte="Align",yU=x("Alignment {0}"),kR="left",IS=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],GA=l=>{const N=()=>ce(IS,ft=>l.formatter.match(ft.format)),W=ft=>()=>l.formatter.match(ft),fe=ft=>I.none,Se=ft=>{const Lt=N().fold(x(kR),Ht=>Ht.title.toLowerCase());sa(ft,J2,{icon:`align-${Lt}`}),r7(l,{value:Lt})},Be=Fte(IS),qe=ft=>()=>ce(IS,yt=>yt.format===ft.format).each(yt=>l.execCommand(yt.command));return{tooltip:o_(l,yU(),kR),text:I.none(),icon:I.some("align-left"),isSelectedFor:W,getCurrentValue:I.none,getPreviewFor:fe,onAction:qe,updateText:Se,dataset:Be,shouldHide:!1,isInvalid:ft=>!l.formatter.canApply(ft.format)}},bU=(l,N)=>tT(l,N,GA(l),yU,"AlignTextUpdate","align"),i_=(l,N)=>{const W=RS(N,GA(l));l.ui.registry.addNestedMenuItem("align",{text:N.shared.providers.translate(Vte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},TR=(l,N)=>{const W=N(),fe=re(W,Se=>Se.format);return I.from(l.formatter.closest(fe)).bind(Se=>ce(W,Be=>Be.format===Se))},Ute="Blocks",xU=x("Block {0}"),CR="Paragraph",_U=l=>{const N=Be=>()=>l.formatter.match(Be),W=Be=>()=>{const qe=l.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(Be))}):I.none()},fe=Be=>{const ft=TR(l,()=>Se.data).fold(x(CR),yt=>yt.title);sa(Be,Ug,{text:ft}),pX(l,{value:ft})},Se=SR(l,"block_formats",LS.SemiColon);return{tooltip:o_(l,xU(),CR),text:I.some(CR),icon:I.none(),isSelectedFor:N,getCurrentValue:I.none,getPreviewFor:W,onAction:MN(l),updateText:fe,dataset:Se,shouldHide:!1,isInvalid:Be=>!l.formatter.canApply(Be.format)}},jte=(l,N)=>tT(l,N,_U(l),xU,"BlocksTextUpdate","blocks"),Qte=(l,N)=>{const W=RS(N,_U(l));l.ui.registry.addNestedMenuItem("blocks",{text:Ute,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Hte="Fonts",AR=x("Font {0}"),MR="System Font",Zte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],KA=l=>{const N=l.split(/\s*,\s*/);return re(N,W=>W.replace(/^['"]+|['"]+$/g,""))},wU=(l,N)=>N.length>0&&_e(N,W=>l.indexOf(W.toLowerCase())>-1),qte=(l,N)=>{if(l.indexOf("-apple-system")===0||N.length>0){const W=KA(l.toLowerCase());return wU(W,Zte)||wU(W,N)}else return!1},OU=l=>{const N=()=>{const yt=er=>er?KA(er)[0]:"",Lt=l.queryCommandValue("FontName"),Ht=ft.data,fn=Lt?Lt.toLowerCase():"",Rn=dz(l);return{matchOpt:ce(Ht,er=>{const cr=er.format;return cr.toLowerCase()===fn||yt(cr).toLowerCase()===yt(fn).toLowerCase()}).orThunk(()=>Ot(qte(fn,Rn),{title:MR,format:fn})),font:Lt}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=yt=>()=>I.some({tag:"div",styles:yt.indexOf("dings")===-1?{"font-family":yt}:{}}),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontName",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,font:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),o7(l,{value:fn})},ft=SR(l,"font_family_formats",LS.SemiColon);return{tooltip:o_(l,AR(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:W,getCurrentValue:fe,getPreviewFor:Se,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Wte=(l,N)=>tT(l,N,OU(l),AR,"FontFamilyTextUpdate","fontfamily"),Yte=(l,N)=>{const W=RS(N,OU(l));l.ui.registry.addNestedMenuItem("fontfamily",{text:N.shared.providers.translate(Hte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Xte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},SU=(()=>{const l="[0-9]+",W="[eE]"+("[+-]?"+l),fe="\\.",Se=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",l+fe+Se(l)+Se(W),fe+l+Se(W),l+Se(W)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),kU=(l,N)=>te(N,W=>te(Xte[W],fe=>l===fe)),nT=(l,N)=>I.from(SU.exec(l)).bind(fe=>{const Se=Number(fe[1]),Be=fe[2];return kU(Be,N)?I.some({value:Se,unit:Be}):I.none()}),Gte=(l,N)=>nT(l,N).map(({value:W,unit:fe})=>W+fe),ER={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},Kte=(l,N,W,fe)=>{let Se=I.none();const Be=jr=>jr.map(Ro=>Ei.getValue(Ro)).getOr(""),qe=tO(l,"NodeChange SwitchMode",jr=>{const Ro=jr.getComponent();Se=I.some(Ro),W.updateInputValue(Ro),he.set(Ro,!l.selection.isEditable())}),ft=jr=>({getComponent:x(jr)}),yt=wi(v),Lt=Li("custom-number-input-events"),Ht=(jr,Ro,ko)=>{const _i=Be(Se),Pi=W.getNewValue(_i,jr),Ao=_i.length-`${Pi}`.length,$i=Se.map(Xi=>Xi.element.dom.selectionStart-Ao),yi=Se.map(Xi=>Xi.element.dom.selectionEnd-Ao);W.onAction(Pi,ko),Se.each(Xi=>{Ei.setValue(Xi,Pi),Ro&&($i.each(ks=>Xi.element.dom.selectionStart=ks),yi.each(ks=>Xi.element.dom.selectionEnd=ks))})},fn=(jr,Ro)=>Ht((ko,_i)=>ko-_i,jr,Ro),Rn=(jr,Ro)=>Ht((ko,_i)=>ko+_i,jr,Ro),Bn=jr=>Zr(jr.element).fold(I.none,Ro=>(Md(Ro),I.some(!0))),er=jr=>_0(jr.element)?(Rr(jr.element).each(Ro=>Md(Ro)),I.some(!0)):I.none(),cr=(jr,Ro,ko,_i)=>{const Pi=wi(v),Ao=N.shared.providers.translate(ko),$i=Li("altExecuting"),yi=tO(l,"NodeChange SwitchMode",ks=>{he.set(ks.getComponent(),!l.selection.isEditable())}),Xi=ks=>{he.isDisabled(ks)||jr(!0)};return Rh.sketch({dom:{tag:"button",attributes:{"aria-label":Ao,"data-mce-name":Ro},classes:_i.concat(Ro)},components:[kA(Ro,N.shared.providers.icons)],buttonBehaviours:ei([he.config({}),Vu.config(N.shared.providers.tooltips.getConfig({tooltipText:Ao})),Ka($i,[cp({onSetup:yi,getApi:ft},Pi),j2({getApi:ft},Pi),Lo(nm(),(ks,Ic)=>{(Ic.event.raw.keyCode===ER.space()||Ic.event.raw.keyCode===ER.enter())&&(he.isDisabled(ks)||jr(!1))}),Lo(H1(),Xi),Lo(Gl(),Xi)])]),eventOrder:{[nm()]:[$i,"keying"],[H1()]:[$i,"alloy.base.behaviour"],[Gl()]:[$i,"alloy.base.behaviour"],[Oh()]:["alloy.base.behaviour",$i,"tooltipping"],[zp()]:[$i,"tooltipping"]}})},Xr=ml(cr(jr=>fn(!1,jr),"minus","Decrease font size",[])),br=ml(cr(jr=>Rn(!1,jr),"plus","Increase font size",[])),Fr=ml({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ww.sketch({inputBehaviours:ei([he.config({}),Ka(Lt,[cp({onSetup:qe,getApi:ft},yt),j2({getApi:ft},yt)]),Ka("input-update-display-text",[Lo(Ug,(jr,Ro)=>{Ei.setValue(jr,Ro.event.text)}),Lo(Rm(),jr=>{W.onAction(Ei.getValue(jr))}),Lo(s0(),jr=>{W.onAction(Ei.getValue(jr))})]),ha.config({mode:"special",onEnter:jr=>(Ht(R,!0,!0),I.some(!0)),onEscape:Bn,onUp:jr=>(Rn(!0,!1),I.some(!0)),onDown:jr=>(fn(!0,!1),I.some(!0)),onLeft:(jr,Ro)=>(Ro.cut(),I.none()),onRight:(jr,Ro)=>(Ro.cut(),I.none())})])})],behaviours:ei([Ra.config({}),ha.config({mode:"special",onEnter:er,onSpace:er,onEscape:Bn}),Ka("input-wrapper-events",[Lo(wu(),jr=>{q([Xr,br],Ro=>{const ko=Nt.fromDom(Ro.get(jr).element.dom);_0(ko)&&m1(ko)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(fe)?{"data-mce-name":fe}:{}}},components:[Xr.asSpec(),Fr.asSpec(),br.asSpec()],behaviours:ei([Ra.config({}),ha.config({mode:"flow",focusInside:Mv.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:jr=>_0(jr.element)?I.none():(Md(jr.element),I.some(!0))})])}},Jte="Font sizes",TU=x("Font size {0}"),PR="12pt",ene={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},CU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},tne=(l,N)=>{const W=Math.pow(10,N);return Math.round(l*W)/W},nne=(l,N)=>/[0-9.]+px$/.test(l)?tne(parseInt(l,10)*72/96,N||0)+"pt":Ge(CU,l).getOr(l),rne=l=>Ge(ene,l).getOr(""),AU=l=>{const N=()=>{let yt=I.none();const Lt=ft.data,Ht=l.queryCommandValue("FontSize");if(Ht)for(let fn=3;yt.isNone()&&fn>=0;fn--){const Rn=nne(Ht,fn),Bn=rne(Rn);yt=ce(Lt,er=>er.format===Ht||er.format===Rn||er.format===Bn)}return{matchOpt:yt,size:Ht}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=x(I.none),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontSize",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,size:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),CN(l,{value:fn})},ft=SR(l,"font_size_formats",LS.Space);return{tooltip:o_(l,TU(),PR),text:I.some(PR),icon:I.none(),isSelectedFor:W,getPreviewFor:Se,getCurrentValue:fe,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},one=(l,N)=>tT(l,N,AU(l),TU,"FontSizeTextUpdate","fontsize"),ine=l=>{var N;const W={step:1};return(N={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[l])!==null&&N!==void 0?N:W},ane=16,MU=l=>l>=0,sne=l=>{const N=()=>l.queryCommandValue("FontSize");return{updateInputValue:fe=>sa(fe,Ug,{text:N()}),onAction:(fe,Se)=>l.execCommand("FontSize",!1,fe,{skip_focus:!Se}),getNewValue:(fe,Se)=>{nT(fe,["unsupportedLength","empty"]);const Be=N(),qe=nT(fe,["unsupportedLength","empty"]).or(nT(Be,["unsupportedLength","empty"])),ft=qe.map(Rn=>Rn.value).getOr(ane),yt=v6(l),Lt=qe.map(Rn=>Rn.unit).filter(Rn=>Rn!=="").getOr(yt),Ht=Se(ft,ine(Lt).step),fn=`${MU(Ht)?Ht:ft}${Lt}`;return fn!==Be&&AN(l,{value:fn}),fn}}},lne=(l,N)=>Kte(l,N,sne(l),"fontsizeinput"),cne=(l,N)=>{const W=RS(N,AU(l));l.ui.registry.addNestedMenuItem("fontsize",{text:Jte,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},une="Formats",EU=l=>at(l)?"Formats":"Format {0}",PU=(l,N)=>{const W="Formats",fe=qe=>()=>l.formatter.match(qe),Se=qe=>()=>{const ft=l.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=fn=>q9(fn)?ve(fn.items,ft):K$(fn)?[{title:fn.title,format:fn.format}]:[],yt=ve(Z5(l),ft),Ht=TR(l,x(yt)).fold(x({title:W,tooltipLabel:""}),fn=>({title:fn.title,tooltipLabel:fn.title}));sa(qe,Ug,{text:Ht.title}),hX(l,{value:Ht.tooltipLabel})};return{tooltip:o_(l,EU(""),""),text:I.some(W),icon:I.none(),isSelectedFor:fe,getCurrentValue:I.none,getPreviewFor:Se,onAction:MN(l),updateText:Be,shouldHide:KB(l),isInvalid:qe=>!l.formatter.canApply(qe.format),dataset:N}},fne=(l,N)=>{const W={type:"advanced",...N.styles};return tT(l,N,PU(l,W),EU,"StylesTextUpdate","styles")},RU=(l,N)=>{const W={type:"advanced",...N.styles},fe=RS(N,PU(l,W));l.ui.registry.addNestedMenuItem("styles",{text:une,onSetup:kp(l),getSubmenuItems:()=>fe.items.validateItems(fe.getStyleItems())})},dne=x([pn("toggleClass"),pn("fetch"),Ch("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Ch("onItemExecute"),Yo("lazySink"),pn("dom"),Ss("onOpen"),Pd("splitDropdownBehaviours",[Ku,ha,Ra]),Ar("matchWidth",!1),Ar("useMinWidth",!1),Ar("eventOrder",{}),Yo("role"),Yo("listRole")].concat(oA())),hne=mh({factory:Rh,schema:[pn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(Bm)},buttonBehaviours:ei([us.config({toggleOnExecute:!1,toggleClass:l.toggleClass})])})}),LU=mh({factory:Rh,schema:[pn("dom")],name:"button",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(W=>{l.onExecute(W,N)})}})}),pne=x([hne,LU,mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),Jm({schema:[Um()],name:"menu",defaults:l=>({onExecute:(N,W)=>{N.getSystem().getByUid(l.uid).each(fe=>{l.onItemExecute(fe,N,W)})}})}),JN()]),IU=(l,N,W,fe)=>{const Se=Ht=>{Xs.getCurrent(Ht).each(fn=>{ta.highlightFirst(fn),ha.focusIn(fn)})},Be=Ht=>{b7(l,R,Ht,fe,Se,Gu.HighlightMenuAndItem).get(v)},qe=Ht=>(Be(Ht),I.some(!0)),ft=Ht=>{const fn=gm(Ht,l,"button");return Bm(fn),I.some(!0)},yt={...Rl([wc((Ht,fn)=>{Jo(Ht,l,"aria-descriptor").each(Bn=>{const er=Li("aria");Cr(Bn.element,"id",er),Cr(Ht.element,"aria-describedby",er)})})]),...f6(I.some(Be))},Lt={repositionMenus:Ht=>{us.isOn(Ht)&&tF(Ht)}};return{uid:l.uid,dom:l.dom,components:N,apis:Lt,eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},events:yt,behaviours:Rd(l.splitDropdownBehaviours,[Ku.config({others:{sandbox:Ht=>{const fn=gm(Ht,l,"arrow");return w7(l,Ht,{onOpen:()=>{us.on(fn),us.on(Ht)},onClose:()=>{us.off(fn),us.off(Ht)}})}}}),ha.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),Ra.config({}),us.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:l.role.getOr("button"),"aria-haspopup":!0}}}},rT=Zh({name:"SplitDropdown",configFields:dne(),partFields:pne(),factory:IU,apis:{repositionMenus:(l,N)=>l.repositionMenus(N)}}),DU=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),mne=l=>({setActive:N=>{us.set(l,N)},isActive:()=>us.isOn(l),isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),BU=(l,N)=>l.map(W=>({"aria-label":N.translate(W)})).getOr({}),fO=Li("focus-button"),RR=(l,N,W,fe,Se,Be)=>{const qe=N.map(yt=>ml(m9(yt,"tox-tbtn",Se))),ft=l.map(yt=>ml(K2(yt,Se.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(N.isSome()?["tox-tbtn--select"]:[]),attributes:{...BU(W,Se),...a(Be)?{"data-mce-name":Be}:{}}},components:Kw([ft.map(yt=>yt.asSpec()),qe.map(yt=>yt.asSpec())]),eventOrder:{[Nc()]:["focusing","alloy.base.behaviour",G2],[Oh()]:[G2,"toolbar-group-button-events"]},buttonBehaviours:ei([E1.toolbarButton(Se.isDisabled),Id(),Ka(G2,[wc((yt,Lt)=>h9(yt)),Lo(Ug,(yt,Lt)=>{qe.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[Po(Se.translate(Lt.event.text))])})}),Lo(J2,(yt,Lt)=>{ft.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[K2(Lt.event.icon,Se.icons)])})}),Lo(Nc(),(yt,Lt)=>{Lt.event.prevent(),Za(yt,fO)})])].concat(fe.getOr([])))}},gne=(l,N,W,fe,Se)=>{const Be=N.shared,qe=wi(v),ft={toolbarButtonBehaviours:[],getApi:DU,onSetup:l.onSetup},yt=[Ka("toolbar-group-button-events",[cp(ft,qe),j2(ft,qe)])];return r_.sketch({lazySink:Be.getSink,fetch:()=>Lh.nu(Lt=>{Lt(re(W(l.items),QA))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:RR(l.icon,l.text,l.tooltip,I.some(yt),Be.providers,Se),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:fe}}}})},zU=(l,N,W,fe)=>{var Se;const Be=wi(v),qe=RR(l.icon,l.text,l.tooltip,I.none(),W,fe);return Rh.sketch({dom:qe.dom,components:qe.components,eventOrder:d9,buttonBehaviours:{...ei([Ka("toolbar-button-events",[UK({onAction:l.onAction,getApi:N.getApi}),cp(N,Be),j2(N,Be)]),...l.tooltip.map(ft=>Vu.config(W.tooltips.getConfig({tooltipText:W.translate(ft)+l.shortcut.map(yt=>` (${q6(yt)})`).getOr("")}))).toArray(),E1.toolbarButton(()=>!l.enabled||W.isDisabled()),Id()].concat(N.toolbarButtonBehaviours)),[G2]:(Se=qe.buttonBehaviours)===null||Se===void 0?void 0:Se[G2]}})},vne=(l,N,W)=>NU(l,N,[],W),NU=(l,N,W,fe)=>zU(l,{toolbarButtonBehaviours:W.length>0?[Ka("toolbarButtonWith",W)]:[],getApi:DU,onSetup:l.onSetup},N,fe),yne=(l,N,W)=>FU(l,N,[],W),FU=(l,N,W,fe)=>zU(l,{toolbarButtonBehaviours:[Fa.config({}),us.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(W.length>0?[Ka("toolbarToggleButtonWith",W)]:[]),getApi:mne,onSetup:l.onSetup},N,fe),bne=(l,N,W)=>fe=>Lh.nu(Se=>N.fetch(Se)).map(Se=>I.from(lA(ws(g7(Li("menu-value"),Se,Be=>{N.onItemAction(l(fe),Be)},N.columns,N.presets,A1.CLOSE_ON_EXECUTE,N.select.getOr(D),W),{movement:rA(N.columns,N.presets),menuBehaviours:lS.unnamedEvents(N.columns!=="auto"?[]:[wc((Be,qe)=>{QP(Be,4,kP(N.presets)).each(({numRows:ft,numColumns:yt})=>{ha.setGridSize(Be,ft,yt)})})])})))),LR=(l,N,W)=>{const fe=wi(l.tooltip.getOr("")),Se=ft=>({isEnabled:()=>!he.isDisabled(ft),setEnabled:yt=>he.set(ft,!yt),setIconFill:(yt,Lt)=>{qa(ft.element,`svg path[class="${yt}"], rect[class="${yt}"]`).each(Ht=>{Cr(Ht,"fill",Lt)})},setActive:yt=>{Cr(ft.element,"aria-pressed",yt),qa(ft.element,"span").each(Lt=>{ft.getSystem().getByDom(Lt).each(Ht=>us.set(Ht,yt))})},isActive:()=>qa(ft.element,"span").exists(yt=>ft.getSystem().getByDom(yt).exists(us.isOn)),setText:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,Ug,{text:yt}))),setIcon:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,J2,{icon:yt}))),setTooltip:yt=>{const Lt=N.providers.translate(yt);Cr(ft.element,"aria-label",Lt),fe.set(yt)}}),Be=wi(v),qe={getApi:Se,onSetup:l.onSetup};return rT.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...BU(l.tooltip,N.providers),...a(W)?{"data-mce-name":W}:{}}},onExecute:ft=>{const yt=Se(ft);yt.isEnabled()&&l.onAction(yt)},onItemExecute:(ft,yt,Lt)=>{},splitDropdownBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),Ka("split-dropdown-events",[wc((ft,yt)=>h9(ft)),Lo(fO,Ra.focus),cp(qe,Be),j2(qe,Be)]),bS.config({}),...l.tooltip.map(ft=>Vu.config({...N.providers.tooltips.getConfig({tooltipText:N.providers.translate(ft),onShow:yt=>{if(fe.get()!==ft){const Lt=N.providers.translate(fe.get());Vu.setComponents(yt,N.providers.tooltips.getComponents({tooltipText:Lt}))}}})})).toArray()]),eventOrder:{[Oh()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[zp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:N.getSink,fetch:bne(Se,l,N.providers),parts:{menu:Xk(!1,l.columns,l.presets)},components:[rT.parts.button(RR(l.icon,l.text,I.none(),I.some([us.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),N.providers)),rT.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:yP("chevron-down",N.providers.icons)},buttonBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),E6()])}),rT.parts["aria-descriptor"]({text:N.providers.translate("To open the popup, press Shift+Enter")})]})},xne=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],oT=(l,N)=>(W,fe,Se,Be)=>{const qe=l(W).mapError(ft=>dn(ft)).getOrDie();return N(qe,fe,Se,Be)},$U={button:oT(Wz,(l,N,W,fe)=>vne(l,N.shared.providers,fe)),togglebutton:oT(Yz,(l,N,W,fe)=>yne(l,N.shared.providers,fe)),menubutton:oT(OV,(l,N,W,fe)=>N5(l,"tox-tbtn",N,I.none(),!1,fe)),splitbutton:oT(jee,(l,N,W,fe)=>LR(l,N.shared,fe)),grouptoolbarbutton:oT(X5,(l,N,W,fe)=>{const Se=W.ui.registry.getAll().buttons,Be=ft=>iT(W,{buttons:Se,toolbar:ft,allowToolbarGroups:!1},N,I.none()),qe={[Nb]:N.shared.header.isPositionedAtTop()?ap.TopToBottom:ap.BottomToTop};switch(jw(W)){case C0.floating:return gne(l,N,Be,qe,fe);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},VU=(l,N,W,fe)=>Ge($U,l.type).fold(()=>(console.error("skipping button defined by",l),I.none()),Se=>I.some(Se(l,N,W,fe))),UU={styles:fne,fontsize:one,fontsizeinput:lne,fontfamily:Wte,blocks:jte,align:bU},_ne=l=>{const N=re(xne,W=>{const fe=me(W.items,Se=>ht(l,Se)||ht(UU,Se));return{name:W.name,items:fe}});return me(N,W=>W.items.length>0)},wne=l=>{const N=l.split("|");return re(N,W=>({items:W.trim().split(" ")}))},One=l=>p(l,N=>ht(N,"name")&&ht(N,"items")),Sne=l=>{const N=l.toolbar,W=l.buttons;return N===!1?[]:N===void 0||N===!0?_ne(W):n(N)?wne(N):One(N)?N:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},kne=(l,N,W,fe,Se,Be)=>Ge(N,W.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(N,ft+W.toLowerCase())))).fold(()=>Ge(UU,W.toLowerCase()).map(qe=>qe(l,Se)),qe=>qe.type==="grouptoolbarbutton"&&!fe?(console.warn(`Ignoring the '${W}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):VU(qe,Se,l,W.toLowerCase())),iT=(l,N,W,fe)=>{const Se=Sne(N),Be=re(Se,qe=>{const ft=ve(qe.items,yt=>yt.trim().length===0?[]:kne(l,N.buttons,yt,N.allowToolbarGroups,W,fe).toArray());return{title:I.from(l.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},jU=(l,N,W,fe)=>{const Se=N.mainUi.outerContainer,Be=W.toolbar,qe=W.buttons;if(p(Be,n)){const ft=Be.map(yt=>{const Lt={toolbar:yt,buttons:qe,allowToolbarGroups:W.allowToolbarGroups};return iT(l,Lt,fe,I.none())});Lc.setToolbars(Se,ft)}else Lc.setToolbar(Se,iT(l,W,fe,I.none()))},QU=va(),Tne=QU.os.isiOS()&&QU.os.version.major<=12,Cne=(l,N)=>{const{uiMotherships:W}=N,fe=l.dom;let Se=l.getWin();const Be=l.getDoc().documentElement,qe=wi(Qs(Se.innerWidth,Se.innerHeight)),ft=wi(Qs(Be.offsetWidth,Be.offsetHeight)),yt=()=>{const Rn=qe.get();(Rn.left!==Se.innerWidth||Rn.top!==Se.innerHeight)&&(qe.set(Qs(Se.innerWidth,Se.innerHeight)),K6(l))},Lt=()=>{const Rn=l.getDoc().documentElement,Bn=ft.get();(Bn.left!==Rn.offsetWidth||Bn.top!==Rn.offsetHeight)&&(ft.set(Qs(Rn.offsetWidth,Rn.offsetHeight)),K6(l))},Ht=Rn=>{cX(l,Rn)};fe.bind(Se,"resize",yt),fe.bind(Se,"scroll",Ht);const fn=i2(Nt.fromDom(l.getBody()),"load",Lt);l.on("hide",()=>{q(W,Rn=>{xr(Rn.element,"display","none")})}),l.on("show",()=>{q(W,Rn=>{zi(Rn.element,"display")})}),l.on("NodeChange",Lt),l.on("remove",()=>{fn.unbind(),fe.unbind(Se,"resize",yt),fe.unbind(Se,"scroll",Ht),Se=null})},JA=(l,N,W)=>{N2(l)&&Hb(W.mainUi.mothership.element,W.popupUi.mothership),kw(N,W.dialogUi.mothership)};var e8=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=N,ft=wi(0),yt=Be.outerContainer;Bte(l);const Lt=Nt.fromDom(Se.targetNode),Ht=Er(kr(Lt));Hb(Lt,Be.mothership),JA(l,Ht,N),l.on("SkinLoaded",()=>{Lc.setSidebar(yt,W.sidebar,b6(l)),jU(l,N,W,fe),ft.set(l.getWin().innerWidth),Lc.setMenubar(yt,pU(l,W)),Lc.setViews(yt,W.views),Cne(l,N)});const fn=Lc.getSocket(yt).getOrDie("Could not find expected socket element");if(Tne){Oo(fn.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const cr=LK(()=>{l.dispatch("ScrollContent")},20),Xr=ud(fn.element,"scroll",cr.throttle);l.on("remove",Xr.unbind)}HP(l,N),l.addCommand("ToggleSidebar",(cr,Xr)=>{Lc.toggleSidebar(yt,Xr),mX(l)}),l.addQueryValueHandler("ToggleSidebar",()=>{var cr;return(cr=Lc.whichSidebar(yt))!==null&&cr!==void 0?cr:""}),l.addCommand("ToggleView",(cr,Xr)=>{if(Lc.toggleView(yt,Xr)){const br=yt.element;Be.mothership.broadcastOn([_1()],{target:br}),q(qe,Fr=>{Fr.broadcastOn([_1()],{target:br})}),S(Lc.whichView(yt))&&(l.focus(),l.nodeChanged(),Lc.refreshToolbar(yt)),gX(l)}}),l.addQueryValueHandler("ToggleView",()=>{var cr;return(cr=Lc.whichView(yt))!==null&&cr!==void 0?cr:""});const Rn=jw(l),Bn=()=>{Lc.refreshToolbar(N.mainUi.outerContainer)};(Rn===C0.sliding||Rn===C0.floating)&&l.on("ResizeWindow ResizeEditor ResizeContent",()=>{const cr=l.getWin().innerWidth;cr!==ft.get()&&(Bn(),ft.set(cr))});const er={setEnabled:cr=>{cS(N,!cr)},isEnabled:()=>!he.isDisabled(yt)};return{iframeContainer:fn.element.dom,editorContainer:yt.element.dom,api:er}}});const aT=l=>/^[0-9\.]+(|px)$/i.test(""+l)?I.some(parseInt(""+l,10)):I.none(),t8=l=>h(l)?l+"px":l,n8=(l,N,W)=>{const fe=N.filter(Be=>ll>Be);return fe.or(Se).getOr(l)},Ane=l=>{const N=Lk(l),W=eS(l),fe=m6(l);return aT(N).map(Se=>n8(Se,W,fe))},Mne=l=>Ane(l).getOr(Lk(l)),HU=l=>{const N=UE(l),W=Uw(l),fe=Ik(l);return aT(N).map(Se=>n8(Se,W,fe))},Ene=l=>HU(l).getOr(UE(l)),{ToolbarLocation:DS,ToolbarMode:IR}=mz,ZU=40,qU=(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=W,ft=Fw.DOM,yt=tS(l),Lt=Qw(l),Ht=Ik(l).or(HU(l)),fn=fe.shared.header,Rn=fn.isPositionedAtTop,Bn=150,er=jw(l),cr=er===IR.sliding||er===IR.floating,Xr=wi(!1),br=()=>Xr.get()&&!l.removed,Fr=Ui=>cr?Ui.fold(x(0),Ko=>Ko.components().length>1?il(Ko.components()[1].element):0):0,jr=Ui=>{switch(Dk(l)){case DS.auto:const Ko=Lc.getToolbar(Be.outerContainer),Oi=Fr(Ko),La=il(Ui.element)-Oi,_a=cl(N);if(_a.y>La)return"top";{const Qa=Hn(N),ac=Math.max(Qa.dom.scrollHeight,il(Qa));return _a.bottom{Se.on(Ko=>{fc.setModes(Ko,[Ui]),fn.setDockingMode(Ui);const Oi=Rn()?ap.TopToBottom:ap.BottomToTop;Cr(Ko.element,Nb,Oi)})},ko=()=>{Se.on(Ui=>{const Ko=Ht.getOrThunk(()=>Ks().width-iu(N).left-10);xr(Ui.element,"max-width",Ko+"px")})},_i=(Ui,Ko)=>{Se.on(Oi=>{const La=Lc.getToolbar(Be.outerContainer),_a=Fr(La),fa=cl(N),Qa=Pi(l,Be.outerContainer.element),ac=()=>Qa.fold(()=>fa.x,Wh=>{const Wg=cl(Wh);return _o(Wh,Lr())?fa.x:fa.x-Wg.x}),vl=()=>Qa.fold(()=>Rn()?Math.max(fa.y-il(Oi.element)+_a,0):fa.bottom,Wh=>{var Wg;const U0=cl(Wh),km=(Wg=Wh.dom.scrollTop)!==null&&Wg!==void 0?Wg:0,xO=_o(Wh,Lr())?Math.max(fa.y-il(Oi.element)+_a,0):fa.y-U0.y+km-il(Oi.element)+_a;return Rn()?xO:fa.bottom}),dp=ac(),qg=Ot(Ui,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(Wh=>Wh>Bn).map(Wh=>{const Wg=Ko.getOr(yc()),U0=window.innerWidth-(dp-Wg.left),km=Math.max(Math.min(Wh,U0),Bn);return U0N2(Ui)?jh(Ko):I.none(),Ao=()=>{q(qe,Ui=>{Ui.broadcastOn([qb()],{})})},$i=()=>!yt&&(Tc(Be.outerContainer.element).left+ma(Be.outerContainer.element)>=window.innerWidth-ZU||Ia(Be.outerContainer.element,"width").isSome())?(xr(Be.outerContainer.element,"position","absolute"),xr(Be.outerContainer.element,"left","0px"),zi(Be.outerContainer.element,"width"),!0):!1,yi=Ui=>{if(!br())return;yt||ko();const Ko=yc(),Oi=yt?!1:$i();if(cr&&Lc.refreshToolbar(Be.outerContainer),!yt){const La=yc(),_a=Ot(Ko.left!==La.left,Ko);_i(Oi,_a),_a.each(fa=>{Cc(fa.left,La.top)})}Lt&&Se.on(Ui),Ao()},Xi=()=>yt||!Lt||!br()?!1:Se.get().exists(Ui=>{const Ko=fn.getDockingMode(),Oi=jr(Ui);return Oi!==Ko?(Ro(Oi),!0):!1});return{isVisible:br,isPositionedAtTop:Rn,show:()=>{Xr.set(!0),xr(Be.outerContainer.element,"display","flex"),ft.addClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{zi(Ui.element,"display")}),Xi(),N2(l)?yi(Ui=>fc.isDocked(Ui)?fc.reset(Ui):fc.refresh(Ui)):yi(fc.refresh)},hide:()=>{Xr.set(!1),xr(Be.outerContainer.element,"display","none"),ft.removeClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{xr(Ui.element,"display","none")})},update:yi,updateMode:()=>{Xi()&&yi(fc.reset)},repositionPopups:Ao}},DR=(l,N)=>{const W=cl(l);return{pos:N?W.y:W.bottom,bounds:W}},Pne=(l,N,W,fe)=>{const Se=wi(DR(N,W.isPositionedAtTop())),Be=Lt=>{const{pos:Ht,bounds:fn}=DR(N,W.isPositionedAtTop()),{pos:Rn,bounds:Bn}=Se.get(),er=fn.height!==Bn.height||fn.width!==Bn.width;Se.set({pos:Ht,bounds:fn}),er&&K6(l,Lt),W.isVisible()&&(Rn!==Ht?W.update(fc.reset):er&&(W.updateMode(),W.repositionPopups()))};fe||(l.on("activate",W.show),l.on("deactivate",W.hide)),l.on("SkinLoaded ResizeWindow",()=>W.update(fc.reset)),l.on("NodeChange keydown",Lt=>{requestAnimationFrame(()=>Be(Lt))});let qe=0;const ft=o9(()=>W.update(fc.refresh),33);l.on("ScrollWindow",()=>{const Lt=yc().left;Lt!==qe&&(qe=Lt,ft.throttle()),W.updateMode()}),N2(l)&&l.on("ElementScroll",Lt=>{W.update(fc.refresh)});const yt=Ol();yt.set(i2(Nt.fromDom(l.getBody()),"load",Lt=>Be(Lt.raw))),l.on("remove",()=>{yt.clear()})};var Lne=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be}=N,qe=ds(),ft=Nt.fromDom(Se.targetNode),yt=qU(l,ft,N,fe,qe),Lt=tz(l);zte(l);const Ht=()=>{if(qe.isSet()){yt.show();return}qe.set(Lc.getHeader(Be.outerContainer).getOrDie());const Rn=GE(l);N2(l)?(Hb(ft,Be.mothership),Hb(ft,N.popupUi.mothership)):kw(Rn,Be.mothership),kw(Rn,N.dialogUi.mothership);const Bn=()=>{jU(l,N,W,fe),Lc.setMenubar(Be.outerContainer,pU(l,W)),yt.show(),Pne(l,ft,yt,Lt),l.nodeChanged()};Lt?l.once("SkinLoaded",Bn):Bn()};l.on("show",Ht),l.on("hide",yt.hide),Lt||(l.on("focus",Ht),l.on("blur",yt.hide)),l.on("init",()=>{(l.hasFocus()||Lt)&&Ht()}),HP(l,N);const fn={show:Ht,hide:yt.hide,setEnabled:Rn=>{cS(N,!Rn)},isEnabled:()=>!he.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:fn}}});const Ine=()=>{const l=ds(),N=ds(),W=ds();return{dialogUi:l,popupUi:N,mainUi:W,getUiMotherships:()=>{const Be=l.get().map(ft=>ft.mothership),qe=N.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],yt=>_o(ft.element,yt.element)?[ft]:[ft,yt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>W.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},Dne="contexttoolbar-show",WU="contexttoolbar-hide",Bne=l=>({hide:()=>Za(l,Z1()),getValue:()=>Ei.getValue(l)}),BS=(l,N)=>Lo(d$,(W,fe)=>{const Se=l.get(W),Be=Bne(Se);N.onAction(Be,fe.event.buttonApi)}),zne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Wz({...Se,type:"button",onAction:v}));return NU(Be,W,[BS(l,N)])},Nne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Yz({...Se,type:"togglebutton",onAction:v}));return FU(Be,W,[BS(l,N)])},Fne=l=>l.type==="contextformtogglebutton",YU=(l,N,W)=>Fne(N)?Nne(l,N,W):zne(l,N,W),$ne=(l,N,W)=>{const fe=re(N,qe=>ml(YU(l,qe,W)));return{asSpecs:()=>re(fe,qe=>qe.asSpec()),findPrimary:qe=>Oe(N,(ft,yt)=>ft.primary?I.from(fe[yt]).bind(Lt=>Lt.getOpt(qe)).filter(P(he.isDisabled)):I.none())}},BR=(l,N)=>{const W=l.label.fold(()=>({}),Be=>({"aria-label":Be})),fe=ml(Ww.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:l.initValue(),inputAttributes:W,selectOnFocus:!0,inputBehaviours:ei([ha.config({mode:"special",onEnter:Be=>Se.findPrimary(Be).map(qe=>(Bm(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),Se=$ne(fe,l.commands,N);return[{title:I.none(),items:[fe.asSpec()]},{title:I.none(),items:Se.asSpecs()}]},Vne={renderContextForm:(l,N,W)=>HA({type:l,uid:Li("context-toolbar"),initGroups:BR(N,W),onEscape:I.none,cyclicKeying:!0,providers:W}),buildInitGroups:BR},XU=(l,N,W)=>N.bottom-l.y>=W&&l.bottom-N.y>=W,Une=l=>{const N=l.getBoundingClientRect();if(N.height<=0&&N.width<=0){const W=Yn(Nt.fromDom(l.startContainer),l.startOffset).element;return(zr(W)?Dr(W):I.some(W)).filter(lr).map(Se=>Se.dom.getBoundingClientRect()).getOr(N)}else return N},zR=l=>{const N=l.selection.getRng(),W=Une(N);if(l.inline){const fe=yc();return vs(fe.left+W.left,fe.top+W.top,W.width,W.height)}else{const fe=bc(Nt.fromDom(l.getBody()));return vs(fe.x+W.left,fe.y+W.top,W.width,W.height)}},sT=(l,N)=>N.filter(W=>Gn(W)&&sr(W)).map(bc).getOrThunk(()=>zR(l)),GU=(l,N,W)=>{const fe=Math.max(l.x+W,N.x),Se=Math.min(l.right-W,N.right);return{x:fe,width:Se-fe}},jne=(l,N,W,fe,Se,Be)=>{const qe=Nt.fromDom(l.getContainer()),ft=qa(qe,".tox-editor-header").getOr(qe),yt=cl(ft),Lt=yt.y>=N.bottom,Ht=fe&&!Lt;if(l.inline&&Ht)return{y:Math.max(yt.bottom+Be,W.y),bottom:W.bottom};if(l.inline&&!Ht)return{y:W.y,bottom:Math.min(yt.y-Be,W.bottom)};const fn=Se==="line"?cl(qe):N;return Ht?{y:Math.max(yt.bottom+Be,W.y),bottom:Math.min(fn.bottom-Be,W.bottom)}:{y:Math.max(fn.y+Be,W.y),bottom:Math.min(yt.y-Be,W.bottom)}},KU=(l,N,W,fe=0)=>{const Se=Ks(window),Be=cl(Nt.fromDom(l.getContentAreaContainer())),qe=x6(l)||Nk(l)||Fk(l),{x:ft,width:yt}=GU(Be,Se,fe);if(l.inline&&!qe)return vs(ft,Se.y,yt,Se.height);{const Lt=N.header.isPositionedAtTop(),{y:Ht,bottom:fn}=jne(l,Be,Se,Lt,W,fe);return vs(ft,Ht,yt,fn-Ht)}},lT=12,r8={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},NR={maxHeightFunction:v1(),maxWidthFunction:ES()},JU=(l,N)=>{const W=l.selection.getRng(),fe=Yn(Nt.fromDom(W.startContainer),W.startOffset);return W.startContainer===W.endContainer&&W.startOffset===W.endOffset-1&&_o(fe.element,N)},Qne=(l,N,W)=>{const fe=Ia(l,"position");xr(l,"position",N);const Se=W(l);return fe.each(Be=>xr(l,"position",Be)),Se},dO=l=>l==="node",o8=(l,N,W,fe,Se)=>{const Be=zR(l),qe=fe.lastElement().exists(ft=>_o(W,ft));if(JU(l,W))return qe?W$:ng;if(qe)return Qne(N,fe.getMode(),()=>XU(Be,cl(N),-20)&&!fe.isReposition()?Y$:W$);{const ft=fe.getMode()==="fixed"?Se.y+yc().top:Se.y,yt=il(N)+lT;return ft+yt<=Be.y?ng:CS}},i8=(l,N,W,fe)=>{const Se=yt=>(Lt,Ht,fn,Rn,Bn)=>{const er=o8(l,Rn,yt,W,Bn),cr={...Lt,y:Bn.y,height:Bn.height};return{...er(cr,Ht,fn,Rn,Bn),alwaysFit:!0}},Be=yt=>dO(fe)?[Se(yt)]:[];return N?{onLtr:yt=>[Iu,Lu,$c,dl,Mf,du].concat(Be(yt)),onRtl:yt=>[Iu,$c,Lu,Mf,dl,du].concat(Be(yt))}:{onLtr:yt=>[du,Iu,dl,Lu,Mf,$c].concat(Be(yt)),onRtl:yt=>[du,Iu,Mf,$c,dl,Lu].concat(Be(yt))}},FR=(l,N,W,fe)=>N==="line"?{bubble:wp(lT,0,r8),layouts:{onLtr:()=>[vv],onRtl:()=>[h1]},overrides:NR}:{bubble:wp(0,lT,r8,1/lT),layouts:i8(l,W,fe,N),overrides:NR},cT=(l,N)=>{const W=me(N,Be=>Be.predicate(l.dom)),{pass:fe,fail:Se}=ee(W,Be=>Be.type==="contexttoolbar");return{contextToolbars:fe,contextForms:Se}},ej=l=>{if(l.length<=1)return l;{const N=Be=>te(l,qe=>qe.position===Be),W=Be=>me(l,qe=>qe.position===Be),fe=N("selection"),Se=N("node");if(fe||Se)if(Se&&fe){const Be=W("node"),qe=re(W("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return W(fe?"selection":"node");else return W("line")}},a8=l=>{if(l.length<=1)return l;{const N=fe=>ce(l,Se=>Se.position===fe);return N("selection").orThunk(()=>N("node")).orThunk(()=>N("line")).map(fe=>fe.position).fold(()=>[],fe=>me(l,Se=>Se.position===fe))}},tj=(l,N,W)=>{const fe=cT(l,N);if(fe.contextForms.length>0)return I.some({elem:l,toolbars:[fe.contextForms[0]]});{const Se=cT(l,W);if(Se.contextForms.length>0)return I.some({elem:l,toolbars:[Se.contextForms[0]]});if(fe.contextToolbars.length>0||Se.contextToolbars.length>0){const Be=ej(fe.contextToolbars.concat(Se.contextToolbars));return I.some({elem:l,toolbars:Be})}else return I.none()}},nj=(l,N,W)=>l(N)?I.none():Hc(N,fe=>{if(lr(fe)){const{contextToolbars:Se,contextForms:Be}=cT(fe,W.inNodeScope),qe=Be.length>0?Be:a8(Se);return qe.length>0?I.some({elem:fe,toolbars:qe}):I.none()}else return I.none()},l),$R=(l,N)=>{const W=Nt.fromDom(N.getBody()),fe=qe=>_o(qe,W),Se=qe=>!fe(qe)&&!$o(W,qe),Be=Nt.fromDom(N.selection.getNode());return Se(Be)?I.none():tj(Be,l.inNodeScope,l.inEditorScope).orThunk(()=>nj(fe,Be,l))},Hne=(l,N)=>{const W={},fe=[],Se=[],Be={},qe={},ft=(Ht,fn)=>{const Rn=Mt(QY(fn));W[Ht]=Rn,Rn.launch.map(Bn=>{Be["form:"+Ht]={...fn.launch,type:Bn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{N(Rn)}}}),Rn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn},yt=(Ht,fn)=>{t5(fn).each(Rn=>{fn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn})},Lt=ke(l);return q(Lt,Ht=>{const fn=l[Ht];fn.type==="contextform"?ft(Ht,fn):fn.type==="contexttoolbar"&&yt(Ht,fn)}),{forms:W,inNodeScope:fe,inEditorScope:Se,lookupTable:qe,formNavigators:Be}},VR=Li("forward-slide"),rj=Li("backward-slide"),UR=Li("change-slide-event"),zS="tox-pop--resizing",oj=l=>{const N=wi([]);return Xc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:W=>{N.set([]),Xc.getContent(W).each(fe=>{zi(fe.element,"visibility")}),Zc(W.element,zS),zi(W.element,"width")},inlineBehaviours:ei([Ka("context-toolbar-events",[ly(rm(),(W,fe)=>{fe.event.raw.propertyName==="width"&&(Zc(W.element,zS),zi(W.element,"width"))}),Lo(UR,(W,fe)=>{const Se=W.element;zi(Se,"width");const Be=_s(Se);Xc.setContent(W,fe.event.contents),uc(Se,zS);const qe=_s(Se);xr(Se,"width",Be+"px"),Xc.getContent(W).each(ft=>{fe.event.focus.bind(yt=>(Md(yt),Wd(Se))).orThunk(()=>(ha.focusIn(ft),um(kr(Se))))}),setTimeout(()=>{xr(W.element,"width",qe+"px")},0)}),Lo(VR,(W,fe)=>{Xc.getContent(W).each(Se=>{N.set(N.get().concat([{bar:Se,focus:um(kr(W.element))}]))}),sa(W,UR,{contents:fe.event.forwardContents,focus:I.none()})}),Lo(rj,(W,fe)=>{Ve(N.get()).each(Se=>{N.set(N.get().slice(0,N.get().length-1)),sa(W,UR,{contents:ea(Se.bar),focus:Se.focus})})})]),ha.config({mode:"special",onEscape:W=>Ve(N.get()).fold(()=>l.onEscape(),fe=>(Za(W,rj),I.some(!0)))})]),lazySink:()=>aa.value(l.sink)})},jR="tox-pop--transition",Zne=(l,N,W,fe)=>{const Se=fe.backstage,Be=Se.shared,qe=va().deviceType.isTouch,ft=ds(),yt=ds(),Lt=ds(),Ht=ka(oj({sink:W,onEscape:()=>(l.focus(),I.some(!0))})),fn=()=>{const yi=Lt.get().getOr("node"),Xi=dO(yi)?1:0;return KU(l,Be,yi,Xi)},Rn=()=>!l.removed&&!(qe()&&Se.isContextMenuOpen()),Bn=yi=>St(ln(yi,ft.get(),_o),!0),er=()=>{if(Rn()){const yi=fn(),Xi=St(Lt.get(),"node")?sT(l,ft.get()):zR(l);return yi.height<=0||!XU(Xi,yi,.01)}else return!0},cr=()=>{ft.clear(),yt.clear(),Lt.clear(),Xc.hide(Ht)},Xr=()=>{if(Xc.isOpen(Ht)){const yi=Ht.element;zi(yi,"display"),er()?xr(yi,"display","none"):(yt.set(0),Xc.reposition(Ht))}},br=yi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[yi],behaviours:ei([ha.config({mode:"acyclic"}),Ka("pop-dialog-wrap-events",[wc(Xi=>{l.shortcuts.add("ctrl+F9","focus statusbar",()=>ha.focusIn(Xi))}),xg(Xi=>{l.shortcuts.remove("ctrl+F9")})])])}),Fr=Uc(()=>Hne(N,yi=>{const Xi=ko([yi]);sa(Ht,VR,{forwardContents:br(Xi)})})),jr=(yi,Xi)=>iT(l,{buttons:yi,toolbar:Xi.items,allowToolbarGroups:!1},fe.backstage,I.some(["form:"])),Ro=(yi,Xi)=>Vne.buildInitGroups(yi,Xi),ko=yi=>{const{buttons:Xi}=l.ui.registry.getAll(),ks=Fr(),Ic={...Xi,...ks.formNavigators},hl=jw(l)===C0.scrolling?C0.scrolling:C0.default,Ui=ye(re(yi,Ko=>Ko.type==="contexttoolbar"?jr(Ic,Ko):Ro(Ko,Be.providers)));return HA({type:hl,uid:Li("context-toolbar"),initGroups:Ui,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},_i=(yi,Xi)=>{const ks=yi==="node"?Be.anchors.node(Xi):Be.anchors.cursor(),Ic=FR(l,yi,qe(),{lastElement:ft.get,isReposition:()=>St(yt.get(),0),getMode:()=>Ph.getMode(W)});return ws(ks,Ic)},Pi=(yi,Xi)=>{if($i.cancel(),!Rn())return;const ks=ko(yi),Ic=yi[0].position,hl=_i(Ic,Xi);Lt.set(Ic),yt.set(1);const Ui=Ht.element;zi(Ui,"display"),Bn(Xi)||(Zc(Ui,jR),Ph.reset(W,Ht)),Xc.showWithinBounds(Ht,br(ks),{anchor:hl,transition:{classes:[jR],mode:"placement"}},()=>I.some(fn())),Xi.fold(ft.clear,ft.set),er()&&xr(Ui,"display","none")};let Ao=!1;const $i=o9(()=>{if(!(!l.hasFocus()||l.removed||Ao))if(rp(Ht.element,jR))$i.throttle();else{const yi=Fr();$R(yi,l).fold(cr,Xi=>{Pi(Xi.toolbars,I.some(Xi.elem))})}},17);l.on("init",()=>{l.on("remove",cr),l.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Xr),l.on("click keyup focus SetContent",$i.throttle),l.on(WU,cr),l.on(Dne,yi=>{const Xi=Fr();Ge(Xi.lookupTable,yi.toolbarKey).each(ks=>{Pi([ks],Ot(yi.target!==l,yi.target)),Xc.getContent(Ht).each(ha.focusIn)})}),l.on("focusout",yi=>{J3.setEditorTimeout(l,()=>{Wd(W.element).isNone()&&Wd(Ht.element).isNone()&&cr()},0)}),l.on("SwitchMode",()=>{l.mode.isReadOnly()&&cr()}),l.on("ExecCommand",({command:yi})=>{yi.toLowerCase()==="toggleview"&&cr()}),l.on("AfterProgressState",yi=>{yi.state?cr():l.hasFocus()&&$i.throttle()}),l.on("dragstart",()=>{Ao=!0}),l.on("dragend drop",()=>{Ao=!1}),l.on("NodeChange",yi=>{Wd(Ht.element).fold($i.throttle,v)})})},qne=l=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],W=>{l.ui.registry.addToggleButton(W.name,{tooltip:W.text,icon:W.icon,onAction:tg(l,W.cmd),onSetup:eA(l,W.name)})}),l.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:kp(l),onAction:tg(l,"JustifyNone")})},ij=(l,N)=>{const W=()=>{const fe=N.getOptions(l),Se=N.getCurrent(l).map(N.hash),Be=ds();return re(fe,qe=>({type:"togglemenuitem",text:N.display(qe),onSetup:ft=>{const yt=Ht=>{Ht&&(Be.on(fn=>fn.setActive(!1)),Be.set(ft)),ft.setActive(Ht)};yt(St(Se,N.hash(qe)));const Lt=N.watcher(l,qe,yt);return()=>{Be.clear(),Lt()}},onAction:()=>N.setCurrent(l,qe)}))};l.ui.registry.addMenuButton(N.name,{tooltip:N.text,icon:N.icon,fetch:fe=>fe(W()),onSetup:N.onToolbarSetup}),l.ui.registry.addNestedMenuItem(N.name,{type:"nestedmenuitem",text:N.text,getSubmenuItems:W,onSetup:N.onMenuSetup})},Wne=l=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:hz,hash:N=>Gte(N,["fixed","relative","empty"]).getOr(N),display:R,watcher:(N,W,fe)=>N.formatter.formatChanged("lineheight",fe,!1,{value:W}).unbind,getCurrent:N=>I.from(N.queryCommandValue("LineHeight")),setCurrent:(N,W)=>N.execCommand("LineHeight",!1,W),onToolbarSetup:kp(l),onMenuSetup:kp(l)}),aj=l=>I.from(JB(l)).map(W=>({name:"language",text:"Language",icon:"language",getOptions:x(W),hash:fe=>y(fe.customCode)?fe.code:`${fe.code}/${fe.customCode}`,display:fe=>fe.title,watcher:(fe,Se,Be)=>{var qe;return fe.formatter.formatChanged("lang",Be,!1,{value:Se.code,customValue:(qe=Se.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:fe=>{const Se=Nt.fromDom(fe.selection.getNode());return Nl(Se,Be=>I.some(Be).filter(lr).bind(qe=>Eo(qe,"lang").map(yt=>{const Lt=Eo(qe,"data-mce-lang").getOrUndefined();return{code:yt,customCode:Lt,title:""}})))},setCurrent:(fe,Se)=>fe.execCommand("Lang",!1,Se),onToolbarSetup:fe=>{const Se=Ol();return fe.setActive(l.formatter.match("lang",{},void 0,!0)),Se.set(l.formatter.formatChanged("lang",fe.setActive,!0)),J6(Se.clear,kp(l)(fe))},onMenuSetup:kp(l)})),sj=l=>{ij(l,Wne(l)),aj(l).each(N=>ij(l,N))},lj=(l,N)=>{i_(l,N),Yte(l,N),RU(l,N),Qte(l,N),cne(l,N)},cj=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.queryCommandState("outdent")&&l.selection.isEditable())}),Yne=l=>{l.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:cj(l),onAction:tg(l,"outdent")}),l.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:kp(l),onAction:tg(l,"indent")})},uj=l=>{Yne(l)},QR=(l,N)=>W=>{W.setActive(N.get());const fe=Se=>{N.set(Se.state),W.setActive(Se.state)};return l.on("PastePlainTextToggle",fe),J6(()=>l.off("PastePlainTextToggle",fe),kp(l)(W))},Xne=l=>{const N=wi(qE(l)),W=()=>l.execCommand("mceTogglePlainTextPaste");l.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:W,onSetup:QR(l,N)}),l.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:W,onSetup:QR(l,N)})},fj=(l,N)=>()=>{l.execCommand("mceToggleFormat",!1,N)},Gne=l=>{hx.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(N,W)=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:eA(l,N.name),onAction:fj(l,N.name),shortcut:N.shortcut})});for(let N=1;N<=6;N++){const W="h"+N,fe=`Access+${N}`;l.ui.registry.addToggleButton(W,{text:W.toUpperCase(),tooltip:"Heading "+N,onSetup:eA(l,W),onAction:fj(l,W),shortcut:fe})}},Kne=l=>{hx.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),shortcut:N.shortcut})}),hx.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:kp(l),onAction:tg(l,N.action)})})},Jne=l=>{hx.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],N=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),onSetup:eA(l,N.name)})})},ere=l=>{Gne(l),Kne(l),Jne(l)},tre=l=>{hx.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onAction:tg(l,N.action)})}),hx.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onSetup:kp(l),onAction:tg(l,N.action)})}),l.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:kp(l),onAction:fj(l,"code")})},nre=l=>{ere(l),tre(l)},s8=(l,N)=>tO(l,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",W=>{W.setEnabled(!l.mode.isReadOnly()&&l.undoManager[N]())}),rre=l=>{l.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:s8(l,"hasUndo"),onAction:tg(l,"undo")}),l.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:s8(l,"hasRedo"),onAction:tg(l,"redo")})},ore=l=>{l.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:s8(l,"hasUndo"),onAction:tg(l,"undo"),shortcut:"Meta+Z"}),l.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:s8(l,"hasRedo"),onAction:tg(l,"redo"),shortcut:"Meta+Y"})},ire=l=>{rre(l),ore(l)},are=l=>tO(l,"VisualAid",N=>{N.setActive(l.hasVisual)}),sre=l=>{l.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:are(l),onAction:tg(l,"mceToggleVisualAid")})},lre=l=>{l.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:tg(l,"mceToggleVisualAid")})},dj=l=>{lre(l),sre(l)},cre=(l,N)=>{qne(l),nre(l),lj(l,N),ire(l),kX(l),dj(l),uj(l),sj(l),Xne(l)},ure=l=>n(l)?l.split(/[ ,]/):l,hj=l=>N=>N.options.get(l),fre=l=>{const N=l.options.register;N("contextmenu_avoid_overlap",{processor:"string",default:""}),N("contextmenu_never_use_native",{processor:"boolean",default:!1}),N("contextmenu",{processor:W=>W===!1?{value:[],valid:!0}:n(W)||p(W,n)?{value:ure(W),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},pj=hj("contextmenu_never_use_native"),dre=hj("contextmenu_avoid_overlap"),hre=l=>mj(l).length===0,mj=l=>{const N=l.ui.registry.getAll().contextMenus,W=l.options.get("contextmenu");return l.options.isSet("contextmenu")?W:me(W,fe=>ht(N,fe))},uT=(l,N)=>({type:"makeshift",x:l,y:N}),HR=(l,N,W)=>uT(l.x+N,l.y+W),gj=l=>l.type==="longpress"||l.type.indexOf("touch")===0,pre=l=>{if(gj(l)){const N=l.touches[0];return uT(N.pageX,N.pageY)}else return uT(l.pageX,l.pageY)},ZR=l=>{if(gj(l)){const N=l.touches[0];return uT(N.clientX,N.clientY)}else return uT(l.clientX,l.clientY)},vj=(l,N)=>{const W=Fw.DOM.getPos(l);return HR(N,W.x,W.y)},yj=(l,N)=>N.type==="contextmenu"||N.type==="longpress"?l.inline?pre(N):vj(l.getContentAreaContainer(),ZR(N)):bj(l),bj=l=>({type:"selection",root:Nt.fromDom(l.selection.getNode())}),mre=l=>({type:"node",node:I.some(Nt.fromDom(l.selection.getNode())),root:Nt.fromDom(l.getBody())}),xj=(l,N,W)=>{switch(W){case"node":return mre(l);case"point":return yj(l,N);case"selection":return bj(l)}},gre=(l,N,W,fe,Se,Be)=>{const qe=W(),ft=xj(l,N,Be);OS(qe,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!1,search:I.none()}).map(yt=>{N.preventDefault(),Xc.showMenuAt(Se,{anchor:ft},{menu:{markers:qw("normal")},data:yt})})},vre={onLtr:()=>[Iu,Lu,$c,dl,Mf,du,ng,CS,TS,RA,Q5,PA],onRtl:()=>[Iu,$c,Lu,Mf,dl,du,ng,CS,Q5,PA,TS,RA]},qR=12,yre={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},_j=(l,N)=>{const W=l.selection;if(W.isCollapsed()||N.touches.length<1)return!1;{const fe=N.touches[0],Se=W.getRng();return Ef(l.getWin(),Cy.domRange(Se)).exists(qe=>qe.left<=fe.clientX&&qe.right>=fe.clientX&&qe.top<=fe.clientY&&qe.bottom>=fe.clientY)}},bre=l=>{const N=l.selection.getRng(),W=()=>{J3.setEditorTimeout(l,()=>{l.selection.setRng(N)},10),Be()};l.once("touchend",W);const fe=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};l.on("mousedown",fe,!0);const Se=()=>Be();l.once("longpresscancel",Se);const Be=()=>{l.off("touchend",W),l.off("longpresscancel",Se),l.off("mousedown",fe)}},xre=(l,N,W)=>{const fe=xj(l,N,W);return{bubble:wp(0,W==="point"?qR:0,yre),layouts:vre,overrides:{maxWidthFunction:ES(),maxHeightFunction:v1()},...fe}},WR=(l,N,W,fe,Se,Be,qe)=>{const ft=xre(l,N,Be);OS(W,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!0,search:I.none()}).map(yt=>{N.preventDefault();const Lt=qe?Gu.HighlightMenuAndItem:Gu.HighlightNone;Xc.showMenuWithinBounds(Se,{anchor:ft},{menu:{markers:qw("normal"),highlightOnOpen:Lt},data:yt,type:"horizontal"},()=>I.some(KU(l,fe.shared,Be==="node"?"node":"selection"))),l.dispatch(WU)})},_re=(l,N,W,fe,Se,Be)=>{const qe=va(),ft=qe.os.isiOS(),yt=qe.os.isMacOS(),Lt=qe.os.isAndroid(),Ht=qe.deviceType.isTouch(),fn=()=>!(Lt||ft||yt&&Ht),Rn=()=>{const Bn=W();WR(l,N,Bn,fe,Se,Be,fn())};if((yt||ft)&&Be!=="node"){const Bn=()=>{bre(l),Rn()};_j(l,N)?Bn():(l.once("selectionchange",Bn),l.once("touchend",()=>l.off("selectionchange",Bn)))}else Rn()},YR=l=>n(l)?l==="|":l.type==="separator",XR={type:"separator"},wj=l=>{const N=W=>({text:W.text,icon:W.icon,enabled:W.enabled,shortcut:W.shortcut});if(n(l))return l;switch(l.type){case"separator":return XR;case"submenu":return{type:"nestedmenuitem",...N(l),getSubmenuItems:()=>{const fe=l.getSubmenuItems();return n(fe)?fe:re(fe,wj)}};default:const W=l;return{type:"menuitem",...N(W),onAction:_(W.onAction)}}},l8=(l,N)=>{if(N.length===0)return l;const fe=Ve(l).filter(Se=>!YR(Se)).fold(()=>[],Se=>[XR]);return l.concat(fe).concat(N).concat([XR])},wre=(l,N,W)=>{const fe=se(N,(Se,Be)=>Ge(l,Be.toLowerCase()).map(qe=>{const ft=qe.update(W);if(n(ft)&&it(Dt(ft)))return l8(Se,ft.split(" "));if(i(ft)&&ft.length>0){const yt=re(ft,wj);return l8(Se,yt)}else return Se}).getOrThunk(()=>Se.concat([Be])),[]);return fe.length>0&&YR(fe[fe.length-1])&&fe.pop(),fe},Ore=(l,N)=>N.ctrlKey&&!pj(l),Sre=l=>l.type==="longpress"||ht(l,"touches"),Oj=(l,N)=>!Sre(N)&&(N.button!==2||N.target===l.getBody()&&N.pointerType===""),Sj=(l,N)=>Oj(l,N)?l.selection.getStart(!0):N.target,kj=(l,N)=>{const W=dre(l),fe=Oj(l,N)?"selection":"point";if(it(W)){const Se=Sj(l,N);return f5(Nt.fromDom(Se),W)?"node":fe}else return fe},kre=(l,N,W)=>{const Se=va().deviceType.isTouch,Be=ka(Xc.sketch({dom:{tag:"div"},lazySink:N,onEscape:()=>l.focus(),onShow:()=>W.setContextMenuState(!0),onHide:()=>W.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissContextMenu",[Lo(J0(),(yt,Lt)=>{Ys.close(yt),l.focus()})])])})),qe=()=>Xc.hide(Be),ft=yt=>{if(pj(l)&&yt.preventDefault(),Ore(l,yt)||hre(l))return;const Lt=kj(l,yt),Ht=()=>{const Rn=Sj(l,yt),Bn=l.ui.registry.getAll(),er=mj(l);return wre(Bn.contextMenus,er,Rn)};(Se()?_re:gre)(l,yt,Ht,W,Be,Lt)};l.on("init",()=>{const yt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(Se()?"":" ResizeWindow");l.on(yt,qe),l.on("longpress contextmenu",ft)})},GR=Nn.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),c8=l=>N=>N.translate(-l.left,-l.top),u8=l=>N=>N.translate(l.left,l.top),mx=l=>(N,W)=>se(l,(fe,Se)=>Se(fe),Qs(N,W)),f8=(l,N,W)=>l.fold(mx([u8(W),c8(N)]),mx([c8(N)]),mx([])),NS=(l,N,W)=>l.fold(mx([u8(W)]),mx([]),mx([u8(N)])),Tj=(l,N,W)=>l.fold(mx([]),mx([c8(W)]),mx([u8(N),c8(W)])),Cj=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be);return Math.abs(qe.left-ft.left)<=W&&Math.abs(qe.top-ft.top)<=fe},Tre=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be),yt=Math.abs(qe.left-ft.left),Lt=Math.abs(qe.top-ft.top);return Qs(yt,Lt)},KR=(l,N,W)=>{const fe=l.fold((Se,Be)=>({position:I.some("absolute"),left:I.some(Se+"px"),top:I.some(Be+"px")}),(Se,Be)=>({position:I.some("absolute"),left:I.some(Se-W.left+"px"),top:I.some(Be-W.top+"px")}),(Se,Be)=>({position:I.some("fixed"),left:I.some(Se+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...fe}},Cre=(l,N,W)=>l.fold((fe,Se)=>d8(fe+N,Se+W),(fe,Se)=>Qg(fe+N,Se+W),(fe,Se)=>a_(fe+N,Se+W)),JR=(l,N,W,fe)=>{const Se=(Be,qe)=>(ft,yt)=>{const Lt=Be(N,W,fe);return qe(ft.getOr(Lt.left),yt.getOr(Lt.top))};return l.fold(Se(Tj,d8),Se(NS,Qg),Se(f8,a_))},d8=GR.offset,Qg=GR.absolute,a_=GR.fixed,Aj=(l,N)=>{const W=Nr(l,N);return y(W)?NaN:parseInt(W,10)},Are=(l,N)=>{const W=l.element,fe=Aj(W,N.leftAttr),Se=Aj(W,N.topAttr);return isNaN(fe)||isNaN(Se)?I.none():I.some(Qs(fe,Se))},Mre=(l,N,W)=>{const fe=l.element;Cr(fe,N.leftAttr,W.left+"px"),Cr(fe,N.topAttr,W.top+"px")},Ere=(l,N)=>{const W=l.element;Qt(W,N.leftAttr),Qt(W,N.topAttr)},Mj=(l,N,W,fe)=>Are(l,N).fold(()=>W,Se=>a_(Se.left+fe.left,Se.top+fe.top)),Pre=(l,N,W,fe,Se,Be)=>{const qe=Mj(l,N,W,fe),ft=N.mustSnap?Lre(l,N,qe,Se,Be):Ire(l,N,qe,Se,Be),yt=f8(qe,Se,Be);return Mre(l,N,yt),ft.fold(()=>({coord:a_(yt.left,yt.top),extra:I.none()}),Lt=>({coord:Lt.output,extra:Lt.extra}))},Rre=(l,N)=>{Ere(l,N)},Ej=(l,N,W,fe)=>Oe(l,Se=>{const Be=Se.sensor;return Cj(N,Be,Se.range.left,Se.range.top,W,fe)?I.some({output:JR(Se.output,N,W,fe),extra:Se.extra}):I.none()}),Lre=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Ej(Be,W,fe,Se).orThunk(()=>se(Be,(yt,Lt)=>{const Ht=Lt.sensor,fn=Tre(W,Ht,Lt.range.left,Lt.range.top,fe,Se);return yt.deltas.fold(()=>({deltas:I.some(fn),snap:I.some(Lt)}),Rn=>{const Bn=(fn.left+fn.top)/2,er=(Rn.left+Rn.top)/2;return Bn<=er?{deltas:I.some(fn),snap:I.some(Lt)}:yt})},{deltas:I.none(),snap:I.none()}).snap.map(yt=>({output:JR(yt.output,W,fe,Se),extra:yt.extra})))},Ire=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Ej(Be,W,fe,Se)},Dre=(l,N,W)=>({coord:JR(l.output,l.output,N,W),extra:l.extra});var Bre=Object.freeze({__proto__:null,snapTo:(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=Dre(fe,qe,ft),Lt=KR(yt.coord,qe,ft);mi(Se,Lt)}}});const eL="data-initial-z-index",zre=l=>{Dr(l.element).filter(lr).each(N=>{Eo(N,eL).fold(()=>zi(N,"z-index"),W=>xr(N,"z-index",W)),Qt(N,eL)})},Pj=l=>{Dr(l.element).filter(lr).each(N=>{Ia(N,"z-index").each(W=>{Cr(N,eL,W)}),xr(N,"z-index",Di(l.element,"z-index"))})},tL=(l,N)=>{l.getSystem().addToGui(N),Pj(N)},Nre=l=>{zre(l),l.getSystem().removeFromGui(l)},FS=(l,N,W)=>l.getSystem().build(Iv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[N]},events:W}));var Fre=Ai("snaps",[pn("getSnapPoints"),Ss("onSensor"),pn("leftAttr"),pn("topAttr"),Ar("lazyViewport",ts),Ar("mustSnap",!1)]);const nL=[Ar("useFixed",D),pn("blockerClass"),Ar("getTarget",R),Ar("onDrag",v),Ar("repositionTarget",!0),Ar("onDrop",v),ys("getBounds",ts),Fre],rL=l=>tn(Ia(l,"left"),Ia(l,"top"),Ia(l,"position"),(N,W,fe)=>(fe==="fixed"?a_:d8)(parseInt(N,10),parseInt(W,10))).getOrThunk(()=>{const N=Tc(l);return Qg(N.left,N.top)}),$re=(l,N,W,fe,Se)=>{const Be=Se.bounds,qe=NS(N,W,fe),ft=Ah(qe.left,Be.x,Be.x+Be.width-Se.width),yt=Ah(qe.top,Be.y,Be.y+Be.height-Se.height),Lt=Qg(ft,yt);return N.fold(()=>{const Ht=Tj(Lt,W,fe);return d8(Ht.left,Ht.top)},x(Lt),()=>{const Ht=f8(Lt,W,fe);return a_(Ht.left,Ht.top)})},Vre=(l,N,W,fe,Se,Be,qe)=>{const ft=N.fold(()=>{const yt=Cre(W,Be.left,Be.top),Lt=f8(yt,fe,Se);return a_(Lt.left,Lt.top)},yt=>{const Lt=Pre(l,yt,W,Be,fe,Se);return Lt.extra.each(Ht=>{yt.onSensor(l,Ht)}),Lt.coord});return $re(l,ft,fe,Se,qe)},Ure=(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=rL(Se),Lt=Vre(l,N.snaps,yt,qe,ft,fe,W),Ht=KR(Lt,qe,ft);mi(Se,Ht)}N.onDrag(l,Se,fe)},Rj=(l,N)=>({bounds:l.getBounds(),height:nf(N.element),width:ma(N.element)}),oL=(l,N,W,fe,Se)=>{const Be=W.update(fe,Se),qe=W.getStartData().getOrThunk(()=>Rj(N,l));Be.each(ft=>{Ure(l,N,qe,ft)})},Lj=(l,N,W,fe)=>{N.each(Nre),W.snaps.each(Be=>{Rre(l,Be)});const Se=W.getTarget(l.element);fe.reset(),W.onDrop(l,Se)},iL=l=>(N,W)=>{const fe=Se=>{W.setStartData(Rj(N,Se))};return Rl([Lo(Im(),Se=>{W.getStartData().each(()=>fe(Se))}),...l(N,W,fe)])},jre=l=>Rl([Lo(Nc(),l.forceDrop),Lo(a0(),l.drop),Lo(o0(),(N,W)=>{l.move(W.event)}),Lo(i0(),l.delayDrop)]);var Qre=Object.freeze({__proto__:null,getData:l=>I.from(Qs(l.x,l.y)),getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Ij=(l,N,W)=>[Lo(Nc(),(fe,Se)=>{if(Se.event.raw.button!==0)return;Se.stop();const qe=()=>Lj(fe,I.some(Lt),l,N),ft=rF(qe,200),yt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:fn=>{ft.cancel(),oL(fe,l,N,Qre,fn)}},Lt=FS(fe,l.blockerClass,jre(yt));(()=>{W(fe),tL(fe,Lt)})()})],Hre=[...nL,Sl("dragger",{handlers:iL(Ij)})],Zre=l=>Rl([Lo(Uh(),l.forceDrop),Lo(Gl(),l.drop),Lo(Sf(),l.drop),Lo(ss(),(N,W)=>{l.move(W.event)})]),qre=l=>{const N=l[0];return I.some(Qs(N.clientX,N.clientY))};var fT=Object.freeze({__proto__:null,getData:l=>{const W=l.raw.touches;return W.length===1?qre(W):I.none()},getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Dj=(l,N,W)=>{const fe=ds(),Se=Be=>{Lj(Be,fe.get(),l,N),fe.clear()};return[Lo(Uh(),(Be,qe)=>{qe.stop();const ft=()=>Se(Be),yt={drop:ft,delayDrop:v,forceDrop:ft,move:fn=>{oL(Be,l,N,fT,fn)}},Lt=FS(Be,l.blockerClass,Zre(yt));fe.set(Lt),(()=>{W(Be),tL(Be,Lt)})()}),Lo(ss(),(Be,qe)=>{qe.stop(),oL(Be,l,N,fT,qe.event)}),Lo(Gl(),(Be,qe)=>{qe.stop(),Se(Be)}),Lo(Sf(),Se)]},Wre=[...nL,Sl("dragger",{handlers:iL(Dj)})],Yre=(l,N,W)=>[...Ij(l,N,W),...Dj(l,N,W)],Xre=[...nL,Sl("dragger",{handlers:iL(Yre)})];var Kre=Object.freeze({__proto__:null,mouse:Hre,touch:Wre,mouseOrTouch:Xre}),Jre=Object.freeze({__proto__:null,init:()=>{let l=I.none(),N=I.none();const W=()=>{l=I.none(),N=I.none()},fe=(yt,Lt)=>{const Ht=l.map(fn=>yt.getDelta(fn,Lt));return l=I.some(Lt),Ht},Se=(yt,Lt)=>yt.getData(Lt).bind(Ht=>fe(yt,Ht)),Be=yt=>{N=I.some(yt)},qe=()=>N,ft=x({});return Hd({readState:ft,reset:W,update:Se,getStartData:qe,setStartData:Be})}});const hO=HO({branchKey:"mode",branches:Kre,name:"dragging",active:{events:(l,N)=>l.dragger.handlers(l,N)},extra:{snap:l=>({sensor:l.sensor,range:l.range,output:l.output,extra:I.from(l.extra)})},state:Jre,apis:Bre}),aL=40,$S=aL/2,sL=(l,N,W,fe,Se,Be)=>l.fold(()=>hO.snap({sensor:Qg(W-$S,fe-$S),range:Qs(Se,Be),output:Qg(I.some(W),I.some(fe)),extra:{td:N}}),qe=>{const ft=W-$S,yt=fe-$S,Lt=aL,Ht=aL,fn=qe.element.dom.getBoundingClientRect();return hO.snap({sensor:Qg(ft,yt),range:Qs(Lt,Ht),output:Qg(I.some(W-fn.width/2),I.some(fe-fn.height/2)),extra:{td:N}})}),Bj=(l,N,W)=>{const fe=(Se,Be)=>Se.exists(qe=>_o(qe,Be));return{getSnapPoints:l,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(Se,Be)=>{const qe=Be.td;fe(N.get(),qe)||(N.set(qe),W(qe))},mustSnap:!0}},zj=l=>ml(Rh.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:ei([hO.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:l}),bS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),eoe=(l,N)=>{const W=wi([]),fe=wi([]),Se=wi(!1),Be=ds(),qe=ds(),ft=Pi=>{const Ao=bc(Pi);return sL(Bn.getOpt(N),Pi,Ao.x,Ao.y,Ao.width,Ao.height)},yt=()=>re(W.get(),Pi=>ft(Pi)),Lt=Pi=>{const Ao=bc(Pi);return sL(er.getOpt(N),Pi,Ao.right,Ao.bottom,Ao.width,Ao.height)},Ht=()=>re(fe.get(),Pi=>Lt(Pi)),fn=Bj(yt,Be,Pi=>{qe.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Pi,finish:Ao})})}),Rn=Bj(Ht,qe,Pi=>{Be.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Ao,finish:Pi})})}),Bn=zj(fn),er=zj(Rn),cr=ka(Bn.asSpec()),Xr=ka(er.asSpec()),br=(Pi,Ao,$i,yi)=>{const Xi=Ao.dom.getBoundingClientRect();zi(Pi.element,"display");const ks=ar(Nt.fromDom(l.getBody())).dom.innerHeight,Ic=$i(Xi),hl=yi(Xi,ks);(Ic||hl)&&xr(Pi.element,"display","none")},Fr=(Pi,Ao,$i,yi)=>{const Xi=$i(Ao);hO.snapTo(Pi,Xi),br(Pi,Ao,hl=>hl[yi]<0,(hl,Ui)=>hl[yi]>Ui)},jr=Pi=>Fr(cr,Pi,ft,"top"),Ro=()=>Be.get().each(jr),ko=Pi=>Fr(Xr,Pi,Lt,"bottom"),_i=()=>qe.get().each(ko);if(va().deviceType.isTouch()){const Pi=Ao=>re(Ao,Nt.fromDom);l.on("TableSelectionChange",Ao=>{Se.get()||(Eg(N,cr),Eg(N,Xr),Se.set(!0));const $i=Nt.fromDom(Ao.start),yi=Nt.fromDom(Ao.finish);Be.set($i),qe.set(yi),I.from(Ao.otherCells).each(Xi=>{W.set(Pi(Xi.upOrLeftCells)),fe.set(Pi(Xi.downOrRightCells)),jr($i),ko(yi)})}),l.on("ResizeEditor ResizeWindow ScrollContent",()=>{Ro(),_i()}),l.on("TableSelectionClear",()=>{Se.get()&&(kv(cr),kv(Xr),Se.set(!1)),Be.clear(),qe.clear()})}};var toe=` -`;const noe=(l,N)=>{const W=I.from(Nr(l,"id")).getOrThunk(()=>{const fe=Li("aria");return Cr(N,"id",fe),fe});Cr(l,"aria-describedby",W)},roe=l=>{Qt(l,"aria-describedby")},ooe=l=>l.nodeName==="BR"||!!l.getAttribute("data-mce-bogus")||l.getAttribute("data-mce-type")==="bookmark",ioe=(l,N,W)=>{var fe;const Se=(fe=N.delimiter)!==null&&fe!==void 0?fe:"›",Be=(Lt,Ht,fn)=>Rh.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":fn}},components:[Po(Lt)],action:Rn=>{l.focus(),l.selection.select(Ht),l.nodeChanged()},buttonBehaviours:ei([Vu.config({...W.tooltips.getConfig({tooltipText:W.translate(["Select the {0} element",Ht.nodeName.toLowerCase()]),onShow:(Rn,Bn)=>{noe(Rn.element,Bn.element)},onHide:Rn=>{roe(Rn.element)}})}),E1.button(W.isDisabled),Id()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Po(` ${Se} `)]}),ft=Lt=>se(Lt,(Ht,fn,Rn)=>{const Bn=Be(fn.name,fn.element,Rn);return Rn===0?Ht.concat([Bn]):Ht.concat([qe(),Bn])},[]),yt=Lt=>{const Ht=[];let fn=Lt.length;for(;fn-- >0;){const Rn=Lt[fn];if(Rn.nodeType===1&&!ooe(Rn)){const Bn=fX(l,Rn);if(Bn.isDefaultPrevented()||Ht.push({name:Bn.name,element:Rn}),Bn.isPropagationStopped())break}}return Ht};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:ei([ha.config({mode:"flow",selector:"div[role=button]"}),he.config({disabled:W.isDisabled}),Id(),Rc.config({}),Fa.config({}),Ka("elementPathEvents",[wc((Lt,Ht)=>{l.shortcuts.add("alt+F11","focus statusbar elementpath",()=>ha.focusIn(Lt)),l.on("NodeChange",fn=>{const Rn=yt(fn.parents),Bn=Rn.length>0?ft(Rn):[];Fa.set(Lt,Bn)})})])]),components:[]}};var s_;(function(l){l[l.None=0]="None",l[l.Both=1]="Both",l[l.Vertical=2]="Vertical"})(s_||(s_={}));const aoe=(l,N,W,fe,Se)=>{const Be={height:n8(fe+N.top,eS(l),m6(l))};return W===s_.Both&&(Be.width=n8(Se+N.left,Uw(l),Ik(l))),Be},Nj=(l,N,W)=>{const fe=Nt.fromDom(l.getContainer()),Se=aoe(l,N,W,il(fe),_s(fe));We(Se,(Be,qe)=>{h(Be)&&xr(fe,qe,t8(Be))}),G6(l)},soe=l=>{const N=uz(l);return N===!1?s_.None:N==="both"?s_.Both:s_.Vertical},h8=(l,N,W,fe)=>{const Be=Qs(W*20,fe*20);return Nj(l,Be,N),I.some(!0)},loe=(l,N)=>{const W=soe(l);if(W===s_.None)return I.none();const fe=W===s_.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(Bg("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":N.translate(fe),"data-mce-name":"resize-handle"},behaviours:[hO.config({mode:"mouse",repositionTarget:!1,onDrag:(Se,Be,qe)=>Nj(l,qe,W),blockerClass:"tox-blocker"}),ha.config({mode:"special",onLeft:()=>h8(l,W,-1,0),onRight:()=>h8(l,W,1,0),onUp:()=>h8(l,W,0,-1),onDown:()=>h8(l,W,0,1)}),Rc.config({}),Ra.config({}),Vu.config(N.tooltips.getConfig({tooltipText:N.translate("Resize")}))]},N.icons))},Fj=(l,N)=>{const W=(fe,Se,Be)=>Fa.set(fe,[Po(N.translate(["{0} "+Be,Se[Be]]))]);return Rh.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:ei([E1.button(N.isDisabled),Id(),Rc.config({}),Fa.config({}),Ei.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ka("wordcount-events",[Sh(fe=>{const Se=Ei.getValue(fe),Be=Se.mode==="words"?"characters":"words";Ei.setValue(fe,{mode:Be,count:Se.count}),W(fe,Se.count,Be)}),wc(fe=>{l.on("wordCountUpdate",Se=>{const{mode:Be}=Ei.getValue(fe);Ei.setValue(fe,{mode:Be,count:Se.wordCount}),W(fe,Se.wordCount,Be)})})])]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},coe=(l,N)=>{const W=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":l.translate(["Build with {0}","TinyMCE"])},innerHtml:l.translate(["Build with {0}",toe.trim()])},behaviours:ei([Ra.config({})])}]}),fe=()=>{const ft=q6("Alt+0"),yt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Po(Dg.translate([yt,ft]))]}},Se=()=>{const ft=[];return l.hasPlugin("wordcount")&&ft.push(Fj(l,N)),ZE(l)&&ft.push(W()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],yt=zk(l),Lt=cz(l),Ht=ZE(l)||l.hasPlugin("wordcount"),fn=()=>{const Rn="tox-statusbar__text-container--flex-start",Bn="tox-statusbar__text-container--flex-end",er="tox-statusbar__text-container--space-around";if(yt){const cr="tox-statusbar__text-container-3-cols";return!Ht&&!Lt?[cr,er]:Ht&&!Lt?[cr,Bn]:[cr,Rn]}return[Ht&&!Lt?Bn:Rn]};return Lt&&ft.push(ioe(l,{},N)),yt&&ft.push(fe()),Ht&&ft.push(Se()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...fn()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),yt=loe(l,N);return ft.concat(yt.toArray())})()}},$j=(l,N)=>N.get().getOrDie(`UI for ${l} has not been rendered`),uoe=(l,N)=>{const W=l.inline,fe=W?Lne:e8,Se=Qw(l)?$ee:gV,Be=Ine(),qe=ds(),ft=ds(),yt=ds(),Rn=va().deviceType.isTouch()?["tox-platform-touch"]:[],Bn=$k(l),er=jw(l),cr=ml({dom:{tag:"div",classes:["tox-anchorbar"]}}),Xr=ml({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),br=()=>Be.mainUi.get().map(fa=>fa.outerContainer).bind(Lc.getHeader),Fr=()=>aa.fromOption(Be.dialogUi.get().map(fa=>fa.sink),"UI has not been rendered"),jr=()=>aa.fromOption(Be.popupUi.get().map(fa=>fa.sink),"(popup) UI has not been rendered"),Ro=Be.lazyGetInOuterOrDie("anchor bar",cr.getOpt),ko=Be.lazyGetInOuterOrDie("bottom anchor bar",Xr.getOpt),_i=Be.lazyGetInOuterOrDie("toolbar",Lc.getToolbar),Pi=Be.lazyGetInOuterOrDie("throbber",Lc.getThrobber),Ao=dV({popup:jr,dialog:Fr},l,Ro,ko),$i=()=>{const fa={attributes:{[Nb]:Bn?ap.BottomToTop:ap.TopToBottom}},Qa=Lc.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Ao.popup,onEscape:()=>{l.focus()}}),ac=Lc.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Ao.popup.shared.getSink,providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},onToolbarToggled:xO=>{dX(l,xO)},type:er,lazyToolbar:_i,lazyHeader:()=>br().getOrDie("Could not find header element"),...fa}),vl=Lc.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},type:er}),dp=Fk(l),qg=Nk(l),Vv=x6(l),Wh=fz(l),Wg=yi(),U0=dp||qg||Vv,km=()=>dp?[vl]:qg?[ac]:[],qy=Wh?[Wg,Qa]:[Qa];return Lc.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(U0?[]:["tox-editor-header--empty"]),...fa},components:ye([Vv?qy:[],km(),tS(l)?[]:[cr.asSpec()]]),sticky:Qw(l),editor:l,sharedBackstage:Ao.popup.shared})},yi=()=>Lc.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Xi=()=>{const fa=Lc.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Qa=Lc.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[fa,Qa]}},ks=()=>{const fa=GE(l),Qa=_o(Lr(),fa)&&Di(fa,"display")==="grid",ac={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Ph.config({useFixed:()=>Se.isDocked(br)})])},vl={dom:{styles:{width:document.body.clientWidth+"px"}},events:Rl([Lo(Dm(),Vv=>{xr(Vv.element,"width",document.body.clientWidth+"px")})])},dp=ka(ws(ac,Qa?vl:{})),qg=m5(dp);return ft.set(qg),{sink:dp,mothership:qg}},Ic=()=>{const fa={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Ph.config({useFixed:()=>Se.isDocked(br),getBounds:()=>N.getPopupSinkBounds()})])},Qa=ka(fa),ac=m5(Qa);return yt.set(ac),{sink:Qa,mothership:ac}},hl=()=>{const fa=$i(),Qa=Xi(),ac=Lc.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Ao.popup}),vl=Lc.parts.viewWrapper({backstage:Ao.popup}),dp=lz(l)&&!W?I.some(coe(l,Ao.popup.shared.providers)):I.none(),qg=ye([Bn?[]:[fa],W?[]:[Qa],Bn?[fa]:[]]),Vv=Lc.parts.editorContainer({components:ye([qg,W?[]:[Xr.asSpec()]])}),Wh=Vk(l),Wg={role:"application",...Dg.isRtl()?{dir:"rtl"}:{},...Wh?{"aria-hidden":"true"}:{}},U0=ka(Lc.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(W?["tox-tinymce-inline"]:[]).concat(Bn?["tox-tinymce--toolbar-bottom"]:[]).concat(Rn),styles:{visibility:"hidden",...Wh?{opacity:"0",border:"0"}:{}},attributes:Wg},components:[Vv,...W?[]:[vl,...dp.toArray()],ac],behaviours:ei([Id(),he.config({disableClass:"tox-tinymce--disabled"}),ha.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),km=m5(U0);return qe.set(km),{mothership:km,outerContainer:U0}},Ui=fa=>{const Qa=t8(Mne(l)),ac=t8(Ene(l));return l.inline||(fs("div","width",ac)&&xr(fa.element,"width",ac),fs("div","height",Qa)?xr(fa.element,"height",Qa):xr(fa.element,"height","400px")),Qa},Ko=fa=>{l.addShortcut("alt+F9","focus menubar",()=>{Lc.focusMenubar(fa)}),l.addShortcut("alt+F10","focus toolbar",()=>{Lc.focusToolbar(fa)}),l.addCommand("ToggleToolbarDrawer",(Qa,ac)=>{ac!=null&&ac.skipFocus?Lc.toggleToolbarDrawerWithoutFocusing(fa):Lc.toggleToolbarDrawer(fa)}),l.addQueryStateHandler("ToggleToolbarDrawer",()=>Lc.isToolbarDrawerToggled(fa))},Oi=fa=>{const{mainUi:Qa,popupUi:ac,uiMotherships:vl}=fa;Ue(jE(l),(qS,_8)=>{l.ui.registry.addGroupToolbarButton(_8,qS)});const{buttons:dp,menuItems:qg,contextToolbars:Vv,sidebars:Wh,views:Wg}=l.ui.registry.getAll(),U0=XE(l),km={menuItems:qg,menus:pz(l),menubar:rz(l),toolbar:U0.getOrThunk(()=>Bk(l)),allowToolbarGroups:er===C0.floating,buttons:dp,sidebar:Wh,views:Wg};Ko(Qa.outerContainer),hV(l,Qa.mothership,vl),Se.setup(l,Ao.popup.shared,br),cre(l,Ao.popup),kre(l,Ao.popup.shared.getSink,Ao.popup),cR(l),rte(l,Pi,Ao.popup.shared),Zne(l,Vv,ac.sink,{backstage:Ao.popup}),eoe(l,ac.sink);const qy=l.getElement(),xO=Ui(Qa.outerContainer),OL={targetNode:qy,height:xO};return fe.render(l,fa,km,Ao.popup,OL)},La=fa=>(yt.set(fa.mothership),fa),_a=()=>{const fa=hl(),Qa=ks(),ac=N2(l)?Ic():La(Qa);Be.dialogUi.set(Qa),Be.popupUi.set(ac),Be.mainUi.set(fa);const vl={popupUi:ac,dialogUi:Qa,mainUi:fa,uiMotherships:Be.getUiMotherships()};return Oi(vl)};return{popups:{backstage:Ao.popup,getMothership:()=>$j("popups",yt)},dialogs:{backstage:Ao.dialog,getMothership:()=>$j("dialogs",ft)},renderUI:_a}},foe=l=>l.dom.textContent,doe=(l,N)=>{const W=Eo(l,"id").fold(()=>{const fe=Li("dialog-label");return Cr(N,"id",fe),fe},R);Cr(l,"aria-labelledby",W)},hoe=x([pn("lazySink"),Yo("dragBlockClass"),ys("getBounds",ts),Ar("useTabstopAt",k),Ar("firstTabstop",0),Ar("eventOrder",{}),Pd("modalBehaviours",[ha]),kd("onExecute"),Sb("onEscape")]),lL={sketch:R},poe=x([mm({name:"draghandle",overrides:(l,N)=>({behaviours:ei([hO.config({mode:"mouse",getTarget:W=>Fl(W,'[role="dialog"]').getOr(W),blockerClass:l.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(N,null,2)).message),getBounds:l.getDragBounds})])})}),mh({schema:[pn("dom")],name:"title"}),mh({factory:lL,schema:[pn("dom")],name:"close"}),mh({factory:lL,schema:[pn("dom")],name:"body"}),mm({factory:lL,schema:[pn("dom")],name:"footer"}),Jm({factory:{sketch:(l,N)=>({...l,dom:N.dom,components:N.components})},schema:[Ar("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ar("components",[])],name:"blocker"})]),Vj=(l,N,W,fe)=>{const Se=ds(),Be=er=>{Se.set(er);const cr=l.lazySink(er).getOrDie(),Xr=fe.blocker(),br=cr.getSystem().build({...Xr,components:Xr.components.concat([ea(er)]),behaviours:ei([Ra.config({}),Ka("dialog-blocker-events",[ly(Dp(),()=>{I1.isBlocked(er)?v():ha.focusIn(er)})])])});Eg(cr,br),ha.focusIn(er)},qe=er=>{Se.clear(),Dr(er.element).each(cr=>{er.getSystem().getByDom(cr).each(Xr=>{kv(Xr)})})},ft=er=>gm(er,l,"body"),yt=er=>Jo(er,l,"footer"),Lt=(er,cr)=>{I1.block(er,cr)},Ht=er=>{I1.unblock(er)},fn=Li("modal-events"),Rn={...l.eventOrder,[Oh()]:[fn].concat(l.eventOrder["alloy.system.attached"]||[])},Bn=va();return{uid:l.uid,dom:l.dom,components:N,apis:{show:Be,hide:qe,getBody:ft,getFooter:yt,setIdle:Ht,setBusy:Lt},eventOrder:Rn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rd(l.modalBehaviours,[Fa.config({}),ha.config({mode:"cyclic",onEnter:l.onExecute,onEscape:l.onEscape,useTabstopAt:l.useTabstopAt,firstTabstop:l.firstTabstop}),I1.config({getRoot:Se.get}),Ka(fn,[wc(er=>{const cr=gm(er,l,"title").element,Xr=foe(cr);Bn.os.isMacOS()&&a(Xr)?Cr(er.element,"aria-label",Xr):doe(er.element,cr)})])])}},fd=Zh({name:"ModalDialog",configFields:hoe(),partFields:poe(),factory:Vj,apis:{show:(l,N)=>{l.show(N)},hide:(l,N)=>{l.hide(N)},getBody:(l,N)=>l.getBody(N),getFooter:(l,N)=>l.getFooter(N),setBusy:(l,N,W)=>{l.setBusy(N,W)},setIdle:(l,N)=>{l.setIdle(N)}}}),pO=Si([pf,V6].concat(U2)),moe=V,dT=[BP("button"),E0,rl("align","end",["start","end"]),aS,P0,Yi("buttonType",["primary","secondary"])],hT=[...dT,sx],cL=[Gr("type",["submit","cancel","custom"]),...hT],goe=[Gr("type",["menu"]),lx,iS,E0,Go("items",pO),...dT],voe=[...dT,Gr("type",["togglebutton"]),iS,E0,lx,Hs("active",!1)],yoe=bn("type",{submit:cL,cancel:cL,custom:cL,menu:goe,togglebutton:voe}),boe=[pf,sx,Gr("level",["info","warn","error","success"]),Qz,Ar("url","")],mO=Si(boe),Uj=l=>[pf,l],xoe=[pf,sx,P0,BP("button"),E0,zY,Yi("buttonType",["primary","secondary","toolbar"]),aS],_oe=Si(xoe),VS=[pf,V6],Fv=VS.concat([U6]),woe=VS.concat([LP,P0]),Ooe=Si(woe),Soe=V,koe=Fv.concat([Zz("auto")]),uL=Si(koe),pT=It([Kk,sx,Qz]),fL=Fv.concat([Ts("storageKey","default")]),p8=Si(fL),gO=ne,Toe=Si(Fv),jj=ne,Qj=VS.concat([Ts("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),ai("onFocus"),Yu("settings",void 0)]),Hj=VS.concat([Ts("tag","textarea"),po("init")]),Coe=rt(l=>Rt("customeditor.old",Os(Hj),l).orThunk(()=>Rt("customeditor.new",Os(Qj),l))),Aoe=ne,Zj=Si(Fv),qj=et(),hL=l=>[pf,Ir("columns"),l],Moe=[pf,Pr("html"),rl("presets","presentation",["presentation","document"]),ys("onInit",v),Hs("stretched",!1)],Eoe=Si(Moe),Poe=Fv.concat([Hs("border",!1),Hs("sandboxed",!0),Hs("streamContent",!1),Hs("transparent",!0)]),Wj=Si(Poe),Roe=ne,Loe=Si(VS.concat([jo("height")])),Ioe=Si([Pr("url"),Ho("zoom"),Ho("cachedWidth"),Ho("cachedHeight")]),pL=Fv.concat([jo("inputMode"),jo("placeholder"),Hs("maximized",!1),P0]),mL=Si(pL),Doe=ne,Yj=l=>[pf,LP,l,rl("align","start",["start","center","end"]),jo("for")],Boe=[sx,Kk],zoe=[sx,Go("items",vn("items",()=>gL))],gL=rd([Si(Boe),Si(zoe)]),Noe=Fv.concat([Go("items",gL),P0]),Foe=Si(Noe),vO=ne,Xj=Fv.concat([Bo("items",[sx,Kk]),$s("size",1),P0]),$oe=Si(Xj),m8=ne,US=Fv.concat([Hs("constrain",!0),P0]),g8=Si(US),vL=Si([Pr("width"),Pr("height")]),v8=VS.concat([LP,$s("min",0),$s("max",0)]),wm=Si(v8),y8=le,Gj=[pf,Go("header",ne),Go("cells",lc(ne))],Kj=Si(Gj),Voe=Fv.concat([jo("placeholder"),Hs("maximized",!1),P0]),Uoe=Si(Voe),l_=ne,joe=[Gr("type",["directory","leaf"]),jz,Pr("id"),Wi("menu",wV)],yL=Si(joe),jS=joe.concat([Go("children",vn("children",()=>Ne("type",{directory:mT,leaf:yL})))]),mT=Si(jS),Jj=Ne("type",{directory:mT,leaf:yL}),Qoe=[pf,Go("items",Jj),ai("onLeafAction"),ai("onToggleExpand"),mt("defaultExpandedIds",[],ne),jo("defaultSelectedId")],Hoe=Si(Qoe),Zoe=Fv.concat([rl("filetype","file",["image","media","file"]),P0,jo("picker_text")]),qoe=Si(Zoe),QS=Si([Kk,IP]),eQ=l=>Ln("items","items",su(),lc(rt(N=>Rt(`Checking item of ${l}`,bL,N).fold(W=>aa.error(dn(W)),W=>aa.value(W))))),bL=Pc(()=>Ne("type",{alertbanner:mO,bar:Si(Uj(eQ("bar"))),button:_oe,checkbox:Ooe,colorinput:p8,colorpicker:Toe,dropzone:Zj,grid:Si(hL(eQ("grid"))),iframe:Wj,input:mL,listbox:Foe,selectbox:$oe,sizeinput:g8,slider:wm,textarea:Uoe,urlinput:qoe,customeditor:Coe,htmlpanel:Eoe,imagepreview:Loe,collection:uL,label:Si(Yj(eQ("label"))),table:Kj,tree:Hoe,panel:Yoe})),Woe=[pf,Ar("classes",[]),Go("items",bL)],Yoe=Si(Woe),Xoe=[BP("tab"),jz,Go("items",bL)],Goe=[pf,Bo("tabs",Xoe)],gT=Si(Goe),Koe=hT,Joe=yoe,tQ=Si([Pr("title"),In("body",Ne("type",{panel:Yoe,tabpanel:gT})),Ts("size","normal"),mt("buttons",[],Joe),Ar("initialData",{}),ys("onAction",v),ys("onChange",v),ys("onSubmit",v),ys("onClose",v),ys("onCancel",v),ys("onTabChange",v)]),eie=l=>Rt("dialog",tQ,l),fde=Si([Gr("type",["cancel","custom"]),...Koe]),r=Si([Pr("title"),Pr("url"),Ho("height"),Ho("width"),Hi("buttons",fde),ys("onAction",v),ys("onCancel",v),ys("onClose",v),ys("onMessage",v)]),g=l=>Rt("dialog",r,l),B=l=>u(l)?[l].concat(ve(ot(l),B)):i(l)?ve(l,B):[],H=l=>n(l.type)&&n(l.name),oe={checkbox:Soe,colorinput:gO,colorpicker:jj,dropzone:qj,input:Doe,iframe:Roe,imagepreview:Ioe,selectbox:m8,sizeinput:vL,slider:y8,listbox:vO,size:vL,textarea:l_,urlinput:QS,customeditor:Aoe,collection:pT,togglemenuitem:moe},be=l=>I.from(oe[l.type]),Le=l=>me(B(l),H),Ke=l=>{const N=Le(l),W=ve(N,fe=>be(fe).fold(()=>[],Se=>[In(fe.name,Se)]));return Si(W)},ut=l=>{var N;const W=Mt(eie(l)),fe=Ke(l),Se=(N=l.initialData)!==null&&N!==void 0?N:{};return{internalDialog:W,dataValidator:fe,initialData:Se}},At={open:(l,N)=>{const W=ut(N);return l(W.internalDialog,W.initialData,W.dataValidator)},openUrl:(l,N)=>{const W=Mt(g(N));return l(W)},redial:l=>ut(l)};var un=Object.freeze({__proto__:null,events:(l,N)=>{const W=(fe,Se)=>{l.updateState.each(Be=>{const qe=Be(fe,Se);N.set(qe)}),l.renderComponents.each(Be=>{const qe=Be(Se,N.get());(l.reuseDom?X3:Y3)(fe,qe)})};return Rl([Lo(yp(),(fe,Se)=>{const Be=Se;if(!Be.universal){const qe=l.channel;X(Be.channels,qe)&&W(fe,Be.data)}}),wc((fe,Se)=>{l.initialData.each(Be=>{W(fe,Be)})})])}}),Qn=Object.freeze({__proto__:null,getState:(l,N,W)=>W}),rr=[pn("channel"),Yo("renderComponents"),Yo("updateState"),Yo("initialData"),Hs("reuseDom",!0)],ur=Object.freeze({__proto__:null,init:()=>{const l=wi(I.none()),N=()=>l.set(I.none());return{readState:()=>l.get().getOr("none"),get:l.get,set:l.set,clear:N}}});const Tr=id({fields:rr,name:"reflecting",active:un,apis:Qn,state:ur}),Wr=l=>{const N=[],W={};return We(l,(fe,Se)=>{fe.fold(()=>{N.push(Se)},Be=>{W[Se]=Be})}),N.length>0?aa.error(N):aa.value(W)},Qr=(l,N,W,fe)=>{const Se=ml(Y2.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(l.classes)},components:re(l.items,qe=>qJ(Be,qe,N,W,fe))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[Se.asSpec()]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),P1.memento(Se),TK(Se,{postprocess:Be=>Wr(Be).fold(qe=>(console.error(qe),{}),R)}),Ka("dialog-body-panel",[Lo(Dp(),(Be,qe)=>{Be.getSystem().broadcastOn([OA],{newFocus:I.some(qe.event.target)})})])])}},lo=(l,N)=>({uid:l.uid,dom:l.dom,components:l.components,events:f6(l.action),behaviours:Rd(l.tabButtonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0}),Ei.config({store:{mode:"memory",initialValue:l.value}})]),domModification:l.domModification}),Zo=Qp({name:"TabButton",configFields:[Ar("uid",void 0),pn("value"),Ln("dom","dom",_u(()=>({attributes:{role:"tab",id:Li("aria"),"aria-selected":"false"}})),Ut()),Yo("action"),Ar("domModification",{}),Pd("tabButtonBehaviours",[Ra,ha,Ei]),pn("view")],factory:lo}),li=x([pn("tabs"),pn("dom"),Ar("clickToDismiss",!1),Pd("tabbarBehaviours",[ta,ha]),h0(["tabClass","selectedClass"])]),Mi=U3({factory:Zo,name:"tabs",unit:"tab",overrides:l=>{const N=(fe,Se)=>{ta.dehighlight(fe,Se),sa(fe,W1(),{tabbar:fe,button:Se})},W=(fe,Se)=>{ta.highlight(fe,Se),sa(fe,UO(),{tabbar:fe,button:Se})};return{action:fe=>{const Se=fe.getSystem().getByUid(l.uid).getOrDie(),Be=ta.isHighlighted(Se,fe);(()=>Be&&l.clickToDismiss?N:Be?v:W)()(Se,fe)},domModification:{classes:[l.markers.tabClass]}}}}),Co=x([Mi]),yo=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rd(l.tabbarBehaviours,[ta.config({highlightClass:l.markers.selectedClass,itemClass:l.markers.tabClass,onHighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","true")},onDehighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","false")}}),ha.config({mode:"flow",getInitial:Se=>ta.getHighlighted(Se).map(Be=>Be.element),selector:"."+l.markers.tabClass,executeOnMove:!0})])}),Vo=Zh({name:"Tabbar",configFields:li(),partFields:Co(),factory:yo}),Fi=(l,N)=>({uid:l.uid,dom:l.dom,behaviours:Rd(l.tabviewBehaviours,[Fa.config({})]),domModification:{attributes:{role:"tabpanel"}}}),la=Qp({name:"Tabview",configFields:[Pd("tabviewBehaviours",[Fa])],factory:Fi}),bs=x([Ar("selectFirst",!0),Ss("onChangeTab"),Ss("onDismissTab"),Ar("tabs",[]),Pd("tabSectionBehaviours",[])]),Ms=mh({factory:Vo,schema:[pn("dom"),si("markers",[pn("tabClass"),pn("selectedClass")])],name:"tabbar",defaults:l=>({tabs:l.tabs})}),wl=mh({factory:la,name:"tabview"}),Vl=x([Ms,wl]),Uu=(l,N,W,fe)=>{const Se=qe=>{const ft=Ei.getValue(qe);Jo(qe,l,"tabview").each(yt=>{ce(l.tabs,Ht=>Ht.value===ft).each(Ht=>{const fn=Ht.view();Eo(qe.element,"id").each(Rn=>{Cr(yt.element,"aria-labelledby",Rn)}),Fa.set(yt,fn),l.onChangeTab(yt,qe,fn)})})},Be=(qe,ft)=>{Jo(qe,l,"tabbar").each(yt=>{ft(yt).each(Bm)})};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.tabSectionBehaviours),events:Rl(ye([l.selectFirst?[wc((qe,ft)=>{Be(qe,ta.getFirst)})]:[],[Lo(UO(),(qe,ft)=>{const yt=ft.event.button;Se(yt)}),Lo(W1(),(qe,ft)=>{const yt=ft.event.button;l.onDismissTab(qe,yt)})]])),apis:{getViewItems:qe=>Jo(qe,l,"tabview").map(ft=>Fa.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,Lt=>{const Ht=ta.getCandidates(Lt);return ce(Ht,Rn=>Ei.getValue(Rn)===ft).filter(Rn=>!ta.isHighlighted(Lt,Rn))})}}}},Wf=Zh({name:"TabSection",configFields:bs(),partFields:Vl(),factory:Uu,apis:{getViewItems:(l,N)=>l.getViewItems(N),showTab:(l,N,W)=>{l.showTab(N,W)}}}),ic=(l,N,W)=>re(l,(fe,Se)=>{Fa.set(W,l[Se].view());const Be=N.dom.getBoundingClientRect();return Fa.set(W,[]),Be.height}),vi=l=>Qe(ze(l,(N,W)=>N>W?-1:N{const fe=Hn(l).dom,Se=Fl(l,".tox-dialog-wrap").getOr(l),Be=Di(Se,"position")==="fixed";let qe;Be?qe=Math.max(fe.clientHeight,window.innerHeight):qe=Math.max(fe.offsetHeight,fe.scrollHeight);const ft=il(N),Lt=N.dom.offsetLeft>=W.dom.offsetLeft+_s(W)?Math.max(il(W),ft):ft,Ht=parseInt(Di(l,"margin-top"),10)||0,fn=parseInt(Di(l,"margin-bottom"),10)||0,Bn=il(l)+Ht+fn-Lt;return qe-Bn},ol=(l,N)=>{Qe(l).each(W=>Wf.showTab(N,W.value))},Ti=(l,N)=>{xr(l,"height",N+"px"),xr(l,"flex-basis",N+"px")},pa=(l,N,W)=>{Fl(l,'[role="dialog"]').each(fe=>{qa(fe,'[role="tablist"]').each(Se=>{W.get().map(Be=>(xr(N,"height","0"),xr(N,"flex-basis","0"),Math.min(Be,na(fe,N,Se)))).each(Be=>{Ti(N,Be)})})})},ps=l=>qa(l,'[role="tabpanel"]'),Ci=l=>{const N=ds();return{extraEvents:[wc(Se=>{const Be=Se.element;ps(Be).each(qe=>{xr(qe,"visibility","hidden"),Se.getSystem().getByDom(qe).toOptional().each(ft=>{const yt=ic(l,qe,ft);vi(yt).fold(N.clear,N.set)}),pa(Be,qe,N),zi(qe,"visibility"),ol(l,Se),requestAnimationFrame(()=>{pa(Be,qe,N)})})}),Lo(Dm(),Se=>{const Be=Se.element;ps(Be).each(qe=>{pa(Be,qe,N)})}),Lo(A7,(Se,Be)=>{const qe=Se.element;ps(qe).each(ft=>{const yt=um(kr(ft));xr(ft,"visibility","hidden");const Lt=Ia(ft,"height").map(Rn=>parseInt(Rn,10));zi(ft,"height"),zi(ft,"flex-basis");const Ht=ft.dom.getBoundingClientRect().height;Lt.forall(Rn=>Ht>Rn)?(N.set(Ht),pa(qe,ft,N)):Lt.each(Rn=>{Ti(ft,Rn)}),zi(ft,"visibility"),yt.each(Md)})})],selectFirst:!1}},ms="send-data-to-section",Es="send-data-to-view",Bd=(l,N,W,fe)=>{const Se=wi({}),Be=Ht=>{const fn=Ei.getValue(Ht),Rn=Wr(fn).getOr({}),Bn=Se.get(),er=ws(Bn,Rn);Se.set(er)},qe=Ht=>{const fn=Se.get();Ei.setValue(Ht,fn)},ft=wi(null),yt=re(l.tabs,Ht=>({value:Ht.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Po(W.shared.providers.translate(Ht.title))],view:()=>[Y2.sketch(fn=>({dom:{tag:"div",classes:["tox-form"]},components:re(Ht.items,Rn=>qJ(fn,Rn,N,W,fe)),formBehaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),Ka("TabView.form.events",[wc(qe),xg(Be)]),Ad.config({channels:ua([{key:ms,value:{onReceive:Be}},{key:Es,value:{onReceive:qe}}])})])}))]})),Lt=Ci(yt);return Wf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ht,fn,Rn)=>{const Bn=Ei.getValue(fn);sa(Ht,hF,{name:Bn,oldName:ft.get()}),ft.set(Bn)},tabs:yt,components:[Wf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Vo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:ei([Rc.config({})])}),Wf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Lt.selectFirst,tabSectionBehaviours:ei([Ka("tabpanel",Lt.extraEvents),ha.config({mode:"acyclic"}),Xs.config({find:Ht=>Qe(Wf.getViewItems(Ht))}),X2(I.none(),Ht=>(Ht.getSystem().broadcastOn([ms],{}),Se.get()),(Ht,fn)=>{Se.set(fn),Ht.getSystem().broadcastOn([Es],{})})])})},Cl=(l,N,W,fe,Se,Be)=>{const qe=Lt=>{const Ht=Lt.body;switch(Ht.type){case"tabpanel":return[Bd(Ht,Lt.initialData,fe,Be)];default:return[Qr(Ht,Lt.initialData,fe,Be)]}},ft=(Lt,Ht)=>I.some({isTabPanel:()=>Ht.body.type==="tabpanel"}),yt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...W.map(Lt=>({id:Lt})).getOr({}),...Se?yt:{}}},components:[],behaviours:ei([P1.childAt(0),Tr.config({channel:`${s9}-${N}`,updateState:ft,renderComponents:qe,initialData:l})])}},dd=(l,N,W,fe,Se,Be)=>Cl(l,N,I.some(W),fe,Se,Be),z0=(l,N,W,fe)=>{const Se=Cl(l,N,I.none(),W,!1,fe);return fd.parts.body(Se)},$v=l=>{const N={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[o$(I.none(),{dom:{tag:"iframe",attributes:{src:l.url}},behaviours:ei([Rc.config({}),Ra.config({})])})]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)})])};return fd.parts.body(N)},Cp=$w.deviceType.isTouch(),Om=(l,N)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[l,N]}),Hg=(l,N)=>fd.parts.close(Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":N.translate("Close")}},action:l,buttonBehaviours:ei([Rc.config({})])})),Sm=()=>fd.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Zg=(l,N)=>fd.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ev(`

    ${mP(N.translate(l))}

    `)}]}]}),ca=l=>fd.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:l}),Zs=(l,N)=>[Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:l}),Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:N})],ru=l=>{const N="tox-dialog",W=N+"-wrap",fe=W+"__backdrop",Se=N+"__disable-scroll";return fd.sketch({lazySink:l.lazySink,onEscape:Be=>(l.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!E5(Be),firstTabstop:l.firstTabstop,dom:{tag:"div",classes:[N].concat(l.extraClasses),styles:{position:"relative",...l.extraStyles}},components:[l.header,l.body,...l.footer.toArray()],parts:{blocker:{dom:Ev(`
    `),components:[{dom:{tag:"div",classes:Cp?[fe,fe+"--opaque"]:[fe]}}]}},dragBlockClass:W,modalBehaviours:ei([Ra.config({}),Ka("dialog-events",l.dialogEvents.concat([ly(Dp(),(Be,qe)=>{I1.isBlocked(Be)?v():ha.focusIn(Be)}),Lo(q1(),(Be,qe)=>{Be.getSystem().broadcastOn([OA],{newFocus:qe.event.newFocus})})])),Ka("scroll-lock",[wc(()=>{uc(Lr(),Se)}),xg(()=>{Zc(Lr(),Se)})]),...l.extraBehaviours]),eventOrder:{[Bp()]:["dialog-events"],[Oh()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...l.eventOrder}})},ju=l=>Rh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":l.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:ei([Rc.config({}),Vu.config(l.tooltips.getConfig({tooltipText:l.translate("Close")}))]),components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.icons)],action:N=>{Za(N,cx)}}),Pf=(l,N,W,fe)=>{const Se=Be=>[Po(fe.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...W.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:ei([Tr.config({channel:`${a$}-${N}`,initialData:l,renderComponents:Se})])}},Gd=()=>({dom:Ev('
    ')}),Rf=(l,N,W,fe)=>Iv.sketch({dom:Ev('
    '),components:[Pf(l,N,I.some(W),fe),Gd(),ju(fe)],containerBehaviours:ei([hO.config({mode:"mouse",blockerClass:"blocker",getTarget:Se=>Sc(Se,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),Lf=(l,N,W)=>{const fe=fd.parts.title(Pf(l,N,I.none(),W)),Se=fd.parts.draghandle(Gd()),Be=fd.parts.close(ju(W)),qe=[fe].concat(l.draggable?[Se]:[]).concat([Be]);return Iv.sketch({dom:Ev('
    '),components:qe})},fp=(l,N,W)=>Lf({title:W.shared.providers.translate(l),draggable:W.dialog.isDraggableModal()},N,W.shared.providers),N0=(l,N,W,fe)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":W.translate(l)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${fe.getOr(0)}px`,position:"absolute"}},behaviours:N,components:[{dom:Ev('
    ')}]}),F0=(l,N,W)=>({onClose:()=>W.closeWindow(),onBlock:fe=>{const Se=qa(l().element,".tox-dialog__header").map(Be=>il(Be));fd.setBusy(l(),(Be,qe)=>N0(fe.message,qe,N,Se))},onUnblock:()=>{fd.setIdle(l())}}),$0="tox-dialog--fullscreen",rg="tox-dialog--width-lg",jy="tox-dialog--width-md",gx=l=>{switch(l){case"large":return I.some(rg);case"medium":return I.some(jy);default:return I.none()}},yO=(l,N)=>{const W=Nt.fromDom(N.element.dom);rp(W,$0)||(Oc(W,[rg,jy]),gx(l).each(fe=>uc(W,fe)))},b8=(l,N)=>{const W=Nt.fromDom(l.element.dom),fe=qc(W),Se=ce(fe,Be=>Be===rg||Be===jy).or(gx(N));WO(W,[$0,...Se.toArray()])},Qy=(l,N,W)=>ka(ru({...l,firstTabstop:1,lazySink:W.shared.getSink,extraBehaviours:[xA({}),...l.extraBehaviours],onEscape:fe=>{Za(fe,cx)},dialogEvents:N,eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Oh()]:["scroll-lock",Tr.name(),"messages","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","messages",Tr.name(),"scroll-lock"]}})),HS=(l,N={})=>{const W=fe=>{const Se=re(fe.items,Be=>{const qe=Ge(N,Be.name).getOr(wi(!1));return{...Be,storage:qe}});return{...fe,items:Se}};return re(l,fe=>fe.type==="menu"?W(fe):fe)},xL=l=>se(l,(N,W)=>W.type==="menu"?se(W.items,(Se,Be)=>(Se[Be.name]=Be.storage,Se),N):N,{}),qh=(l,N)=>[mb(Dp(),IK),l(vS,(W,fe,Se,Be)=>{um(kr(Be.element)).fold(v,m1),N.onClose(),fe.onClose()}),l(cx,(W,fe,Se,Be)=>{fe.onCancel(W),Za(Be,vS)}),Lo(C7,(W,fe)=>N.onUnblock()),Lo(T7,(W,fe)=>N.onBlock(fe.event))],bO=(l,N)=>{const W=(Se,Be)=>Lo(Se,(qe,ft)=>{fe(qe,(yt,Lt)=>{Be(l(),yt,ft.event,qe)})}),fe=(Se,Be)=>{Tr.getState(Se).get().each(qe=>{Be(qe,Se)})};return[...qh(W,N),W(zy,(Se,Be,qe)=>{Be.onAction(Se,{name:qe.name})})]},_L=(l,N,W)=>{const fe=(Be,qe)=>Lo(Be,(ft,yt)=>{Se(ft,(Lt,Ht)=>{qe(l(),Lt,yt.event,ft)})}),Se=(Be,qe)=>{Tr.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...qh(fe,N),fe(v5,(Be,qe)=>qe.onSubmit(Be)),fe(xm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),fe(zy,(Be,qe,ft,yt)=>{const Lt=()=>yt.getSystem().isConnected()?ha.focusIn(yt):void 0,Ht=Bn=>zo(Bn,"disabled")||Eo(Bn,"aria-disabled").exists(er=>er==="true"),fn=kr(yt.element),Rn=um(fn);qe.onAction(Be,{name:ft.name,value:ft.value}),um(fn).fold(Lt,Bn=>{Ht(Bn)||Rn.exists(er=>$o(Bn,er)&&Ht(er))?Lt():W().toOptional().filter(er=>!$o(er.element,Bn)).each(Lt)})}),fe(hF,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),xg(Be=>{const qe=l();Ei.setValue(Be,qe.getData())})]},wL=(l,N)=>j5(l,l.type,N),Hy=(l,N,W)=>ce(N,fe=>fe.name===W).bind(fe=>fe.memento.getOpt(l)),vT=(l,N)=>{const W=N.map(ft=>ft.footerButtons).getOr([]),fe=ee(W,ft=>ft.align==="start"),Se=(ft,yt)=>Iv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:re(yt,Lt=>Lt.memento.asSpec())}),Be=Se("start",fe.pass),qe=Se("end",fe.fail);return[Be,qe]},ho=(l,N,W)=>{const fe=(Se,Be)=>{const qe=re(Be.buttons,yt=>{const Lt=ml(wL(yt,W));return{name:yt.name,align:yt.align,memento:Lt}}),ft=yt=>Hy(Se,qe,yt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:Ev(''),components:[],behaviours:ei([Tr.config({channel:`${s$}-${N}`,initialData:l,updateState:fe,renderComponents:vT})])}},bo=(l,N,W)=>ho(l,N,W),di=(l,N,W)=>fd.parts.footer(ho(l,N,W)),ri=(l,N)=>{if(l.getRoot().getSystem().isConnected()){const fe=Xs.getCurrent(l.getFormWrapper()).getOr(l.getFormWrapper());return Y2.getField(fe,N).orThunk(()=>l.getFooter().bind(qe=>Tr.getState(qe).get()).bind(qe=>qe.lookupByName(N)))}else return I.none()},Ta=(l,N)=>{const W=l.getRoot();return Tr.getState(W).get().map(fe=>Mt(Rt("data",fe.dataValidator,N))).getOr(N)},zs=(l,N,W)=>{const fe=er=>{const cr=l.getRoot();cr.getSystem().isConnected()&&er(cr)},Bn={getData:()=>{const er=l.getRoot(),cr=er.getSystem().isConnected()?l.getFormWrapper():er,Xr=Ei.getValue(cr),br=Ue(W,Fr=>Fr.get());return{...Xr,...br}},setData:er=>{fe(cr=>{const Xr=Bn.getData(),br=ws(Xr,er),Fr=Ta(l,br),jr=l.getFormWrapper();Ei.setValue(jr,Fr),We(W,(Ro,ko)=>{ht(br,ko)&&Ro.set(br[ko])})})},setEnabled:(er,cr)=>{ri(l,er).each(cr?he.enable:he.disable)},focus:er=>{ri(l,er).each(Ra.focus)},block:er=>{if(!n(er))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");fe(cr=>{sa(cr,T7,{message:er})})},unblock:()=>{fe(er=>{Za(er,C7)})},showTab:er=>{fe(cr=>{const Xr=l.getBody();Tr.getState(Xr).get().exists(Fr=>Fr.isTabPanel())&&Xs.getCurrent(Xr).each(Fr=>{Wf.showTab(Fr,er)})})},redial:er=>{fe(cr=>{const Xr=l.getId(),br=N(er),Fr=HS(br.internalDialog.buttons,W);cr.getSystem().broadcastOn([`${P5}-${Xr}`],br),cr.getSystem().broadcastOn([`${a$}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s9}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s$}-${Xr}`],{...br.internalDialog,buttons:Fr}),Bn.setData(br.initialData)})},close:()=>{fe(er=>{Za(er,vS)})},toggleFullscreen:l.toggleFullscreen};return Bn},Su=(l,N,W)=>{const fe=Li("dialog"),Se=l.internalDialog,Be=fp(Se.title,fe,W),qe=wi(Se.size),ft=jr=>ri(br,jr),yt=gx(qe.get()).toArray(),Lt=(jr,Ro)=>(qe.set(Ro.internalDialog.size),yO(Ro.internalDialog.size,jr),I.some(Ro)),Ht=z0({body:Se.body,initialData:Se.initialData},fe,W,ft),fn=HS(Se.buttons),Rn=xL(fn),Bn=Ot(fn.length!==0,di({buttons:fn},fe,W)),er=_L(()=>Fr,F0(()=>Xr,W.shared.providers,N),W.shared.getSink),cr={id:fe,header:Be,body:Ht,footer:Bn,extraClasses:yt,extraBehaviours:[Tr.config({channel:`${P5}-${fe}`,updateState:Lt,initialData:l})],extraStyles:{}},Xr=Qy(cr,er,W),br=(()=>{const jr=()=>{const ko=fd.getBody(Xr);return Xs.getCurrent(ko).getOr(ko)},Ro=()=>{b8(Xr,qe.get())};return{getId:x(fe),getRoot:x(Xr),getBody:()=>fd.getBody(Xr),getFooter:()=>fd.getFooter(Xr),getFormWrapper:jr,toggleFullscreen:Ro}})(),Fr=zs(br,N.redial,Rn);return{dialog:Xr,instanceApi:Fr}},V0=(l,N,W,fe=!1,Se)=>{const Be=Li("dialog"),qe=Li("dialog-label"),ft=Li("dialog-content"),yt=l.internalDialog,Lt=$i=>ri(Pi,$i),Ht=wi(yt.size),fn=gx(Ht.get()).toArray(),Rn=($i,yi)=>(Ht.set(yi.internalDialog.size),yO(yi.internalDialog.size,$i),Se(),I.some(yi)),Bn=ml(Rf({title:yt.title,draggable:!0},Be,qe,W.shared.providers)),er=ml(dd({body:yt.body,initialData:yt.initialData},Be,ft,W,fe,Lt)),cr=HS(yt.buttons),Xr=xL(cr),br=Ot(cr.length!==0,ml(bo({buttons:cr},Be,W))),Fr=_L(()=>Ao,{onBlock:$i=>{I1.block(ko,(yi,Xi)=>{const ks=Bn.getOpt(ko).map(Ic=>il(Ic.element));return N0($i.message,Xi,W.shared.providers,ks)})},onUnblock:()=>{I1.unblock(ko)},onClose:()=>N.closeWindow()},W.shared.getSink),jr="tox-dialog-inline",Ro=va().os,ko=ka({dom:{tag:"div",classes:["tox-dialog",jr,...fn],attributes:{role:"dialog",...Ro.isMacOS()?{"aria-label":yt.title}:{"aria-labelledby":qe}}},eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Bp()]:["execute-on-form"],[Oh()]:["reflecting","execute-on-form"]},behaviours:ei([ha.config({mode:"cyclic",onEscape:$i=>(Za($i,vS),I.some(!0)),useTabstopAt:$i=>!E5($i)&&(vr($i)!=="button"||Nr($i,"disabled")!=="disabled"),firstTabstop:1}),Tr.config({channel:`${P5}-${Be}`,updateState:Rn,initialData:l}),Ra.config({}),Ka("execute-on-form",Fr.concat([ly(Dp(),($i,yi)=>{ha.focusIn($i)}),Lo(q1(),($i,yi)=>{$i.getSystem().broadcastOn([OA],{newFocus:yi.event.newFocus})})])),I1.config({getRoot:()=>I.some(ko)}),Fa.config({}),xA({})]),components:[Bn.asSpec(),er.asSpec(),...br.map($i=>$i.asSpec()).toArray()]}),_i=()=>{b8(ko,Ht.get())},Pi={getId:x(Be),getRoot:x(ko),getFooter:()=>br.map($i=>$i.get(ko)),getBody:()=>er.get(ko),getFormWrapper:()=>{const $i=er.get(ko);return Xs.getCurrent($i).getOr($i)},toggleFullscreen:_i},Ao=zs(Pi,N.redial,Xr);return{dialog:ko,instanceApi:Ao}};var ZS=tinymce.util.Tools.resolve("tinymce.util.URI");const tie=l=>{const N=qe=>{l.getSystem().isConnected()&&qe(l)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");N(ft=>{sa(ft,T7,{message:qe})})},unblock:()=>{N(qe=>{Za(qe,C7)})},close:()=>{N(qe=>{Za(qe,vS)})},sendMessage:qe=>{N(ft=>{ft.getSystem().broadcastOn([l$],qe)})}}},x8=["insertContent","setContent","execCommand","close","block","unblock"],Zy=l=>u(l)&&x8.indexOf(l.mceAction)!==-1,nQ=l=>!Zy(l)&&u(l)&&ht(l,"mceAction"),rQ=(l,N,W)=>{switch(W.mceAction){case"insertContent":l.insertContent(W.content);break;case"setContent":l.setContent(W.content);break;case"execCommand":const fe=w(W.ui)?W.ui:!1;l.execCommand(W.cmd,fe,W.value);break;case"close":N.close();break;case"block":N.block(W.message);break;case"unblock":N.unblock();break}},oQ=(l,N,W,fe)=>{const Se=Li("dialog"),Be=fp(l.title,Se,fe),qe=$v(l),ft=l.buttons.bind(jr=>jr.length===0?I.none():I.some(di({buttons:jr},Se,fe))),yt=bO(()=>Fr,F0(()=>br,fe.shared.providers,N)),Lt={...l.height.fold(()=>({}),jr=>({height:jr+"px","max-height":jr+"px"})),...l.width.fold(()=>({}),jr=>({width:jr+"px","max-width":jr+"px"}))},Ht=l.width.isNone()&&l.height.isNone()?["tox-dialog--width-lg"]:[],fn=new ZS(l.url,{base_uri:new ZS(window.location.href)}),Rn=`${fn.protocol}://${fn.host}${fn.port?":"+fn.port:""}`,Bn=Ol(),er=(jr,Ro)=>I.some(Ro),cr=[Tr.config({channel:`${P5}-${Se}`,updateState:er,initialData:l}),Ka("messages",[wc(()=>{const jr=ud(Nt.fromDom(window),"message",Ro=>{if(fn.isSameOrigin(new ZS(Ro.raw.origin))){const ko=Ro.raw.data;Zy(ko)?rQ(W,Fr,ko):nQ(ko)&&l.onMessage(Fr,ko)}});Bn.set(jr)}),xg(Bn.clear)]),Ad.config({channels:{[l$]:{onReceive:(jr,Ro)=>{qa(jr.element,"iframe").each(ko=>{const _i=ko.dom.contentWindow;a(_i)&&_i.postMessage(Ro,Rn)})}}}})],br=Qy({id:Se,header:Be,body:qe,footer:ft,extraClasses:Ht,extraBehaviours:cr,extraStyles:Lt},yt,fe),Fr=tie(br);return{dialog:br,instanceApi:Fr}},iQ=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=()=>{fd.hide(Lt),Se()},qe=ml(j5({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",l)),ft=Sm(),yt=Hg(Be,N.providers),Lt=ka(ru({lazySink:()=>N.getSink(),header:Om(ft,yt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,Be)],eventOrder:{}}));fd.show(Lt);const Ht=qe.get(Lt);Ra.focus(Ht)}}},nie=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=Rn=>{fd.hide(Ht),Se(Rn)},qe=ml(j5({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",l)),ft=j5({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",l),yt=Sm(),Lt=Hg(()=>Be(!1),N.providers),Ht=ka(ru({lazySink:()=>N.getSink(),header:Om(yt,Lt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,()=>Be(!1)),Lo(v5,()=>Be(!0))],eventOrder:{}}));fd.show(Ht);const fn=qe.get(Ht);Ra.focus(fn)}}},Ps=(l,N)=>Mt(Rt("data",N,l)),xo=l=>f5(l,".tox-alert-dialog")||f5(l,".tox-confirm-dialog"),Ji=(l,N,W)=>N&&W?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(l.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:fe=>ix(l,fe.element).map(Be=>({bounds:Hw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:Tc(Be.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})],Ba=l=>{const N=l.editor,W=Qw(N),fe=iQ(l.backstages.dialog),Se=nie(l.backstages.dialog),Be=(er,cr,Xr)=>{if(!y(cr)){if(cr.inline==="toolbar")return Lt(er,l.backstages.popup.shared.anchors.inlineDialog(),Xr,cr);if(cr.inline==="bottom")return Ht(er,l.backstages.popup.shared.anchors.inlineBottomDialog(),Xr,cr);if(cr.inline==="cursor")return Lt(er,l.backstages.popup.shared.anchors.cursor(),Xr,cr)}return yt(er,Xr)},qe=(er,cr)=>ft(er,cr),ft=(er,cr)=>{const Xr=br=>{const Fr=oQ(br,{closeWindow:()=>{fd.hide(Fr.dialog),cr(Fr.instanceApi)}},N,l.backstages.dialog);return fd.show(Fr.dialog),Fr.instanceApi};return At.openUrl(Xr,er)},yt=(er,cr)=>{const Xr=(br,Fr,jr)=>{const Ro=Fr,_i=Su({dataValidator:jr,initialData:Ro,internalDialog:br},{redial:At.redial,closeWindow:()=>{fd.hide(_i.dialog),cr(_i.instanceApi)}},l.backstages.dialog);return fd.show(_i.dialog),_i.instanceApi.setData(Ro),_i.instanceApi};return At.open(Xr,er)},Lt=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),(!W||!Ao)&&fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),...Ji(N,W,Ao)]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>{const hl=N.inline?Lr():Nt.fromDom(N.getContainer()),Ui=cl(hl);return I.some(Ui)};return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),(!W||!Ao)&&(fc.refresh(ks),N.on("ResizeEditor",yi)),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)},Ht=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor ScrollWindow ElementScroll",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(N.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:hl=>ix(N,hl.element).map(Ko=>({bounds:Hw(Ko),optScrollEnv:I.some({currentScrollTop:Ko.element.dom.scrollTop,scrollElmTop:Tc(Ko.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>l.backstages.popup.shared.getSink().toOptional().bind(hl=>{const Ui=ix(N,hl.element),Ko=15,Oi=Ui.map(fa=>Hw(fa)).getOr(ts()),La=cl(Nt.fromDom(N.getContentAreaContainer())),_a=nc(La,Oi);return I.some(vs(_a.x,_a.y,_a.width,_a.height-Ko))});return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),fc.refresh(ks),N.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",yi),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)};return{open:Be,openUrl:qe,alert:(er,cr)=>{fe.open(er,cr)},close:er=>{er.close()},confirm:(er,cr)=>{Se.open(er,cr)}}},mf=l=>{WB(l),xX(l),fre(l)};var Ap=()=>{zc.add("silver",l=>{mf(l);let N=()=>ts();const{dialogs:W,popups:fe,renderUI:Se}=uoe(l,{getPopupSinkBounds:()=>N()}),Be=()=>{const Lt=Se();return ix(l,fe.getMothership().element).each(fn=>{N=()=>Hw(fn)}),Lt};uG.register(l,fe.backstage.shared);const qe=Ba({editor:l,backstages:{popup:fe.backstage,dialog:W.backstage}}),ft=ds(),yt=()=>_Y(l,{backstage:fe.backstage},fe.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:yt}})};Ap()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-code":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"export-pdf":'',"export-word":'',"import-word":'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=p=>{let v=p;return{get:()=>v,set:C=>{v=C}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=p=>p.dispatch("ResizeEditor"),E=p=>v=>v.options.get(p),d=p=>{const v=p.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},s=E("min_height"),n=E("max_height"),u=E("autoresize_overflow_padding"),b=E("autoresize_bottom_margin"),i=p=>p.plugins.fullscreen&&p.plugins.fullscreen.isFullscreen(),S=(p,v)=>{const _=p.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(p,v,_,O)=>{var C;const x=parseInt((C=p.getStyle(v,_,O))!==null&&C!==void 0?C:"",10);return isNaN(x)?0:x},y=p=>{if((p==null?void 0:p.type.toLowerCase())==="setcontent"){const v=p;return v.selection===!0||v.paste===!0}else return!1},m=(p,v,_,O)=>{var C;const x=p.dom,R=p.getDoc();if(!R)return;if(i(p)){S(p,!0);return}const M=R.documentElement,T=O?O():u(p),P=(C=s(p))!==null&&C!==void 0?C:p.getElement().offsetHeight;let A=P;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=p.getContainer().offsetHeight,z=p.getContentAreaContainer().offsetHeight,$=I-z;k+$>P&&(A=k+$);const Q=n(p);Q&&A>Q?(A=Q,S(p,!0)):S(p,!1);const j=v.get();if(j.set&&(p.dom.setStyles(p.getDoc().documentElement,{"min-height":0}),p.dom.setStyles(p.getBody(),{"min-height":"inherit"})),A!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=A-j.totalHeight;if(x.setStyle(p.getContainer(),"height",A+"px"),v.set({totalHeight:A,contentHeight:k,set:!0}),f(p),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=p.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}p.hasFocus()&&y(_)&&p.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&m(p,v,_,O)}},a=(p,v)=>{const _=()=>b(p);p.on("init",O=>{const C=u(p),x=p.dom;x.setStyles(p.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C,"min-height":0}):x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C}),m(p,v,O,_)}),p.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",O=>{m(p,v,O,_)})},c=(p,v)=>{p.addCommand("mceAutoResize",()=>{m(p,v)})};var h=()=>{e.add("autoresize",p=>{if(d(p),p.options.isSet("resize")||p.options.set("resize",!1),!p.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});c(p,v),a(p,v)}})};h()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(D,k,I)=>{const z=k==="UL"?"InsertUnorderedList":"InsertOrderedList";D.execCommand(z,!1,I===!1?null:{"list-style-type":I})},o=D=>{D.addCommand("ApplyUnorderedListStyle",(k,I)=>{e(D,"UL",I["list-style-type"])}),D.addCommand("ApplyOrderedListStyle",(k,I)=>{e(D,"OL",I["list-style-type"])})},f=D=>k=>k.options.get(D),E=D=>{const k=D.options.register;k("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),k("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})},d=f("advlist_number_styles"),s=f("advlist_bullet_styles"),n=D=>D==null,u=D=>!n(D);var b=tinymce.util.Tools.resolve("tinymce.util.Tools");class i{constructor(k,I){this.tag=k,this.value=I}static some(k){return new i(!0,k)}static none(){return i.singletonNone}fold(k,I){return this.tag?I(this.value):k()}isSome(){return this.tag}isNone(){return!this.tag}map(k){return this.tag?i.some(k(this.value)):i.none()}bind(k){return this.tag?k(this.value):i.none()}exists(k){return this.tag&&k(this.value)}forall(k){return!this.tag||k(this.value)}filter(k){return!this.tag||k(this.value)?this:i.none()}getOr(k){return this.tag?this.value:k}or(k){return this.tag?this:k}getOrThunk(k){return this.tag?this.value:k()}orThunk(k){return this.tag?this:k()}getOrDie(k){if(this.tag)return this.value;throw new Error(k??"Called getOrDie on None")}static from(k){return u(k)?i.some(k):i.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(k){this.tag&&k(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}i.singletonNone=new i(!1);const S=(D,k,I)=>{for(let z=0,$=D.length;z<$;z++){const Q=D[z];if(k(Q,z))return i.some(Q);if(I(Q,z))break}return i.none()},w=D=>/\btox\-/.test(D.className),y=(D,k)=>D.dom.isChildOf(k,D.getBody()),m=D=>k=>u(k)&&D.test(k.nodeName),a=m(/^(OL|UL|DL)$/),c=m(/^(TH|TD)$/),h=(D,k,I)=>S(k,z=>a(z)&&!w(z),c).exists(z=>z.nodeName===I&&y(D,z)),p=D=>{const k=D.dom.getParent(D.selection.getNode(),"ol,ul"),I=D.dom.getStyle(k,"listStyleType");return i.from(I)},v=(D,k)=>k!==null&&!D.dom.isEditable(k),_=(D,k)=>{const I=D.dom.getParent(k,"ol,ul,dl");return v(D,I)&&D.selection.isEditable()},O=(D,k)=>{const I=D.selection.getNode();return k({parents:D.dom.getParents(I),element:I}),D.on("NodeChange",k),()=>D.off("NodeChange",k)},C=D=>D.replace(/\-/g," ").replace(/\b\w/g,k=>k.toUpperCase()),x=D=>n(D)||D==="default"?"":D,R=(D,k)=>I=>{const z=(Q,j)=>{const U=Q.selection.getStart(!0);I.setActive(h(Q,j,k)),I.setEnabled(!_(Q,U)&&Q.selection.isEditable())};return O(D,Q=>z(D,Q.parents))},M=(D,k,I,z,$,Q)=>{D.ui.registry.addSplitButton(k,{tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:j=>{const U=b.map(Q,X=>{const te=$==="OL"?"num":"bull",Z=X==="disc"||X==="decimal"?"default":X,K=x(X),re=C(X);return{type:"choiceitem",value:K,icon:"list-"+te+"-"+Z,text:re}});j(U)},onAction:()=>D.execCommand(z),onItemAction:(j,U)=>{e(D,$,U)},select:j=>p(D).map(X=>j===X).getOr(!1),onSetup:R(D,$)})},T=(D,k,I,z,$,Q)=>{D.ui.registry.addToggleButton(k,{active:!1,tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",onSetup:R(D,$),onAction:()=>D.queryCommandState(z)||Q===""?D.execCommand(z):e(D,$,Q)})},P=(D,k,I,z,$,Q)=>{Q.length>1?M(D,k,I,z,$,Q):T(D,k,I,z,$,x(Q[0]))},A=D=>{P(D,"numlist","Numbered list","InsertOrderedList","OL",d(D)),P(D,"bullist","Bullet list","InsertUnorderedList","UL",s(D))};var L=()=>{t.add("advlist",D=>{D.hasPlugin("lists")?(E(D),A(D),o(D)):console.error("Please use the Lists plugin together with the List Styles plugin.")})};L()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=()=>/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g,o=Z=>K=>K.options.get(Z),f=Z=>{const K=Z.options.register;K("autolink_pattern",{processor:"regexp",default:new RegExp("^"+e().source+"$","i")}),K("link_default_target",{processor:"string"}),K("link_default_protocol",{processor:"string",default:"https"})},E=o("autolink_pattern"),d=o("link_default_target"),s=o("link_default_protocol"),n=o("allow_unsafe_link_target"),u=(Z,K,re)=>{var q;return re(Z,K.prototype)?!0:((q=Z.constructor)===null||q===void 0?void 0:q.name)===K.name},b=Z=>{const K=typeof Z;return Z===null?"null":K==="object"&&Array.isArray(Z)?"array":K==="object"&&u(Z,String,(re,q)=>q.isPrototypeOf(re))?"string":K},i=Z=>K=>b(K)===Z,S=Z=>K=>Z===K,w=i("string"),y=S(void 0),m=Z=>Z==null,a=Z=>!m(Z),c=Z=>K=>!Z(K),h=Object.hasOwnProperty,p=(Z,K)=>h.call(Z,K),v=(Z,K,re)=>K===""||Z.length>=K.length&&Z.substr(re,re+K.length)===K,_=(Z,K,re=0,q)=>{const Y=Z.indexOf(K,re);return Y!==-1?y(q)?!0:Y+K.length<=q:!1},O=(Z,K)=>v(Z,K,0),C="\uFEFF",x=Z=>Z===C,R=Z=>Z.replace(/\uFEFF/g,"");var M=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const T=Z=>Z.nodeType===3,P=Z=>Z.nodeType===1,A=Z=>/^[(\[{ \u00a0]$/.test(Z),L=Z=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Z),D=Z=>/[?!,.;:]/.test(Z),k=(Z,K,re)=>{for(let q=K-1;q>=0;q--){const Y=Z.charAt(q);if(!x(Y)&&re(Y))return q}return-1},I=(Z,K)=>{let re=Z,q=K;for(;P(re)&&re.childNodes[q];)re=re.childNodes[q],q=T(re)?re.data.length:re.childNodes.length;return{container:re,offset:q}},z=(Z,K)=>{var re;const q=Z.schema.getVoidElements(),Y=E(Z),{dom:ee,selection:me}=Z;if(ee.getParent(me.getNode(),"a[href]")!==null)return null;const pe=me.getRng(),se=M(ee,Ie=>ee.isBlock(Ie)||p(q,Ie.nodeName.toLowerCase())||ee.getContentEditable(Ie)==="false"),{container:ae,offset:ce}=I(pe.endContainer,pe.endOffset),de=(re=ee.getParent(ae,ee.isBlock))!==null&&re!==void 0?re:ee.getRoot(),ye=se.backwards(ae,ce+K,(Ie,ze)=>{const De=Ie.data,Qe=k(De,ze,c(A));return Qe===-1||D(De[Qe])?Qe:Qe+1},de);if(!ye)return null;let ve=ye.container;const _e=se.backwards(ye.container,ye.offset,(Ie,ze)=>{ve=Ie;const De=k(Ie.data,ze,A);return De===-1?De:De+1},de),we=ee.createRng();_e?we.setStart(_e.container,_e.offset):we.setStart(ve,0),we.setEnd(ye.container,ye.offset);const Pe=R(we.toString()).match(Y);if(Pe){let Ie=Pe[0];return O(Ie,"www.")?Ie=s(Z)+"://"+Ie:_(Ie,"@")&&!L(Ie)&&(Ie="mailto:"+Ie),{rng:we,url:Ie}}else return null},$=(Z,K)=>{const{dom:re,selection:q}=Z,{rng:Y,url:ee}=K,me=q.getBookmark();q.setRng(Y);const pe="createlink",se={command:pe,ui:!1,value:ee};if(!Z.dispatch("BeforeExecCommand",se).isDefaultPrevented()){Z.getDoc().execCommand(pe,!1,ee),Z.dispatch("ExecCommand",se);const ce=d(Z);if(w(ce)){const de=q.getNode();re.setAttrib(de,"target",ce),ce==="_blank"&&!n(Z)&&re.setAttrib(de,"rel","noopener")}}q.moveToBookmark(me),Z.nodeChanged()},Q=Z=>{const K=z(Z,-1);a(K)&&$(Z,K)},j=Q,U=Z=>{const K=z(Z,0);a(K)&&$(Z,K)},X=Z=>{Z.on("keydown",K=>{K.keyCode===13&&!K.isDefaultPrevented()&&U(Z)}),Z.on("keyup",K=>{K.keyCode===32?Q(Z):(K.keyCode===48&&K.shiftKey||K.keyCode===221)&&j(Z)})};var te=()=>{t.add("autolink",Z=>{f(Z),X(Z)})};te()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(wt,Kt,En)=>{var pr;return En(wt,Kt.prototype)?!0:((pr=wt.constructor)===null||pr===void 0?void 0:pr.name)===Kt.name},o=wt=>{const Kt=typeof wt;return wt===null?"null":Kt==="object"&&Array.isArray(wt)?"array":Kt==="object"&&e(wt,String,(En,pr)=>pr.isPrototypeOf(En))?"string":Kt},f=wt=>Kt=>o(Kt)===wt,E=wt=>Kt=>typeof Kt===wt,d=f("string"),s=f("object"),n=f("array"),u=E("boolean"),b=wt=>wt==null,i=wt=>!b(wt),S=E("function"),w=E("number"),y=()=>{},m=(wt,Kt)=>En=>wt(Kt(En)),a=wt=>()=>wt,c=(wt,Kt)=>wt===Kt;function h(wt,...Kt){return(...En)=>{const pr=Kt.concat(En);return wt.apply(null,pr)}}const p=wt=>Kt=>!wt(Kt),v=a(!1);class _{constructor(Kt,En){this.tag=Kt,this.value=En}static some(Kt){return new _(!0,Kt)}static none(){return _.singletonNone}fold(Kt,En){return this.tag?En(this.value):Kt()}isSome(){return this.tag}isNone(){return!this.tag}map(Kt){return this.tag?_.some(Kt(this.value)):_.none()}bind(Kt){return this.tag?Kt(this.value):_.none()}exists(Kt){return this.tag&&Kt(this.value)}forall(Kt){return!this.tag||Kt(this.value)}filter(Kt){return!this.tag||Kt(this.value)?this:_.none()}getOr(Kt){return this.tag?this.value:Kt}or(Kt){return this.tag?this:Kt}getOrThunk(Kt){return this.tag?this.value:Kt()}orThunk(Kt){return this.tag?this:Kt()}getOrDie(Kt){if(this.tag)return this.value;throw new Error(Kt??"Called getOrDie on None")}static from(Kt){return i(Kt)?_.some(Kt):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Kt){this.tag&&Kt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Array.prototype.slice,C=Array.prototype.indexOf,x=Array.prototype.push,R=(wt,Kt)=>C.call(wt,Kt),M=(wt,Kt)=>R(wt,Kt)>-1,T=(wt,Kt)=>{for(let En=0,pr=wt.length;En{const En=wt.length,pr=new Array(En);for(let wr=0;wr{for(let En=0,pr=wt.length;En{const En=[];for(let pr=0,wr=wt.length;pr{if(wt.length===0)return[];{let En=Kt(wt[0]);const pr=[];let wr=[];for(let uo=0,Bi=wt.length;uo(A(wt,(pr,wr)=>{En=Kt(En,pr,wr)}),En),I=(wt,Kt,En)=>{for(let pr=0,wr=wt.length;prI(wt,Kt,v),$=wt=>{const Kt=[];for(let En=0,pr=wt.length;En$(P(wt,Kt)),j=wt=>{const Kt=O.call(wt,0);return Kt.reverse(),Kt},U=(wt,Kt)=>Kt>=0&&KtU(wt,0),te=wt=>U(wt,wt.length-1),Z=(wt,Kt)=>{const En=[],pr=S(Kt)?wr=>T(En,uo=>Kt(uo,wr)):wr=>M(En,wr);for(let wr=0,uo=wt.length;wrwt.exists(pr=>En(pr,Kt)),re=(wt,Kt,En=c)=>q(wt,Kt,En).getOr(wt.isNone()&&Kt.isNone()),q=(wt,Kt,En)=>wt.isSome()&&Kt.isSome()?_.some(En(wt.getOrDie(),Kt.getOrDie())):_.none(),Y=8,ee=11,me=1,pe=3,se=(wt,Kt)=>{const pr=(Kt||document).createElement("div");if(pr.innerHTML=wt,!pr.hasChildNodes()||pr.childNodes.length>1){const wr="HTML does not have a single root node";throw console.error(wr,wt),new Error(wr)}return de(pr.childNodes[0])},ae=(wt,Kt)=>{const pr=(Kt||document).createElement(wt);return de(pr)},ce=(wt,Kt)=>{const pr=(Kt||document).createTextNode(wt);return de(pr)},de=wt=>{if(wt==null)throw new Error("Node cannot be null or undefined");return{dom:wt}},ve={fromHtml:se,fromTag:ae,fromText:ce,fromDom:de,fromPoint:(wt,Kt,En)=>_.from(wt.dom.elementFromPoint(Kt,En)).map(de)},_e=(wt,Kt)=>{const En=wt.dom;if(En.nodeType!==me)return!1;{const pr=En;if(pr.matches!==void 0)return pr.matches(Kt);if(pr.msMatchesSelector!==void 0)return pr.msMatchesSelector(Kt);if(pr.webkitMatchesSelector!==void 0)return pr.webkitMatchesSelector(Kt);if(pr.mozMatchesSelector!==void 0)return pr.mozMatchesSelector(Kt);throw new Error("Browser lacks native selectors")}},we=(wt,Kt)=>wt.dom===Kt.dom,Te=(wt,Kt)=>{const En=wt.dom,pr=Kt.dom;return En===pr?!1:En.contains(pr)},Pe=_e,Ie=typeof window<"u"?window:Function("return this;")(),ze=(wt,Kt)=>{let En=Kt??Ie;for(let pr=0;pr{const En=wt.split(".");return ze(En,Kt)},Qe=(wt,Kt)=>De(wt,Kt),Ve=(wt,Kt)=>{const En=Qe(wt,Kt);if(En==null)throw new Error(wt+" not available on this browser");return En},$e=Object.getPrototypeOf,Oe=wt=>Ve("HTMLElement",wt),ke=wt=>{const Kt=De("ownerDocument.defaultView",wt);return s(wt)&&(Oe(Kt).prototype.isPrototypeOf(wt)||/^HTML\w*Element$/.test($e(wt).constructor.name))},Re=wt=>wt.dom.nodeName.toLowerCase(),We=wt=>wt.dom.nodeType,Ue=wt=>Kt=>We(Kt)===wt,Ze=wt=>We(wt)===Y||Re(wt)==="#comment",Ye=wt=>Je(wt)&&ke(wt.dom),Je=Ue(me),Me=Ue(pe),Fe=Ue(ee),je=wt=>Kt=>Je(Kt)&&Re(Kt)===wt,tt=wt=>_.from(wt.dom.parentNode).map(ve.fromDom),ot=wt=>_.from(wt.dom.parentElement).map(ve.fromDom),Ge=wt=>_.from(wt.dom.nextSibling).map(ve.fromDom),ht=wt=>P(wt.dom.childNodes,ve.fromDom),pt=(wt,Kt)=>{const En=wt.dom.childNodes;return _.from(En[Kt]).map(ve.fromDom)},St=wt=>pt(wt,0),Ft=wt=>pt(wt,wt.dom.childNodes.length-1),zt=wt=>Fe(wt)&&i(wt.dom.host),Yt=wt=>ve.fromDom(wt.dom.getRootNode()),ln=wt=>{const Kt=Yt(wt);return zt(Kt)?_.some(Kt):_.none()},tn=wt=>ve.fromDom(wt.dom.host),Et=wt=>{const Kt=Me(wt)?wt.dom.parentNode:wt.dom;if(Kt==null||Kt.ownerDocument===null)return!1;const En=Kt.ownerDocument;return ln(ve.fromDom(Kt)).fold(()=>En.body.contains(Kt),m(Et,tn))};var Ot=(wt,Kt,En,pr,wr)=>wt(En,pr)?_.some(En):S(wr)&&wr(En)?_.none():Kt(En,pr,wr);const cn=(wt,Kt,En)=>{let pr=wt.dom;const wr=S(En)?En:v;for(;pr.parentNode;){pr=pr.parentNode;const uo=ve.fromDom(pr);if(Kt(uo))return _.some(uo);if(wr(uo))break}return _.none()},Cn=(wt,Kt,En)=>Ot((wr,uo)=>uo(wr),cn,wt,Kt,En),Pn=(wt,Kt,En)=>cn(wt,pr=>_e(pr,Kt),En),Sn=(wt,Kt,En)=>Ot((wr,uo)=>_e(wr,uo),Pn,wt,Kt,En),vt=wt=>Sn(wt,"[contenteditable]"),xt=(wt,Kt=!1)=>Et(wt)?wt.dom.isContentEditable:vt(wt).fold(a(Kt),En=>st(En)==="true"),st=wt=>wt.dom.contentEditable,bt=(wt,Kt)=>{tt(wt).each(pr=>{pr.dom.insertBefore(Kt.dom,wt.dom)})},Vt=(wt,Kt)=>{Ge(wt).fold(()=>{tt(wt).each(wr=>{it(wr,Kt)})},pr=>{bt(pr,Kt)})},Dt=(wt,Kt)=>{St(wt).fold(()=>{it(wt,Kt)},pr=>{wt.dom.insertBefore(Kt.dom,pr.dom)})},it=(wt,Kt)=>{wt.dom.appendChild(Kt.dom)},at=(wt,Kt)=>{A(Kt,En=>{bt(wt,En)})},Bt=(wt,Kt)=>{A(Kt,En=>{it(wt,En)})},_t=wt=>{wt.dom.textContent="",A(ht(wt),Kt=>{qt(Kt)})},qt=wt=>{const Kt=wt.dom;Kt.parentNode!==null&&Kt.parentNode.removeChild(Kt)};var en=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Jt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Zt=tinymce.util.Tools.resolve("tinymce.util.VK");const Nt=wt=>P(wt,ve.fromDom),sn=Object.keys,rn=(wt,Kt)=>{const En=sn(wt);for(let pr=0,wr=En.length;pr(Kt,En)=>{wt[En]=Kt},wn=(wt,Kt,En,pr)=>{rn(wt,(wr,uo)=>{(Kt(wr,uo)?En:pr)(wr,uo)})},An=(wt,Kt)=>{const En={};return wn(wt,Kt,_n(En),y),En},Kn=(wt,Kt,En)=>{if(d(En)||u(En)||w(En))wt.setAttribute(Kt,En+"");else throw console.error("Invalid call to Attribute.set. Key ",Kt,":: Value ",En,":: Element ",wt),new Error("Attribute value was not simple")},fr=(wt,Kt)=>{const En=wt.dom;rn(Kt,(pr,wr)=>{Kn(En,wr,pr)})},Un=wt=>k(wt.dom.attributes,(Kt,En)=>(Kt[En.name]=En.value,Kt),{}),Zn=(wt,Kt)=>ve.fromDom(wt.dom.cloneNode(Kt)),tr=wt=>Zn(wt,!0),Br=(wt,Kt)=>{const En=ve.fromTag(Kt),pr=Un(wt);return fr(En,pr),En},$r=(wt,Kt)=>{const En=Br(wt,Kt);Vt(wt,En);const pr=ht(wt);return Bt(En,pr),qt(wt),En};var vr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qn=tinymce.util.Tools.resolve("tinymce.util.Tools");const gr=wt=>Kt=>i(Kt)&&Kt.nodeName.toLowerCase()===wt,sr=wt=>Kt=>i(Kt)&&wt.test(Kt.nodeName),lr=wt=>i(wt)&&wt.nodeType===3,zr=wt=>i(wt)&&wt.nodeType===1,Vr=sr(/^(OL|UL|DL)$/),eo=sr(/^(OL|UL)$/),Jr=gr("ol"),Yr=sr(/^(LI|DT|DD)$/),to=sr(/^(DT|DD)$/),co=sr(/^(TH|TD)$/),Fo=gr("br"),_o=wt=>{var Kt;return((Kt=wt.parentNode)===null||Kt===void 0?void 0:Kt.firstChild)===wt},$o=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getTextBlockElements(),Mo=(wt,Kt)=>i(wt)&&wt.nodeName in Kt,pi=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getVoidElements(),Hn=(wt,Kt)=>Fo(Kt)?wt.isBlock(Kt.nextSibling)&&!Fo(Kt.previousSibling):!1,ar=(wt,Kt,En)=>{const pr=wt.isEmpty(Kt);return En&&wt.select("span[data-mce-type=bookmark]",Kt).length>0?!1:pr},Dr=(wt,Kt)=>wt.isChildOf(Kt,wt.getRoot()),Sr=wt=>Kt=>Kt.options.get(wt),Zr=wt=>{const Kt=wt.options.register;Kt("lists_indent_on_tab",{processor:"boolean",default:!0})},go=Sr("lists_indent_on_tab"),oo=Sr("forced_root_block"),io=Sr("forced_root_block_attrs"),Do=(wt,Kt,En={})=>{const pr=wt.dom,wr=wt.schema.getBlockElements(),uo=pr.createFragment(),Bi=oo(wt),ya=io(wt);let Ni,Qi,Ws=!1;for(Qi=pr.create(Bi,{...ya,...En.style?{style:En.style}:{}}),Mo(Kt.firstChild,wr)||uo.appendChild(Qi);Ni=Kt.firstChild;){const nl=Ni.nodeName;!Ws&&(nl!=="SPAN"||Ni.getAttribute("data-mce-type")!=="bookmark")&&(Ws=!0),Mo(Ni,wr)?(uo.appendChild(Ni),Qi=null):(Qi||(Qi=pr.create(Bi,ya),uo.appendChild(Qi)),Qi.appendChild(Ni))}return!Ws&&Qi&&Qi.appendChild(pr.create("br",{"data-mce-bogus":"1"})),uo},jn=vr.DOM,Rr=(wt,Kt,En)=>{const pr=Qi=>{const Ws=Qi.parentNode;Ws&&qn.each(wr,nl=>{Ws.insertBefore(nl,En.parentNode)}),jn.remove(Qi)},wr=jn.select('span[data-mce-type="bookmark"]',Kt),uo=Do(wt,En),Bi=jn.createRng();Bi.setStartAfter(En),Bi.setEndAfter(Kt);const ya=Bi.extractContents();for(let Qi=ya.firstChild;Qi;Qi=Qi.firstChild)if(Qi.nodeName==="LI"&&wt.dom.isEmpty(Qi)){jn.remove(Qi);break}wt.dom.isEmpty(ya)||jn.insertAfter(ya,Kt),jn.insertAfter(uo,Kt);const Ni=En.parentElement;Ni&&ar(wt.dom,Ni)&&pr(Ni),jn.remove(En),ar(wt.dom,Kt)&&jn.remove(Kt)},On=je("dd"),Yn=je("dt"),ir=(wt,Kt)=>{On(Kt)?$r(Kt,"dt"):Yn(Kt)&&ot(Kt).each(En=>Rr(wt,En.dom,Kt.dom))},kr=wt=>{Yn(wt)&&$r(wt,"dd")},Er=(wt,Kt,En)=>{Kt==="Indent"?A(En,kr):A(En,pr=>ir(wt,pr))},Gt=(wt,Kt)=>{if(lr(wt))return{container:wt,offset:Kt};const En=en.getNode(wt,Kt);return lr(En)?{container:En,offset:Kt>=wt.childNodes.length?En.data.length:0}:En.previousSibling&&lr(En.previousSibling)?{container:En.previousSibling,offset:En.previousSibling.data.length}:En.nextSibling&&lr(En.nextSibling)?{container:En.nextSibling,offset:0}:{container:wt,offset:Kt}},on=wt=>{const Kt=wt.cloneRange(),En=Gt(wt.startContainer,wt.startOffset);Kt.setStart(En.container,En.offset);const pr=Gt(wt.endContainer,wt.endOffset);return Kt.setEnd(pr.container,pr.offset),Kt},an=["OL","UL","DL"],Tn=an.join(","),zn=(wt,Kt)=>{const En=Kt||wt.selection.getStart(!0);return wt.dom.getParent(En,Tn,zo(wt,En))},Gn=(wt,Kt)=>i(wt)&&Kt.length===1&&Kt[0]===wt,Lr=wt=>L(wt.querySelectorAll(Tn),Vr),Ur=wt=>{const Kt=zn(wt),En=wt.selection.getSelectedBlocks();return Gn(Kt,En)?Lr(Kt):L(En,pr=>Vr(pr)&&Kt!==pr)},qr=(wt,Kt)=>{const En=qn.map(Kt,pr=>{const wr=wt.dom.getParent(pr,"li,dd,dt",zo(wt,pr));return wr||pr});return Z(En)},Cr=wt=>{const Kt=wt.selection.getSelectedBlocks();return L(qr(wt,Kt),Yr)},wo=wt=>L(Cr(wt),to),Nr=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"TD,TH");return En.length>0?En[0]:wt.getBody()},Eo=(wt,Kt)=>!Vr(Kt)&&!Yr(Kt)&&T(an,En=>wt.isValidChild(Kt.nodeName,En)),zo=(wt,Kt)=>{const En=wt.dom.getParents(Kt,wt.dom.isBlock),pr=uo=>uo.nodeName.toLowerCase()!==oo(wt);return z(En,uo=>pr(uo)&&Eo(wt.schema,uo)).getOr(wt.getBody())},Qt=wt=>tt(wt).exists(Kt=>Yr(Kt.dom)&&St(Kt).exists(En=>!Vr(En.dom))&&Ft(Kt).exists(En=>!Vr(En.dom))),Mn=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt));return te(En)},Fn=wt=>{const Kt=Mn(wt,wt.selection.getStart()),En=L(wt.selection.getSelectedBlocks(),eo);return Kt.toArray().concat(En)},dr=wt=>{const Kt=wt.selection.getStart();return wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt))},xr=wt=>{const Kt=Fn(wt),En=dr(wt);return z(En,pr=>Qt(ve.fromDom(pr))).fold(()=>Oo(wt,Kt),pr=>[pr])},Oo=(wt,Kt)=>{const En=P(Kt,pr=>Mn(wt,pr).getOr(pr));return Z(En)},mi=wt=>/\btox\-/.test(wt.className),Di=(wt,Kt)=>I(wt,Vr,co).exists(En=>En.nodeName===Kt&&!mi(En)),To=(wt,Kt)=>Kt!==null&&!wt.dom.isEditable(Kt),Ia=wt=>{const Kt=zn(wt);return To(wt,Kt)},Ds=(wt,Kt)=>{const En=wt.dom.getParent(Kt,"ol,ul,dl");return To(wt,En)},fs=(wt,Kt)=>{const En=wt.selection.getNode();return Kt({parents:wt.dom.getParents(En),element:En}),wt.on("NodeChange",Kt),()=>wt.off("NodeChange",Kt)},zi=(wt,Kt)=>{const pr=(Kt||document).createDocumentFragment();return A(wt,wr=>{pr.appendChild(wr.dom)}),ve.fromDom(pr)},yl=(wt,Kt,En)=>wt.dispatch("ListMutation",{action:Kt,element:En}),yf=(wt=>Kt=>Kt.replace(wt,""))(/^\s+|\s+$/g),il=wt=>wt.length>0,nf=wt=>!il(wt),nh=wt=>wt.style!==void 0&&S(wt.style.getPropertyValue),gp=(wt,Kt,En)=>{if(!d(En))throw console.error("Invalid call to CSS.set. Property ",Kt,":: Value ",En,":: Element ",wt),new Error("CSS value must be a string: "+En);nh(wt)&&wt.style.setProperty(Kt,En)},Qs=(wt,Kt,En)=>{const pr=wt.dom;gp(pr,Kt,En)},bh=wt=>Pe(wt,"OL,UL"),Bl=wt=>Pe(wt,"LI"),Tc=wt=>St(wt).exists(bh),iu=wt=>Ft(wt).exists(bh),au=wt=>"listAttributes"in wt,zf=wt=>"isComment"in wt,_s=wt=>"isFragment"in wt,ma=wt=>wt.depth>0,mu=wt=>wt.isSelected,Uc=wt=>{const Kt=ht(wt),En=iu(wt)?Kt.slice(0,-1):Kt;return P(En,tr)},Kf=(wt,Kt,En)=>tt(wt).filter(Je).map(pr=>({depth:Kt,dirty:!1,isSelected:En,content:Uc(wt),itemAttributes:Un(wt),listAttributes:Un(pr),listType:Re(pr),isInPreviousLi:!1})),Al=(wt,Kt)=>{it(wt.item,Kt.list)},Wl=wt=>{for(let Kt=1;Kt{q(te(wt),X(Kt),Al)},Jf=(wt,Kt)=>{const En={list:ve.fromTag(Kt,wt),item:ve.fromTag("li",wt)};return it(En.list,En.item),En},Nf=(wt,Kt,En)=>{const pr=[];for(let wr=0;wr{for(let En=0;En{au(Kt)&&(fr(En.list,Kt.listAttributes),fr(En.item,Kt.itemAttributes)),Bt(En.item,Kt.content)})},Gh=(wt,Kt)=>{Re(wt.list)!==Kt.listType&&(wt.list=$r(wt.list,Kt.listType)),fr(wt.list,Kt.listAttributes)},ll=(wt,Kt,En)=>{const pr=ve.fromTag("li",wt);return fr(pr,Kt),Bt(pr,En),pr},Tu=(wt,Kt)=>{it(wt.list,Kt),wt.item=Kt},gu=(wt,Kt,En)=>{const pr=Kt.slice(0,En.depth);return te(pr).each(wr=>{if(au(En)){const uo=ll(wt,En.itemAttributes,En.content);Tu(wr,uo),Gh(wr,En)}else if(_s(En))Bt(wr.item,En.content);else{const uo=ve.fromHtml(``);it(wr.list,uo)}}),pr},ec=(wt,Kt,En)=>{const pr=Nf(wt,En,En.depth-Kt.length);return Wl(pr),Jl(pr,En),Ml(Kt,pr),Kt.concat(pr)},Dc=(wt,Kt)=>{let En=_.none();const pr=k(Kt,(wr,uo,Bi)=>zf(uo)?Bi===0?(En=_.some(uo),wr):gu(wt,wr,uo):uo.depth>wr.length?ec(wt,wr,uo):gu(wt,wr,uo),[]);return En.each(wr=>{const uo=ve.fromHtml(``);X(pr).each(Bi=>{Dt(Bi.list,uo)})}),X(pr).map(wr=>wr.list)},tc=(wt,Kt)=>{switch(wt){case"Indent":Kt.depth++;break;case"Outdent":Kt.depth--;break;case"Flatten":Kt.depth=0}Kt.dirty=!0},Lp=(wt,Kt)=>{au(wt)&&au(Kt)&&(wt.listType=Kt.listType,wt.listAttributes={...Kt.listAttributes})},rh=wt=>{wt.listAttributes=An(wt.listAttributes,(Kt,En)=>En!=="start")},rf=(wt,Kt)=>{const En=wt[Kt].depth,pr=uo=>uo.depth===En&&!uo.dirty,wr=uo=>uo.depthI(wt.slice(Kt+1),pr,wr))},of=wt=>(A(wt,(Kt,En)=>{rf(wt,En).fold(()=>{Kt.dirty&&au(Kt)&&rh(Kt)},pr=>Lp(Kt,pr))}),wt),bf=wt=>{let Kt=wt;return{get:()=>Kt,set:wr=>{Kt=wr}}},vu=(wt,Kt,En,pr)=>{var wr;if(Ze(pr))return[{depth:wt+1,content:(wr=pr.dom.nodeValue)!==null&&wr!==void 0?wr:"",dirty:!1,isSelected:!1,isComment:!0}];Kt.each(ya=>{we(ya.start,pr)&&En.set(!0)});const uo=Kf(pr,wt,En.get());Kt.each(ya=>{we(ya.end,pr)&&En.set(!1)});const Bi=Ft(pr).filter(bh).map(ya=>bl(wt,Kt,En,ya)).getOr([]);return uo.toArray().concat(Bi)},$d=(wt,Kt,En,pr)=>St(pr).filter(bh).fold(()=>vu(wt,Kt,En,pr),wr=>{const uo=k(ht(pr),(Bi,ya,Ni)=>{if(Ni===0)return Bi;if(Bl(ya))return Bi.concat(vu(wt,Kt,En,ya));{const Qi={isFragment:!0,depth:wt,content:[ya],isSelected:!1,dirty:!1,parentListType:Re(wr)};return Bi.concat(Qi)}},[]);return bl(wt,Kt,En,wr).concat(uo)}),bl=(wt,Kt,En,pr)=>Q(ht(pr),wr=>{const uo=bh(wr)?bl:$d,Bi=wt+1;return uo(Bi,Kt,En,wr)}),Zu=(wt,Kt)=>{const En=bf(!1),pr=0;return P(wt,wr=>({sourceList:wr,entries:bl(pr,Kt,En,wr)}))},Kh=(wt,Kt)=>{const En=of(Kt);return P(En,pr=>{const wr=zf(pr)?zi([ve.fromHtml(``)]):zi(pr.content),uo=au(pr)?pr.itemAttributes:{};return ve.fromDom(Do(wt,wr.dom,uo))})},Cu=(wt,Kt)=>{const En=of(Kt);return Dc(wt.contentDocument,En).toArray()},ed=(wt,Kt)=>Q(D(Kt,ma),En=>X(En).exists(ma)?Cu(wt,En):Kh(wt,En)),Bu=(wt,Kt)=>{A(L(wt,mu),En=>tc(Kt,En))},vd=wt=>{const Kt=P(Cr(wt),ve.fromDom);return q(z(Kt,p(Tc)),z(j(Kt),p(Tc)),(En,pr)=>({start:En,end:pr}))},cs=(wt,Kt,En)=>{const pr=Zu(Kt,vd(wt));A(pr,wr=>{Bu(wr.entries,En);const uo=ed(wt,wr.entries);A(uo,Bi=>{yl(wt,En==="Indent"?"IndentList":"OutdentList",Bi.dom)}),at(wr.sourceList,uo),qt(wr.sourceList)})},oh=(wt,Kt)=>{const En=Nt(xr(wt)),pr=Nt(wo(wt));let wr=!1;if(En.length||pr.length){const uo=wt.selection.getBookmark();cs(wt,En,Kt),Er(wt,Kt,pr),wt.selection.moveToBookmark(uo),wt.selection.setRng(on(wt.selection.getRng())),wt.nodeChanged(),wr=!0}return wr},Jh=(wt,Kt)=>!Ia(wt)&&oh(wt,Kt),xh=wt=>Jh(wt,"Indent"),xf=wt=>Jh(wt,"Outdent"),ep=wt=>Jh(wt,"Flatten"),_r="\uFEFF",Ff=wt=>wt===_r,yd=(wt,Kt,En)=>cn(wt,Kt,En).isSome(),bd=(wt,Kt)=>yd(wt,h(we,Kt));var _h=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const zu=vr.DOM,va=wt=>{const Kt={},En=pr=>{let wr=wt[pr?"startContainer":"endContainer"],uo=wt[pr?"startOffset":"endOffset"];if(zr(wr)){const Bi=zu.create("span",{"data-mce-type":"bookmark"});wr.hasChildNodes()?(uo=Math.min(uo,wr.childNodes.length-1),pr?wr.insertBefore(Bi,wr.childNodes[uo]):zu.insertAfter(Bi,wr.childNodes[uo])):wr.appendChild(Bi),wr=Bi,uo=0}Kt[pr?"startContainer":"endContainer"]=wr,Kt[pr?"startOffset":"endOffset"]=uo};return En(!0),wt.collapsed||En(),Kt},El=wt=>{const Kt=pr=>{const wr=ya=>{var Ni;let Qi=(Ni=ya.parentNode)===null||Ni===void 0?void 0:Ni.firstChild,Ws=0;for(;Qi;){if(Qi===ya)return Ws;(!zr(Qi)||Qi.getAttribute("data-mce-type")!=="bookmark")&&Ws++,Qi=Qi.nextSibling}return-1};let uo=wt[pr?"startContainer":"endContainer"],Bi=wt[pr?"startOffset":"endOffset"];if(uo){if(zr(uo)&&uo.parentNode){const ya=uo;Bi=wr(uo),uo=uo.parentNode,zu.remove(ya),!uo.hasChildNodes()&&zu.isBlock(uo)&&uo.appendChild(zu.create("br"))}wt[pr?"startContainer":"endContainer"]=uo,wt[pr?"startOffset":"endOffset"]=Bi}};Kt(!0),Kt();const En=zu.createRng();return En.setStart(wt.startContainer,wt.startOffset),wt.endContainer&&En.setEnd(wt.endContainer,wt.endOffset),on(En)},_f=wt=>{switch(wt){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},$f=(wt,Kt,En)=>{const pr=En["list-style-type"]?En["list-style-type"]:null;wt.setStyle(Kt,"list-style-type",pr)},ih=(wt,Kt)=>{qn.each(Kt,(En,pr)=>{wt.setAttribute(pr,En)})},yu=(wt,Kt,En)=>{ih(Kt,En["list-attributes"]),qn.each(wt.select("li",Kt),pr=>{ih(pr,En["list-item-attributes"])})},jc=(wt,Kt,En)=>{$f(wt,Kt,En),yu(wt,Kt,En)},Nh=(wt,Kt,En)=>{qn.each(En,pr=>wt.setStyle(Kt,pr,""))},af=(wt,Kt)=>i(Kt)&&!Mo(Kt,wt.schema.getBlockElements()),td=(wt,Kt,En,pr)=>{let wr=Kt[En?"startContainer":"endContainer"];const uo=Kt[En?"startOffset":"endOffset"];zr(wr)&&(wr=wr.childNodes[Math.min(uo,wr.childNodes.length-1)]||wr),!En&&Fo(wr.nextSibling)&&(wr=wr.nextSibling);const Bi=Ni=>{for(;!wt.dom.isBlock(Ni)&&Ni.parentNode&&pr!==Ni;)Ni=Ni.parentNode;return Ni},ya=(Ni,Qi)=>{var Ws;const nl=new Jt(Ni,Bi(Ni)),Fs=Qi?"next":"prev";let Wu;for(;Wu=nl[Fs]();)if(!(pi(wt,Wu)||Ff(Wu.textContent)||((Ws=Wu.textContent)===null||Ws===void 0?void 0:Ws.length)===0))return _.some(Wu);return _.none()};if(En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!1).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.previousSibling!==null&&(af(wt,wr.previousSibling)||lr(wr.previousSibling));)wr=wr.previousSibling;if(!En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!0).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.nextSibling!==null&&(af(wt,wr.nextSibling)||lr(wr.nextSibling));)wr=wr.nextSibling;for(;wr.parentNode!==pr;){const Ni=wr.parentNode;if($o(wt,wr)||/^(TD|TH)$/.test(Ni.nodeName))return wr;wr=Ni}return wr},sf=(wt,Kt,En)=>{const pr=[],wr=wt.dom,uo=td(wt,Kt,!0,En),Bi=td(wt,Kt,!1,En);let ya;const Ni=[];for(let Qi=uo;Qi&&(Ni.push(Qi),Qi!==Bi);Qi=Qi.nextSibling);return qn.each(Ni,Qi=>{var Ws;if($o(wt,Qi)){pr.push(Qi),ya=null;return}if(wr.isBlock(Qi)||Fo(Qi)){Fo(Qi)&&wr.remove(Qi),ya=null;return}const nl=Qi.nextSibling;if(_h.isBookmarkNode(Qi)&&(Vr(nl)||$o(wt,nl)||!nl&&Qi.parentNode===En)){ya=null;return}ya||(ya=wr.create("p"),(Ws=Qi.parentNode)===null||Ws===void 0||Ws.insertBefore(ya,Qi),pr.push(ya)),ya.appendChild(Qi)}),pr},Bc=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type");let wr=En?En["list-style-type"]:"";return wr=wr===null?"":wr,pr===wr},Vd=(wt,Kt)=>{const En=wt.selection.getStart(!0),pr=td(wt,Kt,!0,wt.getBody());return bd(ve.fromDom(pr),ve.fromDom(Kt.commonAncestorContainer))?Kt.commonAncestorContainer:En},xd=(wt,Kt,En)=>{const pr=wt.selection.getRng();let wr="LI";const uo=zo(wt,Vd(wt,pr)),Bi=wt.dom;if(Bi.getContentEditable(wt.selection.getNode())==="false")return;Kt=Kt.toUpperCase(),Kt==="DL"&&(wr="DT");const ya=va(pr),Ni=L(sf(wt,pr,uo),wt.dom.isEditable);qn.each(Ni,Qi=>{let Ws;const nl=Qi.previousSibling,Fs=Qi.parentNode;Yr(Fs)||(nl&&Vr(nl)&&nl.nodeName===Kt&&Bc(Bi,nl,En)?(Ws=nl,Qi=Bi.rename(Qi,wr),nl.appendChild(Qi)):(Ws=Bi.create(Kt),Fs.insertBefore(Ws,Qi),Ws.appendChild(Qi),Qi=Bi.rename(Qi,wr)),Nh(Bi,Qi,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),jc(Bi,Ws,En),Nu(wt.dom,Ws))}),wt.selection.setRng(El(ya))},vc=(wt,Kt)=>Vr(wt)&&wt.nodeName===(Kt==null?void 0:Kt.nodeName),gs=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type",!0),wr=wt.getStyle(En,"list-style-type",!0);return pr===wr},yc=(wt,Kt)=>wt.className===Kt.className,Cc=(wt,Kt,En)=>vc(Kt,En)&&gs(wt,Kt,En)&&yc(Kt,En),Nu=(wt,Kt)=>{let En,pr=Kt.nextSibling;if(Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.firstChild;)Kt.appendChild(En);wt.remove(wr)}if(pr=Kt.previousSibling,Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.lastChild;)Kt.insertBefore(En,Kt.firstChild);wt.remove(wr)}},Gs=(wt,Kt,En,pr)=>{if(Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ks=(wt,Kt,En,pr)=>{if(Kt.classList.forEach((wr,uo,Bi)=>{wr.startsWith("tox-")&&(Bi.remove(wr),Bi.length===0&&Kt.removeAttribute("class"))}),Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ac=(wt,Kt,En,pr,wr)=>{const uo=Vr(Kt);if(uo&&Kt.nodeName===pr&&!_d(wr)&&!mi(Kt))ep(wt);else{xd(wt,pr,wr);const Bi=va(wt.selection.getRng()),ya=uo?[Kt,...En]:En,Ni=uo&&mi(Kt)?Ks:Gs;qn.each(ya,Qi=>{Ni(wt,Qi,pr,wr)}),wt.selection.setRng(El(Bi))}},_d=wt=>"list-style-type"in wt,Fh=(wt,Kt,En,pr)=>{if(Kt!==wt.getBody())if(Kt)if(Kt.nodeName===En&&!_d(pr)&&!mi(Kt))ep(wt);else{const wr=va(wt.selection.getRng());mi(Kt)&&Kt.classList.forEach((Bi,ya,Ni)=>{Bi.startsWith("tox-")&&(Ni.remove(Bi),Ni.length===0&&Kt.removeAttribute("class"))}),jc(wt.dom,Kt,pr);const uo=wt.dom.rename(Kt,En);Nu(wt.dom,uo),wt.selection.setRng(El(wr)),xd(wt,En,pr),yl(wt,_f(En),uo)}else xd(wt,En,pr),yl(wt,_f(En),Kt)},$h=(wt,Kt,En)=>{const pr=zn(wt);if(Ds(wt,pr))return;const wr=Ur(wt),uo=s(En)?En:{};wr.length>0?Ac(wt,pr,wr,Kt,uo):Fh(wt,pr,Kt,uo)},vp=vr.DOM,ah=(wt,Kt)=>{const En=Kt.parentElement;if(En&&En.nodeName==="LI"&&En.firstChild===Kt){const pr=En.previousSibling;pr&&pr.nodeName==="LI"?(pr.appendChild(Kt),ar(wt,En)&&vp.remove(En)):vp.setStyle(En,"listStyleType","none")}if(Vr(En)){const pr=En.previousSibling;pr&&pr.nodeName==="LI"&&pr.appendChild(Kt)}},Au=(wt,Kt)=>{const En=qn.grep(wt.select("ol,ul",Kt));qn.each(En,pr=>{ah(wt,pr)})},lf=(wt,Kt,En,pr)=>{let wr=Kt.startContainer;const uo=Kt.startOffset;if(lr(wr)&&(En?uo0))return wr;const Bi=wt.schema.getNonEmptyElements();zr(wr)&&(wr=en.getNode(wr,uo));const ya=new Jt(wr,pr);En&&Hn(wt.dom,wr)&&ya.next();const Ni=En?ya.next.bind(ya):ya.prev2.bind(ya);for(;wr=Ni();)if(wr.nodeName==="LI"&&!wr.hasChildNodes()||Bi[wr.nodeName]||lr(wr)&&wr.data.length>0)return wr;return null},wf=(wt,Kt)=>{const En=Kt.childNodes;return En.length===1&&!Vr(En[0])&&wt.isBlock(En[0])},vs=wt=>_.from(wt).map(ve.fromDom).filter(Ye).exists(Kt=>xt(Kt)&&!M(["details"],Re(Kt))),cl=(wt,Kt)=>{wf(wt,Kt)&&vs(Kt.firstChild)&&wt.remove(Kt.firstChild,!0)},bc=(wt,Kt,En)=>{let pr;const wr=wf(wt,En)?En.firstChild:En;if(cl(wt,Kt),!ar(wt,Kt,!0))for(;pr=Kt.firstChild;)wr.appendChild(pr)},nc=(wt,Kt,En)=>{let pr;const wr=Kt.parentNode;if(!Dr(wt,Kt)||!Dr(wt,En))return;Vr(En.lastChild)&&(pr=En.lastChild),wr===En.lastChild&&Fo(wr.previousSibling)&&wt.remove(wr.previousSibling);const uo=En.lastChild;uo&&Fo(uo)&&Kt.hasChildNodes()&&wt.remove(uo),ar(wt,En,!0)&&_t(ve.fromDom(En)),bc(wt,Kt,En),pr&&En.appendChild(pr);const ya=Te(ve.fromDom(En),ve.fromDom(Kt))?wt.getParents(Kt,Vr,En):[];wt.remove(Kt),A(ya,Ni=>{ar(wt,Ni)&&Ni!==wt.getRoot()&&wt.remove(Ni)})},Qc=(wt,Kt,En)=>{_t(ve.fromDom(En)),nc(wt.dom,Kt,En),wt.selection.setCursorLocation(En,0)},ts=(wt,Kt,En,pr)=>{const wr=wt.dom;if(wr.isEmpty(pr))Qc(wt,En,pr);else{const uo=va(Kt);nc(wr,En,pr),wt.selection.setRng(El(uo))}},wi=(wt,Kt,En,pr)=>{const wr=va(Kt);nc(wt.dom,En,pr);const uo=El(wr);wt.selection.setRng(uo)},bu=(wt,Kt)=>{const En=wt.dom,pr=wt.selection,wr=pr.getStart(),uo=Nr(wt,wr),Bi=En.getParent(pr.getStart(),"LI",uo);if(Bi){const ya=Bi.parentElement;if(ya===wt.getBody()&&ar(En,ya))return!0;const Ni=on(pr.getRng()),Qi=En.getParent(lf(wt,Ni,Kt,uo),"LI",uo),Ws=Qi&&(Kt?En.isChildOf(Bi,Qi):En.isChildOf(Qi,Bi));if(Qi&&Qi!==Bi&&!Ws)return wt.undoManager.transact(()=>{Kt?ts(wt,Ni,Qi,Bi):_o(Bi)?xf(wt):wi(wt,Ni,Bi,Qi)}),!0;if(Ws&&!Kt&&Qi!==Bi)return wt.undoManager.transact(()=>{if(Ni.commonAncestorContainer.parentElement){const nl=va(Ni),Fs=Ni.commonAncestorContainer.parentElement;bc(En,Ni.commonAncestorContainer.parentElement,Qi),Fs.remove();const Wu=El(nl);wt.selection.setRng(Wu)}}),!0;if(!Qi&&!Kt&&Ni.startOffset===0&&Ni.endOffset===0)return wt.undoManager.transact(()=>{ep(wt)}),!0}return!1},wd=(wt,Kt,En)=>{const pr=wt.getParent(Kt.parentNode,wt.isBlock,En);wt.remove(Kt),pr&&wt.isEmpty(pr)&&wt.remove(pr)},Ol=(wt,Kt)=>{const En=wt.dom,pr=wt.selection.getStart(),wr=Nr(wt,pr),uo=En.getParent(pr,En.isBlock,wr);if(uo&&En.isEmpty(uo,void 0,{checkRootAsContent:!0})){const Bi=on(wt.selection.getRng()),ya=En.getParent(lf(wt,Bi,Kt,wr),"LI",wr);if(ya){const Ni=Fs=>M(["td","th","caption"],Re(Fs)),Qi=Fs=>Fs.dom===wr,Ws=Cn(ve.fromDom(ya),Ni,Qi),nl=Cn(ve.fromDom(Bi.startContainer),Ni,Qi);return re(Ws,nl,we)?(wt.undoManager.transact(()=>{const Fs=ya.parentNode;wd(En,uo,wr),Nu(En,Fs),wt.selection.select(ya,!0),wt.selection.collapse(Kt)}),!0):!1}}return!1},ds=(wt,Kt)=>bu(wt,Kt)||Ol(wt,Kt),zc=wt=>{const Kt=wt.selection.getStart(),En=Nr(wt,Kt);return wt.dom.getParent(Kt,"LI,DT,DD",En)||Cr(wt).length>0},Ud=wt=>zc(wt)?(wt.undoManager.transact(()=>{wt.execCommand("Delete"),Au(wt.dom,wt.getBody())}),!0):!1,cf=(wt,Kt)=>{const En=wt.selection;return!Ds(wt,En.getNode())&&(En.isCollapsed()?ds(wt,Kt):Ud(wt))},Of=wt=>{wt.on("ExecCommand",Kt=>{const En=Kt.command.toLowerCase();(En==="delete"||En==="forwarddelete")&&zc(wt)&&Au(wt.dom,wt.getBody())}),wt.on("keydown",Kt=>{Kt.keyCode===Zt.BACKSPACE?cf(wt,!1)&&Kt.preventDefault():Kt.keyCode===Zt.DELETE&&cf(wt,!0)&&Kt.preventDefault()})},aa=wt=>({backspaceDelete:Kt=>{cf(wt,Kt)}}),rs=(wt,Kt)=>{const En=zn(wt);En===null||Ds(wt,En)||wt.undoManager.transact(()=>{s(Kt.styles)&&wt.dom.setStyles(En,Kt.styles),s(Kt.attrs)&&rn(Kt.attrs,(pr,wr)=>wt.dom.setAttrib(En,wr,pr))})},Mu=wt=>{const Kt=j(yf(wt).split("")),En=P(Kt,(pr,wr)=>{const uo=pr.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,wr)*uo});return k(En,(pr,wr)=>pr+wr,0)},Ri=wt=>{if(wt--,wt<0)return"";{const Kt=wt%26,En=Math.floor(wt/26),pr=Ri(En),wr=String.fromCharCode("A".charCodeAt(0)+Kt);return pr+wr}},Gc=wt=>/^[A-Z]+$/.test(wt),qu=wt=>/^[a-z]+$/.test(wt),zl=wt=>/^[0-9]+$/.test(wt),xc=wt=>zl(wt)?2:Gc(wt)?0:qu(wt)?1:nf(wt)?3:4,Kc=wt=>{switch(xc(wt)){case 2:return _.some({listStyleType:_.none(),start:wt});case 0:return _.some({listStyleType:_.some("upper-alpha"),start:Mu(wt).toString()});case 1:return _.some({listStyleType:_.some("lower-alpha"),start:Mu(wt).toString()});case 3:return _.some({listStyleType:_.none(),start:""});case 4:return _.none()}},jd=wt=>{const Kt=parseInt(wt.start,10);return K(wt.listStyleType,"upper-alpha")?Ri(Kt):K(wt.listStyleType,"lower-alpha")?Ri(Kt).toLowerCase():wt.start},ii=wt=>{const Kt=zn(wt);!Jr(Kt)||Ds(wt,Kt)||wt.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:jd({start:wt.dom.getAttrib(Kt,"start","1"),listStyleType:_.from(wt.dom.getStyle(Kt,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:En=>{const pr=En.getData();Kc(pr.start).each(wr=>{wt.execCommand("mceListUpdate",!1,{attrs:{start:wr.start==="1"?"":wr.start},styles:{"list-style-type":wr.listStyleType.getOr("")}})}),En.close()}})},nd=(wt,Kt)=>()=>{const En=zn(wt);return i(En)&&En.nodeName===Kt},al=wt=>{wt.addCommand("mceListProps",()=>{ii(wt)})},Yl=wt=>{wt.on("BeforeExecCommand",Kt=>{const En=Kt.command.toLowerCase();En==="indent"?xh(wt):En==="outdent"&&xf(wt)}),wt.addCommand("InsertUnorderedList",(Kt,En)=>{$h(wt,"UL",En)}),wt.addCommand("InsertOrderedList",(Kt,En)=>{$h(wt,"OL",En)}),wt.addCommand("InsertDefinitionList",(Kt,En)=>{$h(wt,"DL",En)}),wt.addCommand("RemoveList",()=>{ep(wt)}),al(wt),wt.addCommand("mceListUpdate",(Kt,En)=>{s(En)&&rs(wt,En)}),wt.addQueryStateHandler("InsertUnorderedList",nd(wt,"UL")),wt.addQueryStateHandler("InsertOrderedList",nd(wt,"OL")),wt.addQueryStateHandler("InsertDefinitionList",nd(wt,"DL"))};var uf=tinymce.util.Tools.resolve("tinymce.html.Node");const hs=wt=>wt.type===3,Mc=wt=>wt.length===0,Eu=wt=>{const Kt=(wr,uo)=>{const Bi=uf.create("li");A(wr,ya=>Bi.append(ya)),uo?wt.insert(Bi,uo,!0):wt.append(Bi)},En=(wr,uo)=>hs(uo)?[...wr,uo]:!Mc(wr)&&!hs(uo)?(Kt(wr,uo),[]):wr,pr=k(wt.children(),En,[]);Mc(pr)||Kt(pr)},xu=wt=>{wt.on("PreInit",()=>{const{parser:Kt}=wt;Kt.addNodeFilter("ul,ol",En=>A(En,Eu))})},ws=wt=>{wt.on("keydown",Kt=>{Kt.keyCode!==Zt.TAB||Zt.metaKeyPressed(Kt)||wt.undoManager.transact(()=>{(Kt.shiftKey?xf(wt):xh(wt))&&Kt.preventDefault()})})},Fu=wt=>{go(wt)&&ws(wt),Of(wt)},su=(wt,Kt)=>En=>{const pr=wr=>{En.setActive(Di(wr.parents,Kt)),En.setEnabled(!Ds(wt,wr.element)&&wt.selection.isEditable())};return En.setEnabled(wt.selection.isEditable()),fs(wt,pr)},Ca=wt=>{const Kt=En=>()=>wt.execCommand(En);wt.hasPlugin("advlist")||(wt.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:Kt("InsertOrderedList"),onSetup:su(wt,"OL")}),wt.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:Kt("InsertUnorderedList"),onSetup:su(wt,"UL")}))},Ls=(wt,Kt)=>En=>fs(wt,wr=>En.setEnabled(Di(wr.parents,Kt)&&!Ds(wt,wr.element))),Ec=wt=>{const Kt={text:"List properties...",icon:"ordered-list",onAction:()=>wt.execCommand("mceListProps"),onSetup:Ls(wt,"OL")};wt.ui.registry.addMenuItem("listprops",Kt),wt.ui.registry.addContextMenu("lists",{update:En=>{const pr=zn(wt,En);return Jr(pr)?["listprops"]:[]}})};var _u=()=>{t.add("lists",wt=>(Zr(wt),xu(wt),wt.hasPlugin("rtc",!0)?al(wt):(Fu(wt),Yl(wt)),Ca(wt),Ec(wt),aa(wt)))};_u()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(Gt,on,an)=>{var Tn;return an(Gt,on.prototype)?!0:((Tn=Gt.constructor)===null||Tn===void 0?void 0:Tn.name)===on.name},o=Gt=>{const on=typeof Gt;return Gt===null?"null":on==="object"&&Array.isArray(Gt)?"array":on==="object"&&e(Gt,String,(an,Tn)=>Tn.isPrototypeOf(an))?"string":on},f=Gt=>on=>o(on)===Gt,E=Gt=>on=>typeof on===Gt,d=Gt=>on=>Gt===on,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=Gt=>Gt==null,w=Gt=>!S(Gt),y=E("function"),m=(Gt,on)=>{if(u(Gt)){for(let an=0,Tn=Gt.length;an{},c=Gt=>()=>Gt,h=(Gt,on)=>Gt===on;class p{constructor(on,an){this.tag=on,this.value=an}static some(on){return new p(!0,on)}static none(){return p.singletonNone}fold(on,an){return this.tag?an(this.value):on()}isSome(){return this.tag}isNone(){return!this.tag}map(on){return this.tag?p.some(on(this.value)):p.none()}bind(on){return this.tag?on(this.value):p.none()}exists(on){return this.tag&&on(this.value)}forall(on){return!this.tag||on(this.value)}filter(on){return!this.tag||on(this.value)?this:p.none()}getOr(on){return this.tag?this.value:on}or(on){return this.tag?this:on}getOrThunk(on){return this.tag?this.value:on()}orThunk(on){return this.tag?this:on()}getOrDie(on){if(this.tag)return this.value;throw new Error(on??"Called getOrDie on None")}static from(on){return w(on)?p.some(on):p.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(on){this.tag&&on(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}p.singletonNone=new p(!1);const v=Array.prototype.indexOf,_=Array.prototype.push,O=(Gt,on)=>v.call(Gt,on),C=(Gt,on)=>O(Gt,on)>-1,x=(Gt,on)=>{const an=Gt.length,Tn=new Array(an);for(let zn=0;zn{for(let an=0,Tn=Gt.length;an(R(Gt,(Tn,zn)=>{an=on(an,Tn,zn)}),an),T=Gt=>{const on=[];for(let an=0,Tn=Gt.length;anT(x(Gt,on)),A=(Gt,on)=>{for(let an=0;anGt.exists(Tn=>an(Tn,on)),D=Gt=>{const on=[],an=Tn=>{on.push(Tn)};for(let Tn=0;TnGt?p.some(on):p.none(),I=Gt=>on=>on.options.get(Gt),z=Gt=>{const on=Gt.options.register;on("link_assume_external_targets",{processor:an=>{const Tn=s(an)||i(an);return Tn?an===!0?{value:1,valid:Tn}:an==="http"||an==="https"?{value:an,valid:Tn}:{value:0,valid:Tn}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),on("link_context_toolbar",{processor:"boolean",default:!1}),on("link_list",{processor:an=>s(an)||y(an)||m(an,n)}),on("link_default_target",{processor:"string"}),on("link_default_protocol",{processor:"string",default:"https"}),on("link_target_list",{processor:an=>i(an)||m(an,n),default:!0}),on("link_rel_list",{processor:"object[]",default:[]}),on("link_class_list",{processor:"object[]",default:[]}),on("link_title",{processor:"boolean",default:!0}),on("allow_unsafe_link_target",{processor:"boolean",default:!1}),on("link_quicklink",{processor:"boolean",default:!1})},$=I("link_assume_external_targets"),Q=I("link_context_toolbar"),j=I("link_list"),U=I("link_default_target"),X=I("link_default_protocol"),te=I("link_target_list"),Z=I("link_rel_list"),K=I("link_class_list"),re=I("link_title"),q=I("allow_unsafe_link_target"),Y=I("link_quicklink"),ee=Object.keys,me=Object.hasOwnProperty,pe=(Gt,on)=>{const an=ee(Gt);for(let Tn=0,zn=an.length;Tn(on,an)=>{Gt[an]=on},ae=(Gt,on,an,Tn)=>{pe(Gt,(zn,Gn)=>{(on(zn,Gn)?an:Tn)(zn,Gn)})},ce=(Gt,on)=>{const an={};return ae(Gt,on,se(an),a),an},de=(Gt,on)=>me.call(Gt,on),ye=(Gt,on)=>de(Gt,on)&&Gt[on]!==void 0&&Gt[on]!==null;var ve=tinymce.util.Tools.resolve("tinymce.util.URI"),_e=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),we=tinymce.util.Tools.resolve("tinymce.util.Tools");const Te=Gt=>w(Gt)&&Gt.nodeName.toLowerCase()==="a",Pe=Gt=>Te(Gt)&&!!De(Gt),Ie=(Gt,on)=>{if(Gt.collapsed)return[];{const an=Gt.cloneContents(),Tn=an.firstChild,zn=new _e(Tn,an),Gn=[];let Lr=Tn;do on(Lr)&&Gn.push(Lr);while(Lr=zn.next());return Gn}},ze=Gt=>/^\w+:/i.test(Gt),De=Gt=>{var on,an;return(an=(on=Gt.getAttribute("data-mce-href"))!==null&&on!==void 0?on:Gt.getAttribute("href"))!==null&&an!==void 0?an:""},Qe=(Gt,on)=>{const an=["noopener"],Tn=Gt?Gt.split(/\s+/):[],zn=qr=>we.trim(qr.sort().join(" ")),Gn=qr=>(qr=Lr(qr),qr.length>0?qr.concat(an):an),Lr=qr=>qr.filter(Cr=>we.inArray(an,Cr)===-1),Ur=on?Gn(Tn):Lr(Tn);return Ur.length>0?zn(Ur):""},Ve=Gt=>Gt.replace(/\uFEFF/g,""),$e=(Gt,on)=>(on=on||Re(Gt.selection.getRng())[0]||Gt.selection.getNode(),Je(on)?p.from(Gt.dom.select("a[href]",on)[0]):p.from(Gt.dom.getParent(on,"a[href]"))),Oe=(Gt,on)=>$e(Gt,on).isSome(),ke=(Gt,on)=>{const an=on.fold(()=>Gt.getContent({format:"text"}),Tn=>Tn.innerText||Tn.textContent||"");return Ve(an)},Re=Gt=>Ie(Gt,Pe),We=Gt=>we.grep(Gt,Pe),Ue=Gt=>We(Gt).length>0,Ze=Gt=>Re(Gt).length>0,Ye=Gt=>{const on=Gt.schema.getTextInlineElements(),an=Gn=>Gn.nodeType===1&&!Te(Gn)&&!de(on,Gn.nodeName.toLowerCase());if($e(Gt).exists(Gn=>Gn.hasAttribute("data-mce-block")))return!1;const zn=Gt.selection.getRng();return zn.collapsed?!0:Ie(zn,an).length===0},Je=Gt=>w(Gt)&&Gt.nodeName==="FIGURE"&&/\bimage\b/i.test(Gt.className),Me=Gt=>M(["title","rel","class","target"],(an,Tn)=>(Gt[Tn].each(zn=>{an[Tn]=zn.length>0?zn:null}),an),{href:Gt.href}),Fe=(Gt,on)=>(on==="http"||on==="https")&&!ze(Gt)?on+"://"+Gt:Gt,je=(Gt,on)=>{const an={...on};if(Z(Gt).length===0&&!q(Gt)){const Tn=Qe(an.rel,an.target==="_blank");an.rel=Tn||null}return p.from(an.target).isNone()&&te(Gt)===!1&&(an.target=U(Gt)),an.href=Fe(an.href,$(Gt)),an},tt=(Gt,on,an,Tn)=>{an.each(zn=>{de(on,"innerText")?on.innerText=zn:on.textContent=zn}),Gt.dom.setAttribs(on,Tn),Gt.selection.select(on)},ot=(Gt,on,an,Tn)=>{const zn=Gt.dom;Je(on)?tn(zn,on,Tn):an.fold(()=>{Gt.execCommand("mceInsertLink",!1,Tn)},Gn=>{Gt.insertContent(zn.createHTML("a",Tn,zn.encode(Gn)))})},Ge=(Gt,on,an)=>{const Tn=Gt.selection.getNode(),zn=$e(Gt,Tn),Gn=je(Gt,Me(an));Gt.undoManager.transact(()=>{an.href===on.href&&on.attach(),zn.fold(()=>{ot(Gt,Tn,an.text,Gn)},Lr=>{Gt.focus(),tt(Gt,Lr,an.text,Gn)})})},ht=Gt=>{const on=Gt.dom,an=Gt.selection,Tn=an.getBookmark(),zn=an.getRng().cloneRange(),Gn=on.getParent(zn.startContainer,"a[href]",Gt.getBody()),Lr=on.getParent(zn.endContainer,"a[href]",Gt.getBody());Gn&&zn.setStartBefore(Gn),Lr&&zn.setEndAfter(Lr),an.setRng(zn),Gt.execCommand("unlink"),an.moveToBookmark(Tn)},pt=Gt=>{Gt.undoManager.transact(()=>{const on=Gt.selection.getNode();Je(on)?ln(Gt,on):ht(Gt),Gt.focus()})},St=Gt=>{const{class:on,href:an,rel:Tn,target:zn,text:Gn,title:Lr}=Gt;return ce({class:on.getOrNull(),href:an,rel:Tn.getOrNull(),target:zn.getOrNull(),text:Gn.getOrNull(),title:Lr.getOrNull()},(Ur,qr)=>b(Ur)===!1)},Ft=(Gt,on)=>{const an=Gt.options.get,Tn={allow_html_data_urls:an("allow_html_data_urls"),allow_script_urls:an("allow_script_urls"),allow_svg_data_urls:an("allow_svg_data_urls")},zn=on.href;return{...on,href:ve.isDomSafe(zn,"a",Tn)?zn:""}},zt=(Gt,on,an)=>{const Tn=Ft(Gt,an);Gt.hasPlugin("rtc",!0)?Gt.execCommand("createlink",!1,St(Tn)):Ge(Gt,on,Tn)},Yt=Gt=>{Gt.hasPlugin("rtc",!0)?Gt.execCommand("unlink"):pt(Gt)},ln=(Gt,on)=>{var an;const Tn=Gt.dom.select("img",on)[0];if(Tn){const zn=Gt.dom.getParents(Tn,"a[href]",on)[0];zn&&((an=zn.parentNode)===null||an===void 0||an.insertBefore(Tn,zn),Gt.dom.remove(zn))}},tn=(Gt,on,an)=>{var Tn;const zn=Gt.select("img",on)[0];if(zn){const Gn=Gt.create("a",an);(Tn=zn.parentNode)===null||Tn===void 0||Tn.insertBefore(Gn,zn),Gn.appendChild(zn)}},Et=Gt=>s(Gt.value)?Gt.value:"",Ot=Gt=>s(Gt.text)?Gt.text:s(Gt.title)?Gt.title:"",cn=(Gt,on)=>{const an=[];return we.each(Gt,Tn=>{const zn=Ot(Tn);if(Tn.menu!==void 0){const Gn=cn(Tn.menu,on);an.push({text:zn,items:Gn})}else{const Gn=on(Tn);an.push({text:zn,value:Gn})}}),an},Cn=(Gt=Et)=>on=>p.from(on).map(an=>cn(an,Gt)),vt={sanitize:Gt=>Cn(Et)(Gt),sanitizeWith:Cn,createUi:(Gt,on)=>an=>({name:Gt,type:"listbox",label:on,items:an}),getValue:Et},xt=Gt=>ye(Gt,"items"),st=(Gt,on)=>A(on,an=>xt(an)?st(Gt,an.items):k(an.value===Gt,an)),bt=(Gt,on,an,Tn)=>{const zn=Tn[on],Gn=Gt.length>0;return zn!==void 0?st(zn,an).map(Lr=>({url:{value:Lr.value,meta:{text:Gn?Gt:Lr.text,attach:a}},text:Gn?Gt:Lr.text})):p.none()},Vt=(Gt,on)=>on==="link"?Gt.link:on==="anchor"?Gt.anchor:p.none(),it={init:(Gt,on)=>{const an={text:Gt.text,title:Gt.title},Tn=qr=>{var Cr;return k(an.title.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.title).getOr(""))},zn=qr=>{var Cr;return k(an.text.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.text).getOr(qr.value))},Gn=qr=>{const Cr=zn(qr.url),wo=Tn(qr.url);return Cr.isSome()||wo.isSome()?p.some({...Cr.map(Nr=>({text:Nr})).getOr({}),...wo.map(Nr=>({title:Nr})).getOr({})}):p.none()},Lr=(qr,Cr)=>{const wo=Vt(on,Cr).getOr([]);return bt(an.text,Cr,wo,qr)};return{onChange:(qr,Cr)=>{const wo=Cr.name;return wo==="url"?Gn(qr()):C(["anchor","link"],wo)?Lr(qr(),wo):((wo==="text"||wo==="title")&&(an[wo]=qr()[wo]),p.none())}}},getDelta:bt};var at=tinymce.util.Tools.resolve("tinymce.util.Delay");const Bt=(Gt,on,an)=>{const Tn=Gt.selection.getRng();at.setEditorTimeout(Gt,()=>{Gt.windowManager.confirm(on,zn=>{Gt.selection.setRng(Tn),an(zn)})})},_t=Gt=>{const on=Gt.href;return on.indexOf("@")>0&&on.indexOf("/")===-1&&on.indexOf("mailto:")===-1?p.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:Tn=>({...Tn,href:"mailto:"+on})}):p.none()},qt=(Gt,on)=>an=>{const Tn=an.href;return Gt===1&&!ze(Tn)||Gt===0&&/^\s*www(\.|\d\.)/i.test(Tn)?p.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${on}:// prefix?`,preprocess:Gn=>({...Gn,href:on+"://"+Tn})}):p.none()},Jt={preprocess:(Gt,on)=>A([_t,qt($(Gt),X(Gt))],an=>an(on)).fold(()=>Promise.resolve(on),an=>new Promise(Tn=>{Bt(Gt,an.message,zn=>{Tn(zn?an.preprocess(on):on)})}))},Nt={getAnchors:Gt=>{const on=Gt.dom.select("a:not([href])"),an=P(on,Tn=>{const zn=Tn.name||Tn.id;return zn?[{text:zn,value:"#"+zn}]:[]});return an.length>0?p.some([{text:"None",value:""}].concat(an)):p.none()}},rn={getClasses:Gt=>{const on=K(Gt);return on.length>0?vt.sanitize(on):p.none()}},_n=Gt=>{try{return p.some(JSON.parse(Gt))}catch{return p.none()}},An={getLinks:Gt=>{const on=Tn=>Gt.convertURL(Tn.value||Tn.url||"","href"),an=j(Gt);return new Promise(Tn=>{s(an)?fetch(an).then(zn=>zn.ok?zn.text().then(_n):Promise.reject()).then(Tn,()=>Tn(p.none())):y(an)?an(zn=>Tn(p.some(zn))):Tn(p.from(an))}).then(Tn=>Tn.bind(vt.sanitizeWith(on)).map(zn=>zn.length>0?[{text:"None",value:""}].concat(zn):zn))}},fr={getRels:(Gt,on)=>{const an=Z(Gt);if(an.length>0){const Tn=L(on,"_blank"),zn=q(Gt)===!1,Gn=Ur=>Qe(vt.getValue(Ur),Tn);return(zn?vt.sanitizeWith(Gn):vt.sanitize)(an)}return p.none()}},Un=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],tr={getTargets:Gt=>{const on=te(Gt);return u(on)?vt.sanitize(on).orThunk(()=>p.some(Un)):on===!1?p.none():p.some(Un)}},Br=(Gt,on,an)=>{const Tn=Gt.getAttrib(on,an);return Tn!==null&&Tn.length>0?p.some(Tn):p.none()},$r=(Gt,on)=>{const an=Gt.dom,zn=Ye(Gt)?p.some(ke(Gt.selection,on)):p.none(),Gn=on.bind(wo=>p.from(an.getAttrib(wo,"href"))),Lr=on.bind(wo=>p.from(an.getAttrib(wo,"target"))),Ur=on.bind(wo=>Br(an,wo,"rel")),qr=on.bind(wo=>Br(an,wo,"class")),Cr=on.bind(wo=>Br(an,wo,"title"));return{url:Gn,text:zn,title:Cr,target:Lr,rel:Ur,linkClass:qr}},qn={collect:(Gt,on)=>An.getLinks(Gt).then(an=>{const Tn=$r(Gt,on);return{anchor:Tn,catalogs:{targets:tr.getTargets(Gt),rels:fr.getRels(Gt,Tn.target),classes:rn.getClasses(Gt),anchor:Nt.getAnchors(Gt),link:an},optNode:on,flags:{titleEnabled:re(Gt)}}})},gr=(Gt,on)=>an=>{const Tn=an.getData();if(!Tn.url.value){Yt(Gt),an.close();return}const zn=Ur=>p.from(Tn[Ur]).filter(qr=>!L(on.anchor[Ur],qr)),Gn={href:Tn.url.value,text:zn("text"),target:zn("target"),rel:zn("rel"),class:zn("linkClass"),title:zn("title")},Lr={href:Tn.url.value,attach:Tn.url.meta!==void 0&&Tn.url.meta.attach?Tn.url.meta.attach:a};Jt.preprocess(Gt,Gn).then(Ur=>{zt(Gt,Lr,Ur)}),an.close()},sr=Gt=>{const on=$e(Gt);return qn.collect(Gt,on)},lr=(Gt,on)=>{const an=Gt.anchor,Tn=an.url.getOr("");return{url:{value:Tn,meta:{original:{value:Tn}}},text:an.text.getOr(""),title:an.title.getOr(""),anchor:Tn,link:Tn,rel:an.rel.getOr(""),target:an.target.or(on).getOr(""),linkClass:an.linkClass.getOr("")}},zr=(Gt,on,an)=>{const Tn=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],zn=Gt.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),Gn=Gt.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],Lr=p.from(U(an)),Ur=lr(Gt,Lr),qr=Gt.catalogs,Cr=it.init(Ur,qr);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:T([Tn,zn,Gn,D([qr.anchor.map(vt.createUi("anchor","Anchors")),qr.rels.map(vt.createUi("rel","Rel")),qr.targets.map(vt.createUi("target","Open link in...")),qr.link.map(vt.createUi("link","Link list")),qr.classes.map(vt.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ur,onChange:(Nr,{name:Eo})=>{Cr.onChange(Nr.getData,{name:Eo}).each(zo=>{Nr.setData(zo)})},onSubmit:on}},Vr=Gt=>{sr(Gt).then(an=>{const Tn=gr(Gt,an);return zr(an,Tn,Gt)}).then(an=>{Gt.windowManager.open(an)})},eo=Gt=>{Gt.addCommand("mceLink",(on,an)=>{(an==null?void 0:an.dialog)===!0||!Y(Gt)?Vr(Gt):Gt.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"})})},Jr=Gt=>{Gt.addShortcut("Meta+K","",()=>{Gt.execCommand("mceLink")})},Yr=Gt=>{let on=Gt;return{get:()=>on,set:zn=>{on=zn}}},to=Gt=>{const on=Yr(p.none()),an=()=>on.get().each(Gt);return{clear:()=>{an(),on.set(p.none())},isSet:()=>on.get().isSome(),get:()=>on.get(),set:Ur=>{an(),on.set(p.some(Ur))}}},co=()=>{const Gt=to(a);return{...Gt,on:an=>Gt.get().each(an)}};var Fo=tinymce.util.Tools.resolve("tinymce.util.VK");const _o=(Gt,on)=>{document.body.appendChild(Gt),Gt.dispatchEvent(on),document.body.removeChild(Gt)},$o=Gt=>{const on=document.createElement("a");on.target="_blank",on.href=Gt,on.rel="noreferrer noopener";const an=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});document.dispatchEvent(an),_o(on,an)},Mo=Gt=>Gt.altKey===!0&&Gt.shiftKey===!1&&Gt.ctrlKey===!1&&Gt.metaKey===!1,pi=(Gt,on)=>{if(on){const an=De(on);if(/^#/.test(an)){const Tn=Gt.dom.select(an);Tn.length&&Gt.selection.scrollIntoView(Tn[0],!0)}else $o(on.href)}},Hn=Gt=>{const on=Gt.selection.getRng(),an=on.startContainer;return Pe(an)&&on.startContainer===on.endContainer&&Gt.dom.select("img",an).length===1},ar=(Gt,on)=>{const an=We(Gt.dom.getParents(on));return k(an.length===1,an[0])},Dr=Gt=>{const on=Re(Gt.selection.getRng());return k(on.length>0,on[0]).or(ar(Gt,Gt.selection.getNode()))},Sr=Gt=>Gt.selection.isCollapsed()||Hn(Gt)?ar(Gt,Gt.selection.getStart()):Dr(Gt),Zr=Gt=>{const on=co(),an=()=>on.get().or(Sr(Gt)),Tn=()=>an().each(zn=>pi(Gt,zn));return Gt.on("contextmenu",zn=>{ar(Gt,zn.target).each(on.set)}),Gt.on("SelectionChange",()=>{on.isSet()||Sr(Gt).each(on.set)}),Gt.on("click",zn=>{on.clear();const Gn=We(Gt.dom.getParents(zn.target));Gn.length===1&&Fo.metaKeyPressed(zn)&&(zn.preventDefault(),pi(Gt,Gn[0]))}),Gt.on("keydown",zn=>{on.clear(),!zn.isDefaultPrevented()&&zn.keyCode===13&&Mo(zn)&&an().each(Gn=>{zn.preventDefault(),pi(Gt,Gn)})}),{gotoSelectedLink:Tn}},go=Gt=>()=>{Gt.execCommand("mceLink",!1,{dialog:!0})},oo=(Gt,on)=>(Gt.on("NodeChange",on),()=>Gt.off("NodeChange",on)),io=Gt=>on=>{const an=()=>{on.setActive(!Gt.mode.isReadOnly()&&Oe(Gt,Gt.selection.getNode())),on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},Do=Gt=>on=>{const an=()=>{on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},jn=Gt=>on=>{const an=Gn=>Ue(Gn)||Ze(Gt.selection.getRng()),Tn=Gt.dom.getParents(Gt.selection.getStart()),zn=Gn=>{on.setEnabled(an(Gn)&&Gt.selection.isEditable())};return zn(Tn),oo(Gt,Gn=>zn(Gn.parents))},Rr=(Gt,on)=>{Gt.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Meta+K",onAction:go(Gt),onSetup:io(Gt)}),Gt.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},On=(Gt,on)=>{Gt.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:go(Gt),onSetup:Do(Gt)}),Gt.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},Yn=Gt=>{const on="link unlink openlink",an="link";Gt.ui.registry.addContextMenu("link",{update:Tn=>Gt.dom.isEditable(Tn)?Ue(Gt.dom.getParents(Tn,"a"))?on:an:""})},ir=(Gt,on)=>{const an=Gn=>{Gn.selection.collapse(!1)},Tn=Gn=>{const Lr=Gt.selection.getNode();return Gn.setEnabled(Oe(Gt,Lr)),a},zn=Gn=>{const Lr=$e(Gt),Ur=Ye(Gt);if(Lr.isNone()&&Ur){const qr=ke(Gt.selection,Lr);return k(qr.length===0,Gn)}else return p.none()};Gt.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:io(Gt)},label:"Link",predicate:Gn=>Q(Gt)&&Oe(Gt,Gn),initValue:()=>$e(Gt).fold(c(""),De),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:Gn=>{const Lr=Gt.selection.getNode();return Gn.setActive(Oe(Gt,Lr)),io(Gt)(Gn)},onAction:Gn=>{const Lr=Gn.getValue(),Ur=zn(Lr);zt(Gt,{href:Lr,attach:a},{href:Lr,text:Ur,title:p.none(),rel:p.none(),target:p.from(U(Gt)),class:p.none()}),an(Gt),Gn.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:Tn,onAction:Gn=>{Yt(Gt),Gn.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:Tn,onAction:Gn=>{on.gotoSelectedLink(),Gn.hide()}}]})},kr=Gt=>{const on=Zr(Gt);Rr(Gt,on),On(Gt,on),Yn(Gt),ir(Gt,on)};var Er=()=>{t.add("link",Gt=>{z(Gt),eo(Gt),kr(Gt),Jr(Gt)})};Er()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(mt,Tt,xn)=>{var Nn;return xn(mt,Tt.prototype)?!0:((Nn=mt.constructor)===null||Nn===void 0?void 0:Nn.name)===Tt.name},o=mt=>{const Tt=typeof mt;return mt===null?"null":Tt==="object"&&Array.isArray(mt)?"array":Tt==="object"&&e(mt,String,(xn,Nn)=>Nn.isPrototypeOf(xn))?"string":Tt},f=mt=>Tt=>o(Tt)===mt,E=mt=>Tt=>typeof Tt===mt,d=mt=>Tt=>mt===Tt,s=f("string"),n=f("array"),u=E("boolean"),b=d(void 0),i=mt=>mt==null,S=mt=>!i(mt),w=E("function"),y=E("number"),m=()=>{},a=(mt,Tt)=>xn=>mt(Tt(xn)),c=mt=>()=>mt,h=mt=>mt,p=(mt,Tt)=>mt===Tt;function v(mt,...Tt){return(...xn)=>{const Nn=Tt.concat(xn);return mt.apply(null,Nn)}}const _=mt=>{mt()},O=c(!1),C=c(!0);class x{constructor(Tt,xn){this.tag=Tt,this.value=xn}static some(Tt){return new x(!0,Tt)}static none(){return x.singletonNone}fold(Tt,xn){return this.tag?xn(this.value):Tt()}isSome(){return this.tag}isNone(){return!this.tag}map(Tt){return this.tag?x.some(Tt(this.value)):x.none()}bind(Tt){return this.tag?Tt(this.value):x.none()}exists(Tt){return this.tag&&Tt(this.value)}forall(Tt){return!this.tag||Tt(this.value)}filter(Tt){return!this.tag||Tt(this.value)?this:x.none()}getOr(Tt){return this.tag?this.value:Tt}or(Tt){return this.tag?this:Tt}getOrThunk(Tt){return this.tag?this.value:Tt()}orThunk(Tt){return this.tag?this:Tt()}getOrDie(Tt){if(this.tag)return this.value;throw new Error(Tt??"Called getOrDie on None")}static from(Tt){return S(Tt)?x.some(Tt):x.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Tt){this.tag&&Tt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}x.singletonNone=new x(!1);const R=Object.keys,M=Object.hasOwnProperty,T=(mt,Tt)=>{const xn=R(mt);for(let Nn=0,yr=xn.length;Nn(Tt,xn)=>{mt[xn]=Tt},A=(mt,Tt,xn,Nn)=>{T(mt,(yr,so)=>{(Tt(yr,so)?xn:Nn)(yr,so)})},L=(mt,Tt)=>{const xn={};return A(mt,Tt,P(xn),m),xn},D=(mt,Tt)=>{const xn=[];return T(mt,(Nn,yr)=>{xn.push(Tt(Nn,yr))}),xn},k=mt=>D(mt,h),I=mt=>R(mt).length,z=(mt,Tt)=>$(mt,Tt)?x.from(mt[Tt]):x.none(),$=(mt,Tt)=>M.call(mt,Tt),Q=(mt,Tt)=>$(mt,Tt)&&mt[Tt]!==void 0&&mt[Tt]!==null,j=mt=>{for(const Tt in mt)if(M.call(mt,Tt))return!1;return!0},U=Array.prototype.indexOf,X=Array.prototype.push,te=(mt,Tt)=>U.call(mt,Tt),Z=(mt,Tt)=>te(mt,Tt)>-1,K=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn=[];for(let Nn=0;Nn{const xn=mt.length,Nn=new Array(xn);for(let yr=0;yr{for(let xn=0,Nn=mt.length;xn{for(let xn=mt.length-1;xn>=0;xn--){const Nn=mt[xn];Tt(Nn,xn)}},me=(mt,Tt)=>{const xn=[],Nn=[];for(let yr=0,so=mt.length;yr{const xn=[];for(let Nn=0,yr=mt.length;Nn(ee(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ae=(mt,Tt,xn)=>(Y(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ce=(mt,Tt,xn)=>{for(let Nn=0,yr=mt.length;Nnce(mt,Tt,O),ye=mt=>{const Tt=[];for(let xn=0,Nn=mt.length;xnye(q(mt,Tt)),_e=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn={};for(let Nn=0,yr=mt.length;NnTt>=0&&TtTe(mt,0),Ie=mt=>Te(mt,mt.length-1),ze=(mt,Tt)=>{for(let xn=0;xn{const Nn=(Tt||document).createElement("div");if(Nn.innerHTML=mt,!Nn.hasChildNodes()||Nn.childNodes.length>1){const yr="HTML does not have a single root node";throw console.error(yr,mt),new Error(yr)}return Ue(Nn.childNodes[0])},Re=(mt,Tt)=>{const Nn=(Tt||document).createElement(mt);return Ue(Nn)},We=(mt,Tt)=>{const Nn=(Tt||document).createTextNode(mt);return Ue(Nn)},Ue=mt=>{if(mt==null)throw new Error("Node cannot be null or undefined");return{dom:mt}},Ye={fromHtml:ke,fromTag:Re,fromText:We,fromDom:Ue,fromPoint:(mt,Tt,xn)=>x.from(mt.dom.elementFromPoint(Tt,xn)).map(Ue)},Je=(mt,Tt)=>{const xn=mt.dom;if(xn.nodeType!==$e)return!1;{const Nn=xn;if(Nn.matches!==void 0)return Nn.matches(Tt);if(Nn.msMatchesSelector!==void 0)return Nn.msMatchesSelector(Tt);if(Nn.webkitMatchesSelector!==void 0)return Nn.webkitMatchesSelector(Tt);if(Nn.mozMatchesSelector!==void 0)return Nn.mozMatchesSelector(Tt);throw new Error("Browser lacks native selectors")}},Me=mt=>mt.nodeType!==$e&&mt.nodeType!==Qe&&mt.nodeType!==Ve||mt.childElementCount===0,Fe=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?[]:q(xn.querySelectorAll(mt),Ye.fromDom)},je=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?x.none():x.from(xn.querySelector(mt)).map(Ye.fromDom)},tt=(mt,Tt)=>mt.dom===Tt.dom,ot=Je;typeof window<"u"||Function("return this;")();const Ge=mt=>mt.dom.nodeName.toLowerCase(),ht=mt=>mt.dom.nodeType,pt=mt=>Tt=>ht(Tt)===mt,St=mt=>ht(mt)===De||Ge(mt)==="#comment",Ft=pt($e),zt=pt(Oe),Yt=pt(Qe),ln=pt(Ve),tn=mt=>Tt=>Ft(Tt)&&Ge(Tt)===mt,Et=mt=>Ye.fromDom(mt.dom.ownerDocument),Ot=mt=>Yt(mt)?mt:Et(mt),cn=mt=>x.from(mt.dom.parentNode).map(Ye.fromDom),Cn=(mt,Tt)=>{const xn=w(Tt)?Tt:O;let Nn=mt.dom;const yr=[];for(;Nn.parentNode!==null&&Nn.parentNode!==void 0;){const so=Nn.parentNode,No=Ye.fromDom(so);if(yr.push(No),xn(No)===!0)break;Nn=so}return yr},Pn=mt=>x.from(mt.dom.previousSibling).map(Ye.fromDom),Sn=mt=>x.from(mt.dom.nextSibling).map(Ye.fromDom),vt=mt=>q(mt.dom.childNodes,Ye.fromDom),xt=(mt,Tt)=>{const xn=mt.dom.childNodes;return x.from(xn[Tt]).map(Ye.fromDom)},st=mt=>xt(mt,0),bt=mt=>ln(mt)&&S(mt.dom.host),Vt=mt=>Ye.fromDom(mt.dom.getRootNode()),Dt=mt=>{const Tt=Vt(mt);return bt(Tt)?x.some(Tt):x.none()},it=mt=>Ye.fromDom(mt.dom.host),at=mt=>{const Tt=zt(mt)?mt.dom.parentNode:mt.dom;if(Tt==null||Tt.ownerDocument===null)return!1;const xn=Tt.ownerDocument;return Dt(Ye.fromDom(Tt)).fold(()=>xn.body.contains(Tt),a(at,it))};var Bt=(mt,Tt,xn,Nn,yr)=>mt(xn,Nn)?x.some(xn):w(yr)&&yr(xn)?x.none():Tt(xn,Nn,yr);const _t=(mt,Tt,xn)=>{let Nn=mt.dom;const yr=w(xn)?xn:O;for(;Nn.parentNode;){Nn=Nn.parentNode;const so=Ye.fromDom(Nn);if(Tt(so))return x.some(so);if(yr(so))break}return x.none()},qt=(mt,Tt,xn)=>Bt((yr,so)=>so(yr),_t,mt,Tt,xn),en=(mt,Tt)=>{const xn=yr=>Tt(Ye.fromDom(yr));return de(mt.dom.childNodes,xn).map(Ye.fromDom)},Jt=(mt,Tt,xn)=>_t(mt,Nn=>Je(Nn,Tt),xn),Zt=(mt,Tt)=>en(mt,xn=>Je(xn,Tt)),Nt=(mt,Tt)=>je(Tt,mt),sn=(mt,Tt,xn)=>Bt((yr,so)=>Je(yr,so),Jt,mt,Tt,xn),rn=mt=>sn(mt,"[contenteditable]"),_n=(mt,Tt=!1)=>at(mt)?mt.dom.isContentEditable:rn(mt).fold(c(Tt),xn=>wn(xn)==="true"),wn=mt=>mt.dom.contentEditable,An=mt=>mt.nodeName.toLowerCase(),Kn=mt=>Ye.fromDom(mt.getBody()),fr=mt=>Tt=>tt(Tt,Kn(mt)),Un=mt=>mt?mt.replace(/px$/,""):"",Zn=mt=>/^\d+(\.\d+)?$/.test(mt)?mt+"px":mt,tr=mt=>Ye.fromDom(mt.selection.getStart()),Br=mt=>Ye.fromDom(mt.selection.getEnd()),$r=mt=>qt(mt,tn("table")).forall(_n),vr=(mt,Tt)=>pe(vt(mt),Tt),qn=(mt,Tt)=>{let xn=[];return Y(vt(mt),Nn=>{Tt(Nn)&&(xn=xn.concat([Nn])),xn=xn.concat(qn(Nn,Tt))}),xn},gr=(mt,Tt)=>vr(mt,xn=>Je(xn,Tt)),sr=(mt,Tt)=>Fe(Tt,mt),lr=(mt,Tt,xn)=>{if(s(xn)||u(xn)||y(xn))mt.setAttribute(Tt,xn+"");else throw console.error("Invalid call to Attribute.set. Key ",Tt,":: Value ",xn,":: Element ",mt),new Error("Attribute value was not simple")},zr=(mt,Tt,xn)=>{lr(mt.dom,Tt,xn)},Vr=(mt,Tt)=>{const xn=mt.dom;T(Tt,(Nn,yr)=>{lr(xn,yr,Nn)})},eo=(mt,Tt)=>{const xn=mt.dom.getAttribute(Tt);return xn===null?void 0:xn},Jr=(mt,Tt)=>x.from(eo(mt,Tt)),Yr=(mt,Tt)=>{mt.dom.removeAttribute(Tt)},to=mt=>ae(mt.dom.attributes,(Tt,xn)=>(Tt[xn.name]=xn.value,Tt),{}),co=(mt,Tt,xn=p)=>mt.exists(Nn=>xn(Nn,Tt)),Fo=mt=>{const Tt=[],xn=Nn=>{Tt.push(Nn)};for(let Nn=0;Nnmt.isSome()&&Tt.isSome()?x.some(xn(mt.getOrDie(),Tt.getOrDie())):x.none(),$o=mt=>mt.bind(h),Mo=(mt,Tt)=>mt?x.some(Tt):x.none(),pi=(mt,Tt)=>mt.substring(Tt),Hn=(mt,Tt,xn)=>Tt===""||mt.length>=Tt.length&&mt.substr(xn,xn+Tt.length)===Tt,ar=(mt,Tt)=>Dr(mt,Tt)?pi(mt,Tt.length):mt,Dr=(mt,Tt)=>Hn(mt,Tt,0),Zr=(mt=>Tt=>Tt.replace(mt,""))(/^\s+|\s+$/g),go=mt=>mt.length>0,oo=mt=>!go(mt),io=(mt,Tt=10)=>{const xn=parseInt(mt,Tt);return isNaN(xn)?x.none():x.some(xn)},Do=mt=>{const Tt=parseFloat(mt);return isNaN(Tt)?x.none():x.some(Tt)},jn=mt=>mt.style!==void 0&&w(mt.style.getPropertyValue),Rr=(mt,Tt,xn)=>{if(!s(xn))throw console.error("Invalid call to CSS.set. Property ",Tt,":: Value ",xn,":: Element ",mt),new Error("CSS value must be a string: "+xn);jn(mt)&&mt.style.setProperty(Tt,xn)},On=(mt,Tt)=>{jn(mt)&&mt.style.removeProperty(Tt)},Yn=(mt,Tt,xn)=>{const Nn=mt.dom;Rr(Nn,Tt,xn)},ir=(mt,Tt)=>{const xn=mt.dom,yr=window.getComputedStyle(xn).getPropertyValue(Tt);return yr===""&&!at(mt)?kr(xn,Tt):yr},kr=(mt,Tt)=>jn(mt)?mt.style.getPropertyValue(Tt):"",Er=(mt,Tt)=>{const xn=mt.dom,Nn=kr(xn,Tt);return x.from(Nn).filter(yr=>yr.length>0)},Gt=(mt,Tt)=>{const xn=mt.dom;On(xn,Tt),co(Jr(mt,"style").map(Zr),"")&&Yr(mt,"style")},on=(mt,Tt,xn=0)=>Jr(mt,Tt).map(Nn=>parseInt(Nn,10)).getOr(xn),an=(mt,Tt)=>Tn(mt,Tt,C),Tn=(mt,Tt,xn)=>ve(vt(mt),Nn=>Je(Nn,Tt)?xn(Nn)?[Nn]:[]:Tn(Nn,Tt,xn)),zn=["tfoot","thead","tbody","colgroup"],Gn=mt=>Z(zn,mt),Lr=(mt,Tt)=>({rows:mt,columns:Tt}),Ur=(mt,Tt,xn)=>({element:mt,rowspan:Tt,colspan:xn}),qr=(mt,Tt,xn,Nn,yr,so)=>({element:mt,rowspan:Tt,colspan:xn,row:Nn,column:yr,isLocked:so}),Cr=(mt,Tt,xn)=>({element:mt,cells:Tt,section:xn}),wo=(mt,Tt,xn,Nn)=>({startRow:mt,startCol:Tt,finishRow:xn,finishCol:Nn}),Nr=(mt,Tt,xn)=>({element:mt,colspan:Tt,column:xn}),Eo=(mt,Tt)=>({element:mt,columns:Tt}),zo=(mt,Tt,xn=O)=>{if(xn(Tt))return x.none();if(Z(mt,Ge(Tt)))return x.some(Tt);const Nn=yr=>Je(yr,"table")||xn(yr);return Jt(Tt,mt.join(","),Nn)},Qt=(mt,Tt)=>zo(["td","th"],mt,Tt),Mn=mt=>an(mt,"th,td"),Fn=mt=>Je(mt,"colgroup")?gr(mt,"col"):ve(Oo(mt),Tt=>gr(Tt,"col")),dr=(mt,Tt)=>sn(mt,"table",Tt),xr=mt=>an(mt,"tr"),Oo=mt=>dr(mt).fold(c([]),Tt=>gr(Tt,"colgroup")),mi=(mt,Tt)=>q(mt,xn=>{if(Ge(xn)==="colgroup"){const Nn=q(Fn(xn),yr=>{const so=on(yr,"span",1);return Ur(yr,1,so)});return Cr(xn,Nn,"colgroup")}else{const Nn=q(Mn(xn),yr=>{const so=on(yr,"rowspan",1),No=on(yr,"colspan",1);return Ur(yr,so,No)});return Cr(xn,Nn,Tt(xn))}}),Di=mt=>cn(mt).map(Tt=>{const xn=Ge(Tt);return Gn(xn)?xn:"tbody"}).getOr("tbody"),To=mt=>{const Tt=xr(mt),Nn=[...Oo(mt),...Tt];return mi(Nn,Di)},Ia="data-snooker-locked-cols",Ds=mt=>Jr(mt,Ia).bind(Tt=>x.from(Tt.match(/\d+/g))).map(Tt=>we(Tt,C)),fs=(mt,Tt)=>mt+","+Tt,zi=(mt,Tt,xn)=>x.from(mt.access[fs(Tt,xn)]),yl=(mt,Tt,xn)=>{const Nn=Bs(mt,yr=>xn(Tt,yr.element));return Nn.length>0?x.some(Nn[0]):x.none()},Bs=(mt,Tt)=>{const xn=ve(mt.all,Nn=>Nn.cells);return pe(xn,Tt)},yf=mt=>{const Tt={};let xn=0;return Y(mt.cells,Nn=>{const yr=Nn.colspan;re(yr,so=>{const No=xn+so;Tt[No]=Nr(Nn.element,yr,No)}),xn+=yr}),Tt},il=mt=>{const Tt={},xn=[],yr=Pe(mt).map(Jc=>Jc.element).bind(dr).bind(Ds).getOr({});let so=0,No=0,ui=0;const{pass:ga,fail:Sa}=me(mt,Jc=>Jc.section==="colgroup");Y(Sa,Jc=>{const Is=[];Y(Jc.cells,Hc=>{let Nl=0;for(;Tt[fs(ui,Nl)]!==void 0;)Nl++;const lh=Q(yr,Nl.toString()),r0=qr(Hc.element,Hc.rowspan,Hc.colspan,ui,Nl,lh);for(let ch=0;ch{const Is=yf(Jc);return{colgroups:[Eo(Jc.element,k(Is))],columns:Is}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Lr(so,No),access:Tt,all:xn,columns:ua,colgroups:Cs}},Bl={fromTable:mt=>{const Tt=To(mt);return il(Tt)},generate:il,getAt:zi,findItem:yl,filterItems:Bs,justCells:mt=>ve(mt.all,Tt=>Tt.cells),justColumns:mt=>k(mt.columns),hasColumns:mt=>R(mt.columns).length>0,getColumnAt:(mt,Tt)=>x.from(mt.columns[Tt])};var Tc=tinymce.util.Tools.resolve("tinymce.util.Tools");const iu=(mt,Tt,xn)=>{const Nn=mt.select("td,th",Tt);let yr;for(let so=0;so{Tc.each("left center right".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("align"+Nn,{},Tt)}),xn&&mt.formatter.apply("align"+xn,{},Tt)},zf=(mt,Tt,xn)=>{Tc.each("top middle bottom".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("valign"+Nn,{},Tt)}),xn&&mt.formatter.apply("valign"+xn,{},Tt)},_s=(mt,Tt,xn)=>{mt.dispatch("TableModified",{...xn,table:Tt})},ma=(mt,Tt)=>Do(mt).getOr(Tt),mu=(mt,Tt,xn)=>ma(ir(mt,Tt),xn),Uc=(mt,Tt,xn,Nn)=>{const yr=mu(mt,`padding-${xn}`,0),so=mu(mt,`padding-${Nn}`,0),No=mu(mt,`border-${xn}-width`,0),ui=mu(mt,`border-${Nn}-width`,0);return Tt-yr-so-No-ui},Kf=(mt,Tt)=>{const xn=mt.dom,Nn=xn.getBoundingClientRect().width||xn.offsetWidth;return Tt==="border-box"?Nn:Uc(mt,Nn,"left","right")},Wl=mt=>Kf(mt,"content-box");var Ml=tinymce.util.Tools.resolve("tinymce.Env");const Jf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",Nf=re(5,mt=>{const Tt=`${mt+1}px`;return{title:Tt,value:Tt}}),Jl=q(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],mt=>({title:mt,value:mt.toLowerCase()})),Gh="100%",ll=mt=>{var Tt;const xn=mt.dom,Nn=(Tt=xn.getParent(mt.selection.getStart(),xn.isBlock))!==null&&Tt!==void 0?Tt:mt.getBody();return Wl(Ye.fromDom(Nn))+"px"},Tu=(mt,Tt)=>oh(mt)||!bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},gu=(mt,Tt)=>oh(mt)||bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},ec=mt=>Tt=>Tt.options.get(mt),Dc=mt=>{const Tt=mt.options.register;Tt("table_border_widths",{processor:"object[]",default:Nf}),Tt("table_border_styles",{processor:"object[]",default:Jl}),Tt("table_cell_advtab",{processor:"boolean",default:!0}),Tt("table_row_advtab",{processor:"boolean",default:!0}),Tt("table_advtab",{processor:"boolean",default:!0}),Tt("table_appearance_options",{processor:"boolean",default:!0}),Tt("table_grid",{processor:"boolean",default:!Ml.deviceType.isTouch()}),Tt("table_cell_class_list",{processor:"object[]",default:[]}),Tt("table_row_class_list",{processor:"object[]",default:[]}),Tt("table_class_list",{processor:"object[]",default:[]}),Tt("table_toolbar",{processor:"string",default:Jf}),Tt("table_background_color_map",{processor:"object[]",default:[]}),Tt("table_border_color_map",{processor:"object[]",default:[]})},tc=ec("table_sizing_mode"),Lp=ec("table_border_widths"),rh=ec("table_border_styles"),rf=ec("table_cell_advtab"),of=ec("table_row_advtab"),bf=ec("table_advtab"),vu=ec("table_appearance_options"),$d=ec("table_grid"),bl=ec("table_style_by_css"),Zu=ec("table_cell_class_list"),Kh=ec("table_row_class_list"),Cu=ec("table_class_list"),ed=ec("table_toolbar"),Bu=ec("table_background_color_map"),vd=ec("table_border_color_map"),cs=mt=>tc(mt)==="fixed",oh=mt=>tc(mt)==="responsive",Jh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_styles");return Tt.isSet("table_default_styles")?xn:Tu(mt,xn)},xh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_attributes");return Tt.isSet("table_default_attributes")?xn:gu(mt,xn)},xf=(mt,Tt)=>Tt.column>=mt.startCol&&Tt.column+Tt.colspan-1<=mt.finishCol&&Tt.row>=mt.startRow&&Tt.row+Tt.rowspan-1<=mt.finishRow,ep=(mt,Tt)=>{let xn=!0;const Nn=v(xf,Tt);for(let yr=Tt.startRow;yr<=Tt.finishRow;yr++)for(let so=Tt.startCol;so<=Tt.finishCol;so++)xn=xn&&Bl.getAt(mt,yr,so).exists(Nn);return xn?x.some(Tt):x.none()},_r=(mt,Tt)=>wo(Math.min(mt.row,Tt.row),Math.min(mt.column,Tt.column),Math.max(mt.row+mt.rowspan-1,Tt.row+Tt.rowspan-1),Math.max(mt.column+mt.colspan-1,Tt.column+Tt.colspan-1)),Ff=(mt,Tt,xn)=>{const Nn=Bl.findItem(mt,Tt,tt),yr=Bl.findItem(mt,xn,tt);return Nn.bind(so=>yr.map(No=>_r(so,No)))},yd=(mt,Tt,xn)=>Ff(mt,Tt,xn).bind(Nn=>ep(mt,Nn)),bd=(mt,Tt,xn)=>{const Nn=_h(mt);return yd(Nn,Tt,xn)},_h=Bl.fromTable,zu=(mt,Tt)=>{cn(mt).each(Nn=>{Nn.dom.insertBefore(Tt.dom,mt.dom)})},va=(mt,Tt)=>{Sn(mt).fold(()=>{cn(mt).each(yr=>{_f(yr,Tt)})},Nn=>{zu(Nn,Tt)})},El=(mt,Tt)=>{st(mt).fold(()=>{_f(mt,Tt)},Nn=>{mt.dom.insertBefore(Tt.dom,Nn.dom)})},_f=(mt,Tt)=>{mt.dom.appendChild(Tt.dom)},$f=(mt,Tt)=>{zu(mt,Tt),_f(Tt,mt)},ih=(mt,Tt)=>{Y(Tt,(xn,Nn)=>{const yr=Nn===0?mt:Tt[Nn-1];va(yr,xn)})},yu=(mt,Tt)=>{Y(Tt,xn=>{_f(mt,xn)})},jc=mt=>{const Tt=mt.dom;Tt.parentNode!==null&&Tt.parentNode.removeChild(Tt)},Nh=mt=>{const Tt=vt(mt);Tt.length>0&&ih(mt,Tt),jc(mt)},td=((mt,Tt)=>{const xn=so=>{if(!mt(so))throw new Error("Can only get "+Tt+" value of a "+Tt+" node");return Nn(so).getOr("")},Nn=so=>mt(so)?x.from(so.dom.nodeValue):x.none();return{get:xn,getOption:Nn,set:(so,No)=>{if(!mt(so))throw new Error("Can only set raw "+Tt+" value of a "+Tt+" node");so.dom.nodeValue=No}}})(zt,"text"),sf=mt=>td.get(mt),Bc=(mt,Tt)=>td.set(mt,Tt);var Vd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],xd=()=>{const mt=Sa=>Ye.fromDom(Sa.dom.cloneNode(!1)),Tt=Sa=>Ot(Sa).dom,xn=Sa=>Ft(Sa)?Ge(Sa)==="body"?!0:Z(Vd,Ge(Sa)):!1,Nn=Sa=>Ft(Sa)?Z(["br","img","hr","input"],Ge(Sa)):!1,yr=Sa=>Ft(Sa)&&eo(Sa,"contenteditable")==="false",so=(Sa,ua)=>Sa.dom.compareDocumentPosition(ua.dom),No=(Sa,ua)=>{const Cs=to(Sa);Vr(ua,Cs)},ui=Sa=>{const ua=Ge(Sa);return Z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],ua)},ga=Sa=>Ft(Sa)?Jr(Sa,"lang"):x.none();return{up:c({selector:Jt,closest:sn,predicate:_t,all:Cn}),down:c({selector:sr,predicate:qn}),styles:c({get:ir,getRaw:Er,set:Yn,remove:Gt}),attrs:c({get:eo,set:zr,remove:Yr,copyTo:No}),insert:c({before:zu,after:va,afterAll:ih,append:_f,appendAll:yu,prepend:El,wrap:$f}),remove:c({unwrap:Nh,remove:jc}),create:c({nu:Ye.fromTag,clone:mt,text:Ye.fromText}),query:c({comparePosition:so,prevSibling:Pn,nextSibling:Sn}),property:c({children:vt,name:Ge,parent:cn,document:Tt,isText:zt,isComment:St,isElement:Ft,isSpecial:ui,getLanguage:ga,getText:sf,setText:Bc,isBoundary:xn,isEmptyTag:Nn,isNonEditable:yr}),eq:tt,is:ot}};const vc=(mt,Tt,xn,Nn)=>{const yr=xn[0],so=xn.slice(1);return Nn(mt,Tt,yr,so)},gs=(mt,Tt,xn)=>xn.length>0?vc(mt,Tt,xn,yc):x.none(),yc=(mt,Tt,xn,Nn)=>{const yr=Tt(mt,xn);return se(Nn,(so,No)=>{const ui=Tt(mt,No);return Cc(mt,so,ui)},yr)},Cc=(mt,Tt,xn)=>Tt.bind(Nn=>xn.filter(v(mt.eq,Nn))),Nu=gs,Gs=xd(),Ks=(mt,Tt)=>Nu(Gs,(xn,Nn)=>mt(Nn),Tt),Ac=mt=>Jt(mt,"table"),_d=(mt,Tt)=>{const xn=sr(mt,Tt);return xn.length>0?x.some(xn):x.none()},Fh=(mt,Tt,xn)=>Nt(mt,Tt).bind(Nn=>Nt(mt,xn).bind(yr=>Ks(Ac,[Nn,yr]).map(so=>({first:Nn,last:yr,table:so})))),$h=(mt,Tt)=>_d(mt,Tt),vp=(mt,Tt,xn)=>Fh(mt,Tt,xn).bind(Nn=>{const yr=ga=>tt(mt,ga),so="thead,tfoot,tbody,table",No=Jt(Nn.first,so,yr),ui=Jt(Nn.last,so,yr);return No.bind(ga=>ui.bind(Sa=>tt(ga,Sa)?bd(Nn.table,Nn.first,Nn.last):x.none()))}),ah=mt=>q(mt,Ye.fromDom),Au="data-mce-selected",lf="td["+Au+"],th["+Au+"]",wf="data-mce-first-selected",vs="td["+wf+"],th["+wf+"]",cl="data-mce-last-selected",bc="td["+cl+"],th["+cl+"]",nc={selected:Au,selectedSelector:lf,firstSelected:wf,firstSelectedSelector:vs,lastSelected:cl,lastSelectedSelector:bc},Qc=mt=>dr(mt).bind(Tt=>$h(Tt,nc.firstSelectedSelector)).fold(c(mt),Tt=>Tt[0]),ts=mt=>(Tt,xn)=>{const Nn=Ge(Tt),yr=Nn==="col"||Nn==="colgroup"?Qc(Tt):Tt;return sn(yr,mt,xn)},wi=ts("th,td,caption"),bu=ts("th,td"),wd=mt=>ah(mt.model.table.getSelectedCells()),Ol=(mt,Tt)=>{const xn=bu(mt),Nn=xn.bind(yr=>dr(yr)).map(yr=>xr(yr));return _o(xn,Nn,(yr,so)=>pe(so,No=>K(ah(No.dom.cells),ui=>eo(ui,Tt)==="1"||tt(ui,yr)))).getOr([])},ds=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],zc=mt=>({value:aa(mt)}),Ud=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,cf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Of=mt=>Ud.test(mt)||cf.test(mt),aa=mt=>ar(mt,"#").toUpperCase(),rs=mt=>Of(mt)?x.some({value:aa(mt)}):x.none(),Mu=mt=>{const Tt=mt.toString(16);return(Tt.length===1?"0"+Tt:Tt).toUpperCase()},Ri=mt=>{const Tt=Mu(mt.red)+Mu(mt.green)+Mu(mt.blue);return zc(Tt)},Gc=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,qu=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,zl=(mt,Tt,xn,Nn)=>({red:mt,green:Tt,blue:xn,alpha:Nn}),xc=(mt,Tt,xn,Nn)=>{const yr=parseInt(mt,10),so=parseInt(Tt,10),No=parseInt(xn,10),ui=parseFloat(Nn);return zl(yr,so,No,ui)},Kc=mt=>{const Tt=Gc.exec(mt);if(Tt!==null)return x.some(xc(Tt[1],Tt[2],Tt[3],"1"));const xn=qu.exec(mt);return xn!==null?x.some(xc(xn[1],xn[2],xn[3],xn[4])):x.none()},jd=mt=>rs(mt).orThunk(()=>Kc(mt).map(Ri)).getOrThunk(()=>{const Tt=document.createElement("canvas");Tt.height=1,Tt.width=1;const xn=Tt.getContext("2d");xn.clearRect(0,0,Tt.width,Tt.height),xn.fillStyle="#FFFFFF",xn.fillStyle=mt,xn.fillRect(0,0,1,1);const Nn=xn.getImageData(0,0,1,1).data,yr=Nn[0],so=Nn[1],No=Nn[2],ui=Nn[3];return Ri(zl(yr,so,No,ui))}),ii=mt=>Kc(mt).map(Ri).map(Tt=>"#"+Tt.value).getOr(mt),nd=mt=>{let Tt=mt;return{get:()=>Tt,set:yr=>{Tt=yr}}},al=mt=>{const Tt=nd(x.none()),xn=()=>Tt.get().each(mt);return{clear:()=>{xn(),Tt.set(x.none())},isSet:()=>Tt.get().isSome(),get:()=>Tt.get(),set:ui=>{xn(),Tt.set(x.some(ui))}}},Yl=()=>al(mt=>mt.unbind()),uf=(mt,Tt,xn)=>Nn=>{const yr=Yl(),so=oo(xn),No=()=>{const ui=wd(mt),ga=Sa=>mt.formatter.match(Tt,{value:xn},Sa.dom,so);so?(Nn.setActive(!K(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Sa=>Nn.setActive(!Sa),!0))):(Nn.setActive(_e(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Nn.setActive,!1,{value:xn})))};return mt.initialized?No():mt.on("init",No),yr.clear},hs=mt=>Q(mt,"menu"),Mc=mt=>q(mt,Tt=>{const xn=Tt.text||Tt.title||"";return hs(Tt)?{text:xn,items:Mc(Tt.menu)}:{text:xn,value:Tt.value}}),Eu=mt=>mt.length?x.some(Mc([{text:"Select...",value:"mce-no-match"},...mt])):x.none(),xu=(mt,Tt,xn,Nn)=>q(Tt,yr=>{const so=yr.text||yr.title;return hs(yr)?{type:"nestedmenuitem",text:so,getSubmenuItems:()=>xu(mt,yr.menu,xn,Nn)}:{text:so,type:"togglemenuitem",onAction:()=>Nn(yr.value),onSetup:uf(mt,xn,yr.value)}}),ws=(mt,Tt)=>xn=>{mt.execCommand("mceTableApplyCellStyle",!1,{[Tt]:xn})},Fu=mt=>ve(mt,Tt=>hs(Tt)?[{...Tt,menu:Fu(Tt.menu)}]:go(Tt.value)?[Tt]:[]),su=(mt,Tt,xn,Nn)=>yr=>yr(xu(mt,Tt,xn,Nn)),Ca=(mt,Tt,xn)=>{const Nn=q(Tt,yr=>({text:yr.title,value:"#"+jd(yr.value).value,type:"choiceitem"}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:Nn.length>0?Nn:void 0,allowCustomColors:!1},onAction:yr=>{const so=yr.value==="remove"?"":yr.value;mt.execCommand("mceTableApplyCellStyle",!1,{[xn]:so})}}]},Ls=mt=>()=>{const xn=mt.queryCommandValue("mceTableRowType")==="header"?"body":"header";mt.execCommand("mceTableRowType",!1,{type:xn})},Ec=mt=>()=>{const xn=mt.queryCommandValue("mceTableColType")==="th"?"td":"th";mt.execCommand("mceTableColType",!1,{type:xn})},_u=mt=>Eu(Zu(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),wt=[{name:"width",type:"input",label:"Width"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ds}],Kt=mt=>wt.concat(_u(mt).toArray()),En=(mt,Tt)=>{const Nn=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Mc(rh(mt)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:Tt==="cell"?[{name:"borderwidth",type:"input",label:"Border width"}].concat(Nn):Nn}},wr={normal:(mt,Tt)=>{const xn=mt.dom;return{setAttrib:(No,ui)=>{xn.setAttrib(Tt,No,ui)},setStyle:(No,ui)=>{xn.setStyle(Tt,No,ui)},setFormat:(No,ui)=>{ui===""?mt.formatter.remove(No,{value:null},Tt,!0):mt.formatter.apply(No,{value:ui},Tt)}}}},uo=tn("th"),Bi=(mt,Tt)=>mt&&Tt?"sectionCells":mt?"section":"cells",ya=mt=>{const Tt=mt.section==="thead",xn=co(Ni(mt.cells),"th");return mt.section==="tfoot"?{type:"footer"}:Tt||xn?{type:"header",subType:Bi(Tt,xn)}:{type:"body"}},Ni=mt=>{const Tt=pe(mt,xn=>uo(xn.element));return Tt.length===0?x.some("td"):Tt.length===mt.length?x.some("th"):x.none()},Qi=mt=>{const Tt=q(mt,yr=>ya(yr).type),xn=Z(Tt,"header"),Nn=Z(Tt,"footer");if(!xn&&!Nn)return x.some("body");{const yr=Z(Tt,"body");return xn&&!yr&&!Nn?x.some("header"):!xn&&!yr&&Nn?x.some("footer"):x.none()}},Ws=mt=>{let Tt=!1,xn;return(...Nn)=>(Tt||(Tt=!0,xn=mt.apply(null,Nn)),xn)},nl=(mt,Tt)=>ze(mt.all,xn=>de(xn.cells,Nn=>tt(Tt,Nn.element))),Fs=(mt,Tt,xn)=>{const Nn=q(Tt.selection,so=>Qt(so).bind(No=>nl(mt,No)).filter(xn)),yr=Fo(Nn);return Mo(yr.length>0,yr)},Wu=(mt,Tt)=>Tt.mergable,Ki=(mt,Tt)=>Tt.unmergable,Aa=(mt,Tt)=>Fs(mt,Tt,C),Pl=(mt,Tt)=>nl(mt,Tt).exists(xn=>!xn.isLocked),Vf=(mt,Tt)=>_e(Tt,xn=>Pl(mt,xn)),sh=(mt,Tt)=>Wu(mt,Tt).filter(xn=>Vf(mt,xn.cells)),_c=(mt,Tt)=>Ki(mt,Tt).filter(xn=>Vf(mt,xn));({...{generate:mt=>{if(!n(mt))throw new Error("cases must be an array");if(mt.length===0)throw new Error("there must be at least one case");const Tt=[],xn={};return Y(mt,(Nn,yr)=>{const so=R(Nn);if(so.length!==1)throw new Error("one and only one name per case");const No=so[0],ui=Nn[No];if(xn[No]!==void 0)throw new Error("duplicate key detected:"+No);if(No==="cata")throw new Error("cannot have a case named cata (sorry)");if(!n(ui))throw new Error("case arguments must be an array");Tt.push(No),xn[No]=(...ga)=>{const Sa=ga.length;if(Sa!==ui.length)throw new Error("Wrong number of arguments to case "+No+". Expected "+ui.length+" ("+ui+"), got "+Sa);return{fold:(...Cs)=>{if(Cs.length!==mt.length)throw new Error("Wrong number of arguments to fold. Expected "+mt.length+", got "+Cs.length);return Cs[yr].apply(null,ga)},match:Cs=>{const ul=R(Cs);if(Tt.length!==ul.length)throw new Error("Wrong number of arguments to match. Expected: "+Tt.join(",")+` +The conflicting element is`+(Gn(fn.element)?" ":" not ")+"already in the DOM")},Se=Lt=>{const Ht=W(Lt);pt(N,Ht)&&fe(Lt,Ht);const fn=[Lt];l.registerId(fn,Ht,Lt.events),N[Ht]=Lt},Be=Lt=>{sm(Lt.element).each(Ht=>{delete N[Ht],l.unregisterId(Ht)})};return{find:(Lt,Ht,fn)=>l.find(Lt,Ht,fn),filter:Lt=>l.filterByType(Lt),register:Se,unregister:Be,getById:Lt=>Ge(N,Lt)}},Iv=Qp({name:"Container",factory:l=>{const{attributes:N,...W}=l.dom;return{uid:l.uid,dom:{tag:"div",attributes:{role:"presentation",...N},...W},components:l.components,behaviours:Aw(l.containerBehaviours),events:l.events,domModification:l.domModification,eventOrder:l.eventOrder}},configFields:[Ar("components",[]),Pd("containerBehaviours",[]),Ar("events",{}),Ar("domModification",{}),Ar("eventOrder",{})]}),m5=l=>{const N=br=>Dr(l.element).fold(k,Fr=>_o(br,Fr)),W=xG(),fe=(br,Fr)=>W.find(N,br,Fr),Se=mS(l.element,{triggerEvent:(br,Fr)=>am(br,Fr.target,jr=>gG(fe,br,Fr,jr))}),Be={debugInfo:x("real"),triggerEvent:(br,Fr,jr)=>{am(br,Fr,Ro=>uF(fe,br,jr,Fr,Ro))},triggerFocus:(br,Fr)=>{sm(br).fold(()=>{Md(br)},jr=>{am(Oh(),br,Ro=>(h5(fe,Oh(),{originator:Fr,kill:v,prevent:v,target:br},br,Ro),!1))})},triggerEscape:(br,Fr)=>{Be.triggerEvent("keydown",br.element,Fr.event)},getByUid:br=>cr(br),getByDom:br=>Xr(br),build:ka,buildOrPatch:ra,addToGui:br=>{yt(br)},removeFromGui:br=>{Lt(br)},addToWorld:br=>{qe(br)},removeFromWorld:br=>{ft(br)},broadcast:br=>{Rn(br)},broadcastOn:(br,Fr)=>{Bn(br,Fr)},broadcastEvent:(br,Fr)=>{er(br,Fr)},isConnected:k},qe=br=>{br.connect(Be),zr(br.element)||(W.register(br),q(br.components(),qe),Be.triggerEvent(K0(),br.element,{target:br.element}))},ft=br=>{zr(br.element)||(q(br.components(),ft),W.unregister(br)),br.disconnect()},yt=br=>{Eg(l,br)},Lt=br=>{kv(br)},Ht=()=>{Se.unbind(),gs(l.element)},fn=br=>{const Fr=W.filter(yp());q(Fr,jr=>{const Ro=jr.descHandler;pv(Ro)(br)})},Rn=br=>{fn({universal:!0,data:br})},Bn=(br,Fr)=>{fn({universal:!1,channels:br,data:Fr})},er=(br,Fr)=>{const jr=W.filter(br);return p5(jr,Fr)},cr=br=>W.getById(br).fold(()=>aa.error(new Error('Could not find component with uid: "'+br+'" in system.')),aa.value),Xr=br=>{const Fr=sm(br).getOr("not found");return cr(Fr)};return qe(l),{root:l,element:l.element,destroy:Ht,add:yt,remove:Lt,getByUid:cr,getByDom:Xr,addToWorld:qe,removeFromWorld:ft,broadcast:Rn,broadcastOn:Bn,broadcastEvent:er}},_G=(l,N)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:re(l.items,N.interpreter)}),wG=x([Ar("prefix","form-field"),Pd("fieldBehaviours",[Xs,Ei])]),OG=x([mm({schema:[pn("dom")],name:"label"}),mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),mh({factory:{sketch:l=>{const N=ga(l,["factory"]);return l.factory.sketch(N)}},schema:[pn("factory")],name:"field"})]),fF=(l,N,W,fe)=>{const Se=Rd(l.fieldBehaviours,[Xs.config({find:ft=>Jo(ft,l,"field")}),Ei.config({store:{mode:"manual",getValue:ft=>Xs.getCurrent(ft).bind(Ei.getValue),setValue:(ft,yt)=>{Xs.getCurrent(ft).each(Lt=>{Ei.setValue(Lt,yt)})}}})]),Be=Rl([wc((ft,yt)=>{const Lt=YC(ft,l,["label","field","aria-descriptor"]);Lt.field().each(Ht=>{const fn=Li(l.prefix);Lt.label().each(Rn=>{Cr(Rn.element,"for",fn),Cr(Ht.element,"id",fn)}),Lt["aria-descriptor"]().each(Rn=>{const Bn=Li(l.prefix);Cr(Rn.element,"id",Bn),Cr(Ht.element,"aria-describedby",Bn)})})})]),qe={getField:ft=>Jo(ft,l,"field"),getLabel:ft=>Jo(ft,l,"label")};return{uid:l.uid,dom:l.dom,components:N,behaviours:Se,events:Be,apis:qe}},Il=Zh({name:"FormField",configFields:wG(),partFields:OG(),factory:fF,apis:{getField:(l,N)=>l.getField(N),getLabel:(l,N)=>l.getLabel(N)}});var SG=tinymce.util.Tools.resolve("tinymce.html.Entities");const g5=(l,N,W,fe)=>{const Se=kG(l,N,W,fe);return Il.sketch(Se)},dF=(l,N)=>g5(l,N,[],[]),kG=(l,N,W,fe)=>({dom:hF(W),components:l.toArray().concat([N]),fieldBehaviours:ei(fe)}),TG=()=>hF([]),hF=l=>({tag:"div",classes:["tox-form__group"].concat(l)}),H2=(l,N)=>Il.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l))]}),xm=Li("form-component-change"),vS=Li("form-close"),cx=Li("form-cancel"),Ny=Li("form-action"),v5=Li("form-submit"),T7=Li("form-block"),C7=Li("form-unblock"),pF=Li("form-tabchange"),A7=Li("form-resize"),yS=(l,N,W)=>{const fe=l.label.map(Bn=>H2(Bn,N)),Se=N.icons(),Be=Bn=>{var er;return(er=Se[Bn])!==null&&er!==void 0?er:Bn},qe=Bn=>(er,cr)=>{Sc(cr.event.target,"[data-collection-item-value]").each(Xr=>{Bn(er,cr,Xr,Nr(Xr,"data-collection-item-value"))})},ft=(Bn,er)=>{const cr=re(er,Fr=>{const jr=Dg.translate(Fr.text),Ro=l.columns===1?`
    ${jr}
    `:"",ko=`
    ${Be(Fr.icon)}
    `,_i={_:" "," - ":" ","-":" "},Pi=jr.replace(/\_| \- |\-/g,$i=>_i[$i]),Ao=N.isDisabled()?" tox-collection__item--state-disabled":"";return`
    ${ko}${Ro}
    `}),Xr=l.columns!=="auto"&&l.columns>1?K(cr,l.columns):[cr],br=re(Xr,Fr=>`
    ${Fr.join("")}
    `);d0(Bn.element,br.join(""))},yt=qe((Bn,er,cr,Xr)=>{er.stop(),N.isDisabled()||sa(Bn,Ny,{name:l.name,value:Xr})}),Lt=[Lo(wu(),qe((Bn,er,cr)=>{Md(cr)})),Lo(H1(),yt),Lo(Lm(),yt),Lo(Dp(),qe((Bn,er,cr)=>{qa(Bn.element,"."+$2).each(Xr=>{Zc(Xr,$2)}),uc(cr,$2)})),Lo(Rm(),qe(Bn=>{qa(Bn.element,"."+$2).each(er=>{Zc(er,$2),m1(er)})})),kh(qe((Bn,er,cr,Xr)=>{sa(Bn,Ny,{name:l.name,value:Xr})}))],Ht=(Bn,er)=>re(Yd(Bn.element,".tox-collection__item"),er),fn=Il.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(l.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:R},behaviours:ei([he.config({disabled:N.isDisabled,onDisabled:Bn=>{Ht(Bn,er=>{uc(er,"tox-collection__item--state-disabled"),Cr(er,"aria-disabled",!0)})},onEnabled:Bn=>{Ht(Bn,er=>{Zc(er,"tox-collection__item--state-disabled"),Qt(er,"aria-disabled")})}}),Id(),Fa.config({}),Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Bn=>{qa(Bn.element,"."+$2+"[data-mce-tooltip]").each(er=>{Eo(er,"data-mce-tooltip").each(cr=>{Vu.setComponents(Bn,N.tooltips.getComponents({tooltipText:cr}))})})}}),mode:"children-keyboard-focus",anchor:Bn=>({type:"node",node:qa(Bn.element,"."+$2).orThunk(()=>Vs(".tox-collection__item")),root:Bn.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),Ei.config({store:{mode:"memory",initialValue:W.getOr([])},onSetValue:(Bn,er)=>{ft(Bn,er),l.columns==="auto"&&QP(Bn,5,"tox-collection__item").each(({numRows:cr,numColumns:Xr})=>{ha.setGridSize(Bn,cr,Xr)}),Za(Bn,A7)}}),Rc.config({}),ha.config(AX(l.columns,"normal")),Ka("collection-events",Lt)]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","collection-events"],[Dp()]:["collection-events","tooltipping"]}});return g5(fe,fn,["tox-form__group--collection"],[])},CG=["input","textarea"],mF=l=>{const N=vr(l);return X(CG,N)},gF=(l,N)=>{const W=N.getRoot(l).getOr(l.element);Zc(W,N.invalidClass),N.notify.each(fe=>{mF(l.element)&&Cr(l.element,"aria-invalid",!1),fe.getContainer(l).each(Se=>{d0(Se,fe.validHtml)}),fe.onValid(l)})},y5=(l,N,W,fe)=>{const Se=N.getRoot(l).getOr(l.element);uc(Se,N.invalidClass),N.notify.each(Be=>{mF(l.element)&&Cr(l.element,"aria-invalid",!0),Be.getContainer(l).each(qe=>{d0(qe,fe)}),Be.onInvalid(l,fe)})},zg=(l,N,W)=>N.validator.fold(()=>Ih.pure(aa.value(!0)),fe=>fe.validate(l)),b5=(l,N,W)=>(N.notify.each(fe=>{fe.onValidate(l)}),zg(l,N).map(fe=>l.getSystem().isConnected()?fe.fold(Se=>(y5(l,N,W,Se),aa.error(Se)),Se=>(gF(l,N),aa.value(Se))):aa.error("No longer in system")));var MG=Object.freeze({__proto__:null,markValid:gF,markInvalid:y5,query:zg,run:b5,isInvalid:(l,N)=>{const W=N.getRoot(l).getOr(l.element);return rp(W,N.invalidClass)}}),EG=Object.freeze({__proto__:null,events:(l,N)=>l.validator.map(W=>Rl([Lo(W.onEvent,fe=>{b5(fe,l,N).get(R)})].concat(W.validateOnLoad?[wc(fe=>{b5(fe,l,N).get(v)})]:[]))).getOr({})}),PG=[pn("invalidClass"),Ar("getRoot",I.none),Ai("notify",[Ar("aria","alert"),Ar("getContainer",I.none),Ar("validHtml",""),Ss("onValid"),Ss("onInvalid"),Ss("onValidate")]),Ai("validator",[pn("validate"),Ar("onEvent","input"),Ar("validateOnLoad",!0)])];const Dv=id({fields:PG,name:"invalidating",active:EG,apis:MG,extra:{validation:l=>N=>{const W=Ei.getValue(N);return Ih.pure(l(W))}}});var LG=Object.freeze({__proto__:null,events:()=>Rl([zx(db(),k)]),exhibit:()=>np({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const bS=id({fields:[],name:"unselecting",active:LG}),IG=(l,N)=>L0.sketch({dom:l.dom,components:l.components,toggleClass:"mce-active",dropdownBehaviours:ei([E1.button(N.providers.isDisabled),Id(),bS.config({}),Rc.config({})]),layouts:l.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:N.getSink,fetch:W=>Ih.nu(fe=>l.fetch(fe)).map(fe=>I.from(cA(ws(g7(Li("menu-value"),fe,Se=>{l.onItemAction(W,Se)},l.columns,l.presets,A1.CLOSE_ON_EXECUTE,D,N.providers),{movement:oA(l.columns,l.presets)})))),parts:{menu:Xk(!1,1,l.presets)}}),M7=Li("color-input-change"),E7=Li("color-swatch-change"),P7=Li("color-picker-cancel"),DG=(l,N,W,fe)=>{const Se=Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],data:fe,onSetValue:Lt=>Dv.run(Lt).get(v),inputBehaviours:ei([he.config({disabled:N.providers.isDisabled}),Id(),Rc.config({}),Dv.config({invalidClass:"tox-textbox-field-invalid",getRoot:Lt=>Zr(Lt.element),notify:{onValid:Lt=>{const Ht=Ei.getValue(Lt);sa(Lt,M7,{color:Ht})}},validator:{validateOnLoad:!1,validate:Lt=>{const Ht=Ei.getValue(Lt);if(Ht.length===0)return Ih.pure(aa.value(!0));{const fn=Nt.fromTag("span");xr(fn,"background-color",Ht);const Rn=Ia(fn,"background-color").fold(()=>aa.error("blah"),Bn=>aa.value(Ht));return Ih.pure(Rn)}}}})]),selectOnFocus:!1}),Be=l.label.map(Lt=>H2(Lt,N.providers)),qe=(Lt,Ht)=>{sa(Lt,E7,{value:Ht})},ft=(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{Ht==="custom"?W.colorPicker(Rn=>{Rn.fold(()=>Za(fn,P7),Bn=>{qe(fn,Bn),RN(l.storageKey,Bn)})},"#ffffff"):Ht==="remove"?qe(fn,""):qe(fn,Ht)})},yt=ml(IG({dom:{tag:"span",attributes:{"aria-label":N.providers.translate("Color swatch")}},layouts:{onRtl:()=>[$c,Lu,Iu],onLtr:()=>[Lu,$c,Iu]},components:[],fetch:$N(W.getColors(l.storageKey),l.storageKey,W.hasCustomColors()),columns:W.getColorCols(l.storageKey),presets:"color",onItemAction:ft},N));return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Be.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[Se,yt.asSpec()]}]),fieldBehaviours:ei([Ka("form-field-events",[Lo(M7,(Lt,Ht)=>{yt.getOpt(Lt).each(fn=>{xr(fn.element,"background-color",Ht.event.color)}),sa(Lt,xm,{name:l.name})}),Lo(E7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Ei.setValue(fn,Ht.event.value),Xs.getCurrent(Lt).each(Ra.focus)})}),Lo(P7,(Lt,Ht)=>{Il.getField(Lt).each(fn=>{Xs.getCurrent(Lt).each(Ra.focus)})})])])})},BG=mm({schema:[pn("dom")],name:"label"}),Z2=l=>mm({name:""+l+"-edge",overrides:N=>N.model.manager.edgeActions[l].fold(()=>({}),fe=>({events:Rl([Nm(Uh(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(Nc(),(Se,Be,qe)=>fe(Se,qe),[N]),Nm(o0(),(Se,Be,qe)=>{qe.mouseIsDown.get()&&fe(Se,qe)},[N])])}))}),zG=Z2("top-left"),NG=Z2("top"),FG=Z2("top-right"),R7=Z2("right"),$G=Z2("bottom-right"),VG=Z2("bottom"),vF=Z2("bottom-left"),UG=Z2("left"),jG=mh({name:"thumb",defaults:x({dom:{styles:{position:"absolute"}}}),overrides:l=>({events:Rl([c0(Uh(),l,"spectrum"),c0(ss(),l,"spectrum"),c0(Gl(),l,"spectrum"),c0(Nc(),l,"spectrum"),c0(o0(),l,"spectrum"),c0(a0(),l,"spectrum")])})}),uA=l=>Lg(l.event),QG=mh({schema:[gn("mouseIsDown",()=>wi(!1))],name:"spectrum",overrides:l=>{const W=l.model.manager,fe=(Se,Be)=>W.getValueFromEvent(Be).map(qe=>W.setValueFrom(Se,l,qe));return{behaviours:ei([ha.config({mode:"special",onLeft:(Se,Be)=>W.onLeft(Se,l,uA(Be)),onRight:(Se,Be)=>W.onRight(Se,l,uA(Be)),onUp:(Se,Be)=>W.onUp(Se,l,uA(Be)),onDown:(Se,Be)=>W.onDown(Se,l,uA(Be))}),Rc.config({}),Ra.config({})]),events:Rl([Lo(Uh(),fe),Lo(ss(),fe),Lo(Nc(),fe),Lo(o0(),(Se,Be)=>{l.mouseIsDown.get()&&fe(Se,Be)})])}}});var HG=[BG,UG,R7,NG,VG,zG,FG,vF,$G,jG,QG];const x5=x("slider.change.value"),yF=l=>l.type.indexOf("touch")!==-1,fA=l=>{const N=l.event.raw;if(yF(N)){const W=N;return W.touches!==void 0&&W.touches.length===1?I.some(W.touches[0]).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}else{const W=N;return W.clientX!==void 0?I.some(W).map(fe=>Qs(fe.clientX,fe.clientY)):I.none()}},ZG="top",qG="right",WG="bottom",YG="left",rO=l=>l.model.minX,oO=l=>l.model.minY,_5=l=>l.model.minX-1,w5=l=>l.model.minY-1,q2=l=>l.model.maxX,ux=l=>l.model.maxY,dA=l=>l.model.maxX+1,O5=l=>l.model.maxY+1,bF=(l,N,W)=>N(l)-W(l),L7=l=>bF(l,q2,rO),I7=l=>bF(l,ux,oO),xF=l=>L7(l)/2,hA=l=>I7(l)/2,Ng=(l,N)=>N?l.stepSize*l.speedMultiplier:l.stepSize,_F=l=>l.snapToGrid,xS=l=>l.snapStart,wF=l=>l.rounded,_S=(l,N)=>l[N+"-edge"]!==void 0,OF=l=>_S(l,YG),SF=l=>_S(l,qG),kF=l=>_S(l,ZG),D7=l=>_S(l,WG),fx=l=>l.model.value.get(),Fy=(l,N)=>({x:l,y:N}),Fg=(l,N)=>{sa(l,x5(),{value:N})},B7=(l,N)=>{Fg(l,Fy(_5(N),w5(N)))},XG=(l,N)=>{Fg(l,w5(N))},$g=(l,N)=>{Fg(l,Fy(xF(N),w5(N)))},GG=(l,N)=>{Fg(l,Fy(dA(N),w5(N)))},KG=(l,N)=>{Fg(l,dA(N))},TF=(l,N)=>{Fg(l,Fy(dA(N),hA(N)))},CF=(l,N)=>{Fg(l,Fy(dA(N),O5(N)))},JG=(l,N)=>{Fg(l,O5(N))},eK=(l,N)=>{Fg(l,Fy(xF(N),O5(N)))},tK=(l,N)=>{Fg(l,Fy(_5(N),O5(N)))},nK=(l,N)=>{Fg(l,_5(N))},rK=(l,N)=>{Fg(l,Fy(_5(N),hA(N)))},z7=(l,N,W,fe)=>lW?W:l===N?N-1:Math.max(N,l-fe),N7=(l,N,W,fe)=>l>W?l:lMath.max(N,Math.min(W,l)),oK=(l,N,W,fe,Se)=>Se.fold(()=>{const Be=l-N,qe=Math.round(Be/fe)*fe;return F7(N+qe,N-1,W+1)},Be=>{const qe=(l-Be)%fe,ft=Math.round(qe/fe),yt=Math.floor((l-Be)/fe),Lt=Math.floor((W-Be)/fe),Ht=Math.min(Lt,yt+ft),fn=Be+Ht*fe;return Math.max(Be,fn)}),iK=(l,N,W)=>Math.min(W,Math.max(l,N))-N,AF=l=>{const{min:N,max:W,range:fe,value:Se,step:Be,snap:qe,snapStart:ft,rounded:yt,hasMinEdge:Lt,hasMaxEdge:Ht,minBound:fn,maxBound:Rn,screenRange:Bn}=l,er=Lt?N-1:N,cr=Ht?W+1:W;if(SeRn)return cr;{const Xr=iK(Se,fn,Rn),br=F7(Xr/Bn*fe+N,er,cr);return qe&&br>=N&&br<=W?oK(br,N,W,Be,ft):yt?Math.round(br):br}},$7=l=>{const{min:N,max:W,range:fe,value:Se,hasMinEdge:Be,hasMaxEdge:qe,maxBound:ft,maxOffset:yt,centerMinEdge:Lt,centerMaxEdge:Ht}=l;return SeW?qe?ft:Ht:(Se-N)/fe*yt},S5="top",V7="right",U7="bottom",pA="left",MF="width",j7="height",$y=l=>l.element.dom.getBoundingClientRect(),Vg=(l,N)=>l[N],dx=l=>{const N=$y(l);return Vg(N,pA)},Q7=l=>{const N=$y(l);return Vg(N,V7)},k5=l=>{const N=$y(l);return Vg(N,S5)},H7=l=>{const N=$y(l);return Vg(N,U7)},EF=l=>{const N=$y(l);return Vg(N,MF)},PF=l=>{const N=$y(l);return Vg(N,j7)},T5=(l,N,W)=>(l+N)/2-W,RF=(l,N)=>{const W=$y(l),fe=$y(N),Se=Vg(W,pA),Be=Vg(W,V7),qe=Vg(fe,pA);return T5(Se,Be,qe)},LF=(l,N)=>{const W=$y(l),fe=$y(N),Se=Vg(W,S5),Be=Vg(W,U7),qe=Vg(fe,S5);return T5(Se,Be,qe)},C5=(l,N)=>{sa(l,x5(),{value:N})},mA=(l,N,W)=>{const fe={min:rO(N),max:q2(N),range:L7(N),value:W,step:Ng(N),snap:_F(N),snapStart:xS(N),rounded:wF(N),hasMinEdge:OF(N),hasMaxEdge:SF(N),minBound:dx(l),maxBound:Q7(l),screenRange:EF(l)};return AF(fe)},Z7=(l,N,W)=>{const fe=mA(l,N,W);return C5(l,fe),fe},IF=(l,N)=>{const W=rO(N);C5(l,W)},Zp=(l,N)=>{const W=q2(N);C5(l,W)},DF=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),rO(W),q2(W),Ng(W,fe));return C5(N,Be),I.some(Be)},BF=l=>(N,W,fe)=>DF(l,N,W,fe).map(k),aK=l=>fA(l).map(W=>W.left),zF=(l,N,W,fe,Se)=>{const qe=EF(l),ft=fe.bind(Ht=>I.some(RF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(RF(Ht,l))).getOr(qe),Lt={min:rO(N),max:q2(N),range:L7(N),value:W,hasMinEdge:OF(N),hasMaxEdge:SF(N),minBound:dx(l),minOffset:0,maxBound:Q7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},q7=(l,N,W,fe,Se,Be)=>{const qe=zF(N,Be,W,fe,Se);return dx(N)-dx(l)+qe},sK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=_s(N.element)/2;xr(N.element,"left",Be-qe+"px")},lK=BF(-1),NF=BF(1),Vy=I.none,W7=I.none,FF={"top-left":I.none(),top:I.none(),"top-right":I.none(),right:I.some(KG),"bottom-right":I.none(),bottom:I.none(),"bottom-left":I.none(),left:I.some(nK)};var gA=Object.freeze({__proto__:null,setValueFrom:Z7,setToMin:IF,setToMax:Zp,findValueOfOffset:mA,getValueFromEvent:aK,findPositionOfValue:q7,setPositionFromValue:sK,onLeft:lK,onRight:NF,onUp:Vy,onDown:W7,edgeActions:FF});const wS=(l,N)=>{sa(l,x5(),{value:N})},Y7=(l,N,W)=>{const fe={min:oO(N),max:ux(N),range:I7(N),value:W,step:Ng(N),snap:_F(N),snapStart:xS(N),rounded:wF(N),hasMinEdge:kF(N),hasMaxEdge:D7(N),minBound:k5(l),maxBound:H7(l),screenRange:PF(l)};return AF(fe)},cK=(l,N,W)=>{const fe=Y7(l,N,W);return wS(l,fe),fe},uK=(l,N)=>{const W=oO(N);wS(l,W)},fK=(l,N)=>{const W=ux(N);wS(l,W)},dK=(l,N,W,fe)=>{const Be=(l>0?N7:z7)(fx(W),oO(W),ux(W),Ng(W,fe));return wS(N,Be),I.some(Be)},$F=l=>(N,W,fe)=>dK(l,N,W,fe).map(k),hK=l=>fA(l).map(W=>W.top),VF=(l,N,W,fe,Se)=>{const qe=PF(l),ft=fe.bind(Ht=>I.some(LF(Ht,l))).getOr(0),yt=Se.bind(Ht=>I.some(LF(Ht,l))).getOr(qe),Lt={min:oO(N),max:ux(N),range:I7(N),value:W,hasMinEdge:kF(N),hasMaxEdge:D7(N),minBound:k5(l),minOffset:0,maxBound:H7(l),maxOffset:qe,centerMinEdge:ft,centerMaxEdge:yt};return $7(Lt)},X7=(l,N,W,fe,Se,Be)=>{const qe=VF(N,Be,W,fe,Se);return k5(N)-k5(l)+qe},Uy=(l,N,W,fe)=>{const Se=fx(W),Be=X7(l,fe.getSpectrum(l),Se,fe.getTopEdge(l),fe.getBottomEdge(l),W),qe=il(N.element)/2;xr(N.element,"top",Be-qe+"px")},vA=I.none,pK=I.none,mK=$F(-1),UF=$F(1),jF={"top-left":I.none(),top:I.some(XG),"top-right":I.none(),right:I.none(),"bottom-right":I.none(),bottom:I.some(JG),"bottom-left":I.none(),left:I.none()};var G7=Object.freeze({__proto__:null,setValueFrom:cK,setToMin:uK,setToMax:fK,findValueOfOffset:Y7,getValueFromEvent:hK,findPositionOfValue:X7,setPositionFromValue:Uy,onLeft:vA,onRight:pK,onUp:mK,onDown:UF,edgeActions:jF});const iO=(l,N)=>{sa(l,x5(),{value:N})},W2=(l,N)=>({x:l,y:N}),A5=(l,N,W)=>{const fe=mA(l,N,W.left),Se=Y7(l,N,W.top),Be=W2(fe,Se);return iO(l,Be),Be},QF=(l,N,W,fe,Se)=>{const Be=l>0?N7:z7,qe=N?fx(fe).x:Be(fx(fe).x,rO(fe),q2(fe),Ng(fe,Se)),ft=N?Be(fx(fe).y,oO(fe),ux(fe),Ng(fe,Se)):fx(fe).y;return iO(W,W2(qe,ft)),I.some(qe)},M5=(l,N)=>(W,fe,Se)=>QF(l,N,W,fe,Se).map(k),HF=(l,N)=>{const W=rO(N),fe=oO(N);iO(l,W2(W,fe))},ZF=(l,N)=>{const W=q2(N),fe=ux(N);iO(l,W2(W,fe))},gK=l=>fA(l),vK=(l,N,W,fe)=>{const Se=fx(W),Be=q7(l,fe.getSpectrum(l),Se.x,fe.getLeftEdge(l),fe.getRightEdge(l),W),qe=X7(l,fe.getSpectrum(l),Se.y,fe.getTopEdge(l),fe.getBottomEdge(l),W),ft=_s(N.element)/2,yt=il(N.element)/2;xr(N.element,"left",Be-ft+"px"),xr(N.element,"top",qe-yt+"px")},yK=M5(-1,!1),bK=M5(1,!1),xK=M5(-1,!0),qF=M5(1,!0),WF={"top-left":I.some(B7),top:I.some($g),"top-right":I.some(GG),right:I.some(TF),"bottom-right":I.some(CF),bottom:I.some(eK),"bottom-left":I.some(tK),left:I.some(rK)};var _K=Object.freeze({__proto__:null,setValueFrom:A5,setToMin:HF,setToMax:ZF,getValueFromEvent:gK,setPositionFromValue:vK,onLeft:yK,onRight:bK,onUp:xK,onDown:qF,edgeActions:WF});const YF=[Ar("stepSize",1),Ar("speedMultiplier",10),Ar("onChange",v),Ar("onChoose",v),Ar("onInit",v),Ar("onDragStart",v),Ar("onDragEnd",v),Ar("snapToGrid",!1),Ar("rounded",!0),Yo("snapStart"),In("model",bn("mode",{x:[Ar("minX",0),Ar("maxX",100),gn("value",l=>wi(l.mode.minX)),pn("getInitialValue"),Sl("manager",gA)],y:[Ar("minY",0),Ar("maxY",100),gn("value",l=>wi(l.mode.minY)),pn("getInitialValue"),Sl("manager",G7)],xy:[Ar("minX",0),Ar("maxX",100),Ar("minY",0),Ar("maxY",100),gn("value",l=>wi({x:l.mode.minX,y:l.mode.minY})),pn("getInitialValue"),Sl("manager",_K)]})),Pd("sliderBehaviours",[ha,Ei]),gn("mouseIsDown",()=>wi(!1))],I0=Zh({name:"Slider",configFields:YF,partFields:HG,factory:(l,N,W,fe)=>{const Se=ko=>gm(ko,l,"thumb"),Be=ko=>gm(ko,l,"spectrum"),qe=ko=>Jo(ko,l,"left-edge"),ft=ko=>Jo(ko,l,"right-edge"),yt=ko=>Jo(ko,l,"top-edge"),Lt=ko=>Jo(ko,l,"bottom-edge"),Ht=l.model,fn=Ht.manager,Rn=(ko,_i)=>{fn.setPositionFromValue(ko,_i,l,{getLeftEdge:qe,getRightEdge:ft,getTopEdge:yt,getBottomEdge:Lt,getSpectrum:Be})},Bn=(ko,_i)=>{Ht.value.set(_i);const Pi=Se(ko);Rn(ko,Pi)},er=(ko,_i)=>{Bn(ko,_i);const Pi=Se(ko);return l.onChange(ko,Pi,_i),I.some(!0)},cr=ko=>{fn.setToMin(ko,l)},Xr=ko=>{fn.setToMax(ko,l)},br=ko=>{const _i=()=>{Jo(ko,l,"thumb").each(Ao=>{const $i=Ht.value.get();l.onChoose(ko,Ao,$i)})},Pi=l.mouseIsDown.get();l.mouseIsDown.set(!1),Pi&&_i()},Fr=(ko,_i)=>{_i.stop(),l.mouseIsDown.set(!0),l.onDragStart(ko,Se(ko))},jr=(ko,_i)=>{_i.stop(),l.onDragEnd(ko,Se(ko)),br(ko)},Ro=ko=>{Jo(ko,l,"spectrum").map(ha.focusIn)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.sliderBehaviours,[ha.config({mode:"special",focusIn:Ro}),Ei.config({store:{mode:"manual",getValue:ko=>Ht.value.get(),setValue:Bn}}),Ad.config({channels:{[M3()]:{onReceive:br}}})]),events:Rl([Lo(x5(),(ko,_i)=>{er(ko,_i.event.value)}),wc((ko,_i)=>{const Pi=Ht.getInitialValue();Ht.value.set(Pi);const Ao=Se(ko);Rn(ko,Ao);const $i=Be(ko);l.onInit(ko,Ao,$i,Ht.value.get())}),Lo(Uh(),Fr),Lo(Gl(),jr),Lo(Nc(),(ko,_i)=>{Ro(ko),Fr(ko,_i)}),Lo(a0(),jr)]),apis:{resetToMin:cr,resetToMax:Xr,setValue:Bn,refresh:Rn},domModification:{styles:{position:"relative"}}}},apis:{setValue:(l,N,W)=>{l.setValue(N,W)},resetToMin:(l,N)=>{l.resetToMin(N)},resetToMax:(l,N)=>{l.resetToMax(N)},refresh:(l,N)=>{l.refresh(N)}}}),aO=Li("rgb-hex-update"),XF=Li("slider-update"),K7=Li("palette-update"),wK=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"div",classes:[N("hue-slider-spectrum")],attributes:{role:"presentation"}}}),fe=I0.parts.thumb({dom:{tag:"div",classes:[N("hue-slider-thumb")],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:[N("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:x(0)},components:[W,fe],sliderBehaviours:ei([Ra.config({})]),onChange:(Se,Be,qe)=>{Cr(Se.element,"aria-valuenow",Math.floor(360-qe*3.6)),sa(Se,XF,{value:qe})}})},GF="form",OK=[Pd("formBehaviours",[Ei])],KF=l=>"",JF=l=>{const N=(()=>{const Be=[];return{field:(ft,yt)=>(Be.push(ft),ZC(GF,KF(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:KF(Be)}));return Dy(GF,OK,Se,e$,W)},SK=(l,N)=>l.fold(()=>aa.error(N),aa.value),e$=(l,N)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.formBehaviours,[Ei.config({store:{mode:"manual",getValue:W=>{const fe=gk(W,l);return Ue(fe,(Se,Be)=>Se().bind(qe=>{const ft=Xs.getCurrent(qe);return SK(ft,new Error(`Cannot find a current component to extract the value from for form part '${Be}': `+a1(qe.element)))}).map(Ei.getValue))},setValue:(W,fe)=>{We(fe,(Se,Be)=>{Jo(W,l,Be).each(qe=>{Xs.getCurrent(qe).each(ft=>{Ei.setValue(ft,Se)})})})}}})]),apis:{getField:(W,fe)=>Jo(W,l,fe).bind(Xs.getCurrent)}}),Y2={getField:Tb((l,N,W)=>l.getField(N,W)),sketch:JF},jy=Li("valid-input"),yA=Li("invalid-input"),J7=Li("validating-input"),bA="colorcustom.rgb.",e9={isEnabled:k,setEnabled:v,immediatelyShow:v,immediatelyHide:v},t$=(l,N,W,fe,Se,Be)=>{const qe=(cr,Xr)=>{const br=Xr.get();cr!==br.isEnabled()&&(br.setEnabled(cr),cr?br.immediatelyShow():br.immediatelyHide())},ft=(cr,Xr,br)=>Dv.config({invalidClass:N("invalid"),notify:{onValidate:Fr=>{sa(Fr,J7,{type:cr})},onValid:Fr=>{qe(!1,br),sa(Fr,jy,{type:cr,value:Ei.getValue(Fr)})},onInvalid:Fr=>{qe(!0,br),sa(Fr,yA,{type:cr,value:Ei.getValue(Fr)})}},validator:{validate:Fr=>{const jr=Ei.getValue(Fr),Ro=Xr(jr)?aa.value(!0):aa.error(l("aria.input.invalid"));return Ih.pure(Ro)},validateOnLoad:!1}}),yt=(cr,Xr,br,Fr,jr)=>{const Ro=wi(e9),ko=l(bA+"range"),_i=Il.parts.label({dom:{tag:"label",attributes:{"aria-label":Fr}},components:[Po(br)]}),Pi=Il.parts.field({data:jr,factory:Ww,inputAttributes:{type:"text",...Xr==="hex"?{"aria-live":"polite"}:{}},inputClasses:[N("textfield")],inputBehaviours:ei([ft(Xr,cr,Ro),Rc.config({}),Vu.config({...Se({tooltipText:"",onSetup:hl=>{Ro.set({isEnabled:()=>Vu.isEnabled(hl),setEnabled:Ui=>Vu.setEnabled(hl,Ui),immediatelyShow:()=>Vu.immediateOpenClose(hl,!0),immediatelyHide:()=>Vu.immediateOpenClose(hl,!1)}),Vu.setEnabled(hl,!1)},onShow:(hl,Ui)=>{Vu.setComponents(hl,[{dom:{tag:"p",classes:[N("rgb-warning-note")]},components:[Po(l(Xr==="hex"?"colorcustom.rgb.invalidHex":"colorcustom.rgb.invalid"))]}])}})})]),onSetValue:hl=>{Dv.isInvalid(hl)&&Dv.run(hl).get(v)}}),Ao=Li("aria-invalid"),$i=ml(Be("invalid",I.some(Ao),"warning")),yi=ml({dom:{tag:"div",classes:[N("invalid-icon")]},components:[$i.asSpec()]}),Xi=[_i,Pi,yi.asSpec()],ks=Xr!=="hex"?[Il.parts["aria-descriptor"]({text:ko})]:[],Ic=Xi.concat(ks);return{dom:{tag:"div",attributes:{role:"presentation"},classes:[N("rgb-container")]},components:Ic}},Lt=(cr,Xr)=>{const br=i5(Xr);return Y2.getField(cr,"hex").each(Fr=>{Ra.isFocused(Fr)||Ei.setValue(cr,{hex:br.value})}),br},Ht=(cr,Xr)=>{const br=Xr.red,Fr=Xr.green,jr=Xr.blue;Ei.setValue(cr,{red:br,green:Fr,blue:jr})},fn=ml({dom:{tag:"div",classes:[N("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Rn=(cr,Xr)=>{fn.getOpt(cr).each(br=>{xr(br.element,"background-color","#"+Xr.value)})};return Qp({factory:()=>{const cr={red:wi(I.some(255)),green:wi(I.some(255)),blue:wi(I.some(255)),hex:wi(I.some("ffffff"))},Xr=(Ui,Ko)=>{const Oi=a5(Ko);Ht(Ui,Oi),Ro(Oi)},br=Ui=>cr[Ui].get(),Fr=(Ui,Ko)=>{cr[Ui].set(Ko)},jr=()=>br("red").bind(Ui=>br("green").bind(Ko=>br("blue").map(Oi=>eO(Ui,Ko,Oi,1)))),Ro=Ui=>{const Ko=Ui.red,Oi=Ui.green,La=Ui.blue;Fr("red",I.some(Ko)),Fr("green",I.some(Oi)),Fr("blue",I.some(La))},ko=(Ui,Ko)=>{const Oi=Ko.event;Oi.type!=="hex"?Fr(Oi.type,I.none()):fe(Ui)},_i=(Ui,Ko)=>{W(Ui);const Oi=mN(Ko);Fr("hex",I.some(Oi.value));const La=a5(Oi);Ht(Ui,La),Ro(La),sa(Ui,aO,{hex:Oi}),Rn(Ui,Oi)},Pi=(Ui,Ko,Oi)=>{const La=parseInt(Oi,10);Fr(Ko,I.some(La)),jr().each(_a=>{const fa=Lt(Ui,_a);sa(Ui,aO,{hex:fa}),Rn(Ui,fa)})},Ao=Ui=>Ui.type==="hex",$i=(Ui,Ko)=>{const Oi=Ko.event;Ao(Oi)?_i(Ui,Oi.value):Pi(Ui,Oi.type,Oi.value)},yi=Ui=>({label:l(bA+Ui+".label"),description:l(bA+Ui+".description")}),Xi=yi("red"),ks=yi("green"),Ic=yi("blue"),hl=yi("hex");return ws(Y2.sketch(Ui=>({dom:{tag:"form",classes:[N("rgb-form")],attributes:{"aria-label":l("aria.color.picker")}},components:[Ui.field("red",Il.sketch(yt(e7,"red",Xi.label,Xi.description,255))),Ui.field("green",Il.sketch(yt(e7,"green",ks.label,ks.description,255))),Ui.field("blue",Il.sketch(yt(e7,"blue",Ic.label,Ic.description,255))),Ui.field("hex",Il.sketch(yt(vN,"hex",hl.label,hl.description,"ffffff"))),fn.asSpec()],formBehaviours:ei([Dv.config({invalidClass:N("form-invalid")}),Ka("rgb-form-events",[Lo(jy,$i),Lo(yA,ko),Lo(J7,ko)])])})),{apis:{updateHex:(Ui,Ko)=>{Ei.setValue(Ui,{hex:Ko.value}),Xr(Ui,Ko),Rn(Ui,Ko)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(cr,Xr,br)=>{cr.updateHex(Xr,br)}},extraApis:{}})},xA=(l,N)=>{const W=I0.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[N("sv-palette-spectrum")]}}),fe=I0.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[N("sv-palette-thumb")],innerHtml:``}}),Se=(Lt,Ht)=>{const{width:fn,height:Rn}=Lt,Bn=Lt.getContext("2d");if(Bn===null)return;Bn.fillStyle=Ht,Bn.fillRect(0,0,fn,Rn);const er=Bn.createLinearGradient(0,0,fn,0);er.addColorStop(0,"rgba(255,255,255,1)"),er.addColorStop(1,"rgba(255,255,255,0)"),Bn.fillStyle=er,Bn.fillRect(0,0,fn,Rn);const cr=Bn.createLinearGradient(0,0,0,Rn);cr.addColorStop(0,"rgba(0,0,0,0)"),cr.addColorStop(1,"rgba(0,0,0,1)"),Bn.fillStyle=cr,Bn.fillRect(0,0,fn,Rn)},Be=(Lt,Ht)=>{const fn=Lt.components()[0].element.dom,Rn=l5(Ht,100,100),Bn=SN(Rn);Se(fn,kN(Bn))},qe=(Lt,Ht)=>{const fn=c5(a5(Ht));I0.setValue(Lt,{x:fn.saturation,y:100-fn.value}),Cr(Lt.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",fn.saturation,fn.value]))};return Qp({factory:Lt=>{const Ht=x({x:0,y:0}),fn=(er,cr,Xr)=>{h(Xr)||Cr(er.element,"aria-valuetext",l(["Saturation {0}%, Brightness {1}%",Math.floor(Xr.x),Math.floor(100-Xr.y)])),sa(er,K7,{value:Xr})},Rn=(er,cr,Xr,br)=>{Se(Xr.element.dom,kN(TN))},Bn=ei([Xs.config({find:I.some}),Ra.config({})]);return I0.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":l(["Saturation {0}%, Brightness {1}%",0,0])},classes:[N("sv-palette")]},model:{mode:"xy",getInitialValue:Ht},rounded:!1,components:[W,fe],onChange:fn,onInit:Rn,sliderBehaviours:Bn})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Lt,Ht,fn)=>{Be(Ht,fn)},setThumb:(Lt,Ht,fn)=>{qe(Ht,fn)}},extraApis:{}})},n$=(l,N,W,fe)=>{const Se=qe=>{const ft=t$(l,N,qe.onValidHex,qe.onInvalidHex,W,fe),yt=xA(l,N),Lt=Ao=>(100-Ao)/100*360,Ht=Ao=>100-Ao/360*100,fn={paletteRgba:wi(TN),paletteHue:wi(0)},Rn=ml(wK(l,N)),Bn=ml(yt.sketch({})),er=ml(ft.sketch({})),cr=(Ao,$i,yi)=>{Bn.getOpt(Ao).each(Xi=>{yt.setHue(Xi,yi)})},Xr=(Ao,$i)=>{er.getOpt(Ao).each(yi=>{ft.updateHex(yi,$i)})},br=(Ao,$i,yi)=>{Rn.getOpt(Ao).each(Xi=>{I0.setValue(Xi,Ht(yi))})},Fr=(Ao,$i)=>{Bn.getOpt(Ao).each(yi=>{yt.setThumb(yi,$i)})},jr=(Ao,$i)=>{const yi=a5(Ao);fn.paletteRgba.set(yi),fn.paletteHue.set($i)},Ro=(Ao,$i,yi,Xi)=>{jr($i,yi),q(Xi,ks=>{ks(Ao,$i,yi)})},ko=()=>{const Ao=[Xr];return($i,yi)=>{const Xi=yi.event.value,ks=fn.paletteHue.get(),Ic=l5(ks,Xi.x,100-Xi.y),hl=u5(Ic);Ro($i,hl,ks,Ao)}},_i=()=>{const Ao=[cr,Xr];return($i,yi)=>{const Xi=Lt(yi.event.value),ks=fn.paletteRgba.get(),Ic=c5(ks),hl=l5(Xi,Ic.saturation,Ic.value),Ui=u5(hl);Ro($i,Ui,Xi,Ao)}},Pi=()=>{const Ao=[cr,br,Fr];return($i,yi)=>{const Xi=yi.event.hex,ks=a7(Xi);Ro($i,Xi,ks.hue,Ao)}};return{uid:qe.uid,dom:qe.dom,components:[Bn.asSpec(),Rn.asSpec(),er.asSpec()],behaviours:ei([Ka("colour-picker-events",[Lo(aO,Pi()),Lo(K7,ko()),Lo(XF,_i())]),Xs.config({find:Ao=>er.getOpt(Ao)}),ha.config({mode:"acyclic"})])}};return Qp({name:"ColourPicker",configFields:[pn("dom"),Ar("onValidHex",v),Ar("onInvalidHex",v)],factory:Se})},P1={self:()=>Xs.config({find:I.some}),memento:l=>Xs.config({find:l.getOpt}),childAt:l=>Xs.config({find:N=>jn(N.element,l).bind(W=>N.getSystem().getByDom(W).toOptional())})},TK=Si([Ar("preprocess",R),Ar("postprocess",R)]),CK=(l,N)=>{const W=Xt("RepresentingConfigs.memento processors",TK,N);return Ei.config({store:{mode:"manual",getValue:fe=>{const Se=l.get(fe),Be=Ei.getValue(Se);return W.postprocess(Be)},setValue:(fe,Se)=>{const Be=W.preprocess(Se),qe=l.get(fe);Ei.setValue(qe,Be)}}})},X2=(l,N,W)=>Ei.config({store:{mode:"manual",...l.map(fe=>({initialValue:fe})).getOr({}),getValue:N,setValue:W}}),t9=(l,N,W)=>X2(l,fe=>N(fe.element),(fe,Se)=>W(fe.element,Se)),AK=l=>t9(l,Np,d0),_A=l=>Ei.config({store:{mode:"memory",initialValue:l}}),MK={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.rgb.invalid":"Numbers only, 0 to 255","colorcustom.rgb.invalidHex":"Hexadecimal only, 000000 to FFFFFF","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},wA=l=>N=>n(N)?l.translate(MK[N]):l.translate(N),EK=(l,N,W)=>{const fe=Lt=>"tox-"+Lt,Se=(Lt,Ht,fn=Lt,Rn=Lt)=>Bg(fn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Lt],attributes:{title:N.translate(Rn),"aria-live":"polite",...Ht.fold(()=>({}),Bn=>({id:Bn}))}},N.icons),Be=n$(wA(N),fe,N.tooltips.getConfig,Se),qe=Lt=>{sa(Lt,Ny,{name:"hex-valid",value:!0})},ft=Lt=>{sa(Lt,Ny,{name:"hex-valid",value:!1})},yt=ml(Be.sketch({dom:{tag:"div",classes:[fe("color-picker-container")],attributes:{role:"presentation"}},onValidHex:qe,onInvalidHex:ft}));return{dom:{tag:"div"},components:[yt.asSpec()],behaviours:ei([X2(W,Lt=>{const Ht=yt.get(Lt);return Xs.getCurrent(Ht).bind(Bn=>Ei.getValue(Bn).hex).map(Bn=>"#"+Sn(Bn,"#")).getOr("")},(Lt,Ht)=>{const fn=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Rn=I.from(fn.exec(Ht)).bind(cr=>De(cr,1)),Bn=yt.get(Lt);Xs.getCurrent(Bn).fold(()=>{console.log("Can not find form")},cr=>{Ei.setValue(cr,{hex:Rn.getOr("")}),Y2.getField(cr,"hex").each(Xr=>{Za(Xr,vg())})})}),P1.self()])}};var PK=tinymce.util.Tools.resolve("tinymce.Resource");const n9=l=>ht(l,"init"),r$=l=>{const N=ds(),W=ml({dom:{tag:l.tag}}),fe=ds(),Se=!n9(l)&&l.onFocus.isSome()?[Ra.config({onFocus:Be=>{l.onFocus.each(qe=>{qe(Be.element.dom)})}}),Rc.config({})]:[];return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:ei([Ka("custom-editor-events",[wc(Be=>{W.getOpt(Be).each(qe=>{(n9(l)?l.init(qe.element.dom):PK.load(l.scriptId,l.scriptUrl).then(ft=>ft(qe.element.dom,l.settings))).then(ft=>{fe.on(yt=>{ft.setValue(yt)}),fe.clear(),N.set(ft)})})})]),X2(I.none(),()=>N.get().fold(()=>fe.get().getOr(""),Be=>Be.getValue()),(Be,qe)=>{N.get().fold(()=>fe.set(qe),ft=>ft.setValue(qe))}),P1.self()].concat(Se)),components:[W.asSpec()]}};var hx=tinymce.util.Tools.resolve("tinymce.util.Tools");const RK=(l,N)=>{const W=hx.explode(N.getOption("images_file_types")),fe=Se=>te(W,Be=>bt(Se.name.toLowerCase(),`.${Be.toLowerCase()}`));return me($e(l),fe)},r9=(l,N,W)=>{const fe=(Rn,Bn)=>{Bn.stop()},Se=Rn=>(Bn,er)=>{q(Rn,cr=>{cr(Bn,er)})},Be=(Rn,Bn)=>{var er;if(!he.isDisabled(Rn)){const cr=Bn.event.raw;ft(Rn,(er=cr.dataTransfer)===null||er===void 0?void 0:er.files)}},qe=(Rn,Bn)=>{const er=Bn.event.raw.target;ft(Rn,er.files)},ft=(Rn,Bn)=>{Bn&&(Ei.setValue(Rn,RK(Bn,N)),sa(Rn,xm,{name:l.name}))},yt=ml({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ei([Ka("input-file-events",[od(H1()),od(Lm())])])}),Lt=Rn=>({uid:Rn.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ei([_A(W.getOr([])),P1.self(),he.config({}),us.config({toggleClass:"dragenter",toggleOnExecute:!1}),Ka("dropzone-events",[Lo("dragenter",Se([fe,us.toggle])),Lo("dragleave",Se([fe,us.toggle])),Lo("dragover",fe),Lo("drop",Se([fe,Be])),Lo(s0(),qe)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Po(N.translate("Drop an image here"))]},Lh.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Po(N.translate("Browse for an image")),yt.asSpec()],action:Bn=>{yt.get(Bn).element.dom.click()},buttonBehaviours:ei([Rc.config({}),E1.button(N.isDisabled),Id()])})]}]}),Ht=l.label.map(Rn=>H2(Rn,N)),fn=Il.parts.field({factory:{sketch:Lt}});return g5(Ht,fn,["tox-form__group--stretched"],[])},LK=(l,N)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${l.columns}col`]},components:re(l.items,N.interpreter)}),o$=(l,N)=>{let W=null,fe=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null,fe=null)},throttle:(...qe)=>{fe=qe,S(W)&&(W=setTimeout(()=>{const ft=fe;W=null,fe=null,l.apply(null,ft)},N))}}},IK=(l,N)=>{let W=null;return{cancel:()=>{S(W)||(clearTimeout(W),W=null)},throttle:(...Be)=>{S(W)&&(W=setTimeout(()=>{W=null,l.apply(null,Be)},N))}}},o9=(l,N)=>{let W=null;const fe=()=>{S(W)||(clearTimeout(W),W=null)};return{cancel:fe,throttle:(...Be)=>{fe(),W=setTimeout(()=>{W=null,l.apply(null,Be)},N)}}},i9=Li("alloy-fake-before-tabstop"),OA=Li("alloy-fake-after-tabstop"),a9=l=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:l},behaviours:ei([Ra.config({ignore:!0}),Rc.config({})])}),i$=(l,N)=>({dom:{tag:"div",classes:["tox-navobj",...l.getOr([])]},components:[a9([i9]),N,a9([OA])],behaviours:ei([P1.childAt(1)])}),a$=(l,N)=>{sa(l,nm(),{raw:{which:9,shiftKey:N}})},DK=(l,N)=>{const W=N.element;rp(W,i9)?a$(l,!0):rp(W,OA)&&a$(l,!1)},E5=l=>f5(l,["."+i9,"."+OA].join(","),D),P5=Li("update-dialog"),s$=Li("update-title"),s9=Li("update-body"),l$=Li("update-footer"),c$=Li("body-send-message"),SA=Li("dialog-focus-shifted"),l9=va().browser,R5=l9.isSafari(),BK=l9.isFirefox(),u$=R5||BK,zK=l9.isChromium(),NK=({scrollTop:l,scrollHeight:N,clientHeight:W})=>Math.ceil(l)+W>=N,kA=(l,N)=>l.scrollTo(0,N==="bottom"?99999999:N),FK=(l,N)=>{const W=l.body;return I.from(!/^1))?W:l.documentElement)},f$=(l,N,W)=>{const fe=l.dom;I.from(fe.contentDocument).fold(W,Se=>{let Be=0;const qe=FK(Se,N).map(yt=>(Be=yt.scrollTop,yt)).forall(NK),ft=()=>{const yt=fe.contentWindow;a(yt)&&(qe?kA(yt,"bottom"):!qe&&u$&&Be!==0&&kA(yt,Be))};R5&&fe.addEventListener("load",ft,{once:!0}),Se.open(),Se.write(N),Se.close(),R5||ft()})},L5=Ot(u$,R5?500:200).map(l=>o$(f$,l)),c9=(l,N)=>{const W=wi(l.getOr(""));return{getValue:fe=>W.get(),setValue:(fe,Se)=>{if(W.get()!==Se){const Be=fe.element,qe=()=>Cr(Be,"srcdoc",Se);N?L5.fold(x(f$),ft=>ft.throttle)(Be,Se,qe):qe()}W.set(Se)}}},$K=(l,N,W)=>{const fe="tox-dialog__iframe",Se=l.transparent?[]:[`${fe}--opaque`],Be=l.border?["tox-navobj-bordered"]:[],qe={...l.label.map(fn=>({title:fn})).getOr({}),...W.map(fn=>({srcdoc:fn})).getOr({}),...l.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ft=c9(W,l.streamContent),yt=l.label.map(fn=>H2(fn,N)),Lt=fn=>i$(I.from(Be),{uid:fn.uid,dom:{tag:"iframe",attributes:qe,classes:[fe,...Se]},behaviours:ei([Rc.config({}),Ra.config({}),X2(W,ft.getValue,ft.setValue),Ad.config({channels:{[SA]:{onReceive:(Rn,Bn)=>{Bn.newFocus.each(er=>{Zr(Rn.element).each(cr=>{(_o(Rn.element,er)?uc:Zc)(cr,"tox-navobj-bordered-focus")})})}}}})])}),Ht=Il.parts.field({factory:{sketch:Lt}});return g5(yt,Ht,["tox-form__group--stretched"],[])},VK=l=>new Promise((N,W)=>{const fe=()=>{Be(),N(l)},Se=[ud(l,"load",fe),ud(l,"error",()=>{Be(),W("Unable to load data from image: "+l.dom.src)})],Be=()=>q(Se,qe=>qe.unbind());l.dom.complete&&fe()}),u9=(l,N,W,fe,Se)=>{const Be=W*Se,qe=fe*Se,ft=Math.max(0,l/2-Be/2),yt=Math.max(0,N/2-qe/2);return{left:ft.toString()+"px",top:yt.toString()+"px",width:Be.toString()+"px",height:qe.toString()+"px"}},UK=(l,N,W)=>{const fe=_s(l),Se=il(l);return Math.min(fe/N,Se/W,1)},f9=(l,N)=>{const W=wi(N.getOr({url:""})),fe=ml({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:N.map(yt=>({src:yt.url})).getOr({})}}),Se=ml({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[fe.asSpec()]}),Be=(yt,Lt)=>{const Ht={url:Lt.url};Lt.zoom.each(Rn=>Ht.zoom=Rn),Lt.cachedWidth.each(Rn=>Ht.cachedWidth=Rn),Lt.cachedHeight.each(Rn=>Ht.cachedHeight=Rn),W.set(Ht);const fn=()=>{const{cachedWidth:Rn,cachedHeight:Bn,zoom:er}=Ht;if(!y(Rn)&&!y(Bn)){if(y(er)){const Xr=UK(yt.element,Rn,Bn);Ht.zoom=Xr}const cr=u9(_s(yt.element),il(yt.element),Rn,Bn,Ht.zoom);Se.getOpt(yt).each(Xr=>{Oo(Xr.element,cr)})}};fe.getOpt(yt).each(Rn=>{const Bn=Rn.element;Lt.url!==Nr(Bn,"src")&&(Cr(Bn,"src",Lt.url),Zc(yt.element,"tox-imagepreview__loaded")),fn(),VK(Bn).then(er=>{yt.getSystem().isConnected()&&(uc(yt.element,"tox-imagepreview__loaded"),Ht.cachedWidth=er.dom.naturalWidth,Ht.cachedHeight=er.dom.naturalHeight,fn())})})},qe={};l.height.each(yt=>qe.height=yt);const ft=N.map(yt=>({url:yt.url,zoom:I.from(yt.zoom),cachedWidth:I.from(yt.cachedWidth),cachedHeight:I.from(yt.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:qe,attributes:{role:"presentation"}},components:[Se.asSpec()],behaviours:ei([P1.self(),X2(ft,()=>W.get(),Be)])}},d$=(l,N,W)=>{const fe="tox-label",Se=l.align==="center"?[`${fe}--center`]:[],Be=l.align==="end"?[`${fe}--end`]:[],qe=ml({dom:{tag:"label",classes:[fe,...Se,...Be]},components:[Po(N.providers.translate(l.label))]}),ft=re(l.items,N.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[qe.asSpec(),...ft],behaviours:ei([P1.self(),Fa.config({}),AK(I.none()),ha.config({mode:"acyclic"}),Ka("label",[wc(yt=>{l.for.each(Lt=>{W(Lt).each(Ht=>{qe.getOpt(yt).each(fn=>{var Rn;const Bn=(Rn=Nr(Ht.element,"id"))!==null&&Rn!==void 0?Rn:Li("form-field");Cr(Ht.element,"id",Bn),Cr(fn.element,"for",Bn)})})})})])])}},h$=Li("toolbar.button.execute"),jK=l=>kh((N,W)=>{r5(l,N)(fe=>{sa(N,h$,{buttonApi:fe}),l.onAction(fe)})}),G2=Li("common-button-display-events"),d9={[Bp()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events","tooltipping"],[Sh()]:["toolbar-button-events",G2],[zp()]:["toolbar-button-events","dropdown-events","tooltipping"],[Nc()]:["focusing","alloy.base.behaviour",G2]},h9=l=>xr(l.element,"width",Di(l.element,"width")),p9=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:W},N),TA=(l,N)=>p9(l,N,[]),K2=(l,N)=>p9(l,N,[Fa.config({})]),m9=(l,N,W)=>({dom:{tag:"span",classes:[`${N}__select-label`]},components:[Po(W.translate(l))],behaviours:ei([Fa.config({})])}),Ug=Li("update-menu-text"),J2=Li("update-menu-icon"),g9=(l,N,W,fe)=>{const Se=wi(v),Be=l.text.map(cr=>ml(m9(cr,N,W.providers))),qe=l.icon.map(cr=>ml(K2(cr,W.providers.icons))),ft=(cr,Xr)=>{const br=Ei.getValue(cr);return Ra.focus(br),sa(br,"keydown",{raw:Xr.event.raw}),L0.close(br),I.some(!0)},yt=l.role.fold(()=>({}),cr=>({role:cr})),Lt=I.from(l.listRole).map(cr=>({listRole:cr})).getOr({}),Ht=l.ariaLabel.fold(()=>({}),cr=>({"aria-label":W.providers.translate(cr)})),fn=Bg("chevron-down",{tag:"div",classes:[`${N}__select-chevron`]},W.providers.icons),Rn=Li("common-button-display-events"),Bn="dropdown-events";return ml(L0.sketch({...l.uid?{uid:l.uid}:{},...yt,...Lt,dom:{tag:"button",classes:[N,`${N}--select`].concat(re(l.classes,cr=>`${N}--${cr}`)),attributes:{...Ht,...a(fe)?{"data-mce-name":fe}:{}}},components:Kw([qe.map(cr=>cr.asSpec()),Be.map(cr=>cr.asSpec()),I.some(fn)]),matchWidth:!0,useMinWidth:!0,onOpen:(cr,Xr,br)=>{l.searchable&&sG(br)},dropdownBehaviours:ei([...l.dropdownBehaviours,E1.button(()=>l.disabled||W.providers.isDisabled()),Id(),bS.config({}),Fa.config({}),...l.tooltip.map(cr=>Vu.config(W.providers.tooltips.getConfig({tooltipText:W.providers.translate(cr)}))).toArray(),Ka(Bn,[cp(l,Se),j2(l,Se)]),Ka(Rn,[wc((cr,Xr)=>l.listRole==="listbox"?v:h9(cr))]),Ka("menubutton-update-display-text",[Lo(Ug,(cr,Xr)=>{Be.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[Po(W.providers.translate(Xr.event.text))])})}),Lo(J2,(cr,Xr)=>{qe.bind(br=>br.getOpt(cr)).each(br=>{Fa.set(br,[K2(Xr.event.icon,W.providers.icons)])})})])]),eventOrder:ws(d9,{[Nc()]:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Sh()]:["toolbar-button-events",Vu.name(),Bn,Rn]}),sandboxBehaviours:ei([ha.config({mode:"special",onLeft:ft,onRight:ft}),Ka("dropdown-sandbox-events",[Lo(Bz,(cr,Xr)=>{oG(cr),Xr.stop()}),Lo(AP,(cr,Xr)=>{aA(cr,Xr),Xr.stop()})])]),lazySink:W.getSink,toggleClass:`${N}--active`,parts:{menu:{...Xk(!1,l.columns,l.presets),fakeFocus:l.searchable,...l.listRole==="listbox"?{}:{onHighlightItem:rF,onCollapseMenu:(cr,Xr,br)=>{ta.getHighlighted(br).each(Fr=>{rF(cr,br,Fr)})},onDehighlightItem:aG}}},getAnchorOverrides:()=>({maxHeightFunction:(cr,Xr)=>{hw()(cr,Xr-10)}}),fetch:cr=>Ih.nu(T(l.fetch,cr))})).asSpec()},QK=l=>n(l),p$=l=>l.type==="separator",m$=l=>ht(l,"getSubmenuItems"),HK={type:"separator"},g$=(l,N)=>{const W=se(l,(fe,Se)=>QK(Se)?Se===""?fe:Se==="|"?fe.length>0&&!p$(fe[fe.length-1])?fe.concat([HK]):fe:ht(N,Se.toLowerCase())?fe.concat([N[Se.toLowerCase()]]):fe:fe.concat([Se]),[]);return W.length>0&&p$(W[W.length-1])&&W.pop(),W},ZK=(l,N)=>{const W=l.getSubmenuItems(),fe=CA(W,N),Se=ws(fe.menus,{[l.value]:fe.items}),Be=ws(fe.expansions,{[l.value]:l.value});return{item:l,menus:Se,expansions:Be}},qK=l=>{const N=Ge(l,"value").getOrThunk(()=>Li("generated-menu-item"));return ws({value:N},l)},CA=(l,N)=>{const W=g$(n(l)?l.split(" "):l,N);return pe(W,(fe,Se)=>{if(m$(Se)){const Be=qK(Se),qe=ZK(Be,N);return{menus:ws(fe.menus,qe.menus),items:[qe.item,...fe.items],expansions:ws(fe.expansions,qe.expansions)}}else return{...fe,items:[Se,...fe.items]}},{menus:{},expansions:{},items:[]})},WK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-field",placeholder:N.placeholder})),YK=l=>l.search.fold(()=>({searchMode:"no-search"}),N=>({searchMode:"search-with-results"})),OS=(l,N,W,fe)=>{const Se=Li("primary-menu"),Be=CA(l,W.shared.providers.menuItems());if(Be.items.length===0)return I.none();const qe=WK(fe),ft=S7(Se,Be.items,N,W,fe.isHorizontalMenu,qe),yt=YK(fe),Lt=Ue(Be.menus,(fn,Rn)=>S7(Rn,fn,N,W,!1,yt)),Ht=ws(Lt,Sa(Se,ft));return I.from(B2.tieredData(Se,Ht,Be.expansions))},SS=l=>!ht(l,"items"),v$="data-value",v9=(l,N,W,fe,Se)=>re(W,Be=>SS(Be)?{type:"togglemenuitem",...Se?{}:{role:"option"},text:Be.text,value:Be.value,active:Be.value===fe,onAction:()=>{Ei.setValue(l,Be.value),sa(l,xm,{name:N}),Ra.focus(l)}}:{type:"nestedmenuitem",text:Be.text,getSubmenuItems:()=>v9(l,N,Be.items,fe,Se)}),y9=(l,N)=>Oe(l,W=>SS(W)?Ot(W.value===N,W):y9(W.items,N)),y$=(l,N,W)=>{const fe=te(l.items,Lt=>!SS(Lt)),Se=N.shared.providers,Be=W.bind(Lt=>y9(l.items,Lt)).orThunk(()=>Qe(l.items).filter(SS)),qe=l.label.map(Lt=>H2(Lt,Se)),ft=Il.parts.field({dom:{},factory:{sketch:Lt=>g9({uid:Lt.uid,text:Be.map(Ht=>Ht.text),icon:I.none(),tooltip:I.none(),role:Ot(!fe,"combobox"),...fe?{}:{listRole:"listbox"},ariaLabel:l.label,fetch:(Ht,fn)=>{const Rn=v9(Ht,l.name,l.items,Ei.getValue(Ht),fe);fn(OS(Rn,A1.CLOSE_ON_EXECUTE,N,{isHorizontalMenu:!1,search:I.none()}))},onSetup:x(v),getApi:x({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Rc.config({}),X2(Be.map(Ht=>Ht.value),Ht=>Nr(Ht.element,v$),(Ht,fn)=>{y9(l.items,fn).each(Rn=>{Cr(Ht.element,v$,Rn.value),sa(Ht,Ug,{text:Rn.text})})})]},"tox-listbox",N.shared)}}),yt={dom:{tag:"div",classes:["tox-listboxfield"]},components:[ft]};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([qe.toArray(),[yt]]),fieldBehaviours:ei([he.config({disabled:x(!l.enabled),onDisabled:Lt=>{Il.getField(Lt).each(he.disable)},onEnabled:Lt=>{Il.getField(Lt).each(he.enable)}})])})},XK=(l,N)=>({dom:{tag:"div",classes:l.classes},components:re(l.items,N.shared.interpreter)}),GK=(l,N)=>{const W=re(l.options,Se=>({dom:{tag:"option",value:Se.value,innerHtml:Se.text}})),fe=l.data.map(Se=>Sa("initialValue",Se)).getOr({});return{uid:l.uid,dom:{tag:"select",classes:l.selectClasses,attributes:l.selectAttributes},components:W,behaviours:Rd(l.selectBehaviours,[Ra.config({}),Ei.config({store:{mode:"manual",getValue:Se=>F(Se.element),setValue:(Se,Be)=>{const qe=Qe(l.options);ce(l.options,yt=>yt.value===Be).isSome()?G(Se.element,Be):Se.element.dom.selectedIndex===-1&&Be===""&&qe.each(yt=>G(Se.element,yt.value))},...fe}})])}},KK=Qp({name:"HtmlSelect",configFields:[pn("options"),Pd("selectBehaviours",[Ra,Ei]),Ar("selectClasses",[]),Ar("selectAttributes",{}),Yo("data")],factory:GK}),JK=(l,N,W)=>{const fe=re(l.items,yt=>({text:N.translate(yt.text),value:yt.value})),Se=l.label.map(yt=>H2(yt,N)),Be=Il.parts.field({dom:{},...W.map(yt=>({data:yt})).getOr({}),selectAttributes:{size:l.size},options:fe,factory:KK,selectBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Rc.config({}),Ka("selectbox-change",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),qe=l.size>1?I.none():I.some(Bg("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},N.icons)),ft={dom:{tag:"div",classes:["tox-selectfield"]},components:ye([[Be],qe.toArray()])};return Il.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ye([Se.toArray(),[ft]]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Il.getField(yt).each(he.disable)},onEnabled:yt=>{Il.getField(yt).each(he.enable)}}),Id()])})},eJ=x([Ar("field1Name","field1"),Ar("field2Name","field2"),Ah("onLockedChange"),h0(["lockClass"]),Ar("locked",!1),Km.field("coupledFieldBehaviours",[Xs,Ei])]),b$=(l,N,W)=>Jo(l,N,W).bind(Xs.getCurrent),x$=(l,N)=>mh({factory:Il,name:l,overrides:W=>({fieldBehaviours:ei([Ka("coupled-input-behaviour",[Lo(vg(),fe=>{b$(fe,W,N).each(Se=>{Jo(fe,W,"lock").each(Be=>{us.isOn(Be)&&W.onLockedChange(fe,Se,Be)})})})])])})}),tJ=x([x$("field1","field2"),x$("field2","field1"),mh({factory:Lh,schema:[pn("dom")],name:"lock",overrides:l=>({buttonBehaviours:ei([us.config({selected:l.locked,toggleClass:l.markers.lockClass,aria:{mode:"pressed"}})])})})]),_$=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Km.augment(l.coupledFieldBehaviours,[Xs.config({find:I.some}),Ei.config({store:{mode:"manual",getValue:Se=>{const Be=Kb(Se,l,["field1","field2"]);return{[l.field1Name]:Ei.getValue(Be.field1()),[l.field2Name]:Ei.getValue(Be.field2())}},setValue:(Se,Be)=>{const qe=Kb(Se,l,["field1","field2"]);pt(Be,l.field1Name)&&Ei.setValue(qe.field1(),Be[l.field1Name]),pt(Be,l.field2Name)&&Ei.setValue(qe.field2(),Be[l.field2Name])}}})]),apis:{getField1:Se=>Jo(Se,l,"field1"),getField2:Se=>Jo(Se,l,"field2"),getLock:Se=>Jo(Se,l,"lock")}}),jg=Zh({name:"FormCoupledInputs",configFields:eJ(),partFields:tJ(),factory:_$,apis:{getField1:(l,N)=>l.getField1(N),getField2:(l,N)=>l.getField2(N),getLock:(l,N)=>l.getLock(N)}}),nJ=l=>{const N={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},W=Se=>Se in N?N[Se]:1;let fe=l.value.toFixed(W(l.unit));return fe.indexOf(".")!==-1&&(fe=fe.replace(/\.?0*$/,"")),fe+l.unit},b9=l=>{const W=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(l);if(W!==null){const fe=parseFloat(W[1]),Se=W[2];return aa.value({value:fe,unit:Se})}else return aa.error(l)},x9=(l,N)=>{const W={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},fe=Se=>ht(W,Se);return l.unit===N?I.some(l.value):fe(l.unit)&&fe(N)?W[l.unit]===W[N]?I.some(l.value):I.some(l.value/W[l.unit]*W[N]):I.none()},_9=l=>I.none(),rJ=(l,N)=>W=>x9(W,N).map(fe=>({value:fe*l,unit:N})),oJ=(l,N)=>{const W=b9(l).toOptional(),fe=b9(N).toOptional();return ln(W,fe,(Se,Be)=>x9(Se,Be.unit).map(qe=>Be.value/qe).map(qe=>rJ(qe,Be.unit)).getOr(_9)).getOr(_9)},w$=(l,N)=>{let W=_9;const fe=Li("ratio-event"),Se=Bn=>Bg(Bn,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Bn]},N.icons),Be=l.label.getOr("Constrain proportions"),qe=N.translate(Be),ft=jg.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{"aria-label":qe,"data-mce-name":Be}},components:[Se("lock"),Se("unlock")],buttonBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Vu.config(N.tooltips.getConfig({tooltipText:qe}))])}),yt=Bn=>({dom:{tag:"div",classes:["tox-form__group"]},components:Bn}),Lt=Bn=>Il.parts.field({factory:Ww,inputClasses:["tox-textfield"],inputBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id(),Rc.config({}),Ka("size-input-events",[Lo(Dp(),(er,cr)=>{sa(er,fe,{isField1:Bn})}),Lo(s0(),(er,cr)=>{sa(er,xm,{name:l.name})})])]),selectOnFocus:!1}),Ht=Bn=>({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(Bn))]}),fn=jg.parts.field1(yt([Il.parts.label(Ht("Width")),Lt(!0)])),Rn=jg.parts.field2(yt([Il.parts.label(Ht("Height")),Lt(!1)]));return jg.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[fn,Rn,yt([Ht($b),ft])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Bn,er,cr)=>{b9(Ei.getValue(Bn)).each(Xr=>{W(Xr).each(br=>{Ei.setValue(er,nJ(br))})})},coupledFieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.disable),jg.getField2(Bn).bind(Il.getField).each(he.disable),jg.getLock(Bn).each(he.disable)},onEnabled:Bn=>{jg.getField1(Bn).bind(Il.getField).each(he.enable),jg.getField2(Bn).bind(Il.getField).each(he.enable),jg.getLock(Bn).each(he.enable)}}),Id(),Ka("size-input-events2",[Lo(fe,(Bn,er)=>{const cr=er.event.isField1,Xr=cr?jg.getField1(Bn):jg.getField2(Bn),br=cr?jg.getField2(Bn):jg.getField1(Bn),Fr=Xr.map(Ei.getValue).getOr(""),jr=br.map(Ei.getValue).getOr("");W=oJ(Fr,jr)})])])})},O$=(l,N,W)=>{const fe=I0.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Po(N.translate(l.label))]}),Se=I0.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Be=I0.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return I0.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:l.min,maxX:l.max,getInitialValue:x(W.getOrThunk(()=>(Math.abs(l.max)-Math.abs(l.min))/2))},components:[fe,Se,Be],sliderBehaviours:ei([P1.self(),Ra.config({})]),onChoose:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})},onChange:(qe,ft,yt)=>{sa(qe,xm,{name:l.name,value:yt})}})},S$=(l,N)=>{const W=ft=>({dom:{tag:"th",innerHtml:N.translate(ft)}}),fe=ft=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:re(ft,W)}]}),Se=ft=>({dom:{tag:"td",innerHtml:N.translate(ft)}}),Be=ft=>({dom:{tag:"tr"},components:re(ft,Se)}),qe=ft=>({dom:{tag:"tbody"},components:re(ft,Be)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[fe(l.header),qe(l.cells)],behaviours:ei([Rc.config({}),Ra.config({})])}},I5=(l,N)=>{const W=l.label.map(Bn=>H2(Bn,N)),fe=[he.config({disabled:()=>l.disabled||N.isDisabled()}),Id(),ha.config({mode:"execution",useEnter:l.multiline!==!0,useControlEnter:l.multiline===!0,execute:Bn=>(Za(Bn,v5),I.some(!0))}),Ka("textfield-change",[Lo(vg(),(Bn,er)=>{sa(Bn,xm,{name:l.name})}),Lo(l0(),(Bn,er)=>{sa(Bn,xm,{name:l.name})})]),Rc.config({})],Se=l.validation.map(Bn=>Dv.config({getRoot:er=>Zr(er.element),invalidClass:"tox-invalid",validator:{validate:er=>{const cr=Ei.getValue(er),Xr=Bn.validator(cr);return Ih.pure(Xr===!0?aa.value(cr):aa.error(Xr))},validateOnLoad:Bn.validateOnLoad}})).toArray(),Be=l.placeholder.fold(x({}),Bn=>({placeholder:N.translate(Bn)})),qe=l.inputMode.fold(x({}),Bn=>({inputmode:Bn})),ft={...Be,...qe,"data-mce-name":l.name},yt=Il.parts.field({tag:l.multiline===!0?"textarea":"input",...l.data.map(Bn=>({data:Bn})).getOr({}),inputAttributes:ft,inputClasses:[l.classname],inputBehaviours:ei(ye([fe,Se])),selectOnFocus:!1,factory:Ww}),Lt=l.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[yt]}:yt,fn=(l.flex?["tox-form__group--stretched"]:[]).concat(l.maximized?["tox-form-group--maximize"]:[]),Rn=[he.config({disabled:()=>l.disabled||N.isDisabled(),onDisabled:Bn=>{Il.getField(Bn).each(he.disable)},onEnabled:Bn=>{Il.getField(Bn).each(he.enable)}}),Id()];return g5(W,Lt,fn,Rn)},iJ=(l,N,W)=>I5({name:l.name,multiline:!1,label:l.label,inputMode:l.inputMode,placeholder:l.placeholder,flex:!1,disabled:!l.enabled,classname:"tox-textfield",validation:I.none(),maximized:l.maximized,data:W},N),aJ=(l,N,W)=>I5({name:l.name,multiline:!0,label:l.label,inputMode:I.none(),placeholder:l.placeholder,flex:!0,disabled:!l.enabled,classname:"tox-textarea",validation:I.none(),maximized:l.maximized,data:W},N),D5=(l,N)=>N.getAnimationRoot.fold(()=>l.element,W=>W(l)),px=l=>l.dimension.property,e_=(l,N)=>l.dimension.getDimension(N),AA=(l,N)=>{const W=D5(l,N);Oc(W,[N.shrinkingClass,N.growingClass])},w9=(l,N)=>{Zc(l.element,N.openClass),uc(l.element,N.closedClass),xr(l.element,px(N),"0px"),yl(l.element)},O9=(l,N)=>{Zc(l.element,N.closedClass),uc(l.element,N.openClass),zi(l.element,px(N))},S9=(l,N,W,fe)=>{W.setCollapsed(),xr(l.element,px(N),e_(N,l.element)),AA(l,N),w9(l,N),N.onStartShrink(l),N.onShrunk(l)},k$=(l,N,W,fe)=>{const Se=fe.getOrThunk(()=>e_(N,l.element));W.setCollapsed(),xr(l.element,px(N),Se),yl(l.element);const Be=D5(l,N);Zc(Be,N.growingClass),uc(Be,N.shrinkingClass),w9(l,N),N.onStartShrink(l)},T$=(l,N,W)=>{const fe=e_(N,l.element);(fe==="0px"?S9:k$)(l,N,W,I.some(fe))},C$=(l,N,W)=>{const fe=D5(l,N),Se=rp(fe,N.shrinkingClass),Be=e_(N,l.element);O9(l,N);const qe=e_(N,l.element);(Se?()=>{xr(l.element,px(N),Be),yl(l.element)}:()=>{w9(l,N)})(),Zc(fe,N.shrinkingClass),uc(fe,N.growingClass),O9(l,N),xr(l.element,px(N),qe),W.setExpanded(),N.onStartGrow(l)},A$=(l,N,W)=>{if(W.isExpanded()){zi(l.element,px(N));const fe=e_(N,l.element);xr(l.element,px(N),fe)}},sJ=(l,N,W)=>{W.isExpanded()||C$(l,N,W)},lJ=(l,N,W)=>{W.isExpanded()&&T$(l,N,W)},$a=(l,N,W)=>{W.isExpanded()&&S9(l,N,W)},B5=(l,N,W)=>W.isExpanded(),M$=(l,N,W)=>W.isCollapsed(),k9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.growingClass)===!0},T9=(l,N,W)=>{const fe=D5(l,N);return rp(fe,N.shrinkingClass)===!0};var z5=Object.freeze({__proto__:null,refresh:A$,grow:sJ,shrink:lJ,immediateShrink:$a,hasGrown:B5,hasShrunk:M$,isGrowing:k9,isShrinking:T9,isTransitioning:(l,N,W)=>k9(l,N)||T9(l,N),toggleGrow:(l,N,W)=>{(W.isExpanded()?T$:C$)(l,N,W)},disableTransitions:AA,immediateGrow:(l,N,W)=>{W.isExpanded()||(O9(l,N),xr(l.element,px(N),e_(N,l.element)),AA(l,N),W.setExpanded(),N.onStartGrow(l),N.onGrown(l))}}),dJ=Object.freeze({__proto__:null,exhibit:(l,N,W)=>{const fe=N.expanded;return np(fe?{classes:[N.openClass],styles:{}}:{classes:[N.closedClass],styles:Sa(N.dimension.property,"0px")})},events:(l,N)=>Rl([cy(rm(),(W,fe)=>{fe.event.raw.propertyName===l.dimension.property&&(AA(W,l),N.isExpanded()&&zi(W.element,l.dimension.property),(N.isExpanded()?l.onGrown:l.onShrunk)(W))})])}),hJ=[pn("closedClass"),pn("openClass"),pn("shrinkingClass"),pn("growingClass"),Yo("getAnimationRoot"),Ss("onShrunk"),Ss("onStartShrink"),Ss("onGrown"),Ss("onStartGrow"),Ar("expanded",!1),In("dimension",bn("property",{width:[Sl("property","width"),Sl("getDimension",l=>_s(l)+"px")],height:[Sl("property","height"),Sl("getDimension",l=>il(l)+"px")]}))],E$=Object.freeze({__proto__:null,init:l=>{const N=wi(l.expanded),W=()=>"expanded: "+N.get();return Hd({isExpanded:()=>N.get()===!0,isCollapsed:()=>N.get()===!1,setCollapsed:T(N.set,!1),setExpanded:T(N.set,!0),readState:W})}});const Tp=id({fields:hJ,name:"sliding",active:dJ,apis:z5,state:E$}),C9=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setActive:N=>{const W=l.element;N?(uc(W,"tox-tbtn--enabled"),Cr(W,"aria-pressed",!0)):(Zc(W,"tox-tbtn--enabled"),Qt(W,"aria-pressed"))},isActive:()=>rp(l.element,"tox-tbtn--enabled"),setText:N=>{sa(l,Ug,{text:N})},setIcon:N=>sa(l,J2,{icon:N})}),N5=(l,N,W,fe,Se=!0,Be)=>g9({text:l.text,icon:l.icon,tooltip:l.tooltip,ariaLabel:l.tooltip,searchable:l.search.isSome(),role:fe,fetch:(qe,ft)=>{const yt={pattern:l.search.isSome()?lG(qe):""};l.fetch(Lt=>{ft(OS(Lt,A1.CLOSE_ON_EXECUTE,W,{isHorizontalMenu:!1,search:l.search}))},yt,C9(qe))},onSetup:l.onSetup,getApi:C9,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...Se?[Rc.config({})]:[]]},N,W.shared,Be),pJ=(l,N,W)=>{const fe=Be=>qe=>{const ft=!qe.isActive();qe.setActive(ft),Be.storage.set(ft),W.shared.getSink().each(yt=>{N().getOpt(yt).each(Lt=>{Md(Lt.element),sa(Lt,Ny,{name:Be.name,value:Be.storage.get()})})})},Se=Be=>qe=>{qe.setActive(Be.storage.get())};return Be=>{Be(re(l,qe=>{const ft=qe.text.fold(()=>({}),yt=>({text:yt}));return{type:qe.type,active:!1,...ft,onAction:fe(qe),onSetup:Se(qe)}}))}},P$=l=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{"aria-label":l}},components:[Po(l)]}),R$=Li("leaf-label-event-id"),A9=({leaf:l,onLeafAction:N,visible:W,treeId:fe,selectedId:Se,backstage:Be})=>{const qe=l.menu.map(yt=>N5(yt,"tox-mbtn",Be,I.none(),W)),ft=[P$(l.title)];return qe.each(yt=>ft.push(yt)),Lh.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(W?["tox-tree--leaf__label--visible"]:[])},components:ft,role:"treeitem",action:yt=>{N(l.id),yt.getSystem().broadcastOn([`update-active-item-${fe}`],{value:l.id})},eventOrder:{[nm()]:[R$,"keying"]},buttonBehaviours:ei([...W?[Rc.config({})]:[],us.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Ad.config({channels:{[`update-active-item-${fe}`]:{onReceive:(yt,Lt)=>{(Lt.value===l.id?us.on:us.off)(yt)}}}}),Ka(R$,[wc((yt,Lt)=>{Se.each(Ht=>{(Ht===l.id?us.on:us.off)(yt)})}),Lo(nm(),(yt,Lt)=>{const Ht=Lt.event.raw.code==="ArrowLeft",fn=Lt.event.raw.code==="ArrowRight";Ht?(Fl(yt.element,".tox-tree--directory").each(Rn=>{yt.getSystem().getByDom(Rn).each(Bn=>{Fc(Rn,".tox-tree--directory__label").each(er=>{Bn.getSystem().getByDom(er).each(Ra.focus)})})}),Lt.stop()):fn&&Lt.stop()})])])})},mJ=(l,N,W)=>Bg(l,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:W},N),gJ=(l,N)=>mJ(l,N,[]),L$=Li("directory-label-event-id"),vJ=({directory:l,visible:N,noChildren:W,backstage:fe})=>{const Se=l.menu.map(ft=>N5(ft,"tox-mbtn",fe,I.none())),Be=[{dom:{tag:"div",classes:["tox-chevron"]},components:[gJ("chevron-right",fe.shared.providers.icons)]},P$(l.title)];Se.each(ft=>{Be.push(ft)});const qe=ft=>{Fl(ft.element,".tox-tree--directory").each(yt=>{ft.getSystem().getByDom(yt).each(Lt=>{const Ht=!us.isOn(Lt);us.toggle(Lt),sa(ft,"expand-tree-node",{expanded:Ht,node:l.id})})})};return Lh.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(N?["tox-tree--directory__label--visible"]:[])},components:Be,action:qe,eventOrder:{[nm()]:[L$,"keying"]},buttonBehaviours:ei([...N?[Rc.config({})]:[],Ka(L$,[Lo(nm(),(ft,yt)=>{const Lt=yt.event.raw.code==="ArrowRight",Ht=yt.event.raw.code==="ArrowLeft";Lt&&W&&yt.stop(),(Lt||Ht)&&Fl(ft.element,".tox-tree--directory").each(fn=>{ft.getSystem().getByDom(fn).each(Rn=>{!us.isOn(Rn)&&Lt||us.isOn(Rn)&&Ht?(qe(ft),yt.stop()):Ht&&!us.isOn(Rn)&&(Fl(Rn.element,".tox-tree--directory").each(Bn=>{Fc(Bn,".tox-tree--directory__label").each(er=>{Rn.getSystem().getByDom(er).each(Ra.focus)})}),yt.stop())})})})])])})},yJ=({children:l,onLeafAction:N,visible:W,treeId:fe,expandedIds:Se,selectedId:Be,backstage:qe})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:l.map(ft=>ft.type==="leaf"?A9({leaf:ft,selectedId:Be,onLeafAction:N,visible:W,treeId:fe,backstage:qe}):M9({directory:ft,expandedIds:Se,selectedId:Be,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:qe})),behaviours:ei([Tp.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:W}),Fa.config({})])}),I$=Li("directory-event-id"),M9=({directory:l,onLeafAction:N,labelTabstopping:W,treeId:fe,backstage:Se,expandedIds:Be,selectedId:qe})=>{const{children:ft}=l,yt=wi(Be),Lt=fn=>ft.map(Rn=>Rn.type==="leaf"?A9({leaf:Rn,selectedId:qe,onLeafAction:N,visible:fn,treeId:fe,backstage:Se}):M9({directory:Rn,expandedIds:yt.get(),selectedId:qe,onLeafAction:N,labelTabstopping:fn,treeId:fe,backstage:Se})),Ht=Be.includes(l.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[vJ({directory:l,visible:W,noChildren:l.children.length===0,backstage:Se}),yJ({children:ft,expandedIds:Be,selectedId:qe,onLeafAction:N,visible:Ht,treeId:fe,backstage:Se})],behaviours:ei([Ka(I$,[wc((fn,Rn)=>{us.set(fn,Ht)}),Lo("expand-tree-node",(fn,Rn)=>{const{expanded:Bn,node:er}=Rn.event;yt.set(Bn?[...yt.get(),er]:yt.get().filter(cr=>cr!==er))})]),us.config({...l.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(fn,Rn)=>{const Bn=fn.components()[1],er=Lt(Rn);Rn?Tp.grow(Bn):Tp.shrink(Bn),Fa.set(Bn,er)}})])}},bJ=Li("tree-event-id"),xJ=(l,N)=>{const W=l.onLeafAction.getOr(v),fe=l.onToggleExpand.getOr(v),Se=l.defaultExpandedIds,Be=wi(Se),qe=wi(l.defaultSelectedId),ft=Li("tree-id"),yt=(Lt,Ht)=>l.items.map(fn=>fn.type==="leaf"?A9({leaf:fn,selectedId:Lt,onLeafAction:W,visible:!0,treeId:ft,backstage:N}):M9({directory:fn,selectedId:Lt,onLeafAction:W,expandedIds:Ht,labelTabstopping:!0,treeId:ft,backstage:N}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:yt(qe.get(),Be.get()),behaviours:ei([ha.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Ka(bJ,[Lo("expand-tree-node",(Lt,Ht)=>{const{expanded:fn,node:Rn}=Ht.event;Be.set(fn?[...Be.get(),Rn]:Be.get().filter(Bn=>Bn!==Rn)),fe(Be.get(),{expanded:fn,node:Rn})})]),Ad.config({channels:{[`update-active-item-${ft}`]:{onReceive:(Lt,Ht)=>{qe.set(I.some(Ht.value)),Fa.set(Lt,yt(I.some(Ht.value),Be.get()))}}}}),Fa.config({})])}};var _J=Object.freeze({__proto__:null,events:(l,N)=>{const fe=l.stream.streams.setup(l,N);return Rl([Lo(l.event,fe),xg(()=>N.cancel())].concat(l.cancelEvent.map(Se=>[Lo(Se,()=>N.cancel())]).getOr([])))}});const D$=l=>{const N=wi(null);return Hd({readState:()=>({timer:N.get()!==null?"set":"unset"}),setTimer:Be=>{N.set(Be)},cancel:()=>{const Be=N.get();Be!==null&&Be.cancel()}})};var wJ=Object.freeze({__proto__:null,throttle:D$,init:l=>l.stream.streams.state(l)});const OJ=(l,N)=>{const W=l.stream,fe=o9(l.onStream,W.delay);return N.setTimer(fe),(Se,Be)=>{fe.throttle(Se,Be),W.stopEvent&&Be.stop()}};var SJ=[In("stream",bn("mode",{throttle:[pn("delay"),Ar("stopEvent",!0),Sl("streams",{setup:OJ,state:D$})]})),Ar("event","input"),Yo("cancelEvent"),Ah("onStream")];const E9=id({fields:SJ,name:"streaming",active:_J,state:wJ}),F5=(l,N,W)=>{const fe=Ei.getValue(W);Ei.setValue(N,fe),z$(N)},B$=(l,N)=>{const W=l.element,fe=F(W),Se=W.dom;Nr(W,"type")!=="number"&&N(Se,fe)},z$=l=>{B$(l,(N,W)=>N.setSelectionRange(W.length,W.length))},kJ=(l,N)=>{B$(l,(W,fe)=>W.setSelectionRange(N,fe.length))},TJ=(l,N,W)=>{if(l.selectsOver){const fe=Ei.getValue(N),Se=l.getDisplayText(fe),Be=Ei.getValue(W);return l.getDisplayText(Be).indexOf(Se)===0?I.some(()=>{F5(l,N,W),kJ(N,Se.length)}):I.none()}else return I.none()},P9=x("alloy.typeahead.itemexecute"),CJ=(l,N,W,fe)=>{const Se=(fn,Rn,Bn)=>{l.previewing.set(!1);const er=Ku.getCoupled(fn,"sandbox");if(Ys.isOpen(er))Xs.getCurrent(er).each(cr=>{ta.getHighlighted(cr).fold(()=>{Bn(cr)},()=>{zm(er,cr.element,"keydown",Rn)})});else{const cr=Xr=>{Xs.getCurrent(Xr).each(Bn)};hS(l,qe(fn),fn,er,fe,cr,Gu.HighlightMenuAndItem).get(v)}},Be=Lz(l),qe=fn=>Rn=>Rn.map(Bn=>{const er=ot(Bn.menus),cr=ve(er,br=>me(br.items,Fr=>Fr.type==="item"));return Ei.getState(fn).update(re(cr,br=>br.data)),Bn}),ft=fn=>Xs.getCurrent(fn),yt="typeaheadevents",Lt=[Ra.config({}),Ei.config({onSetValue:l.onSetValue,store:{mode:"dataset",getDataKey:fn=>F(fn.element),getFallbackEntry:fn=>({value:fn,meta:{}}),setValue:(fn,Rn)=>{G(fn.element,l.model.getDisplayText(Rn))},...l.initialData.map(fn=>Sa("initialValue",fn)).getOr({})}}),E9.config({stream:{mode:"throttle",delay:l.responseTime,stopEvent:!1},onStream:(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");if(Ra.isFocused(fn)&&F(fn.element).length>=l.minChars){const cr=ft(Bn).bind(br=>ta.getHighlighted(br).map(Ei.getValue));l.previewing.set(!0);const Xr=br=>{ft(Bn).each(Fr=>{cr.fold(()=>{l.model.selectsOver&&ta.highlightFirst(Fr)},jr=>{ta.highlightBy(Fr,Ro=>Ei.getValue(Ro).value===jr.value),ta.getHighlighted(Fr).orThunk(()=>(ta.highlightFirst(Fr),I.none()))})})};hS(l,qe(fn),fn,Bn,fe,Xr,Gu.HighlightJustMenu).get(v)}},cancelEvent:N_()}),ha.config({mode:"special",onDown:(fn,Rn)=>(Se(fn,Rn,ta.highlightFirst),I.some(!0)),onEscape:fn=>{const Rn=Ku.getCoupled(fn,"sandbox");return Ys.isOpen(Rn)?(Ys.close(Rn),I.some(!0)):I.none()},onUp:(fn,Rn)=>(Se(fn,Rn,ta.highlightLast),I.some(!0)),onEnter:fn=>{const Rn=Ku.getCoupled(fn,"sandbox"),Bn=Ys.isOpen(Rn);if(Bn&&!l.previewing.get())return ft(Rn).bind(er=>ta.getHighlighted(er)).map(er=>(sa(fn,P9(),{item:er}),!0));{const er=Ei.getValue(fn);return Za(fn,N_()),l.onExecute(Rn,fn,er),Bn&&Ys.close(Rn),I.some(!0)}}}),us.config({toggleClass:l.markers.openClass,aria:{mode:"expanded"}}),Ku.config({others:{sandbox:fn=>w7(l,fn,{onOpen:()=>us.on(fn),onClose:()=>{l.lazyTypeaheadComp.get().each(Rn=>Qt(Rn.element,"aria-activedescendant")),us.off(fn)}})}}),Ka(yt,[wc(fn=>{l.lazyTypeaheadComp.set(I.some(fn))}),xg(fn=>{l.lazyTypeaheadComp.set(I.none())}),kh(fn=>{const Rn=v;b7(l,qe(fn),fn,fe,Rn,Gu.HighlightMenuAndItem).get(v)}),Lo(P9(),(fn,Rn)=>{const Bn=Ku.getCoupled(fn,"sandbox");F5(l.model,fn,Rn.event.item),Za(fn,N_()),l.onItemExecute(fn,Bn,Rn.event.item,Ei.getValue(fn)),Ys.close(Bn),z$(fn)})].concat(l.dismissOnBlur?[Lo(kf(),fn=>{const Rn=Ku.getCoupled(fn,"sandbox");Wd(Rn.element).isNone()&&Ys.close(Rn)})]:[]))],Ht={[zp()]:[Ei.name(),E9.name(),yt],...l.eventOrder};return{uid:l.uid,dom:Dz(ws(l,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Be,...Rd(l.typeaheadBehaviours,Lt)},eventOrder:Ht}},N$=x([Yo("lazySink"),pn("fetch"),Ar("minChars",5),Ar("responseTime",1e3),Ss("onOpen"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),Ar("layouts",I.none()),Ar("eventOrder",{}),Tt("model",{},[Ar("getDisplayText",l=>l.meta!==void 0&&l.meta.text!==void 0?l.meta.text:l.value),Ar("selectsOver",!0),Ar("populateFromBrowse",!0)]),Ss("onSetValue"),kd("onExecute"),Ss("onItemExecute"),Ar("inputClasses",[]),Ar("inputAttributes",{}),Ar("inputStyles",{}),Ar("matchWidth",!0),Ar("useMinWidth",!1),Ar("dismissOnBlur",!0),h0(["openClass"]),Yo("initialData"),Yo("listRole"),Pd("typeaheadBehaviours",[Ra,Ei,E9,ha,us,Ku]),gn("lazyTypeaheadComp",()=>wi(I.none)),gn("previewing",()=>wi(!0))].concat(CP()).concat(iA())),AJ=x([Jm({schema:[Um()],name:"menu",overrides:l=>({fakeFocus:!0,onHighlightItem:(N,W,fe)=>{l.previewing.get()?l.lazyTypeaheadComp.get().each(Se=>{TJ(l.model,Se,fe).fold(()=>{l.model.selectsOver?(ta.dehighlight(W,fe),l.previewing.set(!0)):l.previewing.set(!1)},Be=>{Be(),l.previewing.set(!1)})}):l.lazyTypeaheadComp.get().each(Se=>{l.model.populateFromBrowse&&F5(l.model,Se,fe),Eo(fe.element,"id").each(Be=>Cr(Se.element,"aria-activedescendant",Be))})},onExecute:(N,W)=>l.lazyTypeaheadComp.get().map(fe=>(sa(fe,P9(),{item:W}),!0)),onHover:(N,W)=>{l.previewing.set(!1),l.lazyTypeaheadComp.get().each(fe=>{l.model.populateFromBrowse&&F5(l.model,fe,W)})}})})]),F$=Zh({name:"Typeahead",configFields:N$(),partFields:AJ(),factory:CJ}),R1=l=>({...l,toCached:()=>R1(l.toCached()),bindFuture:yt=>R1(l.bind(Lt=>Lt.fold(Ht=>Ih.pure(aa.error(Ht)),Ht=>yt(Ht)))),bindResult:yt=>R1(l.map(Lt=>Lt.bind(yt))),mapResult:yt=>R1(l.map(Lt=>Lt.map(yt))),mapError:yt=>R1(l.map(Lt=>Lt.mapError(yt))),foldResult:(yt,Lt)=>l.map(Ht=>Ht.fold(yt,Lt)),withTimeout:(yt,Lt)=>R1(Ih.nu(Ht=>{let fn=!1;const Rn=setTimeout(()=>{fn=!0,Ht(aa.error(Lt()))},yt);l.get(Bn=>{fn||(clearTimeout(Rn),Ht(Bn))})}))}),R9=l=>R1(Ih.nu(l)),L9=l=>R1(Ih.pure(aa.value(l))),PJ={nu:R9,wrap:R1,pure:L9,value:L9,error:l=>R1(Ih.pure(aa.error(l))),fromResult:l=>R1(Ih.pure(l)),fromFuture:l=>R1(l.map(aa.value)),fromPromise:l=>R9(N=>{l.then(W=>{N(aa.value(W))},W=>{N(aa.error(W))})})},$5=(l,N,W=[],fe,Se,Be,qe)=>{const ft=N.fold(()=>({}),Ht=>({action:Ht})),yt={buttonBehaviours:ei([E1.button(()=>!l.enabled||qe.isDisabled()),Id(),Rc.config({}),...Be.map(Ht=>Vu.config(qe.tooltips.getConfig({tooltipText:qe.translate(Ht)}))).toArray(),Ka("button press",[V_("click")])].concat(W)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...ft},Lt=ws(yt,{dom:fe});return ws(Lt,{components:Se})},RJ=(l,N,W,fe=[],Se)=>{const Be=l.tooltip.map(Lt=>({"aria-label":W.translate(Lt)})).getOr({}),qe={tag:"button",classes:["tox-tbtn"],attributes:{...Be,"data-mce-name":Se}},ft=l.icon.map(Lt=>TA(Lt,W.icons)),yt=Kw([ft]);return $5(l,N,fe,qe,yt,l.tooltip,W)},I9=l=>{switch(l){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},L1=(l,N,W,fe=[],Se=[])=>{const Be=W.translate(l.text),qe=l.icon.map(Bn=>TA(Bn,W.icons)),ft=[qe.getOrThunk(()=>Po(Be))],yt=l.buttonType.getOr(!l.primary&&!l.borderless?"secondary":"primary"),fn={tag:"button",classes:[...I9(yt),...qe.isSome()?["tox-button--icon"]:[],...l.borderless?["tox-button--naked"]:[],...Se],attributes:{"aria-label":Be,"data-mce-name":l.text}},Rn=l.icon.map(x(Be));return $5(l,N,fe,fn,ft,Rn,W)},V5=(l,N,W,fe=[],Se=[])=>{const Be=L1(l,I.some(N),W,fe,Se);return Lh.sketch(Be)},U5=(l,N)=>W=>{N==="custom"?sa(W,Ny,{name:l,value:{}}):N==="submit"?Za(W,v5):N==="cancel"?Za(W,cx):console.error("Unknown button type: ",N)},LJ=(l,N)=>N==="menu",D9=(l,N)=>N==="custom"||N==="cancel"||N==="submit",IJ=(l,N)=>N==="togglebutton",B9=(l,N,W)=>{var fe,Se;const Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),qe=jr=>{sa(jr,Ny,{name:l.name,value:{setIcon:Ro=>{Be.map(ko=>ko.getOpt(jr).each(_i=>{Fa.set(_i,[K2(Ro,N.icons)])}))}}})},ft=l.buttonType.getOr(l.primary?"primary":"secondary"),yt={...l,name:(fe=l.name)!==null&&fe!==void 0?fe:"",primary:ft==="primary",tooltip:l.tooltip,enabled:(Se=l.enabled)!==null&&Se!==void 0?Se:!1,borderless:!1},Lt=yt.tooltip.or(l.text).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Ht=I9(ft??"secondary"),fn=l.icon.isSome()&&l.text.isSome(),Rn={tag:"button",classes:[...Ht.concat(l.icon.isSome()?["tox-button--icon"]:[]),...l.active?["tox-button--enabled"]:[],...fn?["tox-button--icon-and-text"]:[]],attributes:{...Lt,...a(W)?{"data-mce-name":W}:{}}},Bn=[],er=N.translate(l.text.getOr("")),cr=Po(er),br=[...Kw([Be.map(jr=>jr.asSpec())]),...l.text.isSome()?[cr]:[]],Fr=$5(yt,I.some(qe),Bn,Rn,br,l.tooltip,N);return Lh.sketch(Fr)},j5=(l,N,W)=>{if(LJ(l,N)){const fe=()=>qe,Se=l,Be={...l,type:"menubutton",search:I.none(),onSetup:ft=>(ft.setEnabled(l.enabled),v),fetch:pJ(Se.items,fe,W)},qe=ml(N5(Be,"tox-tbtn",W,I.none(),!0,l.text.or(l.tooltip).getOrUndefined()));return qe.asSpec()}else if(D9(l,N)){const fe=U5(l.name,N),Se={...l,borderless:!1};return V5(Se,fe,W.shared.providers,[])}else{if(IJ(l,N))return B9(l,W.shared.providers,l.text.or(l.tooltip).getOrUndefined());throw console.error("Unknown footer button type: ",N),new Error("Unknown footer button type")}},z9=(l,N)=>{const W=U5(l.name,"custom");return dF(I.none(),Il.parts.field({factory:Lh,...L1(l,I.some(W),N,[_A(""),P1.self()])}))},DJ={type:"separator"},BJ=l=>({type:"menuitem",value:l.url,text:l.title,meta:{attach:l.attach},onAction:v}),MA=(l,N)=>({type:"menuitem",value:N,text:l,meta:{attach:void 0},onAction:v}),zJ=l=>re(l,BJ),NJ=(l,N)=>me(N,W=>W.type===l),EA=(l,N)=>zJ(NJ(l,N)),FJ=l=>EA("header",l.targets),$J=l=>EA("anchor",l.targets),V$=l=>I.from(l.anchorTop).map(N=>MA("",N)).toArray(),U$=l=>I.from(l.anchorBottom).map(N=>MA("",N)).toArray(),VJ=l=>re(l,N=>MA(N,N)),UJ=l=>se(l,(N,W)=>N.length===0||W.length===0?N.concat(W):N.concat(DJ,W),[]),N9=(l,N)=>{const W=l.toLowerCase();return me(N,fe=>{var Se;const Be=fe.meta!==void 0&&fe.meta.text!==void 0?fe.meta.text:fe.text,qe=(Se=fe.value)!==null&&Se!==void 0?Se:"";return xt(Be.toLowerCase(),W)||xt(qe.toLowerCase(),W)})},jJ=(l,N,W)=>{var fe,Se;const Be=Ei.getValue(N),qe=(Se=(fe=Be==null?void 0:Be.meta)===null||fe===void 0?void 0:fe.text)!==null&&Se!==void 0?Se:Be.value;return W.getLinkInformation().fold(()=>[],yt=>{const Lt=N9(qe,VJ(W.getHistory(l)));return l==="file"?UJ([Lt,N9(qe,FJ(yt)),N9(qe,ye([V$(yt),$J(yt),U$(yt)]))]):Lt})},F9=Li("aria-invalid"),Bv=(l,N,W,fe)=>{const Se=N.shared.providers,Be=Fr=>{const jr=Ei.getValue(Fr);W.addToHistory(jr.value,l.filetype)},qe={...fe.map(Fr=>({initialData:Fr})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":F9,type:"url"},minChars:0,responseTime:0,fetch:Fr=>{const jr=jJ(l.filetype,Fr,W),Ro=OS(jr,A1.BUBBLE_TO_SANDBOX,N,{isHorizontalMenu:!1,search:I.none()});return Ih.pure(Ro)},getHotspot:Fr=>er.getOpt(Fr),onSetValue:(Fr,jr)=>{Fr.hasConfigured(Dv)&&Dv.run(Fr).get(v)},typeaheadBehaviours:ei([...W.getValidationHandler().map(Fr=>Dv.config({getRoot:jr=>Zr(jr.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(jr,Ro)=>{Ht.getOpt(jr).each(ko=>{Cr(ko.element,"title",Se.translate(Ro))})}},validator:{validate:jr=>{const Ro=Ei.getValue(jr);return PJ.nu(ko=>{Fr({type:l.filetype,url:Ro.value},_i=>{if(_i.status==="invalid"){const Pi=aa.error(_i.message);ko(Pi)}else{const Pi=aa.value(_i.message);ko(Pi)}})})},validateOnLoad:!1}})).toArray(),he.config({disabled:()=>!l.enabled||Se.isDisabled()}),Rc.config({}),Ka("urlinput-events",[Lo(vg(),Fr=>{const jr=F(Fr.element),Ro=jr.trim();Ro!==jr&&G(Fr.element,Ro),l.filetype==="file"&&sa(Fr,xm,{name:l.name})}),Lo(s0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)}),Lo(l0(),Fr=>{sa(Fr,xm,{name:l.name}),Be(Fr)})])]),eventOrder:{[vg()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:Fr=>Fr.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:N.shared.getSink,parts:{menu:Xk(!1,1,"normal")},onExecute:(Fr,jr,Ro)=>{sa(jr,v5,{})},onItemExecute:(Fr,jr,Ro,ko)=>{Be(Fr),sa(Fr,xm,{name:l.name})}},ft=Il.parts.field({...qe,factory:F$}),yt=l.label.map(Fr=>H2(Fr,Se)),Ht=ml(((Fr,jr,Ro=Fr,ko=Fr)=>Bg(Ro,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+Fr],attributes:{title:Se.translate(ko),"aria-live":"polite",...jr.fold(()=>({}),_i=>({id:_i}))}},Se.icons))("invalid",I.some(F9),"warning")),fn=ml({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ht.asSpec()]}),Rn=W.getUrlPicker(l.filetype),Bn=Li("browser.url.event"),er=ml({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ft,fn.asSpec()],behaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled()})])}),cr=ml(V5({name:l.name,icon:I.some("browse"),text:l.picker_text.or(l.label).getOr(""),enabled:l.enabled,primary:!1,buttonType:I.none(),borderless:!0},Fr=>Za(Fr,Bn),Se,[],["tox-browse-url"])),Xr=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ye([[er.asSpec()],Rn.map(()=>cr.asSpec()).toArray()])}),br=Fr=>{Xs.getCurrent(Fr).each(jr=>{const Ro=Ei.getValue(jr),ko={fieldname:l.name,...Ro};Rn.each(_i=>{_i(ko).get(Pi=>{Ei.setValue(jr,Pi),sa(Fr,xm,{name:l.name})})})})};return Il.sketch({dom:TG(),components:yt.toArray().concat([Xr()]),fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||Se.isDisabled(),onDisabled:Fr=>{Il.getField(Fr).each(he.disable),cr.getOpt(Fr).each(he.disable)},onEnabled:Fr=>{Il.getField(Fr).each(he.enable),cr.getOpt(Fr).each(he.enable)}}),Id(),Ka("url-input-events",[Lo(Bn,br)])])})},$9=(l,N)=>{const W=yP(l.icon,N.icons);return Iv.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${l.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:l.url?void 0:W},components:l.url?[Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:W,attributes:{title:N.translate(l.iconTooltip)}},action:fe=>sa(fe,Ny,{name:"alert-banner",value:l.url}),buttonBehaviours:ei([P6()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:N.translate(l.text)}}]})},QJ=(l,N)=>{l.dom.checked=N},HJ=l=>l.dom.checked,ZJ=(l,N,W)=>{const fe=yt=>(yt.element.dom.click(),I.some(!0)),Se=Il.parts.field({factory:{sketch:R},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:ei([P1.self(),he.config({disabled:()=>!l.enabled||N.isDisabled(),onDisabled:yt=>{Zr(yt.element).each(Lt=>uc(Lt,"tox-checkbox--disabled"))},onEnabled:yt=>{Zr(yt.element).each(Lt=>Zc(Lt,"tox-checkbox--disabled"))}}),Rc.config({}),Ra.config({}),t9(W,HJ,QJ),ha.config({mode:"special",onEnter:fe,onSpace:fe,stopSpaceKeyup:!0}),Ka("checkbox-events",[Lo(s0(),(yt,Lt)=>{sa(yt,xm,{name:l.name})})])])}),Be=Il.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Po(N.translate(l.label))],behaviours:ei([bS.config({})])}),qe=yt=>Bg(yt==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+yt]},N.icons),ft=ml({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[qe("checked"),qe("unchecked")]});return Il.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[Se,ft.asSpec(),Be],fieldBehaviours:ei([he.config({disabled:()=>!l.enabled||N.isDisabled()}),Id()])})},qJ=(l,N)=>{const W=["tox-form__group",...l.stretched?["tox-form__group--stretched"]:[]],fe=Ka("htmlpanel",[wc(Se=>{l.onInit(Se.element.dom)})]);return l.presets==="presentation"?Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html},containerBehaviours:ei([Vu.config({...N.tooltips.getConfig({tooltipText:"",onShow:Se=>{qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element)).each(Be=>{Eo(Be,"data-mce-tooltip").each(qe=>{Vu.setComponents(Se,N.tooltips.getComponents({tooltipText:qe}))})})}}),mode:"children-normal",anchor:Se=>({type:"node",node:qa(Se.element,"[data-mce-tooltip]:hover").orThunk(()=>Wd(Se.element).filter(Be=>Eo(Be,"data-mce-tooltip").isSome())),root:Se.element,layouts:{onLtr:x([Iu,du,Lu,dl,$c,Mf]),onRtl:x([Iu,du,Lu,dl,$c,Mf])},bubble:wp(0,-2,{})})}),fe])}):Iv.sketch({dom:{tag:"div",classes:W,innerHtml:l.html,attributes:{role:"document"}},containerBehaviours:ei([Rc.config({}),Ra.config({}),fe])})},Dd=l=>(N,W,fe,Se,Be)=>Ge(W,"name").fold(()=>l(W,Se,I.none(),Be),qe=>N.field(qe,l(W,Se,Ge(fe,qe),Be))),j$=l=>(N,W,fe,Se,Be)=>{const qe=ws(W,{source:"dynamic"});return Dd(l)(N,qe,fe,Se,Be)},Q$={bar:Dd((l,N)=>_G(l,N.shared)),collection:Dd((l,N,W)=>yS(l,N.shared.providers,W)),alertbanner:Dd((l,N)=>$9(l,N.shared.providers)),input:Dd((l,N,W)=>iJ(l,N.shared.providers,W)),textarea:Dd((l,N,W)=>aJ(l,N.shared.providers,W)),label:Dd((l,N,W,fe)=>d$(l,N.shared,fe)),iframe:j$((l,N,W)=>$K(l,N.shared.providers,W)),button:Dd((l,N)=>z9(l,N.shared.providers)),checkbox:Dd((l,N,W)=>ZJ(l,N.shared.providers,W)),colorinput:Dd((l,N,W)=>DG(l,N.shared,N.colorinput,W)),colorpicker:Dd((l,N,W)=>EK(l,N.shared.providers,W)),dropzone:Dd((l,N,W)=>r9(l,N.shared.providers,W)),grid:Dd((l,N)=>LK(l,N.shared)),listbox:Dd((l,N,W)=>y$(l,N,W)),selectbox:Dd((l,N,W)=>JK(l,N.shared.providers,W)),sizeinput:Dd((l,N)=>w$(l,N.shared.providers)),slider:Dd((l,N,W)=>O$(l,N.shared.providers,W)),urlinput:Dd((l,N,W)=>Bv(l,N,N.urlinput,W)),customeditor:Dd(r$),htmlpanel:Dd((l,N)=>qJ(l,N.shared.providers)),imagepreview:Dd((l,N,W)=>f9(l,W)),table:Dd((l,N)=>S$(l,N.shared.providers)),tree:Dd((l,N)=>xJ(l,N)),panel:Dd((l,N)=>XK(l,N))},Ufe={field:(l,N)=>N,record:x([])},WJ=(l,N,W,fe,Se)=>{const Be=ws(fe,{shared:{interpreter:qe=>vh(l,qe,W,Be,Se)}});return vh(l,N,W,Be,Se)},vh=(l,N,W,fe,Se)=>Ge(Q$,N.type).fold(()=>(console.error(`Unknown factory type "${N.type}", defaulting to container: `,N),N),Be=>Be(l,N,W,fe,Se)),PA=(l,N,W,fe)=>vh(Ufe,l,N,W,fe),t_="layout-inset",kS=l=>l.x,H$=(l,N)=>l.x+l.width/2-N.width/2,V9=(l,N)=>l.x+l.width-N.width,U9=l=>l.y,j9=(l,N)=>l.y+l.height-N.height,Z$=(l,N)=>l.y+l.height/2-N.height/2,RA=(l,N,W)=>xl(V9(l,N),j9(l,N),W.insetSouthwest(),ni(),"southwest",mc(l,{right:0,bottom:3}),t_),LA=(l,N,W)=>xl(kS(l),j9(l,N),W.insetSoutheast(),fu(),"southeast",mc(l,{left:1,bottom:3}),t_),Q5=(l,N,W)=>xl(V9(l,N),U9(l),W.insetNorthwest(),_l(),"northwest",mc(l,{right:0,top:2}),t_),TS=(l,N,W)=>xl(kS(l),U9(l),W.insetNortheast(),Us(),"northeast",mc(l,{left:1,top:2}),t_),ng=(l,N,W)=>xl(H$(l,N),U9(l),W.insetNorth(),Wc(),"north",mc(l,{top:2}),t_),CS=(l,N,W)=>xl(H$(l,N),j9(l,N),W.insetSouth(),Yc(),"south",mc(l,{bottom:3}),t_),Q9=(l,N,W)=>xl(V9(l,N),Z$(l,N),W.insetEast(),Ru(),"east",mc(l,{right:0}),t_),q$=(l,N,W)=>xl(kS(l),Z$(l,N),W.insetWest(),$l(),"west",mc(l,{left:1}),t_),W$=l=>{switch(l){case"north":return ng;case"northeast":return TS;case"northwest":return Q5;case"south":return CS;case"southeast":return LA;case"southwest":return RA;case"east":return Q9;case"west":return q$}},Y$=(l,N,W,fe,Se)=>cw(fe).map(W$).getOr(ng)(l,N,W,fe,Se),YJ=l=>{switch(l){case"north":return CS;case"northeast":return LA;case"northwest":return RA;case"south":return ng;case"southeast":return TS;case"southwest":return Q5;case"east":return q$;case"west":return Q9}},X$=(l,N,W,fe,Se)=>cw(fe).map(YJ).getOr(ng)(l,N,W,fe,Se),IA={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},jfe=(l,N,W)=>{const Se={maxHeightFunction:v1()},Be=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),bubble:wp(12,12,IA),layouts:{onRtl:()=>[TS],onLtr:()=>[Q5]},overrides:Se}),qe=()=>({type:"hotspot",hotspot:N(),bubble:wp(-12,12,IA),layouts:{onRtl:()=>[Lu,$c,Iu],onLtr:()=>[$c,Lu,Iu]},overrides:Se});return()=>W()?Be():qe()},XJ=(l,N,W,fe)=>{const Be={maxHeightFunction:v1()},qe=()=>({type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(12,12,IA),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]},overrides:Be}),ft=()=>l?{type:"node",root:Er(kr(N())),node:I.from(N()),bubble:wp(0,-nf(N()),IA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be}:{type:"hotspot",hotspot:W(),bubble:wp(0,0,IA),layouts:{onRtl:()=>[du],onLtr:()=>[du]},overrides:Be};return()=>fe()?qe():ft()},GJ=(l,N,W)=>{const fe=()=>({type:"node",root:Er(kr(l())),node:I.from(l()),layouts:{onRtl:()=>[ng],onLtr:()=>[ng]}}),Se=()=>({type:"hotspot",hotspot:N(),layouts:{onRtl:()=>[Iu],onLtr:()=>[Iu]}});return()=>W()?fe():Se()},KJ=(l,N)=>()=>({type:"selection",root:N(),getSelection:()=>{const W=l.selection.getRng(),fe=l.model.table.getSelectedCells();if(fe.length>1){const Se=fe[0],Be=fe[fe.length-1],qe={firstCell:Nt.fromDom(Se),lastCell:Nt.fromDom(Be)};return I.some(qe)}return I.some(Ay.range(Nt.fromDom(W.startContainer),W.startOffset,Nt.fromDom(W.endContainer),W.endOffset))}}),G$=l=>N=>({type:"node",root:l(),node:N}),H9=(l,N,W,fe)=>{const Se=tS(l),Be=()=>Nt.fromDom(l.getBody()),qe=()=>Nt.fromDom(l.getContentAreaContainer()),ft=()=>Se||!fe();return{inlineDialog:jfe(qe,N,ft),inlineBottomDialog:XJ(l.inline,qe,W,ft),banner:GJ(qe,N,ft),cursor:KJ(l,Be),node:G$(Be)}},JJ=l=>(N,W)=>{HN(l)(N,W)},eee=l=>()=>BN(l),K$=l=>N=>rA(l,N),tee=l=>N=>DN(l,N),nee=l=>({colorPicker:JJ(l),hasCustomColors:eee(l),getColors:K$(l),getColorCols:tee(l)}),ree=l=>()=>lz(l),oee=l=>({isDraggableModal:ree(l)}),Z9=l=>{const N=wi($k(l)?"bottom":"top");return{isPositionedAtTop:()=>N.get()==="top",getDockingMode:N.get,setDockingMode:N.set}},q9=l=>pt(l,"items"),J$=l=>pt(l,"format"),eV=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],iee=l=>ht(l,"items"),aee=l=>ht(l,"block"),tV=l=>ht(l,"inline"),see=l=>ht(l,"selector"),H5=l=>se(l,(N,W)=>{if(iee(W)){const fe=H5(W.items);return{customFormats:N.customFormats.concat(fe.customFormats),formats:N.formats.concat([{title:W.title,items:fe.formats}])}}else if(tV(W)||aee(W)||see(W)){const Se=`custom-${n(W.name)?W.name:W.title.toLowerCase()}`;return{customFormats:N.customFormats.concat([{name:Se,format:W}]),formats:N.formats.concat([{title:W.title,format:Se,icon:W.icon}])}}else return{...N,formats:N.formats.concat(W)}},{customFormats:[],formats:[]}),lee=(l,N)=>{const W=H5(N),fe=Se=>{q(Se,Be=>{l.formatter.has(Be.name)||l.formatter.register(Be.name,Be.format)})};return l.formatter?fe(W.customFormats):l.on("init",()=>{fe(W.customFormats)}),W.formats},Z5=l=>GB(l).map(N=>{const W=lee(l,N);return KB(l)?eV.concat(W):W}).getOr(eV),cee=l=>{const N=ke(l);return N.length===1&&X(N,"title")},DA=(l,N,W)=>({...l,type:"formatter",isSelected:N(l.format),getStylePreview:W(l.format)}),AS=(l,N,W,fe)=>{const Se=yt=>DA(yt,W,fe),Be=yt=>{const Lt=ft(yt.items);return{...yt,type:"submenu",getStyleItems:x(Lt)}},qe=yt=>{const Lt=n(yt.name)?yt.name:Li(yt.title),Ht=`custom-${Lt}`,fn={...yt,type:"formatter",format:Ht,isSelected:W(Ht),getStylePreview:fe(Ht)};return l.formatter.register(Lt,fn),fn},ft=yt=>re(yt,Lt=>q9(Lt)?Be(Lt):J$(Lt)?Se(Lt):cee(Lt)?{...Lt,type:"separator"}:qe(Lt));return ft(N)},nV=l=>{const N=ft=>()=>l.formatter.match(ft),W=ft=>()=>{const yt=l.formatter.get(ft);return yt!==void 0?I.some({tag:yt.length>0&&(yt[0].inline||yt[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(ft))}):I.none()},fe=wi([]),Se=wi([]),Be=wi(!1);return l.on("PreInit",ft=>{const yt=Z5(l),Lt=AS(l,yt,N,W);fe.set(Lt)}),l.on("addStyleModifications",ft=>{const yt=AS(l,ft.items,N,W);Se.set(yt),Be.set(ft.replace)}),{getData:()=>{const ft=Be.get()?[]:fe.get(),yt=Se.get();return ft.concat(yt)}}},uee=l=>{let fe=0;const Se=()=>fe>0,Be=ft=>[{dom:{tag:"div",classes:["tox-tooltip__body"]},components:[Po(ft.tooltipText)]}];return{getConfig:ft=>({delayForShow:()=>Se()?60:300,delayForHide:x(300),exclusive:!0,lazySink:l,tooltipDom:{tag:"div",classes:["tox-tooltip","tox-tooltip--up"]},tooltipComponents:Be(ft),onShow:(yt,Lt)=>{fe++,ft.onShow&&ft.onShow(yt,Lt)},onHide:(yt,Lt)=>{fe--,ft.onHide&&ft.onHide(yt,Lt)},onSetup:ft.onSetup}),getComponents:Be}},rV=l=>a(l)&&l.nodeType===1,oV=hx.trim,W9=l=>N=>!!(rV(N)&&(N.contentEditable===l||N.getAttribute("data-mce-contenteditable")===l)),fee=W9("true"),Y9=W9("false"),q5=(l,N,W,fe,Se)=>({type:l,title:N,url:W,level:fe,attach:Se}),dee=l=>{let N=l;for(;N=N.parentNode;){const W=N.contentEditable;if(W&&W!=="inherit")return fee(N)}return!1},hee=(l,N)=>re(Yd(Nt.fromDom(N),l),W=>W.dom),sO=l=>l.innerText||l.textContent,iV=l=>l.id?l.id:Li("h"),pee=l=>l&&l.nodeName==="A"&&(l.id||l.name)!==void 0,aV=l=>pee(l)&&zA(l),BA=l=>l&&/^(H[1-6])$/.test(l.nodeName),zA=l=>dee(l)&&!Y9(l),mee=l=>BA(l)&&zA(l),gee=l=>BA(l)?parseInt(l.nodeName.substr(1),10):0,vee=l=>{var N;const W=iV(l),fe=()=>{l.id=W};return q5("header",(N=sO(l))!==null&&N!==void 0?N:"","#"+W,gee(l),fe)},X9=l=>{const N=l.id||l.name,W=sO(l);return q5("anchor",W||"#"+N,"#"+N,0,v)},yee=l=>re(me(l,mee),vee),bee=l=>re(me(l,aV),X9),xee=l=>hee("h1,h2,h3,h4,h5,h6,a:not([href])",l),_ee=l=>oV(l.title).length>0,wee={find:l=>{const N=xee(l);return me(yee(N).concat(bee(N)),_ee)}},NA="tinymce-url-history",G9=5,sV=l=>n(l)&&/^https?/.test(l),W5=l=>i(l)&&l.length<=G9&&_e(l,sV),lV=l=>u(l)&&tt(l,N=>!W5(N)).isNone(),cV=()=>{const l=nO.getItem(NA);if(l===null)return{};let N;try{N=JSON.parse(l)}catch(W){if(W instanceof SyntaxError)return console.log("Local storage "+NA+" was not valid JSON",W),{};throw W}return lV(N)?N:(console.log("Local storage "+NA+" was not valid format",N),{})},K9=l=>{if(!lV(l))throw new Error(`Bad format for history: +`+JSON.stringify(l));nO.setItem(NA,JSON.stringify(l))},uV=l=>{const N=cV();return Ge(N,l).getOr([])},Oee=(l,N)=>{if(!sV(l))return;const W=cV(),fe=Ge(W,N).getOr([]),Se=me(fe,Be=>Be!==l);W[N]=[l].concat(Se).slice(0,G9),K9(W)},fV=l=>!!l,See=l=>Ue(hx.makeMap(l,/[, ]/),fV),J9=l=>I.from(iz(l)),kee=l=>{const N=I.from(QE(l)).filter(fV).map(See);return J9(l).fold(D,W=>N.fold(k,fe=>ke(fe).length>0?fe:!1))},Tee=(l,N)=>{const W=kee(l);return w(W)?W?J9(l):I.none():W[N]?J9(l):I.none()},Cee=(l,N)=>Tee(l,N).map(W=>fe=>Ih.nu(Se=>{const Be=(ft,yt)=>{if(!n(ft))throw new Error("Expected value to be string");if(yt!==void 0&&!u(yt))throw new Error("Expected meta to be a object");Se({value:ft,meta:yt})},qe={filetype:N,fieldname:fe.fieldname,...I.from(fe.meta).getOr({})};W.call(l,Be,fe.value,qe)})),dV=l=>I.from(l).filter(n).getOrUndefined(),Aee=l=>HE(l)?I.some({targets:wee.find(l.getBody()),anchorTop:dV(sz(l)),anchorBottom:dV(b6(l))}):I.none(),Hfe=l=>I.from(az(l)),Mee=l=>({getHistory:uV,addToHistory:Oee,getLinkInformation:()=>Aee(l),getValidationHandler:()=>Hfe(l),getUrlPicker:N=>Cee(l,N)}),hV=(l,N,W,fe)=>{const Se=wi(!1),Be=Z9(N),qe={icons:()=>N.ui.registry.getAll().icons,menuItems:()=>N.ui.registry.getAll().menuItems,translate:Dg.translate,isDisabled:()=>N.mode.isReadOnly()||!N.ui.isEnabled(),getOption:N.options.get,tooltips:uee(l.dialog)},ft=Mee(N),yt=nV(N),Lt=nee(N),Ht=oee(N),fn=()=>Se.get(),Rn=br=>Se.set(br),Bn={shared:{providers:qe,anchors:H9(N,W,fe,Be.isPositionedAtTop),header:Be},urlinput:ft,styles:yt,colorinput:Lt,dialog:Ht,isContextMenuOpen:fn,setContextMenuState:Rn},er=br=>I.none(),cr={...Bn,shared:{...Bn.shared,interpreter:br=>PA(br,{},cr,er),getSink:l.popup}},Xr={...Bn,shared:{...Bn.shared,interpreter:br=>PA(br,{},Xr,er),getSink:l.dialog}};return{popup:cr,dialog:Xr}},pV=(l,N,W)=>{const fe=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastEvent(Ao,$i)})},Se=(Ao,$i)=>{q([N,...W],yi=>{yi.broadcastOn([Ao],$i)})},Be=Ao=>Se(_1(),{target:Ao.target}),qe=Ac(),ft=ud(qe,"touchstart",Be),yt=ud(qe,"touchmove",Ao=>fe(ly(),Ao)),Lt=ud(qe,"touchend",Ao=>fe(yg(),Ao)),Ht=ud(qe,"mousedown",Be),fn=ud(qe,"mouseup",Ao=>{Ao.raw.button===0&&Se(M3(),{target:Ao.target})}),Rn=Ao=>Se(_1(),{target:Nt.fromDom(Ao.target)}),Bn=Ao=>{Ao.button===0&&Se(M3(),{target:Nt.fromDom(Ao.target)})},er=()=>{q(l.editorManager.get(),Ao=>{l!==Ao&&Ao.dispatch("DismissPopups",{relatedTarget:l})})},cr=Ao=>fe(Im(),a2(Ao)),Xr=Ao=>{Se(qb(),{}),fe(Dm(),a2(Ao))},br=kr(Nt.fromDom(l.getElement())),Fr=i2(br,"scroll",Ao=>{requestAnimationFrame(()=>{const $i=l.getContainer();if($i!=null){const Xi=ix(l,N.element).map(ks=>[ks.element,...ks.others]).getOr([]);te(Xi,ks=>_o(ks,Ao.target))&&(l.dispatch("ElementScroll",{target:Ao.target.dom}),fe(Dx(),Ao))}})}),jr=()=>Se(qb(),{}),Ro=Ao=>{Ao.state&&Se(_1(),{target:Nt.fromDom(l.getContainer())})},ko=Ao=>{Se(_1(),{target:Nt.fromDom(Ao.relatedTarget.getContainer())})},_i=Ao=>l.dispatch("focusin",Ao),Pi=Ao=>l.dispatch("focusout",Ao);l.on("PostRender",()=>{l.on("click",Rn),l.on("tap",Rn),l.on("mouseup",Bn),l.on("mousedown",er),l.on("ScrollWindow",cr),l.on("ResizeWindow",Xr),l.on("ResizeEditor",jr),l.on("AfterProgressState",Ro),l.on("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.addEventListener("focusin",_i),Ao.element.dom.addEventListener("focusout",Pi)})}),l.on("remove",()=>{l.off("click",Rn),l.off("tap",Rn),l.off("mouseup",Bn),l.off("mousedown",er),l.off("ScrollWindow",cr),l.off("ResizeWindow",Xr),l.off("ResizeEditor",jr),l.off("AfterProgressState",Ro),l.off("DismissPopups",ko),q([N,...W],Ao=>{Ao.element.dom.removeEventListener("focusin",_i),Ao.element.dom.removeEventListener("focusout",Pi)}),Ht.unbind(),ft.unbind(),yt.unbind(),Lt.unbind(),fn.unbind(),Fr.unbind()}),l.on("detach",()=>{q([N,...W],tk),q([N,...W],Ao=>Ao.destroy())})},qf=XC,zv=ED,Eee=x([Ar("shell",!1),pn("makeItem"),Ar("setupItem",v),Km.field("listBehaviours",[Fa])]),Pee=mm({name:"items",overrides:()=>({behaviours:ei([Fa.config({})])})}),Ree=x([Pee]),Lee=x("CustomList"),Iee=(l,N,W,fe)=>{const Se=(ft,yt)=>{qe(ft).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Lt=>{const Ht=Fa.contents(Lt),fn=yt.length,Rn=fn-Ht.length,Bn=Rn>0?Z(Rn,()=>l.makeItem()):[],er=Ht.slice(fn);q(er,Xr=>Fa.remove(Lt,Xr)),q(Bn,Xr=>Fa.append(Lt,Xr));const cr=Fa.contents(Lt);q(cr,(Xr,br)=>{l.setupItem(ft,Xr,yt[br],br)})})},Be=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N},qe=ft=>l.shell?I.some(ft):Jo(ft,l,"items");return{uid:l.uid,dom:l.dom,components:Be.components,behaviours:Rd(l.listBehaviours,Be.behaviours),apis:{setItems:Se}}},mV=Zh({name:Lee(),configFields:Eee(),partFields:Ree(),factory:Iee,apis:{setItems:(l,N,W)=>{l.setItems(N,W)}}}),lO=x([pn("dom"),Ar("shell",!0),Pd("toolbarBehaviours",[Fa])]),Bee=x([mm({name:"groups",overrides:()=>({behaviours:ei([Fa.config({})])})})]),gV=(l,N,W,fe)=>{const Se=(ft,yt)=>{Be(ft).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Lt=>{Fa.set(Lt,yt)})},Be=ft=>l.shell?I.some(ft):Jo(ft,l,"groups"),qe=l.shell?{behaviours:[Fa.config({})],components:[]}:{behaviours:[],components:N};return{uid:l.uid,dom:l.dom,components:qe.components,behaviours:Rd(l.toolbarBehaviours,qe.behaviours),apis:{setGroups:Se,refresh:v},domModification:{attributes:{role:"group"}}}},Nv=Zh({name:"Toolbar",configFields:lO(),partFields:Bee(),factory:gV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)}}}),zee=v,Nee=D,n_=x([]);var vV=Object.freeze({__proto__:null,setup:zee,isDocked:Nee,getBehaviours:n_});const cO=x(Li("toolbar-height-change")),D0={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},eR="tox-tinymce--toolbar-sticky-on",tR="tox-tinymce--toolbar-sticky-off",yV=(l,N)=>{const W=Mo(N),Se=ar(N).dom.innerHeight,Be=yc(W),qe=Nt.fromDom(l.elm),ft=bc(qe),yt=il(qe),Lt=ft.y,Ht=Lt+yt,fn=Tc(N),Rn=il(N),Bn=fn.top,er=Bn+Rn,cr=Math.abs(Bn-Be.top)<2,Xr=Math.abs(er-(Be.top+Se))<2;if(cr&&LtBn){const br=Lt-Se+yt+Rn;Cc(Be.left,br,W)}},nR=(l,N)=>X(fc.getModes(l),N),rR=l=>{const N=fe=>nf(fe)+(parseInt(Di(fe,"margin-top"),10)||0)+(parseInt(Di(fe,"margin-bottom"),10)||0),W=l.element;Zr(W).each(fe=>{const Se="padding-"+fc.getModes(l)[0];if(fc.isDocked(l)){const Be=_s(fe);xr(W,"width",Be+"px"),xr(fe,Se,N(W)+"px")}else zi(W,"width"),zi(fe,Se)})},bV=(l,N)=>{N?(Zc(l,D0.fadeOutClass),Og(l,[D0.transitionClass,D0.fadeInClass])):(Zc(l,D0.fadeInClass),Og(l,[D0.fadeOutClass,D0.transitionClass]))},xV=(l,N)=>{const W=Nt.fromDom(l.getContainer());N?(uc(W,eR),Zc(W,tR)):(uc(W,tR),Zc(W,eR))},Fee=(l,N)=>{const W=Mo(N);um(W).filter(fe=>!_o(N,fe)).filter(fe=>_o(fe,Nt.fromDom(W.dom.body))||$o(l,fe)).each(()=>Md(N))},$ee=(l,N)=>Wd(l).orThunk(()=>N().toOptional().bind(W=>Wd(W.element))),MS=(l,N,W)=>{l.inline||(N.header.isPositionedAtTop()||l.on("ResizeEditor",()=>{W().each(fc.reset)}),l.on("ResizeWindow ResizeEditor",()=>{W().each(rR)}),l.on("SkinLoaded",()=>{W().each(fe=>{fc.isDocked(fe)?fc.reset(fe):fc.refresh(fe)})}),l.on("FullscreenStateChanged",()=>{W().each(fc.reset)})),l.on("AfterScrollIntoView",fe=>{W().each(Se=>{fc.refresh(Se);const Be=Se.element;VD(Be)&&yV(fe,Be)})}),l.on("PostRender",()=>{xV(l,!1)})},Y5=l=>l().map(fc.isDocked).getOr(!1),oR=()=>[Ad.config({channels:{[cO()]:{onReceive:rR}}})],_V=(l,N)=>{const W=ds(),fe=N.getSink,Se=ft=>{fe().each(yt=>ft(yt.element))},Be=ft=>{l.inline||rR(ft),xV(l,fc.isDocked(ft)),ft.getSystem().broadcastOn([qb()],{}),fe().each(yt=>yt.getSystem().broadcastOn([qb()],{}))},qe=l.inline?[]:oR();return[Ra.config({}),fc.config({contextual:{lazyContext:ft=>{const yt=nf(ft.element),Lt=l.inline?l.getContentAreaContainer():l.getContainer();return I.from(Lt).map(Ht=>{const fn=cl(Nt.fromDom(Ht));return ix(l,ft.element).fold(()=>{const Bn=fn.height-yt,er=fn.y+(nR(ft,"top")?0:yt);return vs(fn.x,er,fn.width,Bn)},Bn=>{const er=nc(fn,Hw(Bn)),cr=nR(ft,"top")?er.y:er.y+yt;return vs(er.x,cr,er.width,er.height-yt)})})},onShow:()=>{Se(ft=>bV(ft,!0))},onShown:ft=>{Se(yt=>Oc(yt,[D0.transitionClass,D0.fadeInClass])),W.get().each(yt=>{Fee(ft.element,yt),W.clear()})},onHide:ft=>{$ee(ft.element,fe).fold(W.clear,W.set),Se(yt=>bV(yt,!1))},onHidden:()=>{Se(ft=>Oc(ft,[D0.transitionClass]))},...D0},lazyViewport:ft=>ix(l,ft.element).fold(()=>{const Lt=ts(),Ht=rz(l),fn=Lt.y+(nR(ft,"top")?Ht:0),Rn=Lt.height-(nR(ft,"bottom")?Ht:0);return{bounds:vs(Lt.x,fn,Lt.width,Rn),optScrollEnv:I.none()}},Lt=>({bounds:Hw(Lt),optScrollEnv:I.some({currentScrollTop:Lt.element.dom.scrollTop,scrollElmTop:Tc(Lt.element).top})})),modes:[N.header.getDockingMode()],onDocked:Be,onUndocked:Be}),...qe]};var Vee=Object.freeze({__proto__:null,setup:MS,isDocked:Y5,getBehaviours:_V});const iR=l=>{const N=l.editor,W=l.sticky?_V:n_;return{uid:l.uid,dom:l.dom,components:l.components,behaviours:ei(W(N,l.sharedBackstage))}},Uee=Si([pf,In("items",rd([It([U6,Go("items",ne)]),ne]))].concat(lp)),X5=l=>Rt("GroupToolbarButton",Uee,l),wV=[jo("text"),jo("tooltip"),jo("icon"),ns("search",!1,rd([V,Si([jo("placeholder")])],l=>w(l)?l?I.some({placeholder:I.none()}):I.none():I.some(l))),po("fetch"),ys("onSetup",()=>v)],OV=Si([pf,...wV]),SV=l=>Rt("menubutton",OV,l),jee=Si([pf,iS,E0,lx,zY,LY,Xw,rl("presets","normal",["normal","color","listpreview"]),qz(1),V2,Zz]),Qee=l=>Rt("SplitButton",jee,l);var aR=Qp({factory:(l,N)=>{const W=(Se,Be)=>{const qe=re(Be,ft=>{const yt={type:"menubutton",text:ft.text,fetch:Ht=>{Ht(ft.getItems())}},Lt=SV(yt).mapError(Ht=>dn(Ht)).getOrDie();return N5(Lt,"tox-mbtn",N.backstage,I.some("menuitem"))});Fa.set(Se,qe)},fe={focus:ha.focusIn,setMenus:W};return{uid:l.uid,dom:l.dom,components:[],behaviours:ei([Fa.config({}),Ka("menubar-events",[wc(Se=>{l.onSetup(Se)}),Lo(wu(),(Se,Be)=>{qa(Se.element,".tox-mbtn--active").each(qe=>{Sc(Be.event.target,".tox-mbtn").each(ft=>{_o(qe,ft)||Se.getSystem().getByDom(qe).each(yt=>{Se.getSystem().getByDom(ft).each(Lt=>{L0.expand(Lt),L0.close(yt),Ra.focus(Lt)})})})})}),Lo(q1(),(Se,Be)=>{Be.event.prevFocus.bind(qe=>Se.getSystem().getByDom(qe).toOptional()).each(qe=>{Be.event.newFocus.bind(ft=>Se.getSystem().getByDom(ft).toOptional()).each(ft=>{L0.isOpen(qe)&&(L0.expand(ft),L0.close(qe))})})})]),ha.config({mode:"flow",selector:".tox-mbtn",onEscape:Se=>(l.onEscape(Se),I.some(!0))}),Rc.config({})]),apis:fe,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[pn("dom"),pn("uid"),pn("onEscape"),pn("backstage"),Ar("onSetup",v)],apis:{focus:(l,N)=>{l.focus(N)},setMenus:(l,N,W)=>{l.setMenus(N,W)}}});const kV="⚡️Upgrade",TV="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",sR=l=>({uid:l.uid,dom:l.dom,components:[{dom:{tag:"a",attributes:{href:TV,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:kV}}]}),CV="container",FA=[Pd("slotBehaviours",[])],G5=l=>"",AV=l=>{const N=(()=>{const Be=[];return{slot:(ft,yt)=>(Be.push(ft),ZC(CV,G5(ft),yt)),record:x(Be)}})(),W=l(N),fe=N.record(),Se=re(fe,Be=>mh({name:Be,pname:G5(Be)}));return Dy(CV,FA,Se,Hee,W)},Hee=(l,N)=>{const W=cr=>Lw(l),fe=(cr,Xr)=>Jo(cr,l,Xr),Se=(cr,Xr)=>(br,Fr)=>Jo(br,l,Fr).map(jr=>cr(jr,Fr)).getOr(Xr),Be=cr=>(Xr,br)=>{q(br,Fr=>cr(Xr,Fr))},qe=(cr,Xr)=>Nr(cr.element,"aria-hidden")!=="true",ft=(cr,Xr)=>{if(!qe(cr)){const br=cr.element;zi(br,"display"),Qt(br,"aria-hidden"),sa(cr,$_(),{name:Xr,visible:!0})}},yt=(cr,Xr)=>{if(qe(cr)){const br=cr.element;xr(br,"display","none"),Cr(br,"aria-hidden","true"),sa(cr,$_(),{name:Xr,visible:!1})}},Lt=Se(qe,!1),Ht=Se(yt),fn=Be(Ht),Rn=cr=>fn(cr,W()),Bn=Se(ft),er={getSlotNames:W,getSlot:fe,isShowing:Lt,hideSlot:Ht,hideAllSlots:Rn,showSlot:Bn};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.slotBehaviours),apis:er}},up={...Ue({getSlotNames:(l,N)=>l.getSlotNames(N),getSlot:(l,N,W)=>l.getSlot(N,W),isShowing:(l,N,W)=>l.isShowing(N,W),hideSlot:(l,N,W)=>l.hideSlot(N,W),hideAllSlots:(l,N)=>l.hideAllSlots(N),showSlot:(l,N,W)=>l.showSlot(N,W)},l=>Tb(l)),sketch:AV},Zee=Si([E0,iS,ys("onShow",v),ys("onHide",v),Xw]),lR=l=>Rt("sidebar",Zee,l),cR=l=>{const{sidebars:N}=l.ui.registry.getAll();q(ke(N),W=>{const fe=N[W],Se=()=>St(I.from(l.queryCommandValue("ToggleSidebar")),W);l.ui.registry.addToggleButton(W,{icon:fe.icon,tooltip:fe.tooltip,onAction:Be=>{l.execCommand("ToggleSidebar",!1,W),Be.setActive(Se())},onSetup:Be=>{Be.setActive(Se());const qe=()=>Be.setActive(Se());return l.on("ToggleSidebar",qe),()=>{l.off("ToggleSidebar",qe)}}})})},qee=l=>({element:()=>l.element.dom}),uR=(l,N)=>{const W=re(ke(N),fe=>{const Se=N[fe],Be=Mt(lR(Se));return{name:fe,getApi:qee,onSetup:Be.onSetup,onShow:Be.onShow,onHide:Be.onHide}});return re(W,fe=>{const Se=wi(v);return l.slot(fe.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:lS.unnamedEvents([cp(fe,Se),j2(fe,Se),Lo($_(),(Be,qe)=>{const ft=qe.event;ce(W,Lt=>Lt.name===ft.name).each(Lt=>{(ft.visible?Lt.onShow:Lt.onHide)(Lt.getApi(Be))})})])})})},Wee=l=>up.sketch(N=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:uR(N,l),slotBehaviours:lS.unnamedEvents([wc(W=>up.hideAllSlots(W))])})),Yee=(l,N,W)=>{Xs.getCurrent(l).each(Se=>{Fa.set(Se,[Wee(N)]);const Be=W==null?void 0:W.toLowerCase();n(Be)&&ht(N,Be)&&Xs.getCurrent(Se).each(qe=>{up.showSlot(qe,Be),Tp.immediateGrow(Se),zi(Se.element,"width"),$A(l.element,"region")})})},$A=(l,N)=>{Cr(l,"role",N)},Xee=(l,N)=>{Xs.getCurrent(l).each(fe=>{Xs.getCurrent(fe).each(Be=>{Tp.hasGrown(fe)?up.isShowing(Be,N)?(Tp.shrink(fe),$A(l.element,"presentation")):(up.hideAllSlots(Be),up.showSlot(Be,N),$A(l.element,"region")):(up.hideAllSlots(Be),up.showSlot(Be,N),Tp.grow(fe),$A(l.element,"region"))})})},Gee=l=>Xs.getCurrent(l).bind(W=>Tp.isGrowing(W)||Tp.hasGrown(W)?Xs.getCurrent(W).bind(Be=>ce(up.getSlotNames(Be),qe=>up.isShowing(Be,qe))):I.none()),MV=Li("FixSizeEvent"),EV=Li("AutoSizeEvent"),PV=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:ei([Rc.config({}),Ra.config({}),Tp.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:N=>{Xs.getCurrent(N).each(up.hideAllSlots),Za(N,EV)},onGrown:N=>{Za(N,EV)},onStartGrow:N=>{sa(N,MV,{width:Ia(N.element,"width").getOr("")})},onStartShrink:N=>{sa(N,MV,{width:_s(N.element)+"px"})}}),Fa.config({}),Xs.config({find:N=>{const W=Fa.contents(N);return Qe(W)}})])}],behaviours:ei([P1.childAt(0),Ka("sidebar-sliding-events",[Lo(MV,(N,W)=>{xr(N.element,"width",W.event.width)}),Lo(EV,(N,W)=>{zi(N.element,"width")})])])});var Jee=Object.freeze({__proto__:null,block:(l,N,W,fe)=>{Cr(l.element,"aria-busy",!0);const Se=N.getRoot(l).getOr(l),Be=ei([ha.config({mode:"special",onTab:()=>I.some(!0),onShiftTab:()=>I.some(!0)}),Ra.config({})]),qe=fe(Se,Be),ft=Se.getSystem().build(qe);Fa.append(Se,ea(ft)),ft.hasConfigured(ha)&&N.focus&&ha.focusIn(ft),W.isBlocked()||N.onBlock(l),W.blockWith(()=>Fa.remove(Se,ft))},unblock:(l,N,W)=>{Qt(l.element,"aria-busy"),W.isBlocked()&&N.onUnblock(l),W.clear()},isBlocked:(l,N,W)=>W.isBlocked()}),ete=[ys("getRoot",I.none),Hs("focus",!0),Ss("onBlock"),Ss("onUnblock")],tte=Object.freeze({__proto__:null,init:()=>{const l=wd(),N=W=>{l.set({destroy:W})};return Hd({readState:l.isSet,blockWith:N,clear:l.clear,isBlocked:l.isSet})}});const I1=id({fields:ete,name:"blocking",apis:Jee,state:tte}),nte=l=>(N,W)=>({dom:{tag:"div",attributes:{"aria-label":l.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ev('
    ')}]}),RV=l=>Xs.getCurrent(l).each(N=>Md(N.element,!0)),rte=(l,N)=>{const W="tabindex",fe=`data-mce-${W}`;I.from(l.iframeElement).map(Nt.fromDom).each(Se=>{N?(Eo(Se,W).each(Be=>Cr(Se,fe,Be)),Cr(Se,W,-1)):(Qt(Se,W),Eo(Se,fe).each(Be=>{Cr(Se,W,Be),Qt(Se,fe)}))})},Kfe=(l,N,W,fe)=>{const Se=N.element;if(rte(l,W),W)I1.block(N,nte(fe)),zi(Se,"display"),Qt(Se,"aria-hidden"),l.hasFocus()&&RV(N);else{const Be=Xs.getCurrent(N).exists(qe=>_0(qe.element));I1.unblock(N),xr(Se,"display","none"),Cr(Se,"aria-hidden","true"),Be&&l.focus()}},Jfe=l=>({uid:l.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:ei([Fa.config({}),I1.config({focus:!1}),Xs.config({find:N=>Qe(N.components())})]),components:[]}),LV=l=>l.type==="focusin",IV=l=>LV(l)?(l.composed?Qe(l.composedPath()):I.from(l.target)).map(Nt.fromDom).filter(lr).exists(W=>rp(W,"mce-pastebin")):!1,ote=(l,N,W)=>{const fe=wi(!1),Se=ds(),Be=ft=>{fe.get()&&!IV(ft)&&(ft.preventDefault(),RV(N()),l.editorManager.setActive(l))};l.inline||l.on("PreInit",()=>{l.dom.bind(l.getWin(),"focusin",Be),l.on("BeforeExecCommand",ft=>{ft.command.toLowerCase()==="mcefocus"&&ft.value!==!0&&Be(ft)})});const qe=ft=>{ft!==fe.get()&&(fe.set(ft),Kfe(l,N(),ft,W.providers),fX(l,ft))};l.on("ProgressState",ft=>{if(Se.on(clearTimeout),h(ft.time)){const yt=J3.setEditorTimeout(l,()=>qe(ft.state),ft.time);Se.set(yt)}else qe(ft.state),Se.clear()})},ite=(l,N)=>se(l,(Se,Be)=>N(Be,Se.len).fold(x(Se),ft=>({len:ft.finish,list:Se.list.concat([ft])})),{len:0,list:[]}).list,_m=(l,N,W)=>({within:l,extra:N,withinWidth:W}),DV=(l,N,W)=>{const fe=ite(l,(ft,yt)=>{const Lt=W(ft);return I.some({element:ft,start:yt,finish:yt+Lt,width:Lt})}),Se=me(fe,ft=>ft.finish<=N),Be=pe(Se,(ft,yt)=>ft+yt.width,0),qe=fe.slice(Se.length);return{within:Se,extra:qe,withinWidth:Be}},K5=l=>re(l,N=>N.element),BV=(l,N,W)=>{const fe=K5(l.concat(N));return _m(fe,[],W)},ate=(l,N,W,fe)=>{const Se=K5(l).concat([W]);return _m(Se,K5(N),fe)},J5=(l,N,W)=>_m(K5(l),[],W),ste=(l,N,W)=>{const fe=DV(N,l,W);return fe.extra.length===0?I.some(fe):I.none()},VA=(l,N,W,fe)=>{const Se=ste(l,N,W).getOrThunk(()=>DV(N,l-W(fe),W)),Be=Se.within,qe=Se.extra,ft=Se.withinWidth;return qe.length===1&&qe[0].width<=W(fe)?BV(Be,qe,ft):qe.length>=1?ate(Be,qe,fe,ft):J5(Be,qe,ft)},zV=(l,N)=>{const W=re(N,fe=>ea(fe));Nv.setGroups(l,W)},UA=l=>Oe(l,N=>Wd(N.element).bind(W=>N.getSystem().getByDom(W).toOptional())),NV=(l,N,W)=>{const fe=N.builtGroups.get();if(fe.length===0)return;const Se=gm(l,N,"primary"),Be=Ku.getCoupled(l,"overflowGroup");xr(Se.element,"visibility","hidden");const qe=fe.concat([Be]),ft=UA(qe);W([]),zV(Se,qe);const yt=_s(Se.element),Lt=VA(yt,N.builtGroups.get(),Ht=>Math.ceil(Ht.element.dom.getBoundingClientRect().width),Be);Lt.extra.length===0?(Fa.remove(Se,Be),W([])):(zV(Se,Lt.within),W(Lt.extra)),zi(Se.element,"visibility"),yl(Se.element),ft.each(Ra.focus)},FV=x([Pd("splitToolbarBehaviours",[Ku]),gn("builtGroups",()=>wi([]))]),B0=x([h0(["overflowToggledClass"]),ai("getOverflowBounds"),pn("lazySink"),gn("overflowGroups",()=>wi([])),Ss("onOpened"),Ss("onClosed")].concat(FV())),lte=x([mh({factory:Nv,schema:lO(),name:"primary"}),Jm({schema:lO(),name:"overflow"}),Jm({name:"overflow-button"}),Jm({name:"overflow-group"})]),ES=x((l,N)=>{mu(l,Math.floor(N))}),$V=x([h0(["toggledClass"]),pn("lazySink"),po("fetch"),ai("getBounds"),Ai("fireDismissalEventInstead",[Ar("event",J0())]),dm(),Ss("onToggled")]),VV=x([Jm({name:"button",overrides:l=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:ei([us.config({toggleClass:l.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:l.onToggled})])})}),Jm({factory:Nv,schema:lO(),name:"toolbar",overrides:l=>({toolbarBehaviours:ei([ha.config({mode:"cyclic",onEscape:N=>(Jo(N,l,"button").each(Ra.focus),I.none())})])})})]),jA=ds(),UV=(l,N)=>{jA.set(!0),fR(l,N),jA.clear()},fR=(l,N)=>{const W=Ku.getCoupled(l,"toolbarSandbox");Ys.isOpen(W)?Ys.close(W):Ys.open(W,N.toolbar())},dR=(l,N,W,fe)=>{const Se=W.getBounds.map(qe=>qe()),Be=W.lazySink(l).getOrDie();Rh.positionWithinBounds(Be,N,{anchor:{type:"hotspot",hotspot:l,layouts:fe,overrides:{maxWidthFunction:ES()}}},Se)},jV=(l,N,W,fe,Se)=>{Nv.setGroups(N,Se),dR(l,N,W,fe),us.on(l)},cte=(l,N,W)=>{const fe=ld(),Se=(qe,ft)=>{const yt=jA.get().getOr(!1);W.fetch().get(Lt=>{jV(l,ft,W,N.layouts,Lt),fe.link(l.element),yt||ha.focusIn(ft)})},Be=()=>{us.off(l),jA.get().getOr(!1)||Ra.focus(l),fe.unlink(l.element)};return{dom:{tag:"div",attributes:{id:fe.id}},behaviours:ei([ha.config({mode:"special",onEscape:qe=>(Ys.close(qe),I.some(!0))}),Ys.config({onOpen:Se,onClose:Be,isPartOf:(qe,ft,yt)=>Cf(ft,yt)||Cf(l,yt),getAttachPoint:()=>W.lazySink(l).getOrDie()}),Ad.config({channels:{...Iy({isExtraPart:D,...W.fireDismissalEventInstead.map(qe=>({fireEventInstead:{event:qe.event}})).getOr({})}),...ak({doReposition:()=>{Ys.getState(Ku.getCoupled(l,"toolbarSandbox")).each(qe=>{dR(l,qe,W,N.layouts)})}})}})])}},r_=Zh({name:"FloatingToolbarButton",factory:(l,N,W,fe)=>({...Lh.sketch({...fe.button(),action:Se=>{fR(Se,fe)},buttonBehaviours:Km.augment({dump:fe.button().buttonBehaviours},[Ku.config({others:{toolbarSandbox:Se=>cte(Se,W,l)}})])}),apis:{setGroups:(Se,Be)=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(qe=>{jV(Se,qe,l,W.layouts,Be)})},reposition:Se=>{Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")).each(Be=>{dR(Se,Be,l,W.layouts)})},toggle:Se=>{fR(Se,fe)},toggleWithoutFocusing:Se=>{UV(Se,fe)},getToolbar:Se=>Ys.getState(Ku.getCoupled(Se,"toolbarSandbox")),isOpen:Se=>Ys.isOpen(Ku.getCoupled(Se,"toolbarSandbox"))}}),configFields:$V(),partFields:VV(),apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggleWithoutFocusing(N)},getToolbar:(l,N)=>l.getToolbar(N),isOpen:(l,N)=>l.isOpen(N)}}),ute=x([pn("items"),h0(["itemSelector"]),Pd("tgroupBehaviours",[ha])]),QV=x([U3({name:"items",unit:"item"})]),HV=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.tgroupBehaviours,[ha.config({mode:"flow",selector:l.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),eT=Zh({name:"ToolbarGroup",configFields:ute(),partFields:QV(),factory:HV}),ZV=l=>re(l,N=>ea(N)),qV=(l,N,W)=>{NV(l,W,fe=>{W.overflowGroups.set(fe),N.getOpt(l).each(Se=>{r_.setGroups(Se,ZV(fe))})})},WV=(l,N,W,fe)=>{const Se=ml(r_.sketch({fetch:()=>Ih.nu(Be=>{Be(ZV(l.overflowGroups.get()))}),layouts:{onLtr:()=>[$c,Lu],onRtl:()=>[Lu,$c],onBottomLtr:()=>[Mf,dl],onBottomRtl:()=>[dl,Mf]},getBounds:W.getOverflowBounds,lazySink:l.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:l.markers.overflowToggledClass},parts:{button:fe["overflow-button"](),toolbar:fe.overflow()},onToggled:(Be,qe)=>l[qe?"onOpened":"onClosed"](Be)}));return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:()=>eT.sketch({...fe["overflow-group"](),items:[Se.asSpec()]})}})]),apis:{setGroups:(Be,qe)=>{l.builtGroups.set(re(qe,Be.getSystem().build)),qV(Be,Se,l)},refresh:Be=>qV(Be,Se,l),toggle:Be=>{Se.getOpt(Be).each(qe=>{r_.toggle(qe)})},toggleWithoutFocusing:Be=>{Se.getOpt(Be).each(r_.toggleWithoutFocusing)},isOpen:Be=>Se.getOpt(Be).map(r_.isOpen).getOr(!1),reposition:Be=>{Se.getOpt(Be).each(qe=>{r_.reposition(qe)})},getOverflow:Be=>Se.getOpt(Be).bind(r_.getToolbar)},domModification:{attributes:{role:"group"}}}},hR=Zh({name:"SplitFloatingToolbar",configFields:B0(),partFields:lte(),factory:WV,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},reposition:(l,N)=>{l.reposition(N)},toggle:(l,N)=>{l.toggle(N)},toggleWithoutFocusing:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N),getOverflow:(l,N)=>l.getOverflow(N)}}),YV=x([h0(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Ss("onOpened"),Ss("onClosed")].concat(FV())),fte=x([mh({factory:Nv,schema:lO(),name:"primary"}),mh({factory:Nv,schema:lO(),name:"overflow",overrides:l=>({toolbarBehaviours:ei([Tp.config({dimension:{property:"height"},closedClass:l.markers.closedClass,openClass:l.markers.openClass,shrinkingClass:l.markers.shrinkingClass,growingClass:l.markers.growingClass,onShrunk:N=>{Jo(N,l,"overflow-button").each(W=>{us.off(W)}),l.onClosed(N)},onGrown:N=>{l.onOpened(N)},onStartGrow:N=>{Jo(N,l,"overflow-button").each(us.on)}}),ha.config({mode:"acyclic",onEscape:N=>(Jo(N,l,"overflow-button").each(Ra.focus),I.some(!0))})])})}),Jm({name:"overflow-button",overrides:l=>({buttonBehaviours:ei([us.config({toggleClass:l.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])})}),Jm({name:"overflow-group"})]),dte=(l,N)=>Jo(l,N,"overflow").map(Tp.hasGrown).getOr(!1),pR=(l,N,W)=>{Jo(l,N,"overflow-button").each(fe=>{Jo(l,N,"overflow").each(Se=>{if(QA(l,N),Tp.hasShrunk(Se)){const Be=N.onOpened;N.onOpened=qe=>{W||ha.focusIn(Se),Be(qe),N.onOpened=Be}}else{const Be=N.onClosed;N.onClosed=qe=>{W||Ra.focus(fe),Be(qe),N.onClosed=Be}}Tp.toggleGrow(Se)})})},QA=(l,N)=>{Jo(l,N,"overflow").each(W=>{NV(l,N,fe=>{const Se=re(fe,Be=>ea(Be));Nv.setGroups(W,Se)}),Jo(l,N,"overflow-button").each(fe=>{Tp.hasGrown(W)&&us.on(fe)}),Tp.refresh(W)})},hte=(l,N,W,fe)=>{const Se="alloy.toolbar.toggle",Be=(qe,ft)=>{const yt=re(ft,qe.getSystem().build);l.builtGroups.set(yt)};return{uid:l.uid,dom:l.dom,components:N,behaviours:Rd(l.splitToolbarBehaviours,[Ku.config({others:{overflowGroup:qe=>eT.sketch({...fe["overflow-group"](),items:[Lh.sketch({...fe["overflow-button"](),action:ft=>{Za(qe,Se)}})]})}}),Ka("toolbar-toggle-events",[Lo(Se,qe=>{pR(qe,l,!1)})])]),apis:{setGroups:(qe,ft)=>{Be(qe,ft),QA(qe,l)},refresh:qe=>QA(qe,l),toggle:qe=>{pR(qe,l,!1)},toggleWithoutFocusing:qe=>{pR(qe,l,!0)},isOpen:qe=>dte(qe,l)},domModification:{attributes:{role:"group"}}}},mR=Zh({name:"SplitSlidingToolbar",configFields:YV(),partFields:fte(),factory:hte,apis:{setGroups:(l,N,W)=>{l.setGroups(N,W)},refresh:(l,N)=>{l.refresh(N)},toggle:(l,N)=>{l.toggle(N)},isOpen:(l,N)=>l.isOpen(N)}}),XV=l=>{const N=l.title.fold(()=>({}),W=>({attributes:{title:W}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...N},components:[eT.parts.items({})],items:l.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:ei([Rc.config({}),Ra.config({})])}},HA=l=>eT.sketch(XV(l)),GV=(l,N)=>{const W=wc(fe=>{const Se=re(l.initGroups,HA);Nv.setGroups(fe,Se)});return ei([E1.toolbarButton(l.providers.isDisabled),Id(),ha.config({mode:N,onEscape:l.onEscape,selector:".tox-toolbar__group"}),Ka("toolbar-events",[W])])},KV=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return{uid:l.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":XV({title:I.none(),items:[]}),"overflow-button":RJ({name:"more",icon:I.some("more-drawer"),enabled:!0,tooltip:I.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:I.none(),borderless:!1},I.none(),l.providers,[],"overflow-button")},splitToolbarBehaviours:GV(l,N)}},pte=l=>{const N=KV(l),W=4,fe=hR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return hR.sketch({...N,lazySink:l.getSink,getOverflowBounds:()=>{const Se=l.moreDrawerData.lazyHeader().element,Be=bc(Se),qe=Hn(Se),ft=bc(qe),yt=Math.max(qe.dom.scrollHeight,ft.height);return vs(Be.x+W,ft.y,Be.width-W*2,yt)},parts:{...N.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:l.attributes}}},components:[fe],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>l.onToggled(Se,!0),onClosed:Se=>l.onToggled(Se,!1)})},mte=l=>{const N=mR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),W=mR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),fe=KV(l);return mR.sketch({...fe,components:[N,W],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:Se=>{Se.getSystem().broadcastOn([cO()],{type:"opened"}),l.onToggled(Se,!0)},onClosed:Se=>{Se.getSystem().broadcastOn([cO()],{type:"closed"}),l.onToggled(Se,!1)}})},ZA=l=>{const N=l.cyclicKeying?"cyclic":"acyclic";return Nv.sketch({uid:l.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(l.type===C0.scrolling?["tox-toolbar--scrolling"]:[])},components:[Nv.parts.groups({})],toolbarBehaviours:GV(l,N)})},JV=[lx,E0,jo("tooltip"),rl("buttonType","secondary",["primary","secondary"]),Hs("borderless",!1),po("onAction")],eU=[...JV,sx,Gr("type",["button"])],gte=[...JV,Hs("active",!1),Gr("type",["togglebutton"])],tU={button:eU,togglebutton:gte},gR=[Gr("type",["group"]),mt("buttons",[],bn("type",tU))],vte=bn("type",{...tU,group:gR}),qA=Si([mt("buttons",[],vte),po("onShow"),po("onHide")]),yte=l=>Rt("view",qA,l),nU=(l,N)=>{var W,fe;const Se=l.type==="togglebutton",Be=l.icon.map(jr=>K2(jr,N.icons)).map(ml),ft=(()=>jr=>{const Ro=Pi=>{Be.map(Ao=>Ao.getOpt(jr).each($i=>{Fa.set($i,[K2(Pi,N.icons)])}))},ko=Pi=>{const Ao=jr.element;Pi?(uc(Ao,"tox-button--enabled"),Cr(Ao,"aria-pressed",!0)):(Zc(Ao,"tox-button--enabled"),Qt(Ao,"aria-pressed"))},_i=()=>rp(jr.element,"tox-button--enabled");if(Se)return l.onAction({setIcon:Ro,setActive:ko,isActive:_i});if(l.type==="button")return l.onAction({setIcon:Ro})})(),yt={...l,name:Se?l.text.getOr(l.icon.getOr("")):(W=l.text)!==null&&W!==void 0?W:l.icon.getOr(""),primary:l.buttonType==="primary",buttonType:I.from(l.buttonType),tooltip:l.tooltip,icon:l.icon,enabled:!0,borderless:l.borderless},Lt=I9((fe=l.buttonType)!==null&&fe!==void 0?fe:"secondary"),Ht=Se?l.text.map(N.translate):I.some(N.translate(l.text)),fn=Ht.map(Po),Rn=yt.tooltip.or(Ht).map(jr=>({"aria-label":N.translate(jr)})).getOr({}),Bn=Be.map(jr=>jr.asSpec()),er=Kw([Bn,fn]),cr=l.icon.isSome()&&fn.isSome(),Xr={tag:"button",classes:Lt.concat(...l.icon.isSome()&&!cr?["tox-button--icon"]:[]).concat(...cr?["tox-button--icon-and-text"]:[]).concat(...l.borderless?["tox-button--naked"]:[]).concat(...l.type==="togglebutton"&&l.active?["tox-button--enabled"]:[]),attributes:Rn},br=[],Fr=$5(yt,I.some(ft),br,Xr,er,l.tooltip,N);return Lh.sketch(Fr)},rU=(l,N)=>nU(l,N),bte=(l,N)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:re(l.buttons,W=>rU(W,N))}),xte=va().deviceType,_te=xte.isPhone(),wte=xte.isTablet(),vR=l=>{let N=!1;const W=re(l.buttons,fe=>fe.type==="group"?(N=!0,bte(fe,l.providers)):rU(fe,l.providers));return{uid:l.uid,dom:{tag:"div",classes:[N?"tox-view__toolbar":"tox-view__header",..._te||wte?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:ei([Ra.config({}),ha.config({mode:"flow",selector:"button, .tox-button",focusInside:Mv.OnEnterOrSpaceMode})]),components:N?W:[Iv.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Iv.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:W})]}},Ote=l=>({uid:l.uid,behaviours:ei([Ra.config({}),Rc.config({})]),dom:{tag:"div",classes:["tox-view__pane"]}}),WA=(l,N,W,fe)=>{const Se={getPane:Be=>qf.getPart(Be,l,"pane"),getOnShow:Be=>l.viewConfig.onShow,getOnHide:Be=>l.viewConfig.onHide};return{uid:l.uid,dom:l.dom,components:N,behaviours:ei([Ra.config({}),ha.config({mode:"cyclic",focusInside:Mv.OnEnterOrSpaceMode})]),apis:Se}};var uO=Zh({name:"silver.View",configFields:[pn("viewConfig")],partFields:[mm({factory:{sketch:vR},schema:[pn("buttons"),pn("providers")],name:"header"}),mm({factory:{sketch:Ote},schema:[],name:"pane"})],factory:WA,apis:{getPane:(l,N)=>l.getPane(N),getOnShow:(l,N)=>l.getOnShow(N),getOnHide:(l,N)=>l.getOnHide(N)}});const oU=(l,N,W)=>je(N,(fe,Se)=>{const Be=Mt(yte(fe));return l.slot(Se,uO.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Be,components:[...Be.buttons.length>0?[uO.parts.header({buttons:Be.buttons,providers:W})]:[],uO.parts.pane({})]}))}),yR=(l,N)=>up.sketch(W=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:oU(W,l,N),slotBehaviours:lS.unnamedEvents([wc(fe=>up.hideAllSlots(fe))])})),iU=l=>ce(up.getSlotNames(l),N=>up.isShowing(l,N)),aU=l=>{const N=l.element;xr(N,"display","none"),Cr(N,"aria-hidden","true")},PS=l=>{const N=l.element;zi(N,"display"),Qt(N,"aria-hidden")},sU=l=>({getContainer:x(l)}),lU=(l,N,W)=>{up.getSlot(l,N).each(fe=>{uO.getPane(fe).each(Se=>{W(fe)(sU(Se.element.dom))})})},Ste=(l,N)=>lU(l,N,uO.getOnShow),kte=(l,N)=>lU(l,N,uO.getOnHide);var YA=Qp({factory:(l,N)=>{const Be={setViews:(qe,ft)=>{Fa.set(qe,[yR(ft,N.backstage.shared.providers)])},whichView:qe=>Xs.getCurrent(qe).bind(iU),toggleView:(qe,ft,yt,Lt)=>Xs.getCurrent(qe).exists(Ht=>{const fn=iU(Ht),Rn=fn.exists(er=>Lt===er),Bn=up.getSlot(Ht,Lt).isSome();return Bn&&(up.hideAllSlots(Ht),Rn?(aU(qe),ft()):(yt(),PS(qe),up.showSlot(Ht,Lt),Ste(Ht,Lt)),fn.each(er=>kte(Ht,er))),Bn})};return{uid:l.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:ei([Fa.config({}),Xs.config({find:qe=>{const ft=Fa.contents(qe);return Qe(ft)}})]),apis:Be}},name:"silver.ViewWrapper",configFields:[pn("backstage")],apis:{setViews:(l,N,W)=>l.setViews(N,W),toggleView:(l,N,W,fe,Se)=>l.toggleView(N,W,fe,Se),whichView:(l,N)=>l.whichView(N)}});const Tte=(l,N,W)=>{let fe=!1;const Se=qe=>{kl(qe,".tox-statusbar").each(ft=>{Di(ft,"display")==="none"&&Nr(ft,"aria-hidden")==="true"?(zi(ft,"display"),Qt(ft,"aria-hidden")):(xr(ft,"display","none"),Cr(ft,"aria-hidden","true"))})},Be={getSocket:qe=>qf.getPart(qe,l,"socket"),setSidebar:(qe,ft,yt)=>{qf.getPart(qe,l,"sidebar").each(Lt=>Yee(Lt,ft,yt))},toggleSidebar:(qe,ft)=>{qf.getPart(qe,l,"sidebar").each(yt=>Xee(yt,ft))},whichSidebar:qe=>qf.getPart(qe,l,"sidebar").bind(Gee).getOrNull(),getHeader:qe=>qf.getPart(qe,l,"header"),getToolbar:qe=>qf.getPart(qe,l,"toolbar"),setToolbar:(qe,ft)=>{qf.getPart(qe,l,"toolbar").each(yt=>{const Lt=re(ft,HA);yt.getApis().setGroups(yt,Lt)})},setToolbars:(qe,ft)=>{qf.getPart(qe,l,"multiple-toolbar").each(yt=>{const Lt=re(ft,Ht=>re(Ht,HA));mV.setItems(yt,Lt)})},refreshToolbar:qe=>{qf.getPart(qe,l,"toolbar").each(yt=>yt.getApis().refresh(yt))},toggleToolbarDrawer:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggle,yt=>yt(ft))})},toggleToolbarDrawerWithoutFocusing:qe=>{qf.getPart(qe,l,"toolbar").each(ft=>{Et(ft.getApis().toggleWithoutFocusing,yt=>yt(ft))})},isToolbarDrawerToggled:qe=>qf.getPart(qe,l,"toolbar").bind(ft=>I.from(ft.getApis().isOpen).map(yt=>yt(ft))).getOr(!1),getThrobber:qe=>qf.getPart(qe,l,"throbber"),focusToolbar:qe=>{qf.getPart(qe,l,"toolbar").orThunk(()=>qf.getPart(qe,l,"multiple-toolbar")).each(yt=>{ha.focusIn(yt)})},setMenubar:(qe,ft)=>{qf.getPart(qe,l,"menubar").each(yt=>{aR.setMenus(yt,ft)})},focusMenubar:qe=>{qf.getPart(qe,l,"menubar").each(ft=>{aR.focus(ft)})},setViews:(qe,ft)=>{qf.getPart(qe,l,"viewWrapper").each(yt=>{YA.setViews(yt,ft)})},toggleView:(qe,ft)=>qf.getPart(qe,l,"viewWrapper").exists(yt=>YA.toggleView(yt,()=>Be.showMainView(qe),()=>Be.hideMainView(qe),ft)),whichView:qe=>qf.getPart(qe,l,"viewWrapper").bind(YA.whichView).getOrNull(),hideMainView:qe=>{fe=Be.isToolbarDrawerToggled(qe),fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),xr(yt,"display","none"),Cr(yt,"aria-hidden","true")})},showMainView:qe=>{fe&&Be.toggleToolbarDrawer(qe),qf.getPart(qe,l,"editorContainer").each(ft=>{const yt=ft.element;Se(yt),zi(yt,"display"),Qt(yt,"aria-hidden")})}};return{uid:l.uid,dom:l.dom,components:N,apis:Be,behaviours:l.behaviours}},uU=zv.optional({factory:aR,name:"menubar",schema:[pn("backstage")]}),fU=l=>l.type===C0.sliding?mte:l.type===C0.floating?pte:ZA,XA=zv.optional({factory:{sketch:l=>mV.sketch({uid:l.uid,dom:l.dom,listBehaviours:ei([ha.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>ZA({type:l.type,uid:Li("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:l.providers,onEscape:()=>(l.onEscape(),I.some(!0))}),setupItem:(N,W,fe,Se)=>{Nv.setGroups(W,fe)},shell:!0})},name:"multiple-toolbar",schema:[pn("dom"),pn("onEscape")]}),bR=zv.optional({factory:{sketch:l=>{const N=fU(l),W={type:l.type,uid:l.uid,onEscape:()=>(l.onEscape(),I.some(!0)),onToggled:(fe,Se)=>l.onToolbarToggled(Se),cyclicKeying:!1,initGroups:[],getSink:l.getSink,providers:l.providers,moreDrawerData:{lazyToolbar:l.lazyToolbar,lazyMoreButton:l.lazyMoreButton,lazyHeader:l.lazyHeader},attributes:l.attributes};return N(W)}},name:"toolbar",schema:[pn("dom"),pn("onEscape"),pn("getSink")]}),Cte=zv.optional({factory:{sketch:iR},name:"header",schema:[pn("dom")]}),Ate=zv.optional({factory:{sketch:sR},name:"promotion",schema:[pn("dom")]}),dU=zv.optional({name:"socket",schema:[pn("dom")]}),Mte=zv.optional({factory:{sketch:PV},name:"sidebar",schema:[pn("dom")]}),Ete=zv.optional({factory:{sketch:Jfe},name:"throbber",schema:[pn("dom")]}),Pte=zv.optional({factory:YA,name:"viewWrapper",schema:[pn("backstage")]}),hU=l=>({uid:l.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:l.components}),Rte=zv.optional({factory:{sketch:hU},name:"editorContainer",schema:[]});var Lc=Zh({name:"OuterContainer",factory:Tte,configFields:[pn("dom"),pn("behaviours")],partFields:[Cte,uU,bR,XA,dU,Mte,Ate,Ete,Pte,Rte],apis:{getSocket:(l,N)=>l.getSocket(N),setSidebar:(l,N,W,fe)=>{l.setSidebar(N,W,fe)},toggleSidebar:(l,N,W)=>{l.toggleSidebar(N,W)},whichSidebar:(l,N)=>l.whichSidebar(N),getHeader:(l,N)=>l.getHeader(N),getToolbar:(l,N)=>l.getToolbar(N),setToolbar:(l,N,W)=>{l.setToolbar(N,W)},setToolbars:(l,N,W)=>{l.setToolbars(N,W)},refreshToolbar:(l,N)=>l.refreshToolbar(N),toggleToolbarDrawer:(l,N)=>{l.toggleToolbarDrawer(N)},toggleToolbarDrawerWithoutFocusing:(l,N)=>{l.toggleToolbarDrawerWithoutFocusing(N)},isToolbarDrawerToggled:(l,N)=>l.isToolbarDrawerToggled(N),getThrobber:(l,N)=>l.getThrobber(N),setMenubar:(l,N,W)=>{l.setMenubar(N,W)},focusMenubar:(l,N)=>{l.focusMenubar(N)},focusToolbar:(l,N)=>{l.focusToolbar(N)},setViews:(l,N,W)=>{l.setViews(N,W)},toggleView:(l,N,W)=>l.toggleView(N,W),whichView:(l,N)=>l.whichView(N)}});const xR="file edit view insert format tools table help",pU={file:{title:"File",items:"newdocument restoredraft | preview | importword exportpdf exportword | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed inserttemplate codesample inserttable accordion math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},Lte=(l,N,W)=>{const fe=v6(W).split(/[ ,]/);return{text:l.title,getItems:()=>ve(l.items,Se=>{const Be=Se.toLowerCase();return Be.trim().length===0?[]:te(fe,qe=>qe===Be)?[]:Be==="separator"||Be==="|"?[{type:"separator"}]:N.menuItems[Be]?[N.menuItems[Be]]:[]})}},GA=l=>l.split(" "),mU=(l,N)=>{const W={...pU,...N.menus},fe=ke(N.menus).length>0,Se=N.menubar===void 0||N.menubar===!0?GA(xR):GA(N.menubar===!1?"":N.menubar),Be=me(Se,ft=>{const yt=ht(pU,ft);return fe?yt||Ge(N.menus,ft).exists(Lt=>ht(Lt,"items")):yt}),qe=re(Be,ft=>{const yt=W[ft];return Lte({title:yt.title,items:GA(yt.items)},N,l)});return me(qe,ft=>{const yt=Lt=>n(Lt)||Lt.type!=="separator";return ft.getItems().length>0&&te(ft.getItems(),yt)})},gU=l=>{const N=()=>{l._skinLoaded=!0,lX(l)};return()=>{l.initialized?N():l.on("init",N)}},Ite=(l,N)=>()=>cX(l,{message:N}),_R=(l,N,W)=>(l.on("remove",()=>W.unload(N)),W.load(N)),wR=(l,N,W,fe)=>(l.on("remove",()=>fe.unloadRawCss(N)),fe.loadRawCss(N,W)),Dte=async(l,N)=>{const fe="ui/"+w6(l).getOr("default")+"/skin.css",Se=tinymce.Resource.get(fe);if(n(Se))wR(l,fe,Se,l.ui.styleSheetLoader);else{const Be=l.editorManager.suffix,qe=N+`/skin${Be}.css`;return _R(l,qe,l.ui.styleSheetLoader)}},Bte=async(l,N)=>{if(Gt(Nt.fromDom(l.getElement()))){const Se="ui/"+w6(l).getOr("default")+"/skin.shadowdom.css",Be=tinymce.Resource.get(Se);if(n(Be))wR(l,Se,Be,Fw.DOM.styleSheetLoader);else{const qe=l.editorManager.suffix,ft=N+`/skin.shadowdom${qe}.css`;return _R(l,ft,Fw.DOM.styleSheetLoader)}}},vU=async(l,N)=>{const W=()=>{const Se=YE(N),Be=N.editorManager.suffix;Se&&N.contentCSS.push(Se+(l?"/content.inline":"/content")+`${Be}.css`)};w6(N).fold(W,Se=>{const Be="ui/"+Se+(l?"/content.inline":"/content")+".css",qe=tinymce.Resource.get(Be);n(qe)?wR(N,Be,qe,N.ui.styleSheetLoader):W()});const fe=YE(N);if(!WE(N)&&n(fe))return Promise.all([Dte(N,fe),Bte(N,fe)]).then()},yU=(l,N)=>vU(l,N).then(gU(N),Ite(N,"Skin could not be loaded")),zte=T(yU,!1),Nte=T(yU,!0),o_=(l,N,W)=>at(W)?l.translate(N):l.translate([N,l.translate(W)]),OR=(l,N)=>{const W=(qe,ft,yt,Lt)=>{const Ht=l.shared.providers.translate(qe.title);if(qe.type==="separator")return I.some({type:"separator",text:Ht});if(qe.type==="submenu"){const fn=ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt));return ft===0&&fn.length<=0?I.none():I.some({type:"nestedmenuitem",text:Ht,enabled:fn.length>0,getSubmenuItems:()=>ve(qe.getStyleItems(),Rn=>fe(Rn,ft,Lt))})}else return I.some({type:"togglemenuitem",text:Ht,icon:qe.icon,active:qe.isSelected(Lt),enabled:!yt,onAction:N.onAction(qe),...qe.getStylePreview().fold(()=>({}),fn=>({meta:{style:fn}}))})},fe=(qe,ft,yt)=>{const Lt=qe.type==="formatter"&&N.isInvalid(qe);return ft===0?Lt?[]:W(qe,ft,!1,yt).toArray():W(qe,ft,Lt,yt).toArray()},Se=qe=>{const ft=N.getCurrentValue(),yt=N.shouldHide?0:1;return ve(qe,Lt=>fe(Lt,yt,ft))};return{validateItems:Se,getFetch:(qe,ft)=>(yt,Lt)=>{const Ht=ft(),fn=Se(Ht),Rn=OS(fn,A1.CLOSE_ON_EXECUTE,qe,{isHorizontalMenu:!1,search:I.none()});Lt(Rn)}}},RS=(l,N)=>{const W=N.dataset,fe=W.type==="basic"?()=>re(W.data,Se=>DA(Se,N.isSelectedFor,N.getPreviewFor)):W.getData;return{items:OR(l,N),getStyleItems:fe}},tT=(l,N,W,fe,Se,Be)=>{const{items:qe,getStyleItems:ft}=RS(N,W),yt=wi(W.tooltip),Lt=fn=>({getComponent:x(fn),setTooltip:Rn=>{const Bn=N.shared.providers.translate(Rn);Cr(fn.element,"aria-label",Bn),yt.set(Rn)}}),Ht=fn=>{const Rn=Bn=>fn.setTooltip(o_(l,fe(Bn.value),Bn.value));return l.on(Se,Rn),eA(tO(l,"NodeChange",Bn=>{const er=Bn.getComponent();W.updateText(er),he.set(Bn.getComponent(),!l.selection.isEditable())})(fn),()=>l.off(Se,Rn))};return g9({text:W.icon.isSome()?I.none():W.text,icon:W.icon,ariaLabel:I.some(W.tooltip),tooltip:I.none(),role:I.none(),fetch:qe.getFetch(N,ft),onSetup:Ht,getApi:Lt,columns:1,presets:"normal",classes:W.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[Vu.config({...N.shared.providers.tooltips.getConfig({tooltipText:N.shared.providers.translate(W.tooltip),onShow:fn=>{if(W.tooltip!==yt.get()){const Rn=N.shared.providers.translate(yt.get());Vu.setComponents(fn,N.shared.providers.tooltips.getComponents({tooltipText:Rn}))}}})})]},"tox-tbtn",N.shared,Be)},Fte=l=>re(l,N=>{let W=N,fe=N;const Se=N.split("=");return Se.length>1&&(W=Se[0],fe=Se[1]),{title:W,format:fe}}),$te=l=>({type:"basic",data:l});var LS;(function(l){l[l.SemiColon=0]="SemiColon",l[l.Space=1]="Space"})(LS||(LS={}));const Vte=(l,N)=>N===LS.SemiColon?l.replace(/;$/,"").split(";"):l.split(" "),SR=(l,N,W)=>{const fe=l.options.get(N);return{type:"basic",data:Fte(Vte(fe,W))}},Ute="Align",bU=x("Alignment {0}"),kR="left",IS=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],KA=l=>{const N=()=>ce(IS,ft=>l.formatter.match(ft.format)),W=ft=>()=>l.formatter.match(ft),fe=ft=>I.none,Se=ft=>{const Lt=N().fold(x(kR),Ht=>Ht.title.toLowerCase());sa(ft,J2,{icon:`align-${Lt}`}),r7(l,{value:Lt})},Be=$te(IS),qe=ft=>()=>ce(IS,yt=>yt.format===ft.format).each(yt=>l.execCommand(yt.command));return{tooltip:o_(l,bU(),kR),text:I.none(),icon:I.some("align-left"),isSelectedFor:W,getCurrentValue:I.none,getPreviewFor:fe,onAction:qe,updateText:Se,dataset:Be,shouldHide:!1,isInvalid:ft=>!l.formatter.canApply(ft.format)}},xU=(l,N)=>tT(l,N,KA(l),bU,"AlignTextUpdate","align"),i_=(l,N)=>{const W=RS(N,KA(l));l.ui.registry.addNestedMenuItem("align",{text:N.shared.providers.translate(Ute),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},TR=(l,N)=>{const W=N(),fe=re(W,Se=>Se.format);return I.from(l.formatter.closest(fe)).bind(Se=>ce(W,Be=>Be.format===Se))},jte="Blocks",_U=x("Block {0}"),CR="Paragraph",wU=l=>{const N=Be=>()=>l.formatter.match(Be),W=Be=>()=>{const qe=l.formatter.get(Be);return qe?I.some({tag:qe.length>0&&(qe[0].inline||qe[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(Be))}):I.none()},fe=Be=>{const ft=TR(l,()=>Se.data).fold(x(CR),yt=>yt.title);sa(Be,Ug,{text:ft}),mX(l,{value:ft})},Se=SR(l,"block_formats",LS.SemiColon);return{tooltip:o_(l,_U(),CR),text:I.some(CR),icon:I.none(),isSelectedFor:N,getCurrentValue:I.none,getPreviewFor:W,onAction:EN(l),updateText:fe,dataset:Se,shouldHide:!1,isInvalid:Be=>!l.formatter.canApply(Be.format)}},Qte=(l,N)=>tT(l,N,wU(l),_U,"BlocksTextUpdate","blocks"),Hte=(l,N)=>{const W=RS(N,wU(l));l.ui.registry.addNestedMenuItem("blocks",{text:jte,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Zte="Fonts",AR=x("Font {0}"),MR="System Font",qte=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],JA=l=>{const N=l.split(/\s*,\s*/);return re(N,W=>W.replace(/^['"]+|['"]+$/g,""))},OU=(l,N)=>N.length>0&&_e(N,W=>l.indexOf(W.toLowerCase())>-1),Wte=(l,N)=>{if(l.indexOf("-apple-system")===0||N.length>0){const W=JA(l.toLowerCase());return OU(W,qte)||OU(W,N)}else return!1},SU=l=>{const N=()=>{const yt=er=>er?JA(er)[0]:"",Lt=l.queryCommandValue("FontName"),Ht=ft.data,fn=Lt?Lt.toLowerCase():"",Rn=hz(l);return{matchOpt:ce(Ht,er=>{const cr=er.format;return cr.toLowerCase()===fn||yt(cr).toLowerCase()===yt(fn).toLowerCase()}).orThunk(()=>Ot(Wte(fn,Rn),{title:MR,format:fn})),font:Lt}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=yt=>()=>I.some({tag:"div",styles:yt.indexOf("dings")===-1?{"font-family":yt}:{}}),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontName",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,font:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),o7(l,{value:fn})},ft=SR(l,"font_family_formats",LS.SemiColon);return{tooltip:o_(l,AR(),MR),text:I.some(MR),icon:I.none(),isSelectedFor:W,getCurrentValue:fe,getPreviewFor:Se,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},Yte=(l,N)=>tT(l,N,SU(l),AR,"FontFamilyTextUpdate","fontfamily"),Xte=(l,N)=>{const W=RS(N,SU(l));l.ui.registry.addNestedMenuItem("fontfamily",{text:N.shared.providers.translate(Zte),onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},Gte={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},kU=(()=>{const l="[0-9]+",W="[eE]"+("[+-]?"+l),fe="\\.",Se=ft=>`(?:${ft})?`,qe=`[+-]?(?:${["Infinity",l+fe+Se(l)+Se(W),fe+l+Se(W),l+Se(W)].join("|")})`;return new RegExp(`^(${qe})(.*)$`)})(),TU=(l,N)=>te(N,W=>te(Gte[W],fe=>l===fe)),nT=(l,N)=>I.from(kU.exec(l)).bind(fe=>{const Se=Number(fe[1]),Be=fe[2];return TU(Be,N)?I.some({value:Se,unit:Be}):I.none()}),Kte=(l,N)=>nT(l,N).map(({value:W,unit:fe})=>W+fe),ER={tab:x(9),escape:x(27),enter:x(13),backspace:x(8),delete:x(46),left:x(37),up:x(38),right:x(39),down:x(40),space:x(32),home:x(36),end:x(35),pageUp:x(33),pageDown:x(34)},Jte=(l,N,W,fe)=>{let Se=I.none();const Be=jr=>jr.map(Ro=>Ei.getValue(Ro)).getOr(""),qe=tO(l,"NodeChange SwitchMode",jr=>{const Ro=jr.getComponent();Se=I.some(Ro),W.updateInputValue(Ro),he.set(Ro,!l.selection.isEditable())}),ft=jr=>({getComponent:x(jr)}),yt=wi(v),Lt=Li("custom-number-input-events"),Ht=(jr,Ro,ko)=>{const _i=Be(Se),Pi=W.getNewValue(_i,jr),Ao=_i.length-`${Pi}`.length,$i=Se.map(Xi=>Xi.element.dom.selectionStart-Ao),yi=Se.map(Xi=>Xi.element.dom.selectionEnd-Ao);W.onAction(Pi,ko),Se.each(Xi=>{Ei.setValue(Xi,Pi),Ro&&($i.each(ks=>Xi.element.dom.selectionStart=ks),yi.each(ks=>Xi.element.dom.selectionEnd=ks))})},fn=(jr,Ro)=>Ht((ko,_i)=>ko-_i,jr,Ro),Rn=(jr,Ro)=>Ht((ko,_i)=>ko+_i,jr,Ro),Bn=jr=>Zr(jr.element).fold(I.none,Ro=>(Md(Ro),I.some(!0))),er=jr=>_0(jr.element)?(Rr(jr.element).each(Ro=>Md(Ro)),I.some(!0)):I.none(),cr=(jr,Ro,ko,_i)=>{const Pi=wi(v),Ao=N.shared.providers.translate(ko),$i=Li("altExecuting"),yi=tO(l,"NodeChange SwitchMode",ks=>{he.set(ks.getComponent(),!l.selection.isEditable())}),Xi=ks=>{he.isDisabled(ks)||jr(!0)};return Lh.sketch({dom:{tag:"button",attributes:{"aria-label":Ao,"data-mce-name":Ro},classes:_i.concat(Ro)},components:[TA(Ro,N.shared.providers.icons)],buttonBehaviours:ei([he.config({}),Vu.config(N.shared.providers.tooltips.getConfig({tooltipText:Ao})),Ka($i,[cp({onSetup:yi,getApi:ft},Pi),j2({getApi:ft},Pi),Lo(nm(),(ks,Ic)=>{(Ic.event.raw.keyCode===ER.space()||Ic.event.raw.keyCode===ER.enter())&&(he.isDisabled(ks)||jr(!1))}),Lo(H1(),Xi),Lo(Gl(),Xi)])]),eventOrder:{[nm()]:[$i,"keying"],[H1()]:[$i,"alloy.base.behaviour"],[Gl()]:[$i,"alloy.base.behaviour"],[Sh()]:["alloy.base.behaviour",$i,"tooltipping"],[zp()]:[$i,"tooltipping"]}})},Xr=ml(cr(jr=>fn(!1,jr),"minus","Decrease font size",[])),br=ml(cr(jr=>Rn(!1,jr),"plus","Increase font size",[])),Fr=ml({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ww.sketch({inputBehaviours:ei([he.config({}),Ka(Lt,[cp({onSetup:qe,getApi:ft},yt),j2({getApi:ft},yt)]),Ka("input-update-display-text",[Lo(Ug,(jr,Ro)=>{Ei.setValue(jr,Ro.event.text)}),Lo(Rm(),jr=>{W.onAction(Ei.getValue(jr))}),Lo(s0(),jr=>{W.onAction(Ei.getValue(jr))})]),ha.config({mode:"special",onEnter:jr=>(Ht(R,!0,!0),I.some(!0)),onEscape:Bn,onUp:jr=>(Rn(!0,!1),I.some(!0)),onDown:jr=>(fn(!0,!1),I.some(!0)),onLeft:(jr,Ro)=>(Ro.cut(),I.none()),onRight:(jr,Ro)=>(Ro.cut(),I.none())})])})],behaviours:ei([Ra.config({}),ha.config({mode:"special",onEnter:er,onSpace:er,onEscape:Bn}),Ka("input-wrapper-events",[Lo(wu(),jr=>{q([Xr,br],Ro=>{const ko=Nt.fromDom(Ro.get(jr).element.dom);_0(ko)&&m1(ko)})})])])});return{dom:{tag:"div",classes:["tox-number-input"],attributes:{...a(fe)?{"data-mce-name":fe}:{}}},components:[Xr.asSpec(),Fr.asSpec(),br.asSpec()],behaviours:ei([Ra.config({}),ha.config({mode:"flow",focusInside:Mv.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:jr=>_0(jr.element)?I.none():(Md(jr.element),I.some(!0))})])}},ene="Font sizes",CU=x("Font size {0}"),PR="12pt",tne={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},AU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},nne=(l,N)=>{const W=Math.pow(10,N);return Math.round(l*W)/W},rne=(l,N)=>/[0-9.]+px$/.test(l)?nne(parseInt(l,10)*72/96,N||0)+"pt":Ge(AU,l).getOr(l),one=l=>Ge(tne,l).getOr(""),MU=l=>{const N=()=>{let yt=I.none();const Lt=ft.data,Ht=l.queryCommandValue("FontSize");if(Ht)for(let fn=3;yt.isNone()&&fn>=0;fn--){const Rn=rne(Ht,fn),Bn=one(Rn);yt=ce(Lt,er=>er.format===Ht||er.format===Rn||er.format===Bn)}return{matchOpt:yt,size:Ht}},W=yt=>Lt=>Lt.exists(Ht=>Ht.format===yt),fe=()=>{const{matchOpt:yt}=N();return yt},Se=x(I.none),Be=yt=>()=>{l.undoManager.transact(()=>{l.focus(),l.execCommand("FontSize",!1,yt.format)})},qe=yt=>{const{matchOpt:Lt,size:Ht}=N(),fn=Lt.fold(x(Ht),Rn=>Rn.title);sa(yt,Ug,{text:fn}),AN(l,{value:fn})},ft=SR(l,"font_size_formats",LS.Space);return{tooltip:o_(l,CU(),PR),text:I.some(PR),icon:I.none(),isSelectedFor:W,getPreviewFor:Se,getCurrentValue:fe,onAction:Be,updateText:qe,dataset:ft,shouldHide:!1,isInvalid:D}},ine=(l,N)=>tT(l,N,MU(l),CU,"FontSizeTextUpdate","fontsize"),ane=l=>{var N;const W={step:1};return(N={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[l])!==null&&N!==void 0?N:W},sne=16,EU=l=>l>=0,lne=l=>{const N=()=>l.queryCommandValue("FontSize");return{updateInputValue:fe=>sa(fe,Ug,{text:N()}),onAction:(fe,Se)=>l.execCommand("FontSize",!1,fe,{skip_focus:!Se}),getNewValue:(fe,Se)=>{nT(fe,["unsupportedLength","empty"]);const Be=N(),qe=nT(fe,["unsupportedLength","empty"]).or(nT(Be,["unsupportedLength","empty"])),ft=qe.map(Rn=>Rn.value).getOr(sne),yt=y6(l),Lt=qe.map(Rn=>Rn.unit).filter(Rn=>Rn!=="").getOr(yt),Ht=Se(ft,ane(Lt).step),fn=`${EU(Ht)?Ht:ft}${Lt}`;return fn!==Be&&MN(l,{value:fn}),fn}}},cne=(l,N)=>Jte(l,N,lne(l),"fontsizeinput"),une=(l,N)=>{const W=RS(N,MU(l));l.ui.registry.addNestedMenuItem("fontsize",{text:ene,onSetup:kp(l),getSubmenuItems:()=>W.items.validateItems(W.getStyleItems())})},fne="Formats",PU=l=>at(l)?"Formats":"Format {0}",RU=(l,N)=>{const W="Formats",fe=qe=>()=>l.formatter.match(qe),Se=qe=>()=>{const ft=l.formatter.get(qe);return ft!==void 0?I.some({tag:ft.length>0&&(ft[0].inline||ft[0].block)||"div",styles:l.dom.parseStyle(l.formatter.getCssText(qe))}):I.none()},Be=qe=>{const ft=fn=>q9(fn)?ve(fn.items,ft):J$(fn)?[{title:fn.title,format:fn.format}]:[],yt=ve(Z5(l),ft),Ht=TR(l,x(yt)).fold(x({title:W,tooltipLabel:""}),fn=>({title:fn.title,tooltipLabel:fn.title}));sa(qe,Ug,{text:Ht.title}),pX(l,{value:Ht.tooltipLabel})};return{tooltip:o_(l,PU(""),""),text:I.some(W),icon:I.none(),isSelectedFor:fe,getCurrentValue:I.none,getPreviewFor:Se,onAction:EN(l),updateText:Be,shouldHide:JB(l),isInvalid:qe=>!l.formatter.canApply(qe.format),dataset:N}},dne=(l,N)=>{const W={type:"advanced",...N.styles};return tT(l,N,RU(l,W),PU,"StylesTextUpdate","styles")},LU=(l,N)=>{const W={type:"advanced",...N.styles},fe=RS(N,RU(l,W));l.ui.registry.addNestedMenuItem("styles",{text:fne,onSetup:kp(l),getSubmenuItems:()=>fe.items.validateItems(fe.getStyleItems())})},hne=x([pn("toggleClass"),pn("fetch"),Ah("onExecute"),Ar("getHotspot",I.some),Ar("getAnchorOverrides",x({})),dm(),Ah("onItemExecute"),Yo("lazySink"),pn("dom"),Ss("onOpen"),Pd("splitDropdownBehaviours",[Ku,ha,Ra]),Ar("matchWidth",!1),Ar("useMinWidth",!1),Ar("eventOrder",{}),Yo("role"),Yo("listRole")].concat(iA())),pne=mh({factory:Lh,schema:[pn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(Bm)},buttonBehaviours:ei([us.config({toggleOnExecute:!1,toggleClass:l.toggleClass})])})}),IU=mh({factory:Lh,schema:[pn("dom")],name:"button",defaults:()=>({buttonBehaviours:ei([Ra.revoke()])}),overrides:l=>({dom:{tag:"span",attributes:{role:"presentation"}},action:N=>{N.getSystem().getByUid(l.uid).each(W=>{l.onExecute(W,N)})}})}),mne=x([pne,IU,mm({factory:{sketch:l=>({uid:l.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:l.text}})},schema:[pn("text")],name:"aria-descriptor"}),Jm({schema:[Um()],name:"menu",defaults:l=>({onExecute:(N,W)=>{N.getSystem().getByUid(l.uid).each(fe=>{l.onItemExecute(fe,N,W)})}})}),eF()]),DU=(l,N,W,fe)=>{const Se=Ht=>{Xs.getCurrent(Ht).each(fn=>{ta.highlightFirst(fn),ha.focusIn(fn)})},Be=Ht=>{b7(l,R,Ht,fe,Se,Gu.HighlightMenuAndItem).get(v)},qe=Ht=>(Be(Ht),I.some(!0)),ft=Ht=>{const fn=gm(Ht,l,"button");return Bm(fn),I.some(!0)},yt={...Rl([wc((Ht,fn)=>{Jo(Ht,l,"aria-descriptor").each(Bn=>{const er=Li("aria");Cr(Bn.element,"id",er),Cr(Ht.element,"aria-describedby",er)})})]),...d6(I.some(Be))},Lt={repositionMenus:Ht=>{us.isOn(Ht)&&nF(Ht)}};return{uid:l.uid,dom:l.dom,components:N,apis:Lt,eventOrder:{...l.eventOrder,[Bp()]:["disabling","toggling","alloy.base.behaviour"]},events:yt,behaviours:Rd(l.splitDropdownBehaviours,[Ku.config({others:{sandbox:Ht=>{const fn=gm(Ht,l,"arrow");return w7(l,Ht,{onOpen:()=>{us.on(fn),us.on(Ht)},onClose:()=>{us.off(fn),us.off(Ht)}})}}}),ha.config({mode:"special",onSpace:ft,onEnter:ft,onDown:qe}),Ra.config({}),us.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:l.role.getOr("button"),"aria-haspopup":!0}}}},rT=Zh({name:"SplitDropdown",configFields:hne(),partFields:mne(),factory:DU,apis:{repositionMenus:(l,N)=>l.repositionMenus(N)}}),BU=l=>({isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),gne=l=>({setActive:N=>{us.set(l,N)},isActive:()=>us.isOn(l),isEnabled:()=>!he.isDisabled(l),setEnabled:N=>he.set(l,!N),setText:N=>sa(l,Ug,{text:N}),setIcon:N=>sa(l,J2,{icon:N})}),zU=(l,N)=>l.map(W=>({"aria-label":N.translate(W)})).getOr({}),fO=Li("focus-button"),RR=(l,N,W,fe,Se,Be)=>{const qe=N.map(yt=>ml(m9(yt,"tox-tbtn",Se))),ft=l.map(yt=>ml(K2(yt,Se.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(N.isSome()?["tox-tbtn--select"]:[]),attributes:{...zU(W,Se),...a(Be)?{"data-mce-name":Be}:{}}},components:Kw([ft.map(yt=>yt.asSpec()),qe.map(yt=>yt.asSpec())]),eventOrder:{[Nc()]:["focusing","alloy.base.behaviour",G2],[Sh()]:[G2,"toolbar-group-button-events"]},buttonBehaviours:ei([E1.toolbarButton(Se.isDisabled),Id(),Ka(G2,[wc((yt,Lt)=>h9(yt)),Lo(Ug,(yt,Lt)=>{qe.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[Po(Se.translate(Lt.event.text))])})}),Lo(J2,(yt,Lt)=>{ft.bind(Ht=>Ht.getOpt(yt)).each(Ht=>{Fa.set(Ht,[K2(Lt.event.icon,Se.icons)])})}),Lo(Nc(),(yt,Lt)=>{Lt.event.prevent(),Za(yt,fO)})])].concat(fe.getOr([])))}},vne=(l,N,W,fe,Se)=>{const Be=N.shared,qe=wi(v),ft={toolbarButtonBehaviours:[],getApi:BU,onSetup:l.onSetup},yt=[Ka("toolbar-group-button-events",[cp(ft,qe),j2(ft,qe)])];return r_.sketch({lazySink:Be.getSink,fetch:()=>Ih.nu(Lt=>{Lt(re(W(l.items),HA))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:RR(l.icon,l.text,l.tooltip,I.some(yt),Be.providers,Se),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:fe}}}})},NU=(l,N,W,fe)=>{var Se;const Be=wi(v),qe=RR(l.icon,l.text,l.tooltip,I.none(),W,fe);return Lh.sketch({dom:qe.dom,components:qe.components,eventOrder:d9,buttonBehaviours:{...ei([Ka("toolbar-button-events",[jK({onAction:l.onAction,getApi:N.getApi}),cp(N,Be),j2(N,Be)]),...l.tooltip.map(ft=>Vu.config(W.tooltips.getConfig({tooltipText:W.translate(ft)+l.shortcut.map(yt=>` (${W6(yt)})`).getOr("")}))).toArray(),E1.toolbarButton(()=>!l.enabled||W.isDisabled()),Id()].concat(N.toolbarButtonBehaviours)),[G2]:(Se=qe.buttonBehaviours)===null||Se===void 0?void 0:Se[G2]}})},yne=(l,N,W)=>FU(l,N,[],W),FU=(l,N,W,fe)=>NU(l,{toolbarButtonBehaviours:W.length>0?[Ka("toolbarButtonWith",W)]:[],getApi:BU,onSetup:l.onSetup},N,fe),bne=(l,N,W)=>$U(l,N,[],W),$U=(l,N,W,fe)=>NU(l,{toolbarButtonBehaviours:[Fa.config({}),us.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(W.length>0?[Ka("toolbarToggleButtonWith",W)]:[]),getApi:gne,onSetup:l.onSetup},N,fe),xne=(l,N,W)=>fe=>Ih.nu(Se=>N.fetch(Se)).map(Se=>I.from(cA(ws(g7(Li("menu-value"),Se,Be=>{N.onItemAction(l(fe),Be)},N.columns,N.presets,A1.CLOSE_ON_EXECUTE,N.select.getOr(D),W),{movement:oA(N.columns,N.presets),menuBehaviours:lS.unnamedEvents(N.columns!=="auto"?[]:[wc((Be,qe)=>{QP(Be,4,kP(N.presets)).each(({numRows:ft,numColumns:yt})=>{ha.setGridSize(Be,ft,yt)})})])})))),LR=(l,N,W)=>{const fe=wi(l.tooltip.getOr("")),Se=ft=>({isEnabled:()=>!he.isDisabled(ft),setEnabled:yt=>he.set(ft,!yt),setIconFill:(yt,Lt)=>{qa(ft.element,`svg path[class="${yt}"], rect[class="${yt}"]`).each(Ht=>{Cr(Ht,"fill",Lt)})},setActive:yt=>{Cr(ft.element,"aria-pressed",yt),qa(ft.element,"span").each(Lt=>{ft.getSystem().getByDom(Lt).each(Ht=>us.set(Ht,yt))})},isActive:()=>qa(ft.element,"span").exists(yt=>ft.getSystem().getByDom(yt).exists(us.isOn)),setText:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,Ug,{text:yt}))),setIcon:yt=>qa(ft.element,"span").each(Lt=>ft.getSystem().getByDom(Lt).each(Ht=>sa(Ht,J2,{icon:yt}))),setTooltip:yt=>{const Lt=N.providers.translate(yt);Cr(ft.element,"aria-label",Lt),fe.set(yt)}}),Be=wi(v),qe={getApi:Se,onSetup:l.onSetup};return rT.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...zU(l.tooltip,N.providers),...a(W)?{"data-mce-name":W}:{}}},onExecute:ft=>{const yt=Se(ft);yt.isEnabled()&&l.onAction(yt)},onItemExecute:(ft,yt,Lt)=>{},splitDropdownBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),Ka("split-dropdown-events",[wc((ft,yt)=>h9(ft)),Lo(fO,Ra.focus),cp(qe,Be),j2(qe,Be)]),bS.config({}),...l.tooltip.map(ft=>Vu.config({...N.providers.tooltips.getConfig({tooltipText:N.providers.translate(ft),onShow:yt=>{if(fe.get()!==ft){const Lt=N.providers.translate(fe.get());Vu.setComponents(yt,N.providers.tooltips.getComponents({tooltipText:Lt}))}}})})).toArray()]),eventOrder:{[Sh()]:["alloy.base.behaviour","split-dropdown-events","tooltipping"],[zp()]:["split-dropdown-events","tooltipping"]},toggleClass:"tox-tbtn--enabled",lazySink:N.getSink,fetch:xne(Se,l,N.providers),parts:{menu:Xk(!1,l.columns,l.presets)},components:[rT.parts.button(RR(l.icon,l.text,I.none(),I.some([us.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),N.providers)),rT.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:yP("chevron-down",N.providers.icons)},buttonBehaviours:ei([E1.splitButton(N.providers.isDisabled),Id(),P6()])}),rT.parts["aria-descriptor"]({text:N.providers.translate("To open the popup, press Shift+Enter")})]})},_ne=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],oT=(l,N)=>(W,fe,Se,Be)=>{const qe=l(W).mapError(ft=>dn(ft)).getOrDie();return N(qe,fe,Se,Be)},VU={button:oT(Yz,(l,N,W,fe)=>yne(l,N.shared.providers,fe)),togglebutton:oT(Xz,(l,N,W,fe)=>bne(l,N.shared.providers,fe)),menubutton:oT(SV,(l,N,W,fe)=>N5(l,"tox-tbtn",N,I.none(),!1,fe)),splitbutton:oT(Qee,(l,N,W,fe)=>LR(l,N.shared,fe)),grouptoolbarbutton:oT(X5,(l,N,W,fe)=>{const Se=W.ui.registry.getAll().buttons,Be=ft=>iT(W,{buttons:Se,toolbar:ft,allowToolbarGroups:!1},N,I.none()),qe={[Nb]:N.shared.header.isPositionedAtTop()?ap.TopToBottom:ap.BottomToTop};switch(jw(W)){case C0.floating:return vne(l,N,Be,qe,fe);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},UU=(l,N,W,fe)=>Ge(VU,l.type).fold(()=>(console.error("skipping button defined by",l),I.none()),Se=>I.some(Se(l,N,W,fe))),jU={styles:dne,fontsize:ine,fontsizeinput:cne,fontfamily:Yte,blocks:Qte,align:xU},wne=l=>{const N=re(_ne,W=>{const fe=me(W.items,Se=>ht(l,Se)||ht(jU,Se));return{name:W.name,items:fe}});return me(N,W=>W.items.length>0)},One=l=>{const N=l.split("|");return re(N,W=>({items:W.trim().split(" ")}))},Sne=l=>p(l,N=>ht(N,"name")&&ht(N,"items")),kne=l=>{const N=l.toolbar,W=l.buttons;return N===!1?[]:N===void 0||N===!0?wne(W):n(N)?One(N):Sne(N)?N:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},Tne=(l,N,W,fe,Se,Be)=>Ge(N,W.toLowerCase()).orThunk(()=>Be.bind(qe=>Oe(qe,ft=>Ge(N,ft+W.toLowerCase())))).fold(()=>Ge(jU,W.toLowerCase()).map(qe=>qe(l,Se)),qe=>qe.type==="grouptoolbarbutton"&&!fe?(console.warn(`Ignoring the '${W}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),I.none()):UU(qe,Se,l,W.toLowerCase())),iT=(l,N,W,fe)=>{const Se=kne(N),Be=re(Se,qe=>{const ft=ve(qe.items,yt=>yt.trim().length===0?[]:Tne(l,N.buttons,yt,N.allowToolbarGroups,W,fe).toArray());return{title:I.from(l.translate(qe.name)),items:ft}});return me(Be,qe=>qe.items.length>0)},QU=(l,N,W,fe)=>{const Se=N.mainUi.outerContainer,Be=W.toolbar,qe=W.buttons;if(p(Be,n)){const ft=Be.map(yt=>{const Lt={toolbar:yt,buttons:qe,allowToolbarGroups:W.allowToolbarGroups};return iT(l,Lt,fe,I.none())});Lc.setToolbars(Se,ft)}else Lc.setToolbar(Se,iT(l,W,fe,I.none()))},HU=va(),Cne=HU.os.isiOS()&&HU.os.version.major<=12,Ane=(l,N)=>{const{uiMotherships:W}=N,fe=l.dom;let Se=l.getWin();const Be=l.getDoc().documentElement,qe=wi(Qs(Se.innerWidth,Se.innerHeight)),ft=wi(Qs(Be.offsetWidth,Be.offsetHeight)),yt=()=>{const Rn=qe.get();(Rn.left!==Se.innerWidth||Rn.top!==Se.innerHeight)&&(qe.set(Qs(Se.innerWidth,Se.innerHeight)),J6(l))},Lt=()=>{const Rn=l.getDoc().documentElement,Bn=ft.get();(Bn.left!==Rn.offsetWidth||Bn.top!==Rn.offsetHeight)&&(ft.set(Qs(Rn.offsetWidth,Rn.offsetHeight)),J6(l))},Ht=Rn=>{uX(l,Rn)};fe.bind(Se,"resize",yt),fe.bind(Se,"scroll",Ht);const fn=i2(Nt.fromDom(l.getBody()),"load",Lt);l.on("hide",()=>{q(W,Rn=>{xr(Rn.element,"display","none")})}),l.on("show",()=>{q(W,Rn=>{zi(Rn.element,"display")})}),l.on("NodeChange",Lt),l.on("remove",()=>{fn.unbind(),fe.unbind(Se,"resize",yt),fe.unbind(Se,"scroll",Ht),Se=null})},e8=(l,N,W)=>{N2(l)&&Hb(W.mainUi.mothership.element,W.popupUi.mothership),kw(N,W.dialogUi.mothership)};var t8=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=N,ft=wi(0),yt=Be.outerContainer;zte(l);const Lt=Nt.fromDom(Se.targetNode),Ht=Er(kr(Lt));Hb(Lt,Be.mothership),e8(l,Ht,N),l.on("SkinLoaded",()=>{Lc.setSidebar(yt,W.sidebar,x6(l)),QU(l,N,W,fe),ft.set(l.getWin().innerWidth),Lc.setMenubar(yt,mU(l,W)),Lc.setViews(yt,W.views),Ane(l,N)});const fn=Lc.getSocket(yt).getOrDie("Could not find expected socket element");if(Cne){Oo(fn.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const cr=IK(()=>{l.dispatch("ScrollContent")},20),Xr=ud(fn.element,"scroll",cr.throttle);l.on("remove",Xr.unbind)}HP(l,N),l.addCommand("ToggleSidebar",(cr,Xr)=>{Lc.toggleSidebar(yt,Xr),gX(l)}),l.addQueryValueHandler("ToggleSidebar",()=>{var cr;return(cr=Lc.whichSidebar(yt))!==null&&cr!==void 0?cr:""}),l.addCommand("ToggleView",(cr,Xr)=>{if(Lc.toggleView(yt,Xr)){const br=yt.element;Be.mothership.broadcastOn([_1()],{target:br}),q(qe,Fr=>{Fr.broadcastOn([_1()],{target:br})}),S(Lc.whichView(yt))&&(l.focus(),l.nodeChanged(),Lc.refreshToolbar(yt)),vX(l)}}),l.addQueryValueHandler("ToggleView",()=>{var cr;return(cr=Lc.whichView(yt))!==null&&cr!==void 0?cr:""});const Rn=jw(l),Bn=()=>{Lc.refreshToolbar(N.mainUi.outerContainer)};(Rn===C0.sliding||Rn===C0.floating)&&l.on("ResizeWindow ResizeEditor ResizeContent",()=>{const cr=l.getWin().innerWidth;cr!==ft.get()&&(Bn(),ft.set(cr))});const er={setEnabled:cr=>{cS(N,!cr)},isEnabled:()=>!he.isDisabled(yt)};return{iframeContainer:fn.element.dom,editorContainer:yt.element.dom,api:er}}});const aT=l=>/^[0-9\.]+(|px)$/i.test(""+l)?I.some(parseInt(""+l,10)):I.none(),n8=l=>h(l)?l+"px":l,r8=(l,N,W)=>{const fe=N.filter(Be=>ll>Be);return fe.or(Se).getOr(l)},Mne=l=>{const N=Lk(l),W=eS(l),fe=g6(l);return aT(N).map(Se=>r8(Se,W,fe))},Ene=l=>Mne(l).getOr(Lk(l)),ZU=l=>{const N=UE(l),W=Uw(l),fe=Ik(l);return aT(N).map(Se=>r8(Se,W,fe))},Pne=l=>ZU(l).getOr(UE(l)),{ToolbarLocation:DS,ToolbarMode:IR}=gz,qU=40,WU=(l,N,W,fe,Se)=>{const{mainUi:Be,uiMotherships:qe}=W,ft=Fw.DOM,yt=tS(l),Lt=Qw(l),Ht=Ik(l).or(ZU(l)),fn=fe.shared.header,Rn=fn.isPositionedAtTop,Bn=150,er=jw(l),cr=er===IR.sliding||er===IR.floating,Xr=wi(!1),br=()=>Xr.get()&&!l.removed,Fr=Ui=>cr?Ui.fold(x(0),Ko=>Ko.components().length>1?il(Ko.components()[1].element):0):0,jr=Ui=>{switch(Dk(l)){case DS.auto:const Ko=Lc.getToolbar(Be.outerContainer),Oi=Fr(Ko),La=il(Ui.element)-Oi,_a=cl(N);if(_a.y>La)return"top";{const Qa=Hn(N),ac=Math.max(Qa.dom.scrollHeight,il(Qa));return _a.bottom{Se.on(Ko=>{fc.setModes(Ko,[Ui]),fn.setDockingMode(Ui);const Oi=Rn()?ap.TopToBottom:ap.BottomToTop;Cr(Ko.element,Nb,Oi)})},ko=()=>{Se.on(Ui=>{const Ko=Ht.getOrThunk(()=>Ks().width-iu(N).left-10);xr(Ui.element,"max-width",Ko+"px")})},_i=(Ui,Ko)=>{Se.on(Oi=>{const La=Lc.getToolbar(Be.outerContainer),_a=Fr(La),fa=cl(N),Qa=Pi(l,Be.outerContainer.element),ac=()=>Qa.fold(()=>fa.x,Wh=>{const Wg=cl(Wh);return _o(Wh,Lr())?fa.x:fa.x-Wg.x}),vl=()=>Qa.fold(()=>Rn()?Math.max(fa.y-il(Oi.element)+_a,0):fa.bottom,Wh=>{var Wg;const U0=cl(Wh),km=(Wg=Wh.dom.scrollTop)!==null&&Wg!==void 0?Wg:0,xO=_o(Wh,Lr())?Math.max(fa.y-il(Oi.element)+_a,0):fa.y-U0.y+km-il(Oi.element)+_a;return Rn()?xO:fa.bottom}),dp=ac(),qg=Ot(Ui,Math.ceil(Be.outerContainer.element.dom.getBoundingClientRect().width)).filter(Wh=>Wh>Bn).map(Wh=>{const Wg=Ko.getOr(yc()),U0=window.innerWidth-(dp-Wg.left),km=Math.max(Math.min(Wh,U0),Bn);return U0N2(Ui)?jh(Ko):I.none(),Ao=()=>{q(qe,Ui=>{Ui.broadcastOn([qb()],{})})},$i=()=>!yt&&(Tc(Be.outerContainer.element).left+ma(Be.outerContainer.element)>=window.innerWidth-qU||Ia(Be.outerContainer.element,"width").isSome())?(xr(Be.outerContainer.element,"position","absolute"),xr(Be.outerContainer.element,"left","0px"),zi(Be.outerContainer.element,"width"),!0):!1,yi=Ui=>{if(!br())return;yt||ko();const Ko=yc(),Oi=yt?!1:$i();if(cr&&Lc.refreshToolbar(Be.outerContainer),!yt){const La=yc(),_a=Ot(Ko.left!==La.left,Ko);_i(Oi,_a),_a.each(fa=>{Cc(fa.left,La.top)})}Lt&&Se.on(Ui),Ao()},Xi=()=>yt||!Lt||!br()?!1:Se.get().exists(Ui=>{const Ko=fn.getDockingMode(),Oi=jr(Ui);return Oi!==Ko?(Ro(Oi),!0):!1});return{isVisible:br,isPositionedAtTop:Rn,show:()=>{Xr.set(!0),xr(Be.outerContainer.element,"display","flex"),ft.addClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{zi(Ui.element,"display")}),Xi(),N2(l)?yi(Ui=>fc.isDocked(Ui)?fc.reset(Ui):fc.refresh(Ui)):yi(fc.refresh)},hide:()=>{Xr.set(!1),xr(Be.outerContainer.element,"display","none"),ft.removeClass(l.getBody(),"mce-edit-focus"),q(qe,Ui=>{xr(Ui.element,"display","none")})},update:yi,updateMode:()=>{Xi()&&yi(fc.reset)},repositionPopups:Ao}},DR=(l,N)=>{const W=cl(l);return{pos:N?W.y:W.bottom,bounds:W}},Rne=(l,N,W,fe)=>{const Se=wi(DR(N,W.isPositionedAtTop())),Be=Lt=>{const{pos:Ht,bounds:fn}=DR(N,W.isPositionedAtTop()),{pos:Rn,bounds:Bn}=Se.get(),er=fn.height!==Bn.height||fn.width!==Bn.width;Se.set({pos:Ht,bounds:fn}),er&&J6(l,Lt),W.isVisible()&&(Rn!==Ht?W.update(fc.reset):er&&(W.updateMode(),W.repositionPopups()))};fe||(l.on("activate",W.show),l.on("deactivate",W.hide)),l.on("SkinLoaded ResizeWindow",()=>W.update(fc.reset)),l.on("NodeChange keydown",Lt=>{requestAnimationFrame(()=>Be(Lt))});let qe=0;const ft=o9(()=>W.update(fc.refresh),33);l.on("ScrollWindow",()=>{const Lt=yc().left;Lt!==qe&&(qe=Lt,ft.throttle()),W.updateMode()}),N2(l)&&l.on("ElementScroll",Lt=>{W.update(fc.refresh)});const yt=Ol();yt.set(i2(Nt.fromDom(l.getBody()),"load",Lt=>Be(Lt.raw))),l.on("remove",()=>{yt.clear()})};var Ine=Object.freeze({__proto__:null,render:(l,N,W,fe,Se)=>{const{mainUi:Be}=N,qe=ds(),ft=Nt.fromDom(Se.targetNode),yt=WU(l,ft,N,fe,qe),Lt=nz(l);Nte(l);const Ht=()=>{if(qe.isSet()){yt.show();return}qe.set(Lc.getHeader(Be.outerContainer).getOrDie());const Rn=GE(l);N2(l)?(Hb(ft,Be.mothership),Hb(ft,N.popupUi.mothership)):kw(Rn,Be.mothership),kw(Rn,N.dialogUi.mothership);const Bn=()=>{QU(l,N,W,fe),Lc.setMenubar(Be.outerContainer,mU(l,W)),yt.show(),Rne(l,ft,yt,Lt),l.nodeChanged()};Lt?l.once("SkinLoaded",Bn):Bn()};l.on("show",Ht),l.on("hide",yt.hide),Lt||(l.on("focus",Ht),l.on("blur",yt.hide)),l.on("init",()=>{(l.hasFocus()||Lt)&&Ht()}),HP(l,N);const fn={show:Ht,hide:yt.hide,setEnabled:Rn=>{cS(N,!Rn)},isEnabled:()=>!he.isDisabled(Be.outerContainer)};return{editorContainer:Be.outerContainer.element.dom,api:fn}}});const Dne=()=>{const l=ds(),N=ds(),W=ds();return{dialogUi:l,popupUi:N,mainUi:W,getUiMotherships:()=>{const Be=l.get().map(ft=>ft.mothership),qe=N.get().map(ft=>ft.mothership);return Be.fold(()=>qe.toArray(),ft=>qe.fold(()=>[ft],yt=>_o(ft.element,yt.element)?[ft]:[ft,yt]))},lazyGetInOuterOrDie:(Be,qe)=>()=>W.get().bind(ft=>qe(ft.outerContainer)).getOrDie(`Could not find ${Be} element in OuterContainer`)}},Bne="contexttoolbar-show",YU="contexttoolbar-hide",zne=l=>({hide:()=>Za(l,Z1()),getValue:()=>Ei.getValue(l)}),BS=(l,N)=>Lo(h$,(W,fe)=>{const Se=l.get(W),Be=zne(Se);N.onAction(Be,fe.event.buttonApi)}),Nne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Yz({...Se,type:"button",onAction:v}));return FU(Be,W,[BS(l,N)])},Fne=(l,N,W)=>{const{primary:fe,...Se}=N.original,Be=Mt(Xz({...Se,type:"togglebutton",onAction:v}));return $U(Be,W,[BS(l,N)])},$ne=l=>l.type==="contextformtogglebutton",XU=(l,N,W)=>$ne(N)?Fne(l,N,W):Nne(l,N,W),Vne=(l,N,W)=>{const fe=re(N,qe=>ml(XU(l,qe,W)));return{asSpecs:()=>re(fe,qe=>qe.asSpec()),findPrimary:qe=>Oe(N,(ft,yt)=>ft.primary?I.from(fe[yt]).bind(Lt=>Lt.getOpt(qe)).filter(P(he.isDisabled)):I.none())}},BR=(l,N)=>{const W=l.label.fold(()=>({}),Be=>({"aria-label":Be})),fe=ml(Ww.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:l.initValue(),inputAttributes:W,selectOnFocus:!0,inputBehaviours:ei([ha.config({mode:"special",onEnter:Be=>Se.findPrimary(Be).map(qe=>(Bm(qe),!0)),onLeft:(Be,qe)=>(qe.cut(),I.none()),onRight:(Be,qe)=>(qe.cut(),I.none())})])})),Se=Vne(fe,l.commands,N);return[{title:I.none(),items:[fe.asSpec()]},{title:I.none(),items:Se.asSpecs()}]},Une={renderContextForm:(l,N,W)=>ZA({type:l,uid:Li("context-toolbar"),initGroups:BR(N,W),onEscape:I.none,cyclicKeying:!0,providers:W}),buildInitGroups:BR},GU=(l,N,W)=>N.bottom-l.y>=W&&l.bottom-N.y>=W,jne=l=>{const N=l.getBoundingClientRect();if(N.height<=0&&N.width<=0){const W=Yn(Nt.fromDom(l.startContainer),l.startOffset).element;return(zr(W)?Dr(W):I.some(W)).filter(lr).map(Se=>Se.dom.getBoundingClientRect()).getOr(N)}else return N},zR=l=>{const N=l.selection.getRng(),W=jne(N);if(l.inline){const fe=yc();return vs(fe.left+W.left,fe.top+W.top,W.width,W.height)}else{const fe=bc(Nt.fromDom(l.getBody()));return vs(fe.x+W.left,fe.y+W.top,W.width,W.height)}},sT=(l,N)=>N.filter(W=>Gn(W)&&sr(W)).map(bc).getOrThunk(()=>zR(l)),KU=(l,N,W)=>{const fe=Math.max(l.x+W,N.x),Se=Math.min(l.right-W,N.right);return{x:fe,width:Se-fe}},Qne=(l,N,W,fe,Se,Be)=>{const qe=Nt.fromDom(l.getContainer()),ft=qa(qe,".tox-editor-header").getOr(qe),yt=cl(ft),Lt=yt.y>=N.bottom,Ht=fe&&!Lt;if(l.inline&&Ht)return{y:Math.max(yt.bottom+Be,W.y),bottom:W.bottom};if(l.inline&&!Ht)return{y:W.y,bottom:Math.min(yt.y-Be,W.bottom)};const fn=Se==="line"?cl(qe):N;return Ht?{y:Math.max(yt.bottom+Be,W.y),bottom:Math.min(fn.bottom-Be,W.bottom)}:{y:Math.max(fn.y+Be,W.y),bottom:Math.min(yt.y-Be,W.bottom)}},JU=(l,N,W,fe=0)=>{const Se=Ks(window),Be=cl(Nt.fromDom(l.getContentAreaContainer())),qe=_6(l)||Nk(l)||Fk(l),{x:ft,width:yt}=KU(Be,Se,fe);if(l.inline&&!qe)return vs(ft,Se.y,yt,Se.height);{const Lt=N.header.isPositionedAtTop(),{y:Ht,bottom:fn}=Qne(l,Be,Se,Lt,W,fe);return vs(ft,Ht,yt,fn-Ht)}},lT=12,o8={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},NR={maxHeightFunction:v1(),maxWidthFunction:ES()},ej=(l,N)=>{const W=l.selection.getRng(),fe=Yn(Nt.fromDom(W.startContainer),W.startOffset);return W.startContainer===W.endContainer&&W.startOffset===W.endOffset-1&&_o(fe.element,N)},Hne=(l,N,W)=>{const fe=Ia(l,"position");xr(l,"position",N);const Se=W(l);return fe.each(Be=>xr(l,"position",Be)),Se},dO=l=>l==="node",i8=(l,N,W,fe,Se)=>{const Be=zR(l),qe=fe.lastElement().exists(ft=>_o(W,ft));if(ej(l,W))return qe?Y$:ng;if(qe)return Hne(N,fe.getMode(),()=>GU(Be,cl(N),-20)&&!fe.isReposition()?X$:Y$);{const ft=fe.getMode()==="fixed"?Se.y+yc().top:Se.y,yt=il(N)+lT;return ft+yt<=Be.y?ng:CS}},a8=(l,N,W,fe)=>{const Se=yt=>(Lt,Ht,fn,Rn,Bn)=>{const er=i8(l,Rn,yt,W,Bn),cr={...Lt,y:Bn.y,height:Bn.height};return{...er(cr,Ht,fn,Rn,Bn),alwaysFit:!0}},Be=yt=>dO(fe)?[Se(yt)]:[];return N?{onLtr:yt=>[Iu,Lu,$c,dl,Mf,du].concat(Be(yt)),onRtl:yt=>[Iu,$c,Lu,Mf,dl,du].concat(Be(yt))}:{onLtr:yt=>[du,Iu,dl,Lu,Mf,$c].concat(Be(yt)),onRtl:yt=>[du,Iu,Mf,$c,dl,Lu].concat(Be(yt))}},FR=(l,N,W,fe)=>N==="line"?{bubble:wp(lT,0,o8),layouts:{onLtr:()=>[vv],onRtl:()=>[h1]},overrides:NR}:{bubble:wp(0,lT,o8,1/lT),layouts:a8(l,W,fe,N),overrides:NR},cT=(l,N)=>{const W=me(N,Be=>Be.predicate(l.dom)),{pass:fe,fail:Se}=ee(W,Be=>Be.type==="contexttoolbar");return{contextToolbars:fe,contextForms:Se}},tj=l=>{if(l.length<=1)return l;{const N=Be=>te(l,qe=>qe.position===Be),W=Be=>me(l,qe=>qe.position===Be),fe=N("selection"),Se=N("node");if(fe||Se)if(Se&&fe){const Be=W("node"),qe=re(W("selection"),ft=>({...ft,position:"node"}));return Be.concat(qe)}else return W(fe?"selection":"node");else return W("line")}},s8=l=>{if(l.length<=1)return l;{const N=fe=>ce(l,Se=>Se.position===fe);return N("selection").orThunk(()=>N("node")).orThunk(()=>N("line")).map(fe=>fe.position).fold(()=>[],fe=>me(l,Se=>Se.position===fe))}},nj=(l,N,W)=>{const fe=cT(l,N);if(fe.contextForms.length>0)return I.some({elem:l,toolbars:[fe.contextForms[0]]});{const Se=cT(l,W);if(Se.contextForms.length>0)return I.some({elem:l,toolbars:[Se.contextForms[0]]});if(fe.contextToolbars.length>0||Se.contextToolbars.length>0){const Be=tj(fe.contextToolbars.concat(Se.contextToolbars));return I.some({elem:l,toolbars:Be})}else return I.none()}},rj=(l,N,W)=>l(N)?I.none():Hc(N,fe=>{if(lr(fe)){const{contextToolbars:Se,contextForms:Be}=cT(fe,W.inNodeScope),qe=Be.length>0?Be:s8(Se);return qe.length>0?I.some({elem:fe,toolbars:qe}):I.none()}else return I.none()},l),$R=(l,N)=>{const W=Nt.fromDom(N.getBody()),fe=qe=>_o(qe,W),Se=qe=>!fe(qe)&&!$o(W,qe),Be=Nt.fromDom(N.selection.getNode());return Se(Be)?I.none():nj(Be,l.inNodeScope,l.inEditorScope).orThunk(()=>rj(fe,Be,l))},Zne=(l,N)=>{const W={},fe=[],Se=[],Be={},qe={},ft=(Ht,fn)=>{const Rn=Mt(HY(fn));W[Ht]=Rn,Rn.launch.map(Bn=>{Be["form:"+Ht]={...fn.launch,type:Bn.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{N(Rn)}}}),Rn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn},yt=(Ht,fn)=>{t5(fn).each(Rn=>{fn.scope==="editor"?Se.push(Rn):fe.push(Rn),qe[Ht]=Rn})},Lt=ke(l);return q(Lt,Ht=>{const fn=l[Ht];fn.type==="contextform"?ft(Ht,fn):fn.type==="contexttoolbar"&&yt(Ht,fn)}),{forms:W,inNodeScope:fe,inEditorScope:Se,lookupTable:qe,formNavigators:Be}},VR=Li("forward-slide"),oj=Li("backward-slide"),UR=Li("change-slide-event"),zS="tox-pop--resizing",ij=l=>{const N=wi([]);return Xc.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:W=>{N.set([]),Xc.getContent(W).each(fe=>{zi(fe.element,"visibility")}),Zc(W.element,zS),zi(W.element,"width")},inlineBehaviours:ei([Ka("context-toolbar-events",[cy(rm(),(W,fe)=>{fe.event.raw.propertyName==="width"&&(Zc(W.element,zS),zi(W.element,"width"))}),Lo(UR,(W,fe)=>{const Se=W.element;zi(Se,"width");const Be=_s(Se);Xc.setContent(W,fe.event.contents),uc(Se,zS);const qe=_s(Se);xr(Se,"width",Be+"px"),Xc.getContent(W).each(ft=>{fe.event.focus.bind(yt=>(Md(yt),Wd(Se))).orThunk(()=>(ha.focusIn(ft),um(kr(Se))))}),setTimeout(()=>{xr(W.element,"width",qe+"px")},0)}),Lo(VR,(W,fe)=>{Xc.getContent(W).each(Se=>{N.set(N.get().concat([{bar:Se,focus:um(kr(W.element))}]))}),sa(W,UR,{contents:fe.event.forwardContents,focus:I.none()})}),Lo(oj,(W,fe)=>{Ve(N.get()).each(Se=>{N.set(N.get().slice(0,N.get().length-1)),sa(W,UR,{contents:ea(Se.bar),focus:Se.focus})})})]),ha.config({mode:"special",onEscape:W=>Ve(N.get()).fold(()=>l.onEscape(),fe=>(Za(W,oj),I.some(!0)))})]),lazySink:()=>aa.value(l.sink)})},jR="tox-pop--transition",qne=(l,N,W,fe)=>{const Se=fe.backstage,Be=Se.shared,qe=va().deviceType.isTouch,ft=ds(),yt=ds(),Lt=ds(),Ht=ka(ij({sink:W,onEscape:()=>(l.focus(),I.some(!0))})),fn=()=>{const yi=Lt.get().getOr("node"),Xi=dO(yi)?1:0;return JU(l,Be,yi,Xi)},Rn=()=>!l.removed&&!(qe()&&Se.isContextMenuOpen()),Bn=yi=>St(ln(yi,ft.get(),_o),!0),er=()=>{if(Rn()){const yi=fn(),Xi=St(Lt.get(),"node")?sT(l,ft.get()):zR(l);return yi.height<=0||!GU(Xi,yi,.01)}else return!0},cr=()=>{ft.clear(),yt.clear(),Lt.clear(),Xc.hide(Ht)},Xr=()=>{if(Xc.isOpen(Ht)){const yi=Ht.element;zi(yi,"display"),er()?xr(yi,"display","none"):(yt.set(0),Xc.reposition(Ht))}},br=yi=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[yi],behaviours:ei([ha.config({mode:"acyclic"}),Ka("pop-dialog-wrap-events",[wc(Xi=>{l.shortcuts.add("ctrl+F9","focus statusbar",()=>ha.focusIn(Xi))}),xg(Xi=>{l.shortcuts.remove("ctrl+F9")})])])}),Fr=Uc(()=>Zne(N,yi=>{const Xi=ko([yi]);sa(Ht,VR,{forwardContents:br(Xi)})})),jr=(yi,Xi)=>iT(l,{buttons:yi,toolbar:Xi.items,allowToolbarGroups:!1},fe.backstage,I.some(["form:"])),Ro=(yi,Xi)=>Une.buildInitGroups(yi,Xi),ko=yi=>{const{buttons:Xi}=l.ui.registry.getAll(),ks=Fr(),Ic={...Xi,...ks.formNavigators},hl=jw(l)===C0.scrolling?C0.scrolling:C0.default,Ui=ye(re(yi,Ko=>Ko.type==="contexttoolbar"?jr(Ic,Ko):Ro(Ko,Be.providers)));return ZA({type:hl,uid:Li("context-toolbar"),initGroups:Ui,onEscape:I.none,cyclicKeying:!0,providers:Be.providers})},_i=(yi,Xi)=>{const ks=yi==="node"?Be.anchors.node(Xi):Be.anchors.cursor(),Ic=FR(l,yi,qe(),{lastElement:ft.get,isReposition:()=>St(yt.get(),0),getMode:()=>Rh.getMode(W)});return ws(ks,Ic)},Pi=(yi,Xi)=>{if($i.cancel(),!Rn())return;const ks=ko(yi),Ic=yi[0].position,hl=_i(Ic,Xi);Lt.set(Ic),yt.set(1);const Ui=Ht.element;zi(Ui,"display"),Bn(Xi)||(Zc(Ui,jR),Rh.reset(W,Ht)),Xc.showWithinBounds(Ht,br(ks),{anchor:hl,transition:{classes:[jR],mode:"placement"}},()=>I.some(fn())),Xi.fold(ft.clear,ft.set),er()&&xr(Ui,"display","none")};let Ao=!1;const $i=o9(()=>{if(!(!l.hasFocus()||l.removed||Ao))if(rp(Ht.element,jR))$i.throttle();else{const yi=Fr();$R(yi,l).fold(cr,Xi=>{Pi(Xi.toolbars,I.some(Xi.elem))})}},17);l.on("init",()=>{l.on("remove",cr),l.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Xr),l.on("click keyup focus SetContent",$i.throttle),l.on(YU,cr),l.on(Bne,yi=>{const Xi=Fr();Ge(Xi.lookupTable,yi.toolbarKey).each(ks=>{Pi([ks],Ot(yi.target!==l,yi.target)),Xc.getContent(Ht).each(ha.focusIn)})}),l.on("focusout",yi=>{J3.setEditorTimeout(l,()=>{Wd(W.element).isNone()&&Wd(Ht.element).isNone()&&cr()},0)}),l.on("SwitchMode",()=>{l.mode.isReadOnly()&&cr()}),l.on("ExecCommand",({command:yi})=>{yi.toLowerCase()==="toggleview"&&cr()}),l.on("AfterProgressState",yi=>{yi.state?cr():l.hasFocus()&&$i.throttle()}),l.on("dragstart",()=>{Ao=!0}),l.on("dragend drop",()=>{Ao=!1}),l.on("NodeChange",yi=>{Wd(Ht.element).fold($i.throttle,v)})})},Wne=l=>{q([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],W=>{l.ui.registry.addToggleButton(W.name,{tooltip:W.text,icon:W.icon,onAction:tg(l,W.cmd),onSetup:tA(l,W.name)})}),l.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:kp(l),onAction:tg(l,"JustifyNone")})},aj=(l,N)=>{const W=()=>{const fe=N.getOptions(l),Se=N.getCurrent(l).map(N.hash),Be=ds();return re(fe,qe=>({type:"togglemenuitem",text:N.display(qe),onSetup:ft=>{const yt=Ht=>{Ht&&(Be.on(fn=>fn.setActive(!1)),Be.set(ft)),ft.setActive(Ht)};yt(St(Se,N.hash(qe)));const Lt=N.watcher(l,qe,yt);return()=>{Be.clear(),Lt()}},onAction:()=>N.setCurrent(l,qe)}))};l.ui.registry.addMenuButton(N.name,{tooltip:N.text,icon:N.icon,fetch:fe=>fe(W()),onSetup:N.onToolbarSetup}),l.ui.registry.addNestedMenuItem(N.name,{type:"nestedmenuitem",text:N.text,getSubmenuItems:W,onSetup:N.onMenuSetup})},Yne=l=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:pz,hash:N=>Kte(N,["fixed","relative","empty"]).getOr(N),display:R,watcher:(N,W,fe)=>N.formatter.formatChanged("lineheight",fe,!1,{value:W}).unbind,getCurrent:N=>I.from(N.queryCommandValue("LineHeight")),setCurrent:(N,W)=>N.execCommand("LineHeight",!1,W),onToolbarSetup:kp(l),onMenuSetup:kp(l)}),sj=l=>I.from(ez(l)).map(W=>({name:"language",text:"Language",icon:"language",getOptions:x(W),hash:fe=>y(fe.customCode)?fe.code:`${fe.code}/${fe.customCode}`,display:fe=>fe.title,watcher:(fe,Se,Be)=>{var qe;return fe.formatter.formatChanged("lang",Be,!1,{value:Se.code,customValue:(qe=Se.customCode)!==null&&qe!==void 0?qe:null}).unbind},getCurrent:fe=>{const Se=Nt.fromDom(fe.selection.getNode());return Nl(Se,Be=>I.some(Be).filter(lr).bind(qe=>Eo(qe,"lang").map(yt=>{const Lt=Eo(qe,"data-mce-lang").getOrUndefined();return{code:yt,customCode:Lt,title:""}})))},setCurrent:(fe,Se)=>fe.execCommand("Lang",!1,Se),onToolbarSetup:fe=>{const Se=Ol();return fe.setActive(l.formatter.match("lang",{},void 0,!0)),Se.set(l.formatter.formatChanged("lang",fe.setActive,!0)),eA(Se.clear,kp(l)(fe))},onMenuSetup:kp(l)})),lj=l=>{aj(l,Yne(l)),sj(l).each(N=>aj(l,N))},cj=(l,N)=>{i_(l,N),Xte(l,N),LU(l,N),Hte(l,N),une(l,N)},uj=l=>tO(l,"NodeChange",N=>{N.setEnabled(l.queryCommandState("outdent")&&l.selection.isEditable())}),Xne=l=>{l.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:uj(l),onAction:tg(l,"outdent")}),l.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:kp(l),onAction:tg(l,"indent")})},fj=l=>{Xne(l)},QR=(l,N)=>W=>{W.setActive(N.get());const fe=Se=>{N.set(Se.state),W.setActive(Se.state)};return l.on("PastePlainTextToggle",fe),eA(()=>l.off("PastePlainTextToggle",fe),kp(l)(W))},Gne=l=>{const N=wi(qE(l)),W=()=>l.execCommand("mceTogglePlainTextPaste");l.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:W,onSetup:QR(l,N)}),l.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:W,onSetup:QR(l,N)})},dj=(l,N)=>()=>{l.execCommand("mceToggleFormat",!1,N)},Kne=l=>{hx.each([{name:"bold",text:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(N,W)=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:tA(l,N.name),onAction:dj(l,N.name),shortcut:N.shortcut})});for(let N=1;N<=6;N++){const W="h"+N,fe=`Access+${N}`;l.ui.registry.addToggleButton(W,{text:W.toUpperCase(),tooltip:"Heading "+N,onSetup:tA(l,W),onAction:dj(l,W),shortcut:fe})}},Jne=l=>{hx.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help",shortcut:"Alt+0"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),shortcut:N.shortcut})}),hx.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addButton(N.name,{tooltip:N.text,icon:N.icon,onSetup:kp(l),onAction:tg(l,N.action)})})},ere=l=>{hx.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],N=>{l.ui.registry.addToggleButton(N.name,{tooltip:N.text,icon:N.icon,onAction:tg(l,N.action),onSetup:tA(l,N.name)})})},tre=l=>{Kne(l),Jne(l),ere(l)},nre=l=>{hx.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onAction:tg(l,N.action)})}),hx.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],N=>{l.ui.registry.addMenuItem(N.name,{text:N.text,icon:N.icon,shortcut:N.shortcut,onSetup:kp(l),onAction:tg(l,N.action)})}),l.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:kp(l),onAction:dj(l,"code")})},rre=l=>{tre(l),nre(l)},l8=(l,N)=>tO(l,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",W=>{W.setEnabled(!l.mode.isReadOnly()&&l.undoManager[N]())}),ore=l=>{l.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:l8(l,"hasUndo"),onAction:tg(l,"undo")}),l.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:l8(l,"hasRedo"),onAction:tg(l,"redo")})},ire=l=>{l.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:l8(l,"hasUndo"),onAction:tg(l,"undo"),shortcut:"Meta+Z"}),l.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:l8(l,"hasRedo"),onAction:tg(l,"redo"),shortcut:"Meta+Y"})},are=l=>{ore(l),ire(l)},sre=l=>tO(l,"VisualAid",N=>{N.setActive(l.hasVisual)}),lre=l=>{l.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:sre(l),onAction:tg(l,"mceToggleVisualAid")})},cre=l=>{l.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:tg(l,"mceToggleVisualAid")})},hj=l=>{cre(l),lre(l)},ure=(l,N)=>{Wne(l),rre(l),cj(l,N),are(l),TX(l),hj(l),fj(l),lj(l),Gne(l)},fre=l=>n(l)?l.split(/[ ,]/):l,pj=l=>N=>N.options.get(l),dre=l=>{const N=l.options.register;N("contextmenu_avoid_overlap",{processor:"string",default:""}),N("contextmenu_never_use_native",{processor:"boolean",default:!1}),N("contextmenu",{processor:W=>W===!1?{value:[],valid:!0}:n(W)||p(W,n)?{value:fre(W),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},mj=pj("contextmenu_never_use_native"),hre=pj("contextmenu_avoid_overlap"),pre=l=>gj(l).length===0,gj=l=>{const N=l.ui.registry.getAll().contextMenus,W=l.options.get("contextmenu");return l.options.isSet("contextmenu")?W:me(W,fe=>ht(N,fe))},uT=(l,N)=>({type:"makeshift",x:l,y:N}),HR=(l,N,W)=>uT(l.x+N,l.y+W),vj=l=>l.type==="longpress"||l.type.indexOf("touch")===0,mre=l=>{if(vj(l)){const N=l.touches[0];return uT(N.pageX,N.pageY)}else return uT(l.pageX,l.pageY)},ZR=l=>{if(vj(l)){const N=l.touches[0];return uT(N.clientX,N.clientY)}else return uT(l.clientX,l.clientY)},yj=(l,N)=>{const W=Fw.DOM.getPos(l);return HR(N,W.x,W.y)},bj=(l,N)=>N.type==="contextmenu"||N.type==="longpress"?l.inline?mre(N):yj(l.getContentAreaContainer(),ZR(N)):xj(l),xj=l=>({type:"selection",root:Nt.fromDom(l.selection.getNode())}),gre=l=>({type:"node",node:I.some(Nt.fromDom(l.selection.getNode())),root:Nt.fromDom(l.getBody())}),_j=(l,N,W)=>{switch(W){case"node":return gre(l);case"point":return bj(l,N);case"selection":return xj(l)}},vre=(l,N,W,fe,Se,Be)=>{const qe=W(),ft=_j(l,N,Be);OS(qe,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!1,search:I.none()}).map(yt=>{N.preventDefault(),Xc.showMenuAt(Se,{anchor:ft},{menu:{markers:qw("normal")},data:yt})})},yre={onLtr:()=>[Iu,Lu,$c,dl,Mf,du,ng,CS,TS,LA,Q5,RA],onRtl:()=>[Iu,$c,Lu,Mf,dl,du,ng,CS,Q5,RA,TS,LA]},qR=12,bre={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},wj=(l,N)=>{const W=l.selection;if(W.isCollapsed()||N.touches.length<1)return!1;{const fe=N.touches[0],Se=W.getRng();return Ef(l.getWin(),Ay.domRange(Se)).exists(qe=>qe.left<=fe.clientX&&qe.right>=fe.clientX&&qe.top<=fe.clientY&&qe.bottom>=fe.clientY)}},xre=l=>{const N=l.selection.getRng(),W=()=>{J3.setEditorTimeout(l,()=>{l.selection.setRng(N)},10),Be()};l.once("touchend",W);const fe=qe=>{qe.preventDefault(),qe.stopImmediatePropagation()};l.on("mousedown",fe,!0);const Se=()=>Be();l.once("longpresscancel",Se);const Be=()=>{l.off("touchend",W),l.off("longpresscancel",Se),l.off("mousedown",fe)}},_re=(l,N,W)=>{const fe=_j(l,N,W);return{bubble:wp(0,W==="point"?qR:0,bre),layouts:yre,overrides:{maxWidthFunction:ES(),maxHeightFunction:v1()},...fe}},WR=(l,N,W,fe,Se,Be,qe)=>{const ft=_re(l,N,Be);OS(W,A1.CLOSE_ON_EXECUTE,fe,{isHorizontalMenu:!0,search:I.none()}).map(yt=>{N.preventDefault();const Lt=qe?Gu.HighlightMenuAndItem:Gu.HighlightNone;Xc.showMenuWithinBounds(Se,{anchor:ft},{menu:{markers:qw("normal"),highlightOnOpen:Lt},data:yt,type:"horizontal"},()=>I.some(JU(l,fe.shared,Be==="node"?"node":"selection"))),l.dispatch(YU)})},wre=(l,N,W,fe,Se,Be)=>{const qe=va(),ft=qe.os.isiOS(),yt=qe.os.isMacOS(),Lt=qe.os.isAndroid(),Ht=qe.deviceType.isTouch(),fn=()=>!(Lt||ft||yt&&Ht),Rn=()=>{const Bn=W();WR(l,N,Bn,fe,Se,Be,fn())};if((yt||ft)&&Be!=="node"){const Bn=()=>{xre(l),Rn()};wj(l,N)?Bn():(l.once("selectionchange",Bn),l.once("touchend",()=>l.off("selectionchange",Bn)))}else Rn()},YR=l=>n(l)?l==="|":l.type==="separator",XR={type:"separator"},Oj=l=>{const N=W=>({text:W.text,icon:W.icon,enabled:W.enabled,shortcut:W.shortcut});if(n(l))return l;switch(l.type){case"separator":return XR;case"submenu":return{type:"nestedmenuitem",...N(l),getSubmenuItems:()=>{const fe=l.getSubmenuItems();return n(fe)?fe:re(fe,Oj)}};default:const W=l;return{type:"menuitem",...N(W),onAction:_(W.onAction)}}},c8=(l,N)=>{if(N.length===0)return l;const fe=Ve(l).filter(Se=>!YR(Se)).fold(()=>[],Se=>[XR]);return l.concat(fe).concat(N).concat([XR])},Ore=(l,N,W)=>{const fe=se(N,(Se,Be)=>Ge(l,Be.toLowerCase()).map(qe=>{const ft=qe.update(W);if(n(ft)&&it(Dt(ft)))return c8(Se,ft.split(" "));if(i(ft)&&ft.length>0){const yt=re(ft,Oj);return c8(Se,yt)}else return Se}).getOrThunk(()=>Se.concat([Be])),[]);return fe.length>0&&YR(fe[fe.length-1])&&fe.pop(),fe},Sre=(l,N)=>N.ctrlKey&&!mj(l),kre=l=>l.type==="longpress"||ht(l,"touches"),Sj=(l,N)=>!kre(N)&&(N.button!==2||N.target===l.getBody()&&N.pointerType===""),kj=(l,N)=>Sj(l,N)?l.selection.getStart(!0):N.target,Tj=(l,N)=>{const W=hre(l),fe=Sj(l,N)?"selection":"point";if(it(W)){const Se=kj(l,N);return f5(Nt.fromDom(Se),W)?"node":fe}else return fe},Tre=(l,N,W)=>{const Se=va().deviceType.isTouch,Be=ka(Xc.sketch({dom:{tag:"div"},lazySink:N,onEscape:()=>l.focus(),onShow:()=>W.setContextMenuState(!0),onHide:()=>W.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:ei([Ka("dismissContextMenu",[Lo(J0(),(yt,Lt)=>{Ys.close(yt),l.focus()})])])})),qe=()=>Xc.hide(Be),ft=yt=>{if(mj(l)&&yt.preventDefault(),Sre(l,yt)||pre(l))return;const Lt=Tj(l,yt),Ht=()=>{const Rn=kj(l,yt),Bn=l.ui.registry.getAll(),er=gj(l);return Ore(Bn.contextMenus,er,Rn)};(Se()?wre:vre)(l,yt,Ht,W,Be,Lt)};l.on("init",()=>{const yt="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(Se()?"":" ResizeWindow");l.on(yt,qe),l.on("longpress contextmenu",ft)})},GR=Nn.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),u8=l=>N=>N.translate(-l.left,-l.top),f8=l=>N=>N.translate(l.left,l.top),mx=l=>(N,W)=>se(l,(fe,Se)=>Se(fe),Qs(N,W)),d8=(l,N,W)=>l.fold(mx([f8(W),u8(N)]),mx([u8(N)]),mx([])),NS=(l,N,W)=>l.fold(mx([f8(W)]),mx([]),mx([f8(N)])),Cj=(l,N,W)=>l.fold(mx([]),mx([u8(W)]),mx([f8(N),u8(W)])),Aj=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be);return Math.abs(qe.left-ft.left)<=W&&Math.abs(qe.top-ft.top)<=fe},Cre=(l,N,W,fe,Se,Be)=>{const qe=NS(l,Se,Be),ft=NS(N,Se,Be),yt=Math.abs(qe.left-ft.left),Lt=Math.abs(qe.top-ft.top);return Qs(yt,Lt)},KR=(l,N,W)=>{const fe=l.fold((Se,Be)=>({position:I.some("absolute"),left:I.some(Se+"px"),top:I.some(Be+"px")}),(Se,Be)=>({position:I.some("absolute"),left:I.some(Se-W.left+"px"),top:I.some(Be-W.top+"px")}),(Se,Be)=>({position:I.some("fixed"),left:I.some(Se+"px"),top:I.some(Be+"px")}));return{right:I.none(),bottom:I.none(),...fe}},Are=(l,N,W)=>l.fold((fe,Se)=>h8(fe+N,Se+W),(fe,Se)=>Qg(fe+N,Se+W),(fe,Se)=>a_(fe+N,Se+W)),JR=(l,N,W,fe)=>{const Se=(Be,qe)=>(ft,yt)=>{const Lt=Be(N,W,fe);return qe(ft.getOr(Lt.left),yt.getOr(Lt.top))};return l.fold(Se(Cj,h8),Se(NS,Qg),Se(d8,a_))},h8=GR.offset,Qg=GR.absolute,a_=GR.fixed,Mj=(l,N)=>{const W=Nr(l,N);return y(W)?NaN:parseInt(W,10)},Mre=(l,N)=>{const W=l.element,fe=Mj(W,N.leftAttr),Se=Mj(W,N.topAttr);return isNaN(fe)||isNaN(Se)?I.none():I.some(Qs(fe,Se))},Ere=(l,N,W)=>{const fe=l.element;Cr(fe,N.leftAttr,W.left+"px"),Cr(fe,N.topAttr,W.top+"px")},Pre=(l,N)=>{const W=l.element;Qt(W,N.leftAttr),Qt(W,N.topAttr)},Ej=(l,N,W,fe)=>Mre(l,N).fold(()=>W,Se=>a_(Se.left+fe.left,Se.top+fe.top)),Rre=(l,N,W,fe,Se,Be)=>{const qe=Ej(l,N,W,fe),ft=N.mustSnap?Ire(l,N,qe,Se,Be):Dre(l,N,qe,Se,Be),yt=d8(qe,Se,Be);return Ere(l,N,yt),ft.fold(()=>({coord:a_(yt.left,yt.top),extra:I.none()}),Lt=>({coord:Lt.output,extra:Lt.extra}))},Lre=(l,N)=>{Pre(l,N)},Pj=(l,N,W,fe)=>Oe(l,Se=>{const Be=Se.sensor;return Aj(N,Be,Se.range.left,Se.range.top,W,fe)?I.some({output:JR(Se.output,N,W,fe),extra:Se.extra}):I.none()}),Ire=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Pj(Be,W,fe,Se).orThunk(()=>se(Be,(yt,Lt)=>{const Ht=Lt.sensor,fn=Cre(W,Ht,Lt.range.left,Lt.range.top,fe,Se);return yt.deltas.fold(()=>({deltas:I.some(fn),snap:I.some(Lt)}),Rn=>{const Bn=(fn.left+fn.top)/2,er=(Rn.left+Rn.top)/2;return Bn<=er?{deltas:I.some(fn),snap:I.some(Lt)}:yt})},{deltas:I.none(),snap:I.none()}).snap.map(yt=>({output:JR(yt.output,W,fe,Se),extra:yt.extra})))},Dre=(l,N,W,fe,Se)=>{const Be=N.getSnapPoints(l);return Pj(Be,W,fe,Se)},Bre=(l,N,W)=>({coord:JR(l.output,l.output,N,W),extra:l.extra});var zre=Object.freeze({__proto__:null,snapTo:(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=Bre(fe,qe,ft),Lt=KR(yt.coord,qe,ft);mi(Se,Lt)}}});const eL="data-initial-z-index",Nre=l=>{Dr(l.element).filter(lr).each(N=>{Eo(N,eL).fold(()=>zi(N,"z-index"),W=>xr(N,"z-index",W)),Qt(N,eL)})},Rj=l=>{Dr(l.element).filter(lr).each(N=>{Ia(N,"z-index").each(W=>{Cr(N,eL,W)}),xr(N,"z-index",Di(l.element,"z-index"))})},tL=(l,N)=>{l.getSystem().addToGui(N),Rj(N)},Fre=l=>{Nre(l),l.getSystem().removeFromGui(l)},FS=(l,N,W)=>l.getSystem().build(Iv.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[N]},events:W}));var $re=Ai("snaps",[pn("getSnapPoints"),Ss("onSensor"),pn("leftAttr"),pn("topAttr"),Ar("lazyViewport",ts),Ar("mustSnap",!1)]);const nL=[Ar("useFixed",D),pn("blockerClass"),Ar("getTarget",R),Ar("onDrag",v),Ar("repositionTarget",!0),Ar("onDrop",v),ys("getBounds",ts),$re],rL=l=>tn(Ia(l,"left"),Ia(l,"top"),Ia(l,"position"),(N,W,fe)=>(fe==="fixed"?a_:h8)(parseInt(N,10),parseInt(W,10))).getOrThunk(()=>{const N=Tc(l);return Qg(N.left,N.top)}),Vre=(l,N,W,fe,Se)=>{const Be=Se.bounds,qe=NS(N,W,fe),ft=Mh(qe.left,Be.x,Be.x+Be.width-Se.width),yt=Mh(qe.top,Be.y,Be.y+Be.height-Se.height),Lt=Qg(ft,yt);return N.fold(()=>{const Ht=Cj(Lt,W,fe);return h8(Ht.left,Ht.top)},x(Lt),()=>{const Ht=d8(Lt,W,fe);return a_(Ht.left,Ht.top)})},Ure=(l,N,W,fe,Se,Be,qe)=>{const ft=N.fold(()=>{const yt=Are(W,Be.left,Be.top),Lt=d8(yt,fe,Se);return a_(Lt.left,Lt.top)},yt=>{const Lt=Rre(l,yt,W,Be,fe,Se);return Lt.extra.each(Ht=>{yt.onSensor(l,Ht)}),Lt.coord});return Vre(l,ft,fe,Se,qe)},jre=(l,N,W,fe)=>{const Se=N.getTarget(l.element);if(N.repositionTarget){const Be=Mo(l.element),qe=yc(Be),ft=r1(Se),yt=rL(Se),Lt=Ure(l,N.snaps,yt,qe,ft,fe,W),Ht=KR(Lt,qe,ft);mi(Se,Ht)}N.onDrag(l,Se,fe)},Lj=(l,N)=>({bounds:l.getBounds(),height:nf(N.element),width:ma(N.element)}),oL=(l,N,W,fe,Se)=>{const Be=W.update(fe,Se),qe=W.getStartData().getOrThunk(()=>Lj(N,l));Be.each(ft=>{jre(l,N,qe,ft)})},Ij=(l,N,W,fe)=>{N.each(Fre),W.snaps.each(Be=>{Lre(l,Be)});const Se=W.getTarget(l.element);fe.reset(),W.onDrop(l,Se)},iL=l=>(N,W)=>{const fe=Se=>{W.setStartData(Lj(N,Se))};return Rl([Lo(Im(),Se=>{W.getStartData().each(()=>fe(Se))}),...l(N,W,fe)])},Qre=l=>Rl([Lo(Nc(),l.forceDrop),Lo(a0(),l.drop),Lo(o0(),(N,W)=>{l.move(W.event)}),Lo(i0(),l.delayDrop)]);var Hre=Object.freeze({__proto__:null,getData:l=>I.from(Qs(l.x,l.y)),getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Dj=(l,N,W)=>[Lo(Nc(),(fe,Se)=>{if(Se.event.raw.button!==0)return;Se.stop();const qe=()=>Ij(fe,I.some(Lt),l,N),ft=oF(qe,200),yt={drop:qe,delayDrop:ft.schedule,forceDrop:qe,move:fn=>{ft.cancel(),oL(fe,l,N,Hre,fn)}},Lt=FS(fe,l.blockerClass,Qre(yt));(()=>{W(fe),tL(fe,Lt)})()})],Zre=[...nL,Sl("dragger",{handlers:iL(Dj)})],qre=l=>Rl([Lo(Uh(),l.forceDrop),Lo(Gl(),l.drop),Lo(Sf(),l.drop),Lo(ss(),(N,W)=>{l.move(W.event)})]),Wre=l=>{const N=l[0];return I.some(Qs(N.clientX,N.clientY))};var fT=Object.freeze({__proto__:null,getData:l=>{const W=l.raw.touches;return W.length===1?Wre(W):I.none()},getDelta:(l,N)=>Qs(N.left-l.left,N.top-l.top)});const Bj=(l,N,W)=>{const fe=ds(),Se=Be=>{Ij(Be,fe.get(),l,N),fe.clear()};return[Lo(Uh(),(Be,qe)=>{qe.stop();const ft=()=>Se(Be),yt={drop:ft,delayDrop:v,forceDrop:ft,move:fn=>{oL(Be,l,N,fT,fn)}},Lt=FS(Be,l.blockerClass,qre(yt));fe.set(Lt),(()=>{W(Be),tL(Be,Lt)})()}),Lo(ss(),(Be,qe)=>{qe.stop(),oL(Be,l,N,fT,qe.event)}),Lo(Gl(),(Be,qe)=>{qe.stop(),Se(Be)}),Lo(Sf(),Se)]},Yre=[...nL,Sl("dragger",{handlers:iL(Bj)})],Xre=(l,N,W)=>[...Dj(l,N,W),...Bj(l,N,W)],Gre=[...nL,Sl("dragger",{handlers:iL(Xre)})];var Jre=Object.freeze({__proto__:null,mouse:Zre,touch:Yre,mouseOrTouch:Gre}),eoe=Object.freeze({__proto__:null,init:()=>{let l=I.none(),N=I.none();const W=()=>{l=I.none(),N=I.none()},fe=(yt,Lt)=>{const Ht=l.map(fn=>yt.getDelta(fn,Lt));return l=I.some(Lt),Ht},Se=(yt,Lt)=>yt.getData(Lt).bind(Ht=>fe(yt,Ht)),Be=yt=>{N=I.some(yt)},qe=()=>N,ft=x({});return Hd({readState:ft,reset:W,update:Se,getStartData:qe,setStartData:Be})}});const hO=HO({branchKey:"mode",branches:Jre,name:"dragging",active:{events:(l,N)=>l.dragger.handlers(l,N)},extra:{snap:l=>({sensor:l.sensor,range:l.range,output:l.output,extra:I.from(l.extra)})},state:eoe,apis:zre}),aL=40,$S=aL/2,sL=(l,N,W,fe,Se,Be)=>l.fold(()=>hO.snap({sensor:Qg(W-$S,fe-$S),range:Qs(Se,Be),output:Qg(I.some(W),I.some(fe)),extra:{td:N}}),qe=>{const ft=W-$S,yt=fe-$S,Lt=aL,Ht=aL,fn=qe.element.dom.getBoundingClientRect();return hO.snap({sensor:Qg(ft,yt),range:Qs(Lt,Ht),output:Qg(I.some(W-fn.width/2),I.some(fe-fn.height/2)),extra:{td:N}})}),zj=(l,N,W)=>{const fe=(Se,Be)=>Se.exists(qe=>_o(qe,Be));return{getSnapPoints:l,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(Se,Be)=>{const qe=Be.td;fe(N.get(),qe)||(N.set(qe),W(qe))},mustSnap:!0}},Nj=l=>ml(Lh.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:ei([hO.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:l}),bS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),toe=(l,N)=>{const W=wi([]),fe=wi([]),Se=wi(!1),Be=ds(),qe=ds(),ft=Pi=>{const Ao=bc(Pi);return sL(Bn.getOpt(N),Pi,Ao.x,Ao.y,Ao.width,Ao.height)},yt=()=>re(W.get(),Pi=>ft(Pi)),Lt=Pi=>{const Ao=bc(Pi);return sL(er.getOpt(N),Pi,Ao.right,Ao.bottom,Ao.width,Ao.height)},Ht=()=>re(fe.get(),Pi=>Lt(Pi)),fn=zj(yt,Be,Pi=>{qe.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Pi,finish:Ao})})}),Rn=zj(Ht,qe,Pi=>{Be.get().each(Ao=>{l.dispatch("TableSelectorChange",{start:Ao,finish:Pi})})}),Bn=Nj(fn),er=Nj(Rn),cr=ka(Bn.asSpec()),Xr=ka(er.asSpec()),br=(Pi,Ao,$i,yi)=>{const Xi=Ao.dom.getBoundingClientRect();zi(Pi.element,"display");const ks=ar(Nt.fromDom(l.getBody())).dom.innerHeight,Ic=$i(Xi),hl=yi(Xi,ks);(Ic||hl)&&xr(Pi.element,"display","none")},Fr=(Pi,Ao,$i,yi)=>{const Xi=$i(Ao);hO.snapTo(Pi,Xi),br(Pi,Ao,hl=>hl[yi]<0,(hl,Ui)=>hl[yi]>Ui)},jr=Pi=>Fr(cr,Pi,ft,"top"),Ro=()=>Be.get().each(jr),ko=Pi=>Fr(Xr,Pi,Lt,"bottom"),_i=()=>qe.get().each(ko);if(va().deviceType.isTouch()){const Pi=Ao=>re(Ao,Nt.fromDom);l.on("TableSelectionChange",Ao=>{Se.get()||(Eg(N,cr),Eg(N,Xr),Se.set(!0));const $i=Nt.fromDom(Ao.start),yi=Nt.fromDom(Ao.finish);Be.set($i),qe.set(yi),I.from(Ao.otherCells).each(Xi=>{W.set(Pi(Xi.upOrLeftCells)),fe.set(Pi(Xi.downOrRightCells)),jr($i),ko(yi)})}),l.on("ResizeEditor ResizeWindow ScrollContent",()=>{Ro(),_i()}),l.on("TableSelectionClear",()=>{Se.get()&&(kv(cr),kv(Xr),Se.set(!1)),Be.clear(),qe.clear()})}};var noe=` +`;const roe=(l,N)=>{const W=I.from(Nr(l,"id")).getOrThunk(()=>{const fe=Li("aria");return Cr(N,"id",fe),fe});Cr(l,"aria-describedby",W)},ooe=l=>{Qt(l,"aria-describedby")},ioe=l=>l.nodeName==="BR"||!!l.getAttribute("data-mce-bogus")||l.getAttribute("data-mce-type")==="bookmark",aoe=(l,N,W)=>{var fe;const Se=(fe=N.delimiter)!==null&&fe!==void 0?fe:"›",Be=(Lt,Ht,fn)=>Lh.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":fn}},components:[Po(Lt)],action:Rn=>{l.focus(),l.selection.select(Ht),l.nodeChanged()},buttonBehaviours:ei([Vu.config({...W.tooltips.getConfig({tooltipText:W.translate(["Select the {0} element",Ht.nodeName.toLowerCase()]),onShow:(Rn,Bn)=>{roe(Rn.element,Bn.element)},onHide:Rn=>{ooe(Rn.element)}})}),E1.button(W.isDisabled),Id()])}),qe=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Po(` ${Se} `)]}),ft=Lt=>se(Lt,(Ht,fn,Rn)=>{const Bn=Be(fn.name,fn.element,Rn);return Rn===0?Ht.concat([Bn]):Ht.concat([qe(),Bn])},[]),yt=Lt=>{const Ht=[];let fn=Lt.length;for(;fn-- >0;){const Rn=Lt[fn];if(Rn.nodeType===1&&!ioe(Rn)){const Bn=dX(l,Rn);if(Bn.isDefaultPrevented()||Ht.push({name:Bn.name,element:Rn}),Bn.isPropagationStopped())break}}return Ht};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:ei([ha.config({mode:"flow",selector:"div[role=button]"}),he.config({disabled:W.isDisabled}),Id(),Rc.config({}),Fa.config({}),Ka("elementPathEvents",[wc((Lt,Ht)=>{l.shortcuts.add("alt+F11","focus statusbar elementpath",()=>ha.focusIn(Lt)),l.on("NodeChange",fn=>{const Rn=yt(fn.parents),Bn=Rn.length>0?ft(Rn):[];Fa.set(Lt,Bn)})})])]),components:[]}};var s_;(function(l){l[l.None=0]="None",l[l.Both=1]="Both",l[l.Vertical=2]="Vertical"})(s_||(s_={}));const soe=(l,N,W,fe,Se)=>{const Be={height:r8(fe+N.top,eS(l),g6(l))};return W===s_.Both&&(Be.width=r8(Se+N.left,Uw(l),Ik(l))),Be},Fj=(l,N,W)=>{const fe=Nt.fromDom(l.getContainer()),Se=soe(l,N,W,il(fe),_s(fe));We(Se,(Be,qe)=>{h(Be)&&xr(fe,qe,n8(Be))}),K6(l)},loe=l=>{const N=fz(l);return N===!1?s_.None:N==="both"?s_.Both:s_.Vertical},p8=(l,N,W,fe)=>{const Be=Qs(W*20,fe*20);return Fj(l,Be,N),I.some(!0)},coe=(l,N)=>{const W=loe(l);if(W===s_.None)return I.none();const fe=W===s_.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return I.some(Bg("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{"aria-label":N.translate(fe),"data-mce-name":"resize-handle"},behaviours:[hO.config({mode:"mouse",repositionTarget:!1,onDrag:(Se,Be,qe)=>Fj(l,qe,W),blockerClass:"tox-blocker"}),ha.config({mode:"special",onLeft:()=>p8(l,W,-1,0),onRight:()=>p8(l,W,1,0),onUp:()=>p8(l,W,0,-1),onDown:()=>p8(l,W,0,1)}),Rc.config({}),Ra.config({}),Vu.config(N.tooltips.getConfig({tooltipText:N.translate("Resize")}))]},N.icons))},$j=(l,N)=>{const W=(fe,Se,Be)=>Fa.set(fe,[Po(N.translate(["{0} "+Be,Se[Be]]))]);return Lh.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:ei([E1.button(N.isDisabled),Id(),Rc.config({}),Fa.config({}),Ei.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Ka("wordcount-events",[kh(fe=>{const Se=Ei.getValue(fe),Be=Se.mode==="words"?"characters":"words";Ei.setValue(fe,{mode:Be,count:Se.count}),W(fe,Se.count,Be)}),wc(fe=>{l.on("wordCountUpdate",Se=>{const{mode:Be}=Ei.getValue(fe);Ei.setValue(fe,{mode:Be,count:Se.wordCount}),W(fe,Se.wordCount,Be)})})])]),eventOrder:{[Bp()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},uoe=(l,N)=>{const W=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v7",rel:"noopener",target:"_blank","aria-label":l.translate(["Build with {0}","TinyMCE"])},innerHtml:l.translate(["Build with {0}",noe.trim()])},behaviours:ei([Ra.config({})])}]}),fe=()=>{const ft=W6("Alt+0"),yt="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Po(Dg.translate([yt,ft]))]}},Se=()=>{const ft=[];return l.hasPlugin("wordcount")&&ft.push($j(l,N)),ZE(l)&&ft.push(W()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ft}},Be=()=>{const ft=[],yt=zk(l),Lt=uz(l),Ht=ZE(l)||l.hasPlugin("wordcount"),fn=()=>{const Rn="tox-statusbar__text-container--flex-start",Bn="tox-statusbar__text-container--flex-end",er="tox-statusbar__text-container--space-around";if(yt){const cr="tox-statusbar__text-container-3-cols";return!Ht&&!Lt?[cr,er]:Ht&&!Lt?[cr,Bn]:[cr,Rn]}return[Ht&&!Lt?Bn:Rn]};return Lt&&ft.push(aoe(l,{},N)),yt&&ft.push(fe()),Ht&&ft.push(Se()),ft.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...fn()]},components:ft}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ft=Be(),yt=coe(l,N);return ft.concat(yt.toArray())})()}},Vj=(l,N)=>N.get().getOrDie(`UI for ${l} has not been rendered`),foe=(l,N)=>{const W=l.inline,fe=W?Ine:t8,Se=Qw(l)?Vee:vV,Be=Dne(),qe=ds(),ft=ds(),yt=ds(),Rn=va().deviceType.isTouch()?["tox-platform-touch"]:[],Bn=$k(l),er=jw(l),cr=ml({dom:{tag:"div",classes:["tox-anchorbar"]}}),Xr=ml({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),br=()=>Be.mainUi.get().map(fa=>fa.outerContainer).bind(Lc.getHeader),Fr=()=>aa.fromOption(Be.dialogUi.get().map(fa=>fa.sink),"UI has not been rendered"),jr=()=>aa.fromOption(Be.popupUi.get().map(fa=>fa.sink),"(popup) UI has not been rendered"),Ro=Be.lazyGetInOuterOrDie("anchor bar",cr.getOpt),ko=Be.lazyGetInOuterOrDie("bottom anchor bar",Xr.getOpt),_i=Be.lazyGetInOuterOrDie("toolbar",Lc.getToolbar),Pi=Be.lazyGetInOuterOrDie("throbber",Lc.getThrobber),Ao=hV({popup:jr,dialog:Fr},l,Ro,ko),$i=()=>{const fa={attributes:{[Nb]:Bn?ap.BottomToTop:ap.TopToBottom}},Qa=Lc.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Ao.popup,onEscape:()=>{l.focus()}}),ac=Lc.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Ao.popup.shared.getSink,providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},onToolbarToggled:xO=>{hX(l,xO)},type:er,lazyToolbar:_i,lazyHeader:()=>br().getOrDie("Could not find header element"),...fa}),vl=Lc.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Ao.popup.shared.providers,onEscape:()=>{l.focus()},type:er}),dp=Fk(l),qg=Nk(l),Vv=_6(l),Wh=dz(l),Wg=yi(),U0=dp||qg||Vv,km=()=>dp?[vl]:qg?[ac]:[],Wy=Wh?[Wg,Qa]:[Qa];return Lc.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(U0?[]:["tox-editor-header--empty"]),...fa},components:ye([Vv?Wy:[],km(),tS(l)?[]:[cr.asSpec()]]),sticky:Qw(l),editor:l,sharedBackstage:Ao.popup.shared})},yi=()=>Lc.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Xi=()=>{const fa=Lc.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Qa=Lc.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[fa,Qa]}},ks=()=>{const fa=GE(l),Qa=_o(Lr(),fa)&&Di(fa,"display")==="grid",ac={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Rh.config({useFixed:()=>Se.isDocked(br)})])},vl={dom:{styles:{width:document.body.clientWidth+"px"}},events:Rl([Lo(Dm(),Vv=>{xr(Vv.element,"width",document.body.clientWidth+"px")})])},dp=ka(ws(ac,Qa?vl:{})),qg=m5(dp);return ft.set(qg),{sink:dp,mothership:qg}},Ic=()=>{const fa={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(Rn),attributes:{...Dg.isRtl()?{dir:"rtl"}:{}}},behaviours:ei([Rh.config({useFixed:()=>Se.isDocked(br),getBounds:()=>N.getPopupSinkBounds()})])},Qa=ka(fa),ac=m5(Qa);return yt.set(ac),{sink:Qa,mothership:ac}},hl=()=>{const fa=$i(),Qa=Xi(),ac=Lc.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Ao.popup}),vl=Lc.parts.viewWrapper({backstage:Ao.popup}),dp=cz(l)&&!W?I.some(uoe(l,Ao.popup.shared.providers)):I.none(),qg=ye([Bn?[]:[fa],W?[]:[Qa],Bn?[fa]:[]]),Vv=Lc.parts.editorContainer({components:ye([qg,W?[]:[Xr.asSpec()]])}),Wh=Vk(l),Wg={role:"application",...Dg.isRtl()?{dir:"rtl"}:{},...Wh?{"aria-hidden":"true"}:{}},U0=ka(Lc.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(W?["tox-tinymce-inline"]:[]).concat(Bn?["tox-tinymce--toolbar-bottom"]:[]).concat(Rn),styles:{visibility:"hidden",...Wh?{opacity:"0",border:"0"}:{}},attributes:Wg},components:[Vv,...W?[]:[vl,...dp.toArray()],ac],behaviours:ei([Id(),he.config({disableClass:"tox-tinymce--disabled"}),ha.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),km=m5(U0);return qe.set(km),{mothership:km,outerContainer:U0}},Ui=fa=>{const Qa=n8(Ene(l)),ac=n8(Pne(l));return l.inline||(fs("div","width",ac)&&xr(fa.element,"width",ac),fs("div","height",Qa)?xr(fa.element,"height",Qa):xr(fa.element,"height","400px")),Qa},Ko=fa=>{l.addShortcut("alt+F9","focus menubar",()=>{Lc.focusMenubar(fa)}),l.addShortcut("alt+F10","focus toolbar",()=>{Lc.focusToolbar(fa)}),l.addCommand("ToggleToolbarDrawer",(Qa,ac)=>{ac!=null&&ac.skipFocus?Lc.toggleToolbarDrawerWithoutFocusing(fa):Lc.toggleToolbarDrawer(fa)}),l.addQueryStateHandler("ToggleToolbarDrawer",()=>Lc.isToolbarDrawerToggled(fa))},Oi=fa=>{const{mainUi:Qa,popupUi:ac,uiMotherships:vl}=fa;Ue(jE(l),(qS,w8)=>{l.ui.registry.addGroupToolbarButton(w8,qS)});const{buttons:dp,menuItems:qg,contextToolbars:Vv,sidebars:Wh,views:Wg}=l.ui.registry.getAll(),U0=XE(l),km={menuItems:qg,menus:mz(l),menubar:oz(l),toolbar:U0.getOrThunk(()=>Bk(l)),allowToolbarGroups:er===C0.floating,buttons:dp,sidebar:Wh,views:Wg};Ko(Qa.outerContainer),pV(l,Qa.mothership,vl),Se.setup(l,Ao.popup.shared,br),ure(l,Ao.popup),Tre(l,Ao.popup.shared.getSink,Ao.popup),cR(l),ote(l,Pi,Ao.popup.shared),qne(l,Vv,ac.sink,{backstage:Ao.popup}),toe(l,ac.sink);const Wy=l.getElement(),xO=Ui(Qa.outerContainer),OL={targetNode:Wy,height:xO};return fe.render(l,fa,km,Ao.popup,OL)},La=fa=>(yt.set(fa.mothership),fa),_a=()=>{const fa=hl(),Qa=ks(),ac=N2(l)?Ic():La(Qa);Be.dialogUi.set(Qa),Be.popupUi.set(ac),Be.mainUi.set(fa);const vl={popupUi:ac,dialogUi:Qa,mainUi:fa,uiMotherships:Be.getUiMotherships()};return Oi(vl)};return{popups:{backstage:Ao.popup,getMothership:()=>Vj("popups",yt)},dialogs:{backstage:Ao.dialog,getMothership:()=>Vj("dialogs",ft)},renderUI:_a}},doe=l=>l.dom.textContent,hoe=(l,N)=>{const W=Eo(l,"id").fold(()=>{const fe=Li("dialog-label");return Cr(N,"id",fe),fe},R);Cr(l,"aria-labelledby",W)},poe=x([pn("lazySink"),Yo("dragBlockClass"),ys("getBounds",ts),Ar("useTabstopAt",k),Ar("firstTabstop",0),Ar("eventOrder",{}),Pd("modalBehaviours",[ha]),kd("onExecute"),Sb("onEscape")]),lL={sketch:R},moe=x([mm({name:"draghandle",overrides:(l,N)=>({behaviours:ei([hO.config({mode:"mouse",getTarget:W=>Fl(W,'[role="dialog"]').getOr(W),blockerClass:l.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(N,null,2)).message),getBounds:l.getDragBounds})])})}),mh({schema:[pn("dom")],name:"title"}),mh({factory:lL,schema:[pn("dom")],name:"close"}),mh({factory:lL,schema:[pn("dom")],name:"body"}),mm({factory:lL,schema:[pn("dom")],name:"footer"}),Jm({factory:{sketch:(l,N)=>({...l,dom:N.dom,components:N.components})},schema:[Ar("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ar("components",[])],name:"blocker"})]),Uj=(l,N,W,fe)=>{const Se=ds(),Be=er=>{Se.set(er);const cr=l.lazySink(er).getOrDie(),Xr=fe.blocker(),br=cr.getSystem().build({...Xr,components:Xr.components.concat([ea(er)]),behaviours:ei([Ra.config({}),Ka("dialog-blocker-events",[cy(Dp(),()=>{I1.isBlocked(er)?v():ha.focusIn(er)})])])});Eg(cr,br),ha.focusIn(er)},qe=er=>{Se.clear(),Dr(er.element).each(cr=>{er.getSystem().getByDom(cr).each(Xr=>{kv(Xr)})})},ft=er=>gm(er,l,"body"),yt=er=>Jo(er,l,"footer"),Lt=(er,cr)=>{I1.block(er,cr)},Ht=er=>{I1.unblock(er)},fn=Li("modal-events"),Rn={...l.eventOrder,[Sh()]:[fn].concat(l.eventOrder["alloy.system.attached"]||[])},Bn=va();return{uid:l.uid,dom:l.dom,components:N,apis:{show:Be,hide:qe,getBody:ft,getFooter:yt,setIdle:Ht,setBusy:Lt},eventOrder:Rn,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Rd(l.modalBehaviours,[Fa.config({}),ha.config({mode:"cyclic",onEnter:l.onExecute,onEscape:l.onEscape,useTabstopAt:l.useTabstopAt,firstTabstop:l.firstTabstop}),I1.config({getRoot:Se.get}),Ka(fn,[wc(er=>{const cr=gm(er,l,"title").element,Xr=doe(cr);Bn.os.isMacOS()&&a(Xr)?Cr(er.element,"aria-label",Xr):hoe(er.element,cr)})])])}},fd=Zh({name:"ModalDialog",configFields:poe(),partFields:moe(),factory:Uj,apis:{show:(l,N)=>{l.show(N)},hide:(l,N)=>{l.hide(N)},getBody:(l,N)=>l.getBody(N),getFooter:(l,N)=>l.getFooter(N),setBusy:(l,N,W)=>{l.setBusy(N,W)},setIdle:(l,N)=>{l.setIdle(N)}}}),pO=Si([pf,U6].concat(U2)),goe=V,dT=[BP("button"),E0,rl("align","end",["start","end"]),aS,P0,Yi("buttonType",["primary","secondary"])],hT=[...dT,sx],cL=[Gr("type",["submit","cancel","custom"]),...hT],voe=[Gr("type",["menu"]),lx,iS,E0,Go("items",pO),...dT],yoe=[...dT,Gr("type",["togglebutton"]),iS,E0,lx,Hs("active",!1)],boe=bn("type",{submit:cL,cancel:cL,custom:cL,menu:voe,togglebutton:yoe}),xoe=[pf,sx,Gr("level",["info","warn","error","success"]),Hz,Ar("url","")],mO=Si(xoe),jj=l=>[pf,l],_oe=[pf,sx,P0,BP("button"),E0,NY,Yi("buttonType",["primary","secondary","toolbar"]),aS],woe=Si(_oe),VS=[pf,U6],Fv=VS.concat([j6]),Ooe=VS.concat([LP,P0]),Soe=Si(Ooe),koe=V,Toe=Fv.concat([qz("auto")]),uL=Si(Toe),pT=It([Kk,sx,Hz]),fL=Fv.concat([Ts("storageKey","default")]),m8=Si(fL),gO=ne,Coe=Si(Fv),Qj=ne,Hj=VS.concat([Ts("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),ai("onFocus"),Yu("settings",void 0)]),Zj=VS.concat([Ts("tag","textarea"),po("init")]),Aoe=rt(l=>Rt("customeditor.old",Os(Zj),l).orThunk(()=>Rt("customeditor.new",Os(Hj),l))),Moe=ne,qj=Si(Fv),Wj=et(),hL=l=>[pf,Ir("columns"),l],Eoe=[pf,Pr("html"),rl("presets","presentation",["presentation","document"]),ys("onInit",v),Hs("stretched",!1)],Poe=Si(Eoe),Roe=Fv.concat([Hs("border",!1),Hs("sandboxed",!0),Hs("streamContent",!1),Hs("transparent",!0)]),Yj=Si(Roe),Loe=ne,Ioe=Si(VS.concat([jo("height")])),Doe=Si([Pr("url"),Ho("zoom"),Ho("cachedWidth"),Ho("cachedHeight")]),pL=Fv.concat([jo("inputMode"),jo("placeholder"),Hs("maximized",!1),P0]),mL=Si(pL),Boe=ne,Xj=l=>[pf,LP,l,rl("align","start",["start","center","end"]),jo("for")],zoe=[sx,Kk],Noe=[sx,Go("items",vn("items",()=>gL))],gL=rd([Si(zoe),Si(Noe)]),Foe=Fv.concat([Go("items",gL),P0]),$oe=Si(Foe),vO=ne,Gj=Fv.concat([Bo("items",[sx,Kk]),$s("size",1),P0]),Voe=Si(Gj),g8=ne,US=Fv.concat([Hs("constrain",!0),P0]),v8=Si(US),vL=Si([Pr("width"),Pr("height")]),y8=VS.concat([LP,$s("min",0),$s("max",0)]),wm=Si(y8),b8=le,Kj=[pf,Go("header",ne),Go("cells",lc(ne))],Jj=Si(Kj),Uoe=Fv.concat([jo("placeholder"),Hs("maximized",!1),P0]),joe=Si(Uoe),l_=ne,Qoe=[Gr("type",["directory","leaf"]),Qz,Pr("id"),Wi("menu",OV)],yL=Si(Qoe),jS=Qoe.concat([Go("children",vn("children",()=>Ne("type",{directory:mT,leaf:yL})))]),mT=Si(jS),eQ=Ne("type",{directory:mT,leaf:yL}),Hoe=[pf,Go("items",eQ),ai("onLeafAction"),ai("onToggleExpand"),mt("defaultExpandedIds",[],ne),jo("defaultSelectedId")],Zoe=Si(Hoe),qoe=Fv.concat([rl("filetype","file",["image","media","file"]),P0,jo("picker_text")]),Woe=Si(qoe),QS=Si([Kk,IP]),tQ=l=>Ln("items","items",su(),lc(rt(N=>Rt(`Checking item of ${l}`,bL,N).fold(W=>aa.error(dn(W)),W=>aa.value(W))))),bL=Pc(()=>Ne("type",{alertbanner:mO,bar:Si(jj(tQ("bar"))),button:woe,checkbox:Soe,colorinput:m8,colorpicker:Coe,dropzone:qj,grid:Si(hL(tQ("grid"))),iframe:Yj,input:mL,listbox:$oe,selectbox:Voe,sizeinput:v8,slider:wm,textarea:joe,urlinput:Woe,customeditor:Aoe,htmlpanel:Poe,imagepreview:Ioe,collection:uL,label:Si(Xj(tQ("label"))),table:Jj,tree:Zoe,panel:Xoe})),Yoe=[pf,Ar("classes",[]),Go("items",bL)],Xoe=Si(Yoe),Goe=[BP("tab"),Qz,Go("items",bL)],Koe=[pf,Bo("tabs",Goe)],gT=Si(Koe),Joe=hT,eie=boe,nQ=Si([Pr("title"),In("body",Ne("type",{panel:Xoe,tabpanel:gT})),Ts("size","normal"),mt("buttons",[],eie),Ar("initialData",{}),ys("onAction",v),ys("onChange",v),ys("onSubmit",v),ys("onClose",v),ys("onCancel",v),ys("onTabChange",v)]),tie=l=>Rt("dialog",nQ,l),hde=Si([Gr("type",["cancel","custom"]),...Joe]),r=Si([Pr("title"),Pr("url"),Ho("height"),Ho("width"),Hi("buttons",hde),ys("onAction",v),ys("onCancel",v),ys("onClose",v),ys("onMessage",v)]),g=l=>Rt("dialog",r,l),B=l=>u(l)?[l].concat(ve(ot(l),B)):i(l)?ve(l,B):[],H=l=>n(l.type)&&n(l.name),oe={checkbox:koe,colorinput:gO,colorpicker:Qj,dropzone:Wj,input:Boe,iframe:Loe,imagepreview:Doe,selectbox:g8,sizeinput:vL,slider:b8,listbox:vO,size:vL,textarea:l_,urlinput:QS,customeditor:Moe,collection:pT,togglemenuitem:goe},be=l=>I.from(oe[l.type]),Le=l=>me(B(l),H),Ke=l=>{const N=Le(l),W=ve(N,fe=>be(fe).fold(()=>[],Se=>[In(fe.name,Se)]));return Si(W)},ut=l=>{var N;const W=Mt(tie(l)),fe=Ke(l),Se=(N=l.initialData)!==null&&N!==void 0?N:{};return{internalDialog:W,dataValidator:fe,initialData:Se}},At={open:(l,N)=>{const W=ut(N);return l(W.internalDialog,W.initialData,W.dataValidator)},openUrl:(l,N)=>{const W=Mt(g(N));return l(W)},redial:l=>ut(l)};var un=Object.freeze({__proto__:null,events:(l,N)=>{const W=(fe,Se)=>{l.updateState.each(Be=>{const qe=Be(fe,Se);N.set(qe)}),l.renderComponents.each(Be=>{const qe=Be(Se,N.get());(l.reuseDom?X3:Y3)(fe,qe)})};return Rl([Lo(yp(),(fe,Se)=>{const Be=Se;if(!Be.universal){const qe=l.channel;X(Be.channels,qe)&&W(fe,Be.data)}}),wc((fe,Se)=>{l.initialData.each(Be=>{W(fe,Be)})})])}}),Qn=Object.freeze({__proto__:null,getState:(l,N,W)=>W}),rr=[pn("channel"),Yo("renderComponents"),Yo("updateState"),Yo("initialData"),Hs("reuseDom",!0)],ur=Object.freeze({__proto__:null,init:()=>{const l=wi(I.none()),N=()=>l.set(I.none());return{readState:()=>l.get().getOr("none"),get:l.get,set:l.set,clear:N}}});const Tr=id({fields:rr,name:"reflecting",active:un,apis:Qn,state:ur}),Wr=l=>{const N=[],W={};return We(l,(fe,Se)=>{fe.fold(()=>{N.push(Se)},Be=>{W[Se]=Be})}),N.length>0?aa.error(N):aa.value(W)},Qr=(l,N,W,fe)=>{const Se=ml(Y2.sketch(Be=>({dom:{tag:"div",classes:["tox-form"].concat(l.classes)},components:re(l.items,qe=>WJ(Be,qe,N,W,fe))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[Se.asSpec()]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),P1.memento(Se),CK(Se,{postprocess:Be=>Wr(Be).fold(qe=>(console.error(qe),{}),R)}),Ka("dialog-body-panel",[Lo(Dp(),(Be,qe)=>{Be.getSystem().broadcastOn([SA],{newFocus:I.some(qe.event.target)})})])])}},lo=(l,N)=>({uid:l.uid,dom:l.dom,components:l.components,events:d6(l.action),behaviours:Rd(l.tabButtonBehaviours,[Ra.config({}),ha.config({mode:"execution",useSpace:!0,useEnter:!0}),Ei.config({store:{mode:"memory",initialValue:l.value}})]),domModification:l.domModification}),Zo=Qp({name:"TabButton",configFields:[Ar("uid",void 0),pn("value"),Ln("dom","dom",_u(()=>({attributes:{role:"tab",id:Li("aria"),"aria-selected":"false"}})),Ut()),Yo("action"),Ar("domModification",{}),Pd("tabButtonBehaviours",[Ra,ha,Ei]),pn("view")],factory:lo}),li=x([pn("tabs"),pn("dom"),Ar("clickToDismiss",!1),Pd("tabbarBehaviours",[ta,ha]),h0(["tabClass","selectedClass"])]),Mi=U3({factory:Zo,name:"tabs",unit:"tab",overrides:l=>{const N=(fe,Se)=>{ta.dehighlight(fe,Se),sa(fe,W1(),{tabbar:fe,button:Se})},W=(fe,Se)=>{ta.highlight(fe,Se),sa(fe,UO(),{tabbar:fe,button:Se})};return{action:fe=>{const Se=fe.getSystem().getByUid(l.uid).getOrDie(),Be=ta.isHighlighted(Se,fe);(()=>Be&&l.clickToDismiss?N:Be?v:W)()(Se,fe)},domModification:{classes:[l.markers.tabClass]}}}}),Co=x([Mi]),yo=(l,N,W,fe)=>({uid:l.uid,dom:l.dom,components:N,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Rd(l.tabbarBehaviours,[ta.config({highlightClass:l.markers.selectedClass,itemClass:l.markers.tabClass,onHighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","true")},onDehighlight:(Se,Be)=>{Cr(Be.element,"aria-selected","false")}}),ha.config({mode:"flow",getInitial:Se=>ta.getHighlighted(Se).map(Be=>Be.element),selector:"."+l.markers.tabClass,executeOnMove:!0})])}),Vo=Zh({name:"Tabbar",configFields:li(),partFields:Co(),factory:yo}),Fi=(l,N)=>({uid:l.uid,dom:l.dom,behaviours:Rd(l.tabviewBehaviours,[Fa.config({})]),domModification:{attributes:{role:"tabpanel"}}}),la=Qp({name:"Tabview",configFields:[Pd("tabviewBehaviours",[Fa])],factory:Fi}),bs=x([Ar("selectFirst",!0),Ss("onChangeTab"),Ss("onDismissTab"),Ar("tabs",[]),Pd("tabSectionBehaviours",[])]),Ms=mh({factory:Vo,schema:[pn("dom"),si("markers",[pn("tabClass"),pn("selectedClass")])],name:"tabbar",defaults:l=>({tabs:l.tabs})}),wl=mh({factory:la,name:"tabview"}),Vl=x([Ms,wl]),Uu=(l,N,W,fe)=>{const Se=qe=>{const ft=Ei.getValue(qe);Jo(qe,l,"tabview").each(yt=>{ce(l.tabs,Ht=>Ht.value===ft).each(Ht=>{const fn=Ht.view();Eo(qe.element,"id").each(Rn=>{Cr(yt.element,"aria-labelledby",Rn)}),Fa.set(yt,fn),l.onChangeTab(yt,qe,fn)})})},Be=(qe,ft)=>{Jo(qe,l,"tabbar").each(yt=>{ft(yt).each(Bm)})};return{uid:l.uid,dom:l.dom,components:N,behaviours:Aw(l.tabSectionBehaviours),events:Rl(ye([l.selectFirst?[wc((qe,ft)=>{Be(qe,ta.getFirst)})]:[],[Lo(UO(),(qe,ft)=>{const yt=ft.event.button;Se(yt)}),Lo(W1(),(qe,ft)=>{const yt=ft.event.button;l.onDismissTab(qe,yt)})]])),apis:{getViewItems:qe=>Jo(qe,l,"tabview").map(ft=>Fa.contents(ft)).getOr([]),showTab:(qe,ft)=>{Be(qe,Lt=>{const Ht=ta.getCandidates(Lt);return ce(Ht,Rn=>Ei.getValue(Rn)===ft).filter(Rn=>!ta.isHighlighted(Lt,Rn))})}}}},Wf=Zh({name:"TabSection",configFields:bs(),partFields:Vl(),factory:Uu,apis:{getViewItems:(l,N)=>l.getViewItems(N),showTab:(l,N,W)=>{l.showTab(N,W)}}}),ic=(l,N,W)=>re(l,(fe,Se)=>{Fa.set(W,l[Se].view());const Be=N.dom.getBoundingClientRect();return Fa.set(W,[]),Be.height}),vi=l=>Qe(ze(l,(N,W)=>N>W?-1:N{const fe=Hn(l).dom,Se=Fl(l,".tox-dialog-wrap").getOr(l),Be=Di(Se,"position")==="fixed";let qe;Be?qe=Math.max(fe.clientHeight,window.innerHeight):qe=Math.max(fe.offsetHeight,fe.scrollHeight);const ft=il(N),Lt=N.dom.offsetLeft>=W.dom.offsetLeft+_s(W)?Math.max(il(W),ft):ft,Ht=parseInt(Di(l,"margin-top"),10)||0,fn=parseInt(Di(l,"margin-bottom"),10)||0,Bn=il(l)+Ht+fn-Lt;return qe-Bn},ol=(l,N)=>{Qe(l).each(W=>Wf.showTab(N,W.value))},Ti=(l,N)=>{xr(l,"height",N+"px"),xr(l,"flex-basis",N+"px")},pa=(l,N,W)=>{Fl(l,'[role="dialog"]').each(fe=>{qa(fe,'[role="tablist"]').each(Se=>{W.get().map(Be=>(xr(N,"height","0"),xr(N,"flex-basis","0"),Math.min(Be,na(fe,N,Se)))).each(Be=>{Ti(N,Be)})})})},ps=l=>qa(l,'[role="tabpanel"]'),Ci=l=>{const N=ds();return{extraEvents:[wc(Se=>{const Be=Se.element;ps(Be).each(qe=>{xr(qe,"visibility","hidden"),Se.getSystem().getByDom(qe).toOptional().each(ft=>{const yt=ic(l,qe,ft);vi(yt).fold(N.clear,N.set)}),pa(Be,qe,N),zi(qe,"visibility"),ol(l,Se),requestAnimationFrame(()=>{pa(Be,qe,N)})})}),Lo(Dm(),Se=>{const Be=Se.element;ps(Be).each(qe=>{pa(Be,qe,N)})}),Lo(A7,(Se,Be)=>{const qe=Se.element;ps(qe).each(ft=>{const yt=um(kr(ft));xr(ft,"visibility","hidden");const Lt=Ia(ft,"height").map(Rn=>parseInt(Rn,10));zi(ft,"height"),zi(ft,"flex-basis");const Ht=ft.dom.getBoundingClientRect().height;Lt.forall(Rn=>Ht>Rn)?(N.set(Ht),pa(qe,ft,N)):Lt.each(Rn=>{Ti(ft,Rn)}),zi(ft,"visibility"),yt.each(Md)})})],selectFirst:!1}},ms="send-data-to-section",Es="send-data-to-view",Bd=(l,N,W,fe)=>{const Se=wi({}),Be=Ht=>{const fn=Ei.getValue(Ht),Rn=Wr(fn).getOr({}),Bn=Se.get(),er=ws(Bn,Rn);Se.set(er)},qe=Ht=>{const fn=Se.get();Ei.setValue(Ht,fn)},ft=wi(null),yt=re(l.tabs,Ht=>({value:Ht.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Po(W.shared.providers.translate(Ht.title))],view:()=>[Y2.sketch(fn=>({dom:{tag:"div",classes:["tox-form"]},components:re(Ht.items,Rn=>WJ(fn,Rn,N,W,fe)),formBehaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)}),Ka("TabView.form.events",[wc(qe),xg(Be)]),Ad.config({channels:ua([{key:ms,value:{onReceive:Be}},{key:Es,value:{onReceive:qe}}])})])}))]})),Lt=Ci(yt);return Wf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ht,fn,Rn)=>{const Bn=Ei.getValue(fn);sa(Ht,pF,{name:Bn,oldName:ft.get()}),ft.set(Bn)},tabs:yt,components:[Wf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Vo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:ei([Rc.config({})])}),Wf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Lt.selectFirst,tabSectionBehaviours:ei([Ka("tabpanel",Lt.extraEvents),ha.config({mode:"acyclic"}),Xs.config({find:Ht=>Qe(Wf.getViewItems(Ht))}),X2(I.none(),Ht=>(Ht.getSystem().broadcastOn([ms],{}),Se.get()),(Ht,fn)=>{Se.set(fn),Ht.getSystem().broadcastOn([Es],{})})])})},Cl=(l,N,W,fe,Se,Be)=>{const qe=Lt=>{const Ht=Lt.body;switch(Ht.type){case"tabpanel":return[Bd(Ht,Lt.initialData,fe,Be)];default:return[Qr(Ht,Lt.initialData,fe,Be)]}},ft=(Lt,Ht)=>I.some({isTabPanel:()=>Ht.body.type==="tabpanel"}),yt={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...W.map(Lt=>({id:Lt})).getOr({}),...Se?yt:{}}},components:[],behaviours:ei([P1.childAt(0),Tr.config({channel:`${s9}-${N}`,updateState:ft,renderComponents:qe,initialData:l})])}},dd=(l,N,W,fe,Se,Be)=>Cl(l,N,I.some(W),fe,Se,Be),z0=(l,N,W,fe)=>{const Se=Cl(l,N,I.none(),W,!1,fe);return fd.parts.body(Se)},$v=l=>{const N={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[i$(I.none(),{dom:{tag:"iframe",attributes:{src:l.url}},behaviours:ei([Rc.config({}),Ra.config({})])})]}],behaviours:ei([ha.config({mode:"acyclic",useTabstopAt:P(E5)})])};return fd.parts.body(N)},Cp=$w.deviceType.isTouch(),Om=(l,N)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[l,N]}),Hg=(l,N)=>fd.parts.close(Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":N.translate("Close")}},action:l,buttonBehaviours:ei([Rc.config({})])})),Sm=()=>fd.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),Zg=(l,N)=>fd.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ev(`

    ${mP(N.translate(l))}

    `)}]}]}),ca=l=>fd.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:l}),Zs=(l,N)=>[Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:l}),Iv.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:N})],ru=l=>{const N="tox-dialog",W=N+"-wrap",fe=W+"__backdrop",Se=N+"__disable-scroll";return fd.sketch({lazySink:l.lazySink,onEscape:Be=>(l.onEscape(Be),I.some(!0)),useTabstopAt:Be=>!E5(Be),firstTabstop:l.firstTabstop,dom:{tag:"div",classes:[N].concat(l.extraClasses),styles:{position:"relative",...l.extraStyles}},components:[l.header,l.body,...l.footer.toArray()],parts:{blocker:{dom:Ev(`
    `),components:[{dom:{tag:"div",classes:Cp?[fe,fe+"--opaque"]:[fe]}}]}},dragBlockClass:W,modalBehaviours:ei([Ra.config({}),Ka("dialog-events",l.dialogEvents.concat([cy(Dp(),(Be,qe)=>{I1.isBlocked(Be)?v():ha.focusIn(Be)}),Lo(q1(),(Be,qe)=>{Be.getSystem().broadcastOn([SA],{newFocus:qe.event.newFocus})})])),Ka("scroll-lock",[wc(()=>{uc(Lr(),Se)}),xg(()=>{Zc(Lr(),Se)})]),...l.extraBehaviours]),eventOrder:{[Bp()]:["dialog-events"],[Sh()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...l.eventOrder}})},ju=l=>Lh.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":l.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:ei([Rc.config({}),Vu.config(l.tooltips.getConfig({tooltipText:l.translate("Close")}))]),components:[Bg("close",{tag:"span",classes:["tox-icon"]},l.icons)],action:N=>{Za(N,cx)}}),Pf=(l,N,W,fe)=>{const Se=Be=>[Po(fe.translate(Be.title))];return{dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...W.map(Be=>({id:Be})).getOr({})}},components:[],behaviours:ei([Tr.config({channel:`${s$}-${N}`,initialData:l,renderComponents:Se})])}},Gd=()=>({dom:Ev('
    ')}),Rf=(l,N,W,fe)=>Iv.sketch({dom:Ev('
    '),components:[Pf(l,N,I.some(W),fe),Gd(),ju(fe)],containerBehaviours:ei([hO.config({mode:"mouse",blockerClass:"blocker",getTarget:Se=>Sc(Se,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),Lf=(l,N,W)=>{const fe=fd.parts.title(Pf(l,N,I.none(),W)),Se=fd.parts.draghandle(Gd()),Be=fd.parts.close(ju(W)),qe=[fe].concat(l.draggable?[Se]:[]).concat([Be]);return Iv.sketch({dom:Ev('
    '),components:qe})},fp=(l,N,W)=>Lf({title:W.shared.providers.translate(l),draggable:W.dialog.isDraggableModal()},N,W.shared.providers),N0=(l,N,W,fe)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":W.translate(l)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${fe.getOr(0)}px`,position:"absolute"}},behaviours:N,components:[{dom:Ev('
    ')}]}),F0=(l,N,W)=>({onClose:()=>W.closeWindow(),onBlock:fe=>{const Se=qa(l().element,".tox-dialog__header").map(Be=>il(Be));fd.setBusy(l(),(Be,qe)=>N0(fe.message,qe,N,Se))},onUnblock:()=>{fd.setIdle(l())}}),$0="tox-dialog--fullscreen",rg="tox-dialog--width-lg",Qy="tox-dialog--width-md",gx=l=>{switch(l){case"large":return I.some(rg);case"medium":return I.some(Qy);default:return I.none()}},yO=(l,N)=>{const W=Nt.fromDom(N.element.dom);rp(W,$0)||(Oc(W,[rg,Qy]),gx(l).each(fe=>uc(W,fe)))},x8=(l,N)=>{const W=Nt.fromDom(l.element.dom),fe=qc(W),Se=ce(fe,Be=>Be===rg||Be===Qy).or(gx(N));WO(W,[$0,...Se.toArray()])},Hy=(l,N,W)=>ka(ru({...l,firstTabstop:1,lazySink:W.shared.getSink,extraBehaviours:[_A({}),...l.extraBehaviours],onEscape:fe=>{Za(fe,cx)},dialogEvents:N,eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Sh()]:["scroll-lock",Tr.name(),"messages","dialog-events","alloy.base.behaviour"],[zp()]:["alloy.base.behaviour","dialog-events","messages",Tr.name(),"scroll-lock"]}})),HS=(l,N={})=>{const W=fe=>{const Se=re(fe.items,Be=>{const qe=Ge(N,Be.name).getOr(wi(!1));return{...Be,storage:qe}});return{...fe,items:Se}};return re(l,fe=>fe.type==="menu"?W(fe):fe)},xL=l=>se(l,(N,W)=>W.type==="menu"?se(W.items,(Se,Be)=>(Se[Be.name]=Be.storage,Se),N):N,{}),qh=(l,N)=>[mb(Dp(),DK),l(vS,(W,fe,Se,Be)=>{um(kr(Be.element)).fold(v,m1),N.onClose(),fe.onClose()}),l(cx,(W,fe,Se,Be)=>{fe.onCancel(W),Za(Be,vS)}),Lo(C7,(W,fe)=>N.onUnblock()),Lo(T7,(W,fe)=>N.onBlock(fe.event))],bO=(l,N)=>{const W=(Se,Be)=>Lo(Se,(qe,ft)=>{fe(qe,(yt,Lt)=>{Be(l(),yt,ft.event,qe)})}),fe=(Se,Be)=>{Tr.getState(Se).get().each(qe=>{Be(qe,Se)})};return[...qh(W,N),W(Ny,(Se,Be,qe)=>{Be.onAction(Se,{name:qe.name})})]},_L=(l,N,W)=>{const fe=(Be,qe)=>Lo(Be,(ft,yt)=>{Se(ft,(Lt,Ht)=>{qe(l(),Lt,yt.event,ft)})}),Se=(Be,qe)=>{Tr.getState(Be).get().each(ft=>{qe(ft.internalDialog,Be)})};return[...qh(fe,N),fe(v5,(Be,qe)=>qe.onSubmit(Be)),fe(xm,(Be,qe,ft)=>{qe.onChange(Be,{name:ft.name})}),fe(Ny,(Be,qe,ft,yt)=>{const Lt=()=>yt.getSystem().isConnected()?ha.focusIn(yt):void 0,Ht=Bn=>zo(Bn,"disabled")||Eo(Bn,"aria-disabled").exists(er=>er==="true"),fn=kr(yt.element),Rn=um(fn);qe.onAction(Be,{name:ft.name,value:ft.value}),um(fn).fold(Lt,Bn=>{Ht(Bn)||Rn.exists(er=>$o(Bn,er)&&Ht(er))?Lt():W().toOptional().filter(er=>!$o(er.element,Bn)).each(Lt)})}),fe(pF,(Be,qe,ft)=>{qe.onTabChange(Be,{newTabName:ft.name,oldTabName:ft.oldName})}),xg(Be=>{const qe=l();Ei.setValue(Be,qe.getData())})]},wL=(l,N)=>j5(l,l.type,N),Zy=(l,N,W)=>ce(N,fe=>fe.name===W).bind(fe=>fe.memento.getOpt(l)),vT=(l,N)=>{const W=N.map(ft=>ft.footerButtons).getOr([]),fe=ee(W,ft=>ft.align==="start"),Se=(ft,yt)=>Iv.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ft}`]},components:re(yt,Lt=>Lt.memento.asSpec())}),Be=Se("start",fe.pass),qe=Se("end",fe.fail);return[Be,qe]},ho=(l,N,W)=>{const fe=(Se,Be)=>{const qe=re(Be.buttons,yt=>{const Lt=ml(wL(yt,W));return{name:yt.name,align:yt.align,memento:Lt}}),ft=yt=>Zy(Se,qe,yt);return I.some({lookupByName:ft,footerButtons:qe})};return{dom:Ev(''),components:[],behaviours:ei([Tr.config({channel:`${l$}-${N}`,initialData:l,updateState:fe,renderComponents:vT})])}},bo=(l,N,W)=>ho(l,N,W),di=(l,N,W)=>fd.parts.footer(ho(l,N,W)),ri=(l,N)=>{if(l.getRoot().getSystem().isConnected()){const fe=Xs.getCurrent(l.getFormWrapper()).getOr(l.getFormWrapper());return Y2.getField(fe,N).orThunk(()=>l.getFooter().bind(qe=>Tr.getState(qe).get()).bind(qe=>qe.lookupByName(N)))}else return I.none()},Ta=(l,N)=>{const W=l.getRoot();return Tr.getState(W).get().map(fe=>Mt(Rt("data",fe.dataValidator,N))).getOr(N)},zs=(l,N,W)=>{const fe=er=>{const cr=l.getRoot();cr.getSystem().isConnected()&&er(cr)},Bn={getData:()=>{const er=l.getRoot(),cr=er.getSystem().isConnected()?l.getFormWrapper():er,Xr=Ei.getValue(cr),br=Ue(W,Fr=>Fr.get());return{...Xr,...br}},setData:er=>{fe(cr=>{const Xr=Bn.getData(),br=ws(Xr,er),Fr=Ta(l,br),jr=l.getFormWrapper();Ei.setValue(jr,Fr),We(W,(Ro,ko)=>{ht(br,ko)&&Ro.set(br[ko])})})},setEnabled:(er,cr)=>{ri(l,er).each(cr?he.enable:he.disable)},focus:er=>{ri(l,er).each(Ra.focus)},block:er=>{if(!n(er))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");fe(cr=>{sa(cr,T7,{message:er})})},unblock:()=>{fe(er=>{Za(er,C7)})},showTab:er=>{fe(cr=>{const Xr=l.getBody();Tr.getState(Xr).get().exists(Fr=>Fr.isTabPanel())&&Xs.getCurrent(Xr).each(Fr=>{Wf.showTab(Fr,er)})})},redial:er=>{fe(cr=>{const Xr=l.getId(),br=N(er),Fr=HS(br.internalDialog.buttons,W);cr.getSystem().broadcastOn([`${P5}-${Xr}`],br),cr.getSystem().broadcastOn([`${s$}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${s9}-${Xr}`],br.internalDialog),cr.getSystem().broadcastOn([`${l$}-${Xr}`],{...br.internalDialog,buttons:Fr}),Bn.setData(br.initialData)})},close:()=>{fe(er=>{Za(er,vS)})},toggleFullscreen:l.toggleFullscreen};return Bn},Su=(l,N,W)=>{const fe=Li("dialog"),Se=l.internalDialog,Be=fp(Se.title,fe,W),qe=wi(Se.size),ft=jr=>ri(br,jr),yt=gx(qe.get()).toArray(),Lt=(jr,Ro)=>(qe.set(Ro.internalDialog.size),yO(Ro.internalDialog.size,jr),I.some(Ro)),Ht=z0({body:Se.body,initialData:Se.initialData},fe,W,ft),fn=HS(Se.buttons),Rn=xL(fn),Bn=Ot(fn.length!==0,di({buttons:fn},fe,W)),er=_L(()=>Fr,F0(()=>Xr,W.shared.providers,N),W.shared.getSink),cr={id:fe,header:Be,body:Ht,footer:Bn,extraClasses:yt,extraBehaviours:[Tr.config({channel:`${P5}-${fe}`,updateState:Lt,initialData:l})],extraStyles:{}},Xr=Hy(cr,er,W),br=(()=>{const jr=()=>{const ko=fd.getBody(Xr);return Xs.getCurrent(ko).getOr(ko)},Ro=()=>{x8(Xr,qe.get())};return{getId:x(fe),getRoot:x(Xr),getBody:()=>fd.getBody(Xr),getFooter:()=>fd.getFooter(Xr),getFormWrapper:jr,toggleFullscreen:Ro}})(),Fr=zs(br,N.redial,Rn);return{dialog:Xr,instanceApi:Fr}},V0=(l,N,W,fe=!1,Se)=>{const Be=Li("dialog"),qe=Li("dialog-label"),ft=Li("dialog-content"),yt=l.internalDialog,Lt=$i=>ri(Pi,$i),Ht=wi(yt.size),fn=gx(Ht.get()).toArray(),Rn=($i,yi)=>(Ht.set(yi.internalDialog.size),yO(yi.internalDialog.size,$i),Se(),I.some(yi)),Bn=ml(Rf({title:yt.title,draggable:!0},Be,qe,W.shared.providers)),er=ml(dd({body:yt.body,initialData:yt.initialData},Be,ft,W,fe,Lt)),cr=HS(yt.buttons),Xr=xL(cr),br=Ot(cr.length!==0,ml(bo({buttons:cr},Be,W))),Fr=_L(()=>Ao,{onBlock:$i=>{I1.block(ko,(yi,Xi)=>{const ks=Bn.getOpt(ko).map(Ic=>il(Ic.element));return N0($i.message,Xi,W.shared.providers,ks)})},onUnblock:()=>{I1.unblock(ko)},onClose:()=>N.closeWindow()},W.shared.getSink),jr="tox-dialog-inline",Ro=va().os,ko=ka({dom:{tag:"div",classes:["tox-dialog",jr,...fn],attributes:{role:"dialog",...Ro.isMacOS()?{"aria-label":yt.title}:{"aria-labelledby":qe}}},eventOrder:{[yp()]:[Tr.name(),Ad.name()],[Bp()]:["execute-on-form"],[Sh()]:["reflecting","execute-on-form"]},behaviours:ei([ha.config({mode:"cyclic",onEscape:$i=>(Za($i,vS),I.some(!0)),useTabstopAt:$i=>!E5($i)&&(vr($i)!=="button"||Nr($i,"disabled")!=="disabled"),firstTabstop:1}),Tr.config({channel:`${P5}-${Be}`,updateState:Rn,initialData:l}),Ra.config({}),Ka("execute-on-form",Fr.concat([cy(Dp(),($i,yi)=>{ha.focusIn($i)}),Lo(q1(),($i,yi)=>{$i.getSystem().broadcastOn([SA],{newFocus:yi.event.newFocus})})])),I1.config({getRoot:()=>I.some(ko)}),Fa.config({}),_A({})]),components:[Bn.asSpec(),er.asSpec(),...br.map($i=>$i.asSpec()).toArray()]}),_i=()=>{x8(ko,Ht.get())},Pi={getId:x(Be),getRoot:x(ko),getFooter:()=>br.map($i=>$i.get(ko)),getBody:()=>er.get(ko),getFormWrapper:()=>{const $i=er.get(ko);return Xs.getCurrent($i).getOr($i)},toggleFullscreen:_i},Ao=zs(Pi,N.redial,Xr);return{dialog:ko,instanceApi:Ao}};var ZS=tinymce.util.Tools.resolve("tinymce.util.URI");const nie=l=>{const N=qe=>{l.getSystem().isConnected()&&qe(l)};return{block:qe=>{if(!n(qe))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");N(ft=>{sa(ft,T7,{message:qe})})},unblock:()=>{N(qe=>{Za(qe,C7)})},close:()=>{N(qe=>{Za(qe,vS)})},sendMessage:qe=>{N(ft=>{ft.getSystem().broadcastOn([c$],qe)})}}},_8=["insertContent","setContent","execCommand","close","block","unblock"],qy=l=>u(l)&&_8.indexOf(l.mceAction)!==-1,rQ=l=>!qy(l)&&u(l)&&ht(l,"mceAction"),oQ=(l,N,W)=>{switch(W.mceAction){case"insertContent":l.insertContent(W.content);break;case"setContent":l.setContent(W.content);break;case"execCommand":const fe=w(W.ui)?W.ui:!1;l.execCommand(W.cmd,fe,W.value);break;case"close":N.close();break;case"block":N.block(W.message);break;case"unblock":N.unblock();break}},iQ=(l,N,W,fe)=>{const Se=Li("dialog"),Be=fp(l.title,Se,fe),qe=$v(l),ft=l.buttons.bind(jr=>jr.length===0?I.none():I.some(di({buttons:jr},Se,fe))),yt=bO(()=>Fr,F0(()=>br,fe.shared.providers,N)),Lt={...l.height.fold(()=>({}),jr=>({height:jr+"px","max-height":jr+"px"})),...l.width.fold(()=>({}),jr=>({width:jr+"px","max-width":jr+"px"}))},Ht=l.width.isNone()&&l.height.isNone()?["tox-dialog--width-lg"]:[],fn=new ZS(l.url,{base_uri:new ZS(window.location.href)}),Rn=`${fn.protocol}://${fn.host}${fn.port?":"+fn.port:""}`,Bn=Ol(),er=(jr,Ro)=>I.some(Ro),cr=[Tr.config({channel:`${P5}-${Se}`,updateState:er,initialData:l}),Ka("messages",[wc(()=>{const jr=ud(Nt.fromDom(window),"message",Ro=>{if(fn.isSameOrigin(new ZS(Ro.raw.origin))){const ko=Ro.raw.data;qy(ko)?oQ(W,Fr,ko):rQ(ko)&&l.onMessage(Fr,ko)}});Bn.set(jr)}),xg(Bn.clear)]),Ad.config({channels:{[c$]:{onReceive:(jr,Ro)=>{qa(jr.element,"iframe").each(ko=>{const _i=ko.dom.contentWindow;a(_i)&&_i.postMessage(Ro,Rn)})}}}})],br=Hy({id:Se,header:Be,body:qe,footer:ft,extraClasses:Ht,extraBehaviours:cr,extraStyles:Lt},yt,fe),Fr=nie(br);return{dialog:br,instanceApi:Fr}},aQ=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=()=>{fd.hide(Lt),Se()},qe=ml(j5({name:"close-alert",text:"OK",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"cancel",l)),ft=Sm(),yt=Hg(Be,N.providers),Lt=ka(ru({lazySink:()=>N.getSink(),header:Om(ft,yt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[qe.asSpec()]))),onEscape:Be,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,Be)],eventOrder:{}}));fd.show(Lt);const Ht=qe.get(Lt);Ra.focus(Ht)}}},rie=l=>{const N=l.shared;return{open:(fe,Se)=>{const Be=Rn=>{fd.hide(Ht),Se(Rn)},qe=ml(j5({name:"yes",text:"Yes",primary:!0,buttonType:I.some("primary"),align:"end",enabled:!0,icon:I.none()},"submit",l)),ft=j5({name:"no",text:"No",primary:!1,buttonType:I.some("secondary"),align:"end",enabled:!0,icon:I.none()},"cancel",l),yt=Sm(),Lt=Hg(()=>Be(!1),N.providers),Ht=ka(ru({lazySink:()=>N.getSink(),header:Om(yt,Lt),body:Zg(fe,N.providers),footer:I.some(ca(Zs([],[ft,qe.asSpec()]))),onEscape:()=>Be(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Lo(cx,()=>Be(!1)),Lo(v5,()=>Be(!0))],eventOrder:{}}));fd.show(Ht);const fn=qe.get(Ht);Ra.focus(fn)}}},Ps=(l,N)=>Mt(Rt("data",N,l)),xo=l=>f5(l,".tox-alert-dialog")||f5(l,".tox-confirm-dialog"),Ji=(l,N,W)=>N&&W?[]:[fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(l.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:fe=>ix(l,fe.element).map(Be=>({bounds:Hw(Be),optScrollEnv:I.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:Tc(Be.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})],Ba=l=>{const N=l.editor,W=Qw(N),fe=aQ(l.backstages.dialog),Se=rie(l.backstages.dialog),Be=(er,cr,Xr)=>{if(!y(cr)){if(cr.inline==="toolbar")return Lt(er,l.backstages.popup.shared.anchors.inlineDialog(),Xr,cr);if(cr.inline==="bottom")return Ht(er,l.backstages.popup.shared.anchors.inlineBottomDialog(),Xr,cr);if(cr.inline==="cursor")return Lt(er,l.backstages.popup.shared.anchors.cursor(),Xr,cr)}return yt(er,Xr)},qe=(er,cr)=>ft(er,cr),ft=(er,cr)=>{const Xr=br=>{const Fr=iQ(br,{closeWindow:()=>{fd.hide(Fr.dialog),cr(Fr.instanceApi)}},N,l.backstages.dialog);return fd.show(Fr.dialog),Fr.instanceApi};return At.openUrl(Xr,er)},yt=(er,cr)=>{const Xr=(br,Fr,jr)=>{const Ro=Fr,_i=Su({dataValidator:jr,initialData:Ro,internalDialog:br},{redial:At.redial,closeWindow:()=>{fd.hide(_i.dialog),cr(_i.instanceApi)}},l.backstages.dialog);return fd.show(_i.dialog),_i.instanceApi.setData(Ro),_i.instanceApi};return At.open(Xr,er)},Lt=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),(!W||!Ao)&&fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),...Ji(N,W,Ao)]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>{const hl=N.inline?Lr():Nt.fromDom(N.getContainer()),Ui=cl(hl);return I.some(Ui)};return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),(!W||!Ao)&&(fc.refresh(ks),N.on("ResizeEditor",yi)),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)},Ht=(er,cr,Xr,br)=>{const Fr=(jr,Ro,ko)=>{const _i=Ps(Ro,ko),Pi=ds(),Ao=l.backstages.popup.shared.header.isPositionedAtTop(),$i={dataValidator:ko,initialData:_i,internalDialog:jr},yi=()=>Pi.on(hl=>{Xc.reposition(hl),fc.refresh(hl)}),Xi=V0($i,{redial:At.redial,closeWindow:()=>{Pi.on(Xc.hide),N.off("ResizeEditor ScrollWindow ElementScroll",yi),Pi.clear(),Xr(Xi.instanceApi)}},l.backstages.popup,br.ariaAttrs,yi),ks=ka(Xc.sketch({lazySink:l.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:br.persistent?{event:"doNotDismissYet"}:{},...Ao?{}:{fireRepositionEventInstead:{}},inlineBehaviours:ei([Ka("window-manager-inline-events",[Lo(J0(),(hl,Ui)=>{Za(Xi.dialog,cx)})]),fc.config({contextual:{lazyContext:()=>I.some(cl(Nt.fromDom(N.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:hl=>ix(N,hl.element).map(Ko=>({bounds:Hw(Ko),optScrollEnv:I.some({currentScrollTop:Ko.element.dom.scrollTop,scrollElmTop:Tc(Ko.element).top})})).getOrThunk(()=>({bounds:ts(),optScrollEnv:I.none()}))})]),isExtraPart:(hl,Ui)=>xo(Ui)}));Pi.set(ks);const Ic=()=>l.backstages.popup.shared.getSink().toOptional().bind(hl=>{const Ui=ix(N,hl.element),Ko=15,Oi=Ui.map(fa=>Hw(fa)).getOr(ts()),La=cl(Nt.fromDom(N.getContentAreaContainer())),_a=nc(La,Oi);return I.some(vs(_a.x,_a.y,_a.width,_a.height-Ko))});return Xc.showWithinBounds(ks,ea(Xi.dialog),{anchor:cr},Ic),fc.refresh(ks),N.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",yi),Xi.instanceApi.setData(_i),ha.focusIn(Xi.dialog),Xi.instanceApi};return At.open(Fr,er)};return{open:Be,openUrl:qe,alert:(er,cr)=>{fe.open(er,cr)},close:er=>{er.close()},confirm:(er,cr)=>{Se.open(er,cr)}}},mf=l=>{YB(l),_X(l),dre(l)};var Ap=()=>{zc.add("silver",l=>{mf(l);let N=()=>ts();const{dialogs:W,popups:fe,renderUI:Se}=foe(l,{getPopupSinkBounds:()=>N()}),Be=()=>{const Lt=Se();return ix(l,fe.getMothership().element).each(fn=>{N=()=>Hw(fn)}),Lt};fG.register(l,fe.backstage.shared);const qe=Ba({editor:l,backstages:{popup:fe.backstage,dialog:W.backstage}}),ft=ds(),yt=()=>wY(l,{backstage:fe.backstage},fe.getMothership(),ft);return{renderUI:Be,getWindowManagerImpl:x(qe),getNotificationManagerImpl:yt}})};Ap()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-code":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"math-equation":'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"export-pdf":'',"export-word":'',"import-word":'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"revision-history":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=p=>{let v=p;return{get:()=>v,set:C=>{v=C}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env");const f=p=>p.dispatch("ResizeEditor"),E=p=>v=>v.options.get(p),d=p=>{const v=p.options.register;v("autoresize_overflow_padding",{processor:"number",default:1}),v("autoresize_bottom_margin",{processor:"number",default:50})},s=E("min_height"),n=E("max_height"),u=E("autoresize_overflow_padding"),b=E("autoresize_bottom_margin"),i=p=>p.plugins.fullscreen&&p.plugins.fullscreen.isFullscreen(),S=(p,v)=>{const _=p.getBody();_&&(_.style.overflowY=v?"":"hidden",v||(_.scrollTop=0))},w=(p,v,_,O)=>{var C;const x=parseInt((C=p.getStyle(v,_,O))!==null&&C!==void 0?C:"",10);return isNaN(x)?0:x},y=p=>{if((p==null?void 0:p.type.toLowerCase())==="setcontent"){const v=p;return v.selection===!0||v.paste===!0}else return!1},m=(p,v,_,O)=>{var C;const x=p.dom,R=p.getDoc();if(!R)return;if(i(p)){S(p,!0);return}const M=R.documentElement,T=O?O():u(p),P=(C=s(p))!==null&&C!==void 0?C:p.getElement().offsetHeight;let A=P;const L=w(x,M,"margin-top",!0),D=w(x,M,"margin-bottom",!0);let k=M.offsetHeight+L+D+T;k<0&&(k=0);const I=p.getContainer().offsetHeight,z=p.getContentAreaContainer().offsetHeight,$=I-z;k+$>P&&(A=k+$);const Q=n(p);Q&&A>Q?(A=Q,S(p,!0)):S(p,!1);const j=v.get();if(j.set&&(p.dom.setStyles(p.getDoc().documentElement,{"min-height":0}),p.dom.setStyles(p.getBody(),{"min-height":"inherit"})),A!==j.totalHeight&&(k-T!==j.contentHeight||!j.set)){const U=A-j.totalHeight;if(x.setStyle(p.getContainer(),"height",A+"px"),v.set({totalHeight:A,contentHeight:k,set:!0}),f(p),o.browser.isSafari()&&(o.os.isMacOS()||o.os.isiOS())){const X=p.getWin();X.scrollTo(X.pageXOffset,X.pageYOffset)}p.hasFocus()&&y(_)&&p.selection.scrollIntoView(),(o.browser.isSafari()||o.browser.isChromium())&&U<0&&m(p,v,_,O)}},a=(p,v)=>{const _=()=>b(p);p.on("init",O=>{const C=u(p),x=p.dom;x.setStyles(p.getDoc().documentElement,{height:"auto"}),o.browser.isEdge()||o.browser.isIE()?x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C,"min-height":0}):x.setStyles(p.getBody(),{paddingLeft:C,paddingRight:C}),m(p,v,O,_)}),p.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",O=>{m(p,v,O,_)})},c=(p,v)=>{p.addCommand("mceAutoResize",()=>{m(p,v)})};var h=()=>{e.add("autoresize",p=>{if(d(p),p.options.isSet("resize")||p.options.set("resize",!1),!p.inline){const v=t({totalHeight:0,contentHeight:0,set:!1});c(p,v),a(p,v)}})};h()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(D,k,I)=>{const z=k==="UL"?"InsertUnorderedList":"InsertOrderedList";D.execCommand(z,!1,I===!1?null:{"list-style-type":I})},o=D=>{D.addCommand("ApplyUnorderedListStyle",(k,I)=>{e(D,"UL",I["list-style-type"])}),D.addCommand("ApplyOrderedListStyle",(k,I)=>{e(D,"OL",I["list-style-type"])})},f=D=>k=>k.options.get(D),E=D=>{const k=D.options.register;k("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),k("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})},d=f("advlist_number_styles"),s=f("advlist_bullet_styles"),n=D=>D==null,u=D=>!n(D);var b=tinymce.util.Tools.resolve("tinymce.util.Tools");class i{constructor(k,I){this.tag=k,this.value=I}static some(k){return new i(!0,k)}static none(){return i.singletonNone}fold(k,I){return this.tag?I(this.value):k()}isSome(){return this.tag}isNone(){return!this.tag}map(k){return this.tag?i.some(k(this.value)):i.none()}bind(k){return this.tag?k(this.value):i.none()}exists(k){return this.tag&&k(this.value)}forall(k){return!this.tag||k(this.value)}filter(k){return!this.tag||k(this.value)?this:i.none()}getOr(k){return this.tag?this.value:k}or(k){return this.tag?this:k}getOrThunk(k){return this.tag?this.value:k()}orThunk(k){return this.tag?this:k()}getOrDie(k){if(this.tag)return this.value;throw new Error(k??"Called getOrDie on None")}static from(k){return u(k)?i.some(k):i.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(k){this.tag&&k(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}i.singletonNone=new i(!1);const S=(D,k,I)=>{for(let z=0,$=D.length;z<$;z++){const Q=D[z];if(k(Q,z))return i.some(Q);if(I(Q,z))break}return i.none()},w=D=>/\btox\-/.test(D.className),y=(D,k)=>D.dom.isChildOf(k,D.getBody()),m=D=>k=>u(k)&&D.test(k.nodeName),a=m(/^(OL|UL|DL)$/),c=m(/^(TH|TD)$/),h=(D,k,I)=>S(k,z=>a(z)&&!w(z),c).exists(z=>z.nodeName===I&&y(D,z)),p=D=>{const k=D.dom.getParent(D.selection.getNode(),"ol,ul"),I=D.dom.getStyle(k,"listStyleType");return i.from(I)},v=(D,k)=>k!==null&&!D.dom.isEditable(k),_=(D,k)=>{const I=D.dom.getParent(k,"ol,ul,dl");return v(D,I)&&D.selection.isEditable()},O=(D,k)=>{const I=D.selection.getNode();return k({parents:D.dom.getParents(I),element:I}),D.on("NodeChange",k),()=>D.off("NodeChange",k)},C=D=>D.replace(/\-/g," ").replace(/\b\w/g,k=>k.toUpperCase()),x=D=>n(D)||D==="default"?"":D,R=(D,k)=>I=>{const z=(Q,j)=>{const U=Q.selection.getStart(!0);I.setActive(h(Q,j,k)),I.setEnabled(!_(Q,U)&&Q.selection.isEditable())};return O(D,Q=>z(D,Q.parents))},M=(D,k,I,z,$,Q)=>{D.ui.registry.addSplitButton(k,{tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:j=>{const U=b.map(Q,X=>{const te=$==="OL"?"num":"bull",Z=X==="disc"||X==="decimal"?"default":X,K=x(X),re=C(X);return{type:"choiceitem",value:K,icon:"list-"+te+"-"+Z,text:re}});j(U)},onAction:()=>D.execCommand(z),onItemAction:(j,U)=>{e(D,$,U)},select:j=>p(D).map(X=>j===X).getOr(!1),onSetup:R(D,$)})},T=(D,k,I,z,$,Q)=>{D.ui.registry.addToggleButton(k,{active:!1,tooltip:I,icon:$==="OL"?"ordered-list":"unordered-list",onSetup:R(D,$),onAction:()=>D.queryCommandState(z)||Q===""?D.execCommand(z):e(D,$,Q)})},P=(D,k,I,z,$,Q)=>{Q.length>1?M(D,k,I,z,$,Q):T(D,k,I,z,$,x(Q[0]))},A=D=>{P(D,"numlist","Numbered list","InsertOrderedList","OL",d(D)),P(D,"bullist","Bullet list","InsertUnorderedList","UL",s(D))};var L=()=>{t.add("advlist",D=>{D.hasPlugin("lists")?(E(D),A(D),o(D)):console.error("Please use the Lists plugin together with the List Styles plugin.")})};L()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=()=>/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g,o=Z=>K=>K.options.get(Z),f=Z=>{const K=Z.options.register;K("autolink_pattern",{processor:"regexp",default:new RegExp("^"+e().source+"$","i")}),K("link_default_target",{processor:"string"}),K("link_default_protocol",{processor:"string",default:"https"})},E=o("autolink_pattern"),d=o("link_default_target"),s=o("link_default_protocol"),n=o("allow_unsafe_link_target"),u=(Z,K,re)=>{var q;return re(Z,K.prototype)?!0:((q=Z.constructor)===null||q===void 0?void 0:q.name)===K.name},b=Z=>{const K=typeof Z;return Z===null?"null":K==="object"&&Array.isArray(Z)?"array":K==="object"&&u(Z,String,(re,q)=>q.isPrototypeOf(re))?"string":K},i=Z=>K=>b(K)===Z,S=Z=>K=>Z===K,w=i("string"),y=S(void 0),m=Z=>Z==null,a=Z=>!m(Z),c=Z=>K=>!Z(K),h=Object.hasOwnProperty,p=(Z,K)=>h.call(Z,K),v=(Z,K,re)=>K===""||Z.length>=K.length&&Z.substr(re,re+K.length)===K,_=(Z,K,re=0,q)=>{const Y=Z.indexOf(K,re);return Y!==-1?y(q)?!0:Y+K.length<=q:!1},O=(Z,K)=>v(Z,K,0),C="\uFEFF",x=Z=>Z===C,R=Z=>Z.replace(/\uFEFF/g,"");var M=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const T=Z=>Z.nodeType===3,P=Z=>Z.nodeType===1,A=Z=>/^[(\[{ \u00a0]$/.test(Z),L=Z=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Z),D=Z=>/[?!,.;:]/.test(Z),k=(Z,K,re)=>{for(let q=K-1;q>=0;q--){const Y=Z.charAt(q);if(!x(Y)&&re(Y))return q}return-1},I=(Z,K)=>{let re=Z,q=K;for(;P(re)&&re.childNodes[q];)re=re.childNodes[q],q=T(re)?re.data.length:re.childNodes.length;return{container:re,offset:q}},z=(Z,K)=>{var re;const q=Z.schema.getVoidElements(),Y=E(Z),{dom:ee,selection:me}=Z;if(ee.getParent(me.getNode(),"a[href]")!==null)return null;const pe=me.getRng(),se=M(ee,Ie=>ee.isBlock(Ie)||p(q,Ie.nodeName.toLowerCase())||ee.getContentEditable(Ie)==="false"),{container:ae,offset:ce}=I(pe.endContainer,pe.endOffset),de=(re=ee.getParent(ae,ee.isBlock))!==null&&re!==void 0?re:ee.getRoot(),ye=se.backwards(ae,ce+K,(Ie,ze)=>{const De=Ie.data,Qe=k(De,ze,c(A));return Qe===-1||D(De[Qe])?Qe:Qe+1},de);if(!ye)return null;let ve=ye.container;const _e=se.backwards(ye.container,ye.offset,(Ie,ze)=>{ve=Ie;const De=k(Ie.data,ze,A);return De===-1?De:De+1},de),we=ee.createRng();_e?we.setStart(_e.container,_e.offset):we.setStart(ve,0),we.setEnd(ye.container,ye.offset);const Pe=R(we.toString()).match(Y);if(Pe){let Ie=Pe[0];return O(Ie,"www.")?Ie=s(Z)+"://"+Ie:_(Ie,"@")&&!L(Ie)&&(Ie="mailto:"+Ie),{rng:we,url:Ie}}else return null},$=(Z,K)=>{const{dom:re,selection:q}=Z,{rng:Y,url:ee}=K,me=q.getBookmark();q.setRng(Y);const pe="createlink",se={command:pe,ui:!1,value:ee};if(!Z.dispatch("BeforeExecCommand",se).isDefaultPrevented()){Z.getDoc().execCommand(pe,!1,ee),Z.dispatch("ExecCommand",se);const ce=d(Z);if(w(ce)){const de=q.getNode();re.setAttrib(de,"target",ce),ce==="_blank"&&!n(Z)&&re.setAttrib(de,"rel","noopener")}}q.moveToBookmark(me),Z.nodeChanged()},Q=Z=>{const K=z(Z,-1);a(K)&&$(Z,K)},j=Q,U=Z=>{const K=z(Z,0);a(K)&&$(Z,K)},X=Z=>{Z.on("keydown",K=>{K.keyCode===13&&!K.isDefaultPrevented()&&U(Z)}),Z.on("keyup",K=>{K.keyCode===32?Q(Z):(K.keyCode===48&&K.shiftKey||K.keyCode===221)&&j(Z)})};var te=()=>{t.add("autolink",Z=>{f(Z),X(Z)})};te()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(wt,Kt,En)=>{var pr;return En(wt,Kt.prototype)?!0:((pr=wt.constructor)===null||pr===void 0?void 0:pr.name)===Kt.name},o=wt=>{const Kt=typeof wt;return wt===null?"null":Kt==="object"&&Array.isArray(wt)?"array":Kt==="object"&&e(wt,String,(En,pr)=>pr.isPrototypeOf(En))?"string":Kt},f=wt=>Kt=>o(Kt)===wt,E=wt=>Kt=>typeof Kt===wt,d=f("string"),s=f("object"),n=f("array"),u=E("boolean"),b=wt=>wt==null,i=wt=>!b(wt),S=E("function"),w=E("number"),y=()=>{},m=(wt,Kt)=>En=>wt(Kt(En)),a=wt=>()=>wt,c=(wt,Kt)=>wt===Kt;function h(wt,...Kt){return(...En)=>{const pr=Kt.concat(En);return wt.apply(null,pr)}}const p=wt=>Kt=>!wt(Kt),v=a(!1);class _{constructor(Kt,En){this.tag=Kt,this.value=En}static some(Kt){return new _(!0,Kt)}static none(){return _.singletonNone}fold(Kt,En){return this.tag?En(this.value):Kt()}isSome(){return this.tag}isNone(){return!this.tag}map(Kt){return this.tag?_.some(Kt(this.value)):_.none()}bind(Kt){return this.tag?Kt(this.value):_.none()}exists(Kt){return this.tag&&Kt(this.value)}forall(Kt){return!this.tag||Kt(this.value)}filter(Kt){return!this.tag||Kt(this.value)?this:_.none()}getOr(Kt){return this.tag?this.value:Kt}or(Kt){return this.tag?this:Kt}getOrThunk(Kt){return this.tag?this.value:Kt()}orThunk(Kt){return this.tag?this:Kt()}getOrDie(Kt){if(this.tag)return this.value;throw new Error(Kt??"Called getOrDie on None")}static from(Kt){return i(Kt)?_.some(Kt):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Kt){this.tag&&Kt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Array.prototype.slice,C=Array.prototype.indexOf,x=Array.prototype.push,R=(wt,Kt)=>C.call(wt,Kt),M=(wt,Kt)=>R(wt,Kt)>-1,T=(wt,Kt)=>{for(let En=0,pr=wt.length;En{const En=wt.length,pr=new Array(En);for(let wr=0;wr{for(let En=0,pr=wt.length;En{const En=[];for(let pr=0,wr=wt.length;pr{if(wt.length===0)return[];{let En=Kt(wt[0]);const pr=[];let wr=[];for(let uo=0,Bi=wt.length;uo(A(wt,(pr,wr)=>{En=Kt(En,pr,wr)}),En),I=(wt,Kt,En)=>{for(let pr=0,wr=wt.length;prI(wt,Kt,v),$=wt=>{const Kt=[];for(let En=0,pr=wt.length;En$(P(wt,Kt)),j=wt=>{const Kt=O.call(wt,0);return Kt.reverse(),Kt},U=(wt,Kt)=>Kt>=0&&KtU(wt,0),te=wt=>U(wt,wt.length-1),Z=(wt,Kt)=>{const En=[],pr=S(Kt)?wr=>T(En,uo=>Kt(uo,wr)):wr=>M(En,wr);for(let wr=0,uo=wt.length;wrwt.exists(pr=>En(pr,Kt)),re=(wt,Kt,En=c)=>q(wt,Kt,En).getOr(wt.isNone()&&Kt.isNone()),q=(wt,Kt,En)=>wt.isSome()&&Kt.isSome()?_.some(En(wt.getOrDie(),Kt.getOrDie())):_.none(),Y=8,ee=11,me=1,pe=3,se=(wt,Kt)=>{const pr=(Kt||document).createElement("div");if(pr.innerHTML=wt,!pr.hasChildNodes()||pr.childNodes.length>1){const wr="HTML does not have a single root node";throw console.error(wr,wt),new Error(wr)}return de(pr.childNodes[0])},ae=(wt,Kt)=>{const pr=(Kt||document).createElement(wt);return de(pr)},ce=(wt,Kt)=>{const pr=(Kt||document).createTextNode(wt);return de(pr)},de=wt=>{if(wt==null)throw new Error("Node cannot be null or undefined");return{dom:wt}},ve={fromHtml:se,fromTag:ae,fromText:ce,fromDom:de,fromPoint:(wt,Kt,En)=>_.from(wt.dom.elementFromPoint(Kt,En)).map(de)},_e=(wt,Kt)=>{const En=wt.dom;if(En.nodeType!==me)return!1;{const pr=En;if(pr.matches!==void 0)return pr.matches(Kt);if(pr.msMatchesSelector!==void 0)return pr.msMatchesSelector(Kt);if(pr.webkitMatchesSelector!==void 0)return pr.webkitMatchesSelector(Kt);if(pr.mozMatchesSelector!==void 0)return pr.mozMatchesSelector(Kt);throw new Error("Browser lacks native selectors")}},we=(wt,Kt)=>wt.dom===Kt.dom,Te=(wt,Kt)=>{const En=wt.dom,pr=Kt.dom;return En===pr?!1:En.contains(pr)},Pe=_e,Ie=typeof window<"u"?window:Function("return this;")(),ze=(wt,Kt)=>{let En=Kt??Ie;for(let pr=0;pr{const En=wt.split(".");return ze(En,Kt)},Qe=(wt,Kt)=>De(wt,Kt),Ve=(wt,Kt)=>{const En=Qe(wt,Kt);if(En==null)throw new Error(wt+" not available on this browser");return En},$e=Object.getPrototypeOf,Oe=wt=>Ve("HTMLElement",wt),ke=wt=>{const Kt=De("ownerDocument.defaultView",wt);return s(wt)&&(Oe(Kt).prototype.isPrototypeOf(wt)||/^HTML\w*Element$/.test($e(wt).constructor.name))},Re=wt=>wt.dom.nodeName.toLowerCase(),We=wt=>wt.dom.nodeType,Ue=wt=>Kt=>We(Kt)===wt,Ze=wt=>We(wt)===Y||Re(wt)==="#comment",Ye=wt=>Je(wt)&&ke(wt.dom),Je=Ue(me),Me=Ue(pe),Fe=Ue(ee),je=wt=>Kt=>Je(Kt)&&Re(Kt)===wt,tt=wt=>_.from(wt.dom.parentNode).map(ve.fromDom),ot=wt=>_.from(wt.dom.parentElement).map(ve.fromDom),Ge=wt=>_.from(wt.dom.nextSibling).map(ve.fromDom),ht=wt=>P(wt.dom.childNodes,ve.fromDom),pt=(wt,Kt)=>{const En=wt.dom.childNodes;return _.from(En[Kt]).map(ve.fromDom)},St=wt=>pt(wt,0),Ft=wt=>pt(wt,wt.dom.childNodes.length-1),zt=wt=>Fe(wt)&&i(wt.dom.host),Yt=wt=>ve.fromDom(wt.dom.getRootNode()),ln=wt=>{const Kt=Yt(wt);return zt(Kt)?_.some(Kt):_.none()},tn=wt=>ve.fromDom(wt.dom.host),Et=wt=>{const Kt=Me(wt)?wt.dom.parentNode:wt.dom;if(Kt==null||Kt.ownerDocument===null)return!1;const En=Kt.ownerDocument;return ln(ve.fromDom(Kt)).fold(()=>En.body.contains(Kt),m(Et,tn))};var Ot=(wt,Kt,En,pr,wr)=>wt(En,pr)?_.some(En):S(wr)&&wr(En)?_.none():Kt(En,pr,wr);const cn=(wt,Kt,En)=>{let pr=wt.dom;const wr=S(En)?En:v;for(;pr.parentNode;){pr=pr.parentNode;const uo=ve.fromDom(pr);if(Kt(uo))return _.some(uo);if(wr(uo))break}return _.none()},Cn=(wt,Kt,En)=>Ot((wr,uo)=>uo(wr),cn,wt,Kt,En),Pn=(wt,Kt,En)=>cn(wt,pr=>_e(pr,Kt),En),Sn=(wt,Kt,En)=>Ot((wr,uo)=>_e(wr,uo),Pn,wt,Kt,En),vt=wt=>Sn(wt,"[contenteditable]"),xt=(wt,Kt=!1)=>Et(wt)?wt.dom.isContentEditable:vt(wt).fold(a(Kt),En=>st(En)==="true"),st=wt=>wt.dom.contentEditable,bt=(wt,Kt)=>{tt(wt).each(pr=>{pr.dom.insertBefore(Kt.dom,wt.dom)})},Vt=(wt,Kt)=>{Ge(wt).fold(()=>{tt(wt).each(wr=>{it(wr,Kt)})},pr=>{bt(pr,Kt)})},Dt=(wt,Kt)=>{St(wt).fold(()=>{it(wt,Kt)},pr=>{wt.dom.insertBefore(Kt.dom,pr.dom)})},it=(wt,Kt)=>{wt.dom.appendChild(Kt.dom)},at=(wt,Kt)=>{A(Kt,En=>{bt(wt,En)})},Bt=(wt,Kt)=>{A(Kt,En=>{it(wt,En)})},_t=wt=>{wt.dom.textContent="",A(ht(wt),Kt=>{qt(Kt)})},qt=wt=>{const Kt=wt.dom;Kt.parentNode!==null&&Kt.parentNode.removeChild(Kt)};var en=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Jt=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Zt=tinymce.util.Tools.resolve("tinymce.util.VK");const Nt=wt=>P(wt,ve.fromDom),sn=Object.keys,rn=(wt,Kt)=>{const En=sn(wt);for(let pr=0,wr=En.length;pr(Kt,En)=>{wt[En]=Kt},wn=(wt,Kt,En,pr)=>{rn(wt,(wr,uo)=>{(Kt(wr,uo)?En:pr)(wr,uo)})},An=(wt,Kt)=>{const En={};return wn(wt,Kt,_n(En),y),En},Kn=(wt,Kt,En)=>{if(d(En)||u(En)||w(En))wt.setAttribute(Kt,En+"");else throw console.error("Invalid call to Attribute.set. Key ",Kt,":: Value ",En,":: Element ",wt),new Error("Attribute value was not simple")},fr=(wt,Kt)=>{const En=wt.dom;rn(Kt,(pr,wr)=>{Kn(En,wr,pr)})},Un=wt=>k(wt.dom.attributes,(Kt,En)=>(Kt[En.name]=En.value,Kt),{}),Zn=(wt,Kt)=>ve.fromDom(wt.dom.cloneNode(Kt)),tr=wt=>Zn(wt,!0),Br=(wt,Kt)=>{const En=ve.fromTag(Kt),pr=Un(wt);return fr(En,pr),En},$r=(wt,Kt)=>{const En=Br(wt,Kt);Vt(wt,En);const pr=ht(wt);return Bt(En,pr),qt(wt),En};var vr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qn=tinymce.util.Tools.resolve("tinymce.util.Tools");const gr=wt=>Kt=>i(Kt)&&Kt.nodeName.toLowerCase()===wt,sr=wt=>Kt=>i(Kt)&&wt.test(Kt.nodeName),lr=wt=>i(wt)&&wt.nodeType===3,zr=wt=>i(wt)&&wt.nodeType===1,Vr=sr(/^(OL|UL|DL)$/),eo=sr(/^(OL|UL)$/),Jr=gr("ol"),Yr=sr(/^(LI|DT|DD)$/),to=sr(/^(DT|DD)$/),co=sr(/^(TH|TD)$/),Fo=gr("br"),_o=wt=>{var Kt;return((Kt=wt.parentNode)===null||Kt===void 0?void 0:Kt.firstChild)===wt},$o=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getTextBlockElements(),Mo=(wt,Kt)=>i(wt)&&wt.nodeName in Kt,pi=(wt,Kt)=>i(Kt)&&Kt.nodeName in wt.schema.getVoidElements(),Hn=(wt,Kt)=>Fo(Kt)?wt.isBlock(Kt.nextSibling)&&!Fo(Kt.previousSibling):!1,ar=(wt,Kt,En)=>{const pr=wt.isEmpty(Kt);return En&&wt.select("span[data-mce-type=bookmark]",Kt).length>0?!1:pr},Dr=(wt,Kt)=>wt.isChildOf(Kt,wt.getRoot()),Sr=wt=>Kt=>Kt.options.get(wt),Zr=wt=>{const Kt=wt.options.register;Kt("lists_indent_on_tab",{processor:"boolean",default:!0})},go=Sr("lists_indent_on_tab"),oo=Sr("forced_root_block"),io=Sr("forced_root_block_attrs"),Do=(wt,Kt,En={})=>{const pr=wt.dom,wr=wt.schema.getBlockElements(),uo=pr.createFragment(),Bi=oo(wt),ya=io(wt);let Ni,Qi,Ws=!1;for(Qi=pr.create(Bi,{...ya,...En.style?{style:En.style}:{}}),Mo(Kt.firstChild,wr)||uo.appendChild(Qi);Ni=Kt.firstChild;){const nl=Ni.nodeName;!Ws&&(nl!=="SPAN"||Ni.getAttribute("data-mce-type")!=="bookmark")&&(Ws=!0),Mo(Ni,wr)?(uo.appendChild(Ni),Qi=null):(Qi||(Qi=pr.create(Bi,ya),uo.appendChild(Qi)),Qi.appendChild(Ni))}return!Ws&&Qi&&Qi.appendChild(pr.create("br",{"data-mce-bogus":"1"})),uo},jn=vr.DOM,Rr=(wt,Kt,En)=>{const pr=Qi=>{const Ws=Qi.parentNode;Ws&&qn.each(wr,nl=>{Ws.insertBefore(nl,En.parentNode)}),jn.remove(Qi)},wr=jn.select('span[data-mce-type="bookmark"]',Kt),uo=Do(wt,En),Bi=jn.createRng();Bi.setStartAfter(En),Bi.setEndAfter(Kt);const ya=Bi.extractContents();for(let Qi=ya.firstChild;Qi;Qi=Qi.firstChild)if(Qi.nodeName==="LI"&&wt.dom.isEmpty(Qi)){jn.remove(Qi);break}wt.dom.isEmpty(ya)||jn.insertAfter(ya,Kt),jn.insertAfter(uo,Kt);const Ni=En.parentElement;Ni&&ar(wt.dom,Ni)&&pr(Ni),jn.remove(En),ar(wt.dom,Kt)&&jn.remove(Kt)},On=je("dd"),Yn=je("dt"),ir=(wt,Kt)=>{On(Kt)?$r(Kt,"dt"):Yn(Kt)&&ot(Kt).each(En=>Rr(wt,En.dom,Kt.dom))},kr=wt=>{Yn(wt)&&$r(wt,"dd")},Er=(wt,Kt,En)=>{Kt==="Indent"?A(En,kr):A(En,pr=>ir(wt,pr))},Gt=(wt,Kt)=>{if(lr(wt))return{container:wt,offset:Kt};const En=en.getNode(wt,Kt);return lr(En)?{container:En,offset:Kt>=wt.childNodes.length?En.data.length:0}:En.previousSibling&&lr(En.previousSibling)?{container:En.previousSibling,offset:En.previousSibling.data.length}:En.nextSibling&&lr(En.nextSibling)?{container:En.nextSibling,offset:0}:{container:wt,offset:Kt}},on=wt=>{const Kt=wt.cloneRange(),En=Gt(wt.startContainer,wt.startOffset);Kt.setStart(En.container,En.offset);const pr=Gt(wt.endContainer,wt.endOffset);return Kt.setEnd(pr.container,pr.offset),Kt},an=["OL","UL","DL"],Tn=an.join(","),zn=(wt,Kt)=>{const En=Kt||wt.selection.getStart(!0);return wt.dom.getParent(En,Tn,zo(wt,En))},Gn=(wt,Kt)=>i(wt)&&Kt.length===1&&Kt[0]===wt,Lr=wt=>L(wt.querySelectorAll(Tn),Vr),Ur=wt=>{const Kt=zn(wt),En=wt.selection.getSelectedBlocks();return Gn(Kt,En)?Lr(Kt):L(En,pr=>Vr(pr)&&Kt!==pr)},qr=(wt,Kt)=>{const En=qn.map(Kt,pr=>{const wr=wt.dom.getParent(pr,"li,dd,dt",zo(wt,pr));return wr||pr});return Z(En)},Cr=wt=>{const Kt=wt.selection.getSelectedBlocks();return L(qr(wt,Kt),Yr)},wo=wt=>L(Cr(wt),to),Nr=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"TD,TH");return En.length>0?En[0]:wt.getBody()},Eo=(wt,Kt)=>!Vr(Kt)&&!Yr(Kt)&&T(an,En=>wt.isValidChild(Kt.nodeName,En)),zo=(wt,Kt)=>{const En=wt.dom.getParents(Kt,wt.dom.isBlock),pr=uo=>uo.nodeName.toLowerCase()!==oo(wt);return z(En,uo=>pr(uo)&&Eo(wt.schema,uo)).getOr(wt.getBody())},Qt=wt=>tt(wt).exists(Kt=>Yr(Kt.dom)&&St(Kt).exists(En=>!Vr(En.dom))&&Ft(Kt).exists(En=>!Vr(En.dom))),Mn=(wt,Kt)=>{const En=wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt));return te(En)},Fn=wt=>{const Kt=Mn(wt,wt.selection.getStart()),En=L(wt.selection.getSelectedBlocks(),eo);return Kt.toArray().concat(En)},dr=wt=>{const Kt=wt.selection.getStart();return wt.dom.getParents(Kt,"ol,ul",zo(wt,Kt))},xr=wt=>{const Kt=Fn(wt),En=dr(wt);return z(En,pr=>Qt(ve.fromDom(pr))).fold(()=>Oo(wt,Kt),pr=>[pr])},Oo=(wt,Kt)=>{const En=P(Kt,pr=>Mn(wt,pr).getOr(pr));return Z(En)},mi=wt=>/\btox\-/.test(wt.className),Di=(wt,Kt)=>I(wt,Vr,co).exists(En=>En.nodeName===Kt&&!mi(En)),To=(wt,Kt)=>Kt!==null&&!wt.dom.isEditable(Kt),Ia=wt=>{const Kt=zn(wt);return To(wt,Kt)},Ds=(wt,Kt)=>{const En=wt.dom.getParent(Kt,"ol,ul,dl");return To(wt,En)},fs=(wt,Kt)=>{const En=wt.selection.getNode();return Kt({parents:wt.dom.getParents(En),element:En}),wt.on("NodeChange",Kt),()=>wt.off("NodeChange",Kt)},zi=(wt,Kt)=>{const pr=(Kt||document).createDocumentFragment();return A(wt,wr=>{pr.appendChild(wr.dom)}),ve.fromDom(pr)},yl=(wt,Kt,En)=>wt.dispatch("ListMutation",{action:Kt,element:En}),yf=(wt=>Kt=>Kt.replace(wt,""))(/^\s+|\s+$/g),il=wt=>wt.length>0,nf=wt=>!il(wt),nh=wt=>wt.style!==void 0&&S(wt.style.getPropertyValue),gp=(wt,Kt,En)=>{if(!d(En))throw console.error("Invalid call to CSS.set. Property ",Kt,":: Value ",En,":: Element ",wt),new Error("CSS value must be a string: "+En);nh(wt)&&wt.style.setProperty(Kt,En)},Qs=(wt,Kt,En)=>{const pr=wt.dom;gp(pr,Kt,En)},xh=wt=>Pe(wt,"OL,UL"),Bl=wt=>Pe(wt,"LI"),Tc=wt=>St(wt).exists(xh),iu=wt=>Ft(wt).exists(xh),au=wt=>"listAttributes"in wt,zf=wt=>"isComment"in wt,_s=wt=>"isFragment"in wt,ma=wt=>wt.depth>0,mu=wt=>wt.isSelected,Uc=wt=>{const Kt=ht(wt),En=iu(wt)?Kt.slice(0,-1):Kt;return P(En,tr)},Kf=(wt,Kt,En)=>tt(wt).filter(Je).map(pr=>({depth:Kt,dirty:!1,isSelected:En,content:Uc(wt),itemAttributes:Un(wt),listAttributes:Un(pr),listType:Re(pr),isInPreviousLi:!1})),Al=(wt,Kt)=>{it(wt.item,Kt.list)},Wl=wt=>{for(let Kt=1;Kt{q(te(wt),X(Kt),Al)},Jf=(wt,Kt)=>{const En={list:ve.fromTag(Kt,wt),item:ve.fromTag("li",wt)};return it(En.list,En.item),En},Nf=(wt,Kt,En)=>{const pr=[];for(let wr=0;wr{for(let En=0;En{au(Kt)&&(fr(En.list,Kt.listAttributes),fr(En.item,Kt.itemAttributes)),Bt(En.item,Kt.content)})},Gh=(wt,Kt)=>{Re(wt.list)!==Kt.listType&&(wt.list=$r(wt.list,Kt.listType)),fr(wt.list,Kt.listAttributes)},ll=(wt,Kt,En)=>{const pr=ve.fromTag("li",wt);return fr(pr,Kt),Bt(pr,En),pr},Tu=(wt,Kt)=>{it(wt.list,Kt),wt.item=Kt},gu=(wt,Kt,En)=>{const pr=Kt.slice(0,En.depth);return te(pr).each(wr=>{if(au(En)){const uo=ll(wt,En.itemAttributes,En.content);Tu(wr,uo),Gh(wr,En)}else if(_s(En))Bt(wr.item,En.content);else{const uo=ve.fromHtml(``);it(wr.list,uo)}}),pr},ec=(wt,Kt,En)=>{const pr=Nf(wt,En,En.depth-Kt.length);return Wl(pr),Jl(pr,En),Ml(Kt,pr),Kt.concat(pr)},Dc=(wt,Kt)=>{let En=_.none();const pr=k(Kt,(wr,uo,Bi)=>zf(uo)?Bi===0?(En=_.some(uo),wr):gu(wt,wr,uo):uo.depth>wr.length?ec(wt,wr,uo):gu(wt,wr,uo),[]);return En.each(wr=>{const uo=ve.fromHtml(``);X(pr).each(Bi=>{Dt(Bi.list,uo)})}),X(pr).map(wr=>wr.list)},tc=(wt,Kt)=>{switch(wt){case"Indent":Kt.depth++;break;case"Outdent":Kt.depth--;break;case"Flatten":Kt.depth=0}Kt.dirty=!0},Lp=(wt,Kt)=>{au(wt)&&au(Kt)&&(wt.listType=Kt.listType,wt.listAttributes={...Kt.listAttributes})},rh=wt=>{wt.listAttributes=An(wt.listAttributes,(Kt,En)=>En!=="start")},rf=(wt,Kt)=>{const En=wt[Kt].depth,pr=uo=>uo.depth===En&&!uo.dirty,wr=uo=>uo.depthI(wt.slice(Kt+1),pr,wr))},of=wt=>(A(wt,(Kt,En)=>{rf(wt,En).fold(()=>{Kt.dirty&&au(Kt)&&rh(Kt)},pr=>Lp(Kt,pr))}),wt),bf=wt=>{let Kt=wt;return{get:()=>Kt,set:wr=>{Kt=wr}}},vu=(wt,Kt,En,pr)=>{var wr;if(Ze(pr))return[{depth:wt+1,content:(wr=pr.dom.nodeValue)!==null&&wr!==void 0?wr:"",dirty:!1,isSelected:!1,isComment:!0}];Kt.each(ya=>{we(ya.start,pr)&&En.set(!0)});const uo=Kf(pr,wt,En.get());Kt.each(ya=>{we(ya.end,pr)&&En.set(!1)});const Bi=Ft(pr).filter(xh).map(ya=>bl(wt,Kt,En,ya)).getOr([]);return uo.toArray().concat(Bi)},$d=(wt,Kt,En,pr)=>St(pr).filter(xh).fold(()=>vu(wt,Kt,En,pr),wr=>{const uo=k(ht(pr),(Bi,ya,Ni)=>{if(Ni===0)return Bi;if(Bl(ya))return Bi.concat(vu(wt,Kt,En,ya));{const Qi={isFragment:!0,depth:wt,content:[ya],isSelected:!1,dirty:!1,parentListType:Re(wr)};return Bi.concat(Qi)}},[]);return bl(wt,Kt,En,wr).concat(uo)}),bl=(wt,Kt,En,pr)=>Q(ht(pr),wr=>{const uo=xh(wr)?bl:$d,Bi=wt+1;return uo(Bi,Kt,En,wr)}),Zu=(wt,Kt)=>{const En=bf(!1),pr=0;return P(wt,wr=>({sourceList:wr,entries:bl(pr,Kt,En,wr)}))},Kh=(wt,Kt)=>{const En=of(Kt);return P(En,pr=>{const wr=zf(pr)?zi([ve.fromHtml(``)]):zi(pr.content),uo=au(pr)?pr.itemAttributes:{};return ve.fromDom(Do(wt,wr.dom,uo))})},Cu=(wt,Kt)=>{const En=of(Kt);return Dc(wt.contentDocument,En).toArray()},ed=(wt,Kt)=>Q(D(Kt,ma),En=>X(En).exists(ma)?Cu(wt,En):Kh(wt,En)),Bu=(wt,Kt)=>{A(L(wt,mu),En=>tc(Kt,En))},vd=wt=>{const Kt=P(Cr(wt),ve.fromDom);return q(z(Kt,p(Tc)),z(j(Kt),p(Tc)),(En,pr)=>({start:En,end:pr}))},cs=(wt,Kt,En)=>{const pr=Zu(Kt,vd(wt));A(pr,wr=>{Bu(wr.entries,En);const uo=ed(wt,wr.entries);A(uo,Bi=>{yl(wt,En==="Indent"?"IndentList":"OutdentList",Bi.dom)}),at(wr.sourceList,uo),qt(wr.sourceList)})},oh=(wt,Kt)=>{const En=Nt(xr(wt)),pr=Nt(wo(wt));let wr=!1;if(En.length||pr.length){const uo=wt.selection.getBookmark();cs(wt,En,Kt),Er(wt,Kt,pr),wt.selection.moveToBookmark(uo),wt.selection.setRng(on(wt.selection.getRng())),wt.nodeChanged(),wr=!0}return wr},Jh=(wt,Kt)=>!Ia(wt)&&oh(wt,Kt),_h=wt=>Jh(wt,"Indent"),xf=wt=>Jh(wt,"Outdent"),ep=wt=>Jh(wt,"Flatten"),_r="\uFEFF",Ff=wt=>wt===_r,yd=(wt,Kt,En)=>cn(wt,Kt,En).isSome(),bd=(wt,Kt)=>yd(wt,h(we,Kt));var wh=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const zu=vr.DOM,va=wt=>{const Kt={},En=pr=>{let wr=wt[pr?"startContainer":"endContainer"],uo=wt[pr?"startOffset":"endOffset"];if(zr(wr)){const Bi=zu.create("span",{"data-mce-type":"bookmark"});wr.hasChildNodes()?(uo=Math.min(uo,wr.childNodes.length-1),pr?wr.insertBefore(Bi,wr.childNodes[uo]):zu.insertAfter(Bi,wr.childNodes[uo])):wr.appendChild(Bi),wr=Bi,uo=0}Kt[pr?"startContainer":"endContainer"]=wr,Kt[pr?"startOffset":"endOffset"]=uo};return En(!0),wt.collapsed||En(),Kt},El=wt=>{const Kt=pr=>{const wr=ya=>{var Ni;let Qi=(Ni=ya.parentNode)===null||Ni===void 0?void 0:Ni.firstChild,Ws=0;for(;Qi;){if(Qi===ya)return Ws;(!zr(Qi)||Qi.getAttribute("data-mce-type")!=="bookmark")&&Ws++,Qi=Qi.nextSibling}return-1};let uo=wt[pr?"startContainer":"endContainer"],Bi=wt[pr?"startOffset":"endOffset"];if(uo){if(zr(uo)&&uo.parentNode){const ya=uo;Bi=wr(uo),uo=uo.parentNode,zu.remove(ya),!uo.hasChildNodes()&&zu.isBlock(uo)&&uo.appendChild(zu.create("br"))}wt[pr?"startContainer":"endContainer"]=uo,wt[pr?"startOffset":"endOffset"]=Bi}};Kt(!0),Kt();const En=zu.createRng();return En.setStart(wt.startContainer,wt.startOffset),wt.endContainer&&En.setEnd(wt.endContainer,wt.endOffset),on(En)},_f=wt=>{switch(wt){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},$f=(wt,Kt,En)=>{const pr=En["list-style-type"]?En["list-style-type"]:null;wt.setStyle(Kt,"list-style-type",pr)},ih=(wt,Kt)=>{qn.each(Kt,(En,pr)=>{wt.setAttribute(pr,En)})},yu=(wt,Kt,En)=>{ih(Kt,En["list-attributes"]),qn.each(wt.select("li",Kt),pr=>{ih(pr,En["list-item-attributes"])})},jc=(wt,Kt,En)=>{$f(wt,Kt,En),yu(wt,Kt,En)},Nh=(wt,Kt,En)=>{qn.each(En,pr=>wt.setStyle(Kt,pr,""))},af=(wt,Kt)=>i(Kt)&&!Mo(Kt,wt.schema.getBlockElements()),td=(wt,Kt,En,pr)=>{let wr=Kt[En?"startContainer":"endContainer"];const uo=Kt[En?"startOffset":"endOffset"];zr(wr)&&(wr=wr.childNodes[Math.min(uo,wr.childNodes.length-1)]||wr),!En&&Fo(wr.nextSibling)&&(wr=wr.nextSibling);const Bi=Ni=>{for(;!wt.dom.isBlock(Ni)&&Ni.parentNode&&pr!==Ni;)Ni=Ni.parentNode;return Ni},ya=(Ni,Qi)=>{var Ws;const nl=new Jt(Ni,Bi(Ni)),Fs=Qi?"next":"prev";let Wu;for(;Wu=nl[Fs]();)if(!(pi(wt,Wu)||Ff(Wu.textContent)||((Ws=Wu.textContent)===null||Ws===void 0?void 0:Ws.length)===0))return _.some(Wu);return _.none()};if(En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!1).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.previousSibling!==null&&(af(wt,wr.previousSibling)||lr(wr.previousSibling));)wr=wr.previousSibling;if(!En&&lr(wr))if(Ff(wr.textContent))wr=ya(wr,!0).getOr(wr);else for(wr.parentNode!==null&&af(wt,wr.parentNode)&&(wr=wr.parentNode);wr.nextSibling!==null&&(af(wt,wr.nextSibling)||lr(wr.nextSibling));)wr=wr.nextSibling;for(;wr.parentNode!==pr;){const Ni=wr.parentNode;if($o(wt,wr)||/^(TD|TH)$/.test(Ni.nodeName))return wr;wr=Ni}return wr},sf=(wt,Kt,En)=>{const pr=[],wr=wt.dom,uo=td(wt,Kt,!0,En),Bi=td(wt,Kt,!1,En);let ya;const Ni=[];for(let Qi=uo;Qi&&(Ni.push(Qi),Qi!==Bi);Qi=Qi.nextSibling);return qn.each(Ni,Qi=>{var Ws;if($o(wt,Qi)){pr.push(Qi),ya=null;return}if(wr.isBlock(Qi)||Fo(Qi)){Fo(Qi)&&wr.remove(Qi),ya=null;return}const nl=Qi.nextSibling;if(wh.isBookmarkNode(Qi)&&(Vr(nl)||$o(wt,nl)||!nl&&Qi.parentNode===En)){ya=null;return}ya||(ya=wr.create("p"),(Ws=Qi.parentNode)===null||Ws===void 0||Ws.insertBefore(ya,Qi),pr.push(ya)),ya.appendChild(Qi)}),pr},Bc=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type");let wr=En?En["list-style-type"]:"";return wr=wr===null?"":wr,pr===wr},Vd=(wt,Kt)=>{const En=wt.selection.getStart(!0),pr=td(wt,Kt,!0,wt.getBody());return bd(ve.fromDom(pr),ve.fromDom(Kt.commonAncestorContainer))?Kt.commonAncestorContainer:En},xd=(wt,Kt,En)=>{const pr=wt.selection.getRng();let wr="LI";const uo=zo(wt,Vd(wt,pr)),Bi=wt.dom;if(Bi.getContentEditable(wt.selection.getNode())==="false")return;Kt=Kt.toUpperCase(),Kt==="DL"&&(wr="DT");const ya=va(pr),Ni=L(sf(wt,pr,uo),wt.dom.isEditable);qn.each(Ni,Qi=>{let Ws;const nl=Qi.previousSibling,Fs=Qi.parentNode;Yr(Fs)||(nl&&Vr(nl)&&nl.nodeName===Kt&&Bc(Bi,nl,En)?(Ws=nl,Qi=Bi.rename(Qi,wr),nl.appendChild(Qi)):(Ws=Bi.create(Kt),Fs.insertBefore(Ws,Qi),Ws.appendChild(Qi),Qi=Bi.rename(Qi,wr)),Nh(Bi,Qi,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),jc(Bi,Ws,En),Nu(wt.dom,Ws))}),wt.selection.setRng(El(ya))},vc=(wt,Kt)=>Vr(wt)&&wt.nodeName===(Kt==null?void 0:Kt.nodeName),gs=(wt,Kt,En)=>{const pr=wt.getStyle(Kt,"list-style-type",!0),wr=wt.getStyle(En,"list-style-type",!0);return pr===wr},yc=(wt,Kt)=>wt.className===Kt.className,Cc=(wt,Kt,En)=>vc(Kt,En)&&gs(wt,Kt,En)&&yc(Kt,En),Nu=(wt,Kt)=>{let En,pr=Kt.nextSibling;if(Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.firstChild;)Kt.appendChild(En);wt.remove(wr)}if(pr=Kt.previousSibling,Cc(wt,Kt,pr)){const wr=pr;for(;En=wr.lastChild;)Kt.insertBefore(En,Kt.firstChild);wt.remove(wr)}},Gs=(wt,Kt,En,pr)=>{if(Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ks=(wt,Kt,En,pr)=>{if(Kt.classList.forEach((wr,uo,Bi)=>{wr.startsWith("tox-")&&(Bi.remove(wr),Bi.length===0&&Kt.removeAttribute("class"))}),Kt.nodeName!==En){const wr=wt.dom.rename(Kt,En);jc(wt.dom,wr,pr),yl(wt,_f(En),wr)}else jc(wt.dom,Kt,pr),yl(wt,_f(En),Kt)},Ac=(wt,Kt,En,pr,wr)=>{const uo=Vr(Kt);if(uo&&Kt.nodeName===pr&&!_d(wr)&&!mi(Kt))ep(wt);else{xd(wt,pr,wr);const Bi=va(wt.selection.getRng()),ya=uo?[Kt,...En]:En,Ni=uo&&mi(Kt)?Ks:Gs;qn.each(ya,Qi=>{Ni(wt,Qi,pr,wr)}),wt.selection.setRng(El(Bi))}},_d=wt=>"list-style-type"in wt,Fh=(wt,Kt,En,pr)=>{if(Kt!==wt.getBody())if(Kt)if(Kt.nodeName===En&&!_d(pr)&&!mi(Kt))ep(wt);else{const wr=va(wt.selection.getRng());mi(Kt)&&Kt.classList.forEach((Bi,ya,Ni)=>{Bi.startsWith("tox-")&&(Ni.remove(Bi),Ni.length===0&&Kt.removeAttribute("class"))}),jc(wt.dom,Kt,pr);const uo=wt.dom.rename(Kt,En);Nu(wt.dom,uo),wt.selection.setRng(El(wr)),xd(wt,En,pr),yl(wt,_f(En),uo)}else xd(wt,En,pr),yl(wt,_f(En),Kt)},$h=(wt,Kt,En)=>{const pr=zn(wt);if(Ds(wt,pr))return;const wr=Ur(wt),uo=s(En)?En:{};wr.length>0?Ac(wt,pr,wr,Kt,uo):Fh(wt,pr,Kt,uo)},vp=vr.DOM,ah=(wt,Kt)=>{const En=Kt.parentElement;if(En&&En.nodeName==="LI"&&En.firstChild===Kt){const pr=En.previousSibling;pr&&pr.nodeName==="LI"?(pr.appendChild(Kt),ar(wt,En)&&vp.remove(En)):vp.setStyle(En,"listStyleType","none")}if(Vr(En)){const pr=En.previousSibling;pr&&pr.nodeName==="LI"&&pr.appendChild(Kt)}},Au=(wt,Kt)=>{const En=qn.grep(wt.select("ol,ul",Kt));qn.each(En,pr=>{ah(wt,pr)})},lf=(wt,Kt,En,pr)=>{let wr=Kt.startContainer;const uo=Kt.startOffset;if(lr(wr)&&(En?uo0))return wr;const Bi=wt.schema.getNonEmptyElements();zr(wr)&&(wr=en.getNode(wr,uo));const ya=new Jt(wr,pr);En&&Hn(wt.dom,wr)&&ya.next();const Ni=En?ya.next.bind(ya):ya.prev2.bind(ya);for(;wr=Ni();)if(wr.nodeName==="LI"&&!wr.hasChildNodes()||Bi[wr.nodeName]||lr(wr)&&wr.data.length>0)return wr;return null},wf=(wt,Kt)=>{const En=Kt.childNodes;return En.length===1&&!Vr(En[0])&&wt.isBlock(En[0])},vs=wt=>_.from(wt).map(ve.fromDom).filter(Ye).exists(Kt=>xt(Kt)&&!M(["details"],Re(Kt))),cl=(wt,Kt)=>{wf(wt,Kt)&&vs(Kt.firstChild)&&wt.remove(Kt.firstChild,!0)},bc=(wt,Kt,En)=>{let pr;const wr=wf(wt,En)?En.firstChild:En;if(cl(wt,Kt),!ar(wt,Kt,!0))for(;pr=Kt.firstChild;)wr.appendChild(pr)},nc=(wt,Kt,En)=>{let pr;const wr=Kt.parentNode;if(!Dr(wt,Kt)||!Dr(wt,En))return;Vr(En.lastChild)&&(pr=En.lastChild),wr===En.lastChild&&Fo(wr.previousSibling)&&wt.remove(wr.previousSibling);const uo=En.lastChild;uo&&Fo(uo)&&Kt.hasChildNodes()&&wt.remove(uo),ar(wt,En,!0)&&_t(ve.fromDom(En)),bc(wt,Kt,En),pr&&En.appendChild(pr);const ya=Te(ve.fromDom(En),ve.fromDom(Kt))?wt.getParents(Kt,Vr,En):[];wt.remove(Kt),A(ya,Ni=>{ar(wt,Ni)&&Ni!==wt.getRoot()&&wt.remove(Ni)})},Qc=(wt,Kt,En)=>{_t(ve.fromDom(En)),nc(wt.dom,Kt,En),wt.selection.setCursorLocation(En,0)},ts=(wt,Kt,En,pr)=>{const wr=wt.dom;if(wr.isEmpty(pr))Qc(wt,En,pr);else{const uo=va(Kt);nc(wr,En,pr),wt.selection.setRng(El(uo))}},wi=(wt,Kt,En,pr)=>{const wr=va(Kt);nc(wt.dom,En,pr);const uo=El(wr);wt.selection.setRng(uo)},bu=(wt,Kt)=>{const En=wt.dom,pr=wt.selection,wr=pr.getStart(),uo=Nr(wt,wr),Bi=En.getParent(pr.getStart(),"LI",uo);if(Bi){const ya=Bi.parentElement;if(ya===wt.getBody()&&ar(En,ya))return!0;const Ni=on(pr.getRng()),Qi=En.getParent(lf(wt,Ni,Kt,uo),"LI",uo),Ws=Qi&&(Kt?En.isChildOf(Bi,Qi):En.isChildOf(Qi,Bi));if(Qi&&Qi!==Bi&&!Ws)return wt.undoManager.transact(()=>{Kt?ts(wt,Ni,Qi,Bi):_o(Bi)?xf(wt):wi(wt,Ni,Bi,Qi)}),!0;if(Ws&&!Kt&&Qi!==Bi)return wt.undoManager.transact(()=>{if(Ni.commonAncestorContainer.parentElement){const nl=va(Ni),Fs=Ni.commonAncestorContainer.parentElement;bc(En,Ni.commonAncestorContainer.parentElement,Qi),Fs.remove();const Wu=El(nl);wt.selection.setRng(Wu)}}),!0;if(!Qi&&!Kt&&Ni.startOffset===0&&Ni.endOffset===0)return wt.undoManager.transact(()=>{ep(wt)}),!0}return!1},wd=(wt,Kt,En)=>{const pr=wt.getParent(Kt.parentNode,wt.isBlock,En);wt.remove(Kt),pr&&wt.isEmpty(pr)&&wt.remove(pr)},Ol=(wt,Kt)=>{const En=wt.dom,pr=wt.selection.getStart(),wr=Nr(wt,pr),uo=En.getParent(pr,En.isBlock,wr);if(uo&&En.isEmpty(uo,void 0,{checkRootAsContent:!0})){const Bi=on(wt.selection.getRng()),ya=En.getParent(lf(wt,Bi,Kt,wr),"LI",wr);if(ya){const Ni=Fs=>M(["td","th","caption"],Re(Fs)),Qi=Fs=>Fs.dom===wr,Ws=Cn(ve.fromDom(ya),Ni,Qi),nl=Cn(ve.fromDom(Bi.startContainer),Ni,Qi);return re(Ws,nl,we)?(wt.undoManager.transact(()=>{const Fs=ya.parentNode;wd(En,uo,wr),Nu(En,Fs),wt.selection.select(ya,!0),wt.selection.collapse(Kt)}),!0):!1}}return!1},ds=(wt,Kt)=>bu(wt,Kt)||Ol(wt,Kt),zc=wt=>{const Kt=wt.selection.getStart(),En=Nr(wt,Kt);return wt.dom.getParent(Kt,"LI,DT,DD",En)||Cr(wt).length>0},Ud=wt=>zc(wt)?(wt.undoManager.transact(()=>{wt.execCommand("Delete"),Au(wt.dom,wt.getBody())}),!0):!1,cf=(wt,Kt)=>{const En=wt.selection;return!Ds(wt,En.getNode())&&(En.isCollapsed()?ds(wt,Kt):Ud(wt))},Of=wt=>{wt.on("ExecCommand",Kt=>{const En=Kt.command.toLowerCase();(En==="delete"||En==="forwarddelete")&&zc(wt)&&Au(wt.dom,wt.getBody())}),wt.on("keydown",Kt=>{Kt.keyCode===Zt.BACKSPACE?cf(wt,!1)&&Kt.preventDefault():Kt.keyCode===Zt.DELETE&&cf(wt,!0)&&Kt.preventDefault()})},aa=wt=>({backspaceDelete:Kt=>{cf(wt,Kt)}}),rs=(wt,Kt)=>{const En=zn(wt);En===null||Ds(wt,En)||wt.undoManager.transact(()=>{s(Kt.styles)&&wt.dom.setStyles(En,Kt.styles),s(Kt.attrs)&&rn(Kt.attrs,(pr,wr)=>wt.dom.setAttrib(En,wr,pr))})},Mu=wt=>{const Kt=j(yf(wt).split("")),En=P(Kt,(pr,wr)=>{const uo=pr.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,wr)*uo});return k(En,(pr,wr)=>pr+wr,0)},Ri=wt=>{if(wt--,wt<0)return"";{const Kt=wt%26,En=Math.floor(wt/26),pr=Ri(En),wr=String.fromCharCode("A".charCodeAt(0)+Kt);return pr+wr}},Gc=wt=>/^[A-Z]+$/.test(wt),qu=wt=>/^[a-z]+$/.test(wt),zl=wt=>/^[0-9]+$/.test(wt),xc=wt=>zl(wt)?2:Gc(wt)?0:qu(wt)?1:nf(wt)?3:4,Kc=wt=>{switch(xc(wt)){case 2:return _.some({listStyleType:_.none(),start:wt});case 0:return _.some({listStyleType:_.some("upper-alpha"),start:Mu(wt).toString()});case 1:return _.some({listStyleType:_.some("lower-alpha"),start:Mu(wt).toString()});case 3:return _.some({listStyleType:_.none(),start:""});case 4:return _.none()}},jd=wt=>{const Kt=parseInt(wt.start,10);return K(wt.listStyleType,"upper-alpha")?Ri(Kt):K(wt.listStyleType,"lower-alpha")?Ri(Kt).toLowerCase():wt.start},ii=wt=>{const Kt=zn(wt);!Jr(Kt)||Ds(wt,Kt)||wt.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:jd({start:wt.dom.getAttrib(Kt,"start","1"),listStyleType:_.from(wt.dom.getStyle(Kt,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:En=>{const pr=En.getData();Kc(pr.start).each(wr=>{wt.execCommand("mceListUpdate",!1,{attrs:{start:wr.start==="1"?"":wr.start},styles:{"list-style-type":wr.listStyleType.getOr("")}})}),En.close()}})},nd=(wt,Kt)=>()=>{const En=zn(wt);return i(En)&&En.nodeName===Kt},al=wt=>{wt.addCommand("mceListProps",()=>{ii(wt)})},Yl=wt=>{wt.on("BeforeExecCommand",Kt=>{const En=Kt.command.toLowerCase();En==="indent"?_h(wt):En==="outdent"&&xf(wt)}),wt.addCommand("InsertUnorderedList",(Kt,En)=>{$h(wt,"UL",En)}),wt.addCommand("InsertOrderedList",(Kt,En)=>{$h(wt,"OL",En)}),wt.addCommand("InsertDefinitionList",(Kt,En)=>{$h(wt,"DL",En)}),wt.addCommand("RemoveList",()=>{ep(wt)}),al(wt),wt.addCommand("mceListUpdate",(Kt,En)=>{s(En)&&rs(wt,En)}),wt.addQueryStateHandler("InsertUnorderedList",nd(wt,"UL")),wt.addQueryStateHandler("InsertOrderedList",nd(wt,"OL")),wt.addQueryStateHandler("InsertDefinitionList",nd(wt,"DL"))};var uf=tinymce.util.Tools.resolve("tinymce.html.Node");const hs=wt=>wt.type===3,Mc=wt=>wt.length===0,Eu=wt=>{const Kt=(wr,uo)=>{const Bi=uf.create("li");A(wr,ya=>Bi.append(ya)),uo?wt.insert(Bi,uo,!0):wt.append(Bi)},En=(wr,uo)=>hs(uo)?[...wr,uo]:!Mc(wr)&&!hs(uo)?(Kt(wr,uo),[]):wr,pr=k(wt.children(),En,[]);Mc(pr)||Kt(pr)},xu=wt=>{wt.on("PreInit",()=>{const{parser:Kt}=wt;Kt.addNodeFilter("ul,ol",En=>A(En,Eu))})},ws=wt=>{wt.on("keydown",Kt=>{Kt.keyCode!==Zt.TAB||Zt.metaKeyPressed(Kt)||wt.undoManager.transact(()=>{(Kt.shiftKey?xf(wt):_h(wt))&&Kt.preventDefault()})})},Fu=wt=>{go(wt)&&ws(wt),Of(wt)},su=(wt,Kt)=>En=>{const pr=wr=>{En.setActive(Di(wr.parents,Kt)),En.setEnabled(!Ds(wt,wr.element)&&wt.selection.isEditable())};return En.setEnabled(wt.selection.isEditable()),fs(wt,pr)},Ca=wt=>{const Kt=En=>()=>wt.execCommand(En);wt.hasPlugin("advlist")||(wt.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:Kt("InsertOrderedList"),onSetup:su(wt,"OL")}),wt.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:Kt("InsertUnorderedList"),onSetup:su(wt,"UL")}))},Ls=(wt,Kt)=>En=>fs(wt,wr=>En.setEnabled(Di(wr.parents,Kt)&&!Ds(wt,wr.element))),Ec=wt=>{const Kt={text:"List properties...",icon:"ordered-list",onAction:()=>wt.execCommand("mceListProps"),onSetup:Ls(wt,"OL")};wt.ui.registry.addMenuItem("listprops",Kt),wt.ui.registry.addContextMenu("lists",{update:En=>{const pr=zn(wt,En);return Jr(pr)?["listprops"]:[]}})};var _u=()=>{t.add("lists",wt=>(Zr(wt),xu(wt),wt.hasPlugin("rtc",!0)?al(wt):(Fu(wt),Yl(wt)),Ca(wt),Ec(wt),aa(wt)))};_u()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(Gt,on,an)=>{var Tn;return an(Gt,on.prototype)?!0:((Tn=Gt.constructor)===null||Tn===void 0?void 0:Tn.name)===on.name},o=Gt=>{const on=typeof Gt;return Gt===null?"null":on==="object"&&Array.isArray(Gt)?"array":on==="object"&&e(Gt,String,(an,Tn)=>Tn.isPrototypeOf(an))?"string":on},f=Gt=>on=>o(on)===Gt,E=Gt=>on=>typeof on===Gt,d=Gt=>on=>Gt===on,s=f("string"),n=f("object"),u=f("array"),b=d(null),i=E("boolean"),S=Gt=>Gt==null,w=Gt=>!S(Gt),y=E("function"),m=(Gt,on)=>{if(u(Gt)){for(let an=0,Tn=Gt.length;an{},c=Gt=>()=>Gt,h=(Gt,on)=>Gt===on;class p{constructor(on,an){this.tag=on,this.value=an}static some(on){return new p(!0,on)}static none(){return p.singletonNone}fold(on,an){return this.tag?an(this.value):on()}isSome(){return this.tag}isNone(){return!this.tag}map(on){return this.tag?p.some(on(this.value)):p.none()}bind(on){return this.tag?on(this.value):p.none()}exists(on){return this.tag&&on(this.value)}forall(on){return!this.tag||on(this.value)}filter(on){return!this.tag||on(this.value)?this:p.none()}getOr(on){return this.tag?this.value:on}or(on){return this.tag?this:on}getOrThunk(on){return this.tag?this.value:on()}orThunk(on){return this.tag?this:on()}getOrDie(on){if(this.tag)return this.value;throw new Error(on??"Called getOrDie on None")}static from(on){return w(on)?p.some(on):p.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(on){this.tag&&on(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}p.singletonNone=new p(!1);const v=Array.prototype.indexOf,_=Array.prototype.push,O=(Gt,on)=>v.call(Gt,on),C=(Gt,on)=>O(Gt,on)>-1,x=(Gt,on)=>{const an=Gt.length,Tn=new Array(an);for(let zn=0;zn{for(let an=0,Tn=Gt.length;an(R(Gt,(Tn,zn)=>{an=on(an,Tn,zn)}),an),T=Gt=>{const on=[];for(let an=0,Tn=Gt.length;anT(x(Gt,on)),A=(Gt,on)=>{for(let an=0;anGt.exists(Tn=>an(Tn,on)),D=Gt=>{const on=[],an=Tn=>{on.push(Tn)};for(let Tn=0;TnGt?p.some(on):p.none(),I=Gt=>on=>on.options.get(Gt),z=Gt=>{const on=Gt.options.register;on("link_assume_external_targets",{processor:an=>{const Tn=s(an)||i(an);return Tn?an===!0?{value:1,valid:Tn}:an==="http"||an==="https"?{value:an,valid:Tn}:{value:0,valid:Tn}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),on("link_context_toolbar",{processor:"boolean",default:!1}),on("link_list",{processor:an=>s(an)||y(an)||m(an,n)}),on("link_default_target",{processor:"string"}),on("link_default_protocol",{processor:"string",default:"https"}),on("link_target_list",{processor:an=>i(an)||m(an,n),default:!0}),on("link_rel_list",{processor:"object[]",default:[]}),on("link_class_list",{processor:"object[]",default:[]}),on("link_title",{processor:"boolean",default:!0}),on("allow_unsafe_link_target",{processor:"boolean",default:!1}),on("link_quicklink",{processor:"boolean",default:!1})},$=I("link_assume_external_targets"),Q=I("link_context_toolbar"),j=I("link_list"),U=I("link_default_target"),X=I("link_default_protocol"),te=I("link_target_list"),Z=I("link_rel_list"),K=I("link_class_list"),re=I("link_title"),q=I("allow_unsafe_link_target"),Y=I("link_quicklink"),ee=Object.keys,me=Object.hasOwnProperty,pe=(Gt,on)=>{const an=ee(Gt);for(let Tn=0,zn=an.length;Tn(on,an)=>{Gt[an]=on},ae=(Gt,on,an,Tn)=>{pe(Gt,(zn,Gn)=>{(on(zn,Gn)?an:Tn)(zn,Gn)})},ce=(Gt,on)=>{const an={};return ae(Gt,on,se(an),a),an},de=(Gt,on)=>me.call(Gt,on),ye=(Gt,on)=>de(Gt,on)&&Gt[on]!==void 0&&Gt[on]!==null;var ve=tinymce.util.Tools.resolve("tinymce.util.URI"),_e=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),we=tinymce.util.Tools.resolve("tinymce.util.Tools");const Te=Gt=>w(Gt)&&Gt.nodeName.toLowerCase()==="a",Pe=Gt=>Te(Gt)&&!!De(Gt),Ie=(Gt,on)=>{if(Gt.collapsed)return[];{const an=Gt.cloneContents(),Tn=an.firstChild,zn=new _e(Tn,an),Gn=[];let Lr=Tn;do on(Lr)&&Gn.push(Lr);while(Lr=zn.next());return Gn}},ze=Gt=>/^\w+:/i.test(Gt),De=Gt=>{var on,an;return(an=(on=Gt.getAttribute("data-mce-href"))!==null&&on!==void 0?on:Gt.getAttribute("href"))!==null&&an!==void 0?an:""},Qe=(Gt,on)=>{const an=["noopener"],Tn=Gt?Gt.split(/\s+/):[],zn=qr=>we.trim(qr.sort().join(" ")),Gn=qr=>(qr=Lr(qr),qr.length>0?qr.concat(an):an),Lr=qr=>qr.filter(Cr=>we.inArray(an,Cr)===-1),Ur=on?Gn(Tn):Lr(Tn);return Ur.length>0?zn(Ur):""},Ve=Gt=>Gt.replace(/\uFEFF/g,""),$e=(Gt,on)=>(on=on||Re(Gt.selection.getRng())[0]||Gt.selection.getNode(),Je(on)?p.from(Gt.dom.select("a[href]",on)[0]):p.from(Gt.dom.getParent(on,"a[href]"))),Oe=(Gt,on)=>$e(Gt,on).isSome(),ke=(Gt,on)=>{const an=on.fold(()=>Gt.getContent({format:"text"}),Tn=>Tn.innerText||Tn.textContent||"");return Ve(an)},Re=Gt=>Ie(Gt,Pe),We=Gt=>we.grep(Gt,Pe),Ue=Gt=>We(Gt).length>0,Ze=Gt=>Re(Gt).length>0,Ye=Gt=>{const on=Gt.schema.getTextInlineElements(),an=Gn=>Gn.nodeType===1&&!Te(Gn)&&!de(on,Gn.nodeName.toLowerCase());if($e(Gt).exists(Gn=>Gn.hasAttribute("data-mce-block")))return!1;const zn=Gt.selection.getRng();return zn.collapsed?!0:Ie(zn,an).length===0},Je=Gt=>w(Gt)&&Gt.nodeName==="FIGURE"&&/\bimage\b/i.test(Gt.className),Me=Gt=>M(["title","rel","class","target"],(an,Tn)=>(Gt[Tn].each(zn=>{an[Tn]=zn.length>0?zn:null}),an),{href:Gt.href}),Fe=(Gt,on)=>(on==="http"||on==="https")&&!ze(Gt)?on+"://"+Gt:Gt,je=(Gt,on)=>{const an={...on};if(Z(Gt).length===0&&!q(Gt)){const Tn=Qe(an.rel,an.target==="_blank");an.rel=Tn||null}return p.from(an.target).isNone()&&te(Gt)===!1&&(an.target=U(Gt)),an.href=Fe(an.href,$(Gt)),an},tt=(Gt,on,an,Tn)=>{an.each(zn=>{de(on,"innerText")?on.innerText=zn:on.textContent=zn}),Gt.dom.setAttribs(on,Tn),Gt.selection.select(on)},ot=(Gt,on,an,Tn)=>{const zn=Gt.dom;Je(on)?tn(zn,on,Tn):an.fold(()=>{Gt.execCommand("mceInsertLink",!1,Tn)},Gn=>{Gt.insertContent(zn.createHTML("a",Tn,zn.encode(Gn)))})},Ge=(Gt,on,an)=>{const Tn=Gt.selection.getNode(),zn=$e(Gt,Tn),Gn=je(Gt,Me(an));Gt.undoManager.transact(()=>{an.href===on.href&&on.attach(),zn.fold(()=>{ot(Gt,Tn,an.text,Gn)},Lr=>{Gt.focus(),tt(Gt,Lr,an.text,Gn)})})},ht=Gt=>{const on=Gt.dom,an=Gt.selection,Tn=an.getBookmark(),zn=an.getRng().cloneRange(),Gn=on.getParent(zn.startContainer,"a[href]",Gt.getBody()),Lr=on.getParent(zn.endContainer,"a[href]",Gt.getBody());Gn&&zn.setStartBefore(Gn),Lr&&zn.setEndAfter(Lr),an.setRng(zn),Gt.execCommand("unlink"),an.moveToBookmark(Tn)},pt=Gt=>{Gt.undoManager.transact(()=>{const on=Gt.selection.getNode();Je(on)?ln(Gt,on):ht(Gt),Gt.focus()})},St=Gt=>{const{class:on,href:an,rel:Tn,target:zn,text:Gn,title:Lr}=Gt;return ce({class:on.getOrNull(),href:an,rel:Tn.getOrNull(),target:zn.getOrNull(),text:Gn.getOrNull(),title:Lr.getOrNull()},(Ur,qr)=>b(Ur)===!1)},Ft=(Gt,on)=>{const an=Gt.options.get,Tn={allow_html_data_urls:an("allow_html_data_urls"),allow_script_urls:an("allow_script_urls"),allow_svg_data_urls:an("allow_svg_data_urls")},zn=on.href;return{...on,href:ve.isDomSafe(zn,"a",Tn)?zn:""}},zt=(Gt,on,an)=>{const Tn=Ft(Gt,an);Gt.hasPlugin("rtc",!0)?Gt.execCommand("createlink",!1,St(Tn)):Ge(Gt,on,Tn)},Yt=Gt=>{Gt.hasPlugin("rtc",!0)?Gt.execCommand("unlink"):pt(Gt)},ln=(Gt,on)=>{var an;const Tn=Gt.dom.select("img",on)[0];if(Tn){const zn=Gt.dom.getParents(Tn,"a[href]",on)[0];zn&&((an=zn.parentNode)===null||an===void 0||an.insertBefore(Tn,zn),Gt.dom.remove(zn))}},tn=(Gt,on,an)=>{var Tn;const zn=Gt.select("img",on)[0];if(zn){const Gn=Gt.create("a",an);(Tn=zn.parentNode)===null||Tn===void 0||Tn.insertBefore(Gn,zn),Gn.appendChild(zn)}},Et=Gt=>s(Gt.value)?Gt.value:"",Ot=Gt=>s(Gt.text)?Gt.text:s(Gt.title)?Gt.title:"",cn=(Gt,on)=>{const an=[];return we.each(Gt,Tn=>{const zn=Ot(Tn);if(Tn.menu!==void 0){const Gn=cn(Tn.menu,on);an.push({text:zn,items:Gn})}else{const Gn=on(Tn);an.push({text:zn,value:Gn})}}),an},Cn=(Gt=Et)=>on=>p.from(on).map(an=>cn(an,Gt)),vt={sanitize:Gt=>Cn(Et)(Gt),sanitizeWith:Cn,createUi:(Gt,on)=>an=>({name:Gt,type:"listbox",label:on,items:an}),getValue:Et},xt=Gt=>ye(Gt,"items"),st=(Gt,on)=>A(on,an=>xt(an)?st(Gt,an.items):k(an.value===Gt,an)),bt=(Gt,on,an,Tn)=>{const zn=Tn[on],Gn=Gt.length>0;return zn!==void 0?st(zn,an).map(Lr=>({url:{value:Lr.value,meta:{text:Gn?Gt:Lr.text,attach:a}},text:Gn?Gt:Lr.text})):p.none()},Vt=(Gt,on)=>on==="link"?Gt.link:on==="anchor"?Gt.anchor:p.none(),it={init:(Gt,on)=>{const an={text:Gt.text,title:Gt.title},Tn=qr=>{var Cr;return k(an.title.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.title).getOr(""))},zn=qr=>{var Cr;return k(an.text.length<=0,p.from((Cr=qr.meta)===null||Cr===void 0?void 0:Cr.text).getOr(qr.value))},Gn=qr=>{const Cr=zn(qr.url),wo=Tn(qr.url);return Cr.isSome()||wo.isSome()?p.some({...Cr.map(Nr=>({text:Nr})).getOr({}),...wo.map(Nr=>({title:Nr})).getOr({})}):p.none()},Lr=(qr,Cr)=>{const wo=Vt(on,Cr).getOr([]);return bt(an.text,Cr,wo,qr)};return{onChange:(qr,Cr)=>{const wo=Cr.name;return wo==="url"?Gn(qr()):C(["anchor","link"],wo)?Lr(qr(),wo):((wo==="text"||wo==="title")&&(an[wo]=qr()[wo]),p.none())}}},getDelta:bt};var at=tinymce.util.Tools.resolve("tinymce.util.Delay");const Bt=(Gt,on,an)=>{const Tn=Gt.selection.getRng();at.setEditorTimeout(Gt,()=>{Gt.windowManager.confirm(on,zn=>{Gt.selection.setRng(Tn),an(zn)})})},_t=Gt=>{const on=Gt.href;return on.indexOf("@")>0&&on.indexOf("/")===-1&&on.indexOf("mailto:")===-1?p.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:Tn=>({...Tn,href:"mailto:"+on})}):p.none()},qt=(Gt,on)=>an=>{const Tn=an.href;return Gt===1&&!ze(Tn)||Gt===0&&/^\s*www(\.|\d\.)/i.test(Tn)?p.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${on}:// prefix?`,preprocess:Gn=>({...Gn,href:on+"://"+Tn})}):p.none()},Jt={preprocess:(Gt,on)=>A([_t,qt($(Gt),X(Gt))],an=>an(on)).fold(()=>Promise.resolve(on),an=>new Promise(Tn=>{Bt(Gt,an.message,zn=>{Tn(zn?an.preprocess(on):on)})}))},Nt={getAnchors:Gt=>{const on=Gt.dom.select("a:not([href])"),an=P(on,Tn=>{const zn=Tn.name||Tn.id;return zn?[{text:zn,value:"#"+zn}]:[]});return an.length>0?p.some([{text:"None",value:""}].concat(an)):p.none()}},rn={getClasses:Gt=>{const on=K(Gt);return on.length>0?vt.sanitize(on):p.none()}},_n=Gt=>{try{return p.some(JSON.parse(Gt))}catch{return p.none()}},An={getLinks:Gt=>{const on=Tn=>Gt.convertURL(Tn.value||Tn.url||"","href"),an=j(Gt);return new Promise(Tn=>{s(an)?fetch(an).then(zn=>zn.ok?zn.text().then(_n):Promise.reject()).then(Tn,()=>Tn(p.none())):y(an)?an(zn=>Tn(p.some(zn))):Tn(p.from(an))}).then(Tn=>Tn.bind(vt.sanitizeWith(on)).map(zn=>zn.length>0?[{text:"None",value:""}].concat(zn):zn))}},fr={getRels:(Gt,on)=>{const an=Z(Gt);if(an.length>0){const Tn=L(on,"_blank"),zn=q(Gt)===!1,Gn=Ur=>Qe(vt.getValue(Ur),Tn);return(zn?vt.sanitizeWith(Gn):vt.sanitize)(an)}return p.none()}},Un=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],tr={getTargets:Gt=>{const on=te(Gt);return u(on)?vt.sanitize(on).orThunk(()=>p.some(Un)):on===!1?p.none():p.some(Un)}},Br=(Gt,on,an)=>{const Tn=Gt.getAttrib(on,an);return Tn!==null&&Tn.length>0?p.some(Tn):p.none()},$r=(Gt,on)=>{const an=Gt.dom,zn=Ye(Gt)?p.some(ke(Gt.selection,on)):p.none(),Gn=on.bind(wo=>p.from(an.getAttrib(wo,"href"))),Lr=on.bind(wo=>p.from(an.getAttrib(wo,"target"))),Ur=on.bind(wo=>Br(an,wo,"rel")),qr=on.bind(wo=>Br(an,wo,"class")),Cr=on.bind(wo=>Br(an,wo,"title"));return{url:Gn,text:zn,title:Cr,target:Lr,rel:Ur,linkClass:qr}},qn={collect:(Gt,on)=>An.getLinks(Gt).then(an=>{const Tn=$r(Gt,on);return{anchor:Tn,catalogs:{targets:tr.getTargets(Gt),rels:fr.getRels(Gt,Tn.target),classes:rn.getClasses(Gt),anchor:Nt.getAnchors(Gt),link:an},optNode:on,flags:{titleEnabled:re(Gt)}}})},gr=(Gt,on)=>an=>{const Tn=an.getData();if(!Tn.url.value){Yt(Gt),an.close();return}const zn=Ur=>p.from(Tn[Ur]).filter(qr=>!L(on.anchor[Ur],qr)),Gn={href:Tn.url.value,text:zn("text"),target:zn("target"),rel:zn("rel"),class:zn("linkClass"),title:zn("title")},Lr={href:Tn.url.value,attach:Tn.url.meta!==void 0&&Tn.url.meta.attach?Tn.url.meta.attach:a};Jt.preprocess(Gt,Gn).then(Ur=>{zt(Gt,Lr,Ur)}),an.close()},sr=Gt=>{const on=$e(Gt);return qn.collect(Gt,on)},lr=(Gt,on)=>{const an=Gt.anchor,Tn=an.url.getOr("");return{url:{value:Tn,meta:{original:{value:Tn}}},text:an.text.getOr(""),title:an.title.getOr(""),anchor:Tn,link:Tn,rel:an.rel.getOr(""),target:an.target.or(on).getOr(""),linkClass:an.linkClass.getOr("")}},zr=(Gt,on,an)=>{const Tn=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],zn=Gt.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),Gn=Gt.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],Lr=p.from(U(an)),Ur=lr(Gt,Lr),qr=Gt.catalogs,Cr=it.init(Ur,qr);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:T([Tn,zn,Gn,D([qr.anchor.map(vt.createUi("anchor","Anchors")),qr.rels.map(vt.createUi("rel","Rel")),qr.targets.map(vt.createUi("target","Open link in...")),qr.link.map(vt.createUi("link","Link list")),qr.classes.map(vt.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ur,onChange:(Nr,{name:Eo})=>{Cr.onChange(Nr.getData,{name:Eo}).each(zo=>{Nr.setData(zo)})},onSubmit:on}},Vr=Gt=>{sr(Gt).then(an=>{const Tn=gr(Gt,an);return zr(an,Tn,Gt)}).then(an=>{Gt.windowManager.open(an)})},eo=Gt=>{Gt.addCommand("mceLink",(on,an)=>{(an==null?void 0:an.dialog)===!0||!Y(Gt)?Vr(Gt):Gt.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"})})},Jr=Gt=>{Gt.addShortcut("Meta+K","",()=>{Gt.execCommand("mceLink")})},Yr=Gt=>{let on=Gt;return{get:()=>on,set:zn=>{on=zn}}},to=Gt=>{const on=Yr(p.none()),an=()=>on.get().each(Gt);return{clear:()=>{an(),on.set(p.none())},isSet:()=>on.get().isSome(),get:()=>on.get(),set:Ur=>{an(),on.set(p.some(Ur))}}},co=()=>{const Gt=to(a);return{...Gt,on:an=>Gt.get().each(an)}};var Fo=tinymce.util.Tools.resolve("tinymce.util.VK");const _o=(Gt,on)=>{document.body.appendChild(Gt),Gt.dispatchEvent(on),document.body.removeChild(Gt)},$o=Gt=>{const on=document.createElement("a");on.target="_blank",on.href=Gt,on.rel="noreferrer noopener";const an=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});document.dispatchEvent(an),_o(on,an)},Mo=Gt=>Gt.altKey===!0&&Gt.shiftKey===!1&&Gt.ctrlKey===!1&&Gt.metaKey===!1,pi=(Gt,on)=>{if(on){const an=De(on);if(/^#/.test(an)){const Tn=Gt.dom.select(an);Tn.length&&Gt.selection.scrollIntoView(Tn[0],!0)}else $o(on.href)}},Hn=Gt=>{const on=Gt.selection.getRng(),an=on.startContainer;return Pe(an)&&on.startContainer===on.endContainer&&Gt.dom.select("img",an).length===1},ar=(Gt,on)=>{const an=We(Gt.dom.getParents(on));return k(an.length===1,an[0])},Dr=Gt=>{const on=Re(Gt.selection.getRng());return k(on.length>0,on[0]).or(ar(Gt,Gt.selection.getNode()))},Sr=Gt=>Gt.selection.isCollapsed()||Hn(Gt)?ar(Gt,Gt.selection.getStart()):Dr(Gt),Zr=Gt=>{const on=co(),an=()=>on.get().or(Sr(Gt)),Tn=()=>an().each(zn=>pi(Gt,zn));return Gt.on("contextmenu",zn=>{ar(Gt,zn.target).each(on.set)}),Gt.on("SelectionChange",()=>{on.isSet()||Sr(Gt).each(on.set)}),Gt.on("click",zn=>{on.clear();const Gn=We(Gt.dom.getParents(zn.target));Gn.length===1&&Fo.metaKeyPressed(zn)&&(zn.preventDefault(),pi(Gt,Gn[0]))}),Gt.on("keydown",zn=>{on.clear(),!zn.isDefaultPrevented()&&zn.keyCode===13&&Mo(zn)&&an().each(Gn=>{zn.preventDefault(),pi(Gt,Gn)})}),{gotoSelectedLink:Tn}},go=Gt=>()=>{Gt.execCommand("mceLink",!1,{dialog:!0})},oo=(Gt,on)=>(Gt.on("NodeChange",on),()=>Gt.off("NodeChange",on)),io=Gt=>on=>{const an=()=>{on.setActive(!Gt.mode.isReadOnly()&&Oe(Gt,Gt.selection.getNode())),on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},Do=Gt=>on=>{const an=()=>{on.setEnabled(Gt.selection.isEditable())};return an(),oo(Gt,an)},jn=Gt=>on=>{const an=Gn=>Ue(Gn)||Ze(Gt.selection.getRng()),Tn=Gt.dom.getParents(Gt.selection.getStart()),zn=Gn=>{on.setEnabled(an(Gn)&&Gt.selection.isEditable())};return zn(Tn),oo(Gt,Gn=>zn(Gn.parents))},Rr=(Gt,on)=>{Gt.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",shortcut:"Meta+K",onAction:go(Gt),onSetup:io(Gt)}),Gt.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},On=(Gt,on)=>{Gt.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:on.gotoSelectedLink,onSetup:jn(Gt)}),Gt.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:go(Gt),onSetup:Do(Gt)}),Gt.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>Yt(Gt),onSetup:jn(Gt)})},Yn=Gt=>{const on="link unlink openlink",an="link";Gt.ui.registry.addContextMenu("link",{update:Tn=>Gt.dom.isEditable(Tn)?Ue(Gt.dom.getParents(Tn,"a"))?on:an:""})},ir=(Gt,on)=>{const an=Gn=>{Gn.selection.collapse(!1)},Tn=Gn=>{const Lr=Gt.selection.getNode();return Gn.setEnabled(Oe(Gt,Lr)),a},zn=Gn=>{const Lr=$e(Gt),Ur=Ye(Gt);if(Lr.isNone()&&Ur){const qr=ke(Gt.selection,Lr);return k(qr.length===0,Gn)}else return p.none()};Gt.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:io(Gt)},label:"Link",predicate:Gn=>Q(Gt)&&Oe(Gt,Gn),initValue:()=>$e(Gt).fold(c(""),De),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:Gn=>{const Lr=Gt.selection.getNode();return Gn.setActive(Oe(Gt,Lr)),io(Gt)(Gn)},onAction:Gn=>{const Lr=Gn.getValue(),Ur=zn(Lr);zt(Gt,{href:Lr,attach:a},{href:Lr,text:Ur,title:p.none(),rel:p.none(),target:p.from(U(Gt)),class:p.none()}),an(Gt),Gn.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:Tn,onAction:Gn=>{Yt(Gt),Gn.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:Tn,onAction:Gn=>{on.gotoSelectedLink(),Gn.hide()}}]})},kr=Gt=>{const on=Zr(Gt);Rr(Gt,on),On(Gt,on),Yn(Gt),ir(Gt,on)};var Er=()=>{t.add("link",Gt=>{z(Gt),eo(Gt),kr(Gt),Jr(Gt)})};Er()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(mt,Tt,xn)=>{var Nn;return xn(mt,Tt.prototype)?!0:((Nn=mt.constructor)===null||Nn===void 0?void 0:Nn.name)===Tt.name},o=mt=>{const Tt=typeof mt;return mt===null?"null":Tt==="object"&&Array.isArray(mt)?"array":Tt==="object"&&e(mt,String,(xn,Nn)=>Nn.isPrototypeOf(xn))?"string":Tt},f=mt=>Tt=>o(Tt)===mt,E=mt=>Tt=>typeof Tt===mt,d=mt=>Tt=>mt===Tt,s=f("string"),n=f("array"),u=E("boolean"),b=d(void 0),i=mt=>mt==null,S=mt=>!i(mt),w=E("function"),y=E("number"),m=()=>{},a=(mt,Tt)=>xn=>mt(Tt(xn)),c=mt=>()=>mt,h=mt=>mt,p=(mt,Tt)=>mt===Tt;function v(mt,...Tt){return(...xn)=>{const Nn=Tt.concat(xn);return mt.apply(null,Nn)}}const _=mt=>{mt()},O=c(!1),C=c(!0);class x{constructor(Tt,xn){this.tag=Tt,this.value=xn}static some(Tt){return new x(!0,Tt)}static none(){return x.singletonNone}fold(Tt,xn){return this.tag?xn(this.value):Tt()}isSome(){return this.tag}isNone(){return!this.tag}map(Tt){return this.tag?x.some(Tt(this.value)):x.none()}bind(Tt){return this.tag?Tt(this.value):x.none()}exists(Tt){return this.tag&&Tt(this.value)}forall(Tt){return!this.tag||Tt(this.value)}filter(Tt){return!this.tag||Tt(this.value)?this:x.none()}getOr(Tt){return this.tag?this.value:Tt}or(Tt){return this.tag?this:Tt}getOrThunk(Tt){return this.tag?this.value:Tt()}orThunk(Tt){return this.tag?this:Tt()}getOrDie(Tt){if(this.tag)return this.value;throw new Error(Tt??"Called getOrDie on None")}static from(Tt){return S(Tt)?x.some(Tt):x.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Tt){this.tag&&Tt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}x.singletonNone=new x(!1);const R=Object.keys,M=Object.hasOwnProperty,T=(mt,Tt)=>{const xn=R(mt);for(let Nn=0,yr=xn.length;Nn(Tt,xn)=>{mt[xn]=Tt},A=(mt,Tt,xn,Nn)=>{T(mt,(yr,so)=>{(Tt(yr,so)?xn:Nn)(yr,so)})},L=(mt,Tt)=>{const xn={};return A(mt,Tt,P(xn),m),xn},D=(mt,Tt)=>{const xn=[];return T(mt,(Nn,yr)=>{xn.push(Tt(Nn,yr))}),xn},k=mt=>D(mt,h),I=mt=>R(mt).length,z=(mt,Tt)=>$(mt,Tt)?x.from(mt[Tt]):x.none(),$=(mt,Tt)=>M.call(mt,Tt),Q=(mt,Tt)=>$(mt,Tt)&&mt[Tt]!==void 0&&mt[Tt]!==null,j=mt=>{for(const Tt in mt)if(M.call(mt,Tt))return!1;return!0},U=Array.prototype.indexOf,X=Array.prototype.push,te=(mt,Tt)=>U.call(mt,Tt),Z=(mt,Tt)=>te(mt,Tt)>-1,K=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn=[];for(let Nn=0;Nn{const xn=mt.length,Nn=new Array(xn);for(let yr=0;yr{for(let xn=0,Nn=mt.length;xn{for(let xn=mt.length-1;xn>=0;xn--){const Nn=mt[xn];Tt(Nn,xn)}},me=(mt,Tt)=>{const xn=[],Nn=[];for(let yr=0,so=mt.length;yr{const xn=[];for(let Nn=0,yr=mt.length;Nn(ee(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ae=(mt,Tt,xn)=>(Y(mt,(Nn,yr)=>{xn=Tt(xn,Nn,yr)}),xn),ce=(mt,Tt,xn)=>{for(let Nn=0,yr=mt.length;Nnce(mt,Tt,O),ye=mt=>{const Tt=[];for(let xn=0,Nn=mt.length;xnye(q(mt,Tt)),_e=(mt,Tt)=>{for(let xn=0,Nn=mt.length;xn{const xn={};for(let Nn=0,yr=mt.length;NnTt>=0&&TtTe(mt,0),Ie=mt=>Te(mt,mt.length-1),ze=(mt,Tt)=>{for(let xn=0;xn{const Nn=(Tt||document).createElement("div");if(Nn.innerHTML=mt,!Nn.hasChildNodes()||Nn.childNodes.length>1){const yr="HTML does not have a single root node";throw console.error(yr,mt),new Error(yr)}return Ue(Nn.childNodes[0])},Re=(mt,Tt)=>{const Nn=(Tt||document).createElement(mt);return Ue(Nn)},We=(mt,Tt)=>{const Nn=(Tt||document).createTextNode(mt);return Ue(Nn)},Ue=mt=>{if(mt==null)throw new Error("Node cannot be null or undefined");return{dom:mt}},Ye={fromHtml:ke,fromTag:Re,fromText:We,fromDom:Ue,fromPoint:(mt,Tt,xn)=>x.from(mt.dom.elementFromPoint(Tt,xn)).map(Ue)},Je=(mt,Tt)=>{const xn=mt.dom;if(xn.nodeType!==$e)return!1;{const Nn=xn;if(Nn.matches!==void 0)return Nn.matches(Tt);if(Nn.msMatchesSelector!==void 0)return Nn.msMatchesSelector(Tt);if(Nn.webkitMatchesSelector!==void 0)return Nn.webkitMatchesSelector(Tt);if(Nn.mozMatchesSelector!==void 0)return Nn.mozMatchesSelector(Tt);throw new Error("Browser lacks native selectors")}},Me=mt=>mt.nodeType!==$e&&mt.nodeType!==Qe&&mt.nodeType!==Ve||mt.childElementCount===0,Fe=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?[]:q(xn.querySelectorAll(mt),Ye.fromDom)},je=(mt,Tt)=>{const xn=Tt===void 0?document:Tt.dom;return Me(xn)?x.none():x.from(xn.querySelector(mt)).map(Ye.fromDom)},tt=(mt,Tt)=>mt.dom===Tt.dom,ot=Je;typeof window<"u"||Function("return this;")();const Ge=mt=>mt.dom.nodeName.toLowerCase(),ht=mt=>mt.dom.nodeType,pt=mt=>Tt=>ht(Tt)===mt,St=mt=>ht(mt)===De||Ge(mt)==="#comment",Ft=pt($e),zt=pt(Oe),Yt=pt(Qe),ln=pt(Ve),tn=mt=>Tt=>Ft(Tt)&&Ge(Tt)===mt,Et=mt=>Ye.fromDom(mt.dom.ownerDocument),Ot=mt=>Yt(mt)?mt:Et(mt),cn=mt=>x.from(mt.dom.parentNode).map(Ye.fromDom),Cn=(mt,Tt)=>{const xn=w(Tt)?Tt:O;let Nn=mt.dom;const yr=[];for(;Nn.parentNode!==null&&Nn.parentNode!==void 0;){const so=Nn.parentNode,No=Ye.fromDom(so);if(yr.push(No),xn(No)===!0)break;Nn=so}return yr},Pn=mt=>x.from(mt.dom.previousSibling).map(Ye.fromDom),Sn=mt=>x.from(mt.dom.nextSibling).map(Ye.fromDom),vt=mt=>q(mt.dom.childNodes,Ye.fromDom),xt=(mt,Tt)=>{const xn=mt.dom.childNodes;return x.from(xn[Tt]).map(Ye.fromDom)},st=mt=>xt(mt,0),bt=mt=>ln(mt)&&S(mt.dom.host),Vt=mt=>Ye.fromDom(mt.dom.getRootNode()),Dt=mt=>{const Tt=Vt(mt);return bt(Tt)?x.some(Tt):x.none()},it=mt=>Ye.fromDom(mt.dom.host),at=mt=>{const Tt=zt(mt)?mt.dom.parentNode:mt.dom;if(Tt==null||Tt.ownerDocument===null)return!1;const xn=Tt.ownerDocument;return Dt(Ye.fromDom(Tt)).fold(()=>xn.body.contains(Tt),a(at,it))};var Bt=(mt,Tt,xn,Nn,yr)=>mt(xn,Nn)?x.some(xn):w(yr)&&yr(xn)?x.none():Tt(xn,Nn,yr);const _t=(mt,Tt,xn)=>{let Nn=mt.dom;const yr=w(xn)?xn:O;for(;Nn.parentNode;){Nn=Nn.parentNode;const so=Ye.fromDom(Nn);if(Tt(so))return x.some(so);if(yr(so))break}return x.none()},qt=(mt,Tt,xn)=>Bt((yr,so)=>so(yr),_t,mt,Tt,xn),en=(mt,Tt)=>{const xn=yr=>Tt(Ye.fromDom(yr));return de(mt.dom.childNodes,xn).map(Ye.fromDom)},Jt=(mt,Tt,xn)=>_t(mt,Nn=>Je(Nn,Tt),xn),Zt=(mt,Tt)=>en(mt,xn=>Je(xn,Tt)),Nt=(mt,Tt)=>je(Tt,mt),sn=(mt,Tt,xn)=>Bt((yr,so)=>Je(yr,so),Jt,mt,Tt,xn),rn=mt=>sn(mt,"[contenteditable]"),_n=(mt,Tt=!1)=>at(mt)?mt.dom.isContentEditable:rn(mt).fold(c(Tt),xn=>wn(xn)==="true"),wn=mt=>mt.dom.contentEditable,An=mt=>mt.nodeName.toLowerCase(),Kn=mt=>Ye.fromDom(mt.getBody()),fr=mt=>Tt=>tt(Tt,Kn(mt)),Un=mt=>mt?mt.replace(/px$/,""):"",Zn=mt=>/^\d+(\.\d+)?$/.test(mt)?mt+"px":mt,tr=mt=>Ye.fromDom(mt.selection.getStart()),Br=mt=>Ye.fromDom(mt.selection.getEnd()),$r=mt=>qt(mt,tn("table")).forall(_n),vr=(mt,Tt)=>pe(vt(mt),Tt),qn=(mt,Tt)=>{let xn=[];return Y(vt(mt),Nn=>{Tt(Nn)&&(xn=xn.concat([Nn])),xn=xn.concat(qn(Nn,Tt))}),xn},gr=(mt,Tt)=>vr(mt,xn=>Je(xn,Tt)),sr=(mt,Tt)=>Fe(Tt,mt),lr=(mt,Tt,xn)=>{if(s(xn)||u(xn)||y(xn))mt.setAttribute(Tt,xn+"");else throw console.error("Invalid call to Attribute.set. Key ",Tt,":: Value ",xn,":: Element ",mt),new Error("Attribute value was not simple")},zr=(mt,Tt,xn)=>{lr(mt.dom,Tt,xn)},Vr=(mt,Tt)=>{const xn=mt.dom;T(Tt,(Nn,yr)=>{lr(xn,yr,Nn)})},eo=(mt,Tt)=>{const xn=mt.dom.getAttribute(Tt);return xn===null?void 0:xn},Jr=(mt,Tt)=>x.from(eo(mt,Tt)),Yr=(mt,Tt)=>{mt.dom.removeAttribute(Tt)},to=mt=>ae(mt.dom.attributes,(Tt,xn)=>(Tt[xn.name]=xn.value,Tt),{}),co=(mt,Tt,xn=p)=>mt.exists(Nn=>xn(Nn,Tt)),Fo=mt=>{const Tt=[],xn=Nn=>{Tt.push(Nn)};for(let Nn=0;Nnmt.isSome()&&Tt.isSome()?x.some(xn(mt.getOrDie(),Tt.getOrDie())):x.none(),$o=mt=>mt.bind(h),Mo=(mt,Tt)=>mt?x.some(Tt):x.none(),pi=(mt,Tt)=>mt.substring(Tt),Hn=(mt,Tt,xn)=>Tt===""||mt.length>=Tt.length&&mt.substr(xn,xn+Tt.length)===Tt,ar=(mt,Tt)=>Dr(mt,Tt)?pi(mt,Tt.length):mt,Dr=(mt,Tt)=>Hn(mt,Tt,0),Zr=(mt=>Tt=>Tt.replace(mt,""))(/^\s+|\s+$/g),go=mt=>mt.length>0,oo=mt=>!go(mt),io=(mt,Tt=10)=>{const xn=parseInt(mt,Tt);return isNaN(xn)?x.none():x.some(xn)},Do=mt=>{const Tt=parseFloat(mt);return isNaN(Tt)?x.none():x.some(Tt)},jn=mt=>mt.style!==void 0&&w(mt.style.getPropertyValue),Rr=(mt,Tt,xn)=>{if(!s(xn))throw console.error("Invalid call to CSS.set. Property ",Tt,":: Value ",xn,":: Element ",mt),new Error("CSS value must be a string: "+xn);jn(mt)&&mt.style.setProperty(Tt,xn)},On=(mt,Tt)=>{jn(mt)&&mt.style.removeProperty(Tt)},Yn=(mt,Tt,xn)=>{const Nn=mt.dom;Rr(Nn,Tt,xn)},ir=(mt,Tt)=>{const xn=mt.dom,yr=window.getComputedStyle(xn).getPropertyValue(Tt);return yr===""&&!at(mt)?kr(xn,Tt):yr},kr=(mt,Tt)=>jn(mt)?mt.style.getPropertyValue(Tt):"",Er=(mt,Tt)=>{const xn=mt.dom,Nn=kr(xn,Tt);return x.from(Nn).filter(yr=>yr.length>0)},Gt=(mt,Tt)=>{const xn=mt.dom;On(xn,Tt),co(Jr(mt,"style").map(Zr),"")&&Yr(mt,"style")},on=(mt,Tt,xn=0)=>Jr(mt,Tt).map(Nn=>parseInt(Nn,10)).getOr(xn),an=(mt,Tt)=>Tn(mt,Tt,C),Tn=(mt,Tt,xn)=>ve(vt(mt),Nn=>Je(Nn,Tt)?xn(Nn)?[Nn]:[]:Tn(Nn,Tt,xn)),zn=["tfoot","thead","tbody","colgroup"],Gn=mt=>Z(zn,mt),Lr=(mt,Tt)=>({rows:mt,columns:Tt}),Ur=(mt,Tt,xn)=>({element:mt,rowspan:Tt,colspan:xn}),qr=(mt,Tt,xn,Nn,yr,so)=>({element:mt,rowspan:Tt,colspan:xn,row:Nn,column:yr,isLocked:so}),Cr=(mt,Tt,xn)=>({element:mt,cells:Tt,section:xn}),wo=(mt,Tt,xn,Nn)=>({startRow:mt,startCol:Tt,finishRow:xn,finishCol:Nn}),Nr=(mt,Tt,xn)=>({element:mt,colspan:Tt,column:xn}),Eo=(mt,Tt)=>({element:mt,columns:Tt}),zo=(mt,Tt,xn=O)=>{if(xn(Tt))return x.none();if(Z(mt,Ge(Tt)))return x.some(Tt);const Nn=yr=>Je(yr,"table")||xn(yr);return Jt(Tt,mt.join(","),Nn)},Qt=(mt,Tt)=>zo(["td","th"],mt,Tt),Mn=mt=>an(mt,"th,td"),Fn=mt=>Je(mt,"colgroup")?gr(mt,"col"):ve(Oo(mt),Tt=>gr(Tt,"col")),dr=(mt,Tt)=>sn(mt,"table",Tt),xr=mt=>an(mt,"tr"),Oo=mt=>dr(mt).fold(c([]),Tt=>gr(Tt,"colgroup")),mi=(mt,Tt)=>q(mt,xn=>{if(Ge(xn)==="colgroup"){const Nn=q(Fn(xn),yr=>{const so=on(yr,"span",1);return Ur(yr,1,so)});return Cr(xn,Nn,"colgroup")}else{const Nn=q(Mn(xn),yr=>{const so=on(yr,"rowspan",1),No=on(yr,"colspan",1);return Ur(yr,so,No)});return Cr(xn,Nn,Tt(xn))}}),Di=mt=>cn(mt).map(Tt=>{const xn=Ge(Tt);return Gn(xn)?xn:"tbody"}).getOr("tbody"),To=mt=>{const Tt=xr(mt),Nn=[...Oo(mt),...Tt];return mi(Nn,Di)},Ia="data-snooker-locked-cols",Ds=mt=>Jr(mt,Ia).bind(Tt=>x.from(Tt.match(/\d+/g))).map(Tt=>we(Tt,C)),fs=(mt,Tt)=>mt+","+Tt,zi=(mt,Tt,xn)=>x.from(mt.access[fs(Tt,xn)]),yl=(mt,Tt,xn)=>{const Nn=Bs(mt,yr=>xn(Tt,yr.element));return Nn.length>0?x.some(Nn[0]):x.none()},Bs=(mt,Tt)=>{const xn=ve(mt.all,Nn=>Nn.cells);return pe(xn,Tt)},yf=mt=>{const Tt={};let xn=0;return Y(mt.cells,Nn=>{const yr=Nn.colspan;re(yr,so=>{const No=xn+so;Tt[No]=Nr(Nn.element,yr,No)}),xn+=yr}),Tt},il=mt=>{const Tt={},xn=[],yr=Pe(mt).map(Jc=>Jc.element).bind(dr).bind(Ds).getOr({});let so=0,No=0,ui=0;const{pass:ga,fail:Sa}=me(mt,Jc=>Jc.section==="colgroup");Y(Sa,Jc=>{const Is=[];Y(Jc.cells,Hc=>{let Nl=0;for(;Tt[fs(ui,Nl)]!==void 0;)Nl++;const lh=Q(yr,Nl.toString()),r0=qr(Hc.element,Hc.rowspan,Hc.colspan,ui,Nl,lh);for(let ch=0;ch{const Is=yf(Jc);return{colgroups:[Eo(Jc.element,k(Is))],columns:Is}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:Lr(so,No),access:Tt,all:xn,columns:ua,colgroups:Cs}},Bl={fromTable:mt=>{const Tt=To(mt);return il(Tt)},generate:il,getAt:zi,findItem:yl,filterItems:Bs,justCells:mt=>ve(mt.all,Tt=>Tt.cells),justColumns:mt=>k(mt.columns),hasColumns:mt=>R(mt.columns).length>0,getColumnAt:(mt,Tt)=>x.from(mt.columns[Tt])};var Tc=tinymce.util.Tools.resolve("tinymce.util.Tools");const iu=(mt,Tt,xn)=>{const Nn=mt.select("td,th",Tt);let yr;for(let so=0;so{Tc.each("left center right".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("align"+Nn,{},Tt)}),xn&&mt.formatter.apply("align"+xn,{},Tt)},zf=(mt,Tt,xn)=>{Tc.each("top middle bottom".split(" "),Nn=>{Nn!==xn&&mt.formatter.remove("valign"+Nn,{},Tt)}),xn&&mt.formatter.apply("valign"+xn,{},Tt)},_s=(mt,Tt,xn)=>{mt.dispatch("TableModified",{...xn,table:Tt})},ma=(mt,Tt)=>Do(mt).getOr(Tt),mu=(mt,Tt,xn)=>ma(ir(mt,Tt),xn),Uc=(mt,Tt,xn,Nn)=>{const yr=mu(mt,`padding-${xn}`,0),so=mu(mt,`padding-${Nn}`,0),No=mu(mt,`border-${xn}-width`,0),ui=mu(mt,`border-${Nn}-width`,0);return Tt-yr-so-No-ui},Kf=(mt,Tt)=>{const xn=mt.dom,Nn=xn.getBoundingClientRect().width||xn.offsetWidth;return Tt==="border-box"?Nn:Uc(mt,Nn,"left","right")},Wl=mt=>Kf(mt,"content-box");var Ml=tinymce.util.Tools.resolve("tinymce.Env");const Jf="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",Nf=re(5,mt=>{const Tt=`${mt+1}px`;return{title:Tt,value:Tt}}),Jl=q(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],mt=>({title:mt,value:mt.toLowerCase()})),Gh="100%",ll=mt=>{var Tt;const xn=mt.dom,Nn=(Tt=xn.getParent(mt.selection.getStart(),xn.isBlock))!==null&&Tt!==void 0?Tt:mt.getBody();return Wl(Ye.fromDom(Nn))+"px"},Tu=(mt,Tt)=>oh(mt)||!bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},gu=(mt,Tt)=>oh(mt)||bl(mt)?Tt:cs(mt)?{...Tt,width:ll(mt)}:{...Tt,width:Gh},ec=mt=>Tt=>Tt.options.get(mt),Dc=mt=>{const Tt=mt.options.register;Tt("table_border_widths",{processor:"object[]",default:Nf}),Tt("table_border_styles",{processor:"object[]",default:Jl}),Tt("table_cell_advtab",{processor:"boolean",default:!0}),Tt("table_row_advtab",{processor:"boolean",default:!0}),Tt("table_advtab",{processor:"boolean",default:!0}),Tt("table_appearance_options",{processor:"boolean",default:!0}),Tt("table_grid",{processor:"boolean",default:!Ml.deviceType.isTouch()}),Tt("table_cell_class_list",{processor:"object[]",default:[]}),Tt("table_row_class_list",{processor:"object[]",default:[]}),Tt("table_class_list",{processor:"object[]",default:[]}),Tt("table_toolbar",{processor:"string",default:Jf}),Tt("table_background_color_map",{processor:"object[]",default:[]}),Tt("table_border_color_map",{processor:"object[]",default:[]})},tc=ec("table_sizing_mode"),Lp=ec("table_border_widths"),rh=ec("table_border_styles"),rf=ec("table_cell_advtab"),of=ec("table_row_advtab"),bf=ec("table_advtab"),vu=ec("table_appearance_options"),$d=ec("table_grid"),bl=ec("table_style_by_css"),Zu=ec("table_cell_class_list"),Kh=ec("table_row_class_list"),Cu=ec("table_class_list"),ed=ec("table_toolbar"),Bu=ec("table_background_color_map"),vd=ec("table_border_color_map"),cs=mt=>tc(mt)==="fixed",oh=mt=>tc(mt)==="responsive",Jh=mt=>{const Tt=mt.options,xn=Tt.get("table_default_styles");return Tt.isSet("table_default_styles")?xn:Tu(mt,xn)},_h=mt=>{const Tt=mt.options,xn=Tt.get("table_default_attributes");return Tt.isSet("table_default_attributes")?xn:gu(mt,xn)},xf=(mt,Tt)=>Tt.column>=mt.startCol&&Tt.column+Tt.colspan-1<=mt.finishCol&&Tt.row>=mt.startRow&&Tt.row+Tt.rowspan-1<=mt.finishRow,ep=(mt,Tt)=>{let xn=!0;const Nn=v(xf,Tt);for(let yr=Tt.startRow;yr<=Tt.finishRow;yr++)for(let so=Tt.startCol;so<=Tt.finishCol;so++)xn=xn&&Bl.getAt(mt,yr,so).exists(Nn);return xn?x.some(Tt):x.none()},_r=(mt,Tt)=>wo(Math.min(mt.row,Tt.row),Math.min(mt.column,Tt.column),Math.max(mt.row+mt.rowspan-1,Tt.row+Tt.rowspan-1),Math.max(mt.column+mt.colspan-1,Tt.column+Tt.colspan-1)),Ff=(mt,Tt,xn)=>{const Nn=Bl.findItem(mt,Tt,tt),yr=Bl.findItem(mt,xn,tt);return Nn.bind(so=>yr.map(No=>_r(so,No)))},yd=(mt,Tt,xn)=>Ff(mt,Tt,xn).bind(Nn=>ep(mt,Nn)),bd=(mt,Tt,xn)=>{const Nn=wh(mt);return yd(Nn,Tt,xn)},wh=Bl.fromTable,zu=(mt,Tt)=>{cn(mt).each(Nn=>{Nn.dom.insertBefore(Tt.dom,mt.dom)})},va=(mt,Tt)=>{Sn(mt).fold(()=>{cn(mt).each(yr=>{_f(yr,Tt)})},Nn=>{zu(Nn,Tt)})},El=(mt,Tt)=>{st(mt).fold(()=>{_f(mt,Tt)},Nn=>{mt.dom.insertBefore(Tt.dom,Nn.dom)})},_f=(mt,Tt)=>{mt.dom.appendChild(Tt.dom)},$f=(mt,Tt)=>{zu(mt,Tt),_f(Tt,mt)},ih=(mt,Tt)=>{Y(Tt,(xn,Nn)=>{const yr=Nn===0?mt:Tt[Nn-1];va(yr,xn)})},yu=(mt,Tt)=>{Y(Tt,xn=>{_f(mt,xn)})},jc=mt=>{const Tt=mt.dom;Tt.parentNode!==null&&Tt.parentNode.removeChild(Tt)},Nh=mt=>{const Tt=vt(mt);Tt.length>0&&ih(mt,Tt),jc(mt)},td=((mt,Tt)=>{const xn=so=>{if(!mt(so))throw new Error("Can only get "+Tt+" value of a "+Tt+" node");return Nn(so).getOr("")},Nn=so=>mt(so)?x.from(so.dom.nodeValue):x.none();return{get:xn,getOption:Nn,set:(so,No)=>{if(!mt(so))throw new Error("Can only set raw "+Tt+" value of a "+Tt+" node");so.dom.nodeValue=No}}})(zt,"text"),sf=mt=>td.get(mt),Bc=(mt,Tt)=>td.set(mt,Tt);var Vd=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],xd=()=>{const mt=Sa=>Ye.fromDom(Sa.dom.cloneNode(!1)),Tt=Sa=>Ot(Sa).dom,xn=Sa=>Ft(Sa)?Ge(Sa)==="body"?!0:Z(Vd,Ge(Sa)):!1,Nn=Sa=>Ft(Sa)?Z(["br","img","hr","input"],Ge(Sa)):!1,yr=Sa=>Ft(Sa)&&eo(Sa,"contenteditable")==="false",so=(Sa,ua)=>Sa.dom.compareDocumentPosition(ua.dom),No=(Sa,ua)=>{const Cs=to(Sa);Vr(ua,Cs)},ui=Sa=>{const ua=Ge(Sa);return Z(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],ua)},ga=Sa=>Ft(Sa)?Jr(Sa,"lang"):x.none();return{up:c({selector:Jt,closest:sn,predicate:_t,all:Cn}),down:c({selector:sr,predicate:qn}),styles:c({get:ir,getRaw:Er,set:Yn,remove:Gt}),attrs:c({get:eo,set:zr,remove:Yr,copyTo:No}),insert:c({before:zu,after:va,afterAll:ih,append:_f,appendAll:yu,prepend:El,wrap:$f}),remove:c({unwrap:Nh,remove:jc}),create:c({nu:Ye.fromTag,clone:mt,text:Ye.fromText}),query:c({comparePosition:so,prevSibling:Pn,nextSibling:Sn}),property:c({children:vt,name:Ge,parent:cn,document:Tt,isText:zt,isComment:St,isElement:Ft,isSpecial:ui,getLanguage:ga,getText:sf,setText:Bc,isBoundary:xn,isEmptyTag:Nn,isNonEditable:yr}),eq:tt,is:ot}};const vc=(mt,Tt,xn,Nn)=>{const yr=xn[0],so=xn.slice(1);return Nn(mt,Tt,yr,so)},gs=(mt,Tt,xn)=>xn.length>0?vc(mt,Tt,xn,yc):x.none(),yc=(mt,Tt,xn,Nn)=>{const yr=Tt(mt,xn);return se(Nn,(so,No)=>{const ui=Tt(mt,No);return Cc(mt,so,ui)},yr)},Cc=(mt,Tt,xn)=>Tt.bind(Nn=>xn.filter(v(mt.eq,Nn))),Nu=gs,Gs=xd(),Ks=(mt,Tt)=>Nu(Gs,(xn,Nn)=>mt(Nn),Tt),Ac=mt=>Jt(mt,"table"),_d=(mt,Tt)=>{const xn=sr(mt,Tt);return xn.length>0?x.some(xn):x.none()},Fh=(mt,Tt,xn)=>Nt(mt,Tt).bind(Nn=>Nt(mt,xn).bind(yr=>Ks(Ac,[Nn,yr]).map(so=>({first:Nn,last:yr,table:so})))),$h=(mt,Tt)=>_d(mt,Tt),vp=(mt,Tt,xn)=>Fh(mt,Tt,xn).bind(Nn=>{const yr=ga=>tt(mt,ga),so="thead,tfoot,tbody,table",No=Jt(Nn.first,so,yr),ui=Jt(Nn.last,so,yr);return No.bind(ga=>ui.bind(Sa=>tt(ga,Sa)?bd(Nn.table,Nn.first,Nn.last):x.none()))}),ah=mt=>q(mt,Ye.fromDom),Au="data-mce-selected",lf="td["+Au+"],th["+Au+"]",wf="data-mce-first-selected",vs="td["+wf+"],th["+wf+"]",cl="data-mce-last-selected",bc="td["+cl+"],th["+cl+"]",nc={selected:Au,selectedSelector:lf,firstSelected:wf,firstSelectedSelector:vs,lastSelected:cl,lastSelectedSelector:bc},Qc=mt=>dr(mt).bind(Tt=>$h(Tt,nc.firstSelectedSelector)).fold(c(mt),Tt=>Tt[0]),ts=mt=>(Tt,xn)=>{const Nn=Ge(Tt),yr=Nn==="col"||Nn==="colgroup"?Qc(Tt):Tt;return sn(yr,mt,xn)},wi=ts("th,td,caption"),bu=ts("th,td"),wd=mt=>ah(mt.model.table.getSelectedCells()),Ol=(mt,Tt)=>{const xn=bu(mt),Nn=xn.bind(yr=>dr(yr)).map(yr=>xr(yr));return _o(xn,Nn,(yr,so)=>pe(so,No=>K(ah(No.dom.cells),ui=>eo(ui,Tt)==="1"||tt(ui,yr)))).getOr([])},ds=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],zc=mt=>({value:aa(mt)}),Ud=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,cf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Of=mt=>Ud.test(mt)||cf.test(mt),aa=mt=>ar(mt,"#").toUpperCase(),rs=mt=>Of(mt)?x.some({value:aa(mt)}):x.none(),Mu=mt=>{const Tt=mt.toString(16);return(Tt.length===1?"0"+Tt:Tt).toUpperCase()},Ri=mt=>{const Tt=Mu(mt.red)+Mu(mt.green)+Mu(mt.blue);return zc(Tt)},Gc=/^\s*rgb\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*\)\s*$/i,qu=/^\s*rgba\s*\(\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*(\d+)\s*[,\s]\s*((?:\d?\.\d+|\d+)%?)\s*\)\s*$/i,zl=(mt,Tt,xn,Nn)=>({red:mt,green:Tt,blue:xn,alpha:Nn}),xc=(mt,Tt,xn,Nn)=>{const yr=parseInt(mt,10),so=parseInt(Tt,10),No=parseInt(xn,10),ui=parseFloat(Nn);return zl(yr,so,No,ui)},Kc=mt=>{const Tt=Gc.exec(mt);if(Tt!==null)return x.some(xc(Tt[1],Tt[2],Tt[3],"1"));const xn=qu.exec(mt);return xn!==null?x.some(xc(xn[1],xn[2],xn[3],xn[4])):x.none()},jd=mt=>rs(mt).orThunk(()=>Kc(mt).map(Ri)).getOrThunk(()=>{const Tt=document.createElement("canvas");Tt.height=1,Tt.width=1;const xn=Tt.getContext("2d");xn.clearRect(0,0,Tt.width,Tt.height),xn.fillStyle="#FFFFFF",xn.fillStyle=mt,xn.fillRect(0,0,1,1);const Nn=xn.getImageData(0,0,1,1).data,yr=Nn[0],so=Nn[1],No=Nn[2],ui=Nn[3];return Ri(zl(yr,so,No,ui))}),ii=mt=>Kc(mt).map(Ri).map(Tt=>"#"+Tt.value).getOr(mt),nd=mt=>{let Tt=mt;return{get:()=>Tt,set:yr=>{Tt=yr}}},al=mt=>{const Tt=nd(x.none()),xn=()=>Tt.get().each(mt);return{clear:()=>{xn(),Tt.set(x.none())},isSet:()=>Tt.get().isSome(),get:()=>Tt.get(),set:ui=>{xn(),Tt.set(x.some(ui))}}},Yl=()=>al(mt=>mt.unbind()),uf=(mt,Tt,xn)=>Nn=>{const yr=Yl(),so=oo(xn),No=()=>{const ui=wd(mt),ga=Sa=>mt.formatter.match(Tt,{value:xn},Sa.dom,so);so?(Nn.setActive(!K(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Sa=>Nn.setActive(!Sa),!0))):(Nn.setActive(_e(ui,ga)),yr.set(mt.formatter.formatChanged(Tt,Nn.setActive,!1,{value:xn})))};return mt.initialized?No():mt.on("init",No),yr.clear},hs=mt=>Q(mt,"menu"),Mc=mt=>q(mt,Tt=>{const xn=Tt.text||Tt.title||"";return hs(Tt)?{text:xn,items:Mc(Tt.menu)}:{text:xn,value:Tt.value}}),Eu=mt=>mt.length?x.some(Mc([{text:"Select...",value:"mce-no-match"},...mt])):x.none(),xu=(mt,Tt,xn,Nn)=>q(Tt,yr=>{const so=yr.text||yr.title;return hs(yr)?{type:"nestedmenuitem",text:so,getSubmenuItems:()=>xu(mt,yr.menu,xn,Nn)}:{text:so,type:"togglemenuitem",onAction:()=>Nn(yr.value),onSetup:uf(mt,xn,yr.value)}}),ws=(mt,Tt)=>xn=>{mt.execCommand("mceTableApplyCellStyle",!1,{[Tt]:xn})},Fu=mt=>ve(mt,Tt=>hs(Tt)?[{...Tt,menu:Fu(Tt.menu)}]:go(Tt.value)?[Tt]:[]),su=(mt,Tt,xn,Nn)=>yr=>yr(xu(mt,Tt,xn,Nn)),Ca=(mt,Tt,xn)=>{const Nn=q(Tt,yr=>({text:yr.title,value:"#"+jd(yr.value).value,type:"choiceitem"}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:Nn.length>0?Nn:void 0,allowCustomColors:!1},onAction:yr=>{const so=yr.value==="remove"?"":yr.value;mt.execCommand("mceTableApplyCellStyle",!1,{[xn]:so})}}]},Ls=mt=>()=>{const xn=mt.queryCommandValue("mceTableRowType")==="header"?"body":"header";mt.execCommand("mceTableRowType",!1,{type:xn})},Ec=mt=>()=>{const xn=mt.queryCommandValue("mceTableColType")==="th"?"td":"th";mt.execCommand("mceTableColType",!1,{type:xn})},_u=mt=>Eu(Zu(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),wt=[{name:"width",type:"input",label:"Width"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:ds}],Kt=mt=>wt.concat(_u(mt).toArray()),En=(mt,Tt)=>{const Nn=[{name:"borderstyle",type:"listbox",label:"Border style",items:[{text:"Select...",value:""}].concat(Mc(rh(mt)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}];return{title:"Advanced",name:"advanced",items:Tt==="cell"?[{name:"borderwidth",type:"input",label:"Border width"}].concat(Nn):Nn}},wr={normal:(mt,Tt)=>{const xn=mt.dom;return{setAttrib:(No,ui)=>{xn.setAttrib(Tt,No,ui)},setStyle:(No,ui)=>{xn.setStyle(Tt,No,ui)},setFormat:(No,ui)=>{ui===""?mt.formatter.remove(No,{value:null},Tt,!0):mt.formatter.apply(No,{value:ui},Tt)}}}},uo=tn("th"),Bi=(mt,Tt)=>mt&&Tt?"sectionCells":mt?"section":"cells",ya=mt=>{const Tt=mt.section==="thead",xn=co(Ni(mt.cells),"th");return mt.section==="tfoot"?{type:"footer"}:Tt||xn?{type:"header",subType:Bi(Tt,xn)}:{type:"body"}},Ni=mt=>{const Tt=pe(mt,xn=>uo(xn.element));return Tt.length===0?x.some("td"):Tt.length===mt.length?x.some("th"):x.none()},Qi=mt=>{const Tt=q(mt,yr=>ya(yr).type),xn=Z(Tt,"header"),Nn=Z(Tt,"footer");if(!xn&&!Nn)return x.some("body");{const yr=Z(Tt,"body");return xn&&!yr&&!Nn?x.some("header"):!xn&&!yr&&Nn?x.some("footer"):x.none()}},Ws=mt=>{let Tt=!1,xn;return(...Nn)=>(Tt||(Tt=!0,xn=mt.apply(null,Nn)),xn)},nl=(mt,Tt)=>ze(mt.all,xn=>de(xn.cells,Nn=>tt(Tt,Nn.element))),Fs=(mt,Tt,xn)=>{const Nn=q(Tt.selection,so=>Qt(so).bind(No=>nl(mt,No)).filter(xn)),yr=Fo(Nn);return Mo(yr.length>0,yr)},Wu=(mt,Tt)=>Tt.mergable,Ki=(mt,Tt)=>Tt.unmergable,Aa=(mt,Tt)=>Fs(mt,Tt,C),Pl=(mt,Tt)=>nl(mt,Tt).exists(xn=>!xn.isLocked),Vf=(mt,Tt)=>_e(Tt,xn=>Pl(mt,xn)),sh=(mt,Tt)=>Wu(mt,Tt).filter(xn=>Vf(mt,xn.cells)),_c=(mt,Tt)=>Ki(mt,Tt).filter(xn=>Vf(mt,xn));({...{generate:mt=>{if(!n(mt))throw new Error("cases must be an array");if(mt.length===0)throw new Error("there must be at least one case");const Tt=[],xn={};return Y(mt,(Nn,yr)=>{const so=R(Nn);if(so.length!==1)throw new Error("one and only one name per case");const No=so[0],ui=Nn[No];if(xn[No]!==void 0)throw new Error("duplicate key detected:"+No);if(No==="cata")throw new Error("cannot have a case named cata (sorry)");if(!n(ui))throw new Error("case arguments must be an array");Tt.push(No),xn[No]=(...ga)=>{const Sa=ga.length;if(Sa!==ui.length)throw new Error("Wrong number of arguments to case "+No+". Expected "+ui.length+" ("+ui+"), got "+Sa);return{fold:(...Cs)=>{if(Cs.length!==mt.length)throw new Error("Wrong number of arguments to fold. Expected "+mt.length+", got "+Cs.length);return Cs[yr].apply(null,ga)},match:Cs=>{const ul=R(Cs);if(Tt.length!==ul.length)throw new Error("Wrong number of arguments to match. Expected: "+Tt.join(",")+` Actual: `+ul.join(","));if(!_e(Tt,Is=>Z(ul,Is)))throw new Error("Not all branches were specified when using match. Specified: "+ul.join(", ")+` -Required: `+Tt.join(", "));return Cs[No].apply(null,ga)},log:Cs=>{console.log(Cs,{constructors:Tt,constructor:No,params:ga})}}}}),xn}}.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])});const Os=(mt,Tt)=>{const xn=Bl.fromTable(mt);return Aa(xn,Tt).bind(yr=>{const so=yr[yr.length-1],No=yr[0].row,ui=so.row+so.rowspan,ga=xn.all.slice(No,ui);return Qi(ga)}).getOr("")},Si=mt=>Dr(mt,"rgb")?ii(mt):mt,lc=mt=>{const Tt=Ye.fromDom(mt);return{borderwidth:Er(Tt,"border-width").getOr(""),borderstyle:Er(Tt,"border-style").getOr(""),bordercolor:Er(Tt,"border-color").map(Si).getOr(""),backgroundcolor:Er(Tt,"background-color").map(Si).getOr("")}},rd=mt=>{const Tt=mt[0],xn=mt.slice(1);return Y(xn,Nn=>{Y(R(Tt),yr=>{T(Nn,(so,No)=>{const ui=Tt[yr];ui!==""&&yr===No&&ui!==so&&(Tt[yr]=yr==="class"?"mce-no-match":"")})})}),Tt},tp=(mt,Tt,xn,Nn)=>de(mt,yr=>!b(xn.formatter.matchNode(Nn,Tt+yr))).getOr(""),kt=v(tp,["left","center","right"],"align"),It=v(tp,["top","middle","bottom"],"valign"),Ut=(mt,Tt)=>{const xn=Jh(mt),Nn=xh(mt),yr=()=>({borderstyle:z(xn,"border-style").getOr(""),bordercolor:Si(z(xn,"border-color").getOr("")),backgroundcolor:Si(z(xn,"background-color").getOr(""))}),so={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},No=()=>{const ua=xn["border-width"];return bl(mt)&&ua?{border:ua}:z(Nn,"border").fold(()=>({}),Cs=>({border:Cs}))},ui=Tt?yr():{},ga=()=>{const ua=z(xn,"border-spacing").or(z(Nn,"cellspacing")).fold(()=>({}),ul=>({cellspacing:ul})),Cs=z(xn,"border-padding").or(z(Nn,"cellpadding")).fold(()=>({}),ul=>({cellpadding:ul}));return{...ua,...Cs}};return{...so,...xn,...Nn,...ui,...No(),...ga()}},J=mt=>dr(Ye.fromDom(mt)).map(Tt=>{const xn={selection:ah(mt.cells)};return Os(Tt,xn)}).getOr(""),le=(mt,Tt,xn)=>{const Nn=(ui,ga)=>{const Sa=Er(Ye.fromDom(ga),"border-width");return bl(mt)&&Sa.isSome()?Sa.getOr(""):ui.getAttrib(ga,"border")||iu(mt.dom,ga,"border-width")||iu(mt.dom,ga,"border")||""},yr=mt.dom,so=bl(mt)?yr.getStyle(Tt,"border-spacing")||yr.getAttrib(Tt,"cellspacing"):yr.getAttrib(Tt,"cellspacing")||yr.getStyle(Tt,"border-spacing"),No=bl(mt)?iu(yr,Tt,"padding")||yr.getAttrib(Tt,"cellpadding"):yr.getAttrib(Tt,"cellpadding")||iu(yr,Tt,"padding");return{width:yr.getStyle(Tt,"width")||yr.getAttrib(Tt,"width"),height:yr.getStyle(Tt,"height")||yr.getAttrib(Tt,"height"),cellspacing:so??"",cellpadding:No??"",border:Nn(yr,Tt),caption:!!yr.select("caption",Tt)[0],class:yr.getAttrib(Tt,"class",""),align:kt(mt,Tt),...xn?lc(Tt):{}}},ne=(mt,Tt,xn)=>{const Nn=mt.dom;return{height:Nn.getStyle(Tt,"height")||Nn.getAttrib(Tt,"height"),class:Nn.getAttrib(Tt,"class",""),type:J(Tt),align:kt(mt,Tt),...xn?lc(Tt):{}}},V=(mt,Tt,xn,Nn)=>{const yr=mt.dom,so=Nn.getOr(Tt);return{width:((ui,ga)=>yr.getStyle(ui,ga)||yr.getAttrib(ui,ga))(so,"width"),scope:yr.getAttrib(Tt,"scope"),celltype:An(Tt),class:yr.getAttrib(Tt,"class",""),halign:kt(mt,Tt),valign:It(mt,Tt),...xn?lc(Tt):{}}},ie=(mt,Tt)=>{const xn=Bl.fromTable(mt),Nn=Bl.justCells(xn),yr=pe(Nn,so=>K(Tt,No=>tt(so.element,No)));return q(yr,so=>({element:so.element.dom,column:Bl.getColumnAt(xn,so.column).map(No=>No.element.dom)}))},ge=(mt,Tt,xn,Nn)=>{Nn("scope")&&mt.setAttrib("scope",xn.scope),Nn("class")&&xn.class!=="mce-no-match"&&mt.setAttrib("class",xn.class),Nn("width")&&Tt.setStyle("width",Zn(xn.width))},xe=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setFormat("tablecellbackgroundcolor",Tt.backgroundcolor),xn("bordercolor")&&mt.setFormat("tablecellbordercolor",Tt.bordercolor),xn("borderstyle")&&mt.setFormat("tablecellborderstyle",Tt.borderstyle),xn("borderwidth")&&mt.setFormat("tablecellborderwidth",Zn(Tt.borderwidth))},Ee=(mt,Tt,xn,Nn)=>{const yr=Tt.length===1;Y(Tt,so=>{const No=so.element,ui=yr?C:Nn,ga=wr.normal(mt,No),Sa=so.column.map(ua=>wr.normal(mt,ua)).getOr(ga);ge(ga,Sa,xn,ui),rf(mt)&&xe(ga,xn,ui),Nn("halign")&&au(mt,No,xn.halign),Nn("valign")&&zf(mt,No,xn.valign)})},Ne=(mt,Tt)=>{mt.execCommand("mceTableCellType",!1,{type:Tt.celltype,no_events:!0})},et=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);I(yr)>0&&Tt.length>=1&&dr(Tt[0]).each(so=>{const No=ie(so,Tt),ui=I(L(yr,(Sa,ua)=>ua!=="scope"&&ua!=="celltype"))>0,ga=$(yr,"celltype");(ui||$(yr,"scope"))&&Ee(mt,No,Nn,v($,yr)),ga&&Ne(mt,Nn),_s(mt,so.dom,{structure:ga,style:ui})})},rt=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{et(mt,Tt,xn,yr),mt.focus()})},dt=(mt,Tt)=>{const xn=dr(Tt[0]).map(Nn=>q(ie(Nn,Tt),yr=>V(mt,yr.element,rf(mt),yr.column)));return rd(xn.getOrDie())},gt=mt=>{const Tt=wd(mt);if(Tt.length===0)return;const xn=dt(mt,Tt),Nn={type:"tabpanel",tabs:[{title:"General",name:"general",items:Kt(mt)},En(mt,"cell")]},yr={type:"panel",items:[{type:"grid",columns:2,items:Kt(mt)}]};mt.windowManager.open({title:"Cell Properties",size:"normal",body:rf(mt)?Nn:yr,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:xn,onSubmit:v(rt,mt,Tt,xn)})},Rt=mt=>Eu(Kh(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),Mt=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Xt=mt=>Mt.concat(Rt(mt).toArray()),dn=(mt,Tt,xn)=>{xn("class")&&Tt.class!=="mce-no-match"&&mt.setAttrib("class",Tt.class),xn("height")&&mt.setStyle("height",Zn(Tt.height))},bn=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setStyle("background-color",Tt.backgroundcolor),xn("bordercolor")&&mt.setStyle("border-color",Tt.bordercolor),xn("borderstyle")&&mt.setStyle("border-style",Tt.borderstyle)},vn=(mt,Tt,xn,Nn)=>{const so=Tt.length===1?C:Nn;Y(Tt,No=>{const ui=gr(Ye.fromDom(No),"td,th"),ga=wr.normal(mt,No);dn(ga,xn,so),of(mt)&&bn(ga,xn,so),Nn("height")&&Y(ui,Sa=>{mt.dom.setStyle(Sa.dom,"height",null)}),Nn("align")&&au(mt,No,xn.align)})},Ln=(mt,Tt)=>{mt.execCommand("mceTableRowType",!1,{type:Tt.type,no_events:!0})},gn=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);if(I(yr)>0){const so=$(yr,"type"),No=so?I(yr)>1:!0;No&&vn(mt,Tt,Nn,v($,yr)),so&&Ln(mt,Nn),dr(Ye.fromDom(Tt[0])).each(ui=>_s(mt,ui.dom,{structure:so,style:No}))}},Jn=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{gn(mt,Tt,xn,yr),mt.focus()})},pn=mt=>{const Tt=Ol(tr(mt),nc.selected);if(Tt.length===0)return;const xn=q(Tt,No=>ne(mt,No.dom,of(mt))),Nn=rd(xn),yr={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xt(mt)},En(mt,"row")]},so={type:"panel",items:[{type:"grid",columns:2,items:Xt(mt)}]};mt.windowManager.open({title:"Row Properties",size:"normal",body:of(mt)?yr:so,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Nn,onSubmit:v(Jn,mt,q(Tt,No=>No.dom),Nn)})},In=(mt,Tt,xn)=>{const Nn=xn?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],yr=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],so=vu(mt)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],No=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],ui=Tt.length>0?[{name:"class",type:"listbox",label:"Class",items:Tt}]:[];return Nn.concat(yr).concat(so).concat(No).concat(ui)},Ir=(mt,Tt,xn,Nn)=>{if(Tt.tagName==="TD"||Tt.tagName==="TH")s(xn)&&S(Nn)?mt.setStyle(Tt,xn,Nn):mt.setStyles(Tt,xn);else if(Tt.children)for(let yr=0;yr{const yr=mt.dom,so={},No={},ui=bl(mt),ga=bf(mt),Sa=parseFloat(xn.border)===0;if(!b(xn.class)&&xn.class!=="mce-no-match"&&(so.class=xn.class),No.height=Zn(xn.height),ui?No.width=Zn(xn.width):yr.getAttrib(Tt,"width")&&(so.width=Un(xn.width)),ui?(Sa?(so.border=0,No["border-width"]=""):(No["border-width"]=Zn(xn.border),so.border=1),No["border-spacing"]=Zn(xn.cellspacing)):(so.border=Sa?0:xn.border,so.cellpadding=xn.cellpadding,so.cellspacing=xn.cellspacing),ui&&Tt.children){const ua={};if(Sa?ua["border-width"]="":Nn.border&&(ua["border-width"]=Zn(xn.border)),Nn.cellpadding&&(ua.padding=Zn(xn.cellpadding)),ga&&Nn.bordercolor&&(ua["border-color"]=xn.bordercolor),!j(ua))for(let Cs=0;Cs{const yr=mt.dom,so=Nn.getData(),No=L(so,(ui,ga)=>xn[ga]!==ui);Nn.close(),mt.undoManager.transact(()=>{if(!Tt){const ui=io(so.cols).getOr(1),ga=io(so.rows).getOr(1);mt.execCommand("mceInsertTable",!1,{rows:ga,columns:ui}),Tt=bu(tr(mt),fr(mt)).bind(Sa=>dr(Sa,fr(mt))).map(Sa=>Sa.dom).getOrDie()}if(I(No)>0){const ui={border:$(No,"border"),bordercolor:$(No,"bordercolor"),cellpadding:$(No,"cellpadding")};Pr(mt,Tt,so,ui);const ga=yr.select("caption",Tt)[0];(ga&&!so.caption||!ga&&so.caption)&&mt.execCommand("mceTableToggleCaption"),au(mt,Tt,so.align)}if(mt.focus(),mt.addVisual(),I(No)>0){const ui=$(No,"caption"),ga=ui?I(No)>1:!0;_s(mt,Tt,{structure:ui,style:ga})}})},ro=(mt,Tt)=>{const xn=mt.dom;let Nn,yr=Ut(mt,bf(mt));Tt?(yr.cols="1",yr.rows="1",bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor="")):(Nn=xn.getParent(mt.selection.getStart(),"table",mt.getBody()),Nn?yr=le(mt,Nn,bf(mt)):bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor=""));const so=Eu(Cu(mt));so.isSome()&&yr.class&&(yr.class=yr.class.replace(/\s*mce\-item\-table\s*/g,""));const No={type:"grid",columns:2,items:In(mt,so.getOr([]),Tt)},ui=()=>({type:"panel",items:[No]}),ga=()=>({type:"tabpanel",tabs:[{title:"General",name:"general",items:[No]},En(mt,"table")]}),Sa=bf(mt)?ga():ui();mt.windowManager.open({title:"Table Properties",size:"normal",body:Sa,onSubmit:v(Gr,mt,Nn,yr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:yr})},po=mt=>{const Tt=xn=>{$r(tr(mt))&&xn()};T({mceTableProps:v(ro,mt,!1),mceTableRowProps:v(pn,mt),mceTableCellProps:v(gt,mt),mceInsertTableDialog:v(ro,mt,!0)},(xn,Nn)=>mt.addCommand(Nn,()=>Tt(xn)))},Wo=(mt,Tt)=>Zt(mt,Tt).isSome(),si=h,Bo=mt=>{const Tt=(Nn,yr)=>Jr(Nn,yr).exists(so=>parseInt(so,10)>1),xn=Nn=>Tt(Nn,"rowspan")||Tt(Nn,"colspan");return mt.length>0&&_e(mt,xn)?x.some(mt):x.none()},Go=(mt,Tt,xn)=>Tt.length<=1?x.none():vp(mt,xn.firstSelectedSelector,xn.lastSelectedSelector).map(Nn=>({bounds:Nn,cells:Tt})),Yo=mt=>({element:mt,mergable:x.none(),unmergable:x.none(),selection:[mt]}),Wi=(mt,Tt,xn)=>({element:xn,mergable:Go(Tt,mt,nc),unmergable:Bo(mt),selection:si(mt)}),Ho=mt=>{const Tt=nd(x.none()),xn=nd([]);let Nn=x.none();const yr=tn("caption"),so=ss=>Nn.forall(Gl=>!Gl[ss]),No=()=>wi(tr(mt),fr(mt)),ui=()=>wi(Br(mt),fr(mt)),ga=()=>No().bind(ss=>$o(_o(dr(ss),ui().bind(dr),(Gl,Sf)=>tt(Gl,Sf)?yr(ss)?x.some(Yo(ss)):x.some(Wi(wd(mt),Gl,ss)):x.none()))),Sa=ss=>dr(ss.element).map(Sf=>{const Nc=Bl.fromTable(Sf),o0=Aa(Nc,ss).getOr([]),i0=ae(o0,(a0,wu)=>(wu.isLocked&&(a0.onAny=!0,wu.column===0?a0.onFirst=!0:wu.column+wu.colspan>=Nc.grid.columns&&(a0.onLast=!0)),a0),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:sh(Nc,ss).isSome(),unmergeable:_c(Nc,ss).isSome(),locked:i0}}),ua=()=>{Tt.set(Ws(ga)()),Nn=Tt.get().bind(Sa),Y(xn.get(),_)},Cs=ss=>(ss(),xn.set(xn.get().concat([ss])),()=>{xn.set(pe(xn.get(),Gl=>Gl!==ss))}),ul=(ss,Gl)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1)},Sf=>{ss.setEnabled(!Gl(Sf)&&mt.selection.isEditable())})),Jc=(ss,Gl,Sf)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1),ss.setActive(!1)},Nc=>{ss.setEnabled(!Gl(Nc)&&mt.selection.isEditable()),ss.setActive(Sf(Nc))})),Is=ss=>Nn.exists(Gl=>Gl.locked[ss]),Hc=ss=>ul(ss,Gl=>!1),Nl=ss=>ul(ss,Gl=>yr(Gl.element)),lh=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||Is(ss)),r0=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||ss().isNone()),ch=(ss,Gl)=>Sf=>ul(Sf,Nc=>yr(Nc.element)||ss().isNone()||Is(Gl)),gg=ss=>ul(ss,Gl=>so("mergeable")),Ip=ss=>ul(ss,Gl=>so("unmergeable")),X0=ss=>Jc(ss,O,Gl=>dr(Gl.element,fr(mt)).exists(Nc=>Wo(Nc,"caption"))),Vh=(ss,Gl)=>Sf=>Jc(Sf,Nc=>yr(Nc.element),()=>mt.queryCommandValue(ss)===Gl),Pu=Vh("mceTableRowType","header"),Uh=Vh("mceTableColType","th");return mt.on("NodeChange ExecCommand TableSelectorChange",ua),{onSetupTable:Hc,onSetupCellOrRow:Nl,onSetupColumn:lh,onSetupPasteable:r0,onSetupPasteableColumn:ch,onSetupMergeable:gg,onSetupUnmergeable:Ip,resetTargets:ua,onSetupTableWithCaption:X0,onSetupTableRowHeaders:Pu,onSetupTableColumnHeaders:Uh,targets:Tt.get}};var jo=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Yi="x-tinymce/dom-table-",ai=Yi+"rows",Hi=Yi+"columns",Ai=mt=>{var Tt;const xn=(Tt=jo.read())!==null&&Tt!==void 0?Tt:[];return ze(xn,Nn=>x.from(Nn.getType(mt)))},Ja=()=>Ai(ai),Ar=()=>Ai(Hi),ns=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},$s=(mt,Tt)=>{mt.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:ns(mt),fetch:ui=>ui("inserttable | cell row column | advtablesort | tableprops deletetable")});const xn=ui=>()=>mt.execCommand(ui),Nn=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})},yr=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addToggleButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})};Nn("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:Tt.onSetupTable}),Nn("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:Tt.onSetupTable}),Nn("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:Tt.onSetupUnmergeable}),Nn("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")}),Nn("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:ns(mt)});const so=Fu(Cu(mt));so.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:su(mt,so,"tableclass",ui=>mt.execCommand("mceTableToggleClass",!1,ui)),onSetup:Tt.onSetupTable});const No=Fu(Zu(mt));No.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:su(mt,No,"tablecellclass",ui=>mt.execCommand("mceTableCellToggleClass",!1,ui)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:su(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:su(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:su(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:ui=>ui(Ca(mt,Bu(mt),"background-color")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:ui=>ui(Ca(mt,vd(mt),"border-color")),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableColumnHeaders})},Ts=mt=>{const Tt=Nn=>mt.dom.is(Nn,"table")&&mt.getBody().contains(Nn)&&mt.dom.isEditable(Nn.parentNode),xn=ed(mt);xn.length>0&&mt.ui.registry.addContextToolbar("table",{predicate:Tt,items:xn,scope:"node",position:"node"})},rl=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},Hs=(mt,Tt)=>{const xn=Cs=>()=>mt.execCommand(Cs),Nn=(Cs,ul)=>mt.queryCommandSupported(ul.command)?(mt.ui.registry.addMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)}),!0):!1,yr=(Cs,ul)=>{mt.queryCommandSupported(ul.command)&&mt.ui.registry.addToggleMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)})},so=Cs=>{mt.execCommand("mceInsertTable",!1,{rows:Cs.numRows,columns:Cs.numColumns})},No=[Nn("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:Tt.onSetupPasteable(Ja)}),Nn("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:Tt.onSetupPasteable(Ja)})],ui=[Nn("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")})],ga=[Nn("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:Tt.onSetupUnmergeable})];$d(mt)?mt.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"inserttable",onAction:so}],onSetup:rl(mt)}):mt.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),mt.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),Nn("tableprops",{text:"Table properties",onSetup:Tt.onSetupTable,command:"mceTableProps"}),Nn("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:Tt.onSetupTable,command:"mceTableDelete"}),Z(No,!0)&&mt.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:c("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),Z(ui,!0)&&mt.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:c("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),Z(ga,!0)&&mt.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:c("tablecellprops tablemergecells tablesplitcells")}),mt.ui.registry.addContextMenu("table",{update:()=>(Tt.resetTargets(),Tt.targets().fold(c(""),Cs=>Ge(Cs.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"))});const Sa=Fu(Cu(mt));Sa.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:()=>xu(mt,Sa,"tableclass",Cs=>mt.execCommand("mceTableToggleClass",!1,Cs)),onSetup:Tt.onSetupTable});const ua=Fu(Zu(mt));ua.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:()=>xu(mt,ua,"tablecellclass",Cs=>mt.execCommand("mceTableCellToggleClass",!1,Cs)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:()=>xu(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:()=>xu(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:()=>xu(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:()=>Ca(mt,Bu(mt),"background-color"),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:()=>Ca(mt,vd(mt),"border-color"),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableRowHeaders})},ys=mt=>{const Tt=Ho(mt);Dc(mt),po(mt),Hs(mt,Tt),$s(mt,Tt),Ts(mt)};var Yu=()=>{t.add("table",ys)};Yu()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=Object.getPrototypeOf,o=(Qt,Mn,Fn)=>{var dr;return Fn(Qt,Mn.prototype)?!0:((dr=Qt.constructor)===null||dr===void 0?void 0:dr.name)===Mn.name},f=Qt=>{const Mn=typeof Qt;return Qt===null?"null":Mn==="object"&&Array.isArray(Qt)?"array":Mn==="object"&&o(Qt,String,(Fn,dr)=>dr.isPrototypeOf(Fn))?"string":Mn},E=Qt=>Mn=>f(Mn)===Qt,d=Qt=>Mn=>typeof Mn===Qt,s=Qt=>Mn=>Qt===Mn,n=(Qt,Mn)=>b(Qt)&&o(Qt,Mn,(Fn,dr)=>e(Fn)===dr),u=E("string"),b=E("object"),i=Qt=>n(Qt,Object),S=E("array"),w=s(null),y=d("boolean"),m=Qt=>Qt==null,a=Qt=>!m(Qt),c=d("function"),h=d("number"),p=(Qt,Mn)=>{if(S(Qt)){for(let Fn=0,dr=Qt.length;Fn{};class _{constructor(Mn,Fn){this.tag=Mn,this.value=Fn}static some(Mn){return new _(!0,Mn)}static none(){return _.singletonNone}fold(Mn,Fn){return this.tag?Fn(this.value):Mn()}isSome(){return this.tag}isNone(){return!this.tag}map(Mn){return this.tag?_.some(Mn(this.value)):_.none()}bind(Mn){return this.tag?Mn(this.value):_.none()}exists(Mn){return this.tag&&Mn(this.value)}forall(Mn){return!this.tag||Mn(this.value)}filter(Mn){return!this.tag||Mn(this.value)?this:_.none()}getOr(Mn){return this.tag?this.value:Mn}or(Mn){return this.tag?this:Mn}getOrThunk(Mn){return this.tag?this.value:Mn()}orThunk(Mn){return this.tag?this:Mn()}getOrDie(Mn){if(this.tag)return this.value;throw new Error(Mn??"Called getOrDie on None")}static from(Mn){return a(Mn)?_.some(Mn):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Mn){this.tag&&Mn(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Object.keys,C=Object.hasOwnProperty,x=(Qt,Mn)=>{const Fn=O(Qt);for(let dr=0,xr=Fn.length;dr(Mn,Fn)=>{Qt[Fn]=Mn},M=(Qt,Mn,Fn,dr)=>{x(Qt,(xr,Oo)=>{(Mn(xr,Oo)?Fn:dr)(xr,Oo)})},T=(Qt,Mn)=>{const Fn={};return M(Qt,Mn,R(Fn),v),Fn},P=(Qt,Mn)=>C.call(Qt,Mn),A=(Qt,Mn)=>P(Qt,Mn)&&Qt[Mn]!==void 0&&Qt[Mn]!==null,L=Array.prototype.push,D=Qt=>{const Mn=[];for(let Fn=0,dr=Qt.length;FnMn>=0&&Mnk(Qt,0),z=(Qt,Mn)=>{for(let Fn=0;Fn{if(u(Fn)||y(Fn)||h(Fn))Qt.setAttribute(Mn,Fn+"");else throw console.error("Invalid call to Attribute.set. Key ",Mn,":: Value ",Fn,":: Element ",Qt),new Error("Attribute value was not simple")},Q=(Qt,Mn,Fn)=>{$(Qt.dom,Mn,Fn)},j=(Qt,Mn)=>{Qt.dom.removeAttribute(Mn)},U=(Qt,Mn)=>{const dr=(Mn||document).createElement("div");if(dr.innerHTML=Qt,!dr.hasChildNodes()||dr.childNodes.length>1){const xr="HTML does not have a single root node";throw console.error(xr,Qt),new Error(xr)}return Z(dr.childNodes[0])},X=(Qt,Mn)=>{const dr=(Mn||document).createElement(Qt);return Z(dr)},te=(Qt,Mn)=>{const dr=(Mn||document).createTextNode(Qt);return Z(dr)},Z=Qt=>{if(Qt==null)throw new Error("Node cannot be null or undefined");return{dom:Qt}},re={fromHtml:U,fromTag:X,fromText:te,fromDom:Z,fromPoint:(Qt,Mn,Fn)=>_.from(Qt.dom.elementFromPoint(Mn,Fn)).map(Z)};var q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.URI");const ee=Qt=>Qt.length>0,me=Qt=>Mn=>Mn.options.get(Qt),pe=Qt=>{const Mn=Qt.options.register;Mn("image_dimensions",{processor:"boolean",default:!0}),Mn("image_advtab",{processor:"boolean",default:!1}),Mn("image_uploadtab",{processor:"boolean",default:!0}),Mn("image_prepend_url",{processor:"string",default:""}),Mn("image_class_list",{processor:"object[]"}),Mn("image_description",{processor:"boolean",default:!0}),Mn("image_title",{processor:"boolean",default:!1}),Mn("image_caption",{processor:"boolean",default:!1}),Mn("image_list",{processor:Fn=>{const dr=Fn===!1||u(Fn)||p(Fn,b)||c(Fn);return dr?{value:Fn,valid:dr}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},se=me("image_dimensions"),ae=me("image_advtab"),ce=me("image_uploadtab"),de=me("image_prepend_url"),ye=me("image_class_list"),ve=me("image_description"),_e=me("image_title"),we=me("image_caption"),Te=me("image_list"),Pe=me("a11y_advanced_options"),Ie=me("automatic_uploads"),ze=Qt=>ee(Qt.options.get("images_upload_url")),De=Qt=>a(Qt.options.get("images_upload_handler")),Qe=(Qt,Mn)=>Math.max(parseInt(Qt,10),parseInt(Mn,10)),Ve=Qt=>new Promise(Mn=>{const Fn=document.createElement("img"),dr=Oo=>{Fn.onload=Fn.onerror=null,Fn.parentNode&&Fn.parentNode.removeChild(Fn),Mn(Oo)};Fn.onload=()=>{const Oo=Qe(Fn.width,Fn.clientWidth),mi=Qe(Fn.height,Fn.clientHeight),Di={width:Oo,height:mi};dr(Promise.resolve(Di))},Fn.onerror=()=>{dr(Promise.reject(`Failed to get image dimensions for: ${Qt}`))};const xr=Fn.style;xr.visibility="hidden",xr.position="fixed",xr.bottom=xr.left="0px",xr.width=xr.height="auto",document.body.appendChild(Fn),Fn.src=Qt}),$e=Qt=>(Qt&&(Qt=Qt.replace(/px$/,"")),Qt),Oe=Qt=>(Qt.length>0&&/^[0-9]+$/.test(Qt)&&(Qt+="px"),Qt),ke=Qt=>{if(Qt.margin){const Mn=String(Qt.margin).split(" ");switch(Mn.length){case 1:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[0],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[0];break;case 2:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 3:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 4:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[3]}delete Qt.margin}return Qt},Re=(Qt,Mn)=>{const Fn=Te(Qt);u(Fn)?fetch(Fn).then(dr=>{dr.ok&&dr.json().then(Mn)}):c(Fn)?Fn(Mn):Mn(Fn)},We=(Qt,Mn,Fn)=>{const dr=()=>{Fn.onload=Fn.onerror=null,Qt.selection&&(Qt.selection.select(Fn),Qt.nodeChanged())};Fn.onload=()=>{!Mn.width&&!Mn.height&&se(Qt)&&Qt.dom.setAttribs(Fn,{width:String(Fn.clientWidth),height:String(Fn.clientHeight)}),dr()},Fn.onerror=dr},Ue=Qt=>new Promise((Mn,Fn)=>{const dr=new FileReader;dr.onload=()=>{Mn(dr.result)},dr.onerror=()=>{var xr;Fn((xr=dr.error)===null||xr===void 0?void 0:xr.message)},dr.readAsDataURL(Qt)}),Ze=Qt=>Qt.nodeName==="IMG"&&(Qt.hasAttribute("data-mce-object")||Qt.hasAttribute("data-mce-placeholder")),Ye=(Qt,Mn)=>{const Fn=Qt.options.get;return Y.isDomSafe(Mn,"img",{allow_html_data_urls:Fn("allow_html_data_urls"),allow_script_urls:Fn("allow_script_urls"),allow_svg_data_urls:Fn("allow_svg_data_urls")})},Je=q.DOM,Me=Qt=>Qt.style.marginLeft&&Qt.style.marginRight&&Qt.style.marginLeft===Qt.style.marginRight?$e(Qt.style.marginLeft):"",Fe=Qt=>Qt.style.marginTop&&Qt.style.marginBottom&&Qt.style.marginTop===Qt.style.marginBottom?$e(Qt.style.marginTop):"",je=Qt=>Qt.style.borderWidth?$e(Qt.style.borderWidth):"",tt=(Qt,Mn)=>{var Fn;return Qt.hasAttribute(Mn)&&(Fn=Qt.getAttribute(Mn))!==null&&Fn!==void 0?Fn:""},ot=Qt=>Qt.parentNode!==null&&Qt.parentNode.nodeName==="FIGURE",Ge=(Qt,Mn,Fn)=>{Fn===""||Fn===null?Qt.removeAttribute(Mn):Qt.setAttribute(Mn,Fn)},ht=Qt=>{const Mn=Je.create("figure",{class:"image"});Je.insertAfter(Mn,Qt),Mn.appendChild(Qt),Mn.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),Mn.contentEditable="false"},pt=Qt=>{const Mn=Qt.parentNode;a(Mn)&&(Je.insertAfter(Qt,Mn),Je.remove(Mn))},St=Qt=>{ot(Qt)?pt(Qt):ht(Qt)},Ft=(Qt,Mn)=>{const Fn=Qt.getAttribute("style"),dr=Mn(Fn!==null?Fn:"");dr.length>0?(Qt.setAttribute("style",dr),Qt.setAttribute("data-mce-style",dr)):Qt.removeAttribute("style")},zt=(Qt,Mn)=>(Fn,dr,xr)=>{const Oo=Fn.style;Oo[dr]?(Oo[dr]=Oe(xr),Ft(Fn,Mn)):Ge(Fn,dr,xr)},Yt=(Qt,Mn)=>Qt.style[Mn]?$e(Qt.style[Mn]):tt(Qt,Mn),ln=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginLeft=Fn,Qt.style.marginRight=Fn},tn=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginTop=Fn,Qt.style.marginBottom=Fn},Et=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.borderWidth=Fn},Ot=(Qt,Mn)=>{Qt.style.borderStyle=Mn},cn=Qt=>{var Mn;return(Mn=Qt.style.borderStyle)!==null&&Mn!==void 0?Mn:""},Cn=Qt=>a(Qt)&&Qt.nodeName==="FIGURE",Pn=Qt=>Qt.nodeName==="IMG",Sn=Qt=>Je.getAttrib(Qt,"alt").length===0&&Je.getAttrib(Qt,"role")==="presentation",vt=Qt=>Sn(Qt)?"":tt(Qt,"alt"),xt=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),st=(Qt,Mn)=>{var Fn;const dr=document.createElement("img");return Ge(dr,"style",Mn.style),(Me(dr)||Mn.hspace!=="")&&ln(dr,Mn.hspace),(Fe(dr)||Mn.vspace!=="")&&tn(dr,Mn.vspace),(je(dr)||Mn.border!=="")&&Et(dr,Mn.border),(cn(dr)||Mn.borderStyle!=="")&&Ot(dr,Mn.borderStyle),Qt((Fn=dr.getAttribute("style"))!==null&&Fn!==void 0?Fn:"")},bt=(Qt,Mn)=>{const Fn=document.createElement("img");if(_t(Qt,{...Mn,caption:!1},Fn),it(Fn,Mn.alt,Mn.isDecorative),Mn.caption){const dr=Je.create("figure",{class:"image"});return dr.appendChild(Fn),dr.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),dr.contentEditable="false",dr}else return Fn},Vt=(Qt,Mn)=>({src:tt(Mn,"src"),alt:vt(Mn),title:tt(Mn,"title"),width:Yt(Mn,"width"),height:Yt(Mn,"height"),class:tt(Mn,"class"),style:Qt(tt(Mn,"style")),caption:ot(Mn),hspace:Me(Mn),vspace:Fe(Mn),border:je(Mn),borderStyle:cn(Mn),isDecorative:Sn(Mn)}),Dt=(Qt,Mn,Fn,dr,xr)=>{Fn[dr]!==Mn[dr]&&xr(Qt,dr,String(Fn[dr]))},it=(Qt,Mn,Fn)=>{if(Fn){Je.setAttrib(Qt,"role","presentation");const dr=re.fromDom(Qt);Q(dr,"alt","")}else{if(w(Mn)){const dr=re.fromDom(Qt);j(dr,"alt")}else{const dr=re.fromDom(Qt);Q(dr,"alt",Mn)}Je.getAttrib(Qt,"role")==="presentation"&&Je.setAttrib(Qt,"role","")}},at=(Qt,Mn,Fn)=>{(Fn.alt!==Mn.alt||Fn.isDecorative!==Mn.isDecorative)&&it(Qt,Fn.alt,Fn.isDecorative)},Bt=(Qt,Mn)=>(Fn,dr,xr)=>{Qt(Fn,xr),Ft(Fn,Mn)},_t=(Qt,Mn,Fn)=>{const dr=Vt(Qt,Fn);Dt(Fn,dr,Mn,"caption",(xr,Oo,mi)=>St(xr)),Dt(Fn,dr,Mn,"src",Ge),Dt(Fn,dr,Mn,"title",Ge),Dt(Fn,dr,Mn,"width",zt("width",Qt)),Dt(Fn,dr,Mn,"height",zt("height",Qt)),Dt(Fn,dr,Mn,"class",Ge),Dt(Fn,dr,Mn,"style",Bt((xr,Oo)=>Ge(xr,"style",Oo),Qt)),Dt(Fn,dr,Mn,"hspace",Bt(ln,Qt)),Dt(Fn,dr,Mn,"vspace",Bt(tn,Qt)),Dt(Fn,dr,Mn,"border",Bt(Et,Qt)),Dt(Fn,dr,Mn,"borderStyle",Bt(Ot,Qt)),at(Fn,dr,Mn)},qt=(Qt,Mn)=>{const Fn=Qt.dom.styles.parse(Mn),dr=ke(Fn),xr=Qt.dom.styles.parse(Qt.dom.styles.serialize(dr));return Qt.dom.styles.serialize(xr)},en=Qt=>{const Mn=Qt.selection.getNode(),Fn=Qt.dom.getParent(Mn,"figure.image");return Fn?Qt.dom.select("img",Fn)[0]:Mn&&(Mn.nodeName!=="IMG"||Ze(Mn))?null:Mn},Jt=(Qt,Mn)=>{var Fn;const dr=Qt.dom,xr=T(Qt.schema.getTextBlockElements(),(mi,Di)=>!Qt.schema.isValidChild(Di,"figure")),Oo=dr.getParent(Mn.parentNode,mi=>A(xr,mi.nodeName),Qt.getBody());return Oo&&(Fn=dr.split(Oo,Mn))!==null&&Fn!==void 0?Fn:Mn},Zt=Qt=>{const Mn=en(Qt);return Mn?Vt(Fn=>qt(Qt,Fn),Mn):xt()},Nt=(Qt,Mn)=>{const Fn=bt(xr=>qt(Qt,xr),Mn);Qt.dom.setAttrib(Fn,"data-mce-id","__mcenew"),Qt.focus(),Qt.selection.setContent(Fn.outerHTML);const dr=Qt.dom.select('*[data-mce-id="__mcenew"]')[0];if(Qt.dom.setAttrib(dr,"data-mce-id",null),Cn(dr)){const xr=Jt(Qt,dr);Qt.selection.select(xr)}else Qt.selection.select(dr)},sn=(Qt,Mn)=>{Qt.dom.setAttrib(Mn,"src",Mn.getAttribute("src"))},rn=(Qt,Mn)=>{if(Mn){const Fn=Qt.dom.is(Mn.parentNode,"figure.image")?Mn.parentNode:Mn;Qt.dom.remove(Fn),Qt.focus(),Qt.nodeChanged(),Qt.dom.isEmpty(Qt.getBody())&&(Qt.setContent(""),Qt.selection.setCursorLocation())}},_n=(Qt,Mn)=>{const Fn=en(Qt);if(Fn)if(_t(dr=>qt(Qt,dr),Mn,Fn),sn(Qt,Fn),Cn(Fn.parentNode)){const dr=Fn.parentNode;Jt(Qt,dr),Qt.selection.select(Fn.parentNode)}else Qt.selection.select(Fn),We(Qt,Mn,Fn)},wn=(Qt,Mn)=>{const Fn=Mn.src;return{...Mn,src:Ye(Qt,Fn)?Fn:""}},An=(Qt,Mn)=>{const Fn=en(Qt);if(Fn){const xr={...Vt(mi=>qt(Qt,mi),Fn),...Mn},Oo=wn(Qt,xr);xr.src?_n(Qt,Oo):rn(Qt,Fn)}else Mn.src&&Nt(Qt,{...xt(),...Mn})},Un=(Qt=>(...Mn)=>{if(Mn.length===0)throw new Error("Can't merge zero objects");const Fn={};for(let dr=0;dri(Qt)&&i(Mn)?Un(Qt,Mn):Mn);var Zn=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),tr=tinymce.util.Tools.resolve("tinymce.util.Tools");const Br=Qt=>u(Qt.value)?Qt.value:"",$r=Qt=>u(Qt.text)?Qt.text:u(Qt.title)?Qt.title:"",vr=(Qt,Mn)=>{const Fn=[];return tr.each(Qt,dr=>{const xr=$r(dr);if(dr.menu!==void 0){const Oo=vr(dr.menu,Mn);Fn.push({text:xr,items:Oo})}else{const Oo=Mn(dr);Fn.push({text:xr,value:Oo})}}),Fn},qn=(Qt=Br)=>Mn=>Mn?_.from(Mn).map(Fn=>vr(Fn,Qt)):_.none(),gr=Qt=>qn(Br)(Qt),sr=Qt=>P(Qt,"items"),lr=(Qt,Mn)=>z(Qt,Fn=>sr(Fn)?lr(Fn.items,Mn):Fn.value===Mn?_.some(Fn):_.none()),Vr={sanitizer:qn,sanitize:gr,findEntry:(Qt,Mn)=>Qt.bind(Fn=>lr(Fn,Mn))},Jr={makeTab:Qt=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},Yr=Qt=>{const Mn=Vr.sanitizer(il=>Qt.convertURL(il.value||il.url||"","src")),Fn=new Promise(il=>{Re(Qt,nf=>{il(Mn(nf).map(nh=>D([[{text:"None",value:""}],nh])))})}),dr=Vr.sanitize(ye(Qt)),xr=ae(Qt),Oo=ce(Qt),mi=ze(Qt),Di=De(Qt),To=Zt(Qt),Ia=ve(Qt),Ds=_e(Qt),fs=se(Qt),zi=we(Qt),yl=Pe(Qt),Bs=Ie(Qt),yf=_.some(de(Qt)).filter(il=>u(il)&&il.length>0);return Fn.then(il=>({image:To,imageList:il,classList:dr,hasAdvTab:xr,hasUploadTab:Oo,hasUploadUrl:mi,hasUploadHandler:Di,hasDescription:Ia,hasImageTitle:Ds,hasDimensions:fs,hasImageCaption:zi,prependURL:yf,hasAccessibilityOptions:yl,automaticUploads:Bs}))},to=Qt=>{const Mn={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},Fn=Qt.imageList.map(Ds=>({name:"images",type:"listbox",label:"Image list",items:Ds})),dr={name:"alt",type:"input",label:"Alternative description",enabled:!(Qt.hasAccessibilityOptions&&Qt.image.isDecorative)},xr={name:"title",type:"input",label:"Image title"},Oo={name:"dimensions",type:"sizeinput"},mi={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},Di=Qt.classList.map(Ds=>({name:"classes",type:"listbox",label:"Class",items:Ds})),To={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},Ia=Ds=>Ds?{type:"grid",columns:2}:{type:"panel"};return D([[Mn],Fn.toArray(),Qt.hasAccessibilityOptions&&Qt.hasDescription?[mi]:[],Qt.hasDescription?[dr]:[],Qt.hasImageTitle?[xr]:[],Qt.hasDimensions?[Oo]:[],[{...Ia(Qt.classList.isSome()&&Qt.hasImageCaption),items:D([Di.toArray(),Qt.hasImageCaption?[To]:[]])}]])},Fo={makeTab:Qt=>({title:"General",name:"general",items:to(Qt)}),makeItems:to},$o={makeTab:Qt=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},Mo=Qt=>({prevImage:Vr.findEntry(Qt.imageList,Qt.image.src),prevAlt:Qt.image.alt,open:!0}),pi=Qt=>({src:{value:Qt.src,meta:{}},images:Qt.src,alt:Qt.alt,title:Qt.title,dimensions:{width:Qt.width,height:Qt.height},classes:Qt.class,caption:Qt.caption,style:Qt.style,vspace:Qt.vspace,border:Qt.border,hspace:Qt.hspace,borderstyle:Qt.borderStyle,fileinput:[],isDecorative:Qt.isDecorative}),Hn=(Qt,Mn)=>({src:Qt.src.value,alt:(Qt.alt===null||Qt.alt.length===0)&&Mn?null:Qt.alt,title:Qt.title,width:Qt.dimensions.width,height:Qt.dimensions.height,class:Qt.classes,style:Qt.style,caption:Qt.caption,hspace:Qt.hspace,vspace:Qt.vspace,border:Qt.border,borderStyle:Qt.borderstyle,isDecorative:Qt.isDecorative}),ar=(Qt,Mn)=>/^(?:[a-zA-Z]+:)?\/\//.test(Mn)?_.none():Qt.prependURL.bind(Fn=>Mn.substring(0,Fn.length)!==Fn?_.some(Fn+Mn):_.none()),Dr=(Qt,Mn)=>{const Fn=Mn.getData();ar(Qt,Fn.src.value).each(dr=>{Mn.setData({src:{value:dr,meta:Fn.src.meta}})})},Sr=(Qt,Mn,Fn)=>{Qt.hasDescription&&u(Fn.alt)&&(Mn.alt=Fn.alt),Qt.hasAccessibilityOptions&&(Mn.isDecorative=Fn.isDecorative||Mn.isDecorative||!1),Qt.hasImageTitle&&u(Fn.title)&&(Mn.title=Fn.title),Qt.hasDimensions&&(u(Fn.width)&&(Mn.dimensions.width=Fn.width),u(Fn.height)&&(Mn.dimensions.height=Fn.height)),u(Fn.class)&&Vr.findEntry(Qt.classList,Fn.class).each(dr=>{Mn.classes=dr.value}),Qt.hasImageCaption&&y(Fn.caption)&&(Mn.caption=Fn.caption),Qt.hasAdvTab&&(u(Fn.style)&&(Mn.style=Fn.style),u(Fn.vspace)&&(Mn.vspace=Fn.vspace),u(Fn.border)&&(Mn.border=Fn.border),u(Fn.hspace)&&(Mn.hspace=Fn.hspace),u(Fn.borderstyle)&&(Mn.borderstyle=Fn.borderstyle))},Zr=(Qt,Mn)=>{const Fn=Mn.getData(),dr=Fn.src.meta;if(dr!==void 0){const xr=Un({},Fn);Sr(Qt,xr,dr),Mn.setData(xr)}},go=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=xr.src.value,mi=xr.src.meta||{};!mi.width&&!mi.height&&Mn.hasDimensions&&(ee(Oo)?Qt.imageSize(Oo).then(Di=>{Fn.open&&dr.setData({dimensions:Di})}).catch(Di=>console.error(Di)):dr.setData({dimensions:{width:"",height:""}}))},oo=(Qt,Mn,Fn)=>{const dr=Fn.getData(),xr=Vr.findEntry(Qt.imageList,dr.src.value);Mn.prevImage=xr,Fn.setData({images:xr.map(Oo=>Oo.value).getOr("")})},io=(Qt,Mn,Fn,dr)=>{Dr(Mn,dr),Zr(Mn,dr),go(Qt,Mn,Fn,dr),oo(Mn,Fn,dr)},Do=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=Vr.findEntry(Mn.imageList,xr.images);Oo.each(mi=>{xr.alt===""||Fn.prevImage.map(To=>To.text===xr.alt).getOr(!1)?mi.value===""?dr.setData({src:mi,alt:Fn.prevAlt}):dr.setData({src:mi,alt:mi.text}):dr.setData({src:mi})}),Fn.prevImage=Oo,io(Qt,Mn,Fn,dr)},jn=(Qt,Mn,Fn,dr)=>{const xr=dr.getData();dr.block("Uploading image"),I(xr.fileinput).fold(()=>{dr.unblock()},Oo=>{const mi=URL.createObjectURL(Oo),Di=()=>{dr.unblock(),URL.revokeObjectURL(mi)},To=Ia=>{dr.setData({src:{value:Ia,meta:{}}}),dr.showTab("general"),io(Qt,Mn,Fn,dr),dr.focus("src")};Ue(Oo).then(Ia=>{const Ds=Qt.createBlobCache(Oo,mi,Ia);Mn.automaticUploads?Qt.uploadImage(Ds).then(fs=>{To(fs.url),Di()}).catch(fs=>{Di(),Qt.alertErr(fs)}):(Qt.addToBlobCache(Ds),To(Ds.blobUri()),dr.unblock())})})},Rr=(Qt,Mn,Fn)=>(dr,xr)=>{xr.name==="src"?io(Qt,Mn,Fn,dr):xr.name==="images"?Do(Qt,Mn,Fn,dr):xr.name==="alt"?Fn.prevAlt=dr.getData().alt:xr.name==="fileinput"?jn(Qt,Mn,Fn,dr):xr.name==="isDecorative"&&dr.setEnabled("alt",!dr.getData().isDecorative)},On=Qt=>()=>{Qt.open=!1},Yn=Qt=>Qt.hasAdvTab||Qt.hasUploadUrl||Qt.hasUploadHandler?{type:"tabpanel",tabs:D([[Fo.makeTab(Qt)],Qt.hasAdvTab?[Jr.makeTab(Qt)]:[],Qt.hasUploadTab&&(Qt.hasUploadUrl||Qt.hasUploadHandler)?[$o.makeTab(Qt)]:[]])}:{type:"panel",items:Fo.makeItems(Qt)},ir=(Qt,Mn,Fn)=>dr=>{const xr=Un(pi(Mn.image),dr.getData()),Oo={...xr,style:st(Fn.normalizeCss,Hn(xr,!1))};Qt.execCommand("mceUpdateImage",!1,Hn(Oo,Mn.hasAccessibilityOptions)),Qt.editorUpload.uploadImagesAuto(),dr.close()},kr=Qt=>Mn=>Ye(Qt,Mn)?Ve(Qt.documentBaseURI.toAbsolute(Mn)).then(Fn=>({width:String(Fn.width),height:String(Fn.height)})):Promise.resolve({width:"",height:""}),Er=Qt=>(Mn,Fn,dr)=>{var xr;return Qt.editorUpload.blobCache.create({blob:Mn,blobUri:Fn,name:(xr=Mn.name)===null||xr===void 0?void 0:xr.replace(/\.[^\.]+$/,""),filename:Mn.name,base64:dr.split(",")[1]})},Gt=Qt=>Mn=>{Qt.editorUpload.blobCache.add(Mn)},on=Qt=>Mn=>{Qt.windowManager.alert(Mn)},an=Qt=>Mn=>qt(Qt,Mn),Tn=Qt=>Mn=>Qt.dom.parseStyle(Mn),zn=Qt=>(Mn,Fn)=>Qt.dom.serializeStyle(Mn,Fn),Gn=Qt=>Mn=>Zn(Qt).upload([Mn],!1).then(Fn=>{var dr;return Fn.length===0?Promise.reject("Failed to upload image"):Fn[0].status===!1?Promise.reject((dr=Fn[0].error)===null||dr===void 0?void 0:dr.message):Fn[0]}),Lr=Qt=>{const Mn={imageSize:kr(Qt),addToBlobCache:Gt(Qt),createBlobCache:Er(Qt),alertErr:on(Qt),normalizeCss:an(Qt),parseStyle:Tn(Qt),serializeStyle:zn(Qt),uploadImage:Gn(Qt)};return{open:()=>{Yr(Qt).then(dr=>{const xr=Mo(dr);return{title:"Insert/Edit Image",size:"normal",body:Yn(dr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:pi(dr.image),onSubmit:ir(Qt,dr,Mn),onChange:Rr(Mn,dr,xr),onClose:On(xr)}}).then(Qt.windowManager.open)}}},Ur=Qt=>{Qt.addCommand("mceImage",Lr(Qt).open),Qt.addCommand("mceUpdateImage",(Mn,Fn)=>{Qt.undoManager.transact(()=>An(Qt,Fn))})},qr=Qt=>{const Mn=Qt.attr("class");return a(Mn)&&/\bimage\b/.test(Mn)},Cr=Qt=>Mn=>{let Fn=Mn.length;const dr=xr=>{xr.attr("contenteditable",Qt?"true":null)};for(;Fn--;){const xr=Mn[Fn];qr(xr)&&(xr.attr("contenteditable",Qt?"false":null),tr.each(xr.getAll("figcaption"),dr))}},wo=Qt=>{Qt.on("PreInit",()=>{Qt.parser.addNodeFilter("figure",Cr(!0)),Qt.serializer.addNodeFilter("figure",Cr(!1))})},Nr=Qt=>Mn=>{const Fn=()=>{Mn.setEnabled(Qt.selection.isEditable())};return Qt.on("NodeChange",Fn),Fn(),()=>{Qt.off("NodeChange",Fn)}},Eo=Qt=>{Qt.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Lr(Qt).open,onSetup:Mn=>{Mn.setActive(a(en(Qt)));const Fn=Qt.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",Mn.setActive).unbind,dr=Nr(Qt)(Mn);return()=>{Fn(),dr()}}}),Qt.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Lr(Qt).open,onSetup:Nr(Qt)}),Qt.ui.registry.addContextMenu("image",{update:Mn=>Qt.selection.isEditable()&&(Cn(Mn)||Pn(Mn)&&!Ze(Mn))?["image"]:[]})};var zo=()=>{t.add("image",Qt=>{pe(Qt),wo(Qt),Eo(Qt),Ur(Qt)})};zo()})();var F$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],$$e=function(t){return F$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},V$e=function(t,e,o){Object.keys(e).filter($$e).forEach(function(f){var E=e[f];typeof E=="function"&&(f==="onInit"?E(t,o):o.on(f.substring(2),function(d){return E(d,o)}))})},U$e=function(t,e,o,f){var E=t.modelEvents?t.modelEvents:null,d=Array.isArray(E)?E.join(" "):E;ia(f,function(s,n){o&&typeof s=="string"&&s!==n&&s!==o.getContent({format:t.outputFormat})&&o.setContent(s)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},j$e=function(t,e,o,f,E,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&U$e(e,o,f,E),V$e(t,o.attrs,f)},Z0e=0,FOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return Z0e++,t+"_"+o+Z0e+String(e)},Q$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},q0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},H$e=function(t,e){return q0e(t).concat(q0e(e))},Z$e=function(t){return t==null},W0e=function(){return{listeners:[],scriptId:FOe("tiny-script"),scriptLoaded:!1}},q$e=function(){var t=W0e(),e=function(E,d,s,n){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=E,u.src=s;var b=function(){u.removeEventListener("load",b),n()};u.addEventListener("load",b),d.head&&d.head.appendChild(u)},o=function(E,d,s){t.scriptLoaded?s():(t.listeners.push(s),E.getElementById(t.scriptId)||e(t.scriptId,E,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=W0e()};return{load:o,reinitialize:f}},W$e=q$e(),Y$e=function(){return typeof window<"u"?window:global},CT=function(){var t=Y$e();return t&&t.tinymce?t.tinymce:null},X$e={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},p_=globalThis&&globalThis.__assign||function(){return p_=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(u))},yve({code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),init:E.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=u=>o.cellData.code=u),init:E.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const $Oe=mp(eVe,[["render",tVe]]),nVe=36,Y0e=1,rVe=2,VL=3,Oae=4,oVe=5,iVe=6,aVe=7,sVe=8,lVe=9,cVe=10,uVe=11,fVe=12,dVe=13,hVe=14,pVe=15,mVe=16,gVe=17,X0e=18,vVe=19,VOe=20,UOe=21,G0e=22,yVe=23,bVe=24;function Sle(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function xVe(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function MT(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function _Ve(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function wVe(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function jOe(t,e){for(;!(t.next!=95&&!Sle(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function OVe(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),MT(t,e,!1)}else jOe(t)}function K0e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function J0e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function e1e(t){for(;!(t.next<0||t.next==10);)t.advance()}function AT(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:QOe(kVe,SVe)};function TVe(t,e,o,f){let E={};for(let d in kle)E[d]=(t.hasOwnProperty(d)?t:kle)[d];return e&&(E.words=QOe(e,o||"",f)),E}function HOe(t){return new Y0(e=>{var o;let{next:f}=e;if(e.advance(),AT(f,Sae)){for(;AT(e.next,Sae);)e.advance();e.acceptToken(nVe)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)_Ve(e),e.acceptToken(VL);else if(f==39||f==34&&t.doubleQuotedStrings)MT(e,f,t.backslashEscapes),e.acceptToken(VL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)e1e(e),e.acceptToken(Y0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))e1e(e),e.acceptToken(Y0e);else if(f==47&&e.next==42){e.advance();for(let E=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(E--,e.advance(),!E)break}else d==47&&e.next==42&&(E++,e.advance())}e.acceptToken(rVe)}else if((f==101||f==69)&&e.next==39)e.advance(),MT(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);else if(f==95&&t.charSetCasts)for(let E=0;;E++){if(e.next==39&&E>1){e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);break}if(!Sle(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!AT(e.peek(1),Sae)){let E=e.peek(1);e.advance(2),wVe(e,E),e.acceptToken(VL)}else if(f==40)e.acceptToken(aVe);else if(f==41)e.acceptToken(sVe);else if(f==123)e.acceptToken(lVe);else if(f==125)e.acceptToken(cVe);else if(f==91)e.acceptToken(uVe);else if(f==93)e.acceptToken(fVe);else if(f==59)e.acceptToken(dVe);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),K0e(e),e.acceptToken(G0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const E=e.next;e.advance(),t.treatBitsAsBytes?(MT(e,E,t.backslashEscapes),e.acceptToken(yVe)):(K0e(e,E),e.acceptToken(G0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let E=e.next==39;for(e.advance();xVe(e.next);)e.advance();E&&e.next==39&&e.advance(),e.acceptToken(Oae)}else if(f==46&&e.next>=48&&e.next<=57)J0e(e,!0),e.acceptToken(Oae);else if(f==46)e.acceptToken(hVe);else if(f>=48&&f<=57)J0e(e,!1),e.acceptToken(Oae);else if(AT(f,t.operatorChars)){for(;AT(e.next,t.operatorChars);)e.advance();e.acceptToken(pVe)}else if(AT(f,t.specialVar))e.next==f&&e.advance(),OVe(e),e.acceptToken(gVe);else if(AT(f,t.identifierQuotes))MT(e,f,!1),e.acceptToken(vVe);else if(f==58||f==44)e.acceptToken(mVe);else if(Sle(f)){let E=jOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?X0e:(o=t.words[E.toLowerCase()])!==null&&o!==void 0?o:X0e)}})}const ZOe=HOe(kle),CVe=k4.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,ZOe],topRules:{Script:[0,25]},tokenPrec:0});function Tle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function eD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function CZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function AVe(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)CZ(f)&&o.push(eD(t,f));return o}return[eD(t,e)]}function t1e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=Tle(e);if(!CZ(f))return o;o.unshift(eD(t,f)),e=Tle(f)}}function MVe(t,e){let o=Gf(t).resolveInner(e,-1),f=PVe(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:t1e(t.doc,Tle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:t1e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const EVe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function PVe(t,e){let o;for(let E=e;!o;E=E.parent){if(!E)return null;E.name=="Statement"&&(o=E)}let f=null;for(let E=o.firstChild,d=!1,s=null;E;E=E.nextSibling){let n=E.name=="Keyword"?t.sliceString(E.from,E.to).toLowerCase():null,u=null;if(!d)d=n=="from";else if(n=="as"&&s&&CZ(E.nextSibling))u=eD(t,E.nextSibling);else{if(n&&EVe.has(n))break;s&&CZ(E)&&(u=eD(t,E))}u&&(f||(f=Object.create(null)),f[u]=AVe(t,s)),s=/Identifier$/.test(E.name)?E:null}return f}function RVe(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const LVe=/^\w*$/,IVe=/^[`'"]?\w*[`'"]?$/;class nfe{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),E=f[e];return E||(e&&this.list.push(qOe(e,"type",o)),f[e]=new nfe)}addCompletions(e){for(let o of e){let f=this.list.findIndex(E=>E.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function qOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function DVe(t,e,o,f,E,d){var s;let n=new nfe,u=((s=d==null?void 0:d.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"',b=n.child(E||"",u);for(let i in t){let S=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=S.length==1?b:n;for(let y of S)w=w.child(y.replace(/\\\./g,"."),u);for(let y of t[i])y&&w.list.push(typeof y=="string"?qOe(y,"property",u):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,u).list),i=>{let{parents:S,from:w,quoted:y,empty:m,aliases:a}=MVe(i.state,i.pos);if(m&&!i.explicit)return null;a&&S.length==1&&(S=a[S[0]]||S);let c=n;for(let v of S){for(;!c.children||!c.children[v];)if(c==n)c=b;else if(c==b&&f)c=c.child(f,u);else return null;c=c.child(v,u)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,p=c.list;return c==n&&a&&(p=p.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:RVe(y,p),validFor:y?IVe:LVe}}}function BVe(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==UOe?"type":t[f]==VOe?"keyword":"variable",boost:-1}));return Yce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],nq(o))}let zVe=CVe.configure({props:[tC.add({Statement:lI()}),E4.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),M4({Keyword:hr.keyword,Type:hr.typeName,Builtin:hr.standard(hr.name),Bits:hr.number,Bytes:hr.string,Bool:hr.bool,Null:hr.null,Number:hr.number,String:hr.string,Identifier:hr.name,QuotedIdentifier:hr.special(hr.string),SpecialVar:hr.special(hr.name),LineComment:hr.lineComment,BlockComment:hr.blockComment,Operator:hr.operator,"Semi Punctuation":hr.punctuation,"( )":hr.paren,"{ }":hr.brace,"[ ]":hr.squareBracket})]});class rfe{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=TVe(e,e.keywords,e.types,e.builtin),f=O4.define({name:"sql",parser:zVe.configure({tokenizers:[{from:ZOe,to:HOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new rfe(o,f,e)}}function NVe(t,e=!1){return BVe(t.dialect.words,e)}function FVe(t,e=!1){return t.language.data.of({autocomplete:NVe(t,e)})}function $Ve(t){return t.schema?DVe(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||ofe):()=>null}function VVe(t){return t.schema?(t.dialect||ofe).language.data.of({autocomplete:$Ve(t)}):[]}function n1e(t={}){let e=t.dialect||ofe;return new WT(e.language,[VVe(t),FVe(e,!!t.upperCaseKeywords)])}const ofe=rfe.define({}),UVe={components:{cell:zq,codemirror:iq,"v-data-table":Lq},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[ty.highest(e),n1e(),pM,dM({override:[]})]:[kc.readOnly.of(!0),ty.highest(e),n1e(),pM,dM({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const jVe={key:0,style:{display:"flex",width:"100%"}},QVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},HVe={class:"text-ellipsis app-static-name"},ZVe={key:2},qVe={class:"text-caption text-disabled text-right"},WVe={class:"text-p"};function YVe(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("cell");return Uo(),da(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=u=>d.expandCodeUpdate(u)),onHideCode:e[6]||(e[6]=u=>d.hideCode(u)),onUpdateReactivity:e[7]||(e[7]=u=>d.updateReactivity(u)),onUpdateShowTable:e[8]||(e[8]=u=>d.updateShowTable(u)),onRenameCell:e[9]||(e[9]=u=>d.renameCell(u)),onAddCell:e[10]||(e[10]=u=>d.createCell(u))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",jVe,[o.cellData.hideCode?(Uo(),Ya("h4",QVe,Dl(o.cellData.cellName),1)):(Uo(),da(gwe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=u=>E.expanded=u)},{default:ao(()=>[$t(mwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=u=>E.expanded=u),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(yZ,{class:"text-bluegrey-darken-1"},{default:ao(()=>[Na("h4",HVe,Dl(o.cellData.cellName),1)]),_:1}),$t(vZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(Ep,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[3]||(e[3]=u=>o.cellData.variable_name=u),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[4]||(e[4]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",ZVe,[Na("p",qVe,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Uo(!0),Ya(Ea,{key:0},ey(o.cellData.components,u=>(Uo(),da(yM,{key:u.id},{default:ao(()=>[(Uo(),da(nM(u.component),qi(u,{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},{[GL(u.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):za("",!0),Na("div",WVe,Dl(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const WOe=mp(UVe,[["render",YVe],["__scopeId","data-v-90a2677a"]]),XVe={components:{codemirror:iq},data:()=>({updatingDependencies:!1,ztAliases:Mp}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[kc.readOnly.of(!0),zOe(),pM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},GVe=Na("span",{class:"text-h5"},"Add Dependencies",-1),KVe=Na("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),JVe={class:"d-flex justify-center"};function eUe(t,e,o,f,E,d){const s=Nd("codemirror");return Uo(),da(fC,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:ao(({props:n})=>[$t(es,qi({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[GVe]),_:1}),$t(A_e,null,{default:ao(()=>[Ua(" Versions must adhere to "),KVe,Ua(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(o.dependencies.dependencies,n=>(Uo(),da(Xf,null,{default:ao(()=>[$t(Iq,null,{default:ao(()=>[$t(QT,null,{default:ao(()=>[$t(Ep,{modelValue:n.package,"onUpdate:modelValue":u=>n.package=u,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(QT,null,{default:ao(()=>[$t(Ep,{modelValue:n.version,"onUpdate:modelValue":u=>n.version=u,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(QT,{cols:"1"},{default:ao(()=>[$t(es,{icon:"",color:"primary"},{default:ao(()=>[$t(jl,{color:"black",onClick:u=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:ao(()=>[Ua("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),$t(Xf,{class:"d-flex justify-center align-center"},{default:ao(()=>[$t(es,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var u;return(u=o.dependencies.dependencies)==null?void 0:u.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Uo(),da(Xf,{key:0},{default:ao(()=>[$t(s,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):za("",!0)]),_:1}),$t(SD,null,{default:ao(()=>[o.dependencyOutput.isLoading?za("",!0):(Uo(),da(es,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),Na("div",JVe,[o.dependencyOutput.isLoading?(Uo(),da(sC,{key:0,indeterminate:"",color:"primary"})):za("",!0)]),$t(BM),$t(es,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const YOe=mp(XVe,[["render",eUe]]),r1e=em({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=TD();return(f,E)=>(Uo(),da(BO,null,{activator:ao(({props:d})=>[$t(es,qi({icon:`ztIcon:${Va(Mp).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,{disabled:!Va(o).editorAvailable,onClick:E[0]||(E[0]=d=>e("editComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).edit}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Edit")]),_:1})]),_:1},8,["disabled"]),$t(Xf,{"base-color":"error",onClick:E[1]||(E[1]=d=>e("deleteComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),tUe={class:"d-flex justify-end"},kae=em({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=qo(null),f=qo(null);return pg(()=>{var E,d;(E=f.value)==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(E,d)=>(Uo(),Ya("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[$t(kD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=s=>e("update:modelValue",s)),variant:"outlined"},null,8,["model-value"]),Na("div",tUe,[$t(es,{variant:"text",onClick:d[1]||(d[1]=s=>e("cancel"))},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(es,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=s=>e("submit"))},{default:ao(()=>[Ua("Submit")]),_:1},8,["loading","disabled"])])],512))}});var og=[];for(var Tae=0;Tae<256;++Tae)og.push((Tae+256).toString(16).slice(1));function nUe(t,e=0){return(og[t[e+0]]+og[t[e+1]]+og[t[e+2]]+og[t[e+3]]+"-"+og[t[e+4]]+og[t[e+5]]+"-"+og[t[e+6]]+og[t[e+7]]+"-"+og[t[e+8]]+og[t[e+9]]+"-"+og[t[e+10]]+og[t[e+11]]+og[t[e+12]]+og[t[e+13]]+og[t[e+14]]+og[t[e+15]]).toLowerCase()}var JQ,rUe=new Uint8Array(16);function oUe(){if(!JQ&&(JQ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!JQ))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return JQ(rUe)}var iUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const o1e={randomUUID:iUe};function XOe(t,e,o){if(o1e.randomUUID&&!e&&!t)return o1e.randomUUID();t=t||{};var f=t.random||(t.rng||oUe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var E=0;E<16;++E)e[o+E]=f[E];return e}return nUe(f)}const aUe={class:"messages"},sUe={class:"message mb-4"},lUe={class:"d-flex justify-space-between align-start"},cUe={key:1,class:"message__content"},uUe={class:"d-flex align-center"},fUe={class:"d-flex align-center"},dUe={class:"message__timestamp"},hUe={class:"message mb-4 d-flex"},pUe={class:"ml-6 flex-1-1"},mUe={class:"d-flex justify-space-between align-start"},gUe={key:1,class:"message__content"},vUe={class:"d-flex align-center"},yUe={class:"d-flex align-center"},bUe={class:"message__timestamp"},xUe={key:0,class:"text-box"},_Ue=em({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=TD(),f=Gi(""),E=Gi(!1),d=Gi(!1),s=Gi(void 0),n=Gi(""),u=Gi(!1);function b(a){o.editorAvailable=!1,s.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,s.value=void 0}async function S(a,c){s.value&&(u.value=!0,await o.editComment(s.value,a,n.value,c),u.value=!1,s.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,c,h){await o.deleteComment(a,c,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},c=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:XOe(),cell:e.comment.cell,userName:"",date:c,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",E.value=!1,o.editorAvailable=!0}async function m(a,c){await o.resolveComment(a,c)}return(a,c)=>(Uo(),Ya("div",aUe,[Na("div",sUe,[Na("div",lUe,[Va(s)===t.comment.id?(Uo(),da(kae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[0]||(c[0]=h=>ku(n)?n.value=h:null),isSaving:Va(u),onCancel:i,onSubmit:c[1]||(c[1]=h=>S(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",cUe,Dl(t.comment.comment),1)),Na("div",uUe,[!t.comment.resolved&&!Va(s)?(Uo(),da(es,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:c[2]||(c[2]=()=>m(t.comment.id,t.comment.cell.cellId??""))})):za("",!0),Va(s)?za("",!0):(Uo(),da(r1e,{key:1,onEditComment:c[3]||(c[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:c[4]||(c[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),Na("div",fUe,[Na("p",dUe,Dl(t.comment.date),1)])]),(Uo(!0),Ya(Ea,null,ey(t.comment.replies,h=>(Uo(),Ya("div",hUe,[$t(vM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),Na("div",pUe,[Na("div",mUe,[Va(s)===h.id?(Uo(),da(kae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[5]||(c[5]=p=>ku(n)?n.value=p:null),isSaving:Va(u),onCancel:i,onSubmit:c[6]||(c[6]=()=>S(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",gUe,Dl(h.comment),1)),Na("div",vUe,[Na("div",null,[Va(s)?za("",!0):(Uo(),da(r1e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),Na("div",yUe,[Na("p",bUe,Dl(h.date),1)])])]))),256)),Va(E)?(Uo(),Ya("div",xUe,[t.comment.resolved?za("",!0):(Uo(),da(kae,{key:0,modelValue:Va(f),"onUpdate:modelValue":c[7]||(c[7]=h=>ku(f)?f.value=h:null),"is-saving":Va(d),onCancel:c[8]||(c[8]=()=>{Va(o).editorAvailable=!0,E.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"]))])):za("",!0),!Va(E)&&!t.comment.resolved?(Uo(),da(es,{key:1,variant:"text",slim:"",disabled:!Va(o).editorAvailable,onClick:c[9]||(c[9]=()=>{Va(o).editorAvailable=!1,E.value=!0})},{default:ao(()=>[Ua("Reply")]),_:1},8,["disabled"])):za("",!0)]))}});const wUe=mp(_Ue,[["__scopeId","data-v-018eae28"]]),GOe=t=>(Wle("data-v-3ad3a67b"),t=t(),Yle(),t),OUe={key:0,class:"d-flex justify-space-between align-center pa-4"},SUe={class:"d-flex align-center"},kUe={class:"justify-right"},TUe={class:"content ma-4"},CUe={class:"d-flex justify-space-between align-center"},AUe={class:"mt-6 flex-1-1"},MUe={key:0,class:"empty-state"},EUe=GOe(()=>Na("p",null,"No comments yet",-1)),PUe=GOe(()=>Na("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),RUe={key:1,class:"comments-wrapper"},LUe={class:"d-flex justify-end"},IUe=em({__name:"Comments",setup(t){const e=TD(),{addComment:o,closeComments:f}=e,{selectedCell:E}=Hue(e),d=qo(null),s=qo(null),n=nr(()=>{var c;return(c=E.value)==null?void 0:c.cellType}),u=nr(()=>{var c;switch((c=E.value)==null?void 0:c.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Gi(!1),i=Gi(!1),S=Gi(""),w=Gi(!1),y=nr(()=>e.displayedComments.filter(c=>b.value?c.resolved:!c.resolved));ia(E,()=>{b.value=!1,i.value=!1,S.value="",w.value=!1});function m(){i.value=!i.value,e.editorAvailable=!1,Vc(()=>{var c,h;(c=d.value)==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const c={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",c).format(new Date),p={id:XOe(),cell:e.selectedCell,userName:"",date:h,comment:S.value,replies:[],resolved:!1};await o(p),w.value=!1,S.value="",i.value=!1,e.editorAvailable=!0}return(c,h)=>(Uo(),da(ub,{class:"card"},{default:ao(()=>[Va(E)?(Uo(),Ya("div",OUe,[Na("div",SUe,[$t(jl,{icon:`ztIcon:${Va(Mp)[Va(n)??"code"]}`,color:Va(u),class:"mr-2"},null,8,["icon","color"]),Na("p",{class:"mb-0 font-weight-bold",style:rD({color:Va(u)})},Dl(Va(E).cellName),5)]),Na("div",kUe,[Va(b)?za("",!0):(Uo(),da(es,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!Va(e).editorAvailable,onClick:m},null,8,["disabled"])),$t(es,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=p=>Va(f)())})])])):za("",!0),Na("div",TUe,[Na("div",CUe,[$t(B2e,{modelValue:Va(b),"onUpdate:modelValue":h[3]||(h[3]=p=>ku(b)?b.value=p:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:ao(()=>[$t(es,{value:!1,class:"mr-4",disabled:!Va(b),onClick:h[1]||(h[1]=p=>Va(e).editorAvailable=!0)},{default:ao(()=>[Ua("Open")]),_:1},8,["disabled"]),$t(es,{value:!0,disabled:Va(b),class:"mr-4",onClick:h[2]||(h[2]=p=>i.value=!1)},{default:ao(()=>[Ua("Resolved")]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),Na("div",AUe,[!Va(e).displayedComments.length&&!Va(i)?(Uo(),Ya("div",MUe,[$t(jl,{icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"]),EUe,PUe])):(Uo(),Ya("div",RUe,[(Uo(!0),Ya(Ea,null,ey(Va(y),p=>(Uo(),da(wUe,{comment:p},null,8,["comment"]))),256)),Va(i)?(Uo(),Ya("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:s},[$t(kD,{variant:"outlined",modelValue:Va(S),"onUpdate:modelValue":h[4]||(h[4]=p=>ku(S)?S.value=p:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),Na("div",LUe,[$t(es,{variant:"text",onClick:h[5]||(h[5]=()=>{Va(e).editorAvailable=!0,i.value=!1})},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(es,{color:"primary",class:"ml-2",disabled:!Va(S)||Va(w),loading:Va(w),onClick:h[6]||(h[6]=p=>a())},{default:ao(()=>[Ua("Submit")]),_:1},8,["disabled","loading"])])],512)):za("",!0)]))])])]),_:1}))}});const DUe=mp(IUe,[["__scopeId","data-v-3ad3a67b"]]),BUe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Que,CodeComponent:Twe,MarkdownComponent:NOe,EditorComponent:$Oe,SQLComponent:WOe,PackageComponent:YOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return JT().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function zUe(t,e,o,f,E,d){const s=Nd("add-cell");return Uo(),Ya(Ea,null,[$t(yM,{style:{"margin-top":"12px"}},{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):za("",!0)]),_:1}),(Uo(!0),Ya(Ea,null,ey(o.notebook.cells,n=>(Uo(),da(yM,{class:Gv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:ao(()=>[n.cellType==="code"?(Uo(),da(nM(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Uo(),da(nM(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const NUe=mp(BUe,[["render",zUe]]),FUe=em({name:"SignInDialogComponent",setup(){const t=qo(!1),e=qo(!1),o=qo(!1),f=qo(null),E=async()=>{try{const S=await ou.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(S){console.error("Error during starting the Node server:",S)}},d=async()=>{try{const S=await ou.post("copilot/check_status",{});b(S.data)}catch(S){console.error("Error during initial status check:",S)}},s=async()=>{try{const S=await ou.post("copilot/sign_in_initiate",{});b(S.data)}catch(S){console.error("Error during sign in initiation:",S)}},n=async()=>{try{const S=await ou.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(S.data)}catch(S){console.error("Error during sign in confirmation:",S)}},u=async()=>{try{await ou.post("copilot/sign_out",{}),o.value=!1,f.value=null,Q0.copilot_active=!1}catch(S){console.error("Error during sign out:",S)}},b=S=>{f.value=S,S.status==="OK"||S.status==="AlreadySignedIn"?(o.value=!0,Q0.copilot_active=!0):S.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:s,confirmSignIn:n,signOut:u,startServerAndCheckStatus:async()=>{try{await E(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(S){console.error("Error during starting the server or checking status:",S)}},ztAliases:Mp}}}),$Ue=Na("span",{class:"text-h4"},"GitHub Copilot ",-1),VUe={key:1},UUe={key:0},jUe=Na("p",null,"Please go to the following URL and enter the code to sign in:",-1),QUe=Na("strong",null,"URL:",-1),HUe=["href"],ZUe=Na("strong",null,"Code:",-1),qUe={key:1},WUe={key:2};function YUe(t,e,o,f,E,d){return Uo(),da(fC,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialog=s),"max-width":"400px"},{activator:ao(({props:s})=>[$t(es,qi({color:"bluegrey-darken-4"},s,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[$Ue]),_:1}),$t(dC,null,{default:ao(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Uo(),Ya("div",VUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Uo(),Ya("div",UUe,[jUe,Na("p",null,[QUe,Na("a",{href:t.signInData.verificationUri,target:"_blank"},Dl(t.signInData.verificationUri),9,HUe)]),Na("p",null,[ZUe,Ua(" "+Dl(t.signInData.userCode),1)]),$t(es,{color:"primary",onClick:t.confirmSignIn},{default:ao(()=>[Ua("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Uo(),Ya("div",qUe,[Na("p",null,"Status: "+Dl(t.signInData.status),1),Na("p",null,"User: "+Dl(t.signInData.user),1)])):(Uo(),Ya("div",WUe,[$t(es,{color:"primary",onClick:t.signInInitiate},{default:ao(()=>[Ua("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Uo(),da(es,{key:2,color:"primary",onClick:t.signOut},{default:ao(()=>[Ua("Sign Out")]),_:1},8,["onClick"])):za("",!0):(Uo(),da(es,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:ao(()=>[Ua("Start Server ")]),_:1},8,["onClick"]))]),_:1}),$t(es,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=s=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const XUe=mp(FUe,[["render",YUe]]),GUe=Na("span",{class:"text-h5"},"Publish Notebook",-1),KUe=Na("span",null,[Ua("Need an API Key? Create an account "),Na("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),JUe=Na("br",null,null,-1),eje=Na("br",null,null,-1),tje={class:"d-flex justify-center"},nje=em({__name:"ShareComponent",props:{userName:{type:String,required:!0},projectName:{type:String,required:!0},teamName:{type:String,required:!0}},setup(t){const e=t,o=qo(!1),f=qo({userName:"",projectName:"",apiKey:"",teamName:"",computeProfile:"X-Small (1 CPU, 2GB RAM)"}),E=qo(!1),d={required:a=>!!a||"Required."},s=qo(["X-Small (1 CPU, 2GB RAM)","Small (1 CPU, 4GB RAM)","Medium (1.5 CPU, 8GB RAM)","Large (2 CPU, 16GB RAM)","X-Large (4 CPU, 32GB RAM)"]),n=qo(""),u=qo(""),b=qo(""),i=qo(!1),S=qo(!1),w=async()=>{var a,c,h,p,v;if(E.value){if(u.value="",b.value="",n.value="",S.value=!0,i.value){try{await ou.post("api/confirm_share",f.value),n.value="Project published successfully"}catch(_){_ instanceof Ude?u.value=((c=(a=_.response)==null?void 0:a.data)==null?void 0:c.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}i.value=!1}else try{const _=await ou.post("api/share_notebook",f.value);(h=_.data)!=null&&h.warning?(b.value=_.data.warning,i.value=!0):(n.value="Project published successfully",u.value="",b.value="")}catch(_){_ instanceof Ude?u.value=((v=(p=_.response)==null?void 0:p.data)==null?void 0:v.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}S.value=!1}};function y(){e.teamName!==""?f.value.teamName=e.teamName:f.value.userName=e.userName,f.value.projectName=e.projectName}function m(){u.value="",n.value="",b.value="",i.value=!1,S.value=!1}return(a,c)=>(Uo(),da(fC,{modelValue:o.value,"onUpdate:modelValue":c[7]||(c[7]=h=>o.value=h),"max-width":"600px",onAfterEnter:c[8]||(c[8]=h=>y()),onAfterLeave:c[9]||(c[9]=h=>m())},{activator:ao(({props:h})=>[$t(es,qi(h,{"prepend-icon":`ztIcon:${Va(Mp).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:ao(()=>[Ua(" Publish ")]),_:2},1040,["prepend-icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[GUe]),_:1}),n.value?(Uo(),da(eM,{key:0,type:"success",class:"mb-4"},{default:ao(()=>[Ua(Dl(n.value),1)]),_:1})):za("",!0),u.value?(Uo(),da(eM,{key:1,type:"error",class:"mb-4"},{default:ao(()=>[Ua(Dl(u.value),1)]),_:1})):za("",!0),b.value?(Uo(),da(eM,{key:2,type:"warning",class:"mb-4"},{default:ao(()=>[Ua(Dl(b.value),1)]),_:1})):za("",!0),$t(dC,null,{default:ao(()=>[$t(SBe,{ref:"form",modelValue:E.value,"onUpdate:modelValue":c[6]||(c[6]=h=>E.value=h),onSubmit:RH(w,["prevent"])},{default:ao(()=>[$t(Ep,{modelValue:f.value.userName,"onUpdate:modelValue":c[0]||(c[0]=h=>f.value.userName=h),label:"User Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=h=>f.value.projectName=h),label:"Project Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=h=>f.value.apiKey=h),label:"API Key",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=h=>f.value.teamName=h),label:"Team Name (Optional)"},null,8,["modelValue"]),$t(Mq,{modelValue:f.value.computeProfile,"onUpdate:modelValue":c[4]||(c[4]=h=>f.value.computeProfile=h),items:s.value,label:"Compute Profile"},null,8,["modelValue","items"]),KUe,JUe,eje,$t(Iq,{justify:"space-between"},{default:ao(()=>[$t(QT,{cols:"auto"},{default:ao(()=>[S.value?za("",!0):(Uo(),da(es,{key:0,type:"submit",color:"primary"},{default:ao(()=>[Ua(Dl(i.value?"Confirm":"Publish"),1)]),_:1})),Na("div",tje,[S.value?(Uo(),da(sC,{key:0,indeterminate:"",color:"primary"})):za("",!0)])]),_:1}),$t(QT,{cols:"auto"},{default:ao(()=>[$t(es,{onClick:c[5]||(c[5]=h=>o.value=!1),color:"error"},{default:ao(()=>[Ua("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class i1e{constructor(e){pu(this,"timerId",null);pu(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const rje={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,files:[],fileNames:[],isUploading:!1,ztAliases:Mp,errorMessage:""}),methods:{openDialog(){this.uploadingFile=!0},closeDialog(){this.isUploading||(this.uploadingFile=!1),this.cleanUp()},onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;if(e&&e.length>0)for(let f=0;f0)for(let o=0;o(Wle("data-v-4e4c74a2"),t=t(),Yle(),t),oje=KOe(()=>Na("div",{class:"mb-1",style:{"font-size":"14px"}},"or",-1)),ije={key:1,class:"my-4"},aje=KOe(()=>Na("br",null,null,-1)),sje={key:0};function lje(t,e,o,f,E,d){return Uo(),da(fC,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[1]||(e[1]=s=>t.uploadingFile=s),"max-width":"444",class:"text-center mb-6",persistent:"",onDrop:d.onDrop,onDragover:e[2]||(e[2]=RH(()=>{},["prevent"]))},{activator:ao(({props:s})=>[$t(es,qi(s,{icon:"mdi-upload",color:"bluegrey-darken-4",class:"mb-2",onClick:d.openDialog}),null,16,["onClick"])]),default:ao(()=>[t.errorMessage?(Uo(),da(eM,{key:0,color:"error",text:t.errorMessage},null,8,["text"])):za("",!0),$t(ub,null,{default:ao(()=>[$t(I4,{class:"pb-0",style:{"font-size":"18px"}},{default:ao(()=>[Ua("Drag files to upload "),oje]),_:1}),$t(dC,null,{default:ao(()=>[t.isUploading?za("",!0):(Uo(),da(es,{key:0,icon:"",onClick:d.closeDialog,class:"close-button",variant:"plain",style:{width:"24px",height:"24px"}},{default:ao(()=>[$t(jl,{size:"18"},{default:ao(()=>[Ua("mdi-close")]),_:1})]),_:1},8,["onClick"])),Na("input",{class:"d-none",type:"file",ref:"fileInput",multiple:"",onChange:e[0]||(e[0]=(...s)=>d.handleFileChange&&d.handleFileChange(...s))},null,544),$t(es,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:ao(()=>[Ua(" Browse files ")]),_:1},8,["onClick"]),t.fileNames.length>0?(Uo(),Ya("div",ije,[(Uo(!0),Ya(Ea,null,ey(t.fileNames,s=>(Uo(),Ya("span",null,[Ua(Dl(s)+" ",1),aje]))),256))])):za("",!0)]),_:1}),$t(es,{onClick:d.submitFile,color:"primary",class:"mt-4",disabled:t.isUploading},{default:ao(()=>[t.isUploading?za("",!0):(Uo(),Ya("span",sje,"Submit")),t.isUploading?(Uo(),da(sC,{key:1,indeterminate:"",color:"primary",size:"24"})):za("",!0)]),_:1},8,["onClick","disabled"])]),_:1})]),_:1},8,["modelValue","onDrop"])}const cje=mp(rje,[["render",lje],["__scopeId","data-v-4e4c74a2"]]),uje=em({name:"FileFolderCreator",props:{currentPath:{type:String,required:!0}},emits:["item-created"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo("folder"),d=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],s=qo(""),n=qo(!1),u=qo(""),b=nr(()=>f.value.trim()!==""&&s.value===""),i=()=>{f.value.trim()===""?s.value="Name cannot be empty":/^[a-zA-Z0-9_\-. ]+$/.test(f.value)?s.value="":s.value="Name contains invalid characters"},S=()=>{o.value=!0},w=()=>{o.value=!1,f.value="",E.value="folder",s.value=""};return{createDialogVisible:o,newItemName:f,newItemType:E,itemTypes:d,nameError:s,showError:n,errorMessage:u,isValid:b,openCreateDialog:S,closeDialog:w,createNewItem:async()=>{if(b.value)try{const m=await ou.post("api/create_item",{path:t.currentPath,name:f.value.trim(),type:E.value});m.data.success?(e("item-created"),w()):(u.value=`Failed to create ${E.value}: ${m.data.message}`,n.value=!0)}catch(m){u.value=`Error creating ${E.value}: ${m}`,n.value=!0}},validateName:i}}});function fje(t,e,o,f,E,d){return Uo(),Ya(Ea,null,[$t(es,{color:"bluegrey-darken-4",icon:"mdi-plus",onClick:t.openCreateDialog},null,8,["onClick"]),$t(fC,{modelValue:t.createDialogVisible,"onUpdate:modelValue":e[2]||(e[2]=s=>t.createDialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Create New Folder or File")]),_:1}),$t(dC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newItemName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newItemName=s),label:"Name","error-messages":t.nameError,onInput:t.validateName},null,8,["modelValue","error-messages","onInput"]),$t(DM,{modelValue:t.newItemType,"onUpdate:modelValue":e[1]||(e[1]=s=>t.newItemType=s),items:t.itemTypes,"item-title":"text","item-value":"value",label:"Type"},null,8,["modelValue","items"])]),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"primary",onClick:t.createNewItem,disabled:!t.isValid},{default:ao(()=>[Ua("Create")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[4]||(e[4]=s=>t.showError=s),color:"error",timeout:3e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[3]||(e[3]=s=>t.showError=!1)},{default:ao(()=>[Ua("Close")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])],64)}const dje=mp(uje,[["render",fje]]),hje=em({name:"RenameDialog",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemRenamed"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo(null),d=qo(""),s=qo(!1),n=S=>{t.isProtectedFile(S.title)||(E.value=S,f.value=S.title,o.value=!0)},u=()=>{o.value=!1,f.value="",E.value=null},b=S=>{d.value=S,s.value=!0};return{dialogVisible:o,newName:f,openDialog:n,closeDialog:u,renameItem:async()=>{if(!f.value.trim()){b("New name cannot be empty.");return}try{const S=await ou.post("api/rename_item",{path:t.currentPath,oldName:E.value.title,newName:f.value});S.data.success?(e("itemRenamed"),u()):b(S.data.message||"Failed to rename item. Please try again.")}catch(S){b("Error connecting to the server. Please try again."),console.error("Error renaming item:",S)}},errorMessage:d,showError:s}}});function pje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(fC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialogVisible=s),"max-width":"300px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Rename Item")]),_:1}),$t(dC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newName=s),label:"New Name",rules:[s=>!!s||"Name is required"],required:"",onKeyup:pce(t.renameItem,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",variant:"text",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"blue-darken-1",variant:"text",onClick:t.renameItem,disabled:!t.newName},{default:ao(()=>[Ua("Rename")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[3]||(e[3]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[2]||(e[2]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const mje=mp(hje,[["render",pje]]),gje=em({name:"DeleteItem",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemDeleted"],setup(t,{emit:e}){const o=qo(!1),f=qo(null),E=qo(""),d=qo(!1),s=i=>{t.isProtectedFile(i.title)||(f.value=i,o.value=!0)},n=()=>{o.value=!1,f.value=null},u=i=>{E.value=i,d.value=!0};return{dialogVisible:o,itemToDelete:f,openDialog:s,closeDialog:n,deleteItem:async()=>{try{const i=await ou.post("api/delete_item",{path:t.currentPath,name:f.value.title});i.data.success?(e("itemDeleted"),n()):u(`Failed to delete item: ${i.data.message}`)}catch(i){u("Error connecting to the server. Please try again."),console.error("Error deleting item:",i)}},errorMessage:E,showError:d}}});function vje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(fC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[0]||(e[0]=s=>t.dialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Confirm Deletion")]),_:1}),$t(dC,null,{default:ao(()=>{var s;return[Ua(' Are you sure you want to delete "'+Dl((s=t.itemToDelete)==null?void 0:s.title)+'"? ',1)]}),_:1}),$t(SD,null,{default:ao(()=>[$t(BM),$t(es,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(es,{color:"error",onClick:t.deleteItem},{default:ao(()=>[Ua("Delete")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[1]||(e[1]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const yje=mp(gje,[["render",vje]]),bje=em({name:"SidebarComponent",components:{FileUploader:cje,FileFolderCreator:dje,RenameDialog:mje,DeleteDialog:yje},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=qo(t.drawer),f=qo(t.items||[]),E=qo("."),d=qo([]),s=qo(""),n=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],u=qo(""),b=qo(!1),i=qo(["requirements.txt","notebook.ztnb"]),S=O=>i.value.includes(O),w=qo(null),y=qo(null),m=O=>{var C;(C=w.value)==null||C.openDialog(O)},a=O=>{var C;(C=y.value)==null||C.openDialog(O)};ia(()=>t.drawer,O=>{o.value=O}),ia(o,O=>{e("update:drawer",O),O&&v()});const c=async O=>{try{const C=await ou.get("api/get_children",{params:{path:O}});f.value=C.data.files,e("update:items",C.data.files)}catch(C){console.error("Failed to load files:",C)}};pg(()=>{c(E.value)});const h=O=>{O.file==="folder"&&(d.value.push(E.value),E.value=O.id,c(E.value))},p=()=>{d.value.length>0&&(E.value=d.value.pop()||".",c(E.value))},v=()=>{c(E.value)};return{localDrawer:o,localItems:f,handleItemClick:h,goBack:p,pathStack:d,currentPath:E,refreshFiles:v,fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},newItemName:s,itemTypes:n,renameDialog:w,openRenameDialog:m,openDeleteDialog:a,deleteDialog:y,errorMessage:u,showError:b,isProtectedFile:S}}}),xje={class:"d-flex"};function _je(t,e,o,f,E,d){const s=Nd("FileFolderCreator"),n=Nd("FileUploader"),u=Nd("RenameDialog"),b=Nd("DeleteDialog");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Uo(),da(vwe,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[3]||(e[3]=i=>t.localDrawer=i),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:ao(()=>[Na("div",xje,[t.pathStack.length>0?(Uo(),da(es,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):za("",!0),$t(BM),$t(s,{"current-path":t.currentPath,onItemCreated:t.refreshFiles},null,8,["current-path","onItemCreated"]),$t(n,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),$t(es,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=i=>t.localDrawer=!1)})]),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(t.localItems,i=>(Uo(),da(Xf,{key:i.id},{prepend:ao(()=>[i.file==="folder"?(Uo(),da(jl,{key:0},{default:ao(()=>[Ua(Dl("mdi-folder"))]),_:1})):(Uo(),da(jl,{key:1},{default:ao(()=>[Ua(Dl(t.fileIcon(i.file)),1)]),_:2},1024))]),append:ao(()=>[t.isProtectedFile(i.title)?za("",!0):(Uo(),da(BO,{key:0},{activator:ao(({props:S})=>[$t(es,qi({icon:"",variant:"text",density:"compact",class:"mr-2"},S),{default:ao(()=>[$t(jl,{size:"small"},{default:ao(()=>[Ua("mdi-dots-vertical")]),_:1})]),_:2},1040)]),default:ao(()=>[$t(Ax,null,{default:ao(()=>[$t(Xf,{onClick:S=>t.openRenameDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Rename")]),_:1})]),_:2},1032,["onClick"]),$t(Xf,{onClick:S=>t.openDeleteDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))]),default:ao(()=>[$t(z1,{onClick:S=>t.handleItemClick(i)},{default:ao(()=>[Ua(Dl(i.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),$t(Dq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=i=>t.showError=i),color:"error",timeout:5e3},{actions:ao(()=>[$t(es,{color:"white",variant:"text",onClick:e[1]||(e[1]=i=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"]),$t(u,{ref:"renameDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemRenamed:t.refreshFiles},null,8,["current-path","is-protected-file","onItemRenamed"]),$t(b,{ref:"deleteDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemDeleted:t.refreshFiles},null,8,["current-path","is-protected-file","onItemDeleted"])]),_:1},8,["modelValue"])):za("",!0)}const wje=mp(bje,[["render",_je]]);class UL{constructor(e,o={}){pu(this,"socket");pu(this,"pingInterval");pu(this,"pingTimeout");pu(this,"url");pu(this,"options");pu(this,"reconnectAttempts",0);pu(this,"maxReconnectAttempts",3);pu(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,E;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(E=(f=this.options).onOpen)==null||E.call(f),e("")},this.socket.onerror=f=>{var E,d;console.error(`WebSocket error: ${this.url}`,f),(d=(E=this.options).onError)==null||d.call(E,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),(!this.options.isCodeRunning||!this.options.isCodeRunning())&&this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Q0.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const Oje={components:{CodeComponent:Twe,MarkdownComponent:NOe,EditorComponent:$Oe,SQLComponent:WOe,PackageComponent:YOe,CodeCellManager:NUe,CopilotComponent:XUe,ShareComponent:nje,SidebarComponent:wje,Comments:DUe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:"",requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,showCreateButton:!1,envUserName:"",envProjectName:"",envTeamName:"",concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Mp}},setup(){const t=TD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=Hue(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return JT().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Q0.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new UL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.run_socket=new UL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.stop_socket=new UL(this.ws_url+"ws/stop_execution",{isCodeRunning:()=>this.isCodeRunning}),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new UL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.dependency_socket=new UL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,Vc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await ou.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await ou.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:2613/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version,this.showCreateButton=e.show_create_button,Q0.comments_enabled=e.comments_enabled,e!=null&&e.user_name&&(this.envUserName=e.user_name),e!=null&&e.project_name&&(this.envProjectName=e.project_name),e!=null&&e.team_name&&(this.envTeamName=e.team_name)},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),ou.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(E=>console.log("File processed",E.data)).catch(E=>console.error("Error processing file:",E.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let E in this.notebook.cells){const d={id:E,code:this.notebook.cells[E].code,variable_name:this.notebook.cells[E].variable_name||"",nonReactive:this.notebook.cells[E].nonReactive,showTable:this.notebook.cells[E].showTable,cellType:this.notebook.cells[E].cellType};for(const s of this.notebook.cells[E].components)s.component==="v-data-table"?o[s.id]="":o[s.id]=s.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const E=this.requestQueue.findIndex(d=>d.originId===t);E!==-1?this.requestQueue[E]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let s in this.notebook.cells)for(const n of this.notebook.cells[s].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const E={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const s=this.componentChangeQueue.findIndex(n=>n.componentId===e);s!==-1?this.componentChangeQueue[s]=E:this.componentChangeQueue.push(E);return}const d={originId:E.originId,components:E.components,userId:E.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};ou.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},E=(await ou.post("api/create_cell",o)).data;let d={};t||(d[E.id]=E);for(let s in this.notebook.cells)d[s]=this.notebook.cells[s],t===s&&(d[E.id]=E);E.cellType==="code"&&(this.completions[E.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await ou.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` +Required: `+Tt.join(", "));return Cs[No].apply(null,ga)},log:Cs=>{console.log(Cs,{constructors:Tt,constructor:No,params:ga})}}}}),xn}}.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])});const Os=(mt,Tt)=>{const xn=Bl.fromTable(mt);return Aa(xn,Tt).bind(yr=>{const so=yr[yr.length-1],No=yr[0].row,ui=so.row+so.rowspan,ga=xn.all.slice(No,ui);return Qi(ga)}).getOr("")},Si=mt=>Dr(mt,"rgb")?ii(mt):mt,lc=mt=>{const Tt=Ye.fromDom(mt);return{borderwidth:Er(Tt,"border-width").getOr(""),borderstyle:Er(Tt,"border-style").getOr(""),bordercolor:Er(Tt,"border-color").map(Si).getOr(""),backgroundcolor:Er(Tt,"background-color").map(Si).getOr("")}},rd=mt=>{const Tt=mt[0],xn=mt.slice(1);return Y(xn,Nn=>{Y(R(Tt),yr=>{T(Nn,(so,No)=>{const ui=Tt[yr];ui!==""&&yr===No&&ui!==so&&(Tt[yr]=yr==="class"?"mce-no-match":"")})})}),Tt},tp=(mt,Tt,xn,Nn)=>de(mt,yr=>!b(xn.formatter.matchNode(Nn,Tt+yr))).getOr(""),kt=v(tp,["left","center","right"],"align"),It=v(tp,["top","middle","bottom"],"valign"),Ut=(mt,Tt)=>{const xn=Jh(mt),Nn=_h(mt),yr=()=>({borderstyle:z(xn,"border-style").getOr(""),bordercolor:Si(z(xn,"border-color").getOr("")),backgroundcolor:Si(z(xn,"background-color").getOr(""))}),so={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},No=()=>{const ua=xn["border-width"];return bl(mt)&&ua?{border:ua}:z(Nn,"border").fold(()=>({}),Cs=>({border:Cs}))},ui=Tt?yr():{},ga=()=>{const ua=z(xn,"border-spacing").or(z(Nn,"cellspacing")).fold(()=>({}),ul=>({cellspacing:ul})),Cs=z(xn,"border-padding").or(z(Nn,"cellpadding")).fold(()=>({}),ul=>({cellpadding:ul}));return{...ua,...Cs}};return{...so,...xn,...Nn,...ui,...No(),...ga()}},J=mt=>dr(Ye.fromDom(mt)).map(Tt=>{const xn={selection:ah(mt.cells)};return Os(Tt,xn)}).getOr(""),le=(mt,Tt,xn)=>{const Nn=(ui,ga)=>{const Sa=Er(Ye.fromDom(ga),"border-width");return bl(mt)&&Sa.isSome()?Sa.getOr(""):ui.getAttrib(ga,"border")||iu(mt.dom,ga,"border-width")||iu(mt.dom,ga,"border")||""},yr=mt.dom,so=bl(mt)?yr.getStyle(Tt,"border-spacing")||yr.getAttrib(Tt,"cellspacing"):yr.getAttrib(Tt,"cellspacing")||yr.getStyle(Tt,"border-spacing"),No=bl(mt)?iu(yr,Tt,"padding")||yr.getAttrib(Tt,"cellpadding"):yr.getAttrib(Tt,"cellpadding")||iu(yr,Tt,"padding");return{width:yr.getStyle(Tt,"width")||yr.getAttrib(Tt,"width"),height:yr.getStyle(Tt,"height")||yr.getAttrib(Tt,"height"),cellspacing:so??"",cellpadding:No??"",border:Nn(yr,Tt),caption:!!yr.select("caption",Tt)[0],class:yr.getAttrib(Tt,"class",""),align:kt(mt,Tt),...xn?lc(Tt):{}}},ne=(mt,Tt,xn)=>{const Nn=mt.dom;return{height:Nn.getStyle(Tt,"height")||Nn.getAttrib(Tt,"height"),class:Nn.getAttrib(Tt,"class",""),type:J(Tt),align:kt(mt,Tt),...xn?lc(Tt):{}}},V=(mt,Tt,xn,Nn)=>{const yr=mt.dom,so=Nn.getOr(Tt);return{width:((ui,ga)=>yr.getStyle(ui,ga)||yr.getAttrib(ui,ga))(so,"width"),scope:yr.getAttrib(Tt,"scope"),celltype:An(Tt),class:yr.getAttrib(Tt,"class",""),halign:kt(mt,Tt),valign:It(mt,Tt),...xn?lc(Tt):{}}},ie=(mt,Tt)=>{const xn=Bl.fromTable(mt),Nn=Bl.justCells(xn),yr=pe(Nn,so=>K(Tt,No=>tt(so.element,No)));return q(yr,so=>({element:so.element.dom,column:Bl.getColumnAt(xn,so.column).map(No=>No.element.dom)}))},ge=(mt,Tt,xn,Nn)=>{Nn("scope")&&mt.setAttrib("scope",xn.scope),Nn("class")&&xn.class!=="mce-no-match"&&mt.setAttrib("class",xn.class),Nn("width")&&Tt.setStyle("width",Zn(xn.width))},xe=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setFormat("tablecellbackgroundcolor",Tt.backgroundcolor),xn("bordercolor")&&mt.setFormat("tablecellbordercolor",Tt.bordercolor),xn("borderstyle")&&mt.setFormat("tablecellborderstyle",Tt.borderstyle),xn("borderwidth")&&mt.setFormat("tablecellborderwidth",Zn(Tt.borderwidth))},Ee=(mt,Tt,xn,Nn)=>{const yr=Tt.length===1;Y(Tt,so=>{const No=so.element,ui=yr?C:Nn,ga=wr.normal(mt,No),Sa=so.column.map(ua=>wr.normal(mt,ua)).getOr(ga);ge(ga,Sa,xn,ui),rf(mt)&&xe(ga,xn,ui),Nn("halign")&&au(mt,No,xn.halign),Nn("valign")&&zf(mt,No,xn.valign)})},Ne=(mt,Tt)=>{mt.execCommand("mceTableCellType",!1,{type:Tt.celltype,no_events:!0})},et=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);I(yr)>0&&Tt.length>=1&&dr(Tt[0]).each(so=>{const No=ie(so,Tt),ui=I(L(yr,(Sa,ua)=>ua!=="scope"&&ua!=="celltype"))>0,ga=$(yr,"celltype");(ui||$(yr,"scope"))&&Ee(mt,No,Nn,v($,yr)),ga&&Ne(mt,Nn),_s(mt,so.dom,{structure:ga,style:ui})})},rt=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{et(mt,Tt,xn,yr),mt.focus()})},dt=(mt,Tt)=>{const xn=dr(Tt[0]).map(Nn=>q(ie(Nn,Tt),yr=>V(mt,yr.element,rf(mt),yr.column)));return rd(xn.getOrDie())},gt=mt=>{const Tt=wd(mt);if(Tt.length===0)return;const xn=dt(mt,Tt),Nn={type:"tabpanel",tabs:[{title:"General",name:"general",items:Kt(mt)},En(mt,"cell")]},yr={type:"panel",items:[{type:"grid",columns:2,items:Kt(mt)}]};mt.windowManager.open({title:"Cell Properties",size:"normal",body:rf(mt)?Nn:yr,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:xn,onSubmit:v(rt,mt,Tt,xn)})},Rt=mt=>Eu(Kh(mt)).map(Tt=>({name:"class",type:"listbox",label:"Class",items:Tt})),Mt=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],Xt=mt=>Mt.concat(Rt(mt).toArray()),dn=(mt,Tt,xn)=>{xn("class")&&Tt.class!=="mce-no-match"&&mt.setAttrib("class",Tt.class),xn("height")&&mt.setStyle("height",Zn(Tt.height))},bn=(mt,Tt,xn)=>{xn("backgroundcolor")&&mt.setStyle("background-color",Tt.backgroundcolor),xn("bordercolor")&&mt.setStyle("border-color",Tt.bordercolor),xn("borderstyle")&&mt.setStyle("border-style",Tt.borderstyle)},vn=(mt,Tt,xn,Nn)=>{const so=Tt.length===1?C:Nn;Y(Tt,No=>{const ui=gr(Ye.fromDom(No),"td,th"),ga=wr.normal(mt,No);dn(ga,xn,so),of(mt)&&bn(ga,xn,so),Nn("height")&&Y(ui,Sa=>{mt.dom.setStyle(Sa.dom,"height",null)}),Nn("align")&&au(mt,No,xn.align)})},Ln=(mt,Tt)=>{mt.execCommand("mceTableRowType",!1,{type:Tt.type,no_events:!0})},gn=(mt,Tt,xn,Nn)=>{const yr=L(Nn,(so,No)=>xn[No]!==so);if(I(yr)>0){const so=$(yr,"type"),No=so?I(yr)>1:!0;No&&vn(mt,Tt,Nn,v($,yr)),so&&Ln(mt,Nn),dr(Ye.fromDom(Tt[0])).each(ui=>_s(mt,ui.dom,{structure:so,style:No}))}},Jn=(mt,Tt,xn,Nn)=>{const yr=Nn.getData();Nn.close(),mt.undoManager.transact(()=>{gn(mt,Tt,xn,yr),mt.focus()})},pn=mt=>{const Tt=Ol(tr(mt),nc.selected);if(Tt.length===0)return;const xn=q(Tt,No=>ne(mt,No.dom,of(mt))),Nn=rd(xn),yr={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xt(mt)},En(mt,"row")]},so={type:"panel",items:[{type:"grid",columns:2,items:Xt(mt)}]};mt.windowManager.open({title:"Row Properties",size:"normal",body:of(mt)?yr:so,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Nn,onSubmit:v(Jn,mt,q(Tt,No=>No.dom),Nn)})},In=(mt,Tt,xn)=>{const Nn=xn?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],yr=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],so=vu(mt)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],No=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],ui=Tt.length>0?[{name:"class",type:"listbox",label:"Class",items:Tt}]:[];return Nn.concat(yr).concat(so).concat(No).concat(ui)},Ir=(mt,Tt,xn,Nn)=>{if(Tt.tagName==="TD"||Tt.tagName==="TH")s(xn)&&S(Nn)?mt.setStyle(Tt,xn,Nn):mt.setStyles(Tt,xn);else if(Tt.children)for(let yr=0;yr{const yr=mt.dom,so={},No={},ui=bl(mt),ga=bf(mt),Sa=parseFloat(xn.border)===0;if(!b(xn.class)&&xn.class!=="mce-no-match"&&(so.class=xn.class),No.height=Zn(xn.height),ui?No.width=Zn(xn.width):yr.getAttrib(Tt,"width")&&(so.width=Un(xn.width)),ui?(Sa?(so.border=0,No["border-width"]=""):(No["border-width"]=Zn(xn.border),so.border=1),No["border-spacing"]=Zn(xn.cellspacing)):(so.border=Sa?0:xn.border,so.cellpadding=xn.cellpadding,so.cellspacing=xn.cellspacing),ui&&Tt.children){const ua={};if(Sa?ua["border-width"]="":Nn.border&&(ua["border-width"]=Zn(xn.border)),Nn.cellpadding&&(ua.padding=Zn(xn.cellpadding)),ga&&Nn.bordercolor&&(ua["border-color"]=xn.bordercolor),!j(ua))for(let Cs=0;Cs{const yr=mt.dom,so=Nn.getData(),No=L(so,(ui,ga)=>xn[ga]!==ui);Nn.close(),mt.undoManager.transact(()=>{if(!Tt){const ui=io(so.cols).getOr(1),ga=io(so.rows).getOr(1);mt.execCommand("mceInsertTable",!1,{rows:ga,columns:ui}),Tt=bu(tr(mt),fr(mt)).bind(Sa=>dr(Sa,fr(mt))).map(Sa=>Sa.dom).getOrDie()}if(I(No)>0){const ui={border:$(No,"border"),bordercolor:$(No,"bordercolor"),cellpadding:$(No,"cellpadding")};Pr(mt,Tt,so,ui);const ga=yr.select("caption",Tt)[0];(ga&&!so.caption||!ga&&so.caption)&&mt.execCommand("mceTableToggleCaption"),au(mt,Tt,so.align)}if(mt.focus(),mt.addVisual(),I(No)>0){const ui=$(No,"caption"),ga=ui?I(No)>1:!0;_s(mt,Tt,{structure:ui,style:ga})}})},ro=(mt,Tt)=>{const xn=mt.dom;let Nn,yr=Ut(mt,bf(mt));Tt?(yr.cols="1",yr.rows="1",bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor="")):(Nn=xn.getParent(mt.selection.getStart(),"table",mt.getBody()),Nn?yr=le(mt,Nn,bf(mt)):bf(mt)&&(yr.borderstyle="",yr.bordercolor="",yr.backgroundcolor=""));const so=Eu(Cu(mt));so.isSome()&&yr.class&&(yr.class=yr.class.replace(/\s*mce\-item\-table\s*/g,""));const No={type:"grid",columns:2,items:In(mt,so.getOr([]),Tt)},ui=()=>({type:"panel",items:[No]}),ga=()=>({type:"tabpanel",tabs:[{title:"General",name:"general",items:[No]},En(mt,"table")]}),Sa=bf(mt)?ga():ui();mt.windowManager.open({title:"Table Properties",size:"normal",body:Sa,onSubmit:v(Gr,mt,Nn,yr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:yr})},po=mt=>{const Tt=xn=>{$r(tr(mt))&&xn()};T({mceTableProps:v(ro,mt,!1),mceTableRowProps:v(pn,mt),mceTableCellProps:v(gt,mt),mceInsertTableDialog:v(ro,mt,!0)},(xn,Nn)=>mt.addCommand(Nn,()=>Tt(xn)))},Wo=(mt,Tt)=>Zt(mt,Tt).isSome(),si=h,Bo=mt=>{const Tt=(Nn,yr)=>Jr(Nn,yr).exists(so=>parseInt(so,10)>1),xn=Nn=>Tt(Nn,"rowspan")||Tt(Nn,"colspan");return mt.length>0&&_e(mt,xn)?x.some(mt):x.none()},Go=(mt,Tt,xn)=>Tt.length<=1?x.none():vp(mt,xn.firstSelectedSelector,xn.lastSelectedSelector).map(Nn=>({bounds:Nn,cells:Tt})),Yo=mt=>({element:mt,mergable:x.none(),unmergable:x.none(),selection:[mt]}),Wi=(mt,Tt,xn)=>({element:xn,mergable:Go(Tt,mt,nc),unmergable:Bo(mt),selection:si(mt)}),Ho=mt=>{const Tt=nd(x.none()),xn=nd([]);let Nn=x.none();const yr=tn("caption"),so=ss=>Nn.forall(Gl=>!Gl[ss]),No=()=>wi(tr(mt),fr(mt)),ui=()=>wi(Br(mt),fr(mt)),ga=()=>No().bind(ss=>$o(_o(dr(ss),ui().bind(dr),(Gl,Sf)=>tt(Gl,Sf)?yr(ss)?x.some(Yo(ss)):x.some(Wi(wd(mt),Gl,ss)):x.none()))),Sa=ss=>dr(ss.element).map(Sf=>{const Nc=Bl.fromTable(Sf),o0=Aa(Nc,ss).getOr([]),i0=ae(o0,(a0,wu)=>(wu.isLocked&&(a0.onAny=!0,wu.column===0?a0.onFirst=!0:wu.column+wu.colspan>=Nc.grid.columns&&(a0.onLast=!0)),a0),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:sh(Nc,ss).isSome(),unmergeable:_c(Nc,ss).isSome(),locked:i0}}),ua=()=>{Tt.set(Ws(ga)()),Nn=Tt.get().bind(Sa),Y(xn.get(),_)},Cs=ss=>(ss(),xn.set(xn.get().concat([ss])),()=>{xn.set(pe(xn.get(),Gl=>Gl!==ss))}),ul=(ss,Gl)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1)},Sf=>{ss.setEnabled(!Gl(Sf)&&mt.selection.isEditable())})),Jc=(ss,Gl,Sf)=>Cs(()=>Tt.get().fold(()=>{ss.setEnabled(!1),ss.setActive(!1)},Nc=>{ss.setEnabled(!Gl(Nc)&&mt.selection.isEditable()),ss.setActive(Sf(Nc))})),Is=ss=>Nn.exists(Gl=>Gl.locked[ss]),Hc=ss=>ul(ss,Gl=>!1),Nl=ss=>ul(ss,Gl=>yr(Gl.element)),lh=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||Is(ss)),r0=ss=>Gl=>ul(Gl,Sf=>yr(Sf.element)||ss().isNone()),ch=(ss,Gl)=>Sf=>ul(Sf,Nc=>yr(Nc.element)||ss().isNone()||Is(Gl)),gg=ss=>ul(ss,Gl=>so("mergeable")),Ip=ss=>ul(ss,Gl=>so("unmergeable")),X0=ss=>Jc(ss,O,Gl=>dr(Gl.element,fr(mt)).exists(Nc=>Wo(Nc,"caption"))),Vh=(ss,Gl)=>Sf=>Jc(Sf,Nc=>yr(Nc.element),()=>mt.queryCommandValue(ss)===Gl),Pu=Vh("mceTableRowType","header"),Uh=Vh("mceTableColType","th");return mt.on("NodeChange ExecCommand TableSelectorChange",ua),{onSetupTable:Hc,onSetupCellOrRow:Nl,onSetupColumn:lh,onSetupPasteable:r0,onSetupPasteableColumn:ch,onSetupMergeable:gg,onSetupUnmergeable:Ip,resetTargets:ua,onSetupTableWithCaption:X0,onSetupTableRowHeaders:Pu,onSetupTableColumnHeaders:Uh,targets:Tt.get}};var jo=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Yi="x-tinymce/dom-table-",ai=Yi+"rows",Hi=Yi+"columns",Ai=mt=>{var Tt;const xn=(Tt=jo.read())!==null&&Tt!==void 0?Tt:[];return ze(xn,Nn=>x.from(Nn.getType(mt)))},es=()=>Ai(ai),Ar=()=>Ai(Hi),ns=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},$s=(mt,Tt)=>{mt.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",onSetup:ns(mt),fetch:ui=>ui("inserttable | cell row column | advtablesort | tableprops deletetable")});const xn=ui=>()=>mt.execCommand(ui),Nn=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})},yr=(ui,ga)=>{mt.queryCommandSupported(ga.command)&&mt.ui.registry.addToggleButton(ui,{...ga,onAction:w(ga.onAction)?ga.onAction:xn(ga.command)})};Nn("tableprops",{tooltip:"Table properties",command:"mceTableProps",icon:"table",onSetup:Tt.onSetupTable}),Nn("tabledelete",{tooltip:"Delete table",command:"mceTableDelete",icon:"table-delete-table",onSetup:Tt.onSetupTable}),Nn("tablecellprops",{tooltip:"Cell properties",command:"mceTableCellProps",icon:"table-cell-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{tooltip:"Merge cells",command:"mceTableMergeCells",icon:"table-merge-cells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{tooltip:"Split cell",command:"mceTableSplitCells",icon:"table-split-cells",onSetup:Tt.onSetupUnmergeable}),Nn("tableinsertrowbefore",{tooltip:"Insert row before",command:"mceTableInsertRowBefore",icon:"table-insert-row-above",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{tooltip:"Insert row after",command:"mceTableInsertRowAfter",icon:"table-insert-row-after",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{tooltip:"Delete row",command:"mceTableDeleteRow",icon:"table-delete-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{tooltip:"Row properties",command:"mceTableRowProps",icon:"table-row-properties",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertcolbefore",{tooltip:"Insert column before",command:"mceTableInsertColBefore",icon:"table-insert-column-before",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolafter",{tooltip:"Insert column after",command:"mceTableInsertColAfter",icon:"table-insert-column-after",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecol",{tooltip:"Delete column",command:"mceTableDeleteCol",icon:"table-delete-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutrow",{tooltip:"Cut row",command:"mceTableCutRow",icon:"cut-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{tooltip:"Copy row",command:"mceTableCopyRow",icon:"duplicate-row",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{tooltip:"Paste row before",command:"mceTablePasteRowBefore",icon:"paste-row-before",onSetup:Tt.onSetupPasteable(es)}),Nn("tablepasterowafter",{tooltip:"Paste row after",command:"mceTablePasteRowAfter",icon:"paste-row-after",onSetup:Tt.onSetupPasteable(es)}),Nn("tablecutcol",{tooltip:"Cut column",command:"mceTableCutCol",icon:"cut-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycol",{tooltip:"Copy column",command:"mceTableCopyCol",icon:"duplicate-column",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolbefore",{tooltip:"Paste column before",command:"mceTablePasteColBefore",icon:"paste-column-before",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolafter",{tooltip:"Paste column after",command:"mceTablePasteColAfter",icon:"paste-column-after",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")}),Nn("tableinsertdialog",{tooltip:"Insert table",command:"mceInsertTableDialog",icon:"table",onSetup:ns(mt)});const so=Fu(Cu(mt));so.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:su(mt,so,"tableclass",ui=>mt.execCommand("mceTableToggleClass",!1,ui)),onSetup:Tt.onSetupTable});const No=Fu(Zu(mt));No.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:su(mt,No,"tablecellclass",ui=>mt.execCommand("mceTableCellToggleClass",!1,ui)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:su(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:su(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:su(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:ui=>ui(Ca(mt,Bu(mt),"background-color")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:ui=>ui(Ca(mt,vd(mt),"border-color")),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{tooltip:"Table caption",icon:"table-caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{tooltip:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{tooltip:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableColumnHeaders})},Ts=mt=>{const Tt=Nn=>mt.dom.is(Nn,"table")&&mt.getBody().contains(Nn)&&mt.dom.isEditable(Nn.parentNode),xn=ed(mt);xn.length>0&&mt.ui.registry.addContextToolbar("table",{predicate:Tt,items:xn,scope:"node",position:"node"})},rl=mt=>Tt=>{const xn=()=>{Tt.setEnabled(mt.selection.isEditable())};return mt.on("NodeChange",xn),xn(),()=>{mt.off("NodeChange",xn)}},Hs=(mt,Tt)=>{const xn=Cs=>()=>mt.execCommand(Cs),Nn=(Cs,ul)=>mt.queryCommandSupported(ul.command)?(mt.ui.registry.addMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)}),!0):!1,yr=(Cs,ul)=>{mt.queryCommandSupported(ul.command)&&mt.ui.registry.addToggleMenuItem(Cs,{...ul,onAction:w(ul.onAction)?ul.onAction:xn(ul.command)})},so=Cs=>{mt.execCommand("mceInsertTable",!1,{rows:Cs.numRows,columns:Cs.numColumns})},No=[Nn("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",command:"mceTableInsertRowBefore",onSetup:Tt.onSetupCellOrRow}),Nn("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",command:"mceTableInsertRowAfter",onSetup:Tt.onSetupCellOrRow}),Nn("tabledeleterow",{text:"Delete row",icon:"table-delete-row",command:"mceTableDeleteRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablerowprops",{text:"Row properties",icon:"table-row-properties",command:"mceTableRowProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablecutrow",{text:"Cut row",icon:"cut-row",command:"mceTableCutRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablecopyrow",{text:"Copy row",icon:"duplicate-row",command:"mceTableCopyRow",onSetup:Tt.onSetupCellOrRow}),Nn("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",command:"mceTablePasteRowBefore",onSetup:Tt.onSetupPasteable(es)}),Nn("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",command:"mceTablePasteRowAfter",onSetup:Tt.onSetupPasteable(es)})],ui=[Nn("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",command:"mceTableInsertColBefore",onSetup:Tt.onSetupColumn("onFirst")}),Nn("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",command:"mceTableInsertColAfter",onSetup:Tt.onSetupColumn("onLast")}),Nn("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",command:"mceTableDeleteCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecutcolumn",{text:"Cut column",icon:"cut-column",command:"mceTableCutCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",command:"mceTableCopyCol",onSetup:Tt.onSetupColumn("onAny")}),Nn("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",command:"mceTablePasteColBefore",onSetup:Tt.onSetupPasteableColumn(Ar,"onFirst")}),Nn("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",command:"mceTablePasteColAfter",onSetup:Tt.onSetupPasteableColumn(Ar,"onLast")})],ga=[Nn("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",command:"mceTableCellProps",onSetup:Tt.onSetupCellOrRow}),Nn("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",command:"mceTableMergeCells",onSetup:Tt.onSetupMergeable}),Nn("tablesplitcells",{text:"Split cell",icon:"table-split-cells",command:"mceTableSplitCells",onSetup:Tt.onSetupUnmergeable})];$d(mt)?mt.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"inserttable",onAction:so}],onSetup:rl(mt)}):mt.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),mt.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:xn("mceInsertTableDialog"),onSetup:rl(mt)}),Nn("tableprops",{text:"Table properties",onSetup:Tt.onSetupTable,command:"mceTableProps"}),Nn("deletetable",{text:"Delete table",icon:"table-delete-table",onSetup:Tt.onSetupTable,command:"mceTableDelete"}),Z(No,!0)&&mt.ui.registry.addNestedMenuItem("row",{type:"nestedmenuitem",text:"Row",getSubmenuItems:c("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")}),Z(ui,!0)&&mt.ui.registry.addNestedMenuItem("column",{type:"nestedmenuitem",text:"Column",getSubmenuItems:c("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")}),Z(ga,!0)&&mt.ui.registry.addNestedMenuItem("cell",{type:"nestedmenuitem",text:"Cell",getSubmenuItems:c("tablecellprops tablemergecells tablesplitcells")}),mt.ui.registry.addContextMenu("table",{update:()=>(Tt.resetTargets(),Tt.targets().fold(c(""),Cs=>Ge(Cs.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"))});const Sa=Fu(Cu(mt));Sa.length!==0&&mt.queryCommandSupported("mceTableToggleClass")&&mt.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:()=>xu(mt,Sa,"tableclass",Cs=>mt.execCommand("mceTableToggleClass",!1,Cs)),onSetup:Tt.onSetupTable});const ua=Fu(Zu(mt));ua.length!==0&&mt.queryCommandSupported("mceTableCellToggleClass")&&mt.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:()=>xu(mt,ua,"tablecellclass",Cs=>mt.execCommand("mceTableCellToggleClass",!1,Cs)),onSetup:Tt.onSetupCellOrRow}),mt.queryCommandSupported("mceTableApplyCellStyle")&&(mt.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:()=>xu(mt,ds,"tablecellverticalalign",ws(mt,"vertical-align")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:()=>xu(mt,Lp(mt),"tablecellborderwidth",ws(mt,"border-width")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:()=>xu(mt,rh(mt),"tablecellborderstyle",ws(mt,"border-style")),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:()=>Ca(mt,Bu(mt),"background-color"),onSetup:Tt.onSetupCellOrRow}),mt.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:()=>Ca(mt,vd(mt),"border-color"),onSetup:Tt.onSetupCellOrRow})),yr("tablecaption",{icon:"table-caption",text:"Table caption",command:"mceTableToggleCaption",onSetup:Tt.onSetupTableWithCaption}),yr("tablerowheader",{text:"Row header",icon:"table-top-header",command:"mceTableRowType",onAction:Ls(mt),onSetup:Tt.onSetupTableRowHeaders}),yr("tablecolheader",{text:"Column header",icon:"table-left-header",command:"mceTableColType",onAction:Ec(mt),onSetup:Tt.onSetupTableRowHeaders})},ys=mt=>{const Tt=Ho(mt);Dc(mt),po(mt),Hs(mt,Tt),$s(mt,Tt),Ts(mt)};var Yu=()=>{t.add("table",ys)};Yu()})();(function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=Object.getPrototypeOf,o=(Qt,Mn,Fn)=>{var dr;return Fn(Qt,Mn.prototype)?!0:((dr=Qt.constructor)===null||dr===void 0?void 0:dr.name)===Mn.name},f=Qt=>{const Mn=typeof Qt;return Qt===null?"null":Mn==="object"&&Array.isArray(Qt)?"array":Mn==="object"&&o(Qt,String,(Fn,dr)=>dr.isPrototypeOf(Fn))?"string":Mn},E=Qt=>Mn=>f(Mn)===Qt,d=Qt=>Mn=>typeof Mn===Qt,s=Qt=>Mn=>Qt===Mn,n=(Qt,Mn)=>b(Qt)&&o(Qt,Mn,(Fn,dr)=>e(Fn)===dr),u=E("string"),b=E("object"),i=Qt=>n(Qt,Object),S=E("array"),w=s(null),y=d("boolean"),m=Qt=>Qt==null,a=Qt=>!m(Qt),c=d("function"),h=d("number"),p=(Qt,Mn)=>{if(S(Qt)){for(let Fn=0,dr=Qt.length;Fn{};class _{constructor(Mn,Fn){this.tag=Mn,this.value=Fn}static some(Mn){return new _(!0,Mn)}static none(){return _.singletonNone}fold(Mn,Fn){return this.tag?Fn(this.value):Mn()}isSome(){return this.tag}isNone(){return!this.tag}map(Mn){return this.tag?_.some(Mn(this.value)):_.none()}bind(Mn){return this.tag?Mn(this.value):_.none()}exists(Mn){return this.tag&&Mn(this.value)}forall(Mn){return!this.tag||Mn(this.value)}filter(Mn){return!this.tag||Mn(this.value)?this:_.none()}getOr(Mn){return this.tag?this.value:Mn}or(Mn){return this.tag?this:Mn}getOrThunk(Mn){return this.tag?this.value:Mn()}orThunk(Mn){return this.tag?this:Mn()}getOrDie(Mn){if(this.tag)return this.value;throw new Error(Mn??"Called getOrDie on None")}static from(Mn){return a(Mn)?_.some(Mn):_.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Mn){this.tag&&Mn(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}_.singletonNone=new _(!1);const O=Object.keys,C=Object.hasOwnProperty,x=(Qt,Mn)=>{const Fn=O(Qt);for(let dr=0,xr=Fn.length;dr(Mn,Fn)=>{Qt[Fn]=Mn},M=(Qt,Mn,Fn,dr)=>{x(Qt,(xr,Oo)=>{(Mn(xr,Oo)?Fn:dr)(xr,Oo)})},T=(Qt,Mn)=>{const Fn={};return M(Qt,Mn,R(Fn),v),Fn},P=(Qt,Mn)=>C.call(Qt,Mn),A=(Qt,Mn)=>P(Qt,Mn)&&Qt[Mn]!==void 0&&Qt[Mn]!==null,L=Array.prototype.push,D=Qt=>{const Mn=[];for(let Fn=0,dr=Qt.length;FnMn>=0&&Mnk(Qt,0),z=(Qt,Mn)=>{for(let Fn=0;Fn{if(u(Fn)||y(Fn)||h(Fn))Qt.setAttribute(Mn,Fn+"");else throw console.error("Invalid call to Attribute.set. Key ",Mn,":: Value ",Fn,":: Element ",Qt),new Error("Attribute value was not simple")},Q=(Qt,Mn,Fn)=>{$(Qt.dom,Mn,Fn)},j=(Qt,Mn)=>{Qt.dom.removeAttribute(Mn)},U=(Qt,Mn)=>{const dr=(Mn||document).createElement("div");if(dr.innerHTML=Qt,!dr.hasChildNodes()||dr.childNodes.length>1){const xr="HTML does not have a single root node";throw console.error(xr,Qt),new Error(xr)}return Z(dr.childNodes[0])},X=(Qt,Mn)=>{const dr=(Mn||document).createElement(Qt);return Z(dr)},te=(Qt,Mn)=>{const dr=(Mn||document).createTextNode(Qt);return Z(dr)},Z=Qt=>{if(Qt==null)throw new Error("Node cannot be null or undefined");return{dom:Qt}},re={fromHtml:U,fromTag:X,fromText:te,fromDom:Z,fromPoint:(Qt,Mn,Fn)=>_.from(Qt.dom.elementFromPoint(Mn,Fn)).map(Z)};var q=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Y=tinymce.util.Tools.resolve("tinymce.util.URI");const ee=Qt=>Qt.length>0,me=Qt=>Mn=>Mn.options.get(Qt),pe=Qt=>{const Mn=Qt.options.register;Mn("image_dimensions",{processor:"boolean",default:!0}),Mn("image_advtab",{processor:"boolean",default:!1}),Mn("image_uploadtab",{processor:"boolean",default:!0}),Mn("image_prepend_url",{processor:"string",default:""}),Mn("image_class_list",{processor:"object[]"}),Mn("image_description",{processor:"boolean",default:!0}),Mn("image_title",{processor:"boolean",default:!1}),Mn("image_caption",{processor:"boolean",default:!1}),Mn("image_list",{processor:Fn=>{const dr=Fn===!1||u(Fn)||p(Fn,b)||c(Fn);return dr?{value:Fn,valid:dr}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},se=me("image_dimensions"),ae=me("image_advtab"),ce=me("image_uploadtab"),de=me("image_prepend_url"),ye=me("image_class_list"),ve=me("image_description"),_e=me("image_title"),we=me("image_caption"),Te=me("image_list"),Pe=me("a11y_advanced_options"),Ie=me("automatic_uploads"),ze=Qt=>ee(Qt.options.get("images_upload_url")),De=Qt=>a(Qt.options.get("images_upload_handler")),Qe=(Qt,Mn)=>Math.max(parseInt(Qt,10),parseInt(Mn,10)),Ve=Qt=>new Promise(Mn=>{const Fn=document.createElement("img"),dr=Oo=>{Fn.onload=Fn.onerror=null,Fn.parentNode&&Fn.parentNode.removeChild(Fn),Mn(Oo)};Fn.onload=()=>{const Oo=Qe(Fn.width,Fn.clientWidth),mi=Qe(Fn.height,Fn.clientHeight),Di={width:Oo,height:mi};dr(Promise.resolve(Di))},Fn.onerror=()=>{dr(Promise.reject(`Failed to get image dimensions for: ${Qt}`))};const xr=Fn.style;xr.visibility="hidden",xr.position="fixed",xr.bottom=xr.left="0px",xr.width=xr.height="auto",document.body.appendChild(Fn),Fn.src=Qt}),$e=Qt=>(Qt&&(Qt=Qt.replace(/px$/,"")),Qt),Oe=Qt=>(Qt.length>0&&/^[0-9]+$/.test(Qt)&&(Qt+="px"),Qt),ke=Qt=>{if(Qt.margin){const Mn=String(Qt.margin).split(" ");switch(Mn.length){case 1:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[0],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[0];break;case 2:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[0],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 3:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[1];break;case 4:Qt["margin-top"]=Qt["margin-top"]||Mn[0],Qt["margin-right"]=Qt["margin-right"]||Mn[1],Qt["margin-bottom"]=Qt["margin-bottom"]||Mn[2],Qt["margin-left"]=Qt["margin-left"]||Mn[3]}delete Qt.margin}return Qt},Re=(Qt,Mn)=>{const Fn=Te(Qt);u(Fn)?fetch(Fn).then(dr=>{dr.ok&&dr.json().then(Mn)}):c(Fn)?Fn(Mn):Mn(Fn)},We=(Qt,Mn,Fn)=>{const dr=()=>{Fn.onload=Fn.onerror=null,Qt.selection&&(Qt.selection.select(Fn),Qt.nodeChanged())};Fn.onload=()=>{!Mn.width&&!Mn.height&&se(Qt)&&Qt.dom.setAttribs(Fn,{width:String(Fn.clientWidth),height:String(Fn.clientHeight)}),dr()},Fn.onerror=dr},Ue=Qt=>new Promise((Mn,Fn)=>{const dr=new FileReader;dr.onload=()=>{Mn(dr.result)},dr.onerror=()=>{var xr;Fn((xr=dr.error)===null||xr===void 0?void 0:xr.message)},dr.readAsDataURL(Qt)}),Ze=Qt=>Qt.nodeName==="IMG"&&(Qt.hasAttribute("data-mce-object")||Qt.hasAttribute("data-mce-placeholder")),Ye=(Qt,Mn)=>{const Fn=Qt.options.get;return Y.isDomSafe(Mn,"img",{allow_html_data_urls:Fn("allow_html_data_urls"),allow_script_urls:Fn("allow_script_urls"),allow_svg_data_urls:Fn("allow_svg_data_urls")})},Je=q.DOM,Me=Qt=>Qt.style.marginLeft&&Qt.style.marginRight&&Qt.style.marginLeft===Qt.style.marginRight?$e(Qt.style.marginLeft):"",Fe=Qt=>Qt.style.marginTop&&Qt.style.marginBottom&&Qt.style.marginTop===Qt.style.marginBottom?$e(Qt.style.marginTop):"",je=Qt=>Qt.style.borderWidth?$e(Qt.style.borderWidth):"",tt=(Qt,Mn)=>{var Fn;return Qt.hasAttribute(Mn)&&(Fn=Qt.getAttribute(Mn))!==null&&Fn!==void 0?Fn:""},ot=Qt=>Qt.parentNode!==null&&Qt.parentNode.nodeName==="FIGURE",Ge=(Qt,Mn,Fn)=>{Fn===""||Fn===null?Qt.removeAttribute(Mn):Qt.setAttribute(Mn,Fn)},ht=Qt=>{const Mn=Je.create("figure",{class:"image"});Je.insertAfter(Mn,Qt),Mn.appendChild(Qt),Mn.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),Mn.contentEditable="false"},pt=Qt=>{const Mn=Qt.parentNode;a(Mn)&&(Je.insertAfter(Qt,Mn),Je.remove(Mn))},St=Qt=>{ot(Qt)?pt(Qt):ht(Qt)},Ft=(Qt,Mn)=>{const Fn=Qt.getAttribute("style"),dr=Mn(Fn!==null?Fn:"");dr.length>0?(Qt.setAttribute("style",dr),Qt.setAttribute("data-mce-style",dr)):Qt.removeAttribute("style")},zt=(Qt,Mn)=>(Fn,dr,xr)=>{const Oo=Fn.style;Oo[dr]?(Oo[dr]=Oe(xr),Ft(Fn,Mn)):Ge(Fn,dr,xr)},Yt=(Qt,Mn)=>Qt.style[Mn]?$e(Qt.style[Mn]):tt(Qt,Mn),ln=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginLeft=Fn,Qt.style.marginRight=Fn},tn=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.marginTop=Fn,Qt.style.marginBottom=Fn},Et=(Qt,Mn)=>{const Fn=Oe(Mn);Qt.style.borderWidth=Fn},Ot=(Qt,Mn)=>{Qt.style.borderStyle=Mn},cn=Qt=>{var Mn;return(Mn=Qt.style.borderStyle)!==null&&Mn!==void 0?Mn:""},Cn=Qt=>a(Qt)&&Qt.nodeName==="FIGURE",Pn=Qt=>Qt.nodeName==="IMG",Sn=Qt=>Je.getAttrib(Qt,"alt").length===0&&Je.getAttrib(Qt,"role")==="presentation",vt=Qt=>Sn(Qt)?"":tt(Qt,"alt"),xt=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),st=(Qt,Mn)=>{var Fn;const dr=document.createElement("img");return Ge(dr,"style",Mn.style),(Me(dr)||Mn.hspace!=="")&&ln(dr,Mn.hspace),(Fe(dr)||Mn.vspace!=="")&&tn(dr,Mn.vspace),(je(dr)||Mn.border!=="")&&Et(dr,Mn.border),(cn(dr)||Mn.borderStyle!=="")&&Ot(dr,Mn.borderStyle),Qt((Fn=dr.getAttribute("style"))!==null&&Fn!==void 0?Fn:"")},bt=(Qt,Mn)=>{const Fn=document.createElement("img");if(_t(Qt,{...Mn,caption:!1},Fn),it(Fn,Mn.alt,Mn.isDecorative),Mn.caption){const dr=Je.create("figure",{class:"image"});return dr.appendChild(Fn),dr.appendChild(Je.create("figcaption",{contentEditable:"true"},"Caption")),dr.contentEditable="false",dr}else return Fn},Vt=(Qt,Mn)=>({src:tt(Mn,"src"),alt:vt(Mn),title:tt(Mn,"title"),width:Yt(Mn,"width"),height:Yt(Mn,"height"),class:tt(Mn,"class"),style:Qt(tt(Mn,"style")),caption:ot(Mn),hspace:Me(Mn),vspace:Fe(Mn),border:je(Mn),borderStyle:cn(Mn),isDecorative:Sn(Mn)}),Dt=(Qt,Mn,Fn,dr,xr)=>{Fn[dr]!==Mn[dr]&&xr(Qt,dr,String(Fn[dr]))},it=(Qt,Mn,Fn)=>{if(Fn){Je.setAttrib(Qt,"role","presentation");const dr=re.fromDom(Qt);Q(dr,"alt","")}else{if(w(Mn)){const dr=re.fromDom(Qt);j(dr,"alt")}else{const dr=re.fromDom(Qt);Q(dr,"alt",Mn)}Je.getAttrib(Qt,"role")==="presentation"&&Je.setAttrib(Qt,"role","")}},at=(Qt,Mn,Fn)=>{(Fn.alt!==Mn.alt||Fn.isDecorative!==Mn.isDecorative)&&it(Qt,Fn.alt,Fn.isDecorative)},Bt=(Qt,Mn)=>(Fn,dr,xr)=>{Qt(Fn,xr),Ft(Fn,Mn)},_t=(Qt,Mn,Fn)=>{const dr=Vt(Qt,Fn);Dt(Fn,dr,Mn,"caption",(xr,Oo,mi)=>St(xr)),Dt(Fn,dr,Mn,"src",Ge),Dt(Fn,dr,Mn,"title",Ge),Dt(Fn,dr,Mn,"width",zt("width",Qt)),Dt(Fn,dr,Mn,"height",zt("height",Qt)),Dt(Fn,dr,Mn,"class",Ge),Dt(Fn,dr,Mn,"style",Bt((xr,Oo)=>Ge(xr,"style",Oo),Qt)),Dt(Fn,dr,Mn,"hspace",Bt(ln,Qt)),Dt(Fn,dr,Mn,"vspace",Bt(tn,Qt)),Dt(Fn,dr,Mn,"border",Bt(Et,Qt)),Dt(Fn,dr,Mn,"borderStyle",Bt(Ot,Qt)),at(Fn,dr,Mn)},qt=(Qt,Mn)=>{const Fn=Qt.dom.styles.parse(Mn),dr=ke(Fn),xr=Qt.dom.styles.parse(Qt.dom.styles.serialize(dr));return Qt.dom.styles.serialize(xr)},en=Qt=>{const Mn=Qt.selection.getNode(),Fn=Qt.dom.getParent(Mn,"figure.image");return Fn?Qt.dom.select("img",Fn)[0]:Mn&&(Mn.nodeName!=="IMG"||Ze(Mn))?null:Mn},Jt=(Qt,Mn)=>{var Fn;const dr=Qt.dom,xr=T(Qt.schema.getTextBlockElements(),(mi,Di)=>!Qt.schema.isValidChild(Di,"figure")),Oo=dr.getParent(Mn.parentNode,mi=>A(xr,mi.nodeName),Qt.getBody());return Oo&&(Fn=dr.split(Oo,Mn))!==null&&Fn!==void 0?Fn:Mn},Zt=Qt=>{const Mn=en(Qt);return Mn?Vt(Fn=>qt(Qt,Fn),Mn):xt()},Nt=(Qt,Mn)=>{const Fn=bt(xr=>qt(Qt,xr),Mn);Qt.dom.setAttrib(Fn,"data-mce-id","__mcenew"),Qt.focus(),Qt.selection.setContent(Fn.outerHTML);const dr=Qt.dom.select('*[data-mce-id="__mcenew"]')[0];if(Qt.dom.setAttrib(dr,"data-mce-id",null),Cn(dr)){const xr=Jt(Qt,dr);Qt.selection.select(xr)}else Qt.selection.select(dr)},sn=(Qt,Mn)=>{Qt.dom.setAttrib(Mn,"src",Mn.getAttribute("src"))},rn=(Qt,Mn)=>{if(Mn){const Fn=Qt.dom.is(Mn.parentNode,"figure.image")?Mn.parentNode:Mn;Qt.dom.remove(Fn),Qt.focus(),Qt.nodeChanged(),Qt.dom.isEmpty(Qt.getBody())&&(Qt.setContent(""),Qt.selection.setCursorLocation())}},_n=(Qt,Mn)=>{const Fn=en(Qt);if(Fn)if(_t(dr=>qt(Qt,dr),Mn,Fn),sn(Qt,Fn),Cn(Fn.parentNode)){const dr=Fn.parentNode;Jt(Qt,dr),Qt.selection.select(Fn.parentNode)}else Qt.selection.select(Fn),We(Qt,Mn,Fn)},wn=(Qt,Mn)=>{const Fn=Mn.src;return{...Mn,src:Ye(Qt,Fn)?Fn:""}},An=(Qt,Mn)=>{const Fn=en(Qt);if(Fn){const xr={...Vt(mi=>qt(Qt,mi),Fn),...Mn},Oo=wn(Qt,xr);xr.src?_n(Qt,Oo):rn(Qt,Fn)}else Mn.src&&Nt(Qt,{...xt(),...Mn})},Un=(Qt=>(...Mn)=>{if(Mn.length===0)throw new Error("Can't merge zero objects");const Fn={};for(let dr=0;dri(Qt)&&i(Mn)?Un(Qt,Mn):Mn);var Zn=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),tr=tinymce.util.Tools.resolve("tinymce.util.Tools");const Br=Qt=>u(Qt.value)?Qt.value:"",$r=Qt=>u(Qt.text)?Qt.text:u(Qt.title)?Qt.title:"",vr=(Qt,Mn)=>{const Fn=[];return tr.each(Qt,dr=>{const xr=$r(dr);if(dr.menu!==void 0){const Oo=vr(dr.menu,Mn);Fn.push({text:xr,items:Oo})}else{const Oo=Mn(dr);Fn.push({text:xr,value:Oo})}}),Fn},qn=(Qt=Br)=>Mn=>Mn?_.from(Mn).map(Fn=>vr(Fn,Qt)):_.none(),gr=Qt=>qn(Br)(Qt),sr=Qt=>P(Qt,"items"),lr=(Qt,Mn)=>z(Qt,Fn=>sr(Fn)?lr(Fn.items,Mn):Fn.value===Mn?_.some(Fn):_.none()),Vr={sanitizer:qn,sanitize:gr,findEntry:(Qt,Mn)=>Qt.bind(Fn=>lr(Fn,Mn))},Jr={makeTab:Qt=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},Yr=Qt=>{const Mn=Vr.sanitizer(il=>Qt.convertURL(il.value||il.url||"","src")),Fn=new Promise(il=>{Re(Qt,nf=>{il(Mn(nf).map(nh=>D([[{text:"None",value:""}],nh])))})}),dr=Vr.sanitize(ye(Qt)),xr=ae(Qt),Oo=ce(Qt),mi=ze(Qt),Di=De(Qt),To=Zt(Qt),Ia=ve(Qt),Ds=_e(Qt),fs=se(Qt),zi=we(Qt),yl=Pe(Qt),Bs=Ie(Qt),yf=_.some(de(Qt)).filter(il=>u(il)&&il.length>0);return Fn.then(il=>({image:To,imageList:il,classList:dr,hasAdvTab:xr,hasUploadTab:Oo,hasUploadUrl:mi,hasUploadHandler:Di,hasDescription:Ia,hasImageTitle:Ds,hasDimensions:fs,hasImageCaption:zi,prependURL:yf,hasAccessibilityOptions:yl,automaticUploads:Bs}))},to=Qt=>{const Mn={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},Fn=Qt.imageList.map(Ds=>({name:"images",type:"listbox",label:"Image list",items:Ds})),dr={name:"alt",type:"input",label:"Alternative description",enabled:!(Qt.hasAccessibilityOptions&&Qt.image.isDecorative)},xr={name:"title",type:"input",label:"Image title"},Oo={name:"dimensions",type:"sizeinput"},mi={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},Di=Qt.classList.map(Ds=>({name:"classes",type:"listbox",label:"Class",items:Ds})),To={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},Ia=Ds=>Ds?{type:"grid",columns:2}:{type:"panel"};return D([[Mn],Fn.toArray(),Qt.hasAccessibilityOptions&&Qt.hasDescription?[mi]:[],Qt.hasDescription?[dr]:[],Qt.hasImageTitle?[xr]:[],Qt.hasDimensions?[Oo]:[],[{...Ia(Qt.classList.isSome()&&Qt.hasImageCaption),items:D([Di.toArray(),Qt.hasImageCaption?[To]:[]])}]])},Fo={makeTab:Qt=>({title:"General",name:"general",items:to(Qt)}),makeItems:to},$o={makeTab:Qt=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},Mo=Qt=>({prevImage:Vr.findEntry(Qt.imageList,Qt.image.src),prevAlt:Qt.image.alt,open:!0}),pi=Qt=>({src:{value:Qt.src,meta:{}},images:Qt.src,alt:Qt.alt,title:Qt.title,dimensions:{width:Qt.width,height:Qt.height},classes:Qt.class,caption:Qt.caption,style:Qt.style,vspace:Qt.vspace,border:Qt.border,hspace:Qt.hspace,borderstyle:Qt.borderStyle,fileinput:[],isDecorative:Qt.isDecorative}),Hn=(Qt,Mn)=>({src:Qt.src.value,alt:(Qt.alt===null||Qt.alt.length===0)&&Mn?null:Qt.alt,title:Qt.title,width:Qt.dimensions.width,height:Qt.dimensions.height,class:Qt.classes,style:Qt.style,caption:Qt.caption,hspace:Qt.hspace,vspace:Qt.vspace,border:Qt.border,borderStyle:Qt.borderstyle,isDecorative:Qt.isDecorative}),ar=(Qt,Mn)=>/^(?:[a-zA-Z]+:)?\/\//.test(Mn)?_.none():Qt.prependURL.bind(Fn=>Mn.substring(0,Fn.length)!==Fn?_.some(Fn+Mn):_.none()),Dr=(Qt,Mn)=>{const Fn=Mn.getData();ar(Qt,Fn.src.value).each(dr=>{Mn.setData({src:{value:dr,meta:Fn.src.meta}})})},Sr=(Qt,Mn,Fn)=>{Qt.hasDescription&&u(Fn.alt)&&(Mn.alt=Fn.alt),Qt.hasAccessibilityOptions&&(Mn.isDecorative=Fn.isDecorative||Mn.isDecorative||!1),Qt.hasImageTitle&&u(Fn.title)&&(Mn.title=Fn.title),Qt.hasDimensions&&(u(Fn.width)&&(Mn.dimensions.width=Fn.width),u(Fn.height)&&(Mn.dimensions.height=Fn.height)),u(Fn.class)&&Vr.findEntry(Qt.classList,Fn.class).each(dr=>{Mn.classes=dr.value}),Qt.hasImageCaption&&y(Fn.caption)&&(Mn.caption=Fn.caption),Qt.hasAdvTab&&(u(Fn.style)&&(Mn.style=Fn.style),u(Fn.vspace)&&(Mn.vspace=Fn.vspace),u(Fn.border)&&(Mn.border=Fn.border),u(Fn.hspace)&&(Mn.hspace=Fn.hspace),u(Fn.borderstyle)&&(Mn.borderstyle=Fn.borderstyle))},Zr=(Qt,Mn)=>{const Fn=Mn.getData(),dr=Fn.src.meta;if(dr!==void 0){const xr=Un({},Fn);Sr(Qt,xr,dr),Mn.setData(xr)}},go=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=xr.src.value,mi=xr.src.meta||{};!mi.width&&!mi.height&&Mn.hasDimensions&&(ee(Oo)?Qt.imageSize(Oo).then(Di=>{Fn.open&&dr.setData({dimensions:Di})}).catch(Di=>console.error(Di)):dr.setData({dimensions:{width:"",height:""}}))},oo=(Qt,Mn,Fn)=>{const dr=Fn.getData(),xr=Vr.findEntry(Qt.imageList,dr.src.value);Mn.prevImage=xr,Fn.setData({images:xr.map(Oo=>Oo.value).getOr("")})},io=(Qt,Mn,Fn,dr)=>{Dr(Mn,dr),Zr(Mn,dr),go(Qt,Mn,Fn,dr),oo(Mn,Fn,dr)},Do=(Qt,Mn,Fn,dr)=>{const xr=dr.getData(),Oo=Vr.findEntry(Mn.imageList,xr.images);Oo.each(mi=>{xr.alt===""||Fn.prevImage.map(To=>To.text===xr.alt).getOr(!1)?mi.value===""?dr.setData({src:mi,alt:Fn.prevAlt}):dr.setData({src:mi,alt:mi.text}):dr.setData({src:mi})}),Fn.prevImage=Oo,io(Qt,Mn,Fn,dr)},jn=(Qt,Mn,Fn,dr)=>{const xr=dr.getData();dr.block("Uploading image"),I(xr.fileinput).fold(()=>{dr.unblock()},Oo=>{const mi=URL.createObjectURL(Oo),Di=()=>{dr.unblock(),URL.revokeObjectURL(mi)},To=Ia=>{dr.setData({src:{value:Ia,meta:{}}}),dr.showTab("general"),io(Qt,Mn,Fn,dr),dr.focus("src")};Ue(Oo).then(Ia=>{const Ds=Qt.createBlobCache(Oo,mi,Ia);Mn.automaticUploads?Qt.uploadImage(Ds).then(fs=>{To(fs.url),Di()}).catch(fs=>{Di(),Qt.alertErr(fs)}):(Qt.addToBlobCache(Ds),To(Ds.blobUri()),dr.unblock())})})},Rr=(Qt,Mn,Fn)=>(dr,xr)=>{xr.name==="src"?io(Qt,Mn,Fn,dr):xr.name==="images"?Do(Qt,Mn,Fn,dr):xr.name==="alt"?Fn.prevAlt=dr.getData().alt:xr.name==="fileinput"?jn(Qt,Mn,Fn,dr):xr.name==="isDecorative"&&dr.setEnabled("alt",!dr.getData().isDecorative)},On=Qt=>()=>{Qt.open=!1},Yn=Qt=>Qt.hasAdvTab||Qt.hasUploadUrl||Qt.hasUploadHandler?{type:"tabpanel",tabs:D([[Fo.makeTab(Qt)],Qt.hasAdvTab?[Jr.makeTab(Qt)]:[],Qt.hasUploadTab&&(Qt.hasUploadUrl||Qt.hasUploadHandler)?[$o.makeTab(Qt)]:[]])}:{type:"panel",items:Fo.makeItems(Qt)},ir=(Qt,Mn,Fn)=>dr=>{const xr=Un(pi(Mn.image),dr.getData()),Oo={...xr,style:st(Fn.normalizeCss,Hn(xr,!1))};Qt.execCommand("mceUpdateImage",!1,Hn(Oo,Mn.hasAccessibilityOptions)),Qt.editorUpload.uploadImagesAuto(),dr.close()},kr=Qt=>Mn=>Ye(Qt,Mn)?Ve(Qt.documentBaseURI.toAbsolute(Mn)).then(Fn=>({width:String(Fn.width),height:String(Fn.height)})):Promise.resolve({width:"",height:""}),Er=Qt=>(Mn,Fn,dr)=>{var xr;return Qt.editorUpload.blobCache.create({blob:Mn,blobUri:Fn,name:(xr=Mn.name)===null||xr===void 0?void 0:xr.replace(/\.[^\.]+$/,""),filename:Mn.name,base64:dr.split(",")[1]})},Gt=Qt=>Mn=>{Qt.editorUpload.blobCache.add(Mn)},on=Qt=>Mn=>{Qt.windowManager.alert(Mn)},an=Qt=>Mn=>qt(Qt,Mn),Tn=Qt=>Mn=>Qt.dom.parseStyle(Mn),zn=Qt=>(Mn,Fn)=>Qt.dom.serializeStyle(Mn,Fn),Gn=Qt=>Mn=>Zn(Qt).upload([Mn],!1).then(Fn=>{var dr;return Fn.length===0?Promise.reject("Failed to upload image"):Fn[0].status===!1?Promise.reject((dr=Fn[0].error)===null||dr===void 0?void 0:dr.message):Fn[0]}),Lr=Qt=>{const Mn={imageSize:kr(Qt),addToBlobCache:Gt(Qt),createBlobCache:Er(Qt),alertErr:on(Qt),normalizeCss:an(Qt),parseStyle:Tn(Qt),serializeStyle:zn(Qt),uploadImage:Gn(Qt)};return{open:()=>{Yr(Qt).then(dr=>{const xr=Mo(dr);return{title:"Insert/Edit Image",size:"normal",body:Yn(dr),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:pi(dr.image),onSubmit:ir(Qt,dr,Mn),onChange:Rr(Mn,dr,xr),onClose:On(xr)}}).then(Qt.windowManager.open)}}},Ur=Qt=>{Qt.addCommand("mceImage",Lr(Qt).open),Qt.addCommand("mceUpdateImage",(Mn,Fn)=>{Qt.undoManager.transact(()=>An(Qt,Fn))})},qr=Qt=>{const Mn=Qt.attr("class");return a(Mn)&&/\bimage\b/.test(Mn)},Cr=Qt=>Mn=>{let Fn=Mn.length;const dr=xr=>{xr.attr("contenteditable",Qt?"true":null)};for(;Fn--;){const xr=Mn[Fn];qr(xr)&&(xr.attr("contenteditable",Qt?"false":null),tr.each(xr.getAll("figcaption"),dr))}},wo=Qt=>{Qt.on("PreInit",()=>{Qt.parser.addNodeFilter("figure",Cr(!0)),Qt.serializer.addNodeFilter("figure",Cr(!1))})},Nr=Qt=>Mn=>{const Fn=()=>{Mn.setEnabled(Qt.selection.isEditable())};return Qt.on("NodeChange",Fn),Fn(),()=>{Qt.off("NodeChange",Fn)}},Eo=Qt=>{Qt.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Lr(Qt).open,onSetup:Mn=>{Mn.setActive(a(en(Qt)));const Fn=Qt.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",Mn.setActive).unbind,dr=Nr(Qt)(Mn);return()=>{Fn(),dr()}}}),Qt.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Lr(Qt).open,onSetup:Nr(Qt)}),Qt.ui.registry.addContextMenu("image",{update:Mn=>Qt.selection.isEditable()&&(Cn(Mn)||Pn(Mn)&&!Ze(Mn))?["image"]:[]})};var zo=()=>{t.add("image",Qt=>{pe(Qt),wo(Qt),Eo(Qt),Ur(Qt)})};zo()})();var U$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],j$e=function(t){return U$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},Q$e=function(t,e,o){Object.keys(e).filter(j$e).forEach(function(f){var E=e[f];typeof E=="function"&&(f==="onInit"?E(t,o):o.on(f.substring(2),function(d){return E(d,o)}))})},H$e=function(t,e,o,f){var E=t.modelEvents?t.modelEvents:null,d=Array.isArray(E)?E.join(" "):E;ia(f,function(s,n){o&&typeof s=="string"&&s!==n&&s!==o.getContent({format:t.outputFormat})&&o.setContent(s)}),o.on(d||"change input undo redo",function(){e.emit("update:modelValue",o.getContent({format:t.outputFormat}))})},Z$e=function(t,e,o,f,E,d){f.setContent(d()),o.attrs["onUpdate:modelValue"]&&H$e(e,o,f,E),Q$e(t,o.attrs,f)},W0e=0,VOe=function(t){var e=Date.now(),o=Math.floor(Math.random()*1e9);return W0e++,t+"_"+o+W0e+String(e)},q$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Y0e=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},W$e=function(t,e){return Y0e(t).concat(Y0e(e))},Y$e=function(t){return t==null},X0e=function(){return{listeners:[],scriptId:VOe("tiny-script"),scriptLoaded:!1}},X$e=function(){var t=X0e(),e=function(E,d,s,n){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=E,u.src=s;var b=function(){u.removeEventListener("load",b),n()};u.addEventListener("load",b),d.head&&d.head.appendChild(u)},o=function(E,d,s){t.scriptLoaded?s():(t.listeners.push(s),E.getElementById(t.scriptId)||e(t.scriptId,E,d,function(){t.listeners.forEach(function(n){return n()}),t.scriptLoaded=!0}))},f=function(){t=X0e()};return{load:o,reinitialize:f}},G$e=X$e(),K$e=function(){return typeof window<"u"?window:global},CT=function(){var t=K$e();return t&&t.tinymce?t.tinymce:null},J$e={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},p_=globalThis&&globalThis.__assign||function(){return p_=Object.assign||function(t){for(var e,o=1,f=arguments.length;od.createCell(u))},xve({code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:0,modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),init:E.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):za("",!0)]),_:2},[t.$devMode&&d.isAppRoute||!t.$devMode?{name:"outcome",fn:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=u=>o.cellData.code=u),init:E.app_init,disabled:!0},null,8,["modelValue","init"])]),key:"0"}:void 0]),1032,["cell-id","is-dev-mode","hide-cell","cell-name","onSave","onDelete"])}const UOe=mp(rVe,[["render",oVe]]),iVe=36,G0e=1,aVe=2,VL=3,Sae=4,sVe=5,lVe=6,cVe=7,uVe=8,fVe=9,dVe=10,hVe=11,pVe=12,mVe=13,gVe=14,vVe=15,yVe=16,bVe=17,K0e=18,xVe=19,jOe=20,QOe=21,J0e=22,_Ve=23,wVe=24;function kle(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function OVe(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function MT(t,e,o){for(let f=!1;;){if(t.next<0)return;if(t.next==e&&!f){t.advance();return}f=o&&!f&&t.next==92,t.advance()}}function SVe(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function kVe(t,e){let o="[{<(".indexOf(String.fromCharCode(e)),f=o<0?e:"]}>)".charCodeAt(o);for(;;){if(t.next<0)return;if(t.next==f&&t.peek(1)==39){t.advance(2);return}t.advance()}}function HOe(t,e){for(;!(t.next!=95&&!kle(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function TVe(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),MT(t,e,!1)}else HOe(t)}function e1e(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function t1e(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function n1e(t){for(;!(t.next<0||t.next==10);)t.advance()}function AT(t,e){for(let o=0;o!=&|~^/",specialVar:"?",identifierQuotes:'"',words:ZOe(AVe,CVe)};function MVe(t,e,o,f){let E={};for(let d in Tle)E[d]=(t.hasOwnProperty(d)?t:Tle)[d];return e&&(E.words=ZOe(e,o||"",f)),E}function qOe(t){return new Y0(e=>{var o;let{next:f}=e;if(e.advance(),AT(f,kae)){for(;AT(e.next,kae);)e.advance();e.acceptToken(iVe)}else if(f==36&&e.next==36&&t.doubleDollarQuotedStrings)SVe(e),e.acceptToken(VL);else if(f==39||f==34&&t.doubleQuotedStrings)MT(e,f,t.backslashEscapes),e.acceptToken(VL);else if(f==35&&t.hashComments||f==47&&e.next==47&&t.slashComments)n1e(e),e.acceptToken(G0e);else if(f==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))n1e(e),e.acceptToken(G0e);else if(f==47&&e.next==42){e.advance();for(let E=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(E--,e.advance(),!E)break}else d==47&&e.next==42&&(E++,e.advance())}e.acceptToken(aVe)}else if((f==101||f==69)&&e.next==39)e.advance(),MT(e,39,!0);else if((f==110||f==78)&&e.next==39&&t.charSetCasts)e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);else if(f==95&&t.charSetCasts)for(let E=0;;E++){if(e.next==39&&E>1){e.advance(),MT(e,39,t.backslashEscapes),e.acceptToken(VL);break}if(!kle(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(f==113||f==81)&&e.next==39&&e.peek(1)>0&&!AT(e.peek(1),kae)){let E=e.peek(1);e.advance(2),kVe(e,E),e.acceptToken(VL)}else if(f==40)e.acceptToken(cVe);else if(f==41)e.acceptToken(uVe);else if(f==123)e.acceptToken(fVe);else if(f==125)e.acceptToken(dVe);else if(f==91)e.acceptToken(hVe);else if(f==93)e.acceptToken(pVe);else if(f==59)e.acceptToken(mVe);else if(t.unquotedBitLiterals&&f==48&&e.next==98)e.advance(),e1e(e),e.acceptToken(J0e);else if((f==98||f==66)&&(e.next==39||e.next==34)){const E=e.next;e.advance(),t.treatBitsAsBytes?(MT(e,E,t.backslashEscapes),e.acceptToken(_Ve)):(e1e(e,E),e.acceptToken(J0e))}else if(f==48&&(e.next==120||e.next==88)||(f==120||f==88)&&e.next==39){let E=e.next==39;for(e.advance();OVe(e.next);)e.advance();E&&e.next==39&&e.advance(),e.acceptToken(Sae)}else if(f==46&&e.next>=48&&e.next<=57)t1e(e,!0),e.acceptToken(Sae);else if(f==46)e.acceptToken(gVe);else if(f>=48&&f<=57)t1e(e,!1),e.acceptToken(Sae);else if(AT(f,t.operatorChars)){for(;AT(e.next,t.operatorChars);)e.advance();e.acceptToken(vVe)}else if(AT(f,t.specialVar))e.next==f&&e.advance(),TVe(e),e.acceptToken(bVe);else if(AT(f,t.identifierQuotes))MT(e,f,!1),e.acceptToken(xVe);else if(f==58||f==44)e.acceptToken(yVe);else if(kle(f)){let E=HOe(e,String.fromCharCode(f));e.acceptToken(e.next==46?K0e:(o=t.words[E.toLowerCase()])!==null&&o!==void 0?o:K0e)}})}const WOe=qOe(Tle),EVe=k4.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,WOe],topRules:{Script:[0,25]},tokenPrec:0});function Cle(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function tD(t,e){let o=t.sliceString(e.from,e.to),f=/^([`'"])(.*)\1$/.exec(o);return f?f[2]:o}function AZ(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function PVe(t,e){if(e.name=="CompositeIdentifier"){let o=[];for(let f=e.firstChild;f;f=f.nextSibling)AZ(f)&&o.push(tD(t,f));return o}return[tD(t,e)]}function r1e(t,e){for(let o=[];;){if(!e||e.name!=".")return o;let f=Cle(e);if(!AZ(f))return o;o.unshift(tD(t,f)),e=Cle(f)}}function RVe(t,e){let o=Gf(t).resolveInner(e,-1),f=IVe(t.doc,o);return o.name=="Identifier"||o.name=="QuotedIdentifier"||o.name=="Keyword"?{from:o.from,quoted:o.name=="QuotedIdentifier"?t.doc.sliceString(o.from,o.from+1):null,parents:r1e(t.doc,Cle(o)),aliases:f}:o.name=="."?{from:e,quoted:null,parents:r1e(t.doc,o),aliases:f}:{from:e,quoted:null,parents:[],empty:!0,aliases:f}}const LVe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function IVe(t,e){let o;for(let E=e;!o;E=E.parent){if(!E)return null;E.name=="Statement"&&(o=E)}let f=null;for(let E=o.firstChild,d=!1,s=null;E;E=E.nextSibling){let n=E.name=="Keyword"?t.sliceString(E.from,E.to).toLowerCase():null,u=null;if(!d)d=n=="from";else if(n=="as"&&s&&AZ(E.nextSibling))u=tD(t,E.nextSibling);else{if(n&&LVe.has(n))break;s&&AZ(E)&&(u=tD(t,E))}u&&(f||(f=Object.create(null)),f[u]=PVe(t,s)),s=/Identifier$/.test(E.name)?E:null}return f}function DVe(t,e){return t?e.map(o=>Object.assign(Object.assign({},o),{label:t+o.label+t,apply:void 0})):e}const BVe=/^\w*$/,zVe=/^[`'"]?\w*[`'"]?$/;class ofe{constructor(){this.list=[],this.children=void 0}child(e,o){let f=this.children||(this.children=Object.create(null)),E=f[e];return E||(e&&this.list.push(YOe(e,"type",o)),f[e]=new ofe)}addCompletions(e){for(let o of e){let f=this.list.findIndex(E=>E.label==o.label);f>-1?this.list[f]=o:this.list.push(o)}}}function YOe(t,e,o){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:o+t+o}:{label:t,type:e}}function NVe(t,e,o,f,E,d){var s;let n=new ofe,u=((s=d==null?void 0:d.spec.identifierQuotes)===null||s===void 0?void 0:s[0])||'"',b=n.child(E||"",u);for(let i in t){let S=i.replace(/\\?\./g,y=>y=="."?"\0":y).split("\0"),w=S.length==1?b:n;for(let y of S)w=w.child(y.replace(/\\\./g,"."),u);for(let y of t[i])y&&w.list.push(typeof y=="string"?YOe(y,"property",u):y)}return e&&b.addCompletions(e),o&&n.addCompletions(o),n.addCompletions(b.list),f&&n.addCompletions(b.child(f,u).list),i=>{let{parents:S,from:w,quoted:y,empty:m,aliases:a}=RVe(i.state,i.pos);if(m&&!i.explicit)return null;a&&S.length==1&&(S=a[S[0]]||S);let c=n;for(let v of S){for(;!c.children||!c.children[v];)if(c==n)c=b;else if(c==b&&f)c=c.child(f,u);else return null;c=c.child(v,u)}let h=y&&i.state.sliceDoc(i.pos,i.pos+1)==y,p=c.list;return c==n&&a&&(p=p.concat(Object.keys(a).map(v=>({label:v,type:"constant"})))),{from:w,to:h?i.pos+1:void 0,options:DVe(y,p),validFor:y?zVe:BVe}}}function FVe(t,e){let o=Object.keys(t).map(f=>({label:e?f.toUpperCase():f,type:t[f]==QOe?"type":t[f]==jOe?"keyword":"variable",boost:-1}));return Xce(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],rq(o))}let $Ve=EVe.configure({props:[nC.add({Statement:lI()}),E4.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),M4({Keyword:hr.keyword,Type:hr.typeName,Builtin:hr.standard(hr.name),Bits:hr.number,Bytes:hr.string,Bool:hr.bool,Null:hr.null,Number:hr.number,String:hr.string,Identifier:hr.name,QuotedIdentifier:hr.special(hr.string),SpecialVar:hr.special(hr.name),LineComment:hr.lineComment,BlockComment:hr.blockComment,Operator:hr.operator,"Semi Punctuation":hr.punctuation,"( )":hr.paren,"{ }":hr.brace,"[ ]":hr.squareBracket})]});class ife{constructor(e,o,f){this.dialect=e,this.language=o,this.spec=f}get extension(){return this.language.extension}static define(e){let o=MVe(e,e.keywords,e.types,e.builtin),f=O4.define({name:"sql",parser:$Ve.configure({tokenizers:[{from:WOe,to:qOe(o)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new ife(o,f,e)}}function VVe(t,e=!1){return FVe(t.dialect.words,e)}function UVe(t,e=!1){return t.language.data.of({autocomplete:VVe(t,e)})}function jVe(t){return t.schema?NVe(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||afe):()=>null}function QVe(t){return t.schema?(t.dialect||afe).language.data.of({autocomplete:jVe(t)}):[]}function o1e(t={}){let e=t.dialect||afe;return new YT(e.language,[QVe(t),UVe(e,!!t.upperCaseKeywords)])}const afe=ife.define({}),HVe={components:{cell:Nq,codemirror:aq,"v-data-table":Iq},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},extensions(){const t=()=>{this.runCode()},e=FO.of([{key:"Ctrl-Enter",run:()=>(this.$devMode&&t(),!0)}]);return this.$devMode&&!this.isAppRoute?[ny.highest(e),o1e(),pM,VI({override:[]})]:[kc.readOnly.of(!0),ny.highest(e),o1e(),pM,VI({override:[]})]},shortcutText(){return navigator.userAgent.indexOf("Mac")!==-1?"CTRL+Return":"CTRL+Enter"}},inheritAttrs:!1,emits:["runCode","deleteCell","createCell","saveCell"],data(){return{isFocused:!1,expanded:this.cellData.expandCode?[0]:[],items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},setup(){const t=Gi(null);return{view:t,handleReady:o=>{t.value=o.view}}},mounted(){},methods:{runCode(){this.$emit("runCode",this.cellData.id,this.cellData.nonReactive)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")},expandCodeUpdate(t){this.expanded=t?[0]:[]},updateReactivity(t){this.cellData.nonReactive=t},updateShowTable(t){this.cellData.showTable=t},hideCode(t){this.cellData.hideCode=t},renameCell(t){this.cellData.cellName=t}}};const ZVe={key:0,style:{display:"flex",width:"100%"}},qVe={key:0,class:"text-bluegrey-darken-1 text-ellipsis app-static-name"},WVe={class:"text-ellipsis app-static-name"},YVe={key:2},XVe={class:"text-caption text-disabled text-right"},GVe={class:"text-p"};function KVe(t,e,o,f,E,d){const s=Nd("codemirror"),n=Nd("cell");return Uo(),da(n,{"cell-type":"sql","cell-id":o.cellData.id,"hide-cell":o.cellData.hideCell,"hide-code":o.cellData.hideCode,"expand-code":o.cellData.expandCode,"non-reactive":o.cellData.nonReactive,showTable:o.cellData.showTable,"cell-name":o.cellData.cellName,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,"is-dev-mode":t.$devMode&&!d.isAppRoute&&!d.isMobile,onPlay:d.runCode,onDelete:d.deleteCell,onExpandCodeUpdate:e[5]||(e[5]=u=>d.expandCodeUpdate(u)),onHideCode:e[6]||(e[6]=u=>d.hideCode(u)),onUpdateReactivity:e[7]||(e[7]=u=>d.updateReactivity(u)),onUpdateShowTable:e[8]||(e[8]=u=>d.updateShowTable(u)),onRenameCell:e[9]||(e[9]=u=>d.renameCell(u)),onAddCell:e[10]||(e[10]=u=>d.createCell(u))},{"header-title":ao(()=>[!t.$devMode||d.isAppRoute||d.isMobile?(Uo(),Ya("div",ZVe,[o.cellData.hideCode?(Uo(),Ya("h4",qVe,Dl(o.cellData.cellName),1)):(Uo(),da(ywe,{key:1,modelValue:E.expanded,"onUpdate:modelValue":e[2]||(e[2]=u=>E.expanded=u)},{default:ao(()=>[$t(vwe,{modelValue:E.expanded,"onUpdate:modelValue":e[1]||(e[1]=u=>E.expanded=u),"bg-color":"bluegrey-darken-3"},{default:ao(()=>[$t(bZ,{class:"text-bluegrey-darken-1"},{default:ao(()=>[Na("h4",WVe,Dl(o.cellData.cellName),1)]),_:1}),$t(yZ,null,{default:ao(()=>[$t(s,{modelValue:o.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]))])):za("",!0)]),code:ao(()=>[t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(Ep,{key:0,modelValue:o.cellData.variable_name,"onUpdate:modelValue":e[3]||(e[3]=u=>o.cellData.variable_name=u),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),da(s,{key:1,modelValue:o.cellData.code,"onUpdate:modelValue":e[4]||(e[4]=u=>o.cellData.code=u),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):za("",!0),t.$devMode&&!d.isAppRoute&&!d.isMobile?(Uo(),Ya("div",YVe,[Na("p",XVe,Dl(d.shortcutText)+" to run",1)])):za("",!0)]),outcome:ao(()=>[t.$devMode&&!d.isAppRoute||o.cellData.showTable?(Uo(!0),Ya(Ea,{key:0},ty(o.cellData.components,u=>(Uo(),da(yM,{key:u.id},{default:ao(()=>[(Uo(),da(rM(u.component),qi(u,{modelValue:u.value,"onUpdate:modelValue":b=>u.value=b},{[GL(u.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)):za("",!0),Na("div",GVe,Dl(o.cellData.output),1)]),_:1},8,["cell-id","hide-cell","hide-code","expand-code","non-reactive","showTable","cell-name","currentlyExecutingCell","isCodeRunning","is-dev-mode","onPlay","onDelete"])}const XOe=mp(HVe,[["render",KVe],["__scopeId","data-v-90a2677a"]]),JVe={components:{codemirror:aq},data:()=>({updatingDependencies:!1,ztAliases:Mp}),emits:["updateDependencies"],props:{dependencies:{type:Object,required:!0},dependencyOutput:{type:Object,required:!0}},computed:{extensions(){return[kc.readOnly.of(!0),FOe(),pM]}},methods:{async updateDependencies(){this.dependencyOutput.isLoading=!0,this.$emit("updateDependencies",this.dependencies)}}},eUe=Na("span",{class:"text-h5"},"Add Dependencies",-1),tUe=Na("a",{href:"https://pip.pypa.io/en/stable/reference/requirements-file-format/",target:"_blank"},"pip requirements file specification",-1),nUe={class:"d-flex justify-center"};function rUe(t,e,o,f,E,d){const s=Nd("codemirror");return Uo(),da(dC,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[3]||(e[3]=n=>t.updatingDependencies=n),width:"1024"},{activator:ao(({props:n})=>[$t(Ja,qi({color:"bluegrey-darken-4"},n,{icon:"mdi-package",class:"text-bluegrey"}),null,16)]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[eUe]),_:1}),$t(E_e,null,{default:ao(()=>[Ua(" Versions must adhere to "),tUe,Ua(". Examples: '==1.0.0' '!=1.5.0,>=1.4.1' etc. ")]),_:1}),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(o.dependencies.dependencies,n=>(Uo(),da(Xf,null,{default:ao(()=>[$t(Dq,null,{default:ao(()=>[$t(HT,null,{default:ao(()=>[$t(Ep,{modelValue:n.package,"onUpdate:modelValue":u=>n.package=u,label:"Package (required)"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(HT,null,{default:ao(()=>[$t(Ep,{modelValue:n.version,"onUpdate:modelValue":u=>n.version=u,label:"Version"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),$t(HT,{cols:"1"},{default:ao(()=>[$t(Ja,{icon:"",color:"primary"},{default:ao(()=>[$t(jl,{color:"black",onClick:u=>{var b;return(b=o.dependencies.dependencies)==null?void 0:b.splice(o.dependencies.dependencies.indexOf(n),1)}},{default:ao(()=>[Ua("mdi-delete")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256)),$t(Xf,{class:"d-flex justify-center align-center"},{default:ao(()=>[$t(Ja,{icon:"mdi-plus",variant:"text",onClick:e[0]||(e[0]=n=>{var u;return(u=o.dependencies.dependencies)==null?void 0:u.push({package:"",version:""})}),text:"Add Dependency",class:"black--text"})]),_:1}),o.dependencyOutput.output?(Uo(),da(Xf,{key:0},{default:ao(()=>[$t(s,{modelValue:o.dependencyOutput.output,"onUpdate:modelValue":e[1]||(e[1]=n=>o.dependencyOutput.output=n),style:{height:"400px"},"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})):za("",!0)]),_:1}),$t(kD,null,{default:ao(()=>[o.dependencyOutput.isLoading?za("",!0):(Uo(),da(Ja,{key:0,color:"primary",variant:"flat",onClick:d.updateDependencies,text:"Install"},null,8,["onClick"])),Na("div",nUe,[o.dependencyOutput.isLoading?(Uo(),da(lC,{key:0,indeterminate:"",color:"primary"})):za("",!0)]),$t(BM),$t(Ja,{color:"error",variant:"text",onClick:e[2]||(e[2]=n=>t.updatingDependencies=!1),text:"Close"})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const GOe=mp(JVe,[["render",rUe]]),i1e=em({__name:"CommentMenu",emits:["deleteComment","editComment"],setup(t,{emit:e}){const o=CD();return(f,E)=>(Uo(),da(BO,null,{activator:ao(({props:d})=>[$t(Ja,qi({icon:`ztIcon:${Va(Mp).more}`},d,{variant:"plain",size:"small"}),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,{disabled:!Va(o).editorAvailable,onClick:E[0]||(E[0]=d=>e("editComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).edit}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Edit")]),_:1})]),_:1},8,["disabled"]),$t(Xf,{"base-color":"error",onClick:E[1]||(E[1]=d=>e("deleteComment"))},{prepend:ao(()=>[$t(jl,{icon:`ztIcon:${Va(Mp).delete}`},null,8,["icon"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:1})]),_:1})]),_:1}))}}),oUe={class:"d-flex justify-end"},Tae=em({__name:"CommentTextarea",props:{isSaving:Boolean,modelValue:String},emits:["cancel","submit","update:modelValue"],setup(t,{emit:e}){const o=qo(null),f=qo(null);return pg(()=>{var E,d;(E=f.value)==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(d=o.value)==null||d.focus()}),(E,d)=>(Uo(),Ya("div",{class:"d-flex flex-column",style:{flex:"1"},ref_key:"commentEditContainer",ref:f},[$t(TD,{"model-value":t.modelValue,ref_key:"commentEditTextArea",ref:o,"onUpdate:modelValue":d[0]||(d[0]=s=>e("update:modelValue",s)),variant:"outlined"},null,8,["model-value"]),Na("div",oUe,[$t(Ja,{variant:"text",onClick:d[1]||(d[1]=s=>e("cancel"))},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(Ja,{color:"primary",class:"ml-2",loading:t.isSaving,disabled:!t.modelValue||t.isSaving,onClick:d[2]||(d[2]=s=>e("submit"))},{default:ao(()=>[Ua("Submit")]),_:1},8,["loading","disabled"])])],512))}});var og=[];for(var Cae=0;Cae<256;++Cae)og.push((Cae+256).toString(16).slice(1));function iUe(t,e=0){return(og[t[e+0]]+og[t[e+1]]+og[t[e+2]]+og[t[e+3]]+"-"+og[t[e+4]]+og[t[e+5]]+"-"+og[t[e+6]]+og[t[e+7]]+"-"+og[t[e+8]]+og[t[e+9]]+"-"+og[t[e+10]]+og[t[e+11]]+og[t[e+12]]+og[t[e+13]]+og[t[e+14]]+og[t[e+15]]).toLowerCase()}var eH,aUe=new Uint8Array(16);function sUe(){if(!eH&&(eH=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!eH))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eH(aUe)}var lUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const a1e={randomUUID:lUe};function KOe(t,e,o){if(a1e.randomUUID&&!e&&!t)return a1e.randomUUID();t=t||{};var f=t.random||(t.rng||sUe)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,e){o=o||0;for(var E=0;E<16;++E)e[o+E]=f[E];return e}return iUe(f)}const cUe={class:"messages"},uUe={class:"message mb-4"},fUe={class:"d-flex justify-space-between align-start"},dUe={key:1,class:"message__content"},hUe={class:"d-flex align-center"},pUe={class:"d-flex align-center"},mUe={class:"message__timestamp"},gUe={class:"message mb-4 d-flex"},vUe={class:"ml-6 flex-1-1"},yUe={class:"d-flex justify-space-between align-start"},bUe={key:1,class:"message__content"},xUe={class:"d-flex align-center"},_Ue={class:"d-flex align-center"},wUe={class:"message__timestamp"},OUe={key:0,class:"text-box"},SUe=em({__name:"Comment",props:{comment:{type:Object,required:!0}},setup(t){const e=t,o=CD(),f=Gi(""),E=Gi(!1),d=Gi(!1),s=Gi(void 0),n=Gi(""),u=Gi(!1);function b(a){o.editorAvailable=!1,s.value=a.id,n.value=a.comment}function i(){o.editorAvailable=!0,s.value=void 0}async function S(a,c){s.value&&(u.value=!0,await o.editComment(s.value,a,n.value,c),u.value=!1,s.value=void 0,n.value="",o.editorAvailable=!0)}async function w(a,c,h){await o.deleteComment(a,c,h)}async function y(){d.value=!0;const a={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},c=Intl.DateTimeFormat("en-US",a).format(new Date),h={id:KOe(),cell:e.comment.cell,userName:"",date:c,comment:f.value,replies:[],resolved:!1};await o.replyComment(e.comment.id,h),d.value=!1,f.value="",E.value=!1,o.editorAvailable=!0}async function m(a,c){await o.resolveComment(a,c)}return(a,c)=>(Uo(),Ya("div",cUe,[Na("div",uUe,[Na("div",fUe,[Va(s)===t.comment.id?(Uo(),da(Tae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[0]||(c[0]=h=>ku(n)?n.value=h:null),isSaving:Va(u),onCancel:i,onSubmit:c[1]||(c[1]=h=>S(t.comment.cell.cellId??""))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",dUe,Dl(t.comment.comment),1)),Na("div",hUe,[!t.comment.resolved&&!Va(s)?(Uo(),da(Ja,{key:0,icon:"$success",variant:"plain",ripple:!1,onClick:c[2]||(c[2]=()=>m(t.comment.id,t.comment.cell.cellId??""))})):za("",!0),Va(s)?za("",!0):(Uo(),da(i1e,{key:1,onEditComment:c[3]||(c[3]=()=>{t.comment.resolved||b(t.comment)}),onDeleteComment:c[4]||(c[4]=()=>w(t.comment.id,t.comment.cell.cellId??""))}))])]),Na("div",pUe,[Na("p",mUe,Dl(t.comment.date),1)])]),(Uo(!0),Ya(Ea,null,ty(t.comment.replies,h=>(Uo(),Ya("div",gUe,[$t(vM,{class:"indicator",vertical:"",color:"bluegrey",thickness:1}),Na("div",vUe,[Na("div",yUe,[Va(s)===h.id?(Uo(),da(Tae,{key:0,modelValue:Va(n),"onUpdate:modelValue":c[5]||(c[5]=p=>ku(n)?n.value=p:null),isSaving:Va(u),onCancel:i,onSubmit:c[6]||(c[6]=()=>S(t.comment.cell.cellId??"",t.comment.id))},null,8,["modelValue","isSaving"])):(Uo(),Ya("pre",bUe,Dl(h.comment),1)),Na("div",xUe,[Na("div",null,[Va(s)?za("",!0):(Uo(),da(i1e,{key:0,onEditComment:()=>{t.comment.resolved||b(h)},onDeleteComment:()=>w(h.id,t.comment.cell.cellId??"",t.comment.id)},null,8,["onEditComment","onDeleteComment"]))])])]),Na("div",_Ue,[Na("p",wUe,Dl(h.date),1)])])]))),256)),Va(E)?(Uo(),Ya("div",OUe,[t.comment.resolved?za("",!0):(Uo(),da(Tae,{key:0,modelValue:Va(f),"onUpdate:modelValue":c[7]||(c[7]=h=>ku(f)?f.value=h:null),"is-saving":Va(d),onCancel:c[8]||(c[8]=()=>{Va(o).editorAvailable=!0,E.value=!1}),onSubmit:y},null,8,["modelValue","is-saving"]))])):za("",!0),!Va(E)&&!t.comment.resolved?(Uo(),da(Ja,{key:1,variant:"text",slim:"",disabled:!Va(o).editorAvailable,onClick:c[9]||(c[9]=()=>{Va(o).editorAvailable=!1,E.value=!0})},{default:ao(()=>[Ua("Reply")]),_:1},8,["disabled"])):za("",!0)]))}});const kUe=mp(SUe,[["__scopeId","data-v-018eae28"]]),JOe=t=>(Yle("data-v-3ad3a67b"),t=t(),Xle(),t),TUe={key:0,class:"d-flex justify-space-between align-center pa-4"},CUe={class:"d-flex align-center"},AUe={class:"justify-right"},MUe={class:"content ma-4"},EUe={class:"d-flex justify-space-between align-center"},PUe={class:"mt-6 flex-1-1"},RUe={key:0,class:"empty-state"},LUe=JOe(()=>Na("p",null,"No comments yet",-1)),IUe=JOe(()=>Na("p",{class:"empty-state__text mt-2"}," Add a comment by clicking on the cell you want to add a comment to. ",-1)),DUe={key:1,class:"comments-wrapper"},BUe={class:"d-flex justify-end"},zUe=em({__name:"Comments",setup(t){const e=CD(),{addComment:o,closeComments:f}=e,{selectedCell:E}=que(e),d=qo(null),s=qo(null),n=nr(()=>{var c;return(c=E.value)==null?void 0:c.cellType}),u=nr(()=>{var c;switch((c=E.value)==null?void 0:c.cellType){case"markdown":return"#4CBCFC";case"code":return"#AE9FE8";case"sql":return"#FFDCA7";case"text":return"#16B48E"}}),b=Gi(!1),i=Gi(!1),S=Gi(""),w=Gi(!1),y=nr(()=>e.displayedComments.filter(c=>b.value?c.resolved:!c.resolved));ia(E,()=>{b.value=!1,i.value=!1,S.value="",w.value=!1});function m(){i.value=!i.value,e.editorAvailable=!1,Vc(()=>{var c,h;(c=d.value)==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}),(h=d.value)==null||h.focus()})}async function a(){w.value=!0;const c={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},h=Intl.DateTimeFormat("en-US",c).format(new Date),p={id:KOe(),cell:e.selectedCell,userName:"",date:h,comment:S.value,replies:[],resolved:!1};await o(p),w.value=!1,S.value="",i.value=!1,e.editorAvailable=!0}return(c,h)=>(Uo(),da(ub,{class:"card"},{default:ao(()=>[Va(E)?(Uo(),Ya("div",TUe,[Na("div",CUe,[$t(jl,{icon:`ztIcon:${Va(Mp)[Va(n)??"code"]}`,color:Va(u),class:"mr-2"},null,8,["icon","color"]),Na("p",{class:"mb-0 font-weight-bold",style:oD({color:Va(u)})},Dl(Va(E).cellName),5)]),Na("div",AUe,[Va(b)?za("",!0):(Uo(),da(Ja,{key:0,icon:"mdi-comment-plus-outline",color:"bluegrey-darken-4",disabled:!Va(e).editorAvailable,onClick:m},null,8,["disabled"])),$t(Ja,{icon:"mdi:mdi-close",variant:"text",ripple:!1,onClick:h[0]||(h[0]=p=>Va(f)())})])])):za("",!0),Na("div",MUe,[Na("div",EUe,[$t(N2e,{modelValue:Va(b),"onUpdate:modelValue":h[3]||(h[3]=p=>ku(b)?b.value=p:null),border:!1,mandatory:"force",color:"primary",rounded:"pill"},{default:ao(()=>[$t(Ja,{value:!1,class:"mr-4",disabled:!Va(b),onClick:h[1]||(h[1]=p=>Va(e).editorAvailable=!0)},{default:ao(()=>[Ua("Open")]),_:1},8,["disabled"]),$t(Ja,{value:!0,disabled:Va(b),class:"mr-4",onClick:h[2]||(h[2]=p=>i.value=!1)},{default:ao(()=>[Ua("Resolved")]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),Na("div",PUe,[!Va(e).displayedComments.length&&!Va(i)?(Uo(),Ya("div",RUe,[$t(jl,{icon:`ztIcon:${Va(Mp).message}`},null,8,["icon"]),LUe,IUe])):(Uo(),Ya("div",DUe,[(Uo(!0),Ya(Ea,null,ty(Va(y),p=>(Uo(),da(kUe,{comment:p},null,8,["comment"]))),256)),Va(i)?(Uo(),Ya("div",{key:0,class:"text-box",ref_key:"addCommentContainer",ref:s},[$t(TD,{variant:"outlined",modelValue:Va(S),"onUpdate:modelValue":h[4]||(h[4]=p=>ku(S)?S.value=p:null),ref_key:"addCommentTextArea",ref:d},null,8,["modelValue"]),Na("div",BUe,[$t(Ja,{variant:"text",onClick:h[5]||(h[5]=()=>{Va(e).editorAvailable=!0,i.value=!1})},{default:ao(()=>[Ua("Cancel")]),_:1}),$t(Ja,{color:"primary",class:"ml-2",disabled:!Va(S)||Va(w),loading:Va(w),onClick:h[6]||(h[6]=p=>a())},{default:ao(()=>[Ua("Submit")]),_:1},8,["disabled","loading"])])],512)):za("",!0)]))])])]),_:1}))}});const NUe=mp(zUe,[["__scopeId","data-v-3ad3a67b"]]),FUe={props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},currentlyExecutingCell:{type:String,default:null},isCodeRunning:{type:Boolean,default:!1}},inheritAttrs:!1,emits:["runCode","deleteCell","saveCell","createCell","componentValueChange","copilotCompletion","updateTimers"],components:{"add-cell":Zue,CodeComponent:Awe,MarkdownComponent:$Oe,EditorComponent:UOe,SQLComponent:XOe,PackageComponent:GOe},data(){return{menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}],concatenatedCodeCache:{lastCellId:"",code:"",length:0}}},computed:{isAppRoute(){return eC().path==="/app"}},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},runCode(t,e,o){this.$emit("runCode",t,e,o)},deleteCell(t){this.$emit("deleteCell",t)},saveCell(t,e,o,f){this.$emit("saveCell",t,e,o,f)},createCodeCell(t,e){this.$emit("createCell",t,e)},componentValueChange(t,e,o,f){this.$emit("componentValueChange",t,e,o,f)},copilotCompletion(t,e,o,f){this.$emit("copilotCompletion",t,e,o,f)},updateTimers(t,e){this.$emit("updateTimers",t,e)}}};function $Ue(t,e,o,f,E,d){const s=Nd("add-cell");return Uo(),Ya(Ea,null,[$t(yM,{style:{"margin-top":"12px"}},{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:0,onCreateCodeCell:e[0]||(e[0]=n=>d.createCodeCell("",n))})):za("",!0)]),_:1}),(Uo(!0),Ya(Ea,null,ty(o.notebook.cells,n=>(Uo(),da(yM,{class:Gv(["cell-container",{"cell-container--app":!t.$devMode||d.isAppRoute}])},{default:ao(()=>[n.cellType==="code"?(Uo(),da(rM(d.getComponent(n.cellType)),{key:0,cellData:n,completions:o.completions[n.id],lintResults:o.lintResults[n.id]||[],currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.updateTimers},null,40,["cellData","completions","lintResults","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])):(Uo(),da(rM(d.getComponent(n.cellType)),{key:1,cellData:n,currentlyExecutingCell:o.currentlyExecutingCell,isCodeRunning:o.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell"]))]),_:2},1032,["class"]))),256))],64)}const VUe=mp(FUe,[["render",$Ue]]),UUe=em({name:"SignInDialogComponent",setup(){const t=qo(!1),e=qo(!1),o=qo(!1),f=qo(null),E=async()=>{try{const S=await ou.post("copilot/start_node_server",{});console.log("Copilot started successfully")}catch(S){console.error("Error during starting the Node server:",S)}},d=async()=>{try{const S=await ou.post("copilot/check_status",{});b(S.data)}catch(S){console.error("Error during initial status check:",S)}},s=async()=>{try{const S=await ou.post("copilot/sign_in_initiate",{});b(S.data)}catch(S){console.error("Error during sign in initiation:",S)}},n=async()=>{try{const S=await ou.post("copilot/sign_in_confirm",{userCode:f.value.userCode});b(S.data)}catch(S){console.error("Error during sign in confirmation:",S)}},u=async()=>{try{await ou.post("copilot/sign_out",{}),o.value=!1,f.value=null,Q0.copilot_active=!1}catch(S){console.error("Error during sign out:",S)}},b=S=>{f.value=S,S.status==="OK"||S.status==="AlreadySignedIn"?(o.value=!0,Q0.copilot_active=!0):S.status==="NotSignedIn"&&(o.value=!1)};return{dialog:t,isSignedIn:o,serverStarted:e,signInData:f,signInInitiate:s,confirmSignIn:n,signOut:u,startServerAndCheckStatus:async()=>{try{await E(),setTimeout(async()=>{await d()},2500),e.value=!0}catch(S){console.error("Error during starting the server or checking status:",S)}},ztAliases:Mp}}}),jUe=Na("span",{class:"text-h4"},"GitHub Copilot ",-1),QUe={key:1},HUe={key:0},ZUe=Na("p",null,"Please go to the following URL and enter the code to sign in:",-1),qUe=Na("strong",null,"URL:",-1),WUe=["href"],YUe=Na("strong",null,"Code:",-1),XUe={key:1},GUe={key:2};function KUe(t,e,o,f,E,d){return Uo(),da(dC,{modelValue:t.dialog,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialog=s),"max-width":"400px"},{activator:ao(({props:s})=>[$t(Ja,qi({color:"bluegrey-darken-4"},s,{icon:`ztIcon:${t.ztAliases.copilot}`}),null,16,["icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[jUe]),_:1}),$t(hC,null,{default:ao(()=>[t.serverStarted?t.serverStarted&&!t.isSignedIn?(Uo(),Ya("div",QUe,[t.signInData&&t.signInData.verificationUri&&t.signInData.userCode?(Uo(),Ya("div",HUe,[ZUe,Na("p",null,[qUe,Na("a",{href:t.signInData.verificationUri,target:"_blank"},Dl(t.signInData.verificationUri),9,WUe)]),Na("p",null,[YUe,Ua(" "+Dl(t.signInData.userCode),1)]),$t(Ja,{color:"primary",onClick:t.confirmSignIn},{default:ao(()=>[Ua("I Signed In")]),_:1},8,["onClick"])])):t.signInData&&t.signInData.status&&t.signInData.user?(Uo(),Ya("div",XUe,[Na("p",null,"Status: "+Dl(t.signInData.status),1),Na("p",null,"User: "+Dl(t.signInData.user),1)])):(Uo(),Ya("div",GUe,[$t(Ja,{color:"primary",onClick:t.signInInitiate},{default:ao(()=>[Ua("Sign In")]),_:1},8,["onClick"])]))])):t.isSignedIn?(Uo(),da(Ja,{key:2,color:"primary",onClick:t.signOut},{default:ao(()=>[Ua("Sign Out")]),_:1},8,["onClick"])):za("",!0):(Uo(),da(Ja,{key:0,color:"primary",onClick:t.startServerAndCheckStatus},{default:ao(()=>[Ua("Start Server ")]),_:1},8,["onClick"]))]),_:1}),$t(Ja,{class:"ma-2",icon:"mdi:mdi-close",variant:"plain",position:"absolute",location:"top right",onClick:e[0]||(e[0]=s=>t.dialog=!1)})]),_:1})]),_:1},8,["modelValue"])}const JUe=mp(UUe,[["render",KUe]]),eje=Na("span",{class:"text-h5"},"Publish Notebook",-1),tje=Na("span",null,[Ua("Need an API Key? Create an account "),Na("a",{href:"https://www.zero-true.com/contact",target:"_blank"},"here")],-1),nje=Na("br",null,null,-1),rje=Na("br",null,null,-1),oje={class:"d-flex justify-center"},ije=em({__name:"ShareComponent",props:{userName:{type:String,required:!0},projectName:{type:String,required:!0},teamName:{type:String,required:!0}},setup(t){const e=t,o=qo(!1),f=qo({userName:"",projectName:"",apiKey:"",teamName:"",computeProfile:"X-Small (1 CPU, 2GB RAM)"}),E=qo(!1),d={required:a=>!!a||"Required."},s=qo(["X-Small (1 CPU, 2GB RAM)","Small (1 CPU, 4GB RAM)","Medium (1.5 CPU, 8GB RAM)","Large (2 CPU, 16GB RAM)","X-Large (4 CPU, 32GB RAM)"]),n=qo(""),u=qo(""),b=qo(""),i=qo(!1),S=qo(!1),w=async()=>{var a,c,h,p,v;if(E.value){if(u.value="",b.value="",n.value="",S.value=!0,i.value){try{await ou.post("api/confirm_share",f.value),n.value="Project published successfully"}catch(_){_ instanceof Qde?u.value=((c=(a=_.response)==null?void 0:a.data)==null?void 0:c.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}i.value=!1}else try{const _=await ou.post("api/share_notebook",f.value);(h=_.data)!=null&&h.warning?(b.value=_.data.warning,i.value=!0):(n.value="Project published successfully",u.value="",b.value="")}catch(_){_ instanceof Qde?u.value=((v=(p=_.response)==null?void 0:p.data)==null?void 0:v.detail)||"Error submitting share request":u.value="Error submitting share request",console.error("Error submitting share request:",_)}S.value=!1}};function y(){e.teamName!==""?f.value.teamName=e.teamName:f.value.userName=e.userName,f.value.projectName=e.projectName}function m(){u.value="",n.value="",b.value="",i.value=!1,S.value=!1}return(a,c)=>(Uo(),da(dC,{modelValue:o.value,"onUpdate:modelValue":c[7]||(c[7]=h=>o.value=h),"max-width":"600px",onAfterEnter:c[8]||(c[8]=h=>y()),onAfterLeave:c[9]||(c[9]=h=>m())},{activator:ao(({props:h})=>[$t(Ja,qi(h,{"prepend-icon":`ztIcon:${Va(Mp).share}`,variant:"flat",ripple:"",color:"primary",class:"text-bluegrey-darken-4"}),{default:ao(()=>[Ua(" Publish ")]),_:2},1040,["prepend-icon"])]),default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[eje]),_:1}),n.value?(Uo(),da(tM,{key:0,type:"success",class:"mb-4"},{default:ao(()=>[Ua(Dl(n.value),1)]),_:1})):za("",!0),u.value?(Uo(),da(tM,{key:1,type:"error",class:"mb-4"},{default:ao(()=>[Ua(Dl(u.value),1)]),_:1})):za("",!0),b.value?(Uo(),da(tM,{key:2,type:"warning",class:"mb-4"},{default:ao(()=>[Ua(Dl(b.value),1)]),_:1})):za("",!0),$t(hC,null,{default:ao(()=>[$t(CBe,{ref:"form",modelValue:E.value,"onUpdate:modelValue":c[6]||(c[6]=h=>E.value=h),onSubmit:LH(w,["prevent"])},{default:ao(()=>[$t(Ep,{modelValue:f.value.userName,"onUpdate:modelValue":c[0]||(c[0]=h=>f.value.userName=h),label:"User Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.projectName,"onUpdate:modelValue":c[1]||(c[1]=h=>f.value.projectName=h),label:"Project Name",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.apiKey,"onUpdate:modelValue":c[2]||(c[2]=h=>f.value.apiKey=h),label:"API Key",rules:[d.required],required:""},null,8,["modelValue","rules"]),$t(Ep,{modelValue:f.value.teamName,"onUpdate:modelValue":c[3]||(c[3]=h=>f.value.teamName=h),label:"Team Name (Optional)"},null,8,["modelValue"]),$t(Eq,{modelValue:f.value.computeProfile,"onUpdate:modelValue":c[4]||(c[4]=h=>f.value.computeProfile=h),items:s.value,label:"Compute Profile"},null,8,["modelValue","items"]),tje,nje,rje,$t(Dq,{justify:"space-between"},{default:ao(()=>[$t(HT,{cols:"auto"},{default:ao(()=>[S.value?za("",!0):(Uo(),da(Ja,{key:0,type:"submit",color:"primary"},{default:ao(()=>[Ua(Dl(i.value?"Confirm":"Publish"),1)]),_:1})),Na("div",oje,[S.value?(Uo(),da(lC,{key:0,indeterminate:"",color:"primary"})):za("",!0)])]),_:1}),$t(HT,{cols:"auto"},{default:ao(()=>[$t(Ja,{onClick:c[5]||(c[5]=h=>o.value=!1),color:"error"},{default:ao(()=>[Ua("Cancel")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onSubmit"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}});class s1e{constructor(e){pu(this,"timerId",null);pu(this,"duration");this.duration=e}start(e){this.timerId===null&&(this.timerId=window.setTimeout(()=>{e(),this.timerId=null},this.duration))}stop(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}const aje={props:{currentPath:{type:String,required:!0}},emits:["file-uploaded"],data:()=>({uploadingFile:!1,fileInput:null,files:[],fileNames:[],isUploading:!1,ztAliases:Mp,errorMessage:""}),methods:{openDialog(){this.uploadingFile=!0},closeDialog(){this.isUploading||(this.uploadingFile=!1),this.cleanUp()},onDrop(t){var o;t.preventDefault();const e=(o=t.dataTransfer)==null?void 0:o.files;if(e&&e.length>0)for(let f=0;f0)for(let o=0;o(Yle("data-v-4e4c74a2"),t=t(),Xle(),t),sje=e3e(()=>Na("div",{class:"mb-1",style:{"font-size":"14px"}},"or",-1)),lje={key:1,class:"my-4"},cje=e3e(()=>Na("br",null,null,-1)),uje={key:0};function fje(t,e,o,f,E,d){return Uo(),da(dC,{modelValue:t.uploadingFile,"onUpdate:modelValue":e[1]||(e[1]=s=>t.uploadingFile=s),"max-width":"444",class:"text-center mb-6",persistent:"",onDrop:d.onDrop,onDragover:e[2]||(e[2]=LH(()=>{},["prevent"]))},{activator:ao(({props:s})=>[$t(Ja,qi(s,{icon:"mdi-upload",color:"bluegrey-darken-4",class:"mb-2",onClick:d.openDialog}),null,16,["onClick"])]),default:ao(()=>[t.errorMessage?(Uo(),da(tM,{key:0,color:"error",text:t.errorMessage},null,8,["text"])):za("",!0),$t(ub,null,{default:ao(()=>[$t(I4,{class:"pb-0",style:{"font-size":"18px"}},{default:ao(()=>[Ua("Drag files to upload "),sje]),_:1}),$t(hC,null,{default:ao(()=>[t.isUploading?za("",!0):(Uo(),da(Ja,{key:0,icon:"",onClick:d.closeDialog,class:"close-button",variant:"plain",style:{width:"24px",height:"24px"}},{default:ao(()=>[$t(jl,{size:"18"},{default:ao(()=>[Ua("mdi-close")]),_:1})]),_:1},8,["onClick"])),Na("input",{class:"d-none",type:"file",ref:"fileInput",multiple:"",onChange:e[0]||(e[0]=(...s)=>d.handleFileChange&&d.handleFileChange(...s))},null,544),$t(Ja,{class:"mb-2",color:"primary",variant:"outlined",size:"large",text:"Browse files",rounded:"pill",onClick:d.onClickBrowseFiles},{default:ao(()=>[Ua(" Browse files ")]),_:1},8,["onClick"]),t.fileNames.length>0?(Uo(),Ya("div",lje,[(Uo(!0),Ya(Ea,null,ty(t.fileNames,s=>(Uo(),Ya("span",null,[Ua(Dl(s)+" ",1),cje]))),256))])):za("",!0)]),_:1}),$t(Ja,{onClick:d.submitFile,color:"primary",class:"mt-4",disabled:t.isUploading},{default:ao(()=>[t.isUploading?za("",!0):(Uo(),Ya("span",uje,"Submit")),t.isUploading?(Uo(),da(lC,{key:1,indeterminate:"",color:"primary",size:"24"})):za("",!0)]),_:1},8,["onClick","disabled"])]),_:1})]),_:1},8,["modelValue","onDrop"])}const dje=mp(aje,[["render",fje],["__scopeId","data-v-4e4c74a2"]]),hje=em({name:"FileFolderCreator",props:{currentPath:{type:String,required:!0}},emits:["item-created"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo("folder"),d=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],s=qo(""),n=qo(!1),u=qo(""),b=nr(()=>f.value.trim()!==""&&s.value===""),i=()=>{f.value.trim()===""?s.value="Name cannot be empty":/^[a-zA-Z0-9_\-. ]+$/.test(f.value)?s.value="":s.value="Name contains invalid characters"},S=()=>{o.value=!0},w=()=>{o.value=!1,f.value="",E.value="folder",s.value=""};return{createDialogVisible:o,newItemName:f,newItemType:E,itemTypes:d,nameError:s,showError:n,errorMessage:u,isValid:b,openCreateDialog:S,closeDialog:w,createNewItem:async()=>{if(b.value)try{const m=await ou.post("api/create_item",{path:t.currentPath,name:f.value.trim(),type:E.value});m.data.success?(e("item-created"),w()):(u.value=`Failed to create ${E.value}: ${m.data.message}`,n.value=!0)}catch(m){u.value=`Error creating ${E.value}: ${m}`,n.value=!0}},validateName:i}}});function pje(t,e,o,f,E,d){return Uo(),Ya(Ea,null,[$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-plus",onClick:t.openCreateDialog},null,8,["onClick"]),$t(dC,{modelValue:t.createDialogVisible,"onUpdate:modelValue":e[2]||(e[2]=s=>t.createDialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Create New Folder or File")]),_:1}),$t(hC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newItemName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newItemName=s),label:"Name","error-messages":t.nameError,onInput:t.validateName},null,8,["modelValue","error-messages","onInput"]),$t(DM,{modelValue:t.newItemType,"onUpdate:modelValue":e[1]||(e[1]=s=>t.newItemType=s),items:t.itemTypes,"item-title":"text","item-value":"value",label:"Type"},null,8,["modelValue","items"])]),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"primary",onClick:t.createNewItem,disabled:!t.isValid},{default:ao(()=>[Ua("Create")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[4]||(e[4]=s=>t.showError=s),color:"error",timeout:3e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[3]||(e[3]=s=>t.showError=!1)},{default:ao(()=>[Ua("Close")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])],64)}const mje=mp(hje,[["render",pje]]),gje=em({name:"RenameDialog",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemRenamed"],setup(t,{emit:e}){const o=qo(!1),f=qo(""),E=qo(null),d=qo(""),s=qo(!1),n=S=>{t.isProtectedFile(S.title)||(E.value=S,f.value=S.title,o.value=!0)},u=()=>{o.value=!1,f.value="",E.value=null},b=S=>{d.value=S,s.value=!0};return{dialogVisible:o,newName:f,openDialog:n,closeDialog:u,renameItem:async()=>{if(!f.value.trim()){b("New name cannot be empty.");return}try{const S=await ou.post("api/rename_item",{path:t.currentPath,oldName:E.value.title,newName:f.value});S.data.success?(e("itemRenamed"),u()):b(S.data.message||"Failed to rename item. Please try again.")}catch(S){b("Error connecting to the server. Please try again."),console.error("Error renaming item:",S)}},errorMessage:d,showError:s}}});function vje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(dC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[1]||(e[1]=s=>t.dialogVisible=s),"max-width":"300px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Rename Item")]),_:1}),$t(hC,null,{default:ao(()=>[$t(Ep,{modelValue:t.newName,"onUpdate:modelValue":e[0]||(e[0]=s=>t.newName=s),label:"New Name",rules:[s=>!!s||"Name is required"],required:"",onKeyup:mce(t.renameItem,["enter"])},null,8,["modelValue","rules","onKeyup"])]),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",variant:"text",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"blue-darken-1",variant:"text",onClick:t.renameItem,disabled:!t.newName},{default:ao(()=>[Ua("Rename")]),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[3]||(e[3]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[2]||(e[2]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const yje=mp(gje,[["render",vje]]),bje=em({name:"DeleteItem",props:{currentPath:{type:String,required:!0},isProtectedFile:{type:Function,required:!0}},emits:["itemDeleted"],setup(t,{emit:e}){const o=qo(!1),f=qo(null),E=qo(""),d=qo(!1),s=i=>{t.isProtectedFile(i.title)||(f.value=i,o.value=!0)},n=()=>{o.value=!1,f.value=null},u=i=>{E.value=i,d.value=!0};return{dialogVisible:o,itemToDelete:f,openDialog:s,closeDialog:n,deleteItem:async()=>{try{const i=await ou.post("api/delete_item",{path:t.currentPath,name:f.value.title});i.data.success?(e("itemDeleted"),n()):u(`Failed to delete item: ${i.data.message}`)}catch(i){u("Error connecting to the server. Please try again."),console.error("Error deleting item:",i)}},errorMessage:E,showError:d}}});function xje(t,e,o,f,E,d){return Uo(),Ya("div",null,[$t(dC,{modelValue:t.dialogVisible,"onUpdate:modelValue":e[0]||(e[0]=s=>t.dialogVisible=s),"max-width":"500px"},{default:ao(()=>[$t(ub,null,{default:ao(()=>[$t(I4,null,{default:ao(()=>[Ua("Confirm Deletion")]),_:1}),$t(hC,null,{default:ao(()=>{var s;return[Ua(' Are you sure you want to delete "'+Dl((s=t.itemToDelete)==null?void 0:s.title)+'"? ',1)]}),_:1}),$t(kD,null,{default:ao(()=>[$t(BM),$t(Ja,{color:"blue-darken-1",onClick:t.closeDialog},{default:ao(()=>[Ua("Cancel")]),_:1},8,["onClick"]),$t(Ja,{color:"error",onClick:t.deleteItem},{default:ao(()=>[Ua("Delete")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=s=>t.showError=s),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[1]||(e[1]=s=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"])])}const _je=mp(bje,[["render",xje]]),wje=em({name:"SidebarComponent",components:{FileUploader:dje,FileFolderCreator:mje,RenameDialog:yje,DeleteDialog:_je},props:{drawer:Boolean,items:Array,handleFileChange:Function,isMobile:Boolean,isAppRoute:Boolean},emits:["update:drawer","update:items"],setup(t,{emit:e}){const o=qo(t.drawer),f=qo(t.items||[]),E=qo("."),d=qo([]),s=qo(""),n=[{text:"Folder",value:"folder"},{text:"File",value:"file"}],u=qo(""),b=qo(!1),i=qo(["requirements.txt","notebook.ztnb","zt_db.db","zt_db.db.wal"]),S=O=>i.value.includes(O),w=qo(null),y=qo(null),m=O=>{var C;(C=w.value)==null||C.openDialog(O)},a=O=>{var C;(C=y.value)==null||C.openDialog(O)};ia(()=>t.drawer,O=>{o.value=O}),ia(o,O=>{e("update:drawer",O),O&&v()});const c=async O=>{try{const C=await ou.get("api/get_children",{params:{path:O}});f.value=C.data.files,e("update:items",C.data.files)}catch(C){console.error("Failed to load files:",C)}};pg(()=>{c(E.value)});const h=O=>{O.file==="folder"&&(d.value.push(E.value),E.value=O.id,c(E.value))},p=()=>{d.value.length>0&&(E.value=d.value.pop()||".",c(E.value))},v=()=>{c(E.value)};return{localDrawer:o,localItems:f,handleItemClick:h,goBack:p,pathStack:d,currentPath:E,refreshFiles:v,fileIcon:O=>{switch(O){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},newItemName:s,itemTypes:n,renameDialog:w,openRenameDialog:m,openDeleteDialog:a,deleteDialog:y,errorMessage:u,showError:b,isProtectedFile:S}}}),Oje={class:"d-flex"};function Sje(t,e,o,f,E,d){const s=Nd("FileFolderCreator"),n=Nd("FileUploader"),u=Nd("RenameDialog"),b=Nd("DeleteDialog");return t.$devMode&&!t.isMobile&&!t.isAppRoute?(Uo(),da(bwe,{key:0,modelValue:t.localDrawer,"onUpdate:modelValue":e[3]||(e[3]=i=>t.localDrawer=i),app:"",class:"sidebar",color:"bluegrey-darken-4"},{default:ao(()=>[Na("div",Oje,[t.pathStack.length>0?(Uo(),da(Ja,{key:0,onClick:t.goBack,color:"bluegrey-darken-4",icon:"mdi-arrow-left"},null,8,["onClick"])):za("",!0),$t(BM),$t(s,{"current-path":t.currentPath,onItemCreated:t.refreshFiles},null,8,["current-path","onItemCreated"]),$t(n,{"current-path":t.currentPath,onFileUploaded:t.refreshFiles},null,8,["current-path","onFileUploaded"]),$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-refresh",onClick:t.refreshFiles},null,8,["onClick"]),$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-close",onClick:e[0]||(e[0]=i=>t.localDrawer=!1)})]),$t(Ax,null,{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(t.localItems,i=>(Uo(),da(Xf,{key:i.id},{prepend:ao(()=>[i.file==="folder"?(Uo(),da(jl,{key:0},{default:ao(()=>[Ua(Dl("mdi-folder"))]),_:1})):(Uo(),da(jl,{key:1},{default:ao(()=>[Ua(Dl(t.fileIcon(i.file)),1)]),_:2},1024))]),append:ao(()=>[t.isProtectedFile(i.title)?za("",!0):(Uo(),da(BO,{key:0},{activator:ao(({props:S})=>[$t(Ja,qi({icon:"",variant:"text",density:"compact",class:"mr-2"},S),{default:ao(()=>[$t(jl,{size:"small"},{default:ao(()=>[Ua("mdi-dots-vertical")]),_:1})]),_:2},1040)]),default:ao(()=>[$t(Ax,null,{default:ao(()=>[$t(Xf,{onClick:S=>t.openRenameDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Rename")]),_:1})]),_:2},1032,["onClick"]),$t(Xf,{onClick:S=>t.openDeleteDialog(i)},{default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Delete")]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))]),default:ao(()=>[$t(z1,{onClick:S=>t.handleItemClick(i)},{default:ao(()=>[Ua(Dl(i.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),$t(Bq,{modelValue:t.showError,"onUpdate:modelValue":e[2]||(e[2]=i=>t.showError=i),color:"error",timeout:5e3},{actions:ao(()=>[$t(Ja,{color:"white",variant:"text",onClick:e[1]||(e[1]=i=>t.showError=!1)},{default:ao(()=>[Ua(" Close ")]),_:1})]),default:ao(()=>[Ua(Dl(t.errorMessage)+" ",1)]),_:1},8,["modelValue"]),$t(u,{ref:"renameDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemRenamed:t.refreshFiles},null,8,["current-path","is-protected-file","onItemRenamed"]),$t(b,{ref:"deleteDialog","current-path":t.currentPath,"is-protected-file":t.isProtectedFile,onItemDeleted:t.refreshFiles},null,8,["current-path","is-protected-file","onItemDeleted"])]),_:1},8,["modelValue"])):za("",!0)}const kje=mp(wje,[["render",Sje]]);class UL{constructor(e,o={}){pu(this,"socket");pu(this,"pingInterval");pu(this,"pingTimeout");pu(this,"url");pu(this,"options");pu(this,"reconnectAttempts",0);pu(this,"maxReconnectAttempts",3);pu(this,"connected",!1);this.url=e,this.options=o}initializeSocket(){return this.socket=new WebSocket(this.url),this.socket.onclose=e=>{var o,f;console.log(`WebSocket closed: ${this.url}, Code: ${e.code}, Reason: ${e.reason}`),this.stopPing(),(f=(o=this.options).onClose)==null||f.call(o,e),this.connected&&(this.reconnectSocket(),this.connected=!1)},this.socket.onmessage=e=>{var o,f;e.data==="pong"?clearTimeout(this.pingTimeout):(f=(o=this.options).onMessage)==null||f.call(o,e)},new Promise((e,o)=>{this.socket.onopen=()=>{var f,E;console.log(`WebSocket connected: ${this.url}`),this.connected=!0,this.startPing(),(E=(f=this.options).onOpen)==null||E.call(f),e("")},this.socket.onerror=f=>{var E,d;console.error(`WebSocket error: ${this.url}`,f),(d=(E=this.options).onError)==null||d.call(E,f),o(f)}})}startPing(){const e=this.options.pingInterval||3e4;this.pingInterval=window.setInterval(()=>{this.socket.readyState===WebSocket.OPEN&&(this.socket.send(JSON.stringify({type:"ping"})),this.pingTimeout=window.setTimeout(()=>{console.log(`Ping timeout: ${this.url}`),(!this.options.isCodeRunning||!this.options.isCodeRunning())&&this.socket.close()},5e3))},e)}stopPing(){clearInterval(this.pingInterval),clearTimeout(this.pingTimeout)}reconnectSocket(){const e=this.options.reconnectDelay||2e3;this.reconnectAttempts{try{await this.initializeSocket(),this.reconnectAttempts=0,console.log(`WebSocket reconnected successfully: ${this.url}`)}catch(o){console.error(`Reconnect attempt failed for WebSocket: ${this.url}`,o),this.reconnectAttempts++,this.reconnectSocket()}},e)):(console.error(`Max reconnect attempts reached for WebSocket: ${this.url}. Giving up.`),Q0.connection_lost=!0)}send(e){this.socket.readyState===WebSocket.OPEN?this.socket.send(e):console.warn(`WebSocket not open: ${this.url}`)}close(){this.stopPing(),this.socket.close()}}const Tje={components:{CodeComponent:Awe,MarkdownComponent:$Oe,EditorComponent:UOe,SQLComponent:XOe,PackageComponent:GOe,CodeCellManager:VUe,CopilotComponent:JUe,ShareComponent:ije,SidebarComponent:kje,Comments:NUe},data(){return{editingProjectName:!1,errorMessage:"",notebook:{},notebookName:"",notebookEditName:"",dependencies:{},completions:{},lintResults:{},ws_url:"",pythonVersion:"",ztVersion:"",notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,dependency_socket:null,timer:0,startTime:0,timerInterval:null,isCodeRunning:!1,currentlyExecutingCell:"",requestQueue:[],componentChangeQueue:[],drawer:!1,files:[],tree:[],items:[],openFolders:[],reactiveMode:!0,showComments:!1,showCreateButton:!1,envUserName:"",envProjectName:"",envTeamName:"",concatenatedCodeCache:{lastCellId:"",code:"",followingCode:"",length:0},dependencyOutput:{output:"",isLoading:!1},ztAliases:Mp}},setup(){const t=CD(),{showAllComments:e,loadComments:o}=t,{showComments:f}=que(t);return{showComments:f,loadComments:o,showAllComments:e}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.get_env_data(),await this.connectSockets(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:""}))},computed:{isAppRoute(){return eC().path==="/app"},isMobile(){return this.$vuetify.display.mobile},cellLength(){return this.notebook.cells?Object.keys(this.notebook.cells).length:0},runningQueue(){return this.$devMode?this.requestQueue:this.componentChangeQueue},queueLength(){return this.runningQueue.length},socketsDisconnected(){return Q0.connection_lost}},methods:{async connectSockets(){this.notebook_socket=new UL(this.ws_url+"ws/notebook",{onMessage:t=>this.notebookOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.run_socket=new UL(this.$devMode?this.ws_url+"ws/run_code":this.ws_url+"ws/component_run",{onMessage:t=>this.runOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.stop_socket=new UL(this.ws_url+"ws/stop_execution",{isCodeRunning:()=>this.isCodeRunning}),await this.notebook_socket.initializeSocket(),await this.run_socket.initializeSocket(),await this.stop_socket.initializeSocket(),this.$devMode&&(this.save_socket=new UL(this.ws_url+"ws/save_text",{onMessage:t=>this.saveOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),this.dependency_socket=new UL(this.ws_url+"ws/dependency_update",{onMessage:t=>this.dependencyOnMessage(t),isCodeRunning:()=>this.isCodeRunning}),await this.save_socket.initializeSocket(),await this.dependency_socket.initializeSocket())},toggleProjectName(){this.editingProjectName=!this.editingProjectName,this.editingProjectName&&(this.notebookEditName=this.notebookName,Vc(()=>{this.$refs.projectNameField.focus()}))},async saveProjectName(){if(this.editingProjectName){const t={notebookName:this.notebookEditName};await ou.post("api/notebook_name_update",t),this.notebookName=this.notebookEditName,document.title=this.notebookName,this.editingProjectName=!1}},startTimer(){this.startTime=Date.now(),this.timer=0,this.timerInterval=setInterval(()=>{const t=Date.now();this.timer=t-this.startTime},99)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async get_env_data(){const e=(await ou.get("env_data")).data;this.ws_url=e.ws_url||"ws://localhost:1326/",this.pythonVersion=e.python_version,this.ztVersion=e.zt_version,this.showCreateButton=e.show_create_button,Q0.comments_enabled=e.comments_enabled,e!=null&&e.user_name&&(this.envUserName=e.user_name),e!=null&&e.project_name&&(this.envProjectName=e.project_name),e!=null&&e.team_name&&(this.envTeamName=e.team_name)},updateDrawer(t){this.drawer=t},updateItems(t){this.items=t},handleFileChange(t,e){const o=e.target.files;if(o&&o.length>0){const f=new FormData;f.append("file",o[0]),ou.post("api/upload_file",f,{headers:{"Content-Type":"multipart/form-data"}}).then(E=>console.log("File processed",E.data)).catch(E=>console.error("Error processing file:",E.response))}else console.error("No file selected")},fileIcon(t){switch(t){case"html":return"mdi:mdi-language-html5";case"js":return"mdi:mdi-nodejs";case"json":return"mdi:mdi-code-json";case"md":return"mdi:mdi-language-markdown";case"pdf":return"mdi:mdi-file-pdf-box";case"png":return"mdi:mdi-file-image";case"txt":return"mdi:mdi-file-document-outline";case"xls":return"mdi:mdi-file-excel";case"folder":return"mdi:mdi-folder";default:return"mdi:mdi-file"}},async runCode(t){const e=[],o={};for(let E in this.notebook.cells){const d={id:E,code:this.notebook.cells[E].code,variable_name:this.notebook.cells[E].variable_name||"",nonReactive:this.notebook.cells[E].nonReactive,showTable:this.notebook.cells[E].showTable,cellType:this.notebook.cells[E].cellType};for(const s of this.notebook.cells[E].components)s.component==="v-data-table"?o[s.id]="":o[s.id]=s.value;e.push(d)}const f={originId:t,reactiveMode:this.reactiveMode,cells:e,components:o};if(this.isCodeRunning){const E=this.requestQueue.findIndex(d=>d.originId===t);E!==-1?this.requestQueue[E]=f:this.requestQueue.push(f);return}this.sendRunCodeRequest(f)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},notebookOnMessage(t){const e=JSON.parse(t.data);if(e.notebook_name)this.notebookName=e.notebook_name,document.title=this.notebookName;else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(e.env_stale)this.errorMessage="Some dependencies are not installed in the current environment. Open dependency manager to install missing dependencies";else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const o=typeof e=="string"?JSON.parse(e):e;if(o.notebook){this.notebook=o.notebook;for(let f in this.notebook.cells)this.notebook.cells[f].cellType==="code"&&(this.completions[f]=[],this.lintResults[f]=[]),this.loadComments(this.notebook.cells[f].comments??{},f,this.notebook.cells[f].cellType,this.notebook.cells[f].cellName??"");this.dependencies=o.dependencies}else this.notebook.cells&&this.notebook.cells[o.id]&&(this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout)}},runOnMessage(t){const e=JSON.parse(t.data);if(e.cell_executing!==void 0&&e.cell_executing!==null)this.currentlyExecutingCell=e.cell_executing;else if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":e.exception?console.log(e.exception):this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const o=this.requestQueue.shift()||{};this.sendRunCodeRequest(o)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const o=this.componentChangeQueue.shift()||{},f={originId:o.originId,components:o.components,userId:o.userId};this.sendComponentRequest(f)}}else{const o=JSON.parse(e);this.notebook.cells[o.id].components=o.components,this.notebook.cells[o.id].layout=o.layout}},saveOnMessage(t){try{const e=JSON.parse(t.data);e.cell_id&&(e.completions&&(this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]),e.lint_results&&(this.lintResults[e.cell_id]=Array.isArray(e.lint_results)?e.lint_results:[]))}catch(e){console.error("Error parsing server message:",e)}},dependencyOnMessage(t){try{const e=JSON.parse(t.data);e.output?this.dependencyOutput.output=this.dependencyOutput.output.concat(e.output):(this.dependencies=JSON.parse(e),this.dependencyOutput.isLoading=!1),this.errorMessage=""}catch(e){console.error("Error parsing server message:",e)}},async componentValueChange(t,e,o){const f={};for(let s in this.notebook.cells)for(const n of this.notebook.cells[s].components)n.component==="v-data-table"?f[n.id]="":f[n.id]=n.value;const E={originId:t,componentId:e,components:f,userId:this.notebook.userId};if(this.isCodeRunning){const s=this.componentChangeQueue.findIndex(n=>n.componentId===e);s!==-1?this.componentChangeQueue[s]=E:this.componentChangeQueue.push(E);return}const d={originId:E.originId,components:E.components,userId:E.userId};this.sendComponentRequest(d)},async sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send(JSON.stringify({message:"start"}))},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};ou.post("api/clear_state",e)},async createCodeCell(t,e){const o={cellType:e.toLowerCase(),position_key:t},E=(await ou.post("api/create_cell",o)).data;let d={};t||(d[E.id]=E);for(let s in this.notebook.cells)d[s]=this.notebook.cells[s],t===s&&(d[E.id]=E);E.cellType==="code"&&(this.completions[E.id]=[],this.lintResults[E.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await ou.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&(delete this.completions[t],delete this.lintResults[t]),delete this.notebook.cells[t]},async saveCell(t,e,o,f){if(this.notebook.cells[t].cellType==="code"&&this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):s+=this.notebook.cells[b].code+` `)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:this.concatenatedCodeCache.length+o,column:f,code_w_context:this.concatenatedCodeCache.code+e+this.concatenatedCodeCache.followingCode};this.save_socket.send(JSON.stringify(E))},async copilotCompletion(t,e,o,f){if(this.concatenatedCodeCache.lastCellId!==t){let d="",s="",n=0,u=!0;for(let b in this.notebook.cells){if(b===t){u=!1;continue}this.notebook.cells[b].cellType==="code"&&(u?(d+=this.notebook.cells[b].code+` `,n+=this.notebook.cells[b].code.split(/\r\n|\r|\n/).length):s+=this.notebook.cells[b].code+` -`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E=await ou.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(E)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Q0.timers[t])Q0.timers[t]={};else for(const o in Q0.timers[t])Q0.timers[t][o].stop(),delete Q0.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const E=new i1e(o);Q0.timers[t][e]=E,E.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Q0.timers[t][e]){const E=new i1e(o);Q0.timers[t][e]=E,E.start(f)}}}};const ife=t=>(Wle("data-v-e344242c"),t=t(),Yle(),t),Sje={key:0,class:"click-edit"},kje={key:0,class:"click-edit__show-text"},Tje={key:1,class:"click-edit__edit-field-wrapper"},Cje={key:1,class:"text-ellipsis text-h5"},Aje={key:2,class:"toggle-group"},Mje={key:2,target:"_blank",href:"https://www.zero-true.com/contact"},Eje={class:Gv(["content","px-8","d-flex","justify-center"])},Pje={class:"content__cells flex-grow-1",transition:"slide-x-transition"},Rje={class:"footer__left-container"},Lje={class:"footer__right-container"},Ije={key:0,class:"footer__queue-length-wrapper"},Dje=ife(()=>Na("span",{class:"text-bluegrey"},"Python #2",-1)),Bje={class:"footer__status-wrapper"},zje={key:0,class:"footer__status"},Nje=ife(()=>Na("span",null,"Running",-1)),Fje={key:1,class:"footer__status footer__status--connected"},$je=ife(()=>Na("span",null,"Connected",-1));function Vje(t,e,o,f,E,d){const s=Nd("ShareComponent"),n=Nd("CopilotComponent"),u=Nd("PackageComponent"),b=Nd("SidebarComponent"),i=Nd("CodeCellManager"),S=Nd("Comments");return Uo(),da(iRe,null,{default:ao(()=>[$t(bRe,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:ao(()=>[$t(QT,{class:"d-flex justify-end"},{default:ao(()=>[Na("div",null,[$t(ywe,{text:"Run All",location:"bottom",color:"primary"},{activator:ao(({props:w})=>[t.$devMode&&!d.isAppRoute?(Uo(),da(es,qi({key:0,icon:`ztIcon:${E.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Uo(),da(BO,{key:0,"close-on-content-click":!1},{activator:ao(({props:w})=>[$t(es,qi({icon:`ztIcon:${E.ztAliases.settings}`},w),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,null,{prepend:ao(()=>[$t(N8,{modelValue:E.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>E.reactiveMode=w)},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):za("",!0),t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:1,userName:E.envUserName,projectName:E.envProjectName,teamName:E.envTeamName},null,8,["userName","projectName","teamName"])):za("",!0),E.showCreateButton&&(!t.$devMode||d.isAppRoute)?(Uo(),Ya("a",Mje,"Create your own project")):za("",!0)])]),_:1})]),default:ao(()=>[$t(es,{size:"x-large",ripple:!1,icon:`ztIcon:${E.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Uo(),Ya("div",Sje,[E.editingProjectName?za("",!0):(Uo(),Ya("div",kje,[Na("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},Dl(E.notebookName),1)])),E.editingProjectName?(Uo(),Ya("div",Tje,[$t(Ep,{modelValue:E.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>E.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:pce(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):za("",!0)])):(Uo(),Ya("h5",Cje,Dl(E.notebookName),1)),t.$devMode&&!d.isMobile?(Uo(),Ya("div",Aje,[$t(B2e,{multiple:!1,density:"compact",mandatory:""},{default:ao(()=>[$t(es,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Gv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:ao(()=>[Ua(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),$t(es,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Gv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:ao(()=>[Ua("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Uo(),da(vwe,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:ao(()=>[$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(n,{key:0})):za("",!0)]),_:1}),$t(Xf,null,{default:ao(()=>[$t(es,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>E.drawer=!0),class:"text-bluegrey"})]),_:1}),$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(u,{key:0,dependencies:E.dependencies,dependencyOutput:E.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):za("",!0)]),_:1})]),_:1})):za("",!0),$t(b,{drawer:E.drawer,items:E.items,tree:E.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),$t(TBe,{scrollable:!1,class:"w-100 mx-auto"},{default:ao(()=>[E.errorMessage?(Uo(),da(yM,{key:0},{default:ao(()=>[$t(eM,{type:"error"},{default:ao(()=>[Ua(Dl(E.errorMessage),1)]),_:1})]),_:1})):za("",!0),d.socketsDisconnected?(Uo(),da(yM,{key:1},{default:ao(()=>[$t(eM,{type:"error"},{default:ao(()=>[Ua(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):za("",!0),Na("div",Eje,[Na("div",Pje,[$t(i,{notebook:E.notebook,completions:E.completions,currentlyExecutingCell:E.currentlyExecutingCell,isCodeRunning:E.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),Na("div",{class:Gv(["content__comments",{"content__comments--show":f.showComments}])},[$t(S)],2)])]),_:1}),d.isMobile?za("",!0):(Uo(),da(wBe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:ao(()=>[Na("div",Rje,[Na("span",null,[Na("span",null,"Python "+Dl(E.pythonVersion),1)]),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,"Zero-True "+Dl(E.ztVersion),1),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,Dl(d.cellLength)+" cells",1)]),Na("div",Lje,[E.isCodeRunning?(Uo(),Ya("div",Ije,[$t(sC,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),$t(LM,{density:"comfortable"},{default:ao(()=>[Ua(Dl(E.timer)+"ms",1)]),_:1}),$t(es,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:ao(()=>[Ua(" Queue Length: "+Dl(d.queueLength)+" ",1),$t(BO,{activator:"parent"},{default:ao(()=>[$t(Ax,{class:"footer__queue-list"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ey(d.runningQueue,(w,y)=>(Uo(),da(Xf,{key:y,class:"footer__queue-list-item"},{append:ao(()=>[$t(jl,{icon:"$done",color:"success"})]),default:ao(()=>[Dje]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):za("",!0),Na("div",Bje,[E.isCodeRunning?(Uo(),Ya("div",zje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),Nje])):za("",!0),E.isCodeRunning?za("",!0):(Uo(),Ya("div",Fje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),$je])),E.isCodeRunning?(Uo(),da(es,{key:2,density:"comfortable",icon:`ztIcon:${E.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):za("",!0)])])]),_:1}))]),_:1})}const Uje=mp(Oje,[["render",Vje],["__scopeId","data-v-e344242c"]]);const jje="modulepreload",Qje=function(t,e){return new URL(t,e).href},a1e={},Cle=function(e,o,f){if(!o||o.length===0)return e();const E=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=Qje(d,f),d in a1e)return;a1e[d]=!0;const s=d.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!f)for(let i=E.length-1;i>=0;i--){const S=E[i];if(S.href===d&&(!s||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=s?"stylesheet":jje,s||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),s)return new Promise((i,S)=>{b.addEventListener("load",i),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=d,window.dispatchEvent(s),!s.defaultPrevented)throw d})};async function Hje(){(await Cle(()=>import("./webfontloader-8d8301d2.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function JOe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Jg(e,o),{aliases:E={},components:d={},directives:s={}}=f,n=F9e(f.defaults),u=rLe(f.display,f.ssr),b=rRe(f.theme),i=TRe(f.icons),S=J9e(f.locale),w=xDe(f.date,S),y=iLe(f.goTo,S);return{install:a=>{for(const c in s)a.directive(c,s[c]);for(const c in d)a.component(c,d[c]);for(const c in E)a.component(c,PM({...E[c],name:c,aliasName:E[c].name}));if(b.install(a),a.provide(gM,n),a.provide(rle,u),a.provide(fZ,b),a.provide(ele,i),a.provide(uZ,S),a.provide(bDe,w.options),a.provide(Xge,w.instance),a.provide(n_e,y),Hu&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:c}=a;a.mount=function(){const h=c(...arguments);return Vc(()=>u.update()),a.mount=c,h}}j1.reset(),a.mixin({computed:{$vuetify(){return Am({defaults:R8.call(this,gM),display:R8.call(this,rle),theme:R8.call(this,fZ),icons:R8.call(this,ele),locale:R8.call(this,uZ),date:R8.call(this,Xge)})}}})},defaults:n,display:u,theme:b,icons:i,locale:S,date:w,goTo:y}}const Zje="3.6.14";JOe.version=Zje;function R8(t){var f,E;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((E=e.vnode.appContext)==null?void 0:E.provides);if(o&&t in o)return o[t]}const qje=JOe({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:z2e,sets:{mdi:N2e,ztIcon:nze}}}),s1e=[{path:"/",name:"/",component:()=>Cle(()=>import("./index-04c19357.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>Cle(()=>import("./app-ac7025af.js"),[],import.meta.url)}];function Wje(t){const{extendRoutes:e}=t;return CTe(Object.assign(t,{routes:typeof e=="function"?e(s1e):s1e}))}async function Yje(t){const o=(await ou.get("base_path")).data,f=Wje({history:j5e(o)});Hje(),t.use(qje).use(f)}const Xje=sze(),OH=S5e(Uje);OH.use(Xje);Yje(OH).then(()=>{OH.config.globalProperties.$devMode=!1,OH.mount("#app")});export{NUe as C,mp as _,da as c,MTe as g,Uo as o,Nd as r}; +`)}this.concatenatedCodeCache={lastCellId:t,code:d,followingCode:s,length:n}}const E=await ou.post("copilot/get_completions",{doc:{version:1,uri:"file:///notebook.ztnb",position:{line:this.concatenatedCodeCache.length+e,character:o}}});f(E)},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send(JSON.stringify({userId:""}))):(this.componentChangeQueue=[],this.stop_socket.send(JSON.stringify({userId:this.notebook.userId})));for(let t in this.notebook.cells)for(const e of this.notebook.cells[t].components)(e.component==="v-btn"||e.component==="v-timer")&&(e.value=!1);this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}},async updateDependencies(t){this.dependencyOutput.output="";const e={dependencies:t};this.dependency_socket.send(JSON.stringify(e))},startTimerComponents(t,e){if(!Q0.timers[t])Q0.timers[t]={};else for(const o in Q0.timers[t])Q0.timers[t][o].stop(),delete Q0.timers[t][o];for(const o of e)this.startTimerComponent(t,o.id,o.interval)},startTimerComponent(t,e,o){const f=()=>{const E=new s1e(o);Q0.timers[t][e]=E,E.start(f),this.notebook.cells[t].components.find(d=>d.id===e).value=!0,this.$devMode?this.runCode(t):this.componentValueChange(t,e,!0)};if(!Q0.timers[t][e]){const E=new s1e(o);Q0.timers[t][e]=E,E.start(f)}}}};const sfe=t=>(Yle("data-v-2da37ea1"),t=t(),Xle(),t),Cje={key:0,class:"click-edit"},Aje={key:0,class:"click-edit__show-text"},Mje={key:1,class:"click-edit__edit-field-wrapper"},Eje={key:1,class:"text-ellipsis text-h5"},Pje={key:2,class:"toggle-group"},Rje={key:2,target:"_blank",href:"https://www.zero-true.com/contact"},Lje={class:Gv(["content","px-8","d-flex","justify-center"])},Ije={class:"content__cells flex-grow-1",transition:"slide-x-transition"},Dje={class:"footer__left-container"},Bje={class:"footer__right-container"},zje={key:0,class:"footer__queue-length-wrapper"},Nje=sfe(()=>Na("span",{class:"text-bluegrey"},"Python #2",-1)),Fje={class:"footer__status-wrapper"},$je={key:0,class:"footer__status"},Vje=sfe(()=>Na("span",null,"Running",-1)),Uje={key:1,class:"footer__status footer__status--connected"},jje=sfe(()=>Na("span",null,"Connected",-1));function Qje(t,e,o,f,E,d){const s=Nd("ShareComponent"),n=Nd("CopilotComponent"),u=Nd("PackageComponent"),b=Nd("SidebarComponent"),i=Nd("CodeCellManager"),S=Nd("Comments");return Uo(),da(lRe,null,{default:ao(()=>[$t(wRe,{app:"",color:"bluegrey-darken-4",height:"51",id:"appBar",class:"zt-app-bar"},{append:ao(()=>[$t(HT,{class:"d-flex justify-end"},{default:ao(()=>[Na("div",null,[$t(xwe,{text:"Run All",location:"bottom",color:"primary"},{activator:ao(({props:w})=>[t.$devMode&&!d.isAppRoute?(Uo(),da(Ja,qi({key:0,icon:`ztIcon:${E.ztAliases.play}`},w,{variant:"flat",ripple:"",color:"bluegrey-darken-4",onClick:e[3]||(e[3]=y=>d.runCode(""))}),null,16,["icon"])):za("",!0)]),_:1}),t.$devMode&&!d.isAppRoute?(Uo(),da(BO,{key:0,"close-on-content-click":!1},{activator:ao(({props:w})=>[$t(Ja,qi({icon:`ztIcon:${E.ztAliases.settings}`},w),null,16,["icon"])]),default:ao(()=>[$t(Ax,{"bg-color":"bluegrey-darken-4"},{default:ao(()=>[$t(Xf,null,{prepend:ao(()=>[$t(F8,{modelValue:E.reactiveMode,"onUpdate:modelValue":e[4]||(e[4]=w=>E.reactiveMode=w)},null,8,["modelValue"])]),default:ao(()=>[$t(z1,null,{default:ao(()=>[Ua("Reactive Mode")]),_:1})]),_:1})]),_:1})]),_:1})):za("",!0),t.$devMode&&!d.isAppRoute?(Uo(),da(s,{key:1,userName:E.envUserName,projectName:E.envProjectName,teamName:E.envTeamName},null,8,["userName","projectName","teamName"])):za("",!0),E.showCreateButton&&(!t.$devMode||d.isAppRoute)?(Uo(),Ya("a",Rje,"Create your own project")):za("",!0)])]),_:1})]),default:ao(()=>[$t(Ja,{size:"x-large",ripple:!1,icon:`ztIcon:${E.ztAliases.logo}`,variant:"plain",onClick:d.navigateToApp,id:"Navbutton",class:"logo-btn"},null,8,["icon","onClick"]),t.$devMode&&!d.isAppRoute?(Uo(),Ya("div",Cje,[E.editingProjectName?za("",!0):(Uo(),Ya("div",Aje,[Na("h5",{class:"click-edit__name text-ellipsis text-h5",onClick:e[0]||(e[0]=(...w)=>d.toggleProjectName&&d.toggleProjectName(...w))},Dl(E.notebookName),1)])),E.editingProjectName?(Uo(),Ya("div",Mje,[$t(Ep,{modelValue:E.notebookEditName,"onUpdate:modelValue":e[1]||(e[1]=w=>E.notebookEditName=w),placeholder:"Zero True",density:"compact",variant:"plain","hide-details":"",ref:"projectNameField",class:"click-edit__edit-field",onKeydown:mce(d.saveProjectName,["enter"]),"onUpdate:focused":e[2]||(e[2]=w=>{w||d.saveProjectName()})},null,8,["modelValue","onKeydown"])])):za("",!0)])):(Uo(),Ya("h5",Eje,Dl(E.notebookName),1)),t.$devMode&&!d.isMobile?(Uo(),Ya("div",Pje,[$t(N2e,{multiple:!1,density:"compact",mandatory:""},{default:ao(()=>[$t(Ja,{color:d.isAppRoute?"bluegrey-darken-1":"primary",variant:d.isAppRoute?"text":"flat",class:Gv({"text-bluegrey-darken-4":!d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.notebook}`,to:"/",id:"notebookBtn"},{default:ao(()=>[Ua(" Notebook")]),_:1},8,["color","variant","class","prepend-icon"]),$t(Ja,{color:d.isAppRoute?"primary":"bluegrey-darken-1",variant:d.isAppRoute?"flat":"text",class:Gv({"text-bluegrey-darken-4":d.isAppRoute}),"prepend-icon":`ztIcon:${E.ztAliases.monitor}`,to:"/app",id:"appBtn"},{default:ao(()=>[Ua("App")]),_:1},8,["color","variant","class","prepend-icon"])]),_:1})])):za("",!0)]),_:1}),t.$devMode&&!d.isMobile&&!d.isAppRoute?(Uo(),da(bwe,{key:0,rail:!0,color:"bluegrey-darken-4",style:{"padding-top":"12px","padding-bottom":"12px"}},{append:ao(()=>[$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(n,{key:0})):za("",!0)]),_:1}),$t(Xf,null,{default:ao(()=>[$t(Ja,{color:"bluegrey-darken-4",icon:"mdi-folder-multiple",onClick:e[5]||(e[5]=w=>E.drawer=!0),class:"text-bluegrey"})]),_:1}),$t(Xf,null,{default:ao(()=>[t.$devMode&&!d.isAppRoute?(Uo(),da(u,{key:0,dependencies:E.dependencies,dependencyOutput:E.dependencyOutput,onUpdateDependencies:d.updateDependencies},null,8,["dependencies","dependencyOutput","onUpdateDependencies"])):za("",!0)]),_:1})]),_:1})):za("",!0),$t(b,{drawer:E.drawer,items:E.items,tree:E.tree,fileIcon:d.fileIcon,isMobile:d.isMobile,isAppRoute:d.isAppRoute,"onUpdate:drawer":d.updateDrawer,"onUpdate:items":d.updateItems,onHandleFileChange:d.handleFileChange,style:{"padding-top":"12px","padding-bottom":"12px"}},null,8,["drawer","items","tree","fileIcon","isMobile","isAppRoute","onUpdate:drawer","onUpdate:items","onHandleFileChange"]),$t(MBe,{scrollable:!1,class:"w-100 mx-auto"},{default:ao(()=>[E.errorMessage?(Uo(),da(yM,{key:0},{default:ao(()=>[$t(tM,{type:"error"},{default:ao(()=>[Ua(Dl(E.errorMessage),1)]),_:1})]),_:1})):za("",!0),d.socketsDisconnected?(Uo(),da(yM,{key:1},{default:ao(()=>[$t(tM,{type:"error"},{default:ao(()=>[Ua(" Connection to the server has been lost. Please refresh the page. ")]),_:1})]),_:1})):za("",!0),Na("div",Lje,[Na("div",Ije,[$t(i,{notebook:E.notebook,lintResults:E.lintResults,completions:E.completions,currentlyExecutingCell:E.currentlyExecutingCell,isCodeRunning:E.isCodeRunning,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentValueChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell,onCopilotCompletion:d.copilotCompletion,onUpdateTimers:d.startTimerComponents},null,8,["notebook","lintResults","completions","currentlyExecutingCell","isCodeRunning","onRunCode","onSaveCell","onComponentValueChange","onDeleteCell","onCreateCell","onCopilotCompletion","onUpdateTimers"])]),Na("div",{class:Gv(["content__comments",{"content__comments--show":f.showComments}])},[$t(S)],2)])]),_:1}),d.isMobile?za("",!0):(Uo(),da(kBe,{key:1,app:"",class:"footer bg-bluegrey-darken-4 text-bluegrey"},{default:ao(()=>[Na("div",Dje,[Na("span",null,[Na("span",null,"Python "+Dl(E.pythonVersion),1)]),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,"Zero-True "+Dl(E.ztVersion),1),$t(jl,{class:"dot-divider",icon:`ztIcon:${E.ztAliases.dot}`},null,8,["icon"]),Na("span",null,Dl(d.cellLength)+" cells",1)]),Na("div",Bje,[E.isCodeRunning?(Uo(),Ya("div",zje,[$t(lC,{indeterminate:"",color:"bluegrey",size:"17",class:"footer__code-running-loader",id:"codeRunProgress"}),$t(LM,{density:"comfortable"},{default:ao(()=>[Ua(Dl(E.timer)+"ms",1)]),_:1}),$t(Ja,{class:"footer__queue-length-btn",density:"compact","append-icon":"mdi:mdi-chevron-down",rounded:"",disabled:d.queueLength===0,variant:"flat"},{default:ao(()=>[Ua(" Queue Length: "+Dl(d.queueLength)+" ",1),$t(BO,{activator:"parent"},{default:ao(()=>[$t(Ax,{class:"footer__queue-list"},{default:ao(()=>[(Uo(!0),Ya(Ea,null,ty(d.runningQueue,(w,y)=>(Uo(),da(Xf,{key:y,class:"footer__queue-list-item"},{append:ao(()=>[$t(jl,{icon:"$done",color:"success"})]),default:ao(()=>[Nje]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["disabled"])])):za("",!0),Na("div",Fje,[E.isCodeRunning?(Uo(),Ya("div",$je,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),Vje])):za("",!0),E.isCodeRunning?za("",!0):(Uo(),Ya("div",Uje,[$t(jl,{icon:`ztIcon:${E.ztAliases.status}`},null,8,["icon"]),jje])),E.isCodeRunning?(Uo(),da(Ja,{key:2,density:"comfortable",icon:`ztIcon:${E.ztAliases.stop}`,color:"bluegrey",variant:"plain",ripple:!1,onClick:e[6]||(e[6]=w=>d.stopCodeExecution()),rounded:""},null,8,["icon"])):za("",!0)])])]),_:1}))]),_:1})}const Hje=mp(Tje,[["render",Qje],["__scopeId","data-v-2da37ea1"]]);const Zje="modulepreload",qje=function(t,e){return new URL(t,e).href},l1e={},Ale=function(e,o,f){if(!o||o.length===0)return e();const E=document.getElementsByTagName("link");return Promise.all(o.map(d=>{if(d=qje(d,f),d in l1e)return;l1e[d]=!0;const s=d.endsWith(".css"),n=s?'[rel="stylesheet"]':"";if(!!f)for(let i=E.length-1;i>=0;i--){const S=E[i];if(S.href===d&&(!s||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${n}`))return;const b=document.createElement("link");if(b.rel=s?"stylesheet":Zje,s||(b.as="script",b.crossOrigin=""),b.href=d,document.head.appendChild(b),s)return new Promise((i,S)=>{b.addEventListener("load",i),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=d,window.dispatchEvent(s),!s.defaultPrevented)throw d})};async function Wje(){(await Ale(()=>import("./webfontloader-df03bff5.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap","Roboto:100,300,400,500,700,900&display=swap"]}})}function t3e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...o}=t,f=Jg(e,o),{aliases:E={},components:d={},directives:s={}}=f,n=U9e(f.defaults),u=aLe(f.display,f.ssr),b=aRe(f.theme),i=MRe(f.icons),S=nRe(f.locale),w=ODe(f.date,S),y=lLe(f.goTo,S);return{install:a=>{for(const c in s)a.directive(c,s[c]);for(const c in d)a.component(c,d[c]);for(const c in E)a.component(c,PM({...E[c],name:c,aliasName:E[c].name}));if(b.install(a),a.provide(gM,n),a.provide(ole,u),a.provide(dZ,b),a.provide(tle,i),a.provide(fZ,S),a.provide(wDe,w.options),a.provide(Kge,w.instance),a.provide(o_e,y),Hu&&f.ssr)if(a.$nuxt)a.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:c}=a;a.mount=function(){const h=c(...arguments);return Vc(()=>u.update()),a.mount=c,h}}j1.reset(),a.mixin({computed:{$vuetify(){return Am({defaults:L8.call(this,gM),display:L8.call(this,ole),theme:L8.call(this,dZ),icons:L8.call(this,tle),locale:L8.call(this,fZ),date:L8.call(this,Kge)})}}})},defaults:n,display:u,theme:b,icons:i,locale:S,date:w,goTo:y}}const Yje="3.6.14";t3e.version=Yje;function L8(t){var f,E;const e=this.$,o=((f=e.parent)==null?void 0:f.provides)??((E=e.vnode.appContext)==null?void 0:E.provides);if(o&&t in o)return o[t]}const Xje=t3e({display:{mobileBreakpoint:"md"},defaults:{global:{elevation:0},VAppBar:{VBtn:{color:"white",ripple:!1}},VBtn:{style:[{"text-transform":"capitalize"}],color:"bluegrey-darken-2",class:["text-bluegrey-darken-1"]},VBtnToggle:{density:"comfortable",VBtn:{style:[{borderRadius:"inherit"}],class:["text-bluegrey-darken-1"]}},VCard:{color:"bluegrey-darken-4"},VDivider:{class:"border-opacity-100"},VFooter:{VListItem:{minHeight:15}},VMenu:{contentClass:"zt-menu"},VSwitch:{baseColor:"bluegrey-darken-3",color:"primary",density:"compact",hideDetails:!0},VTextarea:{bgColor:"bluegrey-darken-3"}},theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1316",primary:"#ae9ee8",secondary:"#424242",surface:"#1B2F3C",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}},light:{colors:{background:"#E7E8E9",primary:"#AE9FE8",secondary:"#5F7F93",surface:"#FFFFFF",bluegrey:"#5F7F93","bluegrey-darken-1":"#3A586B","bluegrey-darken-2":"#294455","bluegrey-darken-3":"#1B2F3C","bluegrey-darken-4":"#0E1B23",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E",white:"#E7E8E9"}}}},icons:{defaultSet:"mdi",aliases:F2e,sets:{mdi:$2e,ztIcon:ize}}}),c1e=[{path:"/",name:"/",component:()=>Ale(()=>import("./index-67a8da19.js"),[],import.meta.url)},{path:"/app",name:"/app",component:()=>Ale(()=>import("./app-67a8da19.js"),[],import.meta.url)}];function Gje(t){const{extendRoutes:e}=t;return MTe(Object.assign(t,{routes:typeof e=="function"?e(c1e):c1e}))}async function Kje(t){const o=(await ou.get("base_path")).data,f=Gje({history:H5e(o)});Wje(),t.use(Xje).use(f)}const Jje=uze(),SH=T5e(Hje);SH.use(Jje);Kje(SH).then(()=>{SH.config.globalProperties.$devMode=!0,SH.mount("#app")});export{VUe as C,mp as _,da as c,PTe as g,Uo as o,Nd as r}; diff --git a/zt_backend/dist_dev/assets/index-67a8da19.js b/zt_backend/dist_dev/assets/index-67a8da19.js new file mode 100644 index 00000000..0cb498a6 --- /dev/null +++ b/zt_backend/dist_dev/assets/index-67a8da19.js @@ -0,0 +1 @@ +import{C as o,_ as r,r as l,o as c,c as u}from"./index-1cb69988.js";const a={metaInfo(){return{meta:{dev:!0}}},props:{notebook:{type:Object,required:!0},completions:{type:Object,required:!0},lintResults:{type:Object,required:!0},runCode:{type:Function,required:!0},saveCell:{type:Function,required:!0},componentValueChange:{type:Function,required:!0},deleteCell:{type:Function,required:!0},createCodeCell:{type:Function,required:!0}},components:{CodeCellManager:o},methods:{getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};function d(t,s,e,C,i,m){const n=l("code-cell-manager");return c(),u(n,{notebook:e.notebook,completions:e.completions,lintResults:e.lintResults,runCode:e.runCode,saveCell:e.saveCell,componentValueChange:e.componentValueChange,deleteCell:e.deleteCell,createCell:e.createCodeCell},null,8,["notebook","completions","lintResults","runCode","saveCell","componentValueChange","deleteCell","createCell"])}const _=r(a,[["render",d]]);export{_ as default}; diff --git a/zt_backend/dist_dev/assets/index-82db29a9.css b/zt_backend/dist_dev/assets/index-82db29a9.css new file mode 100644 index 00000000..0ad00ae5 --- /dev/null +++ b/zt_backend/dist_dev/assets/index-82db29a9.css @@ -0,0 +1,5 @@ +@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-file-input--hide.v-input .v-field,.v-file-input--hide.v-input .v-input__control,.v-file-input--hide.v-input .v-input__details{display:none}.v-file-input--hide.v-input .v-input__prepend{grid-area:control;margin:0 auto}.v-file-input--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-file-input input[type=file]{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.v-file-input .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-file-input .v-input__details{padding-inline:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-6e515f8e]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-6e515f8e]{margin-bottom:16px}.message-btn--alert[data-v-6e515f8e]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-6e515f8e]{margin-bottom:4px}.delete-cell[data-v-6e515f8e]:hover{background-color:#6e3d41}.content[data-v-6e515f8e]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-6e515f8e]{border-radius:4px}.header[data-v-6e515f8e]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-6e515f8e],.outcome[data-v-6e515f8e]{padding:0}.code--dev[data-v-6e515f8e],.outcome--dev[data-v-6e515f8e]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-6e515f8e]{margin-bottom:16px}.click-edit[data-v-6e515f8e]{width:calc(100% - 135px)}.click-edit__name[data-v-6e515f8e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-6e515f8e],.click-edit__edit-field-wrapper[data-v-6e515f8e]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-6e515f8e]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-6e515f8e]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-6e515f8e]{margin-top:-11px}.click-edit__edit-field[data-v-6e515f8e] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-6e515f8e]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-6e515f8e]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-6e515f8e]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-46d618ae]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-46d618ae] .plot-container{overflow:auto}.markdown-content[data-v-88d8f347]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content[data-v-88d8f347] h1,.markdown-content[data-v-88d8f347] h2,.markdown-content[data-v-88d8f347] h3,.markdown-content[data-v-88d8f347] h4,.markdown-content[data-v-88d8f347] h5,.markdown-content[data-v-88d8f347] h6{margin-bottom:.2em;font-weight:700;line-height:1.3}.markdown-content[data-v-88d8f347] p{margin-top:0;margin-bottom:.2em}.markdown-content[data-v-88d8f347] ul,.markdown-content[data-v-88d8f347] ol{margin-top:.5em;margin-bottom:.5em}.markdown-content[data-v-88d8f347] ul{list-style-type:disc;margin-left:5px}.markdown-content[data-v-88d8f347] ol{list-style-type:decimal;margin-left:20px}.markdown-content[data-v-88d8f347] li{margin-bottom:.25em}.markdown-content[data-v-88d8f347] li>ul,.markdown-content[data-v-88d8f347] li>ol{margin-top:.25em;margin-bottom:.25em;margin-left:20px}.markdown-content[data-v-88d8f347] ul{list-style-type:disc}.markdown-content[data-v-88d8f347] ol{list-style-type:decimal}.markdown-content[data-v-88d8f347] a{color:#007bff;text-decoration:none}.markdown-content[data-v-88d8f347] a:hover{text-decoration:underline}.markdown-content[data-v-88d8f347] img{max-width:100%;height:auto}.markdown-content[data-v-88d8f347] blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent inset;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{min-width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid #f00!important;box-shadow:0 0 0 1px red}.tox .tox-rgb-container{position:relative}.tox .tox-rgb-form .tox-invalid-icon{align-content:center;align-items:center;display:none;height:100%;position:absolute;right:0;top:0}.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid{margin:0}.tox .tox-rgb-warning-note{background-color:#442632;border:1px solid #55212b;border-radius:3px;color:#e68080;padding:3px}.tox input.tox-invalid+.tox-invalid-icon{display:flex}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;-webkit-text-decoration:none;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a3709;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:max-content}.tox .tox-notification a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{align-items:flex-start;display:flex;flex:1 1 auto;height:16px;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;-webkit-text-decoration:none;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0;background-size:calc(100% - 8px) calc(100% + -0)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{display:flex;flex-direction:column;height:100%;min-width:248px;width:316px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{background-color:#222f3e;box-shadow:0 4px 8px #222f3e1a;color:#fff;font-size:20px;font-weight:400;line-height:28px;padding:12px;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{background-color:#2b3b4e;display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:10px 12px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{background-color:#222f3e;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#fff;cursor:pointer;display:flex;flex-direction:column;font-size:14px;gap:12px;padding:12px;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{box-shadow:0 4px 8px #222f3e1a}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{bottom:0;box-shadow:0 0 0 0 transparent #285ec7;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #285ec7;box-shadow:0 0 0 2px #285ec7!important}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#62430b;box-shadow:0 4px 8px #222f3e1a;position:relative}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{bottom:0;box-shadow:0 0 0 0 transparent #cea215;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #cea215}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date{display:flex;gap:12px;justify-content:space-between}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label{font-size:16px;line-height:24px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label{font-size:12px;font-weight:600;line-height:24px;padding:0}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author{align-items:center;display:flex;flex:1 0 0;gap:8px;height:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:18px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon{color:#fff;height:24px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-90a2677a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-018eae28]{position:sticky;top:100px}.message[data-v-018eae28]{padding-top:10px}.message__timestamp[data-v-018eae28]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-018eae28]{font-size:14px;word-break:break-word}.comment__actions[data-v-018eae28]{position:absolute;right:0}.card[data-v-3ad3a67b]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-3ad3a67b]{position:absolute;top:0;right:0}.content[data-v-3ad3a67b]{position:relative;height:100%}.empty-state[data-v-3ad3a67b]{margin-top:200px;text-align:center}.empty-state__text[data-v-3ad3a67b]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-3ad3a67b]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.close-button[data-v-4e4c74a2]{position:absolute;top:10px;right:10px;width:24px;height:24px}.zt-app-bar[data-v-2da37ea1]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-2da37ea1] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-2da37ea1]{height:auto!important}.click-edit[data-v-2da37ea1]{max-width:200px;width:100%}.click-edit__name[data-v-2da37ea1]{font-weight:400;cursor:text}.click-edit__show-text[data-v-2da37ea1],.click-edit__edit-field-wrapper[data-v-2da37ea1]{display:flex;align-items:center}.click-edit__name[data-v-2da37ea1]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-2da37ea1]{margin-top:-11px}.click-edit__edit-field[data-v-2da37ea1] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-2da37ea1]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-2da37ea1]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-2da37ea1]{max-width:600px}}.content[data-v-2da37ea1]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-2da37ea1]{width:0;transition:width .15s ease}.content__comments--show[data-v-2da37ea1]{width:380px}.footer[data-v-2da37ea1]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-2da37ea1],.footer__right-container[data-v-2da37ea1]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-2da37ea1],.footer__right-container[data-v-2da37ea1]{align-items:center;width:auto}}.footer__right-container[data-v-2da37ea1]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-2da37ea1]{flex-direction:row}}.footer__left-container[data-v-2da37ea1]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-2da37ea1]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-2da37ea1]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-2da37ea1]{width:auto}}.footer .dot-divider[data-v-2da37ea1]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-2da37ea1]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-2da37ea1]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-2da37ea1]{margin:0 24px}}.footer__status-wrapper[data-v-2da37ea1]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-2da37ea1]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-2da37ea1]{display:flex}}.footer__code-version-icon[data-v-2da37ea1]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-2da37ea1]{margin-right:12px}}.footer__queue-length-btn[data-v-2da37ea1]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-2da37ea1]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-2da37ea1]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-2da37ea1]{margin-right:10px}}.footer__queue-list[data-v-2da37ea1]{font-size:.625rem}.footer__queue-list-item--pending[data-v-2da37ea1]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-2da37ea1]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-2da37ea1]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-2da37ea1]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-2da37ea1]{flex-direction:row;height:34px}}.toggle-group[data-v-2da37ea1]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! + * ress.css • v2.0.4 + * MIT License + * github.com/filipelinhares/ress + */html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translate(100%)}.picker-transition-leave-to{transform:translate(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-enter-from{transform:translate(-100%)}.picker-reverse-transition-leave-to{transform:translate(100%)}.expand-transition-enter-active,.expand-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-enter-active,.expand-transition-leave-active{transition-property:height!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-property:width!important}.scale-transition-enter-active,.scale-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-leave-to{opacity:0}.scale-transition-leave-active{transition-duration:.1s!important}.scale-transition-enter-from{opacity:0;transform:scale(0)}.scale-transition-enter-active,.scale-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-leave-to{opacity:0}.scale-rotate-transition-leave-active{transition-duration:.1s!important}.scale-rotate-transition-enter-from{opacity:0;transform:scale(0) rotate(-45deg)}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-leave-to{opacity:0}.scale-rotate-reverse-transition-leave-active{transition-duration:.1s!important}.scale-rotate-reverse-transition-enter-from{opacity:0;transform:scale(0) rotate(45deg)}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-property:transform,opacity!important}.message-transition-enter-active,.message-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-enter-from,.message-transition-leave-to{opacity:0;transform:translateY(-15px)}.message-transition-leave-from,.message-transition-leave-active{position:absolute}.message-transition-enter-active,.message-transition-leave-active{transition-property:transform,opacity!important}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-enter-from,.slide-y-transition-leave-to{opacity:0;transform:translateY(-15px)}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-property:transform,opacity!important}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-enter-from,.slide-y-reverse-transition-leave-to{opacity:0;transform:translateY(15px)}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-enter-from,.scroll-y-transition-leave-to{opacity:0}.scroll-y-transition-enter-from{transform:translateY(-15px)}.scroll-y-transition-leave-to{transform:translateY(15px)}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-enter-from,.scroll-y-reverse-transition-leave-to{opacity:0}.scroll-y-reverse-transition-enter-from{transform:translateY(15px)}.scroll-y-reverse-transition-leave-to{transform:translateY(-15px)}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-enter-from,.scroll-x-transition-leave-to{opacity:0}.scroll-x-transition-enter-from{transform:translate(-15px)}.scroll-x-transition-leave-to{transform:translate(15px)}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-enter-from,.scroll-x-reverse-transition-leave-to{opacity:0}.scroll-x-reverse-transition-enter-from{transform:translate(15px)}.scroll-x-reverse-transition-leave-to{transform:translate(-15px)}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-enter-from,.slide-x-transition-leave-to{opacity:0;transform:translate(-15px)}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-property:transform,opacity!important}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-enter-from,.slide-x-reverse-transition-leave-to{opacity:0;transform:translate(15px)}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-enter-from,.fade-transition-leave-to{opacity:0!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-property:opacity!important}.fab-transition-enter-active,.fab-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-enter-from,.fab-transition-leave-to{transform:scale(0) rotate(-45deg)}.fab-transition-enter-active,.fab-transition-leave-active{transition-property:transform!important}.v-locale--is-rtl{direction:rtl}.v-locale--is-ltr{direction:ltr}.blockquote{padding:16px 0 16px 24px;font-size:18px;font-weight:300}html{font-family:Pathway Extreme,sans-serif;line-height:1.5;font-size:1rem;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0)}html.overflow-y-hidden{overflow-y:hidden!important}:root{--v-theme-overlay-multiplier: 1;--v-scrollbar-offset: 0px}@supports (-webkit-touch-callout: none){body{cursor:pointer}}@media only print{.hidden-print-only{display:none!important}}@media only screen{.hidden-screen-only{display:none!important}}@media (max-width: 599.98px){.hidden-xs{display:none!important}}@media (min-width: 600px) and (max-width: 959.98px){.hidden-sm{display:none!important}}@media (min-width: 960px) and (max-width: 1279.98px){.hidden-md{display:none!important}}@media (min-width: 1280px) and (max-width: 1919.98px){.hidden-lg{display:none!important}}@media (min-width: 1920px) and (max-width: 2559.98px){.hidden-xl{display:none!important}}@media (min-width: 2560px){.hidden-xxl{display:none!important}}@media (min-width: 600px){.hidden-sm-and-up{display:none!important}}@media (min-width: 960px){.hidden-md-and-up{display:none!important}}@media (min-width: 1280px){.hidden-lg-and-up{display:none!important}}@media (min-width: 1920px){.hidden-xl-and-up{display:none!important}}@media (max-width: 959.98px){.hidden-sm-and-down{display:none!important}}@media (max-width: 1279.98px){.hidden-md-and-down{display:none!important}}@media (max-width: 1919.98px){.hidden-lg-and-down{display:none!important}}@media (max-width: 2559.98px){.hidden-xl-and-down{display:none!important}}.elevation-24{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-23{box-shadow:0 11px 14px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 23px 36px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 44px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-22{box-shadow:0 10px 14px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 22px 35px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 42px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-21{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 21px 33px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 40px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-20{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 20px 31px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 38px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-19{box-shadow:0 9px 12px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 19px 29px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 36px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-18{box-shadow:0 9px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 18px 28px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 34px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-17{box-shadow:0 8px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 17px 26px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 32px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-16{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-15{box-shadow:0 8px 9px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 15px 22px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 28px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-14{box-shadow:0 7px 9px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 14px 21px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 26px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-13{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 13px 19px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 24px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-12{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 12px 17px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 22px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-11{box-shadow:0 6px 7px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 11px 15px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 20px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-10{box-shadow:0 6px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 10px 14px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 18px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-9{box-shadow:0 5px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 9px 12px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 16px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-8{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-7{box-shadow:0 4px 5px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 7px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 2px 16px 1px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-6{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-5{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 5px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 14px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-4{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-3{box-shadow:0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 8px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-2{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-1{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-0{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.d-sr-only,.d-sr-only-focusable:not(:focus){border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-scroll{overflow-y:scroll!important}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.float-none{float:none!important}.float-left{float:left!important}.float-right{float:right!important}.v-locale--is-rtl .float-end{float:left!important}.v-locale--is-rtl .float-start,.v-locale--is-ltr .float-end{float:right!important}.v-locale--is-ltr .float-start{float:left!important}.flex-fill,.flex-1-1{flex:1 1 auto!important}.flex-1-0{flex:1 0 auto!important}.flex-0-1{flex:0 1 auto!important}.flex-0-0{flex:0 0 auto!important}.flex-1-1-100{flex:1 1 100%!important}.flex-1-0-100{flex:1 0 100%!important}.flex-0-1-100{flex:0 1 100%!important}.flex-0-0-100{flex:0 0 100%!important}.flex-1-1-0{flex:1 1 0!important}.flex-1-0-0{flex:1 0 0!important}.flex-0-1-0{flex:0 1 0!important}.flex-0-0-0{flex:0 0 0!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-space-between{justify-content:space-between!important}.justify-space-around{justify-content:space-around!important}.justify-space-evenly{justify-content:space-evenly!important}.align-start{align-items:flex-start!important}.align-end{align-items:flex-end!important}.align-center{align-items:center!important}.align-baseline{align-items:baseline!important}.align-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-space-between{align-content:space-between!important}.align-content-space-around{align-content:space-around!important}.align-content-space-evenly{align-content:space-evenly!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-6{order:6!important}.order-7{order:7!important}.order-8{order:8!important}.order-9{order:9!important}.order-10{order:10!important}.order-11{order:11!important}.order-12{order:12!important}.order-last{order:13!important}.ga-0{gap:0px!important}.ga-1{gap:4px!important}.ga-2{gap:8px!important}.ga-3{gap:12px!important}.ga-4{gap:16px!important}.ga-5{gap:20px!important}.ga-6{gap:24px!important}.ga-7{gap:28px!important}.ga-8{gap:32px!important}.ga-9{gap:36px!important}.ga-10{gap:40px!important}.ga-11{gap:44px!important}.ga-12{gap:48px!important}.ga-13{gap:52px!important}.ga-14{gap:56px!important}.ga-15{gap:60px!important}.ga-16{gap:64px!important}.ga-auto{gap:auto!important}.gr-0{row-gap:0px!important}.gr-1{row-gap:4px!important}.gr-2{row-gap:8px!important}.gr-3{row-gap:12px!important}.gr-4{row-gap:16px!important}.gr-5{row-gap:20px!important}.gr-6{row-gap:24px!important}.gr-7{row-gap:28px!important}.gr-8{row-gap:32px!important}.gr-9{row-gap:36px!important}.gr-10{row-gap:40px!important}.gr-11{row-gap:44px!important}.gr-12{row-gap:48px!important}.gr-13{row-gap:52px!important}.gr-14{row-gap:56px!important}.gr-15{row-gap:60px!important}.gr-16{row-gap:64px!important}.gr-auto{row-gap:auto!important}.gc-0{column-gap:0px!important}.gc-1{column-gap:4px!important}.gc-2{column-gap:8px!important}.gc-3{column-gap:12px!important}.gc-4{column-gap:16px!important}.gc-5{column-gap:20px!important}.gc-6{column-gap:24px!important}.gc-7{column-gap:28px!important}.gc-8{column-gap:32px!important}.gc-9{column-gap:36px!important}.gc-10{column-gap:40px!important}.gc-11{column-gap:44px!important}.gc-12{column-gap:48px!important}.gc-13{column-gap:52px!important}.gc-14{column-gap:56px!important}.gc-15{column-gap:60px!important}.gc-16{column-gap:64px!important}.gc-auto{column-gap:auto!important}.ma-0{margin:0!important}.ma-1{margin:4px!important}.ma-2{margin:8px!important}.ma-3{margin:12px!important}.ma-4{margin:16px!important}.ma-5{margin:20px!important}.ma-6{margin:24px!important}.ma-7{margin:28px!important}.ma-8{margin:32px!important}.ma-9{margin:36px!important}.ma-10{margin:40px!important}.ma-11{margin:44px!important}.ma-12{margin:48px!important}.ma-13{margin:52px!important}.ma-14{margin:56px!important}.ma-15{margin:60px!important}.ma-16{margin:64px!important}.ma-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:4px!important;margin-left:4px!important}.mx-2{margin-right:8px!important;margin-left:8px!important}.mx-3{margin-right:12px!important;margin-left:12px!important}.mx-4{margin-right:16px!important;margin-left:16px!important}.mx-5{margin-right:20px!important;margin-left:20px!important}.mx-6{margin-right:24px!important;margin-left:24px!important}.mx-7{margin-right:28px!important;margin-left:28px!important}.mx-8{margin-right:32px!important;margin-left:32px!important}.mx-9{margin-right:36px!important;margin-left:36px!important}.mx-10{margin-right:40px!important;margin-left:40px!important}.mx-11{margin-right:44px!important;margin-left:44px!important}.mx-12{margin-right:48px!important;margin-left:48px!important}.mx-13{margin-right:52px!important;margin-left:52px!important}.mx-14{margin-right:56px!important;margin-left:56px!important}.mx-15{margin-right:60px!important;margin-left:60px!important}.mx-16{margin-right:64px!important;margin-left:64px!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:4px!important;margin-bottom:4px!important}.my-2{margin-top:8px!important;margin-bottom:8px!important}.my-3{margin-top:12px!important;margin-bottom:12px!important}.my-4{margin-top:16px!important;margin-bottom:16px!important}.my-5{margin-top:20px!important;margin-bottom:20px!important}.my-6{margin-top:24px!important;margin-bottom:24px!important}.my-7{margin-top:28px!important;margin-bottom:28px!important}.my-8{margin-top:32px!important;margin-bottom:32px!important}.my-9{margin-top:36px!important;margin-bottom:36px!important}.my-10{margin-top:40px!important;margin-bottom:40px!important}.my-11{margin-top:44px!important;margin-bottom:44px!important}.my-12{margin-top:48px!important;margin-bottom:48px!important}.my-13{margin-top:52px!important;margin-bottom:52px!important}.my-14{margin-top:56px!important;margin-bottom:56px!important}.my-15{margin-top:60px!important;margin-bottom:60px!important}.my-16{margin-top:64px!important;margin-bottom:64px!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:20px!important}.mt-6{margin-top:24px!important}.mt-7{margin-top:28px!important}.mt-8{margin-top:32px!important}.mt-9{margin-top:36px!important}.mt-10{margin-top:40px!important}.mt-11{margin-top:44px!important}.mt-12{margin-top:48px!important}.mt-13{margin-top:52px!important}.mt-14{margin-top:56px!important}.mt-15{margin-top:60px!important}.mt-16{margin-top:64px!important}.mt-auto{margin-top:auto!important}.mr-0{margin-right:0!important}.mr-1{margin-right:4px!important}.mr-2{margin-right:8px!important}.mr-3{margin-right:12px!important}.mr-4{margin-right:16px!important}.mr-5{margin-right:20px!important}.mr-6{margin-right:24px!important}.mr-7{margin-right:28px!important}.mr-8{margin-right:32px!important}.mr-9{margin-right:36px!important}.mr-10{margin-right:40px!important}.mr-11{margin-right:44px!important}.mr-12{margin-right:48px!important}.mr-13{margin-right:52px!important}.mr-14{margin-right:56px!important}.mr-15{margin-right:60px!important}.mr-16{margin-right:64px!important}.mr-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:20px!important}.mb-6{margin-bottom:24px!important}.mb-7{margin-bottom:28px!important}.mb-8{margin-bottom:32px!important}.mb-9{margin-bottom:36px!important}.mb-10{margin-bottom:40px!important}.mb-11{margin-bottom:44px!important}.mb-12{margin-bottom:48px!important}.mb-13{margin-bottom:52px!important}.mb-14{margin-bottom:56px!important}.mb-15{margin-bottom:60px!important}.mb-16{margin-bottom:64px!important}.mb-auto{margin-bottom:auto!important}.ml-0{margin-left:0!important}.ml-1{margin-left:4px!important}.ml-2{margin-left:8px!important}.ml-3{margin-left:12px!important}.ml-4{margin-left:16px!important}.ml-5{margin-left:20px!important}.ml-6{margin-left:24px!important}.ml-7{margin-left:28px!important}.ml-8{margin-left:32px!important}.ml-9{margin-left:36px!important}.ml-10{margin-left:40px!important}.ml-11{margin-left:44px!important}.ml-12{margin-left:48px!important}.ml-13{margin-left:52px!important}.ml-14{margin-left:56px!important}.ml-15{margin-left:60px!important}.ml-16{margin-left:64px!important}.ml-auto{margin-left:auto!important}.ms-0{margin-inline-start:0px!important}.ms-1{margin-inline-start:4px!important}.ms-2{margin-inline-start:8px!important}.ms-3{margin-inline-start:12px!important}.ms-4{margin-inline-start:16px!important}.ms-5{margin-inline-start:20px!important}.ms-6{margin-inline-start:24px!important}.ms-7{margin-inline-start:28px!important}.ms-8{margin-inline-start:32px!important}.ms-9{margin-inline-start:36px!important}.ms-10{margin-inline-start:40px!important}.ms-11{margin-inline-start:44px!important}.ms-12{margin-inline-start:48px!important}.ms-13{margin-inline-start:52px!important}.ms-14{margin-inline-start:56px!important}.ms-15{margin-inline-start:60px!important}.ms-16{margin-inline-start:64px!important}.ms-auto{margin-inline-start:auto!important}.me-0{margin-inline-end:0px!important}.me-1{margin-inline-end:4px!important}.me-2{margin-inline-end:8px!important}.me-3{margin-inline-end:12px!important}.me-4{margin-inline-end:16px!important}.me-5{margin-inline-end:20px!important}.me-6{margin-inline-end:24px!important}.me-7{margin-inline-end:28px!important}.me-8{margin-inline-end:32px!important}.me-9{margin-inline-end:36px!important}.me-10{margin-inline-end:40px!important}.me-11{margin-inline-end:44px!important}.me-12{margin-inline-end:48px!important}.me-13{margin-inline-end:52px!important}.me-14{margin-inline-end:56px!important}.me-15{margin-inline-end:60px!important}.me-16{margin-inline-end:64px!important}.me-auto{margin-inline-end:auto!important}.ma-n1{margin:-4px!important}.ma-n2{margin:-8px!important}.ma-n3{margin:-12px!important}.ma-n4{margin:-16px!important}.ma-n5{margin:-20px!important}.ma-n6{margin:-24px!important}.ma-n7{margin:-28px!important}.ma-n8{margin:-32px!important}.ma-n9{margin:-36px!important}.ma-n10{margin:-40px!important}.ma-n11{margin:-44px!important}.ma-n12{margin:-48px!important}.ma-n13{margin:-52px!important}.ma-n14{margin:-56px!important}.ma-n15{margin:-60px!important}.ma-n16{margin:-64px!important}.mx-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-n16{margin-right:-64px!important;margin-left:-64px!important}.my-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-n1{margin-top:-4px!important}.mt-n2{margin-top:-8px!important}.mt-n3{margin-top:-12px!important}.mt-n4{margin-top:-16px!important}.mt-n5{margin-top:-20px!important}.mt-n6{margin-top:-24px!important}.mt-n7{margin-top:-28px!important}.mt-n8{margin-top:-32px!important}.mt-n9{margin-top:-36px!important}.mt-n10{margin-top:-40px!important}.mt-n11{margin-top:-44px!important}.mt-n12{margin-top:-48px!important}.mt-n13{margin-top:-52px!important}.mt-n14{margin-top:-56px!important}.mt-n15{margin-top:-60px!important}.mt-n16{margin-top:-64px!important}.mr-n1{margin-right:-4px!important}.mr-n2{margin-right:-8px!important}.mr-n3{margin-right:-12px!important}.mr-n4{margin-right:-16px!important}.mr-n5{margin-right:-20px!important}.mr-n6{margin-right:-24px!important}.mr-n7{margin-right:-28px!important}.mr-n8{margin-right:-32px!important}.mr-n9{margin-right:-36px!important}.mr-n10{margin-right:-40px!important}.mr-n11{margin-right:-44px!important}.mr-n12{margin-right:-48px!important}.mr-n13{margin-right:-52px!important}.mr-n14{margin-right:-56px!important}.mr-n15{margin-right:-60px!important}.mr-n16{margin-right:-64px!important}.mb-n1{margin-bottom:-4px!important}.mb-n2{margin-bottom:-8px!important}.mb-n3{margin-bottom:-12px!important}.mb-n4{margin-bottom:-16px!important}.mb-n5{margin-bottom:-20px!important}.mb-n6{margin-bottom:-24px!important}.mb-n7{margin-bottom:-28px!important}.mb-n8{margin-bottom:-32px!important}.mb-n9{margin-bottom:-36px!important}.mb-n10{margin-bottom:-40px!important}.mb-n11{margin-bottom:-44px!important}.mb-n12{margin-bottom:-48px!important}.mb-n13{margin-bottom:-52px!important}.mb-n14{margin-bottom:-56px!important}.mb-n15{margin-bottom:-60px!important}.mb-n16{margin-bottom:-64px!important}.ml-n1{margin-left:-4px!important}.ml-n2{margin-left:-8px!important}.ml-n3{margin-left:-12px!important}.ml-n4{margin-left:-16px!important}.ml-n5{margin-left:-20px!important}.ml-n6{margin-left:-24px!important}.ml-n7{margin-left:-28px!important}.ml-n8{margin-left:-32px!important}.ml-n9{margin-left:-36px!important}.ml-n10{margin-left:-40px!important}.ml-n11{margin-left:-44px!important}.ml-n12{margin-left:-48px!important}.ml-n13{margin-left:-52px!important}.ml-n14{margin-left:-56px!important}.ml-n15{margin-left:-60px!important}.ml-n16{margin-left:-64px!important}.ms-n1{margin-inline-start:-4px!important}.ms-n2{margin-inline-start:-8px!important}.ms-n3{margin-inline-start:-12px!important}.ms-n4{margin-inline-start:-16px!important}.ms-n5{margin-inline-start:-20px!important}.ms-n6{margin-inline-start:-24px!important}.ms-n7{margin-inline-start:-28px!important}.ms-n8{margin-inline-start:-32px!important}.ms-n9{margin-inline-start:-36px!important}.ms-n10{margin-inline-start:-40px!important}.ms-n11{margin-inline-start:-44px!important}.ms-n12{margin-inline-start:-48px!important}.ms-n13{margin-inline-start:-52px!important}.ms-n14{margin-inline-start:-56px!important}.ms-n15{margin-inline-start:-60px!important}.ms-n16{margin-inline-start:-64px!important}.me-n1{margin-inline-end:-4px!important}.me-n2{margin-inline-end:-8px!important}.me-n3{margin-inline-end:-12px!important}.me-n4{margin-inline-end:-16px!important}.me-n5{margin-inline-end:-20px!important}.me-n6{margin-inline-end:-24px!important}.me-n7{margin-inline-end:-28px!important}.me-n8{margin-inline-end:-32px!important}.me-n9{margin-inline-end:-36px!important}.me-n10{margin-inline-end:-40px!important}.me-n11{margin-inline-end:-44px!important}.me-n12{margin-inline-end:-48px!important}.me-n13{margin-inline-end:-52px!important}.me-n14{margin-inline-end:-56px!important}.me-n15{margin-inline-end:-60px!important}.me-n16{margin-inline-end:-64px!important}.pa-0{padding:0!important}.pa-1{padding:4px!important}.pa-2{padding:8px!important}.pa-3{padding:12px!important}.pa-4{padding:16px!important}.pa-5{padding:20px!important}.pa-6{padding:24px!important}.pa-7{padding:28px!important}.pa-8{padding:32px!important}.pa-9{padding:36px!important}.pa-10{padding:40px!important}.pa-11{padding:44px!important}.pa-12{padding:48px!important}.pa-13{padding:52px!important}.pa-14{padding:56px!important}.pa-15{padding:60px!important}.pa-16{padding:64px!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:4px!important;padding-left:4px!important}.px-2{padding-right:8px!important;padding-left:8px!important}.px-3{padding-right:12px!important;padding-left:12px!important}.px-4{padding-right:16px!important;padding-left:16px!important}.px-5{padding-right:20px!important;padding-left:20px!important}.px-6{padding-right:24px!important;padding-left:24px!important}.px-7{padding-right:28px!important;padding-left:28px!important}.px-8{padding-right:32px!important;padding-left:32px!important}.px-9{padding-right:36px!important;padding-left:36px!important}.px-10{padding-right:40px!important;padding-left:40px!important}.px-11{padding-right:44px!important;padding-left:44px!important}.px-12{padding-right:48px!important;padding-left:48px!important}.px-13{padding-right:52px!important;padding-left:52px!important}.px-14{padding-right:56px!important;padding-left:56px!important}.px-15{padding-right:60px!important;padding-left:60px!important}.px-16{padding-right:64px!important;padding-left:64px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:4px!important;padding-bottom:4px!important}.py-2{padding-top:8px!important;padding-bottom:8px!important}.py-3{padding-top:12px!important;padding-bottom:12px!important}.py-4{padding-top:16px!important;padding-bottom:16px!important}.py-5{padding-top:20px!important;padding-bottom:20px!important}.py-6{padding-top:24px!important;padding-bottom:24px!important}.py-7{padding-top:28px!important;padding-bottom:28px!important}.py-8{padding-top:32px!important;padding-bottom:32px!important}.py-9{padding-top:36px!important;padding-bottom:36px!important}.py-10{padding-top:40px!important;padding-bottom:40px!important}.py-11{padding-top:44px!important;padding-bottom:44px!important}.py-12{padding-top:48px!important;padding-bottom:48px!important}.py-13{padding-top:52px!important;padding-bottom:52px!important}.py-14{padding-top:56px!important;padding-bottom:56px!important}.py-15{padding-top:60px!important;padding-bottom:60px!important}.py-16{padding-top:64px!important;padding-bottom:64px!important}.pt-0{padding-top:0!important}.pt-1{padding-top:4px!important}.pt-2{padding-top:8px!important}.pt-3{padding-top:12px!important}.pt-4{padding-top:16px!important}.pt-5{padding-top:20px!important}.pt-6{padding-top:24px!important}.pt-7{padding-top:28px!important}.pt-8{padding-top:32px!important}.pt-9{padding-top:36px!important}.pt-10{padding-top:40px!important}.pt-11{padding-top:44px!important}.pt-12{padding-top:48px!important}.pt-13{padding-top:52px!important}.pt-14{padding-top:56px!important}.pt-15{padding-top:60px!important}.pt-16{padding-top:64px!important}.pr-0{padding-right:0!important}.pr-1{padding-right:4px!important}.pr-2{padding-right:8px!important}.pr-3{padding-right:12px!important}.pr-4{padding-right:16px!important}.pr-5{padding-right:20px!important}.pr-6{padding-right:24px!important}.pr-7{padding-right:28px!important}.pr-8{padding-right:32px!important}.pr-9{padding-right:36px!important}.pr-10{padding-right:40px!important}.pr-11{padding-right:44px!important}.pr-12{padding-right:48px!important}.pr-13{padding-right:52px!important}.pr-14{padding-right:56px!important}.pr-15{padding-right:60px!important}.pr-16{padding-right:64px!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:4px!important}.pb-2{padding-bottom:8px!important}.pb-3{padding-bottom:12px!important}.pb-4{padding-bottom:16px!important}.pb-5{padding-bottom:20px!important}.pb-6{padding-bottom:24px!important}.pb-7{padding-bottom:28px!important}.pb-8{padding-bottom:32px!important}.pb-9{padding-bottom:36px!important}.pb-10{padding-bottom:40px!important}.pb-11{padding-bottom:44px!important}.pb-12{padding-bottom:48px!important}.pb-13{padding-bottom:52px!important}.pb-14{padding-bottom:56px!important}.pb-15{padding-bottom:60px!important}.pb-16{padding-bottom:64px!important}.pl-0{padding-left:0!important}.pl-1{padding-left:4px!important}.pl-2{padding-left:8px!important}.pl-3{padding-left:12px!important}.pl-4{padding-left:16px!important}.pl-5{padding-left:20px!important}.pl-6{padding-left:24px!important}.pl-7{padding-left:28px!important}.pl-8{padding-left:32px!important}.pl-9{padding-left:36px!important}.pl-10{padding-left:40px!important}.pl-11{padding-left:44px!important}.pl-12{padding-left:48px!important}.pl-13{padding-left:52px!important}.pl-14{padding-left:56px!important}.pl-15{padding-left:60px!important}.pl-16{padding-left:64px!important}.ps-0{padding-inline-start:0px!important}.ps-1{padding-inline-start:4px!important}.ps-2{padding-inline-start:8px!important}.ps-3{padding-inline-start:12px!important}.ps-4{padding-inline-start:16px!important}.ps-5{padding-inline-start:20px!important}.ps-6{padding-inline-start:24px!important}.ps-7{padding-inline-start:28px!important}.ps-8{padding-inline-start:32px!important}.ps-9{padding-inline-start:36px!important}.ps-10{padding-inline-start:40px!important}.ps-11{padding-inline-start:44px!important}.ps-12{padding-inline-start:48px!important}.ps-13{padding-inline-start:52px!important}.ps-14{padding-inline-start:56px!important}.ps-15{padding-inline-start:60px!important}.ps-16{padding-inline-start:64px!important}.pe-0{padding-inline-end:0px!important}.pe-1{padding-inline-end:4px!important}.pe-2{padding-inline-end:8px!important}.pe-3{padding-inline-end:12px!important}.pe-4{padding-inline-end:16px!important}.pe-5{padding-inline-end:20px!important}.pe-6{padding-inline-end:24px!important}.pe-7{padding-inline-end:28px!important}.pe-8{padding-inline-end:32px!important}.pe-9{padding-inline-end:36px!important}.pe-10{padding-inline-end:40px!important}.pe-11{padding-inline-end:44px!important}.pe-12{padding-inline-end:48px!important}.pe-13{padding-inline-end:52px!important}.pe-14{padding-inline-end:56px!important}.pe-15{padding-inline-end:60px!important}.pe-16{padding-inline-end:64px!important}.rounded-0{border-radius:0!important}.rounded-sm{border-radius:2px!important}.rounded{border-radius:4px!important}.rounded-lg{border-radius:8px!important}.rounded-xl{border-radius:24px!important}.rounded-pill{border-radius:9999px!important}.rounded-circle{border-radius:50%!important}.rounded-shaped{border-radius:24px 0!important}.rounded-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px!important;border-top-right-radius:2px!important}.rounded-t{border-top-left-radius:4px!important;border-top-right-radius:4px!important}.rounded-t-lg{border-top-left-radius:8px!important;border-top-right-radius:8px!important}.rounded-t-xl{border-top-left-radius:24px!important;border-top-right-radius:24px!important}.rounded-t-pill{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-t-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-t-shaped{border-top-left-radius:24px!important;border-top-right-radius:0!important}.v-locale--is-ltr .rounded-e-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-e-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-e-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-e{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-e{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-e-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-e-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-e-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-e-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-e-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-e-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-e-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-e-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-e-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.rounded-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-sm{border-bottom-left-radius:2px!important;border-bottom-right-radius:2px!important}.rounded-b{border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important}.rounded-b-lg{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}.rounded-b-xl{border-bottom-left-radius:24px!important;border-bottom-right-radius:24px!important}.rounded-b-pill{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-b-circle{border-bottom-left-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-b-shaped{border-bottom-left-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-s-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-s{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-s{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-s-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-s-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-s-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-s-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-s-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-s-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-s-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-s-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-s-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-ts-0{border-top-left-radius:0!important}.v-locale--is-rtl .rounded-ts-0{border-top-right-radius:0!important}.v-locale--is-ltr .rounded-ts-sm{border-top-left-radius:2px!important}.v-locale--is-rtl .rounded-ts-sm{border-top-right-radius:2px!important}.v-locale--is-ltr .rounded-ts{border-top-left-radius:4px!important}.v-locale--is-rtl .rounded-ts{border-top-right-radius:4px!important}.v-locale--is-ltr .rounded-ts-lg{border-top-left-radius:8px!important}.v-locale--is-rtl .rounded-ts-lg{border-top-right-radius:8px!important}.v-locale--is-ltr .rounded-ts-xl{border-top-left-radius:24px!important}.v-locale--is-rtl .rounded-ts-xl{border-top-right-radius:24px!important}.v-locale--is-ltr .rounded-ts-pill{border-top-left-radius:9999px!important}.v-locale--is-rtl .rounded-ts-pill{border-top-right-radius:9999px!important}.v-locale--is-ltr .rounded-ts-circle{border-top-left-radius:50%!important}.v-locale--is-rtl .rounded-ts-circle{border-top-right-radius:50%!important}.v-locale--is-ltr .rounded-ts-shaped{border-top-left-radius:24px 0!important}.v-locale--is-rtl .rounded-ts-shaped{border-top-right-radius:24px 0!important}.v-locale--is-ltr .rounded-te-0{border-top-right-radius:0!important}.v-locale--is-rtl .rounded-te-0{border-top-left-radius:0!important}.v-locale--is-ltr .rounded-te-sm{border-top-right-radius:2px!important}.v-locale--is-rtl .rounded-te-sm{border-top-left-radius:2px!important}.v-locale--is-ltr .rounded-te{border-top-right-radius:4px!important}.v-locale--is-rtl .rounded-te{border-top-left-radius:4px!important}.v-locale--is-ltr .rounded-te-lg{border-top-right-radius:8px!important}.v-locale--is-rtl .rounded-te-lg{border-top-left-radius:8px!important}.v-locale--is-ltr .rounded-te-xl{border-top-right-radius:24px!important}.v-locale--is-rtl .rounded-te-xl{border-top-left-radius:24px!important}.v-locale--is-ltr .rounded-te-pill{border-top-right-radius:9999px!important}.v-locale--is-rtl .rounded-te-pill{border-top-left-radius:9999px!important}.v-locale--is-ltr .rounded-te-circle{border-top-right-radius:50%!important}.v-locale--is-rtl .rounded-te-circle{border-top-left-radius:50%!important}.v-locale--is-ltr .rounded-te-shaped{border-top-right-radius:24px 0!important}.v-locale--is-rtl .rounded-te-shaped{border-top-left-radius:24px 0!important}.v-locale--is-ltr .rounded-be-0{border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-be-0{border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-be-sm{border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-be-sm{border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-be{border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-be{border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-be-lg{border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-be-lg{border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-be-xl{border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-be-xl{border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-be-pill{border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-be-pill{border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-be-circle{border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-be-circle{border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-be-shaped{border-bottom-right-radius:24px 0!important}.v-locale--is-rtl .rounded-be-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-ltr .rounded-bs-0{border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-bs-0{border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-bs-sm{border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-bs-sm{border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-bs{border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-bs{border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-bs-lg{border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-bs-lg{border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-bs-xl{border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-bs-xl{border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-bs-pill{border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-bs-pill{border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-bs-circle{border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-bs-circle{border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-bs-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-rtl .rounded-bs-shaped{border-bottom-right-radius:24px 0!important}.border-0{border-width:0!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border,.border-thin{border-width:thin!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-sm{border-width:1px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-md{border-width:2px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-lg{border-width:4px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-xl{border-width:8px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-opacity-0{--v-border-opacity: 0 !important}.border-opacity{--v-border-opacity: .12 !important}.border-opacity-25{--v-border-opacity: .25 !important}.border-opacity-50{--v-border-opacity: .5 !important}.border-opacity-75{--v-border-opacity: .75 !important}.border-opacity-100{--v-border-opacity: 1 !important}.border-t-0{border-block-start-width:0!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t,.border-t-thin{border-block-start-width:thin!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-sm{border-block-start-width:1px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-md{border-block-start-width:2px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-lg{border-block-start-width:4px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-xl{border-block-start-width:8px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-0{border-inline-end-width:0!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e,.border-e-thin{border-inline-end-width:thin!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-sm{border-inline-end-width:1px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-md{border-inline-end-width:2px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-lg{border-inline-end-width:4px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-xl{border-inline-end-width:8px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-0{border-block-end-width:0!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b,.border-b-thin{border-block-end-width:thin!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-sm{border-block-end-width:1px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-md{border-block-end-width:2px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-lg{border-block-end-width:4px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-xl{border-block-end-width:8px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-0{border-inline-start-width:0!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s,.border-s-thin{border-inline-start-width:thin!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-sm{border-inline-start-width:1px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-md{border-inline-start-width:2px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-lg{border-inline-start-width:4px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-xl{border-inline-start-width:8px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-none{border-style:none!important}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-start{text-align:start!important}.text-end{text-align:end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-none{text-decoration:none!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-underline{text-decoration:underline!important}.text-wrap{white-space:normal!important}.text-no-wrap{white-space:nowrap!important}.text-pre{white-space:pre!important}.text-pre-line{white-space:pre-line!important}.text-pre-wrap{white-space:pre-wrap!important}.text-break{overflow-wrap:break-word!important;word-break:break-word!important}.opacity-hover{opacity:var(--v-hover-opacity)!important}.opacity-focus{opacity:var(--v-focus-opacity)!important}.opacity-selected{opacity:var(--v-selected-opacity)!important}.opacity-activated{opacity:var(--v-activated-opacity)!important}.opacity-pressed{opacity:var(--v-pressed-opacity)!important}.opacity-dragged{opacity:var(--v-dragged-opacity)!important}.opacity-0{opacity:0!important}.opacity-10{opacity:.1!important}.opacity-20{opacity:.2!important}.opacity-30{opacity:.3!important}.opacity-40{opacity:.4!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-80{opacity:.8!important}.opacity-90{opacity:.9!important}.opacity-100{opacity:1!important}.text-high-emphasis{color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))!important}.text-medium-emphasis{color:rgba(var(--v-theme-on-background),var(--v-medium-emphasis-opacity))!important}.text-disabled{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity))!important}.text-truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.text-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-none{text-transform:none!important}.text-capitalize{text-transform:capitalize!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.font-weight-thin{font-weight:100!important}.font-weight-light{font-weight:300!important}.font-weight-regular{font-weight:400!important}.font-weight-medium{font-weight:500!important}.font-weight-bold{font-weight:700!important}.font-weight-black{font-weight:900!important}.font-italic{font-style:italic!important}.text-mono{font-family:monospace!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.right-0{right:0!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.cursor-auto{cursor:auto!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-help{cursor:help!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-progress{cursor:progress!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-none{cursor:none!important}.fill-height{height:100%!important}.h-auto{height:auto!important}.h-screen{height:100vh!important}.h-0{height:0!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-screen{height:100dvh!important}.w-auto{width:auto!important}.w-0{width:0!important}.w-25{width:25%!important}.w-33{width:33%!important}.w-50{width:50%!important}.w-66{width:66%!important}.w-75{width:75%!important}.w-100{width:100%!important}@media (min-width: 600px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.float-sm-none{float:none!important}.float-sm-left{float:left!important}.float-sm-right{float:right!important}.v-locale--is-rtl .float-sm-end{float:left!important}.v-locale--is-rtl .float-sm-start,.v-locale--is-ltr .float-sm-end{float:right!important}.v-locale--is-ltr .float-sm-start{float:left!important}.flex-sm-fill,.flex-sm-1-1{flex:1 1 auto!important}.flex-sm-1-0{flex:1 0 auto!important}.flex-sm-0-1{flex:0 1 auto!important}.flex-sm-0-0{flex:0 0 auto!important}.flex-sm-1-1-100{flex:1 1 100%!important}.flex-sm-1-0-100{flex:1 0 100%!important}.flex-sm-0-1-100{flex:0 1 100%!important}.flex-sm-0-0-100{flex:0 0 100%!important}.flex-sm-1-1-0{flex:1 1 0!important}.flex-sm-1-0-0{flex:1 0 0!important}.flex-sm-0-1-0{flex:0 1 0!important}.flex-sm-0-0-0{flex:0 0 0!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-sm-start{justify-content:flex-start!important}.justify-sm-end{justify-content:flex-end!important}.justify-sm-center{justify-content:center!important}.justify-sm-space-between{justify-content:space-between!important}.justify-sm-space-around{justify-content:space-around!important}.justify-sm-space-evenly{justify-content:space-evenly!important}.align-sm-start{align-items:flex-start!important}.align-sm-end{align-items:flex-end!important}.align-sm-center{align-items:center!important}.align-sm-baseline{align-items:baseline!important}.align-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-space-between{align-content:space-between!important}.align-content-sm-space-around{align-content:space-around!important}.align-content-sm-space-evenly{align-content:space-evenly!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-6{order:6!important}.order-sm-7{order:7!important}.order-sm-8{order:8!important}.order-sm-9{order:9!important}.order-sm-10{order:10!important}.order-sm-11{order:11!important}.order-sm-12{order:12!important}.order-sm-last{order:13!important}.ga-sm-0{gap:0px!important}.ga-sm-1{gap:4px!important}.ga-sm-2{gap:8px!important}.ga-sm-3{gap:12px!important}.ga-sm-4{gap:16px!important}.ga-sm-5{gap:20px!important}.ga-sm-6{gap:24px!important}.ga-sm-7{gap:28px!important}.ga-sm-8{gap:32px!important}.ga-sm-9{gap:36px!important}.ga-sm-10{gap:40px!important}.ga-sm-11{gap:44px!important}.ga-sm-12{gap:48px!important}.ga-sm-13{gap:52px!important}.ga-sm-14{gap:56px!important}.ga-sm-15{gap:60px!important}.ga-sm-16{gap:64px!important}.ga-sm-auto{gap:auto!important}.gr-sm-0{row-gap:0px!important}.gr-sm-1{row-gap:4px!important}.gr-sm-2{row-gap:8px!important}.gr-sm-3{row-gap:12px!important}.gr-sm-4{row-gap:16px!important}.gr-sm-5{row-gap:20px!important}.gr-sm-6{row-gap:24px!important}.gr-sm-7{row-gap:28px!important}.gr-sm-8{row-gap:32px!important}.gr-sm-9{row-gap:36px!important}.gr-sm-10{row-gap:40px!important}.gr-sm-11{row-gap:44px!important}.gr-sm-12{row-gap:48px!important}.gr-sm-13{row-gap:52px!important}.gr-sm-14{row-gap:56px!important}.gr-sm-15{row-gap:60px!important}.gr-sm-16{row-gap:64px!important}.gr-sm-auto{row-gap:auto!important}.gc-sm-0{column-gap:0px!important}.gc-sm-1{column-gap:4px!important}.gc-sm-2{column-gap:8px!important}.gc-sm-3{column-gap:12px!important}.gc-sm-4{column-gap:16px!important}.gc-sm-5{column-gap:20px!important}.gc-sm-6{column-gap:24px!important}.gc-sm-7{column-gap:28px!important}.gc-sm-8{column-gap:32px!important}.gc-sm-9{column-gap:36px!important}.gc-sm-10{column-gap:40px!important}.gc-sm-11{column-gap:44px!important}.gc-sm-12{column-gap:48px!important}.gc-sm-13{column-gap:52px!important}.gc-sm-14{column-gap:56px!important}.gc-sm-15{column-gap:60px!important}.gc-sm-16{column-gap:64px!important}.gc-sm-auto{column-gap:auto!important}.ma-sm-0{margin:0!important}.ma-sm-1{margin:4px!important}.ma-sm-2{margin:8px!important}.ma-sm-3{margin:12px!important}.ma-sm-4{margin:16px!important}.ma-sm-5{margin:20px!important}.ma-sm-6{margin:24px!important}.ma-sm-7{margin:28px!important}.ma-sm-8{margin:32px!important}.ma-sm-9{margin:36px!important}.ma-sm-10{margin:40px!important}.ma-sm-11{margin:44px!important}.ma-sm-12{margin:48px!important}.ma-sm-13{margin:52px!important}.ma-sm-14{margin:56px!important}.ma-sm-15{margin:60px!important}.ma-sm-16{margin:64px!important}.ma-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:4px!important;margin-left:4px!important}.mx-sm-2{margin-right:8px!important;margin-left:8px!important}.mx-sm-3{margin-right:12px!important;margin-left:12px!important}.mx-sm-4{margin-right:16px!important;margin-left:16px!important}.mx-sm-5{margin-right:20px!important;margin-left:20px!important}.mx-sm-6{margin-right:24px!important;margin-left:24px!important}.mx-sm-7{margin-right:28px!important;margin-left:28px!important}.mx-sm-8{margin-right:32px!important;margin-left:32px!important}.mx-sm-9{margin-right:36px!important;margin-left:36px!important}.mx-sm-10{margin-right:40px!important;margin-left:40px!important}.mx-sm-11{margin-right:44px!important;margin-left:44px!important}.mx-sm-12{margin-right:48px!important;margin-left:48px!important}.mx-sm-13{margin-right:52px!important;margin-left:52px!important}.mx-sm-14{margin-right:56px!important;margin-left:56px!important}.mx-sm-15{margin-right:60px!important;margin-left:60px!important}.mx-sm-16{margin-right:64px!important;margin-left:64px!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:4px!important;margin-bottom:4px!important}.my-sm-2{margin-top:8px!important;margin-bottom:8px!important}.my-sm-3{margin-top:12px!important;margin-bottom:12px!important}.my-sm-4{margin-top:16px!important;margin-bottom:16px!important}.my-sm-5{margin-top:20px!important;margin-bottom:20px!important}.my-sm-6{margin-top:24px!important;margin-bottom:24px!important}.my-sm-7{margin-top:28px!important;margin-bottom:28px!important}.my-sm-8{margin-top:32px!important;margin-bottom:32px!important}.my-sm-9{margin-top:36px!important;margin-bottom:36px!important}.my-sm-10{margin-top:40px!important;margin-bottom:40px!important}.my-sm-11{margin-top:44px!important;margin-bottom:44px!important}.my-sm-12{margin-top:48px!important;margin-bottom:48px!important}.my-sm-13{margin-top:52px!important;margin-bottom:52px!important}.my-sm-14{margin-top:56px!important;margin-bottom:56px!important}.my-sm-15{margin-top:60px!important;margin-bottom:60px!important}.my-sm-16{margin-top:64px!important;margin-bottom:64px!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:4px!important}.mt-sm-2{margin-top:8px!important}.mt-sm-3{margin-top:12px!important}.mt-sm-4{margin-top:16px!important}.mt-sm-5{margin-top:20px!important}.mt-sm-6{margin-top:24px!important}.mt-sm-7{margin-top:28px!important}.mt-sm-8{margin-top:32px!important}.mt-sm-9{margin-top:36px!important}.mt-sm-10{margin-top:40px!important}.mt-sm-11{margin-top:44px!important}.mt-sm-12{margin-top:48px!important}.mt-sm-13{margin-top:52px!important}.mt-sm-14{margin-top:56px!important}.mt-sm-15{margin-top:60px!important}.mt-sm-16{margin-top:64px!important}.mt-sm-auto{margin-top:auto!important}.mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:4px!important}.mr-sm-2{margin-right:8px!important}.mr-sm-3{margin-right:12px!important}.mr-sm-4{margin-right:16px!important}.mr-sm-5{margin-right:20px!important}.mr-sm-6{margin-right:24px!important}.mr-sm-7{margin-right:28px!important}.mr-sm-8{margin-right:32px!important}.mr-sm-9{margin-right:36px!important}.mr-sm-10{margin-right:40px!important}.mr-sm-11{margin-right:44px!important}.mr-sm-12{margin-right:48px!important}.mr-sm-13{margin-right:52px!important}.mr-sm-14{margin-right:56px!important}.mr-sm-15{margin-right:60px!important}.mr-sm-16{margin-right:64px!important}.mr-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:4px!important}.mb-sm-2{margin-bottom:8px!important}.mb-sm-3{margin-bottom:12px!important}.mb-sm-4{margin-bottom:16px!important}.mb-sm-5{margin-bottom:20px!important}.mb-sm-6{margin-bottom:24px!important}.mb-sm-7{margin-bottom:28px!important}.mb-sm-8{margin-bottom:32px!important}.mb-sm-9{margin-bottom:36px!important}.mb-sm-10{margin-bottom:40px!important}.mb-sm-11{margin-bottom:44px!important}.mb-sm-12{margin-bottom:48px!important}.mb-sm-13{margin-bottom:52px!important}.mb-sm-14{margin-bottom:56px!important}.mb-sm-15{margin-bottom:60px!important}.mb-sm-16{margin-bottom:64px!important}.mb-sm-auto{margin-bottom:auto!important}.ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:4px!important}.ml-sm-2{margin-left:8px!important}.ml-sm-3{margin-left:12px!important}.ml-sm-4{margin-left:16px!important}.ml-sm-5{margin-left:20px!important}.ml-sm-6{margin-left:24px!important}.ml-sm-7{margin-left:28px!important}.ml-sm-8{margin-left:32px!important}.ml-sm-9{margin-left:36px!important}.ml-sm-10{margin-left:40px!important}.ml-sm-11{margin-left:44px!important}.ml-sm-12{margin-left:48px!important}.ml-sm-13{margin-left:52px!important}.ml-sm-14{margin-left:56px!important}.ml-sm-15{margin-left:60px!important}.ml-sm-16{margin-left:64px!important}.ml-sm-auto{margin-left:auto!important}.ms-sm-0{margin-inline-start:0px!important}.ms-sm-1{margin-inline-start:4px!important}.ms-sm-2{margin-inline-start:8px!important}.ms-sm-3{margin-inline-start:12px!important}.ms-sm-4{margin-inline-start:16px!important}.ms-sm-5{margin-inline-start:20px!important}.ms-sm-6{margin-inline-start:24px!important}.ms-sm-7{margin-inline-start:28px!important}.ms-sm-8{margin-inline-start:32px!important}.ms-sm-9{margin-inline-start:36px!important}.ms-sm-10{margin-inline-start:40px!important}.ms-sm-11{margin-inline-start:44px!important}.ms-sm-12{margin-inline-start:48px!important}.ms-sm-13{margin-inline-start:52px!important}.ms-sm-14{margin-inline-start:56px!important}.ms-sm-15{margin-inline-start:60px!important}.ms-sm-16{margin-inline-start:64px!important}.ms-sm-auto{margin-inline-start:auto!important}.me-sm-0{margin-inline-end:0px!important}.me-sm-1{margin-inline-end:4px!important}.me-sm-2{margin-inline-end:8px!important}.me-sm-3{margin-inline-end:12px!important}.me-sm-4{margin-inline-end:16px!important}.me-sm-5{margin-inline-end:20px!important}.me-sm-6{margin-inline-end:24px!important}.me-sm-7{margin-inline-end:28px!important}.me-sm-8{margin-inline-end:32px!important}.me-sm-9{margin-inline-end:36px!important}.me-sm-10{margin-inline-end:40px!important}.me-sm-11{margin-inline-end:44px!important}.me-sm-12{margin-inline-end:48px!important}.me-sm-13{margin-inline-end:52px!important}.me-sm-14{margin-inline-end:56px!important}.me-sm-15{margin-inline-end:60px!important}.me-sm-16{margin-inline-end:64px!important}.me-sm-auto{margin-inline-end:auto!important}.ma-sm-n1{margin:-4px!important}.ma-sm-n2{margin:-8px!important}.ma-sm-n3{margin:-12px!important}.ma-sm-n4{margin:-16px!important}.ma-sm-n5{margin:-20px!important}.ma-sm-n6{margin:-24px!important}.ma-sm-n7{margin:-28px!important}.ma-sm-n8{margin:-32px!important}.ma-sm-n9{margin:-36px!important}.ma-sm-n10{margin:-40px!important}.ma-sm-n11{margin:-44px!important}.ma-sm-n12{margin:-48px!important}.ma-sm-n13{margin:-52px!important}.ma-sm-n14{margin:-56px!important}.ma-sm-n15{margin:-60px!important}.ma-sm-n16{margin:-64px!important}.mx-sm-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-sm-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-sm-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-sm-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-sm-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-sm-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-sm-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-sm-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-sm-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-sm-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-sm-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-sm-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-sm-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-sm-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-sm-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-sm-n16{margin-right:-64px!important;margin-left:-64px!important}.my-sm-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-sm-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-sm-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-sm-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-sm-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-sm-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-sm-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-sm-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-sm-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-sm-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-sm-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-sm-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-sm-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-sm-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-sm-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-sm-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-sm-n1{margin-top:-4px!important}.mt-sm-n2{margin-top:-8px!important}.mt-sm-n3{margin-top:-12px!important}.mt-sm-n4{margin-top:-16px!important}.mt-sm-n5{margin-top:-20px!important}.mt-sm-n6{margin-top:-24px!important}.mt-sm-n7{margin-top:-28px!important}.mt-sm-n8{margin-top:-32px!important}.mt-sm-n9{margin-top:-36px!important}.mt-sm-n10{margin-top:-40px!important}.mt-sm-n11{margin-top:-44px!important}.mt-sm-n12{margin-top:-48px!important}.mt-sm-n13{margin-top:-52px!important}.mt-sm-n14{margin-top:-56px!important}.mt-sm-n15{margin-top:-60px!important}.mt-sm-n16{margin-top:-64px!important}.mr-sm-n1{margin-right:-4px!important}.mr-sm-n2{margin-right:-8px!important}.mr-sm-n3{margin-right:-12px!important}.mr-sm-n4{margin-right:-16px!important}.mr-sm-n5{margin-right:-20px!important}.mr-sm-n6{margin-right:-24px!important}.mr-sm-n7{margin-right:-28px!important}.mr-sm-n8{margin-right:-32px!important}.mr-sm-n9{margin-right:-36px!important}.mr-sm-n10{margin-right:-40px!important}.mr-sm-n11{margin-right:-44px!important}.mr-sm-n12{margin-right:-48px!important}.mr-sm-n13{margin-right:-52px!important}.mr-sm-n14{margin-right:-56px!important}.mr-sm-n15{margin-right:-60px!important}.mr-sm-n16{margin-right:-64px!important}.mb-sm-n1{margin-bottom:-4px!important}.mb-sm-n2{margin-bottom:-8px!important}.mb-sm-n3{margin-bottom:-12px!important}.mb-sm-n4{margin-bottom:-16px!important}.mb-sm-n5{margin-bottom:-20px!important}.mb-sm-n6{margin-bottom:-24px!important}.mb-sm-n7{margin-bottom:-28px!important}.mb-sm-n8{margin-bottom:-32px!important}.mb-sm-n9{margin-bottom:-36px!important}.mb-sm-n10{margin-bottom:-40px!important}.mb-sm-n11{margin-bottom:-44px!important}.mb-sm-n12{margin-bottom:-48px!important}.mb-sm-n13{margin-bottom:-52px!important}.mb-sm-n14{margin-bottom:-56px!important}.mb-sm-n15{margin-bottom:-60px!important}.mb-sm-n16{margin-bottom:-64px!important}.ml-sm-n1{margin-left:-4px!important}.ml-sm-n2{margin-left:-8px!important}.ml-sm-n3{margin-left:-12px!important}.ml-sm-n4{margin-left:-16px!important}.ml-sm-n5{margin-left:-20px!important}.ml-sm-n6{margin-left:-24px!important}.ml-sm-n7{margin-left:-28px!important}.ml-sm-n8{margin-left:-32px!important}.ml-sm-n9{margin-left:-36px!important}.ml-sm-n10{margin-left:-40px!important}.ml-sm-n11{margin-left:-44px!important}.ml-sm-n12{margin-left:-48px!important}.ml-sm-n13{margin-left:-52px!important}.ml-sm-n14{margin-left:-56px!important}.ml-sm-n15{margin-left:-60px!important}.ml-sm-n16{margin-left:-64px!important}.ms-sm-n1{margin-inline-start:-4px!important}.ms-sm-n2{margin-inline-start:-8px!important}.ms-sm-n3{margin-inline-start:-12px!important}.ms-sm-n4{margin-inline-start:-16px!important}.ms-sm-n5{margin-inline-start:-20px!important}.ms-sm-n6{margin-inline-start:-24px!important}.ms-sm-n7{margin-inline-start:-28px!important}.ms-sm-n8{margin-inline-start:-32px!important}.ms-sm-n9{margin-inline-start:-36px!important}.ms-sm-n10{margin-inline-start:-40px!important}.ms-sm-n11{margin-inline-start:-44px!important}.ms-sm-n12{margin-inline-start:-48px!important}.ms-sm-n13{margin-inline-start:-52px!important}.ms-sm-n14{margin-inline-start:-56px!important}.ms-sm-n15{margin-inline-start:-60px!important}.ms-sm-n16{margin-inline-start:-64px!important}.me-sm-n1{margin-inline-end:-4px!important}.me-sm-n2{margin-inline-end:-8px!important}.me-sm-n3{margin-inline-end:-12px!important}.me-sm-n4{margin-inline-end:-16px!important}.me-sm-n5{margin-inline-end:-20px!important}.me-sm-n6{margin-inline-end:-24px!important}.me-sm-n7{margin-inline-end:-28px!important}.me-sm-n8{margin-inline-end:-32px!important}.me-sm-n9{margin-inline-end:-36px!important}.me-sm-n10{margin-inline-end:-40px!important}.me-sm-n11{margin-inline-end:-44px!important}.me-sm-n12{margin-inline-end:-48px!important}.me-sm-n13{margin-inline-end:-52px!important}.me-sm-n14{margin-inline-end:-56px!important}.me-sm-n15{margin-inline-end:-60px!important}.me-sm-n16{margin-inline-end:-64px!important}.pa-sm-0{padding:0!important}.pa-sm-1{padding:4px!important}.pa-sm-2{padding:8px!important}.pa-sm-3{padding:12px!important}.pa-sm-4{padding:16px!important}.pa-sm-5{padding:20px!important}.pa-sm-6{padding:24px!important}.pa-sm-7{padding:28px!important}.pa-sm-8{padding:32px!important}.pa-sm-9{padding:36px!important}.pa-sm-10{padding:40px!important}.pa-sm-11{padding:44px!important}.pa-sm-12{padding:48px!important}.pa-sm-13{padding:52px!important}.pa-sm-14{padding:56px!important}.pa-sm-15{padding:60px!important}.pa-sm-16{padding:64px!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:4px!important;padding-left:4px!important}.px-sm-2{padding-right:8px!important;padding-left:8px!important}.px-sm-3{padding-right:12px!important;padding-left:12px!important}.px-sm-4{padding-right:16px!important;padding-left:16px!important}.px-sm-5{padding-right:20px!important;padding-left:20px!important}.px-sm-6{padding-right:24px!important;padding-left:24px!important}.px-sm-7{padding-right:28px!important;padding-left:28px!important}.px-sm-8{padding-right:32px!important;padding-left:32px!important}.px-sm-9{padding-right:36px!important;padding-left:36px!important}.px-sm-10{padding-right:40px!important;padding-left:40px!important}.px-sm-11{padding-right:44px!important;padding-left:44px!important}.px-sm-12{padding-right:48px!important;padding-left:48px!important}.px-sm-13{padding-right:52px!important;padding-left:52px!important}.px-sm-14{padding-right:56px!important;padding-left:56px!important}.px-sm-15{padding-right:60px!important;padding-left:60px!important}.px-sm-16{padding-right:64px!important;padding-left:64px!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:4px!important;padding-bottom:4px!important}.py-sm-2{padding-top:8px!important;padding-bottom:8px!important}.py-sm-3{padding-top:12px!important;padding-bottom:12px!important}.py-sm-4{padding-top:16px!important;padding-bottom:16px!important}.py-sm-5{padding-top:20px!important;padding-bottom:20px!important}.py-sm-6{padding-top:24px!important;padding-bottom:24px!important}.py-sm-7{padding-top:28px!important;padding-bottom:28px!important}.py-sm-8{padding-top:32px!important;padding-bottom:32px!important}.py-sm-9{padding-top:36px!important;padding-bottom:36px!important}.py-sm-10{padding-top:40px!important;padding-bottom:40px!important}.py-sm-11{padding-top:44px!important;padding-bottom:44px!important}.py-sm-12{padding-top:48px!important;padding-bottom:48px!important}.py-sm-13{padding-top:52px!important;padding-bottom:52px!important}.py-sm-14{padding-top:56px!important;padding-bottom:56px!important}.py-sm-15{padding-top:60px!important;padding-bottom:60px!important}.py-sm-16{padding-top:64px!important;padding-bottom:64px!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:4px!important}.pt-sm-2{padding-top:8px!important}.pt-sm-3{padding-top:12px!important}.pt-sm-4{padding-top:16px!important}.pt-sm-5{padding-top:20px!important}.pt-sm-6{padding-top:24px!important}.pt-sm-7{padding-top:28px!important}.pt-sm-8{padding-top:32px!important}.pt-sm-9{padding-top:36px!important}.pt-sm-10{padding-top:40px!important}.pt-sm-11{padding-top:44px!important}.pt-sm-12{padding-top:48px!important}.pt-sm-13{padding-top:52px!important}.pt-sm-14{padding-top:56px!important}.pt-sm-15{padding-top:60px!important}.pt-sm-16{padding-top:64px!important}.pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:4px!important}.pr-sm-2{padding-right:8px!important}.pr-sm-3{padding-right:12px!important}.pr-sm-4{padding-right:16px!important}.pr-sm-5{padding-right:20px!important}.pr-sm-6{padding-right:24px!important}.pr-sm-7{padding-right:28px!important}.pr-sm-8{padding-right:32px!important}.pr-sm-9{padding-right:36px!important}.pr-sm-10{padding-right:40px!important}.pr-sm-11{padding-right:44px!important}.pr-sm-12{padding-right:48px!important}.pr-sm-13{padding-right:52px!important}.pr-sm-14{padding-right:56px!important}.pr-sm-15{padding-right:60px!important}.pr-sm-16{padding-right:64px!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:4px!important}.pb-sm-2{padding-bottom:8px!important}.pb-sm-3{padding-bottom:12px!important}.pb-sm-4{padding-bottom:16px!important}.pb-sm-5{padding-bottom:20px!important}.pb-sm-6{padding-bottom:24px!important}.pb-sm-7{padding-bottom:28px!important}.pb-sm-8{padding-bottom:32px!important}.pb-sm-9{padding-bottom:36px!important}.pb-sm-10{padding-bottom:40px!important}.pb-sm-11{padding-bottom:44px!important}.pb-sm-12{padding-bottom:48px!important}.pb-sm-13{padding-bottom:52px!important}.pb-sm-14{padding-bottom:56px!important}.pb-sm-15{padding-bottom:60px!important}.pb-sm-16{padding-bottom:64px!important}.pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:4px!important}.pl-sm-2{padding-left:8px!important}.pl-sm-3{padding-left:12px!important}.pl-sm-4{padding-left:16px!important}.pl-sm-5{padding-left:20px!important}.pl-sm-6{padding-left:24px!important}.pl-sm-7{padding-left:28px!important}.pl-sm-8{padding-left:32px!important}.pl-sm-9{padding-left:36px!important}.pl-sm-10{padding-left:40px!important}.pl-sm-11{padding-left:44px!important}.pl-sm-12{padding-left:48px!important}.pl-sm-13{padding-left:52px!important}.pl-sm-14{padding-left:56px!important}.pl-sm-15{padding-left:60px!important}.pl-sm-16{padding-left:64px!important}.ps-sm-0{padding-inline-start:0px!important}.ps-sm-1{padding-inline-start:4px!important}.ps-sm-2{padding-inline-start:8px!important}.ps-sm-3{padding-inline-start:12px!important}.ps-sm-4{padding-inline-start:16px!important}.ps-sm-5{padding-inline-start:20px!important}.ps-sm-6{padding-inline-start:24px!important}.ps-sm-7{padding-inline-start:28px!important}.ps-sm-8{padding-inline-start:32px!important}.ps-sm-9{padding-inline-start:36px!important}.ps-sm-10{padding-inline-start:40px!important}.ps-sm-11{padding-inline-start:44px!important}.ps-sm-12{padding-inline-start:48px!important}.ps-sm-13{padding-inline-start:52px!important}.ps-sm-14{padding-inline-start:56px!important}.ps-sm-15{padding-inline-start:60px!important}.ps-sm-16{padding-inline-start:64px!important}.pe-sm-0{padding-inline-end:0px!important}.pe-sm-1{padding-inline-end:4px!important}.pe-sm-2{padding-inline-end:8px!important}.pe-sm-3{padding-inline-end:12px!important}.pe-sm-4{padding-inline-end:16px!important}.pe-sm-5{padding-inline-end:20px!important}.pe-sm-6{padding-inline-end:24px!important}.pe-sm-7{padding-inline-end:28px!important}.pe-sm-8{padding-inline-end:32px!important}.pe-sm-9{padding-inline-end:36px!important}.pe-sm-10{padding-inline-end:40px!important}.pe-sm-11{padding-inline-end:44px!important}.pe-sm-12{padding-inline-end:48px!important}.pe-sm-13{padding-inline-end:52px!important}.pe-sm-14{padding-inline-end:56px!important}.pe-sm-15{padding-inline-end:60px!important}.pe-sm-16{padding-inline-end:64px!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}.text-sm-justify{text-align:justify!important}.text-sm-start{text-align:start!important}.text-sm-end{text-align:end!important}.text-sm-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-sm-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-sm-auto{height:auto!important}.h-sm-screen{height:100vh!important}.h-sm-0{height:0!important}.h-sm-25{height:25%!important}.h-sm-50{height:50%!important}.h-sm-75{height:75%!important}.h-sm-100{height:100%!important}.w-sm-auto{width:auto!important}.w-sm-0{width:0!important}.w-sm-25{width:25%!important}.w-sm-33{width:33%!important}.w-sm-50{width:50%!important}.w-sm-66{width:66%!important}.w-sm-75{width:75%!important}.w-sm-100{width:100%!important}}@media (min-width: 960px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.float-md-none{float:none!important}.float-md-left{float:left!important}.float-md-right{float:right!important}.v-locale--is-rtl .float-md-end{float:left!important}.v-locale--is-rtl .float-md-start,.v-locale--is-ltr .float-md-end{float:right!important}.v-locale--is-ltr .float-md-start{float:left!important}.flex-md-fill,.flex-md-1-1{flex:1 1 auto!important}.flex-md-1-0{flex:1 0 auto!important}.flex-md-0-1{flex:0 1 auto!important}.flex-md-0-0{flex:0 0 auto!important}.flex-md-1-1-100{flex:1 1 100%!important}.flex-md-1-0-100{flex:1 0 100%!important}.flex-md-0-1-100{flex:0 1 100%!important}.flex-md-0-0-100{flex:0 0 100%!important}.flex-md-1-1-0{flex:1 1 0!important}.flex-md-1-0-0{flex:1 0 0!important}.flex-md-0-1-0{flex:0 1 0!important}.flex-md-0-0-0{flex:0 0 0!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-md-start{justify-content:flex-start!important}.justify-md-end{justify-content:flex-end!important}.justify-md-center{justify-content:center!important}.justify-md-space-between{justify-content:space-between!important}.justify-md-space-around{justify-content:space-around!important}.justify-md-space-evenly{justify-content:space-evenly!important}.align-md-start{align-items:flex-start!important}.align-md-end{align-items:flex-end!important}.align-md-center{align-items:center!important}.align-md-baseline{align-items:baseline!important}.align-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-space-between{align-content:space-between!important}.align-content-md-space-around{align-content:space-around!important}.align-content-md-space-evenly{align-content:space-evenly!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-6{order:6!important}.order-md-7{order:7!important}.order-md-8{order:8!important}.order-md-9{order:9!important}.order-md-10{order:10!important}.order-md-11{order:11!important}.order-md-12{order:12!important}.order-md-last{order:13!important}.ga-md-0{gap:0px!important}.ga-md-1{gap:4px!important}.ga-md-2{gap:8px!important}.ga-md-3{gap:12px!important}.ga-md-4{gap:16px!important}.ga-md-5{gap:20px!important}.ga-md-6{gap:24px!important}.ga-md-7{gap:28px!important}.ga-md-8{gap:32px!important}.ga-md-9{gap:36px!important}.ga-md-10{gap:40px!important}.ga-md-11{gap:44px!important}.ga-md-12{gap:48px!important}.ga-md-13{gap:52px!important}.ga-md-14{gap:56px!important}.ga-md-15{gap:60px!important}.ga-md-16{gap:64px!important}.ga-md-auto{gap:auto!important}.gr-md-0{row-gap:0px!important}.gr-md-1{row-gap:4px!important}.gr-md-2{row-gap:8px!important}.gr-md-3{row-gap:12px!important}.gr-md-4{row-gap:16px!important}.gr-md-5{row-gap:20px!important}.gr-md-6{row-gap:24px!important}.gr-md-7{row-gap:28px!important}.gr-md-8{row-gap:32px!important}.gr-md-9{row-gap:36px!important}.gr-md-10{row-gap:40px!important}.gr-md-11{row-gap:44px!important}.gr-md-12{row-gap:48px!important}.gr-md-13{row-gap:52px!important}.gr-md-14{row-gap:56px!important}.gr-md-15{row-gap:60px!important}.gr-md-16{row-gap:64px!important}.gr-md-auto{row-gap:auto!important}.gc-md-0{column-gap:0px!important}.gc-md-1{column-gap:4px!important}.gc-md-2{column-gap:8px!important}.gc-md-3{column-gap:12px!important}.gc-md-4{column-gap:16px!important}.gc-md-5{column-gap:20px!important}.gc-md-6{column-gap:24px!important}.gc-md-7{column-gap:28px!important}.gc-md-8{column-gap:32px!important}.gc-md-9{column-gap:36px!important}.gc-md-10{column-gap:40px!important}.gc-md-11{column-gap:44px!important}.gc-md-12{column-gap:48px!important}.gc-md-13{column-gap:52px!important}.gc-md-14{column-gap:56px!important}.gc-md-15{column-gap:60px!important}.gc-md-16{column-gap:64px!important}.gc-md-auto{column-gap:auto!important}.ma-md-0{margin:0!important}.ma-md-1{margin:4px!important}.ma-md-2{margin:8px!important}.ma-md-3{margin:12px!important}.ma-md-4{margin:16px!important}.ma-md-5{margin:20px!important}.ma-md-6{margin:24px!important}.ma-md-7{margin:28px!important}.ma-md-8{margin:32px!important}.ma-md-9{margin:36px!important}.ma-md-10{margin:40px!important}.ma-md-11{margin:44px!important}.ma-md-12{margin:48px!important}.ma-md-13{margin:52px!important}.ma-md-14{margin:56px!important}.ma-md-15{margin:60px!important}.ma-md-16{margin:64px!important}.ma-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:4px!important;margin-left:4px!important}.mx-md-2{margin-right:8px!important;margin-left:8px!important}.mx-md-3{margin-right:12px!important;margin-left:12px!important}.mx-md-4{margin-right:16px!important;margin-left:16px!important}.mx-md-5{margin-right:20px!important;margin-left:20px!important}.mx-md-6{margin-right:24px!important;margin-left:24px!important}.mx-md-7{margin-right:28px!important;margin-left:28px!important}.mx-md-8{margin-right:32px!important;margin-left:32px!important}.mx-md-9{margin-right:36px!important;margin-left:36px!important}.mx-md-10{margin-right:40px!important;margin-left:40px!important}.mx-md-11{margin-right:44px!important;margin-left:44px!important}.mx-md-12{margin-right:48px!important;margin-left:48px!important}.mx-md-13{margin-right:52px!important;margin-left:52px!important}.mx-md-14{margin-right:56px!important;margin-left:56px!important}.mx-md-15{margin-right:60px!important;margin-left:60px!important}.mx-md-16{margin-right:64px!important;margin-left:64px!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:4px!important;margin-bottom:4px!important}.my-md-2{margin-top:8px!important;margin-bottom:8px!important}.my-md-3{margin-top:12px!important;margin-bottom:12px!important}.my-md-4{margin-top:16px!important;margin-bottom:16px!important}.my-md-5{margin-top:20px!important;margin-bottom:20px!important}.my-md-6{margin-top:24px!important;margin-bottom:24px!important}.my-md-7{margin-top:28px!important;margin-bottom:28px!important}.my-md-8{margin-top:32px!important;margin-bottom:32px!important}.my-md-9{margin-top:36px!important;margin-bottom:36px!important}.my-md-10{margin-top:40px!important;margin-bottom:40px!important}.my-md-11{margin-top:44px!important;margin-bottom:44px!important}.my-md-12{margin-top:48px!important;margin-bottom:48px!important}.my-md-13{margin-top:52px!important;margin-bottom:52px!important}.my-md-14{margin-top:56px!important;margin-bottom:56px!important}.my-md-15{margin-top:60px!important;margin-bottom:60px!important}.my-md-16{margin-top:64px!important;margin-bottom:64px!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:4px!important}.mt-md-2{margin-top:8px!important}.mt-md-3{margin-top:12px!important}.mt-md-4{margin-top:16px!important}.mt-md-5{margin-top:20px!important}.mt-md-6{margin-top:24px!important}.mt-md-7{margin-top:28px!important}.mt-md-8{margin-top:32px!important}.mt-md-9{margin-top:36px!important}.mt-md-10{margin-top:40px!important}.mt-md-11{margin-top:44px!important}.mt-md-12{margin-top:48px!important}.mt-md-13{margin-top:52px!important}.mt-md-14{margin-top:56px!important}.mt-md-15{margin-top:60px!important}.mt-md-16{margin-top:64px!important}.mt-md-auto{margin-top:auto!important}.mr-md-0{margin-right:0!important}.mr-md-1{margin-right:4px!important}.mr-md-2{margin-right:8px!important}.mr-md-3{margin-right:12px!important}.mr-md-4{margin-right:16px!important}.mr-md-5{margin-right:20px!important}.mr-md-6{margin-right:24px!important}.mr-md-7{margin-right:28px!important}.mr-md-8{margin-right:32px!important}.mr-md-9{margin-right:36px!important}.mr-md-10{margin-right:40px!important}.mr-md-11{margin-right:44px!important}.mr-md-12{margin-right:48px!important}.mr-md-13{margin-right:52px!important}.mr-md-14{margin-right:56px!important}.mr-md-15{margin-right:60px!important}.mr-md-16{margin-right:64px!important}.mr-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:4px!important}.mb-md-2{margin-bottom:8px!important}.mb-md-3{margin-bottom:12px!important}.mb-md-4{margin-bottom:16px!important}.mb-md-5{margin-bottom:20px!important}.mb-md-6{margin-bottom:24px!important}.mb-md-7{margin-bottom:28px!important}.mb-md-8{margin-bottom:32px!important}.mb-md-9{margin-bottom:36px!important}.mb-md-10{margin-bottom:40px!important}.mb-md-11{margin-bottom:44px!important}.mb-md-12{margin-bottom:48px!important}.mb-md-13{margin-bottom:52px!important}.mb-md-14{margin-bottom:56px!important}.mb-md-15{margin-bottom:60px!important}.mb-md-16{margin-bottom:64px!important}.mb-md-auto{margin-bottom:auto!important}.ml-md-0{margin-left:0!important}.ml-md-1{margin-left:4px!important}.ml-md-2{margin-left:8px!important}.ml-md-3{margin-left:12px!important}.ml-md-4{margin-left:16px!important}.ml-md-5{margin-left:20px!important}.ml-md-6{margin-left:24px!important}.ml-md-7{margin-left:28px!important}.ml-md-8{margin-left:32px!important}.ml-md-9{margin-left:36px!important}.ml-md-10{margin-left:40px!important}.ml-md-11{margin-left:44px!important}.ml-md-12{margin-left:48px!important}.ml-md-13{margin-left:52px!important}.ml-md-14{margin-left:56px!important}.ml-md-15{margin-left:60px!important}.ml-md-16{margin-left:64px!important}.ml-md-auto{margin-left:auto!important}.ms-md-0{margin-inline-start:0px!important}.ms-md-1{margin-inline-start:4px!important}.ms-md-2{margin-inline-start:8px!important}.ms-md-3{margin-inline-start:12px!important}.ms-md-4{margin-inline-start:16px!important}.ms-md-5{margin-inline-start:20px!important}.ms-md-6{margin-inline-start:24px!important}.ms-md-7{margin-inline-start:28px!important}.ms-md-8{margin-inline-start:32px!important}.ms-md-9{margin-inline-start:36px!important}.ms-md-10{margin-inline-start:40px!important}.ms-md-11{margin-inline-start:44px!important}.ms-md-12{margin-inline-start:48px!important}.ms-md-13{margin-inline-start:52px!important}.ms-md-14{margin-inline-start:56px!important}.ms-md-15{margin-inline-start:60px!important}.ms-md-16{margin-inline-start:64px!important}.ms-md-auto{margin-inline-start:auto!important}.me-md-0{margin-inline-end:0px!important}.me-md-1{margin-inline-end:4px!important}.me-md-2{margin-inline-end:8px!important}.me-md-3{margin-inline-end:12px!important}.me-md-4{margin-inline-end:16px!important}.me-md-5{margin-inline-end:20px!important}.me-md-6{margin-inline-end:24px!important}.me-md-7{margin-inline-end:28px!important}.me-md-8{margin-inline-end:32px!important}.me-md-9{margin-inline-end:36px!important}.me-md-10{margin-inline-end:40px!important}.me-md-11{margin-inline-end:44px!important}.me-md-12{margin-inline-end:48px!important}.me-md-13{margin-inline-end:52px!important}.me-md-14{margin-inline-end:56px!important}.me-md-15{margin-inline-end:60px!important}.me-md-16{margin-inline-end:64px!important}.me-md-auto{margin-inline-end:auto!important}.ma-md-n1{margin:-4px!important}.ma-md-n2{margin:-8px!important}.ma-md-n3{margin:-12px!important}.ma-md-n4{margin:-16px!important}.ma-md-n5{margin:-20px!important}.ma-md-n6{margin:-24px!important}.ma-md-n7{margin:-28px!important}.ma-md-n8{margin:-32px!important}.ma-md-n9{margin:-36px!important}.ma-md-n10{margin:-40px!important}.ma-md-n11{margin:-44px!important}.ma-md-n12{margin:-48px!important}.ma-md-n13{margin:-52px!important}.ma-md-n14{margin:-56px!important}.ma-md-n15{margin:-60px!important}.ma-md-n16{margin:-64px!important}.mx-md-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-md-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-md-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-md-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-md-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-md-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-md-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-md-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-md-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-md-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-md-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-md-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-md-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-md-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-md-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-md-n16{margin-right:-64px!important;margin-left:-64px!important}.my-md-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-md-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-md-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-md-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-md-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-md-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-md-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-md-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-md-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-md-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-md-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-md-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-md-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-md-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-md-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-md-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-md-n1{margin-top:-4px!important}.mt-md-n2{margin-top:-8px!important}.mt-md-n3{margin-top:-12px!important}.mt-md-n4{margin-top:-16px!important}.mt-md-n5{margin-top:-20px!important}.mt-md-n6{margin-top:-24px!important}.mt-md-n7{margin-top:-28px!important}.mt-md-n8{margin-top:-32px!important}.mt-md-n9{margin-top:-36px!important}.mt-md-n10{margin-top:-40px!important}.mt-md-n11{margin-top:-44px!important}.mt-md-n12{margin-top:-48px!important}.mt-md-n13{margin-top:-52px!important}.mt-md-n14{margin-top:-56px!important}.mt-md-n15{margin-top:-60px!important}.mt-md-n16{margin-top:-64px!important}.mr-md-n1{margin-right:-4px!important}.mr-md-n2{margin-right:-8px!important}.mr-md-n3{margin-right:-12px!important}.mr-md-n4{margin-right:-16px!important}.mr-md-n5{margin-right:-20px!important}.mr-md-n6{margin-right:-24px!important}.mr-md-n7{margin-right:-28px!important}.mr-md-n8{margin-right:-32px!important}.mr-md-n9{margin-right:-36px!important}.mr-md-n10{margin-right:-40px!important}.mr-md-n11{margin-right:-44px!important}.mr-md-n12{margin-right:-48px!important}.mr-md-n13{margin-right:-52px!important}.mr-md-n14{margin-right:-56px!important}.mr-md-n15{margin-right:-60px!important}.mr-md-n16{margin-right:-64px!important}.mb-md-n1{margin-bottom:-4px!important}.mb-md-n2{margin-bottom:-8px!important}.mb-md-n3{margin-bottom:-12px!important}.mb-md-n4{margin-bottom:-16px!important}.mb-md-n5{margin-bottom:-20px!important}.mb-md-n6{margin-bottom:-24px!important}.mb-md-n7{margin-bottom:-28px!important}.mb-md-n8{margin-bottom:-32px!important}.mb-md-n9{margin-bottom:-36px!important}.mb-md-n10{margin-bottom:-40px!important}.mb-md-n11{margin-bottom:-44px!important}.mb-md-n12{margin-bottom:-48px!important}.mb-md-n13{margin-bottom:-52px!important}.mb-md-n14{margin-bottom:-56px!important}.mb-md-n15{margin-bottom:-60px!important}.mb-md-n16{margin-bottom:-64px!important}.ml-md-n1{margin-left:-4px!important}.ml-md-n2{margin-left:-8px!important}.ml-md-n3{margin-left:-12px!important}.ml-md-n4{margin-left:-16px!important}.ml-md-n5{margin-left:-20px!important}.ml-md-n6{margin-left:-24px!important}.ml-md-n7{margin-left:-28px!important}.ml-md-n8{margin-left:-32px!important}.ml-md-n9{margin-left:-36px!important}.ml-md-n10{margin-left:-40px!important}.ml-md-n11{margin-left:-44px!important}.ml-md-n12{margin-left:-48px!important}.ml-md-n13{margin-left:-52px!important}.ml-md-n14{margin-left:-56px!important}.ml-md-n15{margin-left:-60px!important}.ml-md-n16{margin-left:-64px!important}.ms-md-n1{margin-inline-start:-4px!important}.ms-md-n2{margin-inline-start:-8px!important}.ms-md-n3{margin-inline-start:-12px!important}.ms-md-n4{margin-inline-start:-16px!important}.ms-md-n5{margin-inline-start:-20px!important}.ms-md-n6{margin-inline-start:-24px!important}.ms-md-n7{margin-inline-start:-28px!important}.ms-md-n8{margin-inline-start:-32px!important}.ms-md-n9{margin-inline-start:-36px!important}.ms-md-n10{margin-inline-start:-40px!important}.ms-md-n11{margin-inline-start:-44px!important}.ms-md-n12{margin-inline-start:-48px!important}.ms-md-n13{margin-inline-start:-52px!important}.ms-md-n14{margin-inline-start:-56px!important}.ms-md-n15{margin-inline-start:-60px!important}.ms-md-n16{margin-inline-start:-64px!important}.me-md-n1{margin-inline-end:-4px!important}.me-md-n2{margin-inline-end:-8px!important}.me-md-n3{margin-inline-end:-12px!important}.me-md-n4{margin-inline-end:-16px!important}.me-md-n5{margin-inline-end:-20px!important}.me-md-n6{margin-inline-end:-24px!important}.me-md-n7{margin-inline-end:-28px!important}.me-md-n8{margin-inline-end:-32px!important}.me-md-n9{margin-inline-end:-36px!important}.me-md-n10{margin-inline-end:-40px!important}.me-md-n11{margin-inline-end:-44px!important}.me-md-n12{margin-inline-end:-48px!important}.me-md-n13{margin-inline-end:-52px!important}.me-md-n14{margin-inline-end:-56px!important}.me-md-n15{margin-inline-end:-60px!important}.me-md-n16{margin-inline-end:-64px!important}.pa-md-0{padding:0!important}.pa-md-1{padding:4px!important}.pa-md-2{padding:8px!important}.pa-md-3{padding:12px!important}.pa-md-4{padding:16px!important}.pa-md-5{padding:20px!important}.pa-md-6{padding:24px!important}.pa-md-7{padding:28px!important}.pa-md-8{padding:32px!important}.pa-md-9{padding:36px!important}.pa-md-10{padding:40px!important}.pa-md-11{padding:44px!important}.pa-md-12{padding:48px!important}.pa-md-13{padding:52px!important}.pa-md-14{padding:56px!important}.pa-md-15{padding:60px!important}.pa-md-16{padding:64px!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:4px!important;padding-left:4px!important}.px-md-2{padding-right:8px!important;padding-left:8px!important}.px-md-3{padding-right:12px!important;padding-left:12px!important}.px-md-4{padding-right:16px!important;padding-left:16px!important}.px-md-5{padding-right:20px!important;padding-left:20px!important}.px-md-6{padding-right:24px!important;padding-left:24px!important}.px-md-7{padding-right:28px!important;padding-left:28px!important}.px-md-8{padding-right:32px!important;padding-left:32px!important}.px-md-9{padding-right:36px!important;padding-left:36px!important}.px-md-10{padding-right:40px!important;padding-left:40px!important}.px-md-11{padding-right:44px!important;padding-left:44px!important}.px-md-12{padding-right:48px!important;padding-left:48px!important}.px-md-13{padding-right:52px!important;padding-left:52px!important}.px-md-14{padding-right:56px!important;padding-left:56px!important}.px-md-15{padding-right:60px!important;padding-left:60px!important}.px-md-16{padding-right:64px!important;padding-left:64px!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:4px!important;padding-bottom:4px!important}.py-md-2{padding-top:8px!important;padding-bottom:8px!important}.py-md-3{padding-top:12px!important;padding-bottom:12px!important}.py-md-4{padding-top:16px!important;padding-bottom:16px!important}.py-md-5{padding-top:20px!important;padding-bottom:20px!important}.py-md-6{padding-top:24px!important;padding-bottom:24px!important}.py-md-7{padding-top:28px!important;padding-bottom:28px!important}.py-md-8{padding-top:32px!important;padding-bottom:32px!important}.py-md-9{padding-top:36px!important;padding-bottom:36px!important}.py-md-10{padding-top:40px!important;padding-bottom:40px!important}.py-md-11{padding-top:44px!important;padding-bottom:44px!important}.py-md-12{padding-top:48px!important;padding-bottom:48px!important}.py-md-13{padding-top:52px!important;padding-bottom:52px!important}.py-md-14{padding-top:56px!important;padding-bottom:56px!important}.py-md-15{padding-top:60px!important;padding-bottom:60px!important}.py-md-16{padding-top:64px!important;padding-bottom:64px!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:4px!important}.pt-md-2{padding-top:8px!important}.pt-md-3{padding-top:12px!important}.pt-md-4{padding-top:16px!important}.pt-md-5{padding-top:20px!important}.pt-md-6{padding-top:24px!important}.pt-md-7{padding-top:28px!important}.pt-md-8{padding-top:32px!important}.pt-md-9{padding-top:36px!important}.pt-md-10{padding-top:40px!important}.pt-md-11{padding-top:44px!important}.pt-md-12{padding-top:48px!important}.pt-md-13{padding-top:52px!important}.pt-md-14{padding-top:56px!important}.pt-md-15{padding-top:60px!important}.pt-md-16{padding-top:64px!important}.pr-md-0{padding-right:0!important}.pr-md-1{padding-right:4px!important}.pr-md-2{padding-right:8px!important}.pr-md-3{padding-right:12px!important}.pr-md-4{padding-right:16px!important}.pr-md-5{padding-right:20px!important}.pr-md-6{padding-right:24px!important}.pr-md-7{padding-right:28px!important}.pr-md-8{padding-right:32px!important}.pr-md-9{padding-right:36px!important}.pr-md-10{padding-right:40px!important}.pr-md-11{padding-right:44px!important}.pr-md-12{padding-right:48px!important}.pr-md-13{padding-right:52px!important}.pr-md-14{padding-right:56px!important}.pr-md-15{padding-right:60px!important}.pr-md-16{padding-right:64px!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:4px!important}.pb-md-2{padding-bottom:8px!important}.pb-md-3{padding-bottom:12px!important}.pb-md-4{padding-bottom:16px!important}.pb-md-5{padding-bottom:20px!important}.pb-md-6{padding-bottom:24px!important}.pb-md-7{padding-bottom:28px!important}.pb-md-8{padding-bottom:32px!important}.pb-md-9{padding-bottom:36px!important}.pb-md-10{padding-bottom:40px!important}.pb-md-11{padding-bottom:44px!important}.pb-md-12{padding-bottom:48px!important}.pb-md-13{padding-bottom:52px!important}.pb-md-14{padding-bottom:56px!important}.pb-md-15{padding-bottom:60px!important}.pb-md-16{padding-bottom:64px!important}.pl-md-0{padding-left:0!important}.pl-md-1{padding-left:4px!important}.pl-md-2{padding-left:8px!important}.pl-md-3{padding-left:12px!important}.pl-md-4{padding-left:16px!important}.pl-md-5{padding-left:20px!important}.pl-md-6{padding-left:24px!important}.pl-md-7{padding-left:28px!important}.pl-md-8{padding-left:32px!important}.pl-md-9{padding-left:36px!important}.pl-md-10{padding-left:40px!important}.pl-md-11{padding-left:44px!important}.pl-md-12{padding-left:48px!important}.pl-md-13{padding-left:52px!important}.pl-md-14{padding-left:56px!important}.pl-md-15{padding-left:60px!important}.pl-md-16{padding-left:64px!important}.ps-md-0{padding-inline-start:0px!important}.ps-md-1{padding-inline-start:4px!important}.ps-md-2{padding-inline-start:8px!important}.ps-md-3{padding-inline-start:12px!important}.ps-md-4{padding-inline-start:16px!important}.ps-md-5{padding-inline-start:20px!important}.ps-md-6{padding-inline-start:24px!important}.ps-md-7{padding-inline-start:28px!important}.ps-md-8{padding-inline-start:32px!important}.ps-md-9{padding-inline-start:36px!important}.ps-md-10{padding-inline-start:40px!important}.ps-md-11{padding-inline-start:44px!important}.ps-md-12{padding-inline-start:48px!important}.ps-md-13{padding-inline-start:52px!important}.ps-md-14{padding-inline-start:56px!important}.ps-md-15{padding-inline-start:60px!important}.ps-md-16{padding-inline-start:64px!important}.pe-md-0{padding-inline-end:0px!important}.pe-md-1{padding-inline-end:4px!important}.pe-md-2{padding-inline-end:8px!important}.pe-md-3{padding-inline-end:12px!important}.pe-md-4{padding-inline-end:16px!important}.pe-md-5{padding-inline-end:20px!important}.pe-md-6{padding-inline-end:24px!important}.pe-md-7{padding-inline-end:28px!important}.pe-md-8{padding-inline-end:32px!important}.pe-md-9{padding-inline-end:36px!important}.pe-md-10{padding-inline-end:40px!important}.pe-md-11{padding-inline-end:44px!important}.pe-md-12{padding-inline-end:48px!important}.pe-md-13{padding-inline-end:52px!important}.pe-md-14{padding-inline-end:56px!important}.pe-md-15{padding-inline-end:60px!important}.pe-md-16{padding-inline-end:64px!important}.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}.text-md-justify{text-align:justify!important}.text-md-start{text-align:start!important}.text-md-end{text-align:end!important}.text-md-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-md-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-md-auto{height:auto!important}.h-md-screen{height:100vh!important}.h-md-0{height:0!important}.h-md-25{height:25%!important}.h-md-50{height:50%!important}.h-md-75{height:75%!important}.h-md-100{height:100%!important}.w-md-auto{width:auto!important}.w-md-0{width:0!important}.w-md-25{width:25%!important}.w-md-33{width:33%!important}.w-md-50{width:50%!important}.w-md-66{width:66%!important}.w-md-75{width:75%!important}.w-md-100{width:100%!important}}@media (min-width: 1280px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.float-lg-none{float:none!important}.float-lg-left{float:left!important}.float-lg-right{float:right!important}.v-locale--is-rtl .float-lg-end{float:left!important}.v-locale--is-rtl .float-lg-start,.v-locale--is-ltr .float-lg-end{float:right!important}.v-locale--is-ltr .float-lg-start{float:left!important}.flex-lg-fill,.flex-lg-1-1{flex:1 1 auto!important}.flex-lg-1-0{flex:1 0 auto!important}.flex-lg-0-1{flex:0 1 auto!important}.flex-lg-0-0{flex:0 0 auto!important}.flex-lg-1-1-100{flex:1 1 100%!important}.flex-lg-1-0-100{flex:1 0 100%!important}.flex-lg-0-1-100{flex:0 1 100%!important}.flex-lg-0-0-100{flex:0 0 100%!important}.flex-lg-1-1-0{flex:1 1 0!important}.flex-lg-1-0-0{flex:1 0 0!important}.flex-lg-0-1-0{flex:0 1 0!important}.flex-lg-0-0-0{flex:0 0 0!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-lg-start{justify-content:flex-start!important}.justify-lg-end{justify-content:flex-end!important}.justify-lg-center{justify-content:center!important}.justify-lg-space-between{justify-content:space-between!important}.justify-lg-space-around{justify-content:space-around!important}.justify-lg-space-evenly{justify-content:space-evenly!important}.align-lg-start{align-items:flex-start!important}.align-lg-end{align-items:flex-end!important}.align-lg-center{align-items:center!important}.align-lg-baseline{align-items:baseline!important}.align-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-space-between{align-content:space-between!important}.align-content-lg-space-around{align-content:space-around!important}.align-content-lg-space-evenly{align-content:space-evenly!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-6{order:6!important}.order-lg-7{order:7!important}.order-lg-8{order:8!important}.order-lg-9{order:9!important}.order-lg-10{order:10!important}.order-lg-11{order:11!important}.order-lg-12{order:12!important}.order-lg-last{order:13!important}.ga-lg-0{gap:0px!important}.ga-lg-1{gap:4px!important}.ga-lg-2{gap:8px!important}.ga-lg-3{gap:12px!important}.ga-lg-4{gap:16px!important}.ga-lg-5{gap:20px!important}.ga-lg-6{gap:24px!important}.ga-lg-7{gap:28px!important}.ga-lg-8{gap:32px!important}.ga-lg-9{gap:36px!important}.ga-lg-10{gap:40px!important}.ga-lg-11{gap:44px!important}.ga-lg-12{gap:48px!important}.ga-lg-13{gap:52px!important}.ga-lg-14{gap:56px!important}.ga-lg-15{gap:60px!important}.ga-lg-16{gap:64px!important}.ga-lg-auto{gap:auto!important}.gr-lg-0{row-gap:0px!important}.gr-lg-1{row-gap:4px!important}.gr-lg-2{row-gap:8px!important}.gr-lg-3{row-gap:12px!important}.gr-lg-4{row-gap:16px!important}.gr-lg-5{row-gap:20px!important}.gr-lg-6{row-gap:24px!important}.gr-lg-7{row-gap:28px!important}.gr-lg-8{row-gap:32px!important}.gr-lg-9{row-gap:36px!important}.gr-lg-10{row-gap:40px!important}.gr-lg-11{row-gap:44px!important}.gr-lg-12{row-gap:48px!important}.gr-lg-13{row-gap:52px!important}.gr-lg-14{row-gap:56px!important}.gr-lg-15{row-gap:60px!important}.gr-lg-16{row-gap:64px!important}.gr-lg-auto{row-gap:auto!important}.gc-lg-0{column-gap:0px!important}.gc-lg-1{column-gap:4px!important}.gc-lg-2{column-gap:8px!important}.gc-lg-3{column-gap:12px!important}.gc-lg-4{column-gap:16px!important}.gc-lg-5{column-gap:20px!important}.gc-lg-6{column-gap:24px!important}.gc-lg-7{column-gap:28px!important}.gc-lg-8{column-gap:32px!important}.gc-lg-9{column-gap:36px!important}.gc-lg-10{column-gap:40px!important}.gc-lg-11{column-gap:44px!important}.gc-lg-12{column-gap:48px!important}.gc-lg-13{column-gap:52px!important}.gc-lg-14{column-gap:56px!important}.gc-lg-15{column-gap:60px!important}.gc-lg-16{column-gap:64px!important}.gc-lg-auto{column-gap:auto!important}.ma-lg-0{margin:0!important}.ma-lg-1{margin:4px!important}.ma-lg-2{margin:8px!important}.ma-lg-3{margin:12px!important}.ma-lg-4{margin:16px!important}.ma-lg-5{margin:20px!important}.ma-lg-6{margin:24px!important}.ma-lg-7{margin:28px!important}.ma-lg-8{margin:32px!important}.ma-lg-9{margin:36px!important}.ma-lg-10{margin:40px!important}.ma-lg-11{margin:44px!important}.ma-lg-12{margin:48px!important}.ma-lg-13{margin:52px!important}.ma-lg-14{margin:56px!important}.ma-lg-15{margin:60px!important}.ma-lg-16{margin:64px!important}.ma-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:4px!important;margin-left:4px!important}.mx-lg-2{margin-right:8px!important;margin-left:8px!important}.mx-lg-3{margin-right:12px!important;margin-left:12px!important}.mx-lg-4{margin-right:16px!important;margin-left:16px!important}.mx-lg-5{margin-right:20px!important;margin-left:20px!important}.mx-lg-6{margin-right:24px!important;margin-left:24px!important}.mx-lg-7{margin-right:28px!important;margin-left:28px!important}.mx-lg-8{margin-right:32px!important;margin-left:32px!important}.mx-lg-9{margin-right:36px!important;margin-left:36px!important}.mx-lg-10{margin-right:40px!important;margin-left:40px!important}.mx-lg-11{margin-right:44px!important;margin-left:44px!important}.mx-lg-12{margin-right:48px!important;margin-left:48px!important}.mx-lg-13{margin-right:52px!important;margin-left:52px!important}.mx-lg-14{margin-right:56px!important;margin-left:56px!important}.mx-lg-15{margin-right:60px!important;margin-left:60px!important}.mx-lg-16{margin-right:64px!important;margin-left:64px!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:4px!important;margin-bottom:4px!important}.my-lg-2{margin-top:8px!important;margin-bottom:8px!important}.my-lg-3{margin-top:12px!important;margin-bottom:12px!important}.my-lg-4{margin-top:16px!important;margin-bottom:16px!important}.my-lg-5{margin-top:20px!important;margin-bottom:20px!important}.my-lg-6{margin-top:24px!important;margin-bottom:24px!important}.my-lg-7{margin-top:28px!important;margin-bottom:28px!important}.my-lg-8{margin-top:32px!important;margin-bottom:32px!important}.my-lg-9{margin-top:36px!important;margin-bottom:36px!important}.my-lg-10{margin-top:40px!important;margin-bottom:40px!important}.my-lg-11{margin-top:44px!important;margin-bottom:44px!important}.my-lg-12{margin-top:48px!important;margin-bottom:48px!important}.my-lg-13{margin-top:52px!important;margin-bottom:52px!important}.my-lg-14{margin-top:56px!important;margin-bottom:56px!important}.my-lg-15{margin-top:60px!important;margin-bottom:60px!important}.my-lg-16{margin-top:64px!important;margin-bottom:64px!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:4px!important}.mt-lg-2{margin-top:8px!important}.mt-lg-3{margin-top:12px!important}.mt-lg-4{margin-top:16px!important}.mt-lg-5{margin-top:20px!important}.mt-lg-6{margin-top:24px!important}.mt-lg-7{margin-top:28px!important}.mt-lg-8{margin-top:32px!important}.mt-lg-9{margin-top:36px!important}.mt-lg-10{margin-top:40px!important}.mt-lg-11{margin-top:44px!important}.mt-lg-12{margin-top:48px!important}.mt-lg-13{margin-top:52px!important}.mt-lg-14{margin-top:56px!important}.mt-lg-15{margin-top:60px!important}.mt-lg-16{margin-top:64px!important}.mt-lg-auto{margin-top:auto!important}.mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:4px!important}.mr-lg-2{margin-right:8px!important}.mr-lg-3{margin-right:12px!important}.mr-lg-4{margin-right:16px!important}.mr-lg-5{margin-right:20px!important}.mr-lg-6{margin-right:24px!important}.mr-lg-7{margin-right:28px!important}.mr-lg-8{margin-right:32px!important}.mr-lg-9{margin-right:36px!important}.mr-lg-10{margin-right:40px!important}.mr-lg-11{margin-right:44px!important}.mr-lg-12{margin-right:48px!important}.mr-lg-13{margin-right:52px!important}.mr-lg-14{margin-right:56px!important}.mr-lg-15{margin-right:60px!important}.mr-lg-16{margin-right:64px!important}.mr-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:4px!important}.mb-lg-2{margin-bottom:8px!important}.mb-lg-3{margin-bottom:12px!important}.mb-lg-4{margin-bottom:16px!important}.mb-lg-5{margin-bottom:20px!important}.mb-lg-6{margin-bottom:24px!important}.mb-lg-7{margin-bottom:28px!important}.mb-lg-8{margin-bottom:32px!important}.mb-lg-9{margin-bottom:36px!important}.mb-lg-10{margin-bottom:40px!important}.mb-lg-11{margin-bottom:44px!important}.mb-lg-12{margin-bottom:48px!important}.mb-lg-13{margin-bottom:52px!important}.mb-lg-14{margin-bottom:56px!important}.mb-lg-15{margin-bottom:60px!important}.mb-lg-16{margin-bottom:64px!important}.mb-lg-auto{margin-bottom:auto!important}.ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:4px!important}.ml-lg-2{margin-left:8px!important}.ml-lg-3{margin-left:12px!important}.ml-lg-4{margin-left:16px!important}.ml-lg-5{margin-left:20px!important}.ml-lg-6{margin-left:24px!important}.ml-lg-7{margin-left:28px!important}.ml-lg-8{margin-left:32px!important}.ml-lg-9{margin-left:36px!important}.ml-lg-10{margin-left:40px!important}.ml-lg-11{margin-left:44px!important}.ml-lg-12{margin-left:48px!important}.ml-lg-13{margin-left:52px!important}.ml-lg-14{margin-left:56px!important}.ml-lg-15{margin-left:60px!important}.ml-lg-16{margin-left:64px!important}.ml-lg-auto{margin-left:auto!important}.ms-lg-0{margin-inline-start:0px!important}.ms-lg-1{margin-inline-start:4px!important}.ms-lg-2{margin-inline-start:8px!important}.ms-lg-3{margin-inline-start:12px!important}.ms-lg-4{margin-inline-start:16px!important}.ms-lg-5{margin-inline-start:20px!important}.ms-lg-6{margin-inline-start:24px!important}.ms-lg-7{margin-inline-start:28px!important}.ms-lg-8{margin-inline-start:32px!important}.ms-lg-9{margin-inline-start:36px!important}.ms-lg-10{margin-inline-start:40px!important}.ms-lg-11{margin-inline-start:44px!important}.ms-lg-12{margin-inline-start:48px!important}.ms-lg-13{margin-inline-start:52px!important}.ms-lg-14{margin-inline-start:56px!important}.ms-lg-15{margin-inline-start:60px!important}.ms-lg-16{margin-inline-start:64px!important}.ms-lg-auto{margin-inline-start:auto!important}.me-lg-0{margin-inline-end:0px!important}.me-lg-1{margin-inline-end:4px!important}.me-lg-2{margin-inline-end:8px!important}.me-lg-3{margin-inline-end:12px!important}.me-lg-4{margin-inline-end:16px!important}.me-lg-5{margin-inline-end:20px!important}.me-lg-6{margin-inline-end:24px!important}.me-lg-7{margin-inline-end:28px!important}.me-lg-8{margin-inline-end:32px!important}.me-lg-9{margin-inline-end:36px!important}.me-lg-10{margin-inline-end:40px!important}.me-lg-11{margin-inline-end:44px!important}.me-lg-12{margin-inline-end:48px!important}.me-lg-13{margin-inline-end:52px!important}.me-lg-14{margin-inline-end:56px!important}.me-lg-15{margin-inline-end:60px!important}.me-lg-16{margin-inline-end:64px!important}.me-lg-auto{margin-inline-end:auto!important}.ma-lg-n1{margin:-4px!important}.ma-lg-n2{margin:-8px!important}.ma-lg-n3{margin:-12px!important}.ma-lg-n4{margin:-16px!important}.ma-lg-n5{margin:-20px!important}.ma-lg-n6{margin:-24px!important}.ma-lg-n7{margin:-28px!important}.ma-lg-n8{margin:-32px!important}.ma-lg-n9{margin:-36px!important}.ma-lg-n10{margin:-40px!important}.ma-lg-n11{margin:-44px!important}.ma-lg-n12{margin:-48px!important}.ma-lg-n13{margin:-52px!important}.ma-lg-n14{margin:-56px!important}.ma-lg-n15{margin:-60px!important}.ma-lg-n16{margin:-64px!important}.mx-lg-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-lg-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-lg-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-lg-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-lg-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-lg-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-lg-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-lg-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-lg-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-lg-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-lg-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-lg-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-lg-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-lg-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-lg-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-lg-n16{margin-right:-64px!important;margin-left:-64px!important}.my-lg-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-lg-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-lg-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-lg-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-lg-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-lg-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-lg-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-lg-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-lg-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-lg-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-lg-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-lg-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-lg-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-lg-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-lg-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-lg-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-lg-n1{margin-top:-4px!important}.mt-lg-n2{margin-top:-8px!important}.mt-lg-n3{margin-top:-12px!important}.mt-lg-n4{margin-top:-16px!important}.mt-lg-n5{margin-top:-20px!important}.mt-lg-n6{margin-top:-24px!important}.mt-lg-n7{margin-top:-28px!important}.mt-lg-n8{margin-top:-32px!important}.mt-lg-n9{margin-top:-36px!important}.mt-lg-n10{margin-top:-40px!important}.mt-lg-n11{margin-top:-44px!important}.mt-lg-n12{margin-top:-48px!important}.mt-lg-n13{margin-top:-52px!important}.mt-lg-n14{margin-top:-56px!important}.mt-lg-n15{margin-top:-60px!important}.mt-lg-n16{margin-top:-64px!important}.mr-lg-n1{margin-right:-4px!important}.mr-lg-n2{margin-right:-8px!important}.mr-lg-n3{margin-right:-12px!important}.mr-lg-n4{margin-right:-16px!important}.mr-lg-n5{margin-right:-20px!important}.mr-lg-n6{margin-right:-24px!important}.mr-lg-n7{margin-right:-28px!important}.mr-lg-n8{margin-right:-32px!important}.mr-lg-n9{margin-right:-36px!important}.mr-lg-n10{margin-right:-40px!important}.mr-lg-n11{margin-right:-44px!important}.mr-lg-n12{margin-right:-48px!important}.mr-lg-n13{margin-right:-52px!important}.mr-lg-n14{margin-right:-56px!important}.mr-lg-n15{margin-right:-60px!important}.mr-lg-n16{margin-right:-64px!important}.mb-lg-n1{margin-bottom:-4px!important}.mb-lg-n2{margin-bottom:-8px!important}.mb-lg-n3{margin-bottom:-12px!important}.mb-lg-n4{margin-bottom:-16px!important}.mb-lg-n5{margin-bottom:-20px!important}.mb-lg-n6{margin-bottom:-24px!important}.mb-lg-n7{margin-bottom:-28px!important}.mb-lg-n8{margin-bottom:-32px!important}.mb-lg-n9{margin-bottom:-36px!important}.mb-lg-n10{margin-bottom:-40px!important}.mb-lg-n11{margin-bottom:-44px!important}.mb-lg-n12{margin-bottom:-48px!important}.mb-lg-n13{margin-bottom:-52px!important}.mb-lg-n14{margin-bottom:-56px!important}.mb-lg-n15{margin-bottom:-60px!important}.mb-lg-n16{margin-bottom:-64px!important}.ml-lg-n1{margin-left:-4px!important}.ml-lg-n2{margin-left:-8px!important}.ml-lg-n3{margin-left:-12px!important}.ml-lg-n4{margin-left:-16px!important}.ml-lg-n5{margin-left:-20px!important}.ml-lg-n6{margin-left:-24px!important}.ml-lg-n7{margin-left:-28px!important}.ml-lg-n8{margin-left:-32px!important}.ml-lg-n9{margin-left:-36px!important}.ml-lg-n10{margin-left:-40px!important}.ml-lg-n11{margin-left:-44px!important}.ml-lg-n12{margin-left:-48px!important}.ml-lg-n13{margin-left:-52px!important}.ml-lg-n14{margin-left:-56px!important}.ml-lg-n15{margin-left:-60px!important}.ml-lg-n16{margin-left:-64px!important}.ms-lg-n1{margin-inline-start:-4px!important}.ms-lg-n2{margin-inline-start:-8px!important}.ms-lg-n3{margin-inline-start:-12px!important}.ms-lg-n4{margin-inline-start:-16px!important}.ms-lg-n5{margin-inline-start:-20px!important}.ms-lg-n6{margin-inline-start:-24px!important}.ms-lg-n7{margin-inline-start:-28px!important}.ms-lg-n8{margin-inline-start:-32px!important}.ms-lg-n9{margin-inline-start:-36px!important}.ms-lg-n10{margin-inline-start:-40px!important}.ms-lg-n11{margin-inline-start:-44px!important}.ms-lg-n12{margin-inline-start:-48px!important}.ms-lg-n13{margin-inline-start:-52px!important}.ms-lg-n14{margin-inline-start:-56px!important}.ms-lg-n15{margin-inline-start:-60px!important}.ms-lg-n16{margin-inline-start:-64px!important}.me-lg-n1{margin-inline-end:-4px!important}.me-lg-n2{margin-inline-end:-8px!important}.me-lg-n3{margin-inline-end:-12px!important}.me-lg-n4{margin-inline-end:-16px!important}.me-lg-n5{margin-inline-end:-20px!important}.me-lg-n6{margin-inline-end:-24px!important}.me-lg-n7{margin-inline-end:-28px!important}.me-lg-n8{margin-inline-end:-32px!important}.me-lg-n9{margin-inline-end:-36px!important}.me-lg-n10{margin-inline-end:-40px!important}.me-lg-n11{margin-inline-end:-44px!important}.me-lg-n12{margin-inline-end:-48px!important}.me-lg-n13{margin-inline-end:-52px!important}.me-lg-n14{margin-inline-end:-56px!important}.me-lg-n15{margin-inline-end:-60px!important}.me-lg-n16{margin-inline-end:-64px!important}.pa-lg-0{padding:0!important}.pa-lg-1{padding:4px!important}.pa-lg-2{padding:8px!important}.pa-lg-3{padding:12px!important}.pa-lg-4{padding:16px!important}.pa-lg-5{padding:20px!important}.pa-lg-6{padding:24px!important}.pa-lg-7{padding:28px!important}.pa-lg-8{padding:32px!important}.pa-lg-9{padding:36px!important}.pa-lg-10{padding:40px!important}.pa-lg-11{padding:44px!important}.pa-lg-12{padding:48px!important}.pa-lg-13{padding:52px!important}.pa-lg-14{padding:56px!important}.pa-lg-15{padding:60px!important}.pa-lg-16{padding:64px!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:4px!important;padding-left:4px!important}.px-lg-2{padding-right:8px!important;padding-left:8px!important}.px-lg-3{padding-right:12px!important;padding-left:12px!important}.px-lg-4{padding-right:16px!important;padding-left:16px!important}.px-lg-5{padding-right:20px!important;padding-left:20px!important}.px-lg-6{padding-right:24px!important;padding-left:24px!important}.px-lg-7{padding-right:28px!important;padding-left:28px!important}.px-lg-8{padding-right:32px!important;padding-left:32px!important}.px-lg-9{padding-right:36px!important;padding-left:36px!important}.px-lg-10{padding-right:40px!important;padding-left:40px!important}.px-lg-11{padding-right:44px!important;padding-left:44px!important}.px-lg-12{padding-right:48px!important;padding-left:48px!important}.px-lg-13{padding-right:52px!important;padding-left:52px!important}.px-lg-14{padding-right:56px!important;padding-left:56px!important}.px-lg-15{padding-right:60px!important;padding-left:60px!important}.px-lg-16{padding-right:64px!important;padding-left:64px!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:4px!important;padding-bottom:4px!important}.py-lg-2{padding-top:8px!important;padding-bottom:8px!important}.py-lg-3{padding-top:12px!important;padding-bottom:12px!important}.py-lg-4{padding-top:16px!important;padding-bottom:16px!important}.py-lg-5{padding-top:20px!important;padding-bottom:20px!important}.py-lg-6{padding-top:24px!important;padding-bottom:24px!important}.py-lg-7{padding-top:28px!important;padding-bottom:28px!important}.py-lg-8{padding-top:32px!important;padding-bottom:32px!important}.py-lg-9{padding-top:36px!important;padding-bottom:36px!important}.py-lg-10{padding-top:40px!important;padding-bottom:40px!important}.py-lg-11{padding-top:44px!important;padding-bottom:44px!important}.py-lg-12{padding-top:48px!important;padding-bottom:48px!important}.py-lg-13{padding-top:52px!important;padding-bottom:52px!important}.py-lg-14{padding-top:56px!important;padding-bottom:56px!important}.py-lg-15{padding-top:60px!important;padding-bottom:60px!important}.py-lg-16{padding-top:64px!important;padding-bottom:64px!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:4px!important}.pt-lg-2{padding-top:8px!important}.pt-lg-3{padding-top:12px!important}.pt-lg-4{padding-top:16px!important}.pt-lg-5{padding-top:20px!important}.pt-lg-6{padding-top:24px!important}.pt-lg-7{padding-top:28px!important}.pt-lg-8{padding-top:32px!important}.pt-lg-9{padding-top:36px!important}.pt-lg-10{padding-top:40px!important}.pt-lg-11{padding-top:44px!important}.pt-lg-12{padding-top:48px!important}.pt-lg-13{padding-top:52px!important}.pt-lg-14{padding-top:56px!important}.pt-lg-15{padding-top:60px!important}.pt-lg-16{padding-top:64px!important}.pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:4px!important}.pr-lg-2{padding-right:8px!important}.pr-lg-3{padding-right:12px!important}.pr-lg-4{padding-right:16px!important}.pr-lg-5{padding-right:20px!important}.pr-lg-6{padding-right:24px!important}.pr-lg-7{padding-right:28px!important}.pr-lg-8{padding-right:32px!important}.pr-lg-9{padding-right:36px!important}.pr-lg-10{padding-right:40px!important}.pr-lg-11{padding-right:44px!important}.pr-lg-12{padding-right:48px!important}.pr-lg-13{padding-right:52px!important}.pr-lg-14{padding-right:56px!important}.pr-lg-15{padding-right:60px!important}.pr-lg-16{padding-right:64px!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:4px!important}.pb-lg-2{padding-bottom:8px!important}.pb-lg-3{padding-bottom:12px!important}.pb-lg-4{padding-bottom:16px!important}.pb-lg-5{padding-bottom:20px!important}.pb-lg-6{padding-bottom:24px!important}.pb-lg-7{padding-bottom:28px!important}.pb-lg-8{padding-bottom:32px!important}.pb-lg-9{padding-bottom:36px!important}.pb-lg-10{padding-bottom:40px!important}.pb-lg-11{padding-bottom:44px!important}.pb-lg-12{padding-bottom:48px!important}.pb-lg-13{padding-bottom:52px!important}.pb-lg-14{padding-bottom:56px!important}.pb-lg-15{padding-bottom:60px!important}.pb-lg-16{padding-bottom:64px!important}.pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:4px!important}.pl-lg-2{padding-left:8px!important}.pl-lg-3{padding-left:12px!important}.pl-lg-4{padding-left:16px!important}.pl-lg-5{padding-left:20px!important}.pl-lg-6{padding-left:24px!important}.pl-lg-7{padding-left:28px!important}.pl-lg-8{padding-left:32px!important}.pl-lg-9{padding-left:36px!important}.pl-lg-10{padding-left:40px!important}.pl-lg-11{padding-left:44px!important}.pl-lg-12{padding-left:48px!important}.pl-lg-13{padding-left:52px!important}.pl-lg-14{padding-left:56px!important}.pl-lg-15{padding-left:60px!important}.pl-lg-16{padding-left:64px!important}.ps-lg-0{padding-inline-start:0px!important}.ps-lg-1{padding-inline-start:4px!important}.ps-lg-2{padding-inline-start:8px!important}.ps-lg-3{padding-inline-start:12px!important}.ps-lg-4{padding-inline-start:16px!important}.ps-lg-5{padding-inline-start:20px!important}.ps-lg-6{padding-inline-start:24px!important}.ps-lg-7{padding-inline-start:28px!important}.ps-lg-8{padding-inline-start:32px!important}.ps-lg-9{padding-inline-start:36px!important}.ps-lg-10{padding-inline-start:40px!important}.ps-lg-11{padding-inline-start:44px!important}.ps-lg-12{padding-inline-start:48px!important}.ps-lg-13{padding-inline-start:52px!important}.ps-lg-14{padding-inline-start:56px!important}.ps-lg-15{padding-inline-start:60px!important}.ps-lg-16{padding-inline-start:64px!important}.pe-lg-0{padding-inline-end:0px!important}.pe-lg-1{padding-inline-end:4px!important}.pe-lg-2{padding-inline-end:8px!important}.pe-lg-3{padding-inline-end:12px!important}.pe-lg-4{padding-inline-end:16px!important}.pe-lg-5{padding-inline-end:20px!important}.pe-lg-6{padding-inline-end:24px!important}.pe-lg-7{padding-inline-end:28px!important}.pe-lg-8{padding-inline-end:32px!important}.pe-lg-9{padding-inline-end:36px!important}.pe-lg-10{padding-inline-end:40px!important}.pe-lg-11{padding-inline-end:44px!important}.pe-lg-12{padding-inline-end:48px!important}.pe-lg-13{padding-inline-end:52px!important}.pe-lg-14{padding-inline-end:56px!important}.pe-lg-15{padding-inline-end:60px!important}.pe-lg-16{padding-inline-end:64px!important}.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}.text-lg-justify{text-align:justify!important}.text-lg-start{text-align:start!important}.text-lg-end{text-align:end!important}.text-lg-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-lg-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-lg-auto{height:auto!important}.h-lg-screen{height:100vh!important}.h-lg-0{height:0!important}.h-lg-25{height:25%!important}.h-lg-50{height:50%!important}.h-lg-75{height:75%!important}.h-lg-100{height:100%!important}.w-lg-auto{width:auto!important}.w-lg-0{width:0!important}.w-lg-25{width:25%!important}.w-lg-33{width:33%!important}.w-lg-50{width:50%!important}.w-lg-66{width:66%!important}.w-lg-75{width:75%!important}.w-lg-100{width:100%!important}}@media (min-width: 1920px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.float-xl-none{float:none!important}.float-xl-left{float:left!important}.float-xl-right{float:right!important}.v-locale--is-rtl .float-xl-end{float:left!important}.v-locale--is-rtl .float-xl-start,.v-locale--is-ltr .float-xl-end{float:right!important}.v-locale--is-ltr .float-xl-start{float:left!important}.flex-xl-fill,.flex-xl-1-1{flex:1 1 auto!important}.flex-xl-1-0{flex:1 0 auto!important}.flex-xl-0-1{flex:0 1 auto!important}.flex-xl-0-0{flex:0 0 auto!important}.flex-xl-1-1-100{flex:1 1 100%!important}.flex-xl-1-0-100{flex:1 0 100%!important}.flex-xl-0-1-100{flex:0 1 100%!important}.flex-xl-0-0-100{flex:0 0 100%!important}.flex-xl-1-1-0{flex:1 1 0!important}.flex-xl-1-0-0{flex:1 0 0!important}.flex-xl-0-1-0{flex:0 1 0!important}.flex-xl-0-0-0{flex:0 0 0!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xl-start{justify-content:flex-start!important}.justify-xl-end{justify-content:flex-end!important}.justify-xl-center{justify-content:center!important}.justify-xl-space-between{justify-content:space-between!important}.justify-xl-space-around{justify-content:space-around!important}.justify-xl-space-evenly{justify-content:space-evenly!important}.align-xl-start{align-items:flex-start!important}.align-xl-end{align-items:flex-end!important}.align-xl-center{align-items:center!important}.align-xl-baseline{align-items:baseline!important}.align-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-space-between{align-content:space-between!important}.align-content-xl-space-around{align-content:space-around!important}.align-content-xl-space-evenly{align-content:space-evenly!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-6{order:6!important}.order-xl-7{order:7!important}.order-xl-8{order:8!important}.order-xl-9{order:9!important}.order-xl-10{order:10!important}.order-xl-11{order:11!important}.order-xl-12{order:12!important}.order-xl-last{order:13!important}.ga-xl-0{gap:0px!important}.ga-xl-1{gap:4px!important}.ga-xl-2{gap:8px!important}.ga-xl-3{gap:12px!important}.ga-xl-4{gap:16px!important}.ga-xl-5{gap:20px!important}.ga-xl-6{gap:24px!important}.ga-xl-7{gap:28px!important}.ga-xl-8{gap:32px!important}.ga-xl-9{gap:36px!important}.ga-xl-10{gap:40px!important}.ga-xl-11{gap:44px!important}.ga-xl-12{gap:48px!important}.ga-xl-13{gap:52px!important}.ga-xl-14{gap:56px!important}.ga-xl-15{gap:60px!important}.ga-xl-16{gap:64px!important}.ga-xl-auto{gap:auto!important}.gr-xl-0{row-gap:0px!important}.gr-xl-1{row-gap:4px!important}.gr-xl-2{row-gap:8px!important}.gr-xl-3{row-gap:12px!important}.gr-xl-4{row-gap:16px!important}.gr-xl-5{row-gap:20px!important}.gr-xl-6{row-gap:24px!important}.gr-xl-7{row-gap:28px!important}.gr-xl-8{row-gap:32px!important}.gr-xl-9{row-gap:36px!important}.gr-xl-10{row-gap:40px!important}.gr-xl-11{row-gap:44px!important}.gr-xl-12{row-gap:48px!important}.gr-xl-13{row-gap:52px!important}.gr-xl-14{row-gap:56px!important}.gr-xl-15{row-gap:60px!important}.gr-xl-16{row-gap:64px!important}.gr-xl-auto{row-gap:auto!important}.gc-xl-0{column-gap:0px!important}.gc-xl-1{column-gap:4px!important}.gc-xl-2{column-gap:8px!important}.gc-xl-3{column-gap:12px!important}.gc-xl-4{column-gap:16px!important}.gc-xl-5{column-gap:20px!important}.gc-xl-6{column-gap:24px!important}.gc-xl-7{column-gap:28px!important}.gc-xl-8{column-gap:32px!important}.gc-xl-9{column-gap:36px!important}.gc-xl-10{column-gap:40px!important}.gc-xl-11{column-gap:44px!important}.gc-xl-12{column-gap:48px!important}.gc-xl-13{column-gap:52px!important}.gc-xl-14{column-gap:56px!important}.gc-xl-15{column-gap:60px!important}.gc-xl-16{column-gap:64px!important}.gc-xl-auto{column-gap:auto!important}.ma-xl-0{margin:0!important}.ma-xl-1{margin:4px!important}.ma-xl-2{margin:8px!important}.ma-xl-3{margin:12px!important}.ma-xl-4{margin:16px!important}.ma-xl-5{margin:20px!important}.ma-xl-6{margin:24px!important}.ma-xl-7{margin:28px!important}.ma-xl-8{margin:32px!important}.ma-xl-9{margin:36px!important}.ma-xl-10{margin:40px!important}.ma-xl-11{margin:44px!important}.ma-xl-12{margin:48px!important}.ma-xl-13{margin:52px!important}.ma-xl-14{margin:56px!important}.ma-xl-15{margin:60px!important}.ma-xl-16{margin:64px!important}.ma-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:4px!important;margin-left:4px!important}.mx-xl-2{margin-right:8px!important;margin-left:8px!important}.mx-xl-3{margin-right:12px!important;margin-left:12px!important}.mx-xl-4{margin-right:16px!important;margin-left:16px!important}.mx-xl-5{margin-right:20px!important;margin-left:20px!important}.mx-xl-6{margin-right:24px!important;margin-left:24px!important}.mx-xl-7{margin-right:28px!important;margin-left:28px!important}.mx-xl-8{margin-right:32px!important;margin-left:32px!important}.mx-xl-9{margin-right:36px!important;margin-left:36px!important}.mx-xl-10{margin-right:40px!important;margin-left:40px!important}.mx-xl-11{margin-right:44px!important;margin-left:44px!important}.mx-xl-12{margin-right:48px!important;margin-left:48px!important}.mx-xl-13{margin-right:52px!important;margin-left:52px!important}.mx-xl-14{margin-right:56px!important;margin-left:56px!important}.mx-xl-15{margin-right:60px!important;margin-left:60px!important}.mx-xl-16{margin-right:64px!important;margin-left:64px!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:4px!important}.mt-xl-2{margin-top:8px!important}.mt-xl-3{margin-top:12px!important}.mt-xl-4{margin-top:16px!important}.mt-xl-5{margin-top:20px!important}.mt-xl-6{margin-top:24px!important}.mt-xl-7{margin-top:28px!important}.mt-xl-8{margin-top:32px!important}.mt-xl-9{margin-top:36px!important}.mt-xl-10{margin-top:40px!important}.mt-xl-11{margin-top:44px!important}.mt-xl-12{margin-top:48px!important}.mt-xl-13{margin-top:52px!important}.mt-xl-14{margin-top:56px!important}.mt-xl-15{margin-top:60px!important}.mt-xl-16{margin-top:64px!important}.mt-xl-auto{margin-top:auto!important}.mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:4px!important}.mr-xl-2{margin-right:8px!important}.mr-xl-3{margin-right:12px!important}.mr-xl-4{margin-right:16px!important}.mr-xl-5{margin-right:20px!important}.mr-xl-6{margin-right:24px!important}.mr-xl-7{margin-right:28px!important}.mr-xl-8{margin-right:32px!important}.mr-xl-9{margin-right:36px!important}.mr-xl-10{margin-right:40px!important}.mr-xl-11{margin-right:44px!important}.mr-xl-12{margin-right:48px!important}.mr-xl-13{margin-right:52px!important}.mr-xl-14{margin-right:56px!important}.mr-xl-15{margin-right:60px!important}.mr-xl-16{margin-right:64px!important}.mr-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:4px!important}.mb-xl-2{margin-bottom:8px!important}.mb-xl-3{margin-bottom:12px!important}.mb-xl-4{margin-bottom:16px!important}.mb-xl-5{margin-bottom:20px!important}.mb-xl-6{margin-bottom:24px!important}.mb-xl-7{margin-bottom:28px!important}.mb-xl-8{margin-bottom:32px!important}.mb-xl-9{margin-bottom:36px!important}.mb-xl-10{margin-bottom:40px!important}.mb-xl-11{margin-bottom:44px!important}.mb-xl-12{margin-bottom:48px!important}.mb-xl-13{margin-bottom:52px!important}.mb-xl-14{margin-bottom:56px!important}.mb-xl-15{margin-bottom:60px!important}.mb-xl-16{margin-bottom:64px!important}.mb-xl-auto{margin-bottom:auto!important}.ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:4px!important}.ml-xl-2{margin-left:8px!important}.ml-xl-3{margin-left:12px!important}.ml-xl-4{margin-left:16px!important}.ml-xl-5{margin-left:20px!important}.ml-xl-6{margin-left:24px!important}.ml-xl-7{margin-left:28px!important}.ml-xl-8{margin-left:32px!important}.ml-xl-9{margin-left:36px!important}.ml-xl-10{margin-left:40px!important}.ml-xl-11{margin-left:44px!important}.ml-xl-12{margin-left:48px!important}.ml-xl-13{margin-left:52px!important}.ml-xl-14{margin-left:56px!important}.ml-xl-15{margin-left:60px!important}.ml-xl-16{margin-left:64px!important}.ml-xl-auto{margin-left:auto!important}.ms-xl-0{margin-inline-start:0px!important}.ms-xl-1{margin-inline-start:4px!important}.ms-xl-2{margin-inline-start:8px!important}.ms-xl-3{margin-inline-start:12px!important}.ms-xl-4{margin-inline-start:16px!important}.ms-xl-5{margin-inline-start:20px!important}.ms-xl-6{margin-inline-start:24px!important}.ms-xl-7{margin-inline-start:28px!important}.ms-xl-8{margin-inline-start:32px!important}.ms-xl-9{margin-inline-start:36px!important}.ms-xl-10{margin-inline-start:40px!important}.ms-xl-11{margin-inline-start:44px!important}.ms-xl-12{margin-inline-start:48px!important}.ms-xl-13{margin-inline-start:52px!important}.ms-xl-14{margin-inline-start:56px!important}.ms-xl-15{margin-inline-start:60px!important}.ms-xl-16{margin-inline-start:64px!important}.ms-xl-auto{margin-inline-start:auto!important}.me-xl-0{margin-inline-end:0px!important}.me-xl-1{margin-inline-end:4px!important}.me-xl-2{margin-inline-end:8px!important}.me-xl-3{margin-inline-end:12px!important}.me-xl-4{margin-inline-end:16px!important}.me-xl-5{margin-inline-end:20px!important}.me-xl-6{margin-inline-end:24px!important}.me-xl-7{margin-inline-end:28px!important}.me-xl-8{margin-inline-end:32px!important}.me-xl-9{margin-inline-end:36px!important}.me-xl-10{margin-inline-end:40px!important}.me-xl-11{margin-inline-end:44px!important}.me-xl-12{margin-inline-end:48px!important}.me-xl-13{margin-inline-end:52px!important}.me-xl-14{margin-inline-end:56px!important}.me-xl-15{margin-inline-end:60px!important}.me-xl-16{margin-inline-end:64px!important}.me-xl-auto{margin-inline-end:auto!important}.ma-xl-n1{margin:-4px!important}.ma-xl-n2{margin:-8px!important}.ma-xl-n3{margin:-12px!important}.ma-xl-n4{margin:-16px!important}.ma-xl-n5{margin:-20px!important}.ma-xl-n6{margin:-24px!important}.ma-xl-n7{margin:-28px!important}.ma-xl-n8{margin:-32px!important}.ma-xl-n9{margin:-36px!important}.ma-xl-n10{margin:-40px!important}.ma-xl-n11{margin:-44px!important}.ma-xl-n12{margin:-48px!important}.ma-xl-n13{margin:-52px!important}.ma-xl-n14{margin:-56px!important}.ma-xl-n15{margin:-60px!important}.ma-xl-n16{margin:-64px!important}.mx-xl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xl-n1{margin-top:-4px!important}.mt-xl-n2{margin-top:-8px!important}.mt-xl-n3{margin-top:-12px!important}.mt-xl-n4{margin-top:-16px!important}.mt-xl-n5{margin-top:-20px!important}.mt-xl-n6{margin-top:-24px!important}.mt-xl-n7{margin-top:-28px!important}.mt-xl-n8{margin-top:-32px!important}.mt-xl-n9{margin-top:-36px!important}.mt-xl-n10{margin-top:-40px!important}.mt-xl-n11{margin-top:-44px!important}.mt-xl-n12{margin-top:-48px!important}.mt-xl-n13{margin-top:-52px!important}.mt-xl-n14{margin-top:-56px!important}.mt-xl-n15{margin-top:-60px!important}.mt-xl-n16{margin-top:-64px!important}.mr-xl-n1{margin-right:-4px!important}.mr-xl-n2{margin-right:-8px!important}.mr-xl-n3{margin-right:-12px!important}.mr-xl-n4{margin-right:-16px!important}.mr-xl-n5{margin-right:-20px!important}.mr-xl-n6{margin-right:-24px!important}.mr-xl-n7{margin-right:-28px!important}.mr-xl-n8{margin-right:-32px!important}.mr-xl-n9{margin-right:-36px!important}.mr-xl-n10{margin-right:-40px!important}.mr-xl-n11{margin-right:-44px!important}.mr-xl-n12{margin-right:-48px!important}.mr-xl-n13{margin-right:-52px!important}.mr-xl-n14{margin-right:-56px!important}.mr-xl-n15{margin-right:-60px!important}.mr-xl-n16{margin-right:-64px!important}.mb-xl-n1{margin-bottom:-4px!important}.mb-xl-n2{margin-bottom:-8px!important}.mb-xl-n3{margin-bottom:-12px!important}.mb-xl-n4{margin-bottom:-16px!important}.mb-xl-n5{margin-bottom:-20px!important}.mb-xl-n6{margin-bottom:-24px!important}.mb-xl-n7{margin-bottom:-28px!important}.mb-xl-n8{margin-bottom:-32px!important}.mb-xl-n9{margin-bottom:-36px!important}.mb-xl-n10{margin-bottom:-40px!important}.mb-xl-n11{margin-bottom:-44px!important}.mb-xl-n12{margin-bottom:-48px!important}.mb-xl-n13{margin-bottom:-52px!important}.mb-xl-n14{margin-bottom:-56px!important}.mb-xl-n15{margin-bottom:-60px!important}.mb-xl-n16{margin-bottom:-64px!important}.ml-xl-n1{margin-left:-4px!important}.ml-xl-n2{margin-left:-8px!important}.ml-xl-n3{margin-left:-12px!important}.ml-xl-n4{margin-left:-16px!important}.ml-xl-n5{margin-left:-20px!important}.ml-xl-n6{margin-left:-24px!important}.ml-xl-n7{margin-left:-28px!important}.ml-xl-n8{margin-left:-32px!important}.ml-xl-n9{margin-left:-36px!important}.ml-xl-n10{margin-left:-40px!important}.ml-xl-n11{margin-left:-44px!important}.ml-xl-n12{margin-left:-48px!important}.ml-xl-n13{margin-left:-52px!important}.ml-xl-n14{margin-left:-56px!important}.ml-xl-n15{margin-left:-60px!important}.ml-xl-n16{margin-left:-64px!important}.ms-xl-n1{margin-inline-start:-4px!important}.ms-xl-n2{margin-inline-start:-8px!important}.ms-xl-n3{margin-inline-start:-12px!important}.ms-xl-n4{margin-inline-start:-16px!important}.ms-xl-n5{margin-inline-start:-20px!important}.ms-xl-n6{margin-inline-start:-24px!important}.ms-xl-n7{margin-inline-start:-28px!important}.ms-xl-n8{margin-inline-start:-32px!important}.ms-xl-n9{margin-inline-start:-36px!important}.ms-xl-n10{margin-inline-start:-40px!important}.ms-xl-n11{margin-inline-start:-44px!important}.ms-xl-n12{margin-inline-start:-48px!important}.ms-xl-n13{margin-inline-start:-52px!important}.ms-xl-n14{margin-inline-start:-56px!important}.ms-xl-n15{margin-inline-start:-60px!important}.ms-xl-n16{margin-inline-start:-64px!important}.me-xl-n1{margin-inline-end:-4px!important}.me-xl-n2{margin-inline-end:-8px!important}.me-xl-n3{margin-inline-end:-12px!important}.me-xl-n4{margin-inline-end:-16px!important}.me-xl-n5{margin-inline-end:-20px!important}.me-xl-n6{margin-inline-end:-24px!important}.me-xl-n7{margin-inline-end:-28px!important}.me-xl-n8{margin-inline-end:-32px!important}.me-xl-n9{margin-inline-end:-36px!important}.me-xl-n10{margin-inline-end:-40px!important}.me-xl-n11{margin-inline-end:-44px!important}.me-xl-n12{margin-inline-end:-48px!important}.me-xl-n13{margin-inline-end:-52px!important}.me-xl-n14{margin-inline-end:-56px!important}.me-xl-n15{margin-inline-end:-60px!important}.me-xl-n16{margin-inline-end:-64px!important}.pa-xl-0{padding:0!important}.pa-xl-1{padding:4px!important}.pa-xl-2{padding:8px!important}.pa-xl-3{padding:12px!important}.pa-xl-4{padding:16px!important}.pa-xl-5{padding:20px!important}.pa-xl-6{padding:24px!important}.pa-xl-7{padding:28px!important}.pa-xl-8{padding:32px!important}.pa-xl-9{padding:36px!important}.pa-xl-10{padding:40px!important}.pa-xl-11{padding:44px!important}.pa-xl-12{padding:48px!important}.pa-xl-13{padding:52px!important}.pa-xl-14{padding:56px!important}.pa-xl-15{padding:60px!important}.pa-xl-16{padding:64px!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:4px!important;padding-left:4px!important}.px-xl-2{padding-right:8px!important;padding-left:8px!important}.px-xl-3{padding-right:12px!important;padding-left:12px!important}.px-xl-4{padding-right:16px!important;padding-left:16px!important}.px-xl-5{padding-right:20px!important;padding-left:20px!important}.px-xl-6{padding-right:24px!important;padding-left:24px!important}.px-xl-7{padding-right:28px!important;padding-left:28px!important}.px-xl-8{padding-right:32px!important;padding-left:32px!important}.px-xl-9{padding-right:36px!important;padding-left:36px!important}.px-xl-10{padding-right:40px!important;padding-left:40px!important}.px-xl-11{padding-right:44px!important;padding-left:44px!important}.px-xl-12{padding-right:48px!important;padding-left:48px!important}.px-xl-13{padding-right:52px!important;padding-left:52px!important}.px-xl-14{padding-right:56px!important;padding-left:56px!important}.px-xl-15{padding-right:60px!important;padding-left:60px!important}.px-xl-16{padding-right:64px!important;padding-left:64px!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:4px!important}.pt-xl-2{padding-top:8px!important}.pt-xl-3{padding-top:12px!important}.pt-xl-4{padding-top:16px!important}.pt-xl-5{padding-top:20px!important}.pt-xl-6{padding-top:24px!important}.pt-xl-7{padding-top:28px!important}.pt-xl-8{padding-top:32px!important}.pt-xl-9{padding-top:36px!important}.pt-xl-10{padding-top:40px!important}.pt-xl-11{padding-top:44px!important}.pt-xl-12{padding-top:48px!important}.pt-xl-13{padding-top:52px!important}.pt-xl-14{padding-top:56px!important}.pt-xl-15{padding-top:60px!important}.pt-xl-16{padding-top:64px!important}.pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:4px!important}.pr-xl-2{padding-right:8px!important}.pr-xl-3{padding-right:12px!important}.pr-xl-4{padding-right:16px!important}.pr-xl-5{padding-right:20px!important}.pr-xl-6{padding-right:24px!important}.pr-xl-7{padding-right:28px!important}.pr-xl-8{padding-right:32px!important}.pr-xl-9{padding-right:36px!important}.pr-xl-10{padding-right:40px!important}.pr-xl-11{padding-right:44px!important}.pr-xl-12{padding-right:48px!important}.pr-xl-13{padding-right:52px!important}.pr-xl-14{padding-right:56px!important}.pr-xl-15{padding-right:60px!important}.pr-xl-16{padding-right:64px!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:4px!important}.pb-xl-2{padding-bottom:8px!important}.pb-xl-3{padding-bottom:12px!important}.pb-xl-4{padding-bottom:16px!important}.pb-xl-5{padding-bottom:20px!important}.pb-xl-6{padding-bottom:24px!important}.pb-xl-7{padding-bottom:28px!important}.pb-xl-8{padding-bottom:32px!important}.pb-xl-9{padding-bottom:36px!important}.pb-xl-10{padding-bottom:40px!important}.pb-xl-11{padding-bottom:44px!important}.pb-xl-12{padding-bottom:48px!important}.pb-xl-13{padding-bottom:52px!important}.pb-xl-14{padding-bottom:56px!important}.pb-xl-15{padding-bottom:60px!important}.pb-xl-16{padding-bottom:64px!important}.pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:4px!important}.pl-xl-2{padding-left:8px!important}.pl-xl-3{padding-left:12px!important}.pl-xl-4{padding-left:16px!important}.pl-xl-5{padding-left:20px!important}.pl-xl-6{padding-left:24px!important}.pl-xl-7{padding-left:28px!important}.pl-xl-8{padding-left:32px!important}.pl-xl-9{padding-left:36px!important}.pl-xl-10{padding-left:40px!important}.pl-xl-11{padding-left:44px!important}.pl-xl-12{padding-left:48px!important}.pl-xl-13{padding-left:52px!important}.pl-xl-14{padding-left:56px!important}.pl-xl-15{padding-left:60px!important}.pl-xl-16{padding-left:64px!important}.ps-xl-0{padding-inline-start:0px!important}.ps-xl-1{padding-inline-start:4px!important}.ps-xl-2{padding-inline-start:8px!important}.ps-xl-3{padding-inline-start:12px!important}.ps-xl-4{padding-inline-start:16px!important}.ps-xl-5{padding-inline-start:20px!important}.ps-xl-6{padding-inline-start:24px!important}.ps-xl-7{padding-inline-start:28px!important}.ps-xl-8{padding-inline-start:32px!important}.ps-xl-9{padding-inline-start:36px!important}.ps-xl-10{padding-inline-start:40px!important}.ps-xl-11{padding-inline-start:44px!important}.ps-xl-12{padding-inline-start:48px!important}.ps-xl-13{padding-inline-start:52px!important}.ps-xl-14{padding-inline-start:56px!important}.ps-xl-15{padding-inline-start:60px!important}.ps-xl-16{padding-inline-start:64px!important}.pe-xl-0{padding-inline-end:0px!important}.pe-xl-1{padding-inline-end:4px!important}.pe-xl-2{padding-inline-end:8px!important}.pe-xl-3{padding-inline-end:12px!important}.pe-xl-4{padding-inline-end:16px!important}.pe-xl-5{padding-inline-end:20px!important}.pe-xl-6{padding-inline-end:24px!important}.pe-xl-7{padding-inline-end:28px!important}.pe-xl-8{padding-inline-end:32px!important}.pe-xl-9{padding-inline-end:36px!important}.pe-xl-10{padding-inline-end:40px!important}.pe-xl-11{padding-inline-end:44px!important}.pe-xl-12{padding-inline-end:48px!important}.pe-xl-13{padding-inline-end:52px!important}.pe-xl-14{padding-inline-end:56px!important}.pe-xl-15{padding-inline-end:60px!important}.pe-xl-16{padding-inline-end:64px!important}.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}.text-xl-justify{text-align:justify!important}.text-xl-start{text-align:start!important}.text-xl-end{text-align:end!important}.text-xl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xl-auto{height:auto!important}.h-xl-screen{height:100vh!important}.h-xl-0{height:0!important}.h-xl-25{height:25%!important}.h-xl-50{height:50%!important}.h-xl-75{height:75%!important}.h-xl-100{height:100%!important}.w-xl-auto{width:auto!important}.w-xl-0{width:0!important}.w-xl-25{width:25%!important}.w-xl-33{width:33%!important}.w-xl-50{width:50%!important}.w-xl-66{width:66%!important}.w-xl-75{width:75%!important}.w-xl-100{width:100%!important}}@media (min-width: 2560px){.d-xxl-none{display:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.float-xxl-none{float:none!important}.float-xxl-left{float:left!important}.float-xxl-right{float:right!important}.v-locale--is-rtl .float-xxl-end{float:left!important}.v-locale--is-rtl .float-xxl-start,.v-locale--is-ltr .float-xxl-end{float:right!important}.v-locale--is-ltr .float-xxl-start{float:left!important}.flex-xxl-fill,.flex-xxl-1-1{flex:1 1 auto!important}.flex-xxl-1-0{flex:1 0 auto!important}.flex-xxl-0-1{flex:0 1 auto!important}.flex-xxl-0-0{flex:0 0 auto!important}.flex-xxl-1-1-100{flex:1 1 100%!important}.flex-xxl-1-0-100{flex:1 0 100%!important}.flex-xxl-0-1-100{flex:0 1 100%!important}.flex-xxl-0-0-100{flex:0 0 100%!important}.flex-xxl-1-1-0{flex:1 1 0!important}.flex-xxl-1-0-0{flex:1 0 0!important}.flex-xxl-0-1-0{flex:0 1 0!important}.flex-xxl-0-0-0{flex:0 0 0!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xxl-start{justify-content:flex-start!important}.justify-xxl-end{justify-content:flex-end!important}.justify-xxl-center{justify-content:center!important}.justify-xxl-space-between{justify-content:space-between!important}.justify-xxl-space-around{justify-content:space-around!important}.justify-xxl-space-evenly{justify-content:space-evenly!important}.align-xxl-start{align-items:flex-start!important}.align-xxl-end{align-items:flex-end!important}.align-xxl-center{align-items:center!important}.align-xxl-baseline{align-items:baseline!important}.align-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-space-between{align-content:space-between!important}.align-content-xxl-space-around{align-content:space-around!important}.align-content-xxl-space-evenly{align-content:space-evenly!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-6{order:6!important}.order-xxl-7{order:7!important}.order-xxl-8{order:8!important}.order-xxl-9{order:9!important}.order-xxl-10{order:10!important}.order-xxl-11{order:11!important}.order-xxl-12{order:12!important}.order-xxl-last{order:13!important}.ga-xxl-0{gap:0px!important}.ga-xxl-1{gap:4px!important}.ga-xxl-2{gap:8px!important}.ga-xxl-3{gap:12px!important}.ga-xxl-4{gap:16px!important}.ga-xxl-5{gap:20px!important}.ga-xxl-6{gap:24px!important}.ga-xxl-7{gap:28px!important}.ga-xxl-8{gap:32px!important}.ga-xxl-9{gap:36px!important}.ga-xxl-10{gap:40px!important}.ga-xxl-11{gap:44px!important}.ga-xxl-12{gap:48px!important}.ga-xxl-13{gap:52px!important}.ga-xxl-14{gap:56px!important}.ga-xxl-15{gap:60px!important}.ga-xxl-16{gap:64px!important}.ga-xxl-auto{gap:auto!important}.gr-xxl-0{row-gap:0px!important}.gr-xxl-1{row-gap:4px!important}.gr-xxl-2{row-gap:8px!important}.gr-xxl-3{row-gap:12px!important}.gr-xxl-4{row-gap:16px!important}.gr-xxl-5{row-gap:20px!important}.gr-xxl-6{row-gap:24px!important}.gr-xxl-7{row-gap:28px!important}.gr-xxl-8{row-gap:32px!important}.gr-xxl-9{row-gap:36px!important}.gr-xxl-10{row-gap:40px!important}.gr-xxl-11{row-gap:44px!important}.gr-xxl-12{row-gap:48px!important}.gr-xxl-13{row-gap:52px!important}.gr-xxl-14{row-gap:56px!important}.gr-xxl-15{row-gap:60px!important}.gr-xxl-16{row-gap:64px!important}.gr-xxl-auto{row-gap:auto!important}.gc-xxl-0{column-gap:0px!important}.gc-xxl-1{column-gap:4px!important}.gc-xxl-2{column-gap:8px!important}.gc-xxl-3{column-gap:12px!important}.gc-xxl-4{column-gap:16px!important}.gc-xxl-5{column-gap:20px!important}.gc-xxl-6{column-gap:24px!important}.gc-xxl-7{column-gap:28px!important}.gc-xxl-8{column-gap:32px!important}.gc-xxl-9{column-gap:36px!important}.gc-xxl-10{column-gap:40px!important}.gc-xxl-11{column-gap:44px!important}.gc-xxl-12{column-gap:48px!important}.gc-xxl-13{column-gap:52px!important}.gc-xxl-14{column-gap:56px!important}.gc-xxl-15{column-gap:60px!important}.gc-xxl-16{column-gap:64px!important}.gc-xxl-auto{column-gap:auto!important}.ma-xxl-0{margin:0!important}.ma-xxl-1{margin:4px!important}.ma-xxl-2{margin:8px!important}.ma-xxl-3{margin:12px!important}.ma-xxl-4{margin:16px!important}.ma-xxl-5{margin:20px!important}.ma-xxl-6{margin:24px!important}.ma-xxl-7{margin:28px!important}.ma-xxl-8{margin:32px!important}.ma-xxl-9{margin:36px!important}.ma-xxl-10{margin:40px!important}.ma-xxl-11{margin:44px!important}.ma-xxl-12{margin:48px!important}.ma-xxl-13{margin:52px!important}.ma-xxl-14{margin:56px!important}.ma-xxl-15{margin:60px!important}.ma-xxl-16{margin:64px!important}.ma-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:4px!important;margin-left:4px!important}.mx-xxl-2{margin-right:8px!important;margin-left:8px!important}.mx-xxl-3{margin-right:12px!important;margin-left:12px!important}.mx-xxl-4{margin-right:16px!important;margin-left:16px!important}.mx-xxl-5{margin-right:20px!important;margin-left:20px!important}.mx-xxl-6{margin-right:24px!important;margin-left:24px!important}.mx-xxl-7{margin-right:28px!important;margin-left:28px!important}.mx-xxl-8{margin-right:32px!important;margin-left:32px!important}.mx-xxl-9{margin-right:36px!important;margin-left:36px!important}.mx-xxl-10{margin-right:40px!important;margin-left:40px!important}.mx-xxl-11{margin-right:44px!important;margin-left:44px!important}.mx-xxl-12{margin-right:48px!important;margin-left:48px!important}.mx-xxl-13{margin-right:52px!important;margin-left:52px!important}.mx-xxl-14{margin-right:56px!important;margin-left:56px!important}.mx-xxl-15{margin-right:60px!important;margin-left:60px!important}.mx-xxl-16{margin-right:64px!important;margin-left:64px!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xxl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xxl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xxl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xxl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xxl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xxl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xxl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xxl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xxl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xxl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xxl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xxl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xxl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xxl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xxl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:4px!important}.mt-xxl-2{margin-top:8px!important}.mt-xxl-3{margin-top:12px!important}.mt-xxl-4{margin-top:16px!important}.mt-xxl-5{margin-top:20px!important}.mt-xxl-6{margin-top:24px!important}.mt-xxl-7{margin-top:28px!important}.mt-xxl-8{margin-top:32px!important}.mt-xxl-9{margin-top:36px!important}.mt-xxl-10{margin-top:40px!important}.mt-xxl-11{margin-top:44px!important}.mt-xxl-12{margin-top:48px!important}.mt-xxl-13{margin-top:52px!important}.mt-xxl-14{margin-top:56px!important}.mt-xxl-15{margin-top:60px!important}.mt-xxl-16{margin-top:64px!important}.mt-xxl-auto{margin-top:auto!important}.mr-xxl-0{margin-right:0!important}.mr-xxl-1{margin-right:4px!important}.mr-xxl-2{margin-right:8px!important}.mr-xxl-3{margin-right:12px!important}.mr-xxl-4{margin-right:16px!important}.mr-xxl-5{margin-right:20px!important}.mr-xxl-6{margin-right:24px!important}.mr-xxl-7{margin-right:28px!important}.mr-xxl-8{margin-right:32px!important}.mr-xxl-9{margin-right:36px!important}.mr-xxl-10{margin-right:40px!important}.mr-xxl-11{margin-right:44px!important}.mr-xxl-12{margin-right:48px!important}.mr-xxl-13{margin-right:52px!important}.mr-xxl-14{margin-right:56px!important}.mr-xxl-15{margin-right:60px!important}.mr-xxl-16{margin-right:64px!important}.mr-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:4px!important}.mb-xxl-2{margin-bottom:8px!important}.mb-xxl-3{margin-bottom:12px!important}.mb-xxl-4{margin-bottom:16px!important}.mb-xxl-5{margin-bottom:20px!important}.mb-xxl-6{margin-bottom:24px!important}.mb-xxl-7{margin-bottom:28px!important}.mb-xxl-8{margin-bottom:32px!important}.mb-xxl-9{margin-bottom:36px!important}.mb-xxl-10{margin-bottom:40px!important}.mb-xxl-11{margin-bottom:44px!important}.mb-xxl-12{margin-bottom:48px!important}.mb-xxl-13{margin-bottom:52px!important}.mb-xxl-14{margin-bottom:56px!important}.mb-xxl-15{margin-bottom:60px!important}.mb-xxl-16{margin-bottom:64px!important}.mb-xxl-auto{margin-bottom:auto!important}.ml-xxl-0{margin-left:0!important}.ml-xxl-1{margin-left:4px!important}.ml-xxl-2{margin-left:8px!important}.ml-xxl-3{margin-left:12px!important}.ml-xxl-4{margin-left:16px!important}.ml-xxl-5{margin-left:20px!important}.ml-xxl-6{margin-left:24px!important}.ml-xxl-7{margin-left:28px!important}.ml-xxl-8{margin-left:32px!important}.ml-xxl-9{margin-left:36px!important}.ml-xxl-10{margin-left:40px!important}.ml-xxl-11{margin-left:44px!important}.ml-xxl-12{margin-left:48px!important}.ml-xxl-13{margin-left:52px!important}.ml-xxl-14{margin-left:56px!important}.ml-xxl-15{margin-left:60px!important}.ml-xxl-16{margin-left:64px!important}.ml-xxl-auto{margin-left:auto!important}.ms-xxl-0{margin-inline-start:0px!important}.ms-xxl-1{margin-inline-start:4px!important}.ms-xxl-2{margin-inline-start:8px!important}.ms-xxl-3{margin-inline-start:12px!important}.ms-xxl-4{margin-inline-start:16px!important}.ms-xxl-5{margin-inline-start:20px!important}.ms-xxl-6{margin-inline-start:24px!important}.ms-xxl-7{margin-inline-start:28px!important}.ms-xxl-8{margin-inline-start:32px!important}.ms-xxl-9{margin-inline-start:36px!important}.ms-xxl-10{margin-inline-start:40px!important}.ms-xxl-11{margin-inline-start:44px!important}.ms-xxl-12{margin-inline-start:48px!important}.ms-xxl-13{margin-inline-start:52px!important}.ms-xxl-14{margin-inline-start:56px!important}.ms-xxl-15{margin-inline-start:60px!important}.ms-xxl-16{margin-inline-start:64px!important}.ms-xxl-auto{margin-inline-start:auto!important}.me-xxl-0{margin-inline-end:0px!important}.me-xxl-1{margin-inline-end:4px!important}.me-xxl-2{margin-inline-end:8px!important}.me-xxl-3{margin-inline-end:12px!important}.me-xxl-4{margin-inline-end:16px!important}.me-xxl-5{margin-inline-end:20px!important}.me-xxl-6{margin-inline-end:24px!important}.me-xxl-7{margin-inline-end:28px!important}.me-xxl-8{margin-inline-end:32px!important}.me-xxl-9{margin-inline-end:36px!important}.me-xxl-10{margin-inline-end:40px!important}.me-xxl-11{margin-inline-end:44px!important}.me-xxl-12{margin-inline-end:48px!important}.me-xxl-13{margin-inline-end:52px!important}.me-xxl-14{margin-inline-end:56px!important}.me-xxl-15{margin-inline-end:60px!important}.me-xxl-16{margin-inline-end:64px!important}.me-xxl-auto{margin-inline-end:auto!important}.ma-xxl-n1{margin:-4px!important}.ma-xxl-n2{margin:-8px!important}.ma-xxl-n3{margin:-12px!important}.ma-xxl-n4{margin:-16px!important}.ma-xxl-n5{margin:-20px!important}.ma-xxl-n6{margin:-24px!important}.ma-xxl-n7{margin:-28px!important}.ma-xxl-n8{margin:-32px!important}.ma-xxl-n9{margin:-36px!important}.ma-xxl-n10{margin:-40px!important}.ma-xxl-n11{margin:-44px!important}.ma-xxl-n12{margin:-48px!important}.ma-xxl-n13{margin:-52px!important}.ma-xxl-n14{margin:-56px!important}.ma-xxl-n15{margin:-60px!important}.ma-xxl-n16{margin:-64px!important}.mx-xxl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xxl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xxl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xxl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xxl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xxl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xxl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xxl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xxl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xxl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xxl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xxl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xxl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xxl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xxl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xxl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xxl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xxl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xxl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xxl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xxl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xxl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xxl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xxl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xxl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xxl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xxl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xxl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xxl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xxl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xxl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xxl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xxl-n1{margin-top:-4px!important}.mt-xxl-n2{margin-top:-8px!important}.mt-xxl-n3{margin-top:-12px!important}.mt-xxl-n4{margin-top:-16px!important}.mt-xxl-n5{margin-top:-20px!important}.mt-xxl-n6{margin-top:-24px!important}.mt-xxl-n7{margin-top:-28px!important}.mt-xxl-n8{margin-top:-32px!important}.mt-xxl-n9{margin-top:-36px!important}.mt-xxl-n10{margin-top:-40px!important}.mt-xxl-n11{margin-top:-44px!important}.mt-xxl-n12{margin-top:-48px!important}.mt-xxl-n13{margin-top:-52px!important}.mt-xxl-n14{margin-top:-56px!important}.mt-xxl-n15{margin-top:-60px!important}.mt-xxl-n16{margin-top:-64px!important}.mr-xxl-n1{margin-right:-4px!important}.mr-xxl-n2{margin-right:-8px!important}.mr-xxl-n3{margin-right:-12px!important}.mr-xxl-n4{margin-right:-16px!important}.mr-xxl-n5{margin-right:-20px!important}.mr-xxl-n6{margin-right:-24px!important}.mr-xxl-n7{margin-right:-28px!important}.mr-xxl-n8{margin-right:-32px!important}.mr-xxl-n9{margin-right:-36px!important}.mr-xxl-n10{margin-right:-40px!important}.mr-xxl-n11{margin-right:-44px!important}.mr-xxl-n12{margin-right:-48px!important}.mr-xxl-n13{margin-right:-52px!important}.mr-xxl-n14{margin-right:-56px!important}.mr-xxl-n15{margin-right:-60px!important}.mr-xxl-n16{margin-right:-64px!important}.mb-xxl-n1{margin-bottom:-4px!important}.mb-xxl-n2{margin-bottom:-8px!important}.mb-xxl-n3{margin-bottom:-12px!important}.mb-xxl-n4{margin-bottom:-16px!important}.mb-xxl-n5{margin-bottom:-20px!important}.mb-xxl-n6{margin-bottom:-24px!important}.mb-xxl-n7{margin-bottom:-28px!important}.mb-xxl-n8{margin-bottom:-32px!important}.mb-xxl-n9{margin-bottom:-36px!important}.mb-xxl-n10{margin-bottom:-40px!important}.mb-xxl-n11{margin-bottom:-44px!important}.mb-xxl-n12{margin-bottom:-48px!important}.mb-xxl-n13{margin-bottom:-52px!important}.mb-xxl-n14{margin-bottom:-56px!important}.mb-xxl-n15{margin-bottom:-60px!important}.mb-xxl-n16{margin-bottom:-64px!important}.ml-xxl-n1{margin-left:-4px!important}.ml-xxl-n2{margin-left:-8px!important}.ml-xxl-n3{margin-left:-12px!important}.ml-xxl-n4{margin-left:-16px!important}.ml-xxl-n5{margin-left:-20px!important}.ml-xxl-n6{margin-left:-24px!important}.ml-xxl-n7{margin-left:-28px!important}.ml-xxl-n8{margin-left:-32px!important}.ml-xxl-n9{margin-left:-36px!important}.ml-xxl-n10{margin-left:-40px!important}.ml-xxl-n11{margin-left:-44px!important}.ml-xxl-n12{margin-left:-48px!important}.ml-xxl-n13{margin-left:-52px!important}.ml-xxl-n14{margin-left:-56px!important}.ml-xxl-n15{margin-left:-60px!important}.ml-xxl-n16{margin-left:-64px!important}.ms-xxl-n1{margin-inline-start:-4px!important}.ms-xxl-n2{margin-inline-start:-8px!important}.ms-xxl-n3{margin-inline-start:-12px!important}.ms-xxl-n4{margin-inline-start:-16px!important}.ms-xxl-n5{margin-inline-start:-20px!important}.ms-xxl-n6{margin-inline-start:-24px!important}.ms-xxl-n7{margin-inline-start:-28px!important}.ms-xxl-n8{margin-inline-start:-32px!important}.ms-xxl-n9{margin-inline-start:-36px!important}.ms-xxl-n10{margin-inline-start:-40px!important}.ms-xxl-n11{margin-inline-start:-44px!important}.ms-xxl-n12{margin-inline-start:-48px!important}.ms-xxl-n13{margin-inline-start:-52px!important}.ms-xxl-n14{margin-inline-start:-56px!important}.ms-xxl-n15{margin-inline-start:-60px!important}.ms-xxl-n16{margin-inline-start:-64px!important}.me-xxl-n1{margin-inline-end:-4px!important}.me-xxl-n2{margin-inline-end:-8px!important}.me-xxl-n3{margin-inline-end:-12px!important}.me-xxl-n4{margin-inline-end:-16px!important}.me-xxl-n5{margin-inline-end:-20px!important}.me-xxl-n6{margin-inline-end:-24px!important}.me-xxl-n7{margin-inline-end:-28px!important}.me-xxl-n8{margin-inline-end:-32px!important}.me-xxl-n9{margin-inline-end:-36px!important}.me-xxl-n10{margin-inline-end:-40px!important}.me-xxl-n11{margin-inline-end:-44px!important}.me-xxl-n12{margin-inline-end:-48px!important}.me-xxl-n13{margin-inline-end:-52px!important}.me-xxl-n14{margin-inline-end:-56px!important}.me-xxl-n15{margin-inline-end:-60px!important}.me-xxl-n16{margin-inline-end:-64px!important}.pa-xxl-0{padding:0!important}.pa-xxl-1{padding:4px!important}.pa-xxl-2{padding:8px!important}.pa-xxl-3{padding:12px!important}.pa-xxl-4{padding:16px!important}.pa-xxl-5{padding:20px!important}.pa-xxl-6{padding:24px!important}.pa-xxl-7{padding:28px!important}.pa-xxl-8{padding:32px!important}.pa-xxl-9{padding:36px!important}.pa-xxl-10{padding:40px!important}.pa-xxl-11{padding:44px!important}.pa-xxl-12{padding:48px!important}.pa-xxl-13{padding:52px!important}.pa-xxl-14{padding:56px!important}.pa-xxl-15{padding:60px!important}.pa-xxl-16{padding:64px!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:4px!important;padding-left:4px!important}.px-xxl-2{padding-right:8px!important;padding-left:8px!important}.px-xxl-3{padding-right:12px!important;padding-left:12px!important}.px-xxl-4{padding-right:16px!important;padding-left:16px!important}.px-xxl-5{padding-right:20px!important;padding-left:20px!important}.px-xxl-6{padding-right:24px!important;padding-left:24px!important}.px-xxl-7{padding-right:28px!important;padding-left:28px!important}.px-xxl-8{padding-right:32px!important;padding-left:32px!important}.px-xxl-9{padding-right:36px!important;padding-left:36px!important}.px-xxl-10{padding-right:40px!important;padding-left:40px!important}.px-xxl-11{padding-right:44px!important;padding-left:44px!important}.px-xxl-12{padding-right:48px!important;padding-left:48px!important}.px-xxl-13{padding-right:52px!important;padding-left:52px!important}.px-xxl-14{padding-right:56px!important;padding-left:56px!important}.px-xxl-15{padding-right:60px!important;padding-left:60px!important}.px-xxl-16{padding-right:64px!important;padding-left:64px!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xxl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xxl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xxl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xxl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xxl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xxl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xxl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xxl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xxl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xxl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xxl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xxl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xxl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xxl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xxl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:4px!important}.pt-xxl-2{padding-top:8px!important}.pt-xxl-3{padding-top:12px!important}.pt-xxl-4{padding-top:16px!important}.pt-xxl-5{padding-top:20px!important}.pt-xxl-6{padding-top:24px!important}.pt-xxl-7{padding-top:28px!important}.pt-xxl-8{padding-top:32px!important}.pt-xxl-9{padding-top:36px!important}.pt-xxl-10{padding-top:40px!important}.pt-xxl-11{padding-top:44px!important}.pt-xxl-12{padding-top:48px!important}.pt-xxl-13{padding-top:52px!important}.pt-xxl-14{padding-top:56px!important}.pt-xxl-15{padding-top:60px!important}.pt-xxl-16{padding-top:64px!important}.pr-xxl-0{padding-right:0!important}.pr-xxl-1{padding-right:4px!important}.pr-xxl-2{padding-right:8px!important}.pr-xxl-3{padding-right:12px!important}.pr-xxl-4{padding-right:16px!important}.pr-xxl-5{padding-right:20px!important}.pr-xxl-6{padding-right:24px!important}.pr-xxl-7{padding-right:28px!important}.pr-xxl-8{padding-right:32px!important}.pr-xxl-9{padding-right:36px!important}.pr-xxl-10{padding-right:40px!important}.pr-xxl-11{padding-right:44px!important}.pr-xxl-12{padding-right:48px!important}.pr-xxl-13{padding-right:52px!important}.pr-xxl-14{padding-right:56px!important}.pr-xxl-15{padding-right:60px!important}.pr-xxl-16{padding-right:64px!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:4px!important}.pb-xxl-2{padding-bottom:8px!important}.pb-xxl-3{padding-bottom:12px!important}.pb-xxl-4{padding-bottom:16px!important}.pb-xxl-5{padding-bottom:20px!important}.pb-xxl-6{padding-bottom:24px!important}.pb-xxl-7{padding-bottom:28px!important}.pb-xxl-8{padding-bottom:32px!important}.pb-xxl-9{padding-bottom:36px!important}.pb-xxl-10{padding-bottom:40px!important}.pb-xxl-11{padding-bottom:44px!important}.pb-xxl-12{padding-bottom:48px!important}.pb-xxl-13{padding-bottom:52px!important}.pb-xxl-14{padding-bottom:56px!important}.pb-xxl-15{padding-bottom:60px!important}.pb-xxl-16{padding-bottom:64px!important}.pl-xxl-0{padding-left:0!important}.pl-xxl-1{padding-left:4px!important}.pl-xxl-2{padding-left:8px!important}.pl-xxl-3{padding-left:12px!important}.pl-xxl-4{padding-left:16px!important}.pl-xxl-5{padding-left:20px!important}.pl-xxl-6{padding-left:24px!important}.pl-xxl-7{padding-left:28px!important}.pl-xxl-8{padding-left:32px!important}.pl-xxl-9{padding-left:36px!important}.pl-xxl-10{padding-left:40px!important}.pl-xxl-11{padding-left:44px!important}.pl-xxl-12{padding-left:48px!important}.pl-xxl-13{padding-left:52px!important}.pl-xxl-14{padding-left:56px!important}.pl-xxl-15{padding-left:60px!important}.pl-xxl-16{padding-left:64px!important}.ps-xxl-0{padding-inline-start:0px!important}.ps-xxl-1{padding-inline-start:4px!important}.ps-xxl-2{padding-inline-start:8px!important}.ps-xxl-3{padding-inline-start:12px!important}.ps-xxl-4{padding-inline-start:16px!important}.ps-xxl-5{padding-inline-start:20px!important}.ps-xxl-6{padding-inline-start:24px!important}.ps-xxl-7{padding-inline-start:28px!important}.ps-xxl-8{padding-inline-start:32px!important}.ps-xxl-9{padding-inline-start:36px!important}.ps-xxl-10{padding-inline-start:40px!important}.ps-xxl-11{padding-inline-start:44px!important}.ps-xxl-12{padding-inline-start:48px!important}.ps-xxl-13{padding-inline-start:52px!important}.ps-xxl-14{padding-inline-start:56px!important}.ps-xxl-15{padding-inline-start:60px!important}.ps-xxl-16{padding-inline-start:64px!important}.pe-xxl-0{padding-inline-end:0px!important}.pe-xxl-1{padding-inline-end:4px!important}.pe-xxl-2{padding-inline-end:8px!important}.pe-xxl-3{padding-inline-end:12px!important}.pe-xxl-4{padding-inline-end:16px!important}.pe-xxl-5{padding-inline-end:20px!important}.pe-xxl-6{padding-inline-end:24px!important}.pe-xxl-7{padding-inline-end:28px!important}.pe-xxl-8{padding-inline-end:32px!important}.pe-xxl-9{padding-inline-end:36px!important}.pe-xxl-10{padding-inline-end:40px!important}.pe-xxl-11{padding-inline-end:44px!important}.pe-xxl-12{padding-inline-end:48px!important}.pe-xxl-13{padding-inline-end:52px!important}.pe-xxl-14{padding-inline-end:56px!important}.pe-xxl-15{padding-inline-end:60px!important}.pe-xxl-16{padding-inline-end:64px!important}.text-xxl-left{text-align:left!important}.text-xxl-right{text-align:right!important}.text-xxl-center{text-align:center!important}.text-xxl-justify{text-align:justify!important}.text-xxl-start{text-align:start!important}.text-xxl-end{text-align:end!important}.text-xxl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xxl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xxl-auto{height:auto!important}.h-xxl-screen{height:100vh!important}.h-xxl-0{height:0!important}.h-xxl-25{height:25%!important}.h-xxl-50{height:50%!important}.h-xxl-75{height:75%!important}.h-xxl-100{height:100%!important}.w-xxl-auto{width:auto!important}.w-xxl-0{width:0!important}.w-xxl-25{width:25%!important}.w-xxl-33{width:33%!important}.w-xxl-50{width:50%!important}.w-xxl-66{width:66%!important}.w-xxl-75{width:75%!important}.w-xxl-100{width:100%!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.float-print-none{float:none!important}.float-print-left{float:left!important}.float-print-right{float:right!important}.v-locale--is-rtl .float-print-end{float:left!important}.v-locale--is-rtl .float-print-start,.v-locale--is-ltr .float-print-end{float:right!important}.v-locale--is-ltr .float-print-start{float:left!important}} diff --git a/zt_backend/dist_dev/assets/index-dea2b06b.css b/zt_backend/dist_dev/assets/index-dea2b06b.css deleted file mode 100644 index 70c51789..00000000 --- a/zt_backend/dist_dev/assets/index-dea2b06b.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "UTF-8";.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%}.v-toolbar{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar{border-radius:0}.v-toolbar{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden;border-end-end-radius:24px}.v-toolbar--collapse .v-toolbar-title{display:none}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content{overflow:hidden}.v-toolbar__content>.v-btn:first-child{margin-inline-start:4px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:4px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:20px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline:4px auto}.v-toolbar__append{margin-inline:auto 4px}.v-toolbar-title{flex:1 1;font-size:1.25rem;min-width:0}.v-toolbar-title{font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px}.v-toolbar--density-prominent .v-toolbar-title{font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img--rounded{border-radius:4px}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-btn .v-btn__underlay{position:absolute}@supports selector(:focus-visible){.v-btn:after{pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--slim{padding:0 8px}.v-btn--readonly{pointer-events:none}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn--stacked.v-btn--block{min-width:100%}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__loader>.v-progress-circular{width:1.5em;height:1.5em}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn--slim .v-btn__prepend{margin-inline-start:0}.v-btn__append{grid-area:append;margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--slim .v-btn__append{margin-inline-end:0}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline:calc(var(--v-btn-height) / -9) calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline:calc(var(--v-btn-height) / 4.5) calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{pointer-events:none}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-pagination .v-btn{border-radius:4px}.v-pagination .v-btn--rounded{border-radius:50%}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(0 * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((0 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((0 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle}.v-btn-group{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-btn-group{border-radius:4px}.v-btn-group{background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}@media (forced-colors: active){.v-progress-linear{border:thin solid buttontext}}.v-progress-linear__background,.v-progress-linear__buffer{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;width:100%;transition-property:width,left,right;transition:inherit}@media (forced-colors: active){.v-progress-linear__buffer{background-color:highlight;opacity:.3}}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}@media (forced-colors: active){.v-progress-linear__determinate,.v-progress-linear__indeterminate{background-color:highlight}}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-progress-linear--rounded-bar .v-progress-linear__determinate{border-start-start-radius:0;border-end-start-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar{border-radius:50%}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar .v-avatar__underlay{position:absolute}.v-avatar--rounded{border-radius:4px}.v-avatar--start{margin-inline-end:8px}.v-avatar--end{margin-inline-start:8px}.v-avatar .v-img{height:100%;width:100%}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 16px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 12px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 8px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-input--hide-spin-buttons input::-webkit-outer-spin-button,.v-input--hide-spin-buttons input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.v-input--hide-spin-buttons input[type=number]{-moz-appearance:textfield}.v-input--plain-underlined .v-input__prepend,.v-input--plain-underlined .v-input__append{align-items:flex-start}.v-input--density-default.v-input--plain-underlined .v-input__prepend,.v-input--density-default.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 4px)}.v-input--density-comfortable.v-input--plain-underlined .v-input__prepend,.v-input--density-comfortable.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 2px)}.v-input--density-compact.v-input--plain-underlined .v-input__prepend,.v-input--density-compact.v-input--plain-underlined .v-input__append{padding-top:calc(var(--v-input-padding-top) + 0px)}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle}.v-chip .v-icon{--v-icon-size-multiplier: .8571428571}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 20px;font-size:.625rem;padding:0 8px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 14px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 20px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-5.6px;margin-inline-end:4px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-8px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:4px;margin-inline-end:-5.6px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-8px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-4px;margin-inline-end:4px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:4px;margin-inline-end:-4px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:8px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 26px;font-size:.75rem;padding:0 10px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 20px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 26px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-7px;margin-inline-end:5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-10px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:5px;margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-10px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:15px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-5px;margin-inline-end:5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:5px;margin-inline-end:-5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:10px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 32px;font-size:.875rem;padding:0 12px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 26px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 32px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-8.4px;margin-inline-end:6px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-12px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:6px;margin-inline-end:-8.4px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-12px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:18px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-6px;margin-inline-end:6px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:6px;margin-inline-end:-6px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:12px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 38px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 32px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 38px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 44px;font-size:1.125rem;padding:0 17px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 38px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 44px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.9px;margin-inline-end:8.5px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-17px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8.5px;margin-inline-end:-11.9px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-17px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:25.5px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8.5px;margin-inline-end:8.5px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8.5px;margin-inline-end:-8.5px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:17px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -4px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -8px)}.v-chip{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip{border-radius:9999px}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip .v-chip__underlay{position:absolute}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--link,.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column .v-slide-group__content{white-space:normal;flex-wrap:wrap;max-width:100%}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:rgba(0,0,0,0)}.v-slide-group__container::-webkit-scrollbar{display:none}.v-slide-group--vertical{max-height:inherit}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-slide-group--vertical .v-slide-group__container{overflow-x:hidden;overflow-y:auto}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none}.v-list{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list--border{border-width:thin;box-shadow:none}.v-list{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list{border-radius:0}.v-list{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none}.v-list-item{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item{border-radius:0}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-list-item .v-list-item__underlay{position:absolute}@supports selector(:focus-visible){.v-list-item:after{pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--active:not(.v-list-item--link) .v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:0}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__prepend>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:16px}.v-list-item--slim .v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item--slim .v-list-item__append>.v-tooltip~.v-list-item__spacer{width:20px}.v-list-item--slim .v-list-item__append>.v-avatar~.v-list-item__spacer{width:4px}.v-list-item--slim .v-list-item__append>.v-list-item-action~.v-list-item__spacer{width:4px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:8px;margin-inline-start:-8px}.v-list-item-action--end{margin-inline-start:8px;margin-inline-end:-8px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-list-item-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0;text-overflow:ellipsis;overflow-wrap:break-word;word-break:initial}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item-subtitle{font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.v-list-item-title{font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline:16px}.v-list-item--nav{padding-inline:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list--slim .v-list-group{--prepend-width: 28px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header:not(.v-treeview-item--activetable-group-activator).v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit}.v-divider{border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:auto;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-divider__content{padding:0 16px;text-wrap:nowrap}.v-divider__wrapper--vertical .v-divider__content{padding:4px 0}.v-divider__wrapper{display:flex;align-items:center;justify-content:center}.v-divider__wrapper--vertical{flex-direction:column;height:100%}.v-divider__wrapper--vertical .v-divider{margin:0 auto}.v-menu>.v-overlay__content{display:flex;flex-direction:column}.v-menu>.v-overlay__content{border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:var(--v-overlay-opacity, .32);position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden}.v-select__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-select__content{border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-text-field .v-input__details{padding-inline:0}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-theme-overlay-multiplier: 1;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 8px;--v-field-padding-bottom: 4px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 4px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field .v-chip{--v-chip-height: 24px}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo,.v-field--variant-solo-filled{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-field--variant-solo-inverted{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 16px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 12px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 8px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-top: 4px;--v-field-padding-bottom: 4px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-top: 2px;--v-field-padding-bottom: 0px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-top: 0px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:24px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{align-items:center;color:inherit;column-gap:2px;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom));min-width:0;padding-inline:var(--v-field-padding-start) var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-input--density-default .v-field__input{row-gap:8px}.v-input--density-comfortable .v-field__input{row-gap:6px}.v-input--density-compact .v-field__input{row-gap:4px}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 8px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 8px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 4px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}@media (hover: none){.v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;display:block;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width);border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-field--reverse.v-field--variant-outlined .v-field__outline__start{border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0;border-inline-end-width:var(--v-field-border-width);border-inline-start-width:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative;max-width:calc(100% - 12px)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width);border-start-start-radius:0;border-start-end-radius:inherit;border-end-end-radius:inherit;border-end-start-radius:0}.v-field--reverse.v-field--variant-outlined .v-field__outline__end{border-start-start-radius:inherit;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:inherit;border-inline-end-width:0;border-inline-start-width:var(--v-field-border-width)}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px);width:calc(100% - 2px);left:1px}.v-field__overlay{border-radius:inherit;pointer-events:none}.v-field__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input,.v-field--reverse .v-field__outline{flex-direction:row-reverse}.v-field--reverse .v-field__input,.v-field--reverse input{text-align:end}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px}.v-dialog>.v-overlay__content,.v-dialog>.v-overlay__content>form{display:flex;flex-direction:column;min-height:0}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:16px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:0}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 24px}.v-dialog>.v-overlay__content>.v-card>.v-card-actions,.v-dialog>.v-overlay__content>form>.v-card>.v-card-actions{justify-content:flex-end}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0}.v-card{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card{border-radius:4px}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card .v-card__underlay{position:absolute}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1}.v-card--hover:before{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0}.v-card--hover:after{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--hover:hover{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend,.v-card-item__append{align-items:center;display:flex}.v-card-item__prepend{grid-area:prepend;padding-inline-end:.5rem}.v-card-item__append{grid-area:append;padding-inline-start:.5rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:1.6}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.425}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-card-text-opacity, 1);padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.425}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline:8px 8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}@media (forced-colors: active){.v-slider-thumb__surface{background-color:highlight}}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%);inset-inline-start:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__background{background-color:highlight}}.v-slider-track__fill{background-color:rgb(var(--v-theme-surface-variant))}@media (forced-colors: active){.v-slider-track__fill{background-color:highlight}}.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-surface-light))}.v-slider-track{border-radius:6px}@media (forced-colors: active){.v-slider-track{border:thin solid buttontext}}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden}.v-combobox__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-combobox__content{border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-surface-light))}.v-combobox__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-combobox--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single:not(.v-combobox--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--active input{transition:none}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single:not(.v-combobox--selection-slot) .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-progress__loader{position:relative}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table__tr--mobile>.v-data-table__td--expanded-row{grid-template-columns:0;justify-content:center}.v-data-table__tr--mobile>.v-data-table__td--select-row{grid-template-columns:0;justify-content:end}.v-data-table__tr--mobile>td{align-items:center;column-gap:4px;display:grid;grid-template-columns:repeat(2,1fr);min-height:var(--v-table-row-height)}.v-data-table__tr--mobile>td:not(:last-child){border-bottom:0!important}.v-data-table__td-title{font-weight:500;text-align:left}.v-data-table__td-value{text-align:right}.v-data-table__td-sort-icon{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-data-table__td-sort-icon-active{color:rgba(var(--v-theme-on-surface))}.v-data-table-footer{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding:8px 4px}.v-data-table-footer__items-per-page{align-items:center;display:flex;justify-content:center}.v-data-table-footer__items-per-page>span{padding-inline-end:8px}.v-data-table-footer__items-per-page>.v-select{width:90px}.v-data-table-footer__info{display:flex;justify-content:flex-end;min-width:116px;padding:0 16px}.v-data-table-footer__paginationz{align-items:center;display:flex;margin-inline-start:16px}.v-data-table-footer__page{padding:0 8px}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-table{font-size:.875rem;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr>td{position:relative}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{background:rgba(var(--v-border-color),var(--v-hover-opacity));pointer-events:none}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover>td:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{border-radius:inherit;line-height:1.5;max-width:100%;display:flex;flex-direction:column}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>td{height:var(--v-table-row-height)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{height:var(--v-table-header-height);font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default{--v-table-header-height: 56px;--v-table-row-height: 52px}.v-table--density-comfortable{--v-table-header-height: 48px;--v-table-row-height: 44px}.v-table--density-compact{--v-table-header-height: 40px;--v-table-row-height: 36px}.v-table__wrapper{border-radius:inherit;overflow:auto;flex:1 1 auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:2}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.offset-1{margin-inline-start:8.3333333333%}.offset-2{margin-inline-start:16.6666666667%}.offset-3{margin-inline-start:25%}.offset-4{margin-inline-start:33.3333333333%}.offset-5{margin-inline-start:41.6666666667%}.offset-6{margin-inline-start:50%}.offset-7{margin-inline-start:58.3333333333%}.offset-8{margin-inline-start:66.6666666667%}.offset-9{margin-inline-start:75%}.offset-10{margin-inline-start:83.3333333333%}.offset-11{margin-inline-start:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.offset-sm-0{margin-inline-start:0}.offset-sm-1{margin-inline-start:8.3333333333%}.offset-sm-2{margin-inline-start:16.6666666667%}.offset-sm-3{margin-inline-start:25%}.offset-sm-4{margin-inline-start:33.3333333333%}.offset-sm-5{margin-inline-start:41.6666666667%}.offset-sm-6{margin-inline-start:50%}.offset-sm-7{margin-inline-start:58.3333333333%}.offset-sm-8{margin-inline-start:66.6666666667%}.offset-sm-9{margin-inline-start:75%}.offset-sm-10{margin-inline-start:83.3333333333%}.offset-sm-11{margin-inline-start:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.offset-md-0{margin-inline-start:0}.offset-md-1{margin-inline-start:8.3333333333%}.offset-md-2{margin-inline-start:16.6666666667%}.offset-md-3{margin-inline-start:25%}.offset-md-4{margin-inline-start:33.3333333333%}.offset-md-5{margin-inline-start:41.6666666667%}.offset-md-6{margin-inline-start:50%}.offset-md-7{margin-inline-start:58.3333333333%}.offset-md-8{margin-inline-start:66.6666666667%}.offset-md-9{margin-inline-start:75%}.offset-md-10{margin-inline-start:83.3333333333%}.offset-md-11{margin-inline-start:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.offset-lg-0{margin-inline-start:0}.offset-lg-1{margin-inline-start:8.3333333333%}.offset-lg-2{margin-inline-start:16.6666666667%}.offset-lg-3{margin-inline-start:25%}.offset-lg-4{margin-inline-start:33.3333333333%}.offset-lg-5{margin-inline-start:41.6666666667%}.offset-lg-6{margin-inline-start:50%}.offset-lg-7{margin-inline-start:58.3333333333%}.offset-lg-8{margin-inline-start:66.6666666667%}.offset-lg-9{margin-inline-start:75%}.offset-lg-10{margin-inline-start:83.3333333333%}.offset-lg-11{margin-inline-start:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.offset-xl-0{margin-inline-start:0}.offset-xl-1{margin-inline-start:8.3333333333%}.offset-xl-2{margin-inline-start:16.6666666667%}.offset-xl-3{margin-inline-start:25%}.offset-xl-4{margin-inline-start:33.3333333333%}.offset-xl-5{margin-inline-start:41.6666666667%}.offset-xl-6{margin-inline-start:50%}.offset-xl-7{margin-inline-start:58.3333333333%}.offset-xl-8{margin-inline-start:66.6666666667%}.offset-xl-9{margin-inline-start:75%}.offset-xl-10{margin-inline-start:83.3333333333%}.offset-xl-11{margin-inline-start:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.offset-xxl-0{margin-inline-start:0}.offset-xxl-1{margin-inline-start:8.3333333333%}.offset-xxl-2{margin-inline-start:16.6666666667%}.offset-xxl-3{margin-inline-start:25%}.offset-xxl-4{margin-inline-start:33.3333333333%}.offset-xxl-5{margin-inline-start:41.6666666667%}.offset-xxl-6{margin-inline-start:50%}.offset-xxl-7{margin-inline-start:58.3333333333%}.offset-xxl-8{margin-inline-start:66.6666666667%}.offset-xxl-9{margin-inline-start:75%}.offset-xxl-10{margin-inline-start:83.3333333333%}.offset-xxl-11{margin-inline-start:91.6666666667%}}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:31px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:31px;outline:none;padding:8px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title__overlay{background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-expansion-panels--flat>.v-expansion-panel:after{border-top:none}.v-expansion-panels--flat>.v-expansion-panel .v-expansion-panel__shadow{display:none}.v-expansion-panels--tile{border-radius:0}.v-expansion-panels--tile>.v-expansion-panel{border-radius:0}.v-file-input--hide.v-input .v-field,.v-file-input--hide.v-input .v-input__control,.v-file-input--hide.v-input .v-input__details{display:none}.v-file-input--hide.v-input .v-input__prepend{grid-area:control;margin:0 auto}.v-file-input--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-file-input--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-file-input input[type=file]{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.v-file-input .v-input__details{padding-inline:16px}.v-input--plain-underlined.v-file-input .v-input__details{padding-inline:0}.v-footer{align-items:center;display:flex;flex:1 1 auto;padding:8px 16px;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom}.v-footer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-footer--border{border-width:thin;box-shadow:none}.v-footer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-footer--absolute{position:absolute}.v-footer--fixed{position:fixed}.v-footer{border-radius:0}.v-footer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-footer--rounded{border-radius:4px}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:black;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}.v-rating{max-width:100%;display:inline-flex;white-space:nowrap}.v-rating--readonly{pointer-events:none}.v-rating__wrapper{align-items:center;display:inline-flex;flex-direction:column}.v-rating__wrapper--bottom{flex-direction:column-reverse}.v-rating__item{display:inline-flex;position:relative}.v-rating__item label{cursor:pointer}.v-rating__item .v-btn--variant-plain{opacity:1}.v-rating__item .v-btn{transition-property:transform}.v-rating__item .v-btn .v-icon{transition:inherit;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-rating--hover .v-rating__item:hover:not(.v-rating__item--focused) .v-btn{transform:scale(1.25)}.v-rating__item--half{overflow:hidden;position:absolute;clip-path:polygon(0 0,50% 0,50% 100%,0 100%);z-index:1}.v-rating__item--half .v-btn__overlay,.v-rating__item--half:hover .v-btn__overlay{opacity:0}.v-rating__hidden{height:0;opacity:0;position:absolute;width:0}.v-snackbar{justify-content:center;z-index:10000;margin:8px;margin-inline-end:calc(8px + var(--v-scrollbar-offset));padding:var(--v-layout-top) var(--v-layout-right) var(--v-layout-bottom) var(--v-layout-left)}.v-snackbar:not(.v-snackbar--center):not(.v-snackbar--top){align-items:flex-end}.v-snackbar__wrapper{align-items:center;display:flex;max-width:672px;min-height:48px;min-width:344px;overflow:hidden;padding:0}.v-snackbar__wrapper{border-radius:4px}.v-snackbar--variant-plain,.v-snackbar--variant-outlined,.v-snackbar--variant-text,.v-snackbar--variant-tonal{background:transparent;color:inherit}.v-snackbar--variant-plain{opacity:.62}.v-snackbar--variant-plain:focus,.v-snackbar--variant-plain:hover{opacity:1}.v-snackbar--variant-plain .v-snackbar__overlay{display:none}.v-snackbar--variant-elevated,.v-snackbar--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-snackbar--variant-elevated{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-snackbar--variant-outlined{border:thin solid currentColor}.v-snackbar--variant-text .v-snackbar__overlay{background:currentColor}.v-snackbar--variant-tonal .v-snackbar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-snackbar .v-snackbar__underlay{position:absolute}.v-snackbar__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.425;margin-right:auto;padding:14px 16px;text-align:initial}.v-snackbar__actions{align-items:center;align-self:center;display:flex;margin-inline-end:8px}.v-snackbar__actions>.v-btn{padding:0 8px;min-width:auto}.v-snackbar__timer{width:100%;position:absolute;top:0}.v-snackbar__timer .v-progress-linear{transition:.2s linear}.v-snackbar--absolute{position:absolute;z-index:1}.v-snackbar--multi-line .v-snackbar__wrapper{min-height:68px}.v-snackbar--vertical .v-snackbar__wrapper{flex-direction:column}.v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions{align-self:flex-end;margin-bottom:8px}.v-snackbar--center{align-items:center;justify-content:center}.v-snackbar--top{align-items:flex-start}.v-snackbar--bottom{align-items:flex-end}.v-snackbar--left,.v-snackbar--start{justify-content:flex-start}.v-snackbar--right,.v-snackbar--end{justify-content:flex-end}.v-snackbar-transition-enter-active,.v-snackbar-transition-leave-active{transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}.v-snackbar-transition-enter-active{transition-property:opacity,transform}.v-snackbar-transition-enter-from{opacity:0;transform:scale(.8)}.v-snackbar-transition-leave-active{transition-property:opacity}.v-snackbar-transition-leave-to{opacity:0}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__loader .v-progress-circular{color:rgb(var(--v-theme-surface))}.v-switch__track,.v-switch__thumb{transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error));color:rgb(var(--v-theme-on-error))}.v-switch__track-true{margin-inline-end:auto}.v-selection-control:not(.v-selection-control--dirty) .v-switch__track-true{opacity:0}.v-switch__track-false{margin-inline-start:auto}.v-selection-control--dirty .v-switch__track-false{opacity:0}.v-switch__track{display:inline-flex;align-items:center;font-size:.5rem;padding:0 5px;background-color:rgb(var(--v-theme-surface-variant));border-radius:9999px;height:14px;opacity:.6;min-width:36px;cursor:pointer;transition:.2s background-color cubic-bezier(.4,0,.2,1)}.v-switch--inset .v-switch__track{border-radius:9999px;font-size:.75rem;height:32px;min-width:52px}.v-switch__thumb{align-items:center;background-color:rgb(var(--v-theme-surface-bright));color:rgb(var(--v-theme-on-surface-bright));border-radius:50%;display:flex;font-size:.75rem;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1),.2s color cubic-bezier(.4,0,.2,1),.2s background-color cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.v-switch:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-switch.v-switch--flat:not(.v-switch--inset) .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{height:24px;width:24px;transform:scale(.6666666667)}.v-switch--inset .v-switch__thumb--filled{transform:none}.v-switch--inset .v-selection-control--dirty .v-switch__thumb{transform:none;transition:.15s .05s transform cubic-bezier(0,0,.2,1)}.v-switch.v-input{flex:0 1 auto}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.2s transform cubic-bezier(.4,0,.2,1);position:absolute}.v-locale--is-ltr.v-switch .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control__input{transform:translate(-10px)}.v-locale--is-rtl.v-switch .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control__input{transform:translate(10px)}.v-switch .v-selection-control__input .v-icon{position:absolute}.v-locale--is-ltr.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-ltr .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-locale--is-rtl.v-switch .v-selection-control--dirty .v-selection-control__input,.v-locale--is-rtl .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(-10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.v-switch.v-input--vertical .v-label{min-width:max-content}.v-switch.v-input--vertical .v-selection-control__wrapper{transform:rotate(-90deg)}@media (forced-colors: active){.v-switch .v-switch__loader .v-progress-circular{color:currentColor}.v-switch .v-switch__thumb{background-color:buttontext}.v-switch .v-switch__track,.v-switch .v-switch__thumb{border:1px solid;color:buttontext}.v-switch:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track{background-color:highlight}.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__track,.v-switch:not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{color:highlight}.v-switch.v-switch--inset .v-switch__track{border-width:2px}.v-switch.v-switch--inset:not(.v-switch--loading):not(.v-input--disabled) .v-selection-control--dirty .v-switch__thumb{background-color:highlighttext;color:highlighttext}.v-switch.v-input--disabled .v-switch__thumb{background-color:graytext}.v-switch.v-input--disabled .v-switch__track,.v-switch.v-input--disabled .v-switch__thumb{color:graytext}.v-switch.v-switch--loading .v-switch__thumb{background-color:canvas}.v-switch.v-switch--loading.v-switch--inset .v-switch__thumb,.v-switch.v-switch--loading.v-switch--indeterminate .v-switch__thumb{border-width:0}}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-tooltip>.v-overlay__content{background:rgb(var(--v-theme-bluegrey));color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform;overflow-wrap:break-word}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms}.divider[data-v-c00c2563]{position:relative;height:24px}.divider__divider-line[data-v-c00c2563]{position:absolute;top:50%;width:100%;transform:translateY(-50%)}.divider__btn[data-v-c00c2563]{position:absolute;top:0;left:50%;transform:translate(-50%);opacity:1}.divider[data-v-c00c2563]:hover{cursor:pointer}.divider:hover .divider__divider-line[data-v-c00c2563]{background-color:#fff}.divider:hover .divider__btn[data-v-c00c2563]{color:#fff!important}.cell[data-v-6e515f8e]{padding:18px;display:flex;margin-bottom:2px}.cell--dev[data-v-6e515f8e]{margin-bottom:16px}.message-btn--alert[data-v-6e515f8e]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjQUU5RkU4Ij48cGF0aCBkPSJNMTMuMzA1IDIyLjVMMTIgMjEuNzVMMTUgMTYuNUgxOS41QzE5Ljg5NzggMTYuNSAyMC4yNzk0IDE2LjM0MiAyMC41NjA3IDE2LjA2MDdDMjAuODQyIDE1Ljc3OTQgMjEgMTUuMzk3OCAyMSAxNVY2QzIxIDUuNjAyMTggMjAuODQyIDUuMjIwNjQgMjAuNTYwNyA0LjkzOTM0QzIwLjI3OTQgNC42NTgwNCAxOS44OTc4IDQuNSAxOS41IDQuNUg0LjVDNC4xMDIxOCA0LjUgMy43MjA2NCA0LjY1ODA0IDMuNDM5MzQgNC45MzkzNEMzLjE1ODA0IDUuMjIwNjQgMyA1LjYwMjE4IDMgNlYxNUMzIDE1LjM5NzggMy4xNTgwNCAxNS43Nzk0IDMuNDM5MzQgMTYuMDYwN0MzLjcyMDY0IDE2LjM0MiA0LjEwMjE4IDE2LjUgNC41IDE2LjVIMTEuMjVWMThINC41QzMuNzA0MzUgMTggMi45NDEyOSAxNy42ODM5IDIuMzc4NjggMTcuMTIxM0MxLjgxNjA3IDE2LjU1ODcgMS41IDE1Ljc5NTYgMS41IDE1VjZDMS41IDUuMjA0MzUgMS44MTYwNyA0LjQ0MTI5IDIuMzc4NjggMy44Nzg2OEMyLjk0MTI5IDMuMzE2MDcgMy43MDQzNSAzIDQuNSAzSDE5LjVDMjAuMjk1NiAzIDIxLjA1ODcgMy4zMTYwNyAyMS42MjEzIDMuODc4NjhDMjIuMTgzOSA0LjQ0MTI5IDIyLjUgNS4yMDQzNSAyMi41IDZWMTVDMjIuNSAxNS43OTU2IDIyLjE4MzkgMTYuNTU4NyAyMS42MjEzIDE3LjEyMTNDMjEuMDU4NyAxNy42ODM5IDIwLjI5NTYgMTggMTkuNSAxOEgxNS44N0wxMy4zMDUgMjIuNVoiIGZpbGw9IiNBRTlGRTgiLz48L3N2Zz4=);background-position:center;background-repeat:no-repeat;transition:none}.message-btn__counter[data-v-6e515f8e]{margin-bottom:4px}.delete-cell[data-v-6e515f8e]:hover{background-color:#6e3d41}.content[data-v-6e515f8e]{flex:1;margin-left:16px;margin-right:0;width:calc(100% - 36px)}.indicator[data-v-6e515f8e]{border-radius:4px}.header[data-v-6e515f8e]{display:flex;justify-content:space-between;margin-bottom:16px}.code[data-v-6e515f8e],.outcome[data-v-6e515f8e]{padding:0}.code--dev[data-v-6e515f8e],.outcome--dev[data-v-6e515f8e]{border:1px solid rgba(var(--v-theme-bluegrey));border-radius:4px;padding:12px}.code[data-v-6e515f8e]{margin-bottom:16px}.click-edit[data-v-6e515f8e]{width:calc(100% - 135px)}.click-edit__name[data-v-6e515f8e]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__show-text[data-v-6e515f8e],.click-edit__edit-field-wrapper[data-v-6e515f8e]{height:100%;display:flex;align-items:center}.click-edit__name[data-v-6e515f8e]:hover{cursor:text;padding-left:3px;padding-right:3px;border:1px solid #294455}.click-edit__static-name[data-v-6e515f8e]{cursor:text;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.click-edit__edit-field[data-v-6e515f8e]{margin-top:-11px}.click-edit__edit-field[data-v-6e515f8e] .v-field__input{font-size:1rem;letter-spacing:normal}.click-edit .actions[data-v-6e515f8e]{display:flex;align-items:center}.click-edit .loading-wrapper[data-v-6e515f8e]{display:flex;align-items:center;margin-right:8px}.click-edit .green-loader[data-v-6e515f8e]{color:rgba(var(--v-theme-success))}.app-static-name[data-v-ea931945]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-ea931945] .plot-container{overflow:auto}.markdown-content[data-v-d5250b54]{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1[data-v-d5250b54],h2[data-v-d5250b54],h3[data-v-d5250b54],h4[data-v-d5250b54],h5[data-v-d5250b54],h6[data-v-d5250b54]{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p[data-v-d5250b54]{margin-top:0;margin-bottom:1em}.markdown-content ul[data-v-d5250b54],ol[data-v-d5250b54]{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul[data-v-d5250b54]{list-style-type:disc}.markdown-content ol[data-v-d5250b54]{list-style-type:decimal}.markdown-content li[data-v-d5250b54]{margin-bottom:.25em}.markdown-content a[data-v-d5250b54]{color:#007bff;text-decoration:none}.markdown-content a[data-v-d5250b54]:hover{text-decoration:underline}.markdown-content img[data-v-d5250b54]{max-width:100%;height:auto}.markdown-content blockquote[data-v-d5250b54]{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .mce-codemirror{background:#fff;bottom:0;font-size:13px;left:0;position:absolute;right:0;top:0;z-index:1}.tox .mce-codemirror.tox-inline-codemirror{margin:8px;position:absolute}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #207ab7;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}@media (forced-colors: active){.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:currentColor!important}}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{background-color:#757d87;color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--enabled,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active,.tox .tox-collection--toolbar .tox-collection__item--enabled.tox-collection__item--active:hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#2b3b4e;position:relative}.tox .tox-collection--toolbar .tox-collection__item--active:hover{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus{background-color:#4a5562;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:focus:after{border:2px solid highlight}}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff;position:relative;z-index:1}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent inset;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled):focus:after{border:2px solid highlight}}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){border:solid 1px}}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}@media (forced-colors: active){.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled):hover{border-radius:3px;outline:solid 1px}}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:currentColor;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:currentColor}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}@media (forced-colors: active){.tox .tox-hue-slider,.tox .tox-rgb-form .tox-rgba-preview{background-color:currentColor!important;border:1px solid highlight!important;forced-color-adjust:none}}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{min-width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid #f00!important;box-shadow:0 0 0 1px red}.tox .tox-rgb-container{position:relative}.tox .tox-rgb-form .tox-invalid-icon{align-content:center;align-items:center;display:none;height:100%;position:absolute;right:0;top:0}.tox .tox-rgb-form .tox-invalid-icon .tox-control-wrap__status-icon-invalid{margin:0}.tox .tox-rgb-warning-note{background-color:#442632;border:1px solid #55212b;border-radius:3px;color:#e68080;padding:3px}.tox input.tox-invalid+.tox-invalid-icon{display:flex}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}@media (forced-colors: active){.tox .tox-swatches__row{forced-color-adjust:none}}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;-webkit-text-decoration:none;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}@media (forced-colors: active){.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid highlight;color:highlight}}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered iframe{border-radius:3px}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:0 solid transparent;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}@media (forced-colors: active){.tox .tox-edit-area:before{border:0 solid highlight}}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-custom-preview{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;flex:1;padding:8px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a3709;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}@media (forced-colors: active){.tox .tox-color-input span{border-color:currentColor;border-width:2px!important;forced-color-adjust:none}}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}@media (forced-colors: active){.tox .tox-color-input span:before{border:none}}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}@media (forced-colors: active){.tox .tox-listbox__select-chevron svg{fill:currentColor!important}}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{background-color:#222f3e;display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}@media (forced-colors: active){.tox .tox-insert-table-picker .tox-insert-table-picker__selected{border-color:Highlight;filter:contrast(50%)}}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-mbtn:focus:not(:disabled):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-mbtn:focus:not(:disabled):after{border:2px solid highlight}}.tox .tox-mbtn--active,.tox .tox-mbtn:not(:disabled).tox-mbtn--active:focus{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-left:auto;margin-right:auto;margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in;width:max-content}.tox .tox-notification a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification:focus{border-color:#207ab7;box-shadow:none}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success a:hover,.tox .tox-notification--success a:focus{color:#82b153;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success a:focus-visible{border-radius:1px;outline:2px solid #b5d199;outline-offset:2px}.tox .tox-notification--success a:active{color:#689041;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error a:hover,.tox .tox-notification--error a:focus{color:#d42b2b;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error a:focus-visible{border-radius:1px;outline:2px solid #e68080;outline-offset:2px}.tox .tox-notification--error a:active{color:#a22;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn a:hover,.tox .tox-notification--warning a:hover,.tox .tox-notification--warn a:focus,.tox .tox-notification--warning a:focus{color:#997a00;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn a:focus-visible,.tox .tox-notification--warning a:focus-visible{border-radius:1px;outline:2px solid #ffcc00;outline-offset:2px}.tox .tox-notification--warn a:active,.tox .tox-notification--warning a:active{color:#665200;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info a:hover,.tox .tox-notification--info a:focus{color:#2681ea;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info a:focus-visible{border-radius:1px;outline:2px solid #83b7f3;outline-offset:2px}.tox .tox-notification--info a:active{color:#1368c9;-webkit-text-decoration:underline;text-decoration:underline}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-notification-container-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-notification-container-dock-fadein{opacity:1;visibility:visible}.tox .tox-notification-container-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-notification-container-dock-transition.tox-notification-container-dock-fadein{transition-delay:0s}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}@media (forced-colors: active){.tox .tox-pop:before,.tox .tox-pop:after{content:none}}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{align-items:flex-start;display:flex;flex:1 1 auto;height:16px;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;position:relative;-webkit-text-decoration:none;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar a:focus-visible:after,.tox .tox-statusbar__path-item:focus-visible:after,.tox .tox-statusbar__wordcount:focus-visible:after{border:2px solid highlight}}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin:3px -5px 3px 4px;padding-bottom:0;padding-left:0;padding-right:0;position:relative}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:hover svg,.tox .tox-statusbar__resize-handle:focus svg{fill:#fff}.tox .tox-statusbar__resize-handle:focus-visible{background-color:transparent;border-radius:1px 1px -4px;box-shadow:0 0 0 2px transparent}.tox .tox-statusbar__resize-handle:focus-visible:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-statusbar__resize-handle:focus-visible:after{border:2px solid highlight}}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:#222f3e;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;padding:0;text-transform:none;width:34px}@media (forced-colors: active){.tox .tox-tbtn:hover,.tox .tox-tbtn.tox-tbtn:hover{outline:1px dashed currentColor}.tox .tox-tbtn.tox-tbtn--active,.tox .tox-tbtn.tox-tbtn--enabled,.tox .tox-tbtn.tox-tbtn--enabled:hover,.tox .tox-tbtn.tox-tbtn--enabled:focus,.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){outline:1px solid currentColor;position:relative}}.tox .tox-tbtn svg{display:block;fill:#fff}@media (forced-colors: active){.tox .tox-tbtn svg{fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--enabled,.tox .tox-tbtn svg:focus:not(.tox-tbtn--disabled){fill:currentColor!important}.tox .tox-tbtn svg.tox-tbtn--disabled,.tox .tox-tbtn svg.tox-tbtn--disabled:hover,.tox .tox-tbtn svg .tox-tbtn:disabled,.tox .tox-tbtn svg .tox-tbtn:disabled:hover{filter:contrast(0%)}}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none;position:relative;z-index:1}.tox .tox-tbtn:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn:focus:after{border:2px solid highlight}}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--active,.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover,.tox .tox-tbtn--enabled:focus{background:#757d87;border:0;box-shadow:none;color:#fff;position:relative}.tox .tox-tbtn--active>*,.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled:focus>*{transform:none}.tox .tox-tbtn--active svg,.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg,.tox .tox-tbtn--enabled:focus svg{fill:#fff}.tox .tox-tbtn--active.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:focus.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn--enabled:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-tbtn--enabled:focus:after{border:2px solid highlight}}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{background:transparent;border-radius:3px;display:flex;margin:3px 0 2px;position:relative;width:auto}.tox .tox-number-input:focus{background:#4a5562}.tox .tox-number-input:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper{display:flex;pointer-events:none;position:relative;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background-color:#4a5562;z-index:1}.tox .tox-number-input .tox-input-wrapper:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:focus:after{border:2px solid highlight}}.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input .tox-input-wrapper:has(input:focus):after{border:2px solid highlight}}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;position:relative;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background-color:#4a5562}.tox .tox-number-input input:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{color:#fff;height:34px;position:relative;text-align:center;width:24px}@media (forced-colors: active){.tox .tox-number-input button:hover,.tox .tox-number-input button:focus,.tox .tox-number-input button:active{outline:1px solid currentColor!important}}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}@media (forced-colors: active){.tox .tox-number-input button svg,.tox .tox-number-input button svg:active,.tox .tox-number-input button svg:hover{fill:currentColor!important}.tox .tox-number-input button svg:disabled{filter:contrast(0)}}.tox .tox-number-input button:focus{background:#4a5562;z-index:1}.tox .tox-number-input button:focus:after{border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-number-input button:focus:after{border:2px solid highlight}}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:#222f3e;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-tbtn__select-chevron svg{fill:currentColor}}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke:focus{background:#4a5562}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff;position:relative;z-index:1}.tox .tox-split-button:focus:after{pointer-events:none;border-radius:3px;bottom:0;box-shadow:0 0 0 0 transparent;content:"";left:0;position:absolute;right:0;top:0}@media (forced-colors: active){.tox .tox-split-button:focus:after{border:2px solid highlight}}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button>*:nth-child(1){border-bottom-left-radius:3px;border-top-left-radius:3px}.tox .tox-split-button>*:nth-child(2){border-bottom-right-radius:3px;border-top-right-radius:3px}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}@media (forced-colors: active){.tox .tox-split-button__chevron svg{fill:currentColor}}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button:focus .tox-tbtn{background-color:transparent}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:#222f3e;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0;background-size:calc(100% - 8px) calc(100% + -0)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}@media (forced-colors: active){.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{outline:1px solid currentColor}}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}@media (forced-colors: active){.tox.tox-tinymce-aux .tox-toolbar__overflow{border:solid}}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;max-width:15em;padding:8px;pointer-events:none;position:relative;width:max-content;z-index:1150}.tox .tox-tooltip__body{background-color:#2a3746;border-radius:3px;box-shadow:none;color:#fff;font-size:12px;font-style:normal;font-weight:600;overflow-wrap:break-word;padding:4px 6px;text-transform:none}@media (forced-colors: active){.tox .tox-tooltip__body{outline:outset 1px}}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #2A3746;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #2A3746;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #2A3746;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #2A3746;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-revisionhistory__pane{padding:0!important}.tox .tox-revisionhistory__container{display:flex;flex-direction:column;height:100%}.tox .tox-revisionhistory{background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);display:flex;flex:1;height:100%;margin-top:8px;overflow-x:auto;overflow-y:hidden;position:relative;width:100%}.tox .tox-revisionhistory--align-right{margin-left:auto}.tox .tox-revisionhistory__iframe{flex:1}.tox .tox-revisionhistory__sidebar{display:flex;flex-direction:column;height:100%;min-width:248px;width:316px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__sidebar-title{background-color:#222f3e;box-shadow:0 4px 8px #222f3e1a;color:#fff;font-size:20px;font-weight:400;line-height:28px;padding:12px;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions{background-color:#2b3b4e;display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:10px 12px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus{height:100%;position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{box-shadow:0 0 0 0 transparent;content:"";position:absolute;border-radius:3px;bottom:1px;left:1px;right:1px;top:1px}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card{background-color:#222f3e;border:1px solid rgba(255,255,255,.15);border-radius:6px;color:#fff;cursor:pointer;display:flex;flex-direction:column;font-size:14px;gap:12px;padding:12px;width:100%}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:hover{box-shadow:0 4px 8px #222f3e1a}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus{position:relative;z-index:1}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{bottom:0;box-shadow:0 0 0 0 transparent #285ec7;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #285ec7;box-shadow:0 0 0 2px #285ec7!important}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card:focus:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected{background-color:#62430b;box-shadow:0 4px 8px #222f3e1a;position:relative}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{bottom:0;box-shadow:0 0 0 0 transparent #cea215;content:"";left:0;position:absolute;right:0;top:0;border-radius:6px;box-shadow:0 0 0 2px #cea215}@media (forced-colors: active){.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card.tox-revisionhistory__card--selected:after{border:2px solid highlight}}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date{display:flex;gap:12px;justify-content:space-between}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-date-label{font-size:16px;line-height:24px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-label{font-size:12px;font-weight:600;line-height:24px;padding:0}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author{align-items:center;display:flex;flex:1 0 0;gap:8px;height:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700;line-height:18px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__avatar{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__norevision{color:#ffffff80;font-size:16px;line-height:24px;padding:5px 5.5px}.tox .tox-revisionhistory__sidebar .tox-revisionhistory__revisions .tox-revisionhistory__card-check-icon{color:#fff;height:24px}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column;height:100%}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view__label{color:#fff;font-weight:700;line-height:24px;padding:4px 16px;text-align:center;white-space:nowrap}.tox .tox-view__label--normal{font-size:16px}.tox .tox-view__label--large{font-size:20px}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;overflow-x:auto;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;position:relative;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff}.tox .tox-statusbar__branding svg{fill:#fffc;height:1em;margin-left:.3em;width:auto}@media (forced-colors: active){.tox .tox-statusbar__branding svg{fill:currentColor}}.tox .tox-statusbar__branding a{align-items:center;display:inline-flex}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox[dir=rtl] .tox-statusbar__branding svg{margin-left:0;margin-right:.3em}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.tox-tinymce{border:none!important}.app-static-name[data-v-90a2677a]{cursor:text;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-name[data-v-018eae28]{position:sticky;top:100px}.message[data-v-018eae28]{padding-top:10px}.message__timestamp[data-v-018eae28]{font-size:.75rem;color:rgba(var(--v-theme-bluegrey))}.message__content[data-v-018eae28]{font-size:14px;word-break:break-word}.comment__actions[data-v-018eae28]{position:absolute;right:0}.card[data-v-3ad3a67b]{position:sticky;height:87.5vh;top:3.9rem}.close-btn[data-v-3ad3a67b]{position:absolute;top:0;right:0}.content[data-v-3ad3a67b]{position:relative;height:100%}.empty-state[data-v-3ad3a67b]{margin-top:200px;text-align:center}.empty-state__text[data-v-3ad3a67b]{max-width:20em;margin:0 auto;line-height:1.8rem;color:rgb(var(--v-theme-bluegrey))}.comments-wrapper[data-v-3ad3a67b]{max-height:66vh;overflow-y:auto}.cell-container{padding-top:0}.cell-container--app{padding-bottom:0}.cm-editor{height:auto!important}.close-button[data-v-4e4c74a2]{position:absolute;top:10px;right:10px;width:24px;height:24px}.zt-app-bar[data-v-e344242c]{padding-top:6px;padding-bottom:6px}.logo-btn[data-v-e344242c] .v-icon{width:1.5em;height:1.5em}.cm-editor[data-v-e344242c]{height:auto!important}.click-edit[data-v-e344242c]{max-width:200px;width:100%}.click-edit__name[data-v-e344242c]{font-weight:400;cursor:text}.click-edit__show-text[data-v-e344242c],.click-edit__edit-field-wrapper[data-v-e344242c]{display:flex;align-items:center}.click-edit__name[data-v-e344242c]:hover{padding-left:3px;padding-right:3px;cursor:text;border:1px solid #294455}.click-edit__edit-field[data-v-e344242c]{margin-top:-11px}.click-edit__edit-field[data-v-e344242c] .v-field__input{font-size:1.5rem;letter-spacing:normal}@media (min-width: 600px){.click-edit[data-v-e344242c]{max-width:250px}}@media (min-width: 1280px){.click-edit[data-v-e344242c]{max-width:450px}}@media (min-width: 1920px){.click-edit[data-v-e344242c]{max-width:600px}}.content[data-v-e344242c]{padding-left:0!important;padding-right:0!important}.content__comments[data-v-e344242c]{width:0;transition:width .15s ease}.content__comments--show[data-v-e344242c]{width:380px}.footer[data-v-e344242c]{display:flex;justify-content:space-between;flex-direction:column;padding:4px 16px}.footer__left-container[data-v-e344242c],.footer__right-container[data-v-e344242c]{display:flex;width:100%}@media (min-width: 960px){.footer__left-container[data-v-e344242c],.footer__right-container[data-v-e344242c]{align-items:center;width:auto}}.footer__right-container[data-v-e344242c]{align-items:center;flex-direction:column;justify-content:flex-start}@media (min-width: 600px){.footer__right-container[data-v-e344242c]{flex-direction:row}}.footer__left-container[data-v-e344242c]{flex-direction:column;margin:0 0 20px}@media (min-width: 600px){.footer__left-container[data-v-e344242c]{margin:0;flex-direction:row}}.footer__queue-length-wrapper[data-v-e344242c]{display:flex;justify-content:flex-start;width:100%}@media (min-width: 600px){.footer__queue-length-wrapper[data-v-e344242c]{width:auto}}.footer .dot-divider[data-v-e344242c]{display:none;margin:0 5px}@media (min-width: 600px){.footer .dot-divider[data-v-e344242c]{display:flex;margin:0 16px}}@media (min-width: 1280px){.footer .dot-divider[data-v-e344242c]{margin:0 16px}}@media (min-width: 1920px){.footer .dot-divider[data-v-e344242c]{margin:0 24px}}.footer__status-wrapper[data-v-e344242c]{display:flex;justify-content:flex-start;width:100%;align-items:center}.footer__status-wrapper .dot-divider[data-v-e344242c]{display:none}@media (min-width: 960px){.footer__status-wrapper .dot-divider[data-v-e344242c]{display:flex}}.footer__code-version-icon[data-v-e344242c]{margin-right:0;margin-left:-5px}@media (min-width: 600px){.footer__code-version-icon[data-v-e344242c]{margin-right:12px}}.footer__queue-length-btn[data-v-e344242c]{margin:0 2px}@media (min-width: 960px){.footer__queue-length-btn[data-v-e344242c]{margin:0 8px 0 24px}}.footer__code-running-loader[data-v-e344242c]{margin-right:10px}@media (min-width: 1280px){.footer__code-running-loader[data-v-e344242c]{margin-right:10px}}.footer__queue-list[data-v-e344242c]{font-size:.625rem}.footer__queue-list-item--pending[data-v-e344242c]{color:rgba(var(--v-theme-bluegrey-darken-2))}.footer__status[data-v-e344242c]{color:rgba(var(--v-theme-success))}.footer__status--error[data-v-e344242c]{color:rgba(var(--v-theme-error))}.footer__status--connected[data-v-e344242c]{color:rgba(var(--v-theme-info))}@media (min-width: 960px){.footer[data-v-e344242c]{flex-direction:row;height:34px}}.toggle-group[data-v-e344242c]{display:flex;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}html,body{font-family:Pathway Extreme,sans-serif}h1,h2,h3,h4,h5,p{margin:0}ul{list-style-position:inside}.zt-menu{border:1px solid rgba(var(--v-theme-bluegrey))}.zt-menu .v-list-item__prepend{margin-right:12px}.v-container{max-width:1250px}.code-output{white-space:pre-wrap}.v-expansion-panel--active>.v-expansion-panel-title{min-height:31px}.add-cell-item:hover{background-color:rgba(var(--v-theme-bluegrey))}.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important}.bg-black{color:#fff!important}.bg-white{background-color:#fff!important}.bg-white{color:#000!important}.bg-transparent{background-color:transparent!important}.bg-transparent{color:currentColor!important}.bg-red{background-color:#f44336!important}.bg-red{color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important}.bg-red-lighten-5{color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important}.bg-red-lighten-4{color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important}.bg-red-lighten-3{color:#000!important}.bg-red-lighten-2{background-color:#e57373!important}.bg-red-lighten-2{color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important}.bg-red-lighten-1{color:#fff!important}.bg-red-darken-1{background-color:#e53935!important}.bg-red-darken-1{color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important}.bg-red-darken-2{color:#fff!important}.bg-red-darken-3{background-color:#c62828!important}.bg-red-darken-3{color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important}.bg-red-darken-4{color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important}.bg-red-accent-1{color:#000!important}.bg-red-accent-2{background-color:#ff5252!important}.bg-red-accent-2{color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important}.bg-red-accent-3{color:#fff!important}.bg-red-accent-4{background-color:#d50000!important}.bg-red-accent-4{color:#fff!important}.bg-pink{background-color:#e91e63!important}.bg-pink{color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important}.bg-pink-lighten-5{color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important}.bg-pink-lighten-4{color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important}.bg-pink-lighten-3{color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important}.bg-pink-lighten-2{color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important}.bg-pink-lighten-1{color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important}.bg-pink-darken-1{color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important}.bg-pink-darken-2{color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important}.bg-pink-darken-3{color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important}.bg-pink-darken-4{color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important}.bg-pink-accent-1{color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important}.bg-pink-accent-2{color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important}.bg-pink-accent-3{color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important}.bg-pink-accent-4{color:#fff!important}.bg-purple{background-color:#9c27b0!important}.bg-purple{color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important}.bg-purple-lighten-5{color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important}.bg-purple-lighten-4{color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important}.bg-purple-lighten-3{color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important}.bg-purple-lighten-2{color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important}.bg-purple-lighten-1{color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important}.bg-purple-darken-1{color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important}.bg-purple-darken-2{color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important}.bg-purple-darken-3{color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important}.bg-purple-darken-4{color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important}.bg-purple-accent-1{color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important}.bg-purple-accent-2{color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important}.bg-purple-accent-3{color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important}.bg-purple-accent-4{color:#fff!important}.bg-deep-purple{background-color:#673ab7!important}.bg-deep-purple{color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important}.bg-deep-purple-lighten-5{color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important}.bg-deep-purple-lighten-4{color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important}.bg-deep-purple-lighten-3{color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important}.bg-deep-purple-lighten-2{color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important}.bg-deep-purple-lighten-1{color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important}.bg-deep-purple-darken-1{color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important}.bg-deep-purple-darken-2{color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important}.bg-deep-purple-darken-3{color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important}.bg-deep-purple-darken-4{color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important}.bg-deep-purple-accent-1{color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important}.bg-deep-purple-accent-2{color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important}.bg-deep-purple-accent-3{color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important}.bg-deep-purple-accent-4{color:#fff!important}.bg-indigo{background-color:#3f51b5!important}.bg-indigo{color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important}.bg-indigo-lighten-5{color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important}.bg-indigo-lighten-4{color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important}.bg-indigo-lighten-3{color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important}.bg-indigo-lighten-2{color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important}.bg-indigo-lighten-1{color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important}.bg-indigo-darken-1{color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important}.bg-indigo-darken-2{color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important}.bg-indigo-darken-3{color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important}.bg-indigo-darken-4{color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important}.bg-indigo-accent-1{color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important}.bg-indigo-accent-2{color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important}.bg-indigo-accent-3{color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important}.bg-indigo-accent-4{color:#fff!important}.bg-blue{background-color:#2196f3!important}.bg-blue{color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important}.bg-blue-lighten-5{color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important}.bg-blue-lighten-4{color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important}.bg-blue-lighten-3{color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important}.bg-blue-lighten-2{color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important}.bg-blue-lighten-1{color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important}.bg-blue-darken-1{color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important}.bg-blue-darken-2{color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important}.bg-blue-darken-3{color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important}.bg-blue-darken-4{color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important}.bg-blue-accent-1{color:#000!important}.bg-blue-accent-2{background-color:#448aff!important}.bg-blue-accent-2{color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important}.bg-blue-accent-3{color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important}.bg-blue-accent-4{color:#fff!important}.bg-light-blue{background-color:#03a9f4!important}.bg-light-blue{color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important}.bg-light-blue-lighten-5{color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important}.bg-light-blue-lighten-4{color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important}.bg-light-blue-lighten-3{color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important}.bg-light-blue-lighten-2{color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important}.bg-light-blue-lighten-1{color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important}.bg-light-blue-darken-1{color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important}.bg-light-blue-darken-2{color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important}.bg-light-blue-darken-3{color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important}.bg-light-blue-darken-4{color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important}.bg-light-blue-accent-1{color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important}.bg-light-blue-accent-2{color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important}.bg-light-blue-accent-3{color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important}.bg-light-blue-accent-4{color:#fff!important}.bg-cyan{background-color:#00bcd4!important}.bg-cyan{color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important}.bg-cyan-lighten-5{color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important}.bg-cyan-lighten-4{color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important}.bg-cyan-lighten-3{color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important}.bg-cyan-lighten-2{color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important}.bg-cyan-lighten-1{color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important}.bg-cyan-darken-1{color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important}.bg-cyan-darken-2{color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important}.bg-cyan-darken-3{color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important}.bg-cyan-darken-4{color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important}.bg-cyan-accent-1{color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important}.bg-cyan-accent-2{color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important}.bg-cyan-accent-3{color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important}.bg-cyan-accent-4{color:#fff!important}.bg-teal{background-color:#009688!important}.bg-teal{color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important}.bg-teal-lighten-5{color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important}.bg-teal-lighten-4{color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important}.bg-teal-lighten-3{color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important}.bg-teal-lighten-2{color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important}.bg-teal-lighten-1{color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important}.bg-teal-darken-1{color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important}.bg-teal-darken-2{color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important}.bg-teal-darken-3{color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important}.bg-teal-darken-4{color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important}.bg-teal-accent-1{color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important}.bg-teal-accent-2{color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important}.bg-teal-accent-3{color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important}.bg-teal-accent-4{color:#fff!important}.bg-green{background-color:#4caf50!important}.bg-green{color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important}.bg-green-lighten-5{color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important}.bg-green-lighten-4{color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important}.bg-green-lighten-3{color:#000!important}.bg-green-lighten-2{background-color:#81c784!important}.bg-green-lighten-2{color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important}.bg-green-lighten-1{color:#fff!important}.bg-green-darken-1{background-color:#43a047!important}.bg-green-darken-1{color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important}.bg-green-darken-2{color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important}.bg-green-darken-3{color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important}.bg-green-darken-4{color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important}.bg-green-accent-1{color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important}.bg-green-accent-2{color:#000!important}.bg-green-accent-3{background-color:#00e676!important}.bg-green-accent-3{color:#000!important}.bg-green-accent-4{background-color:#00c853!important}.bg-green-accent-4{color:#000!important}.bg-light-green{background-color:#8bc34a!important}.bg-light-green{color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important}.bg-light-green-lighten-5{color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important}.bg-light-green-lighten-4{color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important}.bg-light-green-lighten-3{color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important}.bg-light-green-lighten-2{color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important}.bg-light-green-lighten-1{color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important}.bg-light-green-darken-1{color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important}.bg-light-green-darken-2{color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important}.bg-light-green-darken-3{color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important}.bg-light-green-darken-4{color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important}.bg-light-green-accent-1{color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important}.bg-light-green-accent-2{color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important}.bg-light-green-accent-3{color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important}.bg-light-green-accent-4{color:#000!important}.bg-lime{background-color:#cddc39!important}.bg-lime{color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important}.bg-lime-lighten-5{color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important}.bg-lime-lighten-4{color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important}.bg-lime-lighten-3{color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important}.bg-lime-lighten-2{color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important}.bg-lime-lighten-1{color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important}.bg-lime-darken-1{color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important}.bg-lime-darken-2{color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important}.bg-lime-darken-3{color:#fff!important}.bg-lime-darken-4{background-color:#827717!important}.bg-lime-darken-4{color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important}.bg-lime-accent-1{color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important}.bg-lime-accent-2{color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important}.bg-lime-accent-3{color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important}.bg-lime-accent-4{color:#000!important}.bg-yellow{background-color:#ffeb3b!important}.bg-yellow{color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important}.bg-yellow-lighten-5{color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important}.bg-yellow-lighten-4{color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important}.bg-yellow-lighten-3{color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important}.bg-yellow-lighten-2{color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important}.bg-yellow-lighten-1{color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important}.bg-yellow-darken-1{color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important}.bg-yellow-darken-2{color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important}.bg-yellow-darken-3{color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important}.bg-yellow-darken-4{color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important}.bg-yellow-accent-1{color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important}.bg-yellow-accent-2{color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important}.bg-yellow-accent-3{color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important}.bg-yellow-accent-4{color:#000!important}.bg-amber{background-color:#ffc107!important}.bg-amber{color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important}.bg-amber-lighten-5{color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important}.bg-amber-lighten-4{color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important}.bg-amber-lighten-3{color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important}.bg-amber-lighten-2{color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important}.bg-amber-lighten-1{color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important}.bg-amber-darken-1{color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important}.bg-amber-darken-2{color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important}.bg-amber-darken-3{color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important}.bg-amber-darken-4{color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important}.bg-amber-accent-1{color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important}.bg-amber-accent-2{color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important}.bg-amber-accent-3{color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important}.bg-amber-accent-4{color:#000!important}.bg-orange{background-color:#ff9800!important}.bg-orange{color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important}.bg-orange-lighten-5{color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important}.bg-orange-lighten-4{color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important}.bg-orange-lighten-3{color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important}.bg-orange-lighten-2{color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important}.bg-orange-lighten-1{color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important}.bg-orange-darken-1{color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important}.bg-orange-darken-2{color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important}.bg-orange-darken-3{color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important}.bg-orange-darken-4{color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important}.bg-orange-accent-1{color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important}.bg-orange-accent-2{color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important}.bg-orange-accent-3{color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important}.bg-orange-accent-4{color:#fff!important}.bg-deep-orange{background-color:#ff5722!important}.bg-deep-orange{color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important}.bg-deep-orange-lighten-5{color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important}.bg-deep-orange-lighten-4{color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important}.bg-deep-orange-lighten-3{color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important}.bg-deep-orange-lighten-2{color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important}.bg-deep-orange-lighten-1{color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important}.bg-deep-orange-darken-1{color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important}.bg-deep-orange-darken-2{color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important}.bg-deep-orange-darken-3{color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important}.bg-deep-orange-darken-4{color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important}.bg-deep-orange-accent-1{color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important}.bg-deep-orange-accent-2{color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important}.bg-deep-orange-accent-3{color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important}.bg-deep-orange-accent-4{color:#fff!important}.bg-brown{background-color:#795548!important}.bg-brown{color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important}.bg-brown-lighten-5{color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important}.bg-brown-lighten-4{color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important}.bg-brown-lighten-3{color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important}.bg-brown-lighten-2{color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important}.bg-brown-lighten-1{color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important}.bg-brown-darken-1{color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important}.bg-brown-darken-2{color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important}.bg-brown-darken-3{color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important}.bg-brown-darken-4{color:#fff!important}.bg-blue-grey{background-color:#607d8b!important}.bg-blue-grey{color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important}.bg-blue-grey-lighten-5{color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important}.bg-blue-grey-lighten-4{color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important}.bg-blue-grey-lighten-3{color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important}.bg-blue-grey-lighten-2{color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important}.bg-blue-grey-lighten-1{color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important}.bg-blue-grey-darken-1{color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important}.bg-blue-grey-darken-2{color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important}.bg-blue-grey-darken-3{color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important}.bg-blue-grey-darken-4{color:#fff!important}.bg-grey{background-color:#9e9e9e!important}.bg-grey{color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important}.bg-grey-lighten-5{color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important}.bg-grey-lighten-4{color:#000!important}.bg-grey-lighten-3{background-color:#eee!important}.bg-grey-lighten-3{color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important}.bg-grey-lighten-2{color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important}.bg-grey-lighten-1{color:#000!important}.bg-grey-darken-1{background-color:#757575!important}.bg-grey-darken-1{color:#fff!important}.bg-grey-darken-2{background-color:#616161!important}.bg-grey-darken-2{color:#fff!important}.bg-grey-darken-3{background-color:#424242!important}.bg-grey-darken-3{color:#fff!important}.bg-grey-darken-4{background-color:#212121!important}.bg-grey-darken-4{color:#fff!important}.bg-shades-black{background-color:#000!important}.bg-shades-black{color:#fff!important}.bg-shades-white{background-color:#fff!important}.bg-shades-white{color:#000!important}.bg-shades-transparent{background-color:transparent!important}.bg-shades-transparent{color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! - * ress.css • v2.0.4 - * MIT License - * github.com/filipelinhares/ress - */html{box-sizing:border-box;overflow-y:scroll;-webkit-text-size-adjust:100%;word-break:normal;-moz-tab-size:4;tab-size:4}*,:before,:after{background-repeat:no-repeat;box-sizing:inherit}:before,:after{text-decoration:inherit;vertical-align:inherit}*{padding:0;margin:0}hr{overflow:visible;height:0}details,main{display:block}summary{display:list-item}small{font-size:80%}[hidden]{display:none}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}a{background-color:transparent}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace,monospace}pre{font-size:1em}b,strong{font-weight:bolder}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}input{border-radius:0}[disabled]{cursor:default}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto;resize:vertical}button,input,optgroup,select,textarea{font:inherit}optgroup{font-weight:700}button{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit],[role=button]{cursor:pointer;color:inherit}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{outline:1px dotted ButtonText}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,input,select,textarea{background-color:transparent;border-style:none}select{-moz-appearance:none;-webkit-appearance:none}select::-ms-expand{display:none}select::-ms-value{color:currentColor}legend{border:0;color:inherit;display:table;white-space:normal;max-width:100%}::-webkit-file-upload-button{-webkit-appearance:button;color:inherit;font:inherit}::-ms-clear,::-ms-reveal{display:none}img{border-style:none}progress{vertical-align:baseline}@media screen{[hidden~=screen]{display:inherit}[hidden~=screen]:not(:active):not(:focus):not(:target){position:absolute!important;clip:rect(0 0 0 0)!important}}[aria-busy=true]{cursor:progress}[aria-controls]{cursor:pointer}[aria-disabled=true]{cursor:default}.dialog-transition-enter-active,.dialog-bottom-transition-enter-active,.dialog-top-transition-enter-active{transition-duration:225ms!important;transition-timing-function:cubic-bezier(0,0,.2,1)!important}.dialog-transition-leave-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-leave-active{transition-duration:125ms!important;transition-timing-function:cubic-bezier(.4,0,1,1)!important}.dialog-transition-enter-active,.dialog-transition-leave-active,.dialog-bottom-transition-enter-active,.dialog-bottom-transition-leave-active,.dialog-top-transition-enter-active,.dialog-top-transition-leave-active{transition-property:transform,opacity!important;pointer-events:none}.dialog-transition-enter-from,.dialog-transition-leave-to{transform:scale(.9);opacity:0}.dialog-transition-enter-to,.dialog-transition-leave-from{opacity:1}.dialog-bottom-transition-enter-from,.dialog-bottom-transition-leave-to{transform:translateY(calc(50vh + 50%))}.dialog-top-transition-enter-from,.dialog-top-transition-leave-to{transform:translateY(calc(-50vh - 50%))}.picker-transition-enter-active,.picker-reverse-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move,.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from,.picker-transition-leave-to,.picker-reverse-transition-enter-from,.picker-reverse-transition-leave-to{opacity:0}.picker-transition-leave-from,.picker-transition-leave-active,.picker-transition-leave-to,.picker-reverse-transition-leave-from,.picker-reverse-transition-leave-active,.picker-reverse-transition-leave-to{position:absolute!important}.picker-transition-enter-active,.picker-transition-leave-active,.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-property:transform,opacity!important}.picker-transition-enter-active,.picker-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-transition-enter-from{transform:translate(100%)}.picker-transition-leave-to{transform:translate(-100%)}.picker-reverse-transition-enter-active,.picker-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.picker-reverse-transition-enter-from{transform:translate(-100%)}.picker-reverse-transition-leave-to{transform:translate(100%)}.expand-transition-enter-active,.expand-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-transition-enter-active,.expand-transition-leave-active{transition-property:height!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.expand-x-transition-enter-active,.expand-x-transition-leave-active{transition-property:width!important}.scale-transition-enter-active,.scale-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-transition-leave-to{opacity:0}.scale-transition-leave-active{transition-duration:.1s!important}.scale-transition-enter-from{opacity:0;transform:scale(0)}.scale-transition-enter-active,.scale-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-transition-leave-to{opacity:0}.scale-rotate-transition-leave-active{transition-duration:.1s!important}.scale-rotate-transition-enter-from{opacity:0;transform:scale(0) rotate(-45deg)}.scale-rotate-transition-enter-active,.scale-rotate-transition-leave-active{transition-property:transform,opacity!important}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scale-rotate-reverse-transition-leave-to{opacity:0}.scale-rotate-reverse-transition-leave-active{transition-duration:.1s!important}.scale-rotate-reverse-transition-enter-from{opacity:0;transform:scale(0) rotate(45deg)}.scale-rotate-reverse-transition-enter-active,.scale-rotate-reverse-transition-leave-active{transition-property:transform,opacity!important}.message-transition-enter-active,.message-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.message-transition-enter-from,.message-transition-leave-to{opacity:0;transform:translateY(-15px)}.message-transition-leave-from,.message-transition-leave-active{position:absolute}.message-transition-enter-active,.message-transition-leave-active{transition-property:transform,opacity!important}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-transition-enter-from,.slide-y-transition-leave-to{opacity:0;transform:translateY(-15px)}.slide-y-transition-enter-active,.slide-y-transition-leave-active{transition-property:transform,opacity!important}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-y-reverse-transition-enter-from,.slide-y-reverse-transition-leave-to{opacity:0;transform:translateY(15px)}.slide-y-reverse-transition-enter-active,.slide-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-transition-enter-from,.scroll-y-transition-leave-to{opacity:0}.scroll-y-transition-enter-from{transform:translateY(-15px)}.scroll-y-transition-leave-to{transform:translateY(15px)}.scroll-y-transition-enter-active,.scroll-y-transition-leave-active{transition-property:transform,opacity!important}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-y-reverse-transition-enter-from,.scroll-y-reverse-transition-leave-to{opacity:0}.scroll-y-reverse-transition-enter-from{transform:translateY(15px)}.scroll-y-reverse-transition-leave-to{transform:translateY(-15px)}.scroll-y-reverse-transition-enter-active,.scroll-y-reverse-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-transition-enter-from,.scroll-x-transition-leave-to{opacity:0}.scroll-x-transition-enter-from{transform:translate(-15px)}.scroll-x-transition-leave-to{transform:translate(15px)}.scroll-x-transition-enter-active,.scroll-x-transition-leave-active{transition-property:transform,opacity!important}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.scroll-x-reverse-transition-enter-from,.scroll-x-reverse-transition-leave-to{opacity:0}.scroll-x-reverse-transition-enter-from{transform:translate(15px)}.scroll-x-reverse-transition-leave-to{transform:translate(-15px)}.scroll-x-reverse-transition-enter-active,.scroll-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-transition-enter-from,.slide-x-transition-leave-to{opacity:0;transform:translate(-15px)}.slide-x-transition-enter-active,.slide-x-transition-leave-active{transition-property:transform,opacity!important}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.slide-x-reverse-transition-enter-from,.slide-x-reverse-transition-leave-to{opacity:0;transform:translate(15px)}.slide-x-reverse-transition-enter-active,.slide-x-reverse-transition-leave-active{transition-property:transform,opacity!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fade-transition-enter-from,.fade-transition-leave-to{opacity:0!important}.fade-transition-enter-active,.fade-transition-leave-active{transition-property:opacity!important}.fab-transition-enter-active,.fab-transition-leave-active{transition-duration:.3s!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-move{transition-duration:.5s!important;transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.fab-transition-enter-from,.fab-transition-leave-to{transform:scale(0) rotate(-45deg)}.fab-transition-enter-active,.fab-transition-leave-active{transition-property:transform!important}.v-locale--is-rtl{direction:rtl}.v-locale--is-ltr{direction:ltr}.blockquote{padding:16px 0 16px 24px;font-size:18px;font-weight:300}html{font-family:Pathway Extreme,sans-serif;line-height:1.5;font-size:1rem;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:rgba(0,0,0,0)}html.overflow-y-hidden{overflow-y:hidden!important}:root{--v-theme-overlay-multiplier: 1;--v-scrollbar-offset: 0px}@supports (-webkit-touch-callout: none){body{cursor:pointer}}@media only print{.hidden-print-only{display:none!important}}@media only screen{.hidden-screen-only{display:none!important}}@media (max-width: 599.98px){.hidden-xs{display:none!important}}@media (min-width: 600px) and (max-width: 959.98px){.hidden-sm{display:none!important}}@media (min-width: 960px) and (max-width: 1279.98px){.hidden-md{display:none!important}}@media (min-width: 1280px) and (max-width: 1919.98px){.hidden-lg{display:none!important}}@media (min-width: 1920px) and (max-width: 2559.98px){.hidden-xl{display:none!important}}@media (min-width: 2560px){.hidden-xxl{display:none!important}}@media (min-width: 600px){.hidden-sm-and-up{display:none!important}}@media (min-width: 960px){.hidden-md-and-up{display:none!important}}@media (min-width: 1280px){.hidden-lg-and-up{display:none!important}}@media (min-width: 1920px){.hidden-xl-and-up{display:none!important}}@media (max-width: 959.98px){.hidden-sm-and-down{display:none!important}}@media (max-width: 1279.98px){.hidden-md-and-down{display:none!important}}@media (max-width: 1919.98px){.hidden-lg-and-down{display:none!important}}@media (max-width: 2559.98px){.hidden-xl-and-down{display:none!important}}.elevation-24{box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-23{box-shadow:0 11px 14px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 23px 36px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 44px 8px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-22{box-shadow:0 10px 14px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 22px 35px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 42px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-21{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 21px 33px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 40px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-20{box-shadow:0 10px 13px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 20px 31px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 8px 38px 7px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-19{box-shadow:0 9px 12px -6px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 19px 29px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 36px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-18{box-shadow:0 9px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 18px 28px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 7px 34px 6px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-17{box-shadow:0 8px 11px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 17px 26px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 32px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-16{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-15{box-shadow:0 8px 9px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 15px 22px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 28px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-14{box-shadow:0 7px 9px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 14px 21px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 26px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-13{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 13px 19px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 24px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-12{box-shadow:0 7px 8px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 12px 17px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 5px 22px 4px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-11{box-shadow:0 6px 7px -4px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 11px 15px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 20px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-10{box-shadow:0 6px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 10px 14px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 4px 18px 3px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-9{box-shadow:0 5px 6px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 9px 12px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 16px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-8{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-7{box-shadow:0 4px 5px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 7px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 2px 16px 1px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-6{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 6px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 18px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-5{box-shadow:0 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 5px 8px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 14px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-4{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-3{box-shadow:0 3px 3px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 3px 4px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 8px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-2{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-1{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.elevation-0{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))!important}.d-sr-only,.d-sr-only-focusable:not(:focus){border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-scroll{overflow-y:scroll!important}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.float-none{float:none!important}.float-left{float:left!important}.float-right{float:right!important}.v-locale--is-rtl .float-end{float:left!important}.v-locale--is-rtl .float-start,.v-locale--is-ltr .float-end{float:right!important}.v-locale--is-ltr .float-start{float:left!important}.flex-fill,.flex-1-1{flex:1 1 auto!important}.flex-1-0{flex:1 0 auto!important}.flex-0-1{flex:0 1 auto!important}.flex-0-0{flex:0 0 auto!important}.flex-1-1-100{flex:1 1 100%!important}.flex-1-0-100{flex:1 0 100%!important}.flex-0-1-100{flex:0 1 100%!important}.flex-0-0-100{flex:0 0 100%!important}.flex-1-1-0{flex:1 1 0!important}.flex-1-0-0{flex:1 0 0!important}.flex-0-1-0{flex:0 1 0!important}.flex-0-0-0{flex:0 0 0!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-space-between{justify-content:space-between!important}.justify-space-around{justify-content:space-around!important}.justify-space-evenly{justify-content:space-evenly!important}.align-start{align-items:flex-start!important}.align-end{align-items:flex-end!important}.align-center{align-items:center!important}.align-baseline{align-items:baseline!important}.align-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-space-between{align-content:space-between!important}.align-content-space-around{align-content:space-around!important}.align-content-space-evenly{align-content:space-evenly!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-6{order:6!important}.order-7{order:7!important}.order-8{order:8!important}.order-9{order:9!important}.order-10{order:10!important}.order-11{order:11!important}.order-12{order:12!important}.order-last{order:13!important}.ga-0{gap:0px!important}.ga-1{gap:4px!important}.ga-2{gap:8px!important}.ga-3{gap:12px!important}.ga-4{gap:16px!important}.ga-5{gap:20px!important}.ga-6{gap:24px!important}.ga-7{gap:28px!important}.ga-8{gap:32px!important}.ga-9{gap:36px!important}.ga-10{gap:40px!important}.ga-11{gap:44px!important}.ga-12{gap:48px!important}.ga-13{gap:52px!important}.ga-14{gap:56px!important}.ga-15{gap:60px!important}.ga-16{gap:64px!important}.ga-auto{gap:auto!important}.gr-0{row-gap:0px!important}.gr-1{row-gap:4px!important}.gr-2{row-gap:8px!important}.gr-3{row-gap:12px!important}.gr-4{row-gap:16px!important}.gr-5{row-gap:20px!important}.gr-6{row-gap:24px!important}.gr-7{row-gap:28px!important}.gr-8{row-gap:32px!important}.gr-9{row-gap:36px!important}.gr-10{row-gap:40px!important}.gr-11{row-gap:44px!important}.gr-12{row-gap:48px!important}.gr-13{row-gap:52px!important}.gr-14{row-gap:56px!important}.gr-15{row-gap:60px!important}.gr-16{row-gap:64px!important}.gr-auto{row-gap:auto!important}.gc-0{column-gap:0px!important}.gc-1{column-gap:4px!important}.gc-2{column-gap:8px!important}.gc-3{column-gap:12px!important}.gc-4{column-gap:16px!important}.gc-5{column-gap:20px!important}.gc-6{column-gap:24px!important}.gc-7{column-gap:28px!important}.gc-8{column-gap:32px!important}.gc-9{column-gap:36px!important}.gc-10{column-gap:40px!important}.gc-11{column-gap:44px!important}.gc-12{column-gap:48px!important}.gc-13{column-gap:52px!important}.gc-14{column-gap:56px!important}.gc-15{column-gap:60px!important}.gc-16{column-gap:64px!important}.gc-auto{column-gap:auto!important}.ma-0{margin:0!important}.ma-1{margin:4px!important}.ma-2{margin:8px!important}.ma-3{margin:12px!important}.ma-4{margin:16px!important}.ma-5{margin:20px!important}.ma-6{margin:24px!important}.ma-7{margin:28px!important}.ma-8{margin:32px!important}.ma-9{margin:36px!important}.ma-10{margin:40px!important}.ma-11{margin:44px!important}.ma-12{margin:48px!important}.ma-13{margin:52px!important}.ma-14{margin:56px!important}.ma-15{margin:60px!important}.ma-16{margin:64px!important}.ma-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:4px!important;margin-left:4px!important}.mx-2{margin-right:8px!important;margin-left:8px!important}.mx-3{margin-right:12px!important;margin-left:12px!important}.mx-4{margin-right:16px!important;margin-left:16px!important}.mx-5{margin-right:20px!important;margin-left:20px!important}.mx-6{margin-right:24px!important;margin-left:24px!important}.mx-7{margin-right:28px!important;margin-left:28px!important}.mx-8{margin-right:32px!important;margin-left:32px!important}.mx-9{margin-right:36px!important;margin-left:36px!important}.mx-10{margin-right:40px!important;margin-left:40px!important}.mx-11{margin-right:44px!important;margin-left:44px!important}.mx-12{margin-right:48px!important;margin-left:48px!important}.mx-13{margin-right:52px!important;margin-left:52px!important}.mx-14{margin-right:56px!important;margin-left:56px!important}.mx-15{margin-right:60px!important;margin-left:60px!important}.mx-16{margin-right:64px!important;margin-left:64px!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:4px!important;margin-bottom:4px!important}.my-2{margin-top:8px!important;margin-bottom:8px!important}.my-3{margin-top:12px!important;margin-bottom:12px!important}.my-4{margin-top:16px!important;margin-bottom:16px!important}.my-5{margin-top:20px!important;margin-bottom:20px!important}.my-6{margin-top:24px!important;margin-bottom:24px!important}.my-7{margin-top:28px!important;margin-bottom:28px!important}.my-8{margin-top:32px!important;margin-bottom:32px!important}.my-9{margin-top:36px!important;margin-bottom:36px!important}.my-10{margin-top:40px!important;margin-bottom:40px!important}.my-11{margin-top:44px!important;margin-bottom:44px!important}.my-12{margin-top:48px!important;margin-bottom:48px!important}.my-13{margin-top:52px!important;margin-bottom:52px!important}.my-14{margin-top:56px!important;margin-bottom:56px!important}.my-15{margin-top:60px!important;margin-bottom:60px!important}.my-16{margin-top:64px!important;margin-bottom:64px!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:4px!important}.mt-2{margin-top:8px!important}.mt-3{margin-top:12px!important}.mt-4{margin-top:16px!important}.mt-5{margin-top:20px!important}.mt-6{margin-top:24px!important}.mt-7{margin-top:28px!important}.mt-8{margin-top:32px!important}.mt-9{margin-top:36px!important}.mt-10{margin-top:40px!important}.mt-11{margin-top:44px!important}.mt-12{margin-top:48px!important}.mt-13{margin-top:52px!important}.mt-14{margin-top:56px!important}.mt-15{margin-top:60px!important}.mt-16{margin-top:64px!important}.mt-auto{margin-top:auto!important}.mr-0{margin-right:0!important}.mr-1{margin-right:4px!important}.mr-2{margin-right:8px!important}.mr-3{margin-right:12px!important}.mr-4{margin-right:16px!important}.mr-5{margin-right:20px!important}.mr-6{margin-right:24px!important}.mr-7{margin-right:28px!important}.mr-8{margin-right:32px!important}.mr-9{margin-right:36px!important}.mr-10{margin-right:40px!important}.mr-11{margin-right:44px!important}.mr-12{margin-right:48px!important}.mr-13{margin-right:52px!important}.mr-14{margin-right:56px!important}.mr-15{margin-right:60px!important}.mr-16{margin-right:64px!important}.mr-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:4px!important}.mb-2{margin-bottom:8px!important}.mb-3{margin-bottom:12px!important}.mb-4{margin-bottom:16px!important}.mb-5{margin-bottom:20px!important}.mb-6{margin-bottom:24px!important}.mb-7{margin-bottom:28px!important}.mb-8{margin-bottom:32px!important}.mb-9{margin-bottom:36px!important}.mb-10{margin-bottom:40px!important}.mb-11{margin-bottom:44px!important}.mb-12{margin-bottom:48px!important}.mb-13{margin-bottom:52px!important}.mb-14{margin-bottom:56px!important}.mb-15{margin-bottom:60px!important}.mb-16{margin-bottom:64px!important}.mb-auto{margin-bottom:auto!important}.ml-0{margin-left:0!important}.ml-1{margin-left:4px!important}.ml-2{margin-left:8px!important}.ml-3{margin-left:12px!important}.ml-4{margin-left:16px!important}.ml-5{margin-left:20px!important}.ml-6{margin-left:24px!important}.ml-7{margin-left:28px!important}.ml-8{margin-left:32px!important}.ml-9{margin-left:36px!important}.ml-10{margin-left:40px!important}.ml-11{margin-left:44px!important}.ml-12{margin-left:48px!important}.ml-13{margin-left:52px!important}.ml-14{margin-left:56px!important}.ml-15{margin-left:60px!important}.ml-16{margin-left:64px!important}.ml-auto{margin-left:auto!important}.ms-0{margin-inline-start:0px!important}.ms-1{margin-inline-start:4px!important}.ms-2{margin-inline-start:8px!important}.ms-3{margin-inline-start:12px!important}.ms-4{margin-inline-start:16px!important}.ms-5{margin-inline-start:20px!important}.ms-6{margin-inline-start:24px!important}.ms-7{margin-inline-start:28px!important}.ms-8{margin-inline-start:32px!important}.ms-9{margin-inline-start:36px!important}.ms-10{margin-inline-start:40px!important}.ms-11{margin-inline-start:44px!important}.ms-12{margin-inline-start:48px!important}.ms-13{margin-inline-start:52px!important}.ms-14{margin-inline-start:56px!important}.ms-15{margin-inline-start:60px!important}.ms-16{margin-inline-start:64px!important}.ms-auto{margin-inline-start:auto!important}.me-0{margin-inline-end:0px!important}.me-1{margin-inline-end:4px!important}.me-2{margin-inline-end:8px!important}.me-3{margin-inline-end:12px!important}.me-4{margin-inline-end:16px!important}.me-5{margin-inline-end:20px!important}.me-6{margin-inline-end:24px!important}.me-7{margin-inline-end:28px!important}.me-8{margin-inline-end:32px!important}.me-9{margin-inline-end:36px!important}.me-10{margin-inline-end:40px!important}.me-11{margin-inline-end:44px!important}.me-12{margin-inline-end:48px!important}.me-13{margin-inline-end:52px!important}.me-14{margin-inline-end:56px!important}.me-15{margin-inline-end:60px!important}.me-16{margin-inline-end:64px!important}.me-auto{margin-inline-end:auto!important}.ma-n1{margin:-4px!important}.ma-n2{margin:-8px!important}.ma-n3{margin:-12px!important}.ma-n4{margin:-16px!important}.ma-n5{margin:-20px!important}.ma-n6{margin:-24px!important}.ma-n7{margin:-28px!important}.ma-n8{margin:-32px!important}.ma-n9{margin:-36px!important}.ma-n10{margin:-40px!important}.ma-n11{margin:-44px!important}.ma-n12{margin:-48px!important}.ma-n13{margin:-52px!important}.ma-n14{margin:-56px!important}.ma-n15{margin:-60px!important}.ma-n16{margin:-64px!important}.mx-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-n16{margin-right:-64px!important;margin-left:-64px!important}.my-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-n1{margin-top:-4px!important}.mt-n2{margin-top:-8px!important}.mt-n3{margin-top:-12px!important}.mt-n4{margin-top:-16px!important}.mt-n5{margin-top:-20px!important}.mt-n6{margin-top:-24px!important}.mt-n7{margin-top:-28px!important}.mt-n8{margin-top:-32px!important}.mt-n9{margin-top:-36px!important}.mt-n10{margin-top:-40px!important}.mt-n11{margin-top:-44px!important}.mt-n12{margin-top:-48px!important}.mt-n13{margin-top:-52px!important}.mt-n14{margin-top:-56px!important}.mt-n15{margin-top:-60px!important}.mt-n16{margin-top:-64px!important}.mr-n1{margin-right:-4px!important}.mr-n2{margin-right:-8px!important}.mr-n3{margin-right:-12px!important}.mr-n4{margin-right:-16px!important}.mr-n5{margin-right:-20px!important}.mr-n6{margin-right:-24px!important}.mr-n7{margin-right:-28px!important}.mr-n8{margin-right:-32px!important}.mr-n9{margin-right:-36px!important}.mr-n10{margin-right:-40px!important}.mr-n11{margin-right:-44px!important}.mr-n12{margin-right:-48px!important}.mr-n13{margin-right:-52px!important}.mr-n14{margin-right:-56px!important}.mr-n15{margin-right:-60px!important}.mr-n16{margin-right:-64px!important}.mb-n1{margin-bottom:-4px!important}.mb-n2{margin-bottom:-8px!important}.mb-n3{margin-bottom:-12px!important}.mb-n4{margin-bottom:-16px!important}.mb-n5{margin-bottom:-20px!important}.mb-n6{margin-bottom:-24px!important}.mb-n7{margin-bottom:-28px!important}.mb-n8{margin-bottom:-32px!important}.mb-n9{margin-bottom:-36px!important}.mb-n10{margin-bottom:-40px!important}.mb-n11{margin-bottom:-44px!important}.mb-n12{margin-bottom:-48px!important}.mb-n13{margin-bottom:-52px!important}.mb-n14{margin-bottom:-56px!important}.mb-n15{margin-bottom:-60px!important}.mb-n16{margin-bottom:-64px!important}.ml-n1{margin-left:-4px!important}.ml-n2{margin-left:-8px!important}.ml-n3{margin-left:-12px!important}.ml-n4{margin-left:-16px!important}.ml-n5{margin-left:-20px!important}.ml-n6{margin-left:-24px!important}.ml-n7{margin-left:-28px!important}.ml-n8{margin-left:-32px!important}.ml-n9{margin-left:-36px!important}.ml-n10{margin-left:-40px!important}.ml-n11{margin-left:-44px!important}.ml-n12{margin-left:-48px!important}.ml-n13{margin-left:-52px!important}.ml-n14{margin-left:-56px!important}.ml-n15{margin-left:-60px!important}.ml-n16{margin-left:-64px!important}.ms-n1{margin-inline-start:-4px!important}.ms-n2{margin-inline-start:-8px!important}.ms-n3{margin-inline-start:-12px!important}.ms-n4{margin-inline-start:-16px!important}.ms-n5{margin-inline-start:-20px!important}.ms-n6{margin-inline-start:-24px!important}.ms-n7{margin-inline-start:-28px!important}.ms-n8{margin-inline-start:-32px!important}.ms-n9{margin-inline-start:-36px!important}.ms-n10{margin-inline-start:-40px!important}.ms-n11{margin-inline-start:-44px!important}.ms-n12{margin-inline-start:-48px!important}.ms-n13{margin-inline-start:-52px!important}.ms-n14{margin-inline-start:-56px!important}.ms-n15{margin-inline-start:-60px!important}.ms-n16{margin-inline-start:-64px!important}.me-n1{margin-inline-end:-4px!important}.me-n2{margin-inline-end:-8px!important}.me-n3{margin-inline-end:-12px!important}.me-n4{margin-inline-end:-16px!important}.me-n5{margin-inline-end:-20px!important}.me-n6{margin-inline-end:-24px!important}.me-n7{margin-inline-end:-28px!important}.me-n8{margin-inline-end:-32px!important}.me-n9{margin-inline-end:-36px!important}.me-n10{margin-inline-end:-40px!important}.me-n11{margin-inline-end:-44px!important}.me-n12{margin-inline-end:-48px!important}.me-n13{margin-inline-end:-52px!important}.me-n14{margin-inline-end:-56px!important}.me-n15{margin-inline-end:-60px!important}.me-n16{margin-inline-end:-64px!important}.pa-0{padding:0!important}.pa-1{padding:4px!important}.pa-2{padding:8px!important}.pa-3{padding:12px!important}.pa-4{padding:16px!important}.pa-5{padding:20px!important}.pa-6{padding:24px!important}.pa-7{padding:28px!important}.pa-8{padding:32px!important}.pa-9{padding:36px!important}.pa-10{padding:40px!important}.pa-11{padding:44px!important}.pa-12{padding:48px!important}.pa-13{padding:52px!important}.pa-14{padding:56px!important}.pa-15{padding:60px!important}.pa-16{padding:64px!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:4px!important;padding-left:4px!important}.px-2{padding-right:8px!important;padding-left:8px!important}.px-3{padding-right:12px!important;padding-left:12px!important}.px-4{padding-right:16px!important;padding-left:16px!important}.px-5{padding-right:20px!important;padding-left:20px!important}.px-6{padding-right:24px!important;padding-left:24px!important}.px-7{padding-right:28px!important;padding-left:28px!important}.px-8{padding-right:32px!important;padding-left:32px!important}.px-9{padding-right:36px!important;padding-left:36px!important}.px-10{padding-right:40px!important;padding-left:40px!important}.px-11{padding-right:44px!important;padding-left:44px!important}.px-12{padding-right:48px!important;padding-left:48px!important}.px-13{padding-right:52px!important;padding-left:52px!important}.px-14{padding-right:56px!important;padding-left:56px!important}.px-15{padding-right:60px!important;padding-left:60px!important}.px-16{padding-right:64px!important;padding-left:64px!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:4px!important;padding-bottom:4px!important}.py-2{padding-top:8px!important;padding-bottom:8px!important}.py-3{padding-top:12px!important;padding-bottom:12px!important}.py-4{padding-top:16px!important;padding-bottom:16px!important}.py-5{padding-top:20px!important;padding-bottom:20px!important}.py-6{padding-top:24px!important;padding-bottom:24px!important}.py-7{padding-top:28px!important;padding-bottom:28px!important}.py-8{padding-top:32px!important;padding-bottom:32px!important}.py-9{padding-top:36px!important;padding-bottom:36px!important}.py-10{padding-top:40px!important;padding-bottom:40px!important}.py-11{padding-top:44px!important;padding-bottom:44px!important}.py-12{padding-top:48px!important;padding-bottom:48px!important}.py-13{padding-top:52px!important;padding-bottom:52px!important}.py-14{padding-top:56px!important;padding-bottom:56px!important}.py-15{padding-top:60px!important;padding-bottom:60px!important}.py-16{padding-top:64px!important;padding-bottom:64px!important}.pt-0{padding-top:0!important}.pt-1{padding-top:4px!important}.pt-2{padding-top:8px!important}.pt-3{padding-top:12px!important}.pt-4{padding-top:16px!important}.pt-5{padding-top:20px!important}.pt-6{padding-top:24px!important}.pt-7{padding-top:28px!important}.pt-8{padding-top:32px!important}.pt-9{padding-top:36px!important}.pt-10{padding-top:40px!important}.pt-11{padding-top:44px!important}.pt-12{padding-top:48px!important}.pt-13{padding-top:52px!important}.pt-14{padding-top:56px!important}.pt-15{padding-top:60px!important}.pt-16{padding-top:64px!important}.pr-0{padding-right:0!important}.pr-1{padding-right:4px!important}.pr-2{padding-right:8px!important}.pr-3{padding-right:12px!important}.pr-4{padding-right:16px!important}.pr-5{padding-right:20px!important}.pr-6{padding-right:24px!important}.pr-7{padding-right:28px!important}.pr-8{padding-right:32px!important}.pr-9{padding-right:36px!important}.pr-10{padding-right:40px!important}.pr-11{padding-right:44px!important}.pr-12{padding-right:48px!important}.pr-13{padding-right:52px!important}.pr-14{padding-right:56px!important}.pr-15{padding-right:60px!important}.pr-16{padding-right:64px!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:4px!important}.pb-2{padding-bottom:8px!important}.pb-3{padding-bottom:12px!important}.pb-4{padding-bottom:16px!important}.pb-5{padding-bottom:20px!important}.pb-6{padding-bottom:24px!important}.pb-7{padding-bottom:28px!important}.pb-8{padding-bottom:32px!important}.pb-9{padding-bottom:36px!important}.pb-10{padding-bottom:40px!important}.pb-11{padding-bottom:44px!important}.pb-12{padding-bottom:48px!important}.pb-13{padding-bottom:52px!important}.pb-14{padding-bottom:56px!important}.pb-15{padding-bottom:60px!important}.pb-16{padding-bottom:64px!important}.pl-0{padding-left:0!important}.pl-1{padding-left:4px!important}.pl-2{padding-left:8px!important}.pl-3{padding-left:12px!important}.pl-4{padding-left:16px!important}.pl-5{padding-left:20px!important}.pl-6{padding-left:24px!important}.pl-7{padding-left:28px!important}.pl-8{padding-left:32px!important}.pl-9{padding-left:36px!important}.pl-10{padding-left:40px!important}.pl-11{padding-left:44px!important}.pl-12{padding-left:48px!important}.pl-13{padding-left:52px!important}.pl-14{padding-left:56px!important}.pl-15{padding-left:60px!important}.pl-16{padding-left:64px!important}.ps-0{padding-inline-start:0px!important}.ps-1{padding-inline-start:4px!important}.ps-2{padding-inline-start:8px!important}.ps-3{padding-inline-start:12px!important}.ps-4{padding-inline-start:16px!important}.ps-5{padding-inline-start:20px!important}.ps-6{padding-inline-start:24px!important}.ps-7{padding-inline-start:28px!important}.ps-8{padding-inline-start:32px!important}.ps-9{padding-inline-start:36px!important}.ps-10{padding-inline-start:40px!important}.ps-11{padding-inline-start:44px!important}.ps-12{padding-inline-start:48px!important}.ps-13{padding-inline-start:52px!important}.ps-14{padding-inline-start:56px!important}.ps-15{padding-inline-start:60px!important}.ps-16{padding-inline-start:64px!important}.pe-0{padding-inline-end:0px!important}.pe-1{padding-inline-end:4px!important}.pe-2{padding-inline-end:8px!important}.pe-3{padding-inline-end:12px!important}.pe-4{padding-inline-end:16px!important}.pe-5{padding-inline-end:20px!important}.pe-6{padding-inline-end:24px!important}.pe-7{padding-inline-end:28px!important}.pe-8{padding-inline-end:32px!important}.pe-9{padding-inline-end:36px!important}.pe-10{padding-inline-end:40px!important}.pe-11{padding-inline-end:44px!important}.pe-12{padding-inline-end:48px!important}.pe-13{padding-inline-end:52px!important}.pe-14{padding-inline-end:56px!important}.pe-15{padding-inline-end:60px!important}.pe-16{padding-inline-end:64px!important}.rounded-0{border-radius:0!important}.rounded-sm{border-radius:2px!important}.rounded{border-radius:4px!important}.rounded-lg{border-radius:8px!important}.rounded-xl{border-radius:24px!important}.rounded-pill{border-radius:9999px!important}.rounded-circle{border-radius:50%!important}.rounded-shaped{border-radius:24px 0!important}.rounded-t-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px!important;border-top-right-radius:2px!important}.rounded-t{border-top-left-radius:4px!important;border-top-right-radius:4px!important}.rounded-t-lg{border-top-left-radius:8px!important;border-top-right-radius:8px!important}.rounded-t-xl{border-top-left-radius:24px!important;border-top-right-radius:24px!important}.rounded-t-pill{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-t-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-t-shaped{border-top-left-radius:24px!important;border-top-right-radius:0!important}.v-locale--is-ltr .rounded-e-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-e-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-e-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-e{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-e{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-e-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-e-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-e-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-e-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-e-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-e-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-e-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-e-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-e-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-e-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.rounded-b-0{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-sm{border-bottom-left-radius:2px!important;border-bottom-right-radius:2px!important}.rounded-b{border-bottom-left-radius:4px!important;border-bottom-right-radius:4px!important}.rounded-b-lg{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}.rounded-b-xl{border-bottom-left-radius:24px!important;border-bottom-right-radius:24px!important}.rounded-b-pill{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-b-circle{border-bottom-left-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-b-shaped{border-bottom-left-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-0{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-s-sm{border-top-left-radius:2px!important;border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-s-sm{border-top-right-radius:2px!important;border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-s{border-top-left-radius:4px!important;border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-s{border-top-right-radius:4px!important;border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-s-lg{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-s-lg{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-s-xl{border-top-left-radius:24px!important;border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-s-xl{border-top-right-radius:24px!important;border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-s-pill{border-top-left-radius:9999px!important;border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-s-pill{border-top-right-radius:9999px!important;border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-s-circle{border-top-left-radius:50%!important;border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-s-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-s-shaped{border-top-left-radius:24px!important;border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-s-shaped{border-top-right-radius:24px!important;border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-ts-0{border-top-left-radius:0!important}.v-locale--is-rtl .rounded-ts-0{border-top-right-radius:0!important}.v-locale--is-ltr .rounded-ts-sm{border-top-left-radius:2px!important}.v-locale--is-rtl .rounded-ts-sm{border-top-right-radius:2px!important}.v-locale--is-ltr .rounded-ts{border-top-left-radius:4px!important}.v-locale--is-rtl .rounded-ts{border-top-right-radius:4px!important}.v-locale--is-ltr .rounded-ts-lg{border-top-left-radius:8px!important}.v-locale--is-rtl .rounded-ts-lg{border-top-right-radius:8px!important}.v-locale--is-ltr .rounded-ts-xl{border-top-left-radius:24px!important}.v-locale--is-rtl .rounded-ts-xl{border-top-right-radius:24px!important}.v-locale--is-ltr .rounded-ts-pill{border-top-left-radius:9999px!important}.v-locale--is-rtl .rounded-ts-pill{border-top-right-radius:9999px!important}.v-locale--is-ltr .rounded-ts-circle{border-top-left-radius:50%!important}.v-locale--is-rtl .rounded-ts-circle{border-top-right-radius:50%!important}.v-locale--is-ltr .rounded-ts-shaped{border-top-left-radius:24px 0!important}.v-locale--is-rtl .rounded-ts-shaped{border-top-right-radius:24px 0!important}.v-locale--is-ltr .rounded-te-0{border-top-right-radius:0!important}.v-locale--is-rtl .rounded-te-0{border-top-left-radius:0!important}.v-locale--is-ltr .rounded-te-sm{border-top-right-radius:2px!important}.v-locale--is-rtl .rounded-te-sm{border-top-left-radius:2px!important}.v-locale--is-ltr .rounded-te{border-top-right-radius:4px!important}.v-locale--is-rtl .rounded-te{border-top-left-radius:4px!important}.v-locale--is-ltr .rounded-te-lg{border-top-right-radius:8px!important}.v-locale--is-rtl .rounded-te-lg{border-top-left-radius:8px!important}.v-locale--is-ltr .rounded-te-xl{border-top-right-radius:24px!important}.v-locale--is-rtl .rounded-te-xl{border-top-left-radius:24px!important}.v-locale--is-ltr .rounded-te-pill{border-top-right-radius:9999px!important}.v-locale--is-rtl .rounded-te-pill{border-top-left-radius:9999px!important}.v-locale--is-ltr .rounded-te-circle{border-top-right-radius:50%!important}.v-locale--is-rtl .rounded-te-circle{border-top-left-radius:50%!important}.v-locale--is-ltr .rounded-te-shaped{border-top-right-radius:24px 0!important}.v-locale--is-rtl .rounded-te-shaped{border-top-left-radius:24px 0!important}.v-locale--is-ltr .rounded-be-0{border-bottom-right-radius:0!important}.v-locale--is-rtl .rounded-be-0{border-bottom-left-radius:0!important}.v-locale--is-ltr .rounded-be-sm{border-bottom-right-radius:2px!important}.v-locale--is-rtl .rounded-be-sm{border-bottom-left-radius:2px!important}.v-locale--is-ltr .rounded-be{border-bottom-right-radius:4px!important}.v-locale--is-rtl .rounded-be{border-bottom-left-radius:4px!important}.v-locale--is-ltr .rounded-be-lg{border-bottom-right-radius:8px!important}.v-locale--is-rtl .rounded-be-lg{border-bottom-left-radius:8px!important}.v-locale--is-ltr .rounded-be-xl{border-bottom-right-radius:24px!important}.v-locale--is-rtl .rounded-be-xl{border-bottom-left-radius:24px!important}.v-locale--is-ltr .rounded-be-pill{border-bottom-right-radius:9999px!important}.v-locale--is-rtl .rounded-be-pill{border-bottom-left-radius:9999px!important}.v-locale--is-ltr .rounded-be-circle{border-bottom-right-radius:50%!important}.v-locale--is-rtl .rounded-be-circle{border-bottom-left-radius:50%!important}.v-locale--is-ltr .rounded-be-shaped{border-bottom-right-radius:24px 0!important}.v-locale--is-rtl .rounded-be-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-ltr .rounded-bs-0{border-bottom-left-radius:0!important}.v-locale--is-rtl .rounded-bs-0{border-bottom-right-radius:0!important}.v-locale--is-ltr .rounded-bs-sm{border-bottom-left-radius:2px!important}.v-locale--is-rtl .rounded-bs-sm{border-bottom-right-radius:2px!important}.v-locale--is-ltr .rounded-bs{border-bottom-left-radius:4px!important}.v-locale--is-rtl .rounded-bs{border-bottom-right-radius:4px!important}.v-locale--is-ltr .rounded-bs-lg{border-bottom-left-radius:8px!important}.v-locale--is-rtl .rounded-bs-lg{border-bottom-right-radius:8px!important}.v-locale--is-ltr .rounded-bs-xl{border-bottom-left-radius:24px!important}.v-locale--is-rtl .rounded-bs-xl{border-bottom-right-radius:24px!important}.v-locale--is-ltr .rounded-bs-pill{border-bottom-left-radius:9999px!important}.v-locale--is-rtl .rounded-bs-pill{border-bottom-right-radius:9999px!important}.v-locale--is-ltr .rounded-bs-circle{border-bottom-left-radius:50%!important}.v-locale--is-rtl .rounded-bs-circle{border-bottom-right-radius:50%!important}.v-locale--is-ltr .rounded-bs-shaped{border-bottom-left-radius:24px 0!important}.v-locale--is-rtl .rounded-bs-shaped{border-bottom-right-radius:24px 0!important}.border-0{border-width:0!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border,.border-thin{border-width:thin!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-sm{border-width:1px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-md{border-width:2px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-lg{border-width:4px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-xl{border-width:8px!important;border-style:solid!important;border-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-opacity-0{--v-border-opacity: 0 !important}.border-opacity{--v-border-opacity: .12 !important}.border-opacity-25{--v-border-opacity: .25 !important}.border-opacity-50{--v-border-opacity: .5 !important}.border-opacity-75{--v-border-opacity: .75 !important}.border-opacity-100{--v-border-opacity: 1 !important}.border-t-0{border-block-start-width:0!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t,.border-t-thin{border-block-start-width:thin!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-sm{border-block-start-width:1px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-md{border-block-start-width:2px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-lg{border-block-start-width:4px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-t-xl{border-block-start-width:8px!important;border-block-start-style:solid!important;border-block-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-0{border-inline-end-width:0!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e,.border-e-thin{border-inline-end-width:thin!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-sm{border-inline-end-width:1px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-md{border-inline-end-width:2px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-lg{border-inline-end-width:4px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-e-xl{border-inline-end-width:8px!important;border-inline-end-style:solid!important;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-0{border-block-end-width:0!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b,.border-b-thin{border-block-end-width:thin!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-sm{border-block-end-width:1px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-md{border-block-end-width:2px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-lg{border-block-end-width:4px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-b-xl{border-block-end-width:8px!important;border-block-end-style:solid!important;border-block-end-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-0{border-inline-start-width:0!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s,.border-s-thin{border-inline-start-width:thin!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-sm{border-inline-start-width:1px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-md{border-inline-start-width:2px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-lg{border-inline-start-width:4px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-s-xl{border-inline-start-width:8px!important;border-inline-start-style:solid!important;border-inline-start-color:rgba(var(--v-border-color),var(--v-border-opacity))!important}.border-solid{border-style:solid!important}.border-dashed{border-style:dashed!important}.border-dotted{border-style:dotted!important}.border-double{border-style:double!important}.border-none{border-style:none!important}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.text-start{text-align:start!important}.text-end{text-align:end!important}.text-decoration-line-through{text-decoration:line-through!important}.text-decoration-none{text-decoration:none!important}.text-decoration-overline{text-decoration:overline!important}.text-decoration-underline{text-decoration:underline!important}.text-wrap{white-space:normal!important}.text-no-wrap{white-space:nowrap!important}.text-pre{white-space:pre!important}.text-pre-line{white-space:pre-line!important}.text-pre-wrap{white-space:pre-wrap!important}.text-break{overflow-wrap:break-word!important;word-break:break-word!important}.opacity-hover{opacity:var(--v-hover-opacity)!important}.opacity-focus{opacity:var(--v-focus-opacity)!important}.opacity-selected{opacity:var(--v-selected-opacity)!important}.opacity-activated{opacity:var(--v-activated-opacity)!important}.opacity-pressed{opacity:var(--v-pressed-opacity)!important}.opacity-dragged{opacity:var(--v-dragged-opacity)!important}.opacity-0{opacity:0!important}.opacity-10{opacity:.1!important}.opacity-20{opacity:.2!important}.opacity-30{opacity:.3!important}.opacity-40{opacity:.4!important}.opacity-50{opacity:.5!important}.opacity-60{opacity:.6!important}.opacity-70{opacity:.7!important}.opacity-80{opacity:.8!important}.opacity-90{opacity:.9!important}.opacity-100{opacity:1!important}.text-high-emphasis{color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))!important}.text-medium-emphasis{color:rgba(var(--v-theme-on-background),var(--v-medium-emphasis-opacity))!important}.text-disabled{color:rgba(var(--v-theme-on-background),var(--v-disabled-opacity))!important}.text-truncate{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.text-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-none{text-transform:none!important}.text-capitalize{text-transform:capitalize!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.font-weight-thin{font-weight:100!important}.font-weight-light{font-weight:300!important}.font-weight-regular{font-weight:400!important}.font-weight-medium{font-weight:500!important}.font-weight-bold{font-weight:700!important}.font-weight-black{font-weight:900!important}.font-italic{font-style:italic!important}.text-mono{font-family:monospace!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.right-0{right:0!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.cursor-auto{cursor:auto!important}.cursor-default{cursor:default!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.cursor-text{cursor:text!important}.cursor-move{cursor:move!important}.cursor-help{cursor:help!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-progress{cursor:progress!important}.cursor-grab{cursor:grab!important}.cursor-grabbing{cursor:grabbing!important}.cursor-none{cursor:none!important}.fill-height{height:100%!important}.h-auto{height:auto!important}.h-screen{height:100vh!important}.h-0{height:0!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-screen{height:100dvh!important}.w-auto{width:auto!important}.w-0{width:0!important}.w-25{width:25%!important}.w-33{width:33%!important}.w-50{width:50%!important}.w-66{width:66%!important}.w-75{width:75%!important}.w-100{width:100%!important}@media (min-width: 600px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.float-sm-none{float:none!important}.float-sm-left{float:left!important}.float-sm-right{float:right!important}.v-locale--is-rtl .float-sm-end{float:left!important}.v-locale--is-rtl .float-sm-start,.v-locale--is-ltr .float-sm-end{float:right!important}.v-locale--is-ltr .float-sm-start{float:left!important}.flex-sm-fill,.flex-sm-1-1{flex:1 1 auto!important}.flex-sm-1-0{flex:1 0 auto!important}.flex-sm-0-1{flex:0 1 auto!important}.flex-sm-0-0{flex:0 0 auto!important}.flex-sm-1-1-100{flex:1 1 100%!important}.flex-sm-1-0-100{flex:1 0 100%!important}.flex-sm-0-1-100{flex:0 1 100%!important}.flex-sm-0-0-100{flex:0 0 100%!important}.flex-sm-1-1-0{flex:1 1 0!important}.flex-sm-1-0-0{flex:1 0 0!important}.flex-sm-0-1-0{flex:0 1 0!important}.flex-sm-0-0-0{flex:0 0 0!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-sm-start{justify-content:flex-start!important}.justify-sm-end{justify-content:flex-end!important}.justify-sm-center{justify-content:center!important}.justify-sm-space-between{justify-content:space-between!important}.justify-sm-space-around{justify-content:space-around!important}.justify-sm-space-evenly{justify-content:space-evenly!important}.align-sm-start{align-items:flex-start!important}.align-sm-end{align-items:flex-end!important}.align-sm-center{align-items:center!important}.align-sm-baseline{align-items:baseline!important}.align-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-space-between{align-content:space-between!important}.align-content-sm-space-around{align-content:space-around!important}.align-content-sm-space-evenly{align-content:space-evenly!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-6{order:6!important}.order-sm-7{order:7!important}.order-sm-8{order:8!important}.order-sm-9{order:9!important}.order-sm-10{order:10!important}.order-sm-11{order:11!important}.order-sm-12{order:12!important}.order-sm-last{order:13!important}.ga-sm-0{gap:0px!important}.ga-sm-1{gap:4px!important}.ga-sm-2{gap:8px!important}.ga-sm-3{gap:12px!important}.ga-sm-4{gap:16px!important}.ga-sm-5{gap:20px!important}.ga-sm-6{gap:24px!important}.ga-sm-7{gap:28px!important}.ga-sm-8{gap:32px!important}.ga-sm-9{gap:36px!important}.ga-sm-10{gap:40px!important}.ga-sm-11{gap:44px!important}.ga-sm-12{gap:48px!important}.ga-sm-13{gap:52px!important}.ga-sm-14{gap:56px!important}.ga-sm-15{gap:60px!important}.ga-sm-16{gap:64px!important}.ga-sm-auto{gap:auto!important}.gr-sm-0{row-gap:0px!important}.gr-sm-1{row-gap:4px!important}.gr-sm-2{row-gap:8px!important}.gr-sm-3{row-gap:12px!important}.gr-sm-4{row-gap:16px!important}.gr-sm-5{row-gap:20px!important}.gr-sm-6{row-gap:24px!important}.gr-sm-7{row-gap:28px!important}.gr-sm-8{row-gap:32px!important}.gr-sm-9{row-gap:36px!important}.gr-sm-10{row-gap:40px!important}.gr-sm-11{row-gap:44px!important}.gr-sm-12{row-gap:48px!important}.gr-sm-13{row-gap:52px!important}.gr-sm-14{row-gap:56px!important}.gr-sm-15{row-gap:60px!important}.gr-sm-16{row-gap:64px!important}.gr-sm-auto{row-gap:auto!important}.gc-sm-0{column-gap:0px!important}.gc-sm-1{column-gap:4px!important}.gc-sm-2{column-gap:8px!important}.gc-sm-3{column-gap:12px!important}.gc-sm-4{column-gap:16px!important}.gc-sm-5{column-gap:20px!important}.gc-sm-6{column-gap:24px!important}.gc-sm-7{column-gap:28px!important}.gc-sm-8{column-gap:32px!important}.gc-sm-9{column-gap:36px!important}.gc-sm-10{column-gap:40px!important}.gc-sm-11{column-gap:44px!important}.gc-sm-12{column-gap:48px!important}.gc-sm-13{column-gap:52px!important}.gc-sm-14{column-gap:56px!important}.gc-sm-15{column-gap:60px!important}.gc-sm-16{column-gap:64px!important}.gc-sm-auto{column-gap:auto!important}.ma-sm-0{margin:0!important}.ma-sm-1{margin:4px!important}.ma-sm-2{margin:8px!important}.ma-sm-3{margin:12px!important}.ma-sm-4{margin:16px!important}.ma-sm-5{margin:20px!important}.ma-sm-6{margin:24px!important}.ma-sm-7{margin:28px!important}.ma-sm-8{margin:32px!important}.ma-sm-9{margin:36px!important}.ma-sm-10{margin:40px!important}.ma-sm-11{margin:44px!important}.ma-sm-12{margin:48px!important}.ma-sm-13{margin:52px!important}.ma-sm-14{margin:56px!important}.ma-sm-15{margin:60px!important}.ma-sm-16{margin:64px!important}.ma-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:4px!important;margin-left:4px!important}.mx-sm-2{margin-right:8px!important;margin-left:8px!important}.mx-sm-3{margin-right:12px!important;margin-left:12px!important}.mx-sm-4{margin-right:16px!important;margin-left:16px!important}.mx-sm-5{margin-right:20px!important;margin-left:20px!important}.mx-sm-6{margin-right:24px!important;margin-left:24px!important}.mx-sm-7{margin-right:28px!important;margin-left:28px!important}.mx-sm-8{margin-right:32px!important;margin-left:32px!important}.mx-sm-9{margin-right:36px!important;margin-left:36px!important}.mx-sm-10{margin-right:40px!important;margin-left:40px!important}.mx-sm-11{margin-right:44px!important;margin-left:44px!important}.mx-sm-12{margin-right:48px!important;margin-left:48px!important}.mx-sm-13{margin-right:52px!important;margin-left:52px!important}.mx-sm-14{margin-right:56px!important;margin-left:56px!important}.mx-sm-15{margin-right:60px!important;margin-left:60px!important}.mx-sm-16{margin-right:64px!important;margin-left:64px!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:4px!important;margin-bottom:4px!important}.my-sm-2{margin-top:8px!important;margin-bottom:8px!important}.my-sm-3{margin-top:12px!important;margin-bottom:12px!important}.my-sm-4{margin-top:16px!important;margin-bottom:16px!important}.my-sm-5{margin-top:20px!important;margin-bottom:20px!important}.my-sm-6{margin-top:24px!important;margin-bottom:24px!important}.my-sm-7{margin-top:28px!important;margin-bottom:28px!important}.my-sm-8{margin-top:32px!important;margin-bottom:32px!important}.my-sm-9{margin-top:36px!important;margin-bottom:36px!important}.my-sm-10{margin-top:40px!important;margin-bottom:40px!important}.my-sm-11{margin-top:44px!important;margin-bottom:44px!important}.my-sm-12{margin-top:48px!important;margin-bottom:48px!important}.my-sm-13{margin-top:52px!important;margin-bottom:52px!important}.my-sm-14{margin-top:56px!important;margin-bottom:56px!important}.my-sm-15{margin-top:60px!important;margin-bottom:60px!important}.my-sm-16{margin-top:64px!important;margin-bottom:64px!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:4px!important}.mt-sm-2{margin-top:8px!important}.mt-sm-3{margin-top:12px!important}.mt-sm-4{margin-top:16px!important}.mt-sm-5{margin-top:20px!important}.mt-sm-6{margin-top:24px!important}.mt-sm-7{margin-top:28px!important}.mt-sm-8{margin-top:32px!important}.mt-sm-9{margin-top:36px!important}.mt-sm-10{margin-top:40px!important}.mt-sm-11{margin-top:44px!important}.mt-sm-12{margin-top:48px!important}.mt-sm-13{margin-top:52px!important}.mt-sm-14{margin-top:56px!important}.mt-sm-15{margin-top:60px!important}.mt-sm-16{margin-top:64px!important}.mt-sm-auto{margin-top:auto!important}.mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:4px!important}.mr-sm-2{margin-right:8px!important}.mr-sm-3{margin-right:12px!important}.mr-sm-4{margin-right:16px!important}.mr-sm-5{margin-right:20px!important}.mr-sm-6{margin-right:24px!important}.mr-sm-7{margin-right:28px!important}.mr-sm-8{margin-right:32px!important}.mr-sm-9{margin-right:36px!important}.mr-sm-10{margin-right:40px!important}.mr-sm-11{margin-right:44px!important}.mr-sm-12{margin-right:48px!important}.mr-sm-13{margin-right:52px!important}.mr-sm-14{margin-right:56px!important}.mr-sm-15{margin-right:60px!important}.mr-sm-16{margin-right:64px!important}.mr-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:4px!important}.mb-sm-2{margin-bottom:8px!important}.mb-sm-3{margin-bottom:12px!important}.mb-sm-4{margin-bottom:16px!important}.mb-sm-5{margin-bottom:20px!important}.mb-sm-6{margin-bottom:24px!important}.mb-sm-7{margin-bottom:28px!important}.mb-sm-8{margin-bottom:32px!important}.mb-sm-9{margin-bottom:36px!important}.mb-sm-10{margin-bottom:40px!important}.mb-sm-11{margin-bottom:44px!important}.mb-sm-12{margin-bottom:48px!important}.mb-sm-13{margin-bottom:52px!important}.mb-sm-14{margin-bottom:56px!important}.mb-sm-15{margin-bottom:60px!important}.mb-sm-16{margin-bottom:64px!important}.mb-sm-auto{margin-bottom:auto!important}.ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:4px!important}.ml-sm-2{margin-left:8px!important}.ml-sm-3{margin-left:12px!important}.ml-sm-4{margin-left:16px!important}.ml-sm-5{margin-left:20px!important}.ml-sm-6{margin-left:24px!important}.ml-sm-7{margin-left:28px!important}.ml-sm-8{margin-left:32px!important}.ml-sm-9{margin-left:36px!important}.ml-sm-10{margin-left:40px!important}.ml-sm-11{margin-left:44px!important}.ml-sm-12{margin-left:48px!important}.ml-sm-13{margin-left:52px!important}.ml-sm-14{margin-left:56px!important}.ml-sm-15{margin-left:60px!important}.ml-sm-16{margin-left:64px!important}.ml-sm-auto{margin-left:auto!important}.ms-sm-0{margin-inline-start:0px!important}.ms-sm-1{margin-inline-start:4px!important}.ms-sm-2{margin-inline-start:8px!important}.ms-sm-3{margin-inline-start:12px!important}.ms-sm-4{margin-inline-start:16px!important}.ms-sm-5{margin-inline-start:20px!important}.ms-sm-6{margin-inline-start:24px!important}.ms-sm-7{margin-inline-start:28px!important}.ms-sm-8{margin-inline-start:32px!important}.ms-sm-9{margin-inline-start:36px!important}.ms-sm-10{margin-inline-start:40px!important}.ms-sm-11{margin-inline-start:44px!important}.ms-sm-12{margin-inline-start:48px!important}.ms-sm-13{margin-inline-start:52px!important}.ms-sm-14{margin-inline-start:56px!important}.ms-sm-15{margin-inline-start:60px!important}.ms-sm-16{margin-inline-start:64px!important}.ms-sm-auto{margin-inline-start:auto!important}.me-sm-0{margin-inline-end:0px!important}.me-sm-1{margin-inline-end:4px!important}.me-sm-2{margin-inline-end:8px!important}.me-sm-3{margin-inline-end:12px!important}.me-sm-4{margin-inline-end:16px!important}.me-sm-5{margin-inline-end:20px!important}.me-sm-6{margin-inline-end:24px!important}.me-sm-7{margin-inline-end:28px!important}.me-sm-8{margin-inline-end:32px!important}.me-sm-9{margin-inline-end:36px!important}.me-sm-10{margin-inline-end:40px!important}.me-sm-11{margin-inline-end:44px!important}.me-sm-12{margin-inline-end:48px!important}.me-sm-13{margin-inline-end:52px!important}.me-sm-14{margin-inline-end:56px!important}.me-sm-15{margin-inline-end:60px!important}.me-sm-16{margin-inline-end:64px!important}.me-sm-auto{margin-inline-end:auto!important}.ma-sm-n1{margin:-4px!important}.ma-sm-n2{margin:-8px!important}.ma-sm-n3{margin:-12px!important}.ma-sm-n4{margin:-16px!important}.ma-sm-n5{margin:-20px!important}.ma-sm-n6{margin:-24px!important}.ma-sm-n7{margin:-28px!important}.ma-sm-n8{margin:-32px!important}.ma-sm-n9{margin:-36px!important}.ma-sm-n10{margin:-40px!important}.ma-sm-n11{margin:-44px!important}.ma-sm-n12{margin:-48px!important}.ma-sm-n13{margin:-52px!important}.ma-sm-n14{margin:-56px!important}.ma-sm-n15{margin:-60px!important}.ma-sm-n16{margin:-64px!important}.mx-sm-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-sm-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-sm-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-sm-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-sm-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-sm-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-sm-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-sm-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-sm-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-sm-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-sm-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-sm-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-sm-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-sm-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-sm-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-sm-n16{margin-right:-64px!important;margin-left:-64px!important}.my-sm-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-sm-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-sm-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-sm-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-sm-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-sm-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-sm-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-sm-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-sm-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-sm-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-sm-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-sm-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-sm-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-sm-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-sm-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-sm-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-sm-n1{margin-top:-4px!important}.mt-sm-n2{margin-top:-8px!important}.mt-sm-n3{margin-top:-12px!important}.mt-sm-n4{margin-top:-16px!important}.mt-sm-n5{margin-top:-20px!important}.mt-sm-n6{margin-top:-24px!important}.mt-sm-n7{margin-top:-28px!important}.mt-sm-n8{margin-top:-32px!important}.mt-sm-n9{margin-top:-36px!important}.mt-sm-n10{margin-top:-40px!important}.mt-sm-n11{margin-top:-44px!important}.mt-sm-n12{margin-top:-48px!important}.mt-sm-n13{margin-top:-52px!important}.mt-sm-n14{margin-top:-56px!important}.mt-sm-n15{margin-top:-60px!important}.mt-sm-n16{margin-top:-64px!important}.mr-sm-n1{margin-right:-4px!important}.mr-sm-n2{margin-right:-8px!important}.mr-sm-n3{margin-right:-12px!important}.mr-sm-n4{margin-right:-16px!important}.mr-sm-n5{margin-right:-20px!important}.mr-sm-n6{margin-right:-24px!important}.mr-sm-n7{margin-right:-28px!important}.mr-sm-n8{margin-right:-32px!important}.mr-sm-n9{margin-right:-36px!important}.mr-sm-n10{margin-right:-40px!important}.mr-sm-n11{margin-right:-44px!important}.mr-sm-n12{margin-right:-48px!important}.mr-sm-n13{margin-right:-52px!important}.mr-sm-n14{margin-right:-56px!important}.mr-sm-n15{margin-right:-60px!important}.mr-sm-n16{margin-right:-64px!important}.mb-sm-n1{margin-bottom:-4px!important}.mb-sm-n2{margin-bottom:-8px!important}.mb-sm-n3{margin-bottom:-12px!important}.mb-sm-n4{margin-bottom:-16px!important}.mb-sm-n5{margin-bottom:-20px!important}.mb-sm-n6{margin-bottom:-24px!important}.mb-sm-n7{margin-bottom:-28px!important}.mb-sm-n8{margin-bottom:-32px!important}.mb-sm-n9{margin-bottom:-36px!important}.mb-sm-n10{margin-bottom:-40px!important}.mb-sm-n11{margin-bottom:-44px!important}.mb-sm-n12{margin-bottom:-48px!important}.mb-sm-n13{margin-bottom:-52px!important}.mb-sm-n14{margin-bottom:-56px!important}.mb-sm-n15{margin-bottom:-60px!important}.mb-sm-n16{margin-bottom:-64px!important}.ml-sm-n1{margin-left:-4px!important}.ml-sm-n2{margin-left:-8px!important}.ml-sm-n3{margin-left:-12px!important}.ml-sm-n4{margin-left:-16px!important}.ml-sm-n5{margin-left:-20px!important}.ml-sm-n6{margin-left:-24px!important}.ml-sm-n7{margin-left:-28px!important}.ml-sm-n8{margin-left:-32px!important}.ml-sm-n9{margin-left:-36px!important}.ml-sm-n10{margin-left:-40px!important}.ml-sm-n11{margin-left:-44px!important}.ml-sm-n12{margin-left:-48px!important}.ml-sm-n13{margin-left:-52px!important}.ml-sm-n14{margin-left:-56px!important}.ml-sm-n15{margin-left:-60px!important}.ml-sm-n16{margin-left:-64px!important}.ms-sm-n1{margin-inline-start:-4px!important}.ms-sm-n2{margin-inline-start:-8px!important}.ms-sm-n3{margin-inline-start:-12px!important}.ms-sm-n4{margin-inline-start:-16px!important}.ms-sm-n5{margin-inline-start:-20px!important}.ms-sm-n6{margin-inline-start:-24px!important}.ms-sm-n7{margin-inline-start:-28px!important}.ms-sm-n8{margin-inline-start:-32px!important}.ms-sm-n9{margin-inline-start:-36px!important}.ms-sm-n10{margin-inline-start:-40px!important}.ms-sm-n11{margin-inline-start:-44px!important}.ms-sm-n12{margin-inline-start:-48px!important}.ms-sm-n13{margin-inline-start:-52px!important}.ms-sm-n14{margin-inline-start:-56px!important}.ms-sm-n15{margin-inline-start:-60px!important}.ms-sm-n16{margin-inline-start:-64px!important}.me-sm-n1{margin-inline-end:-4px!important}.me-sm-n2{margin-inline-end:-8px!important}.me-sm-n3{margin-inline-end:-12px!important}.me-sm-n4{margin-inline-end:-16px!important}.me-sm-n5{margin-inline-end:-20px!important}.me-sm-n6{margin-inline-end:-24px!important}.me-sm-n7{margin-inline-end:-28px!important}.me-sm-n8{margin-inline-end:-32px!important}.me-sm-n9{margin-inline-end:-36px!important}.me-sm-n10{margin-inline-end:-40px!important}.me-sm-n11{margin-inline-end:-44px!important}.me-sm-n12{margin-inline-end:-48px!important}.me-sm-n13{margin-inline-end:-52px!important}.me-sm-n14{margin-inline-end:-56px!important}.me-sm-n15{margin-inline-end:-60px!important}.me-sm-n16{margin-inline-end:-64px!important}.pa-sm-0{padding:0!important}.pa-sm-1{padding:4px!important}.pa-sm-2{padding:8px!important}.pa-sm-3{padding:12px!important}.pa-sm-4{padding:16px!important}.pa-sm-5{padding:20px!important}.pa-sm-6{padding:24px!important}.pa-sm-7{padding:28px!important}.pa-sm-8{padding:32px!important}.pa-sm-9{padding:36px!important}.pa-sm-10{padding:40px!important}.pa-sm-11{padding:44px!important}.pa-sm-12{padding:48px!important}.pa-sm-13{padding:52px!important}.pa-sm-14{padding:56px!important}.pa-sm-15{padding:60px!important}.pa-sm-16{padding:64px!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:4px!important;padding-left:4px!important}.px-sm-2{padding-right:8px!important;padding-left:8px!important}.px-sm-3{padding-right:12px!important;padding-left:12px!important}.px-sm-4{padding-right:16px!important;padding-left:16px!important}.px-sm-5{padding-right:20px!important;padding-left:20px!important}.px-sm-6{padding-right:24px!important;padding-left:24px!important}.px-sm-7{padding-right:28px!important;padding-left:28px!important}.px-sm-8{padding-right:32px!important;padding-left:32px!important}.px-sm-9{padding-right:36px!important;padding-left:36px!important}.px-sm-10{padding-right:40px!important;padding-left:40px!important}.px-sm-11{padding-right:44px!important;padding-left:44px!important}.px-sm-12{padding-right:48px!important;padding-left:48px!important}.px-sm-13{padding-right:52px!important;padding-left:52px!important}.px-sm-14{padding-right:56px!important;padding-left:56px!important}.px-sm-15{padding-right:60px!important;padding-left:60px!important}.px-sm-16{padding-right:64px!important;padding-left:64px!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:4px!important;padding-bottom:4px!important}.py-sm-2{padding-top:8px!important;padding-bottom:8px!important}.py-sm-3{padding-top:12px!important;padding-bottom:12px!important}.py-sm-4{padding-top:16px!important;padding-bottom:16px!important}.py-sm-5{padding-top:20px!important;padding-bottom:20px!important}.py-sm-6{padding-top:24px!important;padding-bottom:24px!important}.py-sm-7{padding-top:28px!important;padding-bottom:28px!important}.py-sm-8{padding-top:32px!important;padding-bottom:32px!important}.py-sm-9{padding-top:36px!important;padding-bottom:36px!important}.py-sm-10{padding-top:40px!important;padding-bottom:40px!important}.py-sm-11{padding-top:44px!important;padding-bottom:44px!important}.py-sm-12{padding-top:48px!important;padding-bottom:48px!important}.py-sm-13{padding-top:52px!important;padding-bottom:52px!important}.py-sm-14{padding-top:56px!important;padding-bottom:56px!important}.py-sm-15{padding-top:60px!important;padding-bottom:60px!important}.py-sm-16{padding-top:64px!important;padding-bottom:64px!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:4px!important}.pt-sm-2{padding-top:8px!important}.pt-sm-3{padding-top:12px!important}.pt-sm-4{padding-top:16px!important}.pt-sm-5{padding-top:20px!important}.pt-sm-6{padding-top:24px!important}.pt-sm-7{padding-top:28px!important}.pt-sm-8{padding-top:32px!important}.pt-sm-9{padding-top:36px!important}.pt-sm-10{padding-top:40px!important}.pt-sm-11{padding-top:44px!important}.pt-sm-12{padding-top:48px!important}.pt-sm-13{padding-top:52px!important}.pt-sm-14{padding-top:56px!important}.pt-sm-15{padding-top:60px!important}.pt-sm-16{padding-top:64px!important}.pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:4px!important}.pr-sm-2{padding-right:8px!important}.pr-sm-3{padding-right:12px!important}.pr-sm-4{padding-right:16px!important}.pr-sm-5{padding-right:20px!important}.pr-sm-6{padding-right:24px!important}.pr-sm-7{padding-right:28px!important}.pr-sm-8{padding-right:32px!important}.pr-sm-9{padding-right:36px!important}.pr-sm-10{padding-right:40px!important}.pr-sm-11{padding-right:44px!important}.pr-sm-12{padding-right:48px!important}.pr-sm-13{padding-right:52px!important}.pr-sm-14{padding-right:56px!important}.pr-sm-15{padding-right:60px!important}.pr-sm-16{padding-right:64px!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:4px!important}.pb-sm-2{padding-bottom:8px!important}.pb-sm-3{padding-bottom:12px!important}.pb-sm-4{padding-bottom:16px!important}.pb-sm-5{padding-bottom:20px!important}.pb-sm-6{padding-bottom:24px!important}.pb-sm-7{padding-bottom:28px!important}.pb-sm-8{padding-bottom:32px!important}.pb-sm-9{padding-bottom:36px!important}.pb-sm-10{padding-bottom:40px!important}.pb-sm-11{padding-bottom:44px!important}.pb-sm-12{padding-bottom:48px!important}.pb-sm-13{padding-bottom:52px!important}.pb-sm-14{padding-bottom:56px!important}.pb-sm-15{padding-bottom:60px!important}.pb-sm-16{padding-bottom:64px!important}.pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:4px!important}.pl-sm-2{padding-left:8px!important}.pl-sm-3{padding-left:12px!important}.pl-sm-4{padding-left:16px!important}.pl-sm-5{padding-left:20px!important}.pl-sm-6{padding-left:24px!important}.pl-sm-7{padding-left:28px!important}.pl-sm-8{padding-left:32px!important}.pl-sm-9{padding-left:36px!important}.pl-sm-10{padding-left:40px!important}.pl-sm-11{padding-left:44px!important}.pl-sm-12{padding-left:48px!important}.pl-sm-13{padding-left:52px!important}.pl-sm-14{padding-left:56px!important}.pl-sm-15{padding-left:60px!important}.pl-sm-16{padding-left:64px!important}.ps-sm-0{padding-inline-start:0px!important}.ps-sm-1{padding-inline-start:4px!important}.ps-sm-2{padding-inline-start:8px!important}.ps-sm-3{padding-inline-start:12px!important}.ps-sm-4{padding-inline-start:16px!important}.ps-sm-5{padding-inline-start:20px!important}.ps-sm-6{padding-inline-start:24px!important}.ps-sm-7{padding-inline-start:28px!important}.ps-sm-8{padding-inline-start:32px!important}.ps-sm-9{padding-inline-start:36px!important}.ps-sm-10{padding-inline-start:40px!important}.ps-sm-11{padding-inline-start:44px!important}.ps-sm-12{padding-inline-start:48px!important}.ps-sm-13{padding-inline-start:52px!important}.ps-sm-14{padding-inline-start:56px!important}.ps-sm-15{padding-inline-start:60px!important}.ps-sm-16{padding-inline-start:64px!important}.pe-sm-0{padding-inline-end:0px!important}.pe-sm-1{padding-inline-end:4px!important}.pe-sm-2{padding-inline-end:8px!important}.pe-sm-3{padding-inline-end:12px!important}.pe-sm-4{padding-inline-end:16px!important}.pe-sm-5{padding-inline-end:20px!important}.pe-sm-6{padding-inline-end:24px!important}.pe-sm-7{padding-inline-end:28px!important}.pe-sm-8{padding-inline-end:32px!important}.pe-sm-9{padding-inline-end:36px!important}.pe-sm-10{padding-inline-end:40px!important}.pe-sm-11{padding-inline-end:44px!important}.pe-sm-12{padding-inline-end:48px!important}.pe-sm-13{padding-inline-end:52px!important}.pe-sm-14{padding-inline-end:56px!important}.pe-sm-15{padding-inline-end:60px!important}.pe-sm-16{padding-inline-end:64px!important}.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}.text-sm-justify{text-align:justify!important}.text-sm-start{text-align:start!important}.text-sm-end{text-align:end!important}.text-sm-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-sm-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-sm-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-sm-auto{height:auto!important}.h-sm-screen{height:100vh!important}.h-sm-0{height:0!important}.h-sm-25{height:25%!important}.h-sm-50{height:50%!important}.h-sm-75{height:75%!important}.h-sm-100{height:100%!important}.w-sm-auto{width:auto!important}.w-sm-0{width:0!important}.w-sm-25{width:25%!important}.w-sm-33{width:33%!important}.w-sm-50{width:50%!important}.w-sm-66{width:66%!important}.w-sm-75{width:75%!important}.w-sm-100{width:100%!important}}@media (min-width: 960px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.float-md-none{float:none!important}.float-md-left{float:left!important}.float-md-right{float:right!important}.v-locale--is-rtl .float-md-end{float:left!important}.v-locale--is-rtl .float-md-start,.v-locale--is-ltr .float-md-end{float:right!important}.v-locale--is-ltr .float-md-start{float:left!important}.flex-md-fill,.flex-md-1-1{flex:1 1 auto!important}.flex-md-1-0{flex:1 0 auto!important}.flex-md-0-1{flex:0 1 auto!important}.flex-md-0-0{flex:0 0 auto!important}.flex-md-1-1-100{flex:1 1 100%!important}.flex-md-1-0-100{flex:1 0 100%!important}.flex-md-0-1-100{flex:0 1 100%!important}.flex-md-0-0-100{flex:0 0 100%!important}.flex-md-1-1-0{flex:1 1 0!important}.flex-md-1-0-0{flex:1 0 0!important}.flex-md-0-1-0{flex:0 1 0!important}.flex-md-0-0-0{flex:0 0 0!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-md-start{justify-content:flex-start!important}.justify-md-end{justify-content:flex-end!important}.justify-md-center{justify-content:center!important}.justify-md-space-between{justify-content:space-between!important}.justify-md-space-around{justify-content:space-around!important}.justify-md-space-evenly{justify-content:space-evenly!important}.align-md-start{align-items:flex-start!important}.align-md-end{align-items:flex-end!important}.align-md-center{align-items:center!important}.align-md-baseline{align-items:baseline!important}.align-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-space-between{align-content:space-between!important}.align-content-md-space-around{align-content:space-around!important}.align-content-md-space-evenly{align-content:space-evenly!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-6{order:6!important}.order-md-7{order:7!important}.order-md-8{order:8!important}.order-md-9{order:9!important}.order-md-10{order:10!important}.order-md-11{order:11!important}.order-md-12{order:12!important}.order-md-last{order:13!important}.ga-md-0{gap:0px!important}.ga-md-1{gap:4px!important}.ga-md-2{gap:8px!important}.ga-md-3{gap:12px!important}.ga-md-4{gap:16px!important}.ga-md-5{gap:20px!important}.ga-md-6{gap:24px!important}.ga-md-7{gap:28px!important}.ga-md-8{gap:32px!important}.ga-md-9{gap:36px!important}.ga-md-10{gap:40px!important}.ga-md-11{gap:44px!important}.ga-md-12{gap:48px!important}.ga-md-13{gap:52px!important}.ga-md-14{gap:56px!important}.ga-md-15{gap:60px!important}.ga-md-16{gap:64px!important}.ga-md-auto{gap:auto!important}.gr-md-0{row-gap:0px!important}.gr-md-1{row-gap:4px!important}.gr-md-2{row-gap:8px!important}.gr-md-3{row-gap:12px!important}.gr-md-4{row-gap:16px!important}.gr-md-5{row-gap:20px!important}.gr-md-6{row-gap:24px!important}.gr-md-7{row-gap:28px!important}.gr-md-8{row-gap:32px!important}.gr-md-9{row-gap:36px!important}.gr-md-10{row-gap:40px!important}.gr-md-11{row-gap:44px!important}.gr-md-12{row-gap:48px!important}.gr-md-13{row-gap:52px!important}.gr-md-14{row-gap:56px!important}.gr-md-15{row-gap:60px!important}.gr-md-16{row-gap:64px!important}.gr-md-auto{row-gap:auto!important}.gc-md-0{column-gap:0px!important}.gc-md-1{column-gap:4px!important}.gc-md-2{column-gap:8px!important}.gc-md-3{column-gap:12px!important}.gc-md-4{column-gap:16px!important}.gc-md-5{column-gap:20px!important}.gc-md-6{column-gap:24px!important}.gc-md-7{column-gap:28px!important}.gc-md-8{column-gap:32px!important}.gc-md-9{column-gap:36px!important}.gc-md-10{column-gap:40px!important}.gc-md-11{column-gap:44px!important}.gc-md-12{column-gap:48px!important}.gc-md-13{column-gap:52px!important}.gc-md-14{column-gap:56px!important}.gc-md-15{column-gap:60px!important}.gc-md-16{column-gap:64px!important}.gc-md-auto{column-gap:auto!important}.ma-md-0{margin:0!important}.ma-md-1{margin:4px!important}.ma-md-2{margin:8px!important}.ma-md-3{margin:12px!important}.ma-md-4{margin:16px!important}.ma-md-5{margin:20px!important}.ma-md-6{margin:24px!important}.ma-md-7{margin:28px!important}.ma-md-8{margin:32px!important}.ma-md-9{margin:36px!important}.ma-md-10{margin:40px!important}.ma-md-11{margin:44px!important}.ma-md-12{margin:48px!important}.ma-md-13{margin:52px!important}.ma-md-14{margin:56px!important}.ma-md-15{margin:60px!important}.ma-md-16{margin:64px!important}.ma-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:4px!important;margin-left:4px!important}.mx-md-2{margin-right:8px!important;margin-left:8px!important}.mx-md-3{margin-right:12px!important;margin-left:12px!important}.mx-md-4{margin-right:16px!important;margin-left:16px!important}.mx-md-5{margin-right:20px!important;margin-left:20px!important}.mx-md-6{margin-right:24px!important;margin-left:24px!important}.mx-md-7{margin-right:28px!important;margin-left:28px!important}.mx-md-8{margin-right:32px!important;margin-left:32px!important}.mx-md-9{margin-right:36px!important;margin-left:36px!important}.mx-md-10{margin-right:40px!important;margin-left:40px!important}.mx-md-11{margin-right:44px!important;margin-left:44px!important}.mx-md-12{margin-right:48px!important;margin-left:48px!important}.mx-md-13{margin-right:52px!important;margin-left:52px!important}.mx-md-14{margin-right:56px!important;margin-left:56px!important}.mx-md-15{margin-right:60px!important;margin-left:60px!important}.mx-md-16{margin-right:64px!important;margin-left:64px!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:4px!important;margin-bottom:4px!important}.my-md-2{margin-top:8px!important;margin-bottom:8px!important}.my-md-3{margin-top:12px!important;margin-bottom:12px!important}.my-md-4{margin-top:16px!important;margin-bottom:16px!important}.my-md-5{margin-top:20px!important;margin-bottom:20px!important}.my-md-6{margin-top:24px!important;margin-bottom:24px!important}.my-md-7{margin-top:28px!important;margin-bottom:28px!important}.my-md-8{margin-top:32px!important;margin-bottom:32px!important}.my-md-9{margin-top:36px!important;margin-bottom:36px!important}.my-md-10{margin-top:40px!important;margin-bottom:40px!important}.my-md-11{margin-top:44px!important;margin-bottom:44px!important}.my-md-12{margin-top:48px!important;margin-bottom:48px!important}.my-md-13{margin-top:52px!important;margin-bottom:52px!important}.my-md-14{margin-top:56px!important;margin-bottom:56px!important}.my-md-15{margin-top:60px!important;margin-bottom:60px!important}.my-md-16{margin-top:64px!important;margin-bottom:64px!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:4px!important}.mt-md-2{margin-top:8px!important}.mt-md-3{margin-top:12px!important}.mt-md-4{margin-top:16px!important}.mt-md-5{margin-top:20px!important}.mt-md-6{margin-top:24px!important}.mt-md-7{margin-top:28px!important}.mt-md-8{margin-top:32px!important}.mt-md-9{margin-top:36px!important}.mt-md-10{margin-top:40px!important}.mt-md-11{margin-top:44px!important}.mt-md-12{margin-top:48px!important}.mt-md-13{margin-top:52px!important}.mt-md-14{margin-top:56px!important}.mt-md-15{margin-top:60px!important}.mt-md-16{margin-top:64px!important}.mt-md-auto{margin-top:auto!important}.mr-md-0{margin-right:0!important}.mr-md-1{margin-right:4px!important}.mr-md-2{margin-right:8px!important}.mr-md-3{margin-right:12px!important}.mr-md-4{margin-right:16px!important}.mr-md-5{margin-right:20px!important}.mr-md-6{margin-right:24px!important}.mr-md-7{margin-right:28px!important}.mr-md-8{margin-right:32px!important}.mr-md-9{margin-right:36px!important}.mr-md-10{margin-right:40px!important}.mr-md-11{margin-right:44px!important}.mr-md-12{margin-right:48px!important}.mr-md-13{margin-right:52px!important}.mr-md-14{margin-right:56px!important}.mr-md-15{margin-right:60px!important}.mr-md-16{margin-right:64px!important}.mr-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:4px!important}.mb-md-2{margin-bottom:8px!important}.mb-md-3{margin-bottom:12px!important}.mb-md-4{margin-bottom:16px!important}.mb-md-5{margin-bottom:20px!important}.mb-md-6{margin-bottom:24px!important}.mb-md-7{margin-bottom:28px!important}.mb-md-8{margin-bottom:32px!important}.mb-md-9{margin-bottom:36px!important}.mb-md-10{margin-bottom:40px!important}.mb-md-11{margin-bottom:44px!important}.mb-md-12{margin-bottom:48px!important}.mb-md-13{margin-bottom:52px!important}.mb-md-14{margin-bottom:56px!important}.mb-md-15{margin-bottom:60px!important}.mb-md-16{margin-bottom:64px!important}.mb-md-auto{margin-bottom:auto!important}.ml-md-0{margin-left:0!important}.ml-md-1{margin-left:4px!important}.ml-md-2{margin-left:8px!important}.ml-md-3{margin-left:12px!important}.ml-md-4{margin-left:16px!important}.ml-md-5{margin-left:20px!important}.ml-md-6{margin-left:24px!important}.ml-md-7{margin-left:28px!important}.ml-md-8{margin-left:32px!important}.ml-md-9{margin-left:36px!important}.ml-md-10{margin-left:40px!important}.ml-md-11{margin-left:44px!important}.ml-md-12{margin-left:48px!important}.ml-md-13{margin-left:52px!important}.ml-md-14{margin-left:56px!important}.ml-md-15{margin-left:60px!important}.ml-md-16{margin-left:64px!important}.ml-md-auto{margin-left:auto!important}.ms-md-0{margin-inline-start:0px!important}.ms-md-1{margin-inline-start:4px!important}.ms-md-2{margin-inline-start:8px!important}.ms-md-3{margin-inline-start:12px!important}.ms-md-4{margin-inline-start:16px!important}.ms-md-5{margin-inline-start:20px!important}.ms-md-6{margin-inline-start:24px!important}.ms-md-7{margin-inline-start:28px!important}.ms-md-8{margin-inline-start:32px!important}.ms-md-9{margin-inline-start:36px!important}.ms-md-10{margin-inline-start:40px!important}.ms-md-11{margin-inline-start:44px!important}.ms-md-12{margin-inline-start:48px!important}.ms-md-13{margin-inline-start:52px!important}.ms-md-14{margin-inline-start:56px!important}.ms-md-15{margin-inline-start:60px!important}.ms-md-16{margin-inline-start:64px!important}.ms-md-auto{margin-inline-start:auto!important}.me-md-0{margin-inline-end:0px!important}.me-md-1{margin-inline-end:4px!important}.me-md-2{margin-inline-end:8px!important}.me-md-3{margin-inline-end:12px!important}.me-md-4{margin-inline-end:16px!important}.me-md-5{margin-inline-end:20px!important}.me-md-6{margin-inline-end:24px!important}.me-md-7{margin-inline-end:28px!important}.me-md-8{margin-inline-end:32px!important}.me-md-9{margin-inline-end:36px!important}.me-md-10{margin-inline-end:40px!important}.me-md-11{margin-inline-end:44px!important}.me-md-12{margin-inline-end:48px!important}.me-md-13{margin-inline-end:52px!important}.me-md-14{margin-inline-end:56px!important}.me-md-15{margin-inline-end:60px!important}.me-md-16{margin-inline-end:64px!important}.me-md-auto{margin-inline-end:auto!important}.ma-md-n1{margin:-4px!important}.ma-md-n2{margin:-8px!important}.ma-md-n3{margin:-12px!important}.ma-md-n4{margin:-16px!important}.ma-md-n5{margin:-20px!important}.ma-md-n6{margin:-24px!important}.ma-md-n7{margin:-28px!important}.ma-md-n8{margin:-32px!important}.ma-md-n9{margin:-36px!important}.ma-md-n10{margin:-40px!important}.ma-md-n11{margin:-44px!important}.ma-md-n12{margin:-48px!important}.ma-md-n13{margin:-52px!important}.ma-md-n14{margin:-56px!important}.ma-md-n15{margin:-60px!important}.ma-md-n16{margin:-64px!important}.mx-md-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-md-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-md-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-md-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-md-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-md-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-md-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-md-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-md-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-md-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-md-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-md-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-md-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-md-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-md-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-md-n16{margin-right:-64px!important;margin-left:-64px!important}.my-md-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-md-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-md-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-md-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-md-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-md-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-md-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-md-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-md-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-md-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-md-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-md-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-md-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-md-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-md-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-md-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-md-n1{margin-top:-4px!important}.mt-md-n2{margin-top:-8px!important}.mt-md-n3{margin-top:-12px!important}.mt-md-n4{margin-top:-16px!important}.mt-md-n5{margin-top:-20px!important}.mt-md-n6{margin-top:-24px!important}.mt-md-n7{margin-top:-28px!important}.mt-md-n8{margin-top:-32px!important}.mt-md-n9{margin-top:-36px!important}.mt-md-n10{margin-top:-40px!important}.mt-md-n11{margin-top:-44px!important}.mt-md-n12{margin-top:-48px!important}.mt-md-n13{margin-top:-52px!important}.mt-md-n14{margin-top:-56px!important}.mt-md-n15{margin-top:-60px!important}.mt-md-n16{margin-top:-64px!important}.mr-md-n1{margin-right:-4px!important}.mr-md-n2{margin-right:-8px!important}.mr-md-n3{margin-right:-12px!important}.mr-md-n4{margin-right:-16px!important}.mr-md-n5{margin-right:-20px!important}.mr-md-n6{margin-right:-24px!important}.mr-md-n7{margin-right:-28px!important}.mr-md-n8{margin-right:-32px!important}.mr-md-n9{margin-right:-36px!important}.mr-md-n10{margin-right:-40px!important}.mr-md-n11{margin-right:-44px!important}.mr-md-n12{margin-right:-48px!important}.mr-md-n13{margin-right:-52px!important}.mr-md-n14{margin-right:-56px!important}.mr-md-n15{margin-right:-60px!important}.mr-md-n16{margin-right:-64px!important}.mb-md-n1{margin-bottom:-4px!important}.mb-md-n2{margin-bottom:-8px!important}.mb-md-n3{margin-bottom:-12px!important}.mb-md-n4{margin-bottom:-16px!important}.mb-md-n5{margin-bottom:-20px!important}.mb-md-n6{margin-bottom:-24px!important}.mb-md-n7{margin-bottom:-28px!important}.mb-md-n8{margin-bottom:-32px!important}.mb-md-n9{margin-bottom:-36px!important}.mb-md-n10{margin-bottom:-40px!important}.mb-md-n11{margin-bottom:-44px!important}.mb-md-n12{margin-bottom:-48px!important}.mb-md-n13{margin-bottom:-52px!important}.mb-md-n14{margin-bottom:-56px!important}.mb-md-n15{margin-bottom:-60px!important}.mb-md-n16{margin-bottom:-64px!important}.ml-md-n1{margin-left:-4px!important}.ml-md-n2{margin-left:-8px!important}.ml-md-n3{margin-left:-12px!important}.ml-md-n4{margin-left:-16px!important}.ml-md-n5{margin-left:-20px!important}.ml-md-n6{margin-left:-24px!important}.ml-md-n7{margin-left:-28px!important}.ml-md-n8{margin-left:-32px!important}.ml-md-n9{margin-left:-36px!important}.ml-md-n10{margin-left:-40px!important}.ml-md-n11{margin-left:-44px!important}.ml-md-n12{margin-left:-48px!important}.ml-md-n13{margin-left:-52px!important}.ml-md-n14{margin-left:-56px!important}.ml-md-n15{margin-left:-60px!important}.ml-md-n16{margin-left:-64px!important}.ms-md-n1{margin-inline-start:-4px!important}.ms-md-n2{margin-inline-start:-8px!important}.ms-md-n3{margin-inline-start:-12px!important}.ms-md-n4{margin-inline-start:-16px!important}.ms-md-n5{margin-inline-start:-20px!important}.ms-md-n6{margin-inline-start:-24px!important}.ms-md-n7{margin-inline-start:-28px!important}.ms-md-n8{margin-inline-start:-32px!important}.ms-md-n9{margin-inline-start:-36px!important}.ms-md-n10{margin-inline-start:-40px!important}.ms-md-n11{margin-inline-start:-44px!important}.ms-md-n12{margin-inline-start:-48px!important}.ms-md-n13{margin-inline-start:-52px!important}.ms-md-n14{margin-inline-start:-56px!important}.ms-md-n15{margin-inline-start:-60px!important}.ms-md-n16{margin-inline-start:-64px!important}.me-md-n1{margin-inline-end:-4px!important}.me-md-n2{margin-inline-end:-8px!important}.me-md-n3{margin-inline-end:-12px!important}.me-md-n4{margin-inline-end:-16px!important}.me-md-n5{margin-inline-end:-20px!important}.me-md-n6{margin-inline-end:-24px!important}.me-md-n7{margin-inline-end:-28px!important}.me-md-n8{margin-inline-end:-32px!important}.me-md-n9{margin-inline-end:-36px!important}.me-md-n10{margin-inline-end:-40px!important}.me-md-n11{margin-inline-end:-44px!important}.me-md-n12{margin-inline-end:-48px!important}.me-md-n13{margin-inline-end:-52px!important}.me-md-n14{margin-inline-end:-56px!important}.me-md-n15{margin-inline-end:-60px!important}.me-md-n16{margin-inline-end:-64px!important}.pa-md-0{padding:0!important}.pa-md-1{padding:4px!important}.pa-md-2{padding:8px!important}.pa-md-3{padding:12px!important}.pa-md-4{padding:16px!important}.pa-md-5{padding:20px!important}.pa-md-6{padding:24px!important}.pa-md-7{padding:28px!important}.pa-md-8{padding:32px!important}.pa-md-9{padding:36px!important}.pa-md-10{padding:40px!important}.pa-md-11{padding:44px!important}.pa-md-12{padding:48px!important}.pa-md-13{padding:52px!important}.pa-md-14{padding:56px!important}.pa-md-15{padding:60px!important}.pa-md-16{padding:64px!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:4px!important;padding-left:4px!important}.px-md-2{padding-right:8px!important;padding-left:8px!important}.px-md-3{padding-right:12px!important;padding-left:12px!important}.px-md-4{padding-right:16px!important;padding-left:16px!important}.px-md-5{padding-right:20px!important;padding-left:20px!important}.px-md-6{padding-right:24px!important;padding-left:24px!important}.px-md-7{padding-right:28px!important;padding-left:28px!important}.px-md-8{padding-right:32px!important;padding-left:32px!important}.px-md-9{padding-right:36px!important;padding-left:36px!important}.px-md-10{padding-right:40px!important;padding-left:40px!important}.px-md-11{padding-right:44px!important;padding-left:44px!important}.px-md-12{padding-right:48px!important;padding-left:48px!important}.px-md-13{padding-right:52px!important;padding-left:52px!important}.px-md-14{padding-right:56px!important;padding-left:56px!important}.px-md-15{padding-right:60px!important;padding-left:60px!important}.px-md-16{padding-right:64px!important;padding-left:64px!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:4px!important;padding-bottom:4px!important}.py-md-2{padding-top:8px!important;padding-bottom:8px!important}.py-md-3{padding-top:12px!important;padding-bottom:12px!important}.py-md-4{padding-top:16px!important;padding-bottom:16px!important}.py-md-5{padding-top:20px!important;padding-bottom:20px!important}.py-md-6{padding-top:24px!important;padding-bottom:24px!important}.py-md-7{padding-top:28px!important;padding-bottom:28px!important}.py-md-8{padding-top:32px!important;padding-bottom:32px!important}.py-md-9{padding-top:36px!important;padding-bottom:36px!important}.py-md-10{padding-top:40px!important;padding-bottom:40px!important}.py-md-11{padding-top:44px!important;padding-bottom:44px!important}.py-md-12{padding-top:48px!important;padding-bottom:48px!important}.py-md-13{padding-top:52px!important;padding-bottom:52px!important}.py-md-14{padding-top:56px!important;padding-bottom:56px!important}.py-md-15{padding-top:60px!important;padding-bottom:60px!important}.py-md-16{padding-top:64px!important;padding-bottom:64px!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:4px!important}.pt-md-2{padding-top:8px!important}.pt-md-3{padding-top:12px!important}.pt-md-4{padding-top:16px!important}.pt-md-5{padding-top:20px!important}.pt-md-6{padding-top:24px!important}.pt-md-7{padding-top:28px!important}.pt-md-8{padding-top:32px!important}.pt-md-9{padding-top:36px!important}.pt-md-10{padding-top:40px!important}.pt-md-11{padding-top:44px!important}.pt-md-12{padding-top:48px!important}.pt-md-13{padding-top:52px!important}.pt-md-14{padding-top:56px!important}.pt-md-15{padding-top:60px!important}.pt-md-16{padding-top:64px!important}.pr-md-0{padding-right:0!important}.pr-md-1{padding-right:4px!important}.pr-md-2{padding-right:8px!important}.pr-md-3{padding-right:12px!important}.pr-md-4{padding-right:16px!important}.pr-md-5{padding-right:20px!important}.pr-md-6{padding-right:24px!important}.pr-md-7{padding-right:28px!important}.pr-md-8{padding-right:32px!important}.pr-md-9{padding-right:36px!important}.pr-md-10{padding-right:40px!important}.pr-md-11{padding-right:44px!important}.pr-md-12{padding-right:48px!important}.pr-md-13{padding-right:52px!important}.pr-md-14{padding-right:56px!important}.pr-md-15{padding-right:60px!important}.pr-md-16{padding-right:64px!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:4px!important}.pb-md-2{padding-bottom:8px!important}.pb-md-3{padding-bottom:12px!important}.pb-md-4{padding-bottom:16px!important}.pb-md-5{padding-bottom:20px!important}.pb-md-6{padding-bottom:24px!important}.pb-md-7{padding-bottom:28px!important}.pb-md-8{padding-bottom:32px!important}.pb-md-9{padding-bottom:36px!important}.pb-md-10{padding-bottom:40px!important}.pb-md-11{padding-bottom:44px!important}.pb-md-12{padding-bottom:48px!important}.pb-md-13{padding-bottom:52px!important}.pb-md-14{padding-bottom:56px!important}.pb-md-15{padding-bottom:60px!important}.pb-md-16{padding-bottom:64px!important}.pl-md-0{padding-left:0!important}.pl-md-1{padding-left:4px!important}.pl-md-2{padding-left:8px!important}.pl-md-3{padding-left:12px!important}.pl-md-4{padding-left:16px!important}.pl-md-5{padding-left:20px!important}.pl-md-6{padding-left:24px!important}.pl-md-7{padding-left:28px!important}.pl-md-8{padding-left:32px!important}.pl-md-9{padding-left:36px!important}.pl-md-10{padding-left:40px!important}.pl-md-11{padding-left:44px!important}.pl-md-12{padding-left:48px!important}.pl-md-13{padding-left:52px!important}.pl-md-14{padding-left:56px!important}.pl-md-15{padding-left:60px!important}.pl-md-16{padding-left:64px!important}.ps-md-0{padding-inline-start:0px!important}.ps-md-1{padding-inline-start:4px!important}.ps-md-2{padding-inline-start:8px!important}.ps-md-3{padding-inline-start:12px!important}.ps-md-4{padding-inline-start:16px!important}.ps-md-5{padding-inline-start:20px!important}.ps-md-6{padding-inline-start:24px!important}.ps-md-7{padding-inline-start:28px!important}.ps-md-8{padding-inline-start:32px!important}.ps-md-9{padding-inline-start:36px!important}.ps-md-10{padding-inline-start:40px!important}.ps-md-11{padding-inline-start:44px!important}.ps-md-12{padding-inline-start:48px!important}.ps-md-13{padding-inline-start:52px!important}.ps-md-14{padding-inline-start:56px!important}.ps-md-15{padding-inline-start:60px!important}.ps-md-16{padding-inline-start:64px!important}.pe-md-0{padding-inline-end:0px!important}.pe-md-1{padding-inline-end:4px!important}.pe-md-2{padding-inline-end:8px!important}.pe-md-3{padding-inline-end:12px!important}.pe-md-4{padding-inline-end:16px!important}.pe-md-5{padding-inline-end:20px!important}.pe-md-6{padding-inline-end:24px!important}.pe-md-7{padding-inline-end:28px!important}.pe-md-8{padding-inline-end:32px!important}.pe-md-9{padding-inline-end:36px!important}.pe-md-10{padding-inline-end:40px!important}.pe-md-11{padding-inline-end:44px!important}.pe-md-12{padding-inline-end:48px!important}.pe-md-13{padding-inline-end:52px!important}.pe-md-14{padding-inline-end:56px!important}.pe-md-15{padding-inline-end:60px!important}.pe-md-16{padding-inline-end:64px!important}.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}.text-md-justify{text-align:justify!important}.text-md-start{text-align:start!important}.text-md-end{text-align:end!important}.text-md-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-md-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-md-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-md-auto{height:auto!important}.h-md-screen{height:100vh!important}.h-md-0{height:0!important}.h-md-25{height:25%!important}.h-md-50{height:50%!important}.h-md-75{height:75%!important}.h-md-100{height:100%!important}.w-md-auto{width:auto!important}.w-md-0{width:0!important}.w-md-25{width:25%!important}.w-md-33{width:33%!important}.w-md-50{width:50%!important}.w-md-66{width:66%!important}.w-md-75{width:75%!important}.w-md-100{width:100%!important}}@media (min-width: 1280px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.float-lg-none{float:none!important}.float-lg-left{float:left!important}.float-lg-right{float:right!important}.v-locale--is-rtl .float-lg-end{float:left!important}.v-locale--is-rtl .float-lg-start,.v-locale--is-ltr .float-lg-end{float:right!important}.v-locale--is-ltr .float-lg-start{float:left!important}.flex-lg-fill,.flex-lg-1-1{flex:1 1 auto!important}.flex-lg-1-0{flex:1 0 auto!important}.flex-lg-0-1{flex:0 1 auto!important}.flex-lg-0-0{flex:0 0 auto!important}.flex-lg-1-1-100{flex:1 1 100%!important}.flex-lg-1-0-100{flex:1 0 100%!important}.flex-lg-0-1-100{flex:0 1 100%!important}.flex-lg-0-0-100{flex:0 0 100%!important}.flex-lg-1-1-0{flex:1 1 0!important}.flex-lg-1-0-0{flex:1 0 0!important}.flex-lg-0-1-0{flex:0 1 0!important}.flex-lg-0-0-0{flex:0 0 0!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-lg-start{justify-content:flex-start!important}.justify-lg-end{justify-content:flex-end!important}.justify-lg-center{justify-content:center!important}.justify-lg-space-between{justify-content:space-between!important}.justify-lg-space-around{justify-content:space-around!important}.justify-lg-space-evenly{justify-content:space-evenly!important}.align-lg-start{align-items:flex-start!important}.align-lg-end{align-items:flex-end!important}.align-lg-center{align-items:center!important}.align-lg-baseline{align-items:baseline!important}.align-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-space-between{align-content:space-between!important}.align-content-lg-space-around{align-content:space-around!important}.align-content-lg-space-evenly{align-content:space-evenly!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-6{order:6!important}.order-lg-7{order:7!important}.order-lg-8{order:8!important}.order-lg-9{order:9!important}.order-lg-10{order:10!important}.order-lg-11{order:11!important}.order-lg-12{order:12!important}.order-lg-last{order:13!important}.ga-lg-0{gap:0px!important}.ga-lg-1{gap:4px!important}.ga-lg-2{gap:8px!important}.ga-lg-3{gap:12px!important}.ga-lg-4{gap:16px!important}.ga-lg-5{gap:20px!important}.ga-lg-6{gap:24px!important}.ga-lg-7{gap:28px!important}.ga-lg-8{gap:32px!important}.ga-lg-9{gap:36px!important}.ga-lg-10{gap:40px!important}.ga-lg-11{gap:44px!important}.ga-lg-12{gap:48px!important}.ga-lg-13{gap:52px!important}.ga-lg-14{gap:56px!important}.ga-lg-15{gap:60px!important}.ga-lg-16{gap:64px!important}.ga-lg-auto{gap:auto!important}.gr-lg-0{row-gap:0px!important}.gr-lg-1{row-gap:4px!important}.gr-lg-2{row-gap:8px!important}.gr-lg-3{row-gap:12px!important}.gr-lg-4{row-gap:16px!important}.gr-lg-5{row-gap:20px!important}.gr-lg-6{row-gap:24px!important}.gr-lg-7{row-gap:28px!important}.gr-lg-8{row-gap:32px!important}.gr-lg-9{row-gap:36px!important}.gr-lg-10{row-gap:40px!important}.gr-lg-11{row-gap:44px!important}.gr-lg-12{row-gap:48px!important}.gr-lg-13{row-gap:52px!important}.gr-lg-14{row-gap:56px!important}.gr-lg-15{row-gap:60px!important}.gr-lg-16{row-gap:64px!important}.gr-lg-auto{row-gap:auto!important}.gc-lg-0{column-gap:0px!important}.gc-lg-1{column-gap:4px!important}.gc-lg-2{column-gap:8px!important}.gc-lg-3{column-gap:12px!important}.gc-lg-4{column-gap:16px!important}.gc-lg-5{column-gap:20px!important}.gc-lg-6{column-gap:24px!important}.gc-lg-7{column-gap:28px!important}.gc-lg-8{column-gap:32px!important}.gc-lg-9{column-gap:36px!important}.gc-lg-10{column-gap:40px!important}.gc-lg-11{column-gap:44px!important}.gc-lg-12{column-gap:48px!important}.gc-lg-13{column-gap:52px!important}.gc-lg-14{column-gap:56px!important}.gc-lg-15{column-gap:60px!important}.gc-lg-16{column-gap:64px!important}.gc-lg-auto{column-gap:auto!important}.ma-lg-0{margin:0!important}.ma-lg-1{margin:4px!important}.ma-lg-2{margin:8px!important}.ma-lg-3{margin:12px!important}.ma-lg-4{margin:16px!important}.ma-lg-5{margin:20px!important}.ma-lg-6{margin:24px!important}.ma-lg-7{margin:28px!important}.ma-lg-8{margin:32px!important}.ma-lg-9{margin:36px!important}.ma-lg-10{margin:40px!important}.ma-lg-11{margin:44px!important}.ma-lg-12{margin:48px!important}.ma-lg-13{margin:52px!important}.ma-lg-14{margin:56px!important}.ma-lg-15{margin:60px!important}.ma-lg-16{margin:64px!important}.ma-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:4px!important;margin-left:4px!important}.mx-lg-2{margin-right:8px!important;margin-left:8px!important}.mx-lg-3{margin-right:12px!important;margin-left:12px!important}.mx-lg-4{margin-right:16px!important;margin-left:16px!important}.mx-lg-5{margin-right:20px!important;margin-left:20px!important}.mx-lg-6{margin-right:24px!important;margin-left:24px!important}.mx-lg-7{margin-right:28px!important;margin-left:28px!important}.mx-lg-8{margin-right:32px!important;margin-left:32px!important}.mx-lg-9{margin-right:36px!important;margin-left:36px!important}.mx-lg-10{margin-right:40px!important;margin-left:40px!important}.mx-lg-11{margin-right:44px!important;margin-left:44px!important}.mx-lg-12{margin-right:48px!important;margin-left:48px!important}.mx-lg-13{margin-right:52px!important;margin-left:52px!important}.mx-lg-14{margin-right:56px!important;margin-left:56px!important}.mx-lg-15{margin-right:60px!important;margin-left:60px!important}.mx-lg-16{margin-right:64px!important;margin-left:64px!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:4px!important;margin-bottom:4px!important}.my-lg-2{margin-top:8px!important;margin-bottom:8px!important}.my-lg-3{margin-top:12px!important;margin-bottom:12px!important}.my-lg-4{margin-top:16px!important;margin-bottom:16px!important}.my-lg-5{margin-top:20px!important;margin-bottom:20px!important}.my-lg-6{margin-top:24px!important;margin-bottom:24px!important}.my-lg-7{margin-top:28px!important;margin-bottom:28px!important}.my-lg-8{margin-top:32px!important;margin-bottom:32px!important}.my-lg-9{margin-top:36px!important;margin-bottom:36px!important}.my-lg-10{margin-top:40px!important;margin-bottom:40px!important}.my-lg-11{margin-top:44px!important;margin-bottom:44px!important}.my-lg-12{margin-top:48px!important;margin-bottom:48px!important}.my-lg-13{margin-top:52px!important;margin-bottom:52px!important}.my-lg-14{margin-top:56px!important;margin-bottom:56px!important}.my-lg-15{margin-top:60px!important;margin-bottom:60px!important}.my-lg-16{margin-top:64px!important;margin-bottom:64px!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:4px!important}.mt-lg-2{margin-top:8px!important}.mt-lg-3{margin-top:12px!important}.mt-lg-4{margin-top:16px!important}.mt-lg-5{margin-top:20px!important}.mt-lg-6{margin-top:24px!important}.mt-lg-7{margin-top:28px!important}.mt-lg-8{margin-top:32px!important}.mt-lg-9{margin-top:36px!important}.mt-lg-10{margin-top:40px!important}.mt-lg-11{margin-top:44px!important}.mt-lg-12{margin-top:48px!important}.mt-lg-13{margin-top:52px!important}.mt-lg-14{margin-top:56px!important}.mt-lg-15{margin-top:60px!important}.mt-lg-16{margin-top:64px!important}.mt-lg-auto{margin-top:auto!important}.mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:4px!important}.mr-lg-2{margin-right:8px!important}.mr-lg-3{margin-right:12px!important}.mr-lg-4{margin-right:16px!important}.mr-lg-5{margin-right:20px!important}.mr-lg-6{margin-right:24px!important}.mr-lg-7{margin-right:28px!important}.mr-lg-8{margin-right:32px!important}.mr-lg-9{margin-right:36px!important}.mr-lg-10{margin-right:40px!important}.mr-lg-11{margin-right:44px!important}.mr-lg-12{margin-right:48px!important}.mr-lg-13{margin-right:52px!important}.mr-lg-14{margin-right:56px!important}.mr-lg-15{margin-right:60px!important}.mr-lg-16{margin-right:64px!important}.mr-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:4px!important}.mb-lg-2{margin-bottom:8px!important}.mb-lg-3{margin-bottom:12px!important}.mb-lg-4{margin-bottom:16px!important}.mb-lg-5{margin-bottom:20px!important}.mb-lg-6{margin-bottom:24px!important}.mb-lg-7{margin-bottom:28px!important}.mb-lg-8{margin-bottom:32px!important}.mb-lg-9{margin-bottom:36px!important}.mb-lg-10{margin-bottom:40px!important}.mb-lg-11{margin-bottom:44px!important}.mb-lg-12{margin-bottom:48px!important}.mb-lg-13{margin-bottom:52px!important}.mb-lg-14{margin-bottom:56px!important}.mb-lg-15{margin-bottom:60px!important}.mb-lg-16{margin-bottom:64px!important}.mb-lg-auto{margin-bottom:auto!important}.ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:4px!important}.ml-lg-2{margin-left:8px!important}.ml-lg-3{margin-left:12px!important}.ml-lg-4{margin-left:16px!important}.ml-lg-5{margin-left:20px!important}.ml-lg-6{margin-left:24px!important}.ml-lg-7{margin-left:28px!important}.ml-lg-8{margin-left:32px!important}.ml-lg-9{margin-left:36px!important}.ml-lg-10{margin-left:40px!important}.ml-lg-11{margin-left:44px!important}.ml-lg-12{margin-left:48px!important}.ml-lg-13{margin-left:52px!important}.ml-lg-14{margin-left:56px!important}.ml-lg-15{margin-left:60px!important}.ml-lg-16{margin-left:64px!important}.ml-lg-auto{margin-left:auto!important}.ms-lg-0{margin-inline-start:0px!important}.ms-lg-1{margin-inline-start:4px!important}.ms-lg-2{margin-inline-start:8px!important}.ms-lg-3{margin-inline-start:12px!important}.ms-lg-4{margin-inline-start:16px!important}.ms-lg-5{margin-inline-start:20px!important}.ms-lg-6{margin-inline-start:24px!important}.ms-lg-7{margin-inline-start:28px!important}.ms-lg-8{margin-inline-start:32px!important}.ms-lg-9{margin-inline-start:36px!important}.ms-lg-10{margin-inline-start:40px!important}.ms-lg-11{margin-inline-start:44px!important}.ms-lg-12{margin-inline-start:48px!important}.ms-lg-13{margin-inline-start:52px!important}.ms-lg-14{margin-inline-start:56px!important}.ms-lg-15{margin-inline-start:60px!important}.ms-lg-16{margin-inline-start:64px!important}.ms-lg-auto{margin-inline-start:auto!important}.me-lg-0{margin-inline-end:0px!important}.me-lg-1{margin-inline-end:4px!important}.me-lg-2{margin-inline-end:8px!important}.me-lg-3{margin-inline-end:12px!important}.me-lg-4{margin-inline-end:16px!important}.me-lg-5{margin-inline-end:20px!important}.me-lg-6{margin-inline-end:24px!important}.me-lg-7{margin-inline-end:28px!important}.me-lg-8{margin-inline-end:32px!important}.me-lg-9{margin-inline-end:36px!important}.me-lg-10{margin-inline-end:40px!important}.me-lg-11{margin-inline-end:44px!important}.me-lg-12{margin-inline-end:48px!important}.me-lg-13{margin-inline-end:52px!important}.me-lg-14{margin-inline-end:56px!important}.me-lg-15{margin-inline-end:60px!important}.me-lg-16{margin-inline-end:64px!important}.me-lg-auto{margin-inline-end:auto!important}.ma-lg-n1{margin:-4px!important}.ma-lg-n2{margin:-8px!important}.ma-lg-n3{margin:-12px!important}.ma-lg-n4{margin:-16px!important}.ma-lg-n5{margin:-20px!important}.ma-lg-n6{margin:-24px!important}.ma-lg-n7{margin:-28px!important}.ma-lg-n8{margin:-32px!important}.ma-lg-n9{margin:-36px!important}.ma-lg-n10{margin:-40px!important}.ma-lg-n11{margin:-44px!important}.ma-lg-n12{margin:-48px!important}.ma-lg-n13{margin:-52px!important}.ma-lg-n14{margin:-56px!important}.ma-lg-n15{margin:-60px!important}.ma-lg-n16{margin:-64px!important}.mx-lg-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-lg-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-lg-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-lg-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-lg-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-lg-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-lg-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-lg-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-lg-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-lg-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-lg-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-lg-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-lg-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-lg-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-lg-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-lg-n16{margin-right:-64px!important;margin-left:-64px!important}.my-lg-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-lg-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-lg-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-lg-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-lg-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-lg-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-lg-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-lg-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-lg-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-lg-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-lg-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-lg-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-lg-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-lg-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-lg-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-lg-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-lg-n1{margin-top:-4px!important}.mt-lg-n2{margin-top:-8px!important}.mt-lg-n3{margin-top:-12px!important}.mt-lg-n4{margin-top:-16px!important}.mt-lg-n5{margin-top:-20px!important}.mt-lg-n6{margin-top:-24px!important}.mt-lg-n7{margin-top:-28px!important}.mt-lg-n8{margin-top:-32px!important}.mt-lg-n9{margin-top:-36px!important}.mt-lg-n10{margin-top:-40px!important}.mt-lg-n11{margin-top:-44px!important}.mt-lg-n12{margin-top:-48px!important}.mt-lg-n13{margin-top:-52px!important}.mt-lg-n14{margin-top:-56px!important}.mt-lg-n15{margin-top:-60px!important}.mt-lg-n16{margin-top:-64px!important}.mr-lg-n1{margin-right:-4px!important}.mr-lg-n2{margin-right:-8px!important}.mr-lg-n3{margin-right:-12px!important}.mr-lg-n4{margin-right:-16px!important}.mr-lg-n5{margin-right:-20px!important}.mr-lg-n6{margin-right:-24px!important}.mr-lg-n7{margin-right:-28px!important}.mr-lg-n8{margin-right:-32px!important}.mr-lg-n9{margin-right:-36px!important}.mr-lg-n10{margin-right:-40px!important}.mr-lg-n11{margin-right:-44px!important}.mr-lg-n12{margin-right:-48px!important}.mr-lg-n13{margin-right:-52px!important}.mr-lg-n14{margin-right:-56px!important}.mr-lg-n15{margin-right:-60px!important}.mr-lg-n16{margin-right:-64px!important}.mb-lg-n1{margin-bottom:-4px!important}.mb-lg-n2{margin-bottom:-8px!important}.mb-lg-n3{margin-bottom:-12px!important}.mb-lg-n4{margin-bottom:-16px!important}.mb-lg-n5{margin-bottom:-20px!important}.mb-lg-n6{margin-bottom:-24px!important}.mb-lg-n7{margin-bottom:-28px!important}.mb-lg-n8{margin-bottom:-32px!important}.mb-lg-n9{margin-bottom:-36px!important}.mb-lg-n10{margin-bottom:-40px!important}.mb-lg-n11{margin-bottom:-44px!important}.mb-lg-n12{margin-bottom:-48px!important}.mb-lg-n13{margin-bottom:-52px!important}.mb-lg-n14{margin-bottom:-56px!important}.mb-lg-n15{margin-bottom:-60px!important}.mb-lg-n16{margin-bottom:-64px!important}.ml-lg-n1{margin-left:-4px!important}.ml-lg-n2{margin-left:-8px!important}.ml-lg-n3{margin-left:-12px!important}.ml-lg-n4{margin-left:-16px!important}.ml-lg-n5{margin-left:-20px!important}.ml-lg-n6{margin-left:-24px!important}.ml-lg-n7{margin-left:-28px!important}.ml-lg-n8{margin-left:-32px!important}.ml-lg-n9{margin-left:-36px!important}.ml-lg-n10{margin-left:-40px!important}.ml-lg-n11{margin-left:-44px!important}.ml-lg-n12{margin-left:-48px!important}.ml-lg-n13{margin-left:-52px!important}.ml-lg-n14{margin-left:-56px!important}.ml-lg-n15{margin-left:-60px!important}.ml-lg-n16{margin-left:-64px!important}.ms-lg-n1{margin-inline-start:-4px!important}.ms-lg-n2{margin-inline-start:-8px!important}.ms-lg-n3{margin-inline-start:-12px!important}.ms-lg-n4{margin-inline-start:-16px!important}.ms-lg-n5{margin-inline-start:-20px!important}.ms-lg-n6{margin-inline-start:-24px!important}.ms-lg-n7{margin-inline-start:-28px!important}.ms-lg-n8{margin-inline-start:-32px!important}.ms-lg-n9{margin-inline-start:-36px!important}.ms-lg-n10{margin-inline-start:-40px!important}.ms-lg-n11{margin-inline-start:-44px!important}.ms-lg-n12{margin-inline-start:-48px!important}.ms-lg-n13{margin-inline-start:-52px!important}.ms-lg-n14{margin-inline-start:-56px!important}.ms-lg-n15{margin-inline-start:-60px!important}.ms-lg-n16{margin-inline-start:-64px!important}.me-lg-n1{margin-inline-end:-4px!important}.me-lg-n2{margin-inline-end:-8px!important}.me-lg-n3{margin-inline-end:-12px!important}.me-lg-n4{margin-inline-end:-16px!important}.me-lg-n5{margin-inline-end:-20px!important}.me-lg-n6{margin-inline-end:-24px!important}.me-lg-n7{margin-inline-end:-28px!important}.me-lg-n8{margin-inline-end:-32px!important}.me-lg-n9{margin-inline-end:-36px!important}.me-lg-n10{margin-inline-end:-40px!important}.me-lg-n11{margin-inline-end:-44px!important}.me-lg-n12{margin-inline-end:-48px!important}.me-lg-n13{margin-inline-end:-52px!important}.me-lg-n14{margin-inline-end:-56px!important}.me-lg-n15{margin-inline-end:-60px!important}.me-lg-n16{margin-inline-end:-64px!important}.pa-lg-0{padding:0!important}.pa-lg-1{padding:4px!important}.pa-lg-2{padding:8px!important}.pa-lg-3{padding:12px!important}.pa-lg-4{padding:16px!important}.pa-lg-5{padding:20px!important}.pa-lg-6{padding:24px!important}.pa-lg-7{padding:28px!important}.pa-lg-8{padding:32px!important}.pa-lg-9{padding:36px!important}.pa-lg-10{padding:40px!important}.pa-lg-11{padding:44px!important}.pa-lg-12{padding:48px!important}.pa-lg-13{padding:52px!important}.pa-lg-14{padding:56px!important}.pa-lg-15{padding:60px!important}.pa-lg-16{padding:64px!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:4px!important;padding-left:4px!important}.px-lg-2{padding-right:8px!important;padding-left:8px!important}.px-lg-3{padding-right:12px!important;padding-left:12px!important}.px-lg-4{padding-right:16px!important;padding-left:16px!important}.px-lg-5{padding-right:20px!important;padding-left:20px!important}.px-lg-6{padding-right:24px!important;padding-left:24px!important}.px-lg-7{padding-right:28px!important;padding-left:28px!important}.px-lg-8{padding-right:32px!important;padding-left:32px!important}.px-lg-9{padding-right:36px!important;padding-left:36px!important}.px-lg-10{padding-right:40px!important;padding-left:40px!important}.px-lg-11{padding-right:44px!important;padding-left:44px!important}.px-lg-12{padding-right:48px!important;padding-left:48px!important}.px-lg-13{padding-right:52px!important;padding-left:52px!important}.px-lg-14{padding-right:56px!important;padding-left:56px!important}.px-lg-15{padding-right:60px!important;padding-left:60px!important}.px-lg-16{padding-right:64px!important;padding-left:64px!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:4px!important;padding-bottom:4px!important}.py-lg-2{padding-top:8px!important;padding-bottom:8px!important}.py-lg-3{padding-top:12px!important;padding-bottom:12px!important}.py-lg-4{padding-top:16px!important;padding-bottom:16px!important}.py-lg-5{padding-top:20px!important;padding-bottom:20px!important}.py-lg-6{padding-top:24px!important;padding-bottom:24px!important}.py-lg-7{padding-top:28px!important;padding-bottom:28px!important}.py-lg-8{padding-top:32px!important;padding-bottom:32px!important}.py-lg-9{padding-top:36px!important;padding-bottom:36px!important}.py-lg-10{padding-top:40px!important;padding-bottom:40px!important}.py-lg-11{padding-top:44px!important;padding-bottom:44px!important}.py-lg-12{padding-top:48px!important;padding-bottom:48px!important}.py-lg-13{padding-top:52px!important;padding-bottom:52px!important}.py-lg-14{padding-top:56px!important;padding-bottom:56px!important}.py-lg-15{padding-top:60px!important;padding-bottom:60px!important}.py-lg-16{padding-top:64px!important;padding-bottom:64px!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:4px!important}.pt-lg-2{padding-top:8px!important}.pt-lg-3{padding-top:12px!important}.pt-lg-4{padding-top:16px!important}.pt-lg-5{padding-top:20px!important}.pt-lg-6{padding-top:24px!important}.pt-lg-7{padding-top:28px!important}.pt-lg-8{padding-top:32px!important}.pt-lg-9{padding-top:36px!important}.pt-lg-10{padding-top:40px!important}.pt-lg-11{padding-top:44px!important}.pt-lg-12{padding-top:48px!important}.pt-lg-13{padding-top:52px!important}.pt-lg-14{padding-top:56px!important}.pt-lg-15{padding-top:60px!important}.pt-lg-16{padding-top:64px!important}.pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:4px!important}.pr-lg-2{padding-right:8px!important}.pr-lg-3{padding-right:12px!important}.pr-lg-4{padding-right:16px!important}.pr-lg-5{padding-right:20px!important}.pr-lg-6{padding-right:24px!important}.pr-lg-7{padding-right:28px!important}.pr-lg-8{padding-right:32px!important}.pr-lg-9{padding-right:36px!important}.pr-lg-10{padding-right:40px!important}.pr-lg-11{padding-right:44px!important}.pr-lg-12{padding-right:48px!important}.pr-lg-13{padding-right:52px!important}.pr-lg-14{padding-right:56px!important}.pr-lg-15{padding-right:60px!important}.pr-lg-16{padding-right:64px!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:4px!important}.pb-lg-2{padding-bottom:8px!important}.pb-lg-3{padding-bottom:12px!important}.pb-lg-4{padding-bottom:16px!important}.pb-lg-5{padding-bottom:20px!important}.pb-lg-6{padding-bottom:24px!important}.pb-lg-7{padding-bottom:28px!important}.pb-lg-8{padding-bottom:32px!important}.pb-lg-9{padding-bottom:36px!important}.pb-lg-10{padding-bottom:40px!important}.pb-lg-11{padding-bottom:44px!important}.pb-lg-12{padding-bottom:48px!important}.pb-lg-13{padding-bottom:52px!important}.pb-lg-14{padding-bottom:56px!important}.pb-lg-15{padding-bottom:60px!important}.pb-lg-16{padding-bottom:64px!important}.pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:4px!important}.pl-lg-2{padding-left:8px!important}.pl-lg-3{padding-left:12px!important}.pl-lg-4{padding-left:16px!important}.pl-lg-5{padding-left:20px!important}.pl-lg-6{padding-left:24px!important}.pl-lg-7{padding-left:28px!important}.pl-lg-8{padding-left:32px!important}.pl-lg-9{padding-left:36px!important}.pl-lg-10{padding-left:40px!important}.pl-lg-11{padding-left:44px!important}.pl-lg-12{padding-left:48px!important}.pl-lg-13{padding-left:52px!important}.pl-lg-14{padding-left:56px!important}.pl-lg-15{padding-left:60px!important}.pl-lg-16{padding-left:64px!important}.ps-lg-0{padding-inline-start:0px!important}.ps-lg-1{padding-inline-start:4px!important}.ps-lg-2{padding-inline-start:8px!important}.ps-lg-3{padding-inline-start:12px!important}.ps-lg-4{padding-inline-start:16px!important}.ps-lg-5{padding-inline-start:20px!important}.ps-lg-6{padding-inline-start:24px!important}.ps-lg-7{padding-inline-start:28px!important}.ps-lg-8{padding-inline-start:32px!important}.ps-lg-9{padding-inline-start:36px!important}.ps-lg-10{padding-inline-start:40px!important}.ps-lg-11{padding-inline-start:44px!important}.ps-lg-12{padding-inline-start:48px!important}.ps-lg-13{padding-inline-start:52px!important}.ps-lg-14{padding-inline-start:56px!important}.ps-lg-15{padding-inline-start:60px!important}.ps-lg-16{padding-inline-start:64px!important}.pe-lg-0{padding-inline-end:0px!important}.pe-lg-1{padding-inline-end:4px!important}.pe-lg-2{padding-inline-end:8px!important}.pe-lg-3{padding-inline-end:12px!important}.pe-lg-4{padding-inline-end:16px!important}.pe-lg-5{padding-inline-end:20px!important}.pe-lg-6{padding-inline-end:24px!important}.pe-lg-7{padding-inline-end:28px!important}.pe-lg-8{padding-inline-end:32px!important}.pe-lg-9{padding-inline-end:36px!important}.pe-lg-10{padding-inline-end:40px!important}.pe-lg-11{padding-inline-end:44px!important}.pe-lg-12{padding-inline-end:48px!important}.pe-lg-13{padding-inline-end:52px!important}.pe-lg-14{padding-inline-end:56px!important}.pe-lg-15{padding-inline-end:60px!important}.pe-lg-16{padding-inline-end:64px!important}.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}.text-lg-justify{text-align:justify!important}.text-lg-start{text-align:start!important}.text-lg-end{text-align:end!important}.text-lg-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-lg-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-lg-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-lg-auto{height:auto!important}.h-lg-screen{height:100vh!important}.h-lg-0{height:0!important}.h-lg-25{height:25%!important}.h-lg-50{height:50%!important}.h-lg-75{height:75%!important}.h-lg-100{height:100%!important}.w-lg-auto{width:auto!important}.w-lg-0{width:0!important}.w-lg-25{width:25%!important}.w-lg-33{width:33%!important}.w-lg-50{width:50%!important}.w-lg-66{width:66%!important}.w-lg-75{width:75%!important}.w-lg-100{width:100%!important}}@media (min-width: 1920px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.float-xl-none{float:none!important}.float-xl-left{float:left!important}.float-xl-right{float:right!important}.v-locale--is-rtl .float-xl-end{float:left!important}.v-locale--is-rtl .float-xl-start,.v-locale--is-ltr .float-xl-end{float:right!important}.v-locale--is-ltr .float-xl-start{float:left!important}.flex-xl-fill,.flex-xl-1-1{flex:1 1 auto!important}.flex-xl-1-0{flex:1 0 auto!important}.flex-xl-0-1{flex:0 1 auto!important}.flex-xl-0-0{flex:0 0 auto!important}.flex-xl-1-1-100{flex:1 1 100%!important}.flex-xl-1-0-100{flex:1 0 100%!important}.flex-xl-0-1-100{flex:0 1 100%!important}.flex-xl-0-0-100{flex:0 0 100%!important}.flex-xl-1-1-0{flex:1 1 0!important}.flex-xl-1-0-0{flex:1 0 0!important}.flex-xl-0-1-0{flex:0 1 0!important}.flex-xl-0-0-0{flex:0 0 0!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xl-start{justify-content:flex-start!important}.justify-xl-end{justify-content:flex-end!important}.justify-xl-center{justify-content:center!important}.justify-xl-space-between{justify-content:space-between!important}.justify-xl-space-around{justify-content:space-around!important}.justify-xl-space-evenly{justify-content:space-evenly!important}.align-xl-start{align-items:flex-start!important}.align-xl-end{align-items:flex-end!important}.align-xl-center{align-items:center!important}.align-xl-baseline{align-items:baseline!important}.align-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-space-between{align-content:space-between!important}.align-content-xl-space-around{align-content:space-around!important}.align-content-xl-space-evenly{align-content:space-evenly!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-6{order:6!important}.order-xl-7{order:7!important}.order-xl-8{order:8!important}.order-xl-9{order:9!important}.order-xl-10{order:10!important}.order-xl-11{order:11!important}.order-xl-12{order:12!important}.order-xl-last{order:13!important}.ga-xl-0{gap:0px!important}.ga-xl-1{gap:4px!important}.ga-xl-2{gap:8px!important}.ga-xl-3{gap:12px!important}.ga-xl-4{gap:16px!important}.ga-xl-5{gap:20px!important}.ga-xl-6{gap:24px!important}.ga-xl-7{gap:28px!important}.ga-xl-8{gap:32px!important}.ga-xl-9{gap:36px!important}.ga-xl-10{gap:40px!important}.ga-xl-11{gap:44px!important}.ga-xl-12{gap:48px!important}.ga-xl-13{gap:52px!important}.ga-xl-14{gap:56px!important}.ga-xl-15{gap:60px!important}.ga-xl-16{gap:64px!important}.ga-xl-auto{gap:auto!important}.gr-xl-0{row-gap:0px!important}.gr-xl-1{row-gap:4px!important}.gr-xl-2{row-gap:8px!important}.gr-xl-3{row-gap:12px!important}.gr-xl-4{row-gap:16px!important}.gr-xl-5{row-gap:20px!important}.gr-xl-6{row-gap:24px!important}.gr-xl-7{row-gap:28px!important}.gr-xl-8{row-gap:32px!important}.gr-xl-9{row-gap:36px!important}.gr-xl-10{row-gap:40px!important}.gr-xl-11{row-gap:44px!important}.gr-xl-12{row-gap:48px!important}.gr-xl-13{row-gap:52px!important}.gr-xl-14{row-gap:56px!important}.gr-xl-15{row-gap:60px!important}.gr-xl-16{row-gap:64px!important}.gr-xl-auto{row-gap:auto!important}.gc-xl-0{column-gap:0px!important}.gc-xl-1{column-gap:4px!important}.gc-xl-2{column-gap:8px!important}.gc-xl-3{column-gap:12px!important}.gc-xl-4{column-gap:16px!important}.gc-xl-5{column-gap:20px!important}.gc-xl-6{column-gap:24px!important}.gc-xl-7{column-gap:28px!important}.gc-xl-8{column-gap:32px!important}.gc-xl-9{column-gap:36px!important}.gc-xl-10{column-gap:40px!important}.gc-xl-11{column-gap:44px!important}.gc-xl-12{column-gap:48px!important}.gc-xl-13{column-gap:52px!important}.gc-xl-14{column-gap:56px!important}.gc-xl-15{column-gap:60px!important}.gc-xl-16{column-gap:64px!important}.gc-xl-auto{column-gap:auto!important}.ma-xl-0{margin:0!important}.ma-xl-1{margin:4px!important}.ma-xl-2{margin:8px!important}.ma-xl-3{margin:12px!important}.ma-xl-4{margin:16px!important}.ma-xl-5{margin:20px!important}.ma-xl-6{margin:24px!important}.ma-xl-7{margin:28px!important}.ma-xl-8{margin:32px!important}.ma-xl-9{margin:36px!important}.ma-xl-10{margin:40px!important}.ma-xl-11{margin:44px!important}.ma-xl-12{margin:48px!important}.ma-xl-13{margin:52px!important}.ma-xl-14{margin:56px!important}.ma-xl-15{margin:60px!important}.ma-xl-16{margin:64px!important}.ma-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:4px!important;margin-left:4px!important}.mx-xl-2{margin-right:8px!important;margin-left:8px!important}.mx-xl-3{margin-right:12px!important;margin-left:12px!important}.mx-xl-4{margin-right:16px!important;margin-left:16px!important}.mx-xl-5{margin-right:20px!important;margin-left:20px!important}.mx-xl-6{margin-right:24px!important;margin-left:24px!important}.mx-xl-7{margin-right:28px!important;margin-left:28px!important}.mx-xl-8{margin-right:32px!important;margin-left:32px!important}.mx-xl-9{margin-right:36px!important;margin-left:36px!important}.mx-xl-10{margin-right:40px!important;margin-left:40px!important}.mx-xl-11{margin-right:44px!important;margin-left:44px!important}.mx-xl-12{margin-right:48px!important;margin-left:48px!important}.mx-xl-13{margin-right:52px!important;margin-left:52px!important}.mx-xl-14{margin-right:56px!important;margin-left:56px!important}.mx-xl-15{margin-right:60px!important;margin-left:60px!important}.mx-xl-16{margin-right:64px!important;margin-left:64px!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:4px!important}.mt-xl-2{margin-top:8px!important}.mt-xl-3{margin-top:12px!important}.mt-xl-4{margin-top:16px!important}.mt-xl-5{margin-top:20px!important}.mt-xl-6{margin-top:24px!important}.mt-xl-7{margin-top:28px!important}.mt-xl-8{margin-top:32px!important}.mt-xl-9{margin-top:36px!important}.mt-xl-10{margin-top:40px!important}.mt-xl-11{margin-top:44px!important}.mt-xl-12{margin-top:48px!important}.mt-xl-13{margin-top:52px!important}.mt-xl-14{margin-top:56px!important}.mt-xl-15{margin-top:60px!important}.mt-xl-16{margin-top:64px!important}.mt-xl-auto{margin-top:auto!important}.mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:4px!important}.mr-xl-2{margin-right:8px!important}.mr-xl-3{margin-right:12px!important}.mr-xl-4{margin-right:16px!important}.mr-xl-5{margin-right:20px!important}.mr-xl-6{margin-right:24px!important}.mr-xl-7{margin-right:28px!important}.mr-xl-8{margin-right:32px!important}.mr-xl-9{margin-right:36px!important}.mr-xl-10{margin-right:40px!important}.mr-xl-11{margin-right:44px!important}.mr-xl-12{margin-right:48px!important}.mr-xl-13{margin-right:52px!important}.mr-xl-14{margin-right:56px!important}.mr-xl-15{margin-right:60px!important}.mr-xl-16{margin-right:64px!important}.mr-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:4px!important}.mb-xl-2{margin-bottom:8px!important}.mb-xl-3{margin-bottom:12px!important}.mb-xl-4{margin-bottom:16px!important}.mb-xl-5{margin-bottom:20px!important}.mb-xl-6{margin-bottom:24px!important}.mb-xl-7{margin-bottom:28px!important}.mb-xl-8{margin-bottom:32px!important}.mb-xl-9{margin-bottom:36px!important}.mb-xl-10{margin-bottom:40px!important}.mb-xl-11{margin-bottom:44px!important}.mb-xl-12{margin-bottom:48px!important}.mb-xl-13{margin-bottom:52px!important}.mb-xl-14{margin-bottom:56px!important}.mb-xl-15{margin-bottom:60px!important}.mb-xl-16{margin-bottom:64px!important}.mb-xl-auto{margin-bottom:auto!important}.ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:4px!important}.ml-xl-2{margin-left:8px!important}.ml-xl-3{margin-left:12px!important}.ml-xl-4{margin-left:16px!important}.ml-xl-5{margin-left:20px!important}.ml-xl-6{margin-left:24px!important}.ml-xl-7{margin-left:28px!important}.ml-xl-8{margin-left:32px!important}.ml-xl-9{margin-left:36px!important}.ml-xl-10{margin-left:40px!important}.ml-xl-11{margin-left:44px!important}.ml-xl-12{margin-left:48px!important}.ml-xl-13{margin-left:52px!important}.ml-xl-14{margin-left:56px!important}.ml-xl-15{margin-left:60px!important}.ml-xl-16{margin-left:64px!important}.ml-xl-auto{margin-left:auto!important}.ms-xl-0{margin-inline-start:0px!important}.ms-xl-1{margin-inline-start:4px!important}.ms-xl-2{margin-inline-start:8px!important}.ms-xl-3{margin-inline-start:12px!important}.ms-xl-4{margin-inline-start:16px!important}.ms-xl-5{margin-inline-start:20px!important}.ms-xl-6{margin-inline-start:24px!important}.ms-xl-7{margin-inline-start:28px!important}.ms-xl-8{margin-inline-start:32px!important}.ms-xl-9{margin-inline-start:36px!important}.ms-xl-10{margin-inline-start:40px!important}.ms-xl-11{margin-inline-start:44px!important}.ms-xl-12{margin-inline-start:48px!important}.ms-xl-13{margin-inline-start:52px!important}.ms-xl-14{margin-inline-start:56px!important}.ms-xl-15{margin-inline-start:60px!important}.ms-xl-16{margin-inline-start:64px!important}.ms-xl-auto{margin-inline-start:auto!important}.me-xl-0{margin-inline-end:0px!important}.me-xl-1{margin-inline-end:4px!important}.me-xl-2{margin-inline-end:8px!important}.me-xl-3{margin-inline-end:12px!important}.me-xl-4{margin-inline-end:16px!important}.me-xl-5{margin-inline-end:20px!important}.me-xl-6{margin-inline-end:24px!important}.me-xl-7{margin-inline-end:28px!important}.me-xl-8{margin-inline-end:32px!important}.me-xl-9{margin-inline-end:36px!important}.me-xl-10{margin-inline-end:40px!important}.me-xl-11{margin-inline-end:44px!important}.me-xl-12{margin-inline-end:48px!important}.me-xl-13{margin-inline-end:52px!important}.me-xl-14{margin-inline-end:56px!important}.me-xl-15{margin-inline-end:60px!important}.me-xl-16{margin-inline-end:64px!important}.me-xl-auto{margin-inline-end:auto!important}.ma-xl-n1{margin:-4px!important}.ma-xl-n2{margin:-8px!important}.ma-xl-n3{margin:-12px!important}.ma-xl-n4{margin:-16px!important}.ma-xl-n5{margin:-20px!important}.ma-xl-n6{margin:-24px!important}.ma-xl-n7{margin:-28px!important}.ma-xl-n8{margin:-32px!important}.ma-xl-n9{margin:-36px!important}.ma-xl-n10{margin:-40px!important}.ma-xl-n11{margin:-44px!important}.ma-xl-n12{margin:-48px!important}.ma-xl-n13{margin:-52px!important}.ma-xl-n14{margin:-56px!important}.ma-xl-n15{margin:-60px!important}.ma-xl-n16{margin:-64px!important}.mx-xl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xl-n1{margin-top:-4px!important}.mt-xl-n2{margin-top:-8px!important}.mt-xl-n3{margin-top:-12px!important}.mt-xl-n4{margin-top:-16px!important}.mt-xl-n5{margin-top:-20px!important}.mt-xl-n6{margin-top:-24px!important}.mt-xl-n7{margin-top:-28px!important}.mt-xl-n8{margin-top:-32px!important}.mt-xl-n9{margin-top:-36px!important}.mt-xl-n10{margin-top:-40px!important}.mt-xl-n11{margin-top:-44px!important}.mt-xl-n12{margin-top:-48px!important}.mt-xl-n13{margin-top:-52px!important}.mt-xl-n14{margin-top:-56px!important}.mt-xl-n15{margin-top:-60px!important}.mt-xl-n16{margin-top:-64px!important}.mr-xl-n1{margin-right:-4px!important}.mr-xl-n2{margin-right:-8px!important}.mr-xl-n3{margin-right:-12px!important}.mr-xl-n4{margin-right:-16px!important}.mr-xl-n5{margin-right:-20px!important}.mr-xl-n6{margin-right:-24px!important}.mr-xl-n7{margin-right:-28px!important}.mr-xl-n8{margin-right:-32px!important}.mr-xl-n9{margin-right:-36px!important}.mr-xl-n10{margin-right:-40px!important}.mr-xl-n11{margin-right:-44px!important}.mr-xl-n12{margin-right:-48px!important}.mr-xl-n13{margin-right:-52px!important}.mr-xl-n14{margin-right:-56px!important}.mr-xl-n15{margin-right:-60px!important}.mr-xl-n16{margin-right:-64px!important}.mb-xl-n1{margin-bottom:-4px!important}.mb-xl-n2{margin-bottom:-8px!important}.mb-xl-n3{margin-bottom:-12px!important}.mb-xl-n4{margin-bottom:-16px!important}.mb-xl-n5{margin-bottom:-20px!important}.mb-xl-n6{margin-bottom:-24px!important}.mb-xl-n7{margin-bottom:-28px!important}.mb-xl-n8{margin-bottom:-32px!important}.mb-xl-n9{margin-bottom:-36px!important}.mb-xl-n10{margin-bottom:-40px!important}.mb-xl-n11{margin-bottom:-44px!important}.mb-xl-n12{margin-bottom:-48px!important}.mb-xl-n13{margin-bottom:-52px!important}.mb-xl-n14{margin-bottom:-56px!important}.mb-xl-n15{margin-bottom:-60px!important}.mb-xl-n16{margin-bottom:-64px!important}.ml-xl-n1{margin-left:-4px!important}.ml-xl-n2{margin-left:-8px!important}.ml-xl-n3{margin-left:-12px!important}.ml-xl-n4{margin-left:-16px!important}.ml-xl-n5{margin-left:-20px!important}.ml-xl-n6{margin-left:-24px!important}.ml-xl-n7{margin-left:-28px!important}.ml-xl-n8{margin-left:-32px!important}.ml-xl-n9{margin-left:-36px!important}.ml-xl-n10{margin-left:-40px!important}.ml-xl-n11{margin-left:-44px!important}.ml-xl-n12{margin-left:-48px!important}.ml-xl-n13{margin-left:-52px!important}.ml-xl-n14{margin-left:-56px!important}.ml-xl-n15{margin-left:-60px!important}.ml-xl-n16{margin-left:-64px!important}.ms-xl-n1{margin-inline-start:-4px!important}.ms-xl-n2{margin-inline-start:-8px!important}.ms-xl-n3{margin-inline-start:-12px!important}.ms-xl-n4{margin-inline-start:-16px!important}.ms-xl-n5{margin-inline-start:-20px!important}.ms-xl-n6{margin-inline-start:-24px!important}.ms-xl-n7{margin-inline-start:-28px!important}.ms-xl-n8{margin-inline-start:-32px!important}.ms-xl-n9{margin-inline-start:-36px!important}.ms-xl-n10{margin-inline-start:-40px!important}.ms-xl-n11{margin-inline-start:-44px!important}.ms-xl-n12{margin-inline-start:-48px!important}.ms-xl-n13{margin-inline-start:-52px!important}.ms-xl-n14{margin-inline-start:-56px!important}.ms-xl-n15{margin-inline-start:-60px!important}.ms-xl-n16{margin-inline-start:-64px!important}.me-xl-n1{margin-inline-end:-4px!important}.me-xl-n2{margin-inline-end:-8px!important}.me-xl-n3{margin-inline-end:-12px!important}.me-xl-n4{margin-inline-end:-16px!important}.me-xl-n5{margin-inline-end:-20px!important}.me-xl-n6{margin-inline-end:-24px!important}.me-xl-n7{margin-inline-end:-28px!important}.me-xl-n8{margin-inline-end:-32px!important}.me-xl-n9{margin-inline-end:-36px!important}.me-xl-n10{margin-inline-end:-40px!important}.me-xl-n11{margin-inline-end:-44px!important}.me-xl-n12{margin-inline-end:-48px!important}.me-xl-n13{margin-inline-end:-52px!important}.me-xl-n14{margin-inline-end:-56px!important}.me-xl-n15{margin-inline-end:-60px!important}.me-xl-n16{margin-inline-end:-64px!important}.pa-xl-0{padding:0!important}.pa-xl-1{padding:4px!important}.pa-xl-2{padding:8px!important}.pa-xl-3{padding:12px!important}.pa-xl-4{padding:16px!important}.pa-xl-5{padding:20px!important}.pa-xl-6{padding:24px!important}.pa-xl-7{padding:28px!important}.pa-xl-8{padding:32px!important}.pa-xl-9{padding:36px!important}.pa-xl-10{padding:40px!important}.pa-xl-11{padding:44px!important}.pa-xl-12{padding:48px!important}.pa-xl-13{padding:52px!important}.pa-xl-14{padding:56px!important}.pa-xl-15{padding:60px!important}.pa-xl-16{padding:64px!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:4px!important;padding-left:4px!important}.px-xl-2{padding-right:8px!important;padding-left:8px!important}.px-xl-3{padding-right:12px!important;padding-left:12px!important}.px-xl-4{padding-right:16px!important;padding-left:16px!important}.px-xl-5{padding-right:20px!important;padding-left:20px!important}.px-xl-6{padding-right:24px!important;padding-left:24px!important}.px-xl-7{padding-right:28px!important;padding-left:28px!important}.px-xl-8{padding-right:32px!important;padding-left:32px!important}.px-xl-9{padding-right:36px!important;padding-left:36px!important}.px-xl-10{padding-right:40px!important;padding-left:40px!important}.px-xl-11{padding-right:44px!important;padding-left:44px!important}.px-xl-12{padding-right:48px!important;padding-left:48px!important}.px-xl-13{padding-right:52px!important;padding-left:52px!important}.px-xl-14{padding-right:56px!important;padding-left:56px!important}.px-xl-15{padding-right:60px!important;padding-left:60px!important}.px-xl-16{padding-right:64px!important;padding-left:64px!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:4px!important}.pt-xl-2{padding-top:8px!important}.pt-xl-3{padding-top:12px!important}.pt-xl-4{padding-top:16px!important}.pt-xl-5{padding-top:20px!important}.pt-xl-6{padding-top:24px!important}.pt-xl-7{padding-top:28px!important}.pt-xl-8{padding-top:32px!important}.pt-xl-9{padding-top:36px!important}.pt-xl-10{padding-top:40px!important}.pt-xl-11{padding-top:44px!important}.pt-xl-12{padding-top:48px!important}.pt-xl-13{padding-top:52px!important}.pt-xl-14{padding-top:56px!important}.pt-xl-15{padding-top:60px!important}.pt-xl-16{padding-top:64px!important}.pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:4px!important}.pr-xl-2{padding-right:8px!important}.pr-xl-3{padding-right:12px!important}.pr-xl-4{padding-right:16px!important}.pr-xl-5{padding-right:20px!important}.pr-xl-6{padding-right:24px!important}.pr-xl-7{padding-right:28px!important}.pr-xl-8{padding-right:32px!important}.pr-xl-9{padding-right:36px!important}.pr-xl-10{padding-right:40px!important}.pr-xl-11{padding-right:44px!important}.pr-xl-12{padding-right:48px!important}.pr-xl-13{padding-right:52px!important}.pr-xl-14{padding-right:56px!important}.pr-xl-15{padding-right:60px!important}.pr-xl-16{padding-right:64px!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:4px!important}.pb-xl-2{padding-bottom:8px!important}.pb-xl-3{padding-bottom:12px!important}.pb-xl-4{padding-bottom:16px!important}.pb-xl-5{padding-bottom:20px!important}.pb-xl-6{padding-bottom:24px!important}.pb-xl-7{padding-bottom:28px!important}.pb-xl-8{padding-bottom:32px!important}.pb-xl-9{padding-bottom:36px!important}.pb-xl-10{padding-bottom:40px!important}.pb-xl-11{padding-bottom:44px!important}.pb-xl-12{padding-bottom:48px!important}.pb-xl-13{padding-bottom:52px!important}.pb-xl-14{padding-bottom:56px!important}.pb-xl-15{padding-bottom:60px!important}.pb-xl-16{padding-bottom:64px!important}.pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:4px!important}.pl-xl-2{padding-left:8px!important}.pl-xl-3{padding-left:12px!important}.pl-xl-4{padding-left:16px!important}.pl-xl-5{padding-left:20px!important}.pl-xl-6{padding-left:24px!important}.pl-xl-7{padding-left:28px!important}.pl-xl-8{padding-left:32px!important}.pl-xl-9{padding-left:36px!important}.pl-xl-10{padding-left:40px!important}.pl-xl-11{padding-left:44px!important}.pl-xl-12{padding-left:48px!important}.pl-xl-13{padding-left:52px!important}.pl-xl-14{padding-left:56px!important}.pl-xl-15{padding-left:60px!important}.pl-xl-16{padding-left:64px!important}.ps-xl-0{padding-inline-start:0px!important}.ps-xl-1{padding-inline-start:4px!important}.ps-xl-2{padding-inline-start:8px!important}.ps-xl-3{padding-inline-start:12px!important}.ps-xl-4{padding-inline-start:16px!important}.ps-xl-5{padding-inline-start:20px!important}.ps-xl-6{padding-inline-start:24px!important}.ps-xl-7{padding-inline-start:28px!important}.ps-xl-8{padding-inline-start:32px!important}.ps-xl-9{padding-inline-start:36px!important}.ps-xl-10{padding-inline-start:40px!important}.ps-xl-11{padding-inline-start:44px!important}.ps-xl-12{padding-inline-start:48px!important}.ps-xl-13{padding-inline-start:52px!important}.ps-xl-14{padding-inline-start:56px!important}.ps-xl-15{padding-inline-start:60px!important}.ps-xl-16{padding-inline-start:64px!important}.pe-xl-0{padding-inline-end:0px!important}.pe-xl-1{padding-inline-end:4px!important}.pe-xl-2{padding-inline-end:8px!important}.pe-xl-3{padding-inline-end:12px!important}.pe-xl-4{padding-inline-end:16px!important}.pe-xl-5{padding-inline-end:20px!important}.pe-xl-6{padding-inline-end:24px!important}.pe-xl-7{padding-inline-end:28px!important}.pe-xl-8{padding-inline-end:32px!important}.pe-xl-9{padding-inline-end:36px!important}.pe-xl-10{padding-inline-end:40px!important}.pe-xl-11{padding-inline-end:44px!important}.pe-xl-12{padding-inline-end:48px!important}.pe-xl-13{padding-inline-end:52px!important}.pe-xl-14{padding-inline-end:56px!important}.pe-xl-15{padding-inline-end:60px!important}.pe-xl-16{padding-inline-end:64px!important}.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}.text-xl-justify{text-align:justify!important}.text-xl-start{text-align:start!important}.text-xl-end{text-align:end!important}.text-xl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xl-auto{height:auto!important}.h-xl-screen{height:100vh!important}.h-xl-0{height:0!important}.h-xl-25{height:25%!important}.h-xl-50{height:50%!important}.h-xl-75{height:75%!important}.h-xl-100{height:100%!important}.w-xl-auto{width:auto!important}.w-xl-0{width:0!important}.w-xl-25{width:25%!important}.w-xl-33{width:33%!important}.w-xl-50{width:50%!important}.w-xl-66{width:66%!important}.w-xl-75{width:75%!important}.w-xl-100{width:100%!important}}@media (min-width: 2560px){.d-xxl-none{display:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.float-xxl-none{float:none!important}.float-xxl-left{float:left!important}.float-xxl-right{float:right!important}.v-locale--is-rtl .float-xxl-end{float:left!important}.v-locale--is-rtl .float-xxl-start,.v-locale--is-ltr .float-xxl-end{float:right!important}.v-locale--is-ltr .float-xxl-start{float:left!important}.flex-xxl-fill,.flex-xxl-1-1{flex:1 1 auto!important}.flex-xxl-1-0{flex:1 0 auto!important}.flex-xxl-0-1{flex:0 1 auto!important}.flex-xxl-0-0{flex:0 0 auto!important}.flex-xxl-1-1-100{flex:1 1 100%!important}.flex-xxl-1-0-100{flex:1 0 100%!important}.flex-xxl-0-1-100{flex:0 1 100%!important}.flex-xxl-0-0-100{flex:0 0 100%!important}.flex-xxl-1-1-0{flex:1 1 0!important}.flex-xxl-1-0-0{flex:1 0 0!important}.flex-xxl-0-1-0{flex:0 1 0!important}.flex-xxl-0-0-0{flex:0 0 0!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-xxl-start{justify-content:flex-start!important}.justify-xxl-end{justify-content:flex-end!important}.justify-xxl-center{justify-content:center!important}.justify-xxl-space-between{justify-content:space-between!important}.justify-xxl-space-around{justify-content:space-around!important}.justify-xxl-space-evenly{justify-content:space-evenly!important}.align-xxl-start{align-items:flex-start!important}.align-xxl-end{align-items:flex-end!important}.align-xxl-center{align-items:center!important}.align-xxl-baseline{align-items:baseline!important}.align-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-space-between{align-content:space-between!important}.align-content-xxl-space-around{align-content:space-around!important}.align-content-xxl-space-evenly{align-content:space-evenly!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-6{order:6!important}.order-xxl-7{order:7!important}.order-xxl-8{order:8!important}.order-xxl-9{order:9!important}.order-xxl-10{order:10!important}.order-xxl-11{order:11!important}.order-xxl-12{order:12!important}.order-xxl-last{order:13!important}.ga-xxl-0{gap:0px!important}.ga-xxl-1{gap:4px!important}.ga-xxl-2{gap:8px!important}.ga-xxl-3{gap:12px!important}.ga-xxl-4{gap:16px!important}.ga-xxl-5{gap:20px!important}.ga-xxl-6{gap:24px!important}.ga-xxl-7{gap:28px!important}.ga-xxl-8{gap:32px!important}.ga-xxl-9{gap:36px!important}.ga-xxl-10{gap:40px!important}.ga-xxl-11{gap:44px!important}.ga-xxl-12{gap:48px!important}.ga-xxl-13{gap:52px!important}.ga-xxl-14{gap:56px!important}.ga-xxl-15{gap:60px!important}.ga-xxl-16{gap:64px!important}.ga-xxl-auto{gap:auto!important}.gr-xxl-0{row-gap:0px!important}.gr-xxl-1{row-gap:4px!important}.gr-xxl-2{row-gap:8px!important}.gr-xxl-3{row-gap:12px!important}.gr-xxl-4{row-gap:16px!important}.gr-xxl-5{row-gap:20px!important}.gr-xxl-6{row-gap:24px!important}.gr-xxl-7{row-gap:28px!important}.gr-xxl-8{row-gap:32px!important}.gr-xxl-9{row-gap:36px!important}.gr-xxl-10{row-gap:40px!important}.gr-xxl-11{row-gap:44px!important}.gr-xxl-12{row-gap:48px!important}.gr-xxl-13{row-gap:52px!important}.gr-xxl-14{row-gap:56px!important}.gr-xxl-15{row-gap:60px!important}.gr-xxl-16{row-gap:64px!important}.gr-xxl-auto{row-gap:auto!important}.gc-xxl-0{column-gap:0px!important}.gc-xxl-1{column-gap:4px!important}.gc-xxl-2{column-gap:8px!important}.gc-xxl-3{column-gap:12px!important}.gc-xxl-4{column-gap:16px!important}.gc-xxl-5{column-gap:20px!important}.gc-xxl-6{column-gap:24px!important}.gc-xxl-7{column-gap:28px!important}.gc-xxl-8{column-gap:32px!important}.gc-xxl-9{column-gap:36px!important}.gc-xxl-10{column-gap:40px!important}.gc-xxl-11{column-gap:44px!important}.gc-xxl-12{column-gap:48px!important}.gc-xxl-13{column-gap:52px!important}.gc-xxl-14{column-gap:56px!important}.gc-xxl-15{column-gap:60px!important}.gc-xxl-16{column-gap:64px!important}.gc-xxl-auto{column-gap:auto!important}.ma-xxl-0{margin:0!important}.ma-xxl-1{margin:4px!important}.ma-xxl-2{margin:8px!important}.ma-xxl-3{margin:12px!important}.ma-xxl-4{margin:16px!important}.ma-xxl-5{margin:20px!important}.ma-xxl-6{margin:24px!important}.ma-xxl-7{margin:28px!important}.ma-xxl-8{margin:32px!important}.ma-xxl-9{margin:36px!important}.ma-xxl-10{margin:40px!important}.ma-xxl-11{margin:44px!important}.ma-xxl-12{margin:48px!important}.ma-xxl-13{margin:52px!important}.ma-xxl-14{margin:56px!important}.ma-xxl-15{margin:60px!important}.ma-xxl-16{margin:64px!important}.ma-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:4px!important;margin-left:4px!important}.mx-xxl-2{margin-right:8px!important;margin-left:8px!important}.mx-xxl-3{margin-right:12px!important;margin-left:12px!important}.mx-xxl-4{margin-right:16px!important;margin-left:16px!important}.mx-xxl-5{margin-right:20px!important;margin-left:20px!important}.mx-xxl-6{margin-right:24px!important;margin-left:24px!important}.mx-xxl-7{margin-right:28px!important;margin-left:28px!important}.mx-xxl-8{margin-right:32px!important;margin-left:32px!important}.mx-xxl-9{margin-right:36px!important;margin-left:36px!important}.mx-xxl-10{margin-right:40px!important;margin-left:40px!important}.mx-xxl-11{margin-right:44px!important;margin-left:44px!important}.mx-xxl-12{margin-right:48px!important;margin-left:48px!important}.mx-xxl-13{margin-right:52px!important;margin-left:52px!important}.mx-xxl-14{margin-right:56px!important;margin-left:56px!important}.mx-xxl-15{margin-right:60px!important;margin-left:60px!important}.mx-xxl-16{margin-right:64px!important;margin-left:64px!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:4px!important;margin-bottom:4px!important}.my-xxl-2{margin-top:8px!important;margin-bottom:8px!important}.my-xxl-3{margin-top:12px!important;margin-bottom:12px!important}.my-xxl-4{margin-top:16px!important;margin-bottom:16px!important}.my-xxl-5{margin-top:20px!important;margin-bottom:20px!important}.my-xxl-6{margin-top:24px!important;margin-bottom:24px!important}.my-xxl-7{margin-top:28px!important;margin-bottom:28px!important}.my-xxl-8{margin-top:32px!important;margin-bottom:32px!important}.my-xxl-9{margin-top:36px!important;margin-bottom:36px!important}.my-xxl-10{margin-top:40px!important;margin-bottom:40px!important}.my-xxl-11{margin-top:44px!important;margin-bottom:44px!important}.my-xxl-12{margin-top:48px!important;margin-bottom:48px!important}.my-xxl-13{margin-top:52px!important;margin-bottom:52px!important}.my-xxl-14{margin-top:56px!important;margin-bottom:56px!important}.my-xxl-15{margin-top:60px!important;margin-bottom:60px!important}.my-xxl-16{margin-top:64px!important;margin-bottom:64px!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:4px!important}.mt-xxl-2{margin-top:8px!important}.mt-xxl-3{margin-top:12px!important}.mt-xxl-4{margin-top:16px!important}.mt-xxl-5{margin-top:20px!important}.mt-xxl-6{margin-top:24px!important}.mt-xxl-7{margin-top:28px!important}.mt-xxl-8{margin-top:32px!important}.mt-xxl-9{margin-top:36px!important}.mt-xxl-10{margin-top:40px!important}.mt-xxl-11{margin-top:44px!important}.mt-xxl-12{margin-top:48px!important}.mt-xxl-13{margin-top:52px!important}.mt-xxl-14{margin-top:56px!important}.mt-xxl-15{margin-top:60px!important}.mt-xxl-16{margin-top:64px!important}.mt-xxl-auto{margin-top:auto!important}.mr-xxl-0{margin-right:0!important}.mr-xxl-1{margin-right:4px!important}.mr-xxl-2{margin-right:8px!important}.mr-xxl-3{margin-right:12px!important}.mr-xxl-4{margin-right:16px!important}.mr-xxl-5{margin-right:20px!important}.mr-xxl-6{margin-right:24px!important}.mr-xxl-7{margin-right:28px!important}.mr-xxl-8{margin-right:32px!important}.mr-xxl-9{margin-right:36px!important}.mr-xxl-10{margin-right:40px!important}.mr-xxl-11{margin-right:44px!important}.mr-xxl-12{margin-right:48px!important}.mr-xxl-13{margin-right:52px!important}.mr-xxl-14{margin-right:56px!important}.mr-xxl-15{margin-right:60px!important}.mr-xxl-16{margin-right:64px!important}.mr-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:4px!important}.mb-xxl-2{margin-bottom:8px!important}.mb-xxl-3{margin-bottom:12px!important}.mb-xxl-4{margin-bottom:16px!important}.mb-xxl-5{margin-bottom:20px!important}.mb-xxl-6{margin-bottom:24px!important}.mb-xxl-7{margin-bottom:28px!important}.mb-xxl-8{margin-bottom:32px!important}.mb-xxl-9{margin-bottom:36px!important}.mb-xxl-10{margin-bottom:40px!important}.mb-xxl-11{margin-bottom:44px!important}.mb-xxl-12{margin-bottom:48px!important}.mb-xxl-13{margin-bottom:52px!important}.mb-xxl-14{margin-bottom:56px!important}.mb-xxl-15{margin-bottom:60px!important}.mb-xxl-16{margin-bottom:64px!important}.mb-xxl-auto{margin-bottom:auto!important}.ml-xxl-0{margin-left:0!important}.ml-xxl-1{margin-left:4px!important}.ml-xxl-2{margin-left:8px!important}.ml-xxl-3{margin-left:12px!important}.ml-xxl-4{margin-left:16px!important}.ml-xxl-5{margin-left:20px!important}.ml-xxl-6{margin-left:24px!important}.ml-xxl-7{margin-left:28px!important}.ml-xxl-8{margin-left:32px!important}.ml-xxl-9{margin-left:36px!important}.ml-xxl-10{margin-left:40px!important}.ml-xxl-11{margin-left:44px!important}.ml-xxl-12{margin-left:48px!important}.ml-xxl-13{margin-left:52px!important}.ml-xxl-14{margin-left:56px!important}.ml-xxl-15{margin-left:60px!important}.ml-xxl-16{margin-left:64px!important}.ml-xxl-auto{margin-left:auto!important}.ms-xxl-0{margin-inline-start:0px!important}.ms-xxl-1{margin-inline-start:4px!important}.ms-xxl-2{margin-inline-start:8px!important}.ms-xxl-3{margin-inline-start:12px!important}.ms-xxl-4{margin-inline-start:16px!important}.ms-xxl-5{margin-inline-start:20px!important}.ms-xxl-6{margin-inline-start:24px!important}.ms-xxl-7{margin-inline-start:28px!important}.ms-xxl-8{margin-inline-start:32px!important}.ms-xxl-9{margin-inline-start:36px!important}.ms-xxl-10{margin-inline-start:40px!important}.ms-xxl-11{margin-inline-start:44px!important}.ms-xxl-12{margin-inline-start:48px!important}.ms-xxl-13{margin-inline-start:52px!important}.ms-xxl-14{margin-inline-start:56px!important}.ms-xxl-15{margin-inline-start:60px!important}.ms-xxl-16{margin-inline-start:64px!important}.ms-xxl-auto{margin-inline-start:auto!important}.me-xxl-0{margin-inline-end:0px!important}.me-xxl-1{margin-inline-end:4px!important}.me-xxl-2{margin-inline-end:8px!important}.me-xxl-3{margin-inline-end:12px!important}.me-xxl-4{margin-inline-end:16px!important}.me-xxl-5{margin-inline-end:20px!important}.me-xxl-6{margin-inline-end:24px!important}.me-xxl-7{margin-inline-end:28px!important}.me-xxl-8{margin-inline-end:32px!important}.me-xxl-9{margin-inline-end:36px!important}.me-xxl-10{margin-inline-end:40px!important}.me-xxl-11{margin-inline-end:44px!important}.me-xxl-12{margin-inline-end:48px!important}.me-xxl-13{margin-inline-end:52px!important}.me-xxl-14{margin-inline-end:56px!important}.me-xxl-15{margin-inline-end:60px!important}.me-xxl-16{margin-inline-end:64px!important}.me-xxl-auto{margin-inline-end:auto!important}.ma-xxl-n1{margin:-4px!important}.ma-xxl-n2{margin:-8px!important}.ma-xxl-n3{margin:-12px!important}.ma-xxl-n4{margin:-16px!important}.ma-xxl-n5{margin:-20px!important}.ma-xxl-n6{margin:-24px!important}.ma-xxl-n7{margin:-28px!important}.ma-xxl-n8{margin:-32px!important}.ma-xxl-n9{margin:-36px!important}.ma-xxl-n10{margin:-40px!important}.ma-xxl-n11{margin:-44px!important}.ma-xxl-n12{margin:-48px!important}.ma-xxl-n13{margin:-52px!important}.ma-xxl-n14{margin:-56px!important}.ma-xxl-n15{margin:-60px!important}.ma-xxl-n16{margin:-64px!important}.mx-xxl-n1{margin-right:-4px!important;margin-left:-4px!important}.mx-xxl-n2{margin-right:-8px!important;margin-left:-8px!important}.mx-xxl-n3{margin-right:-12px!important;margin-left:-12px!important}.mx-xxl-n4{margin-right:-16px!important;margin-left:-16px!important}.mx-xxl-n5{margin-right:-20px!important;margin-left:-20px!important}.mx-xxl-n6{margin-right:-24px!important;margin-left:-24px!important}.mx-xxl-n7{margin-right:-28px!important;margin-left:-28px!important}.mx-xxl-n8{margin-right:-32px!important;margin-left:-32px!important}.mx-xxl-n9{margin-right:-36px!important;margin-left:-36px!important}.mx-xxl-n10{margin-right:-40px!important;margin-left:-40px!important}.mx-xxl-n11{margin-right:-44px!important;margin-left:-44px!important}.mx-xxl-n12{margin-right:-48px!important;margin-left:-48px!important}.mx-xxl-n13{margin-right:-52px!important;margin-left:-52px!important}.mx-xxl-n14{margin-right:-56px!important;margin-left:-56px!important}.mx-xxl-n15{margin-right:-60px!important;margin-left:-60px!important}.mx-xxl-n16{margin-right:-64px!important;margin-left:-64px!important}.my-xxl-n1{margin-top:-4px!important;margin-bottom:-4px!important}.my-xxl-n2{margin-top:-8px!important;margin-bottom:-8px!important}.my-xxl-n3{margin-top:-12px!important;margin-bottom:-12px!important}.my-xxl-n4{margin-top:-16px!important;margin-bottom:-16px!important}.my-xxl-n5{margin-top:-20px!important;margin-bottom:-20px!important}.my-xxl-n6{margin-top:-24px!important;margin-bottom:-24px!important}.my-xxl-n7{margin-top:-28px!important;margin-bottom:-28px!important}.my-xxl-n8{margin-top:-32px!important;margin-bottom:-32px!important}.my-xxl-n9{margin-top:-36px!important;margin-bottom:-36px!important}.my-xxl-n10{margin-top:-40px!important;margin-bottom:-40px!important}.my-xxl-n11{margin-top:-44px!important;margin-bottom:-44px!important}.my-xxl-n12{margin-top:-48px!important;margin-bottom:-48px!important}.my-xxl-n13{margin-top:-52px!important;margin-bottom:-52px!important}.my-xxl-n14{margin-top:-56px!important;margin-bottom:-56px!important}.my-xxl-n15{margin-top:-60px!important;margin-bottom:-60px!important}.my-xxl-n16{margin-top:-64px!important;margin-bottom:-64px!important}.mt-xxl-n1{margin-top:-4px!important}.mt-xxl-n2{margin-top:-8px!important}.mt-xxl-n3{margin-top:-12px!important}.mt-xxl-n4{margin-top:-16px!important}.mt-xxl-n5{margin-top:-20px!important}.mt-xxl-n6{margin-top:-24px!important}.mt-xxl-n7{margin-top:-28px!important}.mt-xxl-n8{margin-top:-32px!important}.mt-xxl-n9{margin-top:-36px!important}.mt-xxl-n10{margin-top:-40px!important}.mt-xxl-n11{margin-top:-44px!important}.mt-xxl-n12{margin-top:-48px!important}.mt-xxl-n13{margin-top:-52px!important}.mt-xxl-n14{margin-top:-56px!important}.mt-xxl-n15{margin-top:-60px!important}.mt-xxl-n16{margin-top:-64px!important}.mr-xxl-n1{margin-right:-4px!important}.mr-xxl-n2{margin-right:-8px!important}.mr-xxl-n3{margin-right:-12px!important}.mr-xxl-n4{margin-right:-16px!important}.mr-xxl-n5{margin-right:-20px!important}.mr-xxl-n6{margin-right:-24px!important}.mr-xxl-n7{margin-right:-28px!important}.mr-xxl-n8{margin-right:-32px!important}.mr-xxl-n9{margin-right:-36px!important}.mr-xxl-n10{margin-right:-40px!important}.mr-xxl-n11{margin-right:-44px!important}.mr-xxl-n12{margin-right:-48px!important}.mr-xxl-n13{margin-right:-52px!important}.mr-xxl-n14{margin-right:-56px!important}.mr-xxl-n15{margin-right:-60px!important}.mr-xxl-n16{margin-right:-64px!important}.mb-xxl-n1{margin-bottom:-4px!important}.mb-xxl-n2{margin-bottom:-8px!important}.mb-xxl-n3{margin-bottom:-12px!important}.mb-xxl-n4{margin-bottom:-16px!important}.mb-xxl-n5{margin-bottom:-20px!important}.mb-xxl-n6{margin-bottom:-24px!important}.mb-xxl-n7{margin-bottom:-28px!important}.mb-xxl-n8{margin-bottom:-32px!important}.mb-xxl-n9{margin-bottom:-36px!important}.mb-xxl-n10{margin-bottom:-40px!important}.mb-xxl-n11{margin-bottom:-44px!important}.mb-xxl-n12{margin-bottom:-48px!important}.mb-xxl-n13{margin-bottom:-52px!important}.mb-xxl-n14{margin-bottom:-56px!important}.mb-xxl-n15{margin-bottom:-60px!important}.mb-xxl-n16{margin-bottom:-64px!important}.ml-xxl-n1{margin-left:-4px!important}.ml-xxl-n2{margin-left:-8px!important}.ml-xxl-n3{margin-left:-12px!important}.ml-xxl-n4{margin-left:-16px!important}.ml-xxl-n5{margin-left:-20px!important}.ml-xxl-n6{margin-left:-24px!important}.ml-xxl-n7{margin-left:-28px!important}.ml-xxl-n8{margin-left:-32px!important}.ml-xxl-n9{margin-left:-36px!important}.ml-xxl-n10{margin-left:-40px!important}.ml-xxl-n11{margin-left:-44px!important}.ml-xxl-n12{margin-left:-48px!important}.ml-xxl-n13{margin-left:-52px!important}.ml-xxl-n14{margin-left:-56px!important}.ml-xxl-n15{margin-left:-60px!important}.ml-xxl-n16{margin-left:-64px!important}.ms-xxl-n1{margin-inline-start:-4px!important}.ms-xxl-n2{margin-inline-start:-8px!important}.ms-xxl-n3{margin-inline-start:-12px!important}.ms-xxl-n4{margin-inline-start:-16px!important}.ms-xxl-n5{margin-inline-start:-20px!important}.ms-xxl-n6{margin-inline-start:-24px!important}.ms-xxl-n7{margin-inline-start:-28px!important}.ms-xxl-n8{margin-inline-start:-32px!important}.ms-xxl-n9{margin-inline-start:-36px!important}.ms-xxl-n10{margin-inline-start:-40px!important}.ms-xxl-n11{margin-inline-start:-44px!important}.ms-xxl-n12{margin-inline-start:-48px!important}.ms-xxl-n13{margin-inline-start:-52px!important}.ms-xxl-n14{margin-inline-start:-56px!important}.ms-xxl-n15{margin-inline-start:-60px!important}.ms-xxl-n16{margin-inline-start:-64px!important}.me-xxl-n1{margin-inline-end:-4px!important}.me-xxl-n2{margin-inline-end:-8px!important}.me-xxl-n3{margin-inline-end:-12px!important}.me-xxl-n4{margin-inline-end:-16px!important}.me-xxl-n5{margin-inline-end:-20px!important}.me-xxl-n6{margin-inline-end:-24px!important}.me-xxl-n7{margin-inline-end:-28px!important}.me-xxl-n8{margin-inline-end:-32px!important}.me-xxl-n9{margin-inline-end:-36px!important}.me-xxl-n10{margin-inline-end:-40px!important}.me-xxl-n11{margin-inline-end:-44px!important}.me-xxl-n12{margin-inline-end:-48px!important}.me-xxl-n13{margin-inline-end:-52px!important}.me-xxl-n14{margin-inline-end:-56px!important}.me-xxl-n15{margin-inline-end:-60px!important}.me-xxl-n16{margin-inline-end:-64px!important}.pa-xxl-0{padding:0!important}.pa-xxl-1{padding:4px!important}.pa-xxl-2{padding:8px!important}.pa-xxl-3{padding:12px!important}.pa-xxl-4{padding:16px!important}.pa-xxl-5{padding:20px!important}.pa-xxl-6{padding:24px!important}.pa-xxl-7{padding:28px!important}.pa-xxl-8{padding:32px!important}.pa-xxl-9{padding:36px!important}.pa-xxl-10{padding:40px!important}.pa-xxl-11{padding:44px!important}.pa-xxl-12{padding:48px!important}.pa-xxl-13{padding:52px!important}.pa-xxl-14{padding:56px!important}.pa-xxl-15{padding:60px!important}.pa-xxl-16{padding:64px!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:4px!important;padding-left:4px!important}.px-xxl-2{padding-right:8px!important;padding-left:8px!important}.px-xxl-3{padding-right:12px!important;padding-left:12px!important}.px-xxl-4{padding-right:16px!important;padding-left:16px!important}.px-xxl-5{padding-right:20px!important;padding-left:20px!important}.px-xxl-6{padding-right:24px!important;padding-left:24px!important}.px-xxl-7{padding-right:28px!important;padding-left:28px!important}.px-xxl-8{padding-right:32px!important;padding-left:32px!important}.px-xxl-9{padding-right:36px!important;padding-left:36px!important}.px-xxl-10{padding-right:40px!important;padding-left:40px!important}.px-xxl-11{padding-right:44px!important;padding-left:44px!important}.px-xxl-12{padding-right:48px!important;padding-left:48px!important}.px-xxl-13{padding-right:52px!important;padding-left:52px!important}.px-xxl-14{padding-right:56px!important;padding-left:56px!important}.px-xxl-15{padding-right:60px!important;padding-left:60px!important}.px-xxl-16{padding-right:64px!important;padding-left:64px!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:4px!important;padding-bottom:4px!important}.py-xxl-2{padding-top:8px!important;padding-bottom:8px!important}.py-xxl-3{padding-top:12px!important;padding-bottom:12px!important}.py-xxl-4{padding-top:16px!important;padding-bottom:16px!important}.py-xxl-5{padding-top:20px!important;padding-bottom:20px!important}.py-xxl-6{padding-top:24px!important;padding-bottom:24px!important}.py-xxl-7{padding-top:28px!important;padding-bottom:28px!important}.py-xxl-8{padding-top:32px!important;padding-bottom:32px!important}.py-xxl-9{padding-top:36px!important;padding-bottom:36px!important}.py-xxl-10{padding-top:40px!important;padding-bottom:40px!important}.py-xxl-11{padding-top:44px!important;padding-bottom:44px!important}.py-xxl-12{padding-top:48px!important;padding-bottom:48px!important}.py-xxl-13{padding-top:52px!important;padding-bottom:52px!important}.py-xxl-14{padding-top:56px!important;padding-bottom:56px!important}.py-xxl-15{padding-top:60px!important;padding-bottom:60px!important}.py-xxl-16{padding-top:64px!important;padding-bottom:64px!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:4px!important}.pt-xxl-2{padding-top:8px!important}.pt-xxl-3{padding-top:12px!important}.pt-xxl-4{padding-top:16px!important}.pt-xxl-5{padding-top:20px!important}.pt-xxl-6{padding-top:24px!important}.pt-xxl-7{padding-top:28px!important}.pt-xxl-8{padding-top:32px!important}.pt-xxl-9{padding-top:36px!important}.pt-xxl-10{padding-top:40px!important}.pt-xxl-11{padding-top:44px!important}.pt-xxl-12{padding-top:48px!important}.pt-xxl-13{padding-top:52px!important}.pt-xxl-14{padding-top:56px!important}.pt-xxl-15{padding-top:60px!important}.pt-xxl-16{padding-top:64px!important}.pr-xxl-0{padding-right:0!important}.pr-xxl-1{padding-right:4px!important}.pr-xxl-2{padding-right:8px!important}.pr-xxl-3{padding-right:12px!important}.pr-xxl-4{padding-right:16px!important}.pr-xxl-5{padding-right:20px!important}.pr-xxl-6{padding-right:24px!important}.pr-xxl-7{padding-right:28px!important}.pr-xxl-8{padding-right:32px!important}.pr-xxl-9{padding-right:36px!important}.pr-xxl-10{padding-right:40px!important}.pr-xxl-11{padding-right:44px!important}.pr-xxl-12{padding-right:48px!important}.pr-xxl-13{padding-right:52px!important}.pr-xxl-14{padding-right:56px!important}.pr-xxl-15{padding-right:60px!important}.pr-xxl-16{padding-right:64px!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:4px!important}.pb-xxl-2{padding-bottom:8px!important}.pb-xxl-3{padding-bottom:12px!important}.pb-xxl-4{padding-bottom:16px!important}.pb-xxl-5{padding-bottom:20px!important}.pb-xxl-6{padding-bottom:24px!important}.pb-xxl-7{padding-bottom:28px!important}.pb-xxl-8{padding-bottom:32px!important}.pb-xxl-9{padding-bottom:36px!important}.pb-xxl-10{padding-bottom:40px!important}.pb-xxl-11{padding-bottom:44px!important}.pb-xxl-12{padding-bottom:48px!important}.pb-xxl-13{padding-bottom:52px!important}.pb-xxl-14{padding-bottom:56px!important}.pb-xxl-15{padding-bottom:60px!important}.pb-xxl-16{padding-bottom:64px!important}.pl-xxl-0{padding-left:0!important}.pl-xxl-1{padding-left:4px!important}.pl-xxl-2{padding-left:8px!important}.pl-xxl-3{padding-left:12px!important}.pl-xxl-4{padding-left:16px!important}.pl-xxl-5{padding-left:20px!important}.pl-xxl-6{padding-left:24px!important}.pl-xxl-7{padding-left:28px!important}.pl-xxl-8{padding-left:32px!important}.pl-xxl-9{padding-left:36px!important}.pl-xxl-10{padding-left:40px!important}.pl-xxl-11{padding-left:44px!important}.pl-xxl-12{padding-left:48px!important}.pl-xxl-13{padding-left:52px!important}.pl-xxl-14{padding-left:56px!important}.pl-xxl-15{padding-left:60px!important}.pl-xxl-16{padding-left:64px!important}.ps-xxl-0{padding-inline-start:0px!important}.ps-xxl-1{padding-inline-start:4px!important}.ps-xxl-2{padding-inline-start:8px!important}.ps-xxl-3{padding-inline-start:12px!important}.ps-xxl-4{padding-inline-start:16px!important}.ps-xxl-5{padding-inline-start:20px!important}.ps-xxl-6{padding-inline-start:24px!important}.ps-xxl-7{padding-inline-start:28px!important}.ps-xxl-8{padding-inline-start:32px!important}.ps-xxl-9{padding-inline-start:36px!important}.ps-xxl-10{padding-inline-start:40px!important}.ps-xxl-11{padding-inline-start:44px!important}.ps-xxl-12{padding-inline-start:48px!important}.ps-xxl-13{padding-inline-start:52px!important}.ps-xxl-14{padding-inline-start:56px!important}.ps-xxl-15{padding-inline-start:60px!important}.ps-xxl-16{padding-inline-start:64px!important}.pe-xxl-0{padding-inline-end:0px!important}.pe-xxl-1{padding-inline-end:4px!important}.pe-xxl-2{padding-inline-end:8px!important}.pe-xxl-3{padding-inline-end:12px!important}.pe-xxl-4{padding-inline-end:16px!important}.pe-xxl-5{padding-inline-end:20px!important}.pe-xxl-6{padding-inline-end:24px!important}.pe-xxl-7{padding-inline-end:28px!important}.pe-xxl-8{padding-inline-end:32px!important}.pe-xxl-9{padding-inline-end:36px!important}.pe-xxl-10{padding-inline-end:40px!important}.pe-xxl-11{padding-inline-end:44px!important}.pe-xxl-12{padding-inline-end:48px!important}.pe-xxl-13{padding-inline-end:52px!important}.pe-xxl-14{padding-inline-end:56px!important}.pe-xxl-15{padding-inline-end:60px!important}.pe-xxl-16{padding-inline-end:64px!important}.text-xxl-left{text-align:left!important}.text-xxl-right{text-align:right!important}.text-xxl-center{text-align:center!important}.text-xxl-justify{text-align:justify!important}.text-xxl-start{text-align:start!important}.text-xxl-end{text-align:end!important}.text-xxl-h1{font-size:6rem!important;font-weight:300;line-height:1;letter-spacing:-.015625em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h2{font-size:3.75rem!important;font-weight:300;line-height:1;letter-spacing:-.0083333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h3{font-size:3rem!important;font-weight:400;line-height:1.05;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h4{font-size:2.125rem!important;font-weight:400;line-height:1.175;letter-spacing:.0073529412em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h5{font-size:1.5rem!important;font-weight:400;line-height:1.333;letter-spacing:normal!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-h6{font-size:1.25rem!important;font-weight:500;line-height:1.6;letter-spacing:.0125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-1{font-size:1rem!important;font-weight:400;line-height:1.75;letter-spacing:.009375em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-subtitle-2{font-size:.875rem!important;font-weight:500;line-height:1.6;letter-spacing:.0071428571em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-1{font-size:1rem!important;font-weight:400;line-height:1.5;letter-spacing:.03125em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-body-2{font-size:.875rem!important;font-weight:400;line-height:1.425;letter-spacing:.0178571429em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-button{font-size:.875rem!important;font-weight:500;line-height:2.6;letter-spacing:.0892857143em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.text-xxl-caption{font-size:.75rem!important;font-weight:400;line-height:1.667;letter-spacing:.0333333333em!important;font-family:Pathway Extreme,sans-serif;text-transform:none!important}.text-xxl-overline{font-size:.75rem!important;font-weight:500;line-height:2.667;letter-spacing:.1666666667em!important;font-family:Pathway Extreme,sans-serif;text-transform:uppercase!important}.h-xxl-auto{height:auto!important}.h-xxl-screen{height:100vh!important}.h-xxl-0{height:0!important}.h-xxl-25{height:25%!important}.h-xxl-50{height:50%!important}.h-xxl-75{height:75%!important}.h-xxl-100{height:100%!important}.w-xxl-auto{width:auto!important}.w-xxl-0{width:0!important}.w-xxl-25{width:25%!important}.w-xxl-33{width:33%!important}.w-xxl-50{width:50%!important}.w-xxl-66{width:66%!important}.w-xxl-75{width:75%!important}.w-xxl-100{width:100%!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.float-print-none{float:none!important}.float-print-left{float:left!important}.float-print-right{float:right!important}.v-locale--is-rtl .float-print-end{float:left!important}.v-locale--is-rtl .float-print-start,.v-locale--is-ltr .float-print-end{float:right!important}.v-locale--is-ltr .float-print-start{float:left!important}} diff --git a/zt_backend/dist_dev/assets/webfontloader-7255030a.js b/zt_backend/dist_dev/assets/webfontloader-df03bff5.js similarity index 99% rename from zt_backend/dist_dev/assets/webfontloader-7255030a.js rename to zt_backend/dist_dev/assets/webfontloader-df03bff5.js index d845f206..fe344a1e 100644 --- a/zt_backend/dist_dev/assets/webfontloader-7255030a.js +++ b/zt_backend/dist_dev/assets/webfontloader-df03bff5.js @@ -1 +1 @@ -import{g as Ft}from"./index-b4ad4230.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f Zero-True - - + + diff --git a/zt_backend/router.py b/zt_backend/router.py index d7170ece..87853110 100644 --- a/zt_backend/router.py +++ b/zt_backend/router.py @@ -163,6 +163,7 @@ async def component_run(websocket: WebSocket): except WebSocketDisconnect: manager.disconnect(websocket) + @router.post("/api/run_all") def run_all(): if app_state.run_mode == "app": @@ -297,27 +298,31 @@ async def save_text(websocket: WebSocket): data.get("line"), data.get("column"), ) - - linting_results = await queued_get_cell_linting( + + await queued_get_cell_linting( cell_id, data.get("text"), - data.get("code_w_context") + data.get("code_w_context"), + websocket, ) - + combined_results = { "cell_id": cell_id, "completions": completions.get("completions", []), - "lint_results": linting_results.get(cell_id, []) } await websocket.send_json(combined_results) except Exception as e: - logger.error(f"Error processing code cell {cell_id}: {str(e)}") - await websocket.send_json({ - "cell_id": cell_id, - "error": "An error occurred while processing the code cell" - }) + logger.error( + f"Error processing code cell {cell_id}: {str(e)}" + ) + await websocket.send_json( + { + "cell_id": cell_id, + "error": "An error occurred while processing the code cell", + } + ) except WebSocketDisconnect: manager.disconnect(websocket) finally: diff --git a/zt_backend/utils/linting.py b/zt_backend/utils/linting.py index bb0ffb6e..37d18132 100644 --- a/zt_backend/utils/linting.py +++ b/zt_backend/utils/linting.py @@ -4,15 +4,17 @@ import logging from collections import defaultdict import subprocess +from zt_backend.utils.debounce import async_debounce +from fastapi.websockets import WebSocket # Constants DEBOUNCE_TIME = 0.5 # seconds RUFF_COMMAND = [ - 'ruff', - 'check', - '--output-format=json', - '--extend-ignore=E402', # Ignore import position errors - '-' + "ruff", + "check", + "--output-format=json", + "--extend-ignore=E402", # Ignore import position errors + "-", ] # Setup logging @@ -23,16 +25,17 @@ last_run_time = defaultdict(float) pending_tasks: Dict[str, asyncio.Task] = {} + async def run_ruff_linting(text: str) -> List[Dict]: process = subprocess.Popen( - RUFF_COMMAND, - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - text=True + RUFF_COMMAND, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + text=True, ) stdout, stderr = process.communicate(input=text) - + if stderr: logger.error(f"Error running Ruff: {stderr.decode()}") return [] @@ -43,95 +46,122 @@ async def run_ruff_linting(text: str) -> List[Dict]: logger.error(f"Error decoding Ruff output: {stdout.decode()}") return [] + def get_severity(code: str) -> str: """Determine the severity based on the error code.""" if not code: - return 'error' # Treat empty codes as syntax errors - - if code == 'F401': - return 'warning' - + return "error" # Treat empty codes as syntax errors + + if code == "F401": + return "warning" + # Special handling for F8 series, excluding F82 - if code.startswith('F8') and not code.startswith('F82'): - return 'warning' - + if code.startswith("F8") and not code.startswith("F82"): + return "warning" + severity_map = { - 'E': 'error', - 'F': 'error', - 'W': 'warning', - 'P': 'warning', - 'C': 'info', # Convention - 'N': 'info', # Naming - 'Q': 'info', # Quote style - 'T': 'warning', # Type hinting issues - 'R': 'info', # Refactoring suggestions - 'S': 'warning', # Security issues + "E": "error", + "F": "error", + "W": "warning", + "P": "warning", + "C": "info", # Convention + "N": "info", # Naming + "Q": "info", # Quote style + "T": "warning", # Type hinting issues + "R": "info", # Refactoring suggestions + "S": "warning", # Security issues } - return severity_map.get(code[0], 'warning') + return severity_map.get(code[0], "warning") + def transform_ruff_results(lint_errors: List[Dict], cell_line_count: int) -> List[Dict]: transformed_messages = [] for message in lint_errors: try: - code = message.get('code', '') + code = message.get("code", "") severity = get_severity(code) - + # Adjust line numbers for CodeMirror (0-based) from_line = max(0, message["location"]["row"] - 1) - to_line = max(0, message["end_location"]["row"] - 1 if "end_location" in message else message["location"]["row"] - 1) - + to_line = max( + 0, + ( + message["end_location"]["row"] - 1 + if "end_location" in message + else message["location"]["row"] - 1 + ), + ) + # Ensure line numbers don't exceed the cell's line count from_line = min(from_line, cell_line_count - 1) to_line = min(to_line, cell_line_count - 1) - + transformed_message = { "from": { "line": from_line, - "ch": max(0, message["location"]["column"] - 1) + "ch": max(0, message["location"]["column"] - 1), }, "to": { "line": to_line, - "ch": max(0, message["end_location"]["column"] - 1 if "end_location" in message else message["location"]["column"]) + "ch": max( + 0, + ( + message["end_location"]["column"] - 1 + if "end_location" in message + else message["location"]["column"] + ), + ), }, "severity": severity, - "message": f"{message.get('message', 'Error')}" + "message": f"{message.get('message', 'Error')}", } transformed_messages.append(transformed_message) except KeyError as e: - logger.error(f"Error processing linting message: {str(e)}. Message: {message}") + logger.error( + f"Error processing linting message: {str(e)}. Message: {message}" + ) return transformed_messages -async def queued_get_cell_linting(cell_id: str, text: str, code_w_context: str) -> Dict[str, List[Dict]]: + +@async_debounce(0.5) +async def queued_get_cell_linting( + cell_id: str, text: str, code_w_context: str, websocket: WebSocket +): try: - context_lines = code_w_context.strip().split('\n') - cell_lines = text.strip().split('\n') - + context_lines = code_w_context.strip().split("\n") + cell_lines = text.strip().split("\n") + # More robust way to find the cell start line cell_first_line = cell_lines[0].strip() cell_start_line = -1 - + # Look for the first line of the cell in the context, ignoring whitespace for i, line in enumerate(context_lines): if line.strip() == cell_first_line: # Verify this is actually the start of our cell by checking subsequent lines matches = True for j, cell_line in enumerate(cell_lines): - if i + j >= len(context_lines) or context_lines[i + j].strip() != cell_line.strip(): + if ( + i + j >= len(context_lines) + or context_lines[i + j].strip() != cell_line.strip() + ): matches = False break if matches: cell_start_line = i break - + if cell_start_line == -1: # If we can't find the cell in context, just lint the cell directly - logger.warning(f"Could not find cell content in context for cell {cell_id}, linting cell directly") + logger.warning( + f"Could not find cell content in context for cell {cell_id}, linting cell directly" + ) lint_errors = await run_ruff_linting(text) transformed_messages = transform_ruff_results(lint_errors, len(cell_lines)) return {cell_id: transformed_messages} # Prepare context-aware cell text - preceding_context = '\n'.join(context_lines[:cell_start_line]) + preceding_context = "\n".join(context_lines[:cell_start_line]) context_aware_cell_text = f"{preceding_context}\n{text}" # Run linting on the context-aware cell text @@ -139,9 +169,10 @@ async def queued_get_cell_linting(cell_id: str, text: str, code_w_context: str) logger.debug(f"Ruff output for cell {cell_id}: {json.dumps(lint_errors)}") # Filter out linting errors from the preceding context - preceding_context_line_count = len(preceding_context.split('\n')) + preceding_context_line_count = len(preceding_context.split("\n")) cell_lint_errors = [ - error for error in lint_errors + error + for error in lint_errors if error["location"]["row"] > preceding_context_line_count ] @@ -153,7 +184,11 @@ async def queued_get_cell_linting(cell_id: str, text: str, code_w_context: str) # Transform results transformed_messages = transform_ruff_results(cell_lint_errors, len(cell_lines)) - return {cell_id: transformed_messages} + + await websocket.send_json( + {"cell_id": cell_id, "lint_results": transformed_messages} + ) except Exception as e: - logger.error(f"Error processing linting for cell {cell_id}: {str(e)}", exc_info=True) - return {cell_id: []} \ No newline at end of file + logger.error( + f"Error processing linting for cell {cell_id}: {str(e)}", exc_info=True + ) \ No newline at end of file diff --git a/zt_frontend/src/App.vue b/zt_frontend/src/App.vue index 0a45c377..4371b26c 100644 --- a/zt_frontend/src/App.vue +++ b/zt_frontend/src/App.vue @@ -752,10 +752,17 @@ export default { // Assuming data is an array of completion objects if (data.cell_id) { // Update completions - this.completions[data.cell_id] = Array.isArray(data.completions) ? data.completions : []; - - // Update lint results - this.lintResults[data.cell_id] = Array.isArray(data.lint_results) ? data.lint_results : []; + if (data.completions) { + this.completions[data.cell_id] = Array.isArray(data.completions) + ? data.completions + : []; + } + // Update lint results + if (data.lint_results) { + this.lintResults[data.cell_id] = Array.isArray(data.lint_results) + ? data.lint_results + : []; + } } } catch (error) { console.error("Error parsing server message:", error); diff --git a/zt_frontend/src/components/CodeComponent.vue b/zt_frontend/src/components/CodeComponent.vue index 11080469..e90b42d4 100644 --- a/zt_frontend/src/components/CodeComponent.vue +++ b/zt_frontend/src/components/CodeComponent.vue @@ -1,6 +1,6 @@